@elliemae/ds-header 3.26.1-rc.1 → 3.27.0-next.2

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/dist/cjs/index.js CHANGED
@@ -5,6 +5,10 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
8
12
  var __copyProps = (to, from, except, desc) => {
9
13
  if (from && typeof from === "object" || typeof from === "function") {
10
14
  for (let key of __getOwnPropNames(from))
@@ -24,7 +28,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
28
  ));
25
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
26
30
  var src_exports = {};
31
+ __export(src_exports, {
32
+ default: () => import_ds_legacy_header.default
33
+ });
27
34
  module.exports = __toCommonJS(src_exports);
28
35
  var React = __toESM(require("react"));
29
- __reExport(src_exports, require("./Header.js"), module.exports);
36
+ __reExport(src_exports, require("@elliemae/ds-legacy-header"), module.exports);
37
+ var import_ds_legacy_header = __toESM(require("@elliemae/ds-legacy-header"));
30
38
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["export * from './Header.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,wBAAd;",
4
+ "sourcesContent": ["export * from '@elliemae/ds-legacy-header';\nexport { default } from '@elliemae/ds-legacy-header';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,uCAAd;AACA,8BAAwB;",
6
6
  "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -1,3 +1,7 @@
1
1
  import * as React from "react";
2
- export * from "./Header.js";
2
+ export * from "@elliemae/ds-legacy-header";
3
+ import { default as default2 } from "@elliemae/ds-legacy-header";
4
+ export {
5
+ default2 as default
6
+ };
3
7
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './Header.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;",
6
- "names": []
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from '@elliemae/ds-legacy-header';\nexport { default } from '@elliemae/ds-legacy-header';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AACd,SAAS,WAAAA,gBAAe;",
6
+ "names": ["default"]
7
7
  }
@@ -1 +1,2 @@
1
- export * from './Header.js';
1
+ export * from '@elliemae/ds-legacy-header';
2
+ export { default } from '@elliemae/ds-legacy-header';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-header",
3
- "version": "3.26.1-rc.1",
3
+ "version": "3.27.0-next.2",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Header",
6
6
  "files": [
@@ -13,10 +13,6 @@
13
13
  ".": {
14
14
  "import": "./dist/esm/index.js",
15
15
  "require": "./dist/cjs/index.js"
16
- },
17
- "./Header": {
18
- "import": "./dist/esm/Header.js",
19
- "require": "./dist/cjs/Header.js"
20
16
  }
21
17
  },
22
18
  "sideEffects": [
@@ -39,13 +35,12 @@
39
35
  "indent": 4
40
36
  },
41
37
  "dependencies": {
42
- "@elliemae/ds-props-helpers": "3.26.1-rc.1",
43
- "@elliemae/ds-system": "3.26.1-rc.1"
38
+ "@elliemae/ds-legacy-header": "1.0.1"
44
39
  },
45
40
  "devDependencies": {
46
41
  "@elliemae/pui-cli": "~9.0.0-next.31",
47
42
  "styled-components": "~5.3.9",
48
- "@elliemae/ds-monorepo-devops": "3.26.1-rc.1"
43
+ "@elliemae/ds-monorepo-devops": "3.27.0-next.2"
49
44
  },
50
45
  "peerDependencies": {
51
46
  "react": "^17.0.2",
@@ -59,13 +54,13 @@
59
54
  },
60
55
  "scripts": {
61
56
  "dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
62
- "test": "pui-cli test --passWithNoTests",
63
- "lint": "node ../../../scripts/lint.mjs",
64
- "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
65
- "dts": "node ../../../scripts/dts.mjs",
57
+ "test": "exit 0 | echo",
58
+ "lint": "exit 0 | echo",
59
+ "eslint:fix": "exit 0 | echo",
60
+ "dts": "exit 0 | echo",
66
61
  "build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
67
62
  "dev:build": "pnpm --filter {.}... build",
68
63
  "dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
69
- "checkDeps": "npm exec ../../util/ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
64
+ "checkDeps": "exit 0 | echo"
70
65
  }
71
66
  }
@@ -1,100 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var Header_exports = {};
30
- __export(Header_exports, {
31
- DSHeader: () => DSHeader,
32
- HeaderWithSchema: () => HeaderWithSchema,
33
- default: () => Header_default
34
- });
35
- module.exports = __toCommonJS(Header_exports);
36
- var React = __toESM(require("react"));
37
- var import_jsx_runtime = require("react/jsx-runtime");
38
- var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
39
- var import_ds_system = require("@elliemae/ds-system");
40
- const H = import_ds_system.styled.h3`
41
- font-weight: unset;
42
- font-size: unset;
43
- line-height: unset;
44
- margin: 0;
45
- padding: 0;
46
- ${import_ds_system.space}
47
- ${import_ds_system.sizing}
48
- ${import_ds_system.typography}
49
- `;
50
- const DSHeader = ({ color, fontFamily, fontSize, fontWeight, height, level, lineHeight, text, width, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
51
- H,
52
- {
53
- as: `h${level}`,
54
- color,
55
- fontFamily,
56
- fontSize,
57
- fontWeight,
58
- h: height,
59
- lineHeight,
60
- w: width,
61
- "data-testid": "em-ds-header",
62
- ...rest,
63
- children: text
64
- }
65
- );
66
- DSHeader.defaultProps = {
67
- level: 3,
68
- lineHeight: 1.2
69
- };
70
- const headerProps = {
71
- color: import_ds_props_helpers.PropTypes.string.description("Colors aliases from theme. I.e. `brand.400`"),
72
- fontFamily: import_ds_props_helpers.PropTypes.string.description("font-family aliases from theme. I.e. `default`"),
73
- fontSize: import_ds_props_helpers.PropTypes.string.description("any valid value format. I.e. `16px`"),
74
- fontWeight: import_ds_props_helpers.PropTypes.string.description("any alias from theme. I.e. `semibold`"),
75
- height: import_ds_props_helpers.PropTypes.string.description("any valid value format. I.e. `200px`"),
76
- level: import_ds_props_helpers.PropTypes.oneOf([1, 2, 3, 4, 5, 6]).description("Depth of header tag. I.e. level `2` renders a h2 tag").defaultValue(2),
77
- lineHeight: import_ds_props_helpers.PropTypes.number.description("float numbers for line-height. I.e. 1.5").defaultValue(1.2),
78
- m: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("margin"),
79
- mb: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("margin-bottom"),
80
- ml: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("margin-left"),
81
- mr: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("margin-right"),
82
- mt: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("margin-top"),
83
- mx: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("margin x"),
84
- my: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("margin y"),
85
- p: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("padding"),
86
- pb: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("padding-bottom"),
87
- pl: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("padding-left"),
88
- pr: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("padding-right"),
89
- pt: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("padding-top"),
90
- px: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("padding x"),
91
- py: import_ds_props_helpers.PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("padding y"),
92
- text: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.string, import_ds_props_helpers.PropTypes.element]).description("Header s text").isRequired,
93
- width: import_ds_props_helpers.PropTypes.string.description("text width")
94
- };
95
- DSHeader.propTypes = headerProps;
96
- DSHeader.displayName = "DSHeader";
97
- const HeaderWithSchema = (0, import_ds_props_helpers.describe)(DSHeader);
98
- HeaderWithSchema.propTypes = headerProps;
99
- var Header_default = DSHeader;
100
- //# sourceMappingURL=Header.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Header.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable max-lines */\nimport React from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-props-helpers';\nimport { styled, space, sizing, typography } from '@elliemae/ds-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 ${sizing}\n ${typography}\n`;\n\nconst DSHeader = ({ color, fontFamily, fontSize, fontWeight, height, level, lineHeight, text, width, ...rest }) => (\n <H\n as={`h${level}`}\n color={color}\n fontFamily={fontFamily}\n fontSize={fontSize}\n fontWeight={fontWeight}\n h={height}\n lineHeight={lineHeight}\n w={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('Colors aliases from theme. I.e. `brand.400`'),\n fontFamily: PropTypes.string.description('font-family aliases from theme. I.e. `default`'),\n fontSize: PropTypes.string.description('any valid value format. I.e. `16px`'),\n fontWeight: PropTypes.string.description('any alias from theme. I.e. `semibold`'),\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.description('float numbers for line-height. I.e. 1.5').defaultValue(1.2),\n m: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('margin'),\n mb: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('margin-bottom'),\n ml: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('margin-left'),\n mr: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('margin-right'),\n mt: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('margin-top'),\n mx: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('margin x'),\n my: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('margin y'),\n p: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('padding'),\n pb: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('padding-bottom'),\n pl: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('padding-left'),\n pr: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('padding-right'),\n pt: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('padding-top'),\n px: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('padding x'),\n py: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('padding y'),\n text: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description('Header s text').isRequired,\n width: PropTypes.string.description('text width'),\n};\n\nDSHeader.propTypes = headerProps;\nDSHeader.displayName = 'DSHeader';\nconst HeaderWithSchema = describe(DSHeader);\nHeaderWithSchema.propTypes = headerProps;\n\nexport { DSHeader, HeaderWithSchema };\nexport default DSHeader;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADiBrB;AAfF,8BAAoC;AACpC,uBAAkD;AAElD,MAAM,IAAI,wBAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMb;AAAA,IACA;AAAA,IACA;AAAA;AAGJ,MAAM,WAAW,CAAC,EAAE,OAAO,YAAY,UAAU,YAAY,QAAQ,OAAO,YAAY,MAAM,OAAO,GAAG,KAAK,MAC3G;AAAA,EAAC;AAAA;AAAA,IACC,IAAI,IAAI;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,IACH;AAAA,IACA,GAAG;AAAA,IACH,eAAY;AAAA,IACX,GAAG;AAAA,IAEH;AAAA;AACH;AAGF,SAAS,eAAe;AAAA,EACtB,OAAO;AAAA,EACP,YAAY;AACd;AAEA,MAAM,cAAc;AAAA,EAClB,OAAO,kCAAU,OAAO,YAAY,6CAA6C;AAAA,EACjF,YAAY,kCAAU,OAAO,YAAY,gDAAgD;AAAA,EACzF,UAAU,kCAAU,OAAO,YAAY,qCAAqC;AAAA,EAC5E,YAAY,kCAAU,OAAO,YAAY,uCAAuC;AAAA,EAChF,QAAQ,kCAAU,OAAO,YAAY,sCAAsC;AAAA,EAC3E,OAAO,kCAAU,MAA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AAO,MAAM,KAAK,KAAK,KAAK,MAAM,KAAK,CAAC,EAAE,YAAY,eAAe;AAAA,EAC1F,IAAI,kCAAU,MAAM,CAAC,OAAO,MAAM,KAAK,KAAK,KAAK,MAAM,KAAK,CAAC,EAAE,YAAY,aAAa;AAAA,EACxF,IAAI,kCAAU,MAAM,CAAC,OAAO,MAAM,KAAK,KAAK,KAAK,MAAM,KAAK,CAAC,EAAE,YAAY,WAAW;AAAA,EACtF,IAAI,kCAAU,MAAM,CAAC,OAAO,MAAM,KAAK,KAAK,KAAK,MAAM,KAAK,CAAC,EAAE,YAAY,WAAW;AAAA,EACtF,MAAM,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,OAAO,CAAC,EAAE,YAAY,eAAe,EAAE;AAAA,EAC9F,OAAO,kCAAU,OAAO,YAAY,YAAY;AAClD;AAEA,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,MAAM,uBAAmB,kCAAS,QAAQ;AAC1C,iBAAiB,YAAY;AAG7B,IAAO,iBAAQ;",
6
- "names": []
7
- }
@@ -1,70 +0,0 @@
1
- import * as React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- import { describe, PropTypes } from "@elliemae/ds-props-helpers";
4
- import { styled, space, sizing, typography } from "@elliemae/ds-system";
5
- const H = styled.h3`
6
- font-weight: unset;
7
- font-size: unset;
8
- line-height: unset;
9
- margin: 0;
10
- padding: 0;
11
- ${space}
12
- ${sizing}
13
- ${typography}
14
- `;
15
- const DSHeader = ({ color, fontFamily, fontSize, fontWeight, height, level, lineHeight, text, width, ...rest }) => /* @__PURE__ */ jsx(
16
- H,
17
- {
18
- as: `h${level}`,
19
- color,
20
- fontFamily,
21
- fontSize,
22
- fontWeight,
23
- h: height,
24
- lineHeight,
25
- w: width,
26
- "data-testid": "em-ds-header",
27
- ...rest,
28
- children: text
29
- }
30
- );
31
- DSHeader.defaultProps = {
32
- level: 3,
33
- lineHeight: 1.2
34
- };
35
- const headerProps = {
36
- color: PropTypes.string.description("Colors aliases from theme. I.e. `brand.400`"),
37
- fontFamily: PropTypes.string.description("font-family aliases from theme. I.e. `default`"),
38
- fontSize: PropTypes.string.description("any valid value format. I.e. `16px`"),
39
- fontWeight: PropTypes.string.description("any alias from theme. I.e. `semibold`"),
40
- height: PropTypes.string.description("any valid value format. I.e. `200px`"),
41
- level: PropTypes.oneOf([1, 2, 3, 4, 5, 6]).description("Depth of header tag. I.e. level `2` renders a h2 tag").defaultValue(2),
42
- lineHeight: PropTypes.number.description("float numbers for line-height. I.e. 1.5").defaultValue(1.2),
43
- m: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("margin"),
44
- mb: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("margin-bottom"),
45
- ml: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("margin-left"),
46
- mr: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("margin-right"),
47
- mt: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("margin-top"),
48
- mx: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("margin x"),
49
- my: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("margin y"),
50
- p: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("padding"),
51
- pb: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("padding-bottom"),
52
- pl: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("padding-left"),
53
- pr: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("padding-right"),
54
- pt: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("padding-top"),
55
- px: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("padding x"),
56
- py: PropTypes.oneOf(["xxs", "xs", "s", "m", "l", "xl", "xxl"]).description("padding y"),
57
- text: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description("Header s text").isRequired,
58
- width: PropTypes.string.description("text width")
59
- };
60
- DSHeader.propTypes = headerProps;
61
- DSHeader.displayName = "DSHeader";
62
- const HeaderWithSchema = describe(DSHeader);
63
- HeaderWithSchema.propTypes = headerProps;
64
- var Header_default = DSHeader;
65
- export {
66
- DSHeader,
67
- HeaderWithSchema,
68
- Header_default as default
69
- };
70
- //# sourceMappingURL=Header.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/Header.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-props-helpers';\nimport { styled, space, sizing, typography } from '@elliemae/ds-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 ${sizing}\n ${typography}\n`;\n\nconst DSHeader = ({ color, fontFamily, fontSize, fontWeight, height, level, lineHeight, text, width, ...rest }) => (\n <H\n as={`h${level}`}\n color={color}\n fontFamily={fontFamily}\n fontSize={fontSize}\n fontWeight={fontWeight}\n h={height}\n lineHeight={lineHeight}\n w={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('Colors aliases from theme. I.e. `brand.400`'),\n fontFamily: PropTypes.string.description('font-family aliases from theme. I.e. `default`'),\n fontSize: PropTypes.string.description('any valid value format. I.e. `16px`'),\n fontWeight: PropTypes.string.description('any alias from theme. I.e. `semibold`'),\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.description('float numbers for line-height. I.e. 1.5').defaultValue(1.2),\n m: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('margin'),\n mb: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('margin-bottom'),\n ml: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('margin-left'),\n mr: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('margin-right'),\n mt: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('margin-top'),\n mx: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('margin x'),\n my: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('margin y'),\n p: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('padding'),\n pb: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('padding-bottom'),\n pl: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('padding-left'),\n pr: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('padding-right'),\n pt: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('padding-top'),\n px: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('padding x'),\n py: PropTypes.oneOf(['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl']).description('padding y'),\n text: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).description('Header s text').isRequired,\n width: PropTypes.string.description('text width'),\n};\n\nDSHeader.propTypes = headerProps;\nDSHeader.displayName = 'DSHeader';\nconst HeaderWithSchema = describe(DSHeader);\nHeaderWithSchema.propTypes = headerProps;\n\nexport { DSHeader, HeaderWithSchema };\nexport default DSHeader;\n"],
5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OAAO,CAAC,EAAE,YAAY,eAAe,EAAE;AAAA,EAC9F,OAAO,UAAU,OAAO,YAAY,YAAY;AAClD;AAEA,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,MAAM,mBAAmB,SAAS,QAAQ;AAC1C,iBAAiB,YAAY;AAG7B,IAAO,iBAAQ;",
6
- "names": []
7
- }
@@ -1,58 +0,0 @@
1
- declare const DSHeader: {
2
- ({ color, fontFamily, fontSize, fontWeight, height, level, lineHeight, text, width, ...rest }: {
3
- [x: string]: any;
4
- color: any;
5
- fontFamily: any;
6
- fontSize: any;
7
- fontWeight: any;
8
- height: any;
9
- level: any;
10
- lineHeight: any;
11
- text: any;
12
- width: any;
13
- }): import("react/jsx-runtime").JSX.Element;
14
- defaultProps: {
15
- level: number;
16
- lineHeight: number;
17
- };
18
- propTypes: {
19
- color: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
20
- fontFamily: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
21
- fontSize: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
22
- fontWeight: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
23
- height: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
24
- level: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
25
- lineHeight: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
26
- m: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
27
- mb: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
28
- ml: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
29
- mr: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
30
- mt: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
31
- mx: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
32
- my: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
33
- p: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
34
- pb: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
35
- pl: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
36
- pr: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
37
- pt: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
38
- px: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
39
- py: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
40
- text: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
41
- width: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
42
- };
43
- displayName: string;
44
- };
45
- declare const HeaderWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<{
46
- [x: string]: any;
47
- color: any;
48
- fontFamily: any;
49
- fontSize: any;
50
- fontWeight: any;
51
- height: any;
52
- level: any;
53
- lineHeight: any;
54
- text: any;
55
- width: any;
56
- }>;
57
- export { DSHeader, HeaderWithSchema };
58
- export default DSHeader;