@elliemae/ds-left-navigation 3.80.0-next.6 → 3.80.0-next.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/TruncatedTooltipText.js +25 -4
- package/dist/cjs/TruncatedTooltipText.js.map +2 -2
- package/dist/cjs/constants/index.js +4 -0
- package/dist/cjs/constants/index.js.map +2 -2
- package/dist/cjs/exported-related/Icon/index.js +24 -3
- package/dist/cjs/exported-related/Icon/index.js.map +3 -3
- package/dist/cjs/exported-related/OpenWindowItem/index.js +23 -2
- package/dist/cjs/exported-related/OpenWindowItem/index.js.map +3 -3
- package/dist/cjs/exported-related/conversion-utils/conversionConstants.js +64 -0
- package/dist/cjs/exported-related/conversion-utils/conversionConstants.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/conversionHelpers.js +192 -0
- package/dist/cjs/exported-related/conversion-utils/conversionHelpers.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/convertItemOpts.js +187 -0
- package/dist/cjs/exported-related/conversion-utils/convertItemOpts.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/getHumanReadableWarnings.js +37 -0
- package/dist/cjs/exported-related/conversion-utils/getHumanReadableWarnings.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/index.js +95 -0
- package/dist/cjs/exported-related/conversion-utils/index.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/lostCodes.js +55 -0
- package/dist/cjs/exported-related/conversion-utils/lostCodes.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/report.js +48 -0
- package/dist/cjs/exported-related/conversion-utils/report.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/types.js +28 -0
- package/dist/cjs/exported-related/conversion-utils/types.js.map +7 -0
- package/dist/cjs/exported-related/conversion-utils/validateIds.js +58 -0
- package/dist/cjs/exported-related/conversion-utils/validateIds.js.map +7 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/outOfTheBox/ItemHeader/index.js +1 -1
- package/dist/cjs/outOfTheBox/ItemHeader/index.js.map +2 -2
- package/dist/cjs/outOfTheBox/ItemLink/index.js +1 -1
- package/dist/cjs/outOfTheBox/ItemLink/index.js.map +2 -2
- package/dist/cjs/outOfTheBox/ItemSubmenu/index.js +1 -1
- package/dist/cjs/outOfTheBox/ItemSubmenu/index.js.map +2 -2
- package/dist/cjs/outOfTheBox/ItemTextLabel/index.js +1 -1
- package/dist/cjs/outOfTheBox/ItemTextLabel/index.js.map +2 -2
- package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js +1 -1
- package/dist/cjs/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +2 -2
- package/dist/cjs/outOfTheBox/ItemWithDate/index.js +1 -1
- package/dist/cjs/outOfTheBox/ItemWithDate/index.js.map +2 -2
- package/dist/cjs/parts/LeftNavFooterItem/index.js +2 -3
- package/dist/cjs/parts/LeftNavFooterItem/index.js.map +2 -2
- package/dist/cjs/react-desc-prop-types.js +58 -1
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/typescript-testing/slot-props.js +8 -0
- package/dist/cjs/typescript-testing/slot-props.js.map +2 -2
- package/dist/esm/TruncatedTooltipText.js +26 -5
- package/dist/esm/TruncatedTooltipText.js.map +2 -2
- package/dist/esm/constants/index.js +4 -0
- package/dist/esm/constants/index.js.map +2 -2
- package/dist/esm/exported-related/Icon/index.js +24 -3
- package/dist/esm/exported-related/Icon/index.js.map +3 -3
- package/dist/esm/exported-related/OpenWindowItem/index.js +23 -2
- package/dist/esm/exported-related/OpenWindowItem/index.js.map +3 -3
- package/dist/esm/exported-related/conversion-utils/conversionConstants.js +34 -0
- package/dist/esm/exported-related/conversion-utils/conversionConstants.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/conversionHelpers.js +172 -0
- package/dist/esm/exported-related/conversion-utils/conversionHelpers.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/convertItemOpts.js +157 -0
- package/dist/esm/exported-related/conversion-utils/convertItemOpts.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/getHumanReadableWarnings.js +7 -0
- package/dist/esm/exported-related/conversion-utils/getHumanReadableWarnings.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/index.js +65 -0
- package/dist/esm/exported-related/conversion-utils/index.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/lostCodes.js +25 -0
- package/dist/esm/exported-related/conversion-utils/lostCodes.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/report.js +18 -0
- package/dist/esm/exported-related/conversion-utils/report.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/types.js +2 -0
- package/dist/esm/exported-related/conversion-utils/types.js.map +7 -0
- package/dist/esm/exported-related/conversion-utils/validateIds.js +28 -0
- package/dist/esm/exported-related/conversion-utils/validateIds.js.map +7 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/outOfTheBox/ItemHeader/index.js +1 -1
- package/dist/esm/outOfTheBox/ItemHeader/index.js.map +2 -2
- package/dist/esm/outOfTheBox/ItemLink/index.js +1 -1
- package/dist/esm/outOfTheBox/ItemLink/index.js.map +2 -2
- package/dist/esm/outOfTheBox/ItemSubmenu/index.js +1 -1
- package/dist/esm/outOfTheBox/ItemSubmenu/index.js.map +2 -2
- package/dist/esm/outOfTheBox/ItemTextLabel/index.js +1 -1
- package/dist/esm/outOfTheBox/ItemTextLabel/index.js.map +2 -2
- package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js +1 -1
- package/dist/esm/outOfTheBox/ItemUncontrolledDrilldown/index.js.map +2 -2
- package/dist/esm/outOfTheBox/ItemWithDate/index.js +1 -1
- package/dist/esm/outOfTheBox/ItemWithDate/index.js.map +2 -2
- package/dist/esm/parts/LeftNavFooterItem/index.js +2 -3
- package/dist/esm/parts/LeftNavFooterItem/index.js.map +2 -2
- package/dist/esm/react-desc-prop-types.js +58 -1
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/esm/typescript-testing/slot-props.js +8 -0
- package/dist/esm/typescript-testing/slot-props.js.map +2 -2
- package/dist/types/constants/index.d.ts +12 -0
- package/dist/types/exported-related/Icon/index.d.ts +4 -0
- package/dist/types/exported-related/conversion-utils/conversionConstants.d.ts +20 -0
- package/dist/types/exported-related/conversion-utils/conversionHelpers.d.ts +25 -0
- package/dist/types/exported-related/conversion-utils/convertItemOpts.d.ts +22 -0
- package/dist/types/exported-related/conversion-utils/getHumanReadableWarnings.d.ts +7 -0
- package/dist/types/exported-related/conversion-utils/index.d.ts +12 -0
- package/dist/types/exported-related/conversion-utils/lostCodes.d.ts +23 -0
- package/dist/types/exported-related/conversion-utils/report.d.ts +3 -0
- package/dist/types/exported-related/conversion-utils/types.d.ts +37 -0
- package/dist/types/exported-related/conversion-utils/validateIds.d.ts +9 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/react-desc-prop-types.d.ts +4 -0
- package/package.json +16 -13
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type SvgIconT } from '@elliemae/ds-icons';
|
|
3
|
+
/**
|
|
4
|
+
* The styled component is created once per Icon() call, not per render:
|
|
5
|
+
* a new component type on every render would remount the icon and drop its focus.
|
|
6
|
+
*/
|
|
3
7
|
export declare const Icon: (IconComponent: React.ComponentType<{
|
|
4
8
|
color: unknown;
|
|
5
9
|
tabIndex: number;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ITEM_TYPES } from '../../constants/index.js';
|
|
2
|
+
export declare const DRILLDOWN_TYPES: string[];
|
|
3
|
+
export declare const LEAF_TYPES: string[];
|
|
4
|
+
/**
|
|
5
|
+
* Reads only own entries, so ids and types like "constructor" or "toString" do not resolve to inherited members.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getOwn: <T>(map: Record<string, T>, key: string) => T | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* The types a `HeaderComponent` can have and still be the tree header: a header, or a leaf when the header is only a link.
|
|
10
|
+
*/
|
|
11
|
+
export declare const HEADER_TYPES: string[];
|
|
12
|
+
export declare const OUT_OF_THE_BOX_TYPES: string[];
|
|
13
|
+
/**
|
|
14
|
+
* LeftNavigation renders no `CollapsedComponent` for these types (it forces it to null), so they were never in its rail.
|
|
15
|
+
*/
|
|
16
|
+
export declare const NO_RAIL_TYPES: string[];
|
|
17
|
+
export declare const DROPPED_TYPE_CODES: {
|
|
18
|
+
readonly [ITEM_TYPES.LEFT_NAV_ITEM_HEADER]: readonly ["header-item-dropped", "Header items are not part of the list"];
|
|
19
|
+
readonly [ITEM_TYPES.LEFT_NAV_ITEM_SKELETON]: readonly ["skeleton-dropped", "Skeleton items are not supported"];
|
|
20
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type DSLeftNavigationTreeT } from '@elliemae/ds-left-navigation-tree';
|
|
2
|
+
import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
|
|
3
|
+
import type { DSLeftNavBridgeT } from './types.js';
|
|
4
|
+
type OldItemT = DSLeftNavigationT.GenericItemItemProps;
|
|
5
|
+
type NewItemT = DSLeftNavigationTreeT.Item;
|
|
6
|
+
type ReportT = DSLeftNavBridgeT.ReportMutableT;
|
|
7
|
+
type ConvertListArgsT = {
|
|
8
|
+
list: readonly OldItemT[];
|
|
9
|
+
isRoot: boolean;
|
|
10
|
+
/** The dsIds (or the items themselves, when they have none) of the submenus and drilldowns being expanded, to stop a branch that contains itself. */
|
|
11
|
+
ancestors?: readonly (string | OldItemT)[];
|
|
12
|
+
report: ReportT;
|
|
13
|
+
childrenByParentId: DSLeftNavBridgeT.ChildrenByParentIdT;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* LeftNavigation lists are flat: a section is a label and the items that follow it belong to it until the next section or separator.
|
|
17
|
+
* The tree holds the children of a section inside it, so the conversion groups them.
|
|
18
|
+
*/
|
|
19
|
+
export declare const convertList: (args: ConvertListArgsT) => NewItemT[];
|
|
20
|
+
/**
|
|
21
|
+
* Returns null when the header cannot be carried over: a skeleton (the same policy as the items of the list), or a custom
|
|
22
|
+
* `Component` (no type, or a type that is not out of the box).
|
|
23
|
+
*/
|
|
24
|
+
export declare const convertHeader: (header: OldItemT, report: ReportT) => NewItemT | null;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { DSLeftNavigationTreeT } from '@elliemae/ds-left-navigation-tree';
|
|
2
|
+
import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
|
|
3
|
+
import type { DSLeftNavBridgeT } from './types.js';
|
|
4
|
+
type OldItemT = DSLeftNavigationT.GenericItemItemProps;
|
|
5
|
+
type NewItemOptsT = DSLeftNavigationTreeT.ItemOpts;
|
|
6
|
+
type ReportT = DSLeftNavBridgeT.ReportMutableT;
|
|
7
|
+
type ConvertItemOptsArgsT = {
|
|
8
|
+
item: OldItemT;
|
|
9
|
+
report: ReportT;
|
|
10
|
+
/**
|
|
11
|
+
* Leaves and drilldowns carry `RightComponent` and `labelRightSection`, the header only its `RightComponent`.
|
|
12
|
+
* Submenus and the header keep their right side only as the chevron, and the tree draws its own arrow, so it is dropped.
|
|
13
|
+
*/
|
|
14
|
+
kind: 'leaf' | 'drilldown' | 'submenu' | 'header' | 'section';
|
|
15
|
+
/** The caller merges labelRightSection into the label (sections), so it is not lost. */
|
|
16
|
+
joinable?: boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Builds the tree item options shared by every converted type and records what could not be carried over.
|
|
20
|
+
*/
|
|
21
|
+
export declare const convertItemOpts: (args: ConvertItemOptsArgsT) => NewItemOptsT;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DSLeftNavBridgeT } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* given the report, it will return a human readable list of warnings
|
|
4
|
+
* @param report - The report to get the warnings from.
|
|
5
|
+
* @returns A list of human readable warnings.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getHumanReadableWarnings: (report: DSLeftNavBridgeT.ReportMutableT) => string[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DSLeftNavBridgeT } from './types.js';
|
|
2
|
+
import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Converts LeftNavigation items to DSLeftNavigationTree items and reports what the tree cannot carry over.
|
|
5
|
+
* It is a migration aid, not a drop-in replacement: read `report.humanReadableWarnings` and `report.lostEntries`.
|
|
6
|
+
* @param items - The LeftNavigation items (the flat list shown by the body).
|
|
7
|
+
* @param options - Children of the submenus (`childrenByParentId`), and the `HeaderComponent` and `BodyHeaderComponent` props.
|
|
8
|
+
* @returns The converted items and the report. `HeaderComponent` becomes `convertedHeader`, a disclosure, and
|
|
9
|
+
* `convertedHeaderItems` is its content (the list under the header `dsId` in `childrenByParentId`) to pass as `items`
|
|
10
|
+
* while it is open. A header that is only a link goes to the front of `convertedItems` with `headerAsFirstLeaf`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const checkAndConvertItems: (items: readonly DSLeftNavigationT.GenericItemItemProps[], options?: DSLeftNavBridgeT.OptionsT) => DSLeftNavBridgeT.ResultT;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single source of truth for the codes of what the conversion cannot carry over: the type, the empty report and the warnings derive from it.
|
|
3
|
+
*/
|
|
4
|
+
export declare const WARNING_PER_LOST_CODE: {
|
|
5
|
+
readonly 'submenu-without-children': "- Encountered submenu items without an entry in \"childrenByParentId\" - the tree needs the children in the data, the conversion created an empty parent";
|
|
6
|
+
readonly 'custom-component-dropped': "- Encountered items with a custom \"Component\" - a treeitem cannot hold arbitrary interactive content (WCAG 4.1.2), the conversion dropped them";
|
|
7
|
+
readonly 'skeleton-dropped': "- Encountered skeleton items - loading states are not part of the tree, the conversion dropped them";
|
|
8
|
+
readonly 'header-item-dropped': "- Encountered an item of type header inside \"items\" - the tree has one header disclosure, passed as \"HeaderComponent\", the conversion dropped it from the list";
|
|
9
|
+
readonly 'header-content-dropped': "- Encountered \"headerAsFirstLeaf\" together with a list for the header in \"childrenByParentId\" - a header that is the first item of the list has nothing to open, the conversion ignored that list. Drop \"headerAsFirstLeaf\" to keep the header as a disclosure with its content";
|
|
10
|
+
readonly 'header-without-content': "- Encountered a \"HeaderComponent\" without an entry in \"childrenByParentId\" - the tree header is a disclosure with nothing to open. If the header is only a link, pass \"headerAsFirstLeaf\" to make it the first item of the list";
|
|
11
|
+
readonly 'right-component-ctx': "- Encountered \"RightComponent\" on a leaf, drilldown or header, or a \"labelRightSection\" that is not text - the conversion kept it, but the tree only gives it \"{ item }\" and an empty \"ctx\", so it must not read \"ctx\". The \"item\" it receives is the converted tree item (another type, with only the options the tree keeps), so it must not read legacy fields either. The conversion does not inspect what it draws: remove buttons, menus or any other control inside it before rendering the converted data, a treeitem cannot hold them";
|
|
12
|
+
readonly 'body-header-dropped': "- Encountered \"BodyHeaderComponent\" - the tree shows the opened submenu as the parent of its children, the conversion ignored it";
|
|
13
|
+
readonly 'component-with-ctx-dropped': "- Encountered \"LeftComponent\" or \"BottomComponent\", or a \"RightComponent\" on a submenu or section - the tree has no place for them (parents draw their own arrow), the conversion dropped them";
|
|
14
|
+
readonly 'collapsed-component-ctx': "- Encountered \"CollapsedComponent\" - the conversion kept it as is, but the tree only gives it \"{ item }\" with the converted tree item (another type, with only the options the tree keeps), so it must not read \"ctx\" or legacy fields of the item";
|
|
15
|
+
readonly 'label-style-dropped': "- Encountered \"labelBold\" or \"labelColor\" - state conveyed only by weight or color fails WCAG 1.3.1 and 1.4.1, the conversion dropped them";
|
|
16
|
+
readonly 'label-truncate-to-wrap': "- Encountered \"labelOverflow: truncate\" - truncated labels need a hover tooltip (1.4.13) and hide text from users who zoom (1.4.10), the conversion uses \"wrap\"";
|
|
17
|
+
readonly 'aria-overrides-dropped': "- Encountered \"ariaLabel\", \"ariaRole\", \"ariaLive\", \"ariaExpanded\" or \"ariaDescribedBy\" - the tree computes its own names and states, the conversion dropped them";
|
|
18
|
+
readonly 'item-options-dropped': "- Encountered item options the tree does not have (selectable on a drilldown, focuseable, openable, closable, indent, skeletonVariant, labelDataTestId, any other key of itemOpts, or a non-text labelRightSection where it cannot be shown) - the conversion dropped them, see lostEntries for the list per item";
|
|
19
|
+
readonly 'section-in-nested-list-dropped': "- Encountered a section or separator inside a submenu or drilldown - the tree supports them only at the root level, the conversion dropped them";
|
|
20
|
+
readonly 'missing-id': "- Encountered items without a \"dsId\" - the tree finds every item by its \"dsId\", so each one needs its own; set it before using the converted items";
|
|
21
|
+
readonly 'duplicate-id': "- Encountered the same \"dsId\" on more than one item of the converted hierarchy - the tree finds items by \"dsId\" across all levels, so a repeated one overwrites the other's label and parent; give each item a unique \"dsId\" (LeftNavigation only needed it unique inside the list that is shown)";
|
|
22
|
+
readonly 'unknown-type-dropped': "- Encountered items with a type that is not out of the box, or a \"HeaderComponent\" that is not a header, link, text-label or with-date - the conversion dropped them";
|
|
23
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { DSLeftNavigationTreeT } from '@elliemae/ds-left-navigation-tree';
|
|
2
|
+
import type { WARNING_PER_LOST_CODE } from './lostCodes.js';
|
|
3
|
+
import type { DSLeftNavigationT } from '../../react-desc-prop-types.js';
|
|
4
|
+
export declare namespace DSLeftNavBridgeT {
|
|
5
|
+
/**
|
|
6
|
+
* Each code is something LeftNavigation could do that the tree cannot carry over.
|
|
7
|
+
*/
|
|
8
|
+
type LostCodeT = keyof typeof WARNING_PER_LOST_CODE;
|
|
9
|
+
type LostEntryT = {
|
|
10
|
+
code: LostCodeT;
|
|
11
|
+
dsId: string;
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
type ReportMutableT = {
|
|
15
|
+
detectedLostsOnConversion: Record<LostCodeT, boolean>;
|
|
16
|
+
lostEntries: LostEntryT[];
|
|
17
|
+
humanReadableWarnings: string[];
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* LeftNavigation keeps the hierarchy outside of the data: a submenu has no children in its item, the consumer swaps `items` when the submenu is opened.
|
|
21
|
+
* This map gives the bridge the lists the consumer swaps in, keyed by the submenu dsId.
|
|
22
|
+
*/
|
|
23
|
+
type ChildrenByParentIdT = Record<string, readonly DSLeftNavigationT.GenericItemItemProps[]>;
|
|
24
|
+
type OptionsT = {
|
|
25
|
+
childrenByParentId?: ChildrenByParentIdT;
|
|
26
|
+
HeaderComponent?: DSLeftNavigationT.GenericItemItemProps;
|
|
27
|
+
BodyHeaderComponent?: DSLeftNavigationT.GenericItemItemProps;
|
|
28
|
+
/** The header is only a link, with nothing to open: it becomes the first item of the list instead of a disclosure. */
|
|
29
|
+
headerAsFirstLeaf?: boolean;
|
|
30
|
+
};
|
|
31
|
+
type ResultT = {
|
|
32
|
+
convertedItems: DSLeftNavigationTreeT.Item[];
|
|
33
|
+
convertedHeader?: DSLeftNavigationTreeT.Item;
|
|
34
|
+
convertedHeaderItems?: DSLeftNavigationTreeT.Item[];
|
|
35
|
+
report: ReportMutableT;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DSLeftNavigationTreeT } from '@elliemae/ds-left-navigation-tree';
|
|
2
|
+
import type { DSLeftNavBridgeT } from './types.js';
|
|
3
|
+
type NewItemT = DSLeftNavigationTreeT.Item;
|
|
4
|
+
/**
|
|
5
|
+
* The tree finds items by `dsId` across every level of the list it receives, LeftNavigation only needed them unique inside each list it showed.
|
|
6
|
+
* Reports the items without one and the ids that repeat, once per repeated id.
|
|
7
|
+
*/
|
|
8
|
+
export declare const reportIdProblems: (items: readonly NewItemT[], report: DSLeftNavBridgeT.ReportMutableT, extraIds?: readonly string[]) => void;
|
|
9
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { LeftNavigation } from './LeftNavigation.js';
|
|
2
2
|
export default LeftNavigation;
|
|
3
3
|
export { CHEVRON_BACK_DS_ID, DSLeftNavigationName, DSLeftNavigationSlots, FOOTER_DS_ID, FOOTER_MENU_CLOSE_DS_ID, ITEM_TYPES, LABEL_OVERFLOW, LEFT_NAVIGATION_DATA_TESTID, LEFT_NAVIGATION_REGION_FOCUSES, LEFT_NAVIGATION_SLOTS, MAP_ITEMS_TO_SKELETON, } from './constants/index.js';
|
|
4
|
+
export { checkAndConvertItems } from './exported-related/conversion-utils/index.js';
|
|
5
|
+
export type { DSLeftNavBridgeT } from './exported-related/conversion-utils/types.js';
|
|
4
6
|
export { ChevronItem, Icon, ItemRenderer, Notifications, OpenWindow } from './exported-related/index.js';
|
|
5
7
|
export { LeftNavigation, LeftNavigationWithSchema } from './LeftNavigation.js';
|
|
6
8
|
export { DSLeftNavigationItemPropTypesSchema, DSLeftNavigationPropTypesSchema, LeftNavItemOptionsSchema, LeftNavItemPropsSchema, type DSLeftNavigationT, } from './react-desc-prop-types.js';
|
|
@@ -21,6 +21,7 @@ export declare namespace DSLeftNavigationT {
|
|
|
21
21
|
dsLeftnavigationFooterMenuCollapse: () => object;
|
|
22
22
|
dsLeftnavigationFooterSeparator: () => object;
|
|
23
23
|
dsLeftnavigationHeaderArea: () => object;
|
|
24
|
+
dsLeftnavigationIcon: () => object;
|
|
24
25
|
dsLeftnavigationItem: () => object;
|
|
25
26
|
dsLeftnavigationItemBorderBottom: () => object;
|
|
26
27
|
dsLeftnavigationItemChevronBack: () => object;
|
|
@@ -32,11 +33,14 @@ export declare namespace DSLeftNavigationT {
|
|
|
32
33
|
dsLeftnavigationMessagesIcon: () => object;
|
|
33
34
|
dsLeftnavigationNotificationsContainer: () => object;
|
|
34
35
|
dsLeftnavigationNotificationsIcon: () => object;
|
|
36
|
+
dsLeftnavigationOpenWindowIcon: () => object;
|
|
35
37
|
dsLeftnavigationRightContainer: () => object;
|
|
36
38
|
dsLeftnavigationRoot: () => object;
|
|
37
39
|
dsLeftnavigationSectionContainer: () => object;
|
|
38
40
|
dsLeftnavigationSectionLabel: () => object;
|
|
39
41
|
dsLeftnavigationSectionRightLabel: () => object;
|
|
42
|
+
dsLeftnavigationTruncatedLabel: () => object;
|
|
43
|
+
dsLeftnavigationTruncatedLabelTooltip: () => object;
|
|
40
44
|
dsLeftnavigationVerticalSeparator: () => object;
|
|
41
45
|
};
|
|
42
46
|
type LabelOveflowT = 'wrap' | 'wrapAll' | 'truncate';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-left-navigation",
|
|
3
|
-
"version": "3.80.0-next.
|
|
3
|
+
"version": "3.80.0-next.60",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Left Navigation",
|
|
6
6
|
"files": [
|
|
@@ -36,20 +36,23 @@
|
|
|
36
36
|
"typeSafety": false
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-
|
|
40
|
-
"@elliemae/ds-circular-progress-indicator": "3.80.0-next.
|
|
41
|
-
"@elliemae/ds-
|
|
42
|
-
"@elliemae/ds-grid": "3.80.0-next.
|
|
43
|
-
"@elliemae/ds-icons": "3.80.0-next.
|
|
44
|
-
"@elliemae/ds-
|
|
45
|
-
"@elliemae/ds-
|
|
46
|
-
"@elliemae/ds-skeleton": "3.80.0-next.
|
|
39
|
+
"@elliemae/ds-button-v2": "3.80.0-next.60",
|
|
40
|
+
"@elliemae/ds-circular-progress-indicator": "3.80.0-next.60",
|
|
41
|
+
"@elliemae/ds-floating-context": "3.80.0-next.60",
|
|
42
|
+
"@elliemae/ds-grid": "3.80.0-next.60",
|
|
43
|
+
"@elliemae/ds-icons": "3.80.0-next.60",
|
|
44
|
+
"@elliemae/ds-left-navigation-tree": "3.80.0-next.60",
|
|
45
|
+
"@elliemae/ds-props-helpers": "3.80.0-next.60",
|
|
46
|
+
"@elliemae/ds-skeleton": "3.80.0-next.60",
|
|
47
|
+
"@elliemae/ds-system": "3.80.0-next.60"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
50
|
+
"@elliemae/ds-monorepo-devops": "3.80.0-next.60",
|
|
51
|
+
"@elliemae/ds-test-utils": "3.80.0-next.60",
|
|
52
|
+
"@elliemae/ds-typescript-helpers": "3.80.0-next.60",
|
|
53
|
+
"@playwright/experimental-ct-react": "1.61.1",
|
|
49
54
|
"jest": "^30.0.0",
|
|
50
|
-
"styled-components": "~5.3.11"
|
|
51
|
-
"@elliemae/ds-monorepo-devops": "3.80.0-next.6",
|
|
52
|
-
"@elliemae/ds-test-utils": "3.80.0-next.6"
|
|
55
|
+
"styled-components": "~5.3.11"
|
|
53
56
|
},
|
|
54
57
|
"peerDependencies": {
|
|
55
58
|
"lodash-es": "^4.18.1",
|
|
@@ -58,7 +61,7 @@
|
|
|
58
61
|
"styled-components": "~5.3.11"
|
|
59
62
|
},
|
|
60
63
|
"scripts": {
|
|
61
|
-
"test": "ds-monorepo-devops test --passWithNoTests --coverage=\"false\"",
|
|
64
|
+
"test": "playwright test -c ./playwright.config.mjs && ds-monorepo-devops test --passWithNoTests --coverage=\"false\"",
|
|
62
65
|
"lint": "node ../../../scripts/lint.mjs --fix",
|
|
63
66
|
"lint:strict": "node ../../../scripts/lint-strict.mjs",
|
|
64
67
|
"dts": "node ../../../scripts/dts.mjs",
|