@tekkare/romulus 0.1.341 → 0.1.343

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/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
- "version": "0.1.340",
7
+ "version": "0.1.342",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
@@ -73,7 +73,7 @@ const props = withDefaults(
73
73
  },
74
74
  )
75
75
 
76
- const emit = defineEmits<{ clearFilters: []; resetAll: []; saveScope: [] }>()
76
+ const emit = defineEmits<{ clearFilters: []; resetAll: []; saveScope: []; clearFilter: [key: string] }>()
77
77
 
78
78
  const LABELS = {
79
79
  fr: { title: 'Filtres', save: 'Sauvegarder un scope', clear: 'Effacer les filtres', reset: 'Tout réinitialiser', customize: 'Personnaliser', advanced: 'Recherche avancée' },
@@ -164,28 +164,6 @@ const orderedSummary = computed(() => {
164
164
 
165
165
  watch(() => props.summary, () => nextTick(readFieldOrder))
166
166
 
167
- /**
168
- * Les pills flottent sous la barre, par-dessus le contenu quand la page
169
- * defile. En haut de page, elles ne doivent rien recouvrir : la barre garde
170
- * en marge basse la hauteur de leur rangee (plusieurs lignes si elles
171
- * passent a la ligne).
172
- */
173
- const summaryEl = ref<HTMLElement | null>(null)
174
- const summaryHeight = ref(0)
175
- let summarySize: ResizeObserver | null = null
176
-
177
- watch(summaryEl, (el) => {
178
- summarySize?.disconnect()
179
- summarySize = null
180
- summaryHeight.value = 0
181
- if (!el) return
182
- summarySize = new ResizeObserver(() => {
183
- summaryHeight.value = el.offsetHeight
184
- })
185
- summarySize.observe(el)
186
- summaryHeight.value = el.offsetHeight
187
- })
188
-
189
167
  /**
190
168
  * Un clic hors de la barre referme le panneau ouvert. Les menus des listes
191
169
  * deroulantes, les popovers et les modales sont teleportes sous <body>, hors
@@ -261,8 +239,6 @@ onBeforeUnmount(() => {
261
239
  headerSize = null
262
240
  advancedSize?.disconnect()
263
241
  advancedSize = null
264
- summarySize?.disconnect()
265
- summarySize = null
266
242
  document.removeEventListener('pointerdown', onDocPointerDown)
267
243
  })
268
244
  </script>
@@ -273,11 +249,7 @@ onBeforeUnmount(() => {
273
249
  ref="root"
274
250
  class="rm-fbar"
275
251
  :class="panel ? 'rm-fbar--open' : 'rm-fbar--closed'"
276
- :style="{
277
- top: `${stickyTop}px`,
278
- '--rm-fbar-advanced-w': `${advancedWidth}px`,
279
- marginBottom: summaryHeight ? `calc(${summaryHeight}px + 2 * var(--space-8))` : undefined,
280
- }"
252
+ :style="{ top: `${stickyTop}px`, '--rm-fbar-advanced-w': `${advancedWidth}px` }"
281
253
  >
282
254
  <!-- La bande traverse le cadre ; la rangee, elle, se cale sur la colonne
283
255
  de contenu et ne s'en ecarte que si son contenu ne tient pas : un rail
@@ -366,12 +338,18 @@ onBeforeUnmount(() => {
366
338
  </div>
367
339
  </div>
368
340
 
369
- <!-- Panneau ferme, ce qui est filtre reste lisible : une pill par filtre
370
- pose, qui flotte sous la barre, hors de sa bande, par-dessus le
371
- contenu. Panneau ouvert, les champs le disent deja. -->
372
- <div v-if="$slots.Filters && summary?.length && !panel" ref="summaryEl" class="rm-fbar__summary">
341
+ <!-- Panneau ferme, ce qui est filtre reste lisible : une seconde bande,
342
+ plus foncee que la barre, une pill par filtre pose. La croix d'une
343
+ pill vide ce filtre (`clearFilter`), c'est la page qui sait le faire.
344
+ Panneau ouvert, les champs le disent deja. -->
345
+ <div v-if="$slots.Filters && summary?.length && !panel" class="rm-fbar__band rm-fbar__band--summary">
373
346
  <div class="rm-fbar__summary-row">
374
- <RmFilterSummary :items="orderedSummary" :lang="lang" @pick="openFilter" />
347
+ <RmFilterSummary
348
+ :items="orderedSummary"
349
+ :lang="lang"
350
+ @pick="openFilter"
351
+ @clear="(key) => emit('clearFilter', key)"
352
+ />
375
353
  </div>
376
354
  </div>
377
355
 
@@ -433,5 +411,5 @@ onBeforeUnmount(() => {
433
411
  </template>
434
412
 
435
413
  <style scoped>
436
- .rm-fbar{margin-inline:calc((min(var(--oip-content-max, 100%), 100%) - var(--oip-main-w, 100%))/2);position:sticky;width:var(--oip-main-w,100%);z-index:91;--rm-fbar-field-h:32px;backdrop-filter:blur(12px);background:color-mix(in srgb,var(--bg-surface-3) 80%,transparent);border-bottom:1px solid var(--border-default);display:flex;flex-direction:column;font-family:var(--font-sans)}.rm-fbar__summary{display:flex;justify-content:center;left:0;padding-inline:32px;pointer-events:none;position:absolute;right:0;top:calc(100% + var(--space-8))}.rm-fbar__summary-row{max-width:100%;min-width:min(100%,var(--oip-content-max,100%));width:-moz-max-content;width:max-content}.rm-fbar__summary :deep(.rm-fsum__pill){pointer-events:auto}.rm-fbar__views{align-items:center;display:flex;flex:0 0 auto}.rm-fbar__views:empty{display:none}.rm-fbar__band{display:flex;justify-content:center;padding-inline:32px}.rm-fbar__rail-row,.rm-fbar__row{max-width:100%;min-width:min(100%,var(--oip-content-max,100%));width:-moz-max-content;width:max-content}.rm-fbar__row{align-items:flex-start;display:flex;gap:var(--space-12);padding-block:8px}.rm-fbar--open .rm-fbar__band:not(:has(~.rm-fbar__band--rail)){border-bottom:1px solid var(--border-default)}.rm-fbar__toggle :deep(p),.rm-fbar__toggle :deep(span){font-size:inherit;font-weight:inherit;line-height:inherit;margin:0}.rm-fbar__toggle{align-items:center;background:var(--bg-surface);border:1px solid var(--border-default);border-radius:var(--radius-pill);color:var(--text-primary);cursor:pointer;display:flex;flex:0 0 auto;font-family:inherit;font-size:var(--font-14);font-weight:var(--weight-medium);gap:var(--space-6);height:var(--rm-fbar-field-h);justify-content:center;padding:0 14px}.rm-fbar__toggle:hover{background:var(--bg-surface-3)}.rm-fbar__toggle.is-active,.rm-fbar__toggle.is-active:hover{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-text-inverse)}.rm-fbar__toggle.is-active .rm-fbar__badge{background:var(--color-text-inverse);color:var(--color-primary)}.rm-fbar__badge{align-items:center;background:var(--color-primary);border-radius:16px;color:var(--color-text-inverse);display:inline-flex;font-size:var(--font-11);font-weight:var(--weight-bold);justify-content:center;min-width:18px;padding:0 5px}.rm-fbar__view{align-items:center;display:flex;flex:0 0 auto}.rm-fbar__advanced{align-items:center;background:none;border:none;border-left:1px solid var(--border-default);color:var(--color-primary);cursor:pointer;display:inline-flex;font-family:inherit;font-size:var(--font-13);font-weight:var(--weight-medium);height:var(--rm-fbar-field-h);padding:0 0 0 var(--space-12);position:absolute;right:14px;text-decoration-line:underline;top:0;white-space:nowrap;z-index:2}.rm-fbar__advanced.is-active,.rm-fbar__advanced:hover{color:var(--color-primary-hover,var(--color-primary));text-decoration-thickness:2px}.rm-fbar__rail-row{display:flex;padding-bottom:var(--space-8)}.rm-fbar--open .rm-fbar__band--rail{border-bottom:1px solid var(--border-default)}.rm-fbar__rail{align-items:center;display:flex;flex:0 1 auto;min-width:0;overflow-x:auto;scrollbar-width:thin}.rm-fbar__rail:empty{display:none}.rm-fbar__search{align-items:center;display:flex;flex:1 1 auto;gap:var(--space-8);min-width:0;position:relative}.rm-fbar__search:empty{display:none}.rm-fbar__search :deep(.rm-search-tags__field){border-radius:var(--radius-pill);box-sizing:border-box;height:var(--rm-fbar-field-h);padding-block:0;padding-right:calc(var(--rm-fbar-advanced-w, 0px) + 14px + var(--space-12))}.rm-fbar__search :deep(.rm-search-tags__field.is-open),.rm-fbar__search :deep(.rm-search-tags__field.is-panel){border-radius:var(--radius-pill)}.rm-fbar__search :deep(.rm-search-tags__list),.rm-fbar__search :deep(.rm-search-tags__panel){border-radius:var(--radius-2xl);border-top:1px solid var(--border-default);box-shadow:var(--shadow-lg);margin-top:var(--space-6);padding:var(--space-6)}.rm-fbar__search :deep(.rm-search-tags__option){border-radius:var(--radius-lg)}.rm-fbar__search :deep(.search-bar-wrapper){flex:1 1 auto;min-width:0}.rm-fbar__search :deep(.search-bar){background:var(--bg-surface);box-sizing:border-box;display:flex;height:var(--rm-fbar-field-h);width:100%}.rm-fbar__search :deep(.filters_input_search){border-radius:var(--radius-pill);box-sizing:border-box;height:auto;min-height:var(--rm-fbar-field-h);padding-right:calc(var(--rm-fbar-advanced-w, 0px) + var(--space-12));width:100%}.rm-fbar__search :deep(.research_tags:not(:has(*))){display:none}.rm-fbar__search :deep(.select_shortcut){box-sizing:border-box;font-size:var(--font-11);height:24px;padding-block:0}.rm-fbar__search :deep(.select_shortcut:hover){background:var(--bg-surface-3)!important;border-color:var(--border-default)!important;color:inherit!important}.rm-fbar__search :deep(.select_shortcut:hover svg){color:inherit!important}.rm-fbar__search :deep(.remove_search_section){border-left:none;border-radius:0 var(--radius-pill) var(--radius-pill) 0}.rm-fbar__search :deep(.remove_search_section:hover){background:transparent!important}.rm-fbar__search :deep(.remove_search_section:hover svg){color:var(--text-primary)!important}.rm-fbar__search :deep(.filters_input_search.no_bottom){border-bottom:1.5px solid var(--color-primary)!important;border-radius:var(--radius-pill)}.rm-fbar__search :deep(.search_suggestions){border:1px solid var(--border-default);border-radius:var(--radius-2xl);box-shadow:var(--shadow-lg);left:0;padding:var(--space-6);right:0;top:calc(100% + 6px);width:auto}.rm-fbar__search :deep(.sugg_container>*){border-radius:var(--radius-lg)}.rm-fbar__search :deep(.sugg_container>.selected){background:color-mix(in srgb,var(--color-primary) 6%,transparent)!important}.rm-fbar__panel{--rm-filter-col:224px;--rm-fbar-panel-field-h:40px;align-items:end;display:grid;gap:var(--space-8);grid-template-columns:repeat(auto-fit,minmax(0,var(--rm-filter-col)));justify-content:start;padding-block:16px 20px;padding-inline:max(32px,(100% - var(--oip-content-max,100%))/2 + 32px)}.rm-fbar__panel--wide{align-items:stretch;display:flex;flex-direction:column;gap:var(--space-12)}.rm-fbar__filters{display:contents}.rm-fbar__filters :deep(.filter-chip),.rm-fbar__filters :deep(.filter-complex__trigger),.rm-fbar__filters :deep(.rm-csel__field),.rm-fbar__filters :deep(.rm-dsel__field),.rm-fbar__filters :deep(.rm-msel__field),.rm-fbar__filters :deep(.rm-number__box){border-radius:var(--radius-lg);height:var(--rm-fbar-panel-field-h);width:100%}.rm-fbar__filters :deep(.rm-csel),.rm-fbar__filters :deep(.rm-dsel),.rm-fbar__filters :deep(.rm-msel){align-items:stretch;width:100%}.rm-fbar__panel-head{align-items:baseline;display:flex;gap:var(--space-16);grid-column:1/-1;width:100%}.rm-fbar__customize{grid-column:1/-1}.rm-fbar__panel :deep(.filters_row_break){grid-column:1/-1}.rm-fbar__panel-title{font-family:var(--font-serif);font-size:var(--font-18);font-weight:700;margin:0}.rm-fbar__action{background:none;border:none;cursor:pointer;font-family:inherit;font-size:var(--font-14);font-weight:var(--weight-medium);padding:0;text-decoration-line:underline}.rm-fbar__action--save{color:var(--color-primary)}.rm-fbar__action--clear{color:var(--color-danger)}.rm-fbar__action--clear:hover{opacity:.8;text-decoration-thickness:2px}.rm-fbar__action-sep{align-self:center;background:var(--border-default);height:14px;width:1px}
414
+ .rm-fbar{margin-inline:calc((min(var(--oip-content-max, 100%), 100%) - var(--oip-main-w, 100%))/2);position:sticky;width:var(--oip-main-w,100%);z-index:91;--rm-fbar-field-h:32px;backdrop-filter:blur(12px);background:color-mix(in srgb,var(--bg-surface-3) 80%,transparent);border-bottom:1px solid var(--border-default);display:flex;flex-direction:column;font-family:var(--font-sans)}.rm-fbar__band--summary{background:color-mix(in srgb,var(--color-primary) 4%,var(--bg-surface-3));border-top:1px solid var(--border-default)}.rm-fbar__summary-row{max-width:100%;min-width:min(100%,var(--oip-content-max,100%));padding-block:var(--space-6);width:-moz-max-content;width:max-content}.rm-fbar__views{align-items:center;display:flex;flex:0 0 auto}.rm-fbar__views:empty{display:none}.rm-fbar__band{display:flex;justify-content:center;padding-inline:32px}.rm-fbar__rail-row,.rm-fbar__row{max-width:100%;min-width:min(100%,var(--oip-content-max,100%));width:-moz-max-content;width:max-content}.rm-fbar__row{align-items:flex-start;display:flex;gap:var(--space-12);padding-block:8px}.rm-fbar--open .rm-fbar__band:not(:has(~.rm-fbar__band--rail)){border-bottom:1px solid var(--border-default)}.rm-fbar__toggle :deep(p),.rm-fbar__toggle :deep(span){font-size:inherit;font-weight:inherit;line-height:inherit;margin:0}.rm-fbar__toggle{align-items:center;background:var(--bg-surface);border:1px solid var(--border-default);border-radius:var(--radius-pill);color:var(--text-primary);cursor:pointer;display:flex;flex:0 0 auto;font-family:inherit;font-size:var(--font-14);font-weight:var(--weight-medium);gap:var(--space-6);height:var(--rm-fbar-field-h);justify-content:center;padding:0 14px}.rm-fbar__toggle:hover{background:var(--bg-surface-3)}.rm-fbar__toggle.is-active,.rm-fbar__toggle.is-active:hover{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-text-inverse)}.rm-fbar__toggle.is-active .rm-fbar__badge{background:var(--color-text-inverse);color:var(--color-primary)}.rm-fbar__badge{align-items:center;background:var(--color-primary);border-radius:16px;color:var(--color-text-inverse);display:inline-flex;font-size:var(--font-11);font-weight:var(--weight-bold);justify-content:center;min-width:18px;padding:0 5px}.rm-fbar__view{align-items:center;display:flex;flex:0 0 auto}.rm-fbar__advanced{align-items:center;background:none;border:none;border-left:1px solid var(--border-default);color:var(--color-primary);cursor:pointer;display:inline-flex;font-family:inherit;font-size:var(--font-13);font-weight:var(--weight-medium);height:var(--rm-fbar-field-h);padding:0 0 0 var(--space-12);position:absolute;right:14px;text-decoration-line:underline;top:0;white-space:nowrap;z-index:2}.rm-fbar__advanced.is-active,.rm-fbar__advanced:hover{color:var(--color-primary-hover,var(--color-primary));text-decoration-thickness:2px}.rm-fbar__rail-row{display:flex;padding-bottom:var(--space-8)}.rm-fbar--open .rm-fbar__band--rail{border-bottom:1px solid var(--border-default)}.rm-fbar__rail{align-items:center;display:flex;flex:0 1 auto;min-width:0;overflow-x:auto;scrollbar-width:thin}.rm-fbar__rail:empty{display:none}.rm-fbar__search{align-items:center;display:flex;flex:1 1 auto;gap:var(--space-8);min-width:0;position:relative}.rm-fbar__search:empty{display:none}.rm-fbar__search :deep(.rm-search-tags__field){border-radius:var(--radius-pill);box-sizing:border-box;height:var(--rm-fbar-field-h);padding-block:0;padding-right:calc(var(--rm-fbar-advanced-w, 0px) + 14px + var(--space-12))}.rm-fbar__search :deep(.rm-search-tags__field.is-open),.rm-fbar__search :deep(.rm-search-tags__field.is-panel){border-radius:var(--radius-pill)}.rm-fbar__search :deep(.rm-search-tags__list),.rm-fbar__search :deep(.rm-search-tags__panel){border-radius:var(--radius-2xl);border-top:1px solid var(--border-default);box-shadow:var(--shadow-lg);margin-top:var(--space-6);padding:var(--space-6)}.rm-fbar__search :deep(.rm-search-tags__option){border-radius:var(--radius-lg)}.rm-fbar__search :deep(.search-bar-wrapper){flex:1 1 auto;min-width:0}.rm-fbar__search :deep(.search-bar){background:var(--bg-surface);box-sizing:border-box;display:flex;height:var(--rm-fbar-field-h);width:100%}.rm-fbar__search :deep(.filters_input_search){border-radius:var(--radius-pill);box-sizing:border-box;height:auto;min-height:var(--rm-fbar-field-h);padding-right:calc(var(--rm-fbar-advanced-w, 0px) + var(--space-12));width:100%}.rm-fbar__search :deep(.research_tags:not(:has(*))){display:none}.rm-fbar__search :deep(.select_shortcut){box-sizing:border-box;font-size:var(--font-11);height:24px;padding-block:0}.rm-fbar__search :deep(.select_shortcut:hover){background:var(--bg-surface-3)!important;border-color:var(--border-default)!important;color:inherit!important}.rm-fbar__search :deep(.select_shortcut:hover svg){color:inherit!important}.rm-fbar__search :deep(.remove_search_section){border-left:none;border-radius:0 var(--radius-pill) var(--radius-pill) 0}.rm-fbar__search :deep(.remove_search_section:hover){background:transparent!important}.rm-fbar__search :deep(.remove_search_section:hover svg){color:var(--text-primary)!important}.rm-fbar__search :deep(.filters_input_search.no_bottom){border-bottom:1.5px solid var(--color-primary)!important;border-radius:var(--radius-pill)}.rm-fbar__search :deep(.search_suggestions){border:1px solid var(--border-default);border-radius:var(--radius-2xl);box-shadow:var(--shadow-lg);left:0;padding:var(--space-6);right:0;top:calc(100% + 6px);width:auto}.rm-fbar__search :deep(.sugg_container>*){border-radius:var(--radius-lg)}.rm-fbar__search :deep(.sugg_container>.selected){background:color-mix(in srgb,var(--color-primary) 6%,transparent)!important}.rm-fbar__panel{--rm-filter-col:224px;--rm-fbar-panel-field-h:40px;align-items:end;display:grid;gap:var(--space-8);grid-template-columns:repeat(auto-fit,minmax(0,var(--rm-filter-col)));justify-content:start;padding-block:16px 20px;padding-inline:max(32px,(100% - var(--oip-content-max,100%))/2 + 32px)}.rm-fbar__panel--wide{align-items:stretch;display:flex;flex-direction:column;gap:var(--space-12)}.rm-fbar__filters{display:contents}.rm-fbar__filters :deep(.filter-chip),.rm-fbar__filters :deep(.filter-complex__trigger),.rm-fbar__filters :deep(.rm-csel__field),.rm-fbar__filters :deep(.rm-dsel__field),.rm-fbar__filters :deep(.rm-msel__field),.rm-fbar__filters :deep(.rm-number__box){border-radius:var(--radius-lg);height:var(--rm-fbar-panel-field-h);width:100%}.rm-fbar__filters :deep(.rm-csel),.rm-fbar__filters :deep(.rm-dsel),.rm-fbar__filters :deep(.rm-msel){align-items:stretch;width:100%}.rm-fbar__panel-head{align-items:baseline;display:flex;gap:var(--space-16);grid-column:1/-1;width:100%}.rm-fbar__customize{grid-column:1/-1}.rm-fbar__panel :deep(.filters_row_break){grid-column:1/-1}.rm-fbar__panel-title{font-family:var(--font-serif);font-size:var(--font-18);font-weight:700;margin:0}.rm-fbar__action{background:none;border:none;cursor:pointer;font-family:inherit;font-size:var(--font-14);font-weight:var(--weight-medium);padding:0;text-decoration-line:underline}.rm-fbar__action--save{color:var(--color-primary)}.rm-fbar__action--clear{color:var(--color-danger)}.rm-fbar__action--clear:hover{opacity:.8;text-decoration-thickness:2px}.rm-fbar__action-sep{align-self:center;background:var(--border-default);height:14px;width:1px}
437
415
  </style>
@@ -5,7 +5,8 @@
5
5
  plus ce qui est selectionne. Une pill par filtre pose, « Libelle : valeurs »,
6
6
  tronquee quand elle est longue. Plusieurs valeurs : la liste complete sort au
7
7
  survol et au focus (RmTooltip), une par ligne. Un clic emet `pick` avec la
8
- cle du filtre : RmFilterBar ouvre alors son panneau sur ce filtre.
8
+ cle du filtre : RmFilterBar ouvre alors son panneau sur ce filtre. La croix
9
+ au bout emet `clear` : la page vide ce filtre.
9
10
 
10
11
  Le composant ne connait pas les filtres de la page : c'est elle qui decrit ce
11
12
  qui est pose (libelles traduits, valeurs lisibles, plage d'annees deja
@@ -32,11 +33,11 @@ const props = withDefaults(defineProps<{
32
33
  lang: 'fr',
33
34
  })
34
35
 
35
- const emit = defineEmits<{ pick: [key: string] }>()
36
+ const emit = defineEmits<{ pick: [key: string]; clear: [key: string] }>()
36
37
 
37
38
  const LABELS = {
38
- fr: { region: 'Filtres posés', edit: 'Modifier le filtre', sep: ' : ' },
39
- en: { region: 'Active filters', edit: 'Edit filter', sep: ' : ' },
39
+ fr: { region: 'Filtres posés', edit: 'Modifier le filtre', clear: 'Retirer le filtre', sep: ' : ' },
40
+ en: { region: 'Active filters', edit: 'Edit filter', clear: 'Remove filter', sep: ' : ' },
40
41
  } as const
41
42
 
42
43
  const t = computed(() => LABELS[props.lang] ?? LABELS.fr)
@@ -50,8 +51,9 @@ const pills = computed(() =>
50
51
 
51
52
  <template>
52
53
  <ul v-if="pills.length" class="rm-fsum" :aria-label="t.region">
53
- <li v-for="pill in pills" :key="pill.key" class="rm-fsum__item">
54
+ <li v-for="pill in pills" :key="pill.key" class="rm-fsum__pill">
54
55
  <RmTooltip
56
+ class="rm-fsum__tip"
55
57
  dir="bottom"
56
58
  full
57
59
  max-width="360px"
@@ -59,7 +61,7 @@ const pills = computed(() =>
59
61
  >
60
62
  <button
61
63
  type="button"
62
- class="rm-fsum__pill"
64
+ class="rm-fsum__open"
63
65
  :aria-label="`${t.edit} ${pill.label}${t.sep}${pill.values.join(', ')}`"
64
66
  @click="emit('pick', pill.key)"
65
67
  >
@@ -72,10 +74,18 @@ const pills = computed(() =>
72
74
  </ul>
73
75
  </template>
74
76
  </RmTooltip>
77
+ <button
78
+ type="button"
79
+ class="rm-fsum__clear"
80
+ :aria-label="`${t.clear} ${pill.label}`"
81
+ @click="emit('clear', pill.key)"
82
+ >
83
+ <RmIcon name="X" :size="10" />
84
+ </button>
75
85
  </li>
76
86
  </ul>
77
87
  </template>
78
88
 
79
89
  <style scoped>
80
- .rm-fsum{display:flex;flex-wrap:wrap;gap:var(--space-6);list-style:none;margin:0;padding:0}.rm-fsum__item{display:flex;min-width:0}.rm-fsum__pill{--rm-fsum-accent:var(--rm-shell-accent,var(--color-primary));align-items:center;background:color-mix(in srgb,var(--rm-fsum-accent) 16%,var(--rm-shell-surface,var(--bg-surface)));border:1px solid color-mix(in srgb,var(--rm-fsum-accent) 40%,transparent);border-radius:var(--radius-pill);box-shadow:var(--shadow-sm);color:var(--text-primary);cursor:pointer;display:inline-flex;font-family:inherit;font-size:var(--font-13);height:26px;max-width:340px;padding:0 var(--space-12);white-space:nowrap}.rm-fsum__pill:hover{background:color-mix(in srgb,var(--rm-fsum-accent) 26%,var(--rm-shell-surface,var(--bg-surface)));border-color:var(--rm-fsum-accent)}.rm-fsum__pill:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.rm-fsum__label{color:var(--text-secondary);flex:0 0 auto;white-space:pre}.rm-fsum__value{font-weight:var(--weight-medium);min-width:0;overflow:hidden;text-overflow:ellipsis}.rm-fsum__list{list-style:none;margin:0;padding:0;white-space:normal}.rm-fsum__list li+li{margin-top:var(--space-2,2px)}
90
+ .rm-fsum{display:flex;flex-wrap:wrap;gap:var(--space-6);list-style:none;margin:0;padding:0}.rm-fsum__pill{--rm-fsum-tint:var(--color-primary);align-items:center;background:color-mix(in srgb,var(--rm-fsum-tint) 10%,var(--bg-surface-3));border:1px solid color-mix(in srgb,var(--rm-fsum-tint) 18%,var(--border-default));border-radius:var(--radius-md);color:var(--text-primary);display:inline-flex;font-size:var(--font-12);height:22px;max-width:300px;min-width:0;padding:0 2px 0 var(--space-8)}.rm-fsum__pill:hover{border-color:color-mix(in srgb,var(--rm-fsum-tint) 45%,var(--border-default))}.rm-fsum__tip{min-width:0}.rm-fsum__open{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:inline-flex;font:inherit;max-width:100%;min-width:0;padding:0;white-space:nowrap}.rm-fsum__clear:focus-visible,.rm-fsum__open:focus-visible{border-radius:var(--radius-sm);outline:2px solid var(--color-primary);outline-offset:2px}.rm-fsum__clear{align-items:center;background:none;border:none;border-radius:var(--radius-sm);color:var(--text-secondary);cursor:pointer;display:inline-flex;flex:0 0 auto;height:16px;justify-content:center;margin-left:var(--space-4);padding:0;width:16px}.rm-fsum__clear:hover{background:color-mix(in srgb,var(--rm-fsum-tint) 16%,transparent);color:var(--text-primary)}.rm-fsum__label{color:var(--text-secondary);flex:0 0 auto;white-space:pre}.rm-fsum__value{font-weight:var(--weight-medium);min-width:0;overflow:hidden;text-overflow:ellipsis}.rm-fsum__list{list-style:none;margin:0;padding:0;white-space:normal}.rm-fsum__list li+li{margin-top:var(--space-2,2px)}
81
91
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/romulus",
3
- "version": "0.1.341",
3
+ "version": "0.1.343",
4
4
  "description": "Romulus Design System - Nuxt module by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",