@midas-ds/components 14.1.0 → 15.1.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-8UtB6O1X.js +347 -0
- package/AccordionItem-DKE794Si.cjs +1 -0
- package/{Button-CGe3Nyos.js → Button-BbfVT9Yl.js} +2 -2
- package/{Button-CF97piBl.js → Button-DdXFHfXw.js} +1 -1
- package/CHANGELOG.md +29 -0
- package/{Card-DJ8E5Rzd.js → Card-CdqGFff2.js} +1 -1
- package/{CheckboxGroup-B1b-6bKq.js → CheckboxGroup-CtJJqk_q.js} +3 -3
- package/{CheckboxGroup-BfZyy5yU.cjs → CheckboxGroup-thvsvOqD.cjs} +1 -1
- package/{ColorSchemeSwitch-BOooU0iy.cjs → ColorSchemeSwitch-Ckna0otR.cjs} +1 -1
- package/{ColorSchemeSwitch-KjnsdbDr.js → ColorSchemeSwitch-aF2UxI20.js} +1 -1
- package/{ComboBox-D1ZSZ6m-.js → ComboBox-BDX4BYWJ.js} +51 -44
- package/ComboBox-DFPrJUoV.cjs +1 -0
- package/{DateField-BogEOseq.cjs → DateField-B92Cqf9K.cjs} +1 -1
- package/{DateField-lsr_1fw4.js → DateField-BPRWrVcu.js} +3 -3
- package/{DateInputDivider-CYqm6PZP.cjs → DateInputDivider-CCrXjsUB.cjs} +1 -1
- package/{DateInputDivider-CRv3YuXd.js → DateInputDivider-DOHpVaNE.js} +5 -5
- package/{DateRangePicker-CgNXWOT6.cjs → DateRangePicker-COSTCOt8.cjs} +1 -1
- package/{DateRangePicker-5k1swaEt.js → DateRangePicker-Cmt9NC35.js} +8 -8
- package/{Dialog-B1N4Ndyx.js → Dialog-CPuJA2fm.js} +3 -3
- package/{Dialog-BUAp30Wc.js → Dialog-D4Py85wi.js} +4 -4
- package/{Dialog-BgSxz1JW.cjs → Dialog-DtOf0vWx.cjs} +1 -1
- package/{Dialog-PrnV8KTh.cjs → Dialog-DycTLpdr.cjs} +1 -1
- package/{Dropdown-DaARa89l.js → Dropdown-B4lwe0Hn.js} +2 -2
- package/{Dropdown-DBFLb8Tl.cjs → Dropdown-_g9l5k07.cjs} +1 -1
- package/{FieldError-l3xULRa0.js → FieldError-CIxlNQCM.js} +11 -11
- package/{FieldError-Cimgm8qD.cjs → FieldError-JWxR_EqN.cjs} +1 -1
- package/{FileUpload-DHmsupSe.cjs → FileUpload-C0TjNkuh.cjs} +2 -2
- package/{FileUpload-CN0HNJ_Y.js → FileUpload-DLBP3VPp.js} +260 -534
- package/{InfoBanner-BW3vy9mc.js → InfoBanner-D7Ta-7PI.js} +1 -1
- package/{Label-CNTODOFg.cjs → Label-DpY2SZdQ.cjs} +1 -1
- package/{Label-BGMXsSFb.js → Label-FfEnd4ai.js} +4 -4
- package/{Layout-JL9l-y7w.js → Layout-Hd1e_MEA.js} +1 -1
- package/{ListBox-mOCZvKD4.js → ListBox-5GK4ZRj1.js} +13 -13
- package/{ListBox-TGCxrXIJ.cjs → ListBox-FD30iELk.cjs} +1 -1
- package/{ListBoxSection-D_kTkvgG.js → ListBox-LJ3VgZMr.js} +209 -244
- package/ListBox-u6ZXp5Yi.cjs +1 -0
- package/{ListBoxLoadMoreItem-CLdTe6-z.js → ListBoxLoadMoreItem-B4GFbdYf.js} +2 -2
- package/ListBoxLoadMoreItem-DMUOzVtt.cjs +1 -0
- package/ListBoxSection-CBlpg0AG.cjs +1 -0
- package/ListBoxSection-DjGs1ndn.js +51 -0
- package/{ListKeyboardDelegate-CLRlDto7.cjs → ListKeyboardDelegate-8zuIfwQ7.cjs} +1 -1
- package/{ListKeyboardDelegate-BHnZMUhW.js → ListKeyboardDelegate-BBmpJ-2O.js} +1 -1
- package/Popover-CS8Yyfrq.js +39 -0
- package/Popover-DpB0XDBp.cjs +1 -0
- package/{ProgressBar-BGemuJIq.cjs → ProgressBar-BZqAQTV3.cjs} +1 -1
- package/{ProgressBar-DhRmckYM.js → ProgressBar-BpsvPCKk.js} +12 -12
- package/{Radio-D3RGVrEd.cjs → Radio-B3FBTn4F.cjs} +1 -1
- package/{Radio-Bp_31Z59.js → Radio-LevFYAg4.js} +5 -5
- package/{RangeCalendar-ChfmP_ql.cjs → RangeCalendar-CH0CyBui.cjs} +1 -1
- package/{RangeCalendar-9C96gMvy.js → RangeCalendar-DT_KVd80.js} +3 -3
- package/{SearchField-JaDXLq5W.cjs → SearchField-BX7P7BgV.cjs} +1 -1
- package/{SearchField-DrEdzWAy.js → SearchField-C-TFzcJF.js} +3 -3
- package/Select-C-ykeY_T.js +773 -0
- package/{Select-CpPE78Ke.js → Select-CiCng7ZP.js} +20 -18
- package/Select-D4wi-0Jw.cjs +1 -0
- package/Select-JIDW2mN8.cjs +1 -0
- package/{SelectionIndicator-ant6jeC1.js → SelectionIndicator-C2E23-zO.js} +83 -78
- package/SelectionIndicator-ClG0GpJu.cjs +1 -0
- package/{SelectionManager-uFYC4wpu.cjs → SelectionManager-CNJmHeCF.cjs} +1 -1
- package/{SelectionManager-C469yQeD.js → SelectionManager-DoNLJm8c.js} +1 -1
- package/{Separator-BWAnBMVN.js → Separator-CQfDz_zr.js} +8 -8
- package/{Separator-DbhmtwDa.cjs → Separator-CSyYDGNE.cjs} +1 -1
- package/{Separator-J0pLW4BN.cjs → Separator-DCi4bnBr.cjs} +1 -1
- package/{Separator-B6l5qSpR.js → Separator-DLr4kUJD.js} +2 -2
- package/{TabList-DmkxO7MM.js → TabList-BBmBumm6.js} +4 -4
- package/{TabList-C0tRVI6Q.cjs → TabList-DVzXuGXA.cjs} +1 -1
- package/{Table-BLqjyYKk.cjs → Table-B1nxmW14.cjs} +1 -1
- package/{Table-CyWZO9uf.js → Table-DxqKDp7N.js} +6 -6
- package/{Tag-FDHGu_WP.cjs → Tag-BL-_PONN.cjs} +1 -1
- package/{Tag-DJqYiBLR.js → Tag-DX1X_NZE.js} +52 -52
- package/{TextArea-CZxwvBcS.cjs → TextArea-Bjf8CBp0.cjs} +1 -1
- package/{TextArea-CrY7P18c.js → TextArea-CJPBvogq.js} +4 -4
- package/{TextField-DsN-kBfh.cjs → TextField-DtD9-arA.cjs} +1 -1
- package/{TextField-BWea-IT-.js → TextField-DyR61bjZ.js} +3 -3
- package/{Toast-Di3h8A14.js → Toast-B99bLWnh.js} +1 -1
- package/{ToggleButtonGroup-Bh4hP6Lk.js → ToggleButtonGroup-CFRutAZ4.js} +1 -1
- package/{ToggleButtonGroup-D7r34GCt.cjs → ToggleButtonGroup-dnvnzkaD.cjs} +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/FieldError.css +1 -1
- package/assets/ListBox.css +1 -0
- package/assets/Popover.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Select2.css +1 -0
- package/assets/Tag.css +1 -1
- package/button/index.js +1 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +1 -1
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +1 -0
- package/index.js +95 -91
- package/info-banner/index.js +1 -1
- package/intlStrings-Cd44R5hT.js +278 -0
- package/intlStrings-ClBuC6xN.cjs +1 -0
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/legacy-select/Select.d.ts +8 -0
- package/legacy-select/SelectTrigger.d.ts +10 -0
- package/legacy-select/index.cjs +1 -0
- package/legacy-select/index.d.ts +2 -0
- package/legacy-select/index.js +4 -0
- package/legacy-select/intl/translations.json.d.ts +17 -0
- package/{select → legacy-select}/types.d.ts +1 -1
- package/{select → legacy-select}/useMultiSelect.d.ts +2 -1
- package/list-box/ListBox.d.ts +1 -2
- package/list-box/ListBoxHeader.d.ts +3 -0
- package/list-box/ListBoxItem.d.ts +9 -3
- package/list-box/ListBoxSection.d.ts +1 -1
- package/list-box/index.cjs +1 -1
- package/list-box/index.d.ts +1 -0
- package/list-box/index.js +9 -7
- package/menu/index.cjs +1 -1
- package/menu/index.js +2 -2
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +1 -1
- package/popover/Popover.d.ts +2 -1
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/Select.d.ts +33 -4
- package/select/SelectAll.d.ts +1 -0
- package/select/SelectTags.d.ts +4 -0
- package/select/SelectTrigger.d.ts +4 -8
- package/select/SelectValueTag.d.ts +5 -0
- package/select/index.cjs +1 -1
- package/select/index.d.ts +1 -2
- package/select/index.js +1 -1
- package/select/intl/translations.json.d.ts +2 -2
- 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/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/{useField-BhJ9dM2g.js → useField-Bx76iuoW.js} +1 -1
- package/{useFilter-BdUU-HQZ.js → useFilter-Dn4vTT3G.js} +1 -1
- package/{useFilter-R2IPvbS8.cjs → useFilter-eOgdlVLd.cjs} +1 -1
- package/{useHasTabbableChild-CIZGg_iG.cjs → useHasTabbableChild-BJ_VejL5.cjs} +1 -1
- package/{useHasTabbableChild-CnpSoDuJ.js → useHasTabbableChild-DpISgPsS.js} +1 -1
- package/{useHighlightSelectionDescription-DPiqOr_Z.js → useHighlightSelectionDescription-Zvo5KTxM.js} +1 -1
- package/{useListState-PZF3ahpk.js → useListState-CP7AKhOX.js} +1 -1
- package/{useListState-DBawAMhF.cjs → useListState-DZFWpD-x.cjs} +1 -1
- package/{useSingleSelectListState-BLRBEJC7.js → useSingleSelectListState-GSY0f4qW.js} +1 -1
- package/{useSingleSelectListState-CNETmoj5.cjs → useSingleSelectListState-JCvbhUVI.cjs} +1 -1
- package/{useTextField-B8pM0p6X.js → useTextField-I3QVGvyX.js} +1 -1
- package/AccordionItem-CAi-XFOc.js +0 -343
- package/AccordionItem-tWS22wDv.cjs +0 -1
- package/ComboBox-Dztk_jtC.cjs +0 -1
- package/ListBoxLoadMoreItem-UX0jFQN4.cjs +0 -1
- package/ListBoxSection-BNBHosou.cjs +0 -1
- package/Popover-CZFi2YGz.js +0 -38
- package/Popover-uYTWBGHa.cjs +0 -1
- package/Select-BCUH-Z7q.cjs +0 -1
- package/SelectionIndicator-BiSN1toV.cjs +0 -1
- package/assets/ListBoxSection.css +0 -1
- /package/{select → legacy-select}/HiddenMultiSelect.d.ts +0 -0
- /package/{select → legacy-select}/MultiSelectValueTag.d.ts +0 -0
- /package/{select → legacy-select}/SelectFieldError.d.ts +0 -0
- /package/{select → legacy-select}/SelectListBox.d.ts +0 -0
- /package/{select → legacy-select}/useMultiSelectListState.d.ts +0 -0
- /package/{select → legacy-select}/useMultiSelectState.d.ts +0 -0
- /package/{select → legacy-select}/utils.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/ListBox.css');const M=require("react/jsx-runtime"),J=require("./ListBox-FD30iELk.cjs"),q=require("./Collection-vGO6v3_U.cjs"),c=require("react"),k=require("./mergeProps-Du5A8xi8.cjs"),K=require("./context-UOrD6Zxk.cjs"),E=require("react-dom"),Q=require("./OverlayArrow-bcrb_syE.cjs"),Z=require("./useEvent-C125NAue.cjs"),ee=require("./clsx-DKOfLqne.cjs"),V=require("./SelectionManager-CNJmHeCF.cjs");class te{shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}shouldInvalidateLayoutOptions(e,t){return e!==t}update(e){}getItemRect(e){var t,i;return(i=(t=this.getLayoutInfo(e))===null||t===void 0?void 0:t.rect)!==null&&i!==void 0?i:null}getVisibleRect(){return this.virtualizer.visibleRect}constructor(){this.virtualizer=null}}class b{copy(){let e=new b(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.content=this.content,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}constructor(e,t,i){this.type=e,this.key=t,this.parentKey=null,this.content=null,this.rect=i,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}class x{copy(){return new x(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}constructor(e=0,t=0){this.x=e,this.y=t}}class g{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new x(this.x,this.y)}get topRight(){return new x(this.maxX,this.y)}get bottomLeft(){return new x(this.x,this.maxY)}get bottomRight(){return new x(this.maxX,this.maxY)}intersects(e){return(process.env.NODE_ENV==="test"&&!process.env.VIRT_ON||this.area>0&&e.area>0)&&this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(e){let t=Math.min(this.x,e.x),i=Math.min(this.y,e.y),l=Math.max(this.maxX,e.maxX)-t,n=Math.max(this.maxY,e.maxY)-i;return new g(t,i,l,n)}intersection(e){if(!this.intersects(e))return new g(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new g(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new g(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,i=0,l=0){this.x=e,this.y=t,this.width=i,this.height=l}}class ${copy(){return new $(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}get area(){return this.width*this.height}constructor(e=0,t=0){this.width=Math.max(e,0),this.height=Math.max(t,0)}}let ie=0;class B{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(e){let t=this.reusableViews.get(e);return t&&t.length>0?t.shift():new ne(this.virtualizer,this,e)}reuseChild(e){e.prepareForReuse();let t=this.reusableViews.get(e.viewType);t||(t=[],this.reusableViews.set(e.viewType,t)),t.push(e)}constructor(e,t){this.virtualizer=e,this.key=++ie,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class le extends B{constructor(e){super(e,"root")}}class ne extends B{constructor(e,t,i){super(e,i),this.parent=t}}function oe(s,e){if(s===e)return!0;if(s.size!==e.size)return!1;for(let t of s)if(!e.has(t))return!1;return!0}class se{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}getOverscannedRect(){let e=this.visibleRect.copy(),t=this.visibleRect.height/3;if(e.height+=t,this.velocity.y<0&&(e.y-=t),this.velocity.x!==0){let i=this.visibleRect.width/3;e.width+=i,this.velocity.x<0&&(e.x-=i)}return e}constructor(){this.startTime=0,this.velocity=new x(0,0),this.visibleRect=new g}}class re{isPersistedKey(e){if(this.persistedKeys.has(e))return!0;for(let t of this.persistedKeys)for(;t!=null;){let i=this.layout.getLayoutInfo(t);if(!i||i.parentKey==null)break;if(t=i.parentKey,t===e)return!0}return!1}getParentView(e){return e.parentKey!=null?this._visibleViews.get(e.parentKey):this._rootView}getReusableView(e){let i=this.getParentView(e).getReusableView(e.type);return i.layoutInfo=e,this._renderView(i),i}_renderView(e){if(e.layoutInfo){let{type:t,key:i,content:l}=e.layoutInfo;e.content=l||this.collection.getItem(i),e.rendered=this._renderContent(t,e.content)}}_renderContent(e,t){let i=t!=null?this._renderedContent.get(t):null;if(i!=null)return i;let l=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,l),l}keyAtPoint(e){let t=new g(e.x,e.y,1,1),i=t.area===0?[]:this.layout.getVisibleLayoutInfos(t);for(let l of i)if(l.rect.intersects(t))return l.key;return null}relayout(e={}){this.layout.update(e),this.contentSize=this.layout.getContentSize();let t=this.visibleRect,i=e.contentChanged?0:t.x,l=e.contentChanged?0:t.y;if(i=Math.max(0,Math.min(this.contentSize.width-t.width,i)),l=Math.max(0,Math.min(this.contentSize.height-t.height,l)),i!==t.x||l!==t.y){let n=new g(i,l,t.width,t.height);this.delegate.setVisibleRect(n)}else this.updateSubviews()}getVisibleLayoutInfos(){let e=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,t=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"),i=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"),l;e&&!(t&&i)?l=new g(0,0,this.contentSize.width,this.contentSize.height):l=this._overscanManager.getOverscannedRect();let n=this.layout.getVisibleLayoutInfos(l),o=new Map;for(let a of n)o.set(a.key,a);return o}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let n=e.get(i);(!n||l.parent!==this.getParentView(n))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let n=this._visibleViews.get(i);if(!n)n=this.getReusableView(l),n.parent.children.add(n),this._visibleViews.set(i,n),t.delete(n);else{n.layoutInfo=l;let o=this.collection.getItem(l.key);n.content!==o&&(n.content!=null&&this._renderedContent.delete(n.content),this._renderView(n))}}for(let i of t)i.parent.children.delete(i),i.parent.reusableViews.clear();if(!this._isScrolling)for(let i of e.keys()){let l=this._visibleViews.get(i);l.parent.children.delete(l),l.parent.children.add(l)}}render(e){let t=this,i=!1,l=!1,n=!1,o=!1,a=!1,h=!1;return e.collection!==this.collection&&(t.collection=e.collection,i=!0),(e.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),e.layout.virtualizer=this,t.layout=e.layout,i=!0),e.persistedKeys&&!oe(e.persistedKeys,this.persistedKeys)&&(t.persistedKeys=e.persistedKeys,h=!0),this.visibleRect.equals(e.visibleRect)||(this._overscanManager.setVisibleRect(e.visibleRect),this.layout.shouldInvalidate(e.visibleRect,this.visibleRect)?(l=!e.visibleRect.pointEquals(this.visibleRect),n=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(n||(n=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),o||(o=e.invalidationContext.itemSizeChanged||!1),a||(a=e.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&e.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(e.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions)),i||(i=o||n||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:n,itemSizeChanged:o,layoutOptionsChanged:a,layoutOptions:this._invalidationContext.layoutOptions}):h&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(e){return this._visibleViews.get(e)}invalidate(e){this.delegate.invalidate(e)}updateItemSize(e,t){if(!this.layout.updateItemSize)return;this.layout.updateItemSize(e,t)&&this.invalidate({itemSizeChanged:!0})}constructor(e){this.delegate=e.delegate,this.collection=e.collection,this.layout=e.layout,this.contentSize=new $,this.visibleRect=new g,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new le(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new se}}const ae=typeof document<"u"?c.useLayoutEffect:()=>{};function he(s){let[e,t]=c.useState(new g(0,0,0,0)),[i,l]=c.useState(!1),[n,o]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new re({collection:s.collection,layout:s.layout,delegate:{setVisibleRect(p){t(p),a.current=!0},renderView:s.renderView,invalidate:o}}));ae(()=>{a.current&&(a.current=!1,s.onVisibleRectChange(e))});let r=c.useMemo(()=>s.layoutOptions!=null?{...n,layoutOptions:s.layoutOptions}:n,[n,s.layoutOptions]),d=h.render({layout:s.layout,collection:s.collection,persistedKeys:s.persistedKeys,layoutOptions:s.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,f=c.useCallback(()=>{l(!0)},[]),v=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:f,endScrolling:v}),[h,d,t,u,i,f,v])}const R=48;class de extends te{get collection(){return this.virtualizer.collection}getLayoutInfo(e){var t;return this.ensureLayoutInfo(e),((t=this.layoutNodes.get(e))===null||t===void 0?void 0:t.layoutInfo)||null}getVisibleLayoutInfos(e){if(e.height>1){var t,i;let o=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:R)+this.gap;e.y=Math.floor(e.y/o)*o,e.height=Math.ceil(e.height/o)*o}this.layoutIfNeeded(e);let l=[],n=o=>{for(let a of o)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&n(a.children))};return n(this.rootNodes),l}layoutIfNeeded(e){if(this.lastCollection){this.requestedRect.containsRect(e)||(this.requestedRect=this.requestedRect.union(e),this.rootNodes=this.buildCollection());for(let t of this.virtualizer.persistedKeys)if(this.ensureLayoutInfo(t))return}}ensureLayoutInfo(e){return!this.layoutNodes.has(e)&&this.requestedRect.area<this.contentSize.area&&this.lastCollection?(this.requestedRect=new g(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new g(0,0,this.contentSize.width,this.contentSize.height),!0):!1}isVisible(e,t){return e.layoutInfo.rect.intersects(t)||e.layoutInfo.isSticky||e.layoutInfo.type==="header"||e.layoutInfo.type==="loader"||this.virtualizer.isPersistedKey(e.layoutInfo.key)}shouldInvalidateEverything(e){let t=e.layoutOptions;var i,l,n,o,a;return e.sizeChanged||this.rowHeight!==((i=t==null?void 0:t.rowHeight)!==null&&i!==void 0?i:this.rowHeight)||this.headingHeight!==((l=t==null?void 0:t.headingHeight)!==null&&l!==void 0?l:this.headingHeight)||this.loaderHeight!==((n=t==null?void 0:t.loaderHeight)!==null&&n!==void 0?n:this.loaderHeight)||this.gap!==((o=t==null?void 0:t.gap)!==null&&o!==void 0?o:this.gap)||this.padding!==((a=t==null?void 0:t.padding)!==null&&a!==void 0?a:this.padding)}shouldInvalidateLayoutOptions(e,t){return e.rowHeight!==t.rowHeight||e.estimatedRowHeight!==t.estimatedRowHeight||e.headingHeight!==t.headingHeight||e.estimatedHeadingHeight!==t.estimatedHeadingHeight||e.loaderHeight!==t.loaderHeight||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.gap!==t.gap||e.padding!==t.padding}update(e){let t=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(e),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let i=e.layoutOptions;var l;this.rowHeight=(l=i==null?void 0:i.rowHeight)!==null&&l!==void 0?l:this.rowHeight;var n;this.estimatedRowHeight=(n=i==null?void 0:i.estimatedRowHeight)!==null&&n!==void 0?n:this.estimatedRowHeight;var o;this.headingHeight=(o=i==null?void 0:i.headingHeight)!==null&&o!==void 0?o:this.headingHeight;var a;this.estimatedHeadingHeight=(a=i==null?void 0:i.estimatedHeadingHeight)!==null&&a!==void 0?a:this.estimatedHeadingHeight;var h;this.loaderHeight=(h=i==null?void 0:i.loaderHeight)!==null&&h!==void 0?h:this.loaderHeight;var r;this.dropIndicatorThickness=(r=i==null?void 0:i.dropIndicatorThickness)!==null&&r!==void 0?r:this.dropIndicatorThickness;var d;this.gap=(d=i==null?void 0:i.gap)!==null&&d!==void 0?d:this.gap;var u;if(this.padding=(u=i==null?void 0:i.padding)!==null&&u!==void 0?u:this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&t!==this.lastCollection)for(let f of this.lastCollection.getKeys())t.getItem(f)||this.layoutNodes.get(f)&&this.layoutNodes.delete(f);this.lastCollection=t,this.invalidateEverything=!1,this.validRect=this.requestedRect.copy()}buildCollection(e=this.padding){let t=this.virtualizer.collection,i=[...t],l=i.filter(r=>r.type==="loader"),n=[],o=(t==null?void 0:t.size)===0;o&&(e=0);for(let r of i){var a,h;let d=((h=(a=this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:R)+this.gap;if(r.type==="item"&&e+d<this.requestedRect.y&&!this.isValid(r,e)){e+=d;continue}let u=this.buildChild(r,this.padding,e,null);if(e=u.layoutInfo.rect.maxY+this.gap,n.push(u),r.type==="loader"){let f=l.indexOf(r);l.splice(f,1)}if((r.type==="item"||r.type==="loader")&&e>this.requestedRect.maxY){let f=i.indexOf(r);for(let v of l){let y=i.indexOf(v);e+=(y-f-1)*d;let p=this.buildChild(v,this.padding,e,null);n.push(p),e=p.layoutInfo.rect.maxY,f=y}e+=(i.length-f-1)*d;break}}return e-=this.gap,e+=o?0:this.padding,this.contentSize=new $(this.virtualizer.visibleRect.width,e),n}isValid(e,t){let i=this.layoutNodes.get(e.key);return!this.invalidateEverything&&!!i&&i.node===e&&t===i.layoutInfo.rect.y&&i.layoutInfo.rect.intersects(this.validRect)&&i.validRect.containsRect(i.layoutInfo.rect.intersection(this.requestedRect))}buildChild(e,t,i,l){if(this.isValid(e,i))return this.layoutNodes.get(e.key);let n=this.buildNode(e,t,i);return n.layoutInfo.parentKey=l??null,n.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,n),n}buildNode(e,t,i){switch(e.type){case"section":return this.buildSection(e,t,i);case"item":return this.buildItem(e,t,i);case"header":return this.buildSectionHeader(e,t,i);case"loader":return this.buildLoader(e,t,i);case"separator":return this.buildItem(e,t,i);default:throw new Error("Unsupported node type: "+e.type)}}buildLoader(e,t,i){let l=new g(t,i,this.padding,0),n=new b("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var o,a,h;return l.height=e.props.isLoading?(h=(a=(o=this.loaderHeight)!==null&&o!==void 0?o:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:R:0,{layoutInfo:n,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,n=this.virtualizer.visibleRect.width-this.padding,o=new g(t,i,n-t,0),a=new b(e.type,e.key,o),h=i,r=0,d=[];for(let v of V.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,f;let y=((f=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&f!==void 0?f:R)+this.gap;if(i+y<this.requestedRect.y&&!this.isValid(e,i)){i+=y,r++;continue}let p=this.buildChild(v,t,i,a.key);if(i=p.layoutInfo.rect.maxY+this.gap,d.push(p),i>this.requestedRect.maxY){i+=([...V.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*y;break}}return i-=this.gap,o.height=i-h,{layoutInfo:a,children:d,validRect:a.rect.intersection(this.requestedRect),node:e}}buildSectionHeader(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding,n=this.headingHeight,o=!1;if(n==null){let r=this.layoutNodes.get(e.key),d=r==null?void 0:r.layoutInfo;if(d){let u=this.virtualizer.collection.getItem(e.key),f=this.lastCollection?this.lastCollection.getItem(e.key):null;n=d.rect.height,o=l!==d.rect.width||u!==f||d.estimatedSize}else n=e.rendered?this.estimatedHeadingHeight:0,o=!0}n==null&&(n=R);let a=new g(t,i,l-t,n),h=new b("header",e.key,a);return h.estimatedSize=o,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,n=this.rowHeight,o=!1;if(n==null){let r=this.layoutNodes.get(e.key);r?(n=r.layoutInfo.rect.height,o=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(n=this.estimatedRowHeight,o=!0)}n==null&&(n=R);let a=new g(t,i,l,n),h=new b(e.type,e.key,a);return h.estimatedSize=o,{layoutInfo:h,children:[],validRect:h.rect,node:e}}updateItemSize(e,t){let i=this.layoutNodes.get(e);if(!i)return!1;let l=this.virtualizer.collection,n=i.layoutInfo;if(n.estimatedSize=!1,n.rect.height!==t.height){let o=n.copy();o.rect.height=t.height,i.layoutInfo=o,this.validRect.height=Math.min(this.validRect.height,n.rect.y-this.validRect.y),this.requestedRect.height+=o.rect.height-n.rect.height,this.updateLayoutNode(e,n,o);let a=n.parentKey!=null?l.getItem(n.parentKey):null;for(;a;)this.updateLayoutNode(a.key,n,o),a=a.parentKey!=null?l.getItem(a.parentKey):null;return!0}return!1}updateLayoutNode(e,t,i){let l=this.layoutNodes.get(e);l&&(l.validRect=l.validRect.intersection(this.validRect),l.layoutInfo===t&&(l.layoutInfo=i))}getContentSize(){return this.contentSize}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let l=new g(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),n=this.getVisibleLayoutInfos(l),o=null,a=1/0;for(let u of n){if(!u.rect.intersects(l))continue;let f=Math.abs(u.rect.y-t),v=Math.abs(u.rect.maxY-t),y=Math.min(f,v);y<a&&(a=y,o=u.key)}if(o==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(o);if(!h)return null;let r=h.rect,d={type:"item",key:h.key,dropPosition:"on"};return i(d)?t<=r.y+10&&i({...d,dropPosition:"before"})?d.dropPosition="before":t>=r.maxY-10&&i({...d,dropPosition:"after"})&&(d.dropPosition="after"):t<=r.y+r.height/2&&i({...d,dropPosition:"before"})?d.dropPosition="before":i({...d,dropPosition:"after"})&&(d.dropPosition="after"),d}getDropTargetLayoutInfo(e){let t=this.getLayoutInfo(e.key),i;if(e.dropPosition==="before")i=new g(t.rect.x,Math.max(0,t.rect.y-this.dropIndicatorThickness/2),t.rect.width,this.dropIndicatorThickness);else if(e.dropPosition==="after"){let n=this.collection.getItem(e.key);if(n){var l;let o=(l=n.level)!==null&&l!==void 0?l:0,a=this.collection.getKeyAfter(e.key);for(;a!=null;){let h=this.collection.getItem(a);if(!h||h.level<=o)break;t=this.getLayoutInfo(a)||t,a=this.collection.getKeyAfter(a)}}i=new g(t.rect.x,t.rect.maxY-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness)}else i=t.rect;return new b("dropIndicator",e.key+":"+e.dropPosition,i)}constructor(e={}){super();var t;this.rowHeight=(t=e.rowHeight)!==null&&t!==void 0?t:null;var i;this.estimatedRowHeight=(i=e.estimatedRowHeight)!==null&&i!==void 0?i:null;var l;this.headingHeight=(l=e.headingHeight)!==null&&l!==void 0?l:null;var n;this.estimatedHeadingHeight=(n=e.estimatedHeadingHeight)!==null&&n!==void 0?n:null;var o;this.loaderHeight=(o=e.loaderHeight)!==null&&o!==void 0?o:null,this.dropIndicatorThickness=e.dropIndicatorThickness||2,this.gap=e.gap||0,this.padding=e.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=!1,this.validRect=new g,this.requestedRect=new g,this.contentSize=new $}}let S=null;function ce(s=!1){if(S===null||s){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const i=document.createElement("div"),l=i.style;return l.width="100px",l.height="100px",e.appendChild(i),document.body.appendChild(e),e.scrollLeft>0?S="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?S="negative":S="positive-ascending"),document.body.removeChild(e),S}return S}function ue(s,e){let{scrollLeft:t}=s;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=s;switch(ce()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function fe(s,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:n,onScrollEnd:o,scrollDirection:a="both",...h}=s,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=K.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,f]=c.useState(!1),v=c.useCallback(w=>{w.target===w.currentTarget&&(s.onScroll&&s.onScroll(w),E.flushSync(()=>{let m=w.currentTarget.scrollTop,z=ue(w.currentTarget,d);r.scrollTop=Math.max(0,Math.min(m,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(z,t.width-r.width)),i(new g(r.scrollLeft,r.scrollTop,r.width,r.height)),r.isScrolling||(r.isScrolling=!0,f(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),n&&n());let C=Date.now();r.scrollEndTime<=C+50&&(r.scrollEndTime=C+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(()=>{r.isScrolling=!1,f(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),o&&o()},300))}))},[s,d,r,t,i,n,o]);Z.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",v),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let y=c.useRef(!1),p=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(w=>{let m=e.current;if(!m||y.current)return;y.current=!0;let z=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,C=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),G=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),N=m.clientWidth,T=m.clientHeight,_=z&&!C?1/0:N,L=z&&!G?1/0:T;(r.width!==_||r.height!==L)&&(r.width=_,r.height=L,w(()=>{i(new g(r.scrollLeft,r.scrollTop,_,L))}),(!z&&N!==m.clientWidth||T!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,w(()=>{i(new g(r.scrollLeft,r.scrollTop,r.width,r.height))}))),y.current=!1}),H=c.useRef(null),[j,F]=c.useState({});k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!y.current&&(H.current==null||!t.equals(H.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){F({}),H.current=t;return}else queueMicrotask(()=>p(E.flushSync));H.current=t}),k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{p(w=>w())},[j]);let U=c.useCallback(()=>{p(E.flushSync)},[p]);Q.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:U});let I={padding:0,...h.style};return a==="horizontal"?(I.overflowX="auto",I.overflowY="hidden"):a==="vertical"||t.width===r.width?(I.overflowY="auto",I.overflowX="hidden"):I.overflow="auto",l={width:Number.isFinite(t.width)?t.width:void 0,height:Number.isFinite(t.height)?t.height:void 0,pointerEvents:u?"none":"auto",position:"relative",...l},{isScrolling:u,scrollViewProps:{...h,style:I},contentProps:{role:"presentation",style:l}}}function ge(s){let{layoutInfo:e,virtualizer:t,ref:i}=s,l=e==null?void 0:e.key,n=c.useCallback(()=>{if(l!=null&&i.current){let o=ye(i.current);t.updateItemSize(l,o)}},[t,l,i]);return k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e!=null&&e.estimatedSize&&n()}),{updateSize:n}}function ye(s){let e=s.style.height;s.style.height="";let t=new $(s.scrollWidth,s.scrollHeight);return s.style.height=e,t}function Y(s){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:n,children:o}=s,{direction:a}=K.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ge({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...ve(i,a,n),...e}},o)}let O=new WeakMap;function ve(s,e,t){let i=e==="rtl"?"right":"left",l=O.get(s);if(l&&l[i]!=null){if(!t)return l;let h=s.rect.y-t.rect.y,r=s.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let n={top:s.rect.y-(t&&!(t.allowOverflow&&s.isSticky)?t.rect.y:0),[i]:s.rect.x-(t&&!(t.allowOverflow&&s.isSticky)?t.rect.x:0),width:s.rect.width,height:s.rect.height};Object.entries(n).forEach(([h,r])=>{Number.isFinite(r)||(n[h]=void 0)});var o;let a={position:s.isSticky?"sticky":"absolute",display:s.isSticky?"inline-block":void 0,overflow:s.allowOverflow?"visible":"hidden",opacity:s.opacity,zIndex:s.zIndex,transform:(o=s.transform)!==null&&o!==void 0?o:void 0,contain:"size layout style",...n};return O.set(s,a),a}const W=c.createContext(null),D=c.createContext(null);function pe(s){let{children:e,layout:t,layoutOptions:i}=s,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),n=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:we,CollectionBranch:me}),[l]);return c.createElement(q.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:n},c.createElement(D.Provider,{value:{layout:l,layoutOptions:i}},e))}function we({collection:s,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:n,layoutOptions:o}=c.useContext(D),a=(l=n.useLayoutOptions)===null||l===void 0?void 0:l.call(n),h=he({layout:n,collection:s,renderView:(d,u)=>{var f;return u==null||(f=u.render)===null||f===void 0?void 0:f.call(u,u)},onVisibleRectChange(d){let u=t==null?void 0:t.current;u&&(u.scrollLeft=d.x,u.scrollTop=d.y)},persistedKeys:e,layoutOptions:c.useMemo(()=>o&&a?{...o,...a}:o||a,[o,a])}),{contentProps:r}=fe({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(W.Provider,{value:h},X(null,h.visibleViews,i)))}function me({parent:s,renderDropIndicator:e}){let i=c.useContext(W).virtualizer.getVisibleView(s.key);return X(i,Array.from(i.children),e)}function X(s,e,t){return e.map(i=>be(s,i,t))}function be(s,e,t){let i=c.createElement(Y,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:s==null?void 0:s.layoutInfo},e.rendered),{collection:l,layout:n}=e.virtualizer,o=e.content;return(o==null?void 0:o.type)==="item"&&t&&n.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},P(s,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,q.$7135fc7d473fd974$export$2dbbd341daed716d(l,o,a=>P(s,e,a,t)))),i}function P(s,e,t,i){let l=i(t);if(l){let n=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(Y,{layoutInfo:n,virtualizer:e.virtualizer,parent:s==null?void 0:s.layoutInfo},l)}return l}class xe extends de{getContentSize(){var t;const e=(t=this==null?void 0:this.virtualizer)==null?void 0:t.collection.getKeys();return Array.from(e||[]).forEach(i=>{this.getLayoutInfo(i)}),this.contentSize}}const Ie="_listBox_13mbb_4",Re="_listBoxPopover_13mbb_16",Se="_listBoxSectionHeading_13mbb_31",$e="_listBoxButton_13mbb_43",ze="_listBoxItem_13mbb_55",He="_listBoxLoadMoreItem_13mbb_165",A={listBox:Ie,listBoxPopover:Re,listBoxSectionHeading:Se,listBoxButton:$e,listBoxItem:ze,listBoxLoadMoreItem:He},Ce=({className:s,children:e,...t})=>M.jsx(pe,{layout:xe,layoutOptions:{headingHeight:38},children:M.jsx(J.$eed445e0843c11d0$export$41f133550aa26f48,{className:ee.clsx(A.listBox,s),...t,children:e})});exports.ListBox=Ce;exports.styles=A;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t, jsxs as m, Fragment as d } from "react/jsx-runtime";
|
|
2
2
|
import { c as e } from "./clsx-jbLnTBqA.js";
|
|
3
|
-
import { s as a } from "./
|
|
4
|
-
import { $ as c } from "./ListBox-
|
|
3
|
+
import { s as a } from "./ListBox-LJ3VgZMr.js";
|
|
4
|
+
import { $ as c } from "./ListBox-5GK4ZRj1.js";
|
|
5
5
|
import { S as l } from "./Spinner-D6Fcu_Dp.js";
|
|
6
6
|
import { u as p } from "./useLocalizedStringFormatter-aOhh7wdl.js";
|
|
7
7
|
const S = ({ className: o, children: s, ...r }) => /* @__PURE__ */ t(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),r=require("./clsx-DKOfLqne.cjs"),n=require("./ListBox-u6ZXp5Yi.cjs"),c=require("./ListBox-FD30iELk.cjs"),l=require("./Spinner-DIapnvIz.cjs"),d=require("./useLocalizedStringFormatter-BSac43NO.cjs"),x=({className:s,children:e,...o})=>t.jsx("button",{type:"button",className:r.clsx(n.styles.listBoxItem,n.styles.listBoxButton,s),...o,children:e}),u={"loading...":"Loading..."},m={"loading...":"Laddar..."},L={en:u,sv:m},B=({className:s,children:e,isLoading:o,...i})=>{const a=d.useLocalizedStringFormatter(L);return t.jsx(c.$eed445e0843c11d0$export$8e6d031a08cf56a1,{className:r.clsx(n.styles.listBoxLoadMoreItem,s),isLoading:o,...i,children:e||t.jsxs(t.Fragment,{children:[t.jsx(l.Spinner,{small:!0}),t.jsx("span",{"aria-hidden":!0,children:a.format("loading...")})]})})};exports.ListBoxButton=x;exports.ListBoxLoadMoreItem=B;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),r=require("./ListBox-FD30iELk.cjs"),c=require("./clsx-DKOfLqne.cjs"),i=require("./ListBox-u6ZXp5Yi.cjs"),n=require("./Dialog-DycTLpdr.cjs"),l=require("./Separator-DCi4bnBr.cjs"),d=({children:s,className:e,hideSelectionIndicator:t,...a})=>o.jsx(r.$eed445e0843c11d0$export$a11e76429ed99b4,{className:c.clsx(i.styles.listBoxItem,e),"data-show-selection":!t||void 0,...a,children:s}),B=({className:s,children:e,...t})=>o.jsx(n.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:c.clsx(s,i.styles.listBoxPopover),offset:0,...t,children:e}),x=({className:s,...e})=>o.jsx(l.$72a5793c14baf454$export$8b251419efc915eb,{className:c.clsx(i.styles.listBoxSectionHeading,s),...e}),$=({children:s,name:e,...t})=>o.jsxs(r.$eed445e0843c11d0$export$dca12b0bb56e4fc,{...t,children:[e&&o.jsx(x,{children:e}),s]});exports.ListBoxHeader=x;exports.ListBoxItem=d;exports.ListBoxPopover=B;exports.ListBoxSection=$;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { a as m, b } from "./ListBox-5GK4ZRj1.js";
|
|
3
|
+
import { c as a } from "./clsx-jbLnTBqA.js";
|
|
4
|
+
import { s as r } from "./ListBox-LJ3VgZMr.js";
|
|
5
|
+
import { b as x } from "./Dialog-D4Py85wi.js";
|
|
6
|
+
import { $ as f } from "./Separator-CQfDz_zr.js";
|
|
7
|
+
const h = ({
|
|
8
|
+
children: s,
|
|
9
|
+
className: o,
|
|
10
|
+
hideSelectionIndicator: e,
|
|
11
|
+
...c
|
|
12
|
+
}) => /* @__PURE__ */ t(
|
|
13
|
+
m,
|
|
14
|
+
{
|
|
15
|
+
className: a(r.listBoxItem, o),
|
|
16
|
+
"data-show-selection": !e || void 0,
|
|
17
|
+
...c,
|
|
18
|
+
children: s
|
|
19
|
+
}
|
|
20
|
+
), v = ({
|
|
21
|
+
className: s,
|
|
22
|
+
children: o,
|
|
23
|
+
...e
|
|
24
|
+
}) => /* @__PURE__ */ t(
|
|
25
|
+
x,
|
|
26
|
+
{
|
|
27
|
+
className: a(s, r.listBoxPopover),
|
|
28
|
+
offset: 0,
|
|
29
|
+
...e,
|
|
30
|
+
children: o
|
|
31
|
+
}
|
|
32
|
+
), d = ({ className: s, ...o }) => /* @__PURE__ */ t(
|
|
33
|
+
f,
|
|
34
|
+
{
|
|
35
|
+
className: a(r.listBoxSectionHeading, s),
|
|
36
|
+
...o
|
|
37
|
+
}
|
|
38
|
+
), N = ({
|
|
39
|
+
children: s,
|
|
40
|
+
name: o,
|
|
41
|
+
...e
|
|
42
|
+
}) => /* @__PURE__ */ i(b, { ...e, children: [
|
|
43
|
+
o && /* @__PURE__ */ t(d, { children: o }),
|
|
44
|
+
s
|
|
45
|
+
] });
|
|
46
|
+
export {
|
|
47
|
+
h as L,
|
|
48
|
+
v as a,
|
|
49
|
+
N as b,
|
|
50
|
+
d as c
|
|
51
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("./context-UOrD6Zxk.cjs"),c=require("./SelectionManager-
|
|
1
|
+
"use strict";const u=require("./context-UOrD6Zxk.cjs"),c=require("./SelectionManager-CNJmHeCF.cjs"),h=require("./scrollIntoView-BueMOyGp.cjs");let s=new Map;function g(o){let{locale:e}=u.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=e+(o?Object.entries(o).sort((l,n)=>l[0]<n[0]?-1:1).join():"");if(s.has(t))return s.get(t);let i=new Intl.Collator(e,o);return s.set(t,i),i}class a{getItemRect(e){let t=this.ref.current;if(!t)return null;let i=e!=null?c.$feb5ffebff200149$export$c3d8340acf92597f(this.ref,e):null;if(!i)return null;let l=t.getBoundingClientRect(),n=i.getBoundingClientRect();return{x:n.left-l.left-t.clientLeft+t.scrollLeft,y:n.top-l.top-t.clientTop+t.scrollTop,width:n.width,height:n.height}}getContentSize(){let e=this.ref.current;var t,i;return{width:(t=e==null?void 0:e.scrollWidth)!==null&&t!==void 0?t:0,height:(i=e==null?void 0:e.scrollHeight)!==null&&i!==void 0?i:0}}getVisibleRect(){let e=this.ref.current;var t,i,l,n;return{x:(t=e==null?void 0:e.scrollLeft)!==null&&t!==void 0?t:0,y:(i=e==null?void 0:e.scrollTop)!==null&&i!==void 0?i:0,width:(l=e==null?void 0:e.clientWidth)!==null&&l!==void 0?l:0,height:(n=e==null?void 0:e.clientHeight)!==null&&n!==void 0?n:0}}constructor(e){this.ref=e}}class d{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let i=e;for(;i!=null;){let l=this.collection.getItem(i);if((l==null?void 0:l.type)==="item"&&!this.isDisabled(l))return i;i=t(i)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,i=>this.collection.getKeyAfter(i))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,i=>this.collection.getKeyBefore(i))}findKey(e,t,i){let l=e,n=this.layoutDelegate.getItemRect(l);if(!n||l==null)return null;let r=n;do{if(l=t(l),l==null)break;n=this.layoutDelegate.getItemRect(l)}while(n&&i(r,n)&&l!=null);return l}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,i=>this.layoutDelegate[t](i))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,i=>this.getNextColumn(i,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,i=>this.layoutDelegate[t](i))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,i=>this.getNextColumn(i,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,i=this.layoutDelegate.getItemRect(e);if(!i)return null;if(t&&!h.$cc38e7bd3fc7b213$export$2bb74740c4e19def(t))return this.getFirstKey();let l=e;if(this.orientation==="horizontal"){let n=Math.max(0,i.x+i.width-this.layoutDelegate.getVisibleRect().width);for(;i&&i.x>n&&l!=null;)l=this.getKeyAbove(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}else{let n=Math.max(0,i.y+i.height-this.layoutDelegate.getVisibleRect().height);for(;i&&i.y>n&&l!=null;)l=this.getKeyAbove(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,i=this.layoutDelegate.getItemRect(e);if(!i)return null;if(t&&!h.$cc38e7bd3fc7b213$export$2bb74740c4e19def(t))return this.getLastKey();let l=e;if(this.orientation==="horizontal"){let n=Math.min(this.layoutDelegate.getContentSize().width,i.y-i.width+this.layoutDelegate.getVisibleRect().width);for(;i&&i.x<n&&l!=null;)l=this.getKeyBelow(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}else{let n=Math.min(this.layoutDelegate.getContentSize().height,i.y-i.height+this.layoutDelegate.getVisibleRect().height);for(;i&&i.y<n&&l!=null;)l=this.getKeyBelow(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let i=this.collection,l=t||this.getFirstKey();for(;l!=null;){let n=i.getItem(l);if(!n)return null;let r=n.textValue.slice(0,e.length);if(n.textValue&&this.collator.compare(r,e)===0)return l;l=this.getNextKey(l)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new a(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new a(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}exports.$2a25aae57d74318e$export$a05409b8bb224a5a=d;exports.$325a3faab7a68acd$export$a16aca283550c30d=g;exports.$657e4dc4a6e88df0$export$8f5ed9ff9f511381=a;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsxs as f, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "./clsx-jbLnTBqA.js";
|
|
3
|
+
import { $ as c } from "./OverlayArrow-CjGslX2c.js";
|
|
4
|
+
import { b as l } from "./Dialog-D4Py85wi.js";
|
|
5
|
+
import './assets/Popover.css';const m = "_popover_94l1i_1", d = "_arrow_94l1i_23", r = {
|
|
6
|
+
popover: m,
|
|
7
|
+
arrow: d
|
|
8
|
+
};
|
|
9
|
+
function $({
|
|
10
|
+
children: e,
|
|
11
|
+
className: s,
|
|
12
|
+
offset: p = 4,
|
|
13
|
+
hideArrow: a = !1,
|
|
14
|
+
...t
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ f(
|
|
17
|
+
l,
|
|
18
|
+
{
|
|
19
|
+
...t,
|
|
20
|
+
offset: p,
|
|
21
|
+
className: i(r.popover, s),
|
|
22
|
+
children: [
|
|
23
|
+
!a && /* @__PURE__ */ o(c, { className: r.arrow, children: /* @__PURE__ */ o(
|
|
24
|
+
"svg",
|
|
25
|
+
{
|
|
26
|
+
width: 8,
|
|
27
|
+
height: 8,
|
|
28
|
+
viewBox: "0 0 8 8",
|
|
29
|
+
children: /* @__PURE__ */ o("path", { d: "M0 0 L4 4 L8 0" })
|
|
30
|
+
}
|
|
31
|
+
) }),
|
|
32
|
+
e
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
$ as P
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Popover.css');const r=require("react/jsx-runtime"),a=require("./clsx-DKOfLqne.cjs"),n=require("./OverlayArrow-bcrb_syE.cjs"),l=require("./Dialog-DycTLpdr.cjs"),p="_popover_94l1i_1",x="_arrow_94l1i_23",e={popover:p,arrow:x};function d({children:o,className:s,offset:t=4,hideArrow:c=!1,...i}){return r.jsxs(l.$07b14b47974efb58$export$5b6b19405a83ff9d,{...i,offset:t,className:a.clsx(e.popover,s),children:[!c&&r.jsx(n.$44f671af83e7d9e0$export$746d02f47f4d381,{className:e.arrow,children:r.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",children:r.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),o]})}exports.Popover=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/ProgressBar.css');const e=require("react/jsx-runtime"),u=require("./Button-1sEX8jKn.cjs"),i=require("./Label-
|
|
1
|
+
"use strict";require('./assets/ProgressBar.css');const e=require("react/jsx-runtime"),u=require("./Button-1sEX8jKn.cjs"),i=require("./Label-DpY2SZdQ.cjs"),t=require("./clsx-DKOfLqne.cjs"),x="_progressBar_ojm9j_1",d="_label_ojm9j_9",l="_value_ojm9j_14",N="_bar_ojm9j_19",f="_fill_ojm9j_29",c={progressBar:x,label:d,value:l,bar:N,fill:f},v=({label:a,labelProps:s,showValueLabel:r=!1,...n})=>e.jsx(u.$0393f8ab869a0f1a$export$c17561cb55d4db30,{...n,className:t.clsx(c.progressBar,n.className),children:({percentage:j,valueText:m,isIndeterminate:_})=>e.jsxs(e.Fragment,{children:[a&&e.jsx(i.Label,{elementType:"span",...s,className:t.clsx(s==null?void 0:s.className,c.label),children:a}),r&&e.jsx(i.Label,{elementType:"span",...s,id:a?"":s==null?void 0:s.id,className:t.clsx(s==null?void 0:s.className,c.value),children:m}),e.jsx("div",{className:c.bar,children:e.jsx("div",{className:c.fill,style:{width:`${_?50:j}%`}})})]})});exports.ProgressBar=v;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as a, jsxs as j, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { L as i } from "./Label-
|
|
2
|
+
import { b as o } from "./Button-BbfVT9Yl.js";
|
|
3
|
+
import { L as i } from "./Label-FfEnd4ai.js";
|
|
4
4
|
import { c as m } from "./clsx-jbLnTBqA.js";
|
|
5
|
-
import './assets/ProgressBar.css';const N = "_progressBar_ojm9j_1", v = "_label_ojm9j_9", h = "_value_ojm9j_14", u = "_bar_ojm9j_19", x = "_fill_ojm9j_29",
|
|
5
|
+
import './assets/ProgressBar.css';const N = "_progressBar_ojm9j_1", v = "_label_ojm9j_9", h = "_value_ojm9j_14", u = "_bar_ojm9j_19", x = "_fill_ojm9j_29", e = {
|
|
6
6
|
progressBar: N,
|
|
7
7
|
label: v,
|
|
8
8
|
value: h,
|
|
9
9
|
bar: u,
|
|
10
10
|
fill: x
|
|
11
11
|
}, $ = ({
|
|
12
|
-
label:
|
|
12
|
+
label: c,
|
|
13
13
|
labelProps: s,
|
|
14
14
|
showValueLabel: n = !1,
|
|
15
15
|
...t
|
|
@@ -17,15 +17,15 @@ import './assets/ProgressBar.css';const N = "_progressBar_ojm9j_1", v = "_label_
|
|
|
17
17
|
o,
|
|
18
18
|
{
|
|
19
19
|
...t,
|
|
20
|
-
className: m(
|
|
20
|
+
className: m(e.progressBar, t.className),
|
|
21
21
|
children: ({ percentage: r, valueText: _, isIndeterminate: d }) => /* @__PURE__ */ j(f, { children: [
|
|
22
|
-
|
|
22
|
+
c && /* @__PURE__ */ a(
|
|
23
23
|
i,
|
|
24
24
|
{
|
|
25
25
|
elementType: "span",
|
|
26
26
|
...s,
|
|
27
|
-
className: m(s == null ? void 0 : s.className,
|
|
28
|
-
children:
|
|
27
|
+
className: m(s == null ? void 0 : s.className, e.label),
|
|
28
|
+
children: c
|
|
29
29
|
}
|
|
30
30
|
),
|
|
31
31
|
n && /* @__PURE__ */ a(
|
|
@@ -33,15 +33,15 @@ import './assets/ProgressBar.css';const N = "_progressBar_ojm9j_1", v = "_label_
|
|
|
33
33
|
{
|
|
34
34
|
elementType: "span",
|
|
35
35
|
...s,
|
|
36
|
-
id:
|
|
37
|
-
className: m(s == null ? void 0 : s.className,
|
|
36
|
+
id: c ? "" : s == null ? void 0 : s.id,
|
|
37
|
+
className: m(s == null ? void 0 : s.className, e.value),
|
|
38
38
|
children: _
|
|
39
39
|
}
|
|
40
40
|
),
|
|
41
|
-
/* @__PURE__ */ a("div", { className:
|
|
41
|
+
/* @__PURE__ */ a("div", { className: e.bar, children: /* @__PURE__ */ a(
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
44
|
-
className:
|
|
44
|
+
className: e.fill,
|
|
45
45
|
style: { width: `${d ? 50 : r}%` }
|
|
46
46
|
}
|
|
47
47
|
) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Radio.css');const V=require("react/jsx-runtime"),K=require("./Group-B0Wj9pI8.cjs"),P=require("./utils-CtICjCYt.cjs"),_=require("./FieldError-
|
|
1
|
+
"use strict";require('./assets/Radio.css');const V=require("react/jsx-runtime"),K=require("./Group-B0Wj9pI8.cjs"),P=require("./utils-CtICjCYt.cjs"),_=require("./FieldError-JWxR_EqN.cjs"),z=require("./Form-BuOomA4T.cjs"),J=require("./Button-1sEX8jKn.cjs"),O=require("./SelectionIndicator-ClG0GpJu.cjs"),Q=require("./Text-0wXj3J8E.cjs"),R=require("./mergeProps-Du5A8xi8.cjs"),S=require("./filterDOMProps-RRlKPKX0.cjs"),t=require("react"),w=require("./useFormValidation-DV2Ioblb.cjs"),j=require("./usePress-DmU79HEg.cjs"),X=require("./useFocusable-M4se1KJt.cjs"),Y=require("./utils-DRIRjPUS.cjs"),Z=require("./useFocusWithin-GBjoTL5o.cjs"),ee=require("./useField-DvszkIMx.cjs"),ae=require("./context-UOrD6Zxk.cjs"),ie=require("./useFocusRing-C-XVcAE5.cjs"),de=require("./useHover-DULSfLuK.cjs"),re=require("./VisuallyHidden-BMelU6B0.cjs"),le=require("./useControlledState-D0L6S_5r.cjs"),G=require("./clsx-DKOfLqne.cjs"),L=require("./Label-DpY2SZdQ.cjs"),te=require("./Text-D5OSv6Uv.cjs"),N=new WeakMap;function oe(a,e,d){let{value:l,children:n,"aria-label":r,"aria-labelledby":c,onPressStart:i,onPressEnd:$,onPressChange:u,onPress:o,onPressUp:s,onClick:v}=a;const b=a.isDisabled||e.isDisabled;let g=n!=null,h=r!=null||c!=null;!g&&!h&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let m=e.selectedValue===l,I=F=>{F.stopPropagation(),e.setSelectedValue(l)},{pressProps:C,isPressed:D}=j.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:i,onPressEnd:$,onPressChange:u,onPress:o,onPressUp:s,onClick:v,isDisabled:b}),{pressProps:E,isPressed:x}=j.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:i,onPressEnd:$,onPressChange:u,onPressUp:s,onClick:v,isDisabled:b,onPress(F){var M;o==null||o(F),e.setSelectedValue(l),(M=d.current)===null||M===void 0||M.focus()}}),{focusableProps:f}=X.$f645667febf57a63$export$4c014de7c8940b4c(R.$3ef42575df84b30b$export$9d1611c77c2fe928(a,{onFocus:()=>e.setLastFocusedValue(l)}),d),q=R.$3ef42575df84b30b$export$9d1611c77c2fe928(C,f),p=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),y=-1;e.selectedValue!=null?e.selectedValue===l&&(y=0):(e.lastFocusedValue===l||e.lastFocusedValue==null)&&(y=0),b&&(y=void 0);let{name:W,form:H,descriptionId:A,errorMessageId:U,validationBehavior:k}=N.get(e);return w.$99facab73266f662$export$5add1d006293d136(d,e.defaultSelectedValue,e.setSelectedValue),w.$e93e671b31057976$export$b8473d3665f3a75a({validationBehavior:k},e,d),{labelProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(E,t.useMemo(()=>({onClick:F=>F.preventDefault(),onMouseDown:F=>F.preventDefault()}),[])),inputProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(p,{...q,type:"radio",name:W,form:H,tabIndex:y,disabled:b,required:e.isRequired&&k==="native",checked:m,value:l,onChange:I,"aria-describedby":[a["aria-describedby"],e.isInvalid?U:null,A].filter(Boolean).join(" ")||void 0}),isDisabled:b,isSelected:m,isPressed:D||x}}function se(a,e){let{name:d,form:l,isReadOnly:n,isRequired:r,isDisabled:c,orientation:i="vertical",validationBehavior:$="aria"}=a,{direction:u}=ae.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{isInvalid:o,validationErrors:s,validationDetails:v}=e.displayValidation,{labelProps:b,fieldProps:g,descriptionProps:h,errorMessageProps:m}=ee.$2baaea4c71418dea$export$294aa081a6c6f55d({...a,labelElementType:"span",isInvalid:e.isInvalid,errorMessage:a.errorMessage||s}),I=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),{focusWithinProps:C}=Z.$9ab94262bd0047c7$export$420e68273165f4ec({onBlurWithin(x){var f;(f=a.onBlur)===null||f===void 0||f.call(a,x),e.selectedValue||e.setLastFocusedValue(null)},onFocusWithin:a.onFocus,onFocusWithinChange:a.onFocusChange}),D=x=>{let f;switch(x.key){case"ArrowRight":u==="rtl"&&i!=="vertical"?f="prev":f="next";break;case"ArrowLeft":u==="rtl"&&i!=="vertical"?f="next":f="prev";break;case"ArrowDown":f="next";break;case"ArrowUp":f="prev";break;default:return}x.preventDefault();let q=O.$9bf71ea28793e738$export$2d6ec8fc375ceafa(x.currentTarget,{from:x.target,accept:y=>y instanceof Y.$431fbd86ca7dc216$export$f21a1ffae260145a(y).HTMLInputElement&&y.type==="radio"}),p;f==="next"?(p=q.nextNode(),p||(q.currentNode=x.currentTarget,p=q.firstChild())):(p=q.previousNode(),p||(q.currentNode=x.currentTarget,p=q.lastChild())),p&&(p.focus(),e.setSelectedValue(p.value))},E=R.$bdb11010cef70236$export$f680877a34711e37(d);return N.set(e,{name:E,form:l,descriptionId:h.id,errorMessageId:m.id,validationBehavior:$}),{radioGroupProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(I,{role:"radiogroup",onKeyDown:D,"aria-invalid":e.isInvalid||void 0,"aria-errormessage":a["aria-errormessage"],"aria-readonly":n||void 0,"aria-required":r||void 0,"aria-disabled":c||void 0,"aria-orientation":i,...g,...C}),labelProps:b,descriptionProps:h,errorMessageProps:m,isInvalid:o,validationErrors:s,validationDetails:v}}let ne=Math.round(Math.random()*1e10),ce=0;function ue(a){let e=t.useMemo(()=>a.name||`radio-group-${ne}-${++ce}`,[a.name]);var d;let[l,n]=le.$458b0a5536c1a7cf$export$40bfa8c7b0832715(a.value,(d=a.defaultValue)!==null&&d!==void 0?d:null,a.onChange),[r]=t.useState(l),[c,i]=t.useState(null),$=w.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...a,value:l}),u=v=>{!a.isReadOnly&&!a.isDisabled&&(n(v),$.commitValidation())},o=$.displayValidation.isInvalid;var s;return{...$,name:e,selectedValue:l,defaultSelectedValue:a.value!==void 0?r:(s=a.defaultValue)!==null&&s!==void 0?s:null,setSelectedValue:u,lastFocusedValue:c,setLastFocusedValue:i,isDisabled:a.isDisabled||!1,isReadOnly:a.isReadOnly||!1,isRequired:a.isRequired||!1,validationState:a.validationState||(o?"invalid":null),isInvalid:o}}const fe=t.createContext(null),$e=t.createContext(null),T=t.createContext(null),be=t.forwardRef(function(e,d){[e,d]=P.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,fe);let{validationBehavior:l}=P.$64fa3d84918910a7$export$fabf2dc03a41866e(z.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var n,r;let c=(r=(n=e.validationBehavior)!==null&&n!==void 0?n:l)!==null&&r!==void 0?r:"native",i=ue({...e,validationBehavior:c}),[$,u]=P.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),{radioGroupProps:o,labelProps:s,descriptionProps:v,errorMessageProps:b,...g}=se({...e,label:u,validationBehavior:c},i),h=P.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{orientation:e.orientation||"vertical",isDisabled:i.isDisabled,isReadOnly:i.isReadOnly,isRequired:i.isRequired,isInvalid:i.isInvalid,state:i},defaultClassName:"react-aria-RadioGroup"}),m=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return t.createElement("div",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(m,h,o),ref:d,slot:e.slot||void 0,"data-orientation":e.orientation||"vertical","data-invalid":i.isInvalid||void 0,"data-disabled":i.isDisabled||void 0,"data-readonly":i.isReadOnly||void 0,"data-required":i.isRequired||void 0},t.createElement(P.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[T,i],[J.$01b77f81d0f07f68$export$75b6ee27786ba447,{...s,ref:$,elementType:"span"}],[Q.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:v,errorMessage:b}}],[_.$ee014567cb39d3f0$export$ff05c3ac10437e03,g]]},t.createElement(O.$c8a5a149f625efcf$export$758399f318e6385a,null,h.children)))}),ve=t.forwardRef(function(e,d){let{inputRef:l=null,...n}=e;[e,d]=P.$64fa3d84918910a7$export$29f1550f4b0d4415(n,d,$e);let r=t.useContext(T),c=P.$df56164dff5785e2$export$4338b53315abf666(t.useMemo(()=>P.$5dc95899b306f630$export$c9058316764c140e(l,e.inputRef!==void 0?e.inputRef:null),[l,e.inputRef])),{labelProps:i,inputProps:$,isSelected:u,isDisabled:o,isPressed:s}=oe({...P.$64fa3d84918910a7$export$ef03459518577ad4(e),children:typeof e.children=="function"?!0:e.children},r,c),{isFocused:v,isFocusVisible:b,focusProps:g}=ie.$f7dceffc5ad7768b$export$4e328f61c538687f(),h=o||r.isReadOnly,{hoverProps:m,isHovered:I}=de.$6179b936705e76d3$export$ae780daf29e6d456({...e,isDisabled:h}),C=P.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Radio",values:{isSelected:u,isPressed:s,isHovered:I,isFocused:v,isFocusVisible:b,isDisabled:o,isReadOnly:r.isReadOnly,isInvalid:r.isInvalid,isRequired:r.isRequired}}),D=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete D.id,delete D.onClick,t.createElement("label",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(D,i,m,C),ref:d,"data-selected":u||void 0,"data-pressed":s||void 0,"data-hovered":I||void 0,"data-focused":v||void 0,"data-focus-visible":b||void 0,"data-disabled":o||void 0,"data-readonly":r.isReadOnly||void 0,"data-invalid":r.isInvalid||void 0,"data-required":r.isRequired||void 0},t.createElement(re.$5c3e21d68f1c4674$export$439d29a4e110a164,{elementType:"span"},t.createElement("input",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928($,g),ref:c})),t.createElement(O.$1d5b8b8664671ef2$export$c9549807523555e0.Provider,{value:{isSelected:u}},C.children))}),pe="_radioGroup_1m1j7_1",xe="_wrap_1m1j7_12",Pe="_radio_1m1j7_1",B={radioGroup:pe,wrap:xe,radio:Pe},he=({label:a,description:e,errorMessage:d,children:l,className:n,errorPosition:r="top",popover:c,...i})=>V.jsxs(be,{...i,className:G.clsx(B.radioGroup,n),children:[V.jsx(L.LabelWrapper,{popover:c,children:a&&V.jsx(L.Label,{children:a})}),e&&V.jsx(te.Text,{slot:"description",children:e}),r==="top"&&V.jsx(_.FieldError,{"data-testid":"fieldError",children:d}),V.jsx(K.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{className:B.wrap,children:l}),r==="bottom"&&V.jsx(_.FieldError,{"data-testid":"fieldError",children:d})]}),me=({className:a,...e})=>V.jsx(ve,{className:G.clsx(B.radio,a),...e});exports.Radio=me;exports.RadioGroup=he;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as I, jsxs as J } from "react/jsx-runtime";
|
|
2
2
|
import { a as Q } from "./Group-BAd7alBM.js";
|
|
3
3
|
import { $ as N, b as X, h as Y, e as Z, a as G, c as ee, d as ae, f as ie } from "./utils-D2iKpxcZ.js";
|
|
4
|
-
import { $ as re, F as q } from "./FieldError-
|
|
4
|
+
import { $ as re, F as q } from "./FieldError-CIxlNQCM.js";
|
|
5
5
|
import { $ as de } from "./Form-CXcEMuBf.js";
|
|
6
|
-
import {
|
|
7
|
-
import { $ as oe, a as se, c as te } from "./SelectionIndicator-
|
|
6
|
+
import { c as le } from "./Button-BbfVT9Yl.js";
|
|
7
|
+
import { $ as oe, a as se, c as te } from "./SelectionIndicator-C2E23-zO.js";
|
|
8
8
|
import { $ as ne } from "./Text-bqP9NeVg.js";
|
|
9
9
|
import { a as y, c as ce } from "./mergeProps-Ct8m5-xW.js";
|
|
10
10
|
import { $ as E } from "./filterDOMProps-wsa9OcNI.js";
|
|
@@ -14,14 +14,14 @@ import { b as L } from "./usePress-BqQIhkNY.js";
|
|
|
14
14
|
import { a as $e } from "./useFocusable-BJj-Bkig.js";
|
|
15
15
|
import { h as ve } from "./utils-Dxh86KaB.js";
|
|
16
16
|
import { $ as pe } from "./useFocusWithin-DhXBuB2O.js";
|
|
17
|
-
import { $ as me } from "./useField-
|
|
17
|
+
import { $ as me } from "./useField-Bx76iuoW.js";
|
|
18
18
|
import { $ as Pe } from "./context-Dl_saGB6.js";
|
|
19
19
|
import { $ as he } from "./useFocusRing-CcxI7nbg.js";
|
|
20
20
|
import { $ as xe } from "./useHover-DkC5FyNd.js";
|
|
21
21
|
import { $ as Re } from "./VisuallyHidden-DuW70K-5.js";
|
|
22
22
|
import { $ as ye } from "./useControlledState-u436Wbp1.js";
|
|
23
23
|
import { c as W } from "./clsx-jbLnTBqA.js";
|
|
24
|
-
import { a as Ve, L as ge } from "./Label-
|
|
24
|
+
import { a as Ve, L as ge } from "./Label-FfEnd4ai.js";
|
|
25
25
|
import { T as De } from "./Text-BBFWBNAH.js";
|
|
26
26
|
import './assets/Radio.css';const j = /* @__PURE__ */ new WeakMap();
|
|
27
27
|
function Ie(a, e, r) {
|