@particle-network/ui-react 0.5.1-beta.8 → 0.6.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 (54) hide show
  1. package/dist/components/ProgressWrapper/index.js +2 -3
  2. package/dist/components/UXAutocomplete/index.js +1 -2
  3. package/dist/components/UXCheckbox/checkbox.extend.js +15 -12
  4. package/dist/components/UXColorPicker/color-input.js +1 -1
  5. package/dist/components/UXColorPicker/color-picker.js +43 -31
  6. package/dist/components/UXColorPicker/types.d.ts +4 -0
  7. package/dist/components/UXCopy/index.js +1 -1
  8. package/dist/components/UXEmpty/index.js +1 -1
  9. package/dist/components/UXHint/index.js +2 -2
  10. package/dist/components/UXModal/index.d.ts +1 -1
  11. package/dist/components/UXRangeInput/index.d.ts +42 -0
  12. package/dist/components/UXRangeInput/index.js +94 -0
  13. package/dist/components/UXSlider/use-slider.js +1 -1
  14. package/dist/components/UXSpinner/spinner.js +1 -1
  15. package/dist/components/UXSwitch/switch.extend.js +6 -6
  16. package/dist/components/UXThemeSwitch/custom-theme-config.d.ts +4 -1
  17. package/dist/components/UXThemeSwitch/custom-theme-config.js +8 -7
  18. package/dist/components/UXThemeSwitch/index.d.ts +2 -2
  19. package/dist/components/UXThemeSwitch/index.js +2 -2
  20. package/dist/components/UXThemeSwitch/theme-item.js +6 -7
  21. package/dist/components/UXThemeSwitch/theme-switch.d.ts +8 -1
  22. package/dist/components/UXThemeSwitch/theme-switch.js +12 -18
  23. package/dist/components/UXThemeSwitch/use-theme.d.ts +2 -1
  24. package/dist/components/UXThemeSwitch/use-theme.js +4 -9
  25. package/dist/components/UXThemeSwitch/utils.js +52 -15
  26. package/dist/components/UXToast/index.d.ts +1 -1
  27. package/dist/components/UXToast/index.js +22 -10
  28. package/dist/components/UXTooltip/index.js +4 -12
  29. package/dist/components/WrapText/index.d.ts +6 -0
  30. package/dist/components/WrapText/index.js +15 -0
  31. package/dist/components/index.d.ts +2 -0
  32. package/dist/components/index.js +2 -0
  33. package/dist/components/layout/Box/box-theme.d.ts +36 -18
  34. package/dist/components/layout/Box/box-theme.js +25 -19
  35. package/dist/components/layout/Box/box.js +14 -5
  36. package/dist/components/layout/Square.js +2 -4
  37. package/dist/components/typography/Text.js +18 -8
  38. package/dist/components/typography/Text.type.d.ts +1 -0
  39. package/dist/hooks/useI18n.d.ts +18 -10
  40. package/dist/hooks/useI18n.js +18 -10
  41. package/dist/utils/cn.d.ts +2 -0
  42. package/dist/utils/cn.js +250 -0
  43. package/dist/utils/common.d.ts +4 -0
  44. package/dist/utils/common.js +13 -0
  45. package/dist/utils/index.d.ts +1 -0
  46. package/dist/utils/index.js +2 -1
  47. package/package.json +5 -5
  48. package/tailwind-preset.js +18 -18
  49. package/dist/components/UXThemeSwitch/use-color-scheme.d.ts +0 -5
  50. package/dist/components/UXThemeSwitch/use-color-scheme.js +0 -14
  51. package/dist/components/UXThemeSwitch/use-theme-color.d.ts +0 -1
  52. package/dist/components/UXThemeSwitch/use-theme-color.js +0 -6
  53. package/dist/components/UXThemeSwitch/use-theme-store.d.ts +0 -46
  54. package/dist/components/UXThemeSwitch/use-theme-store.js +0 -36
@@ -50,8 +50,8 @@ const sizingPresets = [
50
50
  const bgClasses = {
51
51
  current: 'bg-current',
52
52
  transparent: 'bg-transparent',
53
- default: 'bg-default',
54
- pure: 'light:bg-white dark:bg-black',
53
+ bgDefault: 'bg-background',
54
+ bgPure: 'light:bg-white dark:bg-black',
55
55
  bg100: 'bg-background-100',
56
56
  bg200: 'bg-background-200',
57
57
  bg300: 'bg-background-300',
@@ -61,14 +61,14 @@ const bgClasses = {
61
61
  foreground: 'bg-foreground',
62
62
  secondary: 'bg-secondary',
63
63
  tertiary: 'bg-tertiary',
64
- cursor: 'bg-cursor',
65
- primary: 'bg-primary',
66
- success: 'bg-success',
67
- warning: 'bg-warning',
68
- danger: 'bg-danger',
69
- alert: 'bg-alert',
70
- bullish: 'bg-bullish',
71
- bearish: 'bg-bearish'
64
+ cursor: 'bg-cursor text-cursor-foreground',
65
+ primary: 'bg-primary text-primary-foreground',
66
+ success: 'bg-success text-success-foreground',
67
+ warning: 'bg-warning text-warning-foreground',
68
+ danger: 'bg-danger text-danger-foreground',
69
+ alert: 'bg-alert text-alert-foreground',
70
+ bullish: 'bg-bullish text-bullish-foreground',
71
+ bearish: 'bg-bearish text-bearish-foreground'
72
72
  };
73
73
  const colorClasses = {
74
74
  current: 'text-current',
@@ -76,15 +76,25 @@ const colorClasses = {
76
76
  divider: 'text-divider',
77
77
  foreground: 'text-foreground',
78
78
  secondary: 'text-secondary',
79
+ secondaryForeground: 'text-secondary-foreground',
79
80
  tertiary: 'text-tertiary',
81
+ tertiaryForeground: 'text-tertiary-foreground',
80
82
  cursor: 'text-cursor',
83
+ cursorForeground: 'text-cursor-foreground',
81
84
  primary: 'text-primary',
85
+ primaryForeground: 'text-primary-foreground',
82
86
  success: 'text-success',
87
+ successForeground: 'text-success-foreground',
83
88
  warning: 'text-warning',
89
+ warningForeground: 'text-warning-foreground',
84
90
  danger: 'text-danger',
91
+ dangerForeground: 'text-danger-foreground',
85
92
  alert: 'text-alert',
93
+ alertForeground: 'text-alert-foreground',
86
94
  bullish: 'text-bullish',
87
- bearish: 'text-bearish'
95
+ bullishForeground: 'text-bullish-foreground',
96
+ bearish: 'text-bearish',
97
+ bearishForeground: 'text-bearish-foreground'
88
98
  };
89
99
  const borderColorClasses = {
90
100
  transparent: 'border-transparent',
@@ -207,16 +217,12 @@ const boxVariants = tv({
207
217
  grow: {
208
218
  true: 'grow',
209
219
  0: 'grow-0',
210
- 1: 'grow-1',
211
- 2: 'grow-2',
212
- 3: 'grow-3'
220
+ 1: 'grow'
213
221
  },
214
222
  shrink: {
215
223
  true: 'shrink',
216
224
  0: 'shrink-0',
217
- 1: 'shrink-1',
218
- 2: 'shrink-2',
219
- 3: 'shrink-3'
225
+ 1: 'shrink'
220
226
  },
221
227
  order: {
222
228
  first: 'order-first',
@@ -302,9 +308,9 @@ const boxVariants = tv({
302
308
  borderWidth: {
303
309
  none: 'border-none',
304
310
  '0.5': 'border-[0.5px]',
305
- 1: 'border-px',
311
+ 1: 'border-[1px]',
306
312
  '1.5': 'border-[1.5px]',
307
- 2: 'border-2'
313
+ 2: 'border-[2px]'
308
314
  },
309
315
  cursor: {
310
316
  auto: 'cursor-auto',
@@ -1,8 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef, useMemo } from "react";
3
- import { cn } from "@heroui/theme";
4
3
  import { boxVariants } from "./box-theme.js";
5
- const Box = /*#__PURE__*/ forwardRef(({ as, position, display, aspect, overflow, zIndex, direction, items, justify, gap, wrap, self, fill, vertical, horizontal, center, grow, shrink, order, p, pt, pr, pb, pl, ps, pe, px, py, m, mt, mr, mb, ml, ms, me, mx, my, w, h, minW, maxW, minH, maxH, fullWidth, fullHeight, bg, opacity, shadow, rounded, radius, borderStyle, cursor, color, fontWeight, lineHeight, textAlign, style = {}, className, ...props }, ref)=>{
4
+ const Box = /*#__PURE__*/ forwardRef(({ as, position, top, right, bottom, left, start, end, inset, display, aspect, overflow, zIndex, direction, items, justify, gap, wrap, self, fill, vertical, horizontal, center, grow, shrink, order, p, pt, pr, pb, pl, ps, pe, px, py, m, mt, mr, mb, ml, ms, me, mx, my, w, h, minW, maxW, minH, maxH, fullWidth, fullHeight, bg, opacity, shadow, rounded, radius, borderStyle, borderColor, borderWidth, cursor, color, fontWeight, lineHeight, textAlign, style = {}, className, ...props }, ref)=>{
6
5
  const Component = as || 'div';
7
6
  const boxStyle = useMemo(()=>({
8
7
  width: 'number' == typeof w ? `${w}px` : void 0,
@@ -26,8 +25,15 @@ const Box = /*#__PURE__*/ forwardRef(({ as, position, display, aspect, overflow,
26
25
  return /*#__PURE__*/ jsx(Component, {
27
26
  ref: ref,
28
27
  style: boxStyle,
29
- className: cn(boxVariants({
28
+ className: boxVariants({
30
29
  position,
30
+ top,
31
+ right,
32
+ bottom,
33
+ left,
34
+ start,
35
+ end,
36
+ inset,
31
37
  display,
32
38
  aspect,
33
39
  overflow,
@@ -77,12 +83,15 @@ const Box = /*#__PURE__*/ forwardRef(({ as, position, display, aspect, overflow,
77
83
  rounded,
78
84
  radius,
79
85
  borderStyle,
86
+ borderColor,
87
+ borderWidth,
80
88
  cursor,
81
89
  color: color,
82
90
  fontWeight,
83
91
  lineHeight,
84
- textAlign
85
- }), className),
92
+ textAlign,
93
+ className
94
+ }),
86
95
  ...props
87
96
  });
88
97
  });
@@ -4,10 +4,8 @@ import { Center } from "./Center.js";
4
4
  const Square = /*#__PURE__*/ forwardRef(({ size, ...props }, ref)=>/*#__PURE__*/ jsx(Center, {
5
5
  ref: ref,
6
6
  shrink: 0,
7
- style: {
8
- width: `${size}px`,
9
- height: `${size}px`
10
- },
7
+ w: size,
8
+ aspect: "square",
11
9
  ...props
12
10
  }));
13
11
  Square.displayName = 'UX.Square';
@@ -1,13 +1,20 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import { cn } from "@heroui/theme";
2
+ import { forwardRef, useMemo } from "react";
4
3
  import { Box } from "../layout/index.js";
4
+ import { WrapText } from "../WrapText/index.js";
5
5
  import { textVariants } from "./text-theme.js";
6
- const Text = /*#__PURE__*/ forwardRef(({ variant, className, h1, h2, h3, body1, body1Bold, body2, body2Bold, body3, body3Bold, caption1, caption1Bold, fontWeight, lineHeight, align, textAlign, ...props }, ref)=>/*#__PURE__*/ jsx(Box, {
6
+ const Text = /*#__PURE__*/ forwardRef(({ variant, className, h1, h2, h3, body1, body1Bold, body2, body2Bold, body3, body3Bold, caption1, caption1Bold, fontWeight, lineHeight, align, textAlign, wrapText, children, ...props }, ref)=>{
7
+ const content = useMemo(()=>wrapText ? /*#__PURE__*/ jsx(WrapText, {
8
+ children: children
9
+ }) : children, [
10
+ children,
11
+ wrapText
12
+ ]);
13
+ return /*#__PURE__*/ jsx(Box, {
7
14
  ref: ref,
8
15
  as: "span",
9
16
  textAlign: textAlign || align,
10
- className: cn(textVariants({
17
+ className: textVariants({
11
18
  variant,
12
19
  h1,
13
20
  h2,
@@ -21,9 +28,12 @@ const Text = /*#__PURE__*/ forwardRef(({ variant, className, h1, h2, h3, body1,
21
28
  caption1,
22
29
  caption1Bold,
23
30
  fontWeight,
24
- lineHeight
25
- }), className),
26
- ...props
27
- }));
31
+ lineHeight,
32
+ className
33
+ }),
34
+ ...props,
35
+ children: content
36
+ });
37
+ });
28
38
  Text.displayName = 'UX.Text';
29
39
  export { Text };
@@ -62,5 +62,6 @@ export interface TextProps extends BoxProps<HTMLSpanElement> {
62
62
  */
63
63
  caption1Bold?: boolean;
64
64
  align?: BoxProps['textAlign'];
65
+ wrapText?: boolean;
65
66
  }
66
67
  export {};
@@ -40,12 +40,12 @@ export declare const useI18n: () => {
40
40
  readonly primary: "Primary";
41
41
  readonly bullish: "Positive";
42
42
  readonly bearish: "Negative";
43
- readonly 'bg-default': "Background Primary";
44
- readonly 'bg-200': "Background Quaternary";
45
- readonly 'bg-300': "Background Tertiary";
46
- readonly 'bg-400': "Background Secondary";
47
- readonly cursor: "Selected";
48
- readonly overlay: "Overlay";
43
+ readonly bgDefault: "Background Primary";
44
+ readonly bg200: "Background Quaternary";
45
+ readonly bg300: "Background Tertiary";
46
+ readonly bg400: "Background Secondary";
47
+ readonly cursor: "Background Selected";
48
+ readonly overlay: "Background Overlay";
49
49
  readonly default: "Default";
50
50
  readonly foreground: "Text Primary";
51
51
  readonly secondary: "Text Secondary";
@@ -67,6 +67,10 @@ export declare const useI18n: () => {
67
67
  readonly on: "On";
68
68
  readonly off: "Off";
69
69
  };
70
+ readonly rangeInput: {
71
+ readonly min: "Min";
72
+ readonly max: "Max";
73
+ };
70
74
  } | {
71
75
  readonly table: {
72
76
  readonly emptyContent: "暂无数据";
@@ -109,10 +113,10 @@ export declare const useI18n: () => {
109
113
  readonly primary: "主要色";
110
114
  readonly bullish: "上涨色";
111
115
  readonly bearish: "下跌色";
112
- readonly 'bg-default': "一级背景色";
113
- readonly 'bg-200': "四级背景色";
114
- readonly 'bg-300': "三级背景色";
115
- readonly 'bg-400': "二级背景色";
116
+ readonly bgDefault: "一级背景色";
117
+ readonly bg200: "四级背景色";
118
+ readonly bg300: "三级背景色";
119
+ readonly bg400: "二级背景色";
116
120
  readonly cursor: "选中背景色";
117
121
  readonly overlay: "浮窗背景色";
118
122
  readonly default: "默认";
@@ -136,4 +140,8 @@ export declare const useI18n: () => {
136
140
  readonly on: "开";
137
141
  readonly off: "关";
138
142
  };
143
+ readonly rangeInput: {
144
+ readonly min: "最小";
145
+ readonly max: "最大";
146
+ };
139
147
  };
@@ -42,12 +42,12 @@ const en = {
42
42
  primary: 'Primary',
43
43
  bullish: 'Positive',
44
44
  bearish: 'Negative',
45
- 'bg-default': 'Background Primary',
46
- 'bg-200': 'Background Quaternary',
47
- 'bg-300': 'Background Tertiary',
48
- 'bg-400': 'Background Secondary',
49
- cursor: 'Selected',
50
- overlay: 'Overlay',
45
+ bgDefault: 'Background Primary',
46
+ bg200: 'Background Quaternary',
47
+ bg300: 'Background Tertiary',
48
+ bg400: 'Background Secondary',
49
+ cursor: 'Background Selected',
50
+ overlay: 'Background Overlay',
51
51
  default: 'Default',
52
52
  foreground: 'Text Primary',
53
53
  secondary: 'Text Secondary',
@@ -68,6 +68,10 @@ const en = {
68
68
  switch: {
69
69
  on: 'On',
70
70
  off: 'Off'
71
+ },
72
+ rangeInput: {
73
+ min: 'Min',
74
+ max: 'Max'
71
75
  }
72
76
  };
73
77
  const zh = {
@@ -112,10 +116,10 @@ const zh = {
112
116
  primary: '主要色',
113
117
  bullish: '上涨色',
114
118
  bearish: '下跌色',
115
- 'bg-default': '一级背景色',
116
- 'bg-200': '四级背景色',
117
- 'bg-300': '三级背景色',
118
- 'bg-400': '二级背景色',
119
+ bgDefault: '一级背景色',
120
+ bg200: '四级背景色',
121
+ bg300: '三级背景色',
122
+ bg400: '二级背景色',
119
123
  cursor: '选中背景色',
120
124
  overlay: '浮窗背景色',
121
125
  default: '默认',
@@ -138,6 +142,10 @@ const zh = {
138
142
  switch: {
139
143
  on: '开',
140
144
  off: '关'
145
+ },
146
+ rangeInput: {
147
+ min: '最小',
148
+ max: '最大'
141
149
  }
142
150
  };
143
151
  const useI18n = ()=>{
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,250 @@
1
+ import { clsx } from "clsx";
2
+ import { extendTailwindMerge } from "tailwind-merge";
3
+ const COMMON_UNITS = [
4
+ 'small',
5
+ 'medium',
6
+ 'large'
7
+ ];
8
+ const FONT_SIZE = [
9
+ 'xxs',
10
+ 'tiny',
11
+ 'caption1',
12
+ 'body3',
13
+ 'body2',
14
+ 'body1',
15
+ 'h4',
16
+ 'h3',
17
+ 'h2',
18
+ 'h1'
19
+ ];
20
+ const COMMON_SPACING = [
21
+ 'xs',
22
+ 'sm',
23
+ 'md',
24
+ 'lg'
25
+ ];
26
+ const OPACITY = [
27
+ 'disabled',
28
+ 'hover'
29
+ ];
30
+ const twMerge = extendTailwindMerge({
31
+ extend: {
32
+ classGroups: {
33
+ 'font-size': [
34
+ {
35
+ text: [
36
+ ...FONT_SIZE,
37
+ ...COMMON_UNITS
38
+ ]
39
+ }
40
+ ],
41
+ px: [
42
+ {
43
+ px: COMMON_SPACING
44
+ }
45
+ ],
46
+ py: [
47
+ {
48
+ py: COMMON_SPACING
49
+ }
50
+ ],
51
+ pt: [
52
+ {
53
+ pt: COMMON_SPACING
54
+ }
55
+ ],
56
+ pb: [
57
+ {
58
+ pb: COMMON_SPACING
59
+ }
60
+ ],
61
+ pl: [
62
+ {
63
+ pl: COMMON_SPACING
64
+ }
65
+ ],
66
+ pr: [
67
+ {
68
+ pr: COMMON_SPACING
69
+ }
70
+ ],
71
+ ps: [
72
+ {
73
+ ps: COMMON_SPACING
74
+ }
75
+ ],
76
+ pe: [
77
+ {
78
+ pe: COMMON_SPACING
79
+ }
80
+ ],
81
+ p: [
82
+ {
83
+ p: COMMON_SPACING
84
+ }
85
+ ],
86
+ m: [
87
+ {
88
+ m: COMMON_SPACING
89
+ }
90
+ ],
91
+ mx: [
92
+ {
93
+ mx: COMMON_SPACING
94
+ }
95
+ ],
96
+ my: [
97
+ {
98
+ my: COMMON_SPACING
99
+ }
100
+ ],
101
+ mt: [
102
+ {
103
+ mt: COMMON_SPACING
104
+ }
105
+ ],
106
+ mb: [
107
+ {
108
+ mb: COMMON_SPACING
109
+ }
110
+ ],
111
+ ml: [
112
+ {
113
+ ml: COMMON_SPACING
114
+ }
115
+ ],
116
+ mr: [
117
+ {
118
+ mr: COMMON_SPACING
119
+ }
120
+ ],
121
+ ms: [
122
+ {
123
+ ms: COMMON_SPACING
124
+ }
125
+ ],
126
+ me: [
127
+ {
128
+ me: COMMON_SPACING
129
+ }
130
+ ],
131
+ gap: [
132
+ {
133
+ gap: COMMON_SPACING
134
+ }
135
+ ],
136
+ 'gap-x': [
137
+ {
138
+ 'gap-x': COMMON_SPACING
139
+ }
140
+ ],
141
+ 'gap-y': [
142
+ {
143
+ 'gap-y': COMMON_SPACING
144
+ }
145
+ ],
146
+ rounded: [
147
+ {
148
+ rounded: COMMON_UNITS
149
+ }
150
+ ],
151
+ 'rounded-s': [
152
+ {
153
+ 'rounded-s': COMMON_UNITS
154
+ }
155
+ ],
156
+ 'rounded-e': [
157
+ {
158
+ 'rounded-e': COMMON_UNITS
159
+ }
160
+ ],
161
+ 'rounded-t': [
162
+ {
163
+ 'rounded-t': COMMON_UNITS
164
+ }
165
+ ],
166
+ 'rounded-r': [
167
+ {
168
+ 'rounded-r': COMMON_UNITS
169
+ }
170
+ ],
171
+ 'rounded-b': [
172
+ {
173
+ 'rounded-b': COMMON_UNITS
174
+ }
175
+ ],
176
+ 'rounded-l': [
177
+ {
178
+ 'rounded-l': COMMON_UNITS
179
+ }
180
+ ],
181
+ top: [
182
+ {
183
+ top: COMMON_SPACING
184
+ }
185
+ ],
186
+ right: [
187
+ {
188
+ right: COMMON_SPACING
189
+ }
190
+ ],
191
+ bottom: [
192
+ {
193
+ bottom: COMMON_SPACING
194
+ }
195
+ ],
196
+ left: [
197
+ {
198
+ left: COMMON_SPACING
199
+ }
200
+ ],
201
+ inset: [
202
+ {
203
+ inset: COMMON_SPACING
204
+ }
205
+ ],
206
+ 'inset-x': [
207
+ {
208
+ 'inset-x': COMMON_SPACING
209
+ }
210
+ ],
211
+ 'inset-y': [
212
+ {
213
+ 'inset-y': COMMON_SPACING
214
+ }
215
+ ],
216
+ start: [
217
+ {
218
+ start: COMMON_SPACING
219
+ }
220
+ ],
221
+ end: [
222
+ {
223
+ end: COMMON_SPACING
224
+ }
225
+ ],
226
+ opacity: [
227
+ {
228
+ opacity: OPACITY
229
+ }
230
+ ],
231
+ 'border-w': [
232
+ {
233
+ border: COMMON_UNITS
234
+ }
235
+ ],
236
+ shadow: [
237
+ {
238
+ shadow: [
239
+ 'box',
240
+ ...COMMON_UNITS
241
+ ]
242
+ }
243
+ ]
244
+ }
245
+ }
246
+ });
247
+ function cn(...inputs) {
248
+ return twMerge(clsx(inputs));
249
+ }
250
+ export { cn };
@@ -0,0 +1,4 @@
1
+ export declare function objectEntries<T extends object>(obj: T): [keyof T & string, T[keyof T & string]][];
2
+ export declare function objectKeys<T extends object>(obj: T): (keyof T & string)[];
3
+ export declare function objectValues<T extends object>(obj: T): T[keyof T & string][];
4
+ export declare function objectFromEntries<T extends object>(entries: [keyof T & string, T[keyof T & string]][]): T;
@@ -0,0 +1,13 @@
1
+ function objectEntries(obj) {
2
+ return Object.entries(obj);
3
+ }
4
+ function objectKeys(obj) {
5
+ return Object.keys(obj);
6
+ }
7
+ function objectValues(obj) {
8
+ return Object.values(obj);
9
+ }
10
+ function objectFromEntries(entries) {
11
+ return Object.fromEntries(entries);
12
+ }
13
+ export { objectEntries, objectFromEntries, objectKeys, objectValues };
@@ -1,4 +1,5 @@
1
1
  export { absoluteFullClasses, baseStyles, collapseAdjacentVariantBorders, dataFocusVisibleClasses, focusVisibleClasses, groupDataFocusVisibleClasses, hiddenInputClasses, ringClasses, translateCenterClasses, } from './classes';
2
+ export { cn } from './cn';
2
3
  export * from './detect';
3
4
  export * from './input-classes';
4
5
  export { colorVariants } from './variants';
@@ -1,5 +1,6 @@
1
1
  import { absoluteFullClasses, baseStyles, collapseAdjacentVariantBorders, dataFocusVisibleClasses, focusVisibleClasses, groupDataFocusVisibleClasses, hiddenInputClasses, ringClasses, translateCenterClasses } from "./classes.js";
2
+ import { cn } from "./cn.js";
2
3
  import { colorVariants } from "./variants.js";
3
4
  export * from "./detect.js";
4
5
  export * from "./input-classes.js";
5
- export { absoluteFullClasses, baseStyles, collapseAdjacentVariantBorders, colorVariants, dataFocusVisibleClasses, focusVisibleClasses, groupDataFocusVisibleClasses, hiddenInputClasses, ringClasses, translateCenterClasses };
6
+ export { absoluteFullClasses, baseStyles, cn, collapseAdjacentVariantBorders, colorVariants, dataFocusVisibleClasses, focusVisibleClasses, groupDataFocusVisibleClasses, hiddenInputClasses, ringClasses, translateCenterClasses };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-react",
3
- "version": "0.5.1-beta.8",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -38,8 +38,8 @@
38
38
  "@rslib/core": "^0.12.3",
39
39
  "@types/react": "^19.1.10",
40
40
  "react": "^19.1.0",
41
- "@particle-network/lintstaged-config": "0.1.0",
42
- "@particle-network/eslint-config": "0.3.0"
41
+ "@particle-network/eslint-config": "0.3.0",
42
+ "@particle-network/lintstaged-config": "0.1.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=16.9.0",
@@ -52,8 +52,8 @@
52
52
  "react-aria-components": "^1.14.0",
53
53
  "values.js": "^2.1.1",
54
54
  "zustand": "^5.0.8",
55
- "@particle-network/icons": "0.5.1-beta.4",
56
- "@particle-network/ui-shared": "0.4.1-beta.3"
55
+ "@particle-network/icons": "0.6.0",
56
+ "@particle-network/ui-shared": "0.5.0"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "rslib build",