@stenajs-webui/modal 21.23.0 → 21.24.0
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/dialog/UseDialog.d.ts +3 -1
- package/dist/index.es.js +240 -225
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode("._overlay_5x3op_1{--swui-modal-animation-time: var(--swui-animation-time-fast);--swui-modal-overlay-bg-color: var(--swui-overlay-bg-color);--swui-modal-content-bg-color: var(--swui-white);--swui-modal-width: 960px;--swui-modal-max-width: 100%;--swui-modal-header-border-color: var(--lhds-color-ui-300);--swui-modal-shadow: var(--swui-shadow-modal);--swui-modal-footer-shadow: var(--swui-shadow-modal);position:fixed;z-index:10;top:0;left:0;right:0;bottom:0;background-color:var(--swui-modal-overlay-bg-color);overflow:auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;animation:_fadeIn_5x3op_1 var(--swui-modal-animation-time) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_5x3op_1{background-color:#fff}}._overlay_5x3op_1 ._modal_5x3op_31{max-width:100%;outline:none;pointer-events:none}@media (max-width: 768px){._overlay_5x3op_1 ._modal_5x3op_31{width:100%}}._overlay_5x3op_1 ._content_5x3op_41{position:relative;display:block;background:var(--swui-modal-content-bg-color);box-shadow:var(--swui-modal-shadow);pointer-events:all;top:calc(var(--swui-metrics-space) * 2);width:var(--swui-modal-width);max-width:var(--swui-modal-max-width)}@media (max-width: 768px){._overlay_5x3op_1 ._content_5x3op_41{top:0;width:100%;max-width:100%}}._overlay_5x3op_1 ._content_5x3op_41{animation:_appear_5x3op_1 var(--swui-animation-time-fast) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_5x3op_1 ._content_5x3op_41{box-shadow:none;top:0}}._overlay_5x3op_1 ._content_5x3op_41 :focus{outline:0}._overlay_5x3op_1 ._content_5x3op_41._isDraggable_5x3op_70 .draggable-modal-handle{cursor:move}._overlay_5x3op_1 ._content_5x3op_41._isDraggable_5x3op_70 .draggable-modal-handle .draggable-modal-cancel,._overlay_5x3op_1 ._content_5x3op_41._isDraggable_5x3op_70 .draggable-modal-handle [role=tooltip]{cursor:initial}@keyframes _fadeIn_5x3op_1{0%{background-color:var(--swui-hidden)}to{background-color:var(--swui-modal-overlay-bg-color)}}@keyframes _appear_5x3op_1{0%{opacity:0}to{opacity:1}}._footer_5x3op_101{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_5x3op_105{position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_5x3op_105{position:static;box-shadow:none}}._portal_17ze5_1{--drawer-width: 370px}._portal_17ze5_1 ._overlay_17ze5_4{position:fixed;top:0;right:0;bottom:0;left:0}._portal_17ze5_1 ._content_17ze5_9{box-shadow:var(--swui-shadow-modal);background:#fff;position:absolute;transition:transform var(--swui-animation-time-medium) ease-in-out}._portal_17ze5_1 ._content_17ze5_9._floating_17ze5_15{margin:var(--swui-metrics-space);border-radius:var(--swui-border-radius)}@media (max-width: 768px){._portal_17ze5_1 ._content_17ze5_9._floating_17ze5_15{margin:0;border-radius:0}}._portal_17ze5_1 ._content_17ze5_9:focus-visible{outline:unset}._portal_17ze5_1 ._content_17ze5_9._slideFromLeft_17ze5_29,._portal_17ze5_1 ._content_17ze5_9._slideFromRight_17ze5_30{transform:translate(var(--translate-x-outside-screen, 0));overflow-y:auto;top:0;bottom:0}._portal_17ze5_1 ._content_17ze5_9._slideFromLeft_17ze5_29._afterOpen_17ze5_36,._portal_17ze5_1 ._content_17ze5_9._slideFromRight_17ze5_30._afterOpen_17ze5_36{transform:translate(0)}._portal_17ze5_1 ._content_17ze5_9._slideFromLeft_17ze5_29._beforeClose_17ze5_40,._portal_17ze5_1 ._content_17ze5_9._slideFromRight_17ze5_30._beforeClose_17ze5_40{transform:translate(var(--translate-x-outside-screen))}._portal_17ze5_1 ._content_17ze5_9._slideFromTop_17ze5_45,._portal_17ze5_1 ._content_17ze5_9._slideFromBottom_17ze5_46{transform:translateY(var(--translate-y-outside-screen, 0));overflow-x:auto;left:0;right:0}._portal_17ze5_1 ._content_17ze5_9._slideFromTop_17ze5_45._afterOpen_17ze5_36,._portal_17ze5_1 ._content_17ze5_9._slideFromBottom_17ze5_46._afterOpen_17ze5_36{transform:translateY(0)}._portal_17ze5_1 ._content_17ze5_9._slideFromTop_17ze5_45._beforeClose_17ze5_40,._portal_17ze5_1 ._content_17ze5_9._slideFromBottom_17ze5_46._beforeClose_17ze5_40{transform:translateY(var(--translate-y-outside-screen))}._portal_17ze5_1 ._content_17ze5_9._slideFromLeft_17ze5_29{--translate-x-outside-screen: -100%;width:var(--drawer-width);left:0}._portal_17ze5_1 ._content_17ze5_9._slideFromRight_17ze5_30{--translate-x-outside-screen: 100%;width:var(--drawer-width);right:0}._portal_17ze5_1 ._content_17ze5_9._slideFromTop_17ze5_45{--translate-y-outside-screen: -100%;height:var(--drawer-width);top:0}._portal_17ze5_1 ._content_17ze5_9._slideFromBottom_17ze5_46{--translate-y-outside-screen: 100%;height:var(--drawer-width);bottom:0}._overlay_r9tkq_1{--swui-modal-animation-time: var(--swui-animation-time-fast);--swui-modal-overlay-bg-color: var(--swui-overlay-bg-color);--swui-modal-content-bg-color: var(--swui-white);--swui-modal-width: 960px;--swui-modal-max-width: 100%;--swui-modal-header-border-color: var(--lhds-color-ui-300);--swui-modal-shadow: var(--swui-shadow-modal);--swui-modal-footer-shadow: var(--swui-shadow-modal);position:fixed;z-index:10;top:0;left:0;right:0;bottom:0;background-color:var(--swui-modal-overlay-bg-color);overflow:auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;animation:_fadeIn_r9tkq_1 var(--swui-modal-animation-time) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_r9tkq_1{background-color:#fff}}._overlay_r9tkq_1 ._modal_r9tkq_31{max-width:100%;outline:none;pointer-events:none;padding:var(--swui-metrics-space)}._overlay_r9tkq_1 ._content_r9tkq_38{position:relative;display:block;background:var(--swui-modal-content-bg-color);box-shadow:var(--swui-modal-shadow);border-radius:var(--swui-border-radius-large);pointer-events:all;width:var(--swui-modal-width);max-width:var(--swui-modal-max-width);animation:_appear_r9tkq_1 var(--swui-animation-time-fast) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_r9tkq_1 ._content_r9tkq_38{box-shadow:none;top:0}}._overlay_r9tkq_1 ._content_r9tkq_38 :focus{outline:0}._overlay_r9tkq_1 ._content_r9tkq_38._isDraggable_r9tkq_61 .draggable-modal-handle{cursor:move}._overlay_r9tkq_1 ._content_r9tkq_38._isDraggable_r9tkq_61 .draggable-modal-handle .draggable-modal-cancel,._overlay_r9tkq_1 ._content_r9tkq_38._isDraggable_r9tkq_61 .draggable-modal-handle [role=tooltip]{cursor:initial}@keyframes _fadeIn_r9tkq_1{0%{background-color:var(--swui-hidden)}to{background-color:var(--swui-modal-overlay-bg-color)}}@keyframes _appear_r9tkq_1{0%{opacity:0}to{opacity:1}}._footer_r9tkq_92{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_r9tkq_96{position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_r9tkq_96{position:static;box-shadow:none}}._overlay_15dqv_1{--swui-modal-animation-time: var(--swui-animation-time-medium);--swui-modal-overlay-bg-color: var(--swui-overlay-bg-color);--swui-modal-content-bg-color: var(--swui-white);--swui-modal-width: 960px;--swui-modal-max-width: 100%;--swui-modal-header-border-color: var(--lhds-color-ui-300);--swui-modal-shadow: var(--swui-shadow-modal);--swui-modal-footer-shadow: var(--swui-shadow-modal);position:fixed;z-index:10;top:0;left:0;right:0;bottom:0;background-color:var(--swui-modal-overlay-bg-color);display:flex;flex-direction:column;justify-content:flex-start;align-items:center;opacity:0}._overlay_15dqv_1._afterOpen_15dqv_24:not(._beforeClose_15dqv_24){animation:_fadeIn_15dqv_1 var(--swui-modal-animation-time) forwards}._overlay_15dqv_1._beforeClose_15dqv_24{animation:_fadeOut_15dqv_1 var(--swui-modal-animation-time) forwards}@media print{._overlay_15dqv_1{background-color:#fff}}._overlay_15dqv_1 ._modal_15dqv_36{max-width:100%;outline:none;pointer-events:none;padding:calc(var(--swui-metrics-space) * 2);box-sizing:border-box;max-height:100%;transform:translateY(-100%)}@media (max-width: 768px){._overlay_15dqv_1 ._modal_15dqv_36{padding:0;width:100%}}._overlay_15dqv_1 ._modal_15dqv_36._afterOpen_15dqv_24:not(._beforeClose_15dqv_24){animation:_slideIn_15dqv_1 var(--swui-modal-animation-time) forwards}._overlay_15dqv_1 ._modal_15dqv_36._beforeClose_15dqv_24{animation:_slideOut_15dqv_1 var(--swui-modal-animation-time) forwards}._overlay_15dqv_1 ._content_15dqv_59{position:relative;display:block;background:var(--swui-modal-content-bg-color);box-shadow:var(--swui-modal-shadow);border-radius:var(--swui-border-radius-large);pointer-events:all;width:var(--swui-modal-width);max-width:var(--swui-modal-max-width);height:100%;overflow:hidden;overflow-y:auto}@media (max-width: 768px){._overlay_15dqv_1 ._content_15dqv_59{border-radius:0;width:100%;max-width:100%;min-height:100vh}}@media (min-width: 769px){._overlay_15dqv_1 ._content_15dqv_59{border-radius:var(--swui-border-radius-large)}._overlay_15dqv_1 ._content_15dqv_59::-webkit-scrollbar-thumb{background-color:var(--lhds-color-ui-400);border:4px solid transparent;border-radius:8px;background-clip:padding-box}._overlay_15dqv_1 ._content_15dqv_59::-webkit-scrollbar{width:16px}}@media print{._overlay_15dqv_1 ._content_15dqv_59{box-shadow:none;top:0}}._overlay_15dqv_1 ._content_15dqv_59 :focus{outline:0}@keyframes _fadeIn_15dqv_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_15dqv_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_15dqv_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_15dqv_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}._footer_15dqv_148{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_15dqv_152{position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_15dqv_152{position:static;box-shadow:none}}._modal_4fwgb_1{display:flex;justify-content:center;align-items:center;position:fixed;top:0;left:0;right:0;bottom:0;background-color:transparent}._overlay_4fwgb_13{position:fixed;top:0;left:0;right:0;bottom:0;background-color:var(--swui-overlay-bg-color)}._alertDialog_14t8t_1{border:0;outline:0;border-radius:var(--swui-border-radius-large);margin:auto;padding:0;overscroll-behavior:contain;opacity:0;pointer-events:none;box-shadow:#0003 0 0 10px 4px}._alertDialog_14t8t_1:not([open]){display:none}._alertDialog_14t8t_1[open]{opacity:1;pointer-events:auto;animation:_slideIn_14t8t_1 .25s forwards}._alertDialog_14t8t_1._closing_14t8t_22[open]{animation:_slideOut_14t8t_1 .25s forwards}._alertDialog_14t8t_1::backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0d0e1080;animation:_fadeIn_14t8t_1 .25s forwards}._alertDialog_14t8t_1._closing_14t8t_22::backdrop{animation:_fadeOut_14t8t_1 .25s forwards}@keyframes _fadeIn_14t8t_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_14t8t_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_14t8t_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_14t8t_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}._drawerDialog_11g6r_1{max-height:100%;max-width:100%;border:0;outline:0;margin:0;padding:0;overflow-y:auto;overscroll-behavior:contain;box-shadow:#0003 0 0 10px 4px;position:fixed}._drawerDialog_11g6r_1._left_11g6r_13,._drawerDialog_11g6r_1._right_11g6r_14{height:100%;top:0;bottom:0}._drawerDialog_11g6r_1._left_11g6r_13 ._contentWrapper_11g6r_19,._drawerDialog_11g6r_1._right_11g6r_14 ._contentWrapper_11g6r_19{height:100%}@media (max-width: 768px){._drawerDialog_11g6r_1._left_11g6r_13,._drawerDialog_11g6r_1._right_11g6r_14{width:-moz-fit-content;width:fit-content}}._drawerDialog_11g6r_1._left_11g6r_13{left:0;right:unset}._drawerDialog_11g6r_1._left_11g6r_13[open]{animation:_slideInLeft_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._left_11g6r_13._closing_11g6r_36[open]{animation:_slideOutLeft_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._right_11g6r_14{left:unset;right:0}._drawerDialog_11g6r_1._right_11g6r_14[open]{animation:_slideInRight_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._right_11g6r_14._closing_11g6r_36[open]{animation:_slideOutRight_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._top_11g6r_54,._drawerDialog_11g6r_1._bottom_11g6r_55{width:100%;left:0;right:0}@media (max-width: 768px){._drawerDialog_11g6r_1._top_11g6r_54,._drawerDialog_11g6r_1._bottom_11g6r_55{height:-moz-fit-content;height:fit-content}}._drawerDialog_11g6r_1._top_11g6r_54{top:0;bottom:unset}._drawerDialog_11g6r_1._top_11g6r_54[open]{animation:_slideInTop_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._top_11g6r_54._closing_11g6r_36[open]{animation:_slideOutTop_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._bottom_11g6r_55{top:unset;bottom:0}._drawerDialog_11g6r_1._bottom_11g6r_55[open]{animation:_slideInBottom_11g6r_1 .25s forwards}._drawerDialog_11g6r_1._bottom_11g6r_55._closing_11g6r_36[open]{animation:_slideOutBottom_11g6r_1 .25s forwards}._drawerDialog_11g6r_1[open]{opacity:1;pointer-events:auto}@keyframes _slideInLeft_11g6r_1{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _slideOutLeft_11g6r_1{0%{transform:translate(0);opacity:0}to{transform:translate(-100%);opacity:1}}@keyframes _slideInTop_11g6r_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOutTop_11g6r_1{0%{transform:translateY(0);opacity:0}to{transform:translateY(-100%);opacity:1}}@keyframes _slideInRight_11g6r_1{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _slideOutRight_11g6r_1{0%{transform:translate(0);opacity:0}to{transform:translate(100%);opacity:1}}@keyframes _slideInBottom_11g6r_1{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOutBottom_11g6r_1{0%{transform:translateY(0);opacity:0}to{transform:translateY(100%);opacity:1}}._modalDialog_1teni_1{border:0;outline:0;margin:auto;padding:0;overscroll-behavior:contain;opacity:0;pointer-events:none;box-shadow:#0003 0 0 10px 4px}@media (min-width: 769px){._modalDialog_1teni_1{border-radius:var(--swui-border-radius-large)}._modalDialog_1teni_1::-webkit-scrollbar-thumb{background-color:var(--lhds-color-ui-400);border:4px solid transparent;border-radius:8px;background-clip:padding-box}._modalDialog_1teni_1::-webkit-scrollbar{width:16px}}._modalDialog_1teni_1:not([open]){display:none}._modalDialog_1teni_1[open]{opacity:1;pointer-events:auto;animation:_slideIn_1teni_1 .25s forwards}._modalDialog_1teni_1._closing_1teni_36[open]{animation:_slideOut_1teni_1 .25s forwards}@media (max-width: 768px){._modalDialog_1teni_1{margin:0;width:100%;max-width:100%;height:100%;max-height:100%}}._modalDialog_1teni_1::backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0d0e1080;animation:_fadeIn_1teni_1 .25s forwards}._modalDialog_1teni_1._closing_1teni_36::backdrop{animation:_fadeOut_1teni_1 .25s forwards}@keyframes _fadeIn_1teni_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1teni_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_1teni_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_1teni_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}@media (max-width: 768px){._contentWrapper_1teni_100{width:100%;height:100%}}._modalActionButtons_s27nj_1{display:flex;flex-direction:row;gap:16px;justify-content:center}@media (max-width: 768px){._modalActionButtons_s27nj_1{flex-direction:column;justify-content:stretch}}._modalFooter_112wr_1._modalFooter_112wr_1{display:flex;align-items:center;overflow:hidden;background:var(--silver-lighter);border-radius:24px 24px 0 0;padding:0 calc((var(--swui-metrics-indent) * 5));flex-shrink:0}._modalFooter_112wr_1._modalFooter_112wr_1._sticky_112wr_10{position:sticky;bottom:0}")),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
import B from "react-modal";
|
|
3
|
-
import { jsx as n, jsxs as u, Fragment as
|
|
4
|
-
import { useRef as k, createContext as
|
|
5
|
-
import
|
|
3
|
+
import { jsx as n, jsxs as u, Fragment as se } from "react/jsx-runtime";
|
|
4
|
+
import { useRef as k, createContext as Ce, useReducer as ve, useState as G, useCallback as A, useMemo as re, createElement as le, useContext as we } from "react";
|
|
5
|
+
import Ie from "react-draggable";
|
|
6
6
|
import d from "classnames";
|
|
7
|
-
import { exhaustSwitchCase as be, Spacing as
|
|
8
|
-
import { Icon as
|
|
9
|
-
import { cssColor as
|
|
10
|
-
const
|
|
7
|
+
import { exhaustSwitchCase as be, Spacing as K, Row as w, Space as ae, Heading as Q, Column as U, Box as x, Indent as Oe, Txt as Ne, Text as $e } from "@stenajs-webui/core";
|
|
8
|
+
import { Icon as de, FlatButton as Fe, stenaTimes as ke, Spinner as De, CloseButton as _e, CircledIcon as xe } from "@stenajs-webui/elements";
|
|
9
|
+
import { cssColor as Be } from "@stenajs-webui/theme";
|
|
10
|
+
const un = (t) => {
|
|
11
11
|
B.setAppElement(t);
|
|
12
|
-
},
|
|
13
|
-
overlay:
|
|
14
|
-
fadeIn:
|
|
15
|
-
modal:
|
|
16
|
-
content:
|
|
17
|
-
appear:
|
|
18
|
-
isDraggable:
|
|
19
|
-
footer:
|
|
20
|
-
stickyFooter:
|
|
21
|
-
},
|
|
12
|
+
}, Ae = "_overlay_5x3op_1", qe = "_fadeIn_5x3op_1", Le = "_modal_5x3op_31", ze = "_content_5x3op_41", Me = "_appear_5x3op_1", We = "_isDraggable_5x3op_70", Se = "_footer_5x3op_101", Te = "_stickyFooter_5x3op_105", D = {
|
|
13
|
+
overlay: Ae,
|
|
14
|
+
fadeIn: qe,
|
|
15
|
+
modal: Le,
|
|
16
|
+
content: ze,
|
|
17
|
+
appear: Me,
|
|
18
|
+
isDraggable: We,
|
|
19
|
+
footer: Se,
|
|
20
|
+
stickyFooter: Te
|
|
21
|
+
}, me = "draggable-modal-handle", ue = "draggable-modal-cancel", Ee = ({
|
|
22
22
|
width: t,
|
|
23
23
|
maxWidth: e,
|
|
24
24
|
draggable: o = !1,
|
|
@@ -33,10 +33,10 @@ const _n = (t) => {
|
|
|
33
33
|
className: D.modal,
|
|
34
34
|
...c,
|
|
35
35
|
children: /* @__PURE__ */ n(
|
|
36
|
-
|
|
36
|
+
Ie,
|
|
37
37
|
{
|
|
38
|
-
handle: `.${
|
|
39
|
-
cancel: `.${
|
|
38
|
+
handle: `.${me}`,
|
|
39
|
+
cancel: `.${ue}, button, [role="tooltip"]`,
|
|
40
40
|
bounds: ".ReactModal__Overlay",
|
|
41
41
|
disabled: !o,
|
|
42
42
|
nodeRef: f,
|
|
@@ -58,18 +58,18 @@ const _n = (t) => {
|
|
|
58
58
|
)
|
|
59
59
|
}
|
|
60
60
|
);
|
|
61
|
-
},
|
|
62
|
-
portal:
|
|
63
|
-
overlay:
|
|
64
|
-
content:
|
|
65
|
-
floating:
|
|
66
|
-
slideFromLeft:
|
|
67
|
-
slideFromRight:
|
|
68
|
-
afterOpen:
|
|
69
|
-
beforeClose:
|
|
70
|
-
slideFromTop:
|
|
71
|
-
slideFromBottom:
|
|
72
|
-
},
|
|
61
|
+
}, He = "_portal_17ze5_1", Pe = "_overlay_17ze5_4", Ge = "_content_17ze5_9", Ve = "_floating_17ze5_15", Xe = "_slideFromLeft_17ze5_29", Ye = "_slideFromRight_17ze5_30", Je = "_afterOpen_17ze5_36", Ke = "_beforeClose_17ze5_40", Qe = "_slideFromTop_17ze5_45", Ue = "_slideFromBottom_17ze5_46", m = {
|
|
62
|
+
portal: He,
|
|
63
|
+
overlay: Pe,
|
|
64
|
+
content: Ge,
|
|
65
|
+
floating: Ve,
|
|
66
|
+
slideFromLeft: Xe,
|
|
67
|
+
slideFromRight: Ye,
|
|
68
|
+
afterOpen: Je,
|
|
69
|
+
beforeClose: Ke,
|
|
70
|
+
slideFromTop: Qe,
|
|
71
|
+
slideFromBottom: Ue
|
|
72
|
+
}, fn = ({
|
|
73
73
|
background: t,
|
|
74
74
|
zIndex: e,
|
|
75
75
|
children: o,
|
|
@@ -78,7 +78,7 @@ const _n = (t) => {
|
|
|
78
78
|
floating: f,
|
|
79
79
|
...g
|
|
80
80
|
}) => {
|
|
81
|
-
const { height: h, width:
|
|
81
|
+
const { height: h, width: I } = g;
|
|
82
82
|
return /* @__PURE__ */ n(
|
|
83
83
|
B,
|
|
84
84
|
{
|
|
@@ -92,19 +92,19 @@ const _n = (t) => {
|
|
|
92
92
|
className: {
|
|
93
93
|
base: d(
|
|
94
94
|
m.content,
|
|
95
|
-
|
|
95
|
+
Ze(s),
|
|
96
96
|
f && m.floating
|
|
97
97
|
),
|
|
98
98
|
afterOpen: m.afterOpen,
|
|
99
99
|
beforeClose: m.beforeClose
|
|
100
100
|
},
|
|
101
|
-
style: { content: { width:
|
|
101
|
+
style: { content: { width: I, height: h, background: t }, overlay: { zIndex: e } },
|
|
102
102
|
parentSelector: c ? () => c : void 0,
|
|
103
103
|
...g,
|
|
104
104
|
children: o
|
|
105
105
|
}
|
|
106
106
|
);
|
|
107
|
-
},
|
|
107
|
+
}, Ze = (t) => {
|
|
108
108
|
switch (t) {
|
|
109
109
|
case "left":
|
|
110
110
|
return m.slideFromLeft;
|
|
@@ -117,87 +117,87 @@ const _n = (t) => {
|
|
|
117
117
|
default:
|
|
118
118
|
return be(t, m.slideFromLeft);
|
|
119
119
|
}
|
|
120
|
-
},
|
|
120
|
+
}, gn = ({
|
|
121
121
|
header: t,
|
|
122
122
|
contentRight: e,
|
|
123
123
|
onRequestClose: o,
|
|
124
124
|
icon: s
|
|
125
125
|
}) => /* @__PURE__ */ n(
|
|
126
|
-
|
|
126
|
+
K,
|
|
127
127
|
{
|
|
128
128
|
position: "sticky",
|
|
129
129
|
top: 0,
|
|
130
130
|
zIndex: 100,
|
|
131
|
-
background:
|
|
131
|
+
background: Be("--lhds-color-ui-50"),
|
|
132
132
|
children: /* @__PURE__ */ u(
|
|
133
|
-
|
|
133
|
+
w,
|
|
134
134
|
{
|
|
135
135
|
justifyContent: "space-between",
|
|
136
136
|
alignItems: "center",
|
|
137
137
|
height: "48px",
|
|
138
138
|
children: [
|
|
139
|
-
/* @__PURE__ */ u(
|
|
140
|
-
/* @__PURE__ */ n(
|
|
141
|
-
s && /* @__PURE__ */ n(
|
|
142
|
-
/* @__PURE__ */ n(
|
|
139
|
+
/* @__PURE__ */ u(w, { alignItems: "center", gap: 2, children: [
|
|
140
|
+
/* @__PURE__ */ n(ae, { num: 1 }),
|
|
141
|
+
s && /* @__PURE__ */ n(de, { icon: s, size: 24 }),
|
|
142
|
+
/* @__PURE__ */ n(Q, { variant: "h4", children: t })
|
|
143
143
|
] }),
|
|
144
|
-
/* @__PURE__ */ u(
|
|
144
|
+
/* @__PURE__ */ u(w, { gap: 1, children: [
|
|
145
145
|
e,
|
|
146
146
|
/* @__PURE__ */ n(
|
|
147
|
-
|
|
147
|
+
Fe,
|
|
148
148
|
{
|
|
149
|
-
leftIcon:
|
|
149
|
+
leftIcon: ke,
|
|
150
150
|
onClick: o,
|
|
151
151
|
variant: "danger"
|
|
152
152
|
}
|
|
153
153
|
),
|
|
154
|
-
/* @__PURE__ */ n(
|
|
154
|
+
/* @__PURE__ */ n(ae, { num: 0.5 })
|
|
155
155
|
] })
|
|
156
156
|
]
|
|
157
157
|
}
|
|
158
158
|
)
|
|
159
159
|
}
|
|
160
|
-
),
|
|
161
|
-
overlay:
|
|
162
|
-
fadeIn:
|
|
163
|
-
modal:
|
|
164
|
-
content:
|
|
165
|
-
appear:
|
|
166
|
-
isDraggable:
|
|
167
|
-
footer:
|
|
168
|
-
stickyFooter:
|
|
169
|
-
},
|
|
160
|
+
), Re = "_overlay_r9tkq_1", je = "_fadeIn_r9tkq_1", et = "_modal_r9tkq_31", tt = "_content_r9tkq_38", nt = "_appear_r9tkq_1", ot = "_isDraggable_r9tkq_61", st = "_footer_r9tkq_92", rt = "_stickyFooter_r9tkq_96", V = {
|
|
161
|
+
overlay: Re,
|
|
162
|
+
fadeIn: je,
|
|
163
|
+
modal: et,
|
|
164
|
+
content: tt,
|
|
165
|
+
appear: nt,
|
|
166
|
+
isDraggable: ot,
|
|
167
|
+
footer: st,
|
|
168
|
+
stickyFooter: rt
|
|
169
|
+
}, lt = { overlay: { justifyContent: "center" } }, hn = ({
|
|
170
170
|
children: t,
|
|
171
171
|
...e
|
|
172
172
|
}) => /* @__PURE__ */ n(
|
|
173
173
|
B,
|
|
174
174
|
{
|
|
175
|
-
overlayClassName:
|
|
176
|
-
className:
|
|
177
|
-
style:
|
|
175
|
+
overlayClassName: V.overlay,
|
|
176
|
+
className: V.modal,
|
|
177
|
+
style: lt,
|
|
178
178
|
...e,
|
|
179
179
|
children: /* @__PURE__ */ n(
|
|
180
180
|
"div",
|
|
181
181
|
{
|
|
182
|
-
className:
|
|
182
|
+
className: V.content,
|
|
183
183
|
style: { "--swui-modal-width": "fit-content" },
|
|
184
184
|
children: t
|
|
185
185
|
}
|
|
186
186
|
)
|
|
187
187
|
}
|
|
188
|
-
),
|
|
189
|
-
overlay:
|
|
190
|
-
afterOpen:
|
|
191
|
-
beforeClose:
|
|
192
|
-
fadeIn:
|
|
193
|
-
fadeOut:
|
|
194
|
-
modal:
|
|
195
|
-
slideIn:
|
|
196
|
-
slideOut:
|
|
197
|
-
content:
|
|
198
|
-
footer:
|
|
199
|
-
stickyFooter:
|
|
200
|
-
},
|
|
188
|
+
), at = "_overlay_15dqv_1", ct = "_afterOpen_15dqv_24", it = "_beforeClose_15dqv_24", dt = "_fadeIn_15dqv_1", _t = "_fadeOut_15dqv_1", mt = "_modal_15dqv_36", ut = "_slideIn_15dqv_1", ft = "_slideOut_15dqv_1", gt = "_content_15dqv_59", ht = "_footer_15dqv_148", pt = "_stickyFooter_15dqv_152", $ = {
|
|
189
|
+
overlay: at,
|
|
190
|
+
afterOpen: ct,
|
|
191
|
+
beforeClose: it,
|
|
192
|
+
fadeIn: dt,
|
|
193
|
+
fadeOut: _t,
|
|
194
|
+
modal: mt,
|
|
195
|
+
slideIn: ut,
|
|
196
|
+
slideOut: ft,
|
|
197
|
+
content: gt,
|
|
198
|
+
footer: ht,
|
|
199
|
+
stickyFooter: pt
|
|
200
|
+
}, yt = ({
|
|
201
201
|
children: t,
|
|
202
202
|
background: e,
|
|
203
203
|
...o
|
|
@@ -232,10 +232,10 @@ const _n = (t) => {
|
|
|
232
232
|
)
|
|
233
233
|
}
|
|
234
234
|
);
|
|
235
|
-
},
|
|
236
|
-
modal:
|
|
237
|
-
overlay:
|
|
238
|
-
},
|
|
235
|
+
}, Ct = "_modal_4fwgb_1", vt = "_overlay_4fwgb_13", ce = {
|
|
236
|
+
modal: Ct,
|
|
237
|
+
overlay: vt
|
|
238
|
+
}, pn = ({
|
|
239
239
|
headerIconLeft: t,
|
|
240
240
|
headerText: e,
|
|
241
241
|
shouldCloseOnOverlayClick: o = !1,
|
|
@@ -248,9 +248,9 @@ const _n = (t) => {
|
|
|
248
248
|
isOpen: !0,
|
|
249
249
|
shouldCloseOnOverlayClick: o,
|
|
250
250
|
shouldCloseOnEsc: s,
|
|
251
|
-
className:
|
|
252
|
-
overlayClassName:
|
|
253
|
-
children: /* @__PURE__ */ u(
|
|
251
|
+
className: ce.modal,
|
|
252
|
+
overlayClassName: ce.overlay,
|
|
253
|
+
children: /* @__PURE__ */ u(U, { spacing: 2, alignItems: "center", children: [
|
|
254
254
|
/* @__PURE__ */ n(
|
|
255
255
|
x,
|
|
256
256
|
{
|
|
@@ -261,40 +261,40 @@ const _n = (t) => {
|
|
|
261
261
|
borderRadius: "50%",
|
|
262
262
|
background: "white",
|
|
263
263
|
shadow: "modal",
|
|
264
|
-
children: /* @__PURE__ */ n(
|
|
264
|
+
children: /* @__PURE__ */ n(De, { size: "small" })
|
|
265
265
|
}
|
|
266
266
|
),
|
|
267
|
-
(t || e) && /* @__PURE__ */ u(
|
|
268
|
-
/* @__PURE__ */ n(
|
|
269
|
-
/* @__PURE__ */ u(
|
|
270
|
-
t && /* @__PURE__ */ u(
|
|
271
|
-
/* @__PURE__ */ n(
|
|
272
|
-
/* @__PURE__ */ n(
|
|
267
|
+
(t || e) && /* @__PURE__ */ u(se, { children: [
|
|
268
|
+
/* @__PURE__ */ n(K, {}),
|
|
269
|
+
/* @__PURE__ */ u(w, { indent: 2, children: [
|
|
270
|
+
t && /* @__PURE__ */ u(se, { children: [
|
|
271
|
+
/* @__PURE__ */ n(de, { size: 14, icon: t, color: "white" }),
|
|
272
|
+
/* @__PURE__ */ n(Oe, {})
|
|
273
273
|
] }),
|
|
274
|
-
e && /* @__PURE__ */ n(
|
|
274
|
+
e && /* @__PURE__ */ n(Q, { variant: "h4", color: "white", children: e })
|
|
275
275
|
] })
|
|
276
276
|
] })
|
|
277
277
|
] })
|
|
278
278
|
}
|
|
279
|
-
),
|
|
279
|
+
), wt = ({
|
|
280
280
|
onRequestClose: t,
|
|
281
281
|
header: e,
|
|
282
282
|
headerText: o,
|
|
283
283
|
closeButtonClassName: s
|
|
284
284
|
}) => /* @__PURE__ */ u(
|
|
285
|
-
|
|
285
|
+
w,
|
|
286
286
|
{
|
|
287
287
|
spacing: 2,
|
|
288
288
|
indent: 2,
|
|
289
289
|
borderBottom: "1px solid var(--lhds-color-ui-300)",
|
|
290
|
-
className:
|
|
290
|
+
className: me,
|
|
291
291
|
children: [
|
|
292
|
-
/* @__PURE__ */ u(
|
|
293
|
-
o && /* @__PURE__ */ n(
|
|
292
|
+
/* @__PURE__ */ u(w, { flex: 1, indent: !0, alignItems: "center", children: [
|
|
293
|
+
o && /* @__PURE__ */ n(Ne, { className: ue, size: "large", children: o }),
|
|
294
294
|
e
|
|
295
295
|
] }),
|
|
296
296
|
/* @__PURE__ */ n(x, { alignSelf: "flex-start", children: /* @__PURE__ */ n(
|
|
297
|
-
|
|
297
|
+
_e,
|
|
298
298
|
{
|
|
299
299
|
className: s,
|
|
300
300
|
onClick: t
|
|
@@ -302,7 +302,7 @@ const _n = (t) => {
|
|
|
302
302
|
) })
|
|
303
303
|
]
|
|
304
304
|
}
|
|
305
|
-
),
|
|
305
|
+
), yn = ({
|
|
306
306
|
header: t,
|
|
307
307
|
headerText: e,
|
|
308
308
|
children: o,
|
|
@@ -311,18 +311,18 @@ const _n = (t) => {
|
|
|
311
311
|
draggable: f = !1,
|
|
312
312
|
onRequestClose: g,
|
|
313
313
|
closeButtonClassName: h,
|
|
314
|
-
footer:
|
|
314
|
+
footer: I,
|
|
315
315
|
disableStickyFooter: y = !1,
|
|
316
316
|
..._
|
|
317
317
|
}) => /* @__PURE__ */ u(
|
|
318
|
-
|
|
318
|
+
Ee,
|
|
319
319
|
{
|
|
320
320
|
..._,
|
|
321
321
|
onRequestClose: g,
|
|
322
322
|
draggable: f,
|
|
323
323
|
children: [
|
|
324
324
|
/* @__PURE__ */ n(
|
|
325
|
-
|
|
325
|
+
wt,
|
|
326
326
|
{
|
|
327
327
|
onRequestClose: g,
|
|
328
328
|
header: t,
|
|
@@ -331,21 +331,21 @@ const _n = (t) => {
|
|
|
331
331
|
}
|
|
332
332
|
),
|
|
333
333
|
/* @__PURE__ */ n(x, { spacing: typeof s == "number" ? s : 1, indent: typeof c == "number" ? c : 1, children: o }),
|
|
334
|
-
|
|
334
|
+
I && /* @__PURE__ */ n(
|
|
335
335
|
x,
|
|
336
336
|
{
|
|
337
337
|
className: d(D.footer, {
|
|
338
338
|
[D.stickyFooter]: !y
|
|
339
339
|
}),
|
|
340
|
-
children:
|
|
340
|
+
children: I
|
|
341
341
|
}
|
|
342
342
|
)
|
|
343
343
|
]
|
|
344
344
|
}
|
|
345
|
-
),
|
|
345
|
+
), Cn = ({ children: t }) => /* @__PURE__ */ n(U, { indent: 2, spacing: 2, children: t }), J = Ce(
|
|
346
346
|
void 0
|
|
347
347
|
);
|
|
348
|
-
function
|
|
348
|
+
function Z(t, {
|
|
349
349
|
ref: e,
|
|
350
350
|
modal: o,
|
|
351
351
|
contentWrapperClassName: s,
|
|
@@ -353,39 +353,41 @@ function Q(t, {
|
|
|
353
353
|
contentWrapperStyle: f,
|
|
354
354
|
dialogStyle: g,
|
|
355
355
|
divInsteadOfDialog: h,
|
|
356
|
-
disableCloseOnClickOutside:
|
|
356
|
+
disableCloseOnClickOutside: I,
|
|
357
357
|
onResolve: y,
|
|
358
358
|
onReject: _,
|
|
359
359
|
className: M,
|
|
360
|
-
background: q
|
|
360
|
+
background: q,
|
|
361
|
+
labelledby: W,
|
|
362
|
+
describedby: S
|
|
361
363
|
}) {
|
|
362
|
-
const
|
|
364
|
+
const ge = k(null), i = e ?? ge, [T, he] = ve((r) => r + 1, 0), R = k(), b = k(), C = k(), p = k(), [j, L] = G(!1), [E, F] = G(!1), [ee, v] = G(!1), H = t, pe = A(
|
|
363
365
|
(r) => {
|
|
364
366
|
var l, a;
|
|
365
|
-
return
|
|
366
|
-
(N,
|
|
367
|
-
|
|
367
|
+
return R.current = new Promise(
|
|
368
|
+
(N, ye) => {
|
|
369
|
+
b.current = N, p.current = ye;
|
|
368
370
|
}
|
|
369
|
-
), v(!1), L(!0), F(!0),
|
|
371
|
+
), v(!1), L(!0), F(!0), he(), C.current = r, o ? (l = i.current) == null || l.showModal() : (a = i.current) == null || a.show(), R.current;
|
|
370
372
|
},
|
|
371
373
|
[i, o]
|
|
372
|
-
),
|
|
374
|
+
), te = A(
|
|
373
375
|
(r) => {
|
|
374
376
|
var l;
|
|
375
377
|
v(!0), L(!1), h ? setTimeout(() => {
|
|
376
378
|
var a;
|
|
377
|
-
v(!1), F(!1), (a =
|
|
379
|
+
v(!1), F(!1), (a = b.current) == null || a.call(b, r), C.current = void 0, y == null || y();
|
|
378
380
|
}, 300) : (l = i.current) == null || l.addEventListener(
|
|
379
381
|
"animationend",
|
|
380
382
|
() => {
|
|
381
383
|
var a, N;
|
|
382
|
-
v(!1), F(!1), (a = i.current) == null || a.close(), (N =
|
|
384
|
+
v(!1), F(!1), (a = i.current) == null || a.close(), (N = b.current) == null || N.call(b, r), C.current = void 0, y == null || y();
|
|
383
385
|
},
|
|
384
386
|
{ once: !0 }
|
|
385
387
|
);
|
|
386
388
|
},
|
|
387
389
|
[i, y, h]
|
|
388
|
-
),
|
|
390
|
+
), ne = A(() => {
|
|
389
391
|
var r;
|
|
390
392
|
v(!1), L(!1), F(!1), (r = p.current) == null || r.call(p), _ == null || _(), C.current = void 0;
|
|
391
393
|
}, [_]), O = A(
|
|
@@ -404,7 +406,7 @@ function Q(t, {
|
|
|
404
406
|
);
|
|
405
407
|
},
|
|
406
408
|
[i, h, _]
|
|
407
|
-
),
|
|
409
|
+
), oe = A(
|
|
408
410
|
(r) => {
|
|
409
411
|
if (r.target !== i.current)
|
|
410
412
|
return;
|
|
@@ -412,88 +414,101 @@ function Q(t, {
|
|
|
412
414
|
l.top <= r.clientY && r.clientY <= l.top + l.height && l.left <= r.clientX && r.clientX <= l.left + l.width || O();
|
|
413
415
|
},
|
|
414
416
|
[i, O]
|
|
415
|
-
),
|
|
416
|
-
() => ({ resolve:
|
|
417
|
-
[O,
|
|
417
|
+
), P = re(
|
|
418
|
+
() => ({ resolve: te, reject: O }),
|
|
419
|
+
[O, te]
|
|
418
420
|
);
|
|
419
|
-
return [
|
|
420
|
-
() => h ? /* @__PURE__ */ n(
|
|
421
|
+
return [re(
|
|
422
|
+
() => h ? /* @__PURE__ */ n(
|
|
423
|
+
yt,
|
|
424
|
+
{
|
|
425
|
+
isOpen: j,
|
|
426
|
+
onRequestClose: O,
|
|
427
|
+
background: q,
|
|
428
|
+
aria: { modal: !0, labelledby: W, describedby: S },
|
|
429
|
+
children: /* @__PURE__ */ n(J.Provider, { value: P, children: E && /* @__PURE__ */ le(H, { ...C.current, key: T }) })
|
|
430
|
+
}
|
|
431
|
+
) : /* @__PURE__ */ n(
|
|
421
432
|
"dialog",
|
|
422
433
|
{
|
|
423
|
-
onClick:
|
|
424
|
-
onClose:
|
|
434
|
+
onClick: I ? void 0 : oe,
|
|
435
|
+
onClose: ne,
|
|
425
436
|
ref: i,
|
|
426
|
-
className: d(M,
|
|
437
|
+
className: d(M, ee && c),
|
|
438
|
+
"aria-labelledby": W,
|
|
439
|
+
"aria-describedby": S,
|
|
427
440
|
style: { background: q, ...g },
|
|
428
|
-
children: /* @__PURE__ */ n("div", { style: f, className: s, children:
|
|
441
|
+
children: /* @__PURE__ */ n("div", { style: f, className: s, children: E && /* @__PURE__ */ n(J.Provider, { value: P, children: /* @__PURE__ */ le(H, { ...C.current, key: T }) }) })
|
|
429
442
|
}
|
|
430
443
|
),
|
|
431
444
|
[
|
|
432
445
|
h,
|
|
433
|
-
|
|
446
|
+
j,
|
|
434
447
|
O,
|
|
435
448
|
q,
|
|
436
|
-
|
|
449
|
+
W,
|
|
437
450
|
S,
|
|
451
|
+
P,
|
|
452
|
+
E,
|
|
453
|
+
H,
|
|
438
454
|
T,
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
ee,
|
|
455
|
+
I,
|
|
456
|
+
oe,
|
|
457
|
+
ne,
|
|
443
458
|
i,
|
|
444
459
|
M,
|
|
445
|
-
|
|
460
|
+
ee,
|
|
446
461
|
c,
|
|
447
462
|
g,
|
|
448
463
|
f,
|
|
449
464
|
s
|
|
450
465
|
]
|
|
451
|
-
), { show:
|
|
466
|
+
), { show: pe, reject: O }];
|
|
452
467
|
}
|
|
453
|
-
const
|
|
454
|
-
const t =
|
|
468
|
+
const vn = () => {
|
|
469
|
+
const t = we(J);
|
|
455
470
|
if (t == null)
|
|
456
471
|
throw new Error("useDialogPromise is being used outside of dialog.");
|
|
457
472
|
return t;
|
|
458
|
-
},
|
|
459
|
-
alertDialog:
|
|
473
|
+
}, It = "_alertDialog_14t8t_1", bt = "_slideIn_14t8t_1", Ot = "_closing_14t8t_22", Nt = "_slideOut_14t8t_1", $t = "_fadeIn_14t8t_1", Ft = "_fadeOut_14t8t_1", X = {
|
|
474
|
+
alertDialog: It,
|
|
460
475
|
slideIn: bt,
|
|
461
|
-
closing:
|
|
462
|
-
slideOut:
|
|
463
|
-
fadeIn:
|
|
464
|
-
fadeOut:
|
|
476
|
+
closing: Ot,
|
|
477
|
+
slideOut: Nt,
|
|
478
|
+
fadeIn: $t,
|
|
479
|
+
fadeOut: Ft
|
|
465
480
|
};
|
|
466
|
-
function
|
|
467
|
-
return
|
|
481
|
+
function wn(t, e) {
|
|
482
|
+
return Z(t, {
|
|
468
483
|
...e,
|
|
469
484
|
modal: !0,
|
|
470
|
-
closingClassName: d(e == null ? void 0 : e.closingClassName,
|
|
485
|
+
closingClassName: d(e == null ? void 0 : e.closingClassName, X.closing),
|
|
471
486
|
contentWrapperClassName: d(
|
|
472
487
|
e == null ? void 0 : e.contentWrapperClassName,
|
|
473
|
-
|
|
488
|
+
X.contentWrapper
|
|
474
489
|
),
|
|
475
|
-
className: d(e == null ? void 0 : e.className,
|
|
490
|
+
className: d(e == null ? void 0 : e.className, X.alertDialog)
|
|
476
491
|
});
|
|
477
492
|
}
|
|
478
|
-
const
|
|
479
|
-
drawerDialog:
|
|
480
|
-
left:
|
|
481
|
-
right:
|
|
482
|
-
contentWrapper:
|
|
483
|
-
slideInLeft:
|
|
484
|
-
closing:
|
|
485
|
-
slideOutLeft:
|
|
486
|
-
slideInRight:
|
|
487
|
-
slideOutRight:
|
|
488
|
-
top:
|
|
489
|
-
bottom:
|
|
490
|
-
slideInTop:
|
|
491
|
-
slideOutTop:
|
|
492
|
-
slideInBottom:
|
|
493
|
-
slideOutBottom:
|
|
493
|
+
const kt = "_drawerDialog_11g6r_1", Dt = "_left_11g6r_13", xt = "_right_11g6r_14", Bt = "_contentWrapper_11g6r_19", At = "_slideInLeft_11g6r_1", qt = "_closing_11g6r_36", Lt = "_slideOutLeft_11g6r_1", zt = "_slideInRight_11g6r_1", Mt = "_slideOutRight_11g6r_1", Wt = "_top_11g6r_54", St = "_bottom_11g6r_55", Tt = "_slideInTop_11g6r_1", Et = "_slideOutTop_11g6r_1", Ht = "_slideInBottom_11g6r_1", Pt = "_slideOutBottom_11g6r_1", z = {
|
|
494
|
+
drawerDialog: kt,
|
|
495
|
+
left: Dt,
|
|
496
|
+
right: xt,
|
|
497
|
+
contentWrapper: Bt,
|
|
498
|
+
slideInLeft: At,
|
|
499
|
+
closing: qt,
|
|
500
|
+
slideOutLeft: Lt,
|
|
501
|
+
slideInRight: zt,
|
|
502
|
+
slideOutRight: Mt,
|
|
503
|
+
top: Wt,
|
|
504
|
+
bottom: St,
|
|
505
|
+
slideInTop: Tt,
|
|
506
|
+
slideOutTop: Et,
|
|
507
|
+
slideInBottom: Ht,
|
|
508
|
+
slideOutBottom: Pt
|
|
494
509
|
};
|
|
495
|
-
function
|
|
496
|
-
return
|
|
510
|
+
function In(t, e = "left", o) {
|
|
511
|
+
return Z(t, {
|
|
497
512
|
...o,
|
|
498
513
|
disableCloseOnClickOutside: !0,
|
|
499
514
|
modal: !1,
|
|
@@ -505,43 +520,43 @@ function vn(t, e = "left", o) {
|
|
|
505
520
|
className: d(o == null ? void 0 : o.className, z.drawerDialog, z[e])
|
|
506
521
|
});
|
|
507
522
|
}
|
|
508
|
-
const
|
|
509
|
-
modalDialog:
|
|
510
|
-
slideIn:
|
|
511
|
-
closing:
|
|
512
|
-
slideOut:
|
|
513
|
-
fadeIn:
|
|
514
|
-
fadeOut:
|
|
515
|
-
contentWrapper:
|
|
523
|
+
const Gt = "_modalDialog_1teni_1", Vt = "_slideIn_1teni_1", Xt = "_closing_1teni_36", Yt = "_slideOut_1teni_1", Jt = "_fadeIn_1teni_1", Kt = "_fadeOut_1teni_1", Qt = "_contentWrapper_1teni_100", Y = {
|
|
524
|
+
modalDialog: Gt,
|
|
525
|
+
slideIn: Vt,
|
|
526
|
+
closing: Xt,
|
|
527
|
+
slideOut: Yt,
|
|
528
|
+
fadeIn: Jt,
|
|
529
|
+
fadeOut: Kt,
|
|
530
|
+
contentWrapper: Qt
|
|
516
531
|
};
|
|
517
532
|
function bn(t, e) {
|
|
518
|
-
return
|
|
533
|
+
return Z(t, {
|
|
519
534
|
...e,
|
|
520
535
|
modal: !0,
|
|
521
|
-
closingClassName: d(e == null ? void 0 : e.closingClassName,
|
|
536
|
+
closingClassName: d(e == null ? void 0 : e.closingClassName, Y.closing),
|
|
522
537
|
contentWrapperClassName: d(
|
|
523
538
|
e == null ? void 0 : e.contentWrapperClassName,
|
|
524
|
-
|
|
539
|
+
Y.contentWrapper
|
|
525
540
|
),
|
|
526
|
-
className: d(e == null ? void 0 : e.className,
|
|
541
|
+
className: d(e == null ? void 0 : e.className, Y.modalDialog)
|
|
527
542
|
});
|
|
528
543
|
}
|
|
529
|
-
const
|
|
544
|
+
const fe = ({
|
|
530
545
|
headingLevel: t = "h2",
|
|
531
546
|
size: e = "medium",
|
|
532
547
|
children: o
|
|
533
|
-
}) => /* @__PURE__ */ n(
|
|
534
|
-
modalActionButtons:
|
|
535
|
-
},
|
|
548
|
+
}) => /* @__PURE__ */ n(Q, { variant: e === "medium" ? "h3" : "h1", as: t, children: o }), Ut = "_modalActionButtons_s27nj_1", Zt = {
|
|
549
|
+
modalActionButtons: Ut
|
|
550
|
+
}, Rt = ({
|
|
536
551
|
buttons: t
|
|
537
552
|
}) => /* @__PURE__ */ u(x, { width: "100%", children: [
|
|
538
|
-
/* @__PURE__ */ n(
|
|
539
|
-
/* @__PURE__ */ n("div", { className:
|
|
540
|
-
] }),
|
|
553
|
+
/* @__PURE__ */ n(K, {}),
|
|
554
|
+
/* @__PURE__ */ n("div", { className: Zt.modalActionButtons, children: t })
|
|
555
|
+
] }), jt = ({ gap: t = 3, ...e }) => /* @__PURE__ */ n(x, { indent: 3, spacing: 3, gap: t, ...e }), en = ({
|
|
541
556
|
children: t,
|
|
542
557
|
maxWidth: e
|
|
543
558
|
}) => /* @__PURE__ */ n(
|
|
544
|
-
|
|
559
|
+
U,
|
|
545
560
|
{
|
|
546
561
|
flex: 1,
|
|
547
562
|
height: "100%",
|
|
@@ -549,7 +564,7 @@ const me = ({
|
|
|
549
564
|
maxWidth: e,
|
|
550
565
|
children: t
|
|
551
566
|
}
|
|
552
|
-
),
|
|
567
|
+
), On = ({
|
|
553
568
|
icon: t,
|
|
554
569
|
buttons: e,
|
|
555
570
|
heading: o,
|
|
@@ -557,70 +572,70 @@ const me = ({
|
|
|
557
572
|
children: c,
|
|
558
573
|
maxWidth: f,
|
|
559
574
|
minWidth: g
|
|
560
|
-
}) => /* @__PURE__ */ n(
|
|
561
|
-
|
|
575
|
+
}) => /* @__PURE__ */ n(en, { children: /* @__PURE__ */ u(
|
|
576
|
+
jt,
|
|
562
577
|
{
|
|
563
578
|
flexDirection: "column",
|
|
564
579
|
alignItems: "center",
|
|
565
580
|
maxWidth: f,
|
|
566
581
|
minWidth: g,
|
|
567
582
|
children: [
|
|
568
|
-
t && /* @__PURE__ */ n(
|
|
569
|
-
/* @__PURE__ */ n(
|
|
570
|
-
s && /* @__PURE__ */ n(
|
|
583
|
+
t && /* @__PURE__ */ n(xe, { icon: t, size: "large" }),
|
|
584
|
+
/* @__PURE__ */ n(fe, { children: o }),
|
|
585
|
+
s && /* @__PURE__ */ n($e, { textAlign: "center", children: s }),
|
|
571
586
|
c,
|
|
572
|
-
e && /* @__PURE__ */ n(
|
|
587
|
+
e && /* @__PURE__ */ n(Rt, { buttons: e })
|
|
573
588
|
]
|
|
574
589
|
}
|
|
575
|
-
) }),
|
|
590
|
+
) }), Nn = ({
|
|
576
591
|
heading: t,
|
|
577
592
|
headingLevel: e,
|
|
578
593
|
headingSize: o,
|
|
579
594
|
onClickClose: s
|
|
580
|
-
}) => /* @__PURE__ */ u(
|
|
581
|
-
t && /* @__PURE__ */ n(
|
|
582
|
-
/* @__PURE__ */ n(
|
|
583
|
-
] }),
|
|
584
|
-
modalFooter:
|
|
585
|
-
sticky:
|
|
586
|
-
},
|
|
595
|
+
}) => /* @__PURE__ */ u(w, { justifyContent: "space-between", children: [
|
|
596
|
+
t && /* @__PURE__ */ n(fe, { headingLevel: e, size: o, children: t }),
|
|
597
|
+
/* @__PURE__ */ n(_e, { onClick: s })
|
|
598
|
+
] }), tn = "_modalFooter_112wr_1", nn = "_sticky_112wr_10", ie = {
|
|
599
|
+
modalFooter: tn,
|
|
600
|
+
sticky: nn
|
|
601
|
+
}, $n = ({
|
|
587
602
|
children: t,
|
|
588
603
|
sticky: e,
|
|
589
604
|
zIndex: o = 4
|
|
590
605
|
}) => /* @__PURE__ */ n(
|
|
591
|
-
|
|
606
|
+
w,
|
|
592
607
|
{
|
|
593
|
-
className: d(
|
|
608
|
+
className: d(ie.modalFooter, e && ie.sticky),
|
|
594
609
|
shadow: "var(--swui-sticky-footer-shadow)",
|
|
595
610
|
zIndex: o,
|
|
596
611
|
children: t
|
|
597
612
|
}
|
|
598
613
|
);
|
|
599
614
|
export {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
615
|
+
hn as Alert,
|
|
616
|
+
Ee as BaseWindow,
|
|
617
|
+
ue as DRAGGABLE_CANCEL_CLASSNAME,
|
|
618
|
+
me as DRAGGABLE_HANDLE_CLASSNAME,
|
|
619
|
+
J as DialogContext,
|
|
620
|
+
fn as Drawer,
|
|
621
|
+
gn as DrawerHeader,
|
|
622
|
+
On as InfoAlert,
|
|
623
|
+
pn as LoadingModal,
|
|
624
|
+
yt as Modal,
|
|
625
|
+
Rt as ModalActionButtons,
|
|
626
|
+
jt as ModalBody,
|
|
627
|
+
en as ModalContainer,
|
|
628
|
+
$n as ModalFooter,
|
|
629
|
+
Nn as ModalHeader,
|
|
630
|
+
fe as ModalHeading,
|
|
631
|
+
yn as Window,
|
|
632
|
+
Cn as WindowFooter,
|
|
633
|
+
wt as WindowHeader,
|
|
634
|
+
un as setupDeclarativeModals,
|
|
635
|
+
wn as useAlertDialog,
|
|
636
|
+
Z as useDialog,
|
|
637
|
+
vn as useDialogPromise,
|
|
638
|
+
In as useDrawerDialog,
|
|
624
639
|
bn as useModalDialog
|
|
625
640
|
};
|
|
626
641
|
//# sourceMappingURL=index.es.js.map
|