lism-css 0.8.4 → 0.9.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 (95) hide show
  1. package/config/__prop_list.js +1 -1
  2. package/config/defaults/__props-memo.js +4 -4
  3. package/config/defaults/props.ts +4 -4
  4. package/config/defaults/states.ts +12 -11
  5. package/dist/components/Dummy/index.js +5 -5
  6. package/dist/components/LinkBox/index.js +4 -4
  7. package/dist/components/LinkBox/script.d.ts +3 -0
  8. package/dist/components/Lism/Lism.d.ts +2 -4
  9. package/dist/components/Lism/Lism.stories.d.ts +1 -1
  10. package/dist/components/Lism/index.js +5 -5
  11. package/dist/components/atomic/Icon/getProps.d.ts +1 -1
  12. package/dist/components/atomic/Icon/getProps.js +40 -41
  13. package/dist/components/index.js +44 -44
  14. package/dist/config/default-config.d.ts +25 -9
  15. package/dist/config/defaults/props.d.ts +15 -0
  16. package/dist/config/defaults/props.js +4 -4
  17. package/dist/config/defaults/states.d.ts +10 -9
  18. package/dist/config/defaults/states.js +12 -11
  19. package/dist/config/index.d.ts +50 -18
  20. package/dist/config/index.js +4 -4
  21. package/dist/css/base/set.css +1 -1
  22. package/dist/css/base.css +1 -1
  23. package/dist/css/main.css +1 -1
  24. package/dist/css/main_no_layer.css +1 -1
  25. package/dist/css/modules/layout.css +1 -1
  26. package/dist/css/modules/state.css +1 -1
  27. package/dist/css/props.css +1 -1
  28. package/dist/css/reset.css +1 -1
  29. package/dist/css/utility.css +1 -1
  30. package/dist/lib/getLayoutProps.js +5 -5
  31. package/dist/lib/getLismProps.js +7 -6
  32. package/dist/lib/types/PropValueTypes.d.ts +1 -1
  33. package/package.json +14 -14
  34. package/packages/astro/Dummy/Dummy.astro +4 -4
  35. package/packages/astro/HTML/_index_memo.js +3 -3
  36. package/packages/astro/HTML/a.astro +1 -1
  37. package/packages/astro/HTML/button.astro +1 -1
  38. package/packages/astro/HTML/div.astro +1 -1
  39. package/packages/astro/HTML/h.astro +1 -1
  40. package/packages/astro/HTML/img.astro +1 -1
  41. package/packages/astro/HTML/li.astro +1 -1
  42. package/packages/astro/HTML/ol.astro +1 -1
  43. package/packages/astro/HTML/p.astro +1 -1
  44. package/packages/astro/HTML/span.astro +1 -1
  45. package/packages/astro/HTML/ul.astro +1 -1
  46. package/packages/astro/LinkBox/LinkBox.astro +1 -1
  47. package/packages/astro/Lism/Lism.astro +2 -2
  48. package/packages/astro/Lism/index.js +0 -2
  49. package/packages/astro/Media/Media.astro +2 -2
  50. package/packages/astro/index.js +0 -2
  51. package/src/scss/_prop-config.scss +19 -0
  52. package/src/scss/_with_layer.scss +7 -12
  53. package/src/scss/base/{_base.scss → _html.scss} +3 -4
  54. package/src/scss/base/index.scss +6 -6
  55. package/src/scss/base/set/_bp.scss +2 -2
  56. package/src/scss/base/set/_cqUnit.scss +31 -0
  57. package/src/scss/{modules/state → base/set}/_gutter.scss +1 -1
  58. package/src/scss/base/set/_hov.scss +4 -4
  59. package/src/scss/base/set/_innerRs.scss +1 -1
  60. package/src/scss/base/set/_mask.scss +1 -1
  61. package/src/scss/base/set/_plain.scss +2 -1
  62. package/src/scss/base/set/_transition.scss +1 -1
  63. package/src/scss/base/set/index.scss +2 -2
  64. package/src/scss/base/{set → tokens}/_shadow.scss +2 -2
  65. package/src/scss/base/{_typography.scss → tokens/_typography.scss} +2 -8
  66. package/src/scss/modules/layout/_flex.scss +4 -0
  67. package/src/scss/modules/layout/_flow.scss +1 -1
  68. package/src/scss/modules/layout/_grid.scss +4 -0
  69. package/src/scss/modules/state/_container.scss +2 -2
  70. package/src/scss/modules/state/_wrapper.scss +2 -2
  71. package/src/scss/modules/state/index.scss +0 -1
  72. package/src/scss/props/_size.scss +1 -1
  73. package/src/scss/reset.scss +9 -2
  74. package/src/scss/utility/_cbox.scss +1 -1
  75. package/src/scss/utility/_clipText.scss +4 -0
  76. package/src/scss/utility/_hidden.scss +3 -3
  77. package/src/scss/utility/_itemDivider.scss +1 -1
  78. package/src/scss/utility/_linkExpand.scss +1 -1
  79. package/src/scss/{base/set → utility}/_snap.scss +1 -1
  80. package/src/scss/utility/_trimHL.scss +5 -4
  81. package/src/scss/utility/index.scss +2 -0
  82. package/dist/components/Lism/__Lism_with_forwardRef.d.ts +0 -5
  83. package/dist/components/Test/Test.d.ts +0 -9
  84. package/dist/components/Test/TestItem.d.ts +0 -2
  85. package/dist/components/Test/TestRoot.d.ts +0 -4
  86. package/dist/components/Test/index.d.ts +0 -7
  87. package/dist/components/__Core/Core.d.ts +0 -11
  88. package/dist/components/__Core/index.d.ts +0 -1
  89. package/packages/astro/Lism/Link.astro +0 -10
  90. package/packages/astro/Lism/Text.astro +0 -10
  91. package/packages/astro/Test/Test.astro +0 -14
  92. package/packages/astro/Test/TestItem.astro +0 -14
  93. package/packages/astro/Test/index.js +0 -4
  94. /package/src/scss/base/{_property.scss → tokens/_property.scss} +0 -0
  95. /package/src/scss/base/{_tokens.scss → tokens/_tokens.scss} +0 -0
@@ -1,4 +1,4 @@
1
- const PROPS = {
1
+ const _PROPS = {
2
2
  // size
3
3
  // mask
4
4
  // mski: { style: 'maskImage' },
@@ -1,12 +1,12 @@
1
1
  /**
2
- --size- → --szー
2
+ --size- → --szー
3
3
  トークンはハイフン二つ
4
4
 
5
- globalトークン、 --target-- → --target- かな
6
-  --(\w)+?-- で検索。
5
+ globalトークン、 --target-- → --target- かな
6
+ --(\w)+?-- で検索。
7
7
 
8
8
 
9
- ・flow, container → l--、 frame→is--では?
9
+ ・flow, container → l--、 frame→is--では?
10
10
  ・普通のクラス設計、BEMにもどす
11
11
 
12
12
  */
@@ -91,10 +91,10 @@ export default {
91
91
 
92
92
  // bg
93
93
  bg: { prop: 'background', bp: 1 },
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'] },
94
+ bgi: { prop: 'backgroundImage' },
95
+ bgr: { prop: 'backgroundRepeat', presets: ['no-repeat'] },
96
+ bgp: { prop: 'backgroundPosition', presets: ['center'] },
97
+ bgsz: { prop: 'backgroundSize', presets: ['cover', 'contain'] },
98
98
  // bga: { prop: 'backgroundAttachment' }, // fixed
99
99
  // bgo: { prop: 'backgroundOrigin' }, // border, padding, content
100
100
  // bgblend: { prop: 'backgroundBlendMode' },
@@ -6,7 +6,7 @@ export default {
6
6
  isWrapper: {
7
7
  className: 'is--wrapper',
8
8
  preset: ['s', 'l'],
9
- presetClass: '-content',
9
+ presetClass: '-contentSize',
10
10
  customVar: '--contentSize',
11
11
  tokenKey: 'sz',
12
12
  },
@@ -15,16 +15,15 @@ export default {
15
15
  isSide: 'is--side',
16
16
  isSkipFlow: 'is--skipFlow',
17
17
  isVertical: 'is--vertical',
18
- hasGutter: 'has--gutter',
18
+ setGutter: 'set--gutter',
19
19
 
20
20
  // set class
21
- setShadow: 'set-shadow',
22
- setHov: 'set-hov',
23
- setTransition: 'set-transition',
24
- setSnap: 'set-snap',
21
+ setShadow: 'set--shadow',
22
+ setHov: 'set--hov',
23
+ setTransition: 'set--transition',
25
24
  setMask: {
26
- // 'set-mask',
27
- className: 'set-mask',
25
+ // 'set--mask',
26
+ className: 'set--mask',
28
27
  setStyles: (propVal: string) => {
29
28
  // minify化
30
29
  // propVal = minifyHtml(propVal);
@@ -37,7 +36,9 @@ export default {
37
36
  };
38
37
  },
39
38
  },
40
- setPlain: 'set-plain',
41
- // setRevert: 'set-revert',
42
- setInnerRs: 'set-innerRs',
39
+ setPlain: 'set--plain',
40
+ // setRevert: 'set--revert',
41
+ setInnerRs: 'set--innerRs',
42
+ setBp: 'set--bp',
43
+ setCqUnit: 'set--cqUnit',
43
44
  } as const;
@@ -1,12 +1,12 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import s from "./getContent.js";
2
+ import g from "./getContent.js";
3
3
  import e from "../Lism/index.js";
4
- function d({ pre: i = "", length: a = "m", lang: o = "en", offset: r = 0, ...t }) {
5
- const m = t.as || t.tag || "p";
4
+ function d({ pre: i = "", length: o = "m", lang: r = "en", offset: s = 0, ...t }) {
5
+ const m = t.as || "p";
6
6
  if (m === "img")
7
7
  return /* @__PURE__ */ n(e, { as: "img", src: "https://cdn.lism-css.com/dummy-image.jpg", width: 600, height: 400, alt: "", ...t });
8
- const g = s({ tag: m, pre: i, lang: o, length: a, offset: r });
9
- return /* @__PURE__ */ n(e, { ...t, dangerouslySetInnerHTML: { __html: g } });
8
+ const a = g({ tag: m, pre: i, lang: r, length: o, offset: s });
9
+ return /* @__PURE__ */ n(e, { ...t, dangerouslySetInnerHTML: { __html: a } });
10
10
  }
11
11
  export {
12
12
  d as default
@@ -1,9 +1,9 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import e from "../Lism/index.js";
3
- function a({ children: t, ...r }) {
2
+ import s from "../Lism/index.js";
3
+ function n({ children: t, ...r }) {
4
4
  const o = !!r.href ? "a" : "div";
5
- return /* @__PURE__ */ i(e, { isLinkBox: !0, tag: o, ...r, children: t });
5
+ return /* @__PURE__ */ i(s, { isLinkBox: !0, as: o, ...r, children: t });
6
6
  }
7
7
  export {
8
- a as default
8
+ n as default
9
9
  };
@@ -1 +1,4 @@
1
+ /**
2
+ * altKey押下時の処理 テスト用
3
+ */
1
4
  export default function enableSelectTextWithAltKeyAtLinkBox(): void;
@@ -1,12 +1,10 @@
1
- import { ComponentPropsWithoutRef, ElementType, ReactNode, JSX } from 'react';
1
+ import { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';
2
2
  import { LismProps } from '../../lib/getLismProps';
3
3
  import { LayoutSpecificProps } from '../../lib/types/LayoutProps';
4
4
  /** HTML 要素 Props と共通オプションの基底型 */
5
5
  type LismBaseProps<T extends ElementType> = Omit<ComponentPropsWithoutRef<T>, keyof LismProps> & {
6
6
  /** レンダリングするコンポーネントまたは要素 */
7
7
  as?: T;
8
- /** レンダリングするHTML要素のタグ名(文字列のみ)*/
9
- tag?: keyof JSX.IntrinsicElements;
10
8
  /** 子要素 */
11
9
  children?: ReactNode;
12
10
  /** getLismProps を経由せずに直接渡す追加の props */
@@ -27,5 +25,5 @@ export type LayoutComponentProps<T extends ElementType = 'div', L = object> = Om
27
25
  /**
28
26
  * Lism Propsを処理できるだけのコンポーネント
29
27
  */
30
- export default function Lism<T extends ElementType = 'div'>({ children, as, tag, exProps, ...props }: LismComponentProps<T>): JSX.Element;
28
+ export default function Lism<T extends ElementType = 'div'>({ children, as, exProps, ...props }: LismComponentProps<T>): import("react").JSX.Element;
31
29
  export {};
@@ -629,7 +629,7 @@ declare const meta: {
629
629
  category: string;
630
630
  };
631
631
  };
632
- hasGutter: {
632
+ setGutter: {
633
633
  control: "boolean";
634
634
  table: {
635
635
  category: string;
@@ -1,8 +1,8 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import i from "../../lib/getLismProps.js";
3
- function u({ children: o, as: t, tag: m, exProps: n, ...r }) {
4
- return /* @__PURE__ */ e(t || m || "div", { ...i(r), ...n, children: o });
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import e from "../../lib/getLismProps.js";
3
+ function f({ children: o, as: t, exProps: m, ...n }) {
4
+ return /* @__PURE__ */ r(t || "div", { ...e(n), ...m, children: o });
5
5
  }
6
6
  export {
7
- u as default
7
+ f as default
8
8
  };
@@ -12,7 +12,7 @@ type IconOwnProps = {
12
12
  exProps?: Record<string, unknown>;
13
13
  };
14
14
  export type IconProps = LismComponentProps & TransformStyleProps & IconOwnProps;
15
- export default function getProps({ lismClass, as, tag, icon, label, exProps, ..._props }: IconProps): {
15
+ export default function getProps({ lismClass, as, icon, label, exProps, ..._props }: IconProps): {
16
16
  Component: ElementType | "_SVG_";
17
17
  lismProps: {
18
18
  [key: string]: unknown;
@@ -1,56 +1,55 @@
1
- import C from "./presets.js";
2
- import y from "../../../lib/helper/atts.js";
3
- import b from "../../setMaybeTransformStyles.js";
4
- function d(u) {
5
- const a = {}, o = u.match(/<svg([^>]*?)>([\s\S]*?)<\/svg>/i);
6
- if (o) {
7
- const [, e, m] = o, t = /([\w-]+)=["']([^"']*)["']/g;
8
- let c;
9
- for (; (c = t.exec(e)) !== null; ) {
10
- const [, s, n] = c;
11
- if (s === "style") {
12
- const g = {};
13
- n.split(";").forEach((v) => {
14
- const [l, i] = v.split(":").map((f) => f.trim());
15
- l && i && (g[l] = i);
16
- }), a[s] = g;
1
+ import S from "./presets.js";
2
+ import h from "../../../lib/helper/atts.js";
3
+ import C from "../../setMaybeTransformStyles.js";
4
+ function b(g) {
5
+ const f = {}, s = g.match(/<svg([^>]*?)>([\s\S]*?)<\/svg>/i);
6
+ if (s) {
7
+ const [, o, t] = s, u = /([\w-]+)=["']([^"']*)["']/g;
8
+ let e;
9
+ for (; (e = u.exec(o)) !== null; ) {
10
+ const [, r, m] = e;
11
+ if (r === "style") {
12
+ const c = {};
13
+ m.split(";").forEach((l) => {
14
+ const [i, n] = l.split(":").map((a) => a.trim());
15
+ i && n && (c[i] = n);
16
+ }), f[r] = c;
17
17
  } else
18
- a[s] = n;
18
+ f[r] = m;
19
19
  }
20
- return { svgProps: a, svgContent: m };
20
+ return { svgProps: f, svgContent: t };
21
21
  }
22
22
  return {};
23
23
  }
24
- function j({ lismClass: u, as: a, tag: o, icon: e, label: m, exProps: t = {}, ...c }) {
25
- let s = o || "span", n = "";
24
+ function V({ lismClass: g, as: f, icon: s, label: o, exProps: t = {}, ...u }) {
25
+ let e = f || "span", r = "";
26
26
  const {
27
- style: g = {},
28
- className: v = "",
27
+ style: m = {},
28
+ className: c = "",
29
29
  ...l
30
- } = b(c);
31
- let i = g, f = v;
30
+ } = C(u);
31
+ let i = m, n = c;
32
32
  if (l.viewBox)
33
- s = "svg", l.width || (t.width = "1em"), l.height || (t.height = "1em");
33
+ e = "svg", l.width || (t.width = "1em"), l.height || (t.height = "1em");
34
34
  else if (l.src)
35
- s = "img";
36
- else if (e)
37
- if (typeof e == "string")
38
- if (e.startsWith("<svg")) {
39
- s = "_SVG_";
40
- const { svgProps: r = {}, svgContent: h = "" } = d(e), { class: p, style: _, ...S } = r;
41
- f = y(f, p), i = { ...i, ..._ }, t = { ...t, ...S, fill: "currentColor" }, n = h;
35
+ e = "img";
36
+ else if (s)
37
+ if (typeof s == "string")
38
+ if (s.startsWith("<svg")) {
39
+ e = "_SVG_";
40
+ const { svgProps: a = {}, svgContent: v = "" } = b(s), { class: y, style: p, ..._ } = a;
41
+ n = h(n, y), i = { ...i, ...p }, t = { ...t, ..._, fill: "currentColor" }, r = v;
42
42
  } else {
43
- const r = C[e] || null;
44
- r != null && (s = "_SVG_", t = { ...t, ...r });
43
+ const a = S[s] || null;
44
+ a != null && (e = "_SVG_", t = { ...t, ...a });
45
45
  }
46
- else if (typeof e == "object" && e.as) {
47
- const { as: r, ...h } = e;
48
- s = r, t = { ...t, ...h };
46
+ else if (typeof s == "object" && s.as) {
47
+ const { as: a, ...v } = s;
48
+ e = a, t = { ...t, ...v };
49
49
  } else
50
- s = e;
51
- else a && (s = a);
52
- return m ? (t["aria-label"] = m, t.role = "img") : t["aria-hidden"] = "true", l.lismClass = y(u, "a--icon", f), l.style = { ...i }, { Component: s, lismProps: l, exProps: t, content: n };
50
+ e = s;
51
+ return o ? (t["aria-label"] = o, t.role = "img") : t["aria-hidden"] = "true", l.lismClass = h(g, "a--icon", n), l.style = { ...i }, { Component: e, lismProps: l, exProps: t, content: r };
53
52
  }
54
53
  export {
55
- j as default
54
+ V as default
56
55
  };
@@ -1,50 +1,50 @@
1
1
  import { default as o } from "./HTML/index.js";
2
- import { default as t } from "./Lism/index.js";
3
- import { default as l } from "./Dummy/index.js";
4
- import { default as m } from "./Container/index.js";
5
- import { default as u } from "./Wrapper/index.js";
6
- import { default as x } from "./Layer/index.js";
7
- import { default as n } from "./LinkBox/index.js";
8
- import { default as c } from "./Box/index.js";
9
- import { default as L } from "./Flow/index.js";
2
+ import { default as t } from "./Box/index.js";
3
+ import { default as l } from "./Center/index.js";
4
+ import { default as m } from "./Cluster/index.js";
5
+ import { default as u } from "./Columns/index.js";
6
+ import { default as x } from "./Container/index.js";
7
+ import { default as n } from "./atomic/Decorator/index.js";
8
+ import { default as c } from "./atomic/Divider/index.js";
9
+ import { default as L } from "./Dummy/index.js";
10
10
  import { default as D } from "./Flex/index.js";
11
- import { default as k } from "./Cluster/index.js";
12
- import { default as y } from "./Stack/index.js";
13
- import { default as h } from "./Grid/index.js";
14
- import { default as G } from "./FluidCols/index.js";
15
- import { default as I } from "./SwitchCols/index.js";
16
- import { default as W } from "./SideMain/index.js";
17
- import { default as g } from "./Center/index.js";
18
- import { default as q } from "./Columns/index.js";
19
- import { default as A } from "./Frame/index.js";
20
- import { default as J } from "./atomic/Decorator/index.js";
21
- import { default as N } from "./atomic/Divider/index.js";
22
- import { default as P } from "./atomic/Icon/index.js";
23
- import { default as R } from "./atomic/Media/index.js";
24
- import { default as V } from "./atomic/Spacer/index.js";
11
+ import { default as k } from "./Flow/index.js";
12
+ import { default as y } from "./FluidCols/index.js";
13
+ import { default as h } from "./Frame/index.js";
14
+ import { default as G } from "./Grid/index.js";
15
+ import { default as I } from "./atomic/Icon/index.js";
16
+ import { default as W } from "./Layer/index.js";
17
+ import { default as g } from "./LinkBox/index.js";
18
+ import { default as q } from "./Lism/index.js";
19
+ import { default as A } from "./atomic/Media/index.js";
20
+ import { default as J } from "./SideMain/index.js";
21
+ import { default as N } from "./atomic/Spacer/index.js";
22
+ import { default as P } from "./Stack/index.js";
23
+ import { default as R } from "./SwitchCols/index.js";
24
+ import { default as V } from "./Wrapper/index.js";
25
25
  export {
26
- c as Box,
27
- g as Center,
28
- k as Cluster,
29
- q as Columns,
30
- m as Container,
31
- J as Decorator,
32
- N as Divider,
33
- l as Dummy,
26
+ t as Box,
27
+ l as Center,
28
+ m as Cluster,
29
+ u as Columns,
30
+ x as Container,
31
+ n as Decorator,
32
+ c as Divider,
33
+ L as Dummy,
34
34
  D as Flex,
35
- L as Flow,
36
- G as FluidCols,
37
- A as Frame,
38
- h as Grid,
35
+ k as Flow,
36
+ y as FluidCols,
37
+ h as Frame,
38
+ G as Grid,
39
39
  o as HTML,
40
- P as Icon,
41
- x as Layer,
42
- n as LinkBox,
43
- t as Lism,
44
- R as Media,
45
- W as SideMain,
46
- V as Spacer,
47
- y as Stack,
48
- I as SwitchCols,
49
- u as Wrapper
40
+ I as Icon,
41
+ W as Layer,
42
+ g as LinkBox,
43
+ q as Lism,
44
+ A as Media,
45
+ J as SideMain,
46
+ N as Spacer,
47
+ P as Stack,
48
+ R as SwitchCols,
49
+ V as Wrapper
50
50
  };
@@ -205,6 +205,21 @@ declare const _default: {
205
205
  readonly prop: "background";
206
206
  readonly bp: 1;
207
207
  };
208
+ readonly bgi: {
209
+ readonly prop: "backgroundImage";
210
+ };
211
+ readonly bgr: {
212
+ readonly prop: "backgroundRepeat";
213
+ readonly presets: readonly ["no-repeat"];
214
+ };
215
+ readonly bgp: {
216
+ readonly prop: "backgroundPosition";
217
+ readonly presets: readonly ["center"];
218
+ };
219
+ readonly bgsz: {
220
+ readonly prop: "backgroundSize";
221
+ readonly presets: readonly ["cover", "contain"];
222
+ };
208
223
  readonly bgc: {
209
224
  readonly prop: "backgroundColor";
210
225
  readonly presets: readonly ["base", "base-2", "text", "brand", "accent", "inherit", "transparent"];
@@ -811,7 +826,7 @@ declare const _default: {
811
826
  readonly isWrapper: {
812
827
  readonly className: "is--wrapper";
813
828
  readonly preset: readonly ["s", "l"];
814
- readonly presetClass: "-content";
829
+ readonly presetClass: "-contentSize";
815
830
  readonly customVar: "--contentSize";
816
831
  readonly tokenKey: "sz";
817
832
  };
@@ -820,19 +835,20 @@ declare const _default: {
820
835
  readonly isSide: "is--side";
821
836
  readonly isSkipFlow: "is--skipFlow";
822
837
  readonly isVertical: "is--vertical";
823
- readonly hasGutter: "has--gutter";
824
- readonly setShadow: "set-shadow";
825
- readonly setHov: "set-hov";
826
- readonly setTransition: "set-transition";
827
- readonly setSnap: "set-snap";
838
+ readonly setGutter: "set--gutter";
839
+ readonly setShadow: "set--shadow";
840
+ readonly setHov: "set--hov";
841
+ readonly setTransition: "set--transition";
828
842
  readonly setMask: {
829
- readonly className: "set-mask";
843
+ readonly className: "set--mask";
830
844
  readonly setStyles: (propVal: string) => {
831
845
  '--maskImg': string;
832
846
  };
833
847
  };
834
- readonly setPlain: "set-plain";
835
- readonly setInnerRs: "set-innerRs";
848
+ readonly setPlain: "set--plain";
849
+ readonly setInnerRs: "set--innerRs";
850
+ readonly setBp: "set--bp";
851
+ readonly setCqUnit: "set--cqUnit";
836
852
  };
837
853
  };
838
854
  export default _default;
@@ -193,6 +193,21 @@ declare const _default: {
193
193
  readonly prop: "background";
194
194
  readonly bp: 1;
195
195
  };
196
+ readonly bgi: {
197
+ readonly prop: "backgroundImage";
198
+ };
199
+ readonly bgr: {
200
+ readonly prop: "backgroundRepeat";
201
+ readonly presets: readonly ["no-repeat"];
202
+ };
203
+ readonly bgp: {
204
+ readonly prop: "backgroundPosition";
205
+ readonly presets: readonly ["center"];
206
+ };
207
+ readonly bgsz: {
208
+ readonly prop: "backgroundSize";
209
+ readonly presets: readonly ["cover", "contain"];
210
+ };
196
211
  readonly bgc: {
197
212
  readonly prop: "backgroundColor";
198
213
  readonly presets: readonly ["base", "base-2", "text", "brand", "accent", "inherit", "transparent"];
@@ -67,10 +67,10 @@ const e = ["start", "center", "end"], r = { "flex-s": "flex-start", "flex-e": "f
67
67
  "max-ysz": { prop: "maxBlockSize", token: "sz" },
68
68
  // bg
69
69
  bg: { prop: "background", bp: 1 },
70
- // bgi: { prop: 'backgroundImage' },
71
- // bgr: { prop: 'backgroundRepeat', utils: { no: 'no-repeat' } },
72
- // bgp: { prop: 'backgroundPosition', presets: ['center'] },
73
- // bgsz: { prop: 'backgroundSize', presets: ['cover', 'contain'] },
70
+ bgi: { prop: "backgroundImage" },
71
+ bgr: { prop: "backgroundRepeat", presets: ["no-repeat"] },
72
+ bgp: { prop: "backgroundPosition", presets: ["center"] },
73
+ bgsz: { prop: "backgroundSize", presets: ["cover", "contain"] },
74
74
  // bga: { prop: 'backgroundAttachment' }, // fixed
75
75
  // bgo: { prop: 'backgroundOrigin' }, // border, padding, content
76
76
  // bgblend: { prop: 'backgroundBlendMode' },
@@ -3,7 +3,7 @@ declare const _default: {
3
3
  readonly isWrapper: {
4
4
  readonly className: "is--wrapper";
5
5
  readonly preset: readonly ["s", "l"];
6
- readonly presetClass: "-content";
6
+ readonly presetClass: "-contentSize";
7
7
  readonly customVar: "--contentSize";
8
8
  readonly tokenKey: "sz";
9
9
  };
@@ -12,18 +12,19 @@ declare const _default: {
12
12
  readonly isSide: "is--side";
13
13
  readonly isSkipFlow: "is--skipFlow";
14
14
  readonly isVertical: "is--vertical";
15
- readonly hasGutter: "has--gutter";
16
- readonly setShadow: "set-shadow";
17
- readonly setHov: "set-hov";
18
- readonly setTransition: "set-transition";
19
- readonly setSnap: "set-snap";
15
+ readonly setGutter: "set--gutter";
16
+ readonly setShadow: "set--shadow";
17
+ readonly setHov: "set--hov";
18
+ readonly setTransition: "set--transition";
20
19
  readonly setMask: {
21
- readonly className: "set-mask";
20
+ readonly className: "set--mask";
22
21
  readonly setStyles: (propVal: string) => {
23
22
  '--maskImg': string;
24
23
  };
25
24
  };
26
- readonly setPlain: "set-plain";
27
- readonly setInnerRs: "set-innerRs";
25
+ readonly setPlain: "set--plain";
26
+ readonly setInnerRs: "set--innerRs";
27
+ readonly setBp: "set--bp";
28
+ readonly setCqUnit: "set--cqUnit";
28
29
  };
29
30
  export default _default;
@@ -4,7 +4,7 @@ const a = {
4
4
  isWrapper: {
5
5
  className: "is--wrapper",
6
6
  preset: ["s", "l"],
7
- presetClass: "-content",
7
+ presetClass: "-contentSize",
8
8
  customVar: "--contentSize",
9
9
  tokenKey: "sz"
10
10
  },
@@ -13,15 +13,14 @@ const a = {
13
13
  isSide: "is--side",
14
14
  isSkipFlow: "is--skipFlow",
15
15
  isVertical: "is--vertical",
16
- hasGutter: "has--gutter",
16
+ setGutter: "set--gutter",
17
17
  // set class
18
- setShadow: "set-shadow",
19
- setHov: "set-hov",
20
- setTransition: "set-transition",
21
- setSnap: "set-snap",
18
+ setShadow: "set--shadow",
19
+ setHov: "set--hov",
20
+ setTransition: "set--transition",
22
21
  setMask: {
23
- // 'set-mask',
24
- className: "set-mask",
22
+ // 'set--mask',
23
+ className: "set--mask",
25
24
  setStyles: (e) => {
26
25
  let s = e;
27
26
  return s.startsWith("<svg") && (s = t(e, "base64")), {
@@ -29,9 +28,11 @@ const a = {
29
28
  };
30
29
  }
31
30
  },
32
- setPlain: "set-plain",
33
- // setRevert: 'set-revert',
34
- setInnerRs: "set-innerRs"
31
+ setPlain: "set--plain",
32
+ // setRevert: 'set--revert',
33
+ setInnerRs: "set--innerRs",
34
+ setBp: "set--bp",
35
+ setCqUnit: "set--cqUnit"
35
36
  };
36
37
  export {
37
38
  a as default