@nulogy/components 13.5.1 → 14.1.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/LICENSE.md +1 -1
- package/README.md +7 -7
- package/dist/main.js +6269 -5010
- package/dist/main.module.js +6278 -5020
- package/dist/src/BottomSheet/BottomSheet.parts.d.ts +4 -2
- package/dist/src/BottomSheet/BottomSheet.styled.d.ts +11 -9
- package/dist/src/DescriptionList/DescriptionList.d.ts +3 -6
- package/dist/src/DescriptionList/DescriptionList.parts.d.ts +14 -0
- package/dist/src/DescriptionList/DescriptionListContext.d.ts +16 -10
- package/dist/src/DescriptionList/index.d.ts +5 -4
- package/dist/src/DescriptionList/lib/types.d.ts +26 -0
- package/dist/src/DescriptionList/lib/utils.d.ts +5 -0
- package/dist/src/DescriptionList/stories/DescriptionList.column.story.d.ts +17 -0
- package/dist/src/DescriptionList/stories/DescriptionList.group-min-width.story.d.ts +9 -0
- package/dist/src/DescriptionList/stories/DescriptionList.layout.story.d.ts +17 -0
- package/dist/src/DescriptionList/stories/DescriptionList.playground.story.d.ts +9 -0
- package/dist/src/DescriptionList/stories/DescriptionList.sizing.story.d.ts +10 -0
- package/dist/src/DescriptionList/stories/DescriptionList.spanning.story.d.ts +10 -0
- package/dist/src/DescriptionList/stories/DescriptionList.story.d.ts +8 -0
- package/dist/src/DescriptionList/stories/fixtures.d.ts +17 -0
- package/dist/src/DropdownMenu/DropdownText.d.ts +2 -1
- package/dist/src/FieldLabel/HelpText.d.ts +2 -1
- package/dist/src/Layout/Sidebar.d.ts +1 -1
- package/dist/src/TopBar/TopBar.styled.d.ts +3 -3
- package/dist/src/TopBar/components/MenuItemLink.d.ts +1 -2
- package/dist/src/TopBar/index.d.ts +1 -0
- package/dist/src/Type/Headings.d.ts +8 -4
- package/dist/src/Type/Text.d.ts +1 -0
- package/dist/src/index.d.ts +3 -1
- package/dist/src/theme/theme.type.d.ts +1 -1
- package/dist/src/utils/story/code.d.ts +8 -0
- package/dist/src/utils/story/resizable.d.ts +25 -0
- package/package.json +7 -5
- package/dist/src/DescriptionList/DescriptionDetails.d.ts +0 -2
- package/dist/src/DescriptionList/DescriptionList.story.d.ts +0 -14
- package/dist/src/DescriptionList/DescriptionTerm.d.ts +0 -2
|
@@ -23,9 +23,10 @@ export declare const BottomSheetParts: {
|
|
|
23
23
|
Sheet: typeof SheetPart;
|
|
24
24
|
ContentContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
25
25
|
Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
26
|
-
Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "inline" | "disabled" | keyof React.HTMLAttributes<HTMLParagraphElement> | "textTransform" | keyof import("..").StyledProps> & React.HTMLAttributes<HTMLParagraphElement> & {
|
|
26
|
+
Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "inline" | "compact" | "disabled" | keyof React.HTMLAttributes<HTMLParagraphElement> | "textTransform" | keyof import("..").StyledProps> & React.HTMLAttributes<HTMLParagraphElement> & {
|
|
27
27
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
28
28
|
inline?: boolean;
|
|
29
|
+
compact?: boolean;
|
|
29
30
|
disabled?: boolean;
|
|
30
31
|
textTransform?: "initial" | "-moz-initial" | "inherit" | "revert" | "unset" | "none" | "full-width" | "capitalize" | "full-size-kana" | "lowercase" | "uppercase";
|
|
31
32
|
fontSize?: string;
|
|
@@ -34,9 +35,10 @@ export declare const BottomSheetParts: {
|
|
|
34
35
|
}, Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
35
36
|
ref?: React.Ref<HTMLHeadingElement>;
|
|
36
37
|
}>, never>, never>, never>> & string;
|
|
37
|
-
HelpText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "inline" | "disabled" | keyof React.HTMLAttributes<HTMLParagraphElement> | "textTransform" | keyof import("..").StyledProps> & React.HTMLAttributes<HTMLParagraphElement> & {
|
|
38
|
+
HelpText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "inline" | "compact" | "disabled" | keyof React.HTMLAttributes<HTMLParagraphElement> | "textTransform" | keyof import("..").StyledProps> & React.HTMLAttributes<HTMLParagraphElement> & {
|
|
38
39
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
39
40
|
inline?: boolean;
|
|
41
|
+
compact?: boolean;
|
|
40
42
|
disabled?: boolean;
|
|
41
43
|
textTransform?: "initial" | "-moz-initial" | "inherit" | "revert" | "unset" | "none" | "full-width" | "capitalize" | "full-size-kana" | "lowercase" | "uppercase";
|
|
42
44
|
fontSize?: string;
|
|
@@ -6,28 +6,29 @@ declare const Overlay: import("styled-components/dist/types").IStyledComponentBa
|
|
|
6
6
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
7
7
|
}, "as" | keyof import("@reach/dialog/dist/declarations/src").DialogOverlayProps> & import("@reach/dialog/dist/declarations/src").DialogOverlayProps & {
|
|
8
8
|
as?: "div";
|
|
9
|
-
} & import("framer-motion").MotionProps, "ref"> & import("react").RefAttributes<HTMLElement | SVGElement>, never>> & string & Omit<import("framer-motion").CustomDomComponent<
|
|
9
|
+
} & import("framer-motion").MotionProps, "ref"> & import("react").RefAttributes<HTMLElement | SVGElement>, never>> & string & Omit<import("framer-motion").CustomDomComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
10
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
11
|
-
}, import("@reach/dialog/dist/declarations/src").DialogOverlayProps & {
|
|
11
|
+
}, "as" | keyof import("@reach/dialog/dist/declarations/src").DialogOverlayProps> & import("@reach/dialog/dist/declarations/src").DialogOverlayProps & {
|
|
12
12
|
as?: "div";
|
|
13
|
-
}
|
|
13
|
+
}>, keyof import("react").Component<any, {}, any>>;
|
|
14
14
|
interface SheetProps extends DialogContentProps, AnimationProps, WidthProps, MaxWidthProps, HeightProps, MaxHeightProps, SpaceProps, LayoutProps {
|
|
15
15
|
}
|
|
16
16
|
declare const Sheet: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
17
17
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
18
|
-
}, "as" | "children"> &
|
|
18
|
+
}, "as" | "children"> & {
|
|
19
19
|
as?: "div";
|
|
20
|
-
} & import("framer-motion").MotionProps, "ref"> & import("react").RefAttributes<HTMLElement | SVGElement>, SheetProps>> & string & Omit<import("framer-motion").CustomDomComponent<
|
|
20
|
+
} & import("framer-motion").MotionProps, "ref"> & import("react").RefAttributes<HTMLElement | SVGElement>, SheetProps>> & string & Omit<import("framer-motion").CustomDomComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
21
21
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
22
|
-
},
|
|
22
|
+
}, "as" | "children"> & {
|
|
23
23
|
as?: "div";
|
|
24
|
-
}
|
|
24
|
+
}>, keyof import("react").Component<any, {}, any>>;
|
|
25
25
|
declare const ContentContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
26
26
|
declare const Footer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
27
27
|
declare const Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
28
|
-
declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" | "inline" | "disabled" | keyof import("react").HTMLAttributes<HTMLParagraphElement> | keyof import("../StyledProps").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
28
|
+
declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" | "inline" | "compact" | "disabled" | keyof import("react").HTMLAttributes<HTMLParagraphElement> | keyof import("../StyledProps").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
29
29
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
30
30
|
inline?: boolean;
|
|
31
|
+
compact?: boolean;
|
|
31
32
|
disabled?: boolean;
|
|
32
33
|
textTransform?: "initial" | "inherit" | "-moz-initial" | "revert" | "unset" | "none" | "full-width" | "capitalize" | "full-size-kana" | "lowercase" | "uppercase";
|
|
33
34
|
fontSize?: string;
|
|
@@ -36,9 +37,10 @@ declare const Title: import("styled-components/dist/types").IStyledComponentBase
|
|
|
36
37
|
}, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
37
38
|
ref?: import("react").Ref<HTMLHeadingElement>;
|
|
38
39
|
}>, never>, never>, never>> & string;
|
|
39
|
-
declare const HelpText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" | "inline" | "disabled" | keyof import("react").HTMLAttributes<HTMLParagraphElement> | keyof import("../StyledProps").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
40
|
+
declare const HelpText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "textTransform" | "inline" | "compact" | "disabled" | keyof import("react").HTMLAttributes<HTMLParagraphElement> | keyof import("../StyledProps").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
40
41
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
41
42
|
inline?: boolean;
|
|
43
|
+
compact?: boolean;
|
|
42
44
|
disabled?: boolean;
|
|
43
45
|
textTransform?: "initial" | "inherit" | "-moz-initial" | "revert" | "unset" | "none" | "full-width" | "capitalize" | "full-size-kana" | "lowercase" | "uppercase";
|
|
44
46
|
fontSize?: string;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
export declare function DescriptionList({ descriptionTermMaxWidth, layout, showDivider, density, fontSize, lineHeight, autoLayoutBreakpoint, children, }: Props): React.JSX.Element;
|
|
5
|
-
export declare const DescriptionListContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
-
export declare const StyledDescriptionList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDListElement>, HTMLDListElement>, never>> & string;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DescriptionListProps } from "./lib/types";
|
|
3
|
+
export default function DescriptionList({ descriptionTermMaxWidth, layout, autoLayoutBreakpoint, showDivider, density, fontSize, lineHeight, children, ...props }: DescriptionListProps): React.JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseDescriptionListProps, Columns, GroupMinWidth } from "./lib/types";
|
|
3
|
+
export type DescriptionListPartsProps = BaseDescriptionListProps & {
|
|
4
|
+
columns?: Columns;
|
|
5
|
+
groupMinWidth?: GroupMinWidth;
|
|
6
|
+
};
|
|
7
|
+
export declare const DescriptionListContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const DescriptionList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDListElement>, HTMLDListElement>, never>> & string;
|
|
9
|
+
export declare const DescriptionGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
10
|
+
rowSpan?: number;
|
|
11
|
+
columnSpan?: number;
|
|
12
|
+
}>> & string;
|
|
13
|
+
export declare const DescriptionTerm: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
14
|
+
export declare const DescriptionDetails: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from "react";
|
|
2
|
+
import { Breakpoints } from "../theme/theme.type";
|
|
2
3
|
import { DefaultNDSThemeType } from "../theme";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
import { Density } from "./lib/types";
|
|
5
|
+
import { Layout } from "./lib/types";
|
|
6
|
+
interface DescriptionListContextProps {
|
|
7
|
+
descriptionTermMaxWidth: string;
|
|
8
|
+
layout: Layout;
|
|
9
|
+
autoLayoutBreakpoint: string;
|
|
10
|
+
showDivider: boolean;
|
|
11
|
+
density: Density;
|
|
12
|
+
fontSize: keyof DefaultNDSThemeType["fontSizes"];
|
|
13
|
+
lineHeight: keyof DefaultNDSThemeType["lineHeights"];
|
|
14
|
+
columns?: number | Partial<Record<keyof Breakpoints, number>>;
|
|
15
|
+
groupMinWidth?: string;
|
|
11
16
|
}
|
|
12
|
-
export declare const
|
|
13
|
-
export declare
|
|
17
|
+
export declare const DescriptionListProvider: ({ children, ...contextProps }: PropsWithChildren<DescriptionListContextProps>) => React.JSX.Element;
|
|
18
|
+
export declare const useDescriptionListContext: () => DescriptionListContextProps;
|
|
19
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export { DescriptionList } from "./DescriptionList";
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
1
|
+
export type { DescriptionListProps } from "./lib/types";
|
|
2
|
+
export { default as DescriptionList } from "./DescriptionList";
|
|
3
|
+
export { DescriptionGroup } from "./DescriptionList.parts";
|
|
4
|
+
export { DescriptionTerm } from "./DescriptionList.parts";
|
|
5
|
+
export { DescriptionDetails } from "./DescriptionList.parts";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DefaultNDSThemeType } from "../../theme";
|
|
3
|
+
import { Breakpoints } from "../../theme/theme.type";
|
|
4
|
+
export type Density = "medium" | "compact" | "relaxed";
|
|
5
|
+
export type Layout = "stacked" | "inline" | "auto";
|
|
6
|
+
export type Columns = number | Partial<Record<keyof Breakpoints, number>>;
|
|
7
|
+
export type GroupMinWidth = string;
|
|
8
|
+
export interface BaseDescriptionListProps {
|
|
9
|
+
descriptionTermMaxWidth?: string;
|
|
10
|
+
layout?: Layout;
|
|
11
|
+
autoLayoutBreakpoint?: string;
|
|
12
|
+
showDivider?: boolean;
|
|
13
|
+
density?: Density;
|
|
14
|
+
fontSize?: keyof DefaultNDSThemeType["fontSizes"];
|
|
15
|
+
lineHeight?: keyof DefaultNDSThemeType["lineHeights"];
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export type DescriptionListWithColumns = BaseDescriptionListProps & {
|
|
19
|
+
columns?: Columns;
|
|
20
|
+
groupMinWidth?: never;
|
|
21
|
+
};
|
|
22
|
+
export type DescriptionListWithGroupMinWidth = BaseDescriptionListProps & {
|
|
23
|
+
groupMinWidth?: GroupMinWidth;
|
|
24
|
+
columns?: never;
|
|
25
|
+
};
|
|
26
|
+
export type DescriptionListProps = DescriptionListWithColumns | DescriptionListWithGroupMinWidth;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DescriptionList from "../DescriptionList";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof DescriptionList;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const TwoColumns: () => React.JSX.Element;
|
|
9
|
+
export declare const ThreeColumns: () => React.JSX.Element;
|
|
10
|
+
export declare const ResponsiveColumns: {
|
|
11
|
+
(): React.JSX.Element;
|
|
12
|
+
parameters: {
|
|
13
|
+
chromatic: {
|
|
14
|
+
viewports: number[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DescriptionList from "../DescriptionList";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof DescriptionList;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Inline: () => React.JSX.Element;
|
|
9
|
+
export declare const Stacked: () => React.JSX.Element;
|
|
10
|
+
export declare const Auto: {
|
|
11
|
+
(): React.JSX.Element;
|
|
12
|
+
parameters: {
|
|
13
|
+
chromatic: {
|
|
14
|
+
viewports: number[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DescriptionList from "../DescriptionList";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof DescriptionList;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Density: () => React.JSX.Element;
|
|
9
|
+
export declare const FontSize: () => React.JSX.Element;
|
|
10
|
+
export declare const LineHeight: () => React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DescriptionList from "../DescriptionList";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof DescriptionList;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const ColumnSpanning: () => React.JSX.Element;
|
|
9
|
+
export declare const RowSpanning: () => React.JSX.Element;
|
|
10
|
+
export declare const ColumnAndRowSpanning: () => React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import DescriptionList from "../DescriptionList";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: typeof DescriptionList;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export { GroupMinWidth } from "./DescriptionList.group-min-width.story";
|
|
8
|
+
export { Playground } from "./DescriptionList.playground.story";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const OutlinedDt: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, never>, "ref"> & {
|
|
3
|
+
ref?: React.Ref<HTMLElement>;
|
|
4
|
+
}, {
|
|
5
|
+
$outlined: boolean;
|
|
6
|
+
$highlighted?: boolean;
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const OutlinedDd: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, never>, "ref"> & {
|
|
9
|
+
ref?: React.Ref<HTMLElement>;
|
|
10
|
+
}, {
|
|
11
|
+
$outlined: boolean;
|
|
12
|
+
$highlighted?: boolean;
|
|
13
|
+
}>> & string;
|
|
14
|
+
export declare const DashedBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<(Record<string, unknown> & {
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}) | (Omit<Record<string, unknown>, "ref"> & React.RefAttributes<React.Component<Record<string, unknown>, any, any>>), import("styled-components/dist/types").BaseObject>> & string & (Omit<React.ComponentClass<Record<string, unknown>, any>, keyof React.Component<any, {}, any>> | Omit<React.FunctionComponent<Record<string, unknown>>, keyof React.Component<any, {}, any>>);
|
|
17
|
+
export declare const SampleContent: () => React.JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { TextProps } from "../Type";
|
|
3
|
-
declare const DropdownText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("react").HTMLAttributes<HTMLParagraphElement> | "inline" | "disabled" | "textTransform" | keyof import("../StyledProps").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
3
|
+
declare const DropdownText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("react").HTMLAttributes<HTMLParagraphElement> | "inline" | "compact" | "disabled" | "textTransform" | keyof import("../StyledProps").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
4
4
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
5
5
|
inline?: boolean;
|
|
6
|
+
compact?: boolean;
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
8
9
|
fontSize?: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const HelpText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("react").HTMLAttributes<HTMLParagraphElement> | "inline" | "disabled" | "textTransform" | keyof import("..").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
2
|
+
declare const HelpText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("react").HTMLAttributes<HTMLParagraphElement> | "inline" | "compact" | "disabled" | "textTransform" | keyof import("..").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
3
3
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
4
4
|
inline?: boolean;
|
|
5
|
+
compact?: boolean;
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
7
8
|
fontSize?: string;
|
|
@@ -14,7 +14,7 @@ export type SidebarProps = Omit<AnimatedBoxProps, "width"> & {
|
|
|
14
14
|
triggerRef?: RefObject<HTMLInputElement | HTMLButtonElement>;
|
|
15
15
|
duration?: number;
|
|
16
16
|
closeOnOutsideClick?: boolean;
|
|
17
|
-
overlay?: boolean;
|
|
17
|
+
overlay?: boolean | "show" | "hide" | "transparent";
|
|
18
18
|
disableScroll?: boolean;
|
|
19
19
|
hideCloseButton?: boolean;
|
|
20
20
|
width?: SidebarWidth;
|
|
@@ -14,11 +14,11 @@ declare const Overlay: import("styled-components/dist/types").IStyledComponentBa
|
|
|
14
14
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
15
15
|
}, "as" | keyof import("@reach/dialog/dist/declarations/src").DialogOverlayProps> & import("@reach/dialog/dist/declarations/src").DialogOverlayProps & {
|
|
16
16
|
as?: "div";
|
|
17
|
-
} & import("framer-motion").MotionProps, "ref"> & import("react").RefAttributes<HTMLElement | SVGElement>, never>> & string & Omit<import("framer-motion").CustomDomComponent<
|
|
17
|
+
} & import("framer-motion").MotionProps, "ref"> & import("react").RefAttributes<HTMLElement | SVGElement>, never>> & string & Omit<import("framer-motion").CustomDomComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
18
18
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
19
|
-
}, import("@reach/dialog/dist/declarations/src").DialogOverlayProps & {
|
|
19
|
+
}, "as" | keyof import("@reach/dialog/dist/declarations/src").DialogOverlayProps> & import("@reach/dialog/dist/declarations/src").DialogOverlayProps & {
|
|
20
20
|
as?: "div";
|
|
21
|
-
}
|
|
21
|
+
}>, keyof import("react").Component<any, {}, any>>;
|
|
22
22
|
declare const TileLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
|
|
23
23
|
declare const StyledMenuItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<{
|
|
24
24
|
defaultChecked?: boolean;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { IconName } from "@nulogy/icons";
|
|
2
2
|
import React, { ComponentProps } from "react";
|
|
3
3
|
import { TileLink } from "../TopBar.styled";
|
|
4
|
-
interface MenuItemLinkProps extends ComponentProps<typeof TileLink> {
|
|
4
|
+
export interface MenuItemLinkProps extends ComponentProps<typeof TileLink> {
|
|
5
5
|
title: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
icon: IconName;
|
|
8
8
|
}
|
|
9
9
|
export declare function MenuItemLink({ description, title, icon, ...props }: MenuItemLinkProps): React.JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextProps } from "./Text";
|
|
3
|
-
export declare const Heading1: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("react").HTMLAttributes<HTMLParagraphElement> | "inline" | "disabled" | "textTransform" | keyof import("../StyledProps").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
3
|
+
export declare const Heading1: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("react").HTMLAttributes<HTMLParagraphElement> | "inline" | "compact" | "disabled" | "textTransform" | keyof import("../StyledProps").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
4
4
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
5
5
|
inline?: boolean;
|
|
6
|
+
compact?: boolean;
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
8
9
|
fontSize?: string;
|
|
@@ -11,9 +12,10 @@ export declare const Heading1: import("styled-components/dist/types").IStyledCom
|
|
|
11
12
|
}, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
12
13
|
ref?: import("react").Ref<HTMLHeadingElement>;
|
|
13
14
|
}>, never>, TextProps>> & string;
|
|
14
|
-
export declare const Heading2: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("react").HTMLAttributes<HTMLParagraphElement> | "inline" | "disabled" | "textTransform" | keyof import("../StyledProps").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
15
|
+
export declare const Heading2: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("react").HTMLAttributes<HTMLParagraphElement> | "inline" | "compact" | "disabled" | "textTransform" | keyof import("../StyledProps").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
15
16
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
16
17
|
inline?: boolean;
|
|
18
|
+
compact?: boolean;
|
|
17
19
|
disabled?: boolean;
|
|
18
20
|
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
19
21
|
fontSize?: string;
|
|
@@ -22,9 +24,10 @@ export declare const Heading2: import("styled-components/dist/types").IStyledCom
|
|
|
22
24
|
}, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
23
25
|
ref?: import("react").Ref<HTMLHeadingElement>;
|
|
24
26
|
}>, never>, never>> & string;
|
|
25
|
-
export declare const Heading3: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("react").HTMLAttributes<HTMLParagraphElement> | "inline" | "disabled" | "textTransform" | keyof import("../StyledProps").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
27
|
+
export declare const Heading3: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("react").HTMLAttributes<HTMLParagraphElement> | "inline" | "compact" | "disabled" | "textTransform" | keyof import("../StyledProps").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
26
28
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
27
29
|
inline?: boolean;
|
|
30
|
+
compact?: boolean;
|
|
28
31
|
disabled?: boolean;
|
|
29
32
|
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
30
33
|
fontSize?: string;
|
|
@@ -33,9 +36,10 @@ export declare const Heading3: import("styled-components/dist/types").IStyledCom
|
|
|
33
36
|
}, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
34
37
|
ref?: import("react").Ref<HTMLHeadingElement>;
|
|
35
38
|
}>, never>, never>> & string;
|
|
36
|
-
export declare const Heading4: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("react").HTMLAttributes<HTMLParagraphElement> | "inline" | "disabled" | "textTransform" | keyof import("../StyledProps").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
39
|
+
export declare const Heading4: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("react").HTMLAttributes<HTMLParagraphElement> | "inline" | "compact" | "disabled" | "textTransform" | keyof import("../StyledProps").StyledProps> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
37
40
|
variant?: import("../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
38
41
|
inline?: boolean;
|
|
42
|
+
compact?: boolean;
|
|
39
43
|
disabled?: boolean;
|
|
40
44
|
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
41
45
|
fontSize?: string;
|
package/dist/src/Type/Text.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { StyledProps } from "../StyledProps";
|
|
|
4
4
|
export type TextProps = React.HTMLAttributes<HTMLParagraphElement> & {
|
|
5
5
|
variant?: ComponentVariant;
|
|
6
6
|
inline?: boolean;
|
|
7
|
+
compact?: boolean;
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
textTransform?: "none" | "inherit" | "initial" | "-moz-initial" | "revert" | "unset" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase" | undefined;
|
|
9
10
|
fontSize?: string;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -15,7 +15,8 @@ export { Card, CardSet } from "./Card";
|
|
|
15
15
|
export { Checkbox, CheckboxGroup } from "./Checkbox";
|
|
16
16
|
export { DatePicker, MonthPicker, WeekPicker } from "./DatePickers";
|
|
17
17
|
export { DateRange } from "./DateRange";
|
|
18
|
-
export { DescriptionDetails,
|
|
18
|
+
export { DescriptionList, DescriptionDetails, DescriptionGroup, DescriptionTerm } from "./DescriptionList";
|
|
19
|
+
export type { DescriptionListProps } from "./DescriptionList";
|
|
19
20
|
export { Divider } from "./Divider";
|
|
20
21
|
export { DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText } from "./DropdownMenu";
|
|
21
22
|
export { FieldLabel, HelpText, RequirementText } from "./FieldLabel";
|
|
@@ -56,6 +57,7 @@ export { toast, ToastContainer } from "./ToastContainer";
|
|
|
56
57
|
export { Toggle } from "./Toggle";
|
|
57
58
|
export { Tooltip } from "./Tooltip";
|
|
58
59
|
export { TopBar } from "./TopBar";
|
|
60
|
+
export type { MenuItemLinkProps } from "./TopBar";
|
|
59
61
|
export { TruncatedText } from "./TruncatedText";
|
|
60
62
|
export { Heading1, Heading2, Heading3, Heading4, Text } from "./Type";
|
|
61
63
|
export type { TextProps } from "./Type";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* A styled component for displaying code in a storybook.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* <Code>const code = "console.log('Hello, world!');";</Code>
|
|
7
|
+
*/
|
|
8
|
+
export declare const Code: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ResizableProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
containerWidth?: string;
|
|
5
|
+
onResize?: (width: number) => void;
|
|
6
|
+
showContainerOutline?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const Resizable: ({ children, containerWidth, onResize, showContainerOutline, }: ResizableProps) => React.JSX.Element;
|
|
9
|
+
export declare const WidthText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "compact" | "inline" | "disabled" | "textTransform" | keyof React.HTMLAttributes<HTMLParagraphElement> | keyof import("../..").StyledProps> & React.HTMLAttributes<HTMLParagraphElement> & {
|
|
10
|
+
variant?: import("../../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
11
|
+
inline?: boolean;
|
|
12
|
+
compact?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "full-width" | "capitalize" | "full-size-kana" | "lowercase" | "uppercase";
|
|
15
|
+
fontSize?: string;
|
|
16
|
+
} & import("../..").StyledProps & import("framer-motion").MotionProps, "ref"> & React.RefAttributes<HTMLElement | SVGElement>, never>> & string & Omit<import("framer-motion").CustomDomComponent<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "compact" | "inline" | "disabled" | "textTransform" | keyof React.HTMLAttributes<HTMLParagraphElement> | keyof import("../..").StyledProps> & React.HTMLAttributes<HTMLParagraphElement> & {
|
|
17
|
+
variant?: import("../../NDSProvider/ComponentVariantContext").ComponentVariant;
|
|
18
|
+
inline?: boolean;
|
|
19
|
+
compact?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "full-width" | "capitalize" | "full-size-kana" | "lowercase" | "uppercase";
|
|
22
|
+
fontSize?: string;
|
|
23
|
+
} & import("../..").StyledProps>, keyof React.Component<any, {}, any>>;
|
|
24
|
+
export declare const ResizeHandle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
25
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.1.0",
|
|
4
4
|
"description": "Component library for the Nulogy Design System - http://nulogy.design",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -10,17 +10,18 @@
|
|
|
10
10
|
"ci": "yarn && yarn build && yarn test && yarn run check",
|
|
11
11
|
"new": "plop",
|
|
12
12
|
"generate:theme": "npx tsx src/scripts/generateTheme.ts && prettier -w src/theme/theme.ts",
|
|
13
|
-
"start": "concurrently \"yarn build
|
|
13
|
+
"start": "concurrently \"yarn build:watch\" \"yarn start:storybook\"",
|
|
14
14
|
"start:cypress": "yarn concurrently --kill-others \"yarn start --ci\" \"yarn wait-on http://localhost:9999 && cypress open\"",
|
|
15
15
|
"start:storybook": "start-storybook -p 9999",
|
|
16
16
|
"clean:storybook": "rm -rf node_modules/.cache/storybook && rm -rf ./storybook-static",
|
|
17
17
|
"build": "rollup -c",
|
|
18
|
+
"build:watch": "rollup -c --watch",
|
|
18
19
|
"build:storybook": "build-storybook",
|
|
19
20
|
"warn:prepush": "echo \"Make sure you also run all the other CI steps before pushing by running 'yarn ci'\"",
|
|
20
21
|
"check": "yarn warn:prepush && yarn check:types && yarn check:lint && yarn check:format",
|
|
21
22
|
"check:types": "tsc && cd cypress && tsc --noEmit",
|
|
22
23
|
"check:lint": "eslint --config ./.eslintrc .'*/**/*.{js,ts,tsx}'",
|
|
23
|
-
"check:format": "prettier -c .",
|
|
24
|
+
"check:format": "prettier -c --ignore-path .prettierignore-check .",
|
|
24
25
|
"fix": "yarn fix:lint && yarn fix:format",
|
|
25
26
|
"fix:lint": "yarn check:lint --fix",
|
|
26
27
|
"fix:format": "prettier -w .",
|
|
@@ -87,7 +88,6 @@
|
|
|
87
88
|
"@storybook/addon-toolbars": "^6.1.9",
|
|
88
89
|
"@storybook/addon-viewport": "^6.1.9",
|
|
89
90
|
"@storybook/codemod": "^6.1.9",
|
|
90
|
-
"@storybook/react": "^6.3.12",
|
|
91
91
|
"@storybook/theming": "^6.1.9",
|
|
92
92
|
"@testing-library/jest-dom": "5.11.5",
|
|
93
93
|
"@testing-library/react": "^12.1.5",
|
|
@@ -128,6 +128,7 @@
|
|
|
128
128
|
"mockdate": "^3.0.2",
|
|
129
129
|
"plop": "^2.4.0",
|
|
130
130
|
"prettier": "^3.4.2",
|
|
131
|
+
"re-resizable": "^6.10.3",
|
|
131
132
|
"react": "17.0.2",
|
|
132
133
|
"react-color": "^2.18.1",
|
|
133
134
|
"react-dom": "17.0.2",
|
|
@@ -153,6 +154,7 @@
|
|
|
153
154
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
154
155
|
"@nulogy/tokens": "^5.4.0",
|
|
155
156
|
"@reach/dialog": "0.17.0",
|
|
157
|
+
"@storybook/react": "6.3.12",
|
|
156
158
|
"@styled-system/prop-types": "^5.1.4",
|
|
157
159
|
"@styled-system/theme-get": "^5.1.2",
|
|
158
160
|
"@types/react-window": "^1.8.8",
|
|
@@ -161,7 +163,7 @@
|
|
|
161
163
|
"date-fns": "2.23.0",
|
|
162
164
|
"debounce": "^1.2.0",
|
|
163
165
|
"deep-equal": "^2.2.1",
|
|
164
|
-
"framer-motion": "
|
|
166
|
+
"framer-motion": "6.5.1",
|
|
165
167
|
"i18next": "^19.3.1",
|
|
166
168
|
"polished": "3.4.4",
|
|
167
169
|
"react-datepicker": "^4.25.0",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const DescriptionDetails: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DescriptionList } from ".";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof DescriptionList;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
export declare function Layout(): React.JSX.Element;
|
|
9
|
-
export declare function Density(): React.JSX.Element;
|
|
10
|
-
export declare function FontSize(): React.JSX.Element;
|
|
11
|
-
export declare function Divider(): React.JSX.Element;
|
|
12
|
-
export declare function AutoLayoutCustomBreakpoint(): React.JSX.Element;
|
|
13
|
-
export declare function CustomDescriptionTermWidth(): React.JSX.Element;
|
|
14
|
-
export declare function CombinedFeatures(): React.JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const DescriptionTerm: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|