@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/README.md +78 -0
- package/dist/box/box.d.ts +1 -1
- package/dist/box/box.types.d.ts +20 -0
- package/dist/box.cjs +1 -1
- package/dist/box.js +262 -203
- package/dist/button.cjs +1 -1
- package/dist/button.js +152 -141
- package/dist/flex.cjs +1 -1
- package/dist/flex.js +18 -18
- package/dist/grid.cjs +1 -1
- package/dist/grid.js +57 -57
- package/dist/index.d.ts +3 -2
- package/dist/styles.css +1 -1
- package/package.json +8 -3
- package/dist/vite.config.d.ts +0 -2
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(
|
|
5
|
-
const
|
|
6
|
-
md:
|
|
7
|
-
lg:
|
|
8
|
-
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(
|
|
10
|
+
r(i, t, n);
|
|
11
11
|
for (const o of w) {
|
|
12
12
|
const e = l[o];
|
|
13
|
-
e && r(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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:
|
|
19
|
+
className: t.join(" "),
|
|
23
20
|
style: Object.keys(n).length > 0 ? n : void 0
|
|
24
21
|
};
|
|
25
22
|
}
|
|
26
|
-
function r({ cols:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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 (
|
|
34
|
-
const
|
|
35
|
-
l[`--${
|
|
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(
|
|
39
|
-
return [
|
|
38
|
+
function s(i, t) {
|
|
39
|
+
return [i, "-[", t, "]"].join("");
|
|
40
40
|
}
|
|
41
|
-
function j(
|
|
42
|
-
return typeof
|
|
41
|
+
function j(i) {
|
|
42
|
+
return typeof i == "number" ? `${i}px` : i;
|
|
43
43
|
}
|
|
44
44
|
function B({
|
|
45
|
-
children:
|
|
46
|
-
className:
|
|
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:
|
|
51
|
+
xl: a,
|
|
52
52
|
style: d,
|
|
53
53
|
...g
|
|
54
54
|
}) {
|
|
55
|
-
const
|
|
56
|
-
...
|
|
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(
|
|
64
|
+
className: y(c.className, t),
|
|
65
65
|
md: u,
|
|
66
66
|
lg: h,
|
|
67
67
|
xl: v,
|
|
68
68
|
style: x,
|
|
69
|
-
children:
|
|
69
|
+
children: i
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
|
-
function C({ children:
|
|
74
|
-
return /* @__PURE__ */ f("div", { className:
|
|
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(
|
|
80
|
-
if (
|
|
79
|
+
function m(i) {
|
|
80
|
+
if (i)
|
|
81
81
|
return {
|
|
82
|
-
aspectRatio:
|
|
83
|
-
background:
|
|
84
|
-
backgroundColor:
|
|
85
|
-
boxShadow:
|
|
86
|
-
color:
|
|
87
|
-
height:
|
|
88
|
-
maxHeight:
|
|
89
|
-
maxWidth:
|
|
90
|
-
minHeight:
|
|
91
|
-
minWidth:
|
|
92
|
-
m:
|
|
93
|
-
p:
|
|
94
|
-
opacity:
|
|
95
|
-
overflow:
|
|
96
|
-
overflowX:
|
|
97
|
-
overflowY:
|
|
98
|
-
pointerEvents:
|
|
99
|
-
transform:
|
|
100
|
-
transformOrigin:
|
|
101
|
-
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 {
|
|
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
|
|
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';
|