@diwauhris/ui 1.4.2 → 1.4.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.cjs
CHANGED
|
@@ -4762,6 +4762,17 @@ function Statistic({ label, value, helper, icon: Icon, trend, trendLabel, varian
|
|
|
4762
4762
|
});
|
|
4763
4763
|
}
|
|
4764
4764
|
//#endregion
|
|
4765
|
+
//#region src/ui-library/gallery/status-dot/StatusDot.tsx
|
|
4766
|
+
function StatusDot({ status, label, className = "" }) {
|
|
4767
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
4768
|
+
className: `status-dot-cell ${className}`,
|
|
4769
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
4770
|
+
className: `status-dot ${status}`,
|
|
4771
|
+
"aria-hidden": "true"
|
|
4772
|
+
}), label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: label })]
|
|
4773
|
+
});
|
|
4774
|
+
}
|
|
4775
|
+
//#endregion
|
|
4765
4776
|
//#region src/ui-library/gallery/status-actions/statusActions.ts
|
|
4766
4777
|
/**
|
|
4767
4778
|
* statusActions — Gallery-native lifecycle transition utilities.
|
|
@@ -5016,6 +5027,7 @@ exports.SkeletonText = SkeletonText;
|
|
|
5016
5027
|
exports.Spinner = Spinner;
|
|
5017
5028
|
exports.Statistic = Statistic;
|
|
5018
5029
|
exports.StatusBadge = StatusBadge;
|
|
5030
|
+
exports.StatusDot = StatusDot;
|
|
5019
5031
|
exports.Stepper = Stepper;
|
|
5020
5032
|
exports.Switch = Switch;
|
|
5021
5033
|
exports.Tab = Tab;
|
package/lib/index.mjs
CHANGED
|
@@ -4739,6 +4739,17 @@ function Statistic({ label, value, helper, icon: Icon, trend, trendLabel, varian
|
|
|
4739
4739
|
});
|
|
4740
4740
|
}
|
|
4741
4741
|
//#endregion
|
|
4742
|
+
//#region src/ui-library/gallery/status-dot/StatusDot.tsx
|
|
4743
|
+
function StatusDot({ status, label, className = "" }) {
|
|
4744
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
4745
|
+
className: `status-dot-cell ${className}`,
|
|
4746
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
4747
|
+
className: `status-dot ${status}`,
|
|
4748
|
+
"aria-hidden": "true"
|
|
4749
|
+
}), label && /* @__PURE__ */ jsx("span", { children: label })]
|
|
4750
|
+
});
|
|
4751
|
+
}
|
|
4752
|
+
//#endregion
|
|
4742
4753
|
//#region src/ui-library/gallery/status-actions/statusActions.ts
|
|
4743
4754
|
/**
|
|
4744
4755
|
* statusActions — Gallery-native lifecycle transition utilities.
|
|
@@ -4922,4 +4933,4 @@ var shadow = {
|
|
|
4922
4933
|
overlay: "shadow-xl"
|
|
4923
4934
|
};
|
|
4924
4935
|
//#endregion
|
|
4925
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityFeed, Alert, ApprovalTimeline, Avatar, Badge, BarChart, Breadcrumb, Button, Calendar, Card, CardContent, CardFooter, CardHeader, Checkbox, Combobox, CommandPalette, ConfirmAction, ConfirmDialog, DatePicker, DescriptionItem, DescriptionList, Dialog, DialogBody, DialogFooter, Divider, Drawer, Dropdown, EmployeeCard, EmptyState, ErrorBanner, Field, FieldContext, FieldInput, FileUpload, FilterChip, Heatmap, IconButton, Input, Kanban, LineChart, Menu, Modal, OtpInput, PageHeader, Pagination, PermissionMatrix, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioItem, Section, SegmentedControl, Select, SidebarGroup, SidebarItem, SidebarNav, SidebarSection, Skeleton, SkeletonAvatar, SkeletonCard, SkeletonTableRow, SkeletonText, Spinner, Statistic, StatusBadge, Stepper, Switch, Tab, TabList, TabPanel, TabPanels, Tabs, Textarea, Timeline, TimelineEmptyState, TimelineFooter, TimelineItem, TimelineValueCard, Toaster, Toolbar, Tooltip, TreeView, ValidationSummary, colors_exports as colors, dimension_exports as dimension, radius_exports as radius, shadow_exports as shadow, statusMenuItems, toast, typography_exports as typography, useFieldContext };
|
|
4936
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityFeed, Alert, ApprovalTimeline, Avatar, Badge, BarChart, Breadcrumb, Button, Calendar, Card, CardContent, CardFooter, CardHeader, Checkbox, Combobox, CommandPalette, ConfirmAction, ConfirmDialog, DatePicker, DescriptionItem, DescriptionList, Dialog, DialogBody, DialogFooter, Divider, Drawer, Dropdown, EmployeeCard, EmptyState, ErrorBanner, Field, FieldContext, FieldInput, FileUpload, FilterChip, Heatmap, IconButton, Input, Kanban, LineChart, Menu, Modal, OtpInput, PageHeader, Pagination, PermissionMatrix, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioItem, Section, SegmentedControl, Select, SidebarGroup, SidebarItem, SidebarNav, SidebarSection, Skeleton, SkeletonAvatar, SkeletonCard, SkeletonTableRow, SkeletonText, Spinner, Statistic, StatusBadge, StatusDot, Stepper, Switch, Tab, TabList, TabPanel, TabPanels, Tabs, Textarea, Timeline, TimelineEmptyState, TimelineFooter, TimelineItem, TimelineValueCard, Toaster, Toolbar, Tooltip, TreeView, ValidationSummary, colors_exports as colors, dimension_exports as dimension, radius_exports as radius, shadow_exports as shadow, statusMenuItems, toast, typography_exports as typography, useFieldContext };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StatusDot — Design System Component
|
|
3
|
+
*
|
|
4
|
+
* A coloured glowing dot paired with a label. Used in tables to indicate
|
|
5
|
+
* account or entity status at a glance.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* <StatusDot status="active" label="Active" />
|
|
9
|
+
* <StatusDot status="locked" label="Locked" />
|
|
10
|
+
*/
|
|
11
|
+
export type StatusDotStatus = 'active' | 'locked' | 'inactive' | 'pending';
|
|
12
|
+
export interface StatusDotProps {
|
|
13
|
+
status: StatusDotStatus;
|
|
14
|
+
label?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function StatusDot({ status, label, className }: StatusDotProps): import("react").JSX.Element;
|
|
@@ -122,6 +122,8 @@ export { Heatmap } from './gallery/heatmap/Heatmap';
|
|
|
122
122
|
export type { HeatmapProps, HeatmapDataPoint, HeatmapScale } from './gallery/heatmap/Heatmap';
|
|
123
123
|
export { Statistic } from './gallery/stat-card/Statistic';
|
|
124
124
|
export type { StatisticProps, StatisticTrend, StatisticVariant } from './gallery/stat-card/Statistic';
|
|
125
|
+
export { StatusDot } from './gallery/status-dot/StatusDot';
|
|
126
|
+
export type { StatusDotProps, StatusDotStatus } from './gallery/status-dot/StatusDot';
|
|
125
127
|
export { Toaster, toast } from 'sonner';
|
|
126
128
|
export { statusMenuItems } from './gallery/status-actions/statusActions';
|
|
127
129
|
export type { ActionMenuItem, Lifecycle, StatusTransitionRequest, StatusMenuOptions } from './gallery/status-actions/statusActions';
|