origam 2.26.2 → 2.27.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.
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,31 @@ This project follows [Semantic Versioning](https://semver.org).
|
|
|
18
18
|
|
|
19
19
|
## [Unreleased]
|
|
20
20
|
|
|
21
|
+
## [2.27.0] - 2026-10-15
|
|
22
|
+
|
|
23
|
+
### Removed — `OrigamSkeleton` : les gabarits `card` et `list-item` (BREAKING, #1073 lot 3, #1083)
|
|
24
|
+
|
|
25
|
+
Decision 4 de #1073. Les deux gabarits composites figes disparaissent ; il ne reste que les quatre primitives `text`, `rectangular`, `circular`, `pill`. Rupture assumee (pre-1.0, aucun consommateur externe), livree dans un minor.
|
|
26
|
+
|
|
27
|
+
Retire :
|
|
28
|
+
|
|
29
|
+
- `SKELETON_VARIANT.CARD` et `SKELETON_VARIANT.LIST_ITEM`, donc `TSkeletonVariant` ne vaut plus que `'text' | 'rectangular' | 'circular' | 'pill'` ;
|
|
30
|
+
- les classes `.origam-skeleton-wrapper`, `.origam-skeleton-wrapper--card`, `.origam-skeleton-wrapper--list-item` et `.origam-skeleton__lines`, ainsi que leurs regles scoped. Aucun token n'est retire : `--origam-skeleton---gap` reste lu par `OrigamSkeletonGroup`.
|
|
31
|
+
|
|
32
|
+
Les consommateurs internes avaient deja migre : `OrigamCard` (#1089, lot 2b) et `wireframe.vue` (#1084, lot 2c) ne passent plus par ces gabarits.
|
|
33
|
+
|
|
34
|
+
Migration : `<origam-skeleton variant="card" />` et `variant="list-item"` rendaient un `<div class="origam-skeleton-wrapper--…">` de primitives. On compose maintenant ces primitives soi-meme dans un `OrigamSkeletonGroup`, qui porte l'unique annonce `role="status"` de la zone et la meme horloge d'animation :
|
|
35
|
+
|
|
36
|
+
```vue
|
|
37
|
+
<origam-skeleton-group>
|
|
38
|
+
<origam-skeleton variant="circular" />
|
|
39
|
+
<origam-skeleton variant="text" width="60%" />
|
|
40
|
+
<origam-skeleton variant="text" width="40%" />
|
|
41
|
+
</origam-skeleton-group>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Un `variant="card"` ou `"list-item"` restant n'est plus type (erreur `vue-tsc`) ; a l'execution la classe `origam-skeleton--card` / `--list-item` n'a plus aucune regle CSS associee : il n'y a plus de gabarit.
|
|
45
|
+
|
|
21
46
|
## [2.26.2] - 2026-10-15
|
|
22
47
|
|
|
23
48
|
### Fixed — un theme sans `name` avec `mode` l'emporte sur la palette integree du meme mode (#1102)
|
|
@@ -3,54 +3,6 @@
|
|
|
3
3
|
<slot/>
|
|
4
4
|
</template>
|
|
5
5
|
|
|
6
|
-
<div
|
|
7
|
-
v-else-if="isListItem"
|
|
8
|
-
:id="id"
|
|
9
|
-
:class="skeletonContainerClasses"
|
|
10
|
-
:style="skeletonContainerStyles"
|
|
11
|
-
v-bind="{ ...a11yAttrs, ...$attrs }"
|
|
12
|
-
>
|
|
13
|
-
<div
|
|
14
|
-
:class="skeletonCircularClasses"
|
|
15
|
-
aria-hidden="true"
|
|
16
|
-
/>
|
|
17
|
-
<div class="origam-skeleton__lines">
|
|
18
|
-
<div
|
|
19
|
-
:class="skeletonTextClasses"
|
|
20
|
-
aria-hidden="true"
|
|
21
|
-
/>
|
|
22
|
-
<div
|
|
23
|
-
:class="skeletonTextClasses"
|
|
24
|
-
aria-hidden="true"
|
|
25
|
-
/>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
<div
|
|
30
|
-
v-else-if="isCard"
|
|
31
|
-
:id="id"
|
|
32
|
-
:class="skeletonContainerClasses"
|
|
33
|
-
:style="skeletonContainerStyles"
|
|
34
|
-
v-bind="{ ...a11yAttrs, ...$attrs }"
|
|
35
|
-
>
|
|
36
|
-
<div
|
|
37
|
-
:class="skeletonRectangularClasses"
|
|
38
|
-
aria-hidden="true"
|
|
39
|
-
/>
|
|
40
|
-
<div
|
|
41
|
-
:class="skeletonTextClasses"
|
|
42
|
-
aria-hidden="true"
|
|
43
|
-
/>
|
|
44
|
-
<div
|
|
45
|
-
:class="skeletonTextClasses"
|
|
46
|
-
aria-hidden="true"
|
|
47
|
-
/>
|
|
48
|
-
<div
|
|
49
|
-
:class="skeletonTextClasses"
|
|
50
|
-
aria-hidden="true"
|
|
51
|
-
/>
|
|
52
|
-
</div>
|
|
53
|
-
|
|
54
6
|
<div
|
|
55
7
|
v-else
|
|
56
8
|
:id="id"
|
|
@@ -68,7 +20,7 @@ import { useProps } from "../../composables/Commons/props.composable";
|
|
|
68
20
|
import { useRounded } from "../../composables/Commons/rounded.composable";
|
|
69
21
|
import { useSize } from "../../composables/Commons/size.composable";
|
|
70
22
|
import { ORIGAM_SKELETON_GROUP_KEY } from "../../consts/Skeleton/skeleton.const";
|
|
71
|
-
import { SKELETON_ANIMATION
|
|
23
|
+
import { SKELETON_ANIMATION } from "../../enums/Skeleton/skeleton.enum";
|
|
72
24
|
import { getSkeletonHostClasses } from "../../utils/Skeleton/skeleton.util";
|
|
73
25
|
import { computed, inject, toRef } from "vue";
|
|
74
26
|
defineOptions({ inheritAttrs: false });
|
|
@@ -119,30 +71,7 @@ const a11yAttrs = computed(() => {
|
|
|
119
71
|
"aria-label": skeletonAriaLabel.value
|
|
120
72
|
};
|
|
121
73
|
});
|
|
122
|
-
const isListItem = computed(() => props.variant === SKELETON_VARIANT.LIST_ITEM);
|
|
123
|
-
const isCard = computed(() => props.variant === SKELETON_VARIANT.CARD);
|
|
124
74
|
const animationClasses = computed(() => getSkeletonHostClasses(animation.value));
|
|
125
|
-
const skeletonCircularClasses = computed(() => [
|
|
126
|
-
"origam-skeleton",
|
|
127
|
-
"origam-skeleton--circular",
|
|
128
|
-
animationClasses.value
|
|
129
|
-
]);
|
|
130
|
-
const skeletonTextClasses = computed(() => [
|
|
131
|
-
"origam-skeleton",
|
|
132
|
-
"origam-skeleton--text",
|
|
133
|
-
animationClasses.value
|
|
134
|
-
]);
|
|
135
|
-
const skeletonRectangularClasses = computed(() => [
|
|
136
|
-
"origam-skeleton",
|
|
137
|
-
"origam-skeleton--rectangular",
|
|
138
|
-
animationClasses.value
|
|
139
|
-
]);
|
|
140
|
-
const skeletonContainerClasses = computed(() => [
|
|
141
|
-
"origam-skeleton-wrapper",
|
|
142
|
-
`origam-skeleton-wrapper--${props.variant}`,
|
|
143
|
-
props.class
|
|
144
|
-
]);
|
|
145
|
-
const skeletonContainerStyles = computed(() => [props.style]);
|
|
146
75
|
const skeletonClasses = computed(() => [
|
|
147
76
|
"origam-skeleton",
|
|
148
77
|
`origam-skeleton--${props.variant}`,
|
|
@@ -195,54 +124,4 @@ defineExpose({
|
|
|
195
124
|
border-radius: var(--origam-skeleton---border-radius-pill);
|
|
196
125
|
}
|
|
197
126
|
}
|
|
198
|
-
|
|
199
|
-
.origam-skeleton-wrapper {
|
|
200
|
-
&--list-item {
|
|
201
|
-
display: flex;
|
|
202
|
-
gap: var(--origam-skeleton---gap, 12px);
|
|
203
|
-
align-items: center;
|
|
204
|
-
|
|
205
|
-
> .origam-skeleton__lines {
|
|
206
|
-
flex: 1;
|
|
207
|
-
display: flex;
|
|
208
|
-
flex-direction: column;
|
|
209
|
-
gap: 6px;
|
|
210
|
-
|
|
211
|
-
> .origam-skeleton:nth-child(1) {
|
|
212
|
-
width: 60%;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
> .origam-skeleton:nth-child(2) {
|
|
216
|
-
width: 40%;
|
|
217
|
-
opacity: 0.7;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
&--card {
|
|
223
|
-
display: flex;
|
|
224
|
-
flex-direction: column;
|
|
225
|
-
|
|
226
|
-
> .origam-skeleton:nth-child(1) {
|
|
227
|
-
height: 80px;
|
|
228
|
-
margin-bottom: 10px;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
> .origam-skeleton:nth-child(2) {
|
|
232
|
-
width: 70%;
|
|
233
|
-
margin-bottom: 6px;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
> .origam-skeleton:nth-child(3) {
|
|
237
|
-
width: 90%;
|
|
238
|
-
margin-bottom: 4px;
|
|
239
|
-
opacity: 0.7;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
> .origam-skeleton:nth-child(4) {
|
|
243
|
-
width: 50%;
|
|
244
|
-
opacity: 0.7;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
127
|
</style>
|
|
@@ -9,8 +9,6 @@ var SKELETON_VARIANT = exports.SKELETON_VARIANT = /* @__PURE__ */(SKELETON_VARIA
|
|
|
9
9
|
SKELETON_VARIANT2["RECTANGULAR"] = "rectangular";
|
|
10
10
|
SKELETON_VARIANT2["CIRCULAR"] = "circular";
|
|
11
11
|
SKELETON_VARIANT2["PILL"] = "pill";
|
|
12
|
-
SKELETON_VARIANT2["CARD"] = "card";
|
|
13
|
-
SKELETON_VARIANT2["LIST_ITEM"] = "list-item";
|
|
14
12
|
return SKELETON_VARIANT2;
|
|
15
13
|
})(SKELETON_VARIANT || {});
|
|
16
14
|
var SKELETON_ANIMATION = exports.SKELETON_ANIMATION = /* @__PURE__ */(SKELETON_ANIMATION2 => {
|
|
@@ -4,16 +4,13 @@
|
|
|
4
4
|
* @description
|
|
5
5
|
* Shape presets for `<OrigamSkeleton>`. `text`, `rectangular`, `circular`
|
|
6
6
|
* and `pill` are the PRIMITIVES — the bricks a component assembles to mimic
|
|
7
|
-
* its own anatomy
|
|
8
|
-
* until the components that consume them have moved to primitives.
|
|
7
|
+
* its own anatomy, inside an `<OrigamSkeletonGroup>`.
|
|
9
8
|
********************************************************/
|
|
10
9
|
export declare enum SKELETON_VARIANT {
|
|
11
10
|
TEXT = "text",
|
|
12
11
|
RECTANGULAR = "rectangular",
|
|
13
12
|
CIRCULAR = "circular",
|
|
14
|
-
PILL = "pill"
|
|
15
|
-
CARD = "card",
|
|
16
|
-
LIST_ITEM = "list-item"
|
|
13
|
+
PILL = "pill"
|
|
17
14
|
}
|
|
18
15
|
/*********************************************************
|
|
19
16
|
* SKELETON_ANIMATION
|
|
@@ -3,8 +3,6 @@ export var SKELETON_VARIANT = /* @__PURE__ */ ((SKELETON_VARIANT2) => {
|
|
|
3
3
|
SKELETON_VARIANT2["RECTANGULAR"] = "rectangular";
|
|
4
4
|
SKELETON_VARIANT2["CIRCULAR"] = "circular";
|
|
5
5
|
SKELETON_VARIANT2["PILL"] = "pill";
|
|
6
|
-
SKELETON_VARIANT2["CARD"] = "card";
|
|
7
|
-
SKELETON_VARIANT2["LIST_ITEM"] = "list-item";
|
|
8
6
|
return SKELETON_VARIANT2;
|
|
9
7
|
})(SKELETON_VARIANT || {});
|
|
10
8
|
export var SKELETON_ANIMATION = /* @__PURE__ */ ((SKELETON_ANIMATION2) => {
|