@particle-network/ui-react 0.1.1-beta.1 → 0.1.2
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 +3 -3
- 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:
|
|
50
|
+
children: ReactNode;
|
|
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"> & React.RefAttributes<React.ReactElement<unknown, string | 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?: 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?:
|
|
119
|
+
onCopy?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
120
120
|
onCopyCapture?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
121
|
-
onCut?:
|
|
121
|
+
onCut?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
122
122
|
onCutCapture?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
123
|
-
onPaste?:
|
|
123
|
+
onPaste?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
124
124
|
onPasteCapture?: React.ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
125
|
-
onCompositionEnd?:
|
|
125
|
+
onCompositionEnd?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
126
126
|
onCompositionEndCapture?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
127
|
-
onCompositionStart?:
|
|
127
|
+
onCompositionStart?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
128
128
|
onCompositionStartCapture?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
129
|
-
onCompositionUpdate?:
|
|
129
|
+
onCompositionUpdate?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
130
130
|
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLInputElement> | undefined;
|
|
131
|
-
onFocus?: (React.FocusEventHandler<HTMLInputElement> & ((e:
|
|
131
|
+
onFocus?: (React.FocusEventHandler<HTMLInputElement> & ((e: 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: 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> & React.FormEventHandler<HTMLInputElement>) | undefined;
|
|
138
138
|
onBeforeInputCapture?: React.FormEventHandler<HTMLInputElement> | undefined;
|
|
139
|
-
onInput?:
|
|
139
|
+
onInput?: 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?:
|
|
237
|
+
onSelect?: 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?: 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?: React.ReactNode;
|
|
339
|
+
errorMessage?: React.ReactNode | ((v: import("@react-types/shared").ValidationResult) => React.ReactNode);
|
|
340
340
|
isClearable?: boolean | undefined;
|
|
341
|
-
baseRef?:
|
|
342
|
-
wrapperRef?:
|
|
343
|
-
innerWrapperRef?:
|
|
341
|
+
baseRef?: React.Ref<HTMLDivElement> | undefined;
|
|
342
|
+
wrapperRef?: React.Ref<HTMLDivElement> | undefined;
|
|
343
|
+
innerWrapperRef?: React.Ref<HTMLDivElement> | undefined;
|
|
344
344
|
textAlign?: "center" | "left" | "right" | undefined;
|
|
345
|
-
}, "ref"> &
|
|
345
|
+
}, "ref"> & React.RefAttributes<React.ReactElement<unknown, string | 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?:
|
|
116
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
117
117
|
onCopyCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
118
|
-
onCut?:
|
|
118
|
+
onCut?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
119
119
|
onCutCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
120
|
-
onPaste?:
|
|
120
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
121
121
|
onPasteCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
122
|
-
onCompositionEnd?:
|
|
122
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
123
123
|
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
124
|
-
onCompositionStart?:
|
|
124
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
125
125
|
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
|
|
126
|
-
onCompositionUpdate?:
|
|
126
|
+
onCompositionUpdate?: 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?:
|
|
136
|
+
onInput?: 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?:
|
|
234
|
+
onSelect?: 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?: React.Ref<HTMLInputElement> | undefined;
|
|
6
|
+
children?: 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: 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: 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?: React.ReactNode;
|
|
313
|
+
endContent?: 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?: React.ReactNode | ((props: import("@heroui/switch").SwitchThumbIconProps) => React.ReactNode);
|
|
330
|
+
}, "ref"> & React.RefAttributes<React.ReactElement<unknown, string | React.JSXElementConstructor<any>>>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
331
331
|
export default UXSwitch;
|
|
@@ -219,7 +219,7 @@ const tabsClasses = {
|
|
|
219
219
|
size: 'sm',
|
|
220
220
|
class: {
|
|
221
221
|
tabList: 'rounded-small',
|
|
222
|
-
tab: 'h-6 text-
|
|
222
|
+
tab: 'h-6 !text-body3 rounded-none',
|
|
223
223
|
cursor: 'rounded-small'
|
|
224
224
|
}
|
|
225
225
|
},
|
|
@@ -230,7 +230,7 @@ const tabsClasses = {
|
|
|
230
230
|
size: 'md',
|
|
231
231
|
class: {
|
|
232
232
|
tabList: 'rounded-small',
|
|
233
|
-
tab: 'h-[30px] text-
|
|
233
|
+
tab: 'h-[30px] text-tiny rounded-none',
|
|
234
234
|
cursor: 'rounded-small'
|
|
235
235
|
}
|
|
236
236
|
},
|
|
@@ -241,7 +241,7 @@ const tabsClasses = {
|
|
|
241
241
|
size: 'lg',
|
|
242
242
|
class: {
|
|
243
243
|
tabList: 'rounded-medium',
|
|
244
|
-
tab: 'h-[34px] text-
|
|
244
|
+
tab: 'h-[34px] text-small',
|
|
245
245
|
cursor: 'rounded-small'
|
|
246
246
|
}
|
|
247
247
|
},
|
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.2",
|
|
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
|
+
},
|
|
17
25
|
"devDependencies": {
|
|
18
26
|
"@heroui/react": "^2.8.2",
|
|
27
|
+
"@particle-network/eslint-config": "workspace:*",
|
|
28
|
+
"@particle-network/lintstaged-config": "workspace:*",
|
|
19
29
|
"@rsbuild/plugin-react": "^1.3.5",
|
|
20
30
|
"@rslib/core": "^0.12.3",
|
|
21
31
|
"@types/react": "^19.1.10",
|
|
22
32
|
"react": "^19.1.0",
|
|
23
|
-
"typescript": "^5.8.3"
|
|
24
|
-
"@particle-network/lintstaged-config": "0.0.0",
|
|
25
|
-
"@particle-network/eslint-config": "0.1.0"
|
|
33
|
+
"typescript": "^5.8.3"
|
|
26
34
|
},
|
|
27
35
|
"peerDependencies": {
|
|
28
36
|
"react": ">=16.9.0",
|
|
29
37
|
"react-dom": ">=16.9.0"
|
|
30
38
|
},
|
|
31
39
|
"dependencies": {
|
|
32
|
-
"
|
|
33
|
-
"
|
|
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"
|
|
40
|
+
"@particle-network/ui-shared": "workspace:*",
|
|
41
|
+
"ahooks": "^3.9.4"
|
|
42
42
|
}
|
|
43
|
-
}
|
|
43
|
+
}
|