@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,15 @@
|
|
|
1
|
+
import { ColorToken, IconSize } from '@duro-app/tokens/keys';
|
|
2
|
+
export type { IconSize };
|
|
3
|
+
export type IconName = 'x-circle' | 'check-circle' | 'check-done' | 'clock' | 'forbidden' | 'info-circle' | 'alert-triangle' | 'shield' | 'lock' | 'key' | 'map' | 'layers' | 'repeat' | 'database' | 'shield-check' | 'route' | 'git-branch' | 'menu' | 'pin' | 'server' | 'hard-drive' | 'box' | 'image' | 'tag' | 'pie-chart' | 'users' | 'user-plus' | 'mail' | 'file-text' | 'plug' | 'search' | 'mic' | 'x' | 'sun' | 'moon' | 'monitor' | 'contrast' | 'signal' | 'battery' | 'video' | 'music' | 'play' | 'pause' | 'info-circle-filled' | 'alert-triangle-filled' | 'check-circle-filled' | 'x-circle-filled' | 'shield-filled' | 'lock-filled';
|
|
4
|
+
export interface IconProps {
|
|
5
|
+
name: IconName;
|
|
6
|
+
/** Token from the icon size scale: sm 16, md 18, lg 24, xl 36, xxl 48. */
|
|
7
|
+
size?: IconSize;
|
|
8
|
+
/**
|
|
9
|
+
* Colour token. Default: the surrounding text colour on the web
|
|
10
|
+
* (`currentColor`), the `text` token on native, where an icon cannot
|
|
11
|
+
* inherit a colour.
|
|
12
|
+
*/
|
|
13
|
+
color?: ColorToken;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,QAAQ,EAAC,MAAM,uBAAuB,CAAA;AAE/D,YAAY,EAAC,QAAQ,EAAC,CAAA;AAEtB,MAAM,MAAM,QAAQ,GAChB,UAAU,GACV,cAAc,GACd,YAAY,GACZ,OAAO,GACP,WAAW,GACX,aAAa,GACb,gBAAgB,GAChB,QAAQ,GACR,MAAM,GACN,KAAK,GAEL,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,cAAc,GACd,OAAO,GACP,YAAY,GACZ,MAAM,GACN,KAAK,GAEL,QAAQ,GACR,YAAY,GACZ,KAAK,GACL,OAAO,GACP,KAAK,GACL,WAAW,GAEX,OAAO,GACP,WAAW,GACX,MAAM,GACN,WAAW,GACX,MAAM,GAEN,QAAQ,GACR,KAAK,GACL,GAAG,GAEH,KAAK,GACL,MAAM,GACN,SAAS,GACT,UAAU,GAEV,QAAQ,GACR,SAAS,GAET,OAAO,GACP,OAAO,GACP,MAAM,GACN,OAAO,GAEP,oBAAoB,GACpB,uBAAuB,GACvB,qBAAqB,GACrB,iBAAiB,GACjB,eAAe,GACf,aAAa,CAAA;AAEjB,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,CAAA;IACd,0EAA0E;IAC1E,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf;;;;OAIG;IACH,KAAK,CAAC,EAAE,UAAU,CAAA;CACnB"}
|
|
@@ -31,6 +31,10 @@ interface InputProps {
|
|
|
31
31
|
list?: string;
|
|
32
32
|
pattern?: string;
|
|
33
33
|
autoComplete?: 'on' | 'off' | 'email' | 'username' | 'current-password' | 'new-password' | 'name' | 'tel' | 'url';
|
|
34
|
+
/** Phone keyboards: how the typed text is capitalised. */
|
|
35
|
+
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
36
|
+
/** Whether the platform checks (and on phones, autocorrects) the spelling. */
|
|
37
|
+
spellCheck?: boolean;
|
|
34
38
|
value?: string;
|
|
35
39
|
defaultValue?: string;
|
|
36
40
|
disabled?: boolean;
|
|
@@ -48,6 +52,6 @@ interface InputProps {
|
|
|
48
52
|
onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
49
53
|
ref?: React.Ref<HTMLInputElement>;
|
|
50
54
|
}
|
|
51
|
-
export declare function Input({ variant, font, type, id, name, placeholder, required, readOnly, minLength, maxLength, min, max, step, inputMode, list, pattern, autoComplete, value, defaultValue, disabled, autoFocus, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedby, onChange, onBlur, onFocus, onKeyDown, onKeyUp, ref, }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
export declare function Input({ variant, font, type, id, name, placeholder, required, readOnly, minLength, maxLength, min, max, step, inputMode, list, pattern, autoComplete, autoCapitalize, spellCheck, value, defaultValue, disabled, autoFocus, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedby, onChange, onBlur, onFocus, onKeyDown, onKeyUp, ref, }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
52
56
|
export {};
|
|
53
57
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAA;AAKrC,KAAK,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAA;AAC/D,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAA;AAE7D,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAA;AAExD,UAAU,UAAU;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB;yDACqD;IACrD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;sEACkE;IAClE,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,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AI,CAAA;IACzD;qDACiD;IACjD,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC9D,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC5D,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;CAClC;AAED,wBAAgB,KAAK,CAAC,EACpB,OAAmB,EACnB,IAAI,EACJ,IAAa,EACb,EAAE,EACF,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,cAAc,EACd,UAAU,EACV,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,kBAAkB,EAAE,eAAe,EACnC,QAAQ,EACR,MAAM,EACN,OAAO,EACP,SAAS,EACT,OAAO,EACP,GAAG,GACJ,EAAE,UAAU,2CAmEZ"}
|
|
@@ -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/Input/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/Input/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAOpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyFjB,CAAA"}
|
|
@@ -45,6 +45,7 @@ export declare const styles: Readonly<{
|
|
|
45
45
|
}>;
|
|
46
46
|
readonly fullWidth: Readonly<{
|
|
47
47
|
readonly width: css.StyleXClassNameFor<"width", "100%">;
|
|
48
|
+
readonly boxSizing: css.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
48
49
|
}>;
|
|
49
50
|
}>;
|
|
50
51
|
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/LinkButton/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/LinkButton/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAQpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2DjB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode, Ref } from 'react';
|
|
2
|
+
import { OnNavigate } from '../../shared/navigate';
|
|
2
3
|
import { ControlSize } from '../../shared/types';
|
|
3
4
|
interface RootProps {
|
|
4
5
|
children: ReactNode;
|
|
@@ -34,9 +35,14 @@ interface ItemProps {
|
|
|
34
35
|
declare function Item({ onClick, children }: ItemProps): import("react/jsx-runtime").JSX.Element;
|
|
35
36
|
interface LinkItemProps {
|
|
36
37
|
href: string;
|
|
38
|
+
/**
|
|
39
|
+
* Called for a plain primary click (ADR-0002): call `event.preventDefault()`,
|
|
40
|
+
* then your router's navigate. Without it the browser follows the link.
|
|
41
|
+
*/
|
|
42
|
+
onNavigate?: OnNavigate;
|
|
37
43
|
children: ReactNode;
|
|
38
44
|
}
|
|
39
|
-
declare function LinkItem({ href, children }: LinkItemProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
declare function LinkItem({ href, onNavigate, children }: LinkItemProps): import("react/jsx-runtime").JSX.Element;
|
|
40
46
|
declare function Separator(): import("react/jsx-runtime").JSX.Element;
|
|
41
47
|
export declare const Menu: {
|
|
42
48
|
Root: typeof Root;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,GAAG,EAOT,MAAM,OAAO,CAAA;AAQd,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAA;AAQnD,UAAU,SAAS;IACjB,QAAQ,EAAE,SAAS,CAAA;IACnB,6BAA6B;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,yCAAyC;IACzC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;CACvC;AAED,iBAAS,IAAI,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,EAAC,EAAE,SAAS,2CAUnE;AAQD,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,OAAO,CAAA;AAEpD,UAAU,YAAY;IACpB,QAAQ,EAAE,SAAS,CAAA;IACnB,iEAAiE;IACjE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,gFAAgF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,eAAO,MAAM,IAAI;;;;;;;CAOhB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { css } from 'react-strict-dom';
|
|
2
|
+
/** Native Menu additions to the shared styles. */
|
|
3
|
+
export declare const nativeStyles: Readonly<{
|
|
4
|
+
readonly nativeFlex: Readonly<{
|
|
5
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
6
|
+
}>;
|
|
7
|
+
readonly popupInPlace: Readonly<{
|
|
8
|
+
readonly position: css.StyleXClassNameFor<"position", "relative">;
|
|
9
|
+
}>;
|
|
10
|
+
readonly itemPressed: Readonly<{
|
|
11
|
+
readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
|
|
12
|
+
}>;
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=native.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.css.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/native.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAGpC,kDAAkD;AAClD,eAAO,MAAM,YAAY;;;;;;;;;;EAavB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface MenuOpenOptions {
|
|
2
|
+
open?: boolean;
|
|
3
|
+
defaultOpen?: boolean;
|
|
4
|
+
onOpenChange?: (open: boolean) => void;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The menu's open state, controlled or not, shared by both platforms (plan
|
|
8
|
+
* N0, Decision 10). Focus, highlight and keys are each platform's adapter:
|
|
9
|
+
* `useMenuRoot` on the web, Menu.native on native.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useMenuOpen({ open: openProp, defaultOpen, onOpenChange }: MenuOpenOptions): {
|
|
12
|
+
open: boolean;
|
|
13
|
+
openRef: import('react').RefObject<boolean>;
|
|
14
|
+
setOpen: (next: boolean) => void;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=useMenuOpen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMenuOpen.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/useMenuOpen.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;CACvC;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAE,WAAmB,EAAE,YAAY,EAAC,EAAE,eAAe;;;oBAUrF,OAAO;EASjB"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { MenuContextValue } from './MenuContext';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
defaultOpen?: boolean;
|
|
5
|
-
onOpenChange?: (open: boolean) => void;
|
|
6
|
-
}
|
|
2
|
+
import { MenuOpenOptions } from './useMenuOpen';
|
|
3
|
+
export type MenuRootOptions = MenuOpenOptions;
|
|
7
4
|
/**
|
|
8
5
|
* The menu-button pattern (WAI-ARIA APG): on open, focus moves to the
|
|
9
6
|
* `role="menu"` popup, which carries `aria-activedescendant`; arrows move the
|
|
@@ -12,7 +9,7 @@ export interface MenuRootOptions {
|
|
|
12
9
|
* elsewhere (an editor) are never intercepted, and Escape stops there so an
|
|
13
10
|
* enclosing Popover or Dialog stays open.
|
|
14
11
|
*/
|
|
15
|
-
export declare function useMenuRoot(
|
|
12
|
+
export declare function useMenuRoot(options: MenuRootOptions): {
|
|
16
13
|
ctx: MenuContextValue;
|
|
17
14
|
rootRef: import('react').RefObject<HTMLDivElement | null>;
|
|
18
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMenuRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/useMenuRoot.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"useMenuRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/useMenuRoot.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAA;AAEnD,OAAO,EAAc,KAAK,eAAe,EAAC,MAAM,eAAe,CAAA;AAE/D,MAAM,MAAM,eAAe,GAAG,eAAe,CAAA;AAE7C;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,eAAe;;;EAkKnD"}
|
|
@@ -3,6 +3,7 @@ export declare const styles: Readonly<{
|
|
|
3
3
|
readonly track: Readonly<{
|
|
4
4
|
readonly position: css.StyleXClassNameFor<"position", "relative">;
|
|
5
5
|
readonly width: css.StyleXClassNameFor<"width", "100%">;
|
|
6
|
+
readonly boxSizing: css.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
6
7
|
readonly height: css.StyleXClassNameFor<"height", string>;
|
|
7
8
|
readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
|
|
8
9
|
readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Meter/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/Meter/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAMpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBjB,CAAA"}
|
|
@@ -2,9 +2,11 @@ import { css } from 'react-strict-dom';
|
|
|
2
2
|
export declare const styles: Readonly<{
|
|
3
3
|
readonly root: Readonly<{
|
|
4
4
|
readonly width: css.StyleXClassNameFor<"width", "100%">;
|
|
5
|
+
readonly boxSizing: css.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
5
6
|
}>;
|
|
6
7
|
readonly container: Readonly<{
|
|
7
8
|
readonly width: css.StyleXClassNameFor<"width", "100%">;
|
|
9
|
+
readonly boxSizing: css.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
8
10
|
readonly marginLeft: css.StyleXClassNameFor<"marginLeft", "auto">;
|
|
9
11
|
readonly marginRight: css.StyleXClassNameFor<"marginRight", "auto">;
|
|
10
12
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/PageShell/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAKpC,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/PageShell/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAKpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBjB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { css } from 'react-strict-dom';
|
|
2
|
+
/** Native Popover additions to the shared styles. */
|
|
3
|
+
export declare const nativeStyles: Readonly<{
|
|
4
|
+
readonly nativeFlex: Readonly<{
|
|
5
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
6
|
+
}>;
|
|
7
|
+
readonly popupInPlace: Readonly<{
|
|
8
|
+
readonly position: css.StyleXClassNameFor<"position", "relative">;
|
|
9
|
+
}>;
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=native.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.css.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/native.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAEpC,qDAAqD;AACrD,eAAO,MAAM,YAAY;;;;;;;EASvB,CAAA"}
|
|
@@ -1,21 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
value?: string;
|
|
4
|
-
defaultValue?: string;
|
|
5
|
-
onValueChange?: (value: string) => void;
|
|
6
|
-
orientation?: 'horizontal' | 'vertical';
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
/** Accessible name when the group is not inside a Field.Root (inside one,
|
|
9
|
-
* the Field.Label names it). */
|
|
10
|
-
'aria-label'?: string;
|
|
11
|
-
/** id of the element that names the group, when not inside a Field.Root. */
|
|
12
|
-
'aria-labelledby'?: string;
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
}
|
|
15
|
-
declare function Root({ value: controlledValue, defaultValue, onValueChange, orientation, disabled, children, ...labelling }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
declare namespace Root {
|
|
17
|
-
var isFieldGroup: true;
|
|
18
|
-
}
|
|
2
|
+
import { Root } from './group';
|
|
19
3
|
interface ItemProps {
|
|
20
4
|
value: string;
|
|
21
5
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAA;AAIpC,OAAO,EAAC,IAAI,EAAgB,MAAM,SAAS,CAAA;AAI3C,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAE,YAAoB,EAAE,QAAQ,EAAC,EAAE,SAAS,2CA4BzE;AAED,eAAO,MAAM,UAAU;;;CAGtB,CAAA"}
|
|
@@ -6,4 +6,7 @@ export declare const Default: Story;
|
|
|
6
6
|
export declare const Horizontal: Story;
|
|
7
7
|
export declare const Disabled: Story;
|
|
8
8
|
export declare const Controlled: Story;
|
|
9
|
+
export declare const OneChangePerPick: Story;
|
|
10
|
+
export declare const SubmitsWithForm: Story;
|
|
11
|
+
export declare const ArrowKeysMoveSelection: Story;
|
|
9
12
|
//# sourceMappingURL=RadioGroup.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.stories.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAKpD,QAAA,MAAM,IAAI,EAAE,IAMX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAErB,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAYxB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAqBxB,CAAA"}
|
|
1
|
+
{"version":3,"file":"RadioGroup.stories.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAKpD,QAAA,MAAM,IAAI,EAAE,IAMX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAErB,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAYxB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAqBxB,CAAA;AAID,eAAO,MAAM,gBAAgB,EAAE,KAsB9B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAe7B,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,KAkBpC,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface RadioGroupContextValue {
|
|
3
|
+
value: string;
|
|
4
|
+
name: string;
|
|
5
|
+
onSelect: (value: string) => void;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function useRadioGroup(): RadioGroupContextValue;
|
|
9
|
+
interface RootProps {
|
|
10
|
+
value?: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
onValueChange?: (value: string) => void;
|
|
13
|
+
orientation?: 'horizontal' | 'vertical';
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Form field name: every item's radio carries it, so the selection is
|
|
16
|
+
* submitted with a native form. Generated when omitted (the radios still
|
|
17
|
+
* form one group). */
|
|
18
|
+
name?: string;
|
|
19
|
+
/** Accessible name when the group is not inside a Field.Root (inside one,
|
|
20
|
+
* the Field.Label names it). */
|
|
21
|
+
'aria-label'?: string;
|
|
22
|
+
/** id of the element that names the group, when not inside a Field.Root. */
|
|
23
|
+
'aria-labelledby'?: string;
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export declare function Root({ value: controlledValue, defaultValue, onValueChange, orientation, disabled, name: nameProp, children, ...labelling }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare namespace Root {
|
|
28
|
+
var isFieldGroup: true;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAAgD,MAAM,OAAO,CAAA;AAQnF,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,QAAQ,EAAE,OAAO,CAAA;CAClB;AAID,wBAAgB,aAAa,2BAM5B;AAID,UAAU,SAAS;IACjB,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;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;2BAEuB;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;qCACiC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,IAAI,CAAC,EACnB,KAAK,EAAE,eAAe,EACtB,YAAiB,EACjB,aAAa,EACb,WAAwB,EACxB,QAAgB,EAChB,IAAI,EAAE,QAAQ,EACd,QAAQ,EACR,GAAG,SAAS,EACb,EAAE,SAAS,2CA2BX;yBApCe,IAAI"}
|
|
@@ -17,6 +17,13 @@ export declare const styles: Readonly<{
|
|
|
17
17
|
readonly color: css.StyleXClassNameFor<"color", string>;
|
|
18
18
|
readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
|
|
19
19
|
}>;
|
|
20
|
+
readonly nativeItem: Readonly<{
|
|
21
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
22
|
+
readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "row">;
|
|
23
|
+
readonly borderWidth: css.StyleXClassNameFor<"borderWidth", 0>;
|
|
24
|
+
readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
25
|
+
readonly padding: css.StyleXClassNameFor<"padding", 0>;
|
|
26
|
+
}>;
|
|
20
27
|
readonly itemDisabled: Readonly<{
|
|
21
28
|
readonly opacity: css.StyleXClassNameFor<"opacity", 0.5>;
|
|
22
29
|
readonly cursor: css.StyleXClassNameFor<"cursor", "not-allowed">;
|
|
@@ -52,5 +59,8 @@ export declare const styles: Readonly<{
|
|
|
52
59
|
readonly input: Readonly<{
|
|
53
60
|
readonly opacity: css.StyleXClassNameFor<"opacity", 0>;
|
|
54
61
|
}>;
|
|
62
|
+
readonly nativeFlex: Readonly<{
|
|
63
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
64
|
+
}>;
|
|
55
65
|
}>;
|
|
56
66
|
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/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/RadioGroup/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAQpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsEjB,CAAA"}
|
|
@@ -6,6 +6,7 @@ export declare const styles: Readonly<{
|
|
|
6
6
|
}>;
|
|
7
7
|
readonly viewport: Readonly<{
|
|
8
8
|
readonly width: css.StyleXClassNameFor<"width", "100%">;
|
|
9
|
+
readonly boxSizing: css.StyleXClassNameFor<"boxSizing", "border-box">;
|
|
9
10
|
readonly height: css.StyleXClassNameFor<"height", "100%">;
|
|
10
11
|
readonly overflowX: css.StyleXClassNameFor<"overflowX", "auto">;
|
|
11
12
|
readonly overflowY: css.StyleXClassNameFor<"overflowY", "auto">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/ScrollArea/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/ScrollArea/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAOpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8EjB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chevron.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/Chevron.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,SAAS,CAAA;AAEzC,0EAA0E;AAC1E,wBAAgB,OAAO,CAAC,MAAM,EAAE,YAAY,2CAe3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideNav.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SideNav.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAQf,MAAM,OAAO,CAAA;AAWd;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAIH,UAAU,SAAS;IACjB,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACxC;AAED,iBAAS,IAAI,CAAC,EACZ,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,KAAK,EAAE,eAAe,EACtB,YAAY,EACZ,aAAa,GACd,EAAE,SAAS,2CAgEX;AAID,UAAU,UAAU;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,iBAAS,KAAK,CAAC,EAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAC,EAAE,UAAU,2CAoEtE;AAID,UAAU,YAAY;IACpB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;;GASG;AACH,iBAAS,OAAO,CAAC,EAAC,QAAQ,EAAE,KAAK,EAAC,EAAE,YAAY,2CAY/C;AAID,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,SAAS,CAAA;IACnB;yEACqE;IACrE,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,iBAAS,IAAI,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAC,EAAE,SAAS,2CA2B/C;AAED,eAAO,MAAM,OAAO;;;;;CAKnB,CAAA"}
|
|
@@ -107,6 +107,12 @@ export declare const styles: Readonly<{
|
|
|
107
107
|
readonly transitionDuration: css.StyleXClassNameFor<"transitionDuration", string>;
|
|
108
108
|
readonly transitionTimingFunction: css.StyleXClassNameFor<"transitionTimingFunction", string>;
|
|
109
109
|
}>;
|
|
110
|
+
readonly itemsHidden: Readonly<{
|
|
111
|
+
readonly display: css.StyleXClassNameFor<"display", "none">;
|
|
112
|
+
}>;
|
|
113
|
+
readonly nativeFlex: Readonly<{
|
|
114
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
115
|
+
}>;
|
|
110
116
|
readonly markerActive: Readonly<{
|
|
111
117
|
readonly height: css.StyleXClassNameFor<"height", string>;
|
|
112
118
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/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/SideNav/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAQpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0JjB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAA;AAErD,MAAM,WAAW,YAAY;IAC3B,+DAA+D;IAC/D,KAAK,EAAE,UAAU,CAAA;CAClB"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
size?: SpinnerSize;
|
|
4
|
-
label?: string;
|
|
5
|
-
}
|
|
1
|
+
import { SpinnerProps } from './Spinner.types';
|
|
2
|
+
export type { SpinnerProps, SpinnerSize } from './Spinner.types';
|
|
6
3
|
export declare function Spinner({ size, label }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
8
4
|
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/Spinner.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/Spinner.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAA;AAEjD,YAAY,EAAC,YAAY,EAAE,WAAW,EAAC,MAAM,iBAAiB,CAAA;AAE9D,wBAAgB,OAAO,CAAC,EAAC,IAAW,EAAE,KAAiB,EAAC,EAAE,YAAY,2CAOrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.types.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/Spinner.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAE5C,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { css } from 'react-strict-dom';
|
|
2
|
+
/** The ring both platforms draw; each turns it its own way. */
|
|
3
|
+
export declare const ring: Readonly<{
|
|
4
|
+
readonly root: Readonly<{
|
|
5
|
+
readonly display: css.StyleXClassNameFor<"display", "inline-flex">;
|
|
6
|
+
readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
|
|
7
|
+
readonly justifyContent: css.StyleXClassNameFor<"justifyContent", "center">;
|
|
8
|
+
}>;
|
|
9
|
+
readonly nativeRoot: Readonly<{
|
|
10
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
11
|
+
}>;
|
|
12
|
+
readonly ring: Readonly<{
|
|
13
|
+
readonly borderRadius: css.StyleXClassNameFor<"borderRadius", "50%">;
|
|
14
|
+
readonly borderStyle: css.StyleXClassNameFor<"borderStyle", "solid">;
|
|
15
|
+
readonly borderColor: css.StyleXClassNameFor<"borderColor", string>;
|
|
16
|
+
readonly borderTopColor: css.StyleXClassNameFor<"borderTopColor", string>;
|
|
17
|
+
}>;
|
|
18
|
+
readonly sm: Readonly<{
|
|
19
|
+
readonly width: css.StyleXClassNameFor<"width", string>;
|
|
20
|
+
readonly height: css.StyleXClassNameFor<"height", string>;
|
|
21
|
+
readonly borderWidth: css.StyleXClassNameFor<"borderWidth", string>;
|
|
22
|
+
}>;
|
|
23
|
+
readonly md: Readonly<{
|
|
24
|
+
readonly width: css.StyleXClassNameFor<"width", string>;
|
|
25
|
+
readonly height: css.StyleXClassNameFor<"height", string>;
|
|
26
|
+
readonly borderWidth: css.StyleXClassNameFor<"borderWidth", string>;
|
|
27
|
+
}>;
|
|
28
|
+
readonly lg: Readonly<{
|
|
29
|
+
readonly width: css.StyleXClassNameFor<"width", string>;
|
|
30
|
+
readonly height: css.StyleXClassNameFor<"height", string>;
|
|
31
|
+
readonly borderWidth: css.StyleXClassNameFor<"borderWidth", string>;
|
|
32
|
+
}>;
|
|
33
|
+
readonly srOnly: Readonly<{
|
|
34
|
+
readonly clip: css.StyleXClassNameFor<"clip", "rect(0, 0, 0, 0)">;
|
|
35
|
+
}>;
|
|
36
|
+
}>;
|
|
37
|
+
/** One turn, in ms: the web animation's 0.6s. */
|
|
38
|
+
export declare const TURN_MS = 600;
|
|
39
|
+
//# sourceMappingURL=ring.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ring.css.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/ring.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAKpC,+DAA+D;AAC/D,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCf,CAAA;AAEF,iDAAiD;AACjD,eAAO,MAAM,OAAO,MAAM,CAAA"}
|
|
@@ -1,37 +1,10 @@
|
|
|
1
1
|
import { css } from 'react-strict-dom';
|
|
2
2
|
export declare const styles: Readonly<{
|
|
3
|
-
readonly
|
|
4
|
-
readonly display: css.StyleXClassNameFor<"display", "inline-flex">;
|
|
5
|
-
readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
|
|
6
|
-
readonly justifyContent: css.StyleXClassNameFor<"justifyContent", "center">;
|
|
7
|
-
}>;
|
|
8
|
-
readonly spinner: Readonly<{
|
|
9
|
-
readonly borderRadius: css.StyleXClassNameFor<"borderRadius", "50%">;
|
|
10
|
-
readonly borderStyle: css.StyleXClassNameFor<"borderStyle", "solid">;
|
|
11
|
-
readonly borderColor: css.StyleXClassNameFor<"borderColor", string>;
|
|
12
|
-
readonly borderTopColor: css.StyleXClassNameFor<"borderTopColor", string>;
|
|
3
|
+
readonly spinning: Readonly<{
|
|
13
4
|
readonly animationName: css.StyleXClassNameFor<"animationName", string>;
|
|
14
5
|
readonly animationDuration: css.StyleXClassNameFor<"animationDuration", "0.6s">;
|
|
15
6
|
readonly animationTimingFunction: css.StyleXClassNameFor<"animationTimingFunction", string>;
|
|
16
7
|
readonly animationIterationCount: css.StyleXClassNameFor<"animationIterationCount", "infinite">;
|
|
17
8
|
}>;
|
|
18
|
-
readonly sm: Readonly<{
|
|
19
|
-
readonly width: css.StyleXClassNameFor<"width", string>;
|
|
20
|
-
readonly height: css.StyleXClassNameFor<"height", string>;
|
|
21
|
-
readonly borderWidth: css.StyleXClassNameFor<"borderWidth", string>;
|
|
22
|
-
}>;
|
|
23
|
-
readonly md: Readonly<{
|
|
24
|
-
readonly width: css.StyleXClassNameFor<"width", string>;
|
|
25
|
-
readonly height: css.StyleXClassNameFor<"height", string>;
|
|
26
|
-
readonly borderWidth: css.StyleXClassNameFor<"borderWidth", string>;
|
|
27
|
-
}>;
|
|
28
|
-
readonly lg: Readonly<{
|
|
29
|
-
readonly width: css.StyleXClassNameFor<"width", string>;
|
|
30
|
-
readonly height: css.StyleXClassNameFor<"height", string>;
|
|
31
|
-
readonly borderWidth: css.StyleXClassNameFor<"borderWidth", string>;
|
|
32
|
-
}>;
|
|
33
|
-
readonly srOnly: Readonly<{
|
|
34
|
-
readonly clip: css.StyleXClassNameFor<"clip", "rect(0, 0, 0, 0)">;
|
|
35
|
-
}>;
|
|
36
9
|
}>;
|
|
37
10
|
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAQpC,eAAO,MAAM,MAAM;;;;;;;EAQjB,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SizeToken } from '@duro-app/tokens/keys';
|
|
3
|
+
import { Breakpoint } from '@duro-app/tokens/tokens/breakpoints.css';
|
|
4
|
+
interface RootProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** The primary (first) pane's starting width, a size token. Default: `sidebarW` */
|
|
7
|
+
defaultSize?: SizeToken;
|
|
8
|
+
/** Controlled width of the primary pane, in px (from `onSizeChange`) */
|
|
9
|
+
size?: number;
|
|
10
|
+
/** Called with the primary pane's new width while the handle moves */
|
|
11
|
+
onSizeChange?: (px: number) => void;
|
|
12
|
+
/** The primary pane's narrowest width, a size token. Default: `sidebarW` */
|
|
13
|
+
minSize?: SizeToken;
|
|
14
|
+
/** The primary pane's widest width, a size token. Default: `panelLg` */
|
|
15
|
+
maxSize?: SizeToken;
|
|
16
|
+
/** Below this breakpoint, measured on the split's own width, the panes stack. Default: `sm` */
|
|
17
|
+
collapseBelow?: Breakpoint;
|
|
18
|
+
/** The handle's accessible name ("Resize list"). */
|
|
19
|
+
'aria-label': string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Two panes side by side with a resizable separator between them: a list
|
|
23
|
+
* and its detail, an editor and its preview. The first Pane is sized by the
|
|
24
|
+
* handle (pointer drag, arrow keys, Home and End); the second takes the rest.
|
|
25
|
+
* Below `collapseBelow` the panes stack in one column and the handle goes.
|
|
26
|
+
*/
|
|
27
|
+
declare function Root({ children, defaultSize, size: controlledSize, onSizeChange, minSize, maxSize, collapseBelow, 'aria-label': label, }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function Pane({ children }: {
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function Handle(): import("react/jsx-runtime").JSX.Element | null;
|
|
32
|
+
export declare const SplitPane: {
|
|
33
|
+
Root: typeof Root;
|
|
34
|
+
Pane: typeof Pane;
|
|
35
|
+
Handle: typeof Handle;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=SplitPane.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitPane.d.ts","sourceRoot":"","sources":["../../../src/components/SplitPane/SplitPane.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EAOf,MAAM,OAAO,CAAA;AAEd,OAAO,EAAuB,KAAK,SAAS,EAAC,MAAM,uBAAuB,CAAA;AAC1E,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,yCAAyC,CAAA;AA+BvE,UAAU,SAAS;IACjB,QAAQ,EAAE,SAAS,CAAA;IACnB,mFAAmF;IACnF,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,4EAA4E;IAC5E,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,wEAAwE;IACxE,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,+FAA+F;IAC/F,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,oDAAoD;IACpD,YAAY,EAAE,MAAM,CAAA;CACrB;AAED;;;;;GAKG;AACH,iBAAS,IAAI,CAAC,EACZ,QAAQ,EACR,WAAwB,EACxB,IAAI,EAAE,cAAc,EACpB,YAAY,EACZ,OAAoB,EACpB,OAAmB,EACnB,aAAoB,EACpB,YAAY,EAAE,KAAK,GACpB,EAAE,SAAS,2CAiCX;AAED,iBAAS,IAAI,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAC,2CAc9C;AAED,iBAAS,MAAM,mDAkFd;AAED,eAAO,MAAM,SAAS;;;;CAIrB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitPane.meta.d.ts","sourceRoot":"","sources":["../../../src/components/SplitPane/SplitPane.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aAqClB,CAAA"}
|