@baton8/general-components 3.1.0-alpha.0 → 3.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/button/button.d.ts +1 -1
- package/dist/components/atoms/iconButton/iconButton.d.ts +1 -1
- package/dist/components/modules/card/card.d.ts +2 -0
- package/dist/components/modules/card/cardButton.d.ts +7 -1
- package/dist/components/modules/card/cardButtonListColumn.d.ts +15 -0
- package/dist/components/modules/card/cardGrip.d.ts +13 -0
- package/dist/components/modules/card/index.d.ts +2 -0
- package/dist/components/modules/dialog/dialogButton.d.ts +1 -1
- package/dist/components/modules/drawer/drawerButton.d.ts +1 -1
- package/dist/contexts/dialog/hook.d.ts +4 -1
- package/dist/index.js +289 -238
- package/dist/index.js.map +1 -1
- package/dist/stories/modules/card/card.stories.d.ts +1 -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
|
|
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:()=>ve,AvatarFallbackLetter:()=>we,Badge:()=>qe,BadgeIconContainer:()=>Ne,BarMeter:()=>De,BarMeterValue:()=>Fe,BarMeterValueIconContainer:()=>Ae,BarProgress:()=>Te,BulkOperationButton:()=>xt,BulkOperationContainer:()=>vt,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:()=>On,DialogButton:()=>xn,DialogCloseButton:()=>wn,DialogFooter:()=>qn,DialogHeader:()=>Nn,DialogTitle:()=>Sn,Divider:()=>yr,Drawer:()=>En,DrawerBody:()=>Mn,DrawerButton:()=>Rn,DrawerCaption:()=>Fn,DrawerHeader:()=>An,DrawerHeaderLeft:()=>Tn,DrawerHeaderRight:()=>Yn,DrawerTitle:()=>_n,FileInput:()=>vr,Footnote:()=>Wn,FootnoteIconContainer:()=>Zn,FootnoteList:()=>ei,FootnoteListRow:()=>oi,FractionView:()=>ai,FractionViewDenominator:()=>si,FractionViewNumerator:()=>di,GeneralIcon:()=>gr,Header:()=>pi,HeaderLeft:()=>fi,HeaderMenu:()=>yi,HeaderMenuItem:()=>hi,HeaderMenuItemIconContainer:()=>Oi,Heading:()=>jr,Icon:()=>$r,IconButton:()=>kr,Input:()=>Ir,InputLeftAddon:()=>Pr,InputRightAddon:()=>Cr,LEVELED_COLOR_SCHEMES:()=>u,Link:()=>Lr,LinkIconContainer:()=>Br,LoadingIcon:()=>Hr,Menu:()=>Pi,MenuDivider:()=>Ei,MenuItem:()=>qi,MenuItemIconContainer:()=>zi,Modal:()=>_r,MultiLineText:()=>ar,NumberInput:()=>Wr,NumberInputLeftAddon:()=>Kr,PageSizeSelect:()=>Xo,PageSizeSelectAuto:()=>tt,Pagination:()=>Mi,PaginationAuto:()=>Ri,PasswordInput:()=>oo,PasswordInputLeftAddon:()=>Zr,PasswordInputRightAddon:()=>eo,Radio:()=>ao,RadioGroup:()=>lo,RankView:()=>Fi,Root:()=>Yo,SecondaryHeading:()=>_o,Select:()=>Ko,SelectOption:()=>Wo,SelectOptionIconContainer:()=>Zo,SimpleToast:()=>ga,SingleLineText:()=>Re,SortOrderSelect:()=>nt,Stepper:()=>Gi,StepperBody:()=>Wi,StepperItem:()=>Ui,StepperNumber:()=>Zi,StepperTitle:()=>ea,Switch:()=>lt,Tab:()=>na,TabIconContainer:()=>aa,TabList:()=>oa,Tag:()=>ct,TagIconContainer:()=>bt,TagList:()=>ut,Textarea:()=>mt,Toast:()=>da,ToastBody:()=>pa,ToastMessage:()=>fa,ToastSupplement:()=>ya,UNLEVELED_COLOR_SCHEMES:()=>f,VisuallyHidden:()=>gt,alpha:()=>j,borderWidth:()=>q,boxShadow:()=>k,color:()=>x,createColorDefinition:()=>m,createTrans:()=>Bo,dimension:()=>xa,fixedLineHeight:()=>C,flexHorizontal:()=>va,flexVertical:()=>ha,fontFamily:()=>v,fontWeight:()=>O,intlSubject:()=>Io,lineHeight:()=>S,localeSubject:()=>Eo,margin:()=>Oa,mergeLocalizationMessages:()=>$o,resolveResponsiveValue:()=>ko,size:()=>$,toResponsiveValue:()=>qo,useBehaviorSubject:()=>Co,useDialog:()=>wa,useIntl:()=>Do,useLocale:()=>Mo,useRadioGroup:()=>$a,useResponsiveValue:()=>Po,useSetLocale:()=>Ro,useSmartphone:()=>No,useSubject:()=>So,useToast:()=>qa,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 v(){return"'Inter', 'Noto Sans JP', 'Dubai', 'Noto Sans', sans-serif"}function O(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
|
|
5
|
+
`};function v(){return"'Inter', 'Noto Sans JP', 'Dubai', 'Noto Sans', sans-serif"}function O(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)};
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
display: block;
|
|
19
19
|
content: "";
|
|
20
20
|
}
|
|
21
|
-
`}function C(e,r){return
|
|
21
|
+
`}function C(e,r){return a.css`
|
|
22
22
|
line-height: ${e};
|
|
23
23
|
&::before {
|
|
24
24
|
block-size: ${$(0)};
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
display: block;
|
|
35
35
|
content: "";
|
|
36
36
|
}
|
|
37
|
-
`}const z=require("dayjs");var I=o.n(z);const E=require("react-intl"),D=e=>{const o=(0,E.useIntl)(),t=(0,r.useCallback)(((r,t)=>{var n;const
|
|
37
|
+
`}const z=require("dayjs");var I=o.n(z);const E=require("react-intl"),D=e=>{const o=(0,E.useIntl)(),t=(0,r.useCallback)(((r,t)=>{var n;const i="qlib."+(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])};const M={root:a.css`
|
|
38
38
|
padding-block: ${$(2)};
|
|
39
39
|
padding-inline: ${$(2)};
|
|
40
40
|
color: ${x("gray",5)};
|
|
41
|
-
`},R=(0,r.createContext)({variant:"outline",optionAlignment:"left",isMenuOpen:!1,isError:!1}),L=R.Provider;const F={root:
|
|
41
|
+
`},R=(0,r.createContext)({variant:"outline",optionAlignment:"left",isMenuOpen:!1,isError:!1}),L=R.Provider;const F={root:a.css`
|
|
42
42
|
font-size: ${$(4)};
|
|
43
43
|
color: ${x("primary",5)};
|
|
44
44
|
display: flex;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
outline: solid ${q(2)} ${j(x("primary",4),.6)};
|
|
56
56
|
outline-offset: ${q(1)};
|
|
57
57
|
}
|
|
58
|
-
`},B=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.ClearIndicator,Object.assign({css:F.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes})}))},A={root:
|
|
58
|
+
`},B=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.ClearIndicator,Object.assign({css:F.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes})}))},A={root:a.css`
|
|
59
59
|
column-gap: ${$("gap")};
|
|
60
60
|
display: flex;
|
|
61
61
|
flex-wrap: wrap;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
cursor: default;
|
|
65
65
|
outline: none !important;
|
|
66
66
|
position: relative;
|
|
67
|
-
`,rootOutline:
|
|
67
|
+
`,rootOutline:a.css`
|
|
68
68
|
&[data-qlib-error="false"] {
|
|
69
69
|
--qlib-border-color: ${x("gray",3)};
|
|
70
70
|
--qlib-focus-border-color: ${x("primary",5)};
|
|
@@ -85,40 +85,40 @@
|
|
|
85
85
|
outline: solid ${q(1)} var(--qlib-focus-border-color) !important;
|
|
86
86
|
transition: none !important;
|
|
87
87
|
}
|
|
88
|
-
`,rootMinimal:
|
|
88
|
+
`,rootMinimal:a.css`
|
|
89
89
|
min-block-size: initial;
|
|
90
90
|
font-size: ${$(4)};
|
|
91
|
-
`},H=({isFocused:o,isDisabled:t,menuIsOpen:n,innerRef:
|
|
91
|
+
`},H=({isFocused:o,isDisabled:t,menuIsOpen:n,innerRef:i,innerProps:a,children:l})=>{const{variant:s,isError:c}=(0,r.useContext)(R);return(0,e.jsx)("div",Object.assign({css:[A.root,"outline"===s?A.rootOutline:A.rootMinimal],ref:i,"data-qlib-focused":o,"data-qlib-error":c},a,{children:l}))};const T={root:a.css`
|
|
92
92
|
font-size: var(--qlib-font-size);
|
|
93
93
|
color: ${x("gray",5)};
|
|
94
|
-
`},V=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.DropdownIndicator,Object.assign({css:T.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleDown})}))},Y={root:
|
|
94
|
+
`},V=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.DropdownIndicator,Object.assign({css:T.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleDown})}))},Y={root:a.css`
|
|
95
95
|
column-gap: ${$("gap")};
|
|
96
96
|
display: flex;
|
|
97
97
|
align-items: center;
|
|
98
98
|
align-self: stretch;
|
|
99
99
|
flex-grow: 0;
|
|
100
100
|
flex-shrink: 0;
|
|
101
|
-
`},U=({innerProps:r,children:o})=>(0,e.jsx)("div",Object.assign({css:Y.root},r,{children:o}));const _={rootOutline:
|
|
101
|
+
`},U=({innerProps:r,children:o})=>(0,e.jsx)("div",Object.assign({css:Y.root},r,{children:o}));const _={rootOutline:a.css`
|
|
102
102
|
height: 1em;
|
|
103
103
|
line-height: 1;
|
|
104
|
-
`,rootMinimal:
|
|
104
|
+
`,rootMinimal:a.css`
|
|
105
105
|
height: 1em;
|
|
106
106
|
line-height: 1;
|
|
107
|
-
`},G=o=>{var{children:t}=o,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}(o,["children"]);const{variant:
|
|
107
|
+
`},G=o=>{var{children:t}=o,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}(o,["children"]);const{variant:i}=(0,r.useContext)(R);return(0,e.jsx)(c.components.Input,Object.assign({css:"outline"===i?_.rootOutline:_.rootMinimal},n,{children:t}))},K=a.keyframes`
|
|
108
108
|
from {
|
|
109
109
|
opacity: 0;
|
|
110
110
|
}
|
|
111
111
|
to {
|
|
112
112
|
opacity: 1;
|
|
113
113
|
}
|
|
114
|
-
`,Q=
|
|
114
|
+
`,Q=a.keyframes`
|
|
115
115
|
to {
|
|
116
116
|
opacity: 0;
|
|
117
117
|
}
|
|
118
118
|
from {
|
|
119
119
|
opacity: 1;
|
|
120
120
|
}
|
|
121
|
-
`,W={root:
|
|
121
|
+
`,W={root:a.css`
|
|
122
122
|
inline-size: 100%;
|
|
123
123
|
margin-block-start: ${q(2)};
|
|
124
124
|
display: flex;
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
animation: ${Q} 0.2s ease;
|
|
140
140
|
opacity: 0;
|
|
141
141
|
}
|
|
142
|
-
`},J=({innerRef:o,innerProps:t,children:n})=>{const{optionAlignment:
|
|
142
|
+
`},J=({innerRef:o,innerProps:t,children:n})=>{const{optionAlignment:i,isMenuOpen:a}=(0,r.useContext)(R);return(0,e.jsx)("div",Object.assign({css:W.root,ref:o,"data-qlib-open":a,"data-qlib-alignment":i},t,{children:n}))},Z={root:a.css`
|
|
143
143
|
inline-size: 100%;
|
|
144
144
|
min-inline-size: ${$(24)};
|
|
145
145
|
max-block-size: ${$(60)};
|
|
@@ -150,13 +150,13 @@
|
|
|
150
150
|
display: flex;
|
|
151
151
|
flex-direction: column;
|
|
152
152
|
overflow-y: auto;
|
|
153
|
-
`},X=({innerRef:r,innerProps:o,children:t})=>(0,e.jsx)("div",{css:Z.root,children:t});const ee={root:
|
|
153
|
+
`},X=({innerRef:r,innerProps:o,children:t})=>(0,e.jsx)("div",{css:Z.root,children:t});const ee={root:a.css`
|
|
154
154
|
z-index: 3000 !important;
|
|
155
|
-
`},re=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.MenuPortal,Object.assign({css:ee.root},t,{children:o}))};const oe={root:
|
|
155
|
+
`},re=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.MenuPortal,Object.assign({css:ee.root},t,{children:o}))};const oe={root:a.css`
|
|
156
156
|
padding-block: ${$(2)};
|
|
157
157
|
padding-inline: ${$(2)};
|
|
158
158
|
color: ${x("gray",5)};
|
|
159
|
-
`},te=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.NoOptionsMessage,Object.assign({css:oe.root},t,{children:n("noOption")}))},ne={root:
|
|
159
|
+
`},te=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.NoOptionsMessage,Object.assign({css:oe.root},t,{children:n("noOption")}))},ne={root:a.css`
|
|
160
160
|
inline-size: 100%;
|
|
161
161
|
padding-block: ${$(2)};
|
|
162
162
|
padding-inline: ${$(2)};
|
|
@@ -170,14 +170,14 @@
|
|
|
170
170
|
&[data-qlib-focused="true"] {
|
|
171
171
|
background-color: ${x("primary",0)};
|
|
172
172
|
}
|
|
173
|
-
`},
|
|
173
|
+
`},ie=({data:r,isSelected:o,isFocused:t,isDisabled:n,innerRef:i,innerProps:a,children:l})=>(0,e.jsx)("div",Object.assign({css:ne.root,ref:i,"data-qlib-selected":o,"data-qlib-focused":t,"aria-disabled":n},a,{children:r.node}));const ae={root:a.css`
|
|
174
174
|
color: ${x("gray",5)};
|
|
175
175
|
line-height: 1;
|
|
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:
|
|
180
|
-
`},ue=r=>{var{label:o,isDisabled:t=!1,children:n,className:
|
|
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]),v=se(200),{isMenuOpen:O}=v,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}(v,["isMenuOpen"]),j=(0,r.useMemo)((()=>({variant:a,optionAlignment:l,isMenuOpen:O,isError:s})),[a,l,O,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
|
+
`},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;
|
|
183
183
|
border-radius: ${$("max")};
|
|
@@ -189,34 +189,34 @@
|
|
|
189
189
|
vertical-align: middle;
|
|
190
190
|
position: relative;
|
|
191
191
|
overflow: hidden;
|
|
192
|
-
`,image:
|
|
192
|
+
`,image:a.css`
|
|
193
193
|
width: 100%;
|
|
194
194
|
height: 100%;
|
|
195
195
|
object-fit: cover;
|
|
196
|
-
`,fallback:
|
|
196
|
+
`,fallback:a.css`
|
|
197
197
|
width: 100%;
|
|
198
198
|
height: 100%;
|
|
199
199
|
display: inline-flex;
|
|
200
200
|
align-items: end;
|
|
201
201
|
justify-content: center;
|
|
202
|
-
`,icon:
|
|
202
|
+
`,icon:a.css`
|
|
203
203
|
font-size: 1.2em;
|
|
204
|
-
`},ye=(0,r.forwardRef)(((r,o)=>{var{src:t,alt:n,children:
|
|
204
|
+
`},ye=(0,r.forwardRef)(((r,o)=>{var{src:t,alt:n,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,["src","alt","children","className"]);return(0,e.jsxs)(fe.Root,Object.assign({css:me.root,className:a,ref:o},l,{children:[(0,e.jsx)(fe.Image,{css:me.image,src:t,alt:n}),i]}))}));ye.displayName="Avatar";const ge=require("@fortawesome/sharp-solid-svg-icons");const he={fallback:a.css`
|
|
205
205
|
width: 100%;
|
|
206
206
|
height: 100%;
|
|
207
207
|
display: inline-flex;
|
|
208
208
|
align-items: end;
|
|
209
209
|
justify-content: center;
|
|
210
|
-
`,icon:
|
|
210
|
+
`,icon:a.css`
|
|
211
211
|
font-size: 1.2em;
|
|
212
|
-
`},ve=(0,r.forwardRef)(((r,o)=>{var{hue:t,className:n}=r,
|
|
212
|
+
`},ve=(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})}))}));ve.displayName="AvatarFallbackIcon";const Oe=require("graphemesplit");var xe=o.n(Oe);const je={fallback:a.css`
|
|
213
213
|
width: 100%;
|
|
214
214
|
height: 100%;
|
|
215
215
|
font-size: 0.8em;
|
|
216
216
|
display: inline-flex;
|
|
217
217
|
align-items: center;
|
|
218
218
|
justify-content: center;
|
|
219
|
-
`},we=(0,r.forwardRef)(((o,t)=>{var{name:n,hue:
|
|
219
|
+
`},we=(0,r.forwardRef)(((o,t)=>{var{name:n,hue: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,["name","hue","className"]);const s=(0,r.useMemo)((()=>xe()(n)[0]),[n]);return(0,e.jsx)(fe.Fallback,Object.assign({css:je.fallback,ref:t,delayMs:500,style:{color:`hsl(${i}, 100%, 95%)`,backgroundColor:`hsl(${i}, 30%, 50%)`}},l,{children:s}))}));we.displayName="AvatarFallbackLetter";const $e=e=>a.css`
|
|
220
220
|
&[data-qlib-size="small"] {
|
|
221
221
|
--qlib-font-size: ${$(3)};
|
|
222
222
|
--qlib-padding-block: ${$(.5)};
|
|
@@ -255,22 +255,22 @@
|
|
|
255
255
|
border-radius: ${$("max")};
|
|
256
256
|
line-height: 1;
|
|
257
257
|
display: inline-block;
|
|
258
|
-
`,qe=(
|
|
258
|
+
`,qe=(a.css`
|
|
259
259
|
margin-inline-end: ${$("gap")};
|
|
260
|
-
`,(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",variant:n="light",size:
|
|
260
|
+
`,(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",variant:n="light",size:i="medium",className:a,children: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","variant","size","className","children"]);return(0,e.jsx)("span",Object.assign({css:$e(t),className:a,ref:o,"data-qlib-variant":n,"data-qlib-size":i},s,{children:l}))})));qe.displayName="Badge";const ke={root:a.css`
|
|
261
261
|
margin-inline-end: ${$("gap")};
|
|
262
|
-
`},Ne=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,
|
|
262
|
+
`},Ne=(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"]);return(0,e.jsx)("span",Object.assign({css:ke.root,className:t,ref:o},i,{children:n}))}));Ne.displayName="BadgeIconContainer";const Pe=require("react-is"),Se=e=>{const o=Ce(e),t=o.filter(r.isValidElement);if(o.length===t.length)return t;throw new Error("Component receives children containing nodes which is not a `ReactElement`")},Ce=e=>{const o=r.Children.toArray(e);return 1===o.length&&(0,Pe.isFragment)(o[0])?Ce(o[0].props.children):o},ze=(0,r.createContext)({isPale:!0,totalValue:0}),Ie=ze.Provider;const Ee={root:a.css`
|
|
263
263
|
inline-size: 100%;
|
|
264
264
|
display: flex;
|
|
265
265
|
overflow: hidden;
|
|
266
|
-
`},De=(0,r.forwardRef)(((o,t)=>{var{isPale:n=!0,children:
|
|
266
|
+
`},De=(0,r.forwardRef)(((o,t)=>{var{isPale:n=!0,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,["isPale","children","className"]);const s=(0,r.useMemo)((()=>Se(i).reduce(((e,r)=>e+ +r.props.value),0)),[i]),c=(0,r.useMemo)((()=>({isPale:n,totalValue:s})),[n,s]);return(0,e.jsx)("div",Object.assign({css:Ee.root,className:a,ref:t},l,{children:(0,e.jsx)(Ie,{value:c,children:i})}))}));De.displayName="BarMeter";const Me={root:a.css`
|
|
267
267
|
${S(1.5)}
|
|
268
|
-
`,inner:
|
|
268
|
+
`,inner:a.css`
|
|
269
269
|
display: -webkit-box;
|
|
270
270
|
-webkit-box-orient: vertical;
|
|
271
271
|
-webkit-line-clamp: 1;
|
|
272
272
|
overflow: hidden;
|
|
273
|
-
`},Re=(0,r.forwardRef)(((r,o)=>{var{as:t="div",children:n,className:
|
|
273
|
+
`},Re=(0,r.forwardRef)(((r,o)=>{var{as:t="div",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"]);const l=t;return(0,e.jsx)(l,Object.assign({css:Me.root,className:i,ref:o},a,{children:(0,e.jsx)("span",{css:Me.inner,children:n})}))}));Re.displayName="SingleLineText";const Le={root:e=>a.css`
|
|
274
274
|
&[data-qlib-pale="true"] {
|
|
275
275
|
--qlib-bar-color: ${x(e,3)};
|
|
276
276
|
}
|
|
@@ -303,12 +303,12 @@
|
|
|
303
303
|
&:last-of-type {
|
|
304
304
|
--qlib-border-end-radius: ${$("max")};
|
|
305
305
|
}
|
|
306
|
-
`,barContainer:
|
|
306
|
+
`,barContainer:a.css`
|
|
307
307
|
inline-size: 100%;
|
|
308
308
|
block-size: ${$(1.5)};
|
|
309
309
|
display: flex;
|
|
310
310
|
box-sizing: border-box;
|
|
311
|
-
`,bar:
|
|
311
|
+
`,bar:a.css`
|
|
312
312
|
background-color: var(--qlib-bar-color);
|
|
313
313
|
border-start-start-radius: var(--qlib-border-start-radius);
|
|
314
314
|
border-end-start-radius: var(--qlib-border-start-radius);
|
|
@@ -316,30 +316,30 @@
|
|
|
316
316
|
border-end-end-radius: var(--qlib-border-end-radius);
|
|
317
317
|
flex-grow: 1;
|
|
318
318
|
flex-shrink: 1;
|
|
319
|
-
`,spacer:
|
|
319
|
+
`,spacer:a.css`
|
|
320
320
|
inline-size: ${q(1)};
|
|
321
321
|
flex-grow: 0;
|
|
322
322
|
flex-shrink: 0;
|
|
323
323
|
display: var(--qlib-spacer-display);
|
|
324
|
-
`,legend:
|
|
324
|
+
`,legend:a.css`
|
|
325
325
|
inline-size: 100%;
|
|
326
326
|
margin-block-start: ${$(1)};
|
|
327
327
|
font-size: ${$(3)};
|
|
328
328
|
color: var(--qlib-color);
|
|
329
329
|
box-sizing: border-box;
|
|
330
|
-
`,icon:
|
|
330
|
+
`,icon:a.css`
|
|
331
331
|
margin-inline-end: ${$("gap")};
|
|
332
332
|
display: inline;
|
|
333
|
-
`},Fe=(0,r.forwardRef)(((o,t)=>{var{scheme:n="gray",value:
|
|
333
|
+
`},Fe=(0,r.forwardRef)(((o,t)=>{var{scheme:n="gray",value:i,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,["scheme","value","children","className"]);const{isPale:c,totalValue:d}=(0,r.useContext)(ze),b=d>0?i/d*100:0;return(0,e.jsxs)("div",Object.assign({css:Le.root(n),className:l,ref:t,"data-qlib-pale":c,style:{inlineSize:`${b}%`}},s,{children:[(0,e.jsxs)("div",{css:Le.barContainer,"aria-hidden":!0,children:[(0,e.jsx)("div",{css:Le.spacer}),(0,e.jsx)("div",{css:Le.bar})]}),(0,e.jsx)(Re,{css:Le.legend,children:a})]}))}));Fe.displayName="BarMeterValue";const Be={root:a.css`
|
|
334
334
|
margin-inline-end: ${$("gap")};
|
|
335
|
-
`},Ae=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,
|
|
335
|
+
`},Ae=(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"]);return(0,e.jsx)("span",Object.assign({css:Be.root,className:t,ref:o},i,{children:n}))}));Ae.displayName="BarMeterValueIconContainer";const He={root:a.css`
|
|
336
336
|
inline-size: 100%;
|
|
337
337
|
block-size: ${$(1.5)};
|
|
338
338
|
border-radius: ${$("max")};
|
|
339
339
|
background-color: ${x("gray",1)};
|
|
340
340
|
display: flex;
|
|
341
341
|
overflow: hidden;
|
|
342
|
-
`,bar:e=>
|
|
342
|
+
`,bar:e=>a.css`
|
|
343
343
|
&[data-qlib-pale="true"] {
|
|
344
344
|
--qlib-bar-color: ${x(e,3)};
|
|
345
345
|
}
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
--qlib-bar-color: ${x(e,5)};
|
|
348
348
|
}
|
|
349
349
|
background-color: var(--qlib-bar-color);
|
|
350
|
-
`},Te=(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",value:n,minValue:
|
|
350
|
+
`},Te=(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",value:n,minValue:i,maxValue:a,isPale:l=!0,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,["scheme","value","minValue","maxValue","isPale","className"]);const d=Math.min(Math.max((n-i)/(a-i)*100,0),100);return(0,e.jsx)("div",Object.assign({css:He.root,className:s,ref:o,role:"progressbar","aria-valuenow":n,"aria-valuemin":i,"aria-valuemax":a},c,{children:(0,e.jsx)("div",{css:He.bar(t),style:{inlineSize:`${d}%`},"data-qlib-pale":l,"aria-hidden":!0})}))}));Te.displayName="BarProgress";const Ve=(0,r.createContext)(void 0),Ye=Ve.Provider,Ue=()=>`\n --qlib-left-border-radius: ${$(1)};\n --qlib-right-border-radius: ${$(1)};\n --qlib-right-border-width: ${q(1)};\n .qlib-control-group >& {\n &:first-child {\n --qlib-left-border-radius: ${$(1)};\n }\n &:not(:first-child) {\n --qlib-left-border-radius: ${$(0)};\n }\n &:last-child {\n --qlib-right-border-radius: ${$(1)};\n }\n &:not(:last-child) {\n --qlib-right-border-radius: ${$(0)};\n --qlib-right-border-width: ${q(0)};\n }\n }\n `;const _e={rootBox:e=>a.css`
|
|
351
351
|
// 文字サイズ
|
|
352
352
|
&[data-qlib-size="small"] {
|
|
353
353
|
--qlib-font-size: ${$(3)};
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
opacity: 0.5;
|
|
432
432
|
cursor: inherit;
|
|
433
433
|
}
|
|
434
|
-
`,rootText:e=>
|
|
434
|
+
`,rootText:e=>a.css`
|
|
435
435
|
&[data-qlib-variant="underline"] {
|
|
436
436
|
--qlib-color: ${x(e,5)};
|
|
437
437
|
--qlib-hover-color: ${x(e,4)};
|
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
opacity: 0.5;
|
|
462
462
|
cursor: inherit;
|
|
463
463
|
}
|
|
464
|
-
`,rootUnstyled:e=>
|
|
464
|
+
`,rootUnstyled:e=>a.css`
|
|
465
465
|
&[data-qlib-variant="underline"] {
|
|
466
466
|
--qlib-hover-decoration-color: currentcolor;
|
|
467
467
|
}
|
|
@@ -485,7 +485,7 @@
|
|
|
485
485
|
opacity: 0.5;
|
|
486
486
|
cursor: inherit;
|
|
487
487
|
}
|
|
488
|
-
`,loading:
|
|
488
|
+
`,loading:a.css`
|
|
489
489
|
inset: ${$(0)};
|
|
490
490
|
background-color: var(--qlib-background-color);
|
|
491
491
|
border-radius: ${$(1)};
|
|
@@ -496,20 +496,20 @@
|
|
|
496
496
|
&[data-qlib-loading="true"] {
|
|
497
497
|
display: flex;
|
|
498
498
|
}
|
|
499
|
-
`},Ge=(0,r.forwardRef)(((o,t)=>{var n,{scheme:
|
|
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:v,className:O}=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:O,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:[v,(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;
|
|
503
503
|
flex-shrink: 0;
|
|
504
|
-
`},Qe=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
504
|
+
`},Qe=(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:Ke.root,className:n,ref:o},i,{children:t}))}));Qe.displayName="ButtonIconContainer";const We={root:a.css`
|
|
505
505
|
column-gap: ${$("gap")};
|
|
506
506
|
display: flex;
|
|
507
507
|
align-items: center;
|
|
508
|
-
`},Je=(0,r.forwardRef)(((o,t)=>{var{isError:n,isDisabled:
|
|
508
|
+
`},Je=(0,r.forwardRef)(((o,t)=>{var{isError:n,isDisabled:i,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,["isError","isDisabled","children","className"]);return(0,e.jsx)("label",Object.assign({className:l,css:We.root,ref:t},s,{children:(0,e.jsx)(Ye,{value:(0,r.useMemo)((()=>({isError:n,isDisabled:i})),[n,i]),children:a})}))}));Je.displayName="CheckableContainer";const Ze={root:a.css`
|
|
509
509
|
&[data-qlib-disabled="true"] {
|
|
510
510
|
opacity: 0.5;
|
|
511
511
|
}
|
|
512
|
-
`},Xe=(0,r.forwardRef)(((o,t)=>{var n,{isDisabled:
|
|
512
|
+
`},Xe=(0,r.forwardRef)(((o,t)=>{var n,{isDisabled:i,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,["isDisabled","children","className"]);const c=(0,r.useContext)(Ve),d=null!==(n=null!=i?i:null==c?void 0:c.isDisabled)&&void 0!==n&&n;return(0,e.jsx)("div",Object.assign({className:l,css:Ze.root,ref:t,"data-qlib-disabled":d},s,{children:a}))}));Xe.displayName="CheckableLabel";const er=require("@floating-ui/react");const rr={root:e=>a.css`
|
|
513
513
|
&[data-qlib-error="false"] {
|
|
514
514
|
--qlib-border-color: ${x("gray",5)};
|
|
515
515
|
--qlib-focus-color: ${j(x(e,5),.6)};
|
|
@@ -543,7 +543,7 @@
|
|
|
543
543
|
opacity: 0.5;
|
|
544
544
|
cursor: inherit;
|
|
545
545
|
}
|
|
546
|
-
`,original:
|
|
546
|
+
`,original:a.css`
|
|
547
547
|
inline-size: 1px;
|
|
548
548
|
block-size: 1px;
|
|
549
549
|
position: absolute;
|
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
opacity: 0;
|
|
553
553
|
clip: rect(0px, 0px, 0px, 0px);
|
|
554
554
|
clip-path: inset(50%);
|
|
555
|
-
`,input:
|
|
555
|
+
`,input:a.css`
|
|
556
556
|
inline-size: ${$(4.5)};
|
|
557
557
|
block-size: ${$(4.5)};
|
|
558
558
|
border-radius: ${$(1)};
|
|
@@ -577,7 +577,7 @@
|
|
|
577
577
|
input:disabled +& {
|
|
578
578
|
cursor: inherit;
|
|
579
579
|
}
|
|
580
|
-
`,icon:
|
|
580
|
+
`,icon:a.css`
|
|
581
581
|
font-size: ${$(4)};
|
|
582
582
|
color: ${x("white")};
|
|
583
583
|
transition: color 0.2s ease, opacity 0.2s ease;
|
|
@@ -589,11 +589,11 @@
|
|
|
589
589
|
input:indeterminate +* >& {
|
|
590
590
|
color: var(--qlib-checked-background-color);
|
|
591
591
|
}
|
|
592
|
-
`},or=(0,r.forwardRef)(((o,t)=>{var n,
|
|
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:v}=o,O=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},O,{children:[(0,e.jsx)("input",{type:"checkbox",css:rr.original,ref:k,className:h,id:v||$,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:v||$,"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;
|
|
596
|
-
`},nr=(0,r.forwardRef)(((o,t)=>{var{isLabel:n=!0,isError:
|
|
596
|
+
`},nr=(0,r.forwardRef)(((o,t)=>{var{isLabel:n=!0,isError:i,isDisabled:a,children:l,className:s}=o,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}(o,["isLabel","isError","isDisabled","children","className"]);const d=n?"label":"div";return(0,e.jsx)(d,Object.assign({className:s,css:tr.root,ref:t},c,{children:(0,e.jsx)(Ye,{value:(0,r.useMemo)((()=>({isError:i,isDisabled:a})),[i,a]),children:l})}))}));nr.displayName="ControlContainer";const ir={root:a.css`
|
|
597
597
|
&[data-qlib-max-line="true"] {
|
|
598
598
|
--qlib-additional-margin: 1em;
|
|
599
599
|
}
|
|
@@ -618,7 +618,7 @@
|
|
|
618
618
|
&[data-qlib-line-height="wideFixed"] {
|
|
619
619
|
${C("calc(1em + 0.625 * var(--qlib-root-font-size))","calc(var(--qlib-additional-margin) * -1)")};
|
|
620
620
|
}
|
|
621
|
-
`,inner:e=>
|
|
621
|
+
`,inner:e=>a.css`
|
|
622
622
|
&[data-qlib-max-line="true"] {
|
|
623
623
|
padding-block: var(--qlib-additional-margin);
|
|
624
624
|
display: -webkit-box;
|
|
@@ -626,21 +626,21 @@
|
|
|
626
626
|
-webkit-line-clamp: ${e};
|
|
627
627
|
overflow: hidden;
|
|
628
628
|
}
|
|
629
|
-
`},
|
|
629
|
+
`},ar=(0,r.forwardRef)(((r,o)=>{var{as:t="div",lineHeight:n="normal",maxLineCount:i=null,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,["as","lineHeight","maxLineCount","children","className"]);const c=t;return(0,e.jsx)(c,Object.assign({css:ir.root,className:l,ref:o,"data-qlib-line-height":n,"data-qlib-max-line":null!=i},s,{children:(0,e.jsx)("span",{css:ir.inner(null!=i?i:0),"data-qlib-max-line":null!=i,children:a})}))}));ar.displayName="MultiLineText";const lr={root:a.css`
|
|
630
630
|
font-size: ${$(3)};
|
|
631
631
|
color: ${x("red",5)};
|
|
632
|
-
`},sr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
632
|
+
`},sr=(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:lr.root,as:"p",ref:o},i,{children:t}))}));sr.displayName="ControlErrorMessage";const cr={root:a.css`
|
|
633
633
|
font-size: ${$(3)};
|
|
634
634
|
color: ${x("gray",5)};
|
|
635
|
-
`},dr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
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
637
|
font-weight: ${O("bold")};
|
|
638
638
|
color: ${x("gray",7)};
|
|
639
|
-
`},pr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
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;
|
|
641
641
|
position: relative;
|
|
642
642
|
z-index: 0;
|
|
643
|
-
`},fr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
643
|
+
`},fr=(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:ur.root,className:["qlib-control-group",n].join(" "),ref:o},i,{children:t}))}));fr.displayName="ControlGroup";const mr={root:a.css`
|
|
644
644
|
&[data-qlib-orientation="vertical"] {
|
|
645
645
|
block-size: 100%;
|
|
646
646
|
border-inline-start: solid ${q(1)} ${x("gray",1)};
|
|
@@ -649,8 +649,8 @@
|
|
|
649
649
|
inline-size: 100%;
|
|
650
650
|
border-block-start: solid ${q(1)} ${x("gray",1)};
|
|
651
651
|
}
|
|
652
|
-
`},yr=(0,r.forwardRef)(((r,o)=>{var{orientation:t,className:n}=r,
|
|
653
|
-
`;const gr=(0,r.forwardRef)(((r,o)=>{var{icon:t,label:n,flip:
|
|
652
|
+
`},yr=(0,r.forwardRef)(((r,o)=>{var{orientation: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,["orientation","className"]);return(0,e.jsx)("div",Object.assign({css:mr.root,className:n,role:"separator",ref:o,"data-qlib-orientation":t},i))}));yr.displayName="Divider";a.css`
|
|
653
|
+
`;const gr=(0,r.forwardRef)(((r,o)=>{var{icon:t,label:n,flip:i="none",rotation:a=0,spin:s=!1,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,["icon","label","flip","rotation","spin","className"]);return(0,e.jsx)(l.FontAwesomeIcon,Object.assign({className:c,icon:t,title:n,flip:"none"===i?void 0:i,rotation:0===a?void 0:a,spin:s,ref:o},d))}));gr.displayName="GeneralIcon";const hr={root:a.css`
|
|
654
654
|
&[data-qlib-size="small"] {
|
|
655
655
|
--qlib-font-size: ${$(3)};
|
|
656
656
|
--qlib-padding-block: ${$(1.5)};
|
|
@@ -687,7 +687,7 @@
|
|
|
687
687
|
border-color: var(--qlib-focus-border-color);
|
|
688
688
|
outline: solid ${q(1)} var(--qlib-focus-border-color);
|
|
689
689
|
}
|
|
690
|
-
`,inputContainer:
|
|
690
|
+
`,inputContainer:a.css`
|
|
691
691
|
column-gap: ${$("gap")};
|
|
692
692
|
display: flex;
|
|
693
693
|
align-items: center;
|
|
@@ -695,7 +695,7 @@
|
|
|
695
695
|
flex-shrink: 1;
|
|
696
696
|
z-index: 0;
|
|
697
697
|
position: relative;
|
|
698
|
-
`,input:
|
|
698
|
+
`,input:a.css`
|
|
699
699
|
width: 1px;
|
|
700
700
|
height: 1px;
|
|
701
701
|
position: absolute;
|
|
@@ -704,7 +704,7 @@
|
|
|
704
704
|
opacity: 0;
|
|
705
705
|
clip: rect(0px, 0px, 0px, 0px);
|
|
706
706
|
clip-path: inset(50%);
|
|
707
|
-
`,button:
|
|
707
|
+
`,button:a.css`
|
|
708
708
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
709
709
|
box-sizing: content-box;
|
|
710
710
|
flex-grow: 1;
|
|
@@ -715,11 +715,11 @@
|
|
|
715
715
|
&:disabled {
|
|
716
716
|
cursor: inherit;
|
|
717
717
|
}
|
|
718
|
-
`,builtinAddon:
|
|
718
|
+
`,builtinAddon:a.css`
|
|
719
719
|
color: ${x("gray",5)};
|
|
720
720
|
flex-grow: 0;
|
|
721
721
|
flex-shrink: 0;
|
|
722
|
-
`},vr=o=>{var t,n,{value:
|
|
722
|
+
`},vr=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:v}=o,O=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(Or(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:v,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},O)),(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 Or(e){return Array.isArray(e)?e.map(Or).join(", "):null!=e?e.name:""}vr.displayName="FileInput";const xr={root:a.css`
|
|
723
723
|
padding-block: ${$(1)};
|
|
724
724
|
padding-inline-start: ${$(3)};
|
|
725
725
|
font-size: ${$(5)};
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
flex-grow: 1;
|
|
735
735
|
content: "";
|
|
736
736
|
}
|
|
737
|
-
`},jr=(0,r.forwardRef)(((r,o)=>{var{as:t="h2",className:n,children:
|
|
737
|
+
`},jr=(0,r.forwardRef)(((r,o)=>{var{as:t="h2",className:n,children: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","className","children"]);const l=t;return(0,e.jsx)(l,Object.assign({css:xr.root,className:n,ref:o},a,{children:i}))}));jr.displayName="Heading";const wr={plus:s.faPlus,minus:s.faTimes,edit:s.faPen,delete:s.faTrashAlt,search:s.faSearch,upload:s.faUpload,copy:s.faCopy,confirm:s.faCheck,accept:s.faThumbsUp,refuse:s.faBan,move:s.faArrowsUpDownLeftRight,bulk:s.faBucket,login:s.faSignInAlt,logout:s.faSignOutAlt,correct:s.faO,wrong:s.faTimes,first:s.faArrowLeftToLine,previous:s.faArrowLeft,next:s.faArrowRight,last:s.faArrowRightToLine,success:s.faCircleCheck,error:s.faTriangleExclamation,caution:s.faTriangleExclamation,info:s.faCircleInfo,more:s.faAngleDown,less:s.faAngleUp,back:s.faLeft,empty:s.faFaceDotted,menu:s.faChevronDown,grip:s.faGripVertical,ellipsis:s.faEllipsisH};const $r=(0,r.forwardRef)(((r,o)=>{var{name:t,label: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,["name","label","className"]);const s=wr[t];return(0,e.jsx)(l.FontAwesomeIcon,Object.assign({className:i,icon:s,title:n,ref:o},a))}));$r.displayName="Icon";const qr={rootBox:e=>a.css`
|
|
738
738
|
// 文字サイズ
|
|
739
739
|
&[data-qlib-size="small"] {
|
|
740
740
|
--qlib-font-size: ${$(3)};
|
|
@@ -803,7 +803,7 @@
|
|
|
803
803
|
opacity: 0.5;
|
|
804
804
|
cursor: inherit;
|
|
805
805
|
}
|
|
806
|
-
`,loading:
|
|
806
|
+
`,loading:a.css`
|
|
807
807
|
inset: ${$(0)};
|
|
808
808
|
background-color: var(--qlib-background-color);
|
|
809
809
|
border-radius: ${$(1)};
|
|
@@ -814,13 +814,13 @@
|
|
|
814
814
|
&[data-qlib-loading="true"] {
|
|
815
815
|
display: flex;
|
|
816
816
|
}
|
|
817
|
-
`},kr=(0,r.forwardRef)(((o,t)=>{var{label:n,scheme:
|
|
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:v}=o,O=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},O,{children:[v,(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
|
-
`},Pr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
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`
|
|
821
821
|
flex-grow: 0;
|
|
822
822
|
flex-shrink: 0;
|
|
823
|
-
`},Cr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
823
|
+
`},Cr=(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:Sr.root,className:n,ref:o},i,{children:t}))}));Cr.displayName="InputRightAddon";const zr={root:a.css`
|
|
824
824
|
&[data-qlib-size="small"] {
|
|
825
825
|
--qlib-font-size: ${$(3)};
|
|
826
826
|
}
|
|
@@ -875,7 +875,7 @@
|
|
|
875
875
|
border-color: var(--qlib-focus-border-color);
|
|
876
876
|
outline: solid ${q(1)} var(--qlib-focus-border-color);
|
|
877
877
|
}
|
|
878
|
-
`,inputContainer:
|
|
878
|
+
`,inputContainer:a.css`
|
|
879
879
|
column-gap: ${$("gap")};
|
|
880
880
|
display: flex;
|
|
881
881
|
align-items: center;
|
|
@@ -883,7 +883,7 @@
|
|
|
883
883
|
flex-shrink: 1;
|
|
884
884
|
z-index: 0;
|
|
885
885
|
position: relative;
|
|
886
|
-
`,input:
|
|
886
|
+
`,input:a.css`
|
|
887
887
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
888
888
|
box-sizing: content-box;
|
|
889
889
|
flex-grow: 1;
|
|
@@ -902,11 +902,11 @@
|
|
|
902
902
|
cursor: pointer;
|
|
903
903
|
z-index: 1;
|
|
904
904
|
}
|
|
905
|
-
`,builtinAddon:
|
|
905
|
+
`,builtinAddon:a.css`
|
|
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,
|
|
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:v,onBlur:O,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==v||v(e)}),[h,v]),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!=v?S:void 0,onBlur:O,"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)};
|
|
@@ -988,7 +988,7 @@
|
|
|
988
988
|
opacity: 0.5;
|
|
989
989
|
cursor: inherit;
|
|
990
990
|
}
|
|
991
|
-
`,Mr=e=>
|
|
991
|
+
`,Mr=e=>a.css`
|
|
992
992
|
&[data-qlib-variant="underline"] {
|
|
993
993
|
--qlib-color: ${x(e,5)};
|
|
994
994
|
--qlib-hover-color: ${x(e,4)};
|
|
@@ -1018,7 +1018,7 @@
|
|
|
1018
1018
|
opacity: 0.5;
|
|
1019
1019
|
cursor: inherit;
|
|
1020
1020
|
}
|
|
1021
|
-
`,Rr=e=>
|
|
1021
|
+
`,Rr=e=>a.css`
|
|
1022
1022
|
&[data-qlib-variant="underline"] {
|
|
1023
1023
|
--qlib-hover-decoration-color: currentcolor;
|
|
1024
1024
|
}
|
|
@@ -1042,7 +1042,7 @@
|
|
|
1042
1042
|
opacity: 0.5;
|
|
1043
1043
|
cursor: inherit;
|
|
1044
1044
|
}
|
|
1045
|
-
`,Lr=(
|
|
1045
|
+
`,Lr=(a.css`
|
|
1046
1046
|
inset: ${$(0)};
|
|
1047
1047
|
background-color: var(--qlib-background-color);
|
|
1048
1048
|
border-radius: ${$(1)};
|
|
@@ -1053,14 +1053,14 @@
|
|
|
1053
1053
|
&[data-qlib-loading="true"] {
|
|
1054
1054
|
display: flex;
|
|
1055
1055
|
}
|
|
1056
|
-
`,(0,r.forwardRef)(((o,t)=>{var{href:n,target:
|
|
1056
|
+
`,(0,r.forwardRef)(((o,t)=>{var{href:n,target:i,scheme:a="primary",variant:l="underline",size:s="medium",isCompact:c=!1,onClick:d,onKeyDown:b,onKeyUp:p,onMouseDown:u,onPointerDown:f,children:m,className:y}=o,g=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,["href","target","scheme","variant","size","isCompact","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","children","className"]);const h=(0,r.useMemo)((()=>"solid"===l||"light"===l?Dr(a):"underline"===l||"simple"===l?Mr(a):Rr(a)),[a,l]);return(0,e.jsx)("a",Object.assign({className:y,css:h,href:n,target:i,onClick:d,onKeyDown:b,onKeyUp:p,onMouseDown:u,onPointerDown:f,ref:t,"data-qlib-variant":l,"data-qlib-size":s,"data-qlib-compact":c},g,{children:m}))})));Lr.displayName="Link";const Fr={root:a.css`
|
|
1057
1057
|
margin-inline-end: ${$("gap")};
|
|
1058
1058
|
display: inline;
|
|
1059
1059
|
flex-grow: 0;
|
|
1060
1060
|
flex-shrink: 0;
|
|
1061
|
-
`},Br=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
1061
|
+
`},Br=(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:Fr.root,className:n,ref:o},i,{children:t}))}));Br.displayName="LinkIconContainer";const Ar=e=>a.css`
|
|
1062
1062
|
color: ${null!=e?x(e,5):"inherit"};
|
|
1063
|
-
`,Hr=(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",className:n}=r,
|
|
1063
|
+
`,Hr=(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",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,["scheme","className"]);const{trans:a}=D("loadingIcon");return(0,e.jsx)(l.FontAwesomeIcon,Object.assign({className:n,css:Ar(t),icon:s.faCircleNotch,spin:!0,ref:o,"aria-label":a("label")},i))}));Hr.displayName="LoadingIcon";const Tr=require("body-scroll-lock"),Vr=require("react-modal");var Yr=o.n(Vr);const Ur={overlay:a.css`
|
|
1064
1064
|
background-color: ${j(x("black"),.6)};
|
|
1065
1065
|
position: fixed;
|
|
1066
1066
|
inset: 0rem;
|
|
@@ -1072,10 +1072,10 @@
|
|
|
1072
1072
|
&.ReactModal__Overlay--before-close {
|
|
1073
1073
|
opacity: 0;
|
|
1074
1074
|
}
|
|
1075
|
-
`},_r=({isOpen:o,label:t,onClose:n,children:
|
|
1075
|
+
`},_r=({isOpen:o,label:t,onClose:n,children:i,className:l})=>{const[s,c]=(0,r.useState)(!0),d=(0,r.useCallback)((()=>{c(!1),null==n||n()}),[n]),b=void 0!==o?o:s;return(0,r.useEffect)((()=>{b?Tr.disableBodyScroll(document.body,{reserveScrollBarGap:!0}):Tr.enableBodyScroll(document.body)}),[b]),(0,e.jsx)(a.ClassNames,{children:({css:n})=>(0,e.jsx)(Yr(),{isOpen:void 0!==o?o:s,contentLabel:t,onRequestClose:d,className:"qlib-modal",overlayClassName:[l,n(Ur.overlay)].join(" "),portalClassName:"qlib-modal-portal",bodyOpenClassName:null,htmlOpenClassName:null,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0,contentElement:e=>(0,r.cloneElement)(i,e),closeTimeoutMS:200})})};_r.displayName="Modal";const Gr={root:a.css`
|
|
1076
1076
|
flex-grow: 0;
|
|
1077
1077
|
flex-shrink: 0;
|
|
1078
|
-
`},Kr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
1078
|
+
`},Kr=(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:Gr.root,className:n,ref:o},i,{children:t}))}));Kr.displayName="NumberInputLeftAddon";const Qr={root:a.css`
|
|
1079
1079
|
&[data-qlib-size="small"] {
|
|
1080
1080
|
--qlib-font-size: ${$(3)};
|
|
1081
1081
|
}
|
|
@@ -1130,7 +1130,7 @@
|
|
|
1130
1130
|
border-color: var(--qlib-focus-border-color);
|
|
1131
1131
|
outline: solid ${q(1)} var(--qlib-focus-border-color);
|
|
1132
1132
|
}
|
|
1133
|
-
`,inputContainer:
|
|
1133
|
+
`,inputContainer:a.css`
|
|
1134
1134
|
column-gap: ${$("gap")};
|
|
1135
1135
|
display: flex;
|
|
1136
1136
|
align-items: center;
|
|
@@ -1138,7 +1138,7 @@
|
|
|
1138
1138
|
flex-shrink: 1;
|
|
1139
1139
|
z-index: 0;
|
|
1140
1140
|
position: relative;
|
|
1141
|
-
`,input:
|
|
1141
|
+
`,input:a.css`
|
|
1142
1142
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
1143
1143
|
box-sizing: content-box;
|
|
1144
1144
|
flex-grow: 1;
|
|
@@ -1152,7 +1152,7 @@
|
|
|
1152
1152
|
&::-webkit-inner-spin-button {
|
|
1153
1153
|
appearance: none;
|
|
1154
1154
|
}
|
|
1155
|
-
`,vertivalButtonList:
|
|
1155
|
+
`,vertivalButtonList:a.css`
|
|
1156
1156
|
inline-size: var(--qlib-control-width);
|
|
1157
1157
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
1158
1158
|
margin-inline-end: calc(var(--qlib-padding-inline) * -1);
|
|
@@ -1162,7 +1162,7 @@
|
|
|
1162
1162
|
align-self: stretch;
|
|
1163
1163
|
flex-grow: 0;
|
|
1164
1164
|
flex-shrink: 0;
|
|
1165
|
-
`,verticalButton:
|
|
1165
|
+
`,verticalButton:a.css`
|
|
1166
1166
|
color: ${x("gray",5)};
|
|
1167
1167
|
background-color: ${x("white")};
|
|
1168
1168
|
display: flex;
|
|
@@ -1175,9 +1175,9 @@
|
|
|
1175
1175
|
&:hover:not([data-disabled="true"]) {
|
|
1176
1176
|
background-color: ${x("gray",0)};
|
|
1177
1177
|
}
|
|
1178
|
-
`,verticalButtonDivider:
|
|
1178
|
+
`,verticalButtonDivider:a.css`
|
|
1179
1179
|
border-block-start: solid ${q(1)} ${x("gray",3)};
|
|
1180
|
-
`,horizontalButton:
|
|
1180
|
+
`,horizontalButton:a.css`
|
|
1181
1181
|
inline-size: var(--qlib-control-width);
|
|
1182
1182
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
1183
1183
|
color: ${x("gray",5)};
|
|
@@ -1204,13 +1204,13 @@
|
|
|
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,
|
|
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:v,isDisabled:O,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!=O?O: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:v,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
|
-
`},Zr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
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`
|
|
1211
1211
|
flex-grow: 0;
|
|
1212
1212
|
flex-shrink: 0;
|
|
1213
|
-
`},eo=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
1213
|
+
`},eo=(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:Xr.root,className:n,ref:o},i,{children:t}))}));eo.displayName="PasswordInputRightAddon";const ro={root:a.css`
|
|
1214
1214
|
&[data-qlib-size="small"] {
|
|
1215
1215
|
--qlib-font-size: ${$(3)};
|
|
1216
1216
|
--qlib-padding-block: ${$(1.5)};
|
|
@@ -1247,13 +1247,13 @@
|
|
|
1247
1247
|
border-color: var(--qlib-focus-border-color);
|
|
1248
1248
|
outline: solid ${q(1)} var(--qlib-focus-border-color);
|
|
1249
1249
|
}
|
|
1250
|
-
`,inputContainer:
|
|
1250
|
+
`,inputContainer:a.css`
|
|
1251
1251
|
column-gap: ${$("gap")};
|
|
1252
1252
|
display: flex;
|
|
1253
1253
|
align-items: center;
|
|
1254
1254
|
flex-grow: 1;
|
|
1255
1255
|
flex-shrink: 1;
|
|
1256
|
-
`,input:
|
|
1256
|
+
`,input:a.css`
|
|
1257
1257
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
1258
1258
|
box-sizing: content-box;
|
|
1259
1259
|
flex-grow: 1;
|
|
@@ -1261,7 +1261,7 @@
|
|
|
1261
1261
|
&:disabled {
|
|
1262
1262
|
cursor: inherit;
|
|
1263
1263
|
}
|
|
1264
|
-
`,button:
|
|
1264
|
+
`,button:a.css`
|
|
1265
1265
|
inline-size: 1.1em;
|
|
1266
1266
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
1267
1267
|
color: ${x("primary",5)};
|
|
@@ -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,
|
|
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:v,onBlur:O,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==v||v(e)}),[h,v]),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!=v?z:void 0,onBlur:O,"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)};
|
|
@@ -1314,7 +1314,7 @@
|
|
|
1314
1314
|
opacity: 0.5;
|
|
1315
1315
|
cursor: inherit;
|
|
1316
1316
|
}
|
|
1317
|
-
`,original:
|
|
1317
|
+
`,original:a.css`
|
|
1318
1318
|
inline-size: 1px;
|
|
1319
1319
|
block-size: 1px;
|
|
1320
1320
|
position: absolute;
|
|
@@ -1323,7 +1323,7 @@
|
|
|
1323
1323
|
opacity: 0;
|
|
1324
1324
|
clip: rect(0px, 0px, 0px, 0px);
|
|
1325
1325
|
clip-path: inset(50%);
|
|
1326
|
-
`,input:
|
|
1326
|
+
`,input:a.css`
|
|
1327
1327
|
inline-size: ${$(4.5)};
|
|
1328
1328
|
block-size: ${$(4.5)};
|
|
1329
1329
|
border-radius: ${$("max")};
|
|
@@ -1348,7 +1348,7 @@
|
|
|
1348
1348
|
input:disabled +& {
|
|
1349
1349
|
cursor: inherit;
|
|
1350
1350
|
}
|
|
1351
|
-
`,icon:
|
|
1351
|
+
`,icon:a.css`
|
|
1352
1352
|
inline-size: ${$(2.5)};
|
|
1353
1353
|
block-size: ${$(2.5)};
|
|
1354
1354
|
border-radius: ${$("max")};
|
|
@@ -1358,7 +1358,7 @@
|
|
|
1358
1358
|
input:checked +* >& {
|
|
1359
1359
|
opacity: 1;
|
|
1360
1360
|
}
|
|
1361
|
-
`},
|
|
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:v}=o,O=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},O,{children:[(0,e.jsx)("input",{type:"radio",css:io.original,ref:t,className:h,id:v||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:v||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
|
}
|
|
@@ -1370,7 +1370,7 @@
|
|
|
1370
1370
|
row-gap: ${$(2)};
|
|
1371
1371
|
display: flex;
|
|
1372
1372
|
flex-direction: var(--qlib-flex-direction);
|
|
1373
|
-
`},co=(0,r.forwardRef)((({orientation:r="vertical",children:o},t)=>(0,e.jsx)(lo,{children:(0,e.jsx)("div",{css:so.root,ref:t,"aria-orientation":r,"data-qlib-orientation":r,children:o})})));co.displayName="AlignedRadioGroup";const bo=require("react-use");const po=(0,r.createContext)({open:()=>{return e=void 0,r=void 0,t=function*(){},new((o=void 0)||(o=Promise))((function(n,
|
|
1373
|
+
`},co=(0,r.forwardRef)((({orientation:r="vertical",children:o},t)=>(0,e.jsx)(lo,{children:(0,e.jsx)("div",{css:so.root,ref:t,"aria-orientation":r,"data-qlib-orientation":r,children:o})})));co.displayName="AlignedRadioGroup";const bo=require("react-use");const po=(0,r.createContext)({open:()=>{return e=void 0,r=void 0,t=function*(){},new((o=void 0)||(o=Promise))((function(n,i){function a(e){try{s(t.next(e))}catch(e){i(e)}}function l(e){try{s(t.throw(e))}catch(e){i(e)}}function s(e){var r;e.done?n(e.value):(r=e.value,r instanceof o?r:new o((function(e){e(r)}))).then(a,l)}s((t=t.apply(e,r||[])).next())}));var e,r,o,t},close:()=>{},setDialogSpec:()=>{}}),uo=({children:o})=>{const[t,n]=(0,r.useState)(!1),i=(0,r.useRef)((()=>{})),a=(0,r.useCallback)((()=>(i.current(),new Promise((e=>{i.current=e,n(!0)})))),[]),l=(0,r.useCallback)((()=>{n(!1),i.current()}),[]),[s,c]=(0,r.useState)(null),d=(0,r.useMemo)((()=>({open:a,close:l,setDialogSpec:c})),[a,l,c]);return(0,e.jsxs)(po.Provider,{value:d,children:[null!=s&&(0,r.cloneElement)(s.element,{isOpen:t,onClose:l}),o]})},fo=(0,r.createContext)({rootFontSize:{desktop:"16px",smartphone:"13px"},smartphoneQuery:"(max-width: 767px)"}),mo=fo.Provider,yo=require("@radix-ui/react-toast"),go={root:a.css`
|
|
1374
1374
|
inline-size: ${$(96)};
|
|
1375
1375
|
max-inline-size: calc(100vw - ${$(6)});
|
|
1376
1376
|
inset-block-start: ${$(6)};
|
|
@@ -1384,8 +1384,8 @@
|
|
|
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")})},vo=(0,r.createContext)({setToastSpecs:()=>null}),Oo=vo.Provider,xo=({children:o})=>{const{trans:t}=D("toast"),[n,
|
|
1388
|
-
${r.font?
|
|
1387
|
+
`},ho=({})=>{const{trans:r}=D("toast");return(0,e.jsx)(yo.Viewport,{css:go.root,label:r("viewportLabel")})},vo=(0,r.createContext)({setToastSpecs:()=>null}),Oo=vo.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)(Oo,{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
|
+
${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
|
`:""}
|
|
1391
1391
|
|
|
@@ -1394,7 +1394,7 @@
|
|
|
1394
1394
|
}
|
|
1395
1395
|
html {
|
|
1396
1396
|
font-size: ${e};
|
|
1397
|
-
${r.font?
|
|
1397
|
+
${r.font?a.css`
|
|
1398
1398
|
font-family: ${"'Inter', 'Noto Sans JP', 'Dubai', 'Noto Sans', sans-serif"};
|
|
1399
1399
|
`:""}
|
|
1400
1400
|
font-weight: ${O("normal")};
|
|
@@ -1402,7 +1402,7 @@
|
|
|
1402
1402
|
color: ${x("blackText")};
|
|
1403
1403
|
background-color: ${x("background")};
|
|
1404
1404
|
line-height: 1;
|
|
1405
|
-
${r.wrap?
|
|
1405
|
+
${r.wrap?a.css`
|
|
1406
1406
|
overflow-wrap: break-word;
|
|
1407
1407
|
`:""}
|
|
1408
1408
|
}
|
|
@@ -1419,7 +1419,7 @@
|
|
|
1419
1419
|
scrollbar-width: thin;
|
|
1420
1420
|
}
|
|
1421
1421
|
*:where(:not(iframe, canvas, img, svg, video):not(svg *):not(.sbdocs *:not(.docs-story *))) {
|
|
1422
|
-
${r.resetAll?
|
|
1422
|
+
${r.resetAll?a.css`
|
|
1423
1423
|
all: unset;
|
|
1424
1424
|
display: revert;
|
|
1425
1425
|
`:""}
|
|
@@ -1433,24 +1433,24 @@
|
|
|
1433
1433
|
user-select: auto !important;
|
|
1434
1434
|
-webkit-user-select : auto !important;
|
|
1435
1435
|
}
|
|
1436
|
-
`,To={root:
|
|
1436
|
+
`,To={root:a.css`
|
|
1437
1437
|
block-size: ${$(0)};
|
|
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:
|
|
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,O]=(0,r.useState)(d);return(0,r.useEffect)((()=>{O(!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:v&&b})})})})]})};const Uo={root:a.css`
|
|
1442
1442
|
font-size: ${$(4.5)};
|
|
1443
1443
|
font-weight: ${O("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,
|
|
1448
|
-
`},Wo=r=>{var{value:o,label:t,isDisabled:n=!1,children:
|
|
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,v=void 0!==t?null!==(f=y.get(t))&&void 0!==f?f:null:void 0,O=(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:v,options:g,onChange:null!=c?O: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
|
+
`},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)};
|
|
1451
|
-
`},Zo=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
1451
|
+
`},Zo=(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:Jo.root,className:n,ref:o},i,{children:t}))}));Zo.displayName="SelectOptionIconContainer";const Xo=({pageSize:r,defaultPageSize:o,optionPageSizes:t,isDisabled:n=!1,onSet:i,className:a})=>{const{transNumber:l}=D("pageSizeSelect");return(0,e.jsx)(Ko,{className:a,value:r,defaultValue:o,variant:"minimal",optionAlignment:"right",isDisabled:n,onSet:i,children:t.map((r=>(0,e.jsx)(Wo,{value:r,label:l(r)},r)))})};Xo.displayName="PageSizeSelect";const et=(0,r.createContext)({displayedItems:[],resolvedPageProps:{isLoading:!1,isEmpty:!1,page:0,pageCount:1,pageSize:0,optionPageSizes:[],setPage:()=>null,setPageSize:()=>null}}),rt=et.Provider,ot={root:a.css`
|
|
1452
1452
|
inline-size: ${$(16)};
|
|
1453
|
-
`},tt=({className:o})=>{const{resolvedPageProps:{pageSize:t,optionPageSizes:n,setPageSize:
|
|
1453
|
+
`},tt=({className:o})=>{const{resolvedPageProps:{pageSize:t,optionPageSizes:n,setPageSize:i}}=(0,r.useContext)(et);return(0,e.jsx)(Xo,{css:ot.root,className:o,pageSize:t,onSet:i,defaultPageSize:n[0],optionPageSizes:n})};tt.displayName="PageSizeSelectAuto";const nt=({sortOrder:r,defaultSortOrder:o,iconType:t="number",isDisabled:n=!1,onSet:i,className:a})=>{const{trans:c}=D("sortOrderSelect");return(0,e.jsxs)(Ko,{className:a,value:r,defaultValue:o,variant:"minimal",optionAlignment:"right",isDisabled:n,onSet:i,children:[(0,e.jsxs)(Wo,{value:"ascending",label:c("ascending"),children:[(0,e.jsx)(Zo,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:"number"===t?s.faArrowDown19:s.faArrowDownAZ})}),c("ascending")]}),(0,e.jsxs)(Wo,{value:"descending",label:c("descending"),children:[(0,e.jsx)(Zo,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:"number"===t?s.faArrowDown91:s.faArrowDownZA})}),c("descending")]})]})};nt.displayName="SortOrderSelect";const it=require("@radix-ui/react-switch");const at={root:e=>a.css`
|
|
1454
1454
|
&[data-qlib-error="false"] {
|
|
1455
1455
|
--qlib-border-color: ${x("gray",5)};
|
|
1456
1456
|
--qlib-focus-color: ${j(x(e,5),.6)};
|
|
@@ -1501,7 +1501,7 @@
|
|
|
1501
1501
|
outline: solid ${q(2)} var(--qlib-focus-color);
|
|
1502
1502
|
outline-offset: ${q(1)};
|
|
1503
1503
|
}
|
|
1504
|
-
`,thumb:
|
|
1504
|
+
`,thumb:a.css`
|
|
1505
1505
|
inline-size: calc(var(--qlib-block-size) - ${q(4)});
|
|
1506
1506
|
block-size: calc(var(--qlib-block-size) - ${q(4)});
|
|
1507
1507
|
inset-block-start: ${q(2)};
|
|
@@ -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,
|
|
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,v=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:v,onCheckedChange:p,"data-qlib-disabled":v,"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)};
|
|
@@ -1528,16 +1528,16 @@
|
|
|
1528
1528
|
white-space: nowrap;
|
|
1529
1529
|
line-height: 1;
|
|
1530
1530
|
display: inline-block;
|
|
1531
|
-
`,ct=(
|
|
1531
|
+
`,ct=(a.css`
|
|
1532
1532
|
margin-inline-end: ${$("gap")};
|
|
1533
|
-
`,(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",children:n,className:
|
|
1533
|
+
`,(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",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,["scheme","children","className"]);return(0,e.jsx)("span",Object.assign({css:st(t),className:i,ref:o},a,{children:n}))})));ct.displayName="Tag";const dt={root:a.css`
|
|
1534
1534
|
margin-inline-end: ${$("gap")};
|
|
1535
|
-
`},bt=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
1535
|
+
`},bt=(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:dt.root,className:n,ref:o},i,{children:t}))}));bt.displayName="TagIconContainer";const pt={root:a.css`
|
|
1536
1536
|
column-gap: ${$(2)};
|
|
1537
1537
|
row-gap: ${$(1)};
|
|
1538
1538
|
display: inline-flex;
|
|
1539
1539
|
flex-wrap: wrap;
|
|
1540
|
-
`},ut=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
1540
|
+
`},ut=(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:pt.root,className:n,ref:o},i,{children:t}))}));ut.displayName="TagList";const ft={root:a.css`
|
|
1541
1541
|
&[data-qlib-error="false"] {
|
|
1542
1542
|
--qlib-border-color: ${x("gray",3)};
|
|
1543
1543
|
--qlib-focus-border-color: ${x("primary",5)};
|
|
@@ -1560,13 +1560,13 @@
|
|
|
1560
1560
|
border-color: var(--qlib-focus-border-color);
|
|
1561
1561
|
outline: solid ${q(1)} var(--qlib-focus-border-color);
|
|
1562
1562
|
}
|
|
1563
|
-
`,inputContainer:
|
|
1563
|
+
`,inputContainer:a.css`
|
|
1564
1564
|
column-gap: ${$("gap")};
|
|
1565
1565
|
display: flex;
|
|
1566
1566
|
align-items: center;
|
|
1567
1567
|
flex-grow: 1;
|
|
1568
1568
|
flex-shrink: 1;
|
|
1569
|
-
`,input:
|
|
1569
|
+
`,input:a.css`
|
|
1570
1570
|
min-block-size: ${$(6)};
|
|
1571
1571
|
padding-block: ${$(1)};
|
|
1572
1572
|
padding-inline: ${$(2)};
|
|
@@ -1595,7 +1595,7 @@
|
|
|
1595
1595
|
&:disabled {
|
|
1596
1596
|
cursor: inherit;
|
|
1597
1597
|
}
|
|
1598
|
-
`},mt=(0,r.forwardRef)(((o,t)=>{var n,
|
|
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:v,className:O,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:O,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:v,"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;
|
|
@@ -1604,17 +1604,17 @@
|
|
|
1604
1604
|
opacity: 0;
|
|
1605
1605
|
clip: rect(0px, 0px, 0px, 0px);
|
|
1606
1606
|
clip-path: inset(50%);
|
|
1607
|
-
`},gt=(0,r.forwardRef)(((r,o)=>{var{as:t="span",children:n,className:
|
|
1607
|
+
`},gt=(0,r.forwardRef)(((r,o)=>{var{as:t="span",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"]);const l=t;return(0,e.jsx)(l,Object.assign({css:yt.root,className:i,ref:o},a,{children:n}))}));gt.displayName="VisuallyHidden";const ht={root:a.css`
|
|
1608
1608
|
block-size: ${$(4.5)};
|
|
1609
1609
|
margin-inline-start: calc(${$(3)} + ${q(1)});
|
|
1610
1610
|
column-gap: ${$(3)};
|
|
1611
1611
|
display: flex;
|
|
1612
1612
|
align-items: center;
|
|
1613
|
-
`},vt=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
1614
|
-
`,badge:
|
|
1613
|
+
`},vt=(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}))}));vt.displayName="BulkOperationContainer";const Ot={root:a.css`
|
|
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:
|
|
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:Ot.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:Ot.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)};
|
|
@@ -1637,7 +1637,7 @@
|
|
|
1637
1637
|
outline: solid ${q(2)} ${j(x("primary",5),.6)};
|
|
1638
1638
|
outline-offset: ${q(1)};
|
|
1639
1639
|
}
|
|
1640
|
-
`},qt=(0,r.forwardRef)(((o,t)=>{var{isLabel:n=!1,href:
|
|
1640
|
+
`},qt=(0,r.forwardRef)(((o,t)=>{var{isLabel:n=!1,href:i,onClick:a,className:l,children:s}=o,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}(o,["isLabel","href","onClick","className","children"]);const[d,b]=(0,r.useState)(!1),[p,u]=(0,r.useState)(!1),f=n?"label":"article",m=(0,r.useMemo)((()=>({isLabel:n,href:i,onClick:a,setHovered:b,setFocusVisible:u})),[n,i,a,b,u]);return(0,e.jsx)(f,Object.assign({css:$t.root,className:l,ref:t,"data-qlib-hover":d,"data-qlib-focus-visible":p,"data-qlib-label":n,"data-qlib-clickable":null!=i||null!=a},c,{children:(0,e.jsx)(wt,{value:m,children:s})}))}));qt.displayName="Card";const kt={root:a.css`
|
|
1641
1641
|
inset-block-start: ${$(0)};
|
|
1642
1642
|
inset-inline-start: ${$(0)};
|
|
1643
1643
|
padding-inline: ${$(3)};
|
|
@@ -1651,7 +1651,7 @@
|
|
|
1651
1651
|
justify-content: flex-start;
|
|
1652
1652
|
box-sizing: border-box;
|
|
1653
1653
|
position: absolute;
|
|
1654
|
-
`},Nt=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,
|
|
1654
|
+
`},Nt=(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"]);return(0,e.jsx)("div",Object.assign({css:kt.root,className:t,ref:o},i,{children:n}))}));Nt.displayName="CardHeadnote";const Pt={root:a.css`
|
|
1655
1655
|
padding-block: ${$(3)};
|
|
1656
1656
|
padding-inline: ${$(3)};
|
|
1657
1657
|
row-gap: ${$(2.5)};
|
|
@@ -1667,7 +1667,7 @@
|
|
|
1667
1667
|
&[data-qlib-has-headnote="true"] {
|
|
1668
1668
|
padding-block-start: ${$(7.5)};
|
|
1669
1669
|
}
|
|
1670
|
-
`},St=(0,r.forwardRef)(((o,t)=>{var{className:n,children:
|
|
1670
|
+
`},St=(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{href:l,onClick:s,setHovered:c,setFocusVisible:d}=(0,r.useContext)(jt),b=(0,r.useMemo)((()=>Se(i).some((e=>e.type===Nt))),[i]),p=(0,r.useCallback)((()=>{c(!0)}),[c]),u=(0,r.useCallback)((()=>{c(!1)}),[c]),f=(0,r.useCallback)((e=>{if(null!=l||null!=s){const r=e.target.matches(":focus-visible");d(r)}}),[l,s,d]),m=(0,r.useCallback)((e=>{d(!1)}),[d]);return null!=l?(0,e.jsx)("a",Object.assign({className:n,css:Pt.root,href:l,ref:t,onMouseEnter:p,onMouseLeave:u,onFocus:f,onBlur:m,onClick:s,"data-qlib-clickable":!0,"data-qlib-has-headnote":b},a,{children:i})):null!=s?(0,e.jsx)("button",Object.assign({className:n,css:Pt.root,ref:t,onMouseEnter:p,onMouseLeave:u,onFocus:f,onBlur:m,onClick:s,"data-qlib-clickable":null!=s,"data-qlib-has-headnote":b},a,{children:i})):(0,e.jsx)("div",Object.assign({className:n,css:Pt.root,ref:t,onMouseEnter:p,onMouseLeave:u,"data-qlib-clickable":null!=s,"data-qlib-has-headnote":b},a,{children:i}))}));St.displayName="CardBody";const Ct={root:a.css`
|
|
1671
1671
|
&[data-qlib-variant="primary"] {
|
|
1672
1672
|
--qlib-color: ${x("white")};
|
|
1673
1673
|
--qlib-border-color: ${x("primary",6)};
|
|
@@ -1682,11 +1682,46 @@
|
|
|
1682
1682
|
--qlib-hover-background-color: ${x("gray",0)};
|
|
1683
1683
|
--qlib-border-style: solid;
|
|
1684
1684
|
}
|
|
1685
|
+
&:first-of-type {
|
|
1686
|
+
--qlib-top-right-border-radius: var(--qlib-right-border-radius);
|
|
1687
|
+
}
|
|
1688
|
+
&:not(:first-of-type) {
|
|
1689
|
+
--qlib-top-right-border-radius: ${$(0)};
|
|
1690
|
+
}
|
|
1691
|
+
&:last-of-type {
|
|
1692
|
+
--qlib-bottom-border-width: ${q(1)};
|
|
1693
|
+
&[data-qlib-stretched="true"] {
|
|
1694
|
+
--qlib-bottom-right-border-radius: var(--qlib-right-border-radius);
|
|
1695
|
+
flex: 1 1 auto;
|
|
1696
|
+
}
|
|
1697
|
+
&[data-qlib-stretched="false"] {
|
|
1698
|
+
--qlib-bottom-right-border-radius: ${$(0)};
|
|
1699
|
+
flex: 0 0 auto;
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
&:not(:last-of-type) {
|
|
1703
|
+
--qlib-bottom-right-border-radius: ${$(0)};
|
|
1704
|
+
--qlib-bottom-border-width: ${q(0)};
|
|
1705
|
+
flex: 0 0 auto;
|
|
1706
|
+
}
|
|
1707
|
+
&[data-qlib-stretched="true"] {
|
|
1708
|
+
--qlib-bottom-left-border-radius: ${$(0)};
|
|
1709
|
+
}
|
|
1710
|
+
&[data-qlib-stretched="false"] {
|
|
1711
|
+
--qlib-bottom-left-border-radius: ${$(1)};
|
|
1712
|
+
}
|
|
1685
1713
|
inline-size: ${$(8)};
|
|
1714
|
+
padding-block: ${$(2)};
|
|
1686
1715
|
font-size: ${$(4)};
|
|
1687
1716
|
color: var(--qlib-color);
|
|
1688
1717
|
background-color: var(--qlib-background-color);
|
|
1689
1718
|
border: solid ${q(1)} var(--qlib-border-color);
|
|
1719
|
+
border-block-end-width: var(--qlib-bottom-border-width);
|
|
1720
|
+
border-inline-end-width: var(--qlib-right-border-width) !important;
|
|
1721
|
+
border-start-end-radius: var(--qlib-top-right-border-radius);
|
|
1722
|
+
border-end-start-radius: var(--qlib-bottom-left-border-radius);
|
|
1723
|
+
border-end-end-radius: var(--qlib-bottom-right-border-radius);
|
|
1724
|
+
border-start-start-radius: ${$(0)};
|
|
1690
1725
|
transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
|
|
1691
1726
|
flex-grow: 0;
|
|
1692
1727
|
flex-shrink: 0;
|
|
@@ -1696,12 +1731,6 @@
|
|
|
1696
1731
|
justify-content: center;
|
|
1697
1732
|
box-sizing: border-box;
|
|
1698
1733
|
cursor: pointer;
|
|
1699
|
-
&:last-of-type {
|
|
1700
|
-
margin-inline-start: ${q(-1)};
|
|
1701
|
-
border-start-end-radius: ${$(1)};
|
|
1702
|
-
border-end-end-radius: ${$(1)};
|
|
1703
|
-
z-index: 1;
|
|
1704
|
-
}
|
|
1705
1734
|
&:hover:not(:disabled) {
|
|
1706
1735
|
background-color: var(--qlib-hover-background-color);
|
|
1707
1736
|
}
|
|
@@ -1713,7 +1742,7 @@
|
|
|
1713
1742
|
opacity: 0.5;
|
|
1714
1743
|
cursor: inherit;
|
|
1715
1744
|
}
|
|
1716
|
-
`},zt=(0,r.forwardRef)(((r,o)=>{var{label:t,variant:n="primary",type:
|
|
1745
|
+
`},zt=(0,r.forwardRef)(((r,o)=>{var{label:t,variant:n="primary",type:i="button",isStretched:a=!0,isDisabled:l=!1,onClick:s,onKeyDown:c,onKeyUp:d,onMouseDown:b,onPointerDown:p,children:u,className:f}=r,m=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","variant","type","isStretched","isDisabled","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","children","className"]);return(0,e.jsx)("button",Object.assign({className:f,css:Ct.root,type:i,disabled:l,onClick:s,onKeyDown:c,onKeyUp:d,onMouseDown:b,onPointerDown:p,ref:o,"aria-label":t,"data-qlib-variant":n,"data-qlib-stretched":a},m,{children:u}))}));zt.displayName="CardButton";const It={root:a.css`
|
|
1717
1746
|
margin-block: ${q(-1)};
|
|
1718
1747
|
margin-inline-end: ${q(-1)};
|
|
1719
1748
|
display: flex;
|
|
@@ -1722,7 +1751,19 @@
|
|
|
1722
1751
|
order: 3;
|
|
1723
1752
|
z-index: 0;
|
|
1724
1753
|
position: relative;
|
|
1725
|
-
`},Et=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,
|
|
1754
|
+
`},Et=(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"]);return(0,e.jsx)("div",Object.assign({className:t,css:It.root,ref:o},i,{children:n}))}));Et.displayName="CardButtonList";const Dt={root:a.css`
|
|
1755
|
+
display: flex;
|
|
1756
|
+
flex-direction: column;
|
|
1757
|
+
flex-shrink: 0;
|
|
1758
|
+
&:last-of-type {
|
|
1759
|
+
--qlib-right-border-width: ${q(1)};
|
|
1760
|
+
--qlib-right-border-radius: ${$(1)};
|
|
1761
|
+
}
|
|
1762
|
+
&:not(:last-of-type) {
|
|
1763
|
+
--qlib-right-border-width: ${q(0)};
|
|
1764
|
+
--qlib-right-border-radius: ${$(0)};
|
|
1765
|
+
}
|
|
1766
|
+
`},Mt=(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"]);return(0,e.jsx)("div",Object.assign({className:t,css:Dt.root,ref:o},i,{children:n}))}));Mt.displayName="CardButtonListColumn";const Rt=e=>{e.stopPropagation()};const Lt={root:a.css`
|
|
1726
1767
|
margin-inline-start: ${$(3)};
|
|
1727
1768
|
display: flex;
|
|
1728
1769
|
align-items: center;
|
|
@@ -1730,20 +1771,30 @@
|
|
|
1730
1771
|
flex-grow: 0;
|
|
1731
1772
|
flex-shrink: 0;
|
|
1732
1773
|
order: 1;
|
|
1733
|
-
`},
|
|
1774
|
+
`},Ft=(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{isLabel:l,setHovered:s}=(0,r.useContext)(jt),c=(0,r.useCallback)((()=>{s(!0)}),[s]),d=(0,r.useCallback)((()=>{s(!1)}),[s]);return(0,e.jsx)("label",Object.assign({className:n,css:Lt.root,onMouseEnter:l?c:void 0,onMouseLeave:l?d:void 0,onClick:Rt,ref:t},a,{children:i}))}));Ft.displayName="CardControlContainer";const Bt={root:a.css`
|
|
1775
|
+
padding-inline-start: ${$(3)};
|
|
1776
|
+
color: ${x("gray",5)};
|
|
1777
|
+
display: flex;
|
|
1778
|
+
align-items: center;
|
|
1779
|
+
justify-content: center;
|
|
1780
|
+
cursor: grab;
|
|
1781
|
+
flex-grow: 0;
|
|
1782
|
+
flex-shrink: 0;
|
|
1783
|
+
order: 0;
|
|
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`
|
|
1734
1785
|
font-size: ${$(4)};
|
|
1735
1786
|
font-weight: ${O("bold")};
|
|
1736
|
-
`},
|
|
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`
|
|
1737
1788
|
row-gap: ${$(3)};
|
|
1738
1789
|
display: flex;
|
|
1739
1790
|
flex-direction: column;
|
|
1740
|
-
`},
|
|
1791
|
+
`},Yt=(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"]);return(0,e.jsx)("div",Object.assign({css:Vt.root,className:t,ref:o},i,{children:n}))}));Yt.displayName="CardList";const Ut=e=>a.css`
|
|
1741
1792
|
row-gap: ${$(3)};
|
|
1742
1793
|
column-gap: ${$(3)};
|
|
1743
1794
|
display: grid;
|
|
1744
1795
|
grid-template-columns: repeat(${e}, 1fr);
|
|
1745
1796
|
align-items: flex-start;
|
|
1746
|
-
`,
|
|
1797
|
+
`,_t=(0,r.forwardRef)(((r,o)=>{var{columnCount:t=1,className:n,children: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,["columnCount","className","children"]);const l=Po(t);return(0,e.jsx)("div",Object.assign({css:Ut(l),className:n,ref:o},a,{children:i}))}));_t.displayName="CardListBody";const Gt={root:a.css`
|
|
1747
1798
|
block-size: ${$(24)};
|
|
1748
1799
|
row-gap: ${$(2)};
|
|
1749
1800
|
padding-inline: ${$(4)};
|
|
@@ -1755,22 +1806,22 @@
|
|
|
1755
1806
|
align-items: center;
|
|
1756
1807
|
justify-content: center;
|
|
1757
1808
|
grid-column: 1 / -1;
|
|
1758
|
-
`,icon:
|
|
1809
|
+
`,icon:a.css`
|
|
1759
1810
|
font-size: ${$(8)};
|
|
1760
|
-
`},
|
|
1761
|
-
`},
|
|
1811
|
+
`},Kt=(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("cardListEmpty");return(0,e.jsxs)("div",Object.assign({css:Gt.root,className:t,ref:o},i,{children:[(0,e.jsx)($r,{css:Gt.icon,name:"empty"}),(0,e.jsx)(ar,{as:"p",lineHeight:"normal",children:n||a("empty")})]}))}));Kt.displayName="CardListEmpty";const Qt={root:a.css`
|
|
1812
|
+
`},Wt=(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"]);return(0,e.jsx)("div",Object.assign({css:Qt.root,className:t,ref:o},i,{children:n}))}));Wt.displayName="CardListFooter";const Jt={root:a.css`
|
|
1762
1813
|
display: flex;
|
|
1763
1814
|
align-items: flex-end;
|
|
1764
1815
|
justify-content: space-between;
|
|
1765
|
-
`},
|
|
1816
|
+
`},Zt=(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"]);return(0,e.jsx)("div",Object.assign({css:Jt.root,className:t,ref:o},i,{children:n}))}));Zt.displayName="CardListHeader";const Xt={root:a.css`
|
|
1766
1817
|
column-gap: ${$(4)};
|
|
1767
1818
|
display: flex;
|
|
1768
1819
|
order: 1;
|
|
1769
|
-
`},
|
|
1820
|
+
`},en=(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"]);return(0,e.jsx)("div",Object.assign({css:Xt.root,className:t,ref:o},i,{children:n}))}));en.displayName="CardListHeaderLeft";const rn={root:a.css`
|
|
1770
1821
|
column-gap: ${$(3)};
|
|
1771
1822
|
display: flex;
|
|
1772
1823
|
order: 2;
|
|
1773
|
-
`},
|
|
1824
|
+
`},on=(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"]);return(0,e.jsx)("div",Object.assign({css:rn.root,className:t,ref:o},i,{children:n}))}));on.displayName="CardListHeaderRight";const tn={root:a.css`
|
|
1774
1825
|
block-size: ${$(24)};
|
|
1775
1826
|
row-gap: ${$(2)};
|
|
1776
1827
|
padding-inline: ${$(4)};
|
|
@@ -1782,9 +1833,9 @@
|
|
|
1782
1833
|
align-items: center;
|
|
1783
1834
|
justify-content: center;
|
|
1784
1835
|
grid-column: 1 / -1;
|
|
1785
|
-
`,icon:
|
|
1836
|
+
`,icon:a.css`
|
|
1786
1837
|
font-size: ${$(8)};
|
|
1787
|
-
`},
|
|
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,v=c?t:f,O=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:v,optionPageSizes:i,setPageSize:O,setPage:x})),[j,w,g,h,v,i,x,O])]})(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`
|
|
1788
1839
|
inline-size: 100%;
|
|
1789
1840
|
padding-block: ${$(8)};
|
|
1790
1841
|
border-block-end: solid ${q(1)} ${x("gray",1)};
|
|
@@ -1795,11 +1846,11 @@
|
|
|
1795
1846
|
position: relative;
|
|
1796
1847
|
flex: 0 0 auto;
|
|
1797
1848
|
z-index: 0;
|
|
1798
|
-
`},
|
|
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`
|
|
1799
1850
|
font-size: ${$(8)};
|
|
1800
1851
|
font-weight: ${O("bold")};
|
|
1801
1852
|
color: ${x("primary",7)};
|
|
1802
|
-
`},
|
|
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`
|
|
1803
1854
|
&[data-qlib-digit="3"] {
|
|
1804
1855
|
--qlib-inline-size: ${$(11)};
|
|
1805
1856
|
--qlib-transform-scale: 0.75;
|
|
@@ -1815,12 +1866,12 @@
|
|
|
1815
1866
|
border: solid 1px ${x("gray",1)};
|
|
1816
1867
|
display: flex;
|
|
1817
1868
|
align-items: center;
|
|
1818
|
-
`,icon:
|
|
1869
|
+
`,icon:a.css`
|
|
1819
1870
|
font-size: ${$(3)};
|
|
1820
1871
|
color: ${x("gray",5)};
|
|
1821
1872
|
flex-grow: 0;
|
|
1822
1873
|
flex-shrink: 0;
|
|
1823
|
-
`,count:
|
|
1874
|
+
`,count:a.css`
|
|
1824
1875
|
font-size: ${$(4)};
|
|
1825
1876
|
color: ${x("gray",5)};
|
|
1826
1877
|
display: flex;
|
|
@@ -1832,7 +1883,7 @@
|
|
|
1832
1883
|
transform: scale(var(--qlib-transform-scale), 1);
|
|
1833
1884
|
transform-origin: right center;
|
|
1834
1885
|
}
|
|
1835
|
-
`},
|
|
1886
|
+
`},fn=(0,r.forwardRef)(((r,o)=>{var{count:t,digitSize:n=3,iconNode:i,className:a,children: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,["count","digitSize","iconNode","className","children"]);const{transNumber:c}=D("countBadge"),d=Math.pow(10,n);return(0,e.jsxs)("div",Object.assign({css:un.root,className:a,ref:o,"data-qlib-digit":n},s,{children:[(0,e.jsx)("span",{css:un.icon,children:i}),(0,e.jsx)("span",{css:un.count,"data-qlib-max":null!=t&&t>=d,children:null!=t?t<d?c(t):c(d-1)+"+":"?"})]}))}));fn.displayName="CountIndicator";const mn=(0,r.createContext)({scheme:"primary"}),yn=mn.Provider,gn={overlay:a.css`
|
|
1836
1887
|
padding-block: ${$(6)};
|
|
1837
1888
|
padding-inline: ${$(6)};
|
|
1838
1889
|
display: flex;
|
|
@@ -1840,7 +1891,7 @@
|
|
|
1840
1891
|
justify-content: center;
|
|
1841
1892
|
box-sizing: border-box;
|
|
1842
1893
|
z-index: 1000;
|
|
1843
|
-
`,overlaySmartphone:
|
|
1894
|
+
`,overlaySmartphone:a.css`
|
|
1844
1895
|
padding-block: ${$(6)};
|
|
1845
1896
|
padding-inline: ${$(6)};
|
|
1846
1897
|
display: flex;
|
|
@@ -1848,7 +1899,7 @@
|
|
|
1848
1899
|
justify-content: center;
|
|
1849
1900
|
box-sizing: border-box;
|
|
1850
1901
|
z-index: 1000;
|
|
1851
|
-
`,root:
|
|
1902
|
+
`,root:a.css`
|
|
1852
1903
|
&[data-qlib-size="small"] {
|
|
1853
1904
|
--qlib-max-width: ${$(100)};
|
|
1854
1905
|
}
|
|
@@ -1878,8 +1929,8 @@
|
|
|
1878
1929
|
&.ReactModal__Content--before-close {
|
|
1879
1930
|
transform: translate(${$(0)}, ${$(2)});
|
|
1880
1931
|
}
|
|
1881
|
-
`},
|
|
1882
|
-
`},
|
|
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 vn={root:a.css`
|
|
1933
|
+
`},On=(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:vn.root,className:n,ref:o},i,{children:t}))}));On.displayName="DialogBody";const xn=Ge;const jn={root:a.css`
|
|
1883
1934
|
inset-block-start: ${$(4)};
|
|
1884
1935
|
inset-inline-end: ${$(4)};
|
|
1885
1936
|
block-size: ${$(6)};
|
|
@@ -1899,7 +1950,7 @@
|
|
|
1899
1950
|
&:focus-visible {
|
|
1900
1951
|
outline: solid ${q(2)} ${j(x("primary",5),.6)};
|
|
1901
1952
|
}
|
|
1902
|
-
`},
|
|
1953
|
+
`},wn=(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("dialogCloseButton"),{onClose:c}=(0,r.useContext)(mn);return(0,e.jsx)("button",Object.assign({css:jn.root,className:n,type:"button",onClick:c,ref:t,"aria-label":a("close")},i,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes})}))}));wn.displayName="DialogCloseButton";const $n={root:a.css`
|
|
1903
1954
|
margin-block-start: ${$(6)};
|
|
1904
1955
|
margin-block-end: ${$(-6)};
|
|
1905
1956
|
margin-inline: calc(-1 * var(--qlib-dialog-padding-inline));
|
|
@@ -1912,24 +1963,24 @@
|
|
|
1912
1963
|
flex-direction: row;
|
|
1913
1964
|
align-items: center;
|
|
1914
1965
|
justify-content: center;
|
|
1915
|
-
`},
|
|
1966
|
+
`},qn=(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:$n.root,className:n,ref:o},i,{children:t}))}));qn.displayName="DialogFooter";const kn={root:a.css`
|
|
1916
1967
|
margin-block-end: ${$(6)};
|
|
1917
1968
|
display: flex;
|
|
1918
1969
|
align-items: center;
|
|
1919
1970
|
justify-content: center;
|
|
1920
|
-
`},
|
|
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`
|
|
1921
1972
|
font-size: ${$(6)};
|
|
1922
1973
|
font-weight: ${O("bold")};
|
|
1923
1974
|
letter-spacing: 0.1em;
|
|
1924
1975
|
text-indent: 0.1em;
|
|
1925
1976
|
color: ${x(e,7)};
|
|
1926
|
-
`,
|
|
1977
|
+
`,Sn=(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,{scheme:c}=(0,r.useContext)(mn);return(0,e.jsx)(s,Object.assign({css:Pn(c),className:a,ref:t},l,{children:i}))}));Sn.displayName="DialogTitle";const Cn=(0,r.createContext)({scheme:"primary"}),zn=Cn.Provider,In={overlay:a.css`
|
|
1927
1978
|
display: flex;
|
|
1928
1979
|
align-items: center;
|
|
1929
1980
|
justify-content: end;
|
|
1930
1981
|
box-sizing: border-box;
|
|
1931
1982
|
z-index: 1000;
|
|
1932
|
-
`,root:
|
|
1983
|
+
`,root:a.css`
|
|
1933
1984
|
background-color: ${x("background")};
|
|
1934
1985
|
box-shadow: ${k(j(x("black"),.2),2)};
|
|
1935
1986
|
position: relative;
|
|
@@ -1938,7 +1989,7 @@
|
|
|
1938
1989
|
display: flex;
|
|
1939
1990
|
flex-direction: column;
|
|
1940
1991
|
overflow: hidden;
|
|
1941
|
-
`,rootDesktop:
|
|
1992
|
+
`,rootDesktop:a.css`
|
|
1942
1993
|
--qlib-padding-inline: ${$(10)};
|
|
1943
1994
|
width: 90%;
|
|
1944
1995
|
height: 100%;
|
|
@@ -1952,7 +2003,7 @@
|
|
|
1952
2003
|
&.ReactModal__Content--before-close {
|
|
1953
2004
|
transform: translate(100%, 0%);
|
|
1954
2005
|
}
|
|
1955
|
-
`,rootSmartphone:
|
|
2006
|
+
`,rootSmartphone:a.css`
|
|
1956
2007
|
--qlib-padding-inline: ${$(6)};
|
|
1957
2008
|
width: 100%;
|
|
1958
2009
|
height: 95%;
|
|
@@ -1966,17 +2017,17 @@
|
|
|
1966
2017
|
&.ReactModal__Content--before-close {
|
|
1967
2018
|
transform: translate(0%, 100%);
|
|
1968
2019
|
}
|
|
1969
|
-
`},
|
|
2020
|
+
`},En=({label:o,scheme:t="primary",isOpen:n,isForm:i=!0,onClose:a,children:l})=>{const s=i?"form":"div",c=No(),d=(0,r.useMemo)((()=>({scheme:t,onClose:a})),[t,a]),b=(0,r.useCallback)((e=>{e.preventDefault()}),[]);return(0,e.jsx)(_r,{css:In.overlay,isOpen:n,label:o,onClose:a,children:(0,e.jsx)(s,{css:[In.root,c?In.rootSmartphone:In.rootDesktop],onSubmit:i?b:void 0,children:(0,e.jsx)(zn,{value:d,children:l})})})};En.displayName="Drawer";const Dn={root:a.css`
|
|
1970
2021
|
padding-inline: var(--qlib-padding-inline);
|
|
1971
2022
|
padding-block: ${$(8)};
|
|
1972
2023
|
flex-grow: 1;
|
|
1973
2024
|
flex-shrink: 1;
|
|
1974
2025
|
overflow-y: auto;
|
|
1975
|
-
`},
|
|
2026
|
+
`},Mn=(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:Dn.root,className:n,ref:o},i,{children:t}))}));Mn.displayName="DrawerBody";const Rn=Ge;const Ln=e=>a.css`
|
|
1976
2027
|
font-size: ${$(4)};
|
|
1977
2028
|
letter-spacing: 0.05em;
|
|
1978
2029
|
color: ${x(e,7)};
|
|
1979
|
-
`,
|
|
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`
|
|
1980
2031
|
padding-block: ${$(4)};
|
|
1981
2032
|
padding-inline: var(--qlib-padding-inline);
|
|
1982
2033
|
column-gap: ${$(8)};
|
|
@@ -1986,16 +2037,16 @@
|
|
|
1986
2037
|
align-items: center;
|
|
1987
2038
|
flex-grow: 0;
|
|
1988
2039
|
flex-shrink: 0;
|
|
1989
|
-
`},
|
|
2040
|
+
`},An=(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:Bn.root,className:n,ref:o},i,{children:t}))}));An.displayName="DrawerHeader";const Hn={root:a.css`
|
|
1990
2041
|
row-gap: ${$(2)};
|
|
1991
2042
|
display: flex;
|
|
1992
2043
|
flex-direction: column;
|
|
1993
2044
|
flex-grow: 1;
|
|
1994
2045
|
flex-shrink: 1;
|
|
1995
|
-
`},
|
|
2046
|
+
`},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="DrawerHeaderLeft";const Vn={root:a.css`
|
|
1996
2047
|
flex-grow: 0;
|
|
1997
2048
|
flex-shrink: 0;
|
|
1998
|
-
`},
|
|
2049
|
+
`},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="DrawerHeaderRight";const Un=e=>a.css`
|
|
1999
2050
|
font-size: ${$(8)};
|
|
2000
2051
|
font-weight: ${O("bold")};
|
|
2001
2052
|
letter-spacing: 0.1em;
|
|
@@ -2003,7 +2054,7 @@
|
|
|
2003
2054
|
&[data-qlib-smartphone="true"] {
|
|
2004
2055
|
font-size: ${$(8)};
|
|
2005
2056
|
}
|
|
2006
|
-
`,
|
|
2057
|
+
`,_n=(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:Un(d),className:a,ref:t,"data-qlib-smartphone":c},l,{children:i}))}));_n.displayName="DrawerTitle";const Gn=(0,r.createContext)(void 0),Kn=Gn.Provider;const Qn={root:a.css`
|
|
2007
2058
|
&[data-qlib-size="small"] {
|
|
2008
2059
|
--qlib-font-size: ${$(3)};
|
|
2009
2060
|
}
|
|
@@ -2012,15 +2063,15 @@
|
|
|
2012
2063
|
}
|
|
2013
2064
|
font-size: var(--qlib-font-size);
|
|
2014
2065
|
color: ${x("gray",5)};
|
|
2015
|
-
`,icon:
|
|
2066
|
+
`,icon:a.css`
|
|
2016
2067
|
margin-inline-end: ${$("gap")};
|
|
2017
2068
|
display: inline;
|
|
2018
|
-
`},
|
|
2069
|
+
`},Wn=(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)(Gn);return(0,e.jsx)(Re,Object.assign({css:Qn.root,className:a,ref:t,"data-qlib-size":null!==(n=null==c?void 0:c.size)&&void 0!==n?n:i},s,{children:l}))}));Wn.displayName="Footnote";const Jn={root:a.css`
|
|
2019
2070
|
margin-inline-end: ${$("gap")};
|
|
2020
2071
|
display: inline;
|
|
2021
2072
|
flex-grow: 0;
|
|
2022
2073
|
flex-shrink: 0;
|
|
2023
|
-
`},
|
|
2074
|
+
`},Zn=(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:Jn.root,className:n,ref:o},i,{children:t}))}));Zn.displayName="FootnoteIconContainer";const Xn={root:a.css`
|
|
2024
2075
|
&[data-qlib-size="small"] {
|
|
2025
2076
|
--qlib-row-gap: ${$(1.5)};
|
|
2026
2077
|
}
|
|
@@ -2030,7 +2081,7 @@
|
|
|
2030
2081
|
row-gap: var(--qlib-row-gap);
|
|
2031
2082
|
display: flex;
|
|
2032
2083
|
flex-direction: column;
|
|
2033
|
-
`},
|
|
2084
|
+
`},ei=(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:Xn.root,className:i,ref:t,"data-qlib-size":n},l,{children:(0,e.jsx)(Kn,{value:(0,r.useMemo)((()=>({size:n})),[n]),children:a})}))}));ei.displayName="FootnoteList";const ri={root:a.css`
|
|
2034
2085
|
&[data-qlib-size="small"] {
|
|
2035
2086
|
--qlib-column-gap: ${$(3)};
|
|
2036
2087
|
}
|
|
@@ -2039,31 +2090,31 @@
|
|
|
2039
2090
|
}
|
|
2040
2091
|
column-gap: var(--qlib-column-gap);
|
|
2041
2092
|
display: flex;
|
|
2042
|
-
`},
|
|
2093
|
+
`},oi=(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)(Gn);return(0,e.jsx)("div",Object.assign({css:ri.root,className:i,ref:t,"data-qlib-size":null!==(n=null==s?void 0:s.size)&&void 0!==n?n:"small"},l,{children:a}))}));oi.displayName="FootnoteListRow";const ti=(0,r.createContext)({orientation:"horizontal"}),ni=ti.Provider;const ii={rootHorizontal:a.css`
|
|
2043
2094
|
display: inline-flex;
|
|
2044
2095
|
align-items: baseline;
|
|
2045
|
-
`,rootVertical:
|
|
2096
|
+
`,rootVertical:a.css`
|
|
2046
2097
|
display: inline-flex;
|
|
2047
2098
|
flex-direction: column;
|
|
2048
|
-
`},
|
|
2099
|
+
`},ai=(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?ii.rootHorizontal:ii.rootVertical,className:i,ref:t},l,{children:(0,e.jsx)(ni,{value:s,children:a})}))}));const li={rootHorizontal:a.css`
|
|
2049
2100
|
font-size: 80%;
|
|
2050
2101
|
::before {
|
|
2051
2102
|
margin-inline: 0.25em;
|
|
2052
2103
|
content: "/";
|
|
2053
2104
|
}
|
|
2054
|
-
`,rootVertical:
|
|
2105
|
+
`,rootVertical:a.css`
|
|
2055
2106
|
padding-inline: 0.2em;
|
|
2056
2107
|
font-size: 80%;
|
|
2057
2108
|
text-align: center;
|
|
2058
|
-
`},
|
|
2059
|
-
`,rootVertical:
|
|
2109
|
+
`},si=(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)(ti);return(0,e.jsx)("span",Object.assign({css:"horizontal"===s?li.rootHorizontal:li.rootVertical,className:n,ref:t},a,{children:"number"==typeof i?l(i):i}))}));si.displayName="FractionViewDenominator";const ci={rootHorizontal:a.css`
|
|
2110
|
+
`,rootVertical:a.css`
|
|
2060
2111
|
padding-inline: 0.2em;
|
|
2061
2112
|
padding-block-end: 0.1em;
|
|
2062
2113
|
margin-block-end: 0.2em;
|
|
2063
2114
|
box-sizing: border-box;
|
|
2064
2115
|
text-align: center;
|
|
2065
2116
|
border-bottom: solid ${q(1)} currentcolor;
|
|
2066
|
-
`},
|
|
2117
|
+
`},di=(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)(ti);return(0,e.jsx)("span",Object.assign({css:"horizontal"===s?ci.rootHorizontal:ci.rootVertical,className:n,ref:t},a,{children:"number"==typeof i?l(i):i}))}));di.displayName="FractionViewNumerator";const bi={root:a.css`
|
|
2067
2118
|
inline-size: 100%;
|
|
2068
2119
|
block-size: ${$(16)};
|
|
2069
2120
|
padding-inline: ${$(10)};
|
|
@@ -2078,14 +2129,14 @@
|
|
|
2078
2129
|
&[data-smartphone="true"] {
|
|
2079
2130
|
padding-inline: ${$(6)};
|
|
2080
2131
|
}
|
|
2081
|
-
`},
|
|
2132
|
+
`},pi=(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:bi.root,className:n,ref:o,"data-smartphone":a},i,{children:t}))}));pi.displayName="Sidebar";const ui={root:a.css`
|
|
2082
2133
|
align-self: center;
|
|
2083
2134
|
flex-grow: 0;
|
|
2084
2135
|
flex-shrink: 0;
|
|
2085
|
-
`},
|
|
2136
|
+
`},fi=(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:ui.root,className:n,ref:o},i,{children:t}))}));fi.displayName="HeaderLeft";const mi={root:a.css`
|
|
2086
2137
|
column-gap: ${$(4)};
|
|
2087
2138
|
display: flex;
|
|
2088
|
-
`},
|
|
2139
|
+
`},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"]);return(0,e.jsx)("div",Object.assign({css:mi.root,className:n,ref:o},i,{children:t}))}));yi.displayName="HeaderMenu";const gi=e=>a.css`
|
|
2089
2140
|
--qlib-highlight-color: transparent;
|
|
2090
2141
|
color: ${x("gray",5)};
|
|
2091
2142
|
cursor: pointer;
|
|
@@ -2110,13 +2161,13 @@
|
|
|
2110
2161
|
position: absolute;
|
|
2111
2162
|
content: "";
|
|
2112
2163
|
}
|
|
2113
|
-
`,
|
|
2164
|
+
`,hi=(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:gi(t),href:n,ref:o,"data-active":i},s,{children:a}))}));hi.displayName="HeaderMenuItem";const vi={root:a.css`
|
|
2114
2165
|
margin-inline-end: ${$("gap")};
|
|
2115
2166
|
color: var(--qlib-icon-color);
|
|
2116
2167
|
display: inline;
|
|
2117
2168
|
flex-grow: 0;
|
|
2118
2169
|
flex-shrink: 0;
|
|
2119
|
-
`},
|
|
2170
|
+
`},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:vi.root,className:n,ref:o},i,{children:t}))}));Oi.displayName="HeaderMenuItemIconContainer";const xi=(0,r.createContext)({setOpen:()=>null,listRef:{current:[]},activeIndex:null,getItemProps:()=>({})}),ji=xi.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 $i=e=>a.css`
|
|
2120
2171
|
--qlib-icon-color: ${x(null!=e?e:"gray",5)};
|
|
2121
2172
|
padding-block: ${$(2)};
|
|
2122
2173
|
padding-inline: ${$(2)};
|
|
@@ -2133,10 +2184,10 @@
|
|
|
2133
2184
|
opacity: 0.5;
|
|
2134
2185
|
cursor: inherit;
|
|
2135
2186
|
}
|
|
2136
|
-
`,
|
|
2187
|
+
`,qi=(a.css`
|
|
2137
2188
|
margin-inline-end: ${$("gap")};
|
|
2138
2189
|
color: var(--qlib-icon-color);
|
|
2139
|
-
`,(0,r.forwardRef)(((o,t)=>{var{scheme:n=null,isDisabled:
|
|
2190
|
+
`,(0,r.forwardRef)(((o,t)=>{var{scheme:n=null,isDisabled:i=!1,onClick:a,children:l,className:s}=o;const c=wi(o,["scheme","isDisabled","onClick","children","className"]),{index:d}=c,b=wi(c,["index"]),{setOpen:p,listRef:u,activeIndex:f,getItemProps:m}=(0,r.useContext)(xi),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:$i(n),className:s,ref:y},m({tabIndex:f===d?0:-1,onClick:g,disabled:i}),b,{children:l}))})));qi.displayName="MenuItem";const ki={root:a.css`
|
|
2140
2191
|
inline-size: ${$(48)};
|
|
2141
2192
|
max-block-size: ${$(60)};
|
|
2142
2193
|
border-radius: ${$(1)};
|
|
@@ -2152,20 +2203,20 @@
|
|
|
2152
2203
|
&[data-qlib-status="open"] {
|
|
2153
2204
|
opacity: 1;
|
|
2154
2205
|
}
|
|
2155
|
-
`,inner:
|
|
2206
|
+
`,inner:a.css`
|
|
2156
2207
|
display: flex;
|
|
2157
2208
|
flex-direction: column;
|
|
2158
|
-
`},
|
|
2209
|
+
`},Ni=(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:ki.root,className:s,style:l,ref:o,"data-qlib-status":i},d,{children:(0,e.jsx)("div",{css:ki.inner,children:c})}))})})})),Pi=({trigger:o,placement:t="bottom-start",className:n,children:i})=>{const[a,l]=(0,r.useState)(!1),s=(0,r.useRef)([]),[c,d]=(0,r.useState)(null),{refs:b,floatingStyles:p,context:u}=(0,er.useFloating)({open:a,onOpenChange:l,placement:t,middleware:[(0,er.offset)(2)]}),{isMounted:f,status:m}=(0,er.useTransitionStatus)(u,{duration:200}),y=(0,er.useClick)(u),g=(0,er.useDismiss)(u),h=(0,er.useListNavigation)(u,{listRef:s,activeIndex:c,onNavigate:d}),v=(0,er.useRole)(u,{role:"menu"}),{getReferenceProps:O,getFloatingProps:x,getItemProps:j}=(0,er.useInteractions)([y,g,h,v]),w=(0,r.useMemo)((()=>({setOpen:l,listRef:s,activeIndex:c,getItemProps:j})),[l,s,c,j]);return(0,e.jsxs)(e.Fragment,{children:[null!=o&&(0,r.cloneElement)(o,Object.assign({ref:b.setReference},O())),(0,e.jsx)(Ni,Object.assign({className:n,isOpen:a,isMounted:f,status:m,context:u,style:p,ref:b.setFloating},x(),{children:(0,e.jsx)(ji,{value:w,children:Si(i)})}))]})},Si=e=>{let o=-1;return r.Children.map(e,(e=>(0,Pe.isElement)(e)?e.type===qi?(o++,(0,r.cloneElement)(e,{index:o})):e:void 0))};const Ci={root:a.css`
|
|
2159
2210
|
margin-inline-end: ${$("gap")};
|
|
2160
2211
|
color: var(--qlib-icon-color);
|
|
2161
2212
|
display: inline;
|
|
2162
2213
|
flex-grow: 0;
|
|
2163
2214
|
flex-shrink: 0;
|
|
2164
|
-
`},
|
|
2215
|
+
`},zi=(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:Ci.root,className:n,ref:o},i,{children:t}))}));zi.displayName="MenuItemIconContainer";const Ii={root:a.css`
|
|
2165
2216
|
inline-size: 100%;
|
|
2166
2217
|
margin-block: ${$(1)};
|
|
2167
2218
|
border-block-start: solid ${q(1)} ${x("gray",1)};
|
|
2168
|
-
`},
|
|
2219
|
+
`},Ei=(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:Ii.root,className:i,ref:o,role:"separator"},a))}));Ei.displayName="MenuDivider";const Di={root:a.css`
|
|
2169
2220
|
column-gap: ${$(4)};
|
|
2170
2221
|
display: flex;
|
|
2171
2222
|
align-items: center;
|
|
@@ -2173,21 +2224,21 @@
|
|
|
2173
2224
|
position: relative;
|
|
2174
2225
|
pointer-events: all;
|
|
2175
2226
|
transition: opacity 0.2s ease;
|
|
2176
|
-
`,button:
|
|
2227
|
+
`,button:a.css`
|
|
2177
2228
|
column-gap: ${$(2)};
|
|
2178
2229
|
display: flex;
|
|
2179
2230
|
flex-grow: 0;
|
|
2180
2231
|
flex-shrink: 0;
|
|
2181
|
-
`,center:
|
|
2232
|
+
`,center:a.css`
|
|
2182
2233
|
color: ${x("gray",5)};
|
|
2183
2234
|
display: flex;
|
|
2184
2235
|
align-items: baseline;
|
|
2185
2236
|
justify-content: center;
|
|
2186
2237
|
flex-grow: 1;
|
|
2187
2238
|
flex-shrink: 1;
|
|
2188
|
-
`,small:
|
|
2239
|
+
`,small:a.css`
|
|
2189
2240
|
font-size: 80%;
|
|
2190
|
-
`},
|
|
2241
|
+
`},Mi=(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:Di.root,className:l,ref:t,"aria-label":c("label")},s,{children:[(0,e.jsxs)("div",{css:Di.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:Di.center,children:(0,e.jsxs)(ai,{orientation:"horizontal",children:[(0,e.jsx)(di,{children:d(n+1)}),(0,e.jsx)(si,{children:d(i)})]})}),(0,e.jsxs)("div",{css:Di.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"})})]})]}))}));Mi.displayName="Pagination";const Ri=(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)(Mi,Object.assign({className:n,page:s,pageCount:c,setPage:d,ref:t},i))}));Ri.displayName="PaginationAuto";const Li={root:a.css`
|
|
2191
2242
|
inline-size: ${1.6}em;
|
|
2192
2243
|
block-size: ${1.6}em;
|
|
2193
2244
|
vertical-align: -0.27em;
|
|
@@ -2196,7 +2247,7 @@
|
|
|
2196
2247
|
justify-content: center;
|
|
2197
2248
|
flex-grow: 0;
|
|
2198
2249
|
flex-shrink: 0;
|
|
2199
|
-
`,icon:e=>
|
|
2250
|
+
`,icon:e=>a.css`
|
|
2200
2251
|
block-size: 100%;
|
|
2201
2252
|
aspect-ratio: 576 / 512;
|
|
2202
2253
|
overflow: visible;
|
|
@@ -2244,26 +2295,26 @@
|
|
|
2244
2295
|
stroke: ${x(e,5)};
|
|
2245
2296
|
}
|
|
2246
2297
|
}
|
|
2247
|
-
`},
|
|
2298
|
+
`},Fi=(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:Li.root,className:a,ref:o},l,{children:(0,e.jsxs)("svg",{css:Li.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)})]})}))}));Fi.displayName="RankView";const Bi=(0,r.createContext)({activeIndex:-1,count:0}),Ai=Bi.Provider,Hi=(0,r.createContext)({index:0}),Ti=Hi.Provider;var Vi=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 Yi=e=>a.css`
|
|
2248
2299
|
--qlib-highlight-color: ${x(e,5)};
|
|
2249
2300
|
column-gap: ${$(2)};
|
|
2250
2301
|
display: flex;
|
|
2251
2302
|
flex-direction: column;
|
|
2252
2303
|
flex-grow: 0;
|
|
2253
2304
|
flex-shrink: 0;
|
|
2254
|
-
`,
|
|
2305
|
+
`,Ui=(0,r.forwardRef)(((o,t)=>{var{scheme:n="primary",children:i,className:a}=o;const l=Vi(o,["scheme","children","className"]),{index:s}=l,c=Vi(l,["index"]),d=(0,r.useMemo)((()=>({index:s})),[s]);return(0,e.jsx)("li",Object.assign({css:Yi(n),className:a,ref:t},c,{children:(0,e.jsx)(Ti,{value:d,children:i})}))}));Ui.displayName="StepperItem";const _i={root:a.css`
|
|
2255
2306
|
column-gap: ${$(4)};
|
|
2256
2307
|
row-gap: ${$(4)};
|
|
2257
2308
|
display: flex;
|
|
2258
2309
|
flex-direction: row;
|
|
2259
2310
|
flex-wrap: wrap;
|
|
2260
|
-
`},
|
|
2311
|
+
`},Gi=(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=Ki(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:_i.root,className:l,ref:t},s,{children:(0,e.jsx)(Ai,{value:b,children:c})}))})),Ki=e=>{let o=-1;return r.Children.map(e,(e=>(0,Pe.isElement)(e)?e.type===Ui?(o++,(0,r.cloneElement)(e,{index:o})):e:void 0))};Gi.displayName="Stepper";const Qi={root:a.css`
|
|
2261
2312
|
margin-block-start: ${$(2)};
|
|
2262
2313
|
display: flex;
|
|
2263
2314
|
flex-direction: column;
|
|
2264
2315
|
flex-grow: 1;
|
|
2265
2316
|
flex-shrink: 1;
|
|
2266
|
-
`},
|
|
2317
|
+
`},Wi=(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:Qi.root,className:n,ref:o},i,{children:t}))}));Wi.displayName="StepperBody";const Ji={root:a.css`
|
|
2267
2318
|
column-gap: ${$(1)};
|
|
2268
2319
|
display: flex;
|
|
2269
2320
|
flex-direction: row;
|
|
@@ -2271,7 +2322,7 @@
|
|
|
2271
2322
|
align-items: center;
|
|
2272
2323
|
flex-grow: 0;
|
|
2273
2324
|
flex-shrink: 0;
|
|
2274
|
-
`,number:
|
|
2325
|
+
`,number:a.css`
|
|
2275
2326
|
inline-size: ${$(6)};
|
|
2276
2327
|
block-size: ${$(6)};
|
|
2277
2328
|
font-size: ${$(3)};
|
|
@@ -2297,7 +2348,7 @@
|
|
|
2297
2348
|
background-color: ${x("white")};
|
|
2298
2349
|
color: ${x("gray",5)};
|
|
2299
2350
|
}
|
|
2300
|
-
`,border:
|
|
2351
|
+
`,border:a.css`
|
|
2301
2352
|
block-size: ${$(1)};
|
|
2302
2353
|
margin-inline-end: ${$(-3)};
|
|
2303
2354
|
background-color: ${x("gray",1)};
|
|
@@ -2311,17 +2362,17 @@
|
|
|
2311
2362
|
&[data-highlight="true"] {
|
|
2312
2363
|
background-color: var(--qlib-highlight-color);
|
|
2313
2364
|
}
|
|
2314
|
-
`},
|
|
2365
|
+
`},Zi=(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)(Hi),{activeIndex:b,count:p}=(0,r.useContext)(Bi),u=d<b?"completed":d===b?"active":"upcoming";return(0,e.jsxs)("div",Object.assign({css:Ji.root,className:i,ref:t},a,{children:[(0,e.jsx)("div",{css:Ji.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:Ji.border,"aria-hidden":!0,"data-visible":d<p-1,"data-highlight":d+1<=b})]}))}));Zi.displayName="StepperNumber";const Xi={root:a.css`
|
|
2315
2366
|
font-size: ${$(4)};
|
|
2316
2367
|
font-weight: ${O("bold")};
|
|
2317
|
-
`},
|
|
2368
|
+
`},ea=(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:Xi.root,className:i,as:t,lineHeight:"normal",ref:o},a,{children:n}))}));ea.displayName="StepperTitle";const ra={root:a.css`
|
|
2318
2369
|
inline-size: 100%;
|
|
2319
2370
|
margin-block-end: ${q(-1)};
|
|
2320
2371
|
column-gap: ${$(6)};
|
|
2321
2372
|
border-block-end: solid ${q(1)} ${x("gray",1)};
|
|
2322
2373
|
display: flex;
|
|
2323
2374
|
align-items: flex-end;
|
|
2324
|
-
`},
|
|
2375
|
+
`},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:ra.root,className:n,ref:o},i,{children:t}))}));oa.displayName="TabList";const ta=e=>a.css`
|
|
2325
2376
|
padding-block-end: calc(${$(3)} + ${q(4)});
|
|
2326
2377
|
padding-inline: ${$(0)};
|
|
2327
2378
|
color: ${x("gray",5)};
|
|
@@ -2354,12 +2405,12 @@
|
|
|
2354
2405
|
&[data-qlib-disabled="true"] {
|
|
2355
2406
|
opacity: 0.5;
|
|
2356
2407
|
}
|
|
2357
|
-
`,
|
|
2408
|
+
`,na=(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:ta(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:ta(t),className:c,ref:o,disabled:n,onClick:l,"data-qlib-disabled":n,"data-qlib-active":i},d,{children:s}))}));na.displayName="Tab";const ia={root:a.css`
|
|
2358
2409
|
margin-inline-end: ${$("gap")};
|
|
2359
2410
|
display: inline;
|
|
2360
2411
|
flex-grow: 0;
|
|
2361
2412
|
flex-shrink: 0;
|
|
2362
|
-
`},
|
|
2413
|
+
`},aa=(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:ia.root,className:n,ref:o},i,{children:t}))}));aa.displayName="HeaderMenuItemIconContainer";const la=a.keyframes`
|
|
2363
2414
|
from {
|
|
2364
2415
|
opacity: 0;
|
|
2365
2416
|
transform: translate(${$(0)}, ${$(2)});
|
|
@@ -2368,7 +2419,7 @@
|
|
|
2368
2419
|
opacity: 1;
|
|
2369
2420
|
transform: translate(${$(0)}, ${$(0)});
|
|
2370
2421
|
}
|
|
2371
|
-
`,
|
|
2422
|
+
`,sa=a.keyframes`
|
|
2372
2423
|
to {
|
|
2373
2424
|
opacity: 0;
|
|
2374
2425
|
transform: translate(${$(0)}, ${$(2)});
|
|
@@ -2377,7 +2428,7 @@
|
|
|
2377
2428
|
opacity: 1;
|
|
2378
2429
|
transform: translate(${$(0)}, ${$(0)});
|
|
2379
2430
|
}
|
|
2380
|
-
`,
|
|
2431
|
+
`,ca={root:e=>a.css`
|
|
2381
2432
|
inline-size: 100%;
|
|
2382
2433
|
border-radius: ${$(1)};
|
|
2383
2434
|
background-color: ${x("white")};
|
|
@@ -2398,12 +2449,12 @@
|
|
|
2398
2449
|
content: "";
|
|
2399
2450
|
}
|
|
2400
2451
|
&[data-state="open"] {
|
|
2401
|
-
animation: ${
|
|
2452
|
+
animation: ${la} 0.2s ease;
|
|
2402
2453
|
}
|
|
2403
2454
|
&[data-state="closed"] {
|
|
2404
|
-
animation: ${
|
|
2455
|
+
animation: ${sa} 0.2s ease;
|
|
2405
2456
|
}
|
|
2406
|
-
`,icon:e=>
|
|
2457
|
+
`,icon:e=>a.css`
|
|
2407
2458
|
margin-inline-start: ${$(3)};
|
|
2408
2459
|
margin-inline-end: ${$("gap")};
|
|
2409
2460
|
font-size: ${$(6)};
|
|
@@ -2413,40 +2464,40 @@
|
|
|
2413
2464
|
justify-content: center;
|
|
2414
2465
|
flex-grow: 0;
|
|
2415
2466
|
flex-shrink: 0;
|
|
2416
|
-
`,container:
|
|
2467
|
+
`,container:a.css`
|
|
2417
2468
|
padding-block: ${$(3)};
|
|
2418
2469
|
padding-inline-end: ${$(3)};
|
|
2419
2470
|
&:first-of-type {
|
|
2420
2471
|
margin-inline-start: ${$(3)};
|
|
2421
2472
|
}
|
|
2422
|
-
`},
|
|
2473
|
+
`},da=(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:ca.root(i),className:c,duration:null!=n?n:864e5,open:t,onOpenChange:l,ref:o},d,{children:[null!=a&&(0,e.jsx)("div",{css:ca.icon(i),children:a}),(0,e.jsx)(yo.Description,{css:ca.container,children:s})]}))}));da.displayName="Toast";const ba={root:a.css`
|
|
2423
2474
|
row-gap: ${$(2)};
|
|
2424
2475
|
display: flex;
|
|
2425
2476
|
flex-direction: column;
|
|
2426
|
-
`},
|
|
2477
|
+
`},pa=(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:ba.root,className:n,ref:o},i,{children:t}))}));pa.displayName="ToastBody";const ua={root:a.css`
|
|
2427
2478
|
font-size: ${$(4)};
|
|
2428
|
-
`},
|
|
2479
|
+
`},fa=(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:ua.root,className:n,as:"p",lineHeight:"normal",ref:o},i,{children:t}))}));fa.displayName="ToastMessage";const ma={root:a.css`
|
|
2429
2480
|
font-size: ${$(3)};
|
|
2430
2481
|
color: ${x("gray",5)};
|
|
2431
|
-
`},
|
|
2482
|
+
`},ya=(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:ma.root,className:n,as:"p",lineHeight:"narrow",ref:o},i,{children:t}))}));ya.displayName="ToastSupplement";const ga=(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)(da,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)(pa,{children:(0,e.jsx)(fa,{children:l})})}))}));function ha(e){return a.css`
|
|
2432
2483
|
display: flex;
|
|
2433
2484
|
flex-direction: column;
|
|
2434
|
-
${(null==e?void 0:e.gap)?
|
|
2435
|
-
${(null==e?void 0:e.align)?
|
|
2436
|
-
${(null==e?void 0:e.justify)?
|
|
2437
|
-
`}function
|
|
2485
|
+
${(null==e?void 0:e.gap)?a.css`row-gap: ${ja(e.gap)};`:""}
|
|
2486
|
+
${(null==e?void 0:e.align)?a.css`align-items: ${e.align};`:""}
|
|
2487
|
+
${(null==e?void 0:e.justify)?a.css`justify-content: ${e.justify};`:""}
|
|
2488
|
+
`}function va(e){return a.css`
|
|
2438
2489
|
display: flex;
|
|
2439
2490
|
flex-direction: row;
|
|
2440
|
-
${(null==e?void 0:e.gap)?
|
|
2441
|
-
${(null==e?void 0:e.align)?
|
|
2442
|
-
${(null==e?void 0:e.justify)?
|
|
2443
|
-
`}function
|
|
2444
|
-
${(null==e?void 0:e.top)?
|
|
2445
|
-
${(null==e?void 0:e.bottom)?
|
|
2446
|
-
${(null==e?void 0:e.left)?
|
|
2447
|
-
${(null==e?void 0:e.right)?
|
|
2448
|
-
`}function
|
|
2449
|
-
${(null==e?void 0:e.width)?
|
|
2450
|
-
${(null==e?void 0:e.height)?
|
|
2451
|
-
`}function
|
|
2491
|
+
${(null==e?void 0:e.gap)?a.css`column-gap: ${ja(e.gap)};`:""}
|
|
2492
|
+
${(null==e?void 0:e.align)?a.css`align-items: ${e.align};`:""}
|
|
2493
|
+
${(null==e?void 0:e.justify)?a.css`justify-content: ${e.justify};`:""}
|
|
2494
|
+
`}function Oa(e){return a.css`
|
|
2495
|
+
${(null==e?void 0:e.top)?a.css`margin-block-start: ${ja(e.top)};`:""}
|
|
2496
|
+
${(null==e?void 0:e.bottom)?a.css`margin-block-end: ${ja(e.bottom)};`:""}
|
|
2497
|
+
${(null==e?void 0:e.left)?a.css`margin-inline-start: ${ja(e.left)};`:""}
|
|
2498
|
+
${(null==e?void 0:e.right)?a.css`margin-inline-end: ${ja(e.right)};`:""}
|
|
2499
|
+
`}function xa(e){return a.css`
|
|
2500
|
+
${(null==e?void 0:e.width)?a.css`inline-size: ${ja(e.width)};`:""}
|
|
2501
|
+
${(null==e?void 0:e.height)?a.css`block-size: ${ja(e.height)};`:""}
|
|
2502
|
+
`}function ja(e){return"number"==typeof e?$(e):e}ga.displayName="SimpleToast";const wa=()=>{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])},$a=()=>{const e=(0,r.useContext)(to);if(void 0===e)throw new Error("Not inside `RadioGroup`");const{value:o}=e;return{value:o}},qa=()=>{const{setToastSpecs:e}=(0,r.useContext)(vo);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})})();
|
|
2452
2503
|
//# sourceMappingURL=index.js.map
|