@baton8/general-components 3.1.0-alpha.0 → 3.1.0-alpha.10
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/badge/badge.d.ts +1 -1
- package/dist/components/atoms/generalIcon/generalIcon.d.ts +5 -0
- package/dist/components/atoms/icon/icon.d.ts +5 -0
- package/dist/components/atoms/input/input.d.ts +2 -0
- package/dist/components/atoms/link/link.d.ts +2 -0
- package/dist/components/atoms/segmentGroup/index.d.ts +3 -0
- package/dist/components/atoms/segmentGroup/segment.d.ts +32 -0
- package/dist/components/atoms/segmentGroup/segmentGroup.d.ts +21 -0
- package/dist/components/atoms/segmentGroup/segmentIconContainer.d.ts +15 -0
- package/dist/components/atoms/tag/tag.d.ts +5 -3
- package/dist/components/index.d.ts +4 -0
- package/dist/components/modules/card/card.d.ts +2 -0
- package/dist/components/modules/card/cardButton.d.ts +6 -0
- 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/dialog.d.ts +0 -1
- package/dist/components/modules/drawer/drawer.d.ts +2 -0
- package/dist/components/modules/drawer/drawerCloseButton.d.ts +13 -0
- package/dist/components/modules/drawer/drawerFooter.d.ts +0 -3
- package/dist/components/modules/drawer/index.d.ts +2 -0
- package/dist/components/modules/menu/menu.d.ts +5 -0
- package/dist/components/modules/popover/index.d.ts +1 -0
- package/dist/components/modules/popover/popover.d.ts +38 -0
- package/dist/components/modules/simpleCard/index.d.ts +3 -0
- package/dist/components/modules/simpleCard/simpleCard.d.ts +5 -0
- package/dist/components/modules/simpleCard/simpleCardBody.d.ts +7 -0
- package/dist/components/modules/simpleCard/simpleCardButton.d.ts +5 -0
- package/dist/components/modules/simpleCardList/index.d.ts +4 -0
- package/dist/components/modules/simpleCardList/simpleCardListAuto.d.ts +5 -0
- package/dist/components/modules/simpleCardList/simpleCardListBodyAuto.d.ts +5 -0
- package/dist/components/modules/simpleCardList/simpleCardListFooterAuto.d.ts +5 -0
- package/dist/components/modules/simpleCardList/simpleCardListHeader.d.ts +6 -0
- package/dist/components/modules/stepper/stepperItem.d.ts +5 -1
- package/dist/contexts/dialog/hook.d.ts +4 -1
- package/dist/contexts/segmentGroup/context.d.ts +11 -0
- package/dist/index.js +509 -262
- package/dist/index.js.map +1 -1
- package/dist/stories/atoms/input/input.stories.d.ts +1 -0
- package/dist/stories/atoms/segmentGroup/segmentGroup.stories.d.ts +7 -0
- package/dist/stories/modules/card/card.stories.d.ts +1 -0
- package/dist/stories/modules/drawer/drawer.stories.d.ts +2 -0
- package/dist/stories/modules/popover/popover.stories.d.ts +33 -0
- package/dist/stories/modules/stepper/stepper.stories.d.ts +1 -0
- package/package.json +6 -6
- package/dist/stories/modules/dialog/dialogButton.stories.d.ts +0 -8
- package/dist/stories/modules/drawer/drawerButton.stories.d.ts +0 -7
- package/dist/stories/modules/drawer/drawerFooter.stories.d.ts +0 -7
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:()=>pe,Avatar:()=>ye,AvatarFallbackIcon:()=>Oe,AvatarFallbackLetter:()=>we,Badge:()=>qe,BadgeIconContainer:()=>Ne,BarMeter:()=>De,BarMeterValue:()=>Ae,BarMeterValueIconContainer:()=>Be,BarProgress:()=>Te,BulkOperationButton:()=>St,BulkOperationContainer:()=>Nt,Button:()=>_e,ButtonIconContainer:()=>We,Card:()=>Et,CardBody:()=>Lt,CardButton:()=>Ft,CardButtonList:()=>Ht,CardButtonListColumn:()=>Vt,CardControlContainer:()=>Gt,CardGrip:()=>Kt,CardHeadnote:()=>Rt,CardList:()=>Zt,CardListAuto:()=>fn,CardListBody:()=>en,CardListBodyAuto:()=>mn,CardListEmpty:()=>on,CardListFooter:()=>nn,CardListFooterAuto:()=>yn,CardListHeader:()=>ln,CardListHeaderLeft:()=>cn,CardListHeaderRight:()=>bn,CardListLoading:()=>pn,CardTitle:()=>Qt,CheckableContainer:()=>Je,CheckableLabel:()=>Xe,Checkbox:()=>or,ContentHeader:()=>hn,ContentTitle:()=>vn,ControlContainer:()=>nr,ControlErrorMessage:()=>sr,ControlGroup:()=>fr,ControlHelper:()=>dr,ControlLabel:()=>ur,CountIndicator:()=>jn,Dialog:()=>kn,DialogBody:()=>Pn,DialogButton:()=>Sn,DialogCloseButton:()=>zn,DialogFooter:()=>En,DialogHeader:()=>Rn,DialogTitle:()=>Ln,Divider:()=>yr,Drawer:()=>Hn,DrawerBody:()=>Vn,DrawerButton:()=>Yn,DrawerCaption:()=>Gn,DrawerCloseButton:()=>Kn,DrawerFooter:()=>Qn,DrawerHeader:()=>Zn,DrawerHeaderLeft:()=>ei,DrawerHeaderRight:()=>oi,DrawerTitle:()=>ni,FileInput:()=>Or,Footnote:()=>si,FootnoteIconContainer:()=>di,FootnoteList:()=>ui,FootnoteListRow:()=>fi,FractionView:()=>hi,FractionViewDenominator:()=>vi,FractionViewNumerator:()=>ji,GeneralIcon:()=>gr,Header:()=>$i,HeaderLeft:()=>ki,HeaderMenu:()=>Pi,HeaderMenuItem:()=>Ci,HeaderMenuItemIconContainer:()=>Ii,Heading:()=>jr,Icon:()=>$r,IconButton:()=>kr,Input:()=>Ir,InputLeftAddon:()=>Pr,InputRightAddon:()=>Cr,LEVELED_COLOR_SCHEMES:()=>p,Link:()=>Lr,LinkIconContainer:()=>Fr,LoadingIcon:()=>Hr,Menu:()=>Bi,MenuDivider:()=>Gi,MenuItem:()=>Li,MenuItemIconContainer:()=>Yi,Modal:()=>Gr,MultiLineText:()=>ar,NumberInput:()=>Qr,NumberInputLeftAddon:()=>Kr,PageSizeSelect:()=>lt,PageSizeSelectAuto:()=>bt,Pagination:()=>Ki,PaginationAuto:()=>Wi,PasswordInput:()=>oo,PasswordInputLeftAddon:()=>Zr,PasswordInputRightAddon:()=>eo,Popover:()=>Ji,Radio:()=>ao,RadioGroup:()=>lo,RankView:()=>Xi,Root:()=>Yo,SecondaryHeading:()=>Go,Segment:()=>Qo,SegmentGroup:()=>Zo,SegmentIconContainer:()=>et,Select:()=>ot,SelectOption:()=>nt,SelectOptionIconContainer:()=>at,SimpleCard:()=>ra,SimpleCardBody:()=>ta,SimpleCardButton:()=>ia,SimpleCardListAuto:()=>la,SimpleCardListBodyAuto:()=>ca,SimpleCardListFooterAuto:()=>ba,SimpleCardListHeader:()=>pa,SimpleToast:()=>Ga,SingleLineText:()=>Me,SortOrderSelect:()=>ut,Stepper:()=>ja,StepperBody:()=>qa,StepperItem:()=>va,StepperNumber:()=>Na,StepperTitle:()=>Sa,Switch:()=>mt,Tab:()=>Ea,TabIconContainer:()=>Ra,TabList:()=>za,Tag:()=>gt,TagIconContainer:()=>Ot,TagList:()=>xt,Textarea:()=>wt,Toast:()=>Fa,ToastBody:()=>Ha,ToastMessage:()=>Va,ToastSupplement:()=>Ua,UNLEVELED_COLOR_SCHEMES:()=>f,VisuallyHidden:()=>qt,alpha:()=>j,borderWidth:()=>q,boxShadow:()=>k,color:()=>x,createColorDefinition:()=>m,createTrans:()=>Fo,dimension:()=>Qa,fixedLineHeight:()=>C,flexHorizontal:()=>Ka,flexVertical:()=>_a,fontFamily:()=>O,fontWeight:()=>v,intlSubject:()=>Io,lineHeight:()=>S,localeSubject:()=>Eo,margin:()=>Wa,mergeLocalizationMessages:()=>$o,resolveResponsiveValue:()=>ko,size:()=>$,toResponsiveValue:()=>qo,useBehaviorSubject:()=>Co,useDialog:()=>Za,useIntl:()=>Do,useLocale:()=>Ro,useRadioGroup:()=>Xa,useResponsiveValue:()=>Po,useSetLocale:()=>Mo,useSmartphone:()=>No,useSubject:()=>So,useToast:()=>el,useTrans:()=>Lo,useTranslation:()=>Ao,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 u=o.n(b);const p=["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=u()(e),t=u()("black"),n=u()("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:u()("hsl(203, 0%, 100%)").hex(),black:u()("hsl(203, 33%, 10%)").hex(),whiteText:u()("hsl(203, 0%, 87%)").hex(),blackText:u()("hsl(203, 0%, 27%)").hex(),background:u()("hsl(203, 20%, 98%)").hex(),deepBackground:u()("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}: ${u()(t).rgb().array().join(", ")};`);else for(const[o,n]of Object.entries(t))r.push(`--qlib-cs-${e}-${o}: ${u()(n).rgb().array().join(", ")};`);return a.css`
|
|
2
2
|
:root {
|
|
3
3
|
${r.join("\n")}
|
|
4
4
|
}
|
|
5
|
-
`};function
|
|
5
|
+
`};function O(){return"'Inter', 'Noto Sans JP', 'Dubai', 'Noto Sans', sans-serif"}function v(e){return"normal"===e?400:700}function x(e,r){return f.includes(e)?`rgb(${g(e,void 0)})`:`rgb(${g(e,r)})`}function j(e,r){return e.startsWith("rgb(")?`rgba(${e.slice(4,-1)}, ${r})`:u()(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 R={root:a.css`
|
|
38
38
|
padding-block: ${$(2)};
|
|
39
39
|
padding-inline: ${$(2)};
|
|
40
40
|
color: ${x("gray",5)};
|
|
41
|
-
`},
|
|
41
|
+
`},M=(0,r.createContext)({variant:"outline",optionAlignment:"left",isMenuOpen:!1,isError:!1}),L=M.Provider;const A={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
|
-
`},
|
|
58
|
+
`},F=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:A.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes,widthAuto:!0})}))},B={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)(M);return(0,e.jsx)("div",Object.assign({css:[B.root,"outline"===s?B.rootOutline:B.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,widthAuto:!0})}))},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
|
|
101
|
+
`},U=({innerProps:r,children:o})=>(0,e.jsx)("div",Object.assign({css:Y.root},r,{children:o}));const G={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
|
-
`},
|
|
107
|
+
`},_=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)(M);return(0,e.jsx)(c.components.Input,Object.assign({css:"outline"===i?G.rootOutline:G.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
|
-
`,
|
|
114
|
+
`,W=a.keyframes`
|
|
115
115
|
to {
|
|
116
116
|
opacity: 0;
|
|
117
117
|
}
|
|
118
118
|
from {
|
|
119
119
|
opacity: 1;
|
|
120
120
|
}
|
|
121
|
-
`,
|
|
121
|
+
`,Q={root:a.css`
|
|
122
122
|
inline-size: 100%;
|
|
123
123
|
margin-block-start: ${q(2)};
|
|
124
124
|
display: flex;
|
|
@@ -136,10 +136,10 @@
|
|
|
136
136
|
opacity: 1;
|
|
137
137
|
}
|
|
138
138
|
&[data-qlib-open="false"] {
|
|
139
|
-
animation: ${
|
|
139
|
+
animation: ${W} 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)(M);return(0,e.jsx)("div",Object.assign({css:Q.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
|
-
`},
|
|
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:_,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:R.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})}))},DropdownIndicator:V,ClearIndicator:F,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:u,className:p})=>{const{trans:f}=D("select"),m=null!=o?be(o,u):o,y=null!=t?be(t,u):t,g=(0,r.useCallback)((e=>{return r=void 0,o=void 0,i=function*(){const r=(yield n(e)).map((e=>be(e,u)));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,u]),h=(0,r.useCallback)((e=>{null==b||b(null!==e?e.value:null)}),[b]),O=se(200),{isMenuOpen:v}=O,x=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(O,["isMenuOpen"]),j=(0,r.useMemo)((()=>({variant:a,optionAlignment:l,isMenuOpen:v,isError:s})),[a,l,v,s]);return(0,e.jsx)(L,{value:j,children:(0,e.jsx)(i(),Object.assign({className:p,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 ue={root:a.css`
|
|
180
|
+
`},pe=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:ue.root,className:i},a,{children:null!=n?n:o}))};pe.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
|
-
`},
|
|
212
|
+
`},Oe=(0,r.forwardRef)(((r,o)=>{var{hue:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["hue","className"]);return(0,e.jsx)(fe.Fallback,Object.assign({css:he.fallback,ref:o,delayMs:500,style:{color:`hsl(${t}, 100%, 95%)`,backgroundColor:`hsl(${t}, 30%, 50%)`}},i,{children:(0,e.jsx)(l.FontAwesomeIcon,{css:he.icon,icon:ge.faUser,widthAuto:!0})}))}));Oe.displayName="AvatarFallbackIcon";const ve=require("graphemesplit");var xe=o.n(ve);const je={fallback:a.css`
|
|
213
213
|
width: 100%;
|
|
214
214
|
height: 100%;
|
|
215
215
|
font-size: 0.8em;
|
|
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)};
|
|
@@ -254,23 +254,24 @@
|
|
|
254
254
|
border: var(--qlib-border-style) ${q(1)} ${x(e,1)};
|
|
255
255
|
border-radius: ${$("max")};
|
|
256
256
|
line-height: 1;
|
|
257
|
+
white-space: nowrap;
|
|
257
258
|
display: inline-block;
|
|
258
|
-
`,qe=(
|
|
259
|
+
`,qe=(a.css`
|
|
259
260
|
margin-inline-end: ${$("gap")};
|
|
260
|
-
`,(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",variant:n="light",size:
|
|
261
|
+
`,(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
262
|
margin-inline-end: ${$("gap")};
|
|
262
|
-
`},Ne=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,
|
|
263
|
+
`},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
264
|
inline-size: 100%;
|
|
264
265
|
display: flex;
|
|
265
266
|
overflow: hidden;
|
|
266
|
-
`},De=(0,r.forwardRef)(((o,t)=>{var{isPale:n=!0,children:
|
|
267
|
+
`},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 Re={root:a.css`
|
|
267
268
|
${S(1.5)}
|
|
268
|
-
`,inner:
|
|
269
|
+
`,inner:a.css`
|
|
269
270
|
display: -webkit-box;
|
|
270
271
|
-webkit-box-orient: vertical;
|
|
271
272
|
-webkit-line-clamp: 1;
|
|
272
273
|
overflow: hidden;
|
|
273
|
-
`},
|
|
274
|
+
`},Me=(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:Re.root,className:i,ref:o},a,{children:(0,e.jsx)("span",{css:Re.inner,children:n})}))}));Me.displayName="SingleLineText";const Le={root:e=>a.css`
|
|
274
275
|
&[data-qlib-pale="true"] {
|
|
275
276
|
--qlib-bar-color: ${x(e,3)};
|
|
276
277
|
}
|
|
@@ -303,12 +304,12 @@
|
|
|
303
304
|
&:last-of-type {
|
|
304
305
|
--qlib-border-end-radius: ${$("max")};
|
|
305
306
|
}
|
|
306
|
-
`,barContainer:
|
|
307
|
+
`,barContainer:a.css`
|
|
307
308
|
inline-size: 100%;
|
|
308
309
|
block-size: ${$(1.5)};
|
|
309
310
|
display: flex;
|
|
310
311
|
box-sizing: border-box;
|
|
311
|
-
`,bar:
|
|
312
|
+
`,bar:a.css`
|
|
312
313
|
background-color: var(--qlib-bar-color);
|
|
313
314
|
border-start-start-radius: var(--qlib-border-start-radius);
|
|
314
315
|
border-end-start-radius: var(--qlib-border-start-radius);
|
|
@@ -316,30 +317,30 @@
|
|
|
316
317
|
border-end-end-radius: var(--qlib-border-end-radius);
|
|
317
318
|
flex-grow: 1;
|
|
318
319
|
flex-shrink: 1;
|
|
319
|
-
`,spacer:
|
|
320
|
+
`,spacer:a.css`
|
|
320
321
|
inline-size: ${q(1)};
|
|
321
322
|
flex-grow: 0;
|
|
322
323
|
flex-shrink: 0;
|
|
323
324
|
display: var(--qlib-spacer-display);
|
|
324
|
-
`,legend:
|
|
325
|
+
`,legend:a.css`
|
|
325
326
|
inline-size: 100%;
|
|
326
327
|
margin-block-start: ${$(1)};
|
|
327
328
|
font-size: ${$(3)};
|
|
328
329
|
color: var(--qlib-color);
|
|
329
330
|
box-sizing: border-box;
|
|
330
|
-
`,icon:
|
|
331
|
+
`,icon:a.css`
|
|
331
332
|
margin-inline-end: ${$("gap")};
|
|
332
333
|
display: inline;
|
|
333
|
-
`},
|
|
334
|
+
`},Ae=(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)(Me,{css:Le.legend,children:a})]}))}));Ae.displayName="BarMeterValue";const Fe={root:a.css`
|
|
334
335
|
margin-inline-end: ${$("gap")};
|
|
335
|
-
`},
|
|
336
|
+
`},Be=(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:Fe.root,className:t,ref:o},i,{children:n}))}));Be.displayName="BarMeterValueIconContainer";const He={root:a.css`
|
|
336
337
|
inline-size: 100%;
|
|
337
338
|
block-size: ${$(1.5)};
|
|
338
339
|
border-radius: ${$("max")};
|
|
339
340
|
background-color: ${x("gray",1)};
|
|
340
341
|
display: flex;
|
|
341
342
|
overflow: hidden;
|
|
342
|
-
`,bar:e=>
|
|
343
|
+
`,bar:e=>a.css`
|
|
343
344
|
&[data-qlib-pale="true"] {
|
|
344
345
|
--qlib-bar-color: ${x(e,3)};
|
|
345
346
|
}
|
|
@@ -347,7 +348,7 @@
|
|
|
347
348
|
--qlib-bar-color: ${x(e,5)};
|
|
348
349
|
}
|
|
349
350
|
background-color: var(--qlib-bar-color);
|
|
350
|
-
`},Te=(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",value:n,minValue:
|
|
351
|
+
`},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 Ge={rootBox:e=>a.css`
|
|
351
352
|
// 文字サイズ
|
|
352
353
|
&[data-qlib-size="small"] {
|
|
353
354
|
--qlib-font-size: ${$(3)};
|
|
@@ -431,7 +432,7 @@
|
|
|
431
432
|
opacity: 0.5;
|
|
432
433
|
cursor: inherit;
|
|
433
434
|
}
|
|
434
|
-
`,rootText:e=>
|
|
435
|
+
`,rootText:e=>a.css`
|
|
435
436
|
&[data-qlib-variant="underline"] {
|
|
436
437
|
--qlib-color: ${x(e,5)};
|
|
437
438
|
--qlib-hover-color: ${x(e,4)};
|
|
@@ -461,7 +462,7 @@
|
|
|
461
462
|
opacity: 0.5;
|
|
462
463
|
cursor: inherit;
|
|
463
464
|
}
|
|
464
|
-
`,rootUnstyled:e=>
|
|
465
|
+
`,rootUnstyled:e=>a.css`
|
|
465
466
|
&[data-qlib-variant="underline"] {
|
|
466
467
|
--qlib-hover-decoration-color: currentcolor;
|
|
467
468
|
}
|
|
@@ -485,7 +486,7 @@
|
|
|
485
486
|
opacity: 0.5;
|
|
486
487
|
cursor: inherit;
|
|
487
488
|
}
|
|
488
|
-
`,loading:
|
|
489
|
+
`,loading:a.css`
|
|
489
490
|
inset: ${$(0)};
|
|
490
491
|
background-color: var(--qlib-background-color);
|
|
491
492
|
border-radius: ${$(1)};
|
|
@@ -496,20 +497,20 @@
|
|
|
496
497
|
&[data-qlib-loading="true"] {
|
|
497
498
|
display: flex;
|
|
498
499
|
}
|
|
499
|
-
`},
|
|
500
|
+
`},_e=(0,r.forwardRef)(((o,t)=>{var n,{scheme:i="primary",variant:a="solid",size:c="medium",isCompact:d=!1,type:b="button",isDisabled:u,isLoading:p=!1,onClick:f,onKeyDown:m,onKeyUp:y,onMouseDown:g,onPointerDown:h,children:O,className:v}=o,x=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","variant","size","isCompact","type","isDisabled","isLoading","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","children","className"]);const j=(0,r.useContext)(Ve),w=null!==(n=null!=u?u:null==j?void 0:j.isDisabled)&&void 0!==n&&n,$=(0,r.useMemo)((()=>"solid"===a||"light"===a?Ge.rootBox(i):"underline"===a||"simple"===a?Ge.rootText(i):Ge.rootUnstyled(i)),[i,a]);return(0,e.jsxs)("button",Object.assign({className:v,css:$,type:b,disabled:w||p,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":p},x,{children:[O,(0,e.jsx)("div",{css:Ge.loading,"data-qlib-loading":p,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})})]}))}));_e.displayName="Button";const Ke={root:a.css`
|
|
500
501
|
margin-inline-end: ${$("gap")};
|
|
501
502
|
display: inline;
|
|
502
503
|
flex-grow: 0;
|
|
503
504
|
flex-shrink: 0;
|
|
504
|
-
`},
|
|
505
|
+
`},We=(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}))}));We.displayName="ButtonIconContainer";const Qe={root:a.css`
|
|
505
506
|
column-gap: ${$("gap")};
|
|
506
507
|
display: flex;
|
|
507
508
|
align-items: center;
|
|
508
|
-
`},Je=(0,r.forwardRef)(((o,t)=>{var{isError:n,isDisabled:
|
|
509
|
+
`},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:Qe.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
510
|
&[data-qlib-disabled="true"] {
|
|
510
511
|
opacity: 0.5;
|
|
511
512
|
}
|
|
512
|
-
`},Xe=(0,r.forwardRef)(((o,t)=>{var n,{isDisabled:
|
|
513
|
+
`},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
514
|
&[data-qlib-error="false"] {
|
|
514
515
|
--qlib-border-color: ${x("gray",5)};
|
|
515
516
|
--qlib-focus-color: ${j(x(e,5),.6)};
|
|
@@ -543,7 +544,7 @@
|
|
|
543
544
|
opacity: 0.5;
|
|
544
545
|
cursor: inherit;
|
|
545
546
|
}
|
|
546
|
-
`,original:
|
|
547
|
+
`,original:a.css`
|
|
547
548
|
inline-size: 1px;
|
|
548
549
|
block-size: 1px;
|
|
549
550
|
position: absolute;
|
|
@@ -552,7 +553,7 @@
|
|
|
552
553
|
opacity: 0;
|
|
553
554
|
clip: rect(0px, 0px, 0px, 0px);
|
|
554
555
|
clip-path: inset(50%);
|
|
555
|
-
`,input:
|
|
556
|
+
`,input:a.css`
|
|
556
557
|
inline-size: ${$(4.5)};
|
|
557
558
|
block-size: ${$(4.5)};
|
|
558
559
|
border-radius: ${$(1)};
|
|
@@ -577,7 +578,7 @@
|
|
|
577
578
|
input:disabled +& {
|
|
578
579
|
cursor: inherit;
|
|
579
580
|
}
|
|
580
|
-
`,icon:
|
|
581
|
+
`,icon:a.css`
|
|
581
582
|
font-size: ${$(4)};
|
|
582
583
|
color: ${x("white")};
|
|
583
584
|
transition: color 0.2s ease, opacity 0.2s ease;
|
|
@@ -589,11 +590,11 @@
|
|
|
589
590
|
input:indeterminate +* >& {
|
|
590
591
|
color: var(--qlib-checked-background-color);
|
|
591
592
|
}
|
|
592
|
-
`},or=(0,r.forwardRef)(((o,t)=>{var n,
|
|
593
|
+
`},or=(0,r.forwardRef)(((o,t)=>{var n,i,{scheme:a="primary",isChecked:s,name:c,value:d,isError:b,isRequired:u,isDisabled:p,onSet:f,onChange:m,onBlur:y,className:g,inputClassName:h,inputId:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","isChecked","name","value","isError","isRequired","isDisabled","onSet","onChange","onBlur","className","inputClassName","inputId"]);const x=(0,r.useContext)(Ve),j=null!==(n=null!=b?b:null==x?void 0:x.isError)&&void 0!==n&&n,w=null!==(i=null!=p?p:null==x?void 0:x.isDisabled)&&void 0!==i&&i,$=(0,er.useId)(),q=(0,r.useRef)(null),k=(0,er.useMergeRefs)([t,q]),N=(0,r.useCallback)((e=>{const r=e.target.checked;null==f||f(r),null==m||m(e)}),[f,m]);return(0,r.useEffect)((()=>{null!=q.current&&(q.current.indeterminate="indeterminate"===s)}),[s]),(0,e.jsxs)("div",Object.assign({css:rr.root(a),className:g,"data-qlib-disabled":w,"data-qlib-error":j},v,{children:[(0,e.jsx)("input",{type:"checkbox",css:rr.original,ref:k,className:h,id:O||$,checked:null!=s?!0===s:void 0,name:c,value:d,required:u,disabled:w,onChange:null!=f||null!=m?N:void 0,onBlur:y,"aria-invalid":j}),(0,e.jsx)("label",{css:rr.input,htmlFor:O||$,"aria-hidden":"true",children:(0,e.jsx)(l.FontAwesomeIcon,{css:rr.icon,icon:"indeterminate"===s?ge.faMinus:ge.faCheck,widthAuto:!0})})]}))}));or.displayName="Checkbox";const tr={root:a.css`
|
|
593
594
|
row-gap: ${$(2)};
|
|
594
595
|
display: flex;
|
|
595
596
|
flex-direction: column;
|
|
596
|
-
`},nr=(0,r.forwardRef)(((o,t)=>{var{isLabel:n=!0,isError:
|
|
597
|
+
`},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
598
|
&[data-qlib-max-line="true"] {
|
|
598
599
|
--qlib-additional-margin: 1em;
|
|
599
600
|
}
|
|
@@ -618,29 +619,29 @@
|
|
|
618
619
|
&[data-qlib-line-height="wideFixed"] {
|
|
619
620
|
${C("calc(1em + 0.625 * var(--qlib-root-font-size))","calc(var(--qlib-additional-margin) * -1)")};
|
|
620
621
|
}
|
|
621
|
-
`,inner:e=>
|
|
622
|
+
`,inner:e=>a.css`
|
|
622
623
|
&[data-qlib-max-line="true"] {
|
|
623
|
-
|
|
624
|
+
margin-block: var(--qlib-additional-margin);
|
|
624
625
|
display: -webkit-box;
|
|
625
626
|
-webkit-box-orient: vertical;
|
|
626
627
|
-webkit-line-clamp: ${e};
|
|
627
628
|
overflow: hidden;
|
|
628
629
|
}
|
|
629
|
-
`},
|
|
630
|
+
`},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
631
|
font-size: ${$(3)};
|
|
631
632
|
color: ${x("red",5)};
|
|
632
|
-
`},sr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
633
|
+
`},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
634
|
font-size: ${$(3)};
|
|
634
635
|
color: ${x("gray",5)};
|
|
635
|
-
`},dr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
636
|
+
`},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
637
|
font-size: ${$(4)};
|
|
637
|
-
font-weight: ${
|
|
638
|
+
font-weight: ${v("bold")};
|
|
638
639
|
color: ${x("gray",7)};
|
|
639
|
-
`},
|
|
640
|
+
`},ur=(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)(Me,Object.assign({className:n,css:br.root,as:"div",ref:o},i,{children:t}))}));ur.displayName="ControlLabel";const pr={root:a.css`
|
|
640
641
|
display: flex;
|
|
641
642
|
position: relative;
|
|
642
643
|
z-index: 0;
|
|
643
|
-
`},fr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
644
|
+
`},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:pr.root,className:["qlib-control-group",n].join(" "),ref:o},i,{children:t}))}));fr.displayName="ControlGroup";const mr={root:a.css`
|
|
644
645
|
&[data-qlib-orientation="vertical"] {
|
|
645
646
|
block-size: 100%;
|
|
646
647
|
border-inline-start: solid ${q(1)} ${x("gray",1)};
|
|
@@ -649,8 +650,8 @@
|
|
|
649
650
|
inline-size: 100%;
|
|
650
651
|
border-block-start: solid ${q(1)} ${x("gray",1)};
|
|
651
652
|
}
|
|
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:
|
|
653
|
+
`},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`
|
|
654
|
+
`;const gr=(0,r.forwardRef)(((r,o)=>{var{icon:t,label:n,flip:i="none",rotation:a=0,spin:s=!1,isFixedWidth:c=!1,className:d}=r,b=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","isFixedWidth","className"]);return(0,e.jsx)(l.FontAwesomeIcon,Object.assign({className:d,icon:t,title:n,flip:"none"===i?void 0:i,rotation:0===a?void 0:a,spin:s,widthAuto:!c,ref:o},b))}));gr.displayName="GeneralIcon";const hr={root:a.css`
|
|
654
655
|
&[data-qlib-size="small"] {
|
|
655
656
|
--qlib-font-size: ${$(3)};
|
|
656
657
|
--qlib-padding-block: ${$(1.5)};
|
|
@@ -687,7 +688,7 @@
|
|
|
687
688
|
border-color: var(--qlib-focus-border-color);
|
|
688
689
|
outline: solid ${q(1)} var(--qlib-focus-border-color);
|
|
689
690
|
}
|
|
690
|
-
`,inputContainer:
|
|
691
|
+
`,inputContainer:a.css`
|
|
691
692
|
column-gap: ${$("gap")};
|
|
692
693
|
display: flex;
|
|
693
694
|
align-items: center;
|
|
@@ -695,7 +696,7 @@
|
|
|
695
696
|
flex-shrink: 1;
|
|
696
697
|
z-index: 0;
|
|
697
698
|
position: relative;
|
|
698
|
-
`,input:
|
|
699
|
+
`,input:a.css`
|
|
699
700
|
width: 1px;
|
|
700
701
|
height: 1px;
|
|
701
702
|
position: absolute;
|
|
@@ -704,7 +705,7 @@
|
|
|
704
705
|
opacity: 0;
|
|
705
706
|
clip: rect(0px, 0px, 0px, 0px);
|
|
706
707
|
clip-path: inset(50%);
|
|
707
|
-
`,button:
|
|
708
|
+
`,button:a.css`
|
|
708
709
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
709
710
|
box-sizing: content-box;
|
|
710
711
|
flex-grow: 1;
|
|
@@ -715,15 +716,15 @@
|
|
|
715
716
|
&:disabled {
|
|
716
717
|
cursor: inherit;
|
|
717
718
|
}
|
|
718
|
-
`,builtinAddon:
|
|
719
|
+
`,builtinAddon:a.css`
|
|
719
720
|
color: ${x("gray",5)};
|
|
720
721
|
flex-grow: 0;
|
|
721
722
|
flex-shrink: 0;
|
|
722
|
-
`},
|
|
723
|
+
`},Or=o=>{var t,n,{value:i,name:a,size:l="medium",multiple:c,accept:d,autoFocus:b,isError:u,isRequired:p,isDisabled:f,onSet:m,onChange:y,onBlur:g,children:h,className:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","multiple","accept","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const x=(0,r.useContext)(Ve),j=null!==(t=null!=u?u:null==x?void 0:x.isError)&&void 0!==t&&t,w=null!==(n=null!=f?f:null==x?void 0:x.isDisabled)&&void 0!==n&&n,$=(0,r.useRef)(null),[q,k]=(0,r.useState)(""),N=(0,r.useCallback)((function(e){var r,o;const t=Array.from(null!==(r=e.target.files)&&void 0!==r?r:[]);c?null==m||m(t):null==m||m(null!==(o=t[0])&&void 0!==o?o:null),null==y||y(e),k(vr(t))}),[c,m,y]),P=(0,r.useCallback)((function(){var e;null===(e=$.current)||void 0===e||e.click()}),[]);return(0,e.jsx)("div",{className:O,css:hr.root,"data-qlib-size":l,"data-qlib-disabled":w,"data-qlib-error":j,children:(0,e.jsxs)("div",{css:hr.inputContainer,children:[(0,e.jsx)("input",Object.assign({css:hr.input,ref:$,name:a,type:"file",multiple:c,accept:d,autoFocus:b,required:p,disabled:w,onChange:N,onBlur:g,"aria-invalid":j},v)),(0,e.jsx)("button",{css:hr.button,disabled:w,onClick:P,"aria-hidden":!0,children:q}),(0,e.jsx)("div",{css:hr.builtinAddon,children:(0,e.jsx)(gr,{icon:c?s.faFiles:s.faFile})})]})})};function vr(e){return Array.isArray(e)?e.map(vr).join(", "):null!=e?e.name:""}Or.displayName="FileInput";const xr={root:a.css`
|
|
723
724
|
padding-block: ${$(1)};
|
|
724
725
|
padding-inline-start: ${$(3)};
|
|
725
726
|
font-size: ${$(5)};
|
|
726
|
-
font-weight: ${
|
|
727
|
+
font-weight: ${v("bold")};
|
|
727
728
|
border-inline-start: solid ${$(1)} ${x("primary",5)};
|
|
728
729
|
display: flex;
|
|
729
730
|
align-items: center;
|
|
@@ -734,7 +735,7 @@
|
|
|
734
735
|
flex-grow: 1;
|
|
735
736
|
content: "";
|
|
736
737
|
}
|
|
737
|
-
`},jr=(0,r.forwardRef)(((r,o)=>{var{as:t="h2",className:n,children:
|
|
738
|
+
`},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.faEmptySet,menu:s.faChevronDown,grip:s.faGripVertical,ellipsis:s.faEllipsisH};const $r=(0,r.forwardRef)(((r,o)=>{var{name:t,label:n,isFixedWidth:i=!1,className:a}=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,["name","label","isFixedWidth","className"]);const c=wr[t];return(0,e.jsx)(l.FontAwesomeIcon,Object.assign({className:a,icon:c,title:n,ref:o,widthAuto:!i},s))}));$r.displayName="Icon";const qr={rootBox:e=>a.css`
|
|
738
739
|
// 文字サイズ
|
|
739
740
|
&[data-qlib-size="small"] {
|
|
740
741
|
--qlib-font-size: ${$(3)};
|
|
@@ -803,7 +804,7 @@
|
|
|
803
804
|
opacity: 0.5;
|
|
804
805
|
cursor: inherit;
|
|
805
806
|
}
|
|
806
|
-
`,loading:
|
|
807
|
+
`,loading:a.css`
|
|
807
808
|
inset: ${$(0)};
|
|
808
809
|
background-color: var(--qlib-background-color);
|
|
809
810
|
border-radius: ${$(1)};
|
|
@@ -814,13 +815,13 @@
|
|
|
814
815
|
&[data-qlib-loading="true"] {
|
|
815
816
|
display: flex;
|
|
816
817
|
}
|
|
817
|
-
`},kr=(0,r.forwardRef)(((o,t)=>{var{label:n,scheme:
|
|
818
|
+
`},kr=(0,r.forwardRef)(((o,t)=>{var{label:n,scheme:i="primary",variant:a="solid",size:c="medium",type:d="button",isDisabled:b,isLoading:u=!1,onClick:p,onKeyDown:f,onKeyUp:m,onMouseDown:y,onPointerDown:g,className:h,children:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["label","scheme","variant","size","type","isDisabled","isLoading","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","className","children"]);const x=(0,r.useContext)(Ve);return null!=b?b:null==x?void 0:x.isDisabled,(0,e.jsxs)("button",Object.assign({className:h,css:qr.rootBox(i),type:d,disabled:b||u,onClick:p,onKeyDown:f,onKeyUp:m,onMouseDown:y,onPointerDown:g,ref:t,"aria-label":n,"data-qlib-variant":a,"data-qlib-size":c,"data-qlib-loading":u},v,{children:[O,(0,e.jsx)("div",{css:qr.loading,"data-qlib-loading":u,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})})]}))}));kr.displayName="IconButton";const Nr={root:a.css`
|
|
818
819
|
flex-grow: 0;
|
|
819
820
|
flex-shrink: 0;
|
|
820
|
-
`},Pr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
821
|
+
`},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
822
|
flex-grow: 0;
|
|
822
823
|
flex-shrink: 0;
|
|
823
|
-
`},Cr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
824
|
+
`},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
825
|
&[data-qlib-size="small"] {
|
|
825
826
|
--qlib-font-size: ${$(3)};
|
|
826
827
|
}
|
|
@@ -875,7 +876,7 @@
|
|
|
875
876
|
border-color: var(--qlib-focus-border-color);
|
|
876
877
|
outline: solid ${q(1)} var(--qlib-focus-border-color);
|
|
877
878
|
}
|
|
878
|
-
`,inputContainer:
|
|
879
|
+
`,inputContainer:a.css`
|
|
879
880
|
column-gap: ${$("gap")};
|
|
880
881
|
display: flex;
|
|
881
882
|
align-items: center;
|
|
@@ -883,11 +884,14 @@
|
|
|
883
884
|
flex-shrink: 1;
|
|
884
885
|
z-index: 0;
|
|
885
886
|
position: relative;
|
|
886
|
-
`,input:
|
|
887
|
+
`,input:a.css`
|
|
887
888
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
888
889
|
box-sizing: content-box;
|
|
889
890
|
flex-grow: 1;
|
|
890
891
|
flex-shrink: 1;
|
|
892
|
+
&::placeholder {
|
|
893
|
+
color: ${x("gray",5)};
|
|
894
|
+
}
|
|
891
895
|
&:disabled {
|
|
892
896
|
cursor: inherit;
|
|
893
897
|
}
|
|
@@ -902,11 +906,11 @@
|
|
|
902
906
|
cursor: pointer;
|
|
903
907
|
z-index: 1;
|
|
904
908
|
}
|
|
905
|
-
`,builtinAddon:
|
|
909
|
+
`,builtinAddon:a.css`
|
|
906
910
|
color: ${x("gray",5)};
|
|
907
911
|
flex-grow: 0;
|
|
908
912
|
flex-shrink: 0;
|
|
909
|
-
`},Ir=(0,r.forwardRef)(((o,t)=>{var n,
|
|
913
|
+
`},Ir=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:l,size:c="medium",isCompact:d=!1,type:b="text",inputMode:u,placeholder:p,autoComplete:f="off",autoFocus:m,isError:y,isRequired:g,isDisabled:h,onSet:O,onChange:v,onBlur:x,children:j,className:w,inputClassName:$,inputId: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","type","inputMode","placeholder","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className","inputClassName","inputId"]);const N=(0,r.useContext)(Ve),P=null!==(n=null!=y?y:null==N?void 0:N.isError)&&void 0!==n&&n,S=null!==(i=null!=h?h:null==N?void 0:N.isDisabled)&&void 0!==i&&i,C=(0,r.useCallback)((e=>{const r=e.target.value;null==O||O(r),null==v||v(e)}),[O,v]),z=Se(j),I=z.find((e=>e.type===Pr)),E=z.find((e=>e.type===Cr));return(0,e.jsx)("label",{className:w,css:zr.root,"data-qlib-size":c,"data-qlib-compact":d,"data-qlib-disabled":S,"data-qlib-error":P,children:(0,e.jsxs)("div",{css:zr.inputContainer,children:[I,(0,e.jsx)("input",Object.assign({css:zr.input,className:$,id:q,ref:t,value:a,name:l,type:b,inputMode:u,placeholder:p,autoComplete:f,autoFocus:m,required:g,disabled:S,onChange:null!=O||null!=v?C:void 0,onBlur:x,"aria-invalid":P},k)),Er(b)&&(0,e.jsx)("div",{css:zr.builtinAddon,children:(0,e.jsx)(gr,{icon:"time"===b?s.faClock:s.faCalendar})}),E]})})}));Ir.displayName="Input";const Er=e=>"date"===e||"time"===e||"datetime-local"===e||"month"===e||"week"===e;const Dr=e=>a.css`
|
|
910
914
|
// 文字サイズ
|
|
911
915
|
&[data-qlib-size="small"] {
|
|
912
916
|
--qlib-font-size: ${$(3)};
|
|
@@ -988,7 +992,7 @@
|
|
|
988
992
|
opacity: 0.5;
|
|
989
993
|
cursor: inherit;
|
|
990
994
|
}
|
|
991
|
-
`,
|
|
995
|
+
`,Rr=e=>a.css`
|
|
992
996
|
&[data-qlib-variant="underline"] {
|
|
993
997
|
--qlib-color: ${x(e,5)};
|
|
994
998
|
--qlib-hover-color: ${x(e,4)};
|
|
@@ -1018,7 +1022,7 @@
|
|
|
1018
1022
|
opacity: 0.5;
|
|
1019
1023
|
cursor: inherit;
|
|
1020
1024
|
}
|
|
1021
|
-
`,
|
|
1025
|
+
`,Mr=e=>a.css`
|
|
1022
1026
|
&[data-qlib-variant="underline"] {
|
|
1023
1027
|
--qlib-hover-decoration-color: currentcolor;
|
|
1024
1028
|
}
|
|
@@ -1042,7 +1046,7 @@
|
|
|
1042
1046
|
opacity: 0.5;
|
|
1043
1047
|
cursor: inherit;
|
|
1044
1048
|
}
|
|
1045
|
-
`,Lr=(
|
|
1049
|
+
`,Lr=(a.css`
|
|
1046
1050
|
inset: ${$(0)};
|
|
1047
1051
|
background-color: var(--qlib-background-color);
|
|
1048
1052
|
border-radius: ${$(1)};
|
|
@@ -1053,14 +1057,14 @@
|
|
|
1053
1057
|
&[data-qlib-loading="true"] {
|
|
1054
1058
|
display: flex;
|
|
1055
1059
|
}
|
|
1056
|
-
`,(0,r.forwardRef)(((o,t)=>{var{href:n,target:
|
|
1060
|
+
`,(0,r.forwardRef)(((o,t)=>{var{href:n,target:i,scheme:a="primary",variant:l="underline",size:s="medium",download:c,isCompact:d=!1,onClick:b,onKeyDown:u,onKeyUp:p,onMouseDown:f,onPointerDown:m,children:y,className:g}=o,h=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","download","isCompact","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","children","className"]);const O=(0,r.useMemo)((()=>"solid"===l||"light"===l?Dr(a):"underline"===l||"simple"===l?Rr(a):Mr(a)),[a,l]);return(0,e.jsx)("a",Object.assign({className:g,css:O,href:n,target:i,download:c,onClick:b,onKeyDown:u,onKeyUp:p,onMouseDown:f,onPointerDown:m,ref:t,"data-qlib-variant":l,"data-qlib-size":s,"data-qlib-compact":d},h,{children:y}))})));Lr.displayName="Link";const Ar={root:a.css`
|
|
1057
1061
|
margin-inline-end: ${$("gap")};
|
|
1058
1062
|
display: inline;
|
|
1059
1063
|
flex-grow: 0;
|
|
1060
1064
|
flex-shrink: 0;
|
|
1061
|
-
`},
|
|
1065
|
+
`},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)("span",Object.assign({css:Ar.root,className:n,ref:o},i,{children:t}))}));Fr.displayName="LinkIconContainer";const Br=e=>a.css`
|
|
1062
1066
|
color: ${null!=e?x(e,5):"inherit"};
|
|
1063
|
-
`,Hr=(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",className:n}=r,
|
|
1067
|
+
`,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:Br(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
1068
|
background-color: ${j(x("black"),.6)};
|
|
1065
1069
|
position: fixed;
|
|
1066
1070
|
inset: 0rem;
|
|
@@ -1072,10 +1076,10 @@
|
|
|
1072
1076
|
&.ReactModal__Overlay--before-close {
|
|
1073
1077
|
opacity: 0;
|
|
1074
1078
|
}
|
|
1075
|
-
`},
|
|
1079
|
+
`},Gr=({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})})};Gr.displayName="Modal";const _r={root:a.css`
|
|
1076
1080
|
flex-grow: 0;
|
|
1077
1081
|
flex-shrink: 0;
|
|
1078
|
-
`},Kr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
1082
|
+
`},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:_r.root,className:n,ref:o},i,{children:t}))}));Kr.displayName="NumberInputLeftAddon";const Wr={root:a.css`
|
|
1079
1083
|
&[data-qlib-size="small"] {
|
|
1080
1084
|
--qlib-font-size: ${$(3)};
|
|
1081
1085
|
}
|
|
@@ -1130,7 +1134,7 @@
|
|
|
1130
1134
|
border-color: var(--qlib-focus-border-color);
|
|
1131
1135
|
outline: solid ${q(1)} var(--qlib-focus-border-color);
|
|
1132
1136
|
}
|
|
1133
|
-
`,inputContainer:
|
|
1137
|
+
`,inputContainer:a.css`
|
|
1134
1138
|
column-gap: ${$("gap")};
|
|
1135
1139
|
display: flex;
|
|
1136
1140
|
align-items: center;
|
|
@@ -1138,7 +1142,7 @@
|
|
|
1138
1142
|
flex-shrink: 1;
|
|
1139
1143
|
z-index: 0;
|
|
1140
1144
|
position: relative;
|
|
1141
|
-
`,input:
|
|
1145
|
+
`,input:a.css`
|
|
1142
1146
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
1143
1147
|
box-sizing: content-box;
|
|
1144
1148
|
flex-grow: 1;
|
|
@@ -1152,7 +1156,7 @@
|
|
|
1152
1156
|
&::-webkit-inner-spin-button {
|
|
1153
1157
|
appearance: none;
|
|
1154
1158
|
}
|
|
1155
|
-
`,vertivalButtonList:
|
|
1159
|
+
`,vertivalButtonList:a.css`
|
|
1156
1160
|
inline-size: var(--qlib-control-width);
|
|
1157
1161
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
1158
1162
|
margin-inline-end: calc(var(--qlib-padding-inline) * -1);
|
|
@@ -1162,7 +1166,7 @@
|
|
|
1162
1166
|
align-self: stretch;
|
|
1163
1167
|
flex-grow: 0;
|
|
1164
1168
|
flex-shrink: 0;
|
|
1165
|
-
`,verticalButton:
|
|
1169
|
+
`,verticalButton:a.css`
|
|
1166
1170
|
color: ${x("gray",5)};
|
|
1167
1171
|
background-color: ${x("white")};
|
|
1168
1172
|
display: flex;
|
|
@@ -1175,9 +1179,9 @@
|
|
|
1175
1179
|
&:hover:not([data-disabled="true"]) {
|
|
1176
1180
|
background-color: ${x("gray",0)};
|
|
1177
1181
|
}
|
|
1178
|
-
`,verticalButtonDivider:
|
|
1182
|
+
`,verticalButtonDivider:a.css`
|
|
1179
1183
|
border-block-start: solid ${q(1)} ${x("gray",3)};
|
|
1180
|
-
`,horizontalButton:
|
|
1184
|
+
`,horizontalButton:a.css`
|
|
1181
1185
|
inline-size: var(--qlib-control-width);
|
|
1182
1186
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
1183
1187
|
color: ${x("gray",5)};
|
|
@@ -1204,13 +1208,13 @@
|
|
|
1204
1208
|
&:hover:not([data-disabled="true"]) {
|
|
1205
1209
|
background-color: ${x("gray",0)};
|
|
1206
1210
|
}
|
|
1207
|
-
`},
|
|
1211
|
+
`},Qr=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:c,size:d="medium",isCompact:b=!1,controlPosition:u="vertical",max:p,min:f,step:m,autoComplete:y="off",autoFocus:g,isError:h,isRequired:O,isDisabled:v,onSet:x,onChange:j,onBlur:w,children:$,className:q}=o,k=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","isCompact","controlPosition","max","min","step","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const N=(0,r.useContext)(Ve),P=null!==(n=null!=h?h:null==N?void 0:N.isError)&&void 0!==n&&n,S=null!==(i=null!=v?v:null==N?void 0:N.isDisabled)&&void 0!==i&&i,C=(0,r.useRef)(null),z=(0,er.useMergeRefs)([t,C]),I=(0,r.useCallback)((e=>{const r=e.target.value;null==x||x(r),null==j||j(e)}),[x,j]),E=(0,r.useCallback)((e=>{null!=C.current&&(C.current.stepUp(),C.current.dispatchEvent(new Event("change",{bubbles:!0})),null==x||x(C.current.value))}),[x]),D=(0,r.useCallback)((e=>{null!=C.current&&(C.current.stepDown(),C.current.dispatchEvent(new Event("change",{bubbles:!0})),null==x||x(C.current.value))}),[x]),R=Se($).find((e=>e.type===Kr));return(0,e.jsx)("label",{className:q,css:Wr.root,"data-qlib-size":d,"data-qlib-compact":b,"data-qlib-disabled":S,"data-qlib-error":P,children:(0,e.jsxs)("div",{css:Wr.inputContainer,children:[R,(0,e.jsx)("input",Object.assign({css:Wr.input,ref:z,value:a,name:c,type:"number",max:p,min:f,step:m,autoComplete:y,autoFocus:g,required:O,disabled:S,onChange:null!=x||null!=j?I:void 0,onBlur:w,"aria-invalid":P},k)),"horizontal"===u&&(0,e.jsx)("button",{css:Wr.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,widthAuto:!0})}),"horizontal"===u&&(0,e.jsx)("button",{css:Wr.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,widthAuto:!0})}),"vertical"===u&&(0,e.jsxs)("div",{css:Wr.vertivalButtonList,children:[(0,e.jsx)("button",{css:Wr.verticalButton,type:"button",onClick:E,tabIndex:-1,"data-disabled":S,"aria-hidden":!0,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleUp,widthAuto:!0})}),(0,e.jsx)("hr",{css:Wr.verticalButtonDivider,"aria-hidden":!0}),(0,e.jsx)("button",{css:Wr.verticalButton,type:"button",onClick:D,tabIndex:-1,"data-disabled":S,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleDown,widthAuto:!0})})]})]})})}));Qr.displayName="NumberInput";const Jr={root:a.css`
|
|
1208
1212
|
flex-grow: 0;
|
|
1209
1213
|
flex-shrink: 0;
|
|
1210
|
-
`},Zr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
1214
|
+
`},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
1215
|
flex-grow: 0;
|
|
1212
1216
|
flex-shrink: 0;
|
|
1213
|
-
`},eo=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
1217
|
+
`},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
1218
|
&[data-qlib-size="small"] {
|
|
1215
1219
|
--qlib-font-size: ${$(3)};
|
|
1216
1220
|
--qlib-padding-block: ${$(1.5)};
|
|
@@ -1247,13 +1251,13 @@
|
|
|
1247
1251
|
border-color: var(--qlib-focus-border-color);
|
|
1248
1252
|
outline: solid ${q(1)} var(--qlib-focus-border-color);
|
|
1249
1253
|
}
|
|
1250
|
-
`,inputContainer:
|
|
1254
|
+
`,inputContainer:a.css`
|
|
1251
1255
|
column-gap: ${$("gap")};
|
|
1252
1256
|
display: flex;
|
|
1253
1257
|
align-items: center;
|
|
1254
1258
|
flex-grow: 1;
|
|
1255
1259
|
flex-shrink: 1;
|
|
1256
|
-
`,input:
|
|
1260
|
+
`,input:a.css`
|
|
1257
1261
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
1258
1262
|
box-sizing: content-box;
|
|
1259
1263
|
flex-grow: 1;
|
|
@@ -1261,7 +1265,7 @@
|
|
|
1261
1265
|
&:disabled {
|
|
1262
1266
|
cursor: inherit;
|
|
1263
1267
|
}
|
|
1264
|
-
`,button:
|
|
1268
|
+
`,button:a.css`
|
|
1265
1269
|
inline-size: 1.1em;
|
|
1266
1270
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
1267
1271
|
color: ${x("primary",5)};
|
|
@@ -1280,7 +1284,7 @@
|
|
|
1280
1284
|
outline: solid ${q(2)} ${j(x("primary",4),.6)};
|
|
1281
1285
|
outline-offset: ${q(1)};
|
|
1282
1286
|
}
|
|
1283
|
-
`},oo=(0,r.forwardRef)(((o,t)=>{var n,
|
|
1287
|
+
`},oo=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:c,size:d="medium",initialReveal:b=!1,inputMode:u,autoComplete:p="current-password",autoFocus:f,isError:m,isRequired:y,isDisabled:g,onSet:h,onChange:O,onBlur:v,children:x,className:j}=o,w=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","initialReveal","inputMode","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const $=(0,r.useContext)(Ve),q=null!==(n=null!=m?m:null==$?void 0:$.isError)&&void 0!==n&&n,k=null!==(i=null!=g?g:null==$?void 0:$.isDisabled)&&void 0!==i&&i,N=(0,r.useId)(),[P,S]=(0,r.useState)(b),C=(0,r.useCallback)((()=>{S((e=>!e))}),[]),z=(0,r.useCallback)((e=>{const r=e.target.value;null==h||h(r),null==O||O(e)}),[h,O]),I=Se(x),E=I.find((e=>e.type===Zr)),D=I.find((e=>e.type===eo));return(0,e.jsx)("label",Object.assign({className:j,css:ro.root,"data-qlib-size":d,"data-qlib-disabled":k,"data-qlib-error":q},w,{children:(0,e.jsxs)("div",{css:ro.inputContainer,children:[E,(0,e.jsx)("input",Object.assign({css:ro.input,id:N,ref:t,value:a,name:c,type:P?"input":"password",inputMode:u,autoComplete:p,autoFocus:f,required:y,disabled:k,onChange:null!=h||null!=O?z:void 0,onBlur:v,"aria-invalid":q},w)),(0,e.jsx)("button",{css:ro.button,type:"button",onClick:C,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:P?s.faEyeSlash:s.faEye,widthAuto:!0})}),D]})}))}));oo.displayName="PasswordInput";const to=(0,r.createContext)(void 0),no=to.Provider;const io={root:e=>a.css`
|
|
1284
1288
|
&[data-qlib-error="false"] {
|
|
1285
1289
|
--qlib-border-color: ${x("gray",5)};
|
|
1286
1290
|
--qlib-focus-color: ${j(x(e,5),.6)};
|
|
@@ -1314,7 +1318,7 @@
|
|
|
1314
1318
|
opacity: 0.5;
|
|
1315
1319
|
cursor: inherit;
|
|
1316
1320
|
}
|
|
1317
|
-
`,original:
|
|
1321
|
+
`,original:a.css`
|
|
1318
1322
|
inline-size: 1px;
|
|
1319
1323
|
block-size: 1px;
|
|
1320
1324
|
position: absolute;
|
|
@@ -1323,7 +1327,7 @@
|
|
|
1323
1327
|
opacity: 0;
|
|
1324
1328
|
clip: rect(0px, 0px, 0px, 0px);
|
|
1325
1329
|
clip-path: inset(50%);
|
|
1326
|
-
`,input:
|
|
1330
|
+
`,input:a.css`
|
|
1327
1331
|
inline-size: ${$(4.5)};
|
|
1328
1332
|
block-size: ${$(4.5)};
|
|
1329
1333
|
border-radius: ${$("max")};
|
|
@@ -1348,7 +1352,7 @@
|
|
|
1348
1352
|
input:disabled +& {
|
|
1349
1353
|
cursor: inherit;
|
|
1350
1354
|
}
|
|
1351
|
-
`,icon:
|
|
1355
|
+
`,icon:a.css`
|
|
1352
1356
|
inline-size: ${$(2.5)};
|
|
1353
1357
|
block-size: ${$(2.5)};
|
|
1354
1358
|
border-radius: ${$("max")};
|
|
@@ -1358,7 +1362,7 @@
|
|
|
1358
1362
|
input:checked +* >& {
|
|
1359
1363
|
opacity: 1;
|
|
1360
1364
|
}
|
|
1361
|
-
`},
|
|
1365
|
+
`},ao=(0,r.forwardRef)(((o,t)=>{var n,i,a,{scheme:l="primary",isChecked:s,name:c,value:d,isError:b,isRequired:u,isDisabled:p,onSet:f,onChange:m,onBlur:y,className:g,inputClassName:h,inputId:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","isChecked","name","value","isError","isRequired","isDisabled","onSet","onChange","onBlur","className","inputClassName","inputId"]);const x=(0,r.useContext)(to),j=(0,r.useContext)(Ve),w=null!==(n=null!=b?b:null==j?void 0:j.isError)&&void 0!==n&&n,$=null!==(i=null!=p?p:null==j?void 0:j.isDisabled)&&void 0!==i&&i,q=(0,er.useId)(),k=(0,r.useCallback)((e=>{if(null!=(null==x?void 0:x.onSet)&&null!=d)x.onSet(d);else{const r=e.target.checked;null==f||f(r)}null==m||m(e)}),[d,x,f,m]);return(0,e.jsxs)("div",Object.assign({css:io.root(l),className:g,"data-qlib-disabled":$,"data-qlib-error":w},v,{children:[(0,e.jsx)("input",{type:"radio",css:io.original,ref:t,className:h,id:O||q,value:d,name:null!==(a=null==x?void 0:x.name)&&void 0!==a?a:c,checked:null!=(null==x?void 0:x.value)?x.value===d:null!=s?!0===s:void 0,required:u,disabled:$,onChange:null!=(null==x?void 0:x.onSet)||null!=f||null!=m?k:void 0,onBlur:y,"aria-invalid":w}),(0,e.jsx)("label",{css:io.input,htmlFor:O||q,"aria-hidden":"true",children:(0,e.jsx)("div",{css:io.icon})})]}))}));ao.displayName="Radio";const lo=({value:o,onSet:t,children:n})=>{const i=(0,er.useId)(),a=(0,r.useMemo)((()=>({name:i,value:o,onSet:t})),[i,o,t]);return(0,e.jsx)(no,{value:a,children:n})};lo.displayName="RadioGroup";const so={root:a.css`
|
|
1362
1366
|
&[data-qlib-orientation="horizontal"] {
|
|
1363
1367
|
--qlib-flex-direction: row;
|
|
1364
1368
|
}
|
|
@@ -1370,7 +1374,7 @@
|
|
|
1370
1374
|
row-gap: ${$(2)};
|
|
1371
1375
|
display: flex;
|
|
1372
1376
|
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
|
|
1377
|
+
`},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 uo=(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:()=>{}}),po=({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)(uo.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
1378
|
inline-size: ${$(96)};
|
|
1375
1379
|
max-inline-size: calc(100vw - ${$(6)});
|
|
1376
1380
|
inset-block-start: ${$(6)};
|
|
@@ -1384,8 +1388,8 @@
|
|
|
1384
1388
|
position: fixed;
|
|
1385
1389
|
outline: none;
|
|
1386
1390
|
z-index: 2000;
|
|
1387
|
-
`},ho=({})=>{const{trans:r}=D("toast");return(0,e.jsx)(yo.Viewport,{css:go.root,label:r("viewportLabel")})},
|
|
1388
|
-
${r.font?
|
|
1391
|
+
`},ho=({})=>{const{trans:r}=D("toast");return(0,e.jsx)(yo.Viewport,{css:go.root,label:r("viewportLabel")})},Oo=(0,r.createContext)({setToastSpecs:()=>null}),vo=Oo.Provider,xo=({children:o})=>{const{trans:t}=D("toast"),[n,i]=(0,r.useState)([]),a=(0,r.useMemo)((()=>({setToastSpecs:i})),[i]);return(0,e.jsx)(yo.Provider,{label:t("rootLabel"),children:(0,e.jsxs)(vo,{value:a,children:[(0,e.jsx)(ho,{}),n.map((e=>e.element)),o]})})},jo=e=>Object.fromEntries(Object.entries(e).map((([e,r])=>[`qlib.${e}`,r]))),wo={ja:jo(o(62)),en:jo(o(714))},$o=e=>({ja:e.map((e=>{var r;return null!==(r=e.ja)&&void 0!==r?r:{}})).reduce(Object.assign,{}),en:e.map((e=>{var r;return null!==(r=e.en)&&void 0!==r?r:{}})).reduce(Object.assign,{})}),qo=e=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e:{desktop:e,smartphone:e},ko=(e,r)=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e[r]:e,No=()=>{const{smartphoneQuery:e}=(0,r.useContext)(fo);return(0,bo.useMedia)(e,!1)},Po=e=>{const r=No();return ko(e,r?"smartphone":"desktop")},So=e=>{const[o,t]=(0,r.useState)(void 0);return(0,r.useEffect)((()=>{const r=e.subscribe({next:e=>t(e)});return()=>r.unsubscribe()}),[e]),o},Co=e=>{const[o,t]=(0,r.useState)(e.value);return(0,r.useEffect)((()=>{const r=e.subscribe({next:e=>t(e)});return()=>r.unsubscribe()}),[e]),o},zo=require("rxjs"),Io=new zo.BehaviorSubject((0,E.createIntl)({locale:"ja",onError:e=>null})),Eo=new zo.BehaviorSubject("ja"),Do=()=>Co(Io),Ro=()=>Co(Eo),Mo=()=>(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])},Ao=Lo,Fo=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):""}}},Bo={resetAll:!0,font:!0,wrap:!0},Ho=(e,r)=>a.css`
|
|
1392
|
+
${r.font?a.css`
|
|
1389
1393
|
@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
1394
|
`:""}
|
|
1391
1395
|
|
|
@@ -1394,15 +1398,15 @@
|
|
|
1394
1398
|
}
|
|
1395
1399
|
html {
|
|
1396
1400
|
font-size: ${e};
|
|
1397
|
-
${r.font?
|
|
1401
|
+
${r.font?a.css`
|
|
1398
1402
|
font-family: ${"'Inter', 'Noto Sans JP', 'Dubai', 'Noto Sans', sans-serif"};
|
|
1399
1403
|
`:""}
|
|
1400
|
-
font-weight: ${
|
|
1404
|
+
font-weight: ${v("normal")};
|
|
1401
1405
|
font-feature-settings: "palt" 1, "pkna" 1, "lnum" 1, "kern" 1 !important;
|
|
1402
1406
|
color: ${x("blackText")};
|
|
1403
1407
|
background-color: ${x("background")};
|
|
1404
1408
|
line-height: 1;
|
|
1405
|
-
${r.wrap?
|
|
1409
|
+
${r.wrap?a.css`
|
|
1406
1410
|
overflow-wrap: break-word;
|
|
1407
1411
|
`:""}
|
|
1408
1412
|
}
|
|
@@ -1419,7 +1423,7 @@
|
|
|
1419
1423
|
scrollbar-width: thin;
|
|
1420
1424
|
}
|
|
1421
1425
|
*:where(:not(iframe, canvas, img, svg, video):not(svg *):not(.sbdocs *:not(.docs-story *))) {
|
|
1422
|
-
${r.resetAll?
|
|
1426
|
+
${r.resetAll?a.css`
|
|
1423
1427
|
all: unset;
|
|
1424
1428
|
display: revert;
|
|
1425
1429
|
`:""}
|
|
@@ -1433,24 +1437,89 @@
|
|
|
1433
1437
|
user-select: auto !important;
|
|
1434
1438
|
-webkit-user-select : auto !important;
|
|
1435
1439
|
}
|
|
1436
|
-
`,To={root:
|
|
1440
|
+
`,To={root:a.css`
|
|
1437
1441
|
block-size: ${$(0)};
|
|
1438
1442
|
inline-size: ${$(0)};
|
|
1439
1443
|
opacity: 0;
|
|
1440
1444
|
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:
|
|
1445
|
+
`},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 u=Ro(),p=Mo(),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:u,messages:e[u],onError:e=>null},r);Io.next(t)}),[u,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&&p(null!==(e=localStorage.getItem("qlib-locale"))&&void 0!==e?e:"ja")}),[p]),(0,r.useEffect)((()=>{const e="next"in window?"#__next":c;e&&Yr().setAppElement(e)}),[c]);const[O,v]=(0,r.useState)(d);return(0,r.useEffect)((()=>{v(!0)}),[]),(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)(a.Global,{styles:Ho(m,Object.assign({},Bo,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)(po,{children:O&&b})})})})]})};const Uo={root:a.css`
|
|
1442
1446
|
font-size: ${$(4.5)};
|
|
1443
|
-
font-weight: ${
|
|
1447
|
+
font-weight: ${v("bold")};
|
|
1444
1448
|
color: ${x("primary",6)};
|
|
1445
1449
|
display: flex;
|
|
1446
1450
|
align-items: center;
|
|
1447
|
-
`},
|
|
1448
|
-
|
|
1451
|
+
`},Go=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}))};Go.displayName="SecondaryHeading";const _o=(0,r.createContext)(void 0),Ko=_o.Provider;const Wo={root:e=>a.css`
|
|
1452
|
+
--qlib-focus-color: ${j(x(e,5),.6)};
|
|
1453
|
+
cursor: pointer;
|
|
1454
|
+
flex: 1 1 auto;
|
|
1455
|
+
z-index: 1;
|
|
1456
|
+
`,original:a.css`
|
|
1457
|
+
inline-size: 1px;
|
|
1458
|
+
block-size: 1px;
|
|
1459
|
+
position: absolute;
|
|
1460
|
+
white-space: nowrap;
|
|
1461
|
+
overflow: hidden;
|
|
1462
|
+
opacity: 0;
|
|
1463
|
+
clip: rect(0px, 0px, 0px, 0px);
|
|
1464
|
+
clip-path: inset(50%);
|
|
1465
|
+
`,input:a.css`
|
|
1466
|
+
input:not(:checked) +& {
|
|
1467
|
+
--qlib-text-color: ${x("gray",5)};
|
|
1468
|
+
}
|
|
1469
|
+
input:checked +& {
|
|
1470
|
+
--qlib-text-color: ${x("white")};
|
|
1471
|
+
}
|
|
1472
|
+
padding-block: ${$(1.5)};
|
|
1473
|
+
padding-inline: ${$(3)};
|
|
1474
|
+
border-radius: ${$(1)};
|
|
1475
|
+
color: var(--qlib-text-color);
|
|
1476
|
+
line-height: 1;
|
|
1477
|
+
display: flex;
|
|
1478
|
+
align-items: center;
|
|
1479
|
+
justify-content: center;
|
|
1480
|
+
transition: color 0.2s ease, background-color 0.2s ease;
|
|
1481
|
+
input:focus-visible +& {
|
|
1482
|
+
outline: solid ${q(2)} var(--qlib-focus-color);
|
|
1483
|
+
outline-offset: ${q(1)};
|
|
1484
|
+
}
|
|
1485
|
+
`},Qo=(0,r.forwardRef)(((o,t)=>{var n,{value:i,onChange:a,onBlur:l,children:s,className:c,inputClassName:d,inputId:b}=o,u=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","onChange","onBlur","children","className","inputClassName","inputId"]);const p=(0,r.useContext)(_o),f=(0,er.useId)(),m=(0,r.useCallback)((e=>{null!=(null==p?void 0:p.onSet)&&null!=i&&p.onSet(i),null==a||a(e)}),[i,p,a]);return(0,e.jsxs)("div",Object.assign({css:Wo.root(null!==(n=null==p?void 0:p.scheme)&&void 0!==n?n:"primary"),className:c,"data-qlib-value":i},u,{children:[(0,e.jsx)("input",{type:"radio",css:Wo.original,ref:t,className:d,id:b||f,value:i,name:null==p?void 0:p.name,checked:null!=(null==p?void 0:p.value)&&p.value===i,onChange:m,onBlur:l}),(0,e.jsx)("label",{css:Wo.input,htmlFor:b||f,"aria-hidden":"true",children:s})]}))}));Qo.displayName="Segment";const Jo=e=>a.css`
|
|
1486
|
+
&:not(:hover) {
|
|
1487
|
+
--qlib-marker-background-color: ${x(e,5)};
|
|
1488
|
+
}
|
|
1489
|
+
&:hover {
|
|
1490
|
+
--qlib-marker-background-color: ${x(e,4)};
|
|
1491
|
+
}
|
|
1492
|
+
padding-block: ${$(.5)};
|
|
1493
|
+
padding-inline: ${$(.5)};
|
|
1494
|
+
border-radius: ${$(1)};
|
|
1495
|
+
border: solid ${q(1)} ${x("gray",3)};
|
|
1496
|
+
background-color: ${x("white")};
|
|
1497
|
+
display: flex;
|
|
1498
|
+
position: relative;
|
|
1499
|
+
z-index: 0;
|
|
1500
|
+
&::before {
|
|
1501
|
+
width: var(--qlib-marker-width);
|
|
1502
|
+
inset-inline-start: var(--qlib-marker-x);
|
|
1503
|
+
inset-block: ${$(.5)};
|
|
1504
|
+
border-radius: ${$(1)};
|
|
1505
|
+
background-color: var(--qlib-marker-background-color);
|
|
1506
|
+
transition: width 0.2s ease, inset-inline-start 0.2s ease, background-color 0.2s ease;
|
|
1507
|
+
position: absolute;
|
|
1508
|
+
content: "";
|
|
1509
|
+
z-index: 0;
|
|
1510
|
+
}
|
|
1511
|
+
`,Zo=({scheme:o="primary",value:t,onSet:n,children:i})=>{const a=(0,er.useId)(),l=(0,r.useRef)(null),s=(0,r.useMemo)((()=>({scheme:o,name:a,value:t,onSet:n})),[o,a,t,n]);return(0,r.useEffect)((()=>{if(null!=l.current){const e=l.current.querySelector(`[data-qlib-value="${t}"]`);if(null!=e){const r=e.getBoundingClientRect().width,o=e.offsetLeft;l.current.style.setProperty("--qlib-marker-width",`${r}px`),l.current.style.setProperty("--qlib-marker-x",`${o}px`)}}}),[t]),(0,e.jsx)(Ko,{value:s,children:(0,e.jsx)("div",{css:Jo(o),ref:l,children:i})})};Zo.displayName="SegmentGroup";const Xo={root:a.css`
|
|
1512
|
+
margin-inline-end: ${$("gap")};
|
|
1513
|
+
display: inline;
|
|
1514
|
+
flex-grow: 0;
|
|
1515
|
+
flex-shrink: 0;
|
|
1516
|
+
`},et=(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:Xo.root,className:n,ref:o},i,{children:t}))}));et.displayName="SegmentIconContainer";const rt={Control:H,Input:_,Placeholder:le,MenuPortal:re,Menu:J,MenuList:X,Option:ie,NoOptionsMessage:te,DropdownIndicator:V,ClearIndicator:F,IndicatorsContainer:U,IndicatorSeparator:null},ot=({value:o,defaultValue:t,variant:n="outline",optionAlignment:i="left",isError:a=!1,isClearable:l=!1,isDisabled:s=!1,onSet:c,children:b,className:u})=>{var p,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!==(p=y.get(o))&&void 0!==p?p:null:void 0,O=void 0!==t?null!==(f=y.get(t))&&void 0!==f?f:null:void 0,v=(0,r.useCallback)((e=>{null==c||c(null!==e?e.value:null)}),[c]),x=se(200),{isMenuOpen:j}=x,w=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(x,["isMenuOpen"]),$=(0,r.useMemo)((()=>({variant:n,optionAlignment:i,isMenuOpen:j,isError:a})),[n,i,j,a]);return(0,e.jsx)(L,{value:$,children:(0,e.jsx)(d(),Object.assign({className:u,classNamePrefix:"qlib-select",value:h,defaultValue:O,options:g,onChange:null!=c?v:void 0,isClearable:l,isDisabled:s,placeholder:m("select"),menuPortalTarget:"object"==typeof window?document.body:void 0,components:rt,isMulti:!1,unstyled:!0,"aria-invalid":a},w))})};ot.displayName="Select";const tt={root:a.css`
|
|
1517
|
+
`},nt=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:tt.root,className:a},l,{children:null!=i?i:t}))};nt.displayName="SelectOption";const it={root:a.css`
|
|
1449
1518
|
margin-inline-end: ${$("gap")};
|
|
1450
1519
|
color: ${x("gray",5)};
|
|
1451
|
-
`},
|
|
1520
|
+
`},at=(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:it.root,className:n,ref:o},i,{children:t}))}));at.displayName="SelectOptionIconContainer";const lt=({pageSize:r,defaultPageSize:o,optionPageSizes:t,isDisabled:n=!1,onSet:i,className:a})=>{const{transNumber:l}=D("pageSizeSelect");return(0,e.jsx)(ot,{className:a,value:r,defaultValue:o,variant:"minimal",optionAlignment:"right",isDisabled:n,onSet:i,children:t.map((r=>(0,e.jsx)(nt,{value:r,label:l(r)},r)))})};lt.displayName="PageSizeSelect";const st=(0,r.createContext)({displayedItems:[],resolvedPageProps:{isLoading:!1,isEmpty:!1,page:0,pageCount:1,pageSize:0,optionPageSizes:[],setPage:()=>null,setPageSize:()=>null}}),ct=st.Provider,dt={root:a.css`
|
|
1452
1521
|
inline-size: ${$(16)};
|
|
1453
|
-
`},
|
|
1522
|
+
`},bt=({className:o})=>{const{resolvedPageProps:{pageSize:t,optionPageSizes:n,setPageSize:i}}=(0,r.useContext)(st);return(0,e.jsx)(lt,{css:dt.root,className:o,pageSize:t,onSet:i,defaultPageSize:n[0],optionPageSizes:n})};bt.displayName="PageSizeSelectAuto";const ut=({sortOrder:r,defaultSortOrder:o,iconType:t="number",isDisabled:n=!1,onSet:i,className:a})=>{const{trans:c}=D("sortOrderSelect");return(0,e.jsxs)(ot,{className:a,value:r,defaultValue:o,variant:"minimal",optionAlignment:"right",isDisabled:n,onSet:i,children:[(0,e.jsxs)(nt,{value:"ascending",label:c("ascending"),children:[(0,e.jsx)(at,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:"number"===t?s.faArrowDown19:s.faArrowDownAZ,widthAuto:!0})}),c("ascending")]}),(0,e.jsxs)(nt,{value:"descending",label:c("descending"),children:[(0,e.jsx)(at,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:"number"===t?s.faArrowDown91:s.faArrowDownZA,widthAuto:!0})}),c("descending")]})]})};ut.displayName="SortOrderSelect";const pt=require("@radix-ui/react-switch");const ft={root:e=>a.css`
|
|
1454
1523
|
&[data-qlib-error="false"] {
|
|
1455
1524
|
--qlib-border-color: ${x("gray",5)};
|
|
1456
1525
|
--qlib-focus-color: ${j(x(e,5),.6)};
|
|
@@ -1501,7 +1570,7 @@
|
|
|
1501
1570
|
outline: solid ${q(2)} var(--qlib-focus-color);
|
|
1502
1571
|
outline-offset: ${q(1)};
|
|
1503
1572
|
}
|
|
1504
|
-
`,thumb:
|
|
1573
|
+
`,thumb:a.css`
|
|
1505
1574
|
inline-size: calc(var(--qlib-block-size) - ${q(4)});
|
|
1506
1575
|
block-size: calc(var(--qlib-block-size) - ${q(4)});
|
|
1507
1576
|
inset-block-start: ${q(2)};
|
|
@@ -1517,27 +1586,36 @@
|
|
|
1517
1586
|
border-color: var(--qlib-checked-border-color);
|
|
1518
1587
|
inset-inline-start: calc(var(--qlib-inline-size) - var(--qlib-block-size) + ${q(2)});
|
|
1519
1588
|
}
|
|
1520
|
-
`},
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1589
|
+
`},mt=(0,r.forwardRef)(((o,t)=>{var n,i,{scheme:a="primary",isChecked:l,name:s,isError:c,isRequired:d,isDisabled:b,onSet:u,onChange:p,onBlur:f,className:m}=o,y=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","isChecked","name","isError","isRequired","isDisabled","onSet","onChange","onBlur","className"]);const g=(0,r.useContext)(Ve),h=null!==(n=null!=c?c:null==g?void 0:g.isError)&&void 0!==n&&n,O=null!==(i=null!=b?b:null==g?void 0:g.isDisabled)&&void 0!==i&&i;return(0,e.jsx)(pt.Root,Object.assign({css:ft.root(a),className:m,ref:t,name:s,checked:l,required:d,disabled:O,onCheckedChange:u,"data-qlib-disabled":O,"data-qlib-error":h},y,{children:(0,e.jsx)(pt.Thumb,{css:ft.thumb})}))}));mt.displayName="Checkbox";const yt=e=>a.css`
|
|
1590
|
+
&[data-qlib-size="small"] {
|
|
1591
|
+
--qlib-font-size: ${$(3)};
|
|
1592
|
+
--qlib-padding-block: ${$(.5)};
|
|
1593
|
+
--qlib-padding-inline: ${$(1)};
|
|
1594
|
+
}
|
|
1595
|
+
&[data-qlib-size="medium"] {
|
|
1596
|
+
--qlib-font-size: ${$(4)};
|
|
1597
|
+
--qlib-padding-block: ${$(.75)};
|
|
1598
|
+
--qlib-padding-inline: ${$(1.5)};
|
|
1599
|
+
}
|
|
1600
|
+
padding-block: var(--qlib-padding-block);
|
|
1601
|
+
padding-inline: var(--qlib-padding-inline);
|
|
1602
|
+
font-size: var(--qlib-font-size);
|
|
1525
1603
|
border-radius: ${$(1)};
|
|
1526
1604
|
color: ${x(e,5)};
|
|
1527
1605
|
border: solid ${x(e,1)} ${q(1)};
|
|
1528
|
-
white-space: nowrap;
|
|
1529
1606
|
line-height: 1;
|
|
1607
|
+
white-space: nowrap;
|
|
1530
1608
|
display: inline-block;
|
|
1531
|
-
`,
|
|
1609
|
+
`,gt=(a.css`
|
|
1532
1610
|
margin-inline-end: ${$("gap")};
|
|
1533
|
-
`,(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",
|
|
1611
|
+
`,(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",size:n="small",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,["scheme","size","children","className"]);return(0,e.jsx)("span",Object.assign({css:yt(t),className:a,ref:o,"data-qlib-size":n},l,{children:i}))})));gt.displayName="Tag";const ht={root:a.css`
|
|
1534
1612
|
margin-inline-end: ${$("gap")};
|
|
1535
|
-
`},
|
|
1613
|
+
`},Ot=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("span",Object.assign({css:ht.root,className:n,ref:o},i,{children:t}))}));Ot.displayName="TagIconContainer";const vt={root:a.css`
|
|
1536
1614
|
column-gap: ${$(2)};
|
|
1537
1615
|
row-gap: ${$(1)};
|
|
1538
1616
|
display: inline-flex;
|
|
1539
1617
|
flex-wrap: wrap;
|
|
1540
|
-
`},
|
|
1618
|
+
`},xt=(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:vt.root,className:n,ref:o},i,{children:t}))}));xt.displayName="TagList";const jt={root:a.css`
|
|
1541
1619
|
&[data-qlib-error="false"] {
|
|
1542
1620
|
--qlib-border-color: ${x("gray",3)};
|
|
1543
1621
|
--qlib-focus-border-color: ${x("primary",5)};
|
|
@@ -1560,13 +1638,13 @@
|
|
|
1560
1638
|
border-color: var(--qlib-focus-border-color);
|
|
1561
1639
|
outline: solid ${q(1)} var(--qlib-focus-border-color);
|
|
1562
1640
|
}
|
|
1563
|
-
`,inputContainer:
|
|
1641
|
+
`,inputContainer:a.css`
|
|
1564
1642
|
column-gap: ${$("gap")};
|
|
1565
1643
|
display: flex;
|
|
1566
1644
|
align-items: center;
|
|
1567
1645
|
flex-grow: 1;
|
|
1568
1646
|
flex-shrink: 1;
|
|
1569
|
-
`,input:
|
|
1647
|
+
`,input:a.css`
|
|
1570
1648
|
min-block-size: ${$(6)};
|
|
1571
1649
|
padding-block: ${$(1)};
|
|
1572
1650
|
padding-inline: ${$(2)};
|
|
@@ -1595,7 +1673,7 @@
|
|
|
1595
1673
|
&:disabled {
|
|
1596
1674
|
cursor: inherit;
|
|
1597
1675
|
}
|
|
1598
|
-
`},
|
|
1676
|
+
`},wt=(0,r.forwardRef)(((o,t)=>{var n,i,{value:a,name:l,rowCount:s=4,resize:c="vertical",inputMode:d,autoComplete:b="off",autoFocus:u,isWrapped:p=!0,isError:f=!1,isRequired:m,isDisabled:y,onSet:g,onChange:h,onBlur:O,className:v,textareaClassName:x,textareaId:j}=o,w=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","rowCount","resize","inputMode","autoComplete","autoFocus","isWrapped","isError","isRequired","isDisabled","onSet","onChange","onBlur","className","textareaClassName","textareaId"]);const q=(0,r.useContext)(Ve),k=null!==(n=null!=f?f:null==q?void 0:q.isError)&&void 0!==n&&n,N=null!==(i=null!=y?y:null==q?void 0:q.isDisabled)&&void 0!==i&&i,P=(0,r.useCallback)((e=>{const r=e.target.value;null==g||g(r),null==h||h(e)}),[g,h]);return(0,e.jsx)("label",{className:v,css:jt.root,"data-qlib-size":$,"data-qlib-disabled":N,"data-qlib-error":k,children:(0,e.jsx)("div",{css:jt.inputContainer,children:(0,e.jsx)("textarea",Object.assign({css:jt.input,className:x,id:j,ref:t,value:a,name:l,rows:s,inputMode:d,autoComplete:b,autoFocus:u,required:m,disabled:N,onChange:null!=g||null!=h?P:void 0,onBlur:O,"aria-invalid":k,"data-qlib-wrapped":p,"data-qlib-resize":c},w))})})}));wt.displayName="Textarea";const $t={root:a.css`
|
|
1599
1677
|
width: 1px;
|
|
1600
1678
|
height: 1px;
|
|
1601
1679
|
position: absolute;
|
|
@@ -1604,17 +1682,17 @@
|
|
|
1604
1682
|
opacity: 0;
|
|
1605
1683
|
clip: rect(0px, 0px, 0px, 0px);
|
|
1606
1684
|
clip-path: inset(50%);
|
|
1607
|
-
`},
|
|
1685
|
+
`},qt=(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:$t.root,className:i,ref:o},a,{children:n}))}));qt.displayName="VisuallyHidden";const kt={root:a.css`
|
|
1608
1686
|
block-size: ${$(4.5)};
|
|
1609
1687
|
margin-inline-start: calc(${$(3)} + ${q(1)});
|
|
1610
1688
|
column-gap: ${$(3)};
|
|
1611
1689
|
display: flex;
|
|
1612
1690
|
align-items: center;
|
|
1613
|
-
`},
|
|
1614
|
-
`,badge:
|
|
1691
|
+
`},Nt=(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:kt.root,className:n,ref:o},i,{children:t}))}));Nt.displayName="BulkOperationContainer";const Pt={root:a.css`
|
|
1692
|
+
`,badge:a.css`
|
|
1615
1693
|
margin-block: ${$(-1)};
|
|
1616
1694
|
margin-inline-start: ${$("gap")};
|
|
1617
|
-
`},
|
|
1695
|
+
`},St=(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)(_e,Object.assign({css:Pt.root,className:i,scheme:"gray",variant:"light",isCompact:!0,ref:o},a,{children:[(0,e.jsx)(We,{children:(0,e.jsx)($r,{name:"bulk"})}),l("text"),(0,e.jsx)("span",{css:Pt.badge,children:(0,e.jsx)(qe,{scheme:"gray",size:"small",children:s(t)})})]}))}));St.displayName="BulkOperationButton";const Ct=(0,r.createContext)({isLabel:!1,setHovered:()=>null,setFocusVisible:()=>null}),zt=Ct.Provider;const It={root:a.css`
|
|
1618
1696
|
min-inline-size: ${$(64)};
|
|
1619
1697
|
min-block-size: ${$(14)};
|
|
1620
1698
|
border-radius: ${$(1)};
|
|
@@ -1637,7 +1715,7 @@
|
|
|
1637
1715
|
outline: solid ${q(2)} ${j(x("primary",5),.6)};
|
|
1638
1716
|
outline-offset: ${q(1)};
|
|
1639
1717
|
}
|
|
1640
|
-
`},
|
|
1718
|
+
`},Et=(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),[u,p]=(0,r.useState)(!1),f=n?"label":"article",m=(0,r.useMemo)((()=>({isLabel:n,href:i,onClick:a,setHovered:b,setFocusVisible:p})),[n,i,a,b,p]);return(0,e.jsx)(f,Object.assign({css:It.root,className:l,ref:t,"data-qlib-hover":d,"data-qlib-focus-visible":u,"data-qlib-label":n,"data-qlib-clickable":null!=i||null!=a},c,{children:(0,e.jsx)(zt,{value:m,children:s})}))}));Et.displayName="Card";const Dt={root:a.css`
|
|
1641
1719
|
inset-block-start: ${$(0)};
|
|
1642
1720
|
inset-inline-start: ${$(0)};
|
|
1643
1721
|
padding-inline: ${$(3)};
|
|
@@ -1651,7 +1729,7 @@
|
|
|
1651
1729
|
justify-content: flex-start;
|
|
1652
1730
|
box-sizing: border-box;
|
|
1653
1731
|
position: absolute;
|
|
1654
|
-
`},
|
|
1732
|
+
`},Rt=(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:Dt.root,className:t,ref:o},i,{children:n}))}));Rt.displayName="CardHeadnote";const Mt={root:a.css`
|
|
1655
1733
|
padding-block: ${$(3)};
|
|
1656
1734
|
padding-inline: ${$(3)};
|
|
1657
1735
|
row-gap: ${$(2.5)};
|
|
@@ -1667,7 +1745,7 @@
|
|
|
1667
1745
|
&[data-qlib-has-headnote="true"] {
|
|
1668
1746
|
padding-block-start: ${$(7.5)};
|
|
1669
1747
|
}
|
|
1670
|
-
`},
|
|
1748
|
+
`},Lt=(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)(Ct),b=(0,r.useMemo)((()=>Se(i).some((e=>e.type===Rt))),[i]),u=(0,r.useCallback)((()=>{c(!0)}),[c]),p=(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:Mt.root,href:l,ref:t,onMouseEnter:u,onMouseLeave:p,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:Mt.root,ref:t,onMouseEnter:u,onMouseLeave:p,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:Mt.root,ref:t,onMouseEnter:u,onMouseLeave:p,"data-qlib-clickable":null!=s,"data-qlib-has-headnote":b},a,{children:i}))}));Lt.displayName="CardBody";const At={root:a.css`
|
|
1671
1749
|
&[data-qlib-variant="primary"] {
|
|
1672
1750
|
--qlib-color: ${x("white")};
|
|
1673
1751
|
--qlib-border-color: ${x("primary",6)};
|
|
@@ -1682,11 +1760,46 @@
|
|
|
1682
1760
|
--qlib-hover-background-color: ${x("gray",0)};
|
|
1683
1761
|
--qlib-border-style: solid;
|
|
1684
1762
|
}
|
|
1763
|
+
&:first-of-type {
|
|
1764
|
+
--qlib-top-right-border-radius: var(--qlib-right-border-radius);
|
|
1765
|
+
}
|
|
1766
|
+
&:not(:first-of-type) {
|
|
1767
|
+
--qlib-top-right-border-radius: ${$(0)};
|
|
1768
|
+
}
|
|
1769
|
+
&:last-of-type {
|
|
1770
|
+
--qlib-bottom-border-width: ${q(1)};
|
|
1771
|
+
&[data-qlib-stretched="true"] {
|
|
1772
|
+
--qlib-bottom-right-border-radius: var(--qlib-right-border-radius);
|
|
1773
|
+
flex: 1 1 auto;
|
|
1774
|
+
}
|
|
1775
|
+
&[data-qlib-stretched="false"] {
|
|
1776
|
+
--qlib-bottom-right-border-radius: ${$(0)};
|
|
1777
|
+
flex: 0 0 auto;
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
&:not(:last-of-type) {
|
|
1781
|
+
--qlib-bottom-right-border-radius: ${$(0)};
|
|
1782
|
+
--qlib-bottom-border-width: ${q(0)};
|
|
1783
|
+
flex: 0 0 auto;
|
|
1784
|
+
}
|
|
1785
|
+
&[data-qlib-stretched="true"] {
|
|
1786
|
+
--qlib-bottom-left-border-radius: ${$(0)};
|
|
1787
|
+
}
|
|
1788
|
+
&[data-qlib-stretched="false"] {
|
|
1789
|
+
--qlib-bottom-left-border-radius: ${$(1)};
|
|
1790
|
+
}
|
|
1685
1791
|
inline-size: ${$(8)};
|
|
1792
|
+
padding-block: ${$(2)};
|
|
1686
1793
|
font-size: ${$(4)};
|
|
1687
1794
|
color: var(--qlib-color);
|
|
1688
1795
|
background-color: var(--qlib-background-color);
|
|
1689
1796
|
border: solid ${q(1)} var(--qlib-border-color);
|
|
1797
|
+
border-block-end-width: var(--qlib-bottom-border-width);
|
|
1798
|
+
border-inline-end-width: var(--qlib-right-border-width) !important;
|
|
1799
|
+
border-start-end-radius: var(--qlib-top-right-border-radius);
|
|
1800
|
+
border-end-start-radius: var(--qlib-bottom-left-border-radius);
|
|
1801
|
+
border-end-end-radius: var(--qlib-bottom-right-border-radius);
|
|
1802
|
+
border-start-start-radius: ${$(0)};
|
|
1690
1803
|
transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
|
|
1691
1804
|
flex-grow: 0;
|
|
1692
1805
|
flex-shrink: 0;
|
|
@@ -1696,12 +1809,6 @@
|
|
|
1696
1809
|
justify-content: center;
|
|
1697
1810
|
box-sizing: border-box;
|
|
1698
1811
|
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
1812
|
&:hover:not(:disabled) {
|
|
1706
1813
|
background-color: var(--qlib-hover-background-color);
|
|
1707
1814
|
}
|
|
@@ -1713,7 +1820,7 @@
|
|
|
1713
1820
|
opacity: 0.5;
|
|
1714
1821
|
cursor: inherit;
|
|
1715
1822
|
}
|
|
1716
|
-
`},
|
|
1823
|
+
`},Ft=(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:u,children:p,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:At.root,type:i,disabled:l,onClick:s,onKeyDown:c,onKeyUp:d,onMouseDown:b,onPointerDown:u,ref:o,"aria-label":t,"data-qlib-variant":n,"data-qlib-stretched":a},m,{children:p}))}));Ft.displayName="CardButton";const Bt={root:a.css`
|
|
1717
1824
|
margin-block: ${q(-1)};
|
|
1718
1825
|
margin-inline-end: ${q(-1)};
|
|
1719
1826
|
display: flex;
|
|
@@ -1722,7 +1829,19 @@
|
|
|
1722
1829
|
order: 3;
|
|
1723
1830
|
z-index: 0;
|
|
1724
1831
|
position: relative;
|
|
1725
|
-
`},
|
|
1832
|
+
`},Ht=(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:Bt.root,ref:o},i,{children:n}))}));Ht.displayName="CardButtonList";const Tt={root:a.css`
|
|
1833
|
+
display: flex;
|
|
1834
|
+
flex-direction: column;
|
|
1835
|
+
flex-shrink: 0;
|
|
1836
|
+
&:last-of-type {
|
|
1837
|
+
--qlib-right-border-width: ${q(1)};
|
|
1838
|
+
--qlib-right-border-radius: ${$(1)};
|
|
1839
|
+
}
|
|
1840
|
+
&:not(:last-of-type) {
|
|
1841
|
+
--qlib-right-border-width: ${q(0)};
|
|
1842
|
+
--qlib-right-border-radius: ${$(0)};
|
|
1843
|
+
}
|
|
1844
|
+
`},Vt=(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:Tt.root,ref:o},i,{children:n}))}));Vt.displayName="CardButtonListColumn";const Yt=e=>{e.stopPropagation()};const Ut={root:a.css`
|
|
1726
1845
|
margin-inline-start: ${$(3)};
|
|
1727
1846
|
display: flex;
|
|
1728
1847
|
align-items: center;
|
|
@@ -1730,21 +1849,31 @@
|
|
|
1730
1849
|
flex-grow: 0;
|
|
1731
1850
|
flex-shrink: 0;
|
|
1732
1851
|
order: 1;
|
|
1733
|
-
`},
|
|
1852
|
+
`},Gt=(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)(Ct),c=(0,r.useCallback)((()=>{s(!0)}),[s]),d=(0,r.useCallback)((()=>{s(!1)}),[s]);return(0,e.jsx)("label",Object.assign({className:n,css:Ut.root,onMouseEnter:l?c:void 0,onMouseLeave:l?d:void 0,onClick:Yt,ref:t},a,{children:i}))}));Gt.displayName="CardControlContainer";const _t={root:a.css`
|
|
1853
|
+
padding-inline-start: ${$(3)};
|
|
1854
|
+
color: ${x("gray",5)};
|
|
1855
|
+
display: flex;
|
|
1856
|
+
align-items: center;
|
|
1857
|
+
justify-content: center;
|
|
1858
|
+
cursor: grab;
|
|
1859
|
+
flex-grow: 0;
|
|
1860
|
+
flex-shrink: 0;
|
|
1861
|
+
order: 0;
|
|
1862
|
+
`},Kt=(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:_t.root,ref:o},n,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faGripVertical,widthAuto:!0})}))}));Kt.displayName="CardGrip";const Wt={root:a.css`
|
|
1734
1863
|
font-size: ${$(4)};
|
|
1735
|
-
font-weight: ${
|
|
1736
|
-
`},
|
|
1864
|
+
font-weight: ${v("bold")};
|
|
1865
|
+
`},Qt=(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:Wt.root,as:t,maxLineCount:n,ref:o},l,{children:a}))}));Qt.displayName="CardTitle";const Jt={root:a.css`
|
|
1737
1866
|
row-gap: ${$(3)};
|
|
1738
1867
|
display: flex;
|
|
1739
1868
|
flex-direction: column;
|
|
1740
|
-
`},
|
|
1869
|
+
`},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="CardList";const Xt=e=>a.css`
|
|
1741
1870
|
row-gap: ${$(3)};
|
|
1742
1871
|
column-gap: ${$(3)};
|
|
1743
1872
|
display: grid;
|
|
1744
1873
|
grid-template-columns: repeat(${e}, 1fr);
|
|
1745
1874
|
align-items: flex-start;
|
|
1746
|
-
`,
|
|
1747
|
-
block-size: ${$(
|
|
1875
|
+
`,en=(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:Xt(l),className:n,ref:o},a,{children:i}))}));en.displayName="CardListBody";const rn={root:a.css`
|
|
1876
|
+
block-size: ${$(20)};
|
|
1748
1877
|
row-gap: ${$(2)};
|
|
1749
1878
|
padding-inline: ${$(4)};
|
|
1750
1879
|
color: ${x("gray",5)};
|
|
@@ -1755,22 +1884,22 @@
|
|
|
1755
1884
|
align-items: center;
|
|
1756
1885
|
justify-content: center;
|
|
1757
1886
|
grid-column: 1 / -1;
|
|
1758
|
-
`,icon:
|
|
1759
|
-
font-size: ${$(
|
|
1760
|
-
`},
|
|
1761
|
-
`},
|
|
1887
|
+
`,icon:a.css`
|
|
1888
|
+
font-size: ${$(6)};
|
|
1889
|
+
`},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"]);const{trans:a}=D("cardListEmpty");return(0,e.jsxs)("div",Object.assign({css:rn.root,className:t,ref:o},i,{children:[(0,e.jsx)($r,{css:rn.icon,name:"empty"}),(0,e.jsx)(ar,{as:"p",lineHeight:"normal",children:n||a("empty")})]}))}));on.displayName="CardListEmpty";const tn={root:a.css`
|
|
1890
|
+
`},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"]);return(0,e.jsx)("div",Object.assign({css:tn.root,className:t,ref:o},i,{children:n}))}));nn.displayName="CardListFooter";const an={root:a.css`
|
|
1762
1891
|
display: flex;
|
|
1763
1892
|
align-items: flex-end;
|
|
1764
1893
|
justify-content: space-between;
|
|
1765
|
-
`},
|
|
1894
|
+
`},ln=(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:an.root,className:t,ref:o},i,{children:n}))}));ln.displayName="CardListHeader";const sn={root:a.css`
|
|
1766
1895
|
column-gap: ${$(4)};
|
|
1767
1896
|
display: flex;
|
|
1768
1897
|
order: 1;
|
|
1769
|
-
`},
|
|
1898
|
+
`},cn=(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:sn.root,className:t,ref:o},i,{children:n}))}));cn.displayName="CardListHeaderLeft";const dn={root:a.css`
|
|
1770
1899
|
column-gap: ${$(3)};
|
|
1771
1900
|
display: flex;
|
|
1772
1901
|
order: 2;
|
|
1773
|
-
`},
|
|
1902
|
+
`},bn=(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:dn.root,className:t,ref:o},i,{children:n}))}));bn.displayName="CardListHeaderRight";const un={root:a.css`
|
|
1774
1903
|
block-size: ${$(24)};
|
|
1775
1904
|
row-gap: ${$(2)};
|
|
1776
1905
|
padding-inline: ${$(4)};
|
|
@@ -1782,9 +1911,9 @@
|
|
|
1782
1911
|
align-items: center;
|
|
1783
1912
|
justify-content: center;
|
|
1784
1913
|
grid-column: 1 / -1;
|
|
1785
|
-
`,icon:
|
|
1914
|
+
`,icon:a.css`
|
|
1786
1915
|
font-size: ${$(8)};
|
|
1787
|
-
`},
|
|
1916
|
+
`},pn=(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:un.root,className:t,ref:o},i,{children:[(0,e.jsx)(l.FontAwesomeIcon,{css:un.icon,icon:s.faCircleNotch,spin:!0}),(0,e.jsx)(ar,{as:"p",lineHeight:"normal",children:n||a("loading")})]}))}));pn.displayName="CardListLoading";const fn=(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]),[u,p]=(0,r.useState)(0),f=Math.floor((s.length-1)/d)+1,m=(0,r.useMemo)((()=>s.slice(d*u,d*u+d)),[s,d,u]),y=c?s:m,g=c?n:d,h=c?o:u,O=c?t:f,v=c?l:b,x=c?a:p,j=null==e,w=s.length<=0;return[y,(0,r.useMemo)((()=>({isLoading:j,isEmpty:w,pageSize:g,page:h,pageCount:O,optionPageSizes:i,setPageSize:v,setPage:x})),[j,w,g,h,O,i,x,v])]})(n,i),b=(0,r.useMemo)((()=>({displayedItems:c,resolvedPageProps:d})),[c,d]);return(0,e.jsx)(Zt,Object.assign({className:a,ref:t},s,{children:(0,e.jsx)(ct,{value:b,children:l})}))}));fn.displayName="CardListAuto";const mn=({columnCount:o=1,className:t,children:n})=>{const{displayedItems:i,resolvedPageProps:{isLoading:a,isEmpty:l}}=(0,r.useContext)(st),[s,...c]=Array.isArray(n)?n:[n],d=c.find((e=>e.type===on)),b=c.find((e=>e.type===pn));return(0,e.jsx)(en,{className:t,columnCount:o,children:a?b:l?d:i.map(((e,r)=>s(e,r)))})};mn.displayName="CardListBodyAuto";const yn=(0,r.forwardRef)((({className:o,children:t},n)=>{const{resolvedPageProps:{isLoading:i,isEmpty:a}}=(0,r.useContext)(st);return i||a?null:(0,e.jsx)(nn,{className:o,ref:n,children:t})}));yn.displayName="CardListFooterAuto";const gn={root:a.css`
|
|
1788
1917
|
inline-size: 100%;
|
|
1789
1918
|
padding-block: ${$(8)};
|
|
1790
1919
|
border-block-end: solid ${q(1)} ${x("gray",1)};
|
|
@@ -1795,11 +1924,11 @@
|
|
|
1795
1924
|
position: relative;
|
|
1796
1925
|
flex: 0 0 auto;
|
|
1797
1926
|
z-index: 0;
|
|
1798
|
-
`},
|
|
1927
|
+
`},hn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:gn.root,className:n,ref:o},i,{children:t}))}));hn.displayName="ContentHeader";const On={root:a.css`
|
|
1799
1928
|
font-size: ${$(8)};
|
|
1800
|
-
font-weight: ${
|
|
1929
|
+
font-weight: ${v("bold")};
|
|
1801
1930
|
color: ${x("primary",7)};
|
|
1802
|
-
`},
|
|
1931
|
+
`},vn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(ar,Object.assign({css:On.root,className:n,lineHeight:"normalFixed",ref:o},i,{children:t}))}));vn.displayName="ContentTitle";const xn={root:a.css`
|
|
1803
1932
|
&[data-qlib-digit="3"] {
|
|
1804
1933
|
--qlib-inline-size: ${$(11)};
|
|
1805
1934
|
--qlib-transform-scale: 0.75;
|
|
@@ -1815,12 +1944,12 @@
|
|
|
1815
1944
|
border: solid 1px ${x("gray",1)};
|
|
1816
1945
|
display: flex;
|
|
1817
1946
|
align-items: center;
|
|
1818
|
-
`,icon:
|
|
1947
|
+
`,icon:a.css`
|
|
1819
1948
|
font-size: ${$(3)};
|
|
1820
1949
|
color: ${x("gray",5)};
|
|
1821
1950
|
flex-grow: 0;
|
|
1822
1951
|
flex-shrink: 0;
|
|
1823
|
-
`,count:
|
|
1952
|
+
`,count:a.css`
|
|
1824
1953
|
font-size: ${$(4)};
|
|
1825
1954
|
color: ${x("gray",5)};
|
|
1826
1955
|
display: flex;
|
|
@@ -1832,7 +1961,7 @@
|
|
|
1832
1961
|
transform: scale(var(--qlib-transform-scale), 1);
|
|
1833
1962
|
transform-origin: right center;
|
|
1834
1963
|
}
|
|
1835
|
-
`},
|
|
1964
|
+
`},jn=(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:xn.root,className:a,ref:o,"data-qlib-digit":n},s,{children:[(0,e.jsx)("span",{css:xn.icon,children:i}),(0,e.jsx)("span",{css:xn.count,"data-qlib-max":null!=t&&t>=d,children:null!=t?t<d?c(t):c(d-1)+"+":"?"})]}))}));jn.displayName="CountIndicator";const wn=(0,r.createContext)({scheme:"primary"}),$n=wn.Provider,qn={overlay:a.css`
|
|
1836
1965
|
padding-block: ${$(6)};
|
|
1837
1966
|
padding-inline: ${$(6)};
|
|
1838
1967
|
display: flex;
|
|
@@ -1840,7 +1969,7 @@
|
|
|
1840
1969
|
justify-content: center;
|
|
1841
1970
|
box-sizing: border-box;
|
|
1842
1971
|
z-index: 1000;
|
|
1843
|
-
`,overlaySmartphone:
|
|
1972
|
+
`,overlaySmartphone:a.css`
|
|
1844
1973
|
padding-block: ${$(6)};
|
|
1845
1974
|
padding-inline: ${$(6)};
|
|
1846
1975
|
display: flex;
|
|
@@ -1848,7 +1977,7 @@
|
|
|
1848
1977
|
justify-content: center;
|
|
1849
1978
|
box-sizing: border-box;
|
|
1850
1979
|
z-index: 1000;
|
|
1851
|
-
`,root:
|
|
1980
|
+
`,root:a.css`
|
|
1852
1981
|
&[data-qlib-size="small"] {
|
|
1853
1982
|
--qlib-max-width: ${$(100)};
|
|
1854
1983
|
}
|
|
@@ -1856,7 +1985,7 @@
|
|
|
1856
1985
|
--qlib-max-width: ${$(160)};
|
|
1857
1986
|
}
|
|
1858
1987
|
&[data-qlib-smartphone="false"] {
|
|
1859
|
-
--qlib-dialog-padding-inline: ${$(
|
|
1988
|
+
--qlib-dialog-padding-inline: ${$(6)};
|
|
1860
1989
|
}
|
|
1861
1990
|
&[data-qlib-smartphone="true"] {
|
|
1862
1991
|
--qlib-dialog-padding-inline: ${$(6)};
|
|
@@ -1878,8 +2007,8 @@
|
|
|
1878
2007
|
&.ReactModal__Content--before-close {
|
|
1879
2008
|
transform: translate(${$(0)}, ${$(2)});
|
|
1880
2009
|
}
|
|
1881
|
-
`},
|
|
1882
|
-
`},
|
|
2010
|
+
`},kn=({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]),u=(0,r.useCallback)((e=>{e.preventDefault()}),[]);return(0,e.jsx)(Gr,{css:d?qn.overlaySmartphone:qn.overlay,isOpen:i,label:o,onClose:l,children:(0,e.jsx)(c,{css:qn.root,onSubmit:a?u:void 0,"data-qlib-size":n,"data-qlib-smartphone":d,children:(0,e.jsx)($n,{value:b,children:s})})})};kn.displayName="Dialog";const Nn={root:a.css`
|
|
2011
|
+
`},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)("section",Object.assign({css:Nn.root,className:n,ref:o},i,{children:t}))}));Pn.displayName="DialogBody";const Sn=_e;const Cn={root:a.css`
|
|
1883
2012
|
inset-block-start: ${$(4)};
|
|
1884
2013
|
inset-inline-end: ${$(4)};
|
|
1885
2014
|
block-size: ${$(6)};
|
|
@@ -1899,7 +2028,7 @@
|
|
|
1899
2028
|
&:focus-visible {
|
|
1900
2029
|
outline: solid ${q(2)} ${j(x("primary",5),.6)};
|
|
1901
2030
|
}
|
|
1902
|
-
`},
|
|
2031
|
+
`},zn=(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)(wn);return(0,e.jsx)("button",Object.assign({css:Cn.root,className:n,type:"button",onClick:c,ref:t,"aria-label":a("close")},i,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes,widthAuto:!0})}))}));zn.displayName="DialogCloseButton";const In={root:a.css`
|
|
1903
2032
|
margin-block-start: ${$(6)};
|
|
1904
2033
|
margin-block-end: ${$(-6)};
|
|
1905
2034
|
margin-inline: calc(-1 * var(--qlib-dialog-padding-inline));
|
|
@@ -1912,24 +2041,24 @@
|
|
|
1912
2041
|
flex-direction: row;
|
|
1913
2042
|
align-items: center;
|
|
1914
2043
|
justify-content: center;
|
|
1915
|
-
`},
|
|
2044
|
+
`},En=(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:In.root,className:n,ref:o},i,{children:t}))}));En.displayName="DialogFooter";const Dn={root:a.css`
|
|
1916
2045
|
margin-block-end: ${$(6)};
|
|
1917
2046
|
display: flex;
|
|
1918
2047
|
align-items: center;
|
|
1919
2048
|
justify-content: center;
|
|
1920
|
-
`},
|
|
2049
|
+
`},Rn=(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}))}));Rn.displayName="DialogHeader";const Mn=e=>a.css`
|
|
1921
2050
|
font-size: ${$(6)};
|
|
1922
|
-
font-weight: ${
|
|
2051
|
+
font-weight: ${v("bold")};
|
|
1923
2052
|
letter-spacing: 0.1em;
|
|
1924
2053
|
text-indent: 0.1em;
|
|
1925
2054
|
color: ${x(e,7)};
|
|
1926
|
-
`,
|
|
2055
|
+
`,Ln=(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)(wn);return(0,e.jsx)(s,Object.assign({css:Mn(c),className:a,ref:t},l,{children:i}))}));Ln.displayName="DialogTitle";const An=(0,r.createContext)({scheme:"primary"}),Fn=An.Provider,Bn={overlay:a.css`
|
|
1927
2056
|
display: flex;
|
|
1928
2057
|
align-items: center;
|
|
1929
2058
|
justify-content: end;
|
|
1930
2059
|
box-sizing: border-box;
|
|
1931
2060
|
z-index: 1000;
|
|
1932
|
-
`,root:
|
|
2061
|
+
`,root:a.css`
|
|
1933
2062
|
background-color: ${x("background")};
|
|
1934
2063
|
box-shadow: ${k(j(x("black"),.2),2)};
|
|
1935
2064
|
position: relative;
|
|
@@ -1938,8 +2067,8 @@
|
|
|
1938
2067
|
display: flex;
|
|
1939
2068
|
flex-direction: column;
|
|
1940
2069
|
overflow: hidden;
|
|
1941
|
-
`,rootDesktop:
|
|
1942
|
-
--qlib-padding-inline: ${$(
|
|
2070
|
+
`,rootDesktop:a.css`
|
|
2071
|
+
--qlib-padding-inline: ${$(8)};
|
|
1943
2072
|
width: 90%;
|
|
1944
2073
|
height: 100%;
|
|
1945
2074
|
max-width: ${$(260)}; // 240 + 10 * 2 (両側のパディング分を加える)
|
|
@@ -1952,7 +2081,7 @@
|
|
|
1952
2081
|
&.ReactModal__Content--before-close {
|
|
1953
2082
|
transform: translate(100%, 0%);
|
|
1954
2083
|
}
|
|
1955
|
-
`,rootSmartphone:
|
|
2084
|
+
`,rootSmartphone:a.css`
|
|
1956
2085
|
--qlib-padding-inline: ${$(6)};
|
|
1957
2086
|
width: 100%;
|
|
1958
2087
|
height: 95%;
|
|
@@ -1966,17 +2095,49 @@
|
|
|
1966
2095
|
&.ReactModal__Content--before-close {
|
|
1967
2096
|
transform: translate(0%, 100%);
|
|
1968
2097
|
}
|
|
1969
|
-
`},
|
|
2098
|
+
`},Hn=({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)(Gr,{css:Bn.overlay,isOpen:n,label:o,onClose:a,children:(0,e.jsx)(s,{css:[Bn.root,c?Bn.rootSmartphone:Bn.rootDesktop],onSubmit:i?b:void 0,children:(0,e.jsx)(Fn,{value:d,children:l})})})};Hn.displayName="Drawer";const Tn={root:a.css`
|
|
1970
2099
|
padding-inline: var(--qlib-padding-inline);
|
|
1971
2100
|
padding-block: ${$(8)};
|
|
1972
2101
|
flex-grow: 1;
|
|
1973
2102
|
flex-shrink: 1;
|
|
1974
2103
|
overflow-y: auto;
|
|
1975
|
-
`},
|
|
2104
|
+
`},Vn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Tn.root,className:n,ref:o},i,{children:t}))}));Vn.displayName="DrawerBody";const Yn=_e;const Un=e=>a.css`
|
|
1976
2105
|
font-size: ${$(4)};
|
|
1977
2106
|
letter-spacing: 0.05em;
|
|
1978
2107
|
color: ${x(e,7)};
|
|
1979
|
-
`,
|
|
2108
|
+
`,Gn=(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)(An);return!l&&(0,e.jsx)("div",Object.assign({css:Un(s),className:i,ref:t},a,{children:n}))}));Gn.displayName="DrawerCaption";const _n={root:a.css`
|
|
2109
|
+
inset-block-start: ${$(4)};
|
|
2110
|
+
inset-inline-end: var(--qlib-padding-inline);
|
|
2111
|
+
block-size: ${$(8)};
|
|
2112
|
+
inline-size: ${$(6)};
|
|
2113
|
+
font-size: ${$(6)};
|
|
2114
|
+
color: ${x("gray",5)};
|
|
2115
|
+
border-radius: ${$(1)};
|
|
2116
|
+
transition: color 0.2s ease;
|
|
2117
|
+
display: flex;
|
|
2118
|
+
align-items: center;
|
|
2119
|
+
justify-content: center;
|
|
2120
|
+
position: absolute;
|
|
2121
|
+
cursor: pointer;
|
|
2122
|
+
&:hover {
|
|
2123
|
+
color: ${x("gray",4)};
|
|
2124
|
+
}
|
|
2125
|
+
&:focus-visible {
|
|
2126
|
+
outline: solid ${q(2)} ${j(x("primary",5),.6)};
|
|
2127
|
+
}
|
|
2128
|
+
`},Kn=(0,r.forwardRef)(((o,t)=>{var{className:n}=o,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["className"]);const{trans:a}=D("drawerCloseButton"),{onClose:c}=(0,r.useContext)(An);return(0,e.jsx)("button",Object.assign({css:_n.root,className:n,type:"button",onClick:c,ref:t,"aria-label":a("close")},i,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes,widthAuto:!0})}))}));Kn.displayName="DrawerCloseButton";const Wn={root:a.css`
|
|
2129
|
+
padding-block: ${$(4)};
|
|
2130
|
+
padding-inline: var(--qlib-padding-inline);
|
|
2131
|
+
column-gap: ${$(6)};
|
|
2132
|
+
background-color: ${x("white")};
|
|
2133
|
+
border-block-start: solid ${q(1)} ${x("gray",1)};
|
|
2134
|
+
display: flex;
|
|
2135
|
+
flex-direction: row;
|
|
2136
|
+
align-items: center;
|
|
2137
|
+
justify-content: center;
|
|
2138
|
+
flex-grow: 0;
|
|
2139
|
+
flex-shrink: 0;
|
|
2140
|
+
`},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:Wn.root,className:n,ref:o},i,{children:t}))}));Qn.displayName="DrawerFooter";const Jn={root:a.css`
|
|
1980
2141
|
padding-block: ${$(4)};
|
|
1981
2142
|
padding-inline: var(--qlib-padding-inline);
|
|
1982
2143
|
column-gap: ${$(8)};
|
|
@@ -1986,24 +2147,24 @@
|
|
|
1986
2147
|
align-items: center;
|
|
1987
2148
|
flex-grow: 0;
|
|
1988
2149
|
flex-shrink: 0;
|
|
1989
|
-
`},
|
|
2150
|
+
`},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)("div",Object.assign({css:Jn.root,className:n,ref:o},i,{children:t}))}));Zn.displayName="DrawerHeader";const Xn={root:a.css`
|
|
1990
2151
|
row-gap: ${$(2)};
|
|
1991
2152
|
display: flex;
|
|
1992
2153
|
flex-direction: column;
|
|
1993
2154
|
flex-grow: 1;
|
|
1994
2155
|
flex-shrink: 1;
|
|
1995
|
-
`},
|
|
2156
|
+
`},ei=(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:Xn.root,className:n,ref:o},i,{children:t}))}));ei.displayName="DrawerHeaderLeft";const ri={root:a.css`
|
|
1996
2157
|
flex-grow: 0;
|
|
1997
2158
|
flex-shrink: 0;
|
|
1998
|
-
`},
|
|
2159
|
+
`},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)("div",Object.assign({css:ri.root,className:n,ref:o},i,{children:t}))}));oi.displayName="DrawerHeaderRight";const ti=e=>a.css`
|
|
1999
2160
|
font-size: ${$(8)};
|
|
2000
|
-
font-weight: ${
|
|
2161
|
+
font-weight: ${v("bold")};
|
|
2001
2162
|
letter-spacing: 0.1em;
|
|
2002
2163
|
color: ${x(e,7)};
|
|
2003
2164
|
&[data-qlib-smartphone="true"] {
|
|
2004
2165
|
font-size: ${$(8)};
|
|
2005
2166
|
}
|
|
2006
|
-
`,
|
|
2167
|
+
`,ni=(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)(An);return(0,e.jsx)(s,Object.assign({css:ti(d),className:a,ref:t,"data-qlib-smartphone":c},l,{children:i}))}));ni.displayName="DrawerTitle";const ii=(0,r.createContext)(void 0),ai=ii.Provider;const li={root:a.css`
|
|
2007
2168
|
&[data-qlib-size="small"] {
|
|
2008
2169
|
--qlib-font-size: ${$(3)};
|
|
2009
2170
|
}
|
|
@@ -2012,15 +2173,15 @@
|
|
|
2012
2173
|
}
|
|
2013
2174
|
font-size: var(--qlib-font-size);
|
|
2014
2175
|
color: ${x("gray",5)};
|
|
2015
|
-
`,icon:
|
|
2176
|
+
`,icon:a.css`
|
|
2016
2177
|
margin-inline-end: ${$("gap")};
|
|
2017
2178
|
display: inline;
|
|
2018
|
-
`},
|
|
2179
|
+
`},si=(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)(ii);return(0,e.jsx)(Me,Object.assign({css:li.root,className:a,ref:t,"data-qlib-size":null!==(n=null==c?void 0:c.size)&&void 0!==n?n:i},s,{children:l}))}));si.displayName="Footnote";const ci={root:a.css`
|
|
2019
2180
|
margin-inline-end: ${$("gap")};
|
|
2020
2181
|
display: inline;
|
|
2021
2182
|
flex-grow: 0;
|
|
2022
2183
|
flex-shrink: 0;
|
|
2023
|
-
`},
|
|
2184
|
+
`},di=(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}))}));di.displayName="FootnoteIconContainer";const bi={root:a.css`
|
|
2024
2185
|
&[data-qlib-size="small"] {
|
|
2025
2186
|
--qlib-row-gap: ${$(1.5)};
|
|
2026
2187
|
}
|
|
@@ -2030,7 +2191,7 @@
|
|
|
2030
2191
|
row-gap: var(--qlib-row-gap);
|
|
2031
2192
|
display: flex;
|
|
2032
2193
|
flex-direction: column;
|
|
2033
|
-
`},
|
|
2194
|
+
`},ui=(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:bi.root,className:i,ref:t,"data-qlib-size":n},l,{children:(0,e.jsx)(ai,{value:(0,r.useMemo)((()=>({size:n})),[n]),children:a})}))}));ui.displayName="FootnoteList";const pi={root:a.css`
|
|
2034
2195
|
&[data-qlib-size="small"] {
|
|
2035
2196
|
--qlib-column-gap: ${$(3)};
|
|
2036
2197
|
}
|
|
@@ -2039,31 +2200,31 @@
|
|
|
2039
2200
|
}
|
|
2040
2201
|
column-gap: var(--qlib-column-gap);
|
|
2041
2202
|
display: flex;
|
|
2042
|
-
`},
|
|
2203
|
+
`},fi=(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)(ii);return(0,e.jsx)("div",Object.assign({css:pi.root,className:i,ref:t,"data-qlib-size":null!==(n=null==s?void 0:s.size)&&void 0!==n?n:"small"},l,{children:a}))}));fi.displayName="FootnoteListRow";const mi=(0,r.createContext)({orientation:"horizontal"}),yi=mi.Provider;const gi={rootHorizontal:a.css`
|
|
2043
2204
|
display: inline-flex;
|
|
2044
2205
|
align-items: baseline;
|
|
2045
|
-
`,rootVertical:
|
|
2206
|
+
`,rootVertical:a.css`
|
|
2046
2207
|
display: inline-flex;
|
|
2047
2208
|
flex-direction: column;
|
|
2048
|
-
`},
|
|
2209
|
+
`},hi=(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?gi.rootHorizontal:gi.rootVertical,className:i,ref:t},l,{children:(0,e.jsx)(yi,{value:s,children:a})}))}));const Oi={rootHorizontal:a.css`
|
|
2049
2210
|
font-size: 80%;
|
|
2050
2211
|
::before {
|
|
2051
2212
|
margin-inline: 0.25em;
|
|
2052
2213
|
content: "/";
|
|
2053
2214
|
}
|
|
2054
|
-
`,rootVertical:
|
|
2215
|
+
`,rootVertical:a.css`
|
|
2055
2216
|
padding-inline: 0.2em;
|
|
2056
2217
|
font-size: 80%;
|
|
2057
2218
|
text-align: center;
|
|
2058
|
-
`},
|
|
2059
|
-
`,rootVertical:
|
|
2219
|
+
`},vi=(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)(mi);return(0,e.jsx)("span",Object.assign({css:"horizontal"===s?Oi.rootHorizontal:Oi.rootVertical,className:n,ref:t},a,{children:"number"==typeof i?l(i):i}))}));vi.displayName="FractionViewDenominator";const xi={rootHorizontal:a.css`
|
|
2220
|
+
`,rootVertical:a.css`
|
|
2060
2221
|
padding-inline: 0.2em;
|
|
2061
2222
|
padding-block-end: 0.1em;
|
|
2062
2223
|
margin-block-end: 0.2em;
|
|
2063
2224
|
box-sizing: border-box;
|
|
2064
2225
|
text-align: center;
|
|
2065
2226
|
border-bottom: solid ${q(1)} currentcolor;
|
|
2066
|
-
`},
|
|
2227
|
+
`},ji=(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)(mi);return(0,e.jsx)("span",Object.assign({css:"horizontal"===s?xi.rootHorizontal:xi.rootVertical,className:n,ref:t},a,{children:"number"==typeof i?l(i):i}))}));ji.displayName="FractionViewNumerator";const wi={root:a.css`
|
|
2067
2228
|
inline-size: 100%;
|
|
2068
2229
|
block-size: ${$(16)};
|
|
2069
2230
|
padding-inline: ${$(10)};
|
|
@@ -2078,14 +2239,14 @@
|
|
|
2078
2239
|
&[data-smartphone="true"] {
|
|
2079
2240
|
padding-inline: ${$(6)};
|
|
2080
2241
|
}
|
|
2081
|
-
`}
|
|
2242
|
+
`},$i=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);const a=No();return(0,e.jsx)("header",Object.assign({css:wi.root,className:n,ref:o,"data-smartphone":a},i,{children:t}))}));$i.displayName="Sidebar";const qi={root:a.css`
|
|
2082
2243
|
align-self: center;
|
|
2083
2244
|
flex-grow: 0;
|
|
2084
2245
|
flex-shrink: 0;
|
|
2085
|
-
`},
|
|
2246
|
+
`},ki=(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:qi.root,className:n,ref:o},i,{children:t}))}));ki.displayName="HeaderLeft";const Ni={root:a.css`
|
|
2086
2247
|
column-gap: ${$(4)};
|
|
2087
2248
|
display: flex;
|
|
2088
|
-
`},
|
|
2249
|
+
`},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"]);return(0,e.jsx)("div",Object.assign({css:Ni.root,className:n,ref:o},i,{children:t}))}));Pi.displayName="HeaderMenu";const Si=e=>a.css`
|
|
2089
2250
|
--qlib-highlight-color: transparent;
|
|
2090
2251
|
color: ${x("gray",5)};
|
|
2091
2252
|
cursor: pointer;
|
|
@@ -2099,7 +2260,7 @@
|
|
|
2099
2260
|
&[data-active="true"] {
|
|
2100
2261
|
--qlib-highlight-color: ${x(e,5)};
|
|
2101
2262
|
color: ${x("primary",5)};
|
|
2102
|
-
font-weight: ${
|
|
2263
|
+
font-weight: ${v("bold")};
|
|
2103
2264
|
}
|
|
2104
2265
|
&::before {
|
|
2105
2266
|
inset-inline: ${$(0)};
|
|
@@ -2110,13 +2271,13 @@
|
|
|
2110
2271
|
position: absolute;
|
|
2111
2272
|
content: "";
|
|
2112
2273
|
}
|
|
2113
|
-
`,
|
|
2274
|
+
`,Ci=(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:Si(t),href:n,ref:o,"data-active":i},s,{children:a}))}));Ci.displayName="HeaderMenuItem";const zi={root:a.css`
|
|
2114
2275
|
margin-inline-end: ${$("gap")};
|
|
2115
2276
|
color: var(--qlib-icon-color);
|
|
2116
2277
|
display: inline;
|
|
2117
2278
|
flex-grow: 0;
|
|
2118
2279
|
flex-shrink: 0;
|
|
2119
|
-
`},
|
|
2280
|
+
`},Ii=(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:zi.root,className:n,ref:o},i,{children:t}))}));Ii.displayName="HeaderMenuItemIconContainer";const Ei=(0,r.createContext)({setOpen:()=>null,listRef:{current:[]},activeIndex:null,getItemProps:()=>({})}),Di=Ei.Provider;var Ri=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 Mi=e=>a.css`
|
|
2120
2281
|
--qlib-icon-color: ${x(null!=e?e:"gray",5)};
|
|
2121
2282
|
padding-block: ${$(2)};
|
|
2122
2283
|
padding-inline: ${$(2)};
|
|
@@ -2133,10 +2294,10 @@
|
|
|
2133
2294
|
opacity: 0.5;
|
|
2134
2295
|
cursor: inherit;
|
|
2135
2296
|
}
|
|
2136
|
-
`,
|
|
2297
|
+
`,Li=(a.css`
|
|
2137
2298
|
margin-inline-end: ${$("gap")};
|
|
2138
2299
|
color: var(--qlib-icon-color);
|
|
2139
|
-
`,(0,r.forwardRef)(((o,t)=>{var{scheme:n=null,isDisabled:
|
|
2300
|
+
`,(0,r.forwardRef)(((o,t)=>{var{scheme:n=null,isDisabled:i=!1,onClick:a,children:l,className:s}=o;const c=Ri(o,["scheme","isDisabled","onClick","children","className"]),{index:d}=c,b=Ri(c,["index"]),{setOpen:u,listRef:p,activeIndex:f,getItemProps:m}=(0,r.useContext)(Ei),y=(0,er.useMergeRefs)([t,e=>p.current[d]=e]),g=(0,r.useCallback)((e=>{u(!1),null==a||a(e)}),[u,a]);return(0,e.jsx)("button",Object.assign({css:Mi(n),className:s,ref:y},m({tabIndex:f===d?0:-1,onClick:g,disabled:i}),b,{children:l}))})));Li.displayName="MenuItem";const Ai={root:a.css`
|
|
2140
2301
|
inline-size: ${$(48)};
|
|
2141
2302
|
max-block-size: ${$(60)};
|
|
2142
2303
|
border-radius: ${$(1)};
|
|
@@ -2152,20 +2313,20 @@
|
|
|
2152
2313
|
&[data-qlib-status="open"] {
|
|
2153
2314
|
opacity: 1;
|
|
2154
2315
|
}
|
|
2155
|
-
`,inner:
|
|
2316
|
+
`,inner:a.css`
|
|
2156
2317
|
display: flex;
|
|
2157
2318
|
flex-direction: column;
|
|
2158
|
-
`},
|
|
2319
|
+
`},Fi=(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:Ai.root,className:s,style:l,ref:o,"data-qlib-status":i},d,{children:(0,e.jsx)("div",{css:Ai.inner,children:c})}))})})})),Bi=({trigger:o,placement:t="bottom-start",fitWidth:n=!1,className:i,children:a})=>{const[l,s]=(0,r.useState)(!1),c=(0,r.useRef)([]),[d,b]=(0,r.useState)(null),{refs:u,floatingStyles:p,context:f}=(0,er.useFloating)({open:l,onOpenChange:s,placement:t,middleware:[(0,er.offset)(2),...n?[Hi()]:[]]}),{isMounted:m,status:y}=(0,er.useTransitionStatus)(f,{duration:200}),g=(0,er.useClick)(f),h=(0,er.useDismiss)(f),O=(0,er.useListNavigation)(f,{listRef:c,activeIndex:d,onNavigate:b}),v=(0,er.useRole)(f,{role:"menu"}),{getReferenceProps:x,getFloatingProps:j,getItemProps:w}=(0,er.useInteractions)([g,h,O,v]),$=(0,r.useMemo)((()=>({setOpen:s,listRef:c,activeIndex:d,getItemProps:w})),[s,c,d,w]);return(0,e.jsxs)(e.Fragment,{children:[null!=o&&(0,r.cloneElement)(o,Object.assign({ref:u.setReference},x())),(0,e.jsx)(Fi,Object.assign({className:i,isOpen:l,isMounted:m,status:y,context:f,style:p,ref:u.setFloating},j(),{children:(0,e.jsx)(Di,{value:$,children:Ti(a)})}))]})},Hi=()=>(0,er.size)({apply({rects:e,elements:r}){Object.assign(r.floating.style,{width:`${e.reference.width}px`})}}),Ti=e=>{let o=-1;return r.Children.map(e,(e=>(0,Pe.isElement)(e)?e.type===Li?(o++,(0,r.cloneElement)(e,{index:o})):e:void 0))};const Vi={root:a.css`
|
|
2159
2320
|
margin-inline-end: ${$("gap")};
|
|
2160
2321
|
color: var(--qlib-icon-color);
|
|
2161
2322
|
display: inline;
|
|
2162
2323
|
flex-grow: 0;
|
|
2163
2324
|
flex-shrink: 0;
|
|
2164
|
-
`},
|
|
2325
|
+
`},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)("span",Object.assign({css:Vi.root,className:n,ref:o},i,{children:t}))}));Yi.displayName="MenuItemIconContainer";const Ui={root:a.css`
|
|
2165
2326
|
inline-size: 100%;
|
|
2166
2327
|
margin-block: ${$(1)};
|
|
2167
2328
|
border-block-start: solid ${q(1)} ${x("gray",1)};
|
|
2168
|
-
`},
|
|
2329
|
+
`},Gi=(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:Ui.root,className:i,ref:o,role:"separator"},a))}));Gi.displayName="MenuDivider";const _i={root:a.css`
|
|
2169
2330
|
column-gap: ${$(4)};
|
|
2170
2331
|
display: flex;
|
|
2171
2332
|
align-items: center;
|
|
@@ -2173,21 +2334,33 @@
|
|
|
2173
2334
|
position: relative;
|
|
2174
2335
|
pointer-events: all;
|
|
2175
2336
|
transition: opacity 0.2s ease;
|
|
2176
|
-
`,button:
|
|
2337
|
+
`,button:a.css`
|
|
2177
2338
|
column-gap: ${$(2)};
|
|
2178
2339
|
display: flex;
|
|
2179
2340
|
flex-grow: 0;
|
|
2180
2341
|
flex-shrink: 0;
|
|
2181
|
-
`,center:
|
|
2342
|
+
`,center:a.css`
|
|
2182
2343
|
color: ${x("gray",5)};
|
|
2183
2344
|
display: flex;
|
|
2184
2345
|
align-items: baseline;
|
|
2185
2346
|
justify-content: center;
|
|
2186
2347
|
flex-grow: 1;
|
|
2187
2348
|
flex-shrink: 1;
|
|
2188
|
-
`,small:
|
|
2349
|
+
`,small:a.css`
|
|
2189
2350
|
font-size: 80%;
|
|
2190
|
-
`},
|
|
2351
|
+
`},Ki=(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,u=n<i-1,p=(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:_i.root,className:l,ref:t,"aria-label":c("label")},s,{children:[(0,e.jsxs)("div",{css:_i.button,children:[(0,e.jsx)(kr,{scheme:"gray",variant:"light",label:c("first"),isDisabled:!b,onClick:p,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:_i.center,children:(0,e.jsxs)(hi,{orientation:"horizontal",children:[(0,e.jsx)(ji,{children:d(n+1)}),(0,e.jsx)(vi,{children:d(i)})]})}),(0,e.jsxs)("div",{css:_i.button,children:[(0,e.jsx)(kr,{scheme:"gray",variant:"light",label:c("next"),isDisabled:!u,onClick:y,children:(0,e.jsx)($r,{name:"next"})}),(0,e.jsx)(kr,{scheme:"gray",variant:"light",label:c("last"),isDisabled:!u,onClick:f,children:(0,e.jsx)($r,{name:"last"})})]})]}))}));Ki.displayName="Pagination";const Wi=(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)(st);return a||l?null:(0,e.jsx)(Ki,Object.assign({className:n,page:s,pageCount:c,setPage:d,ref:t},i))}));Wi.displayName="PaginationAuto";const Qi={pane:a.css`
|
|
2352
|
+
padding: ${$(2)};
|
|
2353
|
+
border-radius: ${$(1)};
|
|
2354
|
+
background-color: ${x("white")};
|
|
2355
|
+
border: solid ${q(1)} ${x("gray",1)};
|
|
2356
|
+
box-shadow: ${k(j(x("gray",5),.2),1)};
|
|
2357
|
+
transition: opacity 0.2s ease;
|
|
2358
|
+
opacity: 0;
|
|
2359
|
+
z-index: 2000;
|
|
2360
|
+
&[data-qlib-status="open"] {
|
|
2361
|
+
opacity: 1;
|
|
2362
|
+
}
|
|
2363
|
+
`},Ji=({trigger:o,triggerType:t="click",triggerRest:n=null,isInline:i=!1,placement:a="bottom-start",className:l,children:s})=>{const[c,d]=(0,r.useState)(!1),{refs:b,floatingStyles:u,context:p}=(0,er.useFloating)({open:c,onOpenChange:d,placement:a,whileElementsMounted:er.autoUpdate,middleware:[(0,er.offset)(2),(0,er.flip)(),i&&(0,er.inline)()]}),{isMounted:f,status:m}=(0,er.useTransitionStatus)(p,{duration:200}),y=(0,er.useClick)(p,{enabled:"click"===t}),g=(0,er.useFocus)(p,{enabled:"focus"===t}),h=(0,er.useHover)(p,{enabled:"hover"===t,restMs:null!=n?n:0,handleClose:(0,er.safePolygon)()}),O=(0,er.useDismiss)(p),v=(0,er.useRole)(p,{role:"tooltip"}),{getReferenceProps:x,getFloatingProps:j}=(0,er.useInteractions)([y,g,h,O,v]);return(0,e.jsxs)(e.Fragment,{children:[null!=o&&(0,r.cloneElement)(o,Object.assign({ref:b.setReference},x())),f&&(0,e.jsx)(er.FloatingPortal,{children:(0,e.jsx)("div",Object.assign({css:Qi.pane,className:l,style:u,ref:b.setFloating,"data-qlib-status":m},j(),{children:s}))})]})};const Zi={root:a.css`
|
|
2191
2364
|
inline-size: ${1.6}em;
|
|
2192
2365
|
block-size: ${1.6}em;
|
|
2193
2366
|
vertical-align: -0.27em;
|
|
@@ -2196,12 +2369,12 @@
|
|
|
2196
2369
|
justify-content: center;
|
|
2197
2370
|
flex-grow: 0;
|
|
2198
2371
|
flex-shrink: 0;
|
|
2199
|
-
`,icon:e=>
|
|
2372
|
+
`,icon:e=>a.css`
|
|
2200
2373
|
block-size: 100%;
|
|
2201
2374
|
aspect-ratio: 576 / 512;
|
|
2202
2375
|
overflow: visible;
|
|
2203
2376
|
& >text {
|
|
2204
|
-
font-weight: ${
|
|
2377
|
+
font-weight: ${v("bold")};
|
|
2205
2378
|
}
|
|
2206
2379
|
& >text:nth-of-type(1) {
|
|
2207
2380
|
stroke-width: 32;
|
|
@@ -2244,26 +2417,100 @@
|
|
|
2244
2417
|
stroke: ${x(e,5)};
|
|
2245
2418
|
}
|
|
2246
2419
|
}
|
|
2247
|
-
`},
|
|
2420
|
+
`},Xi=(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:Zi.root,className:a,ref:o},l,{children:(0,e.jsxs)("svg",{css:Zi.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)})]})}))}));Xi.displayName="RankView";const ea={root:a.css`
|
|
2421
|
+
min-block-size: initial;
|
|
2422
|
+
display: grid;
|
|
2423
|
+
grid-column: 1 / -1;
|
|
2424
|
+
grid-template-columns: subgrid;
|
|
2425
|
+
--qlib-border-start-end-radius: ${$(1)};
|
|
2426
|
+
--qlib-border-end-end-radius: ${$(1)};
|
|
2427
|
+
&:not(:nth-of-type(1)) {
|
|
2428
|
+
border-start-start-radius: ${$(0)};
|
|
2429
|
+
border-start-end-radius: ${$(0)};
|
|
2430
|
+
--qlib-border-start-end-radius: ${$(0)};
|
|
2431
|
+
}
|
|
2432
|
+
&:not(:nth-last-of-type(1)) {
|
|
2433
|
+
border-block-end: none !important;
|
|
2434
|
+
border-end-start-radius: ${$(0)};
|
|
2435
|
+
border-end-end-radius: ${$(0)};
|
|
2436
|
+
--qlib-border-end-end-radius: ${$(0)};
|
|
2437
|
+
}
|
|
2438
|
+
[data-qlib-hover="true"] +& {
|
|
2439
|
+
border-block-start: solid ${q(1)} ${x("primary",1)};
|
|
2440
|
+
}
|
|
2441
|
+
`},ra=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)(Et,Object.assign({css:ea.root},t,{children:o}))};const oa={root:a.css`
|
|
2442
|
+
padding-inline: ${$(0)};
|
|
2443
|
+
display: grid;
|
|
2444
|
+
grid-template-columns: subgrid;
|
|
2445
|
+
&[data-qlib-has-button="true"] {
|
|
2446
|
+
grid-column: 1 / -2;
|
|
2447
|
+
}
|
|
2448
|
+
&[data-qlib-has-button="false"] {
|
|
2449
|
+
grid-column: 1 / -1;
|
|
2450
|
+
}
|
|
2451
|
+
& >* {
|
|
2452
|
+
padding-inline: ${$(3)};
|
|
2453
|
+
display: flex;
|
|
2454
|
+
flex-direction: column;
|
|
2455
|
+
align-items: flex-start;
|
|
2456
|
+
justify-content: center;
|
|
2457
|
+
}
|
|
2458
|
+
& >:not(:first-child) {
|
|
2459
|
+
border-inline-start: solid ${q(1)} ${x("gray",1)};
|
|
2460
|
+
}
|
|
2461
|
+
`},ta=r=>{var{hasButton:o=!1,children: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,["hasButton","children"]);return(0,e.jsx)(Lt,Object.assign({css:oa.root,"data-qlib-has-button":o},n,{children:t}))};const na={root:a.css`
|
|
2462
|
+
&:last-of-type {
|
|
2463
|
+
border-start-end-radius: var(--qlib-border-start-end-radius);
|
|
2464
|
+
border-end-end-radius: var(--qlib-border-end-end-radius);
|
|
2465
|
+
}
|
|
2466
|
+
`},ia=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)(Ft,Object.assign({css:na.root},t,{children:o}))};const aa={root:a.css`
|
|
2467
|
+
display: grid;
|
|
2468
|
+
`},la=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)(fn,Object.assign({css:aa.root},t,{children:o}))};const sa={root:a.css`
|
|
2469
|
+
row-gap: ${$(0)};
|
|
2470
|
+
column-gap: initial;
|
|
2471
|
+
display: grid;
|
|
2472
|
+
grid-column: 1 / -1;
|
|
2473
|
+
grid-template-columns: subgrid;
|
|
2474
|
+
`},ca=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)(mn,Object.assign({css:sa.root},t,{children:o}))};const da={root:a.css`
|
|
2475
|
+
grid-column: 1 / -1;
|
|
2476
|
+
`},ba=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)(yn,Object.assign({css:da.root},t,{children:o}))},ua={root:a.css`
|
|
2477
|
+
margin-block-end: ${$(-1)};
|
|
2478
|
+
font-size: ${$(3)};
|
|
2479
|
+
color: ${x("gray",5)};
|
|
2480
|
+
display: grid;
|
|
2481
|
+
grid-column: 1 / -1;
|
|
2482
|
+
grid-template-columns: subgrid;
|
|
2483
|
+
align-items: flex-end;
|
|
2484
|
+
& >* {
|
|
2485
|
+
padding-inline: ${$(3)};
|
|
2486
|
+
}
|
|
2487
|
+
`},pa=({children:r})=>(0,e.jsx)("div",{css:ua.root,children:r}),fa=(0,r.createContext)({activeIndex:-1,count:0}),ma=fa.Provider,ya=(0,r.createContext)({index:0}),ga=ya.Provider;var ha=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 Oa={root:e=>a.css`
|
|
2248
2488
|
--qlib-highlight-color: ${x(e,5)};
|
|
2489
|
+
list-style: none;
|
|
2490
|
+
flex-grow: 0;
|
|
2491
|
+
flex-shrink: 0;
|
|
2492
|
+
`,inner:a.css`
|
|
2249
2493
|
column-gap: ${$(2)};
|
|
2250
2494
|
display: flex;
|
|
2251
2495
|
flex-direction: column;
|
|
2252
2496
|
flex-grow: 0;
|
|
2253
2497
|
flex-shrink: 0;
|
|
2254
|
-
|
|
2498
|
+
&[data-clickable="true"] {
|
|
2499
|
+
cursor: pointer;
|
|
2500
|
+
}
|
|
2501
|
+
`},va=(0,r.forwardRef)(((o,t)=>{var{scheme:n="primary",href:i,onClick:a,children:l,className:s}=o;const c=ha(o,["scheme","href","onClick","children","className"]),{index:d}=c,b=ha(c,["index"]),u=(0,r.useMemo)((()=>({index:d})),[d]);return(0,e.jsx)("li",Object.assign({css:Oa.root(n),className:s,ref:t},b,{children:(0,e.jsx)(ga,{value:u,children:null!=i?(0,e.jsx)("a",{css:Oa.inner,href:i,onClick:a,"data-clickable":!0,children:l}):null!=a?(0,e.jsx)("button",{css:Oa.inner,onClick:a,"data-clickable":!0,children:l}):(0,e.jsx)("div",{css:Oa.inner,children:l})})}))}));va.displayName="StepperItem";const xa={root:a.css`
|
|
2255
2502
|
column-gap: ${$(4)};
|
|
2256
2503
|
row-gap: ${$(4)};
|
|
2257
2504
|
display: flex;
|
|
2258
2505
|
flex-direction: row;
|
|
2259
2506
|
flex-wrap: wrap;
|
|
2260
|
-
`},
|
|
2507
|
+
`},ja=(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=wa(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:xa.root,className:l,ref:t},s,{children:(0,e.jsx)(ma,{value:b,children:c})}))})),wa=e=>{let o=-1;return r.Children.map(e,(e=>(0,Pe.isElement)(e)?e.type===va?(o++,(0,r.cloneElement)(e,{index:o})):e:void 0))};ja.displayName="Stepper";const $a={root:a.css`
|
|
2261
2508
|
margin-block-start: ${$(2)};
|
|
2262
2509
|
display: flex;
|
|
2263
2510
|
flex-direction: column;
|
|
2264
2511
|
flex-grow: 1;
|
|
2265
2512
|
flex-shrink: 1;
|
|
2266
|
-
`},
|
|
2513
|
+
`},qa=(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:$a.root,className:n,ref:o},i,{children:t}))}));qa.displayName="StepperBody";const ka={root:a.css`
|
|
2267
2514
|
column-gap: ${$(1)};
|
|
2268
2515
|
display: flex;
|
|
2269
2516
|
flex-direction: row;
|
|
@@ -2271,7 +2518,7 @@
|
|
|
2271
2518
|
align-items: center;
|
|
2272
2519
|
flex-grow: 0;
|
|
2273
2520
|
flex-shrink: 0;
|
|
2274
|
-
`,number:
|
|
2521
|
+
`,number:a.css`
|
|
2275
2522
|
inline-size: ${$(6)};
|
|
2276
2523
|
block-size: ${$(6)};
|
|
2277
2524
|
font-size: ${$(3)};
|
|
@@ -2285,7 +2532,7 @@
|
|
|
2285
2532
|
&[data-status="completed"] {
|
|
2286
2533
|
border-color: var(--qlib-highlight-color);
|
|
2287
2534
|
background-color: ${x("white")};
|
|
2288
|
-
color:
|
|
2535
|
+
color: var(--qlib-highlight-color);
|
|
2289
2536
|
}
|
|
2290
2537
|
&[data-status="active"] {
|
|
2291
2538
|
border-color: var(--qlib-highlight-color);
|
|
@@ -2297,7 +2544,7 @@
|
|
|
2297
2544
|
background-color: ${x("white")};
|
|
2298
2545
|
color: ${x("gray",5)};
|
|
2299
2546
|
}
|
|
2300
|
-
`,border:
|
|
2547
|
+
`,border:a.css`
|
|
2301
2548
|
block-size: ${$(1)};
|
|
2302
2549
|
margin-inline-end: ${$(-3)};
|
|
2303
2550
|
background-color: ${x("gray",1)};
|
|
@@ -2311,17 +2558,17 @@
|
|
|
2311
2558
|
&[data-highlight="true"] {
|
|
2312
2559
|
background-color: var(--qlib-highlight-color);
|
|
2313
2560
|
}
|
|
2314
|
-
`},
|
|
2561
|
+
`},Na=(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}=Lo("stepper"),{index:d}=(0,r.useContext)(ya),{activeIndex:b,count:u}=(0,r.useContext)(fa),p=d<b?"completed":d===b?"active":"upcoming";return(0,e.jsxs)("div",Object.assign({css:ka.root,className:i,ref:t},a,{children:[(0,e.jsx)("div",{css:ka.number,"data-status":p,children:d<b?(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCheck,widthAuto:!0}):null!=n?n:c(d+1)}),(0,e.jsx)("div",{css:ka.border,"aria-hidden":!0,"data-visible":d<u-1,"data-highlight":d+1<=b})]}))}));Na.displayName="StepperNumber";const Pa={root:a.css`
|
|
2315
2562
|
font-size: ${$(4)};
|
|
2316
|
-
font-weight: ${
|
|
2317
|
-
`},
|
|
2563
|
+
font-weight: ${v("bold")};
|
|
2564
|
+
`},Sa=(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:Pa.root,className:i,as:t,lineHeight:"normal",ref:o},a,{children:n}))}));Sa.displayName="StepperTitle";const Ca={root:a.css`
|
|
2318
2565
|
inline-size: 100%;
|
|
2319
2566
|
margin-block-end: ${q(-1)};
|
|
2320
2567
|
column-gap: ${$(6)};
|
|
2321
2568
|
border-block-end: solid ${q(1)} ${x("gray",1)};
|
|
2322
2569
|
display: flex;
|
|
2323
2570
|
align-items: flex-end;
|
|
2324
|
-
`},
|
|
2571
|
+
`},za=(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:Ca.root,className:n,ref:o},i,{children:t}))}));za.displayName="TabList";const Ia=e=>a.css`
|
|
2325
2572
|
padding-block-end: calc(${$(3)} + ${q(4)});
|
|
2326
2573
|
padding-inline: ${$(0)};
|
|
2327
2574
|
color: ${x("gray",5)};
|
|
@@ -2348,18 +2595,18 @@
|
|
|
2348
2595
|
}
|
|
2349
2596
|
&[data-qlib-active="true"]:not([data-qlib-disabled="true"]) {
|
|
2350
2597
|
--qlib-highlight-color: ${x(e,5)};
|
|
2351
|
-
font-weight: ${
|
|
2598
|
+
font-weight: ${v("bold")};
|
|
2352
2599
|
color: ${x(e,5)};
|
|
2353
2600
|
}
|
|
2354
2601
|
&[data-qlib-disabled="true"] {
|
|
2355
2602
|
opacity: 0.5;
|
|
2356
2603
|
}
|
|
2357
|
-
`,
|
|
2604
|
+
`,Ea=(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:Ia(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:Ia(t),className:c,ref:o,disabled:n,onClick:l,"data-qlib-disabled":n,"data-qlib-active":i},d,{children:s}))}));Ea.displayName="Tab";const Da={root:a.css`
|
|
2358
2605
|
margin-inline-end: ${$("gap")};
|
|
2359
2606
|
display: inline;
|
|
2360
2607
|
flex-grow: 0;
|
|
2361
2608
|
flex-shrink: 0;
|
|
2362
|
-
`},
|
|
2609
|
+
`},Ra=(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:Da.root,className:n,ref:o},i,{children:t}))}));Ra.displayName="HeaderMenuItemIconContainer";const Ma=a.keyframes`
|
|
2363
2610
|
from {
|
|
2364
2611
|
opacity: 0;
|
|
2365
2612
|
transform: translate(${$(0)}, ${$(2)});
|
|
@@ -2368,7 +2615,7 @@
|
|
|
2368
2615
|
opacity: 1;
|
|
2369
2616
|
transform: translate(${$(0)}, ${$(0)});
|
|
2370
2617
|
}
|
|
2371
|
-
`,
|
|
2618
|
+
`,La=a.keyframes`
|
|
2372
2619
|
to {
|
|
2373
2620
|
opacity: 0;
|
|
2374
2621
|
transform: translate(${$(0)}, ${$(2)});
|
|
@@ -2377,7 +2624,7 @@
|
|
|
2377
2624
|
opacity: 1;
|
|
2378
2625
|
transform: translate(${$(0)}, ${$(0)});
|
|
2379
2626
|
}
|
|
2380
|
-
`,
|
|
2627
|
+
`,Aa={root:e=>a.css`
|
|
2381
2628
|
inline-size: 100%;
|
|
2382
2629
|
border-radius: ${$(1)};
|
|
2383
2630
|
background-color: ${x("white")};
|
|
@@ -2398,12 +2645,12 @@
|
|
|
2398
2645
|
content: "";
|
|
2399
2646
|
}
|
|
2400
2647
|
&[data-state="open"] {
|
|
2401
|
-
animation: ${
|
|
2648
|
+
animation: ${Ma} 0.2s ease;
|
|
2402
2649
|
}
|
|
2403
2650
|
&[data-state="closed"] {
|
|
2404
|
-
animation: ${
|
|
2651
|
+
animation: ${La} 0.2s ease;
|
|
2405
2652
|
}
|
|
2406
|
-
`,icon:e=>
|
|
2653
|
+
`,icon:e=>a.css`
|
|
2407
2654
|
margin-inline-start: ${$(3)};
|
|
2408
2655
|
margin-inline-end: ${$("gap")};
|
|
2409
2656
|
font-size: ${$(6)};
|
|
@@ -2413,40 +2660,40 @@
|
|
|
2413
2660
|
justify-content: center;
|
|
2414
2661
|
flex-grow: 0;
|
|
2415
2662
|
flex-shrink: 0;
|
|
2416
|
-
`,container:
|
|
2663
|
+
`,container:a.css`
|
|
2417
2664
|
padding-block: ${$(3)};
|
|
2418
2665
|
padding-inline-end: ${$(3)};
|
|
2419
2666
|
&:first-of-type {
|
|
2420
2667
|
margin-inline-start: ${$(3)};
|
|
2421
2668
|
}
|
|
2422
|
-
`},
|
|
2669
|
+
`},Fa=(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:Aa.root(i),className:c,duration:null!=n?n:864e5,open:t,onOpenChange:l,ref:o},d,{children:[null!=a&&(0,e.jsx)("div",{css:Aa.icon(i),children:a}),(0,e.jsx)(yo.Description,{css:Aa.container,children:s})]}))}));Fa.displayName="Toast";const Ba={root:a.css`
|
|
2423
2670
|
row-gap: ${$(2)};
|
|
2424
2671
|
display: flex;
|
|
2425
2672
|
flex-direction: column;
|
|
2426
|
-
`},
|
|
2673
|
+
`},Ha=(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}))}));Ha.displayName="ToastBody";const Ta={root:a.css`
|
|
2427
2674
|
font-size: ${$(4)};
|
|
2428
|
-
`},
|
|
2675
|
+
`},Va=(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:Ta.root,className:n,as:"p",lineHeight:"normal",ref:o},i,{children:t}))}));Va.displayName="ToastMessage";const Ya={root:a.css`
|
|
2429
2676
|
font-size: ${$(3)};
|
|
2430
2677
|
color: ${x("gray",5)};
|
|
2431
|
-
`},
|
|
2678
|
+
`},Ua=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,i=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(ar,Object.assign({css:Ya.root,className:n,as:"p",lineHeight:"narrow",ref:o},i,{children:t}))}));Ua.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)(Fa,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)(Ha,{children:(0,e.jsx)(Va,{children:l})})}))}));function _a(e){return a.css`
|
|
2432
2679
|
display: flex;
|
|
2433
2680
|
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
|
|
2681
|
+
${(null==e?void 0:e.gap)?a.css`row-gap: ${Ja(e.gap)};`:""}
|
|
2682
|
+
${(null==e?void 0:e.align)?a.css`align-items: ${e.align};`:""}
|
|
2683
|
+
${(null==e?void 0:e.justify)?a.css`justify-content: ${e.justify};`:""}
|
|
2684
|
+
`}function Ka(e){return a.css`
|
|
2438
2685
|
display: flex;
|
|
2439
2686
|
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
|
|
2687
|
+
${(null==e?void 0:e.gap)?a.css`column-gap: ${Ja(e.gap)};`:""}
|
|
2688
|
+
${(null==e?void 0:e.align)?a.css`align-items: ${e.align};`:""}
|
|
2689
|
+
${(null==e?void 0:e.justify)?a.css`justify-content: ${e.justify};`:""}
|
|
2690
|
+
`}function Wa(e){return a.css`
|
|
2691
|
+
${(null==e?void 0:e.top)?a.css`margin-block-start: ${Ja(e.top)};`:""}
|
|
2692
|
+
${(null==e?void 0:e.bottom)?a.css`margin-block-end: ${Ja(e.bottom)};`:""}
|
|
2693
|
+
${(null==e?void 0:e.left)?a.css`margin-inline-start: ${Ja(e.left)};`:""}
|
|
2694
|
+
${(null==e?void 0:e.right)?a.css`margin-inline-end: ${Ja(e.right)};`:""}
|
|
2695
|
+
`}function Qa(e){return a.css`
|
|
2696
|
+
${(null==e?void 0:e.width)?a.css`inline-size: ${Ja(e.width)};`:""}
|
|
2697
|
+
${(null==e?void 0:e.height)?a.css`block-size: ${Ja(e.height)};`:""}
|
|
2698
|
+
`}function Ja(e){return"number"==typeof e?$(e):e}Ga.displayName="SimpleToast";const Za=()=>{const{open:e,close:o,setDialogSpec:t}=(0,r.useContext)(uo);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])},Xa=()=>{const e=(0,r.useContext)(to);if(void 0===e)throw new Error("Not inside `RadioGroup`");const{value:o}=e;return{value:o}},el=()=>{const{setToastSpecs:e}=(0,r.useContext)(Oo);return(0,r.useCallback)((o=>{const t=I()().valueOf().toString(),n={element:(0,r.cloneElement)(o,{key:t,onOpenChange:r=>{r||setTimeout((()=>{e((e=>e.filter((e=>e!==n))))}),200)}})};e((e=>[...e,n]))}),[e])}})();var n=exports;for(var i in t)n[i]=t[i];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
2452
2699
|
//# sourceMappingURL=index.js.map
|