@beequip/hexagon 0.23.0 → 0.25.0

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.
@@ -22,11 +22,14 @@ export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
22
22
  * `xxl: 28`
23
23
  *
24
24
  * `xxxl: 32`
25
+ *
26
+ * `xxxxl: 36`
25
27
  */
26
28
  size?: keyof typeof fontSizes;
27
29
  margin?: Spacing;
28
30
  align?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
29
- weight?: '400' | '500' | '700' | '800' | '900';
31
+ weight?: '400' | '700';
32
+ color?: string;
30
33
  children: React.ReactNode;
31
34
  }
32
- export declare const Heading: ({ children, level, align, margin, size, weight, ...props }: HeadingProps) => JSX.Element;
35
+ export declare const Heading: ({ children, level, align, margin, size, weight, color, ...props }: HeadingProps) => JSX.Element;
@@ -5,12 +5,12 @@ var tslib_1 = require("tslib");
5
5
  var React = require("react");
6
6
  var styles_1 = require("./styles");
7
7
  var Heading = function (_a) {
8
- var children = _a.children, _b = _a.level, level = _b === void 0 ? '2' : _b, _c = _a.align, align = _c === void 0 ? 'inherit' : _c, _d = _a.margin, margin = _d === void 0 ? 2 : _d, size = _a.size, weight = _a.weight, props = tslib_1.__rest(_a, ["children", "level", "align", "margin", "size", "weight"]);
8
+ var children = _a.children, _b = _a.level, level = _b === void 0 ? '2' : _b, _c = _a.align, align = _c === void 0 ? 'inherit' : _c, _d = _a.margin, margin = _d === void 0 ? 2 : _d, size = _a.size, weight = _a.weight, color = _a.color, props = tslib_1.__rest(_a, ["children", "level", "align", "margin", "size", "weight", "color"]);
9
9
  return (React.createElement(styles_1.StyledHeading, tslib_1.__assign({ as: level
10
10
  ? "h".concat(level)
11
11
  : typeof size === 'number'
12
12
  ? "h".concat(size)
13
- : undefined, role: "heading", "aria-level": level ? parseInt(level) : undefined, "$align": align, "$margin": margin, "$level": level, "$size": size, "$weight": weight }, props), children));
13
+ : undefined, role: "heading", "aria-level": level ? parseInt(level) : undefined, "$align": align, "$color": color, "$margin": margin, "$level": level, "$size": size, "$weight": weight }, props), children));
14
14
  };
15
15
  exports.Heading = Heading;
16
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Heading/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAG9B,mCAAwC;AA+BjC,IAAM,OAAO,GAAG,UAAC,EAQT;IAPX,IAAA,QAAQ,cAAA,EACR,aAAW,EAAX,KAAK,mBAAG,GAAG,KAAA,EACX,aAAiB,EAAjB,KAAK,mBAAG,SAAS,KAAA,EACjB,cAAU,EAAV,MAAM,mBAAG,CAAC,KAAA,EACV,IAAI,UAAA,EACJ,MAAM,YAAA,EACH,KAAK,sBAPY,0DAQvB,CADW;IAER,OAAO,CACH,oBAAC,sBAAa,qBACV,EAAE,EACE,KAAK;YACD,CAAC,CAAC,WAAI,KAAK,CAAE;YACb,CAAC,CAAC,OAAO,IAAI,KAAK,QAAQ;gBAC1B,CAAC,CAAC,WAAI,IAAI,CAAE;gBACZ,CAAC,CAAC,SAAS,EAEnB,IAAI,EAAC,SAAS,gBACF,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,YACvC,KAAK,aACJ,MAAM,YACP,KAAK,WACN,IAAI,aACF,MAAM,IACX,KAAK,GAER,QAAQ,CACG,CACnB,CAAA;AACL,CAAC,CAAA;AA9BY,QAAA,OAAO,WA8BnB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Heading/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAG9B,mCAAwC;AAkCjC,IAAM,OAAO,GAAG,UAAC,EAST;IARX,IAAA,QAAQ,cAAA,EACR,aAAW,EAAX,KAAK,mBAAG,GAAG,KAAA,EACX,aAAiB,EAAjB,KAAK,mBAAG,SAAS,KAAA,EACjB,cAAU,EAAV,MAAM,mBAAG,CAAC,KAAA,EACV,IAAI,UAAA,EACJ,MAAM,YAAA,EACN,KAAK,WAAA,EACF,KAAK,sBARY,mEASvB,CADW;IAER,OAAO,CACH,oBAAC,sBAAa,qBACV,EAAE,EACE,KAAK;YACD,CAAC,CAAC,WAAI,KAAK,CAAE;YACb,CAAC,CAAC,OAAO,IAAI,KAAK,QAAQ;gBAC1B,CAAC,CAAC,WAAI,IAAI,CAAE;gBACZ,CAAC,CAAC,SAAS,EAEnB,IAAI,EAAC,SAAS,gBACF,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,YACvC,KAAK,YACL,KAAK,aACJ,MAAM,YACP,KAAK,WACN,IAAI,aACF,MAAM,IACX,KAAK,GAER,QAAQ,CACG,CACnB,CAAA;AACL,CAAC,CAAA;AAhCY,QAAA,OAAO,WAgCnB"}
@@ -23,12 +23,12 @@ var HeadingWithText = function (_a) {
23
23
  };
24
24
  exports.HeadingWithText = HeadingWithText;
25
25
  var AllHeadings = function () { return (react_1.default.createElement(react_1.default.Fragment, null,
26
- react_1.default.createElement(_1.Heading, { level: "1" }, "Heading 1 / 32px"),
27
- react_1.default.createElement(_1.Heading, { level: "2" }, "Heading 2 / 28px"),
28
- react_1.default.createElement(_1.Heading, { level: "3" }, "Heading 3 / 24px"),
29
- react_1.default.createElement(_1.Heading, { level: "4" }, "Heading 4 / 20px"),
30
- react_1.default.createElement(_1.Heading, { level: "5" }, "Heading 5 / 16px"),
31
- react_1.default.createElement(_1.Heading, { level: "6" }, "Heading 6 / 14px"))); };
26
+ react_1.default.createElement(_1.Heading, { level: "1" }, "Heading 1 / 36px"),
27
+ react_1.default.createElement(_1.Heading, { level: "2" }, "Heading 2 / 32px"),
28
+ react_1.default.createElement(_1.Heading, { level: "3" }, "Heading 3 / 28px"),
29
+ react_1.default.createElement(_1.Heading, { level: "4" }, "Heading 4 / 24px"),
30
+ react_1.default.createElement(_1.Heading, { level: "5" }, "Heading 5 / 20px"),
31
+ react_1.default.createElement(_1.Heading, { level: "6" }, "Heading 6 / 16px"))); };
32
32
  exports.AllHeadings = AllHeadings;
33
33
  exports.AllHeadings.parameters = {
34
34
  controls: { hideNoControlsWarning: true },
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { HeadingProps } from './index';
3
3
  import { PrefixedPick } from '../../types/styled-components';
4
- type StyledHeadingProps = PrefixedPick<HeadingProps, 'align' | 'size' | 'level' | 'margin' | 'weight'>;
4
+ type StyledHeadingProps = PrefixedPick<HeadingProps, 'align' | 'size' | 'level' | 'margin' | 'weight' | 'color'>;
5
5
  export declare const StyledHeading: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, StyledHeadingProps>> & string;
6
6
  export {};
@@ -4,12 +4,15 @@ exports.StyledHeading = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  var styled_components_1 = require("styled-components");
6
6
  var styled_map_1 = require("styled-map");
7
- exports.StyledHeading = styled_components_1.default.h2(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n margin: 0;\n text-align: ", ";\n font-family: ", ";\n font-size: ", ";\n margin-bottom: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n"], ["\n margin: 0;\n text-align: ", ";\n font-family: ", ";\n font-size: ", ";\n margin-bottom: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n"])), function (_a) {
7
+ exports.StyledHeading = styled_components_1.default.h2(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n margin: 0;\n text-align: ", ";\n font-family: ", ";\n font-size: ", ";\n margin-bottom: ", ";\n line-height: 120%;\n font-weight: ", ";\n color: ", ";\n"], ["\n margin: 0;\n text-align: ", ";\n font-family: ", ";\n font-size: ", ";\n margin-bottom: ", ";\n line-height: 120%;\n font-weight: ", ";\n color: ", ";\n"])), function (_a) {
8
8
  var $align = _a.$align;
9
9
  return $align;
10
10
  }, function (props) { return props.theme.font.heading; }, function (props) {
11
11
  return props.$size
12
12
  ? (0, styled_map_1.default)('$size', {
13
+ xxxxl: function (props) {
14
+ return props.theme.font.sizes.xxxxl;
15
+ },
13
16
  xxxl: function (props) {
14
17
  return props.theme.font.sizes.xxxl;
15
18
  },
@@ -20,12 +23,12 @@ exports.StyledHeading = styled_components_1.default.h2(templateObject_1 || (temp
20
23
  s: function (props) { return props.theme.font.sizes.s; },
21
24
  })
22
25
  : (0, styled_map_1.default)('$level', {
23
- 1: function (props) { return props.theme.font.sizes.xxxl; },
24
- 2: function (props) { return props.theme.font.sizes.xxl; },
25
- 3: function (props) { return props.theme.font.sizes.xl; },
26
- 4: function (props) { return props.theme.font.sizes.l; },
27
- 5: function (props) { return props.theme.font.sizes.m; },
28
- 6: function (props) { return props.theme.font.sizes.s; },
26
+ 1: function (props) { return props.theme.font.sizes.xxxxl; },
27
+ 2: function (props) { return props.theme.font.sizes.xxxl; },
28
+ 3: function (props) { return props.theme.font.sizes.xxl; },
29
+ 4: function (props) { return props.theme.font.sizes.xl; },
30
+ 5: function (props) { return props.theme.font.sizes.l; },
31
+ 6: function (props) { return props.theme.font.sizes.m; },
29
32
  });
30
33
  }, (0, styled_map_1.default)('$margin', {
31
34
  0: function (props) { return props.theme.spacing[0] + 'px'; },
@@ -35,35 +38,6 @@ exports.StyledHeading = styled_components_1.default.h2(templateObject_1 || (temp
35
38
  4: function (props) { return props.theme.spacing[4] + 'px'; },
36
39
  5: function (props) { return props.theme.spacing[5] + 'px'; },
37
40
  6: function (props) { return props.theme.spacing[6] + 'px'; },
38
- }), function (props) {
39
- return props.$size
40
- ? (0, styled_map_1.default)('$size', {
41
- xxxl: '48px',
42
- xxl: '42px',
43
- xl: '36px',
44
- l: '30px',
45
- m: '24px',
46
- s: '21px',
47
- })
48
- : (0, styled_map_1.default)('$level', {
49
- 1: '48px',
50
- 2: '42px',
51
- 3: '36px',
52
- 4: '30px',
53
- 5: '24px',
54
- 6: '21px',
55
- });
56
- }, function (props) {
57
- return props.$weight
58
- ? props.$weight
59
- : (0, styled_map_1.default)('$level', {
60
- 1: 900,
61
- 2: 900,
62
- 3: 900,
63
- 4: 900,
64
- 5: 800,
65
- 6: 600,
66
- });
67
- }, function (props) { return props.theme.colors.text.heading; });
41
+ }), function (props) { return (props.$weight ? props.$weight : '700'); }, function (props) { var _a; return (_a = props.$color) !== null && _a !== void 0 ? _a : props.theme.colors.text.heading; });
68
42
  var templateObject_1;
69
43
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Heading/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAA4D;AAC5D,yCAAkC;AASrB,QAAA,aAAa,GAAG,2BAAM,CAAC,EAAE,gQAAoB,oCAExC,EAAsB,sBACrB,EAAmC,oBACrC,EAkBD,wBACK,EAQf,sBACa,EAiBH,sBACG,EAUH,gBACH,EAA0C,KACtD,KA5DiB,UAAC,EAAU;QAAR,MAAM,YAAA;IAAO,OAAA,MAAM;AAAN,CAAM,EACrB,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAxB,CAAwB,EACrC,UAAC,KAAK;IACf,OAAA,KAAK,CAAC,KAAK;QACP,CAAC,CAAC,IAAA,oBAAS,EAAC,OAAO,EAAE;YACf,IAAI,EAAE,UAAC,KAAuB;gBAC1B,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI;YAA3B,CAA2B;YAC/B,GAAG,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,EAA1B,CAA0B;YAC5D,EAAE,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAzB,CAAyB;YAC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AAE;IAClC,CAAC,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,EAA7B,CAA6B;IAC7D,CAAC,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,EAA7B,CAA6B;IAC7D,CAAC,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,EAA7B,CAA6B;IAC7D,CAAC,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,EAA7B,CAA6B;IAC7D,CAAC,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,EAA7B,CAA6B;IAC7D,CAAC,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,EAA7B,CAA6B;IAC7D,CAAC,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,EAA7B,CAA6B;CAChE,CAAC,EAEa,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,EAAvC,CAAuC,EACxD,UAAC,KAAK,YAAK,OAAA,MAAA,KAAK,CAAC,MAAM,mCAAI,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAA,EAAA,EACtE"}
@@ -7,8 +7,8 @@ var theme_1 = require("../../theme");
7
7
  var styled_components_1 = require("styled-components");
8
8
  var Button_1 = require("../Button");
9
9
  exports.StyledShade = (0, styled_components_1.default)(framer_motion_1.motion.div)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n position: absolute;\n background: rgba(0, 0, 0, 0.8);\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100vh;\n"], ["\n position: absolute;\n background: rgba(0, 0, 0, 0.8);\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100vh;\n"])));
10
- exports.StyledButton = (0, styled_components_1.default)(Button_1.Button)(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n background: none;\n border: none;\n position: absolute;\n top: 0;\n right: 0;\n width: 57px;\n height: 57px;\n padding: 0;\n z-index: 10;\n @media (min-width: ", "px) {\n right: 10px;\n top: 10px;\n }\n &:hover {\n background: none;\n svg {\n fill: orange;\n }\n }\n svg {\n fill: black;\n }\n"], ["\n background: none;\n border: none;\n position: absolute;\n top: 0;\n right: 0;\n width: 57px;\n height: 57px;\n padding: 0;\n z-index: 10;\n @media (min-width: ", "px) {\n right: 10px;\n top: 10px;\n }\n &:hover {\n background: none;\n svg {\n fill: orange;\n }\n }\n svg {\n fill: black;\n }\n"])), theme_1.breakpoints.s);
10
+ exports.StyledButton = (0, styled_components_1.default)(Button_1.Button)(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n background: none;\n border: none;\n position: absolute;\n top: 0;\n right: 0;\n width: 57px;\n height: 57px;\n padding: 0;\n z-index: 10;\n @media (min-width: ", "px) {\n top: 10px;\n right: 10px;\n }\n &:hover {\n background: none;\n svg {\n fill: orange;\n }\n }\n svg {\n fill: black;\n }\n"], ["\n background: none;\n border: none;\n position: absolute;\n top: 0;\n right: 0;\n width: 57px;\n height: 57px;\n padding: 0;\n z-index: 10;\n @media (min-width: ", "px) {\n top: 10px;\n right: 10px;\n }\n &:hover {\n background: none;\n svg {\n fill: orange;\n }\n }\n svg {\n fill: black;\n }\n"])), theme_1.breakpoints.s);
11
11
  exports.StyledContainer = styled_components_1.default.div(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n position: fixed;\n width: 100%;\n top: 0;\n align-items: center;\n justify-content: center;\n display: flex;\n z-index: 500;\n height: ", ";\n"], ["\n position: fixed;\n width: 100%;\n top: 0;\n align-items: center;\n justify-content: center;\n display: flex;\n z-index: 500;\n height: ", ";\n"])), function (props) { return (props.$modalOpen ? '100%' : 'auto'); });
12
- exports.StyledModal = (0, styled_components_1.default)(framer_motion_1.motion.div)(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n position: relative;\n max-width: 700px;\n height: 100%;\n background: white;\n z-index: 1;\n padding: ", "px ", "px;\n overflow: auto;\n @media (min-width: ", ") {\n padding: ", "px;\n max-height: calc(100vh - 40px);\n height: auto;\n border-radius: ", "px;\n }\n"], ["\n position: relative;\n max-width: 700px;\n height: 100%;\n background: white;\n z-index: 1;\n padding: ", "px ", "px;\n overflow: auto;\n @media (min-width: ", ") {\n padding: ", "px;\n max-height: calc(100vh - 40px);\n height: auto;\n border-radius: ", "px;\n }\n"])), theme_1.baseline * 4, theme_1.baseline * 2, theme_1.breakpoints.xs, theme_1.baseline * 6, function (props) { return props.theme.borderRadius.large; });
12
+ exports.StyledModal = (0, styled_components_1.default)(framer_motion_1.motion.div)(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n position: relative;\n max-width: 700px;\n height: 100%;\n background: white;\n z-index: 1;\n padding: ", "px ", "px;\n overflow: auto;\n @media (min-width: ", ") {\n border-radius: ", "px;\n padding: ", "px;\n height: auto;\n max-height: calc(100vh - 40px);\n }\n"], ["\n position: relative;\n max-width: 700px;\n height: 100%;\n background: white;\n z-index: 1;\n padding: ", "px ", "px;\n overflow: auto;\n @media (min-width: ", ") {\n border-radius: ", "px;\n padding: ", "px;\n height: auto;\n max-height: calc(100vh - 40px);\n }\n"])), theme_1.baseline * 4, theme_1.baseline * 2, theme_1.breakpoints.xs, function (props) { return props.theme.borderRadius.large; }, theme_1.baseline * 6);
13
13
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
14
14
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Modal/styles.ts"],"names":[],"mappings":";;;;AAAA,+CAAsC;AACtC,qCAAmD;AACnD,uDAAsC;AACtC,oCAAkC;AAErB,QAAA,WAAW,GAAG,IAAA,2BAAM,EAAC,sBAAM,CAAC,GAAG,CAAC,2NAAA,gJAQ5C,KAAA;AAEY,QAAA,YAAY,GAAG,IAAA,2BAAM,EAAC,eAAM,CAAC,udAAA,kMAUjB,EAAa,wMAarC,KAbwB,mBAAW,CAAC,CAAC,EAarC;AAEY,QAAA,eAAe,GAAG,2BAAM,CAAC,GAAG,sPAA0B,oKAQrD,EAA+C,KAC5D,KADa,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,EAApC,CAAoC,EAC5D;AAEY,QAAA,WAAW,GAAG,IAAA,2BAAM,EAAC,sBAAM,CAAC,GAAG,CAAC,8YAAA,6HAM9B,EAAY,KAAM,EAAY,mDAEpB,EAAc,wBACpB,EAAY,8FAGN,EAAyC,cAEjE,KARc,gBAAQ,GAAG,CAAC,EAAM,gBAAQ,GAAG,CAAC,EAEpB,mBAAW,CAAC,EAAE,EACpB,gBAAQ,GAAG,CAAC,EAGN,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,EAA9B,CAA8B,EAEjE"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Modal/styles.ts"],"names":[],"mappings":";;;;AAAA,+CAAsC;AACtC,qCAAmD;AACnD,uDAAsC;AACtC,oCAAkC;AAErB,QAAA,WAAW,GAAG,IAAA,2BAAM,EAAC,sBAAM,CAAC,GAAG,CAAC,2NAAA,gJAQ5C,KAAA;AAEY,QAAA,YAAY,GAAG,IAAA,2BAAM,EAAC,eAAM,CAAC,udAAA,kMAUjB,EAAa,wMAarC,KAbwB,mBAAW,CAAC,CAAC,EAarC;AAEY,QAAA,eAAe,GAAG,2BAAM,CAAC,GAAG,sPAA0B,oKAQrD,EAA+C,KAC5D,KADa,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,EAApC,CAAoC,EAC5D;AAEY,QAAA,WAAW,GAAG,IAAA,2BAAM,EAAC,sBAAM,CAAC,GAAG,CAAC,8YAAA,6HAM9B,EAAY,KAAM,EAAY,mDAEpB,EAAc,8BACd,EAAyC,wBAC/C,EAAY,8EAI9B,KARc,gBAAQ,GAAG,CAAC,EAAM,gBAAQ,GAAG,CAAC,EAEpB,mBAAW,CAAC,EAAE,EACd,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,EAA9B,CAA8B,EAC/C,gBAAQ,GAAG,CAAC,EAI9B"}
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ interface RadioCardGroupContextType {
3
+ setValue: React.Dispatch<React.SetStateAction<string>>;
4
+ value: string;
5
+ groupName: string;
6
+ }
7
+ export declare const RadioCardGroupContext: React.Context<RadioCardGroupContextType | null>;
8
+ export interface RadioCardGroupProps extends React.PropsWithChildren {
9
+ initialValue: string;
10
+ groupName: string;
11
+ label?: string;
12
+ infoSlot?: React.ReactNode;
13
+ }
14
+ export declare const Root: ({ initialValue, children, groupName, label, infoSlot, }: RadioCardGroupProps) => JSX.Element;
15
+ export interface RadioCardGroupItemProps extends React.InputHTMLAttributes<HTMLInputElement> {
16
+ hook?: string;
17
+ }
18
+ export declare const Item: ({ id, children, hook, ...props }: RadioCardGroupItemProps) => JSX.Element | null;
19
+ export declare const ItemContent: ({ children, }: React.PropsWithChildren) => JSX.Element;
20
+ export declare const ItemCollapsableContent: ({ children, }: React.PropsWithChildren) => JSX.Element;
21
+ export declare const ItemIndicator: () => JSX.Element;
22
+ export * as RadioCardGroup from '.';
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RadioCardGroup = exports.ItemIndicator = exports.ItemCollapsableContent = exports.ItemContent = exports.Item = exports.Root = exports.RadioCardGroupContext = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var React = require("react");
6
+ var styles_1 = require("./styles");
7
+ var Text_1 = require("../Text");
8
+ exports.RadioCardGroupContext = React.createContext(null);
9
+ var Root = function (_a) {
10
+ var initialValue = _a.initialValue, children = _a.children, groupName = _a.groupName, label = _a.label, infoSlot = _a.infoSlot;
11
+ var _b = tslib_1.__read(React.useState(initialValue), 2), value = _b[0], setValue = _b[1];
12
+ return (React.createElement(styles_1.StyledRadioCardGroupFieldset, null,
13
+ label && (React.createElement(styles_1.StyledRadioCardGroupLegend, null,
14
+ React.createElement(Text_1.Text, { weight: "medium", size: "m" }, label))),
15
+ infoSlot,
16
+ React.createElement(exports.RadioCardGroupContext.Provider, { value: { value: value, setValue: setValue, groupName: groupName } },
17
+ React.createElement(styles_1.StyledRadioCardGroup, { role: "radiogroup" }, children))));
18
+ };
19
+ exports.Root = Root;
20
+ var Item = function RadioCardGroupItem(_a) {
21
+ var id = _a.id, children = _a.children, hook = _a.hook, props = tslib_1.__rest(_a, ["id", "children", "hook"]);
22
+ var context = React.useContext(exports.RadioCardGroupContext);
23
+ console.assert(context, 'RadioCardGroup.Item should only be used inside a RadioCardGroup.');
24
+ if (!context)
25
+ return null;
26
+ var setValue = context.setValue, value = context.value, groupName = context.groupName;
27
+ return (React.createElement(styles_1.StyledRadioCardGroupItemLabel, { "data-hook": hook, htmlFor: id },
28
+ React.createElement(styles_1.StyledRadioCardGroupItemInput, tslib_1.__assign({ onChange: function (_a) {
29
+ var target = _a.target;
30
+ return setValue(target.value);
31
+ }, checked: value === props.value }, props, { id: id, name: groupName, type: "radio" }, props)),
32
+ children));
33
+ };
34
+ exports.Item = Item;
35
+ var ItemContent = function RadioCardGroupItemContent(_a) {
36
+ var children = _a.children;
37
+ return React.createElement(React.Fragment, null, children);
38
+ };
39
+ exports.ItemContent = ItemContent;
40
+ var ItemCollapsableContent = function RadioCardGroupItemCollapsableContent(_a) {
41
+ var children = _a.children;
42
+ return (React.createElement(styles_1.StyledRadioCardGroupItemCollapsableContent, null, children));
43
+ };
44
+ exports.ItemCollapsableContent = ItemCollapsableContent;
45
+ var ItemIndicator = function RadioCardGroupItemIndicator() {
46
+ return (React.createElement(styles_1.StyledRadioCardGroupItemIndicator, null,
47
+ React.createElement(styles_1.StyledRadioCardGroupItemIndicatorInner, null)));
48
+ };
49
+ exports.ItemIndicator = ItemIndicator;
50
+ exports.RadioCardGroup = require(".");
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/RadioCardGroup/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,mCASiB;AACjB,gCAA8B;AAQjB,QAAA,qBAAqB,GAC9B,KAAK,CAAC,aAAa,CAAmC,IAAI,CAAC,CAAA;AASxD,IAAM,IAAI,GAAG,UAAC,EAMC;QALlB,YAAY,kBAAA,EACZ,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,KAAK,WAAA,EACL,QAAQ,cAAA;IAEF,IAAA,KAAA,eAAoB,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAA,EAA/C,KAAK,QAAA,EAAE,QAAQ,QAAgC,CAAA;IAEtD,OAAO,CACH,oBAAC,qCAA4B;QACxB,KAAK,IAAI,CACN,oBAAC,mCAA0B;YACvB,oBAAC,WAAI,IAAC,MAAM,EAAC,QAAQ,EAAC,IAAI,EAAC,GAAG,IACzB,KAAK,CACH,CACkB,CAChC;QACA,QAAQ;QACT,oBAAC,6BAAqB,CAAC,QAAQ,IAC3B,KAAK,EAAE,EAAE,KAAK,OAAA,EAAE,QAAQ,UAAA,EAAE,SAAS,WAAA,EAAE;YAErC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AC,mDAA0C,QACtC,QAAQ,CACgC,CAChD,CAAA;AACL,CAAC,CAAA;AATQ,QAAA,sBAAsB,0BAS9B;AAEE,IAAM,aAAa,GACtB,SAAS,2BAA2B;IAChC,OAAO,CACH,oBAAC,0CAAiC;QAC9B,oBAAC,+CAAsC,OAAG,CACV,CACvC,CAAA;AACL,CAAC,CAAA;AAPQ,QAAA,aAAa,iBAOrB;AAEL,sCAAmC"}
@@ -0,0 +1,4 @@
1
+ import { RadioCardGroup } from '.';
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, RadioCardGroup.RadioCardGroupProps>;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Default = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var react_1 = require("react");
6
+ var _1 = require(".");
7
+ var Text_1 = require("../Text");
8
+ exports.default = {
9
+ title: 'Hexagon/Form/RadioCardGroup',
10
+ component: _1.RadioCardGroup.Root,
11
+ decorators: [function (Story) { return Story(); }],
12
+ };
13
+ var Template = function (_a) {
14
+ var args = tslib_1.__rest(_a, []);
15
+ return (react_1.default.createElement(_1.RadioCardGroup.Root, { initialValue: args.initialValue, groupName: args.groupName, label: "Kies je leasevoorstel" },
16
+ react_1.default.createElement(_1.RadioCardGroup.Item, { value: "a" },
17
+ react_1.default.createElement(_1.RadioCardGroup.ItemIndicator, null),
18
+ react_1.default.createElement(_1.RadioCardGroup.ItemContent, null,
19
+ react_1.default.createElement(Text_1.Text, { weight: "bold", size: "m" }, "Aanbevolen"))),
20
+ react_1.default.createElement(_1.RadioCardGroup.Item, { value: "b" },
21
+ react_1.default.createElement(_1.RadioCardGroup.ItemIndicator, null),
22
+ react_1.default.createElement(_1.RadioCardGroup.ItemContent, null,
23
+ react_1.default.createElement(Text_1.Text, { weight: "bold", size: "m" }, "Kortste looptijd"))),
24
+ react_1.default.createElement(_1.RadioCardGroup.Item, { value: "c" },
25
+ react_1.default.createElement(_1.RadioCardGroup.ItemContent, null,
26
+ react_1.default.createElement("div", { style: {
27
+ display: 'flex',
28
+ width: '100%',
29
+ justifyContent: 'space-between',
30
+ alignItems: 'flex-start',
31
+ } },
32
+ react_1.default.createElement("div", { style: {
33
+ display: 'flex',
34
+ gap: '16px',
35
+ alignItems: 'center',
36
+ } },
37
+ react_1.default.createElement(_1.RadioCardGroup.ItemIndicator, null),
38
+ react_1.default.createElement(Text_1.Text, { weight: "bold", size: "m" }, "Laagste maandprijs")),
39
+ react_1.default.createElement("div", { style: {
40
+ display: 'flex',
41
+ flexDirection: 'column',
42
+ alignItems: 'flex-end',
43
+ } },
44
+ react_1.default.createElement(Text_1.Text, { weight: "bold", size: "m" }, "\u20AC 800,50"),
45
+ react_1.default.createElement(Text_1.Text, { weight: "normal", color: "grey", size: "xs" }, "/mnd")))))));
46
+ };
47
+ exports.Default = Template.bind({});
48
+ exports.Default.args = {
49
+ groupName: 'radio-group-test',
50
+ initialValue: 'c',
51
+ };
52
+ //# sourceMappingURL=index.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../src/components/RadioCardGroup/index.stories.tsx"],"names":[],"mappings":";;;;AACA,+BAAyB;AACzB,sBAAuD;AACvD,gCAA8B;AAE9B,kBAAe;IACX,KAAK,EAAE,6BAA6B;IACpC,SAAS,EAAE,iBAAc,CAAC,IAAI;IAC9B,UAAU,EAAE,CAAC,UAAC,KAAK,IAAK,OAAA,KAAK,EAAE,EAAP,CAAO,CAAC;CAC3B,CAAA;AAET,IAAM,QAAQ,GAAiC,UAAC,EAAW;QAAN,IAAI,sBAAT,EAAW,CAAF;IACrD,OAAO,CACH,8BAAC,iBAAc,CAAC,IAAI,IAChB,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,SAAS,E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,CACzB,CAAA;AACL,CAAC,CAAA;AAEY,QAAA,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACxC,eAAO,CAAC,IAAI,GAAG;IACX,SAAS,EAAE,kBAAkB;IAC7B,YAAY,EAAE,GAAG;CACpB,CAAA"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledRadioCardGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const StyledRadioCardGroupItemIndicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
4
+ export declare const StyledRadioCardGroupItemIndicatorInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
5
+ export declare const StyledRadioCardGroupItemCollapsableContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ export declare const StyledRadioCardGroupItemLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
7
+ export declare const StyledRadioCardGroupItemInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
8
+ export declare const StyledRadioCardGroupFieldset: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, never>> & string;
9
+ export declare const StyledRadioCardGroupLegend: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, never>> & string;
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StyledRadioCardGroupLegend = exports.StyledRadioCardGroupFieldset = exports.StyledRadioCardGroupItemInput = exports.StyledRadioCardGroupItemLabel = exports.StyledRadioCardGroupItemCollapsableContent = exports.StyledRadioCardGroupItemIndicatorInner = exports.StyledRadioCardGroupItemIndicator = exports.StyledRadioCardGroup = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var styled_components_1 = require("styled-components");
6
+ var theme_1 = require("../../theme");
7
+ exports.StyledRadioCardGroup = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: ", "px;\n"], ["\n display: flex;\n flex-direction: column;\n gap: ", "px;\n"])), function (_a) {
8
+ var theme = _a.theme;
9
+ return theme.spacing[2];
10
+ });
11
+ exports.StyledRadioCardGroupItemIndicator = styled_components_1.default.span(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n display: block;\n width: 20px;\n height: 20px;\n position: relative;\n flex-shrink: 0;\n box-shadow: 0 0 0 1px inset ", ";\n border-radius: 50%;\n"], ["\n display: block;\n width: 20px;\n height: 20px;\n position: relative;\n flex-shrink: 0;\n box-shadow: 0 0 0 1px inset ", ";\n border-radius: 50%;\n"])), function (_a) {
12
+ var theme = _a.theme;
13
+ return theme.colors.blueGrey[200];
14
+ });
15
+ exports.StyledRadioCardGroupItemIndicatorInner = styled_components_1.default.span(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n display: block;\n background-color: ", ";\n width: 12px;\n height: 12px;\n position: absolute;\n inset: 0;\n margin: auto;\n border-radius: 50%;\n transform: scale(0);\n transition: ", ";\n"], ["\n display: block;\n background-color: ", ";\n width: 12px;\n height: 12px;\n position: absolute;\n inset: 0;\n margin: auto;\n border-radius: 50%;\n transform: scale(0);\n transition: ", ";\n"])), function (_a) {
16
+ var theme = _a.theme;
17
+ return theme.colors.orange[500];
18
+ }, function (_a) {
19
+ var theme = _a.theme;
20
+ return theme.transition('transform');
21
+ });
22
+ exports.StyledRadioCardGroupItemCollapsableContent = styled_components_1.default.div(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n display: none;\n"], ["\n display: none;\n"])));
23
+ exports.StyledRadioCardGroupItemLabel = styled_components_1.default.label(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", "px;\n padding: ", "px\n ", "px;\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n border-radius: ", "px;\n box-shadow: 0 0 0 1px ", ";\n user-select: none;\n cursor: pointer;\n transition: ", ";\n\n &:hover {\n box-shadow: 0 0 0 1px ", ",\n ", ";\n }\n\n &:focus-within {\n outline: solid 2px ", ";\n }\n\n &:has(:checked) {\n box-shadow: 0 0 0 2px ", ";\n\n ", " {\n transform: scale(1);\n }\n\n ", " {\n display: flex;\n }\n\n &:hover {\n box-shadow: 0 0 0 2px ", ",\n ", ";\n }\n }\n\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"], ["\n display: flex;\n align-items: center;\n gap: ", "px;\n padding: ", "px\n ", "px;\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n border-radius: ", "px;\n box-shadow: 0 0 0 1px ", ";\n user-select: none;\n cursor: pointer;\n transition: ", ";\n\n &:hover {\n box-shadow: 0 0 0 1px ", ",\n ", ";\n }\n\n &:focus-within {\n outline: solid 2px ", ";\n }\n\n &:has(:checked) {\n box-shadow: 0 0 0 2px ", ";\n\n ", " {\n transform: scale(1);\n }\n\n ", " {\n display: flex;\n }\n\n &:hover {\n box-shadow: 0 0 0 2px ", ",\n ", ";\n }\n }\n\n @media (min-width: ", "px) {\n padding: ", "px;\n }\n"])), function (_a) {
24
+ var theme = _a.theme;
25
+ return theme.spacing[2];
26
+ }, function (_a) {
27
+ var theme = _a.theme;
28
+ return theme.spacing[2];
29
+ }, function (_a) {
30
+ var theme = _a.theme;
31
+ return theme.spacing[3];
32
+ }, function (props) { return props.theme.font.default; }, function (props) { return props.theme.font.sizes.s; }, function (props) { return props.theme.font.lineHeight; }, function (props) { return props.theme.colors.text.default; }, function (_a) {
33
+ var theme = _a.theme;
34
+ return theme.borderRadius.large;
35
+ }, function (_a) {
36
+ var theme = _a.theme;
37
+ return theme.colors.blueGrey[200];
38
+ }, function (_a) {
39
+ var theme = _a.theme;
40
+ return theme.transition('box-shadow');
41
+ }, function (_a) {
42
+ var theme = _a.theme;
43
+ return theme.colors.blueGrey[200];
44
+ }, function (_a) {
45
+ var theme = _a.theme;
46
+ return theme.shadowHover;
47
+ }, function (_a) {
48
+ var theme = _a.theme;
49
+ return theme.colors.orange[200];
50
+ }, function (_a) {
51
+ var theme = _a.theme;
52
+ return theme.colors.orange[500];
53
+ }, exports.StyledRadioCardGroupItemIndicatorInner, exports.StyledRadioCardGroupItemCollapsableContent, function (_a) {
54
+ var theme = _a.theme;
55
+ return theme.colors.orange[500];
56
+ }, function (_a) {
57
+ var theme = _a.theme;
58
+ return theme.shadowHover;
59
+ }, theme_1.breakpoints.xs, function (_a) {
60
+ var theme = _a.theme;
61
+ return theme.spacing[2];
62
+ });
63
+ exports.StyledRadioCardGroupItemInput = styled_components_1.default.input(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["\n opacity: 0;\n position: absolute;\n"], ["\n opacity: 0;\n position: absolute;\n"])));
64
+ exports.StyledRadioCardGroupFieldset = styled_components_1.default.fieldset(templateObject_7 || (templateObject_7 = tslib_1.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n border: none;\n padding: 0;\n margin: 0;\n"], ["\n display: flex;\n flex-direction: column;\n border: none;\n padding: 0;\n margin: 0;\n"])));
65
+ exports.StyledRadioCardGroupLegend = styled_components_1.default.fieldset(templateObject_8 || (templateObject_8 = tslib_1.__makeTemplateObject(["\n border: none;\n padding: 0;\n margin-bottom: ", "px;\n"], ["\n border: none;\n padding: 0;\n margin-bottom: ", "px;\n"])), function (_a) {
66
+ var theme = _a.theme;
67
+ return theme.spacing[2];
68
+ });
69
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
70
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/RadioCardGroup/styles.ts"],"names":[],"mappings":";;;;AAAA,uDAAsC;AACtC,qCAAyC;AAE5B,QAAA,oBAAoB,GAAG,2BAAM,CAAC,GAAG,kJAAA,8DAGnC,EAA+B,OACzC,KADU,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAAhB,CAAgB,EACzC;AAEY,QAAA,iCAAiC,GAAG,2BAAM,CAAC,IAAI,uPAAA,4IAM1B,EAAyC,8BAE1E,KAFiC,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC;AAA1B,CAA0B,EAE1E;AAEY,QAAA,sCAAsC,GAAG,2BAAM,CAAC,IAAI,2SAAA,+CAEzC,EAAuC,wKAQ7C,EAA4C,KAC7D,KATuB,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;AAAxB,CAAwB,EAQ7C,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC;AAA7B,CAA6B,EAC7D;AAEY,QAAA,0CAA0C,GAAG,2BAAM,CAAC,GAAG,mGAAA,wBAEnE,KAAA;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2
2
  import { Spacing, FontSizes } from '../../theme/types';
3
- export interface TextProps {
3
+ export interface TextProps extends React.HTMLAttributes<HTMLParagraphElement> {
4
4
  bottomMargin?: Spacing;
5
5
  color?: 'light' | 'dark' | 'grey';
6
6
  weight?: 'normal' | 'medium' | 'bold';
@@ -9,4 +9,4 @@ export interface TextProps {
9
9
  size?: FontSizes;
10
10
  children: React.ReactNode;
11
11
  }
12
- export declare const Text: ({ hook, weight, size, children, ...props }: TextProps) => JSX.Element;
12
+ export declare const Text: ({ hook, weight, size, children, bottomMargin, inline, color, ...props }: TextProps) => JSX.Element;
@@ -5,9 +5,8 @@ var tslib_1 = require("tslib");
5
5
  var React = require("react");
6
6
  var styles_1 = require("./styles");
7
7
  var Text = function (_a) {
8
- var hook = _a.hook, _b = _a.weight, weight = _b === void 0 ? 'normal' : _b, _c = _a.size, size = _c === void 0 ? 's' : _c, children = _a.children, props = tslib_1.__rest(_a, ["hook", "weight", "size", "children"]);
9
- var bottomMargin = props.bottomMargin, inline = props.inline, color = props.color;
10
- return (React.createElement(styles_1.StyledText, { "data-hook": hook, "$weight": weight, "$size": size, "$bottomMargin": bottomMargin, "$inline": inline, "$color": color }, children));
8
+ var hook = _a.hook, _b = _a.weight, weight = _b === void 0 ? 'normal' : _b, _c = _a.size, size = _c === void 0 ? 's' : _c, children = _a.children, bottomMargin = _a.bottomMargin, inline = _a.inline, color = _a.color, props = tslib_1.__rest(_a, ["hook", "weight", "size", "children", "bottomMargin", "inline", "color"]);
9
+ return (React.createElement(styles_1.StyledText, tslib_1.__assign({ "data-hook": hook, "$weight": weight, "$size": size, "$bottomMargin": bottomMargin, "$inline": inline, "$color": color }, props), children));
11
10
  };
12
11
  exports.Text = Text;
13
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Text/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAE9B,mCAAqC;AAY9B,IAAM,IAAI,GAAG,UAAC,EAMT;IALR,IAAA,IAAI,UAAA,EACJ,cAAiB,EAAjB,MAAM,mBAAG,QAAQ,KAAA,EACjB,YAAU,EAAV,IAAI,mBAAG,GAAG,KAAA,EACV,QAAQ,cAAA,EACL,KAAK,sBALS,sCAMpB,CADW;IAEA,IAAA,YAAY,GAAoB,KAAK,aAAzB,EAAE,MAAM,GAAY,KAAK,OAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAU;IAE7C,OAAO,CACH,oBAAC,mBAAU,iBACI,IAAI,aACN,MAAM,WACR,IAAI,mBACI,YAAY,aAClB,MAAM,YACP,KAAK,IAEZ,QAAQ,CACA,CAChB,CAAA;AACL,CAAC,CAAA;AArBY,QAAA,IAAI,QAqBhB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Text/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAE9B,mCAAqC;AAY9B,IAAM,IAAI,GAAG,UAAC,EAST;IARR,IAAA,IAAI,UAAA,EACJ,cAAiB,EAAjB,MAAM,mBAAG,QAAQ,KAAA,EACjB,YAAU,EAAV,IAAI,mBAAG,GAAG,KAAA,EACV,QAAQ,cAAA,EACR,YAAY,kBAAA,EACZ,MAAM,YAAA,EACN,KAAK,WAAA,EACF,KAAK,sBARS,yEASpB,CADW;IAER,OAAO,CACH,oBAAC,mBAAU,kCACI,IAAI,aACN,MAAM,WACR,IAAI,mBACI,YAAY,aAClB,MAAM,YACP,KAAK,IACT,KAAK,GAER,QAAQ,CACA,CAChB,CAAA;AACL,CAAC,CAAA;AAvBY,QAAA,IAAI,QAuBhB"}
package/dist/index.d.ts CHANGED
@@ -40,4 +40,5 @@ export { Text } from './components/Text';
40
40
  export { TextArea } from './components/TextArea';
41
41
  export { ToggleContainer } from './components/ToggleContainer';
42
42
  export { Tooltip } from './components/Tooltip';
43
+ export { RadioCardGroup } from './components/RadioCardGroup';
43
44
  export * from './theme';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Tooltip = exports.ToggleContainer = exports.TextArea = exports.Text = exports.Tag = exports.Table = exports.Row = exports.Head = exports.Foot = exports.Cell = exports.Body = exports.Spinner = exports.Select = exports.RadioGroup = exports.Radio = exports.Portal = exports.PageLoader = exports.OrderedList = exports.Notification = exports.Modal = exports.ListItem = exports.List = exports.Link = exports.Label = exports.CurrencyInput = exports.Input = exports.Image = exports.HelpText = exports.Heading = exports.GridColumn = exports.Grid = exports.Form = exports.FieldGroup = exports.FieldError = exports.Field = exports.Error = exports.ExternalLink = exports.CounterTag = exports.Container = exports.Checkbox = exports.Card = exports.ButtonGroup = exports.Button = exports.Box = exports.Badge = exports.AutocompleteItem = exports.Autocomplete = void 0;
3
+ exports.RadioCardGroup = exports.Tooltip = exports.ToggleContainer = exports.TextArea = exports.Text = exports.Tag = exports.Table = exports.Row = exports.Head = exports.Foot = exports.Cell = exports.Body = exports.Spinner = exports.Select = exports.RadioGroup = exports.Radio = exports.Portal = exports.PageLoader = exports.OrderedList = exports.Notification = exports.Modal = exports.ListItem = exports.List = exports.Link = exports.Label = exports.CurrencyInput = exports.Input = exports.Image = exports.HelpText = exports.Heading = exports.GridColumn = exports.Grid = exports.Form = exports.FieldGroup = exports.FieldError = exports.Field = exports.Error = exports.ExternalLink = exports.CounterTag = exports.Container = exports.Checkbox = exports.Card = exports.ButtonGroup = exports.Button = exports.Box = exports.Badge = exports.AutocompleteItem = exports.Autocomplete = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  var Autocomplete_1 = require("./components/Autocomplete");
6
6
  Object.defineProperty(exports, "Autocomplete", { enumerable: true, get: function () { return Autocomplete_1.Autocomplete; } });
@@ -91,5 +91,7 @@ var ToggleContainer_1 = require("./components/ToggleContainer");
91
91
  Object.defineProperty(exports, "ToggleContainer", { enumerable: true, get: function () { return ToggleContainer_1.ToggleContainer; } });
92
92
  var Tooltip_1 = require("./components/Tooltip");
93
93
  Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return Tooltip_1.Tooltip; } });
94
+ var RadioCardGroup_1 = require("./components/RadioCardGroup");
95
+ Object.defineProperty(exports, "RadioCardGroup", { enumerable: true, get: function () { return RadioCardGroup_1.RadioCardGroup; } });
94
96
  tslib_1.__exportStar(require("./theme"), exports);
95
97
  //# 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,0DAAwD;AAA/C,4GAAA,YAAY,OAAA;AACrB,uDAAiE;AAAxD,wGAAA,gBAAgB,OAAA;AACzB,4CAA0C;AAAjC,8FAAA,KAAK,OAAA;AACd,wCAAsC;AAA7B,0FAAA,GAAG,OAAA;AACZ,8CAA4C;AAAnC,gGAAA,MAAM,OAAA;AACf,wDAAsD;AAA7C,0GAAA,WAAW,OAAA;AACpB,0CAAwC;AAA/B,4FAAA,IAAI,OAAA;AACb,kDAAgD;AAAvC,oGAAA,QAAQ,OAAA;AACjB,oDAAkD;AAAzC,sGAAA,SAAS,OAAA;AAClB,sDAAoD;AAA3C,wGAAA,UAAU,OAAA;AACnB,0DAAwD;AAA/C,4GAAA,YAAY,OAAA;AACrB,4CAA0C;AAAjC,8FAAA,KAAK,OAAA;AACd,4CAA0C;AAAjC,8FAAA,KAAK,OAAA;AACd,sDAAoD;AAA3C,wGAAA,UAAU,OAAA;AACnB,sDAAoD;AAA3C,wGAAA,UAAU,OAAA;AACnB,0CAAwC;AAA/B,4FAAA,IAAI,OAAA;AACb,0CAAwC;AAA/B,4FAAA,IAAI,OAAA;AACb,sDAAoD;AAA3C,wGAAA,UAAU,OAAA;AACnB,gDAA8C;AAArC,kGAAA,OAAO,OAAA;AAChB,kDAAgD;AAAvC,oGAAA,QAAQ,OAAA;AACjB,4CAA0C;AAAjC,8FAAA,KAAK,OAAA;AACd,4CAA0C;AAAjC,8FAAA,KAAK,OAAA;AACd,kEAAgE;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,4CAAuE;AAA9D,6FAAA,IAAI,OAAA;AAAE,6FAAA,IAAI,OAAA;AAAE,6FAAA,IAAI,OAAA;AAAE,6FAAA,IAAI,OAAA;AAAE,4FAAA,GAAG,OAAA;AAAE,8FAAA,KAAK,OAAA;AAC3C,wCAAsC;AAA7B,0FAAA,GAAG,OAAA;AACZ,0CAAwC;AAA/B,4FAAA,IAAI,OAAA;AACb,kDAAgD;AAAvC,oGAAA,QAAQ,OAAA;AACjB,gEAA8D;AAArD,kHAAA,eAAe,OAAA;AACxB,gDAA8C;AAArC,kGAAA,OAAO,OAAA;AAChB,8DAA4D;AAAnD,gHAAA,cAAc,OAAA;AACvB,kDAAuB"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export type FontSizes = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
2
+ export type FontSizes = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl' | 'xxxxl';
3
3
  export type FontSizesMap<T> = Record<FontSizes, T>;
4
4
  export type Spacing = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 0;
5
5
  export type SpacingMap<T> = Record<Spacing, T>;
@@ -6,4 +6,5 @@ export declare const fontSizes: {
6
6
  xl: string;
7
7
  xxl: string;
8
8
  xxxl: string;
9
+ xxxxl: string;
9
10
  };
@@ -9,5 +9,6 @@ exports.fontSizes = {
9
9
  xl: '24px',
10
10
  xxl: '28px',
11
11
  xxxl: '32px',
12
+ xxxxl: '36px',
12
13
  };
13
14
  //# sourceMappingURL=typography.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typography.js","sourceRoot":"","sources":["../../src/theme/typography.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACrB,EAAE,EAAE,MAAM;IACV,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,EAAE,EAAE,MAAM;IACV,GAAG,EAAE,MAAM;IACX,IAAI,EAAE,MAAM;CACf,CAAA"}
1
+ {"version":3,"file":"typography.js","sourceRoot":"","sources":["../../src/theme/typography.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACrB,EAAE,EAAE,MAAM;IACV,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,EAAE,EAAE,MAAM;IACV,GAAG,EAAE,MAAM;IACX,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,MAAM;CAChB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beequip/hexagon",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "description": "Component library for BEEQUIP",
5
5
  "main": "dist/index.js",
6
6
  "files": [