@stenajs-webui/modal 20.6.0 → 20.6.2
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 +1 -0
- package/dist/index.es.js +256 -256
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
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:-webkit-sticky;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:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_r9tkq_96{position:static;box-shadow:none}}._overlay_1rolx_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_1rolx_1 var(--swui-modal-animation-time) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_1rolx_1{background-color:#fff}}._overlay_1rolx_1 ._modal_1rolx_31{max-width:100%;outline:none;pointer-events:none}@media (max-width: 768px){._overlay_1rolx_1 ._modal_1rolx_31{width:100%}}._overlay_1rolx_1 ._content_1rolx_41{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)}@media (max-width: 768px){._overlay_1rolx_1 ._content_1rolx_41{border-radius:0;width:100%;max-width:100%;height:100vh}}._overlay_1rolx_1 ._content_1rolx_41{animation:_appear_1rolx_1 var(--swui-animation-time-fast) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_1rolx_1 ._content_1rolx_41{box-shadow:none;top:0}}._overlay_1rolx_1 ._content_1rolx_41 :focus{outline:0}._overlay_1rolx_1 ._content_1rolx_41._isDraggable_1rolx_71 .draggable-modal-handle{cursor:move}._overlay_1rolx_1 ._content_1rolx_41._isDraggable_1rolx_71 .draggable-modal-handle .draggable-modal-cancel,._overlay_1rolx_1 ._content_1rolx_41._isDraggable_1rolx_71 .draggable-modal-handle [role=tooltip]{cursor:initial}@keyframes _fadeIn_1rolx_1{0%{background-color:var(--swui-hidden)}to{background-color:var(--swui-modal-overlay-bg-color)}}@keyframes _appear_1rolx_1{0%{opacity:0}to{opacity:1}}._footer_1rolx_102{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_1rolx_106{position:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_1rolx_106{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_3e8xf_1{max-height:100%;max-width:100%;border:0;outline:0;margin:0;padding:0;overscroll-behavior:contain;box-shadow:#0003 0 0 10px 4px;position:fixed}._drawerDialog_3e8xf_1._left_3e8xf_12,._drawerDialog_3e8xf_1._right_3e8xf_13{height:100%;top:0;bottom:0}._drawerDialog_3e8xf_1._left_3e8xf_12 ._contentWrapper_3e8xf_18,._drawerDialog_3e8xf_1._right_3e8xf_13 ._contentWrapper_3e8xf_18{height:100%}@media (max-width: 768px){._drawerDialog_3e8xf_1._left_3e8xf_12,._drawerDialog_3e8xf_1._right_3e8xf_13{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}}._drawerDialog_3e8xf_1._left_3e8xf_12{left:0;right:unset}._drawerDialog_3e8xf_1._left_3e8xf_12[open]{animation:_slideInLeft_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1._left_3e8xf_12._closing_3e8xf_35[open]{animation:_slideOutLeft_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1._right_3e8xf_13{left:unset;right:0}._drawerDialog_3e8xf_1._right_3e8xf_13[open]{animation:_slideInRight_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1._right_3e8xf_13._closing_3e8xf_35[open]{animation:_slideOutRight_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1._top_3e8xf_53,._drawerDialog_3e8xf_1._bottom_3e8xf_54{width:100%;left:0;right:0}@media (max-width: 768px){._drawerDialog_3e8xf_1._top_3e8xf_53,._drawerDialog_3e8xf_1._bottom_3e8xf_54{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}}._drawerDialog_3e8xf_1._top_3e8xf_53{top:0;bottom:unset}._drawerDialog_3e8xf_1._top_3e8xf_53[open]{animation:_slideInTop_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1._top_3e8xf_53._closing_3e8xf_35[open]{animation:_slideOutTop_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1._bottom_3e8xf_54{top:unset;bottom:0}._drawerDialog_3e8xf_1._bottom_3e8xf_54[open]{animation:_slideInBottom_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1._bottom_3e8xf_54._closing_3e8xf_35[open]{animation:_slideOutBottom_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1[open]{opacity:1;pointer-events:auto}@keyframes _slideInLeft_3e8xf_1{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _slideOutLeft_3e8xf_1{0%{transform:translate(0);opacity:0}to{transform:translate(-100%);opacity:1}}@keyframes _slideInTop_3e8xf_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOutTop_3e8xf_1{0%{transform:translateY(0);opacity:0}to{transform:translateY(-100%);opacity:1}}@keyframes _slideInRight_3e8xf_1{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _slideOutRight_3e8xf_1{0%{transform:translate(0);opacity:0}to{transform:translate(100%);opacity:1}}@keyframes _slideInBottom_3e8xf_1{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOutBottom_3e8xf_1{0%{transform:translateY(0);opacity:0}to{transform:translateY(100%);opacity:1}}._modalDialog_1czrs_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_1czrs_1{border-radius:var(--swui-border-radius-large)}}._modalDialog_1czrs_1:not([open]){display:none}._modalDialog_1czrs_1[open]{opacity:1;pointer-events:auto;animation:_slideIn_1czrs_1 .25s forwards}._modalDialog_1czrs_1._closing_1czrs_25[open]{animation:_slideOut_1czrs_1 .25s forwards}@media (max-width: 768px){._modalDialog_1czrs_1{margin:0;width:100%;max-width:100%;height:100%;max-height:100%}}._modalDialog_1czrs_1::backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0d0e1080;animation:_fadeIn_1czrs_1 .25s forwards}._modalDialog_1czrs_1._closing_1czrs_25::backdrop{animation:_fadeOut_1czrs_1 .25s forwards}@keyframes _fadeIn_1czrs_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1czrs_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_1czrs_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_1czrs_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}._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}}")),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import
|
|
3
|
-
import { jsx as l, jsxs as s, Fragment as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { exhaustSwitchCase as ee, Spacing as
|
|
7
|
-
import { Icon as
|
|
8
|
-
import { cssColor as
|
|
9
|
-
import { createContext as
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
}, ue = "_overlay_5x3op_1", fe = "_fadeIn_5x3op_1", ge = "_modal_5x3op_31", he = "_content_5x3op_41", ye = "_appear_5x3op_1", Ce = "_isDraggable_5x3op_70",
|
|
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:-webkit-sticky;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:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_r9tkq_96{position:static;box-shadow:none}}._overlay_1rolx_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_1rolx_1 var(--swui-modal-animation-time) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_1rolx_1{background-color:#fff}}._overlay_1rolx_1 ._modal_1rolx_31{max-width:100%;outline:none;pointer-events:none}@media (max-width: 768px){._overlay_1rolx_1 ._modal_1rolx_31{width:100%}}._overlay_1rolx_1 ._content_1rolx_41{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)}@media (max-width: 768px){._overlay_1rolx_1 ._content_1rolx_41{border-radius:0;width:100%;max-width:100%;height:100vh}}._overlay_1rolx_1 ._content_1rolx_41{animation:_appear_1rolx_1 var(--swui-animation-time-fast) cubic-bezier(.645,.045,.355,1) both}@media print{._overlay_1rolx_1 ._content_1rolx_41{box-shadow:none;top:0}}._overlay_1rolx_1 ._content_1rolx_41 :focus{outline:0}._overlay_1rolx_1 ._content_1rolx_41._isDraggable_1rolx_71 .draggable-modal-handle{cursor:move}._overlay_1rolx_1 ._content_1rolx_41._isDraggable_1rolx_71 .draggable-modal-handle .draggable-modal-cancel,._overlay_1rolx_1 ._content_1rolx_41._isDraggable_1rolx_71 .draggable-modal-handle [role=tooltip]{cursor:initial}@keyframes _fadeIn_1rolx_1{0%{background-color:var(--swui-hidden)}to{background-color:var(--swui-modal-overlay-bg-color)}}@keyframes _appear_1rolx_1{0%{opacity:0}to{opacity:1}}._footer_1rolx_102{background-color:var(--swui-modal-content-bg-color)}._stickyFooter_1rolx_106{position:-webkit-sticky;position:sticky;bottom:0;box-shadow:var(--swui-modal-footer-shadow)}@media print{._stickyFooter_1rolx_106{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_3e8xf_1{max-height:100%;max-width:100%;border:0;outline:0;margin:0;padding:0;overscroll-behavior:contain;box-shadow:#0003 0 0 10px 4px;position:fixed}._drawerDialog_3e8xf_1._left_3e8xf_12,._drawerDialog_3e8xf_1._right_3e8xf_13{height:100%;top:0;bottom:0}._drawerDialog_3e8xf_1._left_3e8xf_12 ._contentWrapper_3e8xf_18,._drawerDialog_3e8xf_1._right_3e8xf_13 ._contentWrapper_3e8xf_18{height:100%}@media (max-width: 768px){._drawerDialog_3e8xf_1._left_3e8xf_12,._drawerDialog_3e8xf_1._right_3e8xf_13{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}}._drawerDialog_3e8xf_1._left_3e8xf_12{left:0;right:unset}._drawerDialog_3e8xf_1._left_3e8xf_12[open]{animation:_slideInLeft_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1._left_3e8xf_12._closing_3e8xf_35[open]{animation:_slideOutLeft_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1._right_3e8xf_13{left:unset;right:0}._drawerDialog_3e8xf_1._right_3e8xf_13[open]{animation:_slideInRight_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1._right_3e8xf_13._closing_3e8xf_35[open]{animation:_slideOutRight_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1._top_3e8xf_53,._drawerDialog_3e8xf_1._bottom_3e8xf_54{width:100%;left:0;right:0}@media (max-width: 768px){._drawerDialog_3e8xf_1._top_3e8xf_53,._drawerDialog_3e8xf_1._bottom_3e8xf_54{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}}._drawerDialog_3e8xf_1._top_3e8xf_53{top:0;bottom:unset}._drawerDialog_3e8xf_1._top_3e8xf_53[open]{animation:_slideInTop_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1._top_3e8xf_53._closing_3e8xf_35[open]{animation:_slideOutTop_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1._bottom_3e8xf_54{top:unset;bottom:0}._drawerDialog_3e8xf_1._bottom_3e8xf_54[open]{animation:_slideInBottom_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1._bottom_3e8xf_54._closing_3e8xf_35[open]{animation:_slideOutBottom_3e8xf_1 .25s forwards}._drawerDialog_3e8xf_1[open]{opacity:1;pointer-events:auto}@keyframes _slideInLeft_3e8xf_1{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _slideOutLeft_3e8xf_1{0%{transform:translate(0);opacity:0}to{transform:translate(-100%);opacity:1}}@keyframes _slideInTop_3e8xf_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOutTop_3e8xf_1{0%{transform:translateY(0);opacity:0}to{transform:translateY(-100%);opacity:1}}@keyframes _slideInRight_3e8xf_1{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes _slideOutRight_3e8xf_1{0%{transform:translate(0);opacity:0}to{transform:translate(100%);opacity:1}}@keyframes _slideInBottom_3e8xf_1{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOutBottom_3e8xf_1{0%{transform:translateY(0);opacity:0}to{transform:translateY(100%);opacity:1}}._modalDialog_6jugu_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_6jugu_1{border-radius:var(--swui-border-radius-large)}}._modalDialog_6jugu_1:not([open]){display:none}._modalDialog_6jugu_1[open]{opacity:1;pointer-events:auto;animation:_slideIn_6jugu_1 .25s forwards}._modalDialog_6jugu_1._closing_6jugu_25[open]{animation:_slideOut_6jugu_1 .25s forwards}@media (max-width: 768px){._modalDialog_6jugu_1{margin:0;width:100%;max-width:100%;height:100%;max-height:100%}}._modalDialog_6jugu_1::backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0d0e1080;animation:_fadeIn_6jugu_1 .25s forwards}._modalDialog_6jugu_1._closing_6jugu_25::backdrop{animation:_fadeOut_6jugu_1 .25s forwards}@keyframes _fadeIn_6jugu_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_6jugu_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_6jugu_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOut_6jugu_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}@media (max-width: 768px){._contentWrapper_6jugu_89{display:flex;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}}")),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
import x from "react-modal";
|
|
3
|
+
import { jsx as l, jsxs as s, Fragment as k } from "react/jsx-runtime";
|
|
4
|
+
import Z from "react-draggable";
|
|
5
|
+
import c from "classnames";
|
|
6
|
+
import { exhaustSwitchCase as ee, Spacing as j, Row as C, Space as T, Heading as z, Column as G, Box as N, Indent as te, Txt as le, Text as ne } from "@stenajs-webui/core";
|
|
7
|
+
import { Icon as V, FlatButton as ae, stenaTimes as oe, Spinner as re, CloseButton as J, CircledIcon as se } from "@stenajs-webui/elements";
|
|
8
|
+
import { cssColor as ce } from "@stenajs-webui/theme";
|
|
9
|
+
import { createContext as ie, useRef as O, useReducer as de, useState as q, useCallback as W, useMemo as _e, createElement as H, useContext as me } from "react";
|
|
10
|
+
const Tt = (t) => {
|
|
11
|
+
x.setAppElement(t);
|
|
12
|
+
}, ue = "_overlay_5x3op_1", fe = "_fadeIn_5x3op_1", ge = "_modal_5x3op_31", he = "_content_5x3op_41", ye = "_appear_5x3op_1", Ce = "_isDraggable_5x3op_70", pe = "_footer_5x3op_101", ve = "_stickyFooter_5x3op_105", v = {
|
|
13
13
|
overlay: ue,
|
|
14
14
|
fadeIn: fe,
|
|
15
15
|
modal: ge,
|
|
16
16
|
content: he,
|
|
17
17
|
appear: ye,
|
|
18
18
|
isDraggable: Ce,
|
|
19
|
-
footer:
|
|
20
|
-
stickyFooter:
|
|
21
|
-
},
|
|
19
|
+
footer: pe,
|
|
20
|
+
stickyFooter: ve
|
|
21
|
+
}, K = "draggable-modal-handle", Q = "draggable-modal-cancel", Ne = ({
|
|
22
22
|
width: t,
|
|
23
23
|
maxWidth: e,
|
|
24
|
-
draggable:
|
|
25
|
-
children:
|
|
26
|
-
...
|
|
24
|
+
draggable: n = !1,
|
|
25
|
+
children: a,
|
|
26
|
+
...o
|
|
27
27
|
}) => /* @__PURE__ */ l(
|
|
28
|
-
|
|
28
|
+
x,
|
|
29
29
|
{
|
|
30
|
-
overlayClassName:
|
|
31
|
-
className:
|
|
32
|
-
...
|
|
30
|
+
overlayClassName: v.overlay,
|
|
31
|
+
className: v.modal,
|
|
32
|
+
...o,
|
|
33
33
|
children: /* @__PURE__ */ l(
|
|
34
|
-
|
|
34
|
+
Z,
|
|
35
35
|
{
|
|
36
|
-
handle: `.${
|
|
37
|
-
cancel: `.${
|
|
36
|
+
handle: `.${K}`,
|
|
37
|
+
cancel: `.${Q}, button, [role="tooltip"]`,
|
|
38
38
|
bounds: ".ReactModal__Overlay",
|
|
39
|
-
disabled: !
|
|
39
|
+
disabled: !n,
|
|
40
40
|
children: /* @__PURE__ */ l(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
@@ -44,86 +44,86 @@ const jt = (t) => {
|
|
|
44
44
|
"--swui-modal-width": t,
|
|
45
45
|
"--swui-modal-max-width": e
|
|
46
46
|
},
|
|
47
|
-
className:
|
|
48
|
-
[
|
|
47
|
+
className: c(v.content, {
|
|
48
|
+
[v.isDraggable]: n
|
|
49
49
|
}),
|
|
50
|
-
children:
|
|
50
|
+
children: a
|
|
51
51
|
}
|
|
52
52
|
)
|
|
53
53
|
}
|
|
54
54
|
)
|
|
55
55
|
}
|
|
56
|
-
),
|
|
57
|
-
portal:
|
|
58
|
-
overlay:
|
|
59
|
-
content:
|
|
60
|
-
floating:
|
|
61
|
-
slideFromLeft:
|
|
56
|
+
), xe = "_portal_17ze5_1", be = "_overlay_17ze5_4", Ie = "_content_17ze5_9", Oe = "_floating_17ze5_15", we = "_slideFromLeft_17ze5_29", $e = "_slideFromRight_17ze5_30", De = "_afterOpen_17ze5_36", ke = "_beforeClose_17ze5_40", Fe = "_slideFromTop_17ze5_45", Be = "_slideFromBottom_17ze5_46", r = {
|
|
57
|
+
portal: xe,
|
|
58
|
+
overlay: be,
|
|
59
|
+
content: Ie,
|
|
60
|
+
floating: Oe,
|
|
61
|
+
slideFromLeft: we,
|
|
62
62
|
slideFromRight: $e,
|
|
63
|
-
afterOpen:
|
|
64
|
-
beforeClose:
|
|
65
|
-
slideFromTop:
|
|
66
|
-
slideFromBottom:
|
|
63
|
+
afterOpen: De,
|
|
64
|
+
beforeClose: ke,
|
|
65
|
+
slideFromTop: Fe,
|
|
66
|
+
slideFromBottom: Be
|
|
67
67
|
}, qt = ({
|
|
68
68
|
background: t,
|
|
69
69
|
zIndex: e,
|
|
70
|
-
children:
|
|
71
|
-
slideFrom:
|
|
72
|
-
portalTarget:
|
|
70
|
+
children: n,
|
|
71
|
+
slideFrom: a = "left",
|
|
72
|
+
portalTarget: o,
|
|
73
73
|
floating: g,
|
|
74
|
-
...
|
|
74
|
+
...i
|
|
75
75
|
}) => {
|
|
76
|
-
const { height: m, width:
|
|
76
|
+
const { height: m, width: d } = i;
|
|
77
77
|
return /* @__PURE__ */ l(
|
|
78
|
-
|
|
78
|
+
x,
|
|
79
79
|
{
|
|
80
80
|
closeTimeoutMS: 250,
|
|
81
|
-
portalClassName:
|
|
81
|
+
portalClassName: r.portal,
|
|
82
82
|
overlayClassName: {
|
|
83
|
-
base:
|
|
84
|
-
afterOpen:
|
|
85
|
-
beforeClose:
|
|
83
|
+
base: r.overlay,
|
|
84
|
+
afterOpen: r.afterOpen,
|
|
85
|
+
beforeClose: r.beforeClose
|
|
86
86
|
},
|
|
87
87
|
className: {
|
|
88
|
-
base:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
g &&
|
|
88
|
+
base: c(
|
|
89
|
+
r.content,
|
|
90
|
+
We(a),
|
|
91
|
+
g && r.floating
|
|
92
92
|
),
|
|
93
|
-
afterOpen:
|
|
94
|
-
beforeClose:
|
|
93
|
+
afterOpen: r.afterOpen,
|
|
94
|
+
beforeClose: r.beforeClose
|
|
95
95
|
},
|
|
96
|
-
style: { content: { width:
|
|
97
|
-
parentSelector:
|
|
98
|
-
...
|
|
99
|
-
children:
|
|
96
|
+
style: { content: { width: d, height: m, background: t }, overlay: { zIndex: e } },
|
|
97
|
+
parentSelector: o ? () => o : void 0,
|
|
98
|
+
...i,
|
|
99
|
+
children: n
|
|
100
100
|
}
|
|
101
101
|
);
|
|
102
|
-
},
|
|
102
|
+
}, We = (t) => {
|
|
103
103
|
switch (t) {
|
|
104
104
|
case "left":
|
|
105
|
-
return
|
|
105
|
+
return r.slideFromLeft;
|
|
106
106
|
case "right":
|
|
107
|
-
return
|
|
107
|
+
return r.slideFromRight;
|
|
108
108
|
case "top":
|
|
109
|
-
return
|
|
109
|
+
return r.slideFromTop;
|
|
110
110
|
case "bottom":
|
|
111
|
-
return
|
|
111
|
+
return r.slideFromBottom;
|
|
112
112
|
default:
|
|
113
|
-
return ee(t,
|
|
113
|
+
return ee(t, r.slideFromLeft);
|
|
114
114
|
}
|
|
115
115
|
}, Ht = ({
|
|
116
116
|
header: t,
|
|
117
117
|
contentRight: e,
|
|
118
|
-
onRequestClose:
|
|
119
|
-
icon:
|
|
118
|
+
onRequestClose: n,
|
|
119
|
+
icon: a
|
|
120
120
|
}) => /* @__PURE__ */ l(
|
|
121
|
-
|
|
121
|
+
j,
|
|
122
122
|
{
|
|
123
123
|
position: "sticky",
|
|
124
124
|
top: 0,
|
|
125
125
|
zIndex: 100,
|
|
126
|
-
background:
|
|
126
|
+
background: ce("--lhds-color-ui-50"),
|
|
127
127
|
children: /* @__PURE__ */ s(
|
|
128
128
|
C,
|
|
129
129
|
{
|
|
@@ -132,103 +132,103 @@ const jt = (t) => {
|
|
|
132
132
|
height: "48px",
|
|
133
133
|
children: [
|
|
134
134
|
/* @__PURE__ */ s(C, { alignItems: "center", gap: 2, children: [
|
|
135
|
-
/* @__PURE__ */ l(
|
|
136
|
-
|
|
137
|
-
/* @__PURE__ */ l(
|
|
135
|
+
/* @__PURE__ */ l(T, { num: 1 }),
|
|
136
|
+
a && /* @__PURE__ */ l(V, { icon: a, size: 24 }),
|
|
137
|
+
/* @__PURE__ */ l(z, { variant: "h4", children: t })
|
|
138
138
|
] }),
|
|
139
139
|
/* @__PURE__ */ s(C, { gap: 1, children: [
|
|
140
140
|
e,
|
|
141
141
|
/* @__PURE__ */ l(
|
|
142
|
-
|
|
142
|
+
ae,
|
|
143
143
|
{
|
|
144
|
-
leftIcon:
|
|
145
|
-
onClick:
|
|
144
|
+
leftIcon: oe,
|
|
145
|
+
onClick: n,
|
|
146
146
|
variant: "danger"
|
|
147
147
|
}
|
|
148
148
|
),
|
|
149
|
-
/* @__PURE__ */ l(
|
|
149
|
+
/* @__PURE__ */ l(T, { num: 0.5 })
|
|
150
150
|
] })
|
|
151
151
|
]
|
|
152
152
|
}
|
|
153
153
|
)
|
|
154
154
|
}
|
|
155
|
-
),
|
|
156
|
-
overlay:
|
|
157
|
-
fadeIn:
|
|
158
|
-
modal:
|
|
159
|
-
content:
|
|
160
|
-
appear:
|
|
161
|
-
isDraggable:
|
|
162
|
-
footer:
|
|
163
|
-
stickyFooter:
|
|
164
|
-
},
|
|
155
|
+
), Re = "_overlay_r9tkq_1", Ae = "_fadeIn_r9tkq_1", Se = "_modal_r9tkq_31", Le = "_content_r9tkq_38", je = "_appear_r9tkq_1", ze = "_isDraggable_r9tkq_61", Me = "_footer_r9tkq_92", Ee = "_stickyFooter_r9tkq_96", R = {
|
|
156
|
+
overlay: Re,
|
|
157
|
+
fadeIn: Ae,
|
|
158
|
+
modal: Se,
|
|
159
|
+
content: Le,
|
|
160
|
+
appear: je,
|
|
161
|
+
isDraggable: ze,
|
|
162
|
+
footer: Me,
|
|
163
|
+
stickyFooter: Ee
|
|
164
|
+
}, Te = { overlay: { justifyContent: "center" } }, Pt = ({
|
|
165
165
|
children: t,
|
|
166
166
|
...e
|
|
167
167
|
}) => /* @__PURE__ */ l(
|
|
168
|
-
|
|
168
|
+
x,
|
|
169
169
|
{
|
|
170
|
-
overlayClassName:
|
|
171
|
-
className:
|
|
172
|
-
style:
|
|
170
|
+
overlayClassName: R.overlay,
|
|
171
|
+
className: R.modal,
|
|
172
|
+
style: Te,
|
|
173
173
|
...e,
|
|
174
174
|
children: /* @__PURE__ */ l(
|
|
175
175
|
"div",
|
|
176
176
|
{
|
|
177
|
-
className:
|
|
177
|
+
className: R.content,
|
|
178
178
|
style: { "--swui-modal-width": "fit-content" },
|
|
179
179
|
children: t
|
|
180
180
|
}
|
|
181
181
|
)
|
|
182
182
|
}
|
|
183
|
-
),
|
|
184
|
-
overlay:
|
|
185
|
-
fadeIn:
|
|
186
|
-
modal:
|
|
187
|
-
content:
|
|
188
|
-
appear:
|
|
189
|
-
isDraggable:
|
|
190
|
-
footer:
|
|
191
|
-
stickyFooter:
|
|
192
|
-
},
|
|
183
|
+
), qe = "_overlay_1rolx_1", He = "_fadeIn_1rolx_1", Pe = "_modal_1rolx_31", Ge = "_content_1rolx_41", Ve = "_appear_1rolx_1", Je = "_isDraggable_1rolx_71", Ke = "_footer_1rolx_102", Qe = "_stickyFooter_1rolx_106", A = {
|
|
184
|
+
overlay: qe,
|
|
185
|
+
fadeIn: He,
|
|
186
|
+
modal: Pe,
|
|
187
|
+
content: Ge,
|
|
188
|
+
appear: Ve,
|
|
189
|
+
isDraggable: Je,
|
|
190
|
+
footer: Ke,
|
|
191
|
+
stickyFooter: Qe
|
|
192
|
+
}, Ue = { overlay: { justifyContent: "center" } }, Gt = ({
|
|
193
193
|
children: t,
|
|
194
194
|
...e
|
|
195
195
|
}) => /* @__PURE__ */ l(
|
|
196
|
-
|
|
196
|
+
x,
|
|
197
197
|
{
|
|
198
|
-
overlayClassName:
|
|
199
|
-
className:
|
|
200
|
-
style:
|
|
198
|
+
overlayClassName: A.overlay,
|
|
199
|
+
className: A.modal,
|
|
200
|
+
style: Ue,
|
|
201
201
|
...e,
|
|
202
202
|
children: /* @__PURE__ */ l(
|
|
203
203
|
"div",
|
|
204
204
|
{
|
|
205
|
-
className:
|
|
205
|
+
className: A.content,
|
|
206
206
|
style: { "--swui-modal-width": "fit-content" },
|
|
207
207
|
children: t
|
|
208
208
|
}
|
|
209
209
|
)
|
|
210
210
|
}
|
|
211
|
-
),
|
|
212
|
-
modal:
|
|
213
|
-
overlay:
|
|
211
|
+
), Xe = "_modal_4fwgb_1", Ye = "_overlay_4fwgb_13", P = {
|
|
212
|
+
modal: Xe,
|
|
213
|
+
overlay: Ye
|
|
214
214
|
}, Vt = ({
|
|
215
215
|
headerIconLeft: t,
|
|
216
216
|
headerText: e,
|
|
217
|
-
shouldCloseOnOverlayClick:
|
|
218
|
-
shouldCloseOnEsc:
|
|
219
|
-
...
|
|
217
|
+
shouldCloseOnOverlayClick: n = !1,
|
|
218
|
+
shouldCloseOnEsc: a = !1,
|
|
219
|
+
...o
|
|
220
220
|
}) => /* @__PURE__ */ l(
|
|
221
|
-
|
|
221
|
+
x,
|
|
222
222
|
{
|
|
223
|
-
...
|
|
223
|
+
...o,
|
|
224
224
|
isOpen: !0,
|
|
225
|
-
shouldCloseOnOverlayClick:
|
|
226
|
-
shouldCloseOnEsc:
|
|
227
|
-
className:
|
|
228
|
-
overlayClassName:
|
|
229
|
-
children: /* @__PURE__ */ s(
|
|
225
|
+
shouldCloseOnOverlayClick: n,
|
|
226
|
+
shouldCloseOnEsc: a,
|
|
227
|
+
className: P.modal,
|
|
228
|
+
overlayClassName: P.overlay,
|
|
229
|
+
children: /* @__PURE__ */ s(G, { spacing: 2, alignItems: "center", children: [
|
|
230
230
|
/* @__PURE__ */ l(
|
|
231
|
-
|
|
231
|
+
N,
|
|
232
232
|
{
|
|
233
233
|
alignItems: "center",
|
|
234
234
|
justifyContent: "center",
|
|
@@ -237,42 +237,42 @@ const jt = (t) => {
|
|
|
237
237
|
borderRadius: "50%",
|
|
238
238
|
background: "white",
|
|
239
239
|
shadow: "modal",
|
|
240
|
-
children: /* @__PURE__ */ l(
|
|
240
|
+
children: /* @__PURE__ */ l(re, { size: "small" })
|
|
241
241
|
}
|
|
242
242
|
),
|
|
243
|
-
(t || e) && /* @__PURE__ */ s(
|
|
244
|
-
/* @__PURE__ */ l(
|
|
243
|
+
(t || e) && /* @__PURE__ */ s(k, { children: [
|
|
244
|
+
/* @__PURE__ */ l(j, {}),
|
|
245
245
|
/* @__PURE__ */ s(C, { indent: 2, children: [
|
|
246
|
-
t && /* @__PURE__ */ s(
|
|
247
|
-
/* @__PURE__ */ l(
|
|
246
|
+
t && /* @__PURE__ */ s(k, { children: [
|
|
247
|
+
/* @__PURE__ */ l(V, { size: 14, icon: t, color: "white" }),
|
|
248
248
|
/* @__PURE__ */ l(te, {})
|
|
249
249
|
] }),
|
|
250
|
-
e && /* @__PURE__ */ l(
|
|
250
|
+
e && /* @__PURE__ */ l(z, { variant: "h4", color: "white", children: e })
|
|
251
251
|
] })
|
|
252
252
|
] })
|
|
253
253
|
] })
|
|
254
254
|
}
|
|
255
|
-
),
|
|
255
|
+
), Ze = ({
|
|
256
256
|
onRequestClose: t,
|
|
257
257
|
header: e,
|
|
258
|
-
headerText:
|
|
259
|
-
closeButtonClassName:
|
|
258
|
+
headerText: n,
|
|
259
|
+
closeButtonClassName: a
|
|
260
260
|
}) => /* @__PURE__ */ s(
|
|
261
261
|
C,
|
|
262
262
|
{
|
|
263
263
|
spacing: 2,
|
|
264
264
|
indent: 2,
|
|
265
265
|
borderBottom: "1px solid var(--lhds-color-ui-300)",
|
|
266
|
-
className:
|
|
266
|
+
className: K,
|
|
267
267
|
children: [
|
|
268
268
|
/* @__PURE__ */ s(C, { flex: 1, indent: !0, alignItems: "center", children: [
|
|
269
|
-
|
|
269
|
+
n && /* @__PURE__ */ l(le, { className: Q, size: "large", children: n }),
|
|
270
270
|
e
|
|
271
271
|
] }),
|
|
272
|
-
/* @__PURE__ */ l(
|
|
273
|
-
|
|
272
|
+
/* @__PURE__ */ l(N, { alignSelf: "flex-start", children: /* @__PURE__ */ l(
|
|
273
|
+
J,
|
|
274
274
|
{
|
|
275
|
-
className:
|
|
275
|
+
className: a,
|
|
276
276
|
onClick: t
|
|
277
277
|
}
|
|
278
278
|
) })
|
|
@@ -281,153 +281,152 @@ const jt = (t) => {
|
|
|
281
281
|
), Jt = ({
|
|
282
282
|
header: t,
|
|
283
283
|
headerText: e,
|
|
284
|
-
children:
|
|
285
|
-
spacing:
|
|
286
|
-
indent:
|
|
284
|
+
children: n,
|
|
285
|
+
spacing: a,
|
|
286
|
+
indent: o,
|
|
287
287
|
draggable: g = !1,
|
|
288
|
-
onRequestClose:
|
|
288
|
+
onRequestClose: i,
|
|
289
289
|
closeButtonClassName: m,
|
|
290
|
-
footer:
|
|
291
|
-
disableStickyFooter:
|
|
292
|
-
...
|
|
290
|
+
footer: d,
|
|
291
|
+
disableStickyFooter: p = !1,
|
|
292
|
+
...b
|
|
293
293
|
}) => /* @__PURE__ */ s(
|
|
294
|
-
|
|
294
|
+
Ne,
|
|
295
295
|
{
|
|
296
|
-
...
|
|
297
|
-
onRequestClose:
|
|
296
|
+
...b,
|
|
297
|
+
onRequestClose: i,
|
|
298
298
|
draggable: g,
|
|
299
299
|
children: [
|
|
300
300
|
/* @__PURE__ */ l(
|
|
301
|
-
|
|
301
|
+
Ze,
|
|
302
302
|
{
|
|
303
|
-
onRequestClose:
|
|
303
|
+
onRequestClose: i,
|
|
304
304
|
header: t,
|
|
305
305
|
headerText: e,
|
|
306
306
|
closeButtonClassName: m
|
|
307
307
|
}
|
|
308
308
|
),
|
|
309
|
-
/* @__PURE__ */ l(
|
|
310
|
-
|
|
311
|
-
|
|
309
|
+
/* @__PURE__ */ l(N, { spacing: typeof a == "number" ? a : 1, indent: typeof o == "number" ? o : 1, children: n }),
|
|
310
|
+
d && /* @__PURE__ */ l(
|
|
311
|
+
N,
|
|
312
312
|
{
|
|
313
|
-
className:
|
|
314
|
-
[
|
|
313
|
+
className: c(v.footer, {
|
|
314
|
+
[v.stickyFooter]: !p
|
|
315
315
|
}),
|
|
316
|
-
children:
|
|
316
|
+
children: d
|
|
317
317
|
}
|
|
318
318
|
)
|
|
319
319
|
]
|
|
320
320
|
}
|
|
321
|
-
), Kt = ({ children: t }) => /* @__PURE__ */ l(
|
|
321
|
+
), Kt = ({ children: t }) => /* @__PURE__ */ l(G, { indent: 2, spacing: 2, children: t }), U = ie(
|
|
322
322
|
void 0
|
|
323
323
|
);
|
|
324
|
-
function
|
|
325
|
-
const
|
|
326
|
-
(
|
|
324
|
+
function M(t, e) {
|
|
325
|
+
const n = O(null), a = e.ref ?? n, [o, g] = de((_) => _ + 1, 0), i = O(), m = O(), d = O(), p = O(), [b, w] = q(!1), [F, I] = q(!1), B = t, Y = W(
|
|
326
|
+
(_) => {
|
|
327
327
|
var u, f;
|
|
328
|
-
return
|
|
328
|
+
return i.current = new Promise(
|
|
329
329
|
(h, y) => {
|
|
330
|
-
m.current = h,
|
|
330
|
+
m.current = h, p.current = y;
|
|
331
331
|
}
|
|
332
|
-
),
|
|
332
|
+
), I(!1), w(!0), g(), d.current = _, e.modal ? (u = a.current) == null || u.showModal() : (f = a.current) == null || f.show(), i.current;
|
|
333
333
|
},
|
|
334
|
-
[
|
|
335
|
-
),
|
|
336
|
-
(
|
|
334
|
+
[a, e.modal]
|
|
335
|
+
), E = W(
|
|
336
|
+
(_) => {
|
|
337
337
|
var u;
|
|
338
|
-
|
|
338
|
+
I(!0), (u = a.current) == null || u.addEventListener(
|
|
339
339
|
"animationend",
|
|
340
340
|
() => {
|
|
341
341
|
var f, h, y;
|
|
342
|
-
|
|
342
|
+
I(!1), w(!1), (f = a.current) == null || f.close(), (h = m.current) == null || h.call(m, _), d.current = void 0, (y = e.onResolve) == null || y.call(e);
|
|
343
343
|
},
|
|
344
344
|
{ once: !0 }
|
|
345
345
|
);
|
|
346
346
|
},
|
|
347
|
-
[
|
|
348
|
-
), $ =
|
|
349
|
-
(
|
|
347
|
+
[a, e]
|
|
348
|
+
), $ = W(
|
|
349
|
+
(_) => {
|
|
350
350
|
var u;
|
|
351
|
-
|
|
351
|
+
I(!0), (u = a.current) == null || u.addEventListener(
|
|
352
352
|
"animationend",
|
|
353
353
|
() => {
|
|
354
354
|
var f, h, y;
|
|
355
|
-
|
|
355
|
+
I(!1), w(!1), (f = a.current) == null || f.close(), (h = p.current) == null || h.call(p, _), (y = e.onReject) == null || y.call(e), d.current = void 0;
|
|
356
356
|
},
|
|
357
357
|
{ once: !0 }
|
|
358
358
|
);
|
|
359
359
|
},
|
|
360
|
-
[
|
|
360
|
+
[a, e]
|
|
361
361
|
);
|
|
362
|
-
return [
|
|
363
|
-
() => /* @__PURE__ */ l(
|
|
362
|
+
return [_e(
|
|
363
|
+
() => /* @__PURE__ */ l(U.Provider, { value: { resolve: E, reject: $ }, children: /* @__PURE__ */ l(
|
|
364
364
|
"dialog",
|
|
365
365
|
{
|
|
366
|
-
onClick: e
|
|
367
|
-
ref:
|
|
368
|
-
className:
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
),
|
|
372
|
-
style: e == null ? void 0 : e.dialogStyle,
|
|
373
|
-
children: e != null && e.disableCloseOnClickOutside ? /* @__PURE__ */ l(F, { children: I && /* @__PURE__ */ P(z, { ..._.current, key: c }) }) : /* @__PURE__ */ l(
|
|
366
|
+
onClick: e.disableCloseOnClickOutside ? void 0 : () => $(),
|
|
367
|
+
ref: a,
|
|
368
|
+
className: c(e.className, F && e.closingClassName),
|
|
369
|
+
style: e.dialogStyle,
|
|
370
|
+
children: e.disableCloseOnClickOutside ? /* @__PURE__ */ l(k, { children: b && /* @__PURE__ */ H(B, { ...d.current, key: o }) }) : /* @__PURE__ */ l(
|
|
374
371
|
"div",
|
|
375
372
|
{
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
373
|
+
style: e.contentWrapperStyle,
|
|
374
|
+
className: e.contentWrapperClassName,
|
|
375
|
+
onClick: e.disableCloseOnClickOutside ? void 0 : (_) => _.stopPropagation(),
|
|
376
|
+
children: b && /* @__PURE__ */ H(B, { ...d.current, key: o })
|
|
379
377
|
}
|
|
380
378
|
)
|
|
381
379
|
}
|
|
382
380
|
) }),
|
|
383
381
|
[
|
|
384
|
-
|
|
382
|
+
E,
|
|
385
383
|
$,
|
|
386
|
-
e
|
|
387
|
-
e
|
|
388
|
-
e
|
|
389
|
-
e
|
|
390
|
-
e
|
|
391
|
-
|
|
384
|
+
e.disableCloseOnClickOutside,
|
|
385
|
+
e.className,
|
|
386
|
+
e.closingClassName,
|
|
387
|
+
e.dialogStyle,
|
|
388
|
+
e.contentWrapperStyle,
|
|
389
|
+
e.contentWrapperClassName,
|
|
390
|
+
a,
|
|
391
|
+
F,
|
|
392
|
+
b,
|
|
392
393
|
B,
|
|
393
|
-
|
|
394
|
-
z,
|
|
395
|
-
c
|
|
394
|
+
o
|
|
396
395
|
]
|
|
397
|
-
), { show:
|
|
396
|
+
), { show: Y, reject: $ }];
|
|
398
397
|
}
|
|
399
398
|
const Qt = () => {
|
|
400
|
-
const t = me(
|
|
399
|
+
const t = me(U);
|
|
401
400
|
if (t == null)
|
|
402
401
|
throw new Error("useDialogPromise is being used outside of dialog.");
|
|
403
402
|
return t;
|
|
404
|
-
}, et = "_alertDialog_14t8t_1", tt = "_slideIn_14t8t_1", lt = "_closing_14t8t_22",
|
|
403
|
+
}, et = "_alertDialog_14t8t_1", tt = "_slideIn_14t8t_1", lt = "_closing_14t8t_22", nt = "_slideOut_14t8t_1", at = "_fadeIn_14t8t_1", ot = "_fadeOut_14t8t_1", S = {
|
|
405
404
|
alertDialog: et,
|
|
406
405
|
slideIn: tt,
|
|
407
406
|
closing: lt,
|
|
408
|
-
slideOut:
|
|
409
|
-
fadeIn:
|
|
410
|
-
fadeOut:
|
|
407
|
+
slideOut: nt,
|
|
408
|
+
fadeIn: at,
|
|
409
|
+
fadeOut: ot
|
|
411
410
|
};
|
|
412
411
|
function Ut(t, e) {
|
|
413
|
-
return
|
|
412
|
+
return M(t, {
|
|
414
413
|
...e,
|
|
415
414
|
modal: !0,
|
|
416
|
-
closingClassName:
|
|
417
|
-
contentWrapperClassName:
|
|
415
|
+
closingClassName: c(e == null ? void 0 : e.closingClassName, S.closing),
|
|
416
|
+
contentWrapperClassName: c(
|
|
418
417
|
e == null ? void 0 : e.contentWrapperClassName,
|
|
419
|
-
|
|
418
|
+
S.contentWrapper
|
|
420
419
|
),
|
|
421
|
-
className:
|
|
420
|
+
className: c(e == null ? void 0 : e.className, S.alertDialog)
|
|
422
421
|
});
|
|
423
422
|
}
|
|
424
|
-
const
|
|
425
|
-
drawerDialog:
|
|
423
|
+
const rt = "_drawerDialog_3e8xf_1", st = "_left_3e8xf_12", ct = "_right_3e8xf_13", it = "_contentWrapper_3e8xf_18", dt = "_slideInLeft_3e8xf_1", _t = "_closing_3e8xf_35", mt = "_slideOutLeft_3e8xf_1", ut = "_slideInRight_3e8xf_1", ft = "_slideOutRight_3e8xf_1", gt = "_top_3e8xf_53", ht = "_bottom_3e8xf_54", yt = "_slideInTop_3e8xf_1", Ct = "_slideOutTop_3e8xf_1", pt = "_slideInBottom_3e8xf_1", vt = "_slideOutBottom_3e8xf_1", D = {
|
|
424
|
+
drawerDialog: rt,
|
|
426
425
|
left: st,
|
|
427
|
-
right:
|
|
428
|
-
contentWrapper:
|
|
429
|
-
slideInLeft:
|
|
430
|
-
closing:
|
|
426
|
+
right: ct,
|
|
427
|
+
contentWrapper: it,
|
|
428
|
+
slideInLeft: dt,
|
|
429
|
+
closing: _t,
|
|
431
430
|
slideOutLeft: mt,
|
|
432
431
|
slideInRight: ut,
|
|
433
432
|
slideOutRight: ft,
|
|
@@ -435,84 +434,85 @@ const nt = "_drawerDialog_3e8xf_1", st = "_left_3e8xf_12", ot = "_right_3e8xf_13
|
|
|
435
434
|
bottom: ht,
|
|
436
435
|
slideInTop: yt,
|
|
437
436
|
slideOutTop: Ct,
|
|
438
|
-
slideInBottom:
|
|
439
|
-
slideOutBottom:
|
|
437
|
+
slideInBottom: pt,
|
|
438
|
+
slideOutBottom: vt
|
|
440
439
|
};
|
|
441
|
-
function Xt(t, e = "left",
|
|
442
|
-
return
|
|
443
|
-
...
|
|
440
|
+
function Xt(t, e = "left", n) {
|
|
441
|
+
return M(t, {
|
|
442
|
+
...n,
|
|
444
443
|
disableCloseOnClickOutside: !0,
|
|
445
444
|
modal: !1,
|
|
446
|
-
closingClassName:
|
|
447
|
-
contentWrapperClassName:
|
|
448
|
-
|
|
449
|
-
|
|
445
|
+
closingClassName: c(n == null ? void 0 : n.closingClassName, D.closing),
|
|
446
|
+
contentWrapperClassName: c(
|
|
447
|
+
n == null ? void 0 : n.contentWrapperClassName,
|
|
448
|
+
D.contentWrapper
|
|
450
449
|
),
|
|
451
|
-
className:
|
|
450
|
+
className: c(n == null ? void 0 : n.className, D.drawerDialog, D[e])
|
|
452
451
|
});
|
|
453
452
|
}
|
|
454
|
-
const xt = "
|
|
455
|
-
modalDialog:
|
|
456
|
-
slideIn:
|
|
457
|
-
closing:
|
|
458
|
-
slideOut:
|
|
459
|
-
fadeIn:
|
|
460
|
-
fadeOut:
|
|
453
|
+
const Nt = "_modalDialog_6jugu_1", xt = "_slideIn_6jugu_1", bt = "_closing_6jugu_25", It = "_slideOut_6jugu_1", Ot = "_fadeIn_6jugu_1", wt = "_fadeOut_6jugu_1", $t = "_contentWrapper_6jugu_89", L = {
|
|
454
|
+
modalDialog: Nt,
|
|
455
|
+
slideIn: xt,
|
|
456
|
+
closing: bt,
|
|
457
|
+
slideOut: It,
|
|
458
|
+
fadeIn: Ot,
|
|
459
|
+
fadeOut: wt,
|
|
460
|
+
contentWrapper: $t
|
|
461
461
|
};
|
|
462
462
|
function Yt(t, e) {
|
|
463
|
-
return
|
|
463
|
+
return M(t, {
|
|
464
464
|
...e,
|
|
465
465
|
modal: !0,
|
|
466
|
-
closingClassName:
|
|
467
|
-
contentWrapperClassName:
|
|
466
|
+
closingClassName: c(e == null ? void 0 : e.closingClassName, L.closing),
|
|
467
|
+
contentWrapperClassName: c(
|
|
468
468
|
e == null ? void 0 : e.contentWrapperClassName,
|
|
469
|
-
|
|
469
|
+
L.contentWrapper
|
|
470
470
|
),
|
|
471
|
-
className:
|
|
471
|
+
className: c(e == null ? void 0 : e.className, L.modalDialog)
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
|
-
const
|
|
475
|
-
modalActionButtons:
|
|
474
|
+
const X = ({ children: t }) => /* @__PURE__ */ l(z, { variant: "h3", as: "h2", children: t }), Dt = "_modalActionButtons_s27nj_1", kt = {
|
|
475
|
+
modalActionButtons: Dt
|
|
476
476
|
}, Ft = ({
|
|
477
477
|
buttons: t
|
|
478
|
-
}) => /* @__PURE__ */ l("div", { className: kt.modalActionButtons, children: t }), Bt = ({ gap: t = 2, ...e }) => /* @__PURE__ */ l(
|
|
478
|
+
}) => /* @__PURE__ */ l("div", { className: kt.modalActionButtons, children: t }), Bt = ({ gap: t = 2, ...e }) => /* @__PURE__ */ l(N, { indent: 4, spacing: 4, gap: t, ...e }), Zt = ({
|
|
479
479
|
icon: t,
|
|
480
480
|
buttons: e,
|
|
481
|
-
heading:
|
|
482
|
-
text:
|
|
483
|
-
children:
|
|
481
|
+
heading: n,
|
|
482
|
+
text: a,
|
|
483
|
+
children: o,
|
|
484
484
|
maxWidth: g,
|
|
485
|
-
minWidth:
|
|
485
|
+
minWidth: i
|
|
486
486
|
}) => /* @__PURE__ */ s(
|
|
487
487
|
Bt,
|
|
488
488
|
{
|
|
489
489
|
flexDirection: "column",
|
|
490
490
|
alignItems: "center",
|
|
491
491
|
maxWidth: g,
|
|
492
|
-
minWidth:
|
|
492
|
+
minWidth: i,
|
|
493
493
|
children: [
|
|
494
494
|
t && /* @__PURE__ */ l(se, { icon: t, size: "large" }),
|
|
495
|
-
/* @__PURE__ */ l(
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
e && /* @__PURE__ */ l(
|
|
499
|
-
/* @__PURE__ */ l(
|
|
495
|
+
/* @__PURE__ */ l(X, { children: n }),
|
|
496
|
+
a && /* @__PURE__ */ l(ne, { textAlign: "center", children: a }),
|
|
497
|
+
o,
|
|
498
|
+
e && /* @__PURE__ */ l(k, { children: /* @__PURE__ */ s(N, { width: "100%", children: [
|
|
499
|
+
/* @__PURE__ */ l(j, {}),
|
|
500
500
|
/* @__PURE__ */ l(Ft, { buttons: e })
|
|
501
501
|
] }) })
|
|
502
502
|
]
|
|
503
503
|
}
|
|
504
|
-
),
|
|
504
|
+
), el = ({
|
|
505
505
|
heading: t,
|
|
506
506
|
onClickClose: e
|
|
507
507
|
}) => /* @__PURE__ */ s(C, { justifyContent: "space-between", children: [
|
|
508
|
-
t && /* @__PURE__ */ l(
|
|
509
|
-
/* @__PURE__ */ l(
|
|
508
|
+
t && /* @__PURE__ */ l(X, { children: t }),
|
|
509
|
+
/* @__PURE__ */ l(J, { onClick: e })
|
|
510
510
|
] });
|
|
511
511
|
export {
|
|
512
512
|
Pt as Alert,
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
513
|
+
Ne as BaseWindow,
|
|
514
|
+
Q as DRAGGABLE_CANCEL_CLASSNAME,
|
|
515
|
+
K as DRAGGABLE_HANDLE_CLASSNAME,
|
|
516
516
|
qt as Drawer,
|
|
517
517
|
Ht as DrawerHeader,
|
|
518
518
|
Zt as InfoAlert,
|
|
@@ -520,14 +520,14 @@ export {
|
|
|
520
520
|
Gt as Modal,
|
|
521
521
|
Ft as ModalActionButtons,
|
|
522
522
|
Bt as ModalBody,
|
|
523
|
-
|
|
524
|
-
|
|
523
|
+
el as ModalHeader,
|
|
524
|
+
X as ModalHeading,
|
|
525
525
|
Jt as Window,
|
|
526
526
|
Kt as WindowFooter,
|
|
527
|
-
|
|
528
|
-
|
|
527
|
+
Ze as WindowHeader,
|
|
528
|
+
Tt as setupDeclarativeModals,
|
|
529
529
|
Ut as useAlertDialog,
|
|
530
|
-
|
|
530
|
+
M as useDialog,
|
|
531
531
|
Qt as useDialogPromise,
|
|
532
532
|
Xt as useDrawerDialog,
|
|
533
533
|
Yt as useModalDialog
|