@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,343 @@
|
|
|
1
|
+
declare const ExtendedInput: import("react").ForwardRefExoticComponent<Omit<{
|
|
2
|
+
fullWidth?: boolean | undefined;
|
|
3
|
+
ref?: import("react").Ref<HTMLInputElement> | undefined;
|
|
4
|
+
children?: import("react").ReactNode;
|
|
5
|
+
defaultChecked?: any;
|
|
6
|
+
defaultValue?: string | undefined;
|
|
7
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
8
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
9
|
+
accessKey?: string | undefined;
|
|
10
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | (string & {}) | undefined;
|
|
11
|
+
autoFocus?: boolean | undefined;
|
|
12
|
+
className?: string | undefined;
|
|
13
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
14
|
+
contextMenu?: string | undefined;
|
|
15
|
+
dir?: string | undefined;
|
|
16
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
17
|
+
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
18
|
+
hidden?: boolean | undefined;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
lang?: string | undefined;
|
|
21
|
+
nonce?: string | undefined;
|
|
22
|
+
slot?: any;
|
|
23
|
+
spellCheck?: "true" | "false" | undefined;
|
|
24
|
+
style?: import("react").CSSProperties | undefined;
|
|
25
|
+
tabIndex?: number | undefined;
|
|
26
|
+
title?: string | undefined;
|
|
27
|
+
translate?: "yes" | "no" | undefined;
|
|
28
|
+
radioGroup?: string | undefined;
|
|
29
|
+
role?: import("react").AriaRole | undefined;
|
|
30
|
+
about?: string | undefined;
|
|
31
|
+
content?: string | undefined;
|
|
32
|
+
datatype?: string | undefined;
|
|
33
|
+
inlist?: any;
|
|
34
|
+
prefix?: string | undefined;
|
|
35
|
+
property?: string | undefined;
|
|
36
|
+
rel?: string | undefined;
|
|
37
|
+
resource?: string | undefined;
|
|
38
|
+
rev?: string | undefined;
|
|
39
|
+
typeof?: string | undefined;
|
|
40
|
+
vocab?: string | undefined;
|
|
41
|
+
autoCorrect?: string | undefined;
|
|
42
|
+
autoSave?: string | undefined;
|
|
43
|
+
color?: "default" | "secondary" | "primary" | "success" | "danger" | "warning" | "bullish" | "bearish" | undefined;
|
|
44
|
+
itemProp?: string | undefined;
|
|
45
|
+
itemScope?: boolean | undefined;
|
|
46
|
+
itemType?: string | undefined;
|
|
47
|
+
itemID?: string | undefined;
|
|
48
|
+
itemRef?: string | undefined;
|
|
49
|
+
results?: number | undefined;
|
|
50
|
+
security?: string | undefined;
|
|
51
|
+
unselectable?: "off" | "on" | undefined;
|
|
52
|
+
popover?: "" | "auto" | "manual" | undefined;
|
|
53
|
+
popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
|
|
54
|
+
popoverTarget?: string | undefined;
|
|
55
|
+
inert?: boolean | undefined;
|
|
56
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
57
|
+
is?: string | undefined;
|
|
58
|
+
exportparts?: string | undefined;
|
|
59
|
+
part?: string | undefined;
|
|
60
|
+
"aria-activedescendant"?: string | undefined;
|
|
61
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
62
|
+
"aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
|
|
63
|
+
"aria-braillelabel"?: string | undefined;
|
|
64
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
65
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
66
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
67
|
+
"aria-colcount"?: number | undefined;
|
|
68
|
+
"aria-colindex"?: number | undefined;
|
|
69
|
+
"aria-colindextext"?: string | undefined;
|
|
70
|
+
"aria-colspan"?: number | undefined;
|
|
71
|
+
"aria-controls"?: string | undefined;
|
|
72
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
73
|
+
"aria-describedby"?: string | undefined;
|
|
74
|
+
"aria-description"?: string | undefined;
|
|
75
|
+
"aria-details"?: string | undefined;
|
|
76
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
77
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
78
|
+
"aria-errormessage"?: string | undefined;
|
|
79
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
80
|
+
"aria-flowto"?: string | undefined;
|
|
81
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
82
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
83
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
84
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
85
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
86
|
+
"aria-label"?: string | undefined;
|
|
87
|
+
"aria-labelledby"?: string | undefined;
|
|
88
|
+
"aria-level"?: number | undefined;
|
|
89
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
90
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
91
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
92
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
93
|
+
"aria-orientation"?: "vertical" | "horizontal" | undefined;
|
|
94
|
+
"aria-owns"?: string | undefined;
|
|
95
|
+
"aria-placeholder"?: string | undefined;
|
|
96
|
+
"aria-posinset"?: number | undefined;
|
|
97
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
98
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
99
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
100
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
101
|
+
"aria-roledescription"?: string | undefined;
|
|
102
|
+
"aria-rowcount"?: number | undefined;
|
|
103
|
+
"aria-rowindex"?: number | undefined;
|
|
104
|
+
"aria-rowindextext"?: string | undefined;
|
|
105
|
+
"aria-rowspan"?: number | undefined;
|
|
106
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
107
|
+
"aria-setsize"?: number | undefined;
|
|
108
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
109
|
+
"aria-valuemax"?: number | undefined;
|
|
110
|
+
"aria-valuemin"?: number | undefined;
|
|
111
|
+
"aria-valuenow"?: number | undefined;
|
|
112
|
+
"aria-valuetext"?: string | undefined;
|
|
113
|
+
dangerouslySetInnerHTML?: {
|
|
114
|
+
__html: string | TrustedHTML;
|
|
115
|
+
} | undefined;
|
|
116
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
117
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
118
|
+
onCut?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
119
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
120
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
121
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
122
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
123
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
124
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
125
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
126
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
127
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
128
|
+
onFocus?: (import("react").FocusEventHandler<HTMLInputElement> & ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void)) | undefined;
|
|
129
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
130
|
+
onBlur?: (import("react").FocusEventHandler<HTMLInputElement> & ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void)) | undefined;
|
|
131
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
132
|
+
onChange?: import("react").ChangeEventHandler<HTMLInputElement> | undefined;
|
|
133
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
134
|
+
onBeforeInput?: (import("react").InputEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLInputElement>) | undefined;
|
|
135
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
136
|
+
onInput?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
137
|
+
onInputCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
138
|
+
onReset?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
139
|
+
onResetCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
140
|
+
onSubmit?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
141
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
142
|
+
onInvalid?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
143
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
144
|
+
onLoad?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
145
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
146
|
+
onError?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
147
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
148
|
+
onKeyDown?: (import("react").KeyboardEventHandler<HTMLInputElement> & ((e: import("@react-types/shared").KeyboardEvent) => void)) | undefined;
|
|
149
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
150
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
151
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
152
|
+
onKeyUp?: (import("react").KeyboardEventHandler<HTMLInputElement> & ((e: import("@react-types/shared").KeyboardEvent) => void)) | undefined;
|
|
153
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
154
|
+
onAbort?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
155
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
156
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
157
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
158
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
159
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
160
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
161
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
162
|
+
onEmptied?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
163
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
164
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
165
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
166
|
+
onEnded?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
167
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
168
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
169
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
170
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
171
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
172
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
173
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
174
|
+
onPause?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
175
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
176
|
+
onPlay?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
177
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
178
|
+
onPlaying?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
179
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
180
|
+
onProgress?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
181
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
182
|
+
onRateChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
183
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
184
|
+
onSeeked?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
185
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
186
|
+
onSeeking?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
187
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
188
|
+
onStalled?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
189
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
190
|
+
onSuspend?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
191
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
192
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
193
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
194
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
195
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
196
|
+
onWaiting?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
197
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
198
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
199
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
200
|
+
onClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
201
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
202
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
203
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
204
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
205
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
206
|
+
onDrag?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
207
|
+
onDragCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
208
|
+
onDragEnd?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
209
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
210
|
+
onDragEnter?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
211
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
212
|
+
onDragExit?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
213
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
214
|
+
onDragLeave?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
215
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
216
|
+
onDragOver?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
217
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
218
|
+
onDragStart?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
219
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
220
|
+
onDrop?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
221
|
+
onDropCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
|
|
222
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
223
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
224
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
225
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
226
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
227
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
228
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
229
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
230
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
231
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
232
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
233
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
234
|
+
onSelect?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
235
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
236
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
237
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
238
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
239
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
240
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
241
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
242
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
243
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
244
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
245
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
246
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
247
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
248
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
249
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
250
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
251
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
252
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
253
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
254
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
255
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
256
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
257
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
258
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
259
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
260
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
261
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
|
|
262
|
+
onScroll?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
263
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
264
|
+
onScrollEnd?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
265
|
+
onScrollEndCapture?: import("react").UIEventHandler<HTMLInputElement> | undefined;
|
|
266
|
+
onWheel?: import("react").WheelEventHandler<HTMLInputElement> | undefined;
|
|
267
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLInputElement> | undefined;
|
|
268
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
269
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
270
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
271
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
272
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
273
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
|
|
274
|
+
onToggle?: import("react").ToggleEventHandler<HTMLInputElement> | undefined;
|
|
275
|
+
onBeforeToggle?: import("react").ToggleEventHandler<HTMLInputElement> | undefined;
|
|
276
|
+
onTransitionCancel?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
277
|
+
onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
278
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
279
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
280
|
+
onTransitionRun?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
281
|
+
onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
282
|
+
onTransitionStart?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
283
|
+
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
|
|
284
|
+
form?: string | undefined;
|
|
285
|
+
list?: string | undefined;
|
|
286
|
+
step?: string | number | undefined;
|
|
287
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
288
|
+
value?: string | (readonly string[] & string) | undefined;
|
|
289
|
+
width?: string | number | undefined;
|
|
290
|
+
height?: string | number | undefined;
|
|
291
|
+
radius?: "sm" | "md" | "lg" | "none" | "full" | undefined;
|
|
292
|
+
multiple?: boolean | undefined;
|
|
293
|
+
disabled?: boolean | undefined;
|
|
294
|
+
variant?: "flat" | "bordered" | "faded" | "underlined" | undefined;
|
|
295
|
+
labelPlacement?: "inside" | "outside" | "outside-left" | "outside-top" | undefined;
|
|
296
|
+
label?: import("react").ReactNode;
|
|
297
|
+
isInvalid?: boolean | undefined;
|
|
298
|
+
disableAnimation?: boolean | undefined;
|
|
299
|
+
isDisabled?: boolean | undefined;
|
|
300
|
+
pattern?: string | undefined;
|
|
301
|
+
as?: import("@heroui/system-rsc").As<any> | undefined;
|
|
302
|
+
key?: import("react").Key | null | undefined;
|
|
303
|
+
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
|
304
|
+
type?: string | undefined;
|
|
305
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
306
|
+
formEncType?: string | undefined;
|
|
307
|
+
formMethod?: string | undefined;
|
|
308
|
+
formNoValidate?: boolean | undefined;
|
|
309
|
+
formTarget?: string | undefined;
|
|
310
|
+
name?: string | undefined;
|
|
311
|
+
excludeFromTabOrder?: boolean | undefined;
|
|
312
|
+
startContent?: import("react").ReactNode;
|
|
313
|
+
endContent?: import("react").ReactNode;
|
|
314
|
+
onClear?: (() => void) | undefined;
|
|
315
|
+
autoComplete?: string | undefined;
|
|
316
|
+
alt?: string | undefined;
|
|
317
|
+
maxLength?: number | undefined;
|
|
318
|
+
minLength?: number | undefined;
|
|
319
|
+
accept?: string | undefined;
|
|
320
|
+
capture?: boolean | "user" | "environment" | undefined;
|
|
321
|
+
checked?: boolean | undefined;
|
|
322
|
+
src?: string | undefined;
|
|
323
|
+
classNames?: import("@heroui/theme").SlotsToClasses<"label" | "inputWrapper" | "base" | "input" | "description" | "errorMessage" | "mainWrapper" | "innerWrapper" | "clearButton" | "helperWrapper"> | undefined;
|
|
324
|
+
max?: string | number | undefined;
|
|
325
|
+
min?: string | number | undefined;
|
|
326
|
+
placeholder?: string | undefined;
|
|
327
|
+
readOnly?: boolean | undefined;
|
|
328
|
+
required?: boolean | undefined;
|
|
329
|
+
onValueChange?: ((value: string) => void) | undefined;
|
|
330
|
+
isReadOnly?: boolean | undefined;
|
|
331
|
+
isRequired?: boolean | undefined;
|
|
332
|
+
validationState?: import("@react-types/shared").ValidationState | undefined;
|
|
333
|
+
validationBehavior?: "aria" | "native" | undefined;
|
|
334
|
+
validate?: ((value: string) => import("@react-types/shared").ValidationError | true | null | undefined) | undefined;
|
|
335
|
+
description?: import("react").ReactNode;
|
|
336
|
+
errorMessage?: import("react").ReactNode | ((v: import("@react-types/shared").ValidationResult) => import("react").ReactNode);
|
|
337
|
+
isClearable?: boolean | undefined;
|
|
338
|
+
baseRef?: import("react").Ref<HTMLDivElement> | undefined;
|
|
339
|
+
wrapperRef?: import("react").Ref<HTMLDivElement> | undefined;
|
|
340
|
+
innerWrapperRef?: import("react").Ref<HTMLDivElement> | undefined;
|
|
341
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
342
|
+
}, "ref"> & import("react").RefAttributes<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>>;
|
|
343
|
+
export default ExtendedInput;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Input } from "@heroui/input";
|
|
2
|
+
import { extendVariants } from "@heroui/system-rsc";
|
|
3
|
+
import { inputClasses } from "../../utils/index.js";
|
|
4
|
+
const ExtendedInput = extendVariants(Input, inputClasses);
|
|
5
|
+
const input_extend = ExtendedInput;
|
|
6
|
+
export { input_extend as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ModalProps } from '@heroui/modal';
|
|
3
|
+
export type UXModalProps = Omit<ModalProps, 'closeButton'> & {
|
|
4
|
+
title?: React.ReactNode;
|
|
5
|
+
footer?: React.ReactNode;
|
|
6
|
+
tip?: React.ReactNode;
|
|
7
|
+
titleAlign?: 'left' | 'center';
|
|
8
|
+
};
|
|
9
|
+
declare const UXModal: React.ForwardRefExoticComponent<Omit<UXModalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export default UXModal;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { Modal, ModalBody, ModalContent, ModalFooter, ModalHeader } from "@heroui/modal";
|
|
4
|
+
import { Center, Circle, Flex, Text, UXButton } from "../index.js";
|
|
5
|
+
import { CloseIcon } from "../../icons/index.js";
|
|
6
|
+
const UXModal = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
7
|
+
const { title, footer, backdrop = 'blur', scrollBehavior = 'inside', children, titleAlign = 'left', classNames, tip, ...restProps } = props;
|
|
8
|
+
return /*#__PURE__*/ jsx(Modal, {
|
|
9
|
+
ref: ref,
|
|
10
|
+
backdrop: backdrop,
|
|
11
|
+
scrollBehavior: scrollBehavior,
|
|
12
|
+
classNames: {
|
|
13
|
+
wrapper: [
|
|
14
|
+
'items-end md:items-center',
|
|
15
|
+
classNames?.wrapper
|
|
16
|
+
],
|
|
17
|
+
base: [
|
|
18
|
+
'pt-2 pb-[34px] gap-5',
|
|
19
|
+
'max-h-[calc(100vh-48px)] max-md:m-0 max-md:rounded-b-none',
|
|
20
|
+
'md:max-h-[750px] md:py-6',
|
|
21
|
+
classNames?.base
|
|
22
|
+
],
|
|
23
|
+
backdrop: classNames?.backdrop,
|
|
24
|
+
header: [
|
|
25
|
+
'px-lg py-0 max-md:text-h3',
|
|
26
|
+
'md:px-6 md:text-h2',
|
|
27
|
+
'center' === titleAlign && 'justify-center',
|
|
28
|
+
classNames?.header
|
|
29
|
+
],
|
|
30
|
+
body: [
|
|
31
|
+
'px-lg md:px-6 py-0 no-scrollbar',
|
|
32
|
+
classNames?.body
|
|
33
|
+
],
|
|
34
|
+
footer: [
|
|
35
|
+
'gap-lg px-lg md:px-6 py-0 flex-col items-stretch',
|
|
36
|
+
classNames?.footer
|
|
37
|
+
],
|
|
38
|
+
closeButton: [
|
|
39
|
+
'top-5 right-4 text-foreground hidden md:flex',
|
|
40
|
+
classNames?.closeButton
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
closeButton: /*#__PURE__*/ jsx(UXButton, {
|
|
44
|
+
isIconOnly: true,
|
|
45
|
+
variant: "light",
|
|
46
|
+
children: /*#__PURE__*/ jsx(CloseIcon, {})
|
|
47
|
+
}),
|
|
48
|
+
...restProps,
|
|
49
|
+
children: /*#__PURE__*/ jsxs(ModalContent, {
|
|
50
|
+
children: [
|
|
51
|
+
/*#__PURE__*/ jsx("div", {
|
|
52
|
+
className: "bg-foreground-100 mx-auto block h-1 w-10 rounded-full md:hidden"
|
|
53
|
+
}),
|
|
54
|
+
title ? /*#__PURE__*/ jsx(ModalHeader, {
|
|
55
|
+
className: "capitalize",
|
|
56
|
+
children: title
|
|
57
|
+
}) : null,
|
|
58
|
+
/*#__PURE__*/ jsx(ModalBody, {
|
|
59
|
+
children: children
|
|
60
|
+
}),
|
|
61
|
+
footer ? /*#__PURE__*/ jsx(ModalFooter, {
|
|
62
|
+
children: footer
|
|
63
|
+
}) : null,
|
|
64
|
+
tip ? /*#__PURE__*/ jsx(ModalFooter, {
|
|
65
|
+
className: "-mt-md",
|
|
66
|
+
children: /*#__PURE__*/ jsxs(Flex, {
|
|
67
|
+
gap: 2,
|
|
68
|
+
children: [
|
|
69
|
+
/*#__PURE__*/ jsx(Center, {
|
|
70
|
+
className: "h-4",
|
|
71
|
+
children: /*#__PURE__*/ jsx(Circle, {
|
|
72
|
+
className: "bg-foreground-300 h-[5px] w-[5px]"
|
|
73
|
+
})
|
|
74
|
+
}),
|
|
75
|
+
/*#__PURE__*/ jsx(Text, {
|
|
76
|
+
body2: true,
|
|
77
|
+
color: "secondary",
|
|
78
|
+
children: tip
|
|
79
|
+
})
|
|
80
|
+
]
|
|
81
|
+
})
|
|
82
|
+
}) : null
|
|
83
|
+
]
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
UXModal.displayName = 'UX.Modal';
|
|
88
|
+
const components_UXModal = UXModal;
|
|
89
|
+
export { components_UXModal as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ExtendedNumberInput from './number-input.extend';
|
|
3
|
+
export type UXNumberInputProps = React.ComponentPropsWithRef<typeof ExtendedNumberInput>;
|
|
4
|
+
declare const UXNumberInput: React.ForwardRefExoticComponent<UXNumberInputProps>;
|
|
5
|
+
export default UXNumberInput;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import number_input_extend from "./number-input.extend.js";
|
|
4
|
+
const UXNumberInput_UXNumberInput = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(number_input_extend, {
|
|
5
|
+
...props,
|
|
6
|
+
ref: ref
|
|
7
|
+
}));
|
|
8
|
+
UXNumberInput_UXNumberInput.displayName = 'UX.NumberInput';
|
|
9
|
+
const UXNumberInput = UXNumberInput_UXNumberInput;
|
|
10
|
+
export { UXNumberInput as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type NumberInputProps } from '@heroui/number-input';
|
|
3
|
+
type ExtendedNumberInputProps = Omit<NumberInputProps, 'color'> & {
|
|
4
|
+
color?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'bullish' | 'bearish';
|
|
5
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
6
|
+
};
|
|
7
|
+
declare const ExtendedNumberInput: React.ForwardRefExoticComponent<ExtendedNumberInputProps>;
|
|
8
|
+
export default ExtendedNumberInput;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NumberInput } from "@heroui/number-input";
|
|
2
|
+
import { extendVariants } from "@heroui/system-rsc";
|
|
3
|
+
import { inputClasses } from "../../utils/index.js";
|
|
4
|
+
const ExtendedNumberInput = extendVariants(NumberInput, inputClasses);
|
|
5
|
+
const number_input_extend = ExtendedNumberInput;
|
|
6
|
+
export { number_input_extend as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ExtendedPopover from './popover.extend';
|
|
3
|
+
export type UXPopoverProps = React.ComponentPropsWithRef<typeof ExtendedPopover>;
|
|
4
|
+
declare const UXPopover: React.FC<UXPopoverProps>;
|
|
5
|
+
export default UXPopover;
|
|
6
|
+
export { PopoverContent as UXPopoverContent, PopoverTrigger as UXPopoverTrigger } from '@heroui/popover';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import popover_extend from "./popover.extend.js";
|
|
4
|
+
import { PopoverContent, PopoverTrigger } from "@heroui/popover";
|
|
5
|
+
const UXPopover = (props)=>/*#__PURE__*/ jsx(popover_extend, {
|
|
6
|
+
...props
|
|
7
|
+
});
|
|
8
|
+
UXPopover.displayName = 'UX.Popover';
|
|
9
|
+
const components_UXPopover = UXPopover;
|
|
10
|
+
export { PopoverContent as UXPopoverContent, PopoverTrigger as UXPopoverTrigger, components_UXPopover 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-small',
|
|
13
|
+
content: 'bg-content1 text-foreground-300'
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
color: 'default',
|
|
19
|
+
radius: 'md',
|
|
20
|
+
size: 'md',
|
|
21
|
+
shadow: 'md',
|
|
22
|
+
backdrop: 'transparent'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const popover_extend = ExtendedPopover;
|
|
26
|
+
export { popover_extend as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type RadioGroupProps } from '@heroui/radio';
|
|
3
|
+
import ExtendedRadio from './radio.extend';
|
|
4
|
+
export type UXRadioProps = React.ComponentPropsWithRef<typeof ExtendedRadio>;
|
|
5
|
+
declare const UXRadio: React.ForwardRefExoticComponent<Omit<Omit<import("@heroui/radio").RadioProps, "color"> & {
|
|
6
|
+
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "bullish" | "bearish";
|
|
7
|
+
}, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
8
|
+
export default UXRadio;
|
|
9
|
+
export declare const UXRadioGroup: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"div", RadioGroupProps, never>;
|
|
10
|
+
export type UXRadioGroupProps = RadioGroupProps;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { RadioGroup } from "@heroui/radio";
|
|
4
|
+
import radio_extend from "./radio.extend.js";
|
|
5
|
+
const UXRadio = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(radio_extend, {
|
|
6
|
+
ref: ref,
|
|
7
|
+
...props
|
|
8
|
+
}));
|
|
9
|
+
UXRadio.displayName = 'UX.Radio';
|
|
10
|
+
const components_UXRadio = UXRadio;
|
|
11
|
+
const UXRadioGroup = RadioGroup;
|
|
12
|
+
export { UXRadioGroup, components_UXRadio as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type RadioProps } from '@heroui/radio';
|
|
3
|
+
type ExtendedRadioProps = Omit<RadioProps, 'color'> & {
|
|
4
|
+
color?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'bullish' | 'bearish';
|
|
5
|
+
};
|
|
6
|
+
declare const ExtendedRadio: React.ForwardRefExoticComponent<ExtendedRadioProps>;
|
|
7
|
+
export default ExtendedRadio;
|