@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.
@@ -72,7 +72,7 @@ const Form: FC<Props> = ({ children, options }) => {
72
72
  return (
73
73
  <form
74
74
  ref={formRef}
75
- className='font-fftext relative'
75
+ className='font-ff-text relative'
76
76
  onSubmit={handleSubmit(onValid, onInvalid)}
77
77
  >
78
78
  <div className='grid w-auto'>
@@ -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-slate-400'
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: 'font-fftext text-label',
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: [labelStyle()],
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.0",
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.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
- fftext: ['var(--ff-text)', 'Helvetica', 'Arial', 'sans-serif'],
19
+ 'ff-text': ['var(--ff-text)', 'Helvetica', 'Arial', 'sans-serif'],
18
20
  },
19
21
  },
20
22
  },