@particle-network/ui-react 0.4.0-beta.9 → 0.4.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/components/UXAutocomplete/index.d.ts +5 -0
- package/dist/components/UXAutocomplete/index.js +72 -0
- package/dist/components/UXButton/button-theme.js +15 -23
- package/dist/components/UXButton/use-button.js +2 -1
- package/dist/components/UXCheckbox/checkbox.extend.js +3 -3
- package/dist/components/UXDatePicker/index.js +1 -1
- package/dist/components/UXDateRangePicker/index.js +1 -1
- package/dist/components/UXDivider/divider.extend.d.ts +2 -2
- package/dist/components/UXDrawer/index.d.ts +9 -0
- package/dist/components/UXDrawer/index.js +89 -0
- package/dist/components/UXEmpty/index.d.ts +2 -1
- package/dist/components/UXEmpty/index.js +8 -2
- package/dist/components/UXHint/index.js +1 -1
- package/dist/components/UXInput/index.d.ts +33 -33
- package/dist/components/UXInput/input.extend.d.ts +33 -33
- package/dist/components/UXModal/index.d.ts +1 -1
- package/dist/components/UXModal/index.js +7 -6
- package/dist/components/UXSelect/index.js +2 -2
- package/dist/components/UXSwitch/index.d.ts +22 -22
- package/dist/components/UXSwitch/switch.extend.d.ts +22 -22
- package/dist/components/UXTable/index.d.ts +19 -19
- package/dist/components/UXTable/table.extend.d.ts +19 -19
- package/dist/components/UXThemeSwitch/index.d.ts +0 -1
- package/dist/components/UXThemeSwitch/index.js +0 -1
- package/dist/components/UXThemeSwitch/theme-item.d.ts +1 -1
- package/dist/components/UXThemeSwitch/theme-item.js +4 -5
- package/dist/components/UXThemeSwitch/theme-switch.d.ts +3 -3
- package/dist/components/UXThemeSwitch/theme-switch.js +133 -100
- package/dist/components/UXThemeSwitch/use-color-scheme.d.ts +1 -1
- package/dist/components/UXThemeSwitch/use-color-scheme.js +3 -3
- package/dist/components/UXThemeSwitch/use-theme-color.js +3 -3
- package/dist/components/UXThemeSwitch/use-theme-store.d.ts +5 -20
- package/dist/components/UXThemeSwitch/use-theme-store.js +14 -28
- package/dist/components/UXThemeSwitch/use-theme.d.ts +7 -12
- package/dist/components/UXThemeSwitch/use-theme.js +71 -80
- package/dist/components/UXToast/index.d.ts +7 -4
- package/dist/components/UXToast/index.js +21 -17
- package/dist/components/UXTooltip/tooltip.extend.d.ts +21 -21
- package/dist/components/UXTooltip/tooltip.extend.js +2 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/hooks/useI18n.d.ts +6 -2
- package/dist/hooks/useI18n.js +15 -7
- package/dist/utils/detect.js +1 -2
- package/dist/utils/input-classes.d.ts +3 -0
- package/dist/utils/input-classes.js +3 -0
- package/dist/utils/variants.js +16 -16
- package/package.json +5 -6
- package/tailwind-preset.js +205 -109
- package/dist/components/UXThemeSwitch/theme-data.d.ts +0 -12
- package/dist/components/UXThemeSwitch/theme-data.js +0 -340
- package/dist/icons/index.d.ts +0 -14
- package/dist/icons/index.js +0 -120
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ToastProvider, addToast, closeAll, closeToast } from "@heroui/toast";
|
|
2
|
+
import { ToastProvider, addToast, closeAll, closeToast, getToastQueue, isToastClosing } from "@heroui/toast";
|
|
3
3
|
import CircleCheckIcon from "@particle-network/icons/web/CircleCheckIcon";
|
|
4
4
|
import CircleCloseIcon from "@particle-network/icons/web/CircleCloseIcon";
|
|
5
5
|
import CloseIcon from "@particle-network/icons/web/CloseIcon";
|
|
@@ -9,33 +9,35 @@ const UXToastProvider = ()=>/*#__PURE__*/ jsx(ToastProvider, {
|
|
|
9
9
|
disableAnimation: true,
|
|
10
10
|
placement: "top-center",
|
|
11
11
|
maxVisibleToasts: 4,
|
|
12
|
-
toastOffset: 40,
|
|
13
12
|
toastProps: {
|
|
14
13
|
timeout: 4000
|
|
15
14
|
},
|
|
16
15
|
regionProps: {
|
|
17
|
-
className: 'items-center
|
|
16
|
+
className: 'items-center mt-12 p-0 gap-2'
|
|
18
17
|
}
|
|
19
18
|
});
|
|
20
19
|
const getIcon = (type)=>{
|
|
21
20
|
if ('success' === type) return /*#__PURE__*/ jsx(CircleCheckIcon, {
|
|
22
|
-
size: 18
|
|
21
|
+
size: 18,
|
|
22
|
+
color: "success"
|
|
23
23
|
});
|
|
24
24
|
if ('error' === type) return /*#__PURE__*/ jsx(CircleCloseIcon, {
|
|
25
|
-
size: 18
|
|
25
|
+
size: 18,
|
|
26
|
+
color: "danger"
|
|
26
27
|
});
|
|
27
28
|
if ('loading' === type) return /*#__PURE__*/ jsx(UXSpinner, {
|
|
29
|
+
color: "primary",
|
|
28
30
|
size: 18
|
|
29
31
|
});
|
|
30
32
|
return null;
|
|
31
33
|
};
|
|
32
34
|
const show = (props)=>{
|
|
33
|
-
const { type, hideCloseButton, variant, classNames, description, ...toastProps } = props ?? {};
|
|
34
|
-
const { base, description: descriptionClassName, icon, loadingComponent, content, closeButton, ...restClassNames } = classNames ?? {};
|
|
35
|
+
const { type, hideCloseButton, icon, variant, classNames, description, ...toastProps } = props ?? {};
|
|
36
|
+
const { base, description: descriptionClassName, icon: iconClassName, loadingComponent, content, closeButton, ...restClassNames } = classNames ?? {};
|
|
35
37
|
return addToast({
|
|
36
38
|
classNames: {
|
|
37
39
|
base: [
|
|
38
|
-
'bg-tertiary rounded-xl px-3.5 py-3 shadow-none border-none !w-fit max-w-[90vw] md:max-w-[400px]',
|
|
40
|
+
'bg-tertiary rounded-xl px-3.5 py-3 shadow-none border-none !w-fit max-w-[90vw] md:max-w-[400px] m-0',
|
|
39
41
|
!hideCloseButton && 'pr-12',
|
|
40
42
|
'flat' === variant && 'success' === type && 'bg-[#0E3728]',
|
|
41
43
|
'flat' === variant && 'error' === type && 'bg-[#501D1D]',
|
|
@@ -48,11 +50,8 @@ const show = (props)=>{
|
|
|
48
50
|
descriptionClassName
|
|
49
51
|
],
|
|
50
52
|
icon: [
|
|
51
|
-
'
|
|
52
|
-
|
|
53
|
-
'error' === type && 'text-danger',
|
|
54
|
-
'loading' === type && 'text-primary',
|
|
55
|
-
icon
|
|
53
|
+
'h-fit w-fit shrink-0',
|
|
54
|
+
iconClassName
|
|
56
55
|
],
|
|
57
56
|
loadingComponent: [
|
|
58
57
|
'text-primary h-5 w-5',
|
|
@@ -70,18 +69,24 @@ const show = (props)=>{
|
|
|
70
69
|
...restClassNames
|
|
71
70
|
},
|
|
72
71
|
description,
|
|
73
|
-
icon: getIcon(type),
|
|
72
|
+
icon: icon ?? getIcon(type),
|
|
73
|
+
hideIcon: !icon && !getIcon(type),
|
|
74
74
|
closeIcon: /*#__PURE__*/ jsx(CloseIcon, {
|
|
75
75
|
className: 'flat' === variant ? 'text-white' : 'text-foreground'
|
|
76
76
|
}),
|
|
77
77
|
loadingComponent: /*#__PURE__*/ jsx(UXSpinner, {
|
|
78
78
|
size: 18
|
|
79
79
|
}),
|
|
80
|
-
timeout: 'loading' === type ? 1 / 0 :
|
|
80
|
+
timeout: 'loading' === type ? 1 / 0 : 4000,
|
|
81
81
|
...toastProps
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
84
|
const toast = {
|
|
85
|
+
info: (message, props)=>show({
|
|
86
|
+
type: 'info',
|
|
87
|
+
description: message,
|
|
88
|
+
...props
|
|
89
|
+
}),
|
|
85
90
|
success: (message, props)=>show({
|
|
86
91
|
type: 'success',
|
|
87
92
|
description: message,
|
|
@@ -95,11 +100,10 @@ const toast = {
|
|
|
95
100
|
loading: (message, props)=>show({
|
|
96
101
|
type: 'loading',
|
|
97
102
|
description: message,
|
|
98
|
-
timeout: 1 / 0,
|
|
99
103
|
...props
|
|
100
104
|
}),
|
|
101
105
|
show,
|
|
102
106
|
closeAll: closeAll,
|
|
103
107
|
close: closeToast
|
|
104
108
|
};
|
|
105
|
-
export { UXToastProvider, toast };
|
|
109
|
+
export { UXToastProvider, addToast, closeAll, closeToast, getToastQueue, isToastClosing, toast };
|
|
@@ -39,7 +39,7 @@ declare const ExtendedTooltip: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
39
39
|
vocab?: string | undefined;
|
|
40
40
|
autoCorrect?: string | undefined;
|
|
41
41
|
autoSave?: string | undefined;
|
|
42
|
-
color?: "default" | "
|
|
42
|
+
color?: "default" | "success" | "foreground" | "secondary" | "primary" | "danger" | "warning" | undefined;
|
|
43
43
|
itemProp?: string | undefined;
|
|
44
44
|
itemScope?: boolean | undefined;
|
|
45
45
|
itemType?: string | undefined;
|
|
@@ -282,33 +282,33 @@ declare const ExtendedTooltip: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
282
282
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
283
283
|
size?: "sm" | "md" | "lg" | undefined;
|
|
284
284
|
radius?: "sm" | "md" | "lg" | "none" | "full" | undefined;
|
|
285
|
-
|
|
286
|
-
key?: import("react").Key | null | undefined;
|
|
287
|
-
disableAnimation?: boolean | undefined;
|
|
285
|
+
classNames?: import("@heroui/theme").SlotsToClasses<"content" | "base" | "arrow"> | undefined;
|
|
288
286
|
isDisabled?: boolean | undefined;
|
|
289
|
-
|
|
287
|
+
disableAnimation?: boolean | undefined;
|
|
290
288
|
as?: import("@heroui/system-rsc").As<any> | undefined;
|
|
289
|
+
key?: import("react").Key | null | undefined;
|
|
290
|
+
onOpenChange?: ((isOpen: boolean) => void) | undefined;
|
|
291
|
+
shouldCloseOnBlur?: boolean | undefined;
|
|
291
292
|
onClose?: ((() => void) & (() => void)) | undefined;
|
|
292
|
-
|
|
293
|
+
isOpen?: boolean | undefined;
|
|
293
294
|
placement?: import("@heroui/aria-utils").OverlayPlacement | undefined;
|
|
294
|
-
|
|
295
|
-
|
|
295
|
+
containerPadding?: number | undefined;
|
|
296
|
+
offset?: number | undefined;
|
|
297
|
+
crossOffset?: number | undefined;
|
|
298
|
+
shouldFlip?: boolean | undefined;
|
|
299
|
+
isKeyboardDismissDisabled?: boolean | undefined;
|
|
300
|
+
shouldCloseOnInteractOutside?: ((element: Element) => boolean) | undefined;
|
|
301
|
+
isDismissable?: boolean | undefined;
|
|
302
|
+
showArrow?: boolean | undefined;
|
|
303
|
+
updatePositionDeps?: any[] | undefined;
|
|
304
|
+
shadow?: "sm" | "md" | "lg" | "none" | undefined;
|
|
296
305
|
triggerScaleOnOpen?: boolean | undefined;
|
|
297
306
|
isTriggerDisabled?: boolean | undefined;
|
|
298
|
-
|
|
299
|
-
trigger?: "focus" | undefined;
|
|
307
|
+
motionProps?: Omit<import("framer-motion").HTMLMotionProps<"div">, "ref"> | undefined;
|
|
300
308
|
portalContainer?: Element | undefined;
|
|
301
|
-
updatePositionDeps?: any[] | undefined;
|
|
302
|
-
isOpen?: boolean | undefined;
|
|
303
|
-
isDismissable?: boolean | undefined;
|
|
304
|
-
shouldCloseOnBlur?: boolean | undefined;
|
|
305
|
-
isKeyboardDismissDisabled?: boolean | undefined;
|
|
306
|
-
shouldCloseOnInteractOutside?: ((element: Element) => boolean) | undefined;
|
|
307
309
|
defaultOpen?: boolean | undefined;
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
shouldFlip?: boolean | undefined;
|
|
312
|
-
containerPadding?: number | undefined;
|
|
310
|
+
trigger?: "focus" | undefined;
|
|
311
|
+
delay?: number | undefined;
|
|
312
|
+
closeDelay?: number | undefined;
|
|
313
313
|
}, "ref"> & import("react").RefAttributes<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>>;
|
|
314
314
|
export default ExtendedTooltip;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './layout';
|
|
2
2
|
export * from './ProgressWrapper';
|
|
3
3
|
export * from './typography/Text';
|
|
4
|
+
export * from './UXAutocomplete';
|
|
4
5
|
export * from './UXButton';
|
|
5
6
|
export * from './UXCalendar';
|
|
6
7
|
export * from './UXCheckbox';
|
|
@@ -9,6 +10,7 @@ export * from './UXCopy';
|
|
|
9
10
|
export * from './UXDatePicker';
|
|
10
11
|
export * from './UXDateRangePicker';
|
|
11
12
|
export * from './UXDivider';
|
|
13
|
+
export * from './UXDrawer';
|
|
12
14
|
export * from './UXDropdown';
|
|
13
15
|
export * from './UXEmpty';
|
|
14
16
|
export * from './UXHint';
|
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./layout/index.js";
|
|
2
2
|
export * from "./ProgressWrapper/index.js";
|
|
3
3
|
export * from "./typography/Text.js";
|
|
4
|
+
export * from "./UXAutocomplete/index.js";
|
|
4
5
|
export * from "./UXButton/index.js";
|
|
5
6
|
export * from "./UXCalendar/index.js";
|
|
6
7
|
export * from "./UXCheckbox/index.js";
|
|
@@ -9,6 +10,7 @@ export * from "./UXCopy/index.js";
|
|
|
9
10
|
export * from "./UXDatePicker/index.js";
|
|
10
11
|
export * from "./UXDateRangePicker/index.js";
|
|
11
12
|
export * from "./UXDivider/index.js";
|
|
13
|
+
export * from "./UXDrawer/index.js";
|
|
12
14
|
export * from "./UXDropdown/index.js";
|
|
13
15
|
export * from "./UXEmpty/index.js";
|
|
14
16
|
export * from "./UXHint/index.js";
|
package/dist/hooks/useI18n.d.ts
CHANGED
|
@@ -10,14 +10,18 @@ export declare const useI18n: () => {
|
|
|
10
10
|
};
|
|
11
11
|
theme: {
|
|
12
12
|
title: string;
|
|
13
|
-
|
|
14
|
-
apply: string;
|
|
13
|
+
done: string;
|
|
15
14
|
font: {
|
|
16
15
|
title: string;
|
|
17
16
|
placeholder: string;
|
|
18
17
|
loading: string;
|
|
19
18
|
success: string;
|
|
20
19
|
error: string;
|
|
20
|
+
hint: string;
|
|
21
|
+
example: {
|
|
22
|
+
show: string;
|
|
23
|
+
hide: string;
|
|
24
|
+
};
|
|
21
25
|
};
|
|
22
26
|
};
|
|
23
27
|
};
|
package/dist/hooks/useI18n.js
CHANGED
|
@@ -11,14 +11,18 @@ const en = {
|
|
|
11
11
|
},
|
|
12
12
|
theme: {
|
|
13
13
|
title: 'Theme',
|
|
14
|
-
|
|
15
|
-
apply: 'Apply Theme',
|
|
14
|
+
done: 'Finish',
|
|
16
15
|
font: {
|
|
17
16
|
title: 'Custom Font',
|
|
18
17
|
placeholder: 'Enter Google Fonts URL or custom font URL',
|
|
19
18
|
loading: 'Loading font...',
|
|
20
19
|
success: 'Font loaded: ',
|
|
21
|
-
error: 'Failed to load font'
|
|
20
|
+
error: 'Failed to load font',
|
|
21
|
+
hint: 'Try Google Fonts: ',
|
|
22
|
+
example: {
|
|
23
|
+
show: 'Show example',
|
|
24
|
+
hide: 'Hide example'
|
|
25
|
+
}
|
|
22
26
|
}
|
|
23
27
|
}
|
|
24
28
|
};
|
|
@@ -34,14 +38,18 @@ const zh = {
|
|
|
34
38
|
},
|
|
35
39
|
theme: {
|
|
36
40
|
title: '主题',
|
|
37
|
-
|
|
38
|
-
apply: '应用主题',
|
|
41
|
+
done: '完成',
|
|
39
42
|
font: {
|
|
40
43
|
title: '自定义字体',
|
|
41
44
|
placeholder: '输入 Google Fonts 或自定义字体链接',
|
|
42
45
|
loading: '正在加载字体...',
|
|
43
|
-
success: '
|
|
44
|
-
error: '字体加载失败'
|
|
46
|
+
success: '已加载字体:',
|
|
47
|
+
error: '字体加载失败',
|
|
48
|
+
hint: '参考 Google Fonts: ',
|
|
49
|
+
example: {
|
|
50
|
+
show: '显示示例',
|
|
51
|
+
hide: '隐藏示例'
|
|
52
|
+
}
|
|
45
53
|
}
|
|
46
54
|
}
|
|
47
55
|
};
|
package/dist/utils/detect.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const hasLongWord = (text)=>{
|
|
2
2
|
if ('string' != typeof text) return false;
|
|
3
|
-
const englishWords = text.
|
|
4
|
-
if (!englishWords) return false;
|
|
3
|
+
const englishWords = text.split(' ');
|
|
5
4
|
return englishWords.some((word)=>word.length > 30);
|
|
6
5
|
};
|
|
7
6
|
export { hasLongWord };
|
|
@@ -67,18 +67,21 @@ export declare const inputClasses: {
|
|
|
67
67
|
sm: {
|
|
68
68
|
label: string;
|
|
69
69
|
inputWrapper: string;
|
|
70
|
+
innerWrapper: string;
|
|
70
71
|
input: string;
|
|
71
72
|
clearButton: string;
|
|
72
73
|
};
|
|
73
74
|
md: {
|
|
74
75
|
label: string;
|
|
75
76
|
inputWrapper: string;
|
|
77
|
+
innerWrapper: string;
|
|
76
78
|
input: string;
|
|
77
79
|
clearButton: string;
|
|
78
80
|
};
|
|
79
81
|
lg: {
|
|
80
82
|
label: string;
|
|
81
83
|
inputWrapper: string;
|
|
84
|
+
innerWrapper: string;
|
|
82
85
|
input: string;
|
|
83
86
|
clearButton: string;
|
|
84
87
|
};
|
|
@@ -76,18 +76,21 @@ const inputClasses = {
|
|
|
76
76
|
sm: {
|
|
77
77
|
label: 'text-tiny text-foreground-300',
|
|
78
78
|
inputWrapper: 'text-tiny h-6 min-h-6 px-2.5 rounded-small',
|
|
79
|
+
innerWrapper: '[&>svg]:size-4',
|
|
79
80
|
input: 'text-tiny',
|
|
80
81
|
clearButton: 'text-medium'
|
|
81
82
|
},
|
|
82
83
|
md: {
|
|
83
84
|
label: 'text-tiny text-foreground-300',
|
|
84
85
|
inputWrapper: 'text-tiny h-[30px] min-h-[30px] rounded-small px-2.5',
|
|
86
|
+
innerWrapper: '[&>svg]:size-[18px]',
|
|
85
87
|
input: 'text-tiny',
|
|
86
88
|
clearButton: 'text-large'
|
|
87
89
|
},
|
|
88
90
|
lg: {
|
|
89
91
|
label: 'text-small text-foreground-300',
|
|
90
92
|
inputWrapper: 'text-small h-11 min-h-11 rounded-medium px-2.5',
|
|
93
|
+
innerWrapper: '[&>svg]:size-6',
|
|
91
94
|
input: 'text-small',
|
|
92
95
|
clearButton: 'text-large'
|
|
93
96
|
}
|
package/dist/utils/variants.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const solid = {
|
|
2
2
|
default: 'bg-background-200 text-foreground',
|
|
3
3
|
primary: 'bg-primary text-primary-foreground',
|
|
4
|
-
secondary: 'bg-background-200 text-
|
|
4
|
+
secondary: 'bg-background-200 text-secondary',
|
|
5
5
|
success: 'bg-success text-success-foreground',
|
|
6
6
|
warning: 'bg-warning text-warning-foreground',
|
|
7
7
|
danger: 'bg-danger text-danger-foreground',
|
|
@@ -22,9 +22,9 @@ const shadow = {
|
|
|
22
22
|
bearish: 'shadow-lg shadow-bearish/40 bg-bearish text-foreground'
|
|
23
23
|
};
|
|
24
24
|
const bordered = {
|
|
25
|
-
default: 'bg-transparent border-foreground
|
|
25
|
+
default: 'bg-transparent border-foreground text-foreground',
|
|
26
26
|
primary: 'bg-transparent border-primary text-primary',
|
|
27
|
-
secondary: 'bg-transparent border-
|
|
27
|
+
secondary: 'bg-transparent border-secondary text-secondary',
|
|
28
28
|
success: 'bg-transparent border-success text-success',
|
|
29
29
|
warning: 'bg-transparent border-warning text-warning',
|
|
30
30
|
danger: 'bg-transparent border-danger text-danger',
|
|
@@ -33,9 +33,9 @@ const bordered = {
|
|
|
33
33
|
bearish: 'bg-transparent border-bearish text-bearish'
|
|
34
34
|
};
|
|
35
35
|
const flat = {
|
|
36
|
-
default: 'bg-background-300 text-
|
|
36
|
+
default: 'bg-background-300 text-foreground',
|
|
37
37
|
primary: 'bg-primary/20 text-primary',
|
|
38
|
-
secondary: 'bg-background-300 text-
|
|
38
|
+
secondary: 'bg-background-300 text-secondary',
|
|
39
39
|
success: 'bg-success/20 text-success',
|
|
40
40
|
warning: 'bg-warning/20 text-warning',
|
|
41
41
|
danger: 'bg-danger/20 text-danger',
|
|
@@ -55,15 +55,15 @@ const faded = {
|
|
|
55
55
|
bearish: 'border-bearish bg-bearish text-foreground'
|
|
56
56
|
};
|
|
57
57
|
const light = {
|
|
58
|
-
default: 'bg-transparent text-
|
|
59
|
-
primary: 'bg-transparent text-primary',
|
|
60
|
-
secondary: 'bg-transparent text-
|
|
61
|
-
success: 'bg-transparent text-success',
|
|
62
|
-
warning: 'bg-transparent text-warning',
|
|
63
|
-
danger: 'bg-transparent text-danger',
|
|
64
|
-
foreground: 'bg-transparent text-foreground',
|
|
65
|
-
bullish: 'bg-transparent text-bullish',
|
|
66
|
-
bearish: 'bg-transparent text-bearish'
|
|
58
|
+
default: 'bg-transparent text-foreground data-[hover=true]:bg-background-200/50',
|
|
59
|
+
primary: 'bg-transparent text-primary data-[hover=true]:bg-primary/20',
|
|
60
|
+
secondary: 'bg-transparent text-secondary data-[hover=true]:bg-background-200/50',
|
|
61
|
+
success: 'bg-transparent text-success data-[hover=true]:bg-success/20',
|
|
62
|
+
warning: 'bg-transparent text-warning data-[hover=true]:bg-warning/20',
|
|
63
|
+
danger: 'bg-transparent text-danger data-[hover=true]:bg-danger/20',
|
|
64
|
+
foreground: 'bg-transparent text-foreground data-[hover=true]:bg-foreground/20',
|
|
65
|
+
bullish: 'bg-transparent text-bullish data-[hover=true]:bg-bullish/20',
|
|
66
|
+
bearish: 'bg-transparent text-bearish data-[hover=true]:bg-bearish/20'
|
|
67
67
|
};
|
|
68
68
|
const ghost = {
|
|
69
69
|
default: 'border-default text-default-foreground',
|
|
@@ -77,9 +77,9 @@ const ghost = {
|
|
|
77
77
|
bearish: 'border-bearish text-foreground hover:!bg-bearish'
|
|
78
78
|
};
|
|
79
79
|
const variants_text = {
|
|
80
|
-
default: 'bg-transparent text-
|
|
80
|
+
default: 'bg-transparent text-foreground',
|
|
81
81
|
primary: 'bg-transparent text-primary',
|
|
82
|
-
secondary: 'bg-transparent text-
|
|
82
|
+
secondary: 'bg-transparent text-secondary',
|
|
83
83
|
success: 'bg-transparent text-success',
|
|
84
84
|
warning: 'bg-transparent text-warning',
|
|
85
85
|
danger: 'bg-transparent text-danger',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-network/ui-react",
|
|
3
|
-
"version": "0.4.0
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -37,8 +37,7 @@
|
|
|
37
37
|
"@rsbuild/plugin-react": "^1.3.5",
|
|
38
38
|
"@rslib/core": "^0.12.3",
|
|
39
39
|
"@types/react": "^19.1.10",
|
|
40
|
-
"react": "^19.1.
|
|
41
|
-
"typescript": "^5.8.3",
|
|
40
|
+
"react": "^19.1.2",
|
|
42
41
|
"@particle-network/lintstaged-config": "0.1.0",
|
|
43
42
|
"@particle-network/eslint-config": "0.3.0"
|
|
44
43
|
},
|
|
@@ -50,13 +49,13 @@
|
|
|
50
49
|
"ahooks": "^3.9.4",
|
|
51
50
|
"copy-to-clipboard": "^3.3.3",
|
|
52
51
|
"zustand": "^5.0.8",
|
|
53
|
-
"@particle-network/icons": "0.4.0
|
|
54
|
-
"@particle-network/ui-shared": "0.3.0
|
|
52
|
+
"@particle-network/icons": "0.4.0",
|
|
53
|
+
"@particle-network/ui-shared": "0.3.0"
|
|
55
54
|
},
|
|
56
55
|
"scripts": {
|
|
57
56
|
"build": "rslib build",
|
|
58
57
|
"dev": "rslib build --watch",
|
|
59
|
-
"type-check": "npx
|
|
58
|
+
"type-check": "npx tsgo --noEmit -p ./tsconfig.json",
|
|
60
59
|
"lint": "eslint . --no-error-on-unmatched-pattern --quiet",
|
|
61
60
|
"lint:fix": "eslint . --fix --no-error-on-unmatched-pattern --quiet",
|
|
62
61
|
"clean": "rm -rf .turbo node_modules dist"
|