@particle-network/ui-react 0.7.0-beta.2 → 0.7.0-beta.21

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 (62) hide show
  1. package/dist/components/ProgressWrapper/index.js +47 -45
  2. package/dist/components/UXButton/button-theme.js +8 -8
  3. package/dist/components/UXColorPicker/color-fields.js +1 -1
  4. package/dist/components/UXHint/index.d.ts +6 -3
  5. package/dist/components/UXHint/index.js +9 -19
  6. package/dist/components/UXSimplePopover/index.d.ts +1 -0
  7. package/dist/components/UXSimplePopover/index.js +1 -0
  8. package/dist/components/UXSimplePopover/provider.d.ts +22 -0
  9. package/dist/components/UXSimplePopover/provider.js +197 -0
  10. package/dist/components/UXSimplePopover/simple-popover.d.ts +8 -3
  11. package/dist/components/UXSimplePopover/simple-popover.js +114 -104
  12. package/dist/components/UXTable/base/index.d.ts +10 -0
  13. package/dist/components/UXTable/base/index.js +6 -0
  14. package/dist/components/UXTable/base/table-body.d.ts +20 -0
  15. package/dist/components/UXTable/base/table-body.js +4 -0
  16. package/dist/components/UXTable/base/table-cell.d.ts +6 -0
  17. package/dist/components/UXTable/base/table-cell.js +4 -0
  18. package/dist/components/UXTable/base/table-column.d.ts +6 -0
  19. package/dist/components/UXTable/base/table-column.js +4 -0
  20. package/dist/components/UXTable/base/table-header.d.ts +6 -0
  21. package/dist/components/UXTable/base/table-header.js +4 -0
  22. package/dist/components/UXTable/base/table-row.d.ts +6 -0
  23. package/dist/components/UXTable/base/table-row.js +4 -0
  24. package/dist/components/UXTable/index.d.ts +7 -37
  25. package/dist/components/UXTable/index.js +5 -14
  26. package/dist/components/UXTable/table-body.d.ts +15 -0
  27. package/dist/components/UXTable/table-body.js +87 -0
  28. package/dist/components/UXTable/table-cell.d.ts +19 -0
  29. package/dist/components/UXTable/table-cell.js +45 -0
  30. package/dist/components/UXTable/table-checkbox-cell.d.ts +23 -0
  31. package/dist/components/UXTable/table-checkbox-cell.js +48 -0
  32. package/dist/components/UXTable/table-column-header.d.ts +25 -0
  33. package/dist/components/UXTable/table-column-header.js +66 -0
  34. package/dist/components/UXTable/table-header-row.d.ts +14 -0
  35. package/dist/components/UXTable/table-header-row.js +29 -0
  36. package/dist/components/UXTable/table-row-group.d.ts +8 -0
  37. package/dist/components/UXTable/table-row-group.js +24 -0
  38. package/dist/components/UXTable/table-row.d.ts +15 -0
  39. package/dist/components/UXTable/table-row.js +61 -0
  40. package/dist/components/UXTable/table-select-all-checkbox.d.ts +18 -0
  41. package/dist/components/UXTable/table-select-all-checkbox.js +46 -0
  42. package/dist/components/UXTable/table-theme.d.ts +452 -0
  43. package/dist/components/UXTable/table-theme.js +282 -0
  44. package/dist/components/UXTable/table.d.ts +8 -0
  45. package/dist/components/UXTable/table.js +96 -0
  46. package/dist/components/UXTable/use-table.d.ts +145 -0
  47. package/dist/components/UXTable/use-table.js +127 -0
  48. package/dist/components/UXTable/virtualized-table-body.d.ts +17 -0
  49. package/dist/components/UXTable/virtualized-table-body.js +107 -0
  50. package/dist/components/UXTable/virtualized-table.d.ts +8 -0
  51. package/dist/components/UXTable/virtualized-table.js +115 -0
  52. package/dist/components/UXThemeSwitch/theme-switch.js +8 -1
  53. package/dist/components/UXThemeSwitch/use-theme.js +1 -1
  54. package/dist/components/UXToast/index.d.ts +4 -1
  55. package/dist/components/UXToast/index.js +2 -2
  56. package/dist/components/layout/Box/box-theme.d.ts +2 -2
  57. package/dist/components/layout/Box/box-theme.js +1 -1
  58. package/dist/components/typography/text-theme.d.ts +2 -2
  59. package/dist/components/typography/text-theme.js +1 -1
  60. package/package.json +12 -6
  61. package/dist/components/UXTable/table.extend.d.ts +0 -34
  62. package/dist/components/UXTable/table.extend.js +0 -145
@@ -5,7 +5,10 @@ export type UXToastType = 'success' | 'error' | 'loading' | 'info';
5
5
  export type UXToastProps = Partial<ToastProps> & {
6
6
  type: UXToastType;
7
7
  };
8
- export declare const UXToastProvider: () => import("react/jsx-runtime").JSX.Element;
8
+ export interface UXToastProviderProps {
9
+ placement?: ToastProps['placement'];
10
+ }
11
+ export declare const UXToastProvider: ({ placement }: UXToastProviderProps) => import("react/jsx-runtime").JSX.Element;
9
12
  export declare const toast: {
10
13
  info: (message: ReactNode, props?: Partial<ToastProps>) => string | null;
11
14
  success: (message: ReactNode, props?: Partial<ToastProps>) => string | null;
@@ -6,9 +6,9 @@ import CloseIcon from "@particle-network/icons/web/CloseIcon";
6
6
  import { hasLongWord } from "../../utils/index.js";
7
7
  import { UXSpinner } from "../UXSpinner/index.js";
8
8
  import { WrapText } from "../WrapText/index.js";
9
- const UXToastProvider = ()=>/*#__PURE__*/ jsx(ToastProvider, {
9
+ const UXToastProvider = ({ placement = 'top-center' })=>/*#__PURE__*/ jsx(ToastProvider, {
10
10
  disableAnimation: true,
11
- placement: "top-center",
11
+ placement: placement,
12
12
  maxVisibleToasts: 4,
13
13
  toastProps: {
14
14
  timeout: 4000
@@ -737,7 +737,7 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
737
737
  center: string;
738
738
  right: string;
739
739
  };
740
- }, undefined, "ux-box-base", {
740
+ }, undefined, "", {
741
741
  position: {
742
742
  static: string;
743
743
  relative: string;
@@ -2209,5 +2209,5 @@ export declare const boxVariants: import("tailwind-variants").TVReturnType<{
2209
2209
  center: string;
2210
2210
  right: string;
2211
2211
  };
2212
- }, undefined, "ux-box-base", unknown, unknown, undefined>>;
2212
+ }, undefined, "", unknown, unknown, undefined>>;
2213
2213
  export type BoxVariants = VariantProps<typeof boxVariants>;
@@ -123,7 +123,7 @@ const roundedClasses = {
123
123
  full: 'rounded-full'
124
124
  };
125
125
  const boxVariants = tv({
126
- base: 'ux-box-base',
126
+ base: '',
127
127
  variants: {
128
128
  position: {
129
129
  static: 'static',
@@ -57,7 +57,7 @@ export declare const textVariants: import("tailwind-variants").TVReturnType<{
57
57
  '1': string;
58
58
  '1.4': string;
59
59
  };
60
- }, undefined, "ux-text-base", {
60
+ }, undefined, "", {
61
61
  variant: {
62
62
  h1: string;
63
63
  h2: string;
@@ -175,4 +175,4 @@ export declare const textVariants: import("tailwind-variants").TVReturnType<{
175
175
  '1': string;
176
176
  '1.4': string;
177
177
  };
178
- }, undefined, "ux-text-base", unknown, unknown, undefined>>;
178
+ }, undefined, "", unknown, unknown, undefined>>;
@@ -11,7 +11,7 @@ const body3 = 'text-[0.6875rem] leading-[1rem] font-normal';
11
11
  const caption1Bold = 'text-[0.625rem] leading-[0.875rem] font-medium';
12
12
  const caption1 = 'text-[0.625rem] leading-[0.875rem] font-normal';
13
13
  const textVariants = tv({
14
- base: 'ux-text-base',
14
+ base: '',
15
15
  variants: {
16
16
  variant: {
17
17
  h1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-react",
3
- "version": "0.7.0-beta.2",
3
+ "version": "0.7.0-beta.21",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -33,27 +33,33 @@
33
33
  "tailwind-preset.js"
34
34
  ],
35
35
  "devDependencies": {
36
- "@heroui/react": "^2.8.2",
37
36
  "@rsbuild/plugin-react": "^1.3.5",
38
37
  "@rslib/core": "^0.12.3",
39
38
  "@types/react": "^19.1.10",
40
39
  "react": "^19.1.0",
41
- "@particle-network/eslint-config": "0.3.0",
42
- "@particle-network/lintstaged-config": "0.1.0"
40
+ "@particle-network/lintstaged-config": "0.2.0-beta.0",
41
+ "@particle-network/eslint-config": "0.4.0-beta.0"
43
42
  },
44
43
  "peerDependencies": {
45
44
  "react": ">=16.9.0",
46
45
  "react-dom": ">=16.9.0"
47
46
  },
48
47
  "dependencies": {
48
+ "@heroui/react": "^2.8.2",
49
+ "@tanstack/react-virtual": "^3.13.21",
49
50
  "ahooks": "^3.9.4",
51
+ "clsx": "^2.1.1",
52
+ "color2k": "^2.0.3",
50
53
  "copy-to-clipboard": "^3.3.3",
51
54
  "immer": "^11.1.3",
52
55
  "react-aria-components": "^1.14.0",
56
+ "react-stately": "^3.45.0",
57
+ "tailwind-merge": "2.6.0",
58
+ "tailwind-variants": "^3.2.2",
53
59
  "values.js": "^2.1.1",
54
60
  "zustand": "^5.0.8",
55
- "@particle-network/icons": "0.6.1",
56
- "@particle-network/ui-shared": "0.5.0"
61
+ "@particle-network/icons": "0.7.0-beta.9",
62
+ "@particle-network/ui-shared": "0.6.0-beta.2"
57
63
  },
58
64
  "scripts": {
59
65
  "build": "rslib build",
@@ -1,34 +0,0 @@
1
- declare const ExtendedTable: import("react").ForwardRefExoticComponent<(Omit<import("@heroui/system-rsc").OmitCommonProps<Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref">, keyof import("@heroui/table").TableProps<object>> & import("@heroui/table").TableProps<object> & {
2
- as?: import("@heroui/system-rsc").As<any> | undefined;
3
- } & {
4
- color?: "default" | undefined;
5
- size?: "md" | "lg" | undefined;
6
- layout?: "auto" | "fixed" | undefined;
7
- radius?: "sm" | "md" | "lg" | "none" | undefined;
8
- shadow?: "sm" | "md" | "lg" | "none" | undefined;
9
- hideHeader?: boolean | undefined;
10
- isStriped?: boolean | undefined;
11
- isCompact?: boolean | undefined;
12
- isHeaderSticky?: boolean | undefined;
13
- isSelectable?: boolean | undefined;
14
- isMultiSelectable?: boolean | undefined;
15
- fullWidth?: boolean | undefined;
16
- align?: "start" | "end" | "center" | undefined;
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
- as?: import("@heroui/system-rsc").As<any> | undefined;
19
- } & {
20
- color?: "default" | undefined;
21
- size?: "md" | "lg" | undefined;
22
- layout?: "auto" | "fixed" | undefined;
23
- radius?: "sm" | "md" | "lg" | "none" | undefined;
24
- shadow?: "sm" | "md" | "lg" | "none" | undefined;
25
- hideHeader?: boolean | undefined;
26
- isStriped?: boolean | undefined;
27
- isCompact?: boolean | undefined;
28
- isHeaderSticky?: boolean | undefined;
29
- isSelectable?: boolean | undefined;
30
- isMultiSelectable?: boolean | undefined;
31
- fullWidth?: boolean | undefined;
32
- align?: "start" | "end" | "center" | undefined;
33
- }, "ref">) & import("react").RefAttributes<HTMLElement>>;
34
- export default ExtendedTable;
@@ -1,145 +0,0 @@
1
- import { extendVariants } from "@heroui/system-rsc";
2
- import { Table } from "@heroui/table";
3
- const ExtendedTable = extendVariants(Table, {
4
- variants: {
5
- color: {
6
- default: {
7
- wrapper: 'p-0 gap-5',
8
- thead: '[&>tr]:first:border-b [&>tr]:first:border-divider',
9
- th: 'bg-transparent !text-caption1 text-foreground-300 font-medium px-lg h-auto',
10
- td: 'before:bg-default/60 data-[selected=true]:text-default-foreground font-medium first:rounded-l-md last:rounded-r-md'
11
- }
12
- },
13
- size: {
14
- md: {
15
- th: 'py-md'
16
- },
17
- lg: {
18
- th: 'py-5',
19
- td: 'py-lg'
20
- }
21
- },
22
- layout: {
23
- auto: {
24
- table: 'table-auto'
25
- },
26
- fixed: {
27
- table: 'table-fixed'
28
- }
29
- },
30
- radius: {
31
- none: {
32
- wrapper: 'rounded-none'
33
- },
34
- sm: {
35
- wrapper: 'rounded-small'
36
- },
37
- md: {
38
- wrapper: 'rounded-medium'
39
- },
40
- lg: {
41
- wrapper: 'rounded-large'
42
- }
43
- },
44
- shadow: {
45
- none: {
46
- wrapper: 'shadow-none'
47
- },
48
- sm: {
49
- wrapper: 'shadow-small'
50
- },
51
- md: {
52
- wrapper: 'shadow-medium'
53
- },
54
- lg: {
55
- wrapper: 'shadow-large'
56
- }
57
- },
58
- hideHeader: {
59
- true: {
60
- thead: 'hidden'
61
- }
62
- },
63
- isStriped: {
64
- true: {
65
- td: [
66
- 'group-data-[odd=true]/tr:before:bg-default-100',
67
- 'group-data-[odd=true]/tr:before:opacity-100',
68
- 'group-data-[odd=true]/tr:before:-z-10'
69
- ]
70
- }
71
- },
72
- isCompact: {
73
- true: {
74
- td: 'py-1'
75
- },
76
- false: {}
77
- },
78
- isHeaderSticky: {
79
- true: {
80
- thead: 'sticky top-0 z-20 [&>tr]:first:shadow-small'
81
- }
82
- },
83
- isSelectable: {
84
- true: {
85
- tr: 'cursor-default',
86
- td: [
87
- 'group-aria-[selected=false]/tr:group-data-[hover=true]/tr:before:bg-background-200',
88
- 'group-aria-[selected=false]/tr:group-data-[hover=true]/tr:before:opacity-70'
89
- ]
90
- }
91
- },
92
- isMultiSelectable: {
93
- true: {
94
- td: [
95
- 'group-data-[first=true]/tr:first:before:rounded-ss-lg',
96
- 'group-data-[first=true]/tr:last:before:rounded-se-lg',
97
- 'group-data-[middle=true]/tr:before:rounded-none',
98
- 'group-data-[last=true]/tr:first:before:rounded-es-lg',
99
- 'group-data-[last=true]/tr:last:before:rounded-ee-lg'
100
- ]
101
- },
102
- false: {
103
- td: [
104
- 'first:before:rounded-s-lg',
105
- 'last:before:rounded-e-lg'
106
- ]
107
- }
108
- },
109
- fullWidth: {
110
- true: {
111
- base: 'w-full',
112
- wrapper: 'w-full',
113
- table: 'w-full'
114
- }
115
- },
116
- align: {
117
- start: {
118
- th: 'text-start',
119
- td: 'text-start'
120
- },
121
- center: {
122
- th: 'text-center',
123
- td: 'text-center'
124
- },
125
- end: {
126
- th: 'text-end',
127
- td: 'text-end'
128
- }
129
- }
130
- },
131
- defaultVariants: {
132
- layout: 'auto',
133
- shadow: 'none',
134
- radius: 'none',
135
- color: 'default',
136
- size: 'md',
137
- isCompact: false,
138
- hideHeader: false,
139
- isStriped: false,
140
- fullWidth: true,
141
- align: 'start'
142
- }
143
- });
144
- const table_extend = ExtendedTable;
145
- export { table_extend as default };