@namuna-nur/ui-kit 1.6.3 → 1.7.1

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 { SelectProps } from '..';
2
- export declare const Select: ({ classNames, disabled, message, onChange, options, placeholder, value, isDotable, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Select: ({ classNames, disabled, status, onChange, options, placeholder, value, isDotable, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- import { Meta, StoryFn, StoryObj } from '@storybook/react';
2
- import { SelectProps, Select } from '..';
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Select } from '..';
3
3
  type Story = StoryObj<typeof Select>;
4
4
  declare const meta: Meta<typeof Select>;
5
- export declare const Template: StoryFn<SelectProps>;
6
5
  export declare const Default: Story;
7
6
  export declare const Selected: Story;
8
7
  export declare const Disabled: Story;
@@ -23,19 +23,15 @@ export declare const selectTokens: {
23
23
  dot: string;
24
24
  active: string;
25
25
  };
26
- message: {
27
- base: string;
26
+ status: {
28
27
  styles: {
29
28
  danger: {
30
- message: string;
31
29
  trigger: string;
32
30
  };
33
31
  info: {
34
- message: string;
35
32
  trigger: string;
36
33
  };
37
34
  success: {
38
- message: string;
39
35
  trigger: string;
40
36
  };
41
37
  };
@@ -9,11 +9,7 @@ export type SelectOption = {
9
9
  label: string;
10
10
  value: string;
11
11
  };
12
- export type SelectMessageType = 'success' | 'danger' | 'info';
13
- export type SelectMessage = {
14
- type: SelectMessageType;
15
- text: string;
16
- };
12
+ export type SelectStatusType = 'success' | 'danger' | 'info';
17
13
  export type SelectProps = {
18
14
  options: SelectOption[];
19
15
  onChange: (value: string) => void;
@@ -21,7 +17,7 @@ export type SelectProps = {
21
17
  classNames?: SelectClassNames;
22
18
  placeholder?: string;
23
19
  disabled?: boolean;
24
- message?: SelectMessage;
20
+ status?: SelectStatusType;
25
21
  isDotable?: boolean;
26
22
  };
27
23
  export declare const selectStoryItems: {
@@ -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 = {
@@ -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
  };
@@ -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;
@@ -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';