@kws3/ui 4.3.5 → 4.4.0-alpha.1
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/controls/ToggleButtons.svelte +3 -3
- package/datagrid/DataSort/DataSort.svelte +1 -1
- package/forms/AutoComplete.svelte +6 -6
- package/forms/PasswordInput.svelte +2 -2
- package/forms/SearchInput.svelte +1 -1
- package/forms/select/MultiSelect.svelte +14 -12
- package/helpers/FloatingUI/Floatie.svelte +1 -1
- package/package.json +3 -3
- package/styles/ActionSheet.scss +7 -4
- package/styles/AutoComplete.scss +39 -19
- package/styles/Canvas.scss +8 -5
- package/styles/Chart.scss +4 -2
- package/styles/CheckRadio.scss +21 -7
- package/styles/DataSearch.scss +8 -4
- package/styles/DataSort.scss +18 -9
- package/styles/Datepicker.scss +21 -12
- package/styles/Divider.scss +8 -5
- package/styles/FileUpload.scss +18 -16
- package/styles/FloatingUI.scss +28 -16
- package/styles/Grid.scss +30 -11
- package/styles/Loader.scss +5 -3
- package/styles/Pagination.scss +16 -12
- package/styles/Panel.scss +10 -4
- package/styles/RangeSlider.scss +32 -29
- package/styles/Select.scss +41 -24
- package/styles/Skeleton.scss +11 -5
- package/styles/SlidingPane.scss +32 -26
- package/styles/Timeline.scss +12 -6
- package/styles/Timepicker.scss +18 -13
- package/styles/Toggle.scss +18 -8
- package/styles/Tooltip.scss +16 -18
- package/utils/index.d.ts +1 -5
- package/utils/index.d.ts.map +1 -1
- package/utils/index.js +1 -0
|
@@ -42,12 +42,12 @@ This property can be bound to, to fetch the current value, Default: `null`
|
|
|
42
42
|
? 'is-active ' +
|
|
43
43
|
(option.active_class ? option.active_class : active_class)
|
|
44
44
|
: option.inactive_class
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
? option.inactive_class
|
|
46
|
+
: inactive_class}"
|
|
47
47
|
style="height:auto">
|
|
48
48
|
<span>
|
|
49
49
|
{#if option.icon}
|
|
50
|
-
<Icon icon={option.icon} size="small" class="
|
|
50
|
+
<Icon icon={option.icon} size="small" class="marginless" />
|
|
51
51
|
{/if}
|
|
52
52
|
<span class="is-block">{option.name}</span>
|
|
53
53
|
{#if option.subtitle}
|
|
@@ -65,7 +65,7 @@ Default value: `<span>{option.label}</span>`
|
|
|
65
65
|
<button
|
|
66
66
|
type="button"
|
|
67
67
|
style="border: none;"
|
|
68
|
-
class="button
|
|
68
|
+
class="button paddingless delete is-medium is-loading" />
|
|
69
69
|
{/if}
|
|
70
70
|
{#if rootContainer}
|
|
71
71
|
<div
|
|
@@ -127,7 +127,7 @@ Default value: `<span>{option.label}</span>`
|
|
|
127
127
|
fn: ({ state }) => {
|
|
128
128
|
state.styles.popper.width = `${Math.max(
|
|
129
129
|
200,
|
|
130
|
-
state.rects.reference.width
|
|
130
|
+
state.rects.reference.width,
|
|
131
131
|
)}px`;
|
|
132
132
|
},
|
|
133
133
|
effect: ({ state }) => {
|
|
@@ -454,25 +454,25 @@ Default value: `<span>{option.label}</span>`
|
|
|
454
454
|
|
|
455
455
|
const normaliseArraysToObjects = (arr) =>
|
|
456
456
|
[...arr].map((item) =>
|
|
457
|
-
typeof item === "object" ? item : { label: item, value: item }
|
|
457
|
+
typeof item === "object" ? item : { label: item, value: item },
|
|
458
458
|
);
|
|
459
459
|
|
|
460
460
|
const highlightMatches = (options, filters) => {
|
|
461
461
|
if (!filters.length) return options;
|
|
462
462
|
// join all filter parts and split into chars and filter out duplicates
|
|
463
463
|
let common_chars = [...filters.join("")].filter(
|
|
464
|
-
(v, i, self) => self.indexOf(v) === i
|
|
464
|
+
(v, i, self) => self.indexOf(v) === i,
|
|
465
465
|
);
|
|
466
466
|
let pattern = new RegExp(
|
|
467
467
|
`[${common_chars.join("").replace(/\\/g, "\")}]`,
|
|
468
|
-
"gi"
|
|
468
|
+
"gi",
|
|
469
469
|
);
|
|
470
470
|
return options.map((item) => {
|
|
471
471
|
return {
|
|
472
472
|
...item,
|
|
473
473
|
label: item.value.replace(
|
|
474
474
|
pattern,
|
|
475
|
-
(match) => `<span class="h">${match}</span
|
|
475
|
+
(match) => `<span class="h">${match}</span>`,
|
|
476
476
|
),
|
|
477
477
|
};
|
|
478
478
|
});
|
|
@@ -43,9 +43,9 @@ This property can be bound to, to fetch the current value, Default: ``
|
|
|
43
43
|
|
|
44
44
|
-->
|
|
45
45
|
|
|
46
|
-
<div class="field
|
|
46
|
+
<div class="field marginless">
|
|
47
47
|
<p
|
|
48
|
-
class="control
|
|
48
|
+
class="control marginless"
|
|
49
49
|
class:has-icons-left={show_field_icon}
|
|
50
50
|
class:has-icons-right={show_visibility_switch}>
|
|
51
51
|
<input
|
package/forms/SearchInput.svelte
CHANGED
|
@@ -111,7 +111,7 @@ Default value: `<span>{option[search_key] || option}</span>`
|
|
|
111
111
|
<button
|
|
112
112
|
type="button"
|
|
113
113
|
style="border: none;"
|
|
114
|
-
class="button
|
|
114
|
+
class="button delete paddingless is-small is-loading" />
|
|
115
115
|
{:else if !readonly && !disabled}
|
|
116
116
|
<button
|
|
117
117
|
type="button"
|
|
@@ -190,7 +190,7 @@ Default value: `<span>{option[search_key] || option}</span>`
|
|
|
190
190
|
fn: ({ state }) => {
|
|
191
191
|
state.styles.popper.width = `${Math.max(
|
|
192
192
|
200,
|
|
193
|
-
state.rects.reference.width
|
|
193
|
+
state.rects.reference.width,
|
|
194
194
|
)}px`;
|
|
195
195
|
},
|
|
196
196
|
effect: ({ state }) => {
|
|
@@ -385,8 +385,8 @@ Default value: `<span>{option[search_key] || option}</span>`
|
|
|
385
385
|
? true
|
|
386
386
|
: false
|
|
387
387
|
: value && value.length
|
|
388
|
-
|
|
389
|
-
|
|
388
|
+
? true
|
|
389
|
+
: false;
|
|
390
390
|
$: _placeholder = hasValue ? "" : placeholder;
|
|
391
391
|
|
|
392
392
|
//ensure search_key and value_key are no empty strings
|
|
@@ -464,7 +464,7 @@ Default value: `<span>{option[search_key] || option}</span>`
|
|
|
464
464
|
(activeOption &&
|
|
465
465
|
searching &&
|
|
466
466
|
!filteredOptions.some(
|
|
467
|
-
(fo) => fo[used_value_key] === activeOption[used_value_key]
|
|
467
|
+
(fo) => fo[used_value_key] === activeOption[used_value_key],
|
|
468
468
|
)) ||
|
|
469
469
|
(!activeOption && searchText)
|
|
470
470
|
) {
|
|
@@ -472,7 +472,7 @@ Default value: `<span>{option[search_key] || option}</span>`
|
|
|
472
472
|
} else {
|
|
473
473
|
if (asyncMode || allow_fuzzy_match) {
|
|
474
474
|
activeOption = filteredOptions.find((opts) =>
|
|
475
|
-
matchesValue(activeOption, opts)
|
|
475
|
+
matchesValue(activeOption, opts),
|
|
476
476
|
);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
@@ -481,7 +481,7 @@ Default value: `<span>{option[search_key] || option}</span>`
|
|
|
481
481
|
function fillSelectedOptions() {
|
|
482
482
|
if (single) {
|
|
483
483
|
selectedOptions = normalisedOptions.filter(
|
|
484
|
-
(v) => `${v[used_value_key]}` === `${value}
|
|
484
|
+
(v) => `${v[used_value_key]}` === `${value}`,
|
|
485
485
|
);
|
|
486
486
|
} else {
|
|
487
487
|
let _normalisedOptions = asyncMode
|
|
@@ -489,7 +489,9 @@ Default value: `<span>{option[search_key] || option}</span>`
|
|
|
489
489
|
//de-dupe by `used_value_key` when in asyncMode
|
|
490
490
|
(value, idx, self) =>
|
|
491
491
|
idx ===
|
|
492
|
-
self.findIndex(
|
|
492
|
+
self.findIndex(
|
|
493
|
+
(v) => v[used_value_key] === value[used_value_key],
|
|
494
|
+
),
|
|
493
495
|
)
|
|
494
496
|
: normalisedOptions;
|
|
495
497
|
|
|
@@ -497,13 +499,13 @@ Default value: `<span>{option[search_key] || option}</span>`
|
|
|
497
499
|
.filter(
|
|
498
500
|
(v) =>
|
|
499
501
|
Array.isArray(value) &&
|
|
500
|
-
value.some((vl) => `${v[used_value_key]}` === `${vl}`)
|
|
502
|
+
value.some((vl) => `${v[used_value_key]}` === `${vl}`),
|
|
501
503
|
)
|
|
502
504
|
.sort(
|
|
503
505
|
(a, b) =>
|
|
504
506
|
// tweak for 'value is nullable' type error
|
|
505
507
|
(value ? value.indexOf(a[used_value_key]) : 0) -
|
|
506
|
-
(value ? value.indexOf(b[used_value_key]) : 0)
|
|
508
|
+
(value ? value.indexOf(b[used_value_key]) : 0),
|
|
507
509
|
);
|
|
508
510
|
}
|
|
509
511
|
|
|
@@ -566,7 +568,7 @@ Default value: `<span>{option[search_key] || option}</span>`
|
|
|
566
568
|
tick().then(() => {
|
|
567
569
|
normaliseOptions();
|
|
568
570
|
value = normaliseArraysToObjects(options).map(
|
|
569
|
-
(v) => v[used_value_key]
|
|
571
|
+
(v) => v[used_value_key],
|
|
570
572
|
);
|
|
571
573
|
if (single && Array.isArray(value)) {
|
|
572
574
|
value = value[0];
|
|
@@ -614,7 +616,7 @@ Default value: `<span>{option[search_key] || option}</span>`
|
|
|
614
616
|
//Do not filter invalid options, as they are async and might not be invalid
|
|
615
617
|
//but ensure they are unique
|
|
616
618
|
value = [...(value ? value : []), token[used_value_key]].filter(
|
|
617
|
-
(v, i, a) => a.indexOf(v) === i
|
|
619
|
+
(v, i, a) => a.indexOf(v) === i,
|
|
618
620
|
);
|
|
619
621
|
} else {
|
|
620
622
|
//attach to value array while filtering out invalid values
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<button type="button" class="delete" on:click={destroy} />
|
|
47
47
|
{/if}
|
|
48
48
|
{#if title}
|
|
49
|
-
<h4 class="title is-5
|
|
49
|
+
<h4 class="title is-5 marginless">{title}</h4>
|
|
50
50
|
{/if}
|
|
51
51
|
|
|
52
52
|
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kws3/ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0-alpha.1",
|
|
4
4
|
"description": "UI components for use with Svelte v3 applications.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"svelte": "index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"types": "./index.d.ts",
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"bulma": "^0.
|
|
29
|
+
"bulma": "^1.0.0",
|
|
30
30
|
"svelte": "^4.2.10"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"typescript": "^5.2.2"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "cf074da1936f0203001ff52e74bcf8ad2c921dd9"
|
|
43
43
|
}
|
package/styles/ActionSheet.scss
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
|
+
@use "bulma/sass/utilities/mixins" as mx;
|
|
3
|
+
|
|
4
|
+
$kws-actionsheet-background: #{cv.getVar("background")} !default;
|
|
5
|
+
$kws-actionsheet-box-shadow: #{cv.getVar("card-shadow")} !default;
|
|
6
|
+
$kws-actionsheet-box-radius: #{cv.getVar("radius")} !default;
|
|
4
7
|
|
|
5
8
|
.kws-action-sheet-outer {
|
|
6
9
|
display: flex;
|
|
@@ -28,7 +31,7 @@ $kws-actionsheet-box-radius: $radius !default;
|
|
|
28
31
|
padding: 1.25em 1.5em;
|
|
29
32
|
overflow-x: auto;
|
|
30
33
|
}
|
|
31
|
-
@include mobile {
|
|
34
|
+
@include mx.mobile {
|
|
32
35
|
.kws-action-sheet {
|
|
33
36
|
left: 0;
|
|
34
37
|
max-width: 100%;
|
package/styles/AutoComplete.scss
CHANGED
|
@@ -1,23 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
|
+
@use "bulma/sass/utilities/derived-variables" as dv;
|
|
3
|
+
@use "bulma/sass/utilities/functions" as fn;
|
|
4
|
+
|
|
5
|
+
$kws-theme-colors: dv.$colors !default;
|
|
6
|
+
$kws-autocomplete-radius: #{cv.getVar("radius")} !default;
|
|
7
|
+
$kws-autocomplete-border-color: #{cv.getVar("border")} !default;
|
|
8
|
+
$kws-autocomplete-box-shadow:
|
|
9
|
+
0 0.5em 1em -0.125em rgb(10 10 10 / 10%),
|
|
5
10
|
0 0px 0 1px rgb(10 10 10 / 2%) !default;
|
|
6
|
-
$kws-autocomplete-focus-border-color:
|
|
7
|
-
$kws-autocomplete-focus-box-shadow-size:
|
|
8
|
-
$kws-autocomplete-focus-box-shadow-color:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
$kws-autocomplete-focus-border-color: #{cv.getVar("input-focus-border-color")} !default;
|
|
12
|
+
$kws-autocomplete-focus-box-shadow-size: #{cv.getVar("focus-shadow-size")} !default;
|
|
13
|
+
$kws-autocomplete-focus-box-shadow-color: hsl(
|
|
14
|
+
#{cv.getVar("focus-h")},
|
|
15
|
+
#{cv.getVar("focus-s")},
|
|
16
|
+
#{cv.getVar("focus-l")},
|
|
17
|
+
#{cv.getVar("focus-shadow-alpha")}
|
|
18
|
+
) !default;
|
|
19
|
+
$kws-autocomplete-disabled-background-color: #{cv.getVar(
|
|
20
|
+
"input-disabled-background-color"
|
|
21
|
+
)} !default;
|
|
22
|
+
$kws-autocomplete-disabled-border-color: #{cv.getVar(
|
|
23
|
+
"input-disabled-border-color"
|
|
24
|
+
)} !default;
|
|
25
|
+
$kws-autocomplete-disabled-color: #{cv.getVar("input-disabled-color")} !default;
|
|
26
|
+
$kws-autocomplete-selecting-color: #{cv.getVar("primary-invert")} !default;
|
|
27
|
+
$kws-autocomplete-selecting-background: #{cv.getVar("primary")} !default;
|
|
14
28
|
$kws-autocomplete-text-matches-color: currentColor !default;
|
|
15
29
|
$kws-autocomplete-text-matches-background: transparent !default;
|
|
16
|
-
$kws-autocomplete-text-matches-font-weight:
|
|
17
|
-
$kws-autocomplete-options-background:
|
|
30
|
+
$kws-autocomplete-text-matches-font-weight: #{cv.getVar("weight-bold")} !default;
|
|
31
|
+
$kws-autocomplete-options-background: #{cv.getVar("scheme-main-ter")} !default;
|
|
18
32
|
|
|
19
33
|
$__modal-z: 41 !default;
|
|
20
|
-
@if
|
|
34
|
+
@if variable-exists("modal-z") {
|
|
21
35
|
$__modal-z: $modal-z;
|
|
22
36
|
}
|
|
23
37
|
|
|
@@ -100,14 +114,20 @@ $kws-autocomplete-options-z-index: $__modal-z + 1 !default;
|
|
|
100
114
|
|
|
101
115
|
@each $name, $pair in $kws-theme-colors {
|
|
102
116
|
$color: nth($pair, 1);
|
|
103
|
-
$color-invert:
|
|
104
|
-
$color-light:
|
|
105
|
-
$color-dark:
|
|
117
|
+
$color-invert: fn.bulmaFindColorInvert($color);
|
|
118
|
+
$color-light: fn.bulmaFindLightColor($color);
|
|
119
|
+
$color-dark: fn.bulmaFindDarkColor($color);
|
|
106
120
|
.kws-autocomplete {
|
|
107
121
|
&.is-#{$name} {
|
|
108
122
|
border-color: $color;
|
|
109
123
|
&:focus-within {
|
|
110
|
-
box-shadow: $
|
|
124
|
+
box-shadow: $kws-autocomplete-focus-box-shadow-size
|
|
125
|
+
hsla(
|
|
126
|
+
cv.getVar($name, "", "-h"),
|
|
127
|
+
cv.getVar($name, "", "-s"),
|
|
128
|
+
cv.getVar($name, "", "-l"),
|
|
129
|
+
cv.getVar("input-focus-shadow-alpha")
|
|
130
|
+
);
|
|
111
131
|
}
|
|
112
132
|
ul.options {
|
|
113
133
|
li {
|
package/styles/Canvas.scss
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
|
+
@use "bulma/sass/utilities/initial-variables" as iv;
|
|
3
|
+
|
|
1
4
|
:root {
|
|
2
5
|
--kws-peninput-height: 350px;
|
|
3
6
|
--kws-peninput-width: 250px;
|
|
@@ -11,7 +14,7 @@
|
|
|
11
14
|
height: var(--kws-peninput-height);
|
|
12
15
|
width: var(--kws-peninput-width);
|
|
13
16
|
transform: translate3d(0, 0, 0);
|
|
14
|
-
transition: transform 0.3s
|
|
17
|
+
transition: transform 0.3s cv.getVar("easing");
|
|
15
18
|
transform-origin: center center;
|
|
16
19
|
will-change: transform;
|
|
17
20
|
backface-visibility: hidden;
|
|
@@ -21,7 +24,7 @@
|
|
|
21
24
|
position: absolute;
|
|
22
25
|
width: 100%;
|
|
23
26
|
min-height: var(--kws-peninput-controls-height);
|
|
24
|
-
background: transparentize(
|
|
27
|
+
background: transparentize(iv.$grey-light, 0.5);
|
|
25
28
|
padding: 0.25rem;
|
|
26
29
|
margin: 0 auto;
|
|
27
30
|
.control {
|
|
@@ -46,7 +49,7 @@
|
|
|
46
49
|
width: 32px;
|
|
47
50
|
height: 32px;
|
|
48
51
|
padding: 3px;
|
|
49
|
-
background-color:
|
|
52
|
+
background-color: cv.getVar("white-ter");
|
|
50
53
|
}
|
|
51
54
|
input[type="color"]::-webkit-color-swatch-wrapper {
|
|
52
55
|
padding: 0;
|
|
@@ -57,9 +60,9 @@
|
|
|
57
60
|
&.expanded {
|
|
58
61
|
z-index: 999;
|
|
59
62
|
position: relative;
|
|
60
|
-
box-shadow:
|
|
63
|
+
box-shadow: cv.getVar("card-shadow");
|
|
61
64
|
.kws-pen-controls {
|
|
62
|
-
background:
|
|
65
|
+
background: iv.$grey-lighter;
|
|
63
66
|
}
|
|
64
67
|
}
|
|
65
68
|
}
|
package/styles/Chart.scss
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
|
+
|
|
3
|
+
$kws-chart-tooltip-background-color: #{cv.getVar("scheme-main")} !default;
|
|
4
|
+
$kws-chart-tooltip-foreground-color: #{cv.getVar("scheme-invert-ter")} !default;
|
|
3
5
|
|
|
4
6
|
.kws-chart {
|
|
5
7
|
.apexcharts-tooltip {
|
package/styles/CheckRadio.scss
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
|
+
@use "bulma/sass/utilities/derived-variables" as dv;
|
|
3
|
+
@use "bulma/sass/utilities/functions" as fn;
|
|
2
4
|
|
|
3
|
-
$kws-
|
|
5
|
+
$kws-theme-colors: dv.$colors !default;
|
|
6
|
+
$kws-checkradio-default-check-color: #{cv.getVar("text")} !default;
|
|
4
7
|
$kws-checkradio-default-check-color-invert: findColorInvert(
|
|
5
8
|
$kws-checkradio-default-check-color
|
|
6
9
|
) !default;
|
|
7
10
|
$kws-checkradio-default-border-color: #dbdbdb !default;
|
|
8
|
-
$kws-checkradio-focus-box-shadow-size:
|
|
9
|
-
$kws-checkradio-focus-box-shadow-color:
|
|
11
|
+
$kws-checkradio-focus-box-shadow-size: #{cv.getVar("focus-shadow-size")} !default;
|
|
12
|
+
$kws-checkradio-focus-box-shadow-color: hsla(
|
|
13
|
+
#{cv.getVar("focus-h")},
|
|
14
|
+
#{cv.getVar("focus-s")},
|
|
15
|
+
#{cv.getVar("focus-l")},
|
|
16
|
+
#{cv.getVar("focus-shadow-alpha")}
|
|
17
|
+
) !default;
|
|
10
18
|
|
|
11
19
|
.kws-checkbox {
|
|
12
20
|
position: relative;
|
|
@@ -146,8 +154,9 @@ $kws-checkradio-focus-box-shadow-color: $input-focus-box-shadow-color !default;
|
|
|
146
154
|
|
|
147
155
|
@each $name, $pair in $kws-theme-colors {
|
|
148
156
|
$color: nth($pair, 1);
|
|
149
|
-
$color-invert:
|
|
150
|
-
|
|
157
|
+
$color-invert: fn.bulmaFindColorInvert($color);
|
|
158
|
+
$color-light: fn.bulmaFindLightColor($color);
|
|
159
|
+
$color-dark: fn.bulmaFindDarkColor($color);
|
|
151
160
|
&.is-#{$name} input[type="checkbox"]:checked + .kws-checkbox-label {
|
|
152
161
|
&:after {
|
|
153
162
|
border-color: $color;
|
|
@@ -208,7 +217,12 @@ $kws-checkradio-focus-box-shadow-color: $input-focus-box-shadow-color !default;
|
|
|
208
217
|
&.is-#{$name} input[type="radio"]:active + .kws-checkbox-label {
|
|
209
218
|
&:before {
|
|
210
219
|
box-shadow: $kws-checkradio-focus-box-shadow-size
|
|
211
|
-
|
|
220
|
+
hsla(
|
|
221
|
+
#{cv.getVar($name, "", "-h")},
|
|
222
|
+
#{cv.getVar($name, "", "-s")},
|
|
223
|
+
#{cv.getVar($name, "", "-l")},
|
|
224
|
+
#{cv.getVar("focus-shadow-alpha")}
|
|
225
|
+
);
|
|
212
226
|
}
|
|
213
227
|
}
|
|
214
228
|
}
|
package/styles/DataSearch.scss
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
|
+
@use "bulma/sass/utilities/derived-variables" as dv;
|
|
3
|
+
@use "bulma/sass/utilities/mixins" as mx;
|
|
4
|
+
|
|
1
5
|
.kws-grid-search {
|
|
2
6
|
.is-not-in-use {
|
|
3
7
|
}
|
|
4
8
|
.is-in-use {
|
|
5
|
-
border-color: transparentize(
|
|
9
|
+
border-color: transparentize(dv.$success, 0.5);
|
|
6
10
|
box-shadow: 0 0 3px rgba(0, 0, 0, 0.23) !important;
|
|
7
11
|
z-index: 2;
|
|
8
12
|
}
|
|
@@ -16,7 +20,7 @@
|
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
|
|
19
|
-
@include mobile {
|
|
23
|
+
@include mx.mobile {
|
|
20
24
|
.kws-grid-search {
|
|
21
25
|
.field.outer-level-field {
|
|
22
26
|
flex-wrap: wrap;
|
|
@@ -26,8 +30,8 @@
|
|
|
26
30
|
.main-search {
|
|
27
31
|
width: 100%;
|
|
28
32
|
.input {
|
|
29
|
-
border-bottom-right-radius:
|
|
30
|
-
border-top-right-radius:
|
|
33
|
+
border-bottom-right-radius: #{cv.getVar("radius")} !important;
|
|
34
|
+
border-top-right-radius: #{cv.getVar("radius")} !important;
|
|
31
35
|
}
|
|
32
36
|
}
|
|
33
37
|
.search-control {
|
package/styles/DataSort.scss
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
|
+
@use "bulma/sass/utilities/initial-variables" as iv;
|
|
2
|
+
@use "bulma/sass/utilities/css-variables" as cv;
|
|
3
|
+
@use "bulma/sass/utilities/derived-variables" as dv;
|
|
4
|
+
@use "bulma/sass/utilities/mixins" as mx;
|
|
5
|
+
|
|
1
6
|
.sorting-filters {
|
|
2
7
|
font-weight: bold;
|
|
3
8
|
margin-top: -1.55rem;
|
|
4
9
|
margin-bottom: 1.5rem;
|
|
5
10
|
.control {
|
|
6
|
-
background:
|
|
11
|
+
background: cv.getVar("border");
|
|
7
12
|
margin: 0 !important;
|
|
8
13
|
padding: 0.2rem 0;
|
|
9
14
|
&:first-child {
|
|
10
15
|
padding-left: calc(0.625rem - 1px);
|
|
11
|
-
border-radius: 0 0 0
|
|
12
|
-
background: darken(
|
|
16
|
+
border-radius: 0 0 0 #{cv.getVar("radius-medium")};
|
|
17
|
+
background: darken(dv.$border, 5%);
|
|
13
18
|
padding-right: calc(0.625rem - 1px);
|
|
14
19
|
}
|
|
15
20
|
&:last-child {
|
|
16
|
-
border-radius: 0 0
|
|
21
|
+
border-radius: 0 0 #{cv.getVar("radius-medium")} 0;
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
24
|
.select {
|
|
@@ -23,7 +28,7 @@
|
|
|
23
28
|
padding-bottom: 0.2rem;
|
|
24
29
|
border: none;
|
|
25
30
|
background: transparent;
|
|
26
|
-
color:
|
|
31
|
+
color: #{cv.getVar("primary")};
|
|
27
32
|
height: auto;
|
|
28
33
|
font-weight: bold;
|
|
29
34
|
&:focus,
|
|
@@ -36,12 +41,12 @@
|
|
|
36
41
|
}
|
|
37
42
|
}
|
|
38
43
|
&::after {
|
|
39
|
-
border-color:
|
|
44
|
+
border-color: #{cv.getVar("primary")};
|
|
40
45
|
}
|
|
41
46
|
}
|
|
42
47
|
}
|
|
43
48
|
|
|
44
|
-
@include mobile {
|
|
49
|
+
@include mx.mobile {
|
|
45
50
|
.sorting-filters {
|
|
46
51
|
margin-top: 0rem;
|
|
47
52
|
.field {
|
|
@@ -49,10 +54,14 @@
|
|
|
49
54
|
}
|
|
50
55
|
.control {
|
|
51
56
|
&:first-child {
|
|
52
|
-
border-radius:
|
|
57
|
+
border-radius: #{cv.getVar("radius-large")} 0 0 #{cv.getVar(
|
|
58
|
+
"radius-large"
|
|
59
|
+
)};
|
|
53
60
|
}
|
|
54
61
|
&:last-child {
|
|
55
|
-
border-radius: 0
|
|
62
|
+
border-radius: 0 #{cv.getVar("radius-large")} #{cv.getVar(
|
|
63
|
+
"radius-large"
|
|
64
|
+
)} 0;
|
|
56
65
|
flex-grow: 1;
|
|
57
66
|
flex-shrink: 1;
|
|
58
67
|
.select {
|
package/styles/Datepicker.scss
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
|
+
@use "bulma/sass/utilities/derived-variables" as dv;
|
|
3
|
+
@use "bulma/sass/utilities/functions" as fn;
|
|
4
|
+
|
|
5
|
+
$kws-theme-colors: dv.$colors !default;
|
|
6
|
+
$kws-datepicker-background: #{cv.getVar("scheme-main-ter")} !default;
|
|
7
|
+
$kws-datepicker-text: dv.$text !default;
|
|
8
|
+
$kws-datepicker-shadow:
|
|
9
|
+
0 2px 5px rgba(0, 0, 0, 0.3),
|
|
5
10
|
0 0 0 0.0625rem rgba(0, 0, 0, 0.1) !default;
|
|
6
11
|
$kws-datepicker-radius: 0px !default;
|
|
7
12
|
|
|
8
13
|
.flatpickr-calendar {
|
|
9
|
-
$inRangeBg:
|
|
10
|
-
@if (
|
|
11
|
-
$inRangeBg:
|
|
14
|
+
$inRangeBg: fn.bulmaLighten($kws-datepicker-text, 55);
|
|
15
|
+
@if (fn.bulmaColorLuminance($kws-datepicker-text) > 0.55) {
|
|
16
|
+
$inRangeBg: fn.bulmaDarken($kws-datepicker-text, 55);
|
|
12
17
|
}
|
|
13
18
|
|
|
14
19
|
box-shadow: $kws-datepicker-shadow;
|
|
@@ -28,9 +33,9 @@ $kws-datepicker-radius: 0px !default;
|
|
|
28
33
|
|
|
29
34
|
@each $name, $pair in $kws-theme-colors {
|
|
30
35
|
$color: nth($pair, 1);
|
|
31
|
-
$color-invert:
|
|
32
|
-
$color-light:
|
|
33
|
-
$color-dark:
|
|
36
|
+
$color-invert: fn.bulmaFindColorInvert($color);
|
|
37
|
+
$color-light: fn.bulmaFindLightColor($color);
|
|
38
|
+
$color-dark: fn.bulmaFindDarkColor($color);
|
|
34
39
|
&.is-#{$name} {
|
|
35
40
|
&.arrowTop:before,
|
|
36
41
|
&.arrowTop:after {
|
|
@@ -118,7 +123,9 @@ $kws-datepicker-radius: 0px !default;
|
|
|
118
123
|
color: $color-dark;
|
|
119
124
|
background: $color-light;
|
|
120
125
|
border-color: $color-light;
|
|
121
|
-
box-shadow:
|
|
126
|
+
box-shadow:
|
|
127
|
+
-5px 0 0 $color-light,
|
|
128
|
+
5px 0 0 $color-light;
|
|
122
129
|
}
|
|
123
130
|
.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n + 1)),
|
|
124
131
|
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n + 1)),
|
|
@@ -145,7 +152,9 @@ $kws-datepicker-radius: 0px !default;
|
|
|
145
152
|
}
|
|
146
153
|
|
|
147
154
|
&.inRange {
|
|
148
|
-
box-shadow:
|
|
155
|
+
box-shadow:
|
|
156
|
+
-5px 0 0 $inRangeBg,
|
|
157
|
+
5px 0 0 $inRangeBg;
|
|
149
158
|
}
|
|
150
159
|
|
|
151
160
|
&.inRange,
|
package/styles/Divider.scss
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@use "bulma/sass/utilities/css-variables" as cv;
|
|
2
|
+
@use "bulma/sass/utilities/derived-variables" as dv;
|
|
3
|
+
|
|
4
|
+
$kws-theme-colors: dv.$colors !default;
|
|
5
|
+
$kws-divider-color: #{cv.getVar("border")} !default;
|
|
6
|
+
$kws-divider-font-size: cv.getVar("size-smal") !default;
|
|
4
7
|
$kws-divider-gap: 0.25rem !default;
|
|
5
8
|
$kws-divider-margin: 1rem !default;
|
|
6
9
|
|
|
@@ -9,9 +12,9 @@ $kws-divider-margin: 1rem !default;
|
|
|
9
12
|
display: flex;
|
|
10
13
|
align-items: center;
|
|
11
14
|
text-transform: uppercase;
|
|
12
|
-
color:
|
|
15
|
+
color: cv.getVar("grey");
|
|
13
16
|
font-size: $kws-divider-font-size;
|
|
14
|
-
font-weight:
|
|
17
|
+
font-weight: cv.getVar("weight-semibold");
|
|
15
18
|
letter-spacing: 0.5px;
|
|
16
19
|
margin: $kws-divider-margin 0;
|
|
17
20
|
width: 100%;
|