am-shared-assets 0.0.11 → 0.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 +2 -0
- package/dist/ChevronBottomIcon-Rbhqbn7b.js +397 -0
- package/dist/LogoutIcon-DFxOxHvC.js +1823 -0
- package/dist/Switch-M9NdB-g6.js +11260 -0
- package/dist/am-shared-assets.js +61 -0
- package/dist/am-shared-assets2.js +50 -0
- package/dist/am-shared-assets3.js +13 -0
- package/dist/components/Alert.d.ts +20 -0
- package/dist/components/Autocomplete.d.ts +11 -0
- package/dist/components/Badge.d.ts +9 -0
- package/dist/components/Button.d.ts +16 -0
- package/dist/components/Checkbox.d.ts +2 -0
- package/dist/components/Chip.d.ts +12 -0
- package/dist/components/Input.d.ts +22 -0
- package/dist/components/Radio.d.ts +13 -0
- package/dist/components/RangeSlider.d.ts +13 -0
- package/dist/components/Select.d.ts +10 -0
- package/dist/components/Switch.d.ts +11 -0
- package/dist/components/Tooltip.d.ts +11 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/icons/components/AddIcon.d.ts +5 -0
- package/dist/icons/components/ArrowDownIcon.d.ts +5 -0
- package/dist/icons/components/ArrowRightIcon.d.ts +5 -0
- package/dist/icons/components/BagIcon.d.ts +5 -0
- package/dist/icons/components/BoxIcon.d.ts +5 -0
- package/dist/icons/components/BoxTickIcon.d.ts +5 -0
- package/dist/icons/components/BoxTimeIcon.d.ts +5 -0
- package/dist/icons/components/CardTickIcon.d.ts +5 -0
- package/dist/icons/components/CardsIcon.d.ts +5 -0
- package/dist/icons/components/CategoryIcon.d.ts +5 -0
- package/dist/icons/components/ChevronBottomIcon.d.ts +5 -0
- package/dist/icons/components/ChevronLeftIcon.d.ts +5 -0
- package/dist/icons/components/ChevronRightIcon.d.ts +5 -0
- package/dist/icons/components/ChevronTopIcon.d.ts +5 -0
- package/dist/icons/components/CloseCircleIcon.d.ts +5 -0
- package/dist/icons/components/CloseIcon.d.ts +5 -0
- package/dist/icons/components/DislikeIcon.d.ts +5 -0
- package/dist/icons/components/EditIcon.d.ts +5 -0
- package/dist/icons/components/FillShoppingCartIcon.d.ts +5 -0
- package/dist/icons/components/HeartIcon.d.ts +5 -0
- package/dist/icons/components/HomeIcon.d.ts +5 -0
- package/dist/icons/components/InfoIcon.d.ts +5 -0
- package/dist/icons/components/LikeIcon.d.ts +5 -0
- package/dist/icons/components/LogoutIcon.d.ts +5 -0
- package/dist/icons/components/MessageIcon.d.ts +5 -0
- package/dist/icons/components/MoneyIcon.d.ts +5 -0
- package/dist/icons/components/MoreIcon.d.ts +5 -0
- package/dist/icons/components/OutlineTickCircleIcon.d.ts +5 -0
- package/dist/icons/components/ReceiptIcon.d.ts +5 -0
- package/dist/icons/components/RotateBoxIcon.d.ts +5 -0
- package/dist/icons/components/RotateInfoIcon.d.ts +5 -0
- package/dist/icons/components/SearchIcon.d.ts +5 -0
- package/dist/icons/components/SettingIcon.d.ts +5 -0
- package/dist/icons/components/ShareIcon.d.ts +5 -0
- package/dist/icons/components/ShopIcon.d.ts +5 -0
- package/dist/icons/components/ShoppingCartIcon.d.ts +5 -0
- package/dist/icons/components/SpinnerIcon.d.ts +5 -0
- package/dist/icons/components/StarIcon.d.ts +5 -0
- package/dist/icons/components/TickCircleIcon.d.ts +5 -0
- package/dist/icons/components/TrashIcon.d.ts +5 -0
- package/dist/icons/components/TruckIcon.d.ts +5 -0
- package/dist/icons/components/UserIcon.d.ts +5 -0
- package/dist/icons/components/UserSquareIcon.d.ts +5 -0
- package/dist/icons/components/WalletCheckIcon.d.ts +5 -0
- package/dist/icons/components/WalletIcon.d.ts +5 -0
- package/dist/icons/components/WarningIcon.d.ts +5 -0
- package/dist/icons/index.d.ts +47 -0
- package/dist/index.d.ts +2 -0
- package/dist/main.d.ts +0 -0
- package/dist/vite.svg +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { A as n, B as s, a as c, C as I, I as e, R as r, b as t, S as i, c as C, T as l } from "./Switch-M9NdB-g6.js";
|
|
2
|
+
import { C as p, a as S, b as g, I as T, T as B, W as d } from "./ChevronBottomIcon-Rbhqbn7b.js";
|
|
3
|
+
import { A as R, a as x, b as f, B as m, c as u, d as A, e as v, C as w, f as W, g as L, h as M, i as b, j as y, D, E as H, F as U, H as q, k as E, L as F, l as O, M as j, m as z, n as G, O as J, R as K, o as N, p as P, S as Q, q as V, r as X, s as Y, t as Z, u as _, v as $, T as oo, w as ao, U as no, x as so, W as co, y as Io } from "./LogoutIcon-DFxOxHvC.js";
|
|
4
|
+
export {
|
|
5
|
+
R as AddIcon,
|
|
6
|
+
n as Alert,
|
|
7
|
+
x as ArrowDownIcon,
|
|
8
|
+
f as ArrowRightIcon,
|
|
9
|
+
s as Badge,
|
|
10
|
+
m as BagIcon,
|
|
11
|
+
u as BoxIcon,
|
|
12
|
+
A as BoxTickIcon,
|
|
13
|
+
v as BoxTimeIcon,
|
|
14
|
+
c as Button,
|
|
15
|
+
w as CardTickIcon,
|
|
16
|
+
W as CardsIcon,
|
|
17
|
+
L as CategoryIcon,
|
|
18
|
+
p as ChevronBottomIcon,
|
|
19
|
+
M as ChevronLeftIcon,
|
|
20
|
+
b as ChevronRightIcon,
|
|
21
|
+
y as ChevronTopIcon,
|
|
22
|
+
I as Chip,
|
|
23
|
+
S as CloseCircleIcon,
|
|
24
|
+
g as CloseIcon,
|
|
25
|
+
D as DislikeIcon,
|
|
26
|
+
H as EditIcon,
|
|
27
|
+
U as FillShoppingCartIcon,
|
|
28
|
+
q as HeartIcon,
|
|
29
|
+
E as HomeIcon,
|
|
30
|
+
T as InfoIcon,
|
|
31
|
+
e as Input,
|
|
32
|
+
F as LikeIcon,
|
|
33
|
+
O as LogoutIcon,
|
|
34
|
+
j as MessageIcon,
|
|
35
|
+
z as MoneyIcon,
|
|
36
|
+
G as MoreIcon,
|
|
37
|
+
J as OutlineTickCircleIcon,
|
|
38
|
+
r as Radio,
|
|
39
|
+
t as RangeSlider,
|
|
40
|
+
K as ReceiptIcon,
|
|
41
|
+
N as RotateBoxIcon,
|
|
42
|
+
P as RotateInfoIcon,
|
|
43
|
+
Q as SearchIcon,
|
|
44
|
+
i as Select,
|
|
45
|
+
V as SettingIcon,
|
|
46
|
+
X as ShareIcon,
|
|
47
|
+
Y as ShopIcon,
|
|
48
|
+
Z as ShoppingCartIcon,
|
|
49
|
+
_ as SpinnerIcon,
|
|
50
|
+
$ as StarIcon,
|
|
51
|
+
C as Switch,
|
|
52
|
+
B as TickCircleIcon,
|
|
53
|
+
l as Tooltip,
|
|
54
|
+
oo as TrashIcon,
|
|
55
|
+
ao as TruckIcon,
|
|
56
|
+
no as UserIcon,
|
|
57
|
+
so as UserSquareIcon,
|
|
58
|
+
co as WalletCheckIcon,
|
|
59
|
+
Io as WalletIcon,
|
|
60
|
+
d as WarningIcon
|
|
61
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { C as n, a as c, b as s, I, T as e, W as r } from "./ChevronBottomIcon-Rbhqbn7b.js";
|
|
2
|
+
import { A as i, a as C, b as h, B as l, c as g, d as p, e as S, C as T, f as k, g as x, h as B, i as d, j as f, D as m, E as R, F as u, H as v, k as W, L as w, l as A, M as L, m as M, n as y, O as D, R as H, o as U, p as b, S as q, q as E, r as F, s as O, t as j, u as z, v as G, T as J, w as K, U as N, x as P, W as Q, y as V } from "./LogoutIcon-DFxOxHvC.js";
|
|
3
|
+
export {
|
|
4
|
+
i as AddIcon,
|
|
5
|
+
C as ArrowDownIcon,
|
|
6
|
+
h as ArrowRightIcon,
|
|
7
|
+
l as BagIcon,
|
|
8
|
+
g as BoxIcon,
|
|
9
|
+
p as BoxTickIcon,
|
|
10
|
+
S as BoxTimeIcon,
|
|
11
|
+
T as CardTickIcon,
|
|
12
|
+
k as CardsIcon,
|
|
13
|
+
x as CategoryIcon,
|
|
14
|
+
n as ChevronBottomIcon,
|
|
15
|
+
B as ChevronLeftIcon,
|
|
16
|
+
d as ChevronRightIcon,
|
|
17
|
+
f as ChevronTopIcon,
|
|
18
|
+
c as CloseCircleIcon,
|
|
19
|
+
s as CloseIcon,
|
|
20
|
+
m as DislikeIcon,
|
|
21
|
+
R as EditIcon,
|
|
22
|
+
u as FillShoppingCartIcon,
|
|
23
|
+
v as HeartIcon,
|
|
24
|
+
W as HomeIcon,
|
|
25
|
+
I as InfoIcon,
|
|
26
|
+
w as LikeIcon,
|
|
27
|
+
A as LogoutIcon,
|
|
28
|
+
L as MessageIcon,
|
|
29
|
+
M as MoneyIcon,
|
|
30
|
+
y as MoreIcon,
|
|
31
|
+
D as OutlineTickCircleIcon,
|
|
32
|
+
H as ReceiptIcon,
|
|
33
|
+
U as RotateBoxIcon,
|
|
34
|
+
b as RotateInfoIcon,
|
|
35
|
+
q as SearchIcon,
|
|
36
|
+
E as SettingIcon,
|
|
37
|
+
F as ShareIcon,
|
|
38
|
+
O as ShopIcon,
|
|
39
|
+
j as ShoppingCartIcon,
|
|
40
|
+
z as SpinnerIcon,
|
|
41
|
+
G as StarIcon,
|
|
42
|
+
e as TickCircleIcon,
|
|
43
|
+
J as TrashIcon,
|
|
44
|
+
K as TruckIcon,
|
|
45
|
+
N as UserIcon,
|
|
46
|
+
P as UserSquareIcon,
|
|
47
|
+
Q as WalletCheckIcon,
|
|
48
|
+
V as WalletIcon,
|
|
49
|
+
r as WarningIcon
|
|
50
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { A as t, B as e, a as o, C as i, I as l, R as p, b as r, S, c, T as d } from "./Switch-M9NdB-g6.js";
|
|
2
|
+
export {
|
|
3
|
+
t as Alert,
|
|
4
|
+
e as Badge,
|
|
5
|
+
o as Button,
|
|
6
|
+
i as Chip,
|
|
7
|
+
l as Input,
|
|
8
|
+
p as Radio,
|
|
9
|
+
r as RangeSlider,
|
|
10
|
+
S as Select,
|
|
11
|
+
c as Switch,
|
|
12
|
+
d as Tooltip
|
|
13
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface IAlertProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
6
|
+
size?: "sm" | "md";
|
|
7
|
+
width?: "default" | "full";
|
|
8
|
+
rounded?: "none" | "sm" | "md" | "lg" | "full";
|
|
9
|
+
infoIconAlignment?: "start" | "center";
|
|
10
|
+
isInfoIcon?: boolean;
|
|
11
|
+
hasCloseButton?: boolean;
|
|
12
|
+
hasButton?: boolean;
|
|
13
|
+
buttonTitle?: string;
|
|
14
|
+
buttonTextColor?: "black" | "white";
|
|
15
|
+
buttonClickHandler?: () => void;
|
|
16
|
+
closeAlertHandler?: () => void;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare const Alert: ({ title, description, color, size, width, rounded, infoIconAlignment, isInfoIcon, hasCloseButton, hasButton, buttonTitle, buttonTextColor, buttonClickHandler, closeAlertHandler, children, }: IAlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface IAutocompleteProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
placeHolder?: string;
|
|
5
|
+
inputIcon?: ReactNode;
|
|
6
|
+
inputEndIcon?: ReactNode;
|
|
7
|
+
size?: "sm" | "lg";
|
|
8
|
+
variant?: "flat" | "faded" | "bordered";
|
|
9
|
+
}
|
|
10
|
+
export declare const Autocomplete: ({ label, placeHolder, inputIcon, inputEndIcon, size, variant }: IAutocompleteProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface IBadgeProps {
|
|
2
|
+
label: string;
|
|
3
|
+
size?: "sm" | "md" | "lg";
|
|
4
|
+
color?: "neutral" | "default" | "primary" | "danger" | "success";
|
|
5
|
+
textColor?: "white" | "black";
|
|
6
|
+
type?: "pill" | "Rectangle";
|
|
7
|
+
}
|
|
8
|
+
export declare const Badge: ({ label, color, type, size, textColor, }: IBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ButtonProps {
|
|
3
|
+
type?: "button" | "submit";
|
|
4
|
+
variant?: "solid" | "bordered" | "light" | "flat" | "faded" | "shadow";
|
|
5
|
+
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
6
|
+
textColor?: "black" | "white";
|
|
7
|
+
size?: "sm" | "md" | "lg";
|
|
8
|
+
rounded?: "none" | "sm" | "md" | "lg" | "full";
|
|
9
|
+
label?: string;
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
iconPosition?: "right" | "left";
|
|
12
|
+
width?: "full" | "auto";
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const Button: ({ type, variant, color, textColor, size, rounded, label, icon, iconPosition, width, disabled, onClick, }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface IChipProps {
|
|
3
|
+
variant?: "solid" | "bordered" | "light" | "flat" | "faded" | "shadow" | "dot";
|
|
4
|
+
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
5
|
+
textColor?: "black" | "white";
|
|
6
|
+
size?: "sm" | "md" | "lg";
|
|
7
|
+
rounded?: "none" | "sm" | "md" | "lg" | "full";
|
|
8
|
+
label?: string;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const Chip: ({ variant, color, textColor, label, size, rounded, children, }: IChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface IInputProps {
|
|
3
|
+
id: string | number;
|
|
4
|
+
label?: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
register?: any;
|
|
7
|
+
name?: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
onChange?: (value: string) => void;
|
|
10
|
+
placeHolder?: string;
|
|
11
|
+
variant?: "flat" | "bordered" | "faded";
|
|
12
|
+
color?: "default" | "primary" | "success" | "warning" | "danger";
|
|
13
|
+
size?: "sm" | "lg";
|
|
14
|
+
rounded?: "sm" | "full";
|
|
15
|
+
description?: string;
|
|
16
|
+
icon?: ReactNode;
|
|
17
|
+
endIcon?: ReactNode;
|
|
18
|
+
errorMsg?: string;
|
|
19
|
+
hasError?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const Input: ({ id, label, required, register, name, value, onChange, placeHolder, variant, color, size, rounded, description, icon, endIcon, errorMsg, hasError, }: IInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface IRadioProps {
|
|
3
|
+
name: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
onChange?: (value: string) => void;
|
|
8
|
+
size?: "sm" | "md" | "lg";
|
|
9
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral";
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const Radio: ({ name, value, checked, disabled, onChange, size, color, children, }: IRadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
interface IRangeSliderProps {
|
|
3
|
+
value: number | number[];
|
|
4
|
+
setValue: Dispatch<SetStateAction<any>>;
|
|
5
|
+
min?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
color?: "foreground" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
9
|
+
tooltipColor?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
10
|
+
tooltipTextColor?: "white" | "black";
|
|
11
|
+
}
|
|
12
|
+
export declare const RangeSlider: ({ value, setValue, min, max, step, color, tooltipColor, tooltipTextColor, }: IRangeSliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface ISwitchProps {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
onChange: () => void;
|
|
4
|
+
label?: string;
|
|
5
|
+
labelPosition?: "right" | "left";
|
|
6
|
+
size?: "sm" | "md" | "lg";
|
|
7
|
+
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const Switch: ({ enabled, onChange, label, labelPosition, size, color, disabled, }: ISwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface ITooltipProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
4
|
+
textColor?: "black" | "white";
|
|
5
|
+
size?: "sm" | "md" | "lg";
|
|
6
|
+
rounded?: "none" | "sm" | "md" | "lg" | "full";
|
|
7
|
+
direction?: "top" | "right" | "left" | "bottom";
|
|
8
|
+
position?: "start" | "center" | "end";
|
|
9
|
+
}
|
|
10
|
+
export declare const Tooltip: ({ label, color, textColor, size, rounded, direction, position, }: ITooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { Alert } from './Alert';
|
|
2
|
+
export { Badge } from './Badge';
|
|
3
|
+
export { Button } from './Button';
|
|
4
|
+
export { Chip } from './Chip';
|
|
5
|
+
export { Input } from './Input';
|
|
6
|
+
export { Radio } from './Radio';
|
|
7
|
+
export { RangeSlider } from './RangeSlider';
|
|
8
|
+
export { Select } from './Select';
|
|
9
|
+
export { Switch } from './Switch';
|
|
10
|
+
export { Tooltip } from './Tooltip';
|