@tale-ui/react 0.1.0 → 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 +58 -25
- 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/container/Container.d.ts +12 -0
- package/container/Container.js +40 -0
- package/container/index.d.ts +2 -0
- package/container/index.js +18 -0
- 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/container/Container.d.ts +12 -0
- package/esm/container/Container.js +32 -0
- package/esm/container/index.d.ts +2 -0
- package/esm/container/index.js +1 -0
- 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 +1 -1
- package/esm/index.js +2 -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 +1 -1
- package/index.js +12 -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 +21 -4
- 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,102 @@
|
|
|
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 Backdrop = H.Backdrop;
|
|
8
|
+
export const Positioner = H.Positioner;
|
|
9
|
+
export const Arrow = H.Arrow;
|
|
10
|
+
export const Icon = H.Icon;
|
|
11
|
+
export const Value = H.Value;
|
|
12
|
+
export const Status = H.Status;
|
|
13
|
+
export const Trigger = H.Trigger;
|
|
14
|
+
export const List = H.List;
|
|
15
|
+
export const Row = H.Row;
|
|
16
|
+
export const Collection = H.Collection;
|
|
17
|
+
export const Clear = H.Clear;
|
|
18
|
+
export const ItemIndicator = H.ItemIndicator;
|
|
19
|
+
export const Group = H.Group;
|
|
20
|
+
export const useFilter = H.useFilter;
|
|
21
|
+
export const useFilteredItems = H.useFilteredItems;
|
|
22
|
+
const StyledInput = /*#__PURE__*/React.forwardRef(({
|
|
23
|
+
className,
|
|
24
|
+
...props
|
|
25
|
+
}, ref) => /*#__PURE__*/_jsx(H.Input, {
|
|
26
|
+
className: cx('tale-combobox__input', className),
|
|
27
|
+
ref: ref,
|
|
28
|
+
...props
|
|
29
|
+
}));
|
|
30
|
+
StyledInput.displayName = 'Combobox.Input';
|
|
31
|
+
export const Input = StyledInput;
|
|
32
|
+
const StyledPopup = /*#__PURE__*/React.forwardRef(({
|
|
33
|
+
className,
|
|
34
|
+
...props
|
|
35
|
+
}, ref) => /*#__PURE__*/_jsx(H.Popup, {
|
|
36
|
+
className: cx('tale-combobox__popup', className),
|
|
37
|
+
ref: ref,
|
|
38
|
+
...props
|
|
39
|
+
}));
|
|
40
|
+
StyledPopup.displayName = 'Combobox.Popup';
|
|
41
|
+
export const Popup = StyledPopup;
|
|
42
|
+
const StyledItem = /*#__PURE__*/React.forwardRef(({
|
|
43
|
+
className,
|
|
44
|
+
...props
|
|
45
|
+
}, ref) => /*#__PURE__*/_jsx(H.Item, {
|
|
46
|
+
className: cx('tale-combobox__item', className),
|
|
47
|
+
ref: ref,
|
|
48
|
+
...props
|
|
49
|
+
}));
|
|
50
|
+
StyledItem.displayName = 'Combobox.Item';
|
|
51
|
+
export const Item = StyledItem;
|
|
52
|
+
const StyledGroupLabel = /*#__PURE__*/React.forwardRef(({
|
|
53
|
+
className,
|
|
54
|
+
...props
|
|
55
|
+
}, ref) => /*#__PURE__*/_jsx(H.GroupLabel, {
|
|
56
|
+
className: cx('tale-combobox__group-label', className),
|
|
57
|
+
ref: ref,
|
|
58
|
+
...props
|
|
59
|
+
}));
|
|
60
|
+
StyledGroupLabel.displayName = 'Combobox.GroupLabel';
|
|
61
|
+
export const GroupLabel = StyledGroupLabel;
|
|
62
|
+
const StyledEmpty = /*#__PURE__*/React.forwardRef(({
|
|
63
|
+
className,
|
|
64
|
+
...props
|
|
65
|
+
}, ref) => /*#__PURE__*/_jsx(H.Empty, {
|
|
66
|
+
className: cx('tale-combobox__empty', className),
|
|
67
|
+
ref: ref,
|
|
68
|
+
...props
|
|
69
|
+
}));
|
|
70
|
+
StyledEmpty.displayName = 'Combobox.Empty';
|
|
71
|
+
export const Empty = StyledEmpty;
|
|
72
|
+
const StyledChips = /*#__PURE__*/React.forwardRef(({
|
|
73
|
+
className,
|
|
74
|
+
...props
|
|
75
|
+
}, ref) => /*#__PURE__*/_jsx(H.Chips, {
|
|
76
|
+
className: cx('tale-combobox__chips', className),
|
|
77
|
+
ref: ref,
|
|
78
|
+
...props
|
|
79
|
+
}));
|
|
80
|
+
StyledChips.displayName = 'Combobox.Chips';
|
|
81
|
+
export const Chips = StyledChips;
|
|
82
|
+
const StyledChip = /*#__PURE__*/React.forwardRef(({
|
|
83
|
+
className,
|
|
84
|
+
...props
|
|
85
|
+
}, ref) => /*#__PURE__*/_jsx(H.Chip, {
|
|
86
|
+
className: cx('tale-combobox__chip', className),
|
|
87
|
+
ref: ref,
|
|
88
|
+
...props
|
|
89
|
+
}));
|
|
90
|
+
StyledChip.displayName = 'Combobox.Chip';
|
|
91
|
+
export const Chip = StyledChip;
|
|
92
|
+
const StyledChipRemove = /*#__PURE__*/React.forwardRef(({
|
|
93
|
+
className,
|
|
94
|
+
...props
|
|
95
|
+
}, ref) => /*#__PURE__*/_jsx(H.ChipRemove, {
|
|
96
|
+
className: cx('tale-combobox__chip-remove', className),
|
|
97
|
+
ref: ref,
|
|
98
|
+
...props
|
|
99
|
+
}));
|
|
100
|
+
StyledChipRemove.displayName = 'Combobox.ChipRemove';
|
|
101
|
+
export const ChipRemove = StyledChipRemove;
|
|
102
|
+
export { Separator } from "./index.parts.js";
|
package/esm/combobox/index.d.ts
CHANGED
package/esm/combobox/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Combobox from "./
|
|
1
|
+
export * as Combobox from "./Combobox.styled.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const CONTAINER_COLORS: readonly ["brand", "random", "red", "orange", "amber", "yellow", "lime", "green", "emerald", "teal", "cyan", "sky", "indigo", "violet", "purple", "fuchsia", "pink", "rose"];
|
|
3
|
+
export type ContainerColor = typeof CONTAINER_COLORS[number];
|
|
4
|
+
export type ContainerProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
color?: ContainerColor;
|
|
6
|
+
};
|
|
7
|
+
export declare function Container({
|
|
8
|
+
color,
|
|
9
|
+
children,
|
|
10
|
+
style,
|
|
11
|
+
...props
|
|
12
|
+
}: ContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { randomBaseColor, generatePalette, NAMED_SHADES } from '@tale-ui/utils/color';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
export const CONTAINER_COLORS = ['brand', 'random', 'red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose'];
|
|
5
|
+
// Computed once per page load — changes on hard refresh
|
|
6
|
+
const randomBase = randomBaseColor('named');
|
|
7
|
+
const randomPalette = generatePalette(randomBase, 'named');
|
|
8
|
+
const randomColorVars = Object.fromEntries(randomPalette.map(({
|
|
9
|
+
shade,
|
|
10
|
+
hex
|
|
11
|
+
}) => [`--color-${shade}`, hex]));
|
|
12
|
+
function getColorVars(color) {
|
|
13
|
+
if (color === 'brand') return undefined;
|
|
14
|
+
if (color === 'random') return randomColorVars;
|
|
15
|
+
return Object.fromEntries(NAMED_SHADES.map(shade => [`--color-${shade}`, `var(--${color}-${shade})`]));
|
|
16
|
+
}
|
|
17
|
+
export function Container({
|
|
18
|
+
color = 'brand',
|
|
19
|
+
children,
|
|
20
|
+
style,
|
|
21
|
+
...props
|
|
22
|
+
}) {
|
|
23
|
+
const colorVars = getColorVars(color);
|
|
24
|
+
return /*#__PURE__*/_jsx("div", {
|
|
25
|
+
style: {
|
|
26
|
+
...colorVars,
|
|
27
|
+
...style
|
|
28
|
+
},
|
|
29
|
+
...props,
|
|
30
|
+
children: children
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Container, CONTAINER_COLORS } from "./Container.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
export declare const Root: typeof H.Root;
|
|
4
|
+
export declare const Trigger: React.ForwardRefExoticComponent<Omit<import("./index.js").ContextMenuTriggerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const Portal: React.ForwardRefExoticComponent<Omit<import("./index.js").ContextMenuPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const Backdrop: React.ForwardRefExoticComponent<Omit<import("./index.js").ContextMenuBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const Positioner: React.ForwardRefExoticComponent<Omit<import("./index.js").ContextMenuPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const Arrow: React.ForwardRefExoticComponent<Omit<import("./index.js").ContextMenuArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const Group: React.ForwardRefExoticComponent<Omit<import("./index.js").ContextMenuGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const RadioGroup: React.NamedExoticComponent<Omit<import("./index.js").ContextMenuRadioGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const SubmenuRoot: typeof H.SubmenuRoot;
|
|
12
|
+
export declare const Separator: React.ForwardRefExoticComponent<Omit<import("../index.js").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export declare const Popup: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").ContextMenuPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export declare const Item: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").ContextMenuItemProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
15
|
+
export declare const CheckboxItem: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").ContextMenuCheckboxItemProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
16
|
+
export declare const CheckboxItemIndicator: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").ContextMenuCheckboxItemIndicatorProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
17
|
+
export declare const RadioItem: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").ContextMenuRadioItemProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
18
|
+
export declare const RadioItemIndicator: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").ContextMenuRadioItemIndicatorProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
19
|
+
export declare const LinkItem: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").ContextMenuLinkItemProps, "ref"> & React.RefAttributes<Element>, "ref"> & React.RefAttributes<Element>>;
|
|
20
|
+
export declare const SubmenuTrigger: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").ContextMenuSubmenuTriggerProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
21
|
+
export declare const GroupLabel: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").ContextMenuGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -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";
|