@particle-network/ui-react 0.2.1-beta.0 → 0.3.0-beta.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.
@@ -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: React.ForwardRefExoticComponent<Omit<Omit<{
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>>>, "ref"> & React.RefAttributes<HTMLInputElement>>;
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 { forwardRef } from "react";
2
+ import "react";
3
+ import { forwardRef } from "@heroui/system";
3
4
  import input_extend from "./input.extend.js";
4
- const UXInput_UXInput = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(input_extend, {
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" | "groups" | "rows" | "columns" | undefined;
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" | "groups" | "rows" | "columns" | undefined;
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,4 @@
1
+ import React from 'react';
2
+ import ExtendedTextarea from './textarea.extend';
3
+ export type UXTextareaProps = React.ComponentPropsWithRef<typeof ExtendedTextarea>;
4
+ export declare const UXTextarea: React.ForwardRefExoticComponent<UXTextareaProps>;
@@ -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';
@@ -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 };
@@ -4,7 +4,7 @@ const inputClasses = {
4
4
  color: 'primary',
5
5
  size: 'md',
6
6
  fullWidth: true,
7
- labelPlacement: 'inside',
7
+ labelPlacement: 'outside',
8
8
  isDisabled: false,
9
9
  hideStepper: true,
10
10
  textAlign: 'left'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-react",
3
- "version": "0.2.1-beta.0",
3
+ "version": "0.3.0-beta.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -39,8 +39,8 @@
39
39
  "@types/react": "^19.1.10",
40
40
  "react": "^19.1.0",
41
41
  "typescript": "^5.8.3",
42
- "@particle-network/lintstaged-config": "0.1.0",
43
- "@particle-network/eslint-config": "0.3.0"
42
+ "@particle-network/eslint-config": "0.3.0",
43
+ "@particle-network/lintstaged-config": "0.1.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=16.9.0",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "ahooks": "^3.9.4",
51
- "@particle-network/ui-shared": "0.1.1"
51
+ "@particle-network/ui-shared": "0.2.0-beta.0"
52
52
  },
53
53
  "scripts": {
54
54
  "build": "rslib build",
@@ -128,11 +128,11 @@ module.exports = {
128
128
  DEFAULT: '#FFFFFF',
129
129
  },
130
130
  background: {
131
- 200: '#E8E8ED',
132
- 300: '#F0F0F2',
133
- 400: '#F8F8FA',
131
+ 200: '#F0F0F2',
132
+ 300: '#F8F8FA',
133
+ 400: '#FFFFFF',
134
134
  500: '#FFFFFF',
135
- DEFAULT: '#FFFFFF',
135
+ DEFAULT: '#F8F8FA',
136
136
  },
137
137
  foreground: {
138
138
  100: '#C0C0C9',