@iqual/nuxt-icms 1.5.7 → 1.5.9

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.
@@ -70,6 +70,18 @@ const formFieldDescription = tv({
70
70
  },
71
71
  })
72
72
 
73
+ const inputRoot = tv({
74
+ base: themedClass('inputRoot', 'w-full'),
75
+ variants: {
76
+ colorScheme: {
77
+ none: themedClass('inputRootVariantsColorSchemeNone'),
78
+ dark: themedClass('inputRootVariantsColorSchemeDark'),
79
+ light: themedClass('inputRootVariantsColorSchemeLight'),
80
+ accent: themedClass('inputRootVariantsColorSchemeAccent'),
81
+ },
82
+ },
83
+ })
84
+
73
85
  const inputBase = tv({
74
86
  base: themedClass(
75
87
  'inputBase',
@@ -79,19 +91,19 @@ const inputBase = tv({
79
91
  colorScheme: {
80
92
  none: themedClass(
81
93
  'inputBaseVariantsColorSchemeNone',
82
- 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-400',
94
+ 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-500',
83
95
  ),
84
96
  dark: themedClass(
85
97
  'inputBaseVariantsColorSchemeDark',
86
- 'bg-gray-800 text-gray-200 ring-gray-700 dark:bg-gray-800 dark:ring-gray-700 dark:text-gray-200 placeholder:text-gray-400',
98
+ 'bg-gray-800 text-gray-200 ring-gray-700 dark:bg-gray-800 dark:ring-gray-700 dark:text-gray-200 placeholder:text-gray-500',
87
99
  ),
88
100
  light: themedClass(
89
101
  'inputBaseVariantsColorSchemeLight',
90
- 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-400',
102
+ 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-500',
91
103
  ),
92
104
  accent: themedClass(
93
105
  'inputBaseVariantsColorSchemeAccent',
94
- 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-400',
106
+ 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-500',
95
107
  ),
96
108
  },
97
109
  },
@@ -106,19 +118,19 @@ const floatingLabel = tv({
106
118
  colorScheme: {
107
119
  none: themedClass(
108
120
  'floatingLabelVariantsColorSchemeNone',
109
- 'text-gray-600 peer-placeholder-shown:text-gray-400 peer-focus:text-primary-600 dark:text-gray-400 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
121
+ 'text-gray-500 peer-placeholder-shown:text-gray-500 peer-focus:text-primary-600 dark:text-gray-500 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
110
122
  ),
111
123
  dark: themedClass(
112
124
  'floatingLabelVariantsColorSchemeDark',
113
- 'text-gray-300 peer-placeholder-shown:text-gray-500 peer-focus:text-primary-400 dark:text-gray-300 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
125
+ 'text-gray-500 peer-placeholder-shown:text-gray-500 peer-focus:text-primary-400 dark:text-gray-500 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
114
126
  ),
115
127
  light: themedClass(
116
128
  'floatingLabelVariantsColorSchemeLight',
117
- 'text-gray-600 peer-placeholder-shown:text-gray-400 peer-focus:text-primary-600 dark:text-gray-400 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
129
+ 'text-gray-500 peer-placeholder-shown:text-gray-500 peer-focus:text-primary-600 dark:text-gray-500 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
118
130
  ),
119
131
  accent: themedClass(
120
132
  'floatingLabelVariantsColorSchemeAccent',
121
- 'text-gray-600 peer-placeholder-shown:text-gray-400 peer-focus:text-primary-600 dark:text-gray-400 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
133
+ 'text-gray-500 peer-placeholder-shown:text-gray-500 peer-focus:text-primary-600 dark:text-gray-500 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
122
134
  ),
123
135
  },
124
136
  },
@@ -160,21 +172,28 @@ const floatingLabelText = tv({
160
172
  :description="floatingLabels ? undefined : cleanDescription"
161
173
  :help="floatingLabels ? cleanDescription : undefined"
162
174
  :ui="{
175
+ labelWrapper: themedClass('formFieldLabelWrapper', 'mb-1'),
163
176
  label: formFieldLabel({ colorScheme }),
164
177
  help: formFieldDescription({ colorScheme }),
165
178
  description: formFieldDescription({ colorScheme }),
179
+ wrapper: themedClass('formFieldWrapper', 'mb-2'),
166
180
  }"
167
181
  >
168
182
  <UInput
169
183
  v-model="model"
170
184
  :id="formElement.metadata.key"
171
185
  :type="formElement.metadata.type"
172
- :placeholder="floatingLabels ? (formElement.placeholder || ' ') : formElement.placeholder"
186
+ :placeholder="
187
+ floatingLabels
188
+ ? formElement.placeholder || ' '
189
+ : formElement.placeholder
190
+ "
173
191
  :maxlength="formElement.maxlength"
174
192
  :minlength="formElement.minlength"
175
193
  :pattern="formElement.pattern?.rule"
176
194
  :data-floating="floatingLabels"
177
195
  :ui="{
196
+ root: inputRoot({ colorScheme }),
178
197
  base: inputBase({ colorScheme }),
179
198
  }"
180
199
  >
@@ -183,7 +202,21 @@ const floatingLabelText = tv({
183
202
  :class="floatingLabel({ colorScheme })"
184
203
  :for="formElement.metadata.key"
185
204
  >
186
- <span :class="floatingLabelText({ colorScheme })">{{ formElement.metadata.title }}</span>
205
+ <span :class="floatingLabelText({ colorScheme })">
206
+ {{ formElement.metadata.title }}
207
+ <template v-if="formElement.metadata.required">
208
+ <span
209
+ :class="
210
+ themedClass(
211
+ 'floatingLabelRequiredStarClass',
212
+ 'ml-0.5 inline-block text-red-600',
213
+ )
214
+ "
215
+ >
216
+ *
217
+ </span>
218
+ </template>
219
+ </span>
187
220
  </label>
188
221
  </UInput>
189
222
  </UFormField>
@@ -70,6 +70,18 @@ const formFieldDescription = tv({
70
70
  },
71
71
  })
72
72
 
73
+ const inputRoot = tv({
74
+ base: themedClass('inputRoot', 'w-full'),
75
+ variants: {
76
+ colorScheme: {
77
+ none: themedClass('inputRootVariantsColorSchemeNone'),
78
+ dark: themedClass('inputRootVariantsColorSchemeDark'),
79
+ light: themedClass('inputRootVariantsColorSchemeLight'),
80
+ accent: themedClass('inputRootVariantsColorSchemeAccent'),
81
+ },
82
+ },
83
+ })
84
+
73
85
  const inputBase = tv({
74
86
  base: themedClass(
75
87
  'inputBase',
@@ -79,19 +91,19 @@ const inputBase = tv({
79
91
  colorScheme: {
80
92
  none: themedClass(
81
93
  'inputBaseVariantsColorSchemeNone',
82
- 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-400',
94
+ 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-500',
83
95
  ),
84
96
  dark: themedClass(
85
97
  'inputBaseVariantsColorSchemeDark',
86
- 'bg-gray-800 text-gray-200 ring-gray-700 dark:bg-gray-800 dark:ring-gray-700 dark:text-gray-200 placeholder:text-gray-400',
98
+ 'bg-gray-800 text-gray-200 ring-gray-700 dark:bg-gray-800 dark:ring-gray-700 dark:text-gray-200 placeholder:text-gray-500',
87
99
  ),
88
100
  light: themedClass(
89
101
  'inputBaseVariantsColorSchemeLight',
90
- 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-400',
102
+ 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-500',
91
103
  ),
92
104
  accent: themedClass(
93
105
  'inputBaseVariantsColorSchemeAccent',
94
- 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-400',
106
+ 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-500',
95
107
  ),
96
108
  },
97
109
  },
@@ -106,19 +118,19 @@ const floatingLabel = tv({
106
118
  colorScheme: {
107
119
  none: themedClass(
108
120
  'floatingLabelVariantsColorSchemeNone',
109
- 'text-gray-600 peer-placeholder-shown:text-gray-400 peer-focus:text-primary-600 dark:text-gray-400 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
121
+ 'text-gray-500 peer-placeholder-shown:text-gray-500 peer-focus:text-primary-600 dark:text-gray-500 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
110
122
  ),
111
123
  dark: themedClass(
112
124
  'floatingLabelVariantsColorSchemeDark',
113
- 'text-gray-300 peer-placeholder-shown:text-gray-500 peer-focus:text-primary-400 dark:text-gray-300 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
125
+ 'text-gray-500 peer-placeholder-shown:text-gray-500 peer-focus:text-primary-400 dark:text-gray-500 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
114
126
  ),
115
127
  light: themedClass(
116
128
  'floatingLabelVariantsColorSchemeLight',
117
- 'text-gray-600 peer-placeholder-shown:text-gray-400 peer-focus:text-primary-600 dark:text-gray-400 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
129
+ 'text-gray-500 peer-placeholder-shown:text-gray-500 peer-focus:text-primary-600 dark:text-gray-500 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
118
130
  ),
119
131
  accent: themedClass(
120
132
  'floatingLabelVariantsColorSchemeAccent',
121
- 'text-gray-600 peer-placeholder-shown:text-gray-400 peer-focus:text-primary-600 dark:text-gray-400 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
133
+ 'text-gray-500 peer-placeholder-shown:text-gray-500 peer-focus:text-primary-600 dark:text-gray-500 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
122
134
  ),
123
135
  },
124
136
  },
@@ -160,21 +172,28 @@ const floatingLabelText = tv({
160
172
  :description="floatingLabels ? undefined : cleanDescription"
161
173
  :help="floatingLabels ? cleanDescription : undefined"
162
174
  :ui="{
175
+ labelWrapper: themedClass('formFieldLabelWrapper', 'mb-1'),
163
176
  label: formFieldLabel({ colorScheme }),
164
177
  description: formFieldDescription({ colorScheme }),
165
178
  help: formFieldDescription({ colorScheme }),
179
+ wrapper: themedClass('formFieldWrapper', 'mb-2'),
166
180
  }"
167
181
  >
168
182
  <UInput
169
183
  v-model="model"
170
184
  :id="formElement.metadata.key"
171
185
  :type="formElement.metadata.type"
172
- :placeholder="floatingLabels ? (formElement.placeholder || ' ') : formElement.placeholder"
186
+ :placeholder="
187
+ floatingLabels
188
+ ? formElement.placeholder || ' '
189
+ : formElement.placeholder
190
+ "
173
191
  :maxlength="formElement.maxlength"
174
192
  :minlength="formElement.minlength"
175
193
  :pattern="formElement.pattern?.rule"
176
194
  :data-floating="floatingLabels"
177
195
  :ui="{
196
+ root: inputRoot({ colorScheme }),
178
197
  base: inputBase({ colorScheme }),
179
198
  }"
180
199
  >
@@ -183,7 +202,21 @@ const floatingLabelText = tv({
183
202
  :class="floatingLabel({ colorScheme })"
184
203
  :for="formElement.metadata.key"
185
204
  >
186
- <span :class="floatingLabelText({ colorScheme })">{{ formElement.metadata.title }}</span>
205
+ <span :class="floatingLabelText({ colorScheme })">
206
+ {{ formElement.metadata.title }}
207
+ <template v-if="formElement.metadata.required">
208
+ <span
209
+ :class="
210
+ themedClass(
211
+ 'floatingLabelRequiredStarClass',
212
+ 'ml-0.5 inline-block text-red-600',
213
+ )
214
+ "
215
+ >
216
+ *
217
+ </span>
218
+ </template>
219
+ </span>
187
220
  </label>
188
221
  </UInput>
189
222
  </UFormField>
@@ -70,6 +70,18 @@ const formFieldDescription = tv({
70
70
  },
71
71
  })
72
72
 
73
+ const inputRoot = tv({
74
+ base: themedClass('inputRoot', 'w-full'),
75
+ variants: {
76
+ colorScheme: {
77
+ none: themedClass('inputRootVariantsColorSchemeNone'),
78
+ dark: themedClass('inputRootVariantsColorSchemeDark'),
79
+ light: themedClass('inputRootVariantsColorSchemeLight'),
80
+ accent: themedClass('inputRootVariantsColorSchemeAccent'),
81
+ },
82
+ },
83
+ })
84
+
73
85
  const inputBase = tv({
74
86
  base: themedClass(
75
87
  'inputBase',
@@ -79,19 +91,19 @@ const inputBase = tv({
79
91
  colorScheme: {
80
92
  none: themedClass(
81
93
  'inputBaseVariantsColorSchemeNone',
82
- 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-400',
94
+ 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-500',
83
95
  ),
84
96
  dark: themedClass(
85
97
  'inputBaseVariantsColorSchemeDark',
86
- 'bg-gray-800 text-gray-200 ring-gray-700 dark:bg-gray-800 dark:ring-gray-700 dark:text-gray-200 placeholder:text-gray-400',
98
+ 'bg-gray-800 text-gray-200 ring-gray-700 dark:bg-gray-800 dark:ring-gray-700 dark:text-gray-200 placeholder:text-gray-500',
87
99
  ),
88
100
  light: themedClass(
89
101
  'inputBaseVariantsColorSchemeLight',
90
- 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-400',
102
+ 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-500',
91
103
  ),
92
104
  accent: themedClass(
93
105
  'inputBaseVariantsColorSchemeAccent',
94
- 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-400',
106
+ 'bg-white text-gray-950 ring-gray-200 dark:bg-white dark:ring-gray-200 dark:text-gray-950 placeholder:text-gray-500',
95
107
  ),
96
108
  },
97
109
  },
@@ -106,19 +118,19 @@ const floatingLabel = tv({
106
118
  colorScheme: {
107
119
  none: themedClass(
108
120
  'floatingLabelVariantsColorSchemeNone',
109
- 'text-gray-600 peer-placeholder-shown:text-gray-400 peer-focus:text-primary-600 dark:text-gray-400 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
121
+ 'text-gray-500 peer-placeholder-shown:text-gray-500 peer-focus:text-primary-600 dark:text-gray-500 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
110
122
  ),
111
123
  dark: themedClass(
112
124
  'floatingLabelVariantsColorSchemeDark',
113
- 'text-gray-300 peer-placeholder-shown:text-gray-500 peer-focus:text-primary-400 dark:text-gray-300 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
125
+ 'text-gray-500 peer-placeholder-shown:text-gray-500 peer-focus:text-primary-400 dark:text-gray-500 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
114
126
  ),
115
127
  light: themedClass(
116
128
  'floatingLabelVariantsColorSchemeLight',
117
- 'text-gray-600 peer-placeholder-shown:text-gray-400 peer-focus:text-primary-600 dark:text-gray-400 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
129
+ 'text-gray-500 peer-placeholder-shown:text-gray-500 peer-focus:text-primary-600 dark:text-gray-500 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
118
130
  ),
119
131
  accent: themedClass(
120
132
  'floatingLabelVariantsColorSchemeAccent',
121
- 'text-gray-600 peer-placeholder-shown:text-gray-400 peer-focus:text-primary-600 dark:text-gray-400 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
133
+ 'text-gray-500 peer-placeholder-shown:text-gray-500 peer-focus:text-primary-600 dark:text-gray-500 dark:peer-placeholder-shown:text-gray-500 dark:peer-focus:text-primary-400',
122
134
  ),
123
135
  },
124
136
  },
@@ -160,21 +172,28 @@ const floatingLabelText = tv({
160
172
  :description="floatingLabels ? undefined : cleanDescription"
161
173
  :help="floatingLabels ? cleanDescription : undefined"
162
174
  :ui="{
175
+ labelWrapper: themedClass('formFieldLabelWrapper', 'mb-1'),
163
176
  label: formFieldLabel({ colorScheme }),
164
177
  help: formFieldDescription({ colorScheme }),
165
178
  description: formFieldDescription({ colorScheme }),
179
+ wrapper: themedClass('formFieldWrapper', 'mb-2'),
166
180
  }"
167
181
  >
168
182
  <UInput
169
183
  v-model="model"
170
184
  :id="formElement.metadata.key"
171
185
  :type="formElement.metadata.type"
172
- :placeholder="floatingLabels ? (formElement.placeholder || ' ') : formElement.placeholder"
186
+ :placeholder="
187
+ floatingLabels
188
+ ? formElement.placeholder || ' '
189
+ : formElement.placeholder
190
+ "
173
191
  :maxlength="formElement.maxlength"
174
192
  :minlength="formElement.minlength"
175
193
  :pattern="formElement.pattern?.rule"
176
194
  :data-floating="floatingLabels"
177
195
  :ui="{
196
+ root: inputRoot({ colorScheme }),
178
197
  base: inputBase({ colorScheme }),
179
198
  }"
180
199
  >
@@ -183,7 +202,21 @@ const floatingLabelText = tv({
183
202
  :class="floatingLabel({ colorScheme })"
184
203
  :for="formElement.metadata.key"
185
204
  >
186
- <span :class="floatingLabelText({ colorScheme })">{{ formElement.metadata.title }}</span>
205
+ <span :class="floatingLabelText({ colorScheme })">
206
+ {{ formElement.metadata.title }}
207
+ <template v-if="formElement.metadata.required">
208
+ <span
209
+ :class="
210
+ themedClass(
211
+ 'floatingLabelRequiredStarClass',
212
+ 'ml-0.5 inline-block text-red-600',
213
+ )
214
+ "
215
+ >
216
+ *
217
+ </span>
218
+ </template>
219
+ </span>
187
220
  </label>
188
221
  </UInput>
189
222
  </UFormField>
@@ -157,7 +157,7 @@ const accordionItem = tv({
157
157
  const accordionTrigger = tv({
158
158
  base: themedClass(
159
159
  'accordionTriggerBase',
160
- 'items-center py-4 hover:no-underline gap-4 text-left text-base cursor-pointer',
160
+ 'items-center px-6 py-4 hover:no-underline gap-4 text-left text-base cursor-pointer',
161
161
  ),
162
162
  variants: {
163
163
  colorScheme: {
@@ -182,7 +182,7 @@ const accordionTrigger = tv({
182
182
  })
183
183
 
184
184
  const accordionContent = tv({
185
- base: themedClass('accordionContentBase', 'p-4 pb-6 text-base'),
185
+ base: themedClass('accordionContentBase', 'px-6 pt-4 pb-6 text-base'),
186
186
  variants: {
187
187
  colorScheme: {
188
188
  none: themedClass('accordionContentVariantsColorSchemeNone'),
@@ -44,28 +44,32 @@
44
44
  <UPopover
45
45
  v-model:open="openPopovers[field.field]"
46
46
  :class="popover({ colorScheme })"
47
+ :ui="{
48
+ content: themedClass(
49
+ 'popoverUiContentClass',
50
+ 'rounded-none ring-0',
51
+ ),
52
+ }"
47
53
  >
48
- <template #trigger>
49
- <button :class="popoverTrigger({ colorScheme })">
50
- <span
51
- :class="
52
- themedClass('popoverTriggerLabelClass', 'text-h8 truncate')
53
- "
54
- >
55
- {{ fieldTriggerLabel(field) }}
56
- </span>
57
- <SpriteSymbol
58
- name="chevron-down"
59
- aria-hidden="true"
60
- :class="[
61
- popoverTriggerIcon({ colorScheme }),
62
- openPopovers[field.field] ? 'rotate-180' : 'rotate-0',
63
- ]"
64
- />
65
- </button>
66
- </template>
67
-
68
- <template #panel>
54
+ <button type="button" :class="popoverTrigger({ colorScheme })">
55
+ <span
56
+ :class="
57
+ themedClass('popoverTriggerLabelClass', 'text-h8 truncate')
58
+ "
59
+ >
60
+ {{ fieldTriggerLabel(field) }}
61
+ </span>
62
+ <SpriteSymbol
63
+ name="chevron-down"
64
+ aria-hidden="true"
65
+ :class="[
66
+ popoverTriggerIcon({ colorScheme }),
67
+ openPopovers[field.field] ? 'rotate-180' : 'rotate-0',
68
+ ]"
69
+ />
70
+ </button>
71
+
72
+ <template #content>
69
73
  <div :class="popoverContent({ colorScheme })">
70
74
  <!-- Filter options container -->
71
75
  <div
@@ -87,7 +91,15 @@
87
91
  :model-value="
88
92
  selections[field.field]?.includes(opt.value)
89
93
  "
90
- :class="checkbox({ colorScheme })"
94
+ :ui="{
95
+ root: themedClass('filterOptionUCheckboxRoot'),
96
+ container: themedClass(
97
+ 'filterOptionUCheckboxContainer',
98
+ ),
99
+ base: checkboxBase({ colorScheme }),
100
+ indicator: checkboxIndicator({ colorScheme }),
101
+ icon: themedClass('filterOptionUCheckboxIcon'),
102
+ }"
91
103
  tabindex="-1"
92
104
  @click.stop
93
105
  />
@@ -558,28 +570,43 @@ const resetFiltersButton = tv({
558
570
  },
559
571
  })
560
572
 
561
- const checkbox = tv({
562
- base: themedClass(
563
- 'checkboxBase',
564
- 'pointer-events-none w-[18px] h-[18px] mt-0.5 transition-all duration-200',
565
- ),
573
+ const checkboxBase = tv({
574
+ base: themedClass('checkboxBase', 'rounded-none'),
575
+ variants: {
576
+ colorScheme: {
577
+ none: themedClass('checkboxBaseVariantsColorSchemeNone', 'ring-gray-200'),
578
+ dark: themedClass('checkboxBaseVariantsColorSchemeDark', 'ring-gray-800'),
579
+ light: themedClass(
580
+ 'checkboxBaseVariantsColorSchemeLight',
581
+ 'ring-gray-200',
582
+ ),
583
+ accent: themedClass(
584
+ 'checkboxBaseVariantsColorSchemeAccent',
585
+ 'ring-white',
586
+ ),
587
+ },
588
+ },
589
+ })
590
+
591
+ const checkboxIndicator = tv({
592
+ base: themedClass('checkboxIndicatorBase'),
566
593
  variants: {
567
594
  colorScheme: {
568
595
  none: themedClass(
569
- 'checkboxVariantsColorSchemeNone',
570
- 'text-black border-gray-200 dark:border-gray-200 bg-white dark:bg-white data-[state=checked]:bg-primary-500 dark:data-[state=checked]:bg-primary-500 text-white dark:text-white data-[state=checked]:text-white dark:data-[state=checked]:text-white data-[state=checked]:border-primary-500 dark:data-[state=checked]:border-primary',
596
+ 'checkboxIndicatorVariantsColorSchemeNone',
597
+ 'text-white',
571
598
  ),
572
599
  dark: themedClass(
573
- 'checkboxVariantsColorSchemeDark',
574
- 'text-gray-200 border-gray-800 dark:border-gray-800 bg-gray-800 dark:bg-gray-800 data-[state=checked]:bg-primary-500 dark:data-[state=checked]:bg-primary-500 text-gray-200 dark:text-gray-200 data-[state=checked]:text-gray-200 dark:data-[state=checked]:text-gray-200 data-[state=checked]:border-primary-500 dark:data-[state=checked]:border-primary',
600
+ 'checkboxIndicatorVariantsColorSchemeDark',
601
+ 'text-white',
575
602
  ),
576
603
  light: themedClass(
577
- 'checkboxVariantsColorSchemeLight',
578
- 'text-black border-gray-200 dark:border-gray-200 bg-gray-50 dark:bg-gray-50 data-[state=checked]:bg-primary-500 dark:data-[state=checked]:bg-primary-500 text-white dark:text-white data-[state=checked]:text-white dark:data-[state=checked]:text-white data-[state=checked]:border-primary-500 dark:data-[state=checked]:border-primary',
604
+ 'checkboxIndicatorVariantsColorSchemeLight',
605
+ 'text-white',
579
606
  ),
580
607
  accent: themedClass(
581
- 'checkboxVariantsColorSchemeAccent',
582
- 'text-white border-primary-600 dark:border-primary-600 bg-primary-600 dark:bg-primary-600 data-[state=checked]:bg-primary-600 dark:data-[state=checked]:bg-primary-600 text-white dark:text-white data-[state=checked]:text-white dark:data-[state=checked]:text-white data-[state=checked]:border-primary-600 dark:data-[state=checked]:border-primary-600',
608
+ 'checkboxIndicatorVariantsColorSchemeAccent',
609
+ 'text-primary bg-white',
583
610
  ),
584
611
  },
585
612
  },
@@ -180,21 +180,15 @@ Facets: {{ facetData.length }} items</pre
180
180
  "
181
181
  >
182
182
  <slot name="load-more" :loadMore="loadMore" :loading="loadingMore">
183
- <button
184
- @click="loadMore"
183
+ <DesignSystemAtomsButton
184
+ type="button"
185
+ :colorScheme="colorScheme"
186
+ buttonStyle="normal"
187
+ :label="loadingMore ? defaultLoadingText : defaultLoadMoreText"
185
188
  :disabled="loadingMore"
186
- :class="cn(button({ colorScheme }), loadMoreButtonClass)"
187
- >
188
- <span
189
- v-if="!loadingMore"
190
- :class="themedClass('globalLoadMoreButtonLabel')"
191
- >
192
- {{ defaultLoadMoreText }}
193
- </span>
194
- <span v-else :class="themedClass('globalLoadMoreLoadingButtonLabel')">
195
- {{ defaultLoadingText }}
196
- </span>
197
- </button>
189
+ :class="loadMoreButtonClass"
190
+ @click="loadMore"
191
+ />
198
192
  </slot>
199
193
  </div>
200
194
  </div>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  v-if="buttons?.length"
4
- :class="themedClass('containerClass', 'flex flex-col gap-2')"
4
+ :class="themedClass('containerClass', 'flex flex-wrap gap-2')"
5
5
  >
6
6
  <DesignSystemAtomsButton
7
7
  v-for="(link, key) in buttons"
@@ -13,6 +13,8 @@
13
13
  :target-blank="link?.targetBlank"
14
14
  :buttonClass="themedClass('buttonClass', 'xs:w-fit')"
15
15
  :labelClass="themedClass('labelClass')"
16
+ colorScheme="none"
17
+ buttonStyle="focus"
16
18
  @click="close()"
17
19
  />
18
20
  </div>
@@ -8,9 +8,9 @@
8
8
  <Media
9
9
  v-if="companyLogo"
10
10
  :media="companyLogo"
11
- :mediaClass="themedClass('mediaClass', 'h-10 2xl:h-16')"
11
+ :mediaClass="themedClass('mediaClass', 'h-8 2xl:h-10')"
12
12
  :figcaptionClass="themedClass('figcaptionClass')"
13
- :elementClass="themedClass('elementClass', 'h-10 2xl:h-16 w-auto')"
13
+ :elementClass="themedClass('elementClass', 'h-8 2xl:h-10 w-auto')"
14
14
  />
15
15
  </NuxtLink>
16
16
  </template>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  v-if="contactButtons?.length !== 0"
4
- :class="themedClass('containerClass', 'flex flex-col gap-2')"
4
+ :class="themedClass('containerClass', 'flex gap-2')"
5
5
  >
6
6
  <DesignSystemAtomsButton
7
7
  v-for="(link, key) in contactButtons"
@@ -13,6 +13,8 @@
13
13
  :target-blank="link?.targetBlank"
14
14
  :buttonClass="themedClass('buttonClass', 'xs:w-fit')"
15
15
  :labelClass="themedClass('labelClass')"
16
+ colorScheme="none"
17
+ buttonStyle="focus"
16
18
  @click="close()"
17
19
  />
18
20
  </div>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  v-if="metaLinks?.length !== 0"
4
- :class="themedClass('containerClass', 'flex flex-col gap-2')"
4
+ :class="themedClass('containerClass', 'flex gap-2')"
5
5
  >
6
6
  <DesignSystemAtomsButton
7
7
  v-for="(link, key) in metaLinks"
@@ -13,6 +13,8 @@
13
13
  :targetBlank="link?.targetBlank"
14
14
  :buttonClass="themedClass('buttonClass', 'xs:w-fit')"
15
15
  :labelClass="themedClass('labelClass')"
16
+ colorScheme="none"
17
+ buttonStyle="focus"
16
18
  @click="close()"
17
19
  />
18
20
  </div>
@@ -1,12 +1,12 @@
1
1
  <template>
2
2
  <nav
3
+ v-if="menuItems.length"
3
4
  :aria-label="
4
5
  $texts('meta_navigation.nav_aria_label_meta', 'Meta navigation menu')
5
6
  "
6
7
  :class="themedClass('containerClass', 'empty:hidden')"
7
8
  >
8
9
  <ul
9
- v-if="menuItems.length"
10
10
  :class="
11
11
  themedClass(
12
12
  'listClass',
@@ -3,7 +3,7 @@
3
3
  :aria-label="$texts('main_menu.nav_aria_label_main', 'Main navigation')"
4
4
  :class="themedClass('containerClass')"
5
5
  >
6
- <ul role="menu" :class="themedClass('listClass', 'flex flex-col gap-2')">
6
+ <ul role="menu" :class="themedClass('listClass', 'flex flex-col gap-4')">
7
7
  <MobileMainMenuItem
8
8
  v-for="item in menuItems"
9
9
  :key="item.id"
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <li
3
3
  role="menuitem"
4
- :class="themedClass('listItemClass', 'relative flex flex-col gap-2')"
4
+ :class="themedClass('listItemClass', 'relative flex flex-col gap-4')"
5
5
  >
6
6
  <div
7
7
  :class="
@@ -78,7 +78,7 @@
78
78
  <ul
79
79
  v-show="isOpen"
80
80
  :id="submenuId"
81
- :class="themedClass('submenuListClass', 'flex flex-col gap-2 pl-4')"
81
+ :class="themedClass('submenuListClass', 'flex flex-col gap-4 pl-4')"
82
82
  >
83
83
  <MobileMainMenuItem
84
84
  v-for="item in item.children"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iqual/nuxt-icms",
3
- "version": "1.5.7",
3
+ "version": "1.5.9",
4
4
  "description": "ICMS Base",
5
5
  "type": "module",
6
6
  "private": false,