@stenajs-webui/modal 21.23.1 → 21.24.1

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