@beequip/hexagon 0.23.0 → 0.24.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"}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
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"}
@@ -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.24.0",
4
4
  "description": "Component library for BEEQUIP",
5
5
  "main": "dist/index.js",
6
6
  "files": [