@avenirs-esr/avenirs-dsav 0.1.29 → 0.1.30

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.
@@ -22,7 +22,7 @@ import { type AvMultiselectProps } from '@/components/interaction/selects/AvMult
22
22
  * <ul>
23
23
  * <li><span class="b2-regular">a <strong>label</strong> - Mandatory (<code>label</code> prop)</span></li>
24
24
  * <li><span class="b2-regular">a <strong>description</strong> - Optional (<code>hint</code> prop or <code>hint</code> slot)</span></li>
25
- * <li><span class="b2-regular">a <strong>list</strong> - Composed of a set of selectable options (mandatory, <code>options</code> prop)</span></li>
25
+ * <li><span class="b2-regular">a <strong>list</strong> - Composed of a set of selectable options (mandatory, <code>options</code> prop with a label, a value and an optional icon)</span></li>
26
26
  * </ul>
27
27
  *
28
28
  * <p><span class="b2-regular">Inside the list:</span></p>
@@ -33,7 +33,7 @@ import { type AvMultiselectProps } from '@/components/interaction/selects/AvMult
33
33
  * <ul>
34
34
  * <li><span class="b2-regular">a <strong>legend</strong> - Optional, can be hidden (<code>legend</code> prop or <code>legend</code> slot)</span></li>
35
35
  * <li><span class="b2-regular">a <strong>description of the group</strong> - Optional, can be hidden</span></li>
36
- * <li><span class="b2-regular">a <strong>list of options</strong> - Mandatory (<code>options</code> prop)</span></li>
36
+ * <li><span class="b2-regular">a <strong>list of options</strong> - Mandatory (<code>options</code> prop with a label, a value and an optional icon)</span></li>
37
37
  * </ul>
38
38
  * </li>
39
39
  * </ul>
@@ -107,7 +107,7 @@ declare const meta: {
107
107
  selectId: string;
108
108
  name: string;
109
109
  hint: string;
110
- modelValue: string[];
110
+ modelValue: never[];
111
111
  label: string;
112
112
  successMessage: string;
113
113
  errorMessage: string;
@@ -126,3 +126,4 @@ declare const meta: {
126
126
  export default meta;
127
127
  export declare const Default: StoryFn<AvMultiselectProps>;
128
128
  export declare const Dense: StoryFn<AvMultiselectProps>;
129
+ export declare const OptionsWithIcon: StoryFn<AvMultiselectProps>;
@@ -6,6 +6,10 @@ export interface AvMultiselectOption {
6
6
  * Displayed label of the option
7
7
  */
8
8
  label: string;
9
+ /**
10
+ * Name of the icon option
11
+ */
12
+ icon?: string;
9
13
  /**
10
14
  * Value of the option
11
15
  */
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.29",
4
+ "version": "0.1.30",
5
5
  "main": "dist/avenirs-dsav.umd.js",
6
6
  "module": "dist/avenirs-dsav.es.js",
7
7
  "types": "dist/index.d.ts",