@bayonai/mui-design 1.8.0 → 1.10.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/CHANGELOG.md +10 -0
- package/README.md +26 -0
- package/package.json +1 -1
- package/dist/cjs/actions/ActionMenu.d.ts +0 -24
- package/dist/cjs/actions/ActionMenu.js +0 -36
- package/dist/cjs/actions/DialogActionButtons.d.ts +0 -23
- package/dist/cjs/actions/DialogActionButtons.js +0 -33
- package/dist/cjs/actions/LoadingIconButton.d.ts +0 -11
- package/dist/cjs/actions/LoadingIconButton.js +0 -10
- package/dist/cjs/actions/StickyActionFooter.d.ts +0 -14
- package/dist/cjs/actions/StickyActionFooter.js +0 -27
- package/dist/cjs/actions/StickySubmitButton.d.ts +0 -10
- package/dist/cjs/actions/StickySubmitButton.js +0 -10
- package/dist/cjs/actions/index.d.ts +0 -5
- package/dist/cjs/actions/index.js +0 -18
- package/dist/cjs/client.d.ts +0 -4
- package/dist/cjs/client.js +0 -21
- package/dist/cjs/components/BayonFlowVisual.d.ts +0 -12
- package/dist/cjs/components/BayonFlowVisual.js +0 -87
- package/dist/cjs/components/BayonThemeModeToggle.d.ts +0 -6
- package/dist/cjs/components/BayonThemeModeToggle.js +0 -34
- package/dist/cjs/components/IconTooltipButton.d.ts +0 -10
- package/dist/cjs/components/IconTooltipButton.js +0 -50
- package/dist/cjs/components/panels.d.ts +0 -37
- package/dist/cjs/components/panels.js +0 -92
- package/dist/cjs/drawers/BottomDrawer.d.ts +0 -16
- package/dist/cjs/drawers/BottomDrawer.js +0 -43
- package/dist/cjs/drawers/MobileBottomDrawer.d.ts +0 -20
- package/dist/cjs/drawers/MobileBottomDrawer.js +0 -102
- package/dist/cjs/drawers/MobileBottomDrawerHeader.d.ts +0 -11
- package/dist/cjs/drawers/MobileBottomDrawerHeader.js +0 -36
- package/dist/cjs/drawers/ResponsiveDrawer.d.ts +0 -25
- package/dist/cjs/drawers/ResponsiveDrawer.js +0 -22
- package/dist/cjs/drawers/WorkspaceSidePane.d.ts +0 -25
- package/dist/cjs/drawers/WorkspaceSidePane.js +0 -206
- package/dist/cjs/drawers/WorkspaceSidePaneRoot.d.ts +0 -1
- package/dist/cjs/drawers/WorkspaceSidePaneRoot.js +0 -93
- package/dist/cjs/drawers/drawerAppearance.d.ts +0 -8
- package/dist/cjs/drawers/drawerAppearance.js +0 -10
- package/dist/cjs/drawers/index.d.ts +0 -7
- package/dist/cjs/drawers/index.js +0 -19
- package/dist/cjs/drawers/useVisualViewportBottomInset.d.ts +0 -6
- package/dist/cjs/drawers/useVisualViewportBottomInset.js +0 -33
- package/dist/cjs/drawers/workspaceSidePaneGeometry.d.ts +0 -11
- package/dist/cjs/drawers/workspaceSidePaneGeometry.js +0 -15
- package/dist/cjs/feedback/StatusNotice.d.ts +0 -13
- package/dist/cjs/feedback/StatusNotice.js +0 -62
- package/dist/cjs/feedback/index.d.ts +0 -1
- package/dist/cjs/feedback/index.js +0 -7
- package/dist/cjs/index.d.ts +0 -9
- package/dist/cjs/index.js +0 -25
- package/dist/cjs/internal/DialogChoiceTile.d.ts +0 -20
- package/dist/cjs/internal/DialogChoiceTile.js +0 -60
- package/dist/cjs/links/LinkAddressPreview.d.ts +0 -19
- package/dist/cjs/links/LinkAddressPreview.js +0 -80
- package/dist/cjs/links/index.d.ts +0 -3
- package/dist/cjs/links/index.js +0 -9
- package/dist/cjs/links/useLinkAddressPreview.d.ts +0 -26
- package/dist/cjs/links/useLinkAddressPreview.js +0 -162
- package/dist/cjs/location/GeographicLocationField.d.ts +0 -26
- package/dist/cjs/location/GeographicLocationField.js +0 -49
- package/dist/cjs/location/GoogleMapsAttribution.d.ts +0 -1
- package/dist/cjs/location/GoogleMapsAttribution.js +0 -12
- package/dist/cjs/location/MetadataFieldGroup.d.ts +0 -5
- package/dist/cjs/location/MetadataFieldGroup.js +0 -13
- package/dist/cjs/location/MetadataValueField.d.ts +0 -23
- package/dist/cjs/location/MetadataValueField.js +0 -27
- package/dist/cjs/location/SearchInputAction.d.ts +0 -9
- package/dist/cjs/location/SearchInputAction.js +0 -14
- package/dist/cjs/location/TemplateBadge.d.ts +0 -5
- package/dist/cjs/location/TemplateBadge.js +0 -9
- package/dist/cjs/location/VenueSearchDialog.d.ts +0 -33
- package/dist/cjs/location/VenueSearchDialog.js +0 -112
- package/dist/cjs/location/index.d.ts +0 -6
- package/dist/cjs/location/index.js +0 -20
- package/dist/cjs/package.json +0 -3
- package/dist/cjs/pending/PendingChangesDialogShell.d.ts +0 -2
- package/dist/cjs/pending/PendingChangesDialogShell.js +0 -16
- package/dist/cjs/pending/PendingChangesDialogView.d.ts +0 -2
- package/dist/cjs/pending/PendingChangesDialogView.js +0 -140
- package/dist/cjs/pending/PendingChangesIndicatorView.d.ts +0 -10
- package/dist/cjs/pending/PendingChangesIndicatorView.js +0 -27
- package/dist/cjs/pending/index.d.ts +0 -3
- package/dist/cjs/pending/index.js +0 -9
- package/dist/cjs/pending/types.d.ts +0 -55
- package/dist/cjs/pending/types.js +0 -2
- package/dist/cjs/pricing/PlanUpgradeDialog.d.ts +0 -17
- package/dist/cjs/pricing/PlanUpgradeDialog.js +0 -22
- package/dist/cjs/pricing/PricingTable.d.ts +0 -28
- package/dist/cjs/pricing/PricingTable.js +0 -60
- package/dist/cjs/pricing/index.d.ts +0 -3
- package/dist/cjs/pricing/index.js +0 -8
- package/dist/cjs/providers/BayonThemeProvider.d.ts +0 -20
- package/dist/cjs/providers/BayonThemeProvider.js +0 -163
- package/dist/cjs/sections/ExpandableSectionToggle.d.ts +0 -12
- package/dist/cjs/sections/ExpandableSectionToggle.js +0 -32
- package/dist/cjs/sections/index.d.ts +0 -2
- package/dist/cjs/sections/index.js +0 -7
- package/dist/cjs/styles/pageStyles.d.ts +0 -15
- package/dist/cjs/styles/pageStyles.js +0 -103
- package/dist/cjs/swipe/SwipeActionRow.d.ts +0 -8
- package/dist/cjs/swipe/SwipeActionRow.js +0 -123
- package/dist/cjs/swipe/index.d.ts +0 -1
- package/dist/cjs/swipe/index.js +0 -8
- package/dist/cjs/theme/components.d.ts +0 -2
- package/dist/cjs/theme/components.js +0 -123
- package/dist/cjs/theme/createBayonTheme.d.ts +0 -4
- package/dist/cjs/theme/createBayonTheme.js +0 -45
- package/dist/cjs/theme/palette.d.ts +0 -146
- package/dist/cjs/theme/palette.js +0 -109
- package/dist/cjs/theme/shadows.d.ts +0 -2
- package/dist/cjs/theme/shadows.js +0 -21
- package/dist/cjs/theme/types.d.ts +0 -47
- package/dist/cjs/theme/types.js +0 -2
- package/dist/cjs/theme/typography.d.ts +0 -2
- package/dist/cjs/theme/typography.js +0 -58
- package/dist/cjs/toasts/ActionToast.d.ts +0 -11
- package/dist/cjs/toasts/ActionToast.js +0 -12
- package/dist/cjs/toasts/Toast.d.ts +0 -16
- package/dist/cjs/toasts/Toast.js +0 -55
- package/dist/cjs/toasts/index.d.ts +0 -5
- package/dist/cjs/toasts/index.js +0 -12
- package/dist/cjs/toasts/useUpwardToastDismiss.d.ts +0 -15
- package/dist/cjs/toasts/useUpwardToastDismiss.js +0 -73
- package/dist/cjs/uploads/CameraCaptureDialog.d.ts +0 -22
- package/dist/cjs/uploads/CameraCaptureDialog.js +0 -187
- package/dist/cjs/uploads/FileRow.d.ts +0 -10
- package/dist/cjs/uploads/FileRow.js +0 -23
- package/dist/cjs/uploads/FileSwipeActionRow.d.ts +0 -1
- package/dist/cjs/uploads/FileSwipeActionRow.js +0 -11
- package/dist/cjs/uploads/FileThumbnail.d.ts +0 -5
- package/dist/cjs/uploads/FileThumbnail.js +0 -104
- package/dist/cjs/uploads/FileUpload.d.ts +0 -26
- package/dist/cjs/uploads/FileUpload.js +0 -98
- package/dist/cjs/uploads/FileViewer.d.ts +0 -9
- package/dist/cjs/uploads/FileViewer.js +0 -155
- package/dist/cjs/uploads/ImageCropDialog.d.ts +0 -26
- package/dist/cjs/uploads/ImageCropDialog.js +0 -215
- package/dist/cjs/uploads/ImageInfoPanel.d.ts +0 -24
- package/dist/cjs/uploads/ImageInfoPanel.js +0 -41
- package/dist/cjs/uploads/ImageUploadQualityDialog.d.ts +0 -13
- package/dist/cjs/uploads/ImageUploadQualityDialog.js +0 -57
- package/dist/cjs/uploads/UploadProgressRing.d.ts +0 -24
- package/dist/cjs/uploads/UploadProgressRing.js +0 -32
- package/dist/cjs/uploads/cameraCropPresentation.d.ts +0 -2
- package/dist/cjs/uploads/cameraCropPresentation.js +0 -12
- package/dist/cjs/uploads/index.d.ts +0 -12
- package/dist/cjs/uploads/index.js +0 -24
- package/dist/cjs/utils/createBayonEmotionCache.d.ts +0 -1
- package/dist/cjs/utils/createBayonEmotionCache.js +0 -21
- package/dist/esm/actions/ActionMenu.js +0 -30
- package/dist/esm/actions/DialogActionButtons.js +0 -24
- package/dist/esm/actions/LoadingIconButton.js +0 -7
- package/dist/esm/actions/StickyActionFooter.js +0 -24
- package/dist/esm/actions/StickySubmitButton.js +0 -7
- package/dist/esm/actions/index.js +0 -7
- package/dist/esm/client.js +0 -5
- package/dist/esm/components/BayonFlowVisual.js +0 -81
- package/dist/esm/components/BayonThemeModeToggle.js +0 -28
- package/dist/esm/components/IconTooltipButton.js +0 -11
- package/dist/esm/components/panels.js +0 -76
- package/dist/esm/drawers/BottomDrawer.js +0 -37
- package/dist/esm/drawers/MobileBottomDrawer.js +0 -95
- package/dist/esm/drawers/MobileBottomDrawerHeader.js +0 -30
- package/dist/esm/drawers/ResponsiveDrawer.js +0 -19
- package/dist/esm/drawers/WorkspaceSidePane.js +0 -200
- package/dist/esm/drawers/WorkspaceSidePaneRoot.js +0 -90
- package/dist/esm/drawers/drawerAppearance.js +0 -7
- package/dist/esm/drawers/index.js +0 -8
- package/dist/esm/drawers/useVisualViewportBottomInset.js +0 -29
- package/dist/esm/drawers/workspaceSidePaneGeometry.js +0 -11
- package/dist/esm/feedback/StatusNotice.js +0 -56
- package/dist/esm/feedback/index.js +0 -3
- package/dist/esm/index.js +0 -9
- package/dist/esm/internal/DialogChoiceTile.js +0 -54
- package/dist/esm/links/LinkAddressPreview.js +0 -74
- package/dist/esm/links/index.js +0 -4
- package/dist/esm/links/useLinkAddressPreview.js +0 -159
- package/dist/esm/location/GeographicLocationField.js +0 -43
- package/dist/esm/location/GoogleMapsAttribution.js +0 -9
- package/dist/esm/location/MetadataFieldGroup.js +0 -9
- package/dist/esm/location/MetadataValueField.js +0 -23
- package/dist/esm/location/SearchInputAction.js +0 -8
- package/dist/esm/location/TemplateBadge.js +0 -6
- package/dist/esm/location/VenueSearchDialog.js +0 -109
- package/dist/esm/location/index.js +0 -7
- package/dist/esm/pending/PendingChangesDialogShell.js +0 -10
- package/dist/esm/pending/PendingChangesDialogView.js +0 -134
- package/dist/esm/pending/PendingChangesIndicatorView.js +0 -21
- package/dist/esm/pending/index.js +0 -4
- package/dist/esm/pending/types.js +0 -1
- package/dist/esm/pricing/PlanUpgradeDialog.js +0 -19
- package/dist/esm/pricing/PricingTable.js +0 -54
- package/dist/esm/pricing/index.js +0 -3
- package/dist/esm/providers/BayonThemeProvider.js +0 -123
- package/dist/esm/sections/ExpandableSectionToggle.js +0 -26
- package/dist/esm/sections/index.js +0 -3
- package/dist/esm/styles/pageStyles.js +0 -100
- package/dist/esm/swipe/SwipeActionRow.js +0 -116
- package/dist/esm/swipe/index.js +0 -3
- package/dist/esm/theme/components.js +0 -120
- package/dist/esm/theme/createBayonTheme.js +0 -41
- package/dist/esm/theme/palette.js +0 -106
- package/dist/esm/theme/shadows.js +0 -18
- package/dist/esm/theme/types.js +0 -1
- package/dist/esm/theme/typography.js +0 -55
- package/dist/esm/toasts/ActionToast.js +0 -9
- package/dist/esm/toasts/Toast.js +0 -52
- package/dist/esm/toasts/index.js +0 -5
- package/dist/esm/toasts/useUpwardToastDismiss.js +0 -69
- package/dist/esm/uploads/CameraCaptureDialog.js +0 -181
- package/dist/esm/uploads/FileRow.js +0 -17
- package/dist/esm/uploads/FileSwipeActionRow.js +0 -7
- package/dist/esm/uploads/FileThumbnail.js +0 -98
- package/dist/esm/uploads/FileUpload.js +0 -92
- package/dist/esm/uploads/FileViewer.js +0 -149
- package/dist/esm/uploads/ImageCropDialog.js +0 -212
- package/dist/esm/uploads/ImageInfoPanel.js +0 -35
- package/dist/esm/uploads/ImageUploadQualityDialog.js +0 -51
- package/dist/esm/uploads/UploadProgressRing.js +0 -29
- package/dist/esm/uploads/cameraCropPresentation.js +0 -5
- package/dist/esm/uploads/index.js +0 -11
- package/dist/esm/utils/createBayonEmotionCache.js +0 -15
- package/dist/types/actions/ActionMenu.d.ts +0 -24
- package/dist/types/actions/DialogActionButtons.d.ts +0 -23
- package/dist/types/actions/LoadingIconButton.d.ts +0 -11
- package/dist/types/actions/StickyActionFooter.d.ts +0 -14
- package/dist/types/actions/StickySubmitButton.d.ts +0 -10
- package/dist/types/actions/index.d.ts +0 -5
- package/dist/types/client.d.ts +0 -4
- package/dist/types/components/BayonFlowVisual.d.ts +0 -12
- package/dist/types/components/BayonThemeModeToggle.d.ts +0 -6
- package/dist/types/components/IconTooltipButton.d.ts +0 -10
- package/dist/types/components/panels.d.ts +0 -37
- package/dist/types/drawers/BottomDrawer.d.ts +0 -16
- package/dist/types/drawers/MobileBottomDrawer.d.ts +0 -20
- package/dist/types/drawers/MobileBottomDrawerHeader.d.ts +0 -11
- package/dist/types/drawers/ResponsiveDrawer.d.ts +0 -25
- package/dist/types/drawers/WorkspaceSidePane.d.ts +0 -25
- package/dist/types/drawers/WorkspaceSidePaneRoot.d.ts +0 -1
- package/dist/types/drawers/drawerAppearance.d.ts +0 -8
- package/dist/types/drawers/index.d.ts +0 -7
- package/dist/types/drawers/useVisualViewportBottomInset.d.ts +0 -6
- package/dist/types/drawers/workspaceSidePaneGeometry.d.ts +0 -11
- package/dist/types/feedback/StatusNotice.d.ts +0 -13
- package/dist/types/feedback/index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -9
- package/dist/types/internal/DialogChoiceTile.d.ts +0 -20
- package/dist/types/links/LinkAddressPreview.d.ts +0 -19
- package/dist/types/links/index.d.ts +0 -3
- package/dist/types/links/useLinkAddressPreview.d.ts +0 -26
- package/dist/types/location/GeographicLocationField.d.ts +0 -26
- package/dist/types/location/GoogleMapsAttribution.d.ts +0 -1
- package/dist/types/location/MetadataFieldGroup.d.ts +0 -5
- package/dist/types/location/MetadataValueField.d.ts +0 -23
- package/dist/types/location/SearchInputAction.d.ts +0 -9
- package/dist/types/location/TemplateBadge.d.ts +0 -5
- package/dist/types/location/VenueSearchDialog.d.ts +0 -33
- package/dist/types/location/index.d.ts +0 -6
- package/dist/types/pending/PendingChangesDialogShell.d.ts +0 -2
- package/dist/types/pending/PendingChangesDialogView.d.ts +0 -2
- package/dist/types/pending/PendingChangesIndicatorView.d.ts +0 -10
- package/dist/types/pending/index.d.ts +0 -3
- package/dist/types/pending/types.d.ts +0 -55
- package/dist/types/pricing/PlanUpgradeDialog.d.ts +0 -17
- package/dist/types/pricing/PricingTable.d.ts +0 -28
- package/dist/types/pricing/index.d.ts +0 -3
- package/dist/types/providers/BayonThemeProvider.d.ts +0 -20
- package/dist/types/sections/ExpandableSectionToggle.d.ts +0 -12
- package/dist/types/sections/index.d.ts +0 -2
- package/dist/types/styles/pageStyles.d.ts +0 -15
- package/dist/types/swipe/SwipeActionRow.d.ts +0 -8
- package/dist/types/swipe/index.d.ts +0 -1
- package/dist/types/theme/components.d.ts +0 -2
- package/dist/types/theme/createBayonTheme.d.ts +0 -4
- package/dist/types/theme/palette.d.ts +0 -146
- package/dist/types/theme/shadows.d.ts +0 -2
- package/dist/types/theme/types.d.ts +0 -47
- package/dist/types/theme/typography.d.ts +0 -2
- package/dist/types/toasts/ActionToast.d.ts +0 -11
- package/dist/types/toasts/Toast.d.ts +0 -16
- package/dist/types/toasts/index.d.ts +0 -5
- package/dist/types/toasts/useUpwardToastDismiss.d.ts +0 -15
- package/dist/types/uploads/CameraCaptureDialog.d.ts +0 -22
- package/dist/types/uploads/FileRow.d.ts +0 -10
- package/dist/types/uploads/FileSwipeActionRow.d.ts +0 -1
- package/dist/types/uploads/FileThumbnail.d.ts +0 -5
- package/dist/types/uploads/FileUpload.d.ts +0 -26
- package/dist/types/uploads/FileViewer.d.ts +0 -9
- package/dist/types/uploads/ImageCropDialog.d.ts +0 -26
- package/dist/types/uploads/ImageInfoPanel.d.ts +0 -24
- package/dist/types/uploads/ImageUploadQualityDialog.d.ts +0 -13
- package/dist/types/uploads/UploadProgressRing.d.ts +0 -24
- package/dist/types/uploads/cameraCropPresentation.d.ts +0 -2
- package/dist/types/uploads/index.d.ts +0 -12
- package/dist/types/utils/createBayonEmotionCache.d.ts +0 -1
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.WorkspaceSidePaneRoot = void 0;
|
|
5
|
-
const styles_1 = require("@mui/material/styles");
|
|
6
|
-
const workspaceSidePaneGeometry_js_1 = require("./workspaceSidePaneGeometry.js");
|
|
7
|
-
const width = "var(--workspace-side-pane-width)";
|
|
8
|
-
const top = "var(--workspace-side-pane-top)";
|
|
9
|
-
const layer = "var(--workspace-side-pane-z-index, 1250)";
|
|
10
|
-
exports.WorkspaceSidePaneRoot = (0, styles_1.styled)("div")(({ theme }) => ({
|
|
11
|
-
minWidth: 0,
|
|
12
|
-
minHeight: "100%",
|
|
13
|
-
"&.workspace-side-pane-enabled": {
|
|
14
|
-
display: "flex",
|
|
15
|
-
alignItems: "flex-start",
|
|
16
|
-
gap: 0,
|
|
17
|
-
position: "relative",
|
|
18
|
-
},
|
|
19
|
-
"& .workspace-side-pane-workspace": { minWidth: 0, flex: "1 1 auto" },
|
|
20
|
-
"& .workspace-side-pane-group": {
|
|
21
|
-
display: "flex",
|
|
22
|
-
flex: "0 0 auto",
|
|
23
|
-
position: "sticky",
|
|
24
|
-
top: 0,
|
|
25
|
-
alignSelf: "flex-start",
|
|
26
|
-
color: "var(--workspace-side-pane-text, " + theme.palette.text.primary + ")",
|
|
27
|
-
},
|
|
28
|
-
"& .workspace-side-pane-rail": {
|
|
29
|
-
boxSizing: "border-box",
|
|
30
|
-
width: workspaceSidePaneGeometry_js_1.workspaceSidePaneMetrics.rail,
|
|
31
|
-
flex: `0 0 ${workspaceSidePaneGeometry_js_1.workspaceSidePaneMetrics.rail}px`,
|
|
32
|
-
display: "flex",
|
|
33
|
-
alignItems: "center",
|
|
34
|
-
flexDirection: "column",
|
|
35
|
-
gap: 8,
|
|
36
|
-
padding: "8px 0",
|
|
37
|
-
background: "var(--workspace-side-pane-rail-background, " + theme.palette.background.default + ")",
|
|
38
|
-
borderInline: "1px solid var(--workspace-side-pane-border, " + theme.palette.divider + ")",
|
|
39
|
-
minHeight: "100dvh",
|
|
40
|
-
},
|
|
41
|
-
"& .workspace-side-pane-group :is(button, [tabindex], summary):focus-visible": {
|
|
42
|
-
outline: "2px solid var(--workspace-side-pane-focus, " + theme.palette.primary.main + ")",
|
|
43
|
-
outlineOffset: -2,
|
|
44
|
-
},
|
|
45
|
-
"& .workspace-side-pane-resize": {
|
|
46
|
-
position: "absolute", left: -5, top: 0, bottom: 0, width: 10, zIndex: 2,
|
|
47
|
-
cursor: "ew-resize", touchAction: "none",
|
|
48
|
-
},
|
|
49
|
-
"& .workspace-side-pane-panel": {
|
|
50
|
-
boxSizing: "border-box",
|
|
51
|
-
width,
|
|
52
|
-
height: "100dvh",
|
|
53
|
-
maxHeight: `calc(100dvh - ${top})`,
|
|
54
|
-
background: "var(--workspace-side-pane-background, " + theme.palette.background.paper + ")",
|
|
55
|
-
display: "flex",
|
|
56
|
-
flexDirection: "column",
|
|
57
|
-
minWidth: 0,
|
|
58
|
-
minHeight: 0,
|
|
59
|
-
overflow: "hidden",
|
|
60
|
-
borderRight: "1px solid var(--workspace-side-pane-border, " + theme.palette.divider + ")",
|
|
61
|
-
},
|
|
62
|
-
"& .workspace-side-pane-backdrop": {
|
|
63
|
-
position: "fixed", inset: `${top} 0 0`, background: "rgba(0, 0, 0, 0.45)", zIndex: layer,
|
|
64
|
-
},
|
|
65
|
-
"&.workspace-side-pane-overlay .workspace-side-pane-group": {
|
|
66
|
-
position: "fixed", top, right: 0, bottom: 0, width: "max-content", maxWidth: "100%",
|
|
67
|
-
height: `calc(100dvh - ${top})`, minHeight: 0, zIndex: layer,
|
|
68
|
-
},
|
|
69
|
-
"&.workspace-side-pane-overlay :is(.workspace-side-pane-panel, .workspace-side-pane-rail)": {
|
|
70
|
-
height: "100%", maxHeight: "100%", minHeight: 0,
|
|
71
|
-
},
|
|
72
|
-
// Open/close animates the allocation. Explicit resizing responds immediately.
|
|
73
|
-
"& .workspace-side-pane-presence": { flex: "0 0 auto" },
|
|
74
|
-
"&.workspace-side-pane-direct-resize .workspace-side-pane-presence": {
|
|
75
|
-
transition: "none !important", width: `${width} !important`,
|
|
76
|
-
},
|
|
77
|
-
// A live motion preference change snaps the layout during an existing transition.
|
|
78
|
-
"&.workspace-side-pane-reduced-motion .workspace-side-pane-presence": {
|
|
79
|
-
transition: "none !important", width: "0 !important", overflow: "hidden !important",
|
|
80
|
-
},
|
|
81
|
-
"&.workspace-side-pane-reduced-motion.workspace-side-pane-open .workspace-side-pane-presence": {
|
|
82
|
-
width: `${width} !important`,
|
|
83
|
-
},
|
|
84
|
-
"&.workspace-side-pane-reduced-motion .workspace-side-pane-backdrop": {
|
|
85
|
-
transition: "none !important", opacity: "0 !important",
|
|
86
|
-
},
|
|
87
|
-
"&.workspace-side-pane-reduced-motion .workspace-side-pane-backdrop[data-active='true']": {
|
|
88
|
-
opacity: "1 !important",
|
|
89
|
-
},
|
|
90
|
-
"@media (max-width: 480px)": {
|
|
91
|
-
"& .workspace-side-pane-panel": { paddingBottom: "env(safe-area-inset-bottom)" },
|
|
92
|
-
},
|
|
93
|
-
}));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultDrawerAppearance = void 0;
|
|
4
|
-
exports.defaultDrawerAppearance = {
|
|
5
|
-
background: "background.paper",
|
|
6
|
-
chrome: "action.hover",
|
|
7
|
-
handle: "text.secondary",
|
|
8
|
-
shadow: "0 -8px 32px rgba(0,0,0,0.16)",
|
|
9
|
-
safeAreaBottom: "env(safe-area-inset-bottom, 0px)",
|
|
10
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { MobileBottomDrawer, mobileBottomDrawerDismissDuration, } from "./MobileBottomDrawer.js";
|
|
2
|
-
export { MobileBottomDrawerHeader } from "./MobileBottomDrawerHeader.js";
|
|
3
|
-
export { BottomDrawer } from "./BottomDrawer.js";
|
|
4
|
-
export { ResponsiveDrawer } from "./ResponsiveDrawer.js";
|
|
5
|
-
export { useVisualViewportBottomInset, getVisualViewportBottomInset, } from "./useVisualViewportBottomInset.js";
|
|
6
|
-
export type { DrawerAppearance } from "./drawerAppearance.js";
|
|
7
|
-
export { WorkspaceSidePane, type WorkspaceSidePaneActions, type WorkspaceSidePaneProps, } from "./WorkspaceSidePane.js";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.WorkspaceSidePane = exports.getVisualViewportBottomInset = exports.useVisualViewportBottomInset = exports.ResponsiveDrawer = exports.BottomDrawer = exports.MobileBottomDrawerHeader = exports.mobileBottomDrawerDismissDuration = exports.MobileBottomDrawer = void 0;
|
|
5
|
-
// TL-M249: preserve the established MUI presentation under its owning package.
|
|
6
|
-
var MobileBottomDrawer_js_1 = require("./MobileBottomDrawer.js");
|
|
7
|
-
Object.defineProperty(exports, "MobileBottomDrawer", { enumerable: true, get: function () { return MobileBottomDrawer_js_1.MobileBottomDrawer; } });
|
|
8
|
-
Object.defineProperty(exports, "mobileBottomDrawerDismissDuration", { enumerable: true, get: function () { return MobileBottomDrawer_js_1.mobileBottomDrawerDismissDuration; } });
|
|
9
|
-
var MobileBottomDrawerHeader_js_1 = require("./MobileBottomDrawerHeader.js");
|
|
10
|
-
Object.defineProperty(exports, "MobileBottomDrawerHeader", { enumerable: true, get: function () { return MobileBottomDrawerHeader_js_1.MobileBottomDrawerHeader; } });
|
|
11
|
-
var BottomDrawer_js_1 = require("./BottomDrawer.js");
|
|
12
|
-
Object.defineProperty(exports, "BottomDrawer", { enumerable: true, get: function () { return BottomDrawer_js_1.BottomDrawer; } });
|
|
13
|
-
var ResponsiveDrawer_js_1 = require("./ResponsiveDrawer.js");
|
|
14
|
-
Object.defineProperty(exports, "ResponsiveDrawer", { enumerable: true, get: function () { return ResponsiveDrawer_js_1.ResponsiveDrawer; } });
|
|
15
|
-
var useVisualViewportBottomInset_js_1 = require("./useVisualViewportBottomInset.js");
|
|
16
|
-
Object.defineProperty(exports, "useVisualViewportBottomInset", { enumerable: true, get: function () { return useVisualViewportBottomInset_js_1.useVisualViewportBottomInset; } });
|
|
17
|
-
Object.defineProperty(exports, "getVisualViewportBottomInset", { enumerable: true, get: function () { return useVisualViewportBottomInset_js_1.getVisualViewportBottomInset; } });
|
|
18
|
-
var WorkspaceSidePane_js_1 = require("./WorkspaceSidePane.js");
|
|
19
|
-
Object.defineProperty(exports, "WorkspaceSidePane", { enumerable: true, get: function () { return WorkspaceSidePane_js_1.WorkspaceSidePane; } });
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare function getVisualViewportBottomInset({ layoutViewportHeight, visualViewportHeight, visualViewportOffsetTop, }: {
|
|
2
|
-
layoutViewportHeight: number;
|
|
3
|
-
visualViewportHeight: number;
|
|
4
|
-
visualViewportOffsetTop: number;
|
|
5
|
-
}): number;
|
|
6
|
-
export declare function useVisualViewportBottomInset(): number;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.getVisualViewportBottomInset = getVisualViewportBottomInset;
|
|
5
|
-
exports.useVisualViewportBottomInset = useVisualViewportBottomInset;
|
|
6
|
-
const react_1 = require("react");
|
|
7
|
-
function getVisualViewportBottomInset({ layoutViewportHeight, visualViewportHeight, visualViewportOffsetTop, }) {
|
|
8
|
-
return Math.max(0, Math.round(layoutViewportHeight - visualViewportHeight - visualViewportOffsetTop));
|
|
9
|
-
}
|
|
10
|
-
function useVisualViewportBottomInset() {
|
|
11
|
-
const [bottomInset, setBottomInset] = (0, react_1.useState)(0);
|
|
12
|
-
(0, react_1.useEffect)(() => {
|
|
13
|
-
const visualViewport = window.visualViewport;
|
|
14
|
-
if (!visualViewport) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const updateBottomInset = () => {
|
|
18
|
-
setBottomInset(getVisualViewportBottomInset({
|
|
19
|
-
layoutViewportHeight: window.innerHeight,
|
|
20
|
-
visualViewportHeight: visualViewport.height,
|
|
21
|
-
visualViewportOffsetTop: visualViewport.offsetTop,
|
|
22
|
-
}));
|
|
23
|
-
};
|
|
24
|
-
updateBottomInset();
|
|
25
|
-
visualViewport.addEventListener("resize", updateBottomInset);
|
|
26
|
-
visualViewport.addEventListener("scroll", updateBottomInset);
|
|
27
|
-
return () => {
|
|
28
|
-
visualViewport.removeEventListener("resize", updateBottomInset);
|
|
29
|
-
visualViewport.removeEventListener("scroll", updateBottomInset);
|
|
30
|
-
};
|
|
31
|
-
}, []);
|
|
32
|
-
return bottomInset;
|
|
33
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const workspaceSidePaneMetrics: {
|
|
2
|
-
readonly rail: 56;
|
|
3
|
-
readonly initialPane: 384;
|
|
4
|
-
readonly minPane: 320;
|
|
5
|
-
readonly maxPane: 480;
|
|
6
|
-
readonly minCanvas: 640;
|
|
7
|
-
};
|
|
8
|
-
export declare function workspaceSidePaneGeometry(available: number, requested: number, workspaceInset?: number): {
|
|
9
|
-
overlay: boolean;
|
|
10
|
-
paneWidth: number;
|
|
11
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.workspaceSidePaneMetrics = void 0;
|
|
4
|
-
exports.workspaceSidePaneGeometry = workspaceSidePaneGeometry;
|
|
5
|
-
exports.workspaceSidePaneMetrics = { rail: 56, initialPane: 384, minPane: 320, maxPane: 480, minCanvas: 640 };
|
|
6
|
-
function workspaceSidePaneGeometry(available, requested, workspaceInset = 0) {
|
|
7
|
-
const preferred = Math.min(exports.workspaceSidePaneMetrics.maxPane, Math.max(exports.workspaceSidePaneMetrics.minPane, requested));
|
|
8
|
-
const overlay = available < exports.workspaceSidePaneMetrics.minCanvas + workspaceInset + exports.workspaceSidePaneMetrics.rail + preferred;
|
|
9
|
-
return {
|
|
10
|
-
overlay,
|
|
11
|
-
paneWidth: Math.max(0, available < exports.workspaceSidePaneMetrics.minCanvas + workspaceInset + exports.workspaceSidePaneMetrics.rail
|
|
12
|
-
? available - exports.workspaceSidePaneMetrics.rail
|
|
13
|
-
: Math.min(preferred, available - exports.workspaceSidePaneMetrics.rail)),
|
|
14
|
-
};
|
|
15
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type SxProps, type Theme } from "@mui/material";
|
|
2
|
-
import type { AriaRole, ReactNode } from "react";
|
|
3
|
-
export type StatusNoticeTone = "error" | "info" | "success" | "warning";
|
|
4
|
-
export type StatusNoticeProps = {
|
|
5
|
-
action?: ReactNode;
|
|
6
|
-
compact?: boolean;
|
|
7
|
-
dataComponent?: string;
|
|
8
|
-
message: ReactNode;
|
|
9
|
-
role?: AriaRole;
|
|
10
|
-
sx?: SxProps<Theme>;
|
|
11
|
-
tone?: StatusNoticeTone;
|
|
12
|
-
};
|
|
13
|
-
export declare function StatusNotice({ action, compact, dataComponent, message, role, sx, tone, }: StatusNoticeProps): import("react").JSX.Element;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.StatusNotice = StatusNotice;
|
|
8
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
|
-
const ErrorOutlineOutlined_1 = __importDefault(require("@mui/icons-material/ErrorOutlineOutlined"));
|
|
10
|
-
const InfoOutlined_1 = __importDefault(require("@mui/icons-material/InfoOutlined"));
|
|
11
|
-
const TaskAltOutlined_1 = __importDefault(require("@mui/icons-material/TaskAltOutlined"));
|
|
12
|
-
const WarningAmberOutlined_1 = __importDefault(require("@mui/icons-material/WarningAmberOutlined"));
|
|
13
|
-
const material_1 = require("@mui/material");
|
|
14
|
-
function StatusNotice({ action, compact = false, dataComponent, message, role, sx, tone = "info", }) {
|
|
15
|
-
const toneConfig = getStatusNoticeTone(tone);
|
|
16
|
-
const Icon = toneConfig.Icon;
|
|
17
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { "data-component": dataComponent, component: compact ? "span" : "div", direction: "row", role: role !== null && role !== void 0 ? role : (tone === "error" ? "status" : undefined), spacing: compact ? 2 : 1.25, sx: [
|
|
18
|
-
{
|
|
19
|
-
alignItems: "center",
|
|
20
|
-
alignSelf: "flex-start",
|
|
21
|
-
borderRadius: 1,
|
|
22
|
-
boxShadow: "0 10px 28px rgba(0, 0, 0, 0.12)",
|
|
23
|
-
maxWidth: "100%",
|
|
24
|
-
minWidth: 0,
|
|
25
|
-
px: compact ? 0 : 1.25,
|
|
26
|
-
py: compact ? 0 : 0.875,
|
|
27
|
-
},
|
|
28
|
-
...(Array.isArray(sx) ? sx : sx ? [sx] : []),
|
|
29
|
-
], children: [(0, jsx_runtime_1.jsx)(material_1.Box, { "data-status-notice-part": "icon", component: compact ? "span" : "div", sx: {
|
|
30
|
-
alignItems: "center",
|
|
31
|
-
borderRadius: 999,
|
|
32
|
-
color: toneConfig.iconColor,
|
|
33
|
-
display: "flex",
|
|
34
|
-
flex: "0 0 auto",
|
|
35
|
-
height: compact ? 20 : 26,
|
|
36
|
-
justifyContent: "center",
|
|
37
|
-
width: compact ? 20 : 26,
|
|
38
|
-
}, children: (0, jsx_runtime_1.jsx)(Icon, { fontSize: compact ? "inherit" : "small" }) }), typeof message === "string" ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { color: "text.secondary", ...(compact ? { component: "span" } : {}), "data-status-notice-part": "message", sx: {
|
|
39
|
-
fontSize: compact ? "0.75rem" : undefined,
|
|
40
|
-
lineHeight: compact ? 1.35 : 1.55,
|
|
41
|
-
minWidth: 0,
|
|
42
|
-
overflowWrap: "anywhere",
|
|
43
|
-
}, variant: "body2", children: message })) : ((0, jsx_runtime_1.jsx)(material_1.Box, { "data-status-notice-part": "message", component: compact ? "span" : "div", sx: {
|
|
44
|
-
color: "text.secondary",
|
|
45
|
-
fontSize: compact ? "0.75rem" : undefined,
|
|
46
|
-
lineHeight: compact ? 1.35 : 1.55,
|
|
47
|
-
minWidth: 0,
|
|
48
|
-
overflowWrap: "anywhere",
|
|
49
|
-
}, children: message })), action ? ((0, jsx_runtime_1.jsx)(material_1.Box, { "data-status-notice-part": "action", sx: { alignItems: "center", display: "flex", flex: "0 0 auto" }, children: action })) : null] }));
|
|
50
|
-
}
|
|
51
|
-
function getStatusNoticeTone(tone) {
|
|
52
|
-
if (tone === "error") {
|
|
53
|
-
return { Icon: ErrorOutlineOutlined_1.default, iconColor: "error.main" };
|
|
54
|
-
}
|
|
55
|
-
if (tone === "warning") {
|
|
56
|
-
return { Icon: WarningAmberOutlined_1.default, iconColor: "warning.main" };
|
|
57
|
-
}
|
|
58
|
-
if (tone === "success") {
|
|
59
|
-
return { Icon: TaskAltOutlined_1.default, iconColor: "success.main" };
|
|
60
|
-
}
|
|
61
|
-
return { Icon: InfoOutlined_1.default, iconColor: "text.secondary" };
|
|
62
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { StatusNotice, type StatusNoticeProps, type StatusNoticeTone, } from "./StatusNotice.js";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.StatusNotice = void 0;
|
|
5
|
-
// TL-M249: preserve the established MUI presentation under its owning package.
|
|
6
|
-
var StatusNotice_js_1 = require("./StatusNotice.js");
|
|
7
|
-
Object.defineProperty(exports, "StatusNotice", { enumerable: true, get: function () { return StatusNotice_js_1.StatusNotice; } });
|
package/dist/cjs/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './components/panels.js';
|
|
2
|
-
export * from './styles/pageStyles.js';
|
|
3
|
-
export * from './theme/components.js';
|
|
4
|
-
export * from './theme/createBayonTheme.js';
|
|
5
|
-
export * from './theme/palette.js';
|
|
6
|
-
export * from './theme/shadows.js';
|
|
7
|
-
export * from './theme/typography.js';
|
|
8
|
-
export * from './theme/types.js';
|
|
9
|
-
export * from './utils/createBayonEmotionCache.js';
|
package/dist/cjs/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./components/panels.js"), exports);
|
|
18
|
-
__exportStar(require("./styles/pageStyles.js"), exports);
|
|
19
|
-
__exportStar(require("./theme/components.js"), exports);
|
|
20
|
-
__exportStar(require("./theme/createBayonTheme.js"), exports);
|
|
21
|
-
__exportStar(require("./theme/palette.js"), exports);
|
|
22
|
-
__exportStar(require("./theme/shadows.js"), exports);
|
|
23
|
-
__exportStar(require("./theme/typography.js"), exports);
|
|
24
|
-
__exportStar(require("./theme/types.js"), exports);
|
|
25
|
-
__exportStar(require("./utils/createBayonEmotionCache.js"), exports);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
type DialogChoiceTileProps = {
|
|
3
|
-
label: string;
|
|
4
|
-
description?: ReactNode;
|
|
5
|
-
icon?: ReactNode;
|
|
6
|
-
selected: boolean;
|
|
7
|
-
autoFocus?: boolean;
|
|
8
|
-
} & ({
|
|
9
|
-
name: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
onSelect: () => void;
|
|
12
|
-
onLockedClick?: never;
|
|
13
|
-
} | {
|
|
14
|
-
onLockedClick: () => void;
|
|
15
|
-
name?: never;
|
|
16
|
-
disabled?: never;
|
|
17
|
-
onSelect?: never;
|
|
18
|
-
});
|
|
19
|
-
export declare function DialogChoiceTile(props: DialogChoiceTileProps): import("react").JSX.Element;
|
|
20
|
-
export {};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.DialogChoiceTile = DialogChoiceTile;
|
|
8
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
|
-
const CheckCircle_1 = __importDefault(require("@mui/icons-material/CheckCircle"));
|
|
10
|
-
const LockOutlined_1 = __importDefault(require("@mui/icons-material/LockOutlined"));
|
|
11
|
-
const material_1 = require("@mui/material");
|
|
12
|
-
function DialogChoiceTile(props) {
|
|
13
|
-
const { label, description, icon, selected, autoFocus } = props;
|
|
14
|
-
const sx = {
|
|
15
|
-
position: "relative",
|
|
16
|
-
display: "flex",
|
|
17
|
-
flexDirection: "column",
|
|
18
|
-
alignItems: icon ? "center" : "flex-start",
|
|
19
|
-
justifyContent: "center",
|
|
20
|
-
textAlign: icon ? "center" : "start",
|
|
21
|
-
gap: 0.5,
|
|
22
|
-
p: 1.5,
|
|
23
|
-
minWidth: 0,
|
|
24
|
-
minHeight: 80,
|
|
25
|
-
border: "1px solid",
|
|
26
|
-
borderColor: selected ? "success.main" : "divider",
|
|
27
|
-
borderRadius: 2,
|
|
28
|
-
backgroundColor: selected ? "action.selected" : "background.paper",
|
|
29
|
-
overflowWrap: "anywhere",
|
|
30
|
-
"&:hover": { backgroundColor: "action.hover" },
|
|
31
|
-
"&:has(input:focus-visible), &.Mui-focusVisible": {
|
|
32
|
-
outline: "2px solid",
|
|
33
|
-
outlineColor: "success.main",
|
|
34
|
-
outlineOffset: 2,
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
const content = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [selected || props.onLockedClick ? ((0, jsx_runtime_1.jsx)(material_1.Box, { "aria-hidden": true, sx: {
|
|
38
|
-
position: "absolute",
|
|
39
|
-
top: 8,
|
|
40
|
-
right: 8,
|
|
41
|
-
color: selected ? "success.main" : "text.secondary",
|
|
42
|
-
lineHeight: 0,
|
|
43
|
-
}, children: selected ? ((0, jsx_runtime_1.jsx)(CheckCircle_1.default, { fontSize: "small" })) : ((0, jsx_runtime_1.jsx)(LockOutlined_1.default, { fontSize: "small" })) })) : null, icon ? ((0, jsx_runtime_1.jsx)(material_1.Box, { "aria-hidden": true, sx: { lineHeight: 0 }, children: icon })) : null, (0, jsx_runtime_1.jsx)(material_1.Typography, { component: "span", variant: "subtitle2", sx: { pr: icon ? 0 : 3 }, children: label }), description ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { component: "span", variant: "body2", color: "text.secondary", children: description })) : null] }));
|
|
44
|
-
if (props.onLockedClick) {
|
|
45
|
-
return ((0, jsx_runtime_1.jsx)(material_1.ButtonBase, { "aria-label": label, "aria-haspopup": "dialog", autoFocus: autoFocus, onClick: props.onLockedClick, sx: sx, type: "button", children: content }));
|
|
46
|
-
}
|
|
47
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { component: "label", sx: {
|
|
48
|
-
...sx,
|
|
49
|
-
cursor: props.disabled ? "default" : "pointer",
|
|
50
|
-
opacity: props.disabled ? 0.6 : 1,
|
|
51
|
-
}, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { component: "input", type: "radio", name: props.name, "aria-label": label, autoFocus: autoFocus, checked: selected, disabled: props.disabled, onChange: props.onSelect, sx: {
|
|
52
|
-
position: "absolute",
|
|
53
|
-
inset: 0,
|
|
54
|
-
opacity: 0,
|
|
55
|
-
width: "100%",
|
|
56
|
-
height: "100%",
|
|
57
|
-
m: 0,
|
|
58
|
-
cursor: "inherit",
|
|
59
|
-
} }), content] }));
|
|
60
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type SxProps, type Theme } from "@mui/material";
|
|
2
|
-
import type { HTMLAttributes } from "react";
|
|
3
|
-
export type LinkAddressPreviewState = {
|
|
4
|
-
href: string;
|
|
5
|
-
label: string;
|
|
6
|
-
left: number;
|
|
7
|
-
top: number;
|
|
8
|
-
};
|
|
9
|
-
export type LinkAddressPreviewProps = Pick<HTMLAttributes<HTMLElement>, "id" | "className" | "onMouseEnter" | "onMouseLeave" | "onFocusCapture" | "onBlurCapture" | "onKeyDown" | "onClick"> & {
|
|
10
|
-
link: LinkAddressPreviewState;
|
|
11
|
-
ariaLabel?: string;
|
|
12
|
-
openLabel?: string;
|
|
13
|
-
sx?: SxProps<Theme>;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Shared presentation of the editor's destination card. Hosts own validated
|
|
17
|
-
* URLs, placement, portal/lifecycle and navigation policy; no metadata is fetched.
|
|
18
|
-
*/
|
|
19
|
-
export declare function LinkAddressPreview({ link, ariaLabel, openLabel, sx, ...events }: LinkAddressPreviewProps): import("react").JSX.Element;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.LinkAddressPreview = LinkAddressPreview;
|
|
8
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
|
-
const LinkRounded_1 = __importDefault(require("@mui/icons-material/LinkRounded"));
|
|
10
|
-
const OpenInNewRounded_1 = __importDefault(require("@mui/icons-material/OpenInNewRounded"));
|
|
11
|
-
const material_1 = require("@mui/material");
|
|
12
|
-
/**
|
|
13
|
-
* Shared presentation of the editor's destination card. Hosts own validated
|
|
14
|
-
* URLs, placement, portal/lifecycle and navigation policy; no metadata is fetched.
|
|
15
|
-
*/
|
|
16
|
-
function LinkAddressPreview({ link, ariaLabel = "Link destination", openLabel = `Open ${link.href} in a new tab`, sx, ...events }) {
|
|
17
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { component: "a", href: link.href, target: "_blank", rel: "noopener noreferrer", title: openLabel, "aria-label": ariaLabel, "data-link-address-preview": "true", ...events, sx: [
|
|
18
|
-
{
|
|
19
|
-
alignItems: "center",
|
|
20
|
-
bgcolor: "background.paper",
|
|
21
|
-
border: 1,
|
|
22
|
-
borderColor: "divider",
|
|
23
|
-
borderRadius: "10px",
|
|
24
|
-
boxShadow: 8,
|
|
25
|
-
color: "text.primary",
|
|
26
|
-
display: "flex",
|
|
27
|
-
textDecoration: "none",
|
|
28
|
-
cursor: "pointer",
|
|
29
|
-
"&:focus-visible": {
|
|
30
|
-
outline: "2px solid",
|
|
31
|
-
outlineColor: "primary.main",
|
|
32
|
-
outlineOffset: 2,
|
|
33
|
-
},
|
|
34
|
-
gap: "10px",
|
|
35
|
-
left: link.left,
|
|
36
|
-
maxWidth: "calc(100vw - 24px)",
|
|
37
|
-
minHeight: 64,
|
|
38
|
-
p: "8px 10px",
|
|
39
|
-
position: "fixed",
|
|
40
|
-
top: link.top,
|
|
41
|
-
width: 360,
|
|
42
|
-
boxSizing: "border-box",
|
|
43
|
-
zIndex: (theme) => theme.zIndex.tooltip + 100,
|
|
44
|
-
},
|
|
45
|
-
...(Array.isArray(sx) ? sx : sx ? [sx] : []),
|
|
46
|
-
], children: [(0, jsx_runtime_1.jsx)(material_1.Box, { "aria-hidden": "true", "data-link-preview-part": "icon", sx: {
|
|
47
|
-
alignItems: "center",
|
|
48
|
-
bgcolor: "action.selected",
|
|
49
|
-
borderRadius: "8px",
|
|
50
|
-
color: "primary.main",
|
|
51
|
-
display: "flex",
|
|
52
|
-
flex: "0 0 36px",
|
|
53
|
-
height: 36,
|
|
54
|
-
justifyContent: "center",
|
|
55
|
-
}, children: (0, jsx_runtime_1.jsx)(LinkRounded_1.default, { sx: { fontSize: 16 } }) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { flex: 1, minWidth: 0 }, "data-link-preview-part": "text", children: [(0, jsx_runtime_1.jsx)(material_1.Box, { component: "div", dir: "auto", sx: {
|
|
56
|
-
fontSize: "0.92rem",
|
|
57
|
-
fontWeight: 600,
|
|
58
|
-
lineHeight: 1.35,
|
|
59
|
-
overflow: "hidden",
|
|
60
|
-
textOverflow: "ellipsis",
|
|
61
|
-
whiteSpace: "nowrap",
|
|
62
|
-
}, children: link.label }), (0, jsx_runtime_1.jsx)(material_1.Box, { component: "div", dir: "ltr", title: link.href, sx: {
|
|
63
|
-
color: "text.secondary",
|
|
64
|
-
fontSize: "0.8rem",
|
|
65
|
-
lineHeight: 1.4,
|
|
66
|
-
overflow: "hidden",
|
|
67
|
-
textAlign: "start",
|
|
68
|
-
textOverflow: "ellipsis",
|
|
69
|
-
whiteSpace: "nowrap",
|
|
70
|
-
}, children: link.href })] }), (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: openLabel, children: (0, jsx_runtime_1.jsx)(material_1.Box, { component: "span", "aria-hidden": "true", "data-link-preview-part": "open", sx: {
|
|
71
|
-
display: "inline-flex",
|
|
72
|
-
alignItems: "center",
|
|
73
|
-
justifyContent: "center",
|
|
74
|
-
color: "text.primary",
|
|
75
|
-
flex: "0 0 44px",
|
|
76
|
-
height: 44,
|
|
77
|
-
width: 44,
|
|
78
|
-
borderRadius: "6px",
|
|
79
|
-
}, children: (0, jsx_runtime_1.jsx)(OpenInNewRounded_1.default, { sx: { fontSize: 18 } }) }) })] }));
|
|
80
|
-
}
|
package/dist/cjs/links/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useLinkAddressPreview = exports.LinkAddressPreview = void 0;
|
|
5
|
-
// TL-M249: preserve the established MUI presentation under its owning package.
|
|
6
|
-
var LinkAddressPreview_js_1 = require("./LinkAddressPreview.js");
|
|
7
|
-
Object.defineProperty(exports, "LinkAddressPreview", { enumerable: true, get: function () { return LinkAddressPreview_js_1.LinkAddressPreview; } });
|
|
8
|
-
var useLinkAddressPreview_js_1 = require("./useLinkAddressPreview.js");
|
|
9
|
-
Object.defineProperty(exports, "useLinkAddressPreview", { enumerable: true, get: function () { return useLinkAddressPreview_js_1.useLinkAddressPreview; } });
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type FocusEvent, type KeyboardEvent, type MouseEvent, type PointerEvent as ReactPointerEvent } from "react";
|
|
2
|
-
/** Product decision: hosts own link interaction; the shared UI card only displays
|
|
3
|
-
* a validated destination. The source previews/edits; the card navigates. */
|
|
4
|
-
export declare function useLinkAddressPreview(enabled?: boolean, onEdit?: () => void): {
|
|
5
|
-
linkProps(href: string, label: string): {
|
|
6
|
-
"aria-controls": string | undefined;
|
|
7
|
-
"aria-keyshortcuts": string;
|
|
8
|
-
onPointerDown: (event: ReactPointerEvent<HTMLAnchorElement>) => void;
|
|
9
|
-
onMouseEnter: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
10
|
-
onMouseLeave: () => void;
|
|
11
|
-
onFocus: (event: FocusEvent<HTMLAnchorElement>) => void;
|
|
12
|
-
onBlur: (event: FocusEvent<HTMLElement>) => void;
|
|
13
|
-
onKeyDown: (event: KeyboardEvent<HTMLAnchorElement>) => void;
|
|
14
|
-
} | {
|
|
15
|
-
"aria-controls"?: undefined;
|
|
16
|
-
"aria-keyshortcuts"?: undefined;
|
|
17
|
-
onPointerDown?: undefined;
|
|
18
|
-
onMouseEnter?: undefined;
|
|
19
|
-
onMouseLeave?: undefined;
|
|
20
|
-
onFocus?: undefined;
|
|
21
|
-
onBlur?: undefined;
|
|
22
|
-
onKeyDown?: undefined;
|
|
23
|
-
};
|
|
24
|
-
onClick(event: MouseEvent<HTMLAnchorElement>, href: string, label: string): void;
|
|
25
|
-
card: import("react").ReactPortal | null;
|
|
26
|
-
};
|