globalfy-design-system 1.15.0 → 1.16.0

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,9 +1,18 @@
1
- /// <reference types="react" />
1
+ import { TextareaHTMLAttributes } from 'react';
2
+
3
+ export type TextAreaProps = {
4
+ label?: string;
5
+ message?: string;
6
+ isInvalid?: boolean;
7
+ isValid?: boolean;
8
+ allowResize?: boolean;
9
+ value?: string;
10
+ } & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "defaultValue" | "color" | "onFocus" | "onBlur">;
2
11
  export declare const TextArea: import('react').ForwardRefExoticComponent<{
3
- label: string;
12
+ label?: string | undefined;
4
13
  message?: string | undefined;
5
14
  isInvalid?: boolean | undefined;
6
15
  isValid?: boolean | undefined;
7
16
  allowResize?: boolean | undefined;
8
17
  value?: string | undefined;
9
- } & Omit<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, "defaultValue" | "color" | "onFocus" | "onBlur" | "size"> & import('react').RefAttributes<HTMLTextAreaElement>>;
18
+ } & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "defaultValue" | "color" | "onFocus" | "onBlur" | "size"> & import('react').RefAttributes<HTMLTextAreaElement>>;
@@ -3,7 +3,7 @@ import { StoryObj } from '@storybook/react';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: import('react').ForwardRefExoticComponent<{
6
- label: string;
6
+ label?: string | undefined;
7
7
  message?: string | undefined;
8
8
  isInvalid?: boolean | undefined;
9
9
  isValid?: boolean | undefined;
@@ -1,2 +1 @@
1
1
  export * from './TextArea';
2
- export * from './TextArea.types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "globalfy-design-system",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "Globalfy Design System",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -22,6 +22,7 @@
22
22
  "test": "jest",
23
23
  "test:coverage": "jest --coverage",
24
24
  "test:watch": "jest --watch",
25
+ "build:dev:watch": "vite build --config vite.config.dev.ts --watch",
25
26
  "build": "tsc && vite build",
26
27
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
27
28
  "typecheck": "tsc --project tsconfig.json",
@@ -1,10 +0,0 @@
1
- import { TextareaHTMLAttributes } from 'react';
2
-
3
- export type TextAreaProps = {
4
- label: string;
5
- message?: string;
6
- isInvalid?: boolean;
7
- isValid?: boolean;
8
- allowResize?: boolean;
9
- value?: string;
10
- } & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "defaultValue" | "color" | "onFocus" | "onBlur">;