@baton8/general-components 2.0.0 → 2.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.
- package/dist/components/atoms/badge/badge.d.ts +1 -1
- package/dist/components/atoms/root/defaultGlobalStyle.d.ts +11 -1
- package/dist/components/atoms/root/root.d.ts +5 -2
- package/dist/components/modules/countIndicator/countIndicator.d.ts +1 -4
- package/dist/index.js +124 -111
- package/dist/index.js.map +1 -1
- package/dist/stories/modules/drawer/drawer.stories.d.ts +1 -0
- package/dist/utils/translation.d.ts +1 -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"`
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface GlobalCssSetting {
|
|
2
|
+
resetAll?: boolean;
|
|
3
|
+
font?: boolean;
|
|
4
|
+
wrap?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const DEFAULT_GLOBAL_CSS_SETTING: {
|
|
7
|
+
resetAll: true;
|
|
8
|
+
font: true;
|
|
9
|
+
wrap: true;
|
|
10
|
+
};
|
|
11
|
+
export declare const defaultGlobalStyle: (rootFontSize: string, setting: GlobalCssSetting) => import("@emotion/utils").SerializedStyles;
|
|
@@ -3,6 +3,7 @@ import { FunctionComponent, ReactNode } from "react";
|
|
|
3
3
|
import { ColorDefinitions } from "../../../modules/color";
|
|
4
4
|
import { LocalizationMessages } from "../../../modules/message";
|
|
5
5
|
import { ResponsiveValue } from "../../../modules/responsive";
|
|
6
|
+
import { GlobalCssSetting } from "./defaultGlobalStyle";
|
|
6
7
|
type RootProps = {
|
|
7
8
|
/**
|
|
8
9
|
* ローカライズメッセージ。
|
|
@@ -29,6 +30,10 @@ type RootProps = {
|
|
|
29
30
|
* グローバル CSS。
|
|
30
31
|
*/
|
|
31
32
|
globalStyle?: Interpolation<{}>;
|
|
33
|
+
/**
|
|
34
|
+
* デフォルトで適用されるグローバル CSS の設定。
|
|
35
|
+
*/
|
|
36
|
+
globalCssSetting?: GlobalCssSetting;
|
|
32
37
|
/**
|
|
33
38
|
* アプリ全体のルートとなる HTML 要素。
|
|
34
39
|
* モーダルを表示したときにスクリーンリーダーに対してモーダル以外の部分を隠すのに必要となるので、可能な限り指定してください。
|
|
@@ -39,8 +44,6 @@ type RootProps = {
|
|
|
39
44
|
/** */
|
|
40
45
|
defaultReady?: boolean;
|
|
41
46
|
/** */
|
|
42
|
-
resetCssAll?: boolean;
|
|
43
|
-
/** */
|
|
44
47
|
children: ReactNode;
|
|
45
48
|
};
|
|
46
49
|
/**
|
|
@@ -5,10 +5,7 @@ import { ReactNode } from "react";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const CountIndicator: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
|
|
7
7
|
className?: string | undefined;
|
|
8
|
-
id?: string | undefined;
|
|
9
|
-
* 表示する数値。
|
|
10
|
-
* `undefined` の場合は「?」が表示されます。
|
|
11
|
-
*/
|
|
8
|
+
id?: string | undefined;
|
|
12
9
|
style?: import("react").CSSProperties | undefined;
|
|
13
10
|
} & {
|
|
14
11
|
/**
|