@elliemae/ds-side-panel-header 3.22.0-next.8

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.
@@ -0,0 +1,99 @@
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 SidePanelHeader_exports = {};
30
+ __export(SidePanelHeader_exports, {
31
+ DSSidePanelHeaderWithSchema: () => DSSidePanelHeaderWithSchema,
32
+ SidePanelHeader: () => SidePanelHeader
33
+ });
34
+ module.exports = __toCommonJS(SidePanelHeader_exports);
35
+ var React = __toESM(require("react"));
36
+ var import_jsx_runtime = require("react/jsx-runtime");
37
+ var import_react = require("react");
38
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
39
+ var import_ds_system = require("@elliemae/ds-system");
40
+ var import_lodash = require("lodash");
41
+ var import_ds_icons = require("@elliemae/ds-icons");
42
+ var import_ds_grid = require("@elliemae/ds-grid");
43
+ var import_react_desc_prop_types = require("./react-desc-prop-types.js");
44
+ var import_styled = require("./styled.js");
45
+ const SidePanelHeader = (props) => {
46
+ const propsWithDefaults = (0, import_ds_props_helpers.useMemoMergePropsWithDefault)(props, import_react_desc_prop_types.defaultProps);
47
+ const getOwnerProps = (0, import_react.useCallback)(() => propsWithDefaults, [propsWithDefaults]);
48
+ const getOwnerPropsArguments = (0, import_react.useCallback)(() => ({}), []);
49
+ const { title, additionalAction, onClose = import_lodash.noop, showClose = true, closeButtonRef = void 0 } = propsWithDefaults;
50
+ const theme = (0, import_ds_system.useTheme)();
51
+ const separator = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, { height: "24px", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledSeparator, { getOwnerProps, getOwnerPropsArguments }) });
52
+ const cols = ["1fr", "auto", "auto"];
53
+ const cols2 = ["auto"];
54
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
55
+ import_styled.Wrapper,
56
+ {
57
+ cols,
58
+ height: theme.space.m,
59
+ pl: theme.space.xs,
60
+ pr: theme.space.xs,
61
+ alignItems: "center",
62
+ width: "100%",
63
+ children: [
64
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, { alignItems: "center", justifyContent: "flex-start", cols: cols2, pr: theme.space.xs, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
65
+ import_styled.StyledTitle,
66
+ {
67
+ maxWidth: "100%",
68
+ alignItems: "center",
69
+ getOwnerProps,
70
+ getOwnerPropsArguments,
71
+ children: title
72
+ }
73
+ ) }),
74
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { ml: "xxs", alignItems: "center", cols: additionalAction ? ["auto", "auto", "auto"] : ["auto"], children: [
75
+ additionalAction && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, { children: additionalAction }),
76
+ additionalAction && showClose && separator,
77
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, { children: showClose && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
78
+ import_styled.StyledCloseButton,
79
+ {
80
+ buttonType: "icon",
81
+ innerRef: closeButtonRef,
82
+ size: "m",
83
+ onClick: onClose,
84
+ "data-testid": "btn-close-slide-panel",
85
+ getOwnerProps,
86
+ getOwnerPropsArguments,
87
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.CloseSmall, {})
88
+ }
89
+ ) })
90
+ ] })
91
+ ]
92
+ }
93
+ );
94
+ };
95
+ SidePanelHeader.propTypes = import_react_desc_prop_types.propTypes;
96
+ SidePanelHeader.displayName = "SidePanelHeader";
97
+ const DSSidePanelHeaderWithSchema = (0, import_ds_props_helpers.describe)(SidePanelHeader);
98
+ DSSidePanelHeaderWithSchema.propTypes = import_react_desc_prop_types.propTypes;
99
+ //# sourceMappingURL=SidePanelHeader.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/SidePanelHeader.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import React, { useCallback } from 'react';\nimport { describe, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport { useTheme } from '@elliemae/ds-system';\nimport { noop } from 'lodash';\nimport { CloseSmall } from '@elliemae/ds-icons';\nimport { Grid } from '@elliemae/ds-grid';\nimport { type DSSidePanelHeaderT, defaultProps, propTypes } from './react-desc-prop-types.js';\n\nimport { StyledSeparator, StyledTitle, Wrapper, StyledCloseButton } from './styled.js';\nconst SidePanelHeader = (props: DSSidePanelHeaderT.Props) => {\n const propsWithDefaults = useMemoMergePropsWithDefault<DSSidePanelHeaderT.InternalProps>(props, defaultProps);\n\n const getOwnerProps = useCallback(() => propsWithDefaults, [propsWithDefaults]);\n const getOwnerPropsArguments = useCallback(() => ({}), []);\n const { title, additionalAction, onClose = noop, showClose = true, closeButtonRef = undefined } = propsWithDefaults;\n const theme = useTheme();\n const separator = (\n <Grid height=\"24px\">\n <StyledSeparator getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments} />\n </Grid>\n );\n const cols = ['1fr', 'auto', 'auto'];\n const cols2 = ['auto'];\n return (\n <Wrapper\n cols={cols}\n height={theme.space.m}\n pl={theme.space.xs}\n pr={theme.space.xs}\n alignItems=\"center\"\n width=\"100%\"\n >\n <Grid alignItems=\"center\" justifyContent=\"flex-start\" cols={cols2} pr={theme.space.xs}>\n <StyledTitle\n maxWidth=\"100%\"\n alignItems=\"center\"\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {title}\n </StyledTitle>\n </Grid>\n <Grid ml=\"xxs\" alignItems=\"center\" cols={additionalAction ? ['auto', 'auto', 'auto'] : ['auto']}>\n {additionalAction && <Grid>{additionalAction}</Grid>}\n {additionalAction && showClose && separator}\n <Grid>\n {showClose && (\n <StyledCloseButton\n buttonType=\"icon\"\n innerRef={closeButtonRef}\n size=\"m\"\n onClick={onClose}\n data-testid=\"btn-close-slide-panel\"\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n <CloseSmall />\n </StyledCloseButton>\n )}\n </Grid>\n </Grid>\n </Wrapper>\n );\n};\n\nSidePanelHeader.propTypes = propTypes;\nSidePanelHeader.displayName = 'SidePanelHeader';\nconst DSSidePanelHeaderWithSchema = describe(SidePanelHeader);\n\nDSSidePanelHeaderWithSchema.propTypes = propTypes;\n\nexport { SidePanelHeader, DSSidePanelHeaderWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADkBjB;AAlBN,mBAAmC;AACnC,8BAAuD;AACvD,uBAAyB;AACzB,oBAAqB;AACrB,sBAA2B;AAC3B,qBAAqB;AACrB,mCAAiE;AAEjE,oBAAyE;AACzE,MAAM,kBAAkB,CAAC,UAAoC;AAC3D,QAAM,wBAAoB,sDAA+D,OAAO,yCAAY;AAE5G,QAAM,oBAAgB,0BAAY,MAAM,mBAAmB,CAAC,iBAAiB,CAAC;AAC9E,QAAM,6BAAyB,0BAAY,OAAO,CAAC,IAAI,CAAC,CAAC;AACzD,QAAM,EAAE,OAAO,kBAAkB,UAAU,oBAAM,YAAY,MAAM,iBAAiB,OAAU,IAAI;AAClG,QAAM,YAAQ,2BAAS;AACvB,QAAM,YACJ,4CAAC,uBAAK,QAAO,QACX,sDAAC,iCAAgB,eAA8B,wBAAgD,GACjG;AAEF,QAAM,OAAO,CAAC,OAAO,QAAQ,MAAM;AACnC,QAAM,QAAQ,CAAC,MAAM;AACrB,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,QAAQ,MAAM,MAAM;AAAA,MACpB,IAAI,MAAM,MAAM;AAAA,MAChB,IAAI,MAAM,MAAM;AAAA,MAChB,YAAW;AAAA,MACX,OAAM;AAAA,MAEN;AAAA,oDAAC,uBAAK,YAAW,UAAS,gBAAe,cAAa,MAAM,OAAO,IAAI,MAAM,MAAM,IACjF;AAAA,UAAC;AAAA;AAAA,YACC,UAAS;AAAA,YACT,YAAW;AAAA,YACX;AAAA,YACA;AAAA,YAEC;AAAA;AAAA,QACH,GACF;AAAA,QACA,6CAAC,uBAAK,IAAG,OAAM,YAAW,UAAS,MAAM,mBAAmB,CAAC,QAAQ,QAAQ,MAAM,IAAI,CAAC,MAAM,GAC3F;AAAA,8BAAoB,4CAAC,uBAAM,4BAAiB;AAAA,UAC5C,oBAAoB,aAAa;AAAA,UAClC,4CAAC,uBACE,uBACC;AAAA,YAAC;AAAA;AAAA,cACC,YAAW;AAAA,cACX,UAAU;AAAA,cACV,MAAK;AAAA,cACL,SAAS;AAAA,cACT,eAAY;AAAA,cACZ;AAAA,cACA;AAAA,cAEA,sDAAC,8BAAW;AAAA;AAAA,UACd,GAEJ;AAAA,WACF;AAAA;AAAA;AAAA,EACF;AAEJ;AAEA,gBAAgB,YAAY;AAC5B,gBAAgB,cAAc;AAC9B,MAAM,kCAA8B,kCAAS,eAAe;AAE5D,4BAA4B,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,48 @@
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 SidePanelHeaderDefinitions_exports = {};
30
+ __export(SidePanelHeaderDefinitions_exports, {
31
+ DSSidePanelHeaderDataTestIds: () => DSSidePanelHeaderDataTestIds,
32
+ DSSidePanelHeaderName: () => DSSidePanelHeaderName,
33
+ DSSidePanelHeaderSlots: () => DSSidePanelHeaderSlots
34
+ });
35
+ module.exports = __toCommonJS(SidePanelHeaderDefinitions_exports);
36
+ var React = __toESM(require("react"));
37
+ var import_ds_system = require("@elliemae/ds-system");
38
+ const DSSidePanelHeaderName = "DSSidePanelHeader";
39
+ const DSSidePanelHeaderSlots = {
40
+ CLOSE_BUTTON: "close-button",
41
+ TITLE: "title",
42
+ SEPARATOR: "separator"
43
+ };
44
+ const DSSidePanelHeaderDataTestIds = {
45
+ ...(0, import_ds_system.slotObjectToDataTestIds)(DSSidePanelHeaderName, DSSidePanelHeaderSlots),
46
+ CLOSE_BUTTON: "btn-close-slide-panel"
47
+ };
48
+ //# sourceMappingURL=SidePanelHeaderDefinitions.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/SidePanelHeaderDefinitions.ts", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSSidePanelHeaderName = 'DSSidePanelHeader' as const;\nexport const DSSidePanelHeaderSlots = {\n CLOSE_BUTTON: 'close-button',\n TITLE: 'title',\n SEPARATOR: 'separator',\n};\n\nexport const DSSidePanelHeaderDataTestIds = {\n ...slotObjectToDataTestIds(DSSidePanelHeaderName, DSSidePanelHeaderSlots),\n CLOSE_BUTTON: 'btn-close-slide-panel',\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AAEjC,MAAM,wBAAwB;AAC9B,MAAM,yBAAyB;AAAA,EACpC,cAAc;AAAA,EACd,OAAO;AAAA,EACP,WAAW;AACb;AAEO,MAAM,+BAA+B;AAAA,EAC1C,OAAG,0CAAwB,uBAAuB,sBAAsB;AAAA,EACxE,cAAc;AAChB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,32 @@
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 __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from))
11
+ if (!__hasOwnProp.call(to, key) && key !== except)
12
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
18
+ // If the importer is in node compatibility mode or this is not an ESM
19
+ // file that has been converted to a CommonJS file using a Babel-
20
+ // compatible transform (i.e. "__esModule" has not been set), then set
21
+ // "default" to the CommonJS "module.exports" for node compatibility.
22
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
23
+ mod
24
+ ));
25
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
26
+ var src_exports = {};
27
+ module.exports = __toCommonJS(src_exports);
28
+ var React = __toESM(require("react"));
29
+ __reExport(src_exports, require("./SidePanelHeader.js"), module.exports);
30
+ __reExport(src_exports, require("./react-desc-prop-types.js"), module.exports);
31
+ __reExport(src_exports, require("./SidePanelHeaderDefinitions.js"), module.exports);
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export * from './SidePanelHeader.js';\nexport * from './react-desc-prop-types.js';\nexport * from './SidePanelHeaderDefinitions.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,iCAAd;AACA,wBAAc,uCADd;AAEA,wBAAc,4CAFd;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "commonjs",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }
@@ -0,0 +1,54 @@
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 react_desc_prop_types_exports = {};
30
+ __export(react_desc_prop_types_exports, {
31
+ defaultProps: () => defaultProps,
32
+ propTypes: () => propTypes
33
+ });
34
+ module.exports = __toCommonJS(react_desc_prop_types_exports);
35
+ var React = __toESM(require("react"));
36
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
37
+ const defaultProps = {
38
+ onClose: () => {
39
+ },
40
+ showClose: true
41
+ };
42
+ const propTypes = {
43
+ /** Page title */
44
+ title: import_ds_props_helpers.PropTypes.string.description("Page title"),
45
+ /** Action button */
46
+ additionalAction: import_ds_props_helpers.PropTypes.element.description("Action button"),
47
+ /** Called when the slide collapse */
48
+ onClose: import_ds_props_helpers.PropTypes.func.description("Called when the slide collapse").defaultValue(defaultProps.onClose),
49
+ /** Show/Hide close button */
50
+ showClose: import_ds_props_helpers.PropTypes.bool.description("Show/Hide close button").defaultValue(defaultProps.showClose),
51
+ /** Ref for close button */
52
+ closeButtonRef: import_ds_props_helpers.PropTypes.object.description("Ref for close button")
53
+ };
54
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/react-desc-prop-types.ts", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import type { WeakValidationMap } from 'react';\nimport type React from 'react';\nimport type {} from '@elliemae/ds-utilities';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes } from '@elliemae/ds-props-helpers';\n\nexport declare namespace DSSidePanelHeaderT {\n export interface DefaultProps {\n onClose: () => void;\n showClose: boolean;\n }\n\n export interface OptionalProps {\n title?: string;\n additionalAction?: React.ReactNode;\n closeButtonRef?: React.RefObject<HTMLButtonElement>;\n }\n\n export interface Props\n extends Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps>,\n XstyledProps {}\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps>,\n XstyledProps {}\n}\n\nexport const defaultProps: DSSidePanelHeaderT.DefaultProps = {\n onClose: () => {},\n showClose: true,\n};\n\nexport const propTypes = {\n /** Page title */\n title: PropTypes.string.description('Page title'),\n /** Action button */\n additionalAction: PropTypes.element.description('Action button'),\n /** Called when the slide collapse */\n onClose: PropTypes.func.description('Called when the slide collapse').defaultValue(defaultProps.onClose),\n /** Show/Hide close button */\n showClose: PropTypes.bool.description('Show/Hide close button').defaultValue(defaultProps.showClose),\n /** Ref for close button */\n closeButtonRef: PropTypes.object.description('Ref for close button'),\n} as unknown as WeakValidationMap<DSSidePanelHeaderT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADIvB,8BAA0B;AA0BnB,MAAM,eAAgD;AAAA,EAC3D,SAAS,MAAM;AAAA,EAAC;AAAA,EAChB,WAAW;AACb;AAEO,MAAM,YAAY;AAAA;AAAA,EAEvB,OAAO,kCAAU,OAAO,YAAY,YAAY;AAAA;AAAA,EAEhD,kBAAkB,kCAAU,QAAQ,YAAY,eAAe;AAAA;AAAA,EAE/D,SAAS,kCAAU,KAAK,YAAY,gCAAgC,EAAE,aAAa,aAAa,OAAO;AAAA;AAAA,EAEvG,WAAW,kCAAU,KAAK,YAAY,wBAAwB,EAAE,aAAa,aAAa,SAAS;AAAA;AAAA,EAEnG,gBAAgB,kCAAU,OAAO,YAAY,sBAAsB;AACrE;",
6
+ "names": []
7
+ }
@@ -0,0 +1,64 @@
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
+ StyledCloseButton: () => StyledCloseButton,
32
+ StyledSeparator: () => StyledSeparator,
33
+ StyledTitle: () => StyledTitle,
34
+ Wrapper: () => Wrapper
35
+ });
36
+ module.exports = __toCommonJS(styled_exports);
37
+ var React = __toESM(require("react"));
38
+ var import_ds_system = require("@elliemae/ds-system");
39
+ var import_ds_button_v2 = require("@elliemae/ds-button-v2");
40
+ var import_ds_grid = require("@elliemae/ds-grid");
41
+ var import_SidePanelHeaderDefinitions = require("./SidePanelHeaderDefinitions.js");
42
+ const StyledTitle = (0, import_ds_system.styled)(import_ds_grid.Grid, {
43
+ name: import_SidePanelHeaderDefinitions.DSSidePanelHeaderName,
44
+ slot: import_SidePanelHeaderDefinitions.DSSidePanelHeaderSlots.TITLE
45
+ })`
46
+ font-size: 18px;
47
+ font-weight: ${(props) => props.theme.fontWeights.regular};
48
+ color: ${(props) => props.theme.colors.neutral["700"]};
49
+ ${(0, import_ds_system.truncate)()}
50
+ `;
51
+ const Wrapper = (0, import_ds_system.styled)(import_ds_grid.Grid)`
52
+ border-bottom: ${(props) => (0, import_ds_system.border)(props.theme.colors.neutral["300"])};
53
+ `;
54
+ const StyledCloseButton = (0, import_ds_system.styled)(import_ds_button_v2.DSButtonV2, {
55
+ name: import_SidePanelHeaderDefinitions.DSSidePanelHeaderName,
56
+ slot: import_SidePanelHeaderDefinitions.DSSidePanelHeaderSlots.CLOSE_BUTTON
57
+ })``;
58
+ const StyledSeparator = import_ds_system.styled.div`
59
+ width: 0;
60
+ height: 100%;
61
+ margin: 0 ${(props) => props.theme.space.xxs};
62
+ border-left: ${(props) => `${props.theme.colors.neutral[300]} 1px solid`};
63
+ `;
64
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/styled.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { styled, border, truncate } from '@elliemae/ds-system';\nimport { DSButtonV2 } from '@elliemae/ds-button-v2';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSSidePanelHeaderName, DSSidePanelHeaderSlots } from './SidePanelHeaderDefinitions.js';\nexport const StyledTitle = styled(Grid, {\n name: DSSidePanelHeaderName,\n slot: DSSidePanelHeaderSlots.TITLE,\n})`\n font-size: 18px;\n font-weight: ${(props) => props.theme.fontWeights.regular};\n color: ${(props) => props.theme.colors.neutral['700']};\n ${truncate()}\n`;\n\nexport const Wrapper = styled(Grid)`\n border-bottom: ${(props) => border(props.theme.colors.neutral['300'])};\n`;\n\nexport const StyledCloseButton = styled(DSButtonV2, {\n name: DSSidePanelHeaderName,\n slot: DSSidePanelHeaderSlots.CLOSE_BUTTON,\n})``;\n\nexport const StyledSeparator = styled.div`\n width: 0;\n height: 100%;\n margin: 0 ${(props) => props.theme.space.xxs};\n border-left: ${(props) => `${props.theme.colors.neutral[300]} 1px solid`};\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAyC;AACzC,0BAA2B;AAC3B,qBAAqB;AACrB,wCAA8D;AACvD,MAAM,kBAAc,yBAAO,qBAAM;AAAA,EACtC,MAAM;AAAA,EACN,MAAM,yDAAuB;AAC/B,CAAC;AAAA;AAAA,iBAEgB,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA,WACzC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK;AAAA,QAClD,2BAAS;AAAA;AAGN,MAAM,cAAU,yBAAO,mBAAI;AAAA,mBACf,CAAC,cAAU,yBAAO,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA;AAG/D,MAAM,wBAAoB,yBAAO,gCAAY;AAAA,EAClD,MAAM;AAAA,EACN,MAAM,yDAAuB;AAC/B,CAAC;AAEM,MAAM,kBAAkB,wBAAO;AAAA;AAAA;AAAA,cAGxB,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,iBAC1B,CAAC,UAAU,GAAG,MAAM,MAAM,OAAO,QAAQ,GAAG;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,69 @@
1
+ import * as React from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useCallback } from "react";
4
+ import { describe, useMemoMergePropsWithDefault } from "@elliemae/ds-props-helpers";
5
+ import { useTheme } from "@elliemae/ds-system";
6
+ import { noop } from "lodash";
7
+ import { CloseSmall } from "@elliemae/ds-icons";
8
+ import { Grid } from "@elliemae/ds-grid";
9
+ import { defaultProps, propTypes } from "./react-desc-prop-types.js";
10
+ import { StyledSeparator, StyledTitle, Wrapper, StyledCloseButton } from "./styled.js";
11
+ const SidePanelHeader = (props) => {
12
+ const propsWithDefaults = useMemoMergePropsWithDefault(props, defaultProps);
13
+ const getOwnerProps = useCallback(() => propsWithDefaults, [propsWithDefaults]);
14
+ const getOwnerPropsArguments = useCallback(() => ({}), []);
15
+ const { title, additionalAction, onClose = noop, showClose = true, closeButtonRef = void 0 } = propsWithDefaults;
16
+ const theme = useTheme();
17
+ const separator = /* @__PURE__ */ jsx(Grid, { height: "24px", children: /* @__PURE__ */ jsx(StyledSeparator, { getOwnerProps, getOwnerPropsArguments }) });
18
+ const cols = ["1fr", "auto", "auto"];
19
+ const cols2 = ["auto"];
20
+ return /* @__PURE__ */ jsxs(
21
+ Wrapper,
22
+ {
23
+ cols,
24
+ height: theme.space.m,
25
+ pl: theme.space.xs,
26
+ pr: theme.space.xs,
27
+ alignItems: "center",
28
+ width: "100%",
29
+ children: [
30
+ /* @__PURE__ */ jsx(Grid, { alignItems: "center", justifyContent: "flex-start", cols: cols2, pr: theme.space.xs, children: /* @__PURE__ */ jsx(
31
+ StyledTitle,
32
+ {
33
+ maxWidth: "100%",
34
+ alignItems: "center",
35
+ getOwnerProps,
36
+ getOwnerPropsArguments,
37
+ children: title
38
+ }
39
+ ) }),
40
+ /* @__PURE__ */ jsxs(Grid, { ml: "xxs", alignItems: "center", cols: additionalAction ? ["auto", "auto", "auto"] : ["auto"], children: [
41
+ additionalAction && /* @__PURE__ */ jsx(Grid, { children: additionalAction }),
42
+ additionalAction && showClose && separator,
43
+ /* @__PURE__ */ jsx(Grid, { children: showClose && /* @__PURE__ */ jsx(
44
+ StyledCloseButton,
45
+ {
46
+ buttonType: "icon",
47
+ innerRef: closeButtonRef,
48
+ size: "m",
49
+ onClick: onClose,
50
+ "data-testid": "btn-close-slide-panel",
51
+ getOwnerProps,
52
+ getOwnerPropsArguments,
53
+ children: /* @__PURE__ */ jsx(CloseSmall, {})
54
+ }
55
+ ) })
56
+ ] })
57
+ ]
58
+ }
59
+ );
60
+ };
61
+ SidePanelHeader.propTypes = propTypes;
62
+ SidePanelHeader.displayName = "SidePanelHeader";
63
+ const DSSidePanelHeaderWithSchema = describe(SidePanelHeader);
64
+ DSSidePanelHeaderWithSchema.propTypes = propTypes;
65
+ export {
66
+ DSSidePanelHeaderWithSchema,
67
+ SidePanelHeader
68
+ };
69
+ //# sourceMappingURL=SidePanelHeader.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/SidePanelHeader.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useCallback } from 'react';\nimport { describe, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport { useTheme } from '@elliemae/ds-system';\nimport { noop } from 'lodash';\nimport { CloseSmall } from '@elliemae/ds-icons';\nimport { Grid } from '@elliemae/ds-grid';\nimport { type DSSidePanelHeaderT, defaultProps, propTypes } from './react-desc-prop-types.js';\n\nimport { StyledSeparator, StyledTitle, Wrapper, StyledCloseButton } from './styled.js';\nconst SidePanelHeader = (props: DSSidePanelHeaderT.Props) => {\n const propsWithDefaults = useMemoMergePropsWithDefault<DSSidePanelHeaderT.InternalProps>(props, defaultProps);\n\n const getOwnerProps = useCallback(() => propsWithDefaults, [propsWithDefaults]);\n const getOwnerPropsArguments = useCallback(() => ({}), []);\n const { title, additionalAction, onClose = noop, showClose = true, closeButtonRef = undefined } = propsWithDefaults;\n const theme = useTheme();\n const separator = (\n <Grid height=\"24px\">\n <StyledSeparator getOwnerProps={getOwnerProps} getOwnerPropsArguments={getOwnerPropsArguments} />\n </Grid>\n );\n const cols = ['1fr', 'auto', 'auto'];\n const cols2 = ['auto'];\n return (\n <Wrapper\n cols={cols}\n height={theme.space.m}\n pl={theme.space.xs}\n pr={theme.space.xs}\n alignItems=\"center\"\n width=\"100%\"\n >\n <Grid alignItems=\"center\" justifyContent=\"flex-start\" cols={cols2} pr={theme.space.xs}>\n <StyledTitle\n maxWidth=\"100%\"\n alignItems=\"center\"\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {title}\n </StyledTitle>\n </Grid>\n <Grid ml=\"xxs\" alignItems=\"center\" cols={additionalAction ? ['auto', 'auto', 'auto'] : ['auto']}>\n {additionalAction && <Grid>{additionalAction}</Grid>}\n {additionalAction && showClose && separator}\n <Grid>\n {showClose && (\n <StyledCloseButton\n buttonType=\"icon\"\n innerRef={closeButtonRef}\n size=\"m\"\n onClick={onClose}\n data-testid=\"btn-close-slide-panel\"\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n <CloseSmall />\n </StyledCloseButton>\n )}\n </Grid>\n </Grid>\n </Wrapper>\n );\n};\n\nSidePanelHeader.propTypes = propTypes;\nSidePanelHeader.displayName = 'SidePanelHeader';\nconst DSSidePanelHeaderWithSchema = describe(SidePanelHeader);\n\nDSSidePanelHeaderWithSchema.propTypes = propTypes;\n\nexport { SidePanelHeader, DSSidePanelHeaderWithSchema };\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACkBjB,cAwBA,YAxBA;AAlBN,SAAgB,mBAAmB;AACnC,SAAS,UAAU,oCAAoC;AACvD,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAkC,cAAc,iBAAiB;AAEjE,SAAS,iBAAiB,aAAa,SAAS,yBAAyB;AACzE,MAAM,kBAAkB,CAAC,UAAoC;AAC3D,QAAM,oBAAoB,6BAA+D,OAAO,YAAY;AAE5G,QAAM,gBAAgB,YAAY,MAAM,mBAAmB,CAAC,iBAAiB,CAAC;AAC9E,QAAM,yBAAyB,YAAY,OAAO,CAAC,IAAI,CAAC,CAAC;AACzD,QAAM,EAAE,OAAO,kBAAkB,UAAU,MAAM,YAAY,MAAM,iBAAiB,OAAU,IAAI;AAClG,QAAM,QAAQ,SAAS;AACvB,QAAM,YACJ,oBAAC,QAAK,QAAO,QACX,8BAAC,mBAAgB,eAA8B,wBAAgD,GACjG;AAEF,QAAM,OAAO,CAAC,OAAO,QAAQ,MAAM;AACnC,QAAM,QAAQ,CAAC,MAAM;AACrB,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,QAAQ,MAAM,MAAM;AAAA,MACpB,IAAI,MAAM,MAAM;AAAA,MAChB,IAAI,MAAM,MAAM;AAAA,MAChB,YAAW;AAAA,MACX,OAAM;AAAA,MAEN;AAAA,4BAAC,QAAK,YAAW,UAAS,gBAAe,cAAa,MAAM,OAAO,IAAI,MAAM,MAAM,IACjF;AAAA,UAAC;AAAA;AAAA,YACC,UAAS;AAAA,YACT,YAAW;AAAA,YACX;AAAA,YACA;AAAA,YAEC;AAAA;AAAA,QACH,GACF;AAAA,QACA,qBAAC,QAAK,IAAG,OAAM,YAAW,UAAS,MAAM,mBAAmB,CAAC,QAAQ,QAAQ,MAAM,IAAI,CAAC,MAAM,GAC3F;AAAA,8BAAoB,oBAAC,QAAM,4BAAiB;AAAA,UAC5C,oBAAoB,aAAa;AAAA,UAClC,oBAAC,QACE,uBACC;AAAA,YAAC;AAAA;AAAA,cACC,YAAW;AAAA,cACX,UAAU;AAAA,cACV,MAAK;AAAA,cACL,SAAS;AAAA,cACT,eAAY;AAAA,cACZ;AAAA,cACA;AAAA,cAEA,8BAAC,cAAW;AAAA;AAAA,UACd,GAEJ;AAAA,WACF;AAAA;AAAA;AAAA,EACF;AAEJ;AAEA,gBAAgB,YAAY;AAC5B,gBAAgB,cAAc;AAC9B,MAAM,8BAA8B,SAAS,eAAe;AAE5D,4BAA4B,YAAY;",
6
+ "names": []
7
+ }
@@ -0,0 +1,18 @@
1
+ import * as React from "react";
2
+ import { slotObjectToDataTestIds } from "@elliemae/ds-system";
3
+ const DSSidePanelHeaderName = "DSSidePanelHeader";
4
+ const DSSidePanelHeaderSlots = {
5
+ CLOSE_BUTTON: "close-button",
6
+ TITLE: "title",
7
+ SEPARATOR: "separator"
8
+ };
9
+ const DSSidePanelHeaderDataTestIds = {
10
+ ...slotObjectToDataTestIds(DSSidePanelHeaderName, DSSidePanelHeaderSlots),
11
+ CLOSE_BUTTON: "btn-close-slide-panel"
12
+ };
13
+ export {
14
+ DSSidePanelHeaderDataTestIds,
15
+ DSSidePanelHeaderName,
16
+ DSSidePanelHeaderSlots
17
+ };
18
+ //# sourceMappingURL=SidePanelHeaderDefinitions.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/SidePanelHeaderDefinitions.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSSidePanelHeaderName = 'DSSidePanelHeader' as const;\nexport const DSSidePanelHeaderSlots = {\n CLOSE_BUTTON: 'close-button',\n TITLE: 'title',\n SEPARATOR: 'separator',\n};\n\nexport const DSSidePanelHeaderDataTestIds = {\n ...slotObjectToDataTestIds(DSSidePanelHeaderName, DSSidePanelHeaderSlots),\n CLOSE_BUTTON: 'btn-close-slide-panel',\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AAEjC,MAAM,wBAAwB;AAC9B,MAAM,yBAAyB;AAAA,EACpC,cAAc;AAAA,EACd,OAAO;AAAA,EACP,WAAW;AACb;AAEO,MAAM,+BAA+B;AAAA,EAC1C,GAAG,wBAAwB,uBAAuB,sBAAsB;AAAA,EACxE,cAAc;AAChB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ export * from "./SidePanelHeader.js";
3
+ export * from "./react-desc-prop-types.js";
4
+ export * from "./SidePanelHeaderDefinitions.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './SidePanelHeader.js';\nexport * from './react-desc-prop-types.js';\nexport * from './SidePanelHeaderDefinitions.js';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AACd,cAAc;AACd,cAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }
@@ -0,0 +1,24 @@
1
+ import * as React from "react";
2
+ import { PropTypes } from "@elliemae/ds-props-helpers";
3
+ const defaultProps = {
4
+ onClose: () => {
5
+ },
6
+ showClose: true
7
+ };
8
+ const propTypes = {
9
+ /** Page title */
10
+ title: PropTypes.string.description("Page title"),
11
+ /** Action button */
12
+ additionalAction: PropTypes.element.description("Action button"),
13
+ /** Called when the slide collapse */
14
+ onClose: PropTypes.func.description("Called when the slide collapse").defaultValue(defaultProps.onClose),
15
+ /** Show/Hide close button */
16
+ showClose: PropTypes.bool.description("Show/Hide close button").defaultValue(defaultProps.showClose),
17
+ /** Ref for close button */
18
+ closeButtonRef: PropTypes.object.description("Ref for close button")
19
+ };
20
+ export {
21
+ defaultProps,
22
+ propTypes
23
+ };
24
+ //# sourceMappingURL=react-desc-prop-types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { WeakValidationMap } from 'react';\nimport type React from 'react';\nimport type {} from '@elliemae/ds-utilities';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';\nimport { PropTypes } from '@elliemae/ds-props-helpers';\n\nexport declare namespace DSSidePanelHeaderT {\n export interface DefaultProps {\n onClose: () => void;\n showClose: boolean;\n }\n\n export interface OptionalProps {\n title?: string;\n additionalAction?: React.ReactNode;\n closeButtonRef?: React.RefObject<HTMLButtonElement>;\n }\n\n export interface Props\n extends Partial<DefaultProps>,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps>,\n XstyledProps {}\n export interface InternalProps\n extends DefaultProps,\n OptionalProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps>,\n XstyledProps {}\n}\n\nexport const defaultProps: DSSidePanelHeaderT.DefaultProps = {\n onClose: () => {},\n showClose: true,\n};\n\nexport const propTypes = {\n /** Page title */\n title: PropTypes.string.description('Page title'),\n /** Action button */\n additionalAction: PropTypes.element.description('Action button'),\n /** Called when the slide collapse */\n onClose: PropTypes.func.description('Called when the slide collapse').defaultValue(defaultProps.onClose),\n /** Show/Hide close button */\n showClose: PropTypes.bool.description('Show/Hide close button').defaultValue(defaultProps.showClose),\n /** Ref for close button */\n closeButtonRef: PropTypes.object.description('Ref for close button'),\n} as unknown as WeakValidationMap<DSSidePanelHeaderT.Props>;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACIvB,SAAS,iBAAiB;AA0BnB,MAAM,eAAgD;AAAA,EAC3D,SAAS,MAAM;AAAA,EAAC;AAAA,EAChB,WAAW;AACb;AAEO,MAAM,YAAY;AAAA;AAAA,EAEvB,OAAO,UAAU,OAAO,YAAY,YAAY;AAAA;AAAA,EAEhD,kBAAkB,UAAU,QAAQ,YAAY,eAAe;AAAA;AAAA,EAE/D,SAAS,UAAU,KAAK,YAAY,gCAAgC,EAAE,aAAa,aAAa,OAAO;AAAA;AAAA,EAEvG,WAAW,UAAU,KAAK,YAAY,wBAAwB,EAAE,aAAa,aAAa,SAAS;AAAA;AAAA,EAEnG,gBAAgB,UAAU,OAAO,YAAY,sBAAsB;AACrE;",
6
+ "names": []
7
+ }
@@ -0,0 +1,34 @@
1
+ import * as React from "react";
2
+ import { styled, border, truncate } from "@elliemae/ds-system";
3
+ import { DSButtonV2 } from "@elliemae/ds-button-v2";
4
+ import { Grid } from "@elliemae/ds-grid";
5
+ import { DSSidePanelHeaderName, DSSidePanelHeaderSlots } from "./SidePanelHeaderDefinitions.js";
6
+ const StyledTitle = styled(Grid, {
7
+ name: DSSidePanelHeaderName,
8
+ slot: DSSidePanelHeaderSlots.TITLE
9
+ })`
10
+ font-size: 18px;
11
+ font-weight: ${(props) => props.theme.fontWeights.regular};
12
+ color: ${(props) => props.theme.colors.neutral["700"]};
13
+ ${truncate()}
14
+ `;
15
+ const Wrapper = styled(Grid)`
16
+ border-bottom: ${(props) => border(props.theme.colors.neutral["300"])};
17
+ `;
18
+ const StyledCloseButton = styled(DSButtonV2, {
19
+ name: DSSidePanelHeaderName,
20
+ slot: DSSidePanelHeaderSlots.CLOSE_BUTTON
21
+ })``;
22
+ const StyledSeparator = styled.div`
23
+ width: 0;
24
+ height: 100%;
25
+ margin: 0 ${(props) => props.theme.space.xxs};
26
+ border-left: ${(props) => `${props.theme.colors.neutral[300]} 1px solid`};
27
+ `;
28
+ export {
29
+ StyledCloseButton,
30
+ StyledSeparator,
31
+ StyledTitle,
32
+ Wrapper
33
+ };
34
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1,7 @@
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, border, truncate } from '@elliemae/ds-system';\nimport { DSButtonV2 } from '@elliemae/ds-button-v2';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSSidePanelHeaderName, DSSidePanelHeaderSlots } from './SidePanelHeaderDefinitions.js';\nexport const StyledTitle = styled(Grid, {\n name: DSSidePanelHeaderName,\n slot: DSSidePanelHeaderSlots.TITLE,\n})`\n font-size: 18px;\n font-weight: ${(props) => props.theme.fontWeights.regular};\n color: ${(props) => props.theme.colors.neutral['700']};\n ${truncate()}\n`;\n\nexport const Wrapper = styled(Grid)`\n border-bottom: ${(props) => border(props.theme.colors.neutral['300'])};\n`;\n\nexport const StyledCloseButton = styled(DSButtonV2, {\n name: DSSidePanelHeaderName,\n slot: DSSidePanelHeaderSlots.CLOSE_BUTTON,\n})``;\n\nexport const StyledSeparator = styled.div`\n width: 0;\n height: 100%;\n margin: 0 ${(props) => props.theme.space.xxs};\n border-left: ${(props) => `${props.theme.colors.neutral[300]} 1px solid`};\n`;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,QAAQ,QAAQ,gBAAgB;AACzC,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,uBAAuB,8BAA8B;AACvD,MAAM,cAAc,OAAO,MAAM;AAAA,EACtC,MAAM;AAAA,EACN,MAAM,uBAAuB;AAC/B,CAAC;AAAA;AAAA,iBAEgB,CAAC,UAAU,MAAM,MAAM,YAAY;AAAA,WACzC,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ,KAAK;AAAA,IAClD,SAAS;AAAA;AAGN,MAAM,UAAU,OAAO,IAAI;AAAA,mBACf,CAAC,UAAU,OAAO,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA;AAG/D,MAAM,oBAAoB,OAAO,YAAY;AAAA,EAClD,MAAM;AAAA,EACN,MAAM,uBAAuB;AAC/B,CAAC;AAEM,MAAM,kBAAkB,OAAO;AAAA;AAAA;AAAA,cAGxB,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,iBAC1B,CAAC,UAAU,GAAG,MAAM,MAAM,OAAO,QAAQ,GAAG;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { type DSSidePanelHeaderT } from './react-desc-prop-types.js';
3
+ declare const SidePanelHeader: {
4
+ (props: DSSidePanelHeaderT.Props): import("react/jsx-runtime.js").JSX.Element;
5
+ propTypes: React.WeakValidationMap<DSSidePanelHeaderT.Props>;
6
+ displayName: string;
7
+ };
8
+ declare const DSSidePanelHeaderWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSSidePanelHeaderT.Props>;
9
+ export { SidePanelHeader, DSSidePanelHeaderWithSchema };
@@ -0,0 +1,9 @@
1
+ export declare const DSSidePanelHeaderName: "DSSidePanelHeader";
2
+ export declare const DSSidePanelHeaderSlots: {
3
+ CLOSE_BUTTON: string;
4
+ TITLE: string;
5
+ SEPARATOR: string;
6
+ };
7
+ export declare const DSSidePanelHeaderDataTestIds: {
8
+ CLOSE_BUTTON: string;
9
+ };
@@ -0,0 +1,3 @@
1
+ export * from './SidePanelHeader.js';
2
+ export * from './react-desc-prop-types.js';
3
+ export * from './SidePanelHeaderDefinitions.js';
@@ -0,0 +1,20 @@
1
+ import type { WeakValidationMap } from 'react';
2
+ import type React from 'react';
3
+ import type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';
4
+ export declare namespace DSSidePanelHeaderT {
5
+ interface DefaultProps {
6
+ onClose: () => void;
7
+ showClose: boolean;
8
+ }
9
+ interface OptionalProps {
10
+ title?: string;
11
+ additionalAction?: React.ReactNode;
12
+ closeButtonRef?: React.RefObject<HTMLButtonElement>;
13
+ }
14
+ interface Props extends Partial<DefaultProps>, OptionalProps, Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps>, XstyledProps {
15
+ }
16
+ interface InternalProps extends DefaultProps, OptionalProps, Omit<GlobalAttributesT<HTMLButtonElement>, keyof DefaultProps | keyof OptionalProps>, XstyledProps {
17
+ }
18
+ }
19
+ export declare const defaultProps: DSSidePanelHeaderT.DefaultProps;
20
+ export declare const propTypes: WeakValidationMap<DSSidePanelHeaderT.Props>;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledTitle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/react-desc-prop-types.js").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, {
3
+ width?: string | undefined;
4
+ } & {
5
+ theme: import("@elliemae/pui-theme").Theme;
6
+ } & import("@elliemae/ds-system").OwnerInterface, never>;
7
+ export declare const Wrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/dist/types/react-desc-prop-types.js").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface, never>;
8
+ export declare const StyledCloseButton: import("styled-components").StyledComponent<import("react").ComponentType<import("@elliemae/ds-button-v2").DSButtonT.Props>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface, never>;
9
+ export declare const StyledSeparator: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface, never>;
package/package.json ADDED
@@ -0,0 +1,91 @@
1
+ {
2
+ "name": "@elliemae/ds-side-panel-header",
3
+ "version": "3.22.0-next.8",
4
+ "license": "MIT",
5
+ "description": "ICE MT - Dimsum - Side Panel Header",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "module": "./dist/esm/index.js",
10
+ "main": "./dist/cjs/index.js",
11
+ "types": "./dist/types/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/cjs/index.js"
16
+ },
17
+ "./TemplateBasicPageWithSidePanel": {
18
+ "import": "./dist/esm/TemplateBasicPageWithSidePanel.js",
19
+ "require": "./dist/cjs/TemplateBasicPageWithSidePanel.js"
20
+ },
21
+ "./SidePanelHeader": {
22
+ "import": "./dist/esm/SidePanelHeader.js",
23
+ "require": "./dist/cjs/SidePanelHeader.js"
24
+ },
25
+ "./SidePanel": {
26
+ "import": "./dist/esm/SidePanel.js",
27
+ "require": "./dist/cjs/SidePanel.js"
28
+ },
29
+ "./props": {
30
+ "import": "./dist/esm/props.js",
31
+ "require": "./dist/cjs/props.js"
32
+ },
33
+ "./defaultProps": {
34
+ "import": "./dist/esm/defaultProps.js",
35
+ "require": "./dist/cjs/defaultProps.js"
36
+ }
37
+ },
38
+ "sideEffects": [
39
+ "*.css",
40
+ "*.scss"
41
+ ],
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "https://git.elliemae.io/platform-ui/dimsum.git"
45
+ },
46
+ "engines": {
47
+ "pnpm": ">=6",
48
+ "node": ">=16"
49
+ },
50
+ "author": "ICE MT",
51
+ "jestSonar": {
52
+ "sonar56x": true,
53
+ "reportPath": "reports",
54
+ "reportFile": "tests.xml",
55
+ "indent": 4
56
+ },
57
+ "dependencies": {
58
+ "@elliemae/ds-button-v2": "3.22.0-next.8",
59
+ "@elliemae/ds-grid": "3.22.0-next.8",
60
+ "@elliemae/ds-icons": "3.22.0-next.8",
61
+ "@elliemae/ds-props-helpers": "3.22.0-next.8",
62
+ "@elliemae/ds-system": "3.22.0-next.8",
63
+ "@elliemae/ds-utilities": "3.22.0-next.8"
64
+ },
65
+ "devDependencies": {
66
+ "@elliemae/ds-monorepo-devops": "3.22.0-next.8",
67
+ "@elliemae/pui-cli": "~9.0.0-next.17",
68
+ "styled-components": "~5.3.9"
69
+ },
70
+ "peerDependencies": {
71
+ "lodash": "^4.17.21",
72
+ "react": "^17.0.2",
73
+ "react-dom": "^17.0.2",
74
+ "styled-components": "~5.3.9"
75
+ },
76
+ "publishConfig": {
77
+ "access": "public",
78
+ "typeSafety": false
79
+ },
80
+ "scripts": {
81
+ "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
82
+ "test": "pui-cli test --passWithNoTests",
83
+ "lint": "node ../../scripts/lint.mjs",
84
+ "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../.eslintrc.js' src/",
85
+ "dts": "node ../../scripts/dts.mjs",
86
+ "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
87
+ "dev:build": "pnpm --filter {.}... build",
88
+ "dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
89
+ "checkDeps": "npm exec ../ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
90
+ }
91
+ }