@particle-network/ui-react 0.1.2 → 0.1.3-beta.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/dist/components/UXButton/use-button.d.ts +1 -1
- package/dist/components/UXChip/index.d.ts +1 -1
- package/dist/components/UXInput/index.d.ts +19 -19
- package/dist/components/UXInput/input.extend.d.ts +8 -8
- package/dist/components/UXSwitch/index.d.ts +8 -8
- package/dist/components/UXTabs/tabs.classes.js +1 -1
- package/package.json +15 -15
|
@@ -47,7 +47,7 @@ interface Props extends HTMLHeroUIProps<'button'> {
|
|
|
47
47
|
export type UseButtonProps = Props & Omit<AriaButtonProps, keyof ButtonVariantProps> & Omit<ButtonVariantProps, 'isInGroup'>;
|
|
48
48
|
export declare function useButton(props: UseButtonProps): {
|
|
49
49
|
Component: import("@heroui/system-rsc").As<any>;
|
|
50
|
-
children: ReactNode;
|
|
50
|
+
children: ((string | number | bigint | boolean | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | import("react").ReactPortal | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined>) & (string | number | bigint | boolean | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined>)) | null | undefined;
|
|
51
51
|
domRef: import("react").RefObject<HTMLButtonElement>;
|
|
52
52
|
spinner: ReactNode;
|
|
53
53
|
styles: string;
|
|
@@ -298,5 +298,5 @@ declare const UXChip: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
298
298
|
isCloseable?: boolean | undefined;
|
|
299
299
|
hasStartContent?: boolean | undefined;
|
|
300
300
|
hasEndContent?: boolean | undefined;
|
|
301
|
-
}, "ref"> &
|
|
301
|
+
}, "ref"> & import("react").RefAttributes<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
302
302
|
export default UXChip;
|
|
@@ -3,7 +3,7 @@ import ExtendedInput from './input.extend';
|
|
|
3
3
|
export type UXInputProps = React.ComponentPropsWithRef<typeof ExtendedInput>;
|
|
4
4
|
declare const UXInput: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
5
5
|
fullWidth?: boolean | undefined;
|
|
6
|
-
ref?:
|
|
6
|
+
ref?: import("react").Ref<HTMLInputElement> | undefined;
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
defaultChecked?: any;
|
|
9
9
|
defaultValue?: string | undefined;
|
|
@@ -116,27 +116,27 @@ declare const UXInput: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
116
116
|
dangerouslySetInnerHTML?: {
|
|
117
117
|
__html: string | TrustedHTML;
|
|
118
118
|
} | undefined;
|
|
119
|
-
onCopy?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
119
|
+
onCopy?: (React.ClipboardEventHandler<HTMLInputElement> & import("react").ClipboardEventHandler<HTMLInputElement>) | undefined;
|
|
120
120
|
onCopyCapture?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
121
|
-
onCut?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
121
|
+
onCut?: (React.ClipboardEventHandler<HTMLInputElement> & import("react").ClipboardEventHandler<HTMLInputElement>) | undefined;
|
|
122
122
|
onCutCapture?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
123
|
-
onPaste?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
123
|
+
onPaste?: (React.ClipboardEventHandler<HTMLInputElement> & import("react").ClipboardEventHandler<HTMLInputElement>) | undefined;
|
|
124
124
|
onPasteCapture?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
125
|
-
onCompositionEnd?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
125
|
+
onCompositionEnd?: (React.CompositionEventHandler<HTMLInputElement> & import("react").CompositionEventHandler<HTMLInputElement>) | undefined;
|
|
126
126
|
onCompositionEndCapture?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
127
|
-
onCompositionStart?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
127
|
+
onCompositionStart?: (React.CompositionEventHandler<HTMLInputElement> & import("react").CompositionEventHandler<HTMLInputElement>) | undefined;
|
|
128
128
|
onCompositionStartCapture?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
129
|
-
onCompositionUpdate?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
129
|
+
onCompositionUpdate?: (React.CompositionEventHandler<HTMLInputElement> & import("react").CompositionEventHandler<HTMLInputElement>) | undefined;
|
|
130
130
|
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
131
|
-
onFocus?: (React.FocusEventHandler<HTMLInputElement> & ((e:
|
|
131
|
+
onFocus?: (React.FocusEventHandler<HTMLInputElement> & ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void)) | undefined;
|
|
132
132
|
onFocusCapture?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
133
|
-
onBlur?: (React.FocusEventHandler<HTMLInputElement> & ((e:
|
|
133
|
+
onBlur?: (React.FocusEventHandler<HTMLInputElement> & ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void)) | undefined;
|
|
134
134
|
onBlurCapture?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
135
135
|
onChange?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
136
136
|
onChangeCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
|
|
137
|
-
onBeforeInput?: (React.InputEventHandler<HTMLInputElement> &
|
|
137
|
+
onBeforeInput?: (React.InputEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLInputElement>) | undefined;
|
|
138
138
|
onBeforeInputCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
|
|
139
|
-
onInput?: React.FormEventHandler<HTMLInputElement> | undefined;
|
|
139
|
+
onInput?: (React.FormEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLInputElement>) | undefined;
|
|
140
140
|
onInputCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
|
|
141
141
|
onReset?: React.FormEventHandler<HTMLInputElement> | undefined;
|
|
142
142
|
onResetCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
|
|
@@ -234,7 +234,7 @@ declare const UXInput: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
234
234
|
onMouseOverCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
235
235
|
onMouseUp?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
236
236
|
onMouseUpCapture?: React.MouseEventHandler<HTMLInputElement> | undefined;
|
|
237
|
-
onSelect?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
237
|
+
onSelect?: (React.ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLInputElement>) | undefined;
|
|
238
238
|
onSelectCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
239
239
|
onTouchCancel?: React.TouchEventHandler<HTMLInputElement> | undefined;
|
|
240
240
|
onTouchCancelCapture?: React.TouchEventHandler<HTMLInputElement> | undefined;
|
|
@@ -301,7 +301,7 @@ declare const UXInput: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
301
301
|
type?: string | undefined;
|
|
302
302
|
key?: React.Key | null | undefined;
|
|
303
303
|
labelPlacement?: "inside" | "outside" | "outside-left" | "outside-top" | undefined;
|
|
304
|
-
label?:
|
|
304
|
+
label?: import("react").ReactNode;
|
|
305
305
|
isInvalid?: boolean | undefined;
|
|
306
306
|
disableAnimation?: boolean | undefined;
|
|
307
307
|
isDisabled?: boolean | undefined;
|
|
@@ -335,12 +335,12 @@ declare const UXInput: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
335
335
|
validationState?: import("@react-types/shared").ValidationState | undefined;
|
|
336
336
|
validationBehavior?: "aria" | "native" | undefined;
|
|
337
337
|
validate?: ((value: string) => import("@react-types/shared").ValidationError | true | null | undefined) | undefined;
|
|
338
|
-
description?:
|
|
339
|
-
errorMessage?:
|
|
338
|
+
description?: import("react").ReactNode;
|
|
339
|
+
errorMessage?: import("react").ReactNode | ((v: import("@react-types/shared").ValidationResult) => import("react").ReactNode);
|
|
340
340
|
isClearable?: boolean | undefined;
|
|
341
|
-
baseRef?:
|
|
342
|
-
wrapperRef?:
|
|
343
|
-
innerWrapperRef?:
|
|
341
|
+
baseRef?: import("react").Ref<HTMLDivElement> | undefined;
|
|
342
|
+
wrapperRef?: import("react").Ref<HTMLDivElement> | undefined;
|
|
343
|
+
innerWrapperRef?: import("react").Ref<HTMLDivElement> | undefined;
|
|
344
344
|
textAlign?: "center" | "left" | "right" | undefined;
|
|
345
|
-
}, "ref"> &
|
|
345
|
+
}, "ref"> & import("react").RefAttributes<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
346
346
|
export default UXInput;
|
|
@@ -113,17 +113,17 @@ declare const ExtendedInput: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
113
113
|
dangerouslySetInnerHTML?: {
|
|
114
114
|
__html: string | TrustedHTML;
|
|
115
115
|
} | undefined;
|
|
116
|
-
onCopy?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
116
|
+
onCopy?: (import("react").ClipboardEventHandler<HTMLInputElement> & import("react").ClipboardEventHandler<HTMLInputElement>) | undefined;
|
|
117
117
|
onCopyCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
118
|
-
onCut?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
118
|
+
onCut?: (import("react").ClipboardEventHandler<HTMLInputElement> & import("react").ClipboardEventHandler<HTMLInputElement>) | undefined;
|
|
119
119
|
onCutCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
120
|
-
onPaste?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
120
|
+
onPaste?: (import("react").ClipboardEventHandler<HTMLInputElement> & import("react").ClipboardEventHandler<HTMLInputElement>) | undefined;
|
|
121
121
|
onPasteCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
122
|
-
onCompositionEnd?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
122
|
+
onCompositionEnd?: (import("react").CompositionEventHandler<HTMLInputElement> & import("react").CompositionEventHandler<HTMLInputElement>) | undefined;
|
|
123
123
|
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
124
|
-
onCompositionStart?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
124
|
+
onCompositionStart?: (import("react").CompositionEventHandler<HTMLInputElement> & import("react").CompositionEventHandler<HTMLInputElement>) | undefined;
|
|
125
125
|
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
126
|
-
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
126
|
+
onCompositionUpdate?: (import("react").CompositionEventHandler<HTMLInputElement> & import("react").CompositionEventHandler<HTMLInputElement>) | undefined;
|
|
127
127
|
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
128
128
|
onFocus?: (import("react").FocusEventHandler<HTMLInputElement> & ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void)) | undefined;
|
|
129
129
|
onFocusCapture?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
|
|
@@ -133,7 +133,7 @@ declare const ExtendedInput: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
133
133
|
onChangeCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
134
134
|
onBeforeInput?: (import("react").InputEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLInputElement>) | undefined;
|
|
135
135
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
136
|
-
onInput?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
136
|
+
onInput?: (import("react").FormEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLInputElement>) | undefined;
|
|
137
137
|
onInputCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
138
138
|
onReset?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
139
139
|
onResetCapture?: import("react").FormEventHandler<HTMLInputElement> | undefined;
|
|
@@ -231,7 +231,7 @@ declare const ExtendedInput: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
231
231
|
onMouseOverCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
232
232
|
onMouseUp?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
233
233
|
onMouseUpCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
|
|
234
|
-
onSelect?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
234
|
+
onSelect?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLInputElement>) | undefined;
|
|
235
235
|
onSelectCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
|
|
236
236
|
onTouchCancel?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
237
237
|
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import ExtendedSwitch from './switch.extend';
|
|
3
3
|
export type UXSwitchProps = React.ComponentPropsWithRef<typeof ExtendedSwitch>;
|
|
4
4
|
declare const UXSwitch: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
5
|
-
ref?:
|
|
6
|
-
children?:
|
|
5
|
+
ref?: import("react").Ref<HTMLInputElement> | undefined;
|
|
6
|
+
children?: import("react").ReactNode;
|
|
7
7
|
defaultChecked?: any;
|
|
8
8
|
defaultValue?: any;
|
|
9
9
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -127,9 +127,9 @@ declare const UXSwitch: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
127
127
|
onCompositionStartCapture?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
128
128
|
onCompositionUpdate?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
129
129
|
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
130
|
-
onFocus?: (React.FocusEventHandler<HTMLInputElement> & ((e:
|
|
130
|
+
onFocus?: (React.FocusEventHandler<HTMLInputElement> & ((e: import("react").FocusEvent<Element, Element>) => void)) | undefined;
|
|
131
131
|
onFocusCapture?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
132
|
-
onBlur?: (React.FocusEventHandler<HTMLInputElement> & ((e:
|
|
132
|
+
onBlur?: (React.FocusEventHandler<HTMLInputElement> & ((e: import("react").FocusEvent<Element, Element>) => void)) | undefined;
|
|
133
133
|
onBlurCapture?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
134
134
|
onChange?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
135
135
|
onChangeCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
|
|
@@ -309,8 +309,8 @@ declare const UXSwitch: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
309
309
|
formNoValidate?: boolean | undefined;
|
|
310
310
|
formTarget?: string | undefined;
|
|
311
311
|
excludeFromTabOrder?: boolean | undefined;
|
|
312
|
-
startContent?:
|
|
313
|
-
endContent?:
|
|
312
|
+
startContent?: import("react").ReactNode;
|
|
313
|
+
endContent?: import("react").ReactNode;
|
|
314
314
|
autoComplete?: React.HTMLInputAutoCompleteAttribute | undefined;
|
|
315
315
|
alt?: string | undefined;
|
|
316
316
|
maxLength?: number | undefined;
|
|
@@ -326,6 +326,6 @@ declare const UXSwitch: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
326
326
|
onValueChange?: ((isSelected: boolean) => void) | undefined;
|
|
327
327
|
defaultSelected?: boolean | undefined;
|
|
328
328
|
isReadOnly?: boolean | undefined;
|
|
329
|
-
thumbIcon?:
|
|
330
|
-
}, "ref"> &
|
|
329
|
+
thumbIcon?: import("react").ReactNode | ((props: import("@heroui/switch").SwitchThumbIconProps) => import("react").ReactNode);
|
|
330
|
+
}, "ref"> & import("react").RefAttributes<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
331
331
|
export default UXSwitch;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-network/ui-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3-beta.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -14,30 +14,30 @@
|
|
|
14
14
|
"dist",
|
|
15
15
|
"tailwind-preset.js"
|
|
16
16
|
],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"build": "rslib build",
|
|
19
|
-
"dev": "rslib build --watch",
|
|
20
|
-
"type-check": "npx tsc --noEmit -p ./tsconfig.json",
|
|
21
|
-
"lint": "eslint . --no-error-on-unmatched-pattern --quiet",
|
|
22
|
-
"lint:fix": "eslint . --fix --no-error-on-unmatched-pattern --quiet",
|
|
23
|
-
"clean": "rm -rf .turbo node_modules dist"
|
|
24
|
-
},
|
|
25
17
|
"devDependencies": {
|
|
26
18
|
"@heroui/react": "^2.8.2",
|
|
27
|
-
"@particle-network/eslint-config": "workspace:*",
|
|
28
|
-
"@particle-network/lintstaged-config": "workspace:*",
|
|
29
19
|
"@rsbuild/plugin-react": "^1.3.5",
|
|
30
20
|
"@rslib/core": "^0.12.3",
|
|
31
21
|
"@types/react": "^19.1.10",
|
|
32
22
|
"react": "^19.1.0",
|
|
33
|
-
"typescript": "^5.8.3"
|
|
23
|
+
"typescript": "^5.8.3",
|
|
24
|
+
"@particle-network/lintstaged-config": "0.0.0",
|
|
25
|
+
"@particle-network/eslint-config": "0.2.0"
|
|
34
26
|
},
|
|
35
27
|
"peerDependencies": {
|
|
36
28
|
"react": ">=16.9.0",
|
|
37
29
|
"react-dom": ">=16.9.0"
|
|
38
30
|
},
|
|
39
31
|
"dependencies": {
|
|
40
|
-
"
|
|
41
|
-
"
|
|
32
|
+
"ahooks": "^3.9.4",
|
|
33
|
+
"@particle-network/ui-shared": "0.1.0"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "rslib build",
|
|
37
|
+
"dev": "rslib build --watch",
|
|
38
|
+
"type-check": "npx tsc --noEmit -p ./tsconfig.json",
|
|
39
|
+
"lint": "eslint . --no-error-on-unmatched-pattern --quiet",
|
|
40
|
+
"lint:fix": "eslint . --fix --no-error-on-unmatched-pattern --quiet",
|
|
41
|
+
"clean": "rm -rf .turbo node_modules dist"
|
|
42
42
|
}
|
|
43
|
-
}
|
|
43
|
+
}
|