sprintify-ui 0.6.62 → 0.6.63
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/dist/sprintify-ui.es.js +2032 -2025
- package/package.json +1 -1
- package/src/components/BaseDatePicker.vue +16 -4
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
>
|
|
26
26
|
<div
|
|
27
27
|
v-if="modelValueFormatted && !disabled && showInput"
|
|
28
|
-
class="
|
|
28
|
+
:class="closeWrapClasses"
|
|
29
29
|
>
|
|
30
30
|
<button
|
|
31
31
|
type="button"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
<script lang="ts" setup>
|
|
45
45
|
import { Ref } from 'vue';
|
|
46
|
-
import { isArray, isEqual } from 'lodash';
|
|
46
|
+
import { isArray, isEqual, size } from 'lodash';
|
|
47
47
|
import { DateTime } from 'luxon';
|
|
48
48
|
import { Icon as BaseIcon } from '@iconify/vue';
|
|
49
49
|
import { useField } from '@/composables/field';
|
|
@@ -307,7 +307,7 @@ const classes = computed(() => {
|
|
|
307
307
|
const disabled = 'disabled:cursor-not-allowed disabled:text-slate-300';
|
|
308
308
|
const sizeConfig = sizes[sizeInternal.value];
|
|
309
309
|
const padding = {
|
|
310
|
-
'xs': 'pl-
|
|
310
|
+
'xs': 'pl-[1.54rem] pr-5',
|
|
311
311
|
'sm': 'pl-[2.1rem] pr-6',
|
|
312
312
|
'md': 'pl-10 pr-7',
|
|
313
313
|
}[sizeInternal.value];
|
|
@@ -327,7 +327,8 @@ const classes = computed(() => {
|
|
|
327
327
|
});
|
|
328
328
|
|
|
329
329
|
const iconWrapClasses = computed(() => {
|
|
330
|
-
const base = 'pointer-events-none absolute top-0 left-0
|
|
330
|
+
const base = 'pointer-events-none absolute top-0 left-0 flex items-center justify-center';
|
|
331
|
+
const sizeConfig = sizes[sizeInternal.value];
|
|
331
332
|
const padding = {
|
|
332
333
|
'xs': 'pl-2',
|
|
333
334
|
'sm': 'pl-2.5',
|
|
@@ -336,10 +337,21 @@ const iconWrapClasses = computed(() => {
|
|
|
336
337
|
|
|
337
338
|
return twMerge(
|
|
338
339
|
base,
|
|
340
|
+
sizeConfig.height,
|
|
339
341
|
padding
|
|
340
342
|
);
|
|
341
343
|
});
|
|
342
344
|
|
|
345
|
+
const closeWrapClasses = computed(() => {
|
|
346
|
+
const base = 'absolute top-0 right-0 flex justify-center p-1';
|
|
347
|
+
const sizeConfig = sizes[sizeInternal.value];
|
|
348
|
+
|
|
349
|
+
return twMerge(
|
|
350
|
+
base,
|
|
351
|
+
sizeConfig.height,
|
|
352
|
+
);
|
|
353
|
+
});
|
|
354
|
+
|
|
343
355
|
const iconClasses = computed(() => {
|
|
344
356
|
const base = '';
|
|
345
357
|
const error = hasErrorInternal.value ? 'text-red-500' : 'text-slate-500';
|