@sikka/hawa 0.19.38-next → 0.19.40-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.css CHANGED
@@ -1293,6 +1293,9 @@ input[type="number"]::-webkit-inner-spin-button,
1293
1293
  .hawa-grid {
1294
1294
  display: grid;
1295
1295
  }
1296
+ .hawa-inline-grid {
1297
+ display: inline-grid;
1298
+ }
1296
1299
  .hawa-hidden {
1297
1300
  display: none;
1298
1301
  }
@@ -1628,6 +1631,9 @@ input[type="number"]::-webkit-inner-spin-button,
1628
1631
  width: -moz-max-content;
1629
1632
  width: max-content;
1630
1633
  }
1634
+ .hawa-w-px {
1635
+ width: 1px;
1636
+ }
1631
1637
  .hawa-w-screen {
1632
1638
  width: 100vw;
1633
1639
  }
@@ -1882,6 +1888,9 @@ input[type="number"]::-webkit-inner-spin-button,
1882
1888
  .hawa-grid-cols-\[1fr_repeat\(3\,_minmax\(0\,_1fr\)\)\] {
1883
1889
  grid-template-columns: 1fr repeat(3, minmax(0, 1fr));
1884
1890
  }
1891
+ .hawa-grid-cols-\[repeat\(auto-fit\,_minmax\(300px\,_1fr\)\)\] {
1892
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
1893
+ }
1885
1894
  .hawa-flex-row {
1886
1895
  flex-direction: row;
1887
1896
  }
@@ -3599,16 +3608,11 @@ body {
3599
3608
  .hawa-group.destructive .group-\[\.destructive\]\:focus\:hawa-ring-offset-red-600:focus {
3600
3609
  --tw-ring-offset-color: #dc2626;
3601
3610
  }
3602
- .hawa-peer:checked ~ .peer-checked\:hawa-border-blue-600 {
3603
- --tw-border-opacity: 1;
3604
- border-color: rgb(37 99 235 / var(--tw-border-opacity));
3605
- }
3606
3611
  .hawa-peer:checked ~ .peer-checked\:hawa-border-primary {
3607
3612
  border-color: hsl(var(--primary));
3608
3613
  }
3609
- .hawa-peer:checked ~ .peer-checked\:hawa-text-blue-600 {
3610
- --tw-text-opacity: 1;
3611
- color: rgb(37 99 235 / var(--tw-text-opacity));
3614
+ .hawa-peer:checked ~ .peer-checked\:hawa-text-primary {
3615
+ color: hsl(var(--primary));
3612
3616
  }
3613
3617
  .hawa-peer:checked ~ .peer-checked\:hawa-ring-4 {
3614
3618
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
package/dist/index.d.mts CHANGED
@@ -72,6 +72,7 @@ type PricingPlanTexts = {
72
72
  currencyText?: string;
73
73
  soon?: string;
74
74
  recommended?: string;
75
+ priceless?: string;
75
76
  };
76
77
  type ThirdPartyAuthTextsTypes = {
77
78
  continueWithGoogle?: string;
@@ -156,6 +157,7 @@ type PricingCardProps = {
156
157
  endButton?: boolean;
157
158
  price: number;
158
159
  oldPrice?: number;
160
+ noPrice?: boolean;
159
161
  id?: string;
160
162
  discount?: string;
161
163
  onPlanClicked?: () => void;
@@ -352,8 +354,9 @@ type RadioOptionsTypes = {
352
354
  type RadioTypes = {
353
355
  orientation?: OrientationType;
354
356
  design?: "default" | "tabs" | "cards" | "bordered";
355
- options: RadioOptionsTypes[];
356
357
  width?: "default" | "full" | "none";
358
+ size?: "default" | "lg" | "sm" | "xs";
359
+ options: RadioOptionsTypes[];
357
360
  onChangeTab?: any;
358
361
  defaultValue?: any;
359
362
  direction?: DirectionType;
package/dist/index.d.ts CHANGED
@@ -72,6 +72,7 @@ type PricingPlanTexts = {
72
72
  currencyText?: string;
73
73
  soon?: string;
74
74
  recommended?: string;
75
+ priceless?: string;
75
76
  };
76
77
  type ThirdPartyAuthTextsTypes = {
77
78
  continueWithGoogle?: string;
@@ -156,6 +157,7 @@ type PricingCardProps = {
156
157
  endButton?: boolean;
157
158
  price: number;
158
159
  oldPrice?: number;
160
+ noPrice?: boolean;
159
161
  id?: string;
160
162
  discount?: string;
161
163
  onPlanClicked?: () => void;
@@ -352,8 +354,9 @@ type RadioOptionsTypes = {
352
354
  type RadioTypes = {
353
355
  orientation?: OrientationType;
354
356
  design?: "default" | "tabs" | "cards" | "bordered";
355
- options: RadioOptionsTypes[];
356
357
  width?: "default" | "full" | "none";
358
+ size?: "default" | "lg" | "sm" | "xs";
359
+ options: RadioOptionsTypes[];
357
360
  onChangeTab?: any;
358
361
  defaultValue?: any;
359
362
  direction?: DirectionType;
package/dist/index.js CHANGED
@@ -872,7 +872,7 @@ var PricingCard = ({
872
872
  currentPlan = false,
873
873
  ...props
874
874
  }) => {
875
- var _a;
875
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
876
876
  let cardSizes = {
877
877
  small: "hawa-w-full hawa-max-w-sm hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
878
878
  medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
@@ -895,9 +895,9 @@ var PricingCard = ({
895
895
  className: "hawa-bg-primary hawa-text-center hawa-text-primary-foreground hawa-p-2 hawa-border hawa-rounded-t hawa-absolute hawa-top-0 -hawa-left-[1px] -hawa-translate-y-full",
896
896
  style: { width: "calc(100% + 2px)" }
897
897
  },
898
- props.texts.recommended || "RECOMMENDED"
898
+ ((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
899
899
  ),
900
- /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4 hawa-h-full" }, /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ import_react7.default.createElement("span", null, props.texts.title), /* @__PURE__ */ import_react7.default.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, props.texts.subtitle), props.discount && /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react7.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ import_react7.default.createElement("div", { className: " hawa-text-primary hawa-flex hawa-items-baseline" }, props.isLoading ? /* @__PURE__ */ import_react7.default.createElement(Skeleton, { className: "hawa-w-full hawa-max-w-[200px] hawa-h-[48px] hawa-p-0 " }) : /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2 hawa-items-end" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + props.texts.currencyText), /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, props.texts.currencyText)), /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-whitespace-nowrap hawa-font-normal hawa-text-primary/70" }, "/ ", props.texts.cycleText))), endButton && /* @__PURE__ */ import_react7.default.createElement(Separator, null), /* @__PURE__ */ import_react7.default.createElement(
900
+ /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4 hawa-h-full" }, /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ import_react7.default.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ import_react7.default.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ import_react7.default.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ import_react7.default.createElement("div", { className: " hawa-text-primary hawa-flex hawa-items-baseline" }, props.isLoading ? /* @__PURE__ */ import_react7.default.createElement(Skeleton, { className: "hawa-w-full hawa-max-w-[200px] hawa-h-[48px] hawa-p-0 " }) : /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, props.noPrice ? /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, ((_d = props.texts) == null ? void 0 : _d.priceless) || "Contact Us") : /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2 hawa-items-end" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ import_react7.default.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-whitespace-nowrap hawa-font-normal hawa-text-primary/70" }, "/ ", (_g = props.texts) == null ? void 0 : _g.cycleText)))), endButton && /* @__PURE__ */ import_react7.default.createElement(Separator, null), /* @__PURE__ */ import_react7.default.createElement(
901
901
  "div",
902
902
  {
903
903
  className: cn(
@@ -905,7 +905,7 @@ var PricingCard = ({
905
905
  endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
906
906
  )
907
907
  },
908
- props.features && /* @__PURE__ */ import_react7.default.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_a = props.features) == null ? void 0 : _a.map((feature, o) => {
908
+ props.features && /* @__PURE__ */ import_react7.default.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
909
909
  return /* @__PURE__ */ import_react7.default.createElement(
910
910
  "li",
911
911
  {
@@ -958,7 +958,7 @@ var PricingCard = ({
958
958
  disabled: currentPlan,
959
959
  className: "hawa-w-full"
960
960
  },
961
- props.texts.buttonText
961
+ (_i = props.texts) == null ? void 0 : _i.buttonText
962
962
  )
963
963
  ))
964
964
  );
@@ -3608,6 +3608,7 @@ var import_react14 = __toESM(require("react"));
3608
3608
  var Radio = ({
3609
3609
  design = "default",
3610
3610
  width = "default",
3611
+ size = "default",
3611
3612
  orientation = "horizontal",
3612
3613
  labelProps,
3613
3614
  tabsContainerClassName,
@@ -3615,12 +3616,18 @@ var Radio = ({
3615
3616
  }) => {
3616
3617
  var _a, _b, _c;
3617
3618
  const [selectedOption, setSelectedOption] = (0, import_react14.useState)(props.defaultValue);
3618
- let activeTabStyle = "hawa-inline-block hawa-py-2 hawa-px-4 hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary ";
3619
- let inactiveTabStyle = "hawa-inline-block hawa-py-2 hawa-px-4 hawa-w-full hawa-transition-all hover:hawa-bg-primary/10 hawa-bg-primary/5 dark:hover:hawa-text-white ";
3619
+ let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
3620
+ let inactiveTabStyle = "hawa-inline-block hawa-w-full hawa-transition-all hover:hawa-bg-muted hawa-bg-primary-foreground dark:hover:hawa-text-white";
3620
3621
  let orientationStyle = {
3621
3622
  horizontal: "hawa-flex hawa-flex-row",
3622
3623
  vertical: "hawa-flex hawa-flex-col"
3623
3624
  };
3625
+ let tabSizeStyle = {
3626
+ default: "hawa-py-2 hawa-px-4 hawa-text-sm",
3627
+ lg: "hawa-py-2 hawa-px-4",
3628
+ sm: "hawa-p-1.5 hawa-text-xs",
3629
+ xs: "hawa-p-1 hawa-text-[10px]"
3630
+ };
3624
3631
  let widthStyle = {
3625
3632
  none: "",
3626
3633
  default: "hawa-max-w-fit",
@@ -3646,7 +3653,7 @@ var Radio = ({
3646
3653
  ref: parentRef,
3647
3654
  className: cn(
3648
3655
  props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
3649
- "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-text-sm hawa-font-medium",
3656
+ "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
3650
3657
  orientationStyle[orientation],
3651
3658
  widthStyle[width],
3652
3659
  tabsContainerClassName
@@ -3669,6 +3676,7 @@ var Radio = ({
3669
3676
  orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
3670
3677
  orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
3671
3678
  orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
3679
+ tabSizeStyle[size],
3672
3680
  "hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
3673
3681
  selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
3674
3682
  ),
@@ -3734,7 +3742,7 @@ var Radio = ({
3734
3742
  {
3735
3743
  htmlFor: opt.value.toString(),
3736
3744
  className: cn(
3737
- "hawa-inline-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-gray-200 hawa-bg-white hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-blue-600 peer-checked:hawa-text-blue-600 dark:hawa-border-gray-700 dark:hawa-bg-gray-800 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
3745
+ "hawa-inline-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-gray-200 hawa-bg-white hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-gray-700 dark:hawa-bg-gray-800 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
3738
3746
  opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-gray-100 hover:hawa-text-gray-600 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-gray-300"
3739
3747
  )
3740
3748
  },
@@ -11077,7 +11085,7 @@ var PricingPlans = ({
11077
11085
  )), /* @__PURE__ */ import_react69.default.createElement(
11078
11086
  "div",
11079
11087
  {
11080
- className: "hawa-flex hawa-flex-col hawa-gap-2 md:hawa-flex-row hawa-justify-between",
11088
+ className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
11081
11089
  ...cardsContainerProps
11082
11090
  },
11083
11091
  props.plans.map((plan, index) => {
@@ -11167,7 +11175,7 @@ var ComparingPlans = (props) => {
11167
11175
  key: i,
11168
11176
  className: "hawa-flex hawa-flex-col hawa-gap-2 hawa-justify-center hawa-items-center"
11169
11177
  },
11170
- /* @__PURE__ */ import_react70.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react70.default.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react70.default.createElement("span", { className: "hawa-text-md hawa-font-bold " }, plan.texts.title), /* @__PURE__ */ import_react70.default.createElement("span", { className: "hawa-text-md hawa-font-normal hawa-text-muted-foreground " }, plan.texts.subtitle)), /* @__PURE__ */ import_react70.default.createElement("div", { className: " hawa-flex hawa-items-baseline " }, /* @__PURE__ */ import_react70.default.createElement(import_react70.default.Fragment, null, /* @__PURE__ */ import_react70.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ import_react70.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ import_react70.default.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal " }, "/ ", plan.texts.cycleText)))
11178
+ /* @__PURE__ */ import_react70.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ import_react70.default.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react70.default.createElement("span", { className: "hawa-text-md hawa-font-bold " }, plan.texts.title), /* @__PURE__ */ import_react70.default.createElement("span", { className: "hawa-text-md hawa-font-normal hawa-text-muted-foreground " }, plan.texts.subtitle)), /* @__PURE__ */ import_react70.default.createElement("div", { className: "hawa-flex hawa-items-baseline " }, /* @__PURE__ */ import_react70.default.createElement(import_react70.default.Fragment, null, /* @__PURE__ */ import_react70.default.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ import_react70.default.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ import_react70.default.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal " }, "/ ", plan.texts.cycleText)))
11171
11179
  ))
11172
11180
  ), /* @__PURE__ */ import_react70.default.createElement(
11173
11181
  ScrollArea,
package/dist/index.mjs CHANGED
@@ -639,7 +639,7 @@ var PricingCard = ({
639
639
  currentPlan = false,
640
640
  ...props
641
641
  }) => {
642
- var _a;
642
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
643
643
  let cardSizes = {
644
644
  small: "hawa-w-full hawa-max-w-sm hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
645
645
  medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background ",
@@ -662,9 +662,9 @@ var PricingCard = ({
662
662
  className: "hawa-bg-primary hawa-text-center hawa-text-primary-foreground hawa-p-2 hawa-border hawa-rounded-t hawa-absolute hawa-top-0 -hawa-left-[1px] -hawa-translate-y-full",
663
663
  style: { width: "calc(100% + 2px)" }
664
664
  },
665
- props.texts.recommended || "RECOMMENDED"
665
+ ((_a = props.texts) == null ? void 0 : _a.recommended) || "RECOMMENDED"
666
666
  ),
667
- /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4 hawa-h-full" }, /* @__PURE__ */ React10.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ React10.createElement("span", null, props.texts.title), /* @__PURE__ */ React10.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, props.texts.subtitle), props.discount && /* @__PURE__ */ React10.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ React10.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ React10.createElement("div", { className: " hawa-text-primary hawa-flex hawa-items-baseline" }, props.isLoading ? /* @__PURE__ */ React10.createElement(Skeleton, { className: "hawa-w-full hawa-max-w-[200px] hawa-h-[48px] hawa-p-0 " }) : /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2 hawa-items-end" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ React10.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + props.texts.currencyText), /* @__PURE__ */ React10.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ React10.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, props.texts.currencyText)), /* @__PURE__ */ React10.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-whitespace-nowrap hawa-font-normal hawa-text-primary/70" }, "/ ", props.texts.cycleText))), endButton && /* @__PURE__ */ React10.createElement(Separator, null), /* @__PURE__ */ React10.createElement(
667
+ /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4 hawa-h-full" }, /* @__PURE__ */ React10.createElement("div", { className: "hawa-text-md hawa-relative hawa-flex hawa-flex-col hawa-justify-between hawa-font-bold hawa-text-primary/70" }, /* @__PURE__ */ React10.createElement("span", null, (_b = props.texts) == null ? void 0 : _b.title), /* @__PURE__ */ React10.createElement("h5", { className: "hawa-text-sm hawa-font-normal hawa-text-primary/70" }, (_c = props.texts) == null ? void 0 : _c.subtitle), props.discount && /* @__PURE__ */ React10.createElement("span", { className: "hawa-absolute hawa-end-0" }, /* @__PURE__ */ React10.createElement(Chip, { label: props.discount, size: "large", color: "hyper" }))), /* @__PURE__ */ React10.createElement("div", { className: " hawa-text-primary hawa-flex hawa-items-baseline" }, props.isLoading ? /* @__PURE__ */ React10.createElement(Skeleton, { className: "hawa-w-full hawa-max-w-[200px] hawa-h-[48px] hawa-p-0 " }) : /* @__PURE__ */ React10.createElement(React10.Fragment, null, props.noPrice ? /* @__PURE__ */ React10.createElement("div", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, ((_d = props.texts) == null ? void 0 : _d.priceless) || "Contact Us") : /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-2 hawa-items-end" }, props.oldPrice && props.oldPrice > 0 && /* @__PURE__ */ React10.createElement("span", { className: "hawa-line-through hawa-opacity-70" }, props.oldPrice + " " + ((_e = props.texts) == null ? void 0 : _e.currencyText)), /* @__PURE__ */ React10.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, props.price)), /* @__PURE__ */ React10.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, (_f = props.texts) == null ? void 0 : _f.currencyText)), /* @__PURE__ */ React10.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-whitespace-nowrap hawa-font-normal hawa-text-primary/70" }, "/ ", (_g = props.texts) == null ? void 0 : _g.cycleText)))), endButton && /* @__PURE__ */ React10.createElement(Separator, null), /* @__PURE__ */ React10.createElement(
668
668
  "div",
669
669
  {
670
670
  className: cn(
@@ -672,7 +672,7 @@ var PricingCard = ({
672
672
  endButton ? "hawa-flex-col" : "hawa-flex-col-reverse"
673
673
  )
674
674
  },
675
- props.features && /* @__PURE__ */ React10.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_a = props.features) == null ? void 0 : _a.map((feature, o) => {
675
+ props.features && /* @__PURE__ */ React10.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
676
676
  return /* @__PURE__ */ React10.createElement(
677
677
  "li",
678
678
  {
@@ -725,7 +725,7 @@ var PricingCard = ({
725
725
  disabled: currentPlan,
726
726
  className: "hawa-w-full"
727
727
  },
728
- props.texts.buttonText
728
+ (_i = props.texts) == null ? void 0 : _i.buttonText
729
729
  )
730
730
  ))
731
731
  );
@@ -3375,6 +3375,7 @@ import React20, { useState as useState6, useRef as useRef3, useEffect as useEffe
3375
3375
  var Radio = ({
3376
3376
  design = "default",
3377
3377
  width = "default",
3378
+ size = "default",
3378
3379
  orientation = "horizontal",
3379
3380
  labelProps,
3380
3381
  tabsContainerClassName,
@@ -3382,12 +3383,18 @@ var Radio = ({
3382
3383
  }) => {
3383
3384
  var _a, _b, _c;
3384
3385
  const [selectedOption, setSelectedOption] = useState6(props.defaultValue);
3385
- let activeTabStyle = "hawa-inline-block hawa-py-2 hawa-px-4 hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary ";
3386
- let inactiveTabStyle = "hawa-inline-block hawa-py-2 hawa-px-4 hawa-w-full hawa-transition-all hover:hawa-bg-primary/10 hawa-bg-primary/5 dark:hover:hawa-text-white ";
3386
+ let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
3387
+ let inactiveTabStyle = "hawa-inline-block hawa-w-full hawa-transition-all hover:hawa-bg-muted hawa-bg-primary-foreground dark:hover:hawa-text-white";
3387
3388
  let orientationStyle = {
3388
3389
  horizontal: "hawa-flex hawa-flex-row",
3389
3390
  vertical: "hawa-flex hawa-flex-col"
3390
3391
  };
3392
+ let tabSizeStyle = {
3393
+ default: "hawa-py-2 hawa-px-4 hawa-text-sm",
3394
+ lg: "hawa-py-2 hawa-px-4",
3395
+ sm: "hawa-p-1.5 hawa-text-xs",
3396
+ xs: "hawa-p-1 hawa-text-[10px]"
3397
+ };
3391
3398
  let widthStyle = {
3392
3399
  none: "",
3393
3400
  default: "hawa-max-w-fit",
@@ -3413,7 +3420,7 @@ var Radio = ({
3413
3420
  ref: parentRef,
3414
3421
  className: cn(
3415
3422
  props.options && ((_a = props.options) == null ? void 0 : _a.length) > 2 ? "hawa-flex-wrap xs:hawa-max-w-full xs:hawa-flex-nowrap" : "",
3416
- "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-text-sm hawa-font-medium",
3423
+ "hawa-select-none hawa-whitespace-nowrap hawa-rounded hawa-border hawa-text-center hawa-font-medium",
3417
3424
  orientationStyle[orientation],
3418
3425
  widthStyle[width],
3419
3426
  tabsContainerClassName
@@ -3436,6 +3443,7 @@ var Radio = ({
3436
3443
  orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
3437
3444
  orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
3438
3445
  orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
3446
+ tabSizeStyle[size],
3439
3447
  "hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
3440
3448
  selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
3441
3449
  ),
@@ -3501,7 +3509,7 @@ var Radio = ({
3501
3509
  {
3502
3510
  htmlFor: opt.value.toString(),
3503
3511
  className: cn(
3504
- "hawa-inline-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-gray-200 hawa-bg-white hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-blue-600 peer-checked:hawa-text-blue-600 dark:hawa-border-gray-700 dark:hawa-bg-gray-800 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
3512
+ "hawa-inline-flex hawa-h-full hawa-w-full hawa-items-center hawa-justify-between hawa-rounded-lg hawa-border hawa-border-gray-200 hawa-bg-white hawa-p-5 hawa-text-gray-500 peer-checked:hawa-border-primary peer-checked:hawa-text-primary dark:hawa-border-gray-700 dark:hawa-bg-gray-800 dark:hawa-text-gray-400 dark:peer-checked:hawa-text-primary",
3505
3513
  opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hover:hawa-bg-gray-100 hover:hawa-text-gray-600 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-gray-300"
3506
3514
  )
3507
3515
  },
@@ -10861,7 +10869,7 @@ var PricingPlans = ({
10861
10869
  )), /* @__PURE__ */ React95.createElement(
10862
10870
  "div",
10863
10871
  {
10864
- className: "hawa-flex hawa-flex-col hawa-gap-2 md:hawa-flex-row hawa-justify-between",
10872
+ className: "hawa-inline-grid hawa-w-full hawa-grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] hawa-gap-4",
10865
10873
  ...cardsContainerProps
10866
10874
  },
10867
10875
  props.plans.map((plan, index) => {
@@ -10951,7 +10959,7 @@ var ComparingPlans = (props) => {
10951
10959
  key: i,
10952
10960
  className: "hawa-flex hawa-flex-col hawa-gap-2 hawa-justify-center hawa-items-center"
10953
10961
  },
10954
- /* @__PURE__ */ React96.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React96.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React96.createElement("span", { className: "hawa-text-md hawa-font-bold " }, plan.texts.title), /* @__PURE__ */ React96.createElement("span", { className: "hawa-text-md hawa-font-normal hawa-text-muted-foreground " }, plan.texts.subtitle)), /* @__PURE__ */ React96.createElement("div", { className: " hawa-flex hawa-items-baseline " }, /* @__PURE__ */ React96.createElement(React96.Fragment, null, /* @__PURE__ */ React96.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ React96.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ React96.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal " }, "/ ", plan.texts.cycleText)))
10962
+ /* @__PURE__ */ React96.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React96.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React96.createElement("span", { className: "hawa-text-md hawa-font-bold " }, plan.texts.title), /* @__PURE__ */ React96.createElement("span", { className: "hawa-text-md hawa-font-normal hawa-text-muted-foreground " }, plan.texts.subtitle)), /* @__PURE__ */ React96.createElement("div", { className: "hawa-flex hawa-items-baseline " }, /* @__PURE__ */ React96.createElement(React96.Fragment, null, /* @__PURE__ */ React96.createElement("span", { className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight" }, plan.price), /* @__PURE__ */ React96.createElement("span", { className: "hawa-mx-1 hawa-text-sm hawa-font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ React96.createElement("span", { className: "hawa-ml-1 hawa-text-xl hawa-font-normal " }, "/ ", plan.texts.cycleText)))
10955
10963
  ))
10956
10964
  ), /* @__PURE__ */ React96.createElement(
10957
10965
  ScrollArea,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.19.38-next",
3
+ "version": "0.19.40-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",