@diwauhris/ui 1.5.0 → 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.
- package/lib/assets/ui.css +134 -51
- package/lib/index.cjs +2847 -115
- package/lib/index.mjs +2836 -118
- package/lib/types/ui-library/gallery/charts/AreaChart.d.ts +110 -0
- package/lib/types/ui-library/gallery/charts/BarList.d.ts +65 -0
- package/lib/types/ui-library/gallery/charts/Charts.d.ts +21 -5
- package/lib/types/ui-library/gallery/combobox/Combobox.d.ts +2 -1
- package/lib/types/ui-library/gallery/org-chart/OrgChart.d.ts +77 -0
- package/lib/types/ui-library/gallery/org-unit-tree/OrgUnitTree.d.ts +84 -0
- package/lib/types/ui-library/gallery/page-sample/IsoCubeBlock.d.ts +28 -0
- package/lib/types/ui-library/gallery/status-page/StatusPage.d.ts +112 -0
- package/lib/types/ui-library/gallery/template-samples/templates/PafTemplate.d.ts +57 -0
- package/lib/types/ui-library/gallery/template-samples/templates/PayslipTemplate.d.ts +42 -0
- package/lib/types/ui-library/gallery/template-samples/templates/ReportTemplate.d.ts +18 -0
- package/lib/types/ui-library/gallery/template-samples/templates/TimekeepingTemplate.d.ts +22 -0
- package/lib/types/ui-library/index.d.ts +21 -1
- package/lib/types/ui-library/registry.d.ts +3 -9
- package/package.json +15 -2
|
@@ -106,6 +106,8 @@ export { Timeline, TimelineItem, TimelineValueCard, TimelineFooter, TimelineEmpt
|
|
|
106
106
|
export type { TimelineProps, TimelineItemProps, TimelineValueCardProps, TimelineFooterProps, TimelineEmptyStateProps } from './gallery/timeline/Timeline';
|
|
107
107
|
export { EmptyState } from './gallery/empty-state/EmptyState';
|
|
108
108
|
export type { EmptyStateProps } from './gallery/empty-state/EmptyState';
|
|
109
|
+
export { StatusPage, STATUS_PAGE_PRESETS } from './gallery/status-page/StatusPage';
|
|
110
|
+
export type { StatusPageProps, StatusPageAction } from './gallery/status-page/StatusPage';
|
|
109
111
|
export { EmployeeCard } from './gallery/employee-card/EmployeeCard';
|
|
110
112
|
export type { EmployeeCardProps, EmployeeCardMeta } from './gallery/employee-card/EmployeeCard';
|
|
111
113
|
export { TreeView } from './gallery/tree-view/TreeView';
|
|
@@ -116,10 +118,28 @@ export { PermissionMatrix } from './gallery/permission-matrix/PermissionMatrix';
|
|
|
116
118
|
export type { PermissionMatrixProps, PermissionMatrixCell } from './gallery/permission-matrix/PermissionMatrix';
|
|
117
119
|
export { Calendar } from './gallery/calendar/Calendar';
|
|
118
120
|
export type { CalendarProps } from './gallery/calendar/Calendar';
|
|
119
|
-
export { BarChart, LineChart } from './gallery/charts/Charts';
|
|
121
|
+
export { BarChart, LineChart, CHART_PALETTE } from './gallery/charts/Charts';
|
|
120
122
|
export type { BarChartProps, LineChartProps, ChartDataPoint } from './gallery/charts/Charts';
|
|
123
|
+
export { AreaChart } from './gallery/charts/AreaChart';
|
|
124
|
+
export type { AreaChartProps, AreaChartSeries, AreaChartDataPoint, GradientOpacity, ThresholdLine, ChartAnnotation, HighlightRegion } from './gallery/charts/AreaChart';
|
|
125
|
+
export { BarList } from './gallery/charts/BarList';
|
|
126
|
+
export type { BarListProps, BarListItem, BarHeight } from './gallery/charts/BarList';
|
|
121
127
|
export { Heatmap } from './gallery/heatmap/Heatmap';
|
|
122
128
|
export type { HeatmapProps, HeatmapDataPoint, HeatmapScale } from './gallery/heatmap/Heatmap';
|
|
129
|
+
export { OrgChart } from './gallery/org-chart/OrgChart';
|
|
130
|
+
export type { OrgChartProps, OrgChartNode } from './gallery/org-chart/OrgChart';
|
|
131
|
+
export { OrgUnitTree } from './gallery/org-unit-tree/OrgUnitTree';
|
|
132
|
+
export type { OrgUnitTreeProps, OrgUnitNode } from './gallery/org-unit-tree/OrgUnitTree';
|
|
133
|
+
export { PafTemplate } from './gallery/template-samples/templates/PafTemplate';
|
|
134
|
+
export type { PafPreviewData } from './gallery/template-samples/templates/PafTemplate';
|
|
135
|
+
export { IsoCubeBlock } from './gallery/page-sample/IsoCubeBlock';
|
|
136
|
+
export type { IsoCubeBlockProps } from './gallery/page-sample/IsoCubeBlock';
|
|
137
|
+
export { PayslipTemplate } from './gallery/template-samples/templates/PayslipTemplate';
|
|
138
|
+
export type { PayslipPreviewData } from './gallery/template-samples/templates/PayslipTemplate';
|
|
139
|
+
export { ReportTemplate } from './gallery/template-samples/templates/ReportTemplate';
|
|
140
|
+
export type { ReportPreviewData } from './gallery/template-samples/templates/ReportTemplate';
|
|
141
|
+
export { TimekeepingTemplate } from './gallery/template-samples/templates/TimekeepingTemplate';
|
|
142
|
+
export type { TimekeepingPreviewData } from './gallery/template-samples/templates/TimekeepingTemplate';
|
|
123
143
|
export { Statistic } from './gallery/stat-card/Statistic';
|
|
124
144
|
export type { StatisticProps, StatisticTrend, StatisticVariant } from './gallery/stat-card/Statistic';
|
|
125
145
|
export { StatusDot } from './gallery/status-dot/StatusDot';
|
|
@@ -25,13 +25,7 @@ export interface ComponentEntry {
|
|
|
25
25
|
export declare const GALLERY_CATEGORIES: readonly ["Foundations", "Inputs", "Display", "Navigation", "Overlay", "Layout", "Data Display", "Enterprise"];
|
|
26
26
|
export type GalleryCategory = typeof GALLERY_CATEGORIES[number];
|
|
27
27
|
export declare const COMPONENT_REGISTRY: ComponentEntry[];
|
|
28
|
-
/**
|
|
29
|
-
export declare const POPULAR_COMPONENTS: ComponentEntry[];
|
|
30
|
-
/** Components grouped by category, preserving GALLERY_CATEGORIES order */
|
|
31
|
-
export declare function getComponentsByCategory(): Map<GalleryCategory, ComponentEntry[]>;
|
|
32
|
-
/** Search the registry by query (name, aliases, category) */
|
|
33
|
-
export declare function searchComponents(query: string): ComponentEntry[];
|
|
34
|
-
/** Look up a single component by id */
|
|
35
|
-
export declare function getComponent(id: string): ComponentEntry | undefined;
|
|
36
|
-
/** Look up related components by id list */
|
|
28
|
+
/** Look up multiple components by id for the RelatedComponents section */
|
|
37
29
|
export declare function getRelatedComponents(ids: string[]): ComponentEntry[];
|
|
30
|
+
/** Get all components grouped by category as a Map */
|
|
31
|
+
export declare function getComponentsByCategory(): Map<GalleryCategory, ComponentEntry[]>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diwauhris/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "DIWA UHRIS UI component library — React + Tailwind CSS",
|
|
7
7
|
"keywords": [
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"build:css": "vite build --config vite.css.config.ts",
|
|
36
36
|
"build:dts": "tsc --project tsconfig.lib.json --outDir lib/types",
|
|
37
37
|
"build:lib": "tsc -b && vite build --config vite.lib.config.ts && npm run build:css && npm run build:dts",
|
|
38
|
-
"
|
|
38
|
+
"test": "node --experimental-vm-modules node_modules/.bin/jest --config jest.config.cjs",
|
|
39
|
+
"test:audit": "node --experimental-vm-modules node_modules/.bin/jest --config jest.config.cjs --verbose",
|
|
39
40
|
"preview": "vite preview"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
@@ -58,17 +59,29 @@
|
|
|
58
59
|
"@fontsource/barlow": "^5.3.0"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
62
|
+
"@babel/core": "^8.0.1",
|
|
63
|
+
"@babel/preset-env": "^8.0.2",
|
|
64
|
+
"@babel/preset-react": "^8.0.1",
|
|
65
|
+
"@babel/preset-typescript": "^8.0.1",
|
|
61
66
|
"@eslint/js": "^10.0.1",
|
|
67
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
68
|
+
"@testing-library/react": "^16.3.2",
|
|
62
69
|
"@types/d3": "^7.4.3",
|
|
70
|
+
"@types/jest": "^30.0.0",
|
|
63
71
|
"@types/node": "^24.13.3",
|
|
64
72
|
"@types/react": "^19.2.17",
|
|
65
73
|
"@types/react-dom": "^19.2.3",
|
|
66
74
|
"@vitejs/plugin-react": "^6.0.4",
|
|
67
75
|
"autoprefixer": "^10.5.2",
|
|
76
|
+
"babel-jest": "^30.4.1",
|
|
68
77
|
"eslint": "^10.8.0",
|
|
69
78
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
70
79
|
"eslint-plugin-react-refresh": "^0.5.3",
|
|
71
80
|
"globals": "^17.7.0",
|
|
81
|
+
"identity-obj-proxy": "^3.0.0",
|
|
82
|
+
"jest": "^30.4.2",
|
|
83
|
+
"jest-axe": "^11.0.0",
|
|
84
|
+
"jest-environment-jsdom": "^30.4.1",
|
|
72
85
|
"postcss": "^8.5.15",
|
|
73
86
|
"tailwindcss": "^3.4.17",
|
|
74
87
|
"typescript": "~6.0.2",
|