twenty-ui 2.47.0 → 2.48.0
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/{AllIcons-DrlkKKQf.cjs → AllIcons-Cyd7721G.cjs} +1 -1
- package/dist/{AllIcons-G3nKeM41.js → AllIcons-D132B8_i.js} +1 -1
- package/dist/{Button-Cs07psdD.js → Button-D5enZ0Qz.js} +1 -1
- package/dist/{Button-COxEKIHL.cjs → Button-Dbi5P05r.cjs} +1 -1
- package/dist/Dropdown-BKjAaZS0.cjs +1 -0
- package/dist/Dropdown-C2hXrjvD.js +820 -0
- package/dist/{ListItem-q6DHGlev.cjs → ListItem-CHTR-GLd.cjs} +1 -1
- package/dist/{ListItem-CXu35dzp.js → ListItem-CjnrSbka.js} +4 -4
- package/dist/ListItem.module-BJ9Ttjrc.js +34 -0
- package/dist/ListItem.module-CO4u2oeF.cjs +1 -0
- package/dist/OverflowingTextWithTooltip-BmUROIah.js +90 -0
- package/dist/OverflowingTextWithTooltip-Z2daM0_x.cjs +1 -0
- package/dist/{ProgressBar-D_3Gia0E.js → ProgressBar-BvT1dyFo.js} +1 -1
- package/dist/{ProgressBar-oF1qVHFx.cjs → ProgressBar-DfFz0fFB.cjs} +1 -1
- package/dist/{Radio-BMoQHDe7.js → Radio-DMI1B7o5.js} +1 -1
- package/dist/{Radio-D_YUizSv.cjs → Radio-xmHgGHQO.cjs} +1 -1
- package/dist/{ResizeHandle-Bjg4R0c-.js → ResizeHandle-C1kQ3MYR.js} +1 -0
- package/dist/ResizeHandle-DI4LHIQm.cjs +1 -0
- package/dist/Shortcut-BvWUZ3pb.js +72 -0
- package/dist/Shortcut-CgrdLv_L.cjs +1 -0
- package/dist/TabsTabContent-Co27Y2TU.cjs +1 -0
- package/dist/TabsTabContent-DVcObDp6.js +39 -0
- package/dist/Tooltip-Bg9Uk01p.cjs +1 -0
- package/dist/Tooltip-cLCgtFBF.js +124 -0
- package/dist/components/code-editor/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/components/code-editor/CodeEditor/__stories__/ControlledCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/ModelCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/ResizableCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/ThemedCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/UnmountingCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/waitForCodeEditorContent.d.ts +4 -1
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorAutoHeightEffect.d.ts +9 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorLifecycleEffect.d.ts +11 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorLoaderConfigurationEffect.d.ts +7 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorMarkersEffect.d.ts +10 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorResizableHeightEffect.d.ts +11 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorThemeEffect.d.ts +10 -0
- package/dist/components/code-editor/CodeEditor/internal/constants/CodeEditorDefaultHeight.d.ts +1 -0
- package/dist/components/code-editor/CodeEditor/internal/types/ResizedCodeEditorHeight.d.ts +4 -0
- package/dist/components/code-editor/CodeEditor/internal/useCodeEditorHeight.d.ts +13 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/defineCodeEditorDefaultTheme.d.ts +7 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/getBaseCodeEditorTheme.d.ts +4 -1
- package/dist/components/code-editor/CodeEditor/internal/utils/getBoundedCodeEditorHeight.d.ts +1 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/getCurrentCodeEditorHeight.d.ts +7 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/getResizableCodeEditorHeight.d.ts +5 -0
- package/dist/components/code-editor/CodeEditor/types/CodeEditorProps.d.ts +4 -2
- package/dist/components/code-editor.cjs +1 -1
- package/dist/components/code-editor.mjs +267 -155
- package/dist/components/data-display.mjs +1 -1
- package/dist/components/feedback/Toast/internal/components/ToastCountdownEffect.d.ts +4 -3
- package/dist/components/feedback/Toast/internal/components/ToastProviderLifecycleEffect.d.ts +3 -0
- package/dist/components/feedback/Toast/internal/constants/DefaultToastDuration.d.ts +1 -0
- package/dist/components/feedback/Toast/internal/contexts/ToastContext.d.ts +60 -1
- package/dist/components/feedback/Toast/internal/contexts/ToastTimingContext.d.ts +12 -2
- package/dist/components/feedback/Toast/internal/hooks/useToastContext.d.ts +60 -1
- package/dist/components/feedback/Toast/internal/hooks/useToastCountdown.d.ts +26 -0
- package/dist/components/feedback/Toast/internal/stores/createToastStore.d.ts +60 -1
- package/dist/components/feedback/Toast/internal/utils/assertValidToastLimit.d.ts +1 -0
- package/dist/components/feedback/Toast/internal/utils/completeToastExit.d.ts +3 -2
- package/dist/components/feedback/Toast/internal/utils/createToastCountdownStore.d.ts +22 -0
- package/dist/components/feedback/Toast/internal/utils/createToastLifecycle.d.ts +62 -0
- package/dist/components/feedback/Toast/internal/utils/dismissToasts.d.ts +3 -2
- package/dist/components/feedback/Toast/internal/utils/updateToastLimit.d.ts +5 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleControls.d.ts +7 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleExample.d.ts +2 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleExampleProps.d.ts +7 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleTimingOverrideExample.d.ts +9 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleUnrelatedNotificationActions.d.ts +5 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterPortalExample.d.ts +5 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderLayoutReplayEffect.d.ts +4 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderPassiveReplayEffect.d.ts +4 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderReplayExample.d.ts +6 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderSuspenseExample.d.ts +4 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderSuspension.d.ts +5 -0
- package/dist/components/feedback/Toaster/internal/ToasterItemExitEffect.d.ts +2 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/input/SearchInput/types/SearchInputProps.d.ts +2 -3
- package/dist/components/input/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/components/input/SegmentedControl/types/SegmentedControlProps.d.ts +2 -0
- package/dist/components/input/SegmentedControl/types/SegmentedControlSize.d.ts +1 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +2 -2
- package/dist/components/layout/OverflowingList/OverflowingList.d.ts +1 -1
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListActionsExample.d.ts +7 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListCanceledCloseExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListControlledExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListControlledStateExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListDisabledTriggerFocusExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListEventBlockingExample.d.ts +7 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListFocusExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListInstanceCleanupExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListStateExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListTriggerRefExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/internal/OverflowingListItem.d.ts +8 -2
- package/dist/components/layout/OverflowingList/internal/OverflowingListItemFocusEffect.d.ts +8 -0
- package/dist/components/layout/OverflowingList/internal/OverflowingListLayoutEffect.d.ts +16 -0
- package/dist/components/layout/OverflowingList/internal/OverflowingListPopupTarget.d.ts +10 -0
- package/dist/components/layout/OverflowingList/internal/focusOverflowingListFallback.d.ts +8 -0
- package/dist/components/layout/OverflowingList/internal/measureOverflowingListLayout.d.ts +10 -0
- package/dist/components/layout/OverflowingList/internal/types/OverflowingListLayout.d.ts +4 -0
- package/dist/components/layout/OverflowingList/internal/useFocusedElementUnmountRef.d.ts +1 -1
- package/dist/components/layout/OverflowingList/internal/useOverflowingListFocus.d.ts +30 -0
- package/dist/components/layout/OverflowingList/internal/useOverflowingListLayout.d.ts +6 -6
- package/dist/components/layout/OverflowingList/types/OverflowingListProps.d.ts +7 -2
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.mjs +1 -1
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +4 -4
- package/dist/components/navigation/Dropdown/internal/DropdownActionItem.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +6 -5
- package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownRowFocus.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/DropdownRowsEffect.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSubmenuTrigger.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/getDropdownItemExplicitId.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownRows.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownSearch.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownTabStopRowId.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/isDropdownDismissPrevented.d.ts +2 -1
- package/dist/components/navigation/Dropdown/internal/isDropdownRow.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/isEnabledDropdownItem.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/useDropdownItemFocus.d.ts +0 -1
- package/dist/components/navigation/Dropdown/internal/useDropdownKeyboardNavigation.d.ts +1 -6
- package/dist/components/navigation.cjs +1 -1
- package/dist/components/navigation.mjs +2 -2
- package/dist/components/settings.cjs +1 -1
- package/dist/components/settings.mjs +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +7 -7
- package/dist/data-display-0QO_WDSs.js +183 -0
- package/dist/data-display-CPmTJAWJ.cjs +1 -0
- package/dist/{data-display-DU3G8ZyI.js → data-display-KyZbLLy-.js} +1 -1
- package/dist/feedback-CM6fatE8.js +664 -0
- package/dist/feedback-ybO4n69s.cjs +1 -0
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/constants/TwentyIconDictionary.d.ts +7 -7
- package/dist/icon/index.d.ts +1 -1
- package/dist/{icon-JuDK6Wxr.cjs → icon-BNcdwwdl.cjs} +1 -1
- package/dist/{icon-BdXwnJA6.js → icon-CUE-QGQK.js} +129 -128
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +77 -76
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +222 -220
- package/dist/input-3D2lXywH.cjs +1 -0
- package/dist/{input-Bnu5kNjg.cjs → input-CJDYNwoO.cjs} +1 -1
- package/dist/{input-vl6yK36n.js → input-DRpDiMRi.js} +4 -4
- package/dist/input-TM3nUdu6.js +554 -0
- package/dist/layout-BszCDxAO.js +441 -0
- package/dist/layout-VaIq7Sjr.cjs +1 -0
- package/dist/{navigation-itBinyPi.js → navigation-B1SRvzKK.js} +8 -8
- package/dist/{navigation-Dg46Wr5m.js → navigation-CYAs2LnR.js} +1 -1
- package/dist/{navigation-WsiYsmaq.cjs → navigation-CthkGHJ8.cjs} +1 -1
- package/dist/{navigation-B1hPNYv2.cjs → navigation-DrOV5E67.cjs} +1 -1
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +1 -1
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +1 -1
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +3 -3
- package/dist/primitives/layout.cjs +1 -1
- package/dist/primitives/layout.mjs +1 -1
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +2 -2
- package/dist/primitives/surfaces/Tooltip/Tooltip.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/internal/TooltipPopup.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/types/TooltipPopupProps.d.ts +2 -0
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +2 -2
- package/dist/primitives/typography/OverflowingTextWithTooltip/OverflowingTextTooltipModeProvider.d.ts +6 -0
- package/dist/primitives/typography/OverflowingTextWithTooltip/internal/OverflowingTextTooltipModeContext.d.ts +2 -0
- package/dist/primitives/typography/OverflowingTextWithTooltip/internal/isElementOverflowing.d.ts +1 -0
- package/dist/primitives/typography/OverflowingTextWithTooltip/types/OverflowingTextTooltipMode.d.ts +1 -0
- package/dist/primitives/typography/Shortcut/Shortcut.d.ts +1 -1
- package/dist/primitives/typography/Shortcut/internal/getShortcutPresentation.d.ts +1 -1
- package/dist/primitives/typography/Shortcut/types/ShortcutFormatOptions.d.ts +1 -0
- package/dist/primitives/typography/index.d.ts +2 -0
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +10 -9
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +37 -36
- package/dist/{settings-BiSAY2oN.cjs → settings-BAYsnlZJ.cjs} +1 -1
- package/dist/{settings-CC-2gcAx.js → settings-BjEZiHXE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/surfaces-0rL5DoHt.cjs +1 -0
- package/dist/{surfaces-DZ2A-Nb9.js → surfaces-BLsR5ka0.js} +54 -54
- package/dist/typography-B5QEuPaL.cjs +1 -0
- package/dist/typography-fOTFr0jS.js +11 -0
- package/package.json +1 -1
- package/dist/Dropdown-BBUGkQQV.cjs +0 -1
- package/dist/Dropdown-CScN_olN.js +0 -784
- package/dist/ListItem.module-Ar-vZ7Qu.js +0 -34
- package/dist/ListItem.module-B8NeDH1P.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-Be2-wCcZ.js +0 -88
- package/dist/OverflowingTextWithTooltip-BlufG-6n.cjs +0 -1
- package/dist/ResizeHandle-CNlQ4TEE.cjs +0 -1
- package/dist/Shortcut-DKfB0kej.js +0 -71
- package/dist/Shortcut-ZuZ-KYSk.cjs +0 -1
- package/dist/TabsTabContent-DZUNi_iE.cjs +0 -1
- package/dist/TabsTabContent-s6J5bZ3R.js +0 -39
- package/dist/Tooltip-BMkznyoi.js +0 -120
- package/dist/Tooltip-JOYVeSsf.cjs +0 -1
- package/dist/components/navigation/Dropdown/internal/DropdownSearchTargetEffect.d.ts +0 -5
- package/dist/data-display-BMV-nC-9.js +0 -181
- package/dist/data-display-BkujQe5v.cjs +0 -1
- package/dist/feedback-B5x8tmnG.cjs +0 -1
- package/dist/feedback-DhilJ_fX.js +0 -509
- package/dist/input-BEKjAOjS.cjs +0 -1
- package/dist/input-BUgnp6eA.js +0 -559
- package/dist/layout-BKHabkTu.js +0 -267
- package/dist/layout-wuIu4rJ3.cjs +0 -1
- package/dist/surfaces-vyAhk2Gw.cjs +0 -1
- package/dist/typography-8DF9mq2w.cjs +0 -1
- package/dist/typography-DmY7-GzQ.js +0 -5
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ToastProps } from '../../types/ToastProps';
|
|
2
|
-
import {
|
|
2
|
+
import { createToastCountdownStore } from '../utils/createToastCountdownStore';
|
|
3
3
|
type ToastCountdownEffectProps = Pick<ToastProps, 'progress' | 'onClose'> & {
|
|
4
|
-
clock: ReturnType<typeof
|
|
4
|
+
clock: ReturnType<typeof createToastCountdownStore>;
|
|
5
|
+
onClockChange: (clock: ReturnType<typeof createToastCountdownStore>) => void;
|
|
5
6
|
duration: number;
|
|
6
7
|
isPaused: boolean;
|
|
7
8
|
};
|
|
8
|
-
export declare const ToastCountdownEffect: ({ clock, duration, progress, isPaused, onClose, }: ToastCountdownEffectProps) => null;
|
|
9
|
+
export declare const ToastCountdownEffect: ({ clock, onClockChange, duration, progress, isPaused, onClose, }: ToastCountdownEffectProps) => null;
|
|
9
10
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_TOAST_DURATION = 6000;
|
|
@@ -1 +1,60 @@
|
|
|
1
|
-
export declare const ToastContext: import('react').Context<import('@base-ui/utils/store').Store<import('../types/ToastStoreState').ToastStoreState>
|
|
1
|
+
export declare const ToastContext: import('react').Context<(import('@base-ui/utils/store').Store<import('../types/ToastStoreState').ToastStoreState> & {
|
|
2
|
+
lifecycle: {
|
|
3
|
+
mount: () => () => void;
|
|
4
|
+
isActive: () => boolean;
|
|
5
|
+
getCountdown: (id: string) => {
|
|
6
|
+
getSnapshot: () => {
|
|
7
|
+
duration: number;
|
|
8
|
+
remainingDuration: number;
|
|
9
|
+
revision: number;
|
|
10
|
+
isPaused: boolean;
|
|
11
|
+
};
|
|
12
|
+
subscribe: (listener: () => void) => () => void;
|
|
13
|
+
update: (nextConfiguration: {
|
|
14
|
+
duration: number;
|
|
15
|
+
durationRevision: number;
|
|
16
|
+
isPaused: boolean;
|
|
17
|
+
isProgress: boolean;
|
|
18
|
+
isActive: boolean;
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
}) => void;
|
|
21
|
+
close: () => void;
|
|
22
|
+
stop: () => void;
|
|
23
|
+
} | undefined;
|
|
24
|
+
updateRenderer: ({ id, key, configuration, }: {
|
|
25
|
+
id: string;
|
|
26
|
+
key: symbol;
|
|
27
|
+
configuration: {
|
|
28
|
+
duration?: number;
|
|
29
|
+
isProgress?: boolean;
|
|
30
|
+
isPaused: boolean;
|
|
31
|
+
};
|
|
32
|
+
}) => {
|
|
33
|
+
getSnapshot: () => {
|
|
34
|
+
duration: number;
|
|
35
|
+
remainingDuration: number;
|
|
36
|
+
revision: number;
|
|
37
|
+
isPaused: boolean;
|
|
38
|
+
};
|
|
39
|
+
subscribe: (listener: () => void) => () => void;
|
|
40
|
+
update: (nextConfiguration: {
|
|
41
|
+
duration: number;
|
|
42
|
+
durationRevision: number;
|
|
43
|
+
isPaused: boolean;
|
|
44
|
+
isProgress: boolean;
|
|
45
|
+
isActive: boolean;
|
|
46
|
+
onClose?: () => void;
|
|
47
|
+
}) => void;
|
|
48
|
+
close: () => void;
|
|
49
|
+
stop: () => void;
|
|
50
|
+
};
|
|
51
|
+
removeRenderer: ({ id, key }: {
|
|
52
|
+
id: string;
|
|
53
|
+
key: symbol;
|
|
54
|
+
}) => void;
|
|
55
|
+
finishExit: ({ id, key }: {
|
|
56
|
+
id: string;
|
|
57
|
+
key: symbol;
|
|
58
|
+
}) => void;
|
|
59
|
+
};
|
|
60
|
+
}) | undefined>;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { createToastLifecycle } from '../utils/createToastLifecycle';
|
|
2
|
+
type ToastTiming = {
|
|
2
3
|
durationRevision: number;
|
|
3
4
|
isActive: boolean;
|
|
4
|
-
|
|
5
|
+
lifecycle?: ReturnType<typeof createToastLifecycle>;
|
|
6
|
+
id?: string;
|
|
7
|
+
rendererKey?: symbol;
|
|
8
|
+
timingOverrides?: {
|
|
9
|
+
duration?: number;
|
|
10
|
+
progress?: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const ToastTimingContext: import('react').Context<ToastTiming>;
|
|
14
|
+
export {};
|
|
@@ -1 +1,60 @@
|
|
|
1
|
-
export declare const useToastContext: () => import('@base-ui/utils/store').Store<import('../types/ToastStoreState').ToastStoreState
|
|
1
|
+
export declare const useToastContext: () => import('@base-ui/utils/store').Store<import('../types/ToastStoreState').ToastStoreState> & {
|
|
2
|
+
lifecycle: {
|
|
3
|
+
mount: () => () => void;
|
|
4
|
+
isActive: () => boolean;
|
|
5
|
+
getCountdown: (id: string) => {
|
|
6
|
+
getSnapshot: () => {
|
|
7
|
+
duration: number;
|
|
8
|
+
remainingDuration: number;
|
|
9
|
+
revision: number;
|
|
10
|
+
isPaused: boolean;
|
|
11
|
+
};
|
|
12
|
+
subscribe: (listener: () => void) => () => void;
|
|
13
|
+
update: (nextConfiguration: {
|
|
14
|
+
duration: number;
|
|
15
|
+
durationRevision: number;
|
|
16
|
+
isPaused: boolean;
|
|
17
|
+
isProgress: boolean;
|
|
18
|
+
isActive: boolean;
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
}) => void;
|
|
21
|
+
close: () => void;
|
|
22
|
+
stop: () => void;
|
|
23
|
+
} | undefined;
|
|
24
|
+
updateRenderer: ({ id, key, configuration, }: {
|
|
25
|
+
id: string;
|
|
26
|
+
key: symbol;
|
|
27
|
+
configuration: {
|
|
28
|
+
duration?: number;
|
|
29
|
+
isProgress?: boolean;
|
|
30
|
+
isPaused: boolean;
|
|
31
|
+
};
|
|
32
|
+
}) => {
|
|
33
|
+
getSnapshot: () => {
|
|
34
|
+
duration: number;
|
|
35
|
+
remainingDuration: number;
|
|
36
|
+
revision: number;
|
|
37
|
+
isPaused: boolean;
|
|
38
|
+
};
|
|
39
|
+
subscribe: (listener: () => void) => () => void;
|
|
40
|
+
update: (nextConfiguration: {
|
|
41
|
+
duration: number;
|
|
42
|
+
durationRevision: number;
|
|
43
|
+
isPaused: boolean;
|
|
44
|
+
isProgress: boolean;
|
|
45
|
+
isActive: boolean;
|
|
46
|
+
onClose?: () => void;
|
|
47
|
+
}) => void;
|
|
48
|
+
close: () => void;
|
|
49
|
+
stop: () => void;
|
|
50
|
+
};
|
|
51
|
+
removeRenderer: ({ id, key }: {
|
|
52
|
+
id: string;
|
|
53
|
+
key: symbol;
|
|
54
|
+
}) => void;
|
|
55
|
+
finishExit: ({ id, key }: {
|
|
56
|
+
id: string;
|
|
57
|
+
key: symbol;
|
|
58
|
+
}) => void;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -9,6 +9,13 @@ export declare const useToastCountdown: ({ duration, isPaused, }: {
|
|
|
9
9
|
isPaused: boolean;
|
|
10
10
|
};
|
|
11
11
|
clock: {
|
|
12
|
+
getSnapshot: () => {
|
|
13
|
+
duration: number;
|
|
14
|
+
remainingDuration: number;
|
|
15
|
+
revision: number;
|
|
16
|
+
isPaused: boolean;
|
|
17
|
+
};
|
|
18
|
+
subscribe: (listener: () => void) => () => void;
|
|
12
19
|
update: (nextConfiguration: {
|
|
13
20
|
duration: number;
|
|
14
21
|
durationRevision: number;
|
|
@@ -20,4 +27,23 @@ export declare const useToastCountdown: ({ duration, isPaused, }: {
|
|
|
20
27
|
close: () => void;
|
|
21
28
|
stop: () => void;
|
|
22
29
|
};
|
|
30
|
+
setClock: import('react').Dispatch<import('react').SetStateAction<{
|
|
31
|
+
getSnapshot: () => {
|
|
32
|
+
duration: number;
|
|
33
|
+
remainingDuration: number;
|
|
34
|
+
revision: number;
|
|
35
|
+
isPaused: boolean;
|
|
36
|
+
};
|
|
37
|
+
subscribe: (listener: () => void) => () => void;
|
|
38
|
+
update: (nextConfiguration: {
|
|
39
|
+
duration: number;
|
|
40
|
+
durationRevision: number;
|
|
41
|
+
isPaused: boolean;
|
|
42
|
+
isProgress: boolean;
|
|
43
|
+
isActive: boolean;
|
|
44
|
+
onClose?: () => void;
|
|
45
|
+
}) => void;
|
|
46
|
+
close: () => void;
|
|
47
|
+
stop: () => void;
|
|
48
|
+
}>>;
|
|
23
49
|
};
|
|
@@ -1,3 +1,62 @@
|
|
|
1
1
|
import { Store } from '@base-ui/utils/store';
|
|
2
2
|
import { ToastStoreState } from '../types/ToastStoreState';
|
|
3
|
-
export declare const createToastStore: (limit?: number) => Store<ToastStoreState
|
|
3
|
+
export declare const createToastStore: (limit?: number) => Store<ToastStoreState> & {
|
|
4
|
+
lifecycle: {
|
|
5
|
+
mount: () => () => void;
|
|
6
|
+
isActive: () => boolean;
|
|
7
|
+
getCountdown: (id: string) => {
|
|
8
|
+
getSnapshot: () => {
|
|
9
|
+
duration: number;
|
|
10
|
+
remainingDuration: number;
|
|
11
|
+
revision: number;
|
|
12
|
+
isPaused: boolean;
|
|
13
|
+
};
|
|
14
|
+
subscribe: (listener: () => void) => () => void;
|
|
15
|
+
update: (nextConfiguration: {
|
|
16
|
+
duration: number;
|
|
17
|
+
durationRevision: number;
|
|
18
|
+
isPaused: boolean;
|
|
19
|
+
isProgress: boolean;
|
|
20
|
+
isActive: boolean;
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
}) => void;
|
|
23
|
+
close: () => void;
|
|
24
|
+
stop: () => void;
|
|
25
|
+
} | undefined;
|
|
26
|
+
updateRenderer: ({ id, key, configuration, }: {
|
|
27
|
+
id: string;
|
|
28
|
+
key: symbol;
|
|
29
|
+
configuration: {
|
|
30
|
+
duration?: number;
|
|
31
|
+
isProgress?: boolean;
|
|
32
|
+
isPaused: boolean;
|
|
33
|
+
};
|
|
34
|
+
}) => {
|
|
35
|
+
getSnapshot: () => {
|
|
36
|
+
duration: number;
|
|
37
|
+
remainingDuration: number;
|
|
38
|
+
revision: number;
|
|
39
|
+
isPaused: boolean;
|
|
40
|
+
};
|
|
41
|
+
subscribe: (listener: () => void) => () => void;
|
|
42
|
+
update: (nextConfiguration: {
|
|
43
|
+
duration: number;
|
|
44
|
+
durationRevision: number;
|
|
45
|
+
isPaused: boolean;
|
|
46
|
+
isProgress: boolean;
|
|
47
|
+
isActive: boolean;
|
|
48
|
+
onClose?: () => void;
|
|
49
|
+
}) => void;
|
|
50
|
+
close: () => void;
|
|
51
|
+
stop: () => void;
|
|
52
|
+
};
|
|
53
|
+
removeRenderer: ({ id, key }: {
|
|
54
|
+
id: string;
|
|
55
|
+
key: symbol;
|
|
56
|
+
}) => void;
|
|
57
|
+
finishExit: ({ id, key }: {
|
|
58
|
+
id: string;
|
|
59
|
+
key: symbol;
|
|
60
|
+
}) => void;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const assertValidToastLimit: (limit: number) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Store } from '@base-ui/utils/store';
|
|
2
|
+
import { ToastStoreState } from '../types/ToastStoreState';
|
|
2
3
|
import { ToastEntry } from '../types/ToastEntry';
|
|
3
4
|
export declare const completeToastExit: ({ store, toast, }: {
|
|
4
|
-
store:
|
|
5
|
+
store: Store<ToastStoreState>;
|
|
5
6
|
toast: ToastEntry;
|
|
6
7
|
}) => void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createToastCountdown } from './createToastCountdown';
|
|
2
|
+
type CountdownSnapshot = Parameters<Parameters<typeof createToastCountdown>[0]['onChange']>[0];
|
|
3
|
+
export declare const createToastCountdownStore: ({ duration, isPaused, }: Pick<CountdownSnapshot, "duration" | "isPaused">) => {
|
|
4
|
+
getSnapshot: () => {
|
|
5
|
+
duration: number;
|
|
6
|
+
remainingDuration: number;
|
|
7
|
+
revision: number;
|
|
8
|
+
isPaused: boolean;
|
|
9
|
+
};
|
|
10
|
+
subscribe: (listener: () => void) => () => void;
|
|
11
|
+
update: (nextConfiguration: {
|
|
12
|
+
duration: number;
|
|
13
|
+
durationRevision: number;
|
|
14
|
+
isPaused: boolean;
|
|
15
|
+
isProgress: boolean;
|
|
16
|
+
isActive: boolean;
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
}) => void;
|
|
19
|
+
close: () => void;
|
|
20
|
+
stop: () => void;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Store } from '@base-ui/utils/store';
|
|
2
|
+
import { ToastStoreState } from '../types/ToastStoreState';
|
|
3
|
+
type RendererConfiguration = {
|
|
4
|
+
duration?: number;
|
|
5
|
+
isProgress?: boolean;
|
|
6
|
+
isPaused: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const createToastLifecycle: (store: Store<ToastStoreState>) => {
|
|
9
|
+
mount: () => () => void;
|
|
10
|
+
isActive: () => boolean;
|
|
11
|
+
getCountdown: (id: string) => {
|
|
12
|
+
getSnapshot: () => {
|
|
13
|
+
duration: number;
|
|
14
|
+
remainingDuration: number;
|
|
15
|
+
revision: number;
|
|
16
|
+
isPaused: boolean;
|
|
17
|
+
};
|
|
18
|
+
subscribe: (listener: () => void) => () => void;
|
|
19
|
+
update: (nextConfiguration: {
|
|
20
|
+
duration: number;
|
|
21
|
+
durationRevision: number;
|
|
22
|
+
isPaused: boolean;
|
|
23
|
+
isProgress: boolean;
|
|
24
|
+
isActive: boolean;
|
|
25
|
+
onClose?: () => void;
|
|
26
|
+
}) => void;
|
|
27
|
+
close: () => void;
|
|
28
|
+
stop: () => void;
|
|
29
|
+
} | undefined;
|
|
30
|
+
updateRenderer: ({ id, key, configuration, }: {
|
|
31
|
+
id: string;
|
|
32
|
+
key: symbol;
|
|
33
|
+
configuration: RendererConfiguration;
|
|
34
|
+
}) => {
|
|
35
|
+
getSnapshot: () => {
|
|
36
|
+
duration: number;
|
|
37
|
+
remainingDuration: number;
|
|
38
|
+
revision: number;
|
|
39
|
+
isPaused: boolean;
|
|
40
|
+
};
|
|
41
|
+
subscribe: (listener: () => void) => () => void;
|
|
42
|
+
update: (nextConfiguration: {
|
|
43
|
+
duration: number;
|
|
44
|
+
durationRevision: number;
|
|
45
|
+
isPaused: boolean;
|
|
46
|
+
isProgress: boolean;
|
|
47
|
+
isActive: boolean;
|
|
48
|
+
onClose?: () => void;
|
|
49
|
+
}) => void;
|
|
50
|
+
close: () => void;
|
|
51
|
+
stop: () => void;
|
|
52
|
+
};
|
|
53
|
+
removeRenderer: ({ id, key }: {
|
|
54
|
+
id: string;
|
|
55
|
+
key: symbol;
|
|
56
|
+
}) => void;
|
|
57
|
+
finishExit: ({ id, key }: {
|
|
58
|
+
id: string;
|
|
59
|
+
key: symbol;
|
|
60
|
+
}) => void;
|
|
61
|
+
};
|
|
62
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Store } from '@base-ui/utils/store';
|
|
2
|
+
import { ToastStoreState } from '../types/ToastStoreState';
|
|
2
3
|
import { ToastEntry } from '../types/ToastEntry';
|
|
3
4
|
export declare const dismissToasts: ({ store, toastsToClose, nextToasts, }: {
|
|
4
|
-
store:
|
|
5
|
+
store: Store<ToastStoreState>;
|
|
5
6
|
toastsToClose: ToastEntry[];
|
|
6
7
|
nextToasts?: ToastEntry[];
|
|
7
8
|
}) => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ToasterLifecycleExampleProps } from './ToasterLifecycleExampleProps';
|
|
2
|
+
type ToasterLifecycleControlsProps = Pick<ToasterLifecycleExampleProps, 'duration' | 'hasUnrelatedNotificationActions' | 'onClose'> & {
|
|
3
|
+
onDetachRenderers: () => void;
|
|
4
|
+
onRememberProviderOperations?: (operations: () => void) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const ToasterLifecycleControls: ({ duration, hasUnrelatedNotificationActions, onClose, onDetachRenderers, onRememberProviderOperations, }: ToasterLifecycleControlsProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ToasterLifecycleExampleProps } from './ToasterLifecycleExampleProps';
|
|
2
|
+
export declare const ToasterLifecycleExample: ({ duration, hasIndependentProvider, hasSlowMirrorExit, hasUnrelatedNotificationActions, onClose, }: ToasterLifecycleExampleProps) => import("react").JSX.Element;
|
package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleTimingOverrideExample.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ToastProps } from '../../Toast/types/ToastProps';
|
|
2
|
+
type ToasterLifecycleTimingOverrideExampleProps = {
|
|
3
|
+
duration?: number;
|
|
4
|
+
progress?: number;
|
|
5
|
+
initialTimingOverrides: Pick<Partial<ToastProps>, 'duration' | 'progress'>;
|
|
6
|
+
onClose?: (notification: string) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const ToasterLifecycleTimingOverrideExample: ({ duration, progress, initialTimingOverrides, onClose, }: ToasterLifecycleTimingOverrideExampleProps) => import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type ToasterLifecycleUnrelatedNotificationActionsProps = {
|
|
2
|
+
onClose?: (notification: string) => void;
|
|
3
|
+
};
|
|
4
|
+
export declare const ToasterLifecycleUnrelatedNotificationActions: ({ onClose, }: ToasterLifecycleUnrelatedNotificationActionsProps) => import("react").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ToasterLifecycleExampleProps } from './ToasterLifecycleExampleProps';
|
|
2
|
+
type ToasterProviderLayoutReplayEffectProps = Pick<ToasterLifecycleExampleProps, 'onClose'>;
|
|
3
|
+
export declare const ToasterProviderLayoutReplayEffect: ({ onClose, }: ToasterProviderLayoutReplayEffectProps) => null;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ToasterLifecycleExampleProps } from './ToasterLifecycleExampleProps';
|
|
2
|
+
type ToasterProviderPassiveReplayEffectProps = Pick<ToasterLifecycleExampleProps, 'onClose'>;
|
|
3
|
+
export declare const ToasterProviderPassiveReplayEffect: ({ onClose, }: ToasterProviderPassiveReplayEffectProps) => null;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ToasterLifecycleExampleProps } from './ToasterLifecycleExampleProps';
|
|
2
|
+
type ToasterProviderSuspenseExampleProps = Pick<ToasterLifecycleExampleProps, 'duration' | 'onClose'>;
|
|
3
|
+
export declare const ToasterProviderSuspenseExample: ({ duration, onClose, }: ToasterProviderSuspenseExampleProps) => import("react").JSX.Element;
|
|
4
|
+
export {};
|
|
@@ -3,6 +3,7 @@ import { ToastEntry } from '../../Toast/internal/types/ToastEntry';
|
|
|
3
3
|
type ToasterItemExitEffectProps = {
|
|
4
4
|
elementRef: RefObject<HTMLDivElement | null>;
|
|
5
5
|
toastEntry: ToastEntry;
|
|
6
|
+
rendererKey: symbol;
|
|
6
7
|
};
|
|
7
|
-
export declare const ToasterItemExitEffect: ({ elementRef, toastEntry, }: ToasterItemExitEffectProps) =>
|
|
8
|
+
export declare const ToasterItemExitEffect: ({ elementRef, toastEntry, rendererKey, }: ToasterItemExitEffectProps) => null;
|
|
8
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../feedback-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../feedback-ybO4n69s.cjs");exports.Callout=e.Callout;exports.InlineBanner=e.InlineBanner;exports.Toast=e.Toast;exports.ToastProvider=e.ToastProvider;exports.Toaster=e.Toaster;exports.useToast=e.useToast;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SearchInputProps } from './types/SearchInputProps';
|
|
2
|
-
export declare const SearchInput: ({ placeholder,
|
|
2
|
+
export declare const SearchInput: ({ placeholder, actions, size, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: SearchInputProps) => import("react").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { InputProps } from '../../../../primitives/input/Input/types/InputProps';
|
|
3
3
|
export type SearchInputProps = InputProps & {
|
|
4
|
-
|
|
5
|
-
filterButtonAriaLabel?: string;
|
|
4
|
+
actions?: ReactNode;
|
|
6
5
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SegmentedControlProps } from './types/SegmentedControlProps';
|
|
2
|
-
export declare const SegmentedControl: <TValue extends string>({ className, itemWidth, options, ...props }: SegmentedControlProps<TValue>) => import("react").JSX.Element;
|
|
2
|
+
export declare const SegmentedControl: <TValue extends string>({ className, itemWidth, options, size, ...props }: SegmentedControlProps<TValue>) => import("react").JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { RadioGroupProps } from '../../../../primitives/input/RadioGroup/types/RadioGroupProps';
|
|
2
2
|
import { SegmentedControlOption } from './SegmentedControlOption';
|
|
3
|
+
import { SegmentedControlSize } from './SegmentedControlSize';
|
|
3
4
|
export type SegmentedControlProps<TValue extends string = string> = Omit<RadioGroupProps<TValue>, 'aria-label' | 'aria-labelledby' | 'children' | 'role'> & {
|
|
4
5
|
itemWidth?: 'content' | 'equal';
|
|
5
6
|
options: readonly SegmentedControlOption<TValue>[];
|
|
7
|
+
size?: SegmentedControlSize;
|
|
6
8
|
} & ({
|
|
7
9
|
'aria-label': string;
|
|
8
10
|
} | {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SegmentedControlSize = 'sm' | 'md';
|
|
@@ -26,3 +26,4 @@ export type { SearchInputProps } from './SearchInput/types/SearchInputProps';
|
|
|
26
26
|
export { SegmentedControl } from './SegmentedControl/SegmentedControl';
|
|
27
27
|
export type { SegmentedControlOption } from './SegmentedControl/types/SegmentedControlOption';
|
|
28
28
|
export type { SegmentedControlProps } from './SegmentedControl/types/SegmentedControlProps';
|
|
29
|
+
export type { SegmentedControlSize } from './SegmentedControl/types/SegmentedControlSize';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../Dropdown-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../Dropdown-BKjAaZS0.cjs"),e=require("../input-3D2lXywH.cjs");exports.CountrySelect=e.CountrySelect;exports.CurrencyPicker=e.CurrencyPicker;exports.IconButton=t.IconButton;exports.ImageInput=e.ImageInput;exports.LightButton=e.LightButton;exports.LightIconButton=t.LightIconButton;exports.MainButton=e.MainButton;exports.NumberStepper=e.NumberStepper;exports.PhoneCountryPicker=e.PhoneCountryPicker;exports.SearchInput=e.SearchInput;exports.SegmentedControl=e.SegmentedControl;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n, r as o } from "../Dropdown-
|
|
2
|
-
import { a, c as e, i as s, l as u, n as c, o as i, r as m, s as p, t as I } from "../input-
|
|
1
|
+
import { n, r as o } from "../Dropdown-C2hXrjvD.js";
|
|
2
|
+
import { a, c as e, i as s, l as u, n as c, o as i, r as m, s as p, t as I } from "../input-TM3nUdu6.js";
|
|
3
3
|
export {
|
|
4
4
|
u as CountrySelect,
|
|
5
5
|
e as CurrencyPicker,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { OverflowingListProps } from './types/OverflowingListProps';
|
|
2
|
-
export declare const OverflowingList: ({ children, showOverflowCount, maxInlineCount, overflowLabel, className, onMouseEnter, onMouseLeave, onFocusCapture, onBlurCapture, ref, ...props }: OverflowingListProps) => import("react").JSX.Element;
|
|
2
|
+
export declare const OverflowingList: ({ children, showOverflowCount, maxInlineCount, overflowLabel, open, defaultOpen, onOpenChange, actionsRef, triggerProps, popupProps, className, onMouseEnter, onMouseLeave, onFocusCapture, onBlurCapture, ref, ...props }: OverflowingListProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OverflowingListProps } from '../types/OverflowingListProps';
|
|
2
|
+
type OverflowingListActionsExampleProps = {
|
|
3
|
+
deferClose?: boolean;
|
|
4
|
+
onOpenChange?: OverflowingListProps['onOpenChange'];
|
|
5
|
+
};
|
|
6
|
+
export declare const OverflowingListActionsExample: ({ deferClose, onOpenChange, }: OverflowingListActionsExampleProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
package/dist/components/layout/OverflowingList/__stories__/OverflowingListCanceledCloseExample.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListCanceledCloseExample: () => import("react").JSX.Element;
|
package/dist/components/layout/OverflowingList/__stories__/OverflowingListControlledExample.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListControlledExample: () => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListControlledStateExample: () => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListDisabledTriggerFocusExample: () => import("react").JSX.Element;
|
package/dist/components/layout/OverflowingList/__stories__/OverflowingListEventBlockingExample.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
2
|
+
type OverflowingListEventBlockingExampleProps = {
|
|
3
|
+
onHostEvent: (event: SyntheticEvent) => void;
|
|
4
|
+
onOverrideEvent: (event: SyntheticEvent) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const OverflowingListEventBlockingExample: ({ onHostEvent, onOverrideEvent, }: OverflowingListEventBlockingExampleProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListFocusExample: () => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListInstanceCleanupExample: () => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListStateExample: () => import("react").JSX.Element;
|
package/dist/components/layout/OverflowingList/__stories__/OverflowingListTriggerRefExample.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListTriggerRefExample: () => import("react").JSX.Element;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
type OverflowingListItemProps = {
|
|
3
3
|
children: ReactElement;
|
|
4
|
+
index: number;
|
|
4
5
|
isHidden: boolean;
|
|
5
6
|
isLastVisible: boolean;
|
|
6
|
-
|
|
7
|
+
isInPopup: boolean;
|
|
8
|
+
onFocusLost: (options: {
|
|
9
|
+
index: number;
|
|
10
|
+
element: HTMLElement;
|
|
11
|
+
isInPopup: boolean;
|
|
12
|
+
}) => void;
|
|
7
13
|
};
|
|
8
|
-
export declare const OverflowingListItem: ({ children, isHidden, isLastVisible,
|
|
14
|
+
export declare const OverflowingListItem: ({ children, index, isHidden, isLastVisible, isInPopup, onFocusLost, }: OverflowingListItemProps) => import("react").JSX.Element;
|
|
9
15
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
type OverflowingListItemFocusEffectProps = {
|
|
3
|
+
elementRef: RefObject<HTMLDivElement | null>;
|
|
4
|
+
isHidden: boolean;
|
|
5
|
+
onFocusLost: (element: HTMLElement) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const OverflowingListItemFocusEffect: import('react').MemoExoticComponent<({ elementRef, isHidden, onFocusLost, }: OverflowingListItemFocusEffectProps) => null>;
|
|
8
|
+
export {};
|