lism-css 0.8.2 → 0.8.4

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 (152) hide show
  1. package/bin/script-build-css.js +1 -1
  2. package/config/default-config.ts +9 -0
  3. package/config/defaults/{props.js → props.ts} +4 -4
  4. package/config/defaults/{states.js → states.ts} +2 -2
  5. package/config/defaults/{tokens.js → tokens.ts} +1 -1
  6. package/config/helper/{getSvgUrl.js → getSvgUrl.ts} +1 -3
  7. package/config/helper/{minifyHtml.js → minifyHtml.ts} +1 -1
  8. package/config/helper.test.ts +238 -0
  9. package/config/helper.ts +79 -0
  10. package/config/{index.js → index.ts} +17 -4
  11. package/config/tsconfig.json +18 -0
  12. package/config.d.ts +2 -0
  13. package/config.js +1 -1
  14. package/dist/components/Box/Box.d.ts +4 -1
  15. package/dist/components/Box/index.d.ts +1 -1
  16. package/dist/components/Center/Center.d.ts +4 -1
  17. package/dist/components/Center/index.d.ts +1 -1
  18. package/dist/components/Cluster/Cluster.d.ts +4 -1
  19. package/dist/components/Cluster/index.js +2 -2
  20. package/dist/components/Columns/Columns.d.ts +4 -1
  21. package/dist/components/Container/Container.d.ts +6 -4
  22. package/dist/components/Dummy/Dummy.d.ts +10 -8
  23. package/dist/components/Dummy/getContent.d.ts +13 -7
  24. package/dist/components/Dummy/getContent.js +7 -6
  25. package/dist/components/Dummy/index.js +8 -7
  26. package/dist/components/Flex/Flex.d.ts +4 -1
  27. package/dist/components/Flow/Flow.d.ts +4 -1
  28. package/dist/components/Flow/index.d.ts +1 -1
  29. package/dist/components/FluidCols/FluidCols.d.ts +4 -1
  30. package/dist/components/Frame/Frame.d.ts +4 -1
  31. package/dist/components/Grid/Grid.d.ts +4 -1
  32. package/dist/components/HTML/HTML.d.ts +16 -13
  33. package/dist/components/HTML/index.d.ts +13 -13
  34. package/dist/components/HTML/index.js +3 -3
  35. package/dist/components/HTML/index2.js +30 -29
  36. package/dist/components/Layer/Layer.d.ts +6 -1
  37. package/dist/components/Layer/Layer.test.d.ts +1 -0
  38. package/dist/components/Layer/getProps.d.ts +5 -1
  39. package/dist/components/LinkBox/LinkBox.d.ts +4 -4
  40. package/dist/components/Lism/Lism.d.ts +28 -7
  41. package/dist/components/Lism/Lism.stories.d.ts +667 -0
  42. package/dist/components/Lism/Lism.test.d.ts +1 -0
  43. package/dist/components/Lism/index.d.ts +1 -3
  44. package/dist/components/Lism/index.js +3 -3
  45. package/dist/components/SideMain/SideMain.d.ts +4 -1
  46. package/dist/components/Stack/Stack.d.ts +4 -1
  47. package/dist/components/SwitchCols/SwitchCols.d.ts +4 -1
  48. package/dist/components/Wrapper/Wrapper.d.ts +6 -4
  49. package/dist/components/atomic/Decorator/Decorator.d.ts +2 -1
  50. package/dist/components/atomic/Decorator/getProps.d.ts +10 -12
  51. package/dist/components/atomic/Decorator/getProps.js +10 -9
  52. package/dist/components/atomic/Divider/Divider.d.ts +2 -1
  53. package/dist/components/atomic/Divider/getProps.d.ts +2 -7
  54. package/dist/components/atomic/Divider/getProps.js +8 -7
  55. package/dist/components/atomic/Icon/Icon.d.ts +4 -3
  56. package/dist/components/atomic/Icon/SVG.d.ts +8 -9
  57. package/dist/components/atomic/Icon/getProps.d.ts +21 -12
  58. package/dist/components/atomic/Icon/getProps.js +31 -25
  59. package/dist/components/atomic/Icon/index.js +9 -8
  60. package/dist/components/atomic/Icon/presets.d.ts +2 -26
  61. package/dist/components/atomic/Icon/presets.js +10 -14
  62. package/dist/components/atomic/Media/Media.d.ts +2 -1
  63. package/dist/components/atomic/Media/getProps.d.ts +9 -1
  64. package/dist/components/atomic/Media/getProps.js +5 -6
  65. package/dist/components/atomic/Media/index.js +3 -3
  66. package/dist/components/atomic/Spacer/Spacer.d.ts +2 -1
  67. package/dist/components/atomic/Spacer/getProps.d.ts +2 -7
  68. package/dist/components/atomic/Spacer/getProps.js +8 -2
  69. package/dist/components/getFilterProps.d.ts +10 -1
  70. package/dist/components/getFilterProps.js +15 -5
  71. package/dist/components/getFilterProps.test.d.ts +1 -0
  72. package/dist/components/index.js +44 -48
  73. package/dist/components/setMaybeTransformStyles.d.ts +12 -1
  74. package/dist/components/setMaybeTransformStyles.js +4 -4
  75. package/dist/components/setMaybeTransformStyles.test.d.ts +1 -0
  76. package/dist/config/default-config.d.ts +838 -0
  77. package/dist/config/defaults/props.d.ts +797 -0
  78. package/dist/config/defaults/states.d.ts +29 -0
  79. package/dist/config/defaults/tokens.d.ts +28 -0
  80. package/dist/config/helper/getSvgUrl.d.ts +5 -0
  81. package/dist/config/helper/minifyHtml.d.ts +5 -0
  82. package/dist/config/helper.d.ts +21 -0
  83. package/dist/config/helper.js +14 -18
  84. package/dist/config/index.d.ts +1675 -0
  85. package/dist/config/index.js +15 -11
  86. package/dist/css/base/set.css +1 -1
  87. package/dist/css/base.css +1 -1
  88. package/dist/css/main.css +1 -1
  89. package/dist/css/main_no_layer.css +1 -1
  90. package/dist/css/modules/state.css +1 -1
  91. package/dist/css/reset.css +1 -1
  92. package/dist/lib/LismPropsData.test.d.ts +1 -0
  93. package/dist/lib/getBpData.d.ts +9 -1
  94. package/dist/lib/getBpData.js +16 -10
  95. package/dist/lib/getBpData.test.d.ts +1 -0
  96. package/dist/lib/getLayoutProps.d.ts +22 -1
  97. package/dist/lib/getLayoutProps.js +19 -19
  98. package/dist/lib/getLayoutProps.test.d.ts +1 -0
  99. package/dist/lib/getLismProps.d.ts +77 -2
  100. package/dist/lib/getLismProps.js +122 -107
  101. package/dist/lib/getLismProps.test.d.ts +1 -0
  102. package/dist/lib/getMaybeCssVar.d.ts +5 -3
  103. package/dist/lib/getMaybeCssVar.js +15 -15
  104. package/dist/lib/getMaybeCssVar.test.d.ts +1 -0
  105. package/dist/lib/getMaybeTokenValue.d.ts +10 -1
  106. package/dist/lib/getMaybeTokenValue.js +21 -21
  107. package/dist/lib/getMaybeTokenValue.test.d.ts +1 -0
  108. package/dist/lib/getUtilKey.d.ts +7 -1
  109. package/dist/lib/getUtilKey.js +6 -6
  110. package/dist/lib/getUtilKey.test.d.ts +1 -0
  111. package/dist/lib/helper/atts.d.ts +6 -3
  112. package/dist/lib/helper/atts.test.d.ts +1 -0
  113. package/dist/lib/helper/filterEmptyObj.d.ts +20 -1
  114. package/dist/lib/helper/filterEmptyObj.js +6 -5
  115. package/dist/lib/helper/filterEmptyObj.test.d.ts +1 -0
  116. package/dist/lib/helper/hasSomeKeys.d.ts +1 -1
  117. package/dist/lib/helper/isNumStr.d.ts +4 -1
  118. package/dist/lib/helper/isNumStr.test.d.ts +1 -0
  119. package/dist/lib/helper/objMap.d.ts +8 -1
  120. package/dist/lib/helper/objMap.test.d.ts +1 -0
  121. package/dist/lib/helper/splitWithComma.d.ts +1 -1
  122. package/dist/lib/helper/splitWithComma.test.d.ts +1 -0
  123. package/dist/lib/isPresetValue.d.ts +3 -1
  124. package/dist/lib/isPresetValue.js +10 -3
  125. package/dist/lib/isPresetValue.test.d.ts +1 -0
  126. package/dist/lib/isTokenValue.d.ts +1 -1
  127. package/dist/lib/isTokenValue.js +24 -7
  128. package/dist/lib/isTokenValue.test.d.ts +1 -0
  129. package/dist/lib/types/LayoutProps.d.ts +50 -0
  130. package/dist/lib/types/PropValueTypes.d.ts +83 -0
  131. package/dist/lib/types/PropValueTypes.spec-d.d.ts +1 -0
  132. package/dist/lib/types/ResponsiveProps.d.ts +50 -0
  133. package/dist/lib/types/ResponsiveProps.spec-d.d.ts +1 -0
  134. package/dist/lib/types/StateProps.d.ts +27 -0
  135. package/dist/lib/types/StateProps.spec-d.d.ts +1 -0
  136. package/dist/lib/types/utils.d.ts +79 -0
  137. package/dist/lib/types/utils.spec-d.d.ts +1 -0
  138. package/dist/lib/types.d.ts +2 -0
  139. package/package.json +30 -11
  140. package/src/scss/_auto_output.scss +2 -1
  141. package/src/scss/_with_layer.scss +1 -0
  142. package/src/scss/base/_base.scss +2 -13
  143. package/src/scss/base/_tokens.scss +3 -3
  144. package/src/scss/base/set/_plain.scss +1 -0
  145. package/src/scss/modules/state/_linkbox.scss +1 -0
  146. package/src/scss/reset.scss +1 -1
  147. package/config/default-config.js +0 -9
  148. package/config/helper.js +0 -67
  149. package/dist/components/Lism/Link.d.ts +0 -1
  150. package/dist/components/Lism/Link.js +0 -8
  151. package/dist/components/Lism/Text.d.ts +0 -1
  152. package/dist/components/Lism/Text.js +0 -8
@@ -1 +1,2 @@
1
- export default function Decorator(props: any): import("react").JSX.Element;
1
+ import { DecoratorProps } from './getProps';
2
+ export default function Decorator(props: DecoratorProps): import("react").JSX.Element;
@@ -1,13 +1,11 @@
1
- export default function _default({ lismClass, size, clipPath, boxSizing, style, ...props }: {
2
- [x: string]: any;
3
- lismClass: any;
4
- size: any;
5
- clipPath: any;
6
- boxSizing: any;
7
- style?: {} | undefined;
8
- }): {
9
- lismClass: string;
10
- 'aria-hidden': string;
11
- } & {
12
- [x: string]: any;
1
+ import { FilterProps } from '../../getFilterProps';
2
+ import { TransformStyleProps } from '../../setMaybeTransformStyles';
3
+ import { LismComponentProps } from '../../Lism/Lism';
4
+ type DecoratorOwnProps = {
5
+ size?: string;
6
+ clipPath?: string;
7
+ boxSizing?: string;
13
8
  };
9
+ export type DecoratorProps = LismComponentProps & TransformStyleProps & FilterProps & DecoratorOwnProps;
10
+ export default function getDecoratorProps({ lismClass, size, clipPath, boxSizing, style: outerStyle, ...rest }: DecoratorProps): LismComponentProps;
11
+ export {};
@@ -1,14 +1,15 @@
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;
6
- const o = {
7
- lismClass: m(f, "a--decorator"),
1
+ import n from "../../../lib/helper/atts.js";
2
+ import p from "../../getFilterProps.js";
3
+ import m from "../../setMaybeTransformStyles.js";
4
+ function y({ lismClass: a, size: o, clipPath: s, boxSizing: e, style: i, ...f }) {
5
+ const r = i ?? {}, t = p(m(f));
6
+ s && (r.clipPath = s), e && (r.boxSizing = e), o && (t.ar = "1/1", t.w = o), t.style = r;
7
+ const l = {
8
+ lismClass: n(a, "a--decorator"),
8
9
  "aria-hidden": "true"
9
10
  };
10
- return Object.assign(o, t);
11
+ return Object.assign(l, t);
11
12
  }
12
13
  export {
13
- c as default
14
+ y as default
14
15
  };
@@ -1 +1,2 @@
1
- export default function Divider(props: any): import("react").JSX.Element;
1
+ import { LismComponentProps } from '../../Lism/Lism';
2
+ export default function Divider(props: LismComponentProps): import("react").JSX.Element;
@@ -1,7 +1,2 @@
1
- export function getDividerProps({ lismClass, ...props }: {
2
- [x: string]: any;
3
- lismClass: any;
4
- }): {
5
- lismClass: string;
6
- 'aria-hidden': string;
7
- };
1
+ import { LismComponentProps } from '../../Lism/Lism';
2
+ export declare function getDividerProps({ lismClass, ...props }: LismComponentProps): LismComponentProps;
@@ -1,10 +1,11 @@
1
- import e from "../../../lib/helper/atts.js";
2
- function s({ lismClass: r, ...t }) {
3
- return { ...{
4
- lismClass: e(r, "a--divider"),
5
- "aria-hidden": "true"
6
- }, ...t };
1
+ import t from "../../../lib/helper/atts.js";
2
+ function a({ lismClass: r, ...i }) {
3
+ return {
4
+ lismClass: t(r, "a--divider"),
5
+ "aria-hidden": "true",
6
+ ...i
7
+ };
7
8
  }
8
9
  export {
9
- s as getDividerProps
10
+ a as getDividerProps
10
11
  };
@@ -1,4 +1,5 @@
1
- export default function Icon({ children, ...props }: {
2
- [x: string]: any;
3
- children: any;
1
+ import { IconProps } from './getProps';
2
+ import { ReactNode } from 'react';
3
+ export default function Icon({ children, ...props }: IconProps & {
4
+ children?: ReactNode;
4
5
  }): import("react").JSX.Element;
@@ -1,9 +1,8 @@
1
- export default function SVG({ size, fill, viewBox, path, children, __html, ...props }: {
2
- [x: string]: any;
3
- size?: string | undefined;
4
- fill?: string | undefined;
5
- viewBox?: string | undefined;
6
- path: any;
7
- children: any;
8
- __html: any;
9
- }): import("react").JSX.Element;
1
+ import { SVGProps } from 'react';
2
+ type SVGComponentProps = SVGProps<SVGSVGElement> & {
3
+ size?: string;
4
+ path?: string;
5
+ __html?: string;
6
+ };
7
+ export default function SVG({ size, fill, viewBox, path, children, __html, ...props }: SVGComponentProps): import("react").JSX.Element;
8
+ export {};
@@ -1,14 +1,23 @@
1
- export default function getProps({ lismClass, as, tag, icon, label, exProps, ..._props }: {
2
- [x: string]: any;
3
- lismClass: any;
4
- as: any;
5
- tag: any;
6
- icon: any;
7
- label: any;
8
- exProps?: {} | undefined;
9
- }): {
10
- Component: any;
11
- lismProps: any;
12
- exProps: {};
1
+ import { LismComponentProps } from '../../Lism/Lism';
2
+ import { TransformStyleProps } from '../../setMaybeTransformStyles';
3
+ import { ElementType } from 'react';
4
+ type IconObject = {
5
+ as: ElementType;
6
+ [key: string]: unknown;
7
+ };
8
+ type IconProp = ElementType | IconObject;
9
+ type IconOwnProps = {
10
+ icon?: IconProp;
11
+ label?: string;
12
+ exProps?: Record<string, unknown>;
13
+ };
14
+ export type IconProps = LismComponentProps & TransformStyleProps & IconOwnProps;
15
+ export default function getProps({ lismClass, as, tag, icon, label, exProps, ..._props }: IconProps): {
16
+ Component: ElementType | "_SVG_";
17
+ lismProps: {
18
+ [key: string]: unknown;
19
+ };
20
+ exProps: Record<string, unknown>;
13
21
  content: string;
14
22
  };
23
+ export {};
@@ -1,28 +1,34 @@
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;
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
8
  let c;
9
9
  for (; (c = t.exec(e)) !== null; ) {
10
10
  const [, s, n] = c;
11
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;
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;
17
17
  } else
18
- i[s] = n;
18
+ a[s] = n;
19
19
  }
20
- return { svgProps: i, svgContent: m };
20
+ return { svgProps: a, svgContent: m };
21
21
  }
22
22
  return {};
23
23
  }
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);
24
+ function j({ lismClass: u, as: a, tag: o, icon: e, label: m, exProps: t = {}, ...c }) {
25
+ let s = o || "span", n = "";
26
+ const {
27
+ style: g = {},
28
+ className: v = "",
29
+ ...l
30
+ } = b(c);
31
+ let i = g, f = v;
26
32
  if (l.viewBox)
27
33
  s = "svg", l.width || (t.width = "1em"), l.height || (t.height = "1em");
28
34
  else if (l.src)
@@ -31,20 +37,20 @@ function V({ lismClass: u, as: i, tag: g, icon: e, label: m, exProps: t = {}, ..
31
37
  if (typeof e == "string")
32
38
  if (e.startsWith("<svg")) {
33
39
  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;
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;
36
42
  } else {
37
- const a = S[e] || null;
38
- a != null && (s = "_SVG_", t = { ...t, ...a });
43
+ const r = C[e] || null;
44
+ r != null && (s = "_SVG_", t = { ...t, ...r });
39
45
  }
40
46
  else if (typeof e == "object" && e.as) {
41
- const { as: a, ...o } = e;
42
- s = a, t = { ...t, ...o };
47
+ const { as: r, ...h } = e;
48
+ s = r, t = { ...t, ...h };
43
49
  } else
44
50
  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 };
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 };
47
53
  }
48
54
  export {
49
- V as default
55
+ j as default
50
56
  };
@@ -1,11 +1,12 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import f from "../../../lib/getLismProps.js";
3
- import n from "./getProps.js";
4
- import s from "./SVG.js";
5
- function u({ children: m, ...p }) {
6
- let { Component: o, lismProps: e, exProps: r = {}, content: t } = n(p);
7
- return o === "_SVG_" && (o = s, t && (r.__html = t)), /* @__PURE__ */ i(o, { ...f(e), ...r, children: m });
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import i from "../../../lib/getLismProps.js";
3
+ import f from "./getProps.js";
4
+ import l from "./SVG.js";
5
+ function x({ children: m, ...n }) {
6
+ const { Component: t, lismProps: p, exProps: r = {}, content: e } = f(n);
7
+ let o;
8
+ return t === "_SVG_" ? (o = l, e && (r.__html = e)) : o = t, /* @__PURE__ */ s(o, { ...i(p), ...r, children: m });
8
9
  }
9
10
  export {
10
- u as default
11
+ x as default
11
12
  };
@@ -1,4 +1,4 @@
1
- export const phIcons: {
1
+ export declare const phIcons: {
2
2
  folder: {
3
3
  viewBox: string;
4
4
  path: string;
@@ -180,7 +180,7 @@ export const phIcons: {
180
180
  path: string;
181
181
  };
182
182
  };
183
- export const logoIcons: {
183
+ export declare const logoIcons: {
184
184
  'logo-facebook': {
185
185
  viewBox: string;
186
186
  path: string;
@@ -197,18 +197,10 @@ export const logoIcons: {
197
197
  viewBox: string;
198
198
  path: string;
199
199
  };
200
- 'logo-pocket': {
201
- viewBox: string;
202
- path: string;
203
- };
204
200
  'logo-tiktok': {
205
201
  viewBox: string;
206
202
  path: string;
207
203
  };
208
- 'logo-twitter': {
209
- viewBox: string;
210
- path: string;
211
- };
212
204
  'logo-x': {
213
205
  viewBox: string;
214
206
  path: string;
@@ -233,10 +225,6 @@ export const logoIcons: {
233
225
  viewBox: string;
234
226
  path: string;
235
227
  };
236
- 'logo-wordpress': {
237
- viewBox: string;
238
- path: string;
239
- };
240
228
  };
241
229
  declare const _default: {
242
230
  'logo-facebook': {
@@ -255,18 +243,10 @@ declare const _default: {
255
243
  viewBox: string;
256
244
  path: string;
257
245
  };
258
- 'logo-pocket': {
259
- viewBox: string;
260
- path: string;
261
- };
262
246
  'logo-tiktok': {
263
247
  viewBox: string;
264
248
  path: string;
265
249
  };
266
- 'logo-twitter': {
267
- viewBox: string;
268
- path: string;
269
- };
270
250
  'logo-x': {
271
251
  viewBox: string;
272
252
  path: string;
@@ -291,10 +271,6 @@ declare const _default: {
291
271
  viewBox: string;
292
272
  path: string;
293
273
  };
294
- 'logo-wordpress': {
295
- viewBox: string;
296
- path: string;
297
- };
298
274
  folder: {
299
275
  viewBox: string;
300
276
  path: string;
@@ -222,18 +222,14 @@ const a = {
222
222
  viewBox: "0 0 48 48",
223
223
  path: "M47 24c0 12.8-10.2 23-23 23-2.4 0-4.7-.3-6.8-1 .9-1.6 2.3-4.1 2.8-6.1.3-1 1.5-5.4 1.5-5.4.7 1.5 2.9 2.6 5.2 2.6 6.9 0 11.9-6.4 11.9-14.3 0-7.6-6.2-13.3-14.2-13.3-9.9 0-15.2 6.7-15.2 13.9 0 3.3 1.8 7.5 4.7 8.9.4.2.6.1.7-.3.1-.3.4-1.9.6-2.6.1-.2 0-.4-.2-.6-.9-1.2-1.7-3.2-1.7-5.2 0-5.1 3.9-9.9 10.4-9.9 5.6 0 9.6 3.9 9.6 9.4 0 6.3-3.1 10.6-7.2 10.6-2.3 0-4-1.9-3.4-4.2.6-2.7 1.9-5.6 1.9-7.6 0-1.8-.9-3.2-2.9-3.2-2.3 0-4.2 2.4-4.2 5.5 0 2.1.7 3.4.7 3.4s-2.3 9.6-2.7 11.4c-.4 2-.3 4.8-.1 6.6C7.1 42.1 1 33.7 1 24 1 11.2 11.2 1 24 1s23 10.2 23 23z"
224
224
  },
225
- "logo-pocket": {
226
- viewBox: "0 0 48 48",
227
- path: "M42 4.4H6c-2.2 0-4 1.8-4 4v13.3c0 12.2 9.8 22 22 22s22-9.8 22-22V8.3c0-2.2-1.7-3.9-4-3.9zM26.1 30.7c-1.2 1.2-3.1 1.1-4.2 0C10.8 20 10.7 20.4 10.7 18.6c0-1.7 1.4-3 3-3 1.7 0 1.6.4 10.3 8.8 8.9-8.5 8.7-8.8 10.4-8.8 1.7 0 3 1.4 3 3 0 1.8-.3 1.6-11.3 12.1z"
228
- },
229
225
  "logo-tiktok": {
230
226
  viewBox: "0 0 48 48",
231
227
  path: "M43.2 20c-3.8 0-7.5-1.2-10.6-3.4V32c0 7.7-6.3 14-14 14s-14-6.3-14-14 6.3-14 14-14c.6 0 1.3 0 1.9.1v7.7c-3.4-1.1-7 .8-8 4.2s.8 7 4.2 8c3.4 1.1 7-.8 8-4.2.2-.6.3-1.3.3-1.9V2h7.6c0 .6 0 1.3.2 1.9.5 2.8 2.2 5.3 4.6 6.9 1.7 1.1 3.7 1.7 5.8 1.7V20z"
232
228
  },
233
- "logo-twitter": {
234
- viewBox: "0 0 48 48",
235
- path: "M41.5 15v1.2c0 11.9-9.1 25.7-25.7 25.7-5.1 0-9.9-1.5-13.8-4 .7.1 1.4.1 2.2.1 4.2 0 8.1-1.4 11.2-3.9-4-.1-7.3-2.7-8.4-6.3.5.1 1.1.2 1.6.2.8 0 1.6-.1 2.4-.3-4.1-.8-7.2-4.5-7.2-8.9v-.1c1.2.7 2.6 1.1 4.1 1.1-2.4-1.6-4-4.4-4-7.5 0-1.7.4-3.2 1.2-4.6 4.4 5.5 11.1 9 18.6 9.4-.1-.7-.2-1.4-.2-2.1 0-5 4-9 9-9 2.6 0 4.9 1.1 6.6 2.8 2-.4 4-1.1 5.7-2.2-.7 2.1-2.1 3.9-4 5 1.8-.2 3.6-.7 5.2-1.4-1.2 2-2.8 3.6-4.5 4.8z"
236
- },
229
+ // 'logo-twitter': {
230
+ // viewBox: '0 0 48 48',
231
+ // path: 'M41.5 15v1.2c0 11.9-9.1 25.7-25.7 25.7-5.1 0-9.9-1.5-13.8-4 .7.1 1.4.1 2.2.1 4.2 0 8.1-1.4 11.2-3.9-4-.1-7.3-2.7-8.4-6.3.5.1 1.1.2 1.6.2.8 0 1.6-.1 2.4-.3-4.1-.8-7.2-4.5-7.2-8.9v-.1c1.2.7 2.6 1.1 4.1 1.1-2.4-1.6-4-4.4-4-7.5 0-1.7.4-3.2 1.2-4.6 4.4 5.5 11.1 9 18.6 9.4-.1-.7-.2-1.4-.2-2.1 0-5 4-9 9-9 2.6 0 4.9 1.1 6.6 2.8 2-.4 4-1.1 5.7-2.2-.7 2.1-2.1 3.9-4 5 1.8-.2 3.6-.7 5.2-1.4-1.2 2-2.8 3.6-4.5 4.8z',
232
+ // },
237
233
  "logo-x": {
238
234
  viewBox: "0 0 48 48",
239
235
  path: "M28.1,20.6L44.1,2h-3.8L26.4,18.2L15.3,2H2.5l16.8,24.5L2.5,46h3.8L21,28.9L32.7,46h12.8L28.1,20.6L28.1,20.6z M22.9,26.7 l-1.7-2.4L7.6,4.9h5.8l10.9,15.6l1.7,2.4l14.2,20.3h-5.8L22.9,26.7L22.9,26.7z"
@@ -261,20 +257,20 @@ const a = {
261
257
  "logo-amazon": {
262
258
  viewBox: "0 0 48 48",
263
259
  path: "M27.4 15c-4.9.2-17.2 1.6-17.2 11.9 0 11.1 14 11.6 18.6 4.4.7 1 3.6 3.8 4.6 4.7l5.8-5.7s-3.3-2.6-3.3-5.4V10.1c0-2.6-2.5-8.3-11.4-8.3S10.8 7.4 10.8 12.4l7.5.7c1.7-5 5.5-5 5.5-5 4.1-.1 3.6 3 3.6 6.9zm0 8.8c0 8.1-8.5 6.9-8.5 1.7 0-4.8 5.1-5.7 8.5-5.9v4.2zm13.8 16.6c-.8 1-7.1 6.8-17.7 6.8S4.8 40 2.3 37c-.7-.8.1-1.1.6-.8 7.4 4.5 19 11.9 37.8 3.1.7-.5 1.2.1.5 1.1zm4 .2c-.7 1.6-1.6 2.7-2.1 3.1-.6.5-1 .3-.7-.4s2-4.7 1.3-5.6c-.7-.8-3.8-.4-4.9-.3-1.1.1-1.3.2-1.4 0-.2-.6 2.2-1.6 3.8-1.8s4.2-.1 4.7.6c.3.6 0 2.8-.7 4.4z"
264
- },
265
- "logo-wordpress": {
266
- viewBox: "0 0 48 48",
267
- path: "m6 15.9 9.4 25.8C8.8 38.5 4.2 31.8 4.2 24c0-2.8.7-5.5 1.8-8.1zm31.3 7.2c0-2.4-.8-4.1-1.7-5.4-1-1.7-2-3-2-4.6 0-1.8 1.4-3.6 3.3-3.6h.2C33.6 6.2 29 4.2 23.9 4.2c-6.9 0-13 3.6-16.5 8.9h1.3c2.1 0 5.2-.2 5.2-.2 1-.1 1.2 1.5.1 1.7 0 0-1 .1-2.3.2l7.2 21.3 4.3-13-3-8.5c-1-.1-2.1-.2-2.1-.2-1-.1-.9-1.7.1-1.7 0 0 3.2.2 5.2.2 2.1 0 5.2-.2 5.2-.2 1-.1 1.1 1.5.1 1.7 0 0-1 .1-2.3.2l7.1 21.2 2-6.6c1.1-2.6 1.8-4.5 1.8-6.1zm-13 2.6-6 17.2c1.8.5 3.7.8 5.5.8 2.3 0 4.5-.4 6.6-1.1-.1-.1-.1-.2-.1-.3l-6-16.6zm17.1-11.2c.1.6.1 1.3.1 2 0 2-.4 4.3-1.5 7.1L33.9 41c5.9-3.5 9.8-9.7 9.8-17 .1-3.4-.9-6.7-2.3-9.5zM47 24c0 12.6-10.4 23-23 23S1 36.6 1 24 11.3 1 24 1s23 10.3 23 23zm-1 0c0-12.1-9.8-22-22-22S2 11.9 2 24s9.8 22 22 22 22-9.9 22-22z"
268
260
  }
261
+ // 'logo-wordpress': {
262
+ // viewBox: '0 0 48 48',
263
+ // path: 'm6 15.9 9.4 25.8C8.8 38.5 4.2 31.8 4.2 24c0-2.8.7-5.5 1.8-8.1zm31.3 7.2c0-2.4-.8-4.1-1.7-5.4-1-1.7-2-3-2-4.6 0-1.8 1.4-3.6 3.3-3.6h.2C33.6 6.2 29 4.2 23.9 4.2c-6.9 0-13 3.6-16.5 8.9h1.3c2.1 0 5.2-.2 5.2-.2 1-.1 1.2 1.5.1 1.7 0 0-1 .1-2.3.2l7.2 21.3 4.3-13-3-8.5c-1-.1-2.1-.2-2.1-.2-1-.1-.9-1.7.1-1.7 0 0 3.2.2 5.2.2 2.1 0 5.2-.2 5.2-.2 1-.1 1.1 1.5.1 1.7 0 0-1 .1-2.3.2l7.1 21.2 2-6.6c1.1-2.6 1.8-4.5 1.8-6.1zm-13 2.6-6 17.2c1.8.5 3.7.8 5.5.8 2.3 0 4.5-.4 6.6-1.1-.1-.1-.1-.2-.1-.3l-6-16.6zm17.1-11.2c.1.6.1 1.3.1 2 0 2-.4 4.3-1.5 7.1L33.9 41c5.9-3.5 9.8-9.7 9.8-17 .1-3.4-.9-6.7-2.3-9.5zM47 24c0 12.6-10.4 23-23 23S1 36.6 1 24 11.3 1 24 1s23 10.3 23 23zm-1 0c0-12.1-9.8-22-22-22S2 11.9 2 24s9.8 22 22 22 22-9.9 22-22z',
264
+ // },
269
265
  // WhatsApp,
270
266
  // LinkdIn,
271
267
  // Snapchat
272
- }, c = {
268
+ }, h = {
273
269
  ...a,
274
270
  ...l
275
271
  };
276
272
  export {
277
- c as default,
273
+ h as default,
278
274
  l as logoIcons,
279
275
  a as phIcons
280
276
  };
@@ -1 +1,2 @@
1
- export default function Media(props: any): import("react").JSX.Element;
1
+ import { MediaProps } from './getProps';
2
+ export default function Media(props: MediaProps): import("react").JSX.Element;
@@ -1 +1,9 @@
1
- export default function getMediaProps(props: any): any;
1
+ import { LismComponentProps } from '../../Lism/Lism';
2
+ import { CSSProperties } from 'react';
3
+ type MediaOwnProps = {
4
+ objectPosition?: CSSProperties['objectPosition'];
5
+ objectFit?: CSSProperties['objectFit'];
6
+ };
7
+ export type MediaProps = LismComponentProps & MediaOwnProps;
8
+ export default function getMediaProps({ objectPosition, objectFit, lismClass, style, ...rest }: MediaProps): LismComponentProps;
9
+ export {};
@@ -1,9 +1,8 @@
1
- import a from "../../../lib/helper/atts.js";
2
- import l from "../../getFilterProps.js";
3
- function f(e) {
4
- const { objectPosition: i, objectFit: s, lismClass: r = "", style: t = {}, ...o } = e;
5
- return i && (t.objectPosition = i), s && (t.objectFit = s), o.lismClass = a(r, "a--media"), o.style = t, l(o);
1
+ import e from "../../../lib/helper/atts.js";
2
+ import f from "../../getFilterProps.js";
3
+ function s({ objectPosition: i, objectFit: t, lismClass: o, style: r = {}, ...a }) {
4
+ return i && (r.objectPosition = i), t && (r.objectFit = t), f({ ...a, lismClass: e(o, "a--media"), style: r });
6
5
  }
7
6
  export {
8
- f as default
7
+ s as default
9
8
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import t from "./getProps.js";
3
- import i from "../../Lism/index.js";
2
+ import i from "./getProps.js";
3
+ import m from "../../Lism/index.js";
4
4
  function f(r) {
5
- return /* @__PURE__ */ o(i, { tag: "img", ...t(r) });
5
+ return /* @__PURE__ */ o(m, { as: "img", ...i(r) });
6
6
  }
7
7
  export {
8
8
  f as default
@@ -1 +1,2 @@
1
- export default function Spacer(props: any): import("react").JSX.Element;
1
+ import { LismComponentProps } from '../../Lism/Lism';
2
+ export default function Spacer(props: LismComponentProps): import("react").JSX.Element;
@@ -1,7 +1,2 @@
1
- export default function getSpacerProps({ lismClass, ...props }: {
2
- [x: string]: any;
3
- lismClass: any;
4
- }): {
5
- lismClass: string;
6
- 'aria-hidden': string;
7
- };
1
+ import { LismComponentProps } from '../../Lism/Lism';
2
+ export default function getSpacerProps({ lismClass, ...props }: LismComponentProps): LismComponentProps;
@@ -8,11 +8,17 @@ function h({ lismClass: l, ...e }) {
8
8
  };
9
9
  if (e.h != null) {
10
10
  let t = u(e.h);
11
- t = Object.entries(t).reduce((r, [a, i]) => (r[a] = c(i, "space"), r), {}), e.h = t;
11
+ t = Object.entries(t).reduce(
12
+ (r, [a, i]) => (r[a] = c(i, "space"), r),
13
+ {}
14
+ ), e.h = t;
12
15
  }
13
16
  if (e.w != null) {
14
17
  let t = u(e.w);
15
- t = Object.entries(t).reduce((r, [a, i]) => (r[a] = c(i, "space"), r), {}), e.w = t;
18
+ t = Object.entries(t).reduce(
19
+ (r, [a, i]) => (r[a] = c(i, "space"), r),
20
+ {}
21
+ ), e.w = t;
16
22
  }
17
23
  return { ...n, ...e };
18
24
  }
@@ -1 +1,10 @@
1
- export default function getFilterProps(props: any, filterType?: string): any;
1
+ import { LismProps } from '../lib/getLismProps';
2
+ import { StyleWithCustomProps } from '../lib/types';
3
+ type FilterName = 'blur' | 'contrast' | 'brightness' | 'dropShadow' | 'grayscale' | 'hueRotate' | 'invert' | 'saturate' | 'sepia';
4
+ export type FilterProps = {
5
+ [K in FilterName]?: string | number;
6
+ };
7
+ export default function getFilterProps(props: LismProps & FilterProps, filterType?: string): LismProps & {
8
+ style: StyleWithCustomProps;
9
+ };
10
+ export {};
@@ -1,13 +1,23 @@
1
- const l = ["blur", "contrast", "brightness", "dropShadow", "grayscale", "hueRotate", "invert", "saturate", "sepia"];
2
- function c(o, a = "filter") {
1
+ const c = [
2
+ "blur",
3
+ "contrast",
4
+ "brightness",
5
+ "dropShadow",
6
+ "grayscale",
7
+ "hueRotate",
8
+ "invert",
9
+ "saturate",
10
+ "sepia"
11
+ ];
12
+ function l(o, a = "filter") {
3
13
  const s = [], { style: r = {}, ...t } = o;
4
- return l.forEach((e) => {
14
+ return c.forEach((e) => {
5
15
  if (t[e]) {
6
16
  const n = e.replace(/([A-Z])/g, "-$1").toLowerCase();
7
17
  s.push(`${n}(${t[e]})`), delete t[e];
8
18
  }
9
- }), s.length > 0 && (r[a] = s.join(" ")), t.style = r, t;
19
+ }), s.length > 0 && (r[a] = s.join(" ")), { ...t, style: r };
10
20
  }
11
21
  export {
12
- c as default
22
+ l as default
13
23
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,54 +1,50 @@
1
1
  import { default as o } from "./HTML/index.js";
2
2
  import { default as t } from "./Lism/index.js";
3
- import { default as l } from "./Lism/Text.js";
4
- import { default as m } from "./Lism/Link.js";
5
- import { default as u } from "./Dummy/index.js";
6
- import { default as p } from "./Container/index.js";
7
- import { default as n } from "./Wrapper/index.js";
8
- import { default as c } from "./Layer/index.js";
9
- import { default as F } from "./LinkBox/index.js";
10
- import { default as k } from "./Box/index.js";
11
- import { default as M } from "./Flow/index.js";
12
- import { default as y } from "./Flex/index.js";
13
- import { default as T } from "./Cluster/index.js";
14
- import { default as v } from "./Stack/index.js";
15
- import { default as H } from "./Grid/index.js";
16
- import { default as W } from "./FluidCols/index.js";
17
- import { default as g } from "./SwitchCols/index.js";
18
- import { default as q } from "./SideMain/index.js";
19
- import { default as A } from "./Center/index.js";
20
- import { default as J } from "./Columns/index.js";
21
- import { default as N } from "./Frame/index.js";
22
- import { default as P } from "./atomic/Decorator/index.js";
23
- import { default as R } from "./atomic/Divider/index.js";
24
- import { default as V } from "./atomic/Icon/index.js";
25
- import { default as Y } from "./atomic/Media/index.js";
26
- import { default as _ } from "./atomic/Spacer/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";
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";
27
25
  export {
28
- k as Box,
29
- A as Center,
30
- T as Cluster,
31
- J as Columns,
32
- p as Container,
33
- P as Decorator,
34
- R as Divider,
35
- u as Dummy,
36
- y as Flex,
37
- M as Flow,
38
- W as FluidCols,
39
- N as Frame,
40
- H as Grid,
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,
34
+ D as Flex,
35
+ L as Flow,
36
+ G as FluidCols,
37
+ A as Frame,
38
+ h as Grid,
41
39
  o as HTML,
42
- V as Icon,
43
- c as Layer,
44
- m as Link,
45
- F as LinkBox,
40
+ P as Icon,
41
+ x as Layer,
42
+ n as LinkBox,
46
43
  t as Lism,
47
- Y as Media,
48
- q as SideMain,
49
- _ as Spacer,
50
- v as Stack,
51
- g as SwitchCols,
52
- l as Text,
53
- n as Wrapper
44
+ R as Media,
45
+ W as SideMain,
46
+ V as Spacer,
47
+ y as Stack,
48
+ I as SwitchCols,
49
+ u as Wrapper
54
50
  };
@@ -1 +1,12 @@
1
- export default function setMaybeTransformStyles(props: any): any;
1
+ import { StyleWithCustomProps } from '../lib/types';
2
+ export type TransformStyleProps = {
3
+ translate?: string;
4
+ rotate?: string;
5
+ scale?: string;
6
+ transform?: string;
7
+ };
8
+ type TransformKeys = keyof TransformStyleProps;
9
+ export default function setMaybeTransformStyles<P extends object>(props: P): Omit<P, TransformKeys> & {
10
+ style: StyleWithCustomProps;
11
+ };
12
+ export {};