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:
parent
9d3a282c0a
commit
df858c2c7d
11 changed files with 10 additions and 11 deletions
|
@ -6,8 +6,8 @@
|
||||||
|
|
||||||
(ns app.main.ui.ds
|
(ns app.main.ui.ds
|
||||||
(:require
|
(:require
|
||||||
[app.main.ui.ds.foundations.icon :refer [icon* icon-list]]
|
[app.main.ui.ds.foundations.assets.icon :refer [icon* icon-list]]
|
||||||
[app.main.ui.ds.foundations.raw-svg :refer [raw-svg* raw-svg-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 :refer [typography-list]]
|
||||||
[app.main.ui.ds.foundations.typography.heading :refer [heading*]]
|
[app.main.ui.ds.foundations.typography.heading :refer [heading*]]
|
||||||
[app.main.ui.ds.foundations.typography.text :refer [text*]]
|
[app.main.ui.ds.foundations.typography.text :refer [text*]]
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
;;
|
;;
|
||||||
;; Copyright (c) KALEIDOS INC
|
;; Copyright (c) KALEIDOS INC
|
||||||
|
|
||||||
(ns app.main.ui.ds.foundations.icon
|
(ns app.main.ui.ds.foundations.assets.icon
|
||||||
(:require
|
(:require
|
||||||
[clojure.core :as c]
|
[clojure.core :as c]
|
||||||
[cuerdas.core :as str]
|
[cuerdas.core :as str]
|
|
@ -4,12 +4,12 @@
|
||||||
;;
|
;;
|
||||||
;; Copyright (c) KALEIDOS INC
|
;; Copyright (c) KALEIDOS INC
|
||||||
|
|
||||||
(ns app.main.ui.ds.foundations.icon
|
(ns app.main.ui.ds.foundations.assets.icon
|
||||||
(:refer-clojure :exclude [mask])
|
(:refer-clojure :exclude [mask])
|
||||||
(:require-macros
|
(:require-macros
|
||||||
[app.common.data.macros :as dm]
|
[app.common.data.macros :as dm]
|
||||||
[app.main.style :as stl]
|
[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
|
(:require
|
||||||
[rumext.v2 :as mf]))
|
[rumext.v2 :as mf]))
|
||||||
|
|
|
@ -41,7 +41,7 @@ Assuming the namespace is required as `i`:
|
||||||
```clj
|
```clj
|
||||||
(ns app.main.ui.foo
|
(ns app.main.ui.foo
|
||||||
(:require
|
(: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:
|
You can now use the icon IDs defined in the namespace:
|
|
@ -4,7 +4,7 @@
|
||||||
;;
|
;;
|
||||||
;; Copyright (c) KALEIDOS INC
|
;; Copyright (c) KALEIDOS INC
|
||||||
|
|
||||||
(ns app.main.ui.ds.foundations.raw-svg
|
(ns app.main.ui.ds.foundations.assets.raw-svg
|
||||||
(:require
|
(:require
|
||||||
[clojure.core :as c]
|
[clojure.core :as c]
|
||||||
[cuerdas.core :as str]
|
[cuerdas.core :as str]
|
|
@ -4,11 +4,11 @@
|
||||||
;;
|
;;
|
||||||
;; Copyright (c) KALEIDOS INC
|
;; 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])
|
(:refer-clojure :exclude [mask])
|
||||||
(:require-macros
|
(:require-macros
|
||||||
[app.common.data.macros :as dm]
|
[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
|
(:require
|
||||||
[rumext.v2 :as mf]))
|
[rumext.v2 :as mf]))
|
||||||
|
|
|
@ -20,7 +20,7 @@ For convenience, asset IDs are available in the component namespace.
|
||||||
```clj
|
```clj
|
||||||
(ns app.main.ui.foo
|
(ns app.main.ui.foo
|
||||||
(:require
|
(:require
|
||||||
[app.main.ui.ds.foundations.raw-svg :as svg]))
|
[app.main.ui.ds.foundations.assets.raw-svg :as svg]))
|
||||||
```
|
```
|
||||||
|
|
||||||
```clj
|
```clj
|
|
@ -18,7 +18,6 @@
|
||||||
(def ^:typography-id body-small "body-small")
|
(def ^:typography-id body-small "body-small")
|
||||||
(def ^:typography-id code-font "code-font")
|
(def ^:typography-id code-font "code-font")
|
||||||
|
|
||||||
|
|
||||||
(def typography-list #{display
|
(def typography-list #{display
|
||||||
title-large
|
title-large
|
||||||
title-medium
|
title-medium
|
||||||
|
|
Loading…
Add table
Reference in a new issue