@elliemae/ds-page-header-v1 3.22.0-next.24

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.
Files changed (38) hide show
  1. package/dist/cjs/DSPageHeader.js +122 -0
  2. package/dist/cjs/DSPageHeader.js.map +7 -0
  3. package/dist/cjs/DropdownTitle.js +56 -0
  4. package/dist/cjs/DropdownTitle.js.map +7 -0
  5. package/dist/cjs/EditableTitle.js +68 -0
  6. package/dist/cjs/EditableTitle.js.map +7 -0
  7. package/dist/cjs/PageHeaderImpl.js +152 -0
  8. package/dist/cjs/PageHeaderImpl.js.map +7 -0
  9. package/dist/cjs/Title.js +42 -0
  10. package/dist/cjs/Title.js.map +7 -0
  11. package/dist/cjs/TitleWrapper.js +38 -0
  12. package/dist/cjs/TitleWrapper.js.map +7 -0
  13. package/dist/cjs/index.js +38 -0
  14. package/dist/cjs/index.js.map +7 -0
  15. package/dist/cjs/package.json +7 -0
  16. package/dist/esm/DSPageHeader.js +92 -0
  17. package/dist/esm/DSPageHeader.js.map +7 -0
  18. package/dist/esm/DropdownTitle.js +26 -0
  19. package/dist/esm/DropdownTitle.js.map +7 -0
  20. package/dist/esm/EditableTitle.js +38 -0
  21. package/dist/esm/EditableTitle.js.map +7 -0
  22. package/dist/esm/PageHeaderImpl.js +122 -0
  23. package/dist/esm/PageHeaderImpl.js.map +7 -0
  24. package/dist/esm/Title.js +12 -0
  25. package/dist/esm/Title.js.map +7 -0
  26. package/dist/esm/TitleWrapper.js +8 -0
  27. package/dist/esm/TitleWrapper.js.map +7 -0
  28. package/dist/esm/index.js +7 -0
  29. package/dist/esm/index.js.map +7 -0
  30. package/dist/esm/package.json +7 -0
  31. package/dist/types/DSPageHeader.d.ts +43 -0
  32. package/dist/types/DropdownTitle.d.ts +12 -0
  33. package/dist/types/EditableTitle.d.ts +15 -0
  34. package/dist/types/PageHeaderImpl.d.ts +20 -0
  35. package/dist/types/Title.d.ts +4 -0
  36. package/dist/types/TitleWrapper.d.ts +3 -0
  37. package/dist/types/index.d.ts +2 -0
  38. package/package.json +145 -0
@@ -0,0 +1,122 @@
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 DSPageHeader_exports = {};
30
+ __export(DSPageHeader_exports, {
31
+ DSPageHeader: () => DSPageHeader,
32
+ DSPageHeaderV1WithSchema: () => DSPageHeaderV1WithSchema,
33
+ default: () => DSPageHeader_default
34
+ });
35
+ module.exports = __toCommonJS(DSPageHeader_exports);
36
+ var React = __toESM(require("react"));
37
+ var import_jsx_runtime = require("react/jsx-runtime");
38
+ var import_ds_utilities = require("@elliemae/ds-utilities");
39
+ var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
40
+ var import_ds_truncated_tooltip_text = require("@elliemae/ds-truncated-tooltip-text");
41
+ var import_PageHeaderImpl = __toESM(require("./PageHeaderImpl.js"));
42
+ const DSPageHeader = ({
43
+ containerProps = {},
44
+ renderToolbar = void 0,
45
+ withBottomSeparator = true,
46
+ title = "",
47
+ titleOptions = void 0,
48
+ onSelectOption = () => null,
49
+ subtitle = "",
50
+ optionsSelection = {},
51
+ onGoToPreviousPage = () => null,
52
+ previousPage,
53
+ editable = false,
54
+ editing = void 0,
55
+ titleInputProps = {},
56
+ zIndex = 2,
57
+ optionsMinWidth = void 0,
58
+ ...otherProps
59
+ }) => {
60
+ (0, import_ds_utilities.useDeprecateComponent)({ componentName: "ds-page-header", version: "3.x Date: 2023 Q1" });
61
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.TooltipTextProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
62
+ import_PageHeaderImpl.default,
63
+ {
64
+ containerProps,
65
+ editable,
66
+ editing,
67
+ onGoToPreviousPage,
68
+ onSelectOption,
69
+ optionsMinWidth,
70
+ optionsSelection,
71
+ previousPage,
72
+ renderToolbar,
73
+ subtitle,
74
+ title,
75
+ titleInputProps,
76
+ titleOptions,
77
+ withBottomSeparator,
78
+ zIndex,
79
+ ...otherProps
80
+ }
81
+ ) });
82
+ };
83
+ const props = {
84
+ /* Component version */
85
+ version: import_ds_props_helpers.PropTypes.oneOf([1, 2]).description("Component version"),
86
+ /* props injected to page header wrapper node */
87
+ containerProps: import_ds_props_helpers.PropTypes.object.description("props injected to page header wrapper node"),
88
+ /* Function that returns the toolbar to the right of the page header */
89
+ renderToolbar: import_ds_props_helpers.PropTypes.func.description("Function that returns the toolbar to the right of the page header"),
90
+ /* Whether to show a separator at the bottom of the header */
91
+ withBottomSeparator: import_ds_props_helpers.PropTypes.bool.description("Whether to show a separator at the bottom of the header"),
92
+ /* The page header title */
93
+ title: import_ds_props_helpers.PropTypes.string.description("The page header title"),
94
+ /* The title dropdown options */
95
+ titleOptions: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.object).description("The title dropdown options"),
96
+ /* Handler when a user selects an item in the dropdown menu */
97
+ onSelectOption: import_ds_props_helpers.PropTypes.func.description("Handler when a user selects an item in the dropdown menu"),
98
+ /* Description text below the title */
99
+ subtitle: import_ds_props_helpers.PropTypes.string.description("Description text below the title"),
100
+ /* Selection state for the title dropdown */
101
+ optionsSelection: import_ds_props_helpers.PropTypes.object.description("Selection state for the title dropdown"),
102
+ /* Whether the title is editable or not */
103
+ editable: import_ds_props_helpers.PropTypes.bool.description("Whether the title is editable or not"),
104
+ /* Activates/Deactivates the editing state in the title */
105
+ editing: import_ds_props_helpers.PropTypes.bool.description("Activates/Deactivates the editing state in the title"),
106
+ /* Props passed to the input for editing the title */
107
+ titleInputProps: import_ds_props_helpers.PropTypes.object.description("Props passed to the input for editing the title"),
108
+ /* Enables navigation to previous page with back-arrow */
109
+ previousPage: import_ds_props_helpers.PropTypes.object.description("Enables navigation to previous page with back-arrow"),
110
+ /* Callback to handle navigation to previous page */
111
+ onGoToPreviousPage: import_ds_props_helpers.PropTypes.func.description("Callback to handle navigation to previous page"),
112
+ /* z-index to use for the DropdownMenu */
113
+ zIndex: import_ds_props_helpers.PropTypes.number.description("z-index to use for the DropdownMenu"),
114
+ /** min width for options dropdown menu */
115
+ optionsMinWidth: import_ds_props_helpers.PropTypes.number.description("min width for options dropdown menu")
116
+ };
117
+ DSPageHeader.propTypes = props;
118
+ DSPageHeader.displayName = "DSPageHeader";
119
+ const DSPageHeaderV1WithSchema = (0, import_ds_props_helpers.describe)(DSPageHeader).deprecated("use DSPageHeaderV2");
120
+ DSPageHeaderV1WithSchema.propTypes = props;
121
+ var DSPageHeader_default = DSPageHeader;
122
+ //# sourceMappingURL=DSPageHeader.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/DSPageHeader.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable eslint-comments/no-unlimited-disable */\n/* eslint-disable */\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport React from 'react';\nimport { useDeprecateComponent } from '@elliemae/ds-utilities';\nimport { describe, PropTypes } from '@elliemae/ds-props-helpers';\nimport { TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport PageHeaderImpl from './PageHeaderImpl.js';\n\nconst DSPageHeader = ({\n containerProps = {},\n renderToolbar = undefined,\n withBottomSeparator = true,\n title = '',\n titleOptions = undefined,\n onSelectOption = () => null,\n subtitle = '',\n optionsSelection = {},\n onGoToPreviousPage = () => null,\n previousPage,\n editable = false,\n editing = undefined,\n titleInputProps = {},\n zIndex = 2,\n optionsMinWidth = undefined,\n ...otherProps\n}) => {\n useDeprecateComponent({ componentName: 'ds-page-header', version: '3.x Date: 2023 Q1' });\n\n return (\n <TooltipTextProvider>\n <PageHeaderImpl\n containerProps={containerProps}\n editable={editable}\n editing={editing}\n onGoToPreviousPage={onGoToPreviousPage}\n onSelectOption={onSelectOption}\n optionsMinWidth={optionsMinWidth}\n optionsSelection={optionsSelection}\n previousPage={previousPage}\n renderToolbar={renderToolbar}\n subtitle={subtitle}\n title={title}\n titleInputProps={titleInputProps}\n titleOptions={titleOptions}\n withBottomSeparator={withBottomSeparator}\n zIndex={zIndex}\n {...otherProps}\n />\n </TooltipTextProvider>\n );\n};\n\nconst props = {\n /* Component version */\n version: PropTypes.oneOf([1, 2]).description('Component version'),\n /* props injected to page header wrapper node */\n containerProps: PropTypes.object.description('props injected to page header wrapper node'),\n /* Function that returns the toolbar to the right of the page header */\n renderToolbar: PropTypes.func.description('Function that returns the toolbar to the right of the page header'),\n /* Whether to show a separator at the bottom of the header */\n withBottomSeparator: PropTypes.bool.description('Whether to show a separator at the bottom of the header'),\n /* The page header title */\n title: PropTypes.string.description('The page header title'),\n /* The title dropdown options */\n titleOptions: PropTypes.arrayOf(PropTypes.object).description('The title dropdown options'),\n /* Handler when a user selects an item in the dropdown menu */\n onSelectOption: PropTypes.func.description('Handler when a user selects an item in the dropdown menu'),\n /* Description text below the title */\n subtitle: PropTypes.string.description('Description text below the title'),\n /* Selection state for the title dropdown */\n optionsSelection: PropTypes.object.description('Selection state for the title dropdown'),\n /* Whether the title is editable or not */\n editable: PropTypes.bool.description('Whether the title is editable or not'),\n /* Activates/Deactivates the editing state in the title */\n editing: PropTypes.bool.description('Activates/Deactivates the editing state in the title'),\n /* Props passed to the input for editing the title */\n titleInputProps: PropTypes.object.description('Props passed to the input for editing the title'),\n /* Enables navigation to previous page with back-arrow */\n previousPage: PropTypes.object.description('Enables navigation to previous page with back-arrow'),\n /* Callback to handle navigation to previous page */\n onGoToPreviousPage: PropTypes.func.description('Callback to handle navigation to previous page'),\n /* z-index to use for the DropdownMenu */\n zIndex: PropTypes.number.description('z-index to use for the DropdownMenu'),\n /** min width for options dropdown menu */\n optionsMinWidth: PropTypes.number.description('min width for options dropdown menu'),\n};\n\nDSPageHeader.propTypes = props;\nDSPageHeader.displayName = 'DSPageHeader';\nconst DSPageHeaderV1WithSchema = describe(DSPageHeader).deprecated('use DSPageHeaderV2');\nDSPageHeaderV1WithSchema.propTypes = props;\n\nexport { DSPageHeader, DSPageHeaderV1WithSchema };\nexport default DSPageHeader;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgCjB;AA3BN,0BAAsC;AACtC,8BAAoC;AACpC,uCAAoC;AACpC,4BAA2B;AAE3B,MAAM,eAAe,CAAC;AAAA,EACpB,iBAAiB,CAAC;AAAA,EAClB,gBAAgB;AAAA,EAChB,sBAAsB;AAAA,EACtB,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,iBAAiB,MAAM;AAAA,EACvB,WAAW;AAAA,EACX,mBAAmB,CAAC;AAAA,EACpB,qBAAqB,MAAM;AAAA,EAC3B;AAAA,EACA,WAAW;AAAA,EACX,UAAU;AAAA,EACV,kBAAkB,CAAC;AAAA,EACnB,SAAS;AAAA,EACT,kBAAkB;AAAA,EAClB,GAAG;AACL,MAAM;AACJ,iDAAsB,EAAE,eAAe,kBAAkB,SAAS,oBAAoB,CAAC;AAEvF,SACE,4CAAC,wDACC;AAAA,IAAC,sBAAAA;AAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACC,GAAG;AAAA;AAAA,EACN,GACF;AAEJ;AAEA,MAAM,QAAQ;AAAA;AAAA,EAEZ,SAAS,kCAAU,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,YAAY,mBAAmB;AAAA;AAAA,EAEhE,gBAAgB,kCAAU,OAAO,YAAY,4CAA4C;AAAA;AAAA,EAEzF,eAAe,kCAAU,KAAK,YAAY,mEAAmE;AAAA;AAAA,EAE7G,qBAAqB,kCAAU,KAAK,YAAY,yDAAyD;AAAA;AAAA,EAEzG,OAAO,kCAAU,OAAO,YAAY,uBAAuB;AAAA;AAAA,EAE3D,cAAc,kCAAU,QAAQ,kCAAU,MAAM,EAAE,YAAY,4BAA4B;AAAA;AAAA,EAE1F,gBAAgB,kCAAU,KAAK,YAAY,0DAA0D;AAAA;AAAA,EAErG,UAAU,kCAAU,OAAO,YAAY,kCAAkC;AAAA;AAAA,EAEzE,kBAAkB,kCAAU,OAAO,YAAY,wCAAwC;AAAA;AAAA,EAEvF,UAAU,kCAAU,KAAK,YAAY,sCAAsC;AAAA;AAAA,EAE3E,SAAS,kCAAU,KAAK,YAAY,sDAAsD;AAAA;AAAA,EAE1F,iBAAiB,kCAAU,OAAO,YAAY,iDAAiD;AAAA;AAAA,EAE/F,cAAc,kCAAU,OAAO,YAAY,qDAAqD;AAAA;AAAA,EAEhG,oBAAoB,kCAAU,KAAK,YAAY,gDAAgD;AAAA;AAAA,EAE/F,QAAQ,kCAAU,OAAO,YAAY,qCAAqC;AAAA;AAAA,EAE1E,iBAAiB,kCAAU,OAAO,YAAY,qCAAqC;AACrF;AAEA,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B,MAAM,+BAA2B,kCAAS,YAAY,EAAE,WAAW,oBAAoB;AACvF,yBAAyB,YAAY;AAGrC,IAAO,uBAAQ;",
6
+ "names": ["PageHeaderImpl"]
7
+ }
@@ -0,0 +1,56 @@
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 DropdownTitle_exports = {};
30
+ __export(DropdownTitle_exports, {
31
+ default: () => DropdownTitle_default
32
+ });
33
+ module.exports = __toCommonJS(DropdownTitle_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_jsx_runtime = require("react/jsx-runtime");
36
+ var import_ds_dropdownmenu = __toESM(require("@elliemae/ds-dropdownmenu"));
37
+ var import_ds_icons = require("@elliemae/ds-icons");
38
+ var import_ds_button = __toESM(require("@elliemae/ds-button"));
39
+ var import_TitleWrapper = __toESM(require("./TitleWrapper.js"));
40
+ const DropdownTitle = ({ titleComponent, onSelectOption, options, optionsMinWidth, selection, zIndex }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_TitleWrapper.default, { children: [
41
+ titleComponent,
42
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
43
+ import_ds_dropdownmenu.default,
44
+ {
45
+ minWidth: optionsMinWidth,
46
+ onSelectMenuItem: onSelectOption,
47
+ options,
48
+ selection,
49
+ triggerComponent: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_button.default, { buttonType: "text", "data-testid": "page-header-dropdown-trigger-component", icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.ChevronSmallDown, {}) }),
50
+ zIndex
51
+ }
52
+ )
53
+ ] });
54
+ DropdownTitle.propTypes = {};
55
+ var DropdownTitle_default = DropdownTitle;
56
+ //# sourceMappingURL=DropdownTitle.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/DropdownTitle.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable eslint-comments/no-unlimited-disable */\n/* eslint-disable */\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport React from 'react';\nimport DSDropdownMenu from '@elliemae/ds-dropdownmenu';\nimport { ChevronSmallDown } from '@elliemae/ds-icons';\nimport DSButton from '@elliemae/ds-button';\nimport TitleWrapper from './TitleWrapper.js';\n\nconst DropdownTitle = ({ titleComponent, onSelectOption, options, optionsMinWidth, selection, zIndex }) => (\n <TitleWrapper>\n {titleComponent}\n <DSDropdownMenu\n minWidth={optionsMinWidth}\n onSelectMenuItem={onSelectOption}\n options={options}\n selection={selection}\n triggerComponent={\n <DSButton buttonType=\"text\" data-testid=\"page-header-dropdown-trigger-component\" icon={<ChevronSmallDown />} />\n }\n zIndex={zIndex}\n />\n </TitleWrapper>\n);\n\nDropdownTitle.propTypes = {};\n\nexport default DropdownTitle;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADWrB;AANF,6BAA2B;AAC3B,sBAAiC;AACjC,uBAAqB;AACrB,0BAAyB;AAEzB,MAAM,gBAAgB,CAAC,EAAE,gBAAgB,gBAAgB,SAAS,iBAAiB,WAAW,OAAO,MACnG,6CAAC,oBAAAA,SAAA,EACE;AAAA;AAAA,EACD;AAAA,IAAC,uBAAAC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,kBAAkB;AAAA,MAClB;AAAA,MACA;AAAA,MACA,kBACE,4CAAC,iBAAAC,SAAA,EAAS,YAAW,QAAO,eAAY,0CAAyC,MAAM,4CAAC,oCAAiB,GAAI;AAAA,MAE/G;AAAA;AAAA,EACF;AAAA,GACF;AAGF,cAAc,YAAY,CAAC;AAE3B,IAAO,wBAAQ;",
6
+ "names": ["TitleWrapper", "DSDropdownMenu", "DSButton"]
7
+ }
@@ -0,0 +1,68 @@
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 EditableTitle_exports = {};
30
+ __export(EditableTitle_exports, {
31
+ default: () => EditableTitle_default
32
+ });
33
+ module.exports = __toCommonJS(EditableTitle_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_jsx_runtime = require("react/jsx-runtime");
36
+ var import_react = require("react");
37
+ var import_ds_utilities = require("@elliemae/ds-utilities");
38
+ var import_prop_types = __toESM(require("prop-types"));
39
+ var import_ds_classnames = require("@elliemae/ds-classnames");
40
+ var import_Input = __toESM(require("@elliemae/ds-form/Input"));
41
+ var import_Title = __toESM(require("./Title.js"));
42
+ const blockName = "page-header";
43
+ const EditableTitleComponent = (0, import_ds_classnames.aggregatedClasses)(import_Input.default)(`${blockName}-title`, "editable-title");
44
+ const EditableTitle = ({ children: value, editing: editingProp, titleInputProps }) => {
45
+ const [titleValue, setTitleValue] = (0, import_react.useState)(value);
46
+ const [hovered, setHovered] = (0, import_react.useState)(false);
47
+ const [editing, setEditing] = (0, import_ds_utilities.useDerivedStateFromProps)(editingProp || false);
48
+ const titleRef = (0, import_react.useRef)(null);
49
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: hovered || editing ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
50
+ EditableTitleComponent,
51
+ {
52
+ ...titleInputProps,
53
+ onBlur: (0, import_ds_utilities.runAll)(() => setEditing(false), titleInputProps.onBlur),
54
+ onChange: (0, import_ds_utilities.runAll)((e) => setTitleValue(e.target.value), titleInputProps.onChange),
55
+ onFocus: (0, import_ds_utilities.runAll)(() => setEditing(true), titleInputProps.onFocus),
56
+ onMouseOut: (0, import_ds_utilities.runAll)(() => setHovered(false), titleInputProps.onMouseOut),
57
+ value: titleValue
58
+ }
59
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref: titleRef, onMouseEnter: () => setHovered(true), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Title.default, { children: titleValue }) }) });
60
+ };
61
+ EditableTitle.propTypes = {
62
+ /** The title text */
63
+ children: import_prop_types.default.string,
64
+ /** Whether the title is editing or not */
65
+ editing: import_prop_types.default.bool
66
+ };
67
+ var EditableTitle_default = EditableTitle;
68
+ //# sourceMappingURL=EditableTitle.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/EditableTitle.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable eslint-comments/no-unlimited-disable */\n/* eslint-disable */\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport React, { useRef, useState } from 'react';\nimport { useDerivedStateFromProps, runAll } from '@elliemae/ds-utilities';\nimport PropTypes from 'prop-types';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport DSInput from '@elliemae/ds-form/Input';\nimport Title from './Title.js';\n\nconst blockName = 'page-header';\n\nconst EditableTitleComponent = aggregatedClasses(DSInput)(`${blockName}-title`, 'editable-title');\n\nconst EditableTitle = ({ children: value, editing: editingProp, titleInputProps }) => {\n const [titleValue, setTitleValue] = useState(value);\n const [hovered, setHovered] = useState(false);\n const [editing, setEditing] = useDerivedStateFromProps(editingProp || false);\n const titleRef = useRef(null);\n return (\n <>\n {hovered || editing ? (\n <EditableTitleComponent\n {...titleInputProps}\n onBlur={runAll(() => setEditing(false), titleInputProps.onBlur)}\n onChange={runAll((e) => setTitleValue(e.target.value), titleInputProps.onChange)}\n onFocus={runAll(() => setEditing(true), titleInputProps.onFocus)}\n onMouseOut={runAll(() => setHovered(false), titleInputProps.onMouseOut)}\n value={titleValue}\n />\n ) : (\n <div ref={titleRef} onMouseEnter={() => setHovered(true)}>\n <Title>{titleValue}</Title>\n </div>\n )}\n </>\n );\n};\n\nEditableTitle.propTypes = {\n /** The title text */\n children: PropTypes.string,\n /** Whether the title is editing or not */\n editing: PropTypes.bool,\n};\n\nexport default EditableTitle;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADqBnB;AAjBJ,mBAAwC;AACxC,0BAAiD;AACjD,wBAAsB;AACtB,2BAAkC;AAClC,mBAAoB;AACpB,mBAAkB;AAElB,MAAM,YAAY;AAElB,MAAM,6BAAyB,wCAAkB,aAAAA,OAAO,EAAE,GAAG,mBAAmB,gBAAgB;AAEhG,MAAM,gBAAgB,CAAC,EAAE,UAAU,OAAO,SAAS,aAAa,gBAAgB,MAAM;AACpF,QAAM,CAAC,YAAY,aAAa,QAAI,uBAAS,KAAK;AAClD,QAAM,CAAC,SAAS,UAAU,QAAI,uBAAS,KAAK;AAC5C,QAAM,CAAC,SAAS,UAAU,QAAI,8CAAyB,eAAe,KAAK;AAC3E,QAAM,eAAW,qBAAO,IAAI;AAC5B,SACE,2EACG,qBAAW,UACV;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,YAAQ,4BAAO,MAAM,WAAW,KAAK,GAAG,gBAAgB,MAAM;AAAA,MAC9D,cAAU,4BAAO,CAAC,MAAM,cAAc,EAAE,OAAO,KAAK,GAAG,gBAAgB,QAAQ;AAAA,MAC/E,aAAS,4BAAO,MAAM,WAAW,IAAI,GAAG,gBAAgB,OAAO;AAAA,MAC/D,gBAAY,4BAAO,MAAM,WAAW,KAAK,GAAG,gBAAgB,UAAU;AAAA,MACtE,OAAO;AAAA;AAAA,EACT,IAEA,4CAAC,SAAI,KAAK,UAAU,cAAc,MAAM,WAAW,IAAI,GACrD,sDAAC,aAAAC,SAAA,EAAO,sBAAW,GACrB,GAEJ;AAEJ;AAEA,cAAc,YAAY;AAAA;AAAA,EAExB,UAAU,kBAAAC,QAAU;AAAA;AAAA,EAEpB,SAAS,kBAAAA,QAAU;AACrB;AAEA,IAAO,wBAAQ;",
6
+ "names": ["DSInput", "Title", "PropTypes"]
7
+ }
@@ -0,0 +1,152 @@
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 PageHeaderImpl_exports = {};
30
+ __export(PageHeaderImpl_exports, {
31
+ default: () => PageHeaderImpl_default
32
+ });
33
+ module.exports = __toCommonJS(PageHeaderImpl_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_jsx_runtime = require("react/jsx-runtime");
36
+ var import_ds_utilities = require("@elliemae/ds-utilities");
37
+ var import_ds_classnames = require("@elliemae/ds-classnames");
38
+ var import_ds_icons = require("@elliemae/ds-icons");
39
+ var import_ds_breadcrumb = __toESM(require("@elliemae/ds-breadcrumb"));
40
+ var import_ds_icon = require("@elliemae/ds-icon");
41
+ var import_EditableTitle = __toESM(require("./EditableTitle.js"));
42
+ var import_Title = __toESM(require("./Title.js"));
43
+ var import_DropdownTitle = __toESM(require("./DropdownTitle.js"));
44
+ const blockName = "page-header";
45
+ const PageHeaderContainer = (0, import_ds_classnames.aggregatedClasses)("div")(blockName, null, ({ withBottomSeparator, subtitle }) => ({
46
+ "with-bottom-separator": withBottomSeparator,
47
+ "with-subtitle": subtitle
48
+ }));
49
+ const PageHeaderMainSection = (0, import_ds_classnames.aggregatedClasses)("div")(`${blockName}-main-section`);
50
+ const PageHeaderTitleSection = (0, import_ds_classnames.aggregatedClasses)("div")(`${blockName}-title-section`);
51
+ const PageHeaderToolbar = (0, import_ds_classnames.aggregatedClasses)("div")(`${blockName}-toolbar`, null, () => ({
52
+ "ie-flex-basis-auto": true
53
+ }));
54
+ const PageHeaderBreadcrumb = (0, import_ds_classnames.aggregatedClasses)(import_ds_breadcrumb.default)(`${blockName}-breadcrumb`);
55
+ const PageHeaderTitle = (0, import_ds_classnames.aggregatedClasses)("div")(`${blockName}-title`);
56
+ const Subtitle = (0, import_ds_classnames.aggregatedClasses)("div")(`${blockName}-title`, "subtitle");
57
+ const BackArrow = (0, import_ds_classnames.aggregatedClasses)(import_ds_icons.ChevronLeft)(`${blockName}-backarrow`);
58
+ const HeaderTitle = ({
59
+ title = "",
60
+ options = [],
61
+ optionsMinWidth,
62
+ onSelectOption = () => null,
63
+ selection,
64
+ subtitle = "",
65
+ editable = false,
66
+ editing = false,
67
+ titleInputProps,
68
+ zIndex
69
+ }) => {
70
+ const titleComponent = editable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_EditableTitle.default, { editing, titleInputProps, children: title }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Title.default, { children: title });
71
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(PageHeaderTitle, { children: [
72
+ options.length ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
73
+ import_DropdownTitle.default,
74
+ {
75
+ onSelectOption,
76
+ options,
77
+ optionsMinWidth,
78
+ selection,
79
+ titleComponent,
80
+ zIndex
81
+ }
82
+ ) : titleComponent,
83
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Subtitle, { children: subtitle })
84
+ ] });
85
+ };
86
+ const PageHeaderImpl = ({
87
+ containerProps,
88
+ className,
89
+ title,
90
+ titleOptions,
91
+ renderToolbar,
92
+ breadcrumbs = [],
93
+ previousPage,
94
+ onGoToPreviousPage = () => null,
95
+ subtitle = "",
96
+ withBottomSeparator,
97
+ onSelectOption,
98
+ optionsSelection,
99
+ optionsMinWidth,
100
+ editable = false,
101
+ titleInputProps,
102
+ editing = void 0,
103
+ zIndex
104
+ }) => {
105
+ const hasBreadcrumbs = !!breadcrumbs.length;
106
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
107
+ PageHeaderContainer,
108
+ {
109
+ ...containerProps,
110
+ className,
111
+ classProps: {
112
+ withBottomSeparator,
113
+ subtitle
114
+ },
115
+ children: [
116
+ previousPage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BackArrow, { "data-testid": "back-arrow", onClick: onGoToPreviousPage, size: import_ds_icon.DSIconSizes.M }),
117
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(PageHeaderMainSection, { children: [
118
+ hasBreadcrumbs && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PageHeaderBreadcrumb, { children: breadcrumbs.map((breadcrumb) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_breadcrumb.default.Item, { ...breadcrumb }, breadcrumb.label)) }),
119
+ previousPage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PageHeaderBreadcrumb, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
120
+ import_ds_breadcrumb.default.Item,
121
+ {
122
+ label: previousPage.title,
123
+ onClick: previousPage.onClick,
124
+ ...previousPage
125
+ },
126
+ previousPage.id
127
+ ) }),
128
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(PageHeaderTitleSection, { children: [
129
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
130
+ HeaderTitle,
131
+ {
132
+ editable,
133
+ editing,
134
+ onSelectOption,
135
+ options: titleOptions,
136
+ optionsMinWidth,
137
+ selection: optionsSelection,
138
+ subtitle,
139
+ title,
140
+ titleInputProps,
141
+ zIndex
142
+ }
143
+ ),
144
+ (0, import_ds_utilities.isFunction)(renderToolbar) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PageHeaderToolbar, { children: renderToolbar() })
145
+ ] })
146
+ ] })
147
+ ]
148
+ }
149
+ );
150
+ };
151
+ var PageHeaderImpl_default = PageHeaderImpl;
152
+ //# sourceMappingURL=PageHeaderImpl.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/PageHeaderImpl.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable eslint-comments/no-unlimited-disable */\n/* eslint-disable */\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport React from 'react';\nimport { isFunction } from '@elliemae/ds-utilities';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { ChevronLeft } from '@elliemae/ds-icons';\nimport DSBreadcrumb from '@elliemae/ds-breadcrumb';\nimport { DSIconSizes } from '@elliemae/ds-icon';\nimport EditableTitle from './EditableTitle.js';\nimport Title from './Title.js';\nimport DropdownTitle from './DropdownTitle.js';\n\nconst blockName = 'page-header';\n\nconst PageHeaderContainer = aggregatedClasses('div')(blockName, null, ({ withBottomSeparator, subtitle }) => ({\n 'with-bottom-separator': withBottomSeparator,\n 'with-subtitle': subtitle,\n}));\n\nconst PageHeaderMainSection = aggregatedClasses('div')(`${blockName}-main-section`);\nconst PageHeaderTitleSection = aggregatedClasses('div')(`${blockName}-title-section`);\nconst PageHeaderToolbar = aggregatedClasses('div')(`${blockName}-toolbar`, null, () => ({\n 'ie-flex-basis-auto': true,\n}));\nconst PageHeaderBreadcrumb = aggregatedClasses(DSBreadcrumb)(`${blockName}-breadcrumb`);\n\nconst PageHeaderTitle = aggregatedClasses('div')(`${blockName}-title`);\nconst Subtitle = aggregatedClasses('div')(`${blockName}-title`, 'subtitle');\nconst BackArrow = aggregatedClasses(ChevronLeft)(`${blockName}-backarrow`);\n\nconst HeaderTitle = ({\n title = '',\n options = [],\n optionsMinWidth,\n onSelectOption = () => null,\n selection,\n subtitle = '',\n editable = false,\n editing = false,\n titleInputProps,\n zIndex,\n}) => {\n const titleComponent = editable ? (\n <EditableTitle editing={editing} titleInputProps={titleInputProps}>\n {title}\n </EditableTitle>\n ) : (\n <Title>{title}</Title>\n );\n\n return (\n <PageHeaderTitle>\n {options.length ? (\n <DropdownTitle\n onSelectOption={onSelectOption}\n options={options}\n optionsMinWidth={optionsMinWidth}\n selection={selection}\n titleComponent={titleComponent}\n zIndex={zIndex}\n />\n ) : (\n titleComponent\n )}\n {subtitle && <Subtitle>{subtitle}</Subtitle>}\n </PageHeaderTitle>\n );\n};\n\nconst PageHeaderImpl = ({\n containerProps,\n className,\n title,\n titleOptions,\n renderToolbar,\n breadcrumbs = [],\n previousPage,\n onGoToPreviousPage = () => null,\n subtitle = '',\n withBottomSeparator,\n onSelectOption,\n optionsSelection,\n optionsMinWidth,\n editable = false,\n titleInputProps,\n editing = undefined,\n zIndex,\n}) => {\n const hasBreadcrumbs = !!breadcrumbs.length;\n\n return (\n <PageHeaderContainer\n {...containerProps}\n className={className}\n classProps={{\n withBottomSeparator,\n subtitle,\n }}\n >\n {previousPage && <BackArrow data-testid=\"back-arrow\" onClick={onGoToPreviousPage} size={DSIconSizes.M} />}\n <PageHeaderMainSection>\n {hasBreadcrumbs && (\n <PageHeaderBreadcrumb>\n {breadcrumbs.map((breadcrumb) => (\n <DSBreadcrumb.Item key={breadcrumb.label} {...breadcrumb} />\n ))}\n </PageHeaderBreadcrumb>\n )}\n {previousPage && (\n <PageHeaderBreadcrumb>\n <DSBreadcrumb.Item\n key={previousPage.id}\n label={previousPage.title}\n onClick={previousPage.onClick}\n {...previousPage}\n />\n </PageHeaderBreadcrumb>\n )}\n <PageHeaderTitleSection>\n <HeaderTitle\n editable={editable}\n editing={editing}\n onSelectOption={onSelectOption}\n options={titleOptions}\n optionsMinWidth={optionsMinWidth}\n selection={optionsSelection}\n subtitle={subtitle}\n title={title}\n titleInputProps={titleInputProps}\n zIndex={zIndex}\n />\n {isFunction(renderToolbar) && <PageHeaderToolbar>{renderToolbar()}</PageHeaderToolbar>}\n </PageHeaderTitleSection>\n </PageHeaderMainSection>\n </PageHeaderContainer>\n );\n};\n\nexport default PageHeaderImpl;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": "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",
6
+ "names": ["DSBreadcrumb", "EditableTitle", "Title", "DropdownTitle"]
7
+ }
@@ -0,0 +1,42 @@
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 Title_exports = {};
30
+ __export(Title_exports, {
31
+ default: () => Title_default
32
+ });
33
+ module.exports = __toCommonJS(Title_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_jsx_runtime = require("react/jsx-runtime");
36
+ var import_ds_classnames = require("@elliemae/ds-classnames");
37
+ var import_ds_truncated_tooltip_text = __toESM(require("@elliemae/ds-truncated-tooltip-text"));
38
+ const blockName = "page-header";
39
+ const TitleWrapper = (0, import_ds_classnames.aggregatedClasses)(import_ds_truncated_tooltip_text.default)(`${blockName}-title`, "title");
40
+ const Title = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TitleWrapper, { value: children });
41
+ var Title_default = Title;
42
+ //# sourceMappingURL=Title.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Title.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable eslint-comments/no-unlimited-disable */\n/* eslint-disable */\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport React from 'react';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport DSTruncatedTooltipText from '@elliemae/ds-truncated-tooltip-text';\n\nconst blockName = 'page-header';\nconst TitleWrapper = aggregatedClasses(DSTruncatedTooltipText)(`${blockName}-title`, 'title');\nconst Title = ({ children }) => <TitleWrapper value={children} />;\n\nexport default Title;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADUS;AALhC,2BAAkC;AAClC,uCAAmC;AAEnC,MAAM,YAAY;AAClB,MAAM,mBAAe,wCAAkB,iCAAAA,OAAsB,EAAE,GAAG,mBAAmB,OAAO;AAC5F,MAAM,QAAQ,CAAC,EAAE,SAAS,MAAM,4CAAC,gBAAa,OAAO,UAAU;AAE/D,IAAO,gBAAQ;",
6
+ "names": ["DSTruncatedTooltipText"]
7
+ }
@@ -0,0 +1,38 @@
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 TitleWrapper_exports = {};
30
+ __export(TitleWrapper_exports, {
31
+ default: () => TitleWrapper_default
32
+ });
33
+ module.exports = __toCommonJS(TitleWrapper_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_ds_classnames = require("@elliemae/ds-classnames");
36
+ const blockName = "page-header";
37
+ var TitleWrapper_default = (0, import_ds_classnames.aggregatedClasses)("span")(`${blockName}-title-wrapper`);
38
+ //# sourceMappingURL=TitleWrapper.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/TitleWrapper.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable eslint-comments/no-unlimited-disable */\n/* eslint-disable */\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\n\nconst blockName = 'page-header';\n\nexport default aggregatedClasses('span')(`${blockName}-title-wrapper`);\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADIvB,2BAAkC;AAElC,MAAM,YAAY;AAElB,IAAO,2BAAQ,wCAAkB,MAAM,EAAE,GAAG,yBAAyB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,38 @@
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var src_exports = {};
31
+ __export(src_exports, {
32
+ default: () => import_DSPageHeader.default
33
+ });
34
+ module.exports = __toCommonJS(src_exports);
35
+ var React = __toESM(require("react"));
36
+ __reExport(src_exports, require("./DSPageHeader.js"), module.exports);
37
+ var import_DSPageHeader = __toESM(require("./DSPageHeader.js"));
38
+ //# 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 './DSPageHeader.js';\nexport { default } from './DSPageHeader.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,8BAAd;AACA,0BAAwB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "type": "commonjs",
3
+ "sideEffects": [
4
+ "*.css",
5
+ "*.scss"
6
+ ]
7
+ }