beyond-system 0.8.4 → 0.8.6

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 (216) hide show
  1. package/dist/colors/base-colors.d.ts +1 -0
  2. package/dist/colors/base-colors.d.ts.map +1 -0
  3. package/dist/colors/gradients.d.ts +1 -0
  4. package/dist/colors/gradients.d.ts.map +1 -0
  5. package/dist/colors/index.d.ts +1 -0
  6. package/dist/colors/index.d.ts.map +1 -0
  7. package/dist/colors/shadows.d.ts +1 -0
  8. package/dist/colors/shadows.d.ts.map +1 -0
  9. package/dist/components/react/Calendar/Calendar.d.ts +1 -0
  10. package/dist/components/react/Calendar/Calendar.d.ts.map +1 -0
  11. package/dist/components/react/Calendar/index.d.ts +1 -0
  12. package/dist/components/react/Calendar/index.d.ts.map +1 -0
  13. package/dist/components/react/Checkbox/Checkbox.d.ts +1 -0
  14. package/dist/components/react/Checkbox/Checkbox.d.ts.map +1 -0
  15. package/dist/components/react/Checkbox/index.d.ts +1 -0
  16. package/dist/components/react/Checkbox/index.d.ts.map +1 -0
  17. package/dist/components/react/Chip/Chip.d.ts +1 -0
  18. package/dist/components/react/Chip/Chip.d.ts.map +1 -0
  19. package/dist/components/react/Chip/index.d.ts +1 -0
  20. package/dist/components/react/Chip/index.d.ts.map +1 -0
  21. package/dist/components/react/DatePicker/DatePicker.d.ts +1 -0
  22. package/dist/components/react/DatePicker/DatePicker.d.ts.map +1 -0
  23. package/dist/components/react/DatePicker/index.d.ts +1 -0
  24. package/dist/components/react/DatePicker/index.d.ts.map +1 -0
  25. package/dist/components/react/DateRangeCalendar/DateRangeCalendar.d.ts +1 -0
  26. package/dist/components/react/DateRangeCalendar/DateRangeCalendar.d.ts.map +1 -0
  27. package/dist/components/react/DateRangeCalendar/index.d.ts +1 -0
  28. package/dist/components/react/DateRangeCalendar/index.d.ts.map +1 -0
  29. package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.d.ts +1 -0
  30. package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.d.ts.map +1 -0
  31. package/dist/components/react/DateRangeCalendarWithPanel/index.d.ts +1 -0
  32. package/dist/components/react/DateRangeCalendarWithPanel/index.d.ts.map +1 -0
  33. package/dist/components/react/DateRangePicker/DateRangePicker.d.ts +1 -0
  34. package/dist/components/react/DateRangePicker/DateRangePicker.d.ts.map +1 -0
  35. package/dist/components/react/DateRangePicker/index.d.ts +1 -0
  36. package/dist/components/react/DateRangePicker/index.d.ts.map +1 -0
  37. package/dist/components/react/DefaultButton/DefaultButton.d.ts +1 -0
  38. package/dist/components/react/DefaultButton/DefaultButton.d.ts.map +1 -0
  39. package/dist/components/react/DefaultButton/DefaultButton.styles.d.ts +1 -0
  40. package/dist/components/react/DefaultButton/DefaultButton.styles.d.ts.map +1 -0
  41. package/dist/components/react/DefaultButton/DefaultButton.variants.d.ts +1 -0
  42. package/dist/components/react/DefaultButton/DefaultButton.variants.d.ts.map +1 -0
  43. package/dist/components/react/DefaultButton/index.d.ts +1 -0
  44. package/dist/components/react/DefaultButton/index.d.ts.map +1 -0
  45. package/dist/components/react/IconButton/IconButton.d.ts +1 -0
  46. package/dist/components/react/IconButton/IconButton.d.ts.map +1 -0
  47. package/dist/components/react/IconButton/IconButton.styles.d.ts +1 -0
  48. package/dist/components/react/IconButton/IconButton.styles.d.ts.map +1 -0
  49. package/dist/components/react/IconButton/IconButton.variants.d.ts +1 -0
  50. package/dist/components/react/IconButton/IconButton.variants.d.ts.map +1 -0
  51. package/dist/components/react/IconButton/index.d.ts +1 -0
  52. package/dist/components/react/IconButton/index.d.ts.map +1 -0
  53. package/dist/components/react/List/List.js +2 -2
  54. package/dist/components/react/List/List.js.map +1 -1
  55. package/dist/components/react/List/ListContainer.d.ts +4 -0
  56. package/dist/components/react/List/ListContainer.d.ts.map +1 -0
  57. package/dist/components/react/List/ListContainer.js +11 -0
  58. package/dist/components/react/List/ListContainer.js.map +1 -0
  59. package/dist/components/react/List/ListItem.d.ts +9 -0
  60. package/dist/components/react/List/ListItem.d.ts.map +1 -0
  61. package/dist/components/react/List/ListItem.js +19 -0
  62. package/dist/components/react/List/ListItem.js.map +1 -0
  63. package/dist/components/react/List/index.d.ts +7 -1
  64. package/dist/components/react/List/index.d.ts.map +1 -0
  65. package/dist/components/react/List/index.js +8 -6
  66. package/dist/components/react/List/index.js.map +1 -1
  67. package/dist/components/react/Loader/Loader.d.ts +1 -0
  68. package/dist/components/react/Loader/Loader.d.ts.map +1 -0
  69. package/dist/components/react/Loader/index.d.ts +1 -0
  70. package/dist/components/react/Loader/index.d.ts.map +1 -0
  71. package/dist/components/react/MonthPicker/MonthPicker.d.ts +1 -0
  72. package/dist/components/react/MonthPicker/MonthPicker.d.ts.map +1 -0
  73. package/dist/components/react/MonthPicker/index.d.ts +1 -0
  74. package/dist/components/react/MonthPicker/index.d.ts.map +1 -0
  75. package/dist/components/react/MultiSelect/MultiSelect.d.ts +1 -0
  76. package/dist/components/react/MultiSelect/MultiSelect.d.ts.map +1 -0
  77. package/dist/components/react/MultiSelect/index.d.ts +1 -0
  78. package/dist/components/react/MultiSelect/index.d.ts.map +1 -0
  79. package/dist/components/react/OutlineButton/OutlineButton.d.ts +1 -0
  80. package/dist/components/react/OutlineButton/OutlineButton.d.ts.map +1 -0
  81. package/dist/components/react/OutlineButton/OutlineButton.styles.d.ts +1 -0
  82. package/dist/components/react/OutlineButton/OutlineButton.styles.d.ts.map +1 -0
  83. package/dist/components/react/OutlineButton/OutlineButton.variants.d.ts +1 -0
  84. package/dist/components/react/OutlineButton/OutlineButton.variants.d.ts.map +1 -0
  85. package/dist/components/react/OutlineButton/index.d.ts +1 -0
  86. package/dist/components/react/OutlineButton/index.d.ts.map +1 -0
  87. package/dist/components/react/RadioInput/RadioInput.d.ts +1 -0
  88. package/dist/components/react/RadioInput/RadioInput.d.ts.map +1 -0
  89. package/dist/components/react/RadioInput/RadioInput.styles.d.ts +1 -0
  90. package/dist/components/react/RadioInput/RadioInput.styles.d.ts.map +1 -0
  91. package/dist/components/react/RadioInput/RadioInput.variants.d.ts +1 -0
  92. package/dist/components/react/RadioInput/RadioInput.variants.d.ts.map +1 -0
  93. package/dist/components/react/RadioInput/index.d.ts +1 -0
  94. package/dist/components/react/RadioInput/index.d.ts.map +1 -0
  95. package/dist/components/react/Select/Select.d.ts +1 -0
  96. package/dist/components/react/Select/Select.d.ts.map +1 -0
  97. package/dist/components/react/Select/index.d.ts +1 -0
  98. package/dist/components/react/Select/index.d.ts.map +1 -0
  99. package/dist/components/react/Switch/Switch.d.ts +1 -0
  100. package/dist/components/react/Switch/Switch.d.ts.map +1 -0
  101. package/dist/components/react/Switch/Switch.styles.d.ts +1 -0
  102. package/dist/components/react/Switch/Switch.styles.d.ts.map +1 -0
  103. package/dist/components/react/Switch/Switch.variants.d.ts +1 -0
  104. package/dist/components/react/Switch/Switch.variants.d.ts.map +1 -0
  105. package/dist/components/react/Switch/index.d.ts +1 -0
  106. package/dist/components/react/Switch/index.d.ts.map +1 -0
  107. package/dist/components/react/TextArea/TextArea.d.ts +1 -0
  108. package/dist/components/react/TextArea/TextArea.d.ts.map +1 -0
  109. package/dist/components/react/TextArea/index.d.ts +1 -0
  110. package/dist/components/react/TextArea/index.d.ts.map +1 -0
  111. package/dist/components/react/TextInput/TextInput.d.ts +1 -0
  112. package/dist/components/react/TextInput/TextInput.d.ts.map +1 -0
  113. package/dist/components/react/TextInput/index.d.ts +1 -0
  114. package/dist/components/react/TextInput/index.d.ts.map +1 -0
  115. package/dist/components/react/TransparentButton/TransparentButton.d.ts +1 -0
  116. package/dist/components/react/TransparentButton/TransparentButton.d.ts.map +1 -0
  117. package/dist/components/react/TransparentButton/TransparentButton.styles.d.ts +1 -0
  118. package/dist/components/react/TransparentButton/TransparentButton.styles.d.ts.map +1 -0
  119. package/dist/components/react/TransparentButton/TransparentButton.variants.d.ts +1 -0
  120. package/dist/components/react/TransparentButton/TransparentButton.variants.d.ts.map +1 -0
  121. package/dist/components/react/TransparentButton/index.d.ts +1 -0
  122. package/dist/components/react/TransparentButton/index.d.ts.map +1 -0
  123. package/dist/components/react/index.d.ts +1 -0
  124. package/dist/components/react/index.d.ts.map +1 -0
  125. package/dist/config/index.d.ts +1 -0
  126. package/dist/config/index.d.ts.map +1 -0
  127. package/dist/config/tailwind.config.d.ts +1 -0
  128. package/dist/config/tailwind.config.d.ts.map +1 -0
  129. package/dist/index.d.ts +1 -0
  130. package/dist/index.d.ts.map +1 -0
  131. package/dist/initialize.d.ts +1 -0
  132. package/dist/initialize.d.ts.map +1 -0
  133. package/dist/stories/base-colors/base-colors.stories.styles.d.ts +1 -0
  134. package/dist/stories/base-colors/base-colors.stories.styles.d.ts.map +1 -0
  135. package/dist/stories/gradients/gradients.stories.styles.d.ts +1 -0
  136. package/dist/stories/gradients/gradients.stories.styles.d.ts.map +1 -0
  137. package/dist/stories/shadows/shadows.stories.styles.d.ts +1 -0
  138. package/dist/stories/shadows/shadows.stories.styles.d.ts.map +1 -0
  139. package/dist/styles/global.css +18 -14
  140. package/dist/web/border.d.ts +1 -0
  141. package/dist/web/border.d.ts.map +1 -0
  142. package/dist/web/font.d.ts +1 -0
  143. package/dist/web/font.d.ts.map +1 -0
  144. package/dist/web/index.d.ts +1 -0
  145. package/dist/web/index.d.ts.map +1 -0
  146. package/package.json +83 -84
  147. package/dist/components/react/Calendar/Calendar.stories.d.ts +0 -7
  148. package/dist/components/react/Calendar/Calendar.stories.js +0 -35
  149. package/dist/components/react/Calendar/Calendar.stories.js.map +0 -1
  150. package/dist/components/react/Checkbox/Checkbox.stories.d.ts +0 -7
  151. package/dist/components/react/Checkbox/Checkbox.stories.js +0 -51
  152. package/dist/components/react/Checkbox/Checkbox.stories.js.map +0 -1
  153. package/dist/components/react/Chip/Chip.stories.d.ts +0 -10
  154. package/dist/components/react/Chip/Chip.stories.js +0 -74
  155. package/dist/components/react/Chip/Chip.stories.js.map +0 -1
  156. package/dist/components/react/DatePicker/DatePicker.stories.d.ts +0 -7
  157. package/dist/components/react/DatePicker/DatePicker.stories.js +0 -46
  158. package/dist/components/react/DatePicker/DatePicker.stories.js.map +0 -1
  159. package/dist/components/react/DateRangeCalendar/DateRangeCalendar.stories.d.ts +0 -7
  160. package/dist/components/react/DateRangeCalendar/DateRangeCalendar.stories.js +0 -44
  161. package/dist/components/react/DateRangeCalendar/DateRangeCalendar.stories.js.map +0 -1
  162. package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.d.ts +0 -7
  163. package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.js +0 -44
  164. package/dist/components/react/DateRangeCalendarWithPanel/DateRangeCalendarWithPanel.stories.js.map +0 -1
  165. package/dist/components/react/DateRangePicker/DateRangePicker.stories.d.ts +0 -7
  166. package/dist/components/react/DateRangePicker/DateRangePicker.stories.js +0 -51
  167. package/dist/components/react/DateRangePicker/DateRangePicker.stories.js.map +0 -1
  168. package/dist/components/react/DefaultButton/DefaultButton.stories.d.ts +0 -7
  169. package/dist/components/react/DefaultButton/DefaultButton.stories.js +0 -86
  170. package/dist/components/react/DefaultButton/DefaultButton.stories.js.map +0 -1
  171. package/dist/components/react/IconButton/IconButton.stories.d.ts +0 -7
  172. package/dist/components/react/IconButton/IconButton.stories.js +0 -68
  173. package/dist/components/react/IconButton/IconButton.stories.js.map +0 -1
  174. package/dist/components/react/List/List.d.ts +0 -10
  175. package/dist/components/react/List/List.stories.d.ts +0 -8
  176. package/dist/components/react/List/List.stories.js +0 -46
  177. package/dist/components/react/List/List.stories.js.map +0 -1
  178. package/dist/components/react/Loader/Loader.stories.d.ts +0 -7
  179. package/dist/components/react/Loader/Loader.stories.js +0 -36
  180. package/dist/components/react/Loader/Loader.stories.js.map +0 -1
  181. package/dist/components/react/MonthPicker/MonthPicker.stories.d.ts +0 -7
  182. package/dist/components/react/MonthPicker/MonthPicker.stories.js +0 -34
  183. package/dist/components/react/MonthPicker/MonthPicker.stories.js.map +0 -1
  184. package/dist/components/react/MultiSelect/MultiSelect.stories.d.ts +0 -7
  185. package/dist/components/react/MultiSelect/MultiSelect.stories.js +0 -37
  186. package/dist/components/react/MultiSelect/MultiSelect.stories.js.map +0 -1
  187. package/dist/components/react/OutlineButton/OutlineButton.stories.d.ts +0 -7
  188. package/dist/components/react/OutlineButton/OutlineButton.stories.js +0 -86
  189. package/dist/components/react/OutlineButton/OutlineButton.stories.js.map +0 -1
  190. package/dist/components/react/RadioInput/RadioInput.stories.d.ts +0 -7
  191. package/dist/components/react/RadioInput/RadioInput.stories.js +0 -53
  192. package/dist/components/react/RadioInput/RadioInput.stories.js.map +0 -1
  193. package/dist/components/react/Select/Select.stories.d.ts +0 -7
  194. package/dist/components/react/Select/Select.stories.js +0 -36
  195. package/dist/components/react/Select/Select.stories.js.map +0 -1
  196. package/dist/components/react/Switch/Switch.stories.d.ts +0 -7
  197. package/dist/components/react/Switch/Switch.stories.js +0 -53
  198. package/dist/components/react/Switch/Switch.stories.js.map +0 -1
  199. package/dist/components/react/TextArea/TextArea.stories.d.ts +0 -5
  200. package/dist/components/react/TextArea/TextArea.stories.js +0 -22
  201. package/dist/components/react/TextArea/TextArea.stories.js.map +0 -1
  202. package/dist/components/react/TextInput/TextInput.stories.d.ts +0 -8
  203. package/dist/components/react/TextInput/TextInput.stories.js +0 -85
  204. package/dist/components/react/TextInput/TextInput.stories.js.map +0 -1
  205. package/dist/components/react/TransparentButton/TransparentButton.stories.d.ts +0 -7
  206. package/dist/components/react/TransparentButton/TransparentButton.stories.js +0 -53
  207. package/dist/components/react/TransparentButton/TransparentButton.stories.js.map +0 -1
  208. package/dist/stories/base-colors/base-colors.stories.d.ts +0 -4
  209. package/dist/stories/base-colors/base-colors.stories.js +0 -65
  210. package/dist/stories/base-colors/base-colors.stories.js.map +0 -1
  211. package/dist/stories/gradients/gradients.stories.d.ts +0 -4
  212. package/dist/stories/gradients/gradients.stories.js +0 -28
  213. package/dist/stories/gradients/gradients.stories.js.map +0 -1
  214. package/dist/stories/shadows/shadows.stories.d.ts +0 -4
  215. package/dist/stories/shadows/shadows.stories.js +0 -26
  216. package/dist/stories/shadows/shadows.stories.js.map +0 -1
@@ -1,86 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OutlineButton = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var styled_components_1 = tslib_1.__importDefault(require("styled-components"));
7
- var md_1 = require("react-icons/md");
8
- var OutlineButton_1 = tslib_1.__importDefault(require("./OutlineButton"));
9
- var OutlineButton_variants_1 = require("./OutlineButton.variants");
10
- var Container = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 1rem;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 1rem;\n"])));
11
- var OutlineButton = function (props) {
12
- return (react_1.default.createElement(Container, null,
13
- react_1.default.createElement(OutlineButton_1.default, tslib_1.__assign({}, props)),
14
- react_1.default.createElement(OutlineButton_1.default, tslib_1.__assign({}, props, { leftIcon: react_1.default.createElement(md_1.MdCheck, null) })),
15
- react_1.default.createElement(OutlineButton_1.default, tslib_1.__assign({}, props, { rightIcon: react_1.default.createElement(md_1.MdCheck, null) })),
16
- react_1.default.createElement(OutlineButton_1.default, tslib_1.__assign({}, props, { leftIcon: react_1.default.createElement(md_1.MdCheck, null), rightIcon: react_1.default.createElement(md_1.MdCheck, null) }))));
17
- };
18
- exports.OutlineButton = OutlineButton;
19
- exports.default = {
20
- title: 'Buttons/OutlineButton',
21
- parameters: {
22
- component: exports.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(OutlineButton_variants_1.OUTLINE_BUTTON_VARIANTS.color),
49
- },
50
- },
51
- size: {
52
- control: {
53
- type: 'select',
54
- options: Object.keys(OutlineButton_variants_1.OUTLINE_BUTTON_VARIANTS.size),
55
- },
56
- },
57
- shape: {
58
- control: {
59
- type: 'select',
60
- options: Object.keys(OutlineButton_variants_1.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
- var templateObject_1;
86
- //# sourceMappingURL=OutlineButton.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OutlineButton.stories.js","sourceRoot":"","sources":["../../../../src/components/react/OutlineButton/OutlineButton.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AACzB,gFAAsC;AAEtC,qCAAwC;AAExC,0EAA6C;AAC7C,mEAAkE;AAIlE,IAAM,SAAS,GAAG,2BAAM,CAAC,GAAG,sKAAA,2FAK3B,IAAA,CAAA;AAEM,IAAM,aAAa,GAAG,UAAC,KAAY;IACxC,OAAO,CACL,8BAAC,SAAS;QACR,8BAAC,uBAAe,uBAAK,KAAK,EAAI;QAC9B,8BAAC,uBAAe,uBAAK,KAAK,IAAE,QAAQ,EAAE,8BAAC,YAAO,OAAG,IAAI;QACrD,8BAAC,uBAAe,uBAAK,KAAK,IAAE,SAAS,EAAE,8BAAC,YAAO,OAAG,IAAI;QACtD,8BAAC,uBAAe,uBACV,KAAK,IACT,QAAQ,EAAE,8BAAC,YAAO,OAAG,EACrB,SAAS,EAAE,8BAAC,YAAO,OAAG,IACtB,CACQ,CACb,CAAA;AACH,CAAC,CAAA;AAbY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storybook/react/types-6-0';
3
- import RadioInputComponent from './RadioInput';
4
- type Props = React.ComponentProps<typeof RadioInputComponent>;
5
- export declare const RadioInput: (props: Props) => JSX.Element;
6
- declare const _default: Meta;
7
- export default _default;
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RadioInput = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var RadioInput_1 = tslib_1.__importDefault(require("./RadioInput"));
7
- var RadioInput_variants_1 = require("./RadioInput.variants");
8
- var RadioInput = function (props) {
9
- return react_1.default.createElement(RadioInput_1.default, tslib_1.__assign({}, props));
10
- };
11
- exports.RadioInput = RadioInput;
12
- exports.default = {
13
- title: 'Inputs/RadioInput',
14
- parameters: {
15
- component: exports.RadioInput,
16
- },
17
- args: {
18
- variant: 'primary',
19
- size: 'MD',
20
- checked: false,
21
- disabled: false,
22
- },
23
- argTypes: {
24
- variant: {
25
- control: {
26
- type: 'select',
27
- options: Object.keys(RadioInput_variants_1.DEFAULT_RADIO_VARIANTS.color),
28
- },
29
- },
30
- size: {
31
- control: {
32
- type: 'select',
33
- options: Object.keys(RadioInput_variants_1.DEFAULT_RADIO_VARIANTS.size),
34
- },
35
- },
36
- checked: {
37
- control: {
38
- type: 'boolean',
39
- },
40
- },
41
- disabled: {
42
- control: {
43
- type: 'boolean',
44
- },
45
- },
46
- onCheckedChange: {
47
- control: {
48
- action: 'changed',
49
- },
50
- },
51
- },
52
- };
53
- //# sourceMappingURL=RadioInput.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioInput.stories.js","sourceRoot":"","sources":["../../../../src/components/react/RadioInput/RadioInput.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,oEAA8C;AAC9C,6DAA8D;AAIvD,IAAM,UAAU,GAAG,UAAC,KAAY;IACrC,OAAO,8BAAC,oBAAmB,uBAAK,KAAK,EAAI,CAAA;AAC3C,CAAC,CAAA;AAFY,QAAA,UAAU,cAEtB;AAED,kBAAe;IACb,KAAK,EAAE,mBAAmB;IAC1B,UAAU,EAAE;QACV,SAAS,EAAE,kBAAU;KACtB;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,4CAAsB,CAAC,KAAK,CAAC;aACnD;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,4CAAsB,CAAC,IAAI,CAAC;aAClD;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,eAAe,EAAE;YACf,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;KACF;CACM,CAAA"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { Meta } from '@storybook/react/types-6-0';
3
- import SelectComponent from './Select';
4
- type Props = React.ComponentProps<typeof SelectComponent>;
5
- export declare const Select: (props: Props) => JSX.Element;
6
- declare const _default: Meta;
7
- export default _default;
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Select = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var Select_1 = tslib_1.__importDefault(require("./Select"));
7
- var options = [
8
- { value: 'one', label: 'One' },
9
- { value: 'two', label: 'Two' },
10
- { value: 'three', label: 'Three' },
11
- ];
12
- var Select = function (props) {
13
- return react_1.default.createElement(Select_1.default, tslib_1.__assign({}, props, { options: options, className: "w-96" }));
14
- };
15
- exports.Select = Select;
16
- exports.default = {
17
- title: 'Inputs/Select',
18
- args: {
19
- placeholder: 'Selecione...',
20
- shape: 'none',
21
- fill: false,
22
- isDisabled: false,
23
- isLoading: false,
24
- hideSelectedOptions: false,
25
- },
26
- argTypes: {
27
- shape: {
28
- control: {
29
- type: 'select',
30
- options: ['square', 'rounded', 'line', 'none'],
31
- },
32
- },
33
- onChange: { action: 'changed' },
34
- },
35
- };
36
- //# sourceMappingURL=Select.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Select.stories.js","sourceRoot":"","sources":["../../../../src/components/react/Select/Select.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,4DAAsC;AAItC,IAAM,OAAO,GAAG;IACd,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;IAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;IAC9B,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;CACnC,CAAA;AAEM,IAAM,MAAM,GAAG,UAAC,KAAY;IACjC,OAAO,8BAAC,gBAAe,uBAAK,KAAK,IAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,MAAM,IAAG,CAAA;AAC1E,CAAC,CAAA;AAFY,QAAA,MAAM,UAElB;AAED,kBAAe;IACb,KAAK,EAAE,eAAe;IACtB,IAAI,EAAE;QACJ,WAAW,EAAE,cAAc;QAC3B,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,KAAK;QACX,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE,KAAK;QAChB,mBAAmB,EAAE,KAAK;KAC3B;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC;aAC/C;SACF;QACD,QAAQ,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;KAChC;CACM,CAAA"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { Meta } from '@storybook/react/types-6-0';
3
- import SwitchComponent from './Switch';
4
- type Props = React.ComponentProps<typeof SwitchComponent>;
5
- export declare const Switch: (props: Props) => JSX.Element;
6
- declare const _default: Meta;
7
- export default _default;
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Switch = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var Switch_1 = tslib_1.__importDefault(require("./Switch"));
7
- var Switch_variants_1 = require("./Switch.variants");
8
- var Switch = function (props) {
9
- return react_1.default.createElement(Switch_1.default, tslib_1.__assign({}, props));
10
- };
11
- exports.Switch = Switch;
12
- exports.default = {
13
- title: 'Inputs/Switch',
14
- parameters: {
15
- component: exports.Switch,
16
- },
17
- args: {
18
- variant: 'primary',
19
- size: 'MD',
20
- checked: false,
21
- disabled: false,
22
- },
23
- argTypes: {
24
- variant: {
25
- control: {
26
- type: 'select',
27
- options: Object.keys(Switch_variants_1.DEFAULT_SWITCH_VARIANTS.color),
28
- },
29
- },
30
- size: {
31
- control: {
32
- type: 'select',
33
- options: Object.keys(Switch_variants_1.DEFAULT_SWITCH_VARIANTS.size),
34
- },
35
- },
36
- checked: {
37
- control: {
38
- type: 'boolean',
39
- },
40
- },
41
- disabled: {
42
- control: {
43
- type: 'boolean',
44
- },
45
- },
46
- onCheckedChange: {
47
- control: {
48
- action: 'changed',
49
- },
50
- },
51
- },
52
- };
53
- //# sourceMappingURL=Switch.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Switch.stories.js","sourceRoot":"","sources":["../../../../src/components/react/Switch/Switch.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,4DAAsC;AACtC,qDAA2D;AAIpD,IAAM,MAAM,GAAG,UAAC,KAAY;IACjC,OAAO,8BAAC,gBAAe,uBAAK,KAAK,EAAI,CAAA;AACvC,CAAC,CAAA;AAFY,QAAA,MAAM,UAElB;AAED,kBAAe;IACb,KAAK,EAAE,eAAe;IACtB,UAAU,EAAE;QACV,SAAS,EAAE,cAAM;KAClB;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,yCAAuB,CAAC,KAAK,CAAC;aACpD;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,yCAAuB,CAAC,IAAI,CAAC;aACnD;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,eAAe,EAAE;YACf,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;KACF;CACM,CAAA"}
@@ -1,5 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { TextAreaProps } from './TextArea';
3
- export declare const TextArea: (args: TextAreaProps) => JSX.Element;
4
- declare const _default: Meta<TextAreaProps>;
5
- export default _default;
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextArea = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var TextArea_1 = tslib_1.__importDefault(require("./TextArea"));
7
- var TextArea = function (args) { return (react_1.default.createElement(TextArea_1.default, tslib_1.__assign({}, args, { className: "h-36 w-96" }))); };
8
- exports.TextArea = TextArea;
9
- exports.default = {
10
- title: 'Inputs/TextArea',
11
- component: exports.TextArea,
12
- args: {
13
- fill: true,
14
- resize: true,
15
- disabled: false,
16
- placeholder: 'Escreva...',
17
- },
18
- argTypes: {
19
- onChange: { action: 'onChange' },
20
- },
21
- };
22
- //# sourceMappingURL=TextArea.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextArea.stories.js","sourceRoot":"","sources":["../../../../src/components/react/TextArea/TextArea.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,gEAA6D;AAEtD,IAAM,QAAQ,GAAG,UAAC,IAAmB,IAAK,OAAA,CAC/C,8BAAC,kBAAiB,uBAAK,IAAI,IAAE,SAAS,EAAC,WAAW,IAAG,CACtD,EAFgD,CAEhD,CAAA;AAFY,QAAA,QAAQ,YAEpB;AAED,kBAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,gBAAQ;IACnB,IAAI,EAAE;QACJ,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,YAAY;KAC1B;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE;KACjC;CACqB,CAAA"}
@@ -1,8 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { TextInputProps } from './TextInput';
3
- export declare const Default: (args: TextInputProps) => JSX.Element;
4
- export declare const TelephoneMaskedInput: (args: TextInputProps) => JSX.Element;
5
- export declare const CPFMaskedInput: (args: TextInputProps) => JSX.Element;
6
- export declare const Icons: () => JSX.Element;
7
- declare const _default: Meta<TextInputProps>;
8
- export default _default;
@@ -1,85 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Icons = exports.CPFMaskedInput = exports.TelephoneMaskedInput = exports.Default = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var TextInput_1 = tslib_1.__importDefault(require("./TextInput"));
7
- var Default = function (args) { return (react_1.default.createElement(TextInput_1.default, tslib_1.__assign({}, args, { className: "w-64" }))); };
8
- exports.Default = Default;
9
- var TelephoneMaskedInput = function (args) { return (react_1.default.createElement(TextInput_1.default, tslib_1.__assign({}, args, { className: "w-64", mask: "+55 (99) 99999-9999" }))); };
10
- exports.TelephoneMaskedInput = TelephoneMaskedInput;
11
- var CPFMaskedInput = function (args) { return (react_1.default.createElement(TextInput_1.default, tslib_1.__assign({}, args, { className: "w-64", mask: "999.999.999-99" }))); };
12
- exports.CPFMaskedInput = CPFMaskedInput;
13
- var Icons = function () { return (react_1.default.createElement("div", { className: "flex gap-4" },
14
- react_1.default.createElement(TextInput_1.default.SearchIcon, null),
15
- react_1.default.createElement(TextInput_1.default.ClearIcon, null),
16
- react_1.default.createElement(TextInput_1.default.ErrorIcon, null),
17
- react_1.default.createElement(TextInput_1.default.SuccessIcon, null),
18
- react_1.default.createElement(TextInput_1.default.PhoneIcon, null))); };
19
- exports.Icons = Icons;
20
- exports.default = {
21
- title: 'Inputs/TextInput',
22
- component: exports.Default,
23
- args: {
24
- shape: 'square',
25
- fill: false,
26
- isValid: false,
27
- isErrored: false,
28
- leftIcon: react_1.default.createElement(TextInput_1.default.SearchIcon, null),
29
- rightIcon: react_1.default.createElement(TextInput_1.default.ClearIcon, null),
30
- paintLeftIcon: false,
31
- paintRightIcon: true,
32
- disabled: false,
33
- placeholder: '',
34
- mask: '',
35
- maskPlaceholder: '_',
36
- alwaysShowMask: false,
37
- },
38
- argTypes: {
39
- mask: {
40
- control: {
41
- type: 'text',
42
- },
43
- },
44
- maskPlaceholder: {
45
- control: {
46
- type: 'text',
47
- },
48
- },
49
- shape: {
50
- control: {
51
- type: 'select',
52
- options: ['square', 'round', 'line', 'none'],
53
- },
54
- },
55
- leftIcon: {
56
- table: {
57
- disable: true,
58
- },
59
- },
60
- onLeftIconClick: {
61
- control: {
62
- action: 'clicked',
63
- },
64
- },
65
- onRightIconClick: {
66
- control: {
67
- action: 'clicked',
68
- },
69
- },
70
- rightIcon: {
71
- table: {
72
- disable: true,
73
- },
74
- },
75
- children: {
76
- table: {
77
- disable: true,
78
- },
79
- },
80
- argTypes: {
81
- onChange: { action: 'onChange' },
82
- },
83
- },
84
- };
85
- //# sourceMappingURL=TextInput.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextInput.stories.js","sourceRoot":"","sources":["../../../../src/components/react/TextInput/TextInput.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,kEAAgE;AAEzD,IAAM,OAAO,GAAG,UAAC,IAAoB,IAAK,OAAA,CAC/C,8BAAC,mBAAkB,uBAAK,IAAI,IAAE,SAAS,EAAC,MAAM,IAAG,CAClD,EAFgD,CAEhD,CAAA;AAFY,QAAA,OAAO,WAEnB;AAEM,IAAM,oBAAoB,GAAG,UAAC,IAAoB,IAAK,OAAA,CAC5D,8BAAC,mBAAkB,uBAAK,IAAI,IAAE,SAAS,EAAC,MAAM,EAAC,IAAI,EAAC,qBAAqB,IAAG,CAC7E,EAF6D,CAE7D,CAAA;AAFY,QAAA,oBAAoB,wBAEhC;AAEM,IAAM,cAAc,GAAG,UAAC,IAAoB,IAAK,OAAA,CACtD,8BAAC,mBAAkB,uBAAK,IAAI,IAAE,SAAS,EAAC,MAAM,EAAC,IAAI,EAAC,gBAAgB,IAAG,CACxE,EAFuD,CAEvD,CAAA;AAFY,QAAA,cAAc,kBAE1B;AAEM,IAAM,KAAK,GAAG,cAAM,OAAA,CACzB,uCAAK,SAAS,EAAC,YAAY;IACzB,8BAAC,mBAAkB,CAAC,UAAU,OAAG;IACjC,8BAAC,mBAAkB,CAAC,SAAS,OAAG;IAChC,8BAAC,mBAAkB,CAAC,SAAS,OAAG;IAChC,8BAAC,mBAAkB,CAAC,WAAW,OAAG;IAClC,8BAAC,mBAAkB,CAAC,SAAS,OAAG,CAC5B,CACP,EAR0B,CAQ1B,CAAA;AARY,QAAA,KAAK,SAQjB;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'@storybook/react/types-6-0';
3
- import ButtonComponent from './TransparentButton';
4
- type Props = React.ComponentProps<typeof ButtonComponent>;
5
- export declare const TransparentButton: (props: Props) => JSX.Element;
6
- declare const _default: Meta;
7
- export default _default;
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransparentButton = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var TransparentButton_1 = tslib_1.__importDefault(require("./TransparentButton"));
7
- var TransparentButton_variants_1 = require("./TransparentButton.variants");
8
- var TransparentButton = function (props) {
9
- return react_1.default.createElement(TransparentButton_1.default, tslib_1.__assign({}, props));
10
- };
11
- exports.TransparentButton = TransparentButton;
12
- exports.default = {
13
- title: 'Buttons/TransparentButton',
14
- parameters: {
15
- component: exports.TransparentButton,
16
- },
17
- args: {
18
- children: 'Button',
19
- variant: 'primary',
20
- size: 'MD',
21
- disabled: false,
22
- },
23
- argTypes: {
24
- children: {
25
- control: {
26
- type: 'text',
27
- },
28
- },
29
- variant: {
30
- control: {
31
- type: 'select',
32
- options: Object.keys(TransparentButton_variants_1.TRANSPARENT_BUTTON_VARIANTS.color),
33
- },
34
- },
35
- size: {
36
- control: {
37
- type: 'select',
38
- options: Object.keys(TransparentButton_variants_1.TRANSPARENT_BUTTON_VARIANTS.size),
39
- },
40
- },
41
- disabled: {
42
- control: {
43
- type: 'boolean',
44
- },
45
- },
46
- onClick: {
47
- control: {
48
- action: 'clicked',
49
- },
50
- },
51
- },
52
- };
53
- //# sourceMappingURL=TransparentButton.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TransparentButton.stories.js","sourceRoot":"","sources":["../../../../src/components/react/TransparentButton/TransparentButton.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,kFAAiD;AACjD,2EAA0E;AAInE,IAAM,iBAAiB,GAAG,UAAC,KAAY;IAC5C,OAAO,8BAAC,2BAAe,uBAAK,KAAK,EAAI,CAAA;AACvC,CAAC,CAAA;AAFY,QAAA,iBAAiB,qBAE7B;AAED,kBAAe;IACb,KAAK,EAAE,2BAA2B;IAClC,UAAU,EAAE;QACV,SAAS,EAAE,yBAAiB;KAC7B;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,QAAQ;QAClB,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,KAAK;KAChB;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,wDAA2B,CAAC,KAAK,CAAC;aACxD;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,wDAA2B,CAAC,IAAI,CAAC;aACvD;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"}
@@ -1,4 +0,0 @@
1
- import { Meta } from '@storybook/react/types-6-0';
2
- export declare const BaseColors: () => JSX.Element;
3
- declare const _default: Meta;
4
- export default _default;
@@ -1,65 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BaseColors = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var base_colors_1 = require("../../colors/base-colors");
7
- var base_colors_stories_styles_1 = require("./base-colors.stories.styles");
8
- var getColorValue = function (color) {
9
- var colorParts = color.split('.');
10
- var colorValue = base_colors_1.COLORS;
11
- colorParts.forEach(function (colorPart) {
12
- colorValue = colorValue[colorPart];
13
- });
14
- return colorValue;
15
- };
16
- var handleCopyToClipboard = function (hex) {
17
- navigator.clipboard.writeText(hex);
18
- };
19
- var BaseColors = function () {
20
- var flattenedColors = Object.entries(base_colors_1.COLORS).reduce(function (acc, _a) {
21
- var _b;
22
- var key = _a[0], value = _a[1];
23
- if (typeof value === 'object') {
24
- var newKeys = Object.keys(value).map(function (k) { return "".concat(key, ".").concat(k); });
25
- var newValues_1 = Object.values(value);
26
- return tslib_1.__assign(tslib_1.__assign({}, acc), Object.fromEntries(newKeys.map(function (k, i) { return [k, newValues_1[i]]; })));
27
- }
28
- return tslib_1.__assign(tslib_1.__assign({}, acc), (_b = {}, _b[key] = value, _b));
29
- }, {});
30
- var uniqueFlattenedColors = Object.entries(flattenedColors).reduce(function (acc, _a) {
31
- var _b;
32
- var key = _a[0], value = _a[1];
33
- if (Object.values(acc).includes(value)) {
34
- return acc;
35
- }
36
- return tslib_1.__assign(tslib_1.__assign({}, acc), (_b = {}, _b[key] = value, _b));
37
- }, {});
38
- return (react_1.default.createElement(base_colors_stories_styles_1.BaseColorsContainer, null, Object.keys(uniqueFlattenedColors).map(function (key) {
39
- var colorHex = getColorValue(key);
40
- var aliases = Object.entries(flattenedColors)
41
- .filter(function (_a) {
42
- var k = _a[0], v = _a[1];
43
- return v === colorHex && k !== key;
44
- })
45
- .map(function (_a) {
46
- var k = _a[0];
47
- return k;
48
- })
49
- .join(', ');
50
- return (react_1.default.createElement("button", { key: key, className: "color-item", onClick: function () { return handleCopyToClipboard(colorHex); } },
51
- react_1.default.createElement(base_colors_stories_styles_1.StyledSquare, { color: colorHex, title: colorHex }),
52
- react_1.default.createElement("div", { title: key, className: "color-item__name" },
53
- react_1.default.createElement("span", { className: "color-item__name__hex" }, colorHex.toUpperCase()),
54
- react_1.default.createElement("span", { className: "color-item__name__key" }, key),
55
- react_1.default.createElement("span", { className: "color-item__name__aliases" }, aliases))));
56
- })));
57
- };
58
- exports.BaseColors = BaseColors;
59
- exports.default = {
60
- title: 'Fundation/Colors',
61
- parameters: {
62
- component: exports.BaseColors,
63
- },
64
- };
65
- //# sourceMappingURL=base-colors.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-colors.stories.js","sourceRoot":"","sources":["../../../src/stories/base-colors/base-colors.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,oDAA6C;AAE7C,2EAAgF;AAEhF,IAAM,aAAa,GAAG,UAAC,KAAa;IAClC,IAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACnC,IAAI,UAAU,GAAQ,oBAAM,CAAA;IAC5B,UAAU,CAAC,OAAO,CAAC,UAAC,SAAS;QAC3B,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,CAAA;IACpC,CAAC,CAAC,CAAA;IAEF,OAAO,UAAU,CAAA;AACnB,CAAC,CAAA;AAED,IAAM,qBAAqB,GAAG,UAAC,GAAW;IACxC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;AACpC,CAAC,CAAA;AAEM,IAAM,UAAU,GAAG;IACxB,IAAM,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC,oBAAM,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,EAAY;;YAAX,GAAG,QAAA,EAAE,KAAK,QAAA;QACrE,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,IAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,UAAG,GAAG,cAAI,CAAC,CAAE,EAAb,CAAa,CAAa,CAAA;YACxE,IAAM,WAAS,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAa,CAAA;YAElD,6CACK,GAAG,GACH,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,CAAC,EAAE,WAAS,CAAC,CAAC,CAAC,CAAC,EAAjB,CA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AAuB,IACpC,QAAQ,CAAC,WAAW,EAAE,CAClB;gBACP,wCAAM,SAAS,EAAC,uBAAuB,IAAE,GAAG,CAAQ;gBACpD,wCAAM,SAAS,EAAC,2BAA2B,IAAE,OAAO,CAAQ,CACxD,CACC,CACV,CAAA;IACH,CAAC,CAAC,CACkB,CACvB,CAAA;AACH,CAAC,CAAA;AA5DY,QAAA,UAAU,cA4DtB;AAED,kBAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,UAAU,EAAE;QACV,SAAS,EAAE,kBAAU;KACtB;CACM,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Meta } from '@storybook/react/types-6-0';
2
- export declare const Gradients: () => JSX.Element;
3
- declare const _default: Meta;
4
- export default _default;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Gradients = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var gradients_1 = require("../../colors/gradients");
7
- var gradients_stories_styles_1 = require("./gradients.stories.styles");
8
- var handleCopyToClipboard = function (hex) {
9
- navigator.clipboard.writeText(hex);
10
- };
11
- var Gradients = function () {
12
- return (react_1.default.createElement(gradients_stories_styles_1.BaseColorsContainer, null, Object.entries(gradients_1.GRADIENTS).map(function (_a) {
13
- var key = _a[0], value = _a[1];
14
- return (react_1.default.createElement("button", { key: key, className: "color-item", onClick: function () { return handleCopyToClipboard(value); } },
15
- react_1.default.createElement(gradients_stories_styles_1.StyledSquare, { gradient: value }),
16
- react_1.default.createElement("div", { title: key, className: "color-item__name" },
17
- react_1.default.createElement("span", { className: "color-item__name__key" }, key),
18
- react_1.default.createElement("span", { className: "color-item__name__value" }, value))));
19
- })));
20
- };
21
- exports.Gradients = Gradients;
22
- exports.default = {
23
- title: 'Fundation/Colors',
24
- parameters: {
25
- component: exports.Gradients,
26
- },
27
- };
28
- //# sourceMappingURL=gradients.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gradients.stories.js","sourceRoot":"","sources":["../../../src/stories/gradients/gradients.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,gDAA8C;AAE9C,uEAA8E;AAE9E,IAAM,qBAAqB,GAAG,UAAC,GAAW;IACxC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;AACpC,CAAC,CAAA;AAEM,IAAM,SAAS,GAAG;IACvB,OAAO,CACL,8BAAC,8CAAmB,QACjB,MAAM,CAAC,OAAO,CAAC,qBAAS,CAAC,CAAC,GAAG,CAAC,UAAC,EAAY;YAAX,GAAG,QAAA,EAAE,KAAK,QAAA;QACzC,OAAO,CACL,0CACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,YAAY,EACtB,OAAO,EAAE,cAAM,OAAA,qBAAqB,CAAC,KAAK,CAAC,EAA5B,CAA4B;YAE3C,8BAAC,uCAAY,IAAC,QAAQ,EAAE,KAAK,GAAI;YACjC,uCAAK,KAAK,EAAE,GAAG,EAAE,SAAS,EAAC,kBAAkB;gBAC3C,wCAAM,SAAS,EAAC,uBAAuB,IAAE,GAAG,CAAQ;gBACpD,wCAAM,SAAS,EAAC,yBAAyB,IAAE,KAAK,CAAQ,CACpD,CACC,CACV,CAAA;IACH,CAAC,CAAC,CACkB,CACvB,CAAA;AACH,CAAC,CAAA;AApBY,QAAA,SAAS,aAoBrB;AAED,kBAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,UAAU,EAAE;QACV,SAAS,EAAE,iBAAS;KACrB;CACM,CAAA"}
@@ -1,4 +0,0 @@
1
- import { Meta } from '@storybook/react/types-6-0';
2
- export declare const Shadows: () => JSX.Element;
3
- declare const _default: Meta;
4
- export default _default;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Shadows = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = tslib_1.__importDefault(require("react"));
6
- var shadows_1 = require("../../colors/shadows");
7
- var shadows_stories_styles_1 = require("./shadows.stories.styles");
8
- var handleCopyToClipboard = function (hex) {
9
- navigator.clipboard.writeText(hex);
10
- };
11
- var Shadows = function () {
12
- return (react_1.default.createElement(shadows_stories_styles_1.BaseColorsContainer, null, Object.entries(shadows_1.SHADOWS).map(function (_a) {
13
- var key = _a[0], value = _a[1];
14
- return (react_1.default.createElement(shadows_stories_styles_1.StyledSquare, { boxShadow: value, title: key, key: key, onClick: function () { return handleCopyToClipboard(value); } },
15
- react_1.default.createElement("span", { className: "item__name__key" }, key),
16
- react_1.default.createElement("span", { className: "item__name__value" }, value)));
17
- })));
18
- };
19
- exports.Shadows = Shadows;
20
- exports.default = {
21
- title: 'Fundation/Colors',
22
- parameters: {
23
- component: exports.Shadows,
24
- },
25
- };
26
- //# sourceMappingURL=shadows.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shadows.stories.js","sourceRoot":"","sources":["../../../src/stories/shadows/shadows.stories.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AAGzB,4CAA0C;AAE1C,mEAA4E;AAE5E,IAAM,qBAAqB,GAAG,UAAC,GAAW;IACxC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;AACpC,CAAC,CAAA;AAEM,IAAM,OAAO,GAAG;IACrB,OAAO,CACL,8BAAC,4CAAmB,QACjB,MAAM,CAAC,OAAO,CAAC,iBAAO,CAAC,CAAC,GAAG,CAAC,UAAC,EAAY;YAAX,GAAG,QAAA,EAAE,KAAK,QAAA;QACvC,OAAO,CACL,8BAAC,qCAAY,IACX,SAAS,EAAE,KAAK,EAChB,KAAK,EAAE,GAAG,EACV,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,cAAM,OAAA,qBAAqB,CAAC,KAAK,CAAC,EAA5B,CAA4B;YAE3C,wCAAM,SAAS,EAAC,iBAAiB,IAAE,GAAG,CAAQ;YAC9C,wCAAM,SAAS,EAAC,mBAAmB,IAAE,KAAK,CAAQ,CACrC,CAChB,CAAA;IACH,CAAC,CAAC,CACkB,CACvB,CAAA;AACH,CAAC,CAAA;AAlBY,QAAA,OAAO,WAkBnB;AAED,kBAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,UAAU,EAAE;QACV,SAAS,EAAE,eAAO;KACnB;CACM,CAAA"}