@baton8/general-components 3.1.0-alpha.1 → 3.1.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/button/button.d.ts +1 -1
- package/dist/components/atoms/iconButton/iconButton.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/modules/card/cardButton.d.ts +1 -1
- package/dist/components/modules/dialog/dialog.d.ts +0 -1
- package/dist/components/modules/dialog/dialogButton.d.ts +1 -1
- package/dist/components/modules/drawer/drawer.d.ts +2 -0
- package/dist/components/modules/drawer/drawerButton.d.ts +1 -1
- package/dist/components/modules/drawer/drawerCloseButton.d.ts +13 -0
- package/dist/components/modules/drawer/drawerFooter.d.ts +0 -3
- package/dist/components/modules/drawer/index.d.ts +2 -0
- package/dist/components/modules/menu/menu.d.ts +5 -0
- package/dist/components/modules/popover/index.d.ts +1 -0
- package/dist/components/modules/popover/popover.d.ts +38 -0
- package/dist/index.js +131 -87
- package/dist/index.js.map +1 -1
- package/dist/stories/modules/drawer/drawer.stories.d.ts +2 -0
- package/dist/stories/modules/popover/popover.stories.d.ts +33 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(()=>{var e={714:e=>{e.exports={"dialogCloseButton.close":"Close dialog","loadingIcon.label":"Loading","select.select":"Select","select.noOption":"No options","select.loading":"Loading","sortOrderSelect.ascending":"Asc","sortOrderSelect.descending":"Desc","bulkOperationButton.text":"Action","cardListEmpty.empty":"No data found","cardListLoading.loading":"Loading","pagination.label":"Pagination","pagination.first":"First","pagination.previous":"Previous","pagination.next":"Next","pagination.last":"Last","rankView.label":"{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}} place","toast.rootLabel":"Notification","toast.viewportLabel":"Notifications (F8)","quizCardTitle.emptyQuestion":"No question","quizCardTitle.emptyAnswer":"No correct options","groupFootnote.noGroup":"Deleted group","privateFootnote.private":"Limited","privateFootnote.public":"Public","userFootnote.noUser":"Deleted user","imageView.noImage":"No image found","mediumView.unsupported":"Unsupported media"}},62:e=>{e.exports={"dialogCloseButton.close":"ダイアログを閉じる","loadingIcon.label":"読み込み中","select.select":"選択してください","select.noOption":"該当する項目がありません","select.loading":"読み込み中","sortOrderSelect.ascending":"昇順","sortOrderSelect.descending":"降順","bulkOperationButton.text":"一括操作","cardListEmpty.empty":"該当するデータがありません","cardListLoading.loading":"読み込み中","pagination.label":"ページネーション","pagination.first":"最初へ","pagination.previous":"前へ","pagination.next":"次へ","pagination.last":"最後へ","rankView.label":"{rank, number}位","toast.rootLabel":"お知らせ","toast.viewportLabel":"お知らせ (F8)","quizCardTitle.emptyQuestion":"問題文がありません","quizCardTitle.emptyAnswer":"正答選択肢がありません","groupFootnote.noGroup":"削除されたグループ","privateFootnote.private":"限定公開","privateFootnote.public":"全体公開","userFootnote.noUser":"退会したユーザー","imageView.noImage":"画像がありません","mediumView.unsupported":"サポートされていないメディアです"}}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,o),i.exports}o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};(()=>{"use strict";o.r(t),o.d(t,{AlignedRadioGroup:()=>co,AsyncSelect:()=>de,AsyncSelectOption:()=>ue,Avatar:()=>ye,AvatarFallbackIcon:()=>
|
|
1
|
+
(()=>{var e={714:e=>{e.exports={"dialogCloseButton.close":"Close dialog","loadingIcon.label":"Loading","select.select":"Select","select.noOption":"No options","select.loading":"Loading","sortOrderSelect.ascending":"Asc","sortOrderSelect.descending":"Desc","bulkOperationButton.text":"Action","cardListEmpty.empty":"No data found","cardListLoading.loading":"Loading","pagination.label":"Pagination","pagination.first":"First","pagination.previous":"Previous","pagination.next":"Next","pagination.last":"Last","rankView.label":"{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}} place","toast.rootLabel":"Notification","toast.viewportLabel":"Notifications (F8)","quizCardTitle.emptyQuestion":"No question","quizCardTitle.emptyAnswer":"No correct options","groupFootnote.noGroup":"Deleted group","privateFootnote.private":"Limited","privateFootnote.public":"Public","userFootnote.noUser":"Deleted user","imageView.noImage":"No image found","mediumView.unsupported":"Unsupported media"}},62:e=>{e.exports={"dialogCloseButton.close":"ダイアログを閉じる","loadingIcon.label":"読み込み中","select.select":"選択してください","select.noOption":"該当する項目がありません","select.loading":"読み込み中","sortOrderSelect.ascending":"昇順","sortOrderSelect.descending":"降順","bulkOperationButton.text":"一括操作","cardListEmpty.empty":"該当するデータがありません","cardListLoading.loading":"読み込み中","pagination.label":"ページネーション","pagination.first":"最初へ","pagination.previous":"前へ","pagination.next":"次へ","pagination.last":"最後へ","rankView.label":"{rank, number}位","toast.rootLabel":"お知らせ","toast.viewportLabel":"お知らせ (F8)","quizCardTitle.emptyQuestion":"問題文がありません","quizCardTitle.emptyAnswer":"正答選択肢がありません","groupFootnote.noGroup":"削除されたグループ","privateFootnote.private":"限定公開","privateFootnote.public":"全体公開","userFootnote.noUser":"退会したユーザー","imageView.noImage":"画像がありません","mediumView.unsupported":"サポートされていないメディアです"}}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,o),i.exports}o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};(()=>{"use strict";o.r(t),o.d(t,{AlignedRadioGroup:()=>co,AsyncSelect:()=>de,AsyncSelectOption:()=>ue,Avatar:()=>ye,AvatarFallbackIcon:()=>Oe,AvatarFallbackLetter:()=>we,Badge:()=>qe,BadgeIconContainer:()=>Ne,BarMeter:()=>De,BarMeterValue:()=>Fe,BarMeterValueIconContainer:()=>Ae,BarProgress:()=>Te,BulkOperationButton:()=>xt,BulkOperationContainer:()=>Ot,Button:()=>Ge,ButtonIconContainer:()=>Qe,Card:()=>qt,CardBody:()=>St,CardButton:()=>zt,CardButtonList:()=>Et,CardButtonListColumn:()=>Mt,CardControlContainer:()=>Ft,CardGrip:()=>At,CardHeadnote:()=>Nt,CardList:()=>Yt,CardListAuto:()=>an,CardListBody:()=>_t,CardListBodyAuto:()=>ln,CardListEmpty:()=>Kt,CardListFooter:()=>Wt,CardListFooterAuto:()=>sn,CardListHeader:()=>Zt,CardListHeaderLeft:()=>en,CardListHeaderRight:()=>on,CardListLoading:()=>nn,CardTitle:()=>Tt,CheckableContainer:()=>Je,CheckableLabel:()=>Xe,Checkbox:()=>or,ContentHeader:()=>dn,ContentTitle:()=>pn,ControlContainer:()=>nr,ControlErrorMessage:()=>sr,ControlGroup:()=>fr,ControlHelper:()=>dr,ControlLabel:()=>pr,CountIndicator:()=>fn,Dialog:()=>hn,DialogBody:()=>vn,DialogButton:()=>xn,DialogCloseButton:()=>wn,DialogFooter:()=>qn,DialogHeader:()=>Nn,DialogTitle:()=>Sn,Divider:()=>yr,Drawer:()=>En,DrawerBody:()=>Mn,DrawerButton:()=>Rn,DrawerCaption:()=>Fn,DrawerCloseButton:()=>An,DrawerFooter:()=>Tn,DrawerHeader:()=>Yn,DrawerHeaderLeft:()=>_n,DrawerHeaderRight:()=>Kn,DrawerTitle:()=>Wn,FileInput:()=>Or,Footnote:()=>ei,FootnoteIconContainer:()=>oi,FootnoteList:()=>ni,FootnoteListRow:()=>ai,FractionView:()=>di,FractionViewDenominator:()=>pi,FractionViewNumerator:()=>fi,GeneralIcon:()=>gr,Header:()=>yi,HeaderLeft:()=>hi,HeaderMenu:()=>vi,HeaderMenuItem:()=>ji,HeaderMenuItemIconContainer:()=>$i,Heading:()=>jr,Icon:()=>$r,IconButton:()=>kr,Input:()=>Ir,InputLeftAddon:()=>Pr,InputRightAddon:()=>Cr,LEVELED_COLOR_SCHEMES:()=>u,Link:()=>Lr,LinkIconContainer:()=>Br,LoadingIcon:()=>Hr,Menu:()=>Ii,MenuDivider:()=>Fi,MenuItem:()=>Si,MenuItemIconContainer:()=>Ri,Modal:()=>_r,MultiLineText:()=>ar,NumberInput:()=>Wr,NumberInputLeftAddon:()=>Kr,PageSizeSelect:()=>Xo,PageSizeSelectAuto:()=>tt,Pagination:()=>Ai,PaginationAuto:()=>Hi,PasswordInput:()=>oo,PasswordInputLeftAddon:()=>Zr,PasswordInputRightAddon:()=>eo,Popover:()=>Vi,Radio:()=>ao,RadioGroup:()=>lo,RankView:()=>Ui,Root:()=>Yo,SecondaryHeading:()=>_o,Select:()=>Ko,SelectOption:()=>Wo,SelectOptionIconContainer:()=>Zo,SimpleToast:()=>$a,SingleLineText:()=>Re,SortOrderSelect:()=>nt,Stepper:()=>ea,StepperBody:()=>ta,StepperItem:()=>Zi,StepperNumber:()=>ia,StepperTitle:()=>la,Switch:()=>lt,Tab:()=>ba,TabIconContainer:()=>ua,TabList:()=>ca,Tag:()=>ct,TagIconContainer:()=>bt,TagList:()=>ut,Textarea:()=>mt,Toast:()=>ga,ToastBody:()=>Oa,ToastMessage:()=>xa,ToastSupplement:()=>wa,UNLEVELED_COLOR_SCHEMES:()=>f,VisuallyHidden:()=>gt,alpha:()=>j,borderWidth:()=>q,boxShadow:()=>k,color:()=>x,createColorDefinition:()=>m,createTrans:()=>Bo,dimension:()=>Pa,fixedLineHeight:()=>C,flexHorizontal:()=>ka,flexVertical:()=>qa,fontFamily:()=>O,fontWeight:()=>v,intlSubject:()=>Io,lineHeight:()=>S,localeSubject:()=>Eo,margin:()=>Na,mergeLocalizationMessages:()=>$o,resolveResponsiveValue:()=>ko,size:()=>$,toResponsiveValue:()=>qo,useBehaviorSubject:()=>Co,useDialog:()=>Ca,useIntl:()=>Do,useLocale:()=>Mo,useRadioGroup:()=>za,useResponsiveValue:()=>Po,useSetLocale:()=>Ro,useSmartphone:()=>No,useSubject:()=>So,useToast:()=>Ia,useTrans:()=>Lo,useTranslation:()=>Fo,whenDesktop:()=>P,whenSmartphone:()=>N});const e=require("@emotion/react/jsx-runtime"),r=require("react"),n=require("react-select/async");var i=o.n(n);const a=require("@emotion/react"),l=require("@fortawesome/react-fontawesome"),s=require("@fortawesome/sharp-regular-svg-icons"),c=require("react-select");var d=o.n(c);const b=require("color");var p=o.n(b);const u=["primary","secondary","blue","red","green","pink","yellow","purple","orange","gray","gold","silver","bronze"],f=["white","black","whiteText","blackText","background","deepBackground"],m=(e,r)=>{const o=p()(e),t=p()("black"),n=p()("white");return{9:o.saturate(4*r.dark.saturation/4).mix(t,4*r.dark.mix/4).hex(),8:o.saturate(3*r.dark.saturation/4).mix(t,3*r.dark.mix/4).hex(),7:o.saturate(2*r.dark.saturation/4).mix(t,2*r.dark.mix/4).hex(),6:o.saturate(1*r.dark.saturation/4).mix(t,1*r.dark.mix/4).hex(),5:o.hex(),4:o.saturate(1*r.light.saturation/5).mix(n,1*r.light.mix/5).hex(),3:o.saturate(2*r.light.saturation/5).mix(n,2*r.light.mix/5).hex(),2:o.saturate(3*r.light.saturation/5).mix(n,3*r.light.mix/5).hex(),1:o.saturate(4*r.light.saturation/5).mix(n,4*r.light.mix/5).hex(),0:o.saturate(5*r.light.saturation/5).mix(n,5*r.light.mix/5).hex()}},y={primary:m("hsl(203, 100%, 38%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),secondary:m("hsl(2, 77%, 64%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),blue:m("hsl(230, 70%, 55%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),red:m("hsl(0, 65%, 60%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),green:m("hsl(110, 45%, 45%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),pink:m("hsl(340, 60%, 60%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.2}}),yellow:m("hsl(60, 65%, 50%)",{dark:{mix:.55,saturation:-.3},light:{mix:.93,saturation:.1}}),purple:m("hsl(260, 55%, 57%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),orange:m("hsl(30, 75%, 55%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.2}}),gray:m("hsl(203, 20%, 65%)",{dark:{mix:.55,saturation:-.3},light:{mix:.93,saturation:.3}}),gold:m("hsl(50, 80%, 43%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),silver:m("hsl(240, 15%, 65%)",{dark:{mix:.55,saturation:-.3},light:{mix:.93,saturation:.3}}),bronze:m("hsl(20, 50%, 50%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),white:p()("hsl(203, 0%, 100%)").hex(),black:p()("hsl(203, 33%, 10%)").hex(),whiteText:p()("hsl(203, 0%, 87%)").hex(),blackText:p()("hsl(203, 0%, 27%)").hex(),background:p()("hsl(203, 20%, 98%)").hex(),deepBackground:p()("hsl(203, 20%, 96%)").hex()},g=(e,r)=>null!=r?`var(--qlib-cs-${e}-${r})`:`var(--qlib-cs-${e})`,h=e=>{const r=[],o=Object.assign(Object.assign({},y),e);for(const[e,t]of Object.entries(o))if("string"==typeof t)r.push(`--qlib-cs-${e}: ${p()(t).rgb().array().join(", ")};`);else for(const[o,n]of Object.entries(t))r.push(`--qlib-cs-${e}-${o}: ${p()(n).rgb().array().join(", ")};`);return a.css`
|
|
2
2
|
:root {
|
|
3
3
|
${r.join("\n")}
|
|
4
4
|
}
|
|
5
|
-
`};function
|
|
5
|
+
`};function O(){return"'Inter', 'Noto Sans JP', 'Dubai', 'Noto Sans', sans-serif"}function v(e){return"normal"===e?400:700}function x(e,r){return f.includes(e)?`rgb(${g(e,void 0)})`:`rgb(${g(e,r)})`}function j(e,r){return e.startsWith("rgb(")?`rgba(${e.slice(4,-1)}, ${r})`:p()(e).alpha(r).rgb().string()}const w={gap:"0.375em",unitGap:"0.25em",max:"1000em"};function $(e){return"number"==typeof e?e/4+"rem":w[e]}function q(e){return e/16+"rem"}function k(e,r,o){return o?`0rem ${-r/8}rem ${r/4}rem ${e} inset`:`0rem ${r/8}rem ${r/4}rem ${e}`}function N(){return'html[data-qlib-smartphone="true"] &'}function P(){return'html[data-qlib-smartphone="false"] &'}function S(e,r){return a.css`
|
|
6
6
|
line-height: ${e};
|
|
7
7
|
&::before {
|
|
8
8
|
block-size: ${$(0)};
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
white-space: nowrap;
|
|
177
177
|
text-overflow: ellipsis;
|
|
178
178
|
overflow: hidden;
|
|
179
|
-
`},le=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(c.components.Placeholder,Object.assign({css:ae.root},t,{children:o}))},se=e=>{const[o,t]=(0,r.useState)(!1),[n,i]=(0,r.useState)(!1),a=(0,r.useRef)(null);return{isMenuOpen:o,menuIsOpen:n,onMenuOpen:(0,r.useCallback)((()=>{t(!0),i(!0),null!=a.current&&clearTimeout(a.current)}),[]),onMenuClose:(0,r.useCallback)((()=>{t(!1),a.current=setTimeout((()=>{i(!1)}),e)}),[e])}};const ce={Control:H,Input:G,Placeholder:le,MenuPortal:re,Menu:J,MenuList:X,Option:ie,NoOptionsMessage:te,LoadingMessage:r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);const{trans:n}=D("select");return(0,e.jsx)(c.components.LoadingMessage,Object.assign({css:M.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})}))},DropdownIndicator:V,ClearIndicator:B,IndicatorsContainer:U,IndicatorSeparator:null,LoadingIndicator:null},de=({value:o,defaultValue:t,searchOptions:n,variant:a="outline",optionAlignment:l="left",isError:s=!1,isClearable:c=!1,isDisabled:d=!1,onSet:b,children:p,className:u})=>{const{trans:f}=D("select"),m=null!=o?be(o,p):o,y=null!=t?be(t,p):t,g=(0,r.useCallback)((e=>{return r=void 0,o=void 0,i=function*(){const r=(yield n(e)).map((e=>be(e,p)));return r},new((t=void 0)||(t=Promise))((function(e,n){function a(e){try{s(i.next(e))}catch(e){n(e)}}function l(e){try{s(i.throw(e))}catch(e){n(e)}}function s(r){var o;r.done?e(r.value):(o=r.value,o instanceof t?o:new t((function(e){e(o)}))).then(a,l)}s((i=i.apply(r,o||[])).next())}));var r,o,t,i}),[n,p]),h=(0,r.useCallback)((e=>{null==b||b(null!==e?e.value:null)}),[b]),
|
|
179
|
+
`},le=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(c.components.Placeholder,Object.assign({css:ae.root},t,{children:o}))},se=e=>{const[o,t]=(0,r.useState)(!1),[n,i]=(0,r.useState)(!1),a=(0,r.useRef)(null);return{isMenuOpen:o,menuIsOpen:n,onMenuOpen:(0,r.useCallback)((()=>{t(!0),i(!0),null!=a.current&&clearTimeout(a.current)}),[]),onMenuClose:(0,r.useCallback)((()=>{t(!1),a.current=setTimeout((()=>{i(!1)}),e)}),[e])}};const ce={Control:H,Input:G,Placeholder:le,MenuPortal:re,Menu:J,MenuList:X,Option:ie,NoOptionsMessage:te,LoadingMessage:r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);const{trans:n}=D("select");return(0,e.jsx)(c.components.LoadingMessage,Object.assign({css:M.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})}))},DropdownIndicator:V,ClearIndicator:B,IndicatorsContainer:U,IndicatorSeparator:null,LoadingIndicator:null},de=({value:o,defaultValue:t,searchOptions:n,variant:a="outline",optionAlignment:l="left",isError:s=!1,isClearable:c=!1,isDisabled:d=!1,onSet:b,children:p,className:u})=>{const{trans:f}=D("select"),m=null!=o?be(o,p):o,y=null!=t?be(t,p):t,g=(0,r.useCallback)((e=>{return r=void 0,o=void 0,i=function*(){const r=(yield n(e)).map((e=>be(e,p)));return r},new((t=void 0)||(t=Promise))((function(e,n){function a(e){try{s(i.next(e))}catch(e){n(e)}}function l(e){try{s(i.throw(e))}catch(e){n(e)}}function s(r){var o;r.done?e(r.value):(o=r.value,o instanceof t?o:new t((function(e){e(o)}))).then(a,l)}s((i=i.apply(r,o||[])).next())}));var r,o,t,i}),[n,p]),h=(0,r.useCallback)((e=>{null==b||b(null!==e?e.value:null)}),[b]),O=se(200),{isMenuOpen:v}=O,x=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(O,["isMenuOpen"]),j=(0,r.useMemo)((()=>({variant:a,optionAlignment:l,isMenuOpen:v,isError:s})),[a,l,v,s]);return(0,e.jsx)(L,{value:j,children:(0,e.jsx)(i(),Object.assign({className:u,classNamePrefix:"qlib-select",value:m,defaultValue:y,loadOptions:g,onChange:null!=b?h:void 0,isClearable:c,isDisabled:d,defaultOptions:!0,placeholder:f("select"),menuPortalTarget:"object"==typeof window?document.body:void 0,components:ce,isMulti:!1,unstyled:!0,"aria-invalid":s},x))})},be=(e,r)=>{const o=r(e);return{value:e,label:o.props.label,node:o}};de.displayName="AsyncSelect";const pe={root:a.css`
|
|
180
180
|
`},ue=r=>{var{label:o,isDisabled:t=!1,children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["label","isDisabled","children","className"]);return(0,e.jsx)("div",Object.assign({css:pe.root,className:i},a,{children:null!=n?n:o}))};ue.displayName="AsyncSelectOption";const fe=require("@radix-ui/react-avatar");const me={root:a.css`
|
|
181
181
|
inline-size: 1.5em;
|
|
182
182
|
block-size: 1.5em;
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
justify-content: center;
|
|
210
210
|
`,icon:a.css`
|
|
211
211
|
font-size: 1.2em;
|
|
212
|
-
`},
|
|
212
|
+
`},Oe=(0,r.forwardRef)(((r,o)=>{var{hue:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["hue","className"]);return(0,e.jsx)(fe.Fallback,Object.assign({css:he.fallback,ref:o,delayMs:500,style:{color:`hsl(${t}, 100%, 95%)`,backgroundColor:`hsl(${t}, 30%, 50%)`}},i,{children:(0,e.jsx)(l.FontAwesomeIcon,{css:he.icon,icon:ge.faUser})}))}));Oe.displayName="AvatarFallbackIcon";const ve=require("graphemesplit");var xe=o.n(ve);const je={fallback:a.css`
|
|
213
213
|
width: 100%;
|
|
214
214
|
height: 100%;
|
|
215
215
|
font-size: 0.8em;
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
&[data-qlib-loading="true"] {
|
|
497
497
|
display: flex;
|
|
498
498
|
}
|
|
499
|
-
`},Ge=(0,r.forwardRef)(((o,t)=>{var n,{scheme:i="primary",variant:a="solid",size:c="medium",isCompact:d=!1,type:b="button",isDisabled:p,isLoading:u=!1,onClick:f,onKeyDown:m,onKeyUp:y,onMouseDown:g,onPointerDown:h,children:
|
|
499
|
+
`},Ge=(0,r.forwardRef)(((o,t)=>{var n,{scheme:i="primary",variant:a="solid",size:c="medium",isCompact:d=!1,type:b="button",isDisabled:p,isLoading:u=!1,onClick:f,onKeyDown:m,onKeyUp:y,onMouseDown:g,onPointerDown:h,children:O,className:v}=o,x=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","variant","size","isCompact","type","isDisabled","isLoading","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","children","className"]);const j=(0,r.useContext)(Ve),w=null!==(n=null!=p?p:null==j?void 0:j.isDisabled)&&void 0!==n&&n,$=(0,r.useMemo)((()=>"solid"===a||"light"===a?_e.rootBox(i):"underline"===a||"simple"===a?_e.rootText(i):_e.rootUnstyled(i)),[i,a]);return(0,e.jsxs)("button",Object.assign({className:v,css:$,type:b,disabled:w||u,onClick:f,onKeyDown:m,onKeyUp:y,onMouseDown:g,onPointerDown:h,ref:t,"data-qlib-variant":a,"data-qlib-size":c,"data-qlib-compact":d,"data-qlib-loading":u},x,{children:[O,(0,e.jsx)("div",{css:_e.loading,"data-qlib-loading":u,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})})]}))}));Ge.displayName="Button";const Ke={root:a.css`
|
|
500
500
|
margin-inline-end: ${$("gap")};
|
|
501
501
|
display: inline;
|
|
502
502
|
flex-grow: 0;
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
input:indeterminate +* >& {
|
|
590
590
|
color: var(--qlib-checked-background-color);
|
|
591
591
|
}
|
|
592
|
-
`},or=(0,r.forwardRef)(((o,t)=>{var n,i,{scheme:a="primary",isChecked:s,name:c,value:d,isError:b,isRequired:p,isDisabled:u,onSet:f,onChange:m,onBlur:y,className:g,inputClassName:h,inputId:
|
|
592
|
+
`},or=(0,r.forwardRef)(((o,t)=>{var n,i,{scheme:a="primary",isChecked:s,name:c,value:d,isError:b,isRequired:p,isDisabled:u,onSet:f,onChange:m,onBlur:y,className:g,inputClassName:h,inputId:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","isChecked","name","value","isError","isRequired","isDisabled","onSet","onChange","onBlur","className","inputClassName","inputId"]);const x=(0,r.useContext)(Ve),j=null!==(n=null!=b?b:null==x?void 0:x.isError)&&void 0!==n&&n,w=null!==(i=null!=u?u:null==x?void 0:x.isDisabled)&&void 0!==i&&i,$=(0,er.useId)(),q=(0,r.useRef)(null),k=(0,er.useMergeRefs)([t,q]),N=(0,r.useCallback)((e=>{const r=e.target.checked;null==f||f(r),null==m||m(e)}),[f,m]);return(0,r.useEffect)((()=>{null!=q.current&&(q.current.indeterminate="indeterminate"===s)}),[s]),(0,e.jsxs)("div",Object.assign({css:rr.root(a),className:g,"data-qlib-disabled":w,"data-qlib-error":j},v,{children:[(0,e.jsx)("input",{type:"checkbox",css:rr.original,ref:k,className:h,id:O||$,checked:null!=s?!0===s:void 0,name:c,value:d,required:p,disabled:w,onChange:null!=f||null!=m?N:void 0,onBlur:y,"aria-invalid":j}),(0,e.jsx)("label",{css:rr.input,htmlFor:O||$,"aria-hidden":"true",children:(0,e.jsx)(l.FontAwesomeIcon,{css:rr.icon,icon:"indeterminate"===s?ge.faMinus:ge.faCheck})})]}))}));or.displayName="Checkbox";const tr={root:a.css`
|
|
593
593
|
row-gap: ${$(2)};
|
|
594
594
|
display: flex;
|
|
595
595
|
flex-direction: column;
|
|
@@ -634,7 +634,7 @@
|
|
|
634
634
|
color: ${x("gray",5)};
|
|
635
635
|
`},dr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(ar,Object.assign({className:n,css:cr.root,ref:o,as:"p",lineHeight:"narrow"},i,{children:t}))}));dr.displayName="ControlHelper";const br={root:a.css`
|
|
636
636
|
font-size: ${$(4)};
|
|
637
|
-
font-weight: ${
|
|
637
|
+
font-weight: ${v("bold")};
|
|
638
638
|
color: ${x("gray",7)};
|
|
639
639
|
`},pr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(Re,Object.assign({className:n,css:br.root,as:"div",ref:o},i,{children:t}))}));pr.displayName="ControlLabel";const ur={root:a.css`
|
|
640
640
|
display: flex;
|
|
@@ -719,11 +719,11 @@
|
|
|
719
719
|
color: ${x("gray",5)};
|
|
720
720
|
flex-grow: 0;
|
|
721
721
|
flex-shrink: 0;
|
|
722
|
-
`},
|
|
722
|
+
`},Or=o=>{var t,n,{value:i,name:a,size:l="medium",multiple:c,accept:d,autoFocus:b,isError:p,isRequired:u,isDisabled:f,onSet:m,onChange:y,onBlur:g,children:h,className:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","multiple","accept","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const x=(0,r.useContext)(Ve),j=null!==(t=null!=p?p:null==x?void 0:x.isError)&&void 0!==t&&t,w=null!==(n=null!=f?f:null==x?void 0:x.isDisabled)&&void 0!==n&&n,$=(0,r.useRef)(null),[q,k]=(0,r.useState)(""),N=(0,r.useCallback)((function(e){var r,o;const t=Array.from(null!==(r=e.target.files)&&void 0!==r?r:[]);c?null==m||m(t):null==m||m(null!==(o=t[0])&&void 0!==o?o:null),null==y||y(e),k(vr(t))}),[c,m,y]),P=(0,r.useCallback)((function(){var e;null===(e=$.current)||void 0===e||e.click()}),[]);return(0,e.jsx)("div",{className:O,css:hr.root,"data-qlib-size":l,"data-qlib-disabled":w,"data-qlib-error":j,children:(0,e.jsxs)("div",{css:hr.inputContainer,children:[(0,e.jsx)("input",Object.assign({css:hr.input,ref:$,name:a,type:"file",multiple:c,accept:d,autoFocus:b,required:u,disabled:w,onChange:N,onBlur:g,"aria-invalid":j},v)),(0,e.jsx)("button",{css:hr.button,disabled:w,onClick:P,"aria-hidden":!0,children:q}),(0,e.jsx)("div",{css:hr.builtinAddon,children:(0,e.jsx)(gr,{icon:c?s.faFiles:s.faFile})})]})})};function vr(e){return Array.isArray(e)?e.map(vr).join(", "):null!=e?e.name:""}Or.displayName="FileInput";const xr={root:a.css`
|
|
723
723
|
padding-block: ${$(1)};
|
|
724
724
|
padding-inline-start: ${$(3)};
|
|
725
725
|
font-size: ${$(5)};
|
|
726
|
-
font-weight: ${
|
|
726
|
+
font-weight: ${v("bold")};
|
|
727
727
|
border-inline-start: solid ${$(1)} ${x("primary",5)};
|
|
728
728
|
display: flex;
|
|
729
729
|
align-items: center;
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
&[data-qlib-loading="true"] {
|
|
815
815
|
display: flex;
|
|
816
816
|
}
|
|
817
|
-
`},kr=(0,r.forwardRef)(((o,t)=>{var{label:n,scheme:i="primary",variant:a="solid",size:c="medium",type:d="button",isDisabled:b,isLoading:p=!1,onClick:u,onKeyDown:f,onKeyUp:m,onMouseDown:y,onPointerDown:g,className:h,children:
|
|
817
|
+
`},kr=(0,r.forwardRef)(((o,t)=>{var{label:n,scheme:i="primary",variant:a="solid",size:c="medium",type:d="button",isDisabled:b,isLoading:p=!1,onClick:u,onKeyDown:f,onKeyUp:m,onMouseDown:y,onPointerDown:g,className:h,children:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["label","scheme","variant","size","type","isDisabled","isLoading","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","className","children"]);const x=(0,r.useContext)(Ve);return null!=b?b:null==x?void 0:x.isDisabled,(0,e.jsxs)("button",Object.assign({className:h,css:qr.rootBox(i),type:d,disabled:b||p,onClick:u,onKeyDown:f,onKeyUp:m,onMouseDown:y,onPointerDown:g,ref:t,"aria-label":n,"data-qlib-variant":a,"data-qlib-size":c,"data-qlib-loading":p},v,{children:[O,(0,e.jsx)("div",{css:qr.loading,"data-qlib-loading":p,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})})]}))}));kr.displayName="IconButton";const Nr={root:a.css`
|
|
818
818
|
flex-grow: 0;
|
|
819
819
|
flex-shrink: 0;
|
|
820
820
|
`},Pr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Nr.root,className:n,ref:o},i,{children:t}))}));Pr.displayName="InputLeftAddon";const Sr={root:a.css`
|
|
@@ -906,7 +906,7 @@
|
|
|
906
906
|
color: ${x("gray",5)};
|
|
907
907
|
flex-grow: 0;
|
|
908
908
|
flex-shrink: 0;
|
|
909
|
-
`},Ir=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:l,size:c="medium",isCompact:d=!1,type:b="text",inputMode:p,autoComplete:u="off",autoFocus:f,isError:m,isRequired:y,isDisabled:g,onSet:h,onChange:
|
|
909
|
+
`},Ir=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:l,size:c="medium",isCompact:d=!1,type:b="text",inputMode:p,autoComplete:u="off",autoFocus:f,isError:m,isRequired:y,isDisabled:g,onSet:h,onChange:O,onBlur:v,children:x,className:j,inputClassName:w,inputId:$}=o,q=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","isCompact","type","inputMode","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className","inputClassName","inputId"]);const k=(0,r.useContext)(Ve),N=null!==(n=null!=m?m:null==k?void 0:k.isError)&&void 0!==n&&n,P=null!==(i=null!=g?g:null==k?void 0:k.isDisabled)&&void 0!==i&&i,S=(0,r.useCallback)((e=>{const r=e.target.value;null==h||h(r),null==O||O(e)}),[h,O]),C=Se(x),z=C.find((e=>e.type===Pr)),I=C.find((e=>e.type===Cr));return(0,e.jsx)("label",{className:j,css:zr.root,"data-qlib-size":c,"data-qlib-compact":d,"data-qlib-disabled":P,"data-qlib-error":N,children:(0,e.jsxs)("div",{css:zr.inputContainer,children:[z,(0,e.jsx)("input",Object.assign({css:zr.input,className:w,id:$,ref:t,value:a,name:l,type:b,inputMode:p,autoComplete:u,autoFocus:f,required:y,disabled:P,onChange:null!=h||null!=O?S:void 0,onBlur:v,"aria-invalid":N},q)),Er(b)&&(0,e.jsx)("div",{css:zr.builtinAddon,children:(0,e.jsx)(gr,{icon:"time"===b?s.faClock:s.faCalendar})}),I]})})}));Ir.displayName="Input";const Er=e=>"date"===e||"time"===e||"datetime-local"===e||"month"===e||"week"===e;const Dr=e=>a.css`
|
|
910
910
|
// 文字サイズ
|
|
911
911
|
&[data-qlib-size="small"] {
|
|
912
912
|
--qlib-font-size: ${$(3)};
|
|
@@ -1204,7 +1204,7 @@
|
|
|
1204
1204
|
&:hover:not([data-disabled="true"]) {
|
|
1205
1205
|
background-color: ${x("gray",0)};
|
|
1206
1206
|
}
|
|
1207
|
-
`},Wr=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:c,size:d="medium",isCompact:b=!1,controlPosition:p="vertical",max:u,min:f,step:m,autoComplete:y="off",autoFocus:g,isError:h,isRequired:
|
|
1207
|
+
`},Wr=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:c,size:d="medium",isCompact:b=!1,controlPosition:p="vertical",max:u,min:f,step:m,autoComplete:y="off",autoFocus:g,isError:h,isRequired:O,isDisabled:v,onSet:x,onChange:j,onBlur:w,children:$,className:q}=o,k=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","isCompact","controlPosition","max","min","step","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const N=(0,r.useContext)(Ve),P=null!==(n=null!=h?h:null==N?void 0:N.isError)&&void 0!==n&&n,S=null!==(i=null!=v?v:null==N?void 0:N.isDisabled)&&void 0!==i&&i,C=(0,r.useRef)(null),z=(0,er.useMergeRefs)([t,C]),I=(0,r.useCallback)((e=>{const r=e.target.value;null==x||x(r),null==j||j(e)}),[x,j]),E=(0,r.useCallback)((e=>{null!=C.current&&(C.current.stepUp(),C.current.dispatchEvent(new Event("change",{bubbles:!0})),null==x||x(C.current.value))}),[x]),D=(0,r.useCallback)((e=>{null!=C.current&&(C.current.stepDown(),C.current.dispatchEvent(new Event("change",{bubbles:!0})),null==x||x(C.current.value))}),[x]),M=Se($).find((e=>e.type===Kr));return(0,e.jsx)("label",{className:q,css:Qr.root,"data-qlib-size":d,"data-qlib-compact":b,"data-qlib-disabled":S,"data-qlib-error":P,children:(0,e.jsxs)("div",{css:Qr.inputContainer,children:[M,(0,e.jsx)("input",Object.assign({css:Qr.input,ref:z,value:a,name:c,type:"number",max:u,min:f,step:m,autoComplete:y,autoFocus:g,required:O,disabled:S,onChange:null!=x||null!=j?I:void 0,onBlur:w,"aria-invalid":P},k)),"horizontal"===p&&(0,e.jsx)("button",{css:Qr.horizontalButton,type:"button",onClick:D,tabIndex:-1,"data-position":"left","data-disabled":S,"aria-hidden":!0,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleLeft})}),"horizontal"===p&&(0,e.jsx)("button",{css:Qr.horizontalButton,type:"button",onClick:E,tabIndex:-1,"data-position":"right","data-disabled":S,"aria-hidden":!0,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleRight})}),"vertical"===p&&(0,e.jsxs)("div",{css:Qr.vertivalButtonList,children:[(0,e.jsx)("button",{css:Qr.verticalButton,type:"button",onClick:E,tabIndex:-1,"data-disabled":S,"aria-hidden":!0,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleUp})}),(0,e.jsx)("hr",{css:Qr.verticalButtonDivider,"aria-hidden":!0}),(0,e.jsx)("button",{css:Qr.verticalButton,type:"button",onClick:D,tabIndex:-1,"data-disabled":S,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleDown})})]})]})})}));Wr.displayName="NumberInput";const Jr={root:a.css`
|
|
1208
1208
|
flex-grow: 0;
|
|
1209
1209
|
flex-shrink: 0;
|
|
1210
1210
|
`},Zr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Jr.root,className:n,ref:o},i,{children:t}))}));Zr.displayName="PasswordInputLeftAddon";const Xr={root:a.css`
|
|
@@ -1280,7 +1280,7 @@
|
|
|
1280
1280
|
outline: solid ${q(2)} ${j(x("primary",4),.6)};
|
|
1281
1281
|
outline-offset: ${q(1)};
|
|
1282
1282
|
}
|
|
1283
|
-
`},oo=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:c,size:d="medium",initialReveal:b=!1,inputMode:p,autoComplete:u="current-password",autoFocus:f,isError:m,isRequired:y,isDisabled:g,onSet:h,onChange:
|
|
1283
|
+
`},oo=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:c,size:d="medium",initialReveal:b=!1,inputMode:p,autoComplete:u="current-password",autoFocus:f,isError:m,isRequired:y,isDisabled:g,onSet:h,onChange:O,onBlur:v,children:x,className:j}=o,w=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","initialReveal","inputMode","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const $=(0,r.useContext)(Ve),q=null!==(n=null!=m?m:null==$?void 0:$.isError)&&void 0!==n&&n,k=null!==(i=null!=g?g:null==$?void 0:$.isDisabled)&&void 0!==i&&i,N=(0,r.useId)(),[P,S]=(0,r.useState)(b),C=(0,r.useCallback)((()=>{S((e=>!e))}),[]),z=(0,r.useCallback)((e=>{const r=e.target.value;null==h||h(r),null==O||O(e)}),[h,O]),I=Se(x),E=I.find((e=>e.type===Zr)),D=I.find((e=>e.type===eo));return(0,e.jsx)("label",Object.assign({className:j,css:ro.root,"data-qlib-size":d,"data-qlib-disabled":k,"data-qlib-error":q},w,{children:(0,e.jsxs)("div",{css:ro.inputContainer,children:[E,(0,e.jsx)("input",Object.assign({css:ro.input,id:N,ref:t,value:a,name:c,type:P?"input":"password",inputMode:p,autoComplete:u,autoFocus:f,required:y,disabled:k,onChange:null!=h||null!=O?z:void 0,onBlur:v,"aria-invalid":q},w)),(0,e.jsx)("button",{css:ro.button,type:"button",onClick:C,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:P?s.faEyeSlash:s.faEye})}),D]})}))}));oo.displayName="PasswordInput";const to=(0,r.createContext)(void 0),no=to.Provider;const io={root:e=>a.css`
|
|
1284
1284
|
&[data-qlib-error="false"] {
|
|
1285
1285
|
--qlib-border-color: ${x("gray",5)};
|
|
1286
1286
|
--qlib-focus-color: ${j(x(e,5),.6)};
|
|
@@ -1358,7 +1358,7 @@
|
|
|
1358
1358
|
input:checked +* >& {
|
|
1359
1359
|
opacity: 1;
|
|
1360
1360
|
}
|
|
1361
|
-
`},ao=(0,r.forwardRef)(((o,t)=>{var n,i,a,{scheme:l="primary",isChecked:s,name:c,value:d,isError:b,isRequired:p,isDisabled:u,onSet:f,onChange:m,onBlur:y,className:g,inputClassName:h,inputId:
|
|
1361
|
+
`},ao=(0,r.forwardRef)(((o,t)=>{var n,i,a,{scheme:l="primary",isChecked:s,name:c,value:d,isError:b,isRequired:p,isDisabled:u,onSet:f,onChange:m,onBlur:y,className:g,inputClassName:h,inputId:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","isChecked","name","value","isError","isRequired","isDisabled","onSet","onChange","onBlur","className","inputClassName","inputId"]);const x=(0,r.useContext)(to),j=(0,r.useContext)(Ve),w=null!==(n=null!=b?b:null==j?void 0:j.isError)&&void 0!==n&&n,$=null!==(i=null!=u?u:null==j?void 0:j.isDisabled)&&void 0!==i&&i,q=(0,er.useId)(),k=(0,r.useCallback)((e=>{if(null!=(null==x?void 0:x.onSet)&&null!=d)x.onSet(d);else{const r=e.target.checked;null==f||f(r)}null==m||m(e)}),[d,x,f,m]);return(0,e.jsxs)("div",Object.assign({css:io.root(l),className:g,"data-qlib-disabled":$,"data-qlib-error":w},v,{children:[(0,e.jsx)("input",{type:"radio",css:io.original,ref:t,className:h,id:O||q,value:d,name:null!==(a=null==x?void 0:x.name)&&void 0!==a?a:c,checked:null!=(null==x?void 0:x.value)?x.value===d:null!=s?!0===s:void 0,required:p,disabled:$,onChange:null!=(null==x?void 0:x.onSet)||null!=f||null!=m?k:void 0,onBlur:y,"aria-invalid":w}),(0,e.jsx)("label",{css:io.input,htmlFor:O||q,"aria-hidden":"true",children:(0,e.jsx)("div",{css:io.icon})})]}))}));ao.displayName="Radio";const lo=({value:o,onSet:t,children:n})=>{const i=(0,er.useId)(),a=(0,r.useMemo)((()=>({name:i,value:o,onSet:t})),[i,o,t]);return(0,e.jsx)(no,{value:a,children:n})};lo.displayName="RadioGroup";const so={root:a.css`
|
|
1362
1362
|
&[data-qlib-orientation="horizontal"] {
|
|
1363
1363
|
--qlib-flex-direction: row;
|
|
1364
1364
|
}
|
|
@@ -1384,7 +1384,7 @@
|
|
|
1384
1384
|
position: fixed;
|
|
1385
1385
|
outline: none;
|
|
1386
1386
|
z-index: 2000;
|
|
1387
|
-
`},ho=({})=>{const{trans:r}=D("toast");return(0,e.jsx)(yo.Viewport,{css:go.root,label:r("viewportLabel")})},
|
|
1387
|
+
`},ho=({})=>{const{trans:r}=D("toast");return(0,e.jsx)(yo.Viewport,{css:go.root,label:r("viewportLabel")})},Oo=(0,r.createContext)({setToastSpecs:()=>null}),vo=Oo.Provider,xo=({children:o})=>{const{trans:t}=D("toast"),[n,i]=(0,r.useState)([]),a=(0,r.useMemo)((()=>({setToastSpecs:i})),[i]);return(0,e.jsx)(yo.Provider,{label:t("rootLabel"),children:(0,e.jsxs)(vo,{value:a,children:[(0,e.jsx)(ho,{}),n.map((e=>e.element)),o]})})},jo=e=>Object.fromEntries(Object.entries(e).map((([e,r])=>[`qlib.${e}`,r]))),wo={ja:jo(o(62)),en:jo(o(714))},$o=e=>({ja:e.map((e=>{var r;return null!==(r=e.ja)&&void 0!==r?r:{}})).reduce(Object.assign,{}),en:e.map((e=>{var r;return null!==(r=e.en)&&void 0!==r?r:{}})).reduce(Object.assign,{})}),qo=e=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e:{desktop:e,smartphone:e},ko=(e,r)=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e[r]:e,No=()=>{const{smartphoneQuery:e}=(0,r.useContext)(fo);return(0,bo.useMedia)(e,!1)},Po=e=>{const r=No();return ko(e,r?"smartphone":"desktop")},So=e=>{const[o,t]=(0,r.useState)(void 0);return(0,r.useEffect)((()=>{const r=e.subscribe({next:e=>t(e)});return()=>r.unsubscribe()}),[e]),o},Co=e=>{const[o,t]=(0,r.useState)(e.value);return(0,r.useEffect)((()=>{const r=e.subscribe({next:e=>t(e)});return()=>r.unsubscribe()}),[e]),o},zo=require("rxjs"),Io=new zo.BehaviorSubject((0,E.createIntl)({locale:"ja",onError:e=>null})),Eo=new zo.BehaviorSubject("ja"),Do=()=>Co(Io),Mo=()=>Co(Eo),Ro=()=>(0,r.useCallback)((e=>{"undefined"!=typeof localStorage&&localStorage.setItem("qlib-locale",e),Eo.next(e)}),[]),Lo=e=>{const o=(0,E.useIntl)(),t=(0,r.useCallback)(((r,t)=>{var n;const i=r.includes(":")?r.replace(":","."):(null!=e?`${e}.`:"")+r,a=null!==(n=null==t?void 0:t.defaultMessage)&&void 0!==n?n:`<${i}>`;return o.formatMessage({id:i,defaultMessage:a},t)}),[o,e]),n=(0,r.useCallback)(((e,r)=>{if(null==e)return"";{const t=o.locale;if("ja"===t)switch(r){case"datetime":return I()(e).locale("ja").format("YYYY/MM/DD HH:mm");case"date":case void 0:return I()(e).locale("ja").format("YYYY/MM/DD");case"shortDate":return I()(e).locale("ja").format("MM/DD");case"time":return I()(e).locale("ja").format("HH:mm");default:throw new Error}else switch(r){case"datetime":return I()(e).locale(t).format("DD/MM/YYYY HH:mm");case"date":case void 0:return I()(e).locale(t).format("DD/MM/YYYY");case"shortDate":return I()(e).locale(t).format("DD/MM");case"time":return I()(e).locale(t).format("HH:mm");default:throw new Error}}}),[o]),i=(0,r.useCallback)(((e,r)=>{const t={minimumFractionDigits:null==r?void 0:r.digit,maximumFractionDigits:null==r?void 0:r.digit};return null!=e?e>0?((null==r?void 0:r.withSign)?"+":"")+o.formatNumber(e,t):0===e?((null==r?void 0:r.withSign)?"±":"")+o.formatNumber(e,t):"−"+o.formatNumber(-e,t):""}),[o]);return(0,r.useMemo)((()=>({trans:t,transNode:t,transDate:n,transNumber:i})),[t,n,i])},Fo=Lo,Bo=e=>{const r=Io.value;return{trans:(o,t)=>{var n;const i=o.includes(":")?o.replace(":","."):(null!=e?`${e}.`:"")+o,a=null!==(n=null==t?void 0:t.defaultMessage)&&void 0!==n?n:`<${i}>`;return r.formatMessage({id:i,defaultMessage:a},t)},transDate:(e,o)=>{if(null==e)return"";{const t=r.locale;if("ja"===t)switch(o){case"datetime":return I()(e).locale("ja").format("YYYY/MM/DD HH:mm");case"date":case void 0:return I()(e).locale("ja").format("YYYY/MM/DD");case"shortDate":return I()(e).locale("ja").format("MM/DD");case"time":return I()(e).locale("ja").format("HH:mm");default:throw new Error}else switch(o){case"datetime":return I()(e).locale(t).format("DD/MM/YYYY HH:mm");case"date":case void 0:return I()(e).locale(t).format("DD/MM/YYYY");case"shortDate":return I()(e).locale(t).format("DD/MM");case"time":return I()(e).locale(t).format("HH:mm");default:throw new Error}}},transNumber:(e,o)=>{const t={minimumFractionDigits:null==o?void 0:o.digit,maximumFractionDigits:null==o?void 0:o.digit};return null!=e?e>0?((null==o?void 0:o.withSign)?"+":"")+r.formatNumber(e,t):0===e?((null==o?void 0:o.withSign)?"±":"")+r.formatNumber(e,t):"−"+r.formatNumber(-e,t):""}}},Ao={resetAll:!0,font:!0,wrap:!0},Ho=(e,r)=>a.css`
|
|
1388
1388
|
${r.font?a.css`
|
|
1389
1389
|
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Sans+JP:wght@400;700&family=Noto+Sans:wght@400;700&display=swap");
|
|
1390
1390
|
`:""}
|
|
@@ -1397,7 +1397,7 @@
|
|
|
1397
1397
|
${r.font?a.css`
|
|
1398
1398
|
font-family: ${"'Inter', 'Noto Sans JP', 'Dubai', 'Noto Sans', sans-serif"};
|
|
1399
1399
|
`:""}
|
|
1400
|
-
font-weight: ${
|
|
1400
|
+
font-weight: ${v("normal")};
|
|
1401
1401
|
font-feature-settings: "palt" 1, "pkna" 1, "lnum" 1, "kern" 1 !important;
|
|
1402
1402
|
color: ${x("blackText")};
|
|
1403
1403
|
background-color: ${x("background")};
|
|
@@ -1438,13 +1438,13 @@
|
|
|
1438
1438
|
inline-size: ${$(0)};
|
|
1439
1439
|
opacity: 0;
|
|
1440
1440
|
position: fixed;
|
|
1441
|
-
`},Vo=({})=>(0,e.jsxs)("svg",{css:To.root,viewBox:"0 0 1 1","aria-hidden":!0,children:[(0,e.jsxs)("linearGradient",{id:"qlib-rank-gold",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("gold",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("gold",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("gold",5)})]}),(0,e.jsxs)("linearGradient",{id:"qlib-rank-silver",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("silver",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("silver",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("silver",5)})]}),(0,e.jsxs)("linearGradient",{id:"qlib-rank-bronze",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("bronze",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("bronze",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("bronze",5)})]})]}),Yo=({messages:o,rootFontSize:t={desktop:"16px",smartphone:"13px"},smartphoneQuery:n="(max-width: 767px)",colorDefinitions:i={},globalStyle:l,globalCssSetting:s,appElement:c,defaultReady:d=!1,children:b})=>{const p=Mo(),u=Ro(),f=Co(Io),m=Po(t),y=(0,r.useMemo)((()=>({rootFontSize:qo(t),smartphoneQuery:n})),[t,n]);(0,r.useEffect)((()=>{const e=$o([null!=o?o:{},wo]),r=(0,E.createIntlCache)(),t=(0,E.createIntl)({locale:p,messages:e[p],onError:e=>null},r);Io.next(t)}),[p,o]);const g=(0,bo.useMedia)(n,!1);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-qlib-smartphone",g.toString())}),[g]),(0,r.useEffect)((()=>{var e;"undefined"!=typeof localStorage&&u(null!==(e=localStorage.getItem("qlib-locale"))&&void 0!==e?e:"ja")}),[u]),(0,r.useEffect)((()=>{const e="next"in window?"#__next":c;e&&Yr().setAppElement(e)}),[c]);const[v
|
|
1441
|
+
`},Vo=({})=>(0,e.jsxs)("svg",{css:To.root,viewBox:"0 0 1 1","aria-hidden":!0,children:[(0,e.jsxs)("linearGradient",{id:"qlib-rank-gold",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("gold",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("gold",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("gold",5)})]}),(0,e.jsxs)("linearGradient",{id:"qlib-rank-silver",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("silver",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("silver",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("silver",5)})]}),(0,e.jsxs)("linearGradient",{id:"qlib-rank-bronze",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("bronze",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("bronze",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("bronze",5)})]})]}),Yo=({messages:o,rootFontSize:t={desktop:"16px",smartphone:"13px"},smartphoneQuery:n="(max-width: 767px)",colorDefinitions:i={},globalStyle:l,globalCssSetting:s,appElement:c,defaultReady:d=!1,children:b})=>{const p=Mo(),u=Ro(),f=Co(Io),m=Po(t),y=(0,r.useMemo)((()=>({rootFontSize:qo(t),smartphoneQuery:n})),[t,n]);(0,r.useEffect)((()=>{const e=$o([null!=o?o:{},wo]),r=(0,E.createIntlCache)(),t=(0,E.createIntl)({locale:p,messages:e[p],onError:e=>null},r);Io.next(t)}),[p,o]);const g=(0,bo.useMedia)(n,!1);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-qlib-smartphone",g.toString())}),[g]),(0,r.useEffect)((()=>{var e;"undefined"!=typeof localStorage&&u(null!==(e=localStorage.getItem("qlib-locale"))&&void 0!==e?e:"ja")}),[u]),(0,r.useEffect)((()=>{const e="next"in window?"#__next":c;e&&Yr().setAppElement(e)}),[c]);const[O,v]=(0,r.useState)(d);return(0,r.useEffect)((()=>{v(!0)}),[]),(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)(a.Global,{styles:Ho(m,Object.assign({},Ao,null!=s?s:{}))}),(0,e.jsx)(a.Global,{styles:h(i)}),(0,e.jsx)(a.Global,{styles:l}),(0,e.jsx)(Vo,{}),(0,e.jsx)(E.RawIntlProvider,{value:f,children:(0,e.jsx)(mo,{value:y,children:(0,e.jsx)(xo,{children:(0,e.jsx)(uo,{children:O&&b})})})})]})};const Uo={root:a.css`
|
|
1442
1442
|
font-size: ${$(4.5)};
|
|
1443
|
-
font-weight: ${
|
|
1443
|
+
font-weight: ${v("bold")};
|
|
1444
1444
|
color: ${x("primary",6)};
|
|
1445
1445
|
display: flex;
|
|
1446
1446
|
align-items: center;
|
|
1447
|
-
`},_o=r=>{var{as:o="h3",className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","className","children"]);const a=o;return(0,e.jsx)(a,Object.assign({css:Uo.root,className:t},i,{children:n}))};_o.displayName="SecondaryHeading";const Go={Control:H,Input:G,Placeholder:le,MenuPortal:re,Menu:J,MenuList:X,Option:ie,NoOptionsMessage:te,DropdownIndicator:V,ClearIndicator:B,IndicatorsContainer:U,IndicatorSeparator:null},Ko=({value:o,defaultValue:t,variant:n="outline",optionAlignment:i="left",isError:a=!1,isClearable:l=!1,isDisabled:s=!1,onSet:c,children:b,className:p})=>{var u,f;const{trans:m}=D("select"),y=(0,r.useMemo)((()=>{const e=Se(b),r=new Map(e.map((e=>{const r={value:e.props.value,label:e.props.label,node:e};return[e.props.value,r]})));return r}),[b]),g=(0,r.useMemo)((()=>[...y.values()]),[y]),h=void 0!==o?null!==(u=y.get(o))&&void 0!==u?u:null:void 0,
|
|
1447
|
+
`},_o=r=>{var{as:o="h3",className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","className","children"]);const a=o;return(0,e.jsx)(a,Object.assign({css:Uo.root,className:t},i,{children:n}))};_o.displayName="SecondaryHeading";const Go={Control:H,Input:G,Placeholder:le,MenuPortal:re,Menu:J,MenuList:X,Option:ie,NoOptionsMessage:te,DropdownIndicator:V,ClearIndicator:B,IndicatorsContainer:U,IndicatorSeparator:null},Ko=({value:o,defaultValue:t,variant:n="outline",optionAlignment:i="left",isError:a=!1,isClearable:l=!1,isDisabled:s=!1,onSet:c,children:b,className:p})=>{var u,f;const{trans:m}=D("select"),y=(0,r.useMemo)((()=>{const e=Se(b),r=new Map(e.map((e=>{const r={value:e.props.value,label:e.props.label,node:e};return[e.props.value,r]})));return r}),[b]),g=(0,r.useMemo)((()=>[...y.values()]),[y]),h=void 0!==o?null!==(u=y.get(o))&&void 0!==u?u:null:void 0,O=void 0!==t?null!==(f=y.get(t))&&void 0!==f?f:null:void 0,v=(0,r.useCallback)((e=>{null==c||c(null!==e?e.value:null)}),[c]),x=se(200),{isMenuOpen:j}=x,w=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(x,["isMenuOpen"]),$=(0,r.useMemo)((()=>({variant:n,optionAlignment:i,isMenuOpen:j,isError:a})),[n,i,j,a]);return(0,e.jsx)(L,{value:$,children:(0,e.jsx)(d(),Object.assign({className:p,classNamePrefix:"qlib-select",value:h,defaultValue:O,options:g,onChange:null!=c?v:void 0,isClearable:l,isDisabled:s,placeholder:m("select"),menuPortalTarget:"object"==typeof window?document.body:void 0,components:Go,isMulti:!1,unstyled:!0,"aria-invalid":a},w))})};Ko.displayName="Select";const Qo={root:a.css`
|
|
1448
1448
|
`},Wo=r=>{var{value:o,label:t,isDisabled:n=!1,children:i,className:a}=r,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["value","label","isDisabled","children","className"]);return(0,e.jsx)("div",Object.assign({css:Qo.root,className:a},l,{children:null!=i?i:t}))};Wo.displayName="SelectOption";const Jo={root:a.css`
|
|
1449
1449
|
margin-inline-end: ${$("gap")};
|
|
1450
1450
|
color: ${x("gray",5)};
|
|
@@ -1517,7 +1517,7 @@
|
|
|
1517
1517
|
border-color: var(--qlib-checked-border-color);
|
|
1518
1518
|
inset-inline-start: calc(var(--qlib-inline-size) - var(--qlib-block-size) + ${q(2)});
|
|
1519
1519
|
}
|
|
1520
|
-
`},lt=(0,r.forwardRef)(((o,t)=>{var n,i,{scheme:a="primary",isChecked:l,name:s,isError:c,isRequired:d,isDisabled:b,onSet:p,onChange:u,onBlur:f,className:m}=o,y=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","isChecked","name","isError","isRequired","isDisabled","onSet","onChange","onBlur","className"]);const g=(0,r.useContext)(Ve),h=null!==(n=null!=c?c:null==g?void 0:g.isError)&&void 0!==n&&n,
|
|
1520
|
+
`},lt=(0,r.forwardRef)(((o,t)=>{var n,i,{scheme:a="primary",isChecked:l,name:s,isError:c,isRequired:d,isDisabled:b,onSet:p,onChange:u,onBlur:f,className:m}=o,y=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","isChecked","name","isError","isRequired","isDisabled","onSet","onChange","onBlur","className"]);const g=(0,r.useContext)(Ve),h=null!==(n=null!=c?c:null==g?void 0:g.isError)&&void 0!==n&&n,O=null!==(i=null!=b?b:null==g?void 0:g.isDisabled)&&void 0!==i&&i;return(0,e.jsx)(it.Root,Object.assign({css:at.root(a),className:m,ref:t,name:s,checked:l,required:d,disabled:O,onCheckedChange:p,"data-qlib-disabled":O,"data-qlib-error":h},y,{children:(0,e.jsx)(it.Thumb,{css:at.thumb})}))}));lt.displayName="Checkbox";const st=e=>a.css`
|
|
1521
1521
|
padding-block: ${$(.5)};
|
|
1522
1522
|
padding-inline: ${$(1)};
|
|
1523
1523
|
font-size: ${$(3)};
|
|
@@ -1595,7 +1595,7 @@
|
|
|
1595
1595
|
&:disabled {
|
|
1596
1596
|
cursor: inherit;
|
|
1597
1597
|
}
|
|
1598
|
-
`},mt=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:l,rowCount:s=4,resize:c="vertical",inputMode:d,autoComplete:b="off",autoFocus:p,isWrapped:u=!0,isError:f=!1,isRequired:m,isDisabled:y,onSet:g,onChange:h,onBlur:
|
|
1598
|
+
`},mt=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:l,rowCount:s=4,resize:c="vertical",inputMode:d,autoComplete:b="off",autoFocus:p,isWrapped:u=!0,isError:f=!1,isRequired:m,isDisabled:y,onSet:g,onChange:h,onBlur:O,className:v,textareaClassName:x,textareaId:j}=o,w=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","rowCount","resize","inputMode","autoComplete","autoFocus","isWrapped","isError","isRequired","isDisabled","onSet","onChange","onBlur","className","textareaClassName","textareaId"]);const q=(0,r.useContext)(Ve),k=null!==(n=null!=f?f:null==q?void 0:q.isError)&&void 0!==n&&n,N=null!==(i=null!=y?y:null==q?void 0:q.isDisabled)&&void 0!==i&&i,P=(0,r.useCallback)((e=>{const r=e.target.value;null==g||g(r),null==h||h(e)}),[g,h]);return(0,e.jsx)("label",{className:v,css:ft.root,"data-qlib-size":$,"data-qlib-disabled":N,"data-qlib-error":k,children:(0,e.jsx)("div",{css:ft.inputContainer,children:(0,e.jsx)("textarea",Object.assign({css:ft.input,className:x,id:j,ref:t,value:a,name:l,rows:s,inputMode:d,autoComplete:b,autoFocus:p,required:m,disabled:N,onChange:null!=g||null!=h?P:void 0,onBlur:O,"aria-invalid":k,"data-qlib-wrapped":u,"data-qlib-resize":c},w))})})}));mt.displayName="Textarea";const yt={root:a.css`
|
|
1599
1599
|
width: 1px;
|
|
1600
1600
|
height: 1px;
|
|
1601
1601
|
position: absolute;
|
|
@@ -1610,11 +1610,11 @@
|
|
|
1610
1610
|
column-gap: ${$(3)};
|
|
1611
1611
|
display: flex;
|
|
1612
1612
|
align-items: center;
|
|
1613
|
-
`},
|
|
1613
|
+
`},Ot=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:ht.root,className:n,ref:o},i,{children:t}))}));Ot.displayName="BulkOperationContainer";const vt={root:a.css`
|
|
1614
1614
|
`,badge:a.css`
|
|
1615
1615
|
margin-block: ${$(-1)};
|
|
1616
1616
|
margin-inline-start: ${$("gap")};
|
|
1617
|
-
`},xt=(0,r.forwardRef)(((r,o)=>{var{count:t,children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["count","children","className"]);const{trans:l,transNumber:s}=D("bulkOperationButton");return(0,e.jsxs)(Ge,Object.assign({css:
|
|
1617
|
+
`},xt=(0,r.forwardRef)(((r,o)=>{var{count:t,children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["count","children","className"]);const{trans:l,transNumber:s}=D("bulkOperationButton");return(0,e.jsxs)(Ge,Object.assign({css:vt.root,className:i,scheme:"gray",variant:"light",isCompact:!0,ref:o},a,{children:[(0,e.jsx)(Qe,{children:(0,e.jsx)($r,{name:"bulk"})}),l("text"),(0,e.jsx)("span",{css:vt.badge,children:(0,e.jsx)(qe,{scheme:"gray",size:"small",children:s(t)})})]}))}));xt.displayName="BulkOperationButton";const jt=(0,r.createContext)({isLabel:!1,setHovered:()=>null,setFocusVisible:()=>null}),wt=jt.Provider;const $t={root:a.css`
|
|
1618
1618
|
min-inline-size: ${$(64)};
|
|
1619
1619
|
min-block-size: ${$(14)};
|
|
1620
1620
|
border-radius: ${$(1)};
|
|
@@ -1783,7 +1783,7 @@
|
|
|
1783
1783
|
order: 0;
|
|
1784
1784
|
`},At=(0,r.forwardRef)(((r,o)=>{var{className:t}=r,n=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className"]);return(0,e.jsx)("div",Object.assign({className:t,css:Bt.root,ref:o},n,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faGripVertical})}))}));At.displayName="CardGrip";const Ht={root:a.css`
|
|
1785
1785
|
font-size: ${$(4)};
|
|
1786
|
-
font-weight: ${
|
|
1786
|
+
font-weight: ${v("bold")};
|
|
1787
1787
|
`},Tt=(0,r.forwardRef)(((r,o)=>{var{as:t="h3",maxLineCount:n=null,className:i,children:a}=r,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","maxLineCount","className","children"]);return(0,e.jsx)(ar,Object.assign({className:i,css:Ht.root,as:t,maxLineCount:n,ref:o},l,{children:a}))}));Tt.displayName="CardTitle";const Vt={root:a.css`
|
|
1788
1788
|
row-gap: ${$(3)};
|
|
1789
1789
|
display: flex;
|
|
@@ -1835,7 +1835,7 @@
|
|
|
1835
1835
|
grid-column: 1 / -1;
|
|
1836
1836
|
`,icon:a.css`
|
|
1837
1837
|
font-size: ${$(8)};
|
|
1838
|
-
`},nn=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);const{trans:a}=D("cardListLoading");return(0,e.jsxs)("div",Object.assign({css:tn.root,className:t,ref:o},i,{children:[(0,e.jsx)(l.FontAwesomeIcon,{css:tn.icon,icon:s.faCircleNotch,spin:!0}),(0,e.jsx)(ar,{as:"p",lineHeight:"normal",children:n||a("loading")})]}))}));nn.displayName="CardListLoading";const an=(0,r.forwardRef)(((o,t)=>{var{items:n,pageProps:i,className:a,children:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["items","pageProps","className","children"]);const[c,d]=((e,{page:o,pageCount:t,pageSize:n,optionPageSizes:i,setPage:a,setPageSize:l})=>{const s=(0,r.useMemo)((()=>null!=e?e:[]),[e]),c=null!=n&&null!=o&&null!=t&&null!=l&&null!=a,[d,b]=(0,r.useState)(i[0]),[p,u]=(0,r.useState)(0),f=Math.floor((s.length-1)/d)+1,m=(0,r.useMemo)((()=>s.slice(d*p,d*p+d)),[s,d,p]),y=c?s:m,g=c?n:d,h=c?o:p,
|
|
1838
|
+
`},nn=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["className","children"]);const{trans:a}=D("cardListLoading");return(0,e.jsxs)("div",Object.assign({css:tn.root,className:t,ref:o},i,{children:[(0,e.jsx)(l.FontAwesomeIcon,{css:tn.icon,icon:s.faCircleNotch,spin:!0}),(0,e.jsx)(ar,{as:"p",lineHeight:"normal",children:n||a("loading")})]}))}));nn.displayName="CardListLoading";const an=(0,r.forwardRef)(((o,t)=>{var{items:n,pageProps:i,className:a,children:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["items","pageProps","className","children"]);const[c,d]=((e,{page:o,pageCount:t,pageSize:n,optionPageSizes:i,setPage:a,setPageSize:l})=>{const s=(0,r.useMemo)((()=>null!=e?e:[]),[e]),c=null!=n&&null!=o&&null!=t&&null!=l&&null!=a,[d,b]=(0,r.useState)(i[0]),[p,u]=(0,r.useState)(0),f=Math.floor((s.length-1)/d)+1,m=(0,r.useMemo)((()=>s.slice(d*p,d*p+d)),[s,d,p]),y=c?s:m,g=c?n:d,h=c?o:p,O=c?t:f,v=c?l:b,x=c?a:u,j=null==e,w=s.length<=0;return[y,(0,r.useMemo)((()=>({isLoading:j,isEmpty:w,pageSize:g,page:h,pageCount:O,optionPageSizes:i,setPageSize:v,setPage:x})),[j,w,g,h,O,i,x,v])]})(n,i),b=(0,r.useMemo)((()=>({displayedItems:c,resolvedPageProps:d})),[c,d]);return(0,e.jsx)(Yt,Object.assign({className:a,ref:t},s,{children:(0,e.jsx)(rt,{value:b,children:l})}))}));an.displayName="CardListAuto";const ln=({columnCount:o=1,className:t,children:n})=>{const{displayedItems:i,resolvedPageProps:{isLoading:a,isEmpty:l}}=(0,r.useContext)(et),[s,...c]=Array.isArray(n)?n:[n],d=c.find((e=>e.type===Kt)),b=c.find((e=>e.type===nn));return(0,e.jsx)(_t,{className:t,columnCount:o,children:a?b:l?d:i.map(((e,r)=>s(e,r)))})};ln.displayName="CardListBodyAuto";const sn=(0,r.forwardRef)((({className:o,children:t},n)=>{const{resolvedPageProps:{isLoading:i,isEmpty:a}}=(0,r.useContext)(et);return i||a?null:(0,e.jsx)(Wt,{className:o,ref:n,children:t})}));sn.displayName="CardListFooterAuto";const cn={root:a.css`
|
|
1839
1839
|
inline-size: 100%;
|
|
1840
1840
|
padding-block: ${$(8)};
|
|
1841
1841
|
border-block-end: solid ${q(1)} ${x("gray",1)};
|
|
@@ -1848,7 +1848,7 @@
|
|
|
1848
1848
|
z-index: 0;
|
|
1849
1849
|
`},dn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:cn.root,className:n,ref:o},i,{children:t}))}));dn.displayName="ContentHeader";const bn={root:a.css`
|
|
1850
1850
|
font-size: ${$(8)};
|
|
1851
|
-
font-weight: ${
|
|
1851
|
+
font-weight: ${v("bold")};
|
|
1852
1852
|
color: ${x("primary",7)};
|
|
1853
1853
|
`},pn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(ar,Object.assign({css:bn.root,className:n,lineHeight:"normalFixed",ref:o},i,{children:t}))}));pn.displayName="ContentTitle";const un={root:a.css`
|
|
1854
1854
|
&[data-qlib-digit="3"] {
|
|
@@ -1907,7 +1907,7 @@
|
|
|
1907
1907
|
--qlib-max-width: ${$(160)};
|
|
1908
1908
|
}
|
|
1909
1909
|
&[data-qlib-smartphone="false"] {
|
|
1910
|
-
--qlib-dialog-padding-inline: ${$(
|
|
1910
|
+
--qlib-dialog-padding-inline: ${$(6)};
|
|
1911
1911
|
}
|
|
1912
1912
|
&[data-qlib-smartphone="true"] {
|
|
1913
1913
|
--qlib-dialog-padding-inline: ${$(6)};
|
|
@@ -1929,8 +1929,8 @@
|
|
|
1929
1929
|
&.ReactModal__Content--before-close {
|
|
1930
1930
|
transform: translate(${$(0)}, ${$(2)});
|
|
1931
1931
|
}
|
|
1932
|
-
`},hn=({label:o,scheme:t="primary",size:n="normal",isOpen:i,isForm:a=!0,onClose:l,children:s})=>{const c=a?"form":"div",d=No(),b=(0,r.useMemo)((()=>({scheme:t,onClose:l})),[t,l]),p=(0,r.useCallback)((e=>{e.preventDefault()}),[]);return(0,e.jsx)(_r,{css:d?gn.overlaySmartphone:gn.overlay,isOpen:i,label:o,onClose:l,children:(0,e.jsx)(c,{css:gn.root,onSubmit:a?p:void 0,"data-qlib-size":n,"data-qlib-smartphone":d,children:(0,e.jsx)(yn,{value:b,children:s})})})};hn.displayName="Dialog";const
|
|
1933
|
-
`},
|
|
1932
|
+
`},hn=({label:o,scheme:t="primary",size:n="normal",isOpen:i,isForm:a=!0,onClose:l,children:s})=>{const c=a?"form":"div",d=No(),b=(0,r.useMemo)((()=>({scheme:t,onClose:l})),[t,l]),p=(0,r.useCallback)((e=>{e.preventDefault()}),[]);return(0,e.jsx)(_r,{css:d?gn.overlaySmartphone:gn.overlay,isOpen:i,label:o,onClose:l,children:(0,e.jsx)(c,{css:gn.root,onSubmit:a?p:void 0,"data-qlib-size":n,"data-qlib-smartphone":d,children:(0,e.jsx)(yn,{value:b,children:s})})})};hn.displayName="Dialog";const On={root:a.css`
|
|
1933
|
+
`},vn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("section",Object.assign({css:On.root,className:n,ref:o},i,{children:t}))}));vn.displayName="DialogBody";const xn=Ge;const jn={root:a.css`
|
|
1934
1934
|
inset-block-start: ${$(4)};
|
|
1935
1935
|
inset-inline-end: ${$(4)};
|
|
1936
1936
|
block-size: ${$(6)};
|
|
@@ -1970,7 +1970,7 @@
|
|
|
1970
1970
|
justify-content: center;
|
|
1971
1971
|
`},Nn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:kn.root,className:n,ref:o},i,{children:t}))}));Nn.displayName="DialogHeader";const Pn=e=>a.css`
|
|
1972
1972
|
font-size: ${$(6)};
|
|
1973
|
-
font-weight: ${
|
|
1973
|
+
font-weight: ${v("bold")};
|
|
1974
1974
|
letter-spacing: 0.1em;
|
|
1975
1975
|
text-indent: 0.1em;
|
|
1976
1976
|
color: ${x(e,7)};
|
|
@@ -1990,7 +1990,7 @@
|
|
|
1990
1990
|
flex-direction: column;
|
|
1991
1991
|
overflow: hidden;
|
|
1992
1992
|
`,rootDesktop:a.css`
|
|
1993
|
-
--qlib-padding-inline: ${$(
|
|
1993
|
+
--qlib-padding-inline: ${$(8)};
|
|
1994
1994
|
width: 90%;
|
|
1995
1995
|
height: 100%;
|
|
1996
1996
|
max-width: ${$(260)}; // 240 + 10 * 2 (両側のパディング分を加える)
|
|
@@ -2028,6 +2028,38 @@
|
|
|
2028
2028
|
letter-spacing: 0.05em;
|
|
2029
2029
|
color: ${x(e,7)};
|
|
2030
2030
|
`,Fn=(0,r.forwardRef)(((o,t)=>{var{children:n,className:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["children","className"]);const l=No(),{scheme:s}=(0,r.useContext)(Cn);return!l&&(0,e.jsx)("div",Object.assign({css:Ln(s),className:i,ref:t},a,{children:n}))}));Fn.displayName="DrawerCaption";const Bn={root:a.css`
|
|
2031
|
+
inset-block-start: ${$(4)};
|
|
2032
|
+
inset-inline-end: var(--qlib-padding-inline);
|
|
2033
|
+
block-size: ${$(8)};
|
|
2034
|
+
inline-size: ${$(6)};
|
|
2035
|
+
font-size: ${$(6)};
|
|
2036
|
+
color: ${x("gray",5)};
|
|
2037
|
+
border-radius: ${$(1)};
|
|
2038
|
+
transition: color 0.2s ease;
|
|
2039
|
+
display: flex;
|
|
2040
|
+
align-items: center;
|
|
2041
|
+
justify-content: center;
|
|
2042
|
+
position: absolute;
|
|
2043
|
+
cursor: pointer;
|
|
2044
|
+
&:hover {
|
|
2045
|
+
color: ${x("gray",4)};
|
|
2046
|
+
}
|
|
2047
|
+
&:focus-visible {
|
|
2048
|
+
outline: solid ${q(2)} ${j(x("primary",5),.6)};
|
|
2049
|
+
}
|
|
2050
|
+
`},An=(0,r.forwardRef)(((o,t)=>{var{className:n}=o,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className"]);const{trans:a}=D("drawerCloseButton"),{onClose:c}=(0,r.useContext)(Cn);return(0,e.jsx)("button",Object.assign({css:Bn.root,className:n,type:"button",onClick:c,ref:t,"aria-label":a("close")},i,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes})}))}));An.displayName="DrawerCloseButton";const Hn={root:a.css`
|
|
2051
|
+
padding-block: ${$(4)};
|
|
2052
|
+
padding-inline: var(--qlib-padding-inline);
|
|
2053
|
+
column-gap: ${$(6)};
|
|
2054
|
+
background-color: ${x("white")};
|
|
2055
|
+
border-block-start: solid ${q(1)} ${x("gray",1)};
|
|
2056
|
+
display: flex;
|
|
2057
|
+
flex-direction: row;
|
|
2058
|
+
align-items: center;
|
|
2059
|
+
justify-content: center;
|
|
2060
|
+
flex-grow: 0;
|
|
2061
|
+
flex-shrink: 0;
|
|
2062
|
+
`},Tn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Hn.root,className:n,ref:o},i,{children:t}))}));Tn.displayName="DrawerFooter";const Vn={root:a.css`
|
|
2031
2063
|
padding-block: ${$(4)};
|
|
2032
2064
|
padding-inline: var(--qlib-padding-inline);
|
|
2033
2065
|
column-gap: ${$(8)};
|
|
@@ -2037,24 +2069,24 @@
|
|
|
2037
2069
|
align-items: center;
|
|
2038
2070
|
flex-grow: 0;
|
|
2039
2071
|
flex-shrink: 0;
|
|
2040
|
-
`},
|
|
2072
|
+
`},Yn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Vn.root,className:n,ref:o},i,{children:t}))}));Yn.displayName="DrawerHeader";const Un={root:a.css`
|
|
2041
2073
|
row-gap: ${$(2)};
|
|
2042
2074
|
display: flex;
|
|
2043
2075
|
flex-direction: column;
|
|
2044
2076
|
flex-grow: 1;
|
|
2045
2077
|
flex-shrink: 1;
|
|
2046
|
-
`},
|
|
2078
|
+
`},_n=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Un.root,className:n,ref:o},i,{children:t}))}));_n.displayName="DrawerHeaderLeft";const Gn={root:a.css`
|
|
2047
2079
|
flex-grow: 0;
|
|
2048
2080
|
flex-shrink: 0;
|
|
2049
|
-
`},
|
|
2081
|
+
`},Kn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Gn.root,className:n,ref:o},i,{children:t}))}));Kn.displayName="DrawerHeaderRight";const Qn=e=>a.css`
|
|
2050
2082
|
font-size: ${$(8)};
|
|
2051
|
-
font-weight: ${
|
|
2083
|
+
font-weight: ${v("bold")};
|
|
2052
2084
|
letter-spacing: 0.1em;
|
|
2053
2085
|
color: ${x(e,7)};
|
|
2054
2086
|
&[data-qlib-smartphone="true"] {
|
|
2055
2087
|
font-size: ${$(8)};
|
|
2056
2088
|
}
|
|
2057
|
-
`,
|
|
2089
|
+
`,Wn=(0,r.forwardRef)(((o,t)=>{var{as:n="h3",children:i,className:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["as","children","className"]);const s=n,c=No(),{scheme:d}=(0,r.useContext)(Cn);return(0,e.jsx)(s,Object.assign({css:Qn(d),className:a,ref:t,"data-qlib-smartphone":c},l,{children:i}))}));Wn.displayName="DrawerTitle";const Jn=(0,r.createContext)(void 0),Zn=Jn.Provider;const Xn={root:a.css`
|
|
2058
2090
|
&[data-qlib-size="small"] {
|
|
2059
2091
|
--qlib-font-size: ${$(3)};
|
|
2060
2092
|
}
|
|
@@ -2066,12 +2098,12 @@
|
|
|
2066
2098
|
`,icon:a.css`
|
|
2067
2099
|
margin-inline-end: ${$("gap")};
|
|
2068
2100
|
display: inline;
|
|
2069
|
-
`},
|
|
2101
|
+
`},ei=(0,r.forwardRef)(((o,t)=>{var n,{size:i="small",className:a,children:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["size","className","children"]);const c=(0,r.useContext)(Jn);return(0,e.jsx)(Re,Object.assign({css:Xn.root,className:a,ref:t,"data-qlib-size":null!==(n=null==c?void 0:c.size)&&void 0!==n?n:i},s,{children:l}))}));ei.displayName="Footnote";const ri={root:a.css`
|
|
2070
2102
|
margin-inline-end: ${$("gap")};
|
|
2071
2103
|
display: inline;
|
|
2072
2104
|
flex-grow: 0;
|
|
2073
2105
|
flex-shrink: 0;
|
|
2074
|
-
`},
|
|
2106
|
+
`},oi=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:ri.root,className:n,ref:o},i,{children:t}))}));oi.displayName="FootnoteIconContainer";const ti={root:a.css`
|
|
2075
2107
|
&[data-qlib-size="small"] {
|
|
2076
2108
|
--qlib-row-gap: ${$(1.5)};
|
|
2077
2109
|
}
|
|
@@ -2081,7 +2113,7 @@
|
|
|
2081
2113
|
row-gap: var(--qlib-row-gap);
|
|
2082
2114
|
display: flex;
|
|
2083
2115
|
flex-direction: column;
|
|
2084
|
-
`},
|
|
2116
|
+
`},ni=(0,r.forwardRef)(((o,t)=>{var{size:n="small",className:i,children:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["size","className","children"]);return(0,e.jsx)("div",Object.assign({css:ti.root,className:i,ref:t,"data-qlib-size":n},l,{children:(0,e.jsx)(Zn,{value:(0,r.useMemo)((()=>({size:n})),[n]),children:a})}))}));ni.displayName="FootnoteList";const ii={root:a.css`
|
|
2085
2117
|
&[data-qlib-size="small"] {
|
|
2086
2118
|
--qlib-column-gap: ${$(3)};
|
|
2087
2119
|
}
|
|
@@ -2090,13 +2122,13 @@
|
|
|
2090
2122
|
}
|
|
2091
2123
|
column-gap: var(--qlib-column-gap);
|
|
2092
2124
|
display: flex;
|
|
2093
|
-
`},
|
|
2125
|
+
`},ai=(0,r.forwardRef)(((o,t)=>{var n,{className:i,children:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className","children"]);const s=(0,r.useContext)(Jn);return(0,e.jsx)("div",Object.assign({css:ii.root,className:i,ref:t,"data-qlib-size":null!==(n=null==s?void 0:s.size)&&void 0!==n?n:"small"},l,{children:a}))}));ai.displayName="FootnoteListRow";const li=(0,r.createContext)({orientation:"horizontal"}),si=li.Provider;const ci={rootHorizontal:a.css`
|
|
2094
2126
|
display: inline-flex;
|
|
2095
2127
|
align-items: baseline;
|
|
2096
2128
|
`,rootVertical:a.css`
|
|
2097
2129
|
display: inline-flex;
|
|
2098
2130
|
flex-direction: column;
|
|
2099
|
-
`},
|
|
2131
|
+
`},di=(0,r.forwardRef)(((o,t)=>{var{orientation:n,className:i,children:a}=o,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["orientation","className","children"]);const s=(0,r.useMemo)((()=>({orientation:n})),[n]);return(0,e.jsx)("span",Object.assign({css:"horizontal"===n?ci.rootHorizontal:ci.rootVertical,className:i,ref:t},l,{children:(0,e.jsx)(si,{value:s,children:a})}))}));const bi={rootHorizontal:a.css`
|
|
2100
2132
|
font-size: 80%;
|
|
2101
2133
|
::before {
|
|
2102
2134
|
margin-inline: 0.25em;
|
|
@@ -2106,7 +2138,7 @@
|
|
|
2106
2138
|
padding-inline: 0.2em;
|
|
2107
2139
|
font-size: 80%;
|
|
2108
2140
|
text-align: center;
|
|
2109
|
-
`},
|
|
2141
|
+
`},pi=(0,r.forwardRef)(((o,t)=>{var{className:n,children:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className","children"]);const{transNumber:l}=D("fractionView"),{orientation:s}=(0,r.useContext)(li);return(0,e.jsx)("span",Object.assign({css:"horizontal"===s?bi.rootHorizontal:bi.rootVertical,className:n,ref:t},a,{children:"number"==typeof i?l(i):i}))}));pi.displayName="FractionViewDenominator";const ui={rootHorizontal:a.css`
|
|
2110
2142
|
`,rootVertical:a.css`
|
|
2111
2143
|
padding-inline: 0.2em;
|
|
2112
2144
|
padding-block-end: 0.1em;
|
|
@@ -2114,7 +2146,7 @@
|
|
|
2114
2146
|
box-sizing: border-box;
|
|
2115
2147
|
text-align: center;
|
|
2116
2148
|
border-bottom: solid ${q(1)} currentcolor;
|
|
2117
|
-
`},
|
|
2149
|
+
`},fi=(0,r.forwardRef)(((o,t)=>{var{className:n,children:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className","children"]);const{transNumber:l}=D("fractionView"),{orientation:s}=(0,r.useContext)(li);return(0,e.jsx)("span",Object.assign({css:"horizontal"===s?ui.rootHorizontal:ui.rootVertical,className:n,ref:t},a,{children:"number"==typeof i?l(i):i}))}));fi.displayName="FractionViewNumerator";const mi={root:a.css`
|
|
2118
2150
|
inline-size: 100%;
|
|
2119
2151
|
block-size: ${$(16)};
|
|
2120
2152
|
padding-inline: ${$(10)};
|
|
@@ -2129,14 +2161,14 @@
|
|
|
2129
2161
|
&[data-smartphone="true"] {
|
|
2130
2162
|
padding-inline: ${$(6)};
|
|
2131
2163
|
}
|
|
2132
|
-
`},
|
|
2164
|
+
`},yi=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);const a=No();return(0,e.jsx)("header",Object.assign({css:mi.root,className:n,ref:o,"data-smartphone":a},i,{children:t}))}));yi.displayName="Sidebar";const gi={root:a.css`
|
|
2133
2165
|
align-self: center;
|
|
2134
2166
|
flex-grow: 0;
|
|
2135
2167
|
flex-shrink: 0;
|
|
2136
|
-
`},
|
|
2168
|
+
`},hi=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("h1",Object.assign({css:gi.root,className:n,ref:o},i,{children:t}))}));hi.displayName="HeaderLeft";const Oi={root:a.css`
|
|
2137
2169
|
column-gap: ${$(4)};
|
|
2138
2170
|
display: flex;
|
|
2139
|
-
`},
|
|
2171
|
+
`},vi=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Oi.root,className:n,ref:o},i,{children:t}))}));vi.displayName="HeaderMenu";const xi=e=>a.css`
|
|
2140
2172
|
--qlib-highlight-color: transparent;
|
|
2141
2173
|
color: ${x("gray",5)};
|
|
2142
2174
|
cursor: pointer;
|
|
@@ -2150,7 +2182,7 @@
|
|
|
2150
2182
|
&[data-active="true"] {
|
|
2151
2183
|
--qlib-highlight-color: ${x(e,5)};
|
|
2152
2184
|
color: ${x("primary",5)};
|
|
2153
|
-
font-weight: ${
|
|
2185
|
+
font-weight: ${v("bold")};
|
|
2154
2186
|
}
|
|
2155
2187
|
&::before {
|
|
2156
2188
|
inset-inline: ${$(0)};
|
|
@@ -2161,13 +2193,13 @@
|
|
|
2161
2193
|
position: absolute;
|
|
2162
2194
|
content: "";
|
|
2163
2195
|
}
|
|
2164
|
-
`,
|
|
2196
|
+
`,ji=(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",href:n,isActive:i=!1,children:a,className:l}=r,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","href","isActive","children","className"]);return(0,e.jsx)("a",Object.assign({css:xi(t),href:n,ref:o,"data-active":i},s,{children:a}))}));ji.displayName="HeaderMenuItem";const wi={root:a.css`
|
|
2165
2197
|
margin-inline-end: ${$("gap")};
|
|
2166
2198
|
color: var(--qlib-icon-color);
|
|
2167
2199
|
display: inline;
|
|
2168
2200
|
flex-grow: 0;
|
|
2169
2201
|
flex-shrink: 0;
|
|
2170
|
-
`}
|
|
2202
|
+
`},$i=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:wi.root,className:n,ref:o},i,{children:t}))}));$i.displayName="HeaderMenuItemIconContainer";const qi=(0,r.createContext)({setOpen:()=>null,listRef:{current:[]},activeIndex:null,getItemProps:()=>({})}),ki=qi.Provider;var Ni=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o};const Pi=e=>a.css`
|
|
2171
2203
|
--qlib-icon-color: ${x(null!=e?e:"gray",5)};
|
|
2172
2204
|
padding-block: ${$(2)};
|
|
2173
2205
|
padding-inline: ${$(2)};
|
|
@@ -2184,10 +2216,10 @@
|
|
|
2184
2216
|
opacity: 0.5;
|
|
2185
2217
|
cursor: inherit;
|
|
2186
2218
|
}
|
|
2187
|
-
`,
|
|
2219
|
+
`,Si=(a.css`
|
|
2188
2220
|
margin-inline-end: ${$("gap")};
|
|
2189
2221
|
color: var(--qlib-icon-color);
|
|
2190
|
-
`,(0,r.forwardRef)(((o,t)=>{var{scheme:n=null,isDisabled:i=!1,onClick:a,children:l,className:s}=o;const c=
|
|
2222
|
+
`,(0,r.forwardRef)(((o,t)=>{var{scheme:n=null,isDisabled:i=!1,onClick:a,children:l,className:s}=o;const c=Ni(o,["scheme","isDisabled","onClick","children","className"]),{index:d}=c,b=Ni(c,["index"]),{setOpen:p,listRef:u,activeIndex:f,getItemProps:m}=(0,r.useContext)(qi),y=(0,er.useMergeRefs)([t,e=>u.current[d]=e]),g=(0,r.useCallback)((e=>{p(!1),null==a||a(e)}),[p,a]);return(0,e.jsx)("button",Object.assign({css:Pi(n),className:s,ref:y},m({tabIndex:f===d?0:-1,onClick:g,disabled:i}),b,{children:l}))})));Si.displayName="MenuItem";const Ci={root:a.css`
|
|
2191
2223
|
inline-size: ${$(48)};
|
|
2192
2224
|
max-block-size: ${$(60)};
|
|
2193
2225
|
border-radius: ${$(1)};
|
|
@@ -2206,17 +2238,17 @@
|
|
|
2206
2238
|
`,inner:a.css`
|
|
2207
2239
|
display: flex;
|
|
2208
2240
|
flex-direction: column;
|
|
2209
|
-
`},
|
|
2241
|
+
`},zi=(0,r.forwardRef)(((r,o)=>{var{isOpen:t,isMounted:n,status:i,context:a,style:l,className:s,children:c}=r,d=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["isOpen","isMounted","status","context","style","className","children"]);return n&&(0,e.jsx)(er.FloatingPortal,{children:(0,e.jsx)(er.FloatingFocusManager,{context:a,children:(0,e.jsx)("div",Object.assign({css:Ci.root,className:s,style:l,ref:o,"data-qlib-status":i},d,{children:(0,e.jsx)("div",{css:Ci.inner,children:c})}))})})})),Ii=({trigger:o,placement:t="bottom-start",fitWidth:n=!1,className:i,children:a})=>{const[l,s]=(0,r.useState)(!1),c=(0,r.useRef)([]),[d,b]=(0,r.useState)(null),{refs:p,floatingStyles:u,context:f}=(0,er.useFloating)({open:l,onOpenChange:s,placement:t,middleware:[(0,er.offset)(2),...n?[Ei()]:[]]}),{isMounted:m,status:y}=(0,er.useTransitionStatus)(f,{duration:200}),g=(0,er.useClick)(f),h=(0,er.useDismiss)(f),O=(0,er.useListNavigation)(f,{listRef:c,activeIndex:d,onNavigate:b}),v=(0,er.useRole)(f,{role:"menu"}),{getReferenceProps:x,getFloatingProps:j,getItemProps:w}=(0,er.useInteractions)([g,h,O,v]),$=(0,r.useMemo)((()=>({setOpen:s,listRef:c,activeIndex:d,getItemProps:w})),[s,c,d,w]);return(0,e.jsxs)(e.Fragment,{children:[null!=o&&(0,r.cloneElement)(o,Object.assign({ref:p.setReference},x())),(0,e.jsx)(zi,Object.assign({className:i,isOpen:l,isMounted:m,status:y,context:f,style:u,ref:p.setFloating},j(),{children:(0,e.jsx)(ki,{value:$,children:Di(a)})}))]})},Ei=()=>(0,er.size)({apply({rects:e,elements:r}){Object.assign(r.floating.style,{width:`${e.reference.width}px`})}}),Di=e=>{let o=-1;return r.Children.map(e,(e=>(0,Pe.isElement)(e)?e.type===Si?(o++,(0,r.cloneElement)(e,{index:o})):e:void 0))};const Mi={root:a.css`
|
|
2210
2242
|
margin-inline-end: ${$("gap")};
|
|
2211
2243
|
color: var(--qlib-icon-color);
|
|
2212
2244
|
display: inline;
|
|
2213
2245
|
flex-grow: 0;
|
|
2214
2246
|
flex-shrink: 0;
|
|
2215
|
-
`},
|
|
2247
|
+
`},Ri=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Mi.root,className:n,ref:o},i,{children:t}))}));Ri.displayName="MenuItemIconContainer";const Li={root:a.css`
|
|
2216
2248
|
inline-size: 100%;
|
|
2217
2249
|
margin-block: ${$(1)};
|
|
2218
2250
|
border-block-start: solid ${q(1)} ${x("gray",1)};
|
|
2219
|
-
`},
|
|
2251
|
+
`},Fi=(0,r.forwardRef)(((r,o)=>{var{scheme:t=null,onClick:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","onClick","className"]);return(0,e.jsx)("div",Object.assign({css:Li.root,className:i,ref:o,role:"separator"},a))}));Fi.displayName="MenuDivider";const Bi={root:a.css`
|
|
2220
2252
|
column-gap: ${$(4)};
|
|
2221
2253
|
display: flex;
|
|
2222
2254
|
align-items: center;
|
|
@@ -2238,7 +2270,19 @@
|
|
|
2238
2270
|
flex-shrink: 1;
|
|
2239
2271
|
`,small:a.css`
|
|
2240
2272
|
font-size: 80%;
|
|
2241
|
-
`},
|
|
2273
|
+
`},Ai=(0,r.forwardRef)(((o,t)=>{var{page:n,pageCount:i,setPage:a,className:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["page","pageCount","setPage","className"]);const{trans:c,transNumber:d}=D("pagination"),b=i>=2&&n>0,p=n<i-1,u=(0,r.useCallback)((()=>{null==a||a(0)}),[a]),f=(0,r.useCallback)((()=>{null==a||a(i-1)}),[a,i]),m=(0,r.useCallback)((()=>{null==a||a((e=>Math.max(e-1,0)))}),[a]),y=(0,r.useCallback)((()=>{null==a||a((e=>Math.min(e+1,i-1)))}),[a,i]);return(0,e.jsxs)("nav",Object.assign({css:Bi.root,className:l,ref:t,"aria-label":c("label")},s,{children:[(0,e.jsxs)("div",{css:Bi.button,children:[(0,e.jsx)(kr,{scheme:"gray",variant:"light",label:c("first"),isDisabled:!b,onClick:u,children:(0,e.jsx)($r,{name:"first"})}),(0,e.jsx)(kr,{scheme:"gray",variant:"light",label:c("previous"),isDisabled:!b,onClick:m,children:(0,e.jsx)($r,{name:"previous"})})]}),(0,e.jsx)("div",{css:Bi.center,children:(0,e.jsxs)(di,{orientation:"horizontal",children:[(0,e.jsx)(fi,{children:d(n+1)}),(0,e.jsx)(pi,{children:d(i)})]})}),(0,e.jsxs)("div",{css:Bi.button,children:[(0,e.jsx)(kr,{scheme:"gray",variant:"light",label:c("next"),isDisabled:!p,onClick:y,children:(0,e.jsx)($r,{name:"next"})}),(0,e.jsx)(kr,{scheme:"gray",variant:"light",label:c("last"),isDisabled:!p,onClick:f,children:(0,e.jsx)($r,{name:"last"})})]})]}))}));Ai.displayName="Pagination";const Hi=(0,r.forwardRef)(((o,t)=>{var{className:n}=o,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className"]);const{resolvedPageProps:{isLoading:a,isEmpty:l,page:s,pageCount:c,setPage:d}}=(0,r.useContext)(et);return a||l?null:(0,e.jsx)(Ai,Object.assign({className:n,page:s,pageCount:c,setPage:d,ref:t},i))}));Hi.displayName="PaginationAuto";const Ti={pane:a.css`
|
|
2274
|
+
padding: ${$(2)};
|
|
2275
|
+
border-radius: ${$(1)};
|
|
2276
|
+
background-color: ${x("white")};
|
|
2277
|
+
border: solid ${q(1)} ${x("gray",1)};
|
|
2278
|
+
box-shadow: ${k(j(x("gray",5),.2),1)};
|
|
2279
|
+
transition: opacity 0.2s ease;
|
|
2280
|
+
opacity: 0;
|
|
2281
|
+
z-index: 2000;
|
|
2282
|
+
&[data-qlib-status="open"] {
|
|
2283
|
+
opacity: 1;
|
|
2284
|
+
}
|
|
2285
|
+
`},Vi=({trigger:o,triggerType:t="click",triggerRest:n=null,isInline:i=!1,placement:a="bottom-start",className:l,children:s})=>{const[c,d]=(0,r.useState)(!1),{refs:b,floatingStyles:p,context:u}=(0,er.useFloating)({open:c,onOpenChange:d,placement:a,whileElementsMounted:er.autoUpdate,middleware:[(0,er.offset)(2),(0,er.flip)(),i&&(0,er.inline)()]}),{isMounted:f,status:m}=(0,er.useTransitionStatus)(u,{duration:200}),y=(0,er.useClick)(u,{enabled:"click"===t}),g=(0,er.useFocus)(u,{enabled:"focus"===t}),h=(0,er.useHover)(u,{enabled:"hover"===t,restMs:null!=n?n:0,handleClose:(0,er.safePolygon)()}),O=(0,er.useDismiss)(u),v=(0,er.useRole)(u,{role:"tooltip"}),{getReferenceProps:x,getFloatingProps:j}=(0,er.useInteractions)([y,g,h,O,v]);return(0,e.jsxs)(e.Fragment,{children:[null!=o&&(0,r.cloneElement)(o,Object.assign({ref:b.setReference},x())),f&&(0,e.jsx)(er.FloatingPortal,{children:(0,e.jsx)("div",Object.assign({css:Ti.pane,className:l,style:p,ref:b.setFloating,"data-qlib-status":m},j(),{children:s}))})]})};const Yi={root:a.css`
|
|
2242
2286
|
inline-size: ${1.6}em;
|
|
2243
2287
|
block-size: ${1.6}em;
|
|
2244
2288
|
vertical-align: -0.27em;
|
|
@@ -2252,7 +2296,7 @@
|
|
|
2252
2296
|
aspect-ratio: 576 / 512;
|
|
2253
2297
|
overflow: visible;
|
|
2254
2298
|
& >text {
|
|
2255
|
-
font-weight: ${
|
|
2299
|
+
font-weight: ${v("bold")};
|
|
2256
2300
|
}
|
|
2257
2301
|
& >text:nth-of-type(1) {
|
|
2258
2302
|
stroke-width: 32;
|
|
@@ -2295,26 +2339,26 @@
|
|
|
2295
2339
|
stroke: ${x(e,5)};
|
|
2296
2340
|
}
|
|
2297
2341
|
}
|
|
2298
|
-
`},
|
|
2342
|
+
`},Ui=(0,r.forwardRef)(((r,o)=>{var{rank:t,scheme:n="primary",useMedalColors:i=!0,className:a}=r,l=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["rank","scheme","useMedalColors","className"]);const{trans:s,transNumber:c}=D("rankView"),d=i?t<=1?"gold":t<=2?"silver":t<=3?"bronze":"normal":"normal";return(0,e.jsx)("span",Object.assign({css:Yi.root,className:a,ref:o},l,{children:(0,e.jsxs)("svg",{css:Yi.icon(n),viewBox:"0 0 576 512","aria-label":s("label",{rank:t}),"data-qlib-type":d,children:[(0,e.jsx)("path",{d:"M309 106c11.4-7 19-19.7 19-34c0-22.1-17.9-40-40-40s-40 17.9-40 40c0 14.4 7.6 27 19 34L209.7 220.6c-9.1 18.2-32.7 23.4-48.6 10.7L72 160c5-6.7 8-15 8-24c0-22.1-17.9-40-40-40S0 113.9 0 136s17.9 40 40 40c.2 0 .5 0 .7 0L86.4 427.4c5.5 30.4 32 52.6 63 52.6H426.6c30.9 0 57.4-22.1 63-52.6L535.3 176c.2 0 .5 0 .7 0c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40c0 9 3 17.3 8 24l-89.1 71.3c-15.9 12.7-39.5 7.5-48.6-10.7L309 106z"}),(0,e.jsx)("text",{x:"50%",y:"62%",fontSize:"320",textAnchor:"middle",dominantBaseline:"central","aria-hidden":!0,children:c(t)}),(0,e.jsx)("text",{x:"50%",y:"62%",fontSize:"320",textAnchor:"middle",dominantBaseline:"central","aria-hidden":!0,children:c(t)})]})}))}));Ui.displayName="RankView";const _i=(0,r.createContext)({activeIndex:-1,count:0}),Gi=_i.Provider,Ki=(0,r.createContext)({index:0}),Qi=Ki.Provider;var Wi=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o};const Ji=e=>a.css`
|
|
2299
2343
|
--qlib-highlight-color: ${x(e,5)};
|
|
2300
2344
|
column-gap: ${$(2)};
|
|
2301
2345
|
display: flex;
|
|
2302
2346
|
flex-direction: column;
|
|
2303
2347
|
flex-grow: 0;
|
|
2304
2348
|
flex-shrink: 0;
|
|
2305
|
-
`,
|
|
2349
|
+
`,Zi=(0,r.forwardRef)(((o,t)=>{var{scheme:n="primary",children:i,className:a}=o;const l=Wi(o,["scheme","children","className"]),{index:s}=l,c=Wi(l,["index"]),d=(0,r.useMemo)((()=>({index:s})),[s]);return(0,e.jsx)("li",Object.assign({css:Ji(n),className:a,ref:t},c,{children:(0,e.jsx)(Qi,{value:d,children:i})}))}));Zi.displayName="StepperItem";const Xi={root:a.css`
|
|
2306
2350
|
column-gap: ${$(4)};
|
|
2307
2351
|
row-gap: ${$(4)};
|
|
2308
2352
|
display: flex;
|
|
2309
2353
|
flex-direction: row;
|
|
2310
2354
|
flex-wrap: wrap;
|
|
2311
|
-
`},
|
|
2355
|
+
`},ea=(0,r.forwardRef)(((o,t)=>{var n,{activeIndex:i=-1,children:a,className:l}=o,s=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["activeIndex","children","className"]);const c=ra(a),d=null!==(n=null==c?void 0:c.length)&&void 0!==n?n:0,b=(0,r.useMemo)((()=>({activeIndex:i,count:d})),[i,d]);return(0,e.jsx)("ol",Object.assign({css:Xi.root,className:l,ref:t},s,{children:(0,e.jsx)(Gi,{value:b,children:c})}))})),ra=e=>{let o=-1;return r.Children.map(e,(e=>(0,Pe.isElement)(e)?e.type===Zi?(o++,(0,r.cloneElement)(e,{index:o})):e:void 0))};ea.displayName="Stepper";const oa={root:a.css`
|
|
2312
2356
|
margin-block-start: ${$(2)};
|
|
2313
2357
|
display: flex;
|
|
2314
2358
|
flex-direction: column;
|
|
2315
2359
|
flex-grow: 1;
|
|
2316
2360
|
flex-shrink: 1;
|
|
2317
|
-
`},
|
|
2361
|
+
`},ta=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:oa.root,className:n,ref:o},i,{children:t}))}));ta.displayName="StepperBody";const na={root:a.css`
|
|
2318
2362
|
column-gap: ${$(1)};
|
|
2319
2363
|
display: flex;
|
|
2320
2364
|
flex-direction: row;
|
|
@@ -2362,17 +2406,17 @@
|
|
|
2362
2406
|
&[data-highlight="true"] {
|
|
2363
2407
|
background-color: var(--qlib-highlight-color);
|
|
2364
2408
|
}
|
|
2365
|
-
`},
|
|
2409
|
+
`},ia=(0,r.forwardRef)(((o,t)=>{var{children:n,className:i}=o,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["children","className"]);const{transNumber:c}=Fo("stepper"),{index:d}=(0,r.useContext)(Ki),{activeIndex:b,count:p}=(0,r.useContext)(_i),u=d<b?"completed":d===b?"active":"upcoming";return(0,e.jsxs)("div",Object.assign({css:na.root,className:i,ref:t},a,{children:[(0,e.jsx)("div",{css:na.number,"data-status":u,children:d<b?(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCheck}):null!=n?n:c(d+1)}),(0,e.jsx)("div",{css:na.border,"aria-hidden":!0,"data-visible":d<p-1,"data-highlight":d+1<=b})]}))}));ia.displayName="StepperNumber";const aa={root:a.css`
|
|
2366
2410
|
font-size: ${$(4)};
|
|
2367
|
-
font-weight: ${
|
|
2368
|
-
`},
|
|
2411
|
+
font-weight: ${v("bold")};
|
|
2412
|
+
`},la=(0,r.forwardRef)(((r,o)=>{var{as:t,children:n,className:i}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["as","children","className"]);return(0,e.jsx)(ar,Object.assign({css:aa.root,className:i,as:t,lineHeight:"normal",ref:o},a,{children:n}))}));la.displayName="StepperTitle";const sa={root:a.css`
|
|
2369
2413
|
inline-size: 100%;
|
|
2370
2414
|
margin-block-end: ${q(-1)};
|
|
2371
2415
|
column-gap: ${$(6)};
|
|
2372
2416
|
border-block-end: solid ${q(1)} ${x("gray",1)};
|
|
2373
2417
|
display: flex;
|
|
2374
2418
|
align-items: flex-end;
|
|
2375
|
-
`},
|
|
2419
|
+
`},ca=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:sa.root,className:n,ref:o},i,{children:t}))}));ca.displayName="TabList";const da=e=>a.css`
|
|
2376
2420
|
padding-block-end: calc(${$(3)} + ${q(4)});
|
|
2377
2421
|
padding-inline: ${$(0)};
|
|
2378
2422
|
color: ${x("gray",5)};
|
|
@@ -2399,18 +2443,18 @@
|
|
|
2399
2443
|
}
|
|
2400
2444
|
&[data-qlib-active="true"]:not([data-qlib-disabled="true"]) {
|
|
2401
2445
|
--qlib-highlight-color: ${x(e,5)};
|
|
2402
|
-
font-weight: ${
|
|
2446
|
+
font-weight: ${v("bold")};
|
|
2403
2447
|
color: ${x(e,5)};
|
|
2404
2448
|
}
|
|
2405
2449
|
&[data-qlib-disabled="true"] {
|
|
2406
2450
|
opacity: 0.5;
|
|
2407
2451
|
}
|
|
2408
|
-
`,
|
|
2452
|
+
`,ba=(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",isDisabled:n=!1,isActive:i=!1,href:a,onClick:l,children:s,className:c}=r,d=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","isDisabled","isActive","href","onClick","children","className"]);return null!=a?(0,e.jsx)("a",Object.assign({css:da(t),className:c,ref:o,href:n?void 0:a,role:n?"link":void 0,onClick:l,"data-qlib-disabled":n,"data-qlib-active":i,"aria-disabled":n},d,{children:s})):(0,e.jsx)("button",Object.assign({css:da(t),className:c,ref:o,disabled:n,onClick:l,"data-qlib-disabled":n,"data-qlib-active":i},d,{children:s}))}));ba.displayName="Tab";const pa={root:a.css`
|
|
2409
2453
|
margin-inline-end: ${$("gap")};
|
|
2410
2454
|
display: inline;
|
|
2411
2455
|
flex-grow: 0;
|
|
2412
2456
|
flex-shrink: 0;
|
|
2413
|
-
`},
|
|
2457
|
+
`},ua=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:pa.root,className:n,ref:o},i,{children:t}))}));ua.displayName="HeaderMenuItemIconContainer";const fa=a.keyframes`
|
|
2414
2458
|
from {
|
|
2415
2459
|
opacity: 0;
|
|
2416
2460
|
transform: translate(${$(0)}, ${$(2)});
|
|
@@ -2419,7 +2463,7 @@
|
|
|
2419
2463
|
opacity: 1;
|
|
2420
2464
|
transform: translate(${$(0)}, ${$(0)});
|
|
2421
2465
|
}
|
|
2422
|
-
`,
|
|
2466
|
+
`,ma=a.keyframes`
|
|
2423
2467
|
to {
|
|
2424
2468
|
opacity: 0;
|
|
2425
2469
|
transform: translate(${$(0)}, ${$(2)});
|
|
@@ -2428,7 +2472,7 @@
|
|
|
2428
2472
|
opacity: 1;
|
|
2429
2473
|
transform: translate(${$(0)}, ${$(0)});
|
|
2430
2474
|
}
|
|
2431
|
-
`,
|
|
2475
|
+
`,ya={root:e=>a.css`
|
|
2432
2476
|
inline-size: 100%;
|
|
2433
2477
|
border-radius: ${$(1)};
|
|
2434
2478
|
background-color: ${x("white")};
|
|
@@ -2449,10 +2493,10 @@
|
|
|
2449
2493
|
content: "";
|
|
2450
2494
|
}
|
|
2451
2495
|
&[data-state="open"] {
|
|
2452
|
-
animation: ${
|
|
2496
|
+
animation: ${fa} 0.2s ease;
|
|
2453
2497
|
}
|
|
2454
2498
|
&[data-state="closed"] {
|
|
2455
|
-
animation: ${
|
|
2499
|
+
animation: ${ma} 0.2s ease;
|
|
2456
2500
|
}
|
|
2457
2501
|
`,icon:e=>a.css`
|
|
2458
2502
|
margin-inline-start: ${$(3)};
|
|
@@ -2470,34 +2514,34 @@
|
|
|
2470
2514
|
&:first-of-type {
|
|
2471
2515
|
margin-inline-start: ${$(3)};
|
|
2472
2516
|
}
|
|
2473
|
-
`},
|
|
2517
|
+
`},ga=(0,r.forwardRef)(((r,o)=>{var{isOpen:t,duration:n=5e3,scheme:i="primary",iconNode:a,onOpenSet:l,children:s,className:c}=r,d=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["isOpen","duration","scheme","iconNode","onOpenSet","children","className"]);return(0,e.jsxs)(yo.Root,Object.assign({css:ya.root(i),className:c,duration:null!=n?n:864e5,open:t,onOpenChange:l,ref:o},d,{children:[null!=a&&(0,e.jsx)("div",{css:ya.icon(i),children:a}),(0,e.jsx)(yo.Description,{css:ya.container,children:s})]}))}));ga.displayName="Toast";const ha={root:a.css`
|
|
2474
2518
|
row-gap: ${$(2)};
|
|
2475
2519
|
display: flex;
|
|
2476
2520
|
flex-direction: column;
|
|
2477
|
-
`},
|
|
2521
|
+
`},Oa=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:ha.root,className:n,ref:o},i,{children:t}))}));Oa.displayName="ToastBody";const va={root:a.css`
|
|
2478
2522
|
font-size: ${$(4)};
|
|
2479
|
-
`},
|
|
2523
|
+
`},xa=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(ar,Object.assign({css:va.root,className:n,as:"p",lineHeight:"normal",ref:o},i,{children:t}))}));xa.displayName="ToastMessage";const ja={root:a.css`
|
|
2480
2524
|
font-size: ${$(3)};
|
|
2481
2525
|
color: ${x("gray",5)};
|
|
2482
|
-
`},
|
|
2526
|
+
`},wa=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(ar,Object.assign({css:ja.root,className:n,as:"p",lineHeight:"narrow",ref:o},i,{children:t}))}));wa.displayName="ToastSupplement";const $a=(0,r.forwardRef)(((r,o)=>{var{isOpen:t,duration:n=5e3,intent:i="success",onOpenSet:a,children:l,className:s}=r,c=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["isOpen","duration","intent","onOpenSet","children","className"]);return(0,e.jsx)(ga,Object.assign({className:s,isOpen:t,duration:n,scheme:"success"===i?"green":"error"===i?"red":"primary",iconNode:(0,e.jsx)($r,{name:i}),onOpenSet:a,ref:o},c,{children:(0,e.jsx)(Oa,{children:(0,e.jsx)(xa,{children:l})})}))}));function qa(e){return a.css`
|
|
2483
2527
|
display: flex;
|
|
2484
2528
|
flex-direction: column;
|
|
2485
|
-
${(null==e?void 0:e.gap)?a.css`row-gap: ${
|
|
2529
|
+
${(null==e?void 0:e.gap)?a.css`row-gap: ${Sa(e.gap)};`:""}
|
|
2486
2530
|
${(null==e?void 0:e.align)?a.css`align-items: ${e.align};`:""}
|
|
2487
2531
|
${(null==e?void 0:e.justify)?a.css`justify-content: ${e.justify};`:""}
|
|
2488
|
-
`}function
|
|
2532
|
+
`}function ka(e){return a.css`
|
|
2489
2533
|
display: flex;
|
|
2490
2534
|
flex-direction: row;
|
|
2491
|
-
${(null==e?void 0:e.gap)?a.css`column-gap: ${
|
|
2535
|
+
${(null==e?void 0:e.gap)?a.css`column-gap: ${Sa(e.gap)};`:""}
|
|
2492
2536
|
${(null==e?void 0:e.align)?a.css`align-items: ${e.align};`:""}
|
|
2493
2537
|
${(null==e?void 0:e.justify)?a.css`justify-content: ${e.justify};`:""}
|
|
2494
|
-
`}function
|
|
2495
|
-
${(null==e?void 0:e.top)?a.css`margin-block-start: ${
|
|
2496
|
-
${(null==e?void 0:e.bottom)?a.css`margin-block-end: ${
|
|
2497
|
-
${(null==e?void 0:e.left)?a.css`margin-inline-start: ${
|
|
2498
|
-
${(null==e?void 0:e.right)?a.css`margin-inline-end: ${
|
|
2499
|
-
`}function
|
|
2500
|
-
${(null==e?void 0:e.width)?a.css`inline-size: ${
|
|
2501
|
-
${(null==e?void 0:e.height)?a.css`block-size: ${
|
|
2502
|
-
`}function
|
|
2538
|
+
`}function Na(e){return a.css`
|
|
2539
|
+
${(null==e?void 0:e.top)?a.css`margin-block-start: ${Sa(e.top)};`:""}
|
|
2540
|
+
${(null==e?void 0:e.bottom)?a.css`margin-block-end: ${Sa(e.bottom)};`:""}
|
|
2541
|
+
${(null==e?void 0:e.left)?a.css`margin-inline-start: ${Sa(e.left)};`:""}
|
|
2542
|
+
${(null==e?void 0:e.right)?a.css`margin-inline-end: ${Sa(e.right)};`:""}
|
|
2543
|
+
`}function Pa(e){return a.css`
|
|
2544
|
+
${(null==e?void 0:e.width)?a.css`inline-size: ${Sa(e.width)};`:""}
|
|
2545
|
+
${(null==e?void 0:e.height)?a.css`block-size: ${Sa(e.height)};`:""}
|
|
2546
|
+
`}function Sa(e){return"number"==typeof e?$(e):e}$a.displayName="SimpleToast";const Ca=()=>{const{open:e,close:o,setDialogSpec:t}=(0,r.useContext)(po);return(0,r.useCallback)((r=>{return n=void 0,i=void 0,l=function*(){const n={element:r(o)};t(n),yield e()},new((a=void 0)||(a=Promise))((function(e,r){function o(e){try{s(l.next(e))}catch(e){r(e)}}function t(e){try{s(l.throw(e))}catch(e){r(e)}}function s(r){var n;r.done?e(r.value):(n=r.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,t)}s((l=l.apply(n,i||[])).next())}));var n,i,a,l}),[e,o,t])},za=()=>{const e=(0,r.useContext)(to);if(void 0===e)throw new Error("Not inside `RadioGroup`");const{value:o}=e;return{value:o}},Ia=()=>{const{setToastSpecs:e}=(0,r.useContext)(Oo);return(0,r.useCallback)((o=>{const t=I()().valueOf().toString(),n={element:(0,r.cloneElement)(o,{key:t,onOpenChange:r=>{r||setTimeout((()=>{e((e=>e.filter((e=>e!==n))))}),200)}})};e((e=>[...e,n]))}),[e])}})();var n=exports;for(var i in t)n[i]=t[i];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
2503
2547
|
//# sourceMappingURL=index.js.map
|