@namuna-nur/ui-kit 1.7.0 → 1.9.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.
Files changed (91) hide show
  1. package/lib/index.js +147 -136
  2. package/lib/molecules/index.js +113 -103
  3. package/lib/shared/Avatar.tokens.js +637 -675
  4. package/lib/shared/{CardPie.tokens.js → CardProgress.tokens.js} +14456 -13562
  5. package/lib/shared/TabDots.tokens.js +12 -12
  6. package/lib/src/_shared/ProgressBar.utils.d.ts +8 -0
  7. package/lib/src/_shared/index.d.ts +1 -0
  8. package/lib/src/assets/icons/index.d.ts +5 -1
  9. package/lib/src/atoms/Input/Input.d.ts +1 -2
  10. package/lib/src/atoms/Input/Input.tokens.d.ts +2 -21
  11. package/lib/src/atoms/Input/Input.types.d.ts +3 -5
  12. package/lib/src/atoms/Notification/Notification.stories.d.ts +1 -0
  13. package/lib/src/atoms/Select/Select.d.ts +1 -1
  14. package/lib/src/atoms/Select/Select.stories.d.ts +2 -3
  15. package/lib/src/atoms/Select/Select.tokens.d.ts +4 -14
  16. package/lib/src/atoms/Select/Select.types.d.ts +2 -6
  17. package/lib/src/atoms/Textarea/Textarea.d.ts +1 -2
  18. package/lib/src/atoms/Textarea/Textarea.types.d.ts +3 -5
  19. package/lib/src/molecules/CardMonthly/CardMonthly.d.ts +2 -0
  20. package/lib/src/molecules/CardMonthly/CardMonthly.stories.d.ts +6 -0
  21. package/lib/src/molecules/CardMonthly/CardMonthly.tokens.d.ts +7 -0
  22. package/lib/src/molecules/CardMonthly/CardMonthly.types.d.ts +21 -0
  23. package/lib/src/molecules/CardMonthly/CardMonthly.utils.d.ts +45 -0
  24. package/lib/src/molecules/CardMonthly/index.d.ts +3 -0
  25. package/lib/src/molecules/CardPieChart/CardPieChart.d.ts +2 -0
  26. package/lib/src/molecules/CardPieChart/CardPieChart.stories.d.ts +7 -0
  27. package/lib/src/molecules/CardPieChart/CardPieChart.tokens.d.ts +20 -0
  28. package/lib/src/molecules/CardPieChart/CardPieChart.types.d.ts +45 -0
  29. package/lib/src/molecules/{CardPie/CardPie.utils.d.ts → CardPieChart/CardPieChart.utils.d.ts} +2 -2
  30. package/lib/src/molecules/CardPieChart/index.d.ts +3 -0
  31. package/lib/src/molecules/CardProgress/CardProgress.d.ts +2 -0
  32. package/lib/src/molecules/CardProgress/CardProgress.stories.d.ts +5 -0
  33. package/lib/src/molecules/CardProgress/CardProgress.test.d.ts +1 -0
  34. package/lib/src/molecules/CardProgress/CardProgress.tokens.d.ts +12 -0
  35. package/lib/src/molecules/CardProgress/CardProgress.types.d.ts +22 -0
  36. package/lib/src/molecules/CardProgress/index.d.ts +3 -0
  37. package/lib/src/molecules/CardRingChart/CardRingChart.d.ts +2 -0
  38. package/lib/src/molecules/CardRingChart/CardRingChart.stories.d.ts +5 -0
  39. package/lib/src/molecules/CardRingChart/CardRingChart.test.d.ts +1 -0
  40. package/lib/src/molecules/CardRingChart/CardRingChart.tokens.d.ts +16 -0
  41. package/lib/src/molecules/CardRingChart/CardRingChart.types.d.ts +33 -0
  42. package/lib/src/molecules/CardRingChart/CardRingChart.utils.d.ts +49 -0
  43. package/lib/src/molecules/CardRingChart/index.d.ts +3 -0
  44. package/lib/src/molecules/CardStat/CardStat.d.ts +2 -0
  45. package/lib/src/molecules/CardStat/CardStat.stories.d.ts +10 -0
  46. package/lib/src/molecules/CardStat/CardStat.test.d.ts +1 -0
  47. package/lib/src/molecules/CardStat/CardStat.tokens.d.ts +12 -0
  48. package/lib/src/molecules/CardStat/CardStat.types.d.ts +29 -0
  49. package/lib/src/molecules/CardStat/CardStat.utils.d.ts +38 -0
  50. package/lib/src/molecules/CardStat/index.d.ts +3 -0
  51. package/lib/src/molecules/CommentInput/CommentInput.tokens.d.ts +2 -9
  52. package/lib/src/molecules/CommentInput/CommentInput.types.d.ts +2 -0
  53. package/lib/src/molecules/DatePicker/DatePicker.d.ts +1 -1
  54. package/lib/src/molecules/DatePicker/DatePicker.stories.d.ts +1 -1
  55. package/lib/src/molecules/DatePicker/DatePicker.tokens.d.ts +6 -1
  56. package/lib/src/molecules/DatePicker/DatePicker.types.d.ts +2 -1
  57. package/lib/src/molecules/DateRangePicker/DateRangePicker.stories.d.ts +1 -0
  58. package/lib/src/molecules/DateRangePicker/DateRangePicker.types.d.ts +2 -0
  59. package/lib/src/molecules/InputGroup/InputGroup.d.ts +1 -1
  60. package/lib/src/molecules/InputGroup/InputGroup.stories.d.ts +1 -1
  61. package/lib/src/molecules/InputGroup/InputGroup.tokens.d.ts +0 -4
  62. package/lib/src/molecules/InputGroup/InputGroup.types.d.ts +2 -2
  63. package/lib/src/molecules/MultiSelect/MultiSelect.stories.d.ts +1 -0
  64. package/lib/src/molecules/MultiSelect/MultiSelect.types.d.ts +6 -1
  65. package/lib/src/molecules/PasswordInput/PasswordInput.stories.d.ts +1 -1
  66. package/lib/src/molecules/PhoneInput/PhoneInput.stories.d.ts +1 -1
  67. package/lib/src/molecules/PhoneInput/PhoneInput.types.d.ts +3 -4
  68. package/lib/src/molecules/Rating/Rating.d.ts +2 -0
  69. package/lib/src/molecules/Rating/Rating.stories.d.ts +6 -0
  70. package/lib/src/molecules/Rating/Rating.test.d.ts +1 -0
  71. package/lib/src/molecules/Rating/Rating.tokens.d.ts +12 -0
  72. package/lib/src/molecules/Rating/Rating.types.d.ts +13 -0
  73. package/lib/src/molecules/Rating/Rating.utils.d.ts +1 -0
  74. package/lib/src/molecules/Rating/index.d.ts +3 -0
  75. package/lib/src/molecules/SelectGroup/SelectGroup.stories.d.ts +1 -0
  76. package/lib/src/molecules/TextareaGroup/TextareaGroup.types.d.ts +1 -0
  77. package/lib/src/molecules/UploadInput/UploadInput.d.ts +1 -2
  78. package/lib/src/molecules/UploadInput/UploadInput.tokens.d.ts +3 -3
  79. package/lib/src/molecules/UploadInput/UploadInput.types.d.ts +2 -2
  80. package/lib/src/molecules/index.d.ts +6 -1
  81. package/lib/src/utils/index.d.ts +1 -0
  82. package/lib/src/utils/numberFormat.d.ts +1 -0
  83. package/lib/style.css +1 -1
  84. package/lib/utils/index.js +10 -8
  85. package/package.json +1 -1
  86. package/lib/src/molecules/CardPie/CardPie.d.ts +0 -2
  87. package/lib/src/molecules/CardPie/CardPie.stories.d.ts +0 -6
  88. package/lib/src/molecules/CardPie/CardPie.tokens.d.ts +0 -11
  89. package/lib/src/molecules/CardPie/CardPie.types.d.ts +0 -32
  90. package/lib/src/molecules/CardPie/index.d.ts +0 -3
  91. /package/lib/src/molecules/{CardPie/CardPie.test.d.ts → CardPieChart/CardPieChart.test.d.ts} +0 -0
@@ -3,11 +3,11 @@ import * as n from "react";
3
3
  import * as ht from "react-dom";
4
4
  import { b as wt, a as P } from "./twMerge.js";
5
5
  const Tt = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 19, height: 19, fill: "currentFill", ...e }, /* @__PURE__ */ n.createElement("path", { fillOpacity: 0.8, d: "M1.6 8a.75.75 0 0 1-.75-.75v-6A.75.75 0 0 1 1.6.5h6a.75.75 0 0 1 .75.75v6A.75.75 0 0 1 7.6 8zm10.5 0a.75.75 0 0 1-.75-.75v-6A.75.75 0 0 1 12.1.5h6a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-.75.75zM1.6 18.5a.75.75 0 0 1-.75-.75v-6A.75.75 0 0 1 1.6 11h6a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-.75.75zm10.5 0a.75.75 0 0 1-.75-.75v-6a.75.75 0 0 1 .75-.75h6a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-.75.75z" })), gt = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 19, height: 13, fill: "currentFill", ...e }, /* @__PURE__ */ n.createElement("path", { fillOpacity: 0.8, d: "M1.45 12.45a1 1 0 0 1-.72-.28 1 1 0 0 1-.28-.72q0-.43.28-.7.3-.3.72-.3h16q.43 0 .7.3.3.27.3.7a1 1 0 0 1-1 1zm0-5a1 1 0 0 1-.72-.28 1 1 0 0 1-.28-.72q0-.42.28-.7.3-.3.72-.3h16q.43 0 .7.3.3.27.3.7a1 1 0 0 1-1 1zm0-5a1 1 0 0 1-.72-.28 1 1 0 0 1-.28-.72q0-.43.28-.7.3-.3.72-.3h16q.43 0 .7.3.3.28.3.7a1 1 0 0 1-1 1z" })), Te = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 25, fill: "none", ...e }, /* @__PURE__ */ n.createElement("path", { fill: "currentFill", d: "M9.73 18.24a1.2 1.2 0 0 1-.85-.35l-4.53-4.53a1.2 1.2 0 0 1 0-1.7 1.2 1.2 0 0 1 1.7 0l3.68 3.69 8.23-8.23a1.2 1.2 0 0 1 1.7 0 1.2 1.2 0 0 1 0 1.7l-9.08 9.07a1.2 1.2 0 0 1-.85.35" })), yt = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 25, fill: "none", ...e }, /* @__PURE__ */ n.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.36, d: "m7 17.5 10-10M17 17.5 7 7.5" })), bt = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 25, fill: "none", ...e }, /* @__PURE__ */ n.createElement("path", { fill: "currentFill", d: "M12.37 9.49a1.4 1.4 0 0 0-1.4 1.39v9.73c0 .76.64 1.39 1.4 1.39a1.4 1.4 0 0 0 1.39-1.39v-9.73a1.4 1.4 0 0 0-1.4-1.4M12.37 3c-.5 0-.97.19-1.32.54q-.25.28-.4.6-.14.35-.14.71c0 .49.2.97.54 1.32.69.69 1.95.69 2.63 0a1.84 1.84 0 0 0 .39-2.02q-.14-.34-.39-.61A1.8 1.8 0 0 0 12.37 3" })), Et = (e) => /* @__PURE__ */ n.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 25, fill: "none", ...e }, /* @__PURE__ */ n.createElement("path", { fill: "currentFill", d: "M12.37 15.51a1.4 1.4 0 0 1-1.4-1.39V4.4c0-.76.64-1.39 1.4-1.39s1.39.63 1.39 1.39v9.73a1.4 1.4 0 0 1-1.4 1.4M12.37 22c-.5 0-.97-.19-1.32-.54a3 3 0 0 1-.4-.6q-.14-.35-.14-.71c0-.49.2-.97.54-1.32a1.94 1.94 0 0 1 2.63 0 1.84 1.84 0 0 1 .39 2.02q-.14.33-.39.61-.54.53-1.31.54" })), Ct = {
6
- success: /* @__PURE__ */ s.jsx(Te, { className: "text-success-10 fill-success-10" }),
7
- danger: /* @__PURE__ */ s.jsx(yt, { className: "text-danger-10 fill-danger-10" }),
8
- info: /* @__PURE__ */ s.jsx(bt, { className: "text-info-10 fill-info-10" }),
9
- warning: /* @__PURE__ */ s.jsx(Et, { className: "text-sidebar-20 fill-sidebar-20" }),
10
- default: /* @__PURE__ */ s.jsx(Te, { className: "text-success-10 fill-success-10" })
6
+ success: /* @__PURE__ */ s.jsx(Te, { className: "text-sidebar-10 fill-sidebar-10" }),
7
+ danger: /* @__PURE__ */ s.jsx(yt, { className: "text-sidebar-10 fill-sidebar-10" }),
8
+ info: /* @__PURE__ */ s.jsx(bt, { className: "text-sidebar-10 fill-sidebar-10" }),
9
+ warning: /* @__PURE__ */ s.jsx(Et, { className: "text-sidebar-10 fill-sidebar-10" }),
10
+ default: /* @__PURE__ */ s.jsx(Te, { className: "text-sidebar-10 fill-sidebar-10" })
11
11
  };
12
12
  var Pt = Object.freeze({
13
13
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
@@ -458,15 +458,15 @@ const ye = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, be = wt, q
458
458
  ));
459
459
  Ut.displayName = $e.displayName;
460
460
  const Yt = qt(
461
- "group pointer-events-auto rounded-[10px] relative border-l-2 flex w-full items-center justify-between space-x-2 overflow-hidden py-3 px-[15px] transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full dark:border-neutral-800",
461
+ "group pointer-events-auto rounded-[10px] text-sidebar-10 relative flex w-full items-center justify-between space-x-2 overflow-hidden py-3 px-[15px] transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full dark:border-neutral-800",
462
462
  {
463
463
  variants: {
464
464
  variant: {
465
- success: "text-success-10 bg-success-10/[.20] border-success-10",
466
- danger: "text-danger-10 bg-danger-10/[.20] border-danger-10",
467
- info: "text-info-10 bg-info-10/[.20] border-info-10",
468
- warning: "text-sidebar-20 bg-sidebar-20/[.20] border-sidebar-20",
469
- default: "text-success-10 bg-success-10/[.20] border-success-10"
465
+ success: "bg-success-10",
466
+ danger: "bg-danger-10",
467
+ info: "bg-info-10",
468
+ warning: "bg-sidebar-20",
469
+ default: "bg-success-10"
470
470
  }
471
471
  },
472
472
  defaultVariants: {
@@ -521,7 +521,7 @@ const Ge = n.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ s.jsx(
521
521
  ze,
522
522
  {
523
523
  ref: t,
524
- className: P("text-xs font-normal opacity-90", e),
524
+ className: P("text-xs font-normal", e),
525
525
  ...r
526
526
  }
527
527
  ));
@@ -0,0 +1,8 @@
1
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
2
+ import * as React from 'react';
3
+ export declare const ProgressRoot: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ export declare const ProgressIndicator: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
5
+ classNames?: {
6
+ indicator?: string;
7
+ };
8
+ } & React.RefAttributes<HTMLDivElement>>;
@@ -4,3 +4,4 @@ export * from './Dropdown.utils';
4
4
  export * from './Tab.utils';
5
5
  export * from './Modal.utils';
6
6
  export * from './Notification.utils';
7
+ export * from './ProgressBar.utils';
@@ -9,9 +9,11 @@ import { default as ArrowDownIcon } from './arrow-down.svg?react';
9
9
  import { default as ArrowLineIcon } from './arrow-line.svg?react';
10
10
  import { default as ArrowUpIcon } from './arrow-up.svg?react';
11
11
  import { default as ArrowIcon } from './arrow.svg?react';
12
+ import { default as AsteriskIcon } from './asterisk.svg?react';
12
13
  import { default as AvatarIcon } from './avatar.svg?react';
13
14
  import { default as BackIcon } from './back.svg?react';
14
15
  import { default as BellIcon } from './bell.svg?react';
16
+ import { default as BigStarIcon } from './big-star.svg?react';
15
17
  import { default as BotIcon } from './bot.svg?react';
16
18
  import { default as BuildingIcon } from './building.svg?react';
17
19
  import { default as BurgerIcon } from './burger.svg?react';
@@ -30,6 +32,7 @@ import { default as CheckDoubleIcon } from './check-double.svg?react';
30
32
  import { default as CheckIcon } from './check.svg?react';
31
33
  import { default as CheckMarkIcon } from './checkmark.svg?react';
32
34
  import { default as CleaningServiceIcon } from './cleaning-service.svg?react';
35
+ import { default as CleaningIcon } from './cleaning.svg?react';
33
36
  import { default as CloseIcon } from './close.svg?react';
34
37
  import { default as ColdWaterIcon } from './cold-water.svg?react';
35
38
  import { default as CommentIcon } from './comment.svg?react';
@@ -128,6 +131,7 @@ import { default as ServiceManagementIcon } from './service-management.svg?react
128
131
  import { default as SettingIcon } from './setting.svg?react';
129
132
  import { default as ShareIcon } from './share.svg?react';
130
133
  import { default as SolarEyeIcon } from './solar-eye.svg?react';
134
+ import { default as StarPerson } from './star-person.svg?react';
131
135
  import { default as StarIcon } from './star.svg?react';
132
136
  import { default as StatusCheckIcon } from './statusCheck.svg?react';
133
137
  import { default as StatusCloseIcon } from './statusClose.svg?react';
@@ -149,4 +153,4 @@ import { default as UsersIcon } from './users.svg?react';
149
153
  import { default as UtilityServiceIcon } from './utility-services.svg?react';
150
154
  import { default as XmarkIcon } from './x-mark.svg?react';
151
155
  import { default as LogoIcon } from '../images/logo.svg?react';
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, };
156
+ export { AddHomeIcon, AddUserIcon, AdjustmentsIcon, AnalyticsIcon, AsteriskIcon, ArrowDownIcon, ArrowDownDownloadIcon, ArrowDownMiniIcon, ArrowDownSmallIcon, ArrowIcon, ArrowUpIcon, AvatarIcon, ArrowLineIcon, BackIcon, BellIcon, BotIcon, BuildingIcon, BigStarIcon, BurgerFilterIcon, BurgerIcon, CalendarIcon, CameraIcon, CleaningIcon, 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, StarPerson, StatusCheckIcon, StatusCloseIcon, StatusInfoIcon, StatusWarningIcon, StepperReloadIcon, TelegramIcon, ThinPlusIcon, TimeLineIcon, TrashIcon, UserIcon, UserStarIcon, UserSuccesIcon, UserTimeIcon, UserProfileAvatarIcon, UserSettingsIcon, UsersIcon, UsersSettingsIcon, UtilityServiceIcon, XmarkIcon, };
@@ -1,6 +1,5 @@
1
1
  export declare const Input: import('react').ForwardRefExoticComponent<import('react').InputHTMLAttributes<HTMLInputElement> & {
2
- status?: import('..').InputMessageType;
3
- message?: string;
2
+ status?: import('..').InputStatusType;
4
3
  classNames?: {
5
4
  parent?: string;
6
5
  target?: string;
@@ -1,21 +1,2 @@
1
- export declare const inputTokens: {
2
- parent: string;
3
- base: string;
4
- disabled: string;
5
- state: {
6
- active: string;
7
- focus: string;
8
- hover: string;
9
- };
10
- styles: {
11
- danger: string;
12
- info: string;
13
- success: string;
14
- };
15
- maxLength: string;
16
- message: {
17
- danger: string;
18
- success: string;
19
- info: string;
20
- };
21
- };
1
+ import { InputTokens } from './Input.types';
2
+ export declare const inputTokens: InputTokens;
@@ -2,21 +2,19 @@ import { StoryObj } from '@storybook/react';
2
2
  import { InputHTMLAttributes } from 'react';
3
3
  import { Input } from '..';
4
4
  export type InputStory = StoryObj<typeof Input>;
5
- export type InputMessageType = 'success' | 'danger' | 'info';
5
+ export type InputStatusType = 'success' | 'danger' | 'info';
6
6
  export type InputStatus = 'active' | 'focus' | 'hover';
7
7
  export type InputLabel = 'base' | 'disabled';
8
8
  export type InputTokens = {
9
9
  parent: string;
10
10
  base: string;
11
11
  disabled: string;
12
- styles: Record<InputMessageType, string>;
12
+ styles: Record<InputStatusType, string>;
13
13
  state: Record<InputStatus, string>;
14
- message: Record<InputMessageType, string>;
15
14
  maxLength?: string;
16
15
  };
17
16
  export type InputProps = InputHTMLAttributes<HTMLInputElement> & {
18
- status?: InputMessageType;
19
- message?: string;
17
+ status?: InputStatusType;
20
18
  classNames?: {
21
19
  parent?: string;
22
20
  target?: string;
@@ -7,3 +7,4 @@ export declare const TypeInfo: () => import("react/jsx-runtime").JSX.Element;
7
7
  export declare const TypeSuccess: () => import("react/jsx-runtime").JSX.Element;
8
8
  export declare const TypeWarning: () => import("react/jsx-runtime").JSX.Element;
9
9
  export declare const TypeDanger: () => import("react/jsx-runtime").JSX.Element;
10
+ export declare const WhithoutDescription: () => import("react/jsx-runtime").JSX.Element;
@@ -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,21 +23,11 @@ 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
- danger: {
30
- message: string;
31
- trigger: string;
32
- };
33
- info: {
34
- message: string;
35
- trigger: string;
36
- };
37
- success: {
38
- message: string;
39
- trigger: string;
40
- };
28
+ danger: string;
29
+ info: string;
30
+ success: string;
41
31
  };
42
32
  };
43
33
  };
@@ -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: {
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
2
  export declare const Textarea: React.ForwardRefExoticComponent<React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
3
- status?: import('..').TextareaMessageType;
4
- message?: string;
3
+ status?: import('..').TextareaStatus;
5
4
  } & React.RefAttributes<HTMLTextAreaElement>>;
@@ -2,23 +2,21 @@ import { StoryObj } from '@storybook/react';
2
2
  import { TextareaHTMLAttributes } from 'react';
3
3
  import { Textarea } from '..';
4
4
  export type TextareaStory = StoryObj<typeof Textarea>;
5
- export type TextareaMessageType = 'success' | 'danger' | 'info';
5
+ export type TextareaStatus = 'success' | 'danger' | 'info';
6
6
  export type TextareaTokens = {
7
7
  root: string;
8
8
  base: string;
9
9
  disabled: string;
10
10
  messageContainer: string;
11
- styles: Record<TextareaMessageType, string>;
11
+ styles: Record<TextareaStatus, string>;
12
12
  icon: {
13
13
  input: string;
14
14
  base: string;
15
15
  parent: string;
16
16
  };
17
17
  state: Record<'focus' | 'hover', string>;
18
- message: Record<TextareaMessageType, string>;
19
18
  maxLength: string;
20
19
  };
21
20
  export type TextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
22
- status?: TextareaMessageType;
23
- message?: string;
21
+ status?: TextareaStatus;
24
22
  };
@@ -0,0 +1,2 @@
1
+ import { CardMonthlyProps } from '..';
2
+ export declare const CardMonthly: import('react').ForwardRefExoticComponent<CardMonthlyProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,6 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { CardMonthly, CardMonthlyStory } from '..';
3
+ declare const meta: Meta<typeof CardMonthly>;
4
+ export declare const Master: CardMonthlyStory;
5
+ export declare const Service: CardMonthlyStory;
6
+ export default meta;
@@ -0,0 +1,7 @@
1
+ export declare const cardMonthlyTokens: {
2
+ root: string;
3
+ title: string;
4
+ status: string;
5
+ block: string;
6
+ serviceTitle: string;
7
+ };
@@ -0,0 +1,21 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { AvatarGroupProps, CardMonthly } from '..';
3
+ export type CardMonthlyProps = {
4
+ icon: React.ReactNode;
5
+ title: string;
6
+ total: number;
7
+ percent: number;
8
+ mode: 'master' | 'service';
9
+ avatarGroupProps?: AvatarGroupProps;
10
+ rating?: number;
11
+ service?: {
12
+ name: string;
13
+ type: string;
14
+ icon: React.ReactNode;
15
+ };
16
+ classNames?: {
17
+ root?: string;
18
+ block?: string;
19
+ };
20
+ };
21
+ export type CardMonthlyStory = StoryObj<typeof CardMonthly>;
@@ -0,0 +1,45 @@
1
+ export declare const getChartOptions: (value: number) => {
2
+ emphasis: {
3
+ disabled: boolean;
4
+ };
5
+ title: {
6
+ text: string;
7
+ left: string;
8
+ top: string;
9
+ textStyle: {
10
+ fontSize: number;
11
+ fontWeight: number;
12
+ color: string;
13
+ };
14
+ };
15
+ tooltip: boolean;
16
+ series: {
17
+ type: string;
18
+ radius: string[];
19
+ startAngle: number;
20
+ hoverAnimation: boolean;
21
+ emphasis: {
22
+ scale: boolean;
23
+ disabled: boolean;
24
+ };
25
+ label: {
26
+ show: boolean;
27
+ };
28
+ labelLine: {
29
+ show: boolean;
30
+ };
31
+ data: ({
32
+ value: number;
33
+ itemStyle: {
34
+ color: string;
35
+ borderRadius: number;
36
+ };
37
+ } | {
38
+ value: number;
39
+ itemStyle: {
40
+ color: string;
41
+ borderRadius?: undefined;
42
+ };
43
+ })[];
44
+ }[];
45
+ };
@@ -0,0 +1,3 @@
1
+ export { CardMonthly } from './CardMonthly';
2
+ export * from './CardMonthly.tokens';
3
+ export type * from './CardMonthly.types';
@@ -0,0 +1,2 @@
1
+ import { CardPieChartProps } from '..';
2
+ export declare const CardPieChart: import('react').ForwardRefExoticComponent<CardPieChartProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,7 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { CardPieChartStory, CardPieChart } from '..';
3
+ declare const meta: Meta<typeof CardPieChart>;
4
+ export declare const PieChart: CardPieChartStory;
5
+ export declare const DoughnutChart: CardPieChartStory;
6
+ export declare const Progress: CardPieChartStory;
7
+ export default meta;
@@ -0,0 +1,20 @@
1
+ export declare const cardPieChartTokens: {
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
+ progress: {
12
+ root: string;
13
+ line: string;
14
+ row: string;
15
+ name: string;
16
+ bar: string;
17
+ indicator: string;
18
+ value: string;
19
+ };
20
+ };
@@ -0,0 +1,45 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { CardPieChart } from '..';
3
+ export type CardPieChartProps = {
4
+ chartMode?: 'doughtnut' | 'pie';
5
+ mode?: 'chart' | 'progress';
6
+ title: string;
7
+ icon?: React.ReactNode;
8
+ data: {
9
+ total: number;
10
+ growth?: number;
11
+ rented: number;
12
+ sold: number;
13
+ free: number;
14
+ blocked?: number;
15
+ };
16
+ colors: string[];
17
+ classNames?: {
18
+ root?: string;
19
+ header?: string;
20
+ link?: string;
21
+ totalText?: string;
22
+ block?: string;
23
+ total?: string;
24
+ badge?: string;
25
+ percent?: string;
26
+ progress?: {
27
+ root?: string;
28
+ line?: string;
29
+ row?: string;
30
+ name?: string;
31
+ bar?: string;
32
+ indicator?: string;
33
+ value?: string;
34
+ };
35
+ };
36
+ };
37
+ export type CardPieChartOptionsProps = {
38
+ chartMode: CardPieChartProps['chartMode'];
39
+ colors: CardPieChartProps['colors'];
40
+ items: {
41
+ value: number;
42
+ name: string;
43
+ }[];
44
+ };
45
+ export type CardPieChartStory = StoryObj<typeof CardPieChart>;
@@ -1,5 +1,5 @@
1
- import { CardPieOptionsProps } from '..';
2
- export declare const getChartOptions: ({ mode, colors, data, }: CardPieOptionsProps) => {
1
+ import { CardPieChartOptionsProps } from '..';
2
+ export declare const getChartOptions: ({ chartMode, colors, items, }: CardPieChartOptionsProps) => {
3
3
  color: string[];
4
4
  tooltip: {
5
5
  trigger: string;
@@ -0,0 +1,3 @@
1
+ export { CardPieChart } from './CardPieChart';
2
+ export * from './CardPieChart.tokens';
3
+ export type * from './CardPieChart.types';
@@ -0,0 +1,2 @@
1
+ import { CardProgressProps } from '..';
2
+ export declare const CardProgress: import('react').ForwardRefExoticComponent<CardProgressProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,5 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { CardProgressStory, CardProgress } from '..';
3
+ declare const meta: Meta<typeof CardProgress>;
4
+ export declare const Default: CardProgressStory;
5
+ export default meta;
@@ -0,0 +1,12 @@
1
+ export declare const cardProgressTokens: {
2
+ root: string;
3
+ header: string;
4
+ link: string;
5
+ title: string;
6
+ bar: {
7
+ block: string;
8
+ text: string;
9
+ bar: string;
10
+ indicator: string;
11
+ };
12
+ };
@@ -0,0 +1,22 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { CardProgress } from '..';
3
+ export type CardProgressProps = {
4
+ paid: number;
5
+ pending: number;
6
+ overdue: number;
7
+ title: string;
8
+ icon: React.ReactNode;
9
+ total: number;
10
+ classNames?: {
11
+ header?: string;
12
+ link?: string;
13
+ root?: string;
14
+ bar: {
15
+ block?: string;
16
+ text?: string;
17
+ bar?: string;
18
+ indicator?: string;
19
+ };
20
+ };
21
+ };
22
+ export type CardProgressStory = StoryObj<typeof CardProgress>;
@@ -0,0 +1,3 @@
1
+ export { CardProgress } from './CardProgress';
2
+ export * from './CardProgress.tokens';
3
+ export type * from './CardProgress.types';
@@ -0,0 +1,2 @@
1
+ import { CardRingChartProps } from '..';
2
+ export declare const CardRingChart: import('react').ForwardRefExoticComponent<CardRingChartProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,5 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { CardRingChartStory, CardRingChart } from '..';
3
+ declare const meta: Meta<typeof CardRingChart>;
4
+ export declare const RingChart: CardRingChartStory;
5
+ export default meta;
@@ -0,0 +1,16 @@
1
+ export declare const cardRingChartTokens: {
2
+ root: string;
3
+ header: string;
4
+ link: string;
5
+ title: string;
6
+ totalText: string;
7
+ block: string;
8
+ total: string;
9
+ info: string;
10
+ chartBlock: string;
11
+ legend: {
12
+ main: string;
13
+ root: string;
14
+ dot: string;
15
+ };
16
+ };
@@ -0,0 +1,33 @@
1
+ import { StoryObj } from '@storybook/react-vite';
2
+ import { CardRingChart } from '..';
3
+ export type CardRingChartProps = {
4
+ title: string;
5
+ icon?: React.ReactNode;
6
+ data: {
7
+ total: number;
8
+ active: number;
9
+ cooming: number;
10
+ expired: number;
11
+ };
12
+ colors: string[];
13
+ classNames?: {
14
+ root?: string;
15
+ header?: string;
16
+ link?: string;
17
+ totalText?: string;
18
+ block?: string;
19
+ total?: string;
20
+ info?: string;
21
+ chartBlock?: string;
22
+ legend?: {
23
+ root?: string;
24
+ main?: string;
25
+ };
26
+ };
27
+ };
28
+ export type CardRingChartStory = StoryObj<typeof CardRingChart>;
29
+ export type CardRingChartOptionsProps = {
30
+ total: number;
31
+ value: number;
32
+ color: string;
33
+ };
@@ -0,0 +1,49 @@
1
+ import { CardRingChartOptionsProps } from '..';
2
+ export declare const getChartOptions: ({ total, value, color, }: CardRingChartOptionsProps) => {
3
+ emphasis: {
4
+ disabled: boolean;
5
+ };
6
+ title: {
7
+ text: string;
8
+ left: string;
9
+ top: string;
10
+ textStyle: {
11
+ fontSize: number;
12
+ fontWeight: number;
13
+ color: string;
14
+ };
15
+ };
16
+ tooltip: {
17
+ trigger: string;
18
+ formatter: string;
19
+ };
20
+ series: {
21
+ type: string;
22
+ radius: string[];
23
+ startAngle: number;
24
+ hoverAnimation: boolean;
25
+ emphasis: {
26
+ scale: boolean;
27
+ disabled: boolean;
28
+ };
29
+ label: {
30
+ show: boolean;
31
+ };
32
+ labelLine: {
33
+ show: boolean;
34
+ };
35
+ data: ({
36
+ value: number;
37
+ itemStyle: {
38
+ color: string;
39
+ borderRadius: number;
40
+ };
41
+ } | {
42
+ value: number;
43
+ itemStyle: {
44
+ color: string;
45
+ borderRadius?: undefined;
46
+ };
47
+ })[];
48
+ }[];
49
+ };