labsense-ui-kit 1.0.4 → 1.0.6
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/README.md +4 -0
- package/dist/Buttons/Button.d.ts +12 -6
- package/dist/Buttons/Old.d.ts +21 -0
- package/dist/Fonts/Font.d.ts +2 -0
- package/dist/Icons/index.d.ts +4 -3
- package/dist/Loader/CircularLoader.d.ts +10 -0
- package/dist/Loader/index.d.ts +2 -0
- package/dist/ProgressBar/ProgressBar.d.ts +6 -0
- package/dist/ProgressBar/index.d.ts +2 -0
- package/dist/Tabs/Tabs.d.ts +6 -0
- package/dist/Tabs/index.d.ts +2 -0
- package/dist/Themes/Colors.d.ts +36 -0
- package/dist/index.d.ts +9 -2
- package/dist/index.js +441 -192
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +439 -195
- package/dist/index.modern.js.map +1 -1
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
LabSense UI Kit is a modern UI components library built with React, designed to streamline and accelerate web application development.
|
|
4
4
|
|
|
5
|
+
You can review online a React project example and test some of the components on storybook in the live page:
|
|
6
|
+
|
|
7
|
+
**Storybook Link:** https://labsense-ui-kit-9e54b5.gitlab.io
|
|
8
|
+
|
|
5
9
|
---
|
|
6
10
|
|
|
7
11
|
## Getting Started
|
package/dist/Buttons/Button.d.ts
CHANGED
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconNames } from '../Icons';
|
|
3
|
+
export declare type buttonSizes = 'small' | 'medium' | 'large' | 'custom';
|
|
4
|
+
export declare type buttonVariant = 'primary' | 'secondary' | 'tertiary' | 'error' | 'outline-primary' | 'outline-secondary' | 'outline-error';
|
|
5
|
+
export declare type iconPosition = 'right' | 'left';
|
|
2
6
|
interface ButtonProps {
|
|
3
7
|
onClick?: () => void;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
size?:
|
|
8
|
+
text?: string;
|
|
9
|
+
icon?: IconNames;
|
|
10
|
+
size?: buttonSizes;
|
|
7
11
|
background?: string;
|
|
8
12
|
color?: string;
|
|
9
13
|
fontWeight?: string;
|
|
10
|
-
fontStyle?: string;
|
|
11
14
|
fontSize?: string;
|
|
12
15
|
fontFamily?: string;
|
|
13
|
-
lineHeight?: string;
|
|
14
16
|
border?: string;
|
|
15
17
|
borderRadius?: string;
|
|
16
18
|
padding?: string;
|
|
17
19
|
gap?: string;
|
|
20
|
+
iconPosition?: iconPosition;
|
|
21
|
+
iconWeight?: string;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
variant?: buttonVariant;
|
|
18
24
|
}
|
|
19
25
|
declare const ButtonComponent: React.FC<ButtonProps>;
|
|
20
26
|
export default ButtonComponent;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { colorVariables } from "../Themes/Colors";
|
|
3
|
+
interface ButtonProps {
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
svg?: React.ReactNode;
|
|
6
|
+
text: string;
|
|
7
|
+
size?: 'Small' | 'Regular' | 'Large' | 'CustomUsingPadding';
|
|
8
|
+
background?: keyof typeof colorVariables.default;
|
|
9
|
+
color?: string;
|
|
10
|
+
fontWeight?: string;
|
|
11
|
+
fontStyle?: string;
|
|
12
|
+
fontSize?: string;
|
|
13
|
+
fontFamily?: string;
|
|
14
|
+
lineHeight?: string;
|
|
15
|
+
border?: string;
|
|
16
|
+
borderRadius?: string;
|
|
17
|
+
padding?: string;
|
|
18
|
+
gap?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const ButtonComponent: React.FC<ButtonProps>;
|
|
21
|
+
export default ButtonComponent;
|
package/dist/Icons/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
declare const IconWrapper: import("styled-components").
|
|
3
|
-
declare const IconWrapperForSVG: import("styled-components").
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
declare const IconWrapperForSVG: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").SVGProps<SVGGElement>, never>> & string;
|
|
4
4
|
export { IconWrapper, IconWrapperForSVG };
|
|
5
5
|
export interface SVGProps {
|
|
6
6
|
size: number;
|
|
7
7
|
color: string;
|
|
8
8
|
weight: string;
|
|
9
9
|
}
|
|
10
|
+
export declare type IconNames = 'Forward' | 'RunAway' | 'Back' | 'Download' | 'Wallet' | 'Bin' | 'Business' | 'Client' | 'Close' | 'Copy' | 'CloseCircle' | 'Cyber' | 'Shield' | 'Lock' | 'DownArrow' | 'Email' | 'FilesBox' | 'Filter' | 'Team' | 'History' | 'Information' | 'Letter' | 'Logout' | 'Mute' | 'Notifications' | 'Circle' | 'Phone' | 'Play' | 'Settings' | 'Profile_1' | 'Profile_2' | 'Search' | 'Edit' | 'RightArrow' | 'LeftArrow' | 'ThumbsUp' | 'Tick' | 'SandTimer' | 'Zapper';
|
|
10
11
|
declare const IconSVGs: {
|
|
11
12
|
[key: string]: React.FC<SVGProps>;
|
|
12
13
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface CircularSpinnerProps {
|
|
3
|
+
size?: "small" | "medium" | "large";
|
|
4
|
+
color?: string;
|
|
5
|
+
speed?: number;
|
|
6
|
+
dotSize?: number;
|
|
7
|
+
text?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.NamedExoticComponent<CircularSpinnerProps>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const colorVariables: {
|
|
2
|
+
brand: {
|
|
3
|
+
'brand-1': string;
|
|
4
|
+
'brand-2': string;
|
|
5
|
+
'brand-3': string;
|
|
6
|
+
};
|
|
7
|
+
grays: {
|
|
8
|
+
'gray-1': string;
|
|
9
|
+
'gray-2': string;
|
|
10
|
+
'gray-3': string;
|
|
11
|
+
'gray-4': string;
|
|
12
|
+
};
|
|
13
|
+
accent: {
|
|
14
|
+
'accent-1': string;
|
|
15
|
+
'accent-2': string;
|
|
16
|
+
'accent-3': string;
|
|
17
|
+
};
|
|
18
|
+
default: {
|
|
19
|
+
primary: string;
|
|
20
|
+
secondary: string;
|
|
21
|
+
tertiary: string;
|
|
22
|
+
error: string;
|
|
23
|
+
success: string;
|
|
24
|
+
warning: string;
|
|
25
|
+
info: string;
|
|
26
|
+
};
|
|
27
|
+
hover: {
|
|
28
|
+
primary: string;
|
|
29
|
+
secondary: string;
|
|
30
|
+
tertiary: string;
|
|
31
|
+
error: string;
|
|
32
|
+
success: string;
|
|
33
|
+
warning: string;
|
|
34
|
+
info: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { Button } from "./Buttons";
|
|
2
2
|
import { Input } from "./Inputs";
|
|
3
|
-
import { Icon } from './Icons';
|
|
4
|
-
|
|
3
|
+
import { Icon, IconNames } from './Icons';
|
|
4
|
+
import { Tabs } from './Tabs';
|
|
5
|
+
import { ProgressBar } from './ProgressBar';
|
|
6
|
+
import { colorVariables } from "./Themes/Colors";
|
|
7
|
+
import { CircularLoader } from './Loader';
|
|
8
|
+
import GlobalFonts from './Fonts/Font';
|
|
9
|
+
export { Button, Input, Icon, Tabs, ProgressBar, colorVariables, GlobalFonts };
|
|
10
|
+
export { CircularLoader };
|
|
11
|
+
export { IconNames };
|