@hybridcore/ui 1.6.1 → 1.6.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/CATALOG.md +179 -0
- package/README.md +1 -2
- package/dist/AccordionSummary-CJppWeqF.js +781 -0
- package/dist/Add-CqcD1PWb.js +403 -0
- package/dist/Box-DqUMmZjL.js +31 -0
- package/dist/Button-C5yquWAB.js +357 -0
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-fBLhTHbF.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-CGJ7alb8.js → DialogContent-BvVjD9z3.js} +127 -122
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-_opV1iNK.js → IconButton-BoGwbvrP.js} +26 -26
- package/dist/{InputLabel-rEwwnD4_.js → InputLabel-Dd8RrneV.js} +140 -153
- package/dist/{MenuItem-DrE50M_p.js → MenuItem-DwqJqzuM.js} +65 -89
- package/dist/Modal-MUZygjmQ.js +1158 -0
- package/dist/Paper-BkQLdsCI.js +582 -0
- package/dist/Select-DHUl_uG3.js +3916 -0
- package/dist/SwitchBase-DTndTqI8.js +235 -0
- package/dist/TextField-e2oKaUN1.js +669 -0
- package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
- package/dist/{Typography-B-Z5Y0Xq.js → Typography-DgsSLCFC.js} +28 -26
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/logic.js +1 -1
- package/dist/components/button/index.js +10 -0
- package/dist/components/button/logic.js +26 -0
- package/dist/components/button/styled.js +9 -0
- package/dist/components/charts/_common/chart-error.js +19 -0
- package/dist/components/charts/candlestick/index.js +3 -3
- package/dist/components/charts/candlestick/logic.js +123 -113
- package/dist/components/charts/chart-wrapper/index.js +5 -5
- package/dist/components/charts/column-line-mix/index.js +9 -8
- package/dist/components/charts/column-line-mix/logic.js +68 -71
- package/dist/components/charts/drill-down-treemap/index.js +8 -7
- package/dist/components/charts/drill-down-treemap/logic.js +138 -144
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
- package/dist/components/charts/heatmap/index.js +9 -8
- package/dist/components/charts/heatmap/logic.js +167 -173
- package/dist/components/charts/highlighting-line-data/index.js +3 -3
- package/dist/components/charts/line/index.js +9 -8
- package/dist/components/charts/line/logic.js +74 -79
- package/dist/components/charts/logaritmic-scale/index.js +9 -8
- package/dist/components/charts/logaritmic-scale/logic.js +63 -69
- package/dist/components/charts/multiple-value-axes/index.js +9 -8
- package/dist/components/charts/multiple-value-axes/logic.js +101 -107
- package/dist/components/charts/nested-pie/index.js +9 -8
- package/dist/components/charts/nested-pie/logic.js +62 -68
- package/dist/components/charts/packed-circles/index.js +7 -6
- package/dist/components/charts/packed-circles/logic.js +50 -56
- package/dist/components/charts/pie-chart/index.js +9 -8
- package/dist/components/charts/pie-chart/logic.js +49 -54
- package/dist/components/charts/stacked-area-radar/index.js +8 -7
- package/dist/components/charts/stacked-area-radar/logic.js +113 -118
- package/dist/components/charts/stacked-column-chart/index.js +9 -8
- package/dist/components/charts/stacked-column-chart/logic.js +78 -84
- package/dist/components/charts/xy-chart/index.js +9 -8
- package/dist/components/charts/xy-chart/logic.js +56 -60
- package/dist/components/collapsible-card/index.js +11 -10
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +7120 -0
- package/dist/components/color-picker/logic.js +18 -0
- package/dist/components/color-picker/styled.js +7 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-grid/index.js +22 -0
- package/dist/components/data-grid/logic.js +15 -0
- package/dist/components/data-grid/styled.js +20 -0
- package/dist/components/data-map/components/controls/index.js +4 -6
- package/dist/components/data-map/index.js +11 -11
- package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
- package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
- package/dist/components/data-security-selectors/security-level/index.js +18 -15
- package/dist/components/data-security-selectors/security-level/logic.js +18 -63
- package/dist/components/data-security-selectors/security-level/styled.js +23 -17
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/date-range-picker/index.js +2748 -0
- package/dist/components/date-range-picker/styled.js +14 -0
- package/dist/components/date-time-picker/index.js +45 -46
- package/dist/components/divider/index.js +11 -11
- package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
- package/dist/components/document-viewer/components/navigation/index.js +9 -9
- package/dist/components/document-viewer/components/viewer/index.js +31 -35
- package/dist/components/document-viewer/index.js +31 -39
- package/dist/components/document-viewer/logic.js +41 -34
- package/dist/components/document-viewer/styled.js +115 -27
- package/dist/components/duration-select/index.js +27 -0
- package/dist/components/duration-select/logic.js +21 -0
- package/dist/components/duration-select/styled.js +26 -0
- package/dist/components/editable-text/index.js +20 -0
- package/dist/components/editable-text/logic.js +18 -0
- package/dist/components/editable-text/styled.js +22 -0
- package/dist/components/geometry-picker/coordinate/index.js +29 -29
- package/dist/components/geometry-picker/edit/index.js +18 -18
- package/dist/components/geometry-picker/geometry/index.js +67 -67
- package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
- package/dist/components/geometry-picker/index.js +69 -86
- package/dist/components/geometry-picker/kml/index.js +16 -16
- package/dist/components/geometry-picker/logic.js +50 -57
- package/dist/components/geometry-picker/map/index.js +8 -8
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
- package/dist/components/geometry-picker/parser/index.js +46 -50
- package/dist/components/geometry-picker/parser/styled.js +22 -4
- package/dist/components/geometry-picker/styled.js +97 -37
- package/dist/components/geometry-picker/wkt/index.js +13 -13
- package/dist/components/heat-map/components/controls/index.js +4 -6
- package/dist/components/heat-map/components/legend/index.js +15 -17
- package/dist/components/heat-map/index.js +7 -7
- package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
- package/dist/components/instance-form/components/composite-list/index.js +5 -3
- package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
- package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
- package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
- package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
- package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
- package/dist/components/instance-form/components/policy-list/index.js +47 -81
- package/dist/components/instance-form/components/variable/index.js +6 -9
- package/dist/components/instance-form/components/variables/index.js +48 -55
- package/dist/components/instance-form/helpers.js +9 -0
- package/dist/components/instance-form/index.js +402 -518
- package/dist/components/instance-form/logic.js +115 -0
- package/dist/components/instance-form/styled.js +487 -0
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/instance-variable-list/index.js +11 -11
- package/dist/components/map/index.js +28 -6
- package/dist/components/map/styled.js +1 -1
- package/dist/components/notification/index.js +67 -0
- package/dist/components/notification/logic.js +30 -0
- package/dist/components/notification/store.js +23 -0
- package/dist/components/notification/styled.js +52 -0
- package/dist/components/object-profile-card/components/avatar/index.js +9 -10
- package/dist/components/object-profile-card/index.js +19 -20
- package/dist/components/paginated-list/index.js +2 -3
- package/dist/components/placeholder/index.js +10 -0
- package/dist/components/placeholder/logic.js +12 -0
- package/dist/components/placeholder/styled.js +32 -0
- package/dist/components/positional-tooltip/index.js +24 -0
- package/dist/components/positional-tooltip/styled.js +17 -0
- package/dist/components/property-mapping/index.js +204 -423
- package/dist/components/property-mapping/logic.js +156 -0
- package/dist/components/property-mapping/styled.js +199 -0
- package/dist/components/prr-map/components/controls/index.js +4 -6
- package/dist/components/prr-map/components/legend/index.js +26 -28
- package/dist/components/prr-map/index.js +5 -5
- package/dist/components/range-selector/styled.js +1106 -1034
- package/dist/components/raster-grid-map/components/controls/index.js +4 -6
- package/dist/components/raster-grid-map/components/legend/index.js +4 -6
- package/dist/components/raster-grid-map/index.js +5 -5
- package/dist/components/scroll-drag/index.js +22 -0
- package/dist/components/scroll-drag/logic.js +39 -0
- package/dist/components/scroll-drag/styled.js +17 -0
- package/dist/components/search-input/logic.js +35 -33
- package/dist/components/simple-pivot-table/index.js +12 -12
- package/dist/components/sortable-list/index.js +599 -0
- package/dist/components/sortable-list/logic.js +18 -0
- package/dist/components/sortable-list/styled.js +38 -0
- package/dist/components/static-text/index.js +6 -6
- package/dist/components/stats-box/index.js +12 -0
- package/dist/components/stats-box/styled.js +36 -0
- package/dist/components/template-form/components/property-list/index.js +27 -26
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +758 -12
- package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -22
- package/dist/components/template-form/components/select-icon/index.js +24 -24
- package/dist/components/template-form/helpers.js +17 -0
- package/dist/components/template-form/index.js +270 -308
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- package/dist/components/text-overflow/index.js +6 -0
- package/dist/components/text-overflow/styled.js +13 -0
- package/dist/components/timeline/index.js +12 -12
- package/dist/components/toggle-view-button/index.js +35 -0
- package/dist/components/toggle-view-button/logic.js +22 -0
- package/dist/components/toggle-view-button/styled.js +11 -0
- package/dist/components/tree-select/index.js +1 -1
- package/dist/components/visually-hidden-input/index.js +4 -0
- package/dist/components/visually-hidden-input/styled.js +18 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/{createSvgIcon-DX-SqL8M.js → createSvgIcon-Ch_cT8az.js} +68 -65
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/{dialog-cf4HUXXl.js → dialog-BYRnCztH.js} +30 -29
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
- package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
- package/dist/index-BtlzPygz.js +470 -0
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/{index-C8C3YXle.js → index-e9xTIYWt.js} +139 -137
- package/dist/main.d.ts +1066 -328
- package/dist/main.js +165 -130
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-Db1RdcPA.js +323 -0
- package/dist/unsupportedProp-DuqR2hj9.js +36 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/{useMobilePicker-B-M3dnTn.js → useMobilePicker-CY8ndYRL.js} +4777 -4491
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-CMg08YSA.js +0 -739
- package/dist/Add-DuVVJeQU.js +0 -380
- package/dist/ButtonBase-sObABYY2.js +0 -965
- package/dist/FormControl-BCurCxRj.js +0 -1294
- package/dist/FormControlLabel-BkRfrhNy.js +0 -601
- package/dist/InputAdornment-C7PEvvYr.js +0 -155
- package/dist/Modal-DlB6GH-f.js +0 -1659
- package/dist/Paper-q9kKjAKx.js +0 -527
- package/dist/TextField-DSDIEEKu.js +0 -3161
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-quqpGCFu.js +0 -9
- package/dist/components/instance-form/components/composite-list/styled.js +0 -73
- package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
- package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
- package/dist/components/key-protection/index.js +0 -47
- package/dist/components/key-protection/logic.js +0 -40
- package/dist/components/key-protection/styled.js +0 -45
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/createSvgIcon-BM3-TsGy.js +0 -70
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-DPKUmQnz.js +0 -501
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isMuiElement-BkJ72LB3.js +0 -26
- package/dist/property-list-form-DL_dEoNn.js +0 -381
- package/dist/styled-Bsjp3kFh.js +0 -668
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/utils-Cxu-fHjQ.js +0 -115
package/CATALOG.md
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# @hybridcore/ui — Component Catalog
|
|
2
|
+
|
|
3
|
+
**Catalog for version:** 1.6.1 (matches `package.json` at the time this file was last updated)
|
|
4
|
+
|
|
5
|
+
This file lists every public component exported by `@hybridcore/ui`. Consumers can read it directly (`cat node_modules/@hybridcore/ui/CATALOG.md`) or use a `/find-component` slash command to search semantically. Keeping it in sync is required — see [`docs/COMPONENT_GUIDE.md`](./docs/COMPONENT_GUIDE.md) § "Catalog maintenance."
|
|
6
|
+
|
|
7
|
+
All components are imported from the package root:
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { ComponentName } from '@hybridcore/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Components
|
|
16
|
+
|
|
17
|
+
### Layout & containers
|
|
18
|
+
|
|
19
|
+
| Component | Theme key | Purpose | Tags |
|
|
20
|
+
| ------------------ | ------------------ | ----------------------------------------------------------------------- | ------------------------------- |
|
|
21
|
+
| Card | HCCard | Portrait/landscape card with media, title, avatar, stats, and actions | card, layout, media |
|
|
22
|
+
| CardAlternate | HCCardAlternate | Compact card with header row, avatar, title/subtitle, and menu | card, layout |
|
|
23
|
+
| CollapsibleCard | HCCollapsibleCard | Accordion-style card with expandable content | card, accordion, collapsible |
|
|
24
|
+
| Container | HCContainer | Themed card wrapper with `CardHeader` + `CardContent` slots | container, card |
|
|
25
|
+
| Widget | HCWidget | Generic widget shell (Root/Header/Content/Footer slots) | widget, container, layout |
|
|
26
|
+
| FlexCol | — | Styled flex column primitive | layout, flex |
|
|
27
|
+
| FlexRow | — | Styled flex row primitive | layout, flex |
|
|
28
|
+
| ConditionalWrapper | — | Pure JSX helper — renders `children` through a `wrapper` if `condition` | utility, wrapper |
|
|
29
|
+
| ScrollDrag | HCScrollDrag | Drag-to-scroll horizontal container for overflow content | layout, scroll, drag |
|
|
30
|
+
| Placeholder | HCPlaceholder | Skeleton placeholder for loading/empty states | placeholder, loading, skeleton |
|
|
31
|
+
|
|
32
|
+
### Forms & inputs
|
|
33
|
+
|
|
34
|
+
| Component | Theme key | Purpose | Tags |
|
|
35
|
+
| -------------------------- | -------------------------- | ------------------------------------------------------------------------ | --------------------------------------- |
|
|
36
|
+
| Button | HCButton | Themed MUI button with `onNavigate` / `onNavigateBack` callback props | input, button |
|
|
37
|
+
| IconButton | HCIconButton | Three-variant icon button (default, vertical label, mini text+icon) | input, button, icon |
|
|
38
|
+
| ToggleViewButton | HCToggleViewButton | Grid/list/map view toggle group | input, button, toggle, view |
|
|
39
|
+
| SearchInput | HCSearchInput | Themed search input with adornments (outlined/filled/standard variants) | input, search |
|
|
40
|
+
| PhoneInput | HCPhoneInput | International phone-number input with country code | input, phone |
|
|
41
|
+
| ColorPicker | HCColorPicker | Color picker built on `react-color` | input, color |
|
|
42
|
+
| DateTimePicker | HCDateTimePicker | Combined date + time picker with menu of preset times | input, date, time |
|
|
43
|
+
| DateRangePicker | HCDateRangePicker | Calendar range picker (start/end date) | input, date, range |
|
|
44
|
+
| DatePickerWithCustomRange | HCDatePickerWithCustomRange| Toggle between relative presets (last N days) and custom date range | input, date, range, preset, filter |
|
|
45
|
+
| DurationSelect | HCDurationSelect | Duration picker (e.g. 5 minutes, 1 hour) | input, duration, time |
|
|
46
|
+
| TreeSelect | HCTreeSelect | Hierarchical tree-style multi-select with dialog | input, select, tree, hierarchy |
|
|
47
|
+
| TreeViewFilter | HCTreeViewFilter | Filterable tree-view with checkboxes (used inside `TreeSelect`) | filter, tree, hierarchy, checkbox |
|
|
48
|
+
| RangeSelector | HCRangeSelector | Polymorphic range input — number, date, geometry, string, composite-list | input, range, filter |
|
|
49
|
+
| Uploader | HCUploader | Drag-drop file uploader with image thumbnails + preview dialog | input, upload, file, image |
|
|
50
|
+
| VisuallyHiddenInput | HCVisuallyHiddenInput | Accessible hidden `<input>` for screen readers and file pickers | input, accessibility, hidden |
|
|
51
|
+
| GeometryPicker | HCGeometryPicker | Picker for geographic geometries (coordinate, draw, KML, WKT, edit) | input, geometry, map, geo, wkt |
|
|
52
|
+
| GeometryDraw | HCGeometryPicker (geometry)| Geometry drawing surface (sub-component of `GeometryPicker`) | input, geometry, draw, map |
|
|
53
|
+
| GeometryParser | HCGeometryPicker (parser) | WKT/coordinate parser (sub-component of `GeometryPicker`) | input, geometry, wkt, parser |
|
|
54
|
+
|
|
55
|
+
### Data display & tables
|
|
56
|
+
|
|
57
|
+
| Component | Theme key | Purpose | Tags |
|
|
58
|
+
| -------------------------- | ---------------------------- | ------------------------------------------------------------------------ | ----------------------------------- |
|
|
59
|
+
| DataGrid | HCDataGrid | Themed wrapper over MUI X DataGrid with default styling | data-table, grid |
|
|
60
|
+
| InstanceTable | HCInstanceTable | Domain table for ontology instances (templated rows + per-row actions) | data-table, ontology, domain |
|
|
61
|
+
| InstanceHierarchyTable | HCInstanceHierarchyTable | Accordion table showing template hierarchy with counts | data-table, hierarchy, accordion |
|
|
62
|
+
| SimplePivotTable | HCSimplePivotTable | Pivot table with row/column dimensions + aggregations (sum/avg/min/max) | data-table, pivot, aggregation |
|
|
63
|
+
| PaginatedList | HCPaginatedList | Paginated list with selection mode and snapshot export | data-list, pagination, selection |
|
|
64
|
+
| SortableList | HCSortableList | Drag-and-drop sortable list | data-list, sortable, drag |
|
|
65
|
+
| InstanceVariableList | HCInstanceVariableList | Renders typed instance variables with per-type widgets | data-list, ontology, variable, domain |
|
|
66
|
+
|
|
67
|
+
### Charts
|
|
68
|
+
|
|
69
|
+
| Component | Theme key | Purpose | Tags |
|
|
70
|
+
| -------------------------- | -------------------------- | ---------------------------------------------------------------------- | ------------------------------------- |
|
|
71
|
+
| ChartWrapper | HCChartWrapper | Switches between 14 chart types from a single config | chart, wrapper |
|
|
72
|
+
| CandlestickChart | HCCandlestickChart | Financial OHLC candlestick chart | chart, financial, ohlc |
|
|
73
|
+
| ColumnLineMix | HCColumnLineMix | Mixed column + line chart for combined metrics | chart, column, line |
|
|
74
|
+
| DrillDownTreemap | HCDrillDownTreemap | Treemap with click-to-drill-down hierarchy | chart, treemap, hierarchy |
|
|
75
|
+
| DrillDownVoronoiTreemap | HCDrillDownVoronoiTreemap | Voronoi-tessellation treemap with drill-down | chart, treemap, voronoi |
|
|
76
|
+
| Heatmap | HCHeatmap | Categorical heatmap (X/Y axes, color-coded values) | chart, heatmap |
|
|
77
|
+
| HighlightLineChart | HCHighlightLineChart | Line chart with hover highlighting | chart, line, hover |
|
|
78
|
+
| LineChart | HCLineChart | Multi-series line chart | chart, line |
|
|
79
|
+
| LogaritmicScale | HCLogaritmicScale | Chart with logarithmic Y-axis | chart, log, scale |
|
|
80
|
+
| MultipleValueAxes | HCMultipleValueAxes | Chart with multiple Y-axes for different value ranges | chart, axis |
|
|
81
|
+
| NestedPie | HCNestedPie | Nested (concentric) pie chart | chart, pie, nested |
|
|
82
|
+
| PackedCircles | HCPackedCircles | Circle-packing visualization | chart, circle, packing |
|
|
83
|
+
| PieChart | HCPieChart | Simple pie chart | chart, pie |
|
|
84
|
+
| StackedAreaRadar | HCStackedAreaRadar | Radar chart with stacked area fills | chart, radar, stacked |
|
|
85
|
+
| StackedColumnChart | HCStackedColumnChart | Stacked column chart | chart, column, stacked |
|
|
86
|
+
| XYChart | HCXYChart | Generic X-Y series chart | chart, xy |
|
|
87
|
+
|
|
88
|
+
### Maps
|
|
89
|
+
|
|
90
|
+
| Component | Theme key | Purpose | Tags |
|
|
91
|
+
| ----------------- | ----------------- | ---------------------------------------------------------------------- | ----------------------------- |
|
|
92
|
+
| Map | — | OpenLayers/Mapbox map primitive with imperative handle (`ref.zoom`, etc.) | map, openlayers, mapbox |
|
|
93
|
+
| DataMap | HCDataMap | Geographic data map with feature layer + controls | map, data, geo |
|
|
94
|
+
| HeatMap | HCHeatMap | Geographic heat-map with gradient legend | map, heatmap, geo |
|
|
95
|
+
| PrrMap | HCPrrMap | PRR-level map with severity icons + legend | map, prr, severity, geo |
|
|
96
|
+
| RasterGridMap | HCRasterGridMap | Raster grid overlay on map with color-scale legend | map, raster, grid, geo |
|
|
97
|
+
|
|
98
|
+
### Filters & selectors
|
|
99
|
+
|
|
100
|
+
| Component | Theme key | Purpose | Tags |
|
|
101
|
+
| -------------------------- | --------------------------- | ---------------------------------------------------------------------- | ----------------------------------- |
|
|
102
|
+
| TemplateFilters | HCTemplateFilters | Tabbed template filter set | filter, template, tab |
|
|
103
|
+
| TemplatePropertyFilters | HCTemplatePropertyFilters | Accordion of per-property filters (number, date, enum) | filter, property, accordion |
|
|
104
|
+
| PropertyFilterInput | HCTemplatePropertyFilters | Single property filter input (sub-component, may be reused standalone) | filter, property |
|
|
105
|
+
| DisseminationList | HCDisseminationList | Multi-select for security dissemination groups (creatable) | selector, security, multi-select |
|
|
106
|
+
| SecurityLevel | HCSecurityLevel | Security classification level selector | selector, security |
|
|
107
|
+
|
|
108
|
+
### Navigation, indicators & feedback
|
|
109
|
+
|
|
110
|
+
| Component | Theme key | Purpose | Tags |
|
|
111
|
+
| ----------------- | -------------------------- | ---------------------------------------------------------------------- | ------------------------------- |
|
|
112
|
+
| Tabs | HCTabs | Tabs with optional badges, Apple-style variant, URL-hash state | navigation, tabs |
|
|
113
|
+
| ContextMenu | HCContextMenu | Right-click / programmatic context menu at an x/y position | menu, context |
|
|
114
|
+
| Divider | HCDivider | MUI divider with vertical-orientation styling preserved | layout, divider |
|
|
115
|
+
| LinearIndicator | HCLinearIndicator | Bidirectional linear progress / value indicator | indicator, progress, linear |
|
|
116
|
+
| Loading | HCLoading | Centered circular spinner with optional overlay | loading, spinner |
|
|
117
|
+
| StatsBox | HCStatsBox | Label + value + icon stat tile | stats, indicator |
|
|
118
|
+
| MetricCard | HCMetricCard | KPI card with value, change, trend, and inline mini-chart | metric, kpi, card, chart |
|
|
119
|
+
| TimelineWidget | HCTimeline | Vertical timeline list with dots + load-more | timeline, list, history |
|
|
120
|
+
| TextOverflow | HCTextOverflow | Text with ellipsis + native tooltip on overflow | text, overflow, ellipsis |
|
|
121
|
+
| StaticText | HCStaticText | Themed renderer for static HTML content (headings, lists, links) | text, html, static |
|
|
122
|
+
| ObjectProfileCard | HCObjectProfileCard | Profile card with avatar upload + variable list | card, profile, avatar, domain |
|
|
123
|
+
| PositionalTooltip | HCPositionalTooltip | Tooltip anchored to an arbitrary x/y point | tooltip, positional |
|
|
124
|
+
|
|
125
|
+
### Domain forms
|
|
126
|
+
|
|
127
|
+
| Component | Theme key | Purpose | Tags |
|
|
128
|
+
| ----------------- | ----------------- | ---------------------------------------------------------------------- | ------------------------------- |
|
|
129
|
+
| InstanceForm | HCInstanceForm | Full ontology instance form (variables, composite-list/matrix, policy) | form, ontology, domain |
|
|
130
|
+
| TemplateForm | HCTemplateForm | Template-definition form (property list, icon, recognition) | form, template, domain |
|
|
131
|
+
|
|
132
|
+
### Document viewer
|
|
133
|
+
|
|
134
|
+
| Component | Theme key | Purpose | Tags |
|
|
135
|
+
| ----------------- | ----------------- | ---------------------------------------------------------------------- | --------------------------------- |
|
|
136
|
+
| DocumentViewer | HCDocumentViewer | App-shell document viewer with toolbar, side panel, multi-format | document, viewer, pdf, image |
|
|
137
|
+
|
|
138
|
+
### Access control
|
|
139
|
+
|
|
140
|
+
| Component | Theme key | Purpose | Tags |
|
|
141
|
+
| --------- | --------- | ---------------------------------------------------------------------- | ------------- |
|
|
142
|
+
| Access | HCAccess | Permission gate — renders children if granted, fallback otherwise | access, gate |
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## Utilities & non-component APIs
|
|
147
|
+
|
|
148
|
+
| Export | Kind | Purpose | Tags |
|
|
149
|
+
| ------------------------------ | ------------- | ------------------------------------------------------------------------ | ----------------------------- |
|
|
150
|
+
| `HCNotificationProvider` | Provider | Mount once at app root; required for `notify()` toasts | notification, toast, provider |
|
|
151
|
+
| `notify` | Function | Imperative toast API — `notify.error/warning/info/success(msg)` | notification, toast |
|
|
152
|
+
| `removeNotification` | Function | Programmatically dismiss a notification by id | notification, toast |
|
|
153
|
+
| `alert(title, description)` | Function | Imperative modal alert (returns a promise) | modal, alert |
|
|
154
|
+
| `confirm(title, description)` | Function | Imperative confirmation modal (returns a boolean promise) | modal, confirm |
|
|
155
|
+
| `createTheme` / `ThemeProvider`| Re-export | MUI theme creation + provider (re-exported for convenience) | theme, mui |
|
|
156
|
+
| `LocalizationProvider` | Re-export | MUI X date-pickers localization provider | theme, dates, mui |
|
|
157
|
+
| `AdapterDayjs` | Re-export | dayjs adapter for the MUI X localization provider | theme, dates, dayjs |
|
|
158
|
+
| `AccessUtils.*` | Namespace | Helper functions for access checks (`hasUIAccess`, `hasDataAccess`, etc.)| access, utility |
|
|
159
|
+
| `DEFAULT_VIRIDIS_COOL` | Constant | Default 8-color viridis-cool palette for charts | chart, palette |
|
|
160
|
+
| `DEFAULT_RELATIVE_PRESET_LABELS` | Constant | Default labels for `DatePickerWithCustomRange` relative presets | date, preset |
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Versioning
|
|
165
|
+
|
|
166
|
+
Each catalog row is stable across patch versions. Minor versions may add rows. Major versions may rename or remove components — breaking changes are called out below.
|
|
167
|
+
|
|
168
|
+
### Breaking changes since previous major
|
|
169
|
+
|
|
170
|
+
*(empty — `@hybridcore/ui` is on 1.x; populate this section when cutting 2.0)*
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## How to use this catalog
|
|
175
|
+
|
|
176
|
+
- **Direct read:** `cat node_modules/@hybridcore/ui/CATALOG.md` in any consumer project.
|
|
177
|
+
- **Slash command:** install `/find-component` in your project's `.claude/commands/` (reference implementation: `SmartNavigator/frontend/.claude/commands/find-component.md`). It reads this file and matches against component name, purpose, and tags.
|
|
178
|
+
|
|
179
|
+
Theme keys (`HC*`) are the canonical names used in `theme.components.HC*.styleOverrides` and `defaultProps`. See [`docs/COMPONENT_GUIDE.md`](./docs/COMPONENT_GUIDE.md) § "Theme Augmentation" for how to override styling per-deployment.
|
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ yarn dev # opens the Vite dev server with Storybook
|
|
|
28
28
|
|
|
29
29
|
### Iterate against a real consumer (e.g. Smart Navigator) without publishing
|
|
30
30
|
|
|
31
|
-
We use [`yalc`](https://github.com/wclr/yalc) to link the lib into consumer projects locally, so changes show up in their dev server without a `yarn version` + `npm publish` round trip. Full rationale
|
|
31
|
+
We use [`yalc`](https://github.com/wclr/yalc) to link the lib into consumer projects locally, so changes show up in their dev server without a `yarn version` + `npm publish` round trip. Full rationale and gotchas in [`docs/plans/local-dev-flow.md`](./docs/plans/local-dev-flow.md).
|
|
32
32
|
|
|
33
33
|
One-time setup (per machine):
|
|
34
34
|
|
|
@@ -76,5 +76,4 @@ git push --follow-tags
|
|
|
76
76
|
|
|
77
77
|
- [`docs/COMPONENT_GUIDE.md`](./docs/COMPONENT_GUIDE.md) — authoring rules (4-file structure, `HC*` prefix, theme augmentation block)
|
|
78
78
|
- [`docs/THEMING.md`](./docs/THEMING.md) — consumer-facing override guide for any project using this lib
|
|
79
|
-
- [`docs/BACKLOG.md`](./docs/BACKLOG.md) — migration backlog (which components conform, which still need refactoring)
|
|
80
79
|
- [`docs/plans/`](./docs/plans/) — cross-cutting initiative plans (e.g. local dev flow, exports standard)
|