@duro-app/ui 5.12.0 → 5.14.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/README.md +49 -0
- package/dist/Table-DnaoH-h5.js +1806 -0
- package/dist/Table-DnaoH-h5.js.map +1 -0
- 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.map +1 -1
- package/dist/components/ColorMode/ColorMode.d.ts +2 -1
- package/dist/components/ColorMode/ColorMode.d.ts.map +1 -1
- package/dist/components/ColorMode/storage.d.ts +4 -0
- package/dist/components/ColorMode/storage.d.ts.map +1 -0
- package/dist/components/ColorMode/styles.css.d.ts +4 -0
- package/dist/components/ColorMode/styles.css.d.ts.map +1 -1
- package/dist/components/ColorMode/useSystemScheme.d.ts +7 -0
- package/dist/components/ColorMode/useSystemScheme.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +7 -2
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox/comboboxState.d.ts +29 -0
- package/dist/components/Combobox/comboboxState.d.ts.map +1 -0
- package/dist/components/Combobox/native.css.d.ts +27 -0
- package/dist/components/Combobox/native.css.d.ts.map +1 -0
- package/dist/components/Combobox/useComboboxRoot.d.ts +6 -10
- package/dist/components/Combobox/useComboboxRoot.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +12 -37
- 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 +22 -0
- package/dist/components/Drawer/DrawerSnap.stories.d.ts.map +1 -0
- package/dist/components/Drawer/native.css.d.ts +59 -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 +16 -57
- 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/Form/FormSubmitContext.d.ts +8 -0
- package/dist/components/Form/FormSubmitContext.d.ts.map +1 -0
- package/dist/components/Listbox/native.css.d.ts +84 -0
- package/dist/components/Listbox/native.css.d.ts.map +1 -0
- 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/Popover/native.css.d.ts +11 -0
- package/dist/components/Popover/native.css.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts +9 -2
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.stories.d.ts +11 -0
- package/dist/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/components/Select/native.css.d.ts +11 -0
- package/dist/components/Select/native.css.d.ts.map +1 -0
- package/dist/components/Select/selectState.d.ts +21 -0
- package/dist/components/Select/selectState.d.ts.map +1 -0
- package/dist/components/Select/styles.css.d.ts +10 -0
- package/dist/components/Select/styles.css.d.ts.map +1 -1
- package/dist/components/Select/useSelectRoot.d.ts +6 -8
- package/dist/components/Select/useSelectRoot.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/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/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/ThemeProvider/ThemeOverrides.stories.d.ts +13 -0
- package/dist/components/ThemeProvider/ThemeOverrides.stories.d.ts.map +1 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +9 -2
- package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/components/ThemeProvider/overrideRule.d.ts +7 -0
- package/dist/components/ThemeProvider/overrideRule.d.ts.map +1 -0
- package/dist/components/ThemeProvider/overrides.d.ts +16 -0
- package/dist/components/ThemeProvider/overrides.d.ts.map +1 -0
- 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/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/index.css +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5090 -4381
- 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/pressableChild.d.ts +14 -0
- package/dist/shared/pressableChild.d.ts.map +1 -0
- package/dist/shared/textOf.d.ts +7 -0
- package/dist/shared/textOf.d.ts.map +1 -0
- package/dist/table.js +1 -1
- package/package.json +3 -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 +15 -4
- package/src/components/ColorMode/ColorMode.meta.ts +1 -1
- package/src/components/ColorMode/ColorMode.tsx +16 -37
- package/src/components/ColorMode/storage.native.ts +8 -0
- package/src/components/ColorMode/storage.ts +19 -0
- package/src/components/ColorMode/styles.css.ts +6 -0
- package/src/components/ColorMode/useSystemScheme.native.ts +6 -0
- package/src/components/ColorMode/useSystemScheme.ts +19 -0
- package/src/components/Combobox/Combobox.meta.ts +1 -1
- package/src/components/Combobox/Combobox.native.tsx +295 -0
- package/src/components/Combobox/Combobox.tsx +14 -8
- package/src/components/Combobox/comboboxState.ts +107 -0
- package/src/components/Combobox/native.css.ts +33 -0
- package/src/components/Combobox/useComboboxRoot.ts +17 -91
- package/src/components/Drawer/Drawer.meta.ts +2 -1
- package/src/components/Drawer/Drawer.native.tsx +491 -0
- package/src/components/Drawer/Drawer.tsx +65 -143
- package/src/components/Drawer/DrawerScroll.stories.tsx +4 -54
- package/src/components/Drawer/DrawerSnap.stories.tsx +225 -0
- package/src/components/Drawer/native.css.ts +62 -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 +18 -73
- 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/Form/Form.meta.ts +1 -1
- package/src/components/Form/Form.native.tsx +120 -0
- package/src/components/Form/FormSubmitContext.ts +12 -0
- package/src/components/Listbox/Listbox.meta.ts +1 -1
- package/src/components/Listbox/Listbox.native.tsx +153 -0
- package/src/components/Listbox/native.css.ts +91 -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/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/ScrollArea/ScrollArea.meta.ts +1 -1
- package/src/components/ScrollArea/ScrollArea.native.tsx +61 -0
- package/src/components/Select/Select.meta.ts +1 -1
- package/src/components/Select/Select.native.tsx +224 -0
- package/src/components/Select/Select.stories.tsx +49 -1
- package/src/components/Select/Select.tsx +20 -3
- package/src/components/Select/native.css.ts +13 -0
- package/src/components/Select/selectState.ts +36 -0
- package/src/components/Select/styles.css.ts +11 -0
- package/src/components/Select/useSelectRoot.ts +9 -30
- 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/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/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/ThemeProvider/ThemeOverrides.stories.tsx +113 -0
- package/src/components/ThemeProvider/ThemeProvider.meta.ts +1 -1
- package/src/components/ThemeProvider/ThemeProvider.native.tsx +36 -7
- package/src/components/ThemeProvider/ThemeProvider.tsx +42 -6
- package/src/components/ThemeProvider/overrideRule.ts +39 -0
- package/src/components/ThemeProvider/overrides.ts +27 -0
- 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 +3 -3
- 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/form.native.ts +7 -0
- package/src/hooks/useContainerBelow.native.ts +30 -0
- package/src/index.native.ts +48 -0
- package/src/index.ts +9 -1
- package/src/shared/ButtonHost.native.tsx +70 -0
- package/src/shared/ButtonHost.tsx +12 -0
- package/src/shared/focusInput.native.ts +18 -0
- package/src/shared/portal/AnchoredOverlay.native.tsx +117 -0
- package/src/shared/pressableChild.ts +33 -0
- package/src/shared/textOf.ts +13 -0
- package/src/shared/useKeyboardHeight.native.ts +18 -0
- package/src/shared/useScreenReaderEnabled.native.ts +19 -0
- package/dist/Table-ColfpgKV.js +0 -1552
- package/dist/Table-ColfpgKV.js.map +0 -1
|
@@ -67,6 +67,19 @@ export declare const styles: Readonly<{
|
|
|
67
67
|
readonly borderTopRightRadius: css.StyleXClassNameFor<"borderTopRightRadius", string>;
|
|
68
68
|
readonly maxHeight: css.StyleXClassNameFor<"maxHeight", "85vh">;
|
|
69
69
|
}>;
|
|
70
|
+
readonly panelSnap: Readonly<{
|
|
71
|
+
readonly maxHeight: css.StyleXClassNameFor<"maxHeight", "none">;
|
|
72
|
+
readonly transitionProperty: css.StyleXClassNameFor<"transitionProperty", "height">;
|
|
73
|
+
readonly transitionDuration: css.StyleXClassNameFor<"transitionDuration", string>;
|
|
74
|
+
readonly transitionTimingFunction: css.StyleXClassNameFor<"transitionTimingFunction", string>;
|
|
75
|
+
}>;
|
|
76
|
+
readonly sheetHeight: (height: number) => readonly [Readonly<{
|
|
77
|
+
height: css.StyleXClassNameFor<"height", number>;
|
|
78
|
+
}>, css.InlineStyles];
|
|
79
|
+
readonly grabberHitWeb: Readonly<{
|
|
80
|
+
readonly cursor: css.StyleXClassNameFor<"cursor", "grab">;
|
|
81
|
+
readonly touchAction: css.StyleXClassNameFor<"touchAction", "none">;
|
|
82
|
+
}>;
|
|
70
83
|
readonly panelLeftBorder: Readonly<{
|
|
71
84
|
readonly borderLeftWidth: css.StyleXClassNameFor<"borderLeftWidth", 0>;
|
|
72
85
|
readonly borderRightWidth: css.StyleXClassNameFor<"borderRightWidth", string>;
|
|
@@ -139,32 +152,6 @@ export declare const styles: Readonly<{
|
|
|
139
152
|
readonly closeDurationSlow: Readonly<{
|
|
140
153
|
readonly animationDuration: css.StyleXClassNameFor<"animationDuration", string>;
|
|
141
154
|
}>;
|
|
142
|
-
readonly header: Readonly<{
|
|
143
|
-
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
144
|
-
readonly alignItems: css.StyleXClassNameFor<"alignItems", "flex-start">;
|
|
145
|
-
readonly justifyContent: css.StyleXClassNameFor<"justifyContent", "space-between">;
|
|
146
|
-
readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
|
|
147
|
-
readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
|
|
148
|
-
readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
|
|
149
|
-
readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
|
|
150
|
-
readonly gap: css.StyleXClassNameFor<"gap", string>;
|
|
151
|
-
}>;
|
|
152
|
-
readonly title: Readonly<{
|
|
153
|
-
readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
|
|
154
|
-
readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
|
|
155
|
-
readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
|
|
156
|
-
readonly color: css.StyleXClassNameFor<"color", string>;
|
|
157
|
-
readonly margin: css.StyleXClassNameFor<"margin", 0>;
|
|
158
|
-
}>;
|
|
159
|
-
readonly description: Readonly<{
|
|
160
|
-
readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
|
|
161
|
-
readonly lineHeight: css.StyleXClassNameFor<"lineHeight", string>;
|
|
162
|
-
readonly color: css.StyleXClassNameFor<"color", string>;
|
|
163
|
-
readonly margin: css.StyleXClassNameFor<"margin", 0>;
|
|
164
|
-
readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
|
|
165
|
-
readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
|
|
166
|
-
readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
|
|
167
|
-
}>;
|
|
168
155
|
readonly body: Readonly<{
|
|
169
156
|
readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
|
|
170
157
|
readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
|
|
@@ -172,37 +159,9 @@ export declare const styles: Readonly<{
|
|
|
172
159
|
readonly overflowY: css.StyleXClassNameFor<"overflowY", "auto">;
|
|
173
160
|
readonly flex: css.StyleXClassNameFor<"flex", 1>;
|
|
174
161
|
}>;
|
|
175
|
-
readonly
|
|
176
|
-
readonly
|
|
177
|
-
readonly
|
|
178
|
-
readonly justifyContent: css.StyleXClassNameFor<"justifyContent", "flex-end">;
|
|
179
|
-
readonly gap: css.StyleXClassNameFor<"gap", string>;
|
|
180
|
-
readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
|
|
181
|
-
readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
|
|
182
|
-
readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
|
|
183
|
-
readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
|
|
184
|
-
readonly borderTopWidth: css.StyleXClassNameFor<"borderTopWidth", string>;
|
|
185
|
-
readonly borderTopStyle: css.StyleXClassNameFor<"borderTopStyle", "solid">;
|
|
186
|
-
readonly borderTopColor: css.StyleXClassNameFor<"borderTopColor", string>;
|
|
187
|
-
}>;
|
|
188
|
-
readonly closeButton: Readonly<{
|
|
189
|
-
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
190
|
-
readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
|
|
191
|
-
readonly justifyContent: css.StyleXClassNameFor<"justifyContent", "center">;
|
|
192
|
-
readonly width: css.StyleXClassNameFor<"width", string>;
|
|
193
|
-
readonly height: css.StyleXClassNameFor<"height", string>;
|
|
194
|
-
readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
|
|
195
|
-
readonly borderWidth: css.StyleXClassNameFor<"borderWidth", 0>;
|
|
196
|
-
readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
|
|
197
|
-
readonly color: css.StyleXClassNameFor<"color", string>;
|
|
198
|
-
readonly cursor: css.StyleXClassNameFor<"cursor", "pointer">;
|
|
199
|
-
readonly padding: css.StyleXClassNameFor<"padding", 0>;
|
|
200
|
-
readonly flexShrink: css.StyleXClassNameFor<"flexShrink", 0>;
|
|
201
|
-
readonly transitionProperty: css.StyleXClassNameFor<"transitionProperty", "background-color">;
|
|
202
|
-
readonly transitionDuration: css.StyleXClassNameFor<"transitionDuration", string>;
|
|
203
|
-
}>;
|
|
204
|
-
readonly inlineWrapper: Readonly<{
|
|
205
|
-
readonly display: css.StyleXClassNameFor<"display", "inline-flex">;
|
|
162
|
+
readonly bodyFlush: Readonly<{
|
|
163
|
+
readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", 0>;
|
|
164
|
+
readonly paddingRight: css.StyleXClassNameFor<"paddingRight", 0>;
|
|
206
165
|
}>;
|
|
207
166
|
}>;
|
|
208
167
|
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/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/Drawer/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AASpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuMjB,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Real touch input and viewport control for Storybook interaction tests
|
|
3
|
+
* (the Drawer's, SplitPane's), through
|
|
4
|
+
* Chrome DevTools Protocol: synthetic pointer events neither scroll nor go
|
|
5
|
+
* through touch adjustment the way a finger does.
|
|
6
|
+
*/
|
|
7
|
+
export type Point = {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A CDP command. `vitest/browser` loads only under the test runner, so it is
|
|
13
|
+
* imported here, at call time: a static import breaks the built Storybook.
|
|
14
|
+
* `CDPSession` is empty until the provider's typings load; `send` exists at runtime.
|
|
15
|
+
*/
|
|
16
|
+
export declare function cdpSend(method: string, params: object): Promise<unknown>;
|
|
17
|
+
/** Set the page's viewport (test runner only, like `cdpSend`). */
|
|
18
|
+
export declare function setViewport(width: number, height: number): Promise<void>;
|
|
19
|
+
export declare const pause: (ms: number) => Promise<unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* CDP input lands in top-level page coordinates; the story runs in an iframe
|
|
22
|
+
* the test runner offsets and may scale to fit. Map a point up every frame.
|
|
23
|
+
*/
|
|
24
|
+
export declare function toPage(p: Point): Point;
|
|
25
|
+
/**
|
|
26
|
+
* A finger drag from one point to another, in `steps` moves 16 ms apart.
|
|
27
|
+
* Each move is a round trip to the browser; few of them keep a test well
|
|
28
|
+
* inside its timeout on a loaded machine.
|
|
29
|
+
*/
|
|
30
|
+
export declare function touchDrag(from: Point, to: Point, steps?: number): Promise<void>;
|
|
31
|
+
/** A finger tap. */
|
|
32
|
+
export declare function touchTap(at: Point): Promise<void>;
|
|
33
|
+
/** The centre of an element, in its own document's coordinates. */
|
|
34
|
+
export declare function centre(el: Element): Point;
|
|
35
|
+
//# sourceMappingURL=touchInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"touchInput.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/touchInput.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,KAAK,GAAG;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAE1C;;;;GAIG;AACH,wBAAsB,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,oBAI3D;AAED,kEAAkE;AAClE,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAG9D;AAED,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,qBAA0C,CAAA;AAE1E;;;GAGG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,KAAK,GAAG,KAAK,CAWtC;AASD;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,SAAI,iBAWhE;AAED,oBAAoB;AACpB,wBAAsB,QAAQ,CAAC,EAAE,EAAE,KAAK,iBAGvC;AAED,mEAAmE;AACnE,wBAAgB,MAAM,CAAC,EAAE,EAAE,OAAO,GAAG,KAAK,CAGzC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DurationToken } from '@duro-app/tokens/keys';
|
|
3
|
+
import { DrawerAnchor, DrawerContextValue } from './parts';
|
|
4
|
+
import { SnapPoint } from './sheetPhysics';
|
|
5
|
+
export interface DrawerRootProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Controlled open state */
|
|
8
|
+
open?: boolean;
|
|
9
|
+
/** Default open state (uncontrolled) */
|
|
10
|
+
defaultOpen?: boolean;
|
|
11
|
+
/** Called when drawer open state changes */
|
|
12
|
+
onOpenChange?: (open: boolean) => void;
|
|
13
|
+
/** Which edge the drawer slides from. Default: 'right' */
|
|
14
|
+
anchor?: DrawerAnchor;
|
|
15
|
+
/** Whether clicking backdrop or pressing Escape (Android's back button on native) closes the drawer. Default: true */
|
|
16
|
+
dismissable?: boolean;
|
|
17
|
+
/** Whether swipe gesture dismisses the drawer. Default: true */
|
|
18
|
+
swipeDismiss?: boolean;
|
|
19
|
+
/** Motion token for the close animation. Default: 'fast' (150ms) */
|
|
20
|
+
closeAnimationDuration?: DurationToken;
|
|
21
|
+
/**
|
|
22
|
+
* Bottom anchor only: the heights the sheet rests at. 'medium' is half the
|
|
23
|
+
* window, 'large' the window less its top safe-area inset. A drag moves
|
|
24
|
+
* between them and dismisses below the lowest; the grabber steps through
|
|
25
|
+
* them on a tap. Without it, a bottom drawer is as tall as its content.
|
|
26
|
+
*/
|
|
27
|
+
snapPoints?: readonly SnapPoint[];
|
|
28
|
+
/** The detent the sheet opens at. Default: the lowest of snapPoints */
|
|
29
|
+
defaultSnapPoint?: SnapPoint;
|
|
30
|
+
}
|
|
31
|
+
/** The state both platforms' Drawer.Root share: open and closing, ids, and the detent. */
|
|
32
|
+
export declare function useDrawerRoot({ open: controlledOpen, defaultOpen, onOpenChange, anchor, dismissable, swipeDismiss, closeAnimationDuration, snapPoints: snapPointsProp, defaultSnapPoint, }: Omit<DrawerRootProps, 'children'>): DrawerContextValue;
|
|
33
|
+
//# sourceMappingURL=useDrawerRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDrawerRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/useDrawerRoot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAA8C,MAAM,OAAO,CAAA;AACjF,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAC,YAAY,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAA;AAC7D,OAAO,EAAiB,KAAK,SAAS,EAAC,MAAM,gBAAgB,CAAA;AAE7D,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,SAAS,CAAA;IACnB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,wCAAwC;IACxC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4CAA4C;IAC5C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,0DAA0D;IAC1D,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,sHAAsH;IACtH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gEAAgE;IAChE,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,oEAAoE;IACpE,sBAAsB,CAAC,EAAE,aAAa,CAAA;IACtC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,SAAS,SAAS,EAAE,CAAA;IACjC,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,SAAS,CAAA;CAC7B;AAED,0FAA0F;AAC1F,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EAAE,cAAc,EACpB,WAAmB,EACnB,YAAY,EACZ,MAAgB,EAChB,WAAkB,EAClB,YAAmB,EACnB,sBAA+B,EAC/B,UAAU,EAAE,cAAc,EAC1B,gBAAgB,GACjB,EAAE,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,GAAG,kBAAkB,CA6CxD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SnapPoint } from './sheetPhysics';
|
|
2
|
+
/**
|
|
3
|
+
* Web: each detent's height in px, ascending, following the window as it
|
|
4
|
+
* resizes (a rotated phone, an opened on-screen keyboard).
|
|
5
|
+
*/
|
|
6
|
+
export declare function useSheetHeights(points: readonly SnapPoint[], active: boolean): number[];
|
|
7
|
+
//# sourceMappingURL=useSheetHeights.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSheetHeights.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/useSheetHeights.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,SAAS,EAAC,MAAM,gBAAgB,CAAA;AAqB3D;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,EAAE,CAevF"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import { DrawerAnchor } from './
|
|
1
|
+
import { DrawerAnchor } from './parts';
|
|
2
|
+
/** A bottom sheet's detents: the drag moves between them before it dismisses. */
|
|
3
|
+
export interface SwipeSnap {
|
|
4
|
+
/** Each detent's height in px, ascending */
|
|
5
|
+
heights: readonly number[];
|
|
6
|
+
/** The detent the sheet rests at */
|
|
7
|
+
index: number;
|
|
8
|
+
/** A drag settled on another detent */
|
|
9
|
+
onSnap: (index: number) => void;
|
|
10
|
+
}
|
|
2
11
|
interface UseSwipeDismissOptions {
|
|
3
12
|
anchor: DrawerAnchor;
|
|
4
13
|
enabled: boolean;
|
|
@@ -9,6 +18,8 @@ interface UseSwipeDismissOptions {
|
|
|
9
18
|
* exists, and listeners must follow the element that is actually shown.
|
|
10
19
|
*/
|
|
11
20
|
panel: HTMLDivElement | null;
|
|
21
|
+
/** Bottom anchor with snapPoints: drag between detents, dismiss below the lowest */
|
|
22
|
+
snap?: SwipeSnap | null;
|
|
12
23
|
}
|
|
13
24
|
/**
|
|
14
25
|
* Hook that adds swipe-to-dismiss gesture to a drawer panel.
|
|
@@ -17,6 +28,6 @@ interface UseSwipeDismissOptions {
|
|
|
17
28
|
* Opposite direction: iOS-style — panel stays anchored, shows subtle
|
|
18
29
|
* overscroll feedback (box-shadow intensifies), then snaps back.
|
|
19
30
|
*/
|
|
20
|
-
export declare function useSwipeDismiss({ anchor, enabled, onDismiss, panel }: UseSwipeDismissOptions): void;
|
|
31
|
+
export declare function useSwipeDismiss({ anchor, enabled, onDismiss, panel, snap, }: UseSwipeDismissOptions): void;
|
|
21
32
|
export {};
|
|
22
33
|
//# sourceMappingURL=useSwipeDismiss.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSwipeDismiss.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/useSwipeDismiss.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"useSwipeDismiss.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/useSwipeDismiss.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,SAAS,CAAA;AAkBzC,iFAAiF;AACjF,MAAM,WAAW,SAAS;IACxB,4CAA4C;IAC5C,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;IAC1B,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,uCAAuC;IACvC,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAChC;AAED,UAAU,sBAAsB;IAC9B,MAAM,EAAE,YAAY,CAAA;IACpB,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB;;;;OAIG;IACH,KAAK,EAAE,cAAc,GAAG,IAAI,CAAA;IAC5B,oFAAoF;IACpF,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;CACxB;AAiBD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,OAAO,EACP,SAAS,EACT,KAAK,EACL,IAAW,GACZ,EAAE,sBAAsB,QA0YxB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a `type="submit"` Button submits its Form where there is no DOM submit
|
|
3
|
+
* event: on native, Form provides its validated submit here. The web Form
|
|
4
|
+
* provides nothing; the browser's form submission does it.
|
|
5
|
+
*/
|
|
6
|
+
export declare const FormSubmitContext: import('react').Context<(() => void) | null>;
|
|
7
|
+
export declare function useFormSubmit(): (() => void) | null;
|
|
8
|
+
//# sourceMappingURL=FormSubmitContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormSubmitContext.d.ts","sourceRoot":"","sources":["../../../src/components/Form/FormSubmitContext.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,iCAAwB,IAAI,SAAe,CAAA;AAEzE,wBAAgB,aAAa,WAFyB,IAAI,SAIzD"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { css } from 'react-strict-dom';
|
|
2
|
+
/**
|
|
3
|
+
* A picker sheet's rows on native (plan N0, C0 direction A "Check"): a
|
|
4
|
+
* touch-target row per option, the chosen one filled and checked.
|
|
5
|
+
*/
|
|
6
|
+
export declare const sheetStyles: Readonly<{
|
|
7
|
+
readonly list: Readonly<{
|
|
8
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
9
|
+
readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "column">;
|
|
10
|
+
}>;
|
|
11
|
+
readonly option: Readonly<{
|
|
12
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
13
|
+
readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "row">;
|
|
14
|
+
readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
|
|
15
|
+
readonly gap: css.StyleXClassNameFor<"gap", string>;
|
|
16
|
+
readonly minHeight: css.StyleXClassNameFor<"minHeight", string>;
|
|
17
|
+
readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
|
|
18
|
+
readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
|
|
19
|
+
readonly borderBottomWidth: css.StyleXClassNameFor<"borderBottomWidth", string>;
|
|
20
|
+
readonly borderBottomStyle: css.StyleXClassNameFor<"borderBottomStyle", "solid">;
|
|
21
|
+
readonly borderBottomColor: css.StyleXClassNameFor<"borderBottomColor", string>;
|
|
22
|
+
}>;
|
|
23
|
+
readonly optionFilled: Readonly<{
|
|
24
|
+
readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
|
|
25
|
+
}>;
|
|
26
|
+
readonly label: Readonly<{
|
|
27
|
+
readonly flex: css.StyleXClassNameFor<"flex", 1>;
|
|
28
|
+
readonly color: css.StyleXClassNameFor<"color", string>;
|
|
29
|
+
readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
|
|
30
|
+
readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
|
|
31
|
+
}>;
|
|
32
|
+
readonly labelDisabled: Readonly<{
|
|
33
|
+
readonly color: css.StyleXClassNameFor<"color", string>;
|
|
34
|
+
}>;
|
|
35
|
+
readonly check: Readonly<{
|
|
36
|
+
readonly color: css.StyleXClassNameFor<"color", string>;
|
|
37
|
+
readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
|
|
38
|
+
readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
|
|
39
|
+
readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
|
|
40
|
+
}>;
|
|
41
|
+
readonly empty: Readonly<{
|
|
42
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
43
|
+
readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "column">;
|
|
44
|
+
readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
|
|
45
|
+
readonly gap: css.StyleXClassNameFor<"gap", string>;
|
|
46
|
+
readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
|
|
47
|
+
readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
|
|
48
|
+
readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
|
|
49
|
+
readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
|
|
50
|
+
readonly color: css.StyleXClassNameFor<"color", string>;
|
|
51
|
+
readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
|
|
52
|
+
readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
|
|
53
|
+
readonly textAlign: css.StyleXClassNameFor<"textAlign", "center">;
|
|
54
|
+
}>;
|
|
55
|
+
readonly search: Readonly<{
|
|
56
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
57
|
+
readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "row">;
|
|
58
|
+
readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
|
|
59
|
+
readonly gap: css.StyleXClassNameFor<"gap", string>;
|
|
60
|
+
readonly minHeight: css.StyleXClassNameFor<"minHeight", string>;
|
|
61
|
+
readonly marginLeft: css.StyleXClassNameFor<"marginLeft", string>;
|
|
62
|
+
readonly marginRight: css.StyleXClassNameFor<"marginRight", string>;
|
|
63
|
+
readonly marginBottom: css.StyleXClassNameFor<"marginBottom", string>;
|
|
64
|
+
readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
|
|
65
|
+
readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
|
|
66
|
+
readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
|
|
67
|
+
readonly borderWidth: css.StyleXClassNameFor<"borderWidth", string>;
|
|
68
|
+
readonly borderStyle: css.StyleXClassNameFor<"borderStyle", "solid">;
|
|
69
|
+
readonly borderColor: css.StyleXClassNameFor<"borderColor", string>;
|
|
70
|
+
readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
|
|
71
|
+
}>;
|
|
72
|
+
readonly searchInput: Readonly<{
|
|
73
|
+
readonly flex: css.StyleXClassNameFor<"flex", 1>;
|
|
74
|
+
readonly color: css.StyleXClassNameFor<"color", string>;
|
|
75
|
+
readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
|
|
76
|
+
readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
|
|
77
|
+
readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", "transparent">;
|
|
78
|
+
readonly borderWidth: css.StyleXClassNameFor<"borderWidth", 0>;
|
|
79
|
+
readonly '::placeholder': css.StyleXClassNameFor<"::placeholder", {
|
|
80
|
+
readonly color: css.StyleXVar<string>;
|
|
81
|
+
}>;
|
|
82
|
+
}>;
|
|
83
|
+
}>;
|
|
84
|
+
//# sourceMappingURL=native.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.css.d.ts","sourceRoot":"","sources":["../../../src/components/Listbox/native.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAOpC;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+EtB,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;IAChF,OAAO,CAAC,EAAE,kBAAkB,CAAA;IAC5B,uHAAuH;IACvH,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAC7B;AAED,iBAAS,OAAO,CAAC,EACf,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,OAAmB,EACnB,IAAgB,EAChB,GAAG,GACJ,EAAE,YAAY,2CAiDd;AAGD,UAAU,UAAU;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CACxB;AAKD,iBAAS,KAAK,CAAC,EAAC,QAAQ,EAAE,KAAe,EAAC,EAAE,UAAU,sCAkDrD;AAGD,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAC,EAAE,SAAS,2CA6B3C;AAGD,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,QAAQ,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAC,EAAE,aAAa,
|
|
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,EAAoC,KAAK,UAAU,EAAC,MAAM,uBAAuB,CAAA;AACxF,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;IAChF,OAAO,CAAC,EAAE,kBAAkB,CAAA;IAC5B,uHAAuH;IACvH,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAC7B;AAED,iBAAS,OAAO,CAAC,EACf,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,OAAmB,EACnB,IAAgB,EAChB,GAAG,GACJ,EAAE,YAAY,2CAiDd;AAGD,UAAU,UAAU;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CACxB;AAKD,iBAAS,KAAK,CAAC,EAAC,QAAQ,EAAE,KAAe,EAAC,EAAE,UAAU,sCAkDrD;AAGD,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAC,EAAE,SAAS,2CA6B3C;AAGD,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,QAAQ,CAAC,EAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAC,EAAE,aAAa,2CA4B5D;AAMD,iBAAS,SAAS,4CAEjB;AAED,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"}
|
|
@@ -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"}
|
|
@@ -21,9 +21,16 @@ declare function Value({ placeholder }: {
|
|
|
21
21
|
declare function Icon({ children }: {
|
|
22
22
|
children?: ReactNode;
|
|
23
23
|
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
|
|
24
|
+
interface PopupProps {
|
|
25
25
|
children: ReactNode;
|
|
26
|
-
|
|
26
|
+
/** The list's accessible name; on native also the sheet's title. */
|
|
27
|
+
label?: string;
|
|
28
|
+
/** Native only: the sheet header's text button that closes it unchanged. Default: 'Cancel' */
|
|
29
|
+
cancelLabel?: string;
|
|
30
|
+
/** Shown in place of the list when there are no items. */
|
|
31
|
+
empty?: ReactNode;
|
|
32
|
+
}
|
|
33
|
+
declare function Popup({ children, label, empty }: PopupProps): import("react/jsx-runtime").JSX.Element;
|
|
27
34
|
interface ItemProps {
|
|
28
35
|
value: string;
|
|
29
36
|
children: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,SAAS,EAAsD,MAAM,OAAO,CAAA;AAYnG,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAA;AAGnD,UAAU,SAAS;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACtC,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAC,EAAE,SAAS,2CAW3F;AAGD,iBAAS,OAAO,CAAC,EACf,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,IAAgB,GACjB,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,WAAW,CAAA;CACnB,2CAsCA;AAGD,iBAAS,KAAK,CAAC,EAAC,WAAW,EAAC,EAAE;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAC,2CASnD;AAGD,iBAAS,IAAI,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAC,2CAoB/C;AAQD,UAAU,UAAU;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,8FAA8F;IAC9F,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED,iBAAS,KAAK,CAAC,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,EAAE,UAAU,2CA4DlD;AAGD,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAC,EAAE,SAAS,2CAmDpD;AAGD,iBAAS,QAAQ,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAC,2CAElD;AAED,eAAO,MAAM,MAAM;;;;;;;;CAQlB,CAAA"}
|
|
@@ -9,4 +9,15 @@ export declare const KeyboardNavigation: Story;
|
|
|
9
9
|
export declare const InsideDialog: Story;
|
|
10
10
|
/** Closed, the trigger opens on ArrowDown or ArrowUp, on the selected option (5.3). */
|
|
11
11
|
export declare const ArrowKeysOpen: Story;
|
|
12
|
+
interface LabelledArgs {
|
|
13
|
+
label: string;
|
|
14
|
+
empty: string;
|
|
15
|
+
itemCount: number;
|
|
16
|
+
onValueChange?: (value: string | null) => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Popup's label names the list (and titles the native sheet); empty replaces
|
|
20
|
+
* the list when there are no items. Set itemCount to 0 for the empty state.
|
|
21
|
+
*/
|
|
22
|
+
export declare const LabelledAndEmpty: StoryObj<LabelledArgs>;
|
|
12
23
|
//# sourceMappingURL=Select.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAKpD,QAAA,MAAM,IAAI,EAAE,IAEX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAErB,eAAO,MAAM,OAAO,EAAE,KA0BrB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAoC3B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KA0C7B,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAyBhC,CAAA;AAMD,eAAO,MAAM,YAAY,EAAE,KA0C1B,CAAA;AAED,uFAAuF;AACvF,eAAO,MAAM,aAAa,EAAE,KAgB3B,CAAA"}
|
|
1
|
+
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAKpD,QAAA,MAAM,IAAI,EAAE,IAEX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAErB,eAAO,MAAM,OAAO,EAAE,KA0BrB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAoC3B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KA0C7B,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAyBhC,CAAA;AAMD,eAAO,MAAM,YAAY,EAAE,KA0C1B,CAAA;AAED,uFAAuF;AACvF,eAAO,MAAM,aAAa,EAAE,KAgB3B,CAAA;AAID,UAAU,YAAY;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/C;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,YAAY,CAiCnD,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { css } from 'react-strict-dom';
|
|
2
|
+
/** Native Select 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 iconDown: Readonly<{
|
|
8
|
+
readonly transform: css.StyleXClassNameFor<"transform", "rotate(90deg)">;
|
|
9
|
+
}>;
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=native.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.css.d.ts","sourceRoot":"","sources":["../../../src/components/Select/native.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAEpC,oDAAoD;AACpD,eAAO,MAAM,YAAY;;;;;;;EASvB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface SelectStateOptions {
|
|
2
|
+
defaultValue?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
onValueChange?: (value: string | null) => void;
|
|
5
|
+
initialLabels?: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The Select's state both platforms share (plan N0, Decision 10): the value
|
|
9
|
+
* (controlled or not), whether it is open, and each option's label. Focus,
|
|
10
|
+
* highlight, document order and keys are the web adapter's (useSelectRoot);
|
|
11
|
+
* native presses and the sheet are Select.native's.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useSelectState({ defaultValue, value: controlledValue, onValueChange, initialLabels, }: SelectStateOptions): {
|
|
14
|
+
value: string | null;
|
|
15
|
+
setValue: (v: string | null) => void;
|
|
16
|
+
open: boolean;
|
|
17
|
+
setOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
18
|
+
labels: Record<string, string>;
|
|
19
|
+
registerLabel: (v: string, label: string) => void;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=selectState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectState.d.ts","sourceRoot":"","sources":["../../../src/components/Select/selectState.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACvC;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,YAAY,EACZ,KAAK,EAAE,eAAe,EACtB,aAAa,EACb,aAAa,GACd,EAAE,kBAAkB;;;;;;uBASmB,MAAM,SAAS,MAAM;EAK5D"}
|
|
@@ -101,5 +101,15 @@ export declare const styles: Readonly<{
|
|
|
101
101
|
readonly hidden: Readonly<{
|
|
102
102
|
readonly display: css.StyleXClassNameFor<"display", "none">;
|
|
103
103
|
}>;
|
|
104
|
+
readonly empty: Readonly<{
|
|
105
|
+
readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
|
|
106
|
+
readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
|
|
107
|
+
readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
|
|
108
|
+
readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
|
|
109
|
+
readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
|
|
110
|
+
readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
|
|
111
|
+
readonly color: css.StyleXClassNameFor<"color", string>;
|
|
112
|
+
readonly textAlign: css.StyleXClassNameFor<"textAlign", "center">;
|
|
113
|
+
}>;
|
|
104
114
|
}>;
|
|
105
115
|
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Select/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAUpC,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Select/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAUpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+HjB,CAAA"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { SelectContextValue } from './SelectContext';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare function useSelectRoot({ defaultValue, value: controlledValue, onValueChange, initialLabels, }: UseSelectRootOptions): {
|
|
2
|
+
import { SelectStateOptions } from './selectState';
|
|
3
|
+
/**
|
|
4
|
+
* The web adapter over the shared Select state: the highlighted option,
|
|
5
|
+
* document order, keys and DOM focus (the WAI-ARIA select-only combobox).
|
|
6
|
+
*/
|
|
7
|
+
export declare function useSelectRoot(options: SelectStateOptions): {
|
|
9
8
|
ctx: SelectContextValue;
|
|
10
9
|
rootRef: import('react').RefObject<HTMLDivElement | null>;
|
|
11
10
|
};
|
|
12
|
-
export {};
|
|
13
11
|
//# sourceMappingURL=useSelectRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelectRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Select/useSelectRoot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSelectRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Select/useSelectRoot.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAA;AACvD,OAAO,EAAiB,KAAK,kBAAkB,EAAC,MAAM,eAAe,CAAA;AAErE;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,kBAAkB;;;EAyKxD"}
|
|
@@ -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"}
|