@tap-payments/os-micro-frontend-shared 0.3.284-test.1794820094 → 0.3.285
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/build/_chunks/{chunk-MEM7VSBN.js → chunk-7EIZDPRX.js} +1 -1
- package/build/_chunks/{chunk-54STY6MC.js → chunk-CKJ63TJ5.js} +1 -1
- package/build/_chunks/chunk-D7SCPBNH.js +1 -0
- package/build/_chunks/chunk-E6SXZOXX.js +2 -0
- package/build/_chunks/{chunk-H2KCDUMN.js → chunk-J5Y23R6K.js} +1 -1
- package/build/_chunks/{chunk-QP4V7L7P.js → chunk-R7AVLGCS.js} +1 -1
- package/build/_chunks/{chunk-ZA7JORR7.js → chunk-VBB5WMVK.js} +1 -1
- package/build/_chunks/{chunk-SVHOBX55.js → chunk-YHRFQZCJ.js} +1 -1
- package/build/_chunks/chunk-Z2ELLNWM.js +1 -0
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/ExpandableChip/ExpandableChip.d.ts +4 -0
- package/build/components/ExpandableChip/constants.d.ts +44 -0
- package/build/components/ExpandableChip/hooks/useExpandableChip.d.ts +23 -0
- package/build/components/ExpandableChip/index.d.ts +3 -0
- package/build/components/ExpandableChip/index.js +1 -0
- package/build/components/{LeftPeekRightExpandingChip → ExpandableChip}/style.d.ts +564 -10
- package/build/components/ExpandableChip/type.d.ts +87 -0
- package/build/components/ExpandableChip/utils.d.ts +16 -0
- package/build/components/FilterDropdown/components/MerchantsFilterItem/type.d.ts +0 -4
- package/build/components/FilterDropdown/components/MerchantsFilterItem/utils.d.ts +2 -15
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TreeDropdown/TreeDropdown.d.ts +4 -0
- package/build/components/TreeDropdown/TreeNodeItem/SelectionControl.d.ts +8 -0
- package/build/components/TreeDropdown/TreeNodeItem/TreeNodeItem.d.ts +13 -0
- package/build/components/TreeDropdown/TreeNodeItem/index.d.ts +2 -0
- package/build/components/TreeDropdown/TreeNodeItem/style.d.ts +18 -0
- package/build/components/TreeDropdown/TreeNodeList/List.d.ts +6 -0
- package/build/components/TreeDropdown/TreeNodeList/TreeNodeList.d.ts +17 -0
- package/build/components/TreeDropdown/TreeNodeList/style.d.ts +6 -0
- package/build/components/TreeDropdown/context/TreeDropdownProvider.d.ts +15 -0
- package/build/components/TreeDropdown/hooks/useSearch.d.ts +18 -0
- package/build/components/TreeDropdown/hooks/useTreeDropdown.d.ts +12 -0
- package/build/components/TreeDropdown/index.d.ts +4 -0
- package/build/components/TreeDropdown/index.js +1 -0
- package/build/components/TreeDropdown/style.d.ts +13 -0
- package/build/components/TreeDropdown/type.d.ts +96 -0
- package/build/components/TreeDropdown/utils.d.ts +36 -0
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/WindowServices/index.js +1 -1
- package/build/components/index.d.ts +4 -4
- package/build/components/index.js +1 -1
- package/build/components/modules/JSONViewWindow/index.js +1 -1
- package/build/components/modules/RangeCalender/index.js +1 -1
- package/build/components/modules/VirtualTables/index.js +1 -1
- package/build/components/modules/WindowShell/index.js +1 -1
- package/build/components/modules/index.js +1 -1
- package/build/datetime/components/index.js +1 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/build/_chunks/chunk-2IOTEGXO.js +0 -2
- package/build/_chunks/chunk-VCAGS4JE.js +0 -2
- package/build/_chunks/chunk-VRPTMDSJ.js +0 -1
- package/build/_chunks/chunk-W2HSCMPT.js +0 -1
- package/build/components/LeftPeekRightExpandingChip/LeftPeekRightExpandingChip.d.ts +0 -13
- package/build/components/LeftPeekRightExpandingChip/index.d.ts +0 -2
- package/build/components/LeftPeekRightExpandingChip/index.js +0 -1
- package/build/components/LeftPeekRightExpandingChip/type.d.ts +0 -7
- package/build/components/LeftPeekRightExpandingChip/useLeftPeekRightExpandingChip.d.ts +0 -26
- package/build/components/MultiLevelMenu/MultiLevelMenu.d.ts +0 -10
- package/build/components/MultiLevelMenu/MultiLevelMenuItem.d.ts +0 -6
- package/build/components/MultiLevelMenu/MultiLevelMenuPanel.d.ts +0 -6
- package/build/components/MultiLevelMenu/constants.d.ts +0 -56
- package/build/components/MultiLevelMenu/hooks/useMultiLevelMenuContext.d.ts +0 -24
- package/build/components/MultiLevelMenu/hooks/useMultiLevelMenuSearch.d.ts +0 -11
- package/build/components/MultiLevelMenu/hooks/useMultiLevelMenuSelection.d.ts +0 -25
- package/build/components/MultiLevelMenu/hooks/useSubmenu.d.ts +0 -12
- package/build/components/MultiLevelMenu/icons.d.ts +0 -7
- package/build/components/MultiLevelMenu/index.d.ts +0 -3
- package/build/components/MultiLevelMenu/index.js +0 -1
- package/build/components/MultiLevelMenu/style.d.ts +0 -58
- package/build/components/MultiLevelMenu/type.d.ts +0 -239
- package/build/components/MultiLevelMenu/utils.d.ts +0 -122
- package/build/components/RightLeftExpandingCenterChip/RightLeftExpandingCenterChip.d.ts +0 -36
- package/build/components/RightLeftExpandingCenterChip/index.d.ts +0 -2
- package/build/components/RightLeftExpandingCenterChip/index.js +0 -1
- package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -3417
- package/build/components/RightLeftExpandingCenterChip/type.d.ts +0 -11
- package/build/components/RightLeftExpandingCenterChip/useRightLeftExpandingCenterChip.d.ts +0 -41
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ExpandableChipVariant, ResolvedExpandableChipTransition } from './type';
|
|
2
|
+
export declare const expandableChipClassNamePrefix: "os-shared-ExpandableChip";
|
|
3
|
+
export declare const expandableChipClassNames: {
|
|
4
|
+
/** Outer element. Receives consumer `className` / `sx`. */
|
|
5
|
+
readonly root: "os-shared-ExpandableChip-root";
|
|
6
|
+
/** Wrapper around `main` and its adornments — the part that shifts for `expandFrom="start" | "end"`. */
|
|
7
|
+
readonly mainGroup: "os-shared-ExpandableChip-mainGroup";
|
|
8
|
+
/** The always-visible chip. */
|
|
9
|
+
readonly main: "os-shared-ExpandableChip-main";
|
|
10
|
+
/** `startAdornment` / `endAdornment` container. */
|
|
11
|
+
readonly adornment: "os-shared-ExpandableChip-adornment";
|
|
12
|
+
/** One revealed chip (start or end side). */
|
|
13
|
+
readonly item: "os-shared-ExpandableChip-item";
|
|
14
|
+
/** Decorative sliver hinting at hidden items (`default` variant only). */
|
|
15
|
+
readonly peek: "os-shared-ExpandableChip-peek";
|
|
16
|
+
};
|
|
17
|
+
/** Chip height and collapsed sliver width (px). */
|
|
18
|
+
export declare const EXPANDABLE_CHIP_CHIP_SIZE_PX = 24;
|
|
19
|
+
/** Space between open chips (px). */
|
|
20
|
+
export declare const EXPANDABLE_CHIP_GAP_PX = 3;
|
|
21
|
+
/** `stacked`: how far each stacked sliver sticks out beyond the previous one (px). */
|
|
22
|
+
export declare const EXPANDABLE_CHIP_STACK_STEP_PX = 6;
|
|
23
|
+
/** `default` variant: how far the decorative sliver sticks out beyond `main` (px). */
|
|
24
|
+
export declare const EXPANDABLE_CHIP_PEEK_OFFSET_PX = 5;
|
|
25
|
+
/** Adornment width animation duration (s) — same for both variants. */
|
|
26
|
+
export declare const EXPANDABLE_CHIP_ADORNMENT_DURATION_S = 0.2;
|
|
27
|
+
/** Peek / main transition duration (s) used by the `default` variant for its sliver. */
|
|
28
|
+
export declare const EXPANDABLE_CHIP_PEEK_DURATION_S = 0.18;
|
|
29
|
+
/** Root z-index while open (a consumer `sx.zIndex` wins). */
|
|
30
|
+
export declare const EXPANDABLE_CHIP_OPEN_Z_INDEX = 1000;
|
|
31
|
+
export declare const EXPANDABLE_CHIP_DEFAULT_VARIANT: ExpandableChipVariant;
|
|
32
|
+
/**
|
|
33
|
+
* Variant defaults. Each variant only decides timing, padding, and how an item looks closed vs open —
|
|
34
|
+
* the positions come from the shared layout in `utils.ts`.
|
|
35
|
+
*/
|
|
36
|
+
export declare const EXPANDABLE_CHIP_VARIANTS: Record<ExpandableChipVariant, ResolvedExpandableChipTransition & {
|
|
37
|
+
/** Horizontal padding inside `main` and open items (px). */
|
|
38
|
+
chipPaddingX: number;
|
|
39
|
+
}>;
|
|
40
|
+
/** Values used when `transition={false}` or the user prefers reduced motion. */
|
|
41
|
+
export declare const EXPANDABLE_CHIP_NO_MOTION: {
|
|
42
|
+
readonly duration: 0;
|
|
43
|
+
readonly stagger: 0;
|
|
44
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ExpandableChipProps } from '../type';
|
|
3
|
+
type UseExpandableChipArgs = Pick<ExpandableChipProps, 'main' | 'startItems' | 'endItems' | 'startAdornment' | 'endAdornment' | 'variant' | 'transition' | 'open' | 'defaultOpen' | 'onOpenChange'> & {
|
|
4
|
+
expandFrom: NonNullable<ExpandableChipProps['expandFrom']>;
|
|
5
|
+
};
|
|
6
|
+
/** Open state, measurement, layout, and adornment motion values for `ExpandableChip`. */
|
|
7
|
+
export declare function useExpandableChip({ main, startItems, endItems, startAdornment, endAdornment, expandFrom, variant, transition, open: openProp, defaultOpen, onOpenChange, }: UseExpandableChipArgs): {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
motion: Required<import("../type").ExpandableChipTransition>;
|
|
10
|
+
variant: import("../type").ExpandableChipVariant;
|
|
11
|
+
chipPaddingX: number;
|
|
12
|
+
handleOpen: () => void;
|
|
13
|
+
handleClose: () => void;
|
|
14
|
+
layout: import("../type").ExpandableChipLayout;
|
|
15
|
+
mainRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
16
|
+
startContentRefs: import("react").MutableRefObject<(HTMLSpanElement | null)[]>;
|
|
17
|
+
endContentRefs: import("react").MutableRefObject<(HTMLSpanElement | null)[]>;
|
|
18
|
+
startAdornmentRef: import("react").MutableRefObject<HTMLSpanElement | null>;
|
|
19
|
+
endAdornmentRef: import("react").MutableRefObject<HTMLSpanElement | null>;
|
|
20
|
+
startAdornmentWidth: import("framer-motion").MotionValue<number>;
|
|
21
|
+
endAdornmentWidth: import("framer-motion").MotionValue<number>;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as default,a as expandableChipClassNames}from'../../_chunks/chunk-D7SCPBNH.js';import'../../_chunks/chunk-Z2DUFVI5.js';import'../../_chunks/chunk-3M2GZVQW.js';import'../../_chunks/chunk-LS57WE6K.js';
|