@elliemae/ds-page-header 3.1.0-next.2 → 3.1.0-next.5

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.
@@ -53,7 +53,7 @@ __export(DSPageHeader_exports, {
53
53
  module.exports = __toCommonJS(DSPageHeader_exports);
54
54
  var React = __toESM(require("react"));
55
55
  var import_react = __toESM(require("react"));
56
- var import_react_desc = require("react-desc");
56
+ var import_ds_utilities = require("@elliemae/ds-utilities");
57
57
  var import_ds_truncated_tooltip_text = require("@elliemae/ds-truncated-tooltip-text");
58
58
  var import_PageHeaderImpl = __toESM(require("./PageHeaderImpl"));
59
59
  const DSPageHeader = (_a) => {
@@ -109,26 +109,26 @@ const DSPageHeader = (_a) => {
109
109
  }, otherProps)));
110
110
  };
111
111
  const props = {
112
- version: import_react_desc.PropTypes.oneOf([1, 2]).description("Component version"),
113
- containerProps: import_react_desc.PropTypes.object.description("props injected to page header wrapper node"),
114
- renderToolbar: import_react_desc.PropTypes.func.description("Function that returns the toolbar to the right of the page header"),
115
- withBottomSeparator: import_react_desc.PropTypes.bool.description("Whether to show a separator at the bottom of the header"),
116
- title: import_react_desc.PropTypes.string.description("The page header title"),
117
- titleOptions: import_react_desc.PropTypes.arrayOf(import_react_desc.PropTypes.object).description("The title dropdown options"),
118
- onSelectOption: import_react_desc.PropTypes.func.description("Handler when a user selects an item in the dropdown menu"),
119
- subtitle: import_react_desc.PropTypes.string.description("Description text below the title"),
120
- optionsSelection: import_react_desc.PropTypes.object.description("Selection state for the title dropdown"),
121
- editable: import_react_desc.PropTypes.bool.description("Whether the title is editable or not"),
122
- editing: import_react_desc.PropTypes.bool.description("Activates/Deactivates the editing state in the title"),
123
- titleInputProps: import_react_desc.PropTypes.object.description("Props passed to the input for editing the title"),
124
- previousPage: import_react_desc.PropTypes.object.description("Enables navigation to previous page with back-arrow"),
125
- onGoToPreviousPage: import_react_desc.PropTypes.func.description("Callback to handle navigation to previous page"),
126
- zIndex: import_react_desc.PropTypes.number.description("z-index to use for the DropdownMenu"),
127
- optionsMinWidth: import_react_desc.PropTypes.number.description("min width for options dropdown menu")
112
+ version: import_ds_utilities.PropTypes.oneOf([1, 2]).description("Component version"),
113
+ containerProps: import_ds_utilities.PropTypes.object.description("props injected to page header wrapper node"),
114
+ renderToolbar: import_ds_utilities.PropTypes.func.description("Function that returns the toolbar to the right of the page header"),
115
+ withBottomSeparator: import_ds_utilities.PropTypes.bool.description("Whether to show a separator at the bottom of the header"),
116
+ title: import_ds_utilities.PropTypes.string.description("The page header title"),
117
+ titleOptions: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.object).description("The title dropdown options"),
118
+ onSelectOption: import_ds_utilities.PropTypes.func.description("Handler when a user selects an item in the dropdown menu"),
119
+ subtitle: import_ds_utilities.PropTypes.string.description("Description text below the title"),
120
+ optionsSelection: import_ds_utilities.PropTypes.object.description("Selection state for the title dropdown"),
121
+ editable: import_ds_utilities.PropTypes.bool.description("Whether the title is editable or not"),
122
+ editing: import_ds_utilities.PropTypes.bool.description("Activates/Deactivates the editing state in the title"),
123
+ titleInputProps: import_ds_utilities.PropTypes.object.description("Props passed to the input for editing the title"),
124
+ previousPage: import_ds_utilities.PropTypes.object.description("Enables navigation to previous page with back-arrow"),
125
+ onGoToPreviousPage: import_ds_utilities.PropTypes.func.description("Callback to handle navigation to previous page"),
126
+ zIndex: import_ds_utilities.PropTypes.number.description("z-index to use for the DropdownMenu"),
127
+ optionsMinWidth: import_ds_utilities.PropTypes.number.description("min width for options dropdown menu")
128
128
  };
129
129
  DSPageHeader.propTypes = props;
130
130
  DSPageHeader.displayName = "DSPageHeader";
131
- const DSPageHeaderV1WithSchema = (0, import_react_desc.describe)(DSPageHeader).deprecated("use DSPageHeaderV2");
131
+ const DSPageHeaderV1WithSchema = (0, import_ds_utilities.describe)(DSPageHeader).deprecated("use DSPageHeaderV2");
132
132
  DSPageHeaderV1WithSchema.propTypes = props;
133
133
  var DSPageHeader_default = DSPageHeader;
134
134
  //# sourceMappingURL=DSPageHeader.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/v1/DSPageHeader.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { describe, PropTypes } from 'react-desc';\nimport { TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport PageHeaderImpl from './PageHeaderImpl';\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 <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\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(\n 'props injected to page header wrapper node',\n ),\n /* Function that returns the toolbar to the right of the page header */\n renderToolbar: PropTypes.func.description(\n 'Function that returns the toolbar to the right of the page header',\n ),\n /* Whether to show a separator at the bottom of the header */\n withBottomSeparator: PropTypes.bool.description(\n 'Whether to show a separator at the bottom of the header',\n ),\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(\n 'The title dropdown options',\n ),\n /* Handler when a user selects an item in the dropdown menu */\n onSelectOption: PropTypes.func.description(\n 'Handler when a user selects an item in the dropdown menu',\n ),\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(\n 'Selection state for the title dropdown',\n ),\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(\n 'Activates/Deactivates the editing state in the title',\n ),\n /* Props passed to the input for editing the title */\n titleInputProps: PropTypes.object.description(\n 'Props passed to the input for editing the title',\n ),\n /* Enables navigation to previous page with back-arrow */\n previousPage: PropTypes.object.description(\n 'Enables navigation to previous page with back-arrow',\n ),\n /* Callback to handle navigation to previous page */\n onGoToPreviousPage: PropTypes.func.description(\n 'Callback to handle navigation to previous page',\n ),\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(\n 'min width for options dropdown menu',\n ),\n};\n\nDSPageHeader.propTypes = props;\nDSPageHeader.displayName = 'DSPageHeader';\nconst DSPageHeaderV1WithSchema = describe(DSPageHeader).deprecated(\n 'use DSPageHeaderV2',\n);\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;ADAvB,mBAAkB;AAClB,wBAAoC;AACpC,uCAAoC;AACpC,4BAA2B;AAE3B,MAAM,eAAe,CAAC,OAiBnB;AAjBmB,eACpB;AAAA,qBAAiB,CAAC;AAAA,IAClB,gBAAgB;AAAA,IAChB,sBAAsB;AAAA,IACtB,QAAQ;AAAA,IACR,eAAe;AAAA,IACf,iBAAiB,MAAM;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EA,cAAc,4BAAU,OAAO,YAC7B,qDACF;AAAA,EAEA,oBAAoB,4BAAU,KAAK,YACjC,gDACF;AAAA,EAEA,QAAQ,4BAAU,OAAO,YAAY,qCAAqC;AAAA,EAE1E,iBAAiB,4BAAU,OAAO,YAChC,qCACF;AACF;AAEA,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B,MAAM,2BAA2B,gCAAS,YAAY,EAAE,WACtD,oBACF;AACA,yBAAyB,YAAY;AAGrC,IAAO,uBAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-utilities';\nimport { TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport PageHeaderImpl from './PageHeaderImpl';\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 <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\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(\n 'props injected to page header wrapper node',\n ),\n /* Function that returns the toolbar to the right of the page header */\n renderToolbar: PropTypes.func.description(\n 'Function that returns the toolbar to the right of the page header',\n ),\n /* Whether to show a separator at the bottom of the header */\n withBottomSeparator: PropTypes.bool.description(\n 'Whether to show a separator at the bottom of the header',\n ),\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(\n 'The title dropdown options',\n ),\n /* Handler when a user selects an item in the dropdown menu */\n onSelectOption: PropTypes.func.description(\n 'Handler when a user selects an item in the dropdown menu',\n ),\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(\n 'Selection state for the title dropdown',\n ),\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(\n 'Activates/Deactivates the editing state in the title',\n ),\n /* Props passed to the input for editing the title */\n titleInputProps: PropTypes.object.description(\n 'Props passed to the input for editing the title',\n ),\n /* Enables navigation to previous page with back-arrow */\n previousPage: PropTypes.object.description(\n 'Enables navigation to previous page with back-arrow',\n ),\n /* Callback to handle navigation to previous page */\n onGoToPreviousPage: PropTypes.func.description(\n 'Callback to handle navigation to previous page',\n ),\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(\n 'min width for options dropdown menu',\n ),\n};\n\nDSPageHeader.propTypes = props;\nDSPageHeader.displayName = 'DSPageHeader';\nconst DSPageHeaderV1WithSchema = describe(DSPageHeader).deprecated(\n 'use DSPageHeaderV2',\n);\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;ADAvB,mBAAkB;AAClB,0BAAoC;AACpC,uCAAoC;AACpC,4BAA2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kB,8BAAU,OAAO,YACjC,wCACF;AAAA,EAEA,UAAU,8BAAU,KAAK,YAAY,sCAAsC;AAAA,EAE3E,SAAS,8BAAU,KAAK,YACtB,sDACF;AAAA,EAEA,iBAAiB,8BAAU,OAAO,YAChC,iDACF;AAAA,EAEA,cAAc,8BAAU,OAAO,YAC7B,qDACF;AAAA,EAEA,oBAAoB,8BAAU,KAAK,YACjC,gDACF;AAAA,EAEA,QAAQ,8BAAU,OAAO,YAAY,qCAAqC;AAAA,EAE1E,iBAAiB,8BAAU,OAAO,YAChC,qCACF;AACF;AAEA,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B,MAAM,2BAA2B,kCAAS,YAAY,EAAE,WACtD,oBACF;AACA,yBAAyB,YAAY;AAGrC,IAAO,uBAAQ;",
6
6
  "names": []
7
7
  }
@@ -28,7 +28,7 @@ var __objRest = (source, exclude) => {
28
28
  };
29
29
  import * as React from "react";
30
30
  import React2 from "react";
31
- import { describe, PropTypes } from "react-desc";
31
+ import { describe, PropTypes } from "@elliemae/ds-utilities";
32
32
  import { TooltipTextProvider } from "@elliemae/ds-truncated-tooltip-text";
33
33
  import PageHeaderImpl from "./PageHeaderImpl";
34
34
  const DSPageHeader = (_a) => {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v1/DSPageHeader.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe, PropTypes } from 'react-desc';\nimport { TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport PageHeaderImpl from './PageHeaderImpl';\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 <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\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(\n 'props injected to page header wrapper node',\n ),\n /* Function that returns the toolbar to the right of the page header */\n renderToolbar: PropTypes.func.description(\n 'Function that returns the toolbar to the right of the page header',\n ),\n /* Whether to show a separator at the bottom of the header */\n withBottomSeparator: PropTypes.bool.description(\n 'Whether to show a separator at the bottom of the header',\n ),\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(\n 'The title dropdown options',\n ),\n /* Handler when a user selects an item in the dropdown menu */\n onSelectOption: PropTypes.func.description(\n 'Handler when a user selects an item in the dropdown menu',\n ),\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(\n 'Selection state for the title dropdown',\n ),\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(\n 'Activates/Deactivates the editing state in the title',\n ),\n /* Props passed to the input for editing the title */\n titleInputProps: PropTypes.object.description(\n 'Props passed to the input for editing the title',\n ),\n /* Enables navigation to previous page with back-arrow */\n previousPage: PropTypes.object.description(\n 'Enables navigation to previous page with back-arrow',\n ),\n /* Callback to handle navigation to previous page */\n onGoToPreviousPage: PropTypes.func.description(\n 'Callback to handle navigation to previous page',\n ),\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(\n 'min width for options dropdown menu',\n ),\n};\n\nDSPageHeader.propTypes = props;\nDSPageHeader.displayName = 'DSPageHeader';\nconst DSPageHeaderV1WithSchema = describe(DSPageHeader).deprecated(\n 'use DSPageHeaderV2',\n);\nDSPageHeaderV1WithSchema.propTypes = props;\n\nexport { DSPageHeader, DSPageHeaderV1WithSchema };\nexport default DSPageHeader;\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-utilities';\nimport { TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport PageHeaderImpl from './PageHeaderImpl';\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 <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\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(\n 'props injected to page header wrapper node',\n ),\n /* Function that returns the toolbar to the right of the page header */\n renderToolbar: PropTypes.func.description(\n 'Function that returns the toolbar to the right of the page header',\n ),\n /* Whether to show a separator at the bottom of the header */\n withBottomSeparator: PropTypes.bool.description(\n 'Whether to show a separator at the bottom of the header',\n ),\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(\n 'The title dropdown options',\n ),\n /* Handler when a user selects an item in the dropdown menu */\n onSelectOption: PropTypes.func.description(\n 'Handler when a user selects an item in the dropdown menu',\n ),\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(\n 'Selection state for the title dropdown',\n ),\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(\n 'Activates/Deactivates the editing state in the title',\n ),\n /* Props passed to the input for editing the title */\n titleInputProps: PropTypes.object.description(\n 'Props passed to the input for editing the title',\n ),\n /* Enables navigation to previous page with back-arrow */\n previousPage: PropTypes.object.description(\n 'Enables navigation to previous page with back-arrow',\n ),\n /* Callback to handle navigation to previous page */\n onGoToPreviousPage: PropTypes.func.description(\n 'Callback to handle navigation to previous page',\n ),\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(\n 'min width for options dropdown menu',\n ),\n};\n\nDSPageHeader.propTypes = props;\nDSPageHeader.displayName = 'DSPageHeader';\nconst DSPageHeaderV1WithSchema = describe(DSPageHeader).deprecated(\n 'use DSPageHeaderV2',\n);\nDSPageHeaderV1WithSchema.propTypes = props;\n\nexport { DSPageHeader, DSPageHeaderV1WithSchema };\nexport default DSPageHeader;\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AACA;AACA;AAEA,MAAM,eAAe,CAAC,OAiBnB;AAjBmB,eACpB;AAAA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AAsC;AAAA,EAE3E,SAAS,UAAU,KAAK,YACtB,sDACF;AAAA,EAEA,iBAAiB,UAAU,OAAO,YAChC,iDACF;AAAA,EAEA,cAAc,UAAU,OAAO,YAC7B,qDACF;AAAA,EAEA,oBAAoB,UAAU,KAAK,YACjC,gDACF;AAAA,EAEA,QAAQ,UAAU,OAAO,YAAY,qCAAqC;AAAA,EAE1E,iBAAiB,UAAU,OAAO,YAChC,qCACF;AACF;AAEA,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B,MAAM,2BAA2B,SAAS,YAAY,EAAE,WACtD,oBACF;AACA,yBAAyB,YAAY;AAGrC,IAAO,uBAAQ;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-page-header",
3
- "version": "3.1.0-next.2",
3
+ "version": "3.1.0-next.5",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Page Header",
6
6
  "files": [
@@ -102,29 +102,23 @@
102
102
  "reportFile": "tests.xml",
103
103
  "indent": 4
104
104
  },
105
- "scripts": {
106
- "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
107
- "test": "node ../../scripts/testing/test.mjs",
108
- "lint": "node ../../scripts/lint.mjs",
109
- "dts": "node ../../scripts/dts.mjs",
110
- "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
111
- },
112
105
  "dependencies": {
113
- "@elliemae/ds-breadcrumb": "3.1.0-next.2",
114
- "@elliemae/ds-button": "3.1.0-next.2",
115
- "@elliemae/ds-classnames": "3.1.0-next.2",
116
- "@elliemae/ds-dropdownmenu": "3.1.0-next.2",
117
- "@elliemae/ds-form": "3.1.0-next.2",
118
- "@elliemae/ds-form-input-text": "3.1.0-next.2",
119
- "@elliemae/ds-grid": "3.1.0-next.2",
120
- "@elliemae/ds-icon": "3.1.0-next.2",
121
- "@elliemae/ds-icons": "3.1.0-next.2",
122
- "@elliemae/ds-truncated-tooltip-text": "3.1.0-next.2",
123
- "@elliemae/ds-utilities": "3.1.0-next.2",
124
- "prop-types": "~15.8.1",
125
- "react-desc": "~4.1.3"
106
+ "@elliemae/ds-breadcrumb": "3.1.0-next.5",
107
+ "@elliemae/ds-button": "3.1.0-next.5",
108
+ "@elliemae/ds-classnames": "3.1.0-next.5",
109
+ "@elliemae/ds-dropdownmenu": "3.1.0-next.5",
110
+ "@elliemae/ds-form": "3.1.0-next.5",
111
+ "@elliemae/ds-form-input-text": "3.1.0-next.5",
112
+ "@elliemae/ds-grid": "3.1.0-next.5",
113
+ "@elliemae/ds-icon": "3.1.0-next.5",
114
+ "@elliemae/ds-icons": "3.1.0-next.5",
115
+ "@elliemae/ds-system": "3.1.0-next.5",
116
+ "@elliemae/ds-truncated-tooltip-text": "3.1.0-next.5",
117
+ "@elliemae/ds-utilities": "3.1.0-next.5",
118
+ "prop-types": "~15.8.1"
126
119
  },
127
120
  "devDependencies": {
121
+ "@testing-library/react": "~12.1.2",
128
122
  "styled-components": "~5.3.3"
129
123
  },
130
124
  "peerDependencies": {
@@ -136,5 +130,13 @@
136
130
  "publishConfig": {
137
131
  "access": "public",
138
132
  "typeSafety": false
133
+ },
134
+ "scripts": {
135
+ "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
136
+ "test": "node ../../scripts/testing/test.mjs",
137
+ "lint": "node ../../scripts/lint.mjs",
138
+ "dts": "node ../../scripts/dts.mjs",
139
+ "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
140
+ "checkDeps": "npx -yes ../ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
139
141
  }
140
- }
142
+ }