@ingamigo/ui 1.2.2 → 1.2.3

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 (61) hide show
  1. package/dist/index.d.ts +354 -13
  2. package/dist/index.js +911 -8
  3. package/dist/index.js.map +1 -1
  4. package/package.json +4 -2
  5. package/dist/components/button/button.d.ts +0 -8
  6. package/dist/components/button/button.d.ts.map +0 -1
  7. package/dist/components/button/button.js +0 -7
  8. package/dist/components/button/button.js.map +0 -1
  9. package/dist/components/button/button.styles.d.ts +0 -8
  10. package/dist/components/button/button.styles.d.ts.map +0 -1
  11. package/dist/components/button/button.styles.js +0 -117
  12. package/dist/components/button/button.styles.js.map +0 -1
  13. package/dist/components/input/input.d.ts +0 -7
  14. package/dist/components/input/input.d.ts.map +0 -1
  15. package/dist/components/input/input.js +0 -7
  16. package/dist/components/input/input.js.map +0 -1
  17. package/dist/components/input/input.styles.d.ts +0 -9
  18. package/dist/components/input/input.styles.d.ts.map +0 -1
  19. package/dist/components/input/input.styles.js +0 -83
  20. package/dist/components/input/input.styles.js.map +0 -1
  21. package/dist/components/logo/logo.d.ts +0 -9
  22. package/dist/components/logo/logo.d.ts.map +0 -1
  23. package/dist/components/logo/logo.js +0 -77
  24. package/dist/components/logo/logo.js.map +0 -1
  25. package/dist/components/logo/logo.styles.d.ts +0 -56
  26. package/dist/components/logo/logo.styles.d.ts.map +0 -1
  27. package/dist/components/logo/logo.styles.js +0 -127
  28. package/dist/components/logo/logo.styles.js.map +0 -1
  29. package/dist/components/segmented-control/segmented-control.d.ts +0 -16
  30. package/dist/components/segmented-control/segmented-control.d.ts.map +0 -1
  31. package/dist/components/segmented-control/segmented-control.js +0 -50
  32. package/dist/components/segmented-control/segmented-control.js.map +0 -1
  33. package/dist/components/segmented-control/segmented-control.stories .d.ts +0 -25
  34. package/dist/components/segmented-control/segmented-control.stories .d.ts.map +0 -1
  35. package/dist/components/segmented-control/segmented-control.stories .js +0 -91
  36. package/dist/components/segmented-control/segmented-control.stories .js.map +0 -1
  37. package/dist/components/segmented-control/segmented-control.styles.d.ts +0 -11
  38. package/dist/components/segmented-control/segmented-control.styles.d.ts.map +0 -1
  39. package/dist/components/segmented-control/segmented-control.styles.js +0 -83
  40. package/dist/components/segmented-control/segmented-control.styles.js.map +0 -1
  41. package/dist/components/typography/typography.d.ts +0 -9
  42. package/dist/components/typography/typography.d.ts.map +0 -1
  43. package/dist/components/typography/typography.js +0 -17
  44. package/dist/components/typography/typography.js.map +0 -1
  45. package/dist/components/typography/typography.styles.d.ts +0 -5
  46. package/dist/components/typography/typography.styles.d.ts.map +0 -1
  47. package/dist/components/typography/typography.styles.js +0 -63
  48. package/dist/components/typography/typography.styles.js.map +0 -1
  49. package/dist/index.d.ts.map +0 -1
  50. package/dist/theme/ThemeProvider.d.ts +0 -6
  51. package/dist/theme/ThemeProvider.d.ts.map +0 -1
  52. package/dist/theme/ThemeProvider.js +0 -8
  53. package/dist/theme/ThemeProvider.js.map +0 -1
  54. package/dist/theme/index.d.ts +0 -4
  55. package/dist/theme/index.d.ts.map +0 -1
  56. package/dist/theme/index.js +0 -3
  57. package/dist/theme/index.js.map +0 -1
  58. package/dist/theme/theme.d.ts +0 -458
  59. package/dist/theme/theme.d.ts.map +0 -1
  60. package/dist/theme/theme.js +0 -210
  61. package/dist/theme/theme.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,13 +1,354 @@
1
- export { ThemeProvider } from "./theme";
2
- export { theme } from "./theme";
3
- export type { IngAmigoTheme } from "./theme";
4
- export { default as Button } from "./components/button/button";
5
- export { default as Input } from "./components/input/input";
6
- export { default as Typography } from "./components/typography/typography";
7
- export { default as SegmentedControl } from "./components/segmented-control/segmented-control";
8
- export { default as Logo } from "./components/logo/logo";
9
- export type { ButtonProps } from "./components/button/button";
10
- export type { InputProps } from "./components/input/input";
11
- export type { TypographyProps, TypographyVariant, } from "./components/typography/typography";
12
- export type { SegmentedControlOption, SegmentedControlProps, } from "./components/segmented-control/segmented-control";
13
- //# sourceMappingURL=index.d.ts.map
1
+ import * as react from 'react';
2
+ import { ButtonHTMLAttributes, InputHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
3
+
4
+ interface ThemeProviderProps {
5
+ children: React.ReactNode;
6
+ }
7
+ declare function ThemeProvider({ children, }: ThemeProviderProps): react.JSX.Element;
8
+
9
+ declare const lightTheme: {
10
+ readonly background: {
11
+ readonly primary: "#f5f5f5";
12
+ readonly secondary: "#ffffff";
13
+ };
14
+ readonly surface: {
15
+ readonly primary: "#ffffff";
16
+ readonly secondary: "#f5f5f5";
17
+ readonly tertiary: "#e9e9ea";
18
+ };
19
+ readonly text: {
20
+ readonly primary: "#141414";
21
+ readonly secondary: "#5f6066";
22
+ readonly tertiary: "#7b7b82";
23
+ readonly disabled: "#97979d";
24
+ readonly inverse: "#ffffff";
25
+ };
26
+ readonly border: {
27
+ readonly default: "#d5d5d7";
28
+ readonly strong: "#b9b9bd";
29
+ readonly focus: "#4db288";
30
+ };
31
+ readonly action: {
32
+ readonly primary: "#4db288";
33
+ readonly primaryHover: "#3d9873";
34
+ };
35
+ readonly status: {
36
+ readonly success: "#4db288";
37
+ readonly warning: "#e7b94c";
38
+ readonly danger: "#cc5c6f";
39
+ };
40
+ readonly semanticTypography: {
41
+ readonly fontSize: {
42
+ readonly body: "16px";
43
+ readonly bodySm: "14px";
44
+ readonly bodyLg: "18px";
45
+ readonly label: "14px";
46
+ readonly heading1: "36px";
47
+ readonly heading2: "32px";
48
+ readonly heading3: "24px";
49
+ };
50
+ readonly fontWeight: {
51
+ readonly heading: 700;
52
+ readonly body: 400;
53
+ readonly label: 500;
54
+ };
55
+ };
56
+ readonly radiusSemantic: {
57
+ readonly control: "16px";
58
+ readonly card: "24px";
59
+ readonly container: "24px";
60
+ };
61
+ readonly elevation: {
62
+ readonly surface: "0 2px 8px rgb(0 0 0 / 18%)";
63
+ readonly floating: "0 6px 16px rgb(0 0 0 / 24%)";
64
+ readonly overlay: "0 12px 32px rgb(0 0 0 / 30%)";
65
+ };
66
+ readonly motionSemantic: {
67
+ readonly interaction: "200ms";
68
+ readonly transition: "ease";
69
+ };
70
+ readonly colors: {
71
+ readonly white: "#ffffff";
72
+ readonly black: "#000000";
73
+ readonly neutral: {
74
+ readonly 50: "#f5f5f5";
75
+ readonly 100: "#e9e9ea";
76
+ readonly 200: "#d5d5d7";
77
+ readonly 300: "#b9b9bd";
78
+ readonly 400: "#97979d";
79
+ readonly 500: "#7b7b82";
80
+ readonly 600: "#5f6066";
81
+ readonly 700: "#45464b";
82
+ readonly 800: "#2e3035";
83
+ readonly 900: "#1d1e20";
84
+ readonly 950: "#141414";
85
+ };
86
+ readonly brand: {
87
+ readonly 400: "#63c69d";
88
+ readonly 500: "#4db288";
89
+ readonly 600: "#3d9873";
90
+ };
91
+ readonly success: "#4db288";
92
+ readonly warning: "#e7b94c";
93
+ readonly danger: "#cc5c6f";
94
+ };
95
+ readonly spacing: {
96
+ readonly 1: "4px";
97
+ readonly 2: "8px";
98
+ readonly 3: "12px";
99
+ readonly 4: "16px";
100
+ readonly 5: "20px";
101
+ readonly 6: "24px";
102
+ readonly 7: "28px";
103
+ readonly 8: "32px";
104
+ readonly 10: "40px";
105
+ readonly 12: "48px";
106
+ readonly 16: "64px";
107
+ readonly 20: "80px";
108
+ };
109
+ readonly radius: {
110
+ readonly none: "0px";
111
+ readonly xs: "8px";
112
+ readonly sm: "12px";
113
+ readonly md: "16px";
114
+ readonly lg: "20px";
115
+ readonly xl: "24px";
116
+ readonly "2xl": "28px";
117
+ readonly full: "9999px";
118
+ };
119
+ readonly typography: {
120
+ readonly fontFamily: "\n Inter,\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n \"Segoe UI\",\n Roboto,\n Helvetica,\n Arial,\n sans-serif\n ";
121
+ readonly fontSize: {
122
+ readonly xs: "12px";
123
+ readonly sm: "14px";
124
+ readonly md: "16px";
125
+ readonly lg: "18px";
126
+ readonly xl: "20px";
127
+ readonly "2xl": "24px";
128
+ readonly "3xl": "32px";
129
+ readonly "4xl": "36px";
130
+ readonly "5xl": "40px";
131
+ };
132
+ readonly fontWeight: {
133
+ readonly regular: 400;
134
+ readonly medium: 500;
135
+ readonly semibold: 600;
136
+ readonly bold: 700;
137
+ };
138
+ readonly lineHeight: {
139
+ readonly tight: 1.15;
140
+ readonly normal: 1.4;
141
+ readonly relaxed: 1.6;
142
+ };
143
+ };
144
+ readonly shadows: {
145
+ readonly sm: "0 2px 8px rgb(0 0 0 / 18%)";
146
+ readonly md: "0 6px 16px rgb(0 0 0 / 24%)";
147
+ readonly lg: "0 12px 32px rgb(0 0 0 / 30%)";
148
+ readonly xl: "0 20px 48px rgb(0 0 0 / 36%)";
149
+ };
150
+ readonly motion: {
151
+ readonly duration: {
152
+ readonly fast: "150ms";
153
+ readonly normal: "200ms";
154
+ readonly slow: "300ms";
155
+ };
156
+ readonly ease: {
157
+ readonly standard: "ease";
158
+ };
159
+ };
160
+ };
161
+ declare const theme: {
162
+ readonly background: {
163
+ readonly primary: "#f5f5f5";
164
+ readonly secondary: "#ffffff";
165
+ };
166
+ readonly surface: {
167
+ readonly primary: "#ffffff";
168
+ readonly secondary: "#f5f5f5";
169
+ readonly tertiary: "#e9e9ea";
170
+ };
171
+ readonly text: {
172
+ readonly primary: "#141414";
173
+ readonly secondary: "#5f6066";
174
+ readonly tertiary: "#7b7b82";
175
+ readonly disabled: "#97979d";
176
+ readonly inverse: "#ffffff";
177
+ };
178
+ readonly border: {
179
+ readonly default: "#d5d5d7";
180
+ readonly strong: "#b9b9bd";
181
+ readonly focus: "#4db288";
182
+ };
183
+ readonly action: {
184
+ readonly primary: "#4db288";
185
+ readonly primaryHover: "#3d9873";
186
+ };
187
+ readonly status: {
188
+ readonly success: "#4db288";
189
+ readonly warning: "#e7b94c";
190
+ readonly danger: "#cc5c6f";
191
+ };
192
+ readonly semanticTypography: {
193
+ readonly fontSize: {
194
+ readonly body: "16px";
195
+ readonly bodySm: "14px";
196
+ readonly bodyLg: "18px";
197
+ readonly label: "14px";
198
+ readonly heading1: "36px";
199
+ readonly heading2: "32px";
200
+ readonly heading3: "24px";
201
+ };
202
+ readonly fontWeight: {
203
+ readonly heading: 700;
204
+ readonly body: 400;
205
+ readonly label: 500;
206
+ };
207
+ };
208
+ readonly radiusSemantic: {
209
+ readonly control: "16px";
210
+ readonly card: "24px";
211
+ readonly container: "24px";
212
+ };
213
+ readonly elevation: {
214
+ readonly surface: "0 2px 8px rgb(0 0 0 / 18%)";
215
+ readonly floating: "0 6px 16px rgb(0 0 0 / 24%)";
216
+ readonly overlay: "0 12px 32px rgb(0 0 0 / 30%)";
217
+ };
218
+ readonly motionSemantic: {
219
+ readonly interaction: "200ms";
220
+ readonly transition: "ease";
221
+ };
222
+ readonly colors: {
223
+ readonly white: "#ffffff";
224
+ readonly black: "#000000";
225
+ readonly neutral: {
226
+ readonly 50: "#f5f5f5";
227
+ readonly 100: "#e9e9ea";
228
+ readonly 200: "#d5d5d7";
229
+ readonly 300: "#b9b9bd";
230
+ readonly 400: "#97979d";
231
+ readonly 500: "#7b7b82";
232
+ readonly 600: "#5f6066";
233
+ readonly 700: "#45464b";
234
+ readonly 800: "#2e3035";
235
+ readonly 900: "#1d1e20";
236
+ readonly 950: "#141414";
237
+ };
238
+ readonly brand: {
239
+ readonly 400: "#63c69d";
240
+ readonly 500: "#4db288";
241
+ readonly 600: "#3d9873";
242
+ };
243
+ readonly success: "#4db288";
244
+ readonly warning: "#e7b94c";
245
+ readonly danger: "#cc5c6f";
246
+ };
247
+ readonly spacing: {
248
+ readonly 1: "4px";
249
+ readonly 2: "8px";
250
+ readonly 3: "12px";
251
+ readonly 4: "16px";
252
+ readonly 5: "20px";
253
+ readonly 6: "24px";
254
+ readonly 7: "28px";
255
+ readonly 8: "32px";
256
+ readonly 10: "40px";
257
+ readonly 12: "48px";
258
+ readonly 16: "64px";
259
+ readonly 20: "80px";
260
+ };
261
+ readonly radius: {
262
+ readonly none: "0px";
263
+ readonly xs: "8px";
264
+ readonly sm: "12px";
265
+ readonly md: "16px";
266
+ readonly lg: "20px";
267
+ readonly xl: "24px";
268
+ readonly "2xl": "28px";
269
+ readonly full: "9999px";
270
+ };
271
+ readonly typography: {
272
+ readonly fontFamily: "\n Inter,\n system-ui,\n -apple-system,\n BlinkMacSystemFont,\n \"Segoe UI\",\n Roboto,\n Helvetica,\n Arial,\n sans-serif\n ";
273
+ readonly fontSize: {
274
+ readonly xs: "12px";
275
+ readonly sm: "14px";
276
+ readonly md: "16px";
277
+ readonly lg: "18px";
278
+ readonly xl: "20px";
279
+ readonly "2xl": "24px";
280
+ readonly "3xl": "32px";
281
+ readonly "4xl": "36px";
282
+ readonly "5xl": "40px";
283
+ };
284
+ readonly fontWeight: {
285
+ readonly regular: 400;
286
+ readonly medium: 500;
287
+ readonly semibold: 600;
288
+ readonly bold: 700;
289
+ };
290
+ readonly lineHeight: {
291
+ readonly tight: 1.15;
292
+ readonly normal: 1.4;
293
+ readonly relaxed: 1.6;
294
+ };
295
+ };
296
+ readonly shadows: {
297
+ readonly sm: "0 2px 8px rgb(0 0 0 / 18%)";
298
+ readonly md: "0 6px 16px rgb(0 0 0 / 24%)";
299
+ readonly lg: "0 12px 32px rgb(0 0 0 / 30%)";
300
+ readonly xl: "0 20px 48px rgb(0 0 0 / 36%)";
301
+ };
302
+ readonly motion: {
303
+ readonly duration: {
304
+ readonly fast: "150ms";
305
+ readonly normal: "200ms";
306
+ readonly slow: "300ms";
307
+ };
308
+ readonly ease: {
309
+ readonly standard: "ease";
310
+ };
311
+ };
312
+ };
313
+ type IngAmigoTheme = typeof lightTheme;
314
+
315
+ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
316
+ variant?: "primary" | "secondary" | "ghost";
317
+ size?: "small" | "medium" | "large" | "icon";
318
+ }
319
+ declare const Button: ({ variant, size, children, ...props }: ButtonProps) => react.JSX.Element;
320
+
321
+ interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
322
+ inputSize?: "small" | "medium" | "large";
323
+ }
324
+ declare const Input: ({ inputSize, ...props }: InputProps) => react.JSX.Element;
325
+
326
+ type TypographyVariant = "heading-1" | "heading-2" | "heading-3" | "body-lg" | "body" | "body-sm" | "label";
327
+ interface TypographyProps extends HTMLAttributes<HTMLElement> {
328
+ variant?: TypographyVariant;
329
+ children: ReactNode;
330
+ }
331
+ declare const Typography: ({ variant, children, ...props }: TypographyProps) => react.JSX.Element;
332
+
333
+ interface SegmentedControlOption<T extends string> {
334
+ value: T;
335
+ label: ReactNode;
336
+ disabled?: boolean;
337
+ }
338
+ interface SegmentedControlProps<T extends string> {
339
+ options: SegmentedControlOption<T>[];
340
+ value: T;
341
+ onChange: (value: T) => void;
342
+ size?: "small" | "medium" | "large";
343
+ disabled?: boolean;
344
+ }
345
+ declare const SegmentedControl: <T extends string>({ options, value, onChange, size, disabled, }: SegmentedControlProps<T>) => react.JSX.Element;
346
+
347
+ interface LogoProps extends HTMLAttributes<HTMLDivElement> {
348
+ service?: string;
349
+ animate?: boolean;
350
+ size?: "small" | "medium" | "large";
351
+ }
352
+ declare const Logo: ({ service, animate, size, ...props }: LogoProps) => react.JSX.Element;
353
+
354
+ export { Button, type ButtonProps, type IngAmigoTheme, Input, type InputProps, Logo, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, ThemeProvider, Typography, type TypographyProps, type TypographyVariant, theme };