@particle-network/ui-react 0.0.1
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 +23 -0
- package/dist/components/ProgressWrapper/index.d.ts +34 -0
- package/dist/components/ProgressWrapper/index.js +102 -0
- package/dist/components/UXButton/button-group-context.d.ts +2 -0
- package/dist/components/UXButton/button-group-context.js +6 -0
- package/dist/components/UXButton/button-group.d.ts +4 -0
- package/dist/components/UXButton/button-group.js +22 -0
- package/dist/components/UXButton/button-theme.d.ts +236 -0
- package/dist/components/UXButton/button-theme.js +626 -0
- package/dist/components/UXButton/button.d.ts +4 -0
- package/dist/components/UXButton/button.js +31 -0
- package/dist/components/UXButton/index.d.ts +8 -0
- package/dist/components/UXButton/index.js +6 -0
- package/dist/components/UXButton/use-button-group.d.ts +37 -0
- package/dist/components/UXButton/use-button-group.js +55 -0
- package/dist/components/UXButton/use-button.d.ts +65 -0
- package/dist/components/UXButton/use-button.js +136 -0
- package/dist/components/UXCheckbox/checkbox.extend.d.ts +7 -0
- package/dist/components/UXCheckbox/checkbox.extend.js +151 -0
- package/dist/components/UXCheckbox/checkbox.icon.d.ts +6 -0
- package/dist/components/UXCheckbox/checkbox.icon.js +46 -0
- package/dist/components/UXCheckbox/index.d.ts +10 -0
- package/dist/components/UXCheckbox/index.js +17 -0
- package/dist/components/UXChip/chip.extend.d.ts +299 -0
- package/dist/components/UXChip/chip.extend.js +236 -0
- package/dist/components/UXChip/index.d.ts +302 -0
- package/dist/components/UXChip/index.js +10 -0
- package/dist/components/UXDivider/divider.extend.d.ts +286 -0
- package/dist/components/UXDivider/divider.extend.js +15 -0
- package/dist/components/UXDivider/index.d.ts +4 -0
- package/dist/components/UXDivider/index.js +10 -0
- package/dist/components/UXDropdown/dropdown-item.d.ts +3 -0
- package/dist/components/UXDropdown/dropdown-item.js +306 -0
- package/dist/components/UXDropdown/dropdown-menu.d.ts +3 -0
- package/dist/components/UXDropdown/dropdown-menu.js +25 -0
- package/dist/components/UXDropdown/dropdown-section.d.ts +1 -0
- package/dist/components/UXDropdown/dropdown-section.js +2 -0
- package/dist/components/UXDropdown/dropdown.d.ts +4 -0
- package/dist/components/UXDropdown/dropdown.js +21 -0
- package/dist/components/UXDropdown/index.d.ts +6 -0
- package/dist/components/UXDropdown/index.js +6 -0
- package/dist/components/UXHint/index.d.ts +8 -0
- package/dist/components/UXHint/index.js +22 -0
- package/dist/components/UXInput/index.d.ts +346 -0
- package/dist/components/UXInput/index.js +10 -0
- package/dist/components/UXInput/input.extend.d.ts +343 -0
- package/dist/components/UXInput/input.extend.js +6 -0
- package/dist/components/UXModal/index.d.ts +10 -0
- package/dist/components/UXModal/index.js +89 -0
- package/dist/components/UXNumberInput/index.d.ts +5 -0
- package/dist/components/UXNumberInput/index.js +10 -0
- package/dist/components/UXNumberInput/number-input.extend.d.ts +8 -0
- package/dist/components/UXNumberInput/number-input.extend.js +6 -0
- package/dist/components/UXPopover/index.d.ts +6 -0
- package/dist/components/UXPopover/index.js +10 -0
- package/dist/components/UXPopover/popover.extend.d.ts +7 -0
- package/dist/components/UXPopover/popover.extend.js +26 -0
- package/dist/components/UXRadio/index.d.ts +10 -0
- package/dist/components/UXRadio/index.js +12 -0
- package/dist/components/UXRadio/radio.extend.d.ts +7 -0
- package/dist/components/UXRadio/radio.extend.js +97 -0
- package/dist/components/UXSelect/index.d.ts +6 -0
- package/dist/components/UXSelect/index.js +51 -0
- package/dist/components/UXSwitch/index.d.ts +331 -0
- package/dist/components/UXSwitch/index.js +10 -0
- package/dist/components/UXSwitch/switch.extend.d.ts +328 -0
- package/dist/components/UXSwitch/switch.extend.js +117 -0
- package/dist/components/UXTabs/index.d.ts +9 -0
- package/dist/components/UXTabs/index.js +11 -0
- package/dist/components/UXTabs/tabs.classes.d.ts +210 -0
- package/dist/components/UXTabs/tabs.classes.js +530 -0
- package/dist/components/UXTabs/tabs.extend.d.ts +8 -0
- package/dist/components/UXTabs/tabs.extend.js +6 -0
- package/dist/components/UXTooltip/index.d.ts +5 -0
- package/dist/components/UXTooltip/index.js +23 -0
- package/dist/components/UXTooltip/tooltip.extend.d.ts +314 -0
- package/dist/components/UXTooltip/tooltip.extend.js +27 -0
- package/dist/components/index.d.ts +44 -0
- package/dist/components/index.js +31 -0
- package/dist/components/layout/Center.d.ts +4 -0
- package/dist/components/layout/Center.js +11 -0
- package/dist/components/layout/Circle.d.ts +6 -0
- package/dist/components/layout/Circle.js +12 -0
- package/dist/components/layout/Flex.d.ts +29 -0
- package/dist/components/layout/Flex.js +24 -0
- package/dist/components/layout/HStack.d.ts +4 -0
- package/dist/components/layout/HStack.js +12 -0
- package/dist/components/layout/Square.d.ts +8 -0
- package/dist/components/layout/Square.js +13 -0
- package/dist/components/layout/VStack.d.ts +4 -0
- package/dist/components/layout/VStack.js +12 -0
- package/dist/components/typography/Text.d.ts +3 -0
- package/dist/components/typography/Text.js +12 -0
- package/dist/components/typography/Text.type.d.ts +103 -0
- package/dist/components/typography/Text.type.js +47 -0
- package/dist/icons/index.d.ts +6 -0
- package/dist/icons/index.js +58 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/utils/classes.d.ts +35 -0
- package/dist/utils/classes.js +87 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/input-classes.d.ts +427 -0
- package/dist/utils/input-classes.js +568 -0
- package/dist/utils/variants.d.ts +91 -0
- package/dist/utils/variants.js +100 -0
- package/package.json +42 -0
- package/tailwind-preset.js +298 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
declare const ExtendedSwitch: import("react").ForwardRefExoticComponent<Omit<{
|
|
2
|
+
ref?: import("react").Ref<HTMLInputElement> | undefined;
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
defaultChecked?: any;
|
|
5
|
+
defaultValue?: any;
|
|
6
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
7
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
8
|
+
accessKey?: string | undefined;
|
|
9
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | (string & {}) | undefined;
|
|
10
|
+
autoFocus?: boolean | undefined;
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
13
|
+
contextMenu?: string | undefined;
|
|
14
|
+
dir?: string | undefined;
|
|
15
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
16
|
+
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
17
|
+
hidden?: boolean | undefined;
|
|
18
|
+
id?: string | undefined;
|
|
19
|
+
lang?: string | undefined;
|
|
20
|
+
nonce?: string | undefined;
|
|
21
|
+
slot?: any;
|
|
22
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
23
|
+
style?: import("react").CSSProperties | undefined;
|
|
24
|
+
tabIndex?: number | undefined;
|
|
25
|
+
title?: string | undefined;
|
|
26
|
+
translate?: "yes" | "no" | undefined;
|
|
27
|
+
radioGroup?: string | undefined;
|
|
28
|
+
role?: import("react").AriaRole | undefined;
|
|
29
|
+
about?: string | undefined;
|
|
30
|
+
content?: string | undefined;
|
|
31
|
+
datatype?: string | undefined;
|
|
32
|
+
inlist?: any;
|
|
33
|
+
prefix?: string | undefined;
|
|
34
|
+
property?: string | undefined;
|
|
35
|
+
rel?: string | undefined;
|
|
36
|
+
resource?: string | undefined;
|
|
37
|
+
rev?: string | undefined;
|
|
38
|
+
typeof?: string | undefined;
|
|
39
|
+
vocab?: string | undefined;
|
|
40
|
+
autoCorrect?: string | undefined;
|
|
41
|
+
autoSave?: string | undefined;
|
|
42
|
+
color?: "default" | "secondary" | "primary" | "success" | "danger" | "warning" | "bullish" | "bearish" | "contrast" | undefined;
|
|
43
|
+
itemProp?: string | undefined;
|
|
44
|
+
itemScope?: boolean | undefined;
|
|
45
|
+
itemType?: string | undefined;
|
|
46
|
+
itemID?: string | undefined;
|
|
47
|
+
itemRef?: string | undefined;
|
|
48
|
+
results?: number | undefined;
|
|
49
|
+
security?: string | undefined;
|
|
50
|
+
unselectable?: "off" | "on" | undefined;
|
|
51
|
+
popover?: "" | "auto" | "manual" | undefined;
|
|
52
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
53
|
+
popoverTarget?: string | undefined;
|
|
54
|
+
inert?: boolean | undefined;
|
|
55
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
56
|
+
is?: string | undefined;
|
|
57
|
+
exportparts?: string | undefined;
|
|
58
|
+
part?: string | undefined;
|
|
59
|
+
"aria-activedescendant"?: string | undefined;
|
|
60
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
61
|
+
"aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
|
|
62
|
+
"aria-braillelabel"?: string | undefined;
|
|
63
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
64
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
65
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
66
|
+
"aria-colcount"?: number | undefined;
|
|
67
|
+
"aria-colindex"?: number | undefined;
|
|
68
|
+
"aria-colindextext"?: string | undefined;
|
|
69
|
+
"aria-colspan"?: number | undefined;
|
|
70
|
+
"aria-controls"?: string | undefined;
|
|
71
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
72
|
+
"aria-describedby"?: string | undefined;
|
|
73
|
+
"aria-description"?: string | undefined;
|
|
74
|
+
"aria-details"?: string | undefined;
|
|
75
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
76
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
77
|
+
"aria-errormessage"?: string | undefined;
|
|
78
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
79
|
+
"aria-flowto"?: string | undefined;
|
|
80
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
81
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
82
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
83
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
84
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
85
|
+
"aria-label"?: string | undefined;
|
|
86
|
+
"aria-labelledby"?: string | undefined;
|
|
87
|
+
"aria-level"?: number | undefined;
|
|
88
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
89
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
90
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
91
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
92
|
+
"aria-orientation"?: "vertical" | "horizontal" | undefined;
|
|
93
|
+
"aria-owns"?: string | undefined;
|
|
94
|
+
"aria-placeholder"?: string | undefined;
|
|
95
|
+
"aria-posinset"?: number | undefined;
|
|
96
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
97
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
98
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
99
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
100
|
+
"aria-roledescription"?: string | undefined;
|
|
101
|
+
"aria-rowcount"?: number | undefined;
|
|
102
|
+
"aria-rowindex"?: number | undefined;
|
|
103
|
+
"aria-rowindextext"?: string | undefined;
|
|
104
|
+
"aria-rowspan"?: number | undefined;
|
|
105
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
106
|
+
"aria-setsize"?: number | undefined;
|
|
107
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
108
|
+
"aria-valuemax"?: number | undefined;
|
|
109
|
+
"aria-valuemin"?: number | undefined;
|
|
110
|
+
"aria-valuenow"?: number | undefined;
|
|
111
|
+
"aria-valuetext"?: string | undefined;
|
|
112
|
+
dangerouslySetInnerHTML?: {
|
|
113
|
+
__html: string | TrustedHTML;
|
|
114
|
+
} | undefined;
|
|
115
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
116
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
117
|
+
onCut?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
118
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
119
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
120
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
121
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
122
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
123
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
124
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
125
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
126
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
127
|
+
onFocus?: (import("react").FocusEventHandler<HTMLInputElement> & ((e: import("react").FocusEvent<Element, Element>) => void)) | undefined;
|
|
128
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
129
|
+
onBlur?: (import("react").FocusEventHandler<HTMLInputElement> & ((e: import("react").FocusEvent<Element, Element>) => void)) | undefined;
|
|
130
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
131
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement> | undefined;
|
|
132
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
133
|
+
onBeforeInput?: import("react").InputEventHandler<HTMLInputElement> | undefined;
|
|
134
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
135
|
+
onInput?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
136
|
+
onInputCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
137
|
+
onReset?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
138
|
+
onResetCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
139
|
+
onSubmit?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
140
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
141
|
+
onInvalid?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
142
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
143
|
+
onLoad?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
144
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
145
|
+
onError?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
146
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
147
|
+
onKeyDown?: (import("react").KeyboardEventHandler<HTMLInputElement> & ((e: import("@react-types/shared").KeyboardEvent) => void)) | undefined;
|
|
148
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
149
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
150
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
151
|
+
onKeyUp?: (import("react").KeyboardEventHandler<HTMLInputElement> & ((e: import("@react-types/shared").KeyboardEvent) => void)) | undefined;
|
|
152
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
153
|
+
onAbort?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
154
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
155
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
156
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
157
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
158
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
159
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
160
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
161
|
+
onEmptied?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
162
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
163
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
164
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
165
|
+
onEnded?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
166
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
167
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
168
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
169
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
170
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
171
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
172
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
173
|
+
onPause?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
174
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
175
|
+
onPlay?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
176
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
177
|
+
onPlaying?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
178
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
179
|
+
onProgress?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
180
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
181
|
+
onRateChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
182
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
183
|
+
onSeeked?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
184
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
185
|
+
onSeeking?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
186
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
187
|
+
onStalled?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
188
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
189
|
+
onSuspend?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
190
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
191
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
192
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
193
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
194
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
195
|
+
onWaiting?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
196
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
197
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
198
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
199
|
+
onClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
200
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
201
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
202
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
203
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
204
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
205
|
+
onDrag?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
206
|
+
onDragCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
207
|
+
onDragEnd?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
208
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
209
|
+
onDragEnter?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
210
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
211
|
+
onDragExit?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
212
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
213
|
+
onDragLeave?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
214
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
215
|
+
onDragOver?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
216
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
217
|
+
onDragStart?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
218
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
219
|
+
onDrop?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
220
|
+
onDropCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
221
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
222
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
223
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
224
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
225
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
226
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
227
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
228
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
229
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
230
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
231
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
232
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
233
|
+
onSelect?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
234
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
235
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
236
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
237
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
238
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
239
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
240
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
241
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
242
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
243
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
244
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
245
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
246
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
247
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
248
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
249
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
250
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
251
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
252
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
253
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
254
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
255
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
256
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
257
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
258
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
259
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
260
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
261
|
+
onScroll?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
262
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
263
|
+
onScrollEnd?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
264
|
+
onScrollEndCapture?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
265
|
+
onWheel?: import("react").WheelEventHandler<HTMLInputElement> | undefined;
|
|
266
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLInputElement> | undefined;
|
|
267
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
268
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
269
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
270
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
271
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
272
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
273
|
+
onToggle?: import("react").ToggleEventHandler<HTMLInputElement> | undefined;
|
|
274
|
+
onBeforeToggle?: import("react").ToggleEventHandler<HTMLInputElement> | undefined;
|
|
275
|
+
onTransitionCancel?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
276
|
+
onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
277
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
278
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
279
|
+
onTransitionRun?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
280
|
+
onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
281
|
+
onTransitionStart?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
282
|
+
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
283
|
+
form?: string | undefined;
|
|
284
|
+
list?: string | undefined;
|
|
285
|
+
step?: string | number | undefined;
|
|
286
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
287
|
+
value?: string | (readonly string[] & string) | undefined;
|
|
288
|
+
width?: string | number | undefined;
|
|
289
|
+
height?: string | number | undefined;
|
|
290
|
+
multiple?: boolean | undefined;
|
|
291
|
+
disabled?: boolean | undefined;
|
|
292
|
+
disableAnimation?: boolean | undefined;
|
|
293
|
+
isDisabled?: boolean | undefined;
|
|
294
|
+
isSelected?: boolean | undefined;
|
|
295
|
+
pattern?: string | undefined;
|
|
296
|
+
as?: import("@heroui/system-rsc").As<any> | undefined;
|
|
297
|
+
key?: import("react").Key | null | undefined;
|
|
298
|
+
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
|
299
|
+
type?: import("react").HTMLInputTypeAttribute | undefined;
|
|
300
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
301
|
+
formEncType?: string | undefined;
|
|
302
|
+
formMethod?: string | undefined;
|
|
303
|
+
formNoValidate?: boolean | undefined;
|
|
304
|
+
formTarget?: string | undefined;
|
|
305
|
+
name?: string | undefined;
|
|
306
|
+
excludeFromTabOrder?: boolean | undefined;
|
|
307
|
+
startContent?: import("react").ReactNode;
|
|
308
|
+
endContent?: import("react").ReactNode;
|
|
309
|
+
autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
|
|
310
|
+
alt?: string | undefined;
|
|
311
|
+
maxLength?: number | undefined;
|
|
312
|
+
minLength?: number | undefined;
|
|
313
|
+
accept?: string | undefined;
|
|
314
|
+
capture?: boolean | "user" | "environment" | undefined;
|
|
315
|
+
checked?: boolean | undefined;
|
|
316
|
+
src?: string | undefined;
|
|
317
|
+
classNames?: import("@heroui/theme").SlotsToClasses<"label" | "base" | "startContent" | "endContent" | "wrapper" | "hiddenInput" | "thumb" | "thumbIcon"> | undefined;
|
|
318
|
+
max?: string | number | undefined;
|
|
319
|
+
min?: string | number | undefined;
|
|
320
|
+
placeholder?: string | undefined;
|
|
321
|
+
readOnly?: boolean | undefined;
|
|
322
|
+
required?: boolean | undefined;
|
|
323
|
+
onValueChange?: ((isSelected: boolean) => void) | undefined;
|
|
324
|
+
defaultSelected?: boolean | undefined;
|
|
325
|
+
isReadOnly?: boolean | undefined;
|
|
326
|
+
thumbIcon?: import("react").ReactNode | ((props: import("@heroui/switch").SwitchThumbIconProps) => import("react").ReactNode);
|
|
327
|
+
}, "ref"> & import("react").RefAttributes<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>>;
|
|
328
|
+
export default ExtendedSwitch;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Switch } from "@heroui/switch";
|
|
2
|
+
import { extendVariants } from "@heroui/system-rsc";
|
|
3
|
+
const ExtendedSwitch = extendVariants(Switch, {
|
|
4
|
+
variants: {
|
|
5
|
+
color: {
|
|
6
|
+
primary: {
|
|
7
|
+
wrapper: [
|
|
8
|
+
'group-data-[selected=true]:bg-primary',
|
|
9
|
+
'group-data-[selected=true]:text-primary-foreground'
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
success: {
|
|
13
|
+
wrapper: [
|
|
14
|
+
'group-data-[selected=true]:bg-success',
|
|
15
|
+
'group-data-[selected=true]:text-success-foreground'
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
warning: {
|
|
19
|
+
wrapper: [
|
|
20
|
+
'group-data-[selected=true]:bg-warning',
|
|
21
|
+
'group-data-[selected=true]:text-warning-foreground'
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
danger: {
|
|
25
|
+
wrapper: [
|
|
26
|
+
'group-data-[selected=true]:bg-danger',
|
|
27
|
+
'data-[selected=true]:text-danger-foreground'
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
bullish: {
|
|
31
|
+
wrapper: [
|
|
32
|
+
'group-data-[selected=true]:bg-bullish',
|
|
33
|
+
'data-[selected=true]:text-bullish-foreground'
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
bearish: {
|
|
37
|
+
wrapper: [
|
|
38
|
+
'group-data-[selected=true]:bg-bearish',
|
|
39
|
+
'data-[selected=true]:text-bearish-foreground'
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
contrast: {
|
|
43
|
+
wrapper: [
|
|
44
|
+
'group-data-[selected=true]:bg-contrast',
|
|
45
|
+
'data-[selected=true]:text-contrast-foreground'
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
size: {
|
|
50
|
+
sm: {
|
|
51
|
+
wrapper: 'w-5 h-3 px-0.5',
|
|
52
|
+
thumb: [
|
|
53
|
+
'w-2 h-2 text-tiny',
|
|
54
|
+
'group-data-[selected=true]:ms-2'
|
|
55
|
+
],
|
|
56
|
+
endContent: 'text-tiny',
|
|
57
|
+
startContent: 'text-tiny',
|
|
58
|
+
label: 'text-body3 font-medium ms-sm'
|
|
59
|
+
},
|
|
60
|
+
md: {
|
|
61
|
+
wrapper: 'w-6 h-3.5 px-[3px]',
|
|
62
|
+
thumb: [
|
|
63
|
+
'w-2.5 h-2.5 text-small',
|
|
64
|
+
'group-data-[selected=true]:ms-2'
|
|
65
|
+
],
|
|
66
|
+
endContent: 'text-small',
|
|
67
|
+
startContent: 'text-small',
|
|
68
|
+
label: 'text-body3 font-medium ms-sm'
|
|
69
|
+
},
|
|
70
|
+
lg: {
|
|
71
|
+
wrapper: 'w-[34px] h-5 px-[3px]',
|
|
72
|
+
thumb: [
|
|
73
|
+
'w-3.5 h-3.5 text-medium',
|
|
74
|
+
'group-data-[selected=true]:ms-3.5'
|
|
75
|
+
],
|
|
76
|
+
endContent: 'text-medium',
|
|
77
|
+
startContent: 'text-medium',
|
|
78
|
+
label: 'text-body1 font-medium ms-2'
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
isDisabled: {
|
|
82
|
+
true: {
|
|
83
|
+
base: 'opacity-disabled pointer-events-none'
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
disableAnimation: {
|
|
87
|
+
true: {
|
|
88
|
+
wrapper: 'transition-none',
|
|
89
|
+
thumb: 'transition-none'
|
|
90
|
+
},
|
|
91
|
+
false: {
|
|
92
|
+
wrapper: 'transition-background',
|
|
93
|
+
thumb: 'transition-all',
|
|
94
|
+
startContent: [
|
|
95
|
+
'opacity-0',
|
|
96
|
+
'scale-50',
|
|
97
|
+
'transition-transform-opacity',
|
|
98
|
+
'group-data-[selected=true]:scale-100',
|
|
99
|
+
'group-data-[selected=true]:opacity-100'
|
|
100
|
+
],
|
|
101
|
+
endContent: [
|
|
102
|
+
'opacity-100',
|
|
103
|
+
'transition-transform-opacity',
|
|
104
|
+
'group-data-[selected=true]:translate-x-3',
|
|
105
|
+
'group-data-[selected=true]:opacity-0'
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
defaultVariants: {
|
|
111
|
+
color: 'primary',
|
|
112
|
+
size: 'md',
|
|
113
|
+
isDisabled: false
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
const switch_extend = ExtendedSwitch;
|
|
117
|
+
export { switch_extend as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ExtendedTabs from './tabs.extend';
|
|
3
|
+
export type UXTabsProps = React.ComponentPropsWithRef<typeof ExtendedTabs>;
|
|
4
|
+
declare const UXTabs: React.ForwardRefExoticComponent<Omit<Omit<import("@heroui/tabs").TabsProps, "color" | "variant"> & {
|
|
5
|
+
variant?: "solid" | "light" | "text" | "switch";
|
|
6
|
+
color?: "default" | "primary" | "success" | "warning" | "danger" | "bullish" | "bearish";
|
|
7
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export default UXTabs;
|
|
9
|
+
export { Tab as UXTab } from '@heroui/tabs';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import tabs_extend from "./tabs.extend.js";
|
|
4
|
+
import { Tab } from "@heroui/tabs";
|
|
5
|
+
const UXTabs_UXTabs = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(tabs_extend, {
|
|
6
|
+
...props,
|
|
7
|
+
ref: ref
|
|
8
|
+
}));
|
|
9
|
+
UXTabs_UXTabs.displayName = 'UX.Tabs';
|
|
10
|
+
const UXTabs = UXTabs_UXTabs;
|
|
11
|
+
export { Tab as UXTab, UXTabs as default };
|