@jsenv/navi 0.29.522 → 0.29.523
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/dev/jsenv_navi.js +18 -8
- package/dist/dev/jsenv_navi.js.map +9 -9
- package/dist/jsenv_navi.js +18 -8
- package/dist/jsenv_navi.js.map +9 -9
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -64666,6 +64666,7 @@ const css$M = /* css */`@layer navi {
|
|
|
64666
64666
|
--thumb-size: 16px;
|
|
64667
64667
|
--thumb-width: var(--thumb-size);
|
|
64668
64668
|
--thumb-height: var(--thumb-size);
|
|
64669
|
+
--press-height: var(--thumb-height);
|
|
64669
64670
|
--thumb-border-radius: 100%;
|
|
64670
64671
|
--thumb-cursor: pointer;
|
|
64671
64672
|
--font-size: var(--navi-control-font-size);
|
|
@@ -64753,6 +64754,8 @@ const css$M = /* css */`@layer navi {
|
|
|
64753
64754
|
position: relative;
|
|
64754
64755
|
|
|
64755
64756
|
& .navi_control_input {
|
|
64757
|
+
width: 100%;
|
|
64758
|
+
height: var(--press-height);
|
|
64756
64759
|
opacity: 0;
|
|
64757
64760
|
--webkit-appearance: none;
|
|
64758
64761
|
min-width: inherit;
|
|
@@ -64762,7 +64765,7 @@ const css$M = /* css */`@layer navi {
|
|
|
64762
64765
|
|
|
64763
64766
|
&::-webkit-slider-thumb {
|
|
64764
64767
|
width: var(--thumb-width);
|
|
64765
|
-
height: var(--
|
|
64768
|
+
height: var(--press-height);
|
|
64766
64769
|
border-radius: var(--thumb-border-radius);
|
|
64767
64770
|
-webkit-appearance: none;
|
|
64768
64771
|
cursor: var(--x-thumb-cursor);
|
|
@@ -64974,6 +64977,7 @@ const RangeNativeInput = props => {
|
|
|
64974
64977
|
});
|
|
64975
64978
|
};
|
|
64976
64979
|
const RangeStyleCSSVars = {
|
|
64980
|
+
"pressHeight": ["--press-height", "height"],
|
|
64977
64981
|
"outlineWidth": "--outline-width",
|
|
64978
64982
|
"borderRadius": "--border-radius",
|
|
64979
64983
|
"borderColor": "--border-color",
|
|
@@ -66480,6 +66484,7 @@ const InputPseudoElements = ["::-navi-loader"];
|
|
|
66480
66484
|
* boolean?: boolean,
|
|
66481
66485
|
* selectOnPress?: boolean,
|
|
66482
66486
|
* enterSendsNothing?: boolean,
|
|
66487
|
+
* pressHeight?: number | string,
|
|
66483
66488
|
* variant?: "checkbox" | "switch" | "icon" | "button",
|
|
66484
66489
|
* buttonVariant?: "discrete",
|
|
66485
66490
|
* actionVerb?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE",
|
|
@@ -66529,6 +66534,12 @@ const InputPseudoElements = ["::-navi-loader"];
|
|
|
66529
66534
|
* street before its suggestion filled the city) and whose Enter would send
|
|
66530
66535
|
* an answer still missing its other half. The browser's own Enter is kept (a
|
|
66531
66536
|
* datalist choice), except in a `<Form>`, where it is the submission.
|
|
66537
|
+
* @param {number|string} [pressHeight] How tall a press counts on a range, the
|
|
66538
|
+
* thumb's height by default, so a thin line stays easy to hit. The press area
|
|
66539
|
+
* only: nothing moves and nothing is drawn. It overflows the range, centered
|
|
66540
|
+
* on its line, over whatever is next to it and takes the presses aimed there,
|
|
66541
|
+
* so leave it the room it needs (`marginY`). Different for a mouse and a
|
|
66542
|
+
* finger: `--press-height` in a `@media (pointer: coarse)` rule.
|
|
66532
66543
|
*/
|
|
66533
66544
|
const Input = props => {
|
|
66534
66545
|
resolveInputProps(props);
|
|
@@ -67226,7 +67237,7 @@ const Editable = props => {
|
|
|
67226
67237
|
children: [children || jsx("span", {
|
|
67227
67238
|
children: value
|
|
67228
67239
|
}), jsx(Box, {
|
|
67229
|
-
|
|
67240
|
+
baseClassName: "navi_editable_wrapper",
|
|
67230
67241
|
ref: wrapperRef,
|
|
67231
67242
|
...wrapperProps,
|
|
67232
67243
|
// inert ensure input while not editing that:
|
|
@@ -91403,7 +91414,7 @@ const Color = ({
|
|
|
91403
91414
|
const color = children || undefined;
|
|
91404
91415
|
return jsx(Box, {
|
|
91405
91416
|
as: "span",
|
|
91406
|
-
|
|
91417
|
+
baseClassName: "navi_color",
|
|
91407
91418
|
"navi-color-empty": color ? undefined : ""
|
|
91408
91419
|
// propsCSSVars={COLOR_PROP_CSS_VAR}
|
|
91409
91420
|
,
|
|
@@ -96033,7 +96044,7 @@ const InputDuration = props => {
|
|
|
96033
96044
|
delete basePseudoState[":-navi-loading"];
|
|
96034
96045
|
return jsxs(Box, {
|
|
96035
96046
|
ref: groupRef,
|
|
96036
|
-
|
|
96047
|
+
baseClassName: "navi_input_duration",
|
|
96037
96048
|
"data-callout-arrow-x": "center",
|
|
96038
96049
|
width: "fit-content",
|
|
96039
96050
|
flex: true,
|
|
@@ -96544,8 +96555,7 @@ const Select = ({
|
|
|
96544
96555
|
as: "span",
|
|
96545
96556
|
inline: true,
|
|
96546
96557
|
flex: true,
|
|
96547
|
-
baseClassName: "navi_input",
|
|
96548
|
-
className: "navi_select",
|
|
96558
|
+
baseClassName: "navi_input navi_select",
|
|
96549
96559
|
...rootProps,
|
|
96550
96560
|
basePseudoState: basePseudoState,
|
|
96551
96561
|
styleCSSVars: InputStyleCSSVars,
|
|
@@ -104461,7 +104471,7 @@ const ButtonCopyToClipboard = ({
|
|
|
104461
104471
|
import.meta.css = [css$b, "@jsenv/navi/src/control/input/button_copy_to_clipboard.jsx"];
|
|
104462
104472
|
const [copied, copy] = useCopyToClipboard(children);
|
|
104463
104473
|
return jsxs(Box, {
|
|
104464
|
-
|
|
104474
|
+
baseClassName: "navi_clipboard_container",
|
|
104465
104475
|
...props,
|
|
104466
104476
|
children: [jsx(Box, {
|
|
104467
104477
|
className: "navi_copied_notif",
|
|
@@ -107053,7 +107063,7 @@ const SidePanelHead = props => jsx(Box, {
|
|
|
107053
107063
|
* @param {import("preact").ComponentChildren} props.children
|
|
107054
107064
|
*/
|
|
107055
107065
|
const SidePanelFoot = props => jsx(Box, {
|
|
107056
|
-
|
|
107066
|
+
baseClassName: "navi_side_panel_foot",
|
|
107057
107067
|
...props
|
|
107058
107068
|
});
|
|
107059
107069
|
SidePanel.Head = SidePanelHead;
|