@namuna-nur/ui-kit 1.6.2 → 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.
@@ -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, };
@@ -1,2 +1,2 @@
1
1
  import { ApartmentCardProps } from '..';
2
- export declare const ApartmentCard: ({ title, options, icon, iconDimensions, classNames, }: ApartmentCardProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ApartmentCard: ({ title, options, icon, iconDimensions, classNames, onCLick, }: ApartmentCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,5 +8,6 @@ export declare const apartmentCardTokens: {
8
8
  items: string;
9
9
  item: string;
10
10
  link: string;
11
- heraderIcon: string;
11
+ headerIcon: string;
12
+ icon: string;
12
13
  };
@@ -8,7 +8,7 @@ export type ApartmentCardDataTypes = {
8
8
  items?: {
9
9
  subtitle?: string;
10
10
  link?: string;
11
- url?: string;
11
+ id: string | number;
12
12
  }[];
13
13
  };
14
14
  export type ApartmentCardProps = {
@@ -22,5 +22,8 @@ export type ApartmentCardProps = {
22
22
  };
23
23
  classNames?: {
24
24
  root?: string;
25
+ headerIcon?: string;
26
+ icon?: string;
25
27
  };
28
+ onCLick?: (id: string | number) => void;
26
29
  };
@@ -1,3 +1,3 @@
1
1
  export { CardFiles } from './CardFiles';
2
2
  export * from './CardFiles.tokens';
3
- export * from './CardFiles.types';
3
+ export type * from './CardFiles.types';
@@ -0,0 +1,2 @@
1
+ import { CardPieProps } from '..';
2
+ export declare const CardPie: import('react').ForwardRefExoticComponent<CardPieProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,6 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { CardPieStory, CardPie } from '..';
3
+ declare const meta: Meta<typeof CardPie>;
4
+ export declare const PieChart: CardPieStory;
5
+ export declare const DoughnutChart: CardPieStory;
6
+ export default meta;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export declare const cardPieTokens: {
2
+ root: string;
3
+ header: string;
4
+ link: string;
5
+ title: string;
6
+ totalText: string;
7
+ block: string;
8
+ total: string;
9
+ badge: string;
10
+ percent: string;
11
+ };
@@ -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
+ };
@@ -0,0 +1,3 @@
1
+ export { CardPie } from './CardPie';
2
+ export * from './CardPie.tokens';
3
+ export type * from './CardPie.types';
@@ -1,6 +1,6 @@
1
1
  import { CheckboxProps } from '../../atoms';
2
2
  export type CheckboxGroupProps = CheckboxProps & {
3
- label: string;
3
+ label: string | React.ReactNode;
4
4
  className?: string;
5
5
  labelPosition?: 'top' | 'right' | 'left';
6
6
  disabled?: boolean;
@@ -34,5 +34,6 @@ export type PlateProps = {
34
34
  actions?: React.ReactNode;
35
35
  flatType?: string;
36
36
  statusOptions?: StatusSelectOptionsType[];
37
+ onClick?: (e: string) => void;
37
38
  };
38
39
  export declare const PlateStatusData: StatusSelectOptionsType[];
@@ -2,6 +2,7 @@ export declare const selectListTokens: {
2
2
  container: string;
3
3
  base: {
4
4
  icon: string;
5
+ iconDisabled: string;
5
6
  items: string;
6
7
  itemsText: string;
7
8
  placeholder: string;
@@ -50,3 +50,4 @@ export * from './DeleteMessage';
50
50
  export * from './MessageSettings';
51
51
  export * from './TabList';
52
52
  export * from './FloorSelect';
53
+ export * from './CardPie';