oneslash-design-system 1.1.3 → 1.1.5

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 (42) hide show
  1. package/components/modal.tsx +9 -6
  2. package/components/popover.tsx +5 -1
  3. package/dist/components/alert.d.ts +9 -0
  4. package/dist/components/alert.jsx +38 -0
  5. package/dist/components/button.d.ts +13 -0
  6. package/dist/components/button.jsx +141 -0
  7. package/dist/components/checkBox.d.ts +7 -0
  8. package/dist/components/checkBox.jsx +29 -0
  9. package/dist/components/emptyBox.d.ts +7 -0
  10. package/dist/components/emptyBox.jsx +17 -0
  11. package/dist/components/iconButton.d.ts +11 -0
  12. package/dist/components/iconButton.jsx +126 -0
  13. package/dist/components/loadingScreen.d.ts +3 -0
  14. package/dist/components/loadingScreen.jsx +14 -0
  15. package/dist/components/menuItem.d.ts +10 -0
  16. package/dist/components/menuItem.jsx +96 -0
  17. package/dist/components/modal.d.ts +11 -0
  18. package/dist/components/modal.jsx +49 -0
  19. package/dist/components/popover.d.ts +10 -0
  20. package/dist/components/popover.jsx +52 -0
  21. package/dist/components/tab.d.ts +12 -0
  22. package/dist/components/tab.jsx +113 -0
  23. package/dist/components/tag.d.ts +15 -0
  24. package/dist/components/tag.jsx +123 -0
  25. package/dist/components/textField.d.ts +20 -0
  26. package/dist/components/textField.jsx +55 -0
  27. package/dist/components/timeStamp.d.ts +7 -0
  28. package/dist/components/timeStamp.jsx +58 -0
  29. package/dist/components/tooltip.d.ts +7 -0
  30. package/dist/components/tooltip.jsx +41 -0
  31. package/dist/components/userImage.d.ts +7 -0
  32. package/dist/components/userImage.jsx +13 -0
  33. package/dist/designTokens.d.ts +354 -0
  34. package/dist/designTokens.js +232 -0
  35. package/dist/index.d.ts +17 -0
  36. package/dist/index.js +17 -0
  37. package/dist/output.css +117 -0
  38. package/dist/tailwind.config.d.ts +3 -0
  39. package/dist/tailwind.config.js +214 -0
  40. package/package.json +4 -2
  41. package/tailwind.config.ts +6 -3
  42. 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,12 @@ video {
656
699
  .border-2 {
657
700
  border-width: 2px;
658
701
  }
702
+ .border-4 {
703
+ border-width: 4px;
704
+ }
705
+ .border-t {
706
+ border-top-width: 1px;
707
+ }
659
708
  .border-none {
660
709
  border-style: none;
661
710
  }
@@ -663,6 +712,14 @@ video {
663
712
  --tw-border-opacity: 1;
664
713
  border-color: rgb(209 213 219 / var(--tw-border-opacity));
665
714
  }
715
+ .border-light-accent-main {
716
+ --tw-border-opacity: 1;
717
+ border-color: rgb(238 174 3 / var(--tw-border-opacity));
718
+ }
719
+ .border-light-misc-divider {
720
+ --tw-border-opacity: 1;
721
+ border-color: rgb(209 209 209 / var(--tw-border-opacity));
722
+ }
666
723
  .border-light-text-secondary {
667
724
  --tw-border-opacity: 1;
668
725
  border-color: rgb(109 109 109 / var(--tw-border-opacity));
@@ -671,6 +728,9 @@ video {
671
728
  --tw-border-opacity: 1;
672
729
  border-color: rgb(239 68 68 / var(--tw-border-opacity));
673
730
  }
731
+ .border-t-transparent {
732
+ border-top-color: transparent;
733
+ }
674
734
  .bg-black {
675
735
  --tw-bg-opacity: 1;
676
736
  background-color: rgb(0 0 0 / var(--tw-bg-opacity));
@@ -695,6 +755,10 @@ video {
695
755
  --tw-bg-opacity: 1;
696
756
  background-color: rgb(238 238 238 / var(--tw-bg-opacity));
697
757
  }
758
+ .bg-light-background-accent100 {
759
+ --tw-bg-opacity: 1;
760
+ background-color: rgb(246 246 246 / var(--tw-bg-opacity));
761
+ }
698
762
  .bg-light-background-accent200 {
699
763
  --tw-bg-opacity: 1;
700
764
  background-color: rgb(231 231 231 / var(--tw-bg-opacity));
@@ -723,6 +787,9 @@ video {
723
787
  --tw-bg-opacity: 1;
724
788
  background-color: rgb(239 108 0 / var(--tw-bg-opacity));
725
789
  }
790
+ .bg-transparent {
791
+ background-color: transparent;
792
+ }
726
793
  .bg-opacity-50 {
727
794
  --tw-bg-opacity: 0.5;
728
795
  }
@@ -749,6 +816,10 @@ video {
749
816
  padding-top: 0.25rem;
750
817
  padding-bottom: 0.25rem;
751
818
  }
819
+ .py-6 {
820
+ padding-top: 1.5rem;
821
+ padding-bottom: 1.5rem;
822
+ }
752
823
  .py-\[3px\] {
753
824
  padding-top: 3px;
754
825
  padding-bottom: 3px;
@@ -759,6 +830,12 @@ video {
759
830
  .pr-3 {
760
831
  padding-right: 0.75rem;
761
832
  }
833
+ .pt-6 {
834
+ padding-top: 1.5rem;
835
+ }
836
+ .text-center {
837
+ text-align: center;
838
+ }
762
839
  .text-body1 {
763
840
  font-size: 16px;
764
841
  }
@@ -845,6 +922,16 @@ video {
845
922
  .ring-offset-2 {
846
923
  --tw-ring-offset-width: 2px;
847
924
  }
925
+ .ring-offset-4 {
926
+ --tw-ring-offset-width: 4px;
927
+ }
928
+ .ring-offset-light-background-default {
929
+ --tw-ring-offset-color: #FFFFFF;
930
+ }
931
+ .blur {
932
+ --tw-blur: blur(8px);
933
+ 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);
934
+ }
848
935
  .transition-all {
849
936
  transition-property: all;
850
937
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -862,51 +949,72 @@ video {
862
949
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
863
950
  }
864
951
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');
952
+
953
+ body {
954
+ font-family: 'Inter', sans-serif;
955
+ }
956
+
865
957
  .group:hover .group-hover\:bg-light-action-selected {
866
958
  --tw-bg-opacity: 1;
867
959
  background-color: rgb(227 227 227 / var(--tw-bg-opacity));
868
960
  }
961
+
869
962
  .hover\:bg-dark-background-accent300:hover {
870
963
  --tw-bg-opacity: 1;
871
964
  background-color: rgb(79 79 79 / var(--tw-bg-opacity));
872
965
  }
966
+
873
967
  .hover\:bg-light-accent-dark:hover {
874
968
  --tw-bg-opacity: 1;
875
969
  background-color: rgb(206 134 2 / var(--tw-bg-opacity));
876
970
  }
971
+
877
972
  .hover\:bg-light-action-hover:hover {
878
973
  --tw-bg-opacity: 1;
879
974
  background-color: rgb(243 243 243 / var(--tw-bg-opacity));
880
975
  }
976
+
881
977
  .hover\:bg-light-background-accent100:hover {
882
978
  --tw-bg-opacity: 1;
883
979
  background-color: rgb(246 246 246 / var(--tw-bg-opacity));
884
980
  }
981
+
885
982
  .hover\:bg-light-background-accent300:hover {
886
983
  --tw-bg-opacity: 1;
887
984
  background-color: rgb(209 209 209 / var(--tw-bg-opacity));
888
985
  }
986
+
889
987
  .hover\:bg-light-background-default:hover {
890
988
  --tw-bg-opacity: 1;
891
989
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
892
990
  }
991
+
893
992
  .hover\:bg-light-primary-dark:hover {
894
993
  --tw-bg-opacity: 1;
895
994
  background-color: rgb(38 38 38 / var(--tw-bg-opacity));
896
995
  }
996
+
897
997
  .hover\:bg-opacity-75:hover {
898
998
  --tw-bg-opacity: 0.75;
899
999
  }
1000
+
900
1001
  .focus\:border-light-accent-main:focus {
901
1002
  --tw-border-opacity: 1;
902
1003
  border-color: rgb(238 174 3 / var(--tw-border-opacity));
903
1004
  }
1005
+
904
1006
  .focus\:ring-red-500:focus {
905
1007
  --tw-ring-opacity: 1;
906
1008
  --tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity));
907
1009
  }
1010
+
908
1011
  @media (prefers-color-scheme: dark) {
909
1012
 
1013
+ .dark\:border-dark-misc-divider {
1014
+ --tw-border-opacity: 1;
1015
+ border-color: rgb(64 64 64 / var(--tw-border-opacity));
1016
+ }
1017
+
910
1018
  .dark\:border-dark-text-secondary {
911
1019
  --tw-border-opacity: 1;
912
1020
  border-color: rgb(176 176 176 / var(--tw-border-opacity));
@@ -927,6 +1035,11 @@ video {
927
1035
  background-color: rgb(56 56 56 / var(--tw-bg-opacity));
928
1036
  }
929
1037
 
1038
+ .dark\:bg-dark-background-accent100 {
1039
+ --tw-bg-opacity: 1;
1040
+ background-color: rgb(51 51 51 / var(--tw-bg-opacity));
1041
+ }
1042
+
930
1043
  .dark\:bg-dark-background-accent200 {
931
1044
  --tw-bg-opacity: 1;
932
1045
  background-color: rgb(69 69 69 / var(--tw-bg-opacity));
@@ -1002,6 +1115,10 @@ video {
1002
1115
  --tw-ring-color: rgb(255 205 41 / var(--tw-ring-opacity));
1003
1116
  }
1004
1117
 
1118
+ .dark\:ring-offset-dark-background-default {
1119
+ --tw-ring-offset-color: #262626;
1120
+ }
1121
+
1005
1122
  .group:hover .dark\:group-hover\:bg-dark-action-selected {
1006
1123
  --tw-bg-opacity: 1;
1007
1124
  background-color: rgb(78 78 78 / var(--tw-bg-opacity));
@@ -0,0 +1,3 @@
1
+ import type { Config } from "tailwindcss";
2
+ declare const config: Config;
3
+ export default config;
@@ -0,0 +1,214 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var designTokens = require('./designTokens');
13
+ var config = {
14
+ content: [
15
+ "./app/**/*.{js,ts,jsx,tsx}",
16
+ "./components/**/*.{js,ts,jsx,tsx}",
17
+ "./pages/**/*.{js,ts,jsx,tsx}",
18
+ ],
19
+ theme: {
20
+ extend: {
21
+ colors: {
22
+ // Light: text colors
23
+ 'light-text-primary': designTokens.colors.light.text.primary,
24
+ 'light-text-secondary': designTokens.colors.light.text.secondary,
25
+ 'light-text-disabled': designTokens.colors.light.text.disabled,
26
+ 'light-text-contrast': designTokens.colors.light.text.contrast,
27
+ // Dark: text colors
28
+ 'dark-text-primary': designTokens.colors.dark.text.primary,
29
+ 'dark-text-secondary': designTokens.colors.dark.text.secondary,
30
+ 'dark-text-disabled': designTokens.colors.dark.text.disabled,
31
+ 'dark-text-contrast': designTokens.colors.dark.text.contrast,
32
+ // light: accent colors
33
+ 'light-accent-main': designTokens.colors.light.accent.main,
34
+ 'light-accent-dark': designTokens.colors.light.accent.dark,
35
+ 'light-accent-light': designTokens.colors.light.accent.light,
36
+ 'light-accent-contrast': designTokens.colors.light.accent.contrast,
37
+ // dark: accent colors
38
+ 'dark-accent-main': designTokens.colors.dark.accent.main,
39
+ 'dark-accent-dark': designTokens.colors.dark.accent.dark,
40
+ 'dark-accent-light': designTokens.colors.dark.accent.light,
41
+ 'dark-accent-contrast': designTokens.colors.dark.accent.contrast,
42
+ // Light: primary colors
43
+ 'light-primary-main': designTokens.colors.light.primary.main,
44
+ 'light-primary-dark': designTokens.colors.light.primary.dark,
45
+ 'light-primary-light': designTokens.colors.light.primary.light,
46
+ 'light-primary-contrast': designTokens.colors.light.primary.contrast,
47
+ // Dark: primary colors
48
+ 'dark-primary-main': designTokens.colors.dark.primary.main,
49
+ 'dark-primary-dark': designTokens.colors.dark.primary.dark,
50
+ 'dark-primary-light': designTokens.colors.dark.primary.light,
51
+ 'dark-primary-contrast': designTokens.colors.dark.primary.contrast,
52
+ // light: secondary colors
53
+ 'light-secondary-main': designTokens.colors.light.secondary.main,
54
+ 'light-secondary-dark': designTokens.colors.light.secondary.dark,
55
+ 'light-secondary-light': designTokens.colors.light.secondary.light,
56
+ // dark: secondary colors
57
+ 'dark-secondary-main': designTokens.colors.dark.secondary.main,
58
+ 'dark-secondary-dark': designTokens.colors.dark.secondary.dark,
59
+ 'dark-secondary-light': designTokens.colors.dark.secondary.light,
60
+ // light: error colors
61
+ 'light-error-main': designTokens.colors.light.error.main,
62
+ 'light-error-dark': designTokens.colors.light.error.dark,
63
+ 'light-error-light': designTokens.colors.light.error.light,
64
+ // dark: error colors
65
+ 'dark-error-main': designTokens.colors.dark.error.main,
66
+ 'dark-error-dark': designTokens.colors.dark.error.dark,
67
+ 'dark-error-light': designTokens.colors.dark.error.light,
68
+ // light: warning colors
69
+ 'light-warning-main': designTokens.colors.light.warning.main,
70
+ 'light-warning-dark': designTokens.colors.light.warning.dark,
71
+ 'light-warning-light': designTokens.colors.light.warning.light,
72
+ // dark: warning colors
73
+ 'dark-warning-main': designTokens.colors.dark.warning.main,
74
+ 'dark-warning-dark': designTokens.colors.dark.warning.dark,
75
+ 'dark-warning-light': designTokens.colors.dark.warning.light,
76
+ // light: info colors
77
+ 'light-info-main': designTokens.colors.light.info.main,
78
+ 'light-info-dark': designTokens.colors.light.info.dark,
79
+ 'light-info-light': designTokens.colors.light.info.light,
80
+ // dark: info colors
81
+ 'dark-info-main': designTokens.colors.dark.info.main,
82
+ 'dark-info-dark': designTokens.colors.dark.info.dark,
83
+ 'dark-info-light': designTokens.colors.dark.info.light,
84
+ // light: success colors
85
+ 'light-success-main': designTokens.colors.light.success.main,
86
+ 'light-success-dark': designTokens.colors.light.success.dark,
87
+ 'light-success-light': designTokens.colors.light.success.light,
88
+ // dark: success colors
89
+ 'dark-success-main': designTokens.colors.dark.success.main,
90
+ 'dark-success-dark': designTokens.colors.dark.success.dark,
91
+ 'dark-success-light': designTokens.colors.dark.success.light,
92
+ // Light: background colors
93
+ 'light-background-default': designTokens.colors.light.background.default,
94
+ 'light-background-accent100': designTokens.colors.light.background.accent100,
95
+ 'light-background-accent200': designTokens.colors.light.background.accent200,
96
+ 'light-background-accent300': designTokens.colors.light.background.accent300,
97
+ // Dark: background colors
98
+ 'dark-background-default': designTokens.colors.dark.background.default,
99
+ 'dark-background-accent100': designTokens.colors.dark.background.accent100,
100
+ 'dark-background-accent200': designTokens.colors.dark.background.accent200,
101
+ 'dark-background-accent300': designTokens.colors.dark.background.accent300,
102
+ // Light: action colors
103
+ 'light-action-active': designTokens.colors.light.action.active,
104
+ 'light-action-hover': designTokens.colors.light.action.hover,
105
+ 'light-action-selected': designTokens.colors.light.action.selected,
106
+ 'light-action-disabledBackground': designTokens.colors.light.action.disabledBackground,
107
+ 'light-action-disabled': designTokens.colors.light.action.disabled,
108
+ // Dark: action colors
109
+ 'dark-action-active': designTokens.colors.dark.action.active,
110
+ 'dark-action-hover': designTokens.colors.dark.action.hover,
111
+ 'dark-action-selected': designTokens.colors.dark.action.selected,
112
+ 'dark-action-disabledBackground': designTokens.colors.dark.action.disabledBackground,
113
+ 'dark-action-disabled': designTokens.colors.dark.action.disabled,
114
+ // light: action background
115
+ 'light-actionBackground-enabled': designTokens.colors.light.actionBackground.enabled,
116
+ 'light-actionBackground-hovered': designTokens.colors.light.actionBackground.hovered,
117
+ 'light-actionBackground-selected': designTokens.colors.light.actionBackground.selected,
118
+ 'light-actionBackground-disabled': designTokens.colors.light.actionBackground.disabled,
119
+ // dark: action background
120
+ 'dark-actionBackground-enabled': designTokens.colors.dark.actionBackground.enabled,
121
+ 'dark-actionBackground-hovered': designTokens.colors.dark.actionBackground.hovered,
122
+ 'dark-actionBackground-selected': designTokens.colors.dark.actionBackground.selected,
123
+ 'dark-actionBackground-disabled': designTokens.colors.dark.actionBackground.disabled,
124
+ // light: action outlinedBorder
125
+ 'light-actionOutlinedBorder-enabled': designTokens.colors.light.actionOutlinedBorder.enabled,
126
+ 'light-actionOutlinedBorder-hovered': designTokens.colors.light.actionOutlinedBorder.hovered,
127
+ 'light-actionOutlinedBorder-selected': designTokens.colors.light.actionOutlinedBorder.selected,
128
+ 'light-actionOutlinedBorder-disabled': designTokens.colors.light.actionOutlinedBorder.disabled,
129
+ // dark: action outlinedBorder
130
+ 'dark-actionOutlinedBorder-enabled': designTokens.colors.dark.actionOutlinedBorder.enabled,
131
+ 'dark-actionOutlinedBorder-hovered': designTokens.colors.dark.actionOutlinedBorder.hovered,
132
+ 'dark-actionOutlinedBorder-selected': designTokens.colors.dark.actionOutlinedBorder.selected,
133
+ 'dark-actionOutlinedBorder-disabled': designTokens.colors.dark.actionOutlinedBorder.disabled,
134
+ // misc light colors
135
+ 'light-misc-divider': designTokens.colors.light.misc.divider,
136
+ // misc dark colors
137
+ 'dark-misc-divider': designTokens.colors.dark.misc.divider,
138
+ 'dark-misc-scrollbar-bg': designTokens.colors.dark.background.default,
139
+ 'dark-misc-scrollbar-thumb': designTokens.colors.dark.background.accent200,
140
+ },
141
+ spacing: function (_a) {
142
+ var theme = _a.theme;
143
+ return (__assign(__assign({}, theme('spacing')), { small: designTokens.spacing.small, medium: designTokens.spacing.medium, large: designTokens.spacing.large }));
144
+ },
145
+ fontSize: {
146
+ h1: designTokens.typography.h1.size,
147
+ h2: designTokens.typography.h2.size,
148
+ h3: designTokens.typography.h3.size,
149
+ h4: designTokens.typography.h4.size,
150
+ h5: designTokens.typography.h5.size,
151
+ h6: designTokens.typography.h6.size,
152
+ subtitle1: designTokens.typography.subtitle1.size,
153
+ subtitle2: designTokens.typography.subtitle2.size,
154
+ body1: designTokens.typography.body1.size,
155
+ body2: designTokens.typography.body2.size,
156
+ caption: designTokens.typography.caption.size,
157
+ },
158
+ fontFamily: {
159
+ inter: designTokens.typography.family,
160
+ },
161
+ fontWeight: {
162
+ h1: designTokens.typography.h1.weight,
163
+ h2: designTokens.typography.h2.weight,
164
+ h3: designTokens.typography.h3.weight,
165
+ h4: designTokens.typography.h4.weight,
166
+ h5: designTokens.typography.h5.weight,
167
+ h6: designTokens.typography.h6.weight,
168
+ subtitle1: designTokens.typography.subtitle1.weight,
169
+ subtitle2: designTokens.typography.subtitle2.weight,
170
+ body1: designTokens.typography.body1.weight,
171
+ body2: designTokens.typography.body2.weight,
172
+ caption: designTokens.typography.caption.weight,
173
+ },
174
+ letterSpacing: {
175
+ h1: designTokens.typography.h1.letterSpacing,
176
+ h2: designTokens.typography.h2.letterSpacing,
177
+ h3: designTokens.typography.h3.letterSpacing,
178
+ h4: designTokens.typography.h4.letterSpacing,
179
+ h5: designTokens.typography.h5.letterSpacing,
180
+ h6: designTokens.typography.h6.letterSpacing,
181
+ subtitle1: designTokens.typography.subtitle1.letterSpacing,
182
+ subtitle2: designTokens.typography.subtitle2.letterSpacing,
183
+ body1: designTokens.typography.body1.letterSpacing,
184
+ body2: designTokens.typography.body2.letterSpacing,
185
+ caption: designTokens.typography.caption.letterSpacing,
186
+ },
187
+ lineHeight: {
188
+ h1: designTokens.typography.h1.lineHeight,
189
+ h2: designTokens.typography.h2.lineHeight,
190
+ h3: designTokens.typography.h3.lineHeight,
191
+ h4: designTokens.typography.h4.lineHeight,
192
+ h5: designTokens.typography.h5.lineHeight,
193
+ h6: designTokens.typography.h6.lineHeight,
194
+ subtitle1: designTokens.typography.subtitle1.lineHeight,
195
+ subtitle2: designTokens.typography.subtitle2.lineHeight,
196
+ body1: designTokens.typography.body1.lineHeight,
197
+ body2: designTokens.typography.body2.lineHeight,
198
+ caption: designTokens.typography.caption.lineHeight,
199
+ },
200
+ textAlign: {
201
+ left: designTokens.typography.alignments.left,
202
+ center: designTokens.typography.alignments.center,
203
+ right: designTokens.typography.alignments.right,
204
+ justify: designTokens.typography.alignments.justify,
205
+ },
206
+ },
207
+ },
208
+ plugins: [
209
+ require('tailwindcss'),
210
+ require('autoprefixer'),
211
+ require('tailwind-scrollbar'),
212
+ ],
213
+ };
214
+ 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.3",
4
+ "version": "1.1.5",
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": "next 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"
@@ -4,7 +4,9 @@ const designTokens = require('./designTokens');
4
4
 
5
5
  const config: Config = {
6
6
  content: [
7
- "./components/**/*.{js,ts,jsx,tsx,mdx}",
7
+ "./app/**/*.{js,ts,jsx,tsx}",
8
+ "./components/**/*.{js,ts,jsx,tsx}",
9
+ "./pages/**/*.{js,ts,jsx,tsx}",
8
10
  ],
9
11
  theme: {
10
12
  extend: {
@@ -154,11 +156,12 @@ const config: Config = {
154
156
  'dark-misc-scrollbar-bg': designTokens.colors.dark.background.default,
155
157
  'dark-misc-scrollbar-thumb': designTokens.colors.dark.background.accent200,
156
158
  },
157
- spacing: {
159
+ spacing: ({ theme }) => ({
160
+ ...theme('spacing'), // Retain default spacing
158
161
  small: designTokens.spacing.small,
159
162
  medium: designTokens.spacing.medium,
160
163
  large: designTokens.spacing.large,
161
- },
164
+ }),
162
165
  fontSize: {
163
166
  h1: designTokens.typography.h1.size,
164
167
  h2: designTokens.typography.h2.size,
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
- "**/*.js",
37
- // ".next/types/**/*.ts",
38
- // "types/**/*.d.ts"
33
+ "*.js",
34
+ "index.css"
39
35
  ],
40
- "exclude": [
41
- "node_modules"
42
- ]
36
+ "exclude": [ "node_modules", "dist" ]
43
37
  }