widenarrow-ui 0.1.9 → 0.1.10
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/lib/components/Box/Box.d.ts +2 -2
- package/lib/components/Button/Button.d.ts +2 -2
- package/lib/components/Icon/Iconography.d.ts +1 -2
- package/lib/components/Icon/getIconFromConstant.d.ts +1 -2
- package/lib/components/Typography/Typography.d.ts +12 -12
- package/lib/index.esm.js +20 -25
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +20 -25
- package/lib/index.js.map +1 -1
- package/package.json +11 -10
- package/src/assets/svg/sendList.tsx +1 -1
- package/src/components/Box/Box.tsx +2 -2
- package/src/components/Button/Button.tsx +2 -3
- package/src/components/Grid/Grid.tsx +2 -2
- package/src/components/Typography/Typography.tsx +14 -14
- package/tsconfig.json +2 -1
- package/types/ramda/index.d.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
2
|
import { MarginInterface, PaddingInterface, FlexStylingInterface } from 'src/types/styling';
|
|
3
3
|
interface Props extends MarginInterface, PaddingInterface, FlexStylingInterface {
|
|
4
4
|
children: React.ReactNode;
|
|
@@ -20,7 +20,7 @@ interface Props extends MarginInterface, PaddingInterface, FlexStylingInterface
|
|
|
20
20
|
maxWidth?: string;
|
|
21
21
|
withSeparatorRight?: boolean;
|
|
22
22
|
withSeparatorLeft?: boolean;
|
|
23
|
-
style?:
|
|
23
|
+
style?: CSSProperties;
|
|
24
24
|
onClickCallback?: () => void;
|
|
25
25
|
}
|
|
26
26
|
declare const Box: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, ReactNode, MouseEvent } from 'react';
|
|
1
|
+
import { FC, ReactNode, MouseEvent, CSSProperties } from 'react';
|
|
2
2
|
import { ButtonTypes } from 'src/constants';
|
|
3
3
|
interface Props {
|
|
4
4
|
text?: string;
|
|
@@ -7,7 +7,7 @@ interface Props {
|
|
|
7
7
|
size?: ButtonTypes.SMALL | ButtonTypes.MEDIUM | ButtonTypes.LARGE | ButtonTypes.EXTRA_LARGE;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
className?: string;
|
|
10
|
-
style?:
|
|
10
|
+
style?: CSSProperties;
|
|
11
11
|
withoutTextOnSmall?: boolean;
|
|
12
12
|
withSpaceBetween?: boolean;
|
|
13
13
|
withSeparatorRight?: boolean;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const getIconFromConstant: (icon: string, getIconClassName: (additionalClassName?: string) => string) => JSX.Element | null;
|
|
1
|
+
declare const getIconFromConstant: (icon: string, getIconClassName: (additionalClassName?: string) => string) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
2
|
export default getIconFromConstant;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
1
|
+
import { CSSProperties, FC, ReactNode } from 'react';
|
|
2
2
|
import { MarginInterface, PaddingInterface } from 'src/types/styling';
|
|
3
3
|
interface BaseProps extends MarginInterface, PaddingInterface {
|
|
4
4
|
className?: string;
|
|
@@ -7,15 +7,15 @@ interface BaseProps extends MarginInterface, PaddingInterface {
|
|
|
7
7
|
fontSize?: string;
|
|
8
8
|
fontStyle?: string;
|
|
9
9
|
color?: string;
|
|
10
|
-
withSeparator?: boolean;
|
|
11
|
-
meta?: boolean;
|
|
12
|
-
error?: boolean;
|
|
13
|
-
withBorderBottom?: boolean;
|
|
14
|
-
withEllipsis?: boolean;
|
|
15
|
-
withAnimation?: boolean;
|
|
16
|
-
withNoWordBreak?: boolean;
|
|
17
|
-
withWordBreak?: boolean;
|
|
18
|
-
disabled?: boolean;
|
|
10
|
+
withSeparator?: boolean | undefined;
|
|
11
|
+
meta?: boolean | undefined;
|
|
12
|
+
error?: boolean | undefined;
|
|
13
|
+
withBorderBottom?: boolean | undefined;
|
|
14
|
+
withEllipsis?: boolean | undefined;
|
|
15
|
+
withAnimation?: boolean | undefined;
|
|
16
|
+
withNoWordBreak?: boolean | undefined;
|
|
17
|
+
withWordBreak?: boolean | undefined;
|
|
18
|
+
disabled?: boolean | undefined;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
|--------------------------------------------------
|
|
@@ -25,7 +25,7 @@ interface BaseProps extends MarginInterface, PaddingInterface {
|
|
|
25
25
|
interface HeadingProps extends BaseProps {
|
|
26
26
|
children: ReactNode;
|
|
27
27
|
type: string;
|
|
28
|
-
style?:
|
|
28
|
+
style?: CSSProperties;
|
|
29
29
|
}
|
|
30
30
|
export declare const Heading: FC<HeadingProps>;
|
|
31
31
|
/**
|
|
@@ -36,7 +36,7 @@ export declare const Heading: FC<HeadingProps>;
|
|
|
36
36
|
interface LabelProps extends BaseProps {
|
|
37
37
|
children: ReactNode | string;
|
|
38
38
|
htmlFor?: string;
|
|
39
|
-
style?:
|
|
39
|
+
style?: CSSProperties;
|
|
40
40
|
}
|
|
41
41
|
export declare const Label: FC<LabelProps>;
|
|
42
42
|
/**
|