@vuu-ui/vuu-ui-controls 3.3.17 → 4.0.0-alpha.10
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/package.json +12 -13
- package/src/context-panel-provider/ContextPanelProvider.js +28 -40
- package/src/icon-button/Icon.js +1 -0
- package/src/icon-button/IconButton.js +1 -1
- package/src/index.js +1 -1
- package/src/instrument-picker/useTablePicker.js +3 -2
- package/src/item-picker/ItemPicker.js +79 -53
- package/src/tabstrip/Tabstrip.js +1 -1
- package/types/calendar/useCalendar.d.ts +3 -3
- package/types/calendar/useSelection.d.ts +1 -1
- package/types/context-panel-provider/ContextPanelProvider.d.ts +4 -7
- package/types/date-input/DateInput.d.ts +1 -1
- package/types/date-picker/DatePicker.d.ts +1 -1
- package/types/date-picker/DatePickerContext.d.ts +2 -2
- package/types/date-picker/DatePickerPanel.d.ts +1 -1
- package/types/drag-drop/DragDropProvider.d.ts +1 -1
- package/types/hover-overlay/HoverOverlay.d.ts +1 -1
- package/types/icon-button/Icon.d.ts +2 -2
- package/types/icon-button/IconButton.d.ts +1 -1
- package/types/icon-button/ToggleIconButton.d.ts +1 -1
- package/types/index.d.ts +1 -2
- package/types/instrument-picker/SearchCell.d.ts +1 -1
- package/types/instrument-picker/TablePicker.d.ts +1 -1
- package/types/instrument-picker/useTablePicker.d.ts +5 -5
- package/types/item-picker/ItemPicker.d.ts +26 -5
- package/types/item-picker/useItemPicker.d.ts +4 -3
- package/types/modal-provider/ModalProvider.d.ts +1 -1
- package/types/price-ticker/PriceTicker.d.ts +1 -1
- package/types/prompt/Prompt.d.ts +1 -1
- package/types/sortable-list/SortableList.d.ts +2 -2
- package/types/split-button/useSplitButton.d.ts +131 -131
- package/types/table-search/SearchCell.d.ts +1 -1
- package/types/table-search/TableSearch.d.ts +1 -1
- package/types/tabs-next/hooks/useOverflow.d.ts +1 -1
- package/types/tabstrip/Tab.d.ts +1 -1
- package/types/tabstrip/TabMenu.d.ts +1 -1
- package/types/tabstrip/Tabstrip.d.ts +3 -2
- package/types/tabstrip/useTabstrip.d.ts +1 -1
- package/types/toolbar/Toolbar.d.ts +2 -1
- package/types/toolbar/useToolbar.d.ts +1 -1
- package/types/vuu-date-picker/VuuDatePicker.d.ts +1 -1
- package/types/vuu-time-picker/VuuTimePicker.d.ts +1 -1
- package/types/vuu-typeahead-input/VuuTypeaheadInput.d.ts +1 -1
- package/src/modal-provider/ModalProvider.js +0 -147
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type ChangeEventHandler, type MouseEventHandler } from "react";
|
|
2
|
+
export type SelectedItemsChangeHandler = (newSelectedItems: readonly ItemDescriptor[]) => void;
|
|
2
3
|
/** This is a public description of an Item that can be displayed in the ItemPicker component, defining all the
|
|
3
4
|
* mandatory and option attributes that can be defined by the client. */
|
|
4
5
|
export interface ItemDescriptor {
|
|
@@ -15,7 +16,7 @@ export interface ItemPickerHookProps {
|
|
|
15
16
|
allItems: ItemDescriptor[];
|
|
16
17
|
selectedItems: ItemDescriptor[];
|
|
17
18
|
maxSelections?: number;
|
|
18
|
-
onSelectedItemsChange:
|
|
19
|
+
onSelectedItemsChange: SelectedItemsChangeHandler;
|
|
19
20
|
}
|
|
20
21
|
export declare const getItemLabel: (item: ItemDescriptor) => string;
|
|
21
22
|
export declare const useItemPicker: ({ allItems, selectedItems, maxSelections, onSelectedItemsChange, }: ItemPickerHookProps) => {
|
|
@@ -24,7 +25,7 @@ export declare const useItemPicker: ({ allItems, selectedItems, maxSelections, o
|
|
|
24
25
|
selectedItemsFiltered: readonly ItemDescriptor[];
|
|
25
26
|
availableItemsFiltered: ItemDescriptor[];
|
|
26
27
|
searchText: string;
|
|
27
|
-
onChangeSearchInput:
|
|
28
|
+
onChangeSearchInput: ChangeEventHandler;
|
|
28
29
|
onAddItemToSelectedList: MouseEventHandler<HTMLButtonElement>;
|
|
29
30
|
onRemoveItemFromSelectedList: MouseEventHandler<HTMLButtonElement>;
|
|
30
31
|
onReorderSelectedItems: (orderedItemNames: string[]) => void;
|
|
@@ -4,7 +4,7 @@ export type ShowDialog = (dialogContent: ReactElement, title: string, dialogActi
|
|
|
4
4
|
export type ShowPrompt = (promptContent: ReactElement, promptProps: PromptProps) => void;
|
|
5
5
|
export declare const ModalProvider: ({ children }: {
|
|
6
6
|
children: ReactNode;
|
|
7
|
-
}) => import("react
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
8
8
|
export declare const useModal: () => {
|
|
9
9
|
showDialog: ShowDialog;
|
|
10
10
|
closeDialog: () => void;
|
|
@@ -4,4 +4,4 @@ export interface PriceTickerProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
4
4
|
price?: number;
|
|
5
5
|
showArrow?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const PriceTicker: import("react").MemoExoticComponent<({ className, decimals, price, showArrow, ...htmlAttributes }: PriceTickerProps) => import("react
|
|
7
|
+
export declare const PriceTicker: import("react").MemoExoticComponent<({ className, decimals, price, showArrow, ...htmlAttributes }: PriceTickerProps) => import("react").JSX.Element>;
|
package/types/prompt/Prompt.d.ts
CHANGED
|
@@ -50,4 +50,4 @@ export interface PromptProps extends Pick<DialogProps, "disableDismiss" | "onOpe
|
|
|
50
50
|
showConfirmButton?: boolean;
|
|
51
51
|
title: string;
|
|
52
52
|
}
|
|
53
|
-
export declare const Prompt: ({ children, className, cancelButtonLabel, cancelButtonProps, confirmButtonLabel, confirmButtonProps, customAction, disableDismiss, disableAccent, headerTag, icon, initialFocusedItem, onCancel, onClose, onConfirm, onOpenChange, open, showCancelButton, showCloseButton, showConfirmButton, status, title, ...htmlAttributes }: PromptProps) => import("react
|
|
53
|
+
export declare const Prompt: ({ children, className, cancelButtonLabel, cancelButtonProps, confirmButtonLabel, confirmButtonProps, customAction, disableDismiss, disableAccent, headerTag, icon, initialFocusedItem, onCancel, onClose, onConfirm, onOpenChange, open, showCancelButton, showCloseButton, showConfirmButton, status, title, ...htmlAttributes }: PromptProps) => import("react").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { ListBoxProps, OptionProps } from "@salt-ds/core";
|
|
|
2
2
|
export declare const SortableOption: ({ id, index, value, ...optionProps }: OptionProps & {
|
|
3
3
|
id: string;
|
|
4
4
|
index: number;
|
|
5
|
-
}) => import("react
|
|
5
|
+
}) => import("react").JSX.Element;
|
|
6
6
|
export declare const SortableList: ({ children, onReorderListItems, ...listBoxProps }: ListBoxProps & {
|
|
7
7
|
onReorderListItems?: (listItems: unknown[]) => void;
|
|
8
|
-
}) => import("react
|
|
8
|
+
}) => import("react").JSX.Element;
|
|
@@ -6,127 +6,7 @@ export interface SplitButtonHookProps extends Pick<SplitButtonProps, "PopupMenuP
|
|
|
6
6
|
}
|
|
7
7
|
export declare const useSplitButton: ({ ButtonProps: ButtonPropsProp, PopupMenuProps, classBase, onClick, }: SplitButtonHookProps) => {
|
|
8
8
|
ButtonProps: {
|
|
9
|
-
onClick: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
10
|
-
onKeyDown: KeyboardEventHandler<HTMLButtonElement>;
|
|
11
|
-
type?: "submit" | "reset" | "button" | undefined;
|
|
12
|
-
form?: string | undefined;
|
|
13
|
-
slot?: string | undefined;
|
|
14
|
-
style?: import("react").CSSProperties | undefined;
|
|
15
|
-
title?: string | undefined;
|
|
16
9
|
key?: import("react").Key | null | undefined;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
formAction?: string | ((formData: FormData) => void | Promise<void>) | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
19
|
-
formEncType?: string | undefined;
|
|
20
|
-
formMethod?: string | undefined;
|
|
21
|
-
formNoValidate?: boolean | undefined;
|
|
22
|
-
formTarget?: string | undefined;
|
|
23
|
-
name?: string | undefined;
|
|
24
|
-
value?: string | readonly string[] | number | undefined;
|
|
25
|
-
defaultChecked?: boolean | undefined;
|
|
26
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
27
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
28
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
29
|
-
accessKey?: string | undefined;
|
|
30
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
31
|
-
autoFocus?: boolean | undefined;
|
|
32
|
-
className?: string | undefined;
|
|
33
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
34
|
-
contextMenu?: string | undefined;
|
|
35
|
-
dir?: string | undefined;
|
|
36
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
37
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
38
|
-
hidden?: boolean | undefined;
|
|
39
|
-
id?: string | undefined;
|
|
40
|
-
lang?: string | undefined;
|
|
41
|
-
nonce?: string | undefined;
|
|
42
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
43
|
-
tabIndex?: number | undefined;
|
|
44
|
-
translate?: "yes" | "no" | undefined;
|
|
45
|
-
radioGroup?: string | undefined;
|
|
46
|
-
role?: import("react").AriaRole | undefined;
|
|
47
|
-
about?: string | undefined;
|
|
48
|
-
content?: string | undefined;
|
|
49
|
-
datatype?: string | undefined;
|
|
50
|
-
inlist?: any;
|
|
51
|
-
prefix?: string | undefined;
|
|
52
|
-
property?: string | undefined;
|
|
53
|
-
rel?: string | undefined;
|
|
54
|
-
resource?: string | undefined;
|
|
55
|
-
rev?: string | undefined;
|
|
56
|
-
typeof?: string | undefined;
|
|
57
|
-
vocab?: string | undefined;
|
|
58
|
-
autoCorrect?: string | undefined;
|
|
59
|
-
autoSave?: string | undefined;
|
|
60
|
-
color?: string | undefined;
|
|
61
|
-
itemProp?: string | undefined;
|
|
62
|
-
itemScope?: boolean | undefined;
|
|
63
|
-
itemType?: string | undefined;
|
|
64
|
-
itemID?: string | undefined;
|
|
65
|
-
itemRef?: string | undefined;
|
|
66
|
-
results?: number | undefined;
|
|
67
|
-
security?: string | undefined;
|
|
68
|
-
unselectable?: "on" | "off" | undefined;
|
|
69
|
-
popover?: "" | "auto" | "manual" | undefined;
|
|
70
|
-
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
71
|
-
popoverTarget?: string | undefined;
|
|
72
|
-
inert?: boolean | undefined;
|
|
73
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
74
|
-
is?: string | undefined;
|
|
75
|
-
exportparts?: string | undefined;
|
|
76
|
-
part?: string | undefined;
|
|
77
|
-
"aria-activedescendant"?: string | undefined;
|
|
78
|
-
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
79
|
-
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
80
|
-
"aria-braillelabel"?: string | undefined;
|
|
81
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
82
|
-
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
83
|
-
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
84
|
-
"aria-colcount"?: number | undefined;
|
|
85
|
-
"aria-colindex"?: number | undefined;
|
|
86
|
-
"aria-colindextext"?: string | undefined;
|
|
87
|
-
"aria-colspan"?: number | undefined;
|
|
88
|
-
"aria-controls"?: string | undefined;
|
|
89
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
90
|
-
"aria-describedby"?: string | undefined;
|
|
91
|
-
"aria-description"?: string | undefined;
|
|
92
|
-
"aria-details"?: string | undefined;
|
|
93
|
-
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
94
|
-
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
95
|
-
"aria-errormessage"?: string | undefined;
|
|
96
|
-
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
97
|
-
"aria-flowto"?: string | undefined;
|
|
98
|
-
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
99
|
-
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
100
|
-
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
101
|
-
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
102
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
103
|
-
"aria-label"?: string | undefined;
|
|
104
|
-
"aria-labelledby"?: string | undefined;
|
|
105
|
-
"aria-level"?: number | undefined;
|
|
106
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
107
|
-
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
108
|
-
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
109
|
-
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
110
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
111
|
-
"aria-owns"?: string | undefined;
|
|
112
|
-
"aria-placeholder"?: string | undefined;
|
|
113
|
-
"aria-posinset"?: number | undefined;
|
|
114
|
-
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
115
|
-
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
116
|
-
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
117
|
-
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
118
|
-
"aria-roledescription"?: string | undefined;
|
|
119
|
-
"aria-rowcount"?: number | undefined;
|
|
120
|
-
"aria-rowindex"?: number | undefined;
|
|
121
|
-
"aria-rowindextext"?: string | undefined;
|
|
122
|
-
"aria-rowspan"?: number | undefined;
|
|
123
|
-
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
124
|
-
"aria-setsize"?: number | undefined;
|
|
125
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
126
|
-
"aria-valuemax"?: number | undefined;
|
|
127
|
-
"aria-valuemin"?: number | undefined;
|
|
128
|
-
"aria-valuenow"?: number | undefined;
|
|
129
|
-
"aria-valuetext"?: string | undefined;
|
|
130
10
|
children?: import("react").ReactNode | undefined;
|
|
131
11
|
dangerouslySetInnerHTML?: {
|
|
132
12
|
__html: string | TrustedHTML;
|
|
@@ -147,18 +27,18 @@ export declare const useSplitButton: ({ ButtonProps: ButtonPropsProp, PopupMenuP
|
|
|
147
27
|
onFocusCapture?: FocusEventHandler<HTMLButtonElement> | undefined;
|
|
148
28
|
onBlur?: FocusEventHandler<HTMLButtonElement> | undefined;
|
|
149
29
|
onBlurCapture?: FocusEventHandler<HTMLButtonElement> | undefined;
|
|
150
|
-
onChange?: import("react").
|
|
151
|
-
onChangeCapture?: import("react").
|
|
30
|
+
onChange?: import("react").ChangeEventHandler<HTMLButtonElement, Element> | undefined;
|
|
31
|
+
onChangeCapture?: import("react").ChangeEventHandler<HTMLButtonElement, Element> | undefined;
|
|
152
32
|
onBeforeInput?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
|
|
153
|
-
onBeforeInputCapture?: import("react").
|
|
154
|
-
onInput?: import("react").
|
|
155
|
-
onInputCapture?: import("react").
|
|
156
|
-
onReset?: import("react").
|
|
157
|
-
onResetCapture?: import("react").
|
|
158
|
-
onSubmit?: import("react").
|
|
159
|
-
onSubmitCapture?: import("react").
|
|
160
|
-
onInvalid?: import("react").
|
|
161
|
-
onInvalidCapture?: import("react").
|
|
33
|
+
onBeforeInputCapture?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
|
|
34
|
+
onInput?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
|
|
35
|
+
onInputCapture?: import("react").InputEventHandler<HTMLButtonElement> | undefined;
|
|
36
|
+
onReset?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
37
|
+
onResetCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
38
|
+
onSubmit?: import("react").SubmitEventHandler<HTMLButtonElement> | undefined;
|
|
39
|
+
onSubmitCapture?: import("react").SubmitEventHandler<HTMLButtonElement> | undefined;
|
|
40
|
+
onInvalid?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
41
|
+
onInvalidCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
162
42
|
onLoad?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
163
43
|
onLoadCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
164
44
|
onError?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -297,11 +177,131 @@ export declare const useSplitButton: ({ ButtonProps: ButtonPropsProp, PopupMenuP
|
|
|
297
177
|
onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
298
178
|
onTransitionStart?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
299
179
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
180
|
+
"aria-activedescendant"?: string | undefined;
|
|
181
|
+
"aria-atomic"?: ("false" | "true" | boolean) | undefined;
|
|
182
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
183
|
+
"aria-braillelabel"?: string | undefined;
|
|
184
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
185
|
+
"aria-busy"?: ("false" | "true" | boolean) | undefined;
|
|
186
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
187
|
+
"aria-colcount"?: number | undefined;
|
|
188
|
+
"aria-colindex"?: number | undefined;
|
|
189
|
+
"aria-colindextext"?: string | undefined;
|
|
190
|
+
"aria-colspan"?: number | undefined;
|
|
191
|
+
"aria-controls"?: string | undefined;
|
|
192
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
193
|
+
"aria-describedby"?: string | undefined;
|
|
194
|
+
"aria-description"?: string | undefined;
|
|
195
|
+
"aria-details"?: string | undefined;
|
|
196
|
+
"aria-disabled"?: ("false" | "true" | boolean) | undefined;
|
|
197
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
198
|
+
"aria-errormessage"?: string | undefined;
|
|
199
|
+
"aria-expanded"?: ("false" | "true" | boolean) | undefined;
|
|
200
|
+
"aria-flowto"?: string | undefined;
|
|
201
|
+
"aria-grabbed"?: ("false" | "true" | boolean) | undefined;
|
|
202
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
203
|
+
"aria-hidden"?: ("false" | "true" | boolean) | undefined;
|
|
204
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
205
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
206
|
+
"aria-label"?: string | undefined;
|
|
207
|
+
"aria-labelledby"?: string | undefined;
|
|
208
|
+
"aria-level"?: number | undefined;
|
|
209
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
210
|
+
"aria-modal"?: ("false" | "true" | boolean) | undefined;
|
|
211
|
+
"aria-multiline"?: ("false" | "true" | boolean) | undefined;
|
|
212
|
+
"aria-multiselectable"?: ("false" | "true" | boolean) | undefined;
|
|
213
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
214
|
+
"aria-owns"?: string | undefined;
|
|
215
|
+
"aria-placeholder"?: string | undefined;
|
|
216
|
+
"aria-posinset"?: number | undefined;
|
|
217
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
218
|
+
"aria-readonly"?: ("false" | "true" | boolean) | undefined;
|
|
219
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
220
|
+
"aria-required"?: ("false" | "true" | boolean) | undefined;
|
|
221
|
+
"aria-roledescription"?: string | undefined;
|
|
222
|
+
"aria-rowcount"?: number | undefined;
|
|
223
|
+
"aria-rowindex"?: number | undefined;
|
|
224
|
+
"aria-rowindextext"?: string | undefined;
|
|
225
|
+
"aria-rowspan"?: number | undefined;
|
|
226
|
+
"aria-selected"?: ("false" | "true" | boolean) | undefined;
|
|
227
|
+
"aria-setsize"?: number | undefined;
|
|
228
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
229
|
+
"aria-valuemax"?: number | undefined;
|
|
230
|
+
"aria-valuemin"?: number | undefined;
|
|
231
|
+
"aria-valuenow"?: number | undefined;
|
|
232
|
+
"aria-valuetext"?: string | undefined;
|
|
233
|
+
defaultChecked?: boolean | undefined;
|
|
234
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
235
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
236
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
237
|
+
accessKey?: string | undefined;
|
|
238
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
239
|
+
autoFocus?: boolean | undefined;
|
|
240
|
+
className?: string | undefined;
|
|
241
|
+
contentEditable?: ("false" | "true" | boolean) | "inherit" | "plaintext-only" | undefined;
|
|
242
|
+
contextMenu?: string | undefined;
|
|
243
|
+
dir?: string | undefined;
|
|
244
|
+
draggable?: ("false" | "true" | boolean) | undefined;
|
|
245
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
246
|
+
hidden?: boolean | undefined;
|
|
247
|
+
id?: string | undefined;
|
|
248
|
+
lang?: string | undefined;
|
|
249
|
+
nonce?: string | undefined;
|
|
250
|
+
slot?: string | undefined;
|
|
251
|
+
spellCheck?: ("false" | "true" | boolean) | undefined;
|
|
252
|
+
style?: import("react").CSSProperties | undefined;
|
|
253
|
+
tabIndex?: number | undefined;
|
|
254
|
+
title?: string | undefined;
|
|
255
|
+
translate?: "yes" | "no" | undefined;
|
|
256
|
+
radioGroup?: string | undefined;
|
|
257
|
+
role?: import("react").AriaRole | undefined;
|
|
258
|
+
about?: string | undefined;
|
|
259
|
+
content?: string | undefined;
|
|
260
|
+
datatype?: string | undefined;
|
|
261
|
+
inlist?: any;
|
|
262
|
+
prefix?: string | undefined;
|
|
263
|
+
property?: string | undefined;
|
|
264
|
+
rel?: string | undefined;
|
|
265
|
+
resource?: string | undefined;
|
|
266
|
+
rev?: string | undefined;
|
|
267
|
+
typeof?: string | undefined;
|
|
268
|
+
vocab?: string | undefined;
|
|
269
|
+
autoCorrect?: string | undefined;
|
|
270
|
+
autoSave?: string | undefined;
|
|
271
|
+
color?: string | undefined;
|
|
272
|
+
itemProp?: string | undefined;
|
|
273
|
+
itemScope?: boolean | undefined;
|
|
274
|
+
itemType?: string | undefined;
|
|
275
|
+
itemID?: string | undefined;
|
|
276
|
+
itemRef?: string | undefined;
|
|
277
|
+
results?: number | undefined;
|
|
278
|
+
security?: string | undefined;
|
|
279
|
+
unselectable?: "on" | "off" | undefined;
|
|
280
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined;
|
|
281
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
282
|
+
popoverTarget?: string | undefined;
|
|
283
|
+
inert?: boolean | undefined;
|
|
284
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
285
|
+
is?: string | undefined;
|
|
286
|
+
exportparts?: string | undefined;
|
|
287
|
+
part?: string | undefined;
|
|
288
|
+
form?: string | undefined;
|
|
289
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
290
|
+
formEncType?: string | undefined;
|
|
291
|
+
formMethod?: string | undefined;
|
|
292
|
+
formNoValidate?: boolean | undefined;
|
|
293
|
+
formTarget?: string | undefined;
|
|
294
|
+
name?: string | undefined;
|
|
295
|
+
type?: "submit" | "reset" | "button" | undefined;
|
|
296
|
+
value?: string | readonly string[] | number | undefined;
|
|
297
|
+
disabled?: boolean;
|
|
300
298
|
focusableWhenDisabled?: boolean;
|
|
301
299
|
appearance?: import("@salt-ds/core").ButtonAppearance;
|
|
302
300
|
sentiment?: import("@salt-ds/core").ButtonSentiment;
|
|
303
301
|
loading?: boolean;
|
|
304
302
|
loadingAnnouncement?: string;
|
|
303
|
+
onClick: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
304
|
+
onKeyDown: KeyboardEventHandler<HTMLButtonElement>;
|
|
305
305
|
};
|
|
306
306
|
PopupMenuProps: PopupMenuProps;
|
|
307
307
|
buttonRef: import("react").RefObject<HTMLButtonElement | null>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TableCellRendererProps } from "@vuu-ui/vuu-table-types";
|
|
2
|
-
export declare const SearchCell: ({ column, dataRow, searchPattern, }: TableCellRendererProps) => import("react
|
|
2
|
+
export declare const SearchCell: ({ column, dataRow, searchPattern, }: TableCellRendererProps) => import("react").JSX.Element;
|
|
@@ -6,4 +6,4 @@ export interface TableSearchProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
6
6
|
placeHolder?: string;
|
|
7
7
|
searchColumns: string[];
|
|
8
8
|
}
|
|
9
|
-
export declare const TableSearch: ({ TableProps: { dataSource: dataSourceProp, ...TableProps }, autoFocus, className, placeHolder, searchColumns, ...htmlAttributes }: TableSearchProps) => import("react
|
|
9
|
+
export declare const TableSearch: ({ TableProps: { dataSource: dataSourceProp, ...TableProps }, autoFocus, className, placeHolder, searchColumns, ...htmlAttributes }: TableSearchProps) => import("react").JSX.Element;
|
|
@@ -7,5 +7,5 @@ interface UseOverflowProps {
|
|
|
7
7
|
tabs: Item[];
|
|
8
8
|
overflowButton: RefObject<HTMLButtonElement | null>;
|
|
9
9
|
}
|
|
10
|
-
export declare function useOverflow({ tabs, container, overflowButton, children, selected, }: UseOverflowProps): readonly [(string | number | bigint | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> |
|
|
10
|
+
export declare function useOverflow({ tabs, container, overflowButton, children, selected, }: UseOverflowProps): readonly [(string | number | bigint | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal)[], (string | number | bigint | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal)[], false] | readonly [(string | number | bigint | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal)[], readonly [], true];
|
|
11
11
|
export {};
|
package/types/tabstrip/Tab.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { KeyboardEvent, MouseEvent } from "react";
|
|
2
2
|
import { EditableLabelProps } from "../editable-label";
|
|
3
3
|
import { MenuActionHandler } from "@vuu-ui/vuu-context-menu";
|
|
4
|
-
export declare const Tab: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLElement>, "
|
|
4
|
+
export declare const Tab: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLElement>, "onClick" | "onKeyUp"> & {
|
|
5
5
|
ariaControls?: import("react").AriaAttributes["aria-controls"];
|
|
6
6
|
closeable?: boolean;
|
|
7
7
|
draggable?: boolean;
|
|
@@ -20,4 +20,4 @@ export interface TabMenuProps {
|
|
|
20
20
|
*/
|
|
21
21
|
controlledComponentTitle?: string;
|
|
22
22
|
}
|
|
23
|
-
export declare const TabMenu: ({ allowClose, allowRename, controlledComponentId, controlledComponentTitle, location, onMenuAction, onMenuClose, index, }: TabMenuProps) => import("react
|
|
23
|
+
export declare const TabMenu: ({ allowClose, allowRename, controlledComponentId, controlledComponentTitle, location, onMenuAction, onMenuClose, index, }: TabMenuProps) => import("react").JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TabstripProps } from "./TabsTypes";
|
|
3
|
+
export declare const Tabstrip: ({ activeTabIndex: activeTabIndexProp, allowAddTab, allowCloseTab, allowDragDrop, allowRenameTab, animateSelectionThumb, children, className: classNameProp, id: idProp, keyBoardActivation, location, onActiveChange, onAddTab, onCloseTab, onExitEditMode, onMoveTab, orientation, showTabMenuButton, style: styleProp, tabClassName, variant, ...htmlAttributes }: TabstripProps) => React.JSX.Element;
|
|
@@ -29,11 +29,11 @@ export declare const useTabstrip: ({ activeTabIndex: activeTabIndexProp, allowDr
|
|
|
29
29
|
revealOverflowedItems?: boolean;
|
|
30
30
|
activeTabIndex: number;
|
|
31
31
|
containerProps: {
|
|
32
|
-
onSwitchWrappedItemIntoView: (item: OverflowItem) => void;
|
|
33
32
|
onBlur: import("react").FocusEventHandler;
|
|
34
33
|
onFocus: import("react").FocusEventHandler;
|
|
35
34
|
onMouseDownCapture: import("react").MouseEventHandler;
|
|
36
35
|
onMouseLeave: import("react").MouseEventHandler;
|
|
36
|
+
onSwitchWrappedItemIntoView: (item: OverflowItem) => void;
|
|
37
37
|
};
|
|
38
38
|
containerStyle: import("react").CSSProperties;
|
|
39
39
|
focusVisible: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { OverflowContainerProps } from "../overflow-container";
|
|
2
3
|
import { SelectionStrategy, SpecialKeyMultipleSelection } from "../common-hooks";
|
|
3
4
|
export type ActiveItemChangeHandler = (itemIndex: number[]) => void;
|
|
@@ -16,4 +17,4 @@ export interface ToolbarProps extends OverflowContainerProps {
|
|
|
16
17
|
selectionStrategy?: SelectionStrategy | SpecialKeyMultipleSelection;
|
|
17
18
|
showSeparators?: boolean;
|
|
18
19
|
}
|
|
19
|
-
export declare const Toolbar: ({ activeItemIndex: activeItemIndexProp, alignItems, defaultActiveItemIndex, children, className, id: idProp, onActiveChange, onNavigateOutOfBounds, orientation, selectionStrategy, showSeparators, ...props }: ToolbarProps) =>
|
|
20
|
+
export declare const Toolbar: ({ activeItemIndex: activeItemIndexProp, alignItems, defaultActiveItemIndex, children, className, id: idProp, onActiveChange, onNavigateOutOfBounds, orientation, selectionStrategy, showSeparators, ...props }: ToolbarProps) => React.JSX.Element;
|
|
@@ -10,7 +10,6 @@ export declare const useToolbar: ({ activeItemIndex: activeItemIndexProp, defaul
|
|
|
10
10
|
focusableIdx: number;
|
|
11
11
|
focusVisible: number;
|
|
12
12
|
containerProps: {
|
|
13
|
-
onSwitchWrappedItemIntoView: (item: OverflowItem) => void;
|
|
14
13
|
onBlur: import("react").FocusEventHandler;
|
|
15
14
|
onFocus: import("react").FocusEventHandler;
|
|
16
15
|
onMouseDownCapture: import("react").MouseEventHandler;
|
|
@@ -19,6 +18,7 @@ export declare const useToolbar: ({ activeItemIndex: activeItemIndexProp, defaul
|
|
|
19
18
|
onKeyDown: (evt: KeyboardEvent) => void;
|
|
20
19
|
onMenuClose: import("@vuu-ui/vuu-popups").MenuCloseHandler | undefined;
|
|
21
20
|
};
|
|
21
|
+
onSwitchWrappedItemIntoView: (item: OverflowItem) => void;
|
|
22
22
|
};
|
|
23
23
|
itemProps: {
|
|
24
24
|
onClick: (evt: ReactMouseEvent<HTMLElement>) => void;
|
|
@@ -4,4 +4,4 @@ import { DatePickerProps } from "../date-picker";
|
|
|
4
4
|
export declare const VuuDatePicker: ({ className, onSelectionChange, selectedDate: selectedDateProp, onCommit, preserveFocusOnSelect, ...props }: Omit<DatePickerProps<SingleSelectionValueType>, "defaultSelectedDate"> & {
|
|
5
5
|
onCommit?: CommitHandler<HTMLElement, number>;
|
|
6
6
|
preserveFocusOnSelect?: boolean;
|
|
7
|
-
}) => import("react
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
@@ -4,4 +4,4 @@ import { TimeInputProps } from "../time-input/TimeInput";
|
|
|
4
4
|
export interface VuuTimePickerProps extends Pick<TimeInputProps, "defaultValue" | "onChange" | "value">, Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange" | "value"> {
|
|
5
5
|
onCommit: CommitHandler<HTMLInputElement, TimeString>;
|
|
6
6
|
}
|
|
7
|
-
export declare const VuuTimePicker: ({ className, defaultValue, onChange, onCommit, value, ...htmlAttributes }: VuuTimePickerProps) => import("react
|
|
7
|
+
export declare const VuuTimePicker: ({ className, defaultValue, onChange, onCommit, value, ...htmlAttributes }: VuuTimePickerProps) => import("react").JSX.Element;
|
|
@@ -3,4 +3,4 @@ import { VuuTypeaheadInputHookProps } from "./useVuuTypeaheadInput";
|
|
|
3
3
|
export interface VuuTypeaheadInputProps extends VuuTypeaheadInputHookProps, Pick<ComboBoxProps, "selectOnTab"> {
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const VuuTypeaheadInput: ({ allowFreeInput, className, column, freeTextWarning, highlightFirstSuggestion, inputProps: inputPropsProp, minCharacterCountToTriggerSuggestions, onCommit, selectOnTab, table, }: VuuTypeaheadInputProps) => import("react
|
|
6
|
+
export declare const VuuTypeaheadInput: ({ allowFreeInput, className, column, freeTextWarning, highlightFirstSuggestion, inputProps: inputPropsProp, minCharacterCountToTriggerSuggestions, onCommit, selectOnTab, table, }: VuuTypeaheadInputProps) => import("react").JSX.Element;
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Dialog, DialogActions, DialogCloseButton, DialogContent, DialogHeader } from "@salt-ds/core";
|
|
3
|
-
import { createContext, useCallback, useContext, useMemo, useState } from "react";
|
|
4
|
-
import { Prompt } from "../prompt/Prompt.js";
|
|
5
|
-
const useDialogHost = ()=>{
|
|
6
|
-
const [dialogState, setDialogState] = useState();
|
|
7
|
-
const [promptState, setPromptState] = useState();
|
|
8
|
-
const closePrompt = useCallback(()=>{
|
|
9
|
-
setPromptState(void 0);
|
|
10
|
-
}, []);
|
|
11
|
-
const closeDialog = useCallback(()=>{
|
|
12
|
-
setDialogState(void 0);
|
|
13
|
-
}, []);
|
|
14
|
-
const handleOpenChange = useCallback((open)=>{
|
|
15
|
-
if (true !== open) closeDialog();
|
|
16
|
-
}, [
|
|
17
|
-
closeDialog
|
|
18
|
-
]);
|
|
19
|
-
const dialog = dialogState ? /*#__PURE__*/ jsxs(Dialog, {
|
|
20
|
-
open: true,
|
|
21
|
-
onOpenChange: handleOpenChange,
|
|
22
|
-
children: [
|
|
23
|
-
/*#__PURE__*/ jsx(DialogHeader, {
|
|
24
|
-
header: dialogState.title
|
|
25
|
-
}),
|
|
26
|
-
/*#__PURE__*/ jsx(DialogContent, {
|
|
27
|
-
children: dialogState.content
|
|
28
|
-
}),
|
|
29
|
-
true !== dialogState.hideCloseButton ? /*#__PURE__*/ jsx(DialogCloseButton, {
|
|
30
|
-
"data-embedded": true,
|
|
31
|
-
"data-icon": "close",
|
|
32
|
-
onClick: closeDialog
|
|
33
|
-
}) : null,
|
|
34
|
-
dialogState.actions ? /*#__PURE__*/ jsx(DialogActions, {
|
|
35
|
-
children: dialogState.actions
|
|
36
|
-
}) : null
|
|
37
|
-
]
|
|
38
|
-
}) : null;
|
|
39
|
-
const handleOpenChangePrompt = useCallback((open)=>{
|
|
40
|
-
if (true !== open) closePrompt();
|
|
41
|
-
promptState?.promptProps.onOpenChange?.(open);
|
|
42
|
-
}, [
|
|
43
|
-
closePrompt,
|
|
44
|
-
promptState
|
|
45
|
-
]);
|
|
46
|
-
const prompt = promptState ? /*#__PURE__*/ jsx(Prompt, {
|
|
47
|
-
...promptState.promptProps,
|
|
48
|
-
onClose: closePrompt,
|
|
49
|
-
onOpenChange: handleOpenChangePrompt,
|
|
50
|
-
open: true,
|
|
51
|
-
children: promptState.content
|
|
52
|
-
}) : null;
|
|
53
|
-
return {
|
|
54
|
-
dialog,
|
|
55
|
-
prompt,
|
|
56
|
-
setDialogState,
|
|
57
|
-
setPromptState
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
const defaultShowDialog = ()=>{
|
|
61
|
-
console.warn("No DialogProvider in place");
|
|
62
|
-
};
|
|
63
|
-
const defaultCloseDialog = ()=>{
|
|
64
|
-
console.warn("No DialogProvider in place");
|
|
65
|
-
};
|
|
66
|
-
const defaultShowPrompt = ()=>{
|
|
67
|
-
console.warn("No DialogProvider in place");
|
|
68
|
-
};
|
|
69
|
-
const defaultClosePrompt = ()=>{
|
|
70
|
-
console.warn("No DialogProvider in place");
|
|
71
|
-
};
|
|
72
|
-
class DialogContextObject {
|
|
73
|
-
showDialog = defaultShowDialog;
|
|
74
|
-
closeDialog = defaultCloseDialog;
|
|
75
|
-
showPrompt = defaultShowPrompt;
|
|
76
|
-
closePrompt = defaultClosePrompt;
|
|
77
|
-
setDispatchers = (showDialog, closeDialog, showPrompt, closePrompt)=>{
|
|
78
|
-
this.showDialog = showDialog;
|
|
79
|
-
this.closeDialog = closeDialog;
|
|
80
|
-
this.showPrompt = showPrompt;
|
|
81
|
-
this.closePrompt = closePrompt;
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
const DialogContext = /*#__PURE__*/ createContext(new DialogContextObject());
|
|
85
|
-
const DialogHost = ({ context })=>{
|
|
86
|
-
const { dialog, setDialogState, prompt, setPromptState } = useDialogHost();
|
|
87
|
-
const showDialog = useCallback((dialogContent, title, actionButtons, hideCloseButton)=>{
|
|
88
|
-
setDialogState({
|
|
89
|
-
actions: actionButtons,
|
|
90
|
-
content: dialogContent,
|
|
91
|
-
title,
|
|
92
|
-
hideCloseButton
|
|
93
|
-
});
|
|
94
|
-
}, [
|
|
95
|
-
setDialogState
|
|
96
|
-
]);
|
|
97
|
-
const closeDialog = useCallback(()=>{
|
|
98
|
-
setDialogState(void 0);
|
|
99
|
-
}, [
|
|
100
|
-
setDialogState
|
|
101
|
-
]);
|
|
102
|
-
const showPrompt = useCallback((content, promptProps)=>{
|
|
103
|
-
setPromptState({
|
|
104
|
-
content,
|
|
105
|
-
promptProps
|
|
106
|
-
});
|
|
107
|
-
}, [
|
|
108
|
-
setPromptState
|
|
109
|
-
]);
|
|
110
|
-
const closePrompt = useCallback(()=>{
|
|
111
|
-
setPromptState(void 0);
|
|
112
|
-
}, [
|
|
113
|
-
setPromptState
|
|
114
|
-
]);
|
|
115
|
-
useMemo(()=>{
|
|
116
|
-
context.setDispatchers(showDialog, closeDialog, showPrompt, closePrompt);
|
|
117
|
-
}, [
|
|
118
|
-
closeDialog,
|
|
119
|
-
closePrompt,
|
|
120
|
-
context,
|
|
121
|
-
showDialog,
|
|
122
|
-
showPrompt
|
|
123
|
-
]);
|
|
124
|
-
return dialog ?? prompt;
|
|
125
|
-
};
|
|
126
|
-
const ModalProvider = ({ children })=>{
|
|
127
|
-
const context = useContext(DialogContext);
|
|
128
|
-
return /*#__PURE__*/ jsxs(DialogContext.Provider, {
|
|
129
|
-
value: context,
|
|
130
|
-
children: [
|
|
131
|
-
/*#__PURE__*/ jsx(DialogHost, {
|
|
132
|
-
context: context
|
|
133
|
-
}),
|
|
134
|
-
children
|
|
135
|
-
]
|
|
136
|
-
});
|
|
137
|
-
};
|
|
138
|
-
const useModal = ()=>{
|
|
139
|
-
const { closeDialog, closePrompt, showDialog, showPrompt } = useContext(DialogContext);
|
|
140
|
-
return {
|
|
141
|
-
showDialog,
|
|
142
|
-
closeDialog,
|
|
143
|
-
showPrompt,
|
|
144
|
-
closePrompt
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
export { ModalProvider, useModal };
|