@jsenv/navi 0.27.24 → 0.27.26
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/dist/jsenv_navi.js
CHANGED
|
@@ -14142,7 +14142,7 @@ This prevents cross-test pollution and ensures clean state.`,
|
|
|
14142
14142
|
paramSignal.value = defaultValue;
|
|
14143
14143
|
continue;
|
|
14144
14144
|
}
|
|
14145
|
-
if (urlParamValue
|
|
14145
|
+
if (compareTwoJsValues(urlParamValue, value)) {
|
|
14146
14146
|
// Values already match, no sync needed
|
|
14147
14147
|
continue;
|
|
14148
14148
|
}
|
|
@@ -26461,11 +26461,13 @@ const useInteractiveProps = (props, {
|
|
|
26461
26461
|
installImportMetaCssBuild(import.meta);const css$I = /* css */`
|
|
26462
26462
|
@layer navi {
|
|
26463
26463
|
.navi_button {
|
|
26464
|
-
--button-border-radius:
|
|
26465
|
-
--button-
|
|
26466
|
-
|
|
26467
|
-
|
|
26464
|
+
--button-border-radius: var(--navi-control-border-radius);
|
|
26465
|
+
--button-border-width: var(--navi-control-border-width);
|
|
26466
|
+
/* Focus outline */
|
|
26467
|
+
--button-outline-width: var(--navi-focus-outline-width);
|
|
26468
|
+
--button-outline-offset: calc(-1 * var(--button-outline-width) / 2);
|
|
26468
26469
|
--button-outline-color: var(--navi-focus-outline-color);
|
|
26470
|
+
/* Focus outline end */
|
|
26469
26471
|
--button-loader-color: var(--navi-loader-color);
|
|
26470
26472
|
--button-border-color: light-dark(#767676, #8e8e93);
|
|
26471
26473
|
--button-background-color: var(
|
|
@@ -26522,11 +26524,7 @@ installImportMetaCssBuild(import.meta);const css$I = /* css */`
|
|
|
26522
26524
|
}
|
|
26523
26525
|
|
|
26524
26526
|
.navi_button {
|
|
26525
|
-
|
|
26526
|
-
--x-button-outline-width: calc(
|
|
26527
|
-
var(--button-outline-width) + var(--button-border-width)
|
|
26528
|
-
);
|
|
26529
|
-
--x-button-outline-offset: calc(-1 * var(--button-border-width));
|
|
26527
|
+
--x-button-outline-offset: var(--button-outline-offset);
|
|
26530
26528
|
--x-button-border-color: var(--button-border-color);
|
|
26531
26529
|
--x-button-background: var(--button-background);
|
|
26532
26530
|
--x-button-background-color: var(--button-background-color);
|
|
@@ -26602,9 +26600,9 @@ installImportMetaCssBuild(import.meta);const css$I = /* css */`
|
|
|
26602
26600
|
border-style: solid;
|
|
26603
26601
|
border-color: var(--x-button-border-color);
|
|
26604
26602
|
border-radius: inherit;
|
|
26605
|
-
outline-width: var(--
|
|
26603
|
+
outline-width: var(--button-outline-width);
|
|
26606
26604
|
outline-color: var(--button-outline-color);
|
|
26607
|
-
outline-offset: var(--
|
|
26605
|
+
outline-offset: var(--button-outline-offset);
|
|
26608
26606
|
transition-property: transform;
|
|
26609
26607
|
transition-duration: 0.15s;
|
|
26610
26608
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -28467,15 +28465,16 @@ const useCheckableProps = (props) => {
|
|
|
28467
28465
|
installImportMetaCssBuild(import.meta);const css$A = /* css */`
|
|
28468
28466
|
@layer navi {
|
|
28469
28467
|
.navi_checkbox {
|
|
28470
|
-
--
|
|
28471
|
-
--
|
|
28472
|
-
|
|
28473
|
-
--
|
|
28474
|
-
--
|
|
28475
|
-
--width: 0.815em;
|
|
28476
|
-
--height: 0.815em;
|
|
28477
|
-
|
|
28468
|
+
--border-radius: var(--navi-control-border-radius);
|
|
28469
|
+
--border-width: var(--navi-control-border-width);
|
|
28470
|
+
/* Focus outline */
|
|
28471
|
+
--outline-width: var(--navi-focus-outline-width);
|
|
28472
|
+
--outline-offset: calc(var(--outline-width) / 2);
|
|
28478
28473
|
--outline-color: var(--navi-focus-outline-color);
|
|
28474
|
+
/* Focus outline end */
|
|
28475
|
+
--margin: 3px 3px 3px 4px;
|
|
28476
|
+
--width: round(0.815em, 1px);
|
|
28477
|
+
--height: round(0.815em, 1px);
|
|
28479
28478
|
--loader-color: var(--navi-loader-color);
|
|
28480
28479
|
--border-color: light-dark(#767676, #8e8e93);
|
|
28481
28480
|
--background-color: white;
|
|
@@ -29741,7 +29740,13 @@ installImportMetaCssBuild(import.meta);const css$y = /* css */`
|
|
|
29741
29740
|
@layer navi {
|
|
29742
29741
|
.navi_input_range {
|
|
29743
29742
|
--border-radius: 6px;
|
|
29744
|
-
--
|
|
29743
|
+
--border-width: var(--navi-control-border-width);
|
|
29744
|
+
/* Focus outline */
|
|
29745
|
+
--outline-border-radius: var(--navi-control-border-radius);
|
|
29746
|
+
--outline-width: var(--navi-focus-outline-width);
|
|
29747
|
+
--outline-offset: var(--outline-width);
|
|
29748
|
+
--outline-color: var(--navi-focus-outline-color);
|
|
29749
|
+
/* Focus outline end */
|
|
29745
29750
|
--height: 8px;
|
|
29746
29751
|
--thumb-size: 16px;
|
|
29747
29752
|
--thumb-width: var(--thumb-size);
|
|
@@ -29749,7 +29754,6 @@ installImportMetaCssBuild(import.meta);const css$y = /* css */`
|
|
|
29749
29754
|
--thumb-border-radius: 100%;
|
|
29750
29755
|
--thumb-cursor: pointer;
|
|
29751
29756
|
|
|
29752
|
-
--outline-color: var(--navi-focus-outline-color);
|
|
29753
29757
|
--loader-color: var(--navi-loader-color);
|
|
29754
29758
|
--accent-color: rgb(24, 117, 255);
|
|
29755
29759
|
--color-mix-light: black;
|
|
@@ -29841,11 +29845,12 @@ installImportMetaCssBuild(import.meta);const css$y = /* css */`
|
|
|
29841
29845
|
margin: 2px;
|
|
29842
29846
|
flex-direction: inherit;
|
|
29843
29847
|
align-items: center;
|
|
29844
|
-
border
|
|
29848
|
+
/* Just for the outline, the real border radius of the range is fixed */
|
|
29849
|
+
border-radius: var(--outline-border-radius);
|
|
29845
29850
|
outline-width: var(--outline-width);
|
|
29846
29851
|
outline-style: none;
|
|
29847
29852
|
outline-color: var(--outline-color);
|
|
29848
|
-
outline-offset:
|
|
29853
|
+
outline-offset: var(--outline-offset);
|
|
29849
29854
|
|
|
29850
29855
|
.navi_control_input {
|
|
29851
29856
|
margin: 0;
|
|
@@ -29878,7 +29883,7 @@ installImportMetaCssBuild(import.meta);const css$y = /* css */`
|
|
|
29878
29883
|
width: 100%;
|
|
29879
29884
|
height: var(--height);
|
|
29880
29885
|
background: var(--x-background-color);
|
|
29881
|
-
border-width:
|
|
29886
|
+
border-width: var(--border-width);
|
|
29882
29887
|
border-style: solid;
|
|
29883
29888
|
border-color: var(--x-border-color);
|
|
29884
29889
|
border-radius: var(--border-radius);
|
|
@@ -29888,7 +29893,7 @@ installImportMetaCssBuild(import.meta);const css$y = /* css */`
|
|
|
29888
29893
|
box-sizing: border-box;
|
|
29889
29894
|
width: 100%;
|
|
29890
29895
|
height: var(--height);
|
|
29891
|
-
border-width:
|
|
29896
|
+
border-width: var(--border-width);
|
|
29892
29897
|
border-style: solid;
|
|
29893
29898
|
border-color: var(--x-track-border-color);
|
|
29894
29899
|
border-radius: var(--border-radius);
|
|
@@ -31013,13 +31018,14 @@ installImportMetaCssBuild(import.meta);/**
|
|
|
31013
31018
|
const css$w = /* css */`
|
|
31014
31019
|
@layer navi {
|
|
31015
31020
|
.navi_input {
|
|
31016
|
-
--border-radius:
|
|
31017
|
-
--border-width:
|
|
31018
|
-
|
|
31019
|
-
--
|
|
31020
|
-
|
|
31021
|
-
/* Default */
|
|
31021
|
+
--border-radius: var(--navi-control-border-radius);
|
|
31022
|
+
--border-width: var(--navi-control-border-width);
|
|
31023
|
+
/* Focus outline */
|
|
31024
|
+
--outline-width: var(--navi-focus-outline-width);
|
|
31025
|
+
--outline-offset: calc(var(--outline-width) / 2 * -1);
|
|
31022
31026
|
--outline-color: var(--navi-focus-outline-color);
|
|
31027
|
+
/* Focus outline end */
|
|
31028
|
+
--font-size: var(--navi-control-font-size);
|
|
31023
31029
|
--loader-color: var(--navi-loader-color);
|
|
31024
31030
|
--border-color: light-dark(#767676, #8e8e93);
|
|
31025
31031
|
--background-color: white;
|
|
@@ -31059,18 +31065,10 @@ const css$w = /* css */`
|
|
|
31059
31065
|
grey
|
|
31060
31066
|
);
|
|
31061
31067
|
--color-disabled: var(--color-dimmed);
|
|
31062
|
-
|
|
31063
|
-
--left-slot-size: 1.2em;
|
|
31064
|
-
--right-slot-size: 1.2em;
|
|
31065
31068
|
}
|
|
31066
31069
|
}
|
|
31067
31070
|
|
|
31068
31071
|
.navi_input {
|
|
31069
|
-
/* outline will draw the border when visible */
|
|
31070
|
-
--x-outline-width: calc(var(--outline-width) + var(--border-width));
|
|
31071
|
-
--x-outline-offset: calc(-1 * var(--border-width));
|
|
31072
|
-
--x-left-slot-size: 0px;
|
|
31073
|
-
--x-right-slot-size: 0xp;
|
|
31074
31072
|
--x-border-color: var(--border-color);
|
|
31075
31073
|
--x-background-color: var(--background-color);
|
|
31076
31074
|
--x-color: var(--color);
|
|
@@ -31109,9 +31107,9 @@ const css$w = /* css */`
|
|
|
31109
31107
|
border-style: solid;
|
|
31110
31108
|
border-color: var(--x-border-color);
|
|
31111
31109
|
border-radius: var(--border-radius);
|
|
31112
|
-
outline-width: var(--
|
|
31110
|
+
outline-width: var(--outline-width);
|
|
31113
31111
|
outline-color: var(--outline-color);
|
|
31114
|
-
outline-offset: var(--
|
|
31112
|
+
outline-offset: var(--outline-offset);
|
|
31115
31113
|
cursor: inherit;
|
|
31116
31114
|
pointer-events: auto;
|
|
31117
31115
|
|
|
@@ -34229,10 +34227,20 @@ const ListItemFooter = props => {
|
|
|
34229
34227
|
installImportMetaCssBuild(import.meta);const css$m = /* css */`
|
|
34230
34228
|
@layer navi {
|
|
34231
34229
|
.navi_list_container {
|
|
34232
|
-
|
|
34233
|
-
--list-item-outline-
|
|
34234
|
-
|
|
34230
|
+
/* Focus outline */
|
|
34231
|
+
--list-item-outline-width: var(--navi-focus-outline-width);
|
|
34232
|
+
/* here we draw the outline ON the item, not outside of it */
|
|
34233
|
+
/* This ensure the outline is visible even when there is scrollbars (which happens a lot on list items) */
|
|
34235
34234
|
--list-item-outline-offset: calc(-1 * var(--list-item-outline-width));
|
|
34235
|
+
--list-item-outline-color: var(--navi-focus-outline-color);
|
|
34236
|
+
/* Focus outline end */
|
|
34237
|
+
--selectable-item-padding-x-default: var(
|
|
34238
|
+
--navi-control-padding-x-default
|
|
34239
|
+
);
|
|
34240
|
+
--selectable-item-padding-y-default: var(
|
|
34241
|
+
--navi-control-padding-y-default
|
|
34242
|
+
);
|
|
34243
|
+
|
|
34236
34244
|
/* Hover (mouse) */
|
|
34237
34245
|
--list-item-background-color-hover: light-dark(#f5f5f5, #2a2a2a);
|
|
34238
34246
|
--list-item-color-hover: var(--list-item-color);
|
|
@@ -34257,13 +34265,6 @@ installImportMetaCssBuild(import.meta);const css$m = /* css */`
|
|
|
34257
34265
|
/* Disabled */
|
|
34258
34266
|
--list-item-color-disabled: light-dark(#aaa, #555);
|
|
34259
34267
|
--list-item-background-color-disabled: var(--list-item-background-color);
|
|
34260
|
-
|
|
34261
|
-
--selectable-item-padding-x-default: var(
|
|
34262
|
-
--navi-control-padding-x-default
|
|
34263
|
-
);
|
|
34264
|
-
--selectable-item-padding-y-default: var(
|
|
34265
|
-
--navi-control-padding-y-default
|
|
34266
|
-
);
|
|
34267
34268
|
}
|
|
34268
34269
|
}
|
|
34269
34270
|
|
|
@@ -34273,20 +34274,8 @@ installImportMetaCssBuild(import.meta);const css$m = /* css */`
|
|
|
34273
34274
|
}
|
|
34274
34275
|
|
|
34275
34276
|
.navi_list_container[navi-selectable] {
|
|
34276
|
-
--x-list-outline-width: calc(
|
|
34277
|
-
var(--list-outline-width) + var(--list-border-width)
|
|
34278
|
-
);
|
|
34279
|
-
--x-list-outline-offset: calc(-1 * var(--list-border-width));
|
|
34280
|
-
|
|
34281
34277
|
font-size: var(--navi-control-font-size);
|
|
34282
34278
|
font-family: var(--navi-control-font-family);
|
|
34283
|
-
outline-width: var(--x-list-outline-width);
|
|
34284
|
-
outline-color: var(--list-outline-color);
|
|
34285
|
-
outline-offset: var(--x-list-outline-offset);
|
|
34286
|
-
|
|
34287
|
-
&[data-focus-visible] {
|
|
34288
|
-
outline-style: solid;
|
|
34289
|
-
}
|
|
34290
34279
|
&[data-callout] {
|
|
34291
34280
|
--x-list-border-color: var(--callout-color);
|
|
34292
34281
|
}
|
|
@@ -36380,12 +36369,15 @@ const pickerResolvers = [PickerPresetResolver, PickerCustomResolver, PickerTypeR
|
|
|
36380
36369
|
installImportMetaCssBuild(import.meta);const css$k = /* css */`
|
|
36381
36370
|
@layer navi {
|
|
36382
36371
|
.navi_picker {
|
|
36383
|
-
--picker-border-radius:
|
|
36384
|
-
--picker-
|
|
36385
|
-
|
|
36372
|
+
--picker-border-radius: var(--navi-control-border-radius);
|
|
36373
|
+
--picker-border-width: var(--navi-control-border-width);
|
|
36374
|
+
/* Focus outline */
|
|
36375
|
+
--picker-outline-width: var(--navi-focus-outline-width);
|
|
36376
|
+
--picker-outline-offset: calc(-1 * var(--picker-outline-width) / 2);
|
|
36377
|
+
--picker-outline-color: var(--navi-focus-outline-color);
|
|
36378
|
+
/* Focus outline end */
|
|
36386
36379
|
--picker-padding-x-default: var(--navi-control-padding-x-default);
|
|
36387
36380
|
--picker-padding-y-default: var(--navi-control-padding-y-default);
|
|
36388
|
-
--picker-outline-color: var(--navi-focus-outline-color);
|
|
36389
36381
|
--picker-loader-color: var(--navi-loader-color);
|
|
36390
36382
|
--picker-border-color: light-dark(#767676, #8e8e93);
|
|
36391
36383
|
--picker-background-color: white;
|
|
@@ -36435,10 +36427,6 @@ installImportMetaCssBuild(import.meta);const css$k = /* css */`
|
|
|
36435
36427
|
}
|
|
36436
36428
|
|
|
36437
36429
|
.navi_picker {
|
|
36438
|
-
--x-picker-outline-width: calc(
|
|
36439
|
-
var(--picker-outline-width) + var(--picker-border-width)
|
|
36440
|
-
);
|
|
36441
|
-
--x-picker-outline-offset: calc(-1 * var(--picker-border-width));
|
|
36442
36430
|
--x-picker-background-color: var(--picker-background-color);
|
|
36443
36431
|
--x-picker-border-color: var(--picker-border-color);
|
|
36444
36432
|
--x-picker-padding-top: var(
|
|
@@ -36494,10 +36482,10 @@ installImportMetaCssBuild(import.meta);const css$k = /* css */`
|
|
|
36494
36482
|
border-style: solid;
|
|
36495
36483
|
border-color: var(--x-picker-border-color);
|
|
36496
36484
|
border-radius: var(--picker-border-radius);
|
|
36497
|
-
outline-width: var(--
|
|
36485
|
+
outline-width: var(--picker-outline-width);
|
|
36498
36486
|
outline-style: none;
|
|
36499
36487
|
outline-color: var(--picker-outline-color);
|
|
36500
|
-
outline-offset: var(--
|
|
36488
|
+
outline-offset: var(--picker-outline-offset);
|
|
36501
36489
|
cursor: var(--x-picker-cursor, pointer);
|
|
36502
36490
|
pointer-events: auto;
|
|
36503
36491
|
user-select: none;
|