@marianmeres/stuic 1.51.0 → 1.52.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.
|
@@ -73,12 +73,12 @@ $:
|
|
|
73
73
|
{#if label || $$slots.label}
|
|
74
74
|
<label
|
|
75
75
|
for={id}
|
|
76
|
-
class={twMerge(
|
|
77
|
-
block flex-1
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
class={twMerge(
|
|
77
|
+
'block flex-1',
|
|
78
|
+
required ? "after:content-['*'] after:opacity-30 after:pl-1" : '',
|
|
79
|
+
labelSizePreset[size],
|
|
80
|
+
labelClass
|
|
81
|
+
)}
|
|
82
82
|
class:required
|
|
83
83
|
>
|
|
84
84
|
{#if $$slots.label}
|
|
@@ -91,16 +91,16 @@ $:
|
|
|
91
91
|
<slot name="right_of_label" />
|
|
92
92
|
</div>
|
|
93
93
|
<div
|
|
94
|
-
class={twMerge(
|
|
95
|
-
|
|
94
|
+
class={twMerge(
|
|
95
|
+
`rounded-md border border-gray-300
|
|
96
96
|
bg-gray-100
|
|
97
97
|
focus-within:border-stuic-primary
|
|
98
98
|
focus-within:ring-4
|
|
99
99
|
focus-within:ring-stuic-primary
|
|
100
|
-
focus-within:ring-opacity-20
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
focus-within:ring-opacity-20`,
|
|
101
|
+
wrapClass,
|
|
102
|
+
validation && !validation.valid ? invalidClass : ''
|
|
103
|
+
)}
|
|
104
104
|
class:cursor-not-allowed={disabled}
|
|
105
105
|
class:opacity-50={disabled}
|
|
106
106
|
>
|
|
@@ -65,7 +65,14 @@ $:
|
|
|
65
65
|
<div class={twMerge(`mb-4 ${_class}`)}>
|
|
66
66
|
<div class="flex items-end px-2 mb-1">
|
|
67
67
|
{#if label || $$slots.label}
|
|
68
|
-
<label
|
|
68
|
+
<label
|
|
69
|
+
for={id}
|
|
70
|
+
class={twMerge(
|
|
71
|
+
'block flex-1',
|
|
72
|
+
required ? "after:content-['*'] after:opacity-30 after:pl-1" : '',
|
|
73
|
+
labelSizePreset[size]
|
|
74
|
+
)}
|
|
75
|
+
>
|
|
69
76
|
{#if $$slots.label}
|
|
70
77
|
<slot name="label" />
|
|
71
78
|
{:else}
|