@particle-network/ui-react 0.5.1-beta.6 → 0.5.1-beta.8

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.
@@ -381,13 +381,13 @@ const button_theme_button = tv({
381
381
  isSelected: true,
382
382
  color: 'default',
383
383
  variant: 'solid',
384
- class: 'bg-tertiary text-tertiary-foreground'
384
+ class: 'bg-cursor text-cursor-foreground'
385
385
  },
386
386
  {
387
387
  isSelected: true,
388
388
  color: 'secondary',
389
389
  variant: 'solid',
390
- class: 'bg-tertiary text-tertiary-foreground'
390
+ class: 'bg-cursor text-cursor-foreground'
391
391
  },
392
392
  {
393
393
  isSelected: true,
@@ -7,7 +7,7 @@ const ExtendedCheckbox = extendVariants(Checkbox, {
7
7
  wrapper: 'after:bg-primary after:text-primary-foreground text-primary-foreground'
8
8
  },
9
9
  secondary: {
10
- wrapper: 'after:bg-tertiary after:text-tertiary-foreground text-tertiary-foreground'
10
+ wrapper: 'after:bg-cursor after:text-cursor-foreground text-cursor-foreground'
11
11
  },
12
12
  success: {
13
13
  wrapper: 'after:bg-success after:text-success-foreground text-success-foreground'
@@ -5,7 +5,7 @@ export declare const UXInput: React.ForwardRefExoticComponent<(Omit<Omit<import(
5
5
  as?: import("@heroui/system-rsc").As<any> | undefined;
6
6
  } & {
7
7
  variant?: "flat" | "bordered" | undefined;
8
- textAlign?: "center" | "left" | "right" | undefined;
8
+ textAlign?: "right" | "left" | "center" | undefined;
9
9
  isColorText?: boolean | undefined;
10
10
  color?: "secondary" | "primary" | "success" | "warning" | "danger" | "bullish" | "bearish" | "default" | undefined;
11
11
  size?: "sm" | "md" | "lg" | undefined;
@@ -21,7 +21,7 @@ export declare const UXInput: React.ForwardRefExoticComponent<(Omit<Omit<import(
21
21
  as?: import("@heroui/system-rsc").As<any> | undefined;
22
22
  } & {
23
23
  variant?: "flat" | "bordered" | undefined;
24
- textAlign?: "center" | "left" | "right" | undefined;
24
+ textAlign?: "right" | "left" | "center" | undefined;
25
25
  isColorText?: boolean | undefined;
26
26
  color?: "secondary" | "primary" | "success" | "warning" | "danger" | "bullish" | "bearish" | "default" | undefined;
27
27
  size?: "sm" | "md" | "lg" | undefined;
@@ -2,7 +2,7 @@ declare const ExtendedInput: import("react").ForwardRefExoticComponent<(Omit<imp
2
2
  as?: import("@heroui/system-rsc").As<any> | undefined;
3
3
  } & {
4
4
  variant?: "flat" | "bordered" | undefined;
5
- textAlign?: "center" | "left" | "right" | undefined;
5
+ textAlign?: "right" | "left" | "center" | undefined;
6
6
  isColorText?: boolean | undefined;
7
7
  color?: "secondary" | "primary" | "success" | "warning" | "danger" | "bullish" | "bearish" | "default" | undefined;
8
8
  size?: "sm" | "md" | "lg" | undefined;
@@ -18,7 +18,7 @@ declare const ExtendedInput: import("react").ForwardRefExoticComponent<(Omit<imp
18
18
  as?: import("@heroui/system-rsc").As<any> | undefined;
19
19
  } & {
20
20
  variant?: "flat" | "bordered" | undefined;
21
- textAlign?: "center" | "left" | "right" | undefined;
21
+ textAlign?: "right" | "left" | "center" | undefined;
22
22
  isColorText?: boolean | undefined;
23
23
  color?: "secondary" | "primary" | "success" | "warning" | "danger" | "bullish" | "bearish" | "default" | undefined;
24
24
  size?: "sm" | "md" | "lg" | undefined;
@@ -40,21 +40,21 @@ const ExtendedRadio = extendVariants(Radio, {
40
40
  sm: {
41
41
  wrapper: 'w-2.5 h-2.5 border-small',
42
42
  control: 'w-1.5 h-1.5',
43
- labelWrapper: 'ml-sm',
43
+ labelWrapper: 'ms-1',
44
44
  label: '!text-body3 font-medium',
45
45
  description: 'text-tiny text-foreground-100'
46
46
  },
47
47
  md: {
48
48
  wrapper: 'w-3 h-3 border-small',
49
49
  control: 'w-1.5 h-1.5',
50
- labelWrapper: 'ml-2',
50
+ labelWrapper: 'ms-1',
51
51
  label: '!text-body2 font-medium',
52
52
  description: 'text-tiny text-foreground-100'
53
53
  },
54
54
  lg: {
55
55
  wrapper: 'w-[14px] h-[14px] border-small',
56
56
  control: 'w-2 h-2',
57
- labelWrapper: 'ml-2',
57
+ labelWrapper: 'ms-1',
58
58
  label: '!text-body1 font-medium',
59
59
  description: 'text-small text-foreground-100'
60
60
  }
@@ -16,7 +16,7 @@ export declare const UXTable: import("@heroui/system-rsc").InternalForwardRefRen
16
16
  isSelectable?: boolean | undefined;
17
17
  isMultiSelectable?: boolean | undefined;
18
18
  fullWidth?: boolean | undefined;
19
- align?: "center" | "start" | "end" | undefined;
19
+ align?: "start" | "end" | "center" | undefined;
20
20
  }, "ref"> | Omit<import("@heroui/system-rsc").OmitCommonProps<Omit<Omit<any, "ref">, never>, keyof import("@heroui/table").TableProps<object>> & import("@heroui/table").TableProps<object> & {
21
21
  as?: import("@heroui/system-rsc").As<any> | undefined;
22
22
  } & {
@@ -32,6 +32,6 @@ export declare const UXTable: import("@heroui/system-rsc").InternalForwardRefRen
32
32
  isSelectable?: boolean | undefined;
33
33
  isMultiSelectable?: boolean | undefined;
34
34
  fullWidth?: boolean | undefined;
35
- align?: "center" | "start" | "end" | undefined;
35
+ align?: "start" | "end" | "center" | undefined;
36
36
  }, "ref">) & React.RefAttributes<HTMLElement>, never>;
37
37
  export { TableBody as UXTableBody, TableCell as UXTableCell, TableColumn as UXTableColumn, TableHeader as UXTableHeader, TableRow as UXTableRow, } from '@heroui/table';
@@ -13,7 +13,7 @@ declare const ExtendedTable: import("react").ForwardRefExoticComponent<(Omit<imp
13
13
  isSelectable?: boolean | undefined;
14
14
  isMultiSelectable?: boolean | undefined;
15
15
  fullWidth?: boolean | undefined;
16
- align?: "center" | "start" | "end" | undefined;
16
+ align?: "start" | "end" | "center" | undefined;
17
17
  }, "ref"> | Omit<import("@heroui/system-rsc").OmitCommonProps<Omit<Omit<any, "ref">, never>, keyof import("@heroui/table").TableProps<object>> & import("@heroui/table").TableProps<object> & {
18
18
  as?: import("@heroui/system-rsc").As<any> | undefined;
19
19
  } & {
@@ -29,6 +29,6 @@ declare const ExtendedTable: import("react").ForwardRefExoticComponent<(Omit<imp
29
29
  isSelectable?: boolean | undefined;
30
30
  isMultiSelectable?: boolean | undefined;
31
31
  fullWidth?: boolean | undefined;
32
- align?: "center" | "start" | "end" | undefined;
32
+ align?: "start" | "end" | "center" | undefined;
33
33
  }, "ref">) & import("react").RefAttributes<HTMLElement>>;
34
34
  export default ExtendedTable;
@@ -252,9 +252,9 @@ const tabsClasses = {
252
252
  color: 'default',
253
253
  class: {
254
254
  cursor: [
255
- 'bg-tertiary dark:bg-tertiary'
255
+ 'bg-cursor dark:bg-cursor'
256
256
  ],
257
- tabContent: 'group-data-[selected=true]:text-tertiary-foreground'
257
+ tabContent: 'group-data-[selected=true]:text-cursor-foreground'
258
258
  }
259
259
  },
260
260
  {
@@ -264,9 +264,9 @@ const tabsClasses = {
264
264
  color: 'default',
265
265
  class: {
266
266
  cursor: [
267
- 'bg-tertiary'
267
+ 'bg-cursor'
268
268
  ],
269
- tabContent: 'group-data-[selected=true]:text-tertiary-foreground'
269
+ tabContent: 'group-data-[selected=true]:text-cursor-foreground'
270
270
  }
271
271
  },
272
272
  {
@@ -21,6 +21,7 @@ const COLOR_CATEGORIES = {
21
21
  'bg-400',
22
22
  'bg-300',
23
23
  'bg-200',
24
+ 'cursor',
24
25
  'overlay',
25
26
  'divider'
26
27
  ],
@@ -41,7 +42,8 @@ const COLOR_CATEGORIES = {
41
42
  'success',
42
43
  'danger',
43
44
  'warning',
44
- 'alert'
45
+ 'alert',
46
+ 'blue'
45
47
  ]
46
48
  };
47
49
  const CustomThemeConfig = ()=>{
@@ -24,7 +24,7 @@ const useThemeStore = create()(persist((set)=>({
24
24
  })
25
25
  }), {
26
26
  name: 'ux-preference-theme',
27
- version: 0,
27
+ version: 1,
28
28
  storage: createJSONStorage(()=>'undefined' != typeof window ? window.localStorage : {}),
29
29
  partialize: (state)=>({
30
30
  theme: state.theme,
@@ -46,6 +46,16 @@ const getCSSProperties = (theme)=>{
46
46
  ]
47
47
  ],
48
48
  warning: generateThemeColor(colorVariables.warning, 'warning', theme.colorScheme).cssVariables,
49
+ blue: [
50
+ [
51
+ '--heroui-blue',
52
+ colorVariables.blue
53
+ ],
54
+ [
55
+ '--heroui-blue-foreground',
56
+ readableColor(colorVariables.blue)
57
+ ]
58
+ ],
49
59
  'bg-default': [
50
60
  [
51
61
  '--heroui-background',
@@ -74,6 +84,16 @@ const getCSSProperties = (theme)=>{
74
84
  colorVariables['bg-400']
75
85
  ]
76
86
  ],
87
+ cursor: [
88
+ [
89
+ '--heroui-cursor',
90
+ colorVariables.cursor
91
+ ],
92
+ [
93
+ '--heroui-cursor-foreground',
94
+ readableColor(colorVariables.cursor)
95
+ ]
96
+ ],
77
97
  overlay: [
78
98
  [
79
99
  '--heroui-overlay',
@@ -37,14 +37,14 @@ const show = (props)=>{
37
37
  return addToast({
38
38
  classNames: {
39
39
  base: [
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',
40
+ 'bg-cursor rounded-xl px-3.5 py-3 shadow-none border-none !w-fit max-w-[90vw] md:max-w-[400px] m-0',
41
41
  !hideCloseButton && 'pr-12',
42
42
  'flat' === variant && 'success' === type && 'bg-[#0E3728]',
43
43
  'flat' === variant && 'error' === type && 'bg-[#501D1D]',
44
44
  base
45
45
  ],
46
46
  description: [
47
- 'text-tertiary-foreground text-xs font-medium me-0 leading-4 line-clamp-4',
47
+ 'text-cursor-foreground text-xs font-medium me-0 leading-4 line-clamp-4',
48
48
  'flat' === variant && 'text-white',
49
49
  hasLongWord(description) && 'break-all',
50
50
  descriptionClassName
@@ -72,7 +72,7 @@ const show = (props)=>{
72
72
  icon: icon ?? getIcon(type),
73
73
  hideIcon: !icon && !getIcon(type),
74
74
  closeIcon: /*#__PURE__*/ jsx(CloseIcon, {
75
- className: 'flat' === variant ? 'text-white' : 'text-tertiary-foreground'
75
+ className: 'flat' === variant ? 'text-white' : 'text-cursor-foreground'
76
76
  }),
77
77
  loadingComponent: /*#__PURE__*/ jsx(UXSpinner, {
78
78
  size: 18
@@ -9,6 +9,132 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
9
9
  fixed: string;
10
10
  sticky: string;
11
11
  };
12
+ top: {
13
+ px: string;
14
+ 0: string;
15
+ 1: string;
16
+ 2: string;
17
+ 3: string;
18
+ 4: string;
19
+ 5: string;
20
+ 6: string;
21
+ 7: string;
22
+ 8: string;
23
+ 9: string;
24
+ 10: string;
25
+ xs: string;
26
+ sm: string;
27
+ md: string;
28
+ lg: string;
29
+ };
30
+ right: {
31
+ px: string;
32
+ 0: string;
33
+ 1: string;
34
+ 2: string;
35
+ 3: string;
36
+ 4: string;
37
+ 5: string;
38
+ 6: string;
39
+ 7: string;
40
+ 8: string;
41
+ 9: string;
42
+ 10: string;
43
+ xs: string;
44
+ sm: string;
45
+ md: string;
46
+ lg: string;
47
+ };
48
+ bottom: {
49
+ px: string;
50
+ 0: string;
51
+ 1: string;
52
+ 2: string;
53
+ 3: string;
54
+ 4: string;
55
+ 5: string;
56
+ 6: string;
57
+ 7: string;
58
+ 8: string;
59
+ 9: string;
60
+ 10: string;
61
+ xs: string;
62
+ sm: string;
63
+ md: string;
64
+ lg: string;
65
+ };
66
+ left: {
67
+ px: string;
68
+ 0: string;
69
+ 1: string;
70
+ 2: string;
71
+ 3: string;
72
+ 4: string;
73
+ 5: string;
74
+ 6: string;
75
+ 7: string;
76
+ 8: string;
77
+ 9: string;
78
+ 10: string;
79
+ xs: string;
80
+ sm: string;
81
+ md: string;
82
+ lg: string;
83
+ };
84
+ start: {
85
+ px: string;
86
+ 0: string;
87
+ 1: string;
88
+ 2: string;
89
+ 3: string;
90
+ 4: string;
91
+ 5: string;
92
+ 6: string;
93
+ 7: string;
94
+ 8: string;
95
+ 9: string;
96
+ 10: string;
97
+ xs: string;
98
+ sm: string;
99
+ md: string;
100
+ lg: string;
101
+ };
102
+ end: {
103
+ px: string;
104
+ 0: string;
105
+ 1: string;
106
+ 2: string;
107
+ 3: string;
108
+ 4: string;
109
+ 5: string;
110
+ 6: string;
111
+ 7: string;
112
+ 8: string;
113
+ 9: string;
114
+ 10: string;
115
+ xs: string;
116
+ sm: string;
117
+ md: string;
118
+ lg: string;
119
+ };
120
+ inset: {
121
+ px: string;
122
+ 0: string;
123
+ 1: string;
124
+ 2: string;
125
+ 3: string;
126
+ 4: string;
127
+ 5: string;
128
+ 6: string;
129
+ 7: string;
130
+ 8: string;
131
+ 9: string;
132
+ 10: string;
133
+ xs: string;
134
+ sm: string;
135
+ md: string;
136
+ lg: string;
137
+ };
12
138
  display: {
13
139
  flex: string;
14
140
  inlineFlex: string;
@@ -31,21 +157,21 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
31
157
  };
32
158
  zIndex: {
33
159
  auto: string;
34
- '0': string;
35
- '10': string;
36
- '20': string;
37
- '30': string;
38
- '40': string;
39
- '50': string;
40
- '60': string;
41
- '70': string;
42
- '80': string;
43
- '90': string;
44
- '100': string;
160
+ 0: string;
161
+ 10: string;
162
+ 20: string;
163
+ 30: string;
164
+ 40: string;
165
+ 50: string;
166
+ 60: string;
167
+ 70: string;
168
+ 80: string;
169
+ 90: string;
170
+ 100: string;
45
171
  };
46
172
  direction: {
47
173
  row: string;
48
- column: string;
174
+ col: string;
49
175
  'row-reverse': string;
50
176
  'col-reverse': string;
51
177
  };
@@ -493,6 +619,7 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
493
619
  foreground: string;
494
620
  secondary: string;
495
621
  tertiary: string;
622
+ cursor: string;
496
623
  primary: string;
497
624
  success: string;
498
625
  warning: string;
@@ -548,6 +675,7 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
548
675
  foreground: string;
549
676
  secondary: string;
550
677
  tertiary: string;
678
+ cursor: string;
551
679
  primary: string;
552
680
  success: string;
553
681
  warning: string;
@@ -578,6 +706,7 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
578
706
  foreground: string;
579
707
  secondary: string;
580
708
  tertiary: string;
709
+ cursor: string;
581
710
  primary: string;
582
711
  success: string;
583
712
  warning: string;
@@ -602,7 +731,7 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
602
731
  center: string;
603
732
  right: string;
604
733
  };
605
- }, undefined, "ux-box", {
734
+ }, undefined, "ux-box-base", {
606
735
  position: {
607
736
  static: string;
608
737
  relative: string;
@@ -610,6 +739,132 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
610
739
  fixed: string;
611
740
  sticky: string;
612
741
  };
742
+ top: {
743
+ px: string;
744
+ 0: string;
745
+ 1: string;
746
+ 2: string;
747
+ 3: string;
748
+ 4: string;
749
+ 5: string;
750
+ 6: string;
751
+ 7: string;
752
+ 8: string;
753
+ 9: string;
754
+ 10: string;
755
+ xs: string;
756
+ sm: string;
757
+ md: string;
758
+ lg: string;
759
+ };
760
+ right: {
761
+ px: string;
762
+ 0: string;
763
+ 1: string;
764
+ 2: string;
765
+ 3: string;
766
+ 4: string;
767
+ 5: string;
768
+ 6: string;
769
+ 7: string;
770
+ 8: string;
771
+ 9: string;
772
+ 10: string;
773
+ xs: string;
774
+ sm: string;
775
+ md: string;
776
+ lg: string;
777
+ };
778
+ bottom: {
779
+ px: string;
780
+ 0: string;
781
+ 1: string;
782
+ 2: string;
783
+ 3: string;
784
+ 4: string;
785
+ 5: string;
786
+ 6: string;
787
+ 7: string;
788
+ 8: string;
789
+ 9: string;
790
+ 10: string;
791
+ xs: string;
792
+ sm: string;
793
+ md: string;
794
+ lg: string;
795
+ };
796
+ left: {
797
+ px: string;
798
+ 0: string;
799
+ 1: string;
800
+ 2: string;
801
+ 3: string;
802
+ 4: string;
803
+ 5: string;
804
+ 6: string;
805
+ 7: string;
806
+ 8: string;
807
+ 9: string;
808
+ 10: string;
809
+ xs: string;
810
+ sm: string;
811
+ md: string;
812
+ lg: string;
813
+ };
814
+ start: {
815
+ px: string;
816
+ 0: string;
817
+ 1: string;
818
+ 2: string;
819
+ 3: string;
820
+ 4: string;
821
+ 5: string;
822
+ 6: string;
823
+ 7: string;
824
+ 8: string;
825
+ 9: string;
826
+ 10: string;
827
+ xs: string;
828
+ sm: string;
829
+ md: string;
830
+ lg: string;
831
+ };
832
+ end: {
833
+ px: string;
834
+ 0: string;
835
+ 1: string;
836
+ 2: string;
837
+ 3: string;
838
+ 4: string;
839
+ 5: string;
840
+ 6: string;
841
+ 7: string;
842
+ 8: string;
843
+ 9: string;
844
+ 10: string;
845
+ xs: string;
846
+ sm: string;
847
+ md: string;
848
+ lg: string;
849
+ };
850
+ inset: {
851
+ px: string;
852
+ 0: string;
853
+ 1: string;
854
+ 2: string;
855
+ 3: string;
856
+ 4: string;
857
+ 5: string;
858
+ 6: string;
859
+ 7: string;
860
+ 8: string;
861
+ 9: string;
862
+ 10: string;
863
+ xs: string;
864
+ sm: string;
865
+ md: string;
866
+ lg: string;
867
+ };
613
868
  display: {
614
869
  flex: string;
615
870
  inlineFlex: string;
@@ -632,21 +887,21 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
632
887
  };
633
888
  zIndex: {
634
889
  auto: string;
635
- '0': string;
636
- '10': string;
637
- '20': string;
638
- '30': string;
639
- '40': string;
640
- '50': string;
641
- '60': string;
642
- '70': string;
643
- '80': string;
644
- '90': string;
645
- '100': string;
890
+ 0: string;
891
+ 10: string;
892
+ 20: string;
893
+ 30: string;
894
+ 40: string;
895
+ 50: string;
896
+ 60: string;
897
+ 70: string;
898
+ 80: string;
899
+ 90: string;
900
+ 100: string;
646
901
  };
647
902
  direction: {
648
903
  row: string;
649
- column: string;
904
+ col: string;
650
905
  'row-reverse': string;
651
906
  'col-reverse': string;
652
907
  };
@@ -1094,6 +1349,7 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
1094
1349
  foreground: string;
1095
1350
  secondary: string;
1096
1351
  tertiary: string;
1352
+ cursor: string;
1097
1353
  primary: string;
1098
1354
  success: string;
1099
1355
  warning: string;
@@ -1149,6 +1405,7 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
1149
1405
  foreground: string;
1150
1406
  secondary: string;
1151
1407
  tertiary: string;
1408
+ cursor: string;
1152
1409
  primary: string;
1153
1410
  success: string;
1154
1411
  warning: string;
@@ -1179,6 +1436,7 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
1179
1436
  foreground: string;
1180
1437
  secondary: string;
1181
1438
  tertiary: string;
1439
+ cursor: string;
1182
1440
  primary: string;
1183
1441
  success: string;
1184
1442
  warning: string;
@@ -1211,6 +1469,132 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
1211
1469
  fixed: string;
1212
1470
  sticky: string;
1213
1471
  };
1472
+ top: {
1473
+ px: string;
1474
+ 0: string;
1475
+ 1: string;
1476
+ 2: string;
1477
+ 3: string;
1478
+ 4: string;
1479
+ 5: string;
1480
+ 6: string;
1481
+ 7: string;
1482
+ 8: string;
1483
+ 9: string;
1484
+ 10: string;
1485
+ xs: string;
1486
+ sm: string;
1487
+ md: string;
1488
+ lg: string;
1489
+ };
1490
+ right: {
1491
+ px: string;
1492
+ 0: string;
1493
+ 1: string;
1494
+ 2: string;
1495
+ 3: string;
1496
+ 4: string;
1497
+ 5: string;
1498
+ 6: string;
1499
+ 7: string;
1500
+ 8: string;
1501
+ 9: string;
1502
+ 10: string;
1503
+ xs: string;
1504
+ sm: string;
1505
+ md: string;
1506
+ lg: string;
1507
+ };
1508
+ bottom: {
1509
+ px: string;
1510
+ 0: string;
1511
+ 1: string;
1512
+ 2: string;
1513
+ 3: string;
1514
+ 4: string;
1515
+ 5: string;
1516
+ 6: string;
1517
+ 7: string;
1518
+ 8: string;
1519
+ 9: string;
1520
+ 10: string;
1521
+ xs: string;
1522
+ sm: string;
1523
+ md: string;
1524
+ lg: string;
1525
+ };
1526
+ left: {
1527
+ px: string;
1528
+ 0: string;
1529
+ 1: string;
1530
+ 2: string;
1531
+ 3: string;
1532
+ 4: string;
1533
+ 5: string;
1534
+ 6: string;
1535
+ 7: string;
1536
+ 8: string;
1537
+ 9: string;
1538
+ 10: string;
1539
+ xs: string;
1540
+ sm: string;
1541
+ md: string;
1542
+ lg: string;
1543
+ };
1544
+ start: {
1545
+ px: string;
1546
+ 0: string;
1547
+ 1: string;
1548
+ 2: string;
1549
+ 3: string;
1550
+ 4: string;
1551
+ 5: string;
1552
+ 6: string;
1553
+ 7: string;
1554
+ 8: string;
1555
+ 9: string;
1556
+ 10: string;
1557
+ xs: string;
1558
+ sm: string;
1559
+ md: string;
1560
+ lg: string;
1561
+ };
1562
+ end: {
1563
+ px: string;
1564
+ 0: string;
1565
+ 1: string;
1566
+ 2: string;
1567
+ 3: string;
1568
+ 4: string;
1569
+ 5: string;
1570
+ 6: string;
1571
+ 7: string;
1572
+ 8: string;
1573
+ 9: string;
1574
+ 10: string;
1575
+ xs: string;
1576
+ sm: string;
1577
+ md: string;
1578
+ lg: string;
1579
+ };
1580
+ inset: {
1581
+ px: string;
1582
+ 0: string;
1583
+ 1: string;
1584
+ 2: string;
1585
+ 3: string;
1586
+ 4: string;
1587
+ 5: string;
1588
+ 6: string;
1589
+ 7: string;
1590
+ 8: string;
1591
+ 9: string;
1592
+ 10: string;
1593
+ xs: string;
1594
+ sm: string;
1595
+ md: string;
1596
+ lg: string;
1597
+ };
1214
1598
  display: {
1215
1599
  flex: string;
1216
1600
  inlineFlex: string;
@@ -1233,21 +1617,21 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
1233
1617
  };
1234
1618
  zIndex: {
1235
1619
  auto: string;
1236
- '0': string;
1237
- '10': string;
1238
- '20': string;
1239
- '30': string;
1240
- '40': string;
1241
- '50': string;
1242
- '60': string;
1243
- '70': string;
1244
- '80': string;
1245
- '90': string;
1246
- '100': string;
1620
+ 0: string;
1621
+ 10: string;
1622
+ 20: string;
1623
+ 30: string;
1624
+ 40: string;
1625
+ 50: string;
1626
+ 60: string;
1627
+ 70: string;
1628
+ 80: string;
1629
+ 90: string;
1630
+ 100: string;
1247
1631
  };
1248
1632
  direction: {
1249
1633
  row: string;
1250
- column: string;
1634
+ col: string;
1251
1635
  'row-reverse': string;
1252
1636
  'col-reverse': string;
1253
1637
  };
@@ -1695,6 +2079,7 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
1695
2079
  foreground: string;
1696
2080
  secondary: string;
1697
2081
  tertiary: string;
2082
+ cursor: string;
1698
2083
  primary: string;
1699
2084
  success: string;
1700
2085
  warning: string;
@@ -1750,6 +2135,7 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
1750
2135
  foreground: string;
1751
2136
  secondary: string;
1752
2137
  tertiary: string;
2138
+ cursor: string;
1753
2139
  primary: string;
1754
2140
  success: string;
1755
2141
  warning: string;
@@ -1780,6 +2166,7 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
1780
2166
  foreground: string;
1781
2167
  secondary: string;
1782
2168
  tertiary: string;
2169
+ cursor: string;
1783
2170
  primary: string;
1784
2171
  success: string;
1785
2172
  warning: string;
@@ -1804,5 +2191,5 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
1804
2191
  center: string;
1805
2192
  right: string;
1806
2193
  };
1807
- }, undefined, "ux-box", unknown, unknown, undefined>>;
2194
+ }, undefined, "ux-box-base", unknown, unknown, undefined>>;
1808
2195
  export type BoxVariants = VariantProps<typeof boxVariants>;
@@ -61,6 +61,7 @@ const bgClasses = {
61
61
  foreground: 'bg-foreground',
62
62
  secondary: 'bg-secondary',
63
63
  tertiary: 'bg-tertiary',
64
+ cursor: 'bg-cursor',
64
65
  primary: 'bg-primary',
65
66
  success: 'bg-success',
66
67
  warning: 'bg-warning',
@@ -76,6 +77,7 @@ const colorClasses = {
76
77
  foreground: 'text-foreground',
77
78
  secondary: 'text-secondary',
78
79
  tertiary: 'text-tertiary',
80
+ cursor: 'text-cursor',
79
81
  primary: 'text-primary',
80
82
  success: 'text-success',
81
83
  warning: 'text-warning',
@@ -90,6 +92,7 @@ const borderColorClasses = {
90
92
  foreground: 'border-foreground',
91
93
  secondary: 'border-secondary',
92
94
  tertiary: 'border-tertiary',
95
+ cursor: 'border-cursor',
93
96
  primary: 'border-primary',
94
97
  success: 'border-success',
95
98
  warning: 'border-warning',
@@ -110,7 +113,7 @@ const roundedClasses = {
110
113
  full: 'rounded-full'
111
114
  };
112
115
  const boxVariants = tv({
113
- base: 'ux-box',
116
+ base: 'ux-box-base',
114
117
  variants: {
115
118
  position: {
116
119
  static: 'static',
@@ -119,6 +122,13 @@ const boxVariants = tv({
119
122
  fixed: 'fixed',
120
123
  sticky: 'sticky'
121
124
  },
125
+ top: spacingClasses('top'),
126
+ right: spacingClasses('right'),
127
+ bottom: spacingClasses('bottom'),
128
+ left: spacingClasses('left'),
129
+ start: spacingClasses('start'),
130
+ end: spacingClasses('end'),
131
+ inset: spacingClasses('inset'),
122
132
  display: {
123
133
  flex: 'flex',
124
134
  inlineFlex: 'inline-flex',
@@ -155,7 +165,7 @@ const boxVariants = tv({
155
165
  },
156
166
  direction: {
157
167
  row: 'flex-row',
158
- column: 'flex-col',
168
+ col: 'flex-col',
159
169
  'row-reverse': 'flex-row-reverse',
160
170
  'col-reverse': 'flex-col-reverse'
161
171
  },
@@ -40,10 +40,11 @@ export declare const useI18n: () => {
40
40
  readonly primary: "Primary";
41
41
  readonly bullish: "Positive";
42
42
  readonly bearish: "Negative";
43
- readonly 'bg-default': "Background";
43
+ readonly 'bg-default': "Background Primary";
44
44
  readonly 'bg-200': "Background Quaternary";
45
45
  readonly 'bg-300': "Background Tertiary";
46
46
  readonly 'bg-400': "Background Secondary";
47
+ readonly cursor: "Selected";
47
48
  readonly overlay: "Overlay";
48
49
  readonly default: "Default";
49
50
  readonly foreground: "Text Primary";
@@ -54,6 +55,7 @@ export declare const useI18n: () => {
54
55
  readonly danger: "Signal Red";
55
56
  readonly warning: "Signal Yellow";
56
57
  readonly alert: "Signal Orange";
58
+ readonly blue: "Signal Blue";
57
59
  readonly candleUp: "Body (up)";
58
60
  readonly candleDown: "Body (down)";
59
61
  readonly candleWickUp: "Wick (up)";
@@ -111,7 +113,8 @@ export declare const useI18n: () => {
111
113
  readonly 'bg-200': "四级背景色";
112
114
  readonly 'bg-300': "三级背景色";
113
115
  readonly 'bg-400': "二级背景色";
114
- readonly overlay: "浮窗色";
116
+ readonly cursor: "选中背景色";
117
+ readonly overlay: "浮窗背景色";
115
118
  readonly default: "默认";
116
119
  readonly foreground: "一级文字色";
117
120
  readonly secondary: "二级文字色";
@@ -121,6 +124,7 @@ export declare const useI18n: () => {
121
124
  readonly danger: "红色信号";
122
125
  readonly warning: "黄色信号";
123
126
  readonly alert: "橙色信号";
127
+ readonly blue: "蓝色信号";
124
128
  readonly candleUp: "主体色 (上涨)";
125
129
  readonly candleDown: "主体色 (下跌)";
126
130
  readonly candleWickUp: "影线 (上涨)";
@@ -42,10 +42,11 @@ const en = {
42
42
  primary: 'Primary',
43
43
  bullish: 'Positive',
44
44
  bearish: 'Negative',
45
- 'bg-default': 'Background',
45
+ 'bg-default': 'Background Primary',
46
46
  'bg-200': 'Background Quaternary',
47
47
  'bg-300': 'Background Tertiary',
48
48
  'bg-400': 'Background Secondary',
49
+ cursor: 'Selected',
49
50
  overlay: 'Overlay',
50
51
  default: 'Default',
51
52
  foreground: 'Text Primary',
@@ -56,6 +57,7 @@ const en = {
56
57
  danger: 'Signal Red',
57
58
  warning: 'Signal Yellow',
58
59
  alert: 'Signal Orange',
60
+ blue: 'Signal Blue',
59
61
  candleUp: 'Body (up)',
60
62
  candleDown: 'Body (down)',
61
63
  candleWickUp: 'Wick (up)',
@@ -114,7 +116,8 @@ const zh = {
114
116
  'bg-200': '四级背景色',
115
117
  'bg-300': '三级背景色',
116
118
  'bg-400': '二级背景色',
117
- overlay: '浮窗色',
119
+ cursor: '选中背景色',
120
+ overlay: '浮窗背景色',
118
121
  default: '默认',
119
122
  foreground: '一级文字色',
120
123
  secondary: '二级文字色',
@@ -124,6 +127,7 @@ const zh = {
124
127
  danger: '红色信号',
125
128
  warning: '黄色信号',
126
129
  alert: '橙色信号',
130
+ blue: '蓝色信号',
127
131
  candleUp: '主体色 (上涨)',
128
132
  candleDown: '主体色 (下跌)',
129
133
  candleWickUp: '影线 (上涨)',
@@ -191,9 +191,9 @@ const inputClasses = {
191
191
  'lg'
192
192
  ],
193
193
  class: {
194
- inputWrapper: 'bg-background-200 text-tertiary font-medium',
194
+ inputWrapper: 'bg-background-200 text-foreground-100 font-medium',
195
195
  label: 'font-medium',
196
- input: '!outline-none placeholder:text-tertiary placeholder:font-medium font-medium text-foreground'
196
+ input: '!outline-none placeholder:text-foreground-100 placeholder:font-medium font-medium text-foreground'
197
197
  }
198
198
  },
199
199
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-react",
3
- "version": "0.5.1-beta.6",
3
+ "version": "0.5.1-beta.8",
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/eslint-config": "0.3.0",
42
- "@particle-network/lintstaged-config": "0.1.0"
41
+ "@particle-network/lintstaged-config": "0.1.0",
42
+ "@particle-network/eslint-config": "0.3.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.3",
56
- "@particle-network/ui-shared": "0.4.1-beta.2"
55
+ "@particle-network/icons": "0.5.1-beta.4",
56
+ "@particle-network/ui-shared": "0.4.1-beta.3"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "rslib build",
@@ -8,6 +8,8 @@ module.exports = {
8
8
  extend: {
9
9
  colors: {
10
10
  brand: '#D745FF',
11
+ blue: '#0ea5e9',
12
+ 'blue-foreground': '#000000',
11
13
  'background-pure': 'var(--background-pure)',
12
14
  },
13
15
  gap: {
@@ -118,7 +120,7 @@ module.exports = {
118
120
  DEFAULT: '#000000',
119
121
  },
120
122
  foreground: {
121
- 100: '#4E4E56',
123
+ 100: '#75757E',
122
124
  300: '#A1A1AA',
123
125
  500: '#FFFFFF',
124
126
  DEFAULT: '#FFFFFF',
@@ -145,6 +147,10 @@ module.exports = {
145
147
  foreground: '#000000',
146
148
  },
147
149
  tertiary: {
150
+ DEFAULT: '#75757E',
151
+ foreground: '#FFFFFF',
152
+ },
153
+ cursor: {
148
154
  DEFAULT: '#4E4E56',
149
155
  foreground: '#FFFFFF',
150
156
  },
@@ -197,7 +203,7 @@ module.exports = {
197
203
  DEFAULT: '#F8F8FA',
198
204
  },
199
205
  foreground: {
200
- 100: '#D8D8DE',
206
+ 100: '#83878D',
201
207
  300: '#61656B',
202
208
  500: '#0C0C0F',
203
209
  DEFAULT: '#0C0C0F',
@@ -224,6 +230,10 @@ module.exports = {
224
230
  foreground: '#FFFFFF',
225
231
  },
226
232
  tertiary: {
233
+ DEFAULT: '#83878D',
234
+ foreground: '#000000',
235
+ },
236
+ cursor: {
227
237
  DEFAULT: '#D8D8DE',
228
238
  foreground: '#000000',
229
239
  },
@@ -276,7 +286,7 @@ module.exports = {
276
286
  DEFAULT: '#000000',
277
287
  },
278
288
  foreground: {
279
- 100: '#4E4E56',
289
+ 100: '#75757E',
280
290
  300: '#A1A1AA',
281
291
  500: '#FFFFFF',
282
292
  DEFAULT: '#FFFFFF',
@@ -303,6 +313,10 @@ module.exports = {
303
313
  foreground: '#000000',
304
314
  },
305
315
  tertiary: {
316
+ DEFAULT: '#75757E',
317
+ foreground: '#FFFFFF',
318
+ },
319
+ cursor: {
306
320
  DEFAULT: '#4E4E56',
307
321
  foreground: '#FFFFFF',
308
322
  },
@@ -355,7 +369,7 @@ module.exports = {
355
369
  DEFAULT: '#F8F8FA',
356
370
  },
357
371
  foreground: {
358
- 100: '#D8D8DE',
372
+ 100: '#83878D',
359
373
  300: '#61656B',
360
374
  500: '#000000',
361
375
  DEFAULT: '#000000',
@@ -382,6 +396,10 @@ module.exports = {
382
396
  foreground: '#FFFFFF',
383
397
  },
384
398
  tertiary: {
399
+ DEFAULT: '#83878D',
400
+ foreground: '#000000',
401
+ },
402
+ cursor: {
385
403
  DEFAULT: '#D8D8DE',
386
404
  foreground: '#000000',
387
405
  },
@@ -434,7 +452,7 @@ module.exports = {
434
452
  DEFAULT: '#100E11',
435
453
  },
436
454
  foreground: {
437
- 100: '#4E4E56',
455
+ 100: '#888891',
438
456
  300: '#BBBBC4',
439
457
  500: '#FDFDFE',
440
458
  DEFAULT: '#FDFDFE',
@@ -461,6 +479,10 @@ module.exports = {
461
479
  foreground: '#000000',
462
480
  },
463
481
  tertiary: {
482
+ DEFAULT: '#888891',
483
+ foreground: '#FFFFFF',
484
+ },
485
+ cursor: {
464
486
  DEFAULT: '#4E4E56',
465
487
  foreground: '#FFFFFF',
466
488
  },
@@ -513,7 +535,7 @@ module.exports = {
513
535
  DEFAULT: '#F6F6F6',
514
536
  },
515
537
  foreground: {
516
- 100: '#CFCFD7',
538
+ 100: '#7A7E84',
517
539
  300: '#55585C',
518
540
  500: '#000000',
519
541
  DEFAULT: '#000000',
@@ -540,6 +562,10 @@ module.exports = {
540
562
  foreground: '#FFFFFF',
541
563
  },
542
564
  tertiary: {
565
+ DEFAULT: '#7A7E84',
566
+ foreground: '#000000',
567
+ },
568
+ cursor: {
543
569
  DEFAULT: '#CFCFD7',
544
570
  foreground: '#000000',
545
571
  },
@@ -592,7 +618,7 @@ module.exports = {
592
618
  DEFAULT: '#0C0C0F',
593
619
  },
594
620
  foreground: {
595
- 100: '#5D6466',
621
+ 100: '#757E80',
596
622
  300: '#C4CCCC',
597
623
  500: '#F0F5F5',
598
624
  DEFAULT: '#F0F5F5',
@@ -619,6 +645,10 @@ module.exports = {
619
645
  foreground: '#000000',
620
646
  },
621
647
  tertiary: {
648
+ DEFAULT: '#757E80',
649
+ foreground: '#FFFFFF',
650
+ },
651
+ cursor: {
622
652
  DEFAULT: '#5D6466',
623
653
  foreground: '#FFFFFF',
624
654
  },
@@ -671,7 +701,7 @@ module.exports = {
671
701
  DEFAULT: '#0C0C0F',
672
702
  },
673
703
  foreground: {
674
- 100: '#4A4D5E',
704
+ 100: '#777A8C',
675
705
  300: '#C8C9D1',
676
706
  500: '#FCFCFC',
677
707
  DEFAULT: '#FCFCFC',
@@ -698,6 +728,10 @@ module.exports = {
698
728
  foreground: '#000000',
699
729
  },
700
730
  tertiary: {
731
+ DEFAULT: '#777A8C',
732
+ foreground: '#FFFFFF',
733
+ },
734
+ cursor: {
701
735
  DEFAULT: '#4A4D5E',
702
736
  foreground: '#FFFFFF',
703
737
  },
@@ -750,7 +784,7 @@ module.exports = {
750
784
  DEFAULT: '#0A1318',
751
785
  },
752
786
  foreground: {
753
- 100: '#5D6466',
787
+ 100: '#949E9C',
754
788
  300: '#D1D4DC',
755
789
  500: '#F6FEFD',
756
790
  DEFAULT: '#F6FEFD',
@@ -777,6 +811,10 @@ module.exports = {
777
811
  foreground: '#000000',
778
812
  },
779
813
  tertiary: {
814
+ DEFAULT: '#949E9C',
815
+ foreground: '#FFFFFF',
816
+ },
817
+ cursor: {
780
818
  DEFAULT: '#5D6466',
781
819
  foreground: '#FFFFFF',
782
820
  },
@@ -829,7 +867,7 @@ module.exports = {
829
867
  DEFAULT: '#13121A',
830
868
  },
831
869
  foreground: {
832
- 100: '#54515E',
870
+ 100: '#717373',
833
871
  300: '#999999',
834
872
  500: '#FFFFFF',
835
873
  DEFAULT: '#FFFFFF',
@@ -856,6 +894,10 @@ module.exports = {
856
894
  foreground: '#000000',
857
895
  },
858
896
  tertiary: {
897
+ DEFAULT: '#717373',
898
+ foreground: '#FFFFFF',
899
+ },
900
+ cursor: {
859
901
  DEFAULT: '#54515E',
860
902
  foreground: '#FFFFFF',
861
903
  },
@@ -908,7 +950,7 @@ module.exports = {
908
950
  DEFAULT: '#0B0E11',
909
951
  },
910
952
  foreground: {
911
- 100: '#444A56',
953
+ 100: '#707A8A',
912
954
  300: '#929AA5',
913
955
  500: '#EAECEF',
914
956
  DEFAULT: '#EAECEF',
@@ -935,6 +977,10 @@ module.exports = {
935
977
  foreground: '#000000',
936
978
  },
937
979
  tertiary: {
980
+ DEFAULT: '#707A8A',
981
+ foreground: '#FFFFFF',
982
+ },
983
+ cursor: {
938
984
  DEFAULT: '#444A56',
939
985
  foreground: '#FFFFFF',
940
986
  },
@@ -987,7 +1033,7 @@ module.exports = {
987
1033
  DEFAULT: '#09090B',
988
1034
  },
989
1035
  foreground: {
990
- 100: '#4B4D51',
1036
+ 100: '#686A6D',
991
1037
  300: '#98989B',
992
1038
  500: '#E9E9E9',
993
1039
  DEFAULT: '#E9E9E9',
@@ -1014,6 +1060,10 @@ module.exports = {
1014
1060
  foreground: '#000000',
1015
1061
  },
1016
1062
  tertiary: {
1063
+ DEFAULT: '#686A6D',
1064
+ foreground: '#FFFFFF',
1065
+ },
1066
+ cursor: {
1017
1067
  DEFAULT: '#4B4D51',
1018
1068
  foreground: '#FFFFFF',
1019
1069
  },