@pismo/marola 0.0.1-alpha.13 → 0.0.1-alpha.15
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/Dialog.module-B8COssqi.js +15 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Dialog.css +1 -1
- package/dist/assets/Snackbar.css +1 -1
- package/dist/assets/Table.css +1 -1
- package/dist/components/Advice/Advice.d.ts +12 -0
- package/dist/components/Advice/Advice.stories.d.ts +16 -0
- package/dist/components/Advice/Advice.stories.js +48 -0
- package/dist/components/Button/Button.js +69 -69
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Dialog/Title.js +1 -1
- 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/components/Table/Table.js +64 -64
- package/package.json +2 -2
- package/dist/Dialog.module-CGVM5V_D.js +0 -15
|
@@ -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
|
+
};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import '../../assets/Table.css';
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { useState as
|
|
2
|
+
import { jsxs as b, jsx as r, Fragment as v } from "react/jsx-runtime";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { useState as T } from "react";
|
|
5
5
|
import { c as h } from "../../clsx-DB4S2d7J.js";
|
|
6
|
-
import { paginationDefaultTranslations as
|
|
7
|
-
import { sortTooltipDefaultTranslations as x, SortTooltip as
|
|
6
|
+
import { paginationDefaultTranslations as w, Pagination as u } from "../Pagination/Pagination.js";
|
|
7
|
+
import { sortTooltipDefaultTranslations as x, SortTooltip as g } from "../SortTooltip/SortTooltip.js";
|
|
8
8
|
import { TableProvider as N, useTable as C } from "./TableContext.js";
|
|
9
|
-
const L = (l) => /* @__PURE__ */
|
|
9
|
+
const L = (l) => /* @__PURE__ */ n.createElement("svg", { width: 7, height: 10, viewBox: "0 0 7 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ n.createElement("g", { clipPath: "url(#clip0_2291_2457)" }, /* @__PURE__ */ n.createElement("path", { d: "M6.41658 3.93794C6.26731 3.93794 6.11798 3.88301 6.00423 3.77314L3.49991 1.35923L0.995768 3.77271C0.767904 3.99243 0.398763 3.99243 0.170898 3.77271C-0.0569661 3.55298 -0.0569661 3.19702 0.170898 2.97729L3.08756 0.164795C3.31543 -0.0549316 3.68457 -0.0549316 3.91243 0.164795L6.8291 2.97729C7.05697 3.19702 7.05697 3.55298 6.8291 3.77271C6.71553 3.88345 6.56605 3.93794 6.41658 3.93794Z", fill: "#1897F3" }), /* @__PURE__ */ n.createElement("path", { opacity: 0.4, d: "M6.41663 5.38022C6.26737 5.38022 6.11804 5.43516 6.00429 5.54502L3.49997 7.95894L0.99528 5.5437C0.767415 5.32397 0.398275 5.32397 0.17041 5.5437C-0.0574544 5.76343 -0.0574544 6.11938 0.17041 6.33911L3.08708 9.15161C3.31494 9.37134 3.68408 9.37134 3.91195 9.15161L6.82861 6.33911C7.05648 6.11938 7.05648 5.76343 6.82861 5.5437C6.71559 5.43472 6.56611 5.38022 6.41663 5.38022Z", fill: "#1897F3" })), /* @__PURE__ */ n.createElement("defs", null, /* @__PURE__ */ n.createElement("clipPath", { id: "clip0_2291_2457" }, /* @__PURE__ */ n.createElement("rect", { width: 7, height: 10, fill: "white" })))), E = "_table_olvxb_1", y = "_th__wrapper_olvxb_40", P = "_tr_olvxb_58", B = "_td_olvxb_62", t = {
|
|
10
10
|
table: E,
|
|
11
|
-
"table--full-width": "_table--full-
|
|
12
|
-
"table--white-theme": "_table--white-
|
|
13
|
-
"table--transparent-theme": "_table--transparent-
|
|
14
|
-
"cell--left-alignment": "_cell--left-
|
|
15
|
-
"cell--center-alignment": "_cell--center-
|
|
16
|
-
"cell--right-alignment": "_cell--right-
|
|
17
|
-
th__wrapper:
|
|
18
|
-
"th__wrapper--pressed": "_th__wrapper--
|
|
19
|
-
"th__wrapper--clickable": "_th__wrapper--
|
|
20
|
-
"th__sort-icon-container": "_th__sort-icon-
|
|
21
|
-
"tr__row-or-cell--disabled": "_tr__row-or-cell--
|
|
22
|
-
tr:
|
|
23
|
-
td:
|
|
24
|
-
"tr__row-or-cell--clickable": "_tr__row-or-cell--
|
|
25
|
-
"td__row-or-cell--clickable": "_td__row-or-cell--
|
|
26
|
-
"td__row-or-cell--disabled": "_td__row-or-cell--
|
|
27
|
-
"td-wrapper": "_td-
|
|
28
|
-
},
|
|
11
|
+
"table--full-width": "_table--full-width_olvxb_5",
|
|
12
|
+
"table--white-theme": "_table--white-theme_olvxb_8",
|
|
13
|
+
"table--transparent-theme": "_table--transparent-theme_olvxb_11",
|
|
14
|
+
"cell--left-alignment": "_cell--left-alignment_olvxb_14",
|
|
15
|
+
"cell--center-alignment": "_cell--center-alignment_olvxb_18",
|
|
16
|
+
"cell--right-alignment": "_cell--right-alignment_olvxb_22",
|
|
17
|
+
th__wrapper: y,
|
|
18
|
+
"th__wrapper--pressed": "_th__wrapper--pressed_olvxb_43",
|
|
19
|
+
"th__wrapper--clickable": "_th__wrapper--clickable_olvxb_47",
|
|
20
|
+
"th__sort-icon-container": "_th__sort-icon-container_olvxb_50",
|
|
21
|
+
"tr__row-or-cell--disabled": "_tr__row-or-cell--disabled_olvxb_58",
|
|
22
|
+
tr: P,
|
|
23
|
+
td: B,
|
|
24
|
+
"tr__row-or-cell--clickable": "_tr__row-or-cell--clickable_olvxb_67",
|
|
25
|
+
"td__row-or-cell--clickable": "_td__row-or-cell--clickable_olvxb_68",
|
|
26
|
+
"td__row-or-cell--disabled": "_td__row-or-cell--disabled_olvxb_72",
|
|
27
|
+
"td-wrapper": "_td-wrapper_olvxb_76"
|
|
28
|
+
}, D = {
|
|
29
29
|
pt: {
|
|
30
|
-
...
|
|
30
|
+
...w.pt,
|
|
31
31
|
...x.pt
|
|
32
32
|
},
|
|
33
33
|
en: {
|
|
34
|
-
...
|
|
34
|
+
...w.en,
|
|
35
35
|
...x.en
|
|
36
36
|
},
|
|
37
37
|
// example to add a new language translation
|
|
@@ -48,75 +48,75 @@ const L = (l) => /* @__PURE__ */ c.createElement("svg", { width: 7, height: 10,
|
|
|
48
48
|
children: l,
|
|
49
49
|
theme: e = "white",
|
|
50
50
|
fullWidth: a = !0,
|
|
51
|
-
className:
|
|
52
|
-
paginationProps:
|
|
53
|
-
language:
|
|
54
|
-
translations:
|
|
51
|
+
className: s,
|
|
52
|
+
paginationProps: o,
|
|
53
|
+
language: _,
|
|
54
|
+
translations: c,
|
|
55
55
|
...m
|
|
56
56
|
}) => {
|
|
57
|
-
const
|
|
57
|
+
const i = h(
|
|
58
58
|
t.table,
|
|
59
59
|
a ? t["table--full-width"] : "",
|
|
60
60
|
t[`table--${e}-theme`],
|
|
61
|
-
|
|
62
|
-
),
|
|
63
|
-
return /* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */ r("table", { ...m, className:
|
|
65
|
-
|
|
61
|
+
s
|
|
62
|
+
), p = _ && D[_] || c;
|
|
63
|
+
return /* @__PURE__ */ b(N, { initialTranslations: p, children: [
|
|
64
|
+
/* @__PURE__ */ r("table", { ...m, className: i, children: l }),
|
|
65
|
+
o && /* @__PURE__ */ r(u, { ...o, t: p })
|
|
66
66
|
] });
|
|
67
|
-
},
|
|
68
|
-
const
|
|
67
|
+
}, F = ({ children: l, ...e }) => /* @__PURE__ */ r("thead", { ...e, children: l }), M = ({ children: l, ...e }) => /* @__PURE__ */ r("tbody", { ...e, children: l }), O = ({ children: l, onClick: e, disabled: a, className: s, ...o }) => {
|
|
68
|
+
const _ = h(
|
|
69
69
|
t.tr,
|
|
70
70
|
e && !a ? t["tr__row-or-cell--clickable"] : a ? t["tr__row-or-cell--disabled"] : "",
|
|
71
|
-
|
|
71
|
+
s
|
|
72
72
|
);
|
|
73
|
-
return /* @__PURE__ */ r("tr", { ...
|
|
74
|
-
},
|
|
75
|
-
const
|
|
73
|
+
return /* @__PURE__ */ r("tr", { ...o, className: _, onClick: () => !a && (e == null ? void 0 : e()), children: l });
|
|
74
|
+
}, $ = ({ children: l, onClick: e, disabled: a, className: s, align: o = "left", ..._ }) => {
|
|
75
|
+
const c = h(
|
|
76
76
|
t.td,
|
|
77
77
|
e && !a ? t["td__row-or-cell--clickable"] : a ? t["td__row-or-cell--disabled"] : "",
|
|
78
|
-
t[`cell--${
|
|
79
|
-
|
|
78
|
+
t[`cell--${o}-alignment`],
|
|
79
|
+
s
|
|
80
80
|
);
|
|
81
|
-
return /* @__PURE__ */ r("td", { ...
|
|
82
|
-
},
|
|
81
|
+
return /* @__PURE__ */ r("td", { ..._, className: c, onClick: () => !a && (e == null ? void 0 : e()), children: /* @__PURE__ */ r("span", { className: t["td-wrapper"], children: l }) });
|
|
82
|
+
}, j = ({
|
|
83
83
|
children: l,
|
|
84
84
|
onSort: e,
|
|
85
85
|
sortType: a,
|
|
86
|
-
className:
|
|
87
|
-
classNameTooltip:
|
|
88
|
-
align:
|
|
89
|
-
...
|
|
86
|
+
className: s,
|
|
87
|
+
classNameTooltip: o,
|
|
88
|
+
align: _ = "left",
|
|
89
|
+
...c
|
|
90
90
|
}) => {
|
|
91
|
-
const { translations: m } = C(), [
|
|
91
|
+
const { translations: m } = C(), [i, p] = T(!1), f = h(
|
|
92
92
|
t.th__wrapper,
|
|
93
|
-
|
|
93
|
+
i ? t["th__wrapper--pressed"] : "",
|
|
94
94
|
e ? t["th__wrapper--clickable"] : "",
|
|
95
|
-
|
|
95
|
+
s
|
|
96
96
|
);
|
|
97
|
-
return /* @__PURE__ */ r("th", { ...
|
|
97
|
+
return /* @__PURE__ */ r("th", { ...c, className: t[`cell--${_}-alignment`], children: /* @__PURE__ */ b("span", { className: f, onClick: e && (() => p(!i)), children: [
|
|
98
98
|
/* @__PURE__ */ r("span", { children: l }),
|
|
99
|
-
e && /* @__PURE__ */
|
|
99
|
+
e && /* @__PURE__ */ b(v, { children: [
|
|
100
100
|
/* @__PURE__ */ r("span", { className: t["th__sort-icon-container"], children: /* @__PURE__ */ r(L, {}) }),
|
|
101
101
|
/* @__PURE__ */ r(
|
|
102
|
-
|
|
102
|
+
g,
|
|
103
103
|
{
|
|
104
|
-
onClose: () =>
|
|
104
|
+
onClose: () => p(!1),
|
|
105
105
|
onSort: e,
|
|
106
|
-
show:
|
|
106
|
+
show: i,
|
|
107
107
|
sortType: a,
|
|
108
|
-
className:
|
|
108
|
+
className: o,
|
|
109
109
|
t: m
|
|
110
110
|
}
|
|
111
111
|
)
|
|
112
112
|
] })
|
|
113
113
|
] }) });
|
|
114
114
|
};
|
|
115
|
-
d.THead =
|
|
116
|
-
d.TBody =
|
|
117
|
-
d.Tr =
|
|
118
|
-
d.Td =
|
|
119
|
-
d.Th =
|
|
115
|
+
d.THead = F;
|
|
116
|
+
d.TBody = M;
|
|
117
|
+
d.Tr = O;
|
|
118
|
+
d.Td = $;
|
|
119
|
+
d.Th = j;
|
|
120
120
|
export {
|
|
121
121
|
d as Table
|
|
122
122
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pismo/marola",
|
|
3
3
|
"description": "CDX tribe component library",
|
|
4
|
-
"version": "0.0.1-alpha.
|
|
4
|
+
"version": "0.0.1-alpha.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -91,4 +91,4 @@
|
|
|
91
91
|
"@mui/base": "^5.0.0-beta.40",
|
|
92
92
|
"@mui/material": "^5.15.15"
|
|
93
93
|
}
|
|
94
|
-
}
|
|
94
|
+
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import './assets/Dialog.css';
|
|
2
|
-
const _ = "_dialog_1o2te_1", o = "_dialog__backdrop_1o2te_11", i = "_dialog__panel_1o2te_19", l = "_dialog__title_1o2te_35", t = "_dialog__subtitle_1o2te_42", a = "_dialog__divider_1o2te_51", d = "_dialog__actions_1o2te_64", e = {
|
|
3
|
-
dialog: _,
|
|
4
|
-
dialog__backdrop: o,
|
|
5
|
-
dialog__panel: i,
|
|
6
|
-
dialog__title: l,
|
|
7
|
-
"dialog__title--small": "_dialog__title--small_1o2te_39",
|
|
8
|
-
dialog__subtitle: t,
|
|
9
|
-
dialog__divider: a,
|
|
10
|
-
"dialog__close-icon": "_dialog__close-icon_1o2te_55",
|
|
11
|
-
dialog__actions: d
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
e as s
|
|
15
|
-
};
|