@particle-network/ui-react 0.2.1-beta.0 → 0.3.0-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/UXInput/index.d.ts +2 -2
- package/dist/components/UXInput/index.js +3 -2
- package/dist/components/UXTable/index.d.ts +1 -1
- package/dist/components/UXTable/table.extend.d.ts +1 -1
- package/dist/components/UXTextarea/index.d.ts +4 -0
- package/dist/components/UXTextarea/index.js +10 -0
- package/dist/components/UXTextarea/textarea.extend.d.ts +7 -0
- package/dist/components/UXTextarea/textarea.extend.js +6 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/utils/input-classes.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ExtendedInput from './input.extend';
|
|
3
3
|
export type UXInputProps = React.ComponentPropsWithRef<typeof ExtendedInput>;
|
|
4
|
-
declare const UXInput:
|
|
4
|
+
declare const UXInput: import("@heroui/system-rsc").InternalForwardRefRenderFunction<"input", Omit<{
|
|
5
5
|
fullWidth?: boolean | undefined;
|
|
6
6
|
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -342,5 +342,5 @@ declare const UXInput: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
342
342
|
wrapperRef?: React.Ref<HTMLDivElement> | undefined;
|
|
343
343
|
innerWrapperRef?: React.Ref<HTMLDivElement> | undefined;
|
|
344
344
|
textAlign?: "center" | "left" | "right" | undefined;
|
|
345
|
-
}, "ref"> & React.RefAttributes<React.ReactElement<unknown, string | React.JSXElementConstructor<any>>>,
|
|
345
|
+
}, "ref"> & React.RefAttributes<React.ReactElement<unknown, string | React.JSXElementConstructor<any>>>, never>;
|
|
346
346
|
export default UXInput;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import "react";
|
|
3
|
+
import { forwardRef } from "@heroui/system";
|
|
3
4
|
import input_extend from "./input.extend.js";
|
|
4
|
-
const UXInput_UXInput =
|
|
5
|
+
const UXInput_UXInput = forwardRef((props, ref)=>/*#__PURE__*/ jsx(input_extend, {
|
|
5
6
|
...props,
|
|
6
7
|
ref: ref
|
|
7
8
|
}));
|
|
@@ -299,7 +299,7 @@ export declare const UXTable: import("@heroui/system-rsc").InternalForwardRefRen
|
|
|
299
299
|
cellPadding?: string | number | undefined;
|
|
300
300
|
cellSpacing?: string | number | undefined;
|
|
301
301
|
frame?: boolean | undefined;
|
|
302
|
-
rules?: "none" | "all" | "
|
|
302
|
+
rules?: "none" | "all" | "rows" | "groups" | "columns" | undefined;
|
|
303
303
|
classNames?: import("@heroui/theme").SlotsToClasses<"table" | "base" | "tbody" | "td" | "tfoot" | "th" | "thead" | "tr" | "wrapper" | "sortIcon" | "emptyWrapper" | "loadingWrapper"> | undefined;
|
|
304
304
|
topContent?: React.ReactNode;
|
|
305
305
|
bottomContent?: React.ReactNode;
|
|
@@ -296,7 +296,7 @@ declare const ExtendedTable: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
296
296
|
cellPadding?: string | number | undefined;
|
|
297
297
|
cellSpacing?: string | number | undefined;
|
|
298
298
|
frame?: boolean | undefined;
|
|
299
|
-
rules?: "none" | "all" | "
|
|
299
|
+
rules?: "none" | "all" | "rows" | "groups" | "columns" | undefined;
|
|
300
300
|
classNames?: import("@heroui/theme").SlotsToClasses<"table" | "base" | "tbody" | "td" | "tfoot" | "th" | "thead" | "tr" | "wrapper" | "sortIcon" | "emptyWrapper" | "loadingWrapper"> | undefined;
|
|
301
301
|
topContent?: import("react").ReactNode;
|
|
302
302
|
bottomContent?: import("react").ReactNode;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { forwardRef } from "@heroui/system";
|
|
4
|
+
import textarea_extend from "./textarea.extend.js";
|
|
5
|
+
const UXTextarea = forwardRef((props, ref)=>/*#__PURE__*/ jsx(textarea_extend, {
|
|
6
|
+
...props,
|
|
7
|
+
ref: ref
|
|
8
|
+
}));
|
|
9
|
+
UXTextarea.displayName = 'UX.Textarea';
|
|
10
|
+
export { UXTextarea };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type TextAreaProps } from '@heroui/input';
|
|
3
|
+
type ExtendedTextareaProps = Omit<TextAreaProps, 'color'> & {
|
|
4
|
+
color?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'bullish' | 'bearish';
|
|
5
|
+
};
|
|
6
|
+
declare const ExtendedTextarea: React.ForwardRefExoticComponent<ExtendedTextareaProps>;
|
|
7
|
+
export default ExtendedTextarea;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Textarea } from "@heroui/input";
|
|
2
|
+
import { extendVariants } from "@heroui/system-rsc";
|
|
3
|
+
import { inputClasses } from "../../utils/index.js";
|
|
4
|
+
const ExtendedTextarea = extendVariants(Textarea, inputClasses);
|
|
5
|
+
const textarea_extend = ExtendedTextarea;
|
|
6
|
+
export { textarea_extend as default };
|
|
@@ -47,5 +47,6 @@ export { default as UXSwitch } from './UXSwitch';
|
|
|
47
47
|
export * from './UXTable';
|
|
48
48
|
export { default as UXTabs } from './UXTabs';
|
|
49
49
|
export * from './UXTabs';
|
|
50
|
+
export * from './UXTextarea';
|
|
50
51
|
export type { UXTooltipProps } from './UXTooltip';
|
|
51
52
|
export { default as UXTooltip } from './UXTooltip';
|
package/dist/components/index.js
CHANGED
|
@@ -35,4 +35,5 @@ export * from "./UXSelect/index.js";
|
|
|
35
35
|
export * from "./UXSpinner/index.js";
|
|
36
36
|
export * from "./UXTable/index.js";
|
|
37
37
|
export * from "./UXTabs/index.js";
|
|
38
|
+
export * from "./UXTextarea/index.js";
|
|
38
39
|
export { Center, Circle, Flex, HStack, ProgressWrapper, Square, Text, UXCheckbox, UXChip, UXDivider, UXHint, UXInput, UXModal, UXNumberInput, UXPopover, UXRadio, UXSelect, UXSwitch, UXTabs, UXTooltip, VStack };
|