lism-css 0.3.5 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/README.md +2 -2
  2. package/bin/build-config.js +157 -0
  3. package/bin/build-css.cjs +92 -0
  4. package/bin/build-css.js +90 -0
  5. package/bin/cli.mjs +69 -0
  6. package/bin/script-build-css.js +6 -0
  7. package/config/__prop_list.js +44 -0
  8. package/config/__props.scss +25 -0
  9. package/config/default-config.js +9 -0
  10. package/config/defaults/__props-memo.js +45 -0
  11. package/config/defaults/props.js +370 -0
  12. package/config/defaults/states.js +42 -0
  13. package/config/defaults/tokens.js +26 -0
  14. package/config/helper/getSvgUrl.js +28 -0
  15. package/config/helper/minifyHtml.js +22 -0
  16. package/config/helper.js +67 -0
  17. package/config/index.js +15 -0
  18. package/config.js +2 -0
  19. package/dist/components/Accordion/AccIcon.js +1 -1
  20. package/dist/components/Accordion/getProps.js +15 -17
  21. package/dist/components/Accordion/index.js +4 -4
  22. package/dist/components/Accordion/index2.js +28 -23
  23. package/dist/components/Accordion/setAccordion.js +11 -11
  24. package/dist/components/Box/index.js +5 -6
  25. package/dist/components/Center/index.js +2 -2
  26. package/dist/components/Cluster/index.js +8 -0
  27. package/dist/components/Columns/index.js +5 -6
  28. package/dist/components/Container/index.js +3 -3
  29. package/dist/components/Dummy/index.js +9 -14
  30. package/dist/components/Dummy/texts.js +6 -6
  31. package/dist/components/Flex/index.js +5 -6
  32. package/dist/components/Flow/index.js +8 -0
  33. package/dist/components/Frame/index.js +5 -6
  34. package/dist/components/Grid/index.js +5 -6
  35. package/dist/components/HTML/index.js +5 -0
  36. package/dist/components/HTML/index2.js +44 -0
  37. package/dist/components/Layer/index.js +5 -5
  38. package/dist/components/LinkBox/index.js +6 -6
  39. package/dist/components/Lism/Link.js +5 -5
  40. package/dist/components/Lism/Text.js +4 -4
  41. package/dist/components/Lism/index.js +5 -4
  42. package/dist/components/Modal/Body.js +5 -5
  43. package/dist/components/Modal/CloseBtn.js +13 -0
  44. package/dist/components/Modal/Inner.js +5 -5
  45. package/dist/components/Modal/OpenBtn.js +9 -0
  46. package/dist/components/Modal/getProps.js +12 -13
  47. package/dist/components/Modal/index.js +4 -5
  48. package/dist/components/Modal/index2.js +12 -12
  49. package/dist/components/Stack/index.js +5 -5
  50. package/dist/components/Tabs/Tab.js +7 -9
  51. package/dist/components/Tabs/TabList.js +4 -4
  52. package/dist/components/Tabs/TabPanel.js +6 -7
  53. package/dist/components/Tabs/getProps.js +1 -8
  54. package/dist/components/Tabs/index2.js +14 -23
  55. package/dist/components/WithSide/index.js +4 -5
  56. package/dist/components/atomic/Decorator/getProps.js +13 -0
  57. package/dist/components/{Decorator → atomic/Decorator}/index.js +1 -1
  58. package/dist/components/atomic/Divider/getProps.js +10 -0
  59. package/dist/components/atomic/Divider/index.js +9 -0
  60. package/dist/components/atomic/Icon/getProps.js +59 -0
  61. package/dist/components/{Icon → atomic/Icon}/index.js +1 -1
  62. package/dist/components/atomic/Media/getProps.js +9 -0
  63. package/dist/components/atomic/Media/index.js +9 -0
  64. package/dist/components/atomic/Spacer/getProps.js +21 -0
  65. package/dist/components/atomic/Spacer/index.js +9 -0
  66. package/dist/components/getFilterProps.js +8 -18
  67. package/dist/components/getLayoutProps.js +27 -0
  68. package/dist/config/default-config.js +11 -0
  69. package/dist/config/defaults/props.js +342 -0
  70. package/dist/config/defaults/states.js +36 -0
  71. package/dist/config/defaults/tokens.js +29 -0
  72. package/dist/config/helper/getSvgUrl.js +4 -0
  73. package/dist/config/helper.js +31 -0
  74. package/dist/config/index.js +11 -0
  75. package/dist/css/base.css +1 -0
  76. package/dist/css/main.css +1 -0
  77. package/dist/css/main_no_layer.css +1 -0
  78. package/dist/css/modules/atomic.css +1 -0
  79. package/dist/css/modules/dynamic.css +1 -0
  80. package/dist/css/modules/layout.css +1 -0
  81. package/dist/css/modules/state.css +1 -0
  82. package/dist/css/props.css +1 -0
  83. package/dist/css/reset.css +1 -0
  84. package/dist/css/utility.css +1 -0
  85. package/dist/index.js +50 -50
  86. package/dist/lib/getBpData.js +1 -1
  87. package/dist/lib/getLismProps.js +109 -177
  88. package/dist/lib/getMaybeCssVar.js +30 -54
  89. package/dist/lib/getMaybeTokenValue.js +26 -0
  90. package/dist/lib/getUtilKey.js +13 -0
  91. package/dist/lib/isPresetValue.js +3 -3
  92. package/dist/lib/isTokenValue.js +6 -5
  93. package/package.json +16 -3
  94. package/packages/astro/Accordion/AccBody.astro +5 -6
  95. package/packages/astro/Accordion/AccHeader.astro +4 -4
  96. package/packages/astro/Accordion/AccHeaderLabel.astro +12 -0
  97. package/packages/astro/Accordion/AccIcon.astro +1 -1
  98. package/packages/astro/Accordion/AccLabel.astro +1 -1
  99. package/packages/astro/Accordion/Accordion.astro +1 -1
  100. package/packages/astro/Accordion/index.js +2 -1
  101. package/packages/astro/Box/Box.astro +2 -3
  102. package/packages/astro/Center/Center.astro +2 -8
  103. package/packages/astro/Cluster/Cluster.astro +5 -0
  104. package/packages/astro/Cluster/index.js +1 -0
  105. package/packages/astro/Columns/Columns.astro +2 -8
  106. package/packages/astro/Container/Container.astro +3 -4
  107. package/packages/astro/Decorator/Decorator.astro +2 -2
  108. package/packages/astro/Divider/Divider.astro +3 -3
  109. package/packages/astro/Dummy/Dummy.astro +3 -2
  110. package/packages/astro/Flex/Flex.astro +1 -10
  111. package/packages/astro/Flex/index.js +0 -1
  112. package/packages/astro/Flow/Flow.astro +5 -0
  113. package/packages/astro/Flow/index.js +1 -0
  114. package/packages/astro/Frame/Frame.astro +1 -8
  115. package/packages/astro/Grid/Grid.astro +1 -9
  116. package/packages/astro/Grid/index.js +0 -1
  117. package/packages/astro/HTML/a.astro +5 -0
  118. package/packages/astro/HTML/button.astro +5 -0
  119. package/packages/astro/HTML/div.astro +5 -0
  120. package/packages/astro/HTML/h.astro +6 -0
  121. package/packages/astro/HTML/img.astro +5 -0
  122. package/packages/astro/HTML/index.js +12 -0
  123. package/packages/astro/HTML/li.astro +5 -0
  124. package/packages/astro/HTML/ol.astro +5 -0
  125. package/packages/astro/HTML/p.astro +5 -0
  126. package/packages/astro/HTML/span.astro +5 -0
  127. package/packages/astro/HTML/ul.astro +5 -0
  128. package/packages/astro/Icon/Icon.astro +3 -5
  129. package/packages/astro/Layer/Layer.astro +3 -10
  130. package/packages/astro/LinkBox/LinkBox.astro +4 -5
  131. package/packages/astro/Lism/Link.astro +2 -2
  132. package/packages/astro/Lism/Lism.astro +4 -3
  133. package/packages/astro/Lism/Text.astro +2 -2
  134. package/packages/astro/Lism/index.js +0 -1
  135. package/packages/astro/{Lism → Media}/Media.astro +1 -9
  136. package/packages/astro/Media/index.js +1 -0
  137. package/packages/astro/Modal/Body.astro +4 -5
  138. package/packages/astro/Modal/CloseBtn.astro +24 -0
  139. package/packages/astro/Modal/Inner.astro +4 -4
  140. package/packages/astro/Modal/Modal.astro +4 -5
  141. package/packages/astro/Modal/OpenBtn.astro +14 -0
  142. package/packages/astro/Modal/index.js +3 -4
  143. package/packages/astro/OverlayLink/OverlayLink.astro +1 -1
  144. package/packages/astro/Spacer/Spacer.astro +3 -3
  145. package/packages/astro/Stack/Stack.astro +2 -4
  146. package/packages/astro/Tabs/Tab.astro +2 -11
  147. package/packages/astro/Tabs/TabList.astro +4 -4
  148. package/packages/astro/Tabs/TabPanel.astro +1 -1
  149. package/packages/astro/Tabs/Tabs.astro +6 -10
  150. package/packages/astro/Test/Test.astro +1 -1
  151. package/packages/astro/Test/TestItem.astro +1 -1
  152. package/packages/astro/WithSide/WithSide.astro +1 -8
  153. package/packages/astro/index.js +6 -2
  154. package/packages/types/index.d.ts +22 -26
  155. package/src/scss/{_props.scss → __props copy.scss } +146 -169
  156. package/src/scss/__props.scss +786 -0
  157. package/src/scss/_auto_output.scss +102 -76
  158. package/src/scss/_prop-config.scss +862 -0
  159. package/src/scss/_setting.scss +2 -3
  160. package/src/scss/_with_layer.scss +19 -14
  161. package/src/scss/base/_dom.scss +35 -26
  162. package/src/scss/base/_property.scss +4 -16
  163. package/src/scss/base/_tokens.scss +105 -116
  164. package/src/scss/base/index.scss +18 -42
  165. package/src/scss/base/set/_hover.scss +13 -0
  166. package/src/scss/base/set/_innerRs.scss +3 -0
  167. package/src/scss/base/set/_mask.scss +6 -0
  168. package/src/scss/base/set/_plain.scss +14 -0
  169. package/src/scss/base/set/_shadow.scss +27 -0
  170. package/src/scss/base/set/_snap.scss +8 -0
  171. package/src/scss/base/set/_transition.scss +20 -0
  172. package/src/scss/main.scss +0 -1
  173. package/src/scss/main_no_layer.scss +6 -14
  174. package/src/scss/modules/atomic/_divider.scss +6 -0
  175. package/src/scss/{layout → modules/atomic}/_icon.scss +3 -9
  176. package/src/scss/modules/atomic/_media.scss +3 -0
  177. package/src/scss/{layout → modules/atomic}/_spacer.scss +1 -1
  178. package/src/scss/modules/atomic/index.scss +6 -0
  179. package/src/scss/{dynamic → modules/dynamic}/_accordion.scss +24 -24
  180. package/src/scss/modules/dynamic/_modal.scss +33 -0
  181. package/src/scss/{dynamic → modules/dynamic}/_tabs.scss +4 -5
  182. package/src/scss/{layout/_flex.scss → modules/layout/_cluster.scss} +1 -4
  183. package/src/scss/modules/layout/_columns.scss +9 -0
  184. package/src/scss/modules/layout/_flex.scss +3 -0
  185. package/src/scss/modules/layout/_flow.scss +46 -0
  186. package/src/scss/{layout → modules/layout}/_frame.scss +1 -1
  187. package/src/scss/modules/layout/_grid.scss +35 -0
  188. package/src/scss/{layout → modules/layout}/_withSide.scss +3 -3
  189. package/src/scss/{layout → modules/layout}/index.scss +4 -6
  190. package/src/scss/modules/state/_container.scss +37 -0
  191. package/src/scss/{state → modules/state}/_linkbox.scss +1 -1
  192. package/src/scss/modules/state/index.scss +5 -0
  193. package/src/scss/props/_border.scss +25 -40
  194. package/src/scss/props/_hover.scss +12 -23
  195. package/src/scss/props/_size.scss +17 -0
  196. package/src/scss/props/index.scss +1 -2
  197. package/src/scss/reset.scss +1 -1
  198. package/src/scss/utility/_cbox.scss +5 -4
  199. package/src/scss/utility/_hidden.scss +14 -0
  200. package/src/scss/utility/_itemDivider.scss +11 -0
  201. package/src/scss/utility/_linkExpand.scss +10 -0
  202. package/src/scss/utility/_trimHL.scss +29 -13
  203. package/src/scss/utility/index.scss +3 -45
  204. package/dist/components/Box/getProps.js +0 -7
  205. package/dist/components/Columns/getProps.js +0 -6
  206. package/dist/components/Decorator/getProps.js +0 -17
  207. package/dist/components/Divider/getProps.js +0 -11
  208. package/dist/components/Divider/index.js +0 -9
  209. package/dist/components/Flex/Cluster.js +0 -8
  210. package/dist/components/Flex/FlexItem.js +0 -8
  211. package/dist/components/Flex/getProps.js +0 -13
  212. package/dist/components/Frame/getProps.js +0 -7
  213. package/dist/components/Grid/GridItem.js +0 -9
  214. package/dist/components/Grid/getProps.js +0 -28
  215. package/dist/components/Icon/getProps.js +0 -60
  216. package/dist/components/Layer/getProps.js +0 -9
  217. package/dist/components/Lism/Media.js +0 -9
  218. package/dist/components/Modal/CloseIconBtn.js +0 -19
  219. package/dist/components/Modal/Footer.js +0 -9
  220. package/dist/components/Modal/Header.js +0 -9
  221. package/dist/components/Spacer/getProps.js +0 -21
  222. package/dist/components/Spacer/index.js +0 -9
  223. package/dist/components/WithSide/getProps.js +0 -14
  224. package/dist/components/getInsetProps.js +0 -8
  225. package/dist/components/getMediaProps.js +0 -7
  226. package/dist/components/getTransformProps.js +0 -8
  227. package/dist/config/prop_list.js +0 -386
  228. package/dist/config/tokens.js +0 -43
  229. package/dist/config.js +0 -9
  230. package/dist/lib/getMaybeUtilValue.js +0 -6
  231. package/packages/astro/Flex/Cluster.astro +0 -11
  232. package/packages/astro/Grid/GridItem.astro +0 -14
  233. package/packages/astro/Modal/CloseIconBtn.astro +0 -24
  234. package/packages/astro/Modal/Footer.astro +0 -14
  235. package/packages/astro/Modal/Header.astro +0 -14
  236. package/src/scss/dynamic/_modal.scss +0 -30
  237. package/src/scss/layout/_columns.scss +0 -13
  238. package/src/scss/layout/_divider.scss +0 -3
  239. package/src/scss/layout/_grid.scss +0 -9
  240. package/src/scss/props/__memo.scss +0 -15
  241. package/src/scss/props/_color.scss +0 -7
  242. package/src/scss/props/_transition.scss +0 -20
  243. package/src/scss/state/_container.scss +0 -34
  244. package/src/scss/state/_flow.scss +0 -45
  245. package/src/scss/state/_size.scss +0 -22
  246. package/src/scss/state/index.scss +0 -12
  247. /package/dist/components/{Icon → atomic/Icon}/SVG.js +0 -0
  248. /package/dist/components/{Icon → atomic/Icon}/presets.js +0 -0
  249. /package/packages/astro/{helper/index.js → helper.js} +0 -0
  250. /package/src/scss/{dynamic → modules/dynamic}/index.scss +0 -0
  251. /package/src/scss/{layout → modules/layout}/_center.scss +0 -0
  252. /package/src/scss/{layout → modules/layout}/_stack.scss +0 -0
  253. /package/src/scss/{state → modules/state}/_gutter.scss +0 -0
  254. /package/src/scss/{state → modules/state}/_layer.scss +0 -0
@@ -1,11 +1,12 @@
1
1
  /*
2
2
  Note: c,bgc,bdc Prop Class より前で読み込む(優先度を下げる)こと。
3
3
  */
4
- .u--cbox {
5
- --c: color-mix(in srgb, var(--c-text), var(--keycolor) var(--cbox--pct-c, 40%));
6
- --bgc: color-mix(in srgb, var(--c-base), var(--keycolor) var(--cbox--pct-bg, 5%));
4
+ .u-cbox {
5
+ --c: color-mix(in srgb, var(--c--text), var(--keycolor) var(--cbox-cPct, 40%));
6
+ --bgc: color-mix(in srgb, var(--c--base), var(--keycolor) var(--cbox-bgPct, 5%));
7
7
  --bdc: var(--keycolor);
8
- --c-link: var(--c);
8
+ --c--link: var(--keycolor);
9
+ // --link-td: underline;
9
10
  color: var(--c);
10
11
  background-color: var(--bgc);
11
12
  }
@@ -0,0 +1,14 @@
1
+ // For screen reader text
2
+
3
+ // .u-hidden--focusable:not(:focus),
4
+ .u-hidden.u-hidden {
5
+ position: absolute;
6
+ width: 1px;
7
+ height: 1px;
8
+ padding: 0;
9
+ margin: -1px;
10
+ overflow: hidden;
11
+ clip: rect(0, 0, 0, 0);
12
+ white-space: nowrap;
13
+ border: 0;
14
+ }
@@ -0,0 +1,11 @@
1
+ .u-itemDivider {
2
+ --bdw: 1px;
3
+ --bdc: currentColor;
4
+ gap: var(--bdw);
5
+ // padding: var(--bdw); → 外枠も見せるなら
6
+ overflow: clip;
7
+
8
+ & > * {
9
+ box-shadow: 0 0 0 var(--bdw) var(--bdc);
10
+ }
11
+ }
@@ -0,0 +1,10 @@
1
+ .u-expandedLink {
2
+ position: static;
3
+
4
+ &::before {
5
+ position: absolute;
6
+ inset: 0;
7
+ z-index: 0;
8
+ content: '';
9
+ }
10
+ }
@@ -1,18 +1,34 @@
1
- table,
2
- figure,
3
- img,
4
- video {
5
- --trimHL: 0px;
6
- }
1
+ // そのうち text-box-trim が使える
7
2
 
8
- .u--trimHL {
9
- margin-block: var(--trimHL);
3
+ .u-trim {
4
+ // 詰まりすぎにならないようにほんの少しだけ余裕を持たせる
5
+ margin-block: calc(0.5px + var(--HL) * -1);
10
6
  }
11
- .u--trimBox {
12
- > :first-child {
13
- margin-block-start: var(--trimHL);
7
+
8
+ /*
9
+ --HL とは別に --trimHL を定義しているのは、トリミング除外要素で 0px に上書きしても --HL 自体の値は無効にしないようにするため。
10
+ これにより、imgに対してmargin-block-start:var(--HL) を適用して余白を揃えたりできる。
11
+ */
12
+
13
+ .u-trimItems {
14
+ > * {
15
+ --trimHL: calc(0.5px + var(--HL) * -1);
16
+ margin-block: var(--trimHL);
14
17
  }
15
- > :last-child {
16
- margin-block-end: var(--trimHL);
18
+
19
+ > :where(figure, img, button) {
20
+ --trimHL: 0px;
17
21
  }
18
22
  }
23
+
24
+ // .u-trimBox {
25
+ // :where(&) > * {
26
+ // --trimHL: calc(0.5px + var(--HL) * -1);
27
+ // }
28
+ // > :first-child {
29
+ // margin-block-start: var(--trimHL);
30
+ // }
31
+ // > :last-child {
32
+ // margin-block-end: var(--trimHL);
33
+ // }
34
+ // }
@@ -1,47 +1,5 @@
1
1
  @forward './trimHL';
2
2
  @forward './cbox';
3
-
4
- // for screen reader
5
- .u--hidden {
6
- position: absolute;
7
- width: 1px;
8
- height: 1px;
9
- padding: 0;
10
- margin: -1px;
11
- overflow: hidden;
12
- clip: rect(0, 0, 0, 0);
13
- white-space: nowrap;
14
- border-width: 0;
15
- }
16
-
17
- .u--overlayLink {
18
- text-decoration: none;
19
- position: static;
20
- color: inherit;
21
-
22
- &::before {
23
- position: absolute;
24
- inset: 0;
25
- z-index: 0;
26
- content: '';
27
- }
28
- }
29
-
30
- // 次の要素の mbs を 0 にする。(hidden要素 や absoluteな要素が先頭に入り込んでいる時などに活用できる。)
31
- .u--skipFlow + * {
32
- --mbs: 0;
33
- }
34
-
35
- // background-clip: text;は -webkit-
36
- .u--clipText {
37
- color: transparent;
38
- -webkit-background-clip: text !important;
39
- background-clip: text !important;
40
- }
41
-
42
- .u--outerR {
43
- --inner-bdrs: calc(var(--bdrs, 0px) - var(--p, 0px));
44
- }
45
- .u--innerR {
46
- border-radius: var(--inner-bdrs);
47
- }
3
+ @forward './itemDivider';
4
+ @forward './linkExpand';
5
+ @forward './hidden';
@@ -1,7 +0,0 @@
1
- import r from "../../lib/helper/atts.js";
2
- function a({ lismClass: o, ...t }) {
3
- return t.lismClass = r(o, "l--box"), t;
4
- }
5
- export {
6
- a as default
7
- };
@@ -1,6 +0,0 @@
1
- function e({ colSize: n, autoType: t, style: f = {}, ...u }) {
2
- return n && (f["--colSize"] = n), t && (f["--autoType"] = t), u.style = f, u;
3
- }
4
- export {
5
- e as default
6
- };
@@ -1,17 +0,0 @@
1
- import i from "../../lib/helper/atts.js";
2
- import m from "../getTransformProps.js";
3
- import a from "../getInsetProps.js";
4
- import s from "../getFilterProps.js";
5
- import { getGridItemProps as f } from "../Grid/getProps.js";
6
- function P({ lismClass: o, size: r, ...t }) {
7
- t = f(s(m(a(t)))), r && (t.ar = "1/1", t.w = r);
8
- const e = {
9
- lismClass: i(o, "l--decorator"),
10
- skipState: !0,
11
- "aria-hidden": "true"
12
- };
13
- return Object.assign(e, t);
14
- }
15
- export {
16
- P as default
17
- };
@@ -1,11 +0,0 @@
1
- import e from "../../lib/helper/atts.js";
2
- function d({ lismClass: r, ...t }) {
3
- return { ...{
4
- lismClass: e(r, "l--divider"),
5
- bd: "bs",
6
- "aria-hidden": "true"
7
- }, ...t };
8
- }
9
- export {
10
- d as getDividerProps
11
- };
@@ -1,9 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { getDividerProps as i } from "./getProps.js";
3
- import o from "../Lism/index.js";
4
- function f(r) {
5
- return /* @__PURE__ */ t(o, { skipState: !0, ...i(r) });
6
- }
7
- export {
8
- f as default
9
- };
@@ -1,8 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import e from "./index.js";
3
- function a(r) {
4
- return /* @__PURE__ */ t(e, { variant: "cluster", ...r });
5
- }
6
- export {
7
- a as default
8
- };
@@ -1,8 +0,0 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import e from "../Lism/index.js";
3
- function p({ children: o, layout: m, ...t }) {
4
- return /* @__PURE__ */ n(m || e, { ...t, children: o });
5
- }
6
- export {
7
- p as default
8
- };
@@ -1,13 +0,0 @@
1
- import t from "../../lib/helper/atts.js";
2
- function x(f) {
3
- return f.flex == null && (f.flex = {}), ["fxf", "fxd", "fxw"].forEach((l) => {
4
- f[l] != null && (f.flex[l] = f[l], delete f[l]);
5
- }), f;
6
- }
7
- function i({ _flex: f = "flex", lismClass: l, ...e }) {
8
- return e.lismClass = t(l, `l--${f}`), x(e);
9
- }
10
- export {
11
- i as getFlexProps,
12
- x as mergeFlexContextProps
13
- };
@@ -1,7 +0,0 @@
1
- import a from "../../lib/helper/atts.js";
2
- function o({ lismClass: r, ...t }) {
3
- return t.lismClass = a(r, "l--frame"), t;
4
- }
5
- export {
6
- o as default
7
- };
@@ -1,9 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { getGridItemProps as i } from "./getProps.js";
3
- import e from "../Lism/index.js";
4
- function d({ children: o, layout: m, ...t }) {
5
- return /* @__PURE__ */ r(m || e, { ...i(t), children: o });
6
- }
7
- export {
8
- d as default
9
- };
@@ -1,28 +0,0 @@
1
- import e from "../../lib/helper/atts.js";
2
- function r(g) {
3
- return g.grid == null && (g.grid = {}), ["gd", "gt", "gta", "gtc", "gtr", "gaf", "gar", "gac"].forEach((t) => {
4
- g[t] != null && (g.grid[t] = g[t], delete g[t]);
5
- }), g;
6
- }
7
- function d({ _grid: g = "grid", lismClass: t, ...i }) {
8
- return i = r(i), i.lismClass = e(t, `l--${g}`), i;
9
- }
10
- function l(g) {
11
- return g.gridItem == null && (g.gridItem = {}), [
12
- "ga",
13
- "gc",
14
- "gr",
15
- "gcs",
16
- "gce",
17
- "grs",
18
- "gre"
19
- //'aslf', 'jslf', 'pslf', 'ord'
20
- ].forEach((t) => {
21
- g[t] != null && (g.gridItem[t] = g[t], delete g[t]);
22
- }), g;
23
- }
24
- export {
25
- l as getGridItemProps,
26
- d as getGridProps,
27
- r as mergeGridContextProps
28
- };
@@ -1,60 +0,0 @@
1
- import p from "./presets.js";
2
- import h from "../../lib/helper/atts.js";
3
- function b(c) {
4
- const i = {}, l = c.match(/<svg([^>]*?)>([\s\S]*?)<\/svg>/i);
5
- if (l) {
6
- const [, g, v] = l, u = /([\w-]+)=["']([^"']*)["']/g;
7
- let a;
8
- for (; (a = u.exec(g)) !== null; ) {
9
- const [, t, f] = a;
10
- if (t === "style") {
11
- const s = {};
12
- f.split(";").forEach((r) => {
13
- const [e, o] = r.split(":").map((n) => n.trim());
14
- e && o && (s[e] = o);
15
- }), i[t] = s;
16
- } else
17
- i[t] = f;
18
- }
19
- return { svgProps: i, svgContent: v };
20
- }
21
- return {};
22
- }
23
- function w({
24
- lismClass: c,
25
- className: i = "",
26
- style: l = {},
27
- // variant,
28
- as: g,
29
- tag: v,
30
- scale: u,
31
- offset: a,
32
- icon: t,
33
- label: f,
34
- exProps: s = {},
35
- ...r
36
- }) {
37
- let e = v || "span", o = "";
38
- if (r.viewBox)
39
- e = "svg";
40
- else if (t)
41
- if (typeof t == "string")
42
- if (t.startsWith("<svg")) {
43
- e = "_SVG_";
44
- const { svgProps: n = {}, svgContent: m = "" } = b(t), { class: S, style: C, ..._ } = n;
45
- i = h(i, S), l = { ...l, ...C }, s = { ...s, ..._, fill: "currentColor" }, o = m;
46
- } else {
47
- const n = p[t] || null;
48
- n != null && (e = "_SVG_", s = { ...s, ...n });
49
- }
50
- else if (typeof t == "object" && t.as) {
51
- const { as: n, ...m } = t;
52
- e = n, s = { ...s, ...m };
53
- } else
54
- e = t;
55
- else g && (e = g);
56
- return f ? (s["aria-label"] = f, s.role = "img") : s["aria-hidden"] = "true", u && (l["--scale"] = u), a && (l["--offset"] = a), r.lismClass = h(c, "l--icon", i), r.style = { ...l }, { Component: e, lismProps: r, exProps: s, content: o };
57
- }
58
- export {
59
- w as default
60
- };
@@ -1,9 +0,0 @@
1
- import e from "../getInsetProps.js";
2
- import o from "../getFilterProps.js";
3
- function f(t) {
4
- let r = e(t);
5
- return r = o(r, "bdfltr"), r;
6
- }
7
- export {
8
- f as getLayerProps
9
- };
@@ -1,9 +0,0 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import e from "../../lib/getLismProps.js";
3
- import p from "../getMediaProps.js";
4
- function d({ as: o, exProps: r, tag: t, ...i }) {
5
- return /* @__PURE__ */ m(o || t || "img", { ...e(p(i)), ...r });
6
- }
7
- export {
8
- d as default
9
- };
@@ -1,19 +0,0 @@
1
- import { jsx as o, jsxs as l, Fragment as m } from "react/jsx-runtime";
2
- import { defaultProps as a } from "./getProps.js";
3
- import i from "../Lism/index.js";
4
- import c from "../Icon/index.js";
5
- function x({
6
- children: r,
7
- modalId: e = "",
8
- icon: s,
9
- srText: n = "Close",
10
- ...t
11
- }) {
12
- return /* @__PURE__ */ o(i, { "data-modal-close": e, ...a.closeBtn, ...t, children: r || /* @__PURE__ */ l(m, { children: [
13
- /* @__PURE__ */ o(c, { icon: s || "x" }),
14
- /* @__PURE__ */ o("span", { className: "u--hidden", children: n || "Close" })
15
- ] }) });
16
- }
17
- export {
18
- x as default
19
- };
@@ -1,9 +0,0 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import { defaultProps as m } from "./getProps.js";
3
- import a from "../Lism/index.js";
4
- function s({ layout: o, children: t, ...r }) {
5
- return /* @__PURE__ */ f(o || a, { ...m.footer, ...r, children: t });
6
- }
7
- export {
8
- s as default
9
- };
@@ -1,9 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { defaultProps as e } from "./getProps.js";
3
- import m from "../Lism/index.js";
4
- function p({ children: o, layout: r, ...t }) {
5
- return /* @__PURE__ */ a(r || m, { ...e.header, ...t, children: o });
6
- }
7
- export {
8
- p as default
9
- };
@@ -1,21 +0,0 @@
1
- import s from "../../lib/helper/atts.js";
2
- import l from "../../lib/getBpData.js";
3
- import u from "../../lib/getMaybeCssVar.js";
4
- function h({ lismClass: c, ...e }) {
5
- const n = {
6
- lismClass: s(c, "l--spacer"),
7
- "aria-hidden": "true"
8
- };
9
- if (e.h != null) {
10
- let t = l(e.h);
11
- t = Object.entries(t).reduce((r, [a, i]) => (r[a] = u(i, "space"), r), {}), e.h = t;
12
- }
13
- if (e.w != null) {
14
- let t = l(e.w);
15
- t = Object.entries(t).reduce((r, [a, i]) => (r[a] = u(i, "space"), r), {}), e.w = t;
16
- }
17
- return { ...n, ...e };
18
- }
19
- export {
20
- h as default
21
- };
@@ -1,9 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import o from "./getProps.js";
3
- import e from "../Lism/index.js";
4
- function a(r) {
5
- return /* @__PURE__ */ t(e, { skipState: !0, ...o(r) });
6
- }
7
- export {
8
- a as default
9
- };
@@ -1,14 +0,0 @@
1
- import n from "../../lib/helper/atts.js";
2
- import { mergeFlexContextProps as l } from "../Flex/getProps.js";
3
- function f({ lismClass: o, sideW: t, mainW: r, style: i = {}, ...e }) {
4
- return t != null && (i["--sideW"] = t), r != null && (i["--mainW"] = r), Object.assign(
5
- {
6
- lismClass: n(o, "l--withSide"),
7
- style: i
8
- },
9
- l(e)
10
- );
11
- }
12
- export {
13
- f as getWithSideProps
14
- };
@@ -1,8 +0,0 @@
1
- function n({ i_: t = {}, ...i }) {
2
- return ["iis", "iie", "ibs", "ibe"].forEach((e) => {
3
- i[e] != null && (t[e] = i[e], delete i[e]);
4
- }), i.i_ = t, i;
5
- }
6
- export {
7
- n as default
8
- };
@@ -1,7 +0,0 @@
1
- import f from "./getFilterProps.js";
2
- function a({ obf: e, obp: r, css: t = {}, ...i }) {
3
- return e && (t.obf = e), r && (t.obp = r), i.css = t, f(i);
4
- }
5
- export {
6
- a as default
7
- };
@@ -1,8 +0,0 @@
1
- function f(t) {
2
- return t.css == null && (t.css = {}), ["trf", "trfo", "trnslt", "rotate", "scale", "clipPath"].forEach((l) => {
3
- t[l] != null && (t.css[l] = t[l], delete t[l]);
4
- }), t;
5
- }
6
- export {
7
- f as default
8
- };