beyond-system 0.1.2 → 0.1.4

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 (161) hide show
  1. package/README.md +38 -0
  2. package/dist/colors/base-colors.d.ts +50 -0
  3. package/dist/colors/base-colors.js +54 -0
  4. package/dist/colors/base-colors.js.map +1 -0
  5. package/dist/colors/gradients.d.ts +7 -0
  6. package/dist/colors/gradients.js +8 -0
  7. package/dist/colors/gradients.js.map +1 -0
  8. package/dist/colors/index.d.ts +3 -0
  9. package/dist/colors/index.js +4 -0
  10. package/dist/colors/index.js.map +1 -0
  11. package/dist/colors/shadows.d.ts +7 -0
  12. package/dist/colors/shadows.js +8 -0
  13. package/dist/colors/shadows.js.map +1 -0
  14. package/dist/components/react/Checkbox/Checkbox.d.ts +11 -0
  15. package/dist/components/react/Checkbox/Checkbox.js +15 -0
  16. package/dist/components/react/Checkbox/Checkbox.js.map +1 -0
  17. package/dist/components/react/Checkbox/Checkbox.stories.d.ts +7 -0
  18. package/dist/components/react/Checkbox/Checkbox.stories.js +54 -0
  19. package/dist/components/react/Checkbox/Checkbox.stories.js.map +1 -0
  20. package/dist/components/react/Checkbox/Checkbox.styles.d.ts +19 -0
  21. package/dist/components/react/Checkbox/Checkbox.styles.js +60 -0
  22. package/dist/components/react/Checkbox/Checkbox.styles.js.map +1 -0
  23. package/dist/components/react/Checkbox/Checkbox.variants.d.ts +25 -0
  24. package/dist/components/react/Checkbox/Checkbox.variants.js +27 -0
  25. package/dist/components/react/Checkbox/Checkbox.variants.js.map +1 -0
  26. package/dist/components/react/Checkbox/index.d.ts +1 -0
  27. package/dist/components/react/Checkbox/index.js +2 -0
  28. package/dist/components/react/Checkbox/index.js.map +1 -0
  29. package/dist/components/react/DefaultButton/DefaultButton.d.ts +12 -0
  30. package/dist/components/react/DefaultButton/DefaultButton.js +21 -0
  31. package/dist/components/react/DefaultButton/DefaultButton.js.map +1 -0
  32. package/dist/components/react/DefaultButton/DefaultButton.stories.d.ts +7 -0
  33. package/dist/components/react/DefaultButton/DefaultButton.stories.js +85 -0
  34. package/dist/components/react/DefaultButton/DefaultButton.stories.js.map +1 -0
  35. package/dist/components/react/DefaultButton/DefaultButton.styles.d.ts +15 -0
  36. package/dist/components/react/DefaultButton/DefaultButton.styles.js +92 -0
  37. package/dist/components/react/DefaultButton/DefaultButton.styles.js.map +1 -0
  38. package/dist/components/react/DefaultButton/DefaultButton.variants.d.ts +45 -0
  39. package/dist/components/react/DefaultButton/DefaultButton.variants.js +48 -0
  40. package/dist/components/react/DefaultButton/DefaultButton.variants.js.map +1 -0
  41. package/dist/components/react/DefaultButton/index.d.ts +1 -0
  42. package/dist/components/react/DefaultButton/index.js +2 -0
  43. package/dist/components/react/DefaultButton/index.js.map +1 -0
  44. package/dist/components/react/IconButton/IconButton.d.ts +10 -0
  45. package/dist/components/react/IconButton/IconButton.js +18 -0
  46. package/dist/components/react/IconButton/IconButton.js.map +1 -0
  47. package/dist/components/react/IconButton/IconButton.stories.d.ts +7 -0
  48. package/dist/components/react/IconButton/IconButton.stories.js +63 -0
  49. package/dist/components/react/IconButton/IconButton.stories.js.map +1 -0
  50. package/dist/components/react/IconButton/IconButton.styles.d.ts +13 -0
  51. package/dist/components/react/IconButton/IconButton.styles.js +86 -0
  52. package/dist/components/react/IconButton/IconButton.styles.js.map +1 -0
  53. package/dist/components/react/IconButton/IconButton.variants.d.ts +36 -0
  54. package/dist/components/react/IconButton/IconButton.variants.js +39 -0
  55. package/dist/components/react/IconButton/IconButton.variants.js.map +1 -0
  56. package/dist/components/react/IconButton/index.d.ts +1 -0
  57. package/dist/components/react/IconButton/index.js +2 -0
  58. package/dist/components/react/IconButton/index.js.map +1 -0
  59. package/dist/components/react/Loader/Loader.d.ts +11 -0
  60. package/dist/components/react/Loader/Loader.js +33 -0
  61. package/dist/components/react/Loader/Loader.js.map +1 -0
  62. package/dist/components/react/Loader/Loader.stories.d.ts +7 -0
  63. package/dist/components/react/Loader/Loader.stories.js +31 -0
  64. package/dist/components/react/Loader/Loader.stories.js.map +1 -0
  65. package/dist/components/react/Loader/index.d.ts +3 -0
  66. package/dist/components/react/Loader/index.js +4 -0
  67. package/dist/components/react/Loader/index.js.map +1 -0
  68. package/dist/components/react/OutlineButton/OutlineButton.d.ts +12 -0
  69. package/dist/components/react/OutlineButton/OutlineButton.js +21 -0
  70. package/dist/components/react/OutlineButton/OutlineButton.js.map +1 -0
  71. package/dist/components/react/OutlineButton/OutlineButton.stories.d.ts +7 -0
  72. package/dist/components/react/OutlineButton/OutlineButton.stories.js +85 -0
  73. package/dist/components/react/OutlineButton/OutlineButton.stories.js.map +1 -0
  74. package/dist/components/react/OutlineButton/OutlineButton.styles.d.ts +12 -0
  75. package/dist/components/react/OutlineButton/OutlineButton.styles.js +86 -0
  76. package/dist/components/react/OutlineButton/OutlineButton.styles.js.map +1 -0
  77. package/dist/components/react/OutlineButton/OutlineButton.variants.d.ts +36 -0
  78. package/dist/components/react/OutlineButton/OutlineButton.variants.js +39 -0
  79. package/dist/components/react/OutlineButton/OutlineButton.variants.js.map +1 -0
  80. package/dist/components/react/OutlineButton/index.d.ts +1 -0
  81. package/dist/components/react/OutlineButton/index.js +2 -0
  82. package/dist/components/react/OutlineButton/index.js.map +1 -0
  83. package/dist/components/react/RadioInput/RadioInput.d.ts +7 -0
  84. package/dist/components/react/RadioInput/RadioInput.js +12 -0
  85. package/dist/components/react/RadioInput/RadioInput.js.map +1 -0
  86. package/dist/components/react/RadioInput/RadioInput.stories.d.ts +7 -0
  87. package/dist/components/react/RadioInput/RadioInput.stories.js +48 -0
  88. package/dist/components/react/RadioInput/RadioInput.stories.js.map +1 -0
  89. package/dist/components/react/RadioInput/RadioInput.styles.d.ts +14 -0
  90. package/dist/components/react/RadioInput/RadioInput.styles.js +52 -0
  91. package/dist/components/react/RadioInput/RadioInput.styles.js.map +1 -0
  92. package/dist/components/react/RadioInput/RadioInput.variants.d.ts +21 -0
  93. package/dist/components/react/RadioInput/RadioInput.variants.js +23 -0
  94. package/dist/components/react/RadioInput/RadioInput.variants.js.map +1 -0
  95. package/dist/components/react/RadioInput/index.d.ts +1 -0
  96. package/dist/components/react/RadioInput/index.js +2 -0
  97. package/dist/components/react/RadioInput/index.js.map +1 -0
  98. package/dist/components/react/Switch/Switch.d.ts +10 -0
  99. package/dist/components/react/Switch/Switch.js +13 -0
  100. package/dist/components/react/Switch/Switch.js.map +1 -0
  101. package/dist/components/react/Switch/Switch.stories.d.ts +7 -0
  102. package/dist/components/react/Switch/Switch.stories.js +48 -0
  103. package/dist/components/react/Switch/Switch.stories.js.map +1 -0
  104. package/dist/components/react/Switch/Switch.styles.d.ts +13 -0
  105. package/dist/components/react/Switch/Switch.styles.js +47 -0
  106. package/dist/components/react/Switch/Switch.styles.js.map +1 -0
  107. package/dist/components/react/Switch/Switch.variants.d.ts +17 -0
  108. package/dist/components/react/Switch/Switch.variants.js +19 -0
  109. package/dist/components/react/Switch/Switch.variants.js.map +1 -0
  110. package/dist/components/react/Switch/index.d.ts +1 -0
  111. package/dist/components/react/Switch/index.js +2 -0
  112. package/dist/components/react/Switch/index.js.map +1 -0
  113. package/dist/components/react/TransparentButton/TransparentButton.d.ts +7 -0
  114. package/dist/components/react/TransparentButton/TransparentButton.js +13 -0
  115. package/dist/components/react/TransparentButton/TransparentButton.js.map +1 -0
  116. package/dist/components/react/TransparentButton/TransparentButton.stories.d.ts +7 -0
  117. package/dist/components/react/TransparentButton/TransparentButton.stories.js +48 -0
  118. package/dist/components/react/TransparentButton/TransparentButton.stories.js.map +1 -0
  119. package/dist/components/react/TransparentButton/TransparentButton.styles.d.ts +10 -0
  120. package/dist/components/react/TransparentButton/TransparentButton.styles.js +65 -0
  121. package/dist/components/react/TransparentButton/TransparentButton.styles.js.map +1 -0
  122. package/dist/components/react/TransparentButton/TransparentButton.variants.d.ts +32 -0
  123. package/dist/components/react/TransparentButton/TransparentButton.variants.js +35 -0
  124. package/dist/components/react/TransparentButton/TransparentButton.variants.js.map +1 -0
  125. package/dist/components/react/TransparentButton/index.d.ts +1 -0
  126. package/dist/components/react/TransparentButton/index.js +2 -0
  127. package/dist/components/react/TransparentButton/index.js.map +1 -0
  128. package/dist/components/react/index.d.ts +8 -0
  129. package/dist/components/react/index.js +9 -0
  130. package/dist/components/react/index.js.map +1 -0
  131. package/dist/index.d.ts +3 -0
  132. package/dist/index.js +4 -0
  133. package/dist/index.js.map +1 -0
  134. package/dist/stories/base-colors/base-colors.stories.d.ts +5 -0
  135. package/dist/stories/base-colors/base-colors.stories.js +50 -0
  136. package/dist/stories/base-colors/base-colors.stories.js.map +1 -0
  137. package/dist/stories/base-colors/base-colors.stories.styles.d.ts +2 -0
  138. package/dist/stories/base-colors/base-colors.stories.styles.js +64 -0
  139. package/dist/stories/base-colors/base-colors.stories.styles.js.map +1 -0
  140. package/dist/stories/gradients/gradients.stories.d.ts +5 -0
  141. package/dist/stories/gradients/gradients.stories.js +22 -0
  142. package/dist/stories/gradients/gradients.stories.js.map +1 -0
  143. package/dist/stories/gradients/gradients.stories.styles.d.ts +2 -0
  144. package/dist/stories/gradients/gradients.stories.styles.js +59 -0
  145. package/dist/stories/gradients/gradients.stories.styles.js.map +1 -0
  146. package/dist/stories/shadows/shadows.stories.d.ts +5 -0
  147. package/dist/stories/shadows/shadows.stories.js +20 -0
  148. package/dist/stories/shadows/shadows.stories.js.map +1 -0
  149. package/dist/stories/shadows/shadows.stories.styles.d.ts +2 -0
  150. package/dist/stories/shadows/shadows.stories.styles.js +58 -0
  151. package/dist/stories/shadows/shadows.stories.styles.js.map +1 -0
  152. package/dist/web/border.d.ts +12 -0
  153. package/dist/web/border.js +13 -0
  154. package/dist/web/border.js.map +1 -0
  155. package/dist/web/font.d.ts +34 -0
  156. package/dist/web/font.js +35 -0
  157. package/dist/web/font.js.map +1 -0
  158. package/dist/web/index.d.ts +2 -0
  159. package/dist/web/index.js +3 -0
  160. package/dist/web/index.js.map +1 -0
  161. package/package.json +4 -4
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2
+
3
+ ## Getting Started
4
+
5
+ First, run the development server:
6
+
7
+ ```bash
8
+ npm run dev
9
+ # or
10
+ yarn dev
11
+ # or
12
+ pnpm dev
13
+ ```
14
+
15
+ Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
16
+
17
+ You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
18
+
19
+ [API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
20
+
21
+ The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
22
+
23
+ This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
24
+
25
+ ## Learn More
26
+
27
+ To learn more about Next.js, take a look at the following resources:
28
+
29
+ - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
30
+ - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
31
+
32
+ You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
33
+
34
+ ## Deploy on Vercel
35
+
36
+ The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
37
+
38
+ Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
@@ -0,0 +1,50 @@
1
+ export declare const COLORS: {
2
+ PRIMARY: string;
3
+ SECONDARY: string;
4
+ TEXT_PRIMARY: string;
5
+ TEXT_SECONDARY: string;
6
+ TEXT_ACCENT: string;
7
+ GROWTH_DARK: string;
8
+ GROWTH_MID: string;
9
+ GROWTH_LIGHT: string;
10
+ GROWTH_LIGHTER: string;
11
+ NEUTRAL_LOW: string;
12
+ NEUTRAL_DARKER: string;
13
+ NEUTRAL_DARK: string;
14
+ NEUTRAL_MID: string;
15
+ NEUTRAL_LIGHT: string;
16
+ NEUTRAL_LIGHTER: string;
17
+ NEUTRAL_HIGH: string;
18
+ INFO_DARK: string;
19
+ INFO_MID: string;
20
+ ALERT_DARK: string;
21
+ ALERT_MID: string;
22
+ ATTENTION_DARK: string;
23
+ ATTENTION_MID: string;
24
+ NICE_DARK: string;
25
+ NICE_MID: string;
26
+ BETTER_DARK: string;
27
+ BETTER_MID: string;
28
+ DASHBOARD: {
29
+ CLOUDY_LIGHT: string;
30
+ CLOUDY_MID: string;
31
+ GRASS_LIGHT: string;
32
+ GRASS_MID: string;
33
+ STRAWBERRY_LIGHT: string;
34
+ STRAWBERRY_MID: string;
35
+ EVENING_LIGHT: string;
36
+ EVENING_MID: string;
37
+ BUBBLEGUM_LIGHT: string;
38
+ BUBBLEGUM_MID: string;
39
+ BLUEY_LIGHT: string;
40
+ BLUEY_MID: string;
41
+ SUNBEAM_LIGHT: string;
42
+ SUNBEAM_MID: string;
43
+ POOLPARTY_LIGHT: string;
44
+ POOLPARTY_MID: string;
45
+ LAVENDER_LIGHT: string;
46
+ LAVENDER_MID: string;
47
+ PUMPKIN_LIGHT: string;
48
+ PUMPKIN_MID: string;
49
+ };
50
+ };
@@ -0,0 +1,54 @@
1
+ const BASE_COLORS = {
2
+ GROWTH_DARK: '#EC6E0E',
3
+ GROWTH_MID: '#FF7D12',
4
+ GROWTH_LIGHT: '#FF9A47',
5
+ GROWTH_LIGHTER: '#FCE3CF',
6
+ NEUTRAL_LOW: '#333333',
7
+ NEUTRAL_DARKER: '#454545',
8
+ NEUTRAL_DARK: '#8E96A2',
9
+ NEUTRAL_MID: '#BFC4C9',
10
+ NEUTRAL_LIGHT: '#E2E5EA',
11
+ NEUTRAL_LIGHTER: '#F7F9FC',
12
+ NEUTRAL_HIGH: '#FFFFFF',
13
+ INFO_DARK: '#2E65E5',
14
+ INFO_MID: '#5F8EFF',
15
+ ALERT_DARK: '#cc0000',
16
+ ALERT_MID: '#FC0303',
17
+ ATTENTION_DARK: '#EBB400',
18
+ ATTENTION_MID: '#FFD600',
19
+ NICE_DARK: '#2BB048',
20
+ NICE_MID: '#40D05F',
21
+ BETTER_DARK: '#0D6320',
22
+ BETTER_MID: '#12872C',
23
+ DASHBOARD: {
24
+ CLOUDY_LIGHT: '#B4DAFB',
25
+ CLOUDY_MID: '#70B2EB',
26
+ GRASS_LIGHT: '#64DEA2',
27
+ GRASS_MID: '#2E9E67',
28
+ STRAWBERRY_LIGHT: '#FF6073',
29
+ STRAWBERRY_MID: '#F32039',
30
+ EVENING_LIGHT: '#808BB5',
31
+ EVENING_MID: '#586184',
32
+ BUBBLEGUM_LIGHT: '#F39EE9',
33
+ BUBBLEGUM_MID: '#E16BD3',
34
+ BLUEY_LIGHT: '#88A6FF',
35
+ BLUEY_MID: '#4F6DC4',
36
+ SUNBEAM_LIGHT: '#FBE15D',
37
+ SUNBEAM_MID: '#FFBA42',
38
+ POOLPARTY_LIGHT: '#76CDD6',
39
+ POOLPARTY_MID: '#35A5B1',
40
+ LAVENDER_LIGHT: '#AB9DF7',
41
+ LAVENDER_MID: '#8367E9',
42
+ PUMPKIN_LIGHT: '#FFB172',
43
+ PUMPKIN_MID: '#FF841F',
44
+ },
45
+ };
46
+ const COLOR_ALIASES = {
47
+ PRIMARY: BASE_COLORS.GROWTH_MID,
48
+ SECONDARY: BASE_COLORS.NEUTRAL_DARKER,
49
+ TEXT_PRIMARY: BASE_COLORS.NEUTRAL_DARKER,
50
+ TEXT_SECONDARY: BASE_COLORS.NEUTRAL_DARK,
51
+ TEXT_ACCENT: BASE_COLORS.GROWTH_MID,
52
+ };
53
+ export const COLORS = Object.assign(Object.assign({}, BASE_COLORS), COLOR_ALIASES);
54
+ //# sourceMappingURL=base-colors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-colors.js","sourceRoot":"","sources":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;IACxC,cAAc,EAAE,WAAW,CAAC,YAAY;IACxC,WAAW,EAAE,WAAW,CAAC,UAAU;CACpC,CAAA;AAED,MAAM,CAAC,MAAM,MAAM,mCACd,WAAW,GACX,aAAa,CACjB,CAAA"}
@@ -0,0 +1,7 @@
1
+ export declare const GRADIENTS: {
2
+ GROWTH_BACKGROUND: string;
3
+ ALERT: string;
4
+ ATTENTION: string;
5
+ NICE: string;
6
+ BETTER: string;
7
+ };
@@ -0,0 +1,8 @@
1
+ export const GRADIENTS = {
2
+ GROWTH_BACKGROUND: 'linear-gradient(212.52deg, #FFFFFF 11.19%, #FDF4ED 66.29%);',
3
+ ALERT: 'linear-gradient(261.76deg, #FC0303 2.02%, #AF0808 98.77%);',
4
+ ATTENTION: 'linear-gradient(261.76deg, #FFB800 2.02%, #EA7306 98.77%);',
5
+ NICE: 'linear-gradient(261.76deg, #40D05F 2.02%, #159130 98.77%);',
6
+ BETTER: 'linear-gradient(261.76deg, #179733 2.02%, #016016 98.77%);',
7
+ };
8
+ //# sourceMappingURL=gradients.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradients.js","sourceRoot":"","sources":["../../src/colors/gradients.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,iBAAiB,EACf,6DAA6D;IAE/D,KAAK,EAAE,4DAA4D;IACnE,SAAS,EAAE,4DAA4D;IACvE,IAAI,EAAE,4DAA4D;IAClE,MAAM,EAAE,4DAA4D;CACrE,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './base-colors';
2
+ export * from './gradients';
3
+ export * from './shadows';
@@ -0,0 +1,4 @@
1
+ export * from './base-colors';
2
+ export * from './gradients';
3
+ export * from './shadows';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/colors/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA"}
@@ -0,0 +1,7 @@
1
+ export declare const SHADOWS: {
2
+ BOXES: string;
3
+ POPUPS: string;
4
+ HOVER: string;
5
+ NAVBAR: string;
6
+ SIDEBAR: string;
7
+ };
@@ -0,0 +1,8 @@
1
+ export const SHADOWS = {
2
+ BOXES: '2px 2px 15px rgba(0, 0, 0, 0.08);',
3
+ POPUPS: '0px 0px 5px rgba(0, 0, 0, 0.2);',
4
+ HOVER: '1px 1px 2px rgba(0, 0, 0, 0.25), 2px 2px 10px rgba(0, 0, 0, 0.15);',
5
+ NAVBAR: '0px 1px 4px rgba(134, 21, 21, 0.15);',
6
+ SIDEBAR: '1px 0px 4px rgba(134, 21, 21, 0.15);',
7
+ };
8
+ //# sourceMappingURL=shadows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadows.js","sourceRoot":"","sources":["../../src/colors/shadows.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,KAAK,EAAE,mCAAmC;IAC1C,MAAM,EAAE,iCAAiC;IAEzC,KAAK,EAAE,oEAAoE;IAE3E,MAAM,EAAE,sCAAsC;IAC9C,OAAO,EAAE,sCAAsC;CAChD,CAAA"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import * as RadixCheckbox from '@radix-ui/react-checkbox';
3
+ import { DEFAULT_CHECKBOX_VARIANTS } from './Checkbox.variants';
4
+ type RootCheckboxProps = React.ComponentProps<typeof RadixCheckbox.Root>;
5
+ type CheckboxProps = {
6
+ variant?: keyof typeof DEFAULT_CHECKBOX_VARIANTS.color;
7
+ size?: keyof typeof DEFAULT_CHECKBOX_VARIANTS.size;
8
+ error?: boolean;
9
+ } & RootCheckboxProps;
10
+ declare const Checkbox: ({ variant, size, error, ...props }: CheckboxProps) => JSX.Element;
11
+ export default Checkbox;
@@ -0,0 +1,15 @@
1
+ import { __rest } from "tslib";
2
+ import React from 'react';
3
+ import { MdOutlineCheck } from 'react-icons/md';
4
+ import { DEFAULT_CHECKBOX_VARIANTS } from './Checkbox.variants';
5
+ import { CheckboxContainer, CheckboxIndicator } from './Checkbox.styles';
6
+ const Checkbox = (_a) => {
7
+ var { variant = 'primary', size = 'MD', error = false } = _a, props = __rest(_a, ["variant", "size", "error"]);
8
+ const colorProps = DEFAULT_CHECKBOX_VARIANTS.color[variant];
9
+ const sizeProps = DEFAULT_CHECKBOX_VARIANTS.size[size];
10
+ return (React.createElement(CheckboxContainer, Object.assign({}, props, colorProps, sizeProps, { error: error }),
11
+ React.createElement(CheckboxIndicator, Object.assign({}, colorProps, sizeProps),
12
+ React.createElement(MdOutlineCheck, null))));
13
+ };
14
+ export default Checkbox;
15
+ //# sourceMappingURL=Checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../../src/components/react/Checkbox/Checkbox.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAG/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AASxE,MAAM,QAAQ,GAAG,CAAC,EAKF,EAAE,EAAE;QALF,EAChB,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,IAAI,EACX,KAAK,GAAG,KAAK,OAEC,EADX,KAAK,cAJQ,4BAKjB,CADS;IAER,MAAM,UAAU,GAAG,yBAAyB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IAC3D,MAAM,SAAS,GAAG,yBAAyB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAEtD,OAAO,CACL,oBAAC,iBAAiB,oBAAK,KAAK,EAAM,UAAU,EAAM,SAAS,IAAE,KAAK,EAAE,KAAK;QACvE,oBAAC,iBAAiB,oBAAK,UAAU,EAAM,SAAS;YAC9C,oBAAC,cAAc,OAAG,CACA,CACF,CACrB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { Meta } from '@storybook/react/types-6-0';
3
+ import CheckboxComponent from './Checkbox';
4
+ type Props = React.ComponentProps<typeof CheckboxComponent>;
5
+ export declare const Checkbox: (props: Props) => JSX.Element;
6
+ declare const _default: Meta;
7
+ export default _default;
@@ -0,0 +1,54 @@
1
+ import React from 'react';
2
+ import CheckboxComponent from './Checkbox';
3
+ import { DEFAULT_CHECKBOX_VARIANTS } from './Checkbox.variants';
4
+ export const Checkbox = (props) => {
5
+ return React.createElement(CheckboxComponent, Object.assign({}, props));
6
+ };
7
+ export default {
8
+ title: 'Inputs/Checkbox',
9
+ parameters: {
10
+ component: Checkbox,
11
+ },
12
+ args: {
13
+ variant: 'primary',
14
+ size: 'MD',
15
+ checked: false,
16
+ disabled: false,
17
+ error: false,
18
+ },
19
+ argTypes: {
20
+ variant: {
21
+ control: {
22
+ type: 'select',
23
+ options: Object.keys(DEFAULT_CHECKBOX_VARIANTS.color),
24
+ },
25
+ },
26
+ size: {
27
+ control: {
28
+ type: 'select',
29
+ options: Object.keys(DEFAULT_CHECKBOX_VARIANTS.size),
30
+ },
31
+ },
32
+ checked: {
33
+ control: {
34
+ type: 'boolean',
35
+ },
36
+ },
37
+ disabled: {
38
+ control: {
39
+ type: 'boolean',
40
+ },
41
+ },
42
+ error: {
43
+ control: {
44
+ type: 'boolean',
45
+ },
46
+ },
47
+ onCheckedChange: {
48
+ control: {
49
+ action: 'changed',
50
+ },
51
+ },
52
+ },
53
+ };
54
+ //# sourceMappingURL=Checkbox.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.stories.js","sourceRoot":"","sources":["../../../../src/components/react/Checkbox/Checkbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,iBAAiB,MAAM,YAAY,CAAA;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;AAI/D,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAY,EAAE,EAAE;IACvC,OAAO,oBAAC,iBAAiB,oBAAK,KAAK,EAAI,CAAA;AACzC,CAAC,CAAA;AAED,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,UAAU,EAAE;QACV,SAAS,EAAE,QAAQ;KACpB;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,KAAK;KACb;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAC;aACtD;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC;aACrD;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE;YACf,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;KACF;CACM,CAAA"}
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import * as RadixCheckbox from '@radix-ui/react-checkbox';
3
+ export type StyledCheckboxProps = {
4
+ indicatorColor: string;
5
+ indicatorHoverColor: string;
6
+ indicatorActiveColor: string;
7
+ boxColor: string;
8
+ boxHoverColor: string;
9
+ boxActiveColor: string;
10
+ boxActiveHoverColor: string;
11
+ borderColor: string;
12
+ borderHoverColor: string;
13
+ borderActiveColor: string;
14
+ borderActiveHoverColor: string;
15
+ error?: boolean;
16
+ width: string;
17
+ };
18
+ export declare const CheckboxContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<RadixCheckbox.CheckboxProps & import("react").RefAttributes<HTMLButtonElement>>, any, StyledCheckboxProps, never>;
19
+ export declare const CheckboxIndicator: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<RadixCheckbox.CheckboxIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>, any, StyledCheckboxProps, never>;
@@ -0,0 +1,60 @@
1
+ import styled from 'styled-components';
2
+ import * as RadixCheckbox from '@radix-ui/react-checkbox';
3
+ import { COLORS } from '@/colors';
4
+ export const CheckboxContainer = styled(RadixCheckbox.Root) `
5
+ all: unset;
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+
10
+ transition: 0.1s ease-in-out;
11
+ width: ${(props) => props.width};
12
+ aspect-ratio: 1/1;
13
+
14
+ background-color: ${(props) => props.boxColor};
15
+ border: 1px solid ${(props) => props.borderColor};
16
+ border-radius: 3px;
17
+
18
+ outline: ${(props) => props.error ? `2px solid ${COLORS.ALERT_MID}` : 'none'};
19
+
20
+ :hover {
21
+ cursor: pointer;
22
+ background-color: ${(props) => props.boxHoverColor};
23
+ border-color: ${(props) => props.borderHoverColor};
24
+ }
25
+
26
+ &[data-state='checked'] {
27
+ background-color: ${(props) => props.boxActiveColor};
28
+ border-color: ${(props) => props.borderActiveColor};
29
+
30
+ :hover {
31
+ background-color: ${(props) => props.boxActiveHoverColor};
32
+ border-color: ${(props) => props.borderActiveHoverColor};
33
+ }
34
+ }
35
+
36
+ :disabled {
37
+ background-color: ${COLORS.NEUTRAL_MID};
38
+ border-color: ${COLORS.NEUTRAL_MID};
39
+
40
+ pointer-events: none;
41
+ }
42
+ `;
43
+ export const CheckboxIndicator = styled(RadixCheckbox.Indicator) `
44
+ display: flex;
45
+ align-items: center;
46
+ justify-content: center;
47
+
48
+ aspect-ratio: 1/1;
49
+
50
+ * {
51
+ font-size: calc(${(props) => props.width} * 0.75);
52
+
53
+ color: ${(props) => props.indicatorColor};
54
+
55
+ &[data-state='checked'] {
56
+ color: ${(props) => props.indicatorActiveColor};
57
+ }
58
+ }
59
+ `;
60
+ //# sourceMappingURL=Checkbox.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.styles.js","sourceRoot":"","sources":["../../../../src/components/react/Checkbox/Checkbox.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAA;AAEzD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAkBjC,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CACrC,aAAa,CAAC,IAAI,CACnB,CAAqB;;;;;;;WAOX,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;;;sBAGX,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ;sBACzB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;;;aAGrC,CAAC,KAAK,EAAE,EAAE,CACnB,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,MAAM;;;;wBAIlC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa;oBAClC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,gBAAgB;;;;wBAI7B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc;oBACnC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,iBAAiB;;;0BAG5B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,mBAAmB;sBACxC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,sBAAsB;;;;;wBAKrC,MAAM,CAAC,WAAW;oBACtB,MAAM,CAAC,WAAW;;;;CAIrC,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CACrC,aAAa,CAAC,SAAS,CACxB,CAAqB;;;;;;;;sBAQA,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;;aAE/B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc;;;eAG7B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,oBAAoB;;;CAGnD,CAAA"}
@@ -0,0 +1,25 @@
1
+ export declare const DEFAULT_CHECKBOX_VARIANTS: {
2
+ color: {
3
+ primary: {
4
+ indicatorColor: string;
5
+ indicatorHoverColor: string;
6
+ indicatorActiveColor: string;
7
+ boxColor: string;
8
+ boxHoverColor: string;
9
+ boxActiveColor: string;
10
+ boxActiveHoverColor: string;
11
+ borderColor: string;
12
+ borderHoverColor: string;
13
+ borderActiveColor: string;
14
+ borderActiveHoverColor: string;
15
+ };
16
+ };
17
+ size: {
18
+ SM: {
19
+ width: string;
20
+ };
21
+ MD: {
22
+ width: string;
23
+ };
24
+ };
25
+ };
@@ -0,0 +1,27 @@
1
+ import { COLORS } from '@/colors';
2
+ export const DEFAULT_CHECKBOX_VARIANTS = {
3
+ color: {
4
+ primary: {
5
+ indicatorColor: COLORS.NEUTRAL_HIGH,
6
+ indicatorHoverColor: COLORS.GROWTH_MID,
7
+ indicatorActiveColor: COLORS.GROWTH_MID,
8
+ boxColor: COLORS.NEUTRAL_HIGH,
9
+ boxHoverColor: COLORS.NEUTRAL_LIGHT,
10
+ boxActiveColor: COLORS.INFO_MID,
11
+ boxActiveHoverColor: COLORS.INFO_DARK,
12
+ borderColor: COLORS.NEUTRAL_DARK,
13
+ borderHoverColor: COLORS.NEUTRAL_DARK,
14
+ borderActiveColor: COLORS.INFO_MID,
15
+ borderActiveHoverColor: COLORS.INFO_DARK,
16
+ },
17
+ },
18
+ size: {
19
+ SM: {
20
+ width: '12px',
21
+ },
22
+ MD: {
23
+ width: '15px',
24
+ },
25
+ },
26
+ };
27
+ //# sourceMappingURL=Checkbox.variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.variants.js","sourceRoot":"","sources":["../../../../src/components/react/Checkbox/Checkbox.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,KAAK,EAAE;QACL,OAAO,EAAE;YACP,cAAc,EAAE,MAAM,CAAC,YAAY;YACnC,mBAAmB,EAAE,MAAM,CAAC,UAAU;YACtC,oBAAoB,EAAE,MAAM,CAAC,UAAU;YACvC,QAAQ,EAAE,MAAM,CAAC,YAAY;YAC7B,aAAa,EAAE,MAAM,CAAC,aAAa;YACnC,cAAc,EAAE,MAAM,CAAC,QAAQ;YAC/B,mBAAmB,EAAE,MAAM,CAAC,SAAS;YACrC,WAAW,EAAE,MAAM,CAAC,YAAY;YAChC,gBAAgB,EAAE,MAAM,CAAC,YAAY;YACrC,iBAAiB,EAAE,MAAM,CAAC,QAAQ;YAClC,sBAAsB,EAAE,MAAM,CAAC,SAAS;SACzC;KACF;IACD,IAAI,EAAE;QACJ,EAAE,EAAE;YACF,KAAK,EAAE,MAAM;SACd;QACD,EAAE,EAAE;YACF,KAAK,EAAE,MAAM;SACd;KACF;CACF,CAAA"}
@@ -0,0 +1 @@
1
+ export { default } from './Checkbox';
@@ -0,0 +1,2 @@
1
+ export { default } from './Checkbox';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/react/Checkbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ declare const DefaultButton: React.ForwardRefExoticComponent<{
3
+ text: string;
4
+ variant?: "primary" | "light" | "dark" | undefined;
5
+ size?: "SM" | "MD" | undefined;
6
+ shape?: "square" | "round" | undefined;
7
+ leftIcon?: React.ReactNode;
8
+ rightIcon?: React.ReactNode;
9
+ fullWidth?: boolean | undefined;
10
+ loading?: boolean | undefined;
11
+ } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
12
+ export default DefaultButton;
@@ -0,0 +1,21 @@
1
+ import { __rest } from "tslib";
2
+ import React, { forwardRef } from 'react';
3
+ import { Loader } from '@/components/react/Loader';
4
+ import { DEFAULT_BUTTON_VARIANTS } from './DefaultButton.variants';
5
+ import { StyledButtonContainer } from './DefaultButton.styles';
6
+ const DefaultButton = forwardRef((_a, ref) => {
7
+ var { text, variant = 'primary', size = 'MD', shape = 'square', fullWidth = false, leftIcon: LeftIcon, rightIcon: RightIcon, loading = false } = _a, props = __rest(_a, ["text", "variant", "size", "shape", "fullWidth", "leftIcon", "rightIcon", "loading"]);
8
+ const colorProps = DEFAULT_BUTTON_VARIANTS.color[variant];
9
+ const sizeProps = DEFAULT_BUTTON_VARIANTS.size[size];
10
+ const shapeProps = DEFAULT_BUTTON_VARIANTS.shape[shape];
11
+ const loaderColor = colorProps.color;
12
+ return (React.createElement(StyledButtonContainer, Object.assign({ type: "button" }, props, colorProps, sizeProps, shapeProps, { fullWidth: fullWidth, loading: loading, ref: ref }),
13
+ loading && (React.createElement("span", { className: "default-btn-loader" },
14
+ React.createElement(Loader, { size: size, color: loaderColor }))),
15
+ LeftIcon && React.createElement("span", { className: "default-btn-icon" }, LeftIcon),
16
+ React.createElement("span", { className: "default-btn-text" }, text),
17
+ RightIcon && React.createElement("span", { className: "default-btn-icon" }, RightIcon)));
18
+ });
19
+ DefaultButton.displayName = 'DefaultButton';
20
+ export default DefaultButton;
21
+ //# sourceMappingURL=DefaultButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultButton.js","sourceRoot":"","sources":["../../../../src/components/react/DefaultButton/DefaultButton.tsx"],"names":[],"mappings":";AAAA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,kBAAkB,IAAE,SAAS,CAAQ,CAC7C,CACzB,CAAA;AACH,CAAC,CACF,CAAA;AAED,aAAa,CAAC,WAAW,GAAG,eAAe,CAAA;AAE3C,eAAe,aAAa,CAAA"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { Meta } from '@storybook/react/types-6-0';
3
+ import ButtonComponent from './DefaultButton';
4
+ type Props = React.ComponentProps<typeof ButtonComponent>;
5
+ export declare const DefaultButton: (props: Props) => JSX.Element;
6
+ declare const _default: Meta;
7
+ export default _default;
@@ -0,0 +1,85 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+ import { MdCheck } from 'react-icons/md';
4
+ import ButtonComponent from './DefaultButton';
5
+ import { DEFAULT_BUTTON_VARIANTS } from './DefaultButton.variants';
6
+ const Container = styled.div `
7
+ display: flex;
8
+ flex-direction: column;
9
+ align-items: flex-start;
10
+ gap: 1rem;
11
+ `;
12
+ export const DefaultButton = (props) => {
13
+ return (React.createElement(Container, null,
14
+ React.createElement(ButtonComponent, Object.assign({}, props)),
15
+ React.createElement(ButtonComponent, Object.assign({}, props, { leftIcon: React.createElement(MdCheck, null) })),
16
+ React.createElement(ButtonComponent, Object.assign({}, props, { rightIcon: React.createElement(MdCheck, null) })),
17
+ React.createElement(ButtonComponent, Object.assign({}, props, { leftIcon: React.createElement(MdCheck, null), rightIcon: React.createElement(MdCheck, null) }))));
18
+ };
19
+ export default {
20
+ title: 'Buttons/DefaultButton',
21
+ parameters: {
22
+ component: DefaultButton,
23
+ },
24
+ args: {
25
+ text: 'Button',
26
+ variant: 'primary',
27
+ size: 'MD',
28
+ shape: 'square',
29
+ fullWidth: false,
30
+ disabled: false,
31
+ loading: false,
32
+ },
33
+ argTypes: {
34
+ text: {
35
+ control: {
36
+ type: 'text',
37
+ },
38
+ },
39
+ leftIcon: {
40
+ control: {},
41
+ },
42
+ rightIcon: {
43
+ control: {},
44
+ },
45
+ variant: {
46
+ control: {
47
+ type: 'select',
48
+ options: Object.keys(DEFAULT_BUTTON_VARIANTS.color),
49
+ },
50
+ },
51
+ size: {
52
+ control: {
53
+ type: 'select',
54
+ options: Object.keys(DEFAULT_BUTTON_VARIANTS.size),
55
+ },
56
+ },
57
+ shape: {
58
+ control: {
59
+ type: 'select',
60
+ options: Object.keys(DEFAULT_BUTTON_VARIANTS.shape),
61
+ },
62
+ },
63
+ loading: {
64
+ control: {
65
+ type: 'boolean',
66
+ },
67
+ },
68
+ fullWidth: {
69
+ control: {
70
+ type: 'boolean',
71
+ },
72
+ },
73
+ disabled: {
74
+ control: {
75
+ type: 'boolean',
76
+ },
77
+ },
78
+ onClick: {
79
+ control: {
80
+ action: 'clicked',
81
+ },
82
+ },
83
+ },
84
+ };
85
+ //# sourceMappingURL=DefaultButton.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultButton.stories.js","sourceRoot":"","sources":["../../../../src/components/react/DefaultButton/DefaultButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,OAAO,eAAe,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAA;AAIlE,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAK3B,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAY,EAAE,EAAE;IAC5C,OAAO,CACL,oBAAC,SAAS;QACR,oBAAC,eAAe,oBAAK,KAAK,EAAI;QAC9B,oBAAC,eAAe,oBAAK,KAAK,IAAE,QAAQ,EAAE,oBAAC,OAAO,OAAG,IAAI;QACrD,oBAAC,eAAe,oBAAK,KAAK,IAAE,SAAS,EAAE,oBAAC,OAAO,OAAG,IAAI;QACtD,oBAAC,eAAe,oBACV,KAAK,IACT,QAAQ,EAAE,oBAAC,OAAO,OAAG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CAAA"}
@@ -0,0 +1,15 @@
1
+ type StyledButtonProps = {
2
+ padding: string;
3
+ color: string;
4
+ backgroundColor: string;
5
+ borderRadius: string;
6
+ borderColor: string;
7
+ fontSize: string;
8
+ gap: string;
9
+ hoverBackgroundColor: string;
10
+ activeBackgroundColor: string;
11
+ fullWidth: boolean;
12
+ loading: boolean;
13
+ };
14
+ export declare const StyledButtonContainer: import("styled-components").StyledComponent<"button", any, StyledButtonProps, never>;
15
+ export {};