oneslash-design-system 1.1.2 → 1.1.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/components/button.tsx +3 -1
- package/components/modal.tsx +30 -12
- package/dist/components/alert.d.ts +9 -0
- package/dist/components/alert.jsx +38 -0
- package/dist/components/button.d.ts +13 -0
- package/dist/components/button.jsx +141 -0
- package/dist/components/checkBox.d.ts +7 -0
- package/dist/components/checkBox.jsx +29 -0
- package/dist/components/emptyBox.d.ts +7 -0
- package/dist/components/emptyBox.jsx +17 -0
- package/dist/components/iconButton.d.ts +11 -0
- package/dist/components/iconButton.jsx +126 -0
- package/dist/components/loadingScreen.d.ts +3 -0
- package/dist/components/loadingScreen.jsx +14 -0
- package/dist/components/menuItem.d.ts +10 -0
- package/dist/components/menuItem.jsx +96 -0
- package/dist/components/modal.d.ts +11 -0
- package/dist/components/modal.jsx +47 -0
- package/dist/components/popover.d.ts +10 -0
- package/dist/components/popover.jsx +52 -0
- package/dist/components/tab.d.ts +12 -0
- package/dist/components/tab.jsx +113 -0
- package/dist/components/tag.d.ts +15 -0
- package/dist/components/tag.jsx +123 -0
- package/dist/components/textField.d.ts +20 -0
- package/dist/components/textField.jsx +55 -0
- package/dist/components/timeStamp.d.ts +7 -0
- package/dist/components/timeStamp.jsx +58 -0
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/components/tooltip.jsx +41 -0
- package/dist/components/userImage.d.ts +7 -0
- package/dist/components/userImage.jsx +13 -0
- package/dist/designTokens.d.ts +354 -0
- package/dist/designTokens.js +232 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +17 -0
- package/dist/output.css +102 -0
- package/dist/tailwind.config.d.ts +3 -0
- package/dist/tailwind.config.js +202 -0
- package/package.json +4 -2
- package/tsconfig.json +10 -16
package/dist/output.css
CHANGED
|
@@ -547,6 +547,9 @@ video {
|
|
|
547
547
|
.mt-1 {
|
|
548
548
|
margin-top: 0.25rem;
|
|
549
549
|
}
|
|
550
|
+
.block {
|
|
551
|
+
display: block;
|
|
552
|
+
}
|
|
550
553
|
.inline-block {
|
|
551
554
|
display: inline-block;
|
|
552
555
|
}
|
|
@@ -557,6 +560,9 @@ video {
|
|
|
557
560
|
width: 1.5rem;
|
|
558
561
|
height: 1.5rem;
|
|
559
562
|
}
|
|
563
|
+
.h-12 {
|
|
564
|
+
height: 3rem;
|
|
565
|
+
}
|
|
560
566
|
.h-3 {
|
|
561
567
|
height: 0.75rem;
|
|
562
568
|
}
|
|
@@ -569,9 +575,18 @@ video {
|
|
|
569
575
|
.h-6 {
|
|
570
576
|
height: 1.5rem;
|
|
571
577
|
}
|
|
578
|
+
.h-\[40px\] {
|
|
579
|
+
height: 40px;
|
|
580
|
+
}
|
|
572
581
|
.h-full {
|
|
573
582
|
height: 100%;
|
|
574
583
|
}
|
|
584
|
+
.min-h-\[200px\] {
|
|
585
|
+
min-height: 200px;
|
|
586
|
+
}
|
|
587
|
+
.w-12 {
|
|
588
|
+
width: 3rem;
|
|
589
|
+
}
|
|
575
590
|
.w-3 {
|
|
576
591
|
width: 0.75rem;
|
|
577
592
|
}
|
|
@@ -584,6 +599,12 @@ video {
|
|
|
584
599
|
.w-6 {
|
|
585
600
|
width: 1.5rem;
|
|
586
601
|
}
|
|
602
|
+
.w-\[1200px\] {
|
|
603
|
+
width: 1200px;
|
|
604
|
+
}
|
|
605
|
+
.w-\[40px\] {
|
|
606
|
+
width: 40px;
|
|
607
|
+
}
|
|
587
608
|
.w-\[600px\] {
|
|
588
609
|
width: 600px;
|
|
589
610
|
}
|
|
@@ -593,9 +614,21 @@ video {
|
|
|
593
614
|
.max-w-md {
|
|
594
615
|
max-width: 28rem;
|
|
595
616
|
}
|
|
617
|
+
.flex-1 {
|
|
618
|
+
flex: 1 1 0%;
|
|
619
|
+
}
|
|
596
620
|
.transform {
|
|
597
621
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
598
622
|
}
|
|
623
|
+
@keyframes spin {
|
|
624
|
+
|
|
625
|
+
to {
|
|
626
|
+
transform: rotate(360deg);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
.animate-spin {
|
|
630
|
+
animation: spin 1s linear infinite;
|
|
631
|
+
}
|
|
599
632
|
.cursor-not-allowed {
|
|
600
633
|
cursor: not-allowed;
|
|
601
634
|
}
|
|
@@ -630,6 +663,11 @@ video {
|
|
|
630
663
|
margin-right: calc(0.5rem * var(--tw-space-x-reverse));
|
|
631
664
|
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
|
632
665
|
}
|
|
666
|
+
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
|
|
667
|
+
--tw-space-y-reverse: 0;
|
|
668
|
+
margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
|
|
669
|
+
margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
|
|
670
|
+
}
|
|
633
671
|
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
|
|
634
672
|
--tw-space-y-reverse: 0;
|
|
635
673
|
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
|
|
@@ -638,6 +676,11 @@ video {
|
|
|
638
676
|
.overflow-hidden {
|
|
639
677
|
overflow: hidden;
|
|
640
678
|
}
|
|
679
|
+
.truncate {
|
|
680
|
+
overflow: hidden;
|
|
681
|
+
text-overflow: ellipsis;
|
|
682
|
+
white-space: nowrap;
|
|
683
|
+
}
|
|
641
684
|
.whitespace-nowrap {
|
|
642
685
|
white-space: nowrap;
|
|
643
686
|
}
|
|
@@ -656,6 +699,9 @@ video {
|
|
|
656
699
|
.border-2 {
|
|
657
700
|
border-width: 2px;
|
|
658
701
|
}
|
|
702
|
+
.border-4 {
|
|
703
|
+
border-width: 4px;
|
|
704
|
+
}
|
|
659
705
|
.border-none {
|
|
660
706
|
border-style: none;
|
|
661
707
|
}
|
|
@@ -663,6 +709,10 @@ video {
|
|
|
663
709
|
--tw-border-opacity: 1;
|
|
664
710
|
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
|
665
711
|
}
|
|
712
|
+
.border-light-accent-main {
|
|
713
|
+
--tw-border-opacity: 1;
|
|
714
|
+
border-color: rgb(238 174 3 / var(--tw-border-opacity));
|
|
715
|
+
}
|
|
666
716
|
.border-light-text-secondary {
|
|
667
717
|
--tw-border-opacity: 1;
|
|
668
718
|
border-color: rgb(109 109 109 / var(--tw-border-opacity));
|
|
@@ -671,6 +721,9 @@ video {
|
|
|
671
721
|
--tw-border-opacity: 1;
|
|
672
722
|
border-color: rgb(239 68 68 / var(--tw-border-opacity));
|
|
673
723
|
}
|
|
724
|
+
.border-t-transparent {
|
|
725
|
+
border-top-color: transparent;
|
|
726
|
+
}
|
|
674
727
|
.bg-black {
|
|
675
728
|
--tw-bg-opacity: 1;
|
|
676
729
|
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
|
|
@@ -695,6 +748,10 @@ video {
|
|
|
695
748
|
--tw-bg-opacity: 1;
|
|
696
749
|
background-color: rgb(238 238 238 / var(--tw-bg-opacity));
|
|
697
750
|
}
|
|
751
|
+
.bg-light-background-accent100 {
|
|
752
|
+
--tw-bg-opacity: 1;
|
|
753
|
+
background-color: rgb(246 246 246 / var(--tw-bg-opacity));
|
|
754
|
+
}
|
|
698
755
|
.bg-light-background-accent200 {
|
|
699
756
|
--tw-bg-opacity: 1;
|
|
700
757
|
background-color: rgb(231 231 231 / var(--tw-bg-opacity));
|
|
@@ -723,6 +780,9 @@ video {
|
|
|
723
780
|
--tw-bg-opacity: 1;
|
|
724
781
|
background-color: rgb(239 108 0 / var(--tw-bg-opacity));
|
|
725
782
|
}
|
|
783
|
+
.bg-transparent {
|
|
784
|
+
background-color: transparent;
|
|
785
|
+
}
|
|
726
786
|
.bg-opacity-50 {
|
|
727
787
|
--tw-bg-opacity: 0.5;
|
|
728
788
|
}
|
|
@@ -749,6 +809,10 @@ video {
|
|
|
749
809
|
padding-top: 0.25rem;
|
|
750
810
|
padding-bottom: 0.25rem;
|
|
751
811
|
}
|
|
812
|
+
.py-6 {
|
|
813
|
+
padding-top: 1.5rem;
|
|
814
|
+
padding-bottom: 1.5rem;
|
|
815
|
+
}
|
|
752
816
|
.py-\[3px\] {
|
|
753
817
|
padding-top: 3px;
|
|
754
818
|
padding-bottom: 3px;
|
|
@@ -759,6 +823,9 @@ video {
|
|
|
759
823
|
.pr-3 {
|
|
760
824
|
padding-right: 0.75rem;
|
|
761
825
|
}
|
|
826
|
+
.text-center {
|
|
827
|
+
text-align: center;
|
|
828
|
+
}
|
|
762
829
|
.text-body1 {
|
|
763
830
|
font-size: 16px;
|
|
764
831
|
}
|
|
@@ -845,6 +912,16 @@ video {
|
|
|
845
912
|
.ring-offset-2 {
|
|
846
913
|
--tw-ring-offset-width: 2px;
|
|
847
914
|
}
|
|
915
|
+
.ring-offset-4 {
|
|
916
|
+
--tw-ring-offset-width: 4px;
|
|
917
|
+
}
|
|
918
|
+
.ring-offset-light-background-default {
|
|
919
|
+
--tw-ring-offset-color: #FFFFFF;
|
|
920
|
+
}
|
|
921
|
+
.blur {
|
|
922
|
+
--tw-blur: blur(8px);
|
|
923
|
+
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
924
|
+
}
|
|
848
925
|
.transition-all {
|
|
849
926
|
transition-property: all;
|
|
850
927
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -862,49 +939,65 @@ video {
|
|
|
862
939
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
863
940
|
}
|
|
864
941
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');
|
|
942
|
+
|
|
943
|
+
body {
|
|
944
|
+
font-family: 'Inter', sans-serif;
|
|
945
|
+
}
|
|
946
|
+
|
|
865
947
|
.group:hover .group-hover\:bg-light-action-selected {
|
|
866
948
|
--tw-bg-opacity: 1;
|
|
867
949
|
background-color: rgb(227 227 227 / var(--tw-bg-opacity));
|
|
868
950
|
}
|
|
951
|
+
|
|
869
952
|
.hover\:bg-dark-background-accent300:hover {
|
|
870
953
|
--tw-bg-opacity: 1;
|
|
871
954
|
background-color: rgb(79 79 79 / var(--tw-bg-opacity));
|
|
872
955
|
}
|
|
956
|
+
|
|
873
957
|
.hover\:bg-light-accent-dark:hover {
|
|
874
958
|
--tw-bg-opacity: 1;
|
|
875
959
|
background-color: rgb(206 134 2 / var(--tw-bg-opacity));
|
|
876
960
|
}
|
|
961
|
+
|
|
877
962
|
.hover\:bg-light-action-hover:hover {
|
|
878
963
|
--tw-bg-opacity: 1;
|
|
879
964
|
background-color: rgb(243 243 243 / var(--tw-bg-opacity));
|
|
880
965
|
}
|
|
966
|
+
|
|
881
967
|
.hover\:bg-light-background-accent100:hover {
|
|
882
968
|
--tw-bg-opacity: 1;
|
|
883
969
|
background-color: rgb(246 246 246 / var(--tw-bg-opacity));
|
|
884
970
|
}
|
|
971
|
+
|
|
885
972
|
.hover\:bg-light-background-accent300:hover {
|
|
886
973
|
--tw-bg-opacity: 1;
|
|
887
974
|
background-color: rgb(209 209 209 / var(--tw-bg-opacity));
|
|
888
975
|
}
|
|
976
|
+
|
|
889
977
|
.hover\:bg-light-background-default:hover {
|
|
890
978
|
--tw-bg-opacity: 1;
|
|
891
979
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
892
980
|
}
|
|
981
|
+
|
|
893
982
|
.hover\:bg-light-primary-dark:hover {
|
|
894
983
|
--tw-bg-opacity: 1;
|
|
895
984
|
background-color: rgb(38 38 38 / var(--tw-bg-opacity));
|
|
896
985
|
}
|
|
986
|
+
|
|
897
987
|
.hover\:bg-opacity-75:hover {
|
|
898
988
|
--tw-bg-opacity: 0.75;
|
|
899
989
|
}
|
|
990
|
+
|
|
900
991
|
.focus\:border-light-accent-main:focus {
|
|
901
992
|
--tw-border-opacity: 1;
|
|
902
993
|
border-color: rgb(238 174 3 / var(--tw-border-opacity));
|
|
903
994
|
}
|
|
995
|
+
|
|
904
996
|
.focus\:ring-red-500:focus {
|
|
905
997
|
--tw-ring-opacity: 1;
|
|
906
998
|
--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity));
|
|
907
999
|
}
|
|
1000
|
+
|
|
908
1001
|
@media (prefers-color-scheme: dark) {
|
|
909
1002
|
|
|
910
1003
|
.dark\:border-dark-text-secondary {
|
|
@@ -927,6 +1020,11 @@ video {
|
|
|
927
1020
|
background-color: rgb(56 56 56 / var(--tw-bg-opacity));
|
|
928
1021
|
}
|
|
929
1022
|
|
|
1023
|
+
.dark\:bg-dark-background-accent100 {
|
|
1024
|
+
--tw-bg-opacity: 1;
|
|
1025
|
+
background-color: rgb(51 51 51 / var(--tw-bg-opacity));
|
|
1026
|
+
}
|
|
1027
|
+
|
|
930
1028
|
.dark\:bg-dark-background-accent200 {
|
|
931
1029
|
--tw-bg-opacity: 1;
|
|
932
1030
|
background-color: rgb(69 69 69 / var(--tw-bg-opacity));
|
|
@@ -1002,6 +1100,10 @@ video {
|
|
|
1002
1100
|
--tw-ring-color: rgb(255 205 41 / var(--tw-ring-opacity));
|
|
1003
1101
|
}
|
|
1004
1102
|
|
|
1103
|
+
.dark\:ring-offset-dark-background-default {
|
|
1104
|
+
--tw-ring-offset-color: #262626;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1005
1107
|
.group:hover .dark\:group-hover\:bg-dark-action-selected {
|
|
1006
1108
|
--tw-bg-opacity: 1;
|
|
1007
1109
|
background-color: rgb(78 78 78 / var(--tw-bg-opacity));
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
var designTokens = require('./designTokens');
|
|
2
|
+
var config = {
|
|
3
|
+
content: [
|
|
4
|
+
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
5
|
+
],
|
|
6
|
+
theme: {
|
|
7
|
+
extend: {
|
|
8
|
+
colors: {
|
|
9
|
+
// Light: text colors
|
|
10
|
+
'light-text-primary': designTokens.colors.light.text.primary,
|
|
11
|
+
'light-text-secondary': designTokens.colors.light.text.secondary,
|
|
12
|
+
'light-text-disabled': designTokens.colors.light.text.disabled,
|
|
13
|
+
'light-text-contrast': designTokens.colors.light.text.contrast,
|
|
14
|
+
// Dark: text colors
|
|
15
|
+
'dark-text-primary': designTokens.colors.dark.text.primary,
|
|
16
|
+
'dark-text-secondary': designTokens.colors.dark.text.secondary,
|
|
17
|
+
'dark-text-disabled': designTokens.colors.dark.text.disabled,
|
|
18
|
+
'dark-text-contrast': designTokens.colors.dark.text.contrast,
|
|
19
|
+
// light: accent colors
|
|
20
|
+
'light-accent-main': designTokens.colors.light.accent.main,
|
|
21
|
+
'light-accent-dark': designTokens.colors.light.accent.dark,
|
|
22
|
+
'light-accent-light': designTokens.colors.light.accent.light,
|
|
23
|
+
'light-accent-contrast': designTokens.colors.light.accent.contrast,
|
|
24
|
+
// dark: accent colors
|
|
25
|
+
'dark-accent-main': designTokens.colors.dark.accent.main,
|
|
26
|
+
'dark-accent-dark': designTokens.colors.dark.accent.dark,
|
|
27
|
+
'dark-accent-light': designTokens.colors.dark.accent.light,
|
|
28
|
+
'dark-accent-contrast': designTokens.colors.dark.accent.contrast,
|
|
29
|
+
// Light: primary colors
|
|
30
|
+
'light-primary-main': designTokens.colors.light.primary.main,
|
|
31
|
+
'light-primary-dark': designTokens.colors.light.primary.dark,
|
|
32
|
+
'light-primary-light': designTokens.colors.light.primary.light,
|
|
33
|
+
'light-primary-contrast': designTokens.colors.light.primary.contrast,
|
|
34
|
+
// Dark: primary colors
|
|
35
|
+
'dark-primary-main': designTokens.colors.dark.primary.main,
|
|
36
|
+
'dark-primary-dark': designTokens.colors.dark.primary.dark,
|
|
37
|
+
'dark-primary-light': designTokens.colors.dark.primary.light,
|
|
38
|
+
'dark-primary-contrast': designTokens.colors.dark.primary.contrast,
|
|
39
|
+
// light: secondary colors
|
|
40
|
+
'light-secondary-main': designTokens.colors.light.secondary.main,
|
|
41
|
+
'light-secondary-dark': designTokens.colors.light.secondary.dark,
|
|
42
|
+
'light-secondary-light': designTokens.colors.light.secondary.light,
|
|
43
|
+
// dark: secondary colors
|
|
44
|
+
'dark-secondary-main': designTokens.colors.dark.secondary.main,
|
|
45
|
+
'dark-secondary-dark': designTokens.colors.dark.secondary.dark,
|
|
46
|
+
'dark-secondary-light': designTokens.colors.dark.secondary.light,
|
|
47
|
+
// light: error colors
|
|
48
|
+
'light-error-main': designTokens.colors.light.error.main,
|
|
49
|
+
'light-error-dark': designTokens.colors.light.error.dark,
|
|
50
|
+
'light-error-light': designTokens.colors.light.error.light,
|
|
51
|
+
// dark: error colors
|
|
52
|
+
'dark-error-main': designTokens.colors.dark.error.main,
|
|
53
|
+
'dark-error-dark': designTokens.colors.dark.error.dark,
|
|
54
|
+
'dark-error-light': designTokens.colors.dark.error.light,
|
|
55
|
+
// light: warning colors
|
|
56
|
+
'light-warning-main': designTokens.colors.light.warning.main,
|
|
57
|
+
'light-warning-dark': designTokens.colors.light.warning.dark,
|
|
58
|
+
'light-warning-light': designTokens.colors.light.warning.light,
|
|
59
|
+
// dark: warning colors
|
|
60
|
+
'dark-warning-main': designTokens.colors.dark.warning.main,
|
|
61
|
+
'dark-warning-dark': designTokens.colors.dark.warning.dark,
|
|
62
|
+
'dark-warning-light': designTokens.colors.dark.warning.light,
|
|
63
|
+
// light: info colors
|
|
64
|
+
'light-info-main': designTokens.colors.light.info.main,
|
|
65
|
+
'light-info-dark': designTokens.colors.light.info.dark,
|
|
66
|
+
'light-info-light': designTokens.colors.light.info.light,
|
|
67
|
+
// dark: info colors
|
|
68
|
+
'dark-info-main': designTokens.colors.dark.info.main,
|
|
69
|
+
'dark-info-dark': designTokens.colors.dark.info.dark,
|
|
70
|
+
'dark-info-light': designTokens.colors.dark.info.light,
|
|
71
|
+
// light: success colors
|
|
72
|
+
'light-success-main': designTokens.colors.light.success.main,
|
|
73
|
+
'light-success-dark': designTokens.colors.light.success.dark,
|
|
74
|
+
'light-success-light': designTokens.colors.light.success.light,
|
|
75
|
+
// dark: success colors
|
|
76
|
+
'dark-success-main': designTokens.colors.dark.success.main,
|
|
77
|
+
'dark-success-dark': designTokens.colors.dark.success.dark,
|
|
78
|
+
'dark-success-light': designTokens.colors.dark.success.light,
|
|
79
|
+
// Light: background colors
|
|
80
|
+
'light-background-default': designTokens.colors.light.background.default,
|
|
81
|
+
'light-background-accent100': designTokens.colors.light.background.accent100,
|
|
82
|
+
'light-background-accent200': designTokens.colors.light.background.accent200,
|
|
83
|
+
'light-background-accent300': designTokens.colors.light.background.accent300,
|
|
84
|
+
// Dark: background colors
|
|
85
|
+
'dark-background-default': designTokens.colors.dark.background.default,
|
|
86
|
+
'dark-background-accent100': designTokens.colors.dark.background.accent100,
|
|
87
|
+
'dark-background-accent200': designTokens.colors.dark.background.accent200,
|
|
88
|
+
'dark-background-accent300': designTokens.colors.dark.background.accent300,
|
|
89
|
+
// Light: action colors
|
|
90
|
+
'light-action-active': designTokens.colors.light.action.active,
|
|
91
|
+
'light-action-hover': designTokens.colors.light.action.hover,
|
|
92
|
+
'light-action-selected': designTokens.colors.light.action.selected,
|
|
93
|
+
'light-action-disabledBackground': designTokens.colors.light.action.disabledBackground,
|
|
94
|
+
'light-action-disabled': designTokens.colors.light.action.disabled,
|
|
95
|
+
// Dark: action colors
|
|
96
|
+
'dark-action-active': designTokens.colors.dark.action.active,
|
|
97
|
+
'dark-action-hover': designTokens.colors.dark.action.hover,
|
|
98
|
+
'dark-action-selected': designTokens.colors.dark.action.selected,
|
|
99
|
+
'dark-action-disabledBackground': designTokens.colors.dark.action.disabledBackground,
|
|
100
|
+
'dark-action-disabled': designTokens.colors.dark.action.disabled,
|
|
101
|
+
// light: action background
|
|
102
|
+
'light-actionBackground-enabled': designTokens.colors.light.actionBackground.enabled,
|
|
103
|
+
'light-actionBackground-hovered': designTokens.colors.light.actionBackground.hovered,
|
|
104
|
+
'light-actionBackground-selected': designTokens.colors.light.actionBackground.selected,
|
|
105
|
+
'light-actionBackground-disabled': designTokens.colors.light.actionBackground.disabled,
|
|
106
|
+
// dark: action background
|
|
107
|
+
'dark-actionBackground-enabled': designTokens.colors.dark.actionBackground.enabled,
|
|
108
|
+
'dark-actionBackground-hovered': designTokens.colors.dark.actionBackground.hovered,
|
|
109
|
+
'dark-actionBackground-selected': designTokens.colors.dark.actionBackground.selected,
|
|
110
|
+
'dark-actionBackground-disabled': designTokens.colors.dark.actionBackground.disabled,
|
|
111
|
+
// light: action outlinedBorder
|
|
112
|
+
'light-actionOutlinedBorder-enabled': designTokens.colors.light.actionOutlinedBorder.enabled,
|
|
113
|
+
'light-actionOutlinedBorder-hovered': designTokens.colors.light.actionOutlinedBorder.hovered,
|
|
114
|
+
'light-actionOutlinedBorder-selected': designTokens.colors.light.actionOutlinedBorder.selected,
|
|
115
|
+
'light-actionOutlinedBorder-disabled': designTokens.colors.light.actionOutlinedBorder.disabled,
|
|
116
|
+
// dark: action outlinedBorder
|
|
117
|
+
'dark-actionOutlinedBorder-enabled': designTokens.colors.dark.actionOutlinedBorder.enabled,
|
|
118
|
+
'dark-actionOutlinedBorder-hovered': designTokens.colors.dark.actionOutlinedBorder.hovered,
|
|
119
|
+
'dark-actionOutlinedBorder-selected': designTokens.colors.dark.actionOutlinedBorder.selected,
|
|
120
|
+
'dark-actionOutlinedBorder-disabled': designTokens.colors.dark.actionOutlinedBorder.disabled,
|
|
121
|
+
// misc light colors
|
|
122
|
+
'light-misc-divider': designTokens.colors.light.misc.divider,
|
|
123
|
+
// misc dark colors
|
|
124
|
+
'dark-misc-divider': designTokens.colors.dark.misc.divider,
|
|
125
|
+
'dark-misc-scrollbar-bg': designTokens.colors.dark.background.default,
|
|
126
|
+
'dark-misc-scrollbar-thumb': designTokens.colors.dark.background.accent200,
|
|
127
|
+
},
|
|
128
|
+
spacing: {
|
|
129
|
+
small: designTokens.spacing.small,
|
|
130
|
+
medium: designTokens.spacing.medium,
|
|
131
|
+
large: designTokens.spacing.large,
|
|
132
|
+
},
|
|
133
|
+
fontSize: {
|
|
134
|
+
h1: designTokens.typography.h1.size,
|
|
135
|
+
h2: designTokens.typography.h2.size,
|
|
136
|
+
h3: designTokens.typography.h3.size,
|
|
137
|
+
h4: designTokens.typography.h4.size,
|
|
138
|
+
h5: designTokens.typography.h5.size,
|
|
139
|
+
h6: designTokens.typography.h6.size,
|
|
140
|
+
subtitle1: designTokens.typography.subtitle1.size,
|
|
141
|
+
subtitle2: designTokens.typography.subtitle2.size,
|
|
142
|
+
body1: designTokens.typography.body1.size,
|
|
143
|
+
body2: designTokens.typography.body2.size,
|
|
144
|
+
caption: designTokens.typography.caption.size,
|
|
145
|
+
},
|
|
146
|
+
fontFamily: {
|
|
147
|
+
inter: designTokens.typography.family,
|
|
148
|
+
},
|
|
149
|
+
fontWeight: {
|
|
150
|
+
h1: designTokens.typography.h1.weight,
|
|
151
|
+
h2: designTokens.typography.h2.weight,
|
|
152
|
+
h3: designTokens.typography.h3.weight,
|
|
153
|
+
h4: designTokens.typography.h4.weight,
|
|
154
|
+
h5: designTokens.typography.h5.weight,
|
|
155
|
+
h6: designTokens.typography.h6.weight,
|
|
156
|
+
subtitle1: designTokens.typography.subtitle1.weight,
|
|
157
|
+
subtitle2: designTokens.typography.subtitle2.weight,
|
|
158
|
+
body1: designTokens.typography.body1.weight,
|
|
159
|
+
body2: designTokens.typography.body2.weight,
|
|
160
|
+
caption: designTokens.typography.caption.weight,
|
|
161
|
+
},
|
|
162
|
+
letterSpacing: {
|
|
163
|
+
h1: designTokens.typography.h1.letterSpacing,
|
|
164
|
+
h2: designTokens.typography.h2.letterSpacing,
|
|
165
|
+
h3: designTokens.typography.h3.letterSpacing,
|
|
166
|
+
h4: designTokens.typography.h4.letterSpacing,
|
|
167
|
+
h5: designTokens.typography.h5.letterSpacing,
|
|
168
|
+
h6: designTokens.typography.h6.letterSpacing,
|
|
169
|
+
subtitle1: designTokens.typography.subtitle1.letterSpacing,
|
|
170
|
+
subtitle2: designTokens.typography.subtitle2.letterSpacing,
|
|
171
|
+
body1: designTokens.typography.body1.letterSpacing,
|
|
172
|
+
body2: designTokens.typography.body2.letterSpacing,
|
|
173
|
+
caption: designTokens.typography.caption.letterSpacing,
|
|
174
|
+
},
|
|
175
|
+
lineHeight: {
|
|
176
|
+
h1: designTokens.typography.h1.lineHeight,
|
|
177
|
+
h2: designTokens.typography.h2.lineHeight,
|
|
178
|
+
h3: designTokens.typography.h3.lineHeight,
|
|
179
|
+
h4: designTokens.typography.h4.lineHeight,
|
|
180
|
+
h5: designTokens.typography.h5.lineHeight,
|
|
181
|
+
h6: designTokens.typography.h6.lineHeight,
|
|
182
|
+
subtitle1: designTokens.typography.subtitle1.lineHeight,
|
|
183
|
+
subtitle2: designTokens.typography.subtitle2.lineHeight,
|
|
184
|
+
body1: designTokens.typography.body1.lineHeight,
|
|
185
|
+
body2: designTokens.typography.body2.lineHeight,
|
|
186
|
+
caption: designTokens.typography.caption.lineHeight,
|
|
187
|
+
},
|
|
188
|
+
textAlign: {
|
|
189
|
+
left: designTokens.typography.alignments.left,
|
|
190
|
+
center: designTokens.typography.alignments.center,
|
|
191
|
+
right: designTokens.typography.alignments.right,
|
|
192
|
+
justify: designTokens.typography.alignments.justify,
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
plugins: [
|
|
197
|
+
require('tailwindcss'),
|
|
198
|
+
require('autoprefixer'),
|
|
199
|
+
require('tailwind-scrollbar'),
|
|
200
|
+
],
|
|
201
|
+
};
|
|
202
|
+
export default config;
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oneslash-design-system",
|
|
3
3
|
"description": "A design system for the Oneslash projects",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.4",
|
|
5
5
|
"private": false,
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
6
8
|
"scripts": {
|
|
7
9
|
"dev": "next dev",
|
|
8
|
-
"build": "
|
|
10
|
+
"build": "tsc && postcss index.css -o dist/output.css",
|
|
9
11
|
"build:css": "postcss index.css -o dist/output.css",
|
|
10
12
|
"start": "next start",
|
|
11
13
|
"lint": "next lint"
|
package/tsconfig.json
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"lib": [
|
|
4
|
-
"dom",
|
|
5
|
-
"dom.iterable",
|
|
6
|
-
"esnext"
|
|
7
|
-
],
|
|
3
|
+
"lib": [ "dom", "dom.iterable", "esnext" ],
|
|
8
4
|
"allowJs": true,
|
|
9
5
|
"skipLibCheck": true,
|
|
10
6
|
"strict": true,
|
|
11
|
-
"noEmit": true,
|
|
12
7
|
"esModuleInterop": true,
|
|
13
8
|
"module": "esnext",
|
|
14
9
|
"moduleResolution": "node",
|
|
@@ -22,22 +17,21 @@
|
|
|
22
17
|
}
|
|
23
18
|
],
|
|
24
19
|
"paths": {
|
|
25
|
-
"@/*": [
|
|
26
|
-
"./*"
|
|
27
|
-
]
|
|
20
|
+
"@/*": [ "./*" ]
|
|
28
21
|
},
|
|
29
|
-
"forceConsistentCasingInFileNames": true
|
|
22
|
+
"forceConsistentCasingInFileNames": true,
|
|
23
|
+
"declaration": true,
|
|
24
|
+
"declarationDir": "./dist", // Output .d.ts files to dist
|
|
25
|
+
"outDir": "./dist", // Output compiled .js files to dist
|
|
26
|
+
"emitDeclarationOnly": false
|
|
30
27
|
},
|
|
31
28
|
"include": [
|
|
32
29
|
"next-env.d.ts",
|
|
33
30
|
"**/*.ts",
|
|
34
31
|
"**/*.tsx",
|
|
35
32
|
"components/*.tsx",
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
// "types/**/*.d.ts"
|
|
33
|
+
"*.js",
|
|
34
|
+
"index.css"
|
|
39
35
|
],
|
|
40
|
-
"exclude": [
|
|
41
|
-
"node_modules"
|
|
42
|
-
]
|
|
36
|
+
"exclude": [ "node_modules", "dist" ]
|
|
43
37
|
}
|