From df858c2c7df639ed8cc84deae00c31e49aa5ce95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Albeza?= Date: Wed, 10 Jul 2024 15:42:19 +0200 Subject: [PATCH] :paperclip: Move icon and raw-svg components to a common subdir --- frontend/src/app/main/ui/ds.cljs | 4 ++-- frontend/src/app/main/ui/ds/foundations/{ => assets}/icon.clj | 2 +- .../src/app/main/ui/ds/foundations/{ => assets}/icon.cljs | 4 ++-- frontend/src/app/main/ui/ds/foundations/{ => assets}/icon.mdx | 2 +- .../src/app/main/ui/ds/foundations/{ => assets}/icon.scss | 0 .../app/main/ui/ds/foundations/{ => assets}/icon.stories.jsx | 0 .../src/app/main/ui/ds/foundations/{ => assets}/raw_svg.clj | 2 +- .../src/app/main/ui/ds/foundations/{ => assets}/raw_svg.cljs | 4 ++-- .../src/app/main/ui/ds/foundations/{ => assets}/raw_svg.mdx | 2 +- .../main/ui/ds/foundations/{ => assets}/raw_svg.stories.jsx | 0 frontend/src/app/main/ui/ds/foundations/typography.cljs | 1 - 11 files changed, 10 insertions(+), 11 deletions(-) rename frontend/src/app/main/ui/ds/foundations/{ => assets}/icon.clj (93%) rename frontend/src/app/main/ui/ds/foundations/{ => assets}/icon.cljs (99%) rename frontend/src/app/main/ui/ds/foundations/{ => assets}/icon.mdx (98%) rename frontend/src/app/main/ui/ds/foundations/{ => assets}/icon.scss (100%) rename frontend/src/app/main/ui/ds/foundations/{ => assets}/icon.stories.jsx (100%) rename frontend/src/app/main/ui/ds/foundations/{ => assets}/raw_svg.clj (93%) rename frontend/src/app/main/ui/ds/foundations/{ => assets}/raw_svg.cljs (90%) rename frontend/src/app/main/ui/ds/foundations/{ => assets}/raw_svg.mdx (91%) rename frontend/src/app/main/ui/ds/foundations/{ => assets}/raw_svg.stories.jsx (100%) diff --git a/frontend/src/app/main/ui/ds.cljs b/frontend/src/app/main/ui/ds.cljs index 6143d4eb4..150048e7a 100644 --- a/frontend/src/app/main/ui/ds.cljs +++ b/frontend/src/app/main/ui/ds.cljs @@ -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*]] diff --git a/frontend/src/app/main/ui/ds/foundations/icon.clj b/frontend/src/app/main/ui/ds/foundations/assets/icon.clj similarity index 93% rename from frontend/src/app/main/ui/ds/foundations/icon.clj rename to frontend/src/app/main/ui/ds/foundations/assets/icon.clj index 4f721c6d0..e51c10d35 100644 --- a/frontend/src/app/main/ui/ds/foundations/icon.clj +++ b/frontend/src/app/main/ui/ds/foundations/assets/icon.clj @@ -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] diff --git a/frontend/src/app/main/ui/ds/foundations/icon.cljs b/frontend/src/app/main/ui/ds/foundations/assets/icon.cljs similarity index 99% rename from frontend/src/app/main/ui/ds/foundations/icon.cljs rename to frontend/src/app/main/ui/ds/foundations/assets/icon.cljs index f9aa7b402..fb901789c 100644 --- a/frontend/src/app/main/ui/ds/foundations/icon.cljs +++ b/frontend/src/app/main/ui/ds/foundations/assets/icon.cljs @@ -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])) diff --git a/frontend/src/app/main/ui/ds/foundations/icon.mdx b/frontend/src/app/main/ui/ds/foundations/assets/icon.mdx similarity index 98% rename from frontend/src/app/main/ui/ds/foundations/icon.mdx rename to frontend/src/app/main/ui/ds/foundations/assets/icon.mdx index d83361d79..fc36208dc 100644 --- a/frontend/src/app/main/ui/ds/foundations/icon.mdx +++ b/frontend/src/app/main/ui/ds/foundations/assets/icon.mdx @@ -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: diff --git a/frontend/src/app/main/ui/ds/foundations/icon.scss b/frontend/src/app/main/ui/ds/foundations/assets/icon.scss similarity index 100% rename from frontend/src/app/main/ui/ds/foundations/icon.scss rename to frontend/src/app/main/ui/ds/foundations/assets/icon.scss diff --git a/frontend/src/app/main/ui/ds/foundations/icon.stories.jsx b/frontend/src/app/main/ui/ds/foundations/assets/icon.stories.jsx similarity index 100% rename from frontend/src/app/main/ui/ds/foundations/icon.stories.jsx rename to frontend/src/app/main/ui/ds/foundations/assets/icon.stories.jsx diff --git a/frontend/src/app/main/ui/ds/foundations/raw_svg.clj b/frontend/src/app/main/ui/ds/foundations/assets/raw_svg.clj similarity index 93% rename from frontend/src/app/main/ui/ds/foundations/raw_svg.clj rename to frontend/src/app/main/ui/ds/foundations/assets/raw_svg.clj index 2ba5104ae..814702ef4 100644 --- a/frontend/src/app/main/ui/ds/foundations/raw_svg.clj +++ b/frontend/src/app/main/ui/ds/foundations/assets/raw_svg.clj @@ -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] diff --git a/frontend/src/app/main/ui/ds/foundations/raw_svg.cljs b/frontend/src/app/main/ui/ds/foundations/assets/raw_svg.cljs similarity index 90% rename from frontend/src/app/main/ui/ds/foundations/raw_svg.cljs rename to frontend/src/app/main/ui/ds/foundations/assets/raw_svg.cljs index c89201ace..f6e09ad9f 100644 --- a/frontend/src/app/main/ui/ds/foundations/raw_svg.cljs +++ b/frontend/src/app/main/ui/ds/foundations/assets/raw_svg.cljs @@ -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])) diff --git a/frontend/src/app/main/ui/ds/foundations/raw_svg.mdx b/frontend/src/app/main/ui/ds/foundations/assets/raw_svg.mdx similarity index 91% rename from frontend/src/app/main/ui/ds/foundations/raw_svg.mdx rename to frontend/src/app/main/ui/ds/foundations/assets/raw_svg.mdx index c5eaed507..fcd5e2c09 100644 --- a/frontend/src/app/main/ui/ds/foundations/raw_svg.mdx +++ b/frontend/src/app/main/ui/ds/foundations/assets/raw_svg.mdx @@ -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 diff --git a/frontend/src/app/main/ui/ds/foundations/raw_svg.stories.jsx b/frontend/src/app/main/ui/ds/foundations/assets/raw_svg.stories.jsx similarity index 100% rename from frontend/src/app/main/ui/ds/foundations/raw_svg.stories.jsx rename to frontend/src/app/main/ui/ds/foundations/assets/raw_svg.stories.jsx diff --git a/frontend/src/app/main/ui/ds/foundations/typography.cljs b/frontend/src/app/main/ui/ds/foundations/typography.cljs index 9fd00b2c5..f52b0c583 100644 --- a/frontend/src/app/main/ui/ds/foundations/typography.cljs +++ b/frontend/src/app/main/ui/ds/foundations/typography.cljs @@ -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