@dito-uai/components 5.0.0-alpha8 → 5.1.0-alpha.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.
@@ -0,0 +1,267 @@
1
+ import TailwindsForms from '@tailwindcss/forms';
2
+ import TailwindsTypography from '@tailwindcss/typography';
3
+ import TailwindsAnimate from 'tailwindcss-animate';
4
+
5
+ export const COLORS = {
6
+ neutral: {
7
+ white: '#ffffff',
8
+ black: '#000000',
9
+ neutral_900: '#21242b',
10
+ neutral_700: '#343841',
11
+ neutral_600: '#484d59',
12
+ neutral_500: '#6a7486',
13
+ neutral_400: '#8d95a7',
14
+ neutral_300: '#bdc2cc',
15
+ neutral_200: '#d7dae0',
16
+ neutral_100: '#eff0f2',
17
+ },
18
+ brand: {
19
+ navy_900: '#223154',
20
+ navy_600: '#364b74',
21
+ navy_100: '#e6e8ed',
22
+ green_900: '#006a31',
23
+ green_600: '#00bd6a',
24
+ green_100: '#e5f7ed',
25
+ },
26
+ secondary: {
27
+ indigo_900: '#353877',
28
+ indigo_600: '#4b5398',
29
+ indigo_100: '#e8eaf2',
30
+ purple_900: '#541f8e',
31
+ purple_600: '#852ca5',
32
+ purple_100: '#f7e7fc',
33
+ blue_900: '#4a58d5',
34
+ blue_600: '#549eff',
35
+ blue_100: '#e4f1ff',
36
+ pink_900: '#a50a54',
37
+ pink_600: '#f1167f',
38
+ pink_100: '#fee6f1',
39
+ green_900: '#127a6e',
40
+ green_600: '#06c5ae',
41
+ green_100: '#e6f9f7',
42
+ platform_background: '#f3f4f8',
43
+ },
44
+ chart: {
45
+ midnight_blue_900: '#0a0259',
46
+ midnight_blue_600: '#271bae',
47
+ midnight_blue_100: '#ebf0ff',
48
+ green_900: '#005b42',
49
+ green_600: '#0bcc96',
50
+ green_100: '#e5fff4',
51
+ purple_900: '#4c178e',
52
+ purple_600: '#8929ff',
53
+ purple_100: '#f6eeff',
54
+ pink_900: '#b91d70',
55
+ pink_600: '#ff00b8',
56
+ pink_100: '#fff1fb',
57
+ light_blue_900: '#094170',
58
+ light_blue_600: '#00beff',
59
+ light_blue_100: '#ebf9ff',
60
+ orange_900: '#b84300',
61
+ orange_600: '#ff7a00',
62
+ orange_100: '#fff0df',
63
+ red_900: '#8b0c23',
64
+ red_600: '#db0028',
65
+ red_100: '#ffecef',
66
+ blue_900: '#09006d',
67
+ blue_600: '#1456ff',
68
+ blue_100: '#e6f2ff',
69
+ yellow_900: '#9d670b',
70
+ yellow_600: '#f1c40f',
71
+ yellow_100: '#fff9e7',
72
+ },
73
+ notification: {
74
+ critical_900: '#9e0505',
75
+ critical_600: '#d31d26',
76
+ critical_300: '#ffadb0',
77
+ critical_100: '#ffebeb',
78
+ warning_900: '#8a4900',
79
+ warning_600: '#ffca42',
80
+ warning_300: '#ffe8a9',
81
+ warning_100: '#fff6ce',
82
+ success_900: '#074a1b',
83
+ success_600: '#228000',
84
+ success_300: '#80e09c',
85
+ success_100: '#defce7',
86
+ information_900: '#1e4664',
87
+ information_600: '#0d74a0',
88
+ information_300: '#b0e7ff',
89
+ information_100: '#e0f8ff',
90
+ },
91
+ };
92
+
93
+ /** @type {import('tailwindcss').Config} */
94
+ export default {
95
+ mode: 'jit',
96
+ content: ['./src/**/*.{ts,tsx}'],
97
+ theme: {
98
+ screens: {
99
+ sm: '480px',
100
+ md: '768px',
101
+ lg: '976px',
102
+ xl: '1440px',
103
+ },
104
+ fontFamily: {
105
+ sans: ['Poppins', 'sans-serif'],
106
+ },
107
+ extend: {
108
+ backgroundImage: {
109
+ 'gradient-radial': 'radial-gradient(var(--gradient-color-stops))',
110
+ },
111
+ colors: () => ({
112
+ primary: COLORS.brand.green_600,
113
+ 'primary-foreground': '#ffffff',
114
+ accent: COLORS.brand.navy_600,
115
+ 'accent-foreground': '#ffffff',
116
+ 'neutral-100': COLORS.neutral.neutral_100,
117
+ 'neutral-200': COLORS.neutral.neutral_200,
118
+ 'neutral-300': COLORS.neutral.neutral_300,
119
+ 'neutral-400': COLORS.neutral.neutral_400,
120
+ 'neutral-500': COLORS.neutral.neutral_500,
121
+ 'neutral-600': COLORS.neutral.neutral_600,
122
+ 'neutral-700': COLORS.neutral.neutral_700,
123
+ 'neutral-900': COLORS.neutral.neutral_900,
124
+ 'midnight-blue-900': COLORS.chart.midnight_blue_900,
125
+ 'midnight-blue-600': COLORS.chart.midnight_blue_600,
126
+ 'midnight-blue-100': COLORS.chart.midnight_blue_100,
127
+ 'red-100': COLORS.chart.red_100,
128
+ 'red-600': COLORS.chart.red_600,
129
+ 'red-900': COLORS.chart.red_900,
130
+ 'orange-100': COLORS.chart.orange_100,
131
+ 'orange-600': COLORS.chart.orange_600,
132
+ 'orange-900': COLORS.chart.orange_900,
133
+ 'yellow-100': COLORS.chart.yellow_100,
134
+ 'yellow-600': COLORS.chart.yellow_600,
135
+ 'yellow-900': COLORS.chart.yellow_900,
136
+ 'green-100': COLORS.brand.green_100,
137
+ 'green-600': COLORS.brand.green_600,
138
+ 'green-900': COLORS.brand.green_900,
139
+ 'blue-100': COLORS.secondary.blue_100,
140
+ 'blue-600': COLORS.secondary.blue_600,
141
+ 'blue-900': COLORS.secondary.blue_900,
142
+ 'light-blue-100': COLORS.chart.light_blue_100,
143
+ 'light-blue-600': COLORS.chart.light_blue_600,
144
+ 'light-blue-900': COLORS.chart.light_blue_900,
145
+ 'indigo-100': COLORS.brand.navy_100,
146
+ 'indigo-600': COLORS.brand.navy_600,
147
+ 'indigo-900': COLORS.brand.navy_900,
148
+ 'navy-100': COLORS.brand.navy_100,
149
+ 'navy-600': COLORS.brand.navy_600,
150
+ 'navy-900': COLORS.brand.navy_900,
151
+ 'purple-100': COLORS.chart.purple_100,
152
+ 'purple-600': COLORS.chart.purple_600,
153
+ 'purple-900': COLORS.chart.purple_900,
154
+ 'pink-100': COLORS.chart.pink_100,
155
+ 'pink-600': COLORS.chart.pink_600,
156
+ 'pink-900': COLORS.chart.pink_900,
157
+ notification: {
158
+ 'critical-100': COLORS.notification.critical_100,
159
+ 'critical-300': COLORS.notification.critical_300,
160
+ 'critical-600': COLORS.notification.critical_600,
161
+ 'critical-900': COLORS.notification.critical_900,
162
+ 'warning-100': COLORS.notification.warning_100,
163
+ 'warning-300': COLORS.notification.warning_300,
164
+ 'warning-600': COLORS.notification.warning_600,
165
+ 'warning-900': COLORS.notification.warning_900,
166
+ 'success-100': COLORS.notification.success_100,
167
+ 'success-300': COLORS.notification.success_300,
168
+ 'success-600': COLORS.notification.success_600,
169
+ 'success-900': COLORS.notification.success_900,
170
+ 'information-100': COLORS.notification.information_100,
171
+ 'information-300': COLORS.notification.information_300,
172
+ 'information-600': COLORS.notification.information_600,
173
+ 'information-900': COLORS.notification.information_900,
174
+ },
175
+ secondary: {
176
+ 'indigo-100': COLORS.secondary.indigo_100,
177
+ 'indigo-600': COLORS.secondary.indigo_600,
178
+ 'indigo-900': COLORS.secondary.indigo_900,
179
+ },
180
+ }),
181
+ height: {
182
+ 1: '8px',
183
+ 2: '16px',
184
+ 3: '24px',
185
+ 4: '32px',
186
+ 5: '40px',
187
+ 6: '48px',
188
+ 7: '56px',
189
+ },
190
+ gap: {
191
+ 1: '8px',
192
+ 2: '16px',
193
+ 3: '32px',
194
+ 4: '48px',
195
+ },
196
+ spacing: {
197
+ 0.25: '2px',
198
+ 0.5: '4px',
199
+ 0.75: '6px',
200
+ 1: '8px',
201
+ 2: '16px',
202
+ 3: '24px',
203
+ 4: '32px',
204
+ 5: '40px',
205
+ 6: '48px',
206
+ 7: '56px',
207
+ 8: '64px',
208
+ 9: '72px',
209
+ 10: '128px',
210
+ },
211
+ maxWidth: {
212
+ '1/4': '25%',
213
+ '1/2': '50%',
214
+ '3/4': '75%',
215
+ },
216
+ borderRadius: {
217
+ sm: '4px',
218
+ m: '8px',
219
+ x: '16px',
220
+ xl: '32px',
221
+ },
222
+ boxShadow: {
223
+ down: '0px 4px 8px 0px #00000014',
224
+ },
225
+ fontSize: {
226
+ xs: ['10px', { lineHeight: '16px' }],
227
+ sm: ['12px', { lineHeight: '18px' }],
228
+ base: ['14px', { lineHeight: '20px' }],
229
+ lg: ['16px', { lineHeight: '24px' }],
230
+ xl: ['22px', { lineHeight: '32px' }],
231
+ '2xl': ['28px', { lineHeight: '40px' }],
232
+ '3xl': ['30px', { lineHeight: '44px' }],
233
+ },
234
+ keyframes: {
235
+ 'accordion-down': {
236
+ from: { height: '0' },
237
+ to: { height: 'var(--radix-accordion-content-height)' },
238
+ },
239
+ 'accordion-up': {
240
+ from: { height: 'var(--radix-accordion-content-height)' },
241
+ to: { height: '0' },
242
+ },
243
+ },
244
+ animation: {
245
+ 'accordion-down': 'accordion-down 0.2s ease-out',
246
+ 'accordion-up': 'accordion-up 0.2s ease-out',
247
+ },
248
+ },
249
+ },
250
+ plugins: [
251
+ TailwindsAnimate,
252
+ TailwindsTypography,
253
+ TailwindsForms({ strategy: 'class' }),
254
+ ],
255
+ safelist: [
256
+ {
257
+ pattern: /bg-/,
258
+ },
259
+ {
260
+ pattern: /text-/,
261
+ },
262
+ {
263
+ pattern:
264
+ /m-|mx-|my-|mr-|mt-|mb-|ml–|p-|px–|py-|pr-|pt-|pb-|pl-|rounded|gap|w|h/,
265
+ },
266
+ ],
267
+ };
@@ -1,88 +0,0 @@
1
- export declare const COLORS: {
2
- neutral: {
3
- white: string;
4
- black: string;
5
- neutral_900: string;
6
- neutral_700: string;
7
- neutral_600: string;
8
- neutral_500: string;
9
- neutral_400: string;
10
- neutral_300: string;
11
- neutral_200: string;
12
- neutral_100: string;
13
- };
14
- brand: {
15
- navy_900: string;
16
- navy_600: string;
17
- navy_100: string;
18
- green_900: string;
19
- green_600: string;
20
- green_100: string;
21
- };
22
- secondary: {
23
- indigo_900: string;
24
- indigo_600: string;
25
- indigo_100: string;
26
- purple_900: string;
27
- purple_600: string;
28
- purple_100: string;
29
- blue_900: string;
30
- blue_600: string;
31
- blue_100: string;
32
- pink_900: string;
33
- pink_600: string;
34
- pink_100: string;
35
- green_900: string;
36
- green_600: string;
37
- green_100: string;
38
- platform_background: string;
39
- };
40
- chart: {
41
- midnight_blue_900: string;
42
- midnight_blue_600: string;
43
- midnight_blue_100: string;
44
- green_900: string;
45
- green_600: string;
46
- green_100: string;
47
- purple_900: string;
48
- purple_600: string;
49
- purple_100: string;
50
- pink_900: string;
51
- pink_600: string;
52
- pink_100: string;
53
- light_blue_900: string;
54
- light_blue_600: string;
55
- light_blue_100: string;
56
- orange_900: string;
57
- orange_600: string;
58
- orange_100: string;
59
- red_900: string;
60
- red_600: string;
61
- red_100: string;
62
- blue_900: string;
63
- blue_600: string;
64
- blue_100: string;
65
- yellow_900: string;
66
- yellow_600: string;
67
- yellow_100: string;
68
- };
69
- notification: {
70
- critical_900: string;
71
- critical_600: string;
72
- critical_300: string;
73
- critical_100: string;
74
- warning_900: string;
75
- warning_600: string;
76
- warning_300: string;
77
- warning_100: string;
78
- success_900: string;
79
- success_600: string;
80
- success_300: string;
81
- success_100: string;
82
- information_900: string;
83
- information_600: string;
84
- information_300: string;
85
- information_100: string;
86
- };
87
- };
88
- //# sourceMappingURL=colors-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"colors-utils.d.ts","sourceRoot":"","sources":["../../src/lib/colors-utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFlB,CAAC"}
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
- type CollapseProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
4
- declare const CollapseItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
- declare const CollapseTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
6
- triggerClassName?: string;
7
- } & React.RefAttributes<HTMLButtonElement>>;
8
- declare const CollapseContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
- type CollapseType = React.ForwardRefExoticComponent<CollapseProps> & {
10
- Item: typeof CollapseItem;
11
- Trigger: typeof CollapseTrigger;
12
- Content: typeof CollapseContent;
13
- };
14
- declare const CollapseWithStatics: CollapseType;
15
- export default CollapseWithStatics;
16
- //# sourceMappingURL=collapse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collapse.d.ts","sourceRoot":"","sources":["../../src/ui/collapse.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAoBhE,KAAK,aAAa,GAAG,KAAK,CAAC,wBAAwB,CACjD,OAAO,kBAAkB,CAAC,IAAI,CAC/B,CAAC;AAaF,QAAA,MAAM,YAAY,iKAShB,CAAC;AAIH,QAAA,MAAM,eAAe;uBAGE,MAAM;2CAa3B,CAAC;AAIH,QAAA,MAAM,eAAe,oKAOnB,CAAC;AAIH,KAAK,YAAY,GAAG,KAAK,CAAC,yBAAyB,CAAC,aAAa,CAAC,GAAG;IACnE,IAAI,EAAE,OAAO,YAAY,CAAC;IAC1B,OAAO,EAAE,OAAO,eAAe,CAAC;IAChC,OAAO,EAAE,OAAO,eAAe,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,mBAAmB,EAAe,YAAY,CAAC;AAKrD,eAAe,mBAAmB,CAAC"}