@grasp-labs/ds-react-components 0.13.0 → 0.14.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/dialog/Dialog.d.ts +3 -1
- package/dist/components/drawer/Drawer.d.ts +13 -0
- package/dist/components/drawer/index.d.ts +1 -0
- package/dist/components/errorBoundary/ErrorBoundary.d.ts +26 -0
- package/dist/components/errorBoundary/index.d.ts +1 -0
- package/dist/components/errorPage/ErrorPage.d.ts +11 -0
- package/dist/components/errorPage/index.d.ts +1 -0
- package/dist/components/jsonEditor/config.d.ts +3 -0
- package/dist/components/popover/Popover.d.ts +1 -3
- package/dist/components/portal/Portal.d.ts +10 -0
- package/dist/components/portal/index.d.ts +1 -0
- package/dist/components/spinner/CenteredSpinner.d.ts +12 -0
- package/dist/components/spinner/Spinner.d.ts +11 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/table/Table.d.ts +1 -21
- package/dist/components/table/index.d.ts +3 -3
- package/dist/components/table/types.d.ts +16 -0
- package/dist/components/toast/Toaster.d.ts +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useDropdownPosition.d.ts +12 -0
- package/dist/{index-CQ7w5dl6.js → index-CDEDmkC7.js} +3184 -2896
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/{index.esm-DgyjJxy1.js → index.esm-BRuCtMqY.js} +1 -1
- package/dist/index.js +92 -85
- package/dist/tailwind-styles.css +35 -77
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,10 @@ export * from './components/button';
|
|
|
7
7
|
export * from './components/card';
|
|
8
8
|
export * from './components/checkbox';
|
|
9
9
|
export * from './components/dialog';
|
|
10
|
+
export * from './components/drawer';
|
|
10
11
|
export * from './components/dynamicIcon';
|
|
12
|
+
export * from './components/errorBoundary';
|
|
13
|
+
export * from './components/errorPage';
|
|
11
14
|
export * from './components/field';
|
|
12
15
|
export * from './components/flow';
|
|
13
16
|
export * from './components/iconButton';
|
|
@@ -17,8 +20,10 @@ export * from './components/logo';
|
|
|
17
20
|
export * from './components/menu';
|
|
18
21
|
export * from './components/multiSelect';
|
|
19
22
|
export * from './components/popover';
|
|
23
|
+
export * from './components/portal';
|
|
20
24
|
export * from './components/radioButton';
|
|
21
25
|
export * from './components/select';
|
|
26
|
+
export * from './components/spinner';
|
|
22
27
|
export * from './components/table';
|
|
23
28
|
export * from './components/tabPanel';
|
|
24
29
|
export * from './components/tag';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o } from "./index-
|
|
1
|
+
import { j as o } from "./index-CDEDmkC7.js";
|
|
2
2
|
import { useState as G, useEffect as Oe, createContext as Xt, useRef as ce, useContext as Zt, useMemo as le, useCallback as Ie } from "react";
|
|
3
3
|
const Be = (e, t, n, r, a) => {
|
|
4
4
|
if (!r) throw new Error(a ?? `Invalid property path: ${t}
|
package/dist/index.js
CHANGED
|
@@ -1,92 +1,99 @@
|
|
|
1
|
-
import { A as o, b as e, B as n, a as l, c, d as
|
|
1
|
+
import { A as o, b as e, B as n, a as l, c, d as r, a5 as t, C as i, y as I, a6 as d, e as u, f as C, a7 as g, a8 as b, a9 as T, aa as h, ab as F, ac as D, ad as p, g as B, ae as x, af as E, ag as L, ah as P, D as S, h as H, i as m, t as v, ai as w, E as f, aj as y, ak as O, k as R, al as k, an as A, am as M, F as W, m as G, q as _, l as q, p as z, n as J, r as N, o as U, ao as V, s as Y, Y as j, Z as K, _ as Q, $ as X, a0 as Z, a1 as $, ap as aa, aq as sa, I as oa, ar as ea, as as na, J as la, a2 as ca, L as ra, u as ta, v as ia, M as Ia, w as da, G as ua, at as Ca, au as ga, P as ba, x as Ta, R as ha, av as Fa, aw as Da, ax as pa, ay as Ba, S as xa, z as Ea, az as La, aA as Pa, N as Sa, O as Ha, T as ma, aB as va, H as wa, K as fa, aC as ya, Q as Oa, U as Ra, V as ka, W as Aa, X as Ma, a3 as Wa, aD as Ga, aE as _a, a4 as qa, aF as za, aG as Ja } from "./index-CDEDmkC7.js";
|
|
2
2
|
export {
|
|
3
3
|
o as Alert,
|
|
4
4
|
e as AnimatedList,
|
|
5
5
|
n as BaseButton,
|
|
6
6
|
l as BaseTextBox,
|
|
7
7
|
c as Breadcrumb,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
d as
|
|
13
|
-
u as
|
|
14
|
-
C as
|
|
15
|
-
g as
|
|
16
|
-
b as
|
|
17
|
-
T as
|
|
18
|
-
h as
|
|
19
|
-
F as
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
B as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
S as
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
k as
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
W as
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
J as
|
|
45
|
-
N as
|
|
46
|
-
U as
|
|
47
|
-
V as
|
|
48
|
-
Y as
|
|
49
|
-
j as
|
|
50
|
-
K as
|
|
51
|
-
Q as
|
|
52
|
-
X as
|
|
53
|
-
Z as
|
|
54
|
-
$ as
|
|
55
|
-
aa as
|
|
56
|
-
sa as
|
|
57
|
-
oa as
|
|
58
|
-
ea as
|
|
59
|
-
na as
|
|
60
|
-
la as
|
|
61
|
-
ca as
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
da as
|
|
67
|
-
ua as
|
|
68
|
-
Ca as
|
|
69
|
-
ga as
|
|
70
|
-
ba as
|
|
71
|
-
Ta as
|
|
72
|
-
ha as
|
|
73
|
-
Fa as
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
Ba as
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
Sa as
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
ka as
|
|
91
|
-
|
|
8
|
+
r as Button,
|
|
9
|
+
t as CalendarIcon,
|
|
10
|
+
i as Card,
|
|
11
|
+
I as CenteredSpinner,
|
|
12
|
+
d as CheckIcon,
|
|
13
|
+
u as Checkbox,
|
|
14
|
+
C as CheckboxIcon,
|
|
15
|
+
g as ChevronDoubleLeftIcon,
|
|
16
|
+
b as ChevronDoubleRightIcon,
|
|
17
|
+
T as ChevronLeftIcon,
|
|
18
|
+
h as ChevronRightIcon,
|
|
19
|
+
F as CircleIcon,
|
|
20
|
+
D as CloseIcon,
|
|
21
|
+
p as CogWheelIcon,
|
|
22
|
+
B as ConfirmationDialog,
|
|
23
|
+
x as DashIcon,
|
|
24
|
+
E as DatabaseIcon,
|
|
25
|
+
L as DeleteIcon,
|
|
26
|
+
P as DetailsIcon,
|
|
27
|
+
S as Dialog,
|
|
28
|
+
H as Drawer,
|
|
29
|
+
m as DynamicIcon,
|
|
30
|
+
v as EMPTY_OPTION_ID,
|
|
31
|
+
w as EarthIcon,
|
|
32
|
+
f as ErrorBoundary,
|
|
33
|
+
y as ErrorFilledIcon,
|
|
34
|
+
O as ErrorOutlinedIcon,
|
|
35
|
+
R as ErrorPage,
|
|
36
|
+
k as ExpandDownIcon,
|
|
37
|
+
A as ExpandIcon,
|
|
38
|
+
M as ExpandRightIcon,
|
|
39
|
+
W as Field,
|
|
40
|
+
G as FieldContent,
|
|
41
|
+
_ as FieldGroup,
|
|
42
|
+
q as FieldLabel,
|
|
43
|
+
z as FieldLegend,
|
|
44
|
+
J as FieldMessage,
|
|
45
|
+
N as FieldSeparator,
|
|
46
|
+
U as FieldSet,
|
|
47
|
+
V as FilterIcon,
|
|
48
|
+
Y as FlowTile,
|
|
49
|
+
j as H1,
|
|
50
|
+
K as H2,
|
|
51
|
+
Q as H3,
|
|
52
|
+
X as H4,
|
|
53
|
+
Z as H5,
|
|
54
|
+
$ as H6,
|
|
55
|
+
aa as HourglassCircleIcon,
|
|
56
|
+
sa as HourglassFilledIcon,
|
|
57
|
+
oa as IconButton,
|
|
58
|
+
ea as IdeaIcon,
|
|
59
|
+
na as InfoOutlinedIcon,
|
|
60
|
+
la as JsonEditor,
|
|
61
|
+
ca as Label,
|
|
62
|
+
ra as List,
|
|
63
|
+
ta as ListItem,
|
|
64
|
+
ia as Logo,
|
|
65
|
+
Ia as Menu,
|
|
66
|
+
da as MultiSelect,
|
|
67
|
+
ua as Pagination,
|
|
68
|
+
Ca as PlayIcon,
|
|
69
|
+
ga as PlusIcon,
|
|
70
|
+
ba as Popover,
|
|
71
|
+
Ta as Portal,
|
|
72
|
+
ha as RadioButton,
|
|
73
|
+
Fa as RecycleIcon,
|
|
74
|
+
Da as ReloadIcon,
|
|
75
|
+
pa as SaveIcon,
|
|
76
|
+
Ba as SearchIcon,
|
|
77
|
+
xa as Select,
|
|
78
|
+
Ea as Spinner,
|
|
79
|
+
La as SuccessFilledIcon,
|
|
80
|
+
Pa as SuccessOutlinedIcon,
|
|
81
|
+
Sa as Tab,
|
|
82
|
+
Ha as TabPanel,
|
|
83
|
+
ma as Table,
|
|
84
|
+
va as TableArrowIcon,
|
|
85
|
+
wa as TableCell,
|
|
86
|
+
fa as TableHeaderCell,
|
|
87
|
+
ya as TableIcon,
|
|
88
|
+
Oa as Tag,
|
|
89
|
+
Ra as TagList,
|
|
90
|
+
ka as TextBox,
|
|
91
|
+
Aa as Toast,
|
|
92
|
+
Ma as Toaster,
|
|
93
|
+
Wa as UnstyledButton,
|
|
94
|
+
Ga as WarningFilledIcon,
|
|
95
|
+
_a as WarningOutlinedIcon,
|
|
96
|
+
qa as icons,
|
|
97
|
+
za as useDropdownPosition,
|
|
98
|
+
Ja as useViewportCollision
|
|
92
99
|
};
|
package/dist/tailwind-styles.css
CHANGED
|
@@ -39,6 +39,12 @@
|
|
|
39
39
|
--shadow-md: 0 0 12px 2px rgba(100, 103, 198, 0.25);
|
|
40
40
|
|
|
41
41
|
--animate-fadeIn: fadeIn;
|
|
42
|
+
|
|
43
|
+
--z-index-toast: 70;
|
|
44
|
+
--z-index-dropdown: 60;
|
|
45
|
+
--z-index-drawer: 50;
|
|
46
|
+
--z-index-popover: 50;
|
|
47
|
+
--z-index-dialog: 50;
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
@theme inline {
|
|
@@ -77,77 +83,6 @@
|
|
|
77
83
|
:root {
|
|
78
84
|
--inter: Inter, sans-serif;
|
|
79
85
|
--font-base: 16px;
|
|
80
|
-
--primary: rgba(100, 103, 198, 1);
|
|
81
|
-
--primary-light: rgba(167, 164, 224, 1);
|
|
82
|
-
--primary-super-light: rgba(239, 240, 249, 1);
|
|
83
|
-
--secondary: rgba(217, 217, 217, 1);
|
|
84
|
-
--text: rgba(34, 28, 53, 1);
|
|
85
|
-
--text-contrast: rgba(247, 246, 247, 1);
|
|
86
|
-
--text-disabled: rgba(191, 191, 191, 1);
|
|
87
|
-
--background: rgba(247, 246, 247, 1);
|
|
88
|
-
--background-disabled: rgba(240, 240, 240, 1);
|
|
89
|
-
--background-success: rgba(82, 196, 26, 0.20000000298023224);
|
|
90
|
-
--background-error: rgba(255, 77, 79, 0.30000001192092896);
|
|
91
|
-
--background-warning: rgba(255, 165, 0, 0.20000000298023224);
|
|
92
|
-
--contrast: rgba(255, 255, 255, 1);
|
|
93
|
-
--error: rgba(255, 77, 79, 1);
|
|
94
|
-
--error-light: rgba(255, 148, 149, 1);
|
|
95
|
-
--success: rgba(82, 196, 26, 1);
|
|
96
|
-
--warning: rgba(255, 165, 0, 1);
|
|
97
|
-
--shade: rgba(240, 240, 240, 1);
|
|
98
|
-
--shade-light: rgba(252, 252, 254, 1);
|
|
99
|
-
--mask: rgba(0, 0, 0, 0.44999998807907104);
|
|
100
|
-
--elevation-dialog: 9999;
|
|
101
|
-
--elevation-toast: 99999;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.dark {
|
|
105
|
-
--primary: rgba(100, 103, 198, 1);
|
|
106
|
-
--primary-light: rgba(167, 164, 224, 1);
|
|
107
|
-
--primary-super-light: rgba(70, 58, 109, 1);
|
|
108
|
-
--secondary: rgba(79, 78, 78, 1);
|
|
109
|
-
--text: rgba(247, 246, 247, 1);
|
|
110
|
-
--text-contrast: rgba(34, 28, 53, 1);
|
|
111
|
-
--text-disabled: rgba(100, 100, 100, 1);
|
|
112
|
-
--background: rgba(34, 28, 53, 1);
|
|
113
|
-
--background-disabled: rgba(65, 65, 65, 1);
|
|
114
|
-
--background-success: rgba(82, 196, 26, 0.2);
|
|
115
|
-
--background-error: rgba(255, 77, 79, 0.3);
|
|
116
|
-
--background-warning: rgba(255, 165, 0, 0.2);
|
|
117
|
-
--contrast: rgba(34, 28, 53, 1);
|
|
118
|
-
--error: rgba(255, 77, 79, 1);
|
|
119
|
-
--error-light: rgba(255, 148, 149, 1);
|
|
120
|
-
--success: rgba(82, 196, 26, 1);
|
|
121
|
-
--warning: rgba(255, 165, 0, 1);
|
|
122
|
-
--shade: rgba(52, 43, 81, 1);
|
|
123
|
-
--shade-light: rgba(43, 35, 67, 1);
|
|
124
|
-
--mask: rgba(255, 255, 255, 0.45);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.alt1 {
|
|
128
|
-
--primary: #1c1c1e;
|
|
129
|
-
--primary-light: #8e8e93;
|
|
130
|
-
--primary-super-light: #f2f2f5;
|
|
131
|
-
--secondary: #c7c7cc;
|
|
132
|
-
--text: #1c1c1e;
|
|
133
|
-
--text-contrast: #fafafa;
|
|
134
|
-
--text-disabled: #8e8e93;
|
|
135
|
-
--background: #fcfcfc;
|
|
136
|
-
--background-disabled: #f5f5f5;
|
|
137
|
-
--background-error: #dc354533;
|
|
138
|
-
--background-success: #28a74533;
|
|
139
|
-
--background-warning: #ffc10733;
|
|
140
|
-
--contrast: #ffffff;
|
|
141
|
-
--error: #dc3545;
|
|
142
|
-
--error-light: #edb3b8;
|
|
143
|
-
--success: #28a745;
|
|
144
|
-
--warning: #ffc107;
|
|
145
|
-
--shade: #e5e5ea;
|
|
146
|
-
--shade-light: #f2f2f5;
|
|
147
|
-
--mask: #00000073;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.alt2 {
|
|
151
86
|
--primary: #2a2a2a;
|
|
152
87
|
--primary-light: #5c5c5c;
|
|
153
88
|
--primary-super-light: #e0e0df;
|
|
@@ -157,17 +92,40 @@
|
|
|
157
92
|
--text-disabled: #acaaa9;
|
|
158
93
|
--background: #f5f4f3;
|
|
159
94
|
--background-disabled: #eaeaea;
|
|
160
|
-
--background-error: #
|
|
161
|
-
--background-success: #
|
|
162
|
-
--background-warning: #
|
|
95
|
+
--background-error: #ff4d4f1a;
|
|
96
|
+
--background-success: #52c41a1a;
|
|
97
|
+
--background-warning: #ffa5001a;
|
|
163
98
|
--contrast: #ffffff;
|
|
164
99
|
--error: #ff4d4f;
|
|
165
100
|
--error-light: #ff9495;
|
|
166
|
-
--mask: #2a2a2a73;
|
|
167
|
-
--shade: #d1d1d1;
|
|
168
|
-
--shade-light: #f3f2f4;
|
|
169
101
|
--success: #52c41a;
|
|
170
102
|
--warning: #ffa500;
|
|
103
|
+
--shade: #d1d1d1;
|
|
104
|
+
--shade-light: #f3f2f4;
|
|
105
|
+
--mask: #2a2a2a73;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.dark {
|
|
109
|
+
--primary: #e0e0df;
|
|
110
|
+
--primary-light: #b8b8b8;
|
|
111
|
+
--primary-super-light: #3a3a3a;
|
|
112
|
+
--secondary: #8b8b8b;
|
|
113
|
+
--text: #f8f7f6;
|
|
114
|
+
--text-contrast: #2b292a;
|
|
115
|
+
--text-disabled: #6b6b6b;
|
|
116
|
+
--background: #1a1a1a;
|
|
117
|
+
--background-disabled: #2a2a2a;
|
|
118
|
+
--background-error: #ff4d4f1a;
|
|
119
|
+
--background-success: #52c41a1a;
|
|
120
|
+
--background-warning: #ffa5001a;
|
|
121
|
+
--contrast: #2a2a2a;
|
|
122
|
+
--error: #ff6b6d;
|
|
123
|
+
--error-light: #ff4d4f;
|
|
124
|
+
--success: #6fdb3f;
|
|
125
|
+
--warning: #ffb733;
|
|
126
|
+
--shade: #3f3f3f;
|
|
127
|
+
--shade-light: #2f2f2f;
|
|
128
|
+
--mask: #ffffff73;
|
|
171
129
|
}
|
|
172
130
|
|
|
173
131
|
body {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grasp-labs/ds-react-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "tsc && vite build",
|
|
27
|
+
"build": "tsc -b --noEmit && vite build",
|
|
28
28
|
"lint": "eslint .",
|
|
29
29
|
"lint:fix": "eslint . --fix",
|
|
30
30
|
"storybook": "storybook dev -p 6006",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"@types/react": "^19.1.10",
|
|
60
60
|
"@types/react-dom": "^19.1.7",
|
|
61
61
|
"@vitejs/plugin-react": "^5.1.0",
|
|
62
|
-
"@vitest/browser": "4.0.5",
|
|
62
|
+
"@vitest/browser": "^4.0.5",
|
|
63
63
|
"@vitest/browser-playwright": "^4.0.5",
|
|
64
|
-
"@vitest/coverage-v8": "4.0.5",
|
|
64
|
+
"@vitest/coverage-v8": "^4.0.5",
|
|
65
65
|
"@xyflow/react": "^12.8.6",
|
|
66
66
|
"downshift": "^9.0.10",
|
|
67
67
|
"eslint": "^9.32.0",
|