@sikka/hawa 0.27.4-next → 0.27.6-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/{Radio-K1WGpnGA.d.ts → Radio-PmNrOjLQ.d.ts} +2 -1
- package/dist/{Radio-hsrLKNxE.d.mts → Radio-RSPNWT03.d.mts} +2 -1
- package/dist/alert/index.js +10 -1
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +10 -1
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.js +26 -3
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +26 -3
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/backToTop/index.js +10 -1
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +10 -1
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +29 -3
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.d.mts +1 -0
- package/dist/blocks/feedback/index.d.ts +1 -0
- package/dist/blocks/feedback/index.js +38 -9
- package/dist/blocks/feedback/index.mjs +7 -6
- package/dist/blocks/index.d.mts +2 -1
- package/dist/blocks/index.d.ts +2 -1
- package/dist/blocks/index.js +37 -4
- package/dist/blocks/index.mjs +10 -3
- package/dist/blocks/misc/index.js +29 -3
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +35 -3
- package/dist/blocks/pricing/index.mjs +10 -4
- package/dist/button/index.js +10 -1
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +10 -1
- package/dist/button/index.mjs.map +1 -1
- package/dist/{chunk-ROYGC4RA.mjs → chunk-7YVLGY5B.mjs} +1 -1
- package/dist/{chunk-MKRPDQOM.mjs → chunk-ABI2Q4UV.mjs} +1 -1
- package/dist/{chunk-USKURX7W.mjs → chunk-AQO6QVMV.mjs} +1 -1
- package/dist/{chunk-V2ANNDSC.mjs → chunk-CVOMACRL.mjs} +1 -1
- package/dist/{chunk-CA3JPYZA.mjs → chunk-F4MGQ5JV.mjs} +1 -1
- package/dist/{chunk-ABEN43H7.mjs → chunk-GCRMEJAI.mjs} +29 -3
- package/dist/{chunk-SOE62VBZ.mjs → chunk-HMQOYBTW.mjs} +1 -1
- package/dist/{chunk-N3AIWCPY.mjs → chunk-I5EJUQ4E.mjs} +29 -3
- package/dist/{chunk-O5VU32JT.mjs → chunk-KZ72VALG.mjs} +1 -1
- package/dist/{chunk-FEL67JJQ.mjs → chunk-MNCROATO.mjs} +1 -1
- package/dist/codeBlock/index.js +26 -3
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +26 -3
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/colorPicker/index.js +19 -2
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +19 -2
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.js +19 -2
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +19 -2
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/dataTable/index.js +29 -3
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +29 -3
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +10 -1
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +10 -1
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +7 -4
- package/dist/elements/index.d.ts +7 -4
- package/dist/elements/index.js +31 -3
- package/dist/elements/index.mjs +5 -3
- package/dist/fileDropzone/index.js +10 -1
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +10 -1
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/index.css +7 -0
- package/dist/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +39 -4
- package/dist/index.mjs +39 -4
- package/dist/input/index.d.mts +1 -1
- package/dist/input/index.d.ts +1 -1
- package/dist/input/index.js +19 -2
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +19 -2
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js +18 -2
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +18 -2
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/label/index.js +16 -2
- package/dist/label/index.js.map +1 -1
- package/dist/label/index.mjs +16 -2
- package/dist/label/index.mjs.map +1 -1
- package/dist/layout/index.js +29 -3
- package/dist/layout/index.mjs +2 -2
- package/dist/loading/index.js +10 -1
- package/dist/loading/index.js.map +1 -1
- package/dist/loading/index.mjs +10 -1
- package/dist/loading/index.mjs.map +1 -1
- package/dist/passwordInput/index.js +19 -2
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +19 -2
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +19 -2
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +19 -2
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/radio/index.d.mts +2 -1
- package/dist/radio/index.d.ts +2 -1
- package/dist/radio/index.js +16 -2
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +16 -2
- package/dist/radio/index.mjs.map +1 -1
- package/dist/select/index.js +19 -2
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +19 -2
- package/dist/select/index.mjs.map +1 -1
- package/dist/signature/index.js +16 -2
- package/dist/signature/index.js.map +1 -1
- package/dist/signature/index.mjs +16 -2
- package/dist/signature/index.mjs.map +1 -1
- package/dist/simpleTable/index.js +3 -0
- package/dist/simpleTable/index.js.map +1 -1
- package/dist/simpleTable/index.mjs +3 -0
- package/dist/simpleTable/index.mjs.map +1 -1
- package/dist/skeleton/index.d.mts +2 -1
- package/dist/skeleton/index.d.ts +2 -1
- package/dist/skeleton/index.js +3 -0
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs +3 -0
- package/dist/skeleton/index.mjs.map +1 -1
- package/dist/sortButton/index.js +10 -1
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +10 -1
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.js +10 -1
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +10 -1
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/stats/index.js +3 -0
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs +3 -0
- package/dist/stats/index.mjs.map +1 -1
- package/dist/textarea/index.js +19 -2
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +19 -2
- package/dist/textarea/index.mjs.map +1 -1
- package/dist/tooltip/index.d.mts +2 -0
- package/dist/tooltip/index.d.ts +2 -0
- package/dist/tooltip/index.js +16 -2
- package/dist/tooltip/index.js.map +1 -1
- package/dist/tooltip/index.mjs +16 -2
- package/dist/tooltip/index.mjs.map +1 -1
- package/package.json +6 -6
@@ -1707,13 +1707,17 @@ import * as React2 from "react";
|
|
1707
1707
|
// elements/tooltip/Tooltip.tsx
|
1708
1708
|
import React from "react";
|
1709
1709
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
1710
|
-
var TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
1710
|
+
var TooltipContent = React.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ React.createElement(
|
1711
1711
|
TooltipPrimitive.Content,
|
1712
1712
|
{
|
1713
1713
|
ref,
|
1714
1714
|
sideOffset,
|
1715
1715
|
className: cn(
|
1716
1716
|
"hawa-z-50 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-text-popover-foreground hawa-shadow-md hawa-animate-in hawa-fade-in-0 hawa-zoom-in-95 data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=closed]:hawa-zoom-out-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
1717
|
+
{
|
1718
|
+
"hawa-text-xs": size === "small",
|
1719
|
+
"hawa-text-xl": size === "large"
|
1720
|
+
},
|
1717
1721
|
className
|
1718
1722
|
),
|
1719
1723
|
...props
|
@@ -1724,6 +1728,7 @@ var TooltipArrow = React.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
1724
1728
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
1725
1729
|
var Tooltip = ({
|
1726
1730
|
side,
|
1731
|
+
size,
|
1727
1732
|
open,
|
1728
1733
|
content,
|
1729
1734
|
children,
|
@@ -1750,7 +1755,16 @@ var Tooltip = ({
|
|
1750
1755
|
...props
|
1751
1756
|
},
|
1752
1757
|
/* @__PURE__ */ React.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
1753
|
-
/* @__PURE__ */ React.createElement(
|
1758
|
+
/* @__PURE__ */ React.createElement(
|
1759
|
+
TooltipContent,
|
1760
|
+
{
|
1761
|
+
size,
|
1762
|
+
side,
|
1763
|
+
align: "center",
|
1764
|
+
...contentProps
|
1765
|
+
},
|
1766
|
+
content
|
1767
|
+
)
|
1754
1768
|
)
|
1755
1769
|
);
|
1756
1770
|
};
|
@@ -1809,6 +1823,7 @@ function Skeleton({
|
|
1809
1823
|
className,
|
1810
1824
|
content,
|
1811
1825
|
animation = "pulse",
|
1826
|
+
fade,
|
1812
1827
|
...props
|
1813
1828
|
}) {
|
1814
1829
|
const animationStyles = {
|
@@ -1816,12 +1831,14 @@ function Skeleton({
|
|
1816
1831
|
pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
|
1817
1832
|
shimmer: "hawa-space-y-5 hawa-rounded hawa-bg-muted hawa-p-4 hawa-relative before:hawa-absolute before:hawa-inset-0 before:hawa--translate-x-full before:hawa-animate-[shimmer_2s_infinite] before:hawa-bg-gradient-to-r before:hawa-from-transparent before:hawa-via-gray-300/40 dark:before:hawa-via-white/10 before:hawa-to-transparent hawa-isolate hawa-overflow-hidden before:hawa-border-t before:hawa-border-rose-100/10"
|
1818
1833
|
};
|
1834
|
+
const fadeStyle = `[mask-image:linear-gradient(to_${fade},#D1D4DC_50%,transparent_100%)]`;
|
1819
1835
|
return /* @__PURE__ */ React3.createElement(
|
1820
1836
|
"div",
|
1821
1837
|
{
|
1822
1838
|
className: cn(
|
1823
1839
|
animationStyles[animation],
|
1824
1840
|
content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
|
1841
|
+
fade && fadeStyle,
|
1825
1842
|
className
|
1826
1843
|
),
|
1827
1844
|
...props
|