@massimo-cassandro/minimo 1.21.3 → 1.21.4
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/package.json
CHANGED
package/src/minimo.css
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/* decomment
|
|
2
|
-
/* see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@layer */
|
|
1
|
+
/* decomment if you want to use layers. see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@layer */
|
|
3
2
|
/* @layer reset, base, components, utilities, project, overrides; */
|
|
4
3
|
|
|
5
4
|
/* @import '@src/fonts.css'; */
|
|
@@ -102,7 +102,7 @@ export function buildInput({
|
|
|
102
102
|
* @param {string} args.label - select label.
|
|
103
103
|
* @param {string | null} args.name - select `name` attribute.
|
|
104
104
|
* @param {string | null} args.id - `id` attribute.
|
|
105
|
-
* @param {string | number | null} args.selectedValue - selected value
|
|
105
|
+
* @param {string | number | null} args.selectedValue - selected value (note: checked against 'options' values using loose equality '=='):
|
|
106
106
|
* @param {Array<[string|number, string]> | Array<Record<string, string>> | Record<string, string> | null} args.options -
|
|
107
107
|
* options value/text pairs, as an array of two-element `[[value, text], ...]` arrays,
|
|
108
108
|
* as an array of objects `[{somekey: value, somekey2: text},...]` objects, or as a single `{value: text, ...}` object
|
|
@@ -162,7 +162,8 @@ export function buildSelect({
|
|
|
162
162
|
tag: 'option',
|
|
163
163
|
attrs: {
|
|
164
164
|
value: value,
|
|
165
|
-
|
|
165
|
+
// eslint-disable-next-line eqeqeq
|
|
166
|
+
selected: value == selectedValue
|
|
166
167
|
},
|
|
167
168
|
content: text
|
|
168
169
|
}))
|