@bayonai/mui-design 1.6.0 → 1.8.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 (44) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +29 -0
  3. package/dist/cjs/actions/DialogActionButtons.d.ts +2 -1
  4. package/dist/cjs/actions/DialogActionButtons.js +2 -2
  5. package/dist/cjs/drawers/WorkspaceSidePane.d.ts +25 -0
  6. package/dist/cjs/drawers/WorkspaceSidePane.js +206 -0
  7. package/dist/cjs/drawers/WorkspaceSidePaneRoot.d.ts +1 -0
  8. package/dist/cjs/drawers/WorkspaceSidePaneRoot.js +93 -0
  9. package/dist/cjs/drawers/index.d.ts +1 -0
  10. package/dist/cjs/drawers/index.js +3 -1
  11. package/dist/cjs/drawers/workspaceSidePaneGeometry.d.ts +11 -0
  12. package/dist/cjs/drawers/workspaceSidePaneGeometry.js +15 -0
  13. package/dist/cjs/internal/DialogChoiceTile.d.ts +20 -0
  14. package/dist/cjs/internal/DialogChoiceTile.js +60 -0
  15. package/dist/cjs/pricing/PlanUpgradeDialog.d.ts +17 -0
  16. package/dist/cjs/pricing/PlanUpgradeDialog.js +22 -0
  17. package/dist/cjs/pricing/index.d.ts +1 -0
  18. package/dist/cjs/pricing/index.js +3 -1
  19. package/dist/cjs/uploads/ImageUploadQualityDialog.d.ts +13 -0
  20. package/dist/cjs/uploads/ImageUploadQualityDialog.js +57 -0
  21. package/dist/cjs/uploads/index.d.ts +1 -0
  22. package/dist/cjs/uploads/index.js +3 -1
  23. package/dist/esm/actions/DialogActionButtons.js +3 -3
  24. package/dist/esm/drawers/WorkspaceSidePane.js +200 -0
  25. package/dist/esm/drawers/WorkspaceSidePaneRoot.js +90 -0
  26. package/dist/esm/drawers/index.js +1 -0
  27. package/dist/esm/drawers/workspaceSidePaneGeometry.js +11 -0
  28. package/dist/esm/internal/DialogChoiceTile.js +54 -0
  29. package/dist/esm/pricing/PlanUpgradeDialog.js +19 -0
  30. package/dist/esm/pricing/index.js +1 -0
  31. package/dist/esm/uploads/ImageUploadQualityDialog.js +51 -0
  32. package/dist/esm/uploads/index.js +1 -0
  33. package/dist/types/actions/DialogActionButtons.d.ts +2 -1
  34. package/dist/types/drawers/WorkspaceSidePane.d.ts +25 -0
  35. package/dist/types/drawers/WorkspaceSidePaneRoot.d.ts +1 -0
  36. package/dist/types/drawers/index.d.ts +1 -0
  37. package/dist/types/drawers/workspaceSidePaneGeometry.d.ts +11 -0
  38. package/dist/types/internal/DialogChoiceTile.d.ts +20 -0
  39. package/dist/types/pricing/PlanUpgradeDialog.d.ts +17 -0
  40. package/dist/types/pricing/index.d.ts +1 -0
  41. package/dist/types/uploads/ImageUploadQualityDialog.d.ts +13 -0
  42. package/dist/types/uploads/index.d.ts +1 -0
  43. package/drawers.js +4 -0
  44. package/package.json +2 -1
@@ -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,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;
@@ -9,3 +9,4 @@ export type { UploadFile, LoadFile } from "@bayonai/file-uploads";
9
9
  export type { UploadProgressRingProps } from "./UploadProgressRing.js";
10
10
  export { CameraCaptureDialog, type CameraCaptureDialogProps, type CameraCaptureLabels } from "./CameraCaptureDialog.js";
11
11
  export { ImageCropDialog, type ImageCropDialogProps, type ImageCropLabels } from "./ImageCropDialog.js";
12
+ export { ImageUploadQualityDialog, type ImageUploadQuality, type ImageUploadQualityDialogProps } from "./ImageUploadQualityDialog.js";
package/drawers.js ADDED
@@ -0,0 +1,4 @@
1
+ "use client";
2
+
3
+ // Bundlers that resolve physical subpaths still use the compiled drawers entry.
4
+ export * from "./dist/esm/drawers/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bayonai/mui-design",
3
- "version": "1.6.0",
3
+ "version": "1.8.0",
4
4
  "description": "Shared Bayon AI Material UI theme, style recipes, and reusable design components.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -154,6 +154,7 @@
154
154
  },
155
155
  "files": [
156
156
  "dist",
157
+ "drawers.js",
157
158
  "README.md",
158
159
  "CHANGELOG.md",
159
160
  "docs",