@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/minimo",
3
- "version": "1.21.3",
3
+ "version": "1.21.4",
4
4
  "description": "Light css framework & utilities",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -36,7 +36,8 @@
36
36
 
37
37
  .closeButton {
38
38
 
39
- position: absolute;
39
+ /* stylelint-disable-next-line declaration-no-important */
40
+ position: absolute !important;
40
41
  top: calc(-1 * var(--mpopup-btn-close-size) / 3);
41
42
  right: calc(-1 * var(--mpopup-btn-close-size) / 3);
42
43
  }
package/src/minimo.css CHANGED
@@ -1,5 +1,4 @@
1
- /* decomment layers if you want to use them */
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
- selected: value === selectedValue
165
+ // eslint-disable-next-line eqeqeq
166
+ selected: value == selectedValue
166
167
  },
167
168
  content: text
168
169
  }))