@agility/plenum-ui 2.0.0-rc49 → 2.0.0-rc50

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 (141) hide show
  1. package/.eslintrc.json +6 -6
  2. package/.prettierrc +13 -13
  3. package/.storybook/Layout.jsx +12 -12
  4. package/.storybook/head.tsx +4 -4
  5. package/.storybook/main.ts +18 -18
  6. package/.storybook/manager-head.html +1 -1
  7. package/.storybook/manager.ts +25 -25
  8. package/.storybook/plenumTheme.ts +8 -8
  9. package/.storybook/preview-head.html +3 -3
  10. package/.storybook/preview.tsx +28 -28
  11. package/.vscode/settings.json +3 -3
  12. package/README.md +271 -271
  13. package/app/globals.css +99 -99
  14. package/app/head.tsx +59 -59
  15. package/app/layout.tsx +28 -28
  16. package/app/page.tsx +7 -7
  17. package/build.js +45 -45
  18. package/dist/index.d.ts +230 -230
  19. package/dist/index.js +1 -1
  20. package/dist/index.js.map +2 -2
  21. package/dist/tailwind.css +3482 -8027
  22. package/local.sh +100 -100
  23. package/next.config.js +8 -8
  24. package/package.json +83 -83
  25. package/pages/api/hello.ts +13 -13
  26. package/postcss.config.js +6 -6
  27. package/rollup.config.mjs +41 -41
  28. package/scripts/create-component.js +97 -97
  29. package/stories/Introduction.mdx +314 -314
  30. package/stories/assets/stackalt.svg +1 -1
  31. package/stories/atoms/Avatar/Avatar.stories.tsx +96 -96
  32. package/stories/atoms/Avatar/Avatar.tsx +123 -123
  33. package/stories/atoms/Avatar/index.ts +3 -3
  34. package/stories/atoms/badges/Badge.tsx +127 -127
  35. package/stories/atoms/badges/Pill/Pill.stories.tsx +75 -75
  36. package/stories/atoms/badges/Rounded/Rounded.stories.tsx +75 -75
  37. package/stories/atoms/badges/index.ts +3 -3
  38. package/stories/atoms/buttons/Button/Alternative/Alternative.stories.ts +86 -86
  39. package/stories/atoms/buttons/Button/Button.tsx +232 -232
  40. package/stories/atoms/buttons/Button/Danger/Danger.stories.ts +90 -90
  41. package/stories/atoms/buttons/Button/Primary/Primary.stories.ts +97 -97
  42. package/stories/atoms/buttons/Button/Secondary/Secondary.stories.ts +93 -93
  43. package/stories/atoms/buttons/Button/defaultArgs.ts +9 -9
  44. package/stories/atoms/buttons/Button/index.ts +3 -3
  45. package/stories/atoms/buttons/Capsule/Alternative/Alternative.stories.ts +27 -27
  46. package/stories/atoms/buttons/Capsule/Capsule.tsx +88 -88
  47. package/stories/atoms/buttons/Capsule/Danger/Danger.stories.ts +27 -27
  48. package/stories/atoms/buttons/Capsule/Primary/Primary.stories.ts +27 -27
  49. package/stories/atoms/buttons/Capsule/Secondary/Secondary.stories.ts +27 -27
  50. package/stories/atoms/buttons/Capsule/index.ts +3 -3
  51. package/stories/atoms/buttons/FloatingActionButton/FloatingActionButton.stories.tsx +15 -15
  52. package/stories/atoms/buttons/FloatingActionButton/FloatingActionButton.tsx +22 -22
  53. package/stories/atoms/buttons/FloatingActionButton/index.tsx +3 -3
  54. package/stories/atoms/buttons/index.ts +4 -4
  55. package/stories/atoms/crumb/Crumb.stories.tsx +18 -18
  56. package/stories/atoms/crumb/Crumb.tsx +22 -22
  57. package/stories/atoms/crumb/index.tsx +3 -3
  58. package/stories/atoms/icons/DynamicIcon.stories.ts +43 -43
  59. package/stories/atoms/icons/DynamicIcon.tsx +90 -90
  60. package/stories/atoms/icons/IconWithShadow.stories.ts +43 -43
  61. package/stories/atoms/icons/IconWithShadow.tsx +16 -16
  62. package/stories/atoms/icons/TablerIcon.tsx +22 -22
  63. package/stories/atoms/icons/index.tsx +14 -14
  64. package/stories/atoms/icons/tablerIconNames.ts +4336 -4336
  65. package/stories/atoms/index.ts +46 -46
  66. package/stories/atoms/loaders/Loader.stories.ts +15 -15
  67. package/stories/atoms/loaders/Loader.tsx +21 -21
  68. package/stories/atoms/loaders/NProgress/RadialProgress.stories.tsx +19 -19
  69. package/stories/atoms/loaders/NProgress/RadialProgress.tsx +74 -74
  70. package/stories/atoms/loaders/NProgress/index.ts +3 -3
  71. package/stories/atoms/loaders/index.ts +4 -4
  72. package/stories/index.ts +136 -136
  73. package/stories/molecules/index.ts +51 -51
  74. package/stories/molecules/inputs/InputCounter/InputCounter.stories.tsx +18 -18
  75. package/stories/molecules/inputs/InputCounter/InputCounter.tsx +24 -24
  76. package/stories/molecules/inputs/InputCounter/index.tsx +3 -3
  77. package/stories/molecules/inputs/InputField/InputField.stories.tsx +29 -29
  78. package/stories/molecules/inputs/InputField/InputField.tsx +96 -96
  79. package/stories/molecules/inputs/InputField/index.tsx +3 -3
  80. package/stories/molecules/inputs/InputLabel/InputLabel.stories.tsx +19 -19
  81. package/stories/molecules/inputs/InputLabel/InputLabel.tsx +45 -45
  82. package/stories/molecules/inputs/InputLabel/index.tsx +3 -3
  83. package/stories/molecules/inputs/NestedInputButton/NestedInputButton.stories.tsx +52 -52
  84. package/stories/molecules/inputs/NestedInputButton/NestedInputButton.tsx +64 -64
  85. package/stories/molecules/inputs/NestedInputButton/index.tsx +3 -3
  86. package/stories/molecules/inputs/TextInput/TextInput.stories.tsx +32 -32
  87. package/stories/molecules/inputs/TextInput/TextInput.tsx +165 -165
  88. package/stories/molecules/inputs/TextInput/index.tsx +5 -5
  89. package/stories/molecules/inputs/checkbox/Checkbox.stories.ts +23 -23
  90. package/stories/molecules/inputs/checkbox/Checkbox.tsx +98 -98
  91. package/stories/molecules/inputs/checkbox/index.ts +3 -3
  92. package/stories/molecules/inputs/combobox/ComboBox.stories.ts +41 -41
  93. package/stories/molecules/inputs/combobox/ComboBox.tsx +185 -185
  94. package/stories/molecules/inputs/combobox/index.ts +3 -3
  95. package/stories/molecules/inputs/index.ts +38 -38
  96. package/stories/molecules/inputs/radio/Radio.stories.ts +27 -27
  97. package/stories/molecules/inputs/radio/Radio.tsx +92 -92
  98. package/stories/molecules/inputs/radio/index.ts +3 -3
  99. package/stories/molecules/inputs/select/Select.stories.ts +23 -23
  100. package/stories/molecules/inputs/select/Select.tsx +108 -108
  101. package/stories/molecules/inputs/select/index.ts +3 -3
  102. package/stories/molecules/inputs/textArea/TextArea.stories.ts +22 -22
  103. package/stories/molecules/inputs/textArea/TextArea.tsx +158 -158
  104. package/stories/molecules/inputs/textArea/index.ts +3 -3
  105. package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.stories.tsx +118 -118
  106. package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.tsx +81 -81
  107. package/stories/molecules/inputs/toggleSwitch/index.ts +3 -3
  108. package/stories/molecules/tabs/Tabs.stories.tsx +18 -18
  109. package/stories/molecules/tabs/Tabs.tsx +22 -22
  110. package/stories/molecules/tabs/index.tsx +2 -2
  111. package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.stories.tsx +30 -30
  112. package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx +66 -66
  113. package/stories/organisms/AnimatedLabelInput/index.tsx +3 -3
  114. package/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.stories.tsx +26 -26
  115. package/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.tsx +61 -61
  116. package/stories/organisms/AnimatedLabelTextArea/index.tsx +3 -3
  117. package/stories/organisms/ButtonDropdown/ButtonDropdown.stories.tsx +125 -125
  118. package/stories/organisms/ButtonDropdown/ButtonDropdown.tsx +86 -86
  119. package/stories/organisms/ButtonDropdown/index.tsx +3 -3
  120. package/stories/organisms/DropdownComponent/Dropdown.stories.tsx +73 -73
  121. package/stories/organisms/DropdownComponent/DropdownComponent.tsx +346 -346
  122. package/stories/organisms/DropdownComponent/dropdownItems.ts +122 -122
  123. package/stories/organisms/DropdownComponent/index.ts +4 -4
  124. package/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.stories.tsx +76 -76
  125. package/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.tsx +52 -52
  126. package/stories/organisms/EmptySectionPlaceholder/index.tsx +4 -4
  127. package/stories/organisms/FormInputWithAddons/FormInputWithAddons.stories.tsx +29 -29
  128. package/stories/organisms/FormInputWithAddons/FormInputWithAddons.tsx +145 -145
  129. package/stories/organisms/FormInputWithAddons/index.tsx +3 -3
  130. package/stories/organisms/TextInputSelect/InputSelect.tsx +59 -59
  131. package/stories/organisms/TextInputSelect/TextInputSelect.stories.tsx +33 -33
  132. package/stories/organisms/TextInputSelect/TextInputSelect.tsx +186 -186
  133. package/stories/organisms/TextInputSelect/index.tsx +3 -3
  134. package/stories/organisms/index.ts +27 -27
  135. package/tailwind.config.js +236 -192
  136. package/tsconfig.json +29 -29
  137. package/tsconfig.lib.json +25 -25
  138. package/utils/types.d.ts +2 -2
  139. package/utils/types.ts +3 -3
  140. package/utils/useId.d.ts +1 -1
  141. package/utils/useId.tsx +16 -16
@@ -1,192 +1,236 @@
1
- /** @type {import('tailwindcss').Config} */
2
- module.exports = {
3
- mode: "development",
4
-
5
- content: [
6
- "./app/**/*.{js,ts,jsx,tsx}",
7
- "./pages/**/*.{js,ts,jsx,tsx}",
8
- "./components/**/*/.{js,ts,jsx,tsx}",
9
- "./stories/**/*.{js,ts,jsx,tsx}",
10
- "./.storybook/*.{js,ts,jsx,tsx}"
11
- ],
12
- safelist: [
13
- "text-xs",
14
- "text-sm",
15
- "text-base",
16
- "text-lg",
17
- "text-xl",
18
- "text-2xl",
19
- "text-3xl",
20
- "text-4xl",
21
- "text-5xl",
22
- "text-6xl",
23
- "font-thin",
24
- "font-extralight",
25
- "font-light",
26
- "font-normal",
27
- "font-medium",
28
- "font-semibold",
29
- "font-bold",
30
- "font-extrabold",
31
- "font-black",
32
- {
33
- pattern:
34
- /^(bg|text|border(-(t|r|b|l))?)-((gray)|(red)|(orange)|(yellow)|(blue)|(light-blue)|(cyan)|(green)|(purple)|(teal)|(violet)|(pink)|(rose))-(50|100|200|300|400|500|600|700|800|900)|(mx|my|m|px|py|p)-\d.$/
35
- }
36
- ],
37
- theme: {
38
- fontFamily: {
39
- mulish: ["Mulish", "sans-serif"]
40
- },
41
- extend: {
42
- gridTemplateColumns: {
43
- // Simple 16 column grid
44
- mainContainer: "max-content 1fr 1fr"
45
- },
46
- gridTemplateRows: {
47
- // Simple 16 column grid
48
- header: "max-content 1fr 1fr"
49
- },
50
- colors: {
51
- "gray-50": "#F9FAFB",
52
- "gray-100": "#F3F4F6",
53
- "gray-200": "#E5E7EB",
54
- "gray-300": "#D1D5DB",
55
- "gray-400": "#9CA3AF",
56
- "gray-500": "#6B7280",
57
- "gray-600": "#4B5563",
58
- "gray-700": "#374151",
59
- "gray-800": "#1F2937",
60
- "gray-900": "#111827",
61
-
62
- "red-50": "#FEF2F2",
63
- "red-100": "#FEE2E2",
64
- "red-200": "#FECACA",
65
- "red-300": "#FCA5A5",
66
- "red-400": "#F87171",
67
- "red-500": "#EF4444",
68
- "red-600": "#DC2626",
69
- "red-700": "#B91C1C",
70
- "red-800": "#991B1B",
71
- "red-900": "#7F1D1D",
72
-
73
- "orange-50": "#FFF7ED",
74
- "orange-100": "#FFEDD5",
75
- "orange-200": "#FED7AA",
76
- "orange-300": "#FDBA74",
77
- "orange-400": "#FB923C",
78
- "orange-500": "#F97316",
79
- "orange-600": "#EA580C",
80
- "orange-700": "#C2410C",
81
- "orange-800": "#9A3412",
82
- "orange-900": "#7C2D12",
83
-
84
- "yellow-50": "#FFFAEA",
85
- "yellow-100": "#FFF5D4",
86
- "yellow-200": "#FFEAA9",
87
- "yellow-300": "#FFE07E",
88
- "yellow-400": "#FFD553",
89
- "yellow-500": "#FFCB28",
90
- "yellow-600": "#E6B724",
91
- "yellow-700": "#B38E1C",
92
- "yellow-800": "#997A18",
93
- "yellow-900": "#806614",
94
-
95
- "teal-50": "#F0FDFA",
96
- "teal-100": "#CCFBF1",
97
- "teal-200": "#99F6E4",
98
- "teal-300": "#5EEAD4",
99
- "teal-400": "#2DD4BF",
100
- "teal-500": "#14B8A6",
101
- "teal-600": "#0D9488",
102
- "teal-700": "#0F766E",
103
- "teal-800": "#115E59",
104
- "teal-900": "#134E4A",
105
-
106
- "cyan-50": "#CFFAFE",
107
- "cyan-100": "#A5F3FC",
108
- "cyan-200": "#67E8F9",
109
- "cyan-300": "#22D3EE",
110
- "cyan-400": "#ECFEFF",
111
- "cyan-500": "#06B6D4",
112
- "cyan-600": "#0891B2",
113
- "cyan-700": "#0E7490",
114
- "cyan-800": "#155E75",
115
- "cyan-900": "#164E63",
116
-
117
- "light-blue-50": "#E0F2FE",
118
- "light-blue-100": "#BAE6FD",
119
- "light-blue-200": "#7DD3FC",
120
- "light-blue-300": "#38BDF8",
121
- "light-blue-400": "#F0F9FF",
122
- "light-blue-500": "#0EA5E9",
123
- "light-blue-600": "#0284C7",
124
- "light-blue-700": "#0369A1",
125
- "light-blue-800": "#075985",
126
- "light-blue-900": "#0C4A6E",
127
-
128
- "blue-50": "#DBEAFE",
129
- "blue-100": "#BFDBFE",
130
- "blue-200": "#93C5FD",
131
- "blue-300": "#60A5FA",
132
- "blue-400": "#EFF6FF",
133
- "blue-500": "#3B82F6",
134
- "blue-600": "#2563EB",
135
- "blue-700": "#1D4ED8",
136
- "blue-800": "#1E40AF",
137
- "blue-900": "#1E3A8A",
138
-
139
- "purple-50": "#EEE6FB",
140
- "purple-100": "#DECCF6",
141
- "purple-200": "#CDB3F2",
142
- "purple-300": "#BC99EE",
143
- "purple-400": "#9B66E5",
144
- "purple-500": "#7933DD",
145
- "purple-600": "#691AD8",
146
- "purple-700": "#5800D4",
147
- "purple-800": "#4F00BF",
148
- "purple-900": "#4600AA",
149
-
150
- "violet-50": "#EDE9FE",
151
- "violet-100": "#DDD6FE",
152
- "violet-200": "#C4B5FD",
153
- "violet-300": "#A78BFA",
154
- "violet-400": "#F5F3FF",
155
- "violet-500": "#8B5CF6",
156
- "violet-600": "#7C3AED",
157
- "violet-700": "#6D28D9",
158
- "violet-800": "#5B21B6",
159
- "violet-900": "#4C1D95",
160
-
161
- "pink-50": "#FCE7F3",
162
- "pink-100": "#FCE7F3",
163
- "pink-200": "#FBCFE8",
164
- "pink-400": "#F472B6",
165
- "pink-500": "#EC4899",
166
- "pink-600": "#DB2777",
167
- "pink-700": "#BE185D",
168
- "pink-800": "#9D174D",
169
- "pink-900": "#831843",
170
-
171
- "rose-50": "#FFE4E6",
172
- "rose-100": "#FECDD3",
173
- "rose-200": "#FDA4AF",
174
- "rose-300": "#FB7185",
175
- "rose-400": "#FFF1F2",
176
- "rose-500": "#F43F5E",
177
- "rose-600": "#E11D48",
178
- "rose-700": "#BE123C",
179
- "rose-800": "#9F1239",
180
- "rose-900": "#881337"
181
- },
182
- fontWeight: {
183
- medium: 600
184
- }
185
- }
186
- },
187
- plugins: [
188
- require("@tailwindcss/forms"),
189
- require("@tailwindcss/typography"),
190
- require("@headlessui/tailwindcss")
191
- ]
192
- }
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ mode: "development",
4
+
5
+ content: [
6
+ "./app/**/*.{js,ts,jsx,tsx}",
7
+ "./pages/**/*.{js,ts,jsx,tsx}",
8
+ "./components/**/*/.{js,ts,jsx,tsx}",
9
+ "./stories/**/*.{js,ts,jsx,tsx}",
10
+ "./.storybook/*.{js,ts,jsx,tsx}"
11
+ ],
12
+ safelist: [
13
+ "text-xs",
14
+ "text-sm",
15
+ "text-base",
16
+ "text-lg",
17
+ "text-xl",
18
+ "text-2xl",
19
+ "text-3xl",
20
+ "text-4xl",
21
+ "text-5xl",
22
+ "text-6xl",
23
+ "font-thin",
24
+ "font-extralight",
25
+ "font-light",
26
+ "font-normal",
27
+ "font-medium",
28
+ "font-semibold",
29
+ "font-bold",
30
+ "font-extrabold",
31
+ "font-black",
32
+ {
33
+ pattern:
34
+ /^(bg|text|border(-(t|r|b|l))?)-((gray)|(red)|(orange)|(yellow)|(blue)|(light-blue)|(cyan)|(green)|(purple)|(teal)|(violet)|(pink)|(rose))-(50|100|200|300|400|500|600|700|800|900)|(mx|my|m|px|py|p)-\d.$/
35
+ }
36
+ ],
37
+ theme: {
38
+ fontFamily: {
39
+ mulish: ["Mulish", "sans-serif"]
40
+ },
41
+ extend: {
42
+ gridTemplateColumns: {
43
+ // Simple 16 column grid
44
+ mainContainer: "max-content 1fr 1fr"
45
+ },
46
+ gridTemplateRows: {
47
+ // Simple 16 column grid
48
+ header: "max-content 1fr 1fr"
49
+ },
50
+ colors: {
51
+ "transparent-white-05": "rgba(255, 255, 255, 0.05)",
52
+ "transparent-white-10": "rgba(255, 255, 255, 0.1)",
53
+ "transparent-white-20": "rgba(255, 255, 255, 0.2)",
54
+ "transparent-white-30": "rgba(255, 255, 255, 0.3)",
55
+ "transparent-white-40": "rgba(255, 255, 255, 0.4)",
56
+ "transparent-white-50": "rgba(255, 255, 255, 0.5)",
57
+ "transparent-white-60": "rgba(255, 255, 255, 0.6)",
58
+ "transparent-white-70": "rgba(255, 255, 255, 0.7)",
59
+ "transparent-white-80": "rgba(255, 255, 255, 0.8)",
60
+ "transparent-white-90": "rgba(255, 255, 255, 0.9)",
61
+
62
+ "transparent-black-05": "rgba(0, 0, 0, 0.05)",
63
+ "transparent-black-10": "rgba(0, 0, 0, 0.1)",
64
+ "transparent-black-20": "rgba(0, 0, 0, 0.2)",
65
+ "transparent-black-30": "rgba(0, 0, 0, 0.3)",
66
+ "transparent-black-40": "rgba(0, 0, 0, 0.4)",
67
+ "transparent-black-50": "rgba(0, 0, 0, 0.5)",
68
+ "transparent-black-60": "rgba(0, 0, 0, 0.6)",
69
+ "transparent-black-70": "rgba(0, 0, 0, 0.7)",
70
+ "transparent-black-80": "rgba(0, 0, 0, 0.8)",
71
+ "transparent-black-90": "rgba(0, 0, 0, 0.9)",
72
+
73
+ "gray-50": "#F9FAFB",
74
+ "gray-100": "#F3F4F6",
75
+ "gray-200": "#E5E7EB",
76
+ "gray-300": "#D1D5DB",
77
+ "gray-400": "#9CA3AF",
78
+ "gray-500": "#6B7280",
79
+ "gray-600": "#4B5563",
80
+ "gray-700": "#374151",
81
+ "gray-900": "#111827",
82
+
83
+ "red-50": "#FEF2F2",
84
+ "red-100": "#FEE2E2",
85
+ "red-200": "#FECACA",
86
+ "red-300": "#FCA5A5",
87
+ "red-400": "#F87171",
88
+ "red-500": "#EF4444",
89
+ "red-600": "#DC2626",
90
+ "red-700": "#B91C1C",
91
+ "red-800": "#991B1B",
92
+ "red-900": "#7F1D1D",
93
+
94
+ "orange-50": "#FFF7ED",
95
+ "orange-100": "#FFEDD5",
96
+ "orange-200": "#FED7AA",
97
+ "orange-300": "#FDBA74",
98
+ "orange-400": "#FB923C",
99
+ "orange-500": "#F97316",
100
+ "orange-600": "#EA580C",
101
+ "orange-700": "#C2410C",
102
+ "orange-800": "#9A3412",
103
+ "orange-900": "#7C2D12",
104
+
105
+ "yellow-50": "#FFFAEA",
106
+ "yellow-100": "#FFF5D4",
107
+ "yellow-200": "#FFEAA9",
108
+ "yellow-300": "#FFE07E",
109
+ "yellow-400": "#FFD553",
110
+ "yellow-500": "#FFCB28",
111
+ "yellow-600": "#E6B724",
112
+ "yellow-700": "#B38E1C",
113
+ "yellow-800": "#997A18",
114
+ "yellow-900": "#806614",
115
+
116
+ "green-50": "#ECFDF5",
117
+ "green-100": "#D1FAE5",
118
+ "green-200": "#A7F3D0",
119
+ "green-300": "#6EE7B7",
120
+ "green-400": "#34D399",
121
+ "green-500": "#10B981",
122
+ "green-600": "#059669",
123
+ "green-700": "#047857",
124
+ "green-800": "#065F46",
125
+ "green-900": "#064E3B",
126
+
127
+ "teal-50": "#F0FDFA",
128
+ "teal-100": "#CCFBF1",
129
+ "teal-200": "#99F6E4",
130
+ "teal-300": "#5EEAD4",
131
+ "teal-400": "#2DD4BF",
132
+ "teal-500": "#14B8A6",
133
+ "teal-600": "#0D9488",
134
+ "teal-700": "#0F766E",
135
+ "teal-800": "#115E59",
136
+ "teal-900": "#134E4A",
137
+
138
+ "cyan-50": "#ECFEFF",
139
+ "cyan-100": "#CFFAFE",
140
+ "cyan-200": "#A5F3FC",
141
+ "cyan-300": "#67E8F9",
142
+ "cyan-400": "#22D3EE",
143
+ "cyan-500": "#06B6D4",
144
+ "cyan-600": "#0891B2",
145
+ "cyan-700": "#0E7490",
146
+ "cyan-800": "#155E75",
147
+ "cyan-900": "#164E63",
148
+
149
+ "lightBlue-50": "#F0F9FF",
150
+ "lightBlue-100": "#E0F2FE",
151
+ "lightBlue-200": "#BAE6FD",
152
+ "lightBlue-300": "#7DD3FC",
153
+ "lightBlue-400": "#38BDF8",
154
+ "lightBlue-500": "#0EA5E9",
155
+ "lightBlue-600": "#0284C7",
156
+ "lightBlue-700": "#0369A1",
157
+ "lightBlue-800": "#075985",
158
+ "lightBlue-900": "#0C4A6E",
159
+
160
+ "blue-50": "#EFF6FF",
161
+ "blue-100": "#DBEAFE",
162
+ "blue-200": "#BFDBFE",
163
+ "blue-300": "#93C5FD",
164
+ "blue-400": "#60A5FA",
165
+ "blue-500": "#3B82F6",
166
+ "blue-600": "#2563EB",
167
+ "blue-700": "#1D4ED8",
168
+ "blue-800": "#1E40AF",
169
+ "blue-900": "#1E3A8A",
170
+
171
+ "purple-50": "#EEE6FB",
172
+ "purple-100": "#DECCF6",
173
+ "purple-200": "#CDB3F2",
174
+ "purple-300": "#BC99EE",
175
+ "purple-400": "#9B66E5",
176
+ "purple-500": "#7933DD",
177
+ "purple-600": "#691AD8",
178
+ "purple-700": "#5800D4",
179
+ "purple-800": "#4F00BF",
180
+ "purple-900": "#4600AA",
181
+
182
+ "violet-50": "#F5F3FF",
183
+ "violet-100": "#EDE9FE",
184
+ "violet-200": "#DDD6FE",
185
+ "violet-300": "#C4B5FD",
186
+ "violet-400": "#A78BFA",
187
+ "violet-500": "#8B5CF6",
188
+ "violet-600": "#7C3AED",
189
+ "violet-700": "#6D28D9",
190
+ "violet-800": "#5B21B6",
191
+ "violet-900": "#4C1D95",
192
+
193
+ "pink-50": "#FDF2F8",
194
+ "pink-100": "#FCE7F3",
195
+ "pink-200": "#FBCFE8",
196
+ "pink-300": "#F9A8D4",
197
+ "pink-400": "#F472B6",
198
+ "pink-500": "#EC4899",
199
+ "pink-600": "#DB2777",
200
+ "pink-700": "#BE185D",
201
+ "pink-800": "#9D174D",
202
+ "pink-900": "#831843",
203
+
204
+ "rose-50": "#FFF1F2",
205
+ "rose-100": "#FFE4E6",
206
+ "rose-200": "#FECDD3",
207
+ "rose-300": "#FDA4AF",
208
+ "rose-400": "#FB7185",
209
+ "rose-500": "#F43F5E",
210
+ "rose-600": "#E11D48",
211
+ "rose-700": "#BE123C",
212
+ "rose-800": "#9F1239",
213
+ "rose-900": "#881337"
214
+ },
215
+ fontWeight: {
216
+ medium: 600
217
+ },
218
+ fontSize: {
219
+ xs: ["0.75rem", "1rem"],
220
+ sm: ["0.875rem", "1.25rem"],
221
+ base: ["1rem", "1.5rem"],
222
+ lg: ["1.125rem", "1.75rem"],
223
+ xl: ["1.25rem", "1.75rem"],
224
+ "2xl": ["1.5rem", "2rem"],
225
+ "3xl": ["1.875rem", "2.25rem"],
226
+ "4xl": ["2.25rem", "2.5rem"],
227
+ "5xl": ["3rem", "3rem"],
228
+ "6xl": ["3.75rem", "3.75rem"],
229
+ "7xl": ["4.5rem", "4.5rem"],
230
+ "8xl": ["6rem", "6rem"],
231
+ "9xl": ["8rem", "8rem"]
232
+ }
233
+ }
234
+ },
235
+ plugins: [require("@tailwindcss/forms"), require("@tailwindcss/typography"), require("@headlessui/tailwindcss")]
236
+ }
package/tsconfig.json CHANGED
@@ -1,29 +1,29 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "lib": ["dom", "dom.iterable", "esnext"],
5
- "allowJs": true,
6
- "skipLibCheck": true,
7
- "strict": true,
8
- "forceConsistentCasingInFileNames": true,
9
- "noEmit": true,
10
- "esModuleInterop": true,
11
- "module": "esnext",
12
- "moduleResolution": "node",
13
- "resolveJsonModule": true,
14
- "isolatedModules": true,
15
- "jsx": "preserve",
16
- "incremental": true,
17
- "plugins": [
18
- {
19
- "name": "next"
20
- }
21
- ],
22
- "baseUrl": ".",
23
- "paths": {
24
- "@/*": ["./*"]
25
- }
26
- },
27
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
28
- "exclude": ["node_modules"]
29
- }
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "lib": ["dom", "dom.iterable", "esnext"],
5
+ "allowJs": true,
6
+ "skipLibCheck": true,
7
+ "strict": true,
8
+ "forceConsistentCasingInFileNames": true,
9
+ "noEmit": true,
10
+ "esModuleInterop": true,
11
+ "module": "esnext",
12
+ "moduleResolution": "node",
13
+ "resolveJsonModule": true,
14
+ "isolatedModules": true,
15
+ "jsx": "preserve",
16
+ "incremental": true,
17
+ "plugins": [
18
+ {
19
+ "name": "next"
20
+ }
21
+ ],
22
+ "baseUrl": ".",
23
+ "paths": {
24
+ "@/*": ["./*"]
25
+ }
26
+ },
27
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
28
+ "exclude": ["node_modules"]
29
+ }
package/tsconfig.lib.json CHANGED
@@ -1,26 +1,26 @@
1
- {
2
- "compilerOptions": {
3
- "declaration": true,
4
- "declarationDir": "./dist/types",
5
- "outDir": "./dist",
6
- "module": "ESNext",
7
- "rootDir": "./",
8
- "target": "ESNext",
9
- "esModuleInterop": true,
10
- "moduleResolution": "node",
11
- "baseUrl": ".",
12
- "paths": {
13
- "@/*": [
14
- "./*"
15
- ]
16
- },
17
- "jsx": "react-jsx"
18
- },
19
- "include": [
20
- "stories/**/*.ts",
21
- "utils/**/*.ts"
22
- ],
23
- "exclude": [
24
- "node_modules"
25
- ]
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "declarationDir": "./dist/types",
5
+ "outDir": "./dist",
6
+ "module": "ESNext",
7
+ "rootDir": "./",
8
+ "target": "ESNext",
9
+ "esModuleInterop": true,
10
+ "moduleResolution": "node",
11
+ "baseUrl": ".",
12
+ "paths": {
13
+ "@/*": [
14
+ "./*"
15
+ ]
16
+ },
17
+ "jsx": "react-jsx"
18
+ },
19
+ "include": [
20
+ "stories/**/*.ts",
21
+ "utils/**/*.ts"
22
+ ],
23
+ "exclude": [
24
+ "node_modules"
25
+ ]
26
26
  }
package/utils/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import React from "react";
2
- export type ClassNameWithAutocomplete = React.ComponentPropsWithoutRef<"div">["className"];
1
+ import React from "react";
2
+ export type ClassNameWithAutocomplete = React.ComponentPropsWithoutRef<"div">["className"];
package/utils/types.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { HTMLAttributes } from "react"
2
- import React from "react"
3
- export type ClassNameWithAutocomplete = React.ComponentPropsWithoutRef<"div">["className"]
1
+ import { HTMLAttributes } from "react"
2
+ import React from "react"
3
+ export type ClassNameWithAutocomplete = React.ComponentPropsWithoutRef<"div">["className"]
package/utils/useId.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const useId: () => string;
1
+ export declare const useId: () => string;
package/utils/useId.tsx CHANGED
@@ -1,16 +1,16 @@
1
- import { useLayoutEffect, useState } from "react"
2
-
3
- let id = 0
4
- function generateId() {
5
- return ++id
6
- }
7
-
8
- export const useId = () => {
9
- const [id, setId] = useState(generateId)
10
-
11
- useLayoutEffect(() => {
12
- if (id === null) setId(generateId())
13
- }, [id])
14
-
15
- return id != null ? "" + id : undefined
16
- }
1
+ import { useLayoutEffect, useState } from "react"
2
+
3
+ let id = 0
4
+ function generateId() {
5
+ return ++id
6
+ }
7
+
8
+ export const useId = () => {
9
+ const [id, setId] = useState(generateId)
10
+
11
+ useLayoutEffect(() => {
12
+ if (id === null) setId(generateId())
13
+ }, [id])
14
+
15
+ return id != null ? "" + id : undefined
16
+ }