lism-css 0.7.3 → 0.8.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/README.md +1 -1
  2. package/bin/build-config.js +1 -1
  3. package/config/defaults/props.js +67 -68
  4. package/config/defaults/states.js +8 -7
  5. package/config/defaults/tokens.js +6 -5
  6. package/dist/components/Accordion/setAccordion.js +19 -19
  7. package/dist/components/Container/index.js +5 -5
  8. package/dist/components/Dummy/texts.js +28 -13
  9. package/dist/components/HTML/index2.js +13 -13
  10. package/dist/components/LiquidGrid/index.js +8 -0
  11. package/dist/components/Modal/getProps.js +2 -2
  12. package/dist/components/Wrapper/index.js +8 -0
  13. package/dist/components/atomic/Decorator/getProps.js +6 -5
  14. package/dist/components/atomic/Icon/getProps.js +39 -48
  15. package/dist/components/atomic/Icon/presets.js +6 -2
  16. package/dist/components/setMaybeTransformStyles.js +7 -0
  17. package/dist/config/defaults/props.js +65 -70
  18. package/dist/config/defaults/states.js +8 -6
  19. package/dist/config/defaults/tokens.js +6 -5
  20. package/dist/css/base/set.css +1 -0
  21. package/dist/css/base.css +1 -1
  22. package/dist/css/main.css +1 -1
  23. package/dist/css/main_no_layer.css +1 -1
  24. package/dist/css/modules/atomic.css +1 -1
  25. package/dist/css/modules/dynamic.css +1 -1
  26. package/dist/css/modules/layout.css +1 -1
  27. package/dist/css/modules/state.css +1 -1
  28. package/dist/css/props.css +1 -1
  29. package/dist/css/reset.css +1 -1
  30. package/dist/css/utility.css +1 -1
  31. package/dist/index.js +38 -34
  32. package/dist/lib/getLayoutProps.js +15 -15
  33. package/package.json +1 -1
  34. package/packages/astro/Container/Container.astro +2 -2
  35. package/packages/astro/HTML/_index_memo.js +29 -0
  36. package/packages/astro/HTML/button.astro +1 -1
  37. package/packages/astro/LiquidGrid/LiquidGrid.astro +5 -0
  38. package/packages/astro/LiquidGrid/index.js +1 -0
  39. package/packages/astro/Test/Test.astro +1 -1
  40. package/packages/astro/Wrapper/Wrapper.astro +7 -0
  41. package/packages/astro/Wrapper/index.js +1 -0
  42. package/packages/astro/index.js +2 -0
  43. package/src/scss/_prop-config.scss +65 -91
  44. package/src/scss/_with_layer.scss +3 -0
  45. package/src/scss/base/_base.scss +175 -0
  46. package/src/scss/base/_property.scss +6 -16
  47. package/src/scss/base/_tokens.scss +68 -195
  48. package/src/scss/base/_typography.scss +134 -0
  49. package/src/scss/base/index.scss +3 -16
  50. package/src/scss/base/set/_bp.scss +17 -0
  51. package/src/scss/base/set/_hov.scss +16 -0
  52. package/src/scss/base/set/_mask.scss +6 -6
  53. package/src/scss/base/set/_plain.scss +10 -6
  54. package/src/scss/base/set/_shadow.scss +10 -18
  55. package/src/scss/base/set/_snap.scss +3 -3
  56. package/src/scss/base/set/_transition.scss +2 -11
  57. package/src/scss/base/set/index.scss +8 -0
  58. package/src/scss/modules/atomic/_divider.scss +1 -1
  59. package/src/scss/modules/atomic/_spacer.scss +4 -3
  60. package/src/scss/modules/atomic/index.scss +1 -1
  61. package/src/scss/modules/dynamic/_accordion.scss +6 -6
  62. package/src/scss/modules/dynamic/_modal.scss +4 -4
  63. package/src/scss/modules/dynamic/_tabs.scss +4 -4
  64. package/src/scss/modules/layout/_columns.scss +1 -2
  65. package/src/scss/modules/layout/_flow.scss +1 -1
  66. package/src/scss/modules/layout/_grid.scss +0 -27
  67. package/src/scss/modules/layout/_liquidGrid.scss +9 -0
  68. package/src/scss/modules/layout/index.scss +1 -0
  69. package/src/scss/modules/state/_container.scss +6 -31
  70. package/src/scss/modules/state/_gutter.scss +1 -1
  71. package/src/scss/modules/state/_layer.scss +0 -2
  72. package/src/scss/modules/state/_vertical.scss +9 -0
  73. package/src/scss/modules/state/_wrapper.scss +18 -0
  74. package/src/scss/modules/state/index.scss +3 -1
  75. package/src/scss/props/_border.scss +3 -4
  76. package/src/scss/props/_hover.scss +14 -10
  77. package/src/scss/props/_lh.scss +16 -0
  78. package/src/scss/props/_size.scss +5 -5
  79. package/src/scss/props/index.scss +1 -0
  80. package/src/scss/reset.scss +118 -56
  81. package/src/scss/utility/_cbox.scss +11 -6
  82. package/src/scss/utility/_itemDivider.scss +3 -4
  83. package/src/scss/utility/_linkExpand.scss +2 -0
  84. package/src/scss/utility/_trimHL.scss +9 -9
  85. package/src/scss/base/_dom.scss +0 -147
  86. package/src/scss/base/set/_hover.scss +0 -13
package/README.md CHANGED
@@ -36,7 +36,7 @@ For HTML sites, you can also load CSS via CDN.
36
36
  import { Box, HTML, ... } from 'lism-css/react';
37
37
 
38
38
  // ...
39
- <Box p='20' bgc="base-2">
39
+ <Box p='15' bgc="base-2">
40
40
  <HTML.p fz="l">Lorem ipsum text...</HTML.p>
41
41
  </Box>
42
42
  // ...
@@ -18,7 +18,7 @@ function generateUtilities(propConfig, TOKENS) {
18
18
  const utilities = {};
19
19
 
20
20
  // tokenをクラス化するのであれば presetsへ追加
21
- if (token && tokenClass) {
21
+ if (token && tokenClass === 1) {
22
22
  const tokenValues = TOKENS[token];
23
23
  if (tokenValues && Array.isArray(tokenValues)) {
24
24
  presets.push(...tokenValues);
@@ -6,6 +6,7 @@
6
6
  *
7
7
  * ↓コンポーネント処理で使用される
8
8
  * tokenClass: 1 → 対応するトークン値がそのまま全てユーティリティクラス化されるもの。
9
+ * 2 → ユーティリティクラスされ、内容は別途ファイルで記述するもの。
9
10
  * shorthands: → コンポーネント側で短く書くための設定
10
11
  *
11
12
  * ↓SCSS出力で使用される
@@ -24,11 +25,23 @@ export default {
24
25
  fw: { prop: 'fontWeight', token: 'fw', tokenClass: 1 },
25
26
  ff: { prop: 'fontFamily', token: 'ff', tokenClass: 1 },
26
27
  fs: { prop: 'fontStyle', presets: ['italic'], shorthands: { i: 'italic' } },
27
- lh: { prop: 'lineHeight', presets: ['1'], token: 'lh', tokenClass: 1, bp: 1, alwaysVar: 1 },
28
+ lh: {
29
+ prop: 'lineHeight',
30
+ presets: ['1'],
31
+ token: 'hl',
32
+ tokenClass: 2,
33
+ exUtility: { 1: '' },
34
+ },
35
+ hl: {
36
+ isVar: 1,
37
+ token: 'hl',
38
+ tokenClass: 0,
39
+ bp: 1,
40
+ },
28
41
  lts: { prop: 'letterSpacing', token: 'lts', tokenClass: 1 },
29
42
  ta: { prop: 'textAlign', presets: ['center', 'left', 'right'] },
30
- td: { prop: 'textDecoration', utils: { under: 'underline', none: 'none' } },
31
- // tt: { prop: 'textTransform', utils: { upper: 'uppercase', lower: 'lowercase' } },
43
+ td: { prop: 'textDecoration', utils: { none: 'none' } },
44
+ tt: { prop: 'textTransform', utils: { upper: 'uppercase', lower: 'lowercase' } },
32
45
  // te: { prop: 'textEmphasis', presets: ['filled'] },
33
46
  // tsh: { prop: 'textShadow' },
34
47
 
@@ -54,7 +67,7 @@ export default {
54
67
 
55
68
  // size
56
69
  w: { prop: 'width', utils: { fit: 'fit-content' }, presets: ['100%'], token: 'sz', bp: 1 },
57
- h: { prop: 'height', presets: ['100%'], token: 'sz', bp: 1 },
70
+ h: { prop: 'height', utils: { fit: 'fit-content' }, presets: ['100%'], token: 'sz', bp: 1 },
58
71
  'min-w': { prop: 'minWidth', presets: ['100%'], token: 'sz', bp: 1 },
59
72
  'max-w': { prop: 'maxWidth', presets: ['100%'], token: 'sz', bp: 1 },
60
73
  'min-h': { prop: 'minHeight', presets: ['100%'], token: 'sz', bp: 1 },
@@ -69,7 +82,7 @@ export default {
69
82
  exUtility: {
70
83
  min: '',
71
84
  full: '',
72
- outer: '',
85
+ container: '',
73
86
  },
74
87
  },
75
88
  ysz: { prop: 'blockSize', token: 'sz' },
@@ -78,21 +91,20 @@ export default {
78
91
 
79
92
  // bg
80
93
  bg: { prop: 'background', bp: 1 },
81
- bgi: { prop: 'backgroundImage' },
82
- bgr: { prop: 'backgroundRepeat', utils: { no: 'no-repeat' } },
83
- bgp: { prop: 'backgroundPosition', presets: ['center'] },
84
- bgsz: { prop: 'backgroundSize', presets: ['cover', 'contain'] },
85
- bga: { prop: 'backgroundAttachment' }, // fixed
86
- bgo: { prop: 'backgroundOrigin' }, // border, padding, content
87
- bgblend: { prop: 'backgroundBlendMode' },
88
- bgclip: {
89
- prop: 'backgroundClip',
90
- presets: ['text'],
91
- },
94
+ // bgi: { prop: 'backgroundImage' },
95
+ // bgr: { prop: 'backgroundRepeat', utils: { no: 'no-repeat' } },
96
+ // bgp: { prop: 'backgroundPosition', presets: ['center'] },
97
+ // bgsz: { prop: 'backgroundSize', presets: ['cover', 'contain'] },
98
+ // bga: { prop: 'backgroundAttachment' }, // fixed
99
+ // bgo: { prop: 'backgroundOrigin' }, // border, padding, content
100
+ // bgblend: { prop: 'backgroundBlendMode' },
101
+ // bgclip: {
102
+ // prop: 'backgroundClip',
103
+ // presets: ['text'],
104
+ // },
92
105
  bgc: {
93
106
  prop: 'backgroundColor',
94
- presets: ['base', 'base-2', 'text', 'inherit', 'main', 'accent'],
95
- utils: { trsp: 'transparent' },
107
+ presets: ['base', 'base-2', 'text', 'brand', 'accent', 'inherit', 'transparent'],
96
108
  token: 'color',
97
109
  exUtility: { inherit: { 'background-color': 'inherit' } },
98
110
  alwaysVar: 1,
@@ -101,9 +113,7 @@ export default {
101
113
  c: {
102
114
  // Note: bg系(bgclip)より後にくるように。
103
115
  prop: 'color',
104
- presets: ['base', 'text', 'text-2', 'main', 'accent', 'inherit'],
105
- utils: { trsp: 'transparent' },
106
- // tt
116
+ presets: ['base', 'text', 'text-2', 'brand', 'accent', 'inherit'],
107
117
  token: 'color',
108
118
  exUtility: {
109
119
  inherit: { color: 'inherit' }, // --c ではなく color で出力したい
@@ -116,8 +126,8 @@ export default {
116
126
  bds: { isVar: 1, presets: ['dashed', 'dotted', 'double'] },
117
127
  bdc: {
118
128
  isVar: 1,
119
- presets: ['main', 'accent', 'line', 'inherit'],
120
- utils: { trsp: 'transparent' },
129
+ presets: ['brand', 'accent', 'divider', 'inherit', 'transparent'],
130
+ utils: { cc: 'currentColor' },
121
131
  token: 'color',
122
132
  },
123
133
  bdw: { isVar: 1, bp: 1 }, // --bdw のみ
@@ -250,11 +260,7 @@ export default {
250
260
  gta: { prop: 'gridTemplateAreas', bp: 1 },
251
261
  gtc: {
252
262
  prop: 'gridTemplateColumns',
253
- presets: ['subgrid', 'liquid'],
254
- exUtility: {
255
- // repeat: { '--cols': '1', '--gtc': 'repeat(var(--cols), 1fr)' },
256
- liquid: { '--cols': 'var(--sz--min)', '--gtc': 'repeat(auto-fit, minmax(min(var(--cols), 100%), 1fr))' },
257
- },
263
+ presets: ['subgrid'],
258
264
  bp: 1,
259
265
  },
260
266
  gtr: {
@@ -306,6 +312,8 @@ export default {
306
312
  shorthands: PLACE_SHORTHANDS,
307
313
  bp: 1,
308
314
  },
315
+ pi: { prop: 'placeItems', presets: PLACE_PRESETS },
316
+ pc: { prop: 'placeContent', presets: PLACE_PRESETS },
309
317
  aslf: {
310
318
  prop: 'alignSelf',
311
319
  presets: [...PLACE_PRESETS, 'stretch'],
@@ -316,53 +324,44 @@ export default {
316
324
  presets: [...PLACE_PRESETS, 'stretch'],
317
325
  shorthands: PLACE_SHORTHANDS,
318
326
  },
319
- pi: { prop: 'placeItems' },
320
- pc: { prop: 'placeContent' },
321
- pslf: { prop: 'placeSelf' },
327
+ pslf: { prop: 'placeSelf', presets: PLACE_PRESETS },
322
328
  order: { prop: 'order', presets: ['0', '-1', '1'] },
323
329
 
324
330
  // transform
325
- translate: {
326
- prop: 'translate',
327
- utils: {
328
- '-50X': '-50% 0',
329
- '-50Y': '0 -50%',
330
- '-50XY': '-50% -50%',
331
- },
332
- },
333
- //rtt
334
- rotate: {
335
- prop: 'rotate',
336
- utils: {
337
- [`45`]: '45deg',
338
- '-45': '-45deg',
339
- [`90`]: '90deg',
340
- '-90': '-90deg',
341
- // '180': '180deg',
342
- },
343
- },
344
- //scl
345
- scale: {
346
- prop: 'scale',
347
- utils: {
348
- '-X': '-1 1',
349
- '-Y': '1 -1',
350
- '-XY': '-1 -1',
351
- },
352
- },
331
+ // translate: {
332
+ // prop: 'translate',
333
+ // utils: {
334
+ // '-50X': '-50% 0',
335
+ // '-50Y': '0 -50%',
336
+ // '-50XY': '-50% -50%',
337
+ // },
338
+ // },
339
+
340
+ // rotate: {
341
+ // prop: 'rotate',
342
+ // utils: {
343
+ // [`45`]: '45deg',
344
+ // '-45': '-45deg',
345
+ // [`90`]: '90deg',
346
+ // '-90': '-90deg',
347
+ // // '180': '180deg',
348
+ // },
349
+ // },
350
+
351
+ // scale: {
352
+ // prop: 'scale',
353
+ // utils: {
354
+ // '-X': '-1 1',
355
+ // '-Y': '1 -1',
356
+ // '-XY': '-1 -1',
357
+ // },
358
+ // },
353
359
 
354
360
  // others
355
- // msk: { prop: 'mask', bp: 1 },
356
- ovw: { prop: 'overflowWrap', utils: { any: 'anywhere' } },
357
- whitespace: { prop: 'whiteSpace', presets: ['nowrap'] },
361
+ ovwrap: { prop: 'overflowWrap', utils: { any: 'anywhere' } },
362
+ whspace: { prop: 'whiteSpace', presets: ['nowrap'] },
358
363
  // wordbreak: { prop: 'wordBreak', utils: { keep: 'keep-all', all: 'break-all' } },
359
- writing: { prop: 'writingMode', token: 'writing', tokenClass: 1, bp: 1 },
360
364
  float: { prop: 'float', presets: ['left', 'right'] },
361
365
  clear: { prop: 'clear', presets: ['both'] },
362
366
  isolation: { prop: 'isolation', presets: ['isolate'] },
363
-
364
- // transition
365
- duration: { isVar: 1 },
366
- delay: { isVar: 1 },
367
- ease: { isVar: 1 },
368
367
  };
@@ -2,21 +2,22 @@ import getSvgUrl from '../helper/getSvgUrl.js';
2
2
  // import minifyHtml from '../helper/minifyHtml.js';
3
3
 
4
4
  export default {
5
- isContainer: {
6
- className: 'is--container',
7
- preset: ['s', 'm', 'l'],
8
- presetClass: '-container',
9
- customVar: '--contentSz',
5
+ isContainer: 'is--container',
6
+ isWrapper: {
7
+ className: 'is--wrapper',
8
+ preset: ['s', 'l'],
9
+ presetClass: '-content',
10
+ customVar: '--contentSize',
10
11
  tokenKey: 'sz',
11
12
  },
12
13
  isLayer: 'is--layer',
13
14
  isLinkBox: 'is--linkBox',
14
15
  isSide: 'is--side',
15
16
  isSkipFlow: 'is--skipFlow',
17
+ isVertical: 'is--vertical',
16
18
  hasGutter: 'has--gutter',
17
19
 
18
20
  // set class
19
-
20
21
  setShadow: 'set-shadow',
21
22
  setHov: 'set-hov',
22
23
  setTransition: 'set-transition',
@@ -37,6 +38,6 @@ export default {
37
38
  },
38
39
  },
39
40
  setPlain: 'set-plain',
40
- setRevert: 'set-revert',
41
+ // setRevert: 'set-revert',
41
42
  setInnerRs: 'set-innerRs',
42
43
  };
@@ -1,21 +1,22 @@
1
1
  export default {
2
2
  fz: ['root', 'base', '5xl', '4xl', '3xl', '2xl', 'xl', 'l', 'm', 's', 'xs', '2xs'],
3
- lh: ['base', 'xs', 's', 'l', 'xl'],
3
+ lh: ['base', 'xs', 's', 'l'],
4
+ hl: ['base', 'xs', 's', 'l'],
4
5
  lts: ['base', 's', 'l'],
5
6
  ff: ['base', 'accent', 'mono'],
6
7
  fw: ['thin', 'light', 'normal', 'medium', 'bold', 'black'],
7
8
  o: ['-10', '-20', '-30'],
8
9
  bdrs: ['5', '10', '20', '30', '40', '50', '99', 'inner'],
9
10
  bxsh: ['5', '10', '20', '30', '40', '50'],
10
- sz: ['xs', 's', 'm', 'l', 'xl', 'min', 'full', 'outer'],
11
+ sz: ['xs', 's', 'm', 'l', 'xl', 'min', 'full', 'container'],
11
12
  ar: ['og'],
12
13
  space: {
13
14
  pre: '--s',
14
- values: ['5', '10', '20', '30', '40', '50', '60', '70', '80'],
15
+ values: ['5', '10', '15', '20', '30', '40', '50', '60', '70', '80'],
15
16
  },
16
17
  c: {
17
- pre: '--c--',
18
- values: ['base', 'base-2', 'text', 'text-2', 'line', 'link', 'main', 'accent'],
18
+ pre: '--',
19
+ values: ['base', 'base-2', 'text', 'text-2', 'border', 'link', 'brand', 'accent'],
19
20
  },
20
21
  palette: {
21
22
  pre: '--',
@@ -1,37 +1,37 @@
1
- const r = (t) => Promise.all(t.getAnimations().map((e) => e.finished)), d = async (t, e = !1) => {
1
+ const s = (t) => Promise.all(t.getAnimations().map((e) => e.finished)), d = async (t, e = !1) => {
2
2
  if (t.dataset.animating && !e) return;
3
3
  t.dataset.animating = "1";
4
4
  const n = t.querySelector(".d--accordion_body");
5
- t.open ? t.open && (t.classList.remove("js-opened"), await r(n), delete t.dataset.animating, t.open = !1) : (t.open = !0, setTimeout(async () => {
6
- t.classList.add("js-opened"), await r(n), delete t.dataset.animating;
5
+ t.open ? t.open && (t.removeAttribute("data-opened"), await s(n), delete t.dataset.animating, t.open = !1) : (t.open = !0, setTimeout(async () => {
6
+ t.setAttribute("data-opened", ""), await s(n), delete t.dataset.animating;
7
7
  }, 5));
8
- }, p = (t, e) => {
9
- const n = e.open, o = e.classList.contains("js-opened");
10
- n && !o && e.classList.add("js-opened"), !n && o && e.classList.remove("js-opened");
11
- }, u = (t) => {
8
+ }, u = (t, e) => {
9
+ const n = e.open, o = e.hasAttribute("data-opened");
10
+ n && !o && e.setAttribute("data-opened", ""), !n && o && e.removeAttribute("data-opened");
11
+ }, p = (t) => {
12
12
  const e = t, n = e.querySelector('[data-role="trigger"]') || e.querySelector("summary");
13
13
  if (!n) return;
14
14
  let o = !1;
15
- const a = e.parentNode;
16
- a != null && (o = a.dataset.accordionMultiple !== "disallow");
17
- const c = (s) => {
18
- if (s.preventDefault(), !o && !e.open) {
19
- const i = a.querySelector(".js-opened");
20
- i != null && d(i, !0);
15
+ const r = e.parentNode;
16
+ r != null && (o = r.dataset.accordionMultiple !== "disallow");
17
+ const c = (a) => {
18
+ if (a.preventDefault(), !o && !e.open) {
19
+ const l = r.querySelector("[data-opened]");
20
+ l != null && d(l, !0);
21
21
  }
22
22
  d(e);
23
- }, l = (s) => {
24
- p(s, e);
23
+ }, i = (a) => {
24
+ u(a, e);
25
25
  };
26
- return n.addEventListener("click", c), e.addEventListener("toggle", l), () => {
27
- n.removeEventListener("click", c), e.removeEventListener("toggle", l);
26
+ return n.addEventListener("click", c), e.addEventListener("toggle", i), () => {
27
+ n.removeEventListener("click", c), e.removeEventListener("toggle", i);
28
28
  };
29
29
  }, m = () => {
30
30
  document.querySelectorAll(".d--accordion").forEach((e) => {
31
- u(e);
31
+ p(e);
32
32
  });
33
33
  };
34
34
  export {
35
35
  m as default,
36
- u as setEvent
36
+ p as setEvent
37
37
  };
@@ -1,8 +1,8 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import i from "../Lism/index.js";
3
- function m({ size: r, ...t }) {
4
- return /* @__PURE__ */ o(i, { isContainer: r || !0, ...t });
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import o from "../Lism/index.js";
3
+ function a({ size: r, ...t }) {
4
+ return /* @__PURE__ */ i(o, { isContainer: !0, isWrapper: r, ...t });
5
5
  }
6
6
  export {
7
- m as default
7
+ a as default
8
8
  };
@@ -1,24 +1,39 @@
1
1
  const e = {
2
+ ja: [
3
+ "ロレム・イプサムの座り雨。",
4
+ "目まぐるしい文章の流れの中で、それは静かに歩く仮の言葉です。",
5
+ "Elitも穏やかに続いていきますが、積み重ねられてきた「LiberroyとFoogの取り組み」は、余白のようなものです。",
6
+ "作業が進むにつれて、工夫や考えとともに関心が折り重なりながらも、必要以上に主張せず彼らの作品は私たちに一定の示唆を与えてくれます。",
7
+ "内容の違いを比べるためのドラーとして、静かにそこにあります。選ばれた事実や、意味を限定しない言葉の並びは、全体の雰囲気を整える役割を果たします。時間の流れの中で、そうした文章は自然に形を変え、使う人の意図に委ねられていきます。"
8
+ ],
9
+ en: [
10
+ "Lorem ipsum dolor sit amet.",
11
+ "Consectetur adipiscing elit, sed do eiusmod tempor Incididunt ut.",
12
+ "Labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut.",
13
+ "Aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint.",
14
+ "Occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis undeomnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam."
15
+ ]
16
+ }, i = {
2
17
  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>の取り組み。"
18
+ xs: e.ja[0],
19
+ s: e.ja[0] + e.ja[1],
20
+ m: e.ja[0] + e.ja[1] + e.ja[2],
21
+ l: e.ja[0] + e.ja[1] + e.ja[2] + e.ja[3],
22
+ xl: e.ja[0] + e.ja[1] + e.ja[2] + e.ja[3] + e.ja[4],
23
+ codes: "ロレム・イプサムの<i>座り雨</i>、それは<a href='###'>静かに歩く仮の言葉</a>です。長いあいだ積み重ねられてきた<code>Liberroy</code>と<code>Foog</code>の取り組み」は、私たちに<b>一定の示唆</b>を与えてくれます。"
9
24
  },
10
25
  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."
26
+ xs: e.en[0],
27
+ s: e.en[0] + e.en[1],
28
+ m: e.en[0] + e.en[1] + e.en[2],
29
+ l: e.en[0] + e.en[1] + e.en[2] + e.en[3],
30
+ xl: e.en[0] + e.en[1] + e.en[2] + e.en[3] + e.en[4],
31
+ codes: "Lorem ipsum dolor <i>sit amet</i>. consectetur <a href='###'>adipisicing elit</a>, sed do eiusmod tempor. Non facere <code>Laudantium</code> ex eos <b>doloribus aut dolore</b> nisi provident."
17
32
  },
18
33
  ar: {
19
34
  s: "هذا نص وهمي أنا أكتب جمل ليس لها معنى معين.هذا نص وهمي أنا أكتب جمل ليس لها معنى معين.هذا نص وهمي أنا أكتب جمل ليس لها معنى معين."
20
35
  }
21
36
  };
22
37
  export {
23
- e as default
38
+ i as default
24
39
  };
@@ -3,42 +3,42 @@ import r from "../Lism/index.js";
3
3
  function a(t) {
4
4
  return /* @__PURE__ */ n(r, { tag: "div", ...t });
5
5
  }
6
- function e(t) {
6
+ function f(t) {
7
7
  return /* @__PURE__ */ n(r, { tag: "p", ...t });
8
8
  }
9
- function f(t) {
9
+ function g(t) {
10
10
  return /* @__PURE__ */ n(r, { tag: "span", ...t });
11
11
  }
12
- function g(t) {
12
+ function e(t) {
13
13
  return /* @__PURE__ */ n(r, { tag: "a", ...t });
14
14
  }
15
15
  function c({ lv: t = "1", ...u }) {
16
16
  return /* @__PURE__ */ n(r, { tag: `h${t}`, ...u });
17
17
  }
18
- function l(t) {
18
+ function m(t) {
19
19
  return /* @__PURE__ */ n(r, { tag: "img", ...t });
20
20
  }
21
- function m(t) {
21
+ function p(t) {
22
22
  return /* @__PURE__ */ n(r, { tag: "ul", ...t });
23
23
  }
24
- function p(t) {
24
+ function l(t) {
25
25
  return /* @__PURE__ */ n(r, { tag: "ol", ...t });
26
26
  }
27
27
  function s(t) {
28
28
  return /* @__PURE__ */ n(r, { tag: "li", ...t });
29
29
  }
30
30
  function b(t) {
31
- return /* @__PURE__ */ n(r, { tag: "button", setPlain: !0, ...t });
31
+ return /* @__PURE__ */ n(r, { tag: "button", ...t });
32
32
  }
33
33
  export {
34
- g as a,
34
+ e as a,
35
35
  b as button,
36
36
  a as div,
37
37
  c as h,
38
- l as img,
38
+ m as img,
39
39
  s as li,
40
- p as ol,
41
- e as p,
42
- f as span,
43
- m as ul
40
+ l as ol,
41
+ f as p,
42
+ g as span,
43
+ p as ul
44
44
  };
@@ -0,0 +1,8 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import o from "../Lism/index.js";
3
+ function d(i) {
4
+ return /* @__PURE__ */ r(o, { layout: "liquidGrid", ...i });
5
+ }
6
+ export {
7
+ d as default
8
+ };
@@ -6,8 +6,8 @@ function i({ lismClass: n = "", duration: t, style: o = {}, ...s }) {
6
6
  };
7
7
  return t && (o["--duration"] = t), { tag: "dialog", ...r, style: o, ...s };
8
8
  }
9
- function l({ lismClass: n = "", translate: t, style: o = {}, ...s }) {
10
- return t && (o["--translate"] = t), {
9
+ function l({ lismClass: n = "", offset: t, style: o = {}, ...s }) {
10
+ return t && (o["--offset"] = t), {
11
11
  lismClass: e(n, "d--modal_inner"),
12
12
  style: o,
13
13
  ...s
@@ -0,0 +1,8 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import e from "../Lism/index.js";
3
+ function m({ contentSize: r, ...p }) {
4
+ return /* @__PURE__ */ t(e, { isWrapper: r || !0, ...p });
5
+ }
6
+ export {
7
+ m as default
8
+ };
@@ -1,9 +1,10 @@
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;
1
+ import m from "../../../lib/helper/atts.js";
2
+ import n from "../../getFilterProps.js";
3
+ import s from "../../setMaybeTransformStyles.js";
4
+ function c({ lismClass: f, size: a, clipPath: e, boxSizing: i, style: r = {}, ...t }) {
5
+ t = n(s(t)), e && (r.clipPath = e), i && (r.boxSizing = i), a && (t.ar = "1/1", t.w = a), t.style = r;
5
6
  const o = {
6
- lismClass: n(f, "a--decorator"),
7
+ lismClass: m(f, "a--decorator"),
7
8
  "aria-hidden": "true"
8
9
  };
9
10
  return Object.assign(o, t);
@@ -1,59 +1,50 @@
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;
1
+ import S from "./presets.js";
2
+ import v from "../../../lib/helper/atts.js";
3
+ import _ from "../../setMaybeTransformStyles.js";
4
+ function C(u) {
5
+ const i = {}, g = u.match(/<svg([^>]*?)>([\s\S]*?)<\/svg>/i);
6
+ if (g) {
7
+ const [, e, m] = g, t = /([\w-]+)=["']([^"']*)["']/g;
8
+ let c;
9
+ for (; (c = t.exec(e)) !== null; ) {
10
+ const [, s, n] = c;
11
+ if (s === "style") {
12
+ const r = {};
13
+ n.split(";").forEach((f) => {
14
+ const [l, a] = f.split(":").map((o) => o.trim());
15
+ l && a && (r[l] = a);
16
+ }), i[s] = r;
16
17
  } else
17
- i[t] = n;
18
+ i[s] = n;
18
19
  }
19
- return { svgProps: i, svgContent: u };
20
+ return { svgProps: i, svgContent: m };
20
21
  }
21
22
  return {};
22
23
  }
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;
24
+ function V({ lismClass: u, as: i, tag: g, icon: e, label: m, exProps: t = {}, ...c }) {
25
+ let s = g || "span", n = "", { style: r = {}, className: f = "", ...l } = _(c);
26
+ if (l.viewBox)
27
+ s = "svg", l.width || (t.width = "1em"), l.height || (t.height = "1em");
28
+ else if (l.src)
29
+ s = "img";
30
+ else if (e)
31
+ if (typeof e == "string")
32
+ if (e.startsWith("<svg")) {
33
+ s = "_SVG_";
34
+ const { svgProps: a = {}, svgContent: o = "" } = C(e), { class: h, style: y, ...p } = a;
35
+ f = v(f, h), r = { ...r, ...y }, t = { ...t, ...p, fill: "currentColor" }, n = o;
45
36
  } else {
46
- const l = y[s] || null;
47
- l != null && (e = "_SVG_", t = { ...t, ...l });
37
+ const a = S[e] || null;
38
+ a != null && (s = "_SVG_", t = { ...t, ...a });
48
39
  }
49
- else if (typeof s == "object" && s.as) {
50
- const { as: l, ...a } = s;
51
- e = l, t = { ...t, ...a };
40
+ else if (typeof e == "object" && e.as) {
41
+ const { as: a, ...o } = e;
42
+ s = a, t = { ...t, ...o };
52
43
  } 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 };
44
+ s = e;
45
+ else i && (s = i);
46
+ return m ? (t["aria-label"] = m, t.role = "img") : t["aria-hidden"] = "true", l.lismClass = v(u, "a--icon", f), l.style = { ...r }, { Component: s, lismProps: l, exProps: t, content: n };
56
47
  }
57
48
  export {
58
- d as default
49
+ V as default
59
50
  };