@datagouv/components-next 0.0.25 → 0.0.26
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/{JsonPreview.client-D7nu4jr7.js → JsonPreview.client-BcEfE_hL.js} +1 -1
- package/dist/{MapContainer.client-DRQQqp1n.js → MapContainer.client-CnTKaf7m.js} +1 -1
- package/dist/{PdfPreview.client-j2TDRZe5.js → PdfPreview.client-CP0aZ7i4.js} +1 -1
- package/dist/{Pmtiles.client-bGQAS7Bw.js → Pmtiles.client-C08OX9MO.js} +1 -1
- package/dist/Swagger.client-DhNaLxjG.js +4 -0
- package/dist/{XmlPreview.client-K2hRL5s7.js → XmlPreview.client-B1wI3spd.js} +2 -2
- package/dist/components-next.js +57 -56
- package/dist/components.css +1 -1
- package/dist/{main-qCXX5fcf.js → main-GTyyeszt.js} +7975 -7963
- package/dist/{vue3-xml-viewer.common-BZLPbkUq.js → vue3-xml-viewer.common-YFdchaJI.js} +1 -1
- package/package.json +1 -1
- package/src/components/AnimatedLoader.vue +19 -0
- package/src/components/BrandedButton.vue +2 -1
- package/src/main.ts +2 -0
- package/dist/Swagger.client-CzgEk61z.js +0 -4
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { RiLoader5Line } from '@remixicon/vue'
|
|
3
|
+
|
|
4
|
+
withDefaults(defineProps<{
|
|
5
|
+
color?: 'primary' | 'white'
|
|
6
|
+
}>(), {
|
|
7
|
+
color: 'primary',
|
|
8
|
+
})
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<RiLoader5Line
|
|
13
|
+
class=" text-7xl animate-spin"
|
|
14
|
+
:class="{
|
|
15
|
+
'text-primary': color === 'primary',
|
|
16
|
+
'text-white': color === 'white',
|
|
17
|
+
}"
|
|
18
|
+
/>
|
|
19
|
+
</template>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
:target="newTab ? '_blank' : undefined"
|
|
12
12
|
:type
|
|
13
13
|
>
|
|
14
|
-
<
|
|
14
|
+
<AnimatedLoader
|
|
15
15
|
v-if="loading"
|
|
16
16
|
size="16"
|
|
17
17
|
:color="color === 'primary' ? 'white' : 'primary'"
|
|
@@ -51,6 +51,7 @@ import { RiExternalLinkLine } from '@remixicon/vue'
|
|
|
51
51
|
import type { RouteLocation } from 'vue-router'
|
|
52
52
|
import AppLink from './AppLink.vue'
|
|
53
53
|
import { bannerActionTypeKey } from './BannerAction.vue'
|
|
54
|
+
import AnimatedLoader from './AnimatedLoader.vue'
|
|
54
55
|
|
|
55
56
|
type ColorType = 'primary' | 'primary-soft' | 'primary-softer' | 'secondary' | 'secondary-softer' | 'warning' | 'danger' | 'tertiary'
|
|
56
57
|
|
package/src/main.ts
CHANGED
|
@@ -16,6 +16,7 @@ import type { Site } from './types/site'
|
|
|
16
16
|
import type { Weight, WellType } from './types/ui'
|
|
17
17
|
import type { User } from './types/users'
|
|
18
18
|
|
|
19
|
+
import AnimatedLoader from './components/AnimatedLoader.vue'
|
|
19
20
|
import AppLink from './components/AppLink.vue'
|
|
20
21
|
import Avatar from './components/Avatar.vue'
|
|
21
22
|
import AvatarWithName from './components/AvatarWithName.vue'
|
|
@@ -123,6 +124,7 @@ const datagouv: Plugin<PluginConfig> = {
|
|
|
123
124
|
export {
|
|
124
125
|
datagouv,
|
|
125
126
|
useComponentsConfig,
|
|
127
|
+
AnimatedLoader,
|
|
126
128
|
AppLink,
|
|
127
129
|
Avatar,
|
|
128
130
|
AvatarWithName,
|