@twintag/twintag-form 0.4.0 → 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 +12 -12
- package/CHANGELOG.md +6 -0
- package/dist/index.es.js +781 -781
- package/dist/index.umd.js +24 -24
- package/dist/lib/styles.d.ts +2 -2
- package/dist/lib/styles.d.ts.map +1 -1
- package/dist/twind.config.d.ts.map +1 -1
- package/dist/webcomponent.es.js +956 -954
- package/dist/webcomponent.umd.js +25 -25
- package/lib/components/Form/index.tsx +1 -1
- package/lib/components/Input/file.tsx +1 -1
- package/lib/styles.ts +3 -4
- package/package.json +2 -2
- package/twind.config.ts +3 -1
|
@@ -56,7 +56,7 @@ const File: FC<Props> = ({ useForm, label, bind, options }) => {
|
|
|
56
56
|
className={`${input()} ${
|
|
57
57
|
value && value.length > 0
|
|
58
58
|
? 'border-primary text-input'
|
|
59
|
-
: 'border-slate-700/10 text-
|
|
59
|
+
: 'border-slate-700/10 text-placeholder'
|
|
60
60
|
}`}
|
|
61
61
|
>
|
|
62
62
|
<span className='grid'>
|
package/lib/styles.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
|
|
3
3
|
export const labelStyle = tv({
|
|
4
|
-
base: '
|
|
4
|
+
base: 'text-label',
|
|
5
5
|
});
|
|
6
6
|
|
|
7
7
|
export const containerStyle = tv({
|
|
@@ -11,7 +11,7 @@ export const containerStyle = tv({
|
|
|
11
11
|
export const categoryStyle = tv({
|
|
12
12
|
slots: {
|
|
13
13
|
container: 'w-full grid mt-4 first:mt-0',
|
|
14
|
-
span:
|
|
14
|
+
span: 'text-category-label',
|
|
15
15
|
items: 'grid mt-2 mb-4 empty:mb-0',
|
|
16
16
|
},
|
|
17
17
|
variants: {
|
|
@@ -76,8 +76,7 @@ export const simpleStyle = tv({
|
|
|
76
76
|
className: 'w-full',
|
|
77
77
|
}),
|
|
78
78
|
span: '',
|
|
79
|
-
input:
|
|
80
|
-
'w-full ring-0 placeholder:text-slate-400 focus:ring-0 border-2 border-transparent text-input',
|
|
79
|
+
input: 'w-full ring-0 placeholder:text-placeholder focus:ring-0 border-2 border-transparent text-input',
|
|
81
80
|
},
|
|
82
81
|
variants: {
|
|
83
82
|
variant: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twintag/twintag-form",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"author": "Twintag",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"eslint": "^8.38.0",
|
|
40
40
|
"rollup": "^3.18.0",
|
|
41
41
|
"vite-plugin-dts": "^2.1.0",
|
|
42
|
-
"tailwind-config": "0.0.
|
|
42
|
+
"tailwind-config": "0.0.1",
|
|
43
43
|
"tsconfig": "0.0.0",
|
|
44
44
|
"twintag-types": "0.0.0"
|
|
45
45
|
},
|
package/twind.config.ts
CHANGED
|
@@ -12,9 +12,11 @@ export default defineConfig({
|
|
|
12
12
|
accent: 'var(--clr-accent,blue)',
|
|
13
13
|
label: 'var(--clr-label,black)',
|
|
14
14
|
input: 'var(--clr-input,black)',
|
|
15
|
+
placeholder: 'var(--clr-placeholder,#94a3b8)',
|
|
16
|
+
'category-label': 'var(--clr-category-label,black)',
|
|
15
17
|
},
|
|
16
18
|
fontFamily: {
|
|
17
|
-
|
|
19
|
+
'ff-text': ['var(--ff-text)', 'Helvetica', 'Arial', 'sans-serif'],
|
|
18
20
|
},
|
|
19
21
|
},
|
|
20
22
|
},
|