@shmidko61/lc-ui-kit 0.11.0 → 0.12.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.
package/dist/grid.js CHANGED
@@ -1,59 +1,59 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
2
  import { Box as $ } from "./box.js";
3
3
  import { a as w, c as y } from "./responsive-style.config-DFuATrIM.js";
4
- function N(t) {
5
- const i = [], n = {}, l = {
6
- md: t.md,
7
- lg: t.lg,
8
- xl: t.xl
4
+ function N(i) {
5
+ const t = [], n = {}, l = {
6
+ md: i.md,
7
+ lg: i.lg,
8
+ xl: i.xl
9
9
  };
10
- r(t, i, n);
10
+ r(i, t, n);
11
11
  for (const o of w) {
12
12
  const e = l[o];
13
- e && r(
14
- e,
15
- i,
16
- n,
17
- `${o}:`,
18
- `${o}-`
19
- );
13
+ e && r(e, t, n, {
14
+ classPrefix: `${o}:`,
15
+ variablePrefix: `${o}-`
16
+ });
20
17
  }
21
18
  return {
22
- className: i.join(" "),
19
+ className: t.join(" "),
23
20
  style: Object.keys(n).length > 0 ? n : void 0
24
21
  };
25
22
  }
26
- function r({ cols: t, gap: i }, n, l, o = "", e = "") {
27
- if (t !== void 0) {
28
- const c = `${e}grid-template-columns`;
29
- l[`--${c}`] = `repeat(${t}, minmax(0, 1fr))`, n.push(
30
- `${o}${s("grid-cols", `var(--${c})`)}`
23
+ function r({ cols: i, gap: t }, n, l, {
24
+ classPrefix: o = "",
25
+ variablePrefix: e = ""
26
+ } = {}) {
27
+ if (i !== void 0) {
28
+ const a = `${e}grid-template-columns`;
29
+ l[`--${a}`] = `repeat(${i}, minmax(0, 1fr))`, n.push(
30
+ `${o}${s("grid-cols", `var(--${a})`)}`
31
31
  );
32
32
  }
33
- if (i !== void 0) {
34
- const c = `${e}grid-gap`;
35
- l[`--${c}`] = j(i), n.push(`${o}${s("gap", `var(--${c})`)}`);
33
+ if (t !== void 0) {
34
+ const a = `${e}grid-gap`;
35
+ l[`--${a}`] = j(t), n.push(`${o}${s("gap", `var(--${a})`)}`);
36
36
  }
37
37
  }
38
- function s(t, i) {
39
- return [t, "-[", i, "]"].join("");
38
+ function s(i, t) {
39
+ return [i, "-[", t, "]"].join("");
40
40
  }
41
- function j(t) {
42
- return typeof t == "number" ? `${t}px` : t;
41
+ function j(i) {
42
+ return typeof i == "number" ? `${i}px` : i;
43
43
  }
44
44
  function B({
45
- children: t,
46
- className: i,
45
+ children: i,
46
+ className: t,
47
47
  cols: n = 1,
48
48
  gap: l = 0,
49
49
  md: o,
50
50
  lg: e,
51
- xl: c,
51
+ xl: a,
52
52
  style: d,
53
53
  ...g
54
54
  }) {
55
- const a = N({ cols: n, gap: l, md: o, lg: e, xl: c }), u = m(o), h = m(e), v = m(c), x = a.style || d ? {
56
- ...a.style,
55
+ const c = N({ cols: n, gap: l, md: o, lg: e, xl: a }), u = m(o), h = m(e), v = m(a), x = c.style || d ? {
56
+ ...c.style,
57
57
  ...d
58
58
  } : void 0;
59
59
  return /* @__PURE__ */ f(
@@ -61,44 +61,44 @@ function B({
61
61
  {
62
62
  ...g,
63
63
  display: "grid",
64
- className: y(a.className, i),
64
+ className: y(c.className, t),
65
65
  md: u,
66
66
  lg: h,
67
67
  xl: v,
68
68
  style: x,
69
- children: t
69
+ children: i
70
70
  }
71
71
  );
72
72
  }
73
- function C({ children: t, className: i, ...n }) {
74
- return /* @__PURE__ */ f("div", { className: i, ...n, children: t });
73
+ function C({ children: i, className: t, ...n }) {
74
+ return /* @__PURE__ */ f("div", { className: t, ...n, children: i });
75
75
  }
76
76
  const W = Object.assign(B, {
77
77
  Item: C
78
78
  });
79
- function m(t) {
80
- if (t)
79
+ function m(i) {
80
+ if (i)
81
81
  return {
82
- aspectRatio: t.aspectRatio,
83
- background: t.background,
84
- backgroundColor: t.backgroundColor,
85
- boxShadow: t.boxShadow,
86
- color: t.color,
87
- height: t.height,
88
- maxHeight: t.maxHeight,
89
- maxWidth: t.maxWidth,
90
- minHeight: t.minHeight,
91
- minWidth: t.minWidth,
92
- m: t.m,
93
- p: t.p,
94
- opacity: t.opacity,
95
- overflow: t.overflow,
96
- overflowX: t.overflowX,
97
- overflowY: t.overflowY,
98
- pointerEvents: t.pointerEvents,
99
- transform: t.transform,
100
- transformOrigin: t.transformOrigin,
101
- width: t.width
82
+ aspectRatio: i.aspectRatio,
83
+ background: i.background,
84
+ backgroundColor: i.backgroundColor,
85
+ boxShadow: i.boxShadow,
86
+ color: i.color,
87
+ height: i.height,
88
+ maxHeight: i.maxHeight,
89
+ maxWidth: i.maxWidth,
90
+ minHeight: i.minHeight,
91
+ minWidth: i.minWidth,
92
+ m: i.m,
93
+ p: i.p,
94
+ opacity: i.opacity,
95
+ overflow: i.overflow,
96
+ overflowX: i.overflowX,
97
+ overflowY: i.overflowY,
98
+ pointerEvents: i.pointerEvents,
99
+ transform: i.transform,
100
+ transformOrigin: i.transformOrigin,
101
+ width: i.width
102
102
  };
103
103
  }
104
104
  export {
package/dist/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  export * from './accordion/accordion';
2
- export type { BorderRadiusItem, BorderRadiusKeys, BorderRadiusSides, BorderWidthItem, BorderWidthSides, BoxAs, BoxBackgroundValue, BoxBreakpointProps, BoxComponentProps, BoxProps, HoverStyleProps, PositionValue, UiKitAnyIndentationMargin, UiKitAnyIndentationPadding, UiKitArrayIndentation, UiKitAxisIndentationMargin, UiKitAxisIndentationPadding, UiKitBackgroundProps, UiKitBorderColor, UiKitBorderProps, UiKitBorderRadius, UiKitBorderWidth, UiKitCursorProps, UiKitDimensionProps, UiKitDisplayProps, UiKitIndentations, UiKitIndentationsProps, UiKitListStyleProps, UiKitMarginArrayIndentation, UiKitMarginIndentation, UiKitMixedXAxisIndentationMargin, UiKitMixedXAxisIndentationPadding, UiKitMixedYAxisIndentationMargin, UiKitMixedYAxisIndentationPadding, UiKitOutlineProps, UiKitPositionProps, } from './box/box';
2
+ export type { BoxAs, BoxBackgroundValue, BoxBreakpointProps, BoxComponentProps, BoxProps, HoverStyleProps, StateStyleProps, } from './box/box';
3
3
  export { Box } from './box/box';
4
4
  export * from './button/button';
5
5
  export * from './design-tokens/color.tokens';
6
6
  export * from './design-tokens/typography.tokens';
7
- export * from './flex/flex';
7
+ export type { FlexBreakpointProps, FlexProps, FlexResponsiveProps } from './flex/flex';
8
+ export { Flex } from './flex/flex';
8
9
  export * from './grid/grid';
9
10
  export * from './icons/icons';
10
11
  export * from './input/input';