lism-css 0.3.5 → 0.5.0

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 (244) 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/index.js +50 -50
  76. package/dist/lib/getBpData.js +1 -1
  77. package/dist/lib/getLismProps.js +109 -177
  78. package/dist/lib/getMaybeCssVar.js +30 -54
  79. package/dist/lib/getMaybeTokenValue.js +26 -0
  80. package/dist/lib/getUtilKey.js +13 -0
  81. package/dist/lib/isPresetValue.js +3 -3
  82. package/dist/lib/isTokenValue.js +6 -5
  83. package/package.json +16 -3
  84. package/packages/astro/Accordion/AccBody.astro +5 -6
  85. package/packages/astro/Accordion/AccHeader.astro +4 -4
  86. package/packages/astro/Accordion/AccHeaderLabel.astro +12 -0
  87. package/packages/astro/Accordion/AccIcon.astro +1 -1
  88. package/packages/astro/Accordion/AccLabel.astro +1 -1
  89. package/packages/astro/Accordion/Accordion.astro +1 -1
  90. package/packages/astro/Accordion/index.js +2 -1
  91. package/packages/astro/Box/Box.astro +2 -3
  92. package/packages/astro/Center/Center.astro +2 -8
  93. package/packages/astro/Cluster/Cluster.astro +5 -0
  94. package/packages/astro/Cluster/index.js +1 -0
  95. package/packages/astro/Columns/Columns.astro +2 -8
  96. package/packages/astro/Container/Container.astro +3 -4
  97. package/packages/astro/Decorator/Decorator.astro +2 -2
  98. package/packages/astro/Divider/Divider.astro +3 -3
  99. package/packages/astro/Dummy/Dummy.astro +3 -2
  100. package/packages/astro/Flex/Flex.astro +1 -10
  101. package/packages/astro/Flex/index.js +0 -1
  102. package/packages/astro/Flow/Flow.astro +5 -0
  103. package/packages/astro/Flow/index.js +1 -0
  104. package/packages/astro/Frame/Frame.astro +1 -8
  105. package/packages/astro/Grid/Grid.astro +1 -9
  106. package/packages/astro/Grid/index.js +0 -1
  107. package/packages/astro/HTML/a.astro +5 -0
  108. package/packages/astro/HTML/button.astro +5 -0
  109. package/packages/astro/HTML/div.astro +5 -0
  110. package/packages/astro/HTML/h.astro +6 -0
  111. package/packages/astro/HTML/img.astro +5 -0
  112. package/packages/astro/HTML/index.js +12 -0
  113. package/packages/astro/HTML/li.astro +5 -0
  114. package/packages/astro/HTML/ol.astro +5 -0
  115. package/packages/astro/HTML/p.astro +5 -0
  116. package/packages/astro/HTML/span.astro +5 -0
  117. package/packages/astro/HTML/ul.astro +5 -0
  118. package/packages/astro/Icon/Icon.astro +3 -5
  119. package/packages/astro/Layer/Layer.astro +3 -10
  120. package/packages/astro/LinkBox/LinkBox.astro +4 -5
  121. package/packages/astro/Lism/Link.astro +2 -2
  122. package/packages/astro/Lism/Lism.astro +4 -3
  123. package/packages/astro/Lism/Text.astro +2 -2
  124. package/packages/astro/Lism/index.js +0 -1
  125. package/packages/astro/{Lism → Media}/Media.astro +1 -9
  126. package/packages/astro/Media/index.js +1 -0
  127. package/packages/astro/Modal/Body.astro +4 -5
  128. package/packages/astro/Modal/CloseBtn.astro +24 -0
  129. package/packages/astro/Modal/Inner.astro +4 -4
  130. package/packages/astro/Modal/Modal.astro +4 -5
  131. package/packages/astro/Modal/OpenBtn.astro +14 -0
  132. package/packages/astro/Modal/index.js +3 -4
  133. package/packages/astro/OverlayLink/OverlayLink.astro +1 -1
  134. package/packages/astro/Spacer/Spacer.astro +3 -3
  135. package/packages/astro/Stack/Stack.astro +2 -4
  136. package/packages/astro/Tabs/Tab.astro +2 -11
  137. package/packages/astro/Tabs/TabList.astro +4 -4
  138. package/packages/astro/Tabs/TabPanel.astro +1 -1
  139. package/packages/astro/Tabs/Tabs.astro +6 -10
  140. package/packages/astro/Test/Test.astro +1 -1
  141. package/packages/astro/Test/TestItem.astro +1 -1
  142. package/packages/astro/WithSide/WithSide.astro +1 -8
  143. package/packages/astro/index.js +6 -2
  144. package/packages/types/index.d.ts +22 -26
  145. package/src/scss/{_props.scss → __props copy.scss } +146 -169
  146. package/src/scss/__props.scss +786 -0
  147. package/src/scss/_auto_output.scss +102 -76
  148. package/src/scss/_prop-config.scss +862 -0
  149. package/src/scss/_setting.scss +2 -3
  150. package/src/scss/_with_layer.scss +19 -14
  151. package/src/scss/base/_dom.scss +35 -26
  152. package/src/scss/base/_property.scss +4 -16
  153. package/src/scss/base/_tokens.scss +105 -116
  154. package/src/scss/base/index.scss +18 -42
  155. package/src/scss/base/set/_hover.scss +13 -0
  156. package/src/scss/base/set/_innerRs.scss +3 -0
  157. package/src/scss/base/set/_mask.scss +6 -0
  158. package/src/scss/base/set/_plain.scss +14 -0
  159. package/src/scss/base/set/_shadow.scss +27 -0
  160. package/src/scss/base/set/_snap.scss +8 -0
  161. package/src/scss/base/set/_transition.scss +20 -0
  162. package/src/scss/main.scss +0 -1
  163. package/src/scss/main_no_layer.scss +6 -14
  164. package/src/scss/modules/atomic/_divider.scss +6 -0
  165. package/src/scss/{layout → modules/atomic}/_icon.scss +3 -9
  166. package/src/scss/modules/atomic/_media.scss +3 -0
  167. package/src/scss/{layout → modules/atomic}/_spacer.scss +1 -1
  168. package/src/scss/modules/atomic/index.scss +6 -0
  169. package/src/scss/{dynamic → modules/dynamic}/_accordion.scss +24 -24
  170. package/src/scss/modules/dynamic/_modal.scss +33 -0
  171. package/src/scss/{dynamic → modules/dynamic}/_tabs.scss +4 -5
  172. package/src/scss/{layout/_flex.scss → modules/layout/_cluster.scss} +1 -4
  173. package/src/scss/modules/layout/_columns.scss +9 -0
  174. package/src/scss/modules/layout/_flex.scss +3 -0
  175. package/src/scss/modules/layout/_flow.scss +46 -0
  176. package/src/scss/{layout → modules/layout}/_frame.scss +1 -1
  177. package/src/scss/modules/layout/_grid.scss +35 -0
  178. package/src/scss/{layout → modules/layout}/_withSide.scss +3 -3
  179. package/src/scss/{layout → modules/layout}/index.scss +4 -6
  180. package/src/scss/modules/state/_container.scss +37 -0
  181. package/src/scss/{state → modules/state}/_linkbox.scss +1 -1
  182. package/src/scss/modules/state/index.scss +5 -0
  183. package/src/scss/props/_border.scss +25 -40
  184. package/src/scss/props/_hover.scss +12 -23
  185. package/src/scss/props/_size.scss +17 -0
  186. package/src/scss/props/index.scss +1 -2
  187. package/src/scss/reset.scss +1 -1
  188. package/src/scss/utility/_cbox.scss +5 -4
  189. package/src/scss/utility/_hidden.scss +14 -0
  190. package/src/scss/utility/_itemDivider.scss +11 -0
  191. package/src/scss/utility/_linkExpand.scss +10 -0
  192. package/src/scss/utility/_trimHL.scss +29 -13
  193. package/src/scss/utility/index.scss +3 -45
  194. package/dist/components/Box/getProps.js +0 -7
  195. package/dist/components/Columns/getProps.js +0 -6
  196. package/dist/components/Decorator/getProps.js +0 -17
  197. package/dist/components/Divider/getProps.js +0 -11
  198. package/dist/components/Divider/index.js +0 -9
  199. package/dist/components/Flex/Cluster.js +0 -8
  200. package/dist/components/Flex/FlexItem.js +0 -8
  201. package/dist/components/Flex/getProps.js +0 -13
  202. package/dist/components/Frame/getProps.js +0 -7
  203. package/dist/components/Grid/GridItem.js +0 -9
  204. package/dist/components/Grid/getProps.js +0 -28
  205. package/dist/components/Icon/getProps.js +0 -60
  206. package/dist/components/Layer/getProps.js +0 -9
  207. package/dist/components/Lism/Media.js +0 -9
  208. package/dist/components/Modal/CloseIconBtn.js +0 -19
  209. package/dist/components/Modal/Footer.js +0 -9
  210. package/dist/components/Modal/Header.js +0 -9
  211. package/dist/components/Spacer/getProps.js +0 -21
  212. package/dist/components/Spacer/index.js +0 -9
  213. package/dist/components/WithSide/getProps.js +0 -14
  214. package/dist/components/getInsetProps.js +0 -8
  215. package/dist/components/getMediaProps.js +0 -7
  216. package/dist/components/getTransformProps.js +0 -8
  217. package/dist/config/prop_list.js +0 -386
  218. package/dist/config/tokens.js +0 -43
  219. package/dist/config.js +0 -9
  220. package/dist/lib/getMaybeUtilValue.js +0 -6
  221. package/packages/astro/Flex/Cluster.astro +0 -11
  222. package/packages/astro/Grid/GridItem.astro +0 -14
  223. package/packages/astro/Modal/CloseIconBtn.astro +0 -24
  224. package/packages/astro/Modal/Footer.astro +0 -14
  225. package/packages/astro/Modal/Header.astro +0 -14
  226. package/src/scss/dynamic/_modal.scss +0 -30
  227. package/src/scss/layout/_columns.scss +0 -13
  228. package/src/scss/layout/_divider.scss +0 -3
  229. package/src/scss/layout/_grid.scss +0 -9
  230. package/src/scss/props/__memo.scss +0 -15
  231. package/src/scss/props/_color.scss +0 -7
  232. package/src/scss/props/_transition.scss +0 -20
  233. package/src/scss/state/_container.scss +0 -34
  234. package/src/scss/state/_flow.scss +0 -45
  235. package/src/scss/state/_size.scss +0 -22
  236. package/src/scss/state/index.scss +0 -12
  237. /package/dist/components/{Icon → atomic/Icon}/SVG.js +0 -0
  238. /package/dist/components/{Icon → atomic/Icon}/presets.js +0 -0
  239. /package/packages/astro/{helper/index.js → helper.js} +0 -0
  240. /package/src/scss/{dynamic → modules/dynamic}/index.scss +0 -0
  241. /package/src/scss/{layout → modules/layout}/_center.scss +0 -0
  242. /package/src/scss/{layout → modules/layout}/_stack.scss +0 -0
  243. /package/src/scss/{state → modules/state}/_gutter.scss +0 -0
  244. /package/src/scss/{state → modules/state}/_layer.scss +0 -0
@@ -1,12 +1,5 @@
1
1
  import a from "../../lib/helper/atts.js";
2
- function o({
3
- lismClass: t,
4
- // variant = 'default',
5
- // isHorizontal,
6
- // keepHeight,
7
- // listProps = {},
8
- ...s
9
- }) {
2
+ function o({ lismClass: t, ...s }) {
10
3
  return {
11
4
  lismClass: a(t, "d--tabs"),
12
5
  ...s
@@ -5,16 +5,16 @@ import v from "./TabItem.js";
5
5
  import P from "./TabList.js";
6
6
  import l from "./TabPanel.js";
7
7
  import g from "./getProps.js";
8
- import k from "../Grid/index.js";
9
- function q({ tabId: d = "", defaultIndex: x = 1, listProps: I = {}, children: n, ...u }) {
10
- const [a, T] = e.useState(x), p = d || e.useId(), o = [], m = [];
8
+ import k from "../Lism/index.js";
9
+ function w({ tabId: x = "", defaultIndex: I = 1, listProps: d = {}, children: n, ...u }) {
10
+ const [a, T] = e.useState(I), p = x || e.useId(), r = [], m = [];
11
11
  return e.Children.forEach(n, (s, h) => {
12
12
  const t = h + 1;
13
- e.isValidElement(s) && s.type === v && e.Children.forEach(s.props.children, (r) => {
14
- if (e.isValidElement(r)) {
15
- if (r.type === b) {
16
- const i = r.props;
17
- o.push(
13
+ e.isValidElement(s) && s.type === v && e.Children.forEach(s.props.children, (o) => {
14
+ if (e.isValidElement(o)) {
15
+ if (o.type === b) {
16
+ const i = o.props;
17
+ r.push(
18
18
  /* @__PURE__ */ f(
19
19
  b,
20
20
  {
@@ -27,31 +27,22 @@ function q({ tabId: d = "", defaultIndex: x = 1, listProps: I = {}, children: n,
27
27
  }
28
28
  )
29
29
  );
30
- } else if (r.type === l) {
31
- const i = r.props;
30
+ } else if (o.type === l) {
31
+ const i = o.props;
32
32
  m.push(
33
- /* @__PURE__ */ f(
34
- l,
35
- {
36
- ...i,
37
- tabId: p,
38
- index: t,
39
- key: t,
40
- isActive: t === a
41
- }
42
- )
33
+ /* @__PURE__ */ f(l, { ...i, tabId: p, index: t, key: t, isActive: t === a })
43
34
  );
44
35
  }
45
36
  }
46
37
  });
47
- }), /* @__PURE__ */ c(k, { ...g(u), children: o.length === 0 ? (
38
+ }), /* @__PURE__ */ c(k, { ...g(u), children: r.length === 0 ? (
48
39
  // TabItemを使わず直接TabListなどを子要素に配置する場合
49
40
  n
50
41
  ) : /* @__PURE__ */ y(E, { children: [
51
- /* @__PURE__ */ c(P, { ...I, children: o }),
42
+ /* @__PURE__ */ c(P, { ...d, children: r }),
52
43
  m
53
44
  ] }) });
54
45
  }
55
46
  export {
56
- q as default
47
+ w as default
57
48
  };
@@ -1,9 +1,8 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { getWithSideProps as i } from "./getProps.js";
1
+ import { jsx as i } from "react/jsx-runtime";
3
2
  import o from "../Lism/index.js";
4
- function p(r) {
5
- return /* @__PURE__ */ t(o, { ...i(r) });
3
+ function m(t) {
4
+ return /* @__PURE__ */ i(o, { layout: "withSide", ...t });
6
5
  }
7
6
  export {
8
- p as default
7
+ m as default
9
8
  };
@@ -0,0 +1,13 @@
1
+ import n from "../../../lib/helper/atts.js";
2
+ import d from "../../getFilterProps.js";
3
+ function c({ lismClass: f, size: r, clipPath: i, boxSizing: e, style: a = {}, ...t }) {
4
+ t = d(t), i && (a.clipPath = i), e && (a.boxSizing = e), r && (t.ar = "1/1", t.w = r), t.style = a;
5
+ const o = {
6
+ lismClass: n(f, "a--decorator"),
7
+ "aria-hidden": "true"
8
+ };
9
+ return Object.assign(o, t);
10
+ }
11
+ export {
12
+ c as default
13
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import t from "./getProps.js";
3
- import m from "../Lism/index.js";
3
+ import m from "../../Lism/index.js";
4
4
  function p(r) {
5
5
  return /* @__PURE__ */ o(m, { ...t(r) });
6
6
  }
@@ -0,0 +1,10 @@
1
+ import e from "../../../lib/helper/atts.js";
2
+ function s({ lismClass: r, ...t }) {
3
+ return { ...{
4
+ lismClass: e(r, "a--divider"),
5
+ "aria-hidden": "true"
6
+ }, ...t };
7
+ }
8
+ export {
9
+ s as getDividerProps
10
+ };
@@ -0,0 +1,9 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { getDividerProps as o } from "./getProps.js";
3
+ import t from "../../Lism/index.js";
4
+ function p(r) {
5
+ return /* @__PURE__ */ i(t, { ...o(r) });
6
+ }
7
+ export {
8
+ p as default
9
+ };
@@ -0,0 +1,59 @@
1
+ import y from "./presets.js";
2
+ import m from "../../../lib/helper/atts.js";
3
+ function C(c) {
4
+ const i = {}, r = c.match(/<svg([^>]*?)>([\s\S]*?)<\/svg>/i);
5
+ if (r) {
6
+ const [, g, u] = r, s = /([\w-]+)=["']([^"']*)["']/g;
7
+ let f;
8
+ for (; (f = s.exec(g)) !== null; ) {
9
+ const [, t, n] = f;
10
+ if (t === "style") {
11
+ const e = {};
12
+ n.split(";").forEach((o) => {
13
+ const [l, a] = o.split(":").map((v) => v.trim());
14
+ l && a && (e[l] = a);
15
+ }), i[t] = e;
16
+ } else
17
+ i[t] = n;
18
+ }
19
+ return { svgProps: i, svgContent: u };
20
+ }
21
+ return {};
22
+ }
23
+ function d({
24
+ lismClass: c,
25
+ className: i = "",
26
+ style: r = {},
27
+ as: g,
28
+ tag: u,
29
+ icon: s,
30
+ label: f,
31
+ exProps: t = {},
32
+ ...n
33
+ }) {
34
+ let e = u || "span", o = "";
35
+ if (n.viewBox)
36
+ e = "svg";
37
+ else if (n.src)
38
+ e = "img";
39
+ else if (s)
40
+ if (typeof s == "string")
41
+ if (s.startsWith("<svg")) {
42
+ e = "_SVG_";
43
+ const { svgProps: l = {}, svgContent: a = "" } = C(s), { class: v, style: h, ...S } = l;
44
+ i = m(i, v), r = { ...r, ...h }, t = { ...t, ...S, fill: "currentColor" }, o = a;
45
+ } else {
46
+ const l = y[s] || null;
47
+ l != null && (e = "_SVG_", t = { ...t, ...l });
48
+ }
49
+ else if (typeof s == "object" && s.as) {
50
+ const { as: l, ...a } = s;
51
+ e = l, t = { ...t, ...a };
52
+ } else
53
+ e = s;
54
+ else g && (e = g);
55
+ return f ? (t["aria-label"] = f, t.role = "img") : t["aria-hidden"] = "true", n.lismClass = m(c, "a--icon", i), n.style = { ...r }, { Component: e, lismProps: n, exProps: t, content: o };
56
+ }
57
+ export {
58
+ d as default
59
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import f from "../../lib/getLismProps.js";
2
+ import f from "../../../lib/getLismProps.js";
3
3
  import n from "./getProps.js";
4
4
  import s from "./SVG.js";
5
5
  function u({ children: m, ...p }) {
@@ -0,0 +1,9 @@
1
+ import a from "../../../lib/helper/atts.js";
2
+ import l from "../../getFilterProps.js";
3
+ function f(e) {
4
+ const { objectPosition: i, objectFit: s, lismClass: r = "", style: t = {}, ...o } = e;
5
+ return i && (t.objectPosition = i), s && (t.objectFit = s), o.lismClass = a(r, "a--media"), o.style = t, l(o);
6
+ }
7
+ export {
8
+ f as default
9
+ };
@@ -0,0 +1,9 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import t from "./getProps.js";
3
+ import i from "../../Lism/index.js";
4
+ function f(r) {
5
+ return /* @__PURE__ */ o(i, { tag: "img", ...t(r) });
6
+ }
7
+ export {
8
+ f as default
9
+ };
@@ -0,0 +1,21 @@
1
+ import s from "../../../lib/helper/atts.js";
2
+ import u from "../../../lib/getBpData.js";
3
+ import c from "../../../lib/getMaybeCssVar.js";
4
+ function h({ lismClass: l, ...e }) {
5
+ const n = {
6
+ lismClass: s(l, "a--spacer"),
7
+ "aria-hidden": "true"
8
+ };
9
+ if (e.h != null) {
10
+ let t = u(e.h);
11
+ t = Object.entries(t).reduce((r, [a, i]) => (r[a] = c(i, "space"), r), {}), e.h = t;
12
+ }
13
+ if (e.w != null) {
14
+ let t = u(e.w);
15
+ t = Object.entries(t).reduce((r, [a, i]) => (r[a] = c(i, "space"), r), {}), e.w = t;
16
+ }
17
+ return { ...n, ...e };
18
+ }
19
+ export {
20
+ h as default
21
+ };
@@ -0,0 +1,9 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import t from "./getProps.js";
3
+ import m from "../../Lism/index.js";
4
+ function i(r) {
5
+ return /* @__PURE__ */ o(m, { ...t(r) });
6
+ }
7
+ export {
8
+ i as default
9
+ };
@@ -1,23 +1,13 @@
1
- const o = [
2
- "blur",
3
- "contrast",
4
- "brightness",
5
- "dropShadow",
6
- "grayscale",
7
- "hueRotate",
8
- "invert",
9
- "saturate",
10
- "sepia"
11
- ];
12
- function u({ css: a = {}, ...t }, r = "fltr") {
13
- const n = [];
14
- return a[r] == null && (o.forEach((e) => {
1
+ const l = ["blur", "contrast", "brightness", "dropShadow", "grayscale", "hueRotate", "invert", "saturate", "sepia"];
2
+ function c(o, a = "filter") {
3
+ const s = [], { style: r = {}, ...t } = o;
4
+ return l.forEach((e) => {
15
5
  if (t[e]) {
16
- const l = e.replace(/([A-Z])/g, "-$1").toLowerCase();
17
- n.push(`${l}(${t[e]})`), delete t[e];
6
+ const n = e.replace(/([A-Z])/g, "-$1").toLowerCase();
7
+ s.push(`${n}(${t[e]})`), delete t[e];
18
8
  }
19
- }), n.length > 0 && (a[r] = n.join(" "))), t.css = a, t;
9
+ }), s.length > 0 && (r[a] = s.join(" ")), t.style = r, t;
20
10
  }
21
11
  export {
22
- u as default
12
+ c as default
23
13
  };
@@ -0,0 +1,27 @@
1
+ import n from "../lib/helper/atts.js";
2
+ import f from "../lib/isTokenValue.js";
3
+ import s from "../lib/getMaybeCssVar.js";
4
+ function d(e, i) {
5
+ if (!e || typeof e != "string") return i;
6
+ const {
7
+ lismClass: r,
8
+ //[layout]: variant,
9
+ ...t
10
+ } = i;
11
+ return t.lismClass = n(r, `l--${e}`), e === "flow" ? a(t) : e === "grid" ? u(t) : e === "withSide" ? l(t) : e === "columns" ? m(t) : t;
12
+ }
13
+ function u({ _propConfig: e = {}, ...i }) {
14
+ return e.gta = { isVar: 1 }, e.gtc = { isVar: 1 }, e.gtr = { isVar: 1 }, i._propConfig = e, i;
15
+ }
16
+ function l({ sideW: e, mainW: i, style: r = {}, ...t }) {
17
+ return e != null && (r["--sideW"] = s("sz", e)), i != null && (r["--mainW"] = s("sz", i)), t.style = r, t;
18
+ }
19
+ function m({ colSize: e, autoType: i, style: r = {}, ...t }) {
20
+ return e && (r["--colSize"] = e), i && (r["--autoType"] = i), t.style = r, t;
21
+ }
22
+ function a({ flow: e, style: i = {}, ...r }) {
23
+ return f("flow", e) ? r.lismClass = n(r.lismClass, `-flow:${e}`) : e && (i["--flow"] = s("space", e)), r.style = i, r;
24
+ }
25
+ export {
26
+ d as default
27
+ };
@@ -0,0 +1,11 @@
1
+ import o from "./defaults/tokens.js";
2
+ import t from "./defaults/props.js";
3
+ import r from "./defaults/states.js";
4
+ const s = {
5
+ tokens: o,
6
+ props: t,
7
+ states: r
8
+ };
9
+ export {
10
+ s as default
11
+ };