@rovula/ui 0.0.33 → 0.0.35

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/dist/cjs/bundle.js +2 -2
  2. package/dist/cjs/bundle.js.map +1 -1
  3. package/dist/cjs/types/components/Dialog/Dialog.d.ts +4 -1
  4. package/dist/cjs/types/icons/material-icon/outline/AlignVerticalBottom.d.ts +3 -0
  5. package/dist/cjs/types/icons/material-icon/outline/AlignVerticalTop.d.ts +3 -0
  6. package/dist/cjs/types/icons/material-icon/outline/VerticalDistribute.d.ts +3 -0
  7. package/dist/cjs/types/icons/material-icon/outline/index.d.ts +3 -0
  8. package/dist/cjs/types/icons/material-icon/solid/AlignVerticalBottom.d.ts +3 -0
  9. package/dist/cjs/types/icons/material-icon/solid/AlignVerticalTop.d.ts +3 -0
  10. package/dist/cjs/types/icons/material-icon/solid/VerticalDistribute.d.ts +3 -0
  11. package/dist/cjs/types/icons/material-icon/solid/index.d.ts +3 -0
  12. package/dist/components/Dialog/Dialog.js +2 -2
  13. package/dist/components/Icon/Icon.stories.js +3 -0
  14. package/dist/esm/bundle.js +2 -2
  15. package/dist/esm/bundle.js.map +1 -1
  16. package/dist/esm/types/components/Dialog/Dialog.d.ts +4 -1
  17. package/dist/esm/types/icons/material-icon/outline/AlignVerticalBottom.d.ts +3 -0
  18. package/dist/esm/types/icons/material-icon/outline/AlignVerticalTop.d.ts +3 -0
  19. package/dist/esm/types/icons/material-icon/outline/VerticalDistribute.d.ts +3 -0
  20. package/dist/esm/types/icons/material-icon/outline/index.d.ts +3 -0
  21. package/dist/esm/types/icons/material-icon/solid/AlignVerticalBottom.d.ts +3 -0
  22. package/dist/esm/types/icons/material-icon/solid/AlignVerticalTop.d.ts +3 -0
  23. package/dist/esm/types/icons/material-icon/solid/VerticalDistribute.d.ts +3 -0
  24. package/dist/esm/types/icons/material-icon/solid/index.d.ts +3 -0
  25. package/dist/icons/material-icon/outline/AlignVerticalBottom.js +3 -0
  26. package/dist/icons/material-icon/outline/AlignVerticalTop.js +3 -0
  27. package/dist/icons/material-icon/outline/VerticalDistribute.js +3 -0
  28. package/dist/icons/material-icon/outline/index.js +3 -0
  29. package/dist/icons/material-icon/solid/AlignVerticalBottom.js +3 -0
  30. package/dist/icons/material-icon/solid/AlignVerticalTop.js +3 -0
  31. package/dist/icons/material-icon/solid/VerticalDistribute.js +3 -0
  32. package/dist/icons/material-icon/solid/index.js +3 -0
  33. package/dist/index.d.ts +4 -1
  34. package/package.json +3 -2
  35. package/src/components/Dialog/Dialog.tsx +41 -20
  36. package/src/components/Icon/Icon.stories.tsx +3 -0
  37. package/src/icons/material-icon/outline/AlignVerticalBottom.tsx +19 -0
  38. package/src/icons/material-icon/outline/AlignVerticalTop.tsx +20 -0
  39. package/src/icons/material-icon/outline/VerticalDistribute.tsx +19 -0
  40. package/src/icons/material-icon/outline/index.ts +3 -0
  41. package/src/icons/material-icon/solid/AlignVerticalBottom.tsx +19 -0
  42. package/src/icons/material-icon/solid/AlignVerticalTop.tsx +20 -0
  43. package/src/icons/material-icon/solid/VerticalDistribute.tsx +19 -0
  44. package/src/icons/material-icon/solid/index.ts +3 -0
@@ -5,7 +5,10 @@ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.Dia
5
5
  declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
6
  declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
7
  declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
9
+ showCloseButton?: boolean | undefined;
10
+ closeButtonClassName?: string | undefined;
11
+ } & React.RefAttributes<HTMLDivElement>>;
9
12
  declare const DialogHeader: {
10
13
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
14
  displayName: string;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from "react";
2
+ declare const AlignVerticalBottom: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default AlignVerticalBottom;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from "react";
2
+ declare const AlignVerticalTop: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default AlignVerticalTop;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from "react";
2
+ declare const VerticalDistribute: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default VerticalDistribute;
@@ -20,3 +20,6 @@ export { default as FormatAlignJustifyIcon } from "./FormatAlignJustifyIcon";
20
20
  export { default as FormatListBulletedIcon } from "./FormatListBulletedIcon";
21
21
  export { default as FormatListNumberedIcon } from "./FormatListNumberedIcon";
22
22
  export { default as AllOutIcon } from "./AllOutIcon";
23
+ export { default as AlignVerticalTop } from "./AlignVerticalTop";
24
+ export { default as VerticalDistribute } from "./VerticalDistribute";
25
+ export { default as AlignVerticalBottom } from "./AlignVerticalBottom";
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from "react";
2
+ declare const AlignVerticalBottom: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default AlignVerticalBottom;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from "react";
2
+ declare const AlignVerticalTop: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default AlignVerticalTop;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from "react";
2
+ declare const VerticalDistribute: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default VerticalDistribute;
@@ -20,3 +20,6 @@ export { default as FormatAlignJustifyIcon } from "./FormatAlignJustifyIcon";
20
20
  export { default as FormatListBulletedIcon } from "./FormatListBulletedIcon";
21
21
  export { default as FormatListNumberedIcon } from "./FormatListNumberedIcon";
22
22
  export { default as AllOutIcon } from "./AllOutIcon";
23
+ export { default as AlignVerticalTop } from "./AlignVerticalTop";
24
+ export { default as VerticalDistribute } from "./VerticalDistribute";
25
+ export { default as AlignVerticalBottom } from "./AlignVerticalBottom";
@@ -25,8 +25,8 @@ const DialogOverlay = React.forwardRef((_a, ref) => {
25
25
  });
26
26
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
27
27
  const DialogContent = React.forwardRef((_a, ref) => {
28
- var { className, children } = _a, props = __rest(_a, ["className", "children"]);
29
- return (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content, Object.assign({ ref: ref, className: cn("fixed text-base-popup-foreground left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-base-popup bg-base-popup p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-md", className) }, props, { children: [children, _jsxs(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-primary data-[state=open]:text-primary-foreground", children: [_jsx(XMarkIcon, { className: "h-4 w-4" }), _jsx("span", { className: "sr-only", children: "Close" })] })] }))] }));
28
+ var { className, children, showCloseButton = false, closeButtonClassName } = _a, props = __rest(_a, ["className", "children", "showCloseButton", "closeButtonClassName"]);
29
+ return (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content, Object.assign({ ref: ref, className: cn("fixed text-base-popup-foreground left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-base-popup bg-base-popup p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-md", className) }, props, { children: [children, showCloseButton && (_jsxs(DialogPrimitive.Close, { className: cn("absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-primary data-[state=open]:text-primary-foreground", closeButtonClassName), children: [_jsx(XMarkIcon, { className: "h-4 w-4" }), _jsx("span", { className: "sr-only", children: "Close" })] }))] }))] }));
30
30
  });
31
31
  DialogContent.displayName = DialogPrimitive.Content.displayName;
32
32
  const DialogHeader = (_a) => {
@@ -360,6 +360,9 @@ export const PreviewMaterialIcon = {
360
360
  "format-list-bulleted",
361
361
  "format-list-numbered",
362
362
  "all-out",
363
+ "align-vertical-top",
364
+ "vertical-distribute",
365
+ "align-vertical-bottom",
363
366
  ];
364
367
  return (_jsx("div", { className: "grid grid-cols-1 gap-4 w-full h-full", children: _jsxs("div", { className: "flex flex-col justify-start gap-4 w-full h-full", children: [_jsx("h4", { children: "Material icons" }), materialIcon.map((iconName) => (_jsxs("div", { className: "flex flex-row gap-6 items-center", children: [_jsx(Icon, Object.assign({}, props, { type: "material", name: iconName, variant: "solid", size: "sm" })), _jsx(Icon, Object.assign({}, props, { type: "material", name: iconName, variant: "outline", size: "sm" })), _jsx(Icon, Object.assign({}, props, { type: "material", name: iconName, variant: "outline", size: "md" })), _jsx(Icon, Object.assign({}, props, { type: "material", name: iconName, variant: "solid", size: "md" })), _jsx(Icon, Object.assign({}, props, { type: "material", name: iconName, variant: "outline", size: "lg" })), _jsx(Icon, Object.assign({}, props, { type: "material", name: iconName, variant: "solid", size: "lg" })), _jsx("p", { className: "ml-4", children: iconName })] }, iconName)))] }) }));
365
368
  },