@nurihaus/web-design-system 1.2.13 → 1.2.14
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/elements/text/text-type.d.ts +0 -3
- package/dist/components/loading/index.d.ts +6 -0
- package/dist/components/loading/inline-loading/inline-loading-type.d.ts +8 -0
- package/dist/components/loading/inline-loading/inline-loading.d.ts +7 -0
- package/dist/components/loading/inline-loading/inline-loading.stories.d.ts +24 -0
- package/dist/components/loading/overlay-loading/overlay-loading-type.d.ts +8 -0
- package/dist/components/loading/overlay-loading/overlay-loading.d.ts +7 -0
- package/dist/components/loading/overlay-loading/overlay-loading.stories.d.ts +33 -0
- package/dist/components/loading/spinner/spinner-type.d.ts +4 -0
- package/dist/components/loading/spinner/spinner.d.ts +6 -0
- package/dist/components/loading/spinner/spinner.stories.d.ts +18 -0
- package/dist/components/table/data-table.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +322 -105
- package/package.json +9 -8
- package/styles/align-items.css +19 -0
- package/styles/display.css +31 -0
- package/styles/flex-direction.css +15 -0
- package/styles/justify-content.css +23 -0
- package/styles/overflow.css +47 -0
- package/styles/position.css +19 -0
- package/styles/reset.css +47 -0
- package/styles/token/color.css +38 -0
- package/styles/token/colors.ts +30 -0
- package/styles/token/cursor.css +5 -0
- package/styles/token/font.css +38 -0
- package/styles/token/radius.css +6 -0
- package/styles/token/space.css +13 -0
- package/dist/components/elements/text/text-with-bold.d.ts +0 -2
- package/dist/components/loading/loading-type.d.ts +0 -3
- package/dist/components/loading/loading.d.ts +0 -4
|
@@ -11,6 +11,3 @@ export interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
|
11
11
|
whiteSpace?: CSSProperties["whiteSpace"];
|
|
12
12
|
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "strong";
|
|
13
13
|
}
|
|
14
|
-
export interface TextWithBoldProps extends TextProps {
|
|
15
|
-
boldText: string;
|
|
16
|
-
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Spinner } from "./spinner/spinner";
|
|
2
|
+
export { default as InlineLoading } from "./inline-loading/inline-loading";
|
|
3
|
+
export { default as OverlayLoading } from "./overlay-loading/overlay-loading";
|
|
4
|
+
export type { SpinnerProps } from "./spinner/spinner-type";
|
|
5
|
+
export type { InlineLoadingProps } from "./inline-loading/inline-loading-type";
|
|
6
|
+
export type { OverlayLoadingProps } from "./overlay-loading/overlay-loading-type";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { colors } from "../../../styles/token/colors";
|
|
2
|
+
type Justify = "flex-start" | "center" | "flex-end" | "space-between";
|
|
3
|
+
export interface InlineLoadingProps {
|
|
4
|
+
size: number;
|
|
5
|
+
justifyContent?: Justify;
|
|
6
|
+
indicatorColor?: keyof typeof colors;
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "../spinner/spinner-style.css";
|
|
2
|
+
import "./inline-loading-style.css";
|
|
3
|
+
import "../../../styles/token/color.css";
|
|
4
|
+
import "../../../styles/token/font.css";
|
|
5
|
+
import { InlineLoadingProps } from "./inline-loading-type";
|
|
6
|
+
declare const InlineLoading: ({ size, justifyContent, indicatorColor, }: InlineLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default InlineLoading;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ size, justifyContent, indicatorColor, }: import("./inline-loading-type").InlineLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
argTypes: {
|
|
7
|
+
justifyContent: {
|
|
8
|
+
control: "inline-radio";
|
|
9
|
+
options: string[];
|
|
10
|
+
};
|
|
11
|
+
indicatorColor: {
|
|
12
|
+
control: "select";
|
|
13
|
+
options: string[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
args: {
|
|
17
|
+
size: number;
|
|
18
|
+
justifyContent: "flex-start";
|
|
19
|
+
indicatorColor: "grayE4";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
type Story = StoryObj<typeof meta>;
|
|
24
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./overlay-loading-style.css";
|
|
2
|
+
import "../../../styles/token/color.css";
|
|
3
|
+
import "../../../styles/token/font.css";
|
|
4
|
+
import type { OverlayLoadingProps } from "./overlay-loading-type";
|
|
5
|
+
declare const OverlayLoading: ({ open, message, spinnerColor, backdropOpacity, zIndex, }: OverlayLoadingProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
export default OverlayLoading;
|
|
7
|
+
export type { OverlayLoadingProps };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ open, message, spinnerColor, backdropOpacity, zIndex, }: import("./overlay-loading-type").OverlayLoadingProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
tags: string[];
|
|
6
|
+
argTypes: {
|
|
7
|
+
spinnerColor: {
|
|
8
|
+
control: "select";
|
|
9
|
+
options: string[];
|
|
10
|
+
};
|
|
11
|
+
backdropOpacity: {
|
|
12
|
+
control: {
|
|
13
|
+
type: "range";
|
|
14
|
+
min: number;
|
|
15
|
+
max: number;
|
|
16
|
+
step: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
zIndex: {
|
|
20
|
+
control: "number";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
args: {
|
|
24
|
+
open: true;
|
|
25
|
+
message: string;
|
|
26
|
+
spinnerColor: "grayE4";
|
|
27
|
+
backdropOpacity: number;
|
|
28
|
+
zIndex: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export default meta;
|
|
32
|
+
type Story = StoryObj<typeof meta>;
|
|
33
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "./spinner-style.css";
|
|
2
|
+
import "../../../styles/token/color.css";
|
|
3
|
+
import "../../../styles/token/font.css";
|
|
4
|
+
import { SpinnerProps } from "./spinner-type";
|
|
5
|
+
declare const Spinner: ({ color }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default Spinner;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ color }: import("./spinner-type").SpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
argTypes: {
|
|
7
|
+
color: {
|
|
8
|
+
control: "select";
|
|
9
|
+
options: string[];
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
args: {
|
|
13
|
+
color: "grayE4";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<typeof meta>;
|
|
18
|
+
export declare const Default: Story;
|
|
@@ -13,7 +13,7 @@ type ColumnsType<T extends readonly RowItem[]> = Array<{
|
|
|
13
13
|
};
|
|
14
14
|
}>;
|
|
15
15
|
export interface DataTableProps<T extends readonly RowItem[]> {
|
|
16
|
-
header
|
|
16
|
+
header: TableHeaderProps;
|
|
17
17
|
rows: T;
|
|
18
18
|
columns: ColumnsType<T>;
|
|
19
19
|
fixedRowsIndex?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,4 +9,5 @@ export { default as TextFieldWithError } from "./components/text-field/text-fiel
|
|
|
9
9
|
export { default as Radio } from "./components/radio/radio";
|
|
10
10
|
export { default as Checkbox } from "./components/check-box/check-box";
|
|
11
11
|
export { default as Text } from "./components/elements/text/text";
|
|
12
|
+
export { Spinner, InlineLoading, OverlayLoading } from "./components/loading";
|
|
12
13
|
export { colors } from "./styles/token/colors";
|