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