@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/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-CQ7w5dl6.js";
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 t, $ as i, C as I, a0 as r, e as d, f as u, a1 as C, a2 as g, a3 as b, a4 as T, a5 as h, a6 as F, a7 as x, g as D, a8 as B, a9 as L, aa as p, ab as H, D as E, h as S, E as m, ac as v, ad as P, ae as f, af as O, ah as R, ag as w, F as y, k, o as M, i as A, n as W, l as _, p as q, m as z, ai as G, q as J, O as N, Q as U, U as V, V as Y, W as j, X as K, aj as Q, ak as X, I as Z, al as $, am as aa, J as sa, Y as oa, L as ea, r as na, s as la, M as ca, t as ta, w as ia, an as Ia, ao as ra, P as da, R as ua, ap as Ca, aq as ga, ar as ba, as as Ta, S as ha, at as Fa, au as xa, x as Da, y as Ba, T as La, av as pa, u as Ha, v as Ea, aw as Sa, z as ma, G as va, H as Pa, K as fa, N as Oa, Z as Ra, ax as wa, ay as ya, _ as ka, az as Ma } from "./index-CQ7w5dl6.js";
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
- t as Button,
9
- i as CalendarIcon,
10
- I as Card,
11
- r as CheckIcon,
12
- d as Checkbox,
13
- u as CheckboxIcon,
14
- C as ChevronDoubleLeftIcon,
15
- g as ChevronDoubleRightIcon,
16
- b as ChevronLeftIcon,
17
- T as ChevronRightIcon,
18
- h as CircleIcon,
19
- F as CloseIcon,
20
- x as CogWheelIcon,
21
- D as ConfirmationDialog,
22
- B as DashIcon,
23
- L as DatabaseIcon,
24
- p as DeleteIcon,
25
- H as DetailsIcon,
26
- E as Dialog,
27
- S as DynamicIcon,
28
- m as EMPTY_OPTION_ID,
29
- v as EarthIcon,
30
- P as ErrorFilledIcon,
31
- f as ErrorOutlinedIcon,
32
- O as ExpandDownIcon,
33
- R as ExpandIcon,
34
- w as ExpandRightIcon,
35
- y as Field,
36
- k as FieldContent,
37
- M as FieldGroup,
38
- A as FieldLabel,
39
- W as FieldLegend,
40
- _ as FieldMessage,
41
- q as FieldSeparator,
42
- z as FieldSet,
43
- G as FilterIcon,
44
- J as FlowTile,
45
- N as H1,
46
- U as H2,
47
- V as H3,
48
- Y as H4,
49
- j as H5,
50
- K as H6,
51
- Q as HourglassCircleIcon,
52
- X as HourglassFilledIcon,
53
- Z as IconButton,
54
- $ as IdeaIcon,
55
- aa as InfoOutlinedIcon,
56
- sa as JsonEditor,
57
- oa as Label,
58
- ea as List,
59
- na as ListItem,
60
- la as Logo,
61
- ca as Menu,
62
- ta as MultiSelect,
63
- ia as Pagination,
64
- Ia as PlayIcon,
65
- ra as PlusIcon,
66
- da as Popover,
67
- ua as RadioButton,
68
- Ca as RecycleIcon,
69
- ga as ReloadIcon,
70
- ba as SaveIcon,
71
- Ta as SearchIcon,
72
- ha as Select,
73
- Fa as SuccessFilledIcon,
74
- xa as SuccessOutlinedIcon,
75
- Da as Tab,
76
- Ba as TabPanel,
77
- La as Table,
78
- pa as TableArrowIcon,
79
- Ha as TableCell,
80
- Ea as TableHeaderCell,
81
- Sa as TableIcon,
82
- ma as Tag,
83
- va as TagList,
84
- Pa as TextBox,
85
- fa as Toast,
86
- Oa as Toaster,
87
- Ra as UnstyledButton,
88
- wa as WarningFilledIcon,
89
- ya as WarningOutlinedIcon,
90
- ka as icons,
91
- Ma as useViewportCollision
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
  };
@@ -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: #ff4d4f4d;
161
- --background-success: #52c41a33;
162
- --background-warning: #ffa50033;
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.13.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",