@baton8/general-components 1.1.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/badge/badge.d.ts +1 -1
- package/dist/components/atoms/root/root.d.ts +2 -0
- package/dist/components/modules/dialog/dialogButton.d.ts +1 -1
- package/dist/components/modules/drawer/drawerButton.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -21,7 +21,7 @@ export declare const Badge: import("react").ForwardRefExoticComponent<import("..
|
|
|
21
21
|
* 見た目のバリアント。
|
|
22
22
|
* @defaultValue `"solid"`
|
|
23
23
|
*/
|
|
24
|
-
variant?: "
|
|
24
|
+
variant?: "outline" | "solid" | "light" | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* サイズ。
|
|
27
27
|
* @defaultValue `"medium"`
|
|
@@ -13,7 +13,7 @@ export declare const DialogButton: import("react").ForwardRefExoticComponent<imp
|
|
|
13
13
|
* そのダイアログに関するメインの動作を行うボタンには `"submit"` を指定し、それ以外のキャンセルボタンなどには `"cancel"` を指定してください。
|
|
14
14
|
* @defaultValue `"submit"`
|
|
15
15
|
*/
|
|
16
|
-
variant?: "
|
|
16
|
+
variant?: "submit" | "cancel" | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* 無効にするかどうか。
|
|
19
19
|
*
|
|
@@ -13,7 +13,7 @@ export declare const DrawerButton: import("react").ForwardRefExoticComponent<imp
|
|
|
13
13
|
* そのダイアログに関するメインの動作を行うボタンには `"submit"` を指定し、それ以外のキャンセルボタンなどには `"cancel"` を指定してください。
|
|
14
14
|
* @defaultValue `"submit"`
|
|
15
15
|
*/
|
|
16
|
-
variant?: "
|
|
16
|
+
variant?: "submit" | "cancel" | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* 無効にするかどうか。
|
|
19
19
|
*
|
package/dist/index.js
CHANGED
|
@@ -1396,7 +1396,7 @@
|
|
|
1396
1396
|
inline-size: ${$(0)};
|
|
1397
1397
|
opacity: 0;
|
|
1398
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,children:
|
|
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`
|
|
1400
1400
|
font-size: ${$(4.5)};
|
|
1401
1401
|
font-weight: ${v("bold")};
|
|
1402
1402
|
color: ${x("primary",6)};
|