@tap-payments/os-micro-frontend-shared 0.3.285 → 0.3.287-test.1794827203
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/README.md +2 -2
- package/build/_chunks/chunk-2IOTEGXO.js +2 -0
- package/build/_chunks/chunk-BVPHSJ4E.js +1 -0
- package/build/_chunks/chunk-UUKAYOKI.js +2 -0
- package/build/_chunks/chunk-UV3MEUO4.js +1 -0
- package/build/_chunks/chunk-XFW7RVD6.js +1 -0
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/FilterButton/FilterButton.d.ts +4 -0
- package/build/components/FilterButton/constants.d.ts +22 -0
- package/build/components/FilterButton/icons.d.ts +3 -0
- package/build/components/FilterButton/index.d.ts +3 -0
- package/build/components/FilterButton/index.js +1 -0
- package/build/components/FilterButton/style.d.ts +9 -0
- package/build/components/FilterButton/type.d.ts +44 -0
- package/build/components/FilterPopover/FilterPopover.d.ts +4 -0
- package/build/components/FilterPopover/constants.d.ts +19 -0
- package/build/components/FilterPopover/hooks/useFilterPopover.d.ts +9 -0
- package/build/components/FilterPopover/index.d.ts +5 -0
- package/build/components/FilterPopover/index.js +1 -0
- package/build/components/FilterPopover/style.d.ts +24 -0
- package/build/components/FilterPopover/type.d.ts +56 -0
- package/build/components/ListHeader/components/index.d.ts +0 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/MultiLevelMenu/MultiLevelMenu.d.ts +10 -0
- package/build/components/MultiLevelMenu/MultiLevelMenuItem.d.ts +6 -0
- package/build/components/MultiLevelMenu/MultiLevelMenuPanel.d.ts +6 -0
- package/build/components/MultiLevelMenu/constants.d.ts +56 -0
- package/build/components/MultiLevelMenu/hooks/useMultiLevelMenuContext.d.ts +24 -0
- package/build/components/MultiLevelMenu/hooks/useMultiLevelMenuSearch.d.ts +11 -0
- package/build/components/MultiLevelMenu/hooks/useMultiLevelMenuSelection.d.ts +25 -0
- package/build/components/MultiLevelMenu/hooks/useSubmenu.d.ts +12 -0
- package/build/components/MultiLevelMenu/icons.d.ts +7 -0
- package/build/components/MultiLevelMenu/index.d.ts +3 -0
- package/build/components/MultiLevelMenu/index.js +1 -0
- package/build/components/MultiLevelMenu/style.d.ts +58 -0
- package/build/components/MultiLevelMenu/type.d.ts +239 -0
- package/build/components/MultiLevelMenu/utils.d.ts +122 -0
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableViewToggleButton/TableViewToggleButton.d.ts +4 -0
- package/build/components/TableViewToggleButton/constants.d.ts +24 -0
- package/build/components/TableViewToggleButton/icons.d.ts +3 -0
- package/build/components/TableViewToggleButton/index.d.ts +3 -0
- package/build/components/TableViewToggleButton/index.js +1 -0
- package/build/components/TableViewToggleButton/style.d.ts +7 -0
- package/build/components/TableViewToggleButton/type.d.ts +26 -0
- package/build/components/index.d.ts +8 -8
- package/build/components/index.js +1 -1
- package/build/datetime/components/index.js +1 -1
- package/build/index.js +1 -1
- package/package.json +1 -5
- package/build/_chunks/chunk-BT4FYCLB.js +0 -1
- package/build/_chunks/chunk-E6SXZOXX.js +0 -2
- package/build/_chunks/chunk-S6DUWS2C.js +0 -1
- package/build/_chunks/chunk-Z2ELLNWM.js +0 -1
- package/build/components/CountryFilter/CountryFilter.d.ts +0 -14
- package/build/components/CountryFilter/index.d.ts +0 -3
- package/build/components/CountryFilter/index.js +0 -1
- package/build/components/CountryFilter/style.d.ts +0 -16
- package/build/components/FilterDropdown/FilterDropdown.d.ts +0 -22
- package/build/components/FilterDropdown/FilterDropdownContext.d.ts +0 -9
- package/build/components/FilterDropdown/components/BrandItem/BrandItem.d.ts +0 -12
- package/build/components/FilterDropdown/components/BrandItem/index.d.ts +0 -2
- package/build/components/FilterDropdown/components/BrandItem/style.d.ts +0 -4
- package/build/components/FilterDropdown/components/CountriesItem/CountriesItem.d.ts +0 -12
- package/build/components/FilterDropdown/components/CountriesItem/index.d.ts +0 -1
- package/build/components/FilterDropdown/components/CurrenciesItem/CurrenciesItem.d.ts +0 -12
- package/build/components/FilterDropdown/components/CurrenciesItem/index.d.ts +0 -1
- package/build/components/FilterDropdown/components/FlatMerchantsListMenu/FlatMerchantsListMenu.d.ts +0 -12
- package/build/components/FilterDropdown/components/FlatMerchantsListMenu/index.d.ts +0 -2
- package/build/components/FilterDropdown/components/FlatMerchantsListMenu/style.d.ts +0 -14
- package/build/components/FilterDropdown/components/MerchantItem/MerchantItem.d.ts +0 -13
- package/build/components/FilterDropdown/components/MerchantItem/index.d.ts +0 -2
- package/build/components/FilterDropdown/components/MerchantsFilterItem/MerchantsFilterItem.d.ts +0 -4
- package/build/components/FilterDropdown/components/MerchantsFilterItem/index.d.ts +0 -4
- package/build/components/FilterDropdown/components/MerchantsFilterItem/type.d.ts +0 -20
- package/build/components/FilterDropdown/components/MerchantsFilterItem/utils.d.ts +0 -7
- package/build/components/FilterDropdown/components/RetailersItem/RetailersItem.d.ts +0 -14
- package/build/components/FilterDropdown/components/RetailersItem/index.d.ts +0 -1
- package/build/components/FilterDropdown/components/RetailersItem/style.d.ts +0 -4
- package/build/components/FilterDropdown/components/index.d.ts +0 -6
- package/build/components/FilterDropdown/index.d.ts +0 -5
- package/build/components/FilterDropdown/index.js +0 -1
- package/build/components/FilterDropdown/style.d.ts +0 -25
- package/build/components/FilterDropdown/type.d.ts +0 -4
- package/build/components/Filters/index.d.ts +0 -1
- package/build/components/Filters/index.js +0 -1
- package/build/components/Filters/style.d.ts +0 -13
- package/build/components/ListColumnFilter/ListColumnFilter.d.ts +0 -17
- package/build/components/ListColumnFilter/index.d.ts +0 -1
- package/build/components/ListColumnFilter/index.js +0 -1
- package/build/components/ListColumnFilter/style.d.ts +0 -19
- package/build/components/ListHeader/components/ListHeaderSheetToggle.d.ts +0 -9
- package/build/components/PhoneFilter/PhoneFilter.d.ts +0 -10
- package/build/components/PhoneFilter/index.d.ts +0 -1
- package/build/components/PhoneFilter/index.js +0 -1
- package/build/components/StatusFilter/StatusFilter.d.ts +0 -15
- package/build/components/StatusFilter/index.d.ts +0 -1
- package/build/components/StatusFilter/index.js +0 -1
- package/build/components/StatusFilter/utils.d.ts +0 -4
- package/build/components/TreeDropdown/TreeDropdown.d.ts +0 -4
- package/build/components/TreeDropdown/TreeNodeItem/SelectionControl.d.ts +0 -8
- package/build/components/TreeDropdown/TreeNodeItem/TreeNodeItem.d.ts +0 -13
- package/build/components/TreeDropdown/TreeNodeItem/index.d.ts +0 -2
- package/build/components/TreeDropdown/TreeNodeItem/style.d.ts +0 -18
- package/build/components/TreeDropdown/TreeNodeList/List.d.ts +0 -6
- package/build/components/TreeDropdown/TreeNodeList/TreeNodeList.d.ts +0 -17
- package/build/components/TreeDropdown/TreeNodeList/style.d.ts +0 -6
- package/build/components/TreeDropdown/context/TreeDropdownProvider.d.ts +0 -15
- package/build/components/TreeDropdown/hooks/useSearch.d.ts +0 -18
- package/build/components/TreeDropdown/hooks/useTreeDropdown.d.ts +0 -12
- package/build/components/TreeDropdown/index.d.ts +0 -4
- package/build/components/TreeDropdown/index.js +0 -1
- package/build/components/TreeDropdown/style.d.ts +0 -13
- package/build/components/TreeDropdown/type.d.ts +0 -96
- package/build/components/TreeDropdown/utils.d.ts +0 -36
|
@@ -1 +1 @@
|
|
|
1
|
-
export{pc as ColumnViewsPicker,rc as CreateViewDialog,nc as CustomViews,oc as DefaultViews,qc as ViewsDropdown,Jb as areAllColumnsSelected,Pb as areAllCurrentColumnsSelected,Sb as areColumnsEqual,Kb as areSomeColumnsSelected,Qb as areSomeCurrentColumnsSelected,ic as buildFullTemplateLayouts,gc as buildRequiredColumnView,qb as convertColumnsToLayoutSection,$b as convertTemplateToColumnsView,ac as convertTemplatesToColumnsView,yb as countCustomTemplates,zb as countCustomViewMenuItems,sb as createCustomViewMenuItem,Mb as deepCloneColumns,Fb as getColumnCheckState,Yb as getColumnOrder,pb as getColumnsByMode,ec as getLayoutCodesForMode,rb as getLayoutDataFromTemplates,fc as getOtherModeSectionCode,Xb as getSubmenuFromTemplateLayout,Cb as getSubmenuItems,Eb as getSubmenuItemsForDisplay,ub as getTemplateRole,Zb as handleTemplateUpdate,hc as hasLayoutSectionForMode,Db as hasSubmenu,Vb as initializeCreateColumns,Wb as initializeCreateColumnsWithCurrentState,Ub as initializeEditingColumns,dc as isCheckboxInteractionTarget,xb as isCustomTemplate,wb as isCustomView,mb as isDateColumn,nb as isIndexColumn,vb as isPresetView,Lb as isValidTemplateName,Bb as mapTemplatesToMenuItems,Rb as normalizeColumnsSelected,bc as replaceTemplateInList,Tb as resetColumnsToDefault,tb as setViewAsDefault,_b as templateToViewMenuItem,Ib as toggleAllColumns,Ob as toggleAllCurrentColumns,Gb as toggleColumn,Nb as toggleSingleColumn,Hb as toggleSubItem,ob as transformLayoutToColumns,Ab as transformTemplatesToViewMenuItems,cc as updateCurrentTemplate,mc as useCustomTableViews,lc as useSubmenuHover,jc as useViewsManager,kc as useViewsMenu}from'../../_chunks/chunk-
|
|
1
|
+
export{pc as ColumnViewsPicker,rc as CreateViewDialog,nc as CustomViews,oc as DefaultViews,qc as ViewsDropdown,Jb as areAllColumnsSelected,Pb as areAllCurrentColumnsSelected,Sb as areColumnsEqual,Kb as areSomeColumnsSelected,Qb as areSomeCurrentColumnsSelected,ic as buildFullTemplateLayouts,gc as buildRequiredColumnView,qb as convertColumnsToLayoutSection,$b as convertTemplateToColumnsView,ac as convertTemplatesToColumnsView,yb as countCustomTemplates,zb as countCustomViewMenuItems,sb as createCustomViewMenuItem,Mb as deepCloneColumns,Fb as getColumnCheckState,Yb as getColumnOrder,pb as getColumnsByMode,ec as getLayoutCodesForMode,rb as getLayoutDataFromTemplates,fc as getOtherModeSectionCode,Xb as getSubmenuFromTemplateLayout,Cb as getSubmenuItems,Eb as getSubmenuItemsForDisplay,ub as getTemplateRole,Zb as handleTemplateUpdate,hc as hasLayoutSectionForMode,Db as hasSubmenu,Vb as initializeCreateColumns,Wb as initializeCreateColumnsWithCurrentState,Ub as initializeEditingColumns,dc as isCheckboxInteractionTarget,xb as isCustomTemplate,wb as isCustomView,mb as isDateColumn,nb as isIndexColumn,vb as isPresetView,Lb as isValidTemplateName,Bb as mapTemplatesToMenuItems,Rb as normalizeColumnsSelected,bc as replaceTemplateInList,Tb as resetColumnsToDefault,tb as setViewAsDefault,_b as templateToViewMenuItem,Ib as toggleAllColumns,Ob as toggleAllCurrentColumns,Gb as toggleColumn,Nb as toggleSingleColumn,Hb as toggleSubItem,ob as transformLayoutToColumns,Ab as transformTemplatesToViewMenuItems,cc as updateCurrentTemplate,mc as useCustomTableViews,lc as useSubmenuHover,jc as useViewsManager,kc as useViewsMenu}from'../../_chunks/chunk-UUKAYOKI.js';import'../../_chunks/chunk-YI5J4DCB.js';import'../../_chunks/chunk-7LVGFAVY.js';import'../../_chunks/chunk-R7AVLGCS.js';import'../../_chunks/chunk-CKJ63TJ5.js';import'../../_chunks/chunk-KZIIULI3.js';import'../../_chunks/chunk-VBB5WMVK.js';import'../../_chunks/chunk-WRJLCKDU.js';import'../../_chunks/chunk-B7SIZBZ4.js';import'../../_chunks/chunk-7EIZDPRX.js';import'../../_chunks/chunk-BVPHSJ4E.js';import'../../_chunks/chunk-JK5C4QAJ.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-YHRFQZCJ.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-IPYIRN2R.js';import'../../_chunks/chunk-JRADYN3S.js';import'../../_chunks/chunk-J5Y23R6K.js';import'../../_chunks/chunk-MZBS2I4P.js';import'../../_chunks/chunk-RSIJKVO6.js';import'../../_chunks/chunk-MLJHEMAE.js';import'../../_chunks/chunk-LR6FBC7S.js';import'../../_chunks/chunk-UY75PFQ7.js';import'../../_chunks/chunk-ONSPUGYN.js';import'../../_chunks/chunk-2IOTEGXO.js';import'../../_chunks/chunk-R367WWTC.js';import'../../_chunks/chunk-2SZKMLBQ.js';import'../../_chunks/chunk-VIBNNV7I.js';import'../../_chunks/chunk-NQGK2Q5L.js';import'../../_chunks/chunk-RI3HCTED.js';import'../../_chunks/chunk-U2D7PCC4.js';import'../../_chunks/chunk-XFW7RVD6.js';import'../../_chunks/chunk-7K7NRYXI.js';import'../../_chunks/chunk-PPHYI47H.js';import'../../_chunks/chunk-LDCRZFUN.js';import'../../_chunks/chunk-ZYP2H2JO.js';import'../../_chunks/chunk-UENR5XJD.js';import'../../_chunks/chunk-3HYMTOAJ.js';import'../../_chunks/chunk-QVH3AVGY.js';import'../../_chunks/chunk-XYMZXP5A.js';import'../../_chunks/chunk-D7SCPBNH.js';import'../../_chunks/chunk-XSMIOEMD.js';import'../../_chunks/chunk-OR22XGAD.js';import'../../_chunks/chunk-NNMPGGZY.js';import'../../_chunks/chunk-UV3MEUO4.js';import'../../_chunks/chunk-3M7YAX7A.js';import'../../_chunks/chunk-HFZFV3IA.js';import'../../_chunks/chunk-DO5LOF3O.js';import'../../_chunks/chunk-JDSJDVQK.js';import'../../_chunks/chunk-6PCVGKSW.js';import'../../_chunks/chunk-N2WU3HEH.js';import'../../_chunks/chunk-PG6JHNLH.js';import'../../_chunks/chunk-AYDZ5BY7.js';import'../../_chunks/chunk-AI4TRR5F.js';import'../../_chunks/chunk-2DZTKOWC.js';import'../../_chunks/chunk-IBVECU2A.js';import'../../_chunks/chunk-4UPB4XII.js';import'../../_chunks/chunk-OL4HUADY.js';import'../../_chunks/chunk-ARPUXMV4.js';import'../../_chunks/chunk-32GIDLTK.js';import'../../_chunks/chunk-FYZLPKZJ.js';import'../../_chunks/chunk-MGKZHRIG.js';import'../../_chunks/chunk-6GZFEPN6.js';import'../../_chunks/chunk-ZERM22LM.js';import'../../_chunks/chunk-JKW2LY7R.js';export{Db as CUSTOM_VIEW,yb as DATE_COLUMN_CONFIG,Cb as DEFAULT_VIEW,Eb as DEFAULT_VIEW_OPTIONS,tb as DIALOG_HEIGHT,sb as DIALOG_WIDTH,xb as INDEX_COLUMN_CONFIG,ub as MAX_CUSTOM_VIEWS,vb as TEMPLATE_NAME_MAX_LENGTH,wb as TableViewColumnNames}from'../../_chunks/chunk-Z2DUFVI5.js';import'../../_chunks/chunk-3M2GZVQW.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{uc as DateFilter}from'../../_chunks/chunk-UUKAYOKI.js';import'../../_chunks/chunk-YI5J4DCB.js';import'../../_chunks/chunk-7LVGFAVY.js';import'../../_chunks/chunk-R7AVLGCS.js';import'../../_chunks/chunk-CKJ63TJ5.js';import'../../_chunks/chunk-KZIIULI3.js';import'../../_chunks/chunk-VBB5WMVK.js';import'../../_chunks/chunk-WRJLCKDU.js';import'../../_chunks/chunk-B7SIZBZ4.js';import'../../_chunks/chunk-7EIZDPRX.js';import'../../_chunks/chunk-BVPHSJ4E.js';import'../../_chunks/chunk-JK5C4QAJ.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-YHRFQZCJ.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-IPYIRN2R.js';import'../../_chunks/chunk-JRADYN3S.js';import'../../_chunks/chunk-J5Y23R6K.js';import'../../_chunks/chunk-MZBS2I4P.js';import'../../_chunks/chunk-RSIJKVO6.js';import'../../_chunks/chunk-MLJHEMAE.js';import'../../_chunks/chunk-LR6FBC7S.js';import'../../_chunks/chunk-UY75PFQ7.js';import'../../_chunks/chunk-ONSPUGYN.js';import'../../_chunks/chunk-2IOTEGXO.js';import'../../_chunks/chunk-R367WWTC.js';import'../../_chunks/chunk-2SZKMLBQ.js';import'../../_chunks/chunk-VIBNNV7I.js';import'../../_chunks/chunk-NQGK2Q5L.js';import'../../_chunks/chunk-RI3HCTED.js';import'../../_chunks/chunk-U2D7PCC4.js';import'../../_chunks/chunk-XFW7RVD6.js';import'../../_chunks/chunk-7K7NRYXI.js';import'../../_chunks/chunk-PPHYI47H.js';import'../../_chunks/chunk-LDCRZFUN.js';import'../../_chunks/chunk-ZYP2H2JO.js';import'../../_chunks/chunk-UENR5XJD.js';import'../../_chunks/chunk-3HYMTOAJ.js';import'../../_chunks/chunk-QVH3AVGY.js';import'../../_chunks/chunk-XYMZXP5A.js';import'../../_chunks/chunk-D7SCPBNH.js';import'../../_chunks/chunk-XSMIOEMD.js';import'../../_chunks/chunk-OR22XGAD.js';import'../../_chunks/chunk-NNMPGGZY.js';import'../../_chunks/chunk-UV3MEUO4.js';import'../../_chunks/chunk-3M7YAX7A.js';import'../../_chunks/chunk-HFZFV3IA.js';import'../../_chunks/chunk-DO5LOF3O.js';import'../../_chunks/chunk-JDSJDVQK.js';import'../../_chunks/chunk-6PCVGKSW.js';import'../../_chunks/chunk-N2WU3HEH.js';import'../../_chunks/chunk-PG6JHNLH.js';import'../../_chunks/chunk-AYDZ5BY7.js';import'../../_chunks/chunk-AI4TRR5F.js';import'../../_chunks/chunk-2DZTKOWC.js';import'../../_chunks/chunk-IBVECU2A.js';import'../../_chunks/chunk-4UPB4XII.js';import'../../_chunks/chunk-OL4HUADY.js';import'../../_chunks/chunk-ARPUXMV4.js';import'../../_chunks/chunk-32GIDLTK.js';import'../../_chunks/chunk-FYZLPKZJ.js';import'../../_chunks/chunk-MGKZHRIG.js';import'../../_chunks/chunk-6GZFEPN6.js';import'../../_chunks/chunk-ZERM22LM.js';import'../../_chunks/chunk-JKW2LY7R.js';import'../../_chunks/chunk-Z2DUFVI5.js';import'../../_chunks/chunk-3M2GZVQW.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FilterButtonProps } from './type';
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<FilterButtonProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const filterButtonClassNamePrefix: "os-shared-FilterButton";
|
|
2
|
+
export declare const filterButtonClassNames: {
|
|
3
|
+
readonly root: "os-shared-FilterButton-root";
|
|
4
|
+
readonly rootActive: "os-shared-FilterButton-rootActive";
|
|
5
|
+
readonly trigger: "os-shared-FilterButton-trigger";
|
|
6
|
+
readonly icon: "os-shared-FilterButton-icon";
|
|
7
|
+
readonly count: "os-shared-FilterButton-count";
|
|
8
|
+
readonly clear: "os-shared-FilterButton-clear";
|
|
9
|
+
readonly clearIcon: "os-shared-FilterButton-clearIcon";
|
|
10
|
+
};
|
|
11
|
+
/** Filter glyph width (px). */
|
|
12
|
+
export declare const FILTER_BUTTON_ICON_WIDTH = 15;
|
|
13
|
+
/** Filter glyph height (px). */
|
|
14
|
+
export declare const FILTER_BUTTON_ICON_HEIGHT = 14;
|
|
15
|
+
/** Clear glyph box (px). */
|
|
16
|
+
export declare const FILTER_BUTTON_CLEAR_ICON_SIZE = 14;
|
|
17
|
+
/** Idle trigger width (px). */
|
|
18
|
+
export declare const FILTER_BUTTON_TRIGGER_WIDTH = 30;
|
|
19
|
+
/** Idle trigger height (px). */
|
|
20
|
+
export declare const FILTER_BUTTON_TRIGGER_HEIGHT = 32;
|
|
21
|
+
/** Count badge diameter (px). */
|
|
22
|
+
export declare const FILTER_BUTTON_COUNT_SIZE = 14;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as FilterButton,b as default,a as filterButtonClassNames}from'../../_chunks/chunk-UV3MEUO4.js';import'../../_chunks/chunk-Z2DUFVI5.js';import'../../_chunks/chunk-3M2GZVQW.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FilterButtonRootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
3
|
+
$isActive?: boolean | undefined;
|
|
4
|
+
$isDisabled?: boolean | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const FilterButtonTriggerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
7
|
+
export declare const FilterButtonIconStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
8
|
+
export declare const FilterButtonCountStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
9
|
+
export declare const FilterButtonClearStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
import type { filterButtonClassNames } from './constants';
|
|
4
|
+
export type FilterButtonClassNames = (typeof filterButtonClassNames)[keyof typeof filterButtonClassNames];
|
|
5
|
+
/**
|
|
6
|
+
* Filter trigger. `className` and `sx` land on the root chip.
|
|
7
|
+
* `ref` lands on the root. Pass `id` explicitly — no id is generated.
|
|
8
|
+
* The optional DOM `id` also becomes the `data-testid` when passed.
|
|
9
|
+
*
|
|
10
|
+
* This is the trigger only. Open a `FilterPopover` from `onClick` — `event.currentTarget`
|
|
11
|
+
* is the root chip (anchor the menu to the full control, not the inner button).
|
|
12
|
+
* `StatusFilter` and other filters can open that same menu from
|
|
13
|
+
* their own trigger.
|
|
14
|
+
*/
|
|
15
|
+
export interface FilterButtonProps {
|
|
16
|
+
id?: string;
|
|
17
|
+
className?: string;
|
|
18
|
+
sx?: SxProps<Theme>;
|
|
19
|
+
/** Disables the trigger and the clear control. */
|
|
20
|
+
isDisabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Highlights the chip. Also highlighted when `activeFiltersCount` is greater than 0.
|
|
23
|
+
* Use this for the open state as well as applied filters.
|
|
24
|
+
*/
|
|
25
|
+
isActive?: boolean;
|
|
26
|
+
/** Sets `aria-expanded`. Pass the menu's open state — applied filters alone are not "open". */
|
|
27
|
+
isOpen?: boolean;
|
|
28
|
+
/** Id of the open `FilterPopover`. Sets `aria-controls` on the trigger. */
|
|
29
|
+
menuId?: string;
|
|
30
|
+
/** Count badge. Shown when greater than 0, with the clear control. */
|
|
31
|
+
activeFiltersCount?: number;
|
|
32
|
+
/** Accessible name for the trigger. Defaults to "Filter" when using the built-in icon. */
|
|
33
|
+
'aria-label'?: string;
|
|
34
|
+
/** Already-translated name for the clear control. Defaults to "Clear filters". */
|
|
35
|
+
clearLabel?: string;
|
|
36
|
+
/** Icon slot. Defaults to the filter glyph. */
|
|
37
|
+
icon?: ReactNode;
|
|
38
|
+
/** Replaces the icon, count, and clear control. */
|
|
39
|
+
children?: ReactNode;
|
|
40
|
+
/** Fired with the root chip as `currentTarget` for `FilterPopover` `anchorEl`. */
|
|
41
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
42
|
+
/** Fired when the clear control is pressed. Does not open the menu. */
|
|
43
|
+
onClear?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
44
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FilterPopoverProps } from './type';
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<FilterPopoverProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const filterPopoverClassNamePrefix: "os-shared-FilterPopover";
|
|
2
|
+
export declare const filterPopoverClassNames: {
|
|
3
|
+
readonly popper: "os-shared-FilterPopover-popper";
|
|
4
|
+
readonly panel: "os-shared-FilterPopover-panel";
|
|
5
|
+
readonly title: "os-shared-FilterPopover-title";
|
|
6
|
+
readonly footer: "os-shared-FilterPopover-footer";
|
|
7
|
+
readonly cancel: "os-shared-FilterPopover-cancel";
|
|
8
|
+
readonly confirm: "os-shared-FilterPopover-confirm";
|
|
9
|
+
};
|
|
10
|
+
/** Panel min width (px). */
|
|
11
|
+
export declare const FILTER_POPOVER_MIN_WIDTH = 193;
|
|
12
|
+
/** Space between the anchor and the visible panel (px); `theme.spacing(1)`. Applied on the panel, not Popper modifiers. */
|
|
13
|
+
export declare const FILTER_POPOVER_ANCHOR_GAP_PX = 8;
|
|
14
|
+
/** Popper layer. Sits above the invisible backdrop (`z-index` 999). */
|
|
15
|
+
export declare const FILTER_POPOVER_POPPER_Z_INDEX = 1300;
|
|
16
|
+
/** Footer action width (px). */
|
|
17
|
+
export declare const FILTER_POPOVER_ACTION_WIDTH = 74;
|
|
18
|
+
/** Footer action height (px). */
|
|
19
|
+
export declare const FILTER_POPOVER_ACTION_HEIGHT = 32;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface FilterPopoverContextValue {
|
|
3
|
+
onConfirm: () => void;
|
|
4
|
+
onCancel: () => void;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const FilterPopoverContext: import("react").Context<FilterPopoverContextValue | null>;
|
|
8
|
+
/** Confirm, cancel, or dismiss the surrounding `FilterPopover` from a nested field. */
|
|
9
|
+
export declare function useFilterPopover(): FilterPopoverContextValue;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default, default as FilterPopover } from './FilterPopover';
|
|
2
|
+
export { filterPopoverClassNames, FILTER_POPOVER_ANCHOR_GAP_PX, FILTER_POPOVER_MIN_WIDTH, FILTER_POPOVER_POPPER_Z_INDEX } from './constants';
|
|
3
|
+
export { useFilterPopover } from './hooks/useFilterPopover';
|
|
4
|
+
export type { FilterPopoverClassNames, FilterPopoverProps } from './type';
|
|
5
|
+
export type { FilterPopoverContextValue } from './hooks/useFilterPopover';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{c as FILTER_POPOVER_ANCHOR_GAP_PX,b as FILTER_POPOVER_MIN_WIDTH,d as FILTER_POPOVER_POPPER_Z_INDEX,f as FilterPopover,f as default,a as filterPopoverClassNames,e as useFilterPopover}from'../../_chunks/chunk-XFW7RVD6.js';import'../../_chunks/chunk-6GZFEPN6.js';import'../../_chunks/chunk-Z2DUFVI5.js';import'../../_chunks/chunk-3M2GZVQW.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PopperProps } from '@mui/material/Popper';
|
|
3
|
+
import type { Theme } from '@mui/material/styles';
|
|
4
|
+
/** Panel margin gap from the anchor; matches former MUI `FilterDropdown` menu margins. */
|
|
5
|
+
export declare function filterPopoverAnchorGapSx(placement: PopperProps['placement']): {
|
|
6
|
+
marginBottom: string;
|
|
7
|
+
marginTop?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
marginTop: string;
|
|
10
|
+
marginBottom?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
marginBottom?: undefined;
|
|
13
|
+
marginTop?: undefined;
|
|
14
|
+
};
|
|
15
|
+
export declare const FilterPopoverTitle: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
16
|
+
ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
|
|
17
|
+
} & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
18
|
+
export declare const FilterPopoverFooter: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
+
export declare const FilterPopoverCancelButton: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
20
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
21
|
+
} & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
22
|
+
export declare const FilterPopoverConfirmButton: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
23
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
24
|
+
} & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { KeyboardEvent, ReactNode } from 'react';
|
|
2
|
+
import type { PopperProps } from '@mui/material/Popper';
|
|
3
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
4
|
+
import type { filterPopoverClassNames } from './constants';
|
|
5
|
+
export type FilterPopoverClassNames = (typeof filterPopoverClassNames)[keyof typeof filterPopoverClassNames];
|
|
6
|
+
/**
|
|
7
|
+
* Controlled filter panel. `className` and `sx` land on the visible panel.
|
|
8
|
+
* `ref` lands on the panel. Pass `id` explicitly — no id is generated.
|
|
9
|
+
* The optional DOM `id` also becomes the `data-testid` when passed.
|
|
10
|
+
*
|
|
11
|
+
* Not tied to `FilterButton`. Pass `open` and `anchorEl` from any trigger
|
|
12
|
+
* (`FilterButton`, `StatusFilter`, a column header, …).
|
|
13
|
+
*/
|
|
14
|
+
export interface FilterPopoverProps {
|
|
15
|
+
id?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
/** MUI sx style overrides — the visible panel. */
|
|
18
|
+
sx?: SxProps<Theme>;
|
|
19
|
+
/** Popper positioning tweaks. The panel itself takes `sx`. */
|
|
20
|
+
popperSx?: SxProps<Theme>;
|
|
21
|
+
/** Popper.js modifiers forwarded to the underlying `Menu`. Anchor gap uses panel margin, not `offset`. */
|
|
22
|
+
modifiers?: PopperProps['modifiers'];
|
|
23
|
+
/** Popper.js options forwarded to the underlying `Menu` (e.g. `strategy: 'fixed'`). */
|
|
24
|
+
popperOptions?: PopperProps['popperOptions'];
|
|
25
|
+
open: boolean;
|
|
26
|
+
anchorEl?: PopperProps['anchorEl'];
|
|
27
|
+
/** Defaults to `bottom-end`, aligned with the filter toolbar chip. */
|
|
28
|
+
placement?: PopperProps['placement'];
|
|
29
|
+
/** Already-translated heading. Omitted when empty. */
|
|
30
|
+
title?: string;
|
|
31
|
+
/** Hides the heading even when `title` is set. */
|
|
32
|
+
hideTitle?: boolean;
|
|
33
|
+
/** Filter fields. Rendered between the heading and the footer. */
|
|
34
|
+
children?: ReactNode;
|
|
35
|
+
/** Shows cancel and confirm. Turn off when the fields own the actions. */
|
|
36
|
+
hasFooter?: boolean;
|
|
37
|
+
/** Already-translated confirm label. Defaults to "Okay". */
|
|
38
|
+
confirmLabel?: string;
|
|
39
|
+
/** Already-translated cancel label. Defaults to "Cancel". */
|
|
40
|
+
cancelLabel?: string;
|
|
41
|
+
/** Disables the confirm action. */
|
|
42
|
+
isConfirmDisabled?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Shows the invisible click-catcher while open. A backdrop click calls `onClose`
|
|
45
|
+
* (it does not call `onCancel`).
|
|
46
|
+
*/
|
|
47
|
+
hasBackdrop?: boolean;
|
|
48
|
+
/** Dismiss without applying. Also fired for Escape and the backdrop. */
|
|
49
|
+
onClose?: () => void;
|
|
50
|
+
/** Footer cancel. */
|
|
51
|
+
onCancel?: () => void;
|
|
52
|
+
/** Footer confirm. */
|
|
53
|
+
onConfirm?: () => void;
|
|
54
|
+
/** Key events on the visible panel. Enter and Escape stay with the caller. */
|
|
55
|
+
onKeyDown?: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
56
|
+
}
|
|
@@ -3,4 +3,3 @@ export { default as ListHeaderTitleRow } from './ListHeaderTitleRow';
|
|
|
3
3
|
export { default as ListHeaderStatusRow } from './ListHeaderStatusRow';
|
|
4
4
|
export { default as ListHeaderToolbar } from './ListHeaderToolbar';
|
|
5
5
|
export { default as ListHeaderToolbarAside } from './ListHeaderToolbarAside';
|
|
6
|
-
export { default as ListHeaderSheetToggle } from './ListHeaderSheetToggle';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{tc as ListHeader}from'../../_chunks/chunk-
|
|
1
|
+
export{tc as ListHeader}from'../../_chunks/chunk-UUKAYOKI.js';import'../../_chunks/chunk-YI5J4DCB.js';import'../../_chunks/chunk-7LVGFAVY.js';import'../../_chunks/chunk-R7AVLGCS.js';import'../../_chunks/chunk-CKJ63TJ5.js';import'../../_chunks/chunk-KZIIULI3.js';import'../../_chunks/chunk-VBB5WMVK.js';import'../../_chunks/chunk-WRJLCKDU.js';import'../../_chunks/chunk-B7SIZBZ4.js';import'../../_chunks/chunk-7EIZDPRX.js';import'../../_chunks/chunk-BVPHSJ4E.js';import'../../_chunks/chunk-JK5C4QAJ.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-YHRFQZCJ.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-IPYIRN2R.js';import'../../_chunks/chunk-JRADYN3S.js';import'../../_chunks/chunk-J5Y23R6K.js';import'../../_chunks/chunk-MZBS2I4P.js';import'../../_chunks/chunk-RSIJKVO6.js';import'../../_chunks/chunk-MLJHEMAE.js';import'../../_chunks/chunk-LR6FBC7S.js';import'../../_chunks/chunk-UY75PFQ7.js';import'../../_chunks/chunk-ONSPUGYN.js';import'../../_chunks/chunk-2IOTEGXO.js';import'../../_chunks/chunk-R367WWTC.js';import'../../_chunks/chunk-2SZKMLBQ.js';import'../../_chunks/chunk-VIBNNV7I.js';import'../../_chunks/chunk-NQGK2Q5L.js';import'../../_chunks/chunk-RI3HCTED.js';import'../../_chunks/chunk-U2D7PCC4.js';import'../../_chunks/chunk-XFW7RVD6.js';import'../../_chunks/chunk-7K7NRYXI.js';import'../../_chunks/chunk-PPHYI47H.js';import'../../_chunks/chunk-LDCRZFUN.js';import'../../_chunks/chunk-ZYP2H2JO.js';import'../../_chunks/chunk-UENR5XJD.js';import'../../_chunks/chunk-3HYMTOAJ.js';import'../../_chunks/chunk-QVH3AVGY.js';import'../../_chunks/chunk-XYMZXP5A.js';import'../../_chunks/chunk-D7SCPBNH.js';import'../../_chunks/chunk-XSMIOEMD.js';import'../../_chunks/chunk-OR22XGAD.js';import'../../_chunks/chunk-NNMPGGZY.js';import'../../_chunks/chunk-UV3MEUO4.js';import'../../_chunks/chunk-3M7YAX7A.js';import'../../_chunks/chunk-HFZFV3IA.js';import'../../_chunks/chunk-DO5LOF3O.js';import'../../_chunks/chunk-JDSJDVQK.js';import'../../_chunks/chunk-6PCVGKSW.js';import'../../_chunks/chunk-N2WU3HEH.js';import'../../_chunks/chunk-PG6JHNLH.js';import'../../_chunks/chunk-AYDZ5BY7.js';import'../../_chunks/chunk-AI4TRR5F.js';import'../../_chunks/chunk-2DZTKOWC.js';import'../../_chunks/chunk-IBVECU2A.js';import'../../_chunks/chunk-4UPB4XII.js';import'../../_chunks/chunk-OL4HUADY.js';import'../../_chunks/chunk-ARPUXMV4.js';import'../../_chunks/chunk-32GIDLTK.js';import'../../_chunks/chunk-FYZLPKZJ.js';import'../../_chunks/chunk-MGKZHRIG.js';import'../../_chunks/chunk-6GZFEPN6.js';import'../../_chunks/chunk-ZERM22LM.js';import'../../_chunks/chunk-JKW2LY7R.js';import'../../_chunks/chunk-Z2DUFVI5.js';import'../../_chunks/chunk-3M2GZVQW.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ReactElement, type RefAttributes } from 'react';
|
|
2
|
+
import type { MultiLevelMenuProps, MultiLevelMenuRef } from './type';
|
|
3
|
+
/**
|
|
4
|
+
* Cascading menu over a tree of any depth, anchored to any trigger via `anchorEl`.
|
|
5
|
+
* Browse-only, single (radio) or multiple (cascading checkboxes), with per-level header, footer, search and paging.
|
|
6
|
+
*/
|
|
7
|
+
declare const MultiLevelMenu: (<TData = unknown>(props: MultiLevelMenuProps<TData> & RefAttributes<MultiLevelMenuRef<TData>>) => ReactElement | null) & {
|
|
8
|
+
displayName?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
export default MultiLevelMenu;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { MultiLevelMenuItemProps } from './type';
|
|
3
|
+
/** One row: indicator, icon, label/hint, item count, chevron — plus the fly-out it opens. */
|
|
4
|
+
declare function MultiLevelMenuItem({ node, depth, path, isSubmenuOpen, isHoverDisabled, isTabStop, onSubmenuOpen, onSubmenuClose, onSubmenuScheduleClose, onSubmenuCancelClose, }: MultiLevelMenuItemProps): import("react").JSX.Element;
|
|
5
|
+
declare const _default: import("react").MemoExoticComponent<typeof MultiLevelMenuItem>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { MultiLevelMenuPanelProps } from './type';
|
|
3
|
+
/** One level of the tree: header, search, rows (with paging), footer. Rendered inside a `Menu` primitive panel. */
|
|
4
|
+
declare function MultiLevelMenuPanel({ options, level, depth, path }: MultiLevelMenuPanelProps): import("react").JSX.Element;
|
|
5
|
+
declare const _default: import("react").MemoExoticComponent<typeof MultiLevelMenuPanel>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export declare const multiLevelMenuClassNamePrefix: "os-shared-MultiLevelMenu";
|
|
2
|
+
export declare const multiLevelMenuClassNames: {
|
|
3
|
+
/** Root panel (the visible box anchored to `anchorEl`). */
|
|
4
|
+
readonly root: "os-shared-MultiLevelMenu-root";
|
|
5
|
+
/** Every panel, root and fly-outs. */
|
|
6
|
+
readonly panel: "os-shared-MultiLevelMenu-panel";
|
|
7
|
+
/** Fly-out panels only. */
|
|
8
|
+
readonly submenu: "os-shared-MultiLevelMenu-submenu";
|
|
9
|
+
readonly header: "os-shared-MultiLevelMenu-header";
|
|
10
|
+
readonly footer: "os-shared-MultiLevelMenu-footer";
|
|
11
|
+
readonly search: "os-shared-MultiLevelMenu-search";
|
|
12
|
+
readonly searchButton: "os-shared-MultiLevelMenu-searchButton";
|
|
13
|
+
readonly list: "os-shared-MultiLevelMenu-list";
|
|
14
|
+
readonly item: "os-shared-MultiLevelMenu-item";
|
|
15
|
+
/** Row on the `activeId` path. */
|
|
16
|
+
readonly itemActive: "os-shared-MultiLevelMenu-itemActive";
|
|
17
|
+
/** `kind: 'action'` row. */
|
|
18
|
+
readonly itemAction: "os-shared-MultiLevelMenu-itemAction";
|
|
19
|
+
/** Row whose fly-out is open. */
|
|
20
|
+
readonly itemOpen: "os-shared-MultiLevelMenu-itemOpen";
|
|
21
|
+
/** Row whose fly-out flipped to the left. */
|
|
22
|
+
readonly itemFlipped: "os-shared-MultiLevelMenu-itemFlipped";
|
|
23
|
+
/** Leading `node.startAdornment` wrapper. */
|
|
24
|
+
readonly startAdornment: "os-shared-MultiLevelMenu-startAdornment";
|
|
25
|
+
readonly content: "os-shared-MultiLevelMenu-content";
|
|
26
|
+
readonly label: "os-shared-MultiLevelMenu-label";
|
|
27
|
+
readonly hint: "os-shared-MultiLevelMenu-hint";
|
|
28
|
+
readonly count: "os-shared-MultiLevelMenu-count";
|
|
29
|
+
readonly chevron: "os-shared-MultiLevelMenu-chevron";
|
|
30
|
+
readonly endAdornment: "os-shared-MultiLevelMenu-endAdornment";
|
|
31
|
+
readonly empty: "os-shared-MultiLevelMenu-empty";
|
|
32
|
+
readonly loader: "os-shared-MultiLevelMenu-loader";
|
|
33
|
+
};
|
|
34
|
+
/** Marks fly-out poppers so pointer moves between nested fly-outs keep their parents open. */
|
|
35
|
+
export declare const multiLevelMenuSubmenuAttribute = "data-multi-level-submenu";
|
|
36
|
+
/** Holds the id of the row that opened a fly-out. */
|
|
37
|
+
export declare const multiLevelMenuSubmenuAnchorAttribute = "data-multi-level-submenu-anchor";
|
|
38
|
+
/** Marks focusable rows for keyboard navigation inside one panel list. */
|
|
39
|
+
export declare const multiLevelMenuItemAttribute = "data-multi-level-item";
|
|
40
|
+
/** Time the pointer can spend between a row and its fly-out before the fly-out closes. */
|
|
41
|
+
export declare const multiLevelMenuSubmenuCloseDelayMs = 80;
|
|
42
|
+
/** Hover-opening is paused for this long after the list stops scrolling. */
|
|
43
|
+
export declare const multiLevelMenuScrollIdleMs = 100;
|
|
44
|
+
/** Search debounce default. */
|
|
45
|
+
export declare const multiLevelMenuSearchDebounceMs = 300;
|
|
46
|
+
/** Max height of one panel's scrolling list. */
|
|
47
|
+
export declare const multiLevelMenuListMaxHeightPx = 300;
|
|
48
|
+
/** Fixed positioning so a fly-out stays on its row while ancestor panels scroll. */
|
|
49
|
+
export declare const multiLevelMenuSubmenuPopperOptions: {
|
|
50
|
+
strategy: "fixed";
|
|
51
|
+
};
|
|
52
|
+
/** Keys that move focus between rows of one panel. */
|
|
53
|
+
export declare const multiLevelMenuNavigationKeys: Partial<Record<string, 1 | -1 | 'first' | 'last'>>;
|
|
54
|
+
export declare const multiLevelMenuDefaultSearchBy: string[];
|
|
55
|
+
export declare const multiLevelMenuDefaultSearchPlaceholder = "Search";
|
|
56
|
+
export declare const multiLevelMenuDefaultNoResults = "No results found";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
import type { MenuNode, MultiLevelMenuCloseReason, MultiLevelMenuItemState, MultiLevelMenuSelectionMode, MultiLevelMenuSubmenuTrigger } from '../type';
|
|
4
|
+
export interface MultiLevelMenuContextValue {
|
|
5
|
+
selectionMode: MultiLevelMenuSelectionMode;
|
|
6
|
+
submenuTrigger: MultiLevelMenuSubmenuTrigger;
|
|
7
|
+
isClosingOnSelect: boolean;
|
|
8
|
+
checked: Set<string>;
|
|
9
|
+
indeterminate: Set<string>;
|
|
10
|
+
activePath: Set<string>;
|
|
11
|
+
className?: string;
|
|
12
|
+
submenuSx?: SxProps<Theme>;
|
|
13
|
+
/** Whether a row can be selected, resolved from its depth in the original `options` (not the rendered depth). */
|
|
14
|
+
canSelectRow: (node: MenuNode, renderedDepth: number) => boolean;
|
|
15
|
+
getItemCount: (node: MenuNode) => number | null;
|
|
16
|
+
toggle: (node: MenuNode, isSelected: boolean) => void;
|
|
17
|
+
requestClose: (reason: MultiLevelMenuCloseReason) => void;
|
|
18
|
+
onNodeClick?: (node: MenuNode, path: MenuNode[]) => void;
|
|
19
|
+
onSubmenuOpen?: (node: MenuNode) => void;
|
|
20
|
+
renderItem?: (node: MenuNode, state: MultiLevelMenuItemState<unknown>) => ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export declare const MultiLevelMenuContext: import("react").Context<MultiLevelMenuContextValue | null>;
|
|
23
|
+
declare const useMultiLevelMenuContext: () => MultiLevelMenuContextValue;
|
|
24
|
+
export default useMultiLevelMenuContext;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { MenuNode, MultiLevelMenuSearch } from '../type';
|
|
2
|
+
/** Search state for one panel: the raw input, the debounced query, and the filtered rows. */
|
|
3
|
+
declare const useMultiLevelMenuSearch: (options: MenuNode[], search: MultiLevelMenuSearch<unknown> | undefined) => {
|
|
4
|
+
inputValue: string;
|
|
5
|
+
query: string;
|
|
6
|
+
filteredOptions: MenuNode[];
|
|
7
|
+
isSearching: boolean;
|
|
8
|
+
handleChange: (next: string) => void;
|
|
9
|
+
handleClear: () => void;
|
|
10
|
+
};
|
|
11
|
+
export default useMultiLevelMenuSearch;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { MenuNode, MultiLevelMenuChangeDetails, MultiLevelMenuSelectable, MultiLevelMenuSelectionMode } from '../type';
|
|
2
|
+
interface UseMultiLevelMenuSelectionProps {
|
|
3
|
+
options: MenuNode[];
|
|
4
|
+
selectionMode: MultiLevelMenuSelectionMode;
|
|
5
|
+
isCascading: boolean;
|
|
6
|
+
isSelectable?: MultiLevelMenuSelectable<unknown>;
|
|
7
|
+
value?: string[];
|
|
8
|
+
defaultValue?: string[];
|
|
9
|
+
onChange?: (value: string[], details: MultiLevelMenuChangeDetails<unknown>) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Selection state for the whole tree — controlled (`value`) or uncontrolled (`defaultValue`).
|
|
13
|
+
* State survives `options` changes (paging, search results, lazy children).
|
|
14
|
+
*/
|
|
15
|
+
declare const useMultiLevelMenuSelection: ({ options, selectionMode, isCascading, isSelectable, value, defaultValue, onChange, }: UseMultiLevelMenuSelectionProps) => {
|
|
16
|
+
index: import("../utils").MultiLevelMenuTreeIndex;
|
|
17
|
+
canSelectRow: (node: MenuNode, renderedDepth: number) => boolean;
|
|
18
|
+
snapshot: import("../utils").MultiLevelMenuSelectionSnapshot;
|
|
19
|
+
toggle: (node: MenuNode, isSelected: boolean) => void;
|
|
20
|
+
selectAll: () => void;
|
|
21
|
+
clear: () => void;
|
|
22
|
+
getSelectedNodes: () => MenuNode[];
|
|
23
|
+
getSelectedTree: () => MenuNode[];
|
|
24
|
+
};
|
|
25
|
+
export default useMultiLevelMenuSelection;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which row of one panel has its fly-out open. One fly-out per panel at a time, with a short close delay
|
|
3
|
+
* so the pointer can travel from a row to its fly-out without it closing.
|
|
4
|
+
*/
|
|
5
|
+
declare const useSubmenu: () => {
|
|
6
|
+
openId: string | null;
|
|
7
|
+
open: (id: string) => void;
|
|
8
|
+
close: (id?: string) => void;
|
|
9
|
+
scheduleClose: (id: string, relatedTarget: EventTarget | null, row: HTMLElement | null, submenu: HTMLElement | null) => void;
|
|
10
|
+
cancelClose: () => void;
|
|
11
|
+
};
|
|
12
|
+
export default useSubmenu;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** Branch chevron (Tap DS, 6×10). `currentColor` (#20232B via the chevron slot) so slot restyles and action rows can recolour it. */
|
|
3
|
+
export declare const MultiLevelMenuChevronIcon: () => import("react").JSX.Element;
|
|
4
|
+
/** Same glyph as `SearchInput` (copied — Tier-2 components do not import each other). */
|
|
5
|
+
export declare const MultiLevelMenuSearchIcon: () => import("react").JSX.Element;
|
|
6
|
+
/** Same glyph as `SearchInput` (copied — Tier-2 components do not import each other). */
|
|
7
|
+
export declare const MultiLevelMenuClearIcon: () => import("react").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default } from './MultiLevelMenu';
|
|
2
|
+
export { multiLevelMenuClassNames } from './constants';
|
|
3
|
+
export type { MultiLevelMenuChangeDetails, MultiLevelMenuCloseReason, MultiLevelMenuItemState, MultiLevelMenuLevel, MultiLevelMenuNode, MultiLevelMenuNodeKind, MultiLevelMenuPopperProps, MultiLevelMenuProps, MultiLevelMenuRef, MultiLevelMenuSearch, MultiLevelMenuSelectable, MultiLevelMenuSelectionMode, MultiLevelMenuSubmenuTrigger, } from './type';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as default,a as multiLevelMenuClassNames}from'../../_chunks/chunk-2IOTEGXO.js';import'../../_chunks/chunk-6GZFEPN6.js';import'../../_chunks/chunk-Z2DUFVI5.js';import'../../_chunks/chunk-3M2GZVQW.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** Visible panel content column (inside the `Menu` primitive panel). */
|
|
3
|
+
/** Content-sized; rows set the 120px minimum. `maxWidth` only caps very long labels. */
|
|
4
|
+
export declare const MultiLevelMenuBodyStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
6
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
7
|
+
/** Content above the list: 36px tall, 8px side padding; the 1px separator is a `Divider` in the panel. */
|
|
8
|
+
export declare const MultiLevelMenuHeaderStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
11
|
+
/** Content below the list: 36px tall, 8px side padding; the 1px separator is a `Divider` in the panel. */
|
|
12
|
+
export declare const MultiLevelMenuFooterStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
13
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
14
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
15
|
+
/** Search row. The 1px separator below it is a `Divider` in the panel. */
|
|
16
|
+
export declare const MultiLevelMenuSearchStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
17
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
18
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
19
|
+
/** One panel's scrolling list. `.menu-item + .menu-item` dividers come from the `Menu` primitive panel. */
|
|
20
|
+
export declare const MultiLevelMenuListStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
21
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
22
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
23
|
+
/** Centered status row: empty state, no results, loading, loading more. */
|
|
24
|
+
export declare const MultiLevelMenuStatusStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
25
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
26
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
27
|
+
export declare const MultiLevelMenuItemStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").MenuItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
28
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
29
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
30
|
+
/** Wrapper for `node.startAdornment`. */
|
|
31
|
+
export declare const MultiLevelMenuStartAdornmentStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
32
|
+
export declare const MultiLevelMenuContentStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
33
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
34
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
35
|
+
export declare const MultiLevelMenuTextStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
36
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
37
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
38
|
+
export declare const MultiLevelMenuLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
39
|
+
export declare const MultiLevelMenuHintStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
40
|
+
/** Child-count badge: a 13×14 circle for one digit, a 4px-radius pill with 3px padding otherwise. */
|
|
41
|
+
export declare const MultiLevelMenuCountStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
42
|
+
$isOneDigit?: boolean | undefined;
|
|
43
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
44
|
+
/** Trailing group: count badge then chevron, 4px apart. */
|
|
45
|
+
export declare const MultiLevelMenuEndStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
46
|
+
/** Wrapper for a custom `node.endAdornment`. */
|
|
47
|
+
export declare const MultiLevelMenuEndAdornmentStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
48
|
+
export declare const MultiLevelMenuChevronStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
49
|
+
/** Checkbox indicator for `multiple` mode: 12px glyph in a 14px box. */
|
|
50
|
+
export declare const MultiLevelMenuCheckboxStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").CheckboxProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
51
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
52
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
53
|
+
/** Radio indicator for `single` mode: primitive size, no padding. */
|
|
54
|
+
export declare const MultiLevelMenuRadioStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").RadioButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
55
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
56
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
57
|
+
/** Search field trailing control — mirrors `SearchInput` (search glyph, or the round grey clear button once there is text). */
|
|
58
|
+
export declare const MultiLevelMenuSearchButtonStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|