@beequip/hexagon 0.22.1 → 0.22.3

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 (139) hide show
  1. package/README.md +2 -2
  2. package/dist/assets/icons/ArrowLeft.d.ts +1 -0
  3. package/dist/assets/icons/ArrowRight.d.ts +1 -0
  4. package/dist/assets/icons/CheckCircle.d.ts +1 -0
  5. package/dist/assets/icons/Checkmark.d.ts +1 -0
  6. package/dist/assets/icons/ChevronDown.d.ts +1 -0
  7. package/dist/assets/icons/ChevronLeft.d.ts +1 -0
  8. package/dist/assets/icons/ChevronRight.d.ts +1 -0
  9. package/dist/assets/icons/ChevronUp.d.ts +1 -0
  10. package/dist/assets/icons/Cross.d.ts +1 -0
  11. package/dist/assets/icons/ExclamationCircle.d.ts +1 -0
  12. package/dist/assets/icons/ExclamationTriangle.d.ts +1 -0
  13. package/dist/assets/icons/InfoCircle.d.ts +1 -0
  14. package/dist/assets/icons/MessageSquareCheck.d.ts +1 -0
  15. package/dist/assets/icons/MessageSquareDots.d.ts +1 -0
  16. package/dist/assets/icons/MinusCircle.d.ts +1 -0
  17. package/dist/assets/icons/PlusCircle.d.ts +1 -0
  18. package/dist/components/Autocomplete/Item/index.js +2 -1
  19. package/dist/components/Autocomplete/Item/index.js.map +1 -1
  20. package/dist/components/Autocomplete/Item/styles.d.ts +4 -1
  21. package/dist/components/Autocomplete/Item/styles.js +3 -3
  22. package/dist/components/Autocomplete/Item/styles.js.map +1 -1
  23. package/dist/components/Box/index.js +2 -1
  24. package/dist/components/Box/index.js.map +1 -1
  25. package/dist/components/Box/styles.d.ts +4 -1
  26. package/dist/components/Box/styles.js +3 -3
  27. package/dist/components/Box/styles.js.map +1 -1
  28. package/dist/components/Button/index.js +4 -4
  29. package/dist/components/Button/index.js.map +1 -1
  30. package/dist/components/Button/styles.d.ts +7 -4
  31. package/dist/components/Button/styles.js +23 -23
  32. package/dist/components/Button/styles.js.map +1 -1
  33. package/dist/components/ButtonGroup/index.js +1 -1
  34. package/dist/components/ButtonGroup/index.js.map +1 -1
  35. package/dist/components/ButtonGroup/styles.d.ts +4 -1
  36. package/dist/components/ButtonGroup/styles.js +4 -4
  37. package/dist/components/ButtonGroup/styles.js.map +1 -1
  38. package/dist/components/Card/index.d.ts +2 -1
  39. package/dist/components/Card/index.js +2 -2
  40. package/dist/components/Card/index.js.map +1 -1
  41. package/dist/components/Card/styles.d.ts +4 -1
  42. package/dist/components/Card/styles.js +14 -14
  43. package/dist/components/Card/styles.js.map +1 -1
  44. package/dist/components/Checkbox/index.js +1 -1
  45. package/dist/components/Checkbox/index.js.map +1 -1
  46. package/dist/components/Checkbox/styles.d.ts +4 -1
  47. package/dist/components/Checkbox/styles.js +2 -2
  48. package/dist/components/Checkbox/styles.js.map +1 -1
  49. package/dist/components/CounterTag/index.d.ts +1 -0
  50. package/dist/components/ExternalLink/index.js +1 -1
  51. package/dist/components/ExternalLink/index.js.map +1 -1
  52. package/dist/components/ExternalLink/styles.d.ts +5 -1
  53. package/dist/components/ExternalLink/styles.js +2 -2
  54. package/dist/components/ExternalLink/styles.js.map +1 -1
  55. package/dist/components/Field/index.js +1 -1
  56. package/dist/components/Field/index.js.map +1 -1
  57. package/dist/components/Field/styles.d.ts +4 -1
  58. package/dist/components/Field/styles.js +2 -2
  59. package/dist/components/Field/styles.js.map +1 -1
  60. package/dist/components/GridColumn/index.js +18 -17
  61. package/dist/components/GridColumn/index.js.map +1 -1
  62. package/dist/components/Heading/index.d.ts +1 -1
  63. package/dist/components/Heading/index.js +2 -2
  64. package/dist/components/Heading/index.js.map +1 -1
  65. package/dist/components/Heading/styles.d.ts +4 -1
  66. package/dist/components/Heading/styles.js +12 -12
  67. package/dist/components/Heading/styles.js.map +1 -1
  68. package/dist/components/HelpText/index.js +1 -1
  69. package/dist/components/HelpText/index.js.map +1 -1
  70. package/dist/components/HelpText/styles.d.ts +4 -1
  71. package/dist/components/HelpText/styles.js +1 -1
  72. package/dist/components/HelpText/styles.js.map +1 -1
  73. package/dist/components/Image/index.js +1 -1
  74. package/dist/components/Image/index.js.map +1 -1
  75. package/dist/components/Image/styles.d.ts +3 -3
  76. package/dist/components/Image/styles.js +2 -2
  77. package/dist/components/Image/styles.js.map +1 -1
  78. package/dist/components/Input/CurrencyInput/index.js +1 -1
  79. package/dist/components/Input/CurrencyInput/index.js.map +1 -1
  80. package/dist/components/Input/index.js +1 -1
  81. package/dist/components/Input/index.js.map +1 -1
  82. package/dist/components/Input/styles.d.ts +3 -3
  83. package/dist/components/Input/styles.js +8 -8
  84. package/dist/components/Input/styles.js.map +1 -1
  85. package/dist/components/Link/index.d.ts +1 -1
  86. package/dist/components/Link/index.js +2 -2
  87. package/dist/components/Link/index.js.map +1 -1
  88. package/dist/components/Link/styles.d.ts +4 -2
  89. package/dist/components/Link/styles.js +3 -3
  90. package/dist/components/Link/styles.js.map +1 -1
  91. package/dist/components/ListItem/index.d.ts +1 -1
  92. package/dist/components/ListItem/index.js +2 -2
  93. package/dist/components/ListItem/index.js.map +1 -1
  94. package/dist/components/ListItem/styles.d.ts +4 -1
  95. package/dist/components/ListItem/styles.js +1 -1
  96. package/dist/components/ListItem/styles.js.map +1 -1
  97. package/dist/components/Modal/index.js +2 -2
  98. package/dist/components/Modal/index.js.map +1 -1
  99. package/dist/components/Modal/styles.d.ts +7 -8
  100. package/dist/components/Modal/styles.js +1 -1
  101. package/dist/components/Modal/styles.js.map +1 -1
  102. package/dist/components/Notification/index.d.ts +1 -1
  103. package/dist/components/Notification/index.js +3 -3
  104. package/dist/components/Notification/index.js.map +1 -1
  105. package/dist/components/Notification/styles.d.ts +5 -2
  106. package/dist/components/Notification/styles.js +6 -6
  107. package/dist/components/Notification/styles.js.map +1 -1
  108. package/dist/components/PageLoader/index.d.ts +1 -0
  109. package/dist/components/Radio/styles.d.ts +1 -3
  110. package/dist/components/Radio/styles.js.map +1 -1
  111. package/dist/components/Select/index.js +1 -1
  112. package/dist/components/Select/index.js.map +1 -1
  113. package/dist/components/Select/styles.d.ts +2 -2
  114. package/dist/components/Select/styles.js +2 -2
  115. package/dist/components/Select/styles.js.map +1 -1
  116. package/dist/components/Spinner/index.d.ts +1 -0
  117. package/dist/components/Table/Cell/index.js +1 -1
  118. package/dist/components/Table/Cell/index.js.map +1 -1
  119. package/dist/components/Table/Cell/styles.d.ts +4 -1
  120. package/dist/components/Table/Cell/styles.js +1 -1
  121. package/dist/components/Table/Cell/styles.js.map +1 -1
  122. package/dist/components/Tag/index.js +1 -1
  123. package/dist/components/Tag/index.js.map +1 -1
  124. package/dist/components/Tag/styles.d.ts +4 -1
  125. package/dist/components/Tag/styles.js +2 -2
  126. package/dist/components/Tag/styles.js.map +1 -1
  127. package/dist/components/Text/index.js +2 -1
  128. package/dist/components/Text/index.js.map +1 -1
  129. package/dist/components/Text/styles.d.ts +4 -1
  130. package/dist/components/Text/styles.js +3 -3
  131. package/dist/components/Text/styles.js.map +1 -1
  132. package/dist/components/TextArea/index.d.ts +1 -1
  133. package/dist/components/TextArea/index.js +2 -2
  134. package/dist/components/TextArea/index.js.map +1 -1
  135. package/dist/components/TextArea/styles.d.ts +4 -1
  136. package/dist/components/TextArea/styles.js +1 -1
  137. package/dist/components/TextArea/styles.js.map +1 -1
  138. package/dist/components/Tooltip/index.d.ts +1 -0
  139. package/package.json +1 -1
package/README.md CHANGED
@@ -45,8 +45,8 @@ All components in Hexagon can be previewed in our Storybook. Simply run `yarn st
45
45
 
46
46
  We use [Chromatic](https://www.chromatic.com/) to publish and review our Storybook. The CI is configured to automatically publish the Storybook and run Chromatic’s automation whenever you push code.
47
47
 
48
- - [Library](http://www.chromatic.com/library?appId=5f7c9ca68ecdf800227af955) at Chromatic
49
- - Latest published [Storybook](https://develop--5f7c9ca68ecdf800227af955.chromatic.com)
48
+ - [Library](https://www.chromatic.com/library?appId=688c82718f66d9984ca19d0d) at Chromatic
49
+ - Latest published [Storybook](https://688c82718f66d9984ca19d0d-inrbsoohvl.chromatic.com/)
50
50
 
51
51
  ## Publishing
52
52
 
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const ArrowLeft: ({ width }: IconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const ArrowRight: ({ width }: IconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const CheckCircle: ({ width }: IconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const Checkmark: ({ width, color, }: IconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const ChevronDown: ({ width, color, }: IconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const ChevronLeft: ({ width, color, }: IconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const ChevronRight: ({ width, color, }: IconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const ChevronUp: ({ width, color, }: IconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const Cross: ({ width, color, }: IconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const ExclamationCircle: ({ width, color, }: IconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const ExclamationTriangle: ({ width, color, }: IconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const InfoCircle: ({ width, color, text, id, ...rest }: IconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const MessageSquareCheck: ({ width, }: IconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const MessageSquareDots: ({ width, }: IconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const MinusCircle: ({ width, color, ...rest }: IconProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../../theme/types';
2
3
  export declare const PlusCircle: ({ width, color, ...rest }: IconProps) => JSX.Element;
@@ -5,7 +5,8 @@ var tslib_1 = require("tslib");
5
5
  var React = require("react");
6
6
  var styles_1 = require("./styles");
7
7
  var AutocompleteItem = function (props) {
8
- return (React.createElement(styles_1.StyledAutocompleteItem, tslib_1.__assign({}, props), props.children));
8
+ var highlighted = props.highlighted, noResults = props.noResults;
9
+ return (React.createElement(styles_1.StyledAutocompleteItem, tslib_1.__assign({}, props, { "$highlighted": highlighted, "$noResults": noResults }), props.children));
9
10
  };
10
11
  exports.AutocompleteItem = AutocompleteItem;
11
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Autocomplete/Item/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,mCAAiD;AAU1C,IAAM,gBAAgB,GAAG,UAAC,KAA4B;IACzD,OAAO,CACH,oBAAC,+BAAsB,uBAAK,KAAK,GAC5B,KAAK,CAAC,QAAQ,CACM,CAC5B,CAAA;AACL,CAAC,CAAA;AANY,QAAA,gBAAgB,oBAM5B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Autocomplete/Item/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,mCAAiD;AAU1C,IAAM,gBAAgB,GAAG,UAAC,KAA4B;IACjD,IAAA,WAAW,GAAgB,KAAK,YAArB,EAAE,SAAS,GAAK,KAAK,UAAV,CAAU;IAExC,OAAO,CACH,oBAAC,+BAAsB,uBACf,KAAK,oBACK,WAAW,gBACb,SAAS,KAEpB,KAAK,CAAC,QAAQ,CACM,CAC5B,CAAA;AACL,CAAC,CAAA;AAZY,QAAA,gBAAgB,oBAY5B"}
@@ -1,4 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { AutocompleteItemProps } from './index';
3
- export declare const StyledAutocompleteItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, AutocompleteItemProps>> & string;
3
+ import { PrefixedPick } from '../../../types/styled-components';
4
+ type StyledAutocompleteItemProps = PrefixedPick<AutocompleteItemProps, 'highlighted' | 'noResults'>;
5
+ export declare const StyledAutocompleteItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledAutocompleteItemProps>> & string;
4
6
  export declare const StyledAutocompleteItemTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
+ export {};
@@ -5,10 +5,10 @@ var tslib_1 = require("tslib");
5
5
  var index_1 = require("../../../theme/index");
6
6
  var styled_components_1 = require("styled-components");
7
7
  exports.StyledAutocompleteItem = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", "px;\n color: ", ";\n padding: ", "px ", "px;\n background: ", ";\n\n &:hover {\n cursor: ", ";\n }\n"], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", "px;\n color: ", ";\n padding: ", "px ", "px;\n background: ", ";\n\n &:hover {\n cursor: ", ";\n }\n"])), function (props) { return props.theme.font.default; }, function (props) { return props.theme.font.sizes.s; }, function (props) { return props.theme.baseline * 3; }, function (props) {
8
- return props.noResults ? props.theme.colors.text.light : 'inherit';
8
+ return props.$noResults ? props.theme.colors.text.light : 'inherit';
9
9
  }, index_1.baseline * 1.5, index_1.baseline, function (props) {
10
- return props.highlighted ? props.theme.colors.grey[100] : 'white';
11
- }, function (props) { return (props.noResults ? 'default' : 'pointer'); });
10
+ return props.$highlighted ? props.theme.colors.grey[100] : 'white';
11
+ }, function (props) { return (props.$noResults ? 'default' : 'pointer'); });
12
12
  exports.StyledAutocompleteItemTitle = styled_components_1.default.div(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n padding: 10px ", "px;\n border-bottom: 1px solid ", ";\n user-select: none;\n text-transform: uppercase;\n color: ", ";\n"], ["\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n padding: 10px ", "px;\n border-bottom: 1px solid ", ";\n user-select: none;\n text-transform: uppercase;\n color: ", ";\n"])), function (props) { return props.theme.font.default; }, function (props) { return props.theme.font.sizes.s; }, index_1.baseline, function (props) { return props.theme.borderColor; }, function (props) { return props.theme.colors.grey[300]; });
13
13
  var templateObject_1, templateObject_2;
14
14
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/Autocomplete/Item/styles.ts"],"names":[],"mappings":";;;;AAAA,8CAA+C;AAC/C,uDAAsC;AAGzB,QAAA,sBAAsB,GAAG,2BAAM,CAAC,GAAG,4QAAuB,qBACpD,EAAmC,oBACrC,EAAmC,sBACjC,EAAmC,kBACzC,EACsD,kBACpD,EAAc,KAAM,EAAQ,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8CAEhC,EAAQ,oCACG,EAAkC,wEAGpD,EAAuC,KACnD,KARkB,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAxB,CAAwB,EACrC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAxB,CAAwB,EAEhC,gBAAQ,EACG,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,WAAW,EAAvB,CAAuB,EAGpD,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAA5B,CAA4B,EACnD"}
@@ -22,7 +22,8 @@ var mr = function (value, themeSpacing) {
22
22
  exports.mr = mr;
23
23
  var Box = function (_a) {
24
24
  var children = _a.children, _b = _a.bottom, bottom = _b === void 0 ? 3 : _b, props = tslib_1.__rest(_a, ["children", "bottom"]);
25
- return (React.createElement(styles_1.StyledBox, tslib_1.__assign({ "data-hook": props.hook, bottom: bottom }, props), children));
25
+ var top = props.top, left = props.left, right = props.right, center = props.center, visible = props.visible;
26
+ return (React.createElement(styles_1.StyledBox, tslib_1.__assign({ "data-hook": props.hook, "$top": top, "$right": right, "$left": left, "$bottom": bottom, "$center": center, "$visible": visible }, props), children));
26
27
  };
27
28
  exports.Box = Box;
28
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Box/index.tsx"],"names":[],"mappings":";;;;AACA,mCAAoC;AACpC,6BAA8B;AAcvB,IAAM,EAAE,GAAG,UACd,KAAc,EACd,YAAgC;IAEhC,OAAO,sBAAe,YAAY,CAAC,KAAK,CAAC,OAAI,CAAA;AACjD,CAAC,CAAA;AALY,QAAA,EAAE,MAKd;AACM,IAAM,EAAE,GAAG,UACd,KAAc,EACd,YAAgC;IAEhC,OAAO,uBAAgB,YAAY,CAAC,KAAK,CAAC,OAAI,CAAA;AAClD,CAAC,CAAA;AALY,QAAA,EAAE,MAKd;AACM,IAAM,EAAE,GAAG,UACd,KAAc,EACd,YAAgC;IAEhC,OAAO,yBAAkB,YAAY,CAAC,KAAK,CAAC,OAAI,CAAA;AACpD,CAAC,CAAA;AALY,QAAA,EAAE,MAKd;AACM,IAAM,EAAE,GAAG,UACd,KAAc,EACd,YAAgC;IAEhC,OAAO,wBAAiB,YAAY,CAAC,KAAK,CAAC,OAAI,CAAA;AACnD,CAAC,CAAA;AALY,QAAA,EAAE,MAKd;AAEM,IAAM,GAAG,GAAG,UAAC,EAIT;IAHP,IAAA,QAAQ,cAAA,EACR,cAAU,EAAV,MAAM,mBAAG,CAAC,KAAA,EACP,KAAK,sBAHQ,sBAInB,CADW;IAER,OAAO,CACH,oBAAC,kBAAS,kCAAY,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,IAAM,KAAK,GACtD,QAAQ,CACD,CACf,CAAA;AACL,CAAC,CAAA;AAVY,QAAA,GAAG,OAUf"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Box/index.tsx"],"names":[],"mappings":";;;;AACA,mCAAoC;AACpC,6BAA8B;AAcvB,IAAM,EAAE,GAAG,UACd,KAAc,EACd,YAAgC;IAEhC,OAAO,sBAAe,YAAY,CAAC,KAAK,CAAC,OAAI,CAAA;AACjD,CAAC,CAAA;AALY,QAAA,EAAE,MAKd;AACM,IAAM,EAAE,GAAG,UACd,KAAc,EACd,YAAgC;IAEhC,OAAO,uBAAgB,YAAY,CAAC,KAAK,CAAC,OAAI,CAAA;AAClD,CAAC,CAAA;AALY,QAAA,EAAE,MAKd;AACM,IAAM,EAAE,GAAG,UACd,KAAc,EACd,YAAgC;IAEhC,OAAO,yBAAkB,YAAY,CAAC,KAAK,CAAC,OAAI,CAAA;AACpD,CAAC,CAAA;AALY,QAAA,EAAE,MAKd;AACM,IAAM,EAAE,GAAG,UACd,KAAc,EACd,YAAgC;IAEhC,OAAO,wBAAiB,YAAY,CAAC,KAAK,CAAC,OAAI,CAAA;AACnD,CAAC,CAAA;AALY,QAAA,EAAE,MAKd;AAEM,IAAM,GAAG,GAAG,UAAC,EAIT;IAHP,IAAA,QAAQ,cAAA,EACR,cAAU,EAAV,MAAM,mBAAG,CAAC,KAAA,EACP,KAAK,sBAHQ,sBAInB,CADW;IAEA,IAAA,GAAG,GAAmC,KAAK,IAAxC,EAAE,IAAI,GAA6B,KAAK,KAAlC,EAAE,KAAK,GAAsB,KAAK,MAA3B,EAAE,MAAM,GAAc,KAAK,OAAnB,EAAE,OAAO,GAAK,KAAK,QAAV,CAAU;IAEnD,OAAO,CACH,oBAAC,kBAAS,kCACK,KAAK,CAAC,IAAI,UACf,GAAG,YACD,KAAK,WACN,IAAI,aACF,MAAM,aACN,MAAM,cACL,OAAO,IACb,KAAK,GAER,QAAQ,CACD,CACf,CAAA;AACL,CAAC,CAAA;AArBY,QAAA,GAAG,OAqBf"}
@@ -1,3 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { BoxProps } from '.';
3
- export declare const StyledBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BoxProps>> & string;
3
+ import { PrefixedPick } from '../../types/styled-components';
4
+ type StyledBoxProps = PrefixedPick<BoxProps, 'top' | 'right' | 'bottom' | 'left' | 'center' | 'visible'>;
5
+ export declare const StyledBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledBoxProps>> & string;
6
+ export {};
@@ -5,10 +5,10 @@ var tslib_1 = require("tslib");
5
5
  var styled_components_1 = require("styled-components");
6
6
  var _1 = require(".");
7
7
  var index_1 = require("../../theme/index");
8
- exports.StyledBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", ";\n ", ";\n ", ";\n ", ";\n text-align: ", ";\n display: ", ";\n @media (min-width: ", "px) {\n ", ";\n }\n"], ["\n ", ";\n ", ";\n ", ";\n ", ";\n text-align: ", ";\n display: ", ";\n @media (min-width: ", "px) {\n ", ";\n }\n"])), function (props) { return props.top && (0, _1.mt)(props.top, props.theme.spacing); }, function (props) { return props.right && (0, _1.mr)(props.right, props.theme.spacing); }, function (props) { return props.bottom && (0, _1.mb)(props.bottom, props.theme.spacing); }, function (props) { return props.left && (0, _1.ml)(props.left, props.theme.spacing); }, function (props) { return (props.center ? 'center' : 'inherit'); }, function (props) {
9
- return props.visible && props.visible[0] === false ? 'none' : 'block';
8
+ exports.StyledBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", ";\n ", ";\n ", ";\n ", ";\n text-align: ", ";\n display: ", ";\n @media (min-width: ", "px) {\n ", ";\n }\n"], ["\n ", ";\n ", ";\n ", ";\n ", ";\n text-align: ", ";\n display: ", ";\n @media (min-width: ", "px) {\n ", ";\n }\n"])), function (props) { return props.$top && (0, _1.mt)(props.$top, props.theme.spacing); }, function (props) { return props.$right && (0, _1.mr)(props.$right, props.theme.spacing); }, function (props) { return props.$bottom && (0, _1.mb)(props.$bottom, props.theme.spacing); }, function (props) { return props.$left && (0, _1.ml)(props.$left, props.theme.spacing); }, function (props) { return (props.$center ? 'center' : 'inherit'); }, function (props) {
9
+ return props.$visible && props.$visible[0] === false ? 'none' : 'block';
10
10
  }, index_1.breakpoints.s, function (props) {
11
- return props.visible && props.visible[1] === false
11
+ return props.$visible && props.$visible[1] === false
12
12
  ? 'display: none'
13
13
  : null;
14
14
  });
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Box/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAAsC;AACtC,sBAA4C;AAC5C,2CAA+C;AAElC,QAAA,SAAS,GAAG,2BAAM,CAAC,GAAG,8NAAU,QACvC,EA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,CAAC,KAAK,KAAK;QACzC,CAAC,CAAC,eAAe;QACjB,CAAC,CAAC,IAAI;AAFV,CAEU,EAErB"}
@@ -10,14 +10,14 @@ var styles_1 = require("./styles");
10
10
  var Button = function (_a) {
11
11
  var disabled = _a.disabled, loading = _a.loading, hook = _a.hook, nav = _a.nav, children = _a.children, link = _a.link, _b = _a.type, type = _b === void 0 ? 'button' : _b, _c = _a.kind, kind = _c === void 0 ? 'primary' : _c, _d = _a.size, size = _d === void 0 ? types_1.SIZE_MEDIUM : _d, rest = tslib_1.__rest(_a, ["disabled", "loading", "hook", "nav", "children", "link", "type", "kind", "size"]);
12
12
  return link ? (React.createElement(styles_1.StyledLinkButton, tslib_1.__assign({ disabled: disabled || loading, "data-hook": hook, type: type }, rest),
13
- nav === 'previous' && (React.createElement(styles_1.StyledIcon, { nav: nav },
13
+ nav === 'previous' && (React.createElement(styles_1.StyledIcon, { "$nav": nav },
14
14
  React.createElement(ArrowLeft_1.ArrowLeft, { width: 16 }))),
15
15
  children,
16
- nav === 'next' && React.createElement(ArrowRight_1.ArrowRight, { width: 16 }))) : (React.createElement(styles_1.StyledButton, tslib_1.__assign({ disabled: disabled || loading, "data-hook": hook, type: type, kind: kind, size: size }, rest), loading ? ('Aan het laden...') : (React.createElement(React.Fragment, null,
17
- nav === 'previous' && (React.createElement(styles_1.StyledIcon, { nav: nav },
16
+ nav === 'next' && React.createElement(ArrowRight_1.ArrowRight, { width: 16 }))) : (React.createElement(styles_1.StyledButton, tslib_1.__assign({ disabled: disabled || loading, "data-hook": hook, type: type, "$kind": kind, "$size": size }, rest), loading ? ('Aan het laden...') : (React.createElement(React.Fragment, null,
17
+ nav === 'previous' && (React.createElement(styles_1.StyledIcon, { "$nav": nav },
18
18
  React.createElement(ArrowLeft_1.ArrowLeft, { width: 16 }))),
19
19
  children,
20
- nav === 'next' && (React.createElement(styles_1.StyledIcon, { nav: nav },
20
+ nav === 'next' && (React.createElement(styles_1.StyledIcon, { "$nav": nav },
21
21
  React.createElement(ArrowRight_1.ArrowRight, { width: 16 })))))));
22
22
  };
23
23
  exports.Button = Button;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,0DAAwD;AACxD,4DAA0D;AAC1D,2CAAyE;AACzE,mCAAqE;AA8B9D,IAAM,MAAM,GAAG,UAAC,EAWT;IAVV,IAAA,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,IAAI,UAAA,EACJ,GAAG,SAAA,EACH,QAAQ,cAAA,EACR,IAAI,UAAA,EACJ,YAAe,EAAf,IAAI,mBAAG,QAAQ,KAAA,EACf,YAAgB,EAAhB,IAAI,mBAAG,SAAS,KAAA,EAChB,YAAkB,EAAlB,IAAI,mBAAG,mBAAW,KAAA,EACf,IAAI,sBAVY,kFAWtB,CADU;IAEP,OAAO,IAAI,CAAC,CAAC,CAAC,CACV,oBAAC,yBAAgB,qBACb,QAAQ,EAAE,QAAQ,IAAI,OAAO,eAClB,IAAI,EACf,IAAI,EAAE,IAAI,IACN,IAAI;QAEP,GAAG,KAAK,UAAU,IAAI,CACnB,oBAAC,mBAAU,IAAC,GAAG,EAAE,GAAG;YAChB,oBAAC,qBAAS,IAAC,KAAK,EAAE,EAAE,GAAI,CACf,CAChB;QACA,QAAQ;QACR,GAAG,KAAK,MAAM,IAAI,oBAAC,uBAAU,IAAC,KAAK,EAAE,EAAE,GAAI,CAC7B,CACtB,CAAC,CAAC,CAAC,CACA,oBAAC,qBAAY,qBACT,QAAQ,EAAE,QAAQ,IAAI,OAAO,eAClB,IAAI,EACf,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,IACN,IAAI,GAEP,OAAO,CAAC,CAAC,CAAC,CACP,kBAAkB,CACrB,CAAC,CAAC,CAAC,CACA;QACK,GAAG,KAAK,UAAU,IAAI,CACnB,oBAAC,mBAAU,IAAC,GAAG,EAAE,GAAG;YAChB,oBAAC,qBAAS,IAAC,KAAK,EAAE,EAAE,GAAI,CACf,CAChB;QACA,QAAQ;QACR,GAAG,KAAK,MAAM,IAAI,CACf,oBAAC,mBAAU,IAAC,GAAG,EAAE,GAAG;YAChB,oBAAC,uBAAU,IAAC,KAAK,EAAE,EAAE,GAAI,CAChB,CAChB,CACF,CACN,CACU,CAClB,CAAA;AACL,CAAC,CAAA;AAvDY,QAAA,MAAM,UAuDlB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,0DAAwD;AACxD,4DAA0D;AAC1D,2CAAyE;AACzE,mCAAqE;AA8B9D,IAAM,MAAM,GAAG,UAAC,EAWT;IAVV,IAAA,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,IAAI,UAAA,EACJ,GAAG,SAAA,EACH,QAAQ,cAAA,EACR,IAAI,UAAA,EACJ,YAAe,EAAf,IAAI,mBAAG,QAAQ,KAAA,EACf,YAAgB,EAAhB,IAAI,mBAAG,SAAS,KAAA,EAChB,YAAkB,EAAlB,IAAI,mBAAG,mBAAW,KAAA,EACf,IAAI,sBAVY,kFAWtB,CADU;IAEP,OAAO,IAAI,CAAC,CAAC,CAAC,CACV,oBAAC,yBAAgB,qBACb,QAAQ,EAAE,QAAQ,IAAI,OAAO,eAClB,IAAI,EACf,IAAI,EAAE,IAAI,IACN,IAAI;QAEP,GAAG,KAAK,UAAU,IAAI,CACnB,oBAAC,mBAAU,YAAO,GAAG;YACjB,oBAAC,qBAAS,IAAC,KAAK,EAAE,EAAE,GAAI,CACf,CAChB;QACA,QAAQ;QACR,GAAG,KAAK,MAAM,IAAI,oBAAC,uBAAU,IAAC,KAAK,EAAE,EAAE,GAAI,CAC7B,CACtB,CAAC,CAAC,CAAC,CACA,oBAAC,qBAAY,qBACT,QAAQ,EAAE,QAAQ,IAAI,OAAO,eAClB,IAAI,EACf,IAAI,EAAE,IAAI,WACH,IAAI,WACJ,IAAI,IACP,IAAI,GAEP,OAAO,CAAC,CAAC,CAAC,CACP,kBAAkB,CACrB,CAAC,CAAC,CAAC,CACA;QACK,GAAG,KAAK,UAAU,IAAI,CACnB,oBAAC,mBAAU,YAAO,GAAG;YACjB,oBAAC,qBAAS,IAAC,KAAK,EAAE,EAAE,GAAI,CACf,CAChB;QACA,QAAQ;QACR,GAAG,KAAK,MAAM,IAAI,CACf,oBAAC,mBAAU,YAAO,GAAG;YACjB,oBAAC,uBAAU,IAAC,KAAK,EAAE,EAAE,GAAI,CAChB,CAChB,CACF,CACN,CACU,CAClB,CAAA;AACL,CAAC,CAAA;AAvDY,QAAA,MAAM,UAuDlB"}
@@ -1,8 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonProps } from '.';
3
- import { LinkProps } from '../Link';
4
- export declare const StyledButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonProps>> & string;
5
- export declare const StyledLinkButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Pick<LinkProps, "secondary" | "textDecoration">>> & string;
3
+ import { StyledLinkProps } from '../Link/styles';
4
+ import { PrefixedPick } from '../../types/styled-components';
5
+ type StyledButtonProps = PrefixedPick<ButtonProps, 'kind' | 'size'>;
6
+ export declare const StyledButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, StyledButtonProps>> & string;
7
+ export declare const StyledLinkButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, StyledLinkProps>> & string;
6
8
  export declare const StyledIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
7
- nav: 'previous' | 'next';
9
+ $nav: 'previous' | 'next';
8
10
  }>> & string;
11
+ export {};
@@ -6,42 +6,42 @@ var styled_components_1 = require("styled-components");
6
6
  var styled_map_1 = require("styled-map");
7
7
  var index_1 = require("../../theme/index");
8
8
  var styles_1 = require("../Link/styles");
9
- exports.StyledButton = styled_components_1.default.button(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n appearance: none;\n background: none;\n border: none;\n position: relative;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n width: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n white-space: nowrap;\n line-height: ", ";\n box-shadow: ", ";\n background: ", ";\n border-radius: ", "px;\n color: ", ";\n opacity: ", ";\n cursor: ", ";\n &:hover,\n &:focus {\n outline: none;\n background: ", ";\n border-color: ", ";\n color: ", ";\n }\n @media (min-width: ", "px) {\n width: auto;\n padding: ", ";\n }\n"], ["\n appearance: none;\n background: none;\n border: none;\n position: relative;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n width: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n white-space: nowrap;\n line-height: ", ";\n box-shadow: ", ";\n background: ", ";\n border-radius: ", "px;\n color: ", ";\n opacity: ", ";\n cursor: ", ";\n &:hover,\n &:focus {\n outline: none;\n background: ", ";\n border-color: ", ";\n color: ", ";\n }\n @media (min-width: ", "px) {\n width: auto;\n padding: ", ";\n }\n"])), (0, styled_map_1.default)('kind', {
9
+ exports.StyledButton = styled_components_1.default.button(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n appearance: none;\n background: none;\n border: none;\n position: relative;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n width: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n white-space: nowrap;\n line-height: ", ";\n box-shadow: ", ";\n background: ", ";\n border-radius: ", "px;\n color: ", ";\n opacity: ", ";\n cursor: ", ";\n &:hover,\n &:focus {\n outline: none;\n background: ", ";\n border-color: ", ";\n color: ", ";\n }\n @media (min-width: ", "px) {\n width: auto;\n padding: ", ";\n }\n"], ["\n appearance: none;\n background: none;\n border: none;\n position: relative;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n width: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n white-space: nowrap;\n line-height: ", ";\n box-shadow: ", ";\n background: ", ";\n border-radius: ", "px;\n color: ", ";\n opacity: ", ";\n cursor: ", ";\n &:hover,\n &:focus {\n outline: none;\n background: ", ";\n border-color: ", ";\n color: ", ";\n }\n @media (min-width: ", "px) {\n width: auto;\n padding: ", ";\n }\n"])), (0, styled_map_1.default)('$kind', {
10
10
  primary: '100%',
11
11
  secondary: '100%',
12
12
  tertiary: '100%',
13
13
  ghost: 'auto',
14
14
  }), function (props) {
15
- return (0, styled_map_1.default)('size', {
16
- small: props.kind === 'none' ? 0 : "0 ".concat(props.theme.spacing[1], "px;"),
17
- medium: props.kind === 'none' ? 0 : "0 ".concat(props.theme.spacing[2], "px;"),
18
- large: props.kind === 'none' ? 0 : "0 ".concat(props.theme.spacing[3], "px;"),
15
+ return (0, styled_map_1.default)('$size', {
16
+ small: props.$kind === 'none' ? 0 : "0 ".concat(props.theme.spacing[1], "px;"),
17
+ medium: props.$kind === 'none' ? 0 : "0 ".concat(props.theme.spacing[2], "px;"),
18
+ large: props.$kind === 'none' ? 0 : "0 ".concat(props.theme.spacing[3], "px;"),
19
19
  });
20
20
  }, function (props) { return props.theme.font.default; }, function (props) {
21
- return (0, styled_map_1.default)('size', {
21
+ return (0, styled_map_1.default)('$size', {
22
22
  small: props.theme.font.sizes.s,
23
23
  medium: props.theme.font.sizes.s,
24
24
  large: props.theme.font.sizes.m,
25
25
  });
26
- }, (0, styled_map_1.default)('size', {
26
+ }, (0, styled_map_1.default)('$size', {
27
27
  small: 500,
28
28
  medium: 500,
29
29
  large: 500,
30
30
  }), function (props) {
31
- return (0, styled_map_1.default)('size', {
31
+ return (0, styled_map_1.default)('$size', {
32
32
  small: "".concat(props.theme.spacing[4], "px"),
33
33
  medium: "".concat(props.theme.spacing[5], "px"),
34
34
  large: "".concat(props.theme.spacing[6], "px"),
35
35
  });
36
36
  }, function (props) {
37
37
  return props.disabled
38
- ? (0, styled_map_1.default)('kind', {
38
+ ? (0, styled_map_1.default)('$kind', {
39
39
  primary: props.theme.colors.grey[200],
40
40
  secondary: props.theme.colors.grey[200],
41
41
  tertiary: props.theme.colors.grey[200],
42
42
  ghost: 'none',
43
43
  })
44
- : (0, styled_map_1.default)('kind', {
44
+ : (0, styled_map_1.default)('$kind', {
45
45
  primary: '0 2px 4px rgba(45, 54, 66, 0.07), 0 1px 2px rgba(45, 54, 66, 0.07);',
46
46
  secondary: '0 2px 4px rgba(45, 54, 66, 0.07), 0 1px 2px rgba(45, 54, 66, 0.07);',
47
47
  tertiary: "inset 0 0 0 1px ".concat(props.theme.colors.primary, ";"),
@@ -49,13 +49,13 @@ exports.StyledButton = styled_components_1.default.button(templateObject_1 || (t
49
49
  });
50
50
  }, function (props) {
51
51
  return props.disabled
52
- ? (0, styled_map_1.default)('kind', {
52
+ ? (0, styled_map_1.default)('$kind', {
53
53
  primary: props.theme.colors.grey[200],
54
54
  secondary: props.theme.colors.grey[200],
55
55
  tertiary: props.theme.colors.grey[200],
56
56
  ghost: 'transparent',
57
57
  })
58
- : (0, styled_map_1.default)('kind', {
58
+ : (0, styled_map_1.default)('$kind', {
59
59
  primary: props.theme.colors.buttons.primary,
60
60
  secondary: props.theme.colors.buttons.secondary,
61
61
  tertiary: props.theme.colors.buttons.tertiary,
@@ -64,7 +64,7 @@ exports.StyledButton = styled_components_1.default.button(templateObject_1 || (t
64
64
  }, function (props) { return props.theme.borderRadius.button; }, function (props) {
65
65
  return props.disabled
66
66
  ? props.theme.colors.grey[300]
67
- : (0, styled_map_1.default)('kind', {
67
+ : (0, styled_map_1.default)('$kind', {
68
68
  primary: 'white',
69
69
  secondary: 'white',
70
70
  tertiary: props.theme.colors.primary,
@@ -78,13 +78,13 @@ exports.StyledButton = styled_components_1.default.button(templateObject_1 || (t
78
78
  default: 'pointer',
79
79
  }), function (props) {
80
80
  return props.disabled
81
- ? (0, styled_map_1.default)('kind', {
81
+ ? (0, styled_map_1.default)('$kind', {
82
82
  primary: props.theme.colors.grey[200],
83
83
  secondary: props.theme.colors.grey[200],
84
84
  tertiary: 'transparent',
85
85
  ghost: 'transparent',
86
86
  })
87
- : (0, styled_map_1.default)('kind', {
87
+ : (0, styled_map_1.default)('$kind', {
88
88
  primary: props.theme.colors.buttons.primaryHover,
89
89
  secondary: props.theme.colors.buttons.secondaryHover,
90
90
  tertiary: props.theme.colors.buttons.tertiaryHover,
@@ -93,7 +93,7 @@ exports.StyledButton = styled_components_1.default.button(templateObject_1 || (t
93
93
  }, function (props) {
94
94
  return props.disabled
95
95
  ? props.theme.colors.grey[200]
96
- : (0, styled_map_1.default)('kind', {
96
+ : (0, styled_map_1.default)('$kind', {
97
97
  primary: props.theme.colors.buttons.primaryHover,
98
98
  secondary: props.theme.colors.buttons.secondaryHover,
99
99
  tertiary: props.theme.colors.primary,
@@ -102,30 +102,30 @@ exports.StyledButton = styled_components_1.default.button(templateObject_1 || (t
102
102
  }, function (props) {
103
103
  return props.disabled
104
104
  ? props.theme.colors.grey[300]
105
- : (0, styled_map_1.default)('kind', {
105
+ : (0, styled_map_1.default)('$kind', {
106
106
  primary: 'white',
107
107
  secondary: 'white',
108
108
  tertiary: props.theme.colors.primary,
109
109
  ghost: props.theme.colors.grey[600],
110
110
  });
111
111
  }, index_1.breakpoints.s, function (props) {
112
- return (0, styled_map_1.default)('size', {
113
- small: props.kind === 'none'
112
+ return (0, styled_map_1.default)('$size', {
113
+ small: props.$kind === 'none'
114
114
  ? 0
115
115
  : "0 ".concat(props.theme.spacing[1], "px;"),
116
- medium: props.kind === 'none'
116
+ medium: props.$kind === 'none'
117
117
  ? 0
118
118
  : "0 ".concat(props.theme.spacing[2], "px;"),
119
- large: props.kind === 'none'
119
+ large: props.$kind === 'none'
120
120
  ? 0
121
121
  : "0 ".concat(props.theme.spacing[3], "px;"),
122
122
  });
123
123
  });
124
124
  exports.StyledLinkButton = styled_components_1.default.button(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n ", "\n border: none\n background: none\n padding: 0\n &:hover {\n color: ", ";\n }\n"], ["\n ", "\n border: none\n background: none\n padding: 0\n &:hover {\n color: ", ";\n }\n"])), styles_1.linkStyles, function (props) {
125
- return props.secondary
125
+ return props.$secondary
126
126
  ? props.theme.colors.grey[600]
127
127
  : props.theme.colors.links.hover;
128
128
  });
129
- exports.StyledIcon = styled_components_1.default.div(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n svg {\n position: relative;\n top: 4px;\n }\n"], ["\n ", "\n ", "\n ", "\n ", "\n svg {\n position: relative;\n top: 4px;\n }\n"])), function (props) { return (props.nav === 'previous' ? 'left: 16px' : 0); }, function (props) { return (props.nav === 'next' ? 'right: 16px' : 0); }, function (props) { return (props.nav === 'previous' ? 'margin-right: 8px' : 0); }, function (props) { return (props.nav === 'next' ? 'margin-left: 8px' : 0); });
129
+ exports.StyledIcon = styled_components_1.default.div(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n svg {\n position: relative;\n top: 4px;\n }\n"], ["\n ", "\n ", "\n ", "\n ", "\n svg {\n position: relative;\n top: 4px;\n }\n"])), function (props) { return (props.$nav === 'previous' ? 'left: 16px' : 0); }, function (props) { return (props.$nav === 'next' ? 'right: 16px' : 0); }, function (props) { return (props.$nav === 'previous' ? 'margin-right: 8px' : 0); }, function (props) { return (props.$nav === 'next' ? 'margin-left: 8px' : 0); });
130
130
  var templateObject_1, templateObject_2, templateObject_3;
131
131
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Button/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAAsC;AACtC,yCAAkC;AAElC,2CAA+C;AAC/C,yCAA2C;AAG9B,QAAA,YAAY,GAAG,2BAAM,CAAC,MAAM,8vBAAa,4LAQzC,EAKP,kBACS,EAML,sBACS,EAAmC,oBACrC,EAKP,sBACS,EAIb,gDAEa,EAKT,qBACQ,EAeF,qBACE,EAaF,wBACK,EAA0C,kBAClD,EAQG,kBACD,EAGT,iBACQ,EAGR,8EAIgB,EAaF,2BACI,EAQJ,oBACH,EAQG,mCAEK,EAAa,gDAEnB,EAcL,YAEb,KAtIY,IAAA,oBAAS,EAAC,MAAM,EAAE;IACvB,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,MAAM;IACjB,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;CAChB,CAAC,EACS,UAAC,KAAK;IACb,OAAA,IAAA,oBAAS,EAAC,MAAM,EAAE;QACd,KAAK,EAAE,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAK,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,QAAK;QACnE,MAAM,EACF,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAK,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,QAAK;QAChE,KAAK,EAAE,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAK,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,QAAK;KACtE,CAAC;AALF,CAKE,EACS,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IA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AC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,EAArD,CAAqD,EAChE,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,EAAhD,CAAgD,EAKhE"}
@@ -5,7 +5,7 @@ var React = require("react");
5
5
  var styles_1 = require("./styles");
6
6
  var ButtonGroup = function (_a) {
7
7
  var direction = _a.direction, children = _a.children;
8
- return (React.createElement(styles_1.StyledButtonGroup, { direction: direction }, children));
8
+ return (React.createElement(styles_1.StyledButtonGroup, { "$direction": direction }, children));
9
9
  };
10
10
  exports.ButtonGroup = ButtonGroup;
11
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ButtonGroup/index.tsx"],"names":[],"mappings":";;;AAAA,6BAA8B;AAC9B,mCAA4C;AAOrC,IAAM,WAAW,GAAG,UAAC,EAGT;QAFf,SAAS,eAAA,EACT,QAAQ,cAAA;IAER,OAAO,CACH,oBAAC,0BAAiB,IAAC,SAAS,EAAE,SAAS,IAAG,QAAQ,CAAqB,CAC1E,CAAA;AACL,CAAC,CAAA;AAPY,QAAA,WAAW,eAOvB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ButtonGroup/index.tsx"],"names":[],"mappings":";;;AAAA,6BAA8B;AAC9B,mCAA4C;AAOrC,IAAM,WAAW,GAAG,UAAC,EAGT;QAFf,SAAS,eAAA,EACT,QAAQ,cAAA;IAER,OAAO,CACH,oBAAC,0BAAiB,kBAAa,SAAS,IAAG,QAAQ,CAAqB,CAC3E,CAAA;AACL,CAAC,CAAA;AAPY,QAAA,WAAW,eAOvB"}
@@ -1,3 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonGroupProps } from '.';
3
- export declare const StyledButtonGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ButtonGroupProps>> & string;
3
+ import { PrefixedPick } from '../../types/styled-components';
4
+ type StyledButtonGroupProps = PrefixedPick<ButtonGroupProps, 'direction'>;
5
+ export declare const StyledButtonGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledButtonGroupProps>> & string;
6
+ export {};
@@ -5,15 +5,15 @@ var tslib_1 = require("tslib");
5
5
  var styled_components_1 = require("styled-components");
6
6
  var theme_1 = require("../../theme");
7
7
  exports.StyledButtonGroup = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n\n button + button {\n ", ";\n }\n\n @media (min-width: ", "px) {\n button + button {\n margin-top: ", "px;\n margin-left: ", "px;\n }\n align-items: flex-start;\n }\n"], ["\n display: flex;\n flex-direction: ", ";\n\n button + button {\n ", ";\n }\n\n @media (min-width: ", "px) {\n button + button {\n margin-top: ", "px;\n margin-left: ", "px;\n }\n align-items: flex-start;\n }\n"])), function (props) {
8
- return props.direction === 'column' ? 'column' : 'row';
8
+ return props.$direction === 'column' ? 'column' : 'row';
9
9
  }, function (props) {
10
- return props.direction === 'column'
10
+ return props.$direction === 'column'
11
11
  ? "margin-top: ".concat(props.theme.baseline, "px")
12
12
  : "margin-left: ".concat(props.theme.baseline, "px");
13
13
  }, theme_1.breakpoints.xs, function (props) {
14
- return props.direction === 'column' ? props.theme.baseline : 0;
14
+ return props.$direction === 'column' ? props.theme.baseline : 0;
15
15
  }, function (props) {
16
- return props.direction === 'row' ? props.theme.baseline : 0;
16
+ return props.$direction === 'row' ? props.theme.baseline : 0;
17
17
  });
18
18
  var templateObject_1;
19
19
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/ButtonGroup/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAAsC;AAEtC,qCAAyC;AAE5B,QAAA,iBAAiB,GAAG,2BAAM,CAAC,GAAG,mWAAkB,4CAEvC,EACiC,sCAG7C,EAGgD,qCAGjC,EAAc,4DAEb,EAC6C,gCAC5C,EACyC,2DAInE,KAnBqB,UAAC,KAAK;IACpB,OAAA,KAAK,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK;AAA/C,CAA+C,EAG7C,UAAC,KAAK;IACJ,OAAA,KAAK,CAAC,SAAS,KAAK,QAAQ;QACxB,CAAC,CAAC,sBAAe,KAAK,CAAC,KAAK,CAAC,QAAQ,OAAI;QACzC,CAAC,CAAC,uBAAgB,KAAK,CAAC,KAAK,CAAC,QAAQ,OAAI;AAF9C,CAE8C,EAGjC,mBAAW,CAAC,EAAE,EAEb,UAAC,KAAK;IAChB,OAAA,KAAK,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAAvD,CAAuD,EAC5C,UAAC,KAAK;IACjB,OAAA,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAApD,CAAoD,EAInE"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/ButtonGroup/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAAsC;AAEtC,qCAAyC;AAK5B,QAAA,iBAAiB,GAAG,2BAAM,CAAC,GAAG,mWAAwB,4CAE7C,EACkC,sCAG9C,EAGgD,qCAGjC,EAAc,4DAEb,EAC8C,gCAC7C,EAC0C,2DAIpE,KAnBqB,UAAC,KAAK;IACpB,OAAA,KAAK,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK;AAAhD,CAAgD,EAG9C,UAAC,KAAK;IACJ,OAAA,KAAK,CAAC,UAAU,KAAK,QAAQ;QACzB,CAAC,CAAC,sBAAe,KAAK,CAAC,KAAK,CAAC,QAAQ,OAAI;QACzC,CAAC,CAAC,uBAAgB,KAAK,CAAC,KAAK,CAAC,QAAQ,OAAI;AAF9C,CAE8C,EAGjC,mBAAW,CAAC,EAAE,EAEb,UAAC,KAAK;IAChB,OAAA,KAAK,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAAxD,CAAwD,EAC7C,UAAC,KAAK;IACjB,OAAA,KAAK,CAAC,UAAU,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAArD,CAAqD,EAIpE"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Spacing, TextAlignType } from '../../theme/types';
2
3
  import { BoxProps } from '../Box';
3
4
  export type CardProps = {
@@ -9,4 +10,4 @@ export type CardProps = {
9
10
  textAlign?: TextAlignType;
10
11
  overflow?: 'visible' | 'hidden' | 'scroll' | 'auto';
11
12
  } & BoxProps;
12
- export declare const Card: ({ hook, top, right, bottom, left, children, background, shadow, radius, px, py, ...rest }: CardProps) => JSX.Element;
13
+ export declare const Card: ({ hook, top, right, bottom, left, children, background, shadow, radius, px, py, overflow, textAlign, ...rest }: CardProps) => JSX.Element;
@@ -6,9 +6,9 @@ var React = require("react");
6
6
  var Box_1 = require("../Box");
7
7
  var styles_1 = require("./styles");
8
8
  var Card = function (_a) {
9
- var hook = _a.hook, top = _a.top, right = _a.right, bottom = _a.bottom, left = _a.left, children = _a.children, _b = _a.background, background = _b === void 0 ? 'white' : _b, shadow = _a.shadow, _c = _a.radius, radius = _c === void 0 ? 's' : _c, _d = _a.px, px = _d === void 0 ? 2 : _d, _e = _a.py, py = _e === void 0 ? 2 : _e, rest = tslib_1.__rest(_a, ["hook", "top", "right", "bottom", "left", "children", "background", "shadow", "radius", "px", "py"]);
9
+ var hook = _a.hook, top = _a.top, right = _a.right, bottom = _a.bottom, left = _a.left, children = _a.children, _b = _a.background, background = _b === void 0 ? 'white' : _b, shadow = _a.shadow, _c = _a.radius, radius = _c === void 0 ? 's' : _c, _d = _a.px, px = _d === void 0 ? 2 : _d, _e = _a.py, py = _e === void 0 ? 2 : _e, overflow = _a.overflow, textAlign = _a.textAlign, rest = tslib_1.__rest(_a, ["hook", "top", "right", "bottom", "left", "children", "background", "shadow", "radius", "px", "py", "overflow", "textAlign"]);
10
10
  return (React.createElement(Box_1.Box, { "data-hook": hook, top: top, right: right, bottom: bottom, left: left },
11
- React.createElement(styles_1.StyledCard, tslib_1.__assign({ background: background, shadow: shadow, radius: radius, px: px, py: py }, rest), children)));
11
+ React.createElement(styles_1.StyledCard, tslib_1.__assign({ "$background": background, "$shadow": shadow, "$radius": radius, "$px": px, "$py": py, "$overflow": overflow, "$textAlign": textAlign }, rest), children)));
12
12
  };
13
13
  exports.Card = Card;
14
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Card/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAE9B,8BAAsC;AACtC,mCAAqC;AAY9B,IAAM,IAAI,GAAG,UAAC,EAaT;IAZR,IAAA,IAAI,UAAA,EACJ,GAAG,SAAA,EACH,KAAK,WAAA,EACL,MAAM,YAAA,EACN,IAAI,UAAA,EACJ,QAAQ,cAAA,EACR,kBAAoB,EAApB,UAAU,mBAAG,OAAO,KAAA,EACpB,MAAM,YAAA,EACN,cAAY,EAAZ,MAAM,mBAAG,GAAG,KAAA,EACZ,UAAM,EAAN,EAAE,mBAAG,CAAC,KAAA,EACN,UAAM,EAAN,EAAE,mBAAG,CAAC,KAAA,EACH,IAAI,sBAZU,oGAapB,CADU;IAEP,OAAO,CACH,oBAAC,SAAG,iBACW,IAAI,EACf,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI;QAEV,oBAAC,mBAAU,qBACP,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,EAAE,IACF,IAAI,GAEP,QAAQ,CACA,CACX,CACT,CAAA;AACL,CAAC,CAAA;AAlCY,QAAA,IAAI,QAkChB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Card/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAE9B,8BAAsC;AACtC,mCAAqC;AAY9B,IAAM,IAAI,GAAG,UAAC,EAeT;IAdR,IAAA,IAAI,UAAA,EACJ,GAAG,SAAA,EACH,KAAK,WAAA,EACL,MAAM,YAAA,EACN,IAAI,UAAA,EACJ,QAAQ,cAAA,EACR,kBAAoB,EAApB,UAAU,mBAAG,OAAO,KAAA,EACpB,MAAM,YAAA,EACN,cAAY,EAAZ,MAAM,mBAAG,GAAG,KAAA,EACZ,UAAM,EAAN,EAAE,mBAAG,CAAC,KAAA,EACN,UAAM,EAAN,EAAE,mBAAG,CAAC,KAAA,EACN,QAAQ,cAAA,EACR,SAAS,eAAA,EACN,IAAI,sBAdU,6HAepB,CADU;IAEP,OAAO,CACH,oBAAC,SAAG,iBACW,IAAI,EACf,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI;QAEV,oBAAC,mBAAU,oCACM,UAAU,aACd,MAAM,aACN,MAAM,SACV,EAAE,SACF,EAAE,eACI,QAAQ,gBACP,SAAS,IACjB,IAAI,GAEP,QAAQ,CACA,CACX,CACT,CAAA;AACL,CAAC,CAAA;AAtCY,QAAA,IAAI,QAsChB"}
@@ -1,3 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { CardProps } from '.';
3
- export declare const StyledCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CardProps>> & string;
3
+ import { PrefixedPick } from '../../types/styled-components';
4
+ type StyledCardProps = PrefixedPick<CardProps, 'background' | 'px' | 'py' | 'radius' | 'shadow' | 'radius' | 'overflow' | 'textAlign'>;
5
+ export declare const StyledCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledCardProps>> & string;
6
+ export {};