@jsenv/navi 0.26.15 → 0.26.17
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 +34 -28
- package/dist/jsenv_navi.js.map +8 -8
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -8212,6 +8212,12 @@ import.meta.css = [/* css */`
|
|
|
8212
8212
|
}
|
|
8213
8213
|
}
|
|
8214
8214
|
|
|
8215
|
+
/* We force a given display style using html attribute instead of inline style */
|
|
8216
|
+
/* No particular reason for this, logic could be moved to inline style like the rest */
|
|
8217
|
+
/* It was an attempt to see if attributes where a good candidate to set style based on props */
|
|
8218
|
+
/* Actullay it's not that much as it make the attribute and CSS complexity explode */
|
|
8219
|
+
/* For now it's kept here and must be outside layer navi to be able to override any given display
|
|
8220
|
+
Set by navi itself on their default display */
|
|
8215
8221
|
[navi-box-flow="inline"] {
|
|
8216
8222
|
display: inline;
|
|
8217
8223
|
}
|
|
@@ -22636,8 +22642,9 @@ installImportMetaCssBuild(import.meta);const css$x = /* css */`
|
|
|
22636
22642
|
|
|
22637
22643
|
.navi_button {
|
|
22638
22644
|
/* outline will draw the border when visible */
|
|
22639
|
-
--x-button-outline-width:
|
|
22640
|
-
var(--button-border-width)
|
|
22645
|
+
--x-button-outline-width: calc(
|
|
22646
|
+
var(--button-outline-width) + var(--button-border-width)
|
|
22647
|
+
);
|
|
22641
22648
|
--x-button-outline-offset: calc(-1 * var(--button-border-width));
|
|
22642
22649
|
--x-button-border-color: var(--button-border-color);
|
|
22643
22650
|
--x-button-background: var(--button-background);
|
|
@@ -24800,8 +24807,8 @@ installImportMetaCssBuild(import.meta);const css$p = /* css */`
|
|
|
24800
24807
|
--background-color-disabled-checked: #d3d3d3;
|
|
24801
24808
|
|
|
24802
24809
|
/* Toggle specific */
|
|
24803
|
-
--toggle-margin: 2px;
|
|
24804
|
-
--toggle-width:
|
|
24810
|
+
--toggle-margin: 2px; /* Useful to reserve space for outline */
|
|
24811
|
+
--toggle-width: 2em;
|
|
24805
24812
|
--toggle-thumb-size: 1.2em;
|
|
24806
24813
|
/* Padding uses px and not em otherwise it can be resolved to a float which does not play well */
|
|
24807
24814
|
/* With the translation calc in some configurations. In the end 2px is nice in all sizes and can still be configured for exceptions */
|
|
@@ -24986,9 +24993,11 @@ installImportMetaCssBuild(import.meta);const css$p = /* css */`
|
|
|
24986
24993
|
|
|
24987
24994
|
/* Toggle appearance */
|
|
24988
24995
|
&[data-appearance="toggle"] {
|
|
24989
|
-
|
|
24990
|
-
|
|
24991
|
-
|
|
24996
|
+
/* We compute ourselves the width + padding otherwise during
|
|
24997
|
+
translation subpixel rounding makes the thumb feels too much to the right by 1px */
|
|
24998
|
+
box-sizing: content-box;
|
|
24999
|
+
--toggle-outer-width: calc(var(--toggle-width) + var(--toggle-padding));
|
|
25000
|
+
|
|
24992
25001
|
--margin: var(--toggle-margin);
|
|
24993
25002
|
--width: var(--toggle-outer-width);
|
|
24994
25003
|
--height: unset;
|
|
@@ -25028,7 +25037,10 @@ installImportMetaCssBuild(import.meta);const css$p = /* css */`
|
|
|
25028
25037
|
&[data-checked] {
|
|
25029
25038
|
.navi_checkbox_toggle {
|
|
25030
25039
|
transform: translateX(
|
|
25031
|
-
calc(
|
|
25040
|
+
calc(
|
|
25041
|
+
var(--toggle-width) - var(--toggle-thumb-size) +
|
|
25042
|
+
var(--toggle-padding)
|
|
25043
|
+
)
|
|
25032
25044
|
);
|
|
25033
25045
|
}
|
|
25034
25046
|
}
|
|
@@ -27114,8 +27126,8 @@ const css$l = /* css */`
|
|
|
27114
27126
|
--list-outline-width: 1px;
|
|
27115
27127
|
--list-border-radius: 4px;
|
|
27116
27128
|
--list-border-width: 1px;
|
|
27129
|
+
--list-outline-color: var(--navi-focus-outline-color);
|
|
27117
27130
|
--list-border-color: light-dark(#ccc, #555);
|
|
27118
|
-
--list-border-style: solid;
|
|
27119
27131
|
--list-background-color: light-dark(#fff, #1e1e1e);
|
|
27120
27132
|
--list-max-height: 220px;
|
|
27121
27133
|
}
|
|
@@ -27166,10 +27178,13 @@ const css$l = /* css */`
|
|
|
27166
27178
|
}
|
|
27167
27179
|
|
|
27168
27180
|
.navi_list_container {
|
|
27181
|
+
--x-list-outline-width: calc(
|
|
27182
|
+
var(--list-outline-width) + var(--list-border-width)
|
|
27183
|
+
);
|
|
27184
|
+
--x-list-outline-offset: calc(-1 * var(--list-border-width));
|
|
27169
27185
|
--x-list-border-radius: var(--list-border-radius);
|
|
27170
27186
|
--x-list-border-width: var(--list-border-width);
|
|
27171
27187
|
--x-list-border-color: var(--list-border-color);
|
|
27172
|
-
--x-list-border-style: var(--list-border-style);
|
|
27173
27188
|
--x-list-background-color: var(--list-background-color);
|
|
27174
27189
|
/* When typing inside an input browser tries to keep caret visible */
|
|
27175
27190
|
/* For input within a sticky element inside a scrollable container */
|
|
@@ -27190,14 +27205,11 @@ const css$l = /* css */`
|
|
|
27190
27205
|
max-width: 100%;
|
|
27191
27206
|
flex-direction: column;
|
|
27192
27207
|
background-color: var(--x-list-background-color);
|
|
27193
|
-
|
|
27194
|
-
visible border via outline (inset via negative offset). This way the
|
|
27195
|
-
focus ring can simply widen the outline without shifting layout. */
|
|
27196
|
-
border: var(--x-list-border-width) solid transparent;
|
|
27208
|
+
border: var(--x-list-border-width) solid var(--x-list-border-color);
|
|
27197
27209
|
border-radius: var(--x-list-border-radius);
|
|
27198
|
-
outline: var(--x-list-
|
|
27199
|
-
|
|
27200
|
-
outline-offset:
|
|
27210
|
+
outline-width: var(--x-list-outline-width);
|
|
27211
|
+
outline-color: var(--x-list-outline-color);
|
|
27212
|
+
outline-offset: var(--x-list-outline-offset);
|
|
27201
27213
|
transition: opacity 0.2s ease;
|
|
27202
27214
|
/* overflow:hidden is required on the container (not the inner scroll element)
|
|
27203
27215
|
so that border-radius clips the content correctly. Without it, items near
|
|
@@ -27243,14 +27255,7 @@ const css$l = /* css */`
|
|
|
27243
27255
|
outline-offset: calc(-1 * var(--list-outline-width)); */
|
|
27244
27256
|
}
|
|
27245
27257
|
&[data-focus-visible] {
|
|
27246
|
-
outline-
|
|
27247
|
-
outline-color: var(--navi-focus-outline-color);
|
|
27248
|
-
outline-offset: calc(
|
|
27249
|
-
-1 * (var(--list-border-width) + var(--list-outline-width))
|
|
27250
|
-
);
|
|
27251
|
-
.navi_list {
|
|
27252
|
-
outline: none;
|
|
27253
|
-
}
|
|
27258
|
+
outline-style: solid;
|
|
27254
27259
|
}
|
|
27255
27260
|
|
|
27256
27261
|
&[data-callout] {
|
|
@@ -27267,6 +27272,7 @@ const css$l = /* css */`
|
|
|
27267
27272
|
padding: 0;
|
|
27268
27273
|
flex-direction: column;
|
|
27269
27274
|
list-style: none;
|
|
27275
|
+
outline: none; /* Focus is displayed on the container */
|
|
27270
27276
|
|
|
27271
27277
|
/* Would create scrollbars, for now just hide the loader here */
|
|
27272
27278
|
.navi_input {
|
|
@@ -29070,7 +29076,7 @@ const css$k = /* css */`
|
|
|
29070
29076
|
|
|
29071
29077
|
.navi_input {
|
|
29072
29078
|
/* outline will draw the border when visible */
|
|
29073
|
-
--x-outline-width: var(--outline-width) + var(--border-width);
|
|
29079
|
+
--x-outline-width: calc(var(--outline-width) + var(--border-width));
|
|
29074
29080
|
--x-outline-offset: calc(-1 * var(--border-width));
|
|
29075
29081
|
--left-slot-size: 0px;
|
|
29076
29082
|
--right-slot-size: 0px;
|
|
@@ -31017,13 +31023,13 @@ installImportMetaCssBuild(import.meta);const css$f = /* css */`
|
|
|
31017
31023
|
}
|
|
31018
31024
|
|
|
31019
31025
|
.navi_select {
|
|
31020
|
-
--x-select-background-color: var(--select-background-color);
|
|
31021
|
-
--x-select-border-color: var(--select-border-color);
|
|
31022
31026
|
/* outline will draw the border when visible */
|
|
31023
31027
|
--x-select-outline-width: calc(
|
|
31024
31028
|
var(--select-outline-width) + var(--select-border-width)
|
|
31025
31029
|
);
|
|
31026
31030
|
--x-select-outline-offset: calc(-1 * var(--select-border-width));
|
|
31031
|
+
--x-select-background-color: var(--select-background-color);
|
|
31032
|
+
--x-select-border-color: var(--select-border-color);
|
|
31027
31033
|
--x-select-padding-top: var(
|
|
31028
31034
|
--select-padding-top,
|
|
31029
31035
|
var(--select-padding-y, var(--select-padding-y-default))
|