@pismo/marola 2.1.64 → 2.1.66
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/dist/Button-CJaBSdv1.js +135 -0
- package/dist/ClassNameConfigurator-CVRWfyIa.js +847 -0
- package/dist/{ClickAwayListener-Z08peX_P.js → ClickAwayListener-BnYMO5Ki.js} +26 -33
- package/dist/Popup-D267EI4e.js +1338 -0
- package/dist/{Portal-DJapUCn6.js → Portal-BrGvxB96.js} +32 -36
- package/dist/RadioOption-DyRY8xlF.js +1094 -0
- package/dist/{Toggle-DcZTfLrC.js → Toggle-nnDfpqI1.js} +31 -31
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/DropdownMenu.css +1 -1
- package/dist/assets/ToastCard.css +1 -1
- package/dist/assets/Toggle2.css +1 -1
- package/dist/combineHooksSlotProps-j-8UVeYo.js +86 -0
- package/dist/components/Alert/Alert.stories.d.ts +6 -6
- package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +311 -320
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +1 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +4 -4
- package/dist/components/BankingCard/BankingCard.d.ts +0 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +56 -56
- package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
- package/dist/components/Chip/Chip.js +3 -3
- package/dist/components/DatePicker/DatePicker.js +742 -639
- package/dist/components/DatePicker/DatePicker.stories.d.ts +8 -8
- package/dist/components/DatePicker/dateUtils.d.ts +2 -2
- package/dist/components/DatePicker/dateUtils.js +1 -1
- package/dist/components/DatePicker/keyboardNavigation.d.ts +1 -1
- package/dist/components/DatePicker/renderCalendarDays.js +1 -1
- package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +1 -1
- package/dist/components/Dialog/Dialog.js +372 -352
- package/dist/components/Dialog/Dialog.stories.d.ts +96 -135
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.d.ts +1 -1
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.js +2 -2
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.stories.d.ts +1 -1
- package/dist/components/DoubleInput/DoubleInput.stories.d.ts +1 -1
- package/dist/components/Draggable/Draggable.d.ts +0 -1
- package/dist/components/Draggable/Draggable.js +1 -1
- package/dist/components/Draggable/Draggable.stories.d.ts +2 -3
- package/dist/components/Draggable/useDraggable.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +3 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +39 -34
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +6 -4
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +4 -4
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Input/Input.js +335 -320
- package/dist/components/InputSearch/InputSearch.d.ts +31 -31
- package/dist/components/InputSearch/InputSearch.stories.d.ts +31 -31
- package/dist/components/Popover/Popover.d.ts +3 -3
- package/dist/components/Popover/Popover.js +2 -2
- package/dist/components/Popover/Popover.stories.d.ts +3 -3
- package/dist/components/Popover/PopoverBody.d.ts +0 -1
- package/dist/components/Popover/PopoverFooter.d.ts +0 -1
- package/dist/components/Popover/PopoverHeader.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.js +684 -769
- package/dist/components/RadioButton/RadioOption.d.ts +0 -1
- package/dist/components/RadioButton/RadioOption.js +3 -3
- package/dist/components/ResultContainer/ResultContainer.d.ts +0 -1
- package/dist/components/ResultContainer/ResultContainer.stories.d.ts +9 -9
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/ResultWithChips/ResultWithChips.stories.d.ts +9 -9
- package/dist/components/RowItem/RowItem.js +2 -2
- package/dist/components/Select/Select.js +625 -591
- package/dist/components/Skeleton/Skeleton.d.ts +0 -1
- package/dist/components/Snackbar/Snackbar.js +295 -239
- package/dist/components/Snackbar/Snackbar.stories.d.ts +113 -113
- package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -1
- package/dist/components/Table/Table.stories.d.ts +5 -5
- package/dist/components/Tabs/Tab.js +107 -98
- package/dist/components/Tabs/TabPanel.js +58 -55
- package/dist/components/Tabs/Tabs.js +246 -231
- package/dist/components/ToastCard/ToastCard.js +31 -31
- package/dist/components/Toggle/Toggle.js +147 -137
- package/dist/components/Toggle/Toggle.stories.d.ts +5 -5
- package/dist/components/ToggleGroup/Toggle.d.ts +0 -1
- package/dist/components/ToggleGroup/Toggle.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +266 -325
- package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -4
- package/dist/components/TransactionRow/TransactionRow.stories.d.ts +21 -21
- package/dist/contexts/DraggableProvider/DraggableProvider.d.ts +0 -1
- package/dist/contexts/DraggableProvider/DraggableProvider.js +1 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.js +1 -1
- package/dist/{dayjs.min-ClQKmc--.js → dayjs.min-BtgZiFZY.js} +14 -14
- package/dist/getReactElementRef-iorwYm2A.js +19 -0
- package/dist/{index-1UpBa69h.js → index-ew-96uBP.js} +2129 -2128
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/main.js +2 -2
- package/dist/{ownerDocument-By592Iy6.js → ownerDocument-CU-LCrtd.js} +1 -1
- package/dist/react-BTbo_5A3.js +526 -0
- package/dist/setRef-Bo0HEdBB.js +6 -0
- package/dist/useButton-C2E_LFJp.js +90 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useId-CK6Kn3Tn.js +21 -0
- package/dist/useList-BLW78Lq7.js +446 -0
- package/dist/utils/draggable.d.ts +2 -2
- package/dist/utils/iconsList.js +118 -112
- package/package.json +1 -1
- package/dist/Button-BrEDdtHO.js +0 -130
- package/dist/Popup-Dffqo7wT.js +0 -1246
- package/dist/RadioOption-DYovqiwF.js +0 -720
- package/dist/combineHooksSlotProps-BhQ14uyD.js +0 -79
- package/dist/exactProp-SYjL19cU.js +0 -13
- package/dist/react-BvI-Sw9b.js +0 -509
- package/dist/useButton-CezPDte8.js +0 -105
- package/dist/useControlled-CCMYYdCM.js +0 -31
- package/dist/useId-BW-oWmul.js +0 -19
- package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
- package/dist/useList-nqLfZem8.js +0 -435
- package/dist/useSlotProps-CYHDC4TN.js +0 -834
- package/dist/useTimeout-DxF9kiZL.js +0 -36
|
@@ -5,143 +5,145 @@ declare const meta: {
|
|
|
5
5
|
component: ({ snackbarMessage, variant, autoHideDuration, open, onClose, onClosed, classNameWrapper, "data-testid": dataTestId, }: SnackbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
tags: string[];
|
|
7
7
|
decorators: ((Story: import('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
8
|
-
accept?: string | undefined;
|
|
9
|
-
alt?: string | undefined;
|
|
8
|
+
accept?: string | undefined | undefined;
|
|
9
|
+
alt?: string | undefined | undefined;
|
|
10
10
|
autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
|
|
11
|
-
capture?: boolean | "user" | "environment" | undefined;
|
|
12
|
-
checked?: boolean | undefined;
|
|
13
|
-
disabled?: boolean | undefined;
|
|
14
|
-
|
|
15
|
-
form?: string | undefined;
|
|
11
|
+
capture?: boolean | "user" | "environment" | undefined | undefined;
|
|
12
|
+
checked?: boolean | undefined | undefined;
|
|
13
|
+
disabled?: boolean | undefined | undefined;
|
|
14
|
+
form?: string | undefined | undefined;
|
|
16
15
|
formAction?: string | undefined;
|
|
17
|
-
formEncType?: string | undefined;
|
|
18
|
-
formMethod?: string | undefined;
|
|
19
|
-
formNoValidate?: boolean | undefined;
|
|
20
|
-
formTarget?: string | undefined;
|
|
21
|
-
height?: string |
|
|
22
|
-
list?: string | undefined;
|
|
23
|
-
max?: string |
|
|
24
|
-
maxLength?: number | undefined;
|
|
25
|
-
min?: string |
|
|
26
|
-
minLength?: number | undefined;
|
|
27
|
-
multiple?: boolean | undefined;
|
|
28
|
-
name?: string | undefined;
|
|
29
|
-
pattern?: string | undefined;
|
|
30
|
-
placeholder?: string | undefined;
|
|
31
|
-
readOnly?: boolean | undefined;
|
|
32
|
-
required?: boolean | undefined;
|
|
33
|
-
size?: number | undefined;
|
|
34
|
-
src?: string | undefined;
|
|
35
|
-
step?: string |
|
|
16
|
+
formEncType?: string | undefined | undefined;
|
|
17
|
+
formMethod?: string | undefined | undefined;
|
|
18
|
+
formNoValidate?: boolean | undefined | undefined;
|
|
19
|
+
formTarget?: string | undefined | undefined;
|
|
20
|
+
height?: number | string | undefined | undefined;
|
|
21
|
+
list?: string | undefined | undefined;
|
|
22
|
+
max?: number | string | undefined | undefined;
|
|
23
|
+
maxLength?: number | undefined | undefined;
|
|
24
|
+
min?: number | string | undefined | undefined;
|
|
25
|
+
minLength?: number | undefined | undefined;
|
|
26
|
+
multiple?: boolean | undefined | undefined;
|
|
27
|
+
name?: string | undefined | undefined;
|
|
28
|
+
pattern?: string | undefined | undefined;
|
|
29
|
+
placeholder?: string | undefined | undefined;
|
|
30
|
+
readOnly?: boolean | undefined | undefined;
|
|
31
|
+
required?: boolean | undefined | undefined;
|
|
32
|
+
size?: number | undefined | undefined;
|
|
33
|
+
src?: string | undefined | undefined;
|
|
34
|
+
step?: number | string | undefined | undefined;
|
|
36
35
|
type?: import('react').HTMLInputTypeAttribute | undefined;
|
|
37
36
|
value?: string | number | readonly string[] | undefined;
|
|
38
|
-
width?: string |
|
|
37
|
+
width?: number | string | undefined | undefined;
|
|
39
38
|
onChange?: import('react').ChangeEventHandler<HTMLInputElement> | undefined;
|
|
40
|
-
defaultChecked?: boolean | undefined;
|
|
39
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
41
40
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
42
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
43
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
44
|
-
accessKey?: string | undefined;
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
42
|
+
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
43
|
+
accessKey?: string | undefined | undefined;
|
|
44
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
45
|
+
autoFocus?: boolean | undefined | undefined;
|
|
46
|
+
className?: string | undefined | undefined;
|
|
47
47
|
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
48
|
-
contextMenu?: string | undefined;
|
|
49
|
-
dir?: string | undefined;
|
|
48
|
+
contextMenu?: string | undefined | undefined;
|
|
49
|
+
dir?: string | undefined | undefined;
|
|
50
50
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
52
|
+
hidden?: boolean | undefined | undefined;
|
|
53
|
+
id?: string | undefined | undefined;
|
|
54
|
+
lang?: string | undefined | undefined;
|
|
55
|
+
nonce?: string | undefined | undefined;
|
|
56
|
+
slot?: string | undefined | undefined;
|
|
56
57
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
57
58
|
style?: import('react').CSSProperties | undefined;
|
|
58
|
-
tabIndex?: number | undefined;
|
|
59
|
-
title?: string | undefined;
|
|
60
|
-
translate?: "
|
|
61
|
-
radioGroup?: string | undefined;
|
|
59
|
+
tabIndex?: number | undefined | undefined;
|
|
60
|
+
title?: string | undefined | undefined;
|
|
61
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
62
|
+
radioGroup?: string | undefined | undefined;
|
|
62
63
|
role?: import('react').AriaRole | undefined;
|
|
63
|
-
about?: string | undefined;
|
|
64
|
-
content?: string | undefined;
|
|
65
|
-
datatype?: string | undefined;
|
|
64
|
+
about?: string | undefined | undefined;
|
|
65
|
+
content?: string | undefined | undefined;
|
|
66
|
+
datatype?: string | undefined | undefined;
|
|
66
67
|
inlist?: any;
|
|
67
|
-
prefix?: string | undefined;
|
|
68
|
-
property?: string | undefined;
|
|
69
|
-
rel?: string | undefined;
|
|
70
|
-
resource?: string | undefined;
|
|
71
|
-
rev?: string | undefined;
|
|
72
|
-
typeof?: string | undefined;
|
|
73
|
-
vocab?: string | undefined;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
68
|
+
prefix?: string | undefined | undefined;
|
|
69
|
+
property?: string | undefined | undefined;
|
|
70
|
+
rel?: string | undefined | undefined;
|
|
71
|
+
resource?: string | undefined | undefined;
|
|
72
|
+
rev?: string | undefined | undefined;
|
|
73
|
+
typeof?: string | undefined | undefined;
|
|
74
|
+
vocab?: string | undefined | undefined;
|
|
75
|
+
autoCorrect?: string | undefined | undefined;
|
|
76
|
+
autoSave?: string | undefined | undefined;
|
|
77
|
+
color?: string | undefined | undefined;
|
|
78
|
+
itemProp?: string | undefined | undefined;
|
|
79
|
+
itemScope?: boolean | undefined | undefined;
|
|
80
|
+
itemType?: string | undefined | undefined;
|
|
81
|
+
itemID?: string | undefined | undefined;
|
|
82
|
+
itemRef?: string | undefined | undefined;
|
|
83
|
+
results?: number | undefined | undefined;
|
|
84
|
+
security?: string | undefined | undefined;
|
|
85
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
86
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
87
|
+
is?: string | undefined | undefined;
|
|
88
|
+
exportparts?: string | undefined | undefined;
|
|
89
|
+
part?: string | undefined | undefined;
|
|
90
|
+
"aria-activedescendant"?: string | undefined | undefined;
|
|
89
91
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
90
|
-
"aria-autocomplete"?: "
|
|
91
|
-
"aria-braillelabel"?: string | undefined;
|
|
92
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
92
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
93
|
+
"aria-braillelabel"?: string | undefined | undefined;
|
|
94
|
+
"aria-brailleroledescription"?: string | undefined | undefined;
|
|
93
95
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
94
|
-
"aria-checked"?: boolean | "
|
|
95
|
-
"aria-colcount"?: number | undefined;
|
|
96
|
-
"aria-colindex"?: number | undefined;
|
|
97
|
-
"aria-colindextext"?: string | undefined;
|
|
98
|
-
"aria-colspan"?: number | undefined;
|
|
99
|
-
"aria-controls"?: string | undefined;
|
|
100
|
-
"aria-current"?: boolean | "
|
|
101
|
-
"aria-describedby"?: string | undefined;
|
|
102
|
-
"aria-description"?: string | undefined;
|
|
103
|
-
"aria-details"?: string | undefined;
|
|
96
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
97
|
+
"aria-colcount"?: number | undefined | undefined;
|
|
98
|
+
"aria-colindex"?: number | undefined | undefined;
|
|
99
|
+
"aria-colindextext"?: string | undefined | undefined;
|
|
100
|
+
"aria-colspan"?: number | undefined | undefined;
|
|
101
|
+
"aria-controls"?: string | undefined | undefined;
|
|
102
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
103
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
104
|
+
"aria-description"?: string | undefined | undefined;
|
|
105
|
+
"aria-details"?: string | undefined | undefined;
|
|
104
106
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
105
|
-
"aria-dropeffect"?: "
|
|
106
|
-
"aria-errormessage"?: string | undefined;
|
|
107
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
108
|
+
"aria-errormessage"?: string | undefined | undefined;
|
|
107
109
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
108
|
-
"aria-flowto"?: string | undefined;
|
|
110
|
+
"aria-flowto"?: string | undefined | undefined;
|
|
109
111
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
110
|
-
"aria-haspopup"?: boolean | "
|
|
112
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
|
|
111
113
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
112
|
-
"aria-invalid"?: boolean | "
|
|
113
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
114
|
-
"aria-label"?: string | undefined;
|
|
115
|
-
"aria-labelledby"?: string | undefined;
|
|
116
|
-
"aria-level"?: number | undefined;
|
|
117
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
114
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
|
|
115
|
+
"aria-keyshortcuts"?: string | undefined | undefined;
|
|
116
|
+
"aria-label"?: string | undefined | undefined;
|
|
117
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
118
|
+
"aria-level"?: number | undefined | undefined;
|
|
119
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
118
120
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
119
121
|
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
120
122
|
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
121
|
-
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
122
|
-
"aria-owns"?: string | undefined;
|
|
123
|
-
"aria-placeholder"?: string | undefined;
|
|
124
|
-
"aria-posinset"?: number | undefined;
|
|
125
|
-
"aria-pressed"?: boolean | "
|
|
123
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
|
|
124
|
+
"aria-owns"?: string | undefined | undefined;
|
|
125
|
+
"aria-placeholder"?: string | undefined | undefined;
|
|
126
|
+
"aria-posinset"?: number | undefined | undefined;
|
|
127
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
126
128
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
127
|
-
"aria-relevant"?: "
|
|
129
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
128
130
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
129
|
-
"aria-roledescription"?: string | undefined;
|
|
130
|
-
"aria-rowcount"?: number | undefined;
|
|
131
|
-
"aria-rowindex"?: number | undefined;
|
|
132
|
-
"aria-rowindextext"?: string | undefined;
|
|
133
|
-
"aria-rowspan"?: number | undefined;
|
|
131
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
132
|
+
"aria-rowcount"?: number | undefined | undefined;
|
|
133
|
+
"aria-rowindex"?: number | undefined | undefined;
|
|
134
|
+
"aria-rowindextext"?: string | undefined | undefined;
|
|
135
|
+
"aria-rowspan"?: number | undefined | undefined;
|
|
134
136
|
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
135
|
-
"aria-setsize"?: number | undefined;
|
|
136
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
137
|
-
"aria-valuemax"?: number | undefined;
|
|
138
|
-
"aria-valuemin"?: number | undefined;
|
|
139
|
-
"aria-valuenow"?: number | undefined;
|
|
140
|
-
"aria-valuetext"?: string | undefined;
|
|
137
|
+
"aria-setsize"?: number | undefined | undefined;
|
|
138
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
139
|
+
"aria-valuemax"?: number | undefined | undefined;
|
|
140
|
+
"aria-valuemin"?: number | undefined | undefined;
|
|
141
|
+
"aria-valuenow"?: number | undefined | undefined;
|
|
142
|
+
"aria-valuetext"?: string | undefined | undefined;
|
|
141
143
|
children?: import('react').ReactNode;
|
|
142
144
|
dangerouslySetInnerHTML?: {
|
|
143
145
|
__html: string | TrustedHTML;
|
|
144
|
-
} | undefined;
|
|
146
|
+
} | undefined | undefined;
|
|
145
147
|
onCopy?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
146
148
|
onCopyCapture?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
147
149
|
onCut?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
@@ -159,7 +161,7 @@ declare const meta: {
|
|
|
159
161
|
onBlur?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
|
|
160
162
|
onBlurCapture?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
|
|
161
163
|
onChangeCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
162
|
-
onBeforeInput?: import('react').
|
|
164
|
+
onBeforeInput?: import('react').InputEventHandler<HTMLInputElement> | undefined;
|
|
163
165
|
onBeforeInputCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
164
166
|
onInput?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
165
167
|
onInputCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
@@ -209,8 +211,6 @@ declare const meta: {
|
|
|
209
211
|
onProgressCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
210
212
|
onRateChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
211
213
|
onRateChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
212
|
-
onResize?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
213
|
-
onResizeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
214
214
|
onSeeked?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
215
215
|
onSeekedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
216
216
|
onSeeking?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
@@ -14,11 +14,11 @@ declare const meta: {
|
|
|
14
14
|
layout: string;
|
|
15
15
|
};
|
|
16
16
|
subcomponents: {
|
|
17
|
-
'Table.THead':
|
|
18
|
-
'Table.TBody':
|
|
19
|
-
'Table.Tr':
|
|
20
|
-
'Table.Th':
|
|
21
|
-
'Table.Td':
|
|
17
|
+
'Table.THead': React.FunctionComponent<unknown>;
|
|
18
|
+
'Table.TBody': React.FunctionComponent<unknown>;
|
|
19
|
+
'Table.Tr': React.FunctionComponent<unknown>;
|
|
20
|
+
'Table.Th': React.FunctionComponent<unknown>;
|
|
21
|
+
'Table.Td': React.FunctionComponent<unknown>;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
export default meta;
|
|
@@ -1,126 +1,135 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as U, useContext as
|
|
4
|
-
import { c as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { Skeleton as
|
|
7
|
-
import { u as
|
|
8
|
-
import { g as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
const
|
|
14
|
-
function
|
|
15
|
-
return
|
|
1
|
+
import { jsx as i, jsxs as H } from "react/jsx-runtime";
|
|
2
|
+
import * as h from "react";
|
|
3
|
+
import { forwardRef as U, useContext as j, useMemo as z } from "react";
|
|
4
|
+
import { c as I } from "../../clsx-OuTLNxxd.js";
|
|
5
|
+
import { Icon as E } from "../Icon/Icon.js";
|
|
6
|
+
import { Skeleton as B } from "../Skeleton/Skeleton.js";
|
|
7
|
+
import { u as D, T as q, s as o } from "../../Tabs.module-DyJgAZt8.js";
|
|
8
|
+
import { g as A, a as G, u as F, e as L, b as W, c as $, d as J, P as e } from "../../ClassNameConfigurator-CVRWfyIa.js";
|
|
9
|
+
import { u as K, c as Q } from "../../combineHooksSlotProps-j-8UVeYo.js";
|
|
10
|
+
import { u as X } from "../../useId-CK6Kn3Tn.js";
|
|
11
|
+
import { u as Y } from "../../useButton-C2E_LFJp.js";
|
|
12
|
+
import { u as Z } from "../../useCompoundItem-B7Eo_qZk.js";
|
|
13
|
+
const S = "Tab";
|
|
14
|
+
function ee(a) {
|
|
15
|
+
return A(S, a);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
function
|
|
17
|
+
G(S, ["root", "selected", "disabled"]);
|
|
18
|
+
function te(a) {
|
|
19
19
|
return a.size;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function se(a) {
|
|
22
22
|
const {
|
|
23
23
|
value: t,
|
|
24
24
|
rootRef: s,
|
|
25
|
-
disabled:
|
|
25
|
+
disabled: u = !1,
|
|
26
26
|
id: b
|
|
27
|
-
} = a, n =
|
|
28
|
-
value:
|
|
29
|
-
selectionFollowsFocus:
|
|
30
|
-
getTabPanelId:
|
|
31
|
-
} =
|
|
32
|
-
disabled:
|
|
27
|
+
} = a, n = h.useRef(null), r = X(b), {
|
|
28
|
+
value: m,
|
|
29
|
+
selectionFollowsFocus: d,
|
|
30
|
+
getTabPanelId: p
|
|
31
|
+
} = D(), l = h.useMemo(() => ({
|
|
32
|
+
disabled: u,
|
|
33
33
|
ref: n,
|
|
34
34
|
id: r
|
|
35
|
-
}), [
|
|
36
|
-
id:
|
|
37
|
-
index:
|
|
38
|
-
totalItemCount:
|
|
39
|
-
} =
|
|
40
|
-
getRootProps:
|
|
41
|
-
highlighted:
|
|
42
|
-
selected:
|
|
43
|
-
} =
|
|
44
|
-
item:
|
|
35
|
+
}), [u, n, r]), {
|
|
36
|
+
id: c,
|
|
37
|
+
index: P,
|
|
38
|
+
totalItemCount: T
|
|
39
|
+
} = Z(t ?? te, l), {
|
|
40
|
+
getRootProps: y,
|
|
41
|
+
highlighted: C,
|
|
42
|
+
selected: f
|
|
43
|
+
} = K({
|
|
44
|
+
item: c
|
|
45
45
|
}), {
|
|
46
|
-
getRootProps:
|
|
47
|
-
rootRef:
|
|
48
|
-
active:
|
|
49
|
-
focusVisible:
|
|
50
|
-
setFocusVisible:
|
|
51
|
-
} =
|
|
52
|
-
disabled:
|
|
53
|
-
focusableWhenDisabled: !
|
|
46
|
+
getRootProps: v,
|
|
47
|
+
rootRef: x,
|
|
48
|
+
active: g,
|
|
49
|
+
focusVisible: N,
|
|
50
|
+
setFocusVisible: R
|
|
51
|
+
} = Y({
|
|
52
|
+
disabled: u,
|
|
53
|
+
focusableWhenDisabled: !d,
|
|
54
54
|
type: "button"
|
|
55
|
-
}),
|
|
55
|
+
}), _ = F(n, s, x), w = c !== void 0 ? p(c) : void 0;
|
|
56
56
|
return {
|
|
57
|
-
getRootProps: (
|
|
58
|
-
const
|
|
59
|
-
return
|
|
57
|
+
getRootProps: (O = {}) => {
|
|
58
|
+
const M = L(O), k = Q(y, v);
|
|
59
|
+
return {
|
|
60
|
+
...O,
|
|
61
|
+
...k(M),
|
|
60
62
|
role: "tab",
|
|
61
|
-
"aria-controls":
|
|
62
|
-
"aria-selected":
|
|
63
|
+
"aria-controls": w,
|
|
64
|
+
"aria-selected": f,
|
|
63
65
|
id: r,
|
|
64
|
-
ref:
|
|
65
|
-
}
|
|
66
|
+
ref: _
|
|
67
|
+
};
|
|
66
68
|
},
|
|
67
|
-
active:
|
|
68
|
-
focusVisible:
|
|
69
|
-
highlighted:
|
|
70
|
-
index:
|
|
71
|
-
rootRef:
|
|
69
|
+
active: g,
|
|
70
|
+
focusVisible: N,
|
|
71
|
+
highlighted: C,
|
|
72
|
+
index: P,
|
|
73
|
+
rootRef: _,
|
|
72
74
|
// the `selected` state isn't set on the server (it relies on effects to be calculated),
|
|
73
75
|
// so we fall back to checking the `value` prop with the selectedValue from the TabsContext
|
|
74
|
-
selected:
|
|
75
|
-
setFocusVisible:
|
|
76
|
-
totalTabsCount:
|
|
76
|
+
selected: f || c === m,
|
|
77
|
+
setFocusVisible: R,
|
|
78
|
+
totalTabsCount: T
|
|
77
79
|
};
|
|
78
80
|
}
|
|
79
|
-
const
|
|
81
|
+
const oe = (a) => {
|
|
80
82
|
const {
|
|
81
83
|
selected: t,
|
|
82
84
|
disabled: s
|
|
83
85
|
} = a;
|
|
84
|
-
return
|
|
86
|
+
return $({
|
|
85
87
|
root: ["root", t && "selected", s && "disabled"]
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
var l;
|
|
88
|
+
}, J(ee));
|
|
89
|
+
}, V = /* @__PURE__ */ h.forwardRef(function(t, s) {
|
|
89
90
|
const {
|
|
91
|
+
action: u,
|
|
90
92
|
children: b,
|
|
91
93
|
disabled: n = !1,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
94
|
+
onChange: r,
|
|
95
|
+
onClick: m,
|
|
96
|
+
onFocus: d,
|
|
97
|
+
slotProps: p = {},
|
|
98
|
+
slots: l = {},
|
|
99
|
+
value: c,
|
|
100
|
+
...P
|
|
101
|
+
} = t, T = h.useRef(null), y = F(T, s), {
|
|
102
|
+
active: C,
|
|
103
|
+
highlighted: f,
|
|
104
|
+
selected: v,
|
|
105
|
+
getRootProps: x
|
|
106
|
+
} = se({
|
|
107
|
+
...t,
|
|
108
|
+
rootRef: y,
|
|
102
109
|
value: c
|
|
103
|
-
})
|
|
104
|
-
|
|
110
|
+
}), g = {
|
|
111
|
+
...t,
|
|
112
|
+
active: C,
|
|
105
113
|
disabled: n,
|
|
106
|
-
highlighted:
|
|
107
|
-
selected:
|
|
108
|
-
}
|
|
109
|
-
elementType:
|
|
110
|
-
getSlotProps:
|
|
111
|
-
externalSlotProps:
|
|
112
|
-
externalForwardedProps:
|
|
114
|
+
highlighted: f,
|
|
115
|
+
selected: v
|
|
116
|
+
}, N = oe(g), R = l.root ?? "button", _ = W({
|
|
117
|
+
elementType: R,
|
|
118
|
+
getSlotProps: x,
|
|
119
|
+
externalSlotProps: p.root,
|
|
120
|
+
externalForwardedProps: P,
|
|
113
121
|
additionalProps: {
|
|
114
122
|
ref: s
|
|
115
123
|
},
|
|
116
|
-
ownerState:
|
|
117
|
-
className:
|
|
124
|
+
ownerState: g,
|
|
125
|
+
className: N.root
|
|
118
126
|
});
|
|
119
|
-
return /* @__PURE__ */
|
|
127
|
+
return /* @__PURE__ */ i(R, {
|
|
128
|
+
..._,
|
|
120
129
|
children: b
|
|
121
|
-
})
|
|
130
|
+
});
|
|
122
131
|
});
|
|
123
|
-
process.env.NODE_ENV !== "production" && (
|
|
132
|
+
process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
124
133
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
125
134
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
126
135
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -167,22 +176,22 @@ process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
|
167
176
|
value: e.oneOfType([e.number, e.string])
|
|
168
177
|
});
|
|
169
178
|
const ge = U(
|
|
170
|
-
({ children: a, value: t, disabled: s, className:
|
|
171
|
-
const
|
|
172
|
-
() =>
|
|
179
|
+
({ children: a, value: t, disabled: s, className: u, "data-testid": b, icon: n, chip: r, isLoading: m, indicative: d }, p) => {
|
|
180
|
+
const l = j(q), c = z(
|
|
181
|
+
() => I(
|
|
173
182
|
o.tabs__tab,
|
|
174
|
-
t === (
|
|
183
|
+
t === (l == null ? void 0 : l.value) && o["tabs__tab--selected"],
|
|
175
184
|
s && !r && o["tabs__tab--disabled"],
|
|
176
185
|
r && o["tabs__tab--chip"],
|
|
177
186
|
r && s && o["tabs__tab--chip--disabled"],
|
|
178
|
-
|
|
187
|
+
u
|
|
179
188
|
),
|
|
180
|
-
[t,
|
|
189
|
+
[t, l, s, r]
|
|
181
190
|
);
|
|
182
|
-
return /* @__PURE__ */
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
n && /* @__PURE__ */
|
|
191
|
+
return /* @__PURE__ */ i(V, { className: c, disabled: s, value: t, "data-testid": b, ref: p, children: m ? /* @__PURE__ */ i(B, { style: { width: "50px", margin: "auto" } }) : /* @__PURE__ */ H("div", { className: o["tabs__tab-content"], children: [
|
|
192
|
+
d && d === "empty" && /* @__PURE__ */ i("span", { className: I(o["tabs__tab-indicative"], o["tabs__tab-indicative--empty"]), children: /* @__PURE__ */ i(E, { icon: "empty-set", size: 10, color: "var(--orange-6)" }) }),
|
|
193
|
+
d && d === "success" && /* @__PURE__ */ i("span", { className: I(o["tabs__tab-indicative"], o["tabs__tab-indicative--success"]) }),
|
|
194
|
+
n && /* @__PURE__ */ i("span", { className: o["tabs__tab-icon"], children: typeof n == "string" ? /* @__PURE__ */ i(E, { icon: n }) : n }),
|
|
186
195
|
a
|
|
187
196
|
] }) });
|
|
188
197
|
}
|