@cfx-dev/ui-components 4.3.9 → 4.3.10
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/components/RSC/Box/Box.js +48 -48
- package/package.json +6 -11
|
@@ -1,101 +1,101 @@
|
|
|
1
1
|
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
-
import { clsx as
|
|
2
|
+
import { clsx as v } from "../../../utils/clsx.js";
|
|
3
3
|
import { ui as t } from "../../../utils/ui/ui.js";
|
|
4
|
-
const
|
|
5
|
-
root:
|
|
6
|
-
fullWidth:
|
|
7
|
-
fitContentWidth:
|
|
8
|
-
fullHeight:
|
|
9
|
-
noOverflow:
|
|
10
|
-
noShrink:
|
|
11
|
-
grow:
|
|
12
|
-
noGrow:
|
|
13
|
-
},
|
|
14
|
-
function
|
|
4
|
+
const C = "cfxui__Box__root__299ae", S = "cfxui__Box__fullWidth__e1584", W = "cfxui__Box__fitContentWidth__18431", B = "cfxui__Box__fullHeight__c44a2", R = "cfxui__Box__noOverflow__6db4f", k = "cfxui__Box__noShrink__1a959", H = "cfxui__Box__grow__7ee8d", O = "cfxui__Box__noGrow__d606e", o = {
|
|
5
|
+
root: C,
|
|
6
|
+
fullWidth: S,
|
|
7
|
+
fitContentWidth: W,
|
|
8
|
+
fullHeight: B,
|
|
9
|
+
noOverflow: R,
|
|
10
|
+
noShrink: k,
|
|
11
|
+
grow: H,
|
|
12
|
+
noGrow: O
|
|
13
|
+
}, x = (e) => e;
|
|
14
|
+
function N(e) {
|
|
15
15
|
const {
|
|
16
|
-
noOverflow:
|
|
16
|
+
noOverflow: i = !1,
|
|
17
17
|
noShrink: r = !1,
|
|
18
18
|
grow: s = void 0,
|
|
19
19
|
width: n,
|
|
20
|
-
height:
|
|
21
|
-
children:
|
|
22
|
-
className:
|
|
23
|
-
fullWidth:
|
|
24
|
-
fullHeight:
|
|
20
|
+
height: l,
|
|
21
|
+
children: w,
|
|
22
|
+
className: a,
|
|
23
|
+
fullWidth: c,
|
|
24
|
+
fullHeight: d,
|
|
25
25
|
fitContentWidth: g,
|
|
26
26
|
flex: f,
|
|
27
27
|
display: _,
|
|
28
|
-
style:
|
|
28
|
+
style: u,
|
|
29
29
|
ref: m,
|
|
30
|
-
as:
|
|
30
|
+
as: p,
|
|
31
31
|
...h
|
|
32
32
|
} = e;
|
|
33
|
-
return
|
|
33
|
+
return v(
|
|
34
34
|
o.root,
|
|
35
|
-
|
|
35
|
+
a,
|
|
36
36
|
t.getResponsiveClassnames("width", n),
|
|
37
|
-
t.getResponsiveClassnames("height",
|
|
37
|
+
t.getResponsiveClassnames("height", l),
|
|
38
38
|
t.getResponsiveClassnames("flex", f),
|
|
39
39
|
t.getResponsiveClassnames("display", _),
|
|
40
40
|
t.getAllMPClassnames(h),
|
|
41
41
|
{
|
|
42
|
-
[o.fullWidth]:
|
|
43
|
-
[o.fullHeight]:
|
|
42
|
+
[o.fullWidth]: c,
|
|
43
|
+
[o.fullHeight]: d,
|
|
44
44
|
[o.fitContentWidth]: g,
|
|
45
|
-
[o.noOverflow]:
|
|
45
|
+
[o.noOverflow]: i,
|
|
46
46
|
[o.noShrink]: r,
|
|
47
47
|
[o.noGrow]: s === !1,
|
|
48
48
|
[o.grow]: s === !0
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function G(e) {
|
|
53
53
|
const {
|
|
54
|
-
noOverflow:
|
|
54
|
+
noOverflow: i,
|
|
55
55
|
noShrink: r,
|
|
56
56
|
grow: s,
|
|
57
57
|
width: n,
|
|
58
|
-
height:
|
|
59
|
-
children:
|
|
60
|
-
className:
|
|
61
|
-
fullWidth:
|
|
62
|
-
fullHeight:
|
|
58
|
+
height: l,
|
|
59
|
+
children: w,
|
|
60
|
+
className: a,
|
|
61
|
+
fullWidth: c,
|
|
62
|
+
fullHeight: d,
|
|
63
63
|
fitContentWidth: g,
|
|
64
64
|
flex: f,
|
|
65
65
|
display: _,
|
|
66
|
-
style:
|
|
66
|
+
style: u,
|
|
67
67
|
ref: m,
|
|
68
|
-
as:
|
|
68
|
+
as: p,
|
|
69
69
|
...h
|
|
70
|
-
} = e
|
|
70
|
+
} = e;
|
|
71
|
+
return {
|
|
71
72
|
...t.getResponsiveStyles("width", n),
|
|
72
|
-
...t.getResponsiveStyles("height",
|
|
73
|
-
...t.getResponsiveStyles("flex", f,
|
|
74
|
-
...t.getResponsiveStyles("display", _,
|
|
73
|
+
...t.getResponsiveStyles("height", l),
|
|
74
|
+
...t.getResponsiveStyles("flex", f, x),
|
|
75
|
+
...t.getResponsiveStyles("display", _, x),
|
|
75
76
|
...t.getAllMPStyles(h),
|
|
76
|
-
...
|
|
77
|
+
...u || {}
|
|
77
78
|
};
|
|
78
|
-
return !a.width && s === !0 && (a.width = "1px"), a;
|
|
79
79
|
}
|
|
80
80
|
function j(e) {
|
|
81
81
|
const {
|
|
82
|
-
children:
|
|
82
|
+
children: i,
|
|
83
83
|
ref: r,
|
|
84
84
|
as: s = "div"
|
|
85
|
-
} = e, n =
|
|
85
|
+
} = e, n = N(e), l = G(e);
|
|
86
86
|
return /* @__PURE__ */ y(
|
|
87
87
|
s,
|
|
88
88
|
{
|
|
89
89
|
ref: r,
|
|
90
90
|
className: n,
|
|
91
|
-
style:
|
|
92
|
-
children:
|
|
91
|
+
style: l,
|
|
92
|
+
children: i
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
96
|
export {
|
|
97
97
|
j as default,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
N as getBoxClassNames,
|
|
99
|
+
G as getBoxStyles,
|
|
100
|
+
x as stringPropFormater
|
|
101
101
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cfx-dev/ui-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/main.js",
|
|
@@ -45,15 +45,10 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@cfx-dev/eslint-config-ui": "^2.1.0",
|
|
47
47
|
"@cfx-dev/stylelint-config-ui": "^1.1.1",
|
|
48
|
-
"@
|
|
49
|
-
"@storybook/addon-
|
|
50
|
-
"@storybook/
|
|
51
|
-
"@storybook/
|
|
52
|
-
"@storybook/addon-onboarding": "^8.1.5",
|
|
53
|
-
"@storybook/blocks": "^8.1.5",
|
|
54
|
-
"@storybook/react": "^8.1.5",
|
|
55
|
-
"@storybook/react-vite": "^8.1.5",
|
|
56
|
-
"@storybook/test": "^8.1.5",
|
|
48
|
+
"@storybook/addon-docs": "^9.0.10",
|
|
49
|
+
"@storybook/addon-links": "^9.0.10",
|
|
50
|
+
"@storybook/react": "^9.0.10",
|
|
51
|
+
"@storybook/react-vite": "^9.0.10",
|
|
57
52
|
"@types/node": "^20.12.13",
|
|
58
53
|
"@types/react": "^19.0.0",
|
|
59
54
|
"@types/react-dom": "^19.0.0",
|
|
@@ -64,7 +59,7 @@
|
|
|
64
59
|
"glob": "^10.4.1",
|
|
65
60
|
"remark-gfm": "^4.0.1",
|
|
66
61
|
"sass": "^1.77.4",
|
|
67
|
-
"storybook": "^
|
|
62
|
+
"storybook": "^9.0.10",
|
|
68
63
|
"stylelint": "^16.19.1",
|
|
69
64
|
"typescript": "^5.2.2",
|
|
70
65
|
"vite": "^5.2.0",
|