@datagouv/components-next 1.5.1-dev.1397.g7333a397 → 1.5.1-dev.1399.g35c3eb9f
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/{Control-DPuXeUqi.js → Control-BbyEe8x_.js} +7 -7
- package/dist/{Datafair.client-LlEgG7WU.js → Datafair.client-CQNxPvZt.js} +1 -1
- package/dist/{Image-DVWRoLLI.js → Image-umPJvSA8.js} +16 -13
- package/dist/{ImagePreview.client-Db5dmxMP.js → ImagePreview.client-DbkBb47d.js} +1 -1
- package/dist/{JsonPreview.client-DKy2AexC.js → JsonPreview.client-Ba-_lUCj.js} +2 -2
- package/dist/{Layer-D_5tYbVm.js → Layer-CagLskq_.js} +67 -61
- package/dist/{Map-CTBJEae_.js → Map-Cek3vwVi.js} +1094 -932
- package/dist/{MapContainer.client-DoN1jSzM.js → MapContainer.client-BsJGdnP2.js} +7 -7
- package/dist/{OSM-B5Zc3qAf.js → OSM-Bm69tJpi.js} +1 -1
- package/dist/{PdfPreview.client-D3wHTDb9.js → PdfPreview.client-CJbZbXds.js} +3 -3
- package/dist/{PdfSkeleton-nas5Pmia.js → PdfSkeleton-sY8nI3Lv.js} +1 -1
- package/dist/{Pmtiles.client-DncYrZSp.js → Pmtiles.client-Wea3YvTU.js} +9997 -9276
- package/dist/{PreviewError-EeaGx3SL.js → PreviewError-BzUvwX47.js} +329 -290
- package/dist/{PreviewWrapper-BhldDdXK.js → PreviewWrapper-CwOJqQSn.js} +1 -1
- package/dist/{ScaleLine-C_tuJ6VG.js → ScaleLine-C8xmHdEk.js} +15 -8
- package/dist/Tile-DfivRbb3.js +479 -0
- package/dist/{Tile-8nHSuqcv.js → Tile-DvVc2IeI.js} +220 -151
- package/dist/{TileImage-CgO5alXc.js → TileImage-CxC7EP7_.js} +53 -45
- package/dist/{View-Dad8DfSD.js → View-44C9US2-.js} +210 -208
- package/dist/{XmlPreview.client-CmGbc3c3.js → XmlPreview.client-xXdnrUCW.js} +2 -2
- package/dist/assets/maplibre-gl-worker-Dlv-oLtU.js +10 -0
- package/dist/components-next.css +1 -1
- package/dist/components-next.js +11889 -10504
- package/dist/components.css +2 -2
- package/dist/{france-BtSQqcqV.js → france-BYzDEL-I.js} +23 -23
- package/dist/{proj-COhZ08DR.js → proj-0ED4AWuV.js} +260 -246
- package/dist/purify.es-D-UgLNEK.js +848 -0
- package/dist/{src-DJJgtynU.js → src-DdUvT8zT.js} +1972 -1306
- package/dist/{transform-CNeEnSK9.js → transform-bRfffInI.js} +3 -3
- package/package.json +18 -18
- package/src/components/AccessTypeBadge.vue +46 -0
- package/src/components/Badge.vue +74 -0
- package/src/components/ChartBadge.vue +17 -0
- package/src/components/ChartCard.vue +4 -17
- package/src/components/DataserviceBadge.vue +17 -0
- package/src/components/DataserviceCard.vue +12 -31
- package/src/components/DatasetBadge.vue +17 -0
- package/src/components/DatasetCard.vue +11 -15
- package/src/components/DatasetInformation/DatasetInformationSection.vue +3 -7
- package/src/components/DatasetInformation/DatasetSchemaSection.vue +1 -4
- package/src/components/DatasetLabelTag.vue +4 -15
- package/src/components/Form/SelectGroup.vue +0 -2
- package/src/components/LicenseBadge.vue +7 -12
- package/src/components/ObjectStatusBadge.vue +47 -0
- package/src/components/OrganizationBadge.vue +24 -0
- package/src/components/OrganizationTypeBadge.vue +5 -4
- package/src/components/ResourceAccordion/SchemaBadge.vue +6 -2
- package/src/components/ReuseBadge.vue +17 -0
- package/src/components/ReuseCard.vue +5 -20
- package/src/components/SchemaCard.vue +1 -5
- package/src/components/StatBox.vue +5 -3
- package/src/components/Tag.vue +61 -15
- package/src/functions/objectStatus.ts +34 -0
- package/src/main.ts +25 -3
- package/src/types/ui.ts +2 -0
- package/dist/Tile-Bu5lF4M5.js +0 -463
- package/dist/assets/maplibre-gl-worker-CEzvAyZY.js +0 -10
- package/dist/purify.es-eElsWhh7.js +0 -876
- package/src/components/ObjectCardBadge.vue +0 -33
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<span
|
|
3
|
-
class="inline-flex items-center gap-1 max-w-full min-h-6 px-2 py-0.5 rounded border border-current/20 text-xs/[18px] font-medium"
|
|
4
|
-
:class="toneClass"
|
|
5
|
-
>
|
|
6
|
-
<component
|
|
7
|
-
:is="icon"
|
|
8
|
-
v-if="icon"
|
|
9
|
-
class="size-3.5 flex-none"
|
|
10
|
-
aria-hidden="true"
|
|
11
|
-
/>
|
|
12
|
-
<span class="min-w-0 [overflow-wrap:anywhere]"><slot /></span>
|
|
13
|
-
</span>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script setup lang="ts">
|
|
17
|
-
import { computed, type Component } from 'vue'
|
|
18
|
-
|
|
19
|
-
const props = withDefaults(defineProps<{
|
|
20
|
-
icon?: Component | null
|
|
21
|
-
tone?: 'neutral' | 'info' | 'warning' | 'yellow' | 'danger'
|
|
22
|
-
}>(), {
|
|
23
|
-
tone: 'neutral',
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
const toneClass = computed(() => ({
|
|
27
|
-
neutral: 'bg-gray-lower text-gray-plain',
|
|
28
|
-
info: 'bg-blue-france-contrast text-new-primary',
|
|
29
|
-
warning: 'bg-new-warning-light text-new-warning',
|
|
30
|
-
yellow: 'bg-warning2-lightest text-warning2-dark',
|
|
31
|
-
danger: 'bg-new-error-light text-new-error',
|
|
32
|
-
})[props.tone])
|
|
33
|
-
</script>
|