lism-css 0.8.3 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/bin/script-build-css.js +1 -1
  2. package/config/__prop_list.js +1 -1
  3. package/config/default-config.ts +9 -0
  4. package/config/defaults/__props-memo.js +4 -4
  5. package/config/defaults/{props.js → props.ts} +8 -8
  6. package/config/defaults/{states.js → states.ts} +14 -13
  7. package/config/defaults/{tokens.js → tokens.ts} +1 -1
  8. package/config/helper/{getSvgUrl.js → getSvgUrl.ts} +1 -3
  9. package/config/helper/{minifyHtml.js → minifyHtml.ts} +1 -1
  10. package/config/helper.test.ts +238 -0
  11. package/config/helper.ts +79 -0
  12. package/config/{index.js → index.ts} +17 -4
  13. package/config/tsconfig.json +18 -0
  14. package/config.d.ts +2 -0
  15. package/config.js +1 -1
  16. package/dist/components/Box/Box.d.ts +4 -1
  17. package/dist/components/Box/index.d.ts +1 -1
  18. package/dist/components/Center/Center.d.ts +4 -1
  19. package/dist/components/Center/index.d.ts +1 -1
  20. package/dist/components/Cluster/Cluster.d.ts +4 -1
  21. package/dist/components/Cluster/index.js +2 -2
  22. package/dist/components/Columns/Columns.d.ts +4 -1
  23. package/dist/components/Container/Container.d.ts +6 -4
  24. package/dist/components/Dummy/Dummy.d.ts +10 -8
  25. package/dist/components/Dummy/getContent.d.ts +13 -7
  26. package/dist/components/Dummy/getContent.js +7 -6
  27. package/dist/components/Dummy/index.js +8 -7
  28. package/dist/components/Flex/Flex.d.ts +4 -1
  29. package/dist/components/Flow/Flow.d.ts +4 -1
  30. package/dist/components/Flow/index.d.ts +1 -1
  31. package/dist/components/FluidCols/FluidCols.d.ts +4 -1
  32. package/dist/components/Frame/Frame.d.ts +4 -1
  33. package/dist/components/Grid/Grid.d.ts +4 -1
  34. package/dist/components/HTML/HTML.d.ts +16 -13
  35. package/dist/components/HTML/index.d.ts +13 -13
  36. package/dist/components/HTML/index.js +3 -3
  37. package/dist/components/HTML/index2.js +30 -29
  38. package/dist/components/Layer/Layer.d.ts +6 -1
  39. package/dist/components/Layer/Layer.test.d.ts +1 -0
  40. package/dist/components/Layer/getProps.d.ts +5 -1
  41. package/dist/components/LinkBox/LinkBox.d.ts +4 -4
  42. package/dist/components/LinkBox/script.d.ts +3 -0
  43. package/dist/components/Lism/Lism.d.ts +28 -7
  44. package/dist/components/Lism/Lism.stories.d.ts +667 -0
  45. package/dist/components/Lism/Lism.test.d.ts +1 -0
  46. package/dist/components/Lism/index.d.ts +1 -3
  47. package/dist/components/Lism/index.js +3 -3
  48. package/dist/components/SideMain/SideMain.d.ts +4 -1
  49. package/dist/components/Stack/Stack.d.ts +4 -1
  50. package/dist/components/SwitchCols/SwitchCols.d.ts +4 -1
  51. package/dist/components/Wrapper/Wrapper.d.ts +6 -4
  52. package/dist/components/atomic/Decorator/Decorator.d.ts +2 -1
  53. package/dist/components/atomic/Decorator/getProps.d.ts +10 -12
  54. package/dist/components/atomic/Decorator/getProps.js +10 -9
  55. package/dist/components/atomic/Divider/Divider.d.ts +2 -1
  56. package/dist/components/atomic/Divider/getProps.d.ts +2 -7
  57. package/dist/components/atomic/Divider/getProps.js +8 -7
  58. package/dist/components/atomic/Icon/Icon.d.ts +4 -3
  59. package/dist/components/atomic/Icon/SVG.d.ts +8 -9
  60. package/dist/components/atomic/Icon/getProps.d.ts +21 -12
  61. package/dist/components/atomic/Icon/getProps.js +31 -25
  62. package/dist/components/atomic/Icon/index.js +9 -8
  63. package/dist/components/atomic/Icon/presets.d.ts +2 -2
  64. package/dist/components/atomic/Media/Media.d.ts +2 -1
  65. package/dist/components/atomic/Media/getProps.d.ts +9 -1
  66. package/dist/components/atomic/Media/getProps.js +5 -6
  67. package/dist/components/atomic/Media/index.js +3 -3
  68. package/dist/components/atomic/Spacer/Spacer.d.ts +2 -1
  69. package/dist/components/atomic/Spacer/getProps.d.ts +2 -7
  70. package/dist/components/atomic/Spacer/getProps.js +8 -2
  71. package/dist/components/getFilterProps.d.ts +10 -1
  72. package/dist/components/getFilterProps.js +15 -5
  73. package/dist/components/getFilterProps.test.d.ts +1 -0
  74. package/dist/components/index.js +46 -50
  75. package/dist/components/setMaybeTransformStyles.d.ts +12 -1
  76. package/dist/components/setMaybeTransformStyles.js +4 -4
  77. package/dist/components/setMaybeTransformStyles.test.d.ts +1 -0
  78. package/dist/config/default-config.d.ts +854 -0
  79. package/dist/config/defaults/props.d.ts +812 -0
  80. package/dist/config/defaults/props.js +4 -4
  81. package/dist/config/defaults/states.d.ts +30 -0
  82. package/dist/config/defaults/states.js +12 -11
  83. package/dist/config/defaults/tokens.d.ts +28 -0
  84. package/dist/config/helper/getSvgUrl.d.ts +5 -0
  85. package/dist/config/helper/minifyHtml.d.ts +5 -0
  86. package/dist/config/helper.d.ts +21 -0
  87. package/dist/config/helper.js +14 -18
  88. package/dist/config/index.d.ts +1707 -0
  89. package/dist/config/index.js +15 -11
  90. package/dist/css/base/set.css +1 -1
  91. package/dist/css/base.css +1 -1
  92. package/dist/css/main.css +1 -1
  93. package/dist/css/main_no_layer.css +1 -1
  94. package/dist/css/modules/layout.css +1 -1
  95. package/dist/css/modules/state.css +1 -1
  96. package/dist/css/props.css +1 -1
  97. package/dist/css/reset.css +1 -1
  98. package/dist/css/utility.css +1 -1
  99. package/dist/lib/LismPropsData.test.d.ts +1 -0
  100. package/dist/lib/getBpData.d.ts +9 -1
  101. package/dist/lib/getBpData.js +16 -10
  102. package/dist/lib/getBpData.test.d.ts +1 -0
  103. package/dist/lib/getLayoutProps.d.ts +22 -1
  104. package/dist/lib/getLayoutProps.js +20 -20
  105. package/dist/lib/getLayoutProps.test.d.ts +1 -0
  106. package/dist/lib/getLismProps.d.ts +77 -2
  107. package/dist/lib/getLismProps.js +127 -111
  108. package/dist/lib/getLismProps.test.d.ts +1 -0
  109. package/dist/lib/getMaybeCssVar.d.ts +5 -3
  110. package/dist/lib/getMaybeCssVar.js +15 -15
  111. package/dist/lib/getMaybeCssVar.test.d.ts +1 -0
  112. package/dist/lib/getMaybeTokenValue.d.ts +10 -1
  113. package/dist/lib/getMaybeTokenValue.js +21 -21
  114. package/dist/lib/getMaybeTokenValue.test.d.ts +1 -0
  115. package/dist/lib/getUtilKey.d.ts +7 -1
  116. package/dist/lib/getUtilKey.js +6 -6
  117. package/dist/lib/getUtilKey.test.d.ts +1 -0
  118. package/dist/lib/helper/atts.d.ts +6 -3
  119. package/dist/lib/helper/atts.test.d.ts +1 -0
  120. package/dist/lib/helper/filterEmptyObj.d.ts +20 -1
  121. package/dist/lib/helper/filterEmptyObj.js +6 -5
  122. package/dist/lib/helper/filterEmptyObj.test.d.ts +1 -0
  123. package/dist/lib/helper/hasSomeKeys.d.ts +1 -1
  124. package/dist/lib/helper/isNumStr.d.ts +4 -1
  125. package/dist/lib/helper/isNumStr.test.d.ts +1 -0
  126. package/dist/lib/helper/objMap.d.ts +8 -1
  127. package/dist/lib/helper/objMap.test.d.ts +1 -0
  128. package/dist/lib/helper/splitWithComma.d.ts +1 -1
  129. package/dist/lib/helper/splitWithComma.test.d.ts +1 -0
  130. package/dist/lib/isPresetValue.d.ts +3 -1
  131. package/dist/lib/isPresetValue.js +10 -3
  132. package/dist/lib/isPresetValue.test.d.ts +1 -0
  133. package/dist/lib/isTokenValue.d.ts +1 -1
  134. package/dist/lib/isTokenValue.js +24 -7
  135. package/dist/lib/isTokenValue.test.d.ts +1 -0
  136. package/dist/lib/types/LayoutProps.d.ts +50 -0
  137. package/dist/lib/types/PropValueTypes.d.ts +83 -0
  138. package/dist/lib/types/PropValueTypes.spec-d.d.ts +1 -0
  139. package/dist/lib/types/ResponsiveProps.d.ts +50 -0
  140. package/dist/lib/types/ResponsiveProps.spec-d.d.ts +1 -0
  141. package/dist/lib/types/StateProps.d.ts +27 -0
  142. package/dist/lib/types/StateProps.spec-d.d.ts +1 -0
  143. package/dist/lib/types/utils.d.ts +79 -0
  144. package/dist/lib/types/utils.spec-d.d.ts +1 -0
  145. package/dist/lib/types.d.ts +2 -0
  146. package/package.json +39 -20
  147. package/packages/astro/Lism/index.js +0 -2
  148. package/packages/astro/index.js +0 -2
  149. package/src/scss/_auto_output.scss +2 -1
  150. package/src/scss/_prop-config.scss +19 -0
  151. package/src/scss/_with_layer.scss +7 -11
  152. package/src/scss/base/{_base.scss → _html.scss} +2 -3
  153. package/src/scss/base/index.scss +6 -6
  154. package/src/scss/base/set/_bp.scss +2 -2
  155. package/src/scss/base/set/_cqUnit.scss +31 -0
  156. package/src/scss/{modules/state → base/set}/_gutter.scss +1 -1
  157. package/src/scss/base/set/_hov.scss +4 -4
  158. package/src/scss/base/set/_innerRs.scss +1 -1
  159. package/src/scss/base/set/_mask.scss +1 -1
  160. package/src/scss/base/set/_plain.scss +3 -1
  161. package/src/scss/base/set/_transition.scss +1 -1
  162. package/src/scss/base/set/index.scss +2 -2
  163. package/src/scss/base/{set → tokens}/_shadow.scss +2 -2
  164. package/src/scss/base/{_typography.scss → tokens/_typography.scss} +2 -8
  165. package/src/scss/modules/layout/_flex.scss +4 -0
  166. package/src/scss/modules/layout/_flow.scss +1 -1
  167. package/src/scss/modules/layout/_grid.scss +4 -0
  168. package/src/scss/modules/state/_container.scss +2 -2
  169. package/src/scss/modules/state/_wrapper.scss +2 -2
  170. package/src/scss/modules/state/index.scss +0 -1
  171. package/src/scss/props/_size.scss +1 -1
  172. package/src/scss/reset.scss +10 -3
  173. package/src/scss/utility/_cbox.scss +1 -1
  174. package/src/scss/utility/_clipText.scss +4 -0
  175. package/src/scss/utility/_hidden.scss +3 -3
  176. package/src/scss/utility/_itemDivider.scss +1 -1
  177. package/src/scss/utility/_linkExpand.scss +1 -1
  178. package/src/scss/{base/set → utility}/_snap.scss +1 -1
  179. package/src/scss/utility/_trimHL.scss +5 -4
  180. package/src/scss/utility/index.scss +2 -0
  181. package/config/default-config.js +0 -9
  182. package/config/helper.js +0 -67
  183. package/dist/components/Lism/Link.d.ts +0 -1
  184. package/dist/components/Lism/Link.js +0 -8
  185. package/dist/components/Lism/Text.d.ts +0 -1
  186. package/dist/components/Lism/Text.js +0 -8
  187. package/dist/components/Lism/__Lism_with_forwardRef.d.ts +0 -5
  188. package/dist/components/Test/Test.d.ts +0 -9
  189. package/dist/components/Test/TestItem.d.ts +0 -2
  190. package/dist/components/Test/TestRoot.d.ts +0 -4
  191. package/dist/components/Test/index.d.ts +0 -7
  192. package/dist/components/__Core/Core.d.ts +0 -11
  193. package/dist/components/__Core/index.d.ts +0 -1
  194. package/packages/astro/Lism/Link.astro +0 -10
  195. package/packages/astro/Lism/Text.astro +0 -10
  196. package/packages/astro/Test/Test.astro +0 -14
  197. package/packages/astro/Test/TestItem.astro +0 -14
  198. package/packages/astro/Test/index.js +0 -4
  199. /package/src/scss/base/{_property.scss → tokens/_property.scss} +0 -0
  200. /package/src/scss/base/{_tokens.scss → tokens/_tokens.scss} +0 -0
@@ -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;
@@ -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
- 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";
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
+ import { default as D } from "./Flex/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";
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
+ 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
+ D as Flex,
35
+ k as Flow,
36
+ y as FluidCols,
37
+ h as Frame,
38
+ G as Grid,
41
39
  o as HTML,
42
- V as Icon,
43
- c as Layer,
44
- m as Link,
45
- F as LinkBox,
46
- 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
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
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 {};
@@ -1,7 +1,7 @@
1
- function l(n) {
2
- const { style: t = {}, translate: e, rotate: a, scale: r, transform: s, ...f } = n;
3
- return e && (t.translate = e), a && (t.rotate = a), r && (t.scale = r), s && (t.transform = s), f.style = t, f;
1
+ function o(n) {
2
+ const { translate: e, rotate: s, scale: a, transform: r, style: f, ...l } = n, t = f ?? {};
3
+ return e && (t.translate = e), s && (t.rotate = s), a && (t.scale = a), r && (t.transform = r), { ...l, style: t };
4
4
  }
5
5
  export {
6
- l as default
6
+ o as default
7
7
  };
@@ -0,0 +1 @@
1
+ export {};