@tale-ui/react 0.1.1 → 0.2.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 +7 -5
- package/_cx.d.ts +4 -0
- package/_cx.js +15 -0
- package/accordion/Accordion.styled.d.ts +14 -0
- package/accordion/Accordion.styled.js +79 -0
- package/accordion/index.d.ts +1 -1
- package/accordion/index.js +1 -1
- package/alert-dialog/AlertDialog.styled.d.ts +13 -0
- package/alert-dialog/AlertDialog.styled.js +58 -0
- package/alert-dialog/index.d.ts +1 -1
- package/alert-dialog/index.js +1 -1
- package/autocomplete/Autocomplete.styled.d.ts +11 -0
- package/autocomplete/Autocomplete.styled.js +134 -0
- package/autocomplete/index.d.ts +1 -1
- package/autocomplete/index.js +1 -1
- package/avatar/Avatar.styled.d.ts +10 -0
- package/avatar/Avatar.styled.js +42 -0
- package/avatar/index.d.ts +1 -1
- package/avatar/index.js +1 -1
- package/button/Button.styled.d.ts +10 -0
- package/button/Button.styled.js +23 -0
- package/button/index.d.ts +2 -2
- package/button/index.js +1 -1
- package/checkbox/Checkbox.styled.d.ts +3 -0
- package/checkbox/Checkbox.styled.js +31 -0
- package/checkbox/index.d.ts +1 -1
- package/checkbox/index.js +1 -1
- package/collapsible/Collapsible.styled.d.ts +4 -0
- package/collapsible/Collapsible.styled.js +41 -0
- package/collapsible/index.d.ts +1 -1
- package/collapsible/index.js +1 -1
- package/combobox/Combobox.styled.d.ts +38 -0
- package/combobox/Combobox.styled.js +115 -0
- package/combobox/index.d.ts +1 -1
- package/combobox/index.js +1 -1
- package/context-menu/ContextMenu.styled.d.ts +21 -0
- package/context-menu/ContextMenu.styled.js +111 -0
- package/context-menu/index.d.ts +1 -1
- package/context-menu/index.js +1 -1
- package/context-menu/root/ContextMenuRoot.d.ts +1 -2
- package/dialog/Dialog.styled.d.ts +34 -0
- package/dialog/Dialog.styled.js +58 -0
- package/dialog/index.d.ts +1 -1
- package/dialog/index.js +1 -1
- package/drawer/Drawer.styled.d.ts +28 -0
- package/drawer/Drawer.styled.js +71 -0
- package/drawer/index.d.ts +1 -1
- package/drawer/index.js +1 -1
- package/esm/_cx.d.ts +4 -0
- package/esm/_cx.js +9 -0
- package/esm/accordion/Accordion.styled.d.ts +14 -0
- package/esm/accordion/Accordion.styled.js +72 -0
- package/esm/accordion/index.d.ts +1 -1
- package/esm/accordion/index.js +1 -1
- package/esm/alert-dialog/AlertDialog.styled.d.ts +13 -0
- package/esm/alert-dialog/AlertDialog.styled.js +51 -0
- package/esm/alert-dialog/index.d.ts +1 -1
- package/esm/alert-dialog/index.js +1 -1
- package/esm/autocomplete/Autocomplete.styled.d.ts +11 -0
- package/esm/autocomplete/Autocomplete.styled.js +49 -0
- package/esm/autocomplete/index.d.ts +1 -1
- package/esm/autocomplete/index.js +1 -1
- package/esm/avatar/Avatar.styled.d.ts +10 -0
- package/esm/avatar/Avatar.styled.js +35 -0
- package/esm/avatar/index.d.ts +1 -1
- package/esm/avatar/index.js +1 -1
- package/esm/button/Button.styled.d.ts +10 -0
- package/esm/button/Button.styled.js +16 -0
- package/esm/button/index.d.ts +2 -2
- package/esm/button/index.js +1 -1
- package/esm/checkbox/Checkbox.styled.d.ts +3 -0
- package/esm/checkbox/Checkbox.styled.js +24 -0
- package/esm/checkbox/index.d.ts +1 -1
- package/esm/checkbox/index.js +1 -1
- package/esm/collapsible/Collapsible.styled.d.ts +4 -0
- package/esm/collapsible/Collapsible.styled.js +34 -0
- package/esm/collapsible/index.d.ts +1 -1
- package/esm/collapsible/index.js +1 -1
- package/esm/combobox/Combobox.styled.d.ts +38 -0
- package/esm/combobox/Combobox.styled.js +102 -0
- package/esm/combobox/index.d.ts +1 -1
- package/esm/combobox/index.js +1 -1
- package/esm/context-menu/ContextMenu.styled.d.ts +21 -0
- package/esm/context-menu/ContextMenu.styled.js +104 -0
- package/esm/context-menu/index.d.ts +1 -1
- package/esm/context-menu/index.js +1 -1
- package/esm/context-menu/root/ContextMenuRoot.d.ts +1 -2
- package/esm/dialog/Dialog.styled.d.ts +34 -0
- package/esm/dialog/Dialog.styled.js +51 -0
- package/esm/dialog/index.d.ts +1 -1
- package/esm/dialog/index.js +1 -1
- package/esm/drawer/Drawer.styled.d.ts +28 -0
- package/esm/drawer/Drawer.styled.js +64 -0
- package/esm/drawer/index.d.ts +1 -1
- package/esm/drawer/index.js +1 -1
- package/esm/field/Field.styled.d.ts +14 -0
- package/esm/field/Field.styled.js +45 -0
- package/esm/field/index.d.ts +1 -1
- package/esm/field/index.js +1 -1
- package/esm/fieldset/Fieldset.styled.d.ts +3 -0
- package/esm/fieldset/Fieldset.styled.js +24 -0
- package/esm/fieldset/index.d.ts +1 -1
- package/esm/fieldset/index.js +1 -1
- package/esm/form/Form.styled.d.ts +12 -0
- package/esm/form/Form.styled.js +14 -0
- package/esm/form/index.d.ts +2 -2
- package/esm/form/index.js +1 -1
- package/esm/index.d.ts +0 -1
- package/esm/index.js +1 -2
- package/esm/input/Input.styled.d.ts +8 -0
- package/esm/input/Input.styled.js +15 -0
- package/esm/input/index.d.ts +2 -2
- package/esm/input/index.js +1 -1
- package/esm/menu/Menu.styled.d.ts +57 -0
- package/esm/menu/Menu.styled.js +106 -0
- package/esm/menu/index.d.ts +1 -1
- package/esm/menu/index.js +1 -1
- package/esm/menubar/Menubar.styled.d.ts +7 -0
- package/esm/menubar/Menubar.styled.js +14 -0
- package/esm/menubar/index.d.ts +1 -1
- package/esm/menubar/index.js +1 -1
- package/esm/meter/Meter.styled.d.ts +6 -0
- package/esm/meter/Meter.styled.js +45 -0
- package/esm/meter/index.d.ts +1 -1
- package/esm/meter/index.js +1 -1
- package/esm/navigation-menu/NavigationMenu.styled.d.ts +23 -0
- package/esm/navigation-menu/NavigationMenu.styled.js +89 -0
- package/esm/navigation-menu/index.d.ts +1 -1
- package/esm/navigation-menu/index.js +1 -1
- package/esm/number-field/NumberField.styled.d.ts +16 -0
- package/esm/number-field/NumberField.styled.js +59 -0
- package/esm/number-field/index.d.ts +1 -1
- package/esm/number-field/index.js +1 -1
- package/esm/popover/Popover.styled.d.ts +42 -0
- package/esm/popover/Popover.styled.js +62 -0
- package/esm/popover/index.d.ts +1 -1
- package/esm/popover/index.js +1 -1
- package/esm/preview-card/PreviewCard.styled.d.ts +39 -0
- package/esm/preview-card/PreviewCard.styled.js +32 -0
- package/esm/preview-card/index.d.ts +1 -1
- package/esm/preview-card/index.js +1 -1
- package/esm/progress/Progress.styled.d.ts +8 -0
- package/esm/progress/Progress.styled.js +36 -0
- package/esm/progress/index.d.ts +1 -1
- package/esm/progress/index.js +1 -1
- package/esm/radio/Radio.styled.d.ts +11 -0
- package/esm/radio/Radio.styled.js +27 -0
- package/esm/radio/index.d.ts +1 -1
- package/esm/radio/index.js +1 -1
- package/esm/scroll-area/ScrollArea.styled.d.ts +7 -0
- package/esm/scroll-area/ScrollArea.styled.js +55 -0
- package/esm/scroll-area/index.d.ts +1 -1
- package/esm/scroll-area/index.js +1 -1
- package/esm/select/Select.styled.d.ts +33 -0
- package/esm/select/Select.styled.js +118 -0
- package/esm/select/index.d.ts +1 -1
- package/esm/select/index.js +1 -1
- package/esm/separator/Separator.styled.d.ts +7 -0
- package/esm/separator/Separator.styled.js +16 -0
- package/esm/separator/index.d.ts +2 -2
- package/esm/separator/index.js +1 -1
- package/esm/slider/Slider.styled.d.ts +16 -0
- package/esm/slider/Slider.styled.js +55 -0
- package/esm/slider/index.d.ts +1 -1
- package/esm/slider/index.js +1 -1
- package/esm/switch/Switch.styled.d.ts +3 -0
- package/esm/switch/Switch.styled.js +24 -0
- package/esm/switch/index.d.ts +1 -1
- package/esm/switch/index.js +1 -1
- package/esm/tabs/Tabs.styled.d.ts +14 -0
- package/esm/tabs/Tabs.styled.js +54 -0
- package/esm/tabs/index.d.ts +1 -1
- package/esm/tabs/index.js +1 -1
- package/esm/toast/Toast.styled.d.ts +21 -0
- package/esm/toast/Toast.styled.js +80 -0
- package/esm/toast/index.d.ts +1 -1
- package/esm/toast/index.js +1 -1
- package/esm/toggle/Toggle.styled.d.ts +10 -0
- package/esm/toggle/Toggle.styled.js +26 -0
- package/esm/toggle/index.d.ts +2 -2
- package/esm/toggle/index.js +1 -1
- package/esm/toolbar/Toolbar.styled.d.ts +7 -0
- package/esm/toolbar/Toolbar.styled.js +64 -0
- package/esm/toolbar/index.d.ts +1 -1
- package/esm/toolbar/index.js +1 -1
- package/esm/tooltip/Tooltip.styled.d.ts +39 -0
- package/esm/tooltip/Tooltip.styled.js +32 -0
- package/esm/tooltip/index.d.ts +1 -1
- package/esm/tooltip/index.js +1 -1
- package/field/Field.styled.d.ts +14 -0
- package/field/Field.styled.js +70 -0
- package/field/index.d.ts +1 -1
- package/field/index.js +1 -1
- package/fieldset/Fieldset.styled.d.ts +3 -0
- package/fieldset/Fieldset.styled.js +31 -0
- package/fieldset/index.d.ts +1 -1
- package/fieldset/index.js +1 -1
- package/form/Form.styled.d.ts +12 -0
- package/form/Form.styled.js +21 -0
- package/form/index.d.ts +2 -2
- package/form/index.js +1 -1
- package/index.d.ts +0 -1
- package/index.js +1 -12
- package/input/Input.styled.d.ts +8 -0
- package/input/Input.styled.js +22 -0
- package/input/index.d.ts +2 -2
- package/input/index.js +1 -1
- package/menu/Menu.styled.d.ts +57 -0
- package/menu/Menu.styled.js +120 -0
- package/menu/index.d.ts +1 -1
- package/menu/index.js +1 -1
- package/menubar/Menubar.styled.d.ts +7 -0
- package/menubar/Menubar.styled.js +21 -0
- package/menubar/index.d.ts +1 -1
- package/menubar/index.js +1 -1
- package/meter/Meter.styled.d.ts +6 -0
- package/meter/Meter.styled.js +52 -0
- package/meter/index.d.ts +1 -1
- package/meter/index.js +1 -1
- package/navigation-menu/NavigationMenu.styled.d.ts +23 -0
- package/navigation-menu/NavigationMenu.styled.js +96 -0
- package/navigation-menu/index.d.ts +1 -1
- package/navigation-menu/index.js +1 -1
- package/number-field/NumberField.styled.d.ts +16 -0
- package/number-field/NumberField.styled.js +77 -0
- package/number-field/index.d.ts +1 -1
- package/number-field/index.js +1 -1
- package/package.json +115 -112
- package/popover/Popover.styled.d.ts +42 -0
- package/popover/Popover.styled.js +69 -0
- package/popover/index.d.ts +1 -1
- package/popover/index.js +1 -1
- package/preview-card/PreviewCard.styled.d.ts +39 -0
- package/preview-card/PreviewCard.styled.js +39 -0
- package/preview-card/index.d.ts +1 -1
- package/preview-card/index.js +1 -1
- package/progress/Progress.styled.d.ts +8 -0
- package/progress/Progress.styled.js +49 -0
- package/progress/index.d.ts +1 -1
- package/progress/index.js +1 -1
- package/radio/Radio.styled.d.ts +11 -0
- package/radio/Radio.styled.js +34 -0
- package/radio/index.d.ts +1 -1
- package/radio/index.js +1 -1
- package/scroll-area/ScrollArea.styled.d.ts +7 -0
- package/scroll-area/ScrollArea.styled.js +67 -0
- package/scroll-area/index.d.ts +1 -1
- package/scroll-area/index.js +1 -1
- package/select/Select.styled.d.ts +33 -0
- package/select/Select.styled.js +125 -0
- package/select/index.d.ts +1 -1
- package/select/index.js +1 -1
- package/separator/Separator.styled.d.ts +7 -0
- package/separator/Separator.styled.js +23 -0
- package/separator/index.d.ts +2 -2
- package/separator/index.js +1 -1
- package/slider/Slider.styled.d.ts +16 -0
- package/slider/Slider.styled.js +67 -0
- package/slider/index.d.ts +1 -1
- package/slider/index.js +1 -1
- package/switch/Switch.styled.d.ts +3 -0
- package/switch/Switch.styled.js +31 -0
- package/switch/index.d.ts +1 -1
- package/switch/index.js +1 -1
- package/tabs/Tabs.styled.d.ts +14 -0
- package/tabs/Tabs.styled.js +61 -0
- package/tabs/index.d.ts +1 -1
- package/tabs/index.js +1 -1
- package/toast/Toast.styled.d.ts +21 -0
- package/toast/Toast.styled.js +87 -0
- package/toast/index.d.ts +1 -1
- package/toast/index.js +1 -1
- package/toggle/Toggle.styled.d.ts +10 -0
- package/toggle/Toggle.styled.js +33 -0
- package/toggle/index.d.ts +2 -2
- package/toggle/index.js +7 -1
- package/toolbar/Toolbar.styled.d.ts +7 -0
- package/toolbar/Toolbar.styled.js +71 -0
- package/toolbar/index.d.ts +1 -1
- package/toolbar/index.js +1 -1
- package/tooltip/Tooltip.styled.d.ts +39 -0
- package/tooltip/Tooltip.styled.js +39 -0
- package/tooltip/index.d.ts +1 -1
- package/tooltip/index.js +1 -1
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import { cx } from "../_cx.js";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export const Root = H.Root;
|
|
6
|
+
export const Trigger = H.Trigger;
|
|
7
|
+
export const Portal = H.Portal;
|
|
8
|
+
export const Backdrop = H.Backdrop;
|
|
9
|
+
export const Positioner = H.Positioner;
|
|
10
|
+
export const Arrow = H.Arrow;
|
|
11
|
+
export const Group = H.Group;
|
|
12
|
+
export const RadioGroup = H.RadioGroup;
|
|
13
|
+
export const SubmenuRoot = H.SubmenuRoot;
|
|
14
|
+
export const Separator = H.Separator;
|
|
15
|
+
export const Popup = /*#__PURE__*/React.forwardRef(({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}, ref) => /*#__PURE__*/_jsx(H.Popup, {
|
|
19
|
+
className: cx('tale-menu__popup', className),
|
|
20
|
+
ref: ref,
|
|
21
|
+
...props
|
|
22
|
+
}));
|
|
23
|
+
if (process.env.NODE_ENV !== "production") Popup.displayName = "Popup";
|
|
24
|
+
Popup.displayName = 'ContextMenu.Popup';
|
|
25
|
+
export const Item = /*#__PURE__*/React.forwardRef(({
|
|
26
|
+
className,
|
|
27
|
+
...props
|
|
28
|
+
}, ref) => /*#__PURE__*/_jsx(H.Item, {
|
|
29
|
+
className: cx('tale-menu__item', className),
|
|
30
|
+
ref: ref,
|
|
31
|
+
...props
|
|
32
|
+
}));
|
|
33
|
+
if (process.env.NODE_ENV !== "production") Item.displayName = "Item";
|
|
34
|
+
Item.displayName = 'ContextMenu.Item';
|
|
35
|
+
export const CheckboxItem = /*#__PURE__*/React.forwardRef(({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}, ref) => /*#__PURE__*/_jsx(H.CheckboxItem, {
|
|
39
|
+
className: cx('tale-menu__checkbox-item', className),
|
|
40
|
+
ref: ref,
|
|
41
|
+
...props
|
|
42
|
+
}));
|
|
43
|
+
if (process.env.NODE_ENV !== "production") CheckboxItem.displayName = "CheckboxItem";
|
|
44
|
+
CheckboxItem.displayName = 'ContextMenu.CheckboxItem';
|
|
45
|
+
export const CheckboxItemIndicator = /*#__PURE__*/React.forwardRef(({
|
|
46
|
+
className,
|
|
47
|
+
...props
|
|
48
|
+
}, ref) => /*#__PURE__*/_jsx(H.CheckboxItemIndicator, {
|
|
49
|
+
className: cx('tale-menu__item-indicator', className),
|
|
50
|
+
ref: ref,
|
|
51
|
+
...props
|
|
52
|
+
}));
|
|
53
|
+
if (process.env.NODE_ENV !== "production") CheckboxItemIndicator.displayName = "CheckboxItemIndicator";
|
|
54
|
+
CheckboxItemIndicator.displayName = 'ContextMenu.CheckboxItemIndicator';
|
|
55
|
+
export const RadioItem = /*#__PURE__*/React.forwardRef(({
|
|
56
|
+
className,
|
|
57
|
+
...props
|
|
58
|
+
}, ref) => /*#__PURE__*/_jsx(H.RadioItem, {
|
|
59
|
+
className: cx('tale-menu__radio-item', className),
|
|
60
|
+
ref: ref,
|
|
61
|
+
...props
|
|
62
|
+
}));
|
|
63
|
+
if (process.env.NODE_ENV !== "production") RadioItem.displayName = "RadioItem";
|
|
64
|
+
RadioItem.displayName = 'ContextMenu.RadioItem';
|
|
65
|
+
export const RadioItemIndicator = /*#__PURE__*/React.forwardRef(({
|
|
66
|
+
className,
|
|
67
|
+
...props
|
|
68
|
+
}, ref) => /*#__PURE__*/_jsx(H.RadioItemIndicator, {
|
|
69
|
+
className: cx('tale-menu__item-indicator', className),
|
|
70
|
+
ref: ref,
|
|
71
|
+
...props
|
|
72
|
+
}));
|
|
73
|
+
if (process.env.NODE_ENV !== "production") RadioItemIndicator.displayName = "RadioItemIndicator";
|
|
74
|
+
RadioItemIndicator.displayName = 'ContextMenu.RadioItemIndicator';
|
|
75
|
+
export const LinkItem = /*#__PURE__*/React.forwardRef(({
|
|
76
|
+
className,
|
|
77
|
+
...props
|
|
78
|
+
}, ref) => /*#__PURE__*/_jsx(H.LinkItem, {
|
|
79
|
+
className: cx('tale-menu__link-item', className),
|
|
80
|
+
ref: ref,
|
|
81
|
+
...props
|
|
82
|
+
}));
|
|
83
|
+
if (process.env.NODE_ENV !== "production") LinkItem.displayName = "LinkItem";
|
|
84
|
+
LinkItem.displayName = 'ContextMenu.LinkItem';
|
|
85
|
+
export const SubmenuTrigger = /*#__PURE__*/React.forwardRef(({
|
|
86
|
+
className,
|
|
87
|
+
...props
|
|
88
|
+
}, ref) => /*#__PURE__*/_jsx(H.SubmenuTrigger, {
|
|
89
|
+
className: cx('tale-menu__submenu-trigger', className),
|
|
90
|
+
ref: ref,
|
|
91
|
+
...props
|
|
92
|
+
}));
|
|
93
|
+
if (process.env.NODE_ENV !== "production") SubmenuTrigger.displayName = "SubmenuTrigger";
|
|
94
|
+
SubmenuTrigger.displayName = 'ContextMenu.SubmenuTrigger';
|
|
95
|
+
export const GroupLabel = /*#__PURE__*/React.forwardRef(({
|
|
96
|
+
className,
|
|
97
|
+
...props
|
|
98
|
+
}, ref) => /*#__PURE__*/_jsx(H.GroupLabel, {
|
|
99
|
+
className: cx('tale-menu__group-label', className),
|
|
100
|
+
ref: ref,
|
|
101
|
+
...props
|
|
102
|
+
}));
|
|
103
|
+
if (process.env.NODE_ENV !== "production") GroupLabel.displayName = "GroupLabel";
|
|
104
|
+
GroupLabel.displayName = 'ContextMenu.GroupLabel';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * as ContextMenu from "./
|
|
1
|
+
export * as ContextMenu from "./ContextMenu.styled.js";
|
|
2
2
|
export type * from "./root/ContextMenuRoot.js";
|
|
3
3
|
export type * from "./trigger/ContextMenuTrigger.js";
|
|
4
4
|
export type { MenuBackdropProps as ContextMenuBackdropProps, MenuBackdropState as ContextMenuBackdropState } from "../menu/backdrop/MenuBackdrop.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as ContextMenu from "./
|
|
1
|
+
export * as ContextMenu from "./ContextMenu.styled.js";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Menu } from "../../menu/index.js";
|
|
2
1
|
import type { TaleUIChangeEventDetails } from "../../types/index.js";
|
|
3
2
|
import type { MenuRoot } from "../../menu/root/MenuRoot.js";
|
|
4
3
|
/**
|
|
@@ -9,7 +8,7 @@ import type { MenuRoot } from "../../menu/root/MenuRoot.js";
|
|
|
9
8
|
*/
|
|
10
9
|
export declare function ContextMenuRoot(props: ContextMenuRoot.Props): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export interface ContextMenuRootState {}
|
|
12
|
-
export interface ContextMenuRootProps extends Omit<
|
|
11
|
+
export interface ContextMenuRootProps extends Omit<MenuRoot.Props, 'modal' | 'openOnHover' | 'delay' | 'closeDelay' | 'onOpenChange'> {
|
|
13
12
|
/**
|
|
14
13
|
* Event handler called when the menu is opened or closed.
|
|
15
14
|
*/
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import type { DialogRootProps, DialogRootActions, DialogRootChangeEventReason, DialogRootChangeEventDetails } from "./root/DialogRoot.js";
|
|
4
|
+
import type { DialogPopupProps, DialogPopupState } from "./popup/DialogPopup.js";
|
|
5
|
+
import type { DialogPortalProps } from "./portal/DialogPortal.js";
|
|
6
|
+
import type { DialogTriggerProps, DialogTriggerState } from "./trigger/DialogTrigger.js";
|
|
7
|
+
export declare const Root: typeof H.Root;
|
|
8
|
+
export declare namespace Root {
|
|
9
|
+
type Props<Payload = unknown> = DialogRootProps<Payload>;
|
|
10
|
+
type Actions = DialogRootActions;
|
|
11
|
+
type ChangeEventReason = DialogRootChangeEventReason;
|
|
12
|
+
type ChangeEventDetails = DialogRootChangeEventDetails;
|
|
13
|
+
}
|
|
14
|
+
export declare const Portal: React.ForwardRefExoticComponent<Omit<DialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export declare namespace Portal {
|
|
16
|
+
type Props = DialogPortalProps;
|
|
17
|
+
}
|
|
18
|
+
export declare const Viewport: React.ForwardRefExoticComponent<Omit<import("./index.js").DialogViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export declare const Trigger: H.Trigger;
|
|
20
|
+
export declare namespace Trigger {
|
|
21
|
+
type Props<Payload = unknown> = DialogTriggerProps<Payload>;
|
|
22
|
+
type State = DialogTriggerState;
|
|
23
|
+
}
|
|
24
|
+
export declare const createHandle: typeof H.createHandle;
|
|
25
|
+
export declare const Handle: typeof H.Handle;
|
|
26
|
+
export declare const Backdrop: typeof H.Backdrop;
|
|
27
|
+
export declare const Popup: typeof H.Popup;
|
|
28
|
+
export declare namespace Popup {
|
|
29
|
+
type Props = DialogPopupProps;
|
|
30
|
+
type State = DialogPopupState;
|
|
31
|
+
}
|
|
32
|
+
export declare const Title: typeof H.Title;
|
|
33
|
+
export declare const Description: typeof H.Description;
|
|
34
|
+
export declare const Close: React.ForwardRefExoticComponent<Omit<import("./index.js").DialogCloseProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import { cx } from "../_cx.js";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export const Root = H.Root;
|
|
6
|
+
export const Portal = H.Portal;
|
|
7
|
+
export const Viewport = H.Viewport;
|
|
8
|
+
export const Trigger = H.Trigger;
|
|
9
|
+
export const createHandle = H.createHandle;
|
|
10
|
+
export const Handle = H.Handle;
|
|
11
|
+
const StyledBackdrop = /*#__PURE__*/React.forwardRef(({
|
|
12
|
+
className,
|
|
13
|
+
...props
|
|
14
|
+
}, ref) => /*#__PURE__*/_jsx(H.Backdrop, {
|
|
15
|
+
className: cx('tale-dialog__backdrop', className),
|
|
16
|
+
ref: ref,
|
|
17
|
+
...props
|
|
18
|
+
}));
|
|
19
|
+
StyledBackdrop.displayName = 'Dialog.Backdrop';
|
|
20
|
+
export const Backdrop = StyledBackdrop;
|
|
21
|
+
const StyledPopup = /*#__PURE__*/React.forwardRef(({
|
|
22
|
+
className,
|
|
23
|
+
...props
|
|
24
|
+
}, ref) => /*#__PURE__*/_jsx(H.Popup, {
|
|
25
|
+
className: cx('tale-dialog__popup', className),
|
|
26
|
+
ref: ref,
|
|
27
|
+
...props
|
|
28
|
+
}));
|
|
29
|
+
StyledPopup.displayName = 'Dialog.Popup';
|
|
30
|
+
export const Popup = StyledPopup;
|
|
31
|
+
const StyledTitle = /*#__PURE__*/React.forwardRef(({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}, ref) => /*#__PURE__*/_jsx(H.Title, {
|
|
35
|
+
className: cx('tale-dialog__title', className),
|
|
36
|
+
ref: ref,
|
|
37
|
+
...props
|
|
38
|
+
}));
|
|
39
|
+
StyledTitle.displayName = 'Dialog.Title';
|
|
40
|
+
export const Title = StyledTitle;
|
|
41
|
+
const StyledDescription = /*#__PURE__*/React.forwardRef(({
|
|
42
|
+
className,
|
|
43
|
+
...props
|
|
44
|
+
}, ref) => /*#__PURE__*/_jsx(H.Description, {
|
|
45
|
+
className: cx('tale-dialog__description', className),
|
|
46
|
+
ref: ref,
|
|
47
|
+
...props
|
|
48
|
+
}));
|
|
49
|
+
StyledDescription.displayName = 'Dialog.Description';
|
|
50
|
+
export const Description = StyledDescription;
|
|
51
|
+
export const Close = H.Close;
|
package/esm/dialog/index.d.ts
CHANGED
package/esm/dialog/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Dialog from "./
|
|
1
|
+
export * as Dialog from "./Dialog.styled.js";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import type { DrawerRootProps, DrawerRootActions, DrawerRootChangeEventReason, DrawerRootChangeEventDetails, DrawerRootSnapPointChangeEventReason, DrawerRootSnapPointChangeEventDetails } from "./root/DrawerRoot.js";
|
|
4
|
+
import type { DrawerSnapPoint } from "./root/DrawerRootContext.js";
|
|
5
|
+
export declare const Root: typeof H.Root;
|
|
6
|
+
export declare namespace Root {
|
|
7
|
+
type Props<Payload = unknown> = DrawerRootProps<Payload>;
|
|
8
|
+
type Actions = DrawerRootActions;
|
|
9
|
+
type ChangeEventReason = DrawerRootChangeEventReason;
|
|
10
|
+
type ChangeEventDetails = DrawerRootChangeEventDetails;
|
|
11
|
+
type SnapPointChangeEventReason = DrawerRootSnapPointChangeEventReason;
|
|
12
|
+
type SnapPointChangeEventDetails = DrawerRootSnapPointChangeEventDetails;
|
|
13
|
+
type SnapPoint = DrawerSnapPoint;
|
|
14
|
+
}
|
|
15
|
+
export declare const Portal: H.Portal;
|
|
16
|
+
export declare const Viewport: React.ForwardRefExoticComponent<Omit<import("./index.js").DrawerViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export declare const Trigger: H.Trigger;
|
|
18
|
+
export declare const Provider: typeof H.Provider;
|
|
19
|
+
export declare const Indent: React.ForwardRefExoticComponent<Omit<import("./index.js").DrawerIndentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export declare const IndentBackground: React.ForwardRefExoticComponent<Omit<import("./index.js").DrawerIndentBackgroundProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export declare const createHandle: typeof H.createHandle;
|
|
22
|
+
export declare const Handle: typeof H.Handle;
|
|
23
|
+
export declare const Backdrop: typeof H.Backdrop;
|
|
24
|
+
export declare const Popup: typeof H.Popup;
|
|
25
|
+
export declare const Content: typeof H.Content;
|
|
26
|
+
export declare const Title: typeof H.Title;
|
|
27
|
+
export declare const Description: typeof H.Description;
|
|
28
|
+
export declare const Close: H.Close;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import { cx } from "../_cx.js";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export const Root = H.Root;
|
|
6
|
+
export const Portal = H.Portal;
|
|
7
|
+
export const Viewport = H.Viewport;
|
|
8
|
+
export const Trigger = H.Trigger;
|
|
9
|
+
export const Provider = H.Provider;
|
|
10
|
+
export const Indent = H.Indent;
|
|
11
|
+
export const IndentBackground = H.IndentBackground;
|
|
12
|
+
export const createHandle = H.createHandle;
|
|
13
|
+
export const Handle = H.Handle;
|
|
14
|
+
const StyledBackdrop = /*#__PURE__*/React.forwardRef(({
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
}, ref) => /*#__PURE__*/_jsx(H.Backdrop, {
|
|
18
|
+
className: cx('tale-drawer__backdrop', className),
|
|
19
|
+
ref: ref,
|
|
20
|
+
...props
|
|
21
|
+
}));
|
|
22
|
+
StyledBackdrop.displayName = 'Drawer.Backdrop';
|
|
23
|
+
export const Backdrop = StyledBackdrop;
|
|
24
|
+
const StyledPopup = /*#__PURE__*/React.forwardRef(({
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}, ref) => /*#__PURE__*/_jsx(H.Popup, {
|
|
28
|
+
className: cx('tale-drawer__popup', className),
|
|
29
|
+
ref: ref,
|
|
30
|
+
...props
|
|
31
|
+
}));
|
|
32
|
+
StyledPopup.displayName = 'Drawer.Popup';
|
|
33
|
+
export const Popup = StyledPopup;
|
|
34
|
+
const StyledContent = /*#__PURE__*/React.forwardRef(({
|
|
35
|
+
className,
|
|
36
|
+
...props
|
|
37
|
+
}, ref) => /*#__PURE__*/_jsx(H.Content, {
|
|
38
|
+
className: cx('tale-drawer__content', className),
|
|
39
|
+
ref: ref,
|
|
40
|
+
...props
|
|
41
|
+
}));
|
|
42
|
+
StyledContent.displayName = 'Drawer.Content';
|
|
43
|
+
export const Content = StyledContent;
|
|
44
|
+
const StyledTitle = /*#__PURE__*/React.forwardRef(({
|
|
45
|
+
className,
|
|
46
|
+
...props
|
|
47
|
+
}, ref) => /*#__PURE__*/_jsx(H.Title, {
|
|
48
|
+
className: cx('tale-drawer__title', className),
|
|
49
|
+
ref: ref,
|
|
50
|
+
...props
|
|
51
|
+
}));
|
|
52
|
+
StyledTitle.displayName = 'Drawer.Title';
|
|
53
|
+
export const Title = StyledTitle;
|
|
54
|
+
const StyledDescription = /*#__PURE__*/React.forwardRef(({
|
|
55
|
+
className,
|
|
56
|
+
...props
|
|
57
|
+
}, ref) => /*#__PURE__*/_jsx(H.Description, {
|
|
58
|
+
className: cx('tale-drawer__description', className),
|
|
59
|
+
ref: ref,
|
|
60
|
+
...props
|
|
61
|
+
}));
|
|
62
|
+
StyledDescription.displayName = 'Drawer.Description';
|
|
63
|
+
export const Description = StyledDescription;
|
|
64
|
+
export const Close = H.Close;
|
package/esm/drawer/index.d.ts
CHANGED
package/esm/drawer/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as DrawerPreview from "./
|
|
1
|
+
export * as DrawerPreview from "./Drawer.styled.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import type { FieldRootState, FieldRootProps, FieldRootActions } from "./root/FieldRoot.js";
|
|
4
|
+
export declare const Root: typeof H.Root;
|
|
5
|
+
export declare namespace Root {
|
|
6
|
+
type State = FieldRootState;
|
|
7
|
+
type Props = FieldRootProps;
|
|
8
|
+
type Actions = FieldRootActions;
|
|
9
|
+
}
|
|
10
|
+
export declare const Label: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").FieldLabelProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
11
|
+
export declare const Description: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").FieldDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
12
|
+
export declare const Error: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").FieldErrorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export { Control, Validity, Item } from "./index.parts.js";
|
|
14
|
+
export type { ValidityData } from "./index.parts.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import { cx } from "../_cx.js";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
const StyledRoot = /*#__PURE__*/React.forwardRef(({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}, ref) => /*#__PURE__*/_jsx(H.Root, {
|
|
9
|
+
className: cx('tale-field', className),
|
|
10
|
+
ref: ref,
|
|
11
|
+
...props
|
|
12
|
+
}));
|
|
13
|
+
StyledRoot.displayName = 'Field.Root';
|
|
14
|
+
export const Root = StyledRoot;
|
|
15
|
+
export const Label = /*#__PURE__*/React.forwardRef(({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}, ref) => /*#__PURE__*/_jsx(H.Label, {
|
|
19
|
+
className: cx('tale-field__label', className),
|
|
20
|
+
ref: ref,
|
|
21
|
+
...props
|
|
22
|
+
}));
|
|
23
|
+
if (process.env.NODE_ENV !== "production") Label.displayName = "Label";
|
|
24
|
+
Label.displayName = 'Field.Label';
|
|
25
|
+
export const Description = /*#__PURE__*/React.forwardRef(({
|
|
26
|
+
className,
|
|
27
|
+
...props
|
|
28
|
+
}, ref) => /*#__PURE__*/_jsx(H.Description, {
|
|
29
|
+
className: cx('tale-field__description', className),
|
|
30
|
+
ref: ref,
|
|
31
|
+
...props
|
|
32
|
+
}));
|
|
33
|
+
if (process.env.NODE_ENV !== "production") Description.displayName = "Description";
|
|
34
|
+
Description.displayName = 'Field.Description';
|
|
35
|
+
export const Error = /*#__PURE__*/React.forwardRef(({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}, ref) => /*#__PURE__*/_jsx(H.Error, {
|
|
39
|
+
className: cx('tale-field__error', className),
|
|
40
|
+
ref: ref,
|
|
41
|
+
...props
|
|
42
|
+
}));
|
|
43
|
+
if (process.env.NODE_ENV !== "production") Error.displayName = "Error";
|
|
44
|
+
Error.displayName = 'Field.Error';
|
|
45
|
+
export { Control, Validity, Item } from "./index.parts.js";
|
package/esm/field/index.d.ts
CHANGED
package/esm/field/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Field from "./
|
|
1
|
+
export * as Field from "./Field.styled.js";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").FieldsetRootProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
3
|
+
export declare const Legend: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").FieldsetLegendProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import { cx } from "../_cx.js";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export const Root = /*#__PURE__*/React.forwardRef(({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}, ref) => /*#__PURE__*/_jsx(H.Root, {
|
|
9
|
+
className: cx('tale-fieldset', className),
|
|
10
|
+
ref: ref,
|
|
11
|
+
...props
|
|
12
|
+
}));
|
|
13
|
+
if (process.env.NODE_ENV !== "production") Root.displayName = "Root";
|
|
14
|
+
Root.displayName = 'Fieldset.Root';
|
|
15
|
+
export const Legend = /*#__PURE__*/React.forwardRef(({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}, ref) => /*#__PURE__*/_jsx(H.Legend, {
|
|
19
|
+
className: cx('tale-fieldset__legend', className),
|
|
20
|
+
ref: ref,
|
|
21
|
+
...props
|
|
22
|
+
}));
|
|
23
|
+
if (process.env.NODE_ENV !== "production") Legend.displayName = "Legend";
|
|
24
|
+
Legend.displayName = 'Fieldset.Legend';
|
package/esm/fieldset/index.d.ts
CHANGED
package/esm/fieldset/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Fieldset from "./
|
|
1
|
+
export * as Fieldset from "./Fieldset.styled.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Form as H } from "./Form.js";
|
|
2
|
+
import type { FormProps, FormState, FormActions, FormValidationMode, FormSubmitEventReason, FormSubmitEventDetails } from "./Form.js";
|
|
3
|
+
export declare const Form: typeof H;
|
|
4
|
+
export declare namespace Form {
|
|
5
|
+
type Props<FormValues extends Record<string, any> = Record<string, any>> = FormProps<FormValues>;
|
|
6
|
+
type State = FormState;
|
|
7
|
+
type Actions = FormActions;
|
|
8
|
+
type ValidationMode = FormValidationMode;
|
|
9
|
+
type SubmitEventReason = FormSubmitEventReason;
|
|
10
|
+
type SubmitEventDetails = FormSubmitEventDetails;
|
|
11
|
+
type Values<FormValues extends Record<string, any> = Record<string, any>> = FormValues;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Form as H } from "./Form.js";
|
|
3
|
+
import { cx } from "../_cx.js";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
const StyledForm = /*#__PURE__*/React.forwardRef(({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}, ref) => /*#__PURE__*/_jsx(H, {
|
|
9
|
+
className: cx('tale-form', className),
|
|
10
|
+
ref: ref,
|
|
11
|
+
...props
|
|
12
|
+
}));
|
|
13
|
+
StyledForm.displayName = 'Form';
|
|
14
|
+
export const Form = StyledForm;
|
package/esm/form/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Form } from "./Form.js";
|
|
2
|
-
export type
|
|
1
|
+
export { Form } from "./Form.styled.js";
|
|
2
|
+
export type { FormProps, FormState, FormActions, FormValidationMode, FormSubmitEventReason, FormSubmitEventDetails } from "./Form.js";
|
package/esm/form/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Form } from "./Form.js";
|
|
1
|
+
export { Form } from "./Form.styled.js";
|
package/esm/index.d.ts
CHANGED
|
@@ -36,7 +36,6 @@ export * from "./switch/index.js";
|
|
|
36
36
|
export * from "./tabs/index.js";
|
|
37
37
|
export * from "./toast/index.js";
|
|
38
38
|
export * from "./toggle/index.js";
|
|
39
|
-
export * from "./toggle-group/index.js";
|
|
40
39
|
export * from "./toolbar/index.js";
|
|
41
40
|
export * from "./tooltip/index.js";
|
|
42
41
|
export * from "./use-render/index.js";
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @tale-ui/react v0.
|
|
2
|
+
* @tale-ui/react v0.2.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -43,7 +43,6 @@ export * from "./switch/index.js";
|
|
|
43
43
|
export * from "./tabs/index.js";
|
|
44
44
|
export * from "./toast/index.js";
|
|
45
45
|
export * from "./toggle/index.js";
|
|
46
|
-
export * from "./toggle-group/index.js";
|
|
47
46
|
export * from "./toolbar/index.js";
|
|
48
47
|
export * from "./tooltip/index.js";
|
|
49
48
|
export * from "./use-render/index.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Input as H } from "./Input.js";
|
|
3
|
+
type Size = 'sm' | 'md' | 'lg';
|
|
4
|
+
export interface InputProps extends Omit<React.ComponentPropsWithoutRef<typeof H>, 'size'> {
|
|
5
|
+
size?: Size | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLElement>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Input as H } from "./Input.js";
|
|
3
|
+
import { cx } from "../_cx.js";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export const Input = /*#__PURE__*/React.forwardRef(({
|
|
6
|
+
size = 'md',
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}, ref) => /*#__PURE__*/_jsx(H, {
|
|
10
|
+
className: cx(size !== 'md' ? `tale-input tale-input--${size}` : 'tale-input', className),
|
|
11
|
+
ref: ref,
|
|
12
|
+
...props
|
|
13
|
+
}));
|
|
14
|
+
if (process.env.NODE_ENV !== "production") Input.displayName = "Input";
|
|
15
|
+
Input.displayName = 'Input';
|
package/esm/input/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Input } from "./Input.js";
|
|
2
|
-
export type
|
|
1
|
+
export { Input } from "./Input.styled.js";
|
|
2
|
+
export type { InputProps } from "./Input.styled.js";
|
package/esm/input/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Input } from "./Input.js";
|
|
1
|
+
export { Input } from "./Input.styled.js";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import type { MenuRootProps, MenuRootActions, MenuRootChangeEventReason, MenuRootChangeEventDetails, MenuRootOrientation } from "./root/MenuRoot.js";
|
|
4
|
+
import type { MenuTriggerProps, MenuTriggerState } from "./trigger/MenuTrigger.js";
|
|
5
|
+
import type { MenuPortalProps } from "./portal/MenuPortal.js";
|
|
6
|
+
import type { MenuPopupProps, MenuPopupState } from "./popup/MenuPopup.js";
|
|
7
|
+
import type { MenuSubmenuRootProps, MenuSubmenuRootState, MenuSubmenuRootChangeEventReason, MenuSubmenuRootChangeEventDetails } from "./submenu-root/MenuSubmenuRoot.js";
|
|
8
|
+
import type { MenuSubmenuTriggerProps, MenuSubmenuTriggerState } from "./submenu-trigger/MenuSubmenuTrigger.js";
|
|
9
|
+
export declare const Root: <Payload>(props: H.Root.Props<Payload>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare namespace Root {
|
|
11
|
+
type Props<Payload = unknown> = MenuRootProps<Payload>;
|
|
12
|
+
type Actions = MenuRootActions;
|
|
13
|
+
type ChangeEventReason = MenuRootChangeEventReason;
|
|
14
|
+
type ChangeEventDetails = MenuRootChangeEventDetails;
|
|
15
|
+
type Orientation = MenuRootOrientation;
|
|
16
|
+
}
|
|
17
|
+
export declare const Trigger: H.Trigger;
|
|
18
|
+
export declare namespace Trigger {
|
|
19
|
+
type Props<Payload = unknown> = MenuTriggerProps<Payload>;
|
|
20
|
+
type State = MenuTriggerState;
|
|
21
|
+
}
|
|
22
|
+
export declare const Portal: React.ForwardRefExoticComponent<Omit<MenuPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export declare namespace Portal {
|
|
24
|
+
type Props = MenuPortalProps;
|
|
25
|
+
}
|
|
26
|
+
export declare const Backdrop: React.ForwardRefExoticComponent<Omit<import("./index.js").MenuBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export declare const Positioner: React.ForwardRefExoticComponent<Omit<import("./index.js").MenuPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export declare const Arrow: React.ForwardRefExoticComponent<Omit<import("./index.js").MenuArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
export declare const Group: React.ForwardRefExoticComponent<Omit<import("./index.js").MenuGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
export declare const RadioGroup: React.NamedExoticComponent<Omit<import("./index.js").MenuRadioGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
export declare const SubmenuRoot: typeof H.SubmenuRoot;
|
|
32
|
+
export declare namespace SubmenuRoot {
|
|
33
|
+
type Props = MenuSubmenuRootProps;
|
|
34
|
+
type State = MenuSubmenuRootState;
|
|
35
|
+
type ChangeEventReason = MenuSubmenuRootChangeEventReason;
|
|
36
|
+
type ChangeEventDetails = MenuSubmenuRootChangeEventDetails;
|
|
37
|
+
}
|
|
38
|
+
export declare const Separator: React.ForwardRefExoticComponent<Omit<import("../index.js").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
export { MenuHandle as Handle } from "./store/MenuHandle.js";
|
|
40
|
+
export declare const createHandle: typeof H.createHandle;
|
|
41
|
+
export declare const Popup: typeof H.Popup;
|
|
42
|
+
export declare namespace Popup {
|
|
43
|
+
type Props = MenuPopupProps;
|
|
44
|
+
type State = MenuPopupState;
|
|
45
|
+
}
|
|
46
|
+
export declare const Item: typeof H.Item;
|
|
47
|
+
export declare const CheckboxItem: typeof H.CheckboxItem;
|
|
48
|
+
export declare const CheckboxItemIndicator: typeof H.CheckboxItemIndicator;
|
|
49
|
+
export declare const RadioItem: typeof H.RadioItem;
|
|
50
|
+
export declare const RadioItemIndicator: typeof H.RadioItemIndicator;
|
|
51
|
+
export declare const LinkItem: typeof H.LinkItem;
|
|
52
|
+
export declare const SubmenuTrigger: typeof H.SubmenuTrigger;
|
|
53
|
+
export declare namespace SubmenuTrigger {
|
|
54
|
+
type Props = MenuSubmenuTriggerProps;
|
|
55
|
+
type State = MenuSubmenuTriggerState;
|
|
56
|
+
}
|
|
57
|
+
export declare const GroupLabel: typeof H.GroupLabel;
|