@avenirs-esr/avenirs-dsav 0.1.124 → 0.1.126
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/interaction/selects/AvSelect/AvSelect.stories.d.ts +5 -0
- package/dist/components/interaction/selects/AvSelect/AvSelect.stub.d.ts +4 -0
- package/dist/components/interaction/selects/AvSelect/AvSelect.vue.d.ts +4 -0
- package/dist/components/interaction/selects/index.d.ts +1 -1
- package/dist/index.cjs.js +5 -5
- package/dist/index.es.js +476 -465
- package/dist/test-utils.cjs.js +5 -5
- package/dist/test-utils.es.js +7 -5
- package/package.json +1 -1
- package/src/styles/components/_form.scss +2 -2
- package/src/styles/utilities/_spacing.scss +12 -4
package/dist/test-utils.cjs.js
CHANGED
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
`}),C=e.defineComponent({name:"AvInput",props:{modelValue:String,label:String,labelClass:String,placeholder:String,isValid:Boolean,isTextarea:Boolean,labelVisible:Boolean,disabled:Boolean,required:Boolean,maxlength:Number,minlength:Number,errorMessage:String,validMessage:String,prefixIcon:String,id:String,descriptionId:String,hint:String,type:String,minDate:String,maxDate:String,width:String,noRadius:Boolean,modelModifiers:Object,textareaMinHeight:String,formatDateStr:String},emits:["update:modelValue"],template:`<input @input="$emit('update:modelValue', $event.target.value)" data-testid="av-input-stub" :value="modelValue" :placeholder="placeholder" :disabled="disabled" :required="required" :maxlength="maxlength" /><slot name="maxLengthCaption" :current-value="modelValue" />`}),h=e.defineComponent({name:"AvPeriodInput",props:{id:String,label:String,labelClass:String,startModelValue:String,endModelValue:String,startLabel:String,endLabel:String,disabled:Boolean,width:String,startMinDate:Date,startMaxDate:Date,endMinDate:Date,endMaxDate:Date,stacked:Boolean,separatorSpacing:String},emits:["update:startModelValue","update:endModelValue","change"],template:'<div class="av-period-input-stub" data-testid="av-period-input-stub" />'}),y=e.defineComponent({name:"AvList",props:["size"],template:`
|
|
64
64
|
<div class="av-list-stub">
|
|
65
65
|
<slot />
|
|
66
|
-
</div>`}),
|
|
66
|
+
</div>`}),x=e.defineComponent({name:"AvListItem",props:["hoverBackgroundColor","selected","icon","iconSize","iconColor","colorOnHover"],emits:["click"],template:`
|
|
67
67
|
<div
|
|
68
68
|
class="av-list-item-stub"
|
|
69
69
|
@click="$emit('click')"
|
|
70
70
|
>
|
|
71
71
|
<slot />
|
|
72
|
-
</div>`}),
|
|
72
|
+
</div>`}),k=e.defineComponent({name:"AvTagPicker",props:["label","options","selected","handleSelectChange"],template:`
|
|
73
73
|
<div class="av-tag-picker-stub">
|
|
74
74
|
<button
|
|
75
75
|
v-for="option in options"
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
:toggle="() => {}"
|
|
92
92
|
/>
|
|
93
93
|
</div>
|
|
94
|
-
`}),V=e.defineComponent({name:"AvSelect",props:{modelValue:[String,Number],options:Array,placeholder:String,dense:Boolean,required:Boolean,disabled:Boolean,hint:String,errorMessage:String,successMessage:String},emits:["update:modelValue"],template:`
|
|
94
|
+
`}),V=e.defineComponent({name:"AvSelect",props:{modelValue:[String,Number],options:Array,placeholder:String,label:String,dense:Boolean,required:Boolean,disabled:Boolean,hint:String,errorMessage:String,successMessage:String,prefixIcon:String},emits:["update:modelValue"],template:`
|
|
95
95
|
<select
|
|
96
96
|
class="av-select-stub"
|
|
97
97
|
:value="modelValue"
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<span v-if="errorMessage">{{ errorMessage }}</span>
|
|
117
117
|
<span v-if="!errorMessage && successMessage">{{ successMessage }}</span>
|
|
118
118
|
</select>
|
|
119
|
-
`}),T=e.defineComponent({name:"AvTab",props:{title:{type:String,required:!0},icon:{type:String,required:!1}},template:'<div class="av-tab"><slot /></div>'}),
|
|
119
|
+
`}),T=e.defineComponent({name:"AvTab",props:{title:{type:String,required:!0},icon:{type:String,required:!1}},template:'<div class="av-tab"><slot /></div>'}),I=e.defineComponent({name:"AvTabs",props:{modelValue:{type:Number,default:0},ariaLabel:String,compact:Boolean},emits:["update:modelValue"],setup(a,{slots:t}){const o=e.computed(()=>{var n;return((n=t.default)==null?void 0:n.call(t))??[]}),i=e.computed(()=>a.modelValue??0);return()=>e.h("div",{class:"av-tabs"},o.value[i.value]??null)}}),M=e.defineComponent({name:"AvToggle",props:["id","name","modelValue","description","activeText","inactiveText","disabled"],emits:["update:modelValue"],template:`
|
|
120
120
|
<div class="av-toggle">
|
|
121
121
|
<input
|
|
122
122
|
type="checkbox"
|
|
@@ -172,4 +172,4 @@
|
|
|
172
172
|
<slot />
|
|
173
173
|
<slot name="footer"></slot>
|
|
174
174
|
</div>
|
|
175
|
-
`});function O(){return{given(a,t){return describe(`🔵 GIVEN ${a}`,t),this},when(a,t){return describe(`🔶 WHEN ${a}`,t),this},and(a,t){return describe(`➕ AND ${a}`,t),this},then(a,t){return it(`🟩 THEN ${a}`,t),this}}}exports.AvAccordionStub=b;exports.AvAutocompleteStub=B;exports.AvBadgeStub=d;exports.AvBreadcrumbStub=L;exports.AvButtonStub=g;exports.AvCancelConfirmButtonsStub=S;exports.AvCardStub=v;exports.AvCheckboxStub=f;exports.AvCheckboxesGroupStub=A;exports.AvDrawerStub=$;exports.AvDropdownStub=q;exports.AvFieldsetStub=u;exports.AvIconStub=p;exports.AvIconTextStub=m;exports.AvInputStub=C;exports.AvListItemStub=
|
|
175
|
+
`});function O(){return{given(a,t){return describe(`🔵 GIVEN ${a}`,t),this},when(a,t){return describe(`🔶 WHEN ${a}`,t),this},and(a,t){return describe(`➕ AND ${a}`,t),this},then(a,t){return it(`🟩 THEN ${a}`,t),this}}}exports.AvAccordionStub=b;exports.AvAutocompleteStub=B;exports.AvBadgeStub=d;exports.AvBreadcrumbStub=L;exports.AvButtonStub=g;exports.AvCancelConfirmButtonsStub=S;exports.AvCardStub=v;exports.AvCheckboxStub=f;exports.AvCheckboxesGroupStub=A;exports.AvDrawerStub=$;exports.AvDropdownStub=q;exports.AvFieldsetStub=u;exports.AvIconStub=p;exports.AvIconTextStub=m;exports.AvInputStub=C;exports.AvListItemStub=x;exports.AvListStub=y;exports.AvModalStub=N;exports.AvPeriodInputStub=h;exports.AvSelectStub=V;exports.AvSideNavigationStub=D;exports.AvStepperStub=w;exports.AvTabStub=T;exports.AvTabsStub=I;exports.AvTagPickerStub=k;exports.AvTagStub=c;exports.AvToggleStub=M;exports.BddTest=O;
|
package/dist/test-utils.es.js
CHANGED
|
@@ -175,7 +175,7 @@ const f = e({
|
|
|
175
175
|
<label :for="id"><slot name="label">{{ label }}</slot></label>
|
|
176
176
|
</div>
|
|
177
177
|
`
|
|
178
|
-
}),
|
|
178
|
+
}), I = e({
|
|
179
179
|
name: "AvCheckboxesGroup",
|
|
180
180
|
props: ["modelValue", "options"],
|
|
181
181
|
emits: ["update:modelValue"],
|
|
@@ -184,7 +184,7 @@ const f = e({
|
|
|
184
184
|
<slot />
|
|
185
185
|
</fieldset>
|
|
186
186
|
`
|
|
187
|
-
}),
|
|
187
|
+
}), L = e({
|
|
188
188
|
name: "AvInput",
|
|
189
189
|
props: {
|
|
190
190
|
modelValue: String,
|
|
@@ -307,12 +307,14 @@ const f = e({
|
|
|
307
307
|
modelValue: [String, Number],
|
|
308
308
|
options: Array,
|
|
309
309
|
placeholder: String,
|
|
310
|
+
label: String,
|
|
310
311
|
dense: Boolean,
|
|
311
312
|
required: Boolean,
|
|
312
313
|
disabled: Boolean,
|
|
313
314
|
hint: String,
|
|
314
315
|
errorMessage: String,
|
|
315
|
-
successMessage: String
|
|
316
|
+
successMessage: String,
|
|
317
|
+
prefixIcon: String
|
|
316
318
|
},
|
|
317
319
|
emits: ["update:modelValue"],
|
|
318
320
|
template: `
|
|
@@ -501,13 +503,13 @@ export {
|
|
|
501
503
|
C as AvCancelConfirmButtonsStub,
|
|
502
504
|
k as AvCardStub,
|
|
503
505
|
M as AvCheckboxStub,
|
|
504
|
-
|
|
506
|
+
I as AvCheckboxesGroupStub,
|
|
505
507
|
F as AvDrawerStub,
|
|
506
508
|
j as AvDropdownStub,
|
|
507
509
|
h as AvFieldsetStub,
|
|
508
510
|
y as AvIconStub,
|
|
509
511
|
x as AvIconTextStub,
|
|
510
|
-
|
|
512
|
+
L as AvInputStub,
|
|
511
513
|
w as AvListItemStub,
|
|
512
514
|
D as AvListStub,
|
|
513
515
|
z as AvModalStub,
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ input[type=range] {
|
|
|
30
30
|
|
|
31
31
|
// === Label ===
|
|
32
32
|
@include ns("label") {
|
|
33
|
-
@extend .
|
|
33
|
+
@extend .b1-regular;
|
|
34
34
|
display: block;
|
|
35
35
|
padding-bottom: var(--spacing-xxs);
|
|
36
36
|
|
|
@@ -41,7 +41,7 @@ input[type=range] {
|
|
|
41
41
|
|
|
42
42
|
// === Hint text ===
|
|
43
43
|
@include ns("hint-text") {
|
|
44
|
-
@extend .caption-
|
|
44
|
+
@extend .caption-light;
|
|
45
45
|
display: block;
|
|
46
46
|
|
|
47
47
|
+.#{$prefix}hint-text {
|
|
@@ -40,14 +40,18 @@ $directions: (
|
|
|
40
40
|
@each $direction-key, $direction-value in $directions {
|
|
41
41
|
@each $size, $value in sp.$spacing {
|
|
42
42
|
@if meta.type-of($direction-value) == 'list' {
|
|
43
|
+
$props: ();
|
|
44
|
+
$negative-props: ();
|
|
43
45
|
@each $d in $direction-value {
|
|
44
|
-
|
|
46
|
+
$props: map-merge($props, (
|
|
45
47
|
#{$property-value}-#{$d}: var(--spacing-#{$size}) !important
|
|
46
48
|
));
|
|
47
|
-
|
|
49
|
+
$negative-props: map-merge($negative-props, (
|
|
48
50
|
#{$property-value}-#{$d}: calc(-1 * var(--spacing-#{$size})) !important
|
|
49
51
|
));
|
|
50
52
|
}
|
|
53
|
+
@include utility-base("#{$type}#{$direction-key}-#{$size}", $props);
|
|
54
|
+
@include utility-base("-#{$type}#{$direction-key}-#{$size}", $negative-props);
|
|
51
55
|
} @else {
|
|
52
56
|
@include utility-base("#{$type}#{$direction-key}-#{$size}", (
|
|
53
57
|
#{$property-value}-#{$direction-value}: var(--spacing-#{$size}) !important
|
|
@@ -81,14 +85,18 @@ $directions: (
|
|
|
81
85
|
@each $direction-key, $direction-value in $directions {
|
|
82
86
|
@each $size, $value in sp.$spacing {
|
|
83
87
|
@if meta.type-of($direction-value) == 'list' {
|
|
88
|
+
$props: ();
|
|
89
|
+
$negative-props: ();
|
|
84
90
|
@each $d in $direction-value {
|
|
85
|
-
|
|
91
|
+
$props: map-merge($props, (
|
|
86
92
|
#{$property-value}-#{$d}: var(--spacing-#{$size}) !important
|
|
87
93
|
));
|
|
88
|
-
|
|
94
|
+
$negative-props: map-merge($negative-props, (
|
|
89
95
|
#{$property-value}-#{$d}: calc(-1 * var(--spacing-#{$size})) !important
|
|
90
96
|
));
|
|
91
97
|
}
|
|
98
|
+
@include utility-responsive("#{$type}#{$direction-key}-#{$size}", $props);
|
|
99
|
+
@include utility-responsive("-#{$type}#{$direction-key}-#{$size}", $negative-props);
|
|
92
100
|
} @else {
|
|
93
101
|
@include utility-responsive("#{$type}#{$direction-key}-#{$size}", (
|
|
94
102
|
#{$property-value}-#{$direction-value}: var(--spacing-#{$size}) !important
|