@namuna-nur/ui-kit 1.6.3 → 1.7.0
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/index.js +114 -112
- package/lib/molecules/index.js +101 -99
- package/lib/shared/Avatar.tokens.js +2816 -4184
- package/lib/shared/CardPie.tokens.js +59973 -0
- package/lib/shared/TabDots.tokens.js +205 -209
- package/lib/src/assets/icons/index.d.ts +2 -1
- package/lib/src/molecules/ApartmentCard/ApartmentCard.types.d.ts +2 -2
- package/lib/src/molecules/CardFiles/index.d.ts +1 -1
- package/lib/src/molecules/CardPie/CardPie.d.ts +2 -0
- package/lib/src/molecules/CardPie/CardPie.stories.d.ts +6 -0
- package/lib/src/molecules/CardPie/CardPie.test.d.ts +1 -0
- package/lib/src/molecules/CardPie/CardPie.tokens.d.ts +11 -0
- package/lib/src/molecules/CardPie/CardPie.types.d.ts +32 -0
- package/lib/src/molecules/CardPie/CardPie.utils.d.ts +77 -0
- package/lib/src/molecules/CardPie/index.d.ts +3 -0
- package/lib/src/molecules/CheckboxGroup/CheckboxGroup.types.d.ts +1 -1
- package/lib/src/molecules/SelectList/SelectList.tokens.d.ts +1 -0
- package/lib/src/molecules/index.d.ts +1 -0
- package/lib/style.css +1 -1
- package/package.json +5 -3
- package/lib/shared/FloorSelect.tokens.js +0 -11436
|
@@ -6,6 +6,7 @@ import { default as ArrowDownDownloadIcon } from './arrow-down-download.svg?reac
|
|
|
6
6
|
import { default as ArrowDownMiniIcon } from './arrow-down-mini.svg?react';
|
|
7
7
|
import { default as ArrowDownSmallIcon } from './arrow-down-small.svg?react';
|
|
8
8
|
import { default as ArrowDownIcon } from './arrow-down.svg?react';
|
|
9
|
+
import { default as ArrowLineIcon } from './arrow-line.svg?react';
|
|
9
10
|
import { default as ArrowUpIcon } from './arrow-up.svg?react';
|
|
10
11
|
import { default as ArrowIcon } from './arrow.svg?react';
|
|
11
12
|
import { default as AvatarIcon } from './avatar.svg?react';
|
|
@@ -148,4 +149,4 @@ import { default as UsersIcon } from './users.svg?react';
|
|
|
148
149
|
import { default as UtilityServiceIcon } from './utility-services.svg?react';
|
|
149
150
|
import { default as XmarkIcon } from './x-mark.svg?react';
|
|
150
151
|
import { default as LogoIcon } from '../images/logo.svg?react';
|
|
151
|
-
export { AddHomeIcon, AddUserIcon, AdjustmentsIcon, AnalyticsIcon, ArrowDownIcon, ArrowDownDownloadIcon, ArrowDownMiniIcon, ArrowDownSmallIcon, ArrowIcon, ArrowUpIcon, AvatarIcon, BackIcon, BellIcon, BotIcon, BuildingIcon, BurgerFilterIcon, BurgerIcon, CalendarIcon, CameraIcon, CameraMiniIcon, CameraServiceIcon, CarMultipleIcon, CarbonFilterIcon, CardIcon, ChatCheckIcon, ChatMessageIcon, CheckIcon, CheckDoubleIcon, ChatsIcon, CheckMarkIcon, CleaningServiceIcon, CloseIcon, ColdWaterIcon, CommentIcon, ControlIcon, CreateGroupIcon, CrossIcon, CrossProfileIcon, DangerIcon, DeleteIcon, DocumentFillIcon, DocumentIcon, DocumentTextIcon, DotListIcon, DotableSettings, DoubleChatIcon, DownloadIcon, DropDownIcon, DropUpIcon, EditIcon, EditPencilIcon, ElectricianSereviceIcon, ElectricalEnergyIcon, EmailIcon, EmployeesIcon, EmptyDoc, ExitIcon, ExportIcon, EyeCardIcon, EyeClosedIcon, EyeIcon, FeedbacksIcon, FileIcon, FileReportIcon, FileUploadIcon, FilterIcon, FinanceIcon, FireIcon, FolderHomeIcon, FolderIcon, FolderInputIcon, FolderSolidIcon, FullFolderIcon, GarbageIcon, GisHomeIcon, GridIcon, GroupUserIcon, HistoryBoldIcon, HomeDotIcon, HomeIcon, HomeSuccessIcon, HotWaterIcon, HouseIcon, LogoIcon, LogoWithTextIcon, LeftIcon, LeaveIcon, LinkDownloadIcon, ListIcon, LoadIcon, LockIcon, LogoutIcon, MagnifyIcon, ManageObjectsIcon, MapIcon, MenuDotsIcon, ModalPlusIcon, MobileIcon, NewsIcon, NotificationBellIcon, NotificationIcon, OfficeIcon, OperatorIcon, OptionsIcon, OrderDoneIcon, ParkingIcon, ParkingPlaceIcon, PdfFileIcon, PdfIcon, PencilIcon, PhoneIcon, PickerLeftIcon, PickerRightIcon, PlaneIcon, PlusIcon, PlusInputIcon, PlumberServiceIcon, PrintIcon, RatingIcon, RentServiceIcon, RepairServiceIcon, ReportIcon, RightIcon, RoleSettingIcon, ResponseArrowIcon, RoundedCopyIcon, ServiceManagementIcon, SettingIcon, ShareIcon, SolarEyeIcon, StarIcon, StatusCheckIcon, StatusCloseIcon, StatusInfoIcon, StatusWarningIcon, StepperReloadIcon, TelegramIcon, ThinPlusIcon, TimeLineIcon, TrashIcon, UserIcon, UserStarIcon, UserSuccesIcon, UserTimeIcon, UserProfileAvatarIcon, UserSettingsIcon, UsersIcon, UsersSettingsIcon, UtilityServiceIcon, XmarkIcon, };
|
|
152
|
+
export { AddHomeIcon, AddUserIcon, AdjustmentsIcon, AnalyticsIcon, ArrowDownIcon, ArrowDownDownloadIcon, ArrowDownMiniIcon, ArrowDownSmallIcon, ArrowIcon, ArrowUpIcon, AvatarIcon, ArrowLineIcon, BackIcon, BellIcon, BotIcon, BuildingIcon, BurgerFilterIcon, BurgerIcon, CalendarIcon, CameraIcon, CameraMiniIcon, CameraServiceIcon, CarMultipleIcon, CarbonFilterIcon, CardIcon, ChatCheckIcon, ChatMessageIcon, CheckIcon, CheckDoubleIcon, ChatsIcon, CheckMarkIcon, CleaningServiceIcon, CloseIcon, ColdWaterIcon, CommentIcon, ControlIcon, CreateGroupIcon, CrossIcon, CrossProfileIcon, DangerIcon, DeleteIcon, DocumentFillIcon, DocumentIcon, DocumentTextIcon, DotListIcon, DotableSettings, DoubleChatIcon, DownloadIcon, DropDownIcon, DropUpIcon, EditIcon, EditPencilIcon, ElectricianSereviceIcon, ElectricalEnergyIcon, EmailIcon, EmployeesIcon, EmptyDoc, ExitIcon, ExportIcon, EyeCardIcon, EyeClosedIcon, EyeIcon, FeedbacksIcon, FileIcon, FileReportIcon, FileUploadIcon, FilterIcon, FinanceIcon, FireIcon, FolderHomeIcon, FolderIcon, FolderInputIcon, FolderSolidIcon, FullFolderIcon, GarbageIcon, GisHomeIcon, GridIcon, GroupUserIcon, HistoryBoldIcon, HomeDotIcon, HomeIcon, HomeSuccessIcon, HotWaterIcon, HouseIcon, LogoIcon, LogoWithTextIcon, LeftIcon, LeaveIcon, LinkDownloadIcon, ListIcon, LoadIcon, LockIcon, LogoutIcon, MagnifyIcon, ManageObjectsIcon, MapIcon, MenuDotsIcon, ModalPlusIcon, MobileIcon, NewsIcon, NotificationBellIcon, NotificationIcon, OfficeIcon, OperatorIcon, OptionsIcon, OrderDoneIcon, ParkingIcon, ParkingPlaceIcon, PdfFileIcon, PdfIcon, PencilIcon, PhoneIcon, PickerLeftIcon, PickerRightIcon, PlaneIcon, PlusIcon, PlusInputIcon, PlumberServiceIcon, PrintIcon, RatingIcon, RentServiceIcon, RepairServiceIcon, ReportIcon, RightIcon, RoleSettingIcon, ResponseArrowIcon, RoundedCopyIcon, ServiceManagementIcon, SettingIcon, ShareIcon, SolarEyeIcon, StarIcon, StatusCheckIcon, StatusCloseIcon, StatusInfoIcon, StatusWarningIcon, StepperReloadIcon, TelegramIcon, ThinPlusIcon, TimeLineIcon, TrashIcon, UserIcon, UserStarIcon, UserSuccesIcon, UserTimeIcon, UserProfileAvatarIcon, UserSettingsIcon, UsersIcon, UsersSettingsIcon, UtilityServiceIcon, XmarkIcon, };
|
|
@@ -8,7 +8,7 @@ export type ApartmentCardDataTypes = {
|
|
|
8
8
|
items?: {
|
|
9
9
|
subtitle?: string;
|
|
10
10
|
link?: string;
|
|
11
|
-
|
|
11
|
+
id: string | number;
|
|
12
12
|
}[];
|
|
13
13
|
};
|
|
14
14
|
export type ApartmentCardProps = {
|
|
@@ -25,5 +25,5 @@ export type ApartmentCardProps = {
|
|
|
25
25
|
headerIcon?: string;
|
|
26
26
|
icon?: string;
|
|
27
27
|
};
|
|
28
|
-
onCLick?: () => void;
|
|
28
|
+
onCLick?: (id: string | number) => void;
|
|
29
29
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { CardPie } from '..';
|
|
3
|
+
export type CardPieProps = {
|
|
4
|
+
mode?: 'doughtnut' | 'pie';
|
|
5
|
+
title: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
data: {
|
|
8
|
+
total: number;
|
|
9
|
+
growth: number;
|
|
10
|
+
rented: number;
|
|
11
|
+
sold: number;
|
|
12
|
+
free: number;
|
|
13
|
+
blocked?: number;
|
|
14
|
+
};
|
|
15
|
+
colors: string[];
|
|
16
|
+
classNames?: {
|
|
17
|
+
root?: string;
|
|
18
|
+
header?: string;
|
|
19
|
+
link?: string;
|
|
20
|
+
totalText?: string;
|
|
21
|
+
block?: string;
|
|
22
|
+
total?: string;
|
|
23
|
+
badge?: string;
|
|
24
|
+
percent?: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type CardPieOptionsProps = {
|
|
28
|
+
mode: CardPieProps['mode'];
|
|
29
|
+
colors: CardPieProps['colors'];
|
|
30
|
+
data: Omit<CardPieProps['data'], 'total' | 'growth'>;
|
|
31
|
+
};
|
|
32
|
+
export type CardPieStory = StoryObj<typeof CardPie>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { CardPieOptionsProps } from '..';
|
|
2
|
+
export declare const getChartOptions: ({ mode, colors, data, }: CardPieOptionsProps) => {
|
|
3
|
+
color: string[];
|
|
4
|
+
tooltip: {
|
|
5
|
+
trigger: string;
|
|
6
|
+
formatter: string;
|
|
7
|
+
};
|
|
8
|
+
legend: {
|
|
9
|
+
itemWidth: number;
|
|
10
|
+
itemHeight: number;
|
|
11
|
+
itemGap: number;
|
|
12
|
+
icon: string;
|
|
13
|
+
textStyle: {
|
|
14
|
+
padding: number[];
|
|
15
|
+
color: string;
|
|
16
|
+
fontSize: number;
|
|
17
|
+
fontWeight: number;
|
|
18
|
+
rich: {
|
|
19
|
+
name: {
|
|
20
|
+
fontSize: number;
|
|
21
|
+
fontWeight: number;
|
|
22
|
+
};
|
|
23
|
+
value: {
|
|
24
|
+
fontSize: number;
|
|
25
|
+
fontWeight: number;
|
|
26
|
+
align: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
formatter: (name: string) => string;
|
|
31
|
+
orient: string;
|
|
32
|
+
left: number;
|
|
33
|
+
bottom: string;
|
|
34
|
+
} | {
|
|
35
|
+
itemWidth: number;
|
|
36
|
+
itemHeight: number;
|
|
37
|
+
itemGap: number;
|
|
38
|
+
icon: string;
|
|
39
|
+
textStyle: {
|
|
40
|
+
padding: number[];
|
|
41
|
+
color: string;
|
|
42
|
+
fontSize: number;
|
|
43
|
+
fontWeight: number;
|
|
44
|
+
rich: {
|
|
45
|
+
name: {
|
|
46
|
+
fontSize: number;
|
|
47
|
+
fontWeight: number;
|
|
48
|
+
};
|
|
49
|
+
value: {
|
|
50
|
+
fontSize: number;
|
|
51
|
+
fontWeight: number;
|
|
52
|
+
align: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
formatter: (name: string) => string;
|
|
57
|
+
orient: string;
|
|
58
|
+
left: string;
|
|
59
|
+
top: string;
|
|
60
|
+
};
|
|
61
|
+
series: {
|
|
62
|
+
name: "doughtnut" | "pie";
|
|
63
|
+
type: string;
|
|
64
|
+
center: string[];
|
|
65
|
+
radius: string[];
|
|
66
|
+
label: {
|
|
67
|
+
show: boolean;
|
|
68
|
+
};
|
|
69
|
+
labelLine: {
|
|
70
|
+
show: boolean;
|
|
71
|
+
};
|
|
72
|
+
data: {
|
|
73
|
+
value: number;
|
|
74
|
+
name: string;
|
|
75
|
+
}[];
|
|
76
|
+
}[];
|
|
77
|
+
};
|