@duro-app/ui 5.11.0 → 5.13.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/Table-Bms2ftt3.js +1694 -0
- package/dist/Table-Bms2ftt3.js.map +1 -0
- package/dist/compiler-runtime-BuugS4D0.js.map +1 -1
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/AppShell/native.css.d.ts +53 -0
- package/dist/components/AppShell/native.css.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/styles.css.d.ts +1 -0
- package/dist/components/Button/styles.css.d.ts.map +1 -1
- package/dist/components/Callout/Callout.d.ts.map +1 -1
- package/dist/components/Callout/styles.css.d.ts +3 -0
- package/dist/components/Callout/styles.css.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/DetailPanel/DetailPanel.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +2 -17
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.stories.d.ts +4 -0
- package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
- package/dist/components/Dialog/native.css.d.ts +82 -0
- package/dist/components/Dialog/native.css.d.ts.map +1 -0
- package/dist/components/Dialog/parts.css.d.ts +82 -0
- package/dist/components/Dialog/parts.css.d.ts.map +1 -0
- package/dist/components/Dialog/parts.d.ts +35 -0
- package/dist/components/Dialog/parts.d.ts.map +1 -0
- package/dist/components/Dialog/styles.css.d.ts +1 -74
- package/dist/components/Dialog/styles.css.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +7 -35
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.meta.d.ts.map +1 -1
- package/dist/components/Drawer/DrawerScroll.stories.d.ts.map +1 -1
- package/dist/components/Drawer/DrawerSnap.stories.d.ts +20 -0
- package/dist/components/Drawer/DrawerSnap.stories.d.ts.map +1 -0
- package/dist/components/Drawer/native.css.d.ts +55 -0
- package/dist/components/Drawer/native.css.d.ts.map +1 -0
- package/dist/components/Drawer/parts.css.d.ts +96 -0
- package/dist/components/Drawer/parts.css.d.ts.map +1 -0
- package/dist/components/Drawer/parts.d.ts +56 -0
- package/dist/components/Drawer/parts.d.ts.map +1 -0
- package/dist/components/Drawer/sheetPhysics.d.ts +56 -0
- package/dist/components/Drawer/sheetPhysics.d.ts.map +1 -0
- package/dist/components/Drawer/styles.css.d.ts +15 -58
- package/dist/components/Drawer/styles.css.d.ts.map +1 -1
- package/dist/components/Drawer/touchInput.d.ts +35 -0
- package/dist/components/Drawer/touchInput.d.ts.map +1 -0
- package/dist/components/Drawer/useDrawerRoot.d.ts +33 -0
- package/dist/components/Drawer/useDrawerRoot.d.ts.map +1 -0
- package/dist/components/Drawer/useSheetHeights.d.ts +7 -0
- package/dist/components/Drawer/useSheetHeights.d.ts.map +1 -0
- package/dist/components/Drawer/useSwipeDismiss.d.ts +13 -2
- package/dist/components/Drawer/useSwipeDismiss.d.ts.map +1 -1
- package/dist/components/Grid/styles.css.d.ts +1 -0
- package/dist/components/Grid/styles.css.d.ts.map +1 -1
- package/dist/components/Icon/Icon.d.ts +3 -9
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/geometry.d.ts +60 -0
- package/dist/components/Icon/geometry.d.ts.map +1 -0
- package/dist/components/Icon/types.d.ts +15 -0
- package/dist/components/Icon/types.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +5 -1
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/styles.css.d.ts +1 -0
- package/dist/components/Input/styles.css.d.ts.map +1 -1
- package/dist/components/LinkButton/styles.css.d.ts +1 -0
- package/dist/components/LinkButton/styles.css.d.ts.map +1 -1
- package/dist/components/Menu/Menu.d.ts +7 -1
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/native.css.d.ts +14 -0
- package/dist/components/Menu/native.css.d.ts.map +1 -0
- package/dist/components/Menu/useMenuOpen.d.ts +16 -0
- package/dist/components/Menu/useMenuOpen.d.ts.map +1 -0
- package/dist/components/Menu/useMenuRoot.d.ts +3 -6
- package/dist/components/Menu/useMenuRoot.d.ts.map +1 -1
- package/dist/components/Meter/styles.css.d.ts +1 -0
- package/dist/components/Meter/styles.css.d.ts.map +1 -1
- package/dist/components/PageShell/styles.css.d.ts +2 -0
- package/dist/components/PageShell/styles.css.d.ts.map +1 -1
- package/dist/components/Popover/native.css.d.ts +11 -0
- package/dist/components/Popover/native.css.d.ts.map +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +1 -17
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.d.ts +3 -0
- package/dist/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
- package/dist/components/RadioGroup/group.d.ts +31 -0
- package/dist/components/RadioGroup/group.d.ts.map +1 -0
- package/dist/components/RadioGroup/styles.css.d.ts +10 -0
- package/dist/components/RadioGroup/styles.css.d.ts.map +1 -1
- package/dist/components/ScrollArea/styles.css.d.ts +1 -0
- package/dist/components/ScrollArea/styles.css.d.ts.map +1 -1
- package/dist/components/SideNav/Chevron.d.ts +4 -0
- package/dist/components/SideNav/Chevron.d.ts.map +1 -0
- package/dist/components/SideNav/SideNav.d.ts.map +1 -1
- package/dist/components/SideNav/styles.css.d.ts +6 -0
- package/dist/components/SideNav/styles.css.d.ts.map +1 -1
- package/dist/components/SideNav/types.d.ts +6 -0
- package/dist/components/SideNav/types.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.d.ts +2 -6
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.types.d.ts +6 -0
- package/dist/components/Spinner/Spinner.types.d.ts.map +1 -0
- package/dist/components/Spinner/ring.css.d.ts +39 -0
- package/dist/components/Spinner/ring.css.d.ts.map +1 -0
- package/dist/components/Spinner/styles.css.d.ts +1 -28
- package/dist/components/Spinner/styles.css.d.ts.map +1 -1
- package/dist/components/SplitPane/SplitPane.d.ts +38 -0
- package/dist/components/SplitPane/SplitPane.d.ts.map +1 -0
- package/dist/components/SplitPane/SplitPane.meta.d.ts +3 -0
- package/dist/components/SplitPane/SplitPane.meta.d.ts.map +1 -0
- package/dist/components/SplitPane/SplitPane.stories.d.ts +17 -0
- package/dist/components/SplitPane/SplitPane.stories.d.ts.map +1 -0
- package/dist/components/SplitPane/styles.css.d.ts +78 -0
- package/dist/components/SplitPane/styles.css.d.ts.map +1 -0
- package/dist/components/StatusIcon/StatusIcon.d.ts.map +1 -1
- package/dist/components/StatusIcon/styles.css.d.ts +3 -0
- package/dist/components/StatusIcon/styles.css.d.ts.map +1 -1
- package/dist/components/Switch/Switch.d.ts +2 -18
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.types.d.ts +18 -0
- package/dist/components/Switch/Switch.types.d.ts.map +1 -0
- package/dist/components/TableOfContents/styles.css.d.ts +1 -0
- package/dist/components/TableOfContents/styles.css.d.ts.map +1 -1
- package/dist/components/Tabs/TabLayout.d.ts +7 -0
- package/dist/components/Tabs/TabLayout.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/indicator.d.ts +28 -0
- package/dist/components/Tabs/indicator.d.ts.map +1 -0
- package/dist/components/Tabs/styles.css.d.ts +4 -0
- package/dist/components/Tabs/styles.css.d.ts.map +1 -1
- package/dist/components/Tabs/useTabIndicator.d.ts +4 -0
- package/dist/components/Tabs/useTabIndicator.d.ts.map +1 -0
- package/dist/components/Tabs/useTabKeys.d.ts +13 -0
- package/dist/components/Tabs/useTabKeys.d.ts.map +1 -0
- package/dist/components/Tag/RemoveGlyph.d.ts +4 -0
- package/dist/components/Tag/RemoveGlyph.d.ts.map +1 -0
- package/dist/components/Tag/Tag.d.ts +2 -24
- package/dist/components/Tag/Tag.d.ts.map +1 -1
- package/dist/components/Tag/styles.css.d.ts +8 -0
- package/dist/components/Tag/styles.css.d.ts.map +1 -1
- package/dist/components/Tag/types.d.ts +39 -0
- package/dist/components/Tag/types.d.ts.map +1 -0
- package/dist/components/Textarea/styles.css.d.ts +1 -0
- package/dist/components/Textarea/styles.css.d.ts.map +1 -1
- package/dist/components/Toast/ToastProvider.d.ts +2 -21
- package/dist/components/Toast/ToastProvider.d.ts.map +1 -1
- package/dist/components/Toast/native.css.d.ts +81 -0
- package/dist/components/Toast/native.css.d.ts.map +1 -0
- package/dist/components/Toast/store.d.ts +47 -0
- package/dist/components/Toast/store.d.ts.map +1 -0
- package/dist/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/Toggle/styles.css.d.ts +11 -2
- package/dist/components/Toggle/styles.css.d.ts.map +1 -1
- package/dist/components/Tooltip/TooltipHint.d.ts +9 -0
- package/dist/components/Tooltip/TooltipHint.d.ts.map +1 -0
- package/dist/components/Tree/Tree.d.ts.map +1 -1
- package/dist/components/Tree/styles.css.d.ts +6 -0
- package/dist/components/Tree/styles.css.d.ts.map +1 -1
- package/dist/components/Tree/useTreeKeyboard.d.ts +19 -0
- package/dist/components/Tree/useTreeKeyboard.d.ts.map +1 -0
- package/dist/components/VirtualList/VirtualList.d.ts +33 -0
- package/dist/components/VirtualList/VirtualList.d.ts.map +1 -0
- package/dist/components/VirtualList/VirtualList.meta.d.ts +3 -0
- package/dist/components/VirtualList/VirtualList.meta.d.ts.map +1 -0
- package/dist/components/VirtualList/VirtualList.stories.d.ts +15 -0
- package/dist/components/VirtualList/VirtualList.stories.d.ts.map +1 -0
- package/dist/components/VirtualList/styles.css.d.ts +28 -0
- package/dist/components/VirtualList/styles.css.d.ts.map +1 -0
- package/dist/components/VirtualTable/styles.css.d.ts +6 -0
- package/dist/components/VirtualTable/styles.css.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6202 -4794
- package/dist/index.js.map +1 -1
- package/dist/shared/ButtonHost.d.ts +11 -0
- package/dist/shared/ButtonHost.d.ts.map +1 -0
- package/dist/shared/portal/hostRegistry.d.ts +33 -0
- package/dist/shared/portal/hostRegistry.d.ts.map +1 -0
- package/dist/shared/pressableChild.d.ts +14 -0
- package/dist/shared/pressableChild.d.ts.map +1 -0
- package/dist/shared/useOverlayOpenState.d.ts +40 -0
- package/dist/shared/useOverlayOpenState.d.ts.map +1 -0
- package/dist/table.js +141 -135
- package/dist/table.js.map +1 -1
- package/package.json +34 -4
- package/src/components/Alert/Alert.tsx +14 -2
- package/src/components/AppShell/AppShell.meta.ts +1 -1
- package/src/components/AppShell/AppShell.native.tsx +174 -0
- package/src/components/AppShell/native.css.ts +56 -0
- package/src/components/Button/Button.tsx +6 -5
- package/src/components/Button/styles.css.ts +2 -0
- package/src/components/Callout/Callout.tsx +17 -3
- package/src/components/Callout/styles.css.ts +5 -0
- package/src/components/Checkbox/Checkbox.native.tsx +67 -0
- package/src/components/Checkbox/Checkbox.tsx +1 -50
- package/src/components/ConfirmDialog/ConfirmDialog.tsx +3 -0
- package/src/components/DetailPanel/DetailPanel.tsx +9 -45
- package/src/components/Dialog/Dialog.native.tsx +296 -0
- package/src/components/Dialog/Dialog.stories.tsx +71 -0
- package/src/components/Dialog/Dialog.tsx +41 -130
- package/src/components/Dialog/native.css.ts +78 -0
- package/src/components/Dialog/parts.css.ts +101 -0
- package/src/components/Dialog/parts.tsx +61 -0
- package/src/components/Dialog/styles.css.ts +2 -89
- package/src/components/Drawer/Drawer.meta.ts +2 -1
- package/src/components/Drawer/Drawer.native.tsx +469 -0
- package/src/components/Drawer/Drawer.tsx +63 -179
- package/src/components/Drawer/DrawerScroll.stories.tsx +4 -54
- package/src/components/Drawer/DrawerSnap.stories.tsx +205 -0
- package/src/components/Drawer/native.css.ts +58 -0
- package/src/components/Drawer/parts.css.ts +125 -0
- package/src/components/Drawer/parts.tsx +110 -0
- package/src/components/Drawer/sheetPhysics.ts +103 -0
- package/src/components/Drawer/styles.css.ts +19 -74
- package/src/components/Drawer/touchInput.ts +81 -0
- package/src/components/Drawer/useDrawerRoot.ts +90 -0
- package/src/components/Drawer/useSheetHeights.ts +42 -0
- package/src/components/Drawer/useSwipeDismiss.ts +146 -23
- package/src/components/Grid/styles.css.ts +2 -0
- package/src/components/Icon/Icon.native.tsx +54 -0
- package/src/components/Icon/Icon.tsx +19 -430
- package/src/components/Icon/geometry.ts +456 -0
- package/src/components/Icon/types.ts +74 -0
- package/src/components/Input/Input.tsx +8 -0
- package/src/components/Input/styles.css.ts +2 -0
- package/src/components/LinkButton/styles.css.ts +2 -0
- package/src/components/Menu/Menu.meta.ts +1 -1
- package/src/components/Menu/Menu.native.tsx +268 -0
- package/src/components/Menu/Menu.tsx +11 -2
- package/src/components/Menu/native.css.ts +18 -0
- package/src/components/Menu/useMenuOpen.ts +33 -0
- package/src/components/Menu/useMenuRoot.ts +7 -26
- package/src/components/Meter/styles.css.ts +2 -0
- package/src/components/PageShell/styles.css.ts +4 -0
- package/src/components/Popover/Popover.meta.ts +1 -1
- package/src/components/Popover/Popover.native.tsx +205 -0
- package/src/components/Popover/native.css.ts +13 -0
- package/src/components/RadioGroup/RadioGroup.meta.ts +1 -1
- package/src/components/RadioGroup/RadioGroup.native.tsx +48 -0
- package/src/components/RadioGroup/RadioGroup.stories.tsx +64 -1
- package/src/components/RadioGroup/RadioGroup.tsx +8 -83
- package/src/components/RadioGroup/group.tsx +85 -0
- package/src/components/RadioGroup/styles.css.ts +13 -0
- package/src/components/ScrollArea/styles.css.ts +2 -0
- package/src/components/SideNav/Chevron.native.tsx +20 -0
- package/src/components/SideNav/Chevron.tsx +20 -0
- package/src/components/SideNav/SideNav.meta.ts +1 -1
- package/src/components/SideNav/SideNav.tsx +57 -41
- package/src/components/SideNav/styles.css.ts +8 -0
- package/src/components/SideNav/types.ts +6 -0
- package/src/components/Spinner/Spinner.native.tsx +37 -0
- package/src/components/Spinner/Spinner.tsx +6 -15
- package/src/components/Spinner/Spinner.types.ts +6 -0
- package/src/components/Spinner/ring.css.ts +45 -0
- package/src/components/Spinner/styles.css.ts +2 -32
- package/src/components/SplitPane/SplitPane.meta.ts +40 -0
- package/src/components/SplitPane/SplitPane.native.tsx +47 -0
- package/src/components/SplitPane/SplitPane.stories.tsx +148 -0
- package/src/components/SplitPane/SplitPane.tsx +218 -0
- package/src/components/SplitPane/styles.css.ts +81 -0
- package/src/components/StatusIcon/StatusIcon.tsx +13 -2
- package/src/components/StatusIcon/styles.css.ts +5 -0
- package/src/components/Switch/Switch.native.tsx +45 -0
- package/src/components/Switch/Switch.tsx +22 -44
- package/src/components/Switch/Switch.types.ts +18 -0
- package/src/components/TableOfContents/styles.css.ts +2 -0
- package/src/components/Tabs/TabLayout.native.tsx +9 -0
- package/src/components/Tabs/TabLayout.tsx +6 -0
- package/src/components/Tabs/Tabs.meta.ts +1 -1
- package/src/components/Tabs/Tabs.tsx +38 -136
- package/src/components/Tabs/indicator.ts +36 -0
- package/src/components/Tabs/styles.css.ts +7 -0
- package/src/components/Tabs/useTabIndicator.native.ts +35 -0
- package/src/components/Tabs/useTabIndicator.ts +49 -0
- package/src/components/Tabs/useTabKeys.native.ts +2 -0
- package/src/components/Tabs/useTabKeys.ts +99 -0
- package/src/components/Tag/RemoveGlyph.native.tsx +17 -0
- package/src/components/Tag/RemoveGlyph.tsx +10 -0
- package/src/components/Tag/Tag.meta.ts +1 -1
- package/src/components/Tag/Tag.native.tsx +70 -0
- package/src/components/Tag/Tag.tsx +9 -37
- package/src/components/Tag/styles.css.ts +9 -0
- package/src/components/Tag/types.ts +43 -0
- package/src/components/Textarea/styles.css.ts +2 -0
- package/src/components/ThemeProvider/ThemeProvider.native.tsx +70 -10
- package/src/components/Toast/Toast.meta.ts +1 -1
- package/src/components/Toast/ToastProvider.native.tsx +226 -0
- package/src/components/Toast/ToastProvider.tsx +22 -84
- package/src/components/Toast/native.css.ts +78 -0
- package/src/components/Toast/store.ts +96 -0
- package/src/components/Toggle/Toggle.tsx +5 -3
- package/src/components/Toggle/styles.css.ts +14 -2
- package/src/components/Tooltip/Tooltip.meta.ts +1 -1
- package/src/components/Tooltip/Tooltip.native.tsx +36 -0
- package/src/components/Tooltip/TooltipHint.ts +13 -0
- package/src/components/Tree/Tree.meta.ts +1 -1
- package/src/components/Tree/Tree.tsx +23 -135
- package/src/components/Tree/styles.css.ts +6 -0
- package/src/components/Tree/useTreeKeyboard.native.ts +5 -0
- package/src/components/Tree/useTreeKeyboard.ts +152 -0
- package/src/components/VirtualList/VirtualList.meta.ts +39 -0
- package/src/components/VirtualList/VirtualList.stories.tsx +95 -0
- package/src/components/VirtualList/VirtualList.tsx +103 -0
- package/src/components/VirtualList/styles.css.ts +31 -0
- package/src/components/VirtualTable/styles.css.ts +12 -0
- package/src/hooks/useContainerBelow.native.ts +30 -0
- package/src/index.native.ts +61 -1
- package/src/index.ts +8 -1
- package/src/native-guard/globals.d.ts +10 -0
- package/src/native-guard/react-dom.d.ts +3 -0
- package/src/shared/ButtonHost.native.tsx +70 -0
- package/src/shared/ButtonHost.tsx +12 -0
- package/src/shared/accessibilityFocus.native.ts +23 -0
- package/src/shared/portal/AnchoredOverlay.native.tsx +117 -0
- package/src/shared/portal/OverlayModal.native.tsx +51 -0
- package/src/shared/portal/PortalHost.native.tsx +102 -0
- package/src/shared/portal/hostRegistry.ts +76 -0
- package/src/shared/portal/themeScope.native.ts +18 -0
- package/src/shared/pressableChild.ts +33 -0
- package/src/shared/safeArea.native.ts +22 -0
- package/src/shared/useKeyboardHeight.native.ts +18 -0
- package/src/shared/useOverlayOpenState.ts +128 -0
- package/src/shared/useScreenReaderEnabled.native.ts +19 -0
- package/dist/Table-ColfpgKV.js +0 -1552
- package/dist/Table-ColfpgKV.js.map +0 -1
- package/dist/components/ThemeProvider/ThemeProvider.native.d.ts +0 -10
- package/dist/components/ThemeProvider/ThemeProvider.native.d.ts.map +0 -1
- package/dist/index.native.d.ts +0 -33
- package/dist/index.native.d.ts.map +0 -1
- package/dist/platform.native.d.ts +0 -2
- package/dist/platform.native.d.ts.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { SizeToken } from '@duro-app/tokens/keys';
|
|
3
|
+
import { Breakpoint } from '@duro-app/tokens/tokens/breakpoints.css';
|
|
4
|
+
declare const meta: Meta;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj;
|
|
7
|
+
interface SplitArgs {
|
|
8
|
+
defaultSize: SizeToken;
|
|
9
|
+
minSize: SizeToken;
|
|
10
|
+
maxSize: SizeToken;
|
|
11
|
+
collapseBelow: Breakpoint;
|
|
12
|
+
onSizeChange?: (px: number) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const Default: StoryObj<SplitArgs>;
|
|
15
|
+
export declare const KeyboardMovesTheSeparator: Story;
|
|
16
|
+
export declare const NarrowStacksInOneColumn: Story;
|
|
17
|
+
//# sourceMappingURL=SplitPane.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitPane.stories.d.ts","sourceRoot":"","sources":["../../../src/components/SplitPane/SplitPane.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAGpD,OAAO,EAAuB,KAAK,SAAS,EAAC,MAAM,uBAAuB,CAAA;AAC1E,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,yCAAyC,CAAA;AAQvE,QAAA,MAAM,IAAI,EAAE,IAGX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAOrB,UAAU,SAAS;IACjB,WAAW,EAAE,SAAS,CAAA;IACtB,OAAO,EAAE,SAAS,CAAA;IAClB,OAAO,EAAE,SAAS,CAAA;IAClB,aAAa,EAAE,UAAU,CAAA;IACzB,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CACpC;AAkDD,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,SAAS,CAkBvC,CAAA;AAID,eAAO,MAAM,yBAAyB,EAAE,KA4BvC,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,KAcrC,CAAA"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { css } from 'react-strict-dom';
|
|
2
|
+
/**
|
|
3
|
+
* SplitPane, the picked B0 direction (docs/mockups/split-pane/Hairline.dc.html):
|
|
4
|
+
* a hairline between the panes inside a wider hit area; hover, keyboard
|
|
5
|
+
* focus or a drag thicken it to the accent and show a grip.
|
|
6
|
+
*/
|
|
7
|
+
export declare const styles: Readonly<{
|
|
8
|
+
readonly root: Readonly<{
|
|
9
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
10
|
+
readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "row">;
|
|
11
|
+
readonly alignItems: css.StyleXClassNameFor<"alignItems", "stretch">;
|
|
12
|
+
readonly minWidth: css.StyleXClassNameFor<"minWidth", 0>;
|
|
13
|
+
readonly minHeight: css.StyleXClassNameFor<"minHeight", 0>;
|
|
14
|
+
readonly height: css.StyleXClassNameFor<"height", "100%">;
|
|
15
|
+
}>;
|
|
16
|
+
readonly rootStacked: Readonly<{
|
|
17
|
+
readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "column">;
|
|
18
|
+
readonly height: css.StyleXClassNameFor<"height", "auto">;
|
|
19
|
+
}>;
|
|
20
|
+
readonly primary: Readonly<{
|
|
21
|
+
readonly flexShrink: css.StyleXClassNameFor<"flexShrink", 0>;
|
|
22
|
+
readonly minWidth: css.StyleXClassNameFor<"minWidth", 0>;
|
|
23
|
+
readonly overflow: css.StyleXClassNameFor<"overflow", "auto">;
|
|
24
|
+
}>;
|
|
25
|
+
readonly primarySize: (px: number) => readonly [Readonly<{
|
|
26
|
+
width: css.StyleXClassNameFor<"width", number>;
|
|
27
|
+
}>, css.InlineStyles];
|
|
28
|
+
readonly secondary: Readonly<{
|
|
29
|
+
readonly flexGrow: css.StyleXClassNameFor<"flexGrow", 1>;
|
|
30
|
+
readonly flexBasis: css.StyleXClassNameFor<"flexBasis", 0>;
|
|
31
|
+
readonly minWidth: css.StyleXClassNameFor<"minWidth", 0>;
|
|
32
|
+
readonly overflow: css.StyleXClassNameFor<"overflow", "auto">;
|
|
33
|
+
}>;
|
|
34
|
+
readonly stackedPane: Readonly<{
|
|
35
|
+
readonly width: css.StyleXClassNameFor<"width", "100%">;
|
|
36
|
+
readonly overflow: css.StyleXClassNameFor<"overflow", "visible">;
|
|
37
|
+
}>;
|
|
38
|
+
readonly handle: Readonly<{
|
|
39
|
+
readonly position: css.StyleXClassNameFor<"position", "relative">;
|
|
40
|
+
readonly flexShrink: css.StyleXClassNameFor<"flexShrink", 0>;
|
|
41
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
42
|
+
readonly justifyContent: css.StyleXClassNameFor<"justifyContent", "center">;
|
|
43
|
+
readonly width: css.StyleXClassNameFor<"width", string>;
|
|
44
|
+
readonly cursor: css.StyleXClassNameFor<"cursor", "col-resize">;
|
|
45
|
+
readonly touchAction: css.StyleXClassNameFor<"touchAction", "none">;
|
|
46
|
+
readonly userSelect: css.StyleXClassNameFor<"userSelect", "none">;
|
|
47
|
+
readonly outlineStyle: css.StyleXClassNameFor<"outlineStyle", "none">;
|
|
48
|
+
}>;
|
|
49
|
+
readonly line: Readonly<{
|
|
50
|
+
readonly width: css.StyleXClassNameFor<"width", string>;
|
|
51
|
+
readonly height: css.StyleXClassNameFor<"height", "100%">;
|
|
52
|
+
readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
|
|
53
|
+
readonly transitionProperty: css.StyleXClassNameFor<"transitionProperty", "background-color, width">;
|
|
54
|
+
readonly transitionDuration: css.StyleXClassNameFor<"transitionDuration", string>;
|
|
55
|
+
readonly transitionTimingFunction: css.StyleXClassNameFor<"transitionTimingFunction", string>;
|
|
56
|
+
}>;
|
|
57
|
+
readonly lineActive: Readonly<{
|
|
58
|
+
readonly width: css.StyleXClassNameFor<"width", string>;
|
|
59
|
+
readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
|
|
60
|
+
}>;
|
|
61
|
+
readonly grip: Readonly<{
|
|
62
|
+
readonly position: css.StyleXClassNameFor<"position", "absolute">;
|
|
63
|
+
readonly top: css.StyleXClassNameFor<"top", "50%">;
|
|
64
|
+
readonly left: css.StyleXClassNameFor<"left", "50%">;
|
|
65
|
+
readonly transform: css.StyleXClassNameFor<"transform", "translate(-50%, -50%)">;
|
|
66
|
+
readonly width: css.StyleXClassNameFor<"width", string>;
|
|
67
|
+
readonly height: css.StyleXClassNameFor<"height", string>;
|
|
68
|
+
readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
|
|
69
|
+
readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
|
|
70
|
+
readonly opacity: css.StyleXClassNameFor<"opacity", 0>;
|
|
71
|
+
readonly transitionProperty: css.StyleXClassNameFor<"transitionProperty", "opacity">;
|
|
72
|
+
readonly transitionDuration: css.StyleXClassNameFor<"transitionDuration", string>;
|
|
73
|
+
}>;
|
|
74
|
+
readonly gripShown: Readonly<{
|
|
75
|
+
readonly opacity: css.StyleXClassNameFor<"opacity", 1>;
|
|
76
|
+
}>;
|
|
77
|
+
}>;
|
|
78
|
+
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/SplitPane/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAMpC;;;;GAIG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqEjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIcon/StatusIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIcon/StatusIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,SAAS,CAAA;AAK/C,MAAM,MAAM,cAAc,GAAG,OAAO,CAClC,QAAQ,EACR,UAAU,GAAG,cAAc,GAAG,YAAY,GAAG,OAAO,GAAG,WAAW,CACnE,CAAA;AACD,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAA;AAWlF,UAAU,eAAe;IACvB,IAAI,EAAE,cAAc,CAAA;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,OAAO,CAAC,EAAE,iBAAiB,CAAA;CAC5B;AAED,wBAAgB,UAAU,CAAC,EAAC,IAAI,EAAE,IAAY,EAAE,OAAiB,EAAC,EAAE,eAAe,2CAMlF"}
|
|
@@ -21,5 +21,8 @@ export declare const styles: Readonly<{
|
|
|
21
21
|
readonly muted: Readonly<{
|
|
22
22
|
readonly color: css.StyleXClassNameFor<"color", string>;
|
|
23
23
|
}>;
|
|
24
|
+
readonly nativeFlex: Readonly<{
|
|
25
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
26
|
+
}>;
|
|
24
27
|
}>;
|
|
25
28
|
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIcon/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAIpC,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/StatusIcon/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAIpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;EA2BjB,CAAA"}
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/** Controlled checked state. */
|
|
4
|
-
checked?: boolean;
|
|
5
|
-
/** Initial checked state (uncontrolled). */
|
|
6
|
-
defaultChecked?: boolean;
|
|
7
|
-
/** Callback fired when the checked state changes. */
|
|
8
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
9
|
-
/** Prevents user interaction. */
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
/** Form field name for the hidden input. */
|
|
12
|
-
name?: string;
|
|
13
|
-
/** Value submitted when checked. */
|
|
14
|
-
value?: string;
|
|
15
|
-
/** Label content rendered beside the switch. */
|
|
16
|
-
children?: ReactNode;
|
|
17
|
-
}
|
|
1
|
+
import { SwitchProps } from './Switch.types';
|
|
2
|
+
export type { SwitchProps } from './Switch.types';
|
|
18
3
|
export declare function Switch({ checked: controlledChecked, defaultChecked, onCheckedChange, disabled, name, value, children, }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export {};
|
|
20
4
|
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAA;AAE/C,YAAY,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAA;AAE/C,wBAAgB,MAAM,CAAC,EACrB,OAAO,EAAE,iBAAiB,EAC1B,cAAsB,EACtB,eAAe,EACf,QAAgB,EAChB,IAAI,EACJ,KAAK,EACL,QAAQ,GACT,EAAE,WAAW,2CAiDb"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface SwitchProps {
|
|
3
|
+
/** Controlled checked state. */
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
/** Initial checked state (uncontrolled). */
|
|
6
|
+
defaultChecked?: boolean;
|
|
7
|
+
/** Callback fired when the checked state changes. */
|
|
8
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
9
|
+
/** Prevents user interaction. */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Form field name for the hidden input. */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** Value submitted when checked. */
|
|
14
|
+
value?: string;
|
|
15
|
+
/** Label content rendered beside the switch. */
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=Switch.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.types.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAA;AAEpC,MAAM,WAAW,WAAW;IAC1B,gCAAgC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,4CAA4C;IAC5C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,qDAAqD;IACrD,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IAC5C,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gDAAgD;IAChD,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB"}
|
|
@@ -76,6 +76,7 @@ export declare const styles: Readonly<{
|
|
|
76
76
|
readonly justifyContent: css.StyleXClassNameFor<"justifyContent", "space-between">;
|
|
77
77
|
readonly gap: css.StyleXClassNameFor<"gap", string>;
|
|
78
78
|
readonly width: css.StyleXClassNameFor<"width", "100%">;
|
|
79
|
+
readonly boxSizing: css.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
79
80
|
readonly minHeight: css.StyleXClassNameFor<"minHeight", string>;
|
|
80
81
|
readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
|
|
81
82
|
readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/TableOfContents/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAWpC,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/TableOfContents/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAWpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyIjB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** Web: the tab itself; the List measures it in the DOM (TabLayout.native.tsx reports it). */
|
|
3
|
+
export declare function TabLayout({ children }: {
|
|
4
|
+
value: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}): ReactNode;
|
|
7
|
+
//# sourceMappingURL=TabLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabLayout.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAA;AAEpC,8FAA8F;AAC9F,wBAAgB,SAAS,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAC,aAEzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAA2B,MAAM,OAAO,CAAA;AAa9D,UAAU,SAAS;IACjB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;CACxC;AAED,iBAAS,IAAI,CAAC,EACZ,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,aAAa,EACb,WAA0B,GAC3B,EAAE,SAAS,2CAUX;AAID,UAAU,SAAS;IACjB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,QAAQ,EAAC,EAAE,SAAS,2CAkClC;AAID,UAAU,QAAQ;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,GAAG,CAAC,EAAC,KAAK,EAAE,QAAgB,EAAE,QAAQ,EAAC,EAAE,QAAQ,2CA0CzD;AAID,UAAU,UAAU;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,KAAK,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAC,EAAE,UAAU,kDAa3C;AAED,eAAO,MAAM,IAAI;;;;;CAKhB,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Orientation } from '../../shared/types';
|
|
2
|
+
/** Where the sliding indicator sits along the list, in px. */
|
|
3
|
+
export interface IndicatorBox {
|
|
4
|
+
offset: number;
|
|
5
|
+
size: number;
|
|
6
|
+
}
|
|
7
|
+
/** A tab's box inside its list, as native `onLayout` reports it. */
|
|
8
|
+
export interface TabBox {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
}
|
|
14
|
+
/** Native: each Tab reports its box here, so the List places the indicator. */
|
|
15
|
+
export declare const TabLayoutContext: import('react').Context<((value: string, box: TabBox) => void) | null>;
|
|
16
|
+
export declare function useReportTabLayout(): ((value: string, box: TabBox) => void) | null;
|
|
17
|
+
export interface TabIndicatorInput {
|
|
18
|
+
listRef: React.RefObject<HTMLDivElement | null>;
|
|
19
|
+
activeValue: string | null;
|
|
20
|
+
orientation: Orientation;
|
|
21
|
+
setIndicatorActive: (active: boolean) => void;
|
|
22
|
+
}
|
|
23
|
+
export interface TabIndicator {
|
|
24
|
+
indicator: IndicatorBox | null;
|
|
25
|
+
/** Native only: what the Tabs report their layout to. */
|
|
26
|
+
reportTabLayout: ((value: string, box: TabBox) => void) | null;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=indicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indicator.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/indicator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAA;AAEnD,8DAA8D;AAC9D,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb;AAED,oEAAoE;AACpE,MAAM,WAAW,MAAM;IACrB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf;AAED,+EAA+E;AAC/E,eAAO,MAAM,gBAAgB,mCAA0B,MAAM,OAAO,MAAM,KAAK,IAAI,SAAe,CAAA;AAElG,wBAAgB,kBAAkB,aAFqB,MAAM,OAAO,MAAM,KAAK,IAAI,SAIlF;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IAC/C,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,kBAAkB,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;CAC9C;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,YAAY,GAAG,IAAI,CAAA;IAC9B,yDAAyD;IACzD,eAAe,EAAE,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,IAAI,CAAA;CAC/D"}
|
|
@@ -24,6 +24,10 @@ export declare const styles: Readonly<{
|
|
|
24
24
|
readonly borderRightColor: css.StyleXClassNameFor<"borderRightColor", string>;
|
|
25
25
|
readonly gap: css.StyleXClassNameFor<"gap", 0>;
|
|
26
26
|
}>;
|
|
27
|
+
readonly nativeFlex: Readonly<{
|
|
28
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
29
|
+
readonly transitionProperty: css.StyleXClassNameFor<"transitionProperty", "opacity">;
|
|
30
|
+
}>;
|
|
27
31
|
readonly tab: Readonly<{
|
|
28
32
|
readonly display: css.StyleXClassNameFor<"display", "inline-flex">;
|
|
29
33
|
readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAQpC,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAQpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyIjB,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TabIndicator, TabIndicatorInput } from './indicator';
|
|
2
|
+
/** Web: the active tab measured in the DOM, kept current by a ResizeObserver. */
|
|
3
|
+
export declare function useTabIndicator({ listRef, activeValue, orientation, setIndicatorActive, }: TabIndicatorInput): TabIndicator;
|
|
4
|
+
//# sourceMappingURL=useTabIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTabIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/useTabIndicator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAe,YAAY,EAAE,iBAAiB,EAAC,MAAM,aAAa,CAAA;AAE9E,iFAAiF;AACjF,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,WAAW,EACX,WAAW,EACX,kBAAkB,GACnB,EAAE,iBAAiB,GAAG,YAAY,CAuClC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Orientation } from '../../shared/types';
|
|
2
|
+
interface TabKeysInput {
|
|
3
|
+
listRef: React.RefObject<HTMLDivElement | null>;
|
|
4
|
+
orientation: Orientation;
|
|
5
|
+
activeValue: string | null;
|
|
6
|
+
onSelect: (value: string) => void;
|
|
7
|
+
tabsRef: React.RefObject<Map<string, boolean>>;
|
|
8
|
+
orderRef: React.RefObject<string[]>;
|
|
9
|
+
}
|
|
10
|
+
/** Web: arrow keys, Home and End move the selection and focus along the list. */
|
|
11
|
+
export declare function useTabKeys({ listRef, orientation, activeValue, onSelect, tabsRef, orderRef, }: TabKeysInput): void;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=useTabKeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTabKeys.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/useTabKeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAA;AAEnD,UAAU,YAAY;IACpB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IAC/C,WAAW,EAAE,WAAW,CAAA;IACxB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IAC9C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAA;CACpC;AAED,iFAAiF;AACjF,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,WAAW,EACX,WAAW,EACX,QAAQ,EACR,OAAO,EACP,QAAQ,GACT,EAAE,YAAY,QA8Ed"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RemoveGlyphProps } from './types';
|
|
2
|
+
/** The tag's remove cross: 1.5 strokes on a 12 box, drawn in the tag's text colour. */
|
|
3
|
+
export declare function RemoveGlyph({ size }: RemoveGlyphProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=RemoveGlyph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveGlyph.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/RemoveGlyph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAA;AAE7C,uFAAuF;AACvF,wBAAgB,WAAW,CAAC,EAAC,IAAI,EAAC,EAAE,gBAAgB,2CAMnD"}
|
|
@@ -1,26 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
3
|
-
export type TagSize = 'sm' | 'md';
|
|
4
|
-
interface TagProps {
|
|
5
|
-
/** Value identifier — required when used inside TagGroup */
|
|
6
|
-
value?: string;
|
|
7
|
-
variant?: TagVariant;
|
|
8
|
-
size?: TagSize;
|
|
9
|
-
/** Show remove button. Auto-derived from TagGroup context when inside one. */
|
|
10
|
-
removable?: boolean;
|
|
11
|
-
/** Called when remove button is clicked. Auto-wired to TagGroup when inside one. */
|
|
12
|
-
onRemove?: () => void;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Allow the label to wrap / break instead of staying on one line. Tags are
|
|
16
|
-
* `white-space: nowrap` by default (they read as pills); set this for long
|
|
17
|
-
* identifier-style values (e.g. `lldap.group.member.remove`) sitting in a
|
|
18
|
-
* constrained column, so they break within their cell instead of leaking
|
|
19
|
-
* into the next one.
|
|
20
|
-
*/
|
|
21
|
-
wrap?: boolean;
|
|
22
|
-
children: ReactNode;
|
|
23
|
-
}
|
|
1
|
+
import { TagProps } from './types';
|
|
2
|
+
export type { TagProps, TagSize, TagVariant } from './types';
|
|
24
3
|
export declare function Tag({ value, variant, size, removable: removableProp, onRemove: onRemoveProp, disabled: disabledProp, wrap, children, }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export {};
|
|
26
4
|
//# sourceMappingURL=Tag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAc,KAAK,QAAQ,EAAC,MAAM,SAAS,CAAA;AAElD,YAAY,EAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAC,MAAM,SAAS,CAAA;AAY1D,wBAAgB,GAAG,CAAC,EAClB,KAAK,EACL,OAAmB,EACnB,IAAW,EACX,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,YAAoB,EAC9B,IAAY,EACZ,QAAQ,GACT,EAAE,QAAQ,2CA6FV"}
|
|
@@ -81,6 +81,14 @@ export declare const styles: Readonly<{
|
|
|
81
81
|
readonly opacity: css.StyleXClassNameFor<"opacity", 1 | 0.6>;
|
|
82
82
|
readonly outlineWidth: css.StyleXClassNameFor<"outlineWidth", 0>;
|
|
83
83
|
}>;
|
|
84
|
+
readonly nativeFlex: Readonly<{
|
|
85
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
86
|
+
readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "row">;
|
|
87
|
+
readonly alignSelf: css.StyleXClassNameFor<"alignSelf", "flex-start">;
|
|
88
|
+
}>;
|
|
89
|
+
readonly nativeButtonFlex: Readonly<{
|
|
90
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
91
|
+
}>;
|
|
84
92
|
readonly removeButtonDisabled: Readonly<{
|
|
85
93
|
readonly cursor: css.StyleXClassNameFor<"cursor", "not-allowed">;
|
|
86
94
|
readonly opacity: css.StyleXClassNameFor<"opacity", 0.4>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAMpC,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAMpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuHjB,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ColorToken } from '@duro-app/tokens/keys';
|
|
3
|
+
export type TagVariant = 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
4
|
+
/** Each variant's text colour, which the remove cross draws in. */
|
|
5
|
+
export declare const variantText: {
|
|
6
|
+
readonly default: "text";
|
|
7
|
+
readonly success: "successText";
|
|
8
|
+
readonly warning: "warningText";
|
|
9
|
+
readonly error: "errorText";
|
|
10
|
+
readonly info: "infoText";
|
|
11
|
+
};
|
|
12
|
+
export type TagSize = 'sm' | 'md';
|
|
13
|
+
export interface TagProps {
|
|
14
|
+
/** Value identifier — required when used inside TagGroup */
|
|
15
|
+
value?: string;
|
|
16
|
+
variant?: TagVariant;
|
|
17
|
+
size?: TagSize;
|
|
18
|
+
/** Show remove button. Auto-derived from TagGroup context when inside one. */
|
|
19
|
+
removable?: boolean;
|
|
20
|
+
/** Called when remove button is clicked. Auto-wired to TagGroup when inside one. */
|
|
21
|
+
onRemove?: () => void;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Allow the label to wrap / break instead of staying on one line. Tags are
|
|
25
|
+
* `white-space: nowrap` by default (they read as pills); set this for long
|
|
26
|
+
* identifier-style values (e.g. `lldap.group.member.remove`) sitting in a
|
|
27
|
+
* constrained column, so they break within their cell instead of leaking
|
|
28
|
+
* into the next one.
|
|
29
|
+
*/
|
|
30
|
+
wrap?: boolean;
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
}
|
|
33
|
+
export interface RemoveGlyphProps {
|
|
34
|
+
/** px, from the glyph size tokens */
|
|
35
|
+
size: number;
|
|
36
|
+
/** Native only: the web inherits the tag's text colour. */
|
|
37
|
+
color: ColorToken;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAA;AACpC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAA;AAErD,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAE7E,mEAAmE;AACnE,eAAO,MAAM,WAAW;;;;;;CAM2B,CAAA;AAEnD,MAAM,MAAM,OAAO,GAAG,IAAI,GAAG,IAAI,CAAA;AAEjC,MAAM,WAAW,QAAQ;IACvB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,2DAA2D;IAC3D,KAAK,EAAE,UAAU,CAAA;CAClB"}
|
|
@@ -2,6 +2,7 @@ import { css } from 'react-strict-dom';
|
|
|
2
2
|
export declare const styles: Readonly<{
|
|
3
3
|
readonly base: Readonly<{
|
|
4
4
|
readonly width: css.StyleXClassNameFor<"width", "100%">;
|
|
5
|
+
readonly boxSizing: css.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
5
6
|
readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
|
|
6
7
|
readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
|
|
7
8
|
readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAOpC,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAOpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDjB,CAAA"}
|
|
@@ -1,25 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
label: string;
|
|
5
|
-
onClick: () => void;
|
|
6
|
-
}
|
|
7
|
-
export interface ToastOptions {
|
|
8
|
-
/** Visual + semantic tone. Errors announce assertively; errors and
|
|
9
|
-
* warnings linger longer. */
|
|
10
|
-
variant?: ToastVariant;
|
|
11
|
-
message: ReactNode;
|
|
12
|
-
/** Optional single action, e.g. Undo. Runs, then dismisses the toast. */
|
|
13
|
-
action?: ToastAction;
|
|
14
|
-
/** Auto-dismiss delay in ms. `0` (or negative) keeps it until dismissed.
|
|
15
|
-
* The countdown pauses while the toast is hovered or holds focus. */
|
|
16
|
-
duration?: number;
|
|
17
|
-
}
|
|
18
|
-
export interface ToastContextValue {
|
|
19
|
-
/** Show a toast; returns its id so it can be dismissed programmatically. */
|
|
20
|
-
toast: (opts: ToastOptions) => string;
|
|
21
|
-
dismiss: (id: string) => void;
|
|
22
|
-
}
|
|
2
|
+
import { ToastContextValue } from './store';
|
|
3
|
+
export type { ToastAction, ToastContextValue, ToastOptions, ToastVariant } from './store';
|
|
23
4
|
export declare function useToast(): ToastContextValue;
|
|
24
5
|
export interface ToastProviderProps {
|
|
25
6
|
/** Accessible name of each toast's close button, e.g. from the app's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/ToastProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/ToastProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAMd,OAAO,EAEL,KAAK,iBAAiB,EAIvB,MAAM,SAAS,CAAA;AAEhB,YAAY,EAAC,WAAW,EAAE,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAC,MAAM,SAAS,CAAA;AAiBvF,wBAAgB,QAAQ,IAAI,iBAAiB,CAI5C;AAwED,MAAM,WAAW,kBAAkB;IACjC;2BACuB;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,aAAa,CAAC,EAAC,YAAwB,EAAE,QAAQ,EAAC,EAAE,kBAAkB,2CAwCrF"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { css } from 'react-strict-dom';
|
|
2
|
+
/**
|
|
3
|
+
* The native toast, the picked B0 direction (docs/mockups/native-toast/
|
|
4
|
+
* Tinted.dc.html): a card with a status-coloured edge, one row of message,
|
|
5
|
+
* action and close. Motion is Reanimated's.
|
|
6
|
+
*/
|
|
7
|
+
export declare const nativeStyles: Readonly<{
|
|
8
|
+
readonly region: Readonly<{
|
|
9
|
+
readonly position: css.StyleXClassNameFor<"position", "absolute">;
|
|
10
|
+
readonly left: css.StyleXClassNameFor<"left", 0>;
|
|
11
|
+
readonly right: css.StyleXClassNameFor<"right", 0>;
|
|
12
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
13
|
+
readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "column">;
|
|
14
|
+
readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
|
|
15
|
+
readonly gap: css.StyleXClassNameFor<"gap", string>;
|
|
16
|
+
readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
|
|
17
|
+
readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
|
|
18
|
+
}>;
|
|
19
|
+
readonly regionBottom: (bottom: number) => readonly [Readonly<{
|
|
20
|
+
bottom: css.StyleXClassNameFor<"bottom", number>;
|
|
21
|
+
}>, css.InlineStyles];
|
|
22
|
+
readonly toast: Readonly<{
|
|
23
|
+
readonly boxSizing: css.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
24
|
+
readonly width: css.StyleXClassNameFor<"width", "100%">;
|
|
25
|
+
readonly maxWidth: css.StyleXClassNameFor<"maxWidth", string>;
|
|
26
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
27
|
+
readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "row">;
|
|
28
|
+
readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
|
|
29
|
+
readonly gap: css.StyleXClassNameFor<"gap", string>;
|
|
30
|
+
readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
|
|
31
|
+
readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
|
|
32
|
+
readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
|
|
33
|
+
readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
|
|
34
|
+
readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
|
|
35
|
+
readonly borderWidth: css.StyleXClassNameFor<"borderWidth", string>;
|
|
36
|
+
readonly borderStyle: css.StyleXClassNameFor<"borderStyle", "solid">;
|
|
37
|
+
readonly borderColor: css.StyleXClassNameFor<"borderColor", string>;
|
|
38
|
+
readonly borderLeftWidth: css.StyleXClassNameFor<"borderLeftWidth", string>;
|
|
39
|
+
readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
|
|
40
|
+
readonly boxShadow: css.StyleXClassNameFor<"boxShadow", string>;
|
|
41
|
+
}>;
|
|
42
|
+
readonly success: Readonly<{
|
|
43
|
+
readonly borderLeftColor: css.StyleXClassNameFor<"borderLeftColor", string>;
|
|
44
|
+
}>;
|
|
45
|
+
readonly error: Readonly<{
|
|
46
|
+
readonly borderLeftColor: css.StyleXClassNameFor<"borderLeftColor", string>;
|
|
47
|
+
}>;
|
|
48
|
+
readonly info: Readonly<{
|
|
49
|
+
readonly borderLeftColor: css.StyleXClassNameFor<"borderLeftColor", string>;
|
|
50
|
+
}>;
|
|
51
|
+
readonly warning: Readonly<{
|
|
52
|
+
readonly borderLeftColor: css.StyleXClassNameFor<"borderLeftColor", string>;
|
|
53
|
+
}>;
|
|
54
|
+
readonly message: Readonly<{
|
|
55
|
+
readonly flexGrow: css.StyleXClassNameFor<"flexGrow", 1>;
|
|
56
|
+
readonly flexShrink: css.StyleXClassNameFor<"flexShrink", 1>;
|
|
57
|
+
readonly color: css.StyleXClassNameFor<"color", string>;
|
|
58
|
+
readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
|
|
59
|
+
readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
|
|
60
|
+
}>;
|
|
61
|
+
readonly action: Readonly<{
|
|
62
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
63
|
+
readonly padding: css.StyleXClassNameFor<"padding", string>;
|
|
64
|
+
readonly borderWidth: css.StyleXClassNameFor<"borderWidth", 0>;
|
|
65
|
+
readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
66
|
+
readonly color: css.StyleXClassNameFor<"color", string>;
|
|
67
|
+
readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
|
|
68
|
+
readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
|
|
69
|
+
}>;
|
|
70
|
+
readonly close: Readonly<{
|
|
71
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
72
|
+
readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
|
|
73
|
+
readonly justifyContent: css.StyleXClassNameFor<"justifyContent", "center">;
|
|
74
|
+
readonly width: css.StyleXClassNameFor<"width", string>;
|
|
75
|
+
readonly height: css.StyleXClassNameFor<"height", string>;
|
|
76
|
+
readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
|
|
77
|
+
readonly borderWidth: css.StyleXClassNameFor<"borderWidth", 0>;
|
|
78
|
+
readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
79
|
+
}>;
|
|
80
|
+
}>;
|
|
81
|
+
//# sourceMappingURL=native.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.css.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/native.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAQpC;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgEvB,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** The toast queue both platforms' ToastProvider render (plan N0, Slice B). */
|
|
3
|
+
export type ToastVariant = 'success' | 'error' | 'info' | 'warning';
|
|
4
|
+
export interface ToastAction {
|
|
5
|
+
label: string;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
}
|
|
8
|
+
export interface ToastOptions {
|
|
9
|
+
/** Visual + semantic tone. Errors announce assertively; errors and
|
|
10
|
+
* warnings linger longer. */
|
|
11
|
+
variant?: ToastVariant;
|
|
12
|
+
message: ReactNode;
|
|
13
|
+
/** Optional single action, e.g. Undo. Runs, then dismisses the toast. */
|
|
14
|
+
action?: ToastAction;
|
|
15
|
+
/** Auto-dismiss delay in ms. `0` (or negative) keeps it until dismissed.
|
|
16
|
+
* The countdown pauses while the toast is hovered or holds focus. */
|
|
17
|
+
duration?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface ToastContextValue {
|
|
20
|
+
/** Show a toast; returns its id so it can be dismissed programmatically. */
|
|
21
|
+
toast: (opts: ToastOptions) => string;
|
|
22
|
+
dismiss: (id: string) => void;
|
|
23
|
+
}
|
|
24
|
+
export interface ToastEntry {
|
|
25
|
+
id: string;
|
|
26
|
+
variant: ToastVariant;
|
|
27
|
+
message: ReactNode;
|
|
28
|
+
action?: ToastAction;
|
|
29
|
+
duration: number;
|
|
30
|
+
}
|
|
31
|
+
export interface ToastStore {
|
|
32
|
+
subscribe: (cb: () => void) => () => void;
|
|
33
|
+
getSnapshot: () => readonly ToastEntry[];
|
|
34
|
+
add: (opts: ToastOptions) => string;
|
|
35
|
+
remove: (id: string) => void;
|
|
36
|
+
/**
|
|
37
|
+
* What is left of a toast's countdown, in ms. Kept here, not in the toast's
|
|
38
|
+
* component: on native a toast re-renders into another host when a Dialog
|
|
39
|
+
* above it closes, and its countdown carries on.
|
|
40
|
+
*/
|
|
41
|
+
remaining: (id: string) => number;
|
|
42
|
+
/** Count `ms` of shown time against a toast's countdown. */
|
|
43
|
+
spend: (id: string, ms: number) => void;
|
|
44
|
+
}
|
|
45
|
+
export declare const DEFAULT_DURATION: Record<ToastVariant, number>;
|
|
46
|
+
export declare function createToastStore(): ToastStore;
|
|
47
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAA;AAEpC,+EAA+E;AAE/E,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;AAEnE,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B;kCAC8B;IAC9B,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,OAAO,EAAE,SAAS,CAAA;IAClB,yEAAyE;IACzE,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB;0EACsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,4EAA4E;IAC5E,KAAK,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,MAAM,CAAA;IACrC,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9B;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,YAAY,CAAA;IACrB,OAAO,EAAE,SAAS,CAAA;IAClB,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAA;IACzC,WAAW,EAAE,MAAM,SAAS,UAAU,EAAE,CAAA;IACxC,GAAG,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,MAAM,CAAA;IACnC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5B;;;;OAIG;IACH,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAA;IACjC,4DAA4D;IAC5D,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CACxC;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAKzD,CAAA;AAED,wBAAgB,gBAAgB,IAAI,UAAU,CAoC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAAuC,MAAM,OAAO,CAAA;AAM1E,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAAuC,MAAM,OAAO,CAAA;AAM1E,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAA;AAInD,MAAM,MAAM,UAAU,GAAG,WAAW,CAAA;AAEpC,UAAU,WAAW;IACnB,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,8DAA8D;IAC9D,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,wEAAwE;IACxE,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IAC5C,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6DAA6D;IAC7D,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAYD,wBAAgB,MAAM,CAAC,EACrB,OAAO,EAAE,iBAAiB,EAC1B,cAAsB,EACtB,eAAe,EACf,KAAK,EACL,QAAQ,EAAE,YAAoB,EAC9B,IAAI,EAAE,QAAoB,EAC1B,YAAY,EAAE,SAAS,EACvB,QAAQ,GACT,EAAE,WAAW,2CAwEb"}
|