beyond-system 0.1.5 → 0.1.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 (107) hide show
  1. package/dist/colors/base-colors.js +7 -3
  2. package/dist/colors/base-colors.js.map +1 -1
  3. package/dist/colors/gradients.js +4 -1
  4. package/dist/colors/gradients.js.map +1 -1
  5. package/dist/colors/index.js +6 -3
  6. package/dist/colors/index.js.map +1 -1
  7. package/dist/colors/shadows.js +4 -1
  8. package/dist/colors/shadows.js.map +1 -1
  9. package/dist/components/react/Checkbox/Checkbox.js +15 -13
  10. package/dist/components/react/Checkbox/Checkbox.js.map +1 -1
  11. package/dist/components/react/Checkbox/Checkbox.stories.js +14 -9
  12. package/dist/components/react/Checkbox/Checkbox.stories.js.map +1 -1
  13. package/dist/components/react/Checkbox/Checkbox.styles.js +12 -59
  14. package/dist/components/react/Checkbox/Checkbox.styles.js.map +1 -1
  15. package/dist/components/react/Checkbox/Checkbox.variants.js +16 -13
  16. package/dist/components/react/Checkbox/Checkbox.variants.js.map +1 -1
  17. package/dist/components/react/Checkbox/index.js +8 -1
  18. package/dist/components/react/Checkbox/index.js.map +1 -1
  19. package/dist/components/react/DefaultButton/DefaultButton.js +20 -18
  20. package/dist/components/react/DefaultButton/DefaultButton.js.map +1 -1
  21. package/dist/components/react/DefaultButton/DefaultButton.stories.js +23 -22
  22. package/dist/components/react/DefaultButton/DefaultButton.stories.js.map +1 -1
  23. package/dist/components/react/DefaultButton/DefaultButton.styles.js +8 -91
  24. package/dist/components/react/DefaultButton/DefaultButton.styles.js.map +1 -1
  25. package/dist/components/react/DefaultButton/DefaultButton.variants.js +24 -21
  26. package/dist/components/react/DefaultButton/DefaultButton.variants.js.map +1 -1
  27. package/dist/components/react/DefaultButton/index.js +8 -1
  28. package/dist/components/react/DefaultButton/index.js.map +1 -1
  29. package/dist/components/react/IconButton/IconButton.js +17 -15
  30. package/dist/components/react/IconButton/IconButton.js.map +1 -1
  31. package/dist/components/react/IconButton/IconButton.stories.js +17 -12
  32. package/dist/components/react/IconButton/IconButton.stories.js.map +1 -1
  33. package/dist/components/react/IconButton/IconButton.styles.js +8 -85
  34. package/dist/components/react/IconButton/IconButton.styles.js.map +1 -1
  35. package/dist/components/react/IconButton/IconButton.variants.js +19 -16
  36. package/dist/components/react/IconButton/IconButton.variants.js.map +1 -1
  37. package/dist/components/react/IconButton/index.js +8 -1
  38. package/dist/components/react/IconButton/index.js.map +1 -1
  39. package/dist/components/react/Loader/Loader.js +22 -26
  40. package/dist/components/react/Loader/Loader.js.map +1 -1
  41. package/dist/components/react/Loader/Loader.stories.js +13 -8
  42. package/dist/components/react/Loader/Loader.stories.js.map +1 -1
  43. package/dist/components/react/Loader/index.js +6 -3
  44. package/dist/components/react/Loader/index.js.map +1 -1
  45. package/dist/components/react/OutlineButton/OutlineButton.js +20 -18
  46. package/dist/components/react/OutlineButton/OutlineButton.js.map +1 -1
  47. package/dist/components/react/OutlineButton/OutlineButton.stories.js +23 -22
  48. package/dist/components/react/OutlineButton/OutlineButton.stories.js.map +1 -1
  49. package/dist/components/react/OutlineButton/OutlineButton.styles.js +8 -85
  50. package/dist/components/react/OutlineButton/OutlineButton.styles.js.map +1 -1
  51. package/dist/components/react/OutlineButton/OutlineButton.variants.js +15 -12
  52. package/dist/components/react/OutlineButton/OutlineButton.variants.js.map +1 -1
  53. package/dist/components/react/OutlineButton/index.js +8 -1
  54. package/dist/components/react/OutlineButton/index.js.map +1 -1
  55. package/dist/components/react/RadioInput/RadioInput.js +12 -10
  56. package/dist/components/react/RadioInput/RadioInput.js.map +1 -1
  57. package/dist/components/react/RadioInput/RadioInput.stories.js +14 -9
  58. package/dist/components/react/RadioInput/RadioInput.stories.js.map +1 -1
  59. package/dist/components/react/RadioInput/RadioInput.styles.js +8 -51
  60. package/dist/components/react/RadioInput/RadioInput.styles.js.map +1 -1
  61. package/dist/components/react/RadioInput/RadioInput.variants.js +15 -12
  62. package/dist/components/react/RadioInput/RadioInput.variants.js.map +1 -1
  63. package/dist/components/react/RadioInput/index.js +8 -1
  64. package/dist/components/react/RadioInput/index.js.map +1 -1
  65. package/dist/components/react/Switch/Switch.js +13 -11
  66. package/dist/components/react/Switch/Switch.js.map +1 -1
  67. package/dist/components/react/Switch/Switch.stories.js +14 -9
  68. package/dist/components/react/Switch/Switch.stories.js.map +1 -1
  69. package/dist/components/react/Switch/Switch.styles.js +10 -46
  70. package/dist/components/react/Switch/Switch.styles.js.map +1 -1
  71. package/dist/components/react/Switch/Switch.variants.js +11 -8
  72. package/dist/components/react/Switch/Switch.variants.js.map +1 -1
  73. package/dist/components/react/Switch/index.js +8 -1
  74. package/dist/components/react/Switch/index.js.map +1 -1
  75. package/dist/components/react/TransparentButton/TransparentButton.js +12 -10
  76. package/dist/components/react/TransparentButton/TransparentButton.js.map +1 -1
  77. package/dist/components/react/TransparentButton/TransparentButton.stories.js +14 -9
  78. package/dist/components/react/TransparentButton/TransparentButton.stories.js.map +1 -1
  79. package/dist/components/react/TransparentButton/TransparentButton.styles.js +8 -64
  80. package/dist/components/react/TransparentButton/TransparentButton.styles.js.map +1 -1
  81. package/dist/components/react/TransparentButton/TransparentButton.variants.js +17 -14
  82. package/dist/components/react/TransparentButton/TransparentButton.variants.js.map +1 -1
  83. package/dist/components/react/TransparentButton/index.js +8 -1
  84. package/dist/components/react/TransparentButton/index.js.map +1 -1
  85. package/dist/components/react/index.js +22 -8
  86. package/dist/components/react/index.js.map +1 -1
  87. package/dist/index.js +6 -3
  88. package/dist/index.js.map +1 -1
  89. package/dist/stories/base-colors/base-colors.stories.js +44 -29
  90. package/dist/stories/base-colors/base-colors.stories.js.map +1 -1
  91. package/dist/stories/base-colors/base-colors.stories.styles.js +8 -63
  92. package/dist/stories/base-colors/base-colors.stories.styles.js.map +1 -1
  93. package/dist/stories/gradients/gradients.stories.js +19 -13
  94. package/dist/stories/gradients/gradients.stories.js.map +1 -1
  95. package/dist/stories/gradients/gradients.stories.styles.js +8 -58
  96. package/dist/stories/gradients/gradients.stories.styles.js.map +1 -1
  97. package/dist/stories/shadows/shadows.stories.js +17 -11
  98. package/dist/stories/shadows/shadows.stories.js.map +1 -1
  99. package/dist/stories/shadows/shadows.stories.styles.js +8 -57
  100. package/dist/stories/shadows/shadows.stories.styles.js.map +1 -1
  101. package/dist/web/border.js +4 -1
  102. package/dist/web/border.js.map +1 -1
  103. package/dist/web/font.js +4 -1
  104. package/dist/web/font.js.map +1 -1
  105. package/dist/web/index.js +5 -2
  106. package/dist/web/index.js.map +1 -1
  107. package/package.json +1 -1
@@ -1,47 +1,11 @@
1
- import styled from 'styled-components';
2
- import * as RadixSwitch from '@radix-ui/react-switch';
3
- import { COLORS } from '../../../colors';
4
- export const SwitchContainer = styled(RadixSwitch.Root) `
5
- all: unset;
6
- position: relative;
7
-
8
- width: ${(props) => props.width};
9
- aspect-ratio: 2/1;
10
-
11
- background-color: ${(props) => props.trackColor};
12
- border-radius: ${(props) => props.width};
13
-
14
- :focus {
15
- outline: none;
16
- }
17
-
18
- &[data-state='checked'] {
19
- background-color: ${(props) => props.trackActiveColor};
20
- }
21
-
22
- :disabled {
23
- background-color: ${COLORS.NEUTRAL_LIGHT};
24
- }
25
- `;
26
- export const SwitchThumb = styled(RadixSwitch.Thumb) `
27
- display: block;
28
-
29
- width: calc(${(props) => props.width} * 0.4);
30
- aspect-ratio: 1/1;
31
-
32
- border-radius: 50%;
33
- background-color: ${(props) => props.thumbColor};
34
-
35
- transition: transform 100ms;
36
- transform: translateX(calc(${(props) => props.width} * 0.05));
37
- will-change: transform;
38
-
39
- &[data-state='checked'] {
40
- transform: translateX(
41
- calc(
42
- (${(props) => props.width} * 0.95) - (${(props) => props.width} * 0.4)
43
- )
44
- );
45
- }
46
- `;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SwitchThumb = exports.SwitchContainer = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var styled_components_1 = tslib_1.__importDefault(require("styled-components"));
6
+ var RadixSwitch = tslib_1.__importStar(require("@radix-ui/react-switch"));
7
+ var colors_1 = require("../../../colors");
8
+ exports.SwitchContainer = (0, styled_components_1.default)(RadixSwitch.Root)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n all: unset;\n position: relative;\n\n width: ", ";\n aspect-ratio: 2/1;\n\n background-color: ", ";\n border-radius: ", ";\n\n :focus {\n outline: none;\n }\n\n &[data-state='checked'] {\n background-color: ", ";\n }\n\n :disabled {\n background-color: ", ";\n }\n"], ["\n all: unset;\n position: relative;\n\n width: ", ";\n aspect-ratio: 2/1;\n\n background-color: ", ";\n border-radius: ", ";\n\n :focus {\n outline: none;\n }\n\n &[data-state='checked'] {\n background-color: ", ";\n }\n\n :disabled {\n background-color: ", ";\n }\n"])), function (props) { return props.width; }, function (props) { return props.trackColor; }, function (props) { return props.width; }, function (props) { return props.trackActiveColor; }, colors_1.COLORS.NEUTRAL_LIGHT);
9
+ exports.SwitchThumb = (0, styled_components_1.default)(RadixSwitch.Thumb)(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n display: block;\n\n width: calc(", " * 0.4);\n aspect-ratio: 1/1;\n\n border-radius: 50%;\n background-color: ", ";\n\n transition: transform 100ms;\n transform: translateX(calc(", " * 0.05));\n will-change: transform;\n\n &[data-state='checked'] {\n transform: translateX(\n calc(\n (", " * 0.95) - (", " * 0.4)\n )\n );\n }\n"], ["\n display: block;\n\n width: calc(", " * 0.4);\n aspect-ratio: 1/1;\n\n border-radius: 50%;\n background-color: ", ";\n\n transition: transform 100ms;\n transform: translateX(calc(", " * 0.05));\n will-change: transform;\n\n &[data-state='checked'] {\n transform: translateX(\n calc(\n (", " * 0.95) - (", " * 0.4)\n )\n );\n }\n"])), function (props) { return props.width; }, function (props) { return props.thumbColor; }, function (props) { return props.width; }, function (props) { return props.width; }, function (props) { return props.width; });
10
+ var templateObject_1, templateObject_2;
47
11
  //# sourceMappingURL=Switch.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.styles.js","sourceRoot":"","sources":["../../../../src/components/react/Switch/Switch.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAA;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAYjC,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAmB;;;;WAI/D,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;;;sBAGX,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;mBAC9B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;;;;;;;wBAOjB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,gBAAgB;;;;wBAIjC,MAAM,CAAC,aAAa;;CAE3C,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAmB;;;gBAGvD,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;;;;sBAIhB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;;;+BAGlB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;;;;;;WAM1C,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,eAAe,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;;;;CAIrE,CAAA"}
1
+ {"version":3,"file":"Switch.styles.js","sourceRoot":"","sources":["../../../../src/components/react/Switch/Switch.styles.ts"],"names":[],"mappings":";;;;AAAA,gFAAsC;AAEtC,0EAAqD;AAErD,mCAAiC;AAYpB,QAAA,eAAe,GAAG,IAAA,2BAAM,EAAC,WAAW,CAAC,IAAI,CAAC,6WAAmB,qDAI/D,EAAsB,iDAGX,EAA2B,sBAC9B,EAAsB,iGAOjB,EAAiC,iDAIjC,EAAoB,UAE3C,KAjBU,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,EAAX,CAAW,EAGX,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,UAAU,EAAhB,CAAgB,EAC9B,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,EAAX,CAAW,EAOjB,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,gBAAgB,EAAtB,CAAsB,EAIjC,eAAM,CAAC,aAAa,EAE3C;AAEY,QAAA,WAAW,GAAG,IAAA,2BAAM,EAAC,WAAW,CAAC,KAAK,CAAC,wbAAmB,uCAGvD,EAAsB,+EAIhB,EAA2B,oEAGlB,EAAsB,0HAM1C,EAAsB,cAAe,EAAsB,iCAIrE,KAjBe,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,EAAX,CAAW,EAIhB,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,UAAU,EAAhB,CAAgB,EAGlB,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,EAAX,CAAW,EAM1C,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,EAAX,CAAW,EAAe,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,EAAX,CAAW,EAIrE"}
@@ -1,13 +1,16 @@
1
- import { COLORS } from '../../../colors';
2
- export const DEFAULT_SWITCH_VARIANTS = {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_SWITCH_VARIANTS = void 0;
4
+ var colors_1 = require("../../../colors");
5
+ exports.DEFAULT_SWITCH_VARIANTS = {
3
6
  color: {
4
7
  primary: {
5
- thumbColor: COLORS.NEUTRAL_HIGH,
6
- thumbHoverColor: COLORS.GROWTH_MID,
7
- thumbActiveColor: COLORS.GROWTH_MID,
8
- trackColor: COLORS.GROWTH_MID,
9
- trackHoverColor: COLORS.GROWTH_MID,
10
- trackActiveColor: COLORS.GROWTH_MID,
8
+ thumbColor: colors_1.COLORS.NEUTRAL_HIGH,
9
+ thumbHoverColor: colors_1.COLORS.GROWTH_MID,
10
+ thumbActiveColor: colors_1.COLORS.GROWTH_MID,
11
+ trackColor: colors_1.COLORS.GROWTH_MID,
12
+ trackHoverColor: colors_1.COLORS.GROWTH_MID,
13
+ trackActiveColor: colors_1.COLORS.GROWTH_MID,
11
14
  },
12
15
  },
13
16
  size: {
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.variants.js","sourceRoot":"","sources":["../../../../src/components/react/Switch/Switch.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE;QACL,OAAO,EAAE;YACP,UAAU,EAAE,MAAM,CAAC,YAAY;YAC/B,eAAe,EAAE,MAAM,CAAC,UAAU;YAClC,gBAAgB,EAAE,MAAM,CAAC,UAAU;YACnC,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,eAAe,EAAE,MAAM,CAAC,UAAU;YAClC,gBAAgB,EAAE,MAAM,CAAC,UAAU;SACpC;KACF;IACD,IAAI,EAAE;QACJ,EAAE,EAAE;YACF,KAAK,EAAE,MAAM;SACd;KACF;CACF,CAAA"}
1
+ {"version":3,"file":"Switch.variants.js","sourceRoot":"","sources":["../../../../src/components/react/Switch/Switch.variants.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AAEpB,QAAA,uBAAuB,GAAG;IACrC,KAAK,EAAE;QACL,OAAO,EAAE;YACP,UAAU,EAAE,eAAM,CAAC,YAAY;YAC/B,eAAe,EAAE,eAAM,CAAC,UAAU;YAClC,gBAAgB,EAAE,eAAM,CAAC,UAAU;YACnC,UAAU,EAAE,eAAM,CAAC,UAAU;YAC7B,eAAe,EAAE,eAAM,CAAC,UAAU;YAClC,gBAAgB,EAAE,eAAM,CAAC,UAAU;SACpC;KACF;IACD,IAAI,EAAE;QACJ,EAAE,EAAE;YACF,KAAK,EAAE,MAAM;SACd;KACF;CACF,CAAA"}
@@ -1,2 +1,9 @@
1
- export { default } from './Switch';
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = void 0;
7
+ var Switch_1 = require("./Switch");
8
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Switch_1).default; } });
2
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/react/Switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/react/Switch/index.tsx"],"names":[],"mappings":";;;;;;AAAA,mCAAkC;AAAzB,kHAAA,OAAO,OAAA"}
@@ -1,13 +1,15 @@
1
- import { __rest } from "tslib";
2
- import React, { forwardRef } from 'react';
3
- import { StyledButtonContainer } from './TransparentButton.styles';
4
- import { TRANSPARENT_BUTTON_VARIANTS } from './TransparentButton.variants';
5
- const TransparentButton = forwardRef((_a, ref) => {
6
- var { children, variant = 'primary', size = 'MD' } = _a, props = __rest(_a, ["children", "variant", "size"]);
7
- const variantProps = TRANSPARENT_BUTTON_VARIANTS.color[variant];
8
- const sizeProps = TRANSPARENT_BUTTON_VARIANTS.size[size];
9
- return (React.createElement(StyledButtonContainer, Object.assign({ type: "button" }, props, variantProps, sizeProps, { ref: ref }), children));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ var react_1 = tslib_1.__importStar(require("react"));
5
+ var TransparentButton_styles_1 = require("./TransparentButton.styles");
6
+ var TransparentButton_variants_1 = require("./TransparentButton.variants");
7
+ var TransparentButton = (0, react_1.forwardRef)(function (_a, ref) {
8
+ var children = _a.children, _b = _a.variant, variant = _b === void 0 ? 'primary' : _b, _c = _a.size, size = _c === void 0 ? 'MD' : _c, props = tslib_1.__rest(_a, ["children", "variant", "size"]);
9
+ var variantProps = TransparentButton_variants_1.TRANSPARENT_BUTTON_VARIANTS.color[variant];
10
+ var sizeProps = TransparentButton_variants_1.TRANSPARENT_BUTTON_VARIANTS.size[size];
11
+ return (react_1.default.createElement(TransparentButton_styles_1.StyledButtonContainer, tslib_1.__assign({ type: "button" }, props, variantProps, sizeProps, { ref: ref }), children));
10
12
  });
11
13
  TransparentButton.displayName = 'TransparentButton';
12
- export default TransparentButton;
14
+ exports.default = TransparentButton;
13
15
  //# sourceMappingURL=TransparentButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransparentButton.js","sourceRoot":"","sources":["../../../../src/components/react/TransparentButton/TransparentButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAA;AAQ1E,MAAM,iBAAiB,GAAG,UAAU,CAClC,CACE,EAKyB,EACzB,GAAQ,EACR,EAAE;QAPF,EACE,QAAQ,EACR,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,IAAI,OAEY,EADpB,KAAK,cAJV,+BAKC,CADS;IAIV,MAAM,YAAY,GAAG,2BAA2B,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IAC/D,MAAM,SAAS,GAAG,2BAA2B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAExD,OAAO,CACL,oBAAC,qBAAqB,kBACpB,IAAI,EAAC,QAAQ,IACT,KAAK,EACL,YAAY,EACZ,SAAS,IACb,GAAG,EAAE,GAAG,KAEP,QAAQ,CACa,CACzB,CAAA;AACH,CAAC,CACF,CAAA;AAED,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAA;AAEnD,eAAe,iBAAiB,CAAA"}
1
+ {"version":3,"file":"TransparentButton.js","sourceRoot":"","sources":["../../../../src/components/react/TransparentButton/TransparentButton.tsx"],"names":[],"mappings":";;;AAAA,qDAAyC;AAEzC,uEAAkE;AAClE,2EAA0E;AAQ1E,IAAM,iBAAiB,GAAG,IAAA,kBAAU,EAClC,UACE,EAKyB,EACzB,GAAQ;IALN,IAAA,QAAQ,cAAA,EACR,eAAmB,EAAnB,OAAO,mBAAG,SAAS,KAAA,EACnB,YAAW,EAAX,IAAI,mBAAG,IAAI,KAAA,EACR,KAAK,sBAJV,+BAKC,CADS;IAIV,IAAM,YAAY,GAAG,wDAA2B,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IAC/D,IAAM,SAAS,GAAG,wDAA2B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAExD,OAAO,CACL,8BAAC,gDAAqB,qBACpB,IAAI,EAAC,QAAQ,IACT,KAAK,EACL,YAAY,EACZ,SAAS,IACb,GAAG,EAAE,GAAG,KAEP,QAAQ,CACa,CACzB,CAAA;AACH,CAAC,CACF,CAAA;AAED,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAA;AAEnD,kBAAe,iBAAiB,CAAA"}
@@ -1,13 +1,18 @@
1
- import React from 'react';
2
- import ButtonComponent from './TransparentButton';
3
- import { TRANSPARENT_BUTTON_VARIANTS } from './TransparentButton.variants';
4
- export const TransparentButton = (props) => {
5
- return React.createElement(ButtonComponent, Object.assign({}, props));
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));
6
10
  };
7
- export default {
11
+ exports.TransparentButton = TransparentButton;
12
+ exports.default = {
8
13
  title: 'Buttons/TransparentButton',
9
14
  parameters: {
10
- component: TransparentButton,
15
+ component: exports.TransparentButton,
11
16
  },
12
17
  args: {
13
18
  children: 'Button',
@@ -24,13 +29,13 @@ export default {
24
29
  variant: {
25
30
  control: {
26
31
  type: 'select',
27
- options: Object.keys(TRANSPARENT_BUTTON_VARIANTS.color),
32
+ options: Object.keys(TransparentButton_variants_1.TRANSPARENT_BUTTON_VARIANTS.color),
28
33
  },
29
34
  },
30
35
  size: {
31
36
  control: {
32
37
  type: 'select',
33
- options: Object.keys(TRANSPARENT_BUTTON_VARIANTS.size),
38
+ options: Object.keys(TransparentButton_variants_1.TRANSPARENT_BUTTON_VARIANTS.size),
34
39
  },
35
40
  },
36
41
  disabled: {
@@ -1 +1 @@
1
- {"version":3,"file":"TransparentButton.stories.js","sourceRoot":"","sources":["../../../../src/components/react/TransparentButton/TransparentButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,eAAe,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAA;AAI1E,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAY,EAAE,EAAE;IAChD,OAAO,oBAAC,eAAe,oBAAK,KAAK,EAAI,CAAA;AACvC,CAAC,CAAA;AAED,eAAe;IACb,KAAK,EAAE,2BAA2B;IAClC,UAAU,EAAE;QACV,SAAS,EAAE,iBAAiB;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,2BAA2B,CAAC,KAAK,CAAC;aACxD;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,2BAA2B,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
+ {"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,65 +1,9 @@
1
- import styled from 'styled-components';
2
- import { COLORS } from '../../../colors';
3
- export const StyledButtonContainer = styled.button `
4
- all: unset;
5
-
6
- display: flex;
7
- flex-direction: row;
8
-
9
- align-items: center;
10
- justify-content: center;
11
-
12
- transition: 0.05s ease-in-out;
13
-
14
- padding: ${(props) => props.padding};
15
- gap: ${(props) => props.gap};
16
-
17
- color: ${(props) => props.color};
18
- font-size: ${(props) => props.fontSize};
19
- font-weight: 600;
20
-
21
- * {
22
- color: ${(props) => props.color};
23
- font-size: ${(props) => props.fontSize};
24
- font-weight: 600;
25
- }
26
-
27
- padding: ${(props) => props.padding};
28
-
29
- :hover {
30
- cursor: pointer;
31
- transform: scale(1.01);
32
-
33
- color: ${(props) => props.hoverColor};
34
-
35
- * {
36
- color: ${(props) => props.hoverColor};
37
- }
38
- }
39
-
40
- :active {
41
- transform: scale(0.98);
42
-
43
- color: ${(props) => props.activeColor};
44
-
45
- * {
46
- color: ${(props) => props.activeColor};
47
- }
48
- }
49
-
50
- :disabled {
51
- color: ${COLORS.NEUTRAL_LIGHT};
52
- border-color: ${COLORS.NEUTRAL_LIGHT};
53
- background-color: ${COLORS.NEUTRAL_HIGH};
54
-
55
- :hover {
56
- cursor: default;
57
- transform: scale(1);
58
- }
59
-
60
- :active {
61
- transform: scale(1);
62
- }
63
- }
64
- `;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StyledButtonContainer = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var styled_components_1 = tslib_1.__importDefault(require("styled-components"));
6
+ var colors_1 = require("../../../colors");
7
+ exports.StyledButtonContainer = styled_components_1.default.button(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n all: unset;\n\n display: flex;\n flex-direction: row;\n\n align-items: center;\n justify-content: center;\n\n transition: 0.05s ease-in-out;\n\n padding: ", ";\n gap: ", ";\n\n color: ", ";\n font-size: ", ";\n font-weight: 600;\n\n * {\n color: ", ";\n font-size: ", ";\n font-weight: 600;\n }\n\n padding: ", ";\n\n :hover {\n cursor: pointer;\n transform: scale(1.01);\n\n color: ", ";\n\n * {\n color: ", ";\n }\n }\n\n :active {\n transform: scale(0.98);\n\n color: ", ";\n\n * {\n color: ", ";\n }\n }\n\n :disabled {\n color: ", ";\n border-color: ", ";\n background-color: ", ";\n\n :hover {\n cursor: default;\n transform: scale(1);\n }\n\n :active {\n transform: scale(1);\n }\n }\n"], ["\n all: unset;\n\n display: flex;\n flex-direction: row;\n\n align-items: center;\n justify-content: center;\n\n transition: 0.05s ease-in-out;\n\n padding: ", ";\n gap: ", ";\n\n color: ", ";\n font-size: ", ";\n font-weight: 600;\n\n * {\n color: ", ";\n font-size: ", ";\n font-weight: 600;\n }\n\n padding: ", ";\n\n :hover {\n cursor: pointer;\n transform: scale(1.01);\n\n color: ", ";\n\n * {\n color: ", ";\n }\n }\n\n :active {\n transform: scale(0.98);\n\n color: ", ";\n\n * {\n color: ", ";\n }\n }\n\n :disabled {\n color: ", ";\n border-color: ", ";\n background-color: ", ";\n\n :hover {\n cursor: default;\n transform: scale(1);\n }\n\n :active {\n transform: scale(1);\n }\n }\n"])), function (props) { return props.padding; }, function (props) { return props.gap; }, function (props) { return props.color; }, function (props) { return props.fontSize; }, function (props) { return props.color; }, function (props) { return props.fontSize; }, function (props) { return props.padding; }, function (props) { return props.hoverColor; }, function (props) { return props.hoverColor; }, function (props) { return props.activeColor; }, function (props) { return props.activeColor; }, colors_1.COLORS.NEUTRAL_LIGHT, colors_1.COLORS.NEUTRAL_LIGHT, colors_1.COLORS.NEUTRAL_HIGH);
8
+ var templateObject_1;
65
9
  //# sourceMappingURL=TransparentButton.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransparentButton.styles.js","sourceRoot":"","sources":["../../../../src/components/react/TransparentButton/TransparentButton.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAWjC,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAmB;;;;;;;;;;;aAWxD,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO;SAC5B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG;;WAElB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;eAClB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ;;;;aAI3B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;iBAClB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ;;;;aAI7B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO;;;;;;aAMxB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;;;eAGzB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;;;;;;;aAO7B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;;;eAG1B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;;;;;aAK9B,MAAM,CAAC,aAAa;oBACb,MAAM,CAAC,aAAa;wBAChB,MAAM,CAAC,YAAY;;;;;;;;;;;CAW1C,CAAA"}
1
+ {"version":3,"file":"TransparentButton.styles.js","sourceRoot":"","sources":["../../../../src/components/react/TransparentButton/TransparentButton.styles.ts"],"names":[],"mappings":";;;;AAAA,gFAAsC;AACtC,mCAAiC;AAWpB,QAAA,qBAAqB,GAAG,2BAAM,CAAC,MAAM,02BAAmB,sKAWxD,EAAwB,YAC5B,EAAoB,gBAElB,EAAsB,kBAClB,EAAyB,8CAI3B,EAAsB,oBAClB,EAAyB,8CAI7B,EAAwB,mFAMxB,EAA2B,6BAGzB,EAA2B,0EAO7B,EAA4B,6BAG1B,EAA4B,6CAK9B,EAAoB,uBACb,EAAoB,2BAChB,EAAmB,yIAW1C,KAlDY,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,OAAO,EAAb,CAAa,EAC5B,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,GAAG,EAAT,CAAS,EAElB,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,EAAX,CAAW,EAClB,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,QAAQ,EAAd,CAAc,EAI3B,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,EAAX,CAAW,EAClB,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,QAAQ,EAAd,CAAc,EAI7B,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,OAAO,EAAb,CAAa,EAMxB,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,UAAU,EAAhB,CAAgB,EAGzB,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,UAAU,EAAhB,CAAgB,EAO7B,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,WAAW,EAAjB,CAAiB,EAG1B,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,WAAW,EAAjB,CAAiB,EAK9B,eAAM,CAAC,aAAa,EACb,eAAM,CAAC,aAAa,EAChB,eAAM,CAAC,YAAY,EAW1C"}
@@ -1,32 +1,35 @@
1
- import { COLORS } from '../../../colors';
2
- import { FONT } from '../../../web';
3
- export const TRANSPARENT_BUTTON_VARIANTS = {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TRANSPARENT_BUTTON_VARIANTS = void 0;
4
+ var colors_1 = require("../../../colors");
5
+ var web_1 = require("../../../web");
6
+ exports.TRANSPARENT_BUTTON_VARIANTS = {
4
7
  color: {
5
8
  primary: {
6
- color: COLORS.GROWTH_MID,
7
- hoverColor: COLORS.GROWTH_LIGHT,
8
- activeColor: COLORS.GROWTH_DARK,
9
+ color: colors_1.COLORS.GROWTH_MID,
10
+ hoverColor: colors_1.COLORS.GROWTH_LIGHT,
11
+ activeColor: colors_1.COLORS.GROWTH_DARK,
9
12
  },
10
13
  light: {
11
- color: COLORS.NEUTRAL_LIGHTER,
12
- hoverColor: COLORS.NEUTRAL_HIGH,
13
- activeColor: COLORS.NEUTRAL_LIGHT,
14
+ color: colors_1.COLORS.NEUTRAL_LIGHTER,
15
+ hoverColor: colors_1.COLORS.NEUTRAL_HIGH,
16
+ activeColor: colors_1.COLORS.NEUTRAL_LIGHT,
14
17
  },
15
18
  dark: {
16
- color: COLORS.NEUTRAL_DARKER,
17
- hoverColor: COLORS.NEUTRAL_DARK,
18
- activeColor: COLORS.NEUTRAL_LOW,
19
+ color: colors_1.COLORS.NEUTRAL_DARKER,
20
+ hoverColor: colors_1.COLORS.NEUTRAL_DARK,
21
+ activeColor: colors_1.COLORS.NEUTRAL_LOW,
19
22
  },
20
23
  },
21
24
  size: {
22
25
  SM: {
23
- fontSize: FONT.SIZE.SM,
26
+ fontSize: web_1.FONT.SIZE.SM,
24
27
  padding: '6px 12px',
25
28
  gap: '4px',
26
29
  iconSize: '16px',
27
30
  },
28
31
  MD: {
29
- fontSize: FONT.SIZE.MD,
32
+ fontSize: web_1.FONT.SIZE.MD,
30
33
  gap: '8px',
31
34
  padding: '10px 20px',
32
35
  },
@@ -1 +1 @@
1
- {"version":3,"file":"TransparentButton.variants.js","sourceRoot":"","sources":["../../../../src/components/react/TransparentButton/TransparentButton.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAE5B,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,KAAK,EAAE;QACL,OAAO,EAAE;YACP,KAAK,EAAE,MAAM,CAAC,UAAU;YACxB,UAAU,EAAE,MAAM,CAAC,YAAY;YAC/B,WAAW,EAAE,MAAM,CAAC,WAAW;SAChC;QACD,KAAK,EAAE;YACL,KAAK,EAAE,MAAM,CAAC,eAAe;YAC7B,UAAU,EAAE,MAAM,CAAC,YAAY;YAC/B,WAAW,EAAE,MAAM,CAAC,aAAa;SAClC;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM,CAAC,cAAc;YAC5B,UAAU,EAAE,MAAM,CAAC,YAAY;YAC/B,WAAW,EAAE,MAAM,CAAC,WAAW;SAChC;KACF;IACD,IAAI,EAAE;QACJ,EAAE,EAAE;YACF,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE;YACtB,OAAO,EAAE,UAAU;YACnB,GAAG,EAAE,KAAK;YACV,QAAQ,EAAE,MAAM;SACjB;QACD,EAAE,EAAE;YACF,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE;YACtB,GAAG,EAAE,KAAK;YACV,OAAO,EAAE,WAAW;SACrB;KACF;CACF,CAAA"}
1
+ {"version":3,"file":"TransparentButton.variants.js","sourceRoot":"","sources":["../../../../src/components/react/TransparentButton/TransparentButton.variants.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AACjC,6BAA4B;AAEf,QAAA,2BAA2B,GAAG;IACzC,KAAK,EAAE;QACL,OAAO,EAAE;YACP,KAAK,EAAE,eAAM,CAAC,UAAU;YACxB,UAAU,EAAE,eAAM,CAAC,YAAY;YAC/B,WAAW,EAAE,eAAM,CAAC,WAAW;SAChC;QACD,KAAK,EAAE;YACL,KAAK,EAAE,eAAM,CAAC,eAAe;YAC7B,UAAU,EAAE,eAAM,CAAC,YAAY;YAC/B,WAAW,EAAE,eAAM,CAAC,aAAa;SAClC;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,eAAM,CAAC,cAAc;YAC5B,UAAU,EAAE,eAAM,CAAC,YAAY;YAC/B,WAAW,EAAE,eAAM,CAAC,WAAW;SAChC;KACF;IACD,IAAI,EAAE;QACJ,EAAE,EAAE;YACF,QAAQ,EAAE,UAAI,CAAC,IAAI,CAAC,EAAE;YACtB,OAAO,EAAE,UAAU;YACnB,GAAG,EAAE,KAAK;YACV,QAAQ,EAAE,MAAM;SACjB;QACD,EAAE,EAAE;YACF,QAAQ,EAAE,UAAI,CAAC,IAAI,CAAC,EAAE;YACtB,GAAG,EAAE,KAAK;YACV,OAAO,EAAE,WAAW;SACrB;KACF;CACF,CAAA"}
@@ -1,2 +1,9 @@
1
- export { default } from './TransparentButton';
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = void 0;
7
+ var TransparentButton_1 = require("./TransparentButton");
8
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(TransparentButton_1).default; } });
2
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/react/TransparentButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/react/TransparentButton/index.tsx"],"names":[],"mappings":";;;;;;AAAA,yDAA6C;AAApC,6HAAA,OAAO,OAAA"}
@@ -1,9 +1,23 @@
1
- export { default as Loader } from './Loader';
2
- export { default as DefaultButton } from './DefaultButton';
3
- export { default as IconButton } from './IconButton';
4
- export { default as OutlineButton } from './OutlineButton';
5
- export { default as TransparentButton } from './TransparentButton';
6
- export { default as Switch } from './Switch';
7
- export { default as Checkbox } from './Checkbox';
8
- export { default as RadioInput } from './RadioInput';
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.RadioInput = exports.Checkbox = exports.Switch = exports.TransparentButton = exports.OutlineButton = exports.IconButton = exports.DefaultButton = exports.Loader = void 0;
7
+ var Loader_1 = require("./Loader");
8
+ Object.defineProperty(exports, "Loader", { enumerable: true, get: function () { return __importDefault(Loader_1).default; } });
9
+ var DefaultButton_1 = require("./DefaultButton");
10
+ Object.defineProperty(exports, "DefaultButton", { enumerable: true, get: function () { return __importDefault(DefaultButton_1).default; } });
11
+ var IconButton_1 = require("./IconButton");
12
+ Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return __importDefault(IconButton_1).default; } });
13
+ var OutlineButton_1 = require("./OutlineButton");
14
+ Object.defineProperty(exports, "OutlineButton", { enumerable: true, get: function () { return __importDefault(OutlineButton_1).default; } });
15
+ var TransparentButton_1 = require("./TransparentButton");
16
+ Object.defineProperty(exports, "TransparentButton", { enumerable: true, get: function () { return __importDefault(TransparentButton_1).default; } });
17
+ var Switch_1 = require("./Switch");
18
+ Object.defineProperty(exports, "Switch", { enumerable: true, get: function () { return __importDefault(Switch_1).default; } });
19
+ var Checkbox_1 = require("./Checkbox");
20
+ Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function () { return __importDefault(Checkbox_1).default; } });
21
+ var RadioInput_1 = require("./RadioInput");
22
+ Object.defineProperty(exports, "RadioInput", { enumerable: true, get: function () { return __importDefault(RadioInput_1).default; } });
9
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAE5C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAElE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/react/index.ts"],"names":[],"mappings":";;;;;;AAAA,mCAA4C;AAAnC,iHAAA,OAAO,OAAU;AAE1B,iDAA0D;AAAjD,+HAAA,OAAO,OAAiB;AACjC,2CAAoD;AAA3C,yHAAA,OAAO,OAAc;AAC9B,iDAA0D;AAAjD,+HAAA,OAAO,OAAiB;AACjC,yDAAkE;AAAzD,uIAAA,OAAO,OAAqB;AAErC,mCAA4C;AAAnC,iHAAA,OAAO,OAAU;AAC1B,uCAAgD;AAAvC,qHAAA,OAAO,OAAY;AAC5B,2CAAoD;AAA3C,yHAAA,OAAO,OAAc"}
package/dist/index.js CHANGED
@@ -1,4 +1,7 @@
1
- export * from './web';
2
- export * from './colors';
3
- export * from './components/react';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./web"), exports);
5
+ tslib_1.__exportStar(require("./colors"), exports);
6
+ tslib_1.__exportStar(require("./components/react"), exports);
4
7
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AAExB,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,gDAAqB;AACrB,mDAAwB;AAExB,6DAAkC"}
@@ -1,50 +1,65 @@
1
- import React from 'react';
2
- import { COLORS } from '../../colors/base-colors';
3
- import { BaseColorsContainer, StyledSquare } from './base-colors.stories.styles';
4
- const getColorValue = (color) => {
5
- const colorParts = color.split('.');
6
- let colorValue = COLORS;
7
- colorParts.forEach((colorPart) => {
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) {
8
12
  colorValue = colorValue[colorPart];
9
13
  });
10
14
  return colorValue;
11
15
  };
12
- const handleCopyToClipboard = (hex) => {
16
+ var handleCopyToClipboard = function (hex) {
13
17
  navigator.clipboard.writeText(hex);
14
18
  };
15
- export const BaseColors = () => {
16
- const flattenedColors = Object.entries(COLORS).reduce((acc, [key, value]) => {
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];
17
23
  if (typeof value === 'object') {
18
- const newKeys = Object.keys(value).map((k) => `${key}.${k}`);
19
- const newValues = Object.values(value);
20
- return Object.assign(Object.assign({}, acc), Object.fromEntries(newKeys.map((k, i) => [k, newValues[i]])));
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]]; })));
21
27
  }
22
- return Object.assign(Object.assign({}, acc), { [key]: value });
28
+ return tslib_1.__assign(tslib_1.__assign({}, acc), (_b = {}, _b[key] = value, _b));
23
29
  }, {});
24
- const uniqueFlattenedColors = Object.entries(flattenedColors).reduce((acc, [key, value]) => {
30
+ var uniqueFlattenedColors = Object.entries(flattenedColors).reduce(function (acc, _a) {
31
+ var _b;
32
+ var key = _a[0], value = _a[1];
25
33
  if (Object.values(acc).includes(value)) {
26
34
  return acc;
27
35
  }
28
- return Object.assign(Object.assign({}, acc), { [key]: value });
36
+ return tslib_1.__assign(tslib_1.__assign({}, acc), (_b = {}, _b[key] = value, _b));
29
37
  }, {});
30
- return (React.createElement(BaseColorsContainer, null, Object.keys(uniqueFlattenedColors).map((key) => {
31
- const colorHex = getColorValue(key);
32
- const aliases = Object.entries(flattenedColors)
33
- .filter(([k, v]) => v === colorHex && k !== key)
34
- .map(([k]) => k)
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
+ })
35
49
  .join(', ');
36
- return (React.createElement("button", { key: key, className: "color-item", onClick: () => handleCopyToClipboard(colorHex) },
37
- React.createElement(StyledSquare, { color: colorHex, title: colorHex }),
38
- React.createElement("div", { title: key, className: "color-item__name" },
39
- React.createElement("span", { className: "color-item__name__hex" }, colorHex.toUpperCase()),
40
- React.createElement("span", { className: "color-item__name__key" }, key),
41
- React.createElement("span", { className: "color-item__name__aliases" }, aliases))));
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))));
42
56
  })));
43
57
  };
44
- export default {
58
+ exports.BaseColors = BaseColors;
59
+ exports.default = {
45
60
  title: 'Fundation/Colors',
46
61
  parameters: {
47
- component: BaseColors,
62
+ component: exports.BaseColors,
48
63
  },
49
64
  };
50
65
  //# sourceMappingURL=base-colors.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-colors.stories.js","sourceRoot":"","sources":["../../../src/stories/base-colors/base-colors.stories.tsx"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"base-colors.stories.js","sourceRoot":"","sources":["../../../src/stories/base-colors/base-colors.stories.tsx"],"names":[],"mappings":"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"}