@gamecrafters/base-ui 0.0.41 → 0.0.42

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.
Files changed (37) hide show
  1. package/build/components/index.d.ts +2 -0
  2. package/build/components/layer-dialog/LayerDialog.d.ts +7 -0
  3. package/build/components/layer-dialog/LayerDialog.types.d.ts +65 -0
  4. package/build/components/layer-dialog/LayerDialogAction.d.ts +8 -0
  5. package/build/components/layer-dialog/LayerDialogActions.d.ts +4 -0
  6. package/build/components/layer-dialog/LayerDialogAlert.d.ts +7 -0
  7. package/build/components/layer-dialog/LayerDialogBody.d.ts +4 -0
  8. package/build/components/layer-dialog/LayerDialogContent.d.ts +4 -0
  9. package/build/components/layer-dialog/LayerDialogContext.d.ts +12 -0
  10. package/build/components/layer-dialog/LayerDialogDescription.d.ts +5 -0
  11. package/build/components/layer-dialog/LayerDialogPopup.d.ts +9 -0
  12. package/build/components/layer-dialog/LayerDialogTitle.d.ts +5 -0
  13. package/build/components/layer-dialog/LayerDialogTrigger.d.ts +5 -0
  14. package/build/components/layer-dialog/index.d.ts +34 -0
  15. package/build/components/layer-dialog/useLayerDialog.d.ts +6 -0
  16. package/build/components/tag-input/TagInput.d.ts +8 -0
  17. package/build/components/tag-input/TagInput.types.d.ts +175 -0
  18. package/build/components/tag-input/TagInputClearTrigger.d.ts +7 -0
  19. package/build/components/tag-input/TagInputConsumer.d.ts +7 -0
  20. package/build/components/tag-input/TagInputContext.d.ts +17 -0
  21. package/build/components/tag-input/TagInputControl.d.ts +5 -0
  22. package/build/components/tag-input/TagInputHiddenInput.d.ts +4 -0
  23. package/build/components/tag-input/TagInputInput.d.ts +5 -0
  24. package/build/components/tag-input/TagInputItem.d.ts +6 -0
  25. package/build/components/tag-input/TagInputItemConsumer.d.ts +7 -0
  26. package/build/components/tag-input/TagInputItemDeleteTrigger.d.ts +6 -0
  27. package/build/components/tag-input/TagInputItemInput.d.ts +5 -0
  28. package/build/components/tag-input/TagInputItemPreview.d.ts +5 -0
  29. package/build/components/tag-input/TagInputItemText.d.ts +5 -0
  30. package/build/components/tag-input/TagInputLabel.d.ts +6 -0
  31. package/build/components/tag-input/TagInputRootProvider.d.ts +10 -0
  32. package/build/components/tag-input/index.d.ts +73 -0
  33. package/build/components/tag-input/useTagInput.d.ts +2 -0
  34. package/build/main.cjs.js +72 -72
  35. package/build/main.esm.js +71 -71
  36. package/build/styles/main.css +1 -1
  37. package/package.json +1 -1
@@ -66,6 +66,7 @@ export * from "./keybinding-hint";
66
66
  export * from "./label";
67
67
  export * from "./label-group";
68
68
  export * from "./layer-card";
69
+ export * from "./layer-dialog";
69
70
  export * from "./link";
70
71
  export * from "./list";
71
72
  export * from "./map";
@@ -116,6 +117,7 @@ export * from "./swap";
116
117
  export * from "./switch";
117
118
  export * from "./table-of-contents";
118
119
  export * from "./tabs";
120
+ export * from "./tag-input";
119
121
  export * from "./text";
120
122
  export * from "./text-input";
121
123
  export * from "./textarea";
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import type { LayerDialogProps } from "./LayerDialog.types";
3
+ declare function LayerDialog(props: LayerDialogProps): React.JSX.Element;
4
+ declare namespace LayerDialog {
5
+ var displayName: string;
6
+ }
7
+ export default LayerDialog;
@@ -0,0 +1,65 @@
1
+ import type * as React from "react";
2
+ import type { ButtonProps } from "../button";
3
+ export type LayerDialogOpenChangeGesture = "trigger-press" | "close-button" | "dismiss-button" | "escape" | "click-outside" | "swipe" | "imperative";
4
+ export type LayerDialogSize = "small" | "medium" | "large" | "xlarge";
5
+ export type LayerDialogVerticalAlign = "top" | "center";
6
+ export type LayerDialogActionVariant = "primary" | "danger";
7
+ export type LayerDialogInstance = {
8
+ close: () => void;
9
+ };
10
+ export type LayerDialogProps = {
11
+ open?: boolean;
12
+ defaultOpen?: boolean;
13
+ onOpenChange?: (open: boolean, gesture: LayerDialogOpenChangeGesture) => void;
14
+ dismissDisabled?: boolean;
15
+ modal?: boolean;
16
+ disablePointerDismissal?: boolean;
17
+ actionsRef?: React.Ref<LayerDialogInstance | null>;
18
+ children?: React.ReactNode;
19
+ };
20
+ export type LayerDialogAlertProps = LayerDialogProps;
21
+ export type LayerDialogTriggerProps<As extends React.ElementType = "button"> = ButtonProps<As>;
22
+ export type LayerDialogContentProps = {
23
+ children: React.ReactNode;
24
+ size?: LayerDialogSize;
25
+ verticalAlign?: LayerDialogVerticalAlign;
26
+ closeLabel?: string;
27
+ portalContainerName?: string;
28
+ initialFocusRef?: React.RefObject<HTMLElement | null>;
29
+ returnFocusRef?: React.RefObject<HTMLElement | null>;
30
+ className?: string;
31
+ };
32
+ export type LayerDialogTitleProps = Omit<React.ComponentPropsWithoutRef<"h2">, "id"> & {
33
+ className?: string;
34
+ };
35
+ export type LayerDialogDescriptionProps = Omit<React.ComponentPropsWithoutRef<"p">, "id"> & {
36
+ className?: string;
37
+ };
38
+ export type LayerDialogBodyProps = {
39
+ children?: React.ReactNode;
40
+ className?: string;
41
+ };
42
+ export type LayerDialogActionsProps = {
43
+ children: React.ReactNode;
44
+ dismissLabel?: string;
45
+ className?: string;
46
+ };
47
+ export type LayerDialogActionProps = Omit<ButtonProps, "as" | "variant" | "size" | "block" | "children"> & {
48
+ children: React.ReactNode;
49
+ variant?: LayerDialogActionVariant;
50
+ menu?: React.ReactNode[];
51
+ menuLabel?: string;
52
+ };
53
+ export type LayerDialogContextValue = {
54
+ open: boolean;
55
+ setOpen: (open: boolean, gesture: LayerDialogOpenChangeGesture) => void;
56
+ dismiss: (gesture: LayerDialogOpenChangeGesture) => void;
57
+ alert: boolean;
58
+ modal: boolean;
59
+ dismissDisabled: boolean;
60
+ pointerDismissal: boolean;
61
+ narrow: boolean;
62
+ popupId: string;
63
+ titleId: string;
64
+ descriptionId: string;
65
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<import("..").ButtonProps, "size" | "as" | "children" | "variant" | "block"> & {
3
+ children: React.ReactNode;
4
+ variant?: import("./LayerDialog.types").LayerDialogActionVariant;
5
+ menu?: React.ReactNode[];
6
+ menuLabel?: string;
7
+ } & React.RefAttributes<any>) => React.ReactNode;
8
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { LayerDialogActionsProps } from "./LayerDialog.types";
3
+ declare const _default: (props: LayerDialogActionsProps & React.RefAttributes<any>) => React.ReactNode;
4
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import type { LayerDialogAlertProps } from "./LayerDialog.types";
3
+ declare function LayerDialogAlert(props: LayerDialogAlertProps): React.JSX.Element;
4
+ declare namespace LayerDialogAlert {
5
+ var displayName: string;
6
+ }
7
+ export default LayerDialogAlert;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { LayerDialogBodyProps } from "./LayerDialog.types";
3
+ declare const _default: (props: LayerDialogBodyProps & React.RefAttributes<any>) => React.ReactNode;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { LayerDialogContentProps } from "./LayerDialog.types";
3
+ declare const _default: (props: LayerDialogContentProps & React.RefAttributes<any>) => React.ReactNode;
4
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import type * as React from "react";
2
+ import type { LayerDialogContextValue } from "./LayerDialog.types";
3
+ export declare const LayerDialogContext: React.Context<LayerDialogContextValue>;
4
+ export declare const useLayerDialogContext: () => LayerDialogContextValue;
5
+ export type LayerDialogBodySlots = {
6
+ title: React.ReactNode;
7
+ description: React.ReactNode;
8
+ actions: React.ReactNode;
9
+ showCloseButton: boolean;
10
+ closeLabel: string;
11
+ };
12
+ export declare const LayerDialogBodySlotsContext: React.Context<LayerDialogBodySlots>;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "id"> & {
3
+ className?: string;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import type { UsePresenceReturn } from "../presence";
3
+ import type { LayerDialogContentProps } from "./LayerDialog.types";
4
+ declare const _default: (props: Omit<LayerDialogContentProps, "children" | "closeLabel"> & {
5
+ presence: UsePresenceReturn;
6
+ actions?: React.ReactNode;
7
+ children: React.ReactNode;
8
+ } & React.RefAttributes<any>) => React.ReactNode;
9
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, "id"> & {
3
+ className?: string;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: <As extends React.ElementType = "button">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "button" : As> & import("..").ButtonBaseProps & import("..").ButtonContentProps, "as"> & {
3
+ as?: As | undefined;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import LayerDialogBase from "./LayerDialog";
2
+ import LayerDialogAction from "./LayerDialogAction";
3
+ import LayerDialogActions from "./LayerDialogActions";
4
+ import LayerDialogAlert from "./LayerDialogAlert";
5
+ import LayerDialogBody from "./LayerDialogBody";
6
+ import LayerDialogContent from "./LayerDialogContent";
7
+ import LayerDialogDescription from "./LayerDialogDescription";
8
+ import LayerDialogTitle from "./LayerDialogTitle";
9
+ import LayerDialogTrigger from "./LayerDialogTrigger";
10
+ export declare const LayerDialog: typeof LayerDialogBase & {
11
+ Root: typeof LayerDialogBase;
12
+ Alert: typeof LayerDialogAlert;
13
+ Trigger: <As extends React.ElementType = "button">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "button" : As> & import("..").ButtonBaseProps & import("..").ButtonContentProps, "as"> & {
14
+ as?: As | undefined;
15
+ } & import("react").RefAttributes<any>) => React.ReactNode;
16
+ Content: (props: import("./LayerDialog.types").LayerDialogContentProps & import("react").RefAttributes<any>) => React.ReactNode;
17
+ Title: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, "id"> & {
18
+ className?: string;
19
+ } & import("react").RefAttributes<any>) => React.ReactNode;
20
+ Description: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "id"> & {
21
+ className?: string;
22
+ } & import("react").RefAttributes<any>) => React.ReactNode;
23
+ Body: (props: import("./LayerDialog.types").LayerDialogBodyProps & import("react").RefAttributes<any>) => React.ReactNode;
24
+ Actions: (props: import("./LayerDialog.types").LayerDialogActionsProps & import("react").RefAttributes<any>) => React.ReactNode;
25
+ Action: (props: Omit<import("..").ButtonProps, "size" | "as" | "children" | "variant" | "block"> & {
26
+ children: React.ReactNode;
27
+ variant?: import("./LayerDialog.types").LayerDialogActionVariant;
28
+ menu?: React.ReactNode[];
29
+ menuLabel?: string;
30
+ } & import("react").RefAttributes<any>) => React.ReactNode;
31
+ };
32
+ export { LayerDialogAlert, LayerDialogTrigger, LayerDialogContent, LayerDialogTitle, LayerDialogDescription, LayerDialogBody, LayerDialogActions, LayerDialogAction, };
33
+ export { LayerDialogContext, useLayerDialogContext } from "./LayerDialogContext";
34
+ export * from "./LayerDialog.types";
@@ -0,0 +1,6 @@
1
+ import type { LayerDialogContextValue, LayerDialogProps } from "./LayerDialog.types";
2
+ type UseLayerDialogProps = Omit<LayerDialogProps, "children"> & {
3
+ alert: boolean;
4
+ };
5
+ export declare const useLayerDialog: (props: UseLayerDialogProps) => LayerDialogContextValue;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof import("./TagInput.types").UseTagInputProps> & import("./TagInput.types").UseTagInputProps & {
3
+ size?: import("..").TextInputSize;
4
+ block?: boolean;
5
+ contrast?: boolean;
6
+ className?: string;
7
+ } & React.RefAttributes<any>) => React.ReactNode;
8
+ export default _default;
@@ -0,0 +1,175 @@
1
+ import type * as React from "react";
2
+ import type { ButtonVisual } from "../button";
3
+ import type { TextInputSize } from "../text-input/TextInput.types";
4
+ export type TagInputInvalidReason = "rangeOverflow" | "invalidTag";
5
+ export type TagInputBlurBehavior = "add" | "clear";
6
+ export type TagInputTranslations = {
7
+ clearTriggerLabel?: string;
8
+ deleteTagTriggerLabel?: (value: string) => string;
9
+ tagAdded?: (value: string) => string;
10
+ tagsPasted?: (values: string[]) => string;
11
+ tagEdited?: (value: string) => string;
12
+ tagUpdated?: (value: string) => string;
13
+ tagDeleted?: (value: string) => string;
14
+ tagSelected?: (value: string) => string;
15
+ noTagsSelected?: string;
16
+ };
17
+ export type TagInputIds = {
18
+ root?: string;
19
+ label?: string;
20
+ control?: string;
21
+ input?: string;
22
+ hiddenInput?: string;
23
+ clearTrigger?: string;
24
+ };
25
+ export type TagInputItemIds = {
26
+ item: string;
27
+ preview: string;
28
+ input: string;
29
+ deleteTrigger: string;
30
+ };
31
+ export type UseTagInputProps = {
32
+ value?: string[];
33
+ defaultValue?: string[];
34
+ inputValue?: string;
35
+ defaultInputValue?: string;
36
+ delimiter?: string | RegExp;
37
+ max?: number;
38
+ allowOverflow?: boolean;
39
+ maxLength?: number;
40
+ allowDuplicates?: boolean;
41
+ addOnPaste?: boolean;
42
+ blurBehavior?: TagInputBlurBehavior;
43
+ editable?: boolean;
44
+ sanitizeValue?: (value: string) => string;
45
+ validate?: (inputValue: string, value: string[]) => boolean;
46
+ placeholder?: string;
47
+ autoFocus?: boolean;
48
+ disabled?: boolean;
49
+ readOnly?: boolean;
50
+ required?: boolean;
51
+ invalid?: boolean;
52
+ name?: string;
53
+ form?: string;
54
+ id?: string;
55
+ ids?: TagInputIds;
56
+ translations?: TagInputTranslations;
57
+ onValueChange?: (value: string[]) => void;
58
+ onInputValueChange?: (inputValue: string) => void;
59
+ onHighlightChange?: (highlightedValue: string | null) => void;
60
+ onValueInvalid?: (reason: TagInputInvalidReason) => void;
61
+ };
62
+ export type TagInputItemOptions = {
63
+ index: number;
64
+ value: string;
65
+ disabled?: boolean;
66
+ };
67
+ export type TagInputItemState = {
68
+ index: number;
69
+ value: string;
70
+ ids: TagInputItemIds;
71
+ editing: boolean;
72
+ highlighted: boolean;
73
+ disabled: boolean;
74
+ };
75
+ export type TagInputAnnouncement = {
76
+ message: string;
77
+ count: number;
78
+ };
79
+ export type UseTagInputReturn = {
80
+ value: string[];
81
+ valueAsString: string;
82
+ inputValue: string;
83
+ count: number;
84
+ empty: boolean;
85
+ atMax: boolean;
86
+ focused: boolean;
87
+ highlightedIndex: number | null;
88
+ editingIndex: number | null;
89
+ editedValue: string;
90
+ placeholder?: string;
91
+ maxLength?: number;
92
+ editable: boolean;
93
+ disabled: boolean;
94
+ readOnly: boolean;
95
+ required: boolean;
96
+ invalid: boolean;
97
+ name?: string;
98
+ form?: string;
99
+ ids: Required<TagInputIds>;
100
+ describedBy?: string;
101
+ translations: Required<TagInputTranslations>;
102
+ announcement: TagInputAnnouncement;
103
+ setValue: (value: string[]) => void;
104
+ clearValue: (index?: number) => void;
105
+ addValue: (value: string) => void;
106
+ setValueAtIndex: (index: number, value: string) => void;
107
+ setInputValue: (value: string) => void;
108
+ clearInputValue: () => void;
109
+ focus: () => void;
110
+ getItemState: (options: TagInputItemOptions) => TagInputItemState;
111
+ rootRef: React.RefObject<HTMLDivElement | null>;
112
+ handleRootFocus: () => void;
113
+ handleControlMouseDown: (event: React.MouseEvent<HTMLElement>) => void;
114
+ handleInputChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
115
+ handleInputKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
116
+ handleInputPaste: () => void;
117
+ handleItemPreviewMouseDown: (event: React.MouseEvent<HTMLElement>, options: TagInputItemOptions) => void;
118
+ handleItemPreviewDoubleClick: (options: TagInputItemOptions) => void;
119
+ handleItemInputChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
120
+ handleItemInputKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
121
+ handleItemInputBlur: () => void;
122
+ handleItemDelete: (options: TagInputItemOptions) => void;
123
+ handleClear: () => void;
124
+ };
125
+ type TagInputFieldProps = {
126
+ size?: TextInputSize;
127
+ block?: boolean;
128
+ contrast?: boolean;
129
+ className?: string;
130
+ };
131
+ export type TagInputProps = Omit<React.ComponentPropsWithoutRef<"div">, keyof UseTagInputProps> & UseTagInputProps & TagInputFieldProps;
132
+ export type TagInputRootProviderProps = Omit<React.ComponentPropsWithoutRef<"div">, "defaultValue"> & TagInputFieldProps & {
133
+ value: UseTagInputReturn;
134
+ };
135
+ export type TagInputLabelProps = React.ComponentPropsWithoutRef<"label"> & {
136
+ visuallyHidden?: boolean;
137
+ className?: string;
138
+ };
139
+ export type TagInputControlProps = React.ComponentPropsWithoutRef<"div"> & {
140
+ className?: string;
141
+ };
142
+ export type TagInputInputProps = Omit<React.ComponentPropsWithoutRef<"input">, "value" | "defaultValue" | "size"> & {
143
+ className?: string;
144
+ };
145
+ export type TagInputClearTriggerProps = Omit<React.ComponentPropsWithoutRef<"button">, "children" | "aria-label" | "aria-labelledby"> & {
146
+ icon?: ButtonVisual;
147
+ label?: string;
148
+ className?: string;
149
+ };
150
+ export type TagInputItemProps = Omit<React.ComponentPropsWithoutRef<"div">, "children"> & TagInputItemOptions & {
151
+ children?: React.ReactNode;
152
+ className?: string;
153
+ };
154
+ export type TagInputItemPreviewProps = React.ComponentPropsWithoutRef<"div"> & {
155
+ className?: string;
156
+ };
157
+ export type TagInputItemTextProps = React.ComponentPropsWithoutRef<"span"> & {
158
+ className?: string;
159
+ };
160
+ export type TagInputItemInputProps = Omit<React.ComponentPropsWithoutRef<"input">, "value" | "defaultValue" | "size"> & {
161
+ className?: string;
162
+ };
163
+ export type TagInputItemDeleteTriggerProps = Omit<React.ComponentPropsWithoutRef<"button">, "aria-label" | "aria-labelledby"> & {
164
+ label?: string;
165
+ className?: string;
166
+ };
167
+ export type TagInputHiddenInputProps = Omit<React.ComponentPropsWithoutRef<"input">, "value" | "defaultValue" | "type">;
168
+ export type TagInputConsumerProps = {
169
+ children: (tagInput: UseTagInputReturn) => React.ReactNode;
170
+ };
171
+ export type TagInputItemConsumerProps = {
172
+ children: (item: TagInputItemState) => React.ReactNode;
173
+ };
174
+ export type TagInputContextValue = UseTagInputReturn & Omit<TagInputFieldProps, "className">;
175
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "aria-label" | "aria-labelledby" | "children"> & {
3
+ icon?: import("..").ButtonVisual;
4
+ label?: string;
5
+ className?: string;
6
+ } & React.RefAttributes<any>) => React.ReactNode;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import type { TagInputConsumerProps } from "./TagInput.types";
3
+ declare function TagInputConsumer({ children }: TagInputConsumerProps): React.JSX.Element | null;
4
+ declare namespace TagInputConsumer {
5
+ var displayName: string;
6
+ }
7
+ export default TagInputConsumer;
@@ -0,0 +1,17 @@
1
+ import type { TagInputContextValue, TagInputItemState, UseTagInputReturn } from "./TagInput.types";
2
+ export declare const TagInputContext: import("react").Context<TagInputContextValue | undefined>;
3
+ export declare const useTagInputContext: () => TagInputContextValue | undefined;
4
+ export declare const TagInputItemContext: import("react").Context<TagInputItemState | undefined>;
5
+ export declare const useTagInputItemContext: () => TagInputItemState | undefined;
6
+ export declare const getStateAttributes: ({ focused, disabled, readOnly, invalid, empty, }: Pick<UseTagInputReturn, "focused" | "disabled" | "readOnly" | "invalid" | "empty">) => {
7
+ "data-focus": true | undefined;
8
+ "data-disabled": true | undefined;
9
+ "data-readonly": true | undefined;
10
+ "data-invalid": true | undefined;
11
+ "data-empty": true | undefined;
12
+ };
13
+ export declare const getItemStateAttributes: ({ highlighted, editing, disabled, }: Pick<TagInputItemState, "highlighted" | "editing" | "disabled">) => {
14
+ "data-highlighted": true | undefined;
15
+ "data-editing": true | undefined;
16
+ "data-disabled": true | undefined;
17
+ };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ className?: string;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { TagInputHiddenInputProps } from "./TagInput.types";
3
+ declare const _default: (props: TagInputHiddenInputProps & React.RefAttributes<any>) => React.ReactNode;
4
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "value" | "defaultValue"> & {
3
+ className?: string;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & import("./TagInput.types").TagInputItemOptions & {
3
+ children?: React.ReactNode;
4
+ className?: string;
5
+ } & React.RefAttributes<any>) => React.ReactNode;
6
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import type { TagInputItemConsumerProps } from "./TagInput.types";
3
+ declare function TagInputItemConsumer({ children }: TagInputItemConsumerProps): React.JSX.Element | null;
4
+ declare namespace TagInputItemConsumer {
5
+ var displayName: string;
6
+ }
7
+ export default TagInputItemConsumer;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "aria-label" | "aria-labelledby"> & {
3
+ label?: string;
4
+ className?: string;
5
+ } & React.RefAttributes<any>) => React.ReactNode;
6
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "value" | "defaultValue"> & {
3
+ className?: string;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ className?: string;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
+ className?: string;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
3
+ visuallyHidden?: boolean;
4
+ className?: string;
5
+ } & React.RefAttributes<any>) => React.ReactNode;
6
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "defaultValue"> & {
3
+ size?: import("..").TextInputSize;
4
+ block?: boolean;
5
+ contrast?: boolean;
6
+ className?: string;
7
+ } & {
8
+ value: import("./TagInput.types").UseTagInputReturn;
9
+ } & React.RefAttributes<any>) => React.ReactNode;
10
+ export default _default;
@@ -0,0 +1,73 @@
1
+ import TagInputClearTrigger from "./TagInputClearTrigger";
2
+ import TagInputConsumer from "./TagInputConsumer";
3
+ import TagInputControl from "./TagInputControl";
4
+ import TagInputHiddenInput from "./TagInputHiddenInput";
5
+ import TagInputInput from "./TagInputInput";
6
+ import TagInputItem from "./TagInputItem";
7
+ import TagInputItemConsumer from "./TagInputItemConsumer";
8
+ import TagInputItemDeleteTrigger from "./TagInputItemDeleteTrigger";
9
+ import TagInputItemInput from "./TagInputItemInput";
10
+ import TagInputItemPreview from "./TagInputItemPreview";
11
+ import TagInputItemText from "./TagInputItemText";
12
+ import TagInputLabel from "./TagInputLabel";
13
+ import TagInputRootProvider from "./TagInputRootProvider";
14
+ export declare const TagInput: ((props: Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof import("./TagInput.types").UseTagInputProps> & import("./TagInput.types").UseTagInputProps & {
15
+ size?: import("..").TextInputSize;
16
+ block?: boolean;
17
+ contrast?: boolean;
18
+ className?: string;
19
+ } & import("react").RefAttributes<any>) => React.ReactNode) & {
20
+ Root: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof import("./TagInput.types").UseTagInputProps> & import("./TagInput.types").UseTagInputProps & {
21
+ size?: import("..").TextInputSize;
22
+ block?: boolean;
23
+ contrast?: boolean;
24
+ className?: string;
25
+ } & import("react").RefAttributes<any>) => React.ReactNode;
26
+ RootProvider: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "defaultValue"> & {
27
+ size?: import("..").TextInputSize;
28
+ block?: boolean;
29
+ contrast?: boolean;
30
+ className?: string;
31
+ } & {
32
+ value: import("./TagInput.types").UseTagInputReturn;
33
+ } & import("react").RefAttributes<any>) => React.ReactNode;
34
+ Context: typeof TagInputConsumer;
35
+ Label: (props: Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
36
+ visuallyHidden?: boolean;
37
+ className?: string;
38
+ } & import("react").RefAttributes<any>) => React.ReactNode;
39
+ Control: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
40
+ className?: string;
41
+ } & import("react").RefAttributes<any>) => React.ReactNode;
42
+ Input: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "value" | "defaultValue"> & {
43
+ className?: string;
44
+ } & import("react").RefAttributes<any>) => React.ReactNode;
45
+ ClearTrigger: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "aria-label" | "aria-labelledby" | "children"> & {
46
+ icon?: import("..").ButtonVisual;
47
+ label?: string;
48
+ className?: string;
49
+ } & import("react").RefAttributes<any>) => React.ReactNode;
50
+ Item: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & import("./TagInput.types").TagInputItemOptions & {
51
+ children?: React.ReactNode;
52
+ className?: string;
53
+ } & import("react").RefAttributes<any>) => React.ReactNode;
54
+ ItemContext: typeof TagInputItemConsumer;
55
+ ItemPreview: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
56
+ className?: string;
57
+ } & import("react").RefAttributes<any>) => React.ReactNode;
58
+ ItemText: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
59
+ className?: string;
60
+ } & import("react").RefAttributes<any>) => React.ReactNode;
61
+ ItemDeleteTrigger: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "aria-label" | "aria-labelledby"> & {
62
+ label?: string;
63
+ className?: string;
64
+ } & import("react").RefAttributes<any>) => React.ReactNode;
65
+ ItemInput: (props: Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "size" | "value" | "defaultValue"> & {
66
+ className?: string;
67
+ } & import("react").RefAttributes<any>) => React.ReactNode;
68
+ HiddenInput: (props: import("./TagInput.types").TagInputHiddenInputProps & import("react").RefAttributes<any>) => React.ReactNode;
69
+ };
70
+ export { TagInputRootProvider, TagInputConsumer, TagInputLabel, TagInputControl, TagInputInput, TagInputClearTrigger, TagInputItem, TagInputItemConsumer, TagInputItemPreview, TagInputItemText, TagInputItemDeleteTrigger, TagInputItemInput, TagInputHiddenInput, };
71
+ export { TagInputContext, TagInputItemContext, useTagInputContext, useTagInputItemContext, } from "./TagInputContext";
72
+ export { useTagInput } from "./useTagInput";
73
+ export * from "./TagInput.types";
@@ -0,0 +1,2 @@
1
+ import type { UseTagInputProps, UseTagInputReturn } from "./TagInput.types";
2
+ export declare const useTagInput: (props?: UseTagInputProps) => UseTagInputReturn;