@rovula/ui 0.0.7 → 0.0.8
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/cjs/bundle.css +64 -28
- package/dist/cjs/bundle.js +1 -1
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/cjs/types/components/Select/Select copy.d.ts +23 -0
- package/dist/cjs/types/components/Select/Select.d.ts +23 -0
- package/dist/cjs/types/components/Select/Select.stories.d.ts +348 -0
- package/dist/cjs/types/components/Select/Select.styles.d.ts +14 -0
- package/dist/cjs/types/components/TextInput/TextInput.styles.d.ts +0 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/components/Select/Select copy.js +42 -0
- package/dist/components/Select/Select.js +21 -0
- package/dist/components/Select/Select.stories.js +46 -0
- package/dist/components/Select/Select.styles.js +100 -0
- package/dist/components/TextInput/TextInput.js +2 -4
- package/dist/components/TextInput/TextInput.stories.js +1 -1
- package/dist/components/TextInput/TextInput.styles.js +13 -21
- package/dist/esm/bundle.css +64 -28
- package/dist/esm/bundle.js +1 -1
- package/dist/esm/bundle.js.map +1 -1
- package/dist/esm/types/components/Select/Select copy.d.ts +23 -0
- package/dist/esm/types/components/Select/Select.d.ts +23 -0
- package/dist/esm/types/components/Select/Select.stories.d.ts +348 -0
- package/dist/esm/types/components/Select/Select.styles.d.ts +14 -0
- package/dist/esm/types/components/TextInput/TextInput.styles.d.ts +0 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +24 -1
- package/dist/index.js +1 -0
- package/dist/src/theme/global.css +78 -32
- package/package.json +1 -1
- package/src/components/Select/Select copy.tsx +103 -0
- package/src/components/Select/Select.stories.tsx +52 -0
- package/src/components/Select/Select.styles.ts +111 -0
- package/src/components/Select/Select.tsx +54 -0
- package/src/components/TextInput/TextInput.stories.tsx +3 -3
- package/src/components/TextInput/TextInput.styles.ts +13 -21
- package/src/components/TextInput/TextInput.tsx +3 -3
- package/src/index.ts +1 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ id, options, label, size, rounded, variant, type, helperText, errorMessage, fullwidth, disabled, error, required, ...props }: {
|
|
5
|
+
id?: string | undefined;
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
8
|
+
rounded?: "none" | "normal" | "full" | undefined;
|
|
9
|
+
variant?: "outline" | "flat" | "underline" | undefined;
|
|
10
|
+
type?: React.HTMLInputTypeAttribute | undefined;
|
|
11
|
+
helperText?: string | undefined;
|
|
12
|
+
errorMessage?: string | undefined;
|
|
13
|
+
fullwidth?: boolean | undefined;
|
|
14
|
+
disabled?: boolean | undefined;
|
|
15
|
+
error?: boolean | undefined;
|
|
16
|
+
required?: boolean | undefined;
|
|
17
|
+
className?: string | undefined;
|
|
18
|
+
options: {
|
|
19
|
+
value: string;
|
|
20
|
+
label: string;
|
|
21
|
+
}[];
|
|
22
|
+
} & Omit<React.InputHTMLAttributes<HTMLSelectElement>, "size">) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
tags: string[];
|
|
24
|
+
parameters: {
|
|
25
|
+
layout: string;
|
|
26
|
+
};
|
|
27
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
28
|
+
id?: string | undefined;
|
|
29
|
+
label?: string | undefined;
|
|
30
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
31
|
+
rounded?: "none" | "normal" | "full" | undefined;
|
|
32
|
+
variant?: "outline" | "flat" | "underline" | undefined;
|
|
33
|
+
type?: React.HTMLInputTypeAttribute | undefined;
|
|
34
|
+
helperText?: string | undefined;
|
|
35
|
+
errorMessage?: string | undefined;
|
|
36
|
+
fullwidth?: boolean | undefined;
|
|
37
|
+
disabled?: boolean | undefined;
|
|
38
|
+
error?: boolean | undefined;
|
|
39
|
+
required?: boolean | undefined;
|
|
40
|
+
className?: string | undefined;
|
|
41
|
+
options: {
|
|
42
|
+
value: string;
|
|
43
|
+
label: string;
|
|
44
|
+
}[];
|
|
45
|
+
color?: string | undefined;
|
|
46
|
+
title?: string | undefined;
|
|
47
|
+
children?: React.ReactNode;
|
|
48
|
+
form?: string | undefined;
|
|
49
|
+
formAction?: string | undefined;
|
|
50
|
+
formEncType?: string | undefined;
|
|
51
|
+
formMethod?: string | undefined;
|
|
52
|
+
formNoValidate?: boolean | undefined;
|
|
53
|
+
formTarget?: string | undefined;
|
|
54
|
+
name?: string | undefined;
|
|
55
|
+
value?: string | number | readonly string[] | undefined;
|
|
56
|
+
defaultChecked?: boolean | undefined;
|
|
57
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
58
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
59
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
60
|
+
accessKey?: string | undefined;
|
|
61
|
+
autoFocus?: boolean | undefined;
|
|
62
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
63
|
+
contextMenu?: string | undefined;
|
|
64
|
+
dir?: string | undefined;
|
|
65
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
66
|
+
hidden?: boolean | undefined;
|
|
67
|
+
lang?: string | undefined;
|
|
68
|
+
nonce?: string | undefined;
|
|
69
|
+
slot?: string | undefined;
|
|
70
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
71
|
+
style?: React.CSSProperties | undefined;
|
|
72
|
+
tabIndex?: number | undefined;
|
|
73
|
+
translate?: "yes" | "no" | undefined;
|
|
74
|
+
radioGroup?: string | undefined;
|
|
75
|
+
role?: React.AriaRole | undefined;
|
|
76
|
+
about?: string | undefined;
|
|
77
|
+
content?: string | undefined;
|
|
78
|
+
datatype?: string | undefined;
|
|
79
|
+
inlist?: any;
|
|
80
|
+
prefix?: string | undefined;
|
|
81
|
+
property?: string | undefined;
|
|
82
|
+
rel?: string | undefined;
|
|
83
|
+
resource?: string | undefined;
|
|
84
|
+
rev?: string | undefined;
|
|
85
|
+
typeof?: string | undefined;
|
|
86
|
+
vocab?: string | undefined;
|
|
87
|
+
autoCapitalize?: string | undefined;
|
|
88
|
+
autoCorrect?: string | undefined;
|
|
89
|
+
autoSave?: string | undefined;
|
|
90
|
+
itemProp?: string | undefined;
|
|
91
|
+
itemScope?: boolean | undefined;
|
|
92
|
+
itemType?: string | undefined;
|
|
93
|
+
itemID?: string | undefined;
|
|
94
|
+
itemRef?: string | undefined;
|
|
95
|
+
results?: number | undefined;
|
|
96
|
+
security?: string | undefined;
|
|
97
|
+
unselectable?: "on" | "off" | undefined;
|
|
98
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
99
|
+
is?: string | undefined;
|
|
100
|
+
"aria-activedescendant"?: string | undefined;
|
|
101
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
102
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
103
|
+
"aria-braillelabel"?: string | undefined;
|
|
104
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
105
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
106
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
107
|
+
"aria-colcount"?: number | undefined;
|
|
108
|
+
"aria-colindex"?: number | undefined;
|
|
109
|
+
"aria-colindextext"?: string | undefined;
|
|
110
|
+
"aria-colspan"?: number | undefined;
|
|
111
|
+
"aria-controls"?: string | undefined;
|
|
112
|
+
"aria-current"?: boolean | "true" | "false" | "date" | "time" | "step" | "page" | "location" | undefined;
|
|
113
|
+
"aria-describedby"?: string | undefined;
|
|
114
|
+
"aria-description"?: string | undefined;
|
|
115
|
+
"aria-details"?: string | undefined;
|
|
116
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
117
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
118
|
+
"aria-errormessage"?: string | undefined;
|
|
119
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
120
|
+
"aria-flowto"?: string | undefined;
|
|
121
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
122
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
123
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
124
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
125
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
126
|
+
"aria-label"?: string | undefined;
|
|
127
|
+
"aria-labelledby"?: string | undefined;
|
|
128
|
+
"aria-level"?: number | undefined;
|
|
129
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
130
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
131
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
132
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
133
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
134
|
+
"aria-owns"?: string | undefined;
|
|
135
|
+
"aria-placeholder"?: string | undefined;
|
|
136
|
+
"aria-posinset"?: number | undefined;
|
|
137
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
138
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
139
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
140
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
141
|
+
"aria-roledescription"?: string | undefined;
|
|
142
|
+
"aria-rowcount"?: number | undefined;
|
|
143
|
+
"aria-rowindex"?: number | undefined;
|
|
144
|
+
"aria-rowindextext"?: string | undefined;
|
|
145
|
+
"aria-rowspan"?: number | undefined;
|
|
146
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
147
|
+
"aria-setsize"?: number | undefined;
|
|
148
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
149
|
+
"aria-valuemax"?: number | undefined;
|
|
150
|
+
"aria-valuemin"?: number | undefined;
|
|
151
|
+
"aria-valuenow"?: number | undefined;
|
|
152
|
+
"aria-valuetext"?: string | undefined;
|
|
153
|
+
dangerouslySetInnerHTML?: {
|
|
154
|
+
__html: string | TrustedHTML;
|
|
155
|
+
} | undefined;
|
|
156
|
+
onCopy?: React.ClipboardEventHandler<HTMLSelectElement> | undefined;
|
|
157
|
+
onCopyCapture?: React.ClipboardEventHandler<HTMLSelectElement> | undefined;
|
|
158
|
+
onCut?: React.ClipboardEventHandler<HTMLSelectElement> | undefined;
|
|
159
|
+
onCutCapture?: React.ClipboardEventHandler<HTMLSelectElement> | undefined;
|
|
160
|
+
onPaste?: React.ClipboardEventHandler<HTMLSelectElement> | undefined;
|
|
161
|
+
onPasteCapture?: React.ClipboardEventHandler<HTMLSelectElement> | undefined;
|
|
162
|
+
onCompositionEnd?: React.CompositionEventHandler<HTMLSelectElement> | undefined;
|
|
163
|
+
onCompositionEndCapture?: React.CompositionEventHandler<HTMLSelectElement> | undefined;
|
|
164
|
+
onCompositionStart?: React.CompositionEventHandler<HTMLSelectElement> | undefined;
|
|
165
|
+
onCompositionStartCapture?: React.CompositionEventHandler<HTMLSelectElement> | undefined;
|
|
166
|
+
onCompositionUpdate?: React.CompositionEventHandler<HTMLSelectElement> | undefined;
|
|
167
|
+
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLSelectElement> | undefined;
|
|
168
|
+
onFocus?: React.FocusEventHandler<HTMLSelectElement> | undefined;
|
|
169
|
+
onFocusCapture?: React.FocusEventHandler<HTMLSelectElement> | undefined;
|
|
170
|
+
onBlur?: React.FocusEventHandler<HTMLSelectElement> | undefined;
|
|
171
|
+
onBlurCapture?: React.FocusEventHandler<HTMLSelectElement> | undefined;
|
|
172
|
+
onChange?: React.ChangeEventHandler<HTMLSelectElement> | undefined;
|
|
173
|
+
onChangeCapture?: React.FormEventHandler<HTMLSelectElement> | undefined;
|
|
174
|
+
onBeforeInput?: React.FormEventHandler<HTMLSelectElement> | undefined;
|
|
175
|
+
onBeforeInputCapture?: React.FormEventHandler<HTMLSelectElement> | undefined;
|
|
176
|
+
onInput?: React.FormEventHandler<HTMLSelectElement> | undefined;
|
|
177
|
+
onInputCapture?: React.FormEventHandler<HTMLSelectElement> | undefined;
|
|
178
|
+
onReset?: React.FormEventHandler<HTMLSelectElement> | undefined;
|
|
179
|
+
onResetCapture?: React.FormEventHandler<HTMLSelectElement> | undefined;
|
|
180
|
+
onSubmit?: React.FormEventHandler<HTMLSelectElement> | undefined;
|
|
181
|
+
onSubmitCapture?: React.FormEventHandler<HTMLSelectElement> | undefined;
|
|
182
|
+
onInvalid?: React.FormEventHandler<HTMLSelectElement> | undefined;
|
|
183
|
+
onInvalidCapture?: React.FormEventHandler<HTMLSelectElement> | undefined;
|
|
184
|
+
onLoad?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
185
|
+
onLoadCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
186
|
+
onError?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
187
|
+
onErrorCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
188
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLSelectElement> | undefined;
|
|
189
|
+
onKeyDownCapture?: React.KeyboardEventHandler<HTMLSelectElement> | undefined;
|
|
190
|
+
onKeyPress?: React.KeyboardEventHandler<HTMLSelectElement> | undefined;
|
|
191
|
+
onKeyPressCapture?: React.KeyboardEventHandler<HTMLSelectElement> | undefined;
|
|
192
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLSelectElement> | undefined;
|
|
193
|
+
onKeyUpCapture?: React.KeyboardEventHandler<HTMLSelectElement> | undefined;
|
|
194
|
+
onAbort?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
195
|
+
onAbortCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
196
|
+
onCanPlay?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
197
|
+
onCanPlayCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
198
|
+
onCanPlayThrough?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
199
|
+
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
200
|
+
onDurationChange?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
201
|
+
onDurationChangeCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
202
|
+
onEmptied?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
203
|
+
onEmptiedCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
204
|
+
onEncrypted?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
205
|
+
onEncryptedCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
206
|
+
onEnded?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
207
|
+
onEndedCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
208
|
+
onLoadedData?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
209
|
+
onLoadedDataCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
210
|
+
onLoadedMetadata?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
211
|
+
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
212
|
+
onLoadStart?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
213
|
+
onLoadStartCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
214
|
+
onPause?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
215
|
+
onPauseCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
216
|
+
onPlay?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
217
|
+
onPlayCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
218
|
+
onPlaying?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
219
|
+
onPlayingCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
220
|
+
onProgress?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
221
|
+
onProgressCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
222
|
+
onRateChange?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
223
|
+
onRateChangeCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
224
|
+
onResize?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
225
|
+
onResizeCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
226
|
+
onSeeked?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
227
|
+
onSeekedCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
228
|
+
onSeeking?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
229
|
+
onSeekingCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
230
|
+
onStalled?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
231
|
+
onStalledCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
232
|
+
onSuspend?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
233
|
+
onSuspendCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
234
|
+
onTimeUpdate?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
235
|
+
onTimeUpdateCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
236
|
+
onVolumeChange?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
237
|
+
onVolumeChangeCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
238
|
+
onWaiting?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
239
|
+
onWaitingCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
240
|
+
onAuxClick?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
241
|
+
onAuxClickCapture?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
242
|
+
onClick?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
243
|
+
onClickCapture?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
244
|
+
onContextMenu?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
245
|
+
onContextMenuCapture?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
246
|
+
onDoubleClick?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
247
|
+
onDoubleClickCapture?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
248
|
+
onDrag?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
249
|
+
onDragCapture?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
250
|
+
onDragEnd?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
251
|
+
onDragEndCapture?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
252
|
+
onDragEnter?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
253
|
+
onDragEnterCapture?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
254
|
+
onDragExit?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
255
|
+
onDragExitCapture?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
256
|
+
onDragLeave?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
257
|
+
onDragLeaveCapture?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
258
|
+
onDragOver?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
259
|
+
onDragOverCapture?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
260
|
+
onDragStart?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
261
|
+
onDragStartCapture?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
262
|
+
onDrop?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
263
|
+
onDropCapture?: React.DragEventHandler<HTMLSelectElement> | undefined;
|
|
264
|
+
onMouseDown?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
265
|
+
onMouseDownCapture?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
266
|
+
onMouseEnter?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
267
|
+
onMouseLeave?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
268
|
+
onMouseMove?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
269
|
+
onMouseMoveCapture?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
270
|
+
onMouseOut?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
271
|
+
onMouseOutCapture?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
272
|
+
onMouseOver?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
273
|
+
onMouseOverCapture?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
274
|
+
onMouseUp?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
275
|
+
onMouseUpCapture?: React.MouseEventHandler<HTMLSelectElement> | undefined;
|
|
276
|
+
onSelect?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
277
|
+
onSelectCapture?: React.ReactEventHandler<HTMLSelectElement> | undefined;
|
|
278
|
+
onTouchCancel?: React.TouchEventHandler<HTMLSelectElement> | undefined;
|
|
279
|
+
onTouchCancelCapture?: React.TouchEventHandler<HTMLSelectElement> | undefined;
|
|
280
|
+
onTouchEnd?: React.TouchEventHandler<HTMLSelectElement> | undefined;
|
|
281
|
+
onTouchEndCapture?: React.TouchEventHandler<HTMLSelectElement> | undefined;
|
|
282
|
+
onTouchMove?: React.TouchEventHandler<HTMLSelectElement> | undefined;
|
|
283
|
+
onTouchMoveCapture?: React.TouchEventHandler<HTMLSelectElement> | undefined;
|
|
284
|
+
onTouchStart?: React.TouchEventHandler<HTMLSelectElement> | undefined;
|
|
285
|
+
onTouchStartCapture?: React.TouchEventHandler<HTMLSelectElement> | undefined;
|
|
286
|
+
onPointerDown?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
287
|
+
onPointerDownCapture?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
288
|
+
onPointerMove?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
289
|
+
onPointerMoveCapture?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
290
|
+
onPointerUp?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
291
|
+
onPointerUpCapture?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
292
|
+
onPointerCancel?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
293
|
+
onPointerCancelCapture?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
294
|
+
onPointerEnter?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
295
|
+
onPointerLeave?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
296
|
+
onPointerOver?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
297
|
+
onPointerOverCapture?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
298
|
+
onPointerOut?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
299
|
+
onPointerOutCapture?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
300
|
+
onGotPointerCapture?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
301
|
+
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
302
|
+
onLostPointerCapture?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
303
|
+
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLSelectElement> | undefined;
|
|
304
|
+
onScroll?: React.UIEventHandler<HTMLSelectElement> | undefined;
|
|
305
|
+
onScrollCapture?: React.UIEventHandler<HTMLSelectElement> | undefined;
|
|
306
|
+
onWheel?: React.WheelEventHandler<HTMLSelectElement> | undefined;
|
|
307
|
+
onWheelCapture?: React.WheelEventHandler<HTMLSelectElement> | undefined;
|
|
308
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLSelectElement> | undefined;
|
|
309
|
+
onAnimationStartCapture?: React.AnimationEventHandler<HTMLSelectElement> | undefined;
|
|
310
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLSelectElement> | undefined;
|
|
311
|
+
onAnimationEndCapture?: React.AnimationEventHandler<HTMLSelectElement> | undefined;
|
|
312
|
+
onAnimationIteration?: React.AnimationEventHandler<HTMLSelectElement> | undefined;
|
|
313
|
+
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLSelectElement> | undefined;
|
|
314
|
+
onTransitionEnd?: React.TransitionEventHandler<HTMLSelectElement> | undefined;
|
|
315
|
+
onTransitionEndCapture?: React.TransitionEventHandler<HTMLSelectElement> | undefined;
|
|
316
|
+
list?: string | undefined;
|
|
317
|
+
accept?: string | undefined;
|
|
318
|
+
alt?: string | undefined;
|
|
319
|
+
autoComplete?: React.HTMLInputAutoCompleteAttribute | undefined;
|
|
320
|
+
capture?: boolean | "user" | "environment" | undefined;
|
|
321
|
+
checked?: boolean | undefined;
|
|
322
|
+
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
323
|
+
height?: string | number | undefined;
|
|
324
|
+
max?: string | number | undefined;
|
|
325
|
+
maxLength?: number | undefined;
|
|
326
|
+
min?: string | number | undefined;
|
|
327
|
+
minLength?: number | undefined;
|
|
328
|
+
multiple?: boolean | undefined;
|
|
329
|
+
pattern?: string | undefined;
|
|
330
|
+
placeholder?: string | undefined;
|
|
331
|
+
readOnly?: boolean | undefined;
|
|
332
|
+
src?: string | undefined;
|
|
333
|
+
step?: string | number | undefined;
|
|
334
|
+
width?: string | number | undefined;
|
|
335
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
336
|
+
};
|
|
337
|
+
export default meta;
|
|
338
|
+
export declare const Default: {
|
|
339
|
+
args: {
|
|
340
|
+
label: string;
|
|
341
|
+
fullwidth: boolean;
|
|
342
|
+
options: {
|
|
343
|
+
value: string;
|
|
344
|
+
label: string;
|
|
345
|
+
}[];
|
|
346
|
+
};
|
|
347
|
+
render: (args: {}) => import("react/jsx-runtime").JSX.Element;
|
|
348
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const selectVariant: (props?: ({
|
|
2
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3
|
+
rounded?: "none" | "normal" | "full" | null | undefined;
|
|
4
|
+
variant?: "outline" | "flat" | "underline" | null | undefined;
|
|
5
|
+
fullwidth?: boolean | null | undefined;
|
|
6
|
+
disabled?: boolean | null | undefined;
|
|
7
|
+
error?: boolean | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
|
+
export declare const labelVariant: (props?: ({
|
|
10
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
11
|
+
disabled?: boolean | null | undefined;
|
|
12
|
+
error?: boolean | null | undefined;
|
|
13
|
+
isPlaceholderShown?: boolean | null | undefined;
|
|
14
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -11,7 +11,6 @@ export declare const labelVariant: (props?: ({
|
|
|
11
11
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
12
12
|
disabled?: boolean | null | undefined;
|
|
13
13
|
error?: boolean | null | undefined;
|
|
14
|
-
isFloating?: boolean | null | undefined;
|
|
15
14
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
15
|
export declare const helperTextVariant: (props?: ({
|
|
17
16
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -4,4 +4,5 @@ export { default as Table } from "./components/Table/Table";
|
|
|
4
4
|
export { default as TextInput } from "./components/TextInput/TextInput";
|
|
5
5
|
export { default as Text } from "./components/Text/Text";
|
|
6
6
|
export { default as Tabs } from "./components/Tabs/Tabs";
|
|
7
|
+
export { default as Select } from "./components/Select/Select";
|
|
7
8
|
export { resloveTimestamp, getStartDateOfDay, getEndDateOfDay, getStartEndTimestampOfDay, getTimestampUTC, } from "./utils/datetime";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { FC, ReactElement } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
|
|
3
4
|
type ButtonProps = {
|
|
4
5
|
title?: string;
|
|
@@ -63,6 +64,28 @@ interface TabsProps {
|
|
|
63
64
|
}
|
|
64
65
|
declare const Tabs: React.FC<TabsProps>;
|
|
65
66
|
|
|
67
|
+
type Options = {
|
|
68
|
+
value: string;
|
|
69
|
+
label: string;
|
|
70
|
+
};
|
|
71
|
+
type SelectProps = {
|
|
72
|
+
id?: string;
|
|
73
|
+
label?: string;
|
|
74
|
+
size?: "sm" | "md" | "lg";
|
|
75
|
+
rounded?: "none" | "normal" | "full";
|
|
76
|
+
variant?: "flat" | "outline" | "underline";
|
|
77
|
+
type?: React.HTMLInputTypeAttribute;
|
|
78
|
+
helperText?: string;
|
|
79
|
+
errorMessage?: string;
|
|
80
|
+
fullwidth?: boolean;
|
|
81
|
+
disabled?: boolean;
|
|
82
|
+
error?: boolean;
|
|
83
|
+
required?: boolean;
|
|
84
|
+
className?: string;
|
|
85
|
+
options: Options[];
|
|
86
|
+
} & Omit<React.InputHTMLAttributes<HTMLSelectElement>, "size">;
|
|
87
|
+
declare const Select: ({ id, options, label, size, rounded, variant, type, helperText, errorMessage, fullwidth, disabled, error, required, ...props }: SelectProps) => react_jsx_runtime.JSX.Element;
|
|
88
|
+
|
|
66
89
|
declare const resloveTimestamp: (timestamp: number) => number;
|
|
67
90
|
declare const getStartDateOfDay: (date: Date) => Date;
|
|
68
91
|
declare const getEndDateOfDay: (date: Date) => Date;
|
|
@@ -72,4 +95,4 @@ declare const getStartEndTimestampOfDay: () => {
|
|
|
72
95
|
};
|
|
73
96
|
declare const getTimestampUTC: (date: Date) => number;
|
|
74
97
|
|
|
75
|
-
export { Button, Table, Tabs, Text, TextInput, getEndDateOfDay, getStartDateOfDay, getStartEndTimestampOfDay, getTimestampUTC, resloveTimestamp };
|
|
98
|
+
export { Button, Select, Table, Tabs, Text, TextInput, getEndDateOfDay, getStartDateOfDay, getStartEndTimestampOfDay, getTimestampUTC, resloveTimestamp };
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export { default as Table } from "./components/Table/Table";
|
|
|
6
6
|
export { default as TextInput } from "./components/TextInput/TextInput";
|
|
7
7
|
export { default as Text } from "./components/Text/Text";
|
|
8
8
|
export { default as Tabs } from "./components/Tabs/Tabs";
|
|
9
|
+
export { default as Select } from "./components/Select/Select";
|
|
9
10
|
// UTILS
|
|
10
11
|
export { resloveTimestamp, getStartDateOfDay, getEndDateOfDay, getStartEndTimestampOfDay, getTimestampUTC, } from "./utils/datetime";
|
|
11
12
|
// const mainPreset = require("./theme/main-preset");
|
|
@@ -854,6 +854,10 @@ video {
|
|
|
854
854
|
margin-top: 6px;
|
|
855
855
|
}
|
|
856
856
|
|
|
857
|
+
.box-border {
|
|
858
|
+
box-sizing: border-box;
|
|
859
|
+
}
|
|
860
|
+
|
|
857
861
|
.block {
|
|
858
862
|
display: block;
|
|
859
863
|
}
|
|
@@ -901,6 +905,10 @@ video {
|
|
|
901
905
|
width: 400px;
|
|
902
906
|
}
|
|
903
907
|
|
|
908
|
+
.w-auto {
|
|
909
|
+
width: auto;
|
|
910
|
+
}
|
|
911
|
+
|
|
904
912
|
.w-full {
|
|
905
913
|
width: 100%;
|
|
906
914
|
}
|
|
@@ -1730,9 +1738,9 @@ video {
|
|
|
1730
1738
|
padding-inline-end: 2rem;
|
|
1731
1739
|
}
|
|
1732
1740
|
|
|
1733
|
-
.focus\:ring-
|
|
1741
|
+
.focus\:ring-1:focus {
|
|
1734
1742
|
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1735
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(
|
|
1743
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1736
1744
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1737
1745
|
}
|
|
1738
1746
|
|
|
@@ -1740,73 +1748,111 @@ video {
|
|
|
1740
1748
|
--tw-ring-inset: inset;
|
|
1741
1749
|
}
|
|
1742
1750
|
|
|
1751
|
+
.focus\:ring-error:focus {
|
|
1752
|
+
--tw-ring-opacity: 1;
|
|
1753
|
+
--tw-ring-color: rgb(var(--error-100) / var(--tw-ring-opacity));
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
.focus\:ring-input-stroke-active:focus {
|
|
1757
|
+
--tw-ring-opacity: 1;
|
|
1758
|
+
--tw-ring-color: rgb(var(--input-active-stroke-color) / var(--tw-ring-opacity));
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1743
1761
|
.active\:scale-\[98\%\]:active {
|
|
1744
1762
|
--tw-scale-x: 98%;
|
|
1745
1763
|
--tw-scale-y: 98%;
|
|
1746
1764
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1747
1765
|
}
|
|
1748
1766
|
|
|
1749
|
-
.peer
|
|
1750
|
-
top:
|
|
1767
|
+
.peer:-moz-placeholder-shown ~ .peer-placeholder-shown\:top-2 {
|
|
1768
|
+
top: 0.5rem;
|
|
1751
1769
|
}
|
|
1752
1770
|
|
|
1753
|
-
.peer:
|
|
1754
|
-
top:
|
|
1771
|
+
.peer:placeholder-shown ~ .peer-placeholder-shown\:top-2 {
|
|
1772
|
+
top: 0.5rem;
|
|
1755
1773
|
}
|
|
1756
1774
|
|
|
1757
|
-
.peer
|
|
1758
|
-
|
|
1775
|
+
.peer:-moz-placeholder-shown ~ .peer-placeholder-shown\:top-4 {
|
|
1776
|
+
top: 1rem;
|
|
1759
1777
|
}
|
|
1760
1778
|
|
|
1761
|
-
.peer:
|
|
1762
|
-
|
|
1763
|
-
background-color: rgb(var(--input-label-background-color) / var(--tw-bg-opacity));
|
|
1779
|
+
.peer:placeholder-shown ~ .peer-placeholder-shown\:top-4 {
|
|
1780
|
+
top: 1rem;
|
|
1764
1781
|
}
|
|
1765
1782
|
|
|
1766
|
-
.peer
|
|
1767
|
-
|
|
1768
|
-
color: rgb(var(--input-active-text-color) / var(--tw-text-opacity));
|
|
1783
|
+
.peer:-moz-placeholder-shown ~ .peer-placeholder-shown\:bg-transparent {
|
|
1784
|
+
background-color: transparent;
|
|
1769
1785
|
}
|
|
1770
1786
|
|
|
1771
|
-
.peer:
|
|
1772
|
-
|
|
1773
|
-
|
|
1787
|
+
.peer:placeholder-shown ~ .peer-placeholder-shown\:bg-transparent {
|
|
1788
|
+
background-color: transparent;
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
.peer:-moz-placeholder-shown ~ .peer-placeholder-shown\:typography-subtitile1 {
|
|
1792
|
+
font-size: 16px;
|
|
1793
|
+
line-height: 24px;
|
|
1774
1794
|
font-weight: 400;
|
|
1775
1795
|
}
|
|
1776
1796
|
|
|
1777
|
-
.peer:
|
|
1778
|
-
font-size:
|
|
1779
|
-
line-height:
|
|
1797
|
+
.peer:placeholder-shown ~ .peer-placeholder-shown\:typography-subtitile1 {
|
|
1798
|
+
font-size: 16px;
|
|
1799
|
+
line-height: 24px;
|
|
1780
1800
|
font-weight: 400;
|
|
1781
1801
|
}
|
|
1782
1802
|
|
|
1783
|
-
.peer
|
|
1784
|
-
|
|
1803
|
+
.peer:-moz-placeholder-shown ~ .peer-placeholder-shown\:typography-subtitile4 {
|
|
1804
|
+
font-size: 14px;
|
|
1805
|
+
line-height: 22px;
|
|
1806
|
+
font-weight: 400;
|
|
1785
1807
|
}
|
|
1786
1808
|
|
|
1787
|
-
.peer:
|
|
1788
|
-
|
|
1809
|
+
.peer:placeholder-shown ~ .peer-placeholder-shown\:typography-subtitile4 {
|
|
1810
|
+
font-size: 14px;
|
|
1811
|
+
line-height: 22px;
|
|
1812
|
+
font-weight: 400;
|
|
1789
1813
|
}
|
|
1790
1814
|
|
|
1791
|
-
.peer
|
|
1815
|
+
.peer:-moz-placeholder-shown ~ .peer-placeholder-shown\:typography-small1 {
|
|
1792
1816
|
font-size: 12px;
|
|
1793
|
-
line-height:
|
|
1817
|
+
line-height: 14px;
|
|
1794
1818
|
font-weight: 400;
|
|
1795
1819
|
}
|
|
1796
1820
|
|
|
1797
|
-
.peer:
|
|
1821
|
+
.peer:placeholder-shown ~ .peer-placeholder-shown\:typography-small1 {
|
|
1798
1822
|
font-size: 12px;
|
|
1799
|
-
line-height:
|
|
1823
|
+
line-height: 14px;
|
|
1800
1824
|
font-weight: 400;
|
|
1801
1825
|
}
|
|
1802
1826
|
|
|
1803
|
-
.peer:
|
|
1804
|
-
|
|
1805
|
-
|
|
1827
|
+
.peer:focus ~ .peer-focus\:-top-1 {
|
|
1828
|
+
top: -0.25rem;
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
.peer:focus ~ .peer-focus\:-top-1\.5 {
|
|
1832
|
+
top: -0.375rem;
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
.peer:focus ~ .peer-focus\:flex {
|
|
1836
|
+
display: flex;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
.peer:focus ~ .peer-focus\:bg-input-label-background {
|
|
1840
|
+
--tw-bg-opacity: 1;
|
|
1841
|
+
background-color: rgb(var(--input-label-background-color) / var(--tw-bg-opacity));
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
.peer:focus ~ .peer-focus\:text-input-text-active {
|
|
1845
|
+
--tw-text-opacity: 1;
|
|
1846
|
+
color: rgb(var(--input-active-text-color) / var(--tw-text-opacity));
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
.peer:focus ~ .peer-focus\:typography-label1 {
|
|
1850
|
+
font-size: 12px;
|
|
1851
|
+
line-height: 12px;
|
|
1806
1852
|
font-weight: 400;
|
|
1807
1853
|
}
|
|
1808
1854
|
|
|
1809
|
-
.peer:
|
|
1855
|
+
.peer:focus ~ .peer-focus\:typography-label2 {
|
|
1810
1856
|
font-size: 10px;
|
|
1811
1857
|
line-height: 10px;
|
|
1812
1858
|
font-weight: 400;
|