@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
package/dist/blocks/index.d.mts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React__default, { FC, InputHTMLAttributes } from 'react';
|
2
2
|
import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-CKtkuNFH.mjs';
|
3
3
|
import { LoginFormTextsTypes, RegisterFormTextsTypes, ThirdPartyAuthTextsTypes, NewPasswordTextsTypes, ResetPasswordTextsTypes, BaseInputType, TextInputType, PricingCardProps, PlanFeature, PricingPlanTexts } from '../types/index.mjs';
|
4
|
-
import { S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-
|
4
|
+
import { S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-RSPNWT03.mjs';
|
5
5
|
import { M as MenuItemType } from '../DropdownMenu-EUL-D3I3.mjs';
|
6
6
|
import '@radix-ui/react-dropdown-menu';
|
7
7
|
|
@@ -248,6 +248,7 @@ type FeedbackFormDescriptionInputProps = BaseInputType & {
|
|
248
248
|
};
|
249
249
|
type FeedbackFormType = {
|
250
250
|
onSubmit: (e: any) => void;
|
251
|
+
loadingSubmission?: boolean;
|
251
252
|
requestTypes?: {
|
252
253
|
label: string;
|
253
254
|
value: any;
|
package/dist/blocks/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React__default, { FC, InputHTMLAttributes } from 'react';
|
2
2
|
import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-CKtkuNFH.js';
|
3
3
|
import { LoginFormTextsTypes, RegisterFormTextsTypes, ThirdPartyAuthTextsTypes, NewPasswordTextsTypes, ResetPasswordTextsTypes, BaseInputType, TextInputType, PricingCardProps, PlanFeature, PricingPlanTexts } from '../types/index.js';
|
4
|
-
import { S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-
|
4
|
+
import { S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-PmNrOjLQ.js';
|
5
5
|
import { M as MenuItemType } from '../DropdownMenu-SPisqCzV.js';
|
6
6
|
import '@radix-ui/react-dropdown-menu';
|
7
7
|
|
@@ -248,6 +248,7 @@ type FeedbackFormDescriptionInputProps = BaseInputType & {
|
|
248
248
|
};
|
249
249
|
type FeedbackFormType = {
|
250
250
|
onSubmit: (e: any) => void;
|
251
|
+
loadingSubmission?: boolean;
|
251
252
|
requestTypes?: {
|
252
253
|
label: string;
|
253
254
|
value: any;
|
package/dist/blocks/index.js
CHANGED
@@ -86,7 +86,7 @@ var import_class_variance_authority = require("class-variance-authority");
|
|
86
86
|
var import_react = __toESM(require("react"));
|
87
87
|
var Loading = ({
|
88
88
|
design = "spinner",
|
89
|
-
size = "
|
89
|
+
size = "normal",
|
90
90
|
themeMode = "light",
|
91
91
|
classNames,
|
92
92
|
color,
|
@@ -100,6 +100,14 @@ var Loading = ({
|
|
100
100
|
lg: "hawa-h-14 hawa-w-14",
|
101
101
|
xl: "hawa-h-24 hawa-w-24"
|
102
102
|
};
|
103
|
+
let progressSizes = {
|
104
|
+
button: "hawa-h-1",
|
105
|
+
xs: "hawa-h-1 hawa-w-1",
|
106
|
+
sm: "hawa-h-6 hawa-w-6",
|
107
|
+
normal: "",
|
108
|
+
lg: "hawa-h-6",
|
109
|
+
xl: "hawa-h-10 hawa-w-64"
|
110
|
+
};
|
103
111
|
let animationStyles = {
|
104
112
|
pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
|
105
113
|
bounce: "hawa-animate-bounce"
|
@@ -230,6 +238,7 @@ var Loading = ({
|
|
230
238
|
{
|
231
239
|
className: cn(
|
232
240
|
"progress-loading after:hawa-rounded hawa-rounded",
|
241
|
+
progressSizes[size],
|
233
242
|
classNames == null ? void 0 : classNames.container
|
234
243
|
)
|
235
244
|
}
|
@@ -593,13 +602,17 @@ var React6 = __toESM(require("react"));
|
|
593
602
|
// elements/tooltip/Tooltip.tsx
|
594
603
|
var import_react3 = __toESM(require("react"));
|
595
604
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
596
|
-
var TooltipContent = import_react3.default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ import_react3.default.createElement(
|
605
|
+
var TooltipContent = import_react3.default.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ import_react3.default.createElement(
|
597
606
|
TooltipPrimitive.Content,
|
598
607
|
{
|
599
608
|
ref,
|
600
609
|
sideOffset,
|
601
610
|
className: cn(
|
602
611
|
"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",
|
612
|
+
{
|
613
|
+
"hawa-text-xs": size === "small",
|
614
|
+
"hawa-text-xl": size === "large"
|
615
|
+
},
|
603
616
|
className
|
604
617
|
),
|
605
618
|
...props
|
@@ -610,6 +623,7 @@ var TooltipArrow = import_react3.default.forwardRef(({ className, ...props }, re
|
|
610
623
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
611
624
|
var Tooltip = ({
|
612
625
|
side,
|
626
|
+
size,
|
613
627
|
open,
|
614
628
|
content,
|
615
629
|
children,
|
@@ -636,7 +650,16 @@ var Tooltip = ({
|
|
636
650
|
...props
|
637
651
|
},
|
638
652
|
/* @__PURE__ */ import_react3.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
639
|
-
/* @__PURE__ */ import_react3.default.createElement(
|
653
|
+
/* @__PURE__ */ import_react3.default.createElement(
|
654
|
+
TooltipContent,
|
655
|
+
{
|
656
|
+
size,
|
657
|
+
side,
|
658
|
+
align: "center",
|
659
|
+
...contentProps
|
660
|
+
},
|
661
|
+
content
|
662
|
+
)
|
640
663
|
)
|
641
664
|
);
|
642
665
|
};
|
@@ -689,6 +712,7 @@ function Skeleton({
|
|
689
712
|
className,
|
690
713
|
content,
|
691
714
|
animation = "pulse",
|
715
|
+
fade,
|
692
716
|
...props
|
693
717
|
}) {
|
694
718
|
const animationStyles = {
|
@@ -696,12 +720,14 @@ function Skeleton({
|
|
696
720
|
pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
|
697
721
|
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"
|
698
722
|
};
|
723
|
+
const fadeStyle = `[mask-image:linear-gradient(to_${fade},#D1D4DC_50%,transparent_100%)]`;
|
699
724
|
return /* @__PURE__ */ import_react4.default.createElement(
|
700
725
|
"div",
|
701
726
|
{
|
702
727
|
className: cn(
|
703
728
|
animationStyles[animation],
|
704
729
|
content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
|
730
|
+
fade && fadeStyle,
|
705
731
|
className
|
706
732
|
),
|
707
733
|
...props
|
@@ -4743,6 +4769,7 @@ var UserReferralSource = ({
|
|
4743
4769
|
return /* @__PURE__ */ import_react23.default.createElement(
|
4744
4770
|
Radio,
|
4745
4771
|
{
|
4772
|
+
name: "source",
|
4746
4773
|
direction: props.direction,
|
4747
4774
|
orientation: "vertical",
|
4748
4775
|
options: optionsWithOther,
|
@@ -5162,7 +5189,7 @@ var FeedbackForm = (props) => {
|
|
5162
5189
|
}
|
5163
5190
|
}
|
5164
5191
|
),
|
5165
|
-
/* @__PURE__ */ import_react26.default.createElement(Button, { type: "submit" }, (_i = props.texts) == null ? void 0 : _i.submit)
|
5192
|
+
/* @__PURE__ */ import_react26.default.createElement(Button, { isLoading: props.loadingSubmission, type: "submit" }, (_i = props.texts) == null ? void 0 : _i.submit)
|
5166
5193
|
))
|
5167
5194
|
);
|
5168
5195
|
};
|
@@ -6423,6 +6450,7 @@ var PricingPlans = ({
|
|
6423
6450
|
return /* @__PURE__ */ import_react41.default.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ import_react41.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ import_react41.default.createElement(
|
6424
6451
|
Radio,
|
6425
6452
|
{
|
6453
|
+
name: "cycle",
|
6426
6454
|
design: "tabs",
|
6427
6455
|
defaultValue: props.currentCycle.value,
|
6428
6456
|
options: props.billingCycles,
|
@@ -6435,6 +6463,7 @@ var PricingPlans = ({
|
|
6435
6463
|
), /* @__PURE__ */ import_react41.default.createElement(
|
6436
6464
|
Radio,
|
6437
6465
|
{
|
6466
|
+
name: "currency",
|
6438
6467
|
design: "tabs",
|
6439
6468
|
defaultValue: props.currentCurrency.value,
|
6440
6469
|
options: props.currencies,
|
@@ -6494,6 +6523,7 @@ var ComparingPlans = (props) => {
|
|
6494
6523
|
return /* @__PURE__ */ import_react42.default.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ import_react42.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-flex-col hawa-justify-between hawa-gap-2 sm:hawa-flex-row" }, /* @__PURE__ */ import_react42.default.createElement(
|
6495
6524
|
Radio,
|
6496
6525
|
{
|
6526
|
+
name: "cycle",
|
6497
6527
|
tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
|
6498
6528
|
width: "none",
|
6499
6529
|
design: "tabs",
|
@@ -6508,6 +6538,7 @@ var ComparingPlans = (props) => {
|
|
6508
6538
|
), /* @__PURE__ */ import_react42.default.createElement(
|
6509
6539
|
Radio,
|
6510
6540
|
{
|
6541
|
+
name: "currency",
|
6511
6542
|
tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
|
6512
6543
|
width: "none",
|
6513
6544
|
design: "tabs",
|
@@ -6659,6 +6690,7 @@ var HorizontalPricing = (props) => {
|
|
6659
6690
|
return /* @__PURE__ */ import_react43.default.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ import_react43.default.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ import_react43.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ import_react43.default.createElement(
|
6660
6691
|
Radio,
|
6661
6692
|
{
|
6693
|
+
name: "currency",
|
6662
6694
|
design: "tabs",
|
6663
6695
|
options: props.currencies,
|
6664
6696
|
defaultValue: props.currentCurrency
|
@@ -6666,6 +6698,7 @@ var HorizontalPricing = (props) => {
|
|
6666
6698
|
), /* @__PURE__ */ import_react43.default.createElement(
|
6667
6699
|
Radio,
|
6668
6700
|
{
|
6701
|
+
name: "cycle",
|
6669
6702
|
design: "tabs",
|
6670
6703
|
options: props.billingCycles,
|
6671
6704
|
defaultValue: props.currentCycle
|
package/dist/blocks/index.mjs
CHANGED
@@ -25,7 +25,7 @@ import {
|
|
25
25
|
UncheckMark,
|
26
26
|
VeryBadEmoji,
|
27
27
|
VeryGoodEmoji
|
28
|
-
} from "../chunk-
|
28
|
+
} from "../chunk-CVOMACRL.mjs";
|
29
29
|
import {
|
30
30
|
Button,
|
31
31
|
Card,
|
@@ -41,7 +41,7 @@ import {
|
|
41
41
|
Skeleton,
|
42
42
|
Tooltip,
|
43
43
|
cn
|
44
|
-
} from "../chunk-
|
44
|
+
} from "../chunk-I5EJUQ4E.mjs";
|
45
45
|
import "../chunk-ZFXKCRJC.mjs";
|
46
46
|
|
47
47
|
// blocks/auth/LoginForm.tsx
|
@@ -1188,6 +1188,7 @@ var UserReferralSource = ({
|
|
1188
1188
|
return /* @__PURE__ */ React9.createElement(
|
1189
1189
|
Radio,
|
1190
1190
|
{
|
1191
|
+
name: "source",
|
1191
1192
|
direction: props.direction,
|
1192
1193
|
orientation: "vertical",
|
1193
1194
|
options: optionsWithOther,
|
@@ -1546,7 +1547,7 @@ var FeedbackForm = (props) => {
|
|
1546
1547
|
}
|
1547
1548
|
}
|
1548
1549
|
),
|
1549
|
-
/* @__PURE__ */ React12.createElement(Button, { type: "submit" }, (_i = props.texts) == null ? void 0 : _i.submit)
|
1550
|
+
/* @__PURE__ */ React12.createElement(Button, { isLoading: props.loadingSubmission, type: "submit" }, (_i = props.texts) == null ? void 0 : _i.submit)
|
1550
1551
|
))
|
1551
1552
|
);
|
1552
1553
|
};
|
@@ -2264,6 +2265,7 @@ var PricingPlans = ({
|
|
2264
2265
|
return /* @__PURE__ */ React26.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ React26.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ React26.createElement(
|
2265
2266
|
Radio,
|
2266
2267
|
{
|
2268
|
+
name: "cycle",
|
2267
2269
|
design: "tabs",
|
2268
2270
|
defaultValue: props.currentCycle.value,
|
2269
2271
|
options: props.billingCycles,
|
@@ -2276,6 +2278,7 @@ var PricingPlans = ({
|
|
2276
2278
|
), /* @__PURE__ */ React26.createElement(
|
2277
2279
|
Radio,
|
2278
2280
|
{
|
2281
|
+
name: "currency",
|
2279
2282
|
design: "tabs",
|
2280
2283
|
defaultValue: props.currentCurrency.value,
|
2281
2284
|
options: props.currencies,
|
@@ -2335,6 +2338,7 @@ var ComparingPlans = (props) => {
|
|
2335
2338
|
return /* @__PURE__ */ React27.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ React27.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-flex-col hawa-justify-between hawa-gap-2 sm:hawa-flex-row" }, /* @__PURE__ */ React27.createElement(
|
2336
2339
|
Radio,
|
2337
2340
|
{
|
2341
|
+
name: "cycle",
|
2338
2342
|
tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
|
2339
2343
|
width: "none",
|
2340
2344
|
design: "tabs",
|
@@ -2349,6 +2353,7 @@ var ComparingPlans = (props) => {
|
|
2349
2353
|
), /* @__PURE__ */ React27.createElement(
|
2350
2354
|
Radio,
|
2351
2355
|
{
|
2356
|
+
name: "currency",
|
2352
2357
|
tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
|
2353
2358
|
width: "none",
|
2354
2359
|
design: "tabs",
|
@@ -2500,6 +2505,7 @@ var HorizontalPricing = (props) => {
|
|
2500
2505
|
return /* @__PURE__ */ React28.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ React28.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React28.createElement(
|
2501
2506
|
Radio,
|
2502
2507
|
{
|
2508
|
+
name: "currency",
|
2503
2509
|
design: "tabs",
|
2504
2510
|
options: props.currencies,
|
2505
2511
|
defaultValue: props.currentCurrency
|
@@ -2507,6 +2513,7 @@ var HorizontalPricing = (props) => {
|
|
2507
2513
|
), /* @__PURE__ */ React28.createElement(
|
2508
2514
|
Radio,
|
2509
2515
|
{
|
2516
|
+
name: "cycle",
|
2510
2517
|
design: "tabs",
|
2511
2518
|
options: props.billingCycles,
|
2512
2519
|
defaultValue: props.currentCycle
|
@@ -276,7 +276,7 @@ var import_class_variance_authority = require("class-variance-authority");
|
|
276
276
|
var import_react3 = __toESM(require("react"));
|
277
277
|
var Loading = ({
|
278
278
|
design = "spinner",
|
279
|
-
size = "
|
279
|
+
size = "normal",
|
280
280
|
themeMode = "light",
|
281
281
|
classNames,
|
282
282
|
color,
|
@@ -290,6 +290,14 @@ var Loading = ({
|
|
290
290
|
lg: "hawa-h-14 hawa-w-14",
|
291
291
|
xl: "hawa-h-24 hawa-w-24"
|
292
292
|
};
|
293
|
+
let progressSizes = {
|
294
|
+
button: "hawa-h-1",
|
295
|
+
xs: "hawa-h-1 hawa-w-1",
|
296
|
+
sm: "hawa-h-6 hawa-w-6",
|
297
|
+
normal: "",
|
298
|
+
lg: "hawa-h-6",
|
299
|
+
xl: "hawa-h-10 hawa-w-64"
|
300
|
+
};
|
293
301
|
let animationStyles = {
|
294
302
|
pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
|
295
303
|
bounce: "hawa-animate-bounce"
|
@@ -420,6 +428,7 @@ var Loading = ({
|
|
420
428
|
{
|
421
429
|
className: cn(
|
422
430
|
"progress-loading after:hawa-rounded hawa-rounded",
|
431
|
+
progressSizes[size],
|
423
432
|
classNames == null ? void 0 : classNames.container
|
424
433
|
)
|
425
434
|
}
|
@@ -681,13 +690,17 @@ var React11 = __toESM(require("react"));
|
|
681
690
|
// elements/tooltip/Tooltip.tsx
|
682
691
|
var import_react6 = __toESM(require("react"));
|
683
692
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
684
|
-
var TooltipContent = import_react6.default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ import_react6.default.createElement(
|
693
|
+
var TooltipContent = import_react6.default.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ import_react6.default.createElement(
|
685
694
|
TooltipPrimitive.Content,
|
686
695
|
{
|
687
696
|
ref,
|
688
697
|
sideOffset,
|
689
698
|
className: cn(
|
690
699
|
"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",
|
700
|
+
{
|
701
|
+
"hawa-text-xs": size === "small",
|
702
|
+
"hawa-text-xl": size === "large"
|
703
|
+
},
|
691
704
|
className
|
692
705
|
),
|
693
706
|
...props
|
@@ -698,6 +711,7 @@ var TooltipArrow = import_react6.default.forwardRef(({ className, ...props }, re
|
|
698
711
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
699
712
|
var Tooltip = ({
|
700
713
|
side,
|
714
|
+
size,
|
701
715
|
open,
|
702
716
|
content,
|
703
717
|
children,
|
@@ -724,7 +738,16 @@ var Tooltip = ({
|
|
724
738
|
...props
|
725
739
|
},
|
726
740
|
/* @__PURE__ */ import_react6.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
727
|
-
/* @__PURE__ */ import_react6.default.createElement(
|
741
|
+
/* @__PURE__ */ import_react6.default.createElement(
|
742
|
+
TooltipContent,
|
743
|
+
{
|
744
|
+
size,
|
745
|
+
side,
|
746
|
+
align: "center",
|
747
|
+
...contentProps
|
748
|
+
},
|
749
|
+
content
|
750
|
+
)
|
728
751
|
)
|
729
752
|
);
|
730
753
|
};
|
@@ -777,6 +800,7 @@ function Skeleton({
|
|
777
800
|
className,
|
778
801
|
content,
|
779
802
|
animation = "pulse",
|
803
|
+
fade,
|
780
804
|
...props
|
781
805
|
}) {
|
782
806
|
const animationStyles = {
|
@@ -784,12 +808,14 @@ function Skeleton({
|
|
784
808
|
pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
|
785
809
|
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"
|
786
810
|
};
|
811
|
+
const fadeStyle = `[mask-image:linear-gradient(to_${fade},#D1D4DC_50%,transparent_100%)]`;
|
787
812
|
return /* @__PURE__ */ import_react7.default.createElement(
|
788
813
|
"div",
|
789
814
|
{
|
790
815
|
className: cn(
|
791
816
|
animationStyles[animation],
|
792
817
|
content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
|
818
|
+
fade && fadeStyle,
|
793
819
|
className
|
794
820
|
),
|
795
821
|
...props
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import {
|
2
2
|
Input
|
3
|
-
} from "../../chunk-
|
3
|
+
} from "../../chunk-AQO6QVMV.mjs";
|
4
4
|
import {
|
5
5
|
Chip,
|
6
6
|
ScrollArea
|
7
|
-
} from "../../chunk-
|
7
|
+
} from "../../chunk-MNCROATO.mjs";
|
8
8
|
import {
|
9
9
|
Textarea
|
10
|
-
} from "../../chunk-
|
10
|
+
} from "../../chunk-HMQOYBTW.mjs";
|
11
11
|
import {
|
12
12
|
Select
|
13
|
-
} from "../../chunk-
|
13
|
+
} from "../../chunk-KZ72VALG.mjs";
|
14
14
|
import {
|
15
15
|
Button,
|
16
16
|
Card,
|
@@ -20,7 +20,7 @@ import {
|
|
20
20
|
CardHeader,
|
21
21
|
CardTitle,
|
22
22
|
cn
|
23
|
-
} from "../../chunk-
|
23
|
+
} from "../../chunk-GCRMEJAI.mjs";
|
24
24
|
|
25
25
|
// blocks/misc/LegalTexts.tsx
|
26
26
|
import React2 from "react";
|
@@ -63,7 +63,7 @@ var import_class_variance_authority = require("class-variance-authority");
|
|
63
63
|
var import_react3 = __toESM(require("react"));
|
64
64
|
var Loading = ({
|
65
65
|
design = "spinner",
|
66
|
-
size = "
|
66
|
+
size = "normal",
|
67
67
|
themeMode = "light",
|
68
68
|
classNames,
|
69
69
|
color,
|
@@ -77,6 +77,14 @@ var Loading = ({
|
|
77
77
|
lg: "hawa-h-14 hawa-w-14",
|
78
78
|
xl: "hawa-h-24 hawa-w-24"
|
79
79
|
};
|
80
|
+
let progressSizes = {
|
81
|
+
button: "hawa-h-1",
|
82
|
+
xs: "hawa-h-1 hawa-w-1",
|
83
|
+
sm: "hawa-h-6 hawa-w-6",
|
84
|
+
normal: "",
|
85
|
+
lg: "hawa-h-6",
|
86
|
+
xl: "hawa-h-10 hawa-w-64"
|
87
|
+
};
|
80
88
|
let animationStyles = {
|
81
89
|
pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
|
82
90
|
bounce: "hawa-animate-bounce"
|
@@ -207,6 +215,7 @@ var Loading = ({
|
|
207
215
|
{
|
208
216
|
className: cn(
|
209
217
|
"progress-loading after:hawa-rounded hawa-rounded",
|
218
|
+
progressSizes[size],
|
210
219
|
classNames == null ? void 0 : classNames.container
|
211
220
|
)
|
212
221
|
}
|
@@ -445,6 +454,7 @@ function Skeleton({
|
|
445
454
|
className,
|
446
455
|
content,
|
447
456
|
animation = "pulse",
|
457
|
+
fade,
|
448
458
|
...props
|
449
459
|
}) {
|
450
460
|
const animationStyles = {
|
@@ -452,12 +462,14 @@ function Skeleton({
|
|
452
462
|
pulse: "hawa-animate-pulse hawa-rounded hawa-bg-muted",
|
453
463
|
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"
|
454
464
|
};
|
465
|
+
const fadeStyle = `[mask-image:linear-gradient(to_${fade},#D1D4DC_50%,transparent_100%)]`;
|
455
466
|
return /* @__PURE__ */ import_react4.default.createElement(
|
456
467
|
"div",
|
457
468
|
{
|
458
469
|
className: cn(
|
459
470
|
animationStyles[animation],
|
460
471
|
content && "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center",
|
472
|
+
fade && fadeStyle,
|
461
473
|
className
|
462
474
|
),
|
463
475
|
...props
|
@@ -469,13 +481,17 @@ function Skeleton({
|
|
469
481
|
// elements/tooltip/Tooltip.tsx
|
470
482
|
var import_react5 = __toESM(require("react"));
|
471
483
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
472
|
-
var TooltipContent = import_react5.default.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ import_react5.default.createElement(
|
484
|
+
var TooltipContent = import_react5.default.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ import_react5.default.createElement(
|
473
485
|
TooltipPrimitive.Content,
|
474
486
|
{
|
475
487
|
ref,
|
476
488
|
sideOffset,
|
477
489
|
className: cn(
|
478
490
|
"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",
|
491
|
+
{
|
492
|
+
"hawa-text-xs": size === "small",
|
493
|
+
"hawa-text-xl": size === "large"
|
494
|
+
},
|
479
495
|
className
|
480
496
|
),
|
481
497
|
...props
|
@@ -486,6 +502,7 @@ var TooltipArrow = import_react5.default.forwardRef(({ className, ...props }, re
|
|
486
502
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
487
503
|
var Tooltip = ({
|
488
504
|
side,
|
505
|
+
size,
|
489
506
|
open,
|
490
507
|
content,
|
491
508
|
children,
|
@@ -512,7 +529,16 @@ var Tooltip = ({
|
|
512
529
|
...props
|
513
530
|
},
|
514
531
|
/* @__PURE__ */ import_react5.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
515
|
-
/* @__PURE__ */ import_react5.default.createElement(
|
532
|
+
/* @__PURE__ */ import_react5.default.createElement(
|
533
|
+
TooltipContent,
|
534
|
+
{
|
535
|
+
size,
|
536
|
+
side,
|
537
|
+
align: "center",
|
538
|
+
...contentProps
|
539
|
+
},
|
540
|
+
content
|
541
|
+
)
|
516
542
|
)
|
517
543
|
);
|
518
544
|
};
|
@@ -1137,6 +1163,7 @@ var PricingPlans = ({
|
|
1137
1163
|
return /* @__PURE__ */ import_react12.default.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ import_react12.default.createElement(
|
1138
1164
|
Radio,
|
1139
1165
|
{
|
1166
|
+
name: "cycle",
|
1140
1167
|
design: "tabs",
|
1141
1168
|
defaultValue: props.currentCycle.value,
|
1142
1169
|
options: props.billingCycles,
|
@@ -1149,6 +1176,7 @@ var PricingPlans = ({
|
|
1149
1176
|
), /* @__PURE__ */ import_react12.default.createElement(
|
1150
1177
|
Radio,
|
1151
1178
|
{
|
1179
|
+
name: "currency",
|
1152
1180
|
design: "tabs",
|
1153
1181
|
defaultValue: props.currentCurrency.value,
|
1154
1182
|
options: props.currencies,
|
@@ -1305,6 +1333,7 @@ var ComparingPlans = (props) => {
|
|
1305
1333
|
return /* @__PURE__ */ import_react16.default.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ import_react16.default.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-flex-col hawa-justify-between hawa-gap-2 sm:hawa-flex-row" }, /* @__PURE__ */ import_react16.default.createElement(
|
1306
1334
|
Radio,
|
1307
1335
|
{
|
1336
|
+
name: "cycle",
|
1308
1337
|
tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
|
1309
1338
|
width: "none",
|
1310
1339
|
design: "tabs",
|
@@ -1319,6 +1348,7 @@ var ComparingPlans = (props) => {
|
|
1319
1348
|
), /* @__PURE__ */ import_react16.default.createElement(
|
1320
1349
|
Radio,
|
1321
1350
|
{
|
1351
|
+
name: "currency",
|
1322
1352
|
tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
|
1323
1353
|
width: "none",
|
1324
1354
|
design: "tabs",
|
@@ -1470,6 +1500,7 @@ var HorizontalPricing = (props) => {
|
|
1470
1500
|
return /* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ import_react17.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ import_react17.default.createElement(
|
1471
1501
|
Radio,
|
1472
1502
|
{
|
1503
|
+
name: "currency",
|
1473
1504
|
design: "tabs",
|
1474
1505
|
options: props.currencies,
|
1475
1506
|
defaultValue: props.currentCurrency
|
@@ -1477,6 +1508,7 @@ var HorizontalPricing = (props) => {
|
|
1477
1508
|
), /* @__PURE__ */ import_react17.default.createElement(
|
1478
1509
|
Radio,
|
1479
1510
|
{
|
1511
|
+
name: "cycle",
|
1480
1512
|
design: "tabs",
|
1481
1513
|
options: props.billingCycles,
|
1482
1514
|
defaultValue: props.currentCycle
|
@@ -1,22 +1,22 @@
|
|
1
1
|
import {
|
2
2
|
Chip,
|
3
3
|
ScrollArea
|
4
|
-
} from "../../chunk-
|
4
|
+
} from "../../chunk-MNCROATO.mjs";
|
5
5
|
import "../../chunk-ZS3FB3PO.mjs";
|
6
6
|
import {
|
7
7
|
Radio
|
8
|
-
} from "../../chunk-
|
8
|
+
} from "../../chunk-7YVLGY5B.mjs";
|
9
9
|
import {
|
10
10
|
CheckMark,
|
11
11
|
UncheckMark
|
12
|
-
} from "../../chunk-
|
12
|
+
} from "../../chunk-F4MGQ5JV.mjs";
|
13
13
|
import {
|
14
14
|
Button,
|
15
15
|
Card,
|
16
16
|
Skeleton,
|
17
17
|
Tooltip,
|
18
18
|
cn
|
19
|
-
} from "../../chunk-
|
19
|
+
} from "../../chunk-GCRMEJAI.mjs";
|
20
20
|
|
21
21
|
// blocks/pricing/PricingPlans.tsx
|
22
22
|
import React8 from "react";
|
@@ -352,6 +352,7 @@ var PricingPlans = ({
|
|
352
352
|
return /* @__PURE__ */ React8.createElement("div", { ...mainContainerProps }, /* @__PURE__ */ React8.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between" }, /* @__PURE__ */ React8.createElement(
|
353
353
|
Radio,
|
354
354
|
{
|
355
|
+
name: "cycle",
|
355
356
|
design: "tabs",
|
356
357
|
defaultValue: props.currentCycle.value,
|
357
358
|
options: props.billingCycles,
|
@@ -364,6 +365,7 @@ var PricingPlans = ({
|
|
364
365
|
), /* @__PURE__ */ React8.createElement(
|
365
366
|
Radio,
|
366
367
|
{
|
368
|
+
name: "currency",
|
367
369
|
design: "tabs",
|
368
370
|
defaultValue: props.currentCurrency.value,
|
369
371
|
options: props.currencies,
|
@@ -423,6 +425,7 @@ var ComparingPlans = (props) => {
|
|
423
425
|
return /* @__PURE__ */ React9.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ React9.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-flex-col hawa-justify-between hawa-gap-2 sm:hawa-flex-row" }, /* @__PURE__ */ React9.createElement(
|
424
426
|
Radio,
|
425
427
|
{
|
428
|
+
name: "cycle",
|
426
429
|
tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
|
427
430
|
width: "none",
|
428
431
|
design: "tabs",
|
@@ -437,6 +440,7 @@ var ComparingPlans = (props) => {
|
|
437
440
|
), /* @__PURE__ */ React9.createElement(
|
438
441
|
Radio,
|
439
442
|
{
|
443
|
+
name: "currency",
|
440
444
|
tabsContainerClassName: "hawa-w-full sm:hawa-max-w-fit",
|
441
445
|
width: "none",
|
442
446
|
design: "tabs",
|
@@ -588,6 +592,7 @@ var HorizontalPricing = (props) => {
|
|
588
592
|
return /* @__PURE__ */ React10.createElement("div", { className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm" }, /* @__PURE__ */ React10.createElement("div", { className: "hawa-max-w-2xl " }, /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React10.createElement(
|
589
593
|
Radio,
|
590
594
|
{
|
595
|
+
name: "currency",
|
591
596
|
design: "tabs",
|
592
597
|
options: props.currencies,
|
593
598
|
defaultValue: props.currentCurrency
|
@@ -595,6 +600,7 @@ var HorizontalPricing = (props) => {
|
|
595
600
|
), /* @__PURE__ */ React10.createElement(
|
596
601
|
Radio,
|
597
602
|
{
|
603
|
+
name: "cycle",
|
598
604
|
design: "tabs",
|
599
605
|
options: props.billingCycles,
|
600
606
|
defaultValue: props.currentCycle
|
package/dist/button/index.js
CHANGED
@@ -50,7 +50,7 @@ function cn(...inputs) {
|
|
50
50
|
var import_react = __toESM(require("react"));
|
51
51
|
var Loading = ({
|
52
52
|
design = "spinner",
|
53
|
-
size = "
|
53
|
+
size = "normal",
|
54
54
|
themeMode = "light",
|
55
55
|
classNames,
|
56
56
|
color,
|
@@ -64,6 +64,14 @@ var Loading = ({
|
|
64
64
|
lg: "hawa-h-14 hawa-w-14",
|
65
65
|
xl: "hawa-h-24 hawa-w-24"
|
66
66
|
};
|
67
|
+
let progressSizes = {
|
68
|
+
button: "hawa-h-1",
|
69
|
+
xs: "hawa-h-1 hawa-w-1",
|
70
|
+
sm: "hawa-h-6 hawa-w-6",
|
71
|
+
normal: "",
|
72
|
+
lg: "hawa-h-6",
|
73
|
+
xl: "hawa-h-10 hawa-w-64"
|
74
|
+
};
|
67
75
|
let animationStyles = {
|
68
76
|
pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
|
69
77
|
bounce: "hawa-animate-bounce"
|
@@ -194,6 +202,7 @@ var Loading = ({
|
|
194
202
|
{
|
195
203
|
className: cn(
|
196
204
|
"progress-loading after:hawa-rounded hawa-rounded",
|
205
|
+
progressSizes[size],
|
197
206
|
classNames == null ? void 0 : classNames.container
|
198
207
|
)
|
199
208
|
}
|