@baton8/general-components 1.2.0-alpha.2 → 1.2.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/badge/badge.d.ts +1 -1
- package/dist/components/atoms/generalIcon/generalIcon.d.ts +1 -1
- package/dist/components/atoms/textarea/textarea.d.ts +1 -1
- package/dist/components/modules/contentHeader/contentTitle.d.ts +1 -1
- package/dist/components/modules/dialog/dialogButton.d.ts +1 -1
- package/dist/components/modules/drawer/drawerButton.d.ts +1 -1
- package/dist/components/modules/tabList/tab.d.ts +3 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/stories/atoms/multiLineText/multiLineText.stories.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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"`
|
|
@@ -42,7 +42,7 @@ export declare const GeneralIcon: import("react").ForwardRefExoticComponent<impo
|
|
|
42
42
|
* アイコンの反転。
|
|
43
43
|
* @defaultValue `"none"`
|
|
44
44
|
*/
|
|
45
|
-
flip?: "
|
|
45
|
+
flip?: "none" | "both" | "horizontal" | "vertical" | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* アイコンの回転角度。
|
|
48
48
|
* @defaultValue `0`
|
|
@@ -23,7 +23,7 @@ export declare const Textarea: import("react").ForwardRefExoticComponent<import(
|
|
|
23
23
|
* リサイズ可能な方向。
|
|
24
24
|
* @defaultValue `"vertical"`
|
|
25
25
|
*/
|
|
26
|
-
resize?: "
|
|
26
|
+
resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* @defaultValue `"off"`
|
|
29
29
|
*/
|
|
@@ -4,7 +4,7 @@ import { ReactNode } from "react";
|
|
|
4
4
|
* @category React コンポーネント
|
|
5
5
|
*/
|
|
6
6
|
export declare const ContentTitle: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
|
|
7
|
-
className?: string | undefined;
|
|
7
|
+
className?: string | undefined;
|
|
8
8
|
id?: string | undefined;
|
|
9
9
|
style?: import("react").CSSProperties | undefined;
|
|
10
10
|
} & {
|
|
@@ -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
|
*
|
|
@@ -5,9 +5,11 @@ import { MouseEvent, ReactNode } from "react";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const Tab: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
|
|
7
7
|
className?: string | undefined;
|
|
8
|
-
id?: string | undefined;
|
|
8
|
+
id?: string | undefined;
|
|
9
9
|
style?: import("react").CSSProperties | undefined;
|
|
10
10
|
} & {
|
|
11
|
+
/** */
|
|
12
|
+
scheme?: "primary" | "secondary" | "blue" | "red" | "green" | "pink" | "yellow" | "purple" | "orange" | "gray" | "gold" | "silver" | "bronze" | undefined;
|
|
11
13
|
/** */
|
|
12
14
|
isActive?: boolean | undefined;
|
|
13
15
|
/** */
|
package/dist/index.js
CHANGED
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
&::before {
|
|
24
24
|
block-size: ${$(0)};
|
|
25
25
|
inline-size: ${$(0)};
|
|
26
|
-
margin-block-start: calc((1em -
|
|
26
|
+
margin-block-start: calc((1em - ${e}) * 0.5 + ${null!=r?r:"0em"});
|
|
27
27
|
display: block;
|
|
28
28
|
content: "";
|
|
29
29
|
}
|
|
30
30
|
&::after {
|
|
31
31
|
block-size: ${$(0)};
|
|
32
32
|
inline-size: ${$(0)};
|
|
33
|
-
margin-block-end: calc((1em -
|
|
33
|
+
margin-block-end: calc((1em - ${e}) * 0.5 + ${null!=r?r:"0em"});
|
|
34
34
|
display: block;
|
|
35
35
|
content: "";
|
|
36
36
|
}
|
|
@@ -1746,7 +1746,7 @@
|
|
|
1746
1746
|
font-size: ${$(8)};
|
|
1747
1747
|
font-weight: ${v("bold")};
|
|
1748
1748
|
color: ${x("primary",7)};
|
|
1749
|
-
`},Xt=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(
|
|
1749
|
+
`},Xt=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)(rr,Object.assign({css:Zt.root,className:n,lineHeight:"normalFixed",ref:o},a,{children:t}))}));Xt.displayName="ContentTitle";const en={root:i.css`
|
|
1750
1750
|
&[data-qlib-digit="3"] {
|
|
1751
1751
|
--qlib-inline-size: ${$(11)};
|
|
1752
1752
|
--qlib-transform-scale: 0.75;
|
|
@@ -2291,7 +2291,7 @@
|
|
|
2291
2291
|
background-color: ${x("white")};
|
|
2292
2292
|
display: flex;
|
|
2293
2293
|
align-items: flex-end;
|
|
2294
|
-
`},Ya=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Va.root,className:n,ref:o},a,{children:t}))}));Ya.displayName="TabList";const Ua=
|
|
2294
|
+
`},Ya=(0,r.forwardRef)(((r,o)=>{var{children:t,className:n}=r,a=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["children","className"]);return(0,e.jsx)("div",Object.assign({css:Va.root,className:n,ref:o},a,{children:t}))}));Ya.displayName="TabList";const Ua=e=>i.css`
|
|
2295
2295
|
padding-block-end: calc(${$(3)} + ${q(4)});
|
|
2296
2296
|
padding-inline: ${$(0)};
|
|
2297
2297
|
color: ${x("gray",5)};
|
|
@@ -2317,11 +2317,11 @@
|
|
|
2317
2317
|
content: "";
|
|
2318
2318
|
}
|
|
2319
2319
|
&[data-active="true"] {
|
|
2320
|
-
--qlib-highlight-color: ${x(
|
|
2320
|
+
--qlib-highlight-color: ${x(e,5)};
|
|
2321
2321
|
font-weight: ${v("bold")};
|
|
2322
|
-
color: ${x(
|
|
2322
|
+
color: ${x(e,5)};
|
|
2323
2323
|
}
|
|
2324
|
-
|
|
2324
|
+
`,_a=(0,r.forwardRef)(((r,o)=>{var{scheme:t="primary",isActive:n=!1,href:a,onClick:i,children:l,className:s}=r,c=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]])}return o}(r,["scheme","isActive","href","onClick","children","className"]);return null!=a?(0,e.jsx)("a",Object.assign({css:Ua(t),className:s,ref:o,href:a,onClick:i,"data-active":n},c,{children:l})):(0,e.jsx)("button",Object.assign({css:Ua(t),className:s,ref:o,onClick:i,"data-active":n},c,{children:l}))}));_a.displayName="Tab";const Ka={root:i.css`
|
|
2325
2325
|
margin-inline-end: ${$("gap")};
|
|
2326
2326
|
display: inline;
|
|
2327
2327
|
flex-grow: 0;
|