@kws3/ui 2.1.3 → 2.1.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/CHANGELOG.mdx +3 -0
- package/controls/NumberInput.svelte +10 -3
- package/package.json +2 -2
- package/styles/CheckRadio.scss +8 -2
package/CHANGELOG.mdx
CHANGED
|
@@ -14,6 +14,7 @@ This will be overridden if `min` is higher, or `max` is lower, Default: `0`
|
|
|
14
14
|
@param {boolean} [disabled=false] - Disables the NumberInput, Default: `false`
|
|
15
15
|
@param {boolean} [fullwidth=false] - Forces the NumberInput to occupy the full width of it's container, Default: `false`
|
|
16
16
|
@param {boolean} [typeable=true] - Allows typing the value into the input, Default: `true`
|
|
17
|
+
@param {string} [input_class=""] - Adds a css class to the input field, Default: `""`
|
|
17
18
|
@param {string} [minus_icon="minus"] - Name of the icon that is to be displayed in the minus button, Default: `"minus"`
|
|
18
19
|
@param {ColorOptions} [minus_icon_color=danger] - Color of the Minus Icon, Default: `danger`
|
|
19
20
|
@param {ColorOptions} [minus_button_color=] - Color of the Minus Button, Default: ``
|
|
@@ -35,8 +36,8 @@ This will be overridden if `min` is higher, or `max` is lower, Default: `0`
|
|
|
35
36
|
<input
|
|
36
37
|
{style}
|
|
37
38
|
data-testid="input"
|
|
38
|
-
class="input has-text-centered {klass} is-{size} is-{value <
|
|
39
|
-
|
|
39
|
+
class="input has-text-centered {klass} {input_class} is-{size} is-{value <
|
|
40
|
+
min || value > max
|
|
40
41
|
? 'danger'
|
|
41
42
|
: ''}"
|
|
42
43
|
type="number"
|
|
@@ -67,8 +68,10 @@ This will be overridden if `min` is higher, or `max` is lower, Default: `0`
|
|
|
67
68
|
</div>
|
|
68
69
|
<div class="control is-{fullwidth ? 'expanded' : 'narrow'}">
|
|
69
70
|
<input
|
|
71
|
+
style="z-index:1"
|
|
70
72
|
data-testid="input"
|
|
71
|
-
class="input has-text-centered is-{size} is-{value <
|
|
73
|
+
class="input has-text-centered {input_class} is-{size} is-{value <
|
|
74
|
+
min || value > max
|
|
72
75
|
? 'danger'
|
|
73
76
|
: ''}"
|
|
74
77
|
type="number"
|
|
@@ -172,6 +175,10 @@ This will be overridden if `min` is higher, or `max` is lower, Default: `0`
|
|
|
172
175
|
* Allows typing the value into the input
|
|
173
176
|
*/
|
|
174
177
|
typeable = true,
|
|
178
|
+
/**
|
|
179
|
+
* Adds a css class to the input field
|
|
180
|
+
*/
|
|
181
|
+
input_class = "",
|
|
175
182
|
/**
|
|
176
183
|
* Name of the icon that is to be displayed in the minus button
|
|
177
184
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kws3/ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "UI components for use with Svelte v3 applications.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"svelte": "index.js",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"typescript": "^5.0.4"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "801fdf5363f25ccb04d1a6506bb2c51e0a8506cc"
|
|
39
39
|
}
|
package/styles/CheckRadio.scss
CHANGED
|
@@ -130,10 +130,16 @@ $kws-checkradio-focus-box-shadow-color: $input-focus-box-shadow-color !default;
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
input[type="checkbox"]:disabled + .kws-checkbox-label,
|
|
134
|
-
input[type="radio"]:disabled + .kws-checkbox-label,
|
|
135
133
|
input[type="checkbox"]:disabled ~ .icon,
|
|
136
134
|
input[type="radio"]:disabled ~ .icon {
|
|
135
|
+
opacity: 0;
|
|
136
|
+
cursor: not-allowed;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
input[type="checkbox"]:disabled + .kws-checkbox-label,
|
|
140
|
+
input[type="radio"]:disabled + .kws-checkbox-label,
|
|
141
|
+
input[type="checkbox"]:checked:disabled ~ .icon,
|
|
142
|
+
input[type="radio"]:checked:disabled ~ .icon {
|
|
137
143
|
opacity: 0.5;
|
|
138
144
|
cursor: not-allowed;
|
|
139
145
|
}
|