@agility/plenum-ui 2.0.0-rc47 → 2.0.0-rc49
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/.eslintrc.json +6 -6
- package/.prettierrc +13 -13
- package/.storybook/Layout.jsx +12 -12
- package/.storybook/head.tsx +4 -4
- package/.storybook/main.ts +18 -18
- package/.storybook/manager-head.html +1 -1
- package/.storybook/manager.ts +25 -25
- package/.storybook/plenumTheme.ts +8 -8
- package/.storybook/preview-head.html +3 -3
- package/.storybook/preview.tsx +28 -28
- package/.vscode/settings.json +3 -3
- package/README.md +271 -271
- package/app/globals.css +99 -99
- package/app/head.tsx +59 -59
- package/app/layout.tsx +28 -28
- package/app/page.tsx +7 -7
- package/build.js +45 -45
- package/dist/index.d.ts +232 -230
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/types/stories/molecules/inputs/select/Select.d.ts +2 -0
- package/local.sh +100 -100
- package/next.config.js +8 -8
- package/package.json +82 -82
- package/pages/api/hello.ts +13 -13
- package/postcss.config.js +6 -6
- package/rollup.config.mjs +41 -41
- package/scripts/create-component.js +97 -97
- package/stories/Introduction.mdx +314 -314
- package/stories/assets/stackalt.svg +1 -1
- package/stories/atoms/Avatar/Avatar.stories.tsx +96 -96
- package/stories/atoms/Avatar/Avatar.tsx +123 -123
- package/stories/atoms/Avatar/index.ts +3 -3
- package/stories/atoms/badges/Badge.tsx +127 -127
- package/stories/atoms/badges/Pill/Pill.stories.tsx +75 -75
- package/stories/atoms/badges/Rounded/Rounded.stories.tsx +75 -75
- package/stories/atoms/badges/index.ts +3 -3
- package/stories/atoms/buttons/Button/Alternative/Alternative.stories.ts +86 -86
- package/stories/atoms/buttons/Button/Button.tsx +232 -232
- package/stories/atoms/buttons/Button/Danger/Danger.stories.ts +90 -90
- package/stories/atoms/buttons/Button/Primary/Primary.stories.ts +97 -97
- package/stories/atoms/buttons/Button/Secondary/Secondary.stories.ts +93 -93
- package/stories/atoms/buttons/Button/defaultArgs.ts +9 -9
- package/stories/atoms/buttons/Button/index.ts +3 -3
- package/stories/atoms/buttons/Capsule/Alternative/Alternative.stories.ts +27 -27
- package/stories/atoms/buttons/Capsule/Capsule.tsx +88 -88
- package/stories/atoms/buttons/Capsule/Danger/Danger.stories.ts +27 -27
- package/stories/atoms/buttons/Capsule/Primary/Primary.stories.ts +27 -27
- package/stories/atoms/buttons/Capsule/Secondary/Secondary.stories.ts +27 -27
- package/stories/atoms/buttons/Capsule/index.ts +3 -3
- package/stories/atoms/buttons/FloatingActionButton/FloatingActionButton.stories.tsx +15 -15
- package/stories/atoms/buttons/FloatingActionButton/FloatingActionButton.tsx +22 -22
- package/stories/atoms/buttons/FloatingActionButton/index.tsx +3 -3
- package/stories/atoms/buttons/index.ts +4 -4
- package/stories/atoms/crumb/Crumb.stories.tsx +18 -18
- package/stories/atoms/crumb/Crumb.tsx +22 -22
- package/stories/atoms/crumb/index.tsx +3 -3
- package/stories/atoms/icons/DynamicIcon.stories.ts +43 -43
- package/stories/atoms/icons/DynamicIcon.tsx +90 -90
- package/stories/atoms/icons/IconWithShadow.stories.ts +43 -43
- package/stories/atoms/icons/IconWithShadow.tsx +16 -16
- package/stories/atoms/icons/TablerIcon.tsx +22 -22
- package/stories/atoms/icons/index.tsx +14 -14
- package/stories/atoms/icons/tablerIconNames.ts +4336 -4336
- package/stories/atoms/index.ts +46 -46
- package/stories/atoms/loaders/Loader.stories.ts +15 -15
- package/stories/atoms/loaders/Loader.tsx +21 -21
- package/stories/atoms/loaders/NProgress/RadialProgress.stories.tsx +19 -19
- package/stories/atoms/loaders/NProgress/RadialProgress.tsx +74 -74
- package/stories/atoms/loaders/NProgress/index.ts +3 -3
- package/stories/atoms/loaders/index.ts +4 -4
- package/stories/index.ts +136 -136
- package/stories/molecules/index.ts +51 -51
- package/stories/molecules/inputs/InputCounter/InputCounter.stories.tsx +18 -18
- package/stories/molecules/inputs/InputCounter/InputCounter.tsx +24 -24
- package/stories/molecules/inputs/InputCounter/index.tsx +3 -3
- package/stories/molecules/inputs/InputField/InputField.stories.tsx +29 -29
- package/stories/molecules/inputs/InputField/InputField.tsx +96 -96
- package/stories/molecules/inputs/InputField/index.tsx +3 -3
- package/stories/molecules/inputs/InputLabel/InputLabel.stories.tsx +19 -19
- package/stories/molecules/inputs/InputLabel/InputLabel.tsx +45 -45
- package/stories/molecules/inputs/InputLabel/index.tsx +3 -3
- package/stories/molecules/inputs/NestedInputButton/NestedInputButton.stories.tsx +52 -52
- package/stories/molecules/inputs/NestedInputButton/NestedInputButton.tsx +64 -64
- package/stories/molecules/inputs/NestedInputButton/index.tsx +3 -3
- package/stories/molecules/inputs/TextInput/TextInput.stories.tsx +32 -32
- package/stories/molecules/inputs/TextInput/TextInput.tsx +165 -165
- package/stories/molecules/inputs/TextInput/index.tsx +5 -5
- package/stories/molecules/inputs/checkbox/Checkbox.stories.ts +23 -23
- package/stories/molecules/inputs/checkbox/Checkbox.tsx +98 -98
- package/stories/molecules/inputs/checkbox/index.ts +3 -3
- package/stories/molecules/inputs/combobox/ComboBox.stories.ts +41 -41
- package/stories/molecules/inputs/combobox/ComboBox.tsx +185 -185
- package/stories/molecules/inputs/combobox/index.ts +3 -3
- package/stories/molecules/inputs/index.ts +38 -38
- package/stories/molecules/inputs/radio/Radio.stories.ts +27 -27
- package/stories/molecules/inputs/radio/Radio.tsx +92 -92
- package/stories/molecules/inputs/radio/index.ts +3 -3
- package/stories/molecules/inputs/select/Select.stories.ts +23 -23
- package/stories/molecules/inputs/select/Select.tsx +108 -100
- package/stories/molecules/inputs/select/index.ts +3 -3
- package/stories/molecules/inputs/textArea/TextArea.stories.ts +22 -22
- package/stories/molecules/inputs/textArea/TextArea.tsx +158 -158
- package/stories/molecules/inputs/textArea/index.ts +3 -3
- package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.stories.tsx +118 -118
- package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.tsx +81 -81
- package/stories/molecules/inputs/toggleSwitch/index.ts +3 -3
- package/stories/molecules/tabs/Tabs.stories.tsx +18 -18
- package/stories/molecules/tabs/Tabs.tsx +22 -22
- package/stories/molecules/tabs/index.tsx +2 -2
- package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.stories.tsx +30 -30
- package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx +66 -66
- package/stories/organisms/AnimatedLabelInput/index.tsx +3 -3
- package/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.stories.tsx +26 -26
- package/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.tsx +61 -61
- package/stories/organisms/AnimatedLabelTextArea/index.tsx +3 -3
- package/stories/organisms/ButtonDropdown/ButtonDropdown.stories.tsx +125 -125
- package/stories/organisms/ButtonDropdown/ButtonDropdown.tsx +86 -86
- package/stories/organisms/ButtonDropdown/index.tsx +3 -3
- package/stories/organisms/DropdownComponent/Dropdown.stories.tsx +73 -73
- package/stories/organisms/DropdownComponent/DropdownComponent.tsx +346 -346
- package/stories/organisms/DropdownComponent/dropdownItems.ts +122 -122
- package/stories/organisms/DropdownComponent/index.ts +4 -4
- package/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.stories.tsx +76 -76
- package/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.tsx +52 -52
- package/stories/organisms/EmptySectionPlaceholder/index.tsx +4 -4
- package/stories/organisms/FormInputWithAddons/FormInputWithAddons.stories.tsx +29 -29
- package/stories/organisms/FormInputWithAddons/FormInputWithAddons.tsx +145 -145
- package/stories/organisms/FormInputWithAddons/index.tsx +3 -3
- package/stories/organisms/TextInputSelect/InputSelect.tsx +59 -59
- package/stories/organisms/TextInputSelect/TextInputSelect.stories.tsx +33 -33
- package/stories/organisms/TextInputSelect/TextInputSelect.tsx +186 -186
- package/stories/organisms/TextInputSelect/index.tsx +3 -3
- package/stories/organisms/index.ts +27 -27
- package/tailwind.config.js +192 -192
- package/tsconfig.json +29 -29
- package/tsconfig.lib.json +25 -25
- package/utils/types.d.ts +2 -2
- package/utils/types.ts +3 -3
- package/utils/useId.d.ts +1 -1
- package/utils/useId.tsx +16 -16
package/tailwind.config.js
CHANGED
|
@@ -1,192 +1,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
|
-
"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
|
+
"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
|
+
}
|
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
|
+
}
|