@elliemae/ds-list-section-header 3.27.0-next.1 → 3.27.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.
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +8 -18
- package/dist/cjs/ListSectionHeader.js +0 -66
- package/dist/cjs/ListSectionHeader.js.map +0 -7
- package/dist/cjs/styled.js +0 -80
- package/dist/cjs/styled.js.map +0 -7
- package/dist/esm/ListSectionHeader.js +0 -36
- package/dist/esm/ListSectionHeader.js.map +0 -7
- package/dist/esm/styled.js +0 -50
- package/dist/esm/styled.js.map +0 -7
- package/dist/types/ListSectionHeader.d.ts +0 -27
- package/dist/types/styled.d.ts +0 -7
package/dist/cjs/index.js
CHANGED
|
@@ -29,10 +29,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
30
|
var src_exports = {};
|
|
31
31
|
__export(src_exports, {
|
|
32
|
-
default: () =>
|
|
32
|
+
default: () => import_ds_legacy_list_section_header.default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(src_exports);
|
|
35
35
|
var React = __toESM(require("react"));
|
|
36
|
-
__reExport(src_exports, require("
|
|
37
|
-
var
|
|
36
|
+
__reExport(src_exports, require("@elliemae/ds-legacy-list-section-header"), module.exports);
|
|
37
|
+
var import_ds_legacy_list_section_header = __toESM(require("@elliemae/ds-legacy-list-section-header"));
|
|
38
38
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -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 '
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,
|
|
4
|
+
"sourcesContent": ["export * from '@elliemae/ds-legacy-list-section-header';\nexport { default } from '@elliemae/ds-legacy-list-section-header';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,oDAAd;AACA,2CAAwB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export * from "
|
|
3
|
-
import { default as default2 } from "
|
|
2
|
+
export * from "@elliemae/ds-legacy-list-section-header";
|
|
3
|
+
import { default as default2 } from "@elliemae/ds-legacy-list-section-header";
|
|
4
4
|
export {
|
|
5
5
|
default2 as default
|
|
6
6
|
};
|
package/dist/esm/index.js.map
CHANGED
|
@@ -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 '
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from '@elliemae/ds-legacy-list-section-header';\nexport { default } from '@elliemae/ds-legacy-list-section-header';\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AACd,SAAS,WAAAA,gBAAe;",
|
|
6
6
|
"names": ["default"]
|
|
7
7
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export { default } from '
|
|
1
|
+
export * from '@elliemae/ds-legacy-list-section-header';
|
|
2
|
+
export { default } from '@elliemae/ds-legacy-list-section-header';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-list-section-header",
|
|
3
|
-
"version": "3.27.0-next.
|
|
3
|
+
"version": "3.27.0-next.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - List Section Header",
|
|
6
6
|
"files": [
|
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
".": {
|
|
14
14
|
"import": "./dist/esm/index.js",
|
|
15
15
|
"require": "./dist/cjs/index.js"
|
|
16
|
-
},
|
|
17
|
-
"./styled": {
|
|
18
|
-
"import": "./dist/esm/styled.js",
|
|
19
|
-
"require": "./dist/cjs/styled.js"
|
|
20
|
-
},
|
|
21
|
-
"./ListSectionHeader": {
|
|
22
|
-
"import": "./dist/esm/ListSectionHeader.js",
|
|
23
|
-
"require": "./dist/cjs/ListSectionHeader.js"
|
|
24
16
|
}
|
|
25
17
|
},
|
|
26
18
|
"sideEffects": [
|
|
@@ -43,14 +35,12 @@
|
|
|
43
35
|
"indent": 4
|
|
44
36
|
},
|
|
45
37
|
"dependencies": {
|
|
46
|
-
"@elliemae/ds-
|
|
47
|
-
"@elliemae/ds-props-helpers": "3.27.0-next.1",
|
|
48
|
-
"@elliemae/ds-system": "3.27.0-next.1"
|
|
38
|
+
"@elliemae/ds-legacy-list-section-header": "1.0.1"
|
|
49
39
|
},
|
|
50
40
|
"devDependencies": {
|
|
51
41
|
"@elliemae/pui-cli": "~9.0.0-next.31",
|
|
52
42
|
"styled-components": "~5.3.9",
|
|
53
|
-
"@elliemae/ds-monorepo-devops": "3.27.0-next.
|
|
43
|
+
"@elliemae/ds-monorepo-devops": "3.27.0-next.3"
|
|
54
44
|
},
|
|
55
45
|
"peerDependencies": {
|
|
56
46
|
"react": "^17.0.2",
|
|
@@ -63,13 +53,13 @@
|
|
|
63
53
|
},
|
|
64
54
|
"scripts": {
|
|
65
55
|
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
66
|
-
"test": "
|
|
67
|
-
"lint": "
|
|
68
|
-
"eslint:fix": "
|
|
69
|
-
"dts": "
|
|
56
|
+
"test": "exit 0 | echo",
|
|
57
|
+
"lint": "exit 0 | echo",
|
|
58
|
+
"eslint:fix": "exit 0 | echo",
|
|
59
|
+
"dts": "exit 0 | echo",
|
|
70
60
|
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
71
61
|
"dev:build": "pnpm --filter {.}... build",
|
|
72
62
|
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|
|
73
|
-
"checkDeps": "
|
|
63
|
+
"checkDeps": "exit 0 | echo"
|
|
74
64
|
}
|
|
75
65
|
}
|
|
@@ -1,66 +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 ListSectionHeader_exports = {};
|
|
30
|
-
__export(ListSectionHeader_exports, {
|
|
31
|
-
ListSectionHeader: () => ListSectionHeader,
|
|
32
|
-
ListSectionHeaderWithSchema: () => ListSectionHeaderWithSchema,
|
|
33
|
-
default: () => ListSectionHeader_default
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(ListSectionHeader_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_styled = require("./styled.js");
|
|
40
|
-
const ListSectionHeader = ({ title = "", addon, addonLabel = "", children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.Container, { children: [
|
|
41
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.Header, { cols: [1, "auto"], children: [
|
|
42
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Title, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: title }) }),
|
|
43
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styled.Addon, { cols: ["auto", "auto"], gutter: "xxxs", children: [
|
|
44
|
-
addonLabel && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: addonLabel }),
|
|
45
|
-
addon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: addon })
|
|
46
|
-
] })
|
|
47
|
-
] }),
|
|
48
|
-
children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Separator, {}),
|
|
49
|
-
children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.Body, { children })
|
|
50
|
-
] });
|
|
51
|
-
const listSectionHeaderProps = {
|
|
52
|
-
children: import_ds_props_helpers.PropTypes.element.description("Header content"),
|
|
53
|
-
title: import_ds_props_helpers.PropTypes.string.description("Header title").isRequired,
|
|
54
|
-
addonLabel: import_ds_props_helpers.PropTypes.string.description("addon label"),
|
|
55
|
-
/**
|
|
56
|
-
* Button (size="s" buttonType="text" + icon)
|
|
57
|
-
* or Checkbox
|
|
58
|
-
*/
|
|
59
|
-
addon: import_ds_props_helpers.PropTypes.element.description("addon")
|
|
60
|
-
};
|
|
61
|
-
ListSectionHeader.propTypes = listSectionHeaderProps;
|
|
62
|
-
ListSectionHeader.displayName = "ListSectionHeader";
|
|
63
|
-
const ListSectionHeaderWithSchema = (0, import_ds_props_helpers.describe)(ListSectionHeader);
|
|
64
|
-
ListSectionHeaderWithSchema.propTypes = listSectionHeaderProps;
|
|
65
|
-
var ListSectionHeader_default = ListSectionHeader;
|
|
66
|
-
//# sourceMappingURL=ListSectionHeader.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/ListSectionHeader.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { Container, Header, Title, Addon, Body, Separator } from './styled.js';\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;AAAA;AAAA;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
|
-
"names": []
|
|
7
|
-
}
|
package/dist/cjs/styled.js
DELETED
|
@@ -1,80 +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 styled_exports = {};
|
|
30
|
-
__export(styled_exports, {
|
|
31
|
-
Addon: () => Addon,
|
|
32
|
-
Body: () => Body,
|
|
33
|
-
Container: () => Container,
|
|
34
|
-
Header: () => Header,
|
|
35
|
-
Separator: () => Separator,
|
|
36
|
-
Title: () => Title
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(styled_exports);
|
|
39
|
-
var React = __toESM(require("react"));
|
|
40
|
-
var import_ds_system = require("@elliemae/ds-system");
|
|
41
|
-
var import_ds_grid = require("@elliemae/ds-grid");
|
|
42
|
-
const Container = (0, import_ds_system.styled)(import_ds_grid.Grid)`
|
|
43
|
-
background: ${(props) => props.theme.colors.neutral["080"]};
|
|
44
|
-
`;
|
|
45
|
-
const Body = (0, import_ds_system.styled)(import_ds_grid.Grid)`
|
|
46
|
-
transition: height 0.2s;
|
|
47
|
-
padding-left: 24px;
|
|
48
|
-
padding-right: 24px;
|
|
49
|
-
padding-bottom: ${(props) => props.theme.space.xs};
|
|
50
|
-
padding-top: ${(props) => props.theme.space.xxs};
|
|
51
|
-
`;
|
|
52
|
-
const Header = (0, import_ds_system.styled)(import_ds_grid.Grid)`
|
|
53
|
-
padding-left: 24px;
|
|
54
|
-
padding-right: 24px;
|
|
55
|
-
min-height: 28px;
|
|
56
|
-
padding-top: ${(props) => props.theme.space.xxxs};
|
|
57
|
-
padding-bottom: ${(props) => props.theme.space.xxxs};
|
|
58
|
-
align-items: center;
|
|
59
|
-
`;
|
|
60
|
-
const Separator = (0, import_ds_system.styled)(import_ds_grid.Grid)`
|
|
61
|
-
margin-left: 24px;
|
|
62
|
-
margin-right: 24px;
|
|
63
|
-
height: 1px;
|
|
64
|
-
background: ${(props) => props.theme.colors.neutral["200"]};
|
|
65
|
-
`;
|
|
66
|
-
const Title = (0, import_ds_system.styled)(import_ds_grid.Grid)`
|
|
67
|
-
margin-right: 24px;
|
|
68
|
-
font-size: 16px;
|
|
69
|
-
font-weight: ${(props) => props.theme.fontWeights[600]};
|
|
70
|
-
align-items: center;
|
|
71
|
-
font-weight: 600;
|
|
72
|
-
`;
|
|
73
|
-
const Addon = (0, import_ds_system.styled)(import_ds_grid.Grid)`
|
|
74
|
-
font-size: 13px;
|
|
75
|
-
align-items: center;
|
|
76
|
-
.em-ds-form-element-checkbox {
|
|
77
|
-
padding-bottom: 0;
|
|
78
|
-
}
|
|
79
|
-
`;
|
|
80
|
-
//# sourceMappingURL=styled.js.map
|
package/dist/cjs/styled.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/styled.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\n\nexport const Container = styled(Grid)`\n background: ${(props) => props.theme.colors.neutral['080']};\n`;\n\nexport const Body = styled(Grid)`\n transition: height 0.2s;\n padding-left: 24px;\n padding-right: 24px;\n padding-bottom: ${(props) => props.theme.space.xs};\n padding-top: ${(props) => props.theme.space.xxs};\n`;\n\nexport const Header = styled(Grid)`\n padding-left: 24px;\n padding-right: 24px;\n min-height: 28px;\n padding-top: ${(props) => props.theme.space.xxxs};\n padding-bottom: ${(props) => props.theme.space.xxxs};\n align-items: center;\n`;\n\nexport const Separator = styled(Grid)`\n margin-left: 24px;\n margin-right: 24px;\n height: 1px;\n background: ${(props) => props.theme.colors.neutral['200']};\n`;\n\nexport const Title = styled(Grid)`\n margin-right: 24px;\n font-size: 16px;\n font-weight: ${(props) => props.theme.fontWeights[600]};\n align-items: center;\n font-weight: 600;\n`;\n\nexport const Addon = styled(Grid)`\n font-size: 13px;\n align-items: center;\n .em-ds-form-element-checkbox {\n padding-bottom: 0;\n }\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAuB;AACvB,qBAAqB;AAEd,MAAM,gBAAY,yBAAO,mBAAI;AAAA,gBACpB,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK;AAAA;AAGpD,MAAM,WAAO,yBAAO,mBAAI;AAAA;AAAA;AAAA;AAAA,oBAIX,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,iBAChC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAGvC,MAAM,aAAS,yBAAO,mBAAI;AAAA;AAAA;AAAA;AAAA,iBAIhB,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,oBAC1B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAI1C,MAAM,gBAAY,yBAAO,mBAAI;AAAA;AAAA;AAAA;AAAA,gBAIpB,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK;AAAA;AAGpD,MAAM,YAAQ,yBAAO,mBAAI;AAAA;AAAA;AAAA,iBAGf,CAAC,UAAU,MAAM,MAAM,YAAY,GAAG;AAAA;AAAA;AAAA;AAKhD,MAAM,YAAQ,yBAAO,mBAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { PropTypes, describe } from "@elliemae/ds-props-helpers";
|
|
4
|
-
import { Container, Header, Title, Addon, Body, Separator } from "./styled.js";
|
|
5
|
-
const ListSectionHeader = ({ title = "", addon, addonLabel = "", children }) => /* @__PURE__ */ jsxs(Container, { children: [
|
|
6
|
-
/* @__PURE__ */ jsxs(Header, { cols: [1, "auto"], children: [
|
|
7
|
-
/* @__PURE__ */ jsx(Title, { children: /* @__PURE__ */ jsx("span", { children: title }) }),
|
|
8
|
-
/* @__PURE__ */ jsxs(Addon, { cols: ["auto", "auto"], gutter: "xxxs", children: [
|
|
9
|
-
addonLabel && /* @__PURE__ */ jsx("span", { children: addonLabel }),
|
|
10
|
-
addon && /* @__PURE__ */ jsx("span", { children: addon })
|
|
11
|
-
] })
|
|
12
|
-
] }),
|
|
13
|
-
children && /* @__PURE__ */ jsx(Separator, {}),
|
|
14
|
-
children && /* @__PURE__ */ jsx(Body, { children })
|
|
15
|
-
] });
|
|
16
|
-
const listSectionHeaderProps = {
|
|
17
|
-
children: PropTypes.element.description("Header content"),
|
|
18
|
-
title: PropTypes.string.description("Header title").isRequired,
|
|
19
|
-
addonLabel: PropTypes.string.description("addon label"),
|
|
20
|
-
/**
|
|
21
|
-
* Button (size="s" buttonType="text" + icon)
|
|
22
|
-
* or Checkbox
|
|
23
|
-
*/
|
|
24
|
-
addon: PropTypes.element.description("addon")
|
|
25
|
-
};
|
|
26
|
-
ListSectionHeader.propTypes = listSectionHeaderProps;
|
|
27
|
-
ListSectionHeader.displayName = "ListSectionHeader";
|
|
28
|
-
const ListSectionHeaderWithSchema = describe(ListSectionHeader);
|
|
29
|
-
ListSectionHeaderWithSchema.propTypes = listSectionHeaderProps;
|
|
30
|
-
var ListSectionHeader_default = ListSectionHeader;
|
|
31
|
-
export {
|
|
32
|
-
ListSectionHeader,
|
|
33
|
-
ListSectionHeaderWithSchema,
|
|
34
|
-
ListSectionHeader_default as default
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=ListSectionHeader.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 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-props-helpers';\nimport { Container, Header, Title, Addon, Body, Separator } from './styled.js';\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
|
-
"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;AAAA;AAAA;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
|
-
"names": []
|
|
7
|
-
}
|
package/dist/esm/styled.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { styled } from "@elliemae/ds-system";
|
|
3
|
-
import { Grid } from "@elliemae/ds-grid";
|
|
4
|
-
const Container = styled(Grid)`
|
|
5
|
-
background: ${(props) => props.theme.colors.neutral["080"]};
|
|
6
|
-
`;
|
|
7
|
-
const Body = styled(Grid)`
|
|
8
|
-
transition: height 0.2s;
|
|
9
|
-
padding-left: 24px;
|
|
10
|
-
padding-right: 24px;
|
|
11
|
-
padding-bottom: ${(props) => props.theme.space.xs};
|
|
12
|
-
padding-top: ${(props) => props.theme.space.xxs};
|
|
13
|
-
`;
|
|
14
|
-
const Header = styled(Grid)`
|
|
15
|
-
padding-left: 24px;
|
|
16
|
-
padding-right: 24px;
|
|
17
|
-
min-height: 28px;
|
|
18
|
-
padding-top: ${(props) => props.theme.space.xxxs};
|
|
19
|
-
padding-bottom: ${(props) => props.theme.space.xxxs};
|
|
20
|
-
align-items: center;
|
|
21
|
-
`;
|
|
22
|
-
const Separator = styled(Grid)`
|
|
23
|
-
margin-left: 24px;
|
|
24
|
-
margin-right: 24px;
|
|
25
|
-
height: 1px;
|
|
26
|
-
background: ${(props) => props.theme.colors.neutral["200"]};
|
|
27
|
-
`;
|
|
28
|
-
const Title = styled(Grid)`
|
|
29
|
-
margin-right: 24px;
|
|
30
|
-
font-size: 16px;
|
|
31
|
-
font-weight: ${(props) => props.theme.fontWeights[600]};
|
|
32
|
-
align-items: center;
|
|
33
|
-
font-weight: 600;
|
|
34
|
-
`;
|
|
35
|
-
const Addon = styled(Grid)`
|
|
36
|
-
font-size: 13px;
|
|
37
|
-
align-items: center;
|
|
38
|
-
.em-ds-form-element-checkbox {
|
|
39
|
-
padding-bottom: 0;
|
|
40
|
-
}
|
|
41
|
-
`;
|
|
42
|
-
export {
|
|
43
|
-
Addon,
|
|
44
|
-
Body,
|
|
45
|
-
Container,
|
|
46
|
-
Header,
|
|
47
|
-
Separator,
|
|
48
|
-
Title
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=styled.js.map
|
package/dist/esm/styled.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/styled.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\n\nexport const Container = styled(Grid)`\n background: ${(props) => props.theme.colors.neutral['080']};\n`;\n\nexport const Body = styled(Grid)`\n transition: height 0.2s;\n padding-left: 24px;\n padding-right: 24px;\n padding-bottom: ${(props) => props.theme.space.xs};\n padding-top: ${(props) => props.theme.space.xxs};\n`;\n\nexport const Header = styled(Grid)`\n padding-left: 24px;\n padding-right: 24px;\n min-height: 28px;\n padding-top: ${(props) => props.theme.space.xxxs};\n padding-bottom: ${(props) => props.theme.space.xxxs};\n align-items: center;\n`;\n\nexport const Separator = styled(Grid)`\n margin-left: 24px;\n margin-right: 24px;\n height: 1px;\n background: ${(props) => props.theme.colors.neutral['200']};\n`;\n\nexport const Title = styled(Grid)`\n margin-right: 24px;\n font-size: 16px;\n font-weight: ${(props) => props.theme.fontWeights[600]};\n align-items: center;\n font-weight: 600;\n`;\n\nexport const Addon = styled(Grid)`\n font-size: 13px;\n align-items: center;\n .em-ds-form-element-checkbox {\n padding-bottom: 0;\n }\n`;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,cAAc;AACvB,SAAS,YAAY;AAEd,MAAM,YAAY,OAAO,IAAI;AAAA,gBACpB,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK;AAAA;AAGpD,MAAM,OAAO,OAAO,IAAI;AAAA;AAAA;AAAA;AAAA,oBAIX,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,iBAChC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAGvC,MAAM,SAAS,OAAO,IAAI;AAAA;AAAA;AAAA;AAAA,iBAIhB,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,oBAC1B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAI1C,MAAM,YAAY,OAAO,IAAI;AAAA;AAAA;AAAA;AAAA,gBAIpB,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK;AAAA;AAGpD,MAAM,QAAQ,OAAO,IAAI;AAAA;AAAA;AAAA,iBAGf,CAAC,UAAU,MAAM,MAAM,YAAY,GAAG;AAAA;AAAA;AAAA;AAKhD,MAAM,QAAQ,OAAO,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
declare const ListSectionHeader: {
|
|
2
|
-
({ title, addon, addonLabel, children }: {
|
|
3
|
-
title?: string | undefined;
|
|
4
|
-
addon: any;
|
|
5
|
-
addonLabel?: string | undefined;
|
|
6
|
-
children: any;
|
|
7
|
-
}): import("react/jsx-runtime.js").JSX.Element;
|
|
8
|
-
propTypes: {
|
|
9
|
-
children: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
10
|
-
title: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
11
|
-
addonLabel: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
12
|
-
/**
|
|
13
|
-
* Button (size="s" buttonType="text" + icon)
|
|
14
|
-
* or Checkbox
|
|
15
|
-
*/
|
|
16
|
-
addon: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").ReactDescT;
|
|
17
|
-
};
|
|
18
|
-
displayName: string;
|
|
19
|
-
};
|
|
20
|
-
declare const ListSectionHeaderWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<{
|
|
21
|
-
title?: string | undefined;
|
|
22
|
-
addon: any;
|
|
23
|
-
addonLabel?: string | undefined;
|
|
24
|
-
children: any;
|
|
25
|
-
}>;
|
|
26
|
-
export { ListSectionHeader, ListSectionHeaderWithSchema };
|
|
27
|
-
export default ListSectionHeader;
|
package/dist/types/styled.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|
|
3
|
-
export declare const Body: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|
|
4
|
-
export declare const Header: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|
|
5
|
-
export declare const Separator: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|
|
6
|
-
export declare const Title: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|
|
7
|
-
export declare const Addon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
|