@kws3/ui 4.4.0-alpha.4 → 4.5.0-beta.2
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 +17 -0
- package/controls/RangeSlider.svelte +2 -2
- package/package.json +2 -2
- package/styles/Grid.scss +2 -1
- package/styles/Panel.scss +1 -0
- package/styles/Toggle.scss +7 -8
package/CHANGELOG.mdx
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
### 4.5.0 <span className="has-text-danger">[BREAKING]</span>
|
|
2
|
+
- This version requires Bulma v1
|
|
3
|
+
- Supports bulma dark mode
|
|
4
|
+
- All SCSS files are now modular, so you need to use `@use` instead of `@import`
|
|
5
|
+
- All SCSS variable names have been updated. Now they do not start with `$kws-` and are more generic. This is due to using modular SCSS
|
|
6
|
+
- All SCSS variables now have default Bulma css variables as default values, so most of the time an override will not be required, and it will just work according to the active theme
|
|
7
|
+
- `ToggleButtons` component now has it's own SCSS file that needs to be imported
|
|
8
|
+
- Default `inactive_class` has changed in `ToggleButtons` component
|
|
9
|
+
- Some internal class names in `FileUpload` component have changed
|
|
10
|
+
- Some internal class names in `TimelineItem` component have changed
|
|
11
|
+
- `Colorpicker` component's wrapper class name has changed
|
|
12
|
+
- All instances of `is-marginless` css class has been replaced with `marginless`, as this is how new Bulma v1 supports it
|
|
13
|
+
- All instances of `is-paddingless` css class has been replaced with `paddingless`, as this is how new Bulma v1 supports it
|
|
14
|
+
- Fix `datepicker` and `timepicker` action return types
|
|
15
|
+
- Fix utility `cloneObject` type signature
|
|
16
|
+
- Add `transparent` to `ExtendedColors` type
|
|
17
|
+
|
|
1
18
|
## 4.3.5
|
|
2
19
|
- Fix Radio component value type
|
|
3
20
|
|
|
@@ -127,8 +127,8 @@ This will be overridden if `min` is higher, or `max` is lower, Default: `0`
|
|
|
127
127
|
$: {
|
|
128
128
|
let range = max - min;
|
|
129
129
|
let position = ((value - min) / range) * 100;
|
|
130
|
-
let positionOffset = Math.round(position * 0.
|
|
131
|
-
computedStyle = `left:calc(${position}% - ${positionOffset}px`;
|
|
130
|
+
let positionOffset = Math.round(position * 0.4);
|
|
131
|
+
computedStyle = `left:calc(${position}% - ${positionOffset}px)`;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
onMount(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kws3/ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0-beta.2",
|
|
4
4
|
"description": "UI components for use with Svelte v3 applications.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"svelte": "index.js",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"typescript": "^5.2.2"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "c5a77050657a2bc3237013f0d64f97bd6ce1d015"
|
|
43
43
|
}
|
package/styles/Grid.scss
CHANGED
|
@@ -7,6 +7,7 @@ $th-color: cv.getVar("text") !default;
|
|
|
7
7
|
$tag-margin: 0 0.125rem 0.125rem 0 !default;
|
|
8
8
|
$icon-size: 1.5em !default;
|
|
9
9
|
$checked-row-background: cv.getVar("info-light") !default;
|
|
10
|
+
$checked-row-color: cv.getVar("info") !default;
|
|
10
11
|
$active-row-background: cv.getVar("table-row-active-background-color") !default;
|
|
11
12
|
$active-row-color: cv.getVar("table-row-active-color") !default;
|
|
12
13
|
$background: cv.getVar("table-background-color") !default;
|
|
@@ -71,7 +72,7 @@ $cell-border-color: cv.getVar("table-cell-border-color") !default;
|
|
|
71
72
|
background-color: $checked-row-background !important;
|
|
72
73
|
td {
|
|
73
74
|
background-color: $checked-row-background !important;
|
|
74
|
-
color: $
|
|
75
|
+
color: $checked-row-color !important;
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
|
package/styles/Panel.scss
CHANGED
package/styles/Toggle.scss
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
$theme-colors: dv.$colors !default;
|
|
5
5
|
$off-bg-color: cv.getVar("border-weak") !default;
|
|
6
|
-
$handle-bg-color: cv.getVar("text-invert") !default;
|
|
6
|
+
$handle-bg-color: cv.getVar("text-40-invert") !default;
|
|
7
7
|
$track-bg-color: cv.getVar("text") !default;
|
|
8
8
|
$track-bg-color-invert: cv.getVar("text-invert") !default;
|
|
9
9
|
$border-color: cv.getVar("border") !default;
|
|
@@ -24,8 +24,8 @@ $border-color: cv.getVar("border") !default;
|
|
|
24
24
|
border 0.3s;
|
|
25
25
|
display: inline-flex;
|
|
26
26
|
align-items: center;
|
|
27
|
-
width:
|
|
28
|
-
height: 2.
|
|
27
|
+
width: 3.93em;
|
|
28
|
+
height: 2.21em;
|
|
29
29
|
border: solid 1px $border-color;
|
|
30
30
|
border-radius: 1.428em;
|
|
31
31
|
background-color: $off-bg-color;
|
|
@@ -36,7 +36,6 @@ $border-color: cv.getVar("border") !default;
|
|
|
36
36
|
flex-shrink: 0;
|
|
37
37
|
font-weight: bold;
|
|
38
38
|
font-size: 0.642em;
|
|
39
|
-
line-height: 1em;
|
|
40
39
|
display: block;
|
|
41
40
|
text-align: right;
|
|
42
41
|
user-select: none;
|
|
@@ -47,9 +46,9 @@ $border-color: cv.getVar("border") !default;
|
|
|
47
46
|
transition: transform 0.3s cubic-bezier(0, 1.1, 1, 1.1);
|
|
48
47
|
position: absolute;
|
|
49
48
|
display: block;
|
|
50
|
-
width:
|
|
51
|
-
height:
|
|
52
|
-
border-radius:
|
|
49
|
+
width: 1.928em;
|
|
50
|
+
height: 1.928em;
|
|
51
|
+
border-radius: 1.928em;
|
|
53
52
|
background-color: $handle-bg-color;
|
|
54
53
|
box-shadow:
|
|
55
54
|
0 2px 7px rgba(0, 0, 0, 0.35),
|
|
@@ -68,7 +67,7 @@ $border-color: cv.getVar("border") !default;
|
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
.handle {
|
|
71
|
-
transform: translate3d(1.
|
|
70
|
+
transform: translate3d(1.785em, 0, 0);
|
|
72
71
|
}
|
|
73
72
|
@each $name, $pair in $theme-colors {
|
|
74
73
|
$color: cv.getVar($name);
|