@ultraviolet/ui 3.7.1 → 3.8.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/Alert/styles.css.d.ts +1 -1
- package/dist/components/Avatar/index.d.ts.map +1 -1
- package/dist/components/Avatar/index.js +45 -41
- package/dist/components/Avatar/styles.css.js +1 -0
- package/dist/components/Avatar/variables.css.js +0 -1
- package/dist/components/Banner/index.d.ts.map +1 -1
- package/dist/components/Banner/index.js +1 -1
- package/dist/components/Banner/styles.css.d.ts +1 -1
- package/dist/components/BarStack/styles.css.js +1 -1
- package/dist/components/Button/index.d.ts +41 -22
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +18 -10
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +44 -38
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/DateInput/helpersLocale.d.ts.map +1 -1
- package/dist/components/DateInput/helpersLocale.js +8 -5
- package/dist/components/Dialog/constants.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts +20 -5
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Drawer/styles.css.d.ts +1 -1
- package/dist/components/EmptyState/index.d.ts.map +1 -1
- package/dist/components/EmptyState/index.js +10 -1
- package/dist/components/EmptyState/styles.css.d.ts +1 -1
- package/dist/components/ExpandableCard/index.d.ts.map +1 -1
- package/dist/components/ExpandableCard/index.js +28 -20
- package/dist/components/FileInput/components/List.d.ts.map +1 -1
- package/dist/components/FileInput/components/List.js +15 -2
- package/dist/components/FileInput/index.d.ts.map +1 -1
- package/dist/components/GlobalAlert/GlobalAlertLink.d.ts +3 -1
- package/dist/components/GlobalAlert/GlobalAlertLink.d.ts.map +1 -1
- package/dist/components/GlobalAlert/index.d.ts +61 -1
- package/dist/components/GlobalAlert/index.d.ts.map +1 -1
- package/dist/components/Link/index.d.ts +23 -2
- package/dist/components/Link/index.d.ts.map +1 -1
- package/dist/components/Link/index.js +26 -14
- package/dist/components/List/HeaderCell.d.ts.map +1 -1
- package/dist/components/List/HeaderCell.js +3 -1
- package/dist/components/List/ListContext.d.ts.map +1 -1
- package/dist/components/List/ListContext.js +3 -1
- package/dist/components/List/Row.d.ts.map +1 -1
- package/dist/components/List/Row.js +14 -5
- package/dist/components/List/SkeletonRows.d.ts.map +1 -1
- package/dist/components/List/SkeletonRows.js +0 -1
- package/dist/components/List/styles.css.d.ts +1 -0
- package/dist/components/List/styles.css.d.ts.map +1 -1
- package/dist/components/List/styles.css.js +3 -1
- package/dist/components/List/variables.css.js +1 -1
- package/dist/components/Menu/helpers.d.ts +1 -1
- package/dist/components/Menu/index.d.ts +1 -1
- package/dist/components/Meter/index.d.ts.map +1 -1
- package/dist/components/Meter/index.js +43 -40
- package/dist/components/Modal/components/Dialog.d.ts.map +1 -1
- package/dist/components/Modal/components/Dialog.js +10 -1
- package/dist/components/NumberInput/styles.css.d.ts +1 -1
- package/dist/components/Pagination/styles.css.d.ts +2 -2
- package/dist/components/ProgressBar/styles.css.d.ts +1 -1
- package/dist/components/Radio/index.js +22 -22
- package/dist/components/Row/styles.css.d.ts +44 -44
- package/dist/components/SelectInput/components/Dropdown.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown.js +52 -56
- package/dist/components/SelectInput/components/selectBar.css.d.ts +1 -1
- package/dist/components/SelectableCard/IllustrationContainer.d.ts +8 -0
- package/dist/components/SelectableCard/IllustrationContainer.d.ts.map +1 -0
- package/dist/components/SelectableCard/IllustrationContainer.js +66 -0
- package/dist/components/SelectableCard/MultiStateInput.d.ts +3 -0
- package/dist/components/SelectableCard/MultiStateInput.d.ts.map +1 -0
- package/dist/components/SelectableCard/MultiStateInput.js +94 -0
- package/dist/components/SelectableCard/SelectableCard.d.ts +7 -0
- package/dist/components/SelectableCard/SelectableCard.d.ts.map +1 -0
- package/dist/components/SelectableCard/SelectableCard.js +165 -0
- package/dist/components/SelectableCard/index.d.ts +1 -33
- package/dist/components/SelectableCard/index.d.ts.map +1 -1
- package/dist/components/SelectableCard/types.d.ts +32 -0
- package/dist/components/SelectableCard/types.d.ts.map +1 -0
- package/dist/components/SelectableCardGroup/index.js +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Option.js +1 -1
- package/dist/components/Separator/index.d.ts.map +1 -1
- package/dist/components/Separator/index.js +1 -0
- package/dist/components/Skeleton/Donut.d.ts.map +1 -1
- package/dist/components/Skeleton/Donut.js +12 -9
- package/dist/components/Slider/styles.css.d.ts +1 -1
- package/dist/components/Stack/styles.css.d.ts +46 -46
- package/dist/components/Stepper/styles.css.d.ts +1 -1
- package/dist/components/SwitchButton/Option.js +1 -1
- package/dist/components/SwitchButton/index.d.ts.map +1 -1
- package/dist/components/SwitchButton/index.js +7 -4
- package/dist/components/SwitchButton/styles.css.d.ts +2 -2
- package/dist/components/SwitchButton/styles.css.d.ts.map +1 -1
- package/dist/components/Table/HeaderRow.d.ts.map +1 -1
- package/dist/components/Table/HeaderRow.js +22 -25
- package/dist/components/Table/SkeletonRows.d.ts.map +1 -1
- package/dist/components/Table/SkeletonRows.js +4 -13
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/TextInput/index.d.ts.map +1 -1
- package/dist/components/TextInput/index.js +6 -1
- package/dist/components/TextInput/styles.css.d.ts +1 -1
- package/dist/components/TextInput/styles.css.d.ts.map +1 -1
- package/dist/components/Toggle/index.d.ts +2 -7
- package/dist/components/Toggle/index.d.ts.map +1 -1
- package/dist/components/Toggle/index.js +13 -1
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/UnitInput/index.d.ts.map +1 -1
- package/dist/components/UnitInput/index.js +2 -1
- package/dist/components/UnitInput/styles.css.d.ts +2 -2
- package/dist/components/VerificationCode/styles.css.d.ts +1 -1
- package/dist/components/compositions/OptionSelector/__mock__/resources.d.ts.map +1 -1
- package/dist/components/compositions/OptionSelector/index.js +1 -1
- package/dist/index.js +3 -2
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +46 -4
- package/dist/theme/index.d.ts +3 -2
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +1 -2
- package/dist/ui.css +1 -1
- package/package.json +2 -2
- package/dist/components/SelectableCard/index.js +0 -232
|
@@ -6,23 +6,23 @@ export type JustifyContentType = (typeof justifyContentValues)[number];
|
|
|
6
6
|
export declare const responsiveProperties: {
|
|
7
7
|
conditions: {
|
|
8
8
|
defaultCondition: "xxsmall";
|
|
9
|
-
conditionNames: ("
|
|
10
|
-
responsiveArray: ("
|
|
9
|
+
conditionNames: ("small" | "large" | "medium" | "xlarge" | "xsmall" | "xxsmall")[];
|
|
10
|
+
responsiveArray: ("small" | "large" | "medium" | "xlarge" | "xsmall" | "xxsmall")[] & {
|
|
11
11
|
length: 5;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
styles: {
|
|
15
15
|
alignItems: {
|
|
16
|
-
responsiveArray: ("
|
|
16
|
+
responsiveArray: ("small" | "large" | "medium" | "xlarge" | "xsmall" | "xxsmall")[] & {
|
|
17
17
|
length: 5;
|
|
18
18
|
};
|
|
19
19
|
values: {
|
|
20
20
|
normal: {
|
|
21
21
|
defaultClass: string;
|
|
22
22
|
conditions: {
|
|
23
|
+
small: string;
|
|
23
24
|
large: string;
|
|
24
25
|
medium: string;
|
|
25
|
-
small: string;
|
|
26
26
|
xlarge: string;
|
|
27
27
|
xsmall: string;
|
|
28
28
|
xxsmall: string;
|
|
@@ -31,9 +31,9 @@ export declare const responsiveProperties: {
|
|
|
31
31
|
stretch: {
|
|
32
32
|
defaultClass: string;
|
|
33
33
|
conditions: {
|
|
34
|
+
small: string;
|
|
34
35
|
large: string;
|
|
35
36
|
medium: string;
|
|
36
|
-
small: string;
|
|
37
37
|
xlarge: string;
|
|
38
38
|
xsmall: string;
|
|
39
39
|
xxsmall: string;
|
|
@@ -42,9 +42,9 @@ export declare const responsiveProperties: {
|
|
|
42
42
|
center: {
|
|
43
43
|
defaultClass: string;
|
|
44
44
|
conditions: {
|
|
45
|
+
small: string;
|
|
45
46
|
large: string;
|
|
46
47
|
medium: string;
|
|
47
|
-
small: string;
|
|
48
48
|
xlarge: string;
|
|
49
49
|
xsmall: string;
|
|
50
50
|
xxsmall: string;
|
|
@@ -53,9 +53,9 @@ export declare const responsiveProperties: {
|
|
|
53
53
|
end: {
|
|
54
54
|
defaultClass: string;
|
|
55
55
|
conditions: {
|
|
56
|
+
small: string;
|
|
56
57
|
large: string;
|
|
57
58
|
medium: string;
|
|
58
|
-
small: string;
|
|
59
59
|
xlarge: string;
|
|
60
60
|
xsmall: string;
|
|
61
61
|
xxsmall: string;
|
|
@@ -64,9 +64,9 @@ export declare const responsiveProperties: {
|
|
|
64
64
|
"flex-end": {
|
|
65
65
|
defaultClass: string;
|
|
66
66
|
conditions: {
|
|
67
|
+
small: string;
|
|
67
68
|
large: string;
|
|
68
69
|
medium: string;
|
|
69
|
-
small: string;
|
|
70
70
|
xlarge: string;
|
|
71
71
|
xsmall: string;
|
|
72
72
|
xxsmall: string;
|
|
@@ -75,9 +75,9 @@ export declare const responsiveProperties: {
|
|
|
75
75
|
"flex-start": {
|
|
76
76
|
defaultClass: string;
|
|
77
77
|
conditions: {
|
|
78
|
+
small: string;
|
|
78
79
|
large: string;
|
|
79
80
|
medium: string;
|
|
80
|
-
small: string;
|
|
81
81
|
xlarge: string;
|
|
82
82
|
xsmall: string;
|
|
83
83
|
xxsmall: string;
|
|
@@ -86,9 +86,9 @@ export declare const responsiveProperties: {
|
|
|
86
86
|
start: {
|
|
87
87
|
defaultClass: string;
|
|
88
88
|
conditions: {
|
|
89
|
+
small: string;
|
|
89
90
|
large: string;
|
|
90
91
|
medium: string;
|
|
91
|
-
small: string;
|
|
92
92
|
xlarge: string;
|
|
93
93
|
xsmall: string;
|
|
94
94
|
xxsmall: string;
|
|
@@ -97,9 +97,9 @@ export declare const responsiveProperties: {
|
|
|
97
97
|
baseline: {
|
|
98
98
|
defaultClass: string;
|
|
99
99
|
conditions: {
|
|
100
|
+
small: string;
|
|
100
101
|
large: string;
|
|
101
102
|
medium: string;
|
|
102
|
-
small: string;
|
|
103
103
|
xlarge: string;
|
|
104
104
|
xsmall: string;
|
|
105
105
|
xxsmall: string;
|
|
@@ -108,9 +108,9 @@ export declare const responsiveProperties: {
|
|
|
108
108
|
"self-end": {
|
|
109
109
|
defaultClass: string;
|
|
110
110
|
conditions: {
|
|
111
|
+
small: string;
|
|
111
112
|
large: string;
|
|
112
113
|
medium: string;
|
|
113
|
-
small: string;
|
|
114
114
|
xlarge: string;
|
|
115
115
|
xsmall: string;
|
|
116
116
|
xxsmall: string;
|
|
@@ -119,9 +119,9 @@ export declare const responsiveProperties: {
|
|
|
119
119
|
"self-start": {
|
|
120
120
|
defaultClass: string;
|
|
121
121
|
conditions: {
|
|
122
|
+
small: string;
|
|
122
123
|
large: string;
|
|
123
124
|
medium: string;
|
|
124
|
-
small: string;
|
|
125
125
|
xlarge: string;
|
|
126
126
|
xsmall: string;
|
|
127
127
|
xxsmall: string;
|
|
@@ -130,9 +130,9 @@ export declare const responsiveProperties: {
|
|
|
130
130
|
"first baseline": {
|
|
131
131
|
defaultClass: string;
|
|
132
132
|
conditions: {
|
|
133
|
+
small: string;
|
|
133
134
|
large: string;
|
|
134
135
|
medium: string;
|
|
135
|
-
small: string;
|
|
136
136
|
xlarge: string;
|
|
137
137
|
xsmall: string;
|
|
138
138
|
xxsmall: string;
|
|
@@ -141,9 +141,9 @@ export declare const responsiveProperties: {
|
|
|
141
141
|
"last baseline": {
|
|
142
142
|
defaultClass: string;
|
|
143
143
|
conditions: {
|
|
144
|
+
small: string;
|
|
144
145
|
large: string;
|
|
145
146
|
medium: string;
|
|
146
|
-
small: string;
|
|
147
147
|
xlarge: string;
|
|
148
148
|
xsmall: string;
|
|
149
149
|
xxsmall: string;
|
|
@@ -152,9 +152,9 @@ export declare const responsiveProperties: {
|
|
|
152
152
|
"safe center": {
|
|
153
153
|
defaultClass: string;
|
|
154
154
|
conditions: {
|
|
155
|
+
small: string;
|
|
155
156
|
large: string;
|
|
156
157
|
medium: string;
|
|
157
|
-
small: string;
|
|
158
158
|
xlarge: string;
|
|
159
159
|
xsmall: string;
|
|
160
160
|
xxsmall: string;
|
|
@@ -163,9 +163,9 @@ export declare const responsiveProperties: {
|
|
|
163
163
|
"unsafe center": {
|
|
164
164
|
defaultClass: string;
|
|
165
165
|
conditions: {
|
|
166
|
+
small: string;
|
|
166
167
|
large: string;
|
|
167
168
|
medium: string;
|
|
168
|
-
small: string;
|
|
169
169
|
xlarge: string;
|
|
170
170
|
xsmall: string;
|
|
171
171
|
xxsmall: string;
|
|
@@ -174,16 +174,16 @@ export declare const responsiveProperties: {
|
|
|
174
174
|
};
|
|
175
175
|
};
|
|
176
176
|
flexDirection: {
|
|
177
|
-
responsiveArray: ("
|
|
177
|
+
responsiveArray: ("small" | "large" | "medium" | "xlarge" | "xsmall" | "xxsmall")[] & {
|
|
178
178
|
length: 5;
|
|
179
179
|
};
|
|
180
180
|
values: {
|
|
181
181
|
column: {
|
|
182
182
|
defaultClass: string;
|
|
183
183
|
conditions: {
|
|
184
|
+
small: string;
|
|
184
185
|
large: string;
|
|
185
186
|
medium: string;
|
|
186
|
-
small: string;
|
|
187
187
|
xlarge: string;
|
|
188
188
|
xsmall: string;
|
|
189
189
|
xxsmall: string;
|
|
@@ -192,9 +192,9 @@ export declare const responsiveProperties: {
|
|
|
192
192
|
"column-reverse": {
|
|
193
193
|
defaultClass: string;
|
|
194
194
|
conditions: {
|
|
195
|
+
small: string;
|
|
195
196
|
large: string;
|
|
196
197
|
medium: string;
|
|
197
|
-
small: string;
|
|
198
198
|
xlarge: string;
|
|
199
199
|
xsmall: string;
|
|
200
200
|
xxsmall: string;
|
|
@@ -203,9 +203,9 @@ export declare const responsiveProperties: {
|
|
|
203
203
|
row: {
|
|
204
204
|
defaultClass: string;
|
|
205
205
|
conditions: {
|
|
206
|
+
small: string;
|
|
206
207
|
large: string;
|
|
207
208
|
medium: string;
|
|
208
|
-
small: string;
|
|
209
209
|
xlarge: string;
|
|
210
210
|
xsmall: string;
|
|
211
211
|
xxsmall: string;
|
|
@@ -214,9 +214,9 @@ export declare const responsiveProperties: {
|
|
|
214
214
|
"row-reverse": {
|
|
215
215
|
defaultClass: string;
|
|
216
216
|
conditions: {
|
|
217
|
+
small: string;
|
|
217
218
|
large: string;
|
|
218
219
|
medium: string;
|
|
219
|
-
small: string;
|
|
220
220
|
xlarge: string;
|
|
221
221
|
xsmall: string;
|
|
222
222
|
xxsmall: string;
|
|
@@ -225,16 +225,16 @@ export declare const responsiveProperties: {
|
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
227
|
flexWrap: {
|
|
228
|
-
responsiveArray: ("
|
|
228
|
+
responsiveArray: ("small" | "large" | "medium" | "xlarge" | "xsmall" | "xxsmall")[] & {
|
|
229
229
|
length: 5;
|
|
230
230
|
};
|
|
231
231
|
values: {
|
|
232
232
|
nowrap: {
|
|
233
233
|
defaultClass: string;
|
|
234
234
|
conditions: {
|
|
235
|
+
small: string;
|
|
235
236
|
large: string;
|
|
236
237
|
medium: string;
|
|
237
|
-
small: string;
|
|
238
238
|
xlarge: string;
|
|
239
239
|
xsmall: string;
|
|
240
240
|
xxsmall: string;
|
|
@@ -243,9 +243,9 @@ export declare const responsiveProperties: {
|
|
|
243
243
|
wrap: {
|
|
244
244
|
defaultClass: string;
|
|
245
245
|
conditions: {
|
|
246
|
+
small: string;
|
|
246
247
|
large: string;
|
|
247
248
|
medium: string;
|
|
248
|
-
small: string;
|
|
249
249
|
xlarge: string;
|
|
250
250
|
xsmall: string;
|
|
251
251
|
xxsmall: string;
|
|
@@ -254,9 +254,9 @@ export declare const responsiveProperties: {
|
|
|
254
254
|
"wrap-reverse": {
|
|
255
255
|
defaultClass: string;
|
|
256
256
|
conditions: {
|
|
257
|
+
small: string;
|
|
257
258
|
large: string;
|
|
258
259
|
medium: string;
|
|
259
|
-
small: string;
|
|
260
260
|
xlarge: string;
|
|
261
261
|
xsmall: string;
|
|
262
262
|
xxsmall: string;
|
|
@@ -265,16 +265,16 @@ export declare const responsiveProperties: {
|
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
267
|
gap: {
|
|
268
|
-
responsiveArray: ("
|
|
268
|
+
responsiveArray: ("small" | "large" | "medium" | "xlarge" | "xsmall" | "xxsmall")[] & {
|
|
269
269
|
length: 5;
|
|
270
270
|
};
|
|
271
271
|
values: {
|
|
272
272
|
[x: string]: {
|
|
273
273
|
defaultClass: string;
|
|
274
274
|
conditions: {
|
|
275
|
+
small: string;
|
|
275
276
|
large: string;
|
|
276
277
|
medium: string;
|
|
277
|
-
small: string;
|
|
278
278
|
xlarge: string;
|
|
279
279
|
xsmall: string;
|
|
280
280
|
xxsmall: string;
|
|
@@ -283,16 +283,16 @@ export declare const responsiveProperties: {
|
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
285
|
justifyContent: {
|
|
286
|
-
responsiveArray: ("
|
|
286
|
+
responsiveArray: ("small" | "large" | "medium" | "xlarge" | "xsmall" | "xxsmall")[] & {
|
|
287
287
|
length: 5;
|
|
288
288
|
};
|
|
289
289
|
values: {
|
|
290
290
|
normal: {
|
|
291
291
|
defaultClass: string;
|
|
292
292
|
conditions: {
|
|
293
|
+
small: string;
|
|
293
294
|
large: string;
|
|
294
295
|
medium: string;
|
|
295
|
-
small: string;
|
|
296
296
|
xlarge: string;
|
|
297
297
|
xsmall: string;
|
|
298
298
|
xxsmall: string;
|
|
@@ -301,9 +301,9 @@ export declare const responsiveProperties: {
|
|
|
301
301
|
left: {
|
|
302
302
|
defaultClass: string;
|
|
303
303
|
conditions: {
|
|
304
|
+
small: string;
|
|
304
305
|
large: string;
|
|
305
306
|
medium: string;
|
|
306
|
-
small: string;
|
|
307
307
|
xlarge: string;
|
|
308
308
|
xsmall: string;
|
|
309
309
|
xxsmall: string;
|
|
@@ -312,9 +312,9 @@ export declare const responsiveProperties: {
|
|
|
312
312
|
right: {
|
|
313
313
|
defaultClass: string;
|
|
314
314
|
conditions: {
|
|
315
|
+
small: string;
|
|
315
316
|
large: string;
|
|
316
317
|
medium: string;
|
|
317
|
-
small: string;
|
|
318
318
|
xlarge: string;
|
|
319
319
|
xsmall: string;
|
|
320
320
|
xxsmall: string;
|
|
@@ -323,9 +323,9 @@ export declare const responsiveProperties: {
|
|
|
323
323
|
"space-around": {
|
|
324
324
|
defaultClass: string;
|
|
325
325
|
conditions: {
|
|
326
|
+
small: string;
|
|
326
327
|
large: string;
|
|
327
328
|
medium: string;
|
|
328
|
-
small: string;
|
|
329
329
|
xlarge: string;
|
|
330
330
|
xsmall: string;
|
|
331
331
|
xxsmall: string;
|
|
@@ -334,9 +334,9 @@ export declare const responsiveProperties: {
|
|
|
334
334
|
"space-between": {
|
|
335
335
|
defaultClass: string;
|
|
336
336
|
conditions: {
|
|
337
|
+
small: string;
|
|
337
338
|
large: string;
|
|
338
339
|
medium: string;
|
|
339
|
-
small: string;
|
|
340
340
|
xlarge: string;
|
|
341
341
|
xsmall: string;
|
|
342
342
|
xxsmall: string;
|
|
@@ -345,9 +345,9 @@ export declare const responsiveProperties: {
|
|
|
345
345
|
"space-evenly": {
|
|
346
346
|
defaultClass: string;
|
|
347
347
|
conditions: {
|
|
348
|
+
small: string;
|
|
348
349
|
large: string;
|
|
349
350
|
medium: string;
|
|
350
|
-
small: string;
|
|
351
351
|
xlarge: string;
|
|
352
352
|
xsmall: string;
|
|
353
353
|
xxsmall: string;
|
|
@@ -356,9 +356,9 @@ export declare const responsiveProperties: {
|
|
|
356
356
|
stretch: {
|
|
357
357
|
defaultClass: string;
|
|
358
358
|
conditions: {
|
|
359
|
+
small: string;
|
|
359
360
|
large: string;
|
|
360
361
|
medium: string;
|
|
361
|
-
small: string;
|
|
362
362
|
xlarge: string;
|
|
363
363
|
xsmall: string;
|
|
364
364
|
xxsmall: string;
|
|
@@ -367,9 +367,9 @@ export declare const responsiveProperties: {
|
|
|
367
367
|
center: {
|
|
368
368
|
defaultClass: string;
|
|
369
369
|
conditions: {
|
|
370
|
+
small: string;
|
|
370
371
|
large: string;
|
|
371
372
|
medium: string;
|
|
372
|
-
small: string;
|
|
373
373
|
xlarge: string;
|
|
374
374
|
xsmall: string;
|
|
375
375
|
xxsmall: string;
|
|
@@ -378,9 +378,9 @@ export declare const responsiveProperties: {
|
|
|
378
378
|
end: {
|
|
379
379
|
defaultClass: string;
|
|
380
380
|
conditions: {
|
|
381
|
+
small: string;
|
|
381
382
|
large: string;
|
|
382
383
|
medium: string;
|
|
383
|
-
small: string;
|
|
384
384
|
xlarge: string;
|
|
385
385
|
xsmall: string;
|
|
386
386
|
xxsmall: string;
|
|
@@ -389,9 +389,9 @@ export declare const responsiveProperties: {
|
|
|
389
389
|
"flex-end": {
|
|
390
390
|
defaultClass: string;
|
|
391
391
|
conditions: {
|
|
392
|
+
small: string;
|
|
392
393
|
large: string;
|
|
393
394
|
medium: string;
|
|
394
|
-
small: string;
|
|
395
395
|
xlarge: string;
|
|
396
396
|
xsmall: string;
|
|
397
397
|
xxsmall: string;
|
|
@@ -400,9 +400,9 @@ export declare const responsiveProperties: {
|
|
|
400
400
|
"flex-start": {
|
|
401
401
|
defaultClass: string;
|
|
402
402
|
conditions: {
|
|
403
|
+
small: string;
|
|
403
404
|
large: string;
|
|
404
405
|
medium: string;
|
|
405
|
-
small: string;
|
|
406
406
|
xlarge: string;
|
|
407
407
|
xsmall: string;
|
|
408
408
|
xxsmall: string;
|
|
@@ -411,9 +411,9 @@ export declare const responsiveProperties: {
|
|
|
411
411
|
start: {
|
|
412
412
|
defaultClass: string;
|
|
413
413
|
conditions: {
|
|
414
|
+
small: string;
|
|
414
415
|
large: string;
|
|
415
416
|
medium: string;
|
|
416
|
-
small: string;
|
|
417
417
|
xlarge: string;
|
|
418
418
|
xsmall: string;
|
|
419
419
|
xxsmall: string;
|
|
@@ -425,41 +425,41 @@ export declare const responsiveProperties: {
|
|
|
425
425
|
};
|
|
426
426
|
export declare const sprinkles: ((props: {
|
|
427
427
|
alignItems?: ("normal" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "self-end" | "self-start" | "first baseline" | "last baseline" | "safe center" | "unsafe center" | {
|
|
428
|
+
small?: "normal" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "self-end" | "self-start" | "first baseline" | "last baseline" | "safe center" | "unsafe center" | undefined;
|
|
428
429
|
large?: "normal" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "self-end" | "self-start" | "first baseline" | "last baseline" | "safe center" | "unsafe center" | undefined;
|
|
429
430
|
medium?: "normal" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "self-end" | "self-start" | "first baseline" | "last baseline" | "safe center" | "unsafe center" | undefined;
|
|
430
|
-
small?: "normal" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "self-end" | "self-start" | "first baseline" | "last baseline" | "safe center" | "unsafe center" | undefined;
|
|
431
431
|
xlarge?: "normal" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "self-end" | "self-start" | "first baseline" | "last baseline" | "safe center" | "unsafe center" | undefined;
|
|
432
432
|
xsmall?: "normal" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "self-end" | "self-start" | "first baseline" | "last baseline" | "safe center" | "unsafe center" | undefined;
|
|
433
433
|
xxsmall?: "normal" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "self-end" | "self-start" | "first baseline" | "last baseline" | "safe center" | "unsafe center" | undefined;
|
|
434
434
|
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4 | 5, "normal" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "self-end" | "self-start" | "first baseline" | "last baseline" | "safe center" | "unsafe center" | null>;
|
|
435
435
|
flexDirection?: ("column" | "column-reverse" | "row" | "row-reverse" | {
|
|
436
|
+
small?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
|
|
436
437
|
large?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
|
|
437
438
|
medium?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
|
|
438
|
-
small?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
|
|
439
439
|
xlarge?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
|
|
440
440
|
xsmall?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
|
|
441
441
|
xxsmall?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
|
|
442
442
|
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4 | 5, "column" | "column-reverse" | "row" | "row-reverse" | null>;
|
|
443
443
|
flexWrap?: ("nowrap" | "wrap" | "wrap-reverse" | {
|
|
444
|
+
small?: "nowrap" | "wrap" | "wrap-reverse" | undefined;
|
|
444
445
|
large?: "nowrap" | "wrap" | "wrap-reverse" | undefined;
|
|
445
446
|
medium?: "nowrap" | "wrap" | "wrap-reverse" | undefined;
|
|
446
|
-
small?: "nowrap" | "wrap" | "wrap-reverse" | undefined;
|
|
447
447
|
xlarge?: "nowrap" | "wrap" | "wrap-reverse" | undefined;
|
|
448
448
|
xsmall?: "nowrap" | "wrap" | "wrap-reverse" | undefined;
|
|
449
449
|
xxsmall?: "nowrap" | "wrap" | "wrap-reverse" | undefined;
|
|
450
450
|
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4 | 5, "nowrap" | "wrap" | "wrap-reverse" | null>;
|
|
451
451
|
gap?: (string | {
|
|
452
|
+
small?: string | undefined;
|
|
452
453
|
large?: string | undefined;
|
|
453
454
|
medium?: string | undefined;
|
|
454
|
-
small?: string | undefined;
|
|
455
455
|
xlarge?: string | undefined;
|
|
456
456
|
xsmall?: string | undefined;
|
|
457
457
|
xxsmall?: string | undefined;
|
|
458
458
|
} | undefined) | import("@vanilla-extract/sprinkles").ResponsiveArray<1 | 2 | 3 | 4 | 5, string | null>;
|
|
459
459
|
justifyContent?: ("normal" | "left" | "right" | "space-around" | "space-between" | "space-evenly" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | {
|
|
460
|
+
small?: "normal" | "left" | "right" | "space-around" | "space-between" | "space-evenly" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | undefined;
|
|
460
461
|
large?: "normal" | "left" | "right" | "space-around" | "space-between" | "space-evenly" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | undefined;
|
|
461
462
|
medium?: "normal" | "left" | "right" | "space-around" | "space-between" | "space-evenly" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | undefined;
|
|
462
|
-
small?: "normal" | "left" | "right" | "space-around" | "space-between" | "space-evenly" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | undefined;
|
|
463
463
|
xlarge?: "normal" | "left" | "right" | "space-around" | "space-between" | "space-evenly" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | undefined;
|
|
464
464
|
xsmall?: "normal" | "left" | "right" | "space-around" | "space-between" | "space-evenly" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | undefined;
|
|
465
465
|
xxsmall?: "normal" | "left" | "right" | "space-around" | "space-between" | "space-evenly" | "stretch" | "center" | "end" | "flex-end" | "flex-start" | "start" | undefined;
|
|
@@ -53,7 +53,7 @@ export declare const stepperContainerRecipe: import("@vanilla-extract/recipes").
|
|
|
53
53
|
small: {};
|
|
54
54
|
};
|
|
55
55
|
}>;
|
|
56
|
-
export declare const animationStepperContainer: Record<"
|
|
56
|
+
export declare const animationStepperContainer: Record<"small" | "medium", string>;
|
|
57
57
|
export declare const stepperInteractive: Record<"active" | "inactive", string>;
|
|
58
58
|
export declare const stepBullet: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
59
59
|
disabled: {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { cn } from "@ultraviolet/utils";
|
|
4
4
|
import { useRef, useEffect } from "react";
|
|
5
|
-
import { SelectableCard } from "../SelectableCard/index.js";
|
|
6
5
|
import { useSwitchButton } from "./SwitchButtonContext.js";
|
|
7
6
|
import { switchButtonOptionNeutral, switchButtonOptionPrimary, switchButtonOptionBase } from "./styles.css.js";
|
|
7
|
+
import { SelectableCard } from "../SelectableCard/SelectableCard.js";
|
|
8
8
|
const Option = ({
|
|
9
9
|
value,
|
|
10
10
|
children,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SwitchButton/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SwitchButton/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACV,MAAM,OAAO,CAAA;AAWd,KAAK,iBAAiB,GAAG;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,SAAS,CAAA;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAA;IAC5C,QAAQ,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IAC9C,OAAO,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAA;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IACzB,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;mIAatB,iBAAiB;;;;;;;;;CAyJnB,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "@ultraviolet/utils";
|
|
3
4
|
import { useRef, useState, useCallback, useEffect, useMemo } from "react";
|
|
4
5
|
import { Stack } from "../Stack/index.js";
|
|
5
6
|
import { Tooltip } from "../Tooltip/index.js";
|
|
@@ -105,10 +106,12 @@ const SwitchButton = ({
|
|
|
105
106
|
sentiment
|
|
106
107
|
]
|
|
107
108
|
);
|
|
108
|
-
return /* @__PURE__ */ jsx(SwitchButtonContext.Provider, { value: valueContext, children: /* @__PURE__ */ jsx(Tooltip, { text: tooltip, children: /* @__PURE__ */
|
|
109
|
-
|
|
109
|
+
return /* @__PURE__ */ jsx(SwitchButtonContext.Provider, { value: valueContext, children: /* @__PURE__ */ jsx(Tooltip, { text: tooltip, children: /* @__PURE__ */ jsxs(
|
|
110
|
+
Stack,
|
|
110
111
|
{
|
|
111
|
-
className: switchButtonContainer[size],
|
|
112
|
+
className: cn(className, switchButtonContainer[size]),
|
|
113
|
+
"data-testid": dataTestId,
|
|
114
|
+
direction: "row",
|
|
112
115
|
onMouseDown: (event) => {
|
|
113
116
|
const rect = event.currentTarget.getBoundingClientRect();
|
|
114
117
|
const clickX = event.clientX - rect.left;
|
|
@@ -149,7 +152,7 @@ const SwitchButton = ({
|
|
|
149
152
|
children
|
|
150
153
|
]
|
|
151
154
|
}
|
|
152
|
-
) }) })
|
|
155
|
+
) }) });
|
|
153
156
|
};
|
|
154
157
|
SwitchButton.Option = Option;
|
|
155
158
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const switchButtonContainer: Record<"
|
|
1
|
+
export declare const switchButtonContainer: Record<"small" | "medium", string>;
|
|
2
2
|
export declare const switchButtonOptionBase: string;
|
|
3
3
|
/**
|
|
4
4
|
* Create style variant so it is easier to deal with the global styles
|
|
5
5
|
*/
|
|
6
6
|
export declare const switchButtonOptionPrimary: string;
|
|
7
7
|
export declare const switchButtonOptionNeutral: string;
|
|
8
|
-
export declare const focusOverlay: Record<"
|
|
8
|
+
export declare const focusOverlay: Record<"neutral" | "primary", string>;
|
|
9
9
|
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/SwitchButton/styles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/SwitchButton/styles.css.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,qBAAqB,oCAGhC,CAAA;AAEF,eAAO,MAAM,sBAAsB,QAuBjC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,QAAY,CAAA;AAClD,eAAO,MAAM,yBAAyB,QAAY,CAAA;AAUlD,eAAO,MAAM,YAAY,uCASvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderRow.d.ts","sourceRoot":"","sources":["../../../src/components/Table/HeaderRow.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,SAAS,CAAA;IACnB,kBAAkB,EAAE,OAAO,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,kCAAkC,cAAc,
|
|
1
|
+
{"version":3,"file":"HeaderRow.d.ts","sourceRoot":"","sources":["../../../src/components/Table/HeaderRow.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,SAAS,CAAA;IACnB,kBAAkB,EAAE,OAAO,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,kCAAkC,cAAc,4CA4BzE,CAAA"}
|
|
@@ -9,31 +9,28 @@ const HeaderRow = ({ children, hasSelectAllColumn }) => {
|
|
|
9
9
|
const { allRowSelectValue, selectAllHandler, selectedRowIds, expandButton } = useTableContext();
|
|
10
10
|
const theme = useTheme();
|
|
11
11
|
const selectableRowCount = Object.keys(selectedRowIds).length;
|
|
12
|
-
return (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
children
|
|
35
|
-
] })
|
|
36
|
-
);
|
|
12
|
+
return /* @__PURE__ */ jsxs("tr", { children: [
|
|
13
|
+
hasSelectAllColumn ? /* @__PURE__ */ jsx(
|
|
14
|
+
HeaderCell,
|
|
15
|
+
{
|
|
16
|
+
isCheckbox: true,
|
|
17
|
+
maxWidth: theme.sizing[SELECTABLE_CHECKBOX_SIZE],
|
|
18
|
+
children: /* @__PURE__ */ jsx(
|
|
19
|
+
Checkbox,
|
|
20
|
+
{
|
|
21
|
+
"aria-label": "select all",
|
|
22
|
+
checked: allRowSelectValue,
|
|
23
|
+
disabled: selectableRowCount === 0,
|
|
24
|
+
name: "table-select-all-checkbox",
|
|
25
|
+
onChange: selectAllHandler,
|
|
26
|
+
value: "all"
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
}
|
|
30
|
+
) : null,
|
|
31
|
+
expandButton ? /* @__PURE__ */ jsx(HeaderCell, { children: null }) : null,
|
|
32
|
+
children
|
|
33
|
+
] });
|
|
37
34
|
};
|
|
38
35
|
export {
|
|
39
36
|
HeaderRow
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkeletonRows.d.ts","sourceRoot":"","sources":["../../../src/components/Table/SkeletonRows.tsx"],"names":[],"mappings":"AAMA,KAAK,iBAAiB,GAAG;IACvB,UAAU,EAAE,OAAO,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,4BAA4B,iBAAiB,
|
|
1
|
+
{"version":3,"file":"SkeletonRows.d.ts","sourceRoot":"","sources":["../../../src/components/Table/SkeletonRows.tsx"],"names":[],"mappings":"AAMA,KAAK,iBAAiB,GAAG;IACvB,UAAU,EAAE,OAAO,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,4BAA4B,iBAAiB,4CAkBzE,CAAA"}
|
|
@@ -6,19 +6,10 @@ import { tableSkeletonRow, tableSkeleton } from "./styles.css.js";
|
|
|
6
6
|
const SkeletonRows = ({ selectable, rows, cols }) => {
|
|
7
7
|
const rowArray = Array.from({ length: rows }, (_, index) => index);
|
|
8
8
|
const colArray = Array.from({ length: cols }, (_, index) => index);
|
|
9
|
-
return /* @__PURE__ */ jsx(Fragment, { children: rowArray.map((index) => /* @__PURE__ */ jsxs(
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
|
|
13
|
-
id: `skeleton-${index}`,
|
|
14
|
-
role: "row",
|
|
15
|
-
children: [
|
|
16
|
-
selectable ? /* @__PURE__ */ jsx(Cell, {}) : null,
|
|
17
|
-
colArray.map((columnIndex) => /* @__PURE__ */ jsx(Cell, { children: /* @__PURE__ */ jsx(Skeleton, { className: tableSkeleton, variant: "line" }) }, columnIndex))
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
index
|
|
21
|
-
)) });
|
|
9
|
+
return /* @__PURE__ */ jsx(Fragment, { children: rowArray.map((index) => /* @__PURE__ */ jsxs("tr", { className: tableSkeletonRow, id: `skeleton-${index}`, children: [
|
|
10
|
+
selectable ? /* @__PURE__ */ jsx(Cell, {}) : null,
|
|
11
|
+
colArray.map((columnIndex) => /* @__PURE__ */ jsx(Cell, { children: /* @__PURE__ */ jsx(Skeleton, { className: tableSkeleton, variant: "line" }) }, columnIndex))
|
|
12
|
+
] }, index)) });
|
|
22
13
|
};
|
|
23
14
|
export {
|
|
24
15
|
SkeletonRows
|
|
@@ -24,7 +24,7 @@ export declare const Tabs: {
|
|
|
24
24
|
tooltip?: string;
|
|
25
25
|
value?: string | number;
|
|
26
26
|
style?: import("react").CSSProperties;
|
|
27
|
-
} & Omit<any, "
|
|
27
|
+
} & Omit<any, "children" | "value" | "tooltip" | "disabled" | "as" | "className" | "role" | "badge" | "counter">, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
28
28
|
Menu: import("react").ForwardRefExoticComponent<{
|
|
29
29
|
children: ReactNode;
|
|
30
30
|
disclosure: ReactNode;
|
|
@@ -43,7 +43,7 @@ export declare const Tabs: {
|
|
|
43
43
|
children: ReactNode;
|
|
44
44
|
onClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
45
45
|
borderless?: boolean;
|
|
46
|
-
sentiment?: "
|
|
46
|
+
sentiment?: "danger" | "neutral" | "primary";
|
|
47
47
|
active?: boolean;
|
|
48
48
|
'data-testid'?: string;
|
|
49
49
|
searchText?: string;
|