lism-css 0.0.1 → 0.0.3

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 (234) hide show
  1. package/README.md +52 -0
  2. package/dist/_virtual/jsx-runtime.js +5 -0
  3. package/dist/_virtual/jsx-runtime2.js +4 -0
  4. package/dist/_virtual/react-jsx-runtime.development.js +4 -0
  5. package/dist/_virtual/react-jsx-runtime.production.min.js +4 -0
  6. package/dist/components/Accordion/AccIcon.js +10 -0
  7. package/dist/components/Accordion/getProps.js +29 -0
  8. package/dist/components/Accordion/index.js +6 -0
  9. package/dist/components/Accordion/index2.js +32 -0
  10. package/dist/components/Accordion/setAccordion.js +37 -0
  11. package/dist/components/Accordion/style.css +1 -0
  12. package/dist/components/Box/getProps.js +7 -0
  13. package/dist/components/Box/index.js +9 -0
  14. package/dist/components/Center/index.js +8 -0
  15. package/dist/components/Columns/getProps.js +6 -0
  16. package/dist/components/Columns/index.js +9 -0
  17. package/dist/components/Container/index.js +9 -0
  18. package/dist/components/Decorator/getProps.js +15 -0
  19. package/dist/components/Decorator/index.js +9 -0
  20. package/dist/components/Divider/getProps.js +11 -0
  21. package/dist/components/Divider/index.js +9 -0
  22. package/dist/components/Dummy/getContent.js +9 -0
  23. package/dist/components/Dummy/index.js +17 -0
  24. package/dist/components/Dummy/texts.js +24 -0
  25. package/dist/components/Flex/Cluster.js +8 -0
  26. package/dist/components/Flex/FlexItem.js +9 -0
  27. package/dist/components/Flex/getProps.js +13 -0
  28. package/dist/components/Flex/index.js +9 -0
  29. package/dist/components/Frame/getProps.js +7 -0
  30. package/dist/components/Frame/index.js +9 -0
  31. package/dist/components/Grid/GridItem.js +10 -0
  32. package/dist/components/Grid/getProps.js +28 -0
  33. package/dist/components/Grid/index.js +9 -0
  34. package/dist/components/Icon/SVG.js +29 -0
  35. package/dist/components/Icon/getProps.js +34 -0
  36. package/dist/components/Icon/index.js +11 -0
  37. package/dist/components/Icon/presets.js +193 -0
  38. package/dist/components/Layer/getProps.js +9 -0
  39. package/dist/components/Layer/index.js +10 -0
  40. package/dist/components/LinkBox/index.js +9 -0
  41. package/dist/components/Lism/Link.js +8 -0
  42. package/dist/components/Lism/Media.js +10 -0
  43. package/dist/components/Lism/Text.js +8 -0
  44. package/dist/components/Lism/index.js +9 -0
  45. package/dist/components/Modal/Body.js +10 -0
  46. package/dist/components/Modal/CloseIconBtn.js +19 -0
  47. package/dist/components/Modal/Footer.js +10 -0
  48. package/dist/components/Modal/Header.js +10 -0
  49. package/dist/components/Modal/Inner.js +9 -0
  50. package/dist/components/Modal/getProps.js +19 -0
  51. package/dist/components/Modal/index.js +10 -0
  52. package/dist/components/Modal/index2.js +17 -0
  53. package/dist/components/Modal/setModal.js +37 -0
  54. package/dist/components/Modal/style.css +1 -0
  55. package/dist/components/Spacer/getProps.js +21 -0
  56. package/dist/components/Spacer/index.js +9 -0
  57. package/dist/components/Stack/index.js +8 -0
  58. package/dist/components/Tabs/Tab.js +22 -0
  59. package/dist/components/Tabs/TabItem.js +7 -0
  60. package/dist/components/Tabs/TabList.js +8 -0
  61. package/dist/components/Tabs/TabPanel.js +19 -0
  62. package/dist/components/Tabs/getProps.js +17 -0
  63. package/dist/components/Tabs/index.js +9 -0
  64. package/dist/components/Tabs/index2.js +55 -0
  65. package/dist/components/Tabs/setEvent.js +29 -0
  66. package/dist/components/Tabs/style.css +1 -0
  67. package/dist/components/WithSide/getProps.js +14 -0
  68. package/dist/components/WithSide/index.js +9 -0
  69. package/dist/components/getFilterProps.js +23 -0
  70. package/dist/components/getInsetProps.js +8 -0
  71. package/dist/components/getMediaProps.js +14 -0
  72. package/dist/components/getTransformProps.js +8 -0
  73. package/dist/config/prop_list.js +395 -0
  74. package/dist/config/tokens.js +67 -0
  75. package/dist/config.js +9 -0
  76. package/dist/css/all.css +1 -0
  77. package/dist/css/all_no_layer.css +1 -0
  78. package/dist/css/base.css +1 -0
  79. package/dist/css/dynamic.css +1 -0
  80. package/dist/css/layout.css +1 -0
  81. package/dist/css/props.css +1 -0
  82. package/dist/css/reset.css +1 -0
  83. package/dist/css/state.css +1 -0
  84. package/dist/css/utility.css +1 -0
  85. package/dist/css/with_layer.css +1 -0
  86. package/dist/index.js +54 -0
  87. package/dist/lib/getBpData.js +13 -0
  88. package/dist/lib/getLismProps.js +239 -0
  89. package/dist/lib/getMaybeCssVar.js +61 -0
  90. package/dist/lib/getMaybeUtilValue.js +6 -0
  91. package/dist/lib/helper/atts.js +11 -0
  92. package/dist/lib/helper/filterEmptyObj.js +9 -0
  93. package/dist/lib/helper/hasKeys.js +6 -0
  94. package/dist/lib/helper/isEmptyObj.js +6 -0
  95. package/dist/lib/helper/isNumStr.js +6 -0
  96. package/dist/lib/helper/splitWithComma.js +6 -0
  97. package/dist/lib/isPresetValue.js +6 -0
  98. package/dist/lib/isTokenValue.js +9 -0
  99. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +604 -0
  100. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +28 -0
  101. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +10 -0
  102. package/dist/scripts/accordion.js +4 -0
  103. package/dist/scripts/modal.js +4 -0
  104. package/dist/scripts/tabs.js +6 -0
  105. package/package.json +22 -22
  106. package/packages/astro/Accordion/AccBody.astro +15 -0
  107. package/packages/astro/Accordion/AccHeader.astro +13 -0
  108. package/packages/astro/Accordion/AccIcon.astro +19 -0
  109. package/packages/astro/Accordion/AccLabel.astro +12 -0
  110. package/packages/astro/Accordion/Accordion.astro +21 -0
  111. package/packages/astro/Accordion/__setEvent.js +2 -0
  112. package/packages/astro/Accordion/index.js +7 -0
  113. package/packages/astro/Box/Box.astro +11 -0
  114. package/packages/astro/Box/index.js +1 -0
  115. package/packages/astro/Center/Center.astro +11 -0
  116. package/packages/astro/Center/index.js +1 -0
  117. package/packages/astro/Columns/Columns.astro +11 -0
  118. package/packages/astro/Columns/index.js +1 -0
  119. package/packages/astro/Container/Container.astro +11 -0
  120. package/packages/astro/Container/index.js +1 -0
  121. package/packages/astro/Decorator/Decorator.astro +13 -0
  122. package/packages/astro/Decorator/index.js +1 -0
  123. package/packages/astro/Divider/Divider.astro +12 -0
  124. package/packages/astro/Divider/index.js +1 -0
  125. package/packages/astro/Dummy/Dummy.astro +12 -0
  126. package/packages/astro/Dummy/index.js +1 -0
  127. package/packages/astro/Flex/Cluster.astro +11 -0
  128. package/packages/astro/Flex/Flex.astro +14 -0
  129. package/packages/astro/Flex/index.js +2 -0
  130. package/packages/astro/Frame/Frame.astro +12 -0
  131. package/packages/astro/Frame/index.js +1 -0
  132. package/packages/astro/Grid/Grid.astro +13 -0
  133. package/packages/astro/Grid/GridItem.astro +15 -0
  134. package/packages/astro/Grid/index.js +2 -0
  135. package/packages/astro/Icon/Icon.astro +25 -0
  136. package/packages/astro/Icon/SVG.astro +30 -0
  137. package/packages/astro/Icon/index.js +2 -0
  138. package/packages/astro/Layer/Layer.astro +15 -0
  139. package/packages/astro/Layer/index.js +1 -0
  140. package/packages/astro/LinkBox/LinkBox.astro +16 -0
  141. package/packages/astro/LinkBox/index.js +1 -0
  142. package/packages/astro/Lism/Link.astro +10 -0
  143. package/packages/astro/Lism/Lism.astro +14 -0
  144. package/packages/astro/Lism/Media.astro +24 -0
  145. package/packages/astro/Lism/Text.astro +10 -0
  146. package/packages/astro/Lism/index.js +4 -0
  147. package/packages/astro/Modal/Body.astro +14 -0
  148. package/packages/astro/Modal/CloseIconBtn.astro +24 -0
  149. package/packages/astro/Modal/Footer.astro +14 -0
  150. package/packages/astro/Modal/Header.astro +14 -0
  151. package/packages/astro/Modal/Inner.astro +13 -0
  152. package/packages/astro/Modal/Modal.astro +20 -0
  153. package/packages/astro/Modal/index.js +8 -0
  154. package/packages/astro/OverlayLink/OverlayLink.astro +10 -0
  155. package/packages/astro/OverlayLink/index.js +1 -0
  156. package/packages/astro/Spacer/Spacer.astro +11 -0
  157. package/packages/astro/Spacer/index.js +1 -0
  158. package/packages/astro/Stack/Stack.astro +7 -0
  159. package/packages/astro/Stack/index.js +1 -0
  160. package/packages/astro/Tabs/Tab.astro +26 -0
  161. package/packages/astro/Tabs/TabItem.astro +8 -0
  162. package/packages/astro/Tabs/TabList.astro +8 -0
  163. package/packages/astro/Tabs/TabPanel.astro +22 -0
  164. package/packages/astro/Tabs/Tabs.astro +60 -0
  165. package/packages/astro/Tabs/index.js +7 -0
  166. package/packages/astro/Tabs/transformTabitems.js +40 -0
  167. package/packages/astro/Test/Test.astro +14 -0
  168. package/packages/astro/Test/TestItem.astro +14 -0
  169. package/packages/astro/Test/index.js +4 -0
  170. package/packages/astro/WithSide/WithSide.astro +12 -0
  171. package/packages/astro/WithSide/index.js +1 -0
  172. package/packages/astro/helper/index.js +6 -0
  173. package/packages/astro/index.js +29 -0
  174. package/packages/astro/types.ts +28 -0
  175. package/packages/next-js/Accordion/Accordion.jsx +19 -0
  176. package/packages/next-js/Accordion/index.js +2 -0
  177. package/src/scss/__memo/_lh-auto-all.scss +46 -0
  178. package/src/scss/__memo/_lh-auto-h.scss +50 -0
  179. package/src/scss/__memo/_lh-manual.scss +58 -0
  180. package/src/scss/_auto_output.scss +194 -0
  181. package/src/scss/_mixin.scss +38 -0
  182. package/src/scss/_props.scss +771 -0
  183. package/src/scss/_query.scss +40 -0
  184. package/src/scss/_setting.scss +22 -0
  185. package/src/scss/all.scss +10 -0
  186. package/src/scss/all_no_layer.scss +26 -0
  187. package/src/scss/base/_dom.scss +140 -0
  188. package/src/scss/base/_tokens.scss +307 -0
  189. package/src/scss/base/index.scss +70 -0
  190. package/src/scss/dynamic/index.scss +4 -0
  191. package/src/scss/layout/__switcher.scss +11 -0
  192. package/src/scss/layout/_center.scss +5 -0
  193. package/src/scss/layout/_columns.scss +18 -0
  194. package/src/scss/layout/_divider.scss +6 -0
  195. package/src/scss/layout/_flex.scss +12 -0
  196. package/src/scss/layout/_frame.scss +13 -0
  197. package/src/scss/layout/_grid.scss +16 -0
  198. package/src/scss/layout/_icon.scss +19 -0
  199. package/src/scss/layout/_spacer.scss +3 -0
  200. package/src/scss/layout/_stack.scss +4 -0
  201. package/src/scss/layout/_withSide.scss +20 -0
  202. package/src/scss/layout/index.scss +12 -0
  203. package/src/scss/props/__/__aspect.bkup.scss +36 -0
  204. package/src/scss/props/__/__border.bkup.scss +197 -0
  205. package/src/scss/props/__/__color.bkup.scss +67 -0
  206. package/src/scss/props/__/__display.bukup.scss +11 -0
  207. package/src/scss/props/__/__flex-props.bkup.scss +66 -0
  208. package/src/scss/props/__/__gap.bkup.scss +18 -0
  209. package/src/scss/props/__/__grid-props.bkup.scss +158 -0
  210. package/src/scss/props/__/__margin.bkup.scss +92 -0
  211. package/src/scss/props/__/__padding.bkup.scss +93 -0
  212. package/src/scss/props/__/__place.bkup.scss +74 -0
  213. package/src/scss/props/__/__radius.bkup.scss +27 -0
  214. package/src/scss/props/__/__sizing.bkup.scss +45 -0
  215. package/src/scss/props/__/__typography.bkup.scss +146 -0
  216. package/src/scss/props/__memo.scss +15 -0
  217. package/src/scss/props/_border.scss +67 -0
  218. package/src/scss/props/_color.scss +16 -0
  219. package/src/scss/props/_hover.scss +73 -0
  220. package/src/scss/props/_transition.scss +20 -0
  221. package/src/scss/props/index.scss +12 -0
  222. package/src/scss/reset.scss +99 -0
  223. package/src/scss/state/__container.bkup.scss +145 -0
  224. package/src/scss/state/__flow.bkup.scss +52 -0
  225. package/src/scss/state/_container.scss +45 -0
  226. package/src/scss/state/_flow.scss +45 -0
  227. package/src/scss/state/_gutter.scss +3 -0
  228. package/src/scss/state/_has-divider.scss +30 -0
  229. package/src/scss/state/_layer.scss +7 -0
  230. package/src/scss/state/_linkbox.scss +18 -0
  231. package/src/scss/state/_size.scss +60 -0
  232. package/src/scss/state/index.scss +8 -0
  233. package/src/scss/utility/index.scss +76 -0
  234. package/src/scss/with_layer.scss +28 -0
package/README.md ADDED
@@ -0,0 +1,52 @@
1
+ ## Installation
2
+
3
+ For details, see [Docs](https://lism-css.com/)
4
+
5
+ ### 1. Installation
6
+
7
+ ```bash
8
+ npm i lism-css
9
+ ```
10
+
11
+ or
12
+
13
+ ```bash
14
+ pnpm add lism-css
15
+ ```
16
+
17
+ ### 2. Loading CSS
18
+
19
+ Please import CSS as a global style.
20
+
21
+ ```js
22
+ import 'lism-css/all.css';
23
+ ```
24
+
25
+ (For example, if it is Next.js, load it with `_app.js` or `layout.js`.)
26
+
27
+ For HTML sites, you can also load CSS via CDN.
28
+
29
+ ```html
30
+ <link href="https://cdn.jsdelivr.net/npm/lism-css/dist/css/all.css" rel="stylesheet" />
31
+ ```
32
+
33
+ ### 3. Using Components
34
+
35
+ ```jsx
36
+ import { Box, Text, ... } from 'lism-css/react';
37
+
38
+ // ...
39
+ <Box p='20' bgc="base-2">
40
+ <Text fz="l">Lorem ipsum text...</Text>
41
+ </Box>
42
+ // ...
43
+ ```
44
+
45
+ ---
46
+
47
+ ## include package
48
+
49
+ © Phosphor Icons
50
+ Website: https://phosphoricons.com/
51
+ Source: https://github.com/phosphor-icons
52
+ License: MIT License, https://opensource.org/licenses/MIT
@@ -0,0 +1,5 @@
1
+ import { __require as r } from "../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
+ var i = r();
3
+ export {
4
+ i as j
5
+ };
@@ -0,0 +1,4 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,10 @@
1
+ import { j as o } from "../../_virtual/jsx-runtime.js";
2
+ import { getAccIconProps as n } from "./getProps.js";
3
+ import i from "../Lism/index.js";
4
+ import s from "../Icon/index.js";
5
+ function x({ icon: r = "caret-down", viewBox: t, children: c = null, ...m }) {
6
+ return /* @__PURE__ */ o.jsx(i, { ...n(m), children: c || /* @__PURE__ */ o.jsx(s, { viewBox: t, icon: r }) });
7
+ }
8
+ export {
9
+ x as default
10
+ };
@@ -0,0 +1,29 @@
1
+ import i from "../../lib/helper/atts.js";
2
+ function c({ lismClass: a, ...o }) {
3
+ return o.lismClass = i(a, "d--accordion"), o;
4
+ }
5
+ function d({ isTrigger: a, ...o }) {
6
+ const n = {
7
+ lismClass: "d--accordion__icon",
8
+ tag: "span",
9
+ d: "inline-grid"
10
+ };
11
+ return a && (n.tag = "button", o["data-role"] = "trigger"), { ...n, ...o };
12
+ }
13
+ const r = {
14
+ header: { lismClass: "d--accordion__header", ai: "c" },
15
+ label: { lismClass: "d--accordion__label", tag: "span", fx: "1" },
16
+ body: {
17
+ lismClass: "d--accordion__body"
18
+ // trs: true,
19
+ },
20
+ inner: {
21
+ lismClass: "d--accordion__inner",
22
+ ov: "hidden"
23
+ }
24
+ };
25
+ export {
26
+ r as defaultProps,
27
+ d as getAccIconProps,
28
+ c as getAccProps
29
+ };
@@ -0,0 +1,6 @@
1
+ import { Body as o, Label as c, Header as r, Accordion as e } from "./index2.js";
2
+ import t from "./AccIcon.js";
3
+ const a = { Root: e, Header: r, Label: c, Icon: t, Body: o };
4
+ export {
5
+ a as default
6
+ };
@@ -0,0 +1,32 @@
1
+ import { j as e } from "../../_virtual/jsx-runtime.js";
2
+ import m from "react";
3
+ import f from "../../lib/getLismProps.js";
4
+ import { defaultProps as n, getAccProps as u } from "./getProps.js";
5
+ import { setEvent as c } from "./setAccordion.js";
6
+ import p from "../Grid/index.js";
7
+ import s from "../Lism/index.js";
8
+ import a from "../Flex/index.js";
9
+ function E({ children: r, ...t }) {
10
+ const o = m.useRef(null);
11
+ m.useEffect(() => {
12
+ if (o.current)
13
+ return c(o.current);
14
+ }, []);
15
+ const i = f(u(t));
16
+ return /* @__PURE__ */ e.jsx("details", { ref: o, ...i, children: r });
17
+ }
18
+ function L({ children: r, ...t }) {
19
+ return /* @__PURE__ */ e.jsx(a, { tag: "summary", ...n.header, ...t, children: r });
20
+ }
21
+ function R({ children: r, ...t }) {
22
+ return /* @__PURE__ */ e.jsx(s, { ...n.label, ...t, children: r });
23
+ }
24
+ function h({ children: r, isFlow: t, innerProps: o, ...i }) {
25
+ return /* @__PURE__ */ e.jsx(p, { ...n.body, ...i, children: /* @__PURE__ */ e.jsx(s, { isFlow: t, ...n.inner, ...o, children: r }) });
26
+ }
27
+ export {
28
+ E as Accordion,
29
+ h as Body,
30
+ L as Header,
31
+ R as Label
32
+ };
@@ -0,0 +1,37 @@
1
+ const r = (t) => Promise.all(t.getAnimations().map((e) => e.finished)), d = async (t, e = !1) => {
2
+ if (t.dataset.animating && !e) return;
3
+ t.dataset.animating = "1";
4
+ const n = t.querySelector(".d--accordion__body");
5
+ t.open ? t.open && (t.classList.remove("-opened"), await r(n), delete t.dataset.animating, t.open = !1) : (t.open = !0, setTimeout(async () => {
6
+ t.classList.add("-opened"), await r(n), delete t.dataset.animating;
7
+ }, 5));
8
+ }, p = (t, e) => {
9
+ const n = e.open, o = e.classList.contains("-opened");
10
+ n && !o && e.classList.add("-opened"), !n && o && e.classList.remove("-opened");
11
+ }, u = (t) => {
12
+ const e = t, n = e.querySelector('[data-role="trigger"]') || e.querySelector("summary");
13
+ if (!n) return;
14
+ let o = !1;
15
+ const s = e.parentNode;
16
+ s != null && (o = s.dataset.accordionMultiple !== "disallow");
17
+ const c = (a) => {
18
+ if (a.preventDefault(), !o && !e.open) {
19
+ const i = s.querySelector(".-opened");
20
+ i != null && d(i, !0);
21
+ }
22
+ d(e);
23
+ }, l = (a) => {
24
+ p(a, e);
25
+ };
26
+ return n.addEventListener("click", c), e.addEventListener("toggle", l), () => {
27
+ n.removeEventListener("click", c), e.removeEventListener("toggle", l);
28
+ };
29
+ }, m = () => {
30
+ document.querySelectorAll(".d--accordion").forEach((e) => {
31
+ u(e);
32
+ });
33
+ };
34
+ export {
35
+ m as default,
36
+ u as setEvent
37
+ };
@@ -0,0 +1 @@
1
+ .d--accordion{--trsdu:var(--trsdu--acc)}.d--accordion.-opened{--_notOpened: }.d--accordion:not(.-opened){--_isOpened: }.d--accordion__header{gap:.5em;outline-offset:-1px}.d--accordion__header::-webkit-details-marker{display:none}.d--accordion__body{grid-template-rows:1fr;transition-duration:var(--trsdu);transition-property:margin-block,padding-block,opacity,grid-template-rows}:where(.d--accordion:not(.-opened))>.d--accordion__body{grid-template-rows:0fr;margin-block:0!important;padding-block:0!important}:where(.d--accordion__icon)>.l--icon{rotate:var(--_isOpened,-180deg);transition-duration:var(--trsdu)}
@@ -0,0 +1,7 @@
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
+ };
@@ -0,0 +1,9 @@
1
+ import { j as t } from "../../_virtual/jsx-runtime.js";
2
+ import m from "./getProps.js";
3
+ import s from "../Lism/index.js";
4
+ function e({ children: o, ...r }) {
5
+ return /* @__PURE__ */ t.jsx(s, { ...m(r), children: o });
6
+ }
7
+ export {
8
+ e as default
9
+ };
@@ -0,0 +1,8 @@
1
+ import { j as t } from "../../_virtual/jsx-runtime.js";
2
+ import e from "../Grid/index.js";
3
+ function n(r) {
4
+ return /* @__PURE__ */ t.jsx(e, { _grid: "center", ...r });
5
+ }
6
+ export {
7
+ n as default
8
+ };
@@ -0,0 +1,6 @@
1
+ function a({ colSize: n, colAuto: t, style: f = {}, ...u }) {
2
+ return n && (f["--col-size"] = n), t && (f["--col-auto"] = t), u.style = f, u;
3
+ }
4
+ export {
5
+ a as default
6
+ };
@@ -0,0 +1,9 @@
1
+ import { j as r } from "../../_virtual/jsx-runtime.js";
2
+ import m from "./getProps.js";
3
+ import t from "../Grid/index.js";
4
+ function u(o) {
5
+ return /* @__PURE__ */ r.jsx(t, { _grid: "columns", ...m(o) });
6
+ }
7
+ export {
8
+ u as default
9
+ };
@@ -0,0 +1,9 @@
1
+ import { j as i } from "../../_virtual/jsx-runtime.js";
2
+ import s from "../Lism/index.js";
3
+ function m({ size: t = !0, layout: o, ...r }) {
4
+ const n = o || s;
5
+ return /* @__PURE__ */ i.jsx(n, { isContainer: t, ...r });
6
+ }
7
+ export {
8
+ m as default
9
+ };
@@ -0,0 +1,15 @@
1
+ import o from "../../lib/helper/atts.js";
2
+ import s from "../getTransformProps.js";
3
+ import i from "../getInsetProps.js";
4
+ function u({ lismClass: e, size: r, ...t }) {
5
+ t = s(i(t)), r && (t.ar = "1/1", t.w = r);
6
+ const a = {
7
+ lismClass: o(e, "l--decorator"),
8
+ skipState: !0,
9
+ "aria-hidden": "true"
10
+ };
11
+ return Object.assign(a, t);
12
+ }
13
+ export {
14
+ u as default
15
+ };
@@ -0,0 +1,9 @@
1
+ import { j as o } from "../../_virtual/jsx-runtime.js";
2
+ import t from "./getProps.js";
3
+ import m from "../Lism/index.js";
4
+ function p(r) {
5
+ return /* @__PURE__ */ o.jsx(m, { ...t(r) });
6
+ }
7
+ export {
8
+ p as default
9
+ };
@@ -0,0 +1,11 @@
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
+ };
@@ -0,0 +1,9 @@
1
+ import { j as t } from "../../_virtual/jsx-runtime.js";
2
+ import { getDividerProps as i } from "./getProps.js";
3
+ import o from "../Lism/index.js";
4
+ function p(r) {
5
+ return /* @__PURE__ */ t.jsx(o, { skipState: !0, ...i(r) });
6
+ }
7
+ export {
8
+ p as default
9
+ };
@@ -0,0 +1,9 @@
1
+ import s from "./texts.js";
2
+ const o = (e) => e.split(/([,.、。])/).filter((i) => i !== "").reduce((i, r, n, l) => (n % 2 === 0 && i.push(r + (l[n + 1] || "")), i), []);
3
+ function c({ tag: e = "p", pre: i = "", length: r = "m", lang: n = "en", offset: l = 0 }) {
4
+ let t = s[n][r] || "";
5
+ return e === "ul" || e === "ol" ? (t = o(t).map((u) => `<li>${u.trim()}</li>`).join(""), i && (t = `<li>${i}</li>` + t)) : (l && (t = o(t).slice(l).join("").trim(), t = t.charAt(0).toUpperCase() + t.slice(1)), i && (t = i + t)), t;
6
+ }
7
+ export {
8
+ c as default
9
+ };
@@ -0,0 +1,17 @@
1
+ import { j as i } from "../../_virtual/jsx-runtime.js";
2
+ import p from "./getContent.js";
3
+ import u from "../Lism/index.js";
4
+ function c({
5
+ tag: t = "p",
6
+ pre: n = "",
7
+ length: o = "m",
8
+ lang: m = "en",
9
+ offset: r = 0,
10
+ ...e
11
+ }) {
12
+ const s = p({ tag: t, pre: n, lang: m, length: o, offset: r });
13
+ return /* @__PURE__ */ i.jsx(u, { tag: t, ...e, dangerouslySetInnerHTML: { __html: s } });
14
+ }
15
+ export {
16
+ c as default
17
+ };
@@ -0,0 +1,24 @@
1
+ const e = {
2
+ ja: {
3
+ xs: "ロレムイプサムの座り雨。",
4
+ s: "ロレムイプサムの座り雨、トマ好き学習だったエリット、しかし時と活力はそのような木々と楽しみ。",
5
+ m: "ロレムイプサムの座り雨、トマ好き学習だったエリット、しかし時と活力はそのような木々と楽しみ。ブラインド行うにはいくつかの重要な事柄が流れます。",
6
+ l: "ロレムイプサムの座り雨、トマ好き学習だったエリット、しかし時と活力はそのような木々と楽しみ。ブラインド行うにはいくつかの重要な事柄が流れます。長年にわたり、私は学区と長寿であれば、そのような Liberroy, Foo の取り組み、我らのうち、Mulla Sunt の利点を提案したのなら。",
7
+ xl: "ロレムイプサムの座り雨、トマ好き学習だったエリット、しかし時と活力はそのような木々と楽しみ。ブラインド行うにはいくつかの重要な事柄が流れます。長年にわたり、私は学区と長寿であれば、そのような Liberroy, Foo の取り組み、我らのうち、Mulla Sunt の利点を提案したのなら。つまり、彼らはあなたの悩みに一般的な魂を癒しています。困難な必要性に少ないもの、それがコンテンツの比較です。あなたが選択的な彼女の事実、無意味な含有、便利な阻止と甘さ、誰かがもっと腐敗した残り物。提供する時間の生活、それで発明者が賢明です。",
8
+ codes: "<b>ロレムイプサム</b>の座り雨、<a href='###'>トマ好き学習だったエリット</a>、しかし<i>時と活力</i>はそのような木々と楽しみ。長年にわたり、私は学区と長寿であれば、そのような<code>Liberroy</code>の取り組み。"
9
+ },
10
+ en: {
11
+ xs: "Lorem ipsum dolor sit amet.",
12
+ s: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor.",
13
+ m: "Lorem ipsum dolor sit, amet consectetur adipisicing elit, sed do eiusmod tempor. Non facere laudantium ex eos doloribus aut dolore nisi.",
14
+ l: "Lorem ipsum dolor sit, amet consectetur adipisicing elit, sed do eiusmod tempor. Non facere laudantium ex eos doloribus aut dolore nisi provident libero, eum nulla sunt, porro sed dicta. Impedit ullam eveniet obcaecati minima.",
15
+ xl: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor. Amet ab commodi rerum voluptas iusto dolores numquam cum ratione, dignissimos quia recusandae assumenda magnam, molestiae necessitatibus quas minus, quod consectetur pariatur. Possimus eligendi ipsam rerum, nihil incidunt, commodi impedit eum blanditiis, quisquam maiores corrupti rem. Provident tempora vitae, quo at inventore est sapiente.",
16
+ codes: "<b>Lorem ipsum</b> dolor sit amet. <a href='###'>consectetur adipisicing</a> elit, <i>sed do eiusmod</i> tempor. Non facere <code>Laudantium</code> ex eos doloribus aut dolore nisi provident."
17
+ },
18
+ ar: {
19
+ s: "هذا نص وهمي أنا أكتب جمل ليس لها معنى معين.هذا نص وهمي أنا أكتب جمل ليس لها معنى معين.هذا نص وهمي أنا أكتب جمل ليس لها معنى معين."
20
+ }
21
+ };
22
+ export {
23
+ e as default
24
+ };
@@ -0,0 +1,8 @@
1
+ import { j as t } from "../../_virtual/jsx-runtime.js";
2
+ import e from "./index.js";
3
+ function u(r) {
4
+ return /* @__PURE__ */ t.jsx(e, { variant: "cluster", ...r });
5
+ }
6
+ export {
7
+ u as default
8
+ };
@@ -0,0 +1,9 @@
1
+ import { j as s } from "../../_virtual/jsx-runtime.js";
2
+ import e from "../Lism/index.js";
3
+ function p({ children: t, layout: o, ...m }) {
4
+ const r = o || e;
5
+ return /* @__PURE__ */ s.jsx(r, { ...m, children: t });
6
+ }
7
+ export {
8
+ p as default
9
+ };
@@ -0,0 +1,13 @@
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
+ };
@@ -0,0 +1,9 @@
1
+ import { j as o } from "../../_virtual/jsx-runtime.js";
2
+ import { getFlexProps as t } from "./getProps.js";
3
+ import m from "../Lism/index.js";
4
+ function p(r) {
5
+ return /* @__PURE__ */ o.jsx(m, { ...t(r) });
6
+ }
7
+ export {
8
+ p as default
9
+ };
@@ -0,0 +1,7 @@
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
+ };
@@ -0,0 +1,9 @@
1
+ import { j as o } from "../../_virtual/jsx-runtime.js";
2
+ import t from "./getProps.js";
3
+ import m from "../Lism/index.js";
4
+ function p({ ...r }) {
5
+ return /* @__PURE__ */ o.jsx(m, { ...t(r) });
6
+ }
7
+ export {
8
+ p as default
9
+ };
@@ -0,0 +1,10 @@
1
+ import { j as i } from "../../_virtual/jsx-runtime.js";
2
+ import { getGridItemProps as s } from "./getProps.js";
3
+ import e from "../Lism/index.js";
4
+ function u({ children: t, layout: o, ...r }) {
5
+ const m = o || e;
6
+ return /* @__PURE__ */ i.jsx(m, { ...s(r), children: t });
7
+ }
8
+ export {
9
+ u as default
10
+ };
@@ -0,0 +1,28 @@
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
+ };
@@ -0,0 +1,9 @@
1
+ import { j as t } from "../../_virtual/jsx-runtime.js";
2
+ import { getGridProps as i } from "./getProps.js";
3
+ import m from "../Lism/index.js";
4
+ function s(r) {
5
+ return r = i(r), /* @__PURE__ */ t.jsx(m, { ...r });
6
+ }
7
+ export {
8
+ s as default
9
+ };
@@ -0,0 +1,29 @@
1
+ import { j as s } from "../../_virtual/jsx-runtime.js";
2
+ function x({
3
+ size: t = "1em",
4
+ fill: e = "currentColor",
5
+ viewBox: o = "0 0 24 24",
6
+ path: r,
7
+ children: n,
8
+ ...l
9
+ }) {
10
+ return /* @__PURE__ */ s.jsxs(
11
+ "svg",
12
+ {
13
+ xmlns: "http://www.w3.org/2000/svg",
14
+ viewBox: o,
15
+ width: t,
16
+ height: t,
17
+ fill: e,
18
+ focusable: "false",
19
+ ...l,
20
+ children: [
21
+ r && /* @__PURE__ */ s.jsx("path", { d: r }),
22
+ n
23
+ ]
24
+ }
25
+ );
26
+ }
27
+ export {
28
+ x as default
29
+ };
@@ -0,0 +1,34 @@
1
+ import d from "./presets.js";
2
+ import C from "../../lib/helper/atts.js";
3
+ function b({
4
+ lismClass: o,
5
+ // variant,
6
+ as: a,
7
+ tag: u,
8
+ scale: n,
9
+ offset: m,
10
+ icon: t,
11
+ label: r,
12
+ style: f = {},
13
+ exProps: e = {},
14
+ ...i
15
+ }) {
16
+ const g = ["l--icon"];
17
+ let s = u || "span";
18
+ if (i.viewBox)
19
+ s = "svg";
20
+ else if (t)
21
+ if (typeof t == "string") {
22
+ const l = d[t] || null;
23
+ l != null && (s = "_SVG_", e = { ...e, ...l });
24
+ } else if (typeof t == "object" && t.as) {
25
+ const { as: l, ..._ } = t;
26
+ s = l, e = { ...e, ..._ };
27
+ } else
28
+ s = t;
29
+ else a && (s = a);
30
+ return r ? (e["aria-label"] = r, e.role = "img") : e["aria-hidden"] = "true", n && (f["--scale"] = n), m && (f["--offset"] = m), i.lismClass = C(o, g), i.style = f, { Component: s, lismProps: i, exProps: e };
31
+ }
32
+ export {
33
+ b as default
34
+ };
@@ -0,0 +1,11 @@
1
+ import { j as s } from "../../_virtual/jsx-runtime.js";
2
+ import e from "../../lib/getLismProps.js";
3
+ import i from "./getProps.js";
4
+ import f from "./SVG.js";
5
+ function a({ children: r, ...t }) {
6
+ let { Component: o, lismProps: m, exProps: p } = i(t);
7
+ return o === "_SVG_" && (o = f), /* @__PURE__ */ s.jsx(o, { ...e(m), ...p, children: r });
8
+ }
9
+ export {
10
+ a as default
11
+ };