beyond-system 0.1.3 → 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 (124) hide show
  1. package/dist/colors/base-colors.d.ts +50 -0
  2. package/dist/colors/base-colors.js +54 -0
  3. package/dist/colors/base-colors.js.map +1 -0
  4. package/dist/colors/gradients.d.ts +7 -0
  5. package/dist/colors/gradients.js +8 -0
  6. package/dist/colors/gradients.js.map +1 -0
  7. package/dist/colors/index.d.ts +3 -0
  8. package/dist/colors/index.js +4 -0
  9. package/dist/colors/index.js.map +1 -0
  10. package/dist/colors/shadows.d.ts +7 -0
  11. package/dist/colors/shadows.js +8 -0
  12. package/dist/colors/shadows.js.map +1 -0
  13. package/dist/components/react/Checkbox/Checkbox.d.ts +11 -0
  14. package/dist/components/react/Checkbox/Checkbox.js +15 -0
  15. package/dist/components/react/Checkbox/Checkbox.js.map +1 -0
  16. package/dist/components/react/Checkbox/Checkbox.stories.d.ts +7 -0
  17. package/dist/components/react/Checkbox/Checkbox.stories.js +54 -0
  18. package/dist/components/react/Checkbox/Checkbox.stories.js.map +1 -0
  19. package/dist/components/react/Checkbox/Checkbox.styles.d.ts +19 -0
  20. package/dist/components/react/Checkbox/Checkbox.styles.js +60 -0
  21. package/dist/components/react/Checkbox/Checkbox.styles.js.map +1 -0
  22. package/dist/components/react/Checkbox/Checkbox.variants.d.ts +25 -0
  23. package/dist/components/react/Checkbox/Checkbox.variants.js +27 -0
  24. package/dist/components/react/Checkbox/Checkbox.variants.js.map +1 -0
  25. package/dist/components/react/DefaultButton/DefaultButton.js +21 -0
  26. package/dist/components/react/DefaultButton/DefaultButton.js.map +1 -0
  27. package/dist/components/react/DefaultButton/DefaultButton.stories.js +85 -0
  28. package/dist/components/react/DefaultButton/DefaultButton.stories.js.map +1 -0
  29. package/dist/components/react/DefaultButton/DefaultButton.styles.d.ts +15 -0
  30. package/dist/components/react/DefaultButton/DefaultButton.styles.js +92 -0
  31. package/dist/components/react/DefaultButton/DefaultButton.styles.js.map +1 -0
  32. package/dist/components/react/DefaultButton/DefaultButton.variants.d.ts +45 -0
  33. package/dist/components/react/DefaultButton/DefaultButton.variants.js +48 -0
  34. package/dist/components/react/DefaultButton/DefaultButton.variants.js.map +1 -0
  35. package/dist/components/react/IconButton/IconButton.js +18 -0
  36. package/dist/components/react/IconButton/IconButton.js.map +1 -0
  37. package/dist/components/react/IconButton/IconButton.stories.js +63 -0
  38. package/dist/components/react/IconButton/IconButton.stories.js.map +1 -0
  39. package/dist/components/react/IconButton/IconButton.styles.d.ts +13 -0
  40. package/dist/components/react/IconButton/IconButton.styles.js +86 -0
  41. package/dist/components/react/IconButton/IconButton.styles.js.map +1 -0
  42. package/dist/components/react/IconButton/IconButton.variants.d.ts +36 -0
  43. package/dist/components/react/IconButton/IconButton.variants.js +39 -0
  44. package/dist/components/react/IconButton/IconButton.variants.js.map +1 -0
  45. package/dist/components/react/Loader/Loader.d.ts +11 -0
  46. package/dist/components/react/Loader/Loader.js +33 -0
  47. package/dist/components/react/Loader/Loader.js.map +1 -0
  48. package/dist/components/react/Loader/Loader.stories.d.ts +7 -0
  49. package/dist/components/react/Loader/Loader.stories.js +31 -0
  50. package/dist/components/react/Loader/Loader.stories.js.map +1 -0
  51. package/dist/components/react/OutlineButton/OutlineButton.js +21 -0
  52. package/dist/components/react/OutlineButton/OutlineButton.js.map +1 -0
  53. package/dist/components/react/OutlineButton/OutlineButton.stories.js +85 -0
  54. package/dist/components/react/OutlineButton/OutlineButton.stories.js.map +1 -0
  55. package/dist/components/react/OutlineButton/OutlineButton.styles.d.ts +12 -0
  56. package/dist/components/react/OutlineButton/OutlineButton.styles.js +86 -0
  57. package/dist/components/react/OutlineButton/OutlineButton.styles.js.map +1 -0
  58. package/dist/components/react/OutlineButton/OutlineButton.variants.d.ts +36 -0
  59. package/dist/components/react/OutlineButton/OutlineButton.variants.js +39 -0
  60. package/dist/components/react/OutlineButton/OutlineButton.variants.js.map +1 -0
  61. package/dist/components/react/RadioInput/RadioInput.d.ts +7 -0
  62. package/dist/components/react/RadioInput/RadioInput.js +12 -0
  63. package/dist/components/react/RadioInput/RadioInput.js.map +1 -0
  64. package/dist/components/react/RadioInput/RadioInput.stories.d.ts +7 -0
  65. package/dist/components/react/RadioInput/RadioInput.stories.js +48 -0
  66. package/dist/components/react/RadioInput/RadioInput.stories.js.map +1 -0
  67. package/dist/components/react/RadioInput/RadioInput.styles.d.ts +14 -0
  68. package/dist/components/react/RadioInput/RadioInput.styles.js +52 -0
  69. package/dist/components/react/RadioInput/RadioInput.styles.js.map +1 -0
  70. package/dist/components/react/RadioInput/RadioInput.variants.d.ts +21 -0
  71. package/dist/components/react/RadioInput/RadioInput.variants.js +23 -0
  72. package/dist/components/react/RadioInput/RadioInput.variants.js.map +1 -0
  73. package/dist/components/react/Switch/Switch.d.ts +10 -0
  74. package/dist/components/react/Switch/Switch.js +13 -0
  75. package/dist/components/react/Switch/Switch.js.map +1 -0
  76. package/dist/components/react/Switch/Switch.stories.d.ts +7 -0
  77. package/dist/components/react/Switch/Switch.stories.js +48 -0
  78. package/dist/components/react/Switch/Switch.stories.js.map +1 -0
  79. package/dist/components/react/Switch/Switch.styles.d.ts +13 -0
  80. package/dist/components/react/Switch/Switch.styles.js +47 -0
  81. package/dist/components/react/Switch/Switch.styles.js.map +1 -0
  82. package/dist/components/react/Switch/Switch.variants.d.ts +17 -0
  83. package/dist/components/react/Switch/Switch.variants.js +19 -0
  84. package/dist/components/react/Switch/Switch.variants.js.map +1 -0
  85. package/dist/components/react/TransparentButton/TransparentButton.d.ts +7 -0
  86. package/dist/components/react/TransparentButton/TransparentButton.js +13 -0
  87. package/dist/components/react/TransparentButton/TransparentButton.js.map +1 -0
  88. package/dist/components/react/TransparentButton/TransparentButton.stories.d.ts +7 -0
  89. package/dist/components/react/TransparentButton/TransparentButton.stories.js +48 -0
  90. package/dist/components/react/TransparentButton/TransparentButton.stories.js.map +1 -0
  91. package/dist/components/react/TransparentButton/TransparentButton.styles.d.ts +10 -0
  92. package/dist/components/react/TransparentButton/TransparentButton.styles.js +65 -0
  93. package/dist/components/react/TransparentButton/TransparentButton.styles.js.map +1 -0
  94. package/dist/components/react/TransparentButton/TransparentButton.variants.d.ts +32 -0
  95. package/dist/components/react/TransparentButton/TransparentButton.variants.js +35 -0
  96. package/dist/components/react/TransparentButton/TransparentButton.variants.js.map +1 -0
  97. package/dist/stories/base-colors/base-colors.stories.d.ts +5 -0
  98. package/dist/stories/base-colors/base-colors.stories.js +50 -0
  99. package/dist/stories/base-colors/base-colors.stories.js.map +1 -0
  100. package/dist/stories/base-colors/base-colors.stories.styles.d.ts +2 -0
  101. package/dist/stories/base-colors/base-colors.stories.styles.js +64 -0
  102. package/dist/stories/base-colors/base-colors.stories.styles.js.map +1 -0
  103. package/dist/stories/gradients/gradients.stories.d.ts +5 -0
  104. package/dist/stories/gradients/gradients.stories.js +22 -0
  105. package/dist/stories/gradients/gradients.stories.js.map +1 -0
  106. package/dist/stories/gradients/gradients.stories.styles.d.ts +2 -0
  107. package/dist/stories/gradients/gradients.stories.styles.js +59 -0
  108. package/dist/stories/gradients/gradients.stories.styles.js.map +1 -0
  109. package/dist/stories/shadows/shadows.stories.d.ts +5 -0
  110. package/dist/stories/shadows/shadows.stories.js +20 -0
  111. package/dist/stories/shadows/shadows.stories.js.map +1 -0
  112. package/dist/stories/shadows/shadows.stories.styles.d.ts +2 -0
  113. package/dist/stories/shadows/shadows.stories.styles.js +58 -0
  114. package/dist/stories/shadows/shadows.stories.styles.js.map +1 -0
  115. package/dist/web/border.d.ts +12 -0
  116. package/dist/web/border.js +13 -0
  117. package/dist/web/border.js.map +1 -0
  118. package/dist/web/font.d.ts +34 -0
  119. package/dist/web/font.js +35 -0
  120. package/dist/web/font.js.map +1 -0
  121. package/dist/web/index.d.ts +2 -0
  122. package/dist/web/index.js +3 -0
  123. package/dist/web/index.js.map +1 -0
  124. package/package.json +1 -1
@@ -0,0 +1,45 @@
1
+ export declare const DEFAULT_BUTTON_VARIANTS: {
2
+ color: {
3
+ primary: {
4
+ color: string;
5
+ borderColor: string;
6
+ backgroundColor: string;
7
+ hoverBackgroundColor: string;
8
+ activeBackgroundColor: string;
9
+ };
10
+ light: {
11
+ color: string;
12
+ borderColor: string;
13
+ backgroundColor: string;
14
+ hoverBackgroundColor: string;
15
+ activeBackgroundColor: string;
16
+ };
17
+ dark: {
18
+ color: string;
19
+ borderColor: string;
20
+ backgroundColor: string;
21
+ hoverBackgroundColor: string;
22
+ activeBackgroundColor: string;
23
+ };
24
+ };
25
+ size: {
26
+ SM: {
27
+ fontSize: string;
28
+ padding: string;
29
+ gap: string;
30
+ };
31
+ MD: {
32
+ fontSize: string;
33
+ padding: string;
34
+ gap: string;
35
+ };
36
+ };
37
+ shape: {
38
+ square: {
39
+ borderRadius: string;
40
+ };
41
+ round: {
42
+ borderRadius: string;
43
+ };
44
+ };
45
+ };
@@ -0,0 +1,48 @@
1
+ import { COLORS } from '@/colors';
2
+ import { FONT, BORDER } from '@/web';
3
+ export const DEFAULT_BUTTON_VARIANTS = {
4
+ color: {
5
+ primary: {
6
+ color: COLORS.NEUTRAL_LIGHTER,
7
+ borderColor: COLORS.GROWTH_MID,
8
+ backgroundColor: COLORS.GROWTH_MID,
9
+ hoverBackgroundColor: COLORS.GROWTH_DARK,
10
+ activeBackgroundColor: COLORS.GROWTH_LIGHT,
11
+ },
12
+ light: {
13
+ color: COLORS.GROWTH_MID,
14
+ borderColor: COLORS.GROWTH_MID,
15
+ backgroundColor: COLORS.NEUTRAL_HIGH,
16
+ hoverBackgroundColor: COLORS.NEUTRAL_HIGH,
17
+ activeBackgroundColor: COLORS.NEUTRAL_LIGHTER,
18
+ },
19
+ dark: {
20
+ color: COLORS.NEUTRAL_LIGHTER,
21
+ borderColor: COLORS.NEUTRAL_DARKER,
22
+ backgroundColor: COLORS.NEUTRAL_DARKER,
23
+ hoverBackgroundColor: COLORS.NEUTRAL_DARKER,
24
+ activeBackgroundColor: COLORS.NEUTRAL_LOW,
25
+ },
26
+ },
27
+ size: {
28
+ SM: {
29
+ fontSize: FONT.SIZE.SM,
30
+ padding: '5px 6px',
31
+ gap: '6px',
32
+ },
33
+ MD: {
34
+ fontSize: FONT.SIZE.MD,
35
+ padding: '6px 10px',
36
+ gap: '8px',
37
+ },
38
+ },
39
+ shape: {
40
+ square: {
41
+ borderRadius: BORDER.RADIUS.MD,
42
+ },
43
+ round: {
44
+ borderRadius: '55px',
45
+ },
46
+ },
47
+ };
48
+ //# sourceMappingURL=DefaultButton.variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultButton.variants.js","sourceRoot":"","sources":["../../../../src/components/react/DefaultButton/DefaultButton.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE;QACL,OAAO,EAAE;YACP,KAAK,EAAE,MAAM,CAAC,eAAe;YAC7B,WAAW,EAAE,MAAM,CAAC,UAAU;YAC9B,eAAe,EAAE,MAAM,CAAC,UAAU;YAClC,oBAAoB,EAAE,MAAM,CAAC,WAAW;YACxC,qBAAqB,EAAE,MAAM,CAAC,YAAY;SAC3C;QACD,KAAK,EAAE;YACL,KAAK,EAAE,MAAM,CAAC,UAAU;YACxB,WAAW,EAAE,MAAM,CAAC,UAAU;YAC9B,eAAe,EAAE,MAAM,CAAC,YAAY;YACpC,oBAAoB,EAAE,MAAM,CAAC,YAAY;YACzC,qBAAqB,EAAE,MAAM,CAAC,eAAe;SAC9C;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM,CAAC,eAAe;YAC7B,WAAW,EAAE,MAAM,CAAC,cAAc;YAClC,eAAe,EAAE,MAAM,CAAC,cAAc;YACtC,oBAAoB,EAAE,MAAM,CAAC,cAAc;YAC3C,qBAAqB,EAAE,MAAM,CAAC,WAAW;SAC1C;KACF;IACD,IAAI,EAAE;QACJ,EAAE,EAAE;YACF,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE;YACtB,OAAO,EAAE,SAAS;YAClB,GAAG,EAAE,KAAK;SACX;QACD,EAAE,EAAE;YACF,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE;YACtB,OAAO,EAAE,UAAU;YACnB,GAAG,EAAE,KAAK;SACX;KACF;IAED,KAAK,EAAE;QACL,MAAM,EAAE;YACN,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE;SAC/B;QACD,KAAK,EAAE;YACL,YAAY,EAAE,MAAM;SACrB;KACF;CACF,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { __rest } from "tslib";
2
+ import React, { forwardRef } from 'react';
3
+ import { Loader } from '@/components/react/Loader';
4
+ import { ICON_BUTTON_VARIANTS } from './IconButton.variants';
5
+ import { StyledButtonContainer } from './IconButton.styles';
6
+ const IconButton = forwardRef((_a, ref) => {
7
+ var { children, variant = 'primary', size = 'MD', shape = 'square', loading = false } = _a, props = __rest(_a, ["children", "variant", "size", "shape", "loading"]);
8
+ const colorProps = ICON_BUTTON_VARIANTS.color[variant];
9
+ const sizeProps = ICON_BUTTON_VARIANTS.size[size];
10
+ const shapeProps = ICON_BUTTON_VARIANTS.shape[shape];
11
+ const loaderColor = colorProps.color;
12
+ return (React.createElement(StyledButtonContainer, Object.assign({ type: "button" }, props, colorProps, sizeProps, shapeProps, { loading: loading, ref: ref }),
13
+ React.createElement(Loader, { size: size, color: loaderColor, className: "icon-btn-loader" }),
14
+ React.createElement("div", { className: "icon-btn-content" }, children)));
15
+ });
16
+ IconButton.displayName = 'IconButton';
17
+ export default IconButton;
18
+ //# sourceMappingURL=IconButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../../../src/components/react/IconButton/IconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAW3D,MAAM,UAAU,GAAG,UAAU,CAC3B,CACE,EAOkB,EAClB,GAAQ,EACR,EAAE;QATF,EACE,QAAQ,EACR,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,IAAI,EACX,KAAK,GAAG,QAAQ,EAChB,OAAO,GAAG,KAAK,OAEC,EADb,KAAK,cANV,mDAOC,CADS;IAIV,MAAM,UAAU,GAAG,oBAAoB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IACtD,MAAM,SAAS,GAAG,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACjD,MAAM,UAAU,GAAG,oBAAoB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IAEpD,MAAM,WAAW,GAAG,UAAU,CAAC,KAA4B,CAAA;IAE3D,OAAO,CACL,oBAAC,qBAAqB,kBACpB,IAAI,EAAC,QAAQ,IACT,KAAK,EACL,UAAU,EACV,SAAS,EACT,UAAU,IACd,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,GAAG;QAER,oBAAC,MAAM,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAC,iBAAiB,GAAG;QACtE,6BAAK,SAAS,EAAC,kBAAkB,IAAE,QAAQ,CAAO,CAC5B,CACzB,CAAA;AACH,CAAC,CACF,CAAA;AAED,UAAU,CAAC,WAAW,GAAG,YAAY,CAAA;AAErC,eAAe,UAAU,CAAA"}
@@ -0,0 +1,63 @@
1
+ import React from 'react';
2
+ import { MdCheck } from 'react-icons/md';
3
+ import ButtonComponent from './IconButton';
4
+ import { ICON_BUTTON_VARIANTS } from './IconButton.variants';
5
+ export const IconButton = (props) => {
6
+ return (React.createElement(ButtonComponent, Object.assign({}, props),
7
+ React.createElement(MdCheck, null)));
8
+ };
9
+ export default {
10
+ title: 'Buttons/IconButton',
11
+ parameters: {
12
+ component: IconButton,
13
+ },
14
+ args: {
15
+ children: 'Button',
16
+ variant: 'primary',
17
+ size: 'MD',
18
+ shape: 'square',
19
+ disabled: false,
20
+ loading: false,
21
+ },
22
+ argTypes: {
23
+ children: {
24
+ control: {
25
+ type: 'text',
26
+ },
27
+ },
28
+ variant: {
29
+ control: {
30
+ type: 'select',
31
+ options: Object.keys(ICON_BUTTON_VARIANTS.color),
32
+ },
33
+ },
34
+ size: {
35
+ control: {
36
+ type: 'select',
37
+ options: Object.keys(ICON_BUTTON_VARIANTS.size),
38
+ },
39
+ },
40
+ shape: {
41
+ control: {
42
+ type: 'select',
43
+ options: Object.keys(ICON_BUTTON_VARIANTS.shape),
44
+ },
45
+ },
46
+ loading: {
47
+ control: {
48
+ type: 'boolean',
49
+ },
50
+ },
51
+ disabled: {
52
+ control: {
53
+ type: 'boolean',
54
+ },
55
+ },
56
+ onClick: {
57
+ control: {
58
+ action: 'clicked',
59
+ },
60
+ },
61
+ },
62
+ };
63
+ //# sourceMappingURL=IconButton.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconButton.stories.js","sourceRoot":"","sources":["../../../../src/components/react/IconButton/IconButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,OAAO,eAAe,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAI5D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAY,EAAE,EAAE;IACzC,OAAO,CACL,oBAAC,eAAe,oBAAK,KAAK;QACxB,oBAAC,OAAO,OAAG,CACK,CACnB,CAAA;AACH,CAAC,CAAA;AAED,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,UAAU,EAAE;QACV,SAAS,EAAE,UAAU;KACtB;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,QAAQ;QAClB,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,QAAQ;QACf,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,KAAK;KACf;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;aACb;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC;aACjD;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC;aAChD;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC;aACjD;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,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;KACF;CACM,CAAA"}
@@ -0,0 +1,13 @@
1
+ type StyledButtonProps = {
2
+ padding: string;
3
+ color: string;
4
+ backgroundColor: string;
5
+ borderRadius: string;
6
+ borderColor: string;
7
+ fontSize: string;
8
+ hoverBackgroundColor: string;
9
+ activeBackgroundColor: string;
10
+ loading: boolean;
11
+ };
12
+ export declare const StyledButtonContainer: import("styled-components").StyledComponent<"button", any, StyledButtonProps, never>;
13
+ export {};
@@ -0,0 +1,86 @@
1
+ import styled from 'styled-components';
2
+ import { COLORS, SHADOWS } from '@/colors';
3
+ export const StyledButtonContainer = styled.button `
4
+ all: unset;
5
+ position: relative;
6
+
7
+ display: flex;
8
+ flex-direction: row;
9
+
10
+ align-items: center;
11
+ justify-content: center;
12
+
13
+ aspect-ratio: 1/1;
14
+
15
+ transition: 0.05s ease-in-out;
16
+
17
+ padding: ${(props) => props.padding};
18
+
19
+ color: ${(props) => props.color};
20
+ font-size: ${(props) => props.fontSize};
21
+
22
+ * {
23
+ color: ${(props) => props.color};
24
+ font-size: ${(props) => props.fontSize};
25
+ font-weight: 600;
26
+ }
27
+
28
+ background-color: ${(props) => props.backgroundColor};
29
+ border: 1px solid ${(props) => props.borderColor};
30
+ border-radius: ${(props) => props.borderRadius};
31
+
32
+ padding: ${(props) => props.padding};
33
+
34
+ pointer-events: ${(props) => (props.loading ? 'none' : 'auto')};
35
+
36
+ .icon-btn-loader {
37
+ opacity: ${(props) => (props.loading ? 1 : 0)};
38
+ }
39
+
40
+ .icon-btn-content {
41
+ position: absolute;
42
+
43
+ display: flex;
44
+ align-items: center;
45
+ justify-content: center;
46
+ height: 100%;
47
+ width: 100%;
48
+
49
+ opacity: ${(props) => (props.loading ? 0 : 1)};
50
+ }
51
+
52
+ :hover {
53
+ cursor: pointer;
54
+ background-color: ${(props) => props.hoverBackgroundColor};
55
+ transform: scale(1.01);
56
+ box-shadow: ${SHADOWS.HOVER};
57
+ }
58
+
59
+ :active {
60
+ transform: scale(0.98);
61
+ background-color: ${(props) => props.activeBackgroundColor};
62
+ box-shadow: none;
63
+ }
64
+
65
+ :disabled {
66
+ color: ${COLORS.NEUTRAL_LIGHT};
67
+ border-color: ${COLORS.NEUTRAL_LIGHT};
68
+ background-color: ${COLORS.NEUTRAL_LIGHTER};
69
+
70
+ * {
71
+ color: ${COLORS.NEUTRAL_LIGHT};
72
+ }
73
+
74
+ :hover {
75
+ cursor: default;
76
+ transform: scale(1);
77
+ box-shadow: none;
78
+ }
79
+
80
+ :active {
81
+ transform: scale(1);
82
+ box-shadow: none;
83
+ }
84
+ }
85
+ `;
86
+ //# sourceMappingURL=IconButton.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconButton.styles.js","sourceRoot":"","sources":["../../../../src/components/react/IconButton/IconButton.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAc1C,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAmB;;;;;;;;;;;;;;aAcxD,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO;;WAE1B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;eAClB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ;;;aAG3B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;iBAClB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ;;;;sBAIpB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,eAAe;sBAChC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;mBAC/B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY;;aAEnC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO;;oBAEjB,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;;;eAGjD,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;eAYlC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;wBAKzB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,oBAAoB;;kBAE3C,OAAO,CAAC,KAAK;;;;;wBAKP,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,qBAAqB;;;;;aAKjD,MAAM,CAAC,aAAa;oBACb,MAAM,CAAC,aAAa;wBAChB,MAAM,CAAC,eAAe;;;eAG/B,MAAM,CAAC,aAAa;;;;;;;;;;;;;;CAclC,CAAA"}
@@ -0,0 +1,36 @@
1
+ export declare const ICON_BUTTON_VARIANTS: {
2
+ color: {
3
+ primary: {
4
+ color: string;
5
+ borderColor: string;
6
+ backgroundColor: string;
7
+ hoverBackgroundColor: string;
8
+ activeBackgroundColor: string;
9
+ };
10
+ light: {
11
+ color: string;
12
+ borderColor: string;
13
+ backgroundColor: string;
14
+ hoverBackgroundColor: string;
15
+ activeBackgroundColor: string;
16
+ };
17
+ };
18
+ size: {
19
+ SM: {
20
+ fontSize: string;
21
+ padding: string;
22
+ };
23
+ MD: {
24
+ fontSize: string;
25
+ padding: string;
26
+ };
27
+ };
28
+ shape: {
29
+ square: {
30
+ borderRadius: string;
31
+ };
32
+ round: {
33
+ borderRadius: string;
34
+ };
35
+ };
36
+ };
@@ -0,0 +1,39 @@
1
+ import { COLORS } from '@/colors';
2
+ import { FONT, BORDER } from '@/web';
3
+ export const ICON_BUTTON_VARIANTS = {
4
+ color: {
5
+ primary: {
6
+ color: COLORS.NEUTRAL_LIGHTER,
7
+ borderColor: COLORS.GROWTH_MID,
8
+ backgroundColor: COLORS.GROWTH_MID,
9
+ hoverBackgroundColor: COLORS.GROWTH_DARK,
10
+ activeBackgroundColor: COLORS.GROWTH_LIGHT,
11
+ },
12
+ light: {
13
+ color: COLORS.GROWTH_MID,
14
+ borderColor: COLORS.GROWTH_MID,
15
+ backgroundColor: COLORS.NEUTRAL_HIGH,
16
+ hoverBackgroundColor: COLORS.NEUTRAL_LIGHTER,
17
+ activeBackgroundColor: COLORS.NEUTRAL_LIGHTER,
18
+ },
19
+ },
20
+ size: {
21
+ SM: {
22
+ fontSize: FONT.SIZE.LG,
23
+ padding: '4px',
24
+ },
25
+ MD: {
26
+ fontSize: FONT.SIZE.XL,
27
+ padding: '6px',
28
+ },
29
+ },
30
+ shape: {
31
+ square: {
32
+ borderRadius: BORDER.RADIUS.MD,
33
+ },
34
+ round: {
35
+ borderRadius: '50%',
36
+ },
37
+ },
38
+ };
39
+ //# sourceMappingURL=IconButton.variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconButton.variants.js","sourceRoot":"","sources":["../../../../src/components/react/IconButton/IconButton.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,KAAK,EAAE;QACL,OAAO,EAAE;YACP,KAAK,EAAE,MAAM,CAAC,eAAe;YAC7B,WAAW,EAAE,MAAM,CAAC,UAAU;YAC9B,eAAe,EAAE,MAAM,CAAC,UAAU;YAClC,oBAAoB,EAAE,MAAM,CAAC,WAAW;YACxC,qBAAqB,EAAE,MAAM,CAAC,YAAY;SAC3C;QACD,KAAK,EAAE;YACL,KAAK,EAAE,MAAM,CAAC,UAAU;YACxB,WAAW,EAAE,MAAM,CAAC,UAAU;YAC9B,eAAe,EAAE,MAAM,CAAC,YAAY;YACpC,oBAAoB,EAAE,MAAM,CAAC,eAAe;YAC5C,qBAAqB,EAAE,MAAM,CAAC,eAAe;SAC9C;KACF;IACD,IAAI,EAAE;QACJ,EAAE,EAAE;YACF,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE;YACtB,OAAO,EAAE,KAAK;SACf;QACD,EAAE,EAAE;YACF,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE;YACtB,OAAO,EAAE,KAAK;SACf;KACF;IAED,KAAK,EAAE;QACL,MAAM,EAAE;YACN,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE;SAC/B;QACD,KAAK,EAAE;YACL,YAAY,EAAE,KAAK;SACpB;KACF;CACF,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { COLORS } from '@/colors';
2
+ declare const LOADER_SIZES: {
3
+ SM: string;
4
+ MD: string;
5
+ };
6
+ type LoaderProps = {
7
+ size?: keyof typeof LOADER_SIZES;
8
+ color?: keyof typeof COLORS;
9
+ };
10
+ export declare const Loader: import("styled-components").StyledComponent<"span", any, LoaderProps, never>;
11
+ export {};
@@ -0,0 +1,33 @@
1
+ import styled from 'styled-components';
2
+ import { COLORS } from '@/colors';
3
+ const LOADER_SIZES = {
4
+ SM: '14px',
5
+ MD: '20px',
6
+ };
7
+ const LOADER_BORDER_WIDTH = {
8
+ SM: '2px',
9
+ MD: '3px',
10
+ };
11
+ export const Loader = styled.span `
12
+ width: ${({ size }) => LOADER_SIZES[size || 'MD']};
13
+ height: ${({ size }) => LOADER_SIZES[size || 'MD']};
14
+ border: ${({ size }) => LOADER_BORDER_WIDTH[size || 'MD']} solid
15
+ ${({ color }) => COLORS[color || 'NEUTRAL_HIGH']};
16
+
17
+ border-bottom-color: transparent;
18
+ border-radius: 50%;
19
+
20
+ display: inline-block;
21
+ box-sizing: border-box;
22
+ animation: rotation 1s linear infinite;
23
+
24
+ @keyframes rotation {
25
+ 0% {
26
+ transform: rotate(0deg);
27
+ }
28
+ 100% {
29
+ transform: rotate(360deg);
30
+ }
31
+ }
32
+ `;
33
+ //# sourceMappingURL=Loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../../src/components/react/Loader/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,MAAM,YAAY,GAAG;IACnB,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;CACX,CAAA;AAED,MAAM,mBAAmB,GAAG;IAC1B,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;CACV,CAAA;AAOD,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAa;WACnC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,IAAI,IAAI,CAAC;YACvC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,IAAI,IAAI,CAAC;YACxC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,IAAI,IAAI,CAAC;MACrD,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,IAAI,cAAc,CAAC;;;;;;;;;;;;;;;;;CAiBnD,CAAA"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { Meta } from '@storybook/react/types-6-0';
3
+ import { Loader as LoaderComponent } from './Loader';
4
+ type Props = React.ComponentProps<typeof LoaderComponent>;
5
+ export declare const Loader: (props: Props) => JSX.Element;
6
+ declare const _default: Meta;
7
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { Loader as LoaderComponent } from './Loader';
3
+ import { COLORS } from '@/colors';
4
+ export const Loader = (props) => {
5
+ return React.createElement(LoaderComponent, Object.assign({}, props));
6
+ };
7
+ export default {
8
+ title: 'Fundation/Loader',
9
+ parameters: {
10
+ component: Loader,
11
+ },
12
+ args: {
13
+ color: 'GROWTH_MID',
14
+ size: 'MD',
15
+ },
16
+ argTypes: {
17
+ color: {
18
+ control: {
19
+ type: 'select',
20
+ options: Object.keys(COLORS),
21
+ },
22
+ },
23
+ size: {
24
+ control: {
25
+ type: 'select',
26
+ options: ['SM', 'MD'],
27
+ },
28
+ },
29
+ },
30
+ };
31
+ //# sourceMappingURL=Loader.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loader.stories.js","sourceRoot":"","sources":["../../../../src/components/react/Loader/Loader.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAIjC,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAY,EAAE,EAAE;IACrC,OAAO,oBAAC,eAAe,oBAAK,KAAK,EAAI,CAAA;AACvC,CAAC,CAAA;AAED,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,UAAU,EAAE;QACV,SAAS,EAAE,MAAM;KAClB;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,IAAI;KACX;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;aAC7B;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;aACtB;SACF;KACF;CACM,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { __rest } from "tslib";
2
+ import React, { forwardRef } from 'react';
3
+ import { Loader } from '@/components/react/Loader';
4
+ import { StyledButtonContainer } from './OutlineButton.styles';
5
+ import { OUTLINE_BUTTON_VARIANTS } from './OutlineButton.variants';
6
+ const OutlineButton = 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 = OUTLINE_BUTTON_VARIANTS.color[variant];
9
+ const sizeProps = OUTLINE_BUTTON_VARIANTS.size[size];
10
+ const shapeProps = OUTLINE_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
+ OutlineButton.displayName = 'OutlineButton';
20
+ export default OutlineButton;
21
+ //# sourceMappingURL=OutlineButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OutlineButton.js","sourceRoot":"","sources":["../../../../src/components/react/OutlineButton/OutlineButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAA;AAalE,MAAM,aAAa,GAAG,UAAU,CAC9B,CACE,EAUqB,EACrB,GAAQ,EACR,EAAE;QAZF,EACE,IAAI,EACJ,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,IAAI,EACX,KAAK,GAAG,QAAQ,EAChB,SAAS,GAAG,KAAK,EACjB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,OAAO,GAAG,KAAK,OAEI,EADhB,KAAK,cATV,qFAUC,CADS;IAIV,MAAM,UAAU,GAAG,uBAAuB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IACzD,MAAM,SAAS,GAAG,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACpD,MAAM,UAAU,GAAG,uBAAuB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IAEvD,MAAM,WAAW,GAAG,UAAU,CAAC,KAA4B,CAAA;IAE3D,OAAO,CACL,oBAAC,qBAAqB,kBACpB,IAAI,EAAC,QAAQ,IACT,KAAK,EACL,UAAU,EACV,SAAS,EACT,UAAU,IACd,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,GAAG;QAEP,OAAO,IAAI,CACV,8BAAM,SAAS,EAAC,oBAAoB;YAClC,oBAAC,MAAM,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,GAAI,CACrC,CACR;QACA,QAAQ,IAAI,8BAAM,SAAS,EAAC,kBAAkB,IAAE,QAAQ,CAAQ;QACjE,8BAAM,SAAS,EAAC,kBAAkB,IAAE,IAAI,CAAQ;QAC/C,SAAS,IAAI,8BAAM,SAAS,EAAC,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,85 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+ import { MdCheck } from 'react-icons/md';
4
+ import ButtonComponent from './OutlineButton';
5
+ import { OUTLINE_BUTTON_VARIANTS } from './OutlineButton.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 OutlineButton = (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/OutlineButton',
21
+ parameters: {
22
+ component: OutlineButton,
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(OUTLINE_BUTTON_VARIANTS.color),
49
+ },
50
+ },
51
+ size: {
52
+ control: {
53
+ type: 'select',
54
+ options: Object.keys(OUTLINE_BUTTON_VARIANTS.size),
55
+ },
56
+ },
57
+ shape: {
58
+ control: {
59
+ type: 'select',
60
+ options: Object.keys(OUTLINE_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=OutlineButton.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OutlineButton.stories.js","sourceRoot":"","sources":["../../../../src/components/react/OutlineButton/OutlineButton.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,EACrB,SAAS,EAAE,oBAAC,OAAO,OAAG,IACtB,CACQ,CACb,CAAA;AACH,CAAC,CAAA;AAED,eAAe;IACb,KAAK,EAAE,uBAAuB;IAC9B,UAAU,EAAE;QACV,SAAS,EAAE,aAAa;KACzB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,QAAQ;QACf,SAAS,EAAE,KAAK;QAChB,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,KAAK;KACf;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;aACb;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,EAAE;SACZ;QACD,SAAS,EAAE;YACT,OAAO,EAAE,EAAE;SACZ;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,KAAK,CAAC;aACpD;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC;aACnD;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,KAAK,CAAC;aACpD;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;KACF;CACM,CAAA"}
@@ -0,0 +1,12 @@
1
+ type StyledButtonProps = {
2
+ padding: string;
3
+ color: string;
4
+ borderRadius: string;
5
+ borderColor: string;
6
+ fontSize: string;
7
+ gap: string;
8
+ fullWidth: boolean;
9
+ loading: boolean;
10
+ };
11
+ export declare const StyledButtonContainer: import("styled-components").StyledComponent<"button", any, StyledButtonProps, never>;
12
+ export {};