@moduix/react 2.5.0 → 2.6.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 +65 -86
- package/THIRD_PARTY_NOTICES.md +49 -0
- package/dist/components/accordion/Accordion.js +7 -8
- package/dist/components/alert/Alert.js +6 -7
- package/dist/components/alert/Alert_module.css +3 -16
- package/dist/components/angle-slider/AngleSlider.d.ts +5 -11
- package/dist/components/angle-slider/AngleSlider.js +17 -59
- package/dist/components/aspect-ratio/AspectRatio.js +1 -2
- package/dist/components/aspect-ratio/AspectRatio_module.css +0 -13
- package/dist/components/avatar/Avatar.d.ts +3 -6
- package/dist/components/avatar/Avatar.js +7 -50
- package/dist/components/avatar/Avatar.module.js +1 -2
- package/dist/components/avatar/Avatar_module.css +0 -6
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +5 -10
- package/dist/components/badge/Badge_module.css +7 -14
- package/dist/components/bleed/Bleed.js +1 -2
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.js +16 -32
- package/dist/components/breadcrumbs/Breadcrumbs_module.css +12 -14
- package/dist/components/button/Button.d.ts +4 -4
- package/dist/components/button/Button.js +1 -2
- package/dist/components/button/Button_module.css +2 -7
- package/dist/components/card/Card.d.ts +15 -15
- package/dist/components/card/Card.js +10 -11
- package/dist/components/card/Card_module.css +1 -17
- package/dist/components/carousel/Carousel.js +12 -13
- package/dist/components/carousel/Carousel_module.css +10 -3
- package/dist/components/chart/Chart.d.ts +9 -8
- package/dist/components/chart/Chart.js +7 -8
- package/dist/components/chart/Chart_module.css +0 -2
- package/dist/components/checkbox/Checkbox.d.ts +3 -2
- package/dist/components/checkbox/Checkbox.js +12 -35
- package/dist/components/clipboard/Clipboard.js +8 -9
- package/dist/components/close-button/CloseButton.js +1 -2
- package/dist/components/close-button/CloseButton_module.css +1 -10
- package/dist/components/collapsible/Collapsible.js +6 -9
- package/dist/components/collapsible/Collapsible_module.css +2 -4
- package/dist/components/color-picker/ColorPicker.d.ts +4 -3
- package/dist/components/color-picker/ColorPicker.js +32 -45
- package/dist/components/color-picker/ColorPicker_module.css +0 -1
- package/dist/components/combobox/Combobox.d.ts +5 -5
- package/dist/components/combobox/Combobox.js +20 -29
- package/dist/components/combobox/Combobox_module.css +0 -1
- package/dist/components/command-palette/CommandPalette.d.ts +7 -18
- package/dist/components/command-palette/CommandPalette.js +51 -78
- package/dist/components/command-palette/CommandPalette_module.css +11 -18
- package/dist/components/container/Container.js +1 -2
- package/dist/components/date-input/DateInput.d.ts +7 -9
- package/dist/components/date-input/DateInput.js +14 -44
- package/dist/components/date-input/DateInput_module.css +0 -1
- package/dist/components/date-picker/DatePicker.d.ts +1 -1
- package/dist/components/date-picker/DatePicker.js +34 -43
- package/dist/components/date-picker/DatePicker.module.js +1 -1
- package/dist/components/date-picker/DatePicker_module.css +14 -4
- package/dist/components/dialog/Dialog.d.ts +1 -1
- package/dist/components/dialog/Dialog.js +11 -12
- package/dist/components/drawer/Drawer.d.ts +6 -3
- package/dist/components/drawer/Drawer.js +33 -24
- package/dist/components/editable/Editable.d.ts +1 -1
- package/dist/components/editable/Editable.js +10 -11
- package/dist/components/empty/Empty.js +6 -7
- package/dist/components/field/Field.js +10 -11
- package/dist/components/fieldset/Fieldset.js +5 -6
- package/dist/components/file-upload/FileUpload.d.ts +3 -2
- package/dist/components/file-upload/FileUpload.js +28 -55
- package/dist/components/file-upload/FileUpload_module.css +4 -13
- package/dist/components/floating-panel/FloatingPanel.d.ts +2 -2
- package/dist/components/floating-panel/FloatingPanel.js +14 -15
- package/dist/components/floating-panel/FloatingPanel_module.css +4 -17
- package/dist/components/heading/Heading.js +1 -2
- package/dist/components/highlight/Highlight.js +1 -2
- package/dist/components/hover-card/HoverCard.d.ts +2 -1
- package/dist/components/hover-card/HoverCard.js +15 -6
- package/dist/components/hover-card/HoverCard.module.js +1 -0
- package/dist/components/hover-card/HoverCard_module.css +18 -3
- package/dist/components/image/Image.js +1 -2
- package/dist/components/image-cropper/ImageCropper.d.ts +1 -1
- package/dist/components/image-cropper/ImageCropper.js +7 -8
- package/dist/components/input/Input.d.ts +4 -4
- package/dist/components/input/Input.js +1 -2
- package/dist/components/input-group/InputGroup.d.ts +5 -5
- package/dist/components/input-group/InputGroup.js +5 -6
- package/dist/components/json-tree-view/JsonTreeView.js +3 -4
- package/dist/components/json-tree-view/JsonTreeView_module.css +26 -10
- package/dist/components/kbd/Kbd.js +2 -3
- package/dist/components/lightbox/Lightbox.d.ts +1 -1
- package/dist/components/lightbox/Lightbox.js +13 -14
- package/dist/components/lightbox/Lightbox_module.css +0 -3
- package/dist/components/list/List.js +2 -3
- package/dist/components/listbox/Listbox.d.ts +5 -5
- package/dist/components/listbox/Listbox.js +19 -25
- package/dist/components/listbox/Listbox.module.js +2 -2
- package/dist/components/listbox/Listbox_module.css +3 -13
- package/dist/components/marquee/Marquee.js +6 -7
- package/dist/components/menu/Menu.d.ts +2 -1
- package/dist/components/menu/Menu.js +34 -41
- package/dist/components/menu/Menu.module.js +1 -1
- package/dist/components/menu/Menu_module.css +8 -8
- package/dist/components/native-select/NativeSelect.js +2 -3
- package/dist/components/native-select/NativeSelect_module.css +0 -1
- package/dist/components/navigation-menu/NavigationMenu.js +17 -36
- package/dist/components/navigation-menu/NavigationMenu.module.js +2 -3
- package/dist/components/navigation-menu/NavigationMenu_module.css +15 -32
- package/dist/components/number-input/NumberInput.js +9 -10
- package/dist/components/pagination/Pagination.js +17 -20
- package/dist/components/pagination/Pagination_module.css +1 -5
- package/dist/components/password-input/PasswordInput.js +7 -8
- package/dist/components/pin-input/PinInput.d.ts +3 -2
- package/dist/components/pin-input/PinInput.js +13 -54
- package/dist/components/popover/Popover.d.ts +5 -3
- package/dist/components/popover/Popover.js +16 -17
- package/dist/components/progress-circular/ProgressCircular.js +8 -9
- package/dist/components/progress-circular/ProgressCircular.module.js +1 -3
- package/dist/components/progress-circular/ProgressCircular_module.css +0 -10
- package/dist/components/progress-linear/ProgressLinear.js +7 -8
- package/dist/components/progress-linear/ProgressLinear.module.js +1 -5
- package/dist/components/progress-linear/ProgressLinear_module.css +0 -20
- package/dist/components/qr-code/QrCode.js +6 -7
- package/dist/components/radio-group/RadioGroup.d.ts +1 -0
- package/dist/components/radio-group/RadioGroup.js +13 -27
- package/dist/components/radio-group/RadioGroup_module.css +0 -1
- package/dist/components/rating-group/RatingGroup.d.ts +1 -0
- package/dist/components/rating-group/RatingGroup.js +12 -29
- package/dist/components/rating-group/RatingGroup_module.css +1 -1
- package/dist/components/scroll-area/ScrollArea.js +7 -8
- package/dist/components/segment-group/SegmentGroup.d.ts +1 -0
- package/dist/components/segment-group/SegmentGroup.js +16 -30
- package/dist/components/segment-group/SegmentGroup_module.css +4 -0
- package/dist/components/select/Select.d.ts +4 -7
- package/dist/components/select/Select.js +36 -86
- package/dist/components/select/Select.module.js +1 -1
- package/dist/components/select/Select_module.css +4 -31
- package/dist/components/separator/Separator.d.ts +6 -6
- package/dist/components/separator/Separator.js +1 -2
- package/dist/components/sidebar/Sidebar.d.ts +24 -22
- package/dist/components/sidebar/Sidebar.js +88 -75
- package/dist/components/sidebar/Sidebar.module.js +2 -3
- package/dist/components/sidebar/Sidebar_module.css +112 -178
- package/dist/components/signature-pad/SignaturePad.d.ts +5 -8
- package/dist/components/signature-pad/SignaturePad.js +17 -46
- package/dist/components/signature-pad/SignaturePad_module.css +0 -1
- package/dist/components/simple-grid/SimpleGrid.js +13 -8
- package/dist/components/skeleton/Skeleton.d.ts +2 -2
- package/dist/components/skeleton/Skeleton.js +1 -2
- package/dist/components/slider/Slider.d.ts +2 -2
- package/dist/components/slider/Slider.js +18 -32
- package/dist/components/spinner/Spinner.d.ts +2 -2
- package/dist/components/spinner/Spinner.js +1 -2
- package/dist/components/split-button/SplitButton.d.ts +4 -4
- package/dist/components/split-button/SplitButton.js +11 -8
- package/dist/components/splitter/Splitter.js +5 -6
- package/dist/components/splitter/Splitter_module.css +2 -10
- package/dist/components/stack/Stack.d.ts +6 -6
- package/dist/components/stack/Stack.js +4 -5
- package/dist/components/stack/Stack_module.css +1 -1
- package/dist/components/steps/Steps.js +12 -13
- package/dist/components/steps/Steps_module.css +2 -3
- package/dist/components/swap/Swap.js +3 -4
- package/dist/components/switch/Switch.d.ts +3 -2
- package/dist/components/switch/Switch.js +12 -35
- package/dist/components/switch/Switch_module.css +0 -1
- package/dist/components/table/Table.d.ts +5 -5
- package/dist/components/table/Table.js +12 -13
- package/dist/components/tabs/Tabs.js +6 -7
- package/dist/components/tabs/Tabs_module.css +5 -10
- package/dist/components/tag/Tag.js +5 -6
- package/dist/components/tag/Tag_module.css +2 -4
- package/dist/components/tags-input/TagsInput.d.ts +3 -3
- package/dist/components/tags-input/TagsInput.js +21 -75
- package/dist/components/tags-input/TagsInput_module.css +0 -1
- package/dist/components/text/Text.js +1 -2
- package/dist/components/textarea/Textarea.js +1 -2
- package/dist/components/timer/Timer.js +7 -8
- package/dist/components/toast/Toast.d.ts +1 -1
- package/dist/components/toast/Toast.js +7 -8
- package/dist/components/toast/Toast_module.css +1 -2
- package/dist/components/toc/Toc.js +10 -11
- package/dist/components/toc/Toc_module.css +2 -2
- package/dist/components/toggle/Toggle.js +2 -3
- package/dist/components/toggle-group/ToggleGroup.d.ts +1 -1
- package/dist/components/toggle-group/ToggleGroup.js +3 -4
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.js +6 -7
- package/dist/components/tooltip/Tooltip_module.css +1 -1
- package/dist/components/tour/Tour.d.ts +1 -1
- package/dist/components/tour/Tour.js +14 -15
- package/dist/components/tree-view/TreeView.d.ts +4 -4
- package/dist/components/tree-view/TreeView.js +17 -18
- package/dist/components/tree-view/TreeView_module.css +39 -12
- package/dist/components/typeset/Typeset.js +2 -3
- package/dist/components/typeset/Typeset_module.css +300 -159
- package/dist/internal/icons/ui/Icons.d.ts +9 -30
- package/dist/internal/icons/ui/Icons.js +67 -807
- package/dist/internal/icons/ui/index.d.ts +1 -1
- package/dist/styles/animations.css +310 -0
- package/dist/styles/style.css +168 -2
- package/package.json +25 -25
- package/dist/internal/normalizeClassName.d.ts +0 -1
- package/dist/internal/normalizeClassName.js +0 -2
|
@@ -3,14 +3,13 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { Swap, useSwap, useSwapContext } from "@ark-ui/react/swap";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
6
|
import Swap_module from "./Swap.module.js";
|
|
8
7
|
const Swap_SwapRoot = /*#__PURE__*/ forwardRef(function({ animation = 'scale', className, ...props }, ref) {
|
|
9
8
|
return /*#__PURE__*/ jsx(Swap.Root, {
|
|
10
9
|
ref: ref,
|
|
11
10
|
"data-slot": "swap-root",
|
|
12
11
|
"data-animation": animation,
|
|
13
|
-
className: clsx(Swap_module.root,
|
|
12
|
+
className: clsx(Swap_module.root, className),
|
|
14
13
|
...props
|
|
15
14
|
});
|
|
16
15
|
});
|
|
@@ -19,7 +18,7 @@ const Swap_SwapRootProvider = /*#__PURE__*/ forwardRef(function({ animation = 's
|
|
|
19
18
|
ref: ref,
|
|
20
19
|
"data-slot": "swap-root-provider",
|
|
21
20
|
"data-animation": animation,
|
|
22
|
-
className: clsx(Swap_module.root,
|
|
21
|
+
className: clsx(Swap_module.root, className),
|
|
23
22
|
...props
|
|
24
23
|
});
|
|
25
24
|
});
|
|
@@ -27,7 +26,7 @@ const Swap_SwapIndicator = /*#__PURE__*/ forwardRef(function({ className, ...pro
|
|
|
27
26
|
return /*#__PURE__*/ jsx(Swap.Indicator, {
|
|
28
27
|
ref: ref,
|
|
29
28
|
"data-slot": "swap-indicator",
|
|
30
|
-
className: clsx(Swap_module.indicator,
|
|
29
|
+
className: clsx(Swap_module.indicator, className),
|
|
31
30
|
...props
|
|
32
31
|
});
|
|
33
32
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Switch as SwitchPrimitive, useSwitch, useSwitchContext } from '@ark-ui/react/switch';
|
|
2
|
-
import type { ComponentProps
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
3
|
type SwitchSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
type SwitchRootProps = ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
5
5
|
size?: SwitchSize;
|
|
@@ -10,10 +10,11 @@ type SwitchRootProviderProps = ComponentProps<typeof SwitchPrimitive.RootProvide
|
|
|
10
10
|
declare const Switch: import("react").ForwardRefExoticComponent<Omit<SwitchRootProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>> & {
|
|
11
11
|
Root: import("react").ForwardRefExoticComponent<Omit<SwitchRootProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
12
12
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<SwitchRootProviderProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
13
|
+
HiddenInput: import("react").ForwardRefExoticComponent<SwitchPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
13
14
|
Control: import("react").ForwardRefExoticComponent<Omit<SwitchPrimitive.ControlProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
14
15
|
Thumb: import("react").ForwardRefExoticComponent<Omit<SwitchPrimitive.ThumbProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
15
16
|
Label: import("react").ForwardRefExoticComponent<Omit<SwitchPrimitive.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
16
|
-
Context: (props: SwitchPrimitive.ContextProps) => ReactNode;
|
|
17
|
+
Context: (props: SwitchPrimitive.ContextProps) => import("react").ReactNode;
|
|
17
18
|
};
|
|
18
19
|
export { Switch, useSwitch, useSwitchContext };
|
|
19
20
|
export type { SwitchRootProps, SwitchRootProviderProps, SwitchSize };
|
|
@@ -1,37 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Switch, SwitchContext, useSwitch, useSwitchContext } from "@ark-ui/react/switch";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
import {
|
|
6
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
5
|
+
import { forwardRef } from "react";
|
|
7
6
|
import Switch_module from "./Switch.module.js";
|
|
8
|
-
const Switch_SwitchRoot = /*#__PURE__*/ forwardRef(function({
|
|
7
|
+
const Switch_SwitchRoot = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
9
8
|
return /*#__PURE__*/ jsx(Switch.Root, {
|
|
10
9
|
ref: ref,
|
|
11
|
-
asChild: asChild,
|
|
12
10
|
"data-slot": "switch-root",
|
|
13
11
|
"data-size": size,
|
|
14
|
-
className: clsx(Switch_module.root,
|
|
15
|
-
...props
|
|
16
|
-
children: withHiddenInput(children, asChild)
|
|
12
|
+
className: clsx(Switch_module.root, className),
|
|
13
|
+
...props
|
|
17
14
|
});
|
|
18
15
|
});
|
|
19
|
-
const Switch_SwitchRootProvider = /*#__PURE__*/ forwardRef(function({
|
|
16
|
+
const Switch_SwitchRootProvider = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
20
17
|
return /*#__PURE__*/ jsx(Switch.RootProvider, {
|
|
21
18
|
ref: ref,
|
|
22
|
-
asChild: asChild,
|
|
23
19
|
"data-slot": "switch-root-provider",
|
|
24
20
|
"data-size": size,
|
|
25
|
-
className: clsx(Switch_module.root,
|
|
26
|
-
...props
|
|
27
|
-
children: withHiddenInput(children, asChild)
|
|
21
|
+
className: clsx(Switch_module.root, className),
|
|
22
|
+
...props
|
|
28
23
|
});
|
|
29
24
|
});
|
|
30
25
|
const Switch_SwitchControl = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
31
26
|
return /*#__PURE__*/ jsx(Switch.Control, {
|
|
32
27
|
ref: ref,
|
|
33
28
|
"data-slot": "switch-control",
|
|
34
|
-
className: clsx(Switch_module.control,
|
|
29
|
+
className: clsx(Switch_module.control, className),
|
|
35
30
|
...props,
|
|
36
31
|
children: children ?? /*#__PURE__*/ jsx(Switch_SwitchThumb, {})
|
|
37
32
|
});
|
|
@@ -40,7 +35,7 @@ const Switch_SwitchThumb = /*#__PURE__*/ forwardRef(function({ className, ...pro
|
|
|
40
35
|
return /*#__PURE__*/ jsx(Switch.Thumb, {
|
|
41
36
|
ref: ref,
|
|
42
37
|
"data-slot": "switch-thumb",
|
|
43
|
-
className: clsx(Switch_module.thumb,
|
|
38
|
+
className: clsx(Switch_module.thumb, className),
|
|
44
39
|
...props
|
|
45
40
|
});
|
|
46
41
|
});
|
|
@@ -48,32 +43,14 @@ const Switch_SwitchLabel = /*#__PURE__*/ forwardRef(function({ className, ...pro
|
|
|
48
43
|
return /*#__PURE__*/ jsx(Switch.Label, {
|
|
49
44
|
ref: ref,
|
|
50
45
|
"data-slot": "switch-label",
|
|
51
|
-
className: clsx(Switch_module.label,
|
|
46
|
+
className: clsx(Switch_module.label, className),
|
|
52
47
|
...props
|
|
53
48
|
});
|
|
54
49
|
});
|
|
55
|
-
function withHiddenInput(children, asChild) {
|
|
56
|
-
const hiddenInput = /*#__PURE__*/ jsx(SwitchHiddenInput, {});
|
|
57
|
-
if (!asChild) return /*#__PURE__*/ jsxs(Fragment, {
|
|
58
|
-
children: [
|
|
59
|
-
children,
|
|
60
|
-
hiddenInput
|
|
61
|
-
]
|
|
62
|
-
});
|
|
63
|
-
const child = Children.only(children);
|
|
64
|
-
return /*#__PURE__*/ cloneElement(child, {}, child.props.children, hiddenInput);
|
|
65
|
-
}
|
|
66
|
-
function SwitchHiddenInput() {
|
|
67
|
-
const switchApi = useSwitchContext();
|
|
68
|
-
const readOnly = void 0 !== switchApi.getRootProps()['data-readonly'];
|
|
69
|
-
return /*#__PURE__*/ jsx(Switch.HiddenInput, {
|
|
70
|
-
"aria-readonly": readOnly || void 0,
|
|
71
|
-
"data-slot": "switch-hidden-input"
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
50
|
const Switch_Switch = Object.assign(Switch_SwitchRoot, {
|
|
75
51
|
Root: Switch_SwitchRoot,
|
|
76
52
|
RootProvider: Switch_SwitchRootProvider,
|
|
53
|
+
HiddenInput: Switch.HiddenInput,
|
|
77
54
|
Control: Switch_SwitchControl,
|
|
78
55
|
Thumb: Switch_SwitchThumb,
|
|
79
56
|
Label: Switch_SwitchLabel,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
declare const Table: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
2
2
|
interactive?: boolean;
|
|
3
3
|
showColumnBorder?: boolean;
|
|
4
|
-
size?:
|
|
4
|
+
size?: 'sm' | 'md' | 'lg';
|
|
5
5
|
stickyHeader?: boolean;
|
|
6
6
|
striped?: boolean;
|
|
7
|
-
variant?:
|
|
7
|
+
variant?: 'line' | 'outline';
|
|
8
8
|
} & import("react").RefAttributes<HTMLTableElement>> & {
|
|
9
9
|
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
10
10
|
interactive?: boolean;
|
|
11
11
|
showColumnBorder?: boolean;
|
|
12
|
-
size?:
|
|
12
|
+
size?: 'sm' | 'md' | 'lg';
|
|
13
13
|
stickyHeader?: boolean;
|
|
14
14
|
striped?: boolean;
|
|
15
|
-
variant?:
|
|
15
|
+
variant?: 'line' | 'outline';
|
|
16
16
|
} & import("react").RefAttributes<HTMLTableElement>>;
|
|
17
17
|
ScrollArea: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
18
|
Caption: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
19
|
-
side?:
|
|
19
|
+
side?: 'top' | 'bottom';
|
|
20
20
|
} & import("react").RefAttributes<HTMLTableCaptionElement>>;
|
|
21
21
|
ColumnGroup: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ColgroupHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLTableColElement>>;
|
|
22
22
|
Column: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ColHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
@@ -2,7 +2,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { ark } from "@ark-ui/react/factory";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
6
5
|
import Table_module from "./Table.module.js";
|
|
7
6
|
const Table_TableRoot = /*#__PURE__*/ forwardRef(function({ asChild, className, interactive = false, showColumnBorder = false, size = 'md', stickyHeader = false, striped = false, variant = 'line', ...props }, ref) {
|
|
8
7
|
return /*#__PURE__*/ jsx(ark.table, {
|
|
@@ -17,7 +16,7 @@ const Table_TableRoot = /*#__PURE__*/ forwardRef(function({ asChild, className,
|
|
|
17
16
|
"data-sticky-header": stickyHeader || void 0,
|
|
18
17
|
"data-striped": striped || void 0,
|
|
19
18
|
"data-variant": variant,
|
|
20
|
-
className: clsx(Table_module.root,
|
|
19
|
+
className: clsx(Table_module.root, className),
|
|
21
20
|
...props
|
|
22
21
|
});
|
|
23
22
|
});
|
|
@@ -28,7 +27,7 @@ const Table_TableScrollArea = /*#__PURE__*/ forwardRef(function({ asChild, class
|
|
|
28
27
|
"data-scope": "table",
|
|
29
28
|
"data-part": "scroll-area",
|
|
30
29
|
"data-slot": "table-scroll-area",
|
|
31
|
-
className: clsx(Table_module.scrollArea,
|
|
30
|
+
className: clsx(Table_module.scrollArea, className),
|
|
32
31
|
...props
|
|
33
32
|
});
|
|
34
33
|
});
|
|
@@ -40,7 +39,7 @@ const Table_TableCaption = /*#__PURE__*/ forwardRef(function({ asChild, classNam
|
|
|
40
39
|
"data-part": "caption",
|
|
41
40
|
"data-side": side,
|
|
42
41
|
"data-slot": "table-caption",
|
|
43
|
-
className: clsx(Table_module.caption,
|
|
42
|
+
className: clsx(Table_module.caption, className),
|
|
44
43
|
...props
|
|
45
44
|
});
|
|
46
45
|
});
|
|
@@ -51,7 +50,7 @@ const Table_TableColumnGroup = /*#__PURE__*/ forwardRef(function({ asChild, clas
|
|
|
51
50
|
"data-scope": "table",
|
|
52
51
|
"data-part": "column-group",
|
|
53
52
|
"data-slot": "table-column-group",
|
|
54
|
-
className:
|
|
53
|
+
className: className,
|
|
55
54
|
...props
|
|
56
55
|
});
|
|
57
56
|
});
|
|
@@ -63,7 +62,7 @@ const Table_TableColumn = /*#__PURE__*/ forwardRef(function({ asChild, className
|
|
|
63
62
|
"data-part": "column",
|
|
64
63
|
"data-slot": "table-column",
|
|
65
64
|
width: htmlWidth ?? width,
|
|
66
|
-
className:
|
|
65
|
+
className: className,
|
|
67
66
|
...props
|
|
68
67
|
});
|
|
69
68
|
});
|
|
@@ -74,7 +73,7 @@ const Table_TableHeader = /*#__PURE__*/ forwardRef(function({ asChild, className
|
|
|
74
73
|
"data-scope": "table",
|
|
75
74
|
"data-part": "header",
|
|
76
75
|
"data-slot": "table-header",
|
|
77
|
-
className: clsx(Table_module.header,
|
|
76
|
+
className: clsx(Table_module.header, className),
|
|
78
77
|
...props
|
|
79
78
|
});
|
|
80
79
|
});
|
|
@@ -85,7 +84,7 @@ const Table_TableBody = /*#__PURE__*/ forwardRef(function({ asChild, className,
|
|
|
85
84
|
"data-scope": "table",
|
|
86
85
|
"data-part": "body",
|
|
87
86
|
"data-slot": "table-body",
|
|
88
|
-
className: clsx(Table_module.body,
|
|
87
|
+
className: clsx(Table_module.body, className),
|
|
89
88
|
...props
|
|
90
89
|
});
|
|
91
90
|
});
|
|
@@ -96,7 +95,7 @@ const Table_TableFooter = /*#__PURE__*/ forwardRef(function({ asChild, className
|
|
|
96
95
|
"data-scope": "table",
|
|
97
96
|
"data-part": "footer",
|
|
98
97
|
"data-slot": "table-footer",
|
|
99
|
-
className: clsx(Table_module.footer,
|
|
98
|
+
className: clsx(Table_module.footer, className),
|
|
100
99
|
...props
|
|
101
100
|
});
|
|
102
101
|
});
|
|
@@ -107,7 +106,7 @@ const Table_TableRow = /*#__PURE__*/ forwardRef(function({ asChild, className, .
|
|
|
107
106
|
"data-scope": "table",
|
|
108
107
|
"data-part": "row",
|
|
109
108
|
"data-slot": "table-row",
|
|
110
|
-
className: clsx(Table_module.row,
|
|
109
|
+
className: clsx(Table_module.row, className),
|
|
111
110
|
...props
|
|
112
111
|
});
|
|
113
112
|
});
|
|
@@ -119,7 +118,7 @@ const Table_TableColumnHeader = /*#__PURE__*/ forwardRef(function({ asChild, cla
|
|
|
119
118
|
"data-part": "column-header",
|
|
120
119
|
"data-numeric": numeric || void 0,
|
|
121
120
|
"data-slot": "table-column-header",
|
|
122
|
-
className: clsx(Table_module.columnHeader, numeric && Table_module.numeric,
|
|
121
|
+
className: clsx(Table_module.columnHeader, numeric && Table_module.numeric, className),
|
|
123
122
|
...props
|
|
124
123
|
});
|
|
125
124
|
});
|
|
@@ -131,7 +130,7 @@ const Table_TableCell = /*#__PURE__*/ forwardRef(function({ asChild, className,
|
|
|
131
130
|
"data-part": "cell",
|
|
132
131
|
"data-numeric": numeric || void 0,
|
|
133
132
|
"data-slot": "table-cell",
|
|
134
|
-
className: clsx(Table_module.cell, numeric && Table_module.numeric,
|
|
133
|
+
className: clsx(Table_module.cell, numeric && Table_module.numeric, className),
|
|
135
134
|
...props
|
|
136
135
|
});
|
|
137
136
|
});
|
|
@@ -149,7 +148,7 @@ const Table_TableEmpty = /*#__PURE__*/ forwardRef(function({ asChild, children =
|
|
|
149
148
|
"data-part": "empty",
|
|
150
149
|
"data-slot": "table-empty",
|
|
151
150
|
colSpan: colSpan,
|
|
152
|
-
className: clsx(Table_module.cell, Table_module.empty,
|
|
151
|
+
className: clsx(Table_module.cell, Table_module.empty, className),
|
|
153
152
|
...props,
|
|
154
153
|
children: children
|
|
155
154
|
})
|
|
@@ -3,7 +3,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { Tabs, useTabs, useTabsContext } from "@ark-ui/react/tabs";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
6
|
import Tabs_module from "./Tabs.module.js";
|
|
8
7
|
const Tabs_TabsRoot = /*#__PURE__*/ forwardRef(function({ className, orientation, variant = 'default', ...props }, ref) {
|
|
9
8
|
const resolvedVariant = 'vertical' === orientation ? 'default' : variant;
|
|
@@ -11,7 +10,7 @@ const Tabs_TabsRoot = /*#__PURE__*/ forwardRef(function({ className, orientation
|
|
|
11
10
|
ref: ref,
|
|
12
11
|
"data-slot": "tabs-root",
|
|
13
12
|
"data-variant": resolvedVariant,
|
|
14
|
-
className: clsx(Tabs_module.root,
|
|
13
|
+
className: clsx(Tabs_module.root, className),
|
|
15
14
|
orientation: orientation,
|
|
16
15
|
...props
|
|
17
16
|
});
|
|
@@ -23,7 +22,7 @@ const Tabs_TabsRootProvider = /*#__PURE__*/ forwardRef(function({ className, val
|
|
|
23
22
|
ref: ref,
|
|
24
23
|
"data-slot": "tabs-root-provider",
|
|
25
24
|
"data-variant": resolvedVariant,
|
|
26
|
-
className: clsx(Tabs_module.root,
|
|
25
|
+
className: clsx(Tabs_module.root, className),
|
|
27
26
|
value: value,
|
|
28
27
|
...props
|
|
29
28
|
});
|
|
@@ -32,7 +31,7 @@ const Tabs_TabsList = /*#__PURE__*/ forwardRef(function({ className, ...props },
|
|
|
32
31
|
return /*#__PURE__*/ jsx(Tabs.List, {
|
|
33
32
|
ref: ref,
|
|
34
33
|
"data-slot": "tabs-list",
|
|
35
|
-
className: clsx(Tabs_module.list,
|
|
34
|
+
className: clsx(Tabs_module.list, className),
|
|
36
35
|
...props
|
|
37
36
|
});
|
|
38
37
|
});
|
|
@@ -40,7 +39,7 @@ const Tabs_TabsTrigger = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
40
39
|
return /*#__PURE__*/ jsx(Tabs.Trigger, {
|
|
41
40
|
ref: ref,
|
|
42
41
|
"data-slot": "tabs-trigger",
|
|
43
|
-
className: clsx(Tabs_module.trigger,
|
|
42
|
+
className: clsx(Tabs_module.trigger, className),
|
|
44
43
|
...props
|
|
45
44
|
});
|
|
46
45
|
});
|
|
@@ -48,7 +47,7 @@ const Tabs_TabsIndicator = /*#__PURE__*/ forwardRef(function({ className, ...pro
|
|
|
48
47
|
return /*#__PURE__*/ jsx(Tabs.Indicator, {
|
|
49
48
|
ref: ref,
|
|
50
49
|
"data-slot": "tabs-indicator",
|
|
51
|
-
className: clsx(Tabs_module.indicator,
|
|
50
|
+
className: clsx(Tabs_module.indicator, className),
|
|
52
51
|
...props
|
|
53
52
|
});
|
|
54
53
|
});
|
|
@@ -56,7 +55,7 @@ const Tabs_TabsContent = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
56
55
|
return /*#__PURE__*/ jsx(Tabs.Content, {
|
|
57
56
|
ref: ref,
|
|
58
57
|
"data-slot": "tabs-content",
|
|
59
|
-
className: clsx(Tabs_module.content,
|
|
58
|
+
className: clsx(Tabs_module.content, className),
|
|
60
59
|
...props
|
|
61
60
|
});
|
|
62
61
|
});
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
z-index: 0;
|
|
20
20
|
align-items: stretch;
|
|
21
21
|
gap: var(--moduix-tabs-list-gap, var(--moduix-spacing-1));
|
|
22
|
-
width: -moz-fit-content;
|
|
23
22
|
width: fit-content;
|
|
24
23
|
max-width: 100%;
|
|
25
24
|
padding: var(--moduix-tabs-list-padding-y, var(--moduix-tabs-list-padding, var(--moduix-spacing-1)))
|
|
@@ -42,7 +41,7 @@
|
|
|
42
41
|
flex-direction: column;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
|
-
@media (
|
|
44
|
+
@media (width <= 30rem) {
|
|
46
45
|
.list-HWuixw[data-orientation="vertical"] {
|
|
47
46
|
inline-size: min(var(--moduix-tabs-vertical-list-width, 12rem), 40%);
|
|
48
47
|
min-inline-size: 0;
|
|
@@ -121,6 +120,8 @@
|
|
|
121
120
|
}
|
|
122
121
|
|
|
123
122
|
.indicator-Eq3gMQ {
|
|
123
|
+
--transition-duration: var(--moduix-tabs-indicator-transition-duration, var(--moduix-duration-normal));
|
|
124
|
+
--transition-timing-function: var(--moduix-tabs-indicator-transition-timing-function, var(--moduix-ease-in-out));
|
|
124
125
|
z-index: 0;
|
|
125
126
|
top: 50%;
|
|
126
127
|
left: var(--left, 0);
|
|
@@ -129,23 +130,17 @@
|
|
|
129
130
|
border-radius: var(--moduix-tabs-indicator-radius, var(--moduix-radius-md));
|
|
130
131
|
background-color: var(--moduix-tabs-indicator-bg, var(--moduix-color-background));
|
|
131
132
|
box-shadow: var(--moduix-tabs-indicator-shadow, var(--moduix-shadow-sm));
|
|
132
|
-
transition: width var(--moduix-tabs-indicator-transition, var(--moduix-transition-default)),
|
|
133
|
-
height var(--moduix-tabs-indicator-transition, var(--moduix-transition-default)),
|
|
134
|
-
top var(--moduix-tabs-indicator-transition, var(--moduix-transition-default)),
|
|
135
|
-
left var(--moduix-tabs-indicator-transition, var(--moduix-transition-default));
|
|
136
133
|
position: absolute;
|
|
137
134
|
translate: 0 -50%;
|
|
138
135
|
}
|
|
139
136
|
|
|
140
137
|
.root-r9cKMR[data-variant="line"]:not([data-orientation="vertical"]) .indicator-Eq3gMQ {
|
|
138
|
+
--transition-duration: var(--moduix-tabs-line-indicator-transition-duration, var(--moduix-duration-normal));
|
|
139
|
+
--transition-timing-function: var(--moduix-tabs-line-indicator-transition-timing-function, var(--moduix-ease-in-out));
|
|
141
140
|
height: var(--moduix-tabs-line-indicator-size, var(--moduix-spacing-0-5));
|
|
142
141
|
border-radius: var(--moduix-tabs-line-indicator-radius, var(--moduix-radius-full));
|
|
143
142
|
background-color: var(--moduix-tabs-line-indicator-bg, var(--moduix-tabs-tab-color-active, var(--moduix-color-foreground)));
|
|
144
143
|
box-shadow: none;
|
|
145
|
-
transition: width var(--moduix-tabs-line-indicator-transition, var(--moduix-transition-default)),
|
|
146
|
-
height var(--moduix-tabs-line-indicator-transition, var(--moduix-transition-default)),
|
|
147
|
-
top var(--moduix-tabs-line-indicator-transition, var(--moduix-transition-default)),
|
|
148
|
-
left var(--moduix-tabs-line-indicator-transition, var(--moduix-transition-default));
|
|
149
144
|
top: auto;
|
|
150
145
|
bottom: 0;
|
|
151
146
|
translate: none;
|
|
@@ -2,7 +2,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { ark } from "@ark-ui/react/factory";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
6
5
|
import { CloseButton } from "../close-button/index.js";
|
|
7
6
|
import Tag_module from "./Tag.module.js";
|
|
8
7
|
const DEFAULT_CLOSE_LABEL = 'Remove tag';
|
|
@@ -15,7 +14,7 @@ const Tag_TagRoot = /*#__PURE__*/ forwardRef(function({ className, size = 'md',
|
|
|
15
14
|
"data-slot": "tag-root",
|
|
16
15
|
"data-size": size,
|
|
17
16
|
"data-variant": variant,
|
|
18
|
-
className: clsx(Tag_module.root,
|
|
17
|
+
className: clsx(Tag_module.root, className)
|
|
19
18
|
});
|
|
20
19
|
});
|
|
21
20
|
const Tag_TagLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
@@ -25,7 +24,7 @@ const Tag_TagLabel = /*#__PURE__*/ forwardRef(function({ className, ...props },
|
|
|
25
24
|
"data-scope": "tag",
|
|
26
25
|
"data-part": "label",
|
|
27
26
|
"data-slot": "tag-label",
|
|
28
|
-
className: clsx(Tag_module.label,
|
|
27
|
+
className: clsx(Tag_module.label, className)
|
|
29
28
|
});
|
|
30
29
|
});
|
|
31
30
|
const Tag_TagStartElement = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
@@ -35,7 +34,7 @@ const Tag_TagStartElement = /*#__PURE__*/ forwardRef(function({ className, ...pr
|
|
|
35
34
|
"data-scope": "tag",
|
|
36
35
|
"data-part": "start-element",
|
|
37
36
|
"data-slot": "tag-start-element",
|
|
38
|
-
className: clsx(Tag_module.startElement,
|
|
37
|
+
className: clsx(Tag_module.startElement, className)
|
|
39
38
|
});
|
|
40
39
|
});
|
|
41
40
|
const Tag_TagEndElement = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
@@ -45,7 +44,7 @@ const Tag_TagEndElement = /*#__PURE__*/ forwardRef(function({ className, ...prop
|
|
|
45
44
|
"data-scope": "tag",
|
|
46
45
|
"data-part": "end-element",
|
|
47
46
|
"data-slot": "tag-end-element",
|
|
48
|
-
className: clsx(Tag_module.endElement,
|
|
47
|
+
className: clsx(Tag_module.endElement, className)
|
|
49
48
|
});
|
|
50
49
|
});
|
|
51
50
|
const Tag_TagCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }, ref) {
|
|
@@ -58,7 +57,7 @@ const Tag_TagCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, classNa
|
|
|
58
57
|
"data-slot": "tag-close-trigger",
|
|
59
58
|
"aria-label": ariaLabel ?? (asChild || null != children || null != ariaLabelledBy ? void 0 : DEFAULT_CLOSE_LABEL),
|
|
60
59
|
"aria-labelledby": ariaLabelledBy,
|
|
61
|
-
className: clsx(Tag_module.closeTrigger,
|
|
60
|
+
className: clsx(Tag_module.closeTrigger, className),
|
|
62
61
|
children: children
|
|
63
62
|
});
|
|
64
63
|
});
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
var(--moduix-tag-border-color, var(--moduix-tag-default-border-color, transparent));
|
|
8
8
|
border-radius: var(--moduix-tag-radius, var(--moduix-radius-full));
|
|
9
9
|
background-color: var(--moduix-tag-bg, var(--moduix-tag-default-bg, var(--moduix-color-primary)));
|
|
10
|
-
width: -moz-fit-content;
|
|
11
10
|
width: fit-content;
|
|
12
11
|
min-width: 0;
|
|
13
12
|
max-width: 100%;
|
|
@@ -91,13 +90,12 @@
|
|
|
91
90
|
--moduix-close-button-icon-size: var(--moduix-tag-close-trigger-icon-size, var(--moduix-spacing-2-5));
|
|
92
91
|
--moduix-close-button-bg: var(--moduix-tag-close-trigger-bg, transparent);
|
|
93
92
|
--moduix-close-button-bg-hover: var(--moduix-tag-close-trigger-bg-hover, color-mix(in oklab, currentColor 12%, transparent));
|
|
94
|
-
--moduix-close-button-color:
|
|
95
|
-
--moduix-close-button-color-hover:
|
|
93
|
+
--moduix-close-button-color: currentColor;
|
|
94
|
+
--moduix-close-button-color-hover: currentColor;
|
|
96
95
|
--moduix-close-button-disabled-opacity: var(--moduix-tag-disabled-opacity, var(--moduix-opacity-disabled));
|
|
97
96
|
--moduix-close-button-focus-ring-width: var(--moduix-tag-close-trigger-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)));
|
|
98
97
|
--moduix-close-button-focus-ring-color: var(--moduix-tag-close-trigger-focus-ring-color, var(--moduix-color-ring));
|
|
99
98
|
--moduix-close-button-focus-ring-offset: var(--moduix-tag-close-trigger-focus-ring-offset, 0);
|
|
100
|
-
--moduix-close-button-transition: var(--moduix-tag-transition, var(--moduix-transition-default));
|
|
101
99
|
}
|
|
102
100
|
}
|
|
103
101
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { TagsInput as TagsInputPrimitive, useTagsInput, useTagsInputContext, useTagsInputItemContext } from '@ark-ui/react/tags-input';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
2
|
declare function TagsInputItems(): import("react").JSX.Element;
|
|
4
3
|
declare const TagsInput: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
4
|
Root: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
5
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
HiddenInput: import("react").ForwardRefExoticComponent<TagsInputPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
7
7
|
Label: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
8
8
|
Control: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
9
|
Item: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
-
ItemContext: (props: TagsInputPrimitive.ItemContextProps) => ReactNode;
|
|
10
|
+
ItemContext: (props: TagsInputPrimitive.ItemContextProps) => import("react").ReactNode;
|
|
11
11
|
ItemPreview: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ItemPreviewProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
12
|
ItemText: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ItemTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
13
13
|
ItemDeleteTrigger: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ItemDeleteTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
14
|
ItemInput: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ItemInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
15
15
|
Input: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
16
16
|
ClearTrigger: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ClearTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
17
|
-
Context: (props: TagsInputPrimitive.ContextProps) => ReactNode;
|
|
17
|
+
Context: (props: TagsInputPrimitive.ContextProps) => import("react").ReactNode;
|
|
18
18
|
Items: typeof TagsInputItems;
|
|
19
19
|
};
|
|
20
20
|
export { TagsInput, useTagsInput, useTagsInputContext, useTagsInputItemContext };
|