@bayonai/mui-design 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/actions/ActionMenu.d.ts +24 -0
  3. package/dist/cjs/actions/DialogActionButtons.d.ts +23 -0
  4. package/dist/cjs/actions/DialogActionButtons.js +2 -2
  5. package/dist/cjs/actions/LoadingIconButton.d.ts +11 -0
  6. package/dist/cjs/actions/StickyActionFooter.d.ts +14 -0
  7. package/dist/cjs/actions/StickySubmitButton.d.ts +10 -0
  8. package/dist/cjs/actions/index.d.ts +5 -0
  9. package/dist/cjs/client.d.ts +4 -0
  10. package/dist/cjs/components/BayonFlowVisual.d.ts +12 -0
  11. package/dist/cjs/components/BayonThemeModeToggle.d.ts +6 -0
  12. package/dist/cjs/components/IconTooltipButton.d.ts +10 -0
  13. package/dist/cjs/components/panels.d.ts +37 -0
  14. package/dist/cjs/drawers/BottomDrawer.d.ts +16 -0
  15. package/dist/cjs/drawers/MobileBottomDrawer.d.ts +20 -0
  16. package/dist/cjs/drawers/MobileBottomDrawerHeader.d.ts +11 -0
  17. package/dist/cjs/drawers/ResponsiveDrawer.d.ts +25 -0
  18. package/dist/cjs/drawers/drawerAppearance.d.ts +8 -0
  19. package/dist/cjs/drawers/index.d.ts +6 -0
  20. package/dist/cjs/drawers/useVisualViewportBottomInset.d.ts +6 -0
  21. package/dist/cjs/feedback/StatusNotice.d.ts +13 -0
  22. package/dist/cjs/feedback/index.d.ts +1 -0
  23. package/dist/cjs/index.d.ts +9 -0
  24. package/dist/cjs/internal/DialogChoiceTile.d.ts +20 -0
  25. package/dist/cjs/internal/DialogChoiceTile.js +60 -0
  26. package/dist/cjs/links/LinkAddressPreview.d.ts +19 -0
  27. package/dist/cjs/links/index.d.ts +3 -0
  28. package/dist/cjs/links/useLinkAddressPreview.d.ts +26 -0
  29. package/dist/cjs/location/GeographicLocationField.d.ts +26 -0
  30. package/dist/cjs/location/GoogleMapsAttribution.d.ts +1 -0
  31. package/dist/cjs/location/MetadataFieldGroup.d.ts +5 -0
  32. package/dist/cjs/location/MetadataValueField.d.ts +23 -0
  33. package/dist/cjs/location/SearchInputAction.d.ts +9 -0
  34. package/dist/cjs/location/TemplateBadge.d.ts +5 -0
  35. package/dist/cjs/location/VenueSearchDialog.d.ts +33 -0
  36. package/dist/cjs/location/index.d.ts +6 -0
  37. package/dist/cjs/pending/PendingChangesDialogShell.d.ts +2 -0
  38. package/dist/cjs/pending/PendingChangesDialogView.d.ts +2 -0
  39. package/dist/cjs/pending/PendingChangesIndicatorView.d.ts +10 -0
  40. package/dist/cjs/pending/index.d.ts +3 -0
  41. package/dist/cjs/pending/types.d.ts +55 -0
  42. package/dist/cjs/pricing/PlanUpgradeDialog.d.ts +17 -0
  43. package/dist/cjs/pricing/PlanUpgradeDialog.js +22 -0
  44. package/dist/cjs/pricing/PricingTable.d.ts +28 -0
  45. package/dist/cjs/pricing/index.d.ts +3 -0
  46. package/dist/cjs/pricing/index.js +3 -1
  47. package/dist/cjs/providers/BayonThemeProvider.d.ts +20 -0
  48. package/dist/cjs/sections/ExpandableSectionToggle.d.ts +12 -0
  49. package/dist/cjs/sections/index.d.ts +2 -0
  50. package/dist/cjs/styles/pageStyles.d.ts +15 -0
  51. package/dist/cjs/swipe/SwipeActionRow.d.ts +8 -0
  52. package/dist/cjs/swipe/index.d.ts +1 -0
  53. package/dist/cjs/theme/components.d.ts +2 -0
  54. package/dist/cjs/theme/createBayonTheme.d.ts +4 -0
  55. package/dist/cjs/theme/palette.d.ts +146 -0
  56. package/dist/cjs/theme/shadows.d.ts +2 -0
  57. package/dist/cjs/theme/types.d.ts +47 -0
  58. package/dist/cjs/theme/typography.d.ts +2 -0
  59. package/dist/cjs/toasts/ActionToast.d.ts +11 -0
  60. package/dist/cjs/toasts/Toast.d.ts +16 -0
  61. package/dist/cjs/toasts/index.d.ts +5 -0
  62. package/dist/cjs/toasts/useUpwardToastDismiss.d.ts +15 -0
  63. package/dist/cjs/uploads/CameraCaptureDialog.d.ts +22 -0
  64. package/dist/cjs/uploads/FileRow.d.ts +10 -0
  65. package/dist/cjs/uploads/FileSwipeActionRow.d.ts +1 -0
  66. package/dist/cjs/uploads/FileThumbnail.d.ts +5 -0
  67. package/dist/cjs/uploads/FileUpload.d.ts +26 -0
  68. package/dist/cjs/uploads/FileViewer.d.ts +9 -0
  69. package/dist/cjs/uploads/FileViewer.js +25 -21
  70. package/dist/cjs/uploads/ImageCropDialog.d.ts +26 -0
  71. package/dist/cjs/uploads/ImageInfoPanel.d.ts +24 -0
  72. package/dist/cjs/uploads/ImageInfoPanel.js +41 -0
  73. package/dist/cjs/uploads/ImageUploadQualityDialog.d.ts +13 -0
  74. package/dist/cjs/uploads/ImageUploadQualityDialog.js +57 -0
  75. package/dist/cjs/uploads/UploadProgressRing.d.ts +24 -0
  76. package/dist/cjs/uploads/cameraCropPresentation.d.ts +2 -0
  77. package/dist/cjs/uploads/index.d.ts +12 -0
  78. package/dist/cjs/uploads/index.js +5 -1
  79. package/dist/cjs/utils/createBayonEmotionCache.d.ts +1 -0
  80. package/dist/esm/actions/DialogActionButtons.js +3 -3
  81. package/dist/esm/internal/DialogChoiceTile.js +54 -0
  82. package/dist/esm/pricing/PlanUpgradeDialog.js +19 -0
  83. package/dist/esm/pricing/index.js +1 -0
  84. package/dist/esm/uploads/FileViewer.js +25 -21
  85. package/dist/esm/uploads/ImageInfoPanel.js +35 -0
  86. package/dist/esm/uploads/ImageUploadQualityDialog.js +51 -0
  87. package/dist/esm/uploads/index.js +2 -0
  88. package/dist/types/actions/DialogActionButtons.d.ts +2 -1
  89. package/dist/types/internal/DialogChoiceTile.d.ts +20 -0
  90. package/dist/types/pricing/PlanUpgradeDialog.d.ts +17 -0
  91. package/dist/types/pricing/index.d.ts +1 -0
  92. package/dist/types/uploads/ImageInfoPanel.d.ts +24 -0
  93. package/dist/types/uploads/ImageUploadQualityDialog.d.ts +13 -0
  94. package/dist/types/uploads/index.d.ts +2 -0
  95. package/docs/uploads-contract.md +9 -0
  96. package/package.json +119 -41
@@ -0,0 +1,51 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import CompressIcon from "@mui/icons-material/Compress";
4
+ import ImageSearchIcon from "@mui/icons-material/ImageSearch";
5
+ import { Box, Dialog, DialogContent, DialogTitle, Stack, Typography, } from "@mui/material";
6
+ import { useEffect, useId, useState } from "react";
7
+ import { DialogActionButtons, DialogCloseButton, } from "../actions/DialogActionButtons.js";
8
+ import { DialogChoiceTile } from "../internal/DialogChoiceTile.js";
9
+ export function ImageUploadQualityDialog({ file, quality, highQualityAccess, focusLockedChoice = false, hint, onQualityChange, onLockedChoice, onClose, onConfirm, }) {
10
+ const titleId = useId();
11
+ const hintId = useId();
12
+ const radioName = useId();
13
+ const [preview, setPreview] = useState();
14
+ const [failedFile, setFailedFile] = useState();
15
+ const previewFailed = failedFile === file;
16
+ const url = (preview === null || preview === void 0 ? void 0 : preview.file) === file && !previewFailed ? preview.url : undefined;
17
+ useEffect(() => {
18
+ if (previewFailed)
19
+ return;
20
+ try {
21
+ const url = URL.createObjectURL(file);
22
+ setPreview({ file, url });
23
+ return () => URL.revokeObjectURL(url);
24
+ }
25
+ catch (error) {
26
+ console.error("[ImageUploadQualityDialog] Could not open a preview for the selected file.", error);
27
+ setFailedFile(file);
28
+ }
29
+ }, [file, previewFailed]);
30
+ const highQualityTile = {
31
+ label: "High quality",
32
+ description: "Original file",
33
+ icon: _jsx(ImageSearchIcon, {}),
34
+ selected: quality === "high",
35
+ };
36
+ return (_jsxs(Dialog, { open: true, onClose: onClose, fullWidth: true, maxWidth: "xs", "aria-labelledby": titleId, children: [_jsxs(DialogTitle, { id: titleId, sx: { pr: 7 }, children: ["Upload image", _jsx(DialogCloseButton, { label: "Cancel image upload", onClose: onClose })] }), _jsx(DialogContent, { children: _jsxs(Stack, { spacing: 1.5, children: [url ? (_jsx(Box, { component: "img", src: url, alt: "Selected image preview", onError: () => {
37
+ console.warn("[ImageUploadQualityDialog] Could not display the selected image preview.", { type: file.type });
38
+ setFailedFile(file);
39
+ }, sx: {
40
+ display: "block",
41
+ width: "100%",
42
+ maxHeight: "min(32dvh, 230px)",
43
+ objectFit: "contain",
44
+ borderRadius: 2,
45
+ } })) : null, _jsx(Typography, { variant: "body2", sx: { overflowWrap: "anywhere" }, children: file.name }), previewFailed ? (_jsx(Typography, { variant: "caption", color: "text.secondary", children: "Preview unavailable." })) : null, _jsxs(Box, { role: highQualityAccess === "locked" ? "group" : "radiogroup", "aria-label": "Image quality", "aria-describedby": hint ? hintId : undefined, sx: {
46
+ display: "grid",
47
+ gridTemplateColumns: "repeat(2, minmax(0, 1fr))",
48
+ "@media (max-width: 350px)": { gridTemplateColumns: "1fr" },
49
+ gap: 1,
50
+ }, children: [_jsx(DialogChoiceTile, { label: "Compressed", description: "Smaller file", icon: _jsx(CompressIcon, {}), name: radioName, selected: quality === "compressed", autoFocus: !focusLockedChoice, onSelect: () => onQualityChange("compressed") }), highQualityAccess === "locked" ? (_jsx(DialogChoiceTile, { ...highQualityTile, autoFocus: focusLockedChoice, onLockedClick: onLockedChoice })) : (_jsx(DialogChoiceTile, { ...highQualityTile, name: radioName, disabled: highQualityAccess === "unavailable", onSelect: () => onQualityChange("high") }))] }), hint ? (_jsx(Typography, { id: hintId, variant: "caption", color: "text.secondary", children: hint })) : null] }) }), _jsx(DialogActionButtons, { confirmLabel: "Upload image", confirmText: "Upload", onConfirm: onConfirm })] }));
51
+ }
@@ -3,7 +3,9 @@ export { FileUpload } from "./FileUpload.js";
3
3
  export { FileRow } from "./FileRow.js";
4
4
  export { FileThumbnail } from "./FileThumbnail.js";
5
5
  export { FileViewer } from "./FileViewer.js";
6
+ export { ImageInfoPanel } from "./ImageInfoPanel.js";
6
7
  export { UploadProgressRing } from "./UploadProgressRing.js";
7
8
  export { useUploadLock } from "@bayonai/file-uploads/hooks";
8
9
  export { CameraCaptureDialog } from "./CameraCaptureDialog.js";
9
10
  export { ImageCropDialog } from "./ImageCropDialog.js";
11
+ export { ImageUploadQualityDialog } from "./ImageUploadQualityDialog.js";
@@ -3,6 +3,7 @@ import type { ReactNode } from "react";
3
3
  export declare const compactDialogPaperSx: SxProps<Theme>;
4
4
  export type DialogActionButtonsProps = {
5
5
  confirmLabel: string;
6
+ confirmText?: string;
6
7
  confirmDisabled?: boolean;
7
8
  confirmColor?: "error" | "primary" | "secondary" | "success" | "warning";
8
9
  confirmIcon?: ReactNode;
@@ -11,7 +12,7 @@ export type DialogActionButtonsProps = {
11
12
  sx?: SxProps<Theme>;
12
13
  };
13
14
  /** Keeps the modal's primary decision compact and explicitly labelled. */
14
- export declare function DialogActionButtons({ confirmColor, confirmDisabled, confirmIcon, confirmLabel, confirmType, onConfirm, sx, }: DialogActionButtonsProps): import("react").JSX.Element;
15
+ export declare function DialogActionButtons({ confirmColor, confirmDisabled, confirmIcon, confirmLabel, confirmText, confirmType, onConfirm, sx, }: DialogActionButtonsProps): import("react").JSX.Element;
15
16
  export declare function DialogActionProgress(): import("react").JSX.Element;
16
17
  export type DialogCloseButtonProps = {
17
18
  disabled?: boolean;
@@ -0,0 +1,20 @@
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 {};
@@ -0,0 +1,17 @@
1
+ export type UpgradePlan<Id extends string = string> = {
2
+ id: Id;
3
+ name: string;
4
+ details: readonly string[];
5
+ };
6
+ export type PlanUpgradeDialogProps<Id extends string> = {
7
+ title: string;
8
+ message: string;
9
+ plans: readonly UpgradePlan<Id>[];
10
+ selectedPlanId: Id;
11
+ confirmLabel: string;
12
+ closeLabel?: string;
13
+ onSelectPlan: (id: Id) => void;
14
+ onViewPlan: (id: Id) => void;
15
+ onClose: () => void;
16
+ };
17
+ export declare function PlanUpgradeDialog<Id extends string>({ title, message, plans, selectedPlanId, confirmLabel, closeLabel, onSelectPlan, onViewPlan, onClose, }: PlanUpgradeDialogProps<Id>): import("react").JSX.Element;
@@ -1,2 +1,3 @@
1
1
  export { PricingTable } from "./PricingTable.js";
2
2
  export type { PricingTablePlan, PricingTableProps } from "./PricingTable.js";
3
+ export { PlanUpgradeDialog, type PlanUpgradeDialogProps, type UpgradePlan } from "./PlanUpgradeDialog.js";
@@ -0,0 +1,24 @@
1
+ import { type SxProps, type Theme } from "@mui/material";
2
+ import type { ReactNode } from "react";
3
+ export type ImageDimensions = {
4
+ width: number;
5
+ height: number;
6
+ };
7
+ export type ImageInfoPanelProps = {
8
+ id: string;
9
+ dimensions?: ImageDimensions;
10
+ captureTime?: string;
11
+ captureOffset?: string;
12
+ camera?: string;
13
+ location?: {
14
+ coordinates: string;
15
+ approximateName?: string;
16
+ action?: ReactNode;
17
+ };
18
+ loading: boolean;
19
+ failed: boolean;
20
+ onClose: () => void;
21
+ sx?: SxProps<Theme>;
22
+ };
23
+ /** Read-only image facts. The host supplies data and any map action. */
24
+ export declare function ImageInfoPanel({ id, dimensions, captureTime, captureOffset, camera, location, loading, failed, onClose, sx, }: ImageInfoPanelProps): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ export type ImageUploadQuality = "compressed" | "high";
2
+ export type ImageUploadQualityDialogProps = {
3
+ file: File;
4
+ quality: ImageUploadQuality;
5
+ highQualityAccess: "available" | "locked" | "unavailable";
6
+ focusLockedChoice?: boolean;
7
+ hint?: string;
8
+ onQualityChange: (quality: ImageUploadQuality) => void;
9
+ onLockedChoice: () => void;
10
+ onClose: () => void;
11
+ onConfirm: () => void;
12
+ };
13
+ export declare function ImageUploadQualityDialog({ file, quality, highQualityAccess, focusLockedChoice, hint, onQualityChange, onLockedChoice, onClose, onConfirm, }: ImageUploadQualityDialogProps): import("react").JSX.Element;
@@ -2,9 +2,11 @@ export { FileUpload } from "./FileUpload.js";
2
2
  export { FileRow } from "./FileRow.js";
3
3
  export { FileThumbnail } from "./FileThumbnail.js";
4
4
  export { FileViewer } from "./FileViewer.js";
5
+ export { ImageInfoPanel, type ImageDimensions, type ImageInfoPanelProps } from "./ImageInfoPanel.js";
5
6
  export { UploadProgressRing } from "./UploadProgressRing.js";
6
7
  export { useUploadLock } from "@bayonai/file-uploads/hooks";
7
8
  export type { UploadFile, LoadFile } from "@bayonai/file-uploads";
8
9
  export type { UploadProgressRingProps } from "./UploadProgressRing.js";
9
10
  export { CameraCaptureDialog, type CameraCaptureDialogProps, type CameraCaptureLabels } from "./CameraCaptureDialog.js";
10
11
  export { ImageCropDialog, type ImageCropDialogProps, type ImageCropLabels } from "./ImageCropDialog.js";
12
+ export { ImageUploadQualityDialog, type ImageUploadQuality, type ImageUploadQualityDialogProps } from "./ImageUploadQualityDialog.js";
@@ -38,3 +38,12 @@ logged inert thumbnail fallback. A successful current load supersedes any prior
38
38
  failure for that source; aborted/stale attempts cannot update presentation or
39
39
  create retained preview URLs. The host still owns retry initiation through its
40
40
  loader/attachment updates. Regression coverage is in FileThumbnail.test.tsx.
41
+
42
+ ### ImageInfoPanel
43
+
44
+ Import `ImageInfoPanel` from `@bayonai/mui-design/uploads`. It shows dimensions,
45
+ formatted capture time and offset, camera, and an optional location with
46
+ coordinates and a nearby-place label. The host supplies display facts and an
47
+ optional location action. The component owns the read-only presentation and
48
+ close control. The host owns viewer lifecycle, authorization, byte access,
49
+ lookup, navigation and focus restoration.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bayonai/mui-design",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "description": "Shared Bayon AI Material UI theme, style recipes, and reusable design components.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -9,69 +9,147 @@
9
9
  "types": "./dist/types/index.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
- "types": "./dist/types/index.d.ts",
13
- "import": "./dist/esm/index.js",
14
- "require": "./dist/cjs/index.js"
12
+ "import": {
13
+ "types": "./dist/types/index.d.ts",
14
+ "default": "./dist/esm/index.js"
15
+ },
16
+ "require": {
17
+ "types": "./dist/cjs/index.d.ts",
18
+ "default": "./dist/cjs/index.js"
19
+ },
20
+ "default": "./dist/esm/index.js"
15
21
  },
16
22
  "./client": {
17
- "types": "./dist/types/client.d.ts",
18
- "import": "./dist/esm/client.js",
19
- "require": "./dist/cjs/client.js"
23
+ "import": {
24
+ "types": "./dist/types/client.d.ts",
25
+ "default": "./dist/esm/client.js"
26
+ },
27
+ "require": {
28
+ "types": "./dist/cjs/client.d.ts",
29
+ "default": "./dist/cjs/client.js"
30
+ },
31
+ "default": "./dist/esm/client.js"
20
32
  },
21
33
  "./actions": {
22
- "types": "./dist/types/actions/index.d.ts",
23
- "import": "./dist/esm/actions/index.js",
24
- "require": "./dist/cjs/actions/index.js"
34
+ "import": {
35
+ "types": "./dist/types/actions/index.d.ts",
36
+ "default": "./dist/esm/actions/index.js"
37
+ },
38
+ "require": {
39
+ "types": "./dist/cjs/actions/index.d.ts",
40
+ "default": "./dist/cjs/actions/index.js"
41
+ },
42
+ "default": "./dist/esm/actions/index.js"
25
43
  },
26
44
  "./drawers": {
27
- "types": "./dist/types/drawers/index.d.ts",
28
- "import": "./dist/esm/drawers/index.js",
29
- "require": "./dist/cjs/drawers/index.js"
45
+ "import": {
46
+ "types": "./dist/types/drawers/index.d.ts",
47
+ "default": "./dist/esm/drawers/index.js"
48
+ },
49
+ "require": {
50
+ "types": "./dist/cjs/drawers/index.d.ts",
51
+ "default": "./dist/cjs/drawers/index.js"
52
+ },
53
+ "default": "./dist/esm/drawers/index.js"
30
54
  },
31
55
  "./feedback": {
32
- "types": "./dist/types/feedback/index.d.ts",
33
- "import": "./dist/esm/feedback/index.js",
34
- "require": "./dist/cjs/feedback/index.js"
56
+ "import": {
57
+ "types": "./dist/types/feedback/index.d.ts",
58
+ "default": "./dist/esm/feedback/index.js"
59
+ },
60
+ "require": {
61
+ "types": "./dist/cjs/feedback/index.d.ts",
62
+ "default": "./dist/cjs/feedback/index.js"
63
+ },
64
+ "default": "./dist/esm/feedback/index.js"
35
65
  },
36
66
  "./links": {
37
- "types": "./dist/types/links/index.d.ts",
38
- "import": "./dist/esm/links/index.js",
39
- "require": "./dist/cjs/links/index.js"
67
+ "import": {
68
+ "types": "./dist/types/links/index.d.ts",
69
+ "default": "./dist/esm/links/index.js"
70
+ },
71
+ "require": {
72
+ "types": "./dist/cjs/links/index.d.ts",
73
+ "default": "./dist/cjs/links/index.js"
74
+ },
75
+ "default": "./dist/esm/links/index.js"
40
76
  },
41
77
  "./pending": {
42
- "types": "./dist/types/pending/index.d.ts",
43
- "import": "./dist/esm/pending/index.js",
44
- "require": "./dist/cjs/pending/index.js"
78
+ "import": {
79
+ "types": "./dist/types/pending/index.d.ts",
80
+ "default": "./dist/esm/pending/index.js"
81
+ },
82
+ "require": {
83
+ "types": "./dist/cjs/pending/index.d.ts",
84
+ "default": "./dist/cjs/pending/index.js"
85
+ },
86
+ "default": "./dist/esm/pending/index.js"
45
87
  },
46
88
  "./sections": {
47
- "types": "./dist/types/sections/index.d.ts",
48
- "import": "./dist/esm/sections/index.js",
49
- "require": "./dist/cjs/sections/index.js"
89
+ "import": {
90
+ "types": "./dist/types/sections/index.d.ts",
91
+ "default": "./dist/esm/sections/index.js"
92
+ },
93
+ "require": {
94
+ "types": "./dist/cjs/sections/index.d.ts",
95
+ "default": "./dist/cjs/sections/index.js"
96
+ },
97
+ "default": "./dist/esm/sections/index.js"
50
98
  },
51
99
  "./swipe": {
52
- "types": "./dist/types/swipe/index.d.ts",
53
- "import": "./dist/esm/swipe/index.js",
54
- "require": "./dist/cjs/swipe/index.js"
100
+ "import": {
101
+ "types": "./dist/types/swipe/index.d.ts",
102
+ "default": "./dist/esm/swipe/index.js"
103
+ },
104
+ "require": {
105
+ "types": "./dist/cjs/swipe/index.d.ts",
106
+ "default": "./dist/cjs/swipe/index.js"
107
+ },
108
+ "default": "./dist/esm/swipe/index.js"
55
109
  },
56
110
  "./toasts": {
57
- "types": "./dist/types/toasts/index.d.ts",
58
- "import": "./dist/esm/toasts/index.js",
59
- "require": "./dist/cjs/toasts/index.js"
111
+ "import": {
112
+ "types": "./dist/types/toasts/index.d.ts",
113
+ "default": "./dist/esm/toasts/index.js"
114
+ },
115
+ "require": {
116
+ "types": "./dist/cjs/toasts/index.d.ts",
117
+ "default": "./dist/cjs/toasts/index.js"
118
+ },
119
+ "default": "./dist/esm/toasts/index.js"
60
120
  },
61
121
  "./uploads": {
62
- "types": "./dist/types/uploads/index.d.ts",
63
- "import": "./dist/esm/uploads/index.js",
64
- "require": "./dist/cjs/uploads/index.js"
122
+ "import": {
123
+ "types": "./dist/types/uploads/index.d.ts",
124
+ "default": "./dist/esm/uploads/index.js"
125
+ },
126
+ "require": {
127
+ "types": "./dist/cjs/uploads/index.d.ts",
128
+ "default": "./dist/cjs/uploads/index.js"
129
+ },
130
+ "default": "./dist/esm/uploads/index.js"
65
131
  },
66
132
  "./pricing": {
67
- "types": "./dist/types/pricing/index.d.ts",
68
- "import": "./dist/esm/pricing/index.js",
69
- "require": "./dist/cjs/pricing/index.js"
133
+ "import": {
134
+ "types": "./dist/types/pricing/index.d.ts",
135
+ "default": "./dist/esm/pricing/index.js"
136
+ },
137
+ "require": {
138
+ "types": "./dist/cjs/pricing/index.d.ts",
139
+ "default": "./dist/cjs/pricing/index.js"
140
+ },
141
+ "default": "./dist/esm/pricing/index.js"
70
142
  },
71
143
  "./location": {
72
- "types": "./dist/types/location/index.d.ts",
73
- "import": "./dist/esm/location/index.js",
74
- "require": "./dist/cjs/location/index.js"
144
+ "import": {
145
+ "types": "./dist/types/location/index.d.ts",
146
+ "default": "./dist/esm/location/index.js"
147
+ },
148
+ "require": {
149
+ "types": "./dist/cjs/location/index.d.ts",
150
+ "default": "./dist/cjs/location/index.js"
151
+ },
152
+ "default": "./dist/esm/location/index.js"
75
153
  }
76
154
  },
77
155
  "files": [
@@ -102,7 +180,7 @@
102
180
  },
103
181
  "devDependencies": {
104
182
  "typescript": "^5",
105
- "@bayonai/file-uploads": "0.2.1",
183
+ "@bayonai/file-uploads": "0.2.2",
106
184
  "react": "19.3.1",
107
185
  "react-dom": "19.3.1",
108
186
  "react-test-renderer": "19.3.1",