@veracity/vui 0.2.0 → 0.2.2
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/avatar/avatar.js +5 -5
- package/avatar/theme.d.ts +5 -9
- package/avatar/theme.js +5 -18
- package/box/box.js +6 -6
- package/button/button.js +19 -23
- package/button/button.types.d.ts +33 -3
- package/button/buttonIcon.js +3 -3
- package/button/buttonText.js +3 -3
- package/button/buttons.js +8 -8
- package/button/context.js +1 -1
- package/button/theme.js +1 -6
- package/buttonGroup/buttonGroup.js +5 -10
- package/buttonGroup/context.js +1 -1
- package/card/card.js +4 -4
- package/checkbox/checkbox.js +13 -12
- package/checkbox/checkbox.types.d.ts +1 -1
- package/checkbox/checkboxGroup.js +7 -7
- package/checkbox/checkboxGroup.types.d.ts +2 -2
- package/checkbox/context.js +1 -1
- package/checkbox/theme.js +5 -2
- package/core/globalStyle.js +6 -8
- package/core/index.d.ts +1 -2
- package/core/index.js +2 -5
- package/core/resetCSS.js +2 -2
- package/core/styled.d.ts +192 -4
- package/core/styled.js +55 -13
- package/core/types/component.d.ts +2 -7
- package/core/types/index.d.ts +0 -2
- package/core/types/index.js +0 -2
- package/core/utils.d.ts +2 -2
- package/core/utils.js +13 -12
- package/divider/divider.js +6 -6
- package/heading/heading.js +6 -6
- package/heading/headings.js +6 -6
- package/icon/icon.js +6 -6
- package/icon/icon.types.d.ts +1 -2
- package/icons/library.js +9 -5
- package/icons/types.d.ts +1 -1
- package/image/image.js +4 -4
- package/input/context.js +1 -1
- package/input/input.js +11 -16
- package/input/input.types.d.ts +1 -2
- package/input/inputIcon.js +3 -3
- package/input/inputInput.js +4 -4
- package/link/context.d.ts +4 -0
- package/link/context.js +23 -0
- package/link/index.d.ts +2 -0
- package/link/index.js +2 -0
- package/link/link.d.ts +7 -1
- package/link/link.js +35 -7
- package/link/link.types.d.ts +5 -0
- package/link/linkIcon.d.ts +3 -0
- package/link/linkIcon.js +30 -0
- package/link/linkText.d.ts +3 -0
- package/link/linkText.js +30 -0
- package/link/theme.d.ts +27 -10
- package/link/theme.js +26 -12
- package/list/context.js +1 -1
- package/list/index.d.ts +1 -0
- package/list/index.js +1 -0
- package/list/list.d.ts +2 -0
- package/list/list.js +8 -11
- package/list/listDivider.d.ts +3 -0
- package/list/listDivider.js +30 -0
- package/list/listHeading.js +4 -4
- package/list/listIcon.js +3 -3
- package/list/listItem.js +8 -8
- package/list/listText.js +3 -3
- package/list/theme.d.ts +0 -16
- package/list/theme.js +6 -22
- package/notification/context.js +1 -1
- package/notification/notification.js +6 -11
- package/notification/notificationButton.js +3 -3
- package/notification/notificationIcon.js +3 -3
- package/notification/notificationText.js +3 -3
- package/notification/notificationTitle.js +3 -3
- package/p/p.js +6 -6
- package/package.json +1 -1
- package/panel/panel.js +4 -4
- package/radio/context.js +1 -1
- package/radio/radio.js +58 -13
- package/radio/radio.types.d.ts +1 -1
- package/radio/radioGroup.js +24 -17
- package/radio/radioGroup.types.d.ts +2 -2
- package/radio/theme.js +5 -2
- package/skeleton/skeleton.js +6 -6
- package/spinner/spinner.js +5 -5
- package/svg/svg.js +12 -12
- package/switch/context.js +1 -1
- package/switch/switch.js +12 -50
- package/switch/switch.types.d.ts +3 -3
- package/switch/switchButton.js +19 -21
- package/switch/switchLabel.js +3 -3
- package/switch/theme.d.ts +0 -5
- package/switch/theme.js +4 -9
- package/system/custom.d.ts +7 -20
- package/system/custom.js +19 -25
- package/system/system.d.ts +4 -3
- package/system/system.js +2 -2
- package/system/tables.d.ts +14 -0
- package/t/t.js +6 -6
- package/tag/context.js +1 -1
- package/tag/index.d.ts +1 -0
- package/tag/index.js +1 -0
- package/tag/tag.d.ts +2 -0
- package/tag/tag.js +16 -13
- package/tag/tag.types.d.ts +2 -0
- package/tag/tagButton.d.ts +3 -0
- package/tag/tagButton.js +41 -0
- package/tag/tagIcon.js +3 -3
- package/tag/tagText.js +3 -3
- package/tag/theme.d.ts +26 -0
- package/tag/theme.js +32 -3
- package/textarea/textarea.js +9 -9
- package/textarea/textarea.types.d.ts +1 -1
- package/theme/components.d.ts +58 -39
- package/theme/defaultTheme.d.ts +59 -39
- package/theme/foundations/index.d.ts +1 -0
- package/theme/foundations/shadows.js +2 -2
- package/theme/foundations/transformers.d.ts +1 -0
- package/theme/foundations/transformers.js +26 -0
- package/theme/index.d.ts +16 -0
- package/theme/index.js +33 -1
- package/utils/assertion.js +1 -2
- package/utils/function.js +9 -5
- package/utils/object.d.ts +4 -1
- package/utils/object.js +27 -28
- package/utils/types.d.ts +23 -1
- package/core/types/events.d.ts +0 -17
- package/core/types/styled.d.ts +0 -11
- package/core/types/styled.js +0 -2
- package/core/v.d.ts +0 -182
- package/core/v.js +0 -6
- /package/{core/types/events.js → system/tables.js} +0 -0
package/theme/components.d.ts
CHANGED
|
@@ -26,16 +26,13 @@ declare const _default: {
|
|
|
26
26
|
h: number;
|
|
27
27
|
iconSize: string;
|
|
28
28
|
};
|
|
29
|
+
xl: {
|
|
30
|
+
fontSize: string;
|
|
31
|
+
h: number;
|
|
32
|
+
iconSize: string;
|
|
33
|
+
};
|
|
29
34
|
};
|
|
30
35
|
variants: {
|
|
31
|
-
outlined: (props: import("..").Dict<any>) => {
|
|
32
|
-
borderColor: string;
|
|
33
|
-
borderWidth: number;
|
|
34
|
-
hoverBg: string;
|
|
35
|
-
activeBg: string;
|
|
36
|
-
bg: string;
|
|
37
|
-
color: string;
|
|
38
|
-
};
|
|
39
36
|
solid: (props: import("..").Dict<any>) => {
|
|
40
37
|
hoverBg: string;
|
|
41
38
|
activeBg: string;
|
|
@@ -348,28 +345,45 @@ declare const _default: {
|
|
|
348
345
|
size: string;
|
|
349
346
|
variant: string;
|
|
350
347
|
};
|
|
348
|
+
parts: string[];
|
|
351
349
|
sizes: {
|
|
352
|
-
xs: {
|
|
353
|
-
fontSize: string;
|
|
354
|
-
};
|
|
355
350
|
sm: {
|
|
356
|
-
|
|
351
|
+
container: {
|
|
352
|
+
fontSize: string;
|
|
353
|
+
};
|
|
354
|
+
icon: {
|
|
355
|
+
size: string;
|
|
356
|
+
};
|
|
357
357
|
};
|
|
358
358
|
md: {
|
|
359
|
-
|
|
359
|
+
container: {
|
|
360
|
+
fontSize: string;
|
|
361
|
+
};
|
|
362
|
+
icon: {
|
|
363
|
+
size: string;
|
|
364
|
+
};
|
|
360
365
|
};
|
|
361
366
|
lg: {
|
|
362
|
-
|
|
367
|
+
container: {
|
|
368
|
+
fontSize: string;
|
|
369
|
+
};
|
|
370
|
+
icon: {
|
|
371
|
+
size: string;
|
|
372
|
+
};
|
|
363
373
|
};
|
|
364
374
|
};
|
|
365
375
|
variants: {
|
|
366
376
|
default: (props: import("..").Dict<any>) => {
|
|
367
|
-
|
|
368
|
-
|
|
377
|
+
container: {
|
|
378
|
+
color: string;
|
|
379
|
+
hoverColor: string;
|
|
380
|
+
};
|
|
369
381
|
};
|
|
370
382
|
light: (props: import("..").Dict<any>) => {
|
|
371
|
-
|
|
372
|
-
|
|
383
|
+
container: {
|
|
384
|
+
color: string;
|
|
385
|
+
hoverColor: string;
|
|
386
|
+
};
|
|
373
387
|
};
|
|
374
388
|
};
|
|
375
389
|
};
|
|
@@ -382,8 +396,6 @@ declare const _default: {
|
|
|
382
396
|
parts: string[];
|
|
383
397
|
sizes: {
|
|
384
398
|
sm: {
|
|
385
|
-
container: {};
|
|
386
|
-
heading: {};
|
|
387
399
|
icon: {
|
|
388
400
|
size: string;
|
|
389
401
|
};
|
|
@@ -391,11 +403,8 @@ declare const _default: {
|
|
|
391
403
|
fontSize: string;
|
|
392
404
|
h: number;
|
|
393
405
|
};
|
|
394
|
-
text: {};
|
|
395
406
|
};
|
|
396
407
|
md: {
|
|
397
|
-
container: {};
|
|
398
|
-
heading: {};
|
|
399
408
|
icon: {
|
|
400
409
|
size: string;
|
|
401
410
|
};
|
|
@@ -403,11 +412,8 @@ declare const _default: {
|
|
|
403
412
|
fontSize: string;
|
|
404
413
|
h: number;
|
|
405
414
|
};
|
|
406
|
-
text: {};
|
|
407
415
|
};
|
|
408
416
|
lg: {
|
|
409
|
-
container: {};
|
|
410
|
-
heading: {};
|
|
411
417
|
item: {
|
|
412
418
|
fontSize: string;
|
|
413
419
|
h: number;
|
|
@@ -415,11 +421,8 @@ declare const _default: {
|
|
|
415
421
|
icon: {
|
|
416
422
|
size: string;
|
|
417
423
|
};
|
|
418
|
-
text: {};
|
|
419
424
|
};
|
|
420
425
|
xl: {
|
|
421
|
-
container: {};
|
|
422
|
-
heading: {};
|
|
423
426
|
item: {
|
|
424
427
|
fontSize: string;
|
|
425
428
|
h: number;
|
|
@@ -427,16 +430,11 @@ declare const _default: {
|
|
|
427
430
|
icon: {
|
|
428
431
|
scale: number;
|
|
429
432
|
};
|
|
430
|
-
text: {};
|
|
431
433
|
};
|
|
432
434
|
};
|
|
433
435
|
variants: {
|
|
434
436
|
default: (props: import("..").Dict<any>) => {
|
|
435
|
-
container: {};
|
|
436
|
-
heading: {};
|
|
437
|
-
icon: {};
|
|
438
437
|
item: import("..").Dict<any>;
|
|
439
|
-
text: {};
|
|
440
438
|
};
|
|
441
439
|
ordered: {
|
|
442
440
|
container: {
|
|
@@ -685,7 +683,6 @@ declare const _default: {
|
|
|
685
683
|
parts: string[];
|
|
686
684
|
sizes: {
|
|
687
685
|
sm: () => {
|
|
688
|
-
container: {};
|
|
689
686
|
button: {
|
|
690
687
|
fontSize: string;
|
|
691
688
|
minW: number;
|
|
@@ -702,7 +699,6 @@ declare const _default: {
|
|
|
702
699
|
};
|
|
703
700
|
};
|
|
704
701
|
md: () => {
|
|
705
|
-
container: {};
|
|
706
702
|
button: {
|
|
707
703
|
fontSize: string;
|
|
708
704
|
minW: number;
|
|
@@ -719,7 +715,6 @@ declare const _default: {
|
|
|
719
715
|
};
|
|
720
716
|
};
|
|
721
717
|
lg: () => {
|
|
722
|
-
container: {};
|
|
723
718
|
button: {
|
|
724
719
|
fontSize: string;
|
|
725
720
|
minW: number;
|
|
@@ -738,7 +733,6 @@ declare const _default: {
|
|
|
738
733
|
};
|
|
739
734
|
variants: {
|
|
740
735
|
contained: (props: import("..").Dict<any>) => {
|
|
741
|
-
container: {};
|
|
742
736
|
button: {
|
|
743
737
|
thumb: {
|
|
744
738
|
bg: string;
|
|
@@ -748,7 +742,6 @@ declare const _default: {
|
|
|
748
742
|
ring: number;
|
|
749
743
|
};
|
|
750
744
|
};
|
|
751
|
-
label: {};
|
|
752
745
|
};
|
|
753
746
|
};
|
|
754
747
|
};
|
|
@@ -786,6 +779,9 @@ declare const _default: {
|
|
|
786
779
|
h: number;
|
|
787
780
|
spaceX: number;
|
|
788
781
|
};
|
|
782
|
+
button: {
|
|
783
|
+
size: string;
|
|
784
|
+
};
|
|
789
785
|
icon: {
|
|
790
786
|
size: string;
|
|
791
787
|
};
|
|
@@ -797,6 +793,9 @@ declare const _default: {
|
|
|
797
793
|
h: number;
|
|
798
794
|
spaceX: number;
|
|
799
795
|
};
|
|
796
|
+
button: {
|
|
797
|
+
size: string;
|
|
798
|
+
};
|
|
800
799
|
icon: {
|
|
801
800
|
size: string;
|
|
802
801
|
};
|
|
@@ -808,6 +807,9 @@ declare const _default: {
|
|
|
808
807
|
h: number;
|
|
809
808
|
spaceX: number;
|
|
810
809
|
};
|
|
810
|
+
button: {
|
|
811
|
+
size: string;
|
|
812
|
+
};
|
|
811
813
|
icon: {
|
|
812
814
|
size: string;
|
|
813
815
|
};
|
|
@@ -822,6 +824,15 @@ declare const _default: {
|
|
|
822
824
|
bg: string;
|
|
823
825
|
color: string;
|
|
824
826
|
};
|
|
827
|
+
button: {
|
|
828
|
+
hoverBorderColor: string;
|
|
829
|
+
borderColor: string;
|
|
830
|
+
color: string;
|
|
831
|
+
hoverBg: string;
|
|
832
|
+
activeBg: string;
|
|
833
|
+
bg: string;
|
|
834
|
+
variant: string;
|
|
835
|
+
};
|
|
825
836
|
};
|
|
826
837
|
subtle: (props: import("..").Dict<any>) => {
|
|
827
838
|
container: {
|
|
@@ -830,6 +841,14 @@ declare const _default: {
|
|
|
830
841
|
bg: string;
|
|
831
842
|
color: string;
|
|
832
843
|
};
|
|
844
|
+
button: {
|
|
845
|
+
hoverBorderColor: string;
|
|
846
|
+
borderColor: string;
|
|
847
|
+
color: string;
|
|
848
|
+
hoverBg: string;
|
|
849
|
+
activeBg: string;
|
|
850
|
+
variant: string;
|
|
851
|
+
};
|
|
833
852
|
};
|
|
834
853
|
};
|
|
835
854
|
};
|
package/theme/defaultTheme.d.ts
CHANGED
|
@@ -155,6 +155,7 @@ declare const defaultTheme: {
|
|
|
155
155
|
sizes: {};
|
|
156
156
|
spaces: {};
|
|
157
157
|
transformers: {
|
|
158
|
+
border: (value: string | number, { props }: any) => string;
|
|
158
159
|
space: (value: string | number) => string;
|
|
159
160
|
};
|
|
160
161
|
transforms: {};
|
|
@@ -188,16 +189,13 @@ declare const defaultTheme: {
|
|
|
188
189
|
h: number;
|
|
189
190
|
iconSize: string;
|
|
190
191
|
};
|
|
192
|
+
xl: {
|
|
193
|
+
fontSize: string;
|
|
194
|
+
h: number;
|
|
195
|
+
iconSize: string;
|
|
196
|
+
};
|
|
191
197
|
};
|
|
192
198
|
variants: {
|
|
193
|
-
outlined: (props: import("..").Dict<any>) => {
|
|
194
|
-
borderColor: string;
|
|
195
|
-
borderWidth: number;
|
|
196
|
-
hoverBg: string;
|
|
197
|
-
activeBg: string;
|
|
198
|
-
bg: string;
|
|
199
|
-
color: string;
|
|
200
|
-
};
|
|
201
199
|
solid: (props: import("..").Dict<any>) => {
|
|
202
200
|
hoverBg: string;
|
|
203
201
|
activeBg: string;
|
|
@@ -510,28 +508,45 @@ declare const defaultTheme: {
|
|
|
510
508
|
size: string;
|
|
511
509
|
variant: string;
|
|
512
510
|
};
|
|
511
|
+
parts: string[];
|
|
513
512
|
sizes: {
|
|
514
|
-
xs: {
|
|
515
|
-
fontSize: string;
|
|
516
|
-
};
|
|
517
513
|
sm: {
|
|
518
|
-
|
|
514
|
+
container: {
|
|
515
|
+
fontSize: string;
|
|
516
|
+
};
|
|
517
|
+
icon: {
|
|
518
|
+
size: string;
|
|
519
|
+
};
|
|
519
520
|
};
|
|
520
521
|
md: {
|
|
521
|
-
|
|
522
|
+
container: {
|
|
523
|
+
fontSize: string;
|
|
524
|
+
};
|
|
525
|
+
icon: {
|
|
526
|
+
size: string;
|
|
527
|
+
};
|
|
522
528
|
};
|
|
523
529
|
lg: {
|
|
524
|
-
|
|
530
|
+
container: {
|
|
531
|
+
fontSize: string;
|
|
532
|
+
};
|
|
533
|
+
icon: {
|
|
534
|
+
size: string;
|
|
535
|
+
};
|
|
525
536
|
};
|
|
526
537
|
};
|
|
527
538
|
variants: {
|
|
528
539
|
default: (props: import("..").Dict<any>) => {
|
|
529
|
-
|
|
530
|
-
|
|
540
|
+
container: {
|
|
541
|
+
color: string;
|
|
542
|
+
hoverColor: string;
|
|
543
|
+
};
|
|
531
544
|
};
|
|
532
545
|
light: (props: import("..").Dict<any>) => {
|
|
533
|
-
|
|
534
|
-
|
|
546
|
+
container: {
|
|
547
|
+
color: string;
|
|
548
|
+
hoverColor: string;
|
|
549
|
+
};
|
|
535
550
|
};
|
|
536
551
|
};
|
|
537
552
|
};
|
|
@@ -544,8 +559,6 @@ declare const defaultTheme: {
|
|
|
544
559
|
parts: string[];
|
|
545
560
|
sizes: {
|
|
546
561
|
sm: {
|
|
547
|
-
container: {};
|
|
548
|
-
heading: {};
|
|
549
562
|
icon: {
|
|
550
563
|
size: string;
|
|
551
564
|
};
|
|
@@ -553,11 +566,8 @@ declare const defaultTheme: {
|
|
|
553
566
|
fontSize: string;
|
|
554
567
|
h: number;
|
|
555
568
|
};
|
|
556
|
-
text: {};
|
|
557
569
|
};
|
|
558
570
|
md: {
|
|
559
|
-
container: {};
|
|
560
|
-
heading: {};
|
|
561
571
|
icon: {
|
|
562
572
|
size: string;
|
|
563
573
|
};
|
|
@@ -565,11 +575,8 @@ declare const defaultTheme: {
|
|
|
565
575
|
fontSize: string;
|
|
566
576
|
h: number;
|
|
567
577
|
};
|
|
568
|
-
text: {};
|
|
569
578
|
};
|
|
570
579
|
lg: {
|
|
571
|
-
container: {};
|
|
572
|
-
heading: {};
|
|
573
580
|
item: {
|
|
574
581
|
fontSize: string;
|
|
575
582
|
h: number;
|
|
@@ -577,11 +584,8 @@ declare const defaultTheme: {
|
|
|
577
584
|
icon: {
|
|
578
585
|
size: string;
|
|
579
586
|
};
|
|
580
|
-
text: {};
|
|
581
587
|
};
|
|
582
588
|
xl: {
|
|
583
|
-
container: {};
|
|
584
|
-
heading: {};
|
|
585
589
|
item: {
|
|
586
590
|
fontSize: string;
|
|
587
591
|
h: number;
|
|
@@ -589,16 +593,11 @@ declare const defaultTheme: {
|
|
|
589
593
|
icon: {
|
|
590
594
|
scale: number;
|
|
591
595
|
};
|
|
592
|
-
text: {};
|
|
593
596
|
};
|
|
594
597
|
};
|
|
595
598
|
variants: {
|
|
596
599
|
default: (props: import("..").Dict<any>) => {
|
|
597
|
-
container: {};
|
|
598
|
-
heading: {};
|
|
599
|
-
icon: {};
|
|
600
600
|
item: import("..").Dict<any>;
|
|
601
|
-
text: {};
|
|
602
601
|
};
|
|
603
602
|
ordered: {
|
|
604
603
|
container: {
|
|
@@ -847,7 +846,6 @@ declare const defaultTheme: {
|
|
|
847
846
|
parts: string[];
|
|
848
847
|
sizes: {
|
|
849
848
|
sm: () => {
|
|
850
|
-
container: {};
|
|
851
849
|
button: {
|
|
852
850
|
fontSize: string;
|
|
853
851
|
minW: number;
|
|
@@ -864,7 +862,6 @@ declare const defaultTheme: {
|
|
|
864
862
|
};
|
|
865
863
|
};
|
|
866
864
|
md: () => {
|
|
867
|
-
container: {};
|
|
868
865
|
button: {
|
|
869
866
|
fontSize: string;
|
|
870
867
|
minW: number;
|
|
@@ -881,7 +878,6 @@ declare const defaultTheme: {
|
|
|
881
878
|
};
|
|
882
879
|
};
|
|
883
880
|
lg: () => {
|
|
884
|
-
container: {};
|
|
885
881
|
button: {
|
|
886
882
|
fontSize: string;
|
|
887
883
|
minW: number;
|
|
@@ -900,7 +896,6 @@ declare const defaultTheme: {
|
|
|
900
896
|
};
|
|
901
897
|
variants: {
|
|
902
898
|
contained: (props: import("..").Dict<any>) => {
|
|
903
|
-
container: {};
|
|
904
899
|
button: {
|
|
905
900
|
thumb: {
|
|
906
901
|
bg: string;
|
|
@@ -910,7 +905,6 @@ declare const defaultTheme: {
|
|
|
910
905
|
ring: number;
|
|
911
906
|
};
|
|
912
907
|
};
|
|
913
|
-
label: {};
|
|
914
908
|
};
|
|
915
909
|
};
|
|
916
910
|
};
|
|
@@ -948,6 +942,9 @@ declare const defaultTheme: {
|
|
|
948
942
|
h: number;
|
|
949
943
|
spaceX: number;
|
|
950
944
|
};
|
|
945
|
+
button: {
|
|
946
|
+
size: string;
|
|
947
|
+
};
|
|
951
948
|
icon: {
|
|
952
949
|
size: string;
|
|
953
950
|
};
|
|
@@ -959,6 +956,9 @@ declare const defaultTheme: {
|
|
|
959
956
|
h: number;
|
|
960
957
|
spaceX: number;
|
|
961
958
|
};
|
|
959
|
+
button: {
|
|
960
|
+
size: string;
|
|
961
|
+
};
|
|
962
962
|
icon: {
|
|
963
963
|
size: string;
|
|
964
964
|
};
|
|
@@ -970,6 +970,9 @@ declare const defaultTheme: {
|
|
|
970
970
|
h: number;
|
|
971
971
|
spaceX: number;
|
|
972
972
|
};
|
|
973
|
+
button: {
|
|
974
|
+
size: string;
|
|
975
|
+
};
|
|
973
976
|
icon: {
|
|
974
977
|
size: string;
|
|
975
978
|
};
|
|
@@ -984,6 +987,15 @@ declare const defaultTheme: {
|
|
|
984
987
|
bg: string;
|
|
985
988
|
color: string;
|
|
986
989
|
};
|
|
990
|
+
button: {
|
|
991
|
+
hoverBorderColor: string;
|
|
992
|
+
borderColor: string;
|
|
993
|
+
color: string;
|
|
994
|
+
hoverBg: string;
|
|
995
|
+
activeBg: string;
|
|
996
|
+
bg: string;
|
|
997
|
+
variant: string;
|
|
998
|
+
};
|
|
987
999
|
};
|
|
988
1000
|
subtle: (props: import("..").Dict<any>) => {
|
|
989
1001
|
container: {
|
|
@@ -992,6 +1004,14 @@ declare const defaultTheme: {
|
|
|
992
1004
|
bg: string;
|
|
993
1005
|
color: string;
|
|
994
1006
|
};
|
|
1007
|
+
button: {
|
|
1008
|
+
hoverBorderColor: string;
|
|
1009
|
+
borderColor: string;
|
|
1010
|
+
color: string;
|
|
1011
|
+
hoverBg: string;
|
|
1012
|
+
activeBg: string;
|
|
1013
|
+
variant: string;
|
|
1014
|
+
};
|
|
995
1015
|
};
|
|
996
1016
|
};
|
|
997
1017
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var colors_1 = require("./colors");
|
|
4
4
|
var utils_1 = require("../../utils");
|
|
5
|
-
var greyLight = utils_1.hexToRGB(colors_1.grey[80], 0.4);
|
|
6
|
-
var greyDark = utils_1.hexToRGB(colors_1.grey[80], 0.6);
|
|
5
|
+
var greyLight = (0, utils_1.hexToRGB)(colors_1.grey[80], 0.4);
|
|
6
|
+
var greyDark = (0, utils_1.hexToRGB)(colors_1.grey[80], 0.6);
|
|
7
7
|
exports.default = {
|
|
8
8
|
'0': "0 0 0 0 #fff",
|
|
9
9
|
'1': "0 2px 5px 0 " + greyLight,
|
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
3
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4
|
+
if (!m) return o;
|
|
5
|
+
var i = m.call(o), r, ar = [], e;
|
|
6
|
+
try {
|
|
7
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
8
|
+
}
|
|
9
|
+
catch (error) { e = { error: error }; }
|
|
10
|
+
finally {
|
|
11
|
+
try {
|
|
12
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
13
|
+
}
|
|
14
|
+
finally { if (e) throw e.error; }
|
|
15
|
+
}
|
|
16
|
+
return ar;
|
|
17
|
+
};
|
|
2
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
var system_1 = require("@xstyled/system");
|
|
3
20
|
exports.default = {
|
|
21
|
+
border: function (value, _a) {
|
|
22
|
+
var props = _a.props;
|
|
23
|
+
if (typeof value === 'number')
|
|
24
|
+
return value + "px solid";
|
|
25
|
+
var values = value.split(' ');
|
|
26
|
+
var _b = __read(values, 3), width = _b[0], style = _b[1], color = _b[2];
|
|
27
|
+
var colorValue = (0, system_1.getColor)(color)(props);
|
|
28
|
+
return width + " " + style + " " + colorValue;
|
|
29
|
+
},
|
|
4
30
|
space: function (value) {
|
|
5
31
|
return typeof value === 'string' ? value : value * 8 + "px";
|
|
6
32
|
}
|
package/theme/index.d.ts
CHANGED
|
@@ -2,5 +2,21 @@ import defaultTheme from './defaultTheme';
|
|
|
2
2
|
export { default as components } from './components';
|
|
3
3
|
export { default as defaultTheme } from './defaultTheme';
|
|
4
4
|
export { default as foundations } from './foundations';
|
|
5
|
+
export { default as animations } from './foundations/animations';
|
|
6
|
+
export { default as borders } from './foundations/borders';
|
|
7
|
+
export { default as colors } from './foundations/colors';
|
|
8
|
+
export { default as durations } from './foundations/durations';
|
|
9
|
+
export { default as fonts } from './foundations/fonts';
|
|
10
|
+
export { default as fontSizes } from './foundations/fontSizes';
|
|
11
|
+
export { default as fontWeights } from './foundations/fontWeights';
|
|
12
|
+
export { default as radii } from './foundations/radii';
|
|
13
|
+
export { default as ringWidths } from './foundations/ringWidths';
|
|
14
|
+
export { default as screens } from './foundations/screens';
|
|
15
|
+
export { default as shadows } from './foundations/shadows';
|
|
16
|
+
export { default as sizes } from './foundations/sizes';
|
|
17
|
+
export { default as spaces } from './foundations/spaces';
|
|
18
|
+
export { default as transforms } from './foundations/transforms';
|
|
19
|
+
export { default as transitions } from './foundations/transitions';
|
|
20
|
+
export { default as zIndices } from './foundations/zIndices';
|
|
5
21
|
export * from './types';
|
|
6
22
|
export default defaultTheme;
|
package/theme/index.js
CHANGED
|
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
14
|
};
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.foundations = exports.defaultTheme = exports.components = void 0;
|
|
16
|
+
exports.zIndices = exports.transitions = exports.transforms = exports.spaces = exports.sizes = exports.shadows = exports.screens = exports.ringWidths = exports.radii = exports.fontWeights = exports.fontSizes = exports.fonts = exports.durations = exports.colors = exports.borders = exports.animations = exports.foundations = exports.defaultTheme = exports.components = void 0;
|
|
17
17
|
var defaultTheme_1 = __importDefault(require("./defaultTheme"));
|
|
18
18
|
var components_1 = require("./components");
|
|
19
19
|
Object.defineProperty(exports, "components", { enumerable: true, get: function () { return __importDefault(components_1).default; } });
|
|
@@ -21,5 +21,37 @@ var defaultTheme_2 = require("./defaultTheme");
|
|
|
21
21
|
Object.defineProperty(exports, "defaultTheme", { enumerable: true, get: function () { return __importDefault(defaultTheme_2).default; } });
|
|
22
22
|
var foundations_1 = require("./foundations");
|
|
23
23
|
Object.defineProperty(exports, "foundations", { enumerable: true, get: function () { return __importDefault(foundations_1).default; } });
|
|
24
|
+
var animations_1 = require("./foundations/animations");
|
|
25
|
+
Object.defineProperty(exports, "animations", { enumerable: true, get: function () { return __importDefault(animations_1).default; } });
|
|
26
|
+
var borders_1 = require("./foundations/borders");
|
|
27
|
+
Object.defineProperty(exports, "borders", { enumerable: true, get: function () { return __importDefault(borders_1).default; } });
|
|
28
|
+
var colors_1 = require("./foundations/colors");
|
|
29
|
+
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return __importDefault(colors_1).default; } });
|
|
30
|
+
var durations_1 = require("./foundations/durations");
|
|
31
|
+
Object.defineProperty(exports, "durations", { enumerable: true, get: function () { return __importDefault(durations_1).default; } });
|
|
32
|
+
var fonts_1 = require("./foundations/fonts");
|
|
33
|
+
Object.defineProperty(exports, "fonts", { enumerable: true, get: function () { return __importDefault(fonts_1).default; } });
|
|
34
|
+
var fontSizes_1 = require("./foundations/fontSizes");
|
|
35
|
+
Object.defineProperty(exports, "fontSizes", { enumerable: true, get: function () { return __importDefault(fontSizes_1).default; } });
|
|
36
|
+
var fontWeights_1 = require("./foundations/fontWeights");
|
|
37
|
+
Object.defineProperty(exports, "fontWeights", { enumerable: true, get: function () { return __importDefault(fontWeights_1).default; } });
|
|
38
|
+
var radii_1 = require("./foundations/radii");
|
|
39
|
+
Object.defineProperty(exports, "radii", { enumerable: true, get: function () { return __importDefault(radii_1).default; } });
|
|
40
|
+
var ringWidths_1 = require("./foundations/ringWidths");
|
|
41
|
+
Object.defineProperty(exports, "ringWidths", { enumerable: true, get: function () { return __importDefault(ringWidths_1).default; } });
|
|
42
|
+
var screens_1 = require("./foundations/screens");
|
|
43
|
+
Object.defineProperty(exports, "screens", { enumerable: true, get: function () { return __importDefault(screens_1).default; } });
|
|
44
|
+
var shadows_1 = require("./foundations/shadows");
|
|
45
|
+
Object.defineProperty(exports, "shadows", { enumerable: true, get: function () { return __importDefault(shadows_1).default; } });
|
|
46
|
+
var sizes_1 = require("./foundations/sizes");
|
|
47
|
+
Object.defineProperty(exports, "sizes", { enumerable: true, get: function () { return __importDefault(sizes_1).default; } });
|
|
48
|
+
var spaces_1 = require("./foundations/spaces");
|
|
49
|
+
Object.defineProperty(exports, "spaces", { enumerable: true, get: function () { return __importDefault(spaces_1).default; } });
|
|
50
|
+
var transforms_1 = require("./foundations/transforms");
|
|
51
|
+
Object.defineProperty(exports, "transforms", { enumerable: true, get: function () { return __importDefault(transforms_1).default; } });
|
|
52
|
+
var transitions_1 = require("./foundations/transitions");
|
|
53
|
+
Object.defineProperty(exports, "transitions", { enumerable: true, get: function () { return __importDefault(transitions_1).default; } });
|
|
54
|
+
var zIndices_1 = require("./foundations/zIndices");
|
|
55
|
+
Object.defineProperty(exports, "zIndices", { enumerable: true, get: function () { return __importDefault(zIndices_1).default; } });
|
|
24
56
|
__exportStar(require("./types"), exports);
|
|
25
57
|
exports.default = defaultTheme_1.default;
|
package/utils/assertion.js
CHANGED
|
@@ -18,8 +18,7 @@ function isNumber(value) {
|
|
|
18
18
|
exports.isNumber = isNumber;
|
|
19
19
|
/** Is value an object. */
|
|
20
20
|
function isObject(value) {
|
|
21
|
-
|
|
22
|
-
return value !== null && (type === 'object' || type === 'function') && !isArray(value);
|
|
21
|
+
return !!value && typeof value === 'object' && !isFunction(value) && !isArray(value);
|
|
23
22
|
}
|
|
24
23
|
exports.isObject = isObject;
|
|
25
24
|
/** Is value a valid ReactText - string or number */
|
package/utils/function.js
CHANGED
|
@@ -15,10 +15,14 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
15
15
|
}
|
|
16
16
|
return ar;
|
|
17
17
|
};
|
|
18
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
19
|
-
for (var i = 0,
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
19
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
20
|
+
if (ar || !(i in from)) {
|
|
21
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
22
|
+
ar[i] = from[i];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
22
26
|
};
|
|
23
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
28
|
exports.runIfFn = void 0;
|
|
@@ -31,6 +35,6 @@ function runIfFn(value) {
|
|
|
31
35
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
32
36
|
args[_i - 1] = arguments[_i];
|
|
33
37
|
}
|
|
34
|
-
return typeof value === 'function' ? value.apply(void 0, __spreadArray([], __read(args))) : value;
|
|
38
|
+
return typeof value === 'function' ? value.apply(void 0, __spreadArray([], __read(args), false)) : value;
|
|
35
39
|
}
|
|
36
40
|
exports.runIfFn = runIfFn;
|
package/utils/object.d.ts
CHANGED
|
@@ -7,7 +7,10 @@ export declare const filterUndefined: (object: Dict) => Dict<any>;
|
|
|
7
7
|
* - Key exists in target and both keys are arrays => concat (not unique)
|
|
8
8
|
* - Key isn't an object, an array or doesn't exist in target => override
|
|
9
9
|
*/
|
|
10
|
-
export declare function merge<
|
|
10
|
+
export declare function merge<S1 extends Dict>(s1: S1): S1;
|
|
11
|
+
export declare function merge<S1 extends Dict, S2 extends Dict>(s1: S1, s2: S2): S1 & S2;
|
|
12
|
+
export declare function merge<S1 extends Dict, S2 extends Dict, S3 extends Dict>(s1: S1, s2: S2, s3: S3): S1 & S2 & S3;
|
|
13
|
+
export declare function merge<S1 extends Dict, S2 extends Dict, S3 extends Dict, S4 extends Dict>(s1: S1, s2: S2, s3: S3, s4: S4): S1 & S2 & S3 & S4;
|
|
11
14
|
/**
|
|
12
15
|
* Returns the items of an object that meet the condition specified in a callback function.
|
|
13
16
|
*/
|