@avenirs-esr/avenirs-dsav 0.1.76 → 0.1.77
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 -3
- package/dist/components/badges/AvBadge/AvBadge.stories.d.ts +1 -1
- package/dist/components/badges/AvBadge/AvBadge.vue.d.ts +0 -10
- package/dist/components/badges/AvTag/AvTag.stories.d.ts +0 -1
- package/dist/components/badges/AvTag/AvTag.vue.d.ts +0 -20
- package/dist/components/base/AvFieldset/AvFieldset.vue.d.ts +24 -4
- package/dist/components/base/AvFieldsetElement/AvFieldsetElement.vue.d.ts +29 -0
- package/dist/components/base/AvIconText/AvIconText.stub.d.ts +7 -0
- package/dist/components/base/AvMessage/AvMessage.stories.d.ts +27 -0
- package/dist/components/base/AvMessage/AvMessage.test.d.ts +1 -0
- package/dist/components/base/AvMessage/AvMessage.vue.d.ts +21 -0
- package/dist/components/base/AvNotice/AvNotice.stories.d.ts +1 -0
- package/dist/components/base/index.d.ts +1 -0
- package/dist/components/feedback/AvAlert/AvAlert.stories.d.ts +69 -0
- package/dist/components/feedback/AvAlert/AvAlert.vue.d.ts +0 -5
- package/dist/components/interaction/buttons/AvButton/AvButton.stories.d.ts +1 -1
- package/dist/components/interaction/buttons/AvButton/AvButton.vue.d.ts +9 -9
- package/dist/components/interaction/checkboxes/AvCheckbox/AvChecbox.stories.d.ts +4 -0
- package/dist/components/interaction/checkboxes/AvCheckbox/AvCheckbox.vue.d.ts +1 -1
- package/dist/components/interaction/checkboxes/AvCheckboxesGroup/AvCheckboxesGroup.stories.d.ts +38 -0
- package/dist/components/interaction/checkboxes/AvCheckboxesGroup/AvCheckboxesGroup.vue.d.ts +46 -0
- package/dist/components/interaction/checkboxes/index.d.ts +1 -0
- package/dist/components/interaction/inputs/AvSearchBar/AvSearchBar.vue.d.ts +3 -0
- package/dist/components/interaction/lists/AvList/AvList.stories.d.ts +2 -2
- package/dist/components/interaction/lists/AvListItem/AvListItem.stories.d.ts +4 -4
- package/dist/components/interaction/radios/AvRadioButtonSet/AvRadioButtonSet.stories.d.ts +1 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.stories.d.ts +9 -0
- package/dist/components/interaction/selects/AvMultiselect/AvMultiselect.stories.d.ts +3 -0
- package/dist/components/interaction/selects/AvMultiselect/AvMultiselect.vue.d.ts +0 -5
- package/dist/components/interaction/selects/AvMultiselect/components/MultiselectCollapse.vue.d.ts +2 -13
- package/dist/components/interaction/selects/AvSelect/AvSelect.stories.d.ts +1 -1
- package/dist/components/interaction/selects/AvSelect/AvSelect.vue.d.ts +3 -0
- package/dist/components/navigation/AvPagination/AvPagination.stories.d.ts +28 -0
- package/dist/components/navigation/AvSideMenu/AvSideMenu.stories.d.ts +3 -3
- package/dist/components/navigation/AvSideNavigation/AvSideNavigation.stories.d.ts +4 -4
- package/dist/components/navigation/AvStepper/AvStepper.vue.d.ts +1 -3
- package/dist/components/overlay/drawers/AvDrawer/AvDrawer.stories.d.ts +3 -3
- package/dist/components/overlay/dropdowns/AvDropdown/AvDropdown.stub.d.ts +2 -2
- package/dist/components/overlay/dropdowns/AvDropdown/AvDropdown.vue.d.ts +6 -6
- package/dist/components/overlay/modals/AvModal/AvModal.stories.d.ts +36 -0
- package/dist/components/overlay/modals/AvModal/AvModal.vue.d.ts +0 -5
- package/dist/components/overlay/popovers/AvPopover/AvPopover.vue.d.ts +1 -5
- package/dist/composables/use-av-breakpoints/use-av-breakpoints.d.ts +3 -0
- package/dist/composables/use-collapsable/use-collapsable.d.ts +1 -1
- package/dist/index.cjs.js +5 -5
- package/dist/index.es.js +6244 -6127
- package/dist/main.d.ts +0 -5
- package/dist/stories/foundations/icons.stories.d.ts +1 -0
- package/dist/test-utils.cjs.js +15 -15
- package/dist/test-utils.es.js +37 -32
- package/dist/tests/index.d.ts +2 -1
- package/dist/tokens/icons.d.ts +12 -0
- package/package.json +1 -2
- package/src/styles/components/_buttons.scss +9 -0
- package/src/styles/components/_collapse.scss +37 -0
- package/src/styles/components/_footer.scss +15 -0
- package/src/styles/components/_form.scss +50 -0
- package/src/styles/components/_grid.scss +182 -0
- package/src/styles/components/_links.scss +6 -0
- package/src/styles/components/_menu.scss +59 -0
- package/src/styles/components/_navigation.scss +122 -0
- package/src/styles/components/_selects.scss +13 -0
- package/src/styles/{texts.scss → components/_texts.scss} +11 -0
- package/src/styles/core/_accessibility.scss +14 -0
- package/src/styles/core/_cursors.scss +47 -0
- package/src/styles/{dimensions.scss → core/_dimensions.scss} +1 -0
- package/src/styles/core/_focus.scss +66 -0
- package/src/styles/core/_hover.scss +22 -0
- package/src/styles/core/_namespace.scss +9 -0
- package/src/styles/{palette.scss → core/_palette.scss} +2 -0
- package/src/styles/core/_spacing.scss +33 -0
- package/src/styles/{typography.scss → core/_typography.scss} +40 -1
- package/src/styles/main.scss +41 -25
- package/src/styles/settings/_breakpoints.scss +33 -0
- package/src/styles/utilities/_helpers.scss +136 -0
- package/src/styles/utilities/_spacing.scss +48 -0
- package/src/styles/buttons.scss +0 -24
- package/src/styles/spacing.scss +0 -21
- /package/src/styles/{radius.scss → core/_radius.scss} +0 -0
package/dist/main.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import '@gouvfr/dsfr/dist/core/core.main.min.css';
|
|
2
|
-
import '@gouvfr/dsfr/dist/component/component.main.min.css';
|
|
3
|
-
import '@gouvfr/dsfr/dist/utility/utility.main.min.css';
|
|
4
|
-
import '@gouvfr/dsfr/dist/scheme/scheme.min.css';
|
|
5
|
-
import '@gouvfr/dsfr/dist/utility/icons/icons.min.css';
|
|
6
1
|
import './main.css';
|
|
7
2
|
import '@/styles/main.scss';
|
package/dist/test-utils.cjs.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
:style="{ backgroundColor, borderColor, color }"
|
|
5
5
|
>
|
|
6
6
|
{{ label }}
|
|
7
|
-
</div>`,props:{label:String,small:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!1},color:String,backgroundColor:String,borderColor:String,iconDataUrl:String}}),c=e.defineComponent({name:"AvTag",template:'<div class="av-tag-stub" />',props:["label","link","tagName","icon","disabled","small","iconOnly","selectable","selected","value"]}),d=e.defineComponent({name:"AvFieldset",props:["id","legend","legendId","class","ariaLive"],template:"<fieldset><slot /></fieldset>"}),r=e.defineComponent({name:"AvIcon",props:["name","color","size","title","animation"],template:'<div class="av-vicon-stub" />'}),p=e.defineComponent({name:"AvAccordion",props:["title","icon"],template:`
|
|
7
|
+
</div>`,props:{label:String,small:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!1},color:String,backgroundColor:String,borderColor:String,iconDataUrl:String}}),c=e.defineComponent({name:"AvTag",template:'<div class="av-tag-stub" />',props:["label","link","tagName","icon","disabled","small","iconOnly","selectable","selected","value"]}),d=e.defineComponent({name:"AvFieldset",props:["id","legend","legendId","class","ariaLive"],template:"<fieldset><slot /></fieldset>"}),r=e.defineComponent({name:"AvIcon",props:["name","color","size","title","animation"],template:'<div class="av-vicon-stub" />'}),p=e.defineComponent({name:"AvIconText",template:'<div class="av-icon-text" />',props:["icon","text"]}),u=e.defineComponent({name:"AvAccordion",props:["title","icon"],template:`
|
|
8
8
|
<div class="av-accordion">
|
|
9
9
|
<button
|
|
10
|
-
class="
|
|
10
|
+
class="av-accordion__btn"
|
|
11
11
|
type="button"
|
|
12
12
|
@click="expand"
|
|
13
13
|
:aria-expanded="isActive"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<slot />
|
|
16
16
|
</button>
|
|
17
17
|
</div>
|
|
18
|
-
`,setup(
|
|
18
|
+
`,setup(n){const t=e.inject(s.registerAccordionKey);if(!t){const o=e.ref(!1);return{isActive:o,expand:()=>{o.value=!o.value}}}const{isActive:i,expand:a}=t(e.toRef(n,"title"));return{isActive:i,expand:a}}}),v=e.defineComponent({name:"AvButton",props:["label","variant","type","disabled","isLoading","size"],emits:["click"],template:`
|
|
19
19
|
<button
|
|
20
20
|
class="av-button-stub"
|
|
21
21
|
:disabled="disabled"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
>
|
|
24
24
|
{{ label }}
|
|
25
25
|
</button>
|
|
26
|
-
`}),
|
|
26
|
+
`}),m=e.defineComponent({name:"AvCancelConfirmButtons",props:["cancelLabel","cancelIcon","confirmLabel","cancelDisabled","cancelIsLoading","confirmIcon","confirmDisabled","confirmIsLoading"],emits:["cancel","confirm"],template:`
|
|
27
27
|
<div class="av-cancel-confirmation-buttons-stub" >
|
|
28
28
|
<button
|
|
29
29
|
class="cancel"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
{{ confirmLabel }}
|
|
39
39
|
</button>
|
|
40
40
|
</div>
|
|
41
|
-
`}),
|
|
41
|
+
`}),b=e.defineComponent({name:"AvCheckbox",props:{id:{type:String,default:""},name:{type:String,default:"checkbox"},value:{type:[String,Number,Boolean],required:!0},modelValue:{type:Array,required:!0},label:{type:String,default:""}},emits:["update:modelValue"],template:`
|
|
42
42
|
<div class="av-checkbox-stub">
|
|
43
43
|
<input
|
|
44
44
|
type="checkbox"
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
/>
|
|
55
55
|
<label :for="id">{{ label }}</label>
|
|
56
56
|
</div>
|
|
57
|
-
`}),
|
|
57
|
+
`}),g=e.defineComponent({name:"AvList",props:["size"],template:`
|
|
58
58
|
<div class="av-list-stub">
|
|
59
59
|
<slot />
|
|
60
|
-
</div>`}),
|
|
60
|
+
</div>`}),S=e.defineComponent({name:"AvListItem",props:["clickable","hoverBackgroundColor","selected","icon","iconSize","iconColor","colorOnHover"],emits:["click"],template:`
|
|
61
61
|
<div
|
|
62
62
|
class="av-list-item-stub"
|
|
63
63
|
@click="$emit('click')"
|
|
64
64
|
>
|
|
65
65
|
<slot />
|
|
66
|
-
</div>`}),
|
|
66
|
+
</div>`}),A=e.defineComponent({name:"AvTagPicker",props:["label","options","selected","handleSelectChange"],template:`
|
|
67
67
|
<div class="av-tag-picker-stub">
|
|
68
68
|
<button
|
|
69
69
|
v-for="option in options"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
{{ option.label }}
|
|
75
75
|
</button>
|
|
76
76
|
</div>
|
|
77
|
-
`}),
|
|
77
|
+
`}),f=e.defineComponent({name:"AvAutocomplete",props:["modelValue","options","loading","inputOptions","getOptionLabel","getOptionKey","multiSelect","serverSideFiltering","enableLoadMore","maxDropdownHeight"],emits:["update:modelValue","search","clear","loadMore"],template:`
|
|
78
78
|
<div class="av-autocomplete-stub">
|
|
79
79
|
<slot
|
|
80
80
|
name="item"
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
:toggle="() => {}"
|
|
86
86
|
/>
|
|
87
87
|
</div>
|
|
88
|
-
`}),
|
|
88
|
+
`}),C=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:`
|
|
89
89
|
<select
|
|
90
90
|
class="av-select-stub"
|
|
91
91
|
:value="modelValue"
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
<span v-if="errorMessage">{{ errorMessage }}</span>
|
|
111
111
|
<span v-if="!errorMessage && successMessage">{{ successMessage }}</span>
|
|
112
112
|
</select>
|
|
113
|
-
`}),
|
|
113
|
+
`}),k=e.defineComponent({name:"AvToggle",props:["id","name","modelValue","description","activeText","inactiveText","disabled"],emits:["update:modelValue"],template:`
|
|
114
114
|
<div class="av-toggle">
|
|
115
115
|
<input
|
|
116
116
|
type="checkbox"
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
<span class="inactive-text">
|
|
129
129
|
{{ inactiveText }}
|
|
130
130
|
</span>
|
|
131
|
-
</div>`}),
|
|
131
|
+
</div>`}),h=e.defineComponent({name:"AvBreadcrumb",template:'<div class="av-breadcrumb-stub" />',props:["links","navigationLabel","showBreadcrumbLabel"]}),x=e.defineComponent({name:"AvSideNavigation",props:{items:Array,selectedItem:String,isSideMenuCollapsed:Boolean,collapsedWidth:String},emits:["update:selectedItem","update:isSideMenuCollapsed"],template:`
|
|
132
132
|
<div
|
|
133
133
|
class="av-side-navigation-stub"
|
|
134
134
|
@click="$emit('update:isSideMenuCollapsed', !isSideMenuCollapsed)"
|
|
@@ -144,12 +144,12 @@
|
|
|
144
144
|
{{ index + 1 }}. {{ step }}
|
|
145
145
|
</div>
|
|
146
146
|
</div>
|
|
147
|
-
`}),
|
|
147
|
+
`}),B=e.defineComponent({name:"AvDrawer",props:["show","position","width"],emits:["escape-pressed"],template:`
|
|
148
148
|
<div class="av-drawer-stub">
|
|
149
149
|
<slot />
|
|
150
150
|
<slot name="footer" />
|
|
151
151
|
</div>
|
|
152
|
-
`}),
|
|
152
|
+
`}),L=e.defineComponent({name:"AvDropdown",props:["items","triggerAriaLabel","triggerIcon","triggerLabel","triggerVariant","triggerSmall","padding"],emits:["itemSelected"],template:`
|
|
153
153
|
<div class="av-dropdown-stub">
|
|
154
154
|
<button
|
|
155
155
|
v-for="item in items"
|
|
@@ -160,4 +160,4 @@
|
|
|
160
160
|
{{ item.label }}
|
|
161
161
|
</button>
|
|
162
162
|
</div>
|
|
163
|
-
`});function
|
|
163
|
+
`});function T(){return{given(n,t){return describe(`🔵 GIVEN ${n}`,t),this},when(n,t){return describe(`🔶 WHEN ${n}`,t),this},and(n,t){return describe(`➕ AND ${n}`,t),this},then(n,t){return it(`🟩 THEN ${n}`,t),this}}}exports.AvAccordionStub=u;exports.AvAutocompleteStub=f;exports.AvBadgeStub=l;exports.AvBreadcrumbStub=h;exports.AvButtonStub=v;exports.AvCancelConfirmButtonsStub=m;exports.AvCheckboxStub=b;exports.AvDrawerStub=B;exports.AvDropdownStub=L;exports.AvFieldsetStub=d;exports.AvIconStub=r;exports.AvIconTextStub=p;exports.AvListItemStub=S;exports.AvListStub=g;exports.AvSelectStub=C;exports.AvSideNavigationStub=x;exports.AvStepperStub=y;exports.AvTagPickerStub=A;exports.AvTagStub=c;exports.AvToggleStub=k;exports.BddTest=T;
|
package/dist/test-utils.es.js
CHANGED
|
@@ -44,17 +44,21 @@ const m = e({
|
|
|
44
44
|
name: "AvFieldset",
|
|
45
45
|
props: ["id", "legend", "legendId", "class", "ariaLive"],
|
|
46
46
|
template: "<fieldset><slot /></fieldset>"
|
|
47
|
-
}),
|
|
47
|
+
}), A = e({
|
|
48
48
|
name: "AvIcon",
|
|
49
49
|
props: ["name", "color", "size", "title", "animation"],
|
|
50
50
|
template: '<div class="av-vicon-stub" />'
|
|
51
|
-
}),
|
|
51
|
+
}), S = e({
|
|
52
|
+
name: "AvIconText",
|
|
53
|
+
template: '<div class="av-icon-text" />',
|
|
54
|
+
props: ["icon", "text"]
|
|
55
|
+
}), f = e({
|
|
52
56
|
name: "AvAccordion",
|
|
53
57
|
props: ["title", "icon"],
|
|
54
58
|
template: `
|
|
55
59
|
<div class="av-accordion">
|
|
56
60
|
<button
|
|
57
|
-
class="
|
|
61
|
+
class="av-accordion__btn"
|
|
58
62
|
type="button"
|
|
59
63
|
@click="expand"
|
|
60
64
|
:aria-expanded="isActive"
|
|
@@ -74,7 +78,7 @@ const m = e({
|
|
|
74
78
|
const { isActive: o, expand: n } = t(c(a, "title"));
|
|
75
79
|
return { isActive: o, expand: n };
|
|
76
80
|
}
|
|
77
|
-
}),
|
|
81
|
+
}), h = e({
|
|
78
82
|
name: "AvButton",
|
|
79
83
|
props: ["label", "variant", "type", "disabled", "isLoading", "size"],
|
|
80
84
|
emits: ["click"],
|
|
@@ -87,7 +91,7 @@ const m = e({
|
|
|
87
91
|
{{ label }}
|
|
88
92
|
</button>
|
|
89
93
|
`
|
|
90
|
-
}),
|
|
94
|
+
}), k = e({
|
|
91
95
|
name: "AvCancelConfirmButtons",
|
|
92
96
|
props: [
|
|
93
97
|
"cancelLabel",
|
|
@@ -116,7 +120,7 @@ const m = e({
|
|
|
116
120
|
</button>
|
|
117
121
|
</div>
|
|
118
122
|
`
|
|
119
|
-
}),
|
|
123
|
+
}), x = e({
|
|
120
124
|
name: "AvCheckbox",
|
|
121
125
|
props: {
|
|
122
126
|
id: { type: String, default: "" },
|
|
@@ -143,14 +147,14 @@ const m = e({
|
|
|
143
147
|
<label :for="id">{{ label }}</label>
|
|
144
148
|
</div>
|
|
145
149
|
`
|
|
146
|
-
}),
|
|
150
|
+
}), y = e({
|
|
147
151
|
name: "AvList",
|
|
148
152
|
props: ["size"],
|
|
149
153
|
template: `
|
|
150
154
|
<div class="av-list-stub">
|
|
151
155
|
<slot />
|
|
152
156
|
</div>`
|
|
153
|
-
}),
|
|
157
|
+
}), C = e({
|
|
154
158
|
name: "AvListItem",
|
|
155
159
|
props: ["clickable", "hoverBackgroundColor", "selected", "icon", "iconSize", "iconColor", "colorOnHover"],
|
|
156
160
|
emits: ["click"],
|
|
@@ -161,7 +165,7 @@ const m = e({
|
|
|
161
165
|
>
|
|
162
166
|
<slot />
|
|
163
167
|
</div>`
|
|
164
|
-
}),
|
|
168
|
+
}), V = e({
|
|
165
169
|
name: "AvTagPicker",
|
|
166
170
|
props: [
|
|
167
171
|
"label",
|
|
@@ -181,7 +185,7 @@ const m = e({
|
|
|
181
185
|
</button>
|
|
182
186
|
</div>
|
|
183
187
|
`
|
|
184
|
-
}),
|
|
188
|
+
}), B = e({
|
|
185
189
|
name: "AvAutocomplete",
|
|
186
190
|
props: [
|
|
187
191
|
"modelValue",
|
|
@@ -208,7 +212,7 @@ const m = e({
|
|
|
208
212
|
/>
|
|
209
213
|
</div>
|
|
210
214
|
`
|
|
211
|
-
}),
|
|
215
|
+
}), L = e({
|
|
212
216
|
name: "AvSelect",
|
|
213
217
|
props: {
|
|
214
218
|
modelValue: [String, Number],
|
|
@@ -248,7 +252,7 @@ const m = e({
|
|
|
248
252
|
<span v-if="!errorMessage && successMessage">{{ successMessage }}</span>
|
|
249
253
|
</select>
|
|
250
254
|
`
|
|
251
|
-
}),
|
|
255
|
+
}), I = e({
|
|
252
256
|
name: "AvToggle",
|
|
253
257
|
props: ["id", "name", "modelValue", "description", "activeText", "inactiveText", "disabled"],
|
|
254
258
|
emits: ["update:modelValue"],
|
|
@@ -275,7 +279,7 @@ const m = e({
|
|
|
275
279
|
name: "AvBreadcrumb",
|
|
276
280
|
template: '<div class="av-breadcrumb-stub" />',
|
|
277
281
|
props: ["links", "navigationLabel", "showBreadcrumbLabel"]
|
|
278
|
-
}),
|
|
282
|
+
}), T = e({
|
|
279
283
|
name: "AvSideNavigation",
|
|
280
284
|
props: {
|
|
281
285
|
items: Array,
|
|
@@ -314,7 +318,7 @@ const m = e({
|
|
|
314
318
|
</div>
|
|
315
319
|
</div>
|
|
316
320
|
`
|
|
317
|
-
}),
|
|
321
|
+
}), w = e({
|
|
318
322
|
name: "AvDrawer",
|
|
319
323
|
props: ["show", "position", "width"],
|
|
320
324
|
emits: ["escape-pressed"],
|
|
@@ -324,9 +328,9 @@ const m = e({
|
|
|
324
328
|
<slot name="footer" />
|
|
325
329
|
</div>
|
|
326
330
|
`
|
|
327
|
-
}),
|
|
331
|
+
}), N = e({
|
|
328
332
|
name: "AvDropdown",
|
|
329
|
-
props: ["items", "triggerAriaLabel", "triggerIcon", "triggerLabel", "triggerVariant", "
|
|
333
|
+
props: ["items", "triggerAriaLabel", "triggerIcon", "triggerLabel", "triggerVariant", "triggerSmall", "padding"],
|
|
330
334
|
emits: ["itemSelected"],
|
|
331
335
|
template: `
|
|
332
336
|
<div class="av-dropdown-stub">
|
|
@@ -341,7 +345,7 @@ const m = e({
|
|
|
341
345
|
</div>
|
|
342
346
|
`
|
|
343
347
|
});
|
|
344
|
-
function
|
|
348
|
+
function D() {
|
|
345
349
|
return {
|
|
346
350
|
given(a, t) {
|
|
347
351
|
return describe(`🔵 GIVEN ${a}`, t), this;
|
|
@@ -358,24 +362,25 @@ function N() {
|
|
|
358
362
|
};
|
|
359
363
|
}
|
|
360
364
|
export {
|
|
361
|
-
|
|
362
|
-
|
|
365
|
+
f as AvAccordionStub,
|
|
366
|
+
B as AvAutocompleteStub,
|
|
363
367
|
m as AvBadgeStub,
|
|
364
368
|
$ as AvBreadcrumbStub,
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
369
|
+
h as AvButtonStub,
|
|
370
|
+
k as AvCancelConfirmButtonsStub,
|
|
371
|
+
x as AvCheckboxStub,
|
|
372
|
+
w as AvDrawerStub,
|
|
373
|
+
N as AvDropdownStub,
|
|
370
374
|
g as AvFieldsetStub,
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
375
|
+
A as AvIconStub,
|
|
376
|
+
S as AvIconTextStub,
|
|
377
|
+
C as AvListItemStub,
|
|
378
|
+
y as AvListStub,
|
|
379
|
+
L as AvSelectStub,
|
|
380
|
+
T as AvSideNavigationStub,
|
|
376
381
|
M as AvStepperStub,
|
|
377
|
-
|
|
382
|
+
V as AvTagPickerStub,
|
|
378
383
|
b as AvTagStub,
|
|
379
|
-
|
|
380
|
-
|
|
384
|
+
I as AvToggleStub,
|
|
385
|
+
D as BddTest
|
|
381
386
|
};
|
package/dist/tests/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { AvBadgeStub } from '@/components/badges/AvBadge/AvBadge.stub';
|
|
|
2
2
|
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
|
+
import { AvIconTextStub } from '@/components/base/AvIconText/AvIconText.stub';
|
|
5
6
|
import { AvAccordionStub } from '@/components/interaction/accordions/AvAccordion/AvAccordion.stub';
|
|
6
7
|
import { AvButtonStub } from '@/components/interaction/buttons/AvButton/AvButton.stub';
|
|
7
8
|
import { AvCancelConfirmButtonsStub } from '@/components/interaction/buttons/AvCancelConfirmButtons/AvCancelConfirmButtons.stub';
|
|
@@ -18,4 +19,4 @@ import { AvStepperStub } from '@/components/navigation/AvStepper/AvStepper.stub'
|
|
|
18
19
|
import { AvDrawerStub } from '@/components/overlay/drawers/AvDrawer/AvDrawer.stub';
|
|
19
20
|
import { AvDropdownStub } from '@/components/overlay/dropdowns/AvDropdown/AvDropdown.stub';
|
|
20
21
|
import { BddTest } from '@/tests/utils';
|
|
21
|
-
export { AvAccordionStub, AvAutocompleteStub, AvBadgeStub, AvBreadcrumbStub, AvButtonStub, AvCancelConfirmButtonsStub, AvCheckboxStub, AvDrawerStub, AvDropdownStub, AvFieldsetStub, AvIconStub, AvListItemStub, AvListStub, AvSelectStub, AvSideNavigationStub, AvStepperStub, AvTagPickerStub, AvTagStub, AvToggleStub, BddTest, };
|
|
22
|
+
export { AvAccordionStub, AvAutocompleteStub, AvBadgeStub, AvBreadcrumbStub, AvButtonStub, AvCancelConfirmButtonsStub, AvCheckboxStub, AvDrawerStub, AvDropdownStub, AvFieldsetStub, AvIconStub, AvIconTextStub, AvListItemStub, AvListStub, AvSelectStub, AvSideNavigationStub, AvStepperStub, AvTagPickerStub, AvTagStub, AvToggleStub, BddTest, };
|
package/dist/tokens/icons.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare const MDI_ICONS: {
|
|
|
27
27
|
CHEVRON_DOUBLE_RIGHT: string;
|
|
28
28
|
CIRCLE: string;
|
|
29
29
|
CLOSE_CIRCLE_OUTLINE: string;
|
|
30
|
+
CLOSE_OCTAGON: string;
|
|
30
31
|
CONTENT_SAVE_OUTLINE: string;
|
|
31
32
|
DIAMOND_STONE: string;
|
|
32
33
|
DOTS_VERTICAL: string;
|
|
@@ -41,14 +42,18 @@ export declare const MDI_ICONS: {
|
|
|
41
42
|
FILE_TREE_OUTLINE: string;
|
|
42
43
|
FLAG_VARIANT: string;
|
|
43
44
|
FORMAT_LIST_BULLETED: string;
|
|
45
|
+
HAMBURGER_MENU: string;
|
|
44
46
|
HOME_VARIANT_OUTLINE: string;
|
|
45
47
|
HOURGLASS: string;
|
|
46
48
|
IMAGE_FILTER_CENTER_FOCUS_WEAK: string;
|
|
47
49
|
IMAGE_OUTLINE: string;
|
|
50
|
+
INFORMATION_BOX: string;
|
|
51
|
+
INFORMATION_BOX_OUTLINE: string;
|
|
48
52
|
INFORMATION_OUTLINE: string;
|
|
49
53
|
LINK: string;
|
|
50
54
|
LOADING_OUTLINE: string;
|
|
51
55
|
LOGOUT: string;
|
|
56
|
+
MAGNIFY: string;
|
|
52
57
|
NAVIGATE_BEFORE: string;
|
|
53
58
|
NAVIGATE_NEXT: string;
|
|
54
59
|
NOTEBOOK_CHECK: string;
|
|
@@ -65,13 +70,17 @@ export declare const MDI_ICONS: {
|
|
|
65
70
|
STAR_CHECK_OUTLINE: string;
|
|
66
71
|
STAR_SHOOTING_OUTLINE: string;
|
|
67
72
|
STARS: string;
|
|
73
|
+
SUCCESS_CIRCLE_OUTLINE: string;
|
|
68
74
|
SWAP_HORIZONTAL: string;
|
|
69
75
|
SWAP_VERTICAL_VARIANT: string;
|
|
70
76
|
TARGET_ARROW: string;
|
|
71
77
|
TEST_TUBE_EMPTY: string;
|
|
78
|
+
TRANSLATE: string;
|
|
72
79
|
TRASH_CAN_OUTLINE: string;
|
|
73
80
|
TRAY_UPLOAD: string;
|
|
74
81
|
VECTOR_POLYGON_VARIANT: string;
|
|
82
|
+
WARNING: string;
|
|
83
|
+
WARNING_CIRCLE: string;
|
|
75
84
|
WARNING_OUTLINE: string;
|
|
76
85
|
WEIGHTS: string;
|
|
77
86
|
};
|
|
@@ -100,10 +109,13 @@ export declare const ICONS_DATA_URL: {
|
|
|
100
109
|
MDI_CALENDAR_CLOCK_OUTLINE: string;
|
|
101
110
|
MDI_CALENDAR_RANGE_OUTLINE: string;
|
|
102
111
|
MDI_CHECK_CIRCLE: string;
|
|
112
|
+
MDI_CHECK_CIRCLE_OUTLINE: string;
|
|
103
113
|
MDI_CLOSE_CIRCLE_OUTLINE: string;
|
|
104
114
|
MDI_DOTS_HORIZONTAL_CIRCLE_OUTLINE: string;
|
|
105
115
|
MDI_MESSAGE_BADGE: string;
|
|
106
116
|
MDI_HOURGLASS: string;
|
|
117
|
+
MDI_KEYBOARD_ARROW_DOWN: string;
|
|
118
|
+
MDI_KEYBOARD_ARROW_RIGHT: string;
|
|
107
119
|
MDI_PENCIL_OUTLINE: string;
|
|
108
120
|
MDI_STARS: string;
|
|
109
121
|
MDI_TEXT_BOX_CHECK_OUTLINE: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avenirs-esr/avenirs-dsav",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.77",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/avenirs-esr/avenirs-dsav"
|
|
@@ -84,7 +84,6 @@
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@gouvfr/dsfr": "^1.14.0",
|
|
88
87
|
"@iconify/vue": "^4.3.0",
|
|
89
88
|
"@vueuse/core": "^13.9.0",
|
|
90
89
|
"date-fns": "^4.1.0",
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@use '../core/namespace' as *;
|
|
2
|
+
|
|
3
|
+
@include ns("collapse") {
|
|
4
|
+
--collapse: -99999px;
|
|
5
|
+
--collapser: "";
|
|
6
|
+
--collapse-max-height: none;
|
|
7
|
+
|
|
8
|
+
background-color: var(--other-background-base);
|
|
9
|
+
max-height: var(--collapse-max-height);
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
transition: visibility 0.3s;
|
|
12
|
+
|
|
13
|
+
&--expanded {
|
|
14
|
+
overflow-x: hidden;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:before {
|
|
18
|
+
content: "";
|
|
19
|
+
content: var(--collapser);
|
|
20
|
+
display: block;
|
|
21
|
+
margin-top: 0;
|
|
22
|
+
transition: margin-top 0.3s;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:not(.#{$prefix}collapse--expanded):not(.#{$prefix}collapsing) {
|
|
26
|
+
--collapse-max-height: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:not(.#{$prefix}collapse--expanded) {
|
|
30
|
+
visibility: hidden;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:not(.#{$prefix}collapse--expanded):before {
|
|
34
|
+
margin-top: -99999px;
|
|
35
|
+
margin-top: var(--collapse);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@use '../core/namespace' as *;
|
|
2
|
+
@use '../settings/breakpoints' as *;
|
|
3
|
+
|
|
4
|
+
@include ns("footer") {
|
|
5
|
+
margin-top: var(--spacing-4xl);
|
|
6
|
+
padding-top: var(--spacing-none);
|
|
7
|
+
width: 100%;
|
|
8
|
+
background-color: var(--other-background-base);
|
|
9
|
+
|
|
10
|
+
@include min-width(sm) {
|
|
11
|
+
&__content-list>li {
|
|
12
|
+
margin-right:1.5rem
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use '../core/namespace' as *;
|
|
2
|
+
@use '../core/typography' as *;
|
|
3
|
+
|
|
4
|
+
// === Form elements reset ===
|
|
5
|
+
input,
|
|
6
|
+
select,
|
|
7
|
+
textarea {
|
|
8
|
+
-webkit-font-smoothing:antialiased;
|
|
9
|
+
-moz-osx-font-smoothing:grayscale;
|
|
10
|
+
-webkit-text-size-adjust:100%;
|
|
11
|
+
border:0;
|
|
12
|
+
border-radius:0;
|
|
13
|
+
font-family:Luciole, arial, sans-serif;
|
|
14
|
+
text-rendering:optimizeLegibility;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
input[type=search]{
|
|
18
|
+
-webkit-appearance:none;
|
|
19
|
+
-moz-appearance:none;
|
|
20
|
+
appearance:none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
input[type=checkbox],
|
|
24
|
+
input[type=radio],
|
|
25
|
+
input[type=range] {
|
|
26
|
+
-webkit-appearance:auto;
|
|
27
|
+
-moz-appearance:auto;
|
|
28
|
+
appearance:auto;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// === Label ===
|
|
32
|
+
@include ns("label") {
|
|
33
|
+
@extend .b2-regular;
|
|
34
|
+
display: block;
|
|
35
|
+
padding-bottom: var(--spacing-xxs);
|
|
36
|
+
|
|
37
|
+
&::before {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// === Hint text ===
|
|
43
|
+
@include ns("hint-text") {
|
|
44
|
+
@extend .caption-regular;
|
|
45
|
+
display: block;
|
|
46
|
+
|
|
47
|
+
+.#{$prefix}hint-text {
|
|
48
|
+
padding-top: var(--spacing-xxs);
|
|
49
|
+
}
|
|
50
|
+
}
|