@baton8/general-components 3.0.0 → 3.1.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.
|
@@ -21,7 +21,7 @@ export declare const Badge: import("react").ForwardRefExoticComponent<import("..
|
|
|
21
21
|
* 見た目のバリアント。
|
|
22
22
|
* @defaultValue `"solid"`
|
|
23
23
|
*/
|
|
24
|
-
variant?: "
|
|
24
|
+
variant?: "solid" | "light" | "outline" | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* サイズ。
|
|
27
27
|
* @defaultValue `"medium"`
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
|
-
export type OpenDialog = (render: (close: () => void) => ReactElement) => void
|
|
2
|
+
export type OpenDialog = (render: (close: () => void) => ReactElement) => Promise<void>;
|
|
3
|
+
/**
|
|
4
|
+
* ダイアログを表示する関数 `openDialog` を返します。
|
|
5
|
+
* `openDialog` 関数にダイアログのレンダー関数を渡すと、そのダイアログが表示されます。
|
|
6
|
+
* ダイアログのレンダー関数にはダイアログを閉じるための関数が渡されるので、キャンセルボタン等に利用してください。
|
|
7
|
+
*
|
|
8
|
+
* `openDialog` 関数自体は Promise を返します。
|
|
9
|
+
* この Promise は、ダイアログを閉じたときに解決されます。
|
|
10
|
+
*/
|
|
3
11
|
export declare const useDialog: () => OpenDialog;
|
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 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:()=>co,AsyncSelect:()=>de,AsyncSelectOption:()=>ue,Avatar:()=>ye,AvatarFallbackIcon:()=>
|
|
1
|
+
(()=>{var e={714:e=>{e.exports={"dialogCloseButton.close":"Close dialog","loadingIcon.label":"Loading","select.select":"Select","select.noOption":"No options","select.loading":"Loading","sortOrderSelect.ascending":"Asc","sortOrderSelect.descending":"Desc","bulkOperationButton.text":"Action","cardListEmpty.empty":"No data found","cardListLoading.loading":"Loading","pagination.label":"Pagination","pagination.first":"First","pagination.previous":"Previous","pagination.next":"Next","pagination.last":"Last","rankView.label":"{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}} place","toast.rootLabel":"Notification","toast.viewportLabel":"Notifications (F8)","quizCardTitle.emptyQuestion":"No question","quizCardTitle.emptyAnswer":"No correct options","groupFootnote.noGroup":"Deleted group","privateFootnote.private":"Limited","privateFootnote.public":"Public","userFootnote.noUser":"Deleted user","imageView.noImage":"No image found","mediumView.unsupported":"Unsupported media"}},62:e=>{e.exports={"dialogCloseButton.close":"ダイアログを閉じる","loadingIcon.label":"読み込み中","select.select":"選択してください","select.noOption":"該当する項目がありません","select.loading":"読み込み中","sortOrderSelect.ascending":"昇順","sortOrderSelect.descending":"降順","bulkOperationButton.text":"一括操作","cardListEmpty.empty":"該当するデータがありません","cardListLoading.loading":"読み込み中","pagination.label":"ページネーション","pagination.first":"最初へ","pagination.previous":"前へ","pagination.next":"次へ","pagination.last":"最後へ","rankView.label":"{rank, number}位","toast.rootLabel":"お知らせ","toast.viewportLabel":"お知らせ (F8)","quizCardTitle.emptyQuestion":"問題文がありません","quizCardTitle.emptyAnswer":"正答選択肢がありません","groupFootnote.noGroup":"削除されたグループ","privateFootnote.private":"限定公開","privateFootnote.public":"全体公開","userFootnote.noUser":"退会したユーザー","imageView.noImage":"画像がありません","mediumView.unsupported":"サポートされていないメディアです"}}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var 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:()=>co,AsyncSelect:()=>de,AsyncSelectOption:()=>ue,Avatar:()=>ye,AvatarFallbackIcon:()=>ve,AvatarFallbackLetter:()=>we,Badge:()=>qe,BadgeIconContainer:()=>Ne,BarMeter:()=>De,BarMeterValue:()=>Fe,BarMeterValueIconContainer:()=>Ae,BarProgress:()=>Te,BulkOperationButton:()=>xt,BulkOperationContainer:()=>vt,Button:()=>Ge,ButtonIconContainer:()=>Qe,Card:()=>qt,CardBody:()=>St,CardButton:()=>zt,CardButtonList:()=>Et,CardControlContainer:()=>Rt,CardHeadnote:()=>Nt,CardList:()=>At,CardListAuto:()=>rn,CardListBody:()=>Tt,CardListBodyAuto:()=>on,CardListEmpty:()=>Yt,CardListFooter:()=>_t,CardListFooterAuto:()=>tn,CardListHeader:()=>Kt,CardListHeaderLeft:()=>Wt,CardListHeaderRight:()=>Zt,CardListLoading:()=>en,CardTitle:()=>Ft,CheckableContainer:()=>Je,CheckableLabel:()=>Xe,Checkbox:()=>or,ContentHeader:()=>an,ContentTitle:()=>sn,ControlContainer:()=>nr,ControlErrorMessage:()=>sr,ControlGroup:()=>fr,ControlHelper:()=>dr,ControlLabel:()=>pr,CountIndicator:()=>dn,Dialog:()=>fn,DialogBody:()=>yn,DialogButton:()=>gn,DialogCloseButton:()=>vn,DialogFooter:()=>xn,DialogHeader:()=>wn,DialogTitle:()=>qn,Divider:()=>yr,Drawer:()=>Sn,DrawerBody:()=>zn,DrawerButton:()=>In,DrawerCaption:()=>Dn,DrawerHeader:()=>Rn,DrawerHeaderLeft:()=>Fn,DrawerHeaderRight:()=>An,DrawerTitle:()=>Tn,FileInput:()=>vr,Footnote:()=>_n,FootnoteIconContainer:()=>Kn,FootnoteList:()=>Wn,FootnoteListRow:()=>Zn,FractionView:()=>oa,FractionViewDenominator:()=>na,FractionViewNumerator:()=>ia,GeneralIcon:()=>gr,Header:()=>sa,HeaderLeft:()=>da,HeaderMenu:()=>pa,HeaderMenuItem:()=>fa,HeaderMenuItemIconContainer:()=>ya,Heading:()=>jr,Icon:()=>$r,IconButton:()=>kr,Input:()=>Ir,InputLeftAddon:()=>Pr,InputRightAddon:()=>Cr,LEVELED_COLOR_SCHEMES:()=>u,Link:()=>Lr,LinkIconContainer:()=>Br,LoadingIcon:()=>Hr,Menu:()=>$a,MenuDivider:()=>Sa,MenuItem:()=>xa,MenuItemIconContainer:()=>Na,Modal:()=>_r,MultiLineText:()=>ir,NumberInput:()=>Wr,NumberInputLeftAddon:()=>Kr,PageSizeSelect:()=>Xo,PageSizeSelectAuto:()=>tt,Pagination:()=>za,PaginationAuto:()=>Ia,PasswordInput:()=>oo,PasswordInputLeftAddon:()=>Zr,PasswordInputRightAddon:()=>eo,Radio:()=>io,RadioGroup:()=>lo,RankView:()=>Da,Root:()=>Yo,SecondaryHeading:()=>_o,Select:()=>Ko,SelectOption:()=>Wo,SelectOptionIconContainer:()=>Zo,SimpleToast:()=>ui,SingleLineText:()=>Re,SortOrderSelect:()=>nt,Stepper:()=>Va,StepperBody:()=>_a,StepperItem:()=>Ha,StepperNumber:()=>Ka,StepperTitle:()=>Wa,Switch:()=>lt,Tab:()=>ei,TabIconContainer:()=>oi,TabList:()=>Za,Tag:()=>ct,TagIconContainer:()=>bt,TagList:()=>ut,Textarea:()=>mt,Toast:()=>ii,ToastBody:()=>si,ToastMessage:()=>di,ToastSupplement:()=>pi,UNLEVELED_COLOR_SCHEMES:()=>f,VisuallyHidden:()=>gt,alpha:()=>j,borderWidth:()=>q,boxShadow:()=>k,color:()=>x,createColorDefinition:()=>m,createTrans:()=>Bo,dimension:()=>gi,fixedLineHeight:()=>C,flexHorizontal:()=>mi,flexVertical:()=>fi,fontFamily:()=>v,fontWeight:()=>O,intlSubject:()=>Io,lineHeight:()=>S,localeSubject:()=>Eo,margin:()=>yi,mergeLocalizationMessages:()=>$o,resolveResponsiveValue:()=>ko,size:()=>$,toResponsiveValue:()=>qo,useBehaviorSubject:()=>Co,useDialog:()=>vi,useIntl:()=>Do,useLocale:()=>Mo,useRadioGroup:()=>Oi,useResponsiveValue:()=>Po,useSetLocale:()=>Ro,useSmartphone:()=>No,useSubject:()=>So,useToast:()=>xi,useTrans:()=>Lo,useTranslation:()=>Fo,whenDesktop:()=>P,whenSmartphone:()=>N});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
|
|
5
|
+
`};function v(){return"'Inter', 'Noto Sans JP', 'Dubai', 'Noto Sans', sans-serif"}function O(e){return"normal"===e?400:700}function x(e,r){return f.includes(e)?`rgb(${g(e,void 0)})`:`rgb(${g(e,r)})`}function j(e,r){return e.startsWith("rgb(")?`rgba(${e.slice(4,-1)}, ${r})`:p()(e).alpha(r).rgb().string()}const w={gap:"0.375em",unitGap:"0.25em",max:"1000em"};function $(e){return"number"==typeof e?e/4+"rem":w[e]}function q(e){return e/16+"rem"}function k(e,r,o){return o?`0rem ${-r/8}rem ${r/4}rem ${e} inset`:`0rem ${r/8}rem ${r/4}rem ${e}`}function N(){return'html[data-qlib-smartphone="true"] &'}function P(){return'html[data-qlib-smartphone="false"] &'}function S(e,r){return i.css`
|
|
6
6
|
line-height: ${e};
|
|
7
7
|
&::before {
|
|
8
8
|
block-size: ${$(0)};
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
white-space: nowrap;
|
|
177
177
|
text-overflow: ellipsis;
|
|
178
178
|
overflow: hidden;
|
|
179
|
-
`},le=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(c.components.Placeholder,Object.assign({css:ie.root},t,{children:o}))},se=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 ce={Control:H,Input:G,Placeholder:le,MenuPortal:re,Menu:J,MenuList:X,Option:ae,NoOptionsMessage:te,LoadingMessage:r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);const{trans:n}=D("select");return(0,e.jsx)(c.components.LoadingMessage,Object.assign({css:M.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})}))},DropdownIndicator:V,ClearIndicator:B,IndicatorsContainer:U,IndicatorSeparator:null,LoadingIndicator:null},de=({value:o,defaultValue:t,searchOptions:n,variant:i="outline",optionAlignment:l="left",isError:s=!1,isClearable:c=!1,isDisabled:d=!1,onSet:b,children:p,className:u})=>{const{trans:f}=D("select"),m=null!=o?be(o,p):o,y=null!=t?be(t,p):t,g=(0,r.useCallback)((e=>{return r=void 0,o=void 0,a=function*(){const r=(yield n(e)).map((e=>be(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]),
|
|
179
|
+
`},le=r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);return(0,e.jsx)(c.components.Placeholder,Object.assign({css:ie.root},t,{children:o}))},se=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 ce={Control:H,Input:G,Placeholder:le,MenuPortal:re,Menu:J,MenuList:X,Option:ae,NoOptionsMessage:te,LoadingMessage:r=>{var{children:o}=r,t=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children"]);const{trans:n}=D("select");return(0,e.jsx)(c.components.LoadingMessage,Object.assign({css:M.root},t,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})}))},DropdownIndicator:V,ClearIndicator:B,IndicatorsContainer:U,IndicatorSeparator:null,LoadingIndicator:null},de=({value:o,defaultValue:t,searchOptions:n,variant:i="outline",optionAlignment:l="left",isError:s=!1,isClearable:c=!1,isDisabled:d=!1,onSet:b,children:p,className:u})=>{const{trans:f}=D("select"),m=null!=o?be(o,p):o,y=null!=t?be(t,p):t,g=(0,r.useCallback)((e=>{return r=void 0,o=void 0,a=function*(){const r=(yield n(e)).map((e=>be(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]),v=se(200),{isMenuOpen:O}=v,x=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(v,["isMenuOpen"]),j=(0,r.useMemo)((()=>({variant:i,optionAlignment:l,isMenuOpen:O,isError:s})),[i,l,O,s]);return(0,e.jsx)(L,{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:ce,isMulti:!1,unstyled:!0,"aria-invalid":s},x))})},be=(e,r)=>{const o=r(e);return{value:e,label:o.props.label,node:o}};de.displayName="AsyncSelect";const pe={root:i.css`
|
|
180
180
|
`},ue=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:pe.root,className:a},i,{children:null!=n?n:o}))};ue.displayName="AsyncSelectOption";const fe=require("@radix-ui/react-avatar");const me={root:i.css`
|
|
181
181
|
inline-size: 1.5em;
|
|
182
182
|
block-size: 1.5em;
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
justify-content: center;
|
|
210
210
|
`,icon:i.css`
|
|
211
211
|
font-size: 1.2em;
|
|
212
|
-
`},
|
|
212
|
+
`},ve=(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)(fe.Fallback,Object.assign({css:he.fallback,ref:o,delayMs:500,style:{color:`hsl(${t}, 100%, 95%)`,backgroundColor:`hsl(${t}, 30%, 50%)`}},a,{children:(0,e.jsx)(l.FontAwesomeIcon,{css:he.icon,icon:ge.faUser})}))}));ve.displayName="AvatarFallbackIcon";const Oe=require("graphemesplit");var xe=o.n(Oe);const je={fallback:i.css`
|
|
213
213
|
width: 100%;
|
|
214
214
|
height: 100%;
|
|
215
215
|
font-size: 0.8em;
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
&[data-qlib-loading="true"] {
|
|
497
497
|
display: flex;
|
|
498
498
|
}
|
|
499
|
-
`},Ge=(0,r.forwardRef)(((o,t)=>{var n,{scheme:a="primary",variant:i="solid",size:c="medium",isCompact:d=!1,type:b="button",isDisabled:p,isLoading:u=!1,onClick:f,onKeyDown:m,onKeyUp:y,onMouseDown:g,onPointerDown:h,children:
|
|
499
|
+
`},Ge=(0,r.forwardRef)(((o,t)=>{var n,{scheme:a="primary",variant:i="solid",size:c="medium",isCompact:d=!1,type:b="button",isDisabled:p,isLoading:u=!1,onClick:f,onKeyDown:m,onKeyUp:y,onMouseDown:g,onPointerDown:h,children:v,className:O}=o,x=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","variant","size","isCompact","type","isDisabled","isLoading","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","children","className"]);const j=(0,r.useContext)(Ve),w=null!==(n=null!=p?p:null==j?void 0:j.isDisabled)&&void 0!==n&&n,$=(0,r.useMemo)((()=>"solid"===i||"light"===i?_e.rootBox(a):"underline"===i||"simple"===i?_e.rootText(a):_e.rootUnstyled(a)),[a,i]);return(0,e.jsxs)("button",Object.assign({className:O,css:$,type:b,disabled:w||u,onClick:f,onKeyDown:m,onKeyUp:y,onMouseDown:g,onPointerDown:h,ref:t,"data-qlib-variant":i,"data-qlib-size":c,"data-qlib-compact":d,"data-qlib-loading":u},x,{children:[v,(0,e.jsx)("div",{css:_e.loading,"data-qlib-loading":u,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})})]}))}));Ge.displayName="Button";const Ke={root:i.css`
|
|
500
500
|
margin-inline-end: ${$("gap")};
|
|
501
501
|
display: inline;
|
|
502
502
|
flex-grow: 0;
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
input:indeterminate +* >& {
|
|
590
590
|
color: var(--qlib-checked-background-color);
|
|
591
591
|
}
|
|
592
|
-
`},or=(0,r.forwardRef)(((o,t)=>{var n,a,{scheme:i="primary",isChecked:s,name:c,value:d,isError:b,isRequired:p,isDisabled:u,onSet:f,onChange:m,onBlur:y,className:g,inputClassName:h,inputId:
|
|
592
|
+
`},or=(0,r.forwardRef)(((o,t)=>{var n,a,{scheme:i="primary",isChecked:s,name:c,value:d,isError:b,isRequired:p,isDisabled:u,onSet:f,onChange:m,onBlur:y,className:g,inputClassName:h,inputId:v}=o,O=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","isChecked","name","value","isError","isRequired","isDisabled","onSet","onChange","onBlur","className","inputClassName","inputId"]);const x=(0,r.useContext)(Ve),j=null!==(n=null!=b?b:null==x?void 0:x.isError)&&void 0!==n&&n,w=null!==(a=null!=u?u:null==x?void 0:x.isDisabled)&&void 0!==a&&a,$=(0,er.useId)(),q=(0,r.useRef)(null),k=(0,er.useMergeRefs)([t,q]),N=(0,r.useCallback)((e=>{const r=e.target.checked;null==f||f(r),null==m||m(e)}),[f,m]);return(0,r.useEffect)((()=>{null!=q.current&&(q.current.indeterminate="indeterminate"===s)}),[s]),(0,e.jsxs)("div",Object.assign({css:rr.root(i),className:g,"data-qlib-disabled":w,"data-qlib-error":j},O,{children:[(0,e.jsx)("input",{type:"checkbox",css:rr.original,ref:k,className:h,id:v||$,checked:null!=s?!0===s:void 0,name:c,value:d,required:p,disabled:w,onChange:null!=f||null!=m?N:void 0,onBlur:y,"aria-invalid":j}),(0,e.jsx)("label",{css:rr.input,htmlFor:v||$,"aria-hidden":"true",children:(0,e.jsx)(l.FontAwesomeIcon,{css:rr.icon,icon:"indeterminate"===s?ge.faMinus:ge.faCheck})})]}))}));or.displayName="Checkbox";const tr={root:i.css`
|
|
593
593
|
row-gap: ${$(2)};
|
|
594
594
|
display: flex;
|
|
595
595
|
flex-direction: column;
|
|
@@ -634,7 +634,7 @@
|
|
|
634
634
|
color: ${x("gray",5)};
|
|
635
635
|
`},dr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,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)(ir,Object.assign({className:n,css:cr.root,ref:o,as:"p",lineHeight:"narrow"},a,{children:t}))}));dr.displayName="ControlHelper";const br={root:i.css`
|
|
636
636
|
font-size: ${$(4)};
|
|
637
|
-
font-weight: ${
|
|
637
|
+
font-weight: ${O("bold")};
|
|
638
638
|
color: ${x("gray",7)};
|
|
639
639
|
`},pr=(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:br.root,as:"div",ref:o},a,{children:t}))}));pr.displayName="ControlLabel";const ur={root:i.css`
|
|
640
640
|
display: flex;
|
|
@@ -719,11 +719,11 @@
|
|
|
719
719
|
color: ${x("gray",5)};
|
|
720
720
|
flex-grow: 0;
|
|
721
721
|
flex-shrink: 0;
|
|
722
|
-
`},
|
|
722
|
+
`},vr=o=>{var t,n,{value:a,name:i,size:l="medium",multiple:c,accept:d,autoFocus:b,isError:p,isRequired:u,isDisabled:f,onSet:m,onChange:y,onBlur:g,children:h,className:v}=o,O=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","multiple","accept","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const x=(0,r.useContext)(Ve),j=null!==(t=null!=p?p:null==x?void 0:x.isError)&&void 0!==t&&t,w=null!==(n=null!=f?f:null==x?void 0:x.isDisabled)&&void 0!==n&&n,$=(0,r.useRef)(null),[q,k]=(0,r.useState)(""),N=(0,r.useCallback)((function(e){var r,o;const t=Array.from(null!==(r=e.target.files)&&void 0!==r?r:[]);c?null==m||m(t):null==m||m(null!==(o=t[0])&&void 0!==o?o:null),null==y||y(e),k(Or(t))}),[c,m,y]),P=(0,r.useCallback)((function(){var e;null===(e=$.current)||void 0===e||e.click()}),[]);return(0,e.jsx)("div",{className:v,css:hr.root,"data-qlib-size":l,"data-qlib-disabled":w,"data-qlib-error":j,children:(0,e.jsxs)("div",{css:hr.inputContainer,children:[(0,e.jsx)("input",Object.assign({css:hr.input,ref:$,name:i,type:"file",multiple:c,accept:d,autoFocus:b,required:u,disabled:w,onChange:N,onBlur:g,"aria-invalid":j},O)),(0,e.jsx)("button",{css:hr.button,disabled:w,onClick:P,"aria-hidden":!0,children:q}),(0,e.jsx)("div",{css:hr.builtinAddon,children:(0,e.jsx)(gr,{icon:c?s.faFiles:s.faFile})})]})})};function Or(e){return Array.isArray(e)?e.map(Or).join(", "):null!=e?e.name:""}vr.displayName="FileInput";const xr={root:i.css`
|
|
723
723
|
padding-block: ${$(1)};
|
|
724
724
|
padding-inline-start: ${$(3)};
|
|
725
725
|
font-size: ${$(5)};
|
|
726
|
-
font-weight: ${
|
|
726
|
+
font-weight: ${O("bold")};
|
|
727
727
|
border-inline-start: solid ${$(1)} ${x("primary",5)};
|
|
728
728
|
display: flex;
|
|
729
729
|
align-items: center;
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
&[data-qlib-loading="true"] {
|
|
815
815
|
display: flex;
|
|
816
816
|
}
|
|
817
|
-
`},kr=(0,r.forwardRef)(((o,t)=>{var{label:n,scheme:a="primary",variant:i="solid",size:c="medium",type:d="button",isDisabled:b,isLoading:p=!1,onClick:u,onKeyDown:f,onKeyUp:m,onMouseDown:y,onPointerDown:g,className:h,children:
|
|
817
|
+
`},kr=(0,r.forwardRef)(((o,t)=>{var{label:n,scheme:a="primary",variant:i="solid",size:c="medium",type:d="button",isDisabled:b,isLoading:p=!1,onClick:u,onKeyDown:f,onKeyUp:m,onMouseDown:y,onPointerDown:g,className:h,children:v}=o,O=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["label","scheme","variant","size","type","isDisabled","isLoading","onClick","onKeyDown","onKeyUp","onMouseDown","onPointerDown","className","children"]);const x=(0,r.useContext)(Ve);return null!=b?b:null==x?void 0:x.isDisabled,(0,e.jsxs)("button",Object.assign({className:h,css:qr.rootBox(a),type:d,disabled:b||p,onClick:u,onKeyDown:f,onKeyUp:m,onMouseDown:y,onPointerDown:g,ref:t,"aria-label":n,"data-qlib-variant":i,"data-qlib-size":c,"data-qlib-loading":p},O,{children:[v,(0,e.jsx)("div",{css:qr.loading,"data-qlib-loading":p,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faCircleNotch,spin:!0})})]}))}));kr.displayName="IconButton";const Nr={root:i.css`
|
|
818
818
|
flex-grow: 0;
|
|
819
819
|
flex-shrink: 0;
|
|
820
820
|
`},Pr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,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:Nr.root,className:n,ref:o},a,{children:t}))}));Pr.displayName="InputLeftAddon";const Sr={root:i.css`
|
|
@@ -906,7 +906,7 @@
|
|
|
906
906
|
color: ${x("gray",5)};
|
|
907
907
|
flex-grow: 0;
|
|
908
908
|
flex-shrink: 0;
|
|
909
|
-
`},Ir=(0,r.forwardRef)(((o,t)=>{var n,a,{value:i,name:l,size:c="medium",isCompact:d=!1,type:b="text",inputMode:p,autoComplete:u="off",autoFocus:f,isError:m,isRequired:y,isDisabled:g,onSet:h,onChange:
|
|
909
|
+
`},Ir=(0,r.forwardRef)(((o,t)=>{var n,a,{value:i,name:l,size:c="medium",isCompact:d=!1,type:b="text",inputMode:p,autoComplete:u="off",autoFocus:f,isError:m,isRequired:y,isDisabled:g,onSet:h,onChange:v,onBlur:O,children:x,className:j,inputClassName:w,inputId:$}=o,q=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","isCompact","type","inputMode","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className","inputClassName","inputId"]);const k=(0,r.useContext)(Ve),N=null!==(n=null!=m?m:null==k?void 0:k.isError)&&void 0!==n&&n,P=null!==(a=null!=g?g:null==k?void 0:k.isDisabled)&&void 0!==a&&a,S=(0,r.useCallback)((e=>{const r=e.target.value;null==h||h(r),null==v||v(e)}),[h,v]),C=Se(x),z=C.find((e=>e.type===Pr)),I=C.find((e=>e.type===Cr));return(0,e.jsx)("label",{className:j,css:zr.root,"data-qlib-size":c,"data-qlib-compact":d,"data-qlib-disabled":P,"data-qlib-error":N,children:(0,e.jsxs)("div",{css:zr.inputContainer,children:[z,(0,e.jsx)("input",Object.assign({css:zr.input,className:w,id:$,ref:t,value:i,name:l,type:b,inputMode:p,autoComplete:u,autoFocus:f,required:y,disabled:P,onChange:null!=h||null!=v?S:void 0,onBlur:O,"aria-invalid":N},q)),Er(b)&&(0,e.jsx)("div",{css:zr.builtinAddon,children:(0,e.jsx)(gr,{icon:"time"===b?s.faClock:s.faCalendar})}),I]})})}));Ir.displayName="Input";const Er=e=>"date"===e||"time"===e||"datetime-local"===e||"month"===e||"week"===e;const Dr=e=>i.css`
|
|
910
910
|
// 文字サイズ
|
|
911
911
|
&[data-qlib-size="small"] {
|
|
912
912
|
--qlib-font-size: ${$(3)};
|
|
@@ -1204,7 +1204,7 @@
|
|
|
1204
1204
|
&:hover:not([data-disabled="true"]) {
|
|
1205
1205
|
background-color: ${x("gray",0)};
|
|
1206
1206
|
}
|
|
1207
|
-
`},Wr=(0,r.forwardRef)(((o,t)=>{var n,a,{value:i,name:c,size:d="medium",isCompact:b=!1,controlPosition:p="vertical",max:u,min:f,step:m,autoComplete:y="off",autoFocus:g,isError:h,isRequired:
|
|
1207
|
+
`},Wr=(0,r.forwardRef)(((o,t)=>{var n,a,{value:i,name:c,size:d="medium",isCompact:b=!1,controlPosition:p="vertical",max:u,min:f,step:m,autoComplete:y="off",autoFocus:g,isError:h,isRequired:v,isDisabled:O,onSet:x,onChange:j,onBlur:w,children:$,className:q}=o,k=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","isCompact","controlPosition","max","min","step","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const N=(0,r.useContext)(Ve),P=null!==(n=null!=h?h:null==N?void 0:N.isError)&&void 0!==n&&n,S=null!==(a=null!=O?O:null==N?void 0:N.isDisabled)&&void 0!==a&&a,C=(0,r.useRef)(null),z=(0,er.useMergeRefs)([t,C]),I=(0,r.useCallback)((e=>{const r=e.target.value;null==x||x(r),null==j||j(e)}),[x,j]),E=(0,r.useCallback)((e=>{null!=C.current&&(C.current.stepUp(),C.current.dispatchEvent(new Event("change",{bubbles:!0})),null==x||x(C.current.value))}),[x]),D=(0,r.useCallback)((e=>{null!=C.current&&(C.current.stepDown(),C.current.dispatchEvent(new Event("change",{bubbles:!0})),null==x||x(C.current.value))}),[x]),M=Se($).find((e=>e.type===Kr));return(0,e.jsx)("label",{className:q,css:Qr.root,"data-qlib-size":d,"data-qlib-compact":b,"data-qlib-disabled":S,"data-qlib-error":P,children:(0,e.jsxs)("div",{css:Qr.inputContainer,children:[M,(0,e.jsx)("input",Object.assign({css:Qr.input,ref:z,value:i,name:c,type:"number",max:u,min:f,step:m,autoComplete:y,autoFocus:g,required:v,disabled:S,onChange:null!=x||null!=j?I:void 0,onBlur:w,"aria-invalid":P},k)),"horizontal"===p&&(0,e.jsx)("button",{css:Qr.horizontalButton,type:"button",onClick:D,tabIndex:-1,"data-position":"left","data-disabled":S,"aria-hidden":!0,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleLeft})}),"horizontal"===p&&(0,e.jsx)("button",{css:Qr.horizontalButton,type:"button",onClick:E,tabIndex:-1,"data-position":"right","data-disabled":S,"aria-hidden":!0,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleRight})}),"vertical"===p&&(0,e.jsxs)("div",{css:Qr.vertivalButtonList,children:[(0,e.jsx)("button",{css:Qr.verticalButton,type:"button",onClick:E,tabIndex:-1,"data-disabled":S,"aria-hidden":!0,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleUp})}),(0,e.jsx)("hr",{css:Qr.verticalButtonDivider,"aria-hidden":!0}),(0,e.jsx)("button",{css:Qr.verticalButton,type:"button",onClick:D,tabIndex:-1,"data-disabled":S,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faAngleDown})})]})]})})}));Wr.displayName="NumberInput";const Jr={root:i.css`
|
|
1208
1208
|
flex-grow: 0;
|
|
1209
1209
|
flex-shrink: 0;
|
|
1210
1210
|
`},Zr=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,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}))}));Zr.displayName="PasswordInputLeftAddon";const Xr={root:i.css`
|
|
@@ -1280,7 +1280,7 @@
|
|
|
1280
1280
|
outline: solid ${q(2)} ${j(x("primary",4),.6)};
|
|
1281
1281
|
outline-offset: ${q(1)};
|
|
1282
1282
|
}
|
|
1283
|
-
`},oo=(0,r.forwardRef)(((o,t)=>{var n,a,{value:i,name:c,size:d="medium",initialReveal:b=!1,inputMode:p,autoComplete:u="current-password",autoFocus:f,isError:m,isRequired:y,isDisabled:g,onSet:h,onChange:
|
|
1283
|
+
`},oo=(0,r.forwardRef)(((o,t)=>{var n,a,{value:i,name:c,size:d="medium",initialReveal:b=!1,inputMode:p,autoComplete:u="current-password",autoFocus:f,isError:m,isRequired:y,isDisabled:g,onSet:h,onChange:v,onBlur:O,children:x,className:j}=o,w=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","size","initialReveal","inputMode","autoComplete","autoFocus","isError","isRequired","isDisabled","onSet","onChange","onBlur","children","className"]);const $=(0,r.useContext)(Ve),q=null!==(n=null!=m?m:null==$?void 0:$.isError)&&void 0!==n&&n,k=null!==(a=null!=g?g:null==$?void 0:$.isDisabled)&&void 0!==a&&a,N=(0,r.useId)(),[P,S]=(0,r.useState)(b),C=(0,r.useCallback)((()=>{S((e=>!e))}),[]),z=(0,r.useCallback)((e=>{const r=e.target.value;null==h||h(r),null==v||v(e)}),[h,v]),I=Se(x),E=I.find((e=>e.type===Zr)),D=I.find((e=>e.type===eo));return(0,e.jsx)("label",Object.assign({className:j,css:ro.root,"data-qlib-size":d,"data-qlib-disabled":k,"data-qlib-error":q},w,{children:(0,e.jsxs)("div",{css:ro.inputContainer,children:[E,(0,e.jsx)("input",Object.assign({css:ro.input,id:N,ref:t,value:i,name:c,type:P?"input":"password",inputMode:p,autoComplete:u,autoFocus:f,required:y,disabled:k,onChange:null!=h||null!=v?z:void 0,onBlur:O,"aria-invalid":q},w)),(0,e.jsx)("button",{css:ro.button,type:"button",onClick:C,children:(0,e.jsx)(l.FontAwesomeIcon,{icon:P?s.faEyeSlash:s.faEye})}),D]})}))}));oo.displayName="PasswordInput";const to=(0,r.createContext)(void 0),no=to.Provider;const ao={root:e=>i.css`
|
|
1284
1284
|
&[data-qlib-error="false"] {
|
|
1285
1285
|
--qlib-border-color: ${x("gray",5)};
|
|
1286
1286
|
--qlib-focus-color: ${j(x(e,5),.6)};
|
|
@@ -1358,7 +1358,7 @@
|
|
|
1358
1358
|
input:checked +* >& {
|
|
1359
1359
|
opacity: 1;
|
|
1360
1360
|
}
|
|
1361
|
-
`},io=(0,r.forwardRef)(((o,t)=>{var n,a,i,{scheme:l="primary",isChecked:s,name:c,value:d,isError:b,isRequired:p,isDisabled:u,onSet:f,onChange:m,onBlur:y,className:g,inputClassName:h,inputId:
|
|
1361
|
+
`},io=(0,r.forwardRef)(((o,t)=>{var n,a,i,{scheme:l="primary",isChecked:s,name:c,value:d,isError:b,isRequired:p,isDisabled:u,onSet:f,onChange:m,onBlur:y,className:g,inputClassName:h,inputId:v}=o,O=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","isChecked","name","value","isError","isRequired","isDisabled","onSet","onChange","onBlur","className","inputClassName","inputId"]);const x=(0,r.useContext)(to),j=(0,r.useContext)(Ve),w=null!==(n=null!=b?b:null==j?void 0:j.isError)&&void 0!==n&&n,$=null!==(a=null!=u?u:null==j?void 0:j.isDisabled)&&void 0!==a&&a,q=(0,er.useId)(),k=(0,r.useCallback)((e=>{if(null!=(null==x?void 0:x.onSet)&&null!=d)x.onSet(d);else{const r=e.target.checked;null==f||f(r)}null==m||m(e)}),[d,x,f,m]);return(0,e.jsxs)("div",Object.assign({css:ao.root(l),className:g,"data-qlib-disabled":$,"data-qlib-error":w},O,{children:[(0,e.jsx)("input",{type:"radio",css:ao.original,ref:t,className:h,id:v||q,value:d,name:null!==(i=null==x?void 0:x.name)&&void 0!==i?i:c,checked:null!=(null==x?void 0:x.value)?x.value===d:null!=s?!0===s:void 0,required:p,disabled:$,onChange:null!=(null==x?void 0:x.onSet)||null!=f||null!=m?k:void 0,onBlur:y,"aria-invalid":w}),(0,e.jsx)("label",{css:ao.input,htmlFor:v||q,"aria-hidden":"true",children:(0,e.jsx)("div",{css:ao.icon})})]}))}));io.displayName="Radio";const lo=({value:o,onSet:t,children:n})=>{const a=(0,er.useId)(),i=(0,r.useMemo)((()=>({name:a,value:o,onSet:t})),[a,o,t]);return(0,e.jsx)(no,{value:i,children:n})};lo.displayName="RadioGroup";const so={root:i.css`
|
|
1362
1362
|
&[data-qlib-orientation="horizontal"] {
|
|
1363
1363
|
--qlib-flex-direction: row;
|
|
1364
1364
|
}
|
|
@@ -1370,7 +1370,7 @@
|
|
|
1370
1370
|
row-gap: ${$(2)};
|
|
1371
1371
|
display: flex;
|
|
1372
1372
|
flex-direction: var(--qlib-flex-direction);
|
|
1373
|
-
`},co=(0,r.forwardRef)((({orientation:r="vertical",children:o},t)=>(0,e.jsx)(lo,{children:(0,e.jsx)("div",{css:so.root,ref:t,"aria-orientation":r,"data-qlib-orientation":r,children:o})})));co.displayName="AlignedRadioGroup";const bo=require("react-use")
|
|
1373
|
+
`},co=(0,r.forwardRef)((({orientation:r="vertical",children:o},t)=>(0,e.jsx)(lo,{children:(0,e.jsx)("div",{css:so.root,ref:t,"aria-orientation":r,"data-qlib-orientation":r,children:o})})));co.displayName="AlignedRadioGroup";const bo=require("react-use");const po=(0,r.createContext)({open:()=>{return e=void 0,r=void 0,t=function*(){},new((o=void 0)||(o=Promise))((function(n,a){function i(e){try{s(t.next(e))}catch(e){a(e)}}function l(e){try{s(t.throw(e))}catch(e){a(e)}}function s(e){var r;e.done?n(e.value):(r=e.value,r instanceof o?r:new o((function(e){e(r)}))).then(i,l)}s((t=t.apply(e,r||[])).next())}));var e,r,o,t},close:()=>{},setDialogSpec:()=>{}}),uo=({children:o})=>{const[t,n]=(0,r.useState)(!1),a=(0,r.useRef)((()=>{})),i=(0,r.useCallback)((()=>(a.current(),new Promise((e=>{a.current=e,n(!0)})))),[]),l=(0,r.useCallback)((()=>{n(!1),a.current()}),[]),[s,c]=(0,r.useState)(null),d=(0,r.useMemo)((()=>({open:i,close:l,setDialogSpec:c})),[i,l,c]);return(0,e.jsxs)(po.Provider,{value:d,children:[null!=s&&(0,r.cloneElement)(s.element,{isOpen:t,onClose:l}),o]})},fo=(0,r.createContext)({rootFontSize:{desktop:"16px",smartphone:"13px"},smartphoneQuery:"(max-width: 767px)"}),mo=fo.Provider,yo=require("@radix-ui/react-toast"),go={root:i.css`
|
|
1374
1374
|
inline-size: ${$(96)};
|
|
1375
1375
|
max-inline-size: calc(100vw - ${$(6)});
|
|
1376
1376
|
inset-block-start: ${$(6)};
|
|
@@ -1384,7 +1384,7 @@
|
|
|
1384
1384
|
position: fixed;
|
|
1385
1385
|
outline: none;
|
|
1386
1386
|
z-index: 2000;
|
|
1387
|
-
`},ho=({})=>{const{trans:r}=D("toast");return(0,e.jsx)(yo.Viewport,{css:go.root,label:r("viewportLabel")})},
|
|
1387
|
+
`},ho=({})=>{const{trans:r}=D("toast");return(0,e.jsx)(yo.Viewport,{css:go.root,label:r("viewportLabel")})},vo=(0,r.createContext)({setToastSpecs:()=>null}),Oo=vo.Provider,xo=({children:o})=>{const{trans:t}=D("toast"),[n,a]=(0,r.useState)([]),i=(0,r.useMemo)((()=>({setToastSpecs:a})),[a]);return(0,e.jsx)(yo.Provider,{label:t("rootLabel"),children:(0,e.jsxs)(Oo,{value:i,children:[(0,e.jsx)(ho,{}),n.map((e=>e.element)),o]})})},jo=e=>Object.fromEntries(Object.entries(e).map((([e,r])=>[`qlib.${e}`,r]))),wo={ja:jo(o(62)),en:jo(o(714))},$o=e=>({ja:e.map((e=>{var r;return null!==(r=e.ja)&&void 0!==r?r:{}})).reduce(Object.assign,{}),en:e.map((e=>{var r;return null!==(r=e.en)&&void 0!==r?r:{}})).reduce(Object.assign,{})}),qo=e=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e:{desktop:e,smartphone:e},ko=(e,r)=>"object"==typeof e&&null!=e&&"desktop"in e&&"smartphone"in e?e[r]:e,No=()=>{const{smartphoneQuery:e}=(0,r.useContext)(fo);return(0,bo.useMedia)(e,!1)},Po=e=>{const r=No();return ko(e,r?"smartphone":"desktop")},So=e=>{const[o,t]=(0,r.useState)(void 0);return(0,r.useEffect)((()=>{const r=e.subscribe({next:e=>t(e)});return()=>r.unsubscribe()}),[e]),o},Co=e=>{const[o,t]=(0,r.useState)(e.value);return(0,r.useEffect)((()=>{const r=e.subscribe({next:e=>t(e)});return()=>r.unsubscribe()}),[e]),o},zo=require("rxjs"),Io=new zo.BehaviorSubject((0,E.createIntl)({locale:"ja",onError:e=>null})),Eo=new zo.BehaviorSubject("ja"),Do=()=>Co(Io),Mo=()=>Co(Eo),Ro=()=>(0,r.useCallback)((e=>{"undefined"!=typeof localStorage&&localStorage.setItem("qlib-locale",e),Eo.next(e)}),[]),Lo=e=>{const o=(0,E.useIntl)(),t=(0,r.useCallback)(((r,t)=>{var n;const 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,r)=>{if(null==e)return"";{const t=o.locale;if("ja"===t)switch(r){case"datetime":return I()(e).locale("ja").format("YYYY/MM/DD HH:mm");case"date":case void 0:return I()(e).locale("ja").format("YYYY/MM/DD");case"shortDate":return I()(e).locale("ja").format("MM/DD");case"time":return I()(e).locale("ja").format("HH:mm");default:throw new Error}else switch(r){case"datetime":return I()(e).locale(t).format("DD/MM/YYYY HH:mm");case"date":case void 0:return I()(e).locale(t).format("DD/MM/YYYY");case"shortDate":return I()(e).locale(t).format("DD/MM");case"time":return I()(e).locale(t).format("HH:mm");default:throw new Error}}}),[o]),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,transNumber:a})),[t,n,a])},Fo=Lo,Bo=e=>{const r=Io.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,o)=>{if(null==e)return"";{const t=r.locale;if("ja"===t)switch(o){case"datetime":return I()(e).locale("ja").format("YYYY/MM/DD HH:mm");case"date":case void 0:return I()(e).locale("ja").format("YYYY/MM/DD");case"shortDate":return I()(e).locale("ja").format("MM/DD");case"time":return I()(e).locale("ja").format("HH:mm");default:throw new Error}else switch(o){case"datetime":return I()(e).locale(t).format("DD/MM/YYYY HH:mm");case"date":case void 0:return I()(e).locale(t).format("DD/MM/YYYY");case"shortDate":return I()(e).locale(t).format("DD/MM");case"time":return I()(e).locale(t).format("HH:mm");default:throw new Error}}},transNumber:(e,o)=>{const t={minimumFractionDigits:null==o?void 0:o.digit,maximumFractionDigits:null==o?void 0:o.digit};return null!=e?e>0?((null==o?void 0:o.withSign)?"+":"")+r.formatNumber(e,t):0===e?((null==o?void 0:o.withSign)?"±":"")+r.formatNumber(e,t):"−"+r.formatNumber(-e,t):""}}},Ao={resetAll:!0,font:!0,wrap:!0},Ho=(e,r)=>i.css`
|
|
1388
1388
|
${r.font?i.css`
|
|
1389
1389
|
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Sans+JP:wght@400;700&family=Noto+Sans:wght@400;700&display=swap");
|
|
1390
1390
|
`:""}
|
|
@@ -1397,7 +1397,7 @@
|
|
|
1397
1397
|
${r.font?i.css`
|
|
1398
1398
|
font-family: ${"'Inter', 'Noto Sans JP', 'Dubai', 'Noto Sans', sans-serif"};
|
|
1399
1399
|
`:""}
|
|
1400
|
-
font-weight: ${
|
|
1400
|
+
font-weight: ${O("normal")};
|
|
1401
1401
|
font-feature-settings: "palt" 1, "pkna" 1, "lnum" 1, "kern" 1 !important;
|
|
1402
1402
|
color: ${x("blackText")};
|
|
1403
1403
|
background-color: ${x("background")};
|
|
@@ -1438,13 +1438,13 @@
|
|
|
1438
1438
|
inline-size: ${$(0)};
|
|
1439
1439
|
opacity: 0;
|
|
1440
1440
|
position: fixed;
|
|
1441
|
-
`},Vo=({})=>(0,e.jsxs)("svg",{css:To.root,viewBox:"0 0 1 1","aria-hidden":!0,children:[(0,e.jsxs)("linearGradient",{id:"qlib-rank-gold",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("gold",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("gold",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("gold",5)})]}),(0,e.jsxs)("linearGradient",{id:"qlib-rank-silver",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("silver",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("silver",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("silver",5)})]}),(0,e.jsxs)("linearGradient",{id:"qlib-rank-bronze",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("bronze",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("bronze",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("bronze",5)})]})]}),Yo=({messages:o,rootFontSize:t={desktop:"16px",smartphone:"13px"},smartphoneQuery:n="(max-width: 767px)",colorDefinitions:a={},globalStyle:l,globalCssSetting:s,appElement:c,defaultReady:d=!1,children:b})=>{const p=Mo(),u=Ro(),f=Co(Io),m=Po(t),y=(0,r.useMemo)((()=>({rootFontSize:qo(t),smartphoneQuery:n})),[t,n]);(0,r.useEffect)((()=>{const e=$o([null!=o?o:{},wo]),r=(0,E.createIntlCache)(),t=(0,E.createIntl)({locale:p,messages:e[p],onError:e=>null},r);Io.next(t)}),[p,o]);const g=(0,bo.useMedia)(n,!1);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-qlib-smartphone",g.toString())}),[g]),(0,r.useEffect)((()=>{var e;"undefined"!=typeof localStorage&&u(null!==(e=localStorage.getItem("qlib-locale"))&&void 0!==e?e:"ja")}),[u]),(0,r.useEffect)((()=>{const e="next"in window?"#__next":c;e&&Yr().setAppElement(e)}),[c]);const[O
|
|
1441
|
+
`},Vo=({})=>(0,e.jsxs)("svg",{css:To.root,viewBox:"0 0 1 1","aria-hidden":!0,children:[(0,e.jsxs)("linearGradient",{id:"qlib-rank-gold",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("gold",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("gold",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("gold",5)})]}),(0,e.jsxs)("linearGradient",{id:"qlib-rank-silver",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("silver",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("silver",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("silver",5)})]}),(0,e.jsxs)("linearGradient",{id:"qlib-rank-bronze",x1:"0",y1:"0",x2:"576",y2:"512",gradientUnits:"userSpaceOnUse",children:[(0,e.jsx)("stop",{offset:"5%",stopColor:x("bronze",5)}),(0,e.jsx)("stop",{offset:"50%",stopColor:x("bronze",3)}),(0,e.jsx)("stop",{offset:"95%",stopColor:x("bronze",5)})]})]}),Yo=({messages:o,rootFontSize:t={desktop:"16px",smartphone:"13px"},smartphoneQuery:n="(max-width: 767px)",colorDefinitions:a={},globalStyle:l,globalCssSetting:s,appElement:c,defaultReady:d=!1,children:b})=>{const p=Mo(),u=Ro(),f=Co(Io),m=Po(t),y=(0,r.useMemo)((()=>({rootFontSize:qo(t),smartphoneQuery:n})),[t,n]);(0,r.useEffect)((()=>{const e=$o([null!=o?o:{},wo]),r=(0,E.createIntlCache)(),t=(0,E.createIntl)({locale:p,messages:e[p],onError:e=>null},r);Io.next(t)}),[p,o]);const g=(0,bo.useMedia)(n,!1);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-qlib-smartphone",g.toString())}),[g]),(0,r.useEffect)((()=>{var e;"undefined"!=typeof localStorage&&u(null!==(e=localStorage.getItem("qlib-locale"))&&void 0!==e?e:"ja")}),[u]),(0,r.useEffect)((()=>{const e="next"in window?"#__next":c;e&&Yr().setAppElement(e)}),[c]);const[v,O]=(0,r.useState)(d);return(0,r.useEffect)((()=>{O(!0)}),[]),(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)(i.Global,{styles:Ho(m,Object.assign({},Ao,null!=s?s:{}))}),(0,e.jsx)(i.Global,{styles:h(a)}),(0,e.jsx)(i.Global,{styles:l}),(0,e.jsx)(Vo,{}),(0,e.jsx)(E.RawIntlProvider,{value:f,children:(0,e.jsx)(mo,{value:y,children:(0,e.jsx)(xo,{children:(0,e.jsx)(uo,{children:v&&b})})})})]})};const Uo={root:i.css`
|
|
1442
1442
|
font-size: ${$(4.5)};
|
|
1443
|
-
font-weight: ${
|
|
1443
|
+
font-weight: ${O("bold")};
|
|
1444
1444
|
color: ${x("primary",6)};
|
|
1445
1445
|
display: flex;
|
|
1446
1446
|
align-items: center;
|
|
1447
|
-
`},_o=r=>{var{as:o="h3",className:t,children:n}=r,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:Uo.root,className:t},a,{children:n}))};_o.displayName="SecondaryHeading";const Go={Control:H,Input:G,Placeholder:le,MenuPortal:re,Menu:J,MenuList:X,Option:ae,NoOptionsMessage:te,DropdownIndicator:V,ClearIndicator:B,IndicatorsContainer:U,IndicatorSeparator:null},Ko=({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}=D("select"),y=(0,r.useMemo)((()=>{const e=Se(b),r=new Map(e.map((e=>{const r={value:e.props.value,label:e.props.label,node:e};return[e.props.value,r]})));return r}),[b]),g=(0,r.useMemo)((()=>[...y.values()]),[y]),h=void 0!==o?null!==(u=y.get(o))&&void 0!==u?u:null:void 0,
|
|
1447
|
+
`},_o=r=>{var{as:o="h3",className:t,children:n}=r,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:Uo.root,className:t},a,{children:n}))};_o.displayName="SecondaryHeading";const Go={Control:H,Input:G,Placeholder:le,MenuPortal:re,Menu:J,MenuList:X,Option:ae,NoOptionsMessage:te,DropdownIndicator:V,ClearIndicator:B,IndicatorsContainer:U,IndicatorSeparator:null},Ko=({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}=D("select"),y=(0,r.useMemo)((()=>{const e=Se(b),r=new Map(e.map((e=>{const r={value:e.props.value,label:e.props.label,node:e};return[e.props.value,r]})));return r}),[b]),g=(0,r.useMemo)((()=>[...y.values()]),[y]),h=void 0!==o?null!==(u=y.get(o))&&void 0!==u?u:null:void 0,v=void 0!==t?null!==(f=y.get(t))&&void 0!==f?f:null:void 0,O=(0,r.useCallback)((e=>{null==c||c(null!==e?e.value:null)}),[c]),x=se(200),{isMenuOpen:j}=x,w=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(x,["isMenuOpen"]),$=(0,r.useMemo)((()=>({variant:n,optionAlignment:a,isMenuOpen:j,isError:i})),[n,a,j,i]);return(0,e.jsx)(L,{value:$,children:(0,e.jsx)(d(),Object.assign({className:p,classNamePrefix:"qlib-select",value:h,defaultValue:v,options:g,onChange:null!=c?O:void 0,isClearable:l,isDisabled:s,placeholder:m("select"),menuPortalTarget:"object"==typeof window?document.body:void 0,components:Go,isMulti:!1,unstyled:!0,"aria-invalid":i},w))})};Ko.displayName="Select";const Qo={root:i.css`
|
|
1448
1448
|
`},Wo=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:Qo.root,className:i},l,{children:null!=a?a:t}))};Wo.displayName="SelectOption";const Jo={root:i.css`
|
|
1449
1449
|
margin-inline-end: ${$("gap")};
|
|
1450
1450
|
color: ${x("gray",5)};
|
|
@@ -1517,7 +1517,7 @@
|
|
|
1517
1517
|
border-color: var(--qlib-checked-border-color);
|
|
1518
1518
|
inset-inline-start: calc(var(--qlib-inline-size) - var(--qlib-block-size) + ${q(2)});
|
|
1519
1519
|
}
|
|
1520
|
-
`},lt=(0,r.forwardRef)(((o,t)=>{var n,a,{scheme:i="primary",isChecked:l,name:s,isError:c,isRequired:d,isDisabled:b,onSet:p,onChange:u,onBlur:f,className:m}=o,y=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","isChecked","name","isError","isRequired","isDisabled","onSet","onChange","onBlur","className"]);const g=(0,r.useContext)(Ve),h=null!==(n=null!=c?c:null==g?void 0:g.isError)&&void 0!==n&&n,
|
|
1520
|
+
`},lt=(0,r.forwardRef)(((o,t)=>{var n,a,{scheme:i="primary",isChecked:l,name:s,isError:c,isRequired:d,isDisabled:b,onSet:p,onChange:u,onBlur:f,className:m}=o,y=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["scheme","isChecked","name","isError","isRequired","isDisabled","onSet","onChange","onBlur","className"]);const g=(0,r.useContext)(Ve),h=null!==(n=null!=c?c:null==g?void 0:g.isError)&&void 0!==n&&n,v=null!==(a=null!=b?b:null==g?void 0:g.isDisabled)&&void 0!==a&&a;return(0,e.jsx)(at.Root,Object.assign({css:it.root(i),className:m,ref:t,name:s,checked:l,required:d,disabled:v,onCheckedChange:p,"data-qlib-disabled":v,"data-qlib-error":h},y,{children:(0,e.jsx)(at.Thumb,{css:it.thumb})}))}));lt.displayName="Checkbox";const st=e=>i.css`
|
|
1521
1521
|
padding-block: ${$(.5)};
|
|
1522
1522
|
padding-inline: ${$(1)};
|
|
1523
1523
|
font-size: ${$(3)};
|
|
@@ -1595,7 +1595,7 @@
|
|
|
1595
1595
|
&:disabled {
|
|
1596
1596
|
cursor: inherit;
|
|
1597
1597
|
}
|
|
1598
|
-
`},mt=(0,r.forwardRef)(((o,t)=>{var n,a,{value:i,name:l,rowCount:s=4,resize:c="vertical",inputMode:d,autoComplete:b="off",autoFocus:p,isWrapped:u=!0,isError:f=!1,isRequired:m,isDisabled:y,onSet:g,onChange:h,onBlur:
|
|
1598
|
+
`},mt=(0,r.forwardRef)(((o,t)=>{var n,a,{value:i,name:l,rowCount:s=4,resize:c="vertical",inputMode:d,autoComplete:b="off",autoFocus:p,isWrapped:u=!0,isError:f=!1,isRequired:m,isDisabled:y,onSet:g,onChange:h,onBlur:v,className:O,textareaClassName:x,textareaId:j}=o,w=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(o,["value","name","rowCount","resize","inputMode","autoComplete","autoFocus","isWrapped","isError","isRequired","isDisabled","onSet","onChange","onBlur","className","textareaClassName","textareaId"]);const q=(0,r.useContext)(Ve),k=null!==(n=null!=f?f:null==q?void 0:q.isError)&&void 0!==n&&n,N=null!==(a=null!=y?y:null==q?void 0:q.isDisabled)&&void 0!==a&&a,P=(0,r.useCallback)((e=>{const r=e.target.value;null==g||g(r),null==h||h(e)}),[g,h]);return(0,e.jsx)("label",{className:O,css:ft.root,"data-qlib-size":$,"data-qlib-disabled":N,"data-qlib-error":k,children:(0,e.jsx)("div",{css:ft.inputContainer,children:(0,e.jsx)("textarea",Object.assign({css:ft.input,className:x,id:j,ref:t,value:i,name:l,rows:s,inputMode:d,autoComplete:b,autoFocus:p,required:m,disabled:N,onChange:null!=g||null!=h?P:void 0,onBlur:v,"aria-invalid":k,"data-qlib-wrapped":u,"data-qlib-resize":c},w))})})}));mt.displayName="Textarea";const yt={root:i.css`
|
|
1599
1599
|
width: 1px;
|
|
1600
1600
|
height: 1px;
|
|
1601
1601
|
position: absolute;
|
|
@@ -1610,11 +1610,11 @@
|
|
|
1610
1610
|
column-gap: ${$(3)};
|
|
1611
1611
|
display: flex;
|
|
1612
1612
|
align-items: center;
|
|
1613
|
-
`},
|
|
1613
|
+
`},vt=(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:ht.root,className:n,ref:o},a,{children:t}))}));vt.displayName="BulkOperationContainer";const Ot={root:i.css`
|
|
1614
1614
|
`,badge:i.css`
|
|
1615
1615
|
margin-block: ${$(-1)};
|
|
1616
1616
|
margin-inline-start: ${$("gap")};
|
|
1617
|
-
`},xt=(0,r.forwardRef)(((r,o)=>{var{count:t,children:n,className: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}=D("bulkOperationButton");return(0,e.jsxs)(Ge,Object.assign({css:
|
|
1617
|
+
`},xt=(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}=D("bulkOperationButton");return(0,e.jsxs)(Ge,Object.assign({css:Ot.root,className:a,scheme:"gray",variant:"light",isCompact:!0,ref:o},i,{children:[(0,e.jsx)(Qe,{children:(0,e.jsx)($r,{name:"bulk"})}),l("text"),(0,e.jsx)("span",{css:Ot.badge,children:(0,e.jsx)(qe,{scheme:"gray",size:"small",children:s(t)})})]}))}));xt.displayName="BulkOperationButton";const jt=(0,r.createContext)({isLabel:!1,setHovered:()=>null,setFocusVisible:()=>null}),wt=jt.Provider;const $t={root:i.css`
|
|
1618
1618
|
min-inline-size: ${$(64)};
|
|
1619
1619
|
min-block-size: ${$(14)};
|
|
1620
1620
|
border-radius: ${$(1)};
|
|
@@ -1732,7 +1732,7 @@
|
|
|
1732
1732
|
order: 1;
|
|
1733
1733
|
`},Rt=(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)(jt),c=(0,r.useCallback)((()=>{s(!0)}),[s]),d=(0,r.useCallback)((()=>{s(!1)}),[s]);return(0,e.jsx)("label",Object.assign({className:n,css:Mt.root,onMouseEnter:l?c:void 0,onMouseLeave:l?d:void 0,onClick:Dt,ref:t},i,{children:a}))}));Rt.displayName="CardControlContainer";const Lt={root:i.css`
|
|
1734
1734
|
font-size: ${$(4)};
|
|
1735
|
-
font-weight: ${
|
|
1735
|
+
font-weight: ${O("bold")};
|
|
1736
1736
|
`},Ft=(0,r.forwardRef)(((r,o)=>{var{as:t="h3",maxLineCount:n=null,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","maxLineCount","className","children"]);return(0,e.jsx)(ir,Object.assign({className:a,css:Lt.root,as:t,maxLineCount:n,ref:o},l,{children:i}))}));Ft.displayName="CardTitle";const Bt={root:i.css`
|
|
1737
1737
|
row-gap: ${$(3)};
|
|
1738
1738
|
display: flex;
|
|
@@ -1784,7 +1784,7 @@
|
|
|
1784
1784
|
grid-column: 1 / -1;
|
|
1785
1785
|
`,icon:i.css`
|
|
1786
1786
|
font-size: ${$(8)};
|
|
1787
|
-
`},en=(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}=D("cardListLoading");return(0,e.jsxs)("div",Object.assign({css:Xt.root,className:t,ref:o},a,{children:[(0,e.jsx)(l.FontAwesomeIcon,{css:Xt.icon,icon:s.faCircleNotch,spin:!0}),(0,e.jsx)(ir,{as:"p",lineHeight:"normal",children:n||i("loading")})]}))}));en.displayName="CardListLoading";const rn=(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,
|
|
1787
|
+
`},en=(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}=D("cardListLoading");return(0,e.jsxs)("div",Object.assign({css:Xt.root,className:t,ref:o},a,{children:[(0,e.jsx)(l.FontAwesomeIcon,{css:Xt.icon,icon:s.faCircleNotch,spin:!0}),(0,e.jsx)(ir,{as:"p",lineHeight:"normal",children:n||i("loading")})]}))}));en.displayName="CardListLoading";const rn=(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,v=c?t:f,O=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:v,optionPageSizes:a,setPageSize:O,setPage:x})),[j,w,g,h,v,a,x,O])]})(n,a),b=(0,r.useMemo)((()=>({displayedItems:c,resolvedPageProps:d})),[c,d]);return(0,e.jsx)(At,Object.assign({className:i,ref:t},s,{children:(0,e.jsx)(rt,{value:b,children:l})}))}));rn.displayName="CardListAuto";const on=({columnCount:o=1,className:t,children:n})=>{const{displayedItems:a,resolvedPageProps:{isLoading:i,isEmpty:l}}=(0,r.useContext)(et),[s,...c]=Array.isArray(n)?n:[n],d=c.find((e=>e.type===Yt)),b=c.find((e=>e.type===en));return(0,e.jsx)(Tt,{className:t,columnCount:o,children:i?b:l?d:a.map(((e,r)=>s(e,r)))})};on.displayName="CardListBodyAuto";const tn=(0,r.forwardRef)((({className:o,children:t},n)=>{const{resolvedPageProps:{isLoading:a,isEmpty:i}}=(0,r.useContext)(et);return a||i?null:(0,e.jsx)(_t,{className:o,ref:n,children:t})}));tn.displayName="CardListFooterAuto";const nn={root:i.css`
|
|
1788
1788
|
inline-size: 100%;
|
|
1789
1789
|
padding-block: ${$(8)};
|
|
1790
1790
|
border-block-end: solid ${q(1)} ${x("gray",1)};
|
|
@@ -1797,7 +1797,7 @@
|
|
|
1797
1797
|
z-index: 0;
|
|
1798
1798
|
`},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)("div",Object.assign({css:nn.root,className:n,ref:o},a,{children:t}))}));an.displayName="ContentHeader";const ln={root:i.css`
|
|
1799
1799
|
font-size: ${$(8)};
|
|
1800
|
-
font-weight: ${
|
|
1800
|
+
font-weight: ${O("bold")};
|
|
1801
1801
|
color: ${x("primary",7)};
|
|
1802
1802
|
`},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)(ir,Object.assign({css:ln.root,className:n,lineHeight:"normalFixed",ref:o},a,{children:t}))}));sn.displayName="ContentTitle";const cn={root:i.css`
|
|
1803
1803
|
&[data-qlib-digit="3"] {
|
|
@@ -1899,7 +1899,7 @@
|
|
|
1899
1899
|
&:focus-visible {
|
|
1900
1900
|
outline: solid ${q(2)} ${j(x("primary",5),.6)};
|
|
1901
1901
|
}
|
|
1902
|
-
`},
|
|
1902
|
+
`},vn=(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}=D("dialogCloseButton"),{onClose:c}=(0,r.useContext)(bn);return(0,e.jsx)("button",Object.assign({css:hn.root,className:n,type:"button",onClick:c,ref:t,"aria-label":i("close")},a,{children:(0,e.jsx)(l.FontAwesomeIcon,{icon:s.faTimes})}))}));vn.displayName="DialogCloseButton";const On={root:i.css`
|
|
1903
1903
|
margin-block-start: ${$(6)};
|
|
1904
1904
|
margin-block-end: ${$(-6)};
|
|
1905
1905
|
margin-inline: calc(-1 * var(--qlib-dialog-padding-inline));
|
|
@@ -1912,14 +1912,14 @@
|
|
|
1912
1912
|
flex-direction: row;
|
|
1913
1913
|
align-items: center;
|
|
1914
1914
|
justify-content: center;
|
|
1915
|
-
`},xn=(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:
|
|
1915
|
+
`},xn=(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:On.root,className:n,ref:o},a,{children:t}))}));xn.displayName="DialogFooter";const jn={root:i.css`
|
|
1916
1916
|
margin-block-end: ${$(6)};
|
|
1917
1917
|
display: flex;
|
|
1918
1918
|
align-items: center;
|
|
1919
1919
|
justify-content: center;
|
|
1920
1920
|
`},wn=(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:jn.root,className:n,ref:o},a,{children:t}))}));wn.displayName="DialogHeader";const $n=e=>i.css`
|
|
1921
1921
|
font-size: ${$(6)};
|
|
1922
|
-
font-weight: ${
|
|
1922
|
+
font-weight: ${O("bold")};
|
|
1923
1923
|
letter-spacing: 0.1em;
|
|
1924
1924
|
text-indent: 0.1em;
|
|
1925
1925
|
color: ${x(e,7)};
|
|
@@ -1997,7 +1997,7 @@
|
|
|
1997
1997
|
flex-shrink: 0;
|
|
1998
1998
|
`},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)("div",Object.assign({css:Bn.root,className:n,ref:o},a,{children:t}))}));An.displayName="DrawerHeaderRight";const Hn=e=>i.css`
|
|
1999
1999
|
font-size: ${$(8)};
|
|
2000
|
-
font-weight: ${
|
|
2000
|
+
font-weight: ${O("bold")};
|
|
2001
2001
|
letter-spacing: 0.1em;
|
|
2002
2002
|
color: ${x(e,7)};
|
|
2003
2003
|
&[data-qlib-smartphone="true"] {
|
|
@@ -2099,7 +2099,7 @@
|
|
|
2099
2099
|
&[data-active="true"] {
|
|
2100
2100
|
--qlib-highlight-color: ${x(e,5)};
|
|
2101
2101
|
color: ${x("primary",5)};
|
|
2102
|
-
font-weight: ${
|
|
2102
|
+
font-weight: ${O("bold")};
|
|
2103
2103
|
}
|
|
2104
2104
|
&::before {
|
|
2105
2105
|
inset-inline: ${$(0)};
|
|
@@ -2116,7 +2116,7 @@
|
|
|
2116
2116
|
display: inline;
|
|
2117
2117
|
flex-grow: 0;
|
|
2118
2118
|
flex-shrink: 0;
|
|
2119
|
-
`},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)("span",Object.assign({css:ma.root,className:n,ref:o},a,{children:t}))}));ya.displayName="HeaderMenuItemIconContainer";const ga=(0,r.createContext)({setOpen:()=>null,listRef:{current:[]},activeIndex:null,getItemProps:()=>({})}),ha=ga.Provider;var
|
|
2119
|
+
`},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)("span",Object.assign({css:ma.root,className:n,ref:o},a,{children:t}))}));ya.displayName="HeaderMenuItemIconContainer";const ga=(0,r.createContext)({setOpen:()=>null,listRef:{current:[]},activeIndex:null,getItemProps:()=>({})}),ha=ga.Provider;var va=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o};const Oa=e=>i.css`
|
|
2120
2120
|
--qlib-icon-color: ${x(null!=e?e:"gray",5)};
|
|
2121
2121
|
padding-block: ${$(2)};
|
|
2122
2122
|
padding-inline: ${$(2)};
|
|
@@ -2136,7 +2136,7 @@
|
|
|
2136
2136
|
`,xa=(i.css`
|
|
2137
2137
|
margin-inline-end: ${$("gap")};
|
|
2138
2138
|
color: var(--qlib-icon-color);
|
|
2139
|
-
`,(0,r.forwardRef)(((o,t)=>{var{scheme:n=null,isDisabled:a=!1,onClick:i,children:l,className:s}=o;const c=
|
|
2139
|
+
`,(0,r.forwardRef)(((o,t)=>{var{scheme:n=null,isDisabled:a=!1,onClick:i,children:l,className:s}=o;const c=va(o,["scheme","isDisabled","onClick","children","className"]),{index:d}=c,b=va(c,["index"]),{setOpen:p,listRef:u,activeIndex:f,getItemProps:m}=(0,r.useContext)(ga),y=(0,er.useMergeRefs)([t,e=>u.current[d]=e]),g=(0,r.useCallback)((e=>{p(!1),null==i||i(e)}),[p,i]);return(0,e.jsx)("button",Object.assign({css:Oa(n),className:s,ref:y},m({tabIndex:f===d?0:-1,onClick:g,disabled:a}),b,{children:l}))})));xa.displayName="MenuItem";const ja={root:i.css`
|
|
2140
2140
|
inline-size: ${$(48)};
|
|
2141
2141
|
max-block-size: ${$(60)};
|
|
2142
2142
|
border-radius: ${$(1)};
|
|
@@ -2155,7 +2155,7 @@
|
|
|
2155
2155
|
`,inner:i.css`
|
|
2156
2156
|
display: flex;
|
|
2157
2157
|
flex-direction: column;
|
|
2158
|
-
`},wa=(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)(er.FloatingPortal,{children:(0,e.jsx)(er.FloatingFocusManager,{context:i,children:(0,e.jsx)("div",Object.assign({css:ja.root,className:s,style:l,ref:o,"data-qlib-status":a},d,{children:(0,e.jsx)("div",{css:ja.inner,children:c})}))})})})),$a=({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,er.useFloating)({open:i,onOpenChange:l,placement:t,middleware:[(0,er.offset)(2)]}),{isMounted:f,status:m}=(0,er.useTransitionStatus)(u,{duration:200}),y=(0,er.useClick)(u),g=(0,er.useDismiss)(u),h=(0,er.useListNavigation)(u,{listRef:s,activeIndex:c,onNavigate:d}),
|
|
2158
|
+
`},wa=(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)(er.FloatingPortal,{children:(0,e.jsx)(er.FloatingFocusManager,{context:i,children:(0,e.jsx)("div",Object.assign({css:ja.root,className:s,style:l,ref:o,"data-qlib-status":a},d,{children:(0,e.jsx)("div",{css:ja.inner,children:c})}))})})})),$a=({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,er.useFloating)({open:i,onOpenChange:l,placement:t,middleware:[(0,er.offset)(2)]}),{isMounted:f,status:m}=(0,er.useTransitionStatus)(u,{duration:200}),y=(0,er.useClick)(u),g=(0,er.useDismiss)(u),h=(0,er.useListNavigation)(u,{listRef:s,activeIndex:c,onNavigate:d}),v=(0,er.useRole)(u,{role:"menu"}),{getReferenceProps:O,getFloatingProps:x,getItemProps:j}=(0,er.useInteractions)([y,g,h,v]),w=(0,r.useMemo)((()=>({setOpen:l,listRef:s,activeIndex:c,getItemProps:j})),[l,s,c,j]);return(0,e.jsxs)(e.Fragment,{children:[null!=o&&(0,r.cloneElement)(o,Object.assign({ref:b.setReference},O())),(0,e.jsx)(wa,Object.assign({className:n,isOpen:i,isMounted:f,status:m,context:u,style:p,ref:b.setFloating},x(),{children:(0,e.jsx)(ha,{value:w,children:qa(a)})}))]})},qa=e=>{let o=-1;return r.Children.map(e,(e=>(0,Pe.isElement)(e)?e.type===xa?(o++,(0,r.cloneElement)(e,{index:o})):e:void 0))};const ka={root:i.css`
|
|
2159
2159
|
margin-inline-end: ${$("gap")};
|
|
2160
2160
|
color: var(--qlib-icon-color);
|
|
2161
2161
|
display: inline;
|
|
@@ -2201,7 +2201,7 @@
|
|
|
2201
2201
|
aspect-ratio: 576 / 512;
|
|
2202
2202
|
overflow: visible;
|
|
2203
2203
|
& >text {
|
|
2204
|
-
font-weight: ${
|
|
2204
|
+
font-weight: ${O("bold")};
|
|
2205
2205
|
}
|
|
2206
2206
|
& >text:nth-of-type(1) {
|
|
2207
2207
|
stroke-width: 32;
|
|
@@ -2313,7 +2313,7 @@
|
|
|
2313
2313
|
}
|
|
2314
2314
|
`},Ka=(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}=Fo("stepper"),{index:d}=(0,r.useContext)(La),{activeIndex:b,count:p}=(0,r.useContext)(Ma),u=d<b?"completed":d===b?"active":"upcoming";return(0,e.jsxs)("div",Object.assign({css:Ga.root,className:a,ref:t},i,{children:[(0,e.jsx)("div",{css:Ga.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:Ga.border,"aria-hidden":!0,"data-visible":d<p-1,"data-highlight":d+1<=b})]}))}));Ka.displayName="StepperNumber";const Qa={root:i.css`
|
|
2315
2315
|
font-size: ${$(4)};
|
|
2316
|
-
font-weight: ${
|
|
2316
|
+
font-weight: ${O("bold")};
|
|
2317
2317
|
`},Wa=(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)(ir,Object.assign({css:Qa.root,className:a,as:t,lineHeight:"normal",ref:o},i,{children:n}))}));Wa.displayName="StepperTitle";const Ja={root:i.css`
|
|
2318
2318
|
inline-size: 100%;
|
|
2319
2319
|
margin-block-end: ${q(-1)};
|
|
@@ -2348,7 +2348,7 @@
|
|
|
2348
2348
|
}
|
|
2349
2349
|
&[data-qlib-active="true"]:not([data-qlib-disabled="true"]) {
|
|
2350
2350
|
--qlib-highlight-color: ${x(e,5)};
|
|
2351
|
-
font-weight: ${
|
|
2351
|
+
font-weight: ${O("bold")};
|
|
2352
2352
|
color: ${x(e,5)};
|
|
2353
2353
|
}
|
|
2354
2354
|
&[data-qlib-disabled="true"] {
|
|
@@ -2448,5 +2448,5 @@
|
|
|
2448
2448
|
`}function gi(e){return i.css`
|
|
2449
2449
|
${(null==e?void 0:e.width)?i.css`inline-size: ${hi(e.width)};`:""}
|
|
2450
2450
|
${(null==e?void 0:e.height)?i.css`block-size: ${hi(e.height)};`:""}
|
|
2451
|
-
`}function hi(e){return"number"==typeof e?$(e):e}ui.displayName="SimpleToast";const
|
|
2451
|
+
`}function hi(e){return"number"==typeof e?$(e):e}ui.displayName="SimpleToast";const vi=()=>{const{open:e,close:o,setDialogSpec:t}=(0,r.useContext)(po);return(0,r.useCallback)((r=>{return n=void 0,a=void 0,l=function*(){const n={element:r(o)};t(n),yield e()},new((i=void 0)||(i=Promise))((function(e,r){function o(e){try{s(l.next(e))}catch(e){r(e)}}function t(e){try{s(l.throw(e))}catch(e){r(e)}}function s(r){var n;r.done?e(r.value):(n=r.value,n instanceof i?n:new i((function(e){e(n)}))).then(o,t)}s((l=l.apply(n,a||[])).next())}));var n,a,i,l}),[e,o,t])},Oi=()=>{const e=(0,r.useContext)(to);if(void 0===e)throw new Error("Not inside `RadioGroup`");const{value:o}=e;return{value:o}},xi=()=>{const{setToastSpecs:e}=(0,r.useContext)(vo);return(0,r.useCallback)((o=>{const t=I()().valueOf().toString(),n={element:(0,r.cloneElement)(o,{key:t,onOpenChange:r=>{r||setTimeout((()=>{e((e=>e.filter((e=>e!==n))))}),200)}})};e((e=>[...e,n]))}),[e])}})();var n=exports;for(var a in t)n[a]=t[a];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
2452
2452
|
//# sourceMappingURL=index.js.map
|