@sakura-ui/forms 0.1.13 → 0.2.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.
Files changed (29) hide show
  1. package/dist/index.cjs.js +115 -92
  2. package/dist/index.es.js +739 -648
  3. package/dist/types/components/Checkbox.d.ts +3 -1
  4. package/dist/types/components/Checkbox.d.ts.map +1 -1
  5. package/dist/types/components/FileInput.d.ts +3 -1
  6. package/dist/types/components/FileInput.d.ts.map +1 -1
  7. package/dist/types/components/Input.d.ts +3 -1
  8. package/dist/types/components/Input.d.ts.map +1 -1
  9. package/dist/types/components/Radio.d.ts +3 -1
  10. package/dist/types/components/Radio.d.ts.map +1 -1
  11. package/dist/types/components/Select.d.ts +3 -1
  12. package/dist/types/components/Select.d.ts.map +1 -1
  13. package/dist/types/components/Textarea.d.ts.map +1 -1
  14. package/dist/types/components/controlled/CheckboxGroup.d.ts +3 -1
  15. package/dist/types/components/controlled/CheckboxGroup.d.ts.map +1 -1
  16. package/dist/types/components/controlled/RadioGroup.d.ts +3 -1
  17. package/dist/types/components/controlled/RadioGroup.d.ts.map +1 -1
  18. package/dist/types/components/controlled/index.d.ts +0 -2
  19. package/dist/types/components/controlled/index.d.ts.map +1 -1
  20. package/dist/types/components/inputStyle.d.ts +13 -0
  21. package/dist/types/components/inputStyle.d.ts.map +1 -0
  22. package/dist/types/index.d.ts +1 -1
  23. package/dist/types/index.d.ts.map +1 -1
  24. package/dist/types/utils/class.d.ts.map +1 -1
  25. package/package.json +15 -14
  26. package/dist/types/components/controlled/SelectControl.d.ts +0 -10
  27. package/dist/types/components/controlled/SelectControl.d.ts.map +0 -1
  28. package/dist/types/components/controlled/TextareaControl.d.ts +0 -10
  29. package/dist/types/components/controlled/TextareaControl.d.ts.map +0 -1
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
- export interface CheckboxProps extends React.ComponentPropsWithRef<'input'> {
2
+ import { type InputSize } from './inputStyle';
3
+ export interface CheckboxProps extends Omit<React.ComponentPropsWithRef<'input'>, 'size'> {
4
+ size?: InputSize;
3
5
  }
4
6
  export declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
5
7
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC;CAAG;AAE9E,eAAO,MAAM,QAAQ,qGAkEpB,CAAA"}
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EACL,KAAK,SAAS,EAIf,MAAM,cAAc,CAAA;AAErB,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1D,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,eAAO,MAAM,QAAQ,qGA+EpB,CAAA"}
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
- export interface FileInputProps extends React.ComponentPropsWithRef<'input'> {
2
+ import { InputSize } from './inputStyle';
3
+ export interface FileInputProps extends Omit<React.ComponentPropsWithRef<'input'>, 'size'> {
4
+ size?: InputSize;
3
5
  }
4
6
  export declare const FileInput: React.ForwardRefExoticComponent<Omit<FileInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
5
7
  //# sourceMappingURL=FileInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC;CAAG;AAE/E,eAAO,MAAM,SAAS,sGAiErB,CAAA"}
1
+ {"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1D,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,eAAO,MAAM,SAAS,sGAwFrB,CAAA"}
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
- export interface InputProps extends React.ComponentPropsWithRef<'input'> {
2
+ import { type InputSize } from './inputStyle';
3
+ export interface InputProps extends Omit<React.ComponentPropsWithRef<'input'>, 'size'> {
4
+ size?: InputSize;
3
5
  }
4
6
  export declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
5
7
  //# sourceMappingURL=Input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC;CAAG;AAE3E,eAAO,MAAM,KAAK,kGAsCjB,CAAA"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EACL,KAAK,SAAS,EAGf,MAAM,cAAc,CAAA;AAErB,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1D,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,eAAO,MAAM,KAAK,kGA0BjB,CAAA"}
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
- export interface RadioProps extends React.ComponentPropsWithRef<'input'> {
2
+ import { type InputSize } from './inputStyle';
3
+ export interface RadioProps extends Omit<React.ComponentPropsWithRef<'input'>, 'size'> {
4
+ size?: InputSize;
3
5
  }
4
6
  export declare const Radio: React.ForwardRefExoticComponent<Omit<RadioProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
5
7
  //# sourceMappingURL=Radio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC;CAAG;AAE3E,eAAO,MAAM,KAAK,kGA6DjB,CAAA"}
1
+ {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EACL,KAAK,SAAS,EAIf,MAAM,cAAc,CAAA;AAErB,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1D,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,eAAO,MAAM,KAAK,kGAmEjB,CAAA"}
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
- export interface SelectProps extends React.ComponentPropsWithRef<'select'> {
2
+ import { type InputSize } from './inputStyle';
3
+ export interface SelectProps extends Omit<React.ComponentPropsWithRef<'select'>, 'size'> {
4
+ size?: InputSize;
3
5
  }
4
6
  export declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
5
7
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,qBAAqB,CAAC,QAAQ,CAAC;CAAG;AAE7E,eAAO,MAAM,MAAM,oGA4DlB,CAAA"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EACL,KAAK,SAAS,EAGf,MAAM,cAAc,CAAA;AAErB,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3D,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,eAAO,MAAM,MAAM,oGA8DlB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,aACf,SAAQ,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC;CAAG;AAEpD,eAAO,MAAM,QAAQ,wGA8DpB,CAAA"}
1
+ {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,aACf,SAAQ,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC;CAAG;AAEpD,eAAO,MAAM,QAAQ,wGA+DpB,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { InputItem } from './InputItem';
2
+ import type { InputItem } from './InputItem';
3
+ import type { InputSize } from '../inputStyle';
3
4
  export interface CheckboxGroupProps extends Omit<React.ComponentPropsWithRef<'fieldset'>, 'onChange'> {
4
5
  items: InputItem[];
5
6
  onChange: React.ChangeEventHandler<HTMLInputElement>;
@@ -8,6 +9,7 @@ export interface CheckboxGroupProps extends Omit<React.ComponentPropsWithRef<'fi
8
9
  errorMessage?: string;
9
10
  isInvalid?: boolean;
10
11
  isRequired?: boolean;
12
+ size?: InputSize;
11
13
  }
12
14
  export declare const CheckboxGroup: React.ForwardRefExoticComponent<Omit<CheckboxGroupProps, "ref"> & React.RefAttributes<HTMLFieldSetElement>>;
13
15
  //# sourceMappingURL=CheckboxGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/controlled/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IACjE,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IACpD,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,aAAa,6GAoCxB,CAAA"}
1
+ {"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/controlled/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IACjE,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IACpD,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,eAAO,MAAM,aAAa,6GA0CxB,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { InputItem } from './InputItem';
2
+ import type { InputItem } from './InputItem';
3
+ import type { InputSize } from '../inputStyle';
3
4
  export interface RadioGroupProps extends Omit<React.ComponentPropsWithRef<'fieldset'>, 'onChange'> {
4
5
  items: InputItem[];
5
6
  onChange: React.ChangeEventHandler<HTMLInputElement>;
@@ -9,6 +10,7 @@ export interface RadioGroupProps extends Omit<React.ComponentPropsWithRef<'field
9
10
  isInvalid?: boolean;
10
11
  isRequired?: boolean;
11
12
  defaultValue?: string;
13
+ size?: InputSize;
12
14
  }
13
15
  export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupProps, "ref"> & React.RefAttributes<HTMLFieldSetElement>>;
14
16
  //# sourceMappingURL=RadioGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/controlled/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IACjE,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IACpD,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,UAAU,0GA0CrB,CAAA"}
1
+ {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/controlled/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IACjE,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IACpD,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,eAAO,MAAM,UAAU,0GA4CrB,CAAA"}
@@ -1,5 +1,3 @@
1
1
  export { CheckboxGroup } from './CheckboxGroup';
2
2
  export { RadioGroup } from './RadioGroup';
3
- export { SelectControl } from './SelectControl';
4
- export { TextareaControl } from './TextareaControl';
5
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/controlled/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/controlled/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,13 @@
1
+ export type InputSize = 'lg' | 'md' | 'sm';
2
+ export declare const borderedInputBaseStyles = "\n bg-white\n border\n border-solid\n border-sumi-900\n outline-offset-2\n focus:outline\n focus:outline-2\n focus:outline-wood-500\n disabled:bg-transparent\n disabled:text-sumi-500\n disabled:border-sumi-500\n aria-invalid:border-sun-800\n";
3
+ export declare const borderedInputSizeStyles: {
4
+ [key in InputSize]: string;
5
+ };
6
+ export declare const borderlessInputBaseStyles = "\n inline-block\n cursor-pointer\n border\n border-solid\n border-transparent\n";
7
+ export declare const borderlessInputSizeStyles: {
8
+ [key in InputSize]: string;
9
+ };
10
+ export declare const iconStyles: {
11
+ [key in InputSize]: string;
12
+ };
13
+ //# sourceMappingURL=inputStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inputStyle.d.ts","sourceRoot":"","sources":["../../../src/components/inputStyle.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAE1C,eAAO,MAAM,uBAAuB,kQAanC,CAAA;AAGD,eAAO,MAAM,uBAAuB,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAwBjE,CAAA;AAED,eAAO,MAAM,yBAAyB,yFAMrC,CAAA;AAGD,eAAO,MAAM,yBAAyB,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAsBnE,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAIpD,CAAA"}
@@ -1,4 +1,4 @@
1
1
  export { Checkbox, Radio, Select, FileInput, Input, Textarea, LabelControl, FieldsetControl } from './components';
2
2
  export type { CheckboxProps, RadioProps, SelectProps, FileInputProps, InputProps, TextareaProps, LabelControlProps, FieldsetControlProps } from './components';
3
- export { CheckboxGroup, RadioGroup, SelectControl, TextareaControl } from './components/controlled';
3
+ export { CheckboxGroup, RadioGroup } from './components/controlled';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,KAAK,EACL,MAAM,EACN,SAAS,EACT,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,eAAe,EAChB,MAAM,cAAc,CAAA;AAErB,YAAY,EACV,aAAa,EACb,UAAU,EACV,WAAW,EACX,cAAc,EACd,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,cAAc,CAAA;AAErB,OAAO,EACL,aAAa,EACb,UAAU,EACV,aAAa,EACb,eAAe,EAChB,MAAM,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,KAAK,EACL,MAAM,EACN,SAAS,EACT,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,eAAe,EAChB,MAAM,cAAc,CAAA;AAErB,YAAY,EACV,aAAa,EACb,UAAU,EACV,WAAW,EACX,cAAc,EACd,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,cAAc,CAAA;AAErB,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"class.d.ts","sourceRoot":"","sources":["../../../src/utils/class.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,kBAAmB,GAAG,EAAE,WAAyC,CAAA"}
1
+ {"version":3,"file":"class.d.ts","sourceRoot":"","sources":["../../../src/utils/class.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,EAAE,kBAAmB,GAAG,EAAE,WAAyC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sakura-ui/forms",
3
- "version": "0.1.13",
3
+ "version": "0.2.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "glassonion1",
@@ -25,9 +25,12 @@
25
25
  "files": [
26
26
  "dist"
27
27
  ],
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
28
31
  "scripts": {
29
32
  "lint": "run-s lint:*",
30
- "lint:eslint": "eslint . --ext .ts,.tsx --fix",
33
+ "lint:lint": "biome lint ./",
31
34
  "lint:prettier": "prettier --write --ignore-path .gitignore './src/*.ts'",
32
35
  "prebuild": "rimraf dist",
33
36
  "build": "run-p build:*",
@@ -41,17 +44,15 @@
41
44
  "tailwindcss": "^3.2.7"
42
45
  },
43
46
  "devDependencies": {
44
- "@testing-library/jest-dom": "^6.4.2",
45
- "@testing-library/react": "^14.0.0",
46
- "@types/react": "^18.2.14",
47
- "@types/react-dom": "^18.2.6",
48
- "autoprefixer": "^10.4.14",
49
- "eslint-plugin-jsx-a11y": "^6.7.1",
50
- "eslint-plugin-react": "^7.33.2",
51
- "jsdom": "^24.0.0",
52
- "postcss": "^8.4.25",
53
- "react": "^18.2.0",
54
- "react-dom": "^18.2.0",
55
- "tailwindcss": "^3.3.2"
47
+ "@testing-library/jest-dom": "^6.4.5",
48
+ "@testing-library/react": "^16.0.0",
49
+ "@types/react": "^18.3.3",
50
+ "@types/react-dom": "^18.3.0",
51
+ "autoprefixer": "^10.4.19",
52
+ "happy-dom": "^14.12.0",
53
+ "postcss": "^8.4.38",
54
+ "react": "^18.3.1",
55
+ "react-dom": "^18.3.1",
56
+ "tailwindcss": "^3.4.3"
56
57
  }
57
58
  }
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export interface SelectControlProps extends React.ComponentPropsWithRef<'select'> {
3
- labelText: string;
4
- helperText?: string;
5
- errorMessage?: string;
6
- isInvalid?: boolean;
7
- isRequired?: boolean;
8
- }
9
- export declare const SelectControl: React.ForwardRefExoticComponent<Omit<SelectControlProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
10
- //# sourceMappingURL=SelectControl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectControl.d.ts","sourceRoot":"","sources":["../../../../src/components/controlled/SelectControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,kBACf,SAAQ,KAAK,CAAC,qBAAqB,CAAC,QAAQ,CAAC;IAC7C,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,aAAa,2GA0BxB,CAAA"}
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export interface TextareaControlProps extends React.ComponentPropsWithRef<'textarea'> {
3
- labelText: string;
4
- helperText?: string;
5
- errorMessage?: string;
6
- isInvalid?: boolean;
7
- isRequired?: boolean;
8
- }
9
- export declare const TextareaControl: React.ForwardRefExoticComponent<Omit<TextareaControlProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
10
- //# sourceMappingURL=TextareaControl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextareaControl.d.ts","sourceRoot":"","sources":["../../../../src/components/controlled/TextareaControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,oBACf,SAAQ,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC;IAC/C,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,eAAe,+GA0B1B,CAAA"}