@midas-ds/components 15.0.0 → 15.1.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/AccordionItem-8UtB6O1X.js +347 -0
- package/AccordionItem-DKE794Si.cjs +1 -0
- package/CHANGELOG.md +15 -3
- package/{ComboBox-BDX4BYWJ.js → ComboBox-BgqJgBYV.js} +2 -2
- package/{ComboBox-DFPrJUoV.cjs → ComboBox-lQ8Gfsyj.cjs} +1 -1
- package/{ListBox-u6ZXp5Yi.cjs → ListBox-2wZ6XOeD.cjs} +1 -1
- package/{ListBox-LJ3VgZMr.js → ListBox-Der0Te-R.js} +22 -22
- package/{ListBoxLoadMoreItem-DMUOzVtt.cjs → ListBoxLoadMoreItem-CTldtPr1.cjs} +1 -1
- package/{ListBoxLoadMoreItem-B4GFbdYf.js → ListBoxLoadMoreItem-CzGGgav4.js} +1 -1
- package/{ListBoxSection-CBlpg0AG.cjs → ListBoxSection-C_PqDyMP.cjs} +1 -1
- package/{ListBoxSection-DjGs1ndn.js → ListBoxSection-D9EUOerv.js} +1 -1
- package/{Select-CiCng7ZP.js → Select-D55aInrV.js} +2 -2
- package/{Select-JIDW2mN8.cjs → Select-DUthwkvg.cjs} +1 -1
- package/{Select-D4wi-0Jw.cjs → Select-DWLD64cL.cjs} +1 -1
- package/{Select-C-ykeY_T.js → Select-Dbfur2xF.js} +1 -1
- package/accordion/Accordion.d.ts +5 -0
- package/accordion/AccordionContext.d.ts +2 -3
- package/accordion/AccordionItem.d.ts +5 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/ListBox.css +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/index.cjs +1 -1
- package/index.js +7 -7
- package/legacy-select/index.cjs +1 -1
- package/legacy-select/index.js +1 -1
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +3 -3
- package/package.json +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/AccordionItem-DTbu3lqx.js +0 -343
- package/AccordionItem-tWS22wDv.cjs +0 -1
package/assets/ListBox.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._listBox_1k43m_4{max-height:295px;overflow-y:auto}._listBox_1k43m_4>div{pointer-events:auto!important}._listBoxPopover_1k43m_16{font-family:var(--midas-typography-font-family);width:var(--trigger-width);background:var(--midas-layer-01-base);overflow-y:auto;box-shadow:0 3px 5px #0003}@media (forced-colors: active){._listBoxPopover_1k43m_16{border:1px solid var(--midas-border-color-primary)}}._listBoxSectionHeading_1k43m_31{background-color:var(--midas-layer-01-base);font-family:var(--midas-typography-font-family);display:block;padding:var(--midas-spacing-50) var(--midas-spacing-50) var(--midas-spacing-20) var(--midas-spacing-40);font-weight:500;font-size:var(--midas-typography-font-size-20);line-height:var(--midas-typography-line-height-20);color:var(--midas-menu-text-section-header)}._listBoxButton_1k43m_43{all:unset;width:100%;box-sizing:border-box;margin-bottom:2px!important}._listBoxButton_1k43m_43:focus-visible{box-shadow:var(--midas-state-focus-inset);outline:none}._listBoxItem_1k43m_55{align-items:center;background-color:var(--midas-layer-01-base);color:var(--midas-text-primary);display:flex;font-family:var(--midas-typography-font-family);line-height:var(--midas-typography-line-height-30);margin-bottom:0;padding:var(--midas-size-70) var(--midas-spacing-50);transition:background-color 60ms;gap:var(--midas-spacing-50)}._listBoxItem_1k43m_55:hover:not([data-disabled]){background-color:var(--midas-layer-01-hover);cursor:pointer;transition-delay:60ms}._listBoxItem_1k43m_55[data-disabled]{color:var(--midas-text-disabled);cursor:not-allowed}._listBoxItem_1k43m_55[data-selected]{background-color:var(--midas-layer-01-selected)}._listBoxItem_1k43m_55[data-selected]:hover:not([data-disabled]){background-color:var(--midas-layer-01-selected-hover);transition-delay:60ms}._listBoxItem_1k43m_55[data-focused]{outline:none;box-shadow:none}@media (forced-colors: active){._listBoxItem_1k43m_55[data-focused]{outline:var(--midas-state-focus-contrast-mode-outline) solid highlight!important;outline-offset:calc(var(--midas-state-focus-contrast-mode-outline) * -1)}}._listBoxItem_1k43m_55[data-focus-visible]{box-shadow:var(--midas-state-focus-inset);outline:none}._listBoxItem_1k43m_55[data-show-selection]{justify-content:space-between}._listBoxItem_1k43m_55[data-show-selection][data-selection-mode=single][data-selected]:after{content:"";background-color:var(--midas-text-primary);width:var(--midas-size-80);height:var(--midas-size-80);mask:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWNoZWNrLWljb24gbHVjaWRlLWNoZWNrIj48cGF0aCBkPSJNMjAgNiA5IDE3bC01LTUiLz48L3N2Zz4=);-webkit-mask-size:var(--midas-size-80) var(--midas-size-80);mask-size:var(--midas-size-80) var(--midas-size-80);flex-shrink:0}@media (forced-colors: active){{filter:invert(1)}}._listBoxItem_1k43m_55[data-show-selection][data-selection-mode=multiple]{justify-content:flex-start;gap:var(--midas-spacing-30)}._listBoxItem_1k43m_55[data-show-selection][data-selection-mode=multiple]:before{transition:all .2s;box-sizing:border-box;content:"";border:1px solid var(--midas-border-color-primary);min-width:var(--midas-size-80);height:var(--midas-size-80)}._listBoxItem_1k43m_55[data-show-selection][data-selection-mode=multiple][data-selected]:before{min-width:var(--midas-size-80);min-height:var(--midas-size-80);background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jaGVjay1pY29uIGx1Y2lkZS1jaGVjayI+PHBhdGggZD0iTTIwIDYgOSAxN2wtNS01Ii8+PC9zdmc+);background-size:contain;background-color:var(--midas-button-background-primary-base);border-color:var(--midas-button-background-primary-base)}._listBoxItem_1k43m_55[data-show-selection][data-selection-mode=multiple][data-selected][data-hovered]:before{background-color:var(--midas-button-background-primary-hover);border-color:var(--midas-button-background-primary-hover)}@media (forced-colors: active){{background-color:SelectedItem;border-color:SelectedItem}}._listBoxLoadMoreItem_1k43m_167{align-items:center;display:flex;gap:var(--midas-spacing-50);line-height:var(--midas-typography-line-height-30);padding:var(--midas-spacing-50) var(--midas-spacing-50) var(--midas-spacing-40) var(--midas-spacing-50)}
|
package/combobox/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../ComboBox-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../ComboBox-lQ8Gfsyj.cjs");exports.ComboBox=o.ComboBox;exports.ComboBoxItem=o.ComboBoxItem;exports.ComboBoxSection=o.ComboBoxSection;
|
package/combobox/index.js
CHANGED
package/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./AccordionItem-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./AccordionItem-DKE794Si.cjs"),l=require("./BadgeContainer-BZl6mSeb.cjs"),m=require("./Breadcrumbs-BBDGxc68.cjs"),I=require("./Button-BEWKXjlP.cjs"),D=require("./ButtonGroup-BpvDDECt.cjs"),g=require("./RangeCalendar-CH0CyBui.cjs"),e=require("./Card-Db9xdzJ0.cjs"),k=require("./CharacterCounter-CTpQ12f7.cjs"),P=require("./Checkbox-BgrLxY6P.cjs"),G=require("./CheckboxGroup-thvsvOqD.cjs"),h=require("./ColorSchemeSwitch-Ckna0otR.cjs"),u=require("./ComboBox-lQ8Gfsyj.cjs"),R=require("./DateField-B92Cqf9K.cjs"),s=require("./DateInputDivider-CCrXjsUB.cjs"),T=require("./DateRangePicker-COSTCOt8.cjs"),B=require("./Dropdown-_g9l5k07.cjs"),v=require("./FieldError-JWxR_EqN.cjs"),b=require("./FileUpload-C0TjNkuh.cjs"),F=require("./Grid-B6G4PWn5.cjs"),M=require("./GridItem-BZ8eOXMB.cjs"),A=require("./Heading-x7y3xadc.cjs"),$=require("./InfoBanner-_M_rGQiu.cjs"),w=require("./Label-DpY2SZdQ.cjs"),t=require("./Layout-BrEuHajQ.cjs"),f=require("./Link-BvUSTIip.cjs"),H=require("./LinkButton-DGdnbTgR.cjs"),y=require("./Logo-4tRnV4Su.cjs"),E=require("./Dialog-DtOf0vWx.cjs"),N=require("./Popover-DpB0XDBp.cjs"),Q=require("./ProgressBar-BZqAQTV3.cjs"),C=require("./Radio-B3FBTn4F.cjs"),Z=require("./SearchField-BX7P7BgV.cjs"),j=require("./Select-DWLD64cL.cjs"),O=require("./Select-DUthwkvg.cjs"),U=require("./Skeleton-8onymGEG.cjs"),z=require("./Spinner-DIapnvIz.cjs"),o=require("./Table-B1nxmW14.cjs"),a=require("./TabList-DVzXuGXA.cjs"),p=require("./Tag-BL-_PONN.cjs"),J=require("./Text-D5OSv6Uv.cjs"),n=require("./TextArea-Bjf8CBp0.cjs"),r=require("./Toast-DUZ5jfG1.cjs"),q=require("./ToggleButtonGroup-dnvnzkaD.cjs"),x=require("./Tooltip-D-ATlbIM.cjs"),K=require("./ListBox-2wZ6XOeD.cjs"),L=require("./ListBoxLoadMoreItem-CTldtPr1.cjs"),c=require("./ListBoxSection-C_PqDyMP.cjs"),i=require("./Separator-CSyYDGNE.cjs"),V=require("./usePress-DmU79HEg.cjs"),S=require("./Dialog-DycTLpdr.cjs");exports.Accordion=d.Accordion;exports.AccordionItem=d.AccordionItem;exports.Badge=l.Badge;exports.BadgeContainer=l.BadgeContainer;exports.Breadcrumbs=m.Breadcrumbs;exports.Button=I.Button;exports.ButtonGroup=D.ButtonGroup;exports.Calendar=g.Calendar;exports.RangeCalendar=g.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=k.CharacterCounter;exports.Checkbox=P.Checkbox;exports.CheckboxGroup=G.CheckboxGroup;exports.ColorSchemeSwitch=h.ColorSchemeSwitch;exports.ComboBox=u.ComboBox;exports.ComboBoxItem=u.ComboBoxItem;exports.ComboBoxSection=u.ComboBoxSection;exports.DateField=R.DateField;exports.DateInput=s.DateInput;exports.DateInputDivider=s.DateInputDivider;exports.DateSegment=s.DateSegment;exports.DatePicker=T.DatePicker;exports.DateRangePicker=T.DateRangePicker;exports.Dropdown=B.Dropdown;exports.DropdownItem=B.DropdownItem;exports.FieldError=v.FieldError;exports.DropZone=b.DropZone;exports.FileTrigger=b.FileTrigger;exports.Grid=F.Grid;exports.GridItem=M.GridItem;exports.Heading=A.Heading;exports.InfoBanner=$.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=H.LinkButton;exports.Logo=y.Logo;exports.Modal=E.Modal;exports.Popover=N.Popover;exports.ProgressBar=Q.ProgressBar;exports.Radio=C.Radio;exports.RadioGroup=C.RadioGroup;exports.SearchField=Z.SearchField;exports.Select=j.Select;exports.LegacySelect=O.Select;exports.Skeleton=U.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=a.Tab;exports.TabList=a.TabList;exports.TabPanel=a.TabPanel;exports.Tabs=a.Tabs;exports.Tag=p.Tag;exports.TagGroup=p.TagGroup;exports.Text=J.Text;exports.Input=n.Input;exports.TextArea=n.TextArea;exports.TextField=n.TextField;exports.TextFieldBase=n.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=x.Tooltip;exports.TooltipTrigger=x.TooltipTrigger;exports.ListBox=K.ListBox;exports.ListBoxButton=L.ListBoxButton;exports.ListBoxLoadMoreItem=L.ListBoxLoadMoreItem;exports.ListBoxHeader=c.ListBoxHeader;exports.ListBoxItem=c.ListBoxItem;exports.ListBoxPopover=c.ListBoxPopover;exports.ListBoxSection=c.ListBoxSection;exports.Menu=i.Menu;exports.MenuItem=i.MenuItem;exports.MenuPopover=i.MenuPopover;exports.MenuSection=i.MenuSection;exports.Separator=i.Separator;exports.RouterProvider=V.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb;exports.DialogTrigger=S.$de32f1b87079253c$export$2e1e1122cf0cba88;exports.MenuTrigger=S.$3674c52c6b3c5bce$export$27d2ad3c5815583e;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as r, A as e } from "./AccordionItem-
|
|
1
|
+
import { a as r, A as e } from "./AccordionItem-8UtB6O1X.js";
|
|
2
2
|
import { B as s, a as p } from "./BadgeContainer-DilMiV6u.js";
|
|
3
3
|
import { B as m } from "./Breadcrumbs-BenPNv8Z.js";
|
|
4
4
|
import { B as i } from "./Button-DdXFHfXw.js";
|
|
@@ -9,7 +9,7 @@ import { C as G } from "./CharacterCounter-gbDGfize.js";
|
|
|
9
9
|
import { C as R } from "./Checkbox-CdN1D5pD.js";
|
|
10
10
|
import { C as M } from "./CheckboxGroup-CtJJqk_q.js";
|
|
11
11
|
import { C as v } from "./ColorSchemeSwitch-aF2UxI20.js";
|
|
12
|
-
import { C as h, a as H, b as w } from "./ComboBox-
|
|
12
|
+
import { C as h, a as H, b as w } from "./ComboBox-BgqJgBYV.js";
|
|
13
13
|
import { D as N } from "./DateField-BPRWrVcu.js";
|
|
14
14
|
import { a as E, b as Q, D as Z } from "./DateInputDivider-DOHpVaNE.js";
|
|
15
15
|
import { D as q, a as z } from "./DateRangePicker-Cmt9NC35.js";
|
|
@@ -30,8 +30,8 @@ import { P as Go } from "./Popover-CS8Yyfrq.js";
|
|
|
30
30
|
import { P as Ro } from "./ProgressBar-BpsvPCKk.js";
|
|
31
31
|
import { R as Mo, a as Fo } from "./Radio-LevFYAg4.js";
|
|
32
32
|
import { S as Ao } from "./SearchField-C-TFzcJF.js";
|
|
33
|
-
import { S as Ho } from "./Select-
|
|
34
|
-
import { S as yo } from "./Select-
|
|
33
|
+
import { S as Ho } from "./Select-Dbfur2xF.js";
|
|
34
|
+
import { S as yo } from "./Select-D55aInrV.js";
|
|
35
35
|
import { S as $o } from "./Skeleton-BjTEGRpe.js";
|
|
36
36
|
import { S as Qo } from "./Spinner-D6Fcu_Dp.js";
|
|
37
37
|
import { b as jo, C as qo, R as zo, T as Jo, c as Ko, a as Oo } from "./Table-DxqKDp7N.js";
|
|
@@ -42,9 +42,9 @@ import { I as sa, b as pa, a as xa, T as ma } from "./TextArea-CJPBvogq.js";
|
|
|
42
42
|
import { G as ia, b as na, T as da, a as Ta, t as la, u as Ca } from "./Toast-B99bLWnh.js";
|
|
43
43
|
import { T as ba, a as ga } from "./ToggleButtonGroup-CFRutAZ4.js";
|
|
44
44
|
import { T as ca, a as La } from "./Tooltip-CUdmOznK.js";
|
|
45
|
-
import { L as Da } from "./ListBox-
|
|
46
|
-
import { L as Ga, a as Pa } from "./ListBoxLoadMoreItem-
|
|
47
|
-
import { c as ka, L as Ma, a as Fa, b as va } from "./ListBoxSection-
|
|
45
|
+
import { L as Da } from "./ListBox-Der0Te-R.js";
|
|
46
|
+
import { L as Ga, a as Pa } from "./ListBoxLoadMoreItem-CzGGgav4.js";
|
|
47
|
+
import { c as ka, L as Ma, a as Fa, b as va } from "./ListBoxSection-D9EUOerv.js";
|
|
48
48
|
import { M as ha, a as Ha, b as wa, c as ya, S as Na } from "./Separator-DLr4kUJD.js";
|
|
49
49
|
import { $ as Ea } from "./usePress-BqQIhkNY.js";
|
|
50
50
|
import { $ as Za, a as ja } from "./Dialog-D4Py85wi.js";
|
package/legacy-select/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select-DUthwkvg.cjs");exports.LegacySelect=e.Select;
|
package/legacy-select/index.js
CHANGED
package/list-box/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ListBox-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ListBox-2wZ6XOeD.cjs"),t=require("../ListBoxLoadMoreItem-CTldtPr1.cjs"),o=require("../ListBoxSection-C_PqDyMP.cjs");exports.ListBox=e.ListBox;exports.ListBoxButton=t.ListBoxButton;exports.ListBoxLoadMoreItem=t.ListBoxLoadMoreItem;exports.ListBoxHeader=o.ListBoxHeader;exports.ListBoxItem=o.ListBoxItem;exports.ListBoxPopover=o.ListBoxPopover;exports.ListBoxSection=o.ListBoxSection;
|
package/list-box/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as s } from "../ListBox-
|
|
2
|
-
import { L, a as e } from "../ListBoxLoadMoreItem-
|
|
3
|
-
import { c as r, L as i, a as B, b as m } from "../ListBoxSection-
|
|
1
|
+
import { L as s } from "../ListBox-Der0Te-R.js";
|
|
2
|
+
import { L, a as e } from "../ListBoxLoadMoreItem-CzGGgav4.js";
|
|
3
|
+
import { c as r, L as i, a as B, b as m } from "../ListBoxSection-D9EUOerv.js";
|
|
4
4
|
export {
|
|
5
5
|
s as ListBox,
|
|
6
6
|
L as ListBoxButton,
|
package/package.json
CHANGED
package/select/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select-DWLD64cL.cjs");exports.Select=e.Select;
|
package/select/index.js
CHANGED
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
import { jsx as u, jsxs as A } from "react/jsx-runtime";
|
|
2
|
-
import { c as y } from "./clsx-jbLnTBqA.js";
|
|
3
|
-
import { i as z } from "./icon-map-uS87FT_Q.js";
|
|
4
|
-
import h, { useRef as K, useCallback as g, useEffect as E, useMemo as N, forwardRef as P, createContext as x, useContext as v } from "react";
|
|
5
|
-
import { e as S } from "./Button-BbfVT9Yl.js";
|
|
6
|
-
import { $ as G, a as w, f as B, g as q, h as O } from "./utils-D2iKpxcZ.js";
|
|
7
|
-
import { c as _, $ as J, a as M } from "./mergeProps-Ct8m5-xW.js";
|
|
8
|
-
import { $ as C } from "./filterDOMProps-wsa9OcNI.js";
|
|
9
|
-
import { $ as R } from "./useControlledState-u436Wbp1.js";
|
|
10
|
-
import { flushSync as L } from "react-dom";
|
|
11
|
-
import { $ as Q } from "./useEvent-smuTnX4G.js";
|
|
12
|
-
import { $ as U } from "./SSRProvider-D8lZ0o6A.js";
|
|
13
|
-
import { $ as F } from "./useFocusRing-CcxI7nbg.js";
|
|
14
|
-
import { B as X } from "./Button-DdXFHfXw.js";
|
|
15
|
-
import { H as Y } from "./Heading-CCoGfKQ8.js";
|
|
16
|
-
import { C as Z } from "./chevron-down-DmZMdOiC.js";
|
|
17
|
-
import './assets/AccordionItem.css';const ee = "_root_17bdp_1", te = "_contained_17bdp_5", b = {
|
|
18
|
-
root: ee,
|
|
19
|
-
contained: te
|
|
20
|
-
};
|
|
21
|
-
function ne(d, e, a) {
|
|
22
|
-
let { isDisabled: n } = d, s = _(), i = _(), o = U(), l = K(null), r = g(() => {
|
|
23
|
-
l.current = requestAnimationFrame(() => {
|
|
24
|
-
a.current && a.current.setAttribute("hidden", "until-found");
|
|
25
|
-
}), L(() => {
|
|
26
|
-
e.toggle();
|
|
27
|
-
});
|
|
28
|
-
}, [
|
|
29
|
-
a,
|
|
30
|
-
e
|
|
31
|
-
]);
|
|
32
|
-
Q(a, "beforematch", r);
|
|
33
|
-
let c = K(null);
|
|
34
|
-
return J(() => {
|
|
35
|
-
if (l.current && cancelAnimationFrame(l.current), a.current && !n && !o) {
|
|
36
|
-
let t = a.current;
|
|
37
|
-
c.current == null || typeof t.getAnimations != "function" ? e.isExpanded ? (t.removeAttribute("hidden"), t.style.setProperty("--disclosure-panel-width", "auto"), t.style.setProperty("--disclosure-panel-height", "auto")) : (t.setAttribute("hidden", "until-found"), t.style.setProperty("--disclosure-panel-width", "0px"), t.style.setProperty("--disclosure-panel-height", "0px")) : e.isExpanded !== c.current && (e.isExpanded ? (t.removeAttribute("hidden"), t.style.setProperty("--disclosure-panel-width", t.scrollWidth + "px"), t.style.setProperty("--disclosure-panel-height", t.scrollHeight + "px"), Promise.all(t.getAnimations().map((p) => p.finished)).then(() => {
|
|
38
|
-
t.style.setProperty("--disclosure-panel-width", "auto"), t.style.setProperty("--disclosure-panel-height", "auto");
|
|
39
|
-
}).catch(() => {
|
|
40
|
-
})) : (t.style.setProperty("--disclosure-panel-width", t.scrollWidth + "px"), t.style.setProperty("--disclosure-panel-height", t.scrollHeight + "px"), window.getComputedStyle(t).height, t.style.setProperty("--disclosure-panel-width", "0px"), t.style.setProperty("--disclosure-panel-height", "0px"), Promise.all(t.getAnimations().map((p) => p.finished)).then(() => t.setAttribute("hidden", "until-found")).catch(() => {
|
|
41
|
-
}))), c.current = e.isExpanded;
|
|
42
|
-
}
|
|
43
|
-
}, [
|
|
44
|
-
n,
|
|
45
|
-
a,
|
|
46
|
-
e.isExpanded,
|
|
47
|
-
o
|
|
48
|
-
]), E(() => () => {
|
|
49
|
-
l.current && cancelAnimationFrame(l.current);
|
|
50
|
-
}, []), {
|
|
51
|
-
buttonProps: {
|
|
52
|
-
id: s,
|
|
53
|
-
"aria-expanded": e.isExpanded,
|
|
54
|
-
"aria-controls": i,
|
|
55
|
-
onPress: (t) => {
|
|
56
|
-
!n && t.pointerType !== "keyboard" && e.toggle();
|
|
57
|
-
},
|
|
58
|
-
isDisabled: n,
|
|
59
|
-
onPressStart(t) {
|
|
60
|
-
t.pointerType === "keyboard" && !n && e.toggle();
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
panelProps: {
|
|
64
|
-
id: i,
|
|
65
|
-
// This can be overridden at the panel element level.
|
|
66
|
-
role: "group",
|
|
67
|
-
"aria-labelledby": s,
|
|
68
|
-
"aria-hidden": !e.isExpanded,
|
|
69
|
-
hidden: o || n ? n || !e.isExpanded : void 0
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
function ae(d) {
|
|
74
|
-
let [e, a] = R(d.isExpanded, d.defaultExpanded || !1, d.onExpandedChange);
|
|
75
|
-
const n = g(() => {
|
|
76
|
-
a(!0);
|
|
77
|
-
}, [
|
|
78
|
-
a
|
|
79
|
-
]), s = g(() => {
|
|
80
|
-
a(!1);
|
|
81
|
-
}, [
|
|
82
|
-
a
|
|
83
|
-
]), i = g(() => {
|
|
84
|
-
a(!e);
|
|
85
|
-
}, [
|
|
86
|
-
a,
|
|
87
|
-
e
|
|
88
|
-
]);
|
|
89
|
-
return {
|
|
90
|
-
isExpanded: e,
|
|
91
|
-
setExpanded: a,
|
|
92
|
-
expand: n,
|
|
93
|
-
collapse: s,
|
|
94
|
-
toggle: i
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
function se(d) {
|
|
98
|
-
let { allowsMultipleExpanded: e = !1, isDisabled: a = !1 } = d, [n, s] = R(N(() => d.expandedKeys ? new Set(d.expandedKeys) : void 0, [
|
|
99
|
-
d.expandedKeys
|
|
100
|
-
]), N(() => d.defaultExpandedKeys ? new Set(d.defaultExpandedKeys) : /* @__PURE__ */ new Set(), [
|
|
101
|
-
d.defaultExpandedKeys
|
|
102
|
-
]), d.onExpandedChange);
|
|
103
|
-
return E(() => {
|
|
104
|
-
if (!e && n.size > 1) {
|
|
105
|
-
let i = n.values().next().value;
|
|
106
|
-
i != null && s(/* @__PURE__ */ new Set([
|
|
107
|
-
i
|
|
108
|
-
]));
|
|
109
|
-
}
|
|
110
|
-
}), {
|
|
111
|
-
allowsMultipleExpanded: e,
|
|
112
|
-
isDisabled: a,
|
|
113
|
-
expandedKeys: n,
|
|
114
|
-
setExpandedKeys: s,
|
|
115
|
-
toggleKey(i) {
|
|
116
|
-
let o;
|
|
117
|
-
e ? (o = new Set(n), o.has(i) ? o.delete(i) : o.add(i)) : o = new Set(n.has(i) ? [] : [
|
|
118
|
-
i
|
|
119
|
-
]), s(o);
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
const W = /* @__PURE__ */ x(null), ie = /* @__PURE__ */ P(function(e, a) {
|
|
124
|
-
let n = se(e), s = w({
|
|
125
|
-
...e,
|
|
126
|
-
defaultClassName: "react-aria-DisclosureGroup",
|
|
127
|
-
values: {
|
|
128
|
-
isDisabled: n.isDisabled,
|
|
129
|
-
state: n
|
|
130
|
-
}
|
|
131
|
-
}), i = C(e, {
|
|
132
|
-
global: !0
|
|
133
|
-
});
|
|
134
|
-
return /* @__PURE__ */ h.createElement("div", {
|
|
135
|
-
...i,
|
|
136
|
-
...s,
|
|
137
|
-
ref: a,
|
|
138
|
-
"data-disabled": e.isDisabled || void 0
|
|
139
|
-
}, /* @__PURE__ */ h.createElement(W.Provider, {
|
|
140
|
-
value: n
|
|
141
|
-
}, s.children));
|
|
142
|
-
}), de = /* @__PURE__ */ x(null), oe = /* @__PURE__ */ x(null), T = /* @__PURE__ */ x(null), re = /* @__PURE__ */ P(function(e, a) {
|
|
143
|
-
[e, a] = G(e, a, de);
|
|
144
|
-
let n = v(W), { id: s, ...i } = e, o = _();
|
|
145
|
-
s || (s = o);
|
|
146
|
-
let l = n ? n.expandedKeys.has(s) : e.isExpanded, r = ae({
|
|
147
|
-
...e,
|
|
148
|
-
isExpanded: l,
|
|
149
|
-
onExpandedChange(j) {
|
|
150
|
-
var $;
|
|
151
|
-
n && n.toggleKey(s), ($ = e.onExpandedChange) === null || $ === void 0 || $.call(e, j);
|
|
152
|
-
}
|
|
153
|
-
}), c = h.useRef(null), t = e.isDisabled || (n == null ? void 0 : n.isDisabled) || !1, { buttonProps: p, panelProps: m } = ne({
|
|
154
|
-
...e,
|
|
155
|
-
isExpanded: l,
|
|
156
|
-
isDisabled: t
|
|
157
|
-
}, r, c), { isFocusVisible: D, focusProps: k } = F({
|
|
158
|
-
within: !0
|
|
159
|
-
}), I = w({
|
|
160
|
-
...e,
|
|
161
|
-
id: void 0,
|
|
162
|
-
defaultClassName: "react-aria-Disclosure",
|
|
163
|
-
values: {
|
|
164
|
-
isExpanded: r.isExpanded,
|
|
165
|
-
isDisabled: t,
|
|
166
|
-
isFocusVisibleWithin: D,
|
|
167
|
-
state: r
|
|
168
|
-
}
|
|
169
|
-
}), H = C(i, {
|
|
170
|
-
global: !0
|
|
171
|
-
});
|
|
172
|
-
return /* @__PURE__ */ h.createElement(B, {
|
|
173
|
-
values: [
|
|
174
|
-
[
|
|
175
|
-
S,
|
|
176
|
-
{
|
|
177
|
-
slots: {
|
|
178
|
-
[q]: {},
|
|
179
|
-
trigger: p
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
[
|
|
184
|
-
T,
|
|
185
|
-
{
|
|
186
|
-
panelProps: m,
|
|
187
|
-
panelRef: c
|
|
188
|
-
}
|
|
189
|
-
],
|
|
190
|
-
[
|
|
191
|
-
oe,
|
|
192
|
-
r
|
|
193
|
-
]
|
|
194
|
-
]
|
|
195
|
-
}, /* @__PURE__ */ h.createElement("div", {
|
|
196
|
-
...M(H, I, k),
|
|
197
|
-
ref: a,
|
|
198
|
-
"data-expanded": r.isExpanded || void 0,
|
|
199
|
-
"data-disabled": t || void 0,
|
|
200
|
-
"data-focus-visible-within": D || void 0
|
|
201
|
-
}, I.children));
|
|
202
|
-
}), le = /* @__PURE__ */ P(function(e, a) {
|
|
203
|
-
let { role: n = "group" } = e, { panelProps: s, panelRef: i } = v(T), { isFocusVisible: o, focusProps: l } = F({
|
|
204
|
-
within: !0
|
|
205
|
-
}), r = w({
|
|
206
|
-
...e,
|
|
207
|
-
defaultClassName: "react-aria-DisclosurePanel",
|
|
208
|
-
values: {
|
|
209
|
-
isFocusVisibleWithin: o
|
|
210
|
-
}
|
|
211
|
-
}), c = C(e, {
|
|
212
|
-
global: !0
|
|
213
|
-
});
|
|
214
|
-
return /* @__PURE__ */ h.createElement("div", {
|
|
215
|
-
...M(c, r, s, l),
|
|
216
|
-
ref: O(a, i),
|
|
217
|
-
role: n,
|
|
218
|
-
"data-focus-visible-within": o || void 0
|
|
219
|
-
}, /* @__PURE__ */ h.createElement(B, {
|
|
220
|
-
values: [
|
|
221
|
-
[
|
|
222
|
-
S,
|
|
223
|
-
null
|
|
224
|
-
]
|
|
225
|
-
]
|
|
226
|
-
}, e.children));
|
|
227
|
-
}), V = x(void 0), je = ({
|
|
228
|
-
variant: d,
|
|
229
|
-
children: e,
|
|
230
|
-
className: a,
|
|
231
|
-
isContained: n,
|
|
232
|
-
...s
|
|
233
|
-
}) => {
|
|
234
|
-
const i = n || d === "contained";
|
|
235
|
-
return /* @__PURE__ */ u(V.Provider, { value: { isContained: i }, children: /* @__PURE__ */ u(
|
|
236
|
-
ie,
|
|
237
|
-
{
|
|
238
|
-
className: y(
|
|
239
|
-
b.root,
|
|
240
|
-
i ? b.contained : b.uncontained,
|
|
241
|
-
a
|
|
242
|
-
),
|
|
243
|
-
...s,
|
|
244
|
-
children: e
|
|
245
|
-
}
|
|
246
|
-
) });
|
|
247
|
-
}, ce = "_item_1hy85_1", fe = "_contained_1hy85_18", ue = "_success_1hy85_29", pe = "_warning_1hy85_35", he = "_info_1hy85_41", xe = "_important_1hy85_47", ge = "_triggerButton_1hy85_58", me = "_triggerText_1hy85_62", $e = "_trigger_1hy85_58", be = "_triggerMainContent_1hy85_75", ye = "_chevronIcon_1hy85_92", _e = "_statusIcon_1hy85_98", Ee = "_panel_1hy85_116", Pe = "_content_1hy85_124", ve = "_hasBackground_1hy85_129", we = "_header_1hy85_133", f = {
|
|
248
|
-
item: ce,
|
|
249
|
-
contained: fe,
|
|
250
|
-
success: ue,
|
|
251
|
-
warning: pe,
|
|
252
|
-
info: he,
|
|
253
|
-
important: xe,
|
|
254
|
-
triggerButton: ge,
|
|
255
|
-
triggerText: me,
|
|
256
|
-
trigger: $e,
|
|
257
|
-
triggerMainContent: be,
|
|
258
|
-
" ": "_ _1hy85_1",
|
|
259
|
-
chevronIcon: ye,
|
|
260
|
-
statusIcon: _e,
|
|
261
|
-
panel: Ee,
|
|
262
|
-
content: Pe,
|
|
263
|
-
hasBackground: ve,
|
|
264
|
-
header: we
|
|
265
|
-
}, ze = ({
|
|
266
|
-
title: d,
|
|
267
|
-
children: e,
|
|
268
|
-
className: a,
|
|
269
|
-
headingLevel: n = "h2",
|
|
270
|
-
type: s,
|
|
271
|
-
hasBackground: i = !0,
|
|
272
|
-
isContained: o,
|
|
273
|
-
...l
|
|
274
|
-
}) => {
|
|
275
|
-
const r = v(V), c = o ?? (r == null ? void 0 : r.isContained) ?? !1, t = typeof d == "object";
|
|
276
|
-
E(() => {
|
|
277
|
-
s && !c && console.warn(
|
|
278
|
-
"AccordionItem: When 'type' is set, it is recommended to also set 'isContained' to true for visual consistency."
|
|
279
|
-
);
|
|
280
|
-
}, [s, c]);
|
|
281
|
-
const p = s ? z[s] : null, m = p ? /* @__PURE__ */ u(
|
|
282
|
-
p,
|
|
283
|
-
{
|
|
284
|
-
size: 20,
|
|
285
|
-
className: f.statusIcon
|
|
286
|
-
}
|
|
287
|
-
) : null;
|
|
288
|
-
return /* @__PURE__ */ A(
|
|
289
|
-
re,
|
|
290
|
-
{
|
|
291
|
-
...l,
|
|
292
|
-
className: y(
|
|
293
|
-
f.item,
|
|
294
|
-
s && f[s],
|
|
295
|
-
c && f.contained,
|
|
296
|
-
a
|
|
297
|
-
),
|
|
298
|
-
children: [
|
|
299
|
-
/* @__PURE__ */ u("div", { className: f.trigger, children: /* @__PURE__ */ A(
|
|
300
|
-
X,
|
|
301
|
-
{
|
|
302
|
-
className: f.triggerButton,
|
|
303
|
-
slot: "trigger",
|
|
304
|
-
variant: "icon",
|
|
305
|
-
children: [
|
|
306
|
-
/* @__PURE__ */ u(
|
|
307
|
-
Z,
|
|
308
|
-
{
|
|
309
|
-
size: 20,
|
|
310
|
-
className: f.chevronIcon
|
|
311
|
-
}
|
|
312
|
-
),
|
|
313
|
-
/* @__PURE__ */ u("div", { className: f.triggerMainContent, children: t ? d : /* @__PURE__ */ u(
|
|
314
|
-
Y,
|
|
315
|
-
{
|
|
316
|
-
level: 3,
|
|
317
|
-
elementType: n,
|
|
318
|
-
className: f.triggerText,
|
|
319
|
-
children: d
|
|
320
|
-
}
|
|
321
|
-
) }),
|
|
322
|
-
m
|
|
323
|
-
]
|
|
324
|
-
}
|
|
325
|
-
) }),
|
|
326
|
-
/* @__PURE__ */ u(le, { className: f.panel, children: /* @__PURE__ */ u(
|
|
327
|
-
"div",
|
|
328
|
-
{
|
|
329
|
-
className: y(
|
|
330
|
-
f.content,
|
|
331
|
-
i && f.hasBackground
|
|
332
|
-
),
|
|
333
|
-
children: e
|
|
334
|
-
}
|
|
335
|
-
) })
|
|
336
|
-
]
|
|
337
|
-
}
|
|
338
|
-
);
|
|
339
|
-
};
|
|
340
|
-
export {
|
|
341
|
-
ze as A,
|
|
342
|
-
je as a
|
|
343
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/AccordionItem.css');const p=require("react/jsx-runtime"),_=require("./clsx-DKOfLqne.cjs"),K=require("./icon-map-9XcghDra.cjs"),d=require("react"),v=require("./Button-1sEX8jKn.cjs"),$=require("./utils-CtICjCYt.cjs"),h=require("./mergeProps-Du5A8xi8.cjs"),m=require("./filterDOMProps-RRlKPKX0.cjs"),C=require("./useControlledState-D0L6S_5r.cjs"),M=require("react-dom"),N=require("./useEvent-C125NAue.cjs"),j=require("./SSRProvider-DZRLwxPS.cjs"),w=require("./useFocusRing-C-XVcAE5.cjs"),B=require("./Button-BEWKXjlP.cjs"),F=require("./Heading-x7y3xadc.cjs"),W=require("./chevron-down-5hFlg_lR.cjs"),k="_root_17bdp_1",T="_contained_17bdp_5",y={root:k,contained:T};function V(o,e,s){let{isDisabled:n}=o,a=h.$bdb11010cef70236$export$f680877a34711e37(),i=h.$bdb11010cef70236$export$f680877a34711e37(),r=j.$b5e257d569688ac6$export$535bd6ca7f90a273(),l=d.useRef(null),c=d.useCallback(()=>{l.current=requestAnimationFrame(()=>{s.current&&s.current.setAttribute("hidden","until-found")}),M.flushSync(()=>{e.toggle()})},[s,e]);N.$e9faafb641e167db$export$90fc3a17d93f704c(s,"beforematch",c);let u=d.useRef(null);return h.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(l.current&&cancelAnimationFrame(l.current),s.current&&!n&&!r){let t=s.current;u.current==null||typeof t.getAnimations!="function"?e.isExpanded?(t.removeAttribute("hidden"),t.style.setProperty("--disclosure-panel-width","auto"),t.style.setProperty("--disclosure-panel-height","auto")):(t.setAttribute("hidden","until-found"),t.style.setProperty("--disclosure-panel-width","0px"),t.style.setProperty("--disclosure-panel-height","0px")):e.isExpanded!==u.current&&(e.isExpanded?(t.removeAttribute("hidden"),t.style.setProperty("--disclosure-panel-width",t.scrollWidth+"px"),t.style.setProperty("--disclosure-panel-height",t.scrollHeight+"px"),Promise.all(t.getAnimations().map(x=>x.finished)).then(()=>{t.style.setProperty("--disclosure-panel-width","auto"),t.style.setProperty("--disclosure-panel-height","auto")}).catch(()=>{})):(t.style.setProperty("--disclosure-panel-width",t.scrollWidth+"px"),t.style.setProperty("--disclosure-panel-height",t.scrollHeight+"px"),window.getComputedStyle(t).height,t.style.setProperty("--disclosure-panel-width","0px"),t.style.setProperty("--disclosure-panel-height","0px"),Promise.all(t.getAnimations().map(x=>x.finished)).then(()=>t.setAttribute("hidden","until-found")).catch(()=>{}))),u.current=e.isExpanded}},[n,s,e.isExpanded,r]),d.useEffect(()=>()=>{l.current&&cancelAnimationFrame(l.current)},[]),{buttonProps:{id:a,"aria-expanded":e.isExpanded,"aria-controls":i,onPress:t=>{!n&&t.pointerType!=="keyboard"&&e.toggle()},isDisabled:n,onPressStart(t){t.pointerType==="keyboard"&&!n&&e.toggle()}},panelProps:{id:i,role:"group","aria-labelledby":a,"aria-hidden":!e.isExpanded,hidden:r||n?n||!e.isExpanded:void 0}}}function H(o){let[e,s]=C.$458b0a5536c1a7cf$export$40bfa8c7b0832715(o.isExpanded,o.defaultExpanded||!1,o.onExpandedChange);const n=d.useCallback(()=>{s(!0)},[s]),a=d.useCallback(()=>{s(!1)},[s]),i=d.useCallback(()=>{s(!e)},[s,e]);return{isExpanded:e,setExpanded:s,expand:n,collapse:a,toggle:i}}function z(o){let{allowsMultipleExpanded:e=!1,isDisabled:s=!1}=o,[n,a]=C.$458b0a5536c1a7cf$export$40bfa8c7b0832715(d.useMemo(()=>o.expandedKeys?new Set(o.expandedKeys):void 0,[o.expandedKeys]),d.useMemo(()=>o.defaultExpandedKeys?new Set(o.defaultExpandedKeys):new Set,[o.defaultExpandedKeys]),o.onExpandedChange);return d.useEffect(()=>{if(!e&&n.size>1){let i=n.values().next().value;i!=null&&a(new Set([i]))}}),{allowsMultipleExpanded:e,isDisabled:s,expandedKeys:n,setExpandedKeys:a,toggleKey(i){let r;e?(r=new Set(n),r.has(i)?r.delete(i):r.add(i)):r=new Set(n.has(i)?[]:[i]),a(r)}}}const D=d.createContext(null),O=d.forwardRef(function(e,s){let n=z(e),a=$.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-DisclosureGroup",values:{isDisabled:n.isDisabled,state:n}}),i=m.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return d.createElement("div",{...i,...a,ref:s,"data-disabled":e.isDisabled||void 0},d.createElement(D.Provider,{value:n},a.children))}),G=d.createContext(null),J=d.createContext(null),A=d.createContext(null),L=d.forwardRef(function(e,s){[e,s]=$.$64fa3d84918910a7$export$29f1550f4b0d4415(e,s,G);let n=d.useContext(D),{id:a,...i}=e,r=h.$bdb11010cef70236$export$f680877a34711e37();a||(a=r);let l=n?n.expandedKeys.has(a):e.isExpanded,c=H({...e,isExpanded:l,onExpandedChange(S){var g;n&&n.toggleKey(a),(g=e.onExpandedChange)===null||g===void 0||g.call(e,S)}}),u=d.useRef(null),t=e.isDisabled||(n==null?void 0:n.isDisabled)||!1,{buttonProps:x,panelProps:b}=V({...e,isExpanded:l,isDisabled:t},c,u),{isFocusVisible:E,focusProps:R}=w.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),P=$.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,defaultClassName:"react-aria-Disclosure",values:{isExpanded:c.isExpanded,isDisabled:t,isFocusVisibleWithin:E,state:c}}),q=m.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return d.createElement($.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[v.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{slots:{[$.$64fa3d84918910a7$export$c62b8e45d58ddad9]:{},trigger:x}}],[A,{panelProps:b,panelRef:u}],[J,c]]},d.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(q,P,R),ref:s,"data-expanded":c.isExpanded||void 0,"data-disabled":t||void 0,"data-focus-visible-within":E||void 0},P.children))}),Q=d.forwardRef(function(e,s){let{role:n="group"}=e,{panelProps:a,panelRef:i}=d.useContext(A),{isFocusVisible:r,focusProps:l}=w.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),c=$.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-DisclosurePanel",values:{isFocusVisibleWithin:r}}),u=m.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return d.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(u,c,a,l),ref:$.$5dc95899b306f630$export$c9058316764c140e(s,i),role:n,"data-focus-visible-within":r||void 0},d.createElement($.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[v.$d2b4bc8c273e7be6$export$24d547caef80ccd1,null]]},e.children))}),I=d.createContext(void 0),U=({variant:o,children:e,className:s,isContained:n,...a})=>{const i=n||o==="contained";return p.jsx(I.Provider,{value:{isContained:i},children:p.jsx(O,{className:_.clsx(y.root,i?y.contained:y.uncontained,s),...a,children:e})})},X="_item_1hy85_1",Y="_contained_1hy85_18",Z="_success_1hy85_29",ee="_warning_1hy85_35",te="_info_1hy85_41",ne="_important_1hy85_47",se="_triggerButton_1hy85_58",de="_triggerText_1hy85_62",ae="_trigger_1hy85_58",ie="_triggerMainContent_1hy85_75",oe="_chevronIcon_1hy85_92",re="_statusIcon_1hy85_98",ce="_panel_1hy85_116",le="_content_1hy85_124",ue="_hasBackground_1hy85_129",fe="_header_1hy85_133",f={item:X,contained:Y,success:Z,warning:ee,info:te,important:ne,triggerButton:se,triggerText:de,trigger:ae,triggerMainContent:ie," ":"_ _1hy85_1",chevronIcon:oe,statusIcon:re,panel:ce,content:le,hasBackground:ue,header:fe},pe=({title:o,children:e,className:s,headingLevel:n="h2",type:a,hasBackground:i=!0,isContained:r,...l})=>{const c=d.useContext(I),u=r??(c==null?void 0:c.isContained)??!1,t=typeof o=="object";d.useEffect(()=>{a&&!u&&console.warn("AccordionItem: When 'type' is set, it is recommended to also set 'isContained' to true for visual consistency.")},[a,u]);const x=a?K.iconMap[a]:null,b=x?p.jsx(x,{size:20,className:f.statusIcon}):null;return p.jsxs(L,{...l,className:_.clsx(f.item,a&&f[a],u&&f.contained,s),children:[p.jsx("div",{className:f.trigger,children:p.jsxs(B.Button,{className:f.triggerButton,slot:"trigger",variant:"icon",children:[p.jsx(W.ChevronDown,{size:20,className:f.chevronIcon}),p.jsx("div",{className:f.triggerMainContent,children:t?o:p.jsx(F.Heading,{level:3,elementType:n,className:f.triggerText,children:o})}),b]})}),p.jsx(Q,{className:f.panel,children:p.jsx("div",{className:_.clsx(f.content,i&&f.hasBackground),children:e})})]})};exports.Accordion=U;exports.AccordionItem=pe;
|