@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.
@@ -1,101 +1,101 @@
1
1
  import { jsx as y } from "react/jsx-runtime";
2
- import { clsx as C } from "../../../utils/clsx.js";
2
+ import { clsx as v } from "../../../utils/clsx.js";
3
3
  import { ui as t } from "../../../utils/ui/ui.js";
4
- const S = "cfxui__Box__root__299ae", W = "cfxui__Box__fullWidth__e1584", B = "cfxui__Box__fitContentWidth__18431", R = "cfxui__Box__fullHeight__c44a2", k = "cfxui__Box__noOverflow__6db4f", H = "cfxui__Box__noShrink__1a959", O = "cfxui__Box__grow__7ee8d", N = "cfxui__Box__noGrow__d606e", o = {
5
- root: S,
6
- fullWidth: W,
7
- fitContentWidth: B,
8
- fullHeight: R,
9
- noOverflow: k,
10
- noShrink: H,
11
- grow: O,
12
- noGrow: N
13
- }, w = (e) => e;
14
- function G(e) {
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: l = !1,
16
+ noOverflow: i = !1,
17
17
  noShrink: r = !1,
18
18
  grow: s = void 0,
19
19
  width: n,
20
- height: i,
21
- children: p,
22
- className: c,
23
- fullWidth: d,
24
- fullHeight: u,
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: x,
28
+ style: u,
29
29
  ref: m,
30
- as: v,
30
+ as: p,
31
31
  ...h
32
32
  } = e;
33
- return C(
33
+ return v(
34
34
  o.root,
35
- c,
35
+ a,
36
36
  t.getResponsiveClassnames("width", n),
37
- t.getResponsiveClassnames("height", i),
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]: d,
43
- [o.fullHeight]: u,
42
+ [o.fullWidth]: c,
43
+ [o.fullHeight]: d,
44
44
  [o.fitContentWidth]: g,
45
- [o.noOverflow]: l,
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 P(e) {
52
+ function G(e) {
53
53
  const {
54
- noOverflow: l,
54
+ noOverflow: i,
55
55
  noShrink: r,
56
56
  grow: s,
57
57
  width: n,
58
- height: i,
59
- children: p,
60
- className: c,
61
- fullWidth: d,
62
- fullHeight: u,
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: x,
66
+ style: u,
67
67
  ref: m,
68
- as: v,
68
+ as: p,
69
69
  ...h
70
- } = e, a = {
70
+ } = e;
71
+ return {
71
72
  ...t.getResponsiveStyles("width", n),
72
- ...t.getResponsiveStyles("height", i),
73
- ...t.getResponsiveStyles("flex", f, w),
74
- ...t.getResponsiveStyles("display", _, w),
73
+ ...t.getResponsiveStyles("height", l),
74
+ ...t.getResponsiveStyles("flex", f, x),
75
+ ...t.getResponsiveStyles("display", _, x),
75
76
  ...t.getAllMPStyles(h),
76
- ...x || {}
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: l,
82
+ children: i,
83
83
  ref: r,
84
84
  as: s = "div"
85
- } = e, n = G(e), i = P(e);
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: i,
92
- children: l
91
+ style: l,
92
+ children: i
93
93
  }
94
94
  );
95
95
  }
96
96
  export {
97
97
  j as default,
98
- G as getBoxClassNames,
99
- P as getBoxStyles,
100
- w as stringPropFormater
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.9",
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
- "@chromatic-com/storybook": "1.5.0",
49
- "@storybook/addon-essentials": "^8.1.5",
50
- "@storybook/addon-interactions": "^8.1.5",
51
- "@storybook/addon-links": "^8.1.5",
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": "^8.1.5",
62
+ "storybook": "^9.0.10",
68
63
  "stylelint": "^16.19.1",
69
64
  "typescript": "^5.2.2",
70
65
  "vite": "^5.2.0",