@lism-css/ui 0.11.0 → 0.12.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 (207) hide show
  1. package/README.md +1 -1
  2. package/dist/components/Accordion/Accordion.stories.d.ts +7 -0
  3. package/dist/components/Accordion/getProps.d.ts +55 -42
  4. package/dist/components/Accordion/getProps.js +36 -32
  5. package/dist/components/Accordion/react/AccIcon.d.ts +2 -1
  6. package/dist/components/Accordion/react/Accordion.d.ts +12 -21
  7. package/dist/components/Accordion/react/Accordion.js +30 -29
  8. package/dist/components/Accordion/react/index.d.ts +10 -11
  9. package/dist/components/Accordion/setAccordion.d.ts +6 -3
  10. package/dist/components/Accordion/setAccordion.js +12 -10
  11. package/dist/components/Alert/Alert.stories.d.ts +13 -0
  12. package/dist/components/Alert/getProps.d.ts +6 -4
  13. package/dist/components/Alert/react/Alert.d.ts +3 -4
  14. package/dist/components/Alert/react/Alert.js +2 -2
  15. package/dist/components/Avatar/Avatar.stories.d.ts +8 -0
  16. package/dist/components/Avatar/react/Avatar.d.ts +10 -6
  17. package/dist/components/Avatar/react/Avatar.js +1 -1
  18. package/dist/components/Badge/Badge.stories.d.ts +8 -0
  19. package/dist/components/Badge/react/Badge.d.ts +3 -1
  20. package/dist/components/Badge/react/Badge.js +5 -8
  21. package/dist/components/Button/Button.stories.d.ts +8 -0
  22. package/dist/components/Button/react/Button.d.ts +3 -1
  23. package/dist/components/Button/react/Button.js +3 -6
  24. package/dist/components/Callout/Callout.stories.d.ts +12 -0
  25. package/dist/components/Callout/getProps.d.ts +3 -2
  26. package/dist/components/Callout/react/Callout.d.ts +3 -4
  27. package/dist/components/Callout/react/Callout.js +4 -4
  28. package/dist/components/Chat/Chat.stories.d.ts +9 -0
  29. package/dist/components/Chat/getProps.d.ts +43 -44
  30. package/dist/components/Chat/getProps.js +2 -2
  31. package/dist/components/Chat/react/Chat.d.ts +11 -7
  32. package/dist/components/Chat/react/Chat.js +10 -10
  33. package/dist/components/Details/Details.stories.d.ts +6 -0
  34. package/dist/components/Details/getProps.d.ts +34 -35
  35. package/dist/components/Details/getProps.js +16 -6
  36. package/dist/components/Details/react/Details.d.ts +11 -20
  37. package/dist/components/Details/react/Details.js +15 -15
  38. package/dist/components/Details/react/index.d.ts +7 -7
  39. package/dist/components/DummyImage/DummyImage.stories.d.ts +7 -0
  40. package/dist/components/DummyText/DummyText.stories.d.ts +9 -0
  41. package/dist/components/Modal/Modal.stories.d.ts +6 -0
  42. package/dist/components/Modal/getProps.d.ts +36 -36
  43. package/dist/components/Modal/getProps.js +36 -17
  44. package/dist/components/Modal/react/Body.d.ts +2 -4
  45. package/dist/components/Modal/react/CloseBtn.d.ts +9 -7
  46. package/dist/components/Modal/react/CloseBtn.js +5 -5
  47. package/dist/components/Modal/react/Inner.d.ts +3 -4
  48. package/dist/components/Modal/react/Modal.d.ts +4 -4
  49. package/dist/components/Modal/react/Modal.js +11 -9
  50. package/dist/components/Modal/react/OpenBtn.d.ts +7 -5
  51. package/dist/components/Modal/react/OpenBtn.js +4 -4
  52. package/dist/components/Modal/react/index.d.ts +7 -8
  53. package/dist/components/NavMenu/NavMenu.stories.d.ts +7 -0
  54. package/dist/components/NavMenu/getProps.d.ts +31 -29
  55. package/dist/components/NavMenu/react/NavMenu.d.ts +6 -16
  56. package/dist/components/NavMenu/react/NavMenu.js +21 -17
  57. package/dist/components/NavMenu/react/index.d.ts +6 -6
  58. package/dist/components/ShapeDivider/ShapeDivider.stories.d.ts +10 -0
  59. package/dist/components/ShapeDivider/getProps.d.ts +16 -11
  60. package/dist/components/ShapeDivider/getProps.js +10 -12
  61. package/dist/components/ShapeDivider/react/ShapeDivider.d.ts +3 -4
  62. package/dist/components/ShapeDivider/react/ShapeDivider.js +3 -3
  63. package/dist/components/Tabs/Tabs.stories.d.ts +6 -0
  64. package/dist/components/Tabs/getProps.d.ts +11 -4
  65. package/dist/components/Tabs/getProps.js +14 -4
  66. package/dist/components/Tabs/react/Tab.d.ts +8 -6
  67. package/dist/components/Tabs/react/Tab.js +15 -6
  68. package/dist/components/Tabs/react/TabItem.d.ts +7 -4
  69. package/dist/components/Tabs/react/TabList.d.ts +2 -1
  70. package/dist/components/Tabs/react/TabPanel.d.ts +8 -6
  71. package/dist/components/Tabs/react/Tabs.d.ts +9 -7
  72. package/dist/components/Tabs/react/Tabs.js +50 -36
  73. package/dist/components/Tabs/react/index.d.ts +8 -8
  74. package/dist/components/Tabs/setTabs.d.ts +1 -1
  75. package/dist/components/Tabs/setTabs.js +25 -15
  76. package/dist/lism-css/dist/components/{Center → layout/Center}/index.js +1 -1
  77. package/dist/lism-css/dist/components/{Flex → layout/Flex}/index.js +1 -1
  78. package/dist/lism-css/dist/components/{Flow → layout/Flow}/index.js +1 -1
  79. package/dist/lism-css/dist/components/{Frame → layout/Frame}/index.js +1 -1
  80. package/dist/lism-css/dist/components/{Grid → layout/Grid}/index.js +1 -1
  81. package/dist/lism-css/dist/components/{Stack → layout/Stack}/index.js +1 -1
  82. package/dist/lism-css/dist/config/defaults/props.js +16 -26
  83. package/dist/lism-css/dist/config/defaults/states.js +3 -23
  84. package/dist/lism-css/dist/lib/getLayoutProps.js +6 -9
  85. package/dist/lism-css/dist/lib/getLismProps.js +94 -92
  86. package/dist/lism-css/dist/lib/helper/mergeSet.js +14 -0
  87. package/dist/style.css +1 -1
  88. package/dist/ui.css +1 -1
  89. package/package.json +14 -7
  90. package/src/components/Accordion/Accordion.stories.tsx +105 -0
  91. package/src/components/Accordion/astro/Button.astro +2 -2
  92. package/src/components/Accordion/getProps.ts +91 -0
  93. package/src/components/Accordion/react/{AccIcon.jsx → AccIcon.tsx} +2 -2
  94. package/src/components/Accordion/react/{Accordion.jsx → Accordion.tsx} +33 -11
  95. package/src/components/Accordion/setAccordion.ts +120 -0
  96. package/src/components/Alert/Alert.stories.tsx +64 -0
  97. package/src/components/Alert/getProps.ts +5 -3
  98. package/src/components/Alert/react/Alert.tsx +3 -3
  99. package/src/components/Avatar/Avatar.stories.tsx +42 -0
  100. package/src/components/Avatar/react/Avatar.tsx +17 -0
  101. package/src/components/Badge/Badge.stories.tsx +40 -0
  102. package/src/components/Badge/astro/Badge.astro +1 -7
  103. package/src/components/Badge/react/Badge.tsx +7 -0
  104. package/src/components/Button/Button.stories.tsx +44 -0
  105. package/src/components/Button/astro/Button.astro +1 -7
  106. package/src/components/Button/react/Button.tsx +7 -0
  107. package/src/components/Callout/Callout.stories.tsx +55 -0
  108. package/src/components/Callout/getProps.ts +3 -2
  109. package/src/components/Callout/react/Callout.tsx +3 -3
  110. package/src/components/Chat/Chat.stories.tsx +58 -0
  111. package/src/components/Chat/_style.css +5 -5
  112. package/src/components/Chat/{getProps.js → getProps.ts} +10 -4
  113. package/src/components/Chat/react/{Chat.jsx → Chat.tsx} +13 -3
  114. package/src/components/Details/Details.stories.tsx +61 -0
  115. package/src/components/Details/astro/Title.astro +2 -2
  116. package/src/components/Details/{getProps.js → getProps.ts} +19 -6
  117. package/src/components/Details/react/Details.tsx +69 -0
  118. package/src/components/DummyImage/DummyImage.stories.tsx +23 -0
  119. package/src/components/DummyText/DummyText.stories.tsx +48 -0
  120. package/src/components/Modal/Modal.stories.tsx +67 -0
  121. package/src/components/Modal/astro/CloseBtn.astro +2 -2
  122. package/src/components/Modal/astro/OpenBtn.astro +2 -3
  123. package/src/components/Modal/getProps.ts +65 -0
  124. package/src/components/Modal/react/Body.tsx +10 -0
  125. package/src/components/Modal/react/CloseBtn.tsx +24 -0
  126. package/src/components/Modal/react/Inner.tsx +6 -0
  127. package/src/components/Modal/react/Modal.tsx +24 -0
  128. package/src/components/Modal/react/OpenBtn.tsx +15 -0
  129. package/src/components/Modal/{script.js → script.ts} +1 -1
  130. package/src/components/NavMenu/NavMenu.stories.tsx +68 -0
  131. package/src/components/NavMenu/getProps.ts +60 -0
  132. package/src/components/NavMenu/react/NavMenu.tsx +40 -0
  133. package/src/components/ShapeDivider/ShapeDivider.stories.tsx +87 -0
  134. package/src/components/ShapeDivider/getProps.ts +36 -0
  135. package/src/components/ShapeDivider/react/{ShapeDivider.jsx → ShapeDivider.tsx} +4 -4
  136. package/src/components/Tabs/Tabs.stories.tsx +79 -0
  137. package/src/components/Tabs/astro/Tab.astro +2 -1
  138. package/src/components/Tabs/astro/{transformTabitems.js → transformTabitems.ts} +9 -9
  139. package/src/components/Tabs/getProps.ts +23 -0
  140. package/src/components/Tabs/react/Tab.tsx +21 -0
  141. package/src/components/Tabs/react/TabItem.tsx +13 -0
  142. package/src/components/Tabs/react/TabList.tsx +5 -0
  143. package/src/components/Tabs/react/{TabPanel.jsx → TabPanel.tsx} +8 -3
  144. package/src/components/Tabs/react/{Tabs.jsx → Tabs.tsx} +27 -12
  145. package/src/components/Tabs/{script.js → script.ts} +2 -2
  146. package/src/components/Tabs/setTabs.ts +65 -0
  147. package/src/helper/{uuid.js → uuid.ts} +2 -2
  148. package/src/vite-env.d.ts +1 -0
  149. package/dist/components/Accordion/astro/__setEvent.d.ts +0 -1
  150. package/dist/components/Accordion/astro/index.d.ts +0 -15
  151. package/dist/components/Alert/astro/index.d.ts +0 -1
  152. package/dist/components/Callout/astro/index.d.ts +0 -1
  153. package/dist/components/Details/astro/index.d.ts +0 -13
  154. package/dist/components/DummyImage/astro/index.d.ts +0 -1
  155. package/dist/components/DummyText/astro/index.d.ts +0 -1
  156. package/dist/components/Modal/astro/index.d.ts +0 -13
  157. package/dist/components/NavMenu/astro/index.d.ts +0 -11
  158. package/dist/components/Tabs/astro/index.d.ts +0 -13
  159. package/dist/components/Tabs/astro/transformTabitems.d.ts +0 -4
  160. package/dist/components/astro.d.ts +0 -14
  161. package/dist/lism-css/dist/config/helper/getSvgUrl.js +0 -4
  162. package/src/components/Accordion/getProps.js +0 -77
  163. package/src/components/Accordion/setAccordion.js +0 -146
  164. package/src/components/Avatar/astro/index.js +0 -1
  165. package/src/components/Avatar/react/Avatar.jsx +0 -9
  166. package/src/components/Badge/astro/index.js +0 -1
  167. package/src/components/Badge/react/Badge.jsx +0 -12
  168. package/src/components/Button/astro/index.js +0 -1
  169. package/src/components/Button/react/Button.jsx +0 -12
  170. package/src/components/Chat/astro/index.js +0 -1
  171. package/src/components/Details/react/Details.jsx +0 -66
  172. package/src/components/Modal/getProps.js +0 -30
  173. package/src/components/Modal/react/Body.jsx +0 -10
  174. package/src/components/Modal/react/CloseBtn.jsx +0 -20
  175. package/src/components/Modal/react/Inner.jsx +0 -6
  176. package/src/components/Modal/react/Modal.jsx +0 -23
  177. package/src/components/Modal/react/OpenBtn.jsx +0 -11
  178. package/src/components/NavMenu/getProps.js +0 -65
  179. package/src/components/NavMenu/react/NavMenu.jsx +0 -19
  180. package/src/components/ShapeDivider/astro/index.js +0 -1
  181. package/src/components/ShapeDivider/getProps.js +0 -40
  182. package/src/components/Tabs/getProps.js +0 -8
  183. package/src/components/Tabs/react/Tab.jsx +0 -10
  184. package/src/components/Tabs/react/TabItem.jsx +0 -5
  185. package/src/components/Tabs/react/TabList.jsx +0 -6
  186. package/src/components/Tabs/setTabs.js +0 -87
  187. /package/src/components/Accordion/astro/{index.js → index.ts} +0 -0
  188. /package/src/components/Accordion/react/{index.js → index.ts} +0 -0
  189. /package/src/components/Accordion/{script.js → script.ts} +0 -0
  190. /package/{dist/components/Avatar/astro/index.d.ts → src/components/Avatar/astro/index.ts} +0 -0
  191. /package/src/components/Avatar/react/{index.js → index.ts} +0 -0
  192. /package/{dist/components/Badge/astro/index.d.ts → src/components/Badge/astro/index.ts} +0 -0
  193. /package/src/components/Badge/react/{index.js → index.ts} +0 -0
  194. /package/{dist/components/Button/astro/index.d.ts → src/components/Button/astro/index.ts} +0 -0
  195. /package/src/components/Button/react/{index.js → index.ts} +0 -0
  196. /package/{dist/components/Chat/astro/index.d.ts → src/components/Chat/astro/index.ts} +0 -0
  197. /package/src/components/Chat/react/{index.js → index.ts} +0 -0
  198. /package/src/components/Details/astro/{index.js → index.ts} +0 -0
  199. /package/src/components/Details/react/{index.js → index.ts} +0 -0
  200. /package/src/components/Modal/astro/{index.js → index.ts} +0 -0
  201. /package/src/components/Modal/react/{index.js → index.ts} +0 -0
  202. /package/src/components/NavMenu/astro/{index.js → index.ts} +0 -0
  203. /package/src/components/NavMenu/react/{index.js → index.ts} +0 -0
  204. /package/{dist/components/ShapeDivider/astro/index.d.ts → src/components/ShapeDivider/astro/index.ts} +0 -0
  205. /package/src/components/ShapeDivider/react/{index.js → index.ts} +0 -0
  206. /package/src/components/Tabs/astro/{index.js → index.ts} +0 -0
  207. /package/src/components/Tabs/react/{index.js → index.ts} +0 -0
@@ -1,28 +1,38 @@
1
- function u(t) {
1
+ function d(t) {
2
2
  t.preventDefault();
3
- const r = t.currentTarget;
4
- i(r);
3
+ const s = t.currentTarget;
4
+ u(s);
5
5
  }
6
- const i = (t) => {
6
+ const u = (t) => {
7
7
  if (t.getAttribute("aria-selected") === "true") return;
8
- const e = t.getAttribute("aria-controls"), n = document.getElementById(e);
9
- if (n === null) return;
10
- const s = t.parentNode.parentNode.querySelector('[aria-selected="true"]'), o = s.getAttribute("aria-controls"), a = document.getElementById(o);
11
- t.setAttribute("aria-selected", "true"), s.setAttribute("aria-selected", "false"), a.setAttribute("aria-hidden", "true"), n.setAttribute("aria-hidden", "false");
8
+ const e = t.getAttribute("aria-controls");
9
+ if (!e) return;
10
+ const i = document.getElementById(e);
11
+ if (i === null) return;
12
+ const o = t.parentNode?.parentNode;
13
+ if (!o) return;
14
+ const a = o.querySelector('[aria-selected="true"]');
15
+ if (!a) return;
16
+ const r = a.getAttribute("aria-controls");
17
+ if (!r) return;
18
+ const n = document.getElementById(r);
19
+ t.setAttribute("aria-selected", "true"), a.setAttribute("aria-selected", "false"), n?.setAttribute("aria-hidden", "true"), i.setAttribute("aria-hidden", "false");
12
20
  };
13
- function b(t) {
14
- t.querySelectorAll('button[role="tab"]').forEach((l) => {
15
- l.addEventListener("click", function(d) {
16
- u(d);
21
+ function f(t) {
22
+ t.querySelectorAll('button[role="tab"]').forEach((c) => {
23
+ c.addEventListener("click", function(l) {
24
+ d(l);
17
25
  });
18
26
  });
19
27
  const e = window?.location?.href;
20
28
  if (!e || !(e.indexOf("?lism-tab=") !== -1)) return;
21
- const o = new URL(e).searchParams.get("lism-tab"), a = t.querySelector(`[aria-controls="${o}"]`);
22
- a && (t.dataset.hasTabLink = "1", i(a), setTimeout(() => {
29
+ const r = new URL(e).searchParams.get("lism-tab");
30
+ if (!r) return;
31
+ const n = t.querySelector(`[aria-controls="${r}"]`);
32
+ n && (t.dataset.hasTabLink = "1", u(n), setTimeout(() => {
23
33
  delete t.dataset.hasTabLink;
24
34
  }, 10));
25
35
  }
26
36
  export {
27
- b as default
37
+ f as default
28
38
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import o from "../Lism/index.js";
2
+ import o from "../../Lism/index.js";
3
3
  function n(r) {
4
4
  return /* @__PURE__ */ t(o, { layout: "center", ...r });
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import t from "../Lism/index.js";
2
+ import t from "../../Lism/index.js";
3
3
  function e(o) {
4
4
  return /* @__PURE__ */ r(t, { layout: "flex", ...o });
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import t from "../Lism/index.js";
2
+ import t from "../../Lism/index.js";
3
3
  function m(o) {
4
4
  return /* @__PURE__ */ r(t, { layout: "flow", ...o });
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import t from "../Lism/index.js";
2
+ import t from "../../Lism/index.js";
3
3
  function m(r) {
4
4
  return /* @__PURE__ */ o(t, { layout: "frame", ...r });
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import t from "../Lism/index.js";
2
+ import t from "../../Lism/index.js";
3
3
  function m(r) {
4
4
  return /* @__PURE__ */ o(t, { layout: "grid", ...r });
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import r from "../Lism/index.js";
2
+ import r from "../../Lism/index.js";
3
3
  function m(t) {
4
4
  return /* @__PURE__ */ o(r, { layout: "stack", ...t });
5
5
  }
@@ -1,4 +1,4 @@
1
- const e = ["start", "center", "end"], r = { "flex-s": "flex-start", "flex-e": "flex-end" }, p = { s: "start", e: "end", c: "center", fs: "flex-s", fe: "flex-e" }, t = {
1
+ const e = ["start", "center", "end"], r = ["flex-start", "flex-end"], p = { s: "start", e: "end", c: "center", fs: "flex-start", fe: "flex-end" }, o = {
2
2
  f: { prop: "font", presets: ["inherit"] },
3
3
  fz: { prop: "fontSize", token: "fz", tokenClass: 1, bp: 1, alwaysVar: 1 },
4
4
  fw: {
@@ -30,8 +30,7 @@ const e = ["start", "center", "end"], r = { "flex-s": "flex-start", "flex-e": "f
30
30
  // tsh: { prop: 'textShadow' },
31
31
  d: {
32
32
  prop: "display",
33
- presets: ["none", "block"],
34
- utils: { "in-flex": "inline-flex" },
33
+ presets: ["none", "block", "flex", "inline-flex", "grid", "inline-grid", "inline", "inline-block"],
35
34
  bp: 1
36
35
  },
37
36
  o: { prop: "opacity", presets: ["0"], token: "o", tokenClass: 1 },
@@ -108,7 +107,7 @@ const e = ["start", "center", "end"], r = { "flex-s": "flex-start", "flex-e": "f
108
107
  bdc: {
109
108
  isVar: 1,
110
109
  presets: ["brand", "accent", "divider", "inherit", "transparent"],
111
- utils: { cc: "currentColor" },
110
+ utils: { current: "currentColor" },
112
111
  token: "color"
113
112
  },
114
113
  bdw: { isVar: 1, bp: 1 },
@@ -144,8 +143,7 @@ const e = ["start", "center", "end"], r = { "flex-s": "flex-start", "flex-e": "f
144
143
  // position
145
144
  pos: {
146
145
  prop: "position",
147
- presets: ["static", "fixed", "sticky"],
148
- utils: { rel: "relative", abs: "absolute" }
146
+ presets: ["static", "fixed", "sticky", "relative", "absolute"]
149
147
  },
150
148
  z: { prop: "zIndex", presets: ["-1", "0", "1", "99"] },
151
149
  t: { prop: "top", utils: { 0: "0%" }, presets: ["50%", "100%"], token: "space" },
@@ -208,14 +206,14 @@ const e = ["start", "center", "end"], r = { "flex-s": "flex-start", "flex-e": "f
208
206
  overwriteBaseVar: 1,
209
207
  bp: 1
210
208
  },
211
- "g-x": { prop: "columnGap", token: "space", bp: 1 },
212
- "g-y": { prop: "rowGap", token: "space", bp: 1 },
209
+ cg: { prop: "columnGap", token: "space", bp: 1 },
210
+ rg: { prop: "rowGap", token: "space", bp: 1 },
213
211
  cols: { isVar: 1, bp: 1 },
214
212
  rows: { isVar: 1, bp: 1 },
215
213
  // flex
216
214
  fxf: { prop: "flexFlow" },
217
215
  fxw: { prop: "flexWrap", presets: ["wrap"], bp: 1 },
218
- fxd: { prop: "flexDirection", utils: { col: "column", "col-r": "column-reverse", "row-r": "row-reverse" }, bp: 1 },
216
+ fxd: { prop: "flexDirection", presets: ["column", "column-reverse", "row-reverse"], bp: 1 },
219
217
  fx: { prop: "flex", presets: ["1"], bp: 1 },
220
218
  fxg: { prop: "flexGrow", presets: ["1"] },
221
219
  fxsh: { prop: "flexShrink", presets: ["0"] },
@@ -224,12 +222,6 @@ const e = ["start", "center", "end"], r = { "flex-s": "flex-start", "flex-e": "f
224
222
  // gd: { prop: 'grid' },
225
223
  gt: {
226
224
  prop: "gridTemplate",
227
- presets: ["repeat"],
228
- exUtility: {
229
- repeat: {
230
- "grid-template": "repeat(var(--rows,1), 1fr) / repeat(var(--cols,1), 1fr)"
231
- }
232
- },
233
225
  bp: 1
234
226
  },
235
227
  gta: { prop: "gridTemplateAreas", bp: 1 },
@@ -244,7 +236,7 @@ const e = ["start", "center", "end"], r = { "flex-s": "flex-start", "flex-e": "f
244
236
  // exUtility: { repeat: { '--rows': '1', '--gtr': 'repeat(var(--rows), 1fr)' } },
245
237
  bp: 1
246
238
  },
247
- gaf: { prop: "gridAutoFlow", utils: { row: "row", col: "column" }, bp: 1 },
239
+ gaf: { prop: "gridAutoFlow", presets: ["row", "column"], bp: 1 },
248
240
  //dense
249
241
  gac: { prop: "gridAutoColumns" },
250
242
  gar: { prop: "gridAutoRows" },
@@ -260,29 +252,27 @@ const e = ["start", "center", "end"], r = { "flex-s": "flex-start", "flex-e": "f
260
252
  // -(ai|ac|ji|jc|aslf|jslf): / -$1:
261
253
  ai: {
262
254
  prop: "alignItems",
263
- presets: [...e, "stretch"],
264
- utils: r,
255
+ presets: [...e, "stretch", ...r],
265
256
  shorthands: p,
266
257
  bp: 1
267
258
  },
268
259
  ac: {
269
260
  prop: "alignContent",
270
- presets: e,
271
- utils: { ...r, between: "space-between" },
261
+ presets: [...e, ...r],
262
+ utils: { between: "space-between" },
272
263
  shorthands: p,
273
264
  bp: 1
274
265
  },
275
266
  ji: {
276
267
  prop: "justifyItems",
277
- presets: [...e, "stretch"],
278
- utils: r,
268
+ presets: [...e, "stretch", ...r],
279
269
  shorthands: p,
280
270
  bp: 1
281
271
  },
282
272
  jc: {
283
273
  prop: "justifyContent",
284
- presets: e,
285
- utils: { ...r, between: "space-between" },
274
+ presets: [...e, ...r],
275
+ utils: { between: "space-between" },
286
276
  shorthands: p,
287
277
  bp: 1
288
278
  },
@@ -328,7 +318,7 @@ const e = ["start", "center", "end"], r = { "flex-s": "flex-start", "flex-e": "f
328
318
  // },
329
319
  // },
330
320
  // others
331
- ovwrap: { prop: "overflowWrap", utils: { any: "anywhere" } },
321
+ ovwrap: { prop: "overflowWrap", presets: ["anywhere"] },
332
322
  whspace: { prop: "whiteSpace", presets: ["nowrap"] },
333
323
  // wordbreak: { prop: 'wordBreak', utils: { keep: 'keep-all', all: 'break-all' } },
334
324
  float: { prop: "float", presets: ["left", "right"] },
@@ -336,5 +326,5 @@ const e = ["start", "center", "end"], r = { "flex-s": "flex-start", "flex-e": "f
336
326
  isolation: { prop: "isolation", presets: ["isolate"] }
337
327
  };
338
328
  export {
339
- t as default
329
+ o as default
340
330
  };
@@ -1,5 +1,4 @@
1
- import t from "../helper/getSvgUrl.js";
2
- const a = {
1
+ const s = {
3
2
  isContainer: "is--container",
4
3
  isWrapper: {
5
4
  className: "is--wrapper",
@@ -12,27 +11,8 @@ const a = {
12
11
  isLinkBox: "is--linkBox",
13
12
  isSide: "is--side",
14
13
  isSkipFlow: "is--skipFlow",
15
- isVertical: "is--vertical",
16
- setGutter: "set--gutter",
17
- // set class
18
- setShadow: "set--shadow",
19
- setHov: "set--hov",
20
- setTransition: "set--transition",
21
- setMask: {
22
- // 'set--mask',
23
- className: "set--mask",
24
- setStyles: (e) => {
25
- let s = e;
26
- return s.startsWith("<svg") && (s = t(e, "base64")), {
27
- "--maskImg": s
28
- };
29
- }
30
- },
31
- setPlain: "set--plain",
32
- // setRevert: 'set--revert',
33
- setInnerRs: "set--innerRs",
34
- setBp: "set--bp"
14
+ isVertical: "is--vertical"
35
15
  };
36
16
  export {
37
- a as default
17
+ s as default
38
18
  };
@@ -7,22 +7,19 @@ function w(l, t) {
7
7
  ...t,
8
8
  lismClass: i(t.lismClass, `l--${l}`)
9
9
  };
10
- return l === "flow" ? e(s) : l === "grid" ? f(s) : l === "sideMain" ? u(s) : l === "fluidCols" ? m(s) : l === "switchCols" ? c(s) : s;
10
+ return l === "flow" ? e(s) : l === "sideMain" ? u(s) : l === "fluidCols" ? f(s) : l === "switchCols" ? m(s) : s;
11
11
  }
12
- function f({ _propConfig: l = {}, ...t }) {
13
- return l.gta = { isVar: 1 }, l.gtc = { isVar: 1 }, l.gtr = { isVar: 1 }, { ...t, _propConfig: l };
12
+ function u({ sideW: l, mainW: t, style: s, ...r }) {
13
+ const n = { ...s };
14
+ return l != null && (n["--sideW"] = o(l, "sz")), t != null && (n["--mainW"] = o(t, "sz")), { ...r, style: n };
14
15
  }
15
- function u({ sideW: l, mainW: t, style: s, ...n }) {
16
- const r = { ...s };
17
- return l != null && (r["--sideW"] = o(l, "sz")), t != null && (r["--mainW"] = o(t, "sz")), { ...n, style: r };
18
- }
19
- function m({ autoFill: l, style: t, ...s }) {
16
+ function f({ autoFill: l, style: t, ...s }) {
20
17
  return l ? { ...s, style: { ...t, "--autoMode": "auto-fill" } } : { ...s, style: t };
21
18
  }
22
19
  function e({ flow: l, style: t, ...s }) {
23
20
  return a("flow", l) ? s.lismClass = i(s.lismClass, `-flow:${l}`) : l && (s.lismClass = i(s.lismClass, "-flow:"), t = { ...t, "--flow": o(l, "space") }), { ...s, style: t };
24
21
  }
25
- function c({ breakSize: l, style: t, ...s }) {
22
+ function m({ breakSize: l, style: t, ...s }) {
26
23
  return l ? { ...s, style: { ...t, "--breakSize": o(l, "sz") } } : { ...s, style: t };
27
24
  }
28
25
  export {
@@ -1,19 +1,20 @@
1
- import { STATES as P, PROPS as S } from "../config/index.js";
1
+ import { STATES as b, PROPS as S } from "../config/index.js";
2
2
  import j from "./getLayoutProps.js";
3
3
  import U from "./isPresetValue.js";
4
- import w from "./isTokenValue.js";
4
+ import x from "./isTokenValue.js";
5
5
  import v from "./getUtilKey.js";
6
6
  import m from "./getMaybeCssVar.js";
7
- import z from "./getBpData.js";
8
- import E from "./helper/atts.js";
7
+ import E from "./getBpData.js";
8
+ import z from "./helper/atts.js";
9
9
  import N from "./helper/isEmptyObj.js";
10
10
  import C from "./helper/filterEmptyObj.js";
11
+ import _ from "./helper/mergeSet.js";
11
12
  import k from "./helper/splitWithComma.js";
12
- const _ = (h) => {
13
- const s = S[h];
14
- return s && s?.token || "";
13
+ const A = (n) => {
14
+ const e = S[n];
15
+ return e && e?.token || "";
15
16
  };
16
- class x {
17
+ class w {
17
18
  // propList = {};
18
19
  className = "";
19
20
  uClasses = [];
@@ -21,120 +22,121 @@ class x {
21
22
  styles = {};
22
23
  attrs = {};
23
24
  _propConfig;
24
- constructor(s) {
25
- const { forwardedRef: t, class: e, className: i, lismClass: o, variant: r, style: l = {}, _propConfig: n = {}, ...c } = s;
26
- this.styles = { ...l }, this._propConfig = { ...n };
27
- let f = o || "";
28
- if (r && o) {
29
- const y = o.split(" "), a = y[0], u = `${a}--${r}`;
30
- f = [a, u, ...y.slice(1)].join(" ");
25
+ constructor(e) {
26
+ const { forwardedRef: t, class: s, className: r, lismClass: o, variant: i, style: l = {}, _propConfig: y = {}, ...c } = e;
27
+ this.styles = { ...l }, this._propConfig = { ...y };
28
+ let h = o || "";
29
+ if (i && o) {
30
+ const d = o.split(" "), a = d[0], u = `${a}--${i}`;
31
+ h = [a, u, ...d.slice(1)].join(" ");
31
32
  }
32
- N(c) || (this.attrs = { ...c }, this.analyzeProps()), t && (this.attrs.ref = t), this.className = E(i || e, f, this.lismState, this.uClasses);
33
+ N(c) || (this.attrs = { ...c }, this.analyzeProps()), t && (this.attrs.ref = t), this.className = z(r || s, h, this.lismState, this.uClasses);
33
34
  }
34
- analyzeState(s, t) {
35
- const { className: e, preset: i, presetClass: o, customVar: r, tokenKey: l, setStyles: n } = s;
36
- t === !0 ? this.lismState.push(e) : i && U(i, t) ? this.lismState.push(`${e} ${o}:${String(t)}`) : t && (this.lismState.push(e), l && r ? this.addStyle(r, m(t, l)) : n && typeof t == "string" && this.addStyles(n(t)));
35
+ analyzeState(e, t) {
36
+ const { className: s, preset: r, presetClass: o, customVar: i, tokenKey: l } = e;
37
+ t === !0 ? this.lismState.push(s) : r && U(r, t) ? this.lismState.push(`${s} ${o}:${String(t)}`) : t && (this.lismState.push(s), l && i && this.addStyle(i, m(t, l)));
37
38
  }
38
39
  // prop解析
39
40
  analyzeProps() {
41
+ const e = this.extractProp("set"), t = this.extractProp("unset");
40
42
  Object.keys(this.attrs).forEach((s) => {
41
- if (Object.hasOwn(P, s)) {
42
- const t = this.extractProp(s), e = P[s];
43
- typeof e == "string" ? t && this.lismState.push(e) : this.analyzeState(e, t);
43
+ if (Object.hasOwn(b, s)) {
44
+ const r = this.extractProp(s), o = b[s];
45
+ typeof o == "string" ? r && this.lismState.push(o) : this.analyzeState(o, r);
44
46
  } else if (Object.hasOwn(S, s)) {
45
- const t = this.attrs[s];
46
- delete this.attrs[s], this.analyzeLismProp(s, t);
47
+ const r = this.attrs[s];
48
+ delete this.attrs[s], this.analyzeLismProp(s, r);
47
49
  } else if (s === "hov") {
48
- const t = this.extractProp(s);
49
- this.setHovProps(t);
50
+ const r = this.extractProp(s);
51
+ this.setHovProps(r);
50
52
  } else if (s === "css") {
51
- const t = this.extractProp("css");
52
- this.addStyles(t);
53
+ const r = this.extractProp("css");
54
+ this.addStyles(r);
53
55
  }
54
- });
56
+ }), _(void 0, e, t).forEach((s) => this.lismState.push(`set--${s}`));
55
57
  }
56
58
  // Lism Prop 解析
57
- analyzeLismProp(s, t) {
59
+ analyzeLismProp(e, t) {
58
60
  if (t == null) return;
59
- let e = S[s] || null;
60
- if (e === null) return;
61
- this._propConfig?.[s] && (e = Object.assign({}, e, this._propConfig[s]));
62
- const { base: i, ...o } = z(t);
63
- this.setAttrs(s, i, e), Object.keys(o).forEach((r) => {
64
- e && this.setAttrs(s, o[r], e, r);
61
+ let s = S[e] || null;
62
+ if (s === null) return;
63
+ this._propConfig?.[e] && (s = Object.assign({}, s, this._propConfig[e]));
64
+ const { base: r, ...o } = E(t);
65
+ this.setAttrs(e, r, s), Object.keys(o).forEach((i) => {
66
+ s && this.setAttrs(e, o[i], s, i);
65
67
  });
66
68
  }
67
- addUtil(s) {
68
- this.uClasses.push(s);
69
+ addUtil(e) {
70
+ this.uClasses.push(e);
69
71
  }
70
- addUtils(s) {
71
- this.uClasses.push(...s);
72
+ addUtils(e) {
73
+ this.uClasses.push(...e);
72
74
  }
73
75
  // addState(state) {
74
76
  // this.stateClasses.push(state);
75
77
  // }
76
- addStyle(s, t) {
77
- this.styles[s] = t;
78
+ addStyle(e, t) {
79
+ this.styles[e] = t;
78
80
  }
79
- addStyles(s) {
80
- this.styles = { ...this.styles, ...s };
81
+ addStyles(e) {
82
+ this.styles = { ...this.styles, ...e };
81
83
  }
82
- addAttrs(s) {
83
- this.addStyles(s.styles || {}), this.addUtils(s.utils || []);
84
+ addAttrs(e) {
85
+ this.addStyles(e.styles || {}), this.addUtils(e.utils || []);
84
86
  }
85
- extractProp(s) {
86
- const t = this.attrs[s];
87
- return this.attrs[s] === void 0 ? null : (delete this.attrs[s], t);
87
+ extractProp(e) {
88
+ const t = this.attrs[e];
89
+ return this.attrs[e] === void 0 ? null : (delete this.attrs[e], t);
88
90
  }
89
- extractProps(s) {
91
+ extractProps(e) {
90
92
  const t = {};
91
- return s.forEach((e) => {
92
- this.attrs[e] !== void 0 && (t[e] = this.attrs[e], delete this.attrs[e]);
93
+ return e.forEach((s) => {
94
+ this.attrs[s] !== void 0 && (t[s] = this.attrs[s], delete this.attrs[s]);
93
95
  }), t;
94
96
  }
95
97
  // utilクラスを追加するか、styleにセットするかの分岐処理 @base
96
98
  // 値が null, undefined, '', false の時はスキップ
97
- setAttrs(s, t, e = {}, i = "") {
99
+ setAttrs(e, t, s = {}, r = "") {
98
100
  if (t == null || t === "" || t === !1) return;
99
- let o = `--${s}`, r = `-${String(e.utilKey || s)}`;
100
- if (i && (o = `--${s}_${i}`, r += `_${i}`), typeof t == "string" && t.startsWith(":")) {
101
- this.addUtil(`${r}:${t.replace(":", "")}`);
101
+ let o = `--${e}`, i = `-${String(s.utilKey || e)}`;
102
+ if (r && (o = `--${e}_${r}`, i += `_${r}`), typeof t == "string" && t.startsWith(":")) {
103
+ this.addUtil(`${i}:${t.replace(":", "")}`);
102
104
  return;
103
105
  }
104
- if (!i) {
105
- const { presets: u, tokenClass: O, utils: g, shorthands: b } = e;
106
+ if (!r) {
107
+ const { presets: u, tokenClass: O, utils: g, shorthands: P } = s;
106
108
  if (u && U(u, t)) {
107
- const d = typeof t == "string" || typeof t == "number" ? String(t) : "";
108
- d && this.addUtil(`${r}:${d}`);
109
+ const p = typeof t == "string" || typeof t == "number" ? String(t) : "";
110
+ p && this.addUtil(`${i}:${p}`);
109
111
  return;
110
112
  }
111
- if (O && e.token && w(e.token, t)) {
112
- const d = typeof t == "string" || typeof t == "number" ? String(t) : "";
113
- d && this.addUtil(`${r}:${d}`);
113
+ if (O && s.token && x(s.token, t)) {
114
+ const p = typeof t == "string" || typeof t == "number" ? String(t) : "";
115
+ p && this.addUtil(`${i}:${p}`);
114
116
  return;
115
117
  }
116
- let p = "";
117
- if (g && typeof t == "string" && (p = v(g, t)), !p && b && typeof t == "string" && (p = v(b, t, !0)), p) {
118
- this.addUtil(`${r}:${p}`);
118
+ let f = "";
119
+ if (g && typeof t == "string" && (f = v(g, t)), !f && P && typeof t == "string" && (f = v(P, t, !0)), f) {
120
+ this.addUtil(`${i}:${f}`);
119
121
  return;
120
122
  }
121
123
  }
122
124
  if (t === !0 || t === "-") {
123
- this.addUtil(r);
125
+ this.addUtil(i);
124
126
  return;
125
127
  }
126
- const { prop: l, isVar: n, alwaysVar: c, token: f, bp: y } = e;
128
+ const { prop: l, isVar: y, alwaysVar: c, token: h, bp: d } = s;
127
129
  let a;
128
- if (f && (typeof t == "string" || typeof t == "number") ? a = m(t, f) : typeof t == "string" || typeof t == "number" ? a = t : a = JSON.stringify(t), !i) {
129
- if (n) {
130
- this.addStyle(`--${s}`, a);
130
+ if (h && (typeof t == "string" || typeof t == "number") ? a = m(t, h) : typeof t == "string" || typeof t == "number" ? a = t : a = JSON.stringify(t), !r) {
131
+ if (y) {
132
+ this.addStyle(`--${e}`, a);
131
133
  return;
132
- } else if (!y && !c) {
134
+ } else if (!d && !c) {
133
135
  this.addStyle(l, a);
134
136
  return;
135
137
  }
136
138
  }
137
- this.addUtil(r), this.addStyle(o, a);
139
+ this.addUtil(i), this.addStyle(o, a);
138
140
  }
139
141
  // setPassProps(passVars) {
140
142
  // let dataList = [];
@@ -149,40 +151,40 @@ class x {
149
151
  // this.addStyle(`--pass_${propName}`, value);
150
152
  // });
151
153
  // }
152
- setHovProps(s) {
153
- s && (s === "-" || s === !0 ? this.addUtil("-hov") : typeof s == "string" ? k(s).forEach((t) => {
154
+ setHovProps(e) {
155
+ e && (e === "-" || e === !0 ? this.addUtil("-hov") : typeof e == "string" ? k(e).forEach((t) => {
154
156
  this.addUtil(`-hov:${t}`);
155
- }) : typeof s == "object" && Object.keys(s).forEach((t) => {
156
- const e = s[t];
157
- if (!(e == null || e === "" || e === !1)) {
158
- if (e === "-" || e === !0)
157
+ }) : typeof e == "object" && Object.keys(e).forEach((t) => {
158
+ const s = e[t];
159
+ if (!(s == null || s === "" || s === !1)) {
160
+ if (s === "-" || s === !0)
159
161
  this.addUtil(`-hov:${t}`);
160
162
  else if (t === "class")
161
- k(e).forEach((i) => {
162
- this.addUtil(`-hov:${i}`);
163
+ k(s).forEach((r) => {
164
+ this.addUtil(`-hov:${r}`);
163
165
  });
164
- else if (typeof e == "string" || typeof e == "number") {
165
- const i = m(e, _(t));
166
- this.addUtil(`-hov:${t}`), this.addStyle(`--hov-${t}`, i);
166
+ else if (typeof s == "string" || typeof s == "number") {
167
+ const r = m(s, A(t));
168
+ this.addUtil(`-hov:${t}`), this.addStyle(`--hov-${t}`, r);
167
169
  }
168
170
  }
169
171
  }));
170
172
  }
171
173
  }
172
- function q(h) {
173
- if (Object.keys(h).length === 0)
174
+ function B(n) {
175
+ if (Object.keys(n).length === 0)
174
176
  return {};
175
- const { layout: s, ...t } = h, e = new x(j(s, t));
177
+ const { layout: e, ...t } = n, s = new w(j(e, t));
176
178
  return {
177
179
  ...C({
178
- className: e.className,
179
- style: C(e.styles)
180
+ className: s.className,
181
+ style: C(s.styles)
180
182
  }),
181
- ...e.attrs
183
+ ...s.attrs
182
184
  // data-* などHTMLの標準属性はそのまま渡す
183
185
  };
184
186
  }
185
187
  export {
186
- x as LismPropsData,
187
- q as default
188
+ w as LismPropsData,
189
+ B as default
188
190
  };
@@ -0,0 +1,14 @@
1
+ function t(n) {
2
+ return n ? Array.isArray(n) ? n.flatMap((r) => t(r)) : typeof n == "string" ? n.split(/[,\s]+/).map((r) => r.trim()).filter(Boolean) : [] : [];
3
+ }
4
+ function o(n, r, s) {
5
+ const e = [.../* @__PURE__ */ new Set([...t(n), ...t(r)])];
6
+ if (e.length === 0) return [];
7
+ const i = t(s);
8
+ if (i.length === 0) return e;
9
+ const a = new Set(i);
10
+ return e.filter((f) => !a.has(f));
11
+ }
12
+ export {
13
+ o as default
14
+ };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @layer lism-modules{.c--accordion{--duration:var(--acc-duration,0.25s)}.c--accordion_item{--_panel-h:0px;--_icon-transform:rotate(0deg)}.c--accordion_item[data-opened]{--_icon-transform:rotate(90deg);--_panel-h:auto}.c--accordion_panel{height:var(--_panel-h);transition:height var(--duration)}[hidden]>.c--accordion_content{position:absolute}.c--accordion_icon{display:grid;height:1em;width:1em;&:after,&:before{background-color:currentColor;content:"";display:block;grid-area:1/1}&:before{height:100%;transform:var(--_icon-transform);transition:transform var(--duration);width:.1em}&:after{height:.1em;width:100%}}.c--accordion_button:focus-visible{outline:2px solid currentColor;outline-color:revert;outline-offset:-3px}@media (prefers-reduced-motion:reduce){.c--accordion_item{--duration:0s}}@media (scripting:none){.c--accordion_panel{content-visibility:visible!important;height:auto!important}.c--accordion_content{position:static!important}}}@layer lism-modules{.c--badge{--c:var(--base);--bgc:var(--text);--bdc:transparent;background-color:var(--bgc);border:1px solid var(--bdc);color:var(--c)}.c--badge--outline{--c:var(--text);--bgc:transparent;--bdc:currentColor}.c--button{--c:var(--base);--bgc:var(--text);--bdc:var(--bgc);background-color:var(--bgc);border:1px solid var(--bdc);color:var(--c);gap:var(--s10);place-content:center;place-items:center;text-decoration:none}.c--button--outline{--c:var(--text);--bgc:transparent;--bdc:var(--c)}}@layer lism-modules{:where(.c--button)>.a--icon{scale:1.05}.c--button:where(.l--grid){grid-template-columns:minmax(1em,auto) 1fr minmax(1em,auto);justify-items:center}.c--button:where(.l--grid)>:not(.a--icon){grid-column:2}}@layer lism-modules{.c--chat{--cbox-bgPct:8%;--gta:"avatar name" "avatar body";--gtc:auto 1fr;--gtr:minmax(1.5rem,auto) auto;--_avator-size:clamp(48px,32px + 5cqw,64px);--_deco-size:calc(min(var(--_avator-size), 80px)/4 + 0.25rem);--_deco-mask:none;--_deco-t:0;--_deco-scale:1;--_deco-inset-x:0;gap:0 calc(var(--_deco-size) + 1px)}.c--chat_avatar{grid-area:avatar;width:var(--_avator-size)}.c--chat_name{grid-area:name}.c--chat_body{grid-area:body}.c--chat_content{max-width:var(--sz--s)}.c--chat_deco{height:var(--_deco-size);top:var(--_deco-t);inset-inline:var(--_deco-inset-x);-webkit-mask:var(--_deco-mask) center/contain no-repeat;mask:var(--_deco-mask) center/contain no-repeat;scale:var(--_deco-scale);width:var(--_deco-size)}.c--chat--speak{--_deco-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8"><path d="M8,8L8,8C7.4,4.8,5.4,2,2.6,0.4L2,0h6V8z"/></svg>')}[data-chat-dir=start]{--_deco-inset-x:auto calc(100% - 1px)}[data-chat-dir=end]{--_deco-scale:-1 1;--_deco-inset-x:calc(100% - 1px) auto;--gta:"name avatar" "body avatar";--gtc:1fr auto}}.c--chat--speak[data-chat-dir=start]>div>.c--chat_content{border-start-start-radius:0}.c--chat--speak[data-chat-dir=end]>div>.c--chat_content{border-start-end-radius:0}@layer lism-modules{.c--navMenu{--link-td:none;--hl:var(--hl--s);--_item-p:var(--s20);--focus-offset:-1px}.c--navMenu_nest{--_item-p:inherit}.c--navMenu_link{padding:var(--_item-p)}.c--navMenu_item,.c--navMenu_nest{--bdc:inherit}.c--shapeDivider{--level:0;--_inner-offset:0px;--_inner-stretch:1;--_flipX:1;--_flipY:1;height:clamp(5px * var(--level),1cqw * var(--level),12px * var(--level));overflow:visible}}@layer lism-modules{.c--shapeDivider:where([data-flip^=X]){--_flipX:-1}.c--shapeDivider:where([data-flip$=Y]){--_flipY:-1}.c--shapeDivider_inner{--offsetY:0.5px;--offsetX:-0.5px;height:100%;scale:calc(var(--_flipX)*var(--_inner-stretch)) var(--_flipY);translate:calc(var(--offsetX) + var(--_inner-offset)) calc(var(--offsetY)*var(--_flipY));width:calc(100% + 1px)}.c--shapeDivider_svg{display:block}:where([data-has-animation=true]) .c--shapeDivider_svg{animation:lism--slideShape 12s linear infinite alternate;transform-origin:100% 0}}@keyframes lism--slideShape{0%{transform:scaleX(4)}to{transform:scaleX(4) translateX(75%)}}
1
+ @layer lism-modules{.c--accordion{--duration:var(--acc-duration,0.25s)}.c--accordion_item{--_panel-h:0px;--_icon-transform:rotate(0deg)}.c--accordion_item[data-opened]{--_icon-transform:rotate(90deg);--_panel-h:auto}.c--accordion_panel{height:var(--_panel-h);transition:height var(--duration)}[hidden]>.c--accordion_content{position:absolute}.c--accordion_icon{display:grid;height:1em;width:1em;&:after,&:before{background-color:currentColor;content:"";display:block;grid-area:1/1}&:before{height:100%;transform:var(--_icon-transform);transition:transform var(--duration);width:.1em}&:after{height:.1em;width:100%}}.c--accordion_button:focus-visible{outline:2px solid currentColor;outline-color:revert;outline-offset:-3px}@media (prefers-reduced-motion:reduce){.c--accordion_item{--duration:0s}}@media (scripting:none){.c--accordion_panel{content-visibility:visible!important;height:auto!important}.c--accordion_content{position:static!important}}}@layer lism-modules{.c--badge{--c:var(--base);--bgc:var(--text);--bdc:transparent;background-color:var(--bgc);border:1px solid var(--bdc);color:var(--c)}.c--badge--outline{--c:var(--text);--bgc:transparent;--bdc:currentColor}.c--button{--c:var(--base);--bgc:var(--text);--bdc:var(--bgc);background-color:var(--bgc);border:1px solid var(--bdc);color:var(--c);gap:var(--s10);place-content:center;place-items:center;text-decoration:none}.c--button--outline{--c:var(--text);--bgc:transparent;--bdc:var(--c)}}@layer lism-modules{:where(.c--button)>.a--icon{scale:1.05}.c--button:where(.l--grid){grid-template-columns:minmax(1em,auto) 1fr minmax(1em,auto);justify-items:center}.c--button:where(.l--grid)>:not(.a--icon){grid-column:2}}@layer lism-modules{.c--chat{--cbox-bgPct:8%;grid-template-areas:"avatar name" "avatar body";grid-template-columns:auto 1fr;grid-template-rows:minmax(1.5rem,auto) auto;--_avator-size:clamp(48px,32px + 5cqw,64px);--_deco-size:calc(min(var(--_avator-size), 80px)/4 + 0.25rem);--_deco-mask:none;--_deco-t:0;--_deco-scale:1;--_deco-inset-x:0;gap:0 calc(var(--_deco-size) + 1px)}.c--chat_avatar{grid-area:avatar;width:var(--_avator-size)}.c--chat_name{grid-area:name}.c--chat_body{grid-area:body}.c--chat_content{max-width:var(--sz--s)}.c--chat_deco{height:var(--_deco-size);top:var(--_deco-t);inset-inline:var(--_deco-inset-x);-webkit-mask:var(--_deco-mask) center/contain no-repeat;mask:var(--_deco-mask) center/contain no-repeat;scale:var(--_deco-scale);width:var(--_deco-size)}.c--chat--speak{--_deco-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8"><path d="M8,8L8,8C7.4,4.8,5.4,2,2.6,0.4L2,0h6V8z"/></svg>')}[data-chat-dir=start]{--_deco-inset-x:auto calc(100% - 1px)}[data-chat-dir=end]{--_deco-scale:-1 1;--_deco-inset-x:calc(100% - 1px) auto;grid-template-areas:"name avatar" "body avatar";grid-template-columns:1fr auto}}.c--chat--speak[data-chat-dir=start]>div>.c--chat_content{border-start-start-radius:0}.c--chat--speak[data-chat-dir=end]>div>.c--chat_content{border-start-end-radius:0}@layer lism-modules{.c--navMenu{--link-td:none;--hl:var(--hl--s);--_item-p:var(--s20);--focus-offset:-1px}.c--navMenu_nest{--_item-p:inherit}.c--navMenu_link{padding:var(--_item-p)}.c--navMenu_item,.c--navMenu_nest{--bdc:inherit}.c--shapeDivider{--level:0;--_inner-offset:0px;--_inner-stretch:1;--_flipX:1;--_flipY:1;height:clamp(5px * var(--level),1cqw * var(--level),12px * var(--level));overflow:visible}}@layer lism-modules{.c--shapeDivider:where([data-flip^=X]){--_flipX:-1}.c--shapeDivider:where([data-flip$=Y]){--_flipY:-1}.c--shapeDivider_inner{--offsetY:0.5px;--offsetX:-0.5px;height:100%;scale:calc(var(--_flipX)*var(--_inner-stretch)) var(--_flipY);translate:calc(var(--offsetX) + var(--_inner-offset)) calc(var(--offsetY)*var(--_flipY));width:calc(100% + 1px)}.c--shapeDivider_svg{display:block}:where([data-has-animation=true]) .c--shapeDivider_svg{animation:lism--slideShape 12s linear infinite alternate;transform-origin:100% 0}}@keyframes lism--slideShape{0%{transform:scaleX(4)}to{transform:scaleX(4) translateX(75%)}}