@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/dev/jsenv_navi.js
CHANGED
|
@@ -66254,6 +66254,7 @@ const css$M = /* css */`@layer navi {
|
|
|
66254
66254
|
--thumb-size: 16px;
|
|
66255
66255
|
--thumb-width: var(--thumb-size);
|
|
66256
66256
|
--thumb-height: var(--thumb-size);
|
|
66257
|
+
--press-height: var(--thumb-height);
|
|
66257
66258
|
--thumb-border-radius: 100%;
|
|
66258
66259
|
--thumb-cursor: pointer;
|
|
66259
66260
|
--font-size: var(--navi-control-font-size);
|
|
@@ -66341,6 +66342,8 @@ const css$M = /* css */`@layer navi {
|
|
|
66341
66342
|
position: relative;
|
|
66342
66343
|
|
|
66343
66344
|
& .navi_control_input {
|
|
66345
|
+
width: 100%;
|
|
66346
|
+
height: var(--press-height);
|
|
66344
66347
|
opacity: 0;
|
|
66345
66348
|
--webkit-appearance: none;
|
|
66346
66349
|
min-width: inherit;
|
|
@@ -66350,7 +66353,7 @@ const css$M = /* css */`@layer navi {
|
|
|
66350
66353
|
|
|
66351
66354
|
&::-webkit-slider-thumb {
|
|
66352
66355
|
width: var(--thumb-width);
|
|
66353
|
-
height: var(--
|
|
66356
|
+
height: var(--press-height);
|
|
66354
66357
|
border-radius: var(--thumb-border-radius);
|
|
66355
66358
|
-webkit-appearance: none;
|
|
66356
66359
|
cursor: var(--x-thumb-cursor);
|
|
@@ -66562,6 +66565,7 @@ const RangeNativeInput = props => {
|
|
|
66562
66565
|
});
|
|
66563
66566
|
};
|
|
66564
66567
|
const RangeStyleCSSVars = {
|
|
66568
|
+
"pressHeight": ["--press-height", "height"],
|
|
66565
66569
|
"outlineWidth": "--outline-width",
|
|
66566
66570
|
"borderRadius": "--border-radius",
|
|
66567
66571
|
"borderColor": "--border-color",
|
|
@@ -68068,6 +68072,7 @@ const InputPseudoElements = ["::-navi-loader"];
|
|
|
68068
68072
|
* boolean?: boolean,
|
|
68069
68073
|
* selectOnPress?: boolean,
|
|
68070
68074
|
* enterSendsNothing?: boolean,
|
|
68075
|
+
* pressHeight?: number | string,
|
|
68071
68076
|
* variant?: "checkbox" | "switch" | "icon" | "button",
|
|
68072
68077
|
* buttonVariant?: "discrete",
|
|
68073
68078
|
* actionVerb?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE",
|
|
@@ -68117,6 +68122,12 @@ const InputPseudoElements = ["::-navi-loader"];
|
|
|
68117
68122
|
* street before its suggestion filled the city) and whose Enter would send
|
|
68118
68123
|
* an answer still missing its other half. The browser's own Enter is kept (a
|
|
68119
68124
|
* datalist choice), except in a `<Form>`, where it is the submission.
|
|
68125
|
+
* @param {number|string} [pressHeight] How tall a press counts on a range, the
|
|
68126
|
+
* thumb's height by default, so a thin line stays easy to hit. The press area
|
|
68127
|
+
* only: nothing moves and nothing is drawn. It overflows the range, centered
|
|
68128
|
+
* on its line, over whatever is next to it and takes the presses aimed there,
|
|
68129
|
+
* so leave it the room it needs (`marginY`). Different for a mouse and a
|
|
68130
|
+
* finger: `--press-height` in a `@media (pointer: coarse)` rule.
|
|
68120
68131
|
*/
|
|
68121
68132
|
const Input = props => {
|
|
68122
68133
|
resolveInputProps(props);
|
|
@@ -68817,7 +68828,7 @@ const Editable = props => {
|
|
|
68817
68828
|
children: [children || jsx("span", {
|
|
68818
68829
|
children: value
|
|
68819
68830
|
}), jsx(Box, {
|
|
68820
|
-
|
|
68831
|
+
baseClassName: "navi_editable_wrapper",
|
|
68821
68832
|
ref: wrapperRef,
|
|
68822
68833
|
...wrapperProps,
|
|
68823
68834
|
// inert ensure input while not editing that:
|
|
@@ -93413,7 +93424,7 @@ const Color = ({
|
|
|
93413
93424
|
const color = children || undefined;
|
|
93414
93425
|
return jsx(Box, {
|
|
93415
93426
|
as: "span",
|
|
93416
|
-
|
|
93427
|
+
baseClassName: "navi_color",
|
|
93417
93428
|
"navi-color-empty": color ? undefined : ""
|
|
93418
93429
|
// propsCSSVars={COLOR_PROP_CSS_VAR}
|
|
93419
93430
|
,
|
|
@@ -98164,7 +98175,7 @@ const InputDuration = props => {
|
|
|
98164
98175
|
delete basePseudoState[":-navi-loading"];
|
|
98165
98176
|
return jsxs(Box, {
|
|
98166
98177
|
ref: groupRef,
|
|
98167
|
-
|
|
98178
|
+
baseClassName: "navi_input_duration",
|
|
98168
98179
|
"data-callout-arrow-x": "center",
|
|
98169
98180
|
width: "fit-content",
|
|
98170
98181
|
flex: true,
|
|
@@ -98678,8 +98689,7 @@ const Select = ({
|
|
|
98678
98689
|
as: "span",
|
|
98679
98690
|
inline: true,
|
|
98680
98691
|
flex: true,
|
|
98681
|
-
baseClassName: "navi_input",
|
|
98682
|
-
className: "navi_select",
|
|
98692
|
+
baseClassName: "navi_input navi_select",
|
|
98683
98693
|
...rootProps,
|
|
98684
98694
|
basePseudoState: basePseudoState,
|
|
98685
98695
|
styleCSSVars: InputStyleCSSVars,
|
|
@@ -106603,7 +106613,7 @@ const ButtonCopyToClipboard = ({
|
|
|
106603
106613
|
import.meta.css = [css$b, "@jsenv/navi/src/control/input/button_copy_to_clipboard.jsx"];
|
|
106604
106614
|
const [copied, copy] = useCopyToClipboard(children);
|
|
106605
106615
|
return jsxs(Box, {
|
|
106606
|
-
|
|
106616
|
+
baseClassName: "navi_clipboard_container",
|
|
106607
106617
|
...props,
|
|
106608
106618
|
children: [jsx(Box, {
|
|
106609
106619
|
className: "navi_copied_notif",
|
|
@@ -109195,7 +109205,7 @@ const SidePanelHead = props => jsx(Box, {
|
|
|
109195
109205
|
* @param {import("preact").ComponentChildren} props.children
|
|
109196
109206
|
*/
|
|
109197
109207
|
const SidePanelFoot = props => jsx(Box, {
|
|
109198
|
-
|
|
109208
|
+
baseClassName: "navi_side_panel_foot",
|
|
109199
109209
|
...props
|
|
109200
109210
|
});
|
|
109201
109211
|
SidePanel.Head = SidePanelHead;
|