lawgic-dev-kit 0.22.2 → 0.22.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/dist/components/atoms/Chip/Chip.d.ts +13 -0
- package/dist/components/atoms/Chip/Chip.js +32 -0
- package/dist/components/atoms/Chip/index.d.ts +1 -0
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.js +17 -30
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +8 -2
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.js +46 -12
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +3 -3
- package/dist/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +1 -1
- package/dist/components/atoms/LoadingSpinner/LoadingSpinner.js +56 -12
- package/dist/components/atoms/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/atoms/PasswordInput/PasswordInput.js +57 -41
- package/dist/components/atoms/PasswordInput/PasswordInput.types.d.ts +1 -0
- package/dist/components/atoms/SelectInput/SelectInput.js +10 -10
- package/dist/components/atoms/SelectInput/SelectInput.types.d.ts +2 -2
- package/dist/components/atoms/TextInput/TextInput.js +13 -13
- package/dist/components/atoms/TextInput/TextInput.types.d.ts +1 -1
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +1 -1
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.js +14 -14
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +12 -12
- package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +1 -1
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/molecules/DateInput/DateInput.d.ts +1 -1
- package/dist/components/molecules/FloatingMenu/FloatingMenu.js +16 -16
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +5 -4
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +123 -105
- package/dist/components/molecules/SingleSelectDropdown/SingleSelectDropdown.d.ts +25 -0
- package/dist/components/molecules/SingleSelectDropdown/SingleSelectDropdown.js +212 -0
- package/dist/components/molecules/SingleSelectDropdown/index.d.ts +1 -0
- package/dist/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +1 -1
- package/dist/components/molecules/index.d.ts +1 -0
- package/dist/index.js +143 -139
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +94 -89
- package/dist/node_modules/@fortawesome/pro-solid-svg-icons/index.js +14 -9
- package/dist/src/components/atoms/Chip/Chip.d.ts +13 -0
- package/dist/src/components/atoms/Chip/index.d.ts +1 -0
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +8 -2
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +3 -3
- package/dist/src/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +1 -1
- package/dist/src/components/atoms/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/src/components/atoms/PasswordInput/PasswordInput.types.d.ts +1 -0
- package/dist/src/components/atoms/SelectInput/SelectInput.types.d.ts +2 -2
- package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +1 -1
- package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +1 -1
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +1 -1
- package/dist/src/components/atoms/index.d.ts +1 -0
- package/dist/src/components/molecules/DateInput/DateInput.d.ts +1 -1
- package/dist/src/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +5 -4
- package/dist/src/components/molecules/SingleSelectDropdown/SingleSelectDropdown.d.ts +25 -0
- package/dist/src/components/molecules/SingleSelectDropdown/index.d.ts +1 -0
- package/dist/src/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +1 -1
- package/dist/src/components/molecules/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -4,30 +4,35 @@
|
|
|
4
4
|
* Copyright 2024 Fonticons, Inc.
|
|
5
5
|
*/
|
|
6
6
|
const c = {
|
|
7
|
+
prefix: "fas",
|
|
8
|
+
iconName: "circle",
|
|
9
|
+
icon: [512, 512, [128308, 128309, 128992, 128993, 128994, 128995, 128996, 9679, 9898, 9899, 11044, 61708, 61915], "f111", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"]
|
|
10
|
+
}, s = {
|
|
7
11
|
prefix: "fas",
|
|
8
12
|
iconName: "magnifying-glass",
|
|
9
13
|
icon: [512, 512, [128269, "search"], "f002", "M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]
|
|
10
|
-
},
|
|
14
|
+
}, n = {
|
|
11
15
|
prefix: "fas",
|
|
12
16
|
iconName: "chevron-down",
|
|
13
17
|
icon: [512, 512, [], "f078", "M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]
|
|
14
|
-
},
|
|
18
|
+
}, f = {
|
|
15
19
|
prefix: "fas",
|
|
16
20
|
iconName: "plus",
|
|
17
21
|
icon: [448, 512, [10133, 61543, "add"], "2b", "M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]
|
|
18
|
-
},
|
|
22
|
+
}, a = {
|
|
19
23
|
prefix: "fas",
|
|
20
24
|
iconName: "chevron-left",
|
|
21
25
|
icon: [320, 512, [9001], "f053", "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]
|
|
22
|
-
},
|
|
26
|
+
}, o = {
|
|
23
27
|
prefix: "fas",
|
|
24
28
|
iconName: "check",
|
|
25
29
|
icon: [448, 512, [10003, 10004], "f00c", "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]
|
|
26
30
|
};
|
|
27
31
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
c as
|
|
32
|
-
|
|
32
|
+
o as faCheck,
|
|
33
|
+
n as faChevronDown,
|
|
34
|
+
a as faChevronLeft,
|
|
35
|
+
c as faCircle,
|
|
36
|
+
s as faMagnifyingGlass,
|
|
37
|
+
f as faPlus
|
|
33
38
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ChipProps {
|
|
3
|
+
bgColor?: string;
|
|
4
|
+
textColor?: string;
|
|
5
|
+
label?: string | React.ReactNode;
|
|
6
|
+
labelClassName?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
size?: "sm" | "md";
|
|
9
|
+
showDot?: boolean;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
declare const Chip: React.FC<ChipProps>;
|
|
13
|
+
export default Chip;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Chip } from "./Chip";
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { InformationDisclaimerType } from "./InformationDisclaimer.types";
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
2
|
+
export declare const resolveSizeStyles: (size: "small" | "normal") => {
|
|
3
|
+
containerStyles: string;
|
|
4
|
+
titleStyles: string;
|
|
5
|
+
descriptionStyles: string;
|
|
6
|
+
iconStyles: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const resolveIconColor: (type: InformationDisclaimerType) => "bg-green-100 text-green-500" | "bg-yellow-100 text-yellow-500" | "bg-red-100 text-red-500" | "bg-blue-100 text-blue-500";
|
|
9
|
+
export declare const resolveIcon: (type: InformationDisclaimerType) => "info" | import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export type InformationDisclaimerType = "informative" | "warning" | "error";
|
|
1
|
+
export type InformationDisclaimerType = "success" | "informative" | "warning" | "error";
|
|
3
2
|
export type InformationDisclaimerProps = {
|
|
4
3
|
title: string;
|
|
5
4
|
description: string;
|
|
6
5
|
className?: string;
|
|
7
|
-
|
|
6
|
+
showIcon?: boolean;
|
|
8
7
|
type?: InformationDisclaimerType;
|
|
9
8
|
iconClassName?: string;
|
|
9
|
+
size?: "small" | "normal";
|
|
10
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface LoadingSpinnerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
variant?: 'circle' | 'cube';
|
|
3
4
|
size?: number;
|
|
4
|
-
strokeWidth?: number;
|
|
5
5
|
color?: string;
|
|
6
6
|
}
|
|
7
7
|
declare const LoadingSpinner: React.FC<LoadingSpinnerProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PasswordInputProps } from "./PasswordInput.types";
|
|
3
3
|
import { FieldValues } from "react-hook-form";
|
|
4
|
-
declare const PasswordInput: <T extends FieldValues>({ label, control, name, placeholder, className, disabled, leftSide, }: PasswordInputProps<T>) => React.ReactElement;
|
|
4
|
+
declare const PasswordInput: <T extends FieldValues>({ label, control, name, placeholder, className, disabled, size, leftSide, }: PasswordInputProps<T>) => React.ReactElement;
|
|
5
5
|
export default PasswordInput;
|
|
@@ -15,7 +15,7 @@ export interface SelectInputProps<T extends FieldValues> {
|
|
|
15
15
|
innerClassName?: string;
|
|
16
16
|
dropdownStyle?: React.CSSProperties;
|
|
17
17
|
showChevron?: boolean;
|
|
18
|
-
size?: 'sm' | '
|
|
18
|
+
size?: 'sm' | 'md';
|
|
19
19
|
}
|
|
20
20
|
export interface SelectInputFieldProps {
|
|
21
21
|
options: Option[];
|
|
@@ -29,5 +29,5 @@ export interface SelectInputFieldProps {
|
|
|
29
29
|
innerClassName?: string;
|
|
30
30
|
dropdownStyle?: React.CSSProperties;
|
|
31
31
|
showChevron?: boolean;
|
|
32
|
-
size?: 'sm' | '
|
|
32
|
+
size?: 'sm' | 'md';
|
|
33
33
|
}
|
|
@@ -17,7 +17,7 @@ interface UncontrolledSelectorProps {
|
|
|
17
17
|
innerClassName?: string;
|
|
18
18
|
dropdownStyle?: React.CSSProperties;
|
|
19
19
|
showChevron?: boolean;
|
|
20
|
-
size?: 'sm' | '
|
|
20
|
+
size?: 'sm' | 'md';
|
|
21
21
|
}
|
|
22
22
|
declare const UncontrolledSelector: React.FC<UncontrolledSelectorProps>;
|
|
23
23
|
export default UncontrolledSelector;
|
|
@@ -8,7 +8,7 @@ export type UncontrolledTextInputProps = {
|
|
|
8
8
|
error?: string | undefined;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
disabledInput?: boolean;
|
|
11
|
-
size?: 'sm' | '
|
|
11
|
+
size?: 'sm' | 'md';
|
|
12
12
|
leftSide?: React.ReactNode;
|
|
13
13
|
rightSide?: React.ReactNode;
|
|
14
14
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>;
|
|
@@ -6,6 +6,7 @@ export * from "./BoxContainer/index";
|
|
|
6
6
|
export * from "./Button/index";
|
|
7
7
|
export * from "./CenterModal/index";
|
|
8
8
|
export * from "./Checkbox/index";
|
|
9
|
+
export * from "./Chip/index";
|
|
9
10
|
export * from "./CountryInput/index";
|
|
10
11
|
export * from "./CountryLabel/index";
|
|
11
12
|
export * from "./CountrySelectInput/index";
|
|
@@ -8,7 +8,7 @@ export type DateInputProps<T extends FieldValues = FieldValues> = {
|
|
|
8
8
|
translateKey?: string;
|
|
9
9
|
futureDates?: boolean;
|
|
10
10
|
pastDates?: boolean;
|
|
11
|
-
size?: "sm" | "
|
|
11
|
+
size?: "sm" | "md";
|
|
12
12
|
};
|
|
13
13
|
declare const DateInput: <T extends FieldValues = FieldValues>({ control, name, showTimeSelector, label, translateKey, placeholder, futureDates, pastDates, size, }: DateInputProps<T>) => React.ReactElement;
|
|
14
14
|
export default DateInput;
|
|
@@ -2,10 +2,11 @@ import React from 'react';
|
|
|
2
2
|
export type Option = {
|
|
3
3
|
label: string;
|
|
4
4
|
value: string | number;
|
|
5
|
+
dividerBefore?: boolean;
|
|
5
6
|
colors?: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
bgColor?: string;
|
|
8
|
+
textColor?: string;
|
|
9
|
+
dotColor?: string;
|
|
9
10
|
};
|
|
10
11
|
};
|
|
11
12
|
interface MultiSelectDropdownProps {
|
|
@@ -17,7 +18,7 @@ interface MultiSelectDropdownProps {
|
|
|
17
18
|
allowSearch?: boolean;
|
|
18
19
|
className?: string;
|
|
19
20
|
disabled?: boolean;
|
|
20
|
-
size?: 'sm' | '
|
|
21
|
+
size?: 'sm' | 'md';
|
|
21
22
|
}
|
|
22
23
|
declare const MultiSelectDropdown: React.FC<MultiSelectDropdownProps>;
|
|
23
24
|
export default MultiSelectDropdown;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type Option = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
dividerBefore?: boolean;
|
|
6
|
+
colors?: {
|
|
7
|
+
bgColor?: string;
|
|
8
|
+
textColor?: string;
|
|
9
|
+
dotColor?: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
interface SingleSelectDropdownProps {
|
|
13
|
+
label?: string;
|
|
14
|
+
options: Option[];
|
|
15
|
+
selectedValue?: string | number | null;
|
|
16
|
+
onUpdate: (value: string | number | null) => void;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
allowSearch?: boolean;
|
|
19
|
+
className?: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
size?: 'sm' | 'md';
|
|
22
|
+
showRadio?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const SingleSelectDropdown: React.FC<SingleSelectDropdownProps>;
|
|
25
|
+
export default SingleSelectDropdown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SingleSelectDropdown } from "./SingleSelectDropdown";
|
|
@@ -11,6 +11,6 @@ export type UncontrolledDateInputProps = {
|
|
|
11
11
|
minDate?: Date;
|
|
12
12
|
maxDate?: Date;
|
|
13
13
|
customDisplay?: React.ReactNode;
|
|
14
|
-
size?: "sm" | "
|
|
14
|
+
size?: "sm" | "md";
|
|
15
15
|
};
|
|
16
16
|
export default function UncontrolledDateInput({ currentDate, onDateChange, label, placeholder, error, translatedKey, showTimeSelector, futureDates, pastDates, minDate, maxDate, customDisplay, size, }: UncontrolledDateInputProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED