@jsenv/navi 0.29.124 → 0.29.125
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 +25 -0
- package/dist/jsenv_navi.js.map +8 -4
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -54501,6 +54501,27 @@ const sizeOf = (element, axis) => {
|
|
|
54501
54501
|
const translateOf = (axis, distance) =>
|
|
54502
54502
|
axis === "x" ? `${distance}px 0px` : `0px ${distance}px`;
|
|
54503
54503
|
|
|
54504
|
+
const PopupClose = ({
|
|
54505
|
+
label,
|
|
54506
|
+
...rest
|
|
54507
|
+
}) => {
|
|
54508
|
+
return jsx(Button, {
|
|
54509
|
+
command: "--navi-close",
|
|
54510
|
+
icon: true,
|
|
54511
|
+
variant: "discrete"
|
|
54512
|
+
// The cross is drawn at the control size, which is a few millimetres
|
|
54513
|
+
// wide; the padding is what makes it a target a thumb can hit.
|
|
54514
|
+
,
|
|
54515
|
+
paddingX: "s",
|
|
54516
|
+
paddingY: "s",
|
|
54517
|
+
"aria-label": label === undefined ? naviI18n("button.close") : label,
|
|
54518
|
+
...rest,
|
|
54519
|
+
children: jsx(Icon, {
|
|
54520
|
+
children: jsx(CloseSvg, {})
|
|
54521
|
+
})
|
|
54522
|
+
});
|
|
54523
|
+
};
|
|
54524
|
+
|
|
54504
54525
|
installImportMetaCssBuild(import.meta);/**
|
|
54505
54526
|
* A dialog is a surface, not a control: it holds no value, has no action and
|
|
54506
54527
|
* aggregates nothing. Fields and a submit go in a `<Form>` inside it, exactly
|
|
@@ -56096,6 +56117,7 @@ const DIALOG_STYLE_CSS_VARS = {
|
|
|
56096
56117
|
minHeight: "--dialog-min-height",
|
|
56097
56118
|
maxHeight: "--dialog-max-height"
|
|
56098
56119
|
};
|
|
56120
|
+
Dialog.Close = PopupClose;
|
|
56099
56121
|
|
|
56100
56122
|
installImportMetaCssBuild(import.meta);/**
|
|
56101
56123
|
* A popover is a surface, not a control: it holds no value, has no action and
|
|
@@ -57622,6 +57644,8 @@ const resolvePositionAreaAndAnimationKind = ({
|
|
|
57622
57644
|
// popup_shared.js — same helpers Dialog's own custom renderer needs, no
|
|
57623
57645
|
// Popover-specific knowledge in either.
|
|
57624
57646
|
|
|
57647
|
+
Popover.Close = PopupClose;
|
|
57648
|
+
|
|
57625
57649
|
installImportMetaCssBuild(import.meta);/**
|
|
57626
57650
|
* A lightweight version of picker_custom.jsx's own Popover/Dialog switch —
|
|
57627
57651
|
* no picker concepts (value/action tracking, keyboard letter/arrow-to-open
|
|
@@ -57830,6 +57854,7 @@ const Popup = props => {
|
|
|
57830
57854
|
children: childrenWithMode
|
|
57831
57855
|
});
|
|
57832
57856
|
};
|
|
57857
|
+
Popup.Close = PopupClose;
|
|
57833
57858
|
|
|
57834
57859
|
installImportMetaCssBuild(import.meta);const css$B = /* css */`
|
|
57835
57860
|
.navi_picker {
|