@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,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-switch', className),
|
|
10
|
+
ref: ref,
|
|
11
|
+
...props
|
|
12
|
+
}));
|
|
13
|
+
if (process.env.NODE_ENV !== "production") Root.displayName = "Root";
|
|
14
|
+
Root.displayName = 'Switch.Root';
|
|
15
|
+
export const Thumb = /*#__PURE__*/React.forwardRef(({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}, ref) => /*#__PURE__*/_jsx(H.Thumb, {
|
|
19
|
+
className: cx('tale-switch__thumb', className),
|
|
20
|
+
ref: ref,
|
|
21
|
+
...props
|
|
22
|
+
}));
|
|
23
|
+
if (process.env.NODE_ENV !== "production") Thumb.displayName = "Thumb";
|
|
24
|
+
Thumb.displayName = 'Switch.Thumb';
|
package/esm/switch/index.d.ts
CHANGED
package/esm/switch/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Switch from "./
|
|
1
|
+
export * as Switch from "./Switch.styled.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as H from "./index.parts.js";
|
|
2
|
+
import type { TabsRootState, TabsRootProps, TabsRootOrientation, TabsRootChangeEventReason, TabsRootChangeEventDetails } from "./root/TabsRoot.js";
|
|
3
|
+
export declare const Root: typeof H.Root;
|
|
4
|
+
export declare namespace Root {
|
|
5
|
+
type State = TabsRootState;
|
|
6
|
+
type Props = TabsRootProps;
|
|
7
|
+
type Orientation = TabsRootOrientation;
|
|
8
|
+
type ChangeEventReason = TabsRootChangeEventReason;
|
|
9
|
+
type ChangeEventDetails = TabsRootChangeEventDetails;
|
|
10
|
+
}
|
|
11
|
+
export declare const List: typeof H.List;
|
|
12
|
+
export declare const Tab: typeof H.Tab;
|
|
13
|
+
export declare const Indicator: typeof H.Indicator;
|
|
14
|
+
export declare const Panel: typeof H.Panel;
|
|
@@ -0,0 +1,54 @@
|
|
|
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-tabs', className),
|
|
10
|
+
ref: ref,
|
|
11
|
+
...props
|
|
12
|
+
}));
|
|
13
|
+
StyledRoot.displayName = 'Tabs.Root';
|
|
14
|
+
export const Root = StyledRoot;
|
|
15
|
+
const StyledList = /*#__PURE__*/React.forwardRef(({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}, ref) => /*#__PURE__*/_jsx(H.List, {
|
|
19
|
+
className: cx('tale-tabs__list', className),
|
|
20
|
+
ref: ref,
|
|
21
|
+
...props
|
|
22
|
+
}));
|
|
23
|
+
StyledList.displayName = 'Tabs.List';
|
|
24
|
+
export const List = StyledList;
|
|
25
|
+
const StyledTab = /*#__PURE__*/React.forwardRef(({
|
|
26
|
+
className,
|
|
27
|
+
...props
|
|
28
|
+
}, ref) => /*#__PURE__*/_jsx(H.Tab, {
|
|
29
|
+
className: cx('tale-tabs__tab', className),
|
|
30
|
+
ref: ref,
|
|
31
|
+
...props
|
|
32
|
+
}));
|
|
33
|
+
StyledTab.displayName = 'Tabs.Tab';
|
|
34
|
+
export const Tab = StyledTab;
|
|
35
|
+
const StyledIndicator = /*#__PURE__*/React.forwardRef(({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}, ref) => /*#__PURE__*/_jsx(H.Indicator, {
|
|
39
|
+
className: cx('tale-tabs__indicator', className),
|
|
40
|
+
ref: ref,
|
|
41
|
+
...props
|
|
42
|
+
}));
|
|
43
|
+
StyledIndicator.displayName = 'Tabs.Indicator';
|
|
44
|
+
export const Indicator = StyledIndicator;
|
|
45
|
+
const StyledPanel = /*#__PURE__*/React.forwardRef(({
|
|
46
|
+
className,
|
|
47
|
+
...props
|
|
48
|
+
}, ref) => /*#__PURE__*/_jsx(H.Panel, {
|
|
49
|
+
className: cx('tale-tabs__panel', className),
|
|
50
|
+
ref: ref,
|
|
51
|
+
...props
|
|
52
|
+
}));
|
|
53
|
+
StyledPanel.displayName = 'Tabs.Panel';
|
|
54
|
+
export const Panel = StyledPanel;
|
package/esm/tabs/index.d.ts
CHANGED
package/esm/tabs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Tabs from "./
|
|
1
|
+
export * as Tabs from "./Tabs.styled.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import type { ToastRootToastObject, ToastRootState, ToastRootProps } from "./root/ToastRoot.js";
|
|
4
|
+
export declare const Provider: React.FC<import("./index.js").ToastProviderProps>;
|
|
5
|
+
export declare const Viewport: React.ForwardRefExoticComponent<Omit<import("./index.js").ToastViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const Portal: React.ForwardRefExoticComponent<Omit<import("../utils/FloatingPortalLite.js").FloatingPortalLite.Props<any>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const Arrow: React.ForwardRefExoticComponent<Omit<import("./index.js").ToastArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const useToastManager: typeof H.useToastManager;
|
|
9
|
+
export declare const createToastManager: typeof H.createToastManager;
|
|
10
|
+
export declare const Positioner: typeof H.Positioner;
|
|
11
|
+
export declare const Root: typeof H.Root;
|
|
12
|
+
export declare namespace Root {
|
|
13
|
+
type ToastObject<Data extends object = any> = ToastRootToastObject<Data>;
|
|
14
|
+
type State = ToastRootState;
|
|
15
|
+
type Props = ToastRootProps;
|
|
16
|
+
}
|
|
17
|
+
export declare const Content: typeof H.Content;
|
|
18
|
+
export declare const Title: typeof H.Title;
|
|
19
|
+
export declare const Description: typeof H.Description;
|
|
20
|
+
export declare const Close: typeof H.Close;
|
|
21
|
+
export declare const Action: typeof H.Action;
|
|
@@ -0,0 +1,80 @@
|
|
|
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 Provider = H.Provider;
|
|
6
|
+
export const Viewport = H.Viewport;
|
|
7
|
+
export const Portal = H.Portal;
|
|
8
|
+
export const Arrow = H.Arrow;
|
|
9
|
+
export const useToastManager = H.useToastManager;
|
|
10
|
+
export const createToastManager = H.createToastManager;
|
|
11
|
+
const StyledPositioner = /*#__PURE__*/React.forwardRef(({
|
|
12
|
+
className,
|
|
13
|
+
...props
|
|
14
|
+
}, ref) => /*#__PURE__*/_jsx(H.Positioner, {
|
|
15
|
+
className: cx('tale-toast__positioner', className),
|
|
16
|
+
ref: ref,
|
|
17
|
+
...props
|
|
18
|
+
}));
|
|
19
|
+
StyledPositioner.displayName = 'Toast.Positioner';
|
|
20
|
+
export const Positioner = StyledPositioner;
|
|
21
|
+
const StyledRoot = /*#__PURE__*/React.forwardRef(({
|
|
22
|
+
className,
|
|
23
|
+
...props
|
|
24
|
+
}, ref) => /*#__PURE__*/_jsx(H.Root, {
|
|
25
|
+
className: cx('tale-toast__root', className),
|
|
26
|
+
ref: ref,
|
|
27
|
+
...props
|
|
28
|
+
}));
|
|
29
|
+
StyledRoot.displayName = 'Toast.Root';
|
|
30
|
+
export const Root = StyledRoot;
|
|
31
|
+
const StyledContent = /*#__PURE__*/React.forwardRef(({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}, ref) => /*#__PURE__*/_jsx(H.Content, {
|
|
35
|
+
className: cx('tale-toast__content', className),
|
|
36
|
+
ref: ref,
|
|
37
|
+
...props
|
|
38
|
+
}));
|
|
39
|
+
StyledContent.displayName = 'Toast.Content';
|
|
40
|
+
export const Content = StyledContent;
|
|
41
|
+
const StyledTitle = /*#__PURE__*/React.forwardRef(({
|
|
42
|
+
className,
|
|
43
|
+
...props
|
|
44
|
+
}, ref) => /*#__PURE__*/_jsx(H.Title, {
|
|
45
|
+
className: cx('tale-toast__title', className),
|
|
46
|
+
ref: ref,
|
|
47
|
+
...props
|
|
48
|
+
}));
|
|
49
|
+
StyledTitle.displayName = 'Toast.Title';
|
|
50
|
+
export const Title = StyledTitle;
|
|
51
|
+
const StyledDescription = /*#__PURE__*/React.forwardRef(({
|
|
52
|
+
className,
|
|
53
|
+
...props
|
|
54
|
+
}, ref) => /*#__PURE__*/_jsx(H.Description, {
|
|
55
|
+
className: cx('tale-toast__description', className),
|
|
56
|
+
ref: ref,
|
|
57
|
+
...props
|
|
58
|
+
}));
|
|
59
|
+
StyledDescription.displayName = 'Toast.Description';
|
|
60
|
+
export const Description = StyledDescription;
|
|
61
|
+
const StyledClose = /*#__PURE__*/React.forwardRef(({
|
|
62
|
+
className,
|
|
63
|
+
...props
|
|
64
|
+
}, ref) => /*#__PURE__*/_jsx(H.Close, {
|
|
65
|
+
className: cx('tale-toast__close', className),
|
|
66
|
+
ref: ref,
|
|
67
|
+
...props
|
|
68
|
+
}));
|
|
69
|
+
StyledClose.displayName = 'Toast.Close';
|
|
70
|
+
export const Close = StyledClose;
|
|
71
|
+
const StyledAction = /*#__PURE__*/React.forwardRef(({
|
|
72
|
+
className,
|
|
73
|
+
...props
|
|
74
|
+
}, ref) => /*#__PURE__*/_jsx(H.Action, {
|
|
75
|
+
className: cx('tale-toast__action', className),
|
|
76
|
+
ref: ref,
|
|
77
|
+
...props
|
|
78
|
+
}));
|
|
79
|
+
StyledAction.displayName = 'Toast.Action';
|
|
80
|
+
export const Action = StyledAction;
|
package/esm/toast/index.d.ts
CHANGED
package/esm/toast/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Toast from "./
|
|
1
|
+
export * as Toast from "./Toast.styled.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Toggle as H } from "./Toggle.js";
|
|
3
|
+
import { ToggleGroup as HGroup } from "../toggle-group/ToggleGroup.js";
|
|
4
|
+
type Size = 'sm' | 'md' | 'lg';
|
|
5
|
+
export interface ToggleProps extends React.ComponentPropsWithoutRef<typeof H> {
|
|
6
|
+
size?: Size | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
export declare const ToggleGroup: React.ForwardRefExoticComponent<Omit<HGroup.Props<string> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Toggle as H } from "./Toggle.js";
|
|
3
|
+
import { ToggleGroup as HGroup } from "../toggle-group/ToggleGroup.js";
|
|
4
|
+
import { cx } from "../_cx.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
export const Toggle = /*#__PURE__*/React.forwardRef(({
|
|
7
|
+
size = 'md',
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}, ref) => /*#__PURE__*/_jsx(H, {
|
|
11
|
+
className: cx(`tale-toggle tale-toggle--${size}`, className),
|
|
12
|
+
ref: ref,
|
|
13
|
+
...props
|
|
14
|
+
}));
|
|
15
|
+
if (process.env.NODE_ENV !== "production") Toggle.displayName = "Toggle";
|
|
16
|
+
Toggle.displayName = 'Toggle';
|
|
17
|
+
export const ToggleGroup = /*#__PURE__*/React.forwardRef(({
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
|
+
}, ref) => /*#__PURE__*/_jsx(HGroup, {
|
|
21
|
+
className: cx('tale-toggle-group', className),
|
|
22
|
+
ref: ref,
|
|
23
|
+
...props
|
|
24
|
+
}));
|
|
25
|
+
if (process.env.NODE_ENV !== "production") ToggleGroup.displayName = "ToggleGroup";
|
|
26
|
+
ToggleGroup.displayName = 'ToggleGroup';
|
package/esm/toggle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Toggle } from "./Toggle.js";
|
|
2
|
-
export type
|
|
1
|
+
export { Toggle, ToggleGroup } from "./Toggle.styled.js";
|
|
2
|
+
export type { ToggleProps } from "./Toggle.styled.js";
|
package/esm/toggle/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Toggle } from "./Toggle.js";
|
|
1
|
+
export { Toggle, ToggleGroup } from "./Toggle.styled.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").ToolbarRootProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const Group: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").ToolbarGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").ToolbarButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export declare const Link: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").ToolbarLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
6
|
+
export declare const Input: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").ToolbarInputProps, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
7
|
+
export declare const Separator: React.ForwardRefExoticComponent<Omit<Omit<import("./index.js").ToolbarSeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -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 = /*#__PURE__*/React.forwardRef(({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}, ref) => /*#__PURE__*/_jsx(H.Root, {
|
|
9
|
+
className: cx('tale-toolbar', className),
|
|
10
|
+
ref: ref,
|
|
11
|
+
...props
|
|
12
|
+
}));
|
|
13
|
+
if (process.env.NODE_ENV !== "production") Root.displayName = "Root";
|
|
14
|
+
Root.displayName = 'Toolbar.Root';
|
|
15
|
+
export const Group = /*#__PURE__*/React.forwardRef(({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}, ref) => /*#__PURE__*/_jsx(H.Group, {
|
|
19
|
+
className: cx('tale-toolbar__group', className),
|
|
20
|
+
ref: ref,
|
|
21
|
+
...props
|
|
22
|
+
}));
|
|
23
|
+
if (process.env.NODE_ENV !== "production") Group.displayName = "Group";
|
|
24
|
+
Group.displayName = 'Toolbar.Group';
|
|
25
|
+
export const Button = /*#__PURE__*/React.forwardRef(({
|
|
26
|
+
className,
|
|
27
|
+
...props
|
|
28
|
+
}, ref) => /*#__PURE__*/_jsx(H.Button, {
|
|
29
|
+
className: cx('tale-toolbar__button', className),
|
|
30
|
+
ref: ref,
|
|
31
|
+
...props
|
|
32
|
+
}));
|
|
33
|
+
if (process.env.NODE_ENV !== "production") Button.displayName = "Button";
|
|
34
|
+
Button.displayName = 'Toolbar.Button';
|
|
35
|
+
export const Link = /*#__PURE__*/React.forwardRef(({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}, ref) => /*#__PURE__*/_jsx(H.Link, {
|
|
39
|
+
className: cx('tale-toolbar__link', className),
|
|
40
|
+
ref: ref,
|
|
41
|
+
...props
|
|
42
|
+
}));
|
|
43
|
+
if (process.env.NODE_ENV !== "production") Link.displayName = "Link";
|
|
44
|
+
Link.displayName = 'Toolbar.Link';
|
|
45
|
+
export const Input = /*#__PURE__*/React.forwardRef(({
|
|
46
|
+
className,
|
|
47
|
+
...props
|
|
48
|
+
}, ref) => /*#__PURE__*/_jsx(H.Input, {
|
|
49
|
+
className: cx('tale-toolbar__input tale-input', className),
|
|
50
|
+
ref: ref,
|
|
51
|
+
...props
|
|
52
|
+
}));
|
|
53
|
+
if (process.env.NODE_ENV !== "production") Input.displayName = "Input";
|
|
54
|
+
Input.displayName = 'Toolbar.Input';
|
|
55
|
+
export const Separator = /*#__PURE__*/React.forwardRef(({
|
|
56
|
+
className,
|
|
57
|
+
...props
|
|
58
|
+
}, ref) => /*#__PURE__*/_jsx(H.Separator, {
|
|
59
|
+
className: cx('tale-toolbar__separator', className),
|
|
60
|
+
ref: ref,
|
|
61
|
+
...props
|
|
62
|
+
}));
|
|
63
|
+
if (process.env.NODE_ENV !== "production") Separator.displayName = "Separator";
|
|
64
|
+
Separator.displayName = 'Toolbar.Separator';
|
package/esm/toolbar/index.d.ts
CHANGED
package/esm/toolbar/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Toolbar from "./
|
|
1
|
+
export * as Toolbar from "./Toolbar.styled.js";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as H from "./index.parts.js";
|
|
3
|
+
import type { TooltipRootState, TooltipRootProps, TooltipRootActions, TooltipRootChangeEventReason, TooltipRootChangeEventDetails } from "./root/TooltipRoot.js";
|
|
4
|
+
import type { TooltipTriggerState, TooltipTriggerProps } from "./trigger/TooltipTrigger.js";
|
|
5
|
+
import type { TooltipPortalProps } from "./portal/TooltipPortal.js";
|
|
6
|
+
import type { TooltipPositionerState, TooltipPositionerProps } from "./positioner/TooltipPositioner.js";
|
|
7
|
+
import type { TooltipPopupState, TooltipPopupProps } from "./popup/TooltipPopup.js";
|
|
8
|
+
export declare const Root: <Payload>(props: H.Root.Props<Payload>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare namespace Root {
|
|
10
|
+
type State = TooltipRootState;
|
|
11
|
+
type Props<Payload = unknown> = TooltipRootProps<Payload>;
|
|
12
|
+
type Actions = TooltipRootActions;
|
|
13
|
+
type ChangeEventReason = TooltipRootChangeEventReason;
|
|
14
|
+
type ChangeEventDetails = TooltipRootChangeEventDetails;
|
|
15
|
+
}
|
|
16
|
+
export declare const Trigger: H.Trigger;
|
|
17
|
+
export declare namespace Trigger {
|
|
18
|
+
type State = TooltipTriggerState;
|
|
19
|
+
type Props<Payload = unknown> = TooltipTriggerProps<Payload>;
|
|
20
|
+
}
|
|
21
|
+
export declare const Portal: React.ForwardRefExoticComponent<Omit<TooltipPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export declare namespace Portal {
|
|
23
|
+
type Props = TooltipPortalProps;
|
|
24
|
+
}
|
|
25
|
+
export declare const Positioner: React.ForwardRefExoticComponent<Omit<TooltipPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export declare namespace Positioner {
|
|
27
|
+
type State = TooltipPositionerState;
|
|
28
|
+
type Props = TooltipPositionerProps;
|
|
29
|
+
}
|
|
30
|
+
export declare const Provider: React.FC<import("./index.js").TooltipProviderProps>;
|
|
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 Popup: typeof H.Popup;
|
|
35
|
+
export declare namespace Popup {
|
|
36
|
+
type State = TooltipPopupState;
|
|
37
|
+
type Props = TooltipPopupProps;
|
|
38
|
+
}
|
|
39
|
+
export declare const Arrow: typeof H.Arrow;
|
|
@@ -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 Provider = H.Provider;
|
|
10
|
+
export const Viewport = H.Viewport;
|
|
11
|
+
export const createHandle = H.createHandle;
|
|
12
|
+
export const Handle = H.Handle;
|
|
13
|
+
const StyledPopup = /*#__PURE__*/React.forwardRef(({
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) => /*#__PURE__*/_jsx(H.Popup, {
|
|
17
|
+
className: cx('tale-tooltip__popup', className),
|
|
18
|
+
ref: ref,
|
|
19
|
+
...props
|
|
20
|
+
}));
|
|
21
|
+
StyledPopup.displayName = 'Tooltip.Popup';
|
|
22
|
+
export const Popup = StyledPopup;
|
|
23
|
+
const StyledArrow = /*#__PURE__*/React.forwardRef(({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}, ref) => /*#__PURE__*/_jsx(H.Arrow, {
|
|
27
|
+
className: cx('tale-tooltip__arrow', className),
|
|
28
|
+
ref: ref,
|
|
29
|
+
...props
|
|
30
|
+
}));
|
|
31
|
+
StyledArrow.displayName = 'Tooltip.Arrow';
|
|
32
|
+
export const Arrow = StyledArrow;
|
package/esm/tooltip/index.d.ts
CHANGED
package/esm/tooltip/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Tooltip from "./
|
|
1
|
+
export * as Tooltip from "./Tooltip.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,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "Control", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return H.Control;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
exports.Error = exports.Description = void 0;
|
|
14
|
+
Object.defineProperty(exports, "Item", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return H.Item;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
exports.Root = exports.Label = void 0;
|
|
21
|
+
Object.defineProperty(exports, "Validity", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return H.Validity;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
var React = _interopRequireWildcard(require("react"));
|
|
28
|
+
var H = _interopRequireWildcard(require("./index.parts"));
|
|
29
|
+
var _cx = require("../_cx");
|
|
30
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
|
+
const StyledRoot = /*#__PURE__*/React.forwardRef(({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Root, {
|
|
35
|
+
className: (0, _cx.cx)('tale-field', className),
|
|
36
|
+
ref: ref,
|
|
37
|
+
...props
|
|
38
|
+
}));
|
|
39
|
+
StyledRoot.displayName = 'Field.Root';
|
|
40
|
+
const Root = exports.Root = StyledRoot;
|
|
41
|
+
const Label = exports.Label = /*#__PURE__*/React.forwardRef(({
|
|
42
|
+
className,
|
|
43
|
+
...props
|
|
44
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Label, {
|
|
45
|
+
className: (0, _cx.cx)('tale-field__label', className),
|
|
46
|
+
ref: ref,
|
|
47
|
+
...props
|
|
48
|
+
}));
|
|
49
|
+
if (process.env.NODE_ENV !== "production") Label.displayName = "Label";
|
|
50
|
+
Label.displayName = 'Field.Label';
|
|
51
|
+
const Description = exports.Description = /*#__PURE__*/React.forwardRef(({
|
|
52
|
+
className,
|
|
53
|
+
...props
|
|
54
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Description, {
|
|
55
|
+
className: (0, _cx.cx)('tale-field__description', className),
|
|
56
|
+
ref: ref,
|
|
57
|
+
...props
|
|
58
|
+
}));
|
|
59
|
+
if (process.env.NODE_ENV !== "production") Description.displayName = "Description";
|
|
60
|
+
Description.displayName = 'Field.Description';
|
|
61
|
+
const Error = exports.Error = /*#__PURE__*/React.forwardRef(({
|
|
62
|
+
className,
|
|
63
|
+
...props
|
|
64
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Error, {
|
|
65
|
+
className: (0, _cx.cx)('tale-field__error', className),
|
|
66
|
+
ref: ref,
|
|
67
|
+
...props
|
|
68
|
+
}));
|
|
69
|
+
if (process.env.NODE_ENV !== "production") Error.displayName = "Error";
|
|
70
|
+
Error.displayName = 'Field.Error';
|
package/field/index.d.ts
CHANGED
package/field/index.js
CHANGED
|
@@ -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,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Root = exports.Legend = void 0;
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var H = _interopRequireWildcard(require("./index.parts"));
|
|
10
|
+
var _cx = require("../_cx");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
const Root = exports.Root = /*#__PURE__*/React.forwardRef(({
|
|
13
|
+
className,
|
|
14
|
+
...props
|
|
15
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Root, {
|
|
16
|
+
className: (0, _cx.cx)('tale-fieldset', className),
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
}));
|
|
20
|
+
if (process.env.NODE_ENV !== "production") Root.displayName = "Root";
|
|
21
|
+
Root.displayName = 'Fieldset.Root';
|
|
22
|
+
const Legend = exports.Legend = /*#__PURE__*/React.forwardRef(({
|
|
23
|
+
className,
|
|
24
|
+
...props
|
|
25
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(H.Legend, {
|
|
26
|
+
className: (0, _cx.cx)('tale-fieldset__legend', className),
|
|
27
|
+
ref: ref,
|
|
28
|
+
...props
|
|
29
|
+
}));
|
|
30
|
+
if (process.env.NODE_ENV !== "production") Legend.displayName = "Legend";
|
|
31
|
+
Legend.displayName = 'Fieldset.Legend';
|
package/fieldset/index.d.ts
CHANGED
package/fieldset/index.js
CHANGED
|
@@ -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,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Form = void 0;
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _Form2 = require("./Form");
|
|
10
|
+
var _cx = require("../_cx");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
const StyledForm = /*#__PURE__*/React.forwardRef(({
|
|
13
|
+
className,
|
|
14
|
+
...props
|
|
15
|
+
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Form2.Form, {
|
|
16
|
+
className: (0, _cx.cx)('tale-form', className),
|
|
17
|
+
ref: ref,
|
|
18
|
+
...props
|
|
19
|
+
}));
|
|
20
|
+
StyledForm.displayName = 'Form';
|
|
21
|
+
const Form = exports.Form = StyledForm;
|
package/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";
|