@nulogy/components 12.0.0 → 12.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/dist/src/DescriptionList/DescriptionDetails.d.ts +2 -0
- package/dist/src/DescriptionList/DescriptionList.d.ts +6 -0
- package/dist/src/DescriptionList/DescriptionList.story.d.ts +14 -0
- package/dist/src/DescriptionList/DescriptionListContext.d.ts +13 -0
- package/dist/src/DescriptionList/DescriptionTerm.d.ts +2 -0
- package/dist/src/DescriptionList/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
|
+
import { DescriptionListConfig } from "./DescriptionListContext";
|
|
3
|
+
export type Props = PropsWithChildren<DescriptionListConfig>;
|
|
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;
|
|
@@ -0,0 +1,14 @@
|
|
|
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;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
|
+
import { DefaultNDSThemeType } from "../theme";
|
|
3
|
+
export interface DescriptionListConfig {
|
|
4
|
+
descriptionTermMaxWidth?: string;
|
|
5
|
+
layout?: "stacked" | "inline" | "auto";
|
|
6
|
+
showDivider?: boolean;
|
|
7
|
+
density?: "medium" | "compact" | "relaxed";
|
|
8
|
+
fontSize?: keyof DefaultNDSThemeType["fontSizes"];
|
|
9
|
+
lineHeight?: keyof DefaultNDSThemeType["lineHeights"];
|
|
10
|
+
autoLayoutBreakpoint?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const useDescriptionListContext: () => DescriptionListConfig;
|
|
13
|
+
export declare function DescriptionListProvider({ children, ...config }: PropsWithChildren<DescriptionListConfig>): React.JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|