@avenirs-esr/avenirs-dsav 0.1.98 → 0.1.99
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/avenirs-dsav.css +1 -1
- package/dist/components/cards/AvCard/AvCard.stories.d.ts +1 -0
- package/dist/components/cards/AvCard/AvCard.stub.d.ts +64 -0
- package/dist/components/cards/AvCard/AvCard.vue.d.ts +5 -0
- package/dist/components/cards/index.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +13 -6
- package/dist/test-utils.cjs.js +14 -14
- package/dist/test-utils.es.js +51 -38
- package/dist/tests/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/test-utils.es.js
CHANGED
|
@@ -53,6 +53,18 @@ const v = e({
|
|
|
53
53
|
template: '<div class="av-icon-text" />',
|
|
54
54
|
props: ["icon", "text", "icon-color", "text-color"]
|
|
55
55
|
}), A = e({
|
|
56
|
+
name: "AvCard",
|
|
57
|
+
props: {
|
|
58
|
+
titleOnly: { type: Boolean, default: !1 },
|
|
59
|
+
baclgroundColor: { type: String, default: "var(--card)" },
|
|
60
|
+
borderColor: { type: String, default: "var(--stroke)" },
|
|
61
|
+
titleBackground: { type: String, default: "var(--surface-background)" },
|
|
62
|
+
titleHeight: { type: String },
|
|
63
|
+
collapsible: { type: Boolean, default: !1 },
|
|
64
|
+
collapsed: { type: Boolean, default: !1 }
|
|
65
|
+
},
|
|
66
|
+
template: '<div class="av-card"><slot name="title" /><slot /></div>'
|
|
67
|
+
}), h = e({
|
|
56
68
|
name: "AvAccordion",
|
|
57
69
|
props: ["title", "icon"],
|
|
58
70
|
template: `
|
|
@@ -70,15 +82,15 @@ const v = e({
|
|
|
70
82
|
setup(a) {
|
|
71
83
|
const t = n(c);
|
|
72
84
|
if (!t) {
|
|
73
|
-
const
|
|
74
|
-
return { isActive:
|
|
75
|
-
|
|
85
|
+
const o = s(!1);
|
|
86
|
+
return { isActive: o, expand: () => {
|
|
87
|
+
o.value = !o.value;
|
|
76
88
|
} };
|
|
77
89
|
}
|
|
78
|
-
const { isActive:
|
|
79
|
-
return { isActive:
|
|
90
|
+
const { isActive: l, expand: i } = t(r(a, "title"));
|
|
91
|
+
return { isActive: l, expand: i };
|
|
80
92
|
}
|
|
81
|
-
}),
|
|
93
|
+
}), y = e({
|
|
82
94
|
name: "AvButton",
|
|
83
95
|
props: {
|
|
84
96
|
variant: { type: String, default: "DEFAULT" },
|
|
@@ -103,7 +115,7 @@ const v = e({
|
|
|
103
115
|
{{ label }}
|
|
104
116
|
</button>
|
|
105
117
|
`
|
|
106
|
-
}),
|
|
118
|
+
}), k = e({
|
|
107
119
|
name: "AvCancelConfirmButtons",
|
|
108
120
|
props: [
|
|
109
121
|
"cancelLabel",
|
|
@@ -132,7 +144,7 @@ const v = e({
|
|
|
132
144
|
</button>
|
|
133
145
|
</div>
|
|
134
146
|
`
|
|
135
|
-
}),
|
|
147
|
+
}), x = e({
|
|
136
148
|
name: "AvCheckbox",
|
|
137
149
|
props: {
|
|
138
150
|
id: { type: String, default: "" },
|
|
@@ -159,7 +171,7 @@ const v = e({
|
|
|
159
171
|
<label :for="id"><slot name="label">{{ label }}</slot></label>
|
|
160
172
|
</div>
|
|
161
173
|
`
|
|
162
|
-
}),
|
|
174
|
+
}), B = e({
|
|
163
175
|
name: "AvInput",
|
|
164
176
|
props: {
|
|
165
177
|
modelValue: String,
|
|
@@ -189,7 +201,7 @@ const v = e({
|
|
|
189
201
|
},
|
|
190
202
|
emits: ["update:modelValue"],
|
|
191
203
|
template: '<input data-testid="av-input-stub" :value="modelValue" :placeholder="placeholder" :disabled="disabled" :required="required" :maxlength="maxlength" /><slot name="customCaptions" :current-value="modelValue" />'
|
|
192
|
-
}),
|
|
204
|
+
}), C = e({
|
|
193
205
|
name: "AvList",
|
|
194
206
|
props: ["size"],
|
|
195
207
|
template: `
|
|
@@ -207,7 +219,7 @@ const v = e({
|
|
|
207
219
|
>
|
|
208
220
|
<slot />
|
|
209
221
|
</div>`
|
|
210
|
-
}),
|
|
222
|
+
}), I = e({
|
|
211
223
|
name: "AvTagPicker",
|
|
212
224
|
props: [
|
|
213
225
|
"label",
|
|
@@ -227,7 +239,7 @@ const v = e({
|
|
|
227
239
|
</button>
|
|
228
240
|
</div>
|
|
229
241
|
`
|
|
230
|
-
}),
|
|
242
|
+
}), L = e({
|
|
231
243
|
name: "AvAutocomplete",
|
|
232
244
|
props: [
|
|
233
245
|
"modelValue",
|
|
@@ -254,7 +266,7 @@ const v = e({
|
|
|
254
266
|
/>
|
|
255
267
|
</div>
|
|
256
268
|
`
|
|
257
|
-
}),
|
|
269
|
+
}), M = e({
|
|
258
270
|
name: "AvSelect",
|
|
259
271
|
props: {
|
|
260
272
|
modelValue: [String, Number],
|
|
@@ -294,7 +306,7 @@ const v = e({
|
|
|
294
306
|
<span v-if="!errorMessage && successMessage">{{ successMessage }}</span>
|
|
295
307
|
</select>
|
|
296
308
|
`
|
|
297
|
-
}),
|
|
309
|
+
}), T = e({
|
|
298
310
|
name: "AvToggle",
|
|
299
311
|
props: ["id", "name", "modelValue", "description", "activeText", "inactiveText", "disabled"],
|
|
300
312
|
emits: ["update:modelValue"],
|
|
@@ -317,11 +329,11 @@ const v = e({
|
|
|
317
329
|
{{ inactiveText }}
|
|
318
330
|
</span>
|
|
319
331
|
</div>`
|
|
320
|
-
}),
|
|
332
|
+
}), $ = e({
|
|
321
333
|
name: "AvBreadcrumb",
|
|
322
334
|
template: '<div class="av-breadcrumb-stub" />',
|
|
323
335
|
props: ["links", "navigationLabel", "showBreadcrumbLabel"]
|
|
324
|
-
}),
|
|
336
|
+
}), N = e({
|
|
325
337
|
name: "AvSideNavigation",
|
|
326
338
|
props: {
|
|
327
339
|
items: Array,
|
|
@@ -336,7 +348,7 @@ const v = e({
|
|
|
336
348
|
@click="$emit('update:isSideMenuCollapsed', !isSideMenuCollapsed)"
|
|
337
349
|
/>
|
|
338
350
|
`
|
|
339
|
-
}),
|
|
351
|
+
}), w = e({
|
|
340
352
|
name: "AvStepper",
|
|
341
353
|
props: {
|
|
342
354
|
steps: {
|
|
@@ -360,7 +372,7 @@ const v = e({
|
|
|
360
372
|
</div>
|
|
361
373
|
</div>
|
|
362
374
|
`
|
|
363
|
-
}),
|
|
375
|
+
}), q = e({
|
|
364
376
|
name: "AvDrawer",
|
|
365
377
|
props: ["show", "position", "width"],
|
|
366
378
|
emits: ["escape-pressed"],
|
|
@@ -370,7 +382,7 @@ const v = e({
|
|
|
370
382
|
<slot name="footer" />
|
|
371
383
|
</div>
|
|
372
384
|
`
|
|
373
|
-
}),
|
|
385
|
+
}), D = e({
|
|
374
386
|
name: "AvDropdown",
|
|
375
387
|
props: ["items", "triggerAriaLabel", "triggerIcon", "triggerLabel", "triggerVariant", "triggerSmall", "padding"],
|
|
376
388
|
emits: ["itemSelected"],
|
|
@@ -386,7 +398,7 @@ const v = e({
|
|
|
386
398
|
</button>
|
|
387
399
|
</div>
|
|
388
400
|
`
|
|
389
|
-
}),
|
|
401
|
+
}), O = e({
|
|
390
402
|
name: "AvModal",
|
|
391
403
|
props: ["opened", "closeButtonLabel", "confirmButtonLabel", "confirmButtonIcon"],
|
|
392
404
|
emits: ["close", "confirm"],
|
|
@@ -398,7 +410,7 @@ const v = e({
|
|
|
398
410
|
</div>
|
|
399
411
|
`
|
|
400
412
|
});
|
|
401
|
-
function
|
|
413
|
+
function H() {
|
|
402
414
|
return {
|
|
403
415
|
given(a, t) {
|
|
404
416
|
return describe(`🔵 GIVEN ${a}`, t), this;
|
|
@@ -415,27 +427,28 @@ function O() {
|
|
|
415
427
|
};
|
|
416
428
|
}
|
|
417
429
|
export {
|
|
418
|
-
|
|
419
|
-
|
|
430
|
+
h as AvAccordionStub,
|
|
431
|
+
L as AvAutocompleteStub,
|
|
420
432
|
v as AvBadgeStub,
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
q as
|
|
433
|
+
$ as AvBreadcrumbStub,
|
|
434
|
+
y as AvButtonStub,
|
|
435
|
+
k as AvCancelConfirmButtonsStub,
|
|
436
|
+
A as AvCardStub,
|
|
437
|
+
x as AvCheckboxStub,
|
|
438
|
+
q as AvDrawerStub,
|
|
439
|
+
D as AvDropdownStub,
|
|
427
440
|
g as AvFieldsetStub,
|
|
428
441
|
S as AvIconStub,
|
|
429
442
|
f as AvIconTextStub,
|
|
430
|
-
|
|
443
|
+
B as AvInputStub,
|
|
431
444
|
V as AvListItemStub,
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
445
|
+
C as AvListStub,
|
|
446
|
+
O as AvModalStub,
|
|
447
|
+
M as AvSelectStub,
|
|
448
|
+
N as AvSideNavigationStub,
|
|
449
|
+
w as AvStepperStub,
|
|
450
|
+
I as AvTagPickerStub,
|
|
438
451
|
b as AvTagStub,
|
|
439
|
-
|
|
440
|
-
|
|
452
|
+
T as AvToggleStub,
|
|
453
|
+
H as BddTest
|
|
441
454
|
};
|
package/dist/tests/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { AvTagStub } from '@/components/badges/AvTag/AvTag.stub';
|
|
|
3
3
|
import { AvFieldsetStub } from '@/components/base/AvFieldset/AvFieldset.stub';
|
|
4
4
|
import { AvIconStub } from '@/components/base/AvIcon/AvIcon.stub';
|
|
5
5
|
import { AvIconTextStub } from '@/components/base/AvIconText/AvIconText.stub';
|
|
6
|
+
import { AvCardStub } from '@/components/cards/AvCard/AvCard.stub';
|
|
6
7
|
import { AvAccordionStub } from '@/components/interaction/accordions/AvAccordion/AvAccordion.stub';
|
|
7
8
|
import { AvButtonStub } from '@/components/interaction/buttons/AvButton/AvButton.stub';
|
|
8
9
|
import { AvCancelConfirmButtonsStub } from '@/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.stub';
|
|
@@ -21,4 +22,4 @@ import { AvDrawerStub } from '@/components/overlay/drawers/AvDrawer/AvDrawer.stu
|
|
|
21
22
|
import { AvDropdownStub } from '@/components/overlay/dropdowns/AvDropdown/AvDropdown.stub';
|
|
22
23
|
import { AvModalStub } from '@/components/overlay/modals/AvModal/AvModal.stub';
|
|
23
24
|
import { BddTest } from '@/tests/utils';
|
|
24
|
-
export { AvAccordionStub, AvAutocompleteStub, AvBadgeStub, AvBreadcrumbStub, AvButtonStub, AvCancelConfirmButtonsStub, AvCheckboxStub, AvDrawerStub, AvDropdownStub, AvFieldsetStub, AvIconStub, AvIconTextStub, AvInputStub, AvListItemStub, AvListStub, AvModalStub, AvSelectStub, AvSideNavigationStub, AvStepperStub, AvTagPickerStub, AvTagStub, AvToggleStub, BddTest, };
|
|
25
|
+
export { AvAccordionStub, AvAutocompleteStub, AvBadgeStub, AvBreadcrumbStub, AvButtonStub, AvCancelConfirmButtonsStub, AvCardStub, AvCheckboxStub, AvDrawerStub, AvDropdownStub, AvFieldsetStub, AvIconStub, AvIconTextStub, AvInputStub, AvListItemStub, AvListStub, AvModalStub, AvSelectStub, AvSideNavigationStub, AvStepperStub, AvTagPickerStub, AvTagStub, AvToggleStub, BddTest, };
|