@elliemae/ds-header 1.57.1-rc.0 → 2.0.0-alpha.11

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.
package/cjs/Header.js CHANGED
@@ -2,38 +2,44 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var _extends = require('@babel/runtime/helpers/extends');
5
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
6
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
7
- var React = require('react');
7
+ require('react');
8
8
  var reactDesc = require('react-desc');
9
9
  var styled = require('styled-components');
10
10
  var styledSystem = require('styled-system');
11
+ var jsxRuntime = require('react/jsx-runtime');
11
12
 
12
13
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
14
 
14
- var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
15
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
15
16
  var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
16
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
17
17
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
18
18
 
19
- var _excluded = ["color", "fontFamily", "fontSize", "fontWeight", "height", "level", "lineHeight", "text", "width"];
20
- var H = /*#__PURE__*/styled__default['default'].h3.withConfig({
19
+ const _excluded = ["color", "fontFamily", "fontSize", "fontWeight", "height", "level", "lineHeight", "text", "width"];
20
+
21
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
22
+
23
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
24
+ const H = /*#__PURE__*/styled__default["default"].h3.withConfig({
21
25
  componentId: "sc-hpgkwz-0"
22
26
  })(["font-weight:unset;font-size:unset;line-height:unset;margin:0;padding:0;", " ", " ", " ", " ", ""], styledSystem.space, styledSystem.width, styledSystem.height, styledSystem.typography, styledSystem.color);
23
27
 
24
- var DSHeader = function DSHeader(_ref) {
25
- var color = _ref.color,
26
- fontFamily = _ref.fontFamily,
27
- fontSize = _ref.fontSize,
28
- fontWeight = _ref.fontWeight,
29
- height = _ref.height,
30
- level = _ref.level,
31
- lineHeight = _ref.lineHeight,
32
- text = _ref.text,
33
- width = _ref.width,
34
- rest = _objectWithoutProperties__default['default'](_ref, _excluded);
28
+ const DSHeader = _ref => {
29
+ let {
30
+ color,
31
+ fontFamily,
32
+ fontSize,
33
+ fontWeight,
34
+ height,
35
+ level,
36
+ lineHeight,
37
+ text,
38
+ width
39
+ } = _ref,
40
+ rest = _objectWithoutProperties__default["default"](_ref, _excluded);
35
41
 
36
- return /*#__PURE__*/React__default['default'].createElement(H, _extends__default['default']({
42
+ return /*#__PURE__*/jsxRuntime.jsx(H, _objectSpread(_objectSpread({
37
43
  as: "h".concat(level),
38
44
  color: color,
39
45
  fontFamily: fontFamily,
@@ -43,14 +49,16 @@ var DSHeader = function DSHeader(_ref) {
43
49
  lineHeight: lineHeight,
44
50
  width: width,
45
51
  "data-testid": "em-ds-header"
46
- }, rest), text);
52
+ }, rest), {}, {
53
+ children: text
54
+ }));
47
55
  };
48
56
 
49
57
  DSHeader.defaultProps = {
50
58
  level: 3,
51
59
  lineHeight: 1.2
52
60
  };
53
- var headerProps = {
61
+ const headerProps = {
54
62
  color: reactDesc.PropTypes.string.description('Colors aliases from theme. I.e. `brand.400`'),
55
63
  fontFamily: reactDesc.PropTypes.string.description('font-family aliases from theme. I.e. `default`'),
56
64
  fontSize: reactDesc.PropTypes.string.description('any valid value format. I.e. `16px`'),
@@ -75,11 +83,9 @@ var headerProps = {
75
83
  text: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.string, reactDesc.PropTypes.element]).description('Header s text').isRequired,
76
84
  width: reactDesc.PropTypes.string.description('text width')
77
85
  };
78
- DSHeader.propTypes = headerProps;
79
- var HeaderWithSchema = reactDesc.describe(DSHeader);
86
+ const HeaderWithSchema = reactDesc.describe(DSHeader);
80
87
  HeaderWithSchema.propTypes = headerProps;
81
88
 
82
89
  exports.DSHeader = DSHeader;
83
90
  exports.HeaderWithSchema = HeaderWithSchema;
84
- exports['default'] = DSHeader;
85
- //# sourceMappingURL=Header.js.map
91
+ exports["default"] = DSHeader;
package/cjs/index.js CHANGED
@@ -3,15 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var Header = require('./Header.js');
6
- require('@babel/runtime/helpers/extends');
7
- require('@babel/runtime/helpers/objectWithoutProperties');
8
- require('react');
9
- require('react-desc');
10
- require('styled-components');
11
- require('styled-system');
12
6
 
13
7
 
14
8
 
15
9
  exports.DSHeader = Header.DSHeader;
16
10
  exports.HeaderWithSchema = Header.HeaderWithSchema;
17
- //# sourceMappingURL=index.js.map
package/esm/Header.js CHANGED
@@ -1,28 +1,35 @@
1
- import _extends from '@babel/runtime/helpers/esm/extends';
1
+ import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
- import React from 'react';
3
+ import 'react';
4
4
  import { PropTypes, describe } from 'react-desc';
5
5
  import styled from 'styled-components';
6
6
  import { space, width, height, typography, color } from 'styled-system';
7
+ import { jsx } from 'react/jsx-runtime';
7
8
 
8
- var _excluded = ["color", "fontFamily", "fontSize", "fontWeight", "height", "level", "lineHeight", "text", "width"];
9
- var H = /*#__PURE__*/styled.h3.withConfig({
9
+ const _excluded = ["color", "fontFamily", "fontSize", "fontWeight", "height", "level", "lineHeight", "text", "width"];
10
+
11
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
12
+
13
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
14
+ const H = /*#__PURE__*/styled.h3.withConfig({
10
15
  componentId: "sc-hpgkwz-0"
11
16
  })(["font-weight:unset;font-size:unset;line-height:unset;margin:0;padding:0;", " ", " ", " ", " ", ""], space, width, height, typography, color);
12
17
 
13
- var DSHeader = function DSHeader(_ref) {
14
- var color = _ref.color,
15
- fontFamily = _ref.fontFamily,
16
- fontSize = _ref.fontSize,
17
- fontWeight = _ref.fontWeight,
18
- height = _ref.height,
19
- level = _ref.level,
20
- lineHeight = _ref.lineHeight,
21
- text = _ref.text,
22
- width = _ref.width,
18
+ const DSHeader = _ref => {
19
+ let {
20
+ color,
21
+ fontFamily,
22
+ fontSize,
23
+ fontWeight,
24
+ height,
25
+ level,
26
+ lineHeight,
27
+ text,
28
+ width
29
+ } = _ref,
23
30
  rest = _objectWithoutProperties(_ref, _excluded);
24
31
 
25
- return /*#__PURE__*/React.createElement(H, _extends({
32
+ return /*#__PURE__*/jsx(H, _objectSpread(_objectSpread({
26
33
  as: "h".concat(level),
27
34
  color: color,
28
35
  fontFamily: fontFamily,
@@ -32,14 +39,16 @@ var DSHeader = function DSHeader(_ref) {
32
39
  lineHeight: lineHeight,
33
40
  width: width,
34
41
  "data-testid": "em-ds-header"
35
- }, rest), text);
42
+ }, rest), {}, {
43
+ children: text
44
+ }));
36
45
  };
37
46
 
38
47
  DSHeader.defaultProps = {
39
48
  level: 3,
40
49
  lineHeight: 1.2
41
50
  };
42
- var headerProps = {
51
+ const headerProps = {
43
52
  color: PropTypes.string.description('Colors aliases from theme. I.e. `brand.400`'),
44
53
  fontFamily: PropTypes.string.description('font-family aliases from theme. I.e. `default`'),
45
54
  fontSize: PropTypes.string.description('any valid value format. I.e. `16px`'),
@@ -64,9 +73,7 @@ var headerProps = {
64
73
  text: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description('Header s text').isRequired,
65
74
  width: PropTypes.string.description('text width')
66
75
  };
67
- DSHeader.propTypes = headerProps;
68
- var HeaderWithSchema = describe(DSHeader);
76
+ const HeaderWithSchema = describe(DSHeader);
69
77
  HeaderWithSchema.propTypes = headerProps;
70
78
 
71
79
  export { DSHeader, HeaderWithSchema, DSHeader as default };
72
- //# sourceMappingURL=Header.js.map
package/esm/index.js CHANGED
@@ -1,8 +1 @@
1
1
  export { DSHeader, HeaderWithSchema } from './Header.js';
2
- import '@babel/runtime/helpers/esm/extends';
3
- import '@babel/runtime/helpers/esm/objectWithoutProperties';
4
- import 'react';
5
- import 'react-desc';
6
- import 'styled-components';
7
- import 'styled-system';
8
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,14 +1,34 @@
1
1
  {
2
2
  "name": "@elliemae/ds-header",
3
- "version": "1.57.1-rc.0",
3
+ "version": "2.0.0-alpha.11",
4
4
  "license": "MIT",
5
- "description": "Ellie Mae - Dim Sum - Header",
6
- "module": "esm/index.js",
7
- "main": "cjs/index.js",
5
+ "description": "ICE MT - Dimsum - Header",
6
+ "module": "./esm/index.js",
7
+ "main": "./cjs/index.js",
8
+ "types": "./types/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./esm/index.js",
12
+ "require": "./cjs/index.js"
13
+ },
14
+ "./Header": {
15
+ "import": "./esm/Header.js",
16
+ "require": "./cjs/Header.js"
17
+ }
18
+ },
8
19
  "sideEffects": [
9
20
  "*.css",
10
21
  "*.scss"
11
22
  ],
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://git.elliemae.io/platform-ui/dimsum.git"
26
+ },
27
+ "engines": {
28
+ "npm": ">=7",
29
+ "node": ">=14"
30
+ },
31
+ "author": "ICE MT",
12
32
  "scripts": {
13
33
  "dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
14
34
  "prebuild": "exit 0",
@@ -16,19 +36,21 @@
16
36
  "build": "node ../../scripts/build/build.js"
17
37
  },
18
38
  "dependencies": {
19
- "react-desc": "^4.1.2",
20
- "styled-system": "~5.1.5"
39
+ "react-desc": "~4.1.3"
21
40
  },
22
41
  "devDependencies": {
23
- "styled-components": "~5.3.0"
42
+ "styled-components": "~5.3.1",
43
+ "styled-system": "~5.1.5"
24
44
  },
25
45
  "peerDependencies": {
26
- "react": "^17.0.1",
27
- "react-dom": "^17.0.1",
28
- "styled-components": "^5.3.0"
46
+ "react": "^17.0.2",
47
+ "react-dom": "^17.0.2",
48
+ "styled-components": "^5.3.1",
49
+ "styled-system": "^5.1.5"
29
50
  },
30
51
  "publishConfig": {
31
52
  "access": "public",
32
- "directory": "dist"
53
+ "directory": "dist",
54
+ "generateSubmodules": true
33
55
  }
34
56
  }
@@ -0,0 +1,47 @@
1
+ /// <reference types="react" />
2
+ declare const DSHeader: {
3
+ ({ color, fontFamily, fontSize, fontWeight, height, level, lineHeight, text, width, ...rest }: {
4
+ [x: string]: any;
5
+ color: any;
6
+ fontFamily: any;
7
+ fontSize: any;
8
+ fontWeight: any;
9
+ height: any;
10
+ level: any;
11
+ lineHeight: any;
12
+ text: any;
13
+ width: any;
14
+ }): JSX.Element;
15
+ defaultProps: {
16
+ level: number;
17
+ lineHeight: number;
18
+ };
19
+ propTypes: {
20
+ color: any;
21
+ fontFamily: any;
22
+ fontSize: any;
23
+ fontWeight: any;
24
+ height: any;
25
+ level: any;
26
+ lineHeight: any;
27
+ m: any;
28
+ mb: any;
29
+ ml: any;
30
+ mr: any;
31
+ mt: any;
32
+ mx: any;
33
+ my: any;
34
+ p: any;
35
+ pb: any;
36
+ pl: any;
37
+ pr: any;
38
+ pt: any;
39
+ px: any;
40
+ py: any;
41
+ text: any;
42
+ width: any;
43
+ };
44
+ };
45
+ declare const HeaderWithSchema: any;
46
+ export { DSHeader, HeaderWithSchema };
47
+ export default DSHeader;
@@ -0,0 +1 @@
1
+ export * from './Header';
@@ -1,10 +0,0 @@
1
- {
2
- "name": "@elliemae/ds-header/Header",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ],
7
- "private": true,
8
- "main": "../cjs/Header.js",
9
- "module": "../esm/Header.js"
10
- }
package/cjs/Header.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"Header.js","sources":["../../src/Header.tsx"],"sourcesContent":["/* eslint-disable max-lines */\nimport React from 'react';\nimport { describe, PropTypes } from 'react-desc';\nimport styled from 'styled-components';\nimport {\n space,\n width as wdt,\n height as hgt,\n typography,\n color as clr,\n} from 'styled-system';\n\nconst H = styled.h3`\n font-weight: unset;\n font-size: unset;\n line-height: unset;\n margin: 0;\n padding: 0;\n ${space}\n ${wdt}\n ${hgt}\n ${typography}\n ${clr}\n`;\n\nconst DSHeader = ({\n color,\n fontFamily,\n fontSize,\n fontWeight,\n height,\n level,\n lineHeight,\n text,\n width,\n // using spread for styled-system bug on margin/padding\n ...rest\n}) => (\n <H\n as={`h${level}`}\n color={color}\n fontFamily={fontFamily}\n fontSize={fontSize}\n fontWeight={fontWeight}\n height={height}\n lineHeight={lineHeight}\n width={width}\n data-testid=\"em-ds-header\"\n {...rest}\n >\n {text}\n </H>\n);\n\nDSHeader.defaultProps = {\n level: 3,\n lineHeight: 1.2,\n};\n\nconst headerProps = {\n color: PropTypes.string.description(\n 'Colors aliases from theme. I.e. `brand.400`',\n ),\n fontFamily: PropTypes.string.description(\n 'font-family aliases from theme. I.e. `default`',\n ),\n fontSize: PropTypes.string.description('any valid value format. I.e. `16px`'),\n fontWeight: PropTypes.string.description(\n 'any alias from theme. I.e. `semibold`',\n ),\n height: PropTypes.string.description('any valid value format. I.e. `200px`'),\n level: PropTypes.oneOf([1, 2, 3, 4, 5, 6])\n .description('Depth of header tag. I.e. level `2` renders a h2 tag')\n .defaultValue(2),\n lineHeight: PropTypes.number\n .description('float numbers for line-height. I.e. 1.5')\n .defaultValue(1.2),\n m: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'margin',\n ),\n mb: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'margin-bottom',\n ),\n ml: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'margin-left',\n ),\n mr: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'margin-right',\n ),\n mt: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'margin-top',\n ),\n mx: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'margin x',\n ),\n my: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'margin y',\n ),\n p: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'padding',\n ),\n pb: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'padding-bottom',\n ),\n pl: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'padding-left',\n ),\n pr: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'padding-right',\n ),\n pt: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'padding-top',\n ),\n px: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'padding x',\n ),\n py: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'padding y',\n ),\n text: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description(\n 'Header s text',\n ).isRequired,\n width: PropTypes.string.description('text width'),\n};\n\nDSHeader.propTypes = headerProps;\n\nconst HeaderWithSchema = describe(DSHeader);\nHeaderWithSchema.propTypes = headerProps;\n\nexport { DSHeader, HeaderWithSchema };\nexport default DSHeader;\n"],"names":["H","styled","h3","space","wdt","hgt","typography","clr","DSHeader","color","fontFamily","fontSize","fontWeight","height","level","lineHeight","text","width","rest","React","defaultProps","headerProps","PropTypes","string","description","oneOf","defaultValue","number","m","mb","ml","mr","mt","mx","my","p","pb","pl","pr","pt","px","py","oneOfType","element","isRequired","propTypes","HeaderWithSchema","describe"],"mappings":";;;;;;;;;;;;;;;;;;;AAYA,IAAMA,CAAC,gBAAGC,0BAAM,CAACC,EAAV;AAAA;AAAA,wGAMHC,kBANG,EAOHC,kBAPG,EAQHC,mBARG,EASHC,uBATG,EAUHC,kBAVG,CAAP;;IAaMC,QAAQ,GAAG,SAAXA,QAAW;AAAA,MACfC,KADe,QACfA,KADe;AAAA,MAEfC,UAFe,QAEfA,UAFe;AAAA,MAGfC,QAHe,QAGfA,QAHe;AAAA,MAIfC,UAJe,QAIfA,UAJe;AAAA,MAKfC,MALe,QAKfA,MALe;AAAA,MAMfC,KANe,QAMfA,KANe;AAAA,MAOfC,UAPe,QAOfA,UAPe;AAAA,MAQfC,IARe,QAQfA,IARe;AAAA,MASfC,KATe,QASfA,KATe;AAAA,MAWZC,IAXY;;AAAA,sBAafC,wCAAC,CAAD;AACE,IAAA,EAAE,aAAML,KAAN,CADJ;AAEE,IAAA,KAAK,EAAE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GAAxB,EAA6B,IAA7B,EAAmC,KAAnC,CAAhB,EAA2DD,WAA3D,CACF,WADE,CAzDc;AA4DlBR,EAAAA,IAAI,EAAEM,mBAAS,CAACoB,SAAV,CAAoB,CAACpB,mBAAS,CAACC,MAAX,EAAmBD,mBAAS,CAACqB,OAA7B,CAApB,EAA2DnB,WAA3D,CACJ,eADI,EAEJoB,UA9DgB;AA+DlB3B,EAAAA,KAAK,EAAEK,mBAAS,CAACC,MAAV,CAAiBC,WAAjB,CAA6B,YAA7B;AA/DW,CAApB;AAkEAhB,QAAQ,CAACqC,SAAT,GAAqBxB,WAArB;IAEMyB,gBAAgB,GAAGC,kBAAQ,CAACvC,QAAD;AACjCsC,gBAAgB,CAACD,SAAjB,GAA6BxB,WAA7B;;;;;;"}
package/cjs/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
package/esm/Header.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"Header.js","sources":["../../src/Header.tsx"],"sourcesContent":["/* eslint-disable max-lines */\nimport React from 'react';\nimport { describe, PropTypes } from 'react-desc';\nimport styled from 'styled-components';\nimport {\n space,\n width as wdt,\n height as hgt,\n typography,\n color as clr,\n} from 'styled-system';\n\nconst H = styled.h3`\n font-weight: unset;\n font-size: unset;\n line-height: unset;\n margin: 0;\n padding: 0;\n ${space}\n ${wdt}\n ${hgt}\n ${typography}\n ${clr}\n`;\n\nconst DSHeader = ({\n color,\n fontFamily,\n fontSize,\n fontWeight,\n height,\n level,\n lineHeight,\n text,\n width,\n // using spread for styled-system bug on margin/padding\n ...rest\n}) => (\n <H\n as={`h${level}`}\n color={color}\n fontFamily={fontFamily}\n fontSize={fontSize}\n fontWeight={fontWeight}\n height={height}\n lineHeight={lineHeight}\n width={width}\n data-testid=\"em-ds-header\"\n {...rest}\n >\n {text}\n </H>\n);\n\nDSHeader.defaultProps = {\n level: 3,\n lineHeight: 1.2,\n};\n\nconst headerProps = {\n color: PropTypes.string.description(\n 'Colors aliases from theme. I.e. `brand.400`',\n ),\n fontFamily: PropTypes.string.description(\n 'font-family aliases from theme. I.e. `default`',\n ),\n fontSize: PropTypes.string.description('any valid value format. I.e. `16px`'),\n fontWeight: PropTypes.string.description(\n 'any alias from theme. I.e. `semibold`',\n ),\n height: PropTypes.string.description('any valid value format. I.e. `200px`'),\n level: PropTypes.oneOf([1, 2, 3, 4, 5, 6])\n .description('Depth of header tag. I.e. level `2` renders a h2 tag')\n .defaultValue(2),\n lineHeight: PropTypes.number\n .description('float numbers for line-height. I.e. 1.5')\n .defaultValue(1.2),\n m: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'margin',\n ),\n mb: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'margin-bottom',\n ),\n ml: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'margin-left',\n ),\n mr: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'margin-right',\n ),\n mt: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'margin-top',\n ),\n mx: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'margin x',\n ),\n my: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'margin y',\n ),\n p: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'padding',\n ),\n pb: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'padding-bottom',\n ),\n pl: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'padding-left',\n ),\n pr: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'padding-right',\n ),\n pt: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'padding-top',\n ),\n px: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'padding x',\n ),\n py: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description(\n 'padding y',\n ),\n text: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description(\n 'Header s text',\n ).isRequired,\n width: PropTypes.string.description('text width'),\n};\n\nDSHeader.propTypes = headerProps;\n\nconst HeaderWithSchema = describe(DSHeader);\nHeaderWithSchema.propTypes = headerProps;\n\nexport { DSHeader, HeaderWithSchema };\nexport default DSHeader;\n"],"names":["H","styled","h3","space","wdt","hgt","typography","clr","DSHeader","color","fontFamily","fontSize","fontWeight","height","level","lineHeight","text","width","rest","defaultProps","headerProps","PropTypes","string","description","oneOf","defaultValue","number","m","mb","ml","mr","mt","mx","my","p","pb","pl","pr","pt","px","py","oneOfType","element","isRequired","propTypes","HeaderWithSchema","describe"],"mappings":";;;;;;;;AAYA,IAAMA,CAAC,gBAAGC,MAAM,CAACC,EAAV;AAAA;AAAA,wGAMHC,KANG,EAOHC,KAPG,EAQHC,MARG,EASHC,UATG,EAUHC,KAVG,CAAP;;IAaMC,QAAQ,GAAG,SAAXA,QAAW;AAAA,MACfC,KADe,QACfA,KADe;AAAA,MAEfC,UAFe,QAEfA,UAFe;AAAA,MAGfC,QAHe,QAGfA,QAHe;AAAA,MAIfC,UAJe,QAIfA,UAJe;AAAA,MAKfC,MALe,QAKfA,MALe;AAAA,MAMfC,KANe,QAMfA,KANe;AAAA,MAOfC,UAPe,QAOfA,UAPe;AAAA,MAQfC,IARe,QAQfA,IARe;AAAA,MASfC,KATe,QASfA,KATe;AAAA,MAWZC,IAXY;;AAAA,sBAaf,oBAAC,CAAD;AACE,IAAA,EAAE,aAAMJ,KAAN,CADJ;AAEE,IAAA,KAAK,EAAEL,KAFT;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