0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

📎 Move icon and raw-svg components to a common subdir

This commit is contained in:
Belén Albeza 2024-07-10 15:42:19 +02:00
parent 9d3a282c0a
commit df858c2c7d
11 changed files with 10 additions and 11 deletions

View file

@ -6,8 +6,8 @@
(ns app.main.ui.ds
(:require
[app.main.ui.ds.foundations.icon :refer [icon* icon-list]]
[app.main.ui.ds.foundations.raw-svg :refer [raw-svg* raw-svg-list]]
[app.main.ui.ds.foundations.assets.icon :refer [icon* icon-list]]
[app.main.ui.ds.foundations.assets.raw-svg :refer [raw-svg* raw-svg-list]]
[app.main.ui.ds.foundations.typography :refer [typography-list]]
[app.main.ui.ds.foundations.typography.heading :refer [heading*]]
[app.main.ui.ds.foundations.typography.text :refer [text*]]

View file

@ -4,7 +4,7 @@
;;
;; Copyright (c) KALEIDOS INC
(ns app.main.ui.ds.foundations.icon
(ns app.main.ui.ds.foundations.assets.icon
(:require
[clojure.core :as c]
[cuerdas.core :as str]

View file

@ -4,12 +4,12 @@
;;
;; Copyright (c) KALEIDOS INC
(ns app.main.ui.ds.foundations.icon
(ns app.main.ui.ds.foundations.assets.icon
(:refer-clojure :exclude [mask])
(:require-macros
[app.common.data.macros :as dm]
[app.main.style :as stl]
[app.main.ui.ds.foundations.icon :refer [collect-icons]])
[app.main.ui.ds.foundations.assets.icon :refer [collect-icons]])
(:require
[rumext.v2 :as mf]))

View file

@ -41,7 +41,7 @@ Assuming the namespace is required as `i`:
```clj
(ns app.main.ui.foo
(:require
[app.main.ui.ds.foundations.icon :as i]))
[app.main.ui.ds.foundations.assets.icon :as i]))
```
You can now use the icon IDs defined in the namespace:

View file

@ -4,7 +4,7 @@
;;
;; Copyright (c) KALEIDOS INC
(ns app.main.ui.ds.foundations.raw-svg
(ns app.main.ui.ds.foundations.assets.raw-svg
(:require
[clojure.core :as c]
[cuerdas.core :as str]

View file

@ -4,11 +4,11 @@
;;
;; Copyright (c) KALEIDOS INC
(ns app.main.ui.ds.foundations.raw-svg
(ns app.main.ui.ds.foundations.assets.raw-svg
(:refer-clojure :exclude [mask])
(:require-macros
[app.common.data.macros :as dm]
[app.main.ui.ds.foundations.raw-svg :refer [collect-raw-svgs]])
[app.main.ui.ds.foundations.assets.raw-svg :refer [collect-raw-svgs]])
(:require
[rumext.v2 :as mf]))

View file

@ -20,7 +20,7 @@ For convenience, asset IDs are available in the component namespace.
```clj
(ns app.main.ui.foo
(:require
[app.main.ui.ds.foundations.raw-svg :as svg]))
[app.main.ui.ds.foundations.assets.raw-svg :as svg]))
```
```clj

View file

@ -18,7 +18,6 @@
(def ^:typography-id body-small "body-small")
(def ^:typography-id code-font "code-font")
(def typography-list #{display
title-large
title-medium