@wavv/ui 2.2.7 → 2.3.0-alpha.1

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 (33) hide show
  1. package/build/components/Checkbox.d.ts +5 -2
  2. package/build/components/Checkbox.js +14 -9
  3. package/build/components/Form.d.ts +8 -4
  4. package/build/components/FormControl.d.ts +2 -0
  5. package/build/components/FormControl.js +4 -4
  6. package/build/components/Inputs/TextArea.d.ts +2 -2
  7. package/build/components/Inputs/TextArea.js +2 -2
  8. package/build/components/Inputs/helpers/InputContainerStyles.js +7 -7
  9. package/build/components/ListHelpers/ListItemStyles.js +4 -6
  10. package/build/components/Menu.js +4 -6
  11. package/build/components/Modal.d.ts +2 -5
  12. package/build/components/Modal.js +12 -26
  13. package/build/components/OptionHelpers/Item.js +4 -6
  14. package/build/components/Radio.js +1 -0
  15. package/build/components/Table/contentStyles.js +3 -6
  16. package/build/components/Toggle.d.ts +16 -6
  17. package/build/components/Toggle.js +68 -51
  18. package/build/components/helpers/getFlexPosition.d.ts +3 -0
  19. package/build/components/helpers/getFlexPosition.js +6 -0
  20. package/build/tailwind/theme.css +117 -0
  21. package/build/theme/index.d.ts +5 -2
  22. package/build/theme/index.js +23 -2
  23. package/build/theme/mono/colors.d.ts +224 -0
  24. package/build/theme/mono/colors.js +85 -0
  25. package/build/theme/mono/dark/dark.d.ts +3 -0
  26. package/build/theme/mono/dark/dark.js +562 -0
  27. package/build/theme/mono/dark/darkScale.d.ts +22 -0
  28. package/build/theme/mono/dark/darkScale.js +36 -0
  29. package/build/theme/mono/light/light.d.ts +3 -0
  30. package/build/theme/mono/light/light.js +561 -0
  31. package/build/theme/mono/light/lightScale.d.ts +22 -0
  32. package/build/theme/mono/light/lightScale.js +35 -0
  33. package/package.json +19 -19
@@ -0,0 +1,561 @@
1
+ import common, { button as index_js_button } from "../../common/index.js";
2
+ import colors from "../colors.js";
3
+ import lightScale from "./lightScale.js";
4
+ const white = '#FFFFFF';
5
+ const light = {
6
+ ...common,
7
+ ...lightScale,
8
+ name: 'light',
9
+ button: {
10
+ ...index_js_button,
11
+ primary: {
12
+ color: {
13
+ default: white,
14
+ hover: white,
15
+ active: white
16
+ },
17
+ outlineColor: {
18
+ default: lightScale.scale10,
19
+ hover: lightScale.scale10,
20
+ active: lightScale.scale10
21
+ },
22
+ background: {
23
+ default: colors.brand,
24
+ hover: colors.brandShade1,
25
+ active: colors.brandShade2
26
+ },
27
+ outlineBackground: {
28
+ default: colors.brandTint0,
29
+ hover: colors.brandTint1,
30
+ active: colors.brandTint2
31
+ },
32
+ border: {
33
+ default: colors.brand,
34
+ hover: colors.brandShade1,
35
+ active: colors.brandShade2
36
+ },
37
+ divider: lightScale.scale2
38
+ },
39
+ secondary: {
40
+ color: {
41
+ default: lightScale.scale10,
42
+ hover: lightScale.scale10,
43
+ active: lightScale.scale10
44
+ },
45
+ outlineColor: {
46
+ default: lightScale.scale10,
47
+ hover: lightScale.scale10,
48
+ active: lightScale.scale10
49
+ },
50
+ background: {
51
+ default: lightScale.scale1,
52
+ hover: lightScale.scale2,
53
+ active: lightScale.scale3
54
+ },
55
+ outlineBackground: {
56
+ default: lightScale.scale1,
57
+ hover: lightScale.scale2,
58
+ active: lightScale.scale3
59
+ },
60
+ border: {
61
+ default: lightScale.scale2,
62
+ hover: lightScale.scale2,
63
+ active: lightScale.scale2
64
+ },
65
+ divider: lightScale.scale2
66
+ },
67
+ positive: {
68
+ color: {
69
+ default: white,
70
+ hover: white,
71
+ active: white
72
+ },
73
+ outlineColor: {
74
+ default: lightScale.scale10,
75
+ hover: lightScale.scale10,
76
+ active: lightScale.scale10
77
+ },
78
+ background: {
79
+ default: colors.success,
80
+ hover: colors.successShade1,
81
+ active: colors.successShade2
82
+ },
83
+ outlineBackground: {
84
+ default: colors.successTint0,
85
+ hover: colors.successTint1,
86
+ active: colors.successTint2
87
+ },
88
+ border: {
89
+ default: colors.success,
90
+ hover: colors.successShade1,
91
+ active: colors.successShade2
92
+ },
93
+ divider: lightScale.scale2
94
+ },
95
+ negative: {
96
+ color: {
97
+ default: white,
98
+ hover: white,
99
+ active: white
100
+ },
101
+ outlineColor: {
102
+ default: lightScale.scale10,
103
+ hover: lightScale.scale10,
104
+ active: lightScale.scale10
105
+ },
106
+ background: {
107
+ default: colors.error,
108
+ hover: colors.errorShade1,
109
+ active: colors.errorShade2
110
+ },
111
+ outlineBackground: {
112
+ default: colors.errorTint0,
113
+ hover: colors.errorTint1,
114
+ active: colors.errorTint2
115
+ },
116
+ border: {
117
+ default: colors.error,
118
+ hover: colors.errorShade1,
119
+ active: colors.errorShade2
120
+ },
121
+ divider: lightScale.scale2
122
+ },
123
+ caution: {
124
+ color: {
125
+ default: white,
126
+ hover: white,
127
+ active: white
128
+ },
129
+ outlineColor: {
130
+ default: lightScale.scale10,
131
+ hover: lightScale.scale10,
132
+ active: lightScale.scale10
133
+ },
134
+ background: {
135
+ default: colors.warning,
136
+ hover: colors.warningShade1,
137
+ active: colors.warningShade2
138
+ },
139
+ outlineBackground: {
140
+ default: colors.warningTint0,
141
+ hover: colors.warningTint1,
142
+ active: colors.warningTint2
143
+ },
144
+ border: {
145
+ default: colors.warning,
146
+ hover: colors.warningShade1,
147
+ active: colors.warningShade2
148
+ },
149
+ divider: lightScale.scale2
150
+ },
151
+ subtle: {
152
+ color: {
153
+ default: colors.brand,
154
+ hover: colors.brand,
155
+ active: colors.brand
156
+ },
157
+ outlineColor: {
158
+ default: colors.brand,
159
+ hover: colors.brand,
160
+ active: colors.brand
161
+ },
162
+ secondaryColor: {
163
+ default: lightScale.scale10,
164
+ hover: lightScale.scale10,
165
+ active: lightScale.scale10
166
+ },
167
+ positiveColor: {
168
+ default: colors.success,
169
+ hover: colors.success,
170
+ active: colors.success
171
+ },
172
+ negativeColor: {
173
+ default: colors.error,
174
+ hover: colors.error,
175
+ active: colors.error
176
+ },
177
+ cautionColor: {
178
+ default: colors.warning,
179
+ hover: colors.warning,
180
+ active: colors.warning
181
+ },
182
+ background: {
183
+ default: 'transparent',
184
+ hover: lightScale.scale1,
185
+ active: lightScale.scale2
186
+ },
187
+ outlineBackground: {
188
+ default: 'transparent',
189
+ hover: lightScale.scale1,
190
+ active: lightScale.scale2
191
+ },
192
+ border: {
193
+ default: 'transparent',
194
+ hover: lightScale.scale2,
195
+ active: lightScale.scale2
196
+ },
197
+ divider: lightScale.scale2
198
+ },
199
+ link: {
200
+ color: {
201
+ default: colors.brand,
202
+ hover: colors.brandShade1,
203
+ active: colors.brandShade2
204
+ },
205
+ outlineColor: {
206
+ default: colors.brand,
207
+ hover: colors.brandShade1,
208
+ active: colors.brandShade2
209
+ },
210
+ secondaryColor: {
211
+ default: lightScale.scale8,
212
+ hover: lightScale.scale9,
213
+ active: lightScale.scale10
214
+ },
215
+ positiveColor: {
216
+ default: colors.success,
217
+ hover: colors.successShade1,
218
+ active: colors.successShade2
219
+ },
220
+ negativeColor: {
221
+ default: colors.error,
222
+ hover: colors.errorShade1,
223
+ active: colors.errorShade2
224
+ },
225
+ cautionColor: {
226
+ default: colors.warning,
227
+ hover: colors.warningShade1,
228
+ active: colors.warningShade2
229
+ },
230
+ background: {
231
+ default: 'transparent',
232
+ hover: 'transparent',
233
+ active: 'transparent'
234
+ },
235
+ outlineBackground: {
236
+ default: 'transparent',
237
+ hover: 'transparent',
238
+ active: 'transparent'
239
+ },
240
+ border: {
241
+ default: 'transparent',
242
+ hover: 'transparent',
243
+ active: 'transparent'
244
+ },
245
+ divider: 'transparent'
246
+ },
247
+ disabled: {
248
+ color: {
249
+ default: lightScale.scale4,
250
+ hover: lightScale.scale4,
251
+ active: lightScale.scale4
252
+ },
253
+ outlineColor: {
254
+ default: lightScale.scale4,
255
+ hover: lightScale.scale4,
256
+ active: lightScale.scale4
257
+ },
258
+ background: {
259
+ default: lightScale.scale1,
260
+ hover: lightScale.scale1,
261
+ active: lightScale.scale1
262
+ },
263
+ outlineBackground: {
264
+ default: lightScale.scale0,
265
+ hover: lightScale.scale0,
266
+ active: lightScale.scale0
267
+ },
268
+ border: {
269
+ default: lightScale.scale1,
270
+ hover: lightScale.scale1,
271
+ active: lightScale.scale1
272
+ },
273
+ divider: lightScale.scale1
274
+ },
275
+ color: {
276
+ default: white
277
+ }
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
+ },
384
+ calendar: {
385
+ background: {
386
+ container: colors.contrast10,
387
+ hover: lightScale.scale1,
388
+ active: colors.brand,
389
+ activeHover: colors.brandShade1,
390
+ activeRange: colors.brandTint4
391
+ },
392
+ color: {
393
+ disabled: lightScale.scale4,
394
+ default: lightScale.scale10,
395
+ active: colors.contrast10,
396
+ current: colors.brand,
397
+ outside: lightScale.scale6,
398
+ weekday: lightScale.scale8,
399
+ monthYear: lightScale.scale8,
400
+ iconDefault: lightScale.scale6,
401
+ iconDisabled: lightScale.scale2,
402
+ iconHover: lightScale.scale10
403
+ }
404
+ },
405
+ defaultBorder: `1px solid ${lightScale.scale1}`,
406
+ formControl: {
407
+ color: {
408
+ default: lightScale.scale8,
409
+ hover: lightScale.scale10,
410
+ active: colors.brand,
411
+ activeHover: colors.brandShade1,
412
+ disabled: lightScale.scale4
413
+ }
414
+ },
415
+ input: {
416
+ borderRadius: 4,
417
+ background: {
418
+ default: lightScale.scale0,
419
+ hover: lightScale.scale1,
420
+ focused: lightScale.scale1,
421
+ disabled: lightScale.scale0,
422
+ invalid: colors.errorTint2,
423
+ invalidHover: colors.errorTint1
424
+ },
425
+ color: {
426
+ default: lightScale.scale10,
427
+ disabled: lightScale.scale4,
428
+ placeholder: lightScale.scale6,
429
+ description: lightScale.scale6,
430
+ descriptionError: colors.error
431
+ },
432
+ borderColor: {
433
+ default: lightScale.scale6,
434
+ hover: lightScale.scale8,
435
+ focused: colors.brand,
436
+ disabled: lightScale.scale4,
437
+ error: colors.error
438
+ },
439
+ labelColor: {
440
+ default: lightScale.scale8,
441
+ hover: lightScale.scale8,
442
+ filled: lightScale.scale6,
443
+ focused: colors.brand,
444
+ disabled: lightScale.scale4
445
+ }
446
+ },
447
+ menu: {
448
+ background: lightScale.background1
449
+ },
450
+ menuItem: {
451
+ borderColor: colors.brand,
452
+ background: {
453
+ active: lightScale.scale0,
454
+ hover: lightScale.scale1,
455
+ inactive: 'transparent'
456
+ },
457
+ color: {
458
+ active: lightScale.scale10,
459
+ hover: lightScale.scale10,
460
+ inactive: lightScale.scale6
461
+ }
462
+ },
463
+ modal: {
464
+ background: colors.contrast10,
465
+ color: {
466
+ header: lightScale.scale10,
467
+ body: lightScale.scale6
468
+ }
469
+ },
470
+ options: {
471
+ background: colors.contrast10,
472
+ backdropFilter: void 0
473
+ },
474
+ optionItem: {
475
+ background: {
476
+ hover: lightScale.scale0,
477
+ active: lightScale.scale1,
478
+ inactive: 'transparent'
479
+ },
480
+ color: {
481
+ active: lightScale.scale10,
482
+ inactive: lightScale.scale10,
483
+ accent: colors.brand
484
+ }
485
+ },
486
+ table: {
487
+ color: {
488
+ header: lightScale.scale6,
489
+ body: lightScale.scale10
490
+ },
491
+ backgroundLevel: {
492
+ 0: lightScale.background0,
493
+ 1: lightScale.background1,
494
+ 2: lightScale.background2,
495
+ 3: lightScale.background3,
496
+ 4: lightScale.background4,
497
+ 5: lightScale.background5
498
+ },
499
+ borderColor: lightScale.scale1
500
+ },
501
+ tag: {
502
+ default: {
503
+ background: lightScale.scale1,
504
+ backgroundHover: lightScale.scale2,
505
+ backgroundDisabled: lightScale.scale0
506
+ },
507
+ error: {
508
+ background: colors.errorTint2,
509
+ backgroundHover: colors.error,
510
+ backgroundDisabled: colors.errorTint1
511
+ },
512
+ success: {
513
+ background: colors.successTint2,
514
+ backgroundHover: colors.success,
515
+ backgroundDisabled: colors.successTint1
516
+ },
517
+ warning: {
518
+ background: colors.warningTint2,
519
+ backgroundHover: colors.warning,
520
+ backgroundDisabled: colors.warningTint1
521
+ }
522
+ },
523
+ toast: {
524
+ color: lightScale.scale10,
525
+ background: {
526
+ default: '#F2F3F4',
527
+ info: '#CCE3FD',
528
+ success: '#CCF3D9',
529
+ warning: '#FFEBCC',
530
+ error: '#FFDFE1'
531
+ },
532
+ border: {
533
+ default: lightScale.scale8,
534
+ info: colors.brand,
535
+ success: colors.success,
536
+ warning: colors.warning,
537
+ error: colors.error
538
+ }
539
+ },
540
+ toggle: {
541
+ slider: colors.contrast10
542
+ },
543
+ tooltip: {
544
+ background: '#FFF',
545
+ color: {
546
+ default: lightScale.scale10,
547
+ subtext: lightScale.scale6
548
+ }
549
+ },
550
+ editor: {
551
+ highlight: {
552
+ yellow: colors.alert,
553
+ blue: colors.brandDarkShade1,
554
+ red: colors.error,
555
+ green: colors.success,
556
+ orange: colors.warning
557
+ }
558
+ }
559
+ };
560
+ const light_light = light;
561
+ export { light_light as default };
@@ -0,0 +1,22 @@
1
+ declare const lightScale: {
2
+ scale0: string;
3
+ scale1: string;
4
+ scale2: string;
5
+ scale3: string;
6
+ scale4: string;
7
+ scale5: string;
8
+ scale6: string;
9
+ scale7: string;
10
+ scale8: string;
11
+ scale9: string;
12
+ scale10: string;
13
+ accent: string;
14
+ accentShade: string;
15
+ background0: string;
16
+ background1: string;
17
+ background2: string;
18
+ background3: string;
19
+ background4: string;
20
+ background5: string;
21
+ };
22
+ export default lightScale;
@@ -0,0 +1,35 @@
1
+ import colors from "../colors.js";
2
+ const scale0 = colors.grayscale0;
3
+ const scale1 = colors.grayscale1;
4
+ const scale2 = colors.grayscale2;
5
+ const scale3 = colors.grayscale3;
6
+ const scale4 = colors.grayscale4;
7
+ const scale5 = colors.grayscale5;
8
+ const scale6 = colors.grayscale6;
9
+ const scale7 = colors.grayscale7;
10
+ const scale8 = colors.grayscale8;
11
+ const scale9 = colors.grayscale9;
12
+ const scale10 = colors.grayscale10;
13
+ const lightScale = {
14
+ scale0,
15
+ scale1,
16
+ scale2,
17
+ scale3,
18
+ scale4,
19
+ scale5,
20
+ scale6,
21
+ scale7,
22
+ scale8,
23
+ scale9,
24
+ scale10,
25
+ accent: colors.brand,
26
+ accentShade: colors.brandShade1,
27
+ background0: '#FFFFFF',
28
+ background1: '#F2F3F4',
29
+ background2: '#E6E9EB',
30
+ background3: '#CCD2D6',
31
+ background4: '#B3BCC2',
32
+ background5: '#99A5AD'
33
+ };
34
+ const light_lightScale = lightScale;
35
+ export { light_lightScale as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavv/ui",
3
- "version": "2.2.7",
3
+ "version": "2.3.0-alpha.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -31,29 +31,29 @@
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.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",
34
+ "@tiptap/core": "^3.10.7",
35
+ "@tiptap/extension-character-count": "^3.10.7",
36
+ "@tiptap/extension-highlight": "^3.10.7",
37
+ "@tiptap/extension-placeholder": "^3.10.7",
38
+ "@tiptap/extension-task-item": "^3.10.7",
39
+ "@tiptap/extension-task-list": "^3.10.7",
40
+ "@tiptap/markdown": "^3.10.7",
41
+ "@tiptap/pm": "^3.10.7",
42
+ "@tiptap/react": "^3.10.7",
43
+ "@tiptap/starter-kit": "^3.10.7",
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
- "libphonenumber-js": "^1.12.25",
49
- "lucide-react": "^0.552.0",
48
+ "libphonenumber-js": "^1.12.26",
49
+ "lucide-react": "^0.553.0",
50
50
  "polished": "^4.1.4",
51
51
  "prism-react-renderer": "^2.4.1",
52
52
  "react-aria": "3.44.0",
53
53
  "react-aria-components": "1.13.0",
54
54
  "react-keyed-flatten-children": "^5.0.1",
55
55
  "react-phone-input-auto-format": "^0.1.0",
56
- "recharts": "^3.3.0",
56
+ "recharts": "^3.4.1",
57
57
  "sanitize.css": "^13.0.0",
58
58
  "webfontloader": "^1.6.28"
59
59
  },
@@ -61,14 +61,14 @@
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.3",
64
+ "@biomejs/biome": "2.3.4",
65
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.6.1",
69
- "@rsbuild/plugin-react": "^1.4.1",
68
+ "@rsbuild/core": "1.6.3",
69
+ "@rsbuild/plugin-react": "^1.4.2",
70
70
  "@rsbuild/plugin-svgr": "^1.2.2",
71
- "@rslib/core": "^0.17.0",
71
+ "@rslib/core": "^0.17.1",
72
72
  "@storybook/addon-docs": "^9.1.16",
73
73
  "@storybook/addon-links": "^9.1.16",
74
74
  "@storybook/addon-themes": "^9.1.16",
@@ -91,7 +91,7 @@
91
91
  "change-case": "^5.4.4",
92
92
  "chromatic": "^13.3.3",
93
93
  "jest": "^30.2.0",
94
- "lefthook": "^2.0.2",
94
+ "lefthook": "^2.0.3",
95
95
  "ncp": "^2.0.0",
96
96
  "path": "^0.12.7",
97
97
  "phone": "^3.1.67",