athameui 0.0.12 → 0.0.14

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 (64) hide show
  1. package/components/Accordion/Accordion.tsx +23 -23
  2. package/components/Accordion/AccordionItem.tsx +7 -1
  3. package/components/Avatar/Avatar.tsx +6 -1
  4. package/components/Button/Button.tsx +11 -0
  5. package/components/Button/ScrollToTopButton.tsx +2 -1
  6. package/components/Carousel/Carousel.tsx +159 -37
  7. package/components/Checkbox/Checkbox.tsx +51 -0
  8. package/components/Checkbox/index.ts +1 -0
  9. package/components/FormField/FormField.tsx +24 -0
  10. package/components/FormTextInput/FormTextInput.tsx +11 -0
  11. package/components/Layout/Main.tsx +11 -2
  12. package/components/Modal/Modal.tsx +9 -2
  13. package/components/SlideOut/SlideOut.tsx +31 -2
  14. package/components/index.ts +1 -0
  15. package/dist/athameui.cjs +410 -262
  16. package/dist/athameui.cjs.map +1 -1
  17. package/dist/athameui.mjs +406 -248
  18. package/dist/athameui.mjs.map +1 -1
  19. package/dist/components/Accordion/AccordionItem.d.ts.map +1 -1
  20. package/dist/components/Avatar/Avatar.d.ts.map +1 -1
  21. package/dist/components/Button/Button.d.ts +5 -0
  22. package/dist/components/Button/Button.d.ts.map +1 -1
  23. package/dist/components/Button/ScrollToTopButton.d.ts.map +1 -1
  24. package/dist/components/Carousel/Carousel.d.ts +5 -1
  25. package/dist/components/Carousel/Carousel.d.ts.map +1 -1
  26. package/dist/components/Checkbox/Checkbox.d.ts +14 -0
  27. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  28. package/dist/components/Checkbox/index.d.ts +2 -0
  29. package/dist/components/Checkbox/index.d.ts.map +1 -0
  30. package/dist/components/FormField/FormField.d.ts +3 -0
  31. package/dist/components/FormField/FormField.d.ts.map +1 -1
  32. package/dist/components/FormTextInput/FormTextInput.d.ts +6 -1
  33. package/dist/components/FormTextInput/FormTextInput.d.ts.map +1 -1
  34. package/dist/components/Layout/Main.d.ts +2 -1
  35. package/dist/components/Layout/Main.d.ts.map +1 -1
  36. package/dist/components/Modal/Modal.d.ts.map +1 -1
  37. package/dist/components/SlideOut/SlideOut.d.ts.map +1 -1
  38. package/dist/components/index.d.ts +1 -0
  39. package/dist/components/index.d.ts.map +1 -1
  40. package/dist/styles/components/carousel.css +28 -4
  41. package/dist/styles/components/checkbox.css +60 -0
  42. package/dist/styles/components/form-input.css +2 -1
  43. package/dist/styles/components/main.css +17 -2
  44. package/dist/styles/index.d.ts +0 -1
  45. package/dist/styles/index.d.ts.map +1 -1
  46. package/dist/styles/index.ts +0 -1
  47. package/dist/styles/theme.css +1 -0
  48. package/dist/styles/tokens.css +16 -17
  49. package/dist/styles/tokens.d.ts +209 -26
  50. package/dist/styles/tokens.d.ts.map +1 -1
  51. package/dist/styles/tokens.ts +190 -165
  52. package/package.json +1 -1
  53. package/styles/components/carousel.css +28 -4
  54. package/styles/components/checkbox.css +60 -0
  55. package/styles/components/form-input.css +2 -1
  56. package/styles/components/main.css +17 -2
  57. package/styles/index.ts +0 -1
  58. package/styles/theme.css +1 -0
  59. package/styles/tokens.css +16 -17
  60. package/styles/tokens.ts +190 -165
  61. package/dist/styles/breakpoints.d.ts +0 -29
  62. package/dist/styles/breakpoints.d.ts.map +0 -1
  63. package/dist/styles/breakpoints.ts +0 -34
  64. package/styles/breakpoints.ts +0 -34
@@ -1,3 +1,190 @@
1
+ export declare const breakpoints: {
2
+ readonly xs: 320;
3
+ readonly sm: 480;
4
+ readonly md: 620;
5
+ readonly lg: 768;
6
+ readonly xl: 896;
7
+ readonly "2xl": 1024;
8
+ readonly "3xl": 1280;
9
+ readonly "4xl": 1536;
10
+ };
11
+ export type Breakpoints = typeof breakpoints;
12
+ export type Breakpoint = keyof typeof breakpoints;
13
+ export declare const media: {
14
+ readonly min: {
15
+ readonly xs: string;
16
+ readonly sm: string;
17
+ readonly md: string;
18
+ readonly lg: string;
19
+ readonly xl: string;
20
+ readonly "2xl": string;
21
+ readonly "3xl": string;
22
+ readonly "4xl": string;
23
+ };
24
+ readonly max: {
25
+ readonly xs: string;
26
+ readonly sm: string;
27
+ readonly md: string;
28
+ readonly lg: string;
29
+ readonly xl: string;
30
+ readonly "2xl": string;
31
+ readonly "3xl": string;
32
+ readonly "4xl": string;
33
+ };
34
+ };
35
+ export declare const font: {
36
+ family: {
37
+ sans: string;
38
+ serif: string;
39
+ };
40
+ size: {
41
+ xs: string;
42
+ sm: string;
43
+ md: string;
44
+ lg: string;
45
+ xl: string;
46
+ "2xl": string;
47
+ "3xl": string;
48
+ "4xl": string;
49
+ "5xl": string;
50
+ };
51
+ };
52
+ export declare const color: {
53
+ primary: {
54
+ "50": string;
55
+ "100": string;
56
+ "200": string;
57
+ "300": string;
58
+ "400": string;
59
+ "500": string;
60
+ "600": string;
61
+ "700": string;
62
+ "800": string;
63
+ "900": string;
64
+ default: string;
65
+ vibrant: {
66
+ "300": string;
67
+ "500": string;
68
+ "700": string;
69
+ };
70
+ };
71
+ secondary: {
72
+ "50": string;
73
+ "100": string;
74
+ "200": string;
75
+ "300": string;
76
+ "400": string;
77
+ "500": string;
78
+ "600": string;
79
+ "700": string;
80
+ "800": string;
81
+ "900": string;
82
+ default: string;
83
+ vibrant: {
84
+ "300": string;
85
+ "500": string;
86
+ "700": string;
87
+ };
88
+ };
89
+ tertiary: {
90
+ "50": string;
91
+ "100": string;
92
+ "200": string;
93
+ "300": string;
94
+ "400": string;
95
+ "500": string;
96
+ "600": string;
97
+ "700": string;
98
+ "800": string;
99
+ "900": string;
100
+ default: string;
101
+ vibrant: {
102
+ "300": string;
103
+ "500": string;
104
+ "700": string;
105
+ };
106
+ };
107
+ error: {
108
+ "50": string;
109
+ "100": string;
110
+ "200": string;
111
+ "300": string;
112
+ "400": string;
113
+ "500": string;
114
+ "600": string;
115
+ "700": string;
116
+ "800": string;
117
+ "900": string;
118
+ default: string;
119
+ vibrant: {
120
+ "300": string;
121
+ "500": string;
122
+ "700": string;
123
+ };
124
+ };
125
+ warning: {
126
+ "50": string;
127
+ "100": string;
128
+ "200": string;
129
+ "300": string;
130
+ "400": string;
131
+ "500": string;
132
+ "600": string;
133
+ "700": string;
134
+ "800": string;
135
+ "900": string;
136
+ default: string;
137
+ vibrant: {
138
+ "300": string;
139
+ "500": string;
140
+ "700": string;
141
+ };
142
+ };
143
+ success: {
144
+ "50": string;
145
+ "100": string;
146
+ "200": string;
147
+ "300": string;
148
+ "400": string;
149
+ "500": string;
150
+ "600": string;
151
+ "700": string;
152
+ "800": string;
153
+ "900": string;
154
+ default: string;
155
+ vibrant: {
156
+ "300": string;
157
+ "500": string;
158
+ "700": string;
159
+ };
160
+ };
161
+ text: {
162
+ dark: string;
163
+ light: string;
164
+ };
165
+ background: {
166
+ light: string;
167
+ dark: string;
168
+ };
169
+ };
170
+ export declare const padding: {
171
+ xs: string;
172
+ sm: string;
173
+ md: string;
174
+ lg: string;
175
+ xl: string;
176
+ };
177
+ export declare const radius: {
178
+ sm: string;
179
+ md: string;
180
+ lg: string;
181
+ };
182
+ export type FontTokens = typeof font;
183
+ export type ColorTokens = typeof color;
184
+ export type PaddingTokens = typeof padding;
185
+ export type RadiusTokens = typeof radius;
186
+ export type MediaTokens = typeof media;
187
+ export type ScreenTokens = typeof breakpoints;
1
188
  export declare const tokens: {
2
189
  font: {
3
190
  family: {
@@ -134,6 +321,28 @@ export declare const tokens: {
134
321
  dark: string;
135
322
  };
136
323
  };
324
+ media: {
325
+ readonly min: {
326
+ readonly xs: string;
327
+ readonly sm: string;
328
+ readonly md: string;
329
+ readonly lg: string;
330
+ readonly xl: string;
331
+ readonly "2xl": string;
332
+ readonly "3xl": string;
333
+ readonly "4xl": string;
334
+ };
335
+ readonly max: {
336
+ readonly xs: string;
337
+ readonly sm: string;
338
+ readonly md: string;
339
+ readonly lg: string;
340
+ readonly xl: string;
341
+ readonly "2xl": string;
342
+ readonly "3xl": string;
343
+ readonly "4xl": string;
344
+ };
345
+ };
137
346
  padding: {
138
347
  xs: string;
139
348
  sm: string;
@@ -146,31 +355,5 @@ export declare const tokens: {
146
355
  md: string;
147
356
  lg: string;
148
357
  };
149
- media: {
150
- min: {
151
- xs: string;
152
- sm: string;
153
- md: string;
154
- lg: string;
155
- xl: string;
156
- "2xl": string;
157
- "3xl": string;
158
- };
159
- max: {
160
- xs: string;
161
- sm: string;
162
- md: string;
163
- lg: string;
164
- xl: string;
165
- "2xl": string;
166
- "3xl": string;
167
- };
168
- };
169
358
  };
170
- export type Tokens = typeof tokens;
171
- export type FontTokens = typeof tokens.font;
172
- export type ColorTokens = typeof tokens.color;
173
- export type PaddingTokens = typeof tokens.padding;
174
- export type RadiusTokens = typeof tokens.radius;
175
- export type MediaTokens = typeof tokens.media;
176
359
  //# sourceMappingURL=tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../styles/tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwKlB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC;AAGnC,MAAM,MAAM,UAAU,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAC5C,MAAM,MAAM,WAAW,GAAG,OAAO,MAAM,CAAC,KAAK,CAAC;AAC9C,MAAM,MAAM,aAAa,GAAG,OAAO,MAAM,CAAC,OAAO,CAAC;AAClD,MAAM,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,MAAM,CAAC,KAAK,CAAC"}
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../styles/tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;CASd,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC;AAC7C,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC;AAKlD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;CAqBR,CAAC;AAEX,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;CAgBhB,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqHjB,CAAC;AACF,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC;AACF,eAAO,MAAM,MAAM;;;;CAIlB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,OAAO,IAAI,CAAC;AACrC,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC;AACvC,MAAM,MAAM,aAAa,GAAG,OAAO,OAAO,CAAC;AAC3C,MAAM,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC;AACzC,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC;AACvC,MAAM,MAAM,YAAY,GAAG,OAAO,WAAW,CAAC;AAE9C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlB,CAAC"}
@@ -1,178 +1,203 @@
1
- export const tokens = {
2
- font: {
3
- family: {
4
- sans: "Montserrat, sans-serif",
5
- serif: "Libre Baskerville, serif"
6
- },
7
- size: {
8
- xs: "0.75rem",
9
- sm: "0.875rem",
10
- md: "1rem",
11
- lg: "1.25rem",
12
- xl: "1.5rem",
13
- "2xl": "2rem",
14
- "3xl": "2.5rem",
15
- "4xl": "3rem",
16
- "5xl": "3.5rem"
17
- }
1
+ export const breakpoints = {
2
+ xs: 320,
3
+ sm: 480,
4
+ md: 620,
5
+ lg: 768,
6
+ xl: 896,
7
+ "2xl": 1024,
8
+ "3xl": 1280,
9
+ "4xl": 1536,
10
+ } as const;
11
+
12
+ export type Breakpoints = typeof breakpoints;
13
+ export type Breakpoint = keyof typeof breakpoints;
14
+
15
+ const minWidth = (width: number) => `@media (min-width: ${width}px)`;
16
+ const maxWidth = (width: number) => `@media (max-width: ${width - 1}px)`;
17
+
18
+ export const media = {
19
+ min: {
20
+ xs: minWidth(breakpoints.xs),
21
+ sm: minWidth(breakpoints.sm),
22
+ md: minWidth(breakpoints.md),
23
+ lg: minWidth(breakpoints.lg),
24
+ xl: minWidth(breakpoints.xl),
25
+ "2xl": minWidth(breakpoints["2xl"]),
26
+ "3xl": minWidth(breakpoints["3xl"]),
27
+ "4xl": minWidth(breakpoints["4xl"]),
18
28
  },
19
- color: {
20
- primary: {
21
- "50": "#f0f2f5",
22
- "100": "#d9dee6",
23
- "200": "#b8c3d1",
24
- "300": "#8a9bae",
25
- "400": "#4a5f7a",
26
- "500": "#0b1828",
27
- "600": "#081320",
28
- "700": "#060e18",
29
- "800": "#04090f",
30
- "900": "#020407",
31
- "default": "#0b1828",
32
- vibrant: {
33
- "300": "#8ab6ff",
34
- "500": "#4f86f7",
35
- "700": "#1e3a8a"
36
- }
37
- },
38
- secondary: {
39
- "50": "#e6f7f6",
40
- "100": "#b3e8e5",
41
- "200": "#80d9d4",
42
- "300": "#4dcac3",
43
- "400": "#2aa39b",
44
- "500": "#146b68",
45
- "600": "#125a57",
46
- "700": "#0f4a47",
47
- "800": "#0c3835",
48
- "900": "#081f1c",
49
- "default": "#146b68",
50
- vibrant: {
51
- "300": "#75dac7",
52
- "500": "#1abc9c",
53
- "700": "#138f6e"
54
- }
55
- },
56
- tertiary: {
57
- "50": "#f7f4f0",
58
- "100": "#eedecc",
59
- "200": "#e5c8a8",
60
- "300": "#dcb184",
61
- "400": "#d19b60",
62
- "500": "#bfa081",
63
- "600": "#a68965",
64
- "700": "#7d6748",
65
- "800": "#54442c",
66
- "900": "#2b2216",
67
- "default": "#bfa081",
68
- vibrant: {
69
- "300": "#f7c873",
70
- "500": "#f39c12",
71
- "700": "#c9780e"
72
- }
29
+ max: {
30
+ xs: maxWidth(breakpoints.xs),
31
+ sm: maxWidth(breakpoints.sm),
32
+ md: maxWidth(breakpoints.md),
33
+ lg: maxWidth(breakpoints.lg),
34
+ xl: maxWidth(breakpoints.xl),
35
+ "2xl": maxWidth(breakpoints["2xl"]),
36
+ "3xl": maxWidth(breakpoints["3xl"]),
37
+ "4xl": maxWidth(breakpoints["4xl"]),
38
+ },
39
+ } as const;
40
+
41
+ export const font = {
42
+ family: {
43
+ sans: "Montserrat, sans-serif",
44
+ serif: "Libre Baskerville, serif",
45
+ },
46
+ size: {
47
+ xs: "0.75rem",
48
+ sm: "0.875rem",
49
+ md: "1rem",
50
+ lg: "1.25rem",
51
+ xl: "1.5rem",
52
+ "2xl": "2rem",
53
+ "3xl": "2.5rem",
54
+ "4xl": "3rem",
55
+ "5xl": "3.5rem",
56
+ },
57
+ };
58
+
59
+ export const color = {
60
+ primary: {
61
+ "50": "#f0f2f5",
62
+ "100": "#d9dee6",
63
+ "200": "#b8c3d1",
64
+ "300": "#8a9bae",
65
+ "400": "#4a5f7a",
66
+ "500": "#0b1828",
67
+ "600": "#081320",
68
+ "700": "#060e18",
69
+ "800": "#04090f",
70
+ "900": "#020407",
71
+ default: "#0b1828",
72
+ vibrant: {
73
+ "300": "#8ab6ff",
74
+ "500": "#4f86f7",
75
+ "700": "#1e3a8a",
73
76
  },
74
- error: {
75
- "50": "#fee6e6",
76
- "100": "#fbb3b3",
77
- "200": "#f88080",
78
- "300": "#f54d4d",
79
- "400": "#f21a1a",
80
- "500": "#9f0001",
81
- "600": "#800001",
82
- "700": "#600001",
83
- "800": "#400000",
84
- "900": "#200000",
85
- "default": "#9f0001",
86
- vibrant: {
87
- "300": "#f48a6f",
88
- "500": "#e74c3c",
89
- "700": "#c0392b"
90
- }
77
+ },
78
+ secondary: {
79
+ "50": "#e6f7f6",
80
+ "100": "#b3e8e5",
81
+ "200": "#80d9d4",
82
+ "300": "#4dcac3",
83
+ "400": "#2aa39b",
84
+ "500": "#146b68",
85
+ "600": "#125a57",
86
+ "700": "#0f4a47",
87
+ "800": "#0c3835",
88
+ "900": "#081f1c",
89
+ default: "#146b68",
90
+ vibrant: {
91
+ "300": "#75dac7",
92
+ "500": "#1abc9c",
93
+ "700": "#138f6e",
91
94
  },
92
- warning: {
93
- "50": "#fef5ec",
94
- "100": "#fdebda",
95
- "200": "#fad8b3",
96
- "300": "#f8c48c",
97
- "400": "#f5b065",
95
+ },
96
+ tertiary: {
97
+ "50": "#f7f4f0",
98
+ "100": "#eedecc",
99
+ "200": "#e5c8a8",
100
+ "300": "#dcb184",
101
+ "400": "#d19b60",
102
+ "500": "#bfa081",
103
+ "600": "#a68965",
104
+ "700": "#7d6748",
105
+ "800": "#54442c",
106
+ "900": "#2b2216",
107
+ default: "#bfa081",
108
+ vibrant: {
109
+ "300": "#f7c873",
98
110
  "500": "#f39c12",
99
- "600": "#c27d0e",
100
- "700": "#925e0b",
101
- "800": "#613e07",
102
- "900": "#311f04",
103
- "default": "#f39c12",
104
- vibrant: {
105
- "300": "#fce705",
106
- "500": "#fbc306",
107
- "700": "#f8950a"
108
- }
111
+ "700": "#c9780e",
109
112
  },
110
- success: {
111
- "50": "#e8f5f2",
112
- "100": "#d1ece4",
113
- "200": "#a3d8ca",
114
- "300": "#76c5af",
115
- "400": "#48b195",
116
- "500": "#1a9e7a",
117
- "600": "#157e62",
118
- "700": "#105f49",
119
- "800": "#0a3f31",
120
- "900": "#052018",
121
- "default": "#1a9e7a",
122
- vibrant: {
123
- "300": "#07e71f",
124
- "500": "#08e27e",
125
- "700": "#26b656"
126
- }
113
+ },
114
+ error: {
115
+ "50": "#fee6e6",
116
+ "100": "#fbb3b3",
117
+ "200": "#f88080",
118
+ "300": "#f54d4d",
119
+ "400": "#f21a1a",
120
+ "500": "#9f0001",
121
+ "600": "#800001",
122
+ "700": "#600001",
123
+ "800": "#400000",
124
+ "900": "#200000",
125
+ default: "#9f0001",
126
+ vibrant: {
127
+ "300": "#f48a6f",
128
+ "500": "#e74c3c",
129
+ "700": "#c0392b",
127
130
  },
128
- text: {
129
- dark: "#040a0c",
130
- light: "#fcfbf7"
131
+ },
132
+ warning: {
133
+ "50": "#fef5ec",
134
+ "100": "#fdebda",
135
+ "200": "#fad8b3",
136
+ "300": "#f8c48c",
137
+ "400": "#f5b065",
138
+ "500": "#f39c12",
139
+ "600": "#c27d0e",
140
+ "700": "#925e0b",
141
+ "800": "#613e07",
142
+ "900": "#311f04",
143
+ default: "#f39c12",
144
+ vibrant: {
145
+ "300": "#fce705",
146
+ "500": "#fbc306",
147
+ "700": "#f8950a",
131
148
  },
132
- background: {
133
- light: "#fcfbf7",
134
- dark: "#040a0c"
135
- }
136
149
  },
137
- padding: {
138
- xs: "2px",
139
- sm: "4px",
140
- md: "6px",
141
- lg: "10px",
142
- xl: "16px"
150
+ success: {
151
+ "50": "#e8f5f2",
152
+ "100": "#d1ece4",
153
+ "200": "#a3d8ca",
154
+ "300": "#76c5af",
155
+ "400": "#48b195",
156
+ "500": "#1a9e7a",
157
+ "600": "#157e62",
158
+ "700": "#105f49",
159
+ "800": "#0a3f31",
160
+ "900": "#052018",
161
+ default: "#1a9e7a",
162
+ vibrant: {
163
+ "300": "#07e71f",
164
+ "500": "#08e27e",
165
+ "700": "#26b656",
166
+ },
143
167
  },
144
- radius: {
145
- sm: "3px",
146
- md: "5px",
147
- lg: "8px"
168
+ text: {
169
+ dark: "#040a0c",
170
+ light: "#fcfbf7",
171
+ },
172
+ background: {
173
+ light: "#fcfbf7",
174
+ dark: "#040a0c",
148
175
  },
149
- media: {
150
- min: {
151
- xs: "@media (min-width: 320px)",
152
- sm: "@media (min-width: 480px)",
153
- md: "@media (min-width: 620px)",
154
- lg: "@media (min-width: 768px)",
155
- xl: "@media (min-width: 896px)",
156
- "2xl": "@media (min-width: 1024px)",
157
- "3xl": "@media (min-width: 1280px)"
158
- },
159
- max: {
160
- xs: "@media (max-width: 319px)",
161
- sm: "@media (max-width: 479px)",
162
- md: "@media (max-width: 767px)",
163
- lg: "@media (max-width: 895px)",
164
- xl: "@media (max-width: 1023px)",
165
- "2xl": "@media (max-width: 1279px)",
166
- "3xl": "@media (max-width: 1535px)"
167
- }
168
- }
176
+ };
177
+ export const padding = {
178
+ xs: "2px",
179
+ sm: "4px",
180
+ md: "6px",
181
+ lg: "10px",
182
+ xl: "16px",
183
+ };
184
+ export const radius = {
185
+ sm: "3px",
186
+ md: "5px",
187
+ lg: "8px",
169
188
  };
170
189
 
171
- export type Tokens = typeof tokens;
172
-
190
+ export type FontTokens = typeof font;
191
+ export type ColorTokens = typeof color;
192
+ export type PaddingTokens = typeof padding;
193
+ export type RadiusTokens = typeof radius;
194
+ export type MediaTokens = typeof media;
195
+ export type ScreenTokens = typeof breakpoints;
173
196
 
174
- export type FontTokens = typeof tokens.font;
175
- export type ColorTokens = typeof tokens.color;
176
- export type PaddingTokens = typeof tokens.padding;
177
- export type RadiusTokens = typeof tokens.radius;
178
- export type MediaTokens = typeof tokens.media;
197
+ export const tokens = {
198
+ font,
199
+ color,
200
+ media,
201
+ padding,
202
+ radius,
203
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "athameui",
3
3
  "private": false,
4
- "version": "0.0.12",
4
+ "version": "0.0.14",
5
5
  "type": "module",
6
6
  "main": "./dist/athameui.cjs",
7
7
  "module": "./dist/athameui.mjs",