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