@dev-blinq/ui-systems 1.0.10 → 1.0.12
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/App.d.ts +3 -0
- package/dist/components/CustomButton/CustomButton.d.ts +4 -0
- package/dist/components/CustomButton/CustomButtonProps.d.ts +11 -0
- package/dist/components/CustomButton/CustomButtonTypes.d.ts +10 -0
- package/dist/components/CustomCheckbox.d.ts +9 -0
- package/dist/components/CustomInput/ChooseInput.d.ts +2 -0
- package/dist/components/CustomInput/CustomInput.d.ts +4 -0
- package/dist/components/CustomInput/CustomInputProps.d.ts +26 -0
- package/dist/components/CustomInput/types/Action.d.ts +2 -0
- package/dist/components/CustomInput/types/CreditCard.d.ts +2 -0
- package/dist/components/CustomInput/types/Currency.d.ts +2 -0
- package/dist/components/CustomInput/types/Date.d.ts +2 -0
- package/dist/components/CustomInput/types/Link.d.ts +2 -0
- package/dist/components/CustomInput/types/Number.d.ts +2 -0
- package/dist/components/CustomInput/types/Password.d.ts +2 -0
- package/dist/components/CustomInput/types/Telephone.d.ts +0 -0
- package/dist/components/CustomInput/types/Text.d.ts +2 -0
- package/dist/components/Typography/Typography.d.ts +11 -0
- package/dist/icons/details.d.ts +1 -0
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/lock.d.ts +1 -0
- package/dist/icons/mail.d.ts +5 -0
- package/dist/icons/password-eye.d.ts +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +10 -126
- package/dist/index.mjs +717 -6513
- package/dist/main.d.ts +0 -0
- package/package.json +7 -4
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ButtonSize, ButtonColorHierarchyType } from './CustomButtonTypes';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface CustomButtonProps {
|
|
4
|
+
size?: ButtonSize;
|
|
5
|
+
colorHierarchy?: ButtonColorHierarchyType;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
text: string;
|
|
8
|
+
leftIcon?: ReactNode;
|
|
9
|
+
rightIcon?: ReactNode;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type ButtonSize = "sm" | "md" | "lg" | "xl";
|
|
2
|
+
export type ButtonColor = "brand" | "gray" | "destructive" | "white";
|
|
3
|
+
export type ButtonHierarchy = "primary" | "secondary" | "link" | "linkContainer";
|
|
4
|
+
export type ButtonState = "default" | "hover" | "focused" | "disabled";
|
|
5
|
+
export type ButtonColorHierarchyType = `${ButtonColor}/${ButtonHierarchy}`;
|
|
6
|
+
export declare const buttonSizeArray: ButtonSize[];
|
|
7
|
+
export declare const buttonColorArray: ButtonColor[];
|
|
8
|
+
export declare const buttonHierarchyArray: ButtonHierarchy[];
|
|
9
|
+
export declare const buttonStateArray: ButtonState[];
|
|
10
|
+
export declare const buttonColorHierarchyArray: ButtonColorHierarchyType[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type CustomCheckboxProps = {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
onChange?: (checked: boolean) => void;
|
|
5
|
+
label?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const CustomCheckbox: React.FC<CustomCheckboxProps>;
|
|
9
|
+
export default CustomCheckbox;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export type Size = "md" | "lg";
|
|
3
|
+
export type Type = "default" | "action" | "currency" | "creditCard" | "date" | "link" | "password" | "search" | "tel" | "number";
|
|
4
|
+
export interface CustomInputProps {
|
|
5
|
+
Size?: Size;
|
|
6
|
+
type?: Type;
|
|
7
|
+
label?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
errExists?: boolean;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
leftIcon?: any;
|
|
12
|
+
rightIcon?: any;
|
|
13
|
+
onAction?: () => void;
|
|
14
|
+
style?: CSSProperties;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
17
|
+
export interface InputContext {
|
|
18
|
+
type: string;
|
|
19
|
+
placeholder: string;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
errExists: boolean;
|
|
22
|
+
leftIcon?: any;
|
|
23
|
+
rightIcon?: any;
|
|
24
|
+
onAction?: (text: string | undefined) => void;
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TypographyProps } from '@mui/material';
|
|
2
|
+
type category = "display" | "heading" | "text";
|
|
3
|
+
type size = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
4
|
+
type bold = "semibold" | "bold" | "extrabold" | "medium";
|
|
5
|
+
interface TypegraphyCustomType extends TypographyProps {
|
|
6
|
+
Size?: size;
|
|
7
|
+
category?: category;
|
|
8
|
+
bold?: bold;
|
|
9
|
+
}
|
|
10
|
+
declare const TypographyCustom: React.FC<TypegraphyCustomType>;
|
|
11
|
+
export default TypographyCustom;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DetailsIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LockIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PasswordEyeIcon: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as Button } from './components/CustomButton/CustomButton';
|
|
2
|
+
export { default as CustomInput } from './components/CustomInput/CustomInput';
|
|
3
|
+
export { default as CustomCheckbox } from './components/CustomCheckbox';
|
|
4
|
+
export { default as TypographyCustom } from './components/Typography/Typography';
|