@baton8/general-components 1.0.0 → 1.2.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/input/input.d.ts +6 -0
- package/dist/components/atoms/numberInput/numberInput.d.ts +15 -0
- package/dist/components/atoms/root/defaultGlobalStyle.d.ts +1 -0
- package/dist/components/atoms/root/root.d.ts +2 -1
- package/dist/index.js +323 -469
- package/dist/index.js.map +1 -1
- package/dist/modules/subject.d.ts +1 -13
- package/dist/stories/atoms/numberInput/numberInput.stories.d.ts +1 -0
- package/package.json +3 -5
- package/typedoc.json +1 -1
- package/.github/workflows/chromatic.yml +0 -43
- package/.github/workflows/doc.yml +0 -53
- package/.github/workflows/review.yml +0 -18
- package/dist/components/atoms/asyncSelect/asyncSelect.stories.d.ts +0 -6
- package/dist/components/atoms/avatar/avatar.stories.d.ts +0 -7
- package/dist/components/atoms/badge/badge.stories.d.ts +0 -11
- package/dist/components/atoms/barMeter/barMeter.stories.d.ts +0 -10
- package/dist/components/atoms/barMeter/barMeterValue.stories.d.ts +0 -7
- package/dist/components/atoms/barProgress/barProgress.stories.d.ts +0 -8
- package/dist/components/atoms/button/button.stories.d.ts +0 -13
- package/dist/components/atoms/button/hotkeyView.d.ts +0 -6
- package/dist/components/atoms/buttonLink/buttonLink.d.ts +0 -83
- package/dist/components/atoms/buttonLink/buttonLink.stories.d.ts +0 -13
- package/dist/components/atoms/buttonLink/buttonLinkIconContainer.d.ts +0 -16
- package/dist/components/atoms/buttonLink/index.d.ts +0 -2
- package/dist/components/atoms/checkableContainer/checkableContainer.stories.d.ts +0 -9
- package/dist/components/atoms/checkableContainer/checkableLabel.stories.d.ts +0 -7
- package/dist/components/atoms/checkbox/checkbox.stories.d.ts +0 -15
- package/dist/components/atoms/controlContainer/controlContainer.stories.d.ts +0 -13
- package/dist/components/atoms/controlContainer/controlErrorMessage.stories.d.ts +0 -7
- package/dist/components/atoms/controlContainer/controlHelper.stories.d.ts +0 -7
- package/dist/components/atoms/controlContainer/controlLabel.stories.d.ts +0 -7
- package/dist/components/atoms/divider/divider.stories.d.ts +0 -8
- package/dist/components/atoms/fileInput/fileInput.stories.d.ts +0 -10
- package/dist/components/atoms/generalIcon/generalIcon.stories.d.ts +0 -7
- package/dist/components/atoms/heading/heading.stories.d.ts +0 -7
- package/dist/components/atoms/icon/icon.stories.d.ts +0 -7
- package/dist/components/atoms/icon/iconDefinitions.d.ts +0 -8
- package/dist/components/atoms/iconButton/iconButton.stories.d.ts +0 -11
- package/dist/components/atoms/input/input.stories.d.ts +0 -20
- package/dist/components/atoms/link/link.stories.d.ts +0 -8
- package/dist/components/atoms/loadingIcon/loadingIcon.stories.d.ts +0 -7
- package/dist/components/atoms/modal/modal.stories.d.ts +0 -7
- package/dist/components/atoms/multiLineText/multiLineText.stories.d.ts +0 -9
- package/dist/components/atoms/numberInput/numberInput.stories.d.ts +0 -10
- package/dist/components/atoms/passwordInput/passwordInput.stories.d.ts +0 -13
- package/dist/components/atoms/radio/radio.stories.d.ts +0 -13
- package/dist/components/atoms/radioGroup/radioGroup.stories.d.ts +0 -8
- package/dist/components/atoms/root/root.stories.d.ts +0 -7
- package/dist/components/atoms/root/scrollGlobalStyle.d.ts +0 -1
- package/dist/components/atoms/scroll/index.d.ts +0 -1
- package/dist/components/atoms/scroll/scroll.d.ts +0 -31
- package/dist/components/atoms/scroll/scroll.stories.d.ts +0 -8
- package/dist/components/atoms/secondaryHeading/secondaryHeading.stories.d.ts +0 -7
- package/dist/components/atoms/select/pageSizeSelect.stories.d.ts +0 -7
- package/dist/components/atoms/select/select.stories.d.ts +0 -13
- package/dist/components/atoms/select/selectOption.stories.d.ts +0 -7
- package/dist/components/atoms/select/sortOrderSelect.stories.d.ts +0 -8
- package/dist/components/atoms/singleLineText/singleLineText.stories.d.ts +0 -8
- package/dist/components/atoms/switch/switch.stories.d.ts +0 -13
- package/dist/components/atoms/tag/tag.stories.d.ts +0 -8
- package/dist/components/atoms/tagList/tagList.stories.d.ts +0 -8
- package/dist/components/atoms/textButton/index.d.ts +0 -2
- package/dist/components/atoms/textButton/textButton.d.ts +0 -43
- package/dist/components/atoms/textButton/textButton.stories.d.ts +0 -8
- package/dist/components/atoms/textButton/textButtonIconContainer.d.ts +0 -16
- package/dist/components/atoms/textarea/textarea.stories.d.ts +0 -11
- package/dist/components/atoms/visuallyHidden/visuallyHidden.stories.d.ts +0 -7
- package/dist/components/modules/bulkOperationContainer/bulkOperationButton.stories.d.ts +0 -8
- package/dist/components/modules/card/card.stories.d.ts +0 -17
- package/dist/components/modules/card/cardBody.stories.d.ts +0 -7
- package/dist/components/modules/card/cardButton.stories.d.ts +0 -7
- package/dist/components/modules/card/cardButtonList.stories.d.ts +0 -7
- package/dist/components/modules/card/cardControlContainer.stories.d.ts +0 -7
- package/dist/components/modules/card/cardHeadnote.stories.d.ts +0 -7
- package/dist/components/modules/card/cardTitle.stories.d.ts +0 -7
- package/dist/components/modules/cardList/cardList.stories.d.ts +0 -7
- package/dist/components/modules/cardList/cardListAuto.stories.d.ts +0 -5
- package/dist/components/modules/cardList/cardListBody.stories.d.ts +0 -7
- package/dist/components/modules/cardList/cardListEmpty.stories.d.ts +0 -7
- package/dist/components/modules/cardList/cardListFooter.stories.d.ts +0 -7
- package/dist/components/modules/cardList/cardListHeader.stories.d.ts +0 -7
- package/dist/components/modules/cardList/cardListHeaderLeft.stories.d.ts +0 -7
- package/dist/components/modules/cardList/cardListHeaderRight.stories.d.ts +0 -7
- package/dist/components/modules/cardList/cardListLoading.stories.d.ts +0 -7
- package/dist/components/modules/contentHeader/contentHeader.stories.d.ts +0 -8
- package/dist/components/modules/countIndicator/countIndicator.stories.d.ts +0 -14
- package/dist/components/modules/dialog/dialog.stories.d.ts +0 -16
- package/dist/components/modules/dialog/dialogBody.stories.d.ts +0 -7
- package/dist/components/modules/dialog/dialogButton.stories.d.ts +0 -8
- package/dist/components/modules/dialog/dialogCloseButton.stories.d.ts +0 -7
- package/dist/components/modules/dialog/dialogFooter.stories.d.ts +0 -7
- package/dist/components/modules/dialog/dialogHeader.stories.d.ts +0 -7
- package/dist/components/modules/dialog/dialogTitle.stories.d.ts +0 -7
- package/dist/components/modules/drawer/drawer.stories.d.ts +0 -13
- package/dist/components/modules/drawer/drawerBody.stories.d.ts +0 -7
- package/dist/components/modules/drawer/drawerButton.stories.d.ts +0 -7
- package/dist/components/modules/drawer/drawerCaption.stories.d.ts +0 -7
- package/dist/components/modules/drawer/drawerFooter.stories.d.ts +0 -7
- package/dist/components/modules/drawer/drawerHeader.stories.d.ts +0 -7
- package/dist/components/modules/drawer/drawerTitle.stories.d.ts +0 -7
- package/dist/components/modules/footnote/footnote.stories.d.ts +0 -9
- package/dist/components/modules/footnoteList/footnoteList.stories.d.ts +0 -9
- package/dist/components/modules/footnoteList/footnoteListRow.stories.d.ts +0 -7
- package/dist/components/modules/fractionView/fractionView.stories.d.ts +0 -8
- package/dist/components/modules/header/header.stories.d.ts +0 -7
- package/dist/components/modules/menu/menu.stories.d.ts +0 -9
- package/dist/components/modules/menu/menuItem.stories.d.ts +0 -7
- package/dist/components/modules/pagination/pagination.stories.d.ts +0 -7
- package/dist/components/modules/rankView/rankView.stories.d.ts +0 -13
- package/dist/components/modules/stepper/stepper.stories.d.ts +0 -8
- package/dist/components/modules/tabList/tabList.stories.d.ts +0 -7
- package/dist/components/modules/toast/simpleToast.stories.d.ts +0 -9
- package/dist/components/modules/toast/toast.stories.d.ts +0 -10
- package/dist/components/tests/samples/dialog.stories.d.ts +0 -7
- package/dist/components/tests/samples/forms.stories.d.ts +0 -6
- package/dist/components/tests/samples/playableDeckList.stories.d.ts +0 -6
- package/dist/components/tests/samples/quizList.stories.d.ts +0 -6
- package/dist/modules/genre.d.ts +0 -3
- package/dist/stories/atoms/buttonLink/buttonLink.stories.d.ts +0 -13
- package/dist/stories/atoms/scroll/scroll.stories.d.ts +0 -8
- package/dist/stories/atoms/textButton/textButton.stories.d.ts +0 -8
- package/dist/utils/debug.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(()=>{var e={714:e=>{e.exports={"dialogCloseButton.close":"Close dialog","loadingIcon.label":"Loading","select.select":"Select","select.noOption":"No options","select.loading":"Loading","sortOrderSelect.ascending":"Asc","sortOrderSelect.descending":"Desc","bulkOperationButton.text":"Action","cardListEmpty.empty":"No data found","cardListLoading.loading":"Loading","pagination.label":"Pagination","pagination.first":"First","pagination.previous":"Previous","pagination.next":"Next","pagination.last":"Last","rankView.label":"{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}} place","toast.rootLabel":"Notification","toast.viewportLabel":"Notifications (F8)","quizCardTitle.emptyQuestion":"No question","quizCardTitle.emptyAnswer":"No correct options","groupFootnote.noGroup":"Deleted group","privateFootnote.private":"Limited","privateFootnote.public":"Public","userFootnote.noUser":"Deleted user","imageView.noImage":"No image found","mediumView.unsupported":"Unsupported media"}},62:e=>{e.exports={"dialogCloseButton.close":"ダイアログを閉じる","loadingIcon.label":"読み込み中","select.select":"選択してください","select.noOption":"該当する項目がありません","select.loading":"読み込み中","sortOrderSelect.ascending":"昇順","sortOrderSelect.descending":"降順","bulkOperationButton.text":"一括操作","cardListEmpty.empty":"該当するデータがありません","cardListLoading.loading":"読み込み中","pagination.label":"ページネーション","pagination.first":"最初へ","pagination.previous":"前へ","pagination.next":"次へ","pagination.last":"最後へ","rankView.label":"{rank, number}位","toast.rootLabel":"お知らせ","toast.viewportLabel":"お知らせ (F8)","quizCardTitle.emptyQuestion":"問題文がありません","quizCardTitle.emptyAnswer":"正答選択肢がありません","groupFootnote.noGroup":"削除されたグループ","privateFootnote.private":"限定公開","privateFootnote.public":"全体公開","userFootnote.noUser":"退会したユーザー","imageView.noImage":"画像がありません","mediumView.unsupported":"サポートされていないメディアです"}}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var
|
|
1
|
+
(()=>{var e={714:e=>{e.exports={"dialogCloseButton.close":"Close dialog","loadingIcon.label":"Loading","select.select":"Select","select.noOption":"No options","select.loading":"Loading","sortOrderSelect.ascending":"Asc","sortOrderSelect.descending":"Desc","bulkOperationButton.text":"Action","cardListEmpty.empty":"No data found","cardListLoading.loading":"Loading","pagination.label":"Pagination","pagination.first":"First","pagination.previous":"Previous","pagination.next":"Next","pagination.last":"Last","rankView.label":"{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}} place","toast.rootLabel":"Notification","toast.viewportLabel":"Notifications (F8)","quizCardTitle.emptyQuestion":"No question","quizCardTitle.emptyAnswer":"No correct options","groupFootnote.noGroup":"Deleted group","privateFootnote.private":"Limited","privateFootnote.public":"Public","userFootnote.noUser":"Deleted user","imageView.noImage":"No image found","mediumView.unsupported":"Unsupported media"}},62:e=>{e.exports={"dialogCloseButton.close":"ダイアログを閉じる","loadingIcon.label":"読み込み中","select.select":"選択してください","select.noOption":"該当する項目がありません","select.loading":"読み込み中","sortOrderSelect.ascending":"昇順","sortOrderSelect.descending":"降順","bulkOperationButton.text":"一括操作","cardListEmpty.empty":"該当するデータがありません","cardListLoading.loading":"読み込み中","pagination.label":"ページネーション","pagination.first":"最初へ","pagination.previous":"前へ","pagination.next":"次へ","pagination.last":"最後へ","rankView.label":"{rank, number}位","toast.rootLabel":"お知らせ","toast.viewportLabel":"お知らせ (F8)","quizCardTitle.emptyQuestion":"問題文がありません","quizCardTitle.emptyAnswer":"正答選択肢がありません","groupFootnote.noGroup":"削除されたグループ","privateFootnote.private":"限定公開","privateFootnote.public":"全体公開","userFootnote.noUser":"退会したユーザー","imageView.noImage":"画像がありません","mediumView.unsupported":"サポートされていないメディアです"}}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var a=r[t]={exports:{}};return e[t](a,a.exports,o),a.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:()=>oo,AsyncSelect:()=>se,AsyncSelectOption:()=>be,Avatar:()=>fe,AvatarFallbackIcon:()=>ge,AvatarFallbackLetter:()=>xe,Badge:()=>we,BadgeIconContainer:()=>qe,BarMeter:()=>Ie,BarMeterValue:()=>Me,BarMeterValueIconContainer:()=>Fe,BarProgress:()=>Ae,BulkOperationButton:()=>ut,BulkOperationContainer:()=>bt,Button:()=>He,ButtonIconContainer:()=>Ye,Card:()=>gt,CardBody:()=>xt,CardButton:()=>wt,CardButtonList:()=>qt,CardControlContainer:()=>Pt,CardHeadnote:()=>Ot,CardList:()=>It,CardListAuto:()=>Kt,CardListBody:()=>Rt,CardListBodyAuto:()=>Gt,CardListEmpty:()=>Mt,CardListFooter:()=>Ft,CardListFooterAuto:()=>Qt,CardListHeader:()=>At,CardListHeaderLeft:()=>Ht,CardListHeaderRight:()=>Yt,CardListLoading:()=>_t,CardTitle:()=>zt,CheckableContainer:()=>_e,CheckableLabel:()=>Ge,Checkbox:()=>We,ContentHeader:()=>Wt,ContentTitle:()=>Xt,ControlContainer:()=>Xe,ControlErrorMessage:()=>tr,ControlHelper:()=>ar,ControlLabel:()=>lr,CountIndicator:()=>rn,Dialog:()=>an,DialogBody:()=>sn,DialogButton:()=>dn,DialogCloseButton:()=>pn,DialogFooter:()=>fn,DialogHeader:()=>yn,DialogTitle:()=>hn,Divider:()=>cr,Drawer:()=>jn,DrawerBody:()=>$n,DrawerButton:()=>kn,DrawerCaption:()=>Pn,DrawerFooter:()=>zn,DrawerHeader:()=>In,DrawerTitle:()=>Rn,FileInput:()=>pr,Footnote:()=>Fn,FootnoteIconContainer:()=>An,FootnoteList:()=>Hn,FootnoteListRow:()=>Yn,FractionView:()=>Gn,FractionViewDenominator:()=>Jn,FractionViewNumerator:()=>Zn,GeneralIcon:()=>dr,Header:()=>ea,HeaderLeft:()=>oa,HeaderMenu:()=>na,HeaderMenuItem:()=>ia,HeaderMenuItemIconContainer:()=>sa,Heading:()=>mr,Icon:()=>gr,IconButton:()=>Or,Input:()=>qr,InputLeftAddon:()=>xr,InputRightAddon:()=>wr,LEVELED_COLOR_SCHEMES:()=>u,Link:()=>zr,LinkIconContainer:()=>Ir,LoadingIcon:()=>Rr,Menu:()=>ya,MenuDivider:()=>xa,MenuItem:()=>ua,MenuItemIconContainer:()=>Oa,Modal:()=>Br,MultiLineText:()=>rr,NumberInput:()=>Vr,NumberInputLeftAddon:()=>Tr,PageSizeSelect:()=>Uo,PageSizeSelectAuto:()=>Qo,Pagination:()=>wa,PaginationAuto:()=>$a,PasswordInput:()=>Qr,PasswordInputLeftAddon:()=>Ur,PasswordInputRightAddon:()=>Kr,Radio:()=>Xr,RadioGroup:()=>eo,RankView:()=>ka,Root:()=>Mo,SecondaryHeading:()=>Fo,Select:()=>Ao,SelectOption:()=>Ho,SelectOptionIconContainer:()=>Yo,SimpleToast:()=>ai,SingleLineText:()=>Re,SortOrderSelect:()=>Jo,Stepper:()=>Da,StepperBody:()=>Fa,StepperItem:()=>Ea,StepperNumber:()=>Aa,StepperTitle:()=>Ha,Switch:()=>Xo,Tab:()=>_a,TabIconContainer:()=>Ga,TabList:()=>Ya,Tag:()=>rt,TagIconContainer:()=>tt,TagList:()=>at,Textarea:()=>lt,Toast:()=>Za,ToastBody:()=>ei,ToastMessage:()=>oi,ToastSupplement:()=>ni,UNLEVELED_COLOR_SCHEMES:()=>f,VisuallyHidden:()=>ct,alpha:()=>j,borderWidth:()=>q,boxShadow:()=>k,color:()=>x,createColorDefinition:()=>m,createTrans:()=>Eo,dimension:()=>ci,fixedLineHeight:()=>P,flexHorizontal:()=>li,flexVertical:()=>ii,fontFamily:()=>O,fontWeight:()=>v,intlSubject:()=>ko,lineHeight:()=>N,localeSubject:()=>No,margin:()=>si,mergeLocalizationMessages:()=>go,resolveResponsiveValue:()=>vo,size:()=>$,toResponsiveValue:()=>Oo,useBehaviorSubject:()=>$o,useDialog:()=>bi,useIntl:()=>Po,useLocale:()=>So,useRadioGroup:()=>pi,useResponsiveValue:()=>jo,useSetLocale:()=>zo,useSmartphone:()=>xo,useSubject:()=>wo,useToast:()=>ui,useTrans:()=>Co,useTranslation:()=>Io});const e=require("@emotion/react/jsx-runtime"),r=require("react"),n=require("react-select/async");var a=o.n(n);const i=require("@emotion/react"),l=require("@fortawesome/react-fontawesome"),s=require("@fortawesome/sharp-regular-svg-icons"),c=require("react-select");var d=o.n(c);const b=require("color");var p=o.n(b);const u=["primary","secondary","blue","red","green","pink","yellow","purple","orange","gray","gold","silver","bronze"],f=["white","black","whiteText","blackText","background","deepBackground"],m=(e,r)=>{const o=p()(e),t=p()("black"),n=p()("white");return{9:o.saturate(4*r.dark.saturation/4).mix(t,4*r.dark.mix/4).hex(),8:o.saturate(3*r.dark.saturation/4).mix(t,3*r.dark.mix/4).hex(),7:o.saturate(2*r.dark.saturation/4).mix(t,2*r.dark.mix/4).hex(),6:o.saturate(1*r.dark.saturation/4).mix(t,1*r.dark.mix/4).hex(),5:o.hex(),4:o.saturate(1*r.light.saturation/5).mix(n,1*r.light.mix/5).hex(),3:o.saturate(2*r.light.saturation/5).mix(n,2*r.light.mix/5).hex(),2:o.saturate(3*r.light.saturation/5).mix(n,3*r.light.mix/5).hex(),1:o.saturate(4*r.light.saturation/5).mix(n,4*r.light.mix/5).hex(),0:o.saturate(5*r.light.saturation/5).mix(n,5*r.light.mix/5).hex()}},y={primary:m("hsl(203, 100%, 38%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),secondary:m("hsl(2, 77%, 64%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),blue:m("hsl(230, 70%, 55%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),red:m("hsl(0, 65%, 60%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),green:m("hsl(110, 45%, 45%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),pink:m("hsl(340, 60%, 60%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.2}}),yellow:m("hsl(60, 65%, 50%)",{dark:{mix:.55,saturation:-.3},light:{mix:.93,saturation:.1}}),purple:m("hsl(260, 55%, 57%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),orange:m("hsl(30, 75%, 55%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.2}}),gray:m("hsl(203, 20%, 65%)",{dark:{mix:.55,saturation:-.3},light:{mix:.93,saturation:.3}}),gold:m("hsl(50, 80%, 43%)",{dark:{mix:.55,saturation:-.3},light:{mix:.95,saturation:.3}}),silver:m("hsl(240, 15%, 65%)",{dark:{mix:.55,saturation:-.3},light:{mix:.93,saturation:.3}}),bronze:m("hsl(20, 50%, 50%)",{dark:{mix:.55,saturation:-.3},light:{mix:.96,saturation:.3}}),white:p()("hsl(203, 0%, 100%)").hex(),black:p()("hsl(203, 33%, 10%)").hex(),whiteText:p()("hsl(203, 0%, 87%)").hex(),blackText:p()("hsl(203, 0%, 27%)").hex(),background:p()("hsl(203, 20%, 98%)").hex(),deepBackground:p()("hsl(203, 20%, 96%)").hex()},g=(e,r)=>null!=r?`var(--qlib-cs-${e}-${r})`:`var(--qlib-cs-${e})`,h=e=>{const r=[],o=Object.assign(Object.assign({},y),e);for(const[e,t]of Object.entries(o))if("string"==typeof t)r.push(`--qlib-cs-${e}: ${p()(t).rgb().array().join(", ")};`);else for(const[o,n]of Object.entries(t))r.push(`--qlib-cs-${e}-${o}: ${p()(n).rgb().array().join(", ")};`);return i.css`
|
|
2
2
|
:root {
|
|
3
3
|
${r.join("\n")}
|
|
4
4
|
}
|
|
5
|
-
`};function O(){return"'Inter', 'Noto Sans JP', 'Dubai', 'Noto Sans', sans-serif"}function v(e){return"normal"===e?400:700}function x(e,r){return f.includes(e)?`rgb(${g(e,void 0)})`:`rgb(${g(e,r)})`}function j(e,r){return e.startsWith("rgb(")?`rgba(${e.slice(4,-1)}, ${r})`:p()(e).alpha(r).rgb().string()}const w={gap:"0.375em",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(e,r){return
|
|
5
|
+
`};function O(){return"'Inter', 'Noto Sans JP', 'Dubai', 'Noto Sans', sans-serif"}function v(e){return"normal"===e?400:700}function x(e,r){return f.includes(e)?`rgb(${g(e,void 0)})`:`rgb(${g(e,r)})`}function j(e,r){return e.startsWith("rgb(")?`rgba(${e.slice(4,-1)}, ${r})`:p()(e).alpha(r).rgb().string()}const w={gap:"0.375em",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(e,r){return i.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 P(e,r){return
|
|
21
|
+
`}function P(e,r){return i.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 S=require("dayjs");var z=o.n(S);const C=require("react-intl"),I=e=>{const o=(0,C.useIntl)(),t=(0,r.useCallback)(((r,t)=>{var n;const
|
|
37
|
+
`}const S=require("dayjs");var z=o.n(S);const C=require("react-intl"),I=e=>{const o=(0,C.useIntl)(),t=(0,r.useCallback)(((r,t)=>{var n;const a="qlib."+(r.includes(":")?r.replace(":","."):(null!=e?`${e}.`:"")+r),i=null!==(n=null==t?void 0:t.defaultMessage)&&void 0!==n?n:`<${a}>`;return o.formatMessage({id:a,defaultMessage:i},t)}),[o,e]),n=(0,r.useCallback)((e=>null!=e?"ja"===o.locale?z()(e).locale("ja").format("YYYY/MM/DD"):z()(e).locale("en").format("DD/MMM/YYYY"):""),[o]),a=(0,r.useCallback)((e=>null!=e?"ja"===o.locale?z()(e).locale("ja").format("YYYY/MM/DD HH:mm"):z()(e).locale("en").format("DD/MMM/YYYY HH:mm"):""),[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,transTime:a,transNumber:i})),[t,n,a,i])};const E={root:i.css`
|
|
38
38
|
padding-block: ${$(2)};
|
|
39
39
|
padding-inline: ${$(2)};
|
|
40
40
|
color: ${x("gray",5)};
|
|
41
|
-
`},R=(0,r.createContext)({variant:"outline",optionAlignment:"left",isMenuOpen:!1,isError:!1}),D=R.Provider;const M={root:
|
|
41
|
+
`},R=(0,r.createContext)({variant:"outline",optionAlignment:"left",isMenuOpen:!1,isError:!1}),D=R.Provider;const M={root:i.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
|
-
`},L=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:M.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes})}))},F={root:
|
|
58
|
+
`},L=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:M.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes})}))},F={root:i.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:i.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:i.css`
|
|
89
89
|
min-block-size: initial;
|
|
90
90
|
font-size: ${$(4)};
|
|
91
|
-
`},B=({isFocused:o,isDisabled:t,menuIsOpen:n,innerRef:
|
|
91
|
+
`},B=({isFocused:o,isDisabled:t,menuIsOpen:n,innerRef:a,innerProps:i,children:l})=>{const{variant:s,isError:c}=(0,r.useContext)(R);return(0,e.jsx)("div",Object.assign({css:[F.root,"outline"===s?F.rootOutline:F.rootMinimal],ref:a,"data-qlib-focused":o,"data-qlib-error":c},i,{children:l}))};const A={root:i.css`
|
|
92
92
|
font-size: var(--qlib-font-size);
|
|
93
93
|
color: ${x("gray",5)};
|
|
94
|
-
`},T=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:A.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleDown})}))},H={root:
|
|
94
|
+
`},T=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:A.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleDown})}))},H={root:i.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
|
-
`},V=({innerProps:r,children:o})=>(0,e.jsx)("div",Object.assign({css:H.root},r,{children:o}));const Y={rootOutline:
|
|
101
|
+
`},V=({innerProps:r,children:o})=>(0,e.jsx)("div",Object.assign({css:H.root},r,{children:o}));const Y={rootOutline:i.css`
|
|
102
102
|
height: 1em;
|
|
103
103
|
line-height: 1;
|
|
104
|
-
`,rootMinimal:
|
|
104
|
+
`,rootMinimal:i.css`
|
|
105
105
|
height: 1em;
|
|
106
106
|
line-height: 1;
|
|
107
|
-
`},U=o=>{var{children:t}=o,n=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["children"]);const{variant:
|
|
107
|
+
`},U=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:a}=(0,r.useContext)(R);return(0,e.jsx)(c.components.Input,Object.assign({css:"outline"===a?Y.rootOutline:Y.rootMinimal},n,{children:t}))},_=i.keyframes`
|
|
108
108
|
from {
|
|
109
109
|
opacity: 0;
|
|
110
110
|
}
|
|
111
111
|
to {
|
|
112
112
|
opacity: 1;
|
|
113
113
|
}
|
|
114
|
-
`,K=
|
|
114
|
+
`,K=i.keyframes`
|
|
115
115
|
to {
|
|
116
116
|
opacity: 0;
|
|
117
117
|
}
|
|
118
118
|
from {
|
|
119
119
|
opacity: 1;
|
|
120
120
|
}
|
|
121
|
-
`,G={root:
|
|
121
|
+
`,G={root:i.css`
|
|
122
122
|
inline-size: 100%;
|
|
123
123
|
margin-block-start: ${q(2)};
|
|
124
124
|
display: flex;
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
animation: ${K} 0.2s ease;
|
|
140
140
|
opacity: 0;
|
|
141
141
|
}
|
|
142
|
-
`},Q=({innerRef:o,innerProps:t,children:n})=>{const{optionAlignment:
|
|
142
|
+
`},Q=({innerRef:o,innerProps:t,children:n})=>{const{optionAlignment:a,isMenuOpen:i}=(0,r.useContext)(R);return(0,e.jsx)("div",Object.assign({css:G.root,ref:o,"data-qlib-open":i,"data-qlib-alignment":a},t,{children:n}))},J={root:i.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
|
-
`},W=({innerRef:r,innerProps:o,children:t})=>(0,e.jsx)("div",{css:J.root,children:t});const Z={root:
|
|
153
|
+
`},W=({innerRef:r,innerProps:o,children:t})=>(0,e.jsx)("div",{css:J.root,children:t});const Z={root:i.css`
|
|
154
154
|
z-index: 3000 !important;
|
|
155
|
-
`},X=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:Z.root},t,{children:o}))};const ee={root:
|
|
155
|
+
`},X=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:Z.root},t,{children:o}))};const ee={root:i.css`
|
|
156
156
|
padding-block: ${$(2)};
|
|
157
157
|
padding-inline: ${$(2)};
|
|
158
158
|
color: ${x("gray",5)};
|
|
159
|
-
`},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"]);const{trans:n}=I("select");return(0,e.jsx)(c.components.NoOptionsMessage,Object.assign({css:ee.root},t,{children:n("noOption")}))},oe={root:
|
|
159
|
+
`},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"]);const{trans:n}=I("select");return(0,e.jsx)(c.components.NoOptionsMessage,Object.assign({css:ee.root},t,{children:n("noOption")}))},oe={root:i.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
|
-
`},te=({data:r,isSelected:o,isFocused:t,isDisabled:n,innerRef:
|
|
173
|
+
`},te=({data:r,isSelected:o,isFocused:t,isDisabled:n,innerRef:a,innerProps:i,children:l})=>(0,e.jsx)("div",Object.assign({css:oe.root,ref:a,"data-qlib-selected":o,"data-qlib-focused":t,"aria-disabled":n},i,{children:r.node}));const ne={root:i.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
|
-
`},
|
|
180
|
-
`},be=r=>{var{label:o,isDisabled:t=!1,children:n,className:
|
|
179
|
+
`},ae=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:ne.root},t,{children:o}))},ie=e=>{const[o,t]=(0,r.useState)(!1),[n,a]=(0,r.useState)(!1),i=(0,r.useRef)(null);return{isMenuOpen:o,menuIsOpen:n,onMenuOpen:(0,r.useCallback)((()=>{t(!0),a(!0),null!=i.current&&clearTimeout(i.current)}),[]),onMenuClose:(0,r.useCallback)((()=>{t(!1),i.current=setTimeout((()=>{a(!1)}),e)}),[e])}};const le={Control:B,Input:U,Placeholder:ae,MenuPortal:X,Menu:Q,MenuList:W,Option:te,NoOptionsMessage:re,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}=I("select");return(0,e.jsx)(c.components.LoadingMessage,Object.assign({css:E.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})}))},DropdownIndicator:T,ClearIndicator:L,IndicatorsContainer:V,IndicatorSeparator:null,LoadingIndicator:null},se=({value:o,defaultValue:t,searchOptions:n,variant:i="outline",optionAlignment:l="left",isError:s=!1,isClearable:c=!1,isDisabled:d=!1,onSet:b,children:p,className:u})=>{const{trans:f}=I("select"),m=null!=o?ce(o,p):o,y=null!=t?ce(t,p):t,g=(0,r.useCallback)((e=>{return r=void 0,o=void 0,a=function*(){const r=(yield n(e)).map((e=>ce(e,p)));return r},new((t=void 0)||(t=Promise))((function(e,n){function i(e){try{s(a.next(e))}catch(e){n(e)}}function l(e){try{s(a.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(i,l)}s((a=a.apply(r,o||[])).next())}));var r,o,t,a}),[n,p]),h=(0,r.useCallback)((e=>{null==b||b(null!==e?e.value:null)}),[b]),O=ie(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:i,optionAlignment:l,isMenuOpen:v,isError:s})),[i,l,v,s]);return(0,e.jsx)(D,{value:j,children:(0,e.jsx)(a(),Object.assign({className:u,classNamePrefix:"qlib-select",value:m,defaultValue:y,loadOptions:g,onChange:null!=b?h:void 0,isClearable:c,isDisabled:d,defaultOptions:!0,placeholder:f("select"),menuPortalTarget:"object"==typeof window?document.body:void 0,components:le,isMulti:!1,unstyled:!0,"aria-invalid":s},x))})},ce=(e,r)=>{const o=r(e);return{value:e,label:o.props.label,node:o}};se.displayName="AsyncSelect";const de={root:i.css`
|
|
180
|
+
`},be=r=>{var{label:o,isDisabled:t=!1,children:n,className:a}=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,["label","isDisabled","children","className"]);return(0,e.jsx)("div",Object.assign({css:de.root,className:a},i,{children:null!=n?n:o}))};be.displayName="AsyncSelectOption";const pe=require("@radix-ui/react-avatar");const ue={root:i.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:i.css`
|
|
193
193
|
width: 100%;
|
|
194
194
|
height: 100%;
|
|
195
195
|
object-fit: cover;
|
|
196
|
-
`,fallback:
|
|
196
|
+
`,fallback:i.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:i.css`
|
|
203
203
|
font-size: 1.2em;
|
|
204
|
-
`},fe=(0,r.forwardRef)(((r,o)=>{var{src:t,alt:n,children:
|
|
204
|
+
`},fe=(0,r.forwardRef)(((r,o)=>{var{src:t,alt:n,children:a,className:i}=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)(pe.Root,Object.assign({css:ue.root,className:i,ref:o},l,{children:[(0,e.jsx)(pe.Image,{css:ue.image,src:t,alt:n}),a]}))}));fe.displayName="Avatar";const me=require("@fortawesome/sharp-solid-svg-icons");const ye={fallback:i.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:i.css`
|
|
211
211
|
font-size: 1.2em;
|
|
212
|
-
`},ge=(0,r.forwardRef)(((r,o)=>{var{hue:t,className:n}=r,
|
|
212
|
+
`},ge=(0,r.forwardRef)(((r,o)=>{var{hue:t,className:n}=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,["hue","className"]);return(0,e.jsx)(pe.Fallback,Object.assign({css:ye.fallback,ref:o,delayMs:500,style:{color:`hsl(${t}, 100%, 95%)`,backgroundColor:`hsl(${t}, 30%, 50%)`}},a,{children:(0,e.jsx)(l.FontAwesomeIcon,{css:ye.icon,icon:me.faUser})}))}));ge.displayName="AvatarFallbackIcon";const he=require("graphemesplit");var Oe=o.n(he);const ve={fallback:i.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
|
-
`},xe=(0,r.forwardRef)(((o,t)=>{var{name:n,hue:
|
|
219
|
+
`},xe=(0,r.forwardRef)(((o,t)=>{var{name:n,hue:a,className:i}=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)((()=>Oe()(n)[0]),[n]);return(0,e.jsx)(pe.Fallback,Object.assign({css:ve.fallback,ref:t,delayMs:500,style:{color:`hsl(${a}, 100%, 95%)`,backgroundColor:`hsl(${a}, 30%, 50%)`}},l,{children:s}))}));xe.displayName="AvatarFallbackLetter";const je=e=>i.css`
|
|
220
220
|
&[data-qlib-size="small"] {
|
|
221
221
|
--qlib-font-size: ${$(3)};
|
|
222
222
|
--qlib-padding-block: ${$(.5)};
|
|
@@ -255,22 +255,22 @@
|
|
|
255
255
|
border-radius: ${$("max")};
|
|
256
256
|
line-height: 1;
|
|
257
257
|
display: inline-block;
|
|
258
|
-
`,we=(
|
|
258
|
+
`,we=(i.css`
|
|
259
259
|
margin-inline-end: ${$("gap")};
|
|
260
|
-
`,(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",variant:n="solid",size:
|
|
260
|
+
`,(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",variant:n="solid",size:a="medium",className:i,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:je(t),className:i,ref:o,"data-qlib-variant":n,"data-qlib-size":a},s,{children:l}))})));we.displayName="Badge";const $e={root:i.css`
|
|
261
261
|
margin-inline-end: ${$("gap")};
|
|
262
|
-
`},qe=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,
|
|
262
|
+
`},qe=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=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,["className","children"]);return(0,e.jsx)("span",Object.assign({css:$e.root,className:t,ref:o},a,{children:n}))}));qe.displayName="BadgeIconContainer";const ke=require("react-is"),Ne=e=>{const o=Pe(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`")},Pe=e=>{const o=r.Children.toArray(e);return 1===o.length&&(0,ke.isFragment)(o[0])?Pe(o[0].props.children):o},Se=(0,r.createContext)({isPale:!0,totalValue:0}),ze=Se.Provider;const Ce={root:i.css`
|
|
263
263
|
inline-size: 100%;
|
|
264
264
|
display: flex;
|
|
265
265
|
overflow: hidden;
|
|
266
|
-
`},Ie=(0,r.forwardRef)(((o,t)=>{var{isPale:n=!0,children:
|
|
266
|
+
`},Ie=(0,r.forwardRef)(((o,t)=>{var{isPale:n=!0,children:a,className:i}=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)((()=>Ne(a).reduce(((e,r)=>e+ +r.props.value),0)),[a]),c=(0,r.useMemo)((()=>({isPale:n,totalValue:s})),[n,s]);return(0,e.jsx)("div",Object.assign({css:Ce.root,className:i,ref:t},l,{children:(0,e.jsx)(ze,{value:c,children:a})}))}));Ie.displayName="BarMeter";const Ee={root:i.css`
|
|
267
267
|
${N(1.5)}
|
|
268
|
-
`,inner:
|
|
268
|
+
`,inner:i.css`
|
|
269
269
|
display: -webkit-box;
|
|
270
270
|
-webkit-box-orient: vertical;
|
|
271
271
|
-webkit-line-clamp: 1;
|
|
272
272
|
overflow: hidden;
|
|
273
|
-
`},Re=(0,r.forwardRef)(((r,o)=>{var{as:t="div",children:n,className:
|
|
273
|
+
`},Re=(0,r.forwardRef)(((r,o)=>{var{as:t="div",children:n,className:a}=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","children","className"]);const l=t;return(0,e.jsx)(l,Object.assign({css:Ee.root,className:a,ref:o},i,{children:(0,e.jsx)("span",{css:Ee.inner,children:n})}))}));Re.displayName="SingleLineText";const De={root:e=>i.css`
|
|
274
274
|
&[data-qlib-pale="true"] {
|
|
275
275
|
--qlib-bar-color: ${x(e,3)};
|
|
276
276
|
}
|
|
@@ -303,12 +303,12 @@
|
|
|
303
303
|
&:last-of-type {
|
|
304
304
|
--qlib-border-end-radius: ${$("max")};
|
|
305
305
|
}
|
|
306
|
-
`,barContainer:
|
|
306
|
+
`,barContainer:i.css`
|
|
307
307
|
inline-size: 100%;
|
|
308
308
|
block-size: ${$(1.5)};
|
|
309
309
|
display: flex;
|
|
310
310
|
box-sizing: border-box;
|
|
311
|
-
`,bar:
|
|
311
|
+
`,bar:i.css`
|
|
312
312
|
background-color: var(--qlib-bar-color);
|
|
313
313
|
border-start-start-radius: var(--qlib-border-start-radius);
|
|
314
314
|
border-end-start-radius: var(--qlib-border-start-radius);
|
|
@@ -316,30 +316,30 @@
|
|
|
316
316
|
border-end-end-radius: var(--qlib-border-end-radius);
|
|
317
317
|
flex-grow: 1;
|
|
318
318
|
flex-shrink: 1;
|
|
319
|
-
`,spacer:
|
|
319
|
+
`,spacer:i.css`
|
|
320
320
|
inline-size: ${q(1)};
|
|
321
321
|
flex-grow: 0;
|
|
322
322
|
flex-shrink: 0;
|
|
323
323
|
display: var(--qlib-spacer-display);
|
|
324
|
-
`,legend:
|
|
324
|
+
`,legend:i.css`
|
|
325
325
|
inline-size: 100%;
|
|
326
326
|
margin-block-start: ${$(1)};
|
|
327
327
|
font-size: ${$(3)};
|
|
328
328
|
color: var(--qlib-color);
|
|
329
329
|
box-sizing: border-box;
|
|
330
|
-
`,icon:
|
|
330
|
+
`,icon:i.css`
|
|
331
331
|
margin-inline-end: ${$("gap")};
|
|
332
332
|
display: inline;
|
|
333
|
-
`},Me=(0,r.forwardRef)(((o,t)=>{var{scheme:n="gray",value:
|
|
333
|
+
`},Me=(0,r.forwardRef)(((o,t)=>{var{scheme:n="gray",value:a,children:i,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)(Se),b=d>0?a/d*100:0;return(0,e.jsxs)("div",Object.assign({css:De.root(n),className:l,ref:t,"data-qlib-pale":c,style:{inlineSize:`${b}%`}},s,{children:[(0,e.jsxs)("div",{css:De.barContainer,"aria-hidden":!0,children:[(0,e.jsx)("div",{css:De.spacer}),(0,e.jsx)("div",{css:De.bar})]}),(0,e.jsx)(Re,{css:De.legend,children:i})]}))}));Me.displayName="BarMeterValue";const Le={root:i.css`
|
|
334
334
|
margin-inline-end: ${$("gap")};
|
|
335
|
-
`},Fe=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=r,
|
|
335
|
+
`},Fe=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=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,["className","children"]);return(0,e.jsx)("span",Object.assign({css:Le.root,className:t,ref:o},a,{children:n}))}));Fe.displayName="BarMeterValueIconContainer";const Be={root:i.css`
|
|
336
336
|
inline-size: 100%;
|
|
337
337
|
block-size: ${$(1.5)};
|
|
338
338
|
border-radius: ${$("max")};
|
|
339
339
|
background-color: ${x("gray",1)};
|
|
340
340
|
display: flex;
|
|
341
341
|
overflow: hidden;
|
|
342
|
-
`,bar:e=>
|
|
342
|
+
`,bar:e=>i.css`
|
|
343
343
|
&[data-qlib-pale="true"] {
|
|
344
344
|
--qlib-bar-color: ${x(e,3)};
|
|
345
345
|
}
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
--qlib-bar-color: ${x(e,5)};
|
|
348
348
|
}
|
|
349
349
|
background-color: var(--qlib-bar-color);
|
|
350
|
-
`},Ae=(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",value:n,minValue:
|
|
350
|
+
`},Ae=(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",value:n,minValue:a,maxValue:i,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-a)/(i-a)*100,0),100);return(0,e.jsx)("div",Object.assign({css:Be.root,className:s,ref:o,role:"progressbar","aria-valuenow":n,"aria-valuemin":a,"aria-valuemax":i},c,{children:(0,e.jsx)("div",{css:Be.bar(t),style:{inlineSize:`${d}%`},"data-qlib-pale":l,"aria-hidden":!0})}))}));Ae.displayName="BarProgress";const Te={rootBox:e=>i.css`
|
|
351
351
|
// 文字サイズ
|
|
352
352
|
&[data-qlib-size="small"] {
|
|
353
353
|
--qlib-font-size: ${$(3)};
|
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
opacity: 0.5;
|
|
430
430
|
cursor: inherit;
|
|
431
431
|
}
|
|
432
|
-
`,rootText:e=>
|
|
432
|
+
`,rootText:e=>i.css`
|
|
433
433
|
&[data-qlib-variant="underline"] {
|
|
434
434
|
--qlib-color: ${x(e,5)};
|
|
435
435
|
--qlib-hover-color: ${x(e,4)};
|
|
@@ -459,7 +459,7 @@
|
|
|
459
459
|
opacity: 0.5;
|
|
460
460
|
cursor: inherit;
|
|
461
461
|
}
|
|
462
|
-
`,rootUnstyled:e=>
|
|
462
|
+
`,rootUnstyled:e=>i.css`
|
|
463
463
|
&[data-qlib-variant="underline"] {
|
|
464
464
|
--qlib-hover-decoration-color: currentcolor;
|
|
465
465
|
}
|
|
@@ -483,7 +483,7 @@
|
|
|
483
483
|
opacity: 0.5;
|
|
484
484
|
cursor: inherit;
|
|
485
485
|
}
|
|
486
|
-
`,loading:
|
|
486
|
+
`,loading:i.css`
|
|
487
487
|
inset: ${$(0)};
|
|
488
488
|
background-color: var(--qlib-background-color);
|
|
489
489
|
border-radius: ${$(1)};
|
|
@@ -494,17 +494,17 @@
|
|
|
494
494
|
&[data-qlib-loading="true"] {
|
|
495
495
|
display: flex;
|
|
496
496
|
}
|
|
497
|
-
`},He=(0,r.forwardRef)(((o,t)=>{var{scheme:n="primary",variant:
|
|
497
|
+
`},He=(0,r.forwardRef)(((o,t)=>{var{scheme:n="primary",variant:a="solid",size:i="medium",isCompact:c=!1,type:d="button",isDisabled:b=!1,isLoading:p=!1,onClick:u,onKeyDown:f,onKeyUp:m,onMouseDown:y,onPointerDown: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,["scheme","variant","size","isCompact","type","isDisabled","isLoading","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","children","className"]);const x=(0,r.useMemo)((()=>"solid"===a||"light"===a?Te.rootBox(n):"underline"===a||"simple"===a?Te.rootText(n):Te.rootUnstyled(n)),[n,a]);return(0,e.jsxs)("button",Object.assign({className:O,css:x,type:d,disabled:b||p,onClick:u,onKeyDown:f,onKeyUp:m,onMouseDown:y,onPointerDown:g,ref:t,"data-qlib-variant":a,"data-qlib-size":i,"data-qlib-compact":c,"data-qlib-loading":p},v,{children:[h,(0,e.jsx)("div",{css:Te.loading,"data-qlib-loading":p,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})})]}))}));He.displayName="Button";const Ve={root:i.css`
|
|
498
498
|
margin-inline-end: ${$("gap")};
|
|
499
499
|
display: inline;
|
|
500
500
|
flex-grow: 0;
|
|
501
501
|
flex-shrink: 0;
|
|
502
|
-
`},Ye=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
502
|
+
`},Ye=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Ve.root,className:n,ref:o},a,{children:t}))}));Ye.displayName="ButtonIconContainer";const Ue={root:i.css`
|
|
503
503
|
column-gap: ${$("gap")};
|
|
504
504
|
display: flex;
|
|
505
505
|
align-items: center;
|
|
506
|
-
`},_e=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
507
|
-
`},Ge=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
506
|
+
`},_e=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("label",Object.assign({className:n,css:Ue.root,ref:o},a,{children:t}))}));_e.displayName="CheckableContainer";const Ke={root:i.css`
|
|
507
|
+
`},Ge=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({className:n,css:Ke.root,ref:o},a,{children:t}))}));Ge.displayName="CheckableLabel";const Qe=require("@floating-ui/react");const Je={root:i.css`
|
|
508
508
|
&[data-qlib-error="false"] {
|
|
509
509
|
--qlib-border-color: ${x("gray",5)};
|
|
510
510
|
--qlib-focus-color: ${j(x("primary",5),.6)};
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
flex-direction: row;
|
|
534
534
|
align-items: center;
|
|
535
535
|
cursor: pointer;
|
|
536
|
-
`,original:
|
|
536
|
+
`,original:i.css`
|
|
537
537
|
inline-size: 1px;
|
|
538
538
|
block-size: 1px;
|
|
539
539
|
position: absolute;
|
|
@@ -542,7 +542,7 @@
|
|
|
542
542
|
opacity: 0;
|
|
543
543
|
clip: rect(0px, 0px, 0px, 0px);
|
|
544
544
|
clip-path: inset(50%);
|
|
545
|
-
`,input:
|
|
545
|
+
`,input:i.css`
|
|
546
546
|
inline-size: ${$(4.5)};
|
|
547
547
|
block-size: ${$(4.5)};
|
|
548
548
|
border-radius: ${$(1)};
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
input:disabled +& {
|
|
568
568
|
cursor: inherit;
|
|
569
569
|
}
|
|
570
|
-
`,icon:
|
|
570
|
+
`,icon:i.css`
|
|
571
571
|
font-size: ${$(4)};
|
|
572
572
|
color: ${x("white")};
|
|
573
573
|
transition: color 0.2s ease, opacity 0.2s ease;
|
|
@@ -579,11 +579,11 @@
|
|
|
579
579
|
input:indeterminate +* >& {
|
|
580
580
|
color: var(--qlib-checked-background-color);
|
|
581
581
|
}
|
|
582
|
-
`},We=(0,r.forwardRef)(((o,t)=>{var{isChecked:n,name:
|
|
582
|
+
`},We=(0,r.forwardRef)(((o,t)=>{var{isChecked:n,name:a,value:i,isError:s=!1,isRequired:c,isDisabled:d=!1,onSet:b,onChange:p,onBlur:u,className:f}=o,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}(o,["isChecked","name","value","isError","isRequired","isDisabled","onSet","onChange","onBlur","className"]);const y=(0,Qe.useId)(),g=(0,r.useRef)(null),h=(0,Qe.useMergeRefs)([t,g]),O=(0,r.useCallback)((e=>{const r=e.target.checked;null==b||b(r),null==p||p(e)}),[b,p]);return(0,r.useEffect)((()=>{null!=g.current&&(g.current.indeterminate="indeterminate"===n)}),[n]),(0,e.jsxs)("div",Object.assign({css:Je.root,className:f,"data-qlib-error":s},m,{children:[(0,e.jsx)("input",{type:"checkbox",css:Je.original,ref:h,id:y,checked:null!=n?!0===n:void 0,name:a,value:i,required:c,disabled:d,onChange:null!=b||null!=p?O:void 0,onBlur:u,"aria-invalid":s}),(0,e.jsx)("label",{css:Je.input,htmlFor:y,"aria-hidden":"true",children:(0,e.jsx)(l.FontAwesomeIcon,{css:Je.icon,icon:"indeterminate"===n?me.faMinus:me.faCheck})})]}))}));We.displayName="Checkbox";const Ze={root:i.css`
|
|
583
583
|
row-gap: ${$(2)};
|
|
584
584
|
display: flex;
|
|
585
585
|
flex-direction: column;
|
|
586
|
-
`},Xe=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
586
|
+
`},Xe=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("label",Object.assign({className:n,css:Ze.root,ref:o},a,{children:t}))}));Xe.displayName="ControlContainer";const er=e=>i.css`
|
|
587
587
|
&[data-qlib-max-line="true"] {
|
|
588
588
|
--qlib-additional-margin: 1em;
|
|
589
589
|
}
|
|
@@ -614,17 +614,17 @@
|
|
|
614
614
|
-webkit-line-clamp: ${e};
|
|
615
615
|
overflow: hidden;
|
|
616
616
|
}
|
|
617
|
-
`,rr=(0,r.forwardRef)(((r,o)=>{var{as:t="div",lineHeight:n="normal",maxLineCount:
|
|
617
|
+
`,rr=(0,r.forwardRef)(((r,o)=>{var{as:t="div",lineHeight:n="normal",maxLineCount:a=null,children:i,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:er(null!=a?a:0),className:l,ref:o,"data-qlib-line-height":n,"data-qlib-max-line":null!=a},s,{children:i}))}));rr.displayName="MultiLineText";const or={root:i.css`
|
|
618
618
|
font-size: ${$(3)};
|
|
619
619
|
color: ${x("red",5)};
|
|
620
|
-
`},tr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
620
|
+
`},tr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)(rr,Object.assign({className:n,css:or.root,as:"p",ref:o},a,{children:t}))}));tr.displayName="ControlErrorMessage";const nr={root:i.css`
|
|
621
621
|
font-size: ${$(3)};
|
|
622
622
|
color: ${x("gray",5)};
|
|
623
|
-
`},
|
|
623
|
+
`},ar=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)(rr,Object.assign({className:n,css:nr.root,ref:o,as:"p",lineHeight:"narrow"},a,{children:t}))}));ar.displayName="ControlHelper";const ir={root:i.css`
|
|
624
624
|
font-size: ${$(4)};
|
|
625
625
|
font-weight: ${v("bold")};
|
|
626
626
|
color: ${x("gray",7)};
|
|
627
|
-
`},lr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
627
|
+
`},lr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)(Re,Object.assign({className:n,css:ir.root,as:"div",ref:o},a,{children:t}))}));lr.displayName="ControlLabel";const sr={root:i.css`
|
|
628
628
|
&[data-qlib-orientation="vertical"] {
|
|
629
629
|
block-size: 100%;
|
|
630
630
|
border-inline-start: solid ${q(1)} ${x("gray",1)};
|
|
@@ -633,8 +633,8 @@
|
|
|
633
633
|
inline-size: 100%;
|
|
634
634
|
border-block-start: solid ${q(1)} ${x("gray",1)};
|
|
635
635
|
}
|
|
636
|
-
`},cr=(0,r.forwardRef)(((r,o)=>{var{orientation:t,className:n}=r,
|
|
637
|
-
`;const dr=(0,r.forwardRef)(((r,o)=>{var{icon:t,label:n,flip:
|
|
636
|
+
`},cr=(0,r.forwardRef)(((r,o)=>{var{orientation:t,className:n}=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,["orientation","className"]);return(0,e.jsx)("div",Object.assign({css:sr.root,className:n,role:"separator",ref:o,"data-qlib-orientation":t},a))}));cr.displayName="Divider";i.css`
|
|
637
|
+
`;const dr=(0,r.forwardRef)(((r,o)=>{var{icon:t,label:n,flip:a="none",rotation:i=0,spin:s=!1,className:c}=r,d=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["icon","label","flip","rotation","spin","className"]);return(0,e.jsx)(l.FontAwesomeIcon,Object.assign({className:c,icon:t,title:n,flip:"none"===a?void 0:a,rotation:0===i?void 0:i,spin:s,ref:o},d))}));dr.displayName="GeneralIcon";const br={root:i.css`
|
|
638
638
|
&[data-qlib-size="small"] {
|
|
639
639
|
--qlib-font-size: ${$(3)};
|
|
640
640
|
--qlib-padding-block: ${$(1.5)};
|
|
@@ -668,7 +668,7 @@
|
|
|
668
668
|
border-color: var(--qlib-focus-border-color);
|
|
669
669
|
outline: solid ${q(1)} var(--qlib-focus-border-color);
|
|
670
670
|
}
|
|
671
|
-
`,inputContainer:
|
|
671
|
+
`,inputContainer:i.css`
|
|
672
672
|
column-gap: ${$("gap")};
|
|
673
673
|
display: flex;
|
|
674
674
|
align-items: center;
|
|
@@ -676,7 +676,7 @@
|
|
|
676
676
|
flex-shrink: 1;
|
|
677
677
|
z-index: 0;
|
|
678
678
|
position: relative;
|
|
679
|
-
`,input:
|
|
679
|
+
`,input:i.css`
|
|
680
680
|
width: 1px;
|
|
681
681
|
height: 1px;
|
|
682
682
|
position: absolute;
|
|
@@ -685,7 +685,7 @@
|
|
|
685
685
|
opacity: 0;
|
|
686
686
|
clip: rect(0px, 0px, 0px, 0px);
|
|
687
687
|
clip-path: inset(50%);
|
|
688
|
-
`,button:
|
|
688
|
+
`,button:i.css`
|
|
689
689
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
690
690
|
box-sizing: content-box;
|
|
691
691
|
flex-grow: 1;
|
|
@@ -696,11 +696,11 @@
|
|
|
696
696
|
&:disabled {
|
|
697
697
|
cursor: inherit;
|
|
698
698
|
}
|
|
699
|
-
`,builtinAddon:
|
|
699
|
+
`,builtinAddon:i.css`
|
|
700
700
|
color: ${x("gray",5)};
|
|
701
701
|
flex-grow: 0;
|
|
702
702
|
flex-shrink: 0;
|
|
703
|
-
`},pr=o=>{var{value:t,name:n,size:
|
|
703
|
+
`},pr=o=>{var{value:t,name:n,size:a="medium",multiple:i,accept:l,autoFocus:c,isError:d=!1,isRequired:b,isDisabled:p,onSet:u,onChange:f,onBlur: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,["value","name","size","multiple","accept","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const O=(0,r.useRef)(null),[v,x]=(0,r.useState)(""),j=(0,r.useCallback)((function(e){var r,o;const t=Array.from(null!==(r=e.target.files)&&void 0!==r?r:[]);i?null==u||u(t):null==u||u(null!==(o=t[0])&&void 0!==o?o:null),null==f||f(e),x(ur(t))}),[i,u,f]),w=(0,r.useCallback)((function(){var e;null===(e=O.current)||void 0===e||e.click()}),[]);return(0,e.jsx)("div",{className:g,css:br.root,"data-qlib-size":a,"data-qlib-disabled":p,"data-qlib-error":d,children:(0,e.jsxs)("div",{css:br.inputContainer,children:[(0,e.jsx)("input",Object.assign({css:br.input,ref:O,name:n,type:"file",multiple:i,accept:l,autoFocus:c,required:b,disabled:p,onChange:j,onBlur:m,"aria-invalid":d},h)),(0,e.jsx)("button",{css:br.button,disabled:p,onClick:w,"aria-hidden":!0,children:v}),(0,e.jsx)("div",{css:br.builtinAddon,children:(0,e.jsx)(dr,{icon:i?s.faFiles:s.faFile})})]})})};function ur(e){return Array.isArray(e)?e.map(ur).join(", "):null!=e?e.name:""}pr.displayName="FileInput";const fr={root:i.css`
|
|
704
704
|
padding-block: ${$(1)};
|
|
705
705
|
padding-inline-start: ${$(3)};
|
|
706
706
|
font-size: ${$(5)};
|
|
@@ -715,16 +715,16 @@
|
|
|
715
715
|
flex-grow: 1;
|
|
716
716
|
content: "";
|
|
717
717
|
}
|
|
718
|
-
`},mr=(0,r.forwardRef)(((r,o)=>{var{as:t="h2",className:n,children:
|
|
718
|
+
`},mr=(0,r.forwardRef)(((r,o)=>{var{as:t="h2",className:n,children:a}=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 l=t;return(0,e.jsx)(l,Object.assign({css:fr.root,className:n,ref:o},i,{children:a}))}));mr.displayName="Heading";const yr={plus:s.faPlus,minus:s.faTimes,edit:s.faPen,delete:s.faTrashAlt,search:s.faSearch,upload:s.faUpload,copy:s.faCopy,confirm:s.faCheck,accept:s.faThumbsUp,refuse:s.faBan,move:s.faArrowsUpDownLeftRight,bulk:s.faBucket,login:s.faSignInAlt,logout:s.faSignOutAlt,correct:s.faO,wrong:s.faTimes,first:s.faArrowLeftToLine,previous:s.faArrowLeft,next:s.faArrowRight,last:s.faArrowRightToLine,success:s.faCircleCheck,error:s.faTriangleExclamation,caution:s.faTriangleExclamation,info:s.faCircleInfo,more:s.faAngleDown,less:s.faAngleUp,back:s.faLeft,empty:s.faFaceDotted,menu:s.faBars,grip:s.faGripVertical,ellipsis:s.faEllipsisH};const gr=(0,r.forwardRef)(((r,o)=>{var{name:t,label:n,className:a}=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,["name","label","className"]);const s=yr[t];return(0,e.jsx)(l.FontAwesomeIcon,Object.assign({className:a,icon:s,title:n,ref:o},i))}));gr.displayName="Icon";const hr={rootBox:e=>i.css`
|
|
719
719
|
// 文字サイズ
|
|
720
720
|
&[data-qlib-size="small"] {
|
|
721
721
|
--qlib-font-size: ${$(3)};
|
|
722
722
|
}
|
|
723
723
|
&[data-qlib-size="medium"] {
|
|
724
|
-
--qlib-font-size: ${$(4)}
|
|
724
|
+
--qlib-font-size: ${$(4)};
|
|
725
725
|
}
|
|
726
726
|
&[data-qlib-size="large"] {
|
|
727
|
-
--qlib-font-size: ${$(6)}
|
|
727
|
+
--qlib-font-size: ${$(6)};
|
|
728
728
|
}
|
|
729
729
|
// 内部の余白
|
|
730
730
|
&[data-qlib-size="small"] {
|
|
@@ -763,7 +763,7 @@
|
|
|
763
763
|
border-radius: ${$(1)};
|
|
764
764
|
line-height: 1;
|
|
765
765
|
text-align: center;
|
|
766
|
-
box-sizing:
|
|
766
|
+
box-sizing: content-box;
|
|
767
767
|
cursor: pointer;
|
|
768
768
|
transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
|
|
769
769
|
display: flex;
|
|
@@ -782,7 +782,7 @@
|
|
|
782
782
|
opacity: 0.5;
|
|
783
783
|
cursor: inherit;
|
|
784
784
|
}
|
|
785
|
-
`,loading:
|
|
785
|
+
`,loading:i.css`
|
|
786
786
|
inset: ${$(0)};
|
|
787
787
|
background-color: var(--qlib-background-color);
|
|
788
788
|
border-radius: ${$(1)};
|
|
@@ -793,22 +793,38 @@
|
|
|
793
793
|
&[data-qlib-loading="true"] {
|
|
794
794
|
display: flex;
|
|
795
795
|
}
|
|
796
|
-
`},Or=(0,r.forwardRef)(((r,o)=>{var{label:t,scheme:n="primary",variant:
|
|
796
|
+
`},Or=(0,r.forwardRef)(((r,o)=>{var{label:t,scheme:n="primary",variant:a="solid",size:i="medium",type:c="button",isDisabled:d=!1,isLoading:b=!1,onClick:p,onKeyDown:u,onKeyUp:f,onMouseDown:m,onPointerDown:y,className:g,children:h}=r,O=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["label","scheme","variant","size","type","isDisabled","isLoading","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","className","children"]);return(0,e.jsxs)("button",Object.assign({className:g,css:hr.rootBox(n),type:c,disabled:d||b,onClick:p,onKeyDown:u,onKeyUp:f,onMouseDown:m,onPointerDown:y,ref:o,"aria-label":t,"data-qlib-variant":a,"data-qlib-size":i,"data-qlib-loading":b},O,{children:[h,(0,e.jsx)("div",{css:hr.loading,"data-qlib-loading":b,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})})]}))}));Or.displayName="IconButton";const vr={root:i.css`
|
|
797
797
|
flex-grow: 0;
|
|
798
798
|
flex-shrink: 0;
|
|
799
|
-
`},xr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
799
|
+
`},xr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:vr.root,className:n,ref:o},a,{children:t}))}));xr.displayName="InputLeftAddon";const jr={root:i.css`
|
|
800
800
|
flex-grow: 0;
|
|
801
801
|
flex-shrink: 0;
|
|
802
|
-
`},wr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
802
|
+
`},wr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:jr.root,className:n,ref:o},a,{children:t}))}));wr.displayName="InputRightAddon";const $r={root:i.css`
|
|
803
803
|
&[data-qlib-size="small"] {
|
|
804
804
|
--qlib-font-size: ${$(3)};
|
|
805
|
-
--qlib-padding-block: ${$(1.5)};
|
|
806
|
-
--qlib-padding-inline: ${$(1.5)};
|
|
807
805
|
}
|
|
808
806
|
&[data-qlib-size="medium"] {
|
|
809
807
|
--qlib-font-size: ${$(4)};
|
|
810
|
-
|
|
811
|
-
|
|
808
|
+
}
|
|
809
|
+
&[data-qlib-size="small"] {
|
|
810
|
+
&[data-qlib-compact="false"] {
|
|
811
|
+
--qlib-padding-block: ${$(1.5)};
|
|
812
|
+
--qlib-padding-inline: ${$(1.5)};
|
|
813
|
+
}
|
|
814
|
+
&[data-qlib-compact="true"] {
|
|
815
|
+
--qlib-padding-block: ${$(1)};
|
|
816
|
+
--qlib-padding-inline: ${$(1.5)};
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
&[data-qlib-size="medium"] {
|
|
820
|
+
&[data-qlib-compact="false"] {
|
|
821
|
+
--qlib-padding-block: ${$(2)};
|
|
822
|
+
--qlib-padding-inline: ${$(2)};
|
|
823
|
+
}
|
|
824
|
+
&[data-qlib-compact="true"] {
|
|
825
|
+
--qlib-padding-block: ${$(1)};
|
|
826
|
+
--qlib-padding-inline: ${$(1.5)};
|
|
827
|
+
}
|
|
812
828
|
}
|
|
813
829
|
&[data-qlib-error="false"] {
|
|
814
830
|
--qlib-border-color: ${x("gray",3)};
|
|
@@ -835,7 +851,7 @@
|
|
|
835
851
|
border-color: var(--qlib-focus-border-color);
|
|
836
852
|
outline: solid ${q(1)} var(--qlib-focus-border-color);
|
|
837
853
|
}
|
|
838
|
-
`,inputContainer:
|
|
854
|
+
`,inputContainer:i.css`
|
|
839
855
|
column-gap: ${$("gap")};
|
|
840
856
|
display: flex;
|
|
841
857
|
align-items: center;
|
|
@@ -843,7 +859,7 @@
|
|
|
843
859
|
flex-shrink: 1;
|
|
844
860
|
z-index: 0;
|
|
845
861
|
position: relative;
|
|
846
|
-
`,input:
|
|
862
|
+
`,input:i.css`
|
|
847
863
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
848
864
|
box-sizing: content-box;
|
|
849
865
|
flex-grow: 1;
|
|
@@ -862,11 +878,11 @@
|
|
|
862
878
|
cursor: pointer;
|
|
863
879
|
z-index: 1;
|
|
864
880
|
}
|
|
865
|
-
`,builtinAddon:
|
|
881
|
+
`,builtinAddon:i.css`
|
|
866
882
|
color: ${x("gray",5)};
|
|
867
883
|
flex-grow: 0;
|
|
868
884
|
flex-shrink: 0;
|
|
869
|
-
`},qr=(0,r.forwardRef)(((o,t)=>{var{value:n,name:
|
|
885
|
+
`},qr=(0,r.forwardRef)(((o,t)=>{var{value:n,name:a,size:i="medium",isCompact:l=!1,type:c="text",autoComplete:d="off",autoFocus:b,isError:p=!1,isRequired:u,isDisabled:f,onSet:m,onChange:y,onBlur:g,children:h,className:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","isCompact","type","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const x=(0,r.useCallback)((e=>{const r=e.target.value;null==m||m(r),null==y||y(e)}),[m,y]),j=Ne(h),w=j.find((e=>e.type===xr)),$=j.find((e=>e.type===wr));return(0,e.jsx)("label",{className:O,css:$r.root,"data-qlib-size":i,"data-qlib-compact":l,"data-qlib-disabled":f,"data-qlib-error":p,children:(0,e.jsxs)("div",{css:$r.inputContainer,children:[w,(0,e.jsx)("input",Object.assign({css:$r.input,ref:t,value:n,name:a,type:c,autoComplete:d,autoFocus:b,required:u,disabled:f,onChange:null!=m||null!=y?x:void 0,onBlur:g,"aria-invalid":p},v)),kr(c)&&(0,e.jsx)("div",{css:$r.builtinAddon,children:(0,e.jsx)(dr,{icon:"time"===c?s.faClock:s.faCalendar})}),$]})})}));qr.displayName="Input";const kr=e=>"date"===e||"time"===e||"datetime-local"===e||"month"===e||"week"===e;const Nr=e=>i.css`
|
|
870
886
|
// 文字サイズ
|
|
871
887
|
&[data-qlib-size="small"] {
|
|
872
888
|
--qlib-font-size: ${$(3)};
|
|
@@ -948,7 +964,7 @@
|
|
|
948
964
|
opacity: 0.5;
|
|
949
965
|
cursor: inherit;
|
|
950
966
|
}
|
|
951
|
-
`,Pr=e=>
|
|
967
|
+
`,Pr=e=>i.css`
|
|
952
968
|
&[data-qlib-variant="underline"] {
|
|
953
969
|
--qlib-color: ${x(e,5)};
|
|
954
970
|
--qlib-hover-color: ${x(e,4)};
|
|
@@ -978,7 +994,7 @@
|
|
|
978
994
|
opacity: 0.5;
|
|
979
995
|
cursor: inherit;
|
|
980
996
|
}
|
|
981
|
-
`,Sr=e=>
|
|
997
|
+
`,Sr=e=>i.css`
|
|
982
998
|
&[data-qlib-variant="underline"] {
|
|
983
999
|
--qlib-hover-decoration-color: currentcolor;
|
|
984
1000
|
}
|
|
@@ -1002,7 +1018,7 @@
|
|
|
1002
1018
|
opacity: 0.5;
|
|
1003
1019
|
cursor: inherit;
|
|
1004
1020
|
}
|
|
1005
|
-
`,zr=(
|
|
1021
|
+
`,zr=(i.css`
|
|
1006
1022
|
inset: ${$(0)};
|
|
1007
1023
|
background-color: var(--qlib-background-color);
|
|
1008
1024
|
border-radius: ${$(1)};
|
|
@@ -1013,14 +1029,14 @@
|
|
|
1013
1029
|
&[data-qlib-loading="true"] {
|
|
1014
1030
|
display: flex;
|
|
1015
1031
|
}
|
|
1016
|
-
`,(0,r.forwardRef)(((o,t)=>{var{href:n,target:
|
|
1032
|
+
`,(0,r.forwardRef)(((o,t)=>{var{href:n,target:a,scheme:i="primary",variant:l="underline",size:s="medium",isCompact:c=!1,onClick:d,onKeyDown:b,onKeyUp:p,onMouseDown:u,onPointerDown:f,children:m,className:y}=o,g=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["href","target","scheme","variant","size","isCompact","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","children","className"]);const h=(0,r.useMemo)((()=>"solid"===l||"light"===l?Nr(i):"underline"===l||"simple"===l?Pr(i):Sr(i)),[i,l]);return(0,e.jsx)("a",Object.assign({className:y,css:h,href:n,target:a,onClick:d,onKeyDown:b,onKeyUp:p,onMouseDown:u,onPointerDown:f,ref:t,"data-qlib-variant":l,"data-qlib-size":s,"data-qlib-compact":c},g,{children:m}))})));zr.displayName="Link";const Cr={root:i.css`
|
|
1017
1033
|
margin-inline-end: ${$("gap")};
|
|
1018
1034
|
display: inline;
|
|
1019
1035
|
flex-grow: 0;
|
|
1020
1036
|
flex-shrink: 0;
|
|
1021
|
-
`},Ir=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
1037
|
+
`},Ir=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Cr.root,className:n,ref:o},a,{children:t}))}));Ir.displayName="LinkIconContainer";const Er=e=>i.css`
|
|
1022
1038
|
color: ${null!=e?x(e,5):"inherit"};
|
|
1023
|
-
`,Rr=(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",className:n}=r,
|
|
1039
|
+
`,Rr=(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",className:n}=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","className"]);const{trans:i}=I("loadingIcon");return(0,e.jsx)(l.FontAwesomeIcon,Object.assign({className:n,css:Er(t),icon:s.faCircleNotch,spin:!0,ref:o,"aria-label":i("label")},a))}));Rr.displayName="LoadingIcon";const Dr=require("body-scroll-lock"),Mr=require("react-modal");var Lr=o.n(Mr);const Fr={overlay:i.css`
|
|
1024
1040
|
background-color: ${j(x("black"),.6)};
|
|
1025
1041
|
position: fixed;
|
|
1026
1042
|
inset: 0rem;
|
|
@@ -1032,19 +1048,39 @@
|
|
|
1032
1048
|
&.ReactModal__Overlay--before-close {
|
|
1033
1049
|
opacity: 0;
|
|
1034
1050
|
}
|
|
1035
|
-
`},Br=({isOpen:o,label:t,onClose:n,children:
|
|
1051
|
+
`},Br=({isOpen:o,label:t,onClose:n,children:a,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?Dr.disableBodyScroll(document.body,{reserveScrollBarGap:!0}):Dr.enableBodyScroll(document.body)}),[b]),(0,e.jsx)(i.ClassNames,{children:({css:n})=>(0,e.jsx)(Lr(),{isOpen:void 0!==o?o:s,contentLabel:t,onRequestClose:d,className:"qlib-modal",overlayClassName:[l,n(Fr.overlay)].join(" "),portalClassName:"qlib-modal-portal",bodyOpenClassName:null,htmlOpenClassName:null,shouldCloseOnOverlayClick:!0,shouldCloseOnEsc:!0,contentElement:e=>(0,r.cloneElement)(a,e),closeTimeoutMS:200})})};Br.displayName="Modal";const Ar={root:i.css`
|
|
1036
1052
|
flex-grow: 0;
|
|
1037
1053
|
flex-shrink: 0;
|
|
1038
|
-
`},Tr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
1054
|
+
`},Tr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Ar.root,className:n,ref:o},a,{children:t}))}));Tr.displayName="NumberInputLeftAddon";const Hr={root:i.css`
|
|
1039
1055
|
&[data-qlib-size="small"] {
|
|
1040
1056
|
--qlib-font-size: ${$(3)};
|
|
1041
|
-
--qlib-padding-block: ${$(1.5)};
|
|
1042
|
-
--qlib-padding-inline: ${$(1.5)};
|
|
1043
1057
|
}
|
|
1044
1058
|
&[data-qlib-size="medium"] {
|
|
1045
1059
|
--qlib-font-size: ${$(4)};
|
|
1046
|
-
|
|
1047
|
-
|
|
1060
|
+
}
|
|
1061
|
+
&[data-qlib-size="small"] {
|
|
1062
|
+
&[data-qlib-compact="false"] {
|
|
1063
|
+
--qlib-padding-block: ${$(1.5)};
|
|
1064
|
+
--qlib-padding-inline: ${$(1.5)};
|
|
1065
|
+
--qlib-control-width: ${$(5)};
|
|
1066
|
+
}
|
|
1067
|
+
&[data-qlib-compact="true"] {
|
|
1068
|
+
--qlib-padding-block: ${$(1)};
|
|
1069
|
+
--qlib-padding-inline: ${$(1.5)};
|
|
1070
|
+
--qlib-control-width: ${$(4)};
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
&[data-qlib-size="medium"] {
|
|
1074
|
+
&[data-qlib-compact="false"] {
|
|
1075
|
+
--qlib-padding-block: ${$(2)};
|
|
1076
|
+
--qlib-padding-inline: ${$(2)};
|
|
1077
|
+
--qlib-control-width: ${$(6)};
|
|
1078
|
+
}
|
|
1079
|
+
&[data-qlib-compact="true"] {
|
|
1080
|
+
--qlib-padding-block: ${$(1)};
|
|
1081
|
+
--qlib-padding-inline: ${$(1.5)};
|
|
1082
|
+
--qlib-control-width: ${$(4)};
|
|
1083
|
+
}
|
|
1048
1084
|
}
|
|
1049
1085
|
&[data-qlib-error="false"] {
|
|
1050
1086
|
--qlib-border-color: ${x("gray",3)};
|
|
@@ -1070,7 +1106,7 @@
|
|
|
1070
1106
|
border-color: var(--qlib-focus-border-color);
|
|
1071
1107
|
outline: solid ${q(1)} var(--qlib-focus-border-color);
|
|
1072
1108
|
}
|
|
1073
|
-
`,inputContainer:
|
|
1109
|
+
`,inputContainer:i.css`
|
|
1074
1110
|
column-gap: ${$("gap")};
|
|
1075
1111
|
display: flex;
|
|
1076
1112
|
align-items: center;
|
|
@@ -1078,7 +1114,7 @@
|
|
|
1078
1114
|
flex-shrink: 1;
|
|
1079
1115
|
z-index: 0;
|
|
1080
1116
|
position: relative;
|
|
1081
|
-
`,input:
|
|
1117
|
+
`,input:i.css`
|
|
1082
1118
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
1083
1119
|
box-sizing: content-box;
|
|
1084
1120
|
flex-grow: 1;
|
|
@@ -1092,17 +1128,17 @@
|
|
|
1092
1128
|
&::-webkit-inner-spin-button {
|
|
1093
1129
|
appearance: none;
|
|
1094
1130
|
}
|
|
1095
|
-
`,
|
|
1096
|
-
inline-size:
|
|
1131
|
+
`,vertivalButtonList:i.css`
|
|
1132
|
+
inline-size: var(--qlib-control-width);
|
|
1097
1133
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
1098
|
-
margin-inline-end: calc(var(--qlib-padding-
|
|
1134
|
+
margin-inline-end: calc(var(--qlib-padding-inline) * -1);
|
|
1135
|
+
border-inline-start: solid ${q(1)} ${x("gray",3)};
|
|
1099
1136
|
display: flex;
|
|
1100
1137
|
flex-direction: column;
|
|
1101
|
-
border-inline-start: solid ${q(1)} ${x("gray",3)};
|
|
1102
1138
|
align-self: stretch;
|
|
1103
1139
|
flex-grow: 0;
|
|
1104
1140
|
flex-shrink: 0;
|
|
1105
|
-
`,
|
|
1141
|
+
`,verticalButton:i.css`
|
|
1106
1142
|
color: ${x("gray",5)};
|
|
1107
1143
|
background-color: ${x("white")};
|
|
1108
1144
|
display: flex;
|
|
@@ -1115,15 +1151,42 @@
|
|
|
1115
1151
|
&:hover:not([data-disabled="true"]) {
|
|
1116
1152
|
background-color: ${x("gray",0)};
|
|
1117
1153
|
}
|
|
1118
|
-
`,
|
|
1154
|
+
`,verticalButtonDivider:i.css`
|
|
1119
1155
|
border-block-start: solid ${q(1)} ${x("gray",3)};
|
|
1120
|
-
|
|
1156
|
+
`,horizontalButton:i.css`
|
|
1157
|
+
inline-size: var(--qlib-control-width);
|
|
1158
|
+
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
1159
|
+
color: ${x("gray",5)};
|
|
1160
|
+
background-color: ${x("white")};
|
|
1161
|
+
display: flex;
|
|
1162
|
+
align-items: center;
|
|
1163
|
+
justify-content: center;
|
|
1164
|
+
align-self: stretch;
|
|
1165
|
+
flex-grow: 0;
|
|
1166
|
+
flex-shrink: 0;
|
|
1167
|
+
cursor: pointer;
|
|
1168
|
+
&[data-position="left"] {
|
|
1169
|
+
margin-inline-start: calc(var(--qlib-padding-inline) * -1);
|
|
1170
|
+
margin-inline-end: calc(var(--qlib-padding-inline) - ${$("gap")});
|
|
1171
|
+
border-inline-end: solid ${q(1)} ${x("gray",3)};
|
|
1172
|
+
order: -1;
|
|
1173
|
+
}
|
|
1174
|
+
&[data-position="right"] {
|
|
1175
|
+
margin-inline-end: calc(var(--qlib-padding-inline) * -1);
|
|
1176
|
+
margin-inline-start: calc(var(--qlib-padding-inline) - ${$("gap")});
|
|
1177
|
+
border-inline-start: solid ${q(1)} ${x("gray",3)};
|
|
1178
|
+
order: 10;
|
|
1179
|
+
}
|
|
1180
|
+
&:hover:not([data-disabled="true"]) {
|
|
1181
|
+
background-color: ${x("gray",0)};
|
|
1182
|
+
}
|
|
1183
|
+
`},Vr=(0,r.forwardRef)(((o,t)=>{var{value:n,name:a,size:i="medium",isCompact:c=!1,controlPosition:d="vertical",max:b,min:p,step:u,autoComplete:f="off",autoFocus:m,isError:y=!1,isRequired:g,isDisabled:h,onSet:O,onChange:v,onBlur:x,children:j,className:w}=o,$=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","isCompact","controlPosition","max","min","step","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const q=(0,r.useRef)(null),k=(0,Qe.useMergeRefs)([t,q]),N=(0,r.useCallback)((e=>{const r=e.target.value;null==O||O(r),null==v||v(e)}),[O,v]),P=(0,r.useCallback)((e=>{null!=q.current&&(q.current.stepUp(),q.current.dispatchEvent(new Event("change",{bubbles:!0})),null==O||O(q.current.value))}),[O]),S=(0,r.useCallback)((e=>{null!=q.current&&(q.current.stepDown(),q.current.dispatchEvent(new Event("change",{bubbles:!0})),null==O||O(q.current.value))}),[O]),z=Ne(j).find((e=>e.type===Tr));return(0,e.jsx)("label",{className:w,css:Hr.root,"data-qlib-size":i,"data-qlib-compact":c,"data-qlib-disabled":h,"data-qlib-error":y,children:(0,e.jsxs)("div",{css:Hr.inputContainer,children:[z,(0,e.jsx)("input",Object.assign({css:Hr.input,ref:k,value:n,name:a,type:"number",max:b,min:p,step:u,autoComplete:f,autoFocus:m,required:g,disabled:h,onChange:null!=O||null!=v?N:void 0,onBlur:x,"aria-invalid":y},$)),"horizontal"===d&&(0,e.jsx)("button",{css:Hr.horizontalButton,type:"button",onClick:S,tabIndex:-1,"data-position":"left","data-disabled":h,"aria-hidden":!0,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleLeft})}),"horizontal"===d&&(0,e.jsx)("button",{css:Hr.horizontalButton,type:"button",onClick:P,tabIndex:-1,"data-position":"right","data-disabled":h,"aria-hidden":!0,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleRight})}),"vertical"===d&&(0,e.jsxs)("div",{css:Hr.vertivalButtonList,children:[(0,e.jsx)("button",{css:Hr.verticalButton,type:"button",onClick:P,tabIndex:-1,"data-disabled":h,"aria-hidden":!0,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleUp})}),(0,e.jsx)("hr",{css:Hr.verticalButtonDivider,"aria-hidden":!0}),(0,e.jsx)("button",{css:Hr.verticalButton,type:"button",onClick:S,tabIndex:-1,"data-disabled":h,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleDown})})]})]})})}));Vr.displayName="NumberInput";const Yr={root:i.css`
|
|
1121
1184
|
flex-grow: 0;
|
|
1122
1185
|
flex-shrink: 0;
|
|
1123
|
-
`},Ur=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
1186
|
+
`},Ur=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Yr.root,className:n,ref:o},a,{children:t}))}));Ur.displayName="PasswordInputLeftAddon";const _r={root:i.css`
|
|
1124
1187
|
flex-grow: 0;
|
|
1125
1188
|
flex-shrink: 0;
|
|
1126
|
-
`},Kr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,
|
|
1189
|
+
`},Kr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:_r.root,className:n,ref:o},a,{children:t}))}));Kr.displayName="PasswordInputRightAddon";const Gr={root:i.css`
|
|
1127
1190
|
&[data-qlib-size="small"] {
|
|
1128
1191
|
--qlib-font-size: ${$(3)};
|
|
1129
1192
|
--qlib-padding-block: ${$(1.5)};
|
|
@@ -1157,13 +1220,13 @@
|
|
|
1157
1220
|
border-color: var(--qlib-focus-border-color);
|
|
1158
1221
|
outline: solid ${q(1)} var(--qlib-focus-border-color);
|
|
1159
1222
|
}
|
|
1160
|
-
`,inputContainer:
|
|
1223
|
+
`,inputContainer:i.css`
|
|
1161
1224
|
column-gap: ${$("gap")};
|
|
1162
1225
|
display: flex;
|
|
1163
1226
|
align-items: center;
|
|
1164
1227
|
flex-grow: 1;
|
|
1165
1228
|
flex-shrink: 1;
|
|
1166
|
-
`,input:
|
|
1229
|
+
`,input:i.css`
|
|
1167
1230
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
1168
1231
|
box-sizing: content-box;
|
|
1169
1232
|
flex-grow: 1;
|
|
@@ -1171,7 +1234,7 @@
|
|
|
1171
1234
|
&:disabled {
|
|
1172
1235
|
cursor: inherit;
|
|
1173
1236
|
}
|
|
1174
|
-
`,button:
|
|
1237
|
+
`,button:i.css`
|
|
1175
1238
|
inline-size: 1.1em;
|
|
1176
1239
|
block-size: calc(var(--qlib-font-size) + var(--qlib-padding-block) * 2);
|
|
1177
1240
|
color: ${x("primary",5)};
|
|
@@ -1190,7 +1253,7 @@
|
|
|
1190
1253
|
outline: solid ${q(2)} ${j(x("primary",4),.6)};
|
|
1191
1254
|
outline-offset: ${q(1)};
|
|
1192
1255
|
}
|
|
1193
|
-
`},Qr=(0,r.forwardRef)(((o,t)=>{var{value:n,name:
|
|
1256
|
+
`},Qr=(0,r.forwardRef)(((o,t)=>{var{value:n,name:a,size:i="medium",initialReveal:c=!1,autoComplete:d="current-password",autoFocus:b,isError:p=!1,isRequired:u,isDisabled:f,onSet:m,onChange:y,onBlur:g,children:h,className:O}=o,v=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","initialReveal","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const x=(0,r.useId)(),[j,w]=(0,r.useState)(c),$=(0,r.useCallback)((()=>{w((e=>!e))}),[]),q=(0,r.useCallback)((e=>{const r=e.target.value;null==m||m(r),null==y||y(e)}),[m,y]),k=Ne(h),N=k.find((e=>e.type===Ur)),P=k.find((e=>e.type===Kr));return(0,e.jsx)("label",Object.assign({className:O,css:Gr.root,"data-qlib-size":i,"data-qlib-disabled":f,"data-qlib-error":p},v,{children:(0,e.jsxs)("div",{css:Gr.inputContainer,children:[N,(0,e.jsx)("input",Object.assign({css:Gr.input,id:x,ref:t,value:n,name:a,type:j?"input":"password",autoComplete:d,autoFocus:b,required:u,disabled:f,onChange:null!=m||null!=y?q:void 0,onBlur:g,"aria-invalid":p},v)),(0,e.jsx)("button",{css:Gr.button,type:"button",onClick:$,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:j?s.faEyeSlash:s.faEye})}),P]})}))}));Qr.displayName="PasswordInput";const Jr=(0,r.createContext)(void 0),Wr=Jr.Provider;const Zr={root:i.css`
|
|
1194
1257
|
&[data-qlib-error="false"] {
|
|
1195
1258
|
--qlib-border-color: ${x("gray",5)};
|
|
1196
1259
|
--qlib-focus-color: ${j(x("primary",5),.6)};
|
|
@@ -1219,7 +1282,7 @@
|
|
|
1219
1282
|
flex-direction: row;
|
|
1220
1283
|
align-items: center;
|
|
1221
1284
|
cursor: pointer;
|
|
1222
|
-
`,original:
|
|
1285
|
+
`,original:i.css`
|
|
1223
1286
|
inline-size: 1px;
|
|
1224
1287
|
block-size: 1px;
|
|
1225
1288
|
position: absolute;
|
|
@@ -1228,7 +1291,7 @@
|
|
|
1228
1291
|
opacity: 0;
|
|
1229
1292
|
clip: rect(0px, 0px, 0px, 0px);
|
|
1230
1293
|
clip-path: inset(50%);
|
|
1231
|
-
`,input:
|
|
1294
|
+
`,input:i.css`
|
|
1232
1295
|
inline-size: ${$(4.5)};
|
|
1233
1296
|
block-size: ${$(4.5)};
|
|
1234
1297
|
border-radius: ${$("max")};
|
|
@@ -1253,7 +1316,7 @@
|
|
|
1253
1316
|
input:disabled +& {
|
|
1254
1317
|
cursor: inherit;
|
|
1255
1318
|
}
|
|
1256
|
-
`,icon:
|
|
1319
|
+
`,icon:i.css`
|
|
1257
1320
|
inline-size: ${$(2.5)};
|
|
1258
1321
|
block-size: ${$(2.5)};
|
|
1259
1322
|
border-radius: ${$("max")};
|
|
@@ -1263,7 +1326,7 @@
|
|
|
1263
1326
|
input:checked +* >& {
|
|
1264
1327
|
opacity: 1;
|
|
1265
1328
|
}
|
|
1266
|
-
`},Xr=(0,r.forwardRef)(((o,t)=>{var n,{isChecked:
|
|
1329
|
+
`},Xr=(0,r.forwardRef)(((o,t)=>{var n,{isChecked:a,name:i,value:l,isError:s=!1,isRequired:c,isDisabled:d=!1,onSet:b,onChange:p,onBlur:u,className:f}=o,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}(o,["isChecked","name","value","isError","isRequired","isDisabled","onSet","onChange","onBlur","className"]);const y=(0,r.useContext)(Jr),g=(0,Qe.useId)(),h=(0,r.useCallback)((e=>{if(null!=(null==y?void 0:y.onSet)&&null!=l)y.onSet(l);else{const r=e.target.checked;null==b||b(r)}null==p||p(e)}),[l,y,b,p]);return(0,e.jsxs)("div",Object.assign({css:Zr.root,className:f,"data-qlib-error":s},m,{children:[(0,e.jsx)("input",{type:"radio",css:Zr.original,ref:t,id:g,value:l,name:null!==(n=null==y?void 0:y.name)&&void 0!==n?n:i,checked:null!=(null==y?void 0:y.value)?y.value===l:null!=a?!0===a:void 0,required:c,disabled:d,onChange:null!=(null==y?void 0:y.onSet)||null!=b||null!=p?h:void 0,onBlur:u,"aria-invalid":s}),(0,e.jsx)("label",{css:Zr.input,htmlFor:g,"aria-hidden":"true",children:(0,e.jsx)("div",{css:Zr.icon})})]}))}));Xr.displayName="Radio";const eo=({value:o,onSet:t,children:n})=>{const a=(0,Qe.useId)(),i=(0,r.useMemo)((()=>({name:a,value:o,onSet:t})),[a,o,t]);return(0,e.jsx)(Wr,{value:i,children:n})};eo.displayName="RadioGroup";const ro={root:i.css`
|
|
1267
1330
|
&[data-qlib-orientation="horizontal"] {
|
|
1268
1331
|
--qlib-flex-direction: row;
|
|
1269
1332
|
}
|
|
@@ -1275,232 +1338,7 @@
|
|
|
1275
1338
|
row-gap: ${$(2)};
|
|
1276
1339
|
display: flex;
|
|
1277
1340
|
flex-direction: var(--qlib-flex-direction);
|
|
1278
|
-
`},oo=(0,r.forwardRef)((({orientation:r="vertical",children:o},t)=>(0,e.jsx)(eo,{children:(0,e.jsx)("div",{css:ro.root,ref:t,"aria-orientation":r,"data-qlib-orientation":r,children:o})})));oo.displayName="AlignedRadioGroup";const to=
|
|
1279
|
-
[data-simplebar] {
|
|
1280
|
-
position: relative;
|
|
1281
|
-
flex-direction: column;
|
|
1282
|
-
flex-wrap: wrap;
|
|
1283
|
-
justify-content: flex-start;
|
|
1284
|
-
align-content: flex-start;
|
|
1285
|
-
align-items: flex-start;
|
|
1286
|
-
}
|
|
1287
|
-
.simplebar-wrapper {
|
|
1288
|
-
overflow: hidden;
|
|
1289
|
-
width: inherit;
|
|
1290
|
-
height: inherit;
|
|
1291
|
-
max-width: inherit;
|
|
1292
|
-
max-height: inherit;
|
|
1293
|
-
}
|
|
1294
|
-
.simplebar-mask {
|
|
1295
|
-
direction: inherit;
|
|
1296
|
-
position: absolute;
|
|
1297
|
-
overflow: hidden;
|
|
1298
|
-
padding: 0;
|
|
1299
|
-
margin: 0;
|
|
1300
|
-
left: 0;
|
|
1301
|
-
top: 0;
|
|
1302
|
-
bottom: 0;
|
|
1303
|
-
right: 0;
|
|
1304
|
-
width: auto !important;
|
|
1305
|
-
height: auto !important;
|
|
1306
|
-
z-index: 0;
|
|
1307
|
-
}
|
|
1308
|
-
.simplebar-offset {
|
|
1309
|
-
direction: inherit !important;
|
|
1310
|
-
box-sizing: inherit !important;
|
|
1311
|
-
resize: none !important;
|
|
1312
|
-
position: absolute;
|
|
1313
|
-
top: 0;
|
|
1314
|
-
left: 0;
|
|
1315
|
-
bottom: 0;
|
|
1316
|
-
right: 0;
|
|
1317
|
-
padding: 0;
|
|
1318
|
-
margin: 0;
|
|
1319
|
-
-webkit-overflow-scrolling: touch;
|
|
1320
|
-
}
|
|
1321
|
-
.simplebar-content-wrapper {
|
|
1322
|
-
direction: inherit;
|
|
1323
|
-
box-sizing: border-box !important;
|
|
1324
|
-
position: relative;
|
|
1325
|
-
display: block;
|
|
1326
|
-
height: 100%; /* Required for horizontal native scrollbar to not appear if parent is taller than natural height */
|
|
1327
|
-
width: auto;
|
|
1328
|
-
max-width: 100%; /* Not required for horizontal scroll to trigger */
|
|
1329
|
-
max-height: 100%; /* Needed for vertical scroll to trigger */
|
|
1330
|
-
overflow: auto;
|
|
1331
|
-
scrollbar-width: none;
|
|
1332
|
-
-ms-overflow-style: none;
|
|
1333
|
-
}
|
|
1334
|
-
.simplebar-content-wrapper::-webkit-scrollbar,
|
|
1335
|
-
.simplebar-hide-scrollbar::-webkit-scrollbar {
|
|
1336
|
-
display: none;
|
|
1337
|
-
width: 0;
|
|
1338
|
-
height: 0;
|
|
1339
|
-
}
|
|
1340
|
-
.simplebar-content:before,
|
|
1341
|
-
.simplebar-content:after {
|
|
1342
|
-
content: ' ';
|
|
1343
|
-
display: table;
|
|
1344
|
-
}
|
|
1345
|
-
.simplebar-placeholder {
|
|
1346
|
-
max-height: 100%;
|
|
1347
|
-
max-width: 100%;
|
|
1348
|
-
width: 100%;
|
|
1349
|
-
pointer-events: none;
|
|
1350
|
-
}
|
|
1351
|
-
.simplebar-height-auto-observer-wrapper {
|
|
1352
|
-
box-sizing: inherit !important;
|
|
1353
|
-
height: 100%;
|
|
1354
|
-
width: 100%;
|
|
1355
|
-
max-width: 1px;
|
|
1356
|
-
position: relative;
|
|
1357
|
-
float: left;
|
|
1358
|
-
max-height: 1px;
|
|
1359
|
-
overflow: hidden;
|
|
1360
|
-
z-index: -1;
|
|
1361
|
-
padding: 0;
|
|
1362
|
-
margin: 0;
|
|
1363
|
-
pointer-events: none;
|
|
1364
|
-
flex-grow: inherit;
|
|
1365
|
-
flex-shrink: 0;
|
|
1366
|
-
flex-basis: 0;
|
|
1367
|
-
}
|
|
1368
|
-
.simplebar-height-auto-observer {
|
|
1369
|
-
box-sizing: inherit;
|
|
1370
|
-
display: block;
|
|
1371
|
-
opacity: 0;
|
|
1372
|
-
position: absolute;
|
|
1373
|
-
top: 0;
|
|
1374
|
-
left: 0;
|
|
1375
|
-
height: 1000%;
|
|
1376
|
-
width: 1000%;
|
|
1377
|
-
min-height: 1px;
|
|
1378
|
-
min-width: 1px;
|
|
1379
|
-
overflow: hidden;
|
|
1380
|
-
pointer-events: none;
|
|
1381
|
-
z-index: -1;
|
|
1382
|
-
}
|
|
1383
|
-
.simplebar-track {
|
|
1384
|
-
z-index: 1;
|
|
1385
|
-
position: absolute;
|
|
1386
|
-
right: 0;
|
|
1387
|
-
bottom: 0;
|
|
1388
|
-
pointer-events: none;
|
|
1389
|
-
overflow: hidden;
|
|
1390
|
-
}
|
|
1391
|
-
[data-simplebar].simplebar-dragging {
|
|
1392
|
-
pointer-events: none;
|
|
1393
|
-
-webkit-touch-callout: none;
|
|
1394
|
-
-webkit-user-select: none;
|
|
1395
|
-
-khtml-user-select: none;
|
|
1396
|
-
-moz-user-select: none;
|
|
1397
|
-
-ms-user-select: none;
|
|
1398
|
-
user-select: none;
|
|
1399
|
-
}
|
|
1400
|
-
[data-simplebar].simplebar-dragging .simplebar-content {
|
|
1401
|
-
pointer-events: none;
|
|
1402
|
-
-webkit-touch-callout: none;
|
|
1403
|
-
-webkit-user-select: none;
|
|
1404
|
-
-khtml-user-select: none;
|
|
1405
|
-
-moz-user-select: none;
|
|
1406
|
-
-ms-user-select: none;
|
|
1407
|
-
user-select: none;
|
|
1408
|
-
}
|
|
1409
|
-
[data-simplebar].simplebar-dragging .simplebar-track {
|
|
1410
|
-
pointer-events: all;
|
|
1411
|
-
}
|
|
1412
|
-
.simplebar-scrollbar {
|
|
1413
|
-
position: absolute;
|
|
1414
|
-
left: 0;
|
|
1415
|
-
right: 0;
|
|
1416
|
-
min-height: 10px;
|
|
1417
|
-
}
|
|
1418
|
-
.simplebar-scrollbar:before {
|
|
1419
|
-
position: absolute;
|
|
1420
|
-
content: '';
|
|
1421
|
-
background: black;
|
|
1422
|
-
border-radius: 7px;
|
|
1423
|
-
left: 2px;
|
|
1424
|
-
right: 2px;
|
|
1425
|
-
opacity: 0;
|
|
1426
|
-
transition: opacity 0.2s 0.5s linear;
|
|
1427
|
-
}
|
|
1428
|
-
.simplebar-scrollbar.simplebar-visible:before {
|
|
1429
|
-
opacity: 0.5;
|
|
1430
|
-
transition-delay: 0s;
|
|
1431
|
-
transition-duration: 0s;
|
|
1432
|
-
}
|
|
1433
|
-
.simplebar-track.simplebar-vertical {
|
|
1434
|
-
top: 0;
|
|
1435
|
-
width: 11px;
|
|
1436
|
-
}
|
|
1437
|
-
.simplebar-scrollbar:before {
|
|
1438
|
-
top: 2px;
|
|
1439
|
-
bottom: 2px;
|
|
1440
|
-
left: 2px;
|
|
1441
|
-
right: 2px;
|
|
1442
|
-
}
|
|
1443
|
-
.simplebar-track.simplebar-horizontal {
|
|
1444
|
-
left: 0;
|
|
1445
|
-
height: 11px;
|
|
1446
|
-
}
|
|
1447
|
-
.simplebar-track.simplebar-horizontal .simplebar-scrollbar {
|
|
1448
|
-
right: auto;
|
|
1449
|
-
left: 0;
|
|
1450
|
-
top: 0;
|
|
1451
|
-
bottom: 0;
|
|
1452
|
-
min-height: 0;
|
|
1453
|
-
min-width: 10px;
|
|
1454
|
-
width: auto;
|
|
1455
|
-
}
|
|
1456
|
-
[data-simplebar-direction='rtl'] .simplebar-track.simplebar-vertical {
|
|
1457
|
-
right: auto;
|
|
1458
|
-
left: 0;
|
|
1459
|
-
}
|
|
1460
|
-
.simplebar-dummy-scrollbar-size {
|
|
1461
|
-
direction: rtl;
|
|
1462
|
-
position: fixed;
|
|
1463
|
-
opacity: 0;
|
|
1464
|
-
visibility: hidden;
|
|
1465
|
-
height: 500px;
|
|
1466
|
-
width: 500px;
|
|
1467
|
-
overflow-y: hidden;
|
|
1468
|
-
overflow-x: scroll;
|
|
1469
|
-
-ms-overflow-style: scrollbar !important;
|
|
1470
|
-
}
|
|
1471
|
-
.simplebar-dummy-scrollbar-size >div {
|
|
1472
|
-
width: 200%;
|
|
1473
|
-
height: 200%;
|
|
1474
|
-
margin: 10px 0;
|
|
1475
|
-
}
|
|
1476
|
-
.simplebar-hide-scrollbar {
|
|
1477
|
-
position: fixed;
|
|
1478
|
-
left: 0;
|
|
1479
|
-
visibility: hidden;
|
|
1480
|
-
overflow-y: scroll;
|
|
1481
|
-
scrollbar-width: none;
|
|
1482
|
-
-ms-overflow-style: none;
|
|
1483
|
-
}
|
|
1484
|
-
`,no=(0,r.createContext)({open:()=>null,close:()=>null,setDialogSpec:()=>null}),io=({children:o})=>{const[t,n]=(0,r.useState)(!1),i=(0,r.useCallback)((()=>{n(!0)}),[]),a=(0,r.useCallback)((()=>{n(!1)}),[]),[l,s]=(0,r.useState)(null),c=(0,r.useMemo)((()=>({open:i,close:a,setDialogSpec:s})),[i,a,s]);return(0,e.jsxs)(no.Provider,{value:c,children:[null!=l&&(0,r.cloneElement)(l.element,{isOpen:t,onClose:a}),o]})},ao=(0,r.createContext)({rootFontSize:{desktop:"16px",smartphone:"13px"},smartphoneQuery:"(max-width: 767px)"}),lo=ao.Provider,so=require("@radix-ui/react-toast"),co={root:a.css`
|
|
1485
|
-
inline-size: ${$(96)};
|
|
1486
|
-
max-inline-size: calc(100vw - ${$(6)});
|
|
1487
|
-
inset-block-start: ${$(6)};
|
|
1488
|
-
inset-inline-start: 50%;
|
|
1489
|
-
row-gap: ${$(3)};
|
|
1490
|
-
transform: translate(-50%, 0%);
|
|
1491
|
-
display: flex;
|
|
1492
|
-
flex-direction: column;
|
|
1493
|
-
align-items: center;
|
|
1494
|
-
list-style: none;
|
|
1495
|
-
position: fixed;
|
|
1496
|
-
outline: none;
|
|
1497
|
-
z-index: 2000;
|
|
1498
|
-
`},bo=({})=>{const{trans:r}=I("toast");return(0,e.jsx)(so.Viewport,{css:co.root,label:r("viewportLabel")})},po=(0,r.createContext)({setToastSpecs:()=>null}),uo=po.Provider,fo=({children:o})=>{const{trans:t}=I("toast"),[n,i]=(0,r.useState)([]),a=(0,r.useMemo)((()=>({setToastSpecs:i})),[i]);return(0,e.jsx)(so.Provider,{label:t("rootLabel"),children:(0,e.jsxs)(uo,{value:a,children:[(0,e.jsx)(bo,{}),n.map((e=>e.element)),o]})})},mo=e=>Object.fromEntries(Object.entries(e).map((([e,r])=>[`qlib.${e}`,r]))),yo={ja:mo(o(62)),en:mo(o(714))},go=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,{})}),ho=require("react-use"),Oo=e=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e:{desktop:e,smartphone:e},vo=(e,r)=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e[r]:e,xo=()=>{const{smartphoneQuery:e}=(0,r.useContext)(ao);return(0,ho.useMedia)(e,!1)},jo=e=>{const r=xo();return vo(e,r?"smartphone":"desktop")},wo=require("rxjs");class $o extends wo.BehaviorSubject{update(e){"function"==typeof e?this.next(e(this.value)):this.next(Object.assign(Object.assign({},this.value),e))}}const qo=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},ko=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},No=new wo.BehaviorSubject((0,C.createIntl)({locale:"ja",onError:e=>null})),Po=new wo.BehaviorSubject("ja"),So=()=>ko(No),zo=()=>ko(Po),Co=()=>(0,r.useCallback)((e=>{"undefined"!=typeof localStorage&&localStorage.setItem("qlib-locale",e),Po.next(e)}),[]),Io=e=>{const o=(0,C.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=>null!=e?"ja"===o.locale?z()(e).locale("ja").format("YYYY/MM/DD"):z()(e).locale("en").format("DD/MMM/YYYY"):""),[o]),i=(0,r.useCallback)((e=>null!=e?"ja"===o.locale?z()(e).locale("ja").format("YYYY/MM/DD HH:mm"):z()(e).locale("en").format("DD/MMM/YYYY HH:mm"):""),[o]),a=(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,transTime:i,transNumber:a})),[t,n,i,a])},Eo=Io,Ro=e=>{const r=No.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=>null!=e?"ja"===r.locale?z()(e).locale("ja").format("YYYY/MM/DD"):z()(e).locale("en").format("DD/MM/YYYY"):"",transTime:e=>null!=e?"ja"===r.locale?z()(e).locale("ja").format("YYYY/MM/DD HH:mm"):z()(e).locale("en").format("DD/MM/YYYY HH:mm"):"",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):""}}},Do={root:a.css`
|
|
1499
|
-
block-size: ${$(0)};
|
|
1500
|
-
inline-size: ${$(0)};
|
|
1501
|
-
opacity: 0;
|
|
1502
|
-
position: fixed;
|
|
1503
|
-
`},Mo=({})=>(0,e.jsxs)("svg",{css:Do.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)})]})]}),Lo=e=>a.css`
|
|
1341
|
+
`},oo=(0,r.forwardRef)((({orientation:r="vertical",children:o},t)=>(0,e.jsx)(eo,{children:(0,e.jsx)("div",{css:ro.root,ref:t,"aria-orientation":r,"data-qlib-orientation":r,children:o})})));oo.displayName="AlignedRadioGroup";const to=e=>i.css`
|
|
1504
1342
|
@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");
|
|
1505
1343
|
:root {
|
|
1506
1344
|
--qlib-root-font-size: ${e};
|
|
@@ -1539,22 +1377,38 @@
|
|
|
1539
1377
|
user-select: auto !important;
|
|
1540
1378
|
-webkit-user-select : auto !important;
|
|
1541
1379
|
}
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1380
|
+
`,no=(0,r.createContext)({open:()=>null,close:()=>null,setDialogSpec:()=>null}),ao=({children:o})=>{const[t,n]=(0,r.useState)(!1),a=(0,r.useCallback)((()=>{n(!0)}),[]),i=(0,r.useCallback)((()=>{n(!1)}),[]),[l,s]=(0,r.useState)(null),c=(0,r.useMemo)((()=>({open:a,close:i,setDialogSpec:s})),[a,i,s]);return(0,e.jsxs)(no.Provider,{value:c,children:[null!=l&&(0,r.cloneElement)(l.element,{isOpen:t,onClose:i}),o]})},io=(0,r.createContext)({rootFontSize:{desktop:"16px",smartphone:"13px"},smartphoneQuery:"(max-width: 767px)"}),lo=io.Provider,so=require("@radix-ui/react-toast"),co={root:i.css`
|
|
1381
|
+
inline-size: ${$(96)};
|
|
1382
|
+
max-inline-size: calc(100vw - ${$(6)});
|
|
1383
|
+
inset-block-start: ${$(6)};
|
|
1384
|
+
inset-inline-start: 50%;
|
|
1385
|
+
row-gap: ${$(3)};
|
|
1386
|
+
transform: translate(-50%, 0%);
|
|
1387
|
+
display: flex;
|
|
1388
|
+
flex-direction: column;
|
|
1389
|
+
align-items: center;
|
|
1390
|
+
list-style: none;
|
|
1391
|
+
position: fixed;
|
|
1392
|
+
outline: none;
|
|
1393
|
+
z-index: 2000;
|
|
1394
|
+
`},bo=({})=>{const{trans:r}=I("toast");return(0,e.jsx)(so.Viewport,{css:co.root,label:r("viewportLabel")})},po=(0,r.createContext)({setToastSpecs:()=>null}),uo=po.Provider,fo=({children:o})=>{const{trans:t}=I("toast"),[n,a]=(0,r.useState)([]),i=(0,r.useMemo)((()=>({setToastSpecs:a})),[a]);return(0,e.jsx)(so.Provider,{label:t("rootLabel"),children:(0,e.jsxs)(uo,{value:i,children:[(0,e.jsx)(bo,{}),n.map((e=>e.element)),o]})})},mo=e=>Object.fromEntries(Object.entries(e).map((([e,r])=>[`qlib.${e}`,r]))),yo={ja:mo(o(62)),en:mo(o(714))},go=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,{})}),ho=require("react-use"),Oo=e=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e:{desktop:e,smartphone:e},vo=(e,r)=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e[r]:e,xo=()=>{const{smartphoneQuery:e}=(0,r.useContext)(io);return(0,ho.useMedia)(e,!1)},jo=e=>{const r=xo();return vo(e,r?"smartphone":"desktop")},wo=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},$o=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},qo=require("rxjs"),ko=new qo.BehaviorSubject((0,C.createIntl)({locale:"ja",onError:e=>null})),No=new qo.BehaviorSubject("ja"),Po=()=>$o(ko),So=()=>$o(No),zo=()=>(0,r.useCallback)((e=>{"undefined"!=typeof localStorage&&localStorage.setItem("qlib-locale",e),No.next(e)}),[]),Co=e=>{const o=(0,C.useIntl)(),t=(0,r.useCallback)(((r,t)=>{var n;const a=r.includes(":")?r.replace(":","."):(null!=e?`${e}.`:"")+r,i=null!==(n=null==t?void 0:t.defaultMessage)&&void 0!==n?n:`<${a}>`;return o.formatMessage({id:a,defaultMessage:i},t)}),[o,e]),n=(0,r.useCallback)((e=>null!=e?"ja"===o.locale?z()(e).locale("ja").format("YYYY/MM/DD"):z()(e).locale("en").format("DD/MMM/YYYY"):""),[o]),a=(0,r.useCallback)((e=>null!=e?"ja"===o.locale?z()(e).locale("ja").format("YYYY/MM/DD HH:mm"):z()(e).locale("en").format("DD/MMM/YYYY HH:mm"):""),[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,transTime:a,transNumber:i})),[t,n,a,i])},Io=Co,Eo=e=>{const r=ko.value;return{trans:(o,t)=>{var n;const a=o.includes(":")?o.replace(":","."):(null!=e?`${e}.`:"")+o,i=null!==(n=null==t?void 0:t.defaultMessage)&&void 0!==n?n:`<${a}>`;return r.formatMessage({id:a,defaultMessage:i},t)},transDate:e=>null!=e?"ja"===r.locale?z()(e).locale("ja").format("YYYY/MM/DD"):z()(e).locale("en").format("DD/MM/YYYY"):"",transTime:e=>null!=e?"ja"===r.locale?z()(e).locale("ja").format("YYYY/MM/DD HH:mm"):z()(e).locale("en").format("DD/MM/YYYY HH:mm"):"",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):""}}},Ro={root:i.css`
|
|
1395
|
+
block-size: ${$(0)};
|
|
1396
|
+
inline-size: ${$(0)};
|
|
1397
|
+
opacity: 0;
|
|
1398
|
+
position: fixed;
|
|
1399
|
+
`},Do=({})=>(0,e.jsxs)("svg",{css:Ro.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)})]})]}),Mo=({messages:o,rootFontSize:t={desktop:"16px",smartphone:"13px"},smartphoneQuery:n="(max-width: 767px)",colorDefinitions:a={},globalStyle:l,appElement:s,defaultReady:c=!1,children:d})=>{const b=So(),p=zo(),u=$o(ko),f=jo(t),m=(0,r.useMemo)((()=>({rootFontSize:Oo(t),smartphoneQuery:n})),[t,n]),[y,g]=(0,r.useState)(c);return(0,r.useEffect)((()=>{g(!0)}),[]),(0,r.useEffect)((()=>{const e=go([null!=o?o:{},yo]),r=(0,C.createIntlCache)(),t=(0,C.createIntl)({locale:b,messages:e[b],onError:e=>null},r);ko.next(t)}),[b,o]),(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":s;e&&Lr().setAppElement(e)}),[s]),(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)(i.Global,{styles:to(f)}),(0,e.jsx)(i.Global,{styles:h(a)}),(0,e.jsx)(i.Global,{styles:l}),(0,e.jsx)(Do,{}),(0,e.jsx)(C.RawIntlProvider,{value:u,children:(0,e.jsx)(lo,{value:m,children:(0,e.jsx)(fo,{children:(0,e.jsx)(ao,{children:y&&d})})})})]})};const Lo={root:i.css`
|
|
1546
1400
|
font-size: ${$(4.5)};
|
|
1547
1401
|
font-weight: ${v("bold")};
|
|
1548
1402
|
color: ${x("primary",6)};
|
|
1549
1403
|
display: flex;
|
|
1550
1404
|
align-items: center;
|
|
1551
|
-
`},
|
|
1552
|
-
`},
|
|
1405
|
+
`},Fo=r=>{var{as:o="h3",className:t,children:n}=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 i=o;return(0,e.jsx)(i,Object.assign({css:Lo.root,className:t},a,{children:n}))};Fo.displayName="SecondaryHeading";const Bo={Control:B,Input:U,Placeholder:ae,MenuPortal:X,Menu:Q,MenuList:W,Option:te,NoOptionsMessage:re,DropdownIndicator:T,ClearIndicator:L,IndicatorsContainer:V,IndicatorSeparator:null},Ao=({value:o,defaultValue:t,variant:n="outline",optionAlignment:a="left",isError:i=!1,isClearable:l=!1,isDisabled:s=!1,onSet:c,children:b,className:p})=>{var u,f;const{trans:m}=I("select"),y=(0,r.useMemo)((()=>{const e=Ne(b),r=new Map(e.map((e=>{const r={value:e.props.value,label:e.props.label,node:e};return[e.props.value,r]})));return r}),[b]),g=(0,r.useMemo)((()=>[...y.values()]),[y]),h=void 0!==o?null!==(u=y.get(o))&&void 0!==u?u:null:void 0,O=void 0!==t?null!==(f=y.get(t))&&void 0!==f?f:null:void 0,v=(0,r.useCallback)((e=>{null==c||c(null!==e?e.value:null)}),[c]),x=ie(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:a,isMenuOpen:j,isError:i})),[n,a,j,i]);return(0,e.jsx)(D,{value:$,children:(0,e.jsx)(d(),Object.assign({className:p,classNamePrefix:"qlib-select",value:h,defaultValue:O,options:g,onChange:null!=c?v:void 0,isClearable:l,isDisabled:s,placeholder:m("select"),menuPortalTarget:"object"==typeof window?document.body:void 0,components:Bo,isMulti:!1,unstyled:!0,"aria-invalid":i},w))})};Ao.displayName="Select";const To={root:i.css`
|
|
1406
|
+
`},Ho=r=>{var{value:o,label:t,isDisabled:n=!1,children:a,className:i}=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:To.root,className:i},l,{children:null!=a?a:t}))};Ho.displayName="SelectOption";const Vo={root:i.css`
|
|
1553
1407
|
margin-inline-end: ${$("gap")};
|
|
1554
1408
|
color: ${x("gray",5)};
|
|
1555
|
-
`},
|
|
1409
|
+
`},Yo=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Vo.root,className:n,ref:o},a,{children:t}))}));Yo.displayName="SelectOptionIconContainer";const Uo=({pageSize:r,defaultPageSize:o,optionPageSizes:t,isDisabled:n=!1,onSet:a,className:i})=>{const{transNumber:l}=I("pageSizeSelect");return(0,e.jsx)(Ao,{className:i,value:r,defaultValue:o,variant:"minimal",optionAlignment:"right",isDisabled:n,onSet:a,children:t.map((r=>(0,e.jsx)(Ho,{value:r,label:l(r)},r)))})};Uo.displayName="PageSizeSelect";const _o=(0,r.createContext)({displayedItems:[],resolvedPageProps:{isLoading:!1,isEmpty:!1,page:0,pageCount:1,pageSize:0,optionPageSizes:[],setPage:()=>null,setPageSize:()=>null}}),Ko=_o.Provider,Go={root:i.css`
|
|
1556
1410
|
inline-size: ${$(16)};
|
|
1557
|
-
`},
|
|
1411
|
+
`},Qo=({className:o})=>{const{resolvedPageProps:{pageSize:t,optionPageSizes:n,setPageSize:a}}=(0,r.useContext)(_o);return(0,e.jsx)(Uo,{css:Go.root,className:o,pageSize:t,onSet:a,defaultPageSize:n[0],optionPageSizes:n})};Qo.displayName="PageSizeSelectAuto";const Jo=({sortOrder:r,defaultSortOrder:o,iconType:t="number",isDisabled:n=!1,onSet:a,className:i})=>{const{trans:c}=I("sortOrderSelect");return(0,e.jsxs)(Ao,{className:i,value:r,defaultValue:o,variant:"minimal",optionAlignment:"right",isDisabled:n,onSet:a,children:[(0,e.jsxs)(Ho,{value:"ascending",label:c("ascending"),children:[(0,e.jsx)(Yo,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:"number"===t?s.faArrowDown19:s.faArrowDownAZ})}),c("ascending")]}),(0,e.jsxs)(Ho,{value:"descending",label:c("descending"),children:[(0,e.jsx)(Yo,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:"number"===t?s.faArrowDown91:s.faArrowDownZA})}),c("descending")]})]})};Jo.displayName="SortOrderSelect";const Wo=require("@radix-ui/react-switch");const Zo={root:i.css`
|
|
1558
1412
|
&[data-qlib-error="false"] {
|
|
1559
1413
|
--qlib-border-color: ${x("gray",5)};
|
|
1560
1414
|
--qlib-focus-color: ${j(x("primary",5),.6)};
|
|
@@ -1601,7 +1455,7 @@
|
|
|
1601
1455
|
outline: solid ${q(2)} var(--qlib-focus-color);
|
|
1602
1456
|
outline-offset: ${q(1)};
|
|
1603
1457
|
}
|
|
1604
|
-
`,thumb:
|
|
1458
|
+
`,thumb:i.css`
|
|
1605
1459
|
inline-size: calc(var(--qlib-block-size) - ${q(4)});
|
|
1606
1460
|
block-size: calc(var(--qlib-block-size) - ${q(4)});
|
|
1607
1461
|
inset-block-start: ${q(2)};
|
|
@@ -1617,7 +1471,7 @@
|
|
|
1617
1471
|
border-color: var(--qlib-checked-border-color);
|
|
1618
1472
|
inset-inline-start: calc(var(--qlib-inline-size) - var(--qlib-block-size) + ${q(2)});
|
|
1619
1473
|
}
|
|
1620
|
-
`},
|
|
1474
|
+
`},Xo=(0,r.forwardRef)(((r,o)=>{var{isChecked:t,name:n,isError:a=!1,isRequired:i,isDisabled:l=!1,onSet:s,onChange:c,onBlur:d,className:b}=r,p=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);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,["isChecked","name","isError","isRequired","isDisabled","onSet","onChange","onBlur","className"]);return(0,e.jsx)(Wo.Root,Object.assign({css:Zo.root,className:b,ref:o,name:n,checked:t,required:i,disabled:l,onCheckedChange:s,"data-qlib-error":a},p,{children:(0,e.jsx)(Wo.Thumb,{css:Zo.thumb})}))}));Xo.displayName="Checkbox";const et=e=>i.css`
|
|
1621
1475
|
padding-block: ${$(.5)};
|
|
1622
1476
|
padding-inline: ${$(1)};
|
|
1623
1477
|
font-size: ${$(3)};
|
|
@@ -1628,16 +1482,16 @@
|
|
|
1628
1482
|
white-space: nowrap;
|
|
1629
1483
|
line-height: 1;
|
|
1630
1484
|
display: inline-block;
|
|
1631
|
-
`,
|
|
1485
|
+
`,rt=(i.css`
|
|
1632
1486
|
margin-inline-end: ${$("gap")};
|
|
1633
|
-
`,(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",children:n,className:
|
|
1487
|
+
`,(0,r.forwardRef)(((r,o)=>{var{scheme:t="gray",children:n,className:a}=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","children","className"]);return(0,e.jsx)("span",Object.assign({css:et(t),className:a,ref:o},i,{children:n}))})));rt.displayName="Tag";const ot={root:i.css`
|
|
1634
1488
|
margin-inline-end: ${$("gap")};
|
|
1635
|
-
`},
|
|
1489
|
+
`},tt=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("span",Object.assign({css:ot.root,className:n,ref:o},a,{children:t}))}));tt.displayName="TagIconContainer";const nt={root:i.css`
|
|
1636
1490
|
column-gap: ${$(2)};
|
|
1637
1491
|
row-gap: ${$(1)};
|
|
1638
1492
|
display: inline-flex;
|
|
1639
1493
|
flex-wrap: wrap;
|
|
1640
|
-
`},
|
|
1494
|
+
`},at=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:nt.root,className:n,ref:o},a,{children:t}))}));at.displayName="TagList";const it={root:i.css`
|
|
1641
1495
|
&[data-qlib-error="false"] {
|
|
1642
1496
|
--qlib-border-color: ${x("gray",3)};
|
|
1643
1497
|
--qlib-focus-border-color: ${x("primary",5)};
|
|
@@ -1661,13 +1515,13 @@
|
|
|
1661
1515
|
border-color: var(--qlib-focus-border-color);
|
|
1662
1516
|
outline: solid ${q(1)} var(--qlib-focus-border-color);
|
|
1663
1517
|
}
|
|
1664
|
-
`,inputContainer:
|
|
1518
|
+
`,inputContainer:i.css`
|
|
1665
1519
|
column-gap: ${$("gap")};
|
|
1666
1520
|
display: flex;
|
|
1667
1521
|
align-items: center;
|
|
1668
1522
|
flex-grow: 1;
|
|
1669
1523
|
flex-shrink: 1;
|
|
1670
|
-
`,input:
|
|
1524
|
+
`,input:i.css`
|
|
1671
1525
|
min-block-size: ${$(6)};
|
|
1672
1526
|
padding-block: ${$(1)};
|
|
1673
1527
|
line-height: 1.5;
|
|
@@ -1690,7 +1544,7 @@
|
|
|
1690
1544
|
&:disabled {
|
|
1691
1545
|
cursor: inherit;
|
|
1692
1546
|
}
|
|
1693
|
-
`},
|
|
1547
|
+
`},lt=(0,r.forwardRef)(((o,t)=>{var{value:n,name:a,rowCount:i=4,resize:l="vertical",autoComplete:s="off",autoFocus:c,isError:d=!1,isRequired:b,isDisabled:p,onSet:u,onChange:f,onBlur:m,className:y}=o,g=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","rowCount","resize","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","className"]);const h=(0,r.useCallback)((e=>{const r=e.target.value;null==u||u(r),null==f||f(e)}),[u,f]);return(0,e.jsx)("label",{className:y,css:it.root,"data-qlib-size":$,"data-qlib-disabled":p,"data-qlib-error":d,children:(0,e.jsx)("div",{css:it.inputContainer,children:(0,e.jsx)("textarea",Object.assign({css:it.input,ref:t,value:n,name:a,rows:i,autoComplete:s,autoFocus:c,required:b,disabled:p,onChange:null!=u||null!=f?h:void 0,onBlur:m,"aria-invalid":d,"data-qlib-resize":l},g))})})}));lt.displayName="Textarea";const st={root:i.css`
|
|
1694
1548
|
width: 1px;
|
|
1695
1549
|
height: 1px;
|
|
1696
1550
|
position: absolute;
|
|
@@ -1699,17 +1553,17 @@
|
|
|
1699
1553
|
opacity: 0;
|
|
1700
1554
|
clip: rect(0px, 0px, 0px, 0px);
|
|
1701
1555
|
clip-path: inset(50%);
|
|
1702
|
-
`},
|
|
1556
|
+
`},ct=(0,r.forwardRef)(((r,o)=>{var{as:t="span",children:n,className:a}=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","children","className"]);const l=t;return(0,e.jsx)(l,Object.assign({css:st.root,className:a,ref:o},i,{children:n}))}));ct.displayName="VisuallyHidden";const dt={root:i.css`
|
|
1703
1557
|
block-size: ${$(4.5)};
|
|
1704
1558
|
margin-inline-start: calc(${$(3)} + ${q(1)});
|
|
1705
1559
|
column-gap: ${$(3)};
|
|
1706
1560
|
display: flex;
|
|
1707
1561
|
align-items: center;
|
|
1708
|
-
`},
|
|
1709
|
-
`,badge:
|
|
1562
|
+
`},bt=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:dt.root,className:n,ref:o},a,{children:t}))}));bt.displayName="BulkOperationContainer";const pt={root:i.css`
|
|
1563
|
+
`,badge:i.css`
|
|
1710
1564
|
margin-block: ${$(-1)};
|
|
1711
1565
|
margin-inline-start: ${$("gap")};
|
|
1712
|
-
`},
|
|
1566
|
+
`},ut=(0,r.forwardRef)(((r,o)=>{var{count:t,children:n,className:a}=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,["count","children","className"]);const{trans:l,transNumber:s}=I("bulkOperationButton");return(0,e.jsxs)(He,Object.assign({css:pt.root,className:a,scheme:"gray",variant:"light",isCompact:!0,ref:o},i,{children:[(0,e.jsx)(Ye,{children:(0,e.jsx)(gr,{name:"bulk"})}),l("text"),(0,e.jsx)("span",{css:pt.badge,children:(0,e.jsx)(we,{scheme:"gray",size:"small",children:s(t)})})]}))}));ut.displayName="BulkOperationButton";const ft=(0,r.createContext)({isLabel:!1,setHovered:()=>null,setFocusVisible:()=>null}),mt=ft.Provider;const yt={root:i.css`
|
|
1713
1567
|
min-inline-size: ${$(64)};
|
|
1714
1568
|
min-block-size: ${$(14)};
|
|
1715
1569
|
border-radius: ${$(1)};
|
|
@@ -1732,7 +1586,7 @@
|
|
|
1732
1586
|
outline: solid ${q(2)} ${j(x("primary",5),.6)};
|
|
1733
1587
|
outline-offset: ${q(1)};
|
|
1734
1588
|
}
|
|
1735
|
-
`},
|
|
1589
|
+
`},gt=(0,r.forwardRef)(((o,t)=>{var{isLabel:n=!1,href:a,onClick:i,className:l,children:s}=o,c=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["isLabel","href","onClick","className","children"]);const[d,b]=(0,r.useState)(!1),[p,u]=(0,r.useState)(!1),f=n?"label":"article",m=(0,r.useMemo)((()=>({isLabel:n,href:a,onClick:i,setHovered:b,setFocusVisible:u})),[n,a,i,b,u]);return(0,e.jsx)(f,Object.assign({css:yt.root,className:l,ref:t,"data-qlib-hover":d,"data-qlib-focus-visible":p,"data-qlib-label":n,"data-qlib-clickable":null!=a||null!=i},c,{children:(0,e.jsx)(mt,{value:m,children:s})}))}));gt.displayName="Card";const ht={root:i.css`
|
|
1736
1590
|
inset-block-start: ${$(0)};
|
|
1737
1591
|
inset-inline-start: ${$(0)};
|
|
1738
1592
|
padding-inline: ${$(3)};
|
|
@@ -1746,7 +1600,7 @@
|
|
|
1746
1600
|
justify-content: flex-start;
|
|
1747
1601
|
box-sizing: border-box;
|
|
1748
1602
|
position: absolute;
|
|
1749
|
-
`},
|
|
1603
|
+
`},Ot=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=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,["className","children"]);return(0,e.jsx)("div",Object.assign({css:ht.root,className:t,ref:o},a,{children:n}))}));Ot.displayName="CardHeadnote";const vt={root:i.css`
|
|
1750
1604
|
padding-block: ${$(3)};
|
|
1751
1605
|
padding-inline: ${$(3)};
|
|
1752
1606
|
row-gap: ${$(2.5)};
|
|
@@ -1762,7 +1616,7 @@
|
|
|
1762
1616
|
&[data-qlib-has-headnote="true"] {
|
|
1763
1617
|
padding-block-start: ${$(7.5)};
|
|
1764
1618
|
}
|
|
1765
|
-
`},
|
|
1619
|
+
`},xt=(0,r.forwardRef)(((o,t)=>{var{className:n,children:a}=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","children"]);const{href:l,onClick:s,setHovered:c,setFocusVisible:d}=(0,r.useContext)(ft),b=(0,r.useMemo)((()=>Ne(a).some((e=>e.type===Ot))),[a]),p=(0,r.useCallback)((()=>{c(!0)}),[c]),u=(0,r.useCallback)((()=>{c(!1)}),[c]),f=(0,r.useCallback)((e=>{if(null!=l||null!=s){const r=e.target.matches(":focus-visible");d(r)}}),[l,s,d]),m=(0,r.useCallback)((e=>{d(!1)}),[d]);return null!=l?(0,e.jsx)("a",Object.assign({className:n,css:vt.root,href:l,ref:t,onMouseEnter:p,onMouseLeave:u,onFocus:f,onBlur:m,onClick:s,"data-qlib-clickable":!0,"data-qlib-has-headnote":b},i,{children:a})):null!=s?(0,e.jsx)("button",Object.assign({className:n,css:vt.root,ref:t,onMouseEnter:p,onMouseLeave:u,onFocus:f,onBlur:m,onClick:s,"data-qlib-clickable":null!=s,"data-qlib-has-headnote":b},i,{children:a})):(0,e.jsx)("div",Object.assign({className:n,css:vt.root,ref:t,onMouseEnter:p,onMouseLeave:u,"data-qlib-clickable":null!=s,"data-qlib-has-headnote":b},i,{children:a}))}));xt.displayName="CardBody";const jt={root:i.css`
|
|
1766
1620
|
&[data-qlib-variant="primary"] {
|
|
1767
1621
|
--qlib-color: ${x("white")};
|
|
1768
1622
|
--qlib-border-color: ${x("primary",6)};
|
|
@@ -1808,7 +1662,7 @@
|
|
|
1808
1662
|
opacity: 0.5;
|
|
1809
1663
|
cursor: inherit;
|
|
1810
1664
|
}
|
|
1811
|
-
`},
|
|
1665
|
+
`},wt=(0,r.forwardRef)(((r,o)=>{var{label:t,variant:n="primary",type:a="button",isDisabled:i=!1,onClick:l,onKeyDown:s,onKeyUp:c,onMouseDown:d,onPointerDown:b,children:p,className:u}=r,f=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);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","isDisabled","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","children","className"]);return(0,e.jsx)("button",Object.assign({className:u,css:jt.root,type:a,disabled:i,onClick:l,onKeyDown:s,onKeyUp:c,onMouseDown:d,onPointerDown:b,ref:o,"aria-label":t,"data-qlib-variant":n},f,{children:p}))}));wt.displayName="CardButton";const $t={root:i.css`
|
|
1812
1666
|
margin-block: ${q(-1)};
|
|
1813
1667
|
margin-inline-end: ${q(-1)};
|
|
1814
1668
|
display: flex;
|
|
@@ -1817,7 +1671,7 @@
|
|
|
1817
1671
|
order: 3;
|
|
1818
1672
|
z-index: 0;
|
|
1819
1673
|
position: relative;
|
|
1820
|
-
`},
|
|
1674
|
+
`},qt=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=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,["className","children"]);return(0,e.jsx)("div",Object.assign({className:t,css:$t.root,ref:o},a,{children:n}))}));qt.displayName="CardButtonList";const kt=e=>{e.stopPropagation()};const Nt={root:i.css`
|
|
1821
1675
|
margin-inline-start: ${$(3)};
|
|
1822
1676
|
display: flex;
|
|
1823
1677
|
align-items: center;
|
|
@@ -1825,20 +1679,20 @@
|
|
|
1825
1679
|
flex-grow: 0;
|
|
1826
1680
|
flex-shrink: 0;
|
|
1827
1681
|
order: 1;
|
|
1828
|
-
`},
|
|
1682
|
+
`},Pt=(0,r.forwardRef)(((o,t)=>{var{className:n,children:a}=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","children"]);const{isLabel:l,setHovered:s}=(0,r.useContext)(ft),c=(0,r.useCallback)((()=>{s(!0)}),[s]),d=(0,r.useCallback)((()=>{s(!1)}),[s]);return(0,e.jsx)("label",Object.assign({className:n,css:Nt.root,onMouseEnter:l?c:void 0,onMouseLeave:l?d:void 0,onClick:kt,ref:t},i,{children:a}))}));Pt.displayName="CardControlContainer";const St={root:i.css`
|
|
1829
1683
|
font-size: ${$(4)};
|
|
1830
1684
|
font-weight: ${v("bold")};
|
|
1831
|
-
`},
|
|
1685
|
+
`},zt=(0,r.forwardRef)(((r,o)=>{var{as:t="h3",maxLineHeight:n=4,className:a,children:i}=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","maxLineHeight","className","children"]);return(0,e.jsx)(rr,Object.assign({className:a,css:St.root,as:t,lineHeight:"narrow",maxLineCount:n,ref:o},l,{children:i}))}));zt.displayName="CardTitle";const Ct={root:i.css`
|
|
1832
1686
|
row-gap: ${$(3)};
|
|
1833
1687
|
display: flex;
|
|
1834
1688
|
flex-direction: column;
|
|
1835
|
-
`},
|
|
1689
|
+
`},It=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=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,["className","children"]);return(0,e.jsx)("div",Object.assign({css:Ct.root,className:t,ref:o},a,{children:n}))}));It.displayName="CardList";const Et=e=>i.css`
|
|
1836
1690
|
row-gap: ${$(3)};
|
|
1837
1691
|
column-gap: ${$(3)};
|
|
1838
1692
|
display: grid;
|
|
1839
1693
|
grid-template-columns: repeat(${e}, 1fr);
|
|
1840
1694
|
align-items: flex-start;
|
|
1841
|
-
`,
|
|
1695
|
+
`,Rt=(0,r.forwardRef)(((r,o)=>{var{columnCount:t=1,className:n,children:a}=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,["columnCount","className","children"]);const l=jo(t);return(0,e.jsx)("div",Object.assign({css:Et(l),className:n,ref:o},i,{children:a}))}));Rt.displayName="CardListBody";const Dt={root:i.css`
|
|
1842
1696
|
block-size: ${$(24)};
|
|
1843
1697
|
row-gap: ${$(2)};
|
|
1844
1698
|
padding-inline: ${$(4)};
|
|
@@ -1850,22 +1704,22 @@
|
|
|
1850
1704
|
align-items: center;
|
|
1851
1705
|
justify-content: center;
|
|
1852
1706
|
grid-column: 1 / -1;
|
|
1853
|
-
`,icon:
|
|
1707
|
+
`,icon:i.css`
|
|
1854
1708
|
font-size: ${$(8)};
|
|
1855
|
-
`},
|
|
1856
|
-
`},
|
|
1709
|
+
`},Mt=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=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,["className","children"]);const{trans:i}=I("cardListEmpty");return(0,e.jsxs)("div",Object.assign({css:Dt.root,className:t,ref:o},a,{children:[(0,e.jsx)(gr,{css:Dt.icon,name:"empty"}),(0,e.jsx)(rr,{as:"p",lineHeight:"normal",children:n||i("empty")})]}))}));Mt.displayName="CardListEmpty";const Lt={root:i.css`
|
|
1710
|
+
`},Ft=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=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,["className","children"]);return(0,e.jsx)("div",Object.assign({css:Lt.root,className:t,ref:o},a,{children:n}))}));Ft.displayName="CardListFooter";const Bt={root:i.css`
|
|
1857
1711
|
display: flex;
|
|
1858
1712
|
align-items: flex-end;
|
|
1859
1713
|
justify-content: space-between;
|
|
1860
|
-
`},
|
|
1714
|
+
`},At=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=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,["className","children"]);return(0,e.jsx)("div",Object.assign({css:Bt.root,className:t,ref:o},a,{children:n}))}));At.displayName="CardListHeader";const Tt={root:i.css`
|
|
1861
1715
|
column-gap: ${$(4)};
|
|
1862
1716
|
display: flex;
|
|
1863
1717
|
order: 1;
|
|
1864
|
-
`},
|
|
1718
|
+
`},Ht=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=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,["className","children"]);return(0,e.jsx)("div",Object.assign({css:Tt.root,className:t,ref:o},a,{children:n}))}));Ht.displayName="CardListHeaderLeft";const Vt={root:i.css`
|
|
1865
1719
|
column-gap: ${$(3)};
|
|
1866
1720
|
display: flex;
|
|
1867
1721
|
order: 2;
|
|
1868
|
-
`},
|
|
1722
|
+
`},Yt=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=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,["className","children"]);return(0,e.jsx)("div",Object.assign({css:Vt.root,className:t,ref:o},a,{children:n}))}));Yt.displayName="CardListHeaderRight";const Ut={root:i.css`
|
|
1869
1723
|
block-size: ${$(24)};
|
|
1870
1724
|
row-gap: ${$(2)};
|
|
1871
1725
|
padding-inline: ${$(4)};
|
|
@@ -1877,9 +1731,9 @@
|
|
|
1877
1731
|
align-items: center;
|
|
1878
1732
|
justify-content: center;
|
|
1879
1733
|
grid-column: 1 / -1;
|
|
1880
|
-
`,icon:
|
|
1734
|
+
`,icon:i.css`
|
|
1881
1735
|
font-size: ${$(8)};
|
|
1882
|
-
`},
|
|
1736
|
+
`},_t=(0,r.forwardRef)(((r,o)=>{var{className:t,children:n}=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,["className","children"]);const{trans:i}=I("cardListLoading");return(0,e.jsxs)("div",Object.assign({css:Ut.root,className:t,ref:o},a,{children:[(0,e.jsx)(l.FontAwesomeIcon,{css:Ut.icon,icon:s.faCircleNotch,spin:!0}),(0,e.jsx)(rr,{as:"p",lineHeight:"normal",children:n||i("loading")})]}))}));_t.displayName="CardListLoading";const Kt=(0,r.forwardRef)(((o,t)=>{var{items:n,pageProps:a,className:i,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:a,setPage:i,setPageSize:l})=>{const s=(0,r.useMemo)((()=>null!=e?e:[]),[e]),c=null!=n&&null!=o&&null!=t&&null!=l&&null!=i,[d,b]=(0,r.useState)(a[0]),[p,u]=(0,r.useState)(0),f=Math.floor((s.length-1)/d)+1,m=(0,r.useMemo)((()=>s.slice(d*p,d*p+d)),[s,d,p]),y=c?s:m,g=c?n:d,h=c?o:p,O=c?t:f,v=c?l:b,x=c?i:u,j=null==e,w=s.length<=0;return[y,(0,r.useMemo)((()=>({isLoading:j,isEmpty:w,pageSize:g,page:h,pageCount:O,optionPageSizes:a,setPageSize:v,setPage:x})),[j,w,g,h,O,a,x,v])]})(n,a),b=(0,r.useMemo)((()=>({displayedItems:c,resolvedPageProps:d})),[c,d]);return(0,e.jsx)(It,Object.assign({className:i,ref:t},s,{children:(0,e.jsx)(Ko,{value:b,children:l})}))}));Kt.displayName="CardListAuto";const Gt=({columnCount:o=1,className:t,children:n})=>{const{displayedItems:a,resolvedPageProps:{isLoading:i,isEmpty:l}}=(0,r.useContext)(_o),[s,...c]=Array.isArray(n)?n:[n],d=c.find((e=>e.type===Mt)),b=c.find((e=>e.type===_t));return(0,e.jsx)(Rt,{className:t,columnCount:o,children:i?b:l?d:a.map(((e,r)=>s(e,r)))})};Gt.displayName="CardListBodyAuto";const Qt=(0,r.forwardRef)((({className:o,children:t},n)=>{const{resolvedPageProps:{isLoading:a,isEmpty:i}}=(0,r.useContext)(_o);return a||i?null:(0,e.jsx)(Ft,{className:o,ref:n,children:t})}));Qt.displayName="CardListFooterAuto";const Jt={root:i.css`
|
|
1883
1737
|
inline-size: 100%;
|
|
1884
1738
|
padding-block: ${$(8)};
|
|
1885
1739
|
border-block-end: solid ${q(1)} ${x("gray",1)};
|
|
@@ -1889,32 +1743,32 @@
|
|
|
1889
1743
|
flex-direction: column;
|
|
1890
1744
|
position: relative;
|
|
1891
1745
|
z-index: 0;
|
|
1892
|
-
`},
|
|
1746
|
+
`},Wt=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Jt.root,className:n,ref:o},a,{children:t}))}));Wt.displayName="ContentHeader";const Zt={root:i.css`
|
|
1893
1747
|
font-size: ${$(8)};
|
|
1894
1748
|
font-weight: ${v("bold")};
|
|
1895
1749
|
color: ${x("primary",7)};
|
|
1896
|
-
`},
|
|
1750
|
+
`},Xt=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Zt.root,className:n,ref:o},a,{children:t}))}));Xt.displayName="ContentTitle";const en={root:i.css`
|
|
1897
1751
|
&[data-qlib-digit="3"] {
|
|
1898
1752
|
--qlib-inline-size: ${$(11)};
|
|
1899
|
-
--qlib-transform-scale: 0.
|
|
1753
|
+
--qlib-transform-scale: 0.75;
|
|
1900
1754
|
}
|
|
1901
1755
|
&[data-qlib-digit="2"] {
|
|
1902
1756
|
--qlib-inline-size: ${$(8.5)};
|
|
1903
1757
|
--qlib-transform-scale: 0.7;
|
|
1904
1758
|
}
|
|
1905
1759
|
inline-size: var(--qlib-inline-size);
|
|
1906
|
-
padding-block: ${$(
|
|
1907
|
-
padding-inline: ${$(
|
|
1760
|
+
padding-block: ${$(.5)};
|
|
1761
|
+
padding-inline: ${$(1)};
|
|
1908
1762
|
border-radius: ${$(1)};
|
|
1909
1763
|
border: solid 1px ${x("gray",1)};
|
|
1910
1764
|
display: flex;
|
|
1911
1765
|
align-items: center;
|
|
1912
|
-
`,icon:
|
|
1766
|
+
`,icon:i.css`
|
|
1913
1767
|
font-size: ${$(3)};
|
|
1914
1768
|
color: ${x("gray",5)};
|
|
1915
1769
|
flex-grow: 0;
|
|
1916
1770
|
flex-shrink: 0;
|
|
1917
|
-
`,count:
|
|
1771
|
+
`,count:i.css`
|
|
1918
1772
|
font-size: ${$(4)};
|
|
1919
1773
|
color: ${x("gray",5)};
|
|
1920
1774
|
display: flex;
|
|
@@ -1926,7 +1780,7 @@
|
|
|
1926
1780
|
transform: scale(var(--qlib-transform-scale), 1);
|
|
1927
1781
|
transform-origin: right center;
|
|
1928
1782
|
}
|
|
1929
|
-
`},
|
|
1783
|
+
`},rn=(0,r.forwardRef)(((r,o)=>{var{count:t,digitSize:n=3,iconNode:a,className:i,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}=I("countBadge"),d=Math.pow(10,n);return(0,e.jsxs)("div",Object.assign({css:en.root,className:i,ref:o,"data-qlib-digit":n},s,{children:[(0,e.jsx)("span",{css:en.icon,children:a}),(0,e.jsx)("span",{css:en.count,"data-qlib-max":null!=t&&t>=d,children:null!=t?t<d?c(t):c(d-1)+"+":"?"})]}))}));rn.displayName="CountIndicator";const on=(0,r.createContext)({scheme:"primary"}),tn=on.Provider,nn={overlay:i.css`
|
|
1930
1784
|
padding-block: ${$(6)};
|
|
1931
1785
|
padding-inline: ${$(8)};
|
|
1932
1786
|
display: flex;
|
|
@@ -1934,7 +1788,7 @@
|
|
|
1934
1788
|
justify-content: center;
|
|
1935
1789
|
box-sizing: border-box;
|
|
1936
1790
|
z-index: 1000;
|
|
1937
|
-
`,overlaySmartphone:
|
|
1791
|
+
`,overlaySmartphone:i.css`
|
|
1938
1792
|
padding-block: ${$(6)};
|
|
1939
1793
|
padding-inline: ${$(6)};
|
|
1940
1794
|
display: flex;
|
|
@@ -1942,7 +1796,7 @@
|
|
|
1942
1796
|
justify-content: center;
|
|
1943
1797
|
box-sizing: border-box;
|
|
1944
1798
|
z-index: 1000;
|
|
1945
|
-
`,root:
|
|
1799
|
+
`,root:i.css`
|
|
1946
1800
|
&[data-qlib-size="small"] {
|
|
1947
1801
|
--qlib-max-width: ${$(100)};
|
|
1948
1802
|
}
|
|
@@ -1972,8 +1826,8 @@
|
|
|
1972
1826
|
&.ReactModal__Content--before-close {
|
|
1973
1827
|
transform: translate(${$(0)}, ${$(2)});
|
|
1974
1828
|
}
|
|
1975
|
-
`},
|
|
1976
|
-
`},
|
|
1829
|
+
`},an=({label:o,scheme:t="primary",size:n="normal",isOpen:a,isForm:i=!0,onClose:l,children:s})=>{const c=i?"form":"div",d=xo(),b=(0,r.useMemo)((()=>({scheme:t,onClose:l})),[t,l]),p=(0,r.useCallback)((e=>{e.preventDefault()}),[]);return(0,e.jsx)(Br,{css:d?nn.overlaySmartphone:nn.overlay,isOpen:a,label:o,onClose:l,children:(0,e.jsx)(c,{css:nn.root,onSubmit:i?p:void 0,"data-qlib-size":n,"data-qlib-smartphone":d,children:(0,e.jsx)(tn,{value:b,children:s})})})};an.displayName="Dialog";const ln={root:i.css`
|
|
1830
|
+
`},sn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("section",Object.assign({css:ln.root,className:n,ref:o},a,{children:t}))}));sn.displayName="DialogBody";const cn={root:i.css`
|
|
1977
1831
|
&[data-qlib-dialog-variant="submit"] {
|
|
1978
1832
|
--qlib-order: 2;
|
|
1979
1833
|
}
|
|
@@ -1985,7 +1839,7 @@
|
|
|
1985
1839
|
align-items: center;
|
|
1986
1840
|
justify-content: center;
|
|
1987
1841
|
order: var(--qlib-order);
|
|
1988
|
-
`},
|
|
1842
|
+
`},dn=(0,r.forwardRef)(((o,t)=>{var{variant:n="submit",isDisabled:a,isLoading:i,onClick:l,children:s,className:c}=o,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}(o,["variant","isDisabled","isLoading","onClick","children","className"]);const{scheme:b}=(0,r.useContext)(on);return(0,e.jsx)(He,Object.assign({css:cn.root,className:c,scheme:"submit"===n?b:"gray",variant:"submit"===n?"solid":"light",type:"submit"===n?"submit":"button",isDisabled:a,isLoading:i,onClick:l,ref:t,"data-qlib-dialog-variant":n},d,{children:s}))}));dn.displayName="DialogButton";const bn={root:i.css`
|
|
1989
1843
|
inset-block-start: ${$(4)};
|
|
1990
1844
|
inset-inline-end: ${$(4)};
|
|
1991
1845
|
block-size: ${$(7)};
|
|
@@ -2005,7 +1859,7 @@
|
|
|
2005
1859
|
&:focus-visible {
|
|
2006
1860
|
outline: solid ${q(2)} ${j(x("primary",5),.6)};
|
|
2007
1861
|
}
|
|
2008
|
-
`},
|
|
1862
|
+
`},pn=(0,r.forwardRef)(((o,t)=>{var{className:n}=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"]);const{trans:i}=I("dialogCloseButton"),{onClose:c}=(0,r.useContext)(on);return(0,e.jsx)("button",Object.assign({css:bn.root,className:n,type:"button",onClick:c,ref:t,"aria-label":i("close")},a,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes})}))}));pn.displayName="DialogCloseButton";const un={root:i.css`
|
|
2009
1863
|
margin-block-start: ${$(6)};
|
|
2010
1864
|
margin-block-end: ${$(-6)};
|
|
2011
1865
|
margin-inline: calc(-1 * var(--qlib-dialog-padding-inline));
|
|
@@ -2017,24 +1871,24 @@
|
|
|
2017
1871
|
flex-direction: row;
|
|
2018
1872
|
align-items: center;
|
|
2019
1873
|
justify-content: center;
|
|
2020
|
-
`},
|
|
1874
|
+
`},fn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:un.root,className:n,ref:o},a,{children:t}))}));fn.displayName="DialogFooter";const mn={root:i.css`
|
|
2021
1875
|
margin-block-end: ${$(6)};
|
|
2022
1876
|
display: flex;
|
|
2023
1877
|
align-items: center;
|
|
2024
1878
|
justify-content: center;
|
|
2025
|
-
`},
|
|
1879
|
+
`},yn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:mn.root,className:n,ref:o},a,{children:t}))}));yn.displayName="DialogHeader";const gn=e=>i.css`
|
|
2026
1880
|
font-size: ${$(6)};
|
|
2027
1881
|
font-weight: ${v("bold")};
|
|
2028
1882
|
letter-spacing: 0.1em;
|
|
2029
1883
|
text-indent: 0.1em;
|
|
2030
1884
|
color: ${x(e,7)};
|
|
2031
|
-
`,
|
|
1885
|
+
`,hn=(0,r.forwardRef)(((o,t)=>{var{as:n="h3",children:a,className:i}=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)(on);return(0,e.jsx)(s,Object.assign({css:gn(c),className:i,ref:t},l,{children:a}))}));hn.displayName="DialogTitle";const On=(0,r.createContext)({scheme:"primary"}),vn=On.Provider,xn={overlay:i.css`
|
|
2032
1886
|
display: flex;
|
|
2033
1887
|
align-items: center;
|
|
2034
1888
|
justify-content: end;
|
|
2035
1889
|
box-sizing: border-box;
|
|
2036
1890
|
z-index: 1000;
|
|
2037
|
-
`,root:
|
|
1891
|
+
`,root:i.css`
|
|
2038
1892
|
background-color: ${x("background")};
|
|
2039
1893
|
box-shadow: ${k(j(x("black"),.2),2)};
|
|
2040
1894
|
position: relative;
|
|
@@ -2043,7 +1897,7 @@
|
|
|
2043
1897
|
display: flex;
|
|
2044
1898
|
flex-direction: column;
|
|
2045
1899
|
overflow: hidden;
|
|
2046
|
-
`,rootDesktop:
|
|
1900
|
+
`,rootDesktop:i.css`
|
|
2047
1901
|
--qlib-padding-inline: ${$(10)};
|
|
2048
1902
|
width: 90%;
|
|
2049
1903
|
height: 100%;
|
|
@@ -2058,7 +1912,7 @@
|
|
|
2058
1912
|
&.ReactModal__Content--before-close {
|
|
2059
1913
|
transform: translate(100%, 0%);
|
|
2060
1914
|
}
|
|
2061
|
-
`,rootSmartphone:
|
|
1915
|
+
`,rootSmartphone:i.css`
|
|
2062
1916
|
--qlib-padding-inline: ${$(6)};
|
|
2063
1917
|
width: 100%;
|
|
2064
1918
|
height: 95%;
|
|
@@ -2073,12 +1927,12 @@
|
|
|
2073
1927
|
&.ReactModal__Content--before-close {
|
|
2074
1928
|
transform: translate(0%, 100%);
|
|
2075
1929
|
}
|
|
2076
|
-
`}
|
|
1930
|
+
`},jn=({label:o,scheme:t="primary",isOpen:n,isForm:a=!0,onClose:i,children:l})=>{const s=a?"form":"div",c=xo(),d=(0,r.useMemo)((()=>({scheme:t,onClose:i})),[t,i]),b=(0,r.useCallback)((e=>{e.preventDefault()}),[]);return(0,e.jsx)(Br,{css:xn.overlay,isOpen:n,label:o,onClose:i,children:(0,e.jsx)(s,{css:[xn.root,c?xn.rootSmartphone:xn.rootDesktop],onSubmit:a?b:void 0,children:(0,e.jsx)(vn,{value:d,children:l})})})};jn.displayName="Drawer";const wn={root:i.css`
|
|
2077
1931
|
padding-inline: var(--qlib-padding-inline);
|
|
2078
1932
|
flex-grow: 1;
|
|
2079
1933
|
flex-shrink: 1;
|
|
2080
1934
|
overflow-y: auto;
|
|
2081
|
-
`}
|
|
1935
|
+
`},$n=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:wn.root,className:n,ref:o},a,{children:t}))}));$n.displayName="DrawerBody";const qn={root:i.css`
|
|
2082
1936
|
&[data-qlib-dialog-variant="submit"] {
|
|
2083
1937
|
--qlib-order: 2;
|
|
2084
1938
|
}
|
|
@@ -2090,11 +1944,11 @@
|
|
|
2090
1944
|
align-items: center;
|
|
2091
1945
|
justify-content: center;
|
|
2092
1946
|
order: var(--qlib-order);
|
|
2093
|
-
`},
|
|
1947
|
+
`},kn=(0,r.forwardRef)(((o,t)=>{var{variant:n="submit",isDisabled:a,isLoading:i,onClick:l,children:s,className:c}=o,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}(o,["variant","isDisabled","isLoading","onClick","children","className"]);const{scheme:b}=(0,r.useContext)(On);return(0,e.jsx)(He,Object.assign({css:qn.root,className:c,scheme:"submit"===n?b:"gray",variant:"submit"===n?"solid":"light",size:"large",type:"submit"===n?"submit":"button",isDisabled:a,isLoading:i,onClick:l,ref:t,"data-qlib-dialog-variant":n},d,{children:s}))}));kn.displayName="DrawerButton";const Nn=e=>i.css`
|
|
2094
1948
|
font-size: ${$(4)};
|
|
2095
1949
|
letter-spacing: 0.05em;
|
|
2096
1950
|
color: ${x(e,7)};
|
|
2097
|
-
`,
|
|
1951
|
+
`,Pn=(0,r.forwardRef)(((o,t)=>{var{children:n,className:a}=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,["children","className"]);const l=xo(),{scheme:s}=(0,r.useContext)(On);return!l&&(0,e.jsx)("div",Object.assign({css:Nn(s),className:a,ref:t},i,{children:n}))}));Pn.displayName="DrawerCaption";const Sn={root:i.css`
|
|
2098
1952
|
margin-block-start: ${$(6)};
|
|
2099
1953
|
margin-block-end: ${$(-8)};
|
|
2100
1954
|
padding-block: ${$(4)};
|
|
@@ -2107,7 +1961,7 @@
|
|
|
2107
1961
|
justify-content: center;
|
|
2108
1962
|
flex-grow: 0;
|
|
2109
1963
|
flex-shrink: 0;
|
|
2110
|
-
`},
|
|
1964
|
+
`},zn=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Sn.root,className:n,ref:o},a,{children:t}))}));zn.displayName="DrawerFooter";const Cn={root:i.css`
|
|
2111
1965
|
margin-block-end: ${$(8)};
|
|
2112
1966
|
padding-inline: var(--qlib-padding-inline);
|
|
2113
1967
|
row-gap: ${$(2)};
|
|
@@ -2115,7 +1969,7 @@
|
|
|
2115
1969
|
flex-direction: column;
|
|
2116
1970
|
flex-grow: 0;
|
|
2117
1971
|
flex-shrink: 0;
|
|
2118
|
-
`},
|
|
1972
|
+
`},In=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Cn.root,className:n,ref:o},a,{children:t}))}));In.displayName="DrawerHeader";const En=e=>i.css`
|
|
2119
1973
|
font-size: ${$(8)};
|
|
2120
1974
|
font-weight: ${v("bold")};
|
|
2121
1975
|
letter-spacing: 0.1em;
|
|
@@ -2123,7 +1977,7 @@
|
|
|
2123
1977
|
&[data-qlib-smartphone="true"] {
|
|
2124
1978
|
font-size: ${$(8)};
|
|
2125
1979
|
}
|
|
2126
|
-
`,
|
|
1980
|
+
`,Rn=(0,r.forwardRef)(((o,t)=>{var{as:n="h3",children:a,className:i}=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=xo(),{scheme:d}=(0,r.useContext)(On);return(0,e.jsx)(s,Object.assign({css:En(d),className:i,ref:t,"data-qlib-smartphone":c},l,{children:a}))}));Rn.displayName="DrawerTitle";const Dn=(0,r.createContext)(void 0),Mn=Dn.Provider;const Ln={root:i.css`
|
|
2127
1981
|
&[data-qlib-size="small"] {
|
|
2128
1982
|
--qlib-font-size: ${$(3)};
|
|
2129
1983
|
}
|
|
@@ -2132,15 +1986,15 @@
|
|
|
2132
1986
|
}
|
|
2133
1987
|
font-size: var(--qlib-font-size);
|
|
2134
1988
|
color: ${x("gray",5)};
|
|
2135
|
-
`,icon:
|
|
1989
|
+
`,icon:i.css`
|
|
2136
1990
|
margin-inline-end: ${$("gap")};
|
|
2137
1991
|
display: inline;
|
|
2138
|
-
`},
|
|
1992
|
+
`},Fn=(0,r.forwardRef)(((o,t)=>{var n,{size:a="small",className:i,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)(Dn);return(0,e.jsx)(Re,Object.assign({css:Ln.root,className:i,ref:t,"data-qlib-size":null!==(n=null==c?void 0:c.size)&&void 0!==n?n:a},s,{children:l}))}));Fn.displayName="Footnote";const Bn={root:i.css`
|
|
2139
1993
|
margin-inline-end: ${$("gap")};
|
|
2140
1994
|
display: inline;
|
|
2141
1995
|
flex-grow: 0;
|
|
2142
1996
|
flex-shrink: 0;
|
|
2143
|
-
`},
|
|
1997
|
+
`},An=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Bn.root,className:n,ref:o},a,{children:t}))}));An.displayName="FootnoteIconContainer";const Tn={root:i.css`
|
|
2144
1998
|
&[data-qlib-size="small"] {
|
|
2145
1999
|
--qlib-row-gap: ${$(1.5)};
|
|
2146
2000
|
}
|
|
@@ -2150,7 +2004,7 @@
|
|
|
2150
2004
|
row-gap: var(--qlib-row-gap);
|
|
2151
2005
|
display: flex;
|
|
2152
2006
|
flex-direction: column;
|
|
2153
|
-
`},
|
|
2007
|
+
`},Hn=(0,r.forwardRef)(((o,t)=>{var{size:n="small",className:a,children:i}=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"]);const s=(0,r.useMemo)((()=>({size:n})),[n]);return(0,e.jsx)("div",Object.assign({css:Tn.root,className:a,ref:t,"data-qlib-size":n},l,{children:(0,e.jsx)(Mn,{value:s,children:i})}))}));Hn.displayName="FootnoteList";const Vn={root:i.css`
|
|
2154
2008
|
&[data-qlib-size="small"] {
|
|
2155
2009
|
--qlib-column-gap: ${$(3)};
|
|
2156
2010
|
}
|
|
@@ -2159,31 +2013,31 @@
|
|
|
2159
2013
|
}
|
|
2160
2014
|
column-gap: var(--qlib-column-gap);
|
|
2161
2015
|
display: flex;
|
|
2162
|
-
`},
|
|
2016
|
+
`},Yn=(0,r.forwardRef)(((o,t)=>{var n,{className:a,children:i}=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)(Dn);return(0,e.jsx)("div",Object.assign({css:Vn.root,className:a,ref:t,"data-qlib-size":null!==(n=null==s?void 0:s.size)&&void 0!==n?n:"small"},l,{children:i}))}));Yn.displayName="FootnoteListRow";const Un=(0,r.createContext)({orientation:"horizontal"}),_n=Un.Provider;const Kn={rootHorizontal:i.css`
|
|
2163
2017
|
display: inline-flex;
|
|
2164
2018
|
align-items: baseline;
|
|
2165
|
-
`,rootVertical:
|
|
2019
|
+
`,rootVertical:i.css`
|
|
2166
2020
|
display: inline-flex;
|
|
2167
2021
|
flex-direction: column;
|
|
2168
|
-
`},
|
|
2022
|
+
`},Gn=(0,r.forwardRef)(((o,t)=>{var{orientation:n,className:a,children:i}=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?Kn.rootHorizontal:Kn.rootVertical,className:a,ref:t},l,{children:(0,e.jsx)(_n,{value:s,children:i})}))}));const Qn={rootHorizontal:i.css`
|
|
2169
2023
|
font-size: 80%;
|
|
2170
2024
|
::before {
|
|
2171
2025
|
margin-inline: 0.25em;
|
|
2172
2026
|
content: "/";
|
|
2173
2027
|
}
|
|
2174
|
-
`,rootVertical:
|
|
2028
|
+
`,rootVertical:i.css`
|
|
2175
2029
|
padding-inline: 0.2em;
|
|
2176
2030
|
font-size: 80%;
|
|
2177
2031
|
text-align: center;
|
|
2178
|
-
`},
|
|
2179
|
-
`,rootVertical:
|
|
2032
|
+
`},Jn=(0,r.forwardRef)(((o,t)=>{var{className:n,children:a}=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","children"]);const{transNumber:l}=I("fractionView"),{orientation:s}=(0,r.useContext)(Un);return(0,e.jsx)("span",Object.assign({css:"horizontal"===s?Qn.rootHorizontal:Qn.rootVertical,className:n,ref:t},i,{children:"number"==typeof a?l(a):a}))}));Jn.displayName="FractionViewDenominator";const Wn={rootHorizontal:i.css`
|
|
2033
|
+
`,rootVertical:i.css`
|
|
2180
2034
|
padding-inline: 0.2em;
|
|
2181
2035
|
padding-block-end: 0.1em;
|
|
2182
2036
|
margin-block-end: 0.2em;
|
|
2183
2037
|
box-sizing: border-box;
|
|
2184
2038
|
text-align: center;
|
|
2185
2039
|
border-bottom: solid ${q(1)} currentcolor;
|
|
2186
|
-
`},
|
|
2040
|
+
`},Zn=(0,r.forwardRef)(((o,t)=>{var{className:n,children:a}=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","children"]);const{transNumber:l}=I("fractionView"),{orientation:s}=(0,r.useContext)(Un);return(0,e.jsx)("span",Object.assign({css:"horizontal"===s?Wn.rootHorizontal:Wn.rootVertical,className:n,ref:t},i,{children:"number"==typeof a?l(a):a}))}));Zn.displayName="FractionViewNumerator";const Xn={root:i.css`
|
|
2187
2041
|
inline-size: 100%;
|
|
2188
2042
|
block-size: ${$(16)};
|
|
2189
2043
|
padding-inline: ${$(10)};
|
|
@@ -2198,14 +2052,14 @@
|
|
|
2198
2052
|
&[data-smartphone="true"] {
|
|
2199
2053
|
padding-inline: ${$(6)};
|
|
2200
2054
|
}
|
|
2201
|
-
`},
|
|
2055
|
+
`},ea=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);const i=xo();return(0,e.jsx)("header",Object.assign({css:Xn.root,className:n,ref:o,"data-smartphone":i},a,{children:t}))}));ea.displayName="Sidebar";const ra={root:i.css`
|
|
2202
2056
|
align-self: center;
|
|
2203
2057
|
flex-grow: 0;
|
|
2204
2058
|
flex-shrink: 0;
|
|
2205
|
-
`},
|
|
2059
|
+
`},oa=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("h1",Object.assign({css:ra.root,className:n,ref:o},a,{children:t}))}));oa.displayName="HeaderLeft";const ta={root:i.css`
|
|
2206
2060
|
column-gap: ${$(4)};
|
|
2207
2061
|
display: flex;
|
|
2208
|
-
`},
|
|
2062
|
+
`},na=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:ta.root,className:n,ref:o},a,{children:t}))}));na.displayName="HeaderMenu";const aa=e=>i.css`
|
|
2209
2063
|
--qlib-highlight-color: transparent;
|
|
2210
2064
|
color: ${x("gray",5)};
|
|
2211
2065
|
cursor: pointer;
|
|
@@ -2230,13 +2084,13 @@
|
|
|
2230
2084
|
position: absolute;
|
|
2231
2085
|
content: "";
|
|
2232
2086
|
}
|
|
2233
|
-
`,
|
|
2087
|
+
`,ia=(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",href:n,isActive:a=!1,children:i,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:aa(t),href:n,ref:o,"data-active":a},s,{children:i}))}));ia.displayName="HeaderMenuItem";const la={root:i.css`
|
|
2234
2088
|
margin-inline-end: ${$("gap")};
|
|
2235
2089
|
color: var(--qlib-icon-color);
|
|
2236
2090
|
display: inline;
|
|
2237
2091
|
flex-grow: 0;
|
|
2238
2092
|
flex-shrink: 0;
|
|
2239
|
-
`},
|
|
2093
|
+
`},sa=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("span",Object.assign({css:la.root,className:n,ref:o},a,{children:t}))}));sa.displayName="HeaderMenuItemIconContainer";const ca=(0,r.createContext)({setOpen:()=>null,listRef:{current:[]},activeIndex:null,getItemProps:()=>({})}),da=ca.Provider;var ba=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);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 pa=e=>i.css`
|
|
2240
2094
|
--qlib-icon-color: ${x(null!=e?e:"gray",5)};
|
|
2241
2095
|
padding-block: ${$(2)};
|
|
2242
2096
|
padding-inline: ${$(2)};
|
|
@@ -2249,10 +2103,10 @@
|
|
|
2249
2103
|
&:focus {
|
|
2250
2104
|
background-color: ${x(null!=e?e:"primary",0)};
|
|
2251
2105
|
}
|
|
2252
|
-
`,
|
|
2106
|
+
`,ua=(i.css`
|
|
2253
2107
|
margin-inline-end: ${$("gap")};
|
|
2254
2108
|
color: var(--qlib-icon-color);
|
|
2255
|
-
`,(0,r.forwardRef)(((o,t)=>{var{scheme:n=null,onClick:
|
|
2109
|
+
`,(0,r.forwardRef)(((o,t)=>{var{scheme:n=null,onClick:a,children:i,className:l}=o;const s=ba(o,["scheme","onClick","children","className"]),{index:c}=s,d=ba(s,["index"]),{setOpen:b,listRef:p,activeIndex:u,getItemProps:f}=(0,r.useContext)(ca),m=(0,Qe.useMergeRefs)([t,e=>p.current[c]=e]),y=(0,r.useCallback)((e=>{b(!1),null==a||a(e)}),[b,a]);return(0,e.jsx)("button",Object.assign({css:pa(n),className:l,ref:m},f({tabIndex:u===c?0:-1,onClick:y}),d,{children:i}))})));ua.displayName="MenuItem";const fa={root:i.css`
|
|
2256
2110
|
inline-size: ${$(48)};
|
|
2257
2111
|
max-block-size: ${$(60)};
|
|
2258
2112
|
border-radius: ${$(1)};
|
|
@@ -2268,20 +2122,20 @@
|
|
|
2268
2122
|
&[data-qlib-status="open"] {
|
|
2269
2123
|
opacity: 1;
|
|
2270
2124
|
}
|
|
2271
|
-
`,inner:
|
|
2125
|
+
`,inner:i.css`
|
|
2272
2126
|
display: flex;
|
|
2273
2127
|
flex-direction: column;
|
|
2274
|
-
`},
|
|
2128
|
+
`},ma=(0,r.forwardRef)(((r,o)=>{var{isOpen:t,isMounted:n,status:a,context:i,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)(Qe.FloatingPortal,{children:(0,e.jsx)(Qe.FloatingFocusManager,{context:i,children:(0,e.jsx)("div",Object.assign({css:fa.root,className:s,style:l,ref:o,"data-qlib-status":a},d,{children:(0,e.jsx)("div",{css:fa.inner,children:c})}))})})})),ya=({trigger:o,placement:t="bottom-start",className:n,children:a})=>{const[i,l]=(0,r.useState)(!1),s=(0,r.useRef)([]),[c,d]=(0,r.useState)(null),{refs:b,floatingStyles:p,context:u}=(0,Qe.useFloating)({open:i,onOpenChange:l,placement:t,middleware:[(0,Qe.offset)(2)]}),{isMounted:f,status:m}=(0,Qe.useTransitionStatus)(u,{duration:200}),y=(0,Qe.useClick)(u),g=(0,Qe.useDismiss)(u),h=(0,Qe.useListNavigation)(u,{listRef:s,activeIndex:c,onNavigate:d}),O=(0,Qe.useRole)(u,{role:"menu"}),{getReferenceProps:v,getFloatingProps:x,getItemProps:j}=(0,Qe.useInteractions)([y,g,h,O]),w=(0,r.useMemo)((()=>({setOpen:l,listRef:s,activeIndex:c,getItemProps:j})),[l,s,c,j]);return(0,e.jsxs)(e.Fragment,{children:[null!=o&&(0,r.cloneElement)(o,Object.assign({ref:b.setReference},v())),(0,e.jsx)(ma,Object.assign({className:n,isOpen:i,isMounted:f,status:m,context:u,style:p,ref:b.setFloating},x(),{children:(0,e.jsx)(da,{value:w,children:ga(a)})}))]})},ga=e=>{let o=-1;return r.Children.map(e,(e=>(0,ke.isElement)(e)?e.type===ua?(o++,(0,r.cloneElement)(e,{index:o})):e:void 0))};const ha={root:i.css`
|
|
2275
2129
|
margin-inline-end: ${$("gap")};
|
|
2276
2130
|
color: var(--qlib-icon-color);
|
|
2277
2131
|
display: inline;
|
|
2278
2132
|
flex-grow: 0;
|
|
2279
2133
|
flex-shrink: 0;
|
|
2280
|
-
`},
|
|
2134
|
+
`},Oa=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("span",Object.assign({css:ha.root,className:n,ref:o},a,{children:t}))}));Oa.displayName="MenuItemIconContainer";const va={root:i.css`
|
|
2281
2135
|
inline-size: 100%;
|
|
2282
2136
|
margin-block: ${$(1)};
|
|
2283
2137
|
border-block-start: solid ${q(1)} ${x("gray",1)};
|
|
2284
|
-
`},
|
|
2138
|
+
`},xa=(0,r.forwardRef)(((r,o)=>{var{scheme:t=null,onClick:n,className:a}=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","onClick","className"]);return(0,e.jsx)("div",Object.assign({css:va.root,className:a,ref:o,role:"separator"},i))}));xa.displayName="MenuDivider";const ja={root:i.css`
|
|
2285
2139
|
column-gap: ${$(4)};
|
|
2286
2140
|
display: flex;
|
|
2287
2141
|
align-items: center;
|
|
@@ -2289,21 +2143,21 @@
|
|
|
2289
2143
|
position: relative;
|
|
2290
2144
|
pointer-events: all;
|
|
2291
2145
|
transition: opacity 0.2s ease;
|
|
2292
|
-
`,button:
|
|
2146
|
+
`,button:i.css`
|
|
2293
2147
|
column-gap: ${$(2)};
|
|
2294
2148
|
display: flex;
|
|
2295
2149
|
flex-grow: 0;
|
|
2296
2150
|
flex-shrink: 0;
|
|
2297
|
-
`,center:
|
|
2151
|
+
`,center:i.css`
|
|
2298
2152
|
color: ${x("gray",5)};
|
|
2299
2153
|
display: flex;
|
|
2300
2154
|
align-items: baseline;
|
|
2301
2155
|
justify-content: center;
|
|
2302
2156
|
flex-grow: 1;
|
|
2303
2157
|
flex-shrink: 1;
|
|
2304
|
-
`,small:
|
|
2158
|
+
`,small:i.css`
|
|
2305
2159
|
font-size: 80%;
|
|
2306
|
-
`},
|
|
2160
|
+
`},wa=(0,r.forwardRef)(((o,t)=>{var{page:n,pageCount:a,setPage:i,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}=I("pagination"),b=a>=2&&n>0,p=n<a-1,u=(0,r.useCallback)((()=>{null==i||i(0)}),[i]),f=(0,r.useCallback)((()=>{null==i||i(a-1)}),[i,a]),m=(0,r.useCallback)((()=>{null==i||i((e=>Math.max(e-1,0)))}),[i]),y=(0,r.useCallback)((()=>{null==i||i((e=>Math.min(e+1,a-1)))}),[i,a]);return(0,e.jsxs)("nav",Object.assign({css:ja.root,className:l,ref:t,"aria-label":c("label")},s,{children:[(0,e.jsxs)("div",{css:ja.button,children:[(0,e.jsx)(Or,{scheme:"gray",variant:"light",label:c("first"),isDisabled:!b,onClick:u,children:(0,e.jsx)(gr,{name:"first"})}),(0,e.jsx)(Or,{scheme:"gray",variant:"light",label:c("previous"),isDisabled:!b,onClick:m,children:(0,e.jsx)(gr,{name:"previous"})})]}),(0,e.jsx)("div",{css:ja.center,children:(0,e.jsxs)(Gn,{orientation:"horizontal",children:[(0,e.jsx)(Zn,{children:d(n+1)}),(0,e.jsx)(Jn,{children:d(a)})]})}),(0,e.jsxs)("div",{css:ja.button,children:[(0,e.jsx)(Or,{scheme:"gray",variant:"light",label:c("next"),isDisabled:!p,onClick:y,children:(0,e.jsx)(gr,{name:"next"})}),(0,e.jsx)(Or,{scheme:"gray",variant:"light",label:c("last"),isDisabled:!p,onClick:f,children:(0,e.jsx)(gr,{name:"last"})})]})]}))}));wa.displayName="Pagination";const $a=(0,r.forwardRef)(((o,t)=>{var{className:n}=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"]);const{resolvedPageProps:{isLoading:i,isEmpty:l,page:s,pageCount:c,setPage:d}}=(0,r.useContext)(_o);return i||l?null:(0,e.jsx)(wa,Object.assign({className:n,page:s,pageCount:c,setPage:d,ref:t},a))}));$a.displayName="PaginationAuto";const qa={root:i.css`
|
|
2307
2161
|
inline-size: ${1.6}em;
|
|
2308
2162
|
block-size: ${1.6}em;
|
|
2309
2163
|
vertical-align: -0.27em;
|
|
@@ -2312,7 +2166,7 @@
|
|
|
2312
2166
|
justify-content: center;
|
|
2313
2167
|
flex-grow: 0;
|
|
2314
2168
|
flex-shrink: 0;
|
|
2315
|
-
`,icon:e=>
|
|
2169
|
+
`,icon:e=>i.css`
|
|
2316
2170
|
block-size: 100%;
|
|
2317
2171
|
aspect-ratio: 576 / 512;
|
|
2318
2172
|
overflow: visible;
|
|
@@ -2360,26 +2214,26 @@
|
|
|
2360
2214
|
stroke: ${x(e,5)};
|
|
2361
2215
|
}
|
|
2362
2216
|
}
|
|
2363
|
-
`},
|
|
2217
|
+
`},ka=(0,r.forwardRef)(((r,o)=>{var{rank:t,scheme:n="primary",useMedalColors:a=!0,className:i}=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}=I("rankView"),d=a?t<=1?"gold":t<=2?"silver":t<=3?"bronze":"normal":"normal";return(0,e.jsx)("span",Object.assign({css:qa.root,className:i,ref:o},l,{children:(0,e.jsxs)("svg",{css:qa.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)})]})}))}));ka.displayName="RankView";const Na=(0,r.createContext)({activeIndex:-1,count:0}),Pa=Na.Provider,Sa=(0,r.createContext)({index:0}),za=Sa.Provider;var Ca=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);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 Ia=e=>i.css`
|
|
2364
2218
|
--qlib-highlight-color: ${x(e,5)};
|
|
2365
2219
|
column-gap: ${$(2)};
|
|
2366
2220
|
display: flex;
|
|
2367
2221
|
flex-direction: column;
|
|
2368
2222
|
flex-grow: 0;
|
|
2369
2223
|
flex-shrink: 0;
|
|
2370
|
-
`,
|
|
2224
|
+
`,Ea=(0,r.forwardRef)(((o,t)=>{var{scheme:n="primary",children:a,className:i}=o;const l=Ca(o,["scheme","children","className"]),{index:s}=l,c=Ca(l,["index"]),d=(0,r.useMemo)((()=>({index:s})),[s]);return(0,e.jsx)("li",Object.assign({css:Ia(n),className:i,ref:t},c,{children:(0,e.jsx)(za,{value:d,children:a})}))}));Ea.displayName="StepperItem";const Ra={root:i.css`
|
|
2371
2225
|
column-gap: ${$(4)};
|
|
2372
2226
|
row-gap: ${$(4)};
|
|
2373
2227
|
display: flex;
|
|
2374
2228
|
flex-direction: row;
|
|
2375
2229
|
flex-wrap: wrap;
|
|
2376
|
-
`},
|
|
2230
|
+
`},Da=(0,r.forwardRef)(((o,t)=>{var n,{activeIndex:a=-1,children:i,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=Ma(i),d=null!==(n=null==c?void 0:c.length)&&void 0!==n?n:0,b=(0,r.useMemo)((()=>({activeIndex:a,count:d})),[a,d]);return(0,e.jsx)("ol",Object.assign({css:Ra.root,className:l,ref:t},s,{children:(0,e.jsx)(Pa,{value:b,children:c})}))})),Ma=e=>{let o=-1;return r.Children.map(e,(e=>(0,ke.isElement)(e)?e.type===Ea?(o++,(0,r.cloneElement)(e,{index:o})):e:void 0))};Da.displayName="Stepper";const La={root:i.css`
|
|
2377
2231
|
margin-block-start: ${$(2)};
|
|
2378
2232
|
display: flex;
|
|
2379
2233
|
flex-direction: column;
|
|
2380
2234
|
flex-grow: 1;
|
|
2381
2235
|
flex-shrink: 1;
|
|
2382
|
-
`},
|
|
2236
|
+
`},Fa=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:La.root,className:n,ref:o},a,{children:t}))}));Fa.displayName="StepperBody";const Ba={root:i.css`
|
|
2383
2237
|
column-gap: ${$(1)};
|
|
2384
2238
|
display: flex;
|
|
2385
2239
|
flex-direction: row;
|
|
@@ -2387,7 +2241,7 @@
|
|
|
2387
2241
|
align-items: center;
|
|
2388
2242
|
flex-grow: 0;
|
|
2389
2243
|
flex-shrink: 0;
|
|
2390
|
-
`,number:
|
|
2244
|
+
`,number:i.css`
|
|
2391
2245
|
inline-size: ${$(6)};
|
|
2392
2246
|
block-size: ${$(6)};
|
|
2393
2247
|
font-size: ${$(3)};
|
|
@@ -2413,7 +2267,7 @@
|
|
|
2413
2267
|
background-color: ${x("white")};
|
|
2414
2268
|
color: ${x("gray",5)};
|
|
2415
2269
|
}
|
|
2416
|
-
`,border:
|
|
2270
|
+
`,border:i.css`
|
|
2417
2271
|
block-size: ${$(1)};
|
|
2418
2272
|
margin-inline-end: ${$(-3)};
|
|
2419
2273
|
background-color: ${x("gray",1)};
|
|
@@ -2427,10 +2281,10 @@
|
|
|
2427
2281
|
&[data-highlight="true"] {
|
|
2428
2282
|
background-color: var(--qlib-highlight-color);
|
|
2429
2283
|
}
|
|
2430
|
-
`},
|
|
2284
|
+
`},Aa=(0,r.forwardRef)(((o,t)=>{var{children:n,className:a}=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,["children","className"]);const{transNumber:c}=Io("stepper"),{index:d}=(0,r.useContext)(Sa),{activeIndex:b,count:p}=(0,r.useContext)(Na),u=d<b?"completed":d===b?"active":"upcoming";return(0,e.jsxs)("div",Object.assign({css:Ba.root,className:a,ref:t},i,{children:[(0,e.jsx)("div",{css:Ba.number,"data-status":u,children:d<b?(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCheck}):null!=n?n:c(d+1)}),(0,e.jsx)("div",{css:Ba.border,"aria-hidden":!0,"data-visible":d<p-1,"data-highlight":d+1<=b})]}))}));Aa.displayName="StepperNumber";const Ta={root:i.css`
|
|
2431
2285
|
font-size: ${$(4)};
|
|
2432
2286
|
font-weight: ${v("bold")};
|
|
2433
|
-
`},
|
|
2287
|
+
`},Ha=(0,r.forwardRef)(((r,o)=>{var{as:t,children:n,className:a}=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","children","className"]);return(0,e.jsx)(rr,Object.assign({css:Ta.root,className:a,as:t,lineHeight:"normal",ref:o},i,{children:n}))}));Ha.displayName="StepperTitle";const Va={root:i.css`
|
|
2434
2288
|
inline-size: 100%;
|
|
2435
2289
|
margin-block-end: ${q(-1)};
|
|
2436
2290
|
column-gap: ${$(6)};
|
|
@@ -2438,7 +2292,7 @@
|
|
|
2438
2292
|
background-color: ${x("white")};
|
|
2439
2293
|
display: flex;
|
|
2440
2294
|
align-items: flex-end;
|
|
2441
|
-
`},
|
|
2295
|
+
`},Ya=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Va.root,className:n,ref:o},a,{children:t}))}));Ya.displayName="TabList";const Ua={root:i.css`
|
|
2442
2296
|
padding-block-end: calc(${$(3)} + ${q(4)});
|
|
2443
2297
|
padding-inline: ${$(0)};
|
|
2444
2298
|
color: ${x("gray",5)};
|
|
@@ -2468,12 +2322,12 @@
|
|
|
2468
2322
|
font-weight: ${v("bold")};
|
|
2469
2323
|
color: ${x("primary",5)};
|
|
2470
2324
|
}
|
|
2471
|
-
`},
|
|
2325
|
+
`},_a=(0,r.forwardRef)(((r,o)=>{var{isActive:t=!1,href:n,onClick:a,children:i,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,["isActive","href","onClick","children","className"]);return null!=n?(0,e.jsx)("a",Object.assign({css:Ua.root,className:l,ref:o,href:n,onClick:a,"data-active":t},s,{children:i})):(0,e.jsx)("button",Object.assign({css:Ua.root,className:l,ref:o,onClick:a,"data-active":t},s,{children:i}))}));_a.displayName="Tab";const Ka={root:i.css`
|
|
2472
2326
|
margin-inline-end: ${$("gap")};
|
|
2473
2327
|
display: inline;
|
|
2474
2328
|
flex-grow: 0;
|
|
2475
2329
|
flex-shrink: 0;
|
|
2476
|
-
`},
|
|
2330
|
+
`},Ga=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("span",Object.assign({css:Ka.root,className:n,ref:o},a,{children:t}))}));Ga.displayName="HeaderMenuItemIconContainer";const Qa=i.keyframes`
|
|
2477
2331
|
from {
|
|
2478
2332
|
opacity: 0;
|
|
2479
2333
|
transform: translate(${$(0)}, ${$(2)});
|
|
@@ -2482,7 +2336,7 @@
|
|
|
2482
2336
|
opacity: 1;
|
|
2483
2337
|
transform: translate(${$(0)}, ${$(0)});
|
|
2484
2338
|
}
|
|
2485
|
-
`,
|
|
2339
|
+
`,Ja=i.keyframes`
|
|
2486
2340
|
to {
|
|
2487
2341
|
opacity: 0;
|
|
2488
2342
|
transform: translate(${$(0)}, ${$(2)});
|
|
@@ -2491,7 +2345,7 @@
|
|
|
2491
2345
|
opacity: 1;
|
|
2492
2346
|
transform: translate(${$(0)}, ${$(0)});
|
|
2493
2347
|
}
|
|
2494
|
-
`,
|
|
2348
|
+
`,Wa={root:e=>i.css`
|
|
2495
2349
|
inline-size: 100%;
|
|
2496
2350
|
border-radius: ${$(1)};
|
|
2497
2351
|
background-color: ${x("white")};
|
|
@@ -2512,12 +2366,12 @@
|
|
|
2512
2366
|
content: "";
|
|
2513
2367
|
}
|
|
2514
2368
|
&[data-state="open"] {
|
|
2515
|
-
animation: ${
|
|
2369
|
+
animation: ${Qa} 0.2s ease;
|
|
2516
2370
|
}
|
|
2517
2371
|
&[data-state="closed"] {
|
|
2518
|
-
animation: ${
|
|
2372
|
+
animation: ${Ja} 0.2s ease;
|
|
2519
2373
|
}
|
|
2520
|
-
`,icon:e=>
|
|
2374
|
+
`,icon:e=>i.css`
|
|
2521
2375
|
margin-inline-start: ${$(3)};
|
|
2522
2376
|
margin-inline-end: ${$("gap")};
|
|
2523
2377
|
font-size: ${$(6)};
|
|
@@ -2527,40 +2381,40 @@
|
|
|
2527
2381
|
justify-content: center;
|
|
2528
2382
|
flex-grow: 0;
|
|
2529
2383
|
flex-shrink: 0;
|
|
2530
|
-
`,container:
|
|
2384
|
+
`,container:i.css`
|
|
2531
2385
|
padding-block: ${$(3)};
|
|
2532
2386
|
padding-inline-end: ${$(3)};
|
|
2533
2387
|
&:first-of-type {
|
|
2534
2388
|
margin-inline-start: ${$(3)};
|
|
2535
2389
|
}
|
|
2536
|
-
`},
|
|
2390
|
+
`},Za=(0,r.forwardRef)(((r,o)=>{var{isOpen:t,duration:n=5e3,scheme:a="primary",iconNode:i,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)(so.Root,Object.assign({css:Wa.root(a),className:c,duration:null!=n?n:864e5,open:t,onOpenChange:l,ref:o},d,{children:[null!=i&&(0,e.jsx)("div",{css:Wa.icon(a),children:i}),(0,e.jsx)(so.Description,{css:Wa.container,children:s})]}))}));Za.displayName="Toast";const Xa={root:i.css`
|
|
2537
2391
|
row-gap: ${$(2)};
|
|
2538
2392
|
display: flex;
|
|
2539
2393
|
flex-direction: column;
|
|
2540
|
-
`},
|
|
2394
|
+
`},ei=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Xa.root,className:n,ref:o},a,{children:t}))}));ei.displayName="ToastBody";const ri={root:i.css`
|
|
2541
2395
|
font-size: ${$(4)};
|
|
2542
|
-
`},
|
|
2396
|
+
`},oi=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)(rr,Object.assign({css:ri.root,className:n,as:"p",lineHeight:"normal",ref:o},a,{children:t}))}));oi.displayName="ToastMessage";const ti={root:i.css`
|
|
2543
2397
|
font-size: ${$(3)};
|
|
2544
2398
|
color: ${x("gray",5)};
|
|
2545
|
-
`},
|
|
2399
|
+
`},ni=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=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,["children","className"]);return(0,e.jsx)(rr,Object.assign({css:ti.root,className:n,as:"p",lineHeight:"narrow",ref:o},a,{children:t}))}));ni.displayName="ToastSupplement";const ai=(0,r.forwardRef)(((r,o)=>{var{isOpen:t,duration:n=5e3,intent:a="success",onOpenSet:i,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)(Za,Object.assign({className:s,isOpen:t,duration:n,scheme:"success"===a?"green":"error"===a?"red":"primary",iconNode:(0,e.jsx)(gr,{name:a}),onOpenSet:i,ref:o},c,{children:(0,e.jsx)(ei,{children:(0,e.jsx)(oi,{children:l})})}))}));function ii(e){return i.css`
|
|
2546
2400
|
display: flex;
|
|
2547
2401
|
flex-direction: column;
|
|
2548
|
-
${(null==e?void 0:e.gap)?
|
|
2549
|
-
${(null==e?void 0:e.align)?
|
|
2550
|
-
${(null==e?void 0:e.justify)?
|
|
2551
|
-
`}function
|
|
2402
|
+
${(null==e?void 0:e.gap)?i.css`row-gap: ${di(e.gap)};`:""}
|
|
2403
|
+
${(null==e?void 0:e.align)?i.css`align-items: ${e.align};`:""}
|
|
2404
|
+
${(null==e?void 0:e.justify)?i.css`justify-content: ${e.justify};`:""}
|
|
2405
|
+
`}function li(e){return i.css`
|
|
2552
2406
|
display: flex;
|
|
2553
2407
|
flex-direction: row;
|
|
2554
|
-
${(null==e?void 0:e.gap)?
|
|
2555
|
-
${(null==e?void 0:e.align)?
|
|
2556
|
-
${(null==e?void 0:e.justify)?
|
|
2557
|
-
`}function
|
|
2558
|
-
${(null==e?void 0:e.top)?
|
|
2559
|
-
${(null==e?void 0:e.bottom)?
|
|
2560
|
-
${(null==e?void 0:e.left)?
|
|
2561
|
-
${(null==e?void 0:e.right)?
|
|
2562
|
-
`}function
|
|
2563
|
-
${(null==e?void 0:e.width)?
|
|
2564
|
-
${(null==e?void 0:e.height)?
|
|
2565
|
-
`}function
|
|
2408
|
+
${(null==e?void 0:e.gap)?i.css`column-gap: ${di(e.gap)};`:""}
|
|
2409
|
+
${(null==e?void 0:e.align)?i.css`align-items: ${e.align};`:""}
|
|
2410
|
+
${(null==e?void 0:e.justify)?i.css`justify-content: ${e.justify};`:""}
|
|
2411
|
+
`}function si(e){return i.css`
|
|
2412
|
+
${(null==e?void 0:e.top)?i.css`margin-block-start: ${di(e.top)};`:""}
|
|
2413
|
+
${(null==e?void 0:e.bottom)?i.css`margin-block-end: ${di(e.bottom)};`:""}
|
|
2414
|
+
${(null==e?void 0:e.left)?i.css`margin-inline-start: ${di(e.left)};`:""}
|
|
2415
|
+
${(null==e?void 0:e.right)?i.css`margin-inline-end: ${di(e.right)};`:""}
|
|
2416
|
+
`}function ci(e){return i.css`
|
|
2417
|
+
${(null==e?void 0:e.width)?i.css`inline-size: ${di(e.width)};`:""}
|
|
2418
|
+
${(null==e?void 0:e.height)?i.css`block-size: ${di(e.height)};`:""}
|
|
2419
|
+
`}function di(e){return"number"==typeof e?$(e):e}ai.displayName="SimpleToast";const bi=()=>{const{open:e,close:o,setDialogSpec:t}=(0,r.useContext)(no);return(0,r.useCallback)((r=>{const n={element:r(o)};t(n),e()}),[e,o,t])},pi=()=>{const e=(0,r.useContext)(Jr);if(void 0===e)throw new Error("Not inside `RadioGroup`");const{value:o}=e;return{value:o}},ui=()=>{const{setToastSpecs:e}=(0,r.useContext)(po);return(0,r.useCallback)((o=>{const t=z()().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 a in t)n[a]=t[a];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
2566
2420
|
//# sourceMappingURL=index.js.map
|