@particle-network/ui-react 0.1.3 → 0.1.4-beta.10
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/components/UXCalendar/index.d.ts +14 -0
- package/dist/components/UXCalendar/index.js +24 -0
- package/dist/components/UXCheckbox/checkbox.extend.d.ts +2 -1
- package/dist/components/UXCheckbox/checkbox.extend.js +19 -7
- package/dist/components/UXCheckbox/index.d.ts +2 -1
- package/dist/components/UXChip/chip.extend.d.ts +6 -298
- package/dist/components/UXChip/chip.extend.js +28 -44
- package/dist/components/UXChip/index.d.ts +3 -298
- package/dist/components/UXChip/index.js +25 -8
- package/dist/components/UXDateRangePicker/date-range-picker.extend.d.ts +7 -0
- package/dist/components/UXDateRangePicker/date-range-picker.extend.js +26 -0
- package/dist/components/UXDateRangePicker/index.d.ts +4 -0
- package/dist/components/UXDateRangePicker/index.js +55 -0
- package/dist/components/UXEmpty/index.d.ts +8 -0
- package/dist/components/UXEmpty/index.js +31 -0
- package/dist/components/UXInput/index.d.ts +4 -4
- package/dist/components/UXInput/input.extend.d.ts +4 -4
- package/dist/components/UXPagination/index.d.ts +3 -0
- package/dist/components/UXPagination/index.js +27 -0
- package/dist/components/UXSwitch/index.d.ts +1 -1
- package/dist/components/UXSwitch/switch.extend.d.ts +1 -1
- package/dist/components/UXTable/index.d.ts +350 -0
- package/dist/components/UXTable/index.js +14 -0
- package/dist/components/UXTable/table.extend.d.ts +347 -0
- package/dist/components/UXTable/table.extend.js +145 -0
- package/dist/components/UXTabs/tabs.classes.js +4 -4
- package/dist/components/UXTooltip/tooltip.extend.d.ts +3 -3
- package/dist/components/UXTooltip/tooltip.extend.js +8 -2
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.js +5 -0
- package/dist/hooks/useI18n.d.ts +5 -0
- package/dist/hooks/useI18n.js +16 -0
- package/dist/hooks/useLang.d.ts +3 -0
- package/dist/hooks/useLang.js +27 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.js +68 -2
- package/dist/utils/variants.js +2 -2
- package/package.json +1 -1
- package/tailwind-preset.js +16 -2
|
@@ -1,302 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ExtendedChip from './chip.extend';
|
|
3
3
|
export type UXChipProps = React.ComponentPropsWithRef<typeof ExtendedChip>;
|
|
4
|
-
declare const UXChip:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
defaultChecked?: any;
|
|
8
|
-
defaultValue?: any;
|
|
9
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
10
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
11
|
-
accessKey?: string | undefined;
|
|
12
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | (string & {}) | undefined;
|
|
13
|
-
autoFocus?: boolean | undefined;
|
|
14
|
-
className?: string | undefined;
|
|
15
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
16
|
-
contextMenu?: string | undefined;
|
|
17
|
-
dir?: string | undefined;
|
|
18
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
19
|
-
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
20
|
-
hidden?: boolean | undefined;
|
|
21
|
-
id?: string | undefined;
|
|
22
|
-
lang?: string | undefined;
|
|
23
|
-
nonce?: string | undefined;
|
|
24
|
-
slot?: any;
|
|
25
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
26
|
-
style?: React.CSSProperties | undefined;
|
|
27
|
-
tabIndex?: number | undefined;
|
|
28
|
-
title?: string | undefined;
|
|
29
|
-
translate?: "yes" | "no" | undefined;
|
|
30
|
-
radioGroup?: string | undefined;
|
|
31
|
-
role?: React.AriaRole | undefined;
|
|
32
|
-
about?: string | undefined;
|
|
33
|
-
content?: string | undefined;
|
|
34
|
-
datatype?: string | undefined;
|
|
35
|
-
inlist?: any;
|
|
36
|
-
prefix?: string | undefined;
|
|
37
|
-
property?: string | undefined;
|
|
38
|
-
rel?: string | undefined;
|
|
39
|
-
resource?: string | undefined;
|
|
40
|
-
rev?: string | undefined;
|
|
41
|
-
typeof?: string | undefined;
|
|
42
|
-
vocab?: string | undefined;
|
|
43
|
-
autoCorrect?: string | undefined;
|
|
44
|
-
autoSave?: string | undefined;
|
|
45
|
-
color?: "default" | "secondary" | "primary" | "success" | "danger" | "warning" | "bullish" | "bearish" | undefined;
|
|
46
|
-
itemProp?: string | undefined;
|
|
47
|
-
itemScope?: boolean | undefined;
|
|
48
|
-
itemType?: string | undefined;
|
|
49
|
-
itemID?: string | undefined;
|
|
50
|
-
itemRef?: string | undefined;
|
|
51
|
-
results?: number | undefined;
|
|
52
|
-
security?: string | undefined;
|
|
53
|
-
unselectable?: "off" | "on" | undefined;
|
|
54
|
-
popover?: "" | "auto" | "manual" | undefined;
|
|
55
|
-
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
56
|
-
popoverTarget?: string | undefined;
|
|
57
|
-
inert?: boolean | undefined;
|
|
58
|
-
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
59
|
-
is?: string | undefined;
|
|
60
|
-
exportparts?: string | undefined;
|
|
61
|
-
part?: string | undefined;
|
|
62
|
-
"aria-activedescendant"?: string | undefined;
|
|
63
|
-
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
64
|
-
"aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
|
|
65
|
-
"aria-braillelabel"?: string | undefined;
|
|
66
|
-
"aria-brailleroledescription"?: string | undefined;
|
|
67
|
-
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
68
|
-
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
69
|
-
"aria-colcount"?: number | undefined;
|
|
70
|
-
"aria-colindex"?: number | undefined;
|
|
71
|
-
"aria-colindextext"?: string | undefined;
|
|
72
|
-
"aria-colspan"?: number | undefined;
|
|
73
|
-
"aria-controls"?: string | undefined;
|
|
74
|
-
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
75
|
-
"aria-describedby"?: string | undefined;
|
|
76
|
-
"aria-description"?: string | undefined;
|
|
77
|
-
"aria-details"?: string | undefined;
|
|
78
|
-
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
79
|
-
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
80
|
-
"aria-errormessage"?: string | undefined;
|
|
81
|
-
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
82
|
-
"aria-flowto"?: string | undefined;
|
|
83
|
-
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
84
|
-
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
85
|
-
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
86
|
-
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
87
|
-
"aria-keyshortcuts"?: string | undefined;
|
|
88
|
-
"aria-label"?: string | undefined;
|
|
89
|
-
"aria-labelledby"?: string | undefined;
|
|
90
|
-
"aria-level"?: number | undefined;
|
|
91
|
-
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
92
|
-
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
93
|
-
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
94
|
-
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
95
|
-
"aria-orientation"?: "vertical" | "horizontal" | undefined;
|
|
96
|
-
"aria-owns"?: string | undefined;
|
|
97
|
-
"aria-placeholder"?: string | undefined;
|
|
98
|
-
"aria-posinset"?: number | undefined;
|
|
99
|
-
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
100
|
-
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
101
|
-
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
102
|
-
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
103
|
-
"aria-roledescription"?: string | undefined;
|
|
104
|
-
"aria-rowcount"?: number | undefined;
|
|
105
|
-
"aria-rowindex"?: number | undefined;
|
|
106
|
-
"aria-rowindextext"?: string | undefined;
|
|
107
|
-
"aria-rowspan"?: number | undefined;
|
|
108
|
-
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
109
|
-
"aria-setsize"?: number | undefined;
|
|
110
|
-
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
111
|
-
"aria-valuemax"?: number | undefined;
|
|
112
|
-
"aria-valuemin"?: number | undefined;
|
|
113
|
-
"aria-valuenow"?: number | undefined;
|
|
114
|
-
"aria-valuetext"?: string | undefined;
|
|
115
|
-
dangerouslySetInnerHTML?: {
|
|
116
|
-
__html: string | TrustedHTML;
|
|
117
|
-
} | undefined;
|
|
118
|
-
onCopy?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
119
|
-
onCopyCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
120
|
-
onCut?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
121
|
-
onCutCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
122
|
-
onPaste?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
123
|
-
onPasteCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
124
|
-
onCompositionEnd?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
125
|
-
onCompositionEndCapture?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
126
|
-
onCompositionStart?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
127
|
-
onCompositionStartCapture?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
128
|
-
onCompositionUpdate?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
129
|
-
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
130
|
-
onFocus?: React.FocusEventHandler<HTMLDivElement> | undefined;
|
|
131
|
-
onFocusCapture?: React.FocusEventHandler<HTMLDivElement> | undefined;
|
|
132
|
-
onBlur?: React.FocusEventHandler<HTMLDivElement> | undefined;
|
|
133
|
-
onBlurCapture?: React.FocusEventHandler<HTMLDivElement> | undefined;
|
|
134
|
-
onChange?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
135
|
-
onChangeCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
136
|
-
onBeforeInput?: React.InputEventHandler<HTMLDivElement> | undefined;
|
|
137
|
-
onBeforeInputCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
138
|
-
onInput?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
139
|
-
onInputCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
140
|
-
onReset?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
141
|
-
onResetCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
142
|
-
onSubmit?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
143
|
-
onSubmitCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
144
|
-
onInvalid?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
145
|
-
onInvalidCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
146
|
-
onLoad?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
147
|
-
onLoadCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
148
|
-
onError?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
149
|
-
onErrorCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
150
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
151
|
-
onKeyDownCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
152
|
-
onKeyPress?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
153
|
-
onKeyPressCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
154
|
-
onKeyUp?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
155
|
-
onKeyUpCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
156
|
-
onAbort?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
157
|
-
onAbortCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
158
|
-
onCanPlay?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
159
|
-
onCanPlayCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
160
|
-
onCanPlayThrough?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
161
|
-
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
162
|
-
onDurationChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
163
|
-
onDurationChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
164
|
-
onEmptied?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
165
|
-
onEmptiedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
166
|
-
onEncrypted?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
167
|
-
onEncryptedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
168
|
-
onEnded?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
169
|
-
onEndedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
170
|
-
onLoadedData?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
171
|
-
onLoadedDataCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
172
|
-
onLoadedMetadata?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
173
|
-
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
174
|
-
onLoadStart?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
175
|
-
onLoadStartCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
176
|
-
onPause?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
177
|
-
onPauseCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
178
|
-
onPlay?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
179
|
-
onPlayCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
180
|
-
onPlaying?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
181
|
-
onPlayingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
182
|
-
onProgress?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
183
|
-
onProgressCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
184
|
-
onRateChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
185
|
-
onRateChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
186
|
-
onSeeked?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
187
|
-
onSeekedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
188
|
-
onSeeking?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
189
|
-
onSeekingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
190
|
-
onStalled?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
191
|
-
onStalledCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
192
|
-
onSuspend?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
193
|
-
onSuspendCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
194
|
-
onTimeUpdate?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
195
|
-
onTimeUpdateCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
196
|
-
onVolumeChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
197
|
-
onVolumeChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
198
|
-
onWaiting?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
199
|
-
onWaitingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
200
|
-
onAuxClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
201
|
-
onAuxClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
202
|
-
onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
203
|
-
onClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
204
|
-
onContextMenu?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
205
|
-
onContextMenuCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
206
|
-
onDoubleClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
207
|
-
onDoubleClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
208
|
-
onDrag?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
209
|
-
onDragCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
210
|
-
onDragEnd?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
211
|
-
onDragEndCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
212
|
-
onDragEnter?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
213
|
-
onDragEnterCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
214
|
-
onDragExit?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
215
|
-
onDragExitCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
216
|
-
onDragLeave?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
217
|
-
onDragLeaveCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
218
|
-
onDragOver?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
219
|
-
onDragOverCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
220
|
-
onDragStart?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
221
|
-
onDragStartCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
222
|
-
onDrop?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
223
|
-
onDropCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
|
|
224
|
-
onMouseDown?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
225
|
-
onMouseDownCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
226
|
-
onMouseEnter?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
227
|
-
onMouseLeave?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
228
|
-
onMouseMove?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
229
|
-
onMouseMoveCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
230
|
-
onMouseOut?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
231
|
-
onMouseOutCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
232
|
-
onMouseOver?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
233
|
-
onMouseOverCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
234
|
-
onMouseUp?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
235
|
-
onMouseUpCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
|
|
236
|
-
onSelect?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
237
|
-
onSelectCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
238
|
-
onTouchCancel?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
239
|
-
onTouchCancelCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
240
|
-
onTouchEnd?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
241
|
-
onTouchEndCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
242
|
-
onTouchMove?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
243
|
-
onTouchMoveCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
244
|
-
onTouchStart?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
245
|
-
onTouchStartCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
|
|
246
|
-
onPointerDown?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
247
|
-
onPointerDownCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
248
|
-
onPointerMove?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
249
|
-
onPointerMoveCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
250
|
-
onPointerUp?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
251
|
-
onPointerUpCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
252
|
-
onPointerCancel?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
253
|
-
onPointerCancelCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
254
|
-
onPointerEnter?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
255
|
-
onPointerLeave?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
256
|
-
onPointerOver?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
257
|
-
onPointerOverCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
258
|
-
onPointerOut?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
259
|
-
onPointerOutCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
260
|
-
onGotPointerCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
261
|
-
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
262
|
-
onLostPointerCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
263
|
-
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
264
|
-
onScroll?: React.UIEventHandler<HTMLDivElement> | undefined;
|
|
265
|
-
onScrollCapture?: React.UIEventHandler<HTMLDivElement> | undefined;
|
|
266
|
-
onScrollEnd?: React.UIEventHandler<HTMLDivElement> | undefined;
|
|
267
|
-
onScrollEndCapture?: React.UIEventHandler<HTMLDivElement> | undefined;
|
|
268
|
-
onWheel?: React.WheelEventHandler<HTMLDivElement> | undefined;
|
|
269
|
-
onWheelCapture?: React.WheelEventHandler<HTMLDivElement> | undefined;
|
|
270
|
-
onAnimationStart?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
271
|
-
onAnimationStartCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
272
|
-
onAnimationEnd?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
273
|
-
onAnimationEndCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
274
|
-
onAnimationIteration?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
275
|
-
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
276
|
-
onToggle?: React.ToggleEventHandler<HTMLDivElement> | undefined;
|
|
277
|
-
onBeforeToggle?: React.ToggleEventHandler<HTMLDivElement> | undefined;
|
|
278
|
-
onTransitionCancel?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
279
|
-
onTransitionCancelCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
280
|
-
onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
281
|
-
onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
282
|
-
onTransitionRun?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
283
|
-
onTransitionRunCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
284
|
-
onTransitionStart?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
285
|
-
onTransitionStartCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
286
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
287
|
-
radius?: "sm" | "md" | "lg" | "none" | "full" | undefined;
|
|
288
|
-
variant?: "flat" | "solid" | "light" | "dot" | "bordered" | "faded" | "shadow" | undefined;
|
|
289
|
-
key?: React.Key | null | undefined;
|
|
290
|
-
isDisabled?: boolean | undefined;
|
|
291
|
-
as?: import("@heroui/system-rsc").As<any> | undefined;
|
|
292
|
-
startContent?: React.ReactNode;
|
|
293
|
-
endContent?: React.ReactNode;
|
|
294
|
-
onClose?: ((e: import("@react-types/shared").PressEvent) => void) | undefined;
|
|
295
|
-
classNames?: import("@heroui/theme").SlotsToClasses<"content" | "dot" | "base" | "closeButton" | "avatar"> | undefined;
|
|
296
|
-
avatar?: React.ReactNode;
|
|
297
|
-
isOneChar?: boolean | undefined;
|
|
298
|
-
isCloseable?: boolean | undefined;
|
|
299
|
-
hasStartContent?: boolean | undefined;
|
|
300
|
-
hasEndContent?: boolean | undefined;
|
|
301
|
-
}, "ref"> & React.RefAttributes<React.ReactElement<unknown, string | React.JSXElementConstructor<any>>>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const UXChip: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"div", Omit<import("@heroui/chip").ChipProps, "color"> & {
|
|
5
|
+
color?: "default" | "primary" | "success" | "warning" | "danger" | "bullish" | "bearish" | `#${string}`;
|
|
6
|
+
}, never>;
|
|
302
7
|
export default UXChip;
|
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import "react";
|
|
3
|
+
import { forwardRef } from "@heroui/system";
|
|
3
4
|
import chip_extend from "./chip.extend.js";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
const UXChip_UXChip = forwardRef((props, ref)=>{
|
|
6
|
+
const { color, variant, style, ...restProps } = props;
|
|
7
|
+
if ('string' == typeof color && color.startsWith('#')) return /*#__PURE__*/ jsx(chip_extend, {
|
|
8
|
+
ref: ref,
|
|
9
|
+
style: {
|
|
10
|
+
backgroundColor: 'solid' === variant ? color : `${color}20`,
|
|
11
|
+
color: 'solid' === variant ? 'white' : color,
|
|
12
|
+
...style
|
|
13
|
+
},
|
|
14
|
+
variant: variant,
|
|
15
|
+
...restProps
|
|
16
|
+
});
|
|
17
|
+
return /*#__PURE__*/ jsx(chip_extend, {
|
|
18
|
+
ref: ref,
|
|
19
|
+
variant: variant,
|
|
20
|
+
color: color,
|
|
21
|
+
style: style,
|
|
22
|
+
...restProps
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
UXChip_UXChip.displayName = 'UX.Chip';
|
|
26
|
+
const UXChip = UXChip_UXChip;
|
|
27
|
+
export { UXChip as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type PopoverProps } from '@heroui/popover';
|
|
3
|
+
type ExtendedPopoverProps = Omit<PopoverProps, 'color'> & {
|
|
4
|
+
color?: 'default';
|
|
5
|
+
};
|
|
6
|
+
declare const ExtendedPopover: React.ForwardRefExoticComponent<ExtendedPopoverProps>;
|
|
7
|
+
export default ExtendedPopover;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Popover } from "@heroui/popover";
|
|
2
|
+
import { extendVariants } from "@heroui/system-rsc";
|
|
3
|
+
const ExtendedPopover = extendVariants(Popover, {
|
|
4
|
+
variants: {
|
|
5
|
+
size: {
|
|
6
|
+
md: {
|
|
7
|
+
content: 'text-tiny !p-md max-w-[300px]'
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
color: {
|
|
11
|
+
default: {
|
|
12
|
+
base: 'before:bg-content1 before:shadow-box',
|
|
13
|
+
content: 'bg-content1 text-foreground-300 shadow-box'
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
color: 'default',
|
|
19
|
+
radius: 'md',
|
|
20
|
+
size: 'md',
|
|
21
|
+
shadow: 'md',
|
|
22
|
+
backdrop: 'transparent'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const date_range_picker_extend = ExtendedPopover;
|
|
26
|
+
export { date_range_picker_extend as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { DateRangePicker } from "@heroui/date-picker";
|
|
4
|
+
import { CalendarIcon } from "../../icons/index.js";
|
|
5
|
+
import { calendarClassNames } from "../UXCalendar/index.js";
|
|
6
|
+
const classes = {
|
|
7
|
+
inputWrapper: 'bg-background-200 h-[30px] min-h-[30px] rounded-small',
|
|
8
|
+
focus: 'focus:bg-primary/30 focus:shadow-none focus:outline-none'
|
|
9
|
+
};
|
|
10
|
+
const UXDateRangePicker = ({ classNames, ...props })=>/*#__PURE__*/ jsx(DateRangePicker, {
|
|
11
|
+
classNames: {
|
|
12
|
+
inputWrapper: classes.inputWrapper,
|
|
13
|
+
input: [
|
|
14
|
+
'gap-px',
|
|
15
|
+
classes.focus
|
|
16
|
+
],
|
|
17
|
+
segment: [
|
|
18
|
+
'text-foreground text-xs font-medium',
|
|
19
|
+
classes.focus
|
|
20
|
+
],
|
|
21
|
+
separator: 'text-foreground-100',
|
|
22
|
+
timeInputWrapper: 'bg-content1',
|
|
23
|
+
timeInput: classes.focus,
|
|
24
|
+
selectorButton: 'w-6 h-6 min-w-6 rounded-sm',
|
|
25
|
+
...classNames
|
|
26
|
+
},
|
|
27
|
+
calendarProps: {
|
|
28
|
+
classNames: calendarClassNames
|
|
29
|
+
},
|
|
30
|
+
popoverProps: {
|
|
31
|
+
classNames: {
|
|
32
|
+
base: 'before:bg-content1 before:shadow-box',
|
|
33
|
+
content: 'bg-content1 text-foreground-300 shadow-box'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
timeInputProps: {
|
|
37
|
+
classNames: {
|
|
38
|
+
base: [
|
|
39
|
+
'[&>[data-slot="input-wrapper"]]:h-[30px] [&>[data-slot="input-wrapper"]]:min-h-[30px] [&>[data-slot="input-wrapper"]]:rounded-small [&>[data-slot="input-wrapper"]]:bg-background-200',
|
|
40
|
+
'[&_[data-slot=segment]:focus]:bg-primary/30 [&_[data-slot=segment]:focus]:shadow-none [&_[data-slot=segment]:focus]:outline-none'
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
selectorIcon: /*#__PURE__*/ jsx(CalendarIcon, {
|
|
45
|
+
size: 18,
|
|
46
|
+
color: "tertiary"
|
|
47
|
+
}),
|
|
48
|
+
granularity: "second",
|
|
49
|
+
visibleMonths: 2,
|
|
50
|
+
hourCycle: 24,
|
|
51
|
+
firstDayOfWeek: "sun",
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
UXDateRangePicker.displayName = 'UX.DateRangePicker';
|
|
55
|
+
export { UXDateRangePicker };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type IconProps } from '../../icons';
|
|
3
|
+
import { type VStackProps } from '../layout/VStack';
|
|
4
|
+
export interface UXEmptyProps extends VStackProps {
|
|
5
|
+
iconProps?: IconProps;
|
|
6
|
+
text?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const UXEmpty: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"div", UXEmptyProps, never>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { forwardRef } from "@heroui/system";
|
|
4
|
+
import { useI18n } from "../../hooks/useI18n.js";
|
|
5
|
+
import { EmptyIcon } from "../../icons/index.js";
|
|
6
|
+
import VStack from "../layout/VStack.js";
|
|
7
|
+
import Text from "../typography/Text.js";
|
|
8
|
+
const UXEmpty = forwardRef((props, ref)=>{
|
|
9
|
+
const i18n = useI18n();
|
|
10
|
+
const { text = i18n.table.emptyContent, iconProps, ...restProps } = props;
|
|
11
|
+
return /*#__PURE__*/ jsxs(VStack, {
|
|
12
|
+
ref: ref,
|
|
13
|
+
center: true,
|
|
14
|
+
gap: 4,
|
|
15
|
+
...restProps,
|
|
16
|
+
children: [
|
|
17
|
+
/*#__PURE__*/ jsx(EmptyIcon, {
|
|
18
|
+
color: "secondary",
|
|
19
|
+
size: 64,
|
|
20
|
+
...iconProps
|
|
21
|
+
}),
|
|
22
|
+
/*#__PURE__*/ jsx(Text, {
|
|
23
|
+
h2: true,
|
|
24
|
+
color: "secondary",
|
|
25
|
+
fontWeight: "normal",
|
|
26
|
+
children: text
|
|
27
|
+
})
|
|
28
|
+
]
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
export { UXEmpty };
|
|
@@ -325,18 +325,18 @@ declare const UXInput: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
325
325
|
capture?: boolean | "user" | "environment" | undefined;
|
|
326
326
|
checked?: boolean | undefined;
|
|
327
327
|
src?: string | undefined;
|
|
328
|
-
classNames?: import("@heroui/theme").SlotsToClasses<"label" | "inputWrapper" | "base" | "input" | "
|
|
328
|
+
classNames?: import("@heroui/theme").SlotsToClasses<"label" | "inputWrapper" | "base" | "input" | "errorMessage" | "helperWrapper" | "description" | "innerWrapper" | "mainWrapper" | "clearButton"> | undefined;
|
|
329
|
+
isReadOnly?: boolean | undefined;
|
|
330
|
+
validationState?: import("@react-types/shared").ValidationState | undefined;
|
|
331
|
+
errorMessage?: React.ReactNode | ((v: import("@react-types/shared").ValidationResult) => React.ReactNode);
|
|
329
332
|
placeholder?: string | undefined;
|
|
330
333
|
readOnly?: boolean | undefined;
|
|
331
334
|
required?: boolean | undefined;
|
|
332
335
|
onValueChange?: ((value: string) => void) | undefined;
|
|
333
|
-
isReadOnly?: boolean | undefined;
|
|
334
336
|
isRequired?: boolean | undefined;
|
|
335
|
-
validationState?: import("@react-types/shared").ValidationState | undefined;
|
|
336
337
|
validationBehavior?: "aria" | "native" | undefined;
|
|
337
338
|
validate?: ((value: string) => import("@react-types/shared").ValidationError | true | null | undefined) | undefined;
|
|
338
339
|
description?: React.ReactNode;
|
|
339
|
-
errorMessage?: React.ReactNode | ((v: import("@react-types/shared").ValidationResult) => React.ReactNode);
|
|
340
340
|
isClearable?: boolean | undefined;
|
|
341
341
|
baseRef?: React.Ref<HTMLDivElement> | undefined;
|
|
342
342
|
wrapperRef?: React.Ref<HTMLDivElement> | undefined;
|
|
@@ -322,18 +322,18 @@ declare const ExtendedInput: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
322
322
|
capture?: boolean | "user" | "environment" | undefined;
|
|
323
323
|
checked?: boolean | undefined;
|
|
324
324
|
src?: string | undefined;
|
|
325
|
-
classNames?: import("@heroui/theme").SlotsToClasses<"label" | "inputWrapper" | "base" | "input" | "
|
|
325
|
+
classNames?: import("@heroui/theme").SlotsToClasses<"label" | "inputWrapper" | "base" | "input" | "errorMessage" | "helperWrapper" | "description" | "innerWrapper" | "mainWrapper" | "clearButton"> | undefined;
|
|
326
|
+
isReadOnly?: boolean | undefined;
|
|
327
|
+
validationState?: import("@react-types/shared").ValidationState | undefined;
|
|
328
|
+
errorMessage?: import("react").ReactNode | ((v: import("@react-types/shared").ValidationResult) => import("react").ReactNode);
|
|
326
329
|
placeholder?: string | undefined;
|
|
327
330
|
readOnly?: boolean | undefined;
|
|
328
331
|
required?: boolean | undefined;
|
|
329
332
|
onValueChange?: ((value: string) => void) | undefined;
|
|
330
|
-
isReadOnly?: boolean | undefined;
|
|
331
333
|
isRequired?: boolean | undefined;
|
|
332
|
-
validationState?: import("@react-types/shared").ValidationState | undefined;
|
|
333
334
|
validationBehavior?: "aria" | "native" | undefined;
|
|
334
335
|
validate?: ((value: string) => import("@react-types/shared").ValidationError | true | null | undefined) | undefined;
|
|
335
336
|
description?: import("react").ReactNode;
|
|
336
|
-
errorMessage?: import("react").ReactNode | ((v: import("@react-types/shared").ValidationResult) => import("react").ReactNode);
|
|
337
337
|
isClearable?: boolean | undefined;
|
|
338
338
|
baseRef?: import("react").Ref<HTMLDivElement> | undefined;
|
|
339
339
|
wrapperRef?: import("react").Ref<HTMLDivElement> | undefined;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Pagination } from "@heroui/pagination";
|
|
4
|
+
const sizeClass = 'min-w-[30px] w-[30px] h-[30px] ';
|
|
5
|
+
const UXPagination = (props)=>/*#__PURE__*/ jsx(Pagination, {
|
|
6
|
+
showControls: true,
|
|
7
|
+
disableAnimation: true,
|
|
8
|
+
variant: "light",
|
|
9
|
+
classNames: {
|
|
10
|
+
wrapper: 'gap-0',
|
|
11
|
+
item: [
|
|
12
|
+
sizeClass,
|
|
13
|
+
'[&[data-active=true]]:font-bold'
|
|
14
|
+
],
|
|
15
|
+
prev: [
|
|
16
|
+
sizeClass,
|
|
17
|
+
'[&_path]:[stroke-width:3]'
|
|
18
|
+
],
|
|
19
|
+
next: [
|
|
20
|
+
sizeClass,
|
|
21
|
+
'[&_path]:[stroke-width:3]'
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
UXPagination.displayName = 'UX.Pagination';
|
|
27
|
+
export { UXPagination };
|
|
@@ -320,12 +320,12 @@ declare const UXSwitch: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
320
320
|
checked?: boolean | undefined;
|
|
321
321
|
src?: string | undefined;
|
|
322
322
|
classNames?: import("@heroui/theme").SlotsToClasses<"label" | "base" | "startContent" | "endContent" | "wrapper" | "hiddenInput" | "thumb" | "thumbIcon"> | undefined;
|
|
323
|
+
isReadOnly?: boolean | undefined;
|
|
323
324
|
placeholder?: string | undefined;
|
|
324
325
|
readOnly?: boolean | undefined;
|
|
325
326
|
required?: boolean | undefined;
|
|
326
327
|
onValueChange?: ((isSelected: boolean) => void) | undefined;
|
|
327
328
|
defaultSelected?: boolean | undefined;
|
|
328
|
-
isReadOnly?: boolean | undefined;
|
|
329
329
|
thumbIcon?: React.ReactNode | ((props: import("@heroui/switch").SwitchThumbIconProps) => React.ReactNode);
|
|
330
330
|
}, "ref"> & React.RefAttributes<React.ReactElement<unknown, string | React.JSXElementConstructor<any>>>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
331
331
|
export default UXSwitch;
|
|
@@ -317,12 +317,12 @@ declare const ExtendedSwitch: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
317
317
|
checked?: boolean | undefined;
|
|
318
318
|
src?: string | undefined;
|
|
319
319
|
classNames?: import("@heroui/theme").SlotsToClasses<"label" | "base" | "startContent" | "endContent" | "wrapper" | "hiddenInput" | "thumb" | "thumbIcon"> | undefined;
|
|
320
|
+
isReadOnly?: boolean | undefined;
|
|
320
321
|
placeholder?: string | undefined;
|
|
321
322
|
readOnly?: boolean | undefined;
|
|
322
323
|
required?: boolean | undefined;
|
|
323
324
|
onValueChange?: ((isSelected: boolean) => void) | undefined;
|
|
324
325
|
defaultSelected?: boolean | undefined;
|
|
325
|
-
isReadOnly?: boolean | undefined;
|
|
326
326
|
thumbIcon?: import("react").ReactNode | ((props: import("@heroui/switch").SwitchThumbIconProps) => import("react").ReactNode);
|
|
327
327
|
}, "ref"> & import("react").RefAttributes<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>>;
|
|
328
328
|
export default ExtendedSwitch;
|