@midas-ds/components 12.1.1 → 13.0.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/AccordionItem-Bq8nUKg4.cjs +1 -0
- package/{AccordionItem-Dd9VLdsb.js → AccordionItem-D2Y0gJZB.js} +108 -108
- package/CHANGELOG.md +42 -0
- package/InfoBanner-C82hcpzj.cjs +1 -0
- package/InfoBanner-Dz_0wVSa.js +83 -0
- package/{Layout-CcXu63hP.js → Layout-B-A-s7B0.js} +39 -39
- package/{Layout-Bxd0-ao3.cjs → Layout-DlE30BHE.cjs} +2 -2
- package/TabList-3fErCDyP.cjs +1 -0
- package/{TabList-C0mZgIzV.js → TabList-CXaxruLg.js} +36 -36
- package/{Table-DzbfeVO7.js → Table-BzJktg2G.js} +1 -1
- package/{Table-BHY1uCZ0.cjs → Table-Dyqa6_rE.cjs} +1 -1
- package/{TextArea-DJCtwrqV.cjs → TextArea-BTmzOUZd.cjs} +1 -1
- package/{TextArea-CDoLq124.js → TextArea-CSNrZCEO.js} +19 -20
- package/{Toast-DZnQTLDr.js → Toast-B74PMVL9.js} +36 -36
- package/{Toast-BN3vRCsH.cjs → Toast-Cs0CEbRr.cjs} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/InfoBanner.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/default.css +1 -0
- package/index.cjs +1 -1
- package/index.js +143 -144
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/package.json +4 -14
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/textfield/TextArea.d.ts +2 -7
- package/textfield/TextField.d.ts +2 -6
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/variables-B3KEYyhW.cjs +1 -0
- package/variables-DzXcMW2k.js +5 -0
- package/AccordionItem-CV9Hrare.cjs +0 -1
- package/InfoBanner-CgmPdsH8.js +0 -83
- package/InfoBanner-Y-f3hKVR.cjs +0 -1
- package/TabList-BMyKYLlY.cjs +0 -1
- package/assets/global.css +0 -1
- package/assets/theme.css +0 -1
- package/assets/variables.css +0 -1
- package/theme/generated-object.d.ts +0 -381
- package/theme/generated-tokens.d.ts +0 -331
- package/theme/index.cjs +0 -1
- package/theme/index.d.ts +0 -267
- package/theme/index.js +0 -3991
- package/theme/tokens.d.ts +0 -290
- package/tokens-B3FfJ-rY.cjs +0 -1
- package/tokens-B9ooUP4g.js +0 -327
|
@@ -17,8 +17,8 @@ const w = n.forwardRef((e, t) => {
|
|
|
17
17
|
label: s,
|
|
18
18
|
description: o,
|
|
19
19
|
errorMessage: a,
|
|
20
|
-
showCounter:
|
|
21
|
-
errorPosition:
|
|
20
|
+
showCounter: i,
|
|
21
|
+
errorPosition: c = "top",
|
|
22
22
|
size: x = "large",
|
|
23
23
|
popover: b,
|
|
24
24
|
children: u
|
|
@@ -33,10 +33,10 @@ const w = n.forwardRef((e, t) => {
|
|
|
33
33
|
children: [
|
|
34
34
|
/* @__PURE__ */ r(y, { popover: b, children: s && /* @__PURE__ */ r(B, { children: s }) }),
|
|
35
35
|
o && /* @__PURE__ */ r($, { slot: "description", children: o }),
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
i && /* @__PURE__ */ r(L, { isLonely: !o }),
|
|
37
|
+
c === "top" && /* @__PURE__ */ r(p, { "data-testid": "fieldError", children: a }),
|
|
38
38
|
u,
|
|
39
|
-
|
|
39
|
+
c === "bottom" && /* @__PURE__ */ r(
|
|
40
40
|
p,
|
|
41
41
|
{
|
|
42
42
|
"data-testid": "fieldError",
|
|
@@ -53,7 +53,7 @@ const w = n.forwardRef((e, t) => {
|
|
|
53
53
|
}, j = n.forwardRef(
|
|
54
54
|
(e, t) => {
|
|
55
55
|
[e, t] = l(e, t, h);
|
|
56
|
-
const [s, o] = n.useState(!1), a = () => o((
|
|
56
|
+
const [s, o] = n.useState(!1), a = () => o((c) => !c), i = g(S);
|
|
57
57
|
return /* @__PURE__ */ m(N, { children: [
|
|
58
58
|
s && /* @__PURE__ */ r(
|
|
59
59
|
$,
|
|
@@ -69,7 +69,7 @@ const w = n.forwardRef((e, t) => {
|
|
|
69
69
|
variant: "tertiary",
|
|
70
70
|
onPress: a,
|
|
71
71
|
className: d.passwordButton,
|
|
72
|
-
children: s ?
|
|
72
|
+
children: s ? i.format("hide") : i.format("show")
|
|
73
73
|
}
|
|
74
74
|
)
|
|
75
75
|
] });
|
|
@@ -80,38 +80,37 @@ const w = n.forwardRef((e, t) => {
|
|
|
80
80
|
t,
|
|
81
81
|
s,
|
|
82
82
|
h
|
|
83
|
-
),
|
|
83
|
+
), i = e ? s : a, c = e ? t : o;
|
|
84
84
|
return /* @__PURE__ */ m("div", { className: d.wrap, children: [
|
|
85
85
|
/* @__PURE__ */ r(
|
|
86
86
|
F,
|
|
87
87
|
{
|
|
88
|
-
...
|
|
89
|
-
ref:
|
|
90
|
-
className: f(d.input,
|
|
88
|
+
...c,
|
|
89
|
+
ref: i,
|
|
90
|
+
className: f(d.input, c.className)
|
|
91
91
|
}
|
|
92
92
|
),
|
|
93
|
-
|
|
93
|
+
c.type === "password" && /* @__PURE__ */ r(j, { ...c })
|
|
94
94
|
] });
|
|
95
95
|
}
|
|
96
96
|
), O = n.forwardRef(
|
|
97
|
-
({ className: e,
|
|
97
|
+
({ className: e, list: t, type: s, ...o }, a) => /* @__PURE__ */ r(w, { ...o, children: /* @__PURE__ */ r(
|
|
98
98
|
z,
|
|
99
99
|
{
|
|
100
100
|
className: f(e),
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
type: o,
|
|
101
|
+
list: t,
|
|
102
|
+
ref: a,
|
|
103
|
+
type: s,
|
|
105
104
|
skipContext: !0
|
|
106
105
|
}
|
|
107
106
|
) })
|
|
108
107
|
), Q = n.forwardRef(
|
|
109
|
-
({ className: e,
|
|
108
|
+
({ className: e, cols: t, rows: s, wrap: o, ...a }, i) => /* @__PURE__ */ r(w, { ...a, children: /* @__PURE__ */ r(
|
|
110
109
|
v,
|
|
111
110
|
{
|
|
112
111
|
className: f(d.textArea, e),
|
|
113
|
-
|
|
114
|
-
ref:
|
|
112
|
+
cols: t,
|
|
113
|
+
ref: i,
|
|
115
114
|
rows: s,
|
|
116
115
|
wrap: o
|
|
117
116
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as p, jsxs as
|
|
2
|
-
import { B as
|
|
3
|
-
import A, { useState as g, useCallback as
|
|
4
|
-
import { createPortal as
|
|
1
|
+
import { jsx as p, jsxs as _, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
+
import { B as Le } from "./Button-CUMHt7MG.js";
|
|
3
|
+
import A, { useState as g, useCallback as w, useEffect as T, useRef as v, useMemo as _e } from "react";
|
|
4
|
+
import { createPortal as we, flushSync as Be } from "react-dom";
|
|
5
5
|
import { c as I } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
import { i as ye } from "./icon-map-uS87FT_Q.js";
|
|
7
7
|
import { s as N } from "./index-BLPblar-.js";
|
|
@@ -243,11 +243,11 @@ class Me {
|
|
|
243
243
|
}
|
|
244
244
|
function Oe(t, e) {
|
|
245
245
|
const { role: n, "aria-label": i, "aria-labelledby": o, focus: u } = t;
|
|
246
|
-
let r = Re(), a = i || o, [b, d] = g(!1), f =
|
|
246
|
+
let r = Re(), a = i || o, [b, d] = g(!1), f = w(() => {
|
|
247
247
|
d(!0);
|
|
248
248
|
}, [
|
|
249
249
|
d
|
|
250
|
-
]), $ =
|
|
250
|
+
]), $ = w(() => {
|
|
251
251
|
d(!1);
|
|
252
252
|
}, [
|
|
253
253
|
d
|
|
@@ -676,13 +676,13 @@ function ze(t, e, n) {
|
|
|
676
676
|
...c,
|
|
677
677
|
i: m,
|
|
678
678
|
isRemoved: !e.visibleToasts.some((h) => c.key === h.key)
|
|
679
|
-
})),
|
|
680
|
-
if (
|
|
681
|
-
var
|
|
682
|
-
if (B() === "pointer" && (!((
|
|
679
|
+
})), L = l.findIndex((c) => c.i === $.current && c.isRemoved);
|
|
680
|
+
if (L > -1) {
|
|
681
|
+
var x;
|
|
682
|
+
if (B() === "pointer" && (!((x = s.current) === null || x === void 0) && x.isConnected)) E(s.current);
|
|
683
683
|
else {
|
|
684
684
|
let c = 0, m, h;
|
|
685
|
-
for (; c <=
|
|
685
|
+
for (; c <= L; )
|
|
686
686
|
l[c].isRemoved || (h = Math.max(0, c - 1)), c++;
|
|
687
687
|
for (; c < l.length; ) {
|
|
688
688
|
if (!l[c].isRemoved) {
|
|
@@ -731,8 +731,8 @@ function ze(t, e, n) {
|
|
|
731
731
|
// listen to focus events separate from focuswithin because that will only fire once
|
|
732
732
|
// and we need to follow all focus changes
|
|
733
733
|
onFocus: (l) => {
|
|
734
|
-
let
|
|
735
|
-
$.current = d.current.findIndex((
|
|
734
|
+
let L = l.target.closest('[role="alertdialog"]');
|
|
735
|
+
$.current = d.current.findIndex((x) => x === L);
|
|
736
736
|
},
|
|
737
737
|
onBlur: () => {
|
|
738
738
|
$.current = -1;
|
|
@@ -741,9 +741,9 @@ function ze(t, e, n) {
|
|
|
741
741
|
};
|
|
742
742
|
}
|
|
743
743
|
function pe(t) {
|
|
744
|
-
let e =
|
|
744
|
+
let e = w((o) => t.subscribe(o), [
|
|
745
745
|
t
|
|
746
|
-
]), n =
|
|
746
|
+
]), n = w(() => t.visibleToasts, [
|
|
747
747
|
t
|
|
748
748
|
]);
|
|
749
749
|
return {
|
|
@@ -821,7 +821,7 @@ class je {
|
|
|
821
821
|
this.startTime = null, this.remaining = n, this.callback = e;
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
|
-
const We = "
|
|
824
|
+
const We = "_toastRegion_hu26k_49", Ke = "_toast_hu26k_49", Ze = "_success_hu26k_92", Ge = "_info_hu26k_100", Je = "_important_hu26k_108", Qe = "_warning_hu26k_116", Xe = "_icon_hu26k_124", qe = "_toastContent_hu26k_134", Ye = "_toastMessage_hu26k_141", et = "_slideInTop_hu26k_1", tt = "_slideInEnd_hu26k_1", nt = "_slideOutTop_hu26k_1", it = "_slideOutEnd_hu26k_1", k = {
|
|
825
825
|
toastRegion: We,
|
|
826
826
|
toast: Ke,
|
|
827
827
|
success: Ze,
|
|
@@ -835,7 +835,7 @@ const We = "_toastRegion_xhwdf_49", Ke = "_toast_xhwdf_49", Ze = "_success_xhwdf
|
|
|
835
835
|
slideInEnd: tt,
|
|
836
836
|
slideOutTop: nt,
|
|
837
837
|
slideOutEnd: it
|
|
838
|
-
},
|
|
838
|
+
}, ke = {
|
|
839
839
|
wrapUpdate(t) {
|
|
840
840
|
"startViewTransition" in document ? document.startViewTransition(() => {
|
|
841
841
|
Be(t);
|
|
@@ -844,17 +844,17 @@ const We = "_toastRegion_xhwdf_49", Ke = "_toast_xhwdf_49", Ze = "_success_xhwdf
|
|
|
844
844
|
maxVisibleToasts: 5
|
|
845
845
|
};
|
|
846
846
|
function ot(t = {}) {
|
|
847
|
-
const { maxVisibleToasts: e = 1, wrapUpdate: n } = t, i =
|
|
847
|
+
const { maxVisibleToasts: e = 1, wrapUpdate: n } = t, i = _e(
|
|
848
848
|
() => new ve({ maxVisibleToasts: e, wrapUpdate: n }),
|
|
849
849
|
[e, n]
|
|
850
850
|
);
|
|
851
851
|
return pe(i);
|
|
852
852
|
}
|
|
853
|
-
const ut = new ve(
|
|
853
|
+
const ut = new ve(ke), Et = (t) => {
|
|
854
854
|
const e = pe(ut);
|
|
855
|
-
return e.visibleToasts.length > 0 ?
|
|
855
|
+
return e.visibleToasts.length > 0 ? we(
|
|
856
856
|
/* @__PURE__ */ p(
|
|
857
|
-
|
|
857
|
+
xe,
|
|
858
858
|
{
|
|
859
859
|
...t,
|
|
860
860
|
state: e
|
|
@@ -863,11 +863,11 @@ const ut = new ve(xe), Et = (t) => {
|
|
|
863
863
|
document.body
|
|
864
864
|
) : null;
|
|
865
865
|
}, Tt = ({ children: t, ...e }) => {
|
|
866
|
-
const n = ot(
|
|
867
|
-
return /* @__PURE__ */
|
|
866
|
+
const n = ot(ke);
|
|
867
|
+
return /* @__PURE__ */ _(Te, { children: [
|
|
868
868
|
typeof t == "function" ? t(n) : t,
|
|
869
869
|
n.visibleToasts.length > 0 && /* @__PURE__ */ p(
|
|
870
|
-
|
|
870
|
+
xe,
|
|
871
871
|
{
|
|
872
872
|
...e,
|
|
873
873
|
state: n
|
|
@@ -875,7 +875,7 @@ const ut = new ve(xe), Et = (t) => {
|
|
|
875
875
|
)
|
|
876
876
|
] });
|
|
877
877
|
};
|
|
878
|
-
function
|
|
878
|
+
function xe({
|
|
879
879
|
state: t,
|
|
880
880
|
className: e,
|
|
881
881
|
...n
|
|
@@ -886,7 +886,7 @@ function ke({
|
|
|
886
886
|
{
|
|
887
887
|
...o,
|
|
888
888
|
ref: i,
|
|
889
|
-
className: I(
|
|
889
|
+
className: I(k.toastRegion, e),
|
|
890
890
|
children: t.visibleToasts.map((u) => /* @__PURE__ */ p(
|
|
891
891
|
rt,
|
|
892
892
|
{
|
|
@@ -907,37 +907,37 @@ function rt({
|
|
|
907
907
|
n,
|
|
908
908
|
t
|
|
909
909
|
), b = ye[n.toast.content.type];
|
|
910
|
-
return /* @__PURE__ */
|
|
910
|
+
return /* @__PURE__ */ _(
|
|
911
911
|
"div",
|
|
912
912
|
{
|
|
913
913
|
...o,
|
|
914
914
|
ref: i,
|
|
915
915
|
className: I(
|
|
916
|
-
|
|
917
|
-
|
|
916
|
+
k.toast,
|
|
917
|
+
k[n.toast.content.type],
|
|
918
918
|
e
|
|
919
919
|
),
|
|
920
920
|
style: { viewTransitionName: n.toast.key },
|
|
921
921
|
children: [
|
|
922
|
-
/* @__PURE__ */
|
|
922
|
+
/* @__PURE__ */ _(
|
|
923
923
|
"div",
|
|
924
924
|
{
|
|
925
925
|
...u,
|
|
926
|
-
className: I(
|
|
926
|
+
className: I(k.toastContent, u.className),
|
|
927
927
|
children: [
|
|
928
928
|
/* @__PURE__ */ p(
|
|
929
929
|
b,
|
|
930
930
|
{
|
|
931
|
-
className:
|
|
931
|
+
className: k.icon,
|
|
932
932
|
size: 20,
|
|
933
933
|
"aria-hidden": !0
|
|
934
934
|
}
|
|
935
935
|
),
|
|
936
|
-
/* @__PURE__ */
|
|
936
|
+
/* @__PURE__ */ _("div", { children: [
|
|
937
937
|
/* @__PURE__ */ p(
|
|
938
938
|
"p",
|
|
939
939
|
{
|
|
940
|
-
className:
|
|
940
|
+
className: k.toastMessage,
|
|
941
941
|
...r,
|
|
942
942
|
children: n.toast.content.message
|
|
943
943
|
}
|
|
@@ -948,7 +948,7 @@ function rt({
|
|
|
948
948
|
}
|
|
949
949
|
),
|
|
950
950
|
/* @__PURE__ */ p(
|
|
951
|
-
|
|
951
|
+
Le,
|
|
952
952
|
{
|
|
953
953
|
variant: "icon",
|
|
954
954
|
...a,
|
|
@@ -968,7 +968,7 @@ function rt({
|
|
|
968
968
|
export {
|
|
969
969
|
Et as G,
|
|
970
970
|
Tt as T,
|
|
971
|
-
|
|
971
|
+
xe as a,
|
|
972
972
|
rt as b,
|
|
973
973
|
ut as t,
|
|
974
974
|
ot as u
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Toast.css');const b=require("react/jsx-runtime"),Ee=require("./Button-D_tRdPW9.cjs"),a=require("react"),P=require("react-dom"),B=require("./clsx-C11secjj.cjs"),Te=require("./icon-map-9XcghDra.cjs"),g=require("./index-DSFSh2sC.cjs"),k=require("./mergeProps-JhcJ7uJL.cjs"),T=require("./utils-__vrf9VZ.cjs"),L=require("./useHover-DGAmG7jt.cjs"),we=require("./useFocusWithin-DTnk0e8a.cjs"),A=require("./useLocalizedStringFormatter-BiX5BTlb.cjs"),Le=require("./filterDOMProps-RRlKPKX0.cjs"),_e=require("./x-rV-nu490.cjs"),F=1,_=Symbol.for("react-aria-landmark-manager");function Be(t){return document.addEventListener("react-aria-landmark-manager-change",t),()=>document.removeEventListener("react-aria-landmark-manager-change",t)}function I(){if(typeof document>"u")return null;let t=document[_];return t&&t.version>=F?t:(document[_]=new Ce,document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")),document[_])}function ye(){return g.shimExports.useSyncExternalStore(Be,I,I)}class Ce{setupIfNeeded(){this.isListening||(document.addEventListener("keydown",this.f6Handler,{capture:!0}),document.addEventListener("focusin",this.focusinHandler,{capture:!0}),document.addEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!0)}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener("keydown",this.f6Handler,{capture:!0}),document.removeEventListener("focusin",this.focusinHandler,{capture:!0}),document.removeEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!1)}focusLandmark(e,n){var u,i;(i=this.landmarks.find(o=>o.ref.current===e))===null||i===void 0||(u=i.focus)===null||u===void 0||u.call(i,n)}getLandmarksByRole(e){return new Set(this.landmarks.filter(n=>n.role===e))}getLandmarkByRole(e){return this.landmarks.find(n=>n.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(i=>i.ref===e.ref)||!e.ref.current)return;if(this.landmarks.filter(i=>i.role==="main").length>1&&process.env.NODE_ENV!=="production"&&console.error('Page can contain no more than one landmark with the role "main".'),this.landmarks.length===0){this.landmarks=[e],this.checkLabels(e.role);return}let n=0,u=this.landmarks.length-1;for(;n<=u;){let i=Math.floor((n+u)/2),o=e.ref.current.compareDocumentPosition(this.landmarks[i].ref.current);!!(o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS)?n=i+1:u=i-1}this.landmarks.splice(n,0,e),this.checkLabels(e.role)}updateLandmark(e){let n=this.landmarks.findIndex(u=>u.ref===e.ref);n>=0&&(this.landmarks[n]={...this.landmarks[n],...e},this.checkLabels(this.landmarks[n].role))}removeLandmark(e){this.landmarks=this.landmarks.filter(n=>n.ref!==e),this.teardownIfNeeded()}checkLabels(e){let n=this.getLandmarksByRole(e);if(n.size>1){let u=[...n].filter(i=>!i.label);if(u.length>0&&process.env.NODE_ENV!=="production")console.warn(`Page contains more than one landmark with the '${e}' role. If two or more landmarks on a page share the same role, all must be labeled with an aria-label or aria-labelledby attribute: `,u.map(i=>i.ref.current));else if(process.env.NODE_ENV!=="production"){let i=[...n].map(r=>r.label);i.filter((r,s)=>i.indexOf(r)!==s).forEach(r=>{console.warn(`Page contains more than one landmark with the '${e}' role and '${r}' label. If two or more landmarks on a page share the same role, they must have unique labels: `,[...n].filter(s=>s.label===r).map(s=>s.ref.current))})}}}closestLandmark(e){let n=new Map(this.landmarks.map(i=>[i.ref.current,i])),u=e;for(;u&&!n.has(u)&&u!==document.body&&u.parentElement;)u=u.parentElement;return n.get(u)}getNextLandmark(e,{backward:n}){var u;let i=this.closestLandmark(e),o=n?this.landmarks.length-1:0;i&&(o=this.landmarks.indexOf(i)+(n?-1:1));let r=()=>{if(o<0){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"backward"},bubbles:!0,cancelable:!0})))return!0;o=this.landmarks.length-1}else if(o>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"forward"},bubbles:!0,cancelable:!0})))return!0;o=0}return o<0||o>=this.landmarks.length};if(r())return;let s=o;for(;!((u=this.landmarks[o].ref.current)===null||u===void 0)&&u.closest("[aria-hidden=true]");){if(o+=n?-1:1,r())return;if(o===s)break}return this.landmarks[o]}f6Handler(e){e.key==="F6"&&(e.altKey?this.focusMain():this.navigate(e.target,e.shiftKey))&&(e.preventDefault(),e.stopPropagation())}focusMain(){let e=this.getLandmarkByRole("main");return e&&e.ref.current&&document.contains(e.ref.current)?(this.focusLandmark(e.ref.current,"forward"),!0):!1}navigate(e,n){let u=this.getNextLandmark(e,{backward:n});if(!u)return!1;if(u.lastFocused){let i=u.lastFocused;if(document.body.contains(i))return i.focus(),!0}return u.ref.current&&document.contains(u.ref.current)?(this.focusLandmark(u.ref.current,n?"backward":"forward"),!0):!1}focusinHandler(e){let n=this.closestLandmark(e.target);n&&n.ref.current!==e.target&&this.updateLandmark({ref:n.ref,lastFocused:e.target});let u=e.relatedTarget;if(u){let i=this.closestLandmark(u);i&&i.ref.current===u&&i.blur()}}focusoutHandler(e){let n=e.target,u=e.relatedTarget;if(!u||u===document){let i=this.closestLandmark(n);i&&i.ref.current===n&&i.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(n,u){let i=(u==null?void 0:u.from)||document.activeElement;return e.navigate(i,n==="backward")},focusNext(n){let u=(n==null?void 0:n.from)||document.activeElement;return e.navigate(u,!1)},focusPrevious(n){let u=(n==null?void 0:n.from)||document.activeElement;return e.navigate(u,!0)},focusMain(){return e.focusMain()},dispose(){e&&(e.refCount--,e.teardownIfNeeded(),e=null)}}}registerLandmark(e){return this.landmarks.find(n=>n.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=F,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}}function Ie(t,e){const{role:n,"aria-label":u,"aria-labelledby":i,focus:o}=t;let r=ye(),s=u||i,[h,f]=a.useState(!1),$=a.useCallback(()=>{f(!0)},[f]),p=a.useCallback(()=>{f(!1)},[f]);return k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(r)return r.registerLandmark({ref:e,label:s,role:n,focus:o||$,blur:p})},[r,s,e,n,o,$,p]),a.useEffect(()=>{var c;h&&((c=e.current)===null||c===void 0||c.focus())},[h,e]),{landmarkProps:{role:n,tabIndex:h?-1:void 0,"aria-label":u,"aria-labelledby":i}}}var N={};N={close:"إغلاق",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} إشعار`,other:()=>`${e.number(t.count)} إشعارات`})}.`};var R={};R={close:"Затвори",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} известие`,other:()=>`${e.number(t.count)} известия`})}.`};var S={};S={close:"Zavřít",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámení`,other:()=>`${e.number(t.count)} oznámení`})}.`};var D={};D={close:"Luk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} besked`,other:()=>`${e.number(t.count)} beskeder`})}.`};var M={};M={close:"Schließen",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} Benachrichtigung`,other:()=>`${e.number(t.count)} Benachrichtigungen`})}.`};var O={};O={close:"Κλείσιμο",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ειδοποίηση`,other:()=>`${e.number(t.count)} ειδοποιήσεις`})}.`};var j={};j={close:"Close",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var H={};H={close:"Cerrar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificación`,other:()=>`${e.number(t.count)} notificaciones`})}.`};var V={};V={close:"Sule",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} teatis`,other:()=>`${e.number(t.count)} teatist`})}.`};var z={};z={close:"Sulje",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ilmoitus`,other:()=>`${e.number(t.count)} ilmoitusta`})}.`};var U={};U={close:"Fermer",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var q={};q={close:"סגור",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} התראה`,other:()=>`${e.number(t.count)} התראות`})}.`};var W={};W={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obavijest`,other:()=>`${e.number(t.count)} obavijesti`})}.`};var K={};K={close:"Bezárás",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} értesítés`,other:()=>`${e.number(t.count)} értesítés`})}.`};var Z={};Z={close:"Chiudi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notifica`,other:()=>`${e.number(t.count)} notifiche`})}.`};var G={};G={close:"閉じる",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個の通知`,other:()=>`${e.number(t.count)} 個の通知`})}。`};var Q={};Q={close:"닫기",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)}개 알림`,other:()=>`${e.number(t.count)}개 알림`})}.`};var J={};J={close:"Uždaryti",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} pranešimas`,other:()=>`${e.number(t.count)} pranešimai`})}.`};var X={};X={close:"Aizvērt",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} paziņojums`,other:()=>`${e.number(t.count)} paziņojumi`})}.`};var Y={};Y={close:"Lukk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} varsling`,other:()=>`${e.number(t.count)} varsler`})}.`};var ee={};ee={close:"Sluiten",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} melding`,other:()=>`${e.number(t.count)} meldingen`})}.`};var te={};te={close:"Zamknij",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} powiadomienie`,few:()=>`${e.number(t.count)} powiadomienia`,many:()=>`${e.number(t.count)} powiadomień`,other:()=>`${e.number(t.count)} powiadomienia`})}.`};var ne={};ne={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var ue={};ue={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var ie={};ie={close:"Închideţi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificare`,other:()=>`${e.number(t.count)} notificări`})}.`};var oe={};oe={close:"Закрыть",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} уведомление`,other:()=>`${e.number(t.count)} уведомления`})}.`};var re={};re={close:"Zatvoriť",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámenie`,few:()=>`${e.number(t.count)} oznámenia`,other:()=>`${e.number(t.count)} oznámení`})}.`};var se={};se={close:"Zapri",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obvestilo`,two:()=>`${e.number(t.count)} obvestili`,few:()=>`${e.number(t.count)} obvestila`,other:()=>`${e.number(t.count)} obvestil`})}.`};var ae={};ae={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obaveštenje`,other:()=>`${e.number(t.count)} obaveštenja`})}.`};var ce={};ce={close:"Stäng",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} meddelande`,other:()=>`${e.number(t.count)} meddelanden`})}.`};var le={};le={close:"Kapat",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} bildirim`,other:()=>`${e.number(t.count)} bildirim`})}.`};var de={};de={close:"Закрити",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} сповіщення`,other:()=>`${e.number(t.count)} сповіщення`})}.`};var fe={};fe={close:"关闭",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 个通知`,other:()=>`${e.number(t.count)} 个通知`})}。`};var be={};be={close:"關閉",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個通知`,other:()=>`${e.number(t.count)} 個通知`})}。`};var y={};y={"ar-AE":N,"bg-BG":R,"cs-CZ":S,"da-DK":D,"de-DE":M,"el-GR":O,"en-US":j,"es-ES":H,"et-EE":V,"fi-FI":z,"fr-FR":U,"he-IL":q,"hr-HR":W,"hu-HU":K,"it-IT":Z,"ja-JP":G,"ko-KR":Q,"lt-LT":J,"lv-LV":X,"nb-NO":Y,"nl-NL":ee,"pl-PL":te,"pt-BR":ne,"pt-PT":ue,"ro-RO":ie,"ru-RU":oe,"sk-SK":re,"sl-SI":se,"sr-SP":ae,"sv-SE":ce,"tr-TR":le,"uk-UA":de,"zh-CN":fe,"zh-TW":be};function Pe(t){return t&&t.__esModule?t.default:t}function ge(t,e,n){let{key:u,timer:i,timeout:o}=t.toast;a.useEffect(()=>{if(!(i==null||o==null))return i.reset(o),()=>{i.pause()}},[i,o]);let r=k.$bdb11010cef70236$export$f680877a34711e37(),s=k.$bdb11010cef70236$export$b4cc09c592e8fdb8(),h=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Pe(y),"@react-aria/toast"),[f,$]=a.useState(!1);return a.useEffect(()=>{$(!0)},[]),{toastProps:{...Le.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),role:"alertdialog","aria-modal":"false","aria-labelledby":t["aria-labelledby"]||r,"aria-describedby":t["aria-describedby"]||s,tabIndex:0},contentProps:{role:"alert","aria-atomic":"true","aria-hidden":f?void 0:"true"},titleProps:{id:r},descriptionProps:{id:s},closeButtonProps:{"aria-label":h.format("close"),onPress:()=>e.close(u)}}}function Ae(t){return t&&t.__esModule?t.default:t}function Fe(t,e,n){let u=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ae(y),"@react-aria/toast"),{landmarkProps:i}=Ie({role:"region","aria-label":t["aria-label"]||u.format("notifications",{count:e.visibleToasts.length})},n),o=a.useRef(!1),r=a.useRef(!1),s=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{o.current||r.current?e.pauseAll():e.resumeAll()}),{hoverProps:h}=L.$6179b936705e76d3$export$ae780daf29e6d456({onHoverStart:()=>{o.current=!0,s()},onHoverEnd:()=>{o.current=!1,s()}}),f=a.useRef([]),$=a.useRef(e.visibleToasts),p=a.useRef(null);k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(p.current===-1||e.visibleToasts.length===0||!n.current){f.current=[],$.current=e.visibleToasts;return}if(f.current=[...n.current.querySelectorAll('[role="alertdialog"]')],$.current.length===e.visibleToasts.length&&e.visibleToasts.every((d,m)=>d.key===$.current[m].key)){$.current=e.visibleToasts;return}let l=$.current.map((d,m)=>({...d,i:m,isRemoved:!e.visibleToasts.some(v=>d.key===v.key)})),w=l.findIndex(d=>d.i===p.current&&d.isRemoved);if(w>-1){var E;if(L.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"&&(!((E=c.current)===null||E===void 0)&&E.isConnected))T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current);else{let d=0,m,v;for(;d<=w;)l[d].isRemoved||(v=Math.max(0,d-1)),d++;for(;d<l.length;){if(!l[d].isRemoved){m=d-1;break}d++}v===void 0&&m===void 0&&(v=0),v>=0&&v<f.current.length?T.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[v]):m>=0&&m<f.current.length&&T.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[m])}}$.current=e.visibleToasts},[e.visibleToasts,n,s]);let c=a.useRef(null),{focusWithinProps:ke}=we.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:l=>{r.current=!0,c.current=l.relatedTarget,s()},onBlurWithin:()=>{r.current=!1,c.current=null,s()}});return a.useEffect(()=>{var l;e.visibleToasts.length===0&&(!((l=c.current)===null||l===void 0)&&l.isConnected)&&(L.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n,e.visibleToasts.length]),a.useEffect(()=>()=>{var l;!((l=c.current)===null||l===void 0)&&l.isConnected&&(L.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n]),{regionProps:k.$3ef42575df84b30b$export$9d1611c77c2fe928(i,h,ke,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:l=>{let w=l.target.closest('[role="alertdialog"]');p.current=f.current.findIndex(E=>E===w)},onBlur:()=>{p.current=-1}})}}function $e(t){let e=a.useCallback(i=>t.subscribe(i),[t]),n=a.useCallback(()=>t.visibleToasts,[t]);return{visibleToasts:g.shimExports.useSyncExternalStore(e,n,n),add:(i,o)=>t.add(i,o),close:i=>t.close(i),pauseAll:()=>t.pauseAll(),resumeAll:()=>t.resumeAll()}}class he{runWithWrapUpdate(e,n){this.wrapUpdate?this.wrapUpdate(e,n):e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,n={}){let u="_"+Math.random().toString(36).slice(2),i={...n,content:e,key:u,timer:n.timeout?new Ne(()=>this.close(u),n.timeout):void 0};return this.queue.unshift(i),this.updateVisibleToasts("add"),u}close(e){let n=this.queue.findIndex(o=>o.key===e);if(n>=0){var u,i;(u=(i=this.queue[n]).onClose)===null||u===void 0||u.call(i),this.queue.splice(n,1)}this.updateVisibleToasts("remove")}updateVisibleToasts(e){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let n of this.subscriptions)n()},e)}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause()}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume()}clear(){this.queue=[],this.updateVisibleToasts("clear")}constructor(e){this.queue=[],this.subscriptions=new Set,this.visibleToasts=[];var n;this.maxVisibleToasts=(n=e==null?void 0:e.maxVisibleToasts)!==null&&n!==void 0?n:1/0,this.wrapUpdate=e==null?void 0:e.wrapUpdate}}class Ne{reset(e){this.remaining=e,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}constructor(e,n){this.startTime=null,this.remaining=n,this.callback=e}}const Re="_toastRegion_xhwdf_49",Se="_toast_xhwdf_49",De="_success_xhwdf_92",Me="_info_xhwdf_100",Oe="_important_xhwdf_108",je="_warning_xhwdf_116",He="_icon_xhwdf_124",Ve="_toastContent_xhwdf_134",ze="_toastMessage_xhwdf_141",Ue="_slideInTop_xhwdf_1",qe="_slideInEnd_xhwdf_1",We="_slideOutTop_xhwdf_1",Ke="_slideOutEnd_xhwdf_1",x={toastRegion:Re,toast:Se,success:De,info:Me,important:Oe,warning:je,icon:He,toastContent:Ve,toastMessage:ze,slideInTop:Ue,slideInEnd:qe,slideOutTop:We,slideOutEnd:Ke},me={wrapUpdate(t){"startViewTransition"in document?document.startViewTransition(()=>{P.flushSync(t)}):t()},maxVisibleToasts:5};function pe(t={}){const{maxVisibleToasts:e=1,wrapUpdate:n}=t,u=a.useMemo(()=>new he({maxVisibleToasts:e,wrapUpdate:n}),[e,n]);return $e(u)}const ve=new he(me),Ze=t=>{const e=$e(ve);return e.visibleToasts.length>0?P.createPortal(b.jsx(C,{...t,state:e}),document.body):null},Ge=({children:t,...e})=>{const n=pe(me);return b.jsxs(b.Fragment,{children:[typeof t=="function"?t(n):t,n.visibleToasts.length>0&&b.jsx(C,{...e,state:n})]})};function C({state:t,className:e,...n}){const u=a.useRef(null),{regionProps:i}=Fe(n,t,u);return b.jsx("div",{...i,ref:u,className:B.clsx(x.toastRegion,e),children:t.visibleToasts.map(o=>b.jsx(xe,{toast:o,state:t},o.key))})}function xe({state:t,className:e,...n}){const u=a.useRef(null),{toastProps:i,contentProps:o,titleProps:r,closeButtonProps:s}=ge(n,t),h=Te.iconMap[n.toast.content.type];return b.jsxs("div",{...i,ref:u,className:B.clsx(x.toast,x[n.toast.content.type],e),style:{viewTransitionName:n.toast.key},children:[b.jsxs("div",{...o,className:B.clsx(x.toastContent,o.className),children:[b.jsx(h,{className:x.icon,size:20,"aria-hidden":!0}),b.jsxs("div",{children:[b.jsx("p",{className:x.toastMessage,...r,children:n.toast.content.message}),n.toast.content.children]})]}),b.jsx(Ee.Button,{variant:"icon",...s,children:b.jsx(_e.X,{size:20,"aria-hidden":!0})})]})}exports.GlobalToastRegion=Ze;exports.Toast=xe;exports.ToastProvider=Ge;exports.ToastRegion=C;exports.toastQueue=ve;exports.useToastState=pe;
|
|
1
|
+
"use strict";require('./assets/Toast.css');const b=require("react/jsx-runtime"),Ee=require("./Button-D_tRdPW9.cjs"),a=require("react"),P=require("react-dom"),B=require("./clsx-C11secjj.cjs"),Te=require("./icon-map-9XcghDra.cjs"),g=require("./index-DSFSh2sC.cjs"),k=require("./mergeProps-JhcJ7uJL.cjs"),T=require("./utils-__vrf9VZ.cjs"),_=require("./useHover-DGAmG7jt.cjs"),Le=require("./useFocusWithin-DTnk0e8a.cjs"),A=require("./useLocalizedStringFormatter-BiX5BTlb.cjs"),_e=require("./filterDOMProps-RRlKPKX0.cjs"),we=require("./x-rV-nu490.cjs"),F=1,w=Symbol.for("react-aria-landmark-manager");function Be(t){return document.addEventListener("react-aria-landmark-manager-change",t),()=>document.removeEventListener("react-aria-landmark-manager-change",t)}function I(){if(typeof document>"u")return null;let t=document[w];return t&&t.version>=F?t:(document[w]=new Ce,document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")),document[w])}function ye(){return g.shimExports.useSyncExternalStore(Be,I,I)}class Ce{setupIfNeeded(){this.isListening||(document.addEventListener("keydown",this.f6Handler,{capture:!0}),document.addEventListener("focusin",this.focusinHandler,{capture:!0}),document.addEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!0)}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener("keydown",this.f6Handler,{capture:!0}),document.removeEventListener("focusin",this.focusinHandler,{capture:!0}),document.removeEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!1)}focusLandmark(e,n){var u,i;(i=this.landmarks.find(o=>o.ref.current===e))===null||i===void 0||(u=i.focus)===null||u===void 0||u.call(i,n)}getLandmarksByRole(e){return new Set(this.landmarks.filter(n=>n.role===e))}getLandmarkByRole(e){return this.landmarks.find(n=>n.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(i=>i.ref===e.ref)||!e.ref.current)return;if(this.landmarks.filter(i=>i.role==="main").length>1&&process.env.NODE_ENV!=="production"&&console.error('Page can contain no more than one landmark with the role "main".'),this.landmarks.length===0){this.landmarks=[e],this.checkLabels(e.role);return}let n=0,u=this.landmarks.length-1;for(;n<=u;){let i=Math.floor((n+u)/2),o=e.ref.current.compareDocumentPosition(this.landmarks[i].ref.current);!!(o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS)?n=i+1:u=i-1}this.landmarks.splice(n,0,e),this.checkLabels(e.role)}updateLandmark(e){let n=this.landmarks.findIndex(u=>u.ref===e.ref);n>=0&&(this.landmarks[n]={...this.landmarks[n],...e},this.checkLabels(this.landmarks[n].role))}removeLandmark(e){this.landmarks=this.landmarks.filter(n=>n.ref!==e),this.teardownIfNeeded()}checkLabels(e){let n=this.getLandmarksByRole(e);if(n.size>1){let u=[...n].filter(i=>!i.label);if(u.length>0&&process.env.NODE_ENV!=="production")console.warn(`Page contains more than one landmark with the '${e}' role. If two or more landmarks on a page share the same role, all must be labeled with an aria-label or aria-labelledby attribute: `,u.map(i=>i.ref.current));else if(process.env.NODE_ENV!=="production"){let i=[...n].map(r=>r.label);i.filter((r,s)=>i.indexOf(r)!==s).forEach(r=>{console.warn(`Page contains more than one landmark with the '${e}' role and '${r}' label. If two or more landmarks on a page share the same role, they must have unique labels: `,[...n].filter(s=>s.label===r).map(s=>s.ref.current))})}}}closestLandmark(e){let n=new Map(this.landmarks.map(i=>[i.ref.current,i])),u=e;for(;u&&!n.has(u)&&u!==document.body&&u.parentElement;)u=u.parentElement;return n.get(u)}getNextLandmark(e,{backward:n}){var u;let i=this.closestLandmark(e),o=n?this.landmarks.length-1:0;i&&(o=this.landmarks.indexOf(i)+(n?-1:1));let r=()=>{if(o<0){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"backward"},bubbles:!0,cancelable:!0})))return!0;o=this.landmarks.length-1}else if(o>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"forward"},bubbles:!0,cancelable:!0})))return!0;o=0}return o<0||o>=this.landmarks.length};if(r())return;let s=o;for(;!((u=this.landmarks[o].ref.current)===null||u===void 0)&&u.closest("[aria-hidden=true]");){if(o+=n?-1:1,r())return;if(o===s)break}return this.landmarks[o]}f6Handler(e){e.key==="F6"&&(e.altKey?this.focusMain():this.navigate(e.target,e.shiftKey))&&(e.preventDefault(),e.stopPropagation())}focusMain(){let e=this.getLandmarkByRole("main");return e&&e.ref.current&&document.contains(e.ref.current)?(this.focusLandmark(e.ref.current,"forward"),!0):!1}navigate(e,n){let u=this.getNextLandmark(e,{backward:n});if(!u)return!1;if(u.lastFocused){let i=u.lastFocused;if(document.body.contains(i))return i.focus(),!0}return u.ref.current&&document.contains(u.ref.current)?(this.focusLandmark(u.ref.current,n?"backward":"forward"),!0):!1}focusinHandler(e){let n=this.closestLandmark(e.target);n&&n.ref.current!==e.target&&this.updateLandmark({ref:n.ref,lastFocused:e.target});let u=e.relatedTarget;if(u){let i=this.closestLandmark(u);i&&i.ref.current===u&&i.blur()}}focusoutHandler(e){let n=e.target,u=e.relatedTarget;if(!u||u===document){let i=this.closestLandmark(n);i&&i.ref.current===n&&i.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(n,u){let i=(u==null?void 0:u.from)||document.activeElement;return e.navigate(i,n==="backward")},focusNext(n){let u=(n==null?void 0:n.from)||document.activeElement;return e.navigate(u,!1)},focusPrevious(n){let u=(n==null?void 0:n.from)||document.activeElement;return e.navigate(u,!0)},focusMain(){return e.focusMain()},dispose(){e&&(e.refCount--,e.teardownIfNeeded(),e=null)}}}registerLandmark(e){return this.landmarks.find(n=>n.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=F,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}}function Ie(t,e){const{role:n,"aria-label":u,"aria-labelledby":i,focus:o}=t;let r=ye(),s=u||i,[h,f]=a.useState(!1),$=a.useCallback(()=>{f(!0)},[f]),p=a.useCallback(()=>{f(!1)},[f]);return k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(r)return r.registerLandmark({ref:e,label:s,role:n,focus:o||$,blur:p})},[r,s,e,n,o,$,p]),a.useEffect(()=>{var c;h&&((c=e.current)===null||c===void 0||c.focus())},[h,e]),{landmarkProps:{role:n,tabIndex:h?-1:void 0,"aria-label":u,"aria-labelledby":i}}}var N={};N={close:"إغلاق",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} إشعار`,other:()=>`${e.number(t.count)} إشعارات`})}.`};var R={};R={close:"Затвори",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} известие`,other:()=>`${e.number(t.count)} известия`})}.`};var S={};S={close:"Zavřít",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámení`,other:()=>`${e.number(t.count)} oznámení`})}.`};var D={};D={close:"Luk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} besked`,other:()=>`${e.number(t.count)} beskeder`})}.`};var M={};M={close:"Schließen",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} Benachrichtigung`,other:()=>`${e.number(t.count)} Benachrichtigungen`})}.`};var O={};O={close:"Κλείσιμο",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ειδοποίηση`,other:()=>`${e.number(t.count)} ειδοποιήσεις`})}.`};var j={};j={close:"Close",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var H={};H={close:"Cerrar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificación`,other:()=>`${e.number(t.count)} notificaciones`})}.`};var V={};V={close:"Sule",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} teatis`,other:()=>`${e.number(t.count)} teatist`})}.`};var z={};z={close:"Sulje",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ilmoitus`,other:()=>`${e.number(t.count)} ilmoitusta`})}.`};var U={};U={close:"Fermer",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var q={};q={close:"סגור",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} התראה`,other:()=>`${e.number(t.count)} התראות`})}.`};var W={};W={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obavijest`,other:()=>`${e.number(t.count)} obavijesti`})}.`};var K={};K={close:"Bezárás",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} értesítés`,other:()=>`${e.number(t.count)} értesítés`})}.`};var Z={};Z={close:"Chiudi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notifica`,other:()=>`${e.number(t.count)} notifiche`})}.`};var G={};G={close:"閉じる",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個の通知`,other:()=>`${e.number(t.count)} 個の通知`})}。`};var Q={};Q={close:"닫기",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)}개 알림`,other:()=>`${e.number(t.count)}개 알림`})}.`};var J={};J={close:"Uždaryti",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} pranešimas`,other:()=>`${e.number(t.count)} pranešimai`})}.`};var X={};X={close:"Aizvērt",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} paziņojums`,other:()=>`${e.number(t.count)} paziņojumi`})}.`};var Y={};Y={close:"Lukk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} varsling`,other:()=>`${e.number(t.count)} varsler`})}.`};var ee={};ee={close:"Sluiten",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} melding`,other:()=>`${e.number(t.count)} meldingen`})}.`};var te={};te={close:"Zamknij",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} powiadomienie`,few:()=>`${e.number(t.count)} powiadomienia`,many:()=>`${e.number(t.count)} powiadomień`,other:()=>`${e.number(t.count)} powiadomienia`})}.`};var ne={};ne={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var ue={};ue={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var ie={};ie={close:"Închideţi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificare`,other:()=>`${e.number(t.count)} notificări`})}.`};var oe={};oe={close:"Закрыть",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} уведомление`,other:()=>`${e.number(t.count)} уведомления`})}.`};var re={};re={close:"Zatvoriť",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámenie`,few:()=>`${e.number(t.count)} oznámenia`,other:()=>`${e.number(t.count)} oznámení`})}.`};var se={};se={close:"Zapri",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obvestilo`,two:()=>`${e.number(t.count)} obvestili`,few:()=>`${e.number(t.count)} obvestila`,other:()=>`${e.number(t.count)} obvestil`})}.`};var ae={};ae={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obaveštenje`,other:()=>`${e.number(t.count)} obaveštenja`})}.`};var ce={};ce={close:"Stäng",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} meddelande`,other:()=>`${e.number(t.count)} meddelanden`})}.`};var le={};le={close:"Kapat",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} bildirim`,other:()=>`${e.number(t.count)} bildirim`})}.`};var de={};de={close:"Закрити",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} сповіщення`,other:()=>`${e.number(t.count)} сповіщення`})}.`};var fe={};fe={close:"关闭",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 个通知`,other:()=>`${e.number(t.count)} 个通知`})}。`};var be={};be={close:"關閉",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個通知`,other:()=>`${e.number(t.count)} 個通知`})}。`};var y={};y={"ar-AE":N,"bg-BG":R,"cs-CZ":S,"da-DK":D,"de-DE":M,"el-GR":O,"en-US":j,"es-ES":H,"et-EE":V,"fi-FI":z,"fr-FR":U,"he-IL":q,"hr-HR":W,"hu-HU":K,"it-IT":Z,"ja-JP":G,"ko-KR":Q,"lt-LT":J,"lv-LV":X,"nb-NO":Y,"nl-NL":ee,"pl-PL":te,"pt-BR":ne,"pt-PT":ue,"ro-RO":ie,"ru-RU":oe,"sk-SK":re,"sl-SI":se,"sr-SP":ae,"sv-SE":ce,"tr-TR":le,"uk-UA":de,"zh-CN":fe,"zh-TW":be};function Pe(t){return t&&t.__esModule?t.default:t}function ge(t,e,n){let{key:u,timer:i,timeout:o}=t.toast;a.useEffect(()=>{if(!(i==null||o==null))return i.reset(o),()=>{i.pause()}},[i,o]);let r=k.$bdb11010cef70236$export$f680877a34711e37(),s=k.$bdb11010cef70236$export$b4cc09c592e8fdb8(),h=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Pe(y),"@react-aria/toast"),[f,$]=a.useState(!1);return a.useEffect(()=>{$(!0)},[]),{toastProps:{..._e.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),role:"alertdialog","aria-modal":"false","aria-labelledby":t["aria-labelledby"]||r,"aria-describedby":t["aria-describedby"]||s,tabIndex:0},contentProps:{role:"alert","aria-atomic":"true","aria-hidden":f?void 0:"true"},titleProps:{id:r},descriptionProps:{id:s},closeButtonProps:{"aria-label":h.format("close"),onPress:()=>e.close(u)}}}function Ae(t){return t&&t.__esModule?t.default:t}function Fe(t,e,n){let u=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ae(y),"@react-aria/toast"),{landmarkProps:i}=Ie({role:"region","aria-label":t["aria-label"]||u.format("notifications",{count:e.visibleToasts.length})},n),o=a.useRef(!1),r=a.useRef(!1),s=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{o.current||r.current?e.pauseAll():e.resumeAll()}),{hoverProps:h}=_.$6179b936705e76d3$export$ae780daf29e6d456({onHoverStart:()=>{o.current=!0,s()},onHoverEnd:()=>{o.current=!1,s()}}),f=a.useRef([]),$=a.useRef(e.visibleToasts),p=a.useRef(null);k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(p.current===-1||e.visibleToasts.length===0||!n.current){f.current=[],$.current=e.visibleToasts;return}if(f.current=[...n.current.querySelectorAll('[role="alertdialog"]')],$.current.length===e.visibleToasts.length&&e.visibleToasts.every((d,m)=>d.key===$.current[m].key)){$.current=e.visibleToasts;return}let l=$.current.map((d,m)=>({...d,i:m,isRemoved:!e.visibleToasts.some(v=>d.key===v.key)})),L=l.findIndex(d=>d.i===p.current&&d.isRemoved);if(L>-1){var E;if(_.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"&&(!((E=c.current)===null||E===void 0)&&E.isConnected))T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current);else{let d=0,m,v;for(;d<=L;)l[d].isRemoved||(v=Math.max(0,d-1)),d++;for(;d<l.length;){if(!l[d].isRemoved){m=d-1;break}d++}v===void 0&&m===void 0&&(v=0),v>=0&&v<f.current.length?T.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[v]):m>=0&&m<f.current.length&&T.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[m])}}$.current=e.visibleToasts},[e.visibleToasts,n,s]);let c=a.useRef(null),{focusWithinProps:ke}=Le.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:l=>{r.current=!0,c.current=l.relatedTarget,s()},onBlurWithin:()=>{r.current=!1,c.current=null,s()}});return a.useEffect(()=>{var l;e.visibleToasts.length===0&&(!((l=c.current)===null||l===void 0)&&l.isConnected)&&(_.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n,e.visibleToasts.length]),a.useEffect(()=>()=>{var l;!((l=c.current)===null||l===void 0)&&l.isConnected&&(_.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n]),{regionProps:k.$3ef42575df84b30b$export$9d1611c77c2fe928(i,h,ke,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:l=>{let L=l.target.closest('[role="alertdialog"]');p.current=f.current.findIndex(E=>E===L)},onBlur:()=>{p.current=-1}})}}function $e(t){let e=a.useCallback(i=>t.subscribe(i),[t]),n=a.useCallback(()=>t.visibleToasts,[t]);return{visibleToasts:g.shimExports.useSyncExternalStore(e,n,n),add:(i,o)=>t.add(i,o),close:i=>t.close(i),pauseAll:()=>t.pauseAll(),resumeAll:()=>t.resumeAll()}}class he{runWithWrapUpdate(e,n){this.wrapUpdate?this.wrapUpdate(e,n):e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,n={}){let u="_"+Math.random().toString(36).slice(2),i={...n,content:e,key:u,timer:n.timeout?new Ne(()=>this.close(u),n.timeout):void 0};return this.queue.unshift(i),this.updateVisibleToasts("add"),u}close(e){let n=this.queue.findIndex(o=>o.key===e);if(n>=0){var u,i;(u=(i=this.queue[n]).onClose)===null||u===void 0||u.call(i),this.queue.splice(n,1)}this.updateVisibleToasts("remove")}updateVisibleToasts(e){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let n of this.subscriptions)n()},e)}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause()}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume()}clear(){this.queue=[],this.updateVisibleToasts("clear")}constructor(e){this.queue=[],this.subscriptions=new Set,this.visibleToasts=[];var n;this.maxVisibleToasts=(n=e==null?void 0:e.maxVisibleToasts)!==null&&n!==void 0?n:1/0,this.wrapUpdate=e==null?void 0:e.wrapUpdate}}class Ne{reset(e){this.remaining=e,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}constructor(e,n){this.startTime=null,this.remaining=n,this.callback=e}}const Re="_toastRegion_hu26k_49",Se="_toast_hu26k_49",De="_success_hu26k_92",Me="_info_hu26k_100",Oe="_important_hu26k_108",je="_warning_hu26k_116",He="_icon_hu26k_124",Ve="_toastContent_hu26k_134",ze="_toastMessage_hu26k_141",Ue="_slideInTop_hu26k_1",qe="_slideInEnd_hu26k_1",We="_slideOutTop_hu26k_1",Ke="_slideOutEnd_hu26k_1",x={toastRegion:Re,toast:Se,success:De,info:Me,important:Oe,warning:je,icon:He,toastContent:Ve,toastMessage:ze,slideInTop:Ue,slideInEnd:qe,slideOutTop:We,slideOutEnd:Ke},me={wrapUpdate(t){"startViewTransition"in document?document.startViewTransition(()=>{P.flushSync(t)}):t()},maxVisibleToasts:5};function pe(t={}){const{maxVisibleToasts:e=1,wrapUpdate:n}=t,u=a.useMemo(()=>new he({maxVisibleToasts:e,wrapUpdate:n}),[e,n]);return $e(u)}const ve=new he(me),Ze=t=>{const e=$e(ve);return e.visibleToasts.length>0?P.createPortal(b.jsx(C,{...t,state:e}),document.body):null},Ge=({children:t,...e})=>{const n=pe(me);return b.jsxs(b.Fragment,{children:[typeof t=="function"?t(n):t,n.visibleToasts.length>0&&b.jsx(C,{...e,state:n})]})};function C({state:t,className:e,...n}){const u=a.useRef(null),{regionProps:i}=Fe(n,t,u);return b.jsx("div",{...i,ref:u,className:B.clsx(x.toastRegion,e),children:t.visibleToasts.map(o=>b.jsx(xe,{toast:o,state:t},o.key))})}function xe({state:t,className:e,...n}){const u=a.useRef(null),{toastProps:i,contentProps:o,titleProps:r,closeButtonProps:s}=ge(n,t),h=Te.iconMap[n.toast.content.type];return b.jsxs("div",{...i,ref:u,className:B.clsx(x.toast,x[n.toast.content.type],e),style:{viewTransitionName:n.toast.key},children:[b.jsxs("div",{...o,className:B.clsx(x.toastContent,o.className),children:[b.jsx(h,{className:x.icon,size:20,"aria-hidden":!0}),b.jsxs("div",{children:[b.jsx("p",{className:x.toastMessage,...r,children:n.toast.content.message}),n.toast.content.children]})]}),b.jsx(Ee.Button,{variant:"icon",...s,children:b.jsx(we.X,{size:20,"aria-hidden":!0})})]})}exports.GlobalToastRegion=Ze;exports.Toast=xe;exports.ToastProvider=Ge;exports.ToastRegion=C;exports.toastQueue=ve;exports.useToastState=pe;
|
package/accordion/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../AccordionItem-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../AccordionItem-Bq8nUKg4.cjs");exports.ACCORDION_TEST_ID=o.ACCORDION_TEST_ID;exports.Accordion=o.Accordion;exports.AccordionItem=o.AccordionItem;
|
package/accordion/index.js
CHANGED
package/assets/AccordionItem.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._root_17bdp_1{--gap: .75rem;--heading-color: var(--midas-text-primary);font-family:var(--midas-typography-font-family);color:var(--midas-text-primary);width:100%;display:flex;flex-direction:column;gap:var(--gap)}._root_17bdp_1._contained_17bdp_5{--gap: .25rem}._root_17bdp_1[data-disabled]{--heading-color: var(--midas-text-disabled)}._root_17bdp_1[data-disabled] ._triggerButton_17bdp_12{background:transparent}.
|
|
1
|
+
._root_17bdp_1{--gap: .75rem;--heading-color: var(--midas-text-primary);font-family:var(--midas-typography-font-family);color:var(--midas-text-primary);width:100%;display:flex;flex-direction:column;gap:var(--gap)}._root_17bdp_1._contained_17bdp_5{--gap: .25rem}._root_17bdp_1[data-disabled]{--heading-color: var(--midas-text-disabled)}._root_17bdp_1[data-disabled] ._triggerButton_17bdp_12{background:transparent}._item_yl8dj_1{--item-padding: 0;--content-padding: var(--midas-size-20) var(--midas-size-40) var(--midas-size-40) 1.85rem;--border: none;--accordion-background: transparent;--accordion-background-hover: transparent;--text-color: var(--midas-text-primary);--icon-color: var(--midas-icon-primary);font-family:var(--midas-typography-font-family);color:var(--text-color);background-color:var(--accordion-background);border:var(--border);border-color:var(--border-color)}._contained_yl8dj_18{--gap: .25rem;--item-padding: .75rem;--content-padding: var(--midas-size-60) var(--midas-size-80) var(--midas-size-80) var(--midas-size-80);--border-color: var(--midas-border-color-secondary);--border: 1px solid;--accordion-background: var(--midas-layer-01-base);--accordion-background-hover: var(--midas-layer-01-hover)}._success_yl8dj_29{--accordion-background: var(--midas-support-background-success);--accordion-background-hover: var(--midas-support-background-success-hover);--border-color: var(--midas-support-border-success)}._warning_yl8dj_35{--accordion-background: var(--midas-support-background-warning);--accordion-background-hover: var(--midas-support-background-warning-hover);--border-color: var(--midas-support-border-warning)}._info_yl8dj_41{--accordion-background: var(--midas-support-background-info);--accordion-background-hover: var(--midas-support-background-info-hover);--border-color: var(--midas-support-border-info)}._important_yl8dj_47{--accordion-background: var(--midas-support-background-important);--accordion-background-hover: var(--midas-support-background-important-hover);--border-color: var(--midas-support-border-important)}._item_yl8dj_1[data-disabled]{--border-color: var(--midas-border-color-disabled);--icon-color: var(--midas-text-disabled);--text-color: var(--midas-text-disabled)}._item_yl8dj_1[data-disabled] ._triggerButton_yl8dj_58{background:transparent}._item_yl8dj_1[data-disabled] ._triggerText_yl8dj_62{color:var(--midas-text-disabled)}._trigger_yl8dj_58{border:0;cursor:pointer;margin:0}._triggerMainContent_yl8dj_73{flex:1 0 0;text-align:left}._triggerText_yl8dj_62{margin:0;padding:0}._triggerButton_yl8dj_58{width:100%;padding:var(--item-padding);align-items:flex-start;min-height:unset}._chevronIcon_yl8dj_90{transform:rotate(0);transition:transform var(--midas-transitions-duration-normal) ease;padding:.125rem 0}._statusIcon_yl8dj_96{color:var(--icon-color);padding:.125rem 0}._triggerButton_yl8dj_58[aria-expanded=true] ._chevronIcon_yl8dj_90{transform:rotate(-180deg);transition:transform var(--midas-transitions-duration-normal) ease}._triggerButton_yl8dj_58[data-hovered]{background-color:var(--accordion-background-hover)}._panel_yl8dj_110[aria-hidden=true]{height:0;transition:var(--midas-transitions-duration-fast) cubic-bezier(.16,1,.3,1) allow-discrete;overflow-y:clip}._panel_yl8dj_110[aria-hidden=false]{transition:var(--midas-transitions-duration-fast) cubic-bezier(.16,1,.3,1) allow-discrete;height:auto;height:calc-size(min-content,size)}._content_yl8dj_124{height:auto;margin-top:var(--midas-size-20);padding:var(--content-padding)}._hasBackground_yl8dj_130{background-color:var(--midas-background-base)}._header_yl8dj_134{margin:0}
|
package/assets/InfoBanner.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._infoBanner_1firo_1{font-family:var(--midas-typography-font-family);color:var(--midas-text-primary);display:flex;font-size:1rem;flex-direction:row;gap:1rem;padding:1rem;line-height:1.3;border-left:3px solid var(--border);background-color:var(--bg)}._infoBanner_1firo_1._success_1firo_11{--border: var(--midas-support-border-success);--bg: var(--midas-support-background-success)}._infoBanner_1firo_1._info_1firo_1{--border: var(--midas-support-border-info);--bg: var(--midas-support-background-info)}._infoBanner_1firo_1._important_1firo_21{--border: var(--midas-support-border-important);--bg: var(--midas-support-background-important)}._infoBanner_1firo_1._warning_1firo_26{--border: var(--midas-support-border-warning);--bg: var(--midas-support-background-warning)}._content_1firo_35{display:flex;flex-direction:column;flex:1 0 0%}._heading_1firo_41{font-weight:500;margin-bottom:.25rem}._text_1firo_46{line-height:var(--midas-typography-line-height-40);white-space:pre-line;margin:0}._icon_1firo_52{color:var(--midas-icon-primary);min-width:20px}._dismissable_1firo_57{margin-top:-1rem;margin-right:-1rem;justify-self:flex-end}
|
package/assets/Table.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._table_15fd3_1{border-spacing:0;font-family:var(--midas-typography-font-family);font-size:var(--midas-typography-font-size-20);line-height:var(--midas-typography-line-height-20)}._table_15fd3_1>div{pointer-events:auto!important}._table_15fd3_1 ._tableHeader_15fd3_11 ._column_15fd3_12{background-color:var(--midas-layer-accent-01-base);color:var(--midas-text-primary);font-weight:500;padding:var(--midas-size-75) var(--midas-size-80);text-align:left}._table_15fd3_1 ._tableHeader_15fd3_11 ._column_15fd3_12[data-focus-visible]{outline:var(--midas-size-10) solid var(--midas-border-color-primary);outline-offset:-4px}._table_15fd3_1 ._tableHeader_15fd3_11 ._column_15fd3_12 ._selection_15fd3_24{height:18px}._table_15fd3_1 ._row_15fd3_30{height:100%;background-color:var(--midas-layer-01-base)}._table_15fd3_1 ._row_15fd3_30[data-focused]{outline:var(--midas-size-10) solid var(--midas-border-color-primary);outline-offset:-4px}._table_15fd3_1 ._row_15fd3_30[data-href]{cursor:pointer}._table_15fd3_1 ._row_15fd3_30[data-hovered]{background-color:var(--midas-layer-01-hover)}._table_15fd3_1 ._row_15fd3_30 ._cell_15fd3_48{border-top:1px var(--midas-border-color-subtle) solid;color:var(--midas-text-primary);padding:calc(var(--midas-size-75) - 1px) var(--midas-size-80) var(--midas-size-75)}._table_15fd3_1 ._row_15fd3_30 ._cell_15fd3_48[data-focus-visible]{outline-offset:-4px;outline:var(--midas-size-10) solid var(--midas-border-color-primary)}._table_15fd3_1 ._row_15fd3_30 ._cell_15fd3_48 ._selection_15fd3_24{height:18px}._table_15fd3_1._narrow_15fd3_65{font-size:var(--midas-typography-font-size-10);line-height:var(--midas-typography-line-height-10)}._table_15fd3_1._narrow_15fd3_65 ._column_15fd3_12{padding:var(--midas-size-20) var(--midas-size-80);height:14px}._table_15fd3_1._narrow_15fd3_65 ._column_15fd3_12 ._selection_15fd3_24{height:14px}._table_15fd3_1._narrow_15fd3_65 ._cell_15fd3_48{padding:calc(var(--midas-size-20) - 1px) var(--midas-size-80) var(--midas-size-20)}._table_15fd3_1._narrow_15fd3_65 ._cell_15fd3_48 ._selection_15fd3_24{height:16px}._table_15fd3_1._medium_15fd3_88:not(._narrow_15fd3_65) ._column_15fd3_12{padding:calc(var(--midas-size-60) - 1px) var(--midas-size-80)}._table_15fd3_1._medium_15fd3_88:not(._narrow_15fd3_65) ._cell_15fd3_48{padding:calc(var(--midas-size-60) - 2px) var(--midas-size-80) calc(var(--midas-size-60) - 1px)}._table_15fd3_1._striped_15fd3_99 ._row_15fd3_30:nth-child(2n),._table_15fd3_1._striped_15fd3_99 ._row_15fd3_30[data-even=false]{background-color:var(--midas-layer-accent-01-base)}._table_15fd3_1._striped_15fd3_99 ._row_15fd3_30:nth-child(2n)[data-hovered],._table_15fd3_1._striped_15fd3_99 ._row_15fd3_30[data-even=false][data-hovered]{background-color:var(--midas-layer-accent-01-hover)}
|
package/assets/Toast.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@keyframes
|
|
1
|
+
@keyframes _slideInEnd_hu26k_1{0%{transform:translate(calc(100% + 1rem));opacity:0}to{transform:translate(0);opacity:1}}@keyframes _slideOutEnd_hu26k_1{0%{transform:translate(0);opacity:1}to{transform:translate(calc(100% + 1rem));opacity:0}}@keyframes _slideInTop_hu26k_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _slideOutTop_hu26k_1{0%{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}._toastRegion_hu26k_49{position:fixed;left:50%;top:calc(92px + 1rem);transform:translate(-50%);display:flex;flex-direction:column;gap:8px;border:none;width:calc(100% - 2rem);z-index:var(--midas-z-index-toast)}._toastRegion_hu26k_49:focus-visible{outline:none}@media (width >= 768px){._toastRegion_hu26k_49{width:unset;left:unset;transform:unset;top:calc(80px + 1rem);right:1rem}}._toast_hu26k_49{font-family:var(--midas-typography-font-family);display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;color:var(--midas-text-primary);padding-left:calc(1rem - 3px);border-left:3px solid transparent;width:calc(100% - 1rem);font-size:.875rem}._toast_hu26k_49[data-focus-visible],._toast_hu26k_49:focus-visible{outline:none;box-shadow:var(--midas-state-focus)}._toast_hu26k_49._success_hu26k_92{--bg: var(--midas-support-background-success);--border: var(--midas-support-border-success);background:var(--bg);border-left-color:var(--border)}._toast_hu26k_49._info_hu26k_100{--bg: var(--midas-support-background-info);--border: var(--midas-support-border-info);background:var(--bg);border-left-color:var(--border)}._toast_hu26k_49._important_hu26k_108{--border: var(--midas-support-border-important);--bg: var(--midas-support-background-important);background:var(--bg);border-left-color:var(--border)}._toast_hu26k_49._warning_hu26k_116{--border: var(--midas-support-border-warning);--bg: var(--midas-support-background-warning);background:var(--bg);border-left-color:var(--border)}._toast_hu26k_49 ._icon_hu26k_124{color:var(--midas-icon-primary);flex:0 0 auto}@media (width >= 768px){._toast_hu26k_49{width:18rem}}._toastContent_hu26k_134{padding:.875rem 0;display:flex;align-items:flex-start;gap:1rem}._toastMessage_hu26k_141{padding:.125rem 0 0;margin:0;line-height:1.2}::view-transition-new(*):only-child{animation-name:_slideInTop_hu26k_1;animation-duration:.5s;animation-timing-function:cubic-bezier(.16,1,.3,1);animation-direction:normal;animation-fill-mode:both}@media (width >= 768px){::view-transition-new(*):only-child{animation-name:_slideInEnd_hu26k_1}}::view-transition-old(*):only-child{animation-name:_slideOutTop_hu26k_1;animation-duration:.5s;animation-timing-function:cubic-bezier(.16,1,.3,1);animation-direction:normal;animation-fill-mode:both}@media (width >= 768px){::view-transition-old(*):only-child{animation-name:_slideOutEnd_hu26k_1}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--midas-window-sizes-sm: 480px;--midas-window-sizes-md: 768px;--midas-window-sizes-lg: 1024px;--midas-window-sizes-xl: 1280px;--midas-color-black-base: #000000;--midas-color-black-hover: #0d0d0d;--midas-color-white-base: #ffffff;--midas-color-white-hover: #e6e6e6;--midas-color-gray-10: #f2f2f2;--midas-color-gray-20: #e6e6e6;--midas-color-gray-30: #d9d9d9;--midas-color-gray-40: #cccccc;--midas-color-gray-50: #bfbfbf;--midas-color-gray-60: #b3b3b3;--midas-color-gray-70: #a6a6a6;--midas-color-gray-80: #999999;--midas-color-gray-90: #8c8c8c;--midas-color-gray-100: #808080;--midas-color-gray-110: #737373;--midas-color-gray-120: #666666;--midas-color-gray-130: #5d5d5d;--midas-color-gray-140: #525252;--midas-color-gray-150: #474747;--midas-color-gray-160: #383838;--midas-color-gray-170: #333333;--midas-color-gray-180: #262626;--midas-color-gray-190: #212121;--midas-color-gray-200: #171717;--midas-color-blue-10: #eaf2f6;--midas-color-blue-20: #d5e5ed;--midas-color-blue-40: #abcbdb;--midas-color-blue-50: #94bcd1;--midas-color-blue-60: #82b0c9;--midas-color-blue-70: #6ca3c0;--midas-color-blue-80: #5897b8;--midas-color-blue-90: #4289ad;--midas-color-blue-100: #2e7ca5;--midas-color-blue-110: #2c7399;--midas-color-blue-120: #29698c;--midas-color-blue-130: #25607f;--midas-color-blue-150: #143c50;--midas-color-purple-80: #b46ab4;--midas-color-purple-110: #954b95;--midas-color-red-100: #b90835;--midas-color-signal-blue-10: #eaf2f6;--midas-color-signal-blue-20: #d5e5ed;--midas-color-signal-blue-100: #0066cc;--midas-color-signal-green-20: #d5f2d9;--midas-color-signal-green-30: #bae5c5;--midas-color-signal-green-100: #008d3c;--midas-color-signal-green-150: #194b33;--midas-color-signal-yellow-10: #fff8e2;--midas-color-signal-yellow-20: #fff1cd;--midas-color-signal-yellow-30: #ffeab8;--midas-color-signal-yellow-40: #ffe3a3;--midas-color-signal-yellow-50: #ffdc8b;--midas-color-signal-yellow-60: #ffd47b;--midas-color-signal-yellow-70: #fdcd5d;--midas-color-signal-yellow-80: #fbc640;--midas-color-signal-yellow-90: #fabf1b;--midas-color-signal-yellow-100: #fab900;--midas-color-signal-yellow-110: #daa105;--midas-color-signal-yellow-120: #bd8c1e;--midas-color-signal-yellow-130: #a17927;--midas-color-signal-yellow-140: #88672a;--midas-color-signal-yellow-150: #70562b;--midas-color-signal-yellow-160: #5a4629;--midas-color-signal-yellow-170: #453826;--midas-color-signal-yellow-180: #322a20;--midas-color-signal-yellow-190: #201c18;--midas-color-signal-yellow-200: #0f0e0e;--midas-color-signal-red-10: #ffefef;--midas-color-signal-red-20: #ffdfdf;--midas-color-signal-red-30: #fcc8c8;--midas-color-signal-red-40: #f9b0b0;--midas-color-signal-red-50: #f69999;--midas-color-signal-red-60: #f38181;--midas-color-signal-red-70: #ef6a6a;--midas-color-signal-red-80: #ec5252;--midas-color-signal-red-90: #e93b3b;--midas-color-signal-red-100: #e62323;--midas-color-signal-red-110: #d12020;--midas-color-signal-red-120: #bc1d1d;--midas-color-signal-red-130: #a71919;--midas-color-signal-red-140: #921616;--midas-color-signal-red-150: #7d1313;--midas-color-signal-red-160: #691010;--midas-color-signal-red-170: #540d0d;--midas-color-signal-red-180: #3f0a0a;--midas-color-signal-red-190: #2a0606;--midas-color-signal-red-200: #150303;--midas-border-width: 1px;--midas-button-icon-hover: light-dark(#0000001a, #ffffff1a);--midas-button-icon-active: light-dark(#00000033, #ffffff33);--midas-calendar-date-background-hover: light-dark(#0000001a, #ffffff1a);--midas-size-10: .125rem;--midas-size-15: .188rem;--midas-size-20: .25rem;--midas-size-30: .375rem;--midas-size-40: .5rem;--midas-size-50: .625rem;--midas-size-60: .75rem;--midas-size-70: .875rem;--midas-size-75: .938rem;--midas-size-80: 1rem;--midas-size-90: 1.25rem;--midas-size-100: 1.5rem;--midas-size-110: 1.75rem;--midas-size-120: 2rem;--midas-size-130: 2.5rem;--midas-size-140: 2.75rem;--midas-size-150: 3rem;--midas-size-00: 0;--midas-size-05: .063rem;--midas-spacing-10: .125rem;--midas-spacing-20: .25rem;--midas-spacing-30: .5rem;--midas-spacing-40: .75rem;--midas-spacing-50: 1rem;--midas-spacing-60: 1.5rem;--midas-spacing-70: 2rem;--midas-spacing-80: 2.5rem;--midas-spacing-90: 3rem;--midas-spacing-100: 4rem;--midas-spacing-110: 5rem;--midas-spacing-120: 6rem;--midas-state-focus: 0 0 0 2px light-dark(white, black), 0 0 0 4px light-dark(black, white);--midas-state-focus-inset: inset 0 0 0 2px light-dark(black, white), inset 0 0 0 4px light-dark(white, black);--midas-transitions-duration-slow: .5s;--midas-transitions-duration-normal: .3s;--midas-transitions-duration-fast: .25s;--midas-typography-font-family: Inter, sans-serif;--midas-typography-font-size-10: .75rem;--midas-typography-font-size-20: .875rem;--midas-typography-font-size-30: 1rem;--midas-typography-font-size-40: 1.125rem;--midas-typography-font-size-50: 1.25rem;--midas-typography-font-size-60: 1.5rem;--midas-typography-font-size-70: 1.75rem;--midas-typography-font-size-80: 2rem;--midas-typography-font-size-90: 2.25rem;--midas-typography-font-size-100: 2.625rem;--midas-typography-line-height-10: 1rem;--midas-typography-line-height-20: 1.125rem;--midas-typography-line-height-30: 1.25rem;--midas-typography-line-height-40: 1.375rem;--midas-typography-line-height-50: 1.5rem;--midas-typography-line-height-60: 1.75rem;--midas-typography-line-height-70: 2rem;--midas-typography-line-height-80: 2.25rem;--midas-typography-line-height-90: 2.5rem;--midas-typography-line-height-100: 2.75rem;--midas-typography-weight-thin: 100;--midas-typography-weight-extra-light: 200;--midas-typography-weight-light: 300;--midas-typography-weight-regular: 400;--midas-typography-weight-medium: 500;--midas-typography-weight-semi-bold: 600;--midas-typography-weight-bold: 700;--midas-typography-weight-extra-bold: 800;--midas-typography-weight-black: 900;--midas-z-index-base: 1;--midas-z-index-above: 10;--midas-z-index-modal: 1000;--midas-z-index-toast: 1100;--midas-z-index-skip-to-content: 1200;--midas-breakpoints-xs: (max-width: calc(var(--midas-window-sizes-sm) - 1px));--midas-breakpoints-sm: (min-width: var(--midas-window-sizes-sm));--midas-breakpoints-md: (min-width: var(--midas-window-sizes-md));--midas-breakpoints-lg: (min-width: var(--midas-window-sizes-lg));--midas-breakpoints-xl: (min-width: var(--midas-window-sizes-xl));--midas-background-base: light-dark(var(--midas-color-white-base), var(--midas-color-gray-200));--midas-background-hover: light-dark(var(--midas-color-white-hover), var(--midas-color-gray-190));--midas-background-inverse: light-dark(var(--midas-color-gray-200), var(--midas-color-gray-10));--midas-layer-01-base: light-dark(var(--midas-color-gray-10), var(--midas-color-gray-180));--midas-layer-01-hover: light-dark(var(--midas-color-gray-20), var(--midas-color-gray-170));--midas-layer-01-selected: light-dark(var(--midas-color-gray-30), var(--midas-color-gray-160));--midas-layer-01-selected-hover: light-dark(var(--midas-color-gray-40), var(--midas-color-gray-150));--midas-layer-02-base: light-dark(var(--midas-color-white-base), var(--midas-color-gray-160));--midas-layer-02-hover: light-dark(var(--midas-color-white-hover), var(--midas-color-gray-150));--midas-layer-02-selected: light-dark(var(--midas-color-gray-30), var(--midas-color-gray-140));--midas-layer-02-selected-hover: light-dark(var(--midas-color-gray-40), var(--midas-color-gray-130));--midas-layer-accent-01-base: light-dark(var(--midas-color-gray-30), var(--midas-color-gray-160));--midas-layer-accent-01-hover: light-dark(var(--midas-color-gray-40), var(--midas-color-gray-150));--midas-layer-accent-01-selected: light-dark(var(--midas-color-gray-50), var(--midas-color-gray-140));--midas-layer-accent-02-base: light-dark(var(--midas-color-gray-10), var(--midas-color-gray-180));--midas-layer-accent-02-hover: light-dark(var(--midas-color-gray-20), var(--midas-color-gray-170));--midas-layer-accent-02-selected: light-dark(var(--midas-color-gray-30), var(--midas-color-gray-160));--midas-brand-primary: light-dark(var(--midas-color-red-100), var(--midas-color-red-100));--midas-border-color-primary: light-dark(var(--midas-color-gray-200), var(--midas-color-gray-10));--midas-border-color-secondary: light-dark(var(--midas-color-gray-110), var(--midas-color-gray-90));--midas-border-color-subtle: light-dark(var(--midas-color-gray-50), var(--midas-color-gray-160));--midas-border-color-tertiary: light-dark(var(--midas-color-blue-150), var(--midas-color-blue-100));--midas-border-color-disabled: light-dark(var(--midas-color-gray-50), var(--midas-color-gray-140));--midas-field-01-base: light-dark(var(--midas-color-gray-10), var(--midas-color-gray-180));--midas-field-01-hover: light-dark(var(--midas-color-gray-20), var(--midas-color-gray-170));--midas-field-01-active: light-dark(var(--midas-color-gray-30), var(--midas-color-gray-160));--midas-field-02-base: light-dark(var(--midas-color-white-base), var(--midas-color-gray-160));--midas-field-02-hover: light-dark(var(--midas-color-white-hover), var(--midas-color-gray-150));--midas-field-02-active: light-dark(var(--midas-color-gray-30), var(--midas-color-gray-140));--midas-field-disabled: light-dark(var(--midas-color-gray-10), var(--midas-color-gray-180));--midas-skeleton-01: light-dark(var(--midas-color-gray-10), var(--midas-color-gray-180));--midas-skeleton-02: light-dark(var(--midas-color-gray-30), var(--midas-color-gray-160));--midas-icon-primary: light-dark(var(--midas-color-gray-200), var(--midas-color-gray-10));--midas-icon-secondary: light-dark(var(--midas-color-gray-140), var(--midas-color-gray-70));--midas-icon-tertiary: light-dark(var(--midas-color-blue-150), var(--midas-color-gray-10));--midas-icon-inverse: light-dark(var(--midas-color-white-base), var(--midas-color-gray-200));--midas-icon-on-color: light-dark(var(--midas-color-white-base), var(--midas-color-white-base));--midas-icon-disabled: light-dark(var(--midas-color-gray-50), var(--midas-color-gray-140));--midas-icon-success: light-dark(var(--midas-color-signal-green-100), var(--midas-color-signal-green-100));--midas-icon-info: light-dark(var(--midas-color-signal-blue-100), var(--midas-color-signal-blue-100));--midas-icon-warning: light-dark(var(--midas-color-signal-red-100), var(--midas-color-signal-red-100));--midas-icon-important: light-dark(var(--midas-color-signal-yellow-100), var(--midas-color-signal-yellow-100));--midas-link-enabled: light-dark(var(--midas-color-blue-120), var(--midas-color-blue-70));--midas-link-hover: light-dark(var(--midas-color-blue-150), var(--midas-color-blue-50));--midas-link-pressed: light-dark(var(--midas-color-gray-200), var(--midas-color-blue-40));--midas-link-visited: light-dark(var(--midas-color-purple-110), var(--midas-color-purple-80));--midas-support-border-success: light-dark(var(--midas-color-signal-green-100), var(--midas-color-signal-green-100));--midas-support-border-info: light-dark(var(--midas-color-signal-blue-100), var(--midas-color-signal-blue-100));--midas-support-border-important: light-dark(var(--midas-color-signal-yellow-100), var(--midas-color-signal-yellow-100));--midas-support-border-warning: light-dark(var(--midas-color-signal-red-100), var(--midas-color-signal-red-100));--midas-support-background-success: light-dark(var(--midas-color-signal-green-20), var(--midas-color-gray-180));--midas-support-background-success-hover: light-dark(var(--midas-color-signal-green-30), var(--midas-color-gray-170));--midas-support-background-info: light-dark(var(--midas-color-signal-blue-10), var(--midas-color-gray-180));--midas-support-background-info-hover: light-dark(var(--midas-color-signal-blue-20), var(--midas-color-gray-170));--midas-support-background-important: light-dark(var(--midas-color-signal-yellow-10), var(--midas-color-gray-180));--midas-support-background-important-hover: light-dark(var(--midas-color-signal-yellow-20), var(--midas-color-gray-170));--midas-support-background-warning: light-dark(var(--midas-color-signal-red-20), var(--midas-color-gray-180));--midas-support-background-warning-hover: light-dark(var(--midas-color-signal-red-30), var(--midas-color-gray-170));--midas-text-primary: light-dark(var(--midas-color-gray-200), var(--midas-color-gray-10));--midas-text-secondary: light-dark(var(--midas-color-gray-140), var(--midas-color-gray-70));--midas-text-tertiary: light-dark(var(--midas-color-blue-150), var(--midas-color-gray-10));--midas-text-on-color: light-dark(var(--midas-color-white-base), var(--midas-color-white-base));--midas-text-inverse: light-dark(var(--midas-color-gray-10), var(--midas-color-gray-200));--midas-text-disabled: light-dark(var(--midas-color-gray-50), var(--midas-color-gray-140));--midas-text-warning: light-dark(var(--midas-color-signal-red-100), var(--midas-color-signal-red-80));--midas-text-placeholder: light-dark(var(--midas-color-gray-70), var(--midas-color-gray-140));--midas-button-background-primary-base: light-dark(var(--midas-color-blue-150), var(--midas-color-blue-100));--midas-button-background-primary-hover: light-dark(var(--midas-color-blue-130), var(--midas-color-blue-130));--midas-button-background-primary-active: light-dark(var(--midas-color-blue-100), var(--midas-color-blue-150));--midas-button-background-secondary-base: light-dark(var(--midas-color-white-base), var(--midas-color-gray-200));--midas-button-background-secondary-hover: light-dark(var(--midas-color-white-hover), var(--midas-color-gray-190));--midas-button-background-secondary-active: light-dark(var(--midas-color-gray-30), var(--midas-color-gray-180));--midas-button-background-tertiary-hover: light-dark(var(--midas-color-white-hover), var(--midas-color-gray-190));--midas-button-background-tertiary-active: light-dark(var(--midas-color-gray-30), var(--midas-color-gray-180));--midas-button-background-danger-base: light-dark(var(--midas-color-signal-red-100), var(--midas-color-signal-red-100));--midas-button-background-danger-hover: light-dark(var(--midas-color-signal-red-120), var(--midas-color-signal-red-120));--midas-button-background-danger-active: light-dark(var(--midas-color-signal-red-150), var(--midas-color-signal-red-150));--midas-button-background-disabled: light-dark(var(--midas-color-gray-10), var(--midas-color-gray-180));--midas-button-border-secondary: light-dark(var(--midas-color-blue-150), var(--midas-color-gray-10));--midas-badge-background: light-dark(var(--midas-color-signal-red-100), var(--midas-color-signal-red-100));--midas-calendar-date-background-selected: light-dark(var(--midas-color-blue-150), var(--midas-color-blue-80));--midas-calendar-date-background-start-range: light-dark(var(--midas-color-blue-150), var(--midas-color-blue-80));--midas-calendar-date-background-in-range: light-dark(var(--midas-color-blue-20), var(--midas-color-blue-150));--midas-calendar-date-background-end-range: light-dark(var(--midas-color-blue-150), var(--midas-color-blue-80));--midas-logo-primary: light-dark(var(--midas-color-red-100), var(--midas-color-white-base));--midas-menu-item-background-hover: light-dark(var(--midas-color-gray-20), var(--midas-color-gray-190));--midas-menu-item-background-selected: light-dark(var(--midas-color-gray-10), var(--midas-color-gray-180));--midas-menu-text-section-header: light-dark(var(--midas-color-blue-120), var(--midas-color-blue-80))}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:100 900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/inter:vf@latest/latin-wght-normal.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:root{color-scheme:light dark}
|
package/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./AccordionItem-Bq8nUKg4.cjs"),l=require("./BadgeContainer-su0iCJKy.cjs"),L=require("./Breadcrumbs-BQLxFZVm.cjs"),m=require("./Button-D_tRdPW9.cjs"),I=require("./ButtonGroup-zx-9mxbJ.cjs"),T=require("./RangeCalendar-KcJooXYf.cjs"),e=require("./Card-UolcSL5O.cjs"),D=require("./CharacterCounter-CnRv-iUP.cjs"),k=require("./Checkbox-dtZfsSfx.cjs"),P=require("./CheckboxGroup-DbmYdQEv.cjs"),G=require("./ColorSchemeSwitch-D5juAHPc.cjs"),s=require("./ComboBox-CvD0t2T2.cjs"),R=require("./DateField-DJAQH95Q.cjs"),d=require("./DateInputDivider-BnSo_Aox.cjs"),g=require("./DateRangePicker-CljQy8oD.cjs"),B=require("./Dropdown-C_W6Sizy.cjs"),h=require("./FieldError-Cornph2A.cjs"),C=require("./FileUpload-D3RaARDV.cjs"),v=require("./Grid-Bn1bCTH8.cjs"),A=require("./GridItem-luVsL9lu.cjs"),F=require("./Heading-D3FR_KXb.cjs"),M=require("./InfoBanner-C82hcpzj.cjs"),w=require("./Label-Dp85Vue3.cjs"),t=require("./Layout-DlE30BHE.cjs"),f=require("./Link-ePZ3nrAW.cjs"),y=require("./LinkButton-Cw73pOM2.cjs"),H=require("./Logo-CFjZc5u2.cjs"),$=require("./Dialog-doGnVsJJ.cjs"),E=require("./Popover-Bi5yJEoE.cjs"),O=require("./ProgressBar-CgbE08QT.cjs"),b=require("./Radio-BagVPvJX.cjs"),N=require("./SearchField-BA-X9dzb.cjs"),_=require("./Select-xBp51JSl.cjs"),Q=require("./Skeleton-MaBUPqhT.cjs"),Z=require("./Spinner-DxWDMW6e.cjs"),o=require("./Table-Dyqa6_rE.cjs"),n=require("./TabList-3fErCDyP.cjs"),p=require("./Tag-BweDKw1v.cjs"),j=require("./Text-BAFsaON-.cjs"),a=require("./TextArea-BTmzOUZd.cjs"),r=require("./Toast-Cs0CEbRr.cjs"),q=require("./ToggleButtonGroup-DY9S3USc.cjs"),S=require("./Tooltip-CZa9n5sT.cjs"),u=require("./ListBoxSection-BeDwnVZx.cjs"),x=require("./ListBoxLoadMoreItem-3jGpi90m.cjs"),i=require("./Separator-Cfv2pbWf.cjs"),U=require("./usePress-CicXV7UO.cjs"),z=require("./Dialog-DR6nEqMT.cjs");exports.ACCORDION_TEST_ID=c.ACCORDION_TEST_ID;exports.Accordion=c.Accordion;exports.AccordionItem=c.AccordionItem;exports.Badge=l.Badge;exports.BadgeContainer=l.BadgeContainer;exports.Breadcrumbs=L.Breadcrumbs;exports.Button=m.Button;exports.ButtonGroup=I.ButtonGroup;exports.Calendar=T.Calendar;exports.RangeCalendar=T.RangeCalendar;exports.Card=e.Card;exports.CardActionArea=e.CardActionArea;exports.CardActions=e.CardActions;exports.CardContent=e.CardContent;exports.CardImage=e.CardImage;exports.CardLink=e.CardLink;exports.CardTitle=e.CardTitle;exports.CharacterCounter=D.CharacterCounter;exports.Checkbox=k.Checkbox;exports.CheckboxGroup=P.CheckboxGroup;exports.ColorSchemeSwitch=G.ColorSchemeSwitch;exports.ComboBox=s.ComboBox;exports.ComboBoxItem=s.ComboBoxItem;exports.ComboBoxSection=s.ComboBoxSection;exports.DateField=R.DateField;exports.DateInput=d.DateInput;exports.DateInputDivider=d.DateInputDivider;exports.DateSegment=d.DateSegment;exports.DatePicker=g.DatePicker;exports.DateRangePicker=g.DateRangePicker;exports.Dropdown=B.Dropdown;exports.DropdownItem=B.DropdownItem;exports.FieldError=h.FieldError;exports.DropZone=C.DropZone;exports.FileTrigger=C.FileTrigger;exports.Grid=v.Grid;exports.GridItem=A.GridItem;exports.Heading=F.Heading;exports.InfoBanner=M.InfoBanner;exports.Label=w.Label;exports.Header=t.Header;exports.Layout=t.Layout;exports.Navbar=t.Navbar;exports.Sidebar=t.Sidebar;exports.SidebarLink=t.SidebarLink;exports.Link=f.Link;exports.LinkButton=y.LinkButton;exports.Logo=H.Logo;exports.Modal=$.Modal;exports.Popover=E.Popover;exports.ProgressBar=O.ProgressBar;exports.Radio=b.Radio;exports.RadioGroup=b.RadioGroup;exports.SearchField=N.SearchField;exports.Select=_.Select;exports.Skeleton=Q.Skeleton;exports.Spinner=Z.Spinner;exports.Cell=o.Cell;exports.Column=o.Column;exports.Row=o.Row;exports.Table=o.Table;exports.TableBody=o.TableBody;exports.TableHeader=o.TableHeader;exports.Tab=n.Tab;exports.TabList=n.TabList;exports.TabPanel=n.TabPanel;exports.Tabs=n.Tabs;exports.Tag=p.Tag;exports.TagGroup=p.TagGroup;exports.Text=j.Text;exports.Input=a.Input;exports.TextArea=a.TextArea;exports.TextField=a.TextField;exports.TextFieldBase=a.TextFieldBase;exports.GlobalToastRegion=r.GlobalToastRegion;exports.Toast=r.Toast;exports.ToastProvider=r.ToastProvider;exports.ToastRegion=r.ToastRegion;exports.toastQueue=r.toastQueue;exports.useToastState=r.useToastState;exports.ToggleButton=q.ToggleButton;exports.ToggleButtonGroup=q.ToggleButtonGroup;exports.Tooltip=S.Tooltip;exports.TooltipTrigger=S.TooltipTrigger;exports.ListBox=u.ListBox;exports.ListBoxItem=u.ListBoxItem;exports.ListBoxPopover=u.ListBoxPopover;exports.ListBoxSection=u.ListBoxSection;exports.ListBoxButton=x.ListBoxButton;exports.ListBoxLoadMoreItem=x.ListBoxLoadMoreItem;exports.Menu=i.Menu;exports.MenuItem=i.MenuItem;exports.MenuPopover=i.MenuPopover;exports.MenuSection=i.MenuSection;exports.Separator=i.Separator;exports.RouterProvider=U.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb;exports.DialogTrigger=z.$de32f1b87079253c$export$2e1e1122cf0cba88;
|