@elliemae/ds-list-section-header 3.16.0-next.2 → 3.16.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,7 +31,7 @@ __export(ListSectionHeader_exports, {
|
|
|
31
31
|
module.exports = __toCommonJS(ListSectionHeader_exports);
|
|
32
32
|
var React = __toESM(require("react"));
|
|
33
33
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
|
-
var
|
|
34
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
35
35
|
var import_styled = require("./styled");
|
|
36
36
|
const ListSectionHeader = ({ title = "", addon, addonLabel = "", children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.Container, { children: [
|
|
37
37
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.Header, { cols: [1, "auto"], children: [
|
|
@@ -45,14 +45,14 @@ const ListSectionHeader = ({ title = "", addon, addonLabel = "", children }) =>
|
|
|
45
45
|
children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Body, { children })
|
|
46
46
|
] });
|
|
47
47
|
const listSectionHeaderProps = {
|
|
48
|
-
children:
|
|
49
|
-
title:
|
|
50
|
-
addonLabel:
|
|
51
|
-
addon:
|
|
48
|
+
children: import_ds_props_helpers.PropTypes.element.description("Header content"),
|
|
49
|
+
title: import_ds_props_helpers.PropTypes.string.description("Header title").isRequired,
|
|
50
|
+
addonLabel: import_ds_props_helpers.PropTypes.string.description("addon label"),
|
|
51
|
+
addon: import_ds_props_helpers.PropTypes.element.description("addon")
|
|
52
52
|
};
|
|
53
53
|
ListSectionHeader.propTypes = listSectionHeaderProps;
|
|
54
54
|
ListSectionHeader.displayName = "ListSectionHeader";
|
|
55
|
-
const ListSectionHeaderWithSchema = (0,
|
|
55
|
+
const ListSectionHeaderWithSchema = (0, import_ds_props_helpers.describe)(ListSectionHeader);
|
|
56
56
|
ListSectionHeaderWithSchema.propTypes = listSectionHeaderProps;
|
|
57
57
|
var ListSectionHeader_default = ListSectionHeader;
|
|
58
58
|
//# sourceMappingURL=ListSectionHeader.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ListSectionHeader.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADQf;AAPR,
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { Container, Header, Title, Addon, Body, Separator } from './styled';\n\nconst ListSectionHeader = ({ title = '', addon, addonLabel = '', children }) => (\n <Container>\n <Header cols={[1, 'auto']}>\n <Title>\n <span>{title}</span>\n </Title>\n <Addon cols={['auto', 'auto']} gutter=\"xxxs\">\n {addonLabel && <span>{addonLabel}</span>}\n {addon && <span>{addon}</span>}\n </Addon>\n </Header>\n {children && <Separator />}\n {children && <Body>{children}</Body>}\n </Container>\n);\n\nconst listSectionHeaderProps = {\n children: PropTypes.element.description('Header content'),\n title: PropTypes.string.description('Header title').isRequired,\n addonLabel: PropTypes.string.description('addon label'),\n /**\n * Button (size=\"s\" buttonType=\"text\" + icon)\n * or Checkbox\n */\n addon: PropTypes.element.description('addon'),\n};\n\nListSectionHeader.propTypes = listSectionHeaderProps;\nListSectionHeader.displayName = 'ListSectionHeader';\nconst ListSectionHeaderWithSchema = describe(ListSectionHeader);\nListSectionHeaderWithSchema.propTypes = listSectionHeaderProps;\n\nexport { ListSectionHeader, ListSectionHeaderWithSchema };\nexport default ListSectionHeader;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADQf;AAPR,8BAAoC;AACpC,oBAAiE;AAEjE,MAAM,oBAAoB,CAAC,EAAE,QAAQ,IAAI,OAAO,aAAa,IAAI,SAAS,MACxE,6CAAC,2BACC;AAAA,+CAAC,wBAAO,MAAM,CAAC,GAAG,MAAM,GACtB;AAAA,gDAAC,uBACC,sDAAC,UAAM,iBAAM,GACf;AAAA,IACA,6CAAC,uBAAM,MAAM,CAAC,QAAQ,MAAM,GAAG,QAAO,QACnC;AAAA,oBAAc,4CAAC,UAAM,sBAAW;AAAA,MAChC,SAAS,4CAAC,UAAM,iBAAM;AAAA,OACzB;AAAA,KACF;AAAA,EACC,YAAY,4CAAC,2BAAU;AAAA,EACvB,YAAY,4CAAC,sBAAM,UAAS;AAAA,GAC/B;AAGF,MAAM,yBAAyB;AAAA,EAC7B,UAAU,kCAAU,QAAQ,YAAY,gBAAgB;AAAA,EACxD,OAAO,kCAAU,OAAO,YAAY,cAAc,EAAE;AAAA,EACpD,YAAY,kCAAU,OAAO,YAAY,aAAa;AAAA,EAKtD,OAAO,kCAAU,QAAQ,YAAY,OAAO;AAC9C;AAEA,kBAAkB,YAAY;AAC9B,kBAAkB,cAAc;AAChC,MAAM,kCAA8B,kCAAS,iBAAiB;AAC9D,4BAA4B,YAAY;AAGxC,IAAO,4BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { PropTypes, describe } from "@elliemae/ds-
|
|
3
|
+
import { PropTypes, describe } from "@elliemae/ds-props-helpers";
|
|
4
4
|
import { Container, Header, Title, Addon, Body, Separator } from "./styled";
|
|
5
5
|
const ListSectionHeader = ({ title = "", addon, addonLabel = "", children }) => /* @__PURE__ */ jsxs(Container, { children: [
|
|
6
6
|
/* @__PURE__ */ jsxs(Header, { cols: [1, "auto"], children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/ListSectionHeader.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { Container, Header, Title, Addon, Body, Separator } from './styled';\n\nconst ListSectionHeader = ({ title = '', addon, addonLabel = '', children }) => (\n <Container>\n <Header cols={[1, 'auto']}>\n <Title>\n <span>{title}</span>\n </Title>\n <Addon cols={['auto', 'auto']} gutter=\"xxxs\">\n {addonLabel && <span>{addonLabel}</span>}\n {addon && <span>{addon}</span>}\n </Addon>\n </Header>\n {children && <Separator />}\n {children && <Body>{children}</Body>}\n </Container>\n);\n\nconst listSectionHeaderProps = {\n children: PropTypes.element.description('Header content'),\n title: PropTypes.string.description('Header title').isRequired,\n addonLabel: PropTypes.string.description('addon label'),\n /**\n * Button (size=\"s\" buttonType=\"text\" + icon)\n * or Checkbox\n */\n addon: PropTypes.element.description('addon'),\n};\n\nListSectionHeader.propTypes = listSectionHeaderProps;\nListSectionHeader.displayName = 'ListSectionHeader';\nconst ListSectionHeaderWithSchema = describe(ListSectionHeader);\nListSectionHeaderWithSchema.propTypes = listSectionHeaderProps;\n\nexport { ListSectionHeader, ListSectionHeaderWithSchema };\nexport default ListSectionHeader;\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACQf,cAEF,YAFE;AAPR,SAAS,WAAW,gBAAgB;AACpC,SAAS,WAAW,QAAQ,OAAO,OAAO,MAAM,iBAAiB;AAEjE,MAAM,oBAAoB,CAAC,EAAE,QAAQ,IAAI,OAAO,aAAa,IAAI,SAAS,MACxE,qBAAC,aACC;AAAA,uBAAC,UAAO,MAAM,CAAC,GAAG,MAAM,GACtB;AAAA,wBAAC,SACC,8BAAC,UAAM,iBAAM,GACf;AAAA,IACA,qBAAC,SAAM,MAAM,CAAC,QAAQ,MAAM,GAAG,QAAO,QACnC;AAAA,oBAAc,oBAAC,UAAM,sBAAW;AAAA,MAChC,SAAS,oBAAC,UAAM,iBAAM;AAAA,OACzB;AAAA,KACF;AAAA,EACC,YAAY,oBAAC,aAAU;AAAA,EACvB,YAAY,oBAAC,QAAM,UAAS;AAAA,GAC/B;AAGF,MAAM,yBAAyB;AAAA,EAC7B,UAAU,UAAU,QAAQ,YAAY,gBAAgB;AAAA,EACxD,OAAO,UAAU,OAAO,YAAY,cAAc,EAAE;AAAA,EACpD,YAAY,UAAU,OAAO,YAAY,aAAa;AAAA,EAKtD,OAAO,UAAU,QAAQ,YAAY,OAAO;AAC9C;AAEA,kBAAkB,YAAY;AAC9B,kBAAkB,cAAc;AAChC,MAAM,8BAA8B,SAAS,iBAAiB;AAC9D,4BAA4B,YAAY;AAGxC,IAAO,4BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -6,18 +6,18 @@ declare const ListSectionHeader: {
|
|
|
6
6
|
children: any;
|
|
7
7
|
}): JSX.Element;
|
|
8
8
|
propTypes: {
|
|
9
|
-
children: import("@elliemae/ds-
|
|
10
|
-
title: import("@elliemae/ds-
|
|
11
|
-
addonLabel: import("@elliemae/ds-
|
|
9
|
+
children: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
10
|
+
title: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
11
|
+
addonLabel: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
12
12
|
/**
|
|
13
13
|
* Button (size="s" buttonType="text" + icon)
|
|
14
14
|
* or Checkbox
|
|
15
15
|
*/
|
|
16
|
-
addon: import("@elliemae/ds-
|
|
16
|
+
addon: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
17
17
|
};
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
|
-
declare const ListSectionHeaderWithSchema: import("@elliemae/ds-
|
|
20
|
+
declare const ListSectionHeaderWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<{
|
|
21
21
|
title?: string | undefined;
|
|
22
22
|
addon: any;
|
|
23
23
|
addonLabel?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-list-section-header",
|
|
3
|
-
"version": "3.16.0-next.
|
|
3
|
+
"version": "3.16.0-next.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - List Section Header",
|
|
6
6
|
"files": [
|
|
@@ -43,9 +43,10 @@
|
|
|
43
43
|
"indent": 4
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@elliemae/ds-grid": "3.16.0-next.
|
|
47
|
-
"@elliemae/ds-
|
|
48
|
-
"@elliemae/ds-
|
|
46
|
+
"@elliemae/ds-grid": "3.16.0-next.3",
|
|
47
|
+
"@elliemae/ds-props-helpers": "3.16.0-next.3",
|
|
48
|
+
"@elliemae/ds-system": "3.16.0-next.3",
|
|
49
|
+
"@elliemae/ds-utilities": "3.16.0-next.3"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"styled-components": "~5.3.6"
|
|
@@ -66,7 +67,7 @@
|
|
|
66
67
|
"eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../.eslintrc.js' src/",
|
|
67
68
|
"dts": "node ../../scripts/dts.mjs",
|
|
68
69
|
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
|
|
69
|
-
"dev:build": "pnpm --filter {.}... build
|
|
70
|
+
"dev:build": "pnpm --filter {.}... build",
|
|
70
71
|
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|
|
71
72
|
"checkDeps": "npx -yes ../ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
72
73
|
}
|