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