@wavv/ui 2.2.2 → 2.2.4
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/build/assets/icons/Checkbox.js +3 -3
- package/build/assets/icons/Exclamation.js +3 -3
- package/build/assets/icons/PersonSupport.d.ts +3 -0
- package/build/assets/icons/PersonSupport.js +39 -0
- package/build/assets/icons/PhoneEnd.js +3 -3
- package/build/assets/icons/PhoneForward.js +3 -3
- package/build/assets/icons/PhoneHold.js +3 -3
- package/build/assets/icons/Record.js +3 -3
- package/build/assets/icons/ShieldWavv.js +3 -3
- package/build/components/Accordion/Header.js +4 -4
- package/build/components/Audio.js +3 -3
- package/build/components/CalendarParts/CalendarHeader.js +3 -3
- package/build/components/CalendarParts/useMinMax.js +3 -3
- package/build/components/Code/Code.js +3 -3
- package/build/components/Code/Endpoint.js +3 -3
- package/build/components/CommandMenu/CommandMenu.js +3 -3
- package/build/components/CommandMenu/CommandSection.js +3 -3
- package/build/components/Dot.js +3 -3
- package/build/components/DraftEditor.js +3 -3
- package/build/components/Dropdown.js +3 -3
- package/build/components/DropdownMenuParts/MenuOptions.js +3 -3
- package/build/components/DropdownSelect.js +3 -3
- package/build/components/Editor/RichTextToolbar.js +3 -3
- package/build/components/Focusable.js +3 -3
- package/build/components/Form.js +9 -9
- package/build/components/Grid.js +3 -3
- package/build/components/Icon/customIcons.d.ts +1 -0
- package/build/components/Icon/customIcons.js +5 -3
- package/build/components/Icon/icons.d.ts +1 -1
- package/build/components/Icon/icons.js +1 -1
- package/build/components/ImageViewer.js +3 -3
- package/build/components/InlineCode.js +3 -3
- package/build/components/Inputs/InlineInput.js +3 -3
- package/build/components/Inputs/PhoneInput.js +3 -3
- package/build/components/Inputs/TextInput.js +3 -3
- package/build/components/Inputs/helpers/LabelWrapper.js +3 -3
- package/build/components/Inputs/helpers/useDynamicWidth.js +3 -3
- package/build/components/ListHelpers/ItemHeaderBody.js +3 -3
- package/build/components/ListHelpers/ListSection.js +3 -3
- package/build/components/MultiSelect/SearchDropdown.js +3 -3
- package/build/components/Pagination.js +3 -3
- package/build/components/Popover.js +3 -3
- package/build/components/Radio.js +3 -3
- package/build/components/Slider.js +3 -3
- package/build/components/Table/Body.js +3 -3
- package/build/components/Table/ColumnSort.js +3 -3
- package/build/components/Table/Header.js +3 -3
- package/build/components/Table/Resizer.js +3 -3
- package/build/components/Table/contentStyles.js +3 -3
- package/build/components/ToggleButton/ToggleButton.js +11 -11
- package/build/components/UnstyledButton.js +3 -3
- package/build/components/helpers/mergePadding.js +3 -3
- package/build/global-styles/ResetStyles.js +3 -3
- package/build/hooks/useControlledOpenState.js +3 -3
- package/build/hooks/useOnClickOutside.js +3 -3
- package/build/hooks/useWindowSize.js +3 -3
- package/build/tailwind/theme.css +8 -0
- package/build/theme/ThemeTypes.d.ts +29 -0
- package/build/theme/common/common.d.ts +8 -0
- package/build/theme/core/colors.d.ts +25 -2
- package/build/theme/core/colors.js +8 -0
- package/build/theme/core/dark/dark.js +105 -0
- package/build/theme/core/light/light.js +108 -3
- package/build/theme/eighties/colors.d.ts +8 -0
- package/build/theme/eighties/colors.js +8 -0
- package/build/theme/eighties/dark/dark.js +105 -0
- package/build/theme/eighties/light/light.js +108 -3
- package/build/utils/chunk.js +3 -3
- package/build/utils/copyToClipboard.js +3 -3
- package/build/utils/formatNumber.js +3 -3
- package/package.json +24 -24
|
@@ -277,6 +277,111 @@ const dark = {
|
|
|
277
277
|
default: white
|
|
278
278
|
}
|
|
279
279
|
},
|
|
280
|
+
toggleButton: {
|
|
281
|
+
...index_js_button,
|
|
282
|
+
primary: {
|
|
283
|
+
color: {
|
|
284
|
+
default: darkScale.scale10,
|
|
285
|
+
hover: darkScale.scale10,
|
|
286
|
+
active: darkScale.scale10
|
|
287
|
+
},
|
|
288
|
+
background: {
|
|
289
|
+
default: colors.brandTint0,
|
|
290
|
+
hover: colors.brandTint2,
|
|
291
|
+
active: colors.brandTint4
|
|
292
|
+
},
|
|
293
|
+
border: {
|
|
294
|
+
default: colors.brand,
|
|
295
|
+
hover: colors.brand,
|
|
296
|
+
active: colors.brand
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
secondary: {
|
|
300
|
+
color: {
|
|
301
|
+
default: darkScale.scale10,
|
|
302
|
+
hover: darkScale.scale10,
|
|
303
|
+
active: darkScale.scale10
|
|
304
|
+
},
|
|
305
|
+
background: {
|
|
306
|
+
default: darkScale.scale0,
|
|
307
|
+
hover: darkScale.scale1,
|
|
308
|
+
active: darkScale.scale3
|
|
309
|
+
},
|
|
310
|
+
border: {
|
|
311
|
+
default: darkScale.background5,
|
|
312
|
+
hover: darkScale.background5,
|
|
313
|
+
active: darkScale.background5
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
negative: {
|
|
317
|
+
color: {
|
|
318
|
+
default: darkScale.scale10,
|
|
319
|
+
hover: darkScale.scale10,
|
|
320
|
+
active: darkScale.scale10
|
|
321
|
+
},
|
|
322
|
+
background: {
|
|
323
|
+
default: colors.errorTint0,
|
|
324
|
+
hover: colors.errorTint2,
|
|
325
|
+
active: colors.errorTint4
|
|
326
|
+
},
|
|
327
|
+
border: {
|
|
328
|
+
default: colors.error,
|
|
329
|
+
hover: colors.error,
|
|
330
|
+
active: colors.error
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
positive: {
|
|
334
|
+
color: {
|
|
335
|
+
default: darkScale.scale10,
|
|
336
|
+
hover: darkScale.scale10,
|
|
337
|
+
active: darkScale.scale10
|
|
338
|
+
},
|
|
339
|
+
background: {
|
|
340
|
+
default: colors.successTint0,
|
|
341
|
+
hover: colors.successTint2,
|
|
342
|
+
active: colors.successTint4
|
|
343
|
+
},
|
|
344
|
+
border: {
|
|
345
|
+
default: colors.success,
|
|
346
|
+
hover: colors.success,
|
|
347
|
+
active: colors.success
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
caution: {
|
|
351
|
+
color: {
|
|
352
|
+
default: darkScale.scale10,
|
|
353
|
+
hover: darkScale.scale10,
|
|
354
|
+
active: darkScale.scale10
|
|
355
|
+
},
|
|
356
|
+
background: {
|
|
357
|
+
default: colors.warningTint0,
|
|
358
|
+
hover: colors.warningTint2,
|
|
359
|
+
active: colors.warningTint4
|
|
360
|
+
},
|
|
361
|
+
border: {
|
|
362
|
+
default: colors.warning,
|
|
363
|
+
hover: colors.warning,
|
|
364
|
+
active: colors.warning
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
disabled: {
|
|
368
|
+
color: {
|
|
369
|
+
default: darkScale.scale4,
|
|
370
|
+
hover: darkScale.scale4,
|
|
371
|
+
active: darkScale.scale4
|
|
372
|
+
},
|
|
373
|
+
background: {
|
|
374
|
+
default: darkScale.scale0,
|
|
375
|
+
hover: darkScale.scale0,
|
|
376
|
+
active: darkScale.scale0
|
|
377
|
+
},
|
|
378
|
+
border: {
|
|
379
|
+
default: darkScale.scale1,
|
|
380
|
+
hover: darkScale.scale1,
|
|
381
|
+
active: darkScale.scale1
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
},
|
|
280
385
|
calendar: {
|
|
281
386
|
background: {
|
|
282
387
|
container: colors.brandBackground3,
|
|
@@ -2,7 +2,7 @@ import common, { button as index_js_button } from "../../common/index.js";
|
|
|
2
2
|
import colors from "../colors.js";
|
|
3
3
|
import lightScale from "./lightScale.js";
|
|
4
4
|
const white = '#FFFFFF';
|
|
5
|
-
const
|
|
5
|
+
const light = {
|
|
6
6
|
...common,
|
|
7
7
|
...lightScale,
|
|
8
8
|
name: 'light',
|
|
@@ -276,6 +276,111 @@ const light_light = {
|
|
|
276
276
|
default: white
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
|
+
toggleButton: {
|
|
280
|
+
...index_js_button,
|
|
281
|
+
primary: {
|
|
282
|
+
color: {
|
|
283
|
+
default: lightScale.scale10,
|
|
284
|
+
hover: lightScale.scale10,
|
|
285
|
+
active: lightScale.scale10
|
|
286
|
+
},
|
|
287
|
+
background: {
|
|
288
|
+
default: colors.brandTint0,
|
|
289
|
+
hover: colors.brandTint2,
|
|
290
|
+
active: colors.brandTint4
|
|
291
|
+
},
|
|
292
|
+
border: {
|
|
293
|
+
default: colors.brand,
|
|
294
|
+
hover: colors.brand,
|
|
295
|
+
active: colors.brand
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
secondary: {
|
|
299
|
+
color: {
|
|
300
|
+
default: lightScale.scale10,
|
|
301
|
+
hover: lightScale.scale10,
|
|
302
|
+
active: lightScale.scale10
|
|
303
|
+
},
|
|
304
|
+
background: {
|
|
305
|
+
default: lightScale.scale0,
|
|
306
|
+
hover: lightScale.scale1,
|
|
307
|
+
active: lightScale.scale3
|
|
308
|
+
},
|
|
309
|
+
border: {
|
|
310
|
+
default: lightScale.background5,
|
|
311
|
+
hover: lightScale.background5,
|
|
312
|
+
active: lightScale.background5
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
negative: {
|
|
316
|
+
color: {
|
|
317
|
+
default: lightScale.scale10,
|
|
318
|
+
hover: lightScale.scale10,
|
|
319
|
+
active: lightScale.scale10
|
|
320
|
+
},
|
|
321
|
+
background: {
|
|
322
|
+
default: colors.errorTint0,
|
|
323
|
+
hover: colors.errorTint2,
|
|
324
|
+
active: colors.errorTint4
|
|
325
|
+
},
|
|
326
|
+
border: {
|
|
327
|
+
default: colors.error,
|
|
328
|
+
hover: colors.error,
|
|
329
|
+
active: colors.error
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
positive: {
|
|
333
|
+
color: {
|
|
334
|
+
default: lightScale.scale10,
|
|
335
|
+
hover: lightScale.scale10,
|
|
336
|
+
active: lightScale.scale10
|
|
337
|
+
},
|
|
338
|
+
background: {
|
|
339
|
+
default: colors.successTint0,
|
|
340
|
+
hover: colors.successTint2,
|
|
341
|
+
active: colors.successTint4
|
|
342
|
+
},
|
|
343
|
+
border: {
|
|
344
|
+
default: colors.success,
|
|
345
|
+
hover: colors.success,
|
|
346
|
+
active: colors.success
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
caution: {
|
|
350
|
+
color: {
|
|
351
|
+
default: lightScale.scale10,
|
|
352
|
+
hover: lightScale.scale10,
|
|
353
|
+
active: lightScale.scale10
|
|
354
|
+
},
|
|
355
|
+
background: {
|
|
356
|
+
default: colors.warningTint0,
|
|
357
|
+
hover: colors.warningTint2,
|
|
358
|
+
active: colors.warningTint4
|
|
359
|
+
},
|
|
360
|
+
border: {
|
|
361
|
+
default: colors.warning,
|
|
362
|
+
hover: colors.warning,
|
|
363
|
+
active: colors.warning
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
disabled: {
|
|
367
|
+
color: {
|
|
368
|
+
default: lightScale.scale4,
|
|
369
|
+
hover: lightScale.scale4,
|
|
370
|
+
active: lightScale.scale4
|
|
371
|
+
},
|
|
372
|
+
background: {
|
|
373
|
+
default: lightScale.scale0,
|
|
374
|
+
hover: lightScale.scale0,
|
|
375
|
+
active: lightScale.scale0
|
|
376
|
+
},
|
|
377
|
+
border: {
|
|
378
|
+
default: lightScale.scale1,
|
|
379
|
+
hover: lightScale.scale1,
|
|
380
|
+
active: lightScale.scale1
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
},
|
|
279
384
|
calendar: {
|
|
280
385
|
background: {
|
|
281
386
|
container: colors.contrast10,
|
|
@@ -452,5 +557,5 @@ const light_light = {
|
|
|
452
557
|
}
|
|
453
558
|
}
|
|
454
559
|
};
|
|
455
|
-
const
|
|
456
|
-
export {
|
|
560
|
+
const light_light = light;
|
|
561
|
+
export { light_light as default };
|
|
@@ -24,24 +24,32 @@ declare const colors: {
|
|
|
24
24
|
errorTint0: string;
|
|
25
25
|
errorTint1: string;
|
|
26
26
|
errorTint2: string;
|
|
27
|
+
errorTint3: string;
|
|
28
|
+
errorTint4: string;
|
|
27
29
|
warning: string;
|
|
28
30
|
warningShade1: string;
|
|
29
31
|
warningShade2: string;
|
|
30
32
|
warningTint0: string;
|
|
31
33
|
warningTint1: string;
|
|
32
34
|
warningTint2: string;
|
|
35
|
+
warningTint3: string;
|
|
36
|
+
warningTint4: string;
|
|
33
37
|
alert: string;
|
|
34
38
|
alertShade1: string;
|
|
35
39
|
alertShade2: string;
|
|
36
40
|
alertTint0: string;
|
|
37
41
|
alertTint1: string;
|
|
38
42
|
alertTint2: string;
|
|
43
|
+
alertTint3: string;
|
|
44
|
+
alertTint4: string;
|
|
39
45
|
success: string;
|
|
40
46
|
successShade1: string;
|
|
41
47
|
successShade2: string;
|
|
42
48
|
successTint0: string;
|
|
43
49
|
successTint1: string;
|
|
44
50
|
successTint2: string;
|
|
51
|
+
successTint3: string;
|
|
52
|
+
successTint4: string;
|
|
45
53
|
grayscale0: string;
|
|
46
54
|
grayscale1: string;
|
|
47
55
|
grayscale2: string;
|
|
@@ -33,24 +33,32 @@ const colors = {
|
|
|
33
33
|
errorTint0: transparentize(0.95, error),
|
|
34
34
|
errorTint1: transparentize(0.9, error),
|
|
35
35
|
errorTint2: transparentize(0.8, error),
|
|
36
|
+
errorTint3: transparentize(0.7, error),
|
|
37
|
+
errorTint4: transparentize(0.6, error),
|
|
36
38
|
warning,
|
|
37
39
|
warningShade1: '#E6AF00',
|
|
38
40
|
warningShade2: '#CC9B00',
|
|
39
41
|
warningTint0: transparentize(0.95, warning),
|
|
40
42
|
warningTint1: transparentize(0.9, warning),
|
|
41
43
|
warningTint2: transparentize(0.8, warning),
|
|
44
|
+
warningTint3: transparentize(0.7, warning),
|
|
45
|
+
warningTint4: transparentize(0.6, warning),
|
|
42
46
|
alert: alertColor,
|
|
43
47
|
alertShade1: '#E6E652',
|
|
44
48
|
alertShade2: '#CCCC48',
|
|
45
49
|
alertTint0: transparentize(0.95, alertColor),
|
|
46
50
|
alertTint1: transparentize(0.9, alertColor),
|
|
47
51
|
alertTint2: transparentize(0.8, alertColor),
|
|
52
|
+
alertTint3: transparentize(0.7, alertColor),
|
|
53
|
+
alertTint4: transparentize(0.6, alertColor),
|
|
48
54
|
success,
|
|
49
55
|
successShade1: '#33E512',
|
|
50
56
|
successShade2: '#2CCF10',
|
|
51
57
|
successTint0: transparentize(0.95, success),
|
|
52
58
|
successTint1: transparentize(0.9, success),
|
|
53
59
|
successTint2: transparentize(0.8, success),
|
|
60
|
+
successTint3: transparentize(0.7, success),
|
|
61
|
+
successTint4: transparentize(0.6, success),
|
|
54
62
|
grayscale0: transparentize(0.95, grayVal),
|
|
55
63
|
grayscale1: transparentize(0.9, grayVal),
|
|
56
64
|
grayscale2: transparentize(0.8, grayVal),
|
|
@@ -277,6 +277,111 @@ const dark = {
|
|
|
277
277
|
default: white
|
|
278
278
|
}
|
|
279
279
|
},
|
|
280
|
+
toggleButton: {
|
|
281
|
+
...index_js_button,
|
|
282
|
+
primary: {
|
|
283
|
+
color: {
|
|
284
|
+
default: darkScale.scale10,
|
|
285
|
+
hover: darkScale.scale10,
|
|
286
|
+
active: darkScale.scale10
|
|
287
|
+
},
|
|
288
|
+
background: {
|
|
289
|
+
default: colors.brandTint0,
|
|
290
|
+
hover: colors.brandTint2,
|
|
291
|
+
active: colors.brandTint4
|
|
292
|
+
},
|
|
293
|
+
border: {
|
|
294
|
+
default: colors.brand,
|
|
295
|
+
hover: colors.brand,
|
|
296
|
+
active: colors.brand
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
secondary: {
|
|
300
|
+
color: {
|
|
301
|
+
default: darkScale.scale10,
|
|
302
|
+
hover: darkScale.scale10,
|
|
303
|
+
active: darkScale.scale10
|
|
304
|
+
},
|
|
305
|
+
background: {
|
|
306
|
+
default: darkScale.scale0,
|
|
307
|
+
hover: darkScale.scale1,
|
|
308
|
+
active: darkScale.scale3
|
|
309
|
+
},
|
|
310
|
+
border: {
|
|
311
|
+
default: darkScale.background5,
|
|
312
|
+
hover: darkScale.background5,
|
|
313
|
+
active: darkScale.background5
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
negative: {
|
|
317
|
+
color: {
|
|
318
|
+
default: darkScale.scale10,
|
|
319
|
+
hover: darkScale.scale10,
|
|
320
|
+
active: darkScale.scale10
|
|
321
|
+
},
|
|
322
|
+
background: {
|
|
323
|
+
default: colors.errorTint0,
|
|
324
|
+
hover: colors.errorTint2,
|
|
325
|
+
active: colors.errorTint4
|
|
326
|
+
},
|
|
327
|
+
border: {
|
|
328
|
+
default: colors.error,
|
|
329
|
+
hover: colors.error,
|
|
330
|
+
active: colors.error
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
positive: {
|
|
334
|
+
color: {
|
|
335
|
+
default: darkScale.scale10,
|
|
336
|
+
hover: darkScale.scale10,
|
|
337
|
+
active: darkScale.scale10
|
|
338
|
+
},
|
|
339
|
+
background: {
|
|
340
|
+
default: colors.successTint0,
|
|
341
|
+
hover: colors.successTint2,
|
|
342
|
+
active: colors.successTint4
|
|
343
|
+
},
|
|
344
|
+
border: {
|
|
345
|
+
default: colors.success,
|
|
346
|
+
hover: colors.success,
|
|
347
|
+
active: colors.success
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
caution: {
|
|
351
|
+
color: {
|
|
352
|
+
default: darkScale.scale10,
|
|
353
|
+
hover: darkScale.scale10,
|
|
354
|
+
active: darkScale.scale10
|
|
355
|
+
},
|
|
356
|
+
background: {
|
|
357
|
+
default: colors.warningTint0,
|
|
358
|
+
hover: colors.warningTint2,
|
|
359
|
+
active: colors.warningTint4
|
|
360
|
+
},
|
|
361
|
+
border: {
|
|
362
|
+
default: colors.warning,
|
|
363
|
+
hover: colors.warning,
|
|
364
|
+
active: colors.warning
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
disabled: {
|
|
368
|
+
color: {
|
|
369
|
+
default: darkScale.scale4,
|
|
370
|
+
hover: darkScale.scale4,
|
|
371
|
+
active: darkScale.scale4
|
|
372
|
+
},
|
|
373
|
+
background: {
|
|
374
|
+
default: darkScale.scale0,
|
|
375
|
+
hover: darkScale.scale0,
|
|
376
|
+
active: darkScale.scale0
|
|
377
|
+
},
|
|
378
|
+
border: {
|
|
379
|
+
default: darkScale.scale1,
|
|
380
|
+
hover: darkScale.scale1,
|
|
381
|
+
active: darkScale.scale1
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
},
|
|
280
385
|
calendar: {
|
|
281
386
|
background: {
|
|
282
387
|
container: colors.brandBackground3,
|
|
@@ -2,7 +2,7 @@ import common, { button as index_js_button } from "../../common/index.js";
|
|
|
2
2
|
import colors from "../colors.js";
|
|
3
3
|
import lightScale from "./lightScale.js";
|
|
4
4
|
const white = '#FFFFFF';
|
|
5
|
-
const
|
|
5
|
+
const light = {
|
|
6
6
|
...common,
|
|
7
7
|
...lightScale,
|
|
8
8
|
name: 'light',
|
|
@@ -276,6 +276,111 @@ const light_light = {
|
|
|
276
276
|
default: white
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
|
+
toggleButton: {
|
|
280
|
+
...index_js_button,
|
|
281
|
+
primary: {
|
|
282
|
+
color: {
|
|
283
|
+
default: lightScale.scale10,
|
|
284
|
+
hover: lightScale.scale10,
|
|
285
|
+
active: lightScale.scale10
|
|
286
|
+
},
|
|
287
|
+
background: {
|
|
288
|
+
default: colors.brandTint0,
|
|
289
|
+
hover: colors.brandTint2,
|
|
290
|
+
active: colors.brandTint4
|
|
291
|
+
},
|
|
292
|
+
border: {
|
|
293
|
+
default: colors.brand,
|
|
294
|
+
hover: colors.brand,
|
|
295
|
+
active: colors.brand
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
secondary: {
|
|
299
|
+
color: {
|
|
300
|
+
default: lightScale.scale10,
|
|
301
|
+
hover: lightScale.scale10,
|
|
302
|
+
active: lightScale.scale10
|
|
303
|
+
},
|
|
304
|
+
background: {
|
|
305
|
+
default: lightScale.scale0,
|
|
306
|
+
hover: lightScale.scale1,
|
|
307
|
+
active: lightScale.scale3
|
|
308
|
+
},
|
|
309
|
+
border: {
|
|
310
|
+
default: lightScale.background5,
|
|
311
|
+
hover: lightScale.background5,
|
|
312
|
+
active: lightScale.background5
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
negative: {
|
|
316
|
+
color: {
|
|
317
|
+
default: lightScale.scale10,
|
|
318
|
+
hover: lightScale.scale10,
|
|
319
|
+
active: lightScale.scale10
|
|
320
|
+
},
|
|
321
|
+
background: {
|
|
322
|
+
default: colors.errorTint0,
|
|
323
|
+
hover: colors.errorTint2,
|
|
324
|
+
active: colors.errorTint4
|
|
325
|
+
},
|
|
326
|
+
border: {
|
|
327
|
+
default: colors.error,
|
|
328
|
+
hover: colors.error,
|
|
329
|
+
active: colors.error
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
positive: {
|
|
333
|
+
color: {
|
|
334
|
+
default: lightScale.scale10,
|
|
335
|
+
hover: lightScale.scale10,
|
|
336
|
+
active: lightScale.scale10
|
|
337
|
+
},
|
|
338
|
+
background: {
|
|
339
|
+
default: colors.successTint0,
|
|
340
|
+
hover: colors.successTint2,
|
|
341
|
+
active: colors.successTint4
|
|
342
|
+
},
|
|
343
|
+
border: {
|
|
344
|
+
default: colors.success,
|
|
345
|
+
hover: colors.success,
|
|
346
|
+
active: colors.success
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
caution: {
|
|
350
|
+
color: {
|
|
351
|
+
default: lightScale.scale10,
|
|
352
|
+
hover: lightScale.scale10,
|
|
353
|
+
active: lightScale.scale10
|
|
354
|
+
},
|
|
355
|
+
background: {
|
|
356
|
+
default: colors.warningTint0,
|
|
357
|
+
hover: colors.warningTint2,
|
|
358
|
+
active: colors.warningTint4
|
|
359
|
+
},
|
|
360
|
+
border: {
|
|
361
|
+
default: colors.warning,
|
|
362
|
+
hover: colors.warning,
|
|
363
|
+
active: colors.warning
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
disabled: {
|
|
367
|
+
color: {
|
|
368
|
+
default: lightScale.scale4,
|
|
369
|
+
hover: lightScale.scale4,
|
|
370
|
+
active: lightScale.scale4
|
|
371
|
+
},
|
|
372
|
+
background: {
|
|
373
|
+
default: lightScale.scale0,
|
|
374
|
+
hover: lightScale.scale0,
|
|
375
|
+
active: lightScale.scale0
|
|
376
|
+
},
|
|
377
|
+
border: {
|
|
378
|
+
default: lightScale.scale1,
|
|
379
|
+
hover: lightScale.scale1,
|
|
380
|
+
active: lightScale.scale1
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
},
|
|
279
384
|
calendar: {
|
|
280
385
|
background: {
|
|
281
386
|
container: colors.contrast10,
|
|
@@ -452,5 +557,5 @@ const light_light = {
|
|
|
452
557
|
}
|
|
453
558
|
}
|
|
454
559
|
};
|
|
455
|
-
const
|
|
456
|
-
export {
|
|
560
|
+
const light_light = light;
|
|
561
|
+
export { light_light as default };
|
package/build/utils/chunk.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const chunk = (array, chunkLength)=>{
|
|
2
2
|
const copy = [
|
|
3
3
|
...array
|
|
4
4
|
];
|
|
@@ -9,5 +9,5 @@ const chunk_chunk = (array, chunkLength)=>{
|
|
|
9
9
|
}
|
|
10
10
|
return chunkArray;
|
|
11
11
|
};
|
|
12
|
-
const
|
|
13
|
-
export {
|
|
12
|
+
const utils_chunk = chunk;
|
|
13
|
+
export { utils_chunk as default };
|
|
@@ -17,7 +17,7 @@ const legacyCopy = (text)=>{
|
|
|
17
17
|
console.error('Failed to copy text to clipboard');
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
const
|
|
20
|
+
const copyToClipboard = (text)=>{
|
|
21
21
|
if ('undefined' == typeof window || 'undefined' == typeof document) return;
|
|
22
22
|
const canUseModernApi = 'undefined' != typeof navigator && navigator.clipboard && 'function' == typeof navigator.clipboard.writeText;
|
|
23
23
|
if (canUseModernApi) return void navigator.clipboard.writeText(text).catch(()=>{
|
|
@@ -25,5 +25,5 @@ const copyToClipboard_copyToClipboard = (text)=>{
|
|
|
25
25
|
});
|
|
26
26
|
legacyCopy(text);
|
|
27
27
|
};
|
|
28
|
-
const
|
|
29
|
-
export {
|
|
28
|
+
const utils_copyToClipboard = copyToClipboard;
|
|
29
|
+
export { utils_copyToClipboard as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const formatNumber = (value, decimals = 1)=>{
|
|
2
2
|
if (0 === value) return '0';
|
|
3
3
|
if (!Number.isFinite(value)) return String(value);
|
|
4
4
|
const absValue = Math.abs(value);
|
|
@@ -28,5 +28,5 @@ const formatNumber_formatNumber = (value, decimals = 1)=>{
|
|
|
28
28
|
}
|
|
29
29
|
return String(value);
|
|
30
30
|
};
|
|
31
|
-
const
|
|
32
|
-
export {
|
|
31
|
+
const utils_formatNumber = formatNumber;
|
|
32
|
+
export { utils_formatNumber as default, formatNumber };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavv/ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
"@emotion/styled": "^11.14.1",
|
|
32
32
|
"@internationalized/date": "3.10.0",
|
|
33
33
|
"@react-hook/resize-observer": "^2.0.2",
|
|
34
|
-
"@tiptap/core": "^3.
|
|
35
|
-
"@tiptap/extension-character-count": "^3.
|
|
36
|
-
"@tiptap/extension-highlight": "^3.
|
|
37
|
-
"@tiptap/extension-placeholder": "^3.
|
|
38
|
-
"@tiptap/extension-task-item": "^3.
|
|
39
|
-
"@tiptap/extension-task-list": "^3.
|
|
40
|
-
"@tiptap/markdown": "^3.
|
|
41
|
-
"@tiptap/pm": "^3.
|
|
42
|
-
"@tiptap/react": "^3.
|
|
43
|
-
"@tiptap/starter-kit": "^3.
|
|
34
|
+
"@tiptap/core": "^3.10.1",
|
|
35
|
+
"@tiptap/extension-character-count": "^3.10.1",
|
|
36
|
+
"@tiptap/extension-highlight": "^3.10.1",
|
|
37
|
+
"@tiptap/extension-placeholder": "^3.10.1",
|
|
38
|
+
"@tiptap/extension-task-item": "^3.10.1",
|
|
39
|
+
"@tiptap/extension-task-list": "^3.10.1",
|
|
40
|
+
"@tiptap/markdown": "^3.10.1",
|
|
41
|
+
"@tiptap/pm": "^3.10.1",
|
|
42
|
+
"@tiptap/react": "^3.10.1",
|
|
43
|
+
"@tiptap/starter-kit": "^3.10.1",
|
|
44
44
|
"cmdk": "^1.1.1",
|
|
45
45
|
"date-fns": "^4.1.0",
|
|
46
46
|
"draft-js": "^0.11.7",
|
|
47
47
|
"es-toolkit": "^1.41.0",
|
|
48
48
|
"libphonenumber-js": "^1.12.25",
|
|
49
|
-
"lucide-react": "^0.
|
|
49
|
+
"lucide-react": "^0.552.0",
|
|
50
50
|
"polished": "^4.1.4",
|
|
51
51
|
"prism-react-renderer": "^2.4.1",
|
|
52
52
|
"react-aria": "3.44.0",
|
|
@@ -61,26 +61,26 @@
|
|
|
61
61
|
"@babel/core": "^7.28.5",
|
|
62
62
|
"@babel/preset-env": "^7.28.5",
|
|
63
63
|
"@babel/preset-typescript": "^7.28.5",
|
|
64
|
-
"@biomejs/biome": "2.3.
|
|
65
|
-
"@chromatic-com/storybook": "^4.1.
|
|
64
|
+
"@biomejs/biome": "2.3.3",
|
|
65
|
+
"@chromatic-com/storybook": "^4.1.2",
|
|
66
66
|
"@emotion/babel-plugin": "^11.13.5",
|
|
67
67
|
"@emotion/react": "^11.14.0",
|
|
68
|
-
"@rsbuild/core": "1.
|
|
68
|
+
"@rsbuild/core": "1.6.1",
|
|
69
69
|
"@rsbuild/plugin-react": "^1.4.1",
|
|
70
70
|
"@rsbuild/plugin-svgr": "^1.2.2",
|
|
71
|
-
"@rslib/core": "^0.
|
|
72
|
-
"@storybook/addon-docs": "^9.1.
|
|
73
|
-
"@storybook/addon-links": "^9.1.
|
|
74
|
-
"@storybook/addon-themes": "^9.1.
|
|
71
|
+
"@rslib/core": "^0.17.0",
|
|
72
|
+
"@storybook/addon-docs": "^9.1.16",
|
|
73
|
+
"@storybook/addon-links": "^9.1.16",
|
|
74
|
+
"@storybook/addon-themes": "^9.1.16",
|
|
75
75
|
"@storybook/test-runner": "^0.23.0",
|
|
76
76
|
"@svgr/core": "^8.1.0",
|
|
77
77
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
78
78
|
"@svgr/plugin-prettier": "^8.1.0",
|
|
79
|
-
"@swc/plugin-emotion": "
|
|
79
|
+
"@swc/plugin-emotion": "12.0.0",
|
|
80
80
|
"@types/draft-js": "^0.11.18",
|
|
81
81
|
"@types/jest": "^30.0.0",
|
|
82
82
|
"@types/ncp": "^2.0.8",
|
|
83
|
-
"@types/node": "^24.
|
|
83
|
+
"@types/node": "^24.10.0",
|
|
84
84
|
"@types/prompts": "^2.4.9",
|
|
85
85
|
"@types/randomcolor": "^0.5.9",
|
|
86
86
|
"@types/react": "^19.2.2",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@types/webfontloader": "^1.6.38",
|
|
90
90
|
"chalk": "^5.6.2",
|
|
91
91
|
"change-case": "^5.4.4",
|
|
92
|
-
"chromatic": "^13.3.
|
|
92
|
+
"chromatic": "^13.3.3",
|
|
93
93
|
"jest": "^30.2.0",
|
|
94
94
|
"lefthook": "^2.0.2",
|
|
95
95
|
"ncp": "^2.0.0",
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
"react-dom": "^19.2.0",
|
|
105
105
|
"replace": "^1.2.2",
|
|
106
106
|
"signale": "^1.4.0",
|
|
107
|
-
"storybook": "^9.1.
|
|
108
|
-
"storybook-react-rsbuild": "^2.1.
|
|
107
|
+
"storybook": "^9.1.16",
|
|
108
|
+
"storybook-react-rsbuild": "^2.1.4",
|
|
109
109
|
"tsc-files": "^1.1.4",
|
|
110
110
|
"tslib": "^2.8.1",
|
|
111
111
|
"tsx": "^4.20.6",
|