@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,106 @@
|
|
|
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 { MenuHandle as Handle } from "./store/MenuHandle.js";
|
|
16
|
+
export const createHandle = H.createHandle;
|
|
17
|
+
const StyledPopup = /*#__PURE__*/React.forwardRef(({
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
|
+
}, ref) => /*#__PURE__*/_jsx(H.Popup, {
|
|
21
|
+
className: cx('tale-menu__popup', className),
|
|
22
|
+
ref: ref,
|
|
23
|
+
...props
|
|
24
|
+
}));
|
|
25
|
+
StyledPopup.displayName = 'Menu.Popup';
|
|
26
|
+
export const Popup = StyledPopup;
|
|
27
|
+
const StyledItem = /*#__PURE__*/React.forwardRef(({
|
|
28
|
+
className,
|
|
29
|
+
...props
|
|
30
|
+
}, ref) => /*#__PURE__*/_jsx(H.Item, {
|
|
31
|
+
className: cx('tale-menu__item', className),
|
|
32
|
+
ref: ref,
|
|
33
|
+
...props
|
|
34
|
+
}));
|
|
35
|
+
StyledItem.displayName = 'Menu.Item';
|
|
36
|
+
export const Item = StyledItem;
|
|
37
|
+
const StyledCheckboxItem = /*#__PURE__*/React.forwardRef(({
|
|
38
|
+
className,
|
|
39
|
+
...props
|
|
40
|
+
}, ref) => /*#__PURE__*/_jsx(H.CheckboxItem, {
|
|
41
|
+
className: cx('tale-menu__checkbox-item', className),
|
|
42
|
+
ref: ref,
|
|
43
|
+
...props
|
|
44
|
+
}));
|
|
45
|
+
StyledCheckboxItem.displayName = 'Menu.CheckboxItem';
|
|
46
|
+
export const CheckboxItem = StyledCheckboxItem;
|
|
47
|
+
const StyledCheckboxItemIndicator = /*#__PURE__*/React.forwardRef(({
|
|
48
|
+
className,
|
|
49
|
+
...props
|
|
50
|
+
}, ref) => /*#__PURE__*/_jsx(H.CheckboxItemIndicator, {
|
|
51
|
+
className: cx('tale-menu__item-indicator', className),
|
|
52
|
+
ref: ref,
|
|
53
|
+
...props
|
|
54
|
+
}));
|
|
55
|
+
StyledCheckboxItemIndicator.displayName = 'Menu.CheckboxItemIndicator';
|
|
56
|
+
export const CheckboxItemIndicator = StyledCheckboxItemIndicator;
|
|
57
|
+
const StyledRadioItem = /*#__PURE__*/React.forwardRef(({
|
|
58
|
+
className,
|
|
59
|
+
...props
|
|
60
|
+
}, ref) => /*#__PURE__*/_jsx(H.RadioItem, {
|
|
61
|
+
className: cx('tale-menu__radio-item', className),
|
|
62
|
+
ref: ref,
|
|
63
|
+
...props
|
|
64
|
+
}));
|
|
65
|
+
StyledRadioItem.displayName = 'Menu.RadioItem';
|
|
66
|
+
export const RadioItem = StyledRadioItem;
|
|
67
|
+
const StyledRadioItemIndicator = /*#__PURE__*/React.forwardRef(({
|
|
68
|
+
className,
|
|
69
|
+
...props
|
|
70
|
+
}, ref) => /*#__PURE__*/_jsx(H.RadioItemIndicator, {
|
|
71
|
+
className: cx('tale-menu__item-indicator', className),
|
|
72
|
+
ref: ref,
|
|
73
|
+
...props
|
|
74
|
+
}));
|
|
75
|
+
StyledRadioItemIndicator.displayName = 'Menu.RadioItemIndicator';
|
|
76
|
+
export const RadioItemIndicator = StyledRadioItemIndicator;
|
|
77
|
+
const StyledLinkItem = /*#__PURE__*/React.forwardRef(({
|
|
78
|
+
className,
|
|
79
|
+
...props
|
|
80
|
+
}, ref) => /*#__PURE__*/_jsx(H.LinkItem, {
|
|
81
|
+
className: cx('tale-menu__link-item', className),
|
|
82
|
+
ref: ref,
|
|
83
|
+
...props
|
|
84
|
+
}));
|
|
85
|
+
StyledLinkItem.displayName = 'Menu.LinkItem';
|
|
86
|
+
export const LinkItem = StyledLinkItem;
|
|
87
|
+
const StyledSubmenuTrigger = /*#__PURE__*/React.forwardRef(({
|
|
88
|
+
className,
|
|
89
|
+
...props
|
|
90
|
+
}, ref) => /*#__PURE__*/_jsx(H.SubmenuTrigger, {
|
|
91
|
+
className: cx('tale-menu__submenu-trigger', className),
|
|
92
|
+
ref: ref,
|
|
93
|
+
...props
|
|
94
|
+
}));
|
|
95
|
+
StyledSubmenuTrigger.displayName = 'Menu.SubmenuTrigger';
|
|
96
|
+
export const SubmenuTrigger = StyledSubmenuTrigger;
|
|
97
|
+
const StyledGroupLabel = /*#__PURE__*/React.forwardRef(({
|
|
98
|
+
className,
|
|
99
|
+
...props
|
|
100
|
+
}, ref) => /*#__PURE__*/_jsx(H.GroupLabel, {
|
|
101
|
+
className: cx('tale-menu__group-label', className),
|
|
102
|
+
ref: ref,
|
|
103
|
+
...props
|
|
104
|
+
}));
|
|
105
|
+
StyledGroupLabel.displayName = 'Menu.GroupLabel';
|
|
106
|
+
export const GroupLabel = StyledGroupLabel;
|
package/esm/menu/index.d.ts
CHANGED
package/esm/menu/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Menu from "./
|
|
1
|
+
export * as Menu from "./Menu.styled.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Menubar as H } from "./Menubar.js";
|
|
3
|
+
import { cx } from "../_cx.js";
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
const StyledMenubar = /*#__PURE__*/React.forwardRef(({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}, ref) => /*#__PURE__*/_jsx(H, {
|
|
9
|
+
className: cx('tale-menubar', className),
|
|
10
|
+
ref: ref,
|
|
11
|
+
...props
|
|
12
|
+
}));
|
|
13
|
+
StyledMenubar.displayName = 'Menubar';
|
|
14
|
+
export const Menubar = StyledMenubar;
|
package/esm/menubar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Menubar } from "./Menubar.js";
|
|
1
|
+
export { Menubar } from "./Menubar.styled.js";
|
|
2
2
|
export type * from "./Menubar.js";
|
package/esm/menubar/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Menubar } from "./Menubar.js";
|
|
1
|
+
export { Menubar } from "./Menubar.styled.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").MeterRootProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const Label: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").MeterLabelProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export declare const Value: React.ForwardRefExoticComponent<Omit<import("./index.js").MeterValueProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
export declare const Track: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").MeterTrackProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const Indicator: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").MeterIndicatorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -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
|
+
export const Root = /*#__PURE__*/React.forwardRef(({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}, ref) => /*#__PURE__*/_jsx(H.Root, {
|
|
9
|
+
className: cx('tale-meter', className),
|
|
10
|
+
ref: ref,
|
|
11
|
+
...props
|
|
12
|
+
}));
|
|
13
|
+
if (process.env.NODE_ENV !== "production") Root.displayName = "Root";
|
|
14
|
+
Root.displayName = 'Meter.Root';
|
|
15
|
+
export const Label = /*#__PURE__*/React.forwardRef(({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}, ref) => /*#__PURE__*/_jsx(H.Label, {
|
|
19
|
+
className: cx('tale-meter__label', className),
|
|
20
|
+
ref: ref,
|
|
21
|
+
...props
|
|
22
|
+
}));
|
|
23
|
+
if (process.env.NODE_ENV !== "production") Label.displayName = "Label";
|
|
24
|
+
Label.displayName = 'Meter.Label';
|
|
25
|
+
export const Value = H.Value;
|
|
26
|
+
export const Track = /*#__PURE__*/React.forwardRef(({
|
|
27
|
+
className,
|
|
28
|
+
...props
|
|
29
|
+
}, ref) => /*#__PURE__*/_jsx(H.Track, {
|
|
30
|
+
className: cx('tale-meter__track', className),
|
|
31
|
+
ref: ref,
|
|
32
|
+
...props
|
|
33
|
+
}));
|
|
34
|
+
if (process.env.NODE_ENV !== "production") Track.displayName = "Track";
|
|
35
|
+
Track.displayName = 'Meter.Track';
|
|
36
|
+
export const Indicator = /*#__PURE__*/React.forwardRef(({
|
|
37
|
+
className,
|
|
38
|
+
...props
|
|
39
|
+
}, ref) => /*#__PURE__*/_jsx(H.Indicator, {
|
|
40
|
+
className: cx('tale-meter__indicator', className),
|
|
41
|
+
ref: ref,
|
|
42
|
+
...props
|
|
43
|
+
}));
|
|
44
|
+
if (process.env.NODE_ENV !== "production") Indicator.displayName = "Indicator";
|
|
45
|
+
Indicator.displayName = 'Meter.Indicator';
|
package/esm/meter/index.d.ts
CHANGED
package/esm/meter/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Meter from "./
|
|
1
|
+
export * as Meter from "./Meter.styled.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import type { NavigationMenuRootState, NavigationMenuRootProps, NavigationMenuRootActions, NavigationMenuRootChangeEventReason, NavigationMenuRootChangeEventDetails } from "./root/NavigationMenuRoot.js";
|
|
4
|
+
export declare const Portal: React.ForwardRefExoticComponent<Omit<import("./index.js").NavigationMenuPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const Positioner: React.ForwardRefExoticComponent<Omit<import("./index.js").NavigationMenuPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const Backdrop: React.ForwardRefExoticComponent<Omit<import("./index.js").NavigationMenuBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const Arrow: React.ForwardRefExoticComponent<Omit<import("./index.js").NavigationMenuArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const Item: React.ForwardRefExoticComponent<Omit<import("./index.js").NavigationMenuItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
9
|
+
export declare const Root: typeof H.Root;
|
|
10
|
+
export declare namespace Root {
|
|
11
|
+
type State = NavigationMenuRootState;
|
|
12
|
+
type Props = NavigationMenuRootProps;
|
|
13
|
+
type Actions = NavigationMenuRootActions;
|
|
14
|
+
type ChangeEventReason = NavigationMenuRootChangeEventReason;
|
|
15
|
+
type ChangeEventDetails = NavigationMenuRootChangeEventDetails;
|
|
16
|
+
}
|
|
17
|
+
export declare const List: typeof H.List;
|
|
18
|
+
export declare const Trigger: typeof H.Trigger;
|
|
19
|
+
export declare const Icon: typeof H.Icon;
|
|
20
|
+
export declare const Link: typeof H.Link;
|
|
21
|
+
export declare const Popup: typeof H.Popup;
|
|
22
|
+
export declare const Content: typeof H.Content;
|
|
23
|
+
export declare const Viewport: typeof H.Viewport;
|
|
@@ -0,0 +1,89 @@
|
|
|
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 Portal = H.Portal;
|
|
6
|
+
export const Positioner = H.Positioner;
|
|
7
|
+
export const Backdrop = H.Backdrop;
|
|
8
|
+
export const Arrow = H.Arrow;
|
|
9
|
+
export const Item = H.Item;
|
|
10
|
+
const StyledRoot = /*#__PURE__*/React.forwardRef(({
|
|
11
|
+
className,
|
|
12
|
+
...props
|
|
13
|
+
}, ref) => /*#__PURE__*/_jsx(H.Root, {
|
|
14
|
+
className: cx('tale-navigation-menu', className),
|
|
15
|
+
ref: ref,
|
|
16
|
+
...props
|
|
17
|
+
}));
|
|
18
|
+
StyledRoot.displayName = 'NavigationMenu.Root';
|
|
19
|
+
export const Root = StyledRoot;
|
|
20
|
+
const StyledList = /*#__PURE__*/React.forwardRef(({
|
|
21
|
+
className,
|
|
22
|
+
...props
|
|
23
|
+
}, ref) => /*#__PURE__*/_jsx(H.List, {
|
|
24
|
+
className: cx('tale-navigation-menu__list', className),
|
|
25
|
+
ref: ref,
|
|
26
|
+
...props
|
|
27
|
+
}));
|
|
28
|
+
StyledList.displayName = 'NavigationMenu.List';
|
|
29
|
+
export const List = StyledList;
|
|
30
|
+
const StyledTrigger = /*#__PURE__*/React.forwardRef(({
|
|
31
|
+
className,
|
|
32
|
+
...props
|
|
33
|
+
}, ref) => /*#__PURE__*/_jsx(H.Trigger, {
|
|
34
|
+
className: cx('tale-navigation-menu__trigger', className),
|
|
35
|
+
ref: ref,
|
|
36
|
+
...props
|
|
37
|
+
}));
|
|
38
|
+
StyledTrigger.displayName = 'NavigationMenu.Trigger';
|
|
39
|
+
export const Trigger = StyledTrigger;
|
|
40
|
+
const StyledIcon = /*#__PURE__*/React.forwardRef(({
|
|
41
|
+
className,
|
|
42
|
+
...props
|
|
43
|
+
}, ref) => /*#__PURE__*/_jsx(H.Icon, {
|
|
44
|
+
className: cx('tale-navigation-menu__icon', className),
|
|
45
|
+
ref: ref,
|
|
46
|
+
...props
|
|
47
|
+
}));
|
|
48
|
+
StyledIcon.displayName = 'NavigationMenu.Icon';
|
|
49
|
+
export const Icon = StyledIcon;
|
|
50
|
+
const StyledLink = /*#__PURE__*/React.forwardRef(({
|
|
51
|
+
className,
|
|
52
|
+
...props
|
|
53
|
+
}, ref) => /*#__PURE__*/_jsx(H.Link, {
|
|
54
|
+
className: cx('tale-navigation-menu__link', className),
|
|
55
|
+
ref: ref,
|
|
56
|
+
...props
|
|
57
|
+
}));
|
|
58
|
+
StyledLink.displayName = 'NavigationMenu.Link';
|
|
59
|
+
export const Link = StyledLink;
|
|
60
|
+
const StyledPopup = /*#__PURE__*/React.forwardRef(({
|
|
61
|
+
className,
|
|
62
|
+
...props
|
|
63
|
+
}, ref) => /*#__PURE__*/_jsx(H.Popup, {
|
|
64
|
+
className: cx('tale-navigation-menu__popup', className),
|
|
65
|
+
ref: ref,
|
|
66
|
+
...props
|
|
67
|
+
}));
|
|
68
|
+
StyledPopup.displayName = 'NavigationMenu.Popup';
|
|
69
|
+
export const Popup = StyledPopup;
|
|
70
|
+
const StyledContent = /*#__PURE__*/React.forwardRef(({
|
|
71
|
+
className,
|
|
72
|
+
...props
|
|
73
|
+
}, ref) => /*#__PURE__*/_jsx(H.Content, {
|
|
74
|
+
className: cx('tale-navigation-menu__content', className),
|
|
75
|
+
ref: ref,
|
|
76
|
+
...props
|
|
77
|
+
}));
|
|
78
|
+
StyledContent.displayName = 'NavigationMenu.Content';
|
|
79
|
+
export const Content = StyledContent;
|
|
80
|
+
const StyledViewport = /*#__PURE__*/React.forwardRef(({
|
|
81
|
+
className,
|
|
82
|
+
...props
|
|
83
|
+
}, ref) => /*#__PURE__*/_jsx(H.Viewport, {
|
|
84
|
+
className: cx('tale-navigation-menu__viewport', className),
|
|
85
|
+
ref: ref,
|
|
86
|
+
...props
|
|
87
|
+
}));
|
|
88
|
+
StyledViewport.displayName = 'NavigationMenu.Viewport';
|
|
89
|
+
export const Viewport = StyledViewport;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * as NavigationMenu from "./
|
|
1
|
+
export * as NavigationMenu from "./NavigationMenu.styled.js";
|
|
2
2
|
export type * from "./root/NavigationMenuRoot.js";
|
|
3
3
|
export type * from "./trigger/NavigationMenuTrigger.js";
|
|
4
4
|
export type * from "./portal/NavigationMenuPortal.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as NavigationMenu from "./
|
|
1
|
+
export * as NavigationMenu from "./NavigationMenu.styled.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as H from "./index.parts.js";
|
|
2
|
+
import type { NumberFieldRootState, NumberFieldRootProps, NumberFieldRootChangeEventReason, NumberFieldRootChangeEventDetails, NumberFieldRootCommitEventReason, NumberFieldRootCommitEventDetails } from "./root/NumberFieldRoot.js";
|
|
3
|
+
export declare const Root: typeof H.Root;
|
|
4
|
+
export declare namespace Root {
|
|
5
|
+
type State = NumberFieldRootState;
|
|
6
|
+
type Props = NumberFieldRootProps;
|
|
7
|
+
type ChangeEventReason = NumberFieldRootChangeEventReason;
|
|
8
|
+
type ChangeEventDetails = NumberFieldRootChangeEventDetails;
|
|
9
|
+
type CommitEventReason = NumberFieldRootCommitEventReason;
|
|
10
|
+
type CommitEventDetails = NumberFieldRootCommitEventDetails;
|
|
11
|
+
}
|
|
12
|
+
export declare const Group: typeof H.Group;
|
|
13
|
+
export declare const Decrement: typeof H.Decrement;
|
|
14
|
+
export declare const Input: typeof H.Input;
|
|
15
|
+
export declare const Increment: typeof H.Increment;
|
|
16
|
+
export { ScrubArea, ScrubAreaCursor } from "./index.parts.js";
|
|
@@ -0,0 +1,59 @@
|
|
|
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-number-field', className),
|
|
10
|
+
ref: ref,
|
|
11
|
+
...props
|
|
12
|
+
}));
|
|
13
|
+
StyledRoot.displayName = 'NumberField.Root';
|
|
14
|
+
export const Root = StyledRoot;
|
|
15
|
+
const StyledGroup = /*#__PURE__*/React.forwardRef(({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}, ref) => /*#__PURE__*/_jsx(H.Group, {
|
|
19
|
+
className: cx('tale-number-field__group', className),
|
|
20
|
+
ref: ref,
|
|
21
|
+
...props
|
|
22
|
+
}));
|
|
23
|
+
StyledGroup.displayName = 'NumberField.Group';
|
|
24
|
+
export const Group = StyledGroup;
|
|
25
|
+
const StyledDecrement = /*#__PURE__*/React.forwardRef(({
|
|
26
|
+
className,
|
|
27
|
+
children = '−',
|
|
28
|
+
...props
|
|
29
|
+
}, ref) => /*#__PURE__*/_jsx(H.Decrement, {
|
|
30
|
+
className: cx('tale-number-field__decrement', className),
|
|
31
|
+
ref: ref,
|
|
32
|
+
...props,
|
|
33
|
+
children: children
|
|
34
|
+
}));
|
|
35
|
+
StyledDecrement.displayName = 'NumberField.Decrement';
|
|
36
|
+
export const Decrement = StyledDecrement;
|
|
37
|
+
const StyledInput = /*#__PURE__*/React.forwardRef(({
|
|
38
|
+
className,
|
|
39
|
+
...props
|
|
40
|
+
}, ref) => /*#__PURE__*/_jsx(H.Input, {
|
|
41
|
+
className: cx('tale-number-field__input', className),
|
|
42
|
+
ref: ref,
|
|
43
|
+
...props
|
|
44
|
+
}));
|
|
45
|
+
StyledInput.displayName = 'NumberField.Input';
|
|
46
|
+
export const Input = StyledInput;
|
|
47
|
+
const StyledIncrement = /*#__PURE__*/React.forwardRef(({
|
|
48
|
+
className,
|
|
49
|
+
children = '+',
|
|
50
|
+
...props
|
|
51
|
+
}, ref) => /*#__PURE__*/_jsx(H.Increment, {
|
|
52
|
+
className: cx('tale-number-field__increment', className),
|
|
53
|
+
ref: ref,
|
|
54
|
+
...props,
|
|
55
|
+
children: children
|
|
56
|
+
}));
|
|
57
|
+
StyledIncrement.displayName = 'NumberField.Increment';
|
|
58
|
+
export const Increment = StyledIncrement;
|
|
59
|
+
export { ScrubArea, ScrubAreaCursor } from "./index.parts.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as NumberField from "./
|
|
1
|
+
export * as NumberField from "./NumberField.styled.js";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import type { PopoverRootState, PopoverRootProps, PopoverRootActions, PopoverRootChangeEventReason, PopoverRootChangeEventDetails } from "./root/PopoverRoot.js";
|
|
4
|
+
import type { PopoverTriggerState, PopoverTriggerProps } from "./trigger/PopoverTrigger.js";
|
|
5
|
+
import type { PopoverPortalProps } from "./portal/PopoverPortal.js";
|
|
6
|
+
import type { PopoverPositionerState, PopoverPositionerProps } from "./positioner/PopoverPositioner.js";
|
|
7
|
+
import type { PopoverPopupState, PopoverPopupProps } from "./popup/PopoverPopup.js";
|
|
8
|
+
export declare const Root: typeof H.Root;
|
|
9
|
+
export declare namespace Root {
|
|
10
|
+
type State = PopoverRootState;
|
|
11
|
+
type Props<Payload = unknown> = PopoverRootProps<Payload>;
|
|
12
|
+
type Actions = PopoverRootActions;
|
|
13
|
+
type ChangeEventReason = PopoverRootChangeEventReason;
|
|
14
|
+
type ChangeEventDetails = PopoverRootChangeEventDetails;
|
|
15
|
+
}
|
|
16
|
+
export declare const Trigger: H.Trigger;
|
|
17
|
+
export declare namespace Trigger {
|
|
18
|
+
type State = PopoverTriggerState;
|
|
19
|
+
type Props<Payload = unknown> = PopoverTriggerProps<Payload>;
|
|
20
|
+
}
|
|
21
|
+
export declare const Portal: React.ForwardRefExoticComponent<Omit<PopoverPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export declare namespace Portal {
|
|
23
|
+
type Props = PopoverPortalProps;
|
|
24
|
+
}
|
|
25
|
+
export declare const Positioner: React.ForwardRefExoticComponent<Omit<PopoverPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export declare namespace Positioner {
|
|
27
|
+
type State = PopoverPositionerState;
|
|
28
|
+
type Props = PopoverPositionerProps;
|
|
29
|
+
}
|
|
30
|
+
export declare const Backdrop: React.ForwardRefExoticComponent<Omit<import("./index.js").PopoverBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
export declare const Viewport: React.ForwardRefExoticComponent<Omit<H.Viewport.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
export declare const createHandle: typeof H.createHandle;
|
|
33
|
+
export declare const Handle: typeof H.Handle;
|
|
34
|
+
export declare const Arrow: typeof H.Arrow;
|
|
35
|
+
export declare const Popup: typeof H.Popup;
|
|
36
|
+
export declare namespace Popup {
|
|
37
|
+
type State = PopoverPopupState;
|
|
38
|
+
type Props = PopoverPopupProps;
|
|
39
|
+
}
|
|
40
|
+
export declare const Title: typeof H.Title;
|
|
41
|
+
export declare const Description: typeof H.Description;
|
|
42
|
+
export declare const Close: typeof H.Close;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 Positioner = H.Positioner;
|
|
9
|
+
export const Backdrop = H.Backdrop;
|
|
10
|
+
export const Viewport = H.Viewport;
|
|
11
|
+
export const createHandle = H.createHandle;
|
|
12
|
+
export const Handle = H.Handle;
|
|
13
|
+
const StyledArrow = /*#__PURE__*/React.forwardRef(({
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) => /*#__PURE__*/_jsx(H.Arrow, {
|
|
17
|
+
className: cx('tale-popover__arrow', className),
|
|
18
|
+
ref: ref,
|
|
19
|
+
...props
|
|
20
|
+
}));
|
|
21
|
+
StyledArrow.displayName = 'Popover.Arrow';
|
|
22
|
+
export const Arrow = StyledArrow;
|
|
23
|
+
const StyledPopup = /*#__PURE__*/React.forwardRef(({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}, ref) => /*#__PURE__*/_jsx(H.Popup, {
|
|
27
|
+
className: cx('tale-popover__popup', className),
|
|
28
|
+
ref: ref,
|
|
29
|
+
...props
|
|
30
|
+
}));
|
|
31
|
+
StyledPopup.displayName = 'Popover.Popup';
|
|
32
|
+
export const Popup = StyledPopup;
|
|
33
|
+
const StyledTitle = /*#__PURE__*/React.forwardRef(({
|
|
34
|
+
className,
|
|
35
|
+
...props
|
|
36
|
+
}, ref) => /*#__PURE__*/_jsx(H.Title, {
|
|
37
|
+
className: cx('tale-popover__title', className),
|
|
38
|
+
ref: ref,
|
|
39
|
+
...props
|
|
40
|
+
}));
|
|
41
|
+
StyledTitle.displayName = 'Popover.Title';
|
|
42
|
+
export const Title = StyledTitle;
|
|
43
|
+
const StyledDescription = /*#__PURE__*/React.forwardRef(({
|
|
44
|
+
className,
|
|
45
|
+
...props
|
|
46
|
+
}, ref) => /*#__PURE__*/_jsx(H.Description, {
|
|
47
|
+
className: cx('tale-popover__description', className),
|
|
48
|
+
ref: ref,
|
|
49
|
+
...props
|
|
50
|
+
}));
|
|
51
|
+
StyledDescription.displayName = 'Popover.Description';
|
|
52
|
+
export const Description = StyledDescription;
|
|
53
|
+
const StyledClose = /*#__PURE__*/React.forwardRef(({
|
|
54
|
+
className,
|
|
55
|
+
...props
|
|
56
|
+
}, ref) => /*#__PURE__*/_jsx(H.Close, {
|
|
57
|
+
className: cx('tale-popover__close', className),
|
|
58
|
+
ref: ref,
|
|
59
|
+
...props
|
|
60
|
+
}));
|
|
61
|
+
StyledClose.displayName = 'Popover.Close';
|
|
62
|
+
export const Close = StyledClose;
|
package/esm/popover/index.d.ts
CHANGED
package/esm/popover/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Popover from "./
|
|
1
|
+
export * as Popover from "./Popover.styled.js";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import type { PreviewCardRootState, PreviewCardRootProps, PreviewCardRootActions, PreviewCardRootChangeEventReason, PreviewCardRootChangeEventDetails } from "./root/PreviewCardRoot.js";
|
|
4
|
+
import type { PreviewCardTriggerState, PreviewCardTriggerProps } from "./trigger/PreviewCardTrigger.js";
|
|
5
|
+
import type { PreviewCardPortalProps } from "./portal/PreviewCardPortal.js";
|
|
6
|
+
import type { PreviewCardPositionerState, PreviewCardPositionerProps } from "./positioner/PreviewCardPositioner.js";
|
|
7
|
+
import type { PreviewCardPopupState, PreviewCardPopupProps } from "./popup/PreviewCardPopup.js";
|
|
8
|
+
export declare const Root: typeof H.Root;
|
|
9
|
+
export declare namespace Root {
|
|
10
|
+
type State = PreviewCardRootState;
|
|
11
|
+
type Props<Payload = unknown> = PreviewCardRootProps<Payload>;
|
|
12
|
+
type Actions = PreviewCardRootActions;
|
|
13
|
+
type ChangeEventReason = PreviewCardRootChangeEventReason;
|
|
14
|
+
type ChangeEventDetails = PreviewCardRootChangeEventDetails;
|
|
15
|
+
}
|
|
16
|
+
export declare const Trigger: H.Trigger;
|
|
17
|
+
export declare namespace Trigger {
|
|
18
|
+
type State = PreviewCardTriggerState;
|
|
19
|
+
type Props<Payload = unknown> = PreviewCardTriggerProps<Payload>;
|
|
20
|
+
}
|
|
21
|
+
export declare const Portal: React.ForwardRefExoticComponent<Omit<PreviewCardPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export declare namespace Portal {
|
|
23
|
+
type Props = PreviewCardPortalProps;
|
|
24
|
+
}
|
|
25
|
+
export declare const Positioner: React.ForwardRefExoticComponent<Omit<PreviewCardPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export declare namespace Positioner {
|
|
27
|
+
type State = PreviewCardPositionerState;
|
|
28
|
+
type Props = PreviewCardPositionerProps;
|
|
29
|
+
}
|
|
30
|
+
export declare const Backdrop: React.ForwardRefExoticComponent<Omit<import("./index.js").PreviewCardBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
export declare const Viewport: React.ForwardRefExoticComponent<Omit<H.Viewport.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
export declare const createHandle: typeof H.createHandle;
|
|
33
|
+
export declare const Handle: typeof H.Handle;
|
|
34
|
+
export declare const Arrow: typeof H.Arrow;
|
|
35
|
+
export declare const Popup: typeof H.Popup;
|
|
36
|
+
export declare namespace Popup {
|
|
37
|
+
type State = PreviewCardPopupState;
|
|
38
|
+
type Props = PreviewCardPopupProps;
|
|
39
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 Positioner = H.Positioner;
|
|
9
|
+
export const Backdrop = H.Backdrop;
|
|
10
|
+
export const Viewport = H.Viewport;
|
|
11
|
+
export const createHandle = H.createHandle;
|
|
12
|
+
export const Handle = H.Handle;
|
|
13
|
+
const StyledArrow = /*#__PURE__*/React.forwardRef(({
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) => /*#__PURE__*/_jsx(H.Arrow, {
|
|
17
|
+
className: cx('tale-preview-card__arrow', className),
|
|
18
|
+
ref: ref,
|
|
19
|
+
...props
|
|
20
|
+
}));
|
|
21
|
+
StyledArrow.displayName = 'PreviewCard.Arrow';
|
|
22
|
+
export const Arrow = StyledArrow;
|
|
23
|
+
const StyledPopup = /*#__PURE__*/React.forwardRef(({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}, ref) => /*#__PURE__*/_jsx(H.Popup, {
|
|
27
|
+
className: cx('tale-preview-card__popup', className),
|
|
28
|
+
ref: ref,
|
|
29
|
+
...props
|
|
30
|
+
}));
|
|
31
|
+
StyledPopup.displayName = 'PreviewCard.Popup';
|
|
32
|
+
export const Popup = StyledPopup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as PreviewCard from "./
|
|
1
|
+
export * as PreviewCard from "./PreviewCard.styled.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
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 Value: React.ForwardRefExoticComponent<Omit<import("./index.js").ProgressValueProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
export declare const Track: typeof H.Track;
|
|
6
|
+
export declare const Indicator: typeof H.Indicator;
|
|
7
|
+
export { Label } from "./index.parts.js";
|
|
8
|
+
export type { Status } from "./index.parts.js";
|