@kws3/ui 4.5.5 → 4.5.7

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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## 4.5.7
2
+ - Fix SCSS deprecation warnings
3
+
4
+ ## 4.5.6
5
+ - Fix chart tooltip box shadow colors
6
+ - Add docs for LLMs
7
+
1
8
  ## 4.5.5
2
9
  - Fix type of `ToggleButtons` value, it can be any type
3
10
  - Fix Charts axis text colours to match theme
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kws3/ui",
3
- "version": "4.5.5",
3
+ "version": "4.5.7",
4
4
  "description": "UI components for use with Svelte v3 applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -67,5 +67,5 @@
67
67
  "devDependencies": {
68
68
  "typescript": "^5.2.2"
69
69
  },
70
- "gitHead": "a22a25813f02e97dfa7907f9192b75f4340d4855"
70
+ "gitHead": "ac1f52cbab18e465f845a3366f6b13a00ce331c0"
71
71
  }
@@ -1,3 +1,4 @@
1
+ @use "sass:meta";
1
2
  @use "bulma/sass/utilities/css-variables" as cv;
2
3
  @use "bulma/sass/utilities/derived-variables" as dv;
3
4
 
@@ -26,7 +27,7 @@ $text-matches-font-weight: cv.getVar("weight-bold") !default;
26
27
  $options-background: cv.getVar("scheme-main-ter") !default;
27
28
 
28
29
  $__modal-z: 41 !default;
29
- @if variable-exists("modal-z") {
30
+ @if meta.variable-exists("modal-z") {
30
31
  $__modal-z: $modal-z;
31
32
  }
32
33
 
package/styles/Chart.scss CHANGED
@@ -4,6 +4,7 @@ $background-color: cv.getVar("scheme-main") !default;
4
4
  $foreground-color: cv.getVar("text") !default;
5
5
  $axis-lines-color: cv.getVar("border") !default;
6
6
  $grid-lines-color: cv.getVar("border-weak") !default;
7
+ $tooltip-box-shadow: cv.getVar("shadow") !default;
7
8
 
8
9
  .kws-chart {
9
10
  .apexcharts-gridlines-horizontal {
@@ -25,6 +26,7 @@ $grid-lines-color: cv.getVar("border-weak") !default;
25
26
  border: 0;
26
27
  background: $background-color;
27
28
  border-radius: 0;
29
+ box-shadow: $tooltip-box-shadow;
28
30
  .apexcharts-tooltip-title {
29
31
  background: $background-color;
30
32
  color: $foreground-color;
@@ -1,3 +1,4 @@
1
+ @use "sass:meta";
1
2
  @use "bulma/sass/utilities/css-variables" as cv;
2
3
  @use "bulma/sass/utilities/derived-variables" as dv;
3
4
 
@@ -27,7 +28,7 @@ $selected-background: cv.getVar("primary-light") !default;
27
28
  $options-background: cv.getVar("scheme-main-ter") !default;
28
29
 
29
30
  $__modal-z: 41 !default;
30
- @if variable-exists("modal-z") {
31
+ @if meta.variable-exists("modal-z") {
31
32
  $__modal-z: $modal-z;
32
33
  }
33
34
 
@@ -7,10 +7,10 @@ $count-color: cv.getVar("danger-invert") !default;
7
7
  .kws-toggle-buttons {
8
8
  .button,
9
9
  .button:focus {
10
+ box-shadow: none;
10
11
  .icon {
11
12
  margin: 0;
12
13
  }
13
- box-shadow: none;
14
14
  &.is-active {
15
15
  box-shadow: 0 0 0.6rem
16
16
  hsla(
@@ -1,3 +1,4 @@
1
+ @use "sass:list";
1
2
  @use "bulma/sass/utilities/css-variables" as cv;
2
3
  @use "bulma/sass/utilities/derived-variables" as dv;
3
4
 
@@ -7,7 +8,8 @@ $color: cv.getVar("text-invert") !default;
7
8
  $arrow-size: 8px !default;
8
9
  $padding: 0.5rem !default;
9
10
  $radius: cv.getVar("radius-small") !default;
10
- $shadow: 0 5px 10px -5px hsla(cv.getVar("shadow-h"), cv.getVar("shadow-s"), cv.getVar("shadow-l"), 0.4) !default;
11
+ $shadow: 0 5px 10px -5px
12
+ hsla(cv.getVar("shadow-h"), cv.getVar("shadow-s"), cv.getVar("shadow-l"), 0.4) !default;
11
13
  $popover-background: cv.getVar("background") !default;
12
14
  $popover-color: cv.getVar("text") !default;
13
15
  $popover-arrow-color: cv.getVar("border") !default;
@@ -50,7 +52,10 @@ $popover-radius: $radius !default;
50
52
  &[data-animation="scale"] {
51
53
  @each $placement in $placements {
52
54
  &[data-placement^="#{$placement}"] {
53
- transform-origin: nth($origins, index($placements, $placement));
55
+ transform-origin: list.nth(
56
+ $origins,
57
+ list.index($placements, $placement)
58
+ );
54
59
  }
55
60
  }
56
61