@sikka/hawa 0.38.5-next → 0.38.7-next

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/dist/index.mjs CHANGED
@@ -1727,51 +1727,64 @@ var DialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__P
1727
1727
  ...props
1728
1728
  }
1729
1729
  ));
1730
- var DialogContent = React14.forwardRef(({ className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React14.createElement(DialogOverlay, null), /* @__PURE__ */ React14.createElement(
1731
- DialogPrimitive.Content,
1732
- {
1733
- onPointerDownOutside: (e) => {
1734
- if (persist) {
1735
- e.preventDefault();
1736
- }
1737
- },
1738
- ref,
1739
- className: cn(
1740
- "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-[90%] hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] hawa-rounded md:hawa-w-full",
1741
- className
1742
- ),
1730
+ var DialogContent = React14.forwardRef(
1731
+ ({
1732
+ ids,
1733
+ className,
1734
+ classNames,
1735
+ children,
1736
+ persist,
1737
+ hideCloseButton,
1743
1738
  ...props
1744
- },
1745
- children,
1746
- !hideCloseButton && /* @__PURE__ */ React14.createElement(
1747
- DialogPrimitive.Close,
1739
+ }, ref) => /* @__PURE__ */ React14.createElement(DialogPortal, { container: props.container }, /* @__PURE__ */ React14.createElement(DialogOverlay, { className: classNames == null ? void 0 : classNames.overlay, id: ids == null ? void 0 : ids.overlay }), /* @__PURE__ */ React14.createElement(
1740
+ DialogPrimitive.Content,
1748
1741
  {
1742
+ onPointerDownOutside: (e) => {
1743
+ if (persist) {
1744
+ e.preventDefault();
1745
+ }
1746
+ },
1747
+ ref,
1749
1748
  className: cn(
1750
- "hawa-absolute hawa-top-4 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
1751
- props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4"
1752
- )
1749
+ "hawa-fixed hawa-left-[50%] hawa-top-[50%] hawa-z-50 hawa-grid hawa-w-[90%] hawa-max-w-lg hawa-translate-x-[-50%] hawa-translate-y-[-50%] hawa-gap-4 hawa-border hawa-bg-background hawa-p-6 hawa-shadow-lg hawa-transition-all hawa-duration-200 data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[state=closed]:hawa-slide-out-to-left-1/2 data-[state=closed]:hawa-slide-out-to-top-[48%] data-[state=open]:hawa-slide-in-from-left-1/2 data-[state=open]:hawa-slide-in-from-top-[48%] hawa-rounded md:hawa-w-full",
1750
+ className
1751
+ ),
1752
+ ...props
1753
1753
  },
1754
- /* @__PURE__ */ React14.createElement(
1755
- "svg",
1754
+ children,
1755
+ !hideCloseButton && /* @__PURE__ */ React14.createElement(
1756
+ DialogPrimitive.Close,
1756
1757
  {
1757
- "aria-label": "Close Icon",
1758
- "aria-hidden": "true",
1759
- className: "hawa-h-5 hawa-w-5",
1760
- fill: "currentColor",
1761
- viewBox: "0 0 20 20"
1758
+ className: cn(
1759
+ "hawa-absolute hawa-top-4 hawa-rounded hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-accent data-[state=open]:hawa-text-muted-foreground",
1760
+ props.dir === "rtl" ? " hawa-left-4" : " hawa-right-4",
1761
+ classNames == null ? void 0 : classNames.closeButton
1762
+ ),
1763
+ id: ids == null ? void 0 : ids.closeButton
1762
1764
  },
1763
1765
  /* @__PURE__ */ React14.createElement(
1764
- "path",
1766
+ "svg",
1765
1767
  {
1766
- fillRule: "evenodd",
1767
- d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
1768
- clipRule: "evenodd"
1769
- }
1770
- )
1771
- ),
1772
- /* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
1773
- )
1774
- )));
1768
+ id: ids == null ? void 0 : ids.closeIcon,
1769
+ "aria-label": "Close Icon",
1770
+ "aria-hidden": "true",
1771
+ className: "hawa-h-5 hawa-w-5",
1772
+ fill: "currentColor",
1773
+ viewBox: "0 0 20 20"
1774
+ },
1775
+ /* @__PURE__ */ React14.createElement(
1776
+ "path",
1777
+ {
1778
+ fillRule: "evenodd",
1779
+ d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
1780
+ clipRule: "evenodd"
1781
+ }
1782
+ )
1783
+ ),
1784
+ /* @__PURE__ */ React14.createElement("span", { className: "hawa-sr-only" }, "Close")
1785
+ )
1786
+ ))
1787
+ );
1775
1788
  var DialogCarouselContent = React14.forwardRef(
1776
1789
  ({
1777
1790
  className,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.38.5-next",
3
+ "version": "0.38.7-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",