@baton8/general-components 1.2.0-alpha.0 → 1.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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 +1 @@
|
|
|
1
|
-
export declare const defaultGlobalStyle: (rootFontSize: string) => import("@emotion/utils").SerializedStyles;
|
|
1
|
+
export declare const defaultGlobalStyle: (rootFontSize: string, resetAll: boolean) => import("@emotion/utils").SerializedStyles;
|
package/dist/index.js
CHANGED
|
@@ -1338,7 +1338,7 @@
|
|
|
1338
1338
|
row-gap: ${$(2)};
|
|
1339
1339
|
display: flex;
|
|
1340
1340
|
flex-direction: var(--qlib-flex-direction);
|
|
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`
|
|
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,r)=>i.css`
|
|
1342
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");
|
|
1343
1343
|
:root {
|
|
1344
1344
|
--qlib-root-font-size: ${e};
|
|
@@ -1365,8 +1365,7 @@
|
|
|
1365
1365
|
scrollbar-width: thin;
|
|
1366
1366
|
}
|
|
1367
1367
|
*:where(:not(iframe, canvas, img, svg, video):not(svg *):not(.sbdocs *:not(.docs-story *))) {
|
|
1368
|
-
all: unset
|
|
1369
|
-
display: revert;
|
|
1368
|
+
${r?"\n all: unset;\n display: revert;\n ":""}
|
|
1370
1369
|
min-block-size: 0rem;
|
|
1371
1370
|
min-inline-size: 0rem;
|
|
1372
1371
|
background-origin: border-box;
|
|
@@ -1396,7 +1395,7 @@
|
|
|
1396
1395
|
inline-size: ${$(0)};
|
|
1397
1396
|
opacity: 0;
|
|
1398
1397
|
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:
|
|
1398
|
+
`},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,resetCssAll:d=!0,children:b})=>{const p=So(),u=zo(),f=$o(ko),m=jo(t),y=(0,r.useMemo)((()=>({rootFontSize:Oo(t),smartphoneQuery:n})),[t,n]),[g,O]=(0,r.useState)(c);return(0,r.useEffect)((()=>{O(!0)}),[]),(0,r.useEffect)((()=>{const e=go([null!=o?o:{},yo]),r=(0,C.createIntlCache)(),t=(0,C.createIntl)({locale:p,messages:e[p],onError:e=>null},r);ko.next(t)}),[p,o]),(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":s;e&&Lr().setAppElement(e)}),[s]),(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)(i.Global,{styles:to(m,d)}),(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:f,children:(0,e.jsx)(lo,{value:y,children:(0,e.jsx)(fo,{children:(0,e.jsx)(ao,{children:g&&b})})})})]})};const Lo={root:i.css`
|
|
1400
1399
|
font-size: ${$(4.5)};
|
|
1401
1400
|
font-weight: ${v("bold")};
|
|
1402
1401
|
color: ${x("primary",6)};
|