@pismo/marola 0.0.1-alpha.14 → 0.0.1-alpha.16
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/SelectButton-DWZ2BRaX.js +44 -0
- package/dist/assets/InputSearch.css +1 -1
- package/dist/assets/SelectButton.css +1 -1
- package/dist/assets/Snackbar.css +1 -1
- package/dist/components/InputSearch/InputSearch.js +7 -7
- package/dist/components/Select/Select.d.ts +9 -8
- package/dist/components/Select/Select.js +153 -155
- package/dist/components/Select/Select.stories.d.ts +10 -19
- package/dist/components/Select/Select.stories.js +72 -48
- package/dist/components/Select/SelectButton.d.ts +3 -4
- package/dist/components/Select/SelectButton.js +2 -2
- package/dist/components/Snackbar/Snackbar.d.ts +17 -5
- package/dist/components/Snackbar/Snackbar.js +180 -180
- package/dist/components/Snackbar/Snackbar.stories.d.ts +318 -0
- package/dist/components/Snackbar/Snackbar.stories.js +62 -0
- package/dist/main.js +13 -13
- package/package.json +1 -1
- package/dist/SelectButton-DWtqAiwt.js +0 -45
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { SnackbarProps } from './Snackbar';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: ({ snackbarMessage, variant, autoHideDuration, open, onClose, classNameWrapper, "data-testid": dataTestId, }: SnackbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
tags: string[];
|
|
8
|
+
decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
9
|
+
accept?: string | undefined;
|
|
10
|
+
alt?: string | undefined;
|
|
11
|
+
autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
|
|
12
|
+
capture?: boolean | "user" | "environment" | undefined;
|
|
13
|
+
checked?: boolean | undefined;
|
|
14
|
+
disabled?: boolean | undefined;
|
|
15
|
+
enterKeyHint?: "search" | "next" | "enter" | "done" | "go" | "previous" | "send" | undefined;
|
|
16
|
+
form?: string | undefined;
|
|
17
|
+
formAction?: string | undefined;
|
|
18
|
+
formEncType?: string | undefined;
|
|
19
|
+
formMethod?: string | undefined;
|
|
20
|
+
formNoValidate?: boolean | undefined;
|
|
21
|
+
formTarget?: string | undefined;
|
|
22
|
+
height?: string | number | undefined;
|
|
23
|
+
list?: string | undefined;
|
|
24
|
+
max?: string | number | undefined;
|
|
25
|
+
maxLength?: number | undefined;
|
|
26
|
+
min?: string | number | undefined;
|
|
27
|
+
minLength?: number | undefined;
|
|
28
|
+
multiple?: boolean | undefined;
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
pattern?: string | undefined;
|
|
31
|
+
placeholder?: string | undefined;
|
|
32
|
+
readOnly?: boolean | undefined;
|
|
33
|
+
required?: boolean | undefined;
|
|
34
|
+
size?: number | undefined;
|
|
35
|
+
src?: string | undefined;
|
|
36
|
+
step?: string | number | undefined;
|
|
37
|
+
type?: import('react').HTMLInputTypeAttribute | undefined;
|
|
38
|
+
value?: string | number | readonly string[] | undefined;
|
|
39
|
+
width?: string | number | undefined;
|
|
40
|
+
onChange?: import('react').ChangeEventHandler<HTMLInputElement> | undefined;
|
|
41
|
+
defaultChecked?: boolean | undefined;
|
|
42
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
43
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
44
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
45
|
+
accessKey?: string | undefined;
|
|
46
|
+
autoFocus?: boolean | undefined;
|
|
47
|
+
className?: string | undefined;
|
|
48
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
49
|
+
contextMenu?: string | undefined;
|
|
50
|
+
dir?: string | undefined;
|
|
51
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
52
|
+
hidden?: boolean | undefined;
|
|
53
|
+
id?: string | undefined;
|
|
54
|
+
lang?: string | undefined;
|
|
55
|
+
nonce?: string | undefined;
|
|
56
|
+
slot?: string | undefined;
|
|
57
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
58
|
+
style?: import('react').CSSProperties | undefined;
|
|
59
|
+
tabIndex?: number | undefined;
|
|
60
|
+
title?: string | undefined;
|
|
61
|
+
translate?: "no" | "yes" | undefined;
|
|
62
|
+
radioGroup?: string | undefined;
|
|
63
|
+
role?: import('react').AriaRole | undefined;
|
|
64
|
+
about?: string | undefined;
|
|
65
|
+
content?: string | undefined;
|
|
66
|
+
datatype?: string | undefined;
|
|
67
|
+
inlist?: any;
|
|
68
|
+
prefix?: string | undefined;
|
|
69
|
+
property?: string | undefined;
|
|
70
|
+
rel?: string | undefined;
|
|
71
|
+
resource?: string | undefined;
|
|
72
|
+
rev?: string | undefined;
|
|
73
|
+
typeof?: string | undefined;
|
|
74
|
+
vocab?: string | undefined;
|
|
75
|
+
autoCapitalize?: string | undefined;
|
|
76
|
+
autoCorrect?: string | undefined;
|
|
77
|
+
autoSave?: string | undefined;
|
|
78
|
+
color?: string | undefined;
|
|
79
|
+
itemProp?: string | undefined;
|
|
80
|
+
itemScope?: boolean | undefined;
|
|
81
|
+
itemType?: string | undefined;
|
|
82
|
+
itemID?: string | undefined;
|
|
83
|
+
itemRef?: string | undefined;
|
|
84
|
+
results?: number | undefined;
|
|
85
|
+
security?: string | undefined;
|
|
86
|
+
unselectable?: "on" | "off" | undefined;
|
|
87
|
+
inputMode?: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
|
|
88
|
+
is?: string | undefined;
|
|
89
|
+
"aria-activedescendant"?: string | undefined;
|
|
90
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
91
|
+
"aria-autocomplete"?: "list" | "none" | "both" | "inline" | undefined;
|
|
92
|
+
"aria-braillelabel"?: string | undefined;
|
|
93
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
94
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
95
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
96
|
+
"aria-colcount"?: number | undefined;
|
|
97
|
+
"aria-colindex"?: number | undefined;
|
|
98
|
+
"aria-colindextext"?: string | undefined;
|
|
99
|
+
"aria-colspan"?: number | undefined;
|
|
100
|
+
"aria-controls"?: string | undefined;
|
|
101
|
+
"aria-current"?: boolean | "time" | "true" | "false" | "step" | "date" | "page" | "location" | undefined;
|
|
102
|
+
"aria-describedby"?: string | undefined;
|
|
103
|
+
"aria-description"?: string | undefined;
|
|
104
|
+
"aria-details"?: string | undefined;
|
|
105
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
106
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
107
|
+
"aria-errormessage"?: string | undefined;
|
|
108
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
109
|
+
"aria-flowto"?: string | undefined;
|
|
110
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
111
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
|
|
112
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
113
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
114
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
115
|
+
"aria-label"?: string | undefined;
|
|
116
|
+
"aria-labelledby"?: string | undefined;
|
|
117
|
+
"aria-level"?: number | undefined;
|
|
118
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
119
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
120
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
121
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
122
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
123
|
+
"aria-owns"?: string | undefined;
|
|
124
|
+
"aria-placeholder"?: string | undefined;
|
|
125
|
+
"aria-posinset"?: number | undefined;
|
|
126
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
127
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
128
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
129
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
130
|
+
"aria-roledescription"?: string | undefined;
|
|
131
|
+
"aria-rowcount"?: number | undefined;
|
|
132
|
+
"aria-rowindex"?: number | undefined;
|
|
133
|
+
"aria-rowindextext"?: string | undefined;
|
|
134
|
+
"aria-rowspan"?: number | undefined;
|
|
135
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
136
|
+
"aria-setsize"?: number | undefined;
|
|
137
|
+
"aria-sort"?: "none" | "other" | "ascending" | "descending" | undefined;
|
|
138
|
+
"aria-valuemax"?: number | undefined;
|
|
139
|
+
"aria-valuemin"?: number | undefined;
|
|
140
|
+
"aria-valuenow"?: number | undefined;
|
|
141
|
+
"aria-valuetext"?: string | undefined;
|
|
142
|
+
children?: import('react').ReactNode;
|
|
143
|
+
dangerouslySetInnerHTML?: {
|
|
144
|
+
__html: string | TrustedHTML;
|
|
145
|
+
} | undefined;
|
|
146
|
+
onCopy?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
147
|
+
onCopyCapture?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
148
|
+
onCut?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
149
|
+
onCutCapture?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
150
|
+
onPaste?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
151
|
+
onPasteCapture?: import('react').ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
152
|
+
onCompositionEnd?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
|
|
153
|
+
onCompositionEndCapture?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
|
|
154
|
+
onCompositionStart?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
|
|
155
|
+
onCompositionStartCapture?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
|
|
156
|
+
onCompositionUpdate?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
|
|
157
|
+
onCompositionUpdateCapture?: import('react').CompositionEventHandler<HTMLInputElement> | undefined;
|
|
158
|
+
onFocus?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
|
|
159
|
+
onFocusCapture?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
|
|
160
|
+
onBlur?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
|
|
161
|
+
onBlurCapture?: import('react').FocusEventHandler<HTMLInputElement> | undefined;
|
|
162
|
+
onChangeCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
163
|
+
onBeforeInput?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
164
|
+
onBeforeInputCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
165
|
+
onInput?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
166
|
+
onInputCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
167
|
+
onReset?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
168
|
+
onResetCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
169
|
+
onSubmit?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
170
|
+
onSubmitCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
171
|
+
onInvalid?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
172
|
+
onInvalidCapture?: import('react').FormEventHandler<HTMLInputElement> | undefined;
|
|
173
|
+
onLoad?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
174
|
+
onLoadCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
175
|
+
onError?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
176
|
+
onErrorCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
177
|
+
onKeyDown?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
178
|
+
onKeyDownCapture?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
179
|
+
onKeyPress?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
180
|
+
onKeyPressCapture?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
181
|
+
onKeyUp?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
182
|
+
onKeyUpCapture?: import('react').KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
183
|
+
onAbort?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
184
|
+
onAbortCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
185
|
+
onCanPlay?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
186
|
+
onCanPlayCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
187
|
+
onCanPlayThrough?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
188
|
+
onCanPlayThroughCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
189
|
+
onDurationChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
190
|
+
onDurationChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
191
|
+
onEmptied?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
192
|
+
onEmptiedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
193
|
+
onEncrypted?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
194
|
+
onEncryptedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
195
|
+
onEnded?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
196
|
+
onEndedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
197
|
+
onLoadedData?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
198
|
+
onLoadedDataCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
199
|
+
onLoadedMetadata?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
200
|
+
onLoadedMetadataCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
201
|
+
onLoadStart?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
202
|
+
onLoadStartCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
203
|
+
onPause?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
204
|
+
onPauseCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
205
|
+
onPlay?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
206
|
+
onPlayCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
207
|
+
onPlaying?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
208
|
+
onPlayingCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
209
|
+
onProgress?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
210
|
+
onProgressCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
211
|
+
onRateChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
212
|
+
onRateChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
213
|
+
onResize?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
214
|
+
onResizeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
215
|
+
onSeeked?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
216
|
+
onSeekedCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
217
|
+
onSeeking?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
218
|
+
onSeekingCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
219
|
+
onStalled?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
220
|
+
onStalledCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
221
|
+
onSuspend?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
222
|
+
onSuspendCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
223
|
+
onTimeUpdate?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
224
|
+
onTimeUpdateCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
225
|
+
onVolumeChange?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
226
|
+
onVolumeChangeCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
227
|
+
onWaiting?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
228
|
+
onWaitingCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
229
|
+
onAuxClick?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
230
|
+
onAuxClickCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
231
|
+
onClick?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
232
|
+
onClickCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
233
|
+
onContextMenu?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
234
|
+
onContextMenuCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
235
|
+
onDoubleClick?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
236
|
+
onDoubleClickCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
237
|
+
onDrag?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
238
|
+
onDragCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
239
|
+
onDragEnd?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
240
|
+
onDragEndCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
241
|
+
onDragEnter?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
242
|
+
onDragEnterCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
243
|
+
onDragExit?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
244
|
+
onDragExitCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
245
|
+
onDragLeave?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
246
|
+
onDragLeaveCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
247
|
+
onDragOver?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
248
|
+
onDragOverCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
249
|
+
onDragStart?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
250
|
+
onDragStartCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
251
|
+
onDrop?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
252
|
+
onDropCapture?: import('react').DragEventHandler<HTMLInputElement> | undefined;
|
|
253
|
+
onMouseDown?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
254
|
+
onMouseDownCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
255
|
+
onMouseEnter?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
256
|
+
onMouseLeave?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
257
|
+
onMouseMove?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
258
|
+
onMouseMoveCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
259
|
+
onMouseOut?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
260
|
+
onMouseOutCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
261
|
+
onMouseOver?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
262
|
+
onMouseOverCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
263
|
+
onMouseUp?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
264
|
+
onMouseUpCapture?: import('react').MouseEventHandler<HTMLInputElement> | undefined;
|
|
265
|
+
onSelect?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
266
|
+
onSelectCapture?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
|
|
267
|
+
onTouchCancel?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
268
|
+
onTouchCancelCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
269
|
+
onTouchEnd?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
270
|
+
onTouchEndCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
271
|
+
onTouchMove?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
272
|
+
onTouchMoveCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
273
|
+
onTouchStart?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
274
|
+
onTouchStartCapture?: import('react').TouchEventHandler<HTMLInputElement> | undefined;
|
|
275
|
+
onPointerDown?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
276
|
+
onPointerDownCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
277
|
+
onPointerMove?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
278
|
+
onPointerMoveCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
279
|
+
onPointerUp?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
280
|
+
onPointerUpCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
281
|
+
onPointerCancel?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
282
|
+
onPointerCancelCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
283
|
+
onPointerEnter?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
284
|
+
onPointerLeave?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
285
|
+
onPointerOver?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
286
|
+
onPointerOverCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
287
|
+
onPointerOut?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
288
|
+
onPointerOutCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
289
|
+
onGotPointerCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
290
|
+
onGotPointerCaptureCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
291
|
+
onLostPointerCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
292
|
+
onLostPointerCaptureCapture?: import('react').PointerEventHandler<HTMLInputElement> | undefined;
|
|
293
|
+
onScroll?: import('react').UIEventHandler<HTMLInputElement> | undefined;
|
|
294
|
+
onScrollCapture?: import('react').UIEventHandler<HTMLInputElement> | undefined;
|
|
295
|
+
onWheel?: import('react').WheelEventHandler<HTMLInputElement> | undefined;
|
|
296
|
+
onWheelCapture?: import('react').WheelEventHandler<HTMLInputElement> | undefined;
|
|
297
|
+
onAnimationStart?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
|
|
298
|
+
onAnimationStartCapture?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
|
|
299
|
+
onAnimationEnd?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
|
|
300
|
+
onAnimationEndCapture?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
|
|
301
|
+
onAnimationIteration?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
|
|
302
|
+
onAnimationIterationCapture?: import('react').AnimationEventHandler<HTMLInputElement> | undefined;
|
|
303
|
+
onTransitionEnd?: import('react').TransitionEventHandler<HTMLInputElement> | undefined;
|
|
304
|
+
onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLInputElement> | undefined;
|
|
305
|
+
variant: import('./Snackbar').SnackbarVariant;
|
|
306
|
+
snackbarMessage: string;
|
|
307
|
+
open?: boolean | undefined;
|
|
308
|
+
'data-testid'?: string | undefined;
|
|
309
|
+
classNameWrapper?: string | undefined;
|
|
310
|
+
autoHideDuration?: number | undefined;
|
|
311
|
+
onClose?: (() => void) | undefined;
|
|
312
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
313
|
+
};
|
|
314
|
+
export default meta;
|
|
315
|
+
type Story = StoryObj<typeof meta>;
|
|
316
|
+
export declare const Success: Story;
|
|
317
|
+
export declare const Error: Story;
|
|
318
|
+
export declare const Warning: Story;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as o, jsxs as s, Fragment as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as l } from "react";
|
|
3
|
+
import { Button as c } from "../Button/Button.js";
|
|
4
|
+
import { Snackbar as a } from "./Snackbar.js";
|
|
5
|
+
const C = {
|
|
6
|
+
title: "Components/Snackbar",
|
|
7
|
+
component: a,
|
|
8
|
+
tags: ["autodocs"],
|
|
9
|
+
decorators: [
|
|
10
|
+
(e) => /* @__PURE__ */ o("div", { style: { padding: "1em" }, children: /* @__PURE__ */ o(e, {}) })
|
|
11
|
+
]
|
|
12
|
+
};
|
|
13
|
+
function n(e) {
|
|
14
|
+
const [r, t] = l(!1);
|
|
15
|
+
return /* @__PURE__ */ s(i, { children: [
|
|
16
|
+
/* @__PURE__ */ o(c, { onClick: () => t(!0), children: "Open Snackbar" }),
|
|
17
|
+
/* @__PURE__ */ o(
|
|
18
|
+
a,
|
|
19
|
+
{
|
|
20
|
+
...e,
|
|
21
|
+
open: r,
|
|
22
|
+
onClose: () => {
|
|
23
|
+
t(!1), e != null && e.onClose && (e == null || e.onClose());
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
] });
|
|
28
|
+
}
|
|
29
|
+
const f = {
|
|
30
|
+
render: n,
|
|
31
|
+
args: {
|
|
32
|
+
snackbarMessage: "Dialog success",
|
|
33
|
+
variant: "success",
|
|
34
|
+
autoHideDuration: 5e3,
|
|
35
|
+
onClose: () => alert("Consider the dialog closed"),
|
|
36
|
+
open: !1
|
|
37
|
+
}
|
|
38
|
+
}, g = {
|
|
39
|
+
render: n,
|
|
40
|
+
args: {
|
|
41
|
+
variant: "error",
|
|
42
|
+
snackbarMessage: "Dialog error",
|
|
43
|
+
autoHideDuration: 5e3,
|
|
44
|
+
onClose: () => alert("Consider the dialog closed"),
|
|
45
|
+
open: !1
|
|
46
|
+
}
|
|
47
|
+
}, k = {
|
|
48
|
+
render: n,
|
|
49
|
+
args: {
|
|
50
|
+
variant: "warning",
|
|
51
|
+
snackbarMessage: "Dialog attention",
|
|
52
|
+
autoHideDuration: 5e3,
|
|
53
|
+
onClose: () => alert("Consider the dialog closed"),
|
|
54
|
+
open: !1
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
g as Error,
|
|
59
|
+
f as Success,
|
|
60
|
+
k as Warning,
|
|
61
|
+
C as default
|
|
62
|
+
};
|
package/dist/main.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Chip as
|
|
1
|
+
import { Chip as e } from "./components/Chip/Chip.js";
|
|
2
2
|
import { Advice as p } from "./components/Advice/Advice.js";
|
|
3
3
|
import { Button as f } from "./components/Button/Button.js";
|
|
4
4
|
import { Checkbox as n } from "./components/Checkbox/Checkbox.js";
|
|
5
5
|
import { Dialog as l } from "./components/Dialog/Dialog.js";
|
|
6
|
-
import { FamilyAndIcons as T, Icon as
|
|
7
|
-
import { IconButton as
|
|
8
|
-
import { Input as
|
|
6
|
+
import { FamilyAndIcons as T, Icon as c } from "./components/Icon/Icon.js";
|
|
7
|
+
import { IconButton as S } from "./components/IconButton/IconButton.js";
|
|
8
|
+
import { Input as u } from "./components/Input/Input.js";
|
|
9
9
|
import { InputSearch as d } from "./components/InputSearch/InputSearch.js";
|
|
10
10
|
import { LoadingSpinner as I } from "./components/LoadingSpinner/LoadingSpinner.js";
|
|
11
11
|
import { PageHeader as C } from "./components/PageHeader/PageHeader.js";
|
|
12
12
|
import { Pagination as y, paginationDefaultTranslations as A } from "./components/Pagination/Pagination.js";
|
|
13
|
-
import {
|
|
13
|
+
import { Select as B, SelectOption as v } from "./components/Select/Select.js";
|
|
14
14
|
import { Skeleton as H, SkeletonCircle as L, SkeletonTable as O } from "./components/Skeleton/Skeleton.js";
|
|
15
15
|
import { Snackbar as q } from "./components/Snackbar/Snackbar.js";
|
|
16
16
|
import { SortTooltip as z, sortTooltipDefaultTranslations as E } from "./components/SortTooltip/SortTooltip.js";
|
|
@@ -22,28 +22,28 @@ import { Tooltip as W } from "./components/Tooltip/Tooltip.js";
|
|
|
22
22
|
import { Typography as Y } from "./components/Typography/Typography.js";
|
|
23
23
|
import { default as _ } from "./components/Dialog/Title.js";
|
|
24
24
|
import { default as oo } from "./components/Dialog/Content.js";
|
|
25
|
-
import { default as
|
|
25
|
+
import { default as eo } from "./components/Dialog/Actions.js";
|
|
26
26
|
import { Tab as po } from "./components/Tabs/Tab.js";
|
|
27
27
|
import { TabPanel as fo } from "./components/Tabs/TabPanel.js";
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
eo as Actions,
|
|
30
30
|
p as Advice,
|
|
31
31
|
f as Button,
|
|
32
32
|
n as Checkbox,
|
|
33
|
-
|
|
33
|
+
e as Chip,
|
|
34
34
|
oo as Content,
|
|
35
35
|
l as Dialog,
|
|
36
36
|
_ as DialogTitle,
|
|
37
37
|
T as FamilyAndIcons,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
c as Icon,
|
|
39
|
+
S as IconButton,
|
|
40
|
+
u as Input,
|
|
41
41
|
d as InputSearch,
|
|
42
42
|
I as LoadingSpinner,
|
|
43
|
-
B as Option,
|
|
44
43
|
C as PageHeader,
|
|
45
44
|
y as Pagination,
|
|
46
|
-
|
|
45
|
+
B as Select,
|
|
46
|
+
v as SelectOption,
|
|
47
47
|
H as Skeleton,
|
|
48
48
|
L as SkeletonCircle,
|
|
49
49
|
O as SkeletonTable,
|
package/package.json
CHANGED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import './assets/SelectButton.css';
|
|
2
|
-
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import * as o from "react";
|
|
4
|
-
import { forwardRef as x } from "react";
|
|
5
|
-
import { c as p } from "./clsx-DB4S2d7J.js";
|
|
6
|
-
import { Typography as w } from "./components/Typography/Typography.js";
|
|
7
|
-
const d = "_select_yw431_1", m = "_select__listbox_yw431_4", u = "_select__listbox__option_yw431_12", y = "_select__listbox__option__icon_yw431_20", h = "_select__listbox__option__text_yw431_24", C = "_select__list__option__icon_yw431_44", _ = {
|
|
8
|
-
select: d,
|
|
9
|
-
select__listbox: m,
|
|
10
|
-
select__listbox__option: u,
|
|
11
|
-
select__listbox__option__icon: y,
|
|
12
|
-
select__listbox__option__text: h,
|
|
13
|
-
"select__listbox__option--disabled": "_select__listbox__option--disabled_yw431_27",
|
|
14
|
-
"select__listbox__option--selected": "_select__listbox__option--selected_yw431_36",
|
|
15
|
-
select__list__option__icon: C,
|
|
16
|
-
"select-button": "_select-button_yw431_49",
|
|
17
|
-
"select-button__text": "_select-button__text_yw431_62",
|
|
18
|
-
"select-button__text__prefix": "_select-button__text__prefix_yw431_69",
|
|
19
|
-
"select-button__icon": "_select-button__icon_yw431_72",
|
|
20
|
-
"select-button--active": "_select-button--active_yw431_78"
|
|
21
|
-
}, f = (t) => /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M2.11104 4.9999C2.36691 4.9999 2.62291 5.09756 2.81791 5.29287L8.11104 10.5843L13.4048 5.29053C13.7954 4.8999 14.4282 4.8999 14.8188 5.29053C15.2095 5.68115 15.2095 6.31396 14.8188 6.70459L8.81885 12.7046C8.42822 13.0952 7.79541 13.0952 7.40479 12.7046L1.40479 6.70459C1.01416 6.31396 1.01416 5.68115 1.40479 5.29053C1.59854 5.09678 1.85479 4.9999 2.11104 4.9999Z", fill: "currentColor" })), v = (t) => /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M13.8889 11C13.633 11 13.377 10.9023 13.182 10.707L7.8889 5.41563L2.59515 10.7094C2.20453 11.1 1.57172 11.1 1.18109 10.7094C0.790466 10.3188 0.790466 9.68594 1.18109 9.29532L7.18109 3.29532C7.57172 2.90469 8.20453 2.90469 8.59515 3.29532L14.5952 9.29532C14.9858 9.68594 14.9858 10.3188 14.5952 10.7094C14.4014 10.9031 14.1452 11 13.8889 11Z", fill: "#3F3D4B", fillOpacity: 0.88 })), E = x((t, c) => {
|
|
22
|
-
const { children: n, type: i = "button", disabled: a, className: b, "data-testid": r } = t, s = t["aria-expanded"];
|
|
23
|
-
return /* @__PURE__ */ l(
|
|
24
|
-
"button",
|
|
25
|
-
{
|
|
26
|
-
className: p(b, s ? _["select-button--active"] : "", _["select-button"]),
|
|
27
|
-
type: i,
|
|
28
|
-
onClick: t.onClick,
|
|
29
|
-
disabled: a,
|
|
30
|
-
"data-testid": r,
|
|
31
|
-
ref: c,
|
|
32
|
-
children: [
|
|
33
|
-
/* @__PURE__ */ l("span", { className: _["select-button__text"], children: [
|
|
34
|
-
/* @__PURE__ */ e("span", { className: _["select-button__text__prefix"], children: t["aria-labelledby"] }),
|
|
35
|
-
/* @__PURE__ */ e(w, { element: "span", variant: "body-small", className: _["select-button__text__content"], children: n })
|
|
36
|
-
] }),
|
|
37
|
-
/* @__PURE__ */ e("span", { className: _["select-button__icon"], children: s ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ e(f, {}) })
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
});
|
|
42
|
-
export {
|
|
43
|
-
E as B,
|
|
44
|
-
_ as s
|
|
45
|
-
};
|