@twintag/twintag-form 0.3.1 → 0.4.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/.turbo/turbo-build.log +42 -40
- package/CHANGELOG.md +20 -0
- package/dist/index.es.js +4711 -4688
- package/dist/index.umd.js +46 -46
- package/dist/lib/__stories__/Form.stories.d.ts.map +1 -1
- package/dist/lib/components/Category/index.d.ts +9 -0
- package/dist/lib/components/Category/index.d.ts.map +1 -0
- package/dist/lib/components/Form/index.d.ts +2 -2
- package/dist/lib/components/Form/index.d.ts.map +1 -1
- package/dist/lib/components/Form/register.d.ts +4 -5
- package/dist/lib/components/Form/register.d.ts.map +1 -1
- package/dist/lib/components/Input/checkbox.d.ts +2 -2
- package/dist/lib/components/Input/checkbox.d.ts.map +1 -1
- package/dist/lib/components/Input/file.d.ts +2 -2
- package/dist/lib/components/Input/file.d.ts.map +1 -1
- package/dist/lib/components/Input/index.d.ts +2 -3
- package/dist/lib/components/Input/index.d.ts.map +1 -1
- package/dist/lib/components/Input/simple.d.ts +2 -2
- package/dist/lib/components/Input/simple.d.ts.map +1 -1
- package/dist/lib/components/Input/submit.d.ts +2 -2
- package/dist/lib/components/Input/submit.d.ts.map +1 -1
- package/dist/lib/components/Input/textarea.d.ts +2 -2
- package/dist/lib/components/Input/textarea.d.ts.map +1 -1
- package/dist/lib/components/Input/toggle.d.ts +2 -2
- package/dist/lib/components/Input/toggle.d.ts.map +1 -1
- package/dist/lib/components/Label/index.d.ts +2 -2
- package/dist/lib/components/Label/index.d.ts.map +1 -1
- package/dist/lib/components/index.d.ts +2 -1
- package/dist/lib/components/index.d.ts.map +1 -1
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/styles.d.ts +22 -12
- package/dist/lib/styles.d.ts.map +1 -1
- package/dist/lib/types/index.d.ts +2 -3
- package/dist/lib/types/index.d.ts.map +1 -1
- package/dist/twind.config.d.ts.map +1 -1
- package/dist/webcomponent.es.js +5134 -5119
- package/dist/webcomponent.umd.js +48 -48
- package/lib/__stories__/Form.stories.tsx +16 -5
- package/lib/components/Category/index.tsx +29 -0
- package/lib/components/Form/index.tsx +4 -3
- package/lib/components/Form/register.tsx +41 -42
- package/lib/components/Input/checkbox.tsx +6 -4
- package/lib/components/Input/file.tsx +7 -5
- package/lib/components/Input/index.tsx +4 -2
- package/lib/components/Input/simple.tsx +4 -3
- package/lib/components/Input/submit.tsx +3 -2
- package/lib/components/Input/textarea.tsx +4 -3
- package/lib/components/Input/toggle.tsx +7 -5
- package/lib/components/Label/index.tsx +2 -1
- package/lib/components/index.tsx +2 -1
- package/lib/index.tsx +28 -23
- package/lib/styles.ts +42 -20
- package/lib/types/index.ts +2 -3
- package/package.json +3 -2
- package/twind.config.ts +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.stories.d.ts","sourceRoot":"","sources":["../../../lib/__stories__/Form.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,UAAU,CAAC;AAGnC,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Form.stories.d.ts","sourceRoot":"","sources":["../../../lib/__stories__/Form.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,UAAU,CAAC;AAGnC,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAalC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAE1C,eAAO,MAAM,OAAO,EAAE,KAsBrB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import type { WithChildren } from 'twintag-types/dom';
|
|
4
|
+
import type { CommonProps } from '@twintag-form/types';
|
|
5
|
+
import { categoryStyle } from '@twintag-form/styles';
|
|
6
|
+
type Props = CommonProps<VariantProps<typeof categoryStyle>['variant']> & WithChildren;
|
|
7
|
+
declare const Category: FC<Props>;
|
|
8
|
+
export default Category;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/Category/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,KAAK,KAAK,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,GACrE,YAAY,CAAC;AAEf,QAAA,MAAM,QAAQ,EAAE,EAAE,CAAC,KAAK,CAavB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { WithChildren } from 'twintag-types/dom';
|
|
3
3
|
type Props = {
|
|
4
4
|
options?: {
|
|
5
5
|
resetOnSubmit?: boolean;
|
|
6
6
|
};
|
|
7
7
|
} & WithChildren;
|
|
8
|
-
declare const Form:
|
|
8
|
+
declare const Form: FC<Props>;
|
|
9
9
|
export default Form;
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/Form/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/Form/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOtD,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE;QACR,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;CACH,GAAG,YAAY,CAAC;AAEjB,QAAA,MAAM,IAAI,EAAE,EAAE,CAAC,KAAK,CAqEnB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { UseFormRegister, Control } from 'react-hook-form';
|
|
3
3
|
import type { WithChildren } from 'twintag-types/dom';
|
|
4
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
useForm: {
|
|
6
6
|
register: UseFormRegister<any>;
|
|
7
7
|
control: Control;
|
|
8
8
|
};
|
|
9
|
-
} &
|
|
10
|
-
|
|
11
|
-
}) => any;
|
|
9
|
+
} & WithChildren;
|
|
10
|
+
declare const RegisterInputs: FC<Props>;
|
|
12
11
|
export { RegisterInputs };
|
|
13
12
|
//# sourceMappingURL=register.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../lib/components/Form/register.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../lib/components/Form/register.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAgB,MAAM,OAAO,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMtD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE;QAAE,QAAQ,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;CAC/D,GAAG,YAAY,CAAC;AAEjB,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAsD7B,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import type { CommonProps } from '@twintag-form/types';
|
|
4
4
|
import { checkboxStyle } from '@twintag-form/styles';
|
|
5
5
|
type Props = CommonProps<VariantProps<typeof checkboxStyle>['variant']>;
|
|
6
|
-
declare const Checkbox:
|
|
6
|
+
declare const Checkbox: FC<Props>;
|
|
7
7
|
export default Checkbox;
|
|
8
8
|
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../lib/components/Input/checkbox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../lib/components/Input/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,KAAK,KAAK,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAExE,QAAA,MAAM,QAAQ,EAAE,EAAE,CAAC,KAAK,CAqCvB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import type { CommonProps } from '@twintag-form/types';
|
|
4
4
|
import { fileStyle } from '@twintag-form/styles';
|
|
5
5
|
type Props = CommonProps<VariantProps<typeof fileStyle>['variant']>;
|
|
6
|
-
declare const File:
|
|
6
|
+
declare const File: FC<Props>;
|
|
7
7
|
export default File;
|
|
8
8
|
//# sourceMappingURL=file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../lib/components/Input/file.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../lib/components/Input/file.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,KAAK,KAAK,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAEpE,QAAA,MAAM,IAAI,EAAE,EAAE,CAAC,KAAK,CAsEnB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Inputs: Map<any, any>;
|
|
1
|
+
import type { FC } from 'react';
|
|
3
2
|
type Props = {
|
|
4
3
|
subtype?: string;
|
|
5
4
|
label?: string;
|
|
6
5
|
bind?: string;
|
|
7
6
|
};
|
|
8
|
-
declare const Input:
|
|
7
|
+
declare const Input: FC<Props>;
|
|
9
8
|
export default Input;
|
|
10
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/Input/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/Input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAiBhC,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,QAAA,MAAM,KAAK,EAAE,EAAE,CAAC,KAAK,CAMpB,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import type { CommonProps } from '@twintag-form/types';
|
|
4
4
|
import { simpleStyle } from '@twintag-form/styles';
|
|
5
5
|
type Props = CommonProps<VariantProps<typeof simpleStyle>['variant']>;
|
|
6
|
-
declare const Simple:
|
|
6
|
+
declare const Simple: FC<Props>;
|
|
7
7
|
export default Simple;
|
|
8
8
|
//# sourceMappingURL=simple.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple.d.ts","sourceRoot":"","sources":["../../../../lib/components/Input/simple.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"simple.d.ts","sourceRoot":"","sources":["../../../../lib/components/Input/simple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,KAAK,KAAK,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAEtE,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,CA0BrB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import type { CommonProps } from '@twintag-form/types';
|
|
4
4
|
import { submitStyle } from '@twintag-form/styles';
|
|
5
5
|
type Props = CommonProps<VariantProps<typeof submitStyle>['variant']>;
|
|
6
|
-
declare const Submit:
|
|
6
|
+
declare const Submit: FC<Props>;
|
|
7
7
|
export default Submit;
|
|
8
8
|
//# sourceMappingURL=submit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit.d.ts","sourceRoot":"","sources":["../../../../lib/components/Input/submit.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"submit.d.ts","sourceRoot":"","sources":["../../../../lib/components/Input/submit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,KAAK,KAAK,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAEtE,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,CAarB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import type { CommonProps } from '@twintag-form/types';
|
|
4
4
|
import { simpleStyle } from '@twintag-form/styles';
|
|
5
5
|
type Props = CommonProps<VariantProps<typeof simpleStyle>['variant']>;
|
|
6
|
-
declare const Textarea:
|
|
6
|
+
declare const Textarea: FC<Props>;
|
|
7
7
|
export default Textarea;
|
|
8
8
|
//# sourceMappingURL=textarea.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../lib/components/Input/textarea.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../lib/components/Input/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,KAAK,KAAK,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAEtE,QAAA,MAAM,QAAQ,EAAE,EAAE,CAAC,KAAK,CAyBvB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import type { CommonProps } from '@twintag-form/types';
|
|
4
4
|
import { toggleStyle } from '@twintag-form/styles';
|
|
5
5
|
type Props = CommonProps<VariantProps<typeof toggleStyle>['variant']>;
|
|
6
|
-
declare const Toggle:
|
|
6
|
+
declare const Toggle: FC<Props>;
|
|
7
7
|
export default Toggle;
|
|
8
8
|
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../../lib/components/Input/toggle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../../lib/components/Input/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,KAAK,KAAK,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAEtE,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,CAwCrB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { WithChildren } from 'twintag-types/dom';
|
|
3
3
|
type Props = {
|
|
4
4
|
required?: boolean;
|
|
5
5
|
className?: string;
|
|
6
6
|
} & WithChildren;
|
|
7
|
-
declare const Label:
|
|
7
|
+
declare const Label: FC<Props>;
|
|
8
8
|
export default Label;
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/Label/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/components/Label/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,KAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,YAAY,CAAC;AAEjB,QAAA,MAAM,KAAK,EAAE,EAAE,CAAC,KAAK,CAUpB,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
type Config = {
|
|
3
3
|
key?: number;
|
|
4
4
|
type?: any;
|
|
@@ -15,6 +15,6 @@ type Props = {
|
|
|
15
15
|
resetOnSubmit?: boolean;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
declare const TwintagForm:
|
|
18
|
+
declare const TwintagForm: FC<Props>;
|
|
19
19
|
export default TwintagForm;
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAQ3C,KAAK,MAAM,GAAG;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B,CAAC;AA2IF,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;CACH,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,KAAK,CAY1B,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/dist/lib/styles.d.ts
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
export declare const labelStyle: import("tailwind-variants").TVReturnType<import("tailwind-variants").TVVariantsDefault<undefined, "
|
|
1
|
+
export declare const labelStyle: import("tailwind-variants").TVReturnType<import("tailwind-variants").TVVariantsDefault<undefined, "text-label"> | {}, unknown, undefined, undefined, "text-label", import("tailwind-variants/dist/config").TVConfig<import("tailwind-variants").TVVariantsDefault<undefined, "text-label"> | {}, unknown>>;
|
|
2
|
+
export declare const containerStyle: import("tailwind-variants").TVReturnType<import("tailwind-variants").TVVariantsDefault<undefined, "my-2"> | {}, unknown, undefined, undefined, "my-2", import("tailwind-variants/dist/config").TVConfig<import("tailwind-variants").TVVariantsDefault<undefined, "my-2"> | {}, unknown>>;
|
|
3
|
+
export declare const categoryStyle: import("tailwind-variants").TVReturnType<{
|
|
4
|
+
variant: {};
|
|
5
|
+
}, unknown, {
|
|
6
|
+
container: string;
|
|
7
|
+
span: string;
|
|
8
|
+
items: string;
|
|
9
|
+
}, undefined, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
10
|
+
variant: {};
|
|
11
|
+
}, unknown>>;
|
|
2
12
|
export declare const checkboxStyle: import("tailwind-variants").TVReturnType<{
|
|
3
13
|
variant: {
|
|
4
14
|
alpha: {
|
|
@@ -75,17 +85,6 @@ export declare const simpleStyle: import("tailwind-variants").TVReturnType<{
|
|
|
75
85
|
};
|
|
76
86
|
};
|
|
77
87
|
}, unknown>>;
|
|
78
|
-
export declare const submitStyle: import("tailwind-variants").TVReturnType<{
|
|
79
|
-
variant: {
|
|
80
|
-
alpha: string;
|
|
81
|
-
beta: string;
|
|
82
|
-
};
|
|
83
|
-
}, unknown, undefined, undefined, "w-max max-w-full", import("tailwind-variants/dist/config").TVConfig<{
|
|
84
|
-
variant: {
|
|
85
|
-
alpha: string;
|
|
86
|
-
beta: string;
|
|
87
|
-
};
|
|
88
|
-
}, unknown>>;
|
|
89
88
|
export declare const toggleStyle: import("tailwind-variants").TVReturnType<{
|
|
90
89
|
variant: {
|
|
91
90
|
alpha: {
|
|
@@ -118,4 +117,15 @@ export declare const toggleStyle: import("tailwind-variants").TVReturnType<{
|
|
|
118
117
|
};
|
|
119
118
|
};
|
|
120
119
|
}, unknown>>;
|
|
120
|
+
export declare const submitStyle: import("tailwind-variants").TVReturnType<{
|
|
121
|
+
variant: {
|
|
122
|
+
alpha: string;
|
|
123
|
+
beta: string;
|
|
124
|
+
};
|
|
125
|
+
}, unknown, undefined, undefined, "w-max max-w-full mt-2", import("tailwind-variants/dist/config").TVConfig<{
|
|
126
|
+
variant: {
|
|
127
|
+
alpha: string;
|
|
128
|
+
beta: string;
|
|
129
|
+
};
|
|
130
|
+
}, unknown>>;
|
|
121
131
|
//# sourceMappingURL=styles.d.ts.map
|
package/dist/lib/styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../lib/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../lib/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,4SAErB,CAAC;AAEH,eAAO,MAAM,cAAc,0RAEzB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;YASxB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;YAqBxB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;YA0BpB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;YAwBtB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA8BtB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;YAWtB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { UseFormRegister, Control } from 'react-hook-form';
|
|
2
|
-
import type { Label } from 'twintag-types/dom';
|
|
3
2
|
export type CommonProps<TVariant> = {
|
|
4
|
-
label:
|
|
5
|
-
bind
|
|
3
|
+
label: string;
|
|
4
|
+
bind: string;
|
|
6
5
|
useForm?: {
|
|
7
6
|
register: UseFormRegister<any>;
|
|
8
7
|
control: Control;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAEhE,MAAM,MAAM,WAAW,CAAC,QAAQ,IAAI;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE;QACR,QAAQ,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC;QAC/B,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IACF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,QAAQ,CAAC;QACnB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"twind.config.d.ts","sourceRoot":"","sources":["../twind.config.ts"],"names":[],"mappings":";;;AAMA,
|
|
1
|
+
{"version":3,"file":"twind.config.d.ts","sourceRoot":"","sources":["../twind.config.ts"],"names":[],"mappings":";;;AAMA,wBAsBG"}
|