@twintag/twintag-form 0.4.2 → 0.6.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.
- package/.eslintrc.cjs +1 -1
- package/.turbo/turbo-build.log +11 -55
- package/CHANGELOG.md +28 -0
- package/README.md +9 -9
- package/dist/components/Category/__styles.d.ts +29 -0
- package/dist/{lib/components → components}/Category/index.d.ts +2 -3
- package/dist/components/Form/index.d.ts +12 -0
- package/dist/{lib/types/index.d.ts → components/Input/__props.d.ts} +0 -6
- package/dist/components/Input/__styles.d.ts +460 -0
- package/dist/{lib/components → components}/Input/checkbox.d.ts +2 -3
- package/dist/{lib/components → components}/Input/file.d.ts +2 -3
- package/dist/{lib/components → components}/Input/index.d.ts +0 -1
- package/dist/{lib/components → components}/Input/simple.d.ts +2 -3
- package/dist/{lib/components → components}/Input/submit.d.ts +2 -3
- package/dist/{lib/components → components}/Input/textarea.d.ts +2 -3
- package/dist/{lib/components → components}/Input/toggle.d.ts +2 -3
- package/dist/{lib/components → components}/Label/index.d.ts +0 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/index.d.ts +14 -0
- package/dist/react.d.ts +1 -0
- package/dist/styles.d.ts +487 -0
- package/dist/twintag-form.react.js +8726 -0
- package/dist/twintag-form.webcomponent.js +4503 -0
- package/dist/webcomponent.d.ts +1 -0
- package/lib/__stories__/Form.stories.tsx +104 -12
- package/lib/components/Category/__styles.ts +12 -0
- package/lib/components/Category/index.tsx +5 -8
- package/lib/components/Form/index.tsx +33 -34
- package/lib/{types/index.ts → components/Input/__props.ts} +0 -6
- package/lib/components/Input/__styles.ts +132 -0
- package/lib/components/Input/checkbox.tsx +9 -12
- package/lib/components/Input/file.tsx +10 -13
- package/lib/components/Input/simple.tsx +9 -11
- package/lib/components/Input/submit.tsx +3 -9
- package/lib/components/Input/textarea.tsx +9 -11
- package/lib/components/Input/toggle.tsx +11 -12
- package/lib/components/Label/index.tsx +3 -2
- package/lib/components/index.tsx +4 -6
- package/lib/index.tsx +39 -161
- package/lib/styles.ts +19 -18
- package/lib/webcomponent.ts +3 -3
- package/package.json +14 -17
- package/tsconfig.json +12 -3
- package/twind.config.ts +7 -7
- package/vite.config.ts +47 -0
- package/dist/index.es.js +0 -27362
- package/dist/index.umd.js +0 -196
- package/dist/lib/__stories__/Form.stories.d.ts +0 -7
- package/dist/lib/__stories__/Form.stories.d.ts.map +0 -1
- package/dist/lib/components/Category/index.d.ts.map +0 -1
- package/dist/lib/components/Form/index.d.ts +0 -10
- package/dist/lib/components/Form/index.d.ts.map +0 -1
- package/dist/lib/components/Form/register.d.ts +0 -12
- package/dist/lib/components/Form/register.d.ts.map +0 -1
- package/dist/lib/components/Input/checkbox.d.ts.map +0 -1
- package/dist/lib/components/Input/file.d.ts.map +0 -1
- package/dist/lib/components/Input/index.d.ts.map +0 -1
- package/dist/lib/components/Input/simple.d.ts.map +0 -1
- package/dist/lib/components/Input/submit.d.ts.map +0 -1
- package/dist/lib/components/Input/textarea.d.ts.map +0 -1
- package/dist/lib/components/Input/toggle.d.ts.map +0 -1
- package/dist/lib/components/Label/index.d.ts.map +0 -1
- package/dist/lib/components/index.d.ts +0 -6
- package/dist/lib/components/index.d.ts.map +0 -1
- package/dist/lib/index.d.ts +0 -20
- package/dist/lib/index.d.ts.map +0 -1
- package/dist/lib/styles.d.ts +0 -131
- package/dist/lib/styles.d.ts.map +0 -1
- package/dist/lib/types/index.d.ts.map +0 -1
- package/dist/lib/webcomponent.d.ts +0 -2
- package/dist/lib/webcomponent.d.ts.map +0 -1
- package/dist/twind.config.d.ts +0 -5
- package/dist/twind.config.d.ts.map +0 -1
- package/dist/webcomponent.es.js +0 -31726
- package/dist/webcomponent.umd.js +0 -196
- package/lib/components/Form/register.tsx +0 -69
- package/scripts/build.js +0 -60
package/.eslintrc.cjs
CHANGED
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,60 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
> @twintag/twintag-form@0.
|
|
3
|
-
> tsc &&
|
|
2
|
+
> @twintag/twintag-form@0.6.0 build /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form
|
|
3
|
+
> tsc && vite build
|
|
4
4
|
|
|
5
|
-
[36mvite v4.
|
|
6
|
-
[36mvite v4.3.9 [32mbuilding for production...[36m[39m
|
|
5
|
+
[36mvite v4.4.9 [32mbuilding for production...[36m[39m
|
|
7
6
|
transforming...
|
|
8
|
-
|
|
9
|
-
[32m✓[39m 682 modules transformed.
|
|
10
|
-
[1m[33m[plugin:typescript][39m[22m [33m@rollup/plugin-typescript: Rollup 'sourcemap' option must be set to generate source maps.[39m
|
|
11
|
-
[32m✓[39m 663 modules transformed.
|
|
12
|
-
[1m[33m[plugin:typescript][39m[22m [33m@rollup/plugin-typescript: Rollup 'sourcemap' option must be set to generate source maps.[39m
|
|
13
|
-
rendering chunks...
|
|
14
|
-
computing gzip size...
|
|
15
|
-
[2mdist/[22m[32mlib/webcomponent.d.ts [39m[1m[2m 0.05 kB[22m[1m[22m
|
|
16
|
-
[2mdist/[22m[32mlib/components/index.d.ts [39m[1m[2m 0.20 kB[22m[1m[22m
|
|
17
|
-
[2mdist/[22m[32mlib/components/Input/index.d.ts [39m[1m[2m 0.20 kB[22m[1m[22m
|
|
18
|
-
[2mdist/[22m[32mlib/components/Label/index.d.ts [39m[1m[2m 0.26 kB[22m[1m[22m
|
|
19
|
-
[2mdist/[22m[32mlib/components/Form/index.d.ts [39m[1m[2m 0.26 kB[22m[1m[22m
|
|
20
|
-
[2mdist/[22m[32mlib/__stories__/Form.stories.d.ts [39m[1m[2m 0.28 kB[22m[1m[22m
|
|
21
|
-
[2mdist/[22m[32mtwind.config.d.ts [39m[1m[2m 0.29 kB[22m[1m[22m
|
|
22
|
-
[2mdist/[22m[32mlib/components/Input/file.d.ts [39m[1m[2m 0.35 kB[22m[1m[22m
|
|
23
|
-
[2mdist/[22m[32mlib/components/Input/simple.d.ts [39m[1m[2m 0.36 kB[22m[1m[22m
|
|
24
|
-
[2mdist/[22m[32mlib/components/Input/submit.d.ts [39m[1m[2m 0.36 kB[22m[1m[22m
|
|
25
|
-
[2mdist/[22m[32mlib/components/Input/toggle.d.ts [39m[1m[2m 0.36 kB[22m[1m[22m
|
|
26
|
-
[2mdist/[22m[32mlib/components/Input/textarea.d.ts [39m[1m[2m 0.37 kB[22m[1m[22m
|
|
27
|
-
[2mdist/[22m[32mlib/components/Input/checkbox.d.ts [39m[1m[2m 0.37 kB[22m[1m[22m
|
|
28
|
-
[2mdist/[22m[32mlib/components/Form/register.d.ts [39m[1m[2m 0.38 kB[22m[1m[22m
|
|
29
|
-
[2mdist/[22m[32mlib/types/index.d.ts [39m[1m[2m 0.40 kB[22m[1m[22m
|
|
30
|
-
[2mdist/[22m[32mlib/index.d.ts [39m[1m[2m 0.42 kB[22m[1m[22m
|
|
31
|
-
[2mdist/[22m[32mlib/components/Category/index.d.ts [39m[1m[2m 0.44 kB[22m[1m[22m
|
|
32
|
-
[2mdist/[22m[32mlib/styles.d.ts [39m[1m[2m 3.81 kB[22m[1m[22m
|
|
33
|
-
[2mdist/[22m[36mwebcomponent.es.js [39m[1m[33m1,010.34 kB[39m[22m[2m │ gzip: 240.17 kB[22m
|
|
34
|
-
[1m[33m[plugin:typescript][39m[22m [33m@rollup/plugin-typescript: Rollup 'sourcemap' option must be set to generate source maps.[39m
|
|
7
|
+
[32m✓[39m 371 modules transformed.
|
|
35
8
|
rendering chunks...
|
|
9
|
+
[32m
|
|
10
|
+
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
36
11
|
computing gzip size...
|
|
37
|
-
[2mdist/[22m[
|
|
38
|
-
[1m[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[2mdist/[22m[32mlib/components/Label/index.d.ts [39m[1m[2m 0.26 kB[22m[1m[22m
|
|
43
|
-
[2mdist/[22m[32mlib/components/Form/index.d.ts [39m[1m[2m 0.26 kB[22m[1m[22m
|
|
44
|
-
[2mdist/[22m[32mlib/__stories__/Form.stories.d.ts [39m[1m[2m 0.28 kB[22m[1m[22m
|
|
45
|
-
[2mdist/[22m[32mtwind.config.d.ts [39m[1m[2m 0.29 kB[22m[1m[22m
|
|
46
|
-
[2mdist/[22m[32mlib/components/Input/file.d.ts [39m[1m[2m 0.35 kB[22m[1m[22m
|
|
47
|
-
[2mdist/[22m[32mlib/components/Input/simple.d.ts [39m[1m[2m 0.36 kB[22m[1m[22m
|
|
48
|
-
[2mdist/[22m[32mlib/components/Input/submit.d.ts [39m[1m[2m 0.36 kB[22m[1m[22m
|
|
49
|
-
[2mdist/[22m[32mlib/components/Input/toggle.d.ts [39m[1m[2m 0.36 kB[22m[1m[22m
|
|
50
|
-
[2mdist/[22m[32mlib/components/Input/textarea.d.ts [39m[1m[2m 0.37 kB[22m[1m[22m
|
|
51
|
-
[2mdist/[22m[32mlib/components/Input/checkbox.d.ts [39m[1m[2m 0.37 kB[22m[1m[22m
|
|
52
|
-
[2mdist/[22m[32mlib/components/Form/register.d.ts [39m[1m[2m 0.38 kB[22m[1m[22m
|
|
53
|
-
[2mdist/[22m[32mlib/types/index.d.ts [39m[1m[2m 0.40 kB[22m[1m[22m
|
|
54
|
-
[2mdist/[22m[32mlib/index.d.ts [39m[1m[2m 0.42 kB[22m[1m[22m
|
|
55
|
-
[2mdist/[22m[32mlib/components/Category/index.d.ts [39m[1m[2m 0.44 kB[22m[1m[22m
|
|
56
|
-
[2mdist/[22m[32mlib/styles.d.ts [39m[1m[2m 3.81 kB[22m[1m[22m
|
|
57
|
-
[2mdist/[22m[36mwebcomponent.umd.js [39m[1m[33m623.01 kB[39m[22m[2m │ gzip: 194.69 kB[22m
|
|
58
|
-
[32m✓ built in 17.10s[39m
|
|
59
|
-
[2mdist/[22m[36mindex.umd.js [39m[1m[33m556.84 kB[39m[22m[2m │ gzip: 172.38 kB[22m
|
|
60
|
-
[32m✓ built in 17.26s[39m
|
|
12
|
+
[2mdist/[22m[36mtwintag-form.webcomponent.js [39m[1m[2m117.37 kB[22m[1m[22m[2m │ gzip: 33.23 kB[22m
|
|
13
|
+
[2mdist/[22m[36mtwintag-form.react.js [39m[1m[2m252.53 kB[22m[1m[22m[2m │ gzip: 57.84 kB[22m
|
|
14
|
+
[32m[36m[vite:dts][32m Declaration files built in 4472ms.
|
|
15
|
+
[39m
|
|
16
|
+
[32m✓ built in 6.78s[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @twintag/twintag-form
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 04036a0: fix: styles update and code clean-up
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [04036a0]
|
|
12
|
+
- @twintag/twintag-json-renderer@0.2.0
|
|
13
|
+
|
|
14
|
+
## 0.5.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- b7c2725: Update
|
|
19
|
+
|
|
20
|
+
- feat: editor.
|
|
21
|
+
- fix: refinements to integrate components to editor.
|
|
22
|
+
- fix: update `twintag-json-renderer` to accept editor output format.
|
|
23
|
+
- feat: ar-demo.
|
|
24
|
+
- fix: (twintag-form) use `twintag-json-renderer`.
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [b7c2725]
|
|
29
|
+
- @twintag/twintag-json-renderer@0.1.0
|
|
30
|
+
|
|
3
31
|
## 0.4.2
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -210,12 +210,12 @@ The `submit` input is a submit input.
|
|
|
210
210
|
|
|
211
211
|
The form component exposes the following CSS variables:
|
|
212
212
|
|
|
213
|
-
| Variable
|
|
214
|
-
|
|
|
215
|
-
| `--clr-primary`
|
|
216
|
-
| `--clr-accent`
|
|
217
|
-
| `--clr-label`
|
|
218
|
-
| `--clr-input`
|
|
219
|
-
| `--clr-placeholder`
|
|
220
|
-
| `--clr-category-label` | Color of the category labels.
|
|
221
|
-
| `--ff-text`
|
|
213
|
+
| Variable | Description |
|
|
214
|
+
| ---------------------- | ----------------------------- |
|
|
215
|
+
| `--clr-primary` | Primary color of the form. |
|
|
216
|
+
| `--clr-accent` | Accent color of the form. |
|
|
217
|
+
| `--clr-label` | Color of the labels. |
|
|
218
|
+
| `--clr-input` | Color of the inputs. |
|
|
219
|
+
| `--clr-placeholder` | Color of the placeholders. |
|
|
220
|
+
| `--clr-category-label` | Color of the category labels. |
|
|
221
|
+
| `--ff-text` | Font family of the text. |
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TVConfig } from 'tailwind-variants/dist/config.js';
|
|
2
|
+
import { TVReturnType } from 'tailwind-variants';
|
|
3
|
+
export declare const categoryStyle: TVReturnType<{
|
|
4
|
+
variant: {};
|
|
5
|
+
}, {
|
|
6
|
+
container: string;
|
|
7
|
+
span: string;
|
|
8
|
+
items: string;
|
|
9
|
+
}, undefined, TVConfig<{
|
|
10
|
+
variant: {};
|
|
11
|
+
}, {
|
|
12
|
+
variant: {};
|
|
13
|
+
}>, {
|
|
14
|
+
variant: {};
|
|
15
|
+
}, {
|
|
16
|
+
container: string;
|
|
17
|
+
span: string;
|
|
18
|
+
items: string;
|
|
19
|
+
}, TVReturnType<{
|
|
20
|
+
variant: {};
|
|
21
|
+
}, {
|
|
22
|
+
container: string;
|
|
23
|
+
span: string;
|
|
24
|
+
items: string;
|
|
25
|
+
}, undefined, TVConfig<{
|
|
26
|
+
variant: {};
|
|
27
|
+
}, {
|
|
28
|
+
variant: {};
|
|
29
|
+
}>, unknown, unknown, undefined>>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import type { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import type { WithChildren } from 'twintag-types/dom';
|
|
4
|
-
import type { CommonProps } from '
|
|
5
|
-
import { categoryStyle } from '
|
|
4
|
+
import type { CommonProps } from '../Input/__props';
|
|
5
|
+
import { categoryStyle } from './__styles';
|
|
6
6
|
type Props = CommonProps<VariantProps<typeof categoryStyle>['variant']> & WithChildren;
|
|
7
7
|
declare const Category: FC<Props>;
|
|
8
8
|
export default Category;
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
declare const Form: ForwardRefExoticComponent<{
|
|
4
|
+
options?: {
|
|
5
|
+
resetOnSubmit?: boolean | undefined;
|
|
6
|
+
} | undefined;
|
|
7
|
+
} & {
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
} & RefAttributes<{
|
|
10
|
+
validate?: (() => void) | undefined;
|
|
11
|
+
}>>;
|
|
12
|
+
export default Form;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import type { UseFormRegister, Control } from 'react-hook-form';
|
|
2
1
|
export type CommonProps<TVariant> = {
|
|
3
2
|
label: string;
|
|
4
3
|
bind: string;
|
|
5
|
-
useForm?: {
|
|
6
|
-
register: UseFormRegister<any>;
|
|
7
|
-
control: Control;
|
|
8
|
-
};
|
|
9
4
|
checked?: boolean;
|
|
10
5
|
options?: {
|
|
11
6
|
variant?: TVariant;
|
|
@@ -13,4 +8,3 @@ export type CommonProps<TVariant> = {
|
|
|
13
8
|
optionalField?: boolean;
|
|
14
9
|
};
|
|
15
10
|
};
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
import { TVConfig } from 'tailwind-variants/dist/config.js';
|
|
2
|
+
import { TVReturnType, ClassValue } from 'tailwind-variants';
|
|
3
|
+
export declare const labelStyle: TVReturnType<{
|
|
4
|
+
[key: string]: {
|
|
5
|
+
[key: string]: ClassValue | {
|
|
6
|
+
base?: ClassValue;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
} | {
|
|
10
|
+
[x: string]: {
|
|
11
|
+
[x: string]: ClassValue | {
|
|
12
|
+
base?: ClassValue;
|
|
13
|
+
};
|
|
14
|
+
} | undefined;
|
|
15
|
+
} | {}, undefined, "text-label", TVConfig<unknown, {
|
|
16
|
+
[key: string]: {
|
|
17
|
+
[key: string]: ClassValue | {
|
|
18
|
+
base?: ClassValue;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
} | {}>, {
|
|
22
|
+
[key: string]: {
|
|
23
|
+
[key: string]: ClassValue | {
|
|
24
|
+
base?: ClassValue;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
} | {}, undefined, TVReturnType<unknown, undefined, "text-label", TVConfig<unknown, {
|
|
28
|
+
[key: string]: {
|
|
29
|
+
[key: string]: ClassValue | {
|
|
30
|
+
base?: ClassValue;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
34
|
+
export declare const containerStyle: TVReturnType<{
|
|
35
|
+
[key: string]: {
|
|
36
|
+
[key: string]: ClassValue | {
|
|
37
|
+
base?: ClassValue;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
} | {
|
|
41
|
+
[x: string]: {
|
|
42
|
+
[x: string]: ClassValue | {
|
|
43
|
+
base?: ClassValue;
|
|
44
|
+
};
|
|
45
|
+
} | undefined;
|
|
46
|
+
} | {}, undefined, "", TVConfig<unknown, {
|
|
47
|
+
[key: string]: {
|
|
48
|
+
[key: string]: ClassValue | {
|
|
49
|
+
base?: ClassValue;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
} | {}>, {
|
|
53
|
+
[key: string]: {
|
|
54
|
+
[key: string]: ClassValue | {
|
|
55
|
+
base?: ClassValue;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
} | {}, undefined, TVReturnType<unknown, undefined, "", TVConfig<unknown, {
|
|
59
|
+
[key: string]: {
|
|
60
|
+
[key: string]: ClassValue | {
|
|
61
|
+
base?: ClassValue;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
65
|
+
export declare const checkboxStyle: TVReturnType<{
|
|
66
|
+
variant: {
|
|
67
|
+
alpha: {
|
|
68
|
+
checkbox: string;
|
|
69
|
+
};
|
|
70
|
+
beta: {
|
|
71
|
+
checkbox: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
}, {
|
|
75
|
+
container: string;
|
|
76
|
+
checkbox: string;
|
|
77
|
+
}, undefined, TVConfig<{
|
|
78
|
+
variant: {
|
|
79
|
+
alpha: {
|
|
80
|
+
checkbox: string;
|
|
81
|
+
};
|
|
82
|
+
beta: {
|
|
83
|
+
checkbox: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
}, {
|
|
87
|
+
variant: {
|
|
88
|
+
alpha: {
|
|
89
|
+
checkbox: string;
|
|
90
|
+
};
|
|
91
|
+
beta: {
|
|
92
|
+
checkbox: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
}>, {
|
|
96
|
+
variant: {
|
|
97
|
+
alpha: {
|
|
98
|
+
checkbox: string;
|
|
99
|
+
};
|
|
100
|
+
beta: {
|
|
101
|
+
checkbox: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
}, {
|
|
105
|
+
container: string;
|
|
106
|
+
checkbox: string;
|
|
107
|
+
}, TVReturnType<{
|
|
108
|
+
variant: {
|
|
109
|
+
alpha: {
|
|
110
|
+
checkbox: string;
|
|
111
|
+
};
|
|
112
|
+
beta: {
|
|
113
|
+
checkbox: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}, {
|
|
117
|
+
container: string;
|
|
118
|
+
checkbox: string;
|
|
119
|
+
}, undefined, TVConfig<{
|
|
120
|
+
variant: {
|
|
121
|
+
alpha: {
|
|
122
|
+
checkbox: string;
|
|
123
|
+
};
|
|
124
|
+
beta: {
|
|
125
|
+
checkbox: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
}, {
|
|
129
|
+
variant: {
|
|
130
|
+
alpha: {
|
|
131
|
+
checkbox: string;
|
|
132
|
+
};
|
|
133
|
+
beta: {
|
|
134
|
+
checkbox: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
}>, unknown, unknown, undefined>>;
|
|
138
|
+
export declare const fileStyle: TVReturnType<{
|
|
139
|
+
variant: {
|
|
140
|
+
alpha: {
|
|
141
|
+
container: string;
|
|
142
|
+
input: string;
|
|
143
|
+
};
|
|
144
|
+
beta: {
|
|
145
|
+
container: string;
|
|
146
|
+
input: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
}, {
|
|
150
|
+
container: string;
|
|
151
|
+
span: string;
|
|
152
|
+
input: string;
|
|
153
|
+
}, undefined, TVConfig<{
|
|
154
|
+
variant: {
|
|
155
|
+
alpha: {
|
|
156
|
+
container: string;
|
|
157
|
+
input: string;
|
|
158
|
+
};
|
|
159
|
+
beta: {
|
|
160
|
+
container: string;
|
|
161
|
+
input: string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
}, {
|
|
165
|
+
variant: {
|
|
166
|
+
alpha: {
|
|
167
|
+
container: string;
|
|
168
|
+
input: string;
|
|
169
|
+
};
|
|
170
|
+
beta: {
|
|
171
|
+
container: string;
|
|
172
|
+
input: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
}>, {
|
|
176
|
+
variant: {
|
|
177
|
+
alpha: {
|
|
178
|
+
container: string;
|
|
179
|
+
input: string;
|
|
180
|
+
};
|
|
181
|
+
beta: {
|
|
182
|
+
container: string;
|
|
183
|
+
input: string;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
}, {
|
|
187
|
+
container: string;
|
|
188
|
+
span: string;
|
|
189
|
+
input: string;
|
|
190
|
+
}, TVReturnType<{
|
|
191
|
+
variant: {
|
|
192
|
+
alpha: {
|
|
193
|
+
container: string;
|
|
194
|
+
input: string;
|
|
195
|
+
};
|
|
196
|
+
beta: {
|
|
197
|
+
container: string;
|
|
198
|
+
input: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
}, {
|
|
202
|
+
container: string;
|
|
203
|
+
span: string;
|
|
204
|
+
input: string;
|
|
205
|
+
}, undefined, TVConfig<{
|
|
206
|
+
variant: {
|
|
207
|
+
alpha: {
|
|
208
|
+
container: string;
|
|
209
|
+
input: string;
|
|
210
|
+
};
|
|
211
|
+
beta: {
|
|
212
|
+
container: string;
|
|
213
|
+
input: string;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
}, {
|
|
217
|
+
variant: {
|
|
218
|
+
alpha: {
|
|
219
|
+
container: string;
|
|
220
|
+
input: string;
|
|
221
|
+
};
|
|
222
|
+
beta: {
|
|
223
|
+
container: string;
|
|
224
|
+
input: string;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
}>, unknown, unknown, undefined>>;
|
|
228
|
+
export declare const simpleStyle: TVReturnType<{
|
|
229
|
+
variant: {
|
|
230
|
+
alpha: {
|
|
231
|
+
container: string;
|
|
232
|
+
input: string;
|
|
233
|
+
};
|
|
234
|
+
beta: {
|
|
235
|
+
container: string;
|
|
236
|
+
input: string;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
}, {
|
|
240
|
+
container: string;
|
|
241
|
+
span: string;
|
|
242
|
+
input: string;
|
|
243
|
+
}, undefined, TVConfig<{
|
|
244
|
+
variant: {
|
|
245
|
+
alpha: {
|
|
246
|
+
container: string;
|
|
247
|
+
input: string;
|
|
248
|
+
};
|
|
249
|
+
beta: {
|
|
250
|
+
container: string;
|
|
251
|
+
input: string;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
}, {
|
|
255
|
+
variant: {
|
|
256
|
+
alpha: {
|
|
257
|
+
container: string;
|
|
258
|
+
input: string;
|
|
259
|
+
};
|
|
260
|
+
beta: {
|
|
261
|
+
container: string;
|
|
262
|
+
input: string;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
}>, {
|
|
266
|
+
variant: {
|
|
267
|
+
alpha: {
|
|
268
|
+
container: string;
|
|
269
|
+
input: string;
|
|
270
|
+
};
|
|
271
|
+
beta: {
|
|
272
|
+
container: string;
|
|
273
|
+
input: string;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
}, {
|
|
277
|
+
container: string;
|
|
278
|
+
span: string;
|
|
279
|
+
input: string;
|
|
280
|
+
}, TVReturnType<{
|
|
281
|
+
variant: {
|
|
282
|
+
alpha: {
|
|
283
|
+
container: string;
|
|
284
|
+
input: string;
|
|
285
|
+
};
|
|
286
|
+
beta: {
|
|
287
|
+
container: string;
|
|
288
|
+
input: string;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
}, {
|
|
292
|
+
container: string;
|
|
293
|
+
span: string;
|
|
294
|
+
input: string;
|
|
295
|
+
}, undefined, TVConfig<{
|
|
296
|
+
variant: {
|
|
297
|
+
alpha: {
|
|
298
|
+
container: string;
|
|
299
|
+
input: string;
|
|
300
|
+
};
|
|
301
|
+
beta: {
|
|
302
|
+
container: string;
|
|
303
|
+
input: string;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
}, {
|
|
307
|
+
variant: {
|
|
308
|
+
alpha: {
|
|
309
|
+
container: string;
|
|
310
|
+
input: string;
|
|
311
|
+
};
|
|
312
|
+
beta: {
|
|
313
|
+
container: string;
|
|
314
|
+
input: string;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
}>, unknown, unknown, undefined>>;
|
|
318
|
+
export declare const toggleStyle: TVReturnType<{
|
|
319
|
+
variant: {
|
|
320
|
+
alpha: {
|
|
321
|
+
container: string;
|
|
322
|
+
input: string;
|
|
323
|
+
thumb: string;
|
|
324
|
+
};
|
|
325
|
+
beta: {
|
|
326
|
+
container: string;
|
|
327
|
+
input: string;
|
|
328
|
+
thumb: string;
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
}, {
|
|
332
|
+
container: string;
|
|
333
|
+
span: string;
|
|
334
|
+
input: string;
|
|
335
|
+
thumb: string;
|
|
336
|
+
}, undefined, TVConfig<{
|
|
337
|
+
variant: {
|
|
338
|
+
alpha: {
|
|
339
|
+
container: string;
|
|
340
|
+
input: string;
|
|
341
|
+
thumb: string;
|
|
342
|
+
};
|
|
343
|
+
beta: {
|
|
344
|
+
container: string;
|
|
345
|
+
input: string;
|
|
346
|
+
thumb: string;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
}, {
|
|
350
|
+
variant: {
|
|
351
|
+
alpha: {
|
|
352
|
+
container: string;
|
|
353
|
+
input: string;
|
|
354
|
+
thumb: string;
|
|
355
|
+
};
|
|
356
|
+
beta: {
|
|
357
|
+
container: string;
|
|
358
|
+
input: string;
|
|
359
|
+
thumb: string;
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
}>, {
|
|
363
|
+
variant: {
|
|
364
|
+
alpha: {
|
|
365
|
+
container: string;
|
|
366
|
+
input: string;
|
|
367
|
+
thumb: string;
|
|
368
|
+
};
|
|
369
|
+
beta: {
|
|
370
|
+
container: string;
|
|
371
|
+
input: string;
|
|
372
|
+
thumb: string;
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
}, {
|
|
376
|
+
container: string;
|
|
377
|
+
span: string;
|
|
378
|
+
input: string;
|
|
379
|
+
thumb: string;
|
|
380
|
+
}, TVReturnType<{
|
|
381
|
+
variant: {
|
|
382
|
+
alpha: {
|
|
383
|
+
container: string;
|
|
384
|
+
input: string;
|
|
385
|
+
thumb: string;
|
|
386
|
+
};
|
|
387
|
+
beta: {
|
|
388
|
+
container: string;
|
|
389
|
+
input: string;
|
|
390
|
+
thumb: string;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
}, {
|
|
394
|
+
container: string;
|
|
395
|
+
span: string;
|
|
396
|
+
input: string;
|
|
397
|
+
thumb: string;
|
|
398
|
+
}, undefined, TVConfig<{
|
|
399
|
+
variant: {
|
|
400
|
+
alpha: {
|
|
401
|
+
container: string;
|
|
402
|
+
input: string;
|
|
403
|
+
thumb: string;
|
|
404
|
+
};
|
|
405
|
+
beta: {
|
|
406
|
+
container: string;
|
|
407
|
+
input: string;
|
|
408
|
+
thumb: string;
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
}, {
|
|
412
|
+
variant: {
|
|
413
|
+
alpha: {
|
|
414
|
+
container: string;
|
|
415
|
+
input: string;
|
|
416
|
+
thumb: string;
|
|
417
|
+
};
|
|
418
|
+
beta: {
|
|
419
|
+
container: string;
|
|
420
|
+
input: string;
|
|
421
|
+
thumb: string;
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
}>, unknown, unknown, undefined>>;
|
|
425
|
+
export declare const submitStyle: TVReturnType<{
|
|
426
|
+
variant: {
|
|
427
|
+
alpha: string;
|
|
428
|
+
beta: string;
|
|
429
|
+
};
|
|
430
|
+
}, undefined, "mt-2 w-max max-w-full", TVConfig<{
|
|
431
|
+
variant: {
|
|
432
|
+
alpha: string;
|
|
433
|
+
beta: string;
|
|
434
|
+
};
|
|
435
|
+
}, {
|
|
436
|
+
variant: {
|
|
437
|
+
alpha: string;
|
|
438
|
+
beta: string;
|
|
439
|
+
};
|
|
440
|
+
}>, {
|
|
441
|
+
variant: {
|
|
442
|
+
alpha: string;
|
|
443
|
+
beta: string;
|
|
444
|
+
};
|
|
445
|
+
}, undefined, TVReturnType<{
|
|
446
|
+
variant: {
|
|
447
|
+
alpha: string;
|
|
448
|
+
beta: string;
|
|
449
|
+
};
|
|
450
|
+
}, undefined, "mt-2 w-max max-w-full", TVConfig<{
|
|
451
|
+
variant: {
|
|
452
|
+
alpha: string;
|
|
453
|
+
beta: string;
|
|
454
|
+
};
|
|
455
|
+
}, {
|
|
456
|
+
variant: {
|
|
457
|
+
alpha: string;
|
|
458
|
+
beta: string;
|
|
459
|
+
};
|
|
460
|
+
}>, unknown, unknown, undefined>>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import type { VariantProps } from 'tailwind-variants';
|
|
3
|
-
import type
|
|
4
|
-
import { checkboxStyle } from '
|
|
3
|
+
import { type CommonProps } from './__props';
|
|
4
|
+
import { checkboxStyle } from './__styles';
|
|
5
5
|
type Props = CommonProps<VariantProps<typeof checkboxStyle>['variant']>;
|
|
6
6
|
declare const Checkbox: FC<Props>;
|
|
7
7
|
export default Checkbox;
|
|
8
|
-
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import type { VariantProps } from 'tailwind-variants';
|
|
3
|
-
import type
|
|
4
|
-
import { fileStyle } from '
|
|
3
|
+
import { type CommonProps } from './__props';
|
|
4
|
+
import { fileStyle } from './__styles';
|
|
5
5
|
type Props = CommonProps<VariantProps<typeof fileStyle>['variant']>;
|
|
6
6
|
declare const File: FC<Props>;
|
|
7
7
|
export default File;
|
|
8
|
-
//# sourceMappingURL=file.d.ts.map
|