@namuna-nur/ui-kit 1.7.1 → 1.9.3
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 +147 -136
- package/lib/molecules/index.js +113 -103
- package/lib/shared/Avatar.tokens.js +430 -451
- package/lib/shared/{CardPie.tokens.js → CardProgress.tokens.js} +14707 -13831
- package/lib/shared/TabDots.tokens.js +12 -12
- package/lib/src/_shared/ProgressBar.utils.d.ts +8 -0
- package/lib/src/_shared/index.d.ts +1 -0
- package/lib/src/assets/icons/index.d.ts +5 -1
- package/lib/src/atoms/Input/Input.d.ts +1 -2
- package/lib/src/atoms/Input/Input.tokens.d.ts +2 -21
- package/lib/src/atoms/Input/Input.types.d.ts +3 -5
- package/lib/src/atoms/Notification/Notification.stories.d.ts +1 -0
- package/lib/src/atoms/Select/Select.tokens.d.ts +3 -9
- package/lib/src/atoms/Textarea/Textarea.d.ts +1 -2
- package/lib/src/atoms/Textarea/Textarea.types.d.ts +3 -5
- package/lib/src/molecules/CardMonthly/CardMonthly.d.ts +2 -0
- package/lib/src/molecules/CardMonthly/CardMonthly.stories.d.ts +6 -0
- package/lib/src/molecules/CardMonthly/CardMonthly.tokens.d.ts +7 -0
- package/lib/src/molecules/CardMonthly/CardMonthly.types.d.ts +21 -0
- package/lib/src/molecules/CardMonthly/CardMonthly.utils.d.ts +45 -0
- package/lib/src/molecules/CardMonthly/index.d.ts +3 -0
- package/lib/src/molecules/CardPieChart/CardPieChart.d.ts +2 -0
- package/lib/src/molecules/CardPieChart/CardPieChart.stories.d.ts +7 -0
- package/lib/src/molecules/CardPieChart/CardPieChart.tokens.d.ts +20 -0
- package/lib/src/molecules/CardPieChart/CardPieChart.types.d.ts +45 -0
- package/lib/src/molecules/{CardPie/CardPie.utils.d.ts → CardPieChart/CardPieChart.utils.d.ts} +2 -2
- package/lib/src/molecules/CardPieChart/index.d.ts +3 -0
- package/lib/src/molecules/CardProgress/CardProgress.d.ts +2 -0
- package/lib/src/molecules/CardProgress/CardProgress.stories.d.ts +5 -0
- package/lib/src/molecules/CardProgress/CardProgress.test.d.ts +1 -0
- package/lib/src/molecules/CardProgress/CardProgress.tokens.d.ts +12 -0
- package/lib/src/molecules/CardProgress/CardProgress.types.d.ts +22 -0
- package/lib/src/molecules/CardProgress/index.d.ts +3 -0
- package/lib/src/molecules/CardRingChart/CardRingChart.d.ts +2 -0
- package/lib/src/molecules/CardRingChart/CardRingChart.stories.d.ts +5 -0
- package/lib/src/molecules/CardRingChart/CardRingChart.test.d.ts +1 -0
- package/lib/src/molecules/CardRingChart/CardRingChart.tokens.d.ts +16 -0
- package/lib/src/molecules/CardRingChart/CardRingChart.types.d.ts +33 -0
- package/lib/src/molecules/CardRingChart/CardRingChart.utils.d.ts +49 -0
- package/lib/src/molecules/CardRingChart/index.d.ts +3 -0
- package/lib/src/molecules/CardStat/CardStat.d.ts +2 -0
- package/lib/src/molecules/CardStat/CardStat.stories.d.ts +10 -0
- package/lib/src/molecules/CardStat/CardStat.test.d.ts +1 -0
- package/lib/src/molecules/CardStat/CardStat.tokens.d.ts +12 -0
- package/lib/src/molecules/CardStat/CardStat.types.d.ts +29 -0
- package/lib/src/molecules/CardStat/CardStat.utils.d.ts +38 -0
- package/lib/src/molecules/CardStat/index.d.ts +3 -0
- package/lib/src/molecules/CommentInput/CommentInput.tokens.d.ts +2 -9
- package/lib/src/molecules/CommentInput/CommentInput.types.d.ts +2 -0
- package/lib/src/molecules/DatePicker/DatePicker.d.ts +1 -1
- package/lib/src/molecules/DatePicker/DatePicker.stories.d.ts +1 -1
- package/lib/src/molecules/DatePicker/DatePicker.tokens.d.ts +6 -1
- package/lib/src/molecules/DatePicker/DatePicker.types.d.ts +2 -1
- package/lib/src/molecules/DateRangePicker/DateRangePicker.stories.d.ts +1 -0
- package/lib/src/molecules/DateRangePicker/DateRangePicker.types.d.ts +2 -0
- package/lib/src/molecules/InputGroup/InputGroup.d.ts +1 -1
- package/lib/src/molecules/InputGroup/InputGroup.stories.d.ts +1 -1
- package/lib/src/molecules/InputGroup/InputGroup.tokens.d.ts +0 -4
- package/lib/src/molecules/InputGroup/InputGroup.types.d.ts +2 -2
- package/lib/src/molecules/MultiSelect/MultiSelect.stories.d.ts +1 -0
- package/lib/src/molecules/MultiSelect/MultiSelect.types.d.ts +6 -1
- package/lib/src/molecules/PasswordInput/PasswordInput.stories.d.ts +1 -1
- package/lib/src/molecules/PhoneInput/PhoneInput.stories.d.ts +1 -1
- package/lib/src/molecules/PhoneInput/PhoneInput.types.d.ts +3 -4
- package/lib/src/molecules/Rating/Rating.d.ts +2 -0
- package/lib/src/molecules/Rating/Rating.stories.d.ts +6 -0
- package/lib/src/molecules/Rating/Rating.test.d.ts +1 -0
- package/lib/src/molecules/Rating/Rating.tokens.d.ts +12 -0
- package/lib/src/molecules/Rating/Rating.types.d.ts +13 -0
- package/lib/src/molecules/Rating/Rating.utils.d.ts +1 -0
- package/lib/src/molecules/Rating/index.d.ts +3 -0
- package/lib/src/molecules/SelectGroup/SelectGroup.stories.d.ts +1 -0
- package/lib/src/molecules/SelectList/SelectList.types.d.ts +6 -0
- package/lib/src/molecules/TextareaGroup/TextareaGroup.types.d.ts +1 -0
- package/lib/src/molecules/UploadInput/UploadInput.d.ts +1 -2
- package/lib/src/molecules/UploadInput/UploadInput.tokens.d.ts +3 -3
- package/lib/src/molecules/UploadInput/UploadInput.types.d.ts +2 -2
- package/lib/src/molecules/index.d.ts +6 -1
- package/lib/src/utils/index.d.ts +1 -0
- package/lib/src/utils/numberFormat.d.ts +1 -0
- package/lib/style.css +1 -1
- package/lib/utils/index.js +10 -8
- package/package.json +1 -1
- package/lib/src/molecules/CardPie/CardPie.d.ts +0 -2
- package/lib/src/molecules/CardPie/CardPie.stories.d.ts +0 -6
- package/lib/src/molecules/CardPie/CardPie.tokens.d.ts +0 -11
- package/lib/src/molecules/CardPie/CardPie.types.d.ts +0 -32
- package/lib/src/molecules/CardPie/index.d.ts +0 -3
- /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-
|
|
7
|
-
danger: /* @__PURE__ */ s.jsx(yt, { className: "text-
|
|
8
|
-
info: /* @__PURE__ */ s.jsx(bt, { className: "text-
|
|
9
|
-
warning: /* @__PURE__ */ s.jsx(Et, { className: "text-sidebar-
|
|
10
|
-
default: /* @__PURE__ */ s.jsx(Te, { className: "text-
|
|
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]
|
|
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: "
|
|
466
|
-
danger: "
|
|
467
|
-
info: "
|
|
468
|
-
warning: "
|
|
469
|
-
default: "
|
|
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
|
|
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>>;
|
|
@@ -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('..').
|
|
3
|
-
message?: string;
|
|
2
|
+
status?: import('..').InputStatusType;
|
|
4
3
|
classNames?: {
|
|
5
4
|
parent?: string;
|
|
6
5
|
target?: string;
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
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<
|
|
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?:
|
|
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;
|
|
@@ -25,15 +25,9 @@ export declare const selectTokens: {
|
|
|
25
25
|
};
|
|
26
26
|
status: {
|
|
27
27
|
styles: {
|
|
28
|
-
danger:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
info: {
|
|
32
|
-
trigger: string;
|
|
33
|
-
};
|
|
34
|
-
success: {
|
|
35
|
-
trigger: string;
|
|
36
|
-
};
|
|
28
|
+
danger: string;
|
|
29
|
+
info: string;
|
|
30
|
+
success: string;
|
|
37
31
|
};
|
|
38
32
|
};
|
|
39
33
|
};
|
|
@@ -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('..').
|
|
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
|
|
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<
|
|
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?:
|
|
23
|
-
message?: string;
|
|
21
|
+
status?: TextareaStatus;
|
|
24
22
|
};
|
|
@@ -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,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>;
|
package/lib/src/molecules/{CardPie/CardPie.utils.d.ts → CardPieChart/CardPieChart.utils.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getChartOptions: ({
|
|
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { CardStat, CardStatStory } from '..';
|
|
3
|
+
declare const meta: Meta<typeof CardStat>;
|
|
4
|
+
export declare const Stat: CardStatStory;
|
|
5
|
+
export declare const Bid: CardStatStory;
|
|
6
|
+
export declare const DangerBid: CardStatStory;
|
|
7
|
+
export declare const PrimaryBid: CardStatStory;
|
|
8
|
+
export declare const Payment: CardStatStory;
|
|
9
|
+
export declare const Count: CardStatStory;
|
|
10
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|