@nulogy/components 10.0.3 → 10.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/main.js +4264 -4230
- package/dist/main.module.js +4260 -4226
- package/dist/src/FieldLabel/FieldLabel.d.ts +1 -1
- package/dist/src/FieldLabel/FieldLabel.story.d.ts +5 -24
- package/dist/src/FieldLabel/FieldLabel.type.d.ts +4 -5
- package/dist/src/FieldLabel/FramedIcon.d.ts +11 -0
- package/dist/src/FieldLabel/Label.d.ts +6 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FieldLabelProps } from "./FieldLabel.type";
|
|
3
3
|
declare const FieldLabel: {
|
|
4
|
-
({ labelText, requirementText, helpText, children, ...props }: FieldLabelProps): React.JSX.Element;
|
|
4
|
+
({ labelText, requirementText, helpText, hint, children, ...props }: FieldLabelProps): React.JSX.Element;
|
|
5
5
|
defaultProps: {
|
|
6
6
|
children: any;
|
|
7
7
|
requirementText: any;
|
|
@@ -9,27 +9,8 @@ export declare const _FieldLabel: {
|
|
|
9
9
|
name: string;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
export declare const WithHelpText:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
export declare const WithRequirementText: {
|
|
19
|
-
(): React.JSX.Element;
|
|
20
|
-
story: {
|
|
21
|
-
name: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export declare const WithAllAdditionalText: {
|
|
25
|
-
(): React.JSX.Element;
|
|
26
|
-
story: {
|
|
27
|
-
name: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
export declare const WithAssociatedCustomInputComponent: {
|
|
31
|
-
(): React.JSX.Element;
|
|
32
|
-
story: {
|
|
33
|
-
name: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
12
|
+
export declare const WithHelpText: () => React.JSX.Element;
|
|
13
|
+
export declare const WithRequirementText: () => React.JSX.Element;
|
|
14
|
+
export declare const WithAllAdditionalText: () => React.JSX.Element;
|
|
15
|
+
export declare const WithAssociatedCustomInputComponent: () => React.JSX.Element;
|
|
16
|
+
export declare const WithHint: () => React.JSX.Element;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
2
|
+
import type { LabelProps } from "./Label";
|
|
3
|
+
export interface FieldLabelProps extends LabelProps {
|
|
4
|
+
hint?: string;
|
|
4
5
|
labelText: string;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
6
|
requirementText?: string;
|
|
7
7
|
helpText?: React.ReactNode;
|
|
8
|
-
|
|
9
|
-
};
|
|
8
|
+
}
|
|
10
9
|
export declare const FieldLabelDefaultProps: {
|
|
11
10
|
children: any;
|
|
12
11
|
requirementText: any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
|
+
interface FramedIconProps extends React.ComponentPropsWithoutRef<"svg"> {
|
|
3
|
+
iconSize: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
focusable?: boolean;
|
|
6
|
+
maxWidth?: string;
|
|
7
|
+
tooltip?: string | ReactElement;
|
|
8
|
+
isTooltipOpenByDefault?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export default function FramedIcon({ isTooltipOpenByDefault, tooltip, maxWidth, iconSize, ...iconProps }: FramedIconProps): React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { DisplayProps } from "styled-system";
|
|
2
|
+
import type { SpaceProps } from "styled-system";
|
|
3
|
+
import type { ComponentPropsWithRef } from "react";
|
|
4
|
+
export interface LabelProps extends SpaceProps, DisplayProps, Omit<ComponentPropsWithRef<"label">, "color"> {
|
|
5
|
+
}
|
|
6
|
+
declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, LabelProps, never>;
|
|
2
7
|
export default Label;
|