w-design-system 0.0.1 → 0.0.2

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 (108) hide show
  1. package/dist/App.d.ts.map +1 -1
  2. package/dist/App.js +1 -1
  3. package/dist/App.js.map +1 -1
  4. package/dist/components/Banner/index.d.ts +1 -2
  5. package/dist/components/Banner/index.d.ts.map +1 -1
  6. package/dist/components/Banner/index.js +3 -4
  7. package/dist/components/Banner/index.js.map +1 -1
  8. package/dist/components/Banner/stories.d.ts +1 -1
  9. package/dist/components/Banner/stories.d.ts.map +1 -1
  10. package/dist/components/Banner/stories.js +1 -1
  11. package/dist/components/Banner/stories.js.map +1 -1
  12. package/dist/components/Button/index.d.ts +4 -0
  13. package/dist/components/Button/index.d.ts.map +1 -0
  14. package/dist/components/Button/index.js +21 -0
  15. package/dist/components/Button/index.js.map +1 -0
  16. package/dist/components/Button/stories.d.ts +14 -0
  17. package/dist/components/Button/stories.d.ts.map +1 -0
  18. package/dist/components/Button/stories.js +88 -0
  19. package/dist/components/Button/stories.js.map +1 -0
  20. package/dist/components/Button/styles.d.ts +4 -0
  21. package/dist/components/Button/styles.d.ts.map +1 -0
  22. package/dist/components/Button/styles.js +194 -0
  23. package/dist/components/Button/styles.js.map +1 -0
  24. package/dist/components/Button/test.d.ts +2 -0
  25. package/dist/components/Button/test.d.ts.map +1 -0
  26. package/{src/components/Button /test.tsx → dist/components/Button/test.js} +6 -9
  27. package/dist/components/Button/test.js.map +1 -0
  28. package/dist/components/ButtonRadiusIcon/index.d.ts +1 -2
  29. package/dist/components/ButtonRadiusIcon/index.d.ts.map +1 -1
  30. package/dist/components/ButtonRadiusIcon/index.js +2 -3
  31. package/dist/components/ButtonRadiusIcon/index.js.map +1 -1
  32. package/dist/components/ButtonRadiusIcon/stories.d.ts +1 -1
  33. package/dist/components/ButtonRadiusIcon/stories.d.ts.map +1 -1
  34. package/dist/components/ButtonRadiusIcon/stories.js +1 -1
  35. package/dist/components/ButtonRadiusIcon/stories.js.map +1 -1
  36. package/dist/components/ButtonRound/index.d.ts +1 -2
  37. package/dist/components/ButtonRound/index.d.ts.map +1 -1
  38. package/dist/components/ButtonRound/index.js +2 -3
  39. package/dist/components/ButtonRound/index.js.map +1 -1
  40. package/dist/components/ButtonRound/stories.d.ts +1 -1
  41. package/dist/components/ButtonRound/stories.d.ts.map +1 -1
  42. package/dist/components/ButtonRound/stories.js +1 -1
  43. package/dist/components/ButtonRound/stories.js.map +1 -1
  44. package/dist/components/IconWrapper/index.d.ts +2 -2
  45. package/dist/components/IconWrapper/index.d.ts.map +1 -1
  46. package/dist/components/IconWrapper/index.js +1 -2
  47. package/dist/components/IconWrapper/index.js.map +1 -1
  48. package/dist/components/Modal/index.d.ts +1 -2
  49. package/dist/components/Modal/index.d.ts.map +1 -1
  50. package/dist/components/Modal/index.js +3 -4
  51. package/dist/components/Modal/index.js.map +1 -1
  52. package/dist/components/Modal/stories.d.ts +1 -1
  53. package/dist/components/Modal/stories.d.ts.map +1 -1
  54. package/dist/components/Modal/stories.js +3 -3
  55. package/dist/components/Modal/stories.js.map +1 -1
  56. package/dist/components/Paragraph/index.d.ts +2 -2
  57. package/dist/components/Paragraph/index.d.ts.map +1 -1
  58. package/dist/components/Paragraph/index.js +1 -2
  59. package/dist/components/Paragraph/index.js.map +1 -1
  60. package/dist/components/Paragraph/stories.d.ts +1 -1
  61. package/dist/components/Paragraph/stories.d.ts.map +1 -1
  62. package/dist/components/Paragraph/stories.js +1 -1
  63. package/dist/components/Paragraph/stories.js.map +1 -1
  64. package/dist/components/Tabs/index.d.ts +1 -2
  65. package/dist/components/Tabs/index.d.ts.map +1 -1
  66. package/dist/components/Tabs/index.js +1 -2
  67. package/dist/components/Tabs/index.js.map +1 -1
  68. package/dist/components/Tabs/stories.d.ts +1 -1
  69. package/dist/components/Tabs/stories.d.ts.map +1 -1
  70. package/dist/components/Tabs/stories.js +2 -2
  71. package/dist/components/Tabs/stories.js.map +1 -1
  72. package/dist/components/Title/index.d.ts +2 -2
  73. package/dist/components/Title/index.d.ts.map +1 -1
  74. package/dist/components/Title/index.js +1 -2
  75. package/dist/components/Title/index.js.map +1 -1
  76. package/dist/components/Title/stories.d.ts +1 -1
  77. package/dist/components/Title/stories.d.ts.map +1 -1
  78. package/dist/components/Title/stories.js +1 -1
  79. package/dist/components/Title/stories.js.map +1 -1
  80. package/dist/index.d.ts +10 -1
  81. package/dist/index.d.ts.map +1 -1
  82. package/dist/index.js +10 -12
  83. package/dist/index.js.map +1 -1
  84. package/package.json +1 -1
  85. package/src/App.tsx +1 -2
  86. package/src/assets/icon/svg.d.ts +1 -4
  87. package/src/components/Banner/index.tsx +3 -5
  88. package/src/components/Banner/stories.tsx +1 -1
  89. package/src/components/{Button /index.tsx → Button/index.tsx} +2 -4
  90. package/src/components/{Button /stories.tsx → Button/stories.tsx} +1 -1
  91. package/src/components/Button/test.tsx +44 -0
  92. package/src/components/ButtonRadiusIcon/index.tsx +2 -4
  93. package/src/components/ButtonRadiusIcon/stories.tsx +1 -1
  94. package/src/components/ButtonRound/index.tsx +2 -4
  95. package/src/components/ButtonRound/stories.tsx +1 -1
  96. package/src/components/IconWrapper/index.tsx +1 -3
  97. package/src/components/Modal/index.tsx +3 -5
  98. package/src/components/Modal/stories.tsx +3 -3
  99. package/src/components/Paragraph/index.tsx +1 -3
  100. package/src/components/Paragraph/stories.tsx +84 -84
  101. package/src/components/Tabs/index.tsx +1 -3
  102. package/src/components/Tabs/stories.tsx +2 -2
  103. package/src/components/Title/index.tsx +1 -3
  104. package/src/components/Title/stories.tsx +56 -58
  105. package/src/index.tsx +10 -19
  106. package/src/components/index.ts +0 -1
  107. package/src/index.css +0 -13
  108. /package/src/components/{Button → Button}/styles.ts +0 -0
package/dist/App.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,WAAW,CAAA;AAGlB,iBAAS,GAAG,sBAMX;AAED,eAAe,GAAG,CAAA"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,WAAW,CAAA;AAGlB,iBAAS,GAAG,sBAMX;AAED,eAAe,GAAG,CAAA"}
package/dist/App.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import './App.css';
3
- import Button from './components/Button ';
3
+ import { Button } from './components/Button';
4
4
  function App() {
5
5
  return (React.createElement("div", { className: "App" },
6
6
  React.createElement(Button, { variant: 'primary', children: 'Button', id: '10', onClick: () => console.log('Button') })));
package/dist/App.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,WAAW,CAAA;AAClB,OAAO,MAAM,MAAM,sBAAsB,CAAA;AAEzC,SAAS,GAAG;IACV,OAAO,CACL,6BAAK,SAAS,EAAC,KAAK;QAClB,oBAAC,MAAM,IAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAI,CAC9F,CACP,CAAA;AACH,CAAC;AAED,eAAe,GAAG,CAAA"}
1
+ {"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,WAAW,CAAA;AAClB,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAE5C,SAAS,GAAG;IACV,OAAO,CACL,6BAAK,SAAS,EAAC,KAAK;QAClB,oBAAC,MAAM,IAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAI,CAC9F,CACP,CAAA;AACH,CAAC;AAED,eAAe,GAAG,CAAA"}
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
2
  import { BannerTypes } from '../Types';
3
- declare const Banner: React.FC<BannerTypes>;
4
- export default Banner;
3
+ export declare const Banner: React.FC<BannerTypes>;
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAQtC,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAoCjC,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAQtC,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAoCxC,CAAA"}
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { BannerStyled } from './styles';
3
3
  import { docCheckSVG, alertSVG, commentSVG, closeSVG } from '../../assets/icon';
4
- import IconWrapper from '../IconWrapper';
5
- import Paragraph from '../Paragraph';
4
+ import { IconWrapper } from '../IconWrapper';
5
+ import { Paragraph } from '../Paragraph';
6
6
  import { theme } from '../Themes';
7
7
  const { colors: { cyan40, mint40, honey40, red40, shade40, shade30 }, } = theme;
8
- const Banner = ({ title, onClick, variant, subTitle }) => {
8
+ export const Banner = ({ title, onClick, variant, subTitle }) => {
9
9
  const searchIcon = () => {
10
10
  switch (variant) {
11
11
  case 'notice':
@@ -29,5 +29,4 @@ const Banner = ({ title, onClick, variant, subTitle }) => {
29
29
  subTitle && (React.createElement(Paragraph, { size: 'small', color: shade40 }, subTitle)))),
30
30
  React.createElement(IconWrapper, { src: closeSVG, width: '14px', height: '14px', color: shade30, onClick: onClick })));
31
31
  };
32
- export default Banner;
33
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Banner/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC/E,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,SAAS,MAAM,cAAc,CAAA;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AACjC,MAAM,EACJ,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAC7D,GAAG,KAAK,CAAA;AACT,MAAM,MAAM,GAA0B,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9E,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,QAAQ,OAAO,EAAE;YACf,KAAK,QAAQ;gBACX,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA;YAC5C,KAAK,SAAS;gBACZ,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA;YAC7C,KAAK,SAAS;gBACZ,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,CAAA;YAC3C,KAAK,QAAQ;gBACX,OAAO,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EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAI,CAClF,CAChB,CAAA;AACH,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import Banner from './index';
2
+ import { Banner } from './index';
3
3
  declare const meta: Meta<typeof Banner>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Banner>;
@@ -1 +1 @@
1
- {"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAGjD,OAAO,MAAM,MAAM,SAAS,CAAA;AAE5B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAcC,CAAA;AAE/B,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AAEpC,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAA"}
1
+ {"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAGjD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAcC,CAAA;AAE/B,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AAEpC,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { VARIANTS_TYPES_BANNER } from '../../utils/constanst';
2
- import Banner from './index';
2
+ import { Banner } from './index';
3
3
  const meta = {
4
4
  title: 'Components/Banner',
5
5
  component: Banner,
@@ -1 +1 @@
1
- {"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/Banner/stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAE7D,OAAO,MAAM,MAAM,SAAS,CAAA;AAE5B,MAAM,IAAI,GAAwB;IAChC,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,qBAAqB;aAC/B;SACF;QAED,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;KAC/B;CAC4B,CAAA;AAE/B,eAAe,IAAI,CAAA;AAGnB,MAAM,CAAC,MAAM,UAAU,GAAU;IAC/B,IAAI,EAAE;QACJ,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,sBAAsB;KACjC;CACF,CAAA"}
1
+ {"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/Banner/stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC,MAAM,IAAI,GAAwB;IAChC,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,qBAAqB;aAC/B;SACF;QAED,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;KAC/B;CAC4B,CAAA;AAE/B,eAAe,IAAI,CAAA;AAGnB,MAAM,CAAC,MAAM,UAAU,GAAU;IAC/B,IAAI,EAAE;QACJ,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,sBAAsB;KACjC;CACF,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ButtonTypes } from '../Types';
3
+ export declare const Button: React.FC<ButtonTypes>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAEtC,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAyBxC,CAAA"}
@@ -0,0 +1,21 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React from 'react';
13
+ import { IconWrapper } from '../IconWrapper';
14
+ import { ButtonStyled } from './styles';
15
+ export const Button = (_a) => {
16
+ var { variant = 'primary', children, disabled = false, icon, radius, outline, halfLeft, halfRight, fullWidth } = _a, props = __rest(_a, ["variant", "children", "disabled", "icon", "radius", "outline", "halfLeft", "halfRight", "fullWidth"]);
17
+ return (React.createElement(ButtonStyled, Object.assign({ variant: variant, disabled: disabled, radius: radius, outline: outline, halfLeft: halfLeft, halfRight: halfRight, fullWidth: fullWidth }, props),
18
+ icon && React.createElement(IconWrapper, { src: icon, color: 'white', className: 'buttonRadiusWrapperIcon' }),
19
+ children));
20
+ };
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAGvC,MAAM,CAAC,MAAM,MAAM,GAA0B,CAAC,EAW7C,EAAE,EAAE;QAXyC,EAC5C,OAAO,GAAG,SAAS,EACnB,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,IAAI,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,SAAS,EACT,SAAS,OAEV,EADI,KAAK,cAVoC,sGAW7C,CADS;IACJ,OAAA,CACJ,oBAAC,YAAY,kBACX,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,IAChB,KAAK;QAER,IAAI,IAAI,oBAAC,WAAW,IAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,yBAAyB,GAAI;QACxF,QAAQ,CACI,CAChB,CAAA;CAAA,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Button } from './index';
3
+ declare const meta: Meta<typeof Button>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Button>;
6
+ export declare const Playground: Story;
7
+ export declare const ButtonDefault: Story;
8
+ export declare const ButtonOutilne: Story;
9
+ export declare const ButtonRadius: Story;
10
+ export declare const ButtonDisabled: Story;
11
+ export declare const ButtonIcon: Story;
12
+ export declare const ButtonIconHalfRightOutiline: Story;
13
+ export declare const ButtonIconHalfLeft: Story;
14
+ //# sourceMappingURL=stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../src/components/Button/stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAGhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAsBC,CAAA;AAE/B,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AAEpC,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAO3B,CAAA;AACD,eAAO,MAAM,YAAY,EAAE,KAO1B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAM5B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAE,KAQzC,CAAA;AACD,eAAO,MAAM,kBAAkB,EAAE,KAOhC,CAAA"}
@@ -0,0 +1,88 @@
1
+ import exampleIcon from '../../assets/icon/image.svg';
2
+ import { Button } from './index';
3
+ import { VARIANTS_TYPES } from '../../utils/constanst';
4
+ const meta = {
5
+ title: 'Components/Button',
6
+ component: Button,
7
+ tags: ['autodocs'],
8
+ argTypes: {
9
+ variant: {
10
+ control: {
11
+ type: 'select',
12
+ options: VARIANTS_TYPES,
13
+ },
14
+ },
15
+ disabled: {
16
+ control: 'boolean',
17
+ },
18
+ icon: {
19
+ control: 'object',
20
+ options: [exampleIcon],
21
+ description: exampleIcon,
22
+ },
23
+ onClick: { action: 'clicked' },
24
+ },
25
+ };
26
+ export default meta;
27
+ export const Playground = {
28
+ args: {
29
+ variant: 'primary',
30
+ children: 'ButtonPlayground',
31
+ disabled: false,
32
+ },
33
+ };
34
+ export const ButtonDefault = {
35
+ args: {
36
+ variant: 'secondary',
37
+ children: 'ButtonPlayground',
38
+ disabled: false,
39
+ },
40
+ };
41
+ export const ButtonOutilne = {
42
+ args: {
43
+ variant: 'secondary',
44
+ children: 'ButtonPlayground',
45
+ disabled: false,
46
+ outline: true,
47
+ },
48
+ };
49
+ export const ButtonRadius = {
50
+ args: {
51
+ variant: 'success',
52
+ children: 'ButtonPlayground',
53
+ disabled: false,
54
+ radius: true,
55
+ },
56
+ };
57
+ export const ButtonDisabled = {
58
+ args: {
59
+ variant: 'danger',
60
+ children: 'ButtonPlayground',
61
+ disabled: true,
62
+ },
63
+ };
64
+ export const ButtonIcon = {
65
+ args: {
66
+ variant: 'primary',
67
+ children: 'ButtonPlayground',
68
+ icon: exampleIcon,
69
+ },
70
+ };
71
+ export const ButtonIconHalfRightOutiline = {
72
+ args: {
73
+ variant: 'success',
74
+ children: 'ButtonPlayground',
75
+ icon: exampleIcon,
76
+ halfRight: true,
77
+ outline: true,
78
+ },
79
+ };
80
+ export const ButtonIconHalfLeft = {
81
+ args: {
82
+ variant: 'success',
83
+ children: 'ButtonPlayground',
84
+ icon: exampleIcon,
85
+ halfLeft: true,
86
+ },
87
+ };
88
+ //# sourceMappingURL=stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/Button/stories.tsx"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,MAAM,IAAI,GAAwB;IAChC,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,cAAc;aACxB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,SAAS;SACnB;QACD,IAAI,EAAE;YACJ,OA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AAE,WAAW;QACjB,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,IAAI;KACd;CACF,CAAA;AACD,MAAM,CAAC,MAAM,kBAAkB,GAAU;IACvC,IAAI,EAAE;QACJ,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,IAAI;KACf;CACF,CAAA"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ButtonTypes } from '../Types';
3
+ export declare const ButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonTypes>> & string;
4
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Button/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAsKtC,eAAO,MAAM,YAAY,4PA6BxB,CAAA"}
@@ -0,0 +1,194 @@
1
+ import styled, { css } from 'styled-components';
2
+ import { theme } from '../Themes';
3
+ const { colors } = theme;
4
+ const buttonRadiusWrapperIconStyles = (color) => css `
5
+ .buttonRadiusWrapperIcon {
6
+ margin-top: 4px;
7
+ svg {
8
+ fill: ${color};
9
+ path {
10
+ fill: ${color};
11
+ }
12
+ }
13
+ }
14
+ `;
15
+ const colorScheme = {
16
+ primary: css `
17
+ background: ${colors.cyan50};
18
+ &:hover {
19
+ background-color: ${colors.cyan40};
20
+ }
21
+ &:active {
22
+ background-color: ${colors.cyan50};
23
+ }
24
+ `,
25
+ secondary: css `
26
+ background: ${colors.cyan30};
27
+ &:hover {
28
+ background-color: ${colors.cyan40};
29
+ }
30
+ &:active {
31
+ background-color: ${colors.cyan30};
32
+ }
33
+ `,
34
+ danger: css `
35
+ background: ${colors.red40};
36
+ &:hover {
37
+ background-color: ${colors.red30};
38
+ }
39
+ &:active {
40
+ background-color: ${colors.red40};
41
+ }
42
+ `,
43
+ warning: css `
44
+ background: ${colors.honey10};
45
+ color: ${colors.honey30};
46
+ &:hover {
47
+ background-color: ${colors.honey20};
48
+ }
49
+ &:active {
50
+ background-color: ${colors.honey10};
51
+ }
52
+ ${buttonRadiusWrapperIconStyles(colors.honey30)};
53
+ `,
54
+ success: css `
55
+ background: ${colors.mint40};
56
+ &:hover {
57
+ background-color: ${colors.mint30};
58
+ }
59
+ &:active {
60
+ background-color: ${colors.mint40};
61
+ }
62
+ `,
63
+ gray: css `
64
+ background: ${colors.shade10};
65
+ color: ${colors.shade40};
66
+ &:hover {
67
+ background-color: ${colors.shade20};
68
+ }
69
+ &:active {
70
+ background-color: ${colors.shade10};
71
+ }
72
+ ${buttonRadiusWrapperIconStyles(colors.shade40)};
73
+ `,
74
+ yellow: css `
75
+ background: ${colors.yellow10};
76
+ color: ${colors.yellow30};
77
+ &:hover {
78
+ background-color: ${colors.yellow20};
79
+ }
80
+ &:active {
81
+ background-color: ${colors.yellow10};
82
+ }
83
+ ${buttonRadiusWrapperIconStyles(colors.yellow30)};
84
+ `,
85
+ };
86
+ const colorSchemeOutilne = {
87
+ primary: css `
88
+ color: ${colors.cyan50};
89
+ border: 2px solid ${colors.cyan50};
90
+ &:hover {
91
+ background-color: ${colors.cyan10};
92
+ }
93
+ &:active {
94
+ background-color: ${colors.cyan10};
95
+ }
96
+ ${buttonRadiusWrapperIconStyles(colors.cyan50)};
97
+ `,
98
+ secondary: css `
99
+ color: ${colors.cyan40};
100
+ border: 2px solid ${colors.cyan40};
101
+ &:hover {
102
+ background-color: ${colors.cyan10};
103
+ }
104
+ &:active {
105
+ background-color: ${colors.cyan10};
106
+ }
107
+ ${buttonRadiusWrapperIconStyles(colors.cyan40)};
108
+ `,
109
+ danger: css `
110
+ color: ${colors.red40};
111
+ border: 2px solid ${colors.red40};
112
+ &:hover {
113
+ background-color: ${colors.red10};
114
+ }
115
+ &:active {
116
+ background-color: ${colors.red10};
117
+ }
118
+ ${buttonRadiusWrapperIconStyles(colors.red40)};
119
+ `,
120
+ warning: css `
121
+ color: ${colors.honey40};
122
+ border: 2px solid ${colors.honey40};
123
+ &:hover {
124
+ background-color: ${colors.honey10};
125
+ }
126
+ &:active {
127
+ background-color: ${colors.honey10};
128
+ }
129
+ ${buttonRadiusWrapperIconStyles(colors.honey40)};
130
+ `,
131
+ success: css `
132
+ color: ${colors.mint40};
133
+ border: 2px solid ${colors.mint40};
134
+ &:hover {
135
+ background-color: ${colors.mint10};
136
+ }
137
+ &:active {
138
+ background-color: ${colors.mint10};
139
+ }
140
+ ${buttonRadiusWrapperIconStyles(colors.mint40)};
141
+ `,
142
+ gray: css `
143
+ color: ${colors.shade40};
144
+ border: 2px solid ${colors.shade40};
145
+ &:hover {
146
+ background-color: ${colors.shade20};
147
+ }
148
+ &:active {
149
+ background-color: ${colors.shade10};
150
+ }
151
+ ${buttonRadiusWrapperIconStyles(colors.shade40)};
152
+ `,
153
+ yellow: css `
154
+ color: ${colors.yellow30};
155
+ border: 2px solid ${colors.yellow30};
156
+ &:hover {
157
+ background-color: ${colors.yellow10};
158
+ }
159
+ &:active {
160
+ background-color: ${colors.yellow10};
161
+ }
162
+ ${buttonRadiusWrapperIconStyles(colors.yellow30)};
163
+ `,
164
+ };
165
+ export const ButtonStyled = styled.button `
166
+ display: inline-flex;
167
+ align-items: center;
168
+ justify-content: center;
169
+ box-sizing: border-box;
170
+ height: 48px;
171
+ width: ${({ fullWidth }) => (fullWidth ? '100%' : 'auto')};
172
+ padding: 12px 24px;
173
+ font-size: 16px;
174
+ font-weight: 600;
175
+ line-height: 140%;
176
+ border: none;
177
+ border-radius: ${({ radius }) => (radius ? '24px' : '5px')};
178
+ font-family: 'Nunito Sans', sans-serif;
179
+ transition:
180
+ background-color 0.3s,
181
+ opacity 0.3s;
182
+ color: white;
183
+ gap: 12px;
184
+ cursor: ${({ disabled }) => (disabled ? 'not-allowed' : 'pointer')};
185
+ opacity: ${({ disabled }) => (disabled ? 0.5 : 1)};
186
+ ${({ variant = 'primary', outline }) => (!outline ? colorScheme[variant] : colorSchemeOutilne[variant])};
187
+ background: ${({ outline }) => outline && 'white'};
188
+ border-radius: ${({ halfLeft, halfRight, radius }) => !halfLeft && !halfRight ? (radius ? '24px' : '5px') : halfLeft ? '24px 0 0 24px' : '0 24px 24px 0'};
189
+
190
+ .buttonRadiusWrapperIcon {
191
+ margin-top: 4px;
192
+ }
193
+ `;
194
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Button/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AAGjC,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAA;AACxB,MAAM,6BAA6B,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,GAAG,CAAA;;;;cAI9C,KAAK;;gBAEH,KAAK;;;;CAIpB,CAAA;AACD,MAAM,WAAW,GAAG;IAClB,OAAO,EAAE,GAAG,CAAA;kBACI,MAAM,CAAC,MAAM;;0BAEL,MAAM,CAAC,MAAM;;;0BAGb,MAAM,CAAC,MAAM;;GAEpC;IACD,SAAS,EAAE,GAAG,CAAA;kBACE,MAAM,CAAC,MAAM;;0BAEL,MAAM,CAAC,MAAM;;;0BAGb,MAAM,CAAC,MAAM;;GAEpC;IACD,MAAM,EAAE,GAAG,CAAA;kBACK,MAAM,CAAC,KAAK;;0BAEJ,MAAM,CAAC,KAAK;;;0BAGZ,MAAM,CAAC,KAAK;;GAEnC;IACD,OAAO,EAAE,GAAG,CAAA;kBACI,MAAM,CAAC,OAAO;aACnB,MAAM,CAAC,OAAO;;0BAED,MAAM,CAAC,OAAO;;;0BAGd,MAAM,CAAC,OAAO;;MAElC,6BAA6B,CAAC,MAA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EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;gBACzF,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,IAAI,OAAO;mBAChC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CACnD,CAAC,QAAQ,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe;;;;;CAKrG,CAAA"}
@@ -0,0 +1,2 @@
1
+ import '@testing-library/jest-dom';
2
+ //# sourceMappingURL=test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../src/components/Button/test.tsx"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAA"}
@@ -1,36 +1,33 @@
1
1
  import React from 'react';
2
2
  import { render, screen, fireEvent } from '@testing-library/react';
3
3
  import '@testing-library/jest-dom';
4
- import Button from "./index";
5
-
4
+ import { Button } from './index';
6
5
  describe('Button Component', () => {
7
6
  test('renders button with primary variant', () => {
8
- render(<Button variant="primary">Primary Button</Button>);
7
+ render(React.createElement(Button, { variant: "primary" }, "Primary Button"));
9
8
  const button = screen.getByText('Primary Button');
10
9
  expect(button).toBeInTheDocument();
11
10
  expect(button).toHaveStyle(`background-color: #1A3D7F`);
12
11
  });
13
-
14
12
  test('renders button with secondary variant', () => {
15
- render(<Button variant="secondary">Secondary Button</Button>);
13
+ render(React.createElement(Button, { variant: "secondary" }, "Secondary Button"));
16
14
  const button = screen.getByText('Secondary Button');
17
15
  expect(button).toBeInTheDocument();
18
16
  expect(button).toHaveStyle(`background-color: #217EFD`);
19
17
  });
20
-
21
18
  test('button responds to click event', () => {
22
19
  const handleClick = jest.fn();
23
- render(<Button variant="primary" onClick={handleClick}>Clickable Button</Button>);
20
+ render(React.createElement(Button, { variant: "primary", onClick: handleClick }, "Clickable Button"));
24
21
  const button = screen.getByText('Clickable Button');
25
22
  fireEvent.click(button);
26
23
  expect(handleClick).toHaveBeenCalledTimes(1);
27
24
  });
28
-
29
25
  test('button is disabled when the disabled prop is true', () => {
30
- render(<Button variant="primary" disabled>Disabled Button</Button>);
26
+ render(React.createElement(Button, { variant: "primary", disabled: true }, "Disabled Button"));
31
27
  const button = screen.getByText('Disabled Button');
32
28
  expect(button).toBeInTheDocument();
33
29
  expect(button).toHaveStyle(`opacity: 0.5`);
34
30
  expect(button).toHaveStyle(`cursor: not-allowed`);
35
31
  });
36
32
  });
33
+ //# sourceMappingURL=test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.js","sourceRoot":"","sources":["../../../src/components/Button/test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAClE,OAAO,2BAA2B,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,IAAI,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC/C,MAAM,CAAC,oBAAC,MAAM,IAAC,OAAO,EAAC,SAAS,qBAAwB,CAAC,CAAA;QACzD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAA;QACjD,MAAM,CAAC,MAAM,CAAC,CAAC,iBAAiB,EAAE,CAAA;QAClC,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAA;IACzD,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,uCAAuC,EAAE,GAAG,EAAE;QACjD,MAAM,CAAC,oBA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conTypes>;
4
- export default ButtonRadiusIcon;
3
+ export declare const ButtonRadiusIcon: React.FC<ButtonRadiusIconTypes>;
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonRadiusIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAEhD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAgBrD,CAAA;AAED,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonRadiusIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAEhD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAgB5D,CAAA"}
@@ -10,9 +10,9 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import React from 'react';
13
- import IconWrapper from '../IconWrapper';
13
+ import { IconWrapper } from '../IconWrapper';
14
14
  import { ButtonStyled } from './styles';
15
- const ButtonRadiusIcon = (_a) => {
15
+ export const ButtonRadiusIcon = (_a) => {
16
16
  var { variant = 'primary', children, disabled = false, icon, subTitle } = _a, props = __rest(_a, ["variant", "children", "disabled", "icon", "subTitle"]);
17
17
  return (React.createElement(ButtonStyled, Object.assign({ variant: variant, disabled: disabled, subTitle: subTitle }, props),
18
18
  React.createElement("span", { className: 'buttonRadiusIconContainer' },
@@ -22,5 +22,4 @@ const ButtonRadiusIcon = (_a) => {
22
22
  React.createElement("span", { className: 'buttonRadiusIconWrapperIcon' },
23
23
  React.createElement(IconWrapper, { src: icon || '', color: 'white', className: 'buttonRadiusWrapperIcon' }))));
24
24
  };
25
- export default ButtonRadiusIcon;
26
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ButtonRadiusIcon/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAGvC,MAAM,gBAAgB,GAAoC,CAAC,EAO1D,EAAE,EAAE;QAPsD,EACzD,OAAO,GAAG,SAAS,EACnB,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,IAAI,EACJ,QAAQ,OAET,EADI,KAAK,cANiD,uDAO1D,CADS;IACJ,OAAA,CACJ,oBAAC,YAAY,kBAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,IAAM,KAAK;QAC/E,8BAAM,SAAS,EAAE,2BAA2B;YACzC,QAAQ;;YAAG,QAAQ,IAAI,2BAAG,SAAS,EAAE,uBAAuB,IAAG,QAAQ,CAAK,CACxE;QACP,8BAAM,SAAS,EAAE,6BAA6B;YAC5C,oBAAC,WAAW,IAAC,GAAG,EAAE,IAAI,IAAI,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,yBAAyB,GAAI,CACjF,CACM,CAChB,CAAA;CAAA,CAAA;AAED,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ButtonRadiusIcon/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAGvC,MAAM,CAAC,MAAM,gBAAgB,GAAoC,CAAC,EAOjE,EAAE,EAAE;QAP6D,EAChE,OAAO,GAAG,SAAS,EACnB,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,IAAI,EACJ,QAAQ,OAET,EADI,KAAK,cANwD,uDAOjE,CADS;IACJ,OAAA,CACJ,oBAAC,YAAY,kBAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,IAAM,KAAK;QAC/E,8BAAM,SAAS,EAAE,2BAA2B;YACzC,QAAQ;;YAAG,QAAQ,IAAI,2BAAG,SAAS,EAAE,uBAAuB,IAAG,QAAQ,CAAK,CACxE;QACP,8BAAM,SAAS,EAAE,6BAA6B;YAC5C,oBAAC,WAAW,IAAC,GAAG,EAAE,IAAI,IAAI,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,yBAAyB,GAAI,CACjF,CACM,CAChB,CAAA;CAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import ButtonRadiusIcon from './index';
2
+ import { ButtonRadiusIcon } from './index';
3
3
  declare const meta: Meta<typeof ButtonRadiusIcon>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof ButtonRadiusIcon>;
@@ -1 +1 @@
1
- {"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonRadiusIcon/stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,gBAAgB,MAAM,SAAS,CAAA;AAGtC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAmBvC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE9C,eAAO,MAAM,UAAU,EAAE,KAOxB,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,KAQpC,CAAA"}
1
+ {"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonRadiusIcon/stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAG1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAmBvC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE9C,eAAO,MAAM,UAAU,EAAE,KAOxB,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,KAQpC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import exampleIcon from '../../assets/icon/image.svg';
2
- import ButtonRadiusIcon from './index';
2
+ import { ButtonRadiusIcon } from './index';
3
3
  import { VARIANTS_TYPES } from '../../utils/constanst'; // Update this path to your actual icon
4
4
  const meta = {
5
5
  title: 'Components/ButtonRadiusIcon',
@@ -1 +1 @@
1
- {"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/components/ButtonRadiusIcon/stories.tsx"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,6BAA6B,CAAA;AACrD,OAAO,gBAAgB,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA,CAAC,uCAAuC;AAE9F,MAAM,IAAI,GAAkC;IAC1C,KAAK,EAAE,6BAA6B;IACpC,SAAS,EAAE,gBAAgB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,cAAc;aACxB;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,SAAS;SACnB;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,MAAM;SAChB;QACD,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;KAC/B;CACF,CAAA;AA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AC,MAAM,sBAAsB,GAAU;IAC3C,IAAI,EAAE;QACJ,OAAO,EAAE,WAAW;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,UAAU;KACrB;CACF,CAAA"}
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
2
  import { ButtonRoundTypes } from '../Types';
3
- declare const ButtonRound: React.FC<ButtonRoundTypes>;
4
- export default ButtonRound;
3
+ export declare const ButtonRound: React.FC<ButtonRoundTypes>;
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonRound/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAE3C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAmB3C,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonRound/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAE3C,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAmBlD,CAAA"}
@@ -10,13 +10,12 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import React from 'react';
13
- import IconWrapper from '../IconWrapper';
13
+ import { IconWrapper } from '../IconWrapper';
14
14
  import { ButtonStyled } from './styles';
15
- const ButtonRound = (_a) => {
15
+ export const ButtonRound = (_a) => {
16
16
  var { variant = 'primary', children, disabled = false, icon, outline, badge } = _a, props = __rest(_a, ["variant", "children", "disabled", "icon", "outline", "badge"]);
17
17
  return (React.createElement(ButtonStyled, Object.assign({ variant: variant, disabled: disabled, outline: outline, badge: badge }, props),
18
18
  badge && React.createElement("span", { className: 'buttonRoundBadge' }, badge),
19
19
  React.createElement(IconWrapper, { src: icon || '', color: 'white', width: '20px', height: '20px', className: 'buttonRadiusWrapperIcon' })));
20
20
  };
21
- export default ButtonRound;
22
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ButtonRound/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAGvC,MAAM,WAAW,GAA+B,CAAC,EAQhD,EAAE,EAAE;QAR4C,EAC/C,OAAO,GAAG,SAAS,EACnB,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,IAAI,EACJ,OAAO,EACP,KAAK,OAEN,EADI,KAAK,cAPuC,+DAQhD,CADS;IACJ,OAAA,CACJ,oBAAC,YAAY,kBAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,IAAM,KAAK;QAC1F,KAAK,IAAI,8BAAM,SAAS,EAAE,kBAAkB,IAAG,KAAK,CAAQ;QAC7D,oBAAC,WAAW,IACV,GAAG,EAAE,IAAI,IAAI,EAAE,EACf,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,yBAAyB,GACpC,CACW,CAChB,CAAA;CAAA,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ButtonRound/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAGvC,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,EAQvD,EAAE,EAAE;QARmD,EACtD,OAAO,GAAG,SAAS,EACnB,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,IAAI,EACJ,OAAO,EACP,KAAK,OAEN,EADI,KAAK,cAP8C,+DAQvD,CADS;IACJ,OAAA,CACJ,oBAAC,YAAY,kBAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,IAAM,KAAK;QAC1F,KAAK,IAAI,8BAAM,SAAS,EAAE,kBAAkB,IAAG,KAAK,CAAQ;QAC7D,oBAAC,WAAW,IACV,GAAG,EAAE,IAAI,IAAI,EAAE,EACf,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,yBAAyB,GACpC,CACW,CAChB,CAAA;CAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import ButtonRound from './index';
2
+ import { ButtonRound } from './index';
3
3
  declare const meta: Meta<typeof ButtonRound>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof ButtonRound>;