@ultraviolet/ui 1.20.2 → 1.21.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/README.md CHANGED
@@ -13,7 +13,7 @@ $ pnpm add @ultraviolet/ui @emotion/react @emotion/styled
13
13
  You will also need to import fonts in your project by adding:
14
14
 
15
15
  ```html
16
- <link href="https://fonts.cdnfonts.com/css/asap?styles=20325,20323,20320" rel="stylesheet">
16
+ <link href="https://fonts.cdnfonts.com/css/inter?styles=29139,29137,29140" rel="stylesheet">
17
17
  <link href="https://fonts.cdnfonts.com/css/jetbrains-mono-2?styles=156604" rel="stylesheet">
18
18
  ```
19
19
 
package/dist/index.d.ts CHANGED
@@ -131,6 +131,50 @@ declare const typography: {
131
131
  textDecoration: string;
132
132
  weight: string;
133
133
  };
134
+ captionSmallStrong: {
135
+ fontFamily: string;
136
+ fontSize: string;
137
+ fontWeight: string;
138
+ letterSpacing: string;
139
+ lineHeight: string;
140
+ paragraphSpacing: string;
141
+ textCase: string;
142
+ textDecoration: string;
143
+ weight: string;
144
+ };
145
+ captionSmallStronger: {
146
+ fontFamily: string;
147
+ fontSize: string;
148
+ fontWeight: string;
149
+ letterSpacing: string;
150
+ lineHeight: string;
151
+ paragraphSpacing: string;
152
+ textCase: string;
153
+ textDecoration: string;
154
+ weight: string;
155
+ };
156
+ captionStrong: {
157
+ fontFamily: string;
158
+ fontSize: string;
159
+ fontWeight: string;
160
+ letterSpacing: string;
161
+ lineHeight: string;
162
+ paragraphSpacing: string;
163
+ textCase: string;
164
+ textDecoration: string;
165
+ weight: string;
166
+ };
167
+ captionStronger: {
168
+ fontFamily: string;
169
+ fontSize: string;
170
+ fontWeight: string;
171
+ letterSpacing: string;
172
+ lineHeight: string;
173
+ paragraphSpacing: string;
174
+ textCase: string;
175
+ textDecoration: string;
176
+ weight: string;
177
+ };
134
178
  code: {
135
179
  fontFamily: string;
136
180
  fontSize: string;
@@ -175,6 +219,52 @@ declare const typography: {
175
219
  textDecoration: string;
176
220
  weight: string;
177
221
  };
222
+ } & {
223
+ body: {
224
+ fontFamily: string;
225
+ };
226
+ bodySmall: {
227
+ fontFamily: string;
228
+ };
229
+ bodySmallStrong: {
230
+ fontFamily: string;
231
+ };
232
+ bodySmallStronger: {
233
+ fontFamily: string;
234
+ };
235
+ bodyStrong: {
236
+ fontFamily: string;
237
+ };
238
+ bodyStronger: {
239
+ fontFamily: string;
240
+ };
241
+ caption: {
242
+ fontFamily: string;
243
+ };
244
+ captionSmall: {
245
+ fontFamily: string;
246
+ };
247
+ captionSmallStrong: {
248
+ fontFamily: string;
249
+ };
250
+ captionSmallStronger: {
251
+ fontFamily: string;
252
+ };
253
+ captionStrong: {
254
+ fontFamily: string;
255
+ };
256
+ captionStronger: {
257
+ fontFamily: string;
258
+ };
259
+ heading: {
260
+ fontFamily: string;
261
+ };
262
+ headingLarge: {
263
+ fontFamily: string;
264
+ };
265
+ headingSmall: {
266
+ fontFamily: string;
267
+ };
178
268
  };
179
269
  type RecursivePartial<T> = {
180
270
  [P in keyof T]?: RecursivePartial<T[P]>;
@@ -193,36 +283,24 @@ declare const extendTheme: (extendedTheme: RecursivePartial<UltravioletUITheme>)
193
283
  backgroundStrong: string;
194
284
  backgroundStrongDisabled: string;
195
285
  backgroundStrongHover: string;
196
- backgroundWeak: string;
197
- backgroundWeakDisabled: string;
198
- backgroundWeakHover: string;
199
286
  border: string;
200
287
  borderDisabled: string;
201
288
  borderHover: string;
202
289
  borderStrong: string;
203
290
  borderStrongDisabled: string;
204
291
  borderStrongHover: string;
205
- borderWeak: string;
206
- borderWeakDisabled: string;
207
- borderWeakHover: string;
208
292
  icon: string;
209
293
  iconDisabled: string;
210
294
  iconHover: string;
211
295
  iconStrong: string;
212
296
  iconStrongDisabled: string;
213
297
  iconStrongHover: string;
214
- iconWeak: string;
215
- iconWeakDisabled: string;
216
- iconWeakHover: string;
217
298
  text: string;
218
299
  textDisabled: string;
219
300
  textHover: string;
220
301
  textStrong: string;
221
302
  textStrongDisabled: string;
222
303
  textStrongHover: string;
223
- textWeak: string;
224
- textWeakDisabled: string;
225
- textWeakHover: string;
226
304
  };
227
305
  info: {
228
306
  background: string;
@@ -231,36 +309,24 @@ declare const extendTheme: (extendedTheme: RecursivePartial<UltravioletUITheme>)
231
309
  backgroundStrong: string;
232
310
  backgroundStrongDisabled: string;
233
311
  backgroundStrongHover: string;
234
- backgroundWeak: string;
235
- backgroundWeakDisabled: string;
236
- backgroundWeakHover: string;
237
312
  border: string;
238
313
  borderDisabled: string;
239
314
  borderHover: string;
240
315
  borderStrong: string;
241
316
  borderStrongDisabled: string;
242
317
  borderStrongHover: string;
243
- borderWeak: string;
244
- borderWeakDisabled: string;
245
- borderWeakHover: string;
246
318
  icon: string;
247
319
  iconDisabled: string;
248
320
  iconHover: string;
249
321
  iconStrong: string;
250
322
  iconStrongDisabled: string;
251
323
  iconStrongHover: string;
252
- iconWeak: string;
253
- iconWeakDisabled: string;
254
- iconWeakHover: string;
255
324
  text: string;
256
325
  textDisabled: string;
257
326
  textHover: string;
258
327
  textStrong: string;
259
328
  textStrongDisabled: string;
260
329
  textStrongHover: string;
261
- textWeak: string;
262
- textWeakDisabled: string;
263
- textWeakHover: string;
264
330
  };
265
331
  neutral: {
266
332
  background: string;
@@ -391,36 +457,24 @@ declare const extendTheme: (extendedTheme: RecursivePartial<UltravioletUITheme>)
391
457
  backgroundStrong: string;
392
458
  backgroundStrongDisabled: string;
393
459
  backgroundStrongHover: string;
394
- backgroundWeak: string;
395
- backgroundWeakDisabled: string;
396
- backgroundWeakHover: string;
397
460
  border: string;
398
461
  borderDisabled: string;
399
462
  borderHover: string;
400
463
  borderStrong: string;
401
464
  borderStrongDisabled: string;
402
465
  borderStrongHover: string;
403
- borderWeak: string;
404
- borderWeakDisabled: string;
405
- borderWeakHover: string;
406
466
  icon: string;
407
467
  iconDisabled: string;
408
468
  iconHover: string;
409
469
  iconStrong: string;
410
470
  iconStrongDisabled: string;
411
471
  iconStrongHover: string;
412
- iconWeak: string;
413
- iconWeakDisabled: string;
414
- iconWeakHover: string;
415
472
  text: string;
416
473
  textDisabled: string;
417
474
  textHover: string;
418
475
  textStrong: string;
419
476
  textStrongDisabled: string;
420
477
  textStrongHover: string;
421
- textWeak: string;
422
- textWeakDisabled: string;
423
- textWeakHover: string;
424
478
  };
425
479
  secondary: {
426
480
  background: string;
@@ -429,36 +483,24 @@ declare const extendTheme: (extendedTheme: RecursivePartial<UltravioletUITheme>)
429
483
  backgroundStrong: string;
430
484
  backgroundStrongDisabled: string;
431
485
  backgroundStrongHover: string;
432
- backgroundWeak: string;
433
- backgroundWeakDisabled: string;
434
- backgroundWeakHover: string;
435
486
  border: string;
436
487
  borderDisabled: string;
437
488
  borderHover: string;
438
489
  borderStrong: string;
439
490
  borderStrongDisabled: string;
440
491
  borderStrongHover: string;
441
- borderWeak: string;
442
- borderWeakDisabled: string;
443
- borderWeakHover: string;
444
492
  icon: string;
445
493
  iconDisabled: string;
446
494
  iconHover: string;
447
495
  iconStrong: string;
448
496
  iconStrongDisabled: string;
449
497
  iconStrongHover: string;
450
- iconWeak: string;
451
- iconWeakDisabled: string;
452
- iconWeakHover: string;
453
498
  text: string;
454
499
  textDisabled: string;
455
500
  textHover: string;
456
501
  textStrong: string;
457
502
  textStrongDisabled: string;
458
503
  textStrongHover: string;
459
- textWeak: string;
460
- textWeakDisabled: string;
461
- textWeakHover: string;
462
504
  };
463
505
  success: {
464
506
  background: string;
@@ -467,36 +509,24 @@ declare const extendTheme: (extendedTheme: RecursivePartial<UltravioletUITheme>)
467
509
  backgroundStrong: string;
468
510
  backgroundStrongDisabled: string;
469
511
  backgroundStrongHover: string;
470
- backgroundWeak: string;
471
- backgroundWeakDisabled: string;
472
- backgroundWeakHover: string;
473
512
  border: string;
474
513
  borderDisabled: string;
475
514
  borderHover: string;
476
515
  borderStrong: string;
477
516
  borderStrongDisabled: string;
478
517
  borderStrongHover: string;
479
- borderWeak: string;
480
- borderWeakDisabled: string;
481
- borderWeakHover: string;
482
518
  icon: string;
483
519
  iconDisabled: string;
484
520
  iconHover: string;
485
521
  iconStrong: string;
486
522
  iconStrongDisabled: string;
487
523
  iconStrongHover: string;
488
- iconWeak: string;
489
- iconWeakDisabled: string;
490
- iconWeakHover: string;
491
524
  text: string;
492
525
  textDisabled: string;
493
526
  textHover: string;
494
527
  textStrong: string;
495
528
  textStrongDisabled: string;
496
529
  textStrongHover: string;
497
- textWeak: string;
498
- textWeakDisabled: string;
499
- textWeakHover: string;
500
530
  };
501
531
  warning: {
502
532
  background: string;
@@ -505,33 +535,106 @@ declare const extendTheme: (extendedTheme: RecursivePartial<UltravioletUITheme>)
505
535
  backgroundStrong: string;
506
536
  backgroundStrongDisabled: string;
507
537
  backgroundStrongHover: string;
508
- backgroundWeak: string;
509
- backgroundWeakDisabled: string;
510
- backgroundWeakHover: string;
511
538
  border: string;
512
539
  borderDisabled: string;
513
540
  borderHover: string;
514
541
  borderStrong: string;
515
542
  borderStrongDisabled: string;
516
543
  borderStrongHover: string;
517
- borderWeak: string;
518
- borderWeakDisabled: string;
519
- borderWeakHover: string;
520
544
  icon: string;
521
545
  iconDisabled: string;
522
546
  iconHover: string;
523
547
  iconStrong: string;
524
548
  iconStrongDisabled: string;
525
549
  iconStrongHover: string;
526
- iconWeak: string;
527
- iconWeakDisabled: string;
528
- iconWeakHover: string;
529
550
  text: string;
530
551
  textDisabled: string;
531
552
  textHover: string;
532
553
  textStrong: string;
533
554
  textStrongDisabled: string;
534
555
  textStrongHover: string;
556
+ };
557
+ } & {
558
+ danger: {
559
+ backgroundWeak: string;
560
+ backgroundWeakDisabled: string;
561
+ backgroundWeakHover: string;
562
+ borderWeak: string;
563
+ borderWeakDisabled: string;
564
+ borderWeakHover: string;
565
+ iconWeak: string;
566
+ iconWeakDisabled: string;
567
+ iconWeakHover: string;
568
+ textWeak: string;
569
+ textWeakDisabled: string;
570
+ textWeakHover: string;
571
+ };
572
+ info: {
573
+ backgroundWeak: string;
574
+ backgroundWeakDisabled: string;
575
+ backgroundWeakHover: string;
576
+ borderWeak: string;
577
+ borderWeakDisabled: string;
578
+ borderWeakHover: string;
579
+ iconWeak: string;
580
+ iconWeakDisabled: string;
581
+ iconWeakHover: string;
582
+ textWeak: string;
583
+ textWeakDisabled: string;
584
+ textWeakHover: string;
585
+ };
586
+ primary: {
587
+ backgroundWeak: string;
588
+ backgroundWeakDisabled: string;
589
+ backgroundWeakHover: string;
590
+ borderWeak: string;
591
+ borderWeakDisabled: string;
592
+ borderWeakHover: string;
593
+ iconWeak: string;
594
+ iconWeakDisabled: string;
595
+ iconWeakHover: string;
596
+ textWeak: string;
597
+ textWeakDisabled: string;
598
+ textWeakHover: string;
599
+ };
600
+ secondary: {
601
+ backgroundWeak: string;
602
+ backgroundWeakDisabled: string;
603
+ backgroundWeakHover: string;
604
+ borderWeak: string;
605
+ borderWeakDisabled: string;
606
+ borderWeakHover: string;
607
+ iconWeak: string;
608
+ iconWeakDisabled: string;
609
+ iconWeakHover: string;
610
+ textWeak: string;
611
+ textWeakDisabled: string;
612
+ textWeakHover: string;
613
+ };
614
+ success: {
615
+ backgroundWeak: string;
616
+ backgroundWeakDisabled: string;
617
+ backgroundWeakHover: string;
618
+ borderWeak: string;
619
+ borderWeakDisabled: string;
620
+ borderWeakHover: string;
621
+ iconWeak: string;
622
+ iconWeakDisabled: string;
623
+ iconWeakHover: string;
624
+ textWeak: string;
625
+ textWeakDisabled: string;
626
+ textWeakHover: string;
627
+ };
628
+ warning: {
629
+ backgroundWeak: string;
630
+ backgroundWeakDisabled: string;
631
+ backgroundWeakHover: string;
632
+ borderWeak: string;
633
+ borderWeakDisabled: string;
634
+ borderWeakHover: string;
635
+ iconWeak: string;
636
+ iconWeakDisabled: string;
637
+ iconWeakHover: string;
535
638
  textWeak: string;
536
639
  textWeakDisabled: string;
537
640
  textWeakHover: string;
@@ -677,6 +780,50 @@ declare const extendTheme: (extendedTheme: RecursivePartial<UltravioletUITheme>)
677
780
  textDecoration: string;
678
781
  weight: string;
679
782
  };
783
+ captionSmallStrong: {
784
+ fontFamily: string;
785
+ fontSize: string;
786
+ fontWeight: string;
787
+ letterSpacing: string;
788
+ lineHeight: string;
789
+ paragraphSpacing: string;
790
+ textCase: string;
791
+ textDecoration: string;
792
+ weight: string;
793
+ };
794
+ captionSmallStronger: {
795
+ fontFamily: string;
796
+ fontSize: string;
797
+ fontWeight: string;
798
+ letterSpacing: string;
799
+ lineHeight: string;
800
+ paragraphSpacing: string;
801
+ textCase: string;
802
+ textDecoration: string;
803
+ weight: string;
804
+ };
805
+ captionStrong: {
806
+ fontFamily: string;
807
+ fontSize: string;
808
+ fontWeight: string;
809
+ letterSpacing: string;
810
+ lineHeight: string;
811
+ paragraphSpacing: string;
812
+ textCase: string;
813
+ textDecoration: string;
814
+ weight: string;
815
+ };
816
+ captionStronger: {
817
+ fontFamily: string;
818
+ fontSize: string;
819
+ fontWeight: string;
820
+ letterSpacing: string;
821
+ lineHeight: string;
822
+ paragraphSpacing: string;
823
+ textCase: string;
824
+ textDecoration: string;
825
+ weight: string;
826
+ };
680
827
  code: {
681
828
  fontFamily: string;
682
829
  fontSize: string;
@@ -721,6 +868,52 @@ declare const extendTheme: (extendedTheme: RecursivePartial<UltravioletUITheme>)
721
868
  textDecoration: string;
722
869
  weight: string;
723
870
  };
871
+ } & {
872
+ body: {
873
+ fontFamily: string;
874
+ };
875
+ bodySmall: {
876
+ fontFamily: string;
877
+ };
878
+ bodySmallStrong: {
879
+ fontFamily: string;
880
+ };
881
+ bodySmallStronger: {
882
+ fontFamily: string;
883
+ };
884
+ bodyStrong: {
885
+ fontFamily: string;
886
+ };
887
+ bodyStronger: {
888
+ fontFamily: string;
889
+ };
890
+ caption: {
891
+ fontFamily: string;
892
+ };
893
+ captionSmall: {
894
+ fontFamily: string;
895
+ };
896
+ captionSmallStrong: {
897
+ fontFamily: string;
898
+ };
899
+ captionSmallStronger: {
900
+ fontFamily: string;
901
+ };
902
+ captionStrong: {
903
+ fontFamily: string;
904
+ };
905
+ captionStronger: {
906
+ fontFamily: string;
907
+ };
908
+ heading: {
909
+ fontFamily: string;
910
+ };
911
+ headingLarge: {
912
+ fontFamily: string;
913
+ };
914
+ headingSmall: {
915
+ fontFamily: string;
916
+ };
724
917
  };
725
918
  screens: {
726
919
  xsmall: number;
@@ -133,13 +133,13 @@ const StyledOutlinedButton = /*#__PURE__*/_styled('button', {
133
133
  theme,
134
134
  sentiment
135
135
  } = _ref5;
136
- return theme.colors[sentiment][sentiment === 'neutral' ? 'borderStrong' : 'borderWeak'];
136
+ return theme.colors[sentiment][sentiment === 'neutral' ? 'borderStrong' : 'border'];
137
137
  }, ";color:", _ref6 => {
138
138
  let {
139
139
  theme,
140
140
  sentiment
141
141
  } = _ref6;
142
- return theme.colors[sentiment][sentiment === 'neutral' ? 'text' : 'textWeak'];
142
+ return theme.colors[sentiment].text;
143
143
  }, ";", _ref7 => {
144
144
  let {
145
145
  theme,
@@ -148,16 +148,16 @@ const StyledOutlinedButton = /*#__PURE__*/_styled('button', {
148
148
  } = _ref7;
149
149
  return disabled ? `
150
150
  color:
151
- ${theme.colors[sentiment][sentiment === 'neutral' ? 'textDisabled' : 'textWeakDisabled']};
152
- border: 1px solid ${theme.colors[sentiment][sentiment === 'neutral' ? 'borderStrongDisabled' : 'borderWeakDisabled']};
151
+ ${theme.colors[sentiment].textDisabled};
152
+ border: 1px solid ${theme.colors[sentiment][sentiment === 'neutral' ? 'borderStrongDisabled' : 'borderDisabled']};
153
153
 
154
154
  ` : `
155
155
  &:hover, &:active
156
156
  {
157
157
  background: ${theme.colors[sentiment].backgroundHover};
158
158
  color:
159
- ${theme.colors[sentiment][sentiment === 'neutral' ? 'textHover' : 'textWeakHover']};
160
- border: 1px solid ${theme.colors[sentiment][sentiment === 'neutral' ? 'borderStrongHover' : 'borderWeakHover']};
159
+ ${theme.colors[sentiment].textHover};
160
+ border: 1px solid ${theme.colors[sentiment][sentiment === 'neutral' ? 'borderStrongHover' : 'borderHover']};
161
161
 
162
162
  }
163
163
  `;
@@ -170,7 +170,7 @@ const StyledGhostButton = /*#__PURE__*/_styled('button', {
170
170
  theme,
171
171
  sentiment
172
172
  } = _ref8;
173
- return theme.colors[sentiment][sentiment === 'neutral' ? 'text' : 'textWeak'];
173
+ return theme.colors[sentiment].text;
174
174
  }, ";", _ref9 => {
175
175
  let {
176
176
  theme,
@@ -179,13 +179,13 @@ const StyledGhostButton = /*#__PURE__*/_styled('button', {
179
179
  } = _ref9;
180
180
  return disabled ? `
181
181
  color:
182
- ${theme.colors[sentiment][sentiment === 'neutral' ? 'textDisabled' : 'textWeakDisabled']};
182
+ ${theme.colors[sentiment].textDisabled};
183
183
  ` : `
184
184
  &:hover, &:active
185
185
  {
186
186
  background: ${theme.colors[sentiment].backgroundHover};
187
187
  color:
188
- ${theme.colors[sentiment][sentiment === 'neutral' ? 'textHover' : 'textWeakHover']};
188
+ ${theme.colors[sentiment].textHover};
189
189
  }
190
190
  `;
191
191
  }, ";");
@@ -83,7 +83,7 @@ const Loader = _ref4 => {
83
83
  r: circleRadius,
84
84
  fill: "none",
85
85
  strokeWidth: strokeWidth,
86
- stroke: theme.colors[trailColor]?.borderWeak || trailColor
86
+ stroke: theme.colors[trailColor]?.border || trailColor
87
87
  }), jsx("circle", {
88
88
  css: _ref,
89
89
  cx: HALF_VIEWBOX_WIDTH,
@@ -39,7 +39,7 @@ const ListItem = /*#__PURE__*/_styled("li", {
39
39
  isFocused,
40
40
  theme
41
41
  } = _ref2;
42
- return isFocused ? theme.colors.primary.textWeak : theme.colors.neutral.text;
42
+ return isFocused ? theme.colors.primary.text : theme.colors.neutral.text;
43
43
  }, ";");
44
44
  const Bullet = /*#__PURE__*/_styled("div", {
45
45
  target: "e12qyakg6"
@@ -114,7 +114,7 @@ const ProgressiveLine = /*#__PURE__*/_styled("span", {
114
114
  let {
115
115
  theme
116
116
  } = _ref10;
117
- return theme.colors.primary.borderWeak;
117
+ return theme.colors.primary.border;
118
118
  }, ";position:absolute;left:0;top:0;bottom:-1px;transition:width 500ms ease;width:", _ref11 => {
119
119
  let {
120
120
  isFocused
@@ -37,7 +37,7 @@ const getPlaceholderColor = _ref3 => {
37
37
  theme
38
38
  } = _ref3;
39
39
  if (state.isDisabled) return theme.colors.neutral.textDisabled;
40
- if (error) return theme.colors.danger.textWeak;
40
+ if (error) return theme.colors.danger.text;
41
41
  return theme.colors.neutral.textWeak;
42
42
  };
43
43
  const getOptionColor = _ref4 => {
@@ -75,7 +75,7 @@ const StyledElement = /*#__PURE__*/_styled('div', {
75
75
  let {
76
76
  theme
77
77
  } = _ref13;
78
- return theme.colors.primary.textWeak;
78
+ return theme.colors.primary.text;
79
79
  }, ";}&[data-error='true']{color:", _ref14 => {
80
80
  let {
81
81
  theme
@@ -54,7 +54,7 @@ const StyledSelectableCard = /*#__PURE__*/_styled(SelectableCard, {
54
54
  let {
55
55
  theme
56
56
  } = _ref9;
57
- return theme.colors.primary.textWeak;
57
+ return theme.colors.primary.text;
58
58
  }, ";}}");
59
59
  /**
60
60
  * SwitchButton is a component that allows the user to select between two options.
@@ -80,7 +80,7 @@ const StyledTabButton = /*#__PURE__*/_styled('button', {
80
80
  let {
81
81
  theme
82
82
  } = _ref13;
83
- return theme.colors.primary.borderWeak;
83
+ return theme.colors.primary.border;
84
84
  }, ";}&[aria-disabled='false']:not(:disabled){&:hover,&:focus,&:active{outline:none;color:", _ref14 => {
85
85
  let {
86
86
  theme
@@ -90,7 +90,7 @@ const StyledTabButton = /*#__PURE__*/_styled('button', {
90
90
  let {
91
91
  theme
92
92
  } = _ref15;
93
- return theme.colors.primary.borderWeak;
93
+ return theme.colors.primary.border;
94
94
  }, ";&[data-is-selected='false']{", StyledBadge, "{background-color:", _ref16 => {
95
95
  let {
96
96
  theme
@@ -118,7 +118,7 @@ const StyledLabel = /*#__PURE__*/_styled('label', {
118
118
  colors
119
119
  }
120
120
  } = _ref10;
121
- return error && /*#__PURE__*/css("color:", colors.danger.textWeak, ";");
121
+ return error && /*#__PURE__*/css("color:", colors.danger.text, ";");
122
122
  }, ";");
123
123
  const StyledRelativeDiv = /*#__PURE__*/_styled("div", {
124
124
  target: "el3h3g95"
@@ -136,7 +136,7 @@ const StyledError = /*#__PURE__*/_styled("div", {
136
136
  let {
137
137
  theme
138
138
  } = _ref11;
139
- return theme.colors.danger.textWeak;
139
+ return theme.colors.danger.text;
140
140
  }, ";padding-top:", _ref12 => {
141
141
  let {
142
142
  theme
@@ -205,7 +205,7 @@ const StyledInput = /*#__PURE__*/_styled('input', {
205
205
  colors
206
206
  }
207
207
  } = _ref21;
208
- return colors.primary.borderWeakHover;
208
+ return colors.primary.borderHover;
209
209
  }, ";}&:focus{box-shadow:", _ref22 => {
210
210
  let {
211
211
  theme: {
@@ -219,7 +219,7 @@ const StyledInput = /*#__PURE__*/_styled('input', {
219
219
  colors
220
220
  }
221
221
  } = _ref23;
222
- return colors.primary.borderWeakHover;
222
+ return colors.primary.borderHover;
223
223
  }, ";}", _ref24 => {
224
224
  let {
225
225
  isPlaceholderVisible
@@ -268,7 +268,7 @@ const StyledInput = /*#__PURE__*/_styled('input', {
268
268
  shadows
269
269
  }
270
270
  } = _ref29;
271
- return error && `border-color: ${colors.danger.borderWeak};
271
+ return error && `border-color: ${colors.danger.border};
272
272
 
273
273
  &:hover,
274
274
  &:focus {
@@ -277,7 +277,7 @@ const StyledInput = /*#__PURE__*/_styled('input', {
277
277
 
278
278
  &:focus {
279
279
  box-shadow: ${shadows.focusDanger};
280
- border-color: ${colors.danger.borderWeakHover};
280
+ border-color: ${colors.danger.borderHover};
281
281
  }`;
282
282
  }, " ", _ref30 => {
283
283
  let {
@@ -370,7 +370,9 @@ const TextInput = /*#__PURE__*/forwardRef((_ref34, ref) => {
370
370
  valid,
371
371
  value,
372
372
  wrap,
373
- inputProps
373
+ inputProps,
374
+ min,
375
+ max
374
376
  } = _ref34;
375
377
  const controlRef = useRef(null);
376
378
  const [visited, setVisited] = useState(false);
@@ -494,6 +496,8 @@ const TextInput = /*#__PURE__*/forwardRef((_ref34, ref) => {
494
496
  type: getType(),
495
497
  value: value,
496
498
  wrap: wrap,
499
+ min: min,
500
+ max: max,
497
501
  ...inputProps
498
502
  }), hasLabel && jsx(StyledLabel, {
499
503
  edit: !!edit,
@@ -14,13 +14,13 @@ const StyledInput = /*#__PURE__*/_styled("input", {
14
14
  'aria-invalid': error,
15
15
  theme
16
16
  } = _ref2;
17
- return error ? theme.colors.danger.borderWeak : theme.colors.neutral.border;
17
+ return error ? theme.colors.danger.border : theme.colors.neutral.border;
18
18
  }, ";font-size:24px;color:", _ref3 => {
19
19
  let {
20
20
  'aria-invalid': error,
21
21
  theme
22
22
  } = _ref3;
23
- return error ? theme.colors.danger.textWeak : theme.colors.neutral.text;
23
+ return error ? theme.colors.danger.text : theme.colors.neutral.text;
24
24
  }, ";text-align:center;border-radius:", _ref4 => {
25
25
  let {
26
26
  theme
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/ui",
3
- "version": "1.20.2",
3
+ "version": "1.21.0",
4
4
  "description": "Ultraviolet UI",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -43,9 +43,9 @@
43
43
  "@emotion/babel-plugin": "11.11.0",
44
44
  "@emotion/react": "11.11.1",
45
45
  "@emotion/styled": "11.11.0",
46
- "@types/react": "18.2.28",
47
- "@types/react-datepicker": "4.15.2",
48
- "@types/react-dom": "18.2.13",
46
+ "@types/react": "18.2.31",
47
+ "@types/react-datepicker": "4.19.0",
48
+ "@types/react-dom": "18.2.14",
49
49
  "react": "18.2.0",
50
50
  "react-dom": "18.2.0"
51
51
  },
@@ -66,8 +66,8 @@
66
66
  "react-toastify": "9.1.3",
67
67
  "react-use-clipboard": "1.0.9",
68
68
  "reakit": "1.3.11",
69
- "@ultraviolet/themes": "1.2.1",
70
- "@ultraviolet/icons": "2.4.1"
69
+ "@ultraviolet/themes": "1.3.0",
70
+ "@ultraviolet/icons": "2.4.2"
71
71
  },
72
72
  "scripts": {
73
73
  "build": "rollup -c ../../rollup.config.mjs"