@pismo/marola 0.0.1-alpha.31 → 0.0.1-alpha.4
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/README.md +5 -17
- package/dist/{Button-2b1peDFT.js → Button-C3Qm852g.js} +23 -23
- package/dist/Dialog.module-BO0mdB7d.js +15 -0
- package/dist/ListContext-D6-YwtZn.js +18 -0
- package/dist/Tabs.module-_kSbSyth.js +66 -0
- package/dist/assets/CallToActionButton.css +1 -0
- package/dist/assets/Dialog.css +1 -1
- package/dist/assets/LoadingSpinner.css +1 -1
- package/dist/assets/Tabs.css +1 -1
- package/dist/assets/Typography.css +1 -1
- package/dist/assets/main.css +1 -0
- package/dist/components/CallToActionButton/CallToActionButton.d.ts +21 -0
- package/dist/components/CallToActionButton/CallToActionButton.js +57 -0
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.d.ts +1 -1
- package/dist/components/Dialog/Backdrop.js +9 -2
- package/dist/components/Dialog/CloseIconButton.js +124 -12
- package/dist/components/Dialog/Dialog.d.ts +5 -6
- package/dist/components/Dialog/Dialog.js +20103 -445
- package/dist/components/Dialog/{DialogTitle.d.ts → Title.d.ts} +3 -3
- package/dist/components/Dialog/Title.js +14 -0
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +0 -2
- package/dist/components/LoadingSpinner/LoadingSpinner.js +13 -12
- package/dist/components/Tabs/Tab.d.ts +1 -6
- package/dist/components/Tabs/Tab.js +173 -118
- package/dist/components/Tabs/TabPanel.d.ts +1 -5
- package/dist/components/Tabs/TabPanel.js +10 -8
- package/dist/components/Tabs/Tabs.d.ts +2 -8
- package/dist/components/Tabs/Tabs.js +701 -250
- package/dist/components/Typography/Typography.d.ts +6 -17
- package/dist/components/Typography/Typography.js +64 -55
- package/dist/{index-CH45lKw7.js → index-BZ1lkM_M.js} +159 -162
- package/dist/main.d.ts +5 -27
- package/dist/main.js +21 -76
- package/dist/types/helpers.d.ts +7 -14
- package/dist/useButton-CbmjmH5z.js +186 -0
- package/dist/useCompoundItem-B7wfGDHQ.js +41 -0
- package/package.json +10 -51
- package/src/playground/Playground.tsx +20 -0
- package/dist/ClickAwayListener-BSW-Nd-y.js +0 -107
- package/dist/Dialog.module-DFEmFdYT.js +0 -30
- package/dist/Group-B3p31ftp.js +0 -26
- package/dist/Popup-B6ZSGIEI.js +0 -1248
- package/dist/Portal-DIeBsWdL.js +0 -73
- package/dist/SelectButton-C8JQKaf4.js +0 -61
- package/dist/Tabs.module-jkH1Qjn7.js +0 -22
- package/dist/Toggle-BXcLAMNy.js +0 -142
- package/dist/assets/Advice.css +0 -1
- package/dist/assets/Button.css +0 -1
- package/dist/assets/Checkbox.css +0 -1
- package/dist/assets/EllipsisTooltip.css +0 -1
- package/dist/assets/Group.css +0 -1
- package/dist/assets/IconButton.css +0 -1
- package/dist/assets/Input.css +0 -1
- package/dist/assets/InputSearch.css +0 -1
- package/dist/assets/PageHeader.css +0 -1
- package/dist/assets/Pagination.css +0 -1
- package/dist/assets/SelectButton.css +0 -1
- package/dist/assets/Skeleton.css +0 -1
- package/dist/assets/Snackbar.css +0 -1
- package/dist/assets/SortTooltip.css +0 -1
- package/dist/assets/Stepper.css +0 -1
- package/dist/assets/Table.css +0 -1
- package/dist/assets/TextDisplay.css +0 -1
- package/dist/assets/Toggle.css +0 -1
- package/dist/assets/Toggle2.css +0 -1
- package/dist/assets/Tooltip.css +0 -1
- package/dist/combineHooksSlotProps-DVjg9PRh.js +0 -80
- package/dist/components/Advice/Advice.d.ts +0 -30
- package/dist/components/Advice/Advice.js +0 -48
- package/dist/components/Advice/Advice.stories.d.ts +0 -18
- package/dist/components/Button/Button.d.ts +0 -32
- package/dist/components/Button/Button.js +0 -65
- package/dist/components/Button/Button.stories.d.ts +0 -62
- package/dist/components/Checkbox/Checkbox.d.ts +0 -34
- package/dist/components/Checkbox/Checkbox.js +0 -71
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -31
- package/dist/components/Chip/Chip.d.ts +0 -39
- package/dist/components/Chip/Chip.js +0 -19
- package/dist/components/Chip/Chip.stories.d.ts +0 -42
- package/dist/components/Chip/chip.test.d.ts +0 -1
- package/dist/components/Dialog/Dialog.stories.d.ts +0 -343
- package/dist/components/Dialog/DialogTitle.js +0 -29
- package/dist/components/EllipsisTooltip/EllipsisTooltip.d.ts +0 -7
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +0 -23
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +0 -31
- package/dist/components/Icon/Icon.d.ts +0 -27
- package/dist/components/Icon/Icon.js +0 -136
- package/dist/components/Icon/Icon.stories.d.ts +0 -16
- package/dist/components/IconButton/Icon.stories.d.ts +0 -15
- package/dist/components/IconButton/IconButton.d.ts +0 -38
- package/dist/components/IconButton/IconButton.js +0 -63
- package/dist/components/Input/Input.d.ts +0 -44
- package/dist/components/Input/Input.js +0 -508
- package/dist/components/Input/Input.stories.d.ts +0 -43
- package/dist/components/InputSearch/InputSearch.d.ts +0 -9
- package/dist/components/InputSearch/InputSearch.js +0 -34
- package/dist/components/InputSearch/InputSearch.stories.d.ts +0 -39
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +0 -14
- package/dist/components/PageHeader/PageHeader.d.ts +0 -66
- package/dist/components/PageHeader/PageHeader.js +0 -87
- package/dist/components/PageHeader/PageHeader.stories.d.ts +0 -14
- package/dist/components/Pagination/Pagination.d.ts +0 -55
- package/dist/components/Pagination/Pagination.js +0 -237
- package/dist/components/Pagination/Pagination.stories.d.ts +0 -17
- package/dist/components/Select/Select.d.ts +0 -26
- package/dist/components/Select/Select.js +0 -857
- package/dist/components/Select/Select.stories.d.ts +0 -22
- package/dist/components/Select/SelectButton.d.ts +0 -12
- package/dist/components/Select/SelectButton.js +0 -8
- package/dist/components/Skeleton/Skeleton.d.ts +0 -25
- package/dist/components/Skeleton/Skeleton.js +0 -23
- package/dist/components/Skeleton/Skeleton.stories.d.ts +0 -14
- package/dist/components/Skeleton/SkeletonCircle.stories.d.ts +0 -14
- package/dist/components/Skeleton/SkeletonTable.stories.d.ts +0 -16
- package/dist/components/Snackbar/Snackbar.d.ts +0 -27
- package/dist/components/Snackbar/Snackbar.js +0 -639
- package/dist/components/Snackbar/Snackbar.stories.d.ts +0 -319
- package/dist/components/SortTooltip/SortTooltip.d.ts +0 -28
- package/dist/components/SortTooltip/SortTooltip.js +0 -93
- package/dist/components/Stepper/Stepper.d.ts +0 -26
- package/dist/components/Stepper/Stepper.js +0 -48
- package/dist/components/Stepper/Stepper.stories.d.ts +0 -16
- package/dist/components/Table/Table.d.ts +0 -56
- package/dist/components/Table/Table.js +0 -137
- package/dist/components/Table/Table.stories.d.ts +0 -29
- package/dist/components/Table/TableContext.d.ts +0 -19
- package/dist/components/Table/TableContext.js +0 -21
- package/dist/components/Table/_Table.TBody.stories.d.ts +0 -14
- package/dist/components/Table/_Table.THead.stories.d.ts +0 -14
- package/dist/components/Table/_Table.Td.stories.d.ts +0 -16
- package/dist/components/Table/_Table.Th.stories.d.ts +0 -15
- package/dist/components/Table/_Table.Tr.stories.d.ts +0 -15
- package/dist/components/Tabs/Tab.stories.d.ts +0 -15
- package/dist/components/Tabs/TabPanel.stories.d.ts +0 -14
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -14
- package/dist/components/TextDisplay/TextDisplay.d.ts +0 -23
- package/dist/components/TextDisplay/TextDisplay.js +0 -37
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +0 -13
- package/dist/components/TextDisplay/textDisplay.test.d.ts +0 -1
- package/dist/components/Toggle/Toggle.d.ts +0 -11
- package/dist/components/Toggle/Toggle.js +0 -266
- package/dist/components/Toggle/Toggle.stories.d.ts +0 -21
- package/dist/components/ToggleGroup/Group.d.ts +0 -18
- package/dist/components/ToggleGroup/Group.js +0 -7
- package/dist/components/ToggleGroup/Group.test.d.ts +0 -1
- package/dist/components/ToggleGroup/Toggle.d.ts +0 -15
- package/dist/components/ToggleGroup/Toggle.js +0 -16
- package/dist/components/ToggleGroup/Toggle.test.d.ts +0 -1
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +0 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +0 -6
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +0 -25
- package/dist/components/Tooltip/Tooltip.d.ts +0 -33
- package/dist/components/Tooltip/Tooltip.js +0 -141
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -35
- package/dist/components/Typography/Typography.stories.d.ts +0 -32
- package/dist/components/Typography/typography.test.d.ts +0 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.d.ts +0 -11
- package/dist/contexts/SnackbarProvider/SnackbarProvider.js +0 -50
- package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +0 -21
- package/dist/index-CjW42-M-.js +0 -19584
- package/dist/marola.css +0 -1
- package/dist/test-utils/assertStyles.d.ts +0 -1
- package/dist/test-utils/assertStyles.js +0 -11
- package/dist/useButton-DNk3wrQp.js +0 -105
- package/dist/useCompoundItem-D1iRfg8D.js +0 -84
- package/dist/useControlled-CCMYYdCM.js +0 -31
- package/dist/useEventCallback-xTG9piMa.js +0 -45
- package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
- package/dist/useList-B0hog_3-.js +0 -436
- package/dist/useTimeout-DxF9kiZL.js +0 -36
- package/dist/utils/styleStrings.d.ts +0 -6
- package/dist/utils/styleStrings.js +0 -10
- package/dist/utils/styleStrings.test.d.ts +0 -1
|
@@ -1,319 +0,0 @@
|
|
|
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, onClosed, 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" | "inline" | "both" | 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" | "execute" | "move" | "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" | "additions" | "additions removals" | "additions text" | "all" | "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
|
-
onClosed?: (() => void) | undefined;
|
|
313
|
-
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
314
|
-
};
|
|
315
|
-
export default meta;
|
|
316
|
-
type Story = StoryObj<typeof meta>;
|
|
317
|
-
export declare const Success: Story;
|
|
318
|
-
export declare const Error: Story;
|
|
319
|
-
export declare const Warning: Story;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
|
|
3
|
-
export type SortType = 'ASC' | 'DESC';
|
|
4
|
-
type SortCommonProps = {
|
|
5
|
-
className?: string;
|
|
6
|
-
'data-testid'?: string;
|
|
7
|
-
};
|
|
8
|
-
export type SortTranslationsByKeys = {
|
|
9
|
-
asc: string;
|
|
10
|
-
desc: string;
|
|
11
|
-
};
|
|
12
|
-
type SortLanguages = 'pt' | 'en';
|
|
13
|
-
type SortTranslations = {
|
|
14
|
-
t?: SortTranslationsByKeys;
|
|
15
|
-
language?: SortLanguages;
|
|
16
|
-
};
|
|
17
|
-
type SortTooltipProps = {
|
|
18
|
-
onSort: (order: SortType) => void;
|
|
19
|
-
onClose: () => void;
|
|
20
|
-
sortType?: SortType;
|
|
21
|
-
show?: boolean;
|
|
22
|
-
anchorRef?: HTMLElement | null | undefined;
|
|
23
|
-
} & SortCommonProps & SortTranslations;
|
|
24
|
-
export declare const sortTooltipDefaultTranslations: {
|
|
25
|
-
[key in SortLanguages]: SortTranslationsByKeys;
|
|
26
|
-
};
|
|
27
|
-
declare const SortTooltip: ({ children, className, language, onClose, onSort, show, sortType, t, ...rest }: PropsWithChildren<SortTooltipProps>) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export { SortTooltip };
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import '../../assets/SortTooltip.css';
|
|
2
|
-
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
3
|
-
import { c as d } from "../../clsx-DB4S2d7J.js";
|
|
4
|
-
import { Tooltip as b } from "../Tooltip/Tooltip.js";
|
|
5
|
-
import * as t from "react";
|
|
6
|
-
const m = (h) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...h }, /* @__PURE__ */ t.createElement("path", { d: "M4.73768 14.6906C4.35893 15.105 3.64205 15.105 3.26299 14.6906L0.541112 11.6878C0.167987 11.28 0.195487 10.6469 0.602643 10.2731C1.00952 9.89969 1.64233 9.92812 2.01577 10.3348L3.00017 11.4406V2.00094C3.00017 1.44781 3.44799 1 4.00017 1C4.55236 1 5.00017 1.44781 5.00017 2.00094V11.4384L6.01267 10.3325C6.3708 9.94219 7.00236 9.88281 7.4258 10.2708C7.83299 10.6443 7.86018 11.2777 7.48733 11.6855L4.73768 14.6906Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M14.0001 13H12.4141L14.7073 10.7069C14.9934 10.4208 15.0788 9.99098 14.9241 9.61691C14.7693 9.24285 14.4032 9.00004 13.972 9.00004H9.97196C9.44696 9.00004 9.00008 9.44691 9.00008 10C9.00008 10.5532 9.4479 11 10.0001 11H11.586L9.2929 13.2932C9.00677 13.5793 8.92133 14.0091 9.07608 14.3832C9.23083 14.7572 9.59696 15 9.97196 15H13.9438C14.5532 15 15.0001 14.5532 15.0001 14C15.0001 13.4469 14.5532 13 14.0001 13ZM15.3938 6.54066L12.8941 1.53754C12.5554 0.855977 11.4441 0.855977 11.1054 1.53754L8.60633 6.54066C8.35927 7.03785 8.55946 7.64191 9.05352 7.89035C9.54946 8.13791 10.1485 7.93651 10.3951 7.44035L10.6186 6.99066H13.3821L13.6056 7.44035C13.7986 7.82879 14.3547 8.18629 14.9472 7.89035C15.4407 7.64379 15.6407 7.03754 15.3938 6.54066ZM11.4938 5.23129L12.0001 4.20941L12.507 5.2291H11.4938V5.23129Z", fill: "#1897F3" })), L = (h) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...h }, /* @__PURE__ */ t.createElement("path", { d: "M0.512792 11.6594C0.139667 11.2516 0.167167 10.6184 0.574323 10.2447C0.766229 10.0688 1.00839 9.98175 1.24964 9.98175C1.52063 9.98175 1.79026 10.0912 1.98745 10.3064L2.99998 11.4406V2.00094C2.99998 1.44781 3.44779 1 3.99998 1C4.55217 1 4.99998 1.44781 4.99998 2.00094V11.4384L6.01248 10.3325C6.38748 9.92812 7.01873 9.89687 7.42498 10.2719C7.83216 10.6453 7.85935 11.2787 7.48651 11.6866L4.76463 14.6894C4.38588 15.1037 3.66901 15.1037 3.28995 14.6894L0.512792 11.6594Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M10.0002 3H11.5862L9.29303 5.29313C9.00691 5.57925 8.92147 6.00906 9.07622 6.38313C9.23097 6.75719 9.59591 7 9.99997 7H13.9718C14.5533 6.97188 15.0002 6.55313 15.0002 6C15.0002 5.44688 14.5524 5 14.0002 5H12.4143L14.7074 2.70688C14.9935 2.42075 15.079 1.99094 14.9242 1.61688C14.7695 1.24281 14.4033 1 13.9721 1H10.0002C9.44709 1 9.00022 1.44719 9.00022 2C9.00022 2.55281 9.44709 3 10.0002 3ZM15.394 13.5406L12.8943 8.5375C12.5555 7.85594 11.4443 7.85594 11.1055 8.5375L8.60584 13.5406C8.35878 14.0378 8.55897 14.6419 9.05303 14.8903C9.54897 15.1379 10.148 14.9365 10.3946 14.4403L10.6182 13.9906H13.3816L13.6052 14.4403C13.7981 14.8288 14.3542 15.1863 14.9467 14.8903C15.4408 14.6438 15.6408 14.0375 15.394 13.5406ZM11.494 12.2313L12.0002 11.2094L12.5071 12.2291H11.494V12.2313Z", fill: "#1897F3" })), p = {
|
|
7
|
-
"u-typography-h1": "_u-typography-h1_1hhgh_1",
|
|
8
|
-
"u-typography-h2": "_u-typography-h2_1hhgh_8",
|
|
9
|
-
"u-typography-h3": "_u-typography-h3_1hhgh_15",
|
|
10
|
-
"u-typography-h4": "_u-typography-h4_1hhgh_22",
|
|
11
|
-
"u-typography-h5": "_u-typography-h5_1hhgh_29",
|
|
12
|
-
"u-typography-h6": "_u-typography-h6_1hhgh_36",
|
|
13
|
-
"u-typography-base": "_u-typography-base_1hhgh_43",
|
|
14
|
-
"sort-tooltip": "_sort-tooltip_1hhgh_43",
|
|
15
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_1hhgh_48",
|
|
16
|
-
"u-typography-base--xl": "_u-typography-base--xl_1hhgh_52",
|
|
17
|
-
"u-typography-base--lg": "_u-typography-base--lg_1hhgh_56",
|
|
18
|
-
"u-typography-base--sm": "_u-typography-base--sm_1hhgh_60",
|
|
19
|
-
"u-typography-base--bold": "_u-typography-base--bold_1hhgh_64",
|
|
20
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1hhgh_67",
|
|
21
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_1hhgh_70",
|
|
22
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1hhgh_73",
|
|
23
|
-
"button--selected": "_button--selected_1hhgh_94"
|
|
24
|
-
}, w = {
|
|
25
|
-
pt: {
|
|
26
|
-
asc: "Ascendente",
|
|
27
|
-
desc: "Descendente"
|
|
28
|
-
},
|
|
29
|
-
en: {
|
|
30
|
-
asc: "Sort ascending",
|
|
31
|
-
desc: "Sort descending"
|
|
32
|
-
}
|
|
33
|
-
}, Z = ({
|
|
34
|
-
children: h,
|
|
35
|
-
className: y,
|
|
36
|
-
language: l,
|
|
37
|
-
onClose: o,
|
|
38
|
-
onSort: r,
|
|
39
|
-
show: n,
|
|
40
|
-
sortType: s,
|
|
41
|
-
t: i,
|
|
42
|
-
..._
|
|
43
|
-
}) => {
|
|
44
|
-
const u = d(p["sort-tooltip"], y), C = i || w[l || "en"], g = (c) => C[c];
|
|
45
|
-
return /* @__PURE__ */ e(
|
|
46
|
-
b,
|
|
47
|
-
{
|
|
48
|
-
className: u,
|
|
49
|
-
onClose: o,
|
|
50
|
-
open: n,
|
|
51
|
-
theme: "white",
|
|
52
|
-
padding: "normal",
|
|
53
|
-
position: "bottom-start",
|
|
54
|
-
disableHoverListener: !0,
|
|
55
|
-
title: /* @__PURE__ */ a("ul", { children: [
|
|
56
|
-
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ a(
|
|
57
|
-
"button",
|
|
58
|
-
{
|
|
59
|
-
type: "button",
|
|
60
|
-
onClick: () => {
|
|
61
|
-
o(), r("ASC");
|
|
62
|
-
},
|
|
63
|
-
className: s === "ASC" ? p["button--selected"] : "",
|
|
64
|
-
children: [
|
|
65
|
-
/* @__PURE__ */ e(m, {}),
|
|
66
|
-
g`asc`
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
) }),
|
|
70
|
-
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ a(
|
|
71
|
-
"button",
|
|
72
|
-
{
|
|
73
|
-
type: "button",
|
|
74
|
-
onClick: () => {
|
|
75
|
-
o(), r("DESC");
|
|
76
|
-
},
|
|
77
|
-
className: s === "DESC" ? p["button--selected"] : "",
|
|
78
|
-
children: [
|
|
79
|
-
/* @__PURE__ */ e(L, {}),
|
|
80
|
-
g`desc`
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
) })
|
|
84
|
-
] }),
|
|
85
|
-
..._,
|
|
86
|
-
children: h
|
|
87
|
-
}
|
|
88
|
-
);
|
|
89
|
-
};
|
|
90
|
-
export {
|
|
91
|
-
Z as SortTooltip,
|
|
92
|
-
w as sortTooltipDefaultTranslations
|
|
93
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
export type StepperProps = {
|
|
4
|
-
/** Array of items to be rendered as steps */
|
|
5
|
-
steps: Array<ReactNode>;
|
|
6
|
-
/** The current selected step */
|
|
7
|
-
currentStep: number;
|
|
8
|
-
/** CSS classes to be applied on the container element */
|
|
9
|
-
className?: string;
|
|
10
|
-
/** CSS classes to be applied on the item element */
|
|
11
|
-
classNameItem?: string;
|
|
12
|
-
/** CSS classes to be applied on the counter element */
|
|
13
|
-
classNameCounter?: string;
|
|
14
|
-
/** CSS classes to be applied on the name element */
|
|
15
|
-
classNameName?: string;
|
|
16
|
-
/** Id to be applied as `data-testid` on the container element */
|
|
17
|
-
'data-testid'?: string;
|
|
18
|
-
/** Id to be applied as `data-testid` on the item element */
|
|
19
|
-
'data-testid-item'?: string;
|
|
20
|
-
/** Id to be applied as `data-testid` on the counter element */
|
|
21
|
-
'data-testid-counter'?: string;
|
|
22
|
-
/** Id to be applied as `data-testid` on the name element */
|
|
23
|
-
'data-testid-name'?: string;
|
|
24
|
-
};
|
|
25
|
-
declare const Stepper: ({ currentStep, steps, classNameItem, classNameCounter, classNameName, ...rest }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export { Stepper };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import '../../assets/Stepper.css';
|
|
2
|
-
import { jsx as _, jsxs as d } from "react/jsx-runtime";
|
|
3
|
-
import { c as p } from "../../clsx-DB4S2d7J.js";
|
|
4
|
-
const m = "_stepper_a47qe_60", c = "_item_a47qe_60", n = "_name_a47qe_60", l = "_counter_a47qe_64", e = {
|
|
5
|
-
"u-typography-h1": "_u-typography-h1_a47qe_1",
|
|
6
|
-
"u-typography-h2": "_u-typography-h2_a47qe_8",
|
|
7
|
-
"u-typography-h3": "_u-typography-h3_a47qe_15",
|
|
8
|
-
"u-typography-h4": "_u-typography-h4_a47qe_22",
|
|
9
|
-
"u-typography-h5": "_u-typography-h5_a47qe_29",
|
|
10
|
-
"u-typography-h6": "_u-typography-h6_a47qe_36",
|
|
11
|
-
"u-typography-base": "_u-typography-base_a47qe_43",
|
|
12
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_a47qe_48",
|
|
13
|
-
"u-typography-base--xl": "_u-typography-base--xl_a47qe_52",
|
|
14
|
-
"u-typography-base--lg": "_u-typography-base--lg_a47qe_56",
|
|
15
|
-
"u-typography-base--sm": "_u-typography-base--sm_a47qe_60",
|
|
16
|
-
stepper: m,
|
|
17
|
-
item: c,
|
|
18
|
-
name: n,
|
|
19
|
-
"u-typography-base--bold": "_u-typography-base--bold_a47qe_64",
|
|
20
|
-
"item--active": "_item--active_a47qe_64",
|
|
21
|
-
"item--completed": "_item--completed_a47qe_64",
|
|
22
|
-
counter: l,
|
|
23
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_a47qe_67",
|
|
24
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_a47qe_70",
|
|
25
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_a47qe_73"
|
|
26
|
-
}, v = ({ currentStep: y = 0, steps: r, classNameItem: s, classNameCounter: o, classNameName: h, ...a }) => /* @__PURE__ */ _("div", { className: p(e.stepper, a.className), "data-testid": a["data-testid"], children: r.map((u, t) => {
|
|
27
|
-
const i = t < y, g = t === y;
|
|
28
|
-
return /* @__PURE__ */ d(
|
|
29
|
-
"div",
|
|
30
|
-
{
|
|
31
|
-
className: p(
|
|
32
|
-
e.item,
|
|
33
|
-
i && e["item--completed"],
|
|
34
|
-
g && e["item--active"],
|
|
35
|
-
s
|
|
36
|
-
),
|
|
37
|
-
"data-testid": a["data-testid-item"],
|
|
38
|
-
children: [
|
|
39
|
-
/* @__PURE__ */ _("div", { className: p(e.counter, o), "data-testid": a["data-testid-counter"], children: t + 1 }),
|
|
40
|
-
/* @__PURE__ */ _("div", { className: p(e.name, h), "data-testid": a["data-testid-name"], children: u })
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
t
|
|
44
|
-
);
|
|
45
|
-
}) });
|
|
46
|
-
export {
|
|
47
|
-
v as Stepper
|
|
48
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { StepperProps } from './Stepper';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: ({ currentStep, steps, classNameItem, classNameCounter, classNameName, ...rest }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
tags: string[];
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof meta>;
|
|
14
|
-
export declare const Simple: Story;
|
|
15
|
-
export declare const WithStepsAsTexts: Story;
|
|
16
|
-
export declare const WithCustomStepNames: Story;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { TableTranslations } from './TableContext';
|
|
2
|
-
import { SortType } from '../SortTooltip/SortTooltip';
|
|
3
|
-
import { PaginationProps } from '../Pagination/Pagination';
|
|
4
|
-
|
|
5
|
-
export type ChildrenProps = {
|
|
6
|
-
/** Children of the component */
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
/** CSS classes to be applied on the component */
|
|
9
|
-
className?: string;
|
|
10
|
-
/** Id to be applied as data-testid on the component */
|
|
11
|
-
'data-testid'?: string;
|
|
12
|
-
};
|
|
13
|
-
type ActionProps = {
|
|
14
|
-
/** Disabled status */
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
/** Functionality to perform once clicked */
|
|
17
|
-
onClick?: () => void;
|
|
18
|
-
};
|
|
19
|
-
type AlignProps = {
|
|
20
|
-
/** Alignment */
|
|
21
|
-
align?: 'left' | 'right' | 'center';
|
|
22
|
-
};
|
|
23
|
-
type TableTheme = 'white' | 'transparent';
|
|
24
|
-
export type TableProps = ChildrenProps & {
|
|
25
|
-
/** Set if the table is full width */
|
|
26
|
-
fullWidth?: boolean;
|
|
27
|
-
/** Pagination Props */
|
|
28
|
-
paginationProps?: PaginationProps;
|
|
29
|
-
/** Set theme */
|
|
30
|
-
theme?: TableTheme;
|
|
31
|
-
/** Set language */
|
|
32
|
-
language?: string;
|
|
33
|
-
/** Set translations to labels */
|
|
34
|
-
translations?: TableTranslations;
|
|
35
|
-
};
|
|
36
|
-
declare const Table: {
|
|
37
|
-
({ children, theme, fullWidth, className, paginationProps, language, translations, ...rest }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
THead: import('react').FunctionComponent<ChildrenProps>;
|
|
39
|
-
TBody: import('react').FunctionComponent<ChildrenProps>;
|
|
40
|
-
Tr: import('react').FunctionComponent<TrProps>;
|
|
41
|
-
Td: import('react').FunctionComponent<TdProps>;
|
|
42
|
-
Th: import('react').FunctionComponent<ThProps>;
|
|
43
|
-
};
|
|
44
|
-
export declare const THead: ({ children, ...rest }: ChildrenProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
-
export declare const TBody: ({ children, ...rest }: ChildrenProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
|
-
export type TrProps = ChildrenProps & ActionProps;
|
|
47
|
-
export declare const Tr: ({ children, onClick, disabled, className, ...rest }: TrProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
-
export type TdProps = ChildrenProps & ActionProps & AlignProps;
|
|
49
|
-
export declare const Td: ({ children, onClick, disabled, className, align, ...rest }: TdProps) => import("react/jsx-runtime").JSX.Element;
|
|
50
|
-
export type ThProps = ChildrenProps & AlignProps & {
|
|
51
|
-
onSort?: (order: SortType) => void;
|
|
52
|
-
sortType?: SortType;
|
|
53
|
-
classNameTooltip?: string;
|
|
54
|
-
};
|
|
55
|
-
export declare const Th: ({ children, onSort, sortType, className, classNameTooltip, align, ...rest }: ThProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
export { Table, type TableTranslations };
|