@trackunit/react-form-components 0.0.101 → 0.0.102
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/index.cjs.d.ts +1 -0
- package/{index.cjs → index.cjs.js} +17 -17
- package/index.esm.css +259 -0
- package/{index.js → index.esm.js} +17 -17
- package/package.json +4 -6
- /package/{index.css → index.cjs.css} +0 -0
- /package/{translation.cjs → translation.cjs.js} +0 -0
- /package/{translation10.cjs → translation.cjs10.js} +0 -0
- /package/{translation11.cjs → translation.cjs11.js} +0 -0
- /package/{translation12.cjs → translation.cjs12.js} +0 -0
- /package/{translation13.cjs → translation.cjs13.js} +0 -0
- /package/{translation14.cjs → translation.cjs14.js} +0 -0
- /package/{translation15.cjs → translation.cjs15.js} +0 -0
- /package/{translation16.cjs → translation.cjs16.js} +0 -0
- /package/{translation17.cjs → translation.cjs17.js} +0 -0
- /package/{translation2.cjs → translation.cjs2.js} +0 -0
- /package/{translation3.cjs → translation.cjs3.js} +0 -0
- /package/{translation4.cjs → translation.cjs4.js} +0 -0
- /package/{translation5.cjs → translation.cjs5.js} +0 -0
- /package/{translation6.cjs → translation.cjs6.js} +0 -0
- /package/{translation7.cjs → translation.cjs7.js} +0 -0
- /package/{translation8.cjs → translation.cjs8.js} +0 -0
- /package/{translation9.cjs → translation.cjs9.js} +0 -0
- /package/{translation.js → translation.esm.js} +0 -0
- /package/{translation10.js → translation.esm10.js} +0 -0
- /package/{translation11.js → translation.esm11.js} +0 -0
- /package/{translation12.js → translation.esm12.js} +0 -0
- /package/{translation13.js → translation.esm13.js} +0 -0
- /package/{translation14.js → translation.esm14.js} +0 -0
- /package/{translation15.js → translation.esm15.js} +0 -0
- /package/{translation16.js → translation.esm16.js} +0 -0
- /package/{translation17.js → translation.esm17.js} +0 -0
- /package/{translation2.js → translation.esm2.js} +0 -0
- /package/{translation3.js → translation.esm3.js} +0 -0
- /package/{translation4.js → translation.esm4.js} +0 -0
- /package/{translation5.js → translation.esm5.js} +0 -0
- /package/{translation6.js → translation.esm6.js} +0 -0
- /package/{translation7.js → translation.esm7.js} +0 -0
- /package/{translation8.js → translation.esm8.js} +0 -0
- /package/{translation9.js → translation.esm9.js} +0 -0
package/index.cjs.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index";
|
|
@@ -49,23 +49,23 @@ const translations = {
|
|
|
49
49
|
ns: namespace,
|
|
50
50
|
default: defaultTranslations,
|
|
51
51
|
languages: {
|
|
52
|
-
de: () => Promise.resolve().then(function () { return require('./translation.cjs'); }),
|
|
53
|
-
da: () => Promise.resolve().then(function () { return require('./
|
|
54
|
-
cs: () => Promise.resolve().then(function () { return require('./
|
|
55
|
-
nl: () => Promise.resolve().then(function () { return require('./
|
|
56
|
-
fr: () => Promise.resolve().then(function () { return require('./
|
|
57
|
-
fi: () => Promise.resolve().then(function () { return require('./
|
|
58
|
-
hu: () => Promise.resolve().then(function () { return require('./
|
|
59
|
-
it: () => Promise.resolve().then(function () { return require('./
|
|
60
|
-
nb: () => Promise.resolve().then(function () { return require('./
|
|
61
|
-
pl: () => Promise.resolve().then(function () { return require('./
|
|
62
|
-
pt: () => Promise.resolve().then(function () { return require('./
|
|
63
|
-
ru: () => Promise.resolve().then(function () { return require('./
|
|
64
|
-
ro: () => Promise.resolve().then(function () { return require('./
|
|
65
|
-
es: () => Promise.resolve().then(function () { return require('./
|
|
66
|
-
sv: () => Promise.resolve().then(function () { return require('./
|
|
67
|
-
ja: () => Promise.resolve().then(function () { return require('./
|
|
68
|
-
th: () => Promise.resolve().then(function () { return require('./
|
|
52
|
+
de: () => Promise.resolve().then(function () { return require('./translation.cjs.js'); }),
|
|
53
|
+
da: () => Promise.resolve().then(function () { return require('./translation.cjs2.js'); }),
|
|
54
|
+
cs: () => Promise.resolve().then(function () { return require('./translation.cjs3.js'); }),
|
|
55
|
+
nl: () => Promise.resolve().then(function () { return require('./translation.cjs4.js'); }),
|
|
56
|
+
fr: () => Promise.resolve().then(function () { return require('./translation.cjs5.js'); }),
|
|
57
|
+
fi: () => Promise.resolve().then(function () { return require('./translation.cjs6.js'); }),
|
|
58
|
+
hu: () => Promise.resolve().then(function () { return require('./translation.cjs7.js'); }),
|
|
59
|
+
it: () => Promise.resolve().then(function () { return require('./translation.cjs8.js'); }),
|
|
60
|
+
nb: () => Promise.resolve().then(function () { return require('./translation.cjs9.js'); }),
|
|
61
|
+
pl: () => Promise.resolve().then(function () { return require('./translation.cjs10.js'); }),
|
|
62
|
+
pt: () => Promise.resolve().then(function () { return require('./translation.cjs11.js'); }),
|
|
63
|
+
ru: () => Promise.resolve().then(function () { return require('./translation.cjs12.js'); }),
|
|
64
|
+
ro: () => Promise.resolve().then(function () { return require('./translation.cjs13.js'); }),
|
|
65
|
+
es: () => Promise.resolve().then(function () { return require('./translation.cjs14.js'); }),
|
|
66
|
+
sv: () => Promise.resolve().then(function () { return require('./translation.cjs15.js'); }),
|
|
67
|
+
ja: () => Promise.resolve().then(function () { return require('./translation.cjs16.js'); }),
|
|
68
|
+
th: () => Promise.resolve().then(function () { return require('./translation.cjs17.js'); }),
|
|
69
69
|
},
|
|
70
70
|
};
|
|
71
71
|
/**
|
package/index.esm.css
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
/* CSS related to the Label component */
|
|
2
|
+
|
|
3
|
+
.tu-label {
|
|
4
|
+
@apply text-base
|
|
5
|
+
text-slate-700
|
|
6
|
+
overflow-hidden
|
|
7
|
+
whitespace-nowrap
|
|
8
|
+
text-ellipsis
|
|
9
|
+
hover:text-slate-800
|
|
10
|
+
group-hover:text-slate-800
|
|
11
|
+
active:text-slate-800
|
|
12
|
+
group-active:text-slate-800;
|
|
13
|
+
|
|
14
|
+
&--invalid {
|
|
15
|
+
@apply text-red-600
|
|
16
|
+
hover:text-red-700
|
|
17
|
+
group-hover:text-red-700
|
|
18
|
+
active:text-red-700
|
|
19
|
+
group-active:text-red-700;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&--disabled {
|
|
23
|
+
@apply text-slate-400
|
|
24
|
+
hover:text-slate-400
|
|
25
|
+
group-hover:text-slate-400;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* CSS related to the RadioGroup component */
|
|
30
|
+
.tu-radiogroup {
|
|
31
|
+
@apply flex
|
|
32
|
+
gap-2
|
|
33
|
+
flex-col
|
|
34
|
+
items-start;
|
|
35
|
+
|
|
36
|
+
&--inline {
|
|
37
|
+
@apply flex
|
|
38
|
+
gap-3
|
|
39
|
+
flex-row
|
|
40
|
+
items-center;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.tu-radioitem {
|
|
45
|
+
@apply w-4
|
|
46
|
+
h-4
|
|
47
|
+
appearance-none
|
|
48
|
+
rounded-3xl
|
|
49
|
+
bg-white
|
|
50
|
+
border-solid
|
|
51
|
+
border
|
|
52
|
+
border-slate-300
|
|
53
|
+
shadow-sm
|
|
54
|
+
shrink-0
|
|
55
|
+
transition
|
|
56
|
+
box-border
|
|
57
|
+
hover:cursor-pointer
|
|
58
|
+
hover:bg-slate-100
|
|
59
|
+
focus:ring-2
|
|
60
|
+
focus:ring-offset-2
|
|
61
|
+
focus:ring-blue-700;
|
|
62
|
+
|
|
63
|
+
&__wrapper {
|
|
64
|
+
@apply flex
|
|
65
|
+
gap-2
|
|
66
|
+
items-center;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&--checked {
|
|
70
|
+
@apply border-solid
|
|
71
|
+
border-4
|
|
72
|
+
border-blue-600
|
|
73
|
+
bg-white
|
|
74
|
+
hover:bg-slate-100
|
|
75
|
+
hover:cursor-pointer
|
|
76
|
+
outline-0
|
|
77
|
+
active:bg-slate-200
|
|
78
|
+
active:ring-2
|
|
79
|
+
active:ring-offset-2
|
|
80
|
+
active:ring-blue-700
|
|
81
|
+
focus:bg-slate-200
|
|
82
|
+
focus:ring-2
|
|
83
|
+
focus:ring-offset-2
|
|
84
|
+
focus:ring-blue-700
|
|
85
|
+
group-active:ring-2
|
|
86
|
+
group-active:ring-offset-2
|
|
87
|
+
group-active:ring-blue-700;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&--invalid {
|
|
91
|
+
@apply border-red-600
|
|
92
|
+
active:ring-red-700
|
|
93
|
+
focus:ring-red-700
|
|
94
|
+
group-focus:ring-2
|
|
95
|
+
group-focus:ring-offset-2;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&--disabled {
|
|
99
|
+
@apply bg-slate-400
|
|
100
|
+
border-slate-300
|
|
101
|
+
cursor-not-allowed
|
|
102
|
+
group-hover:bg-slate-400
|
|
103
|
+
group-focus:bg-slate-400
|
|
104
|
+
hover:bg-slate-400
|
|
105
|
+
focus:bg-slate-400
|
|
106
|
+
active:bg-slate-400
|
|
107
|
+
focus:ring-0
|
|
108
|
+
focus:ring-offset-0
|
|
109
|
+
group-active:ring-0
|
|
110
|
+
group-active:ring-offset-0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&--disabled.tu-radioitem--checked {
|
|
114
|
+
@apply bg-white;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&__label-container {
|
|
118
|
+
@apply gap-y-1
|
|
119
|
+
grid;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&__description {
|
|
123
|
+
@apply text-sm
|
|
124
|
+
font-normal
|
|
125
|
+
text-slate-500
|
|
126
|
+
text-left
|
|
127
|
+
whitespace-nowrap
|
|
128
|
+
text-ellipsis
|
|
129
|
+
overflow-hidden;
|
|
130
|
+
|
|
131
|
+
&--disabled {
|
|
132
|
+
@apply text-slate-400
|
|
133
|
+
hover:text-slate-400
|
|
134
|
+
group-hover:text-slate-400;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* CSS related to the toggle component */
|
|
140
|
+
.tu-toggle {
|
|
141
|
+
@apply rounded-full
|
|
142
|
+
bg-white
|
|
143
|
+
h-full
|
|
144
|
+
aspect-square
|
|
145
|
+
translate-x-0
|
|
146
|
+
transition-all;
|
|
147
|
+
|
|
148
|
+
&__wrapper {
|
|
149
|
+
@apply flex
|
|
150
|
+
gap-2;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&__input-container {
|
|
154
|
+
@apply flex
|
|
155
|
+
self-start
|
|
156
|
+
w-fit
|
|
157
|
+
active:shadow
|
|
158
|
+
rounded-full
|
|
159
|
+
cursor-pointer
|
|
160
|
+
focus-within:ring
|
|
161
|
+
focus-within:ring-offset-2
|
|
162
|
+
focus-within:ring-blue-700;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&__input {
|
|
166
|
+
@apply absolute
|
|
167
|
+
opacity-0
|
|
168
|
+
-z-10;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&__switch-container {
|
|
172
|
+
@apply flex
|
|
173
|
+
items-center
|
|
174
|
+
p-1
|
|
175
|
+
cursor-pointer
|
|
176
|
+
rounded-full
|
|
177
|
+
bg-slate-300
|
|
178
|
+
focus:bg-slate-400
|
|
179
|
+
hover:bg-slate-400
|
|
180
|
+
active:bg-slate-500;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&__switch {
|
|
184
|
+
@apply bg-white
|
|
185
|
+
rounded-full
|
|
186
|
+
h-full
|
|
187
|
+
w-5/12
|
|
188
|
+
aspect-square
|
|
189
|
+
translate-x-4
|
|
190
|
+
transition-all;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&--medium {
|
|
194
|
+
@apply flex
|
|
195
|
+
items-center
|
|
196
|
+
p-1
|
|
197
|
+
cursor-pointer
|
|
198
|
+
w-9
|
|
199
|
+
h-5;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&--small {
|
|
203
|
+
@apply flex
|
|
204
|
+
items-center
|
|
205
|
+
p-1
|
|
206
|
+
cursor-pointer
|
|
207
|
+
w-8
|
|
208
|
+
h-4;
|
|
209
|
+
|
|
210
|
+
.tu-toggle__switch {
|
|
211
|
+
@apply w-4/12;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&--toggled {
|
|
216
|
+
@apply flex
|
|
217
|
+
items-center
|
|
218
|
+
p-1
|
|
219
|
+
cursor-pointer
|
|
220
|
+
bg-blue-600
|
|
221
|
+
focus:bg-blue-700
|
|
222
|
+
hover:bg-blue-700
|
|
223
|
+
active:bg-blue-800;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&--disabled {
|
|
227
|
+
@apply flex
|
|
228
|
+
items-center
|
|
229
|
+
p-1
|
|
230
|
+
cursor-not-allowed
|
|
231
|
+
pointer-events-none
|
|
232
|
+
bg-slate-200;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&--disabled.tu-toggle--toggled {
|
|
236
|
+
@apply bg-slate-400;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
&__label-container {
|
|
240
|
+
@apply gap-y-1
|
|
241
|
+
grid;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&__description {
|
|
245
|
+
@apply text-sm
|
|
246
|
+
font-normal
|
|
247
|
+
text-slate-500
|
|
248
|
+
text-left
|
|
249
|
+
whitespace-nowrap
|
|
250
|
+
text-ellipsis
|
|
251
|
+
overflow-hidden;
|
|
252
|
+
|
|
253
|
+
&--disabled {
|
|
254
|
+
@apply text-slate-400
|
|
255
|
+
hover:text-slate-400
|
|
256
|
+
group-hover:text-slate-400;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
@@ -23,23 +23,23 @@ const translations = {
|
|
|
23
23
|
ns: namespace,
|
|
24
24
|
default: defaultTranslations,
|
|
25
25
|
languages: {
|
|
26
|
-
de: () => import('./translation.js'),
|
|
27
|
-
da: () => import('./
|
|
28
|
-
cs: () => import('./
|
|
29
|
-
nl: () => import('./
|
|
30
|
-
fr: () => import('./
|
|
31
|
-
fi: () => import('./
|
|
32
|
-
hu: () => import('./
|
|
33
|
-
it: () => import('./
|
|
34
|
-
nb: () => import('./
|
|
35
|
-
pl: () => import('./
|
|
36
|
-
pt: () => import('./
|
|
37
|
-
ru: () => import('./
|
|
38
|
-
ro: () => import('./
|
|
39
|
-
es: () => import('./
|
|
40
|
-
sv: () => import('./
|
|
41
|
-
ja: () => import('./
|
|
42
|
-
th: () => import('./
|
|
26
|
+
de: () => import('./translation.esm.js'),
|
|
27
|
+
da: () => import('./translation.esm2.js'),
|
|
28
|
+
cs: () => import('./translation.esm3.js'),
|
|
29
|
+
nl: () => import('./translation.esm4.js'),
|
|
30
|
+
fr: () => import('./translation.esm5.js'),
|
|
31
|
+
fi: () => import('./translation.esm6.js'),
|
|
32
|
+
hu: () => import('./translation.esm7.js'),
|
|
33
|
+
it: () => import('./translation.esm8.js'),
|
|
34
|
+
nb: () => import('./translation.esm9.js'),
|
|
35
|
+
pl: () => import('./translation.esm10.js'),
|
|
36
|
+
pt: () => import('./translation.esm11.js'),
|
|
37
|
+
ru: () => import('./translation.esm12.js'),
|
|
38
|
+
ro: () => import('./translation.esm13.js'),
|
|
39
|
+
es: () => import('./translation.esm14.js'),
|
|
40
|
+
sv: () => import('./translation.esm15.js'),
|
|
41
|
+
ja: () => import('./translation.esm16.js'),
|
|
42
|
+
th: () => import('./translation.esm17.js'),
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-form-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.102",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@trackunit/css-class-variance-utilities": "0.0.11",
|
|
11
11
|
"@trackunit/i18n-library-translation": "0.0.67",
|
|
12
|
-
"@trackunit/react-components": "0.1.
|
|
12
|
+
"@trackunit/react-components": "0.1.138",
|
|
13
13
|
"@trackunit/tailwind-styled-components": "0.0.60",
|
|
14
14
|
"date-fns": "2.29.3",
|
|
15
15
|
"libphonenumber-js": "1.10.36",
|
|
@@ -17,9 +17,7 @@
|
|
|
17
17
|
"react-select": "5.7.3",
|
|
18
18
|
"uuid": "8.3.2"
|
|
19
19
|
},
|
|
20
|
-
"module": "./index.js",
|
|
21
|
-
"main": "./index.cjs",
|
|
22
|
-
"type": "module",
|
|
23
|
-
"types": "./src/index.d.ts",
|
|
20
|
+
"module": "./index.esm.js",
|
|
21
|
+
"main": "./index.cjs.js",
|
|
24
22
|
"peerDependencies": {}
|
|
25
23
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|