@hybridcore/ui 1.6.0 → 1.6.2
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-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
- package/dist/InputLabel-Dd8RrneV.js +341 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
- 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-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
- 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/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- 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/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- 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/container/index.js +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- 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 +39 -91
- package/dist/components/data-security-selectors/security-level/logic.js +28 -0
- package/dist/components/data-security-selectors/security-level/styled.js +53 -0
- 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 -85
- 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 -11
- 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/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- package/dist/components/instance-variable-list/index.js +11 -11
- package/dist/components/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- 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/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- 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/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4294 -0
- 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-filters/components/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- 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 -14
- 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 -23
- 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 -309
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- 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 +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- 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-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
- 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-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
- package/dist/main.d.ts +1722 -562
- package/dist/main.js +161 -128
- 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/useId-BW-oWmul.js +19 -0
- package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-DgAwVTk8.js +0 -742
- package/dist/Add-DJLrrVHm.js +0 -382
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/ButtonBase-2bPw77UP.js +0 -961
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControl-BLbrq4C7.js +0 -1636
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/InputAdornment-DLxWUE6H.js +0 -157
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/Select-BgYwkZgI.js +0 -2613
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-ciszXJ7R.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 -4
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/createSvgIcon-BjpIhJ30.js +0 -71
- package/dist/createTheme-DYxDnE9u.js +0 -612
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-CcdvNlgr.js +0 -503
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/property-list-form-zZQfpR0X.js +0 -386
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
- package/dist/utils-Bq0ye5vf.js +0 -115
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useThemeProps as c } from "@mui/material";
|
|
2
|
+
const p = (s) => {
|
|
3
|
+
const t = c({ props: s, name: "HCCard" }), { orientation: e = "portrait", loading: n = !1, onClick: o } = t, r = !!o, a = {
|
|
4
|
+
...t,
|
|
5
|
+
orientation: e,
|
|
6
|
+
loading: n,
|
|
7
|
+
clickable: r
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
refs: {},
|
|
11
|
+
state: {
|
|
12
|
+
ownerState: a,
|
|
13
|
+
orientation: e,
|
|
14
|
+
loading: n,
|
|
15
|
+
clickable: r
|
|
16
|
+
},
|
|
17
|
+
actions: { handleClick: () => {
|
|
18
|
+
o && o();
|
|
19
|
+
} }
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
p as useCardLogic
|
|
24
|
+
};
|
|
@@ -1,77 +1,252 @@
|
|
|
1
|
-
import { Card as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
// The slot name
|
|
8
|
-
})(() => ({
|
|
1
|
+
import { styled as a, Card as r, Skeleton as n, CardContent as l, Box as o, Typography as i, Avatar as d, CardActions as c } from "@mui/material";
|
|
2
|
+
const e = (t) => t !== "ownerState", p = a(r, {
|
|
3
|
+
name: "HCCard",
|
|
4
|
+
slot: "root",
|
|
5
|
+
shouldForwardProp: e
|
|
6
|
+
})({
|
|
9
7
|
position: "relative",
|
|
10
8
|
"&:hover .extra-actions": {
|
|
11
9
|
visibility: "visible",
|
|
12
10
|
opacity: 1
|
|
13
11
|
}
|
|
14
|
-
})
|
|
15
|
-
name: "
|
|
16
|
-
slot: "
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
top: 0,
|
|
20
|
-
right: 0,
|
|
12
|
+
}), g = a(r, {
|
|
13
|
+
name: "HCCard",
|
|
14
|
+
slot: "landscapeRoot",
|
|
15
|
+
shouldForwardProp: e
|
|
16
|
+
})(({ theme: t }) => ({
|
|
21
17
|
display: "flex",
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
visibility: "hidden",
|
|
25
|
-
opacity: 0,
|
|
26
|
-
transition: "0.3s all"
|
|
27
|
-
})), p = i(t, {
|
|
28
|
-
name: "SNCard",
|
|
29
|
-
// The component name
|
|
30
|
-
slot: "root"
|
|
31
|
-
// The slot name
|
|
32
|
-
})(({ theme: a }) => ({
|
|
33
|
-
display: "flex",
|
|
34
|
-
padding: a.spacing(1.5),
|
|
35
|
-
gap: a.spacing(3),
|
|
18
|
+
padding: t.spacing(1.5),
|
|
19
|
+
gap: t.spacing(3),
|
|
36
20
|
"& .MuiCardMedia-root": {
|
|
37
|
-
borderRadius:
|
|
21
|
+
borderRadius: t.shape.borderRadius
|
|
38
22
|
},
|
|
39
23
|
"& .MuiCardContent-root, & .MuiCardContent-root:last-child": {
|
|
40
24
|
display: "flex",
|
|
41
25
|
flex: 1,
|
|
42
|
-
gap:
|
|
26
|
+
gap: t.spacing(3),
|
|
43
27
|
padding: 0,
|
|
44
28
|
margin: 0
|
|
45
29
|
}
|
|
46
|
-
})),
|
|
47
|
-
name: "
|
|
48
|
-
|
|
30
|
+
})), m = a("img", {
|
|
31
|
+
name: "HCCard",
|
|
32
|
+
slot: "media",
|
|
33
|
+
shouldForwardProp: e
|
|
34
|
+
})(({ ownerState: t }) => ({
|
|
35
|
+
display: "block",
|
|
36
|
+
objectFit: "cover",
|
|
37
|
+
cursor: t.clickable ? "pointer" : "default",
|
|
38
|
+
...t.orientation === "landscape" ? { width: 330, height: 200 } : { width: "100%", height: 172 }
|
|
39
|
+
})), x = a(n, {
|
|
40
|
+
name: "HCCard",
|
|
41
|
+
slot: "mediaSkeleton",
|
|
42
|
+
shouldForwardProp: e
|
|
43
|
+
})(
|
|
44
|
+
({ ownerState: t }) => t.orientation === "landscape" ? { width: 330, height: 200 } : { height: 172 }
|
|
45
|
+
), f = a(l, {
|
|
46
|
+
name: "HCCard",
|
|
47
|
+
slot: "content"
|
|
48
|
+
})({}), b = a(l, {
|
|
49
|
+
name: "HCCard",
|
|
50
|
+
slot: "landscapeContent"
|
|
51
|
+
})({
|
|
52
|
+
position: "relative"
|
|
53
|
+
}), H = a(o, {
|
|
54
|
+
name: "HCCard",
|
|
55
|
+
slot: "menuContainer"
|
|
56
|
+
})({
|
|
57
|
+
position: "absolute",
|
|
58
|
+
top: -8,
|
|
59
|
+
right: -8
|
|
60
|
+
}), u = a(o, {
|
|
61
|
+
name: "HCCard",
|
|
62
|
+
slot: "contentBody"
|
|
63
|
+
})({
|
|
64
|
+
flex: 1
|
|
65
|
+
}), h = a(o, {
|
|
66
|
+
name: "HCCard",
|
|
67
|
+
slot: "contentColumn"
|
|
68
|
+
})({
|
|
69
|
+
display: "flex",
|
|
70
|
+
flexDirection: "column",
|
|
71
|
+
justifyContent: "space-between",
|
|
72
|
+
height: "100%"
|
|
73
|
+
}), v = a(i, {
|
|
74
|
+
name: "HCCard",
|
|
75
|
+
slot: "title",
|
|
76
|
+
shouldForwardProp: e
|
|
77
|
+
})(({ ownerState: t }) => ({
|
|
78
|
+
cursor: t.clickable ? "pointer" : "default",
|
|
79
|
+
...t.orientation === "landscape" && {
|
|
80
|
+
overflow: "hidden",
|
|
81
|
+
textOverflow: "ellipsis",
|
|
82
|
+
display: "-webkit-box",
|
|
83
|
+
WebkitLineClamp: 3,
|
|
84
|
+
WebkitBoxOrient: "vertical"
|
|
85
|
+
}
|
|
86
|
+
})), y = a(i, {
|
|
87
|
+
name: "HCCard",
|
|
88
|
+
slot: "text",
|
|
89
|
+
shouldForwardProp: e
|
|
90
|
+
})(({ theme: t, ownerState: s }) => ({
|
|
91
|
+
color: t.palette.text.secondary,
|
|
92
|
+
overflow: "hidden",
|
|
93
|
+
textOverflow: "ellipsis",
|
|
94
|
+
display: "-webkit-box",
|
|
95
|
+
WebkitBoxOrient: "vertical",
|
|
96
|
+
lineHeight: "16px",
|
|
97
|
+
cursor: s.clickable ? "pointer" : "default",
|
|
98
|
+
WebkitLineClamp: s.orientation === "landscape" ? 4 : 2
|
|
99
|
+
})), k = a(o, {
|
|
100
|
+
name: "HCCard",
|
|
101
|
+
slot: "stats"
|
|
102
|
+
})({}), A = a(o, {
|
|
103
|
+
name: "HCCard",
|
|
49
104
|
slot: "infoBox"
|
|
50
|
-
|
|
51
|
-
})(({ theme: a }) => ({
|
|
105
|
+
})(({ theme: t }) => ({
|
|
52
106
|
display: "flex",
|
|
53
107
|
flexDirection: "column",
|
|
54
108
|
width: 260,
|
|
55
|
-
paddingLeft:
|
|
56
|
-
paddingRight:
|
|
57
|
-
gap:
|
|
109
|
+
paddingLeft: t.spacing(2),
|
|
110
|
+
paddingRight: t.spacing(2),
|
|
111
|
+
gap: t.spacing(0.5),
|
|
58
112
|
alignItems: "center",
|
|
59
113
|
borderLeft: "1px solid",
|
|
60
|
-
borderColor:
|
|
114
|
+
borderColor: t.palette.divider,
|
|
61
115
|
boxSizing: "border-box"
|
|
62
|
-
})),
|
|
63
|
-
name: "
|
|
116
|
+
})), L = a(d, {
|
|
117
|
+
name: "HCCard",
|
|
118
|
+
slot: "avatar"
|
|
119
|
+
})({
|
|
120
|
+
width: 29,
|
|
121
|
+
height: 29
|
|
122
|
+
}), w = a(d, {
|
|
123
|
+
name: "HCCard",
|
|
124
|
+
slot: "avatarLarge"
|
|
125
|
+
})({
|
|
126
|
+
width: 42,
|
|
127
|
+
height: 42
|
|
128
|
+
}), S = a(i, {
|
|
129
|
+
name: "HCCard",
|
|
130
|
+
slot: "avatarTitle"
|
|
131
|
+
})({
|
|
132
|
+
fontWeight: "normal",
|
|
133
|
+
lineHeight: "14px",
|
|
134
|
+
fontSize: "13px"
|
|
135
|
+
}), B = a(i, {
|
|
136
|
+
name: "HCCard",
|
|
137
|
+
slot: "avatarSubTitle"
|
|
138
|
+
})(({ theme: t }) => ({
|
|
139
|
+
color: t.palette.text.secondary,
|
|
140
|
+
lineHeight: "12px"
|
|
141
|
+
})), R = a(o, {
|
|
142
|
+
name: "HCCard",
|
|
64
143
|
slot: "extraActions"
|
|
65
|
-
})(({ theme:
|
|
144
|
+
})(({ theme: t }) => ({
|
|
145
|
+
position: "absolute",
|
|
146
|
+
top: 0,
|
|
147
|
+
right: 0,
|
|
148
|
+
display: "flex",
|
|
149
|
+
gap: t.spacing(1),
|
|
150
|
+
padding: t.spacing(1.5),
|
|
151
|
+
visibility: "hidden",
|
|
152
|
+
opacity: 0,
|
|
153
|
+
transition: "0.3s all"
|
|
154
|
+
})), T = a(o, {
|
|
155
|
+
name: "HCCard",
|
|
156
|
+
slot: "extraActions"
|
|
157
|
+
})(({ theme: t }) => ({
|
|
158
|
+
display: "flex",
|
|
159
|
+
gap: t.spacing(1),
|
|
160
|
+
marginTop: t.spacing(1),
|
|
161
|
+
marginBottom: t.spacing(1)
|
|
162
|
+
})), I = a(i, {
|
|
163
|
+
name: "HCCard",
|
|
164
|
+
slot: "extraInfo"
|
|
165
|
+
})(({ theme: t }) => ({
|
|
166
|
+
color: t.palette.text.secondary,
|
|
167
|
+
lineHeight: "12px"
|
|
168
|
+
})), M = a(c, {
|
|
169
|
+
name: "HCCard",
|
|
170
|
+
slot: "cardActions"
|
|
171
|
+
})(({ theme: t }) => ({
|
|
172
|
+
display: "flex",
|
|
173
|
+
justifyContent: "space-between",
|
|
174
|
+
padding: t.spacing(2)
|
|
175
|
+
})), E = a(o, {
|
|
176
|
+
name: "HCCard",
|
|
177
|
+
slot: "avatarRow"
|
|
178
|
+
})({
|
|
179
|
+
display: "flex",
|
|
180
|
+
justifyItems: "center",
|
|
181
|
+
flex: 1
|
|
182
|
+
}), W = a(o, {
|
|
183
|
+
name: "HCCard",
|
|
184
|
+
slot: "avatarLabel"
|
|
185
|
+
})(({ theme: t }) => ({
|
|
186
|
+
display: "flex",
|
|
187
|
+
flexDirection: "column",
|
|
188
|
+
marginLeft: t.spacing(1),
|
|
189
|
+
flex: 1
|
|
190
|
+
})), j = a(o, {
|
|
191
|
+
name: "HCCard",
|
|
192
|
+
slot: "actionsContainer"
|
|
193
|
+
})(({ theme: t }) => ({
|
|
66
194
|
display: "flex",
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
195
|
+
marginTop: t.spacing(1),
|
|
196
|
+
width: "100%"
|
|
197
|
+
})), O = a(n, {
|
|
198
|
+
name: "HCCard",
|
|
199
|
+
slot: "skeletonLine"
|
|
200
|
+
})({
|
|
201
|
+
marginBottom: 16,
|
|
202
|
+
marginTop: 10
|
|
203
|
+
}), D = a(n, {
|
|
204
|
+
name: "HCCard",
|
|
205
|
+
slot: "skeletonLineSubtle"
|
|
206
|
+
})({
|
|
207
|
+
marginBottom: 6
|
|
208
|
+
}), P = a(n, {
|
|
209
|
+
name: "HCCard",
|
|
210
|
+
slot: "skeletonAvatarCircle"
|
|
211
|
+
})(({ theme: t }) => ({
|
|
212
|
+
marginBottom: t.spacing(0.6)
|
|
213
|
+
})), z = a(n, {
|
|
214
|
+
name: "HCCard",
|
|
215
|
+
slot: "skeletonExtraIcon"
|
|
216
|
+
})({}), F = a(n, {
|
|
217
|
+
name: "HCCard",
|
|
218
|
+
slot: "skeletonActions"
|
|
219
|
+
})(({ theme: t }) => ({
|
|
220
|
+
borderRadius: t.shape.borderRadius
|
|
70
221
|
}));
|
|
71
222
|
export {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
223
|
+
j as ActionsContainer,
|
|
224
|
+
W as AvatarLabel,
|
|
225
|
+
E as AvatarRow,
|
|
226
|
+
B as AvatarSubTitle,
|
|
227
|
+
S as AvatarTitle,
|
|
228
|
+
M as CardActions,
|
|
229
|
+
L as CardAvatar,
|
|
230
|
+
w as CardAvatarLarge,
|
|
231
|
+
f as CardContent,
|
|
232
|
+
m as CardMedia,
|
|
233
|
+
u as ContentBody,
|
|
234
|
+
h as ContentColumn,
|
|
235
|
+
I as ExtraInfo,
|
|
236
|
+
T as LandscapeCardExtraActions,
|
|
237
|
+
g as LandscapeCardRoot,
|
|
238
|
+
b as LandscapeContent,
|
|
239
|
+
A as LandscapeInfoBox,
|
|
240
|
+
x as MediaSkeleton,
|
|
241
|
+
H as MenuContainer,
|
|
242
|
+
R as PortraitCardExtraActions,
|
|
243
|
+
p as PortraitCardRoot,
|
|
244
|
+
F as SkeletonActions,
|
|
245
|
+
P as SkeletonAvatarCircle,
|
|
246
|
+
z as SkeletonExtraIcon,
|
|
247
|
+
O as SkeletonLine,
|
|
248
|
+
D as SkeletonLineSubtle,
|
|
249
|
+
k as Stats,
|
|
250
|
+
y as Text,
|
|
251
|
+
v as Title
|
|
77
252
|
};
|
|
@@ -1,149 +1,121 @@
|
|
|
1
|
-
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { AlternateCardRoot as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
{
|
|
42
|
-
animation: "wave",
|
|
43
|
-
height: 10,
|
|
44
|
-
width: "50%",
|
|
45
|
-
sx: { mb: 0.25, mt: 0.35 }
|
|
46
|
-
}
|
|
47
|
-
) : /* @__PURE__ */ e(
|
|
48
|
-
l,
|
|
49
|
-
{
|
|
50
|
-
gutterBottom: !0,
|
|
51
|
-
variant: "subtitle1",
|
|
52
|
-
component: "h3",
|
|
53
|
-
sx: {
|
|
54
|
-
mb: 0,
|
|
55
|
-
overflow: "hidden",
|
|
56
|
-
textOverflow: "ellipsis",
|
|
57
|
-
display: "-webkit-box",
|
|
58
|
-
WebkitLineClamp: 3,
|
|
59
|
-
WebkitBoxOrient: "vertical",
|
|
60
|
-
cursor: a ? "pointer" : "default",
|
|
61
|
-
lineHeight: "22px",
|
|
62
|
-
overflowWrap: "break-word",
|
|
63
|
-
wordBreak: "break-word"
|
|
64
|
-
},
|
|
65
|
-
onClick: m,
|
|
66
|
-
children: p
|
|
67
|
-
}
|
|
68
|
-
),
|
|
69
|
-
d && (i ? /* @__PURE__ */ e(
|
|
70
|
-
t,
|
|
71
|
-
{
|
|
72
|
-
animation: "wave",
|
|
73
|
-
height: 10,
|
|
74
|
-
width: "40%",
|
|
75
|
-
sx: { mb: 0.25, mt: 0.35 }
|
|
76
|
-
}
|
|
77
|
-
) : /* @__PURE__ */ e(
|
|
78
|
-
l,
|
|
79
|
-
{
|
|
80
|
-
variant: "caption",
|
|
81
|
-
component: "p",
|
|
82
|
-
sx: {
|
|
83
|
-
color: "text.secondary",
|
|
84
|
-
overflow: "hidden",
|
|
85
|
-
textOverflow: "ellipsis",
|
|
86
|
-
display: "-webkit-box",
|
|
87
|
-
WebkitLineClamp: 4,
|
|
88
|
-
WebkitBoxOrient: "vertical",
|
|
89
|
-
lineHeight: "16px",
|
|
90
|
-
overflowWrap: "break-word",
|
|
91
|
-
wordBreak: "break-word"
|
|
92
|
-
},
|
|
93
|
-
children: d
|
|
94
|
-
}
|
|
95
|
-
))
|
|
96
|
-
] })
|
|
97
|
-
] }),
|
|
98
|
-
i ? /* @__PURE__ */ n(r, { children: [
|
|
99
|
-
/* @__PURE__ */ e(t, { animation: "wave", height: 10, sx: { mb: 0.5, mt: 0.5 } }),
|
|
100
|
-
/* @__PURE__ */ e(
|
|
101
|
-
t,
|
|
102
|
-
{
|
|
103
|
-
animation: "wave",
|
|
104
|
-
height: 10,
|
|
105
|
-
width: "80%",
|
|
106
|
-
sx: { mb: 0.5 }
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
] }) : /* @__PURE__ */ e(
|
|
110
|
-
l,
|
|
1
|
+
import { jsxs as n, jsx as e, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { useCardAlternateLogic as T } from "./logic.js";
|
|
3
|
+
import { AlternateCardRoot as p, AlternateCardBody as k, AlternateCardMenuContainer as f, AlternateCardHeaderRow as b, AlternateCardAvatarContainer as M, AlternateCardAvatarSkeleton as R, AlternateCardTitleColumn as S, AlternateCardLineSkeleton as r, AlternateCardTitle as E, AlternateCardSubTitle as I, AlternateCardText as L, AlternateCardRightMenu as j } from "./styled.js";
|
|
4
|
+
const s = 350, F = (l) => {
|
|
5
|
+
const { state: C, actions: o } = T(l), { ownerState: t } = C, {
|
|
6
|
+
title: m,
|
|
7
|
+
subTitle: d,
|
|
8
|
+
text: i,
|
|
9
|
+
avatar: h,
|
|
10
|
+
footer: u,
|
|
11
|
+
menu: c,
|
|
12
|
+
extra: A,
|
|
13
|
+
loading: a,
|
|
14
|
+
rightMenu: g,
|
|
15
|
+
sx: v
|
|
16
|
+
} = l, w = typeof i == "string" ? i.length > s ? `${i.substring(0, s)}...` : i : null;
|
|
17
|
+
return /* @__PURE__ */ n(p, { ownerState: t, sx: v, children: [
|
|
18
|
+
/* @__PURE__ */ n(k, { ownerState: t, children: [
|
|
19
|
+
c && /* @__PURE__ */ e(
|
|
20
|
+
f,
|
|
21
|
+
{
|
|
22
|
+
ownerState: t,
|
|
23
|
+
className: "menu-container",
|
|
24
|
+
children: c
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ n(b, { ownerState: t, children: [
|
|
28
|
+
h && /* @__PURE__ */ e(M, { ownerState: t, children: a ? /* @__PURE__ */ e(
|
|
29
|
+
R,
|
|
30
|
+
{
|
|
31
|
+
ownerState: t,
|
|
32
|
+
animation: "wave",
|
|
33
|
+
variant: "circular",
|
|
34
|
+
width: 42,
|
|
35
|
+
height: 42
|
|
36
|
+
}
|
|
37
|
+
) : h }),
|
|
38
|
+
/* @__PURE__ */ n(S, { ownerState: t, children: [
|
|
39
|
+
a ? /* @__PURE__ */ e(
|
|
40
|
+
r,
|
|
111
41
|
{
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
},
|
|
127
|
-
onClick: m,
|
|
128
|
-
children: /* @__PURE__ */ e("small", { children: typeof o == "string" ? o.length > 350 ? `${o.substring(0, 350)}...` : o : null })
|
|
42
|
+
ownerState: t,
|
|
43
|
+
animation: "wave",
|
|
44
|
+
height: 10,
|
|
45
|
+
width: "50%"
|
|
46
|
+
}
|
|
47
|
+
) : /* @__PURE__ */ e(
|
|
48
|
+
E,
|
|
49
|
+
{
|
|
50
|
+
ownerState: t,
|
|
51
|
+
gutterBottom: !0,
|
|
52
|
+
variant: "subtitle1",
|
|
53
|
+
as: "h3",
|
|
54
|
+
onClick: o.handleClick,
|
|
55
|
+
children: m
|
|
129
56
|
}
|
|
130
57
|
),
|
|
131
|
-
|
|
132
|
-
|
|
58
|
+
d && (a ? /* @__PURE__ */ e(
|
|
59
|
+
r,
|
|
133
60
|
{
|
|
61
|
+
ownerState: t,
|
|
134
62
|
animation: "wave",
|
|
135
63
|
height: 10,
|
|
136
|
-
width: "
|
|
137
|
-
|
|
64
|
+
width: "40%"
|
|
65
|
+
}
|
|
66
|
+
) : /* @__PURE__ */ e(
|
|
67
|
+
I,
|
|
68
|
+
{
|
|
69
|
+
ownerState: t,
|
|
70
|
+
variant: "caption",
|
|
71
|
+
as: "p",
|
|
72
|
+
children: d
|
|
138
73
|
}
|
|
139
|
-
)
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
74
|
+
))
|
|
75
|
+
] })
|
|
76
|
+
] }),
|
|
77
|
+
a ? /* @__PURE__ */ n(x, { children: [
|
|
78
|
+
/* @__PURE__ */ e(
|
|
79
|
+
r,
|
|
80
|
+
{
|
|
81
|
+
ownerState: t,
|
|
82
|
+
animation: "wave",
|
|
83
|
+
height: 10
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
/* @__PURE__ */ e(
|
|
87
|
+
r,
|
|
88
|
+
{
|
|
89
|
+
ownerState: t,
|
|
90
|
+
animation: "wave",
|
|
91
|
+
height: 10,
|
|
92
|
+
width: "80%"
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
] }) : /* @__PURE__ */ e(
|
|
96
|
+
L,
|
|
97
|
+
{
|
|
98
|
+
ownerState: t,
|
|
99
|
+
variant: "caption",
|
|
100
|
+
as: "p",
|
|
101
|
+
onClick: o.handleClick,
|
|
102
|
+
children: /* @__PURE__ */ e("small", { children: w })
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
a ? /* @__PURE__ */ e(
|
|
106
|
+
r,
|
|
107
|
+
{
|
|
108
|
+
ownerState: t,
|
|
109
|
+
animation: "wave",
|
|
110
|
+
height: 10,
|
|
111
|
+
width: "100px"
|
|
112
|
+
}
|
|
113
|
+
) : u,
|
|
114
|
+
a ? null : A
|
|
115
|
+
] }),
|
|
116
|
+
/* @__PURE__ */ e(j, { ownerState: t, children: g })
|
|
117
|
+
] });
|
|
146
118
|
};
|
|
147
119
|
export {
|
|
148
|
-
|
|
120
|
+
F as CardAlternate
|
|
149
121
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useThemeProps as s } from "@mui/material";
|
|
2
|
+
const a = (o) => {
|
|
3
|
+
const t = s({ props: o, name: "HCCardAlternate" }), { onClick: e } = t, r = () => {
|
|
4
|
+
e && e();
|
|
5
|
+
}, n = {
|
|
6
|
+
...t,
|
|
7
|
+
clickable: !!e
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
refs: {},
|
|
11
|
+
state: { ownerState: n },
|
|
12
|
+
actions: { handleClick: r }
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
a as useCardAlternateLogic
|
|
17
|
+
};
|