@sikka/hawa 0.14.9-next → 0.14.11-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
@@ -3556,10 +3556,18 @@ body {
3556
3556
  --tw-bg-opacity: 1;
3557
3557
  background-color: rgb(248 113 113 / var(--tw-bg-opacity));
3558
3558
  }
3559
+ :is(.hawa-dark .dark\:hawa-bg-white) {
3560
+ --tw-bg-opacity: 1;
3561
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
3562
+ }
3559
3563
  :is(.hawa-dark .dark\:hawa-bg-yellow-400) {
3560
3564
  --tw-bg-opacity: 1;
3561
3565
  background-color: rgb(250 204 21 / var(--tw-bg-opacity));
3562
3566
  }
3567
+ :is(.hawa-dark .dark\:hawa-text-black) {
3568
+ --tw-text-opacity: 1;
3569
+ color: rgb(0 0 0 / var(--tw-text-opacity));
3570
+ }
3563
3571
  :is(.hawa-dark .dark\:hawa-text-blue-100) {
3564
3572
  --tw-text-opacity: 1;
3565
3573
  color: rgb(219 234 254 / var(--tw-text-opacity));
package/dist/index.d.mts CHANGED
@@ -495,6 +495,8 @@ declare const PhoneInput: FC<PhoneInputTypes>;
495
495
  interface CarouselProps {
496
496
  items: React__default.ReactNode[];
497
497
  showArrows?: boolean;
498
+ autoplay?: boolean;
499
+ autoplayInterval?: number;
498
500
  }
499
501
  type Props = CarouselProps & EmblaOptionsType;
500
502
  declare const Carousel: (props: PropsWithChildren<Props>) => React__default.JSX.Element;
@@ -1358,8 +1360,6 @@ type TConfirmation = {
1358
1360
  weSentCode?: string;
1359
1361
  didntGetCode?: string;
1360
1362
  resendCode?: string;
1361
- codeLabel?: string;
1362
- codePlaceholder?: string;
1363
1363
  codeRequiredText?: string;
1364
1364
  codeTooShort?: string;
1365
1365
  confirm?: string;
package/dist/index.d.ts CHANGED
@@ -495,6 +495,8 @@ declare const PhoneInput: FC<PhoneInputTypes>;
495
495
  interface CarouselProps {
496
496
  items: React__default.ReactNode[];
497
497
  showArrows?: boolean;
498
+ autoplay?: boolean;
499
+ autoplayInterval?: number;
498
500
  }
499
501
  type Props = CarouselProps & EmblaOptionsType;
500
502
  declare const Carousel: (props: PropsWithChildren<Props>) => React__default.JSX.Element;
@@ -1358,8 +1360,6 @@ type TConfirmation = {
1358
1360
  weSentCode?: string;
1359
1361
  didntGetCode?: string;
1360
1362
  resendCode?: string;
1361
- codeLabel?: string;
1362
- codePlaceholder?: string;
1363
1363
  codeRequiredText?: string;
1364
1364
  codeTooShort?: string;
1365
1365
  confirm?: string;
package/dist/index.js CHANGED
@@ -1583,11 +1583,13 @@ var SplitButton = function(_param) /* @__PURE__ */ {
1583
1583
  "children"
1584
1584
  ]);
1585
1585
  return React11.createElement("div", {
1586
- className: cn("hawa-h-fit hawa-flex hawa-justify-center", direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row")
1586
+ dir: "ltr",
1587
+ className: cn("hawa-h-fit hawa-flex hawa-justify-center hawa-row")
1587
1588
  }, /* @__PURE__ */ React11.createElement(Button, {
1588
1589
  variant: variant,
1589
1590
  onClick: props.onClick,
1590
- className: cn(direction === "rtl" ? "hawa-rounded-r-none" : "hawa-rounded-l-none", props.className)
1591
+ className: cn(// direction === "rtl" ? "hawa-rounded-r-none" : "hawa-rounded-l-none",
1592
+ "hawa-rounded-r-none", props.className)
1591
1593
  }, children), /* @__PURE__ */ React11.createElement(DropdownMenu, {
1592
1594
  size: "sm",
1593
1595
  width: "sm",
@@ -1597,7 +1599,11 @@ var SplitButton = function(_param) /* @__PURE__ */ {
1597
1599
  asChild: true,
1598
1600
  variant: variant,
1599
1601
  size: "icon",
1600
- className: cn("hawa-h-10 hawa-w-fit hawa-px-1", direction === "rtl" ? "hawa-rounded-l-none hawa-border-rl0" : "hawa-border-r-0 hawa-rounded-r-none", props.className)
1602
+ className: cn("hawa-h-10 hawa-w-fit hawa-px-1", "hawa-rounded-l-none hawa-border-l-0", // : "hawa-border-r-0 hawa-rounded-r-none",
1603
+ // direction === "rtl"
1604
+ // ? "hawa-rounded-l-none hawa-border-rl0"
1605
+ // : "hawa-border-r-0 hawa-rounded-r-none",
1606
+ props.className)
1601
1607
  }, /* @__PURE__ */ React11.createElement("svg", {
1602
1608
  xmlns: "http://www.w3.org/2000/svg",
1603
1609
  width: "18",
@@ -4924,7 +4930,11 @@ var PhoneInput = function(props) {
4924
4930
  }
4925
4931
  }, []);
4926
4932
  var handleInputChange = function(e) {
4927
- setPhoneNumber(e.target.value);
4933
+ var validChars = /^[0-9-()]+$/;
4934
+ var input = e.target.value;
4935
+ if (input === "" || validChars.test(input)) {
4936
+ setPhoneNumber(input);
4937
+ }
4928
4938
  if (props.handleChange) {
4929
4939
  props.handleChange("".concat(countryCode === null || countryCode === void 0 ? void 0 : countryCode.label, "-").concat(e.target.value));
4930
4940
  } else {
@@ -4967,13 +4977,15 @@ var PhoneInput = function(props) {
4967
4977
  var import_react23 = __toESM(require("react"));
4968
4978
  var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
4969
4979
  var Carousel = function(props) {
4970
- var children = props.children, items = props.items, showArrows = props.showArrows, options = _object_without_properties(props, [
4980
+ var children = props.children, items = props.items, showArrows = props.showArrows, _props_autoplay = props.autoplay, autoplay = _props_autoplay === void 0 ? true : _props_autoplay, _props_autoplayInterval = props.autoplayInterval, autoplayInterval = _props_autoplayInterval === void 0 ? 3e3 : _props_autoplayInterval, options = _object_without_properties(props, [
4971
4981
  "children",
4972
4982
  "items",
4973
- "showArrows"
4983
+ "showArrows",
4984
+ "autoplay",
4985
+ "autoplayInterval"
4974
4986
  ]);
4975
4987
  var _ref = _sliced_to_array((0, import_embla_carousel_react.default)({
4976
- loop: options.loop || false
4988
+ loop: autoplay ? true : options.loop || false
4977
4989
  }), 2), emblaRef = _ref[0], emblaApi = _ref[1];
4978
4990
  var _ref1 = _sliced_to_array((0, import_react23.useState)(0), 2), selectedIndex = _ref1[0], setSelectedIndex = _ref1[1];
4979
4991
  (0, import_react23.useEffect)(function() {
@@ -4988,6 +5000,21 @@ var Carousel = function(props) {
4988
5000
  }, [
4989
5001
  emblaApi
4990
5002
  ]);
5003
+ (0, import_react23.useEffect)(function() {
5004
+ var autoplayTimer;
5005
+ if (autoplay && emblaApi) {
5006
+ autoplayTimer = setInterval(function() {
5007
+ emblaApi.scrollNext();
5008
+ }, autoplayInterval);
5009
+ }
5010
+ return function() {
5011
+ if (autoplayTimer) clearInterval(autoplayTimer);
5012
+ };
5013
+ }, [
5014
+ emblaApi,
5015
+ autoplay,
5016
+ autoplayInterval
5017
+ ]);
4991
5018
  var length = import_react23.default.Children.count(items);
4992
5019
  var canScrollNext = !!(emblaApi === null || emblaApi === void 0 ? void 0 : emblaApi.canScrollNext());
4993
5020
  var canScrollPrev = !!(emblaApi === null || emblaApi === void 0 ? void 0 : emblaApi.canScrollPrev());
@@ -5079,8 +5106,8 @@ var import_react24 = __toESM(require("react"));
5079
5106
  var AppStores = function(props) {
5080
5107
  return /* @__PURE__ */ import_react24.default.createElement("div", {
5081
5108
  className: "hawa-flex hawa-justify-center"
5082
- }, /* @__PURE__ */ import_react24.default.createElement("div", null, props.store === "apple" ? props.mode === "dark" ? /* @__PURE__ */ import_react24.default.createElement("div", {
5083
- className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white"
5109
+ }, /* @__PURE__ */ import_react24.default.createElement("div", null, props.store === "apple" ? /* @__PURE__ */ import_react24.default.createElement("div", {
5110
+ className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black dark:hawa-bg-white hawa-text-white dark:hawa-text-black"
5084
5111
  }, /* @__PURE__ */ import_react24.default.createElement("div", {
5085
5112
  className: "hawa-mr-3"
5086
5113
  }, /* @__PURE__ */ import_react24.default.createElement("svg", {
@@ -5094,44 +5121,7 @@ var AppStores = function(props) {
5094
5121
  }, "Download on the"), /* @__PURE__ */ import_react24.default.createElement("div", {
5095
5122
  className: "hawa-font-sans hawa--mt-1 hawa-text-2xl hawa-font-semibold"
5096
5123
  }, "App Store"))) : /* @__PURE__ */ import_react24.default.createElement("div", {
5097
- className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-transparent hawa-text-black"
5098
- }, /* @__PURE__ */ import_react24.default.createElement("div", {
5099
- className: "hawa-mr-3"
5100
- }, /* @__PURE__ */ import_react24.default.createElement("svg", {
5101
- viewBox: "0 0 384 512",
5102
- width: "30"
5103
- }, /* @__PURE__ */ import_react24.default.createElement("path", {
5104
- fill: "currentColor",
5105
- d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
5106
- }))), /* @__PURE__ */ import_react24.default.createElement("div", null, /* @__PURE__ */ import_react24.default.createElement("div", {
5107
- className: "hawa-text-xs"
5108
- }, "Download on the"), /* @__PURE__ */ import_react24.default.createElement("div", {
5109
- className: "hawa-font-sans hawa--mt-1 hawa-text-2xl hawa-font-semibold"
5110
- }, "App Store"))) : props.mode === "dark" ? /* @__PURE__ */ import_react24.default.createElement("div", {
5111
- className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white"
5112
- }, /* @__PURE__ */ import_react24.default.createElement("div", {
5113
- className: "hawa-mr-3"
5114
- }, /* @__PURE__ */ import_react24.default.createElement("svg", {
5115
- viewBox: "30 336.7 120.9 129.2",
5116
- width: "30"
5117
- }, /* @__PURE__ */ import_react24.default.createElement("path", {
5118
- fill: "#FFD400",
5119
- d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
5120
- }), /* @__PURE__ */ import_react24.default.createElement("path", {
5121
- fill: "#FF3333",
5122
- d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
5123
- }), /* @__PURE__ */ import_react24.default.createElement("path", {
5124
- fill: "#48FF48",
5125
- d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
5126
- }), /* @__PURE__ */ import_react24.default.createElement("path", {
5127
- fill: "#3BCCFF",
5128
- d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
5129
- }))), /* @__PURE__ */ import_react24.default.createElement("div", null, /* @__PURE__ */ import_react24.default.createElement("div", {
5130
- className: "hawa-text-xs"
5131
- }, "GET IT ON"), /* @__PURE__ */ import_react24.default.createElement("div", {
5132
- className: "hawa-font-sans hawa--mt-1 hawa-text-xl hawa-font-semibold"
5133
- }, "Google Play"))) : /* @__PURE__ */ import_react24.default.createElement("div", {
5134
- className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-white hawa-text-black"
5124
+ className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black dark:hawa-bg-white hawa-bg-black dark:hawa-text-black hawa-text-white"
5135
5125
  }, /* @__PURE__ */ import_react24.default.createElement("div", {
5136
5126
  className: "hawa-mr-3"
5137
5127
  }, /* @__PURE__ */ import_react24.default.createElement("svg", {
@@ -8566,7 +8556,7 @@ var CodeConfirmation = function(props) {
8566
8556
  var _ref = (0, import_react_hook_form5.useForm)({
8567
8557
  resolver: (0, import_zod5.zodResolver)(formSchema)
8568
8558
  }), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState, setValue = _ref.setValue;
8569
- var _props_texts_checkYourPhone, _props_texts_weSentCode, _props_texts_didntGetCode, _props_texts_resendCode, _props_texts_cancel, _props_texts_confirm;
8559
+ var _props_texts_didntGetCode;
8570
8560
  return /* @__PURE__ */ import_react50.default.createElement(Card, null, /* @__PURE__ */ import_react50.default.createElement(CardContent, {
8571
8561
  headless: true
8572
8562
  }, props.showError && /* @__PURE__ */ import_react50.default.createElement(Alert, {
@@ -8577,9 +8567,9 @@ var CodeConfirmation = function(props) {
8577
8567
  className: "hawa-mb-4 dark:hawa-text-white"
8578
8568
  }, /* @__PURE__ */ import_react50.default.createElement("div", {
8579
8569
  className: "hawa-text-lg hawa-font-bold"
8580
- }, (_props_texts_checkYourPhone = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) !== null && _props_texts_checkYourPhone !== void 0 ? _props_texts_checkYourPhone : "Please check your phone"), /* @__PURE__ */ import_react50.default.createElement("div", {
8570
+ }, ((_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) || "Please check your phone"), /* @__PURE__ */ import_react50.default.createElement("div", {
8581
8571
  className: "hawa-text-muted-foreground"
8582
- }, /* @__PURE__ */ import_react50.default.createElement("span", null, (_props_texts_weSentCode = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.weSentCode) !== null && _props_texts_weSentCode !== void 0 ? _props_texts_weSentCode : "We've sent a code to "), /* @__PURE__ */ import_react50.default.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ import_react50.default.createElement("form", {
8572
+ }, /* @__PURE__ */ import_react50.default.createElement("span", null, ((_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.weSentCode) || "We've sent a code to "), /* @__PURE__ */ import_react50.default.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ import_react50.default.createElement("form", {
8583
8573
  noValidate: true,
8584
8574
  onSubmit: handleSubmit(function(e) {
8585
8575
  if (props.handleConfirm) {
@@ -8607,11 +8597,11 @@ var CodeConfirmation = function(props) {
8607
8597
  className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground"
8608
8598
  }, /* @__PURE__ */ import_react50.default.createElement("span", null, (_props_texts_didntGetCode = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.didntGetCode) !== null && _props_texts_didntGetCode !== void 0 ? _props_texts_didntGetCode : "Didn't get the code?"), " ", /* @__PURE__ */ import_react50.default.createElement("span", {
8609
8599
  className: "clickable-link"
8610
- }, (_props_texts_resendCode = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resendCode) !== null && _props_texts_resendCode !== void 0 ? _props_texts_resendCode : "Click to resend")), /* @__PURE__ */ import_react50.default.createElement("div", {
8600
+ }, ((_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resendCode) || "Click to resend")), /* @__PURE__ */ import_react50.default.createElement("div", {
8611
8601
  className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2"
8612
8602
  }, /* @__PURE__ */ import_react50.default.createElement(Button, {
8613
8603
  variant: "secondary"
8614
- }, (_props_texts_cancel = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.cancel) !== null && _props_texts_cancel !== void 0 ? _props_texts_cancel : "Cancel"), /* @__PURE__ */ import_react50.default.createElement(Button, null, (_props_texts_confirm = (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.confirm) !== null && _props_texts_confirm !== void 0 ? _props_texts_confirm : "Confirm")))));
8604
+ }, ((_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.cancel) || "Cancel"), /* @__PURE__ */ import_react50.default.createElement(Button, null, ((_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.confirm) || "Confirm")))));
8615
8605
  };
8616
8606
  // components/blocks/feedback/UserReferralSource.tsx
8617
8607
  var import_react51 = __toESM(require("react"));
package/dist/index.mjs CHANGED
@@ -890,10 +890,8 @@ var SplitButton = ({
890
890
  }) => /* @__PURE__ */ React11.createElement(
891
891
  "div",
892
892
  {
893
- className: cn(
894
- "hawa-h-fit hawa-flex hawa-justify-center",
895
- direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row"
896
- )
893
+ dir: "ltr",
894
+ className: cn("hawa-h-fit hawa-flex hawa-justify-center hawa-row")
897
895
  },
898
896
  /* @__PURE__ */ React11.createElement(
899
897
  Button,
@@ -901,7 +899,8 @@ var SplitButton = ({
901
899
  variant,
902
900
  onClick: props.onClick,
903
901
  className: cn(
904
- direction === "rtl" ? "hawa-rounded-r-none" : "hawa-rounded-l-none",
902
+ // direction === "rtl" ? "hawa-rounded-r-none" : "hawa-rounded-l-none",
903
+ "hawa-rounded-r-none",
905
904
  props.className
906
905
  )
907
906
  },
@@ -922,7 +921,11 @@ var SplitButton = ({
922
921
  size: "icon",
923
922
  className: cn(
924
923
  "hawa-h-10 hawa-w-fit hawa-px-1",
925
- direction === "rtl" ? "hawa-rounded-l-none hawa-border-rl0" : "hawa-border-r-0 hawa-rounded-r-none",
924
+ "hawa-rounded-l-none hawa-border-l-0",
925
+ // : "hawa-border-r-0 hawa-rounded-r-none",
926
+ // direction === "rtl"
927
+ // ? "hawa-rounded-l-none hawa-border-rl0"
928
+ // : "hawa-border-r-0 hawa-rounded-r-none",
926
929
  props.className
927
930
  )
928
931
  },
@@ -4553,7 +4556,11 @@ var PhoneInput = (props) => {
4553
4556
  }
4554
4557
  }, []);
4555
4558
  const handleInputChange = (e) => {
4556
- setPhoneNumber(e.target.value);
4559
+ const validChars = /^[0-9-()]+$/;
4560
+ const input = e.target.value;
4561
+ if (input === "" || validChars.test(input)) {
4562
+ setPhoneNumber(input);
4563
+ }
4557
4564
  if (props.handleChange) {
4558
4565
  props.handleChange(`${countryCode?.label}-${e.target.value}`);
4559
4566
  } else {
@@ -4605,9 +4612,16 @@ var PhoneInput = (props) => {
4605
4612
  import React35, { useEffect as useEffect13, useState as useState16 } from "react";
4606
4613
  import useEmblaCarousel from "embla-carousel-react";
4607
4614
  var Carousel = (props) => {
4608
- const { children, items, showArrows, ...options } = props;
4615
+ const {
4616
+ children,
4617
+ items,
4618
+ showArrows,
4619
+ autoplay = true,
4620
+ autoplayInterval = 3e3,
4621
+ ...options
4622
+ } = props;
4609
4623
  const [emblaRef, emblaApi] = useEmblaCarousel({
4610
- loop: options.loop || false
4624
+ loop: autoplay ? true : options.loop || false
4611
4625
  });
4612
4626
  const [selectedIndex, setSelectedIndex] = useState16(0);
4613
4627
  useEffect13(() => {
@@ -4620,6 +4634,18 @@ var Carousel = (props) => {
4620
4634
  emblaApi?.off("select", selectHandler);
4621
4635
  };
4622
4636
  }, [emblaApi]);
4637
+ useEffect13(() => {
4638
+ let autoplayTimer;
4639
+ if (autoplay && emblaApi) {
4640
+ autoplayTimer = setInterval(() => {
4641
+ emblaApi.scrollNext();
4642
+ }, autoplayInterval);
4643
+ }
4644
+ return () => {
4645
+ if (autoplayTimer)
4646
+ clearInterval(autoplayTimer);
4647
+ };
4648
+ }, [emblaApi, autoplay, autoplayInterval]);
4623
4649
  const length = React35.Children.count(items);
4624
4650
  const canScrollNext = !!emblaApi?.canScrollNext();
4625
4651
  const canScrollPrev = !!emblaApi?.canScrollPrev();
@@ -4716,43 +4742,13 @@ var CarouselControls = (props) => {
4716
4742
  // components/elements/AppStores.tsx
4717
4743
  import React36 from "react";
4718
4744
  var AppStores = (props) => {
4719
- return /* @__PURE__ */ React36.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ React36.createElement("div", null, props.store === "apple" ? props.mode === "dark" ? /* @__PURE__ */ React36.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white" }, /* @__PURE__ */ React36.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React36.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React36.createElement(
4720
- "path",
4721
- {
4722
- fill: "currentColor",
4723
- d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
4724
- }
4725
- ))), /* @__PURE__ */ React36.createElement("div", null, /* @__PURE__ */ React36.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ React36.createElement("div", { className: "hawa-font-sans hawa--mt-1 hawa-text-2xl hawa-font-semibold" }, "App Store"))) : /* @__PURE__ */ React36.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-transparent hawa-text-black" }, /* @__PURE__ */ React36.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React36.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React36.createElement(
4745
+ return /* @__PURE__ */ React36.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ React36.createElement("div", null, props.store === "apple" ? /* @__PURE__ */ React36.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black dark:hawa-bg-white hawa-text-white dark:hawa-text-black" }, /* @__PURE__ */ React36.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React36.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React36.createElement(
4726
4746
  "path",
4727
4747
  {
4728
4748
  fill: "currentColor",
4729
4749
  d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
4730
4750
  }
4731
- ))), /* @__PURE__ */ React36.createElement("div", null, /* @__PURE__ */ React36.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ React36.createElement("div", { className: "hawa-font-sans hawa--mt-1 hawa-text-2xl hawa-font-semibold" }, "App Store"))) : props.mode === "dark" ? /* @__PURE__ */ React36.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white" }, /* @__PURE__ */ React36.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React36.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React36.createElement(
4732
- "path",
4733
- {
4734
- fill: "#FFD400",
4735
- d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
4736
- }
4737
- ), /* @__PURE__ */ React36.createElement(
4738
- "path",
4739
- {
4740
- fill: "#FF3333",
4741
- d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
4742
- }
4743
- ), /* @__PURE__ */ React36.createElement(
4744
- "path",
4745
- {
4746
- fill: "#48FF48",
4747
- d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
4748
- }
4749
- ), /* @__PURE__ */ React36.createElement(
4750
- "path",
4751
- {
4752
- fill: "#3BCCFF",
4753
- d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
4754
- }
4755
- ))), /* @__PURE__ */ React36.createElement("div", null, /* @__PURE__ */ React36.createElement("div", { className: "hawa-text-xs" }, "GET IT ON"), /* @__PURE__ */ React36.createElement("div", { className: "hawa-font-sans hawa--mt-1 hawa-text-xl hawa-font-semibold" }, "Google Play"))) : /* @__PURE__ */ React36.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-white hawa-text-black" }, /* @__PURE__ */ React36.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React36.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React36.createElement(
4751
+ ))), /* @__PURE__ */ React36.createElement("div", null, /* @__PURE__ */ React36.createElement("div", { className: "hawa-text-xs" }, "Download on the"), /* @__PURE__ */ React36.createElement("div", { className: "hawa-font-sans hawa--mt-1 hawa-text-2xl hawa-font-semibold" }, "App Store"))) : /* @__PURE__ */ React36.createElement("div", { className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black dark:hawa-bg-white hawa-bg-black dark:hawa-text-black hawa-text-white" }, /* @__PURE__ */ React36.createElement("div", { className: "hawa-mr-3" }, /* @__PURE__ */ React36.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React36.createElement(
4756
4752
  "path",
4757
4753
  {
4758
4754
  fill: "#FFD400",
@@ -8643,7 +8639,7 @@ var CodeConfirmation = (props) => {
8643
8639
  text: props.errorText,
8644
8640
  severity: "error"
8645
8641
  }
8646
- ), /* @__PURE__ */ React75.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ React75.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, props.texts?.checkYourPhone ?? "Please check your phone"), /* @__PURE__ */ React75.createElement("div", { className: "hawa-text-muted-foreground" }, /* @__PURE__ */ React75.createElement("span", null, props.texts?.weSentCode ?? "We've sent a code to "), /* @__PURE__ */ React75.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ React75.createElement(
8642
+ ), /* @__PURE__ */ React75.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ React75.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, props.texts?.checkYourPhone || "Please check your phone"), /* @__PURE__ */ React75.createElement("div", { className: "hawa-text-muted-foreground" }, /* @__PURE__ */ React75.createElement("span", null, props.texts?.weSentCode || "We've sent a code to "), /* @__PURE__ */ React75.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ React75.createElement(
8647
8643
  "form",
8648
8644
  {
8649
8645
  noValidate: true,
@@ -8673,8 +8669,8 @@ var CodeConfirmation = (props) => {
8673
8669
  )
8674
8670
  }
8675
8671
  ),
8676
- /* @__PURE__ */ React75.createElement("div", { className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground" }, /* @__PURE__ */ React75.createElement("span", null, props.texts?.didntGetCode ?? "Didn't get the code?"), " ", /* @__PURE__ */ React75.createElement("span", { className: "clickable-link" }, props.texts?.resendCode ?? "Click to resend")),
8677
- /* @__PURE__ */ React75.createElement("div", { className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2" }, /* @__PURE__ */ React75.createElement(Button, { variant: "secondary" }, props.texts?.cancel ?? "Cancel"), /* @__PURE__ */ React75.createElement(Button, null, props.texts?.confirm ?? "Confirm"))
8672
+ /* @__PURE__ */ React75.createElement("div", { className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground" }, /* @__PURE__ */ React75.createElement("span", null, props.texts?.didntGetCode ?? "Didn't get the code?"), " ", /* @__PURE__ */ React75.createElement("span", { className: "clickable-link" }, props.texts?.resendCode || "Click to resend")),
8673
+ /* @__PURE__ */ React75.createElement("div", { className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2" }, /* @__PURE__ */ React75.createElement(Button, { variant: "secondary" }, props.texts?.cancel || "Cancel"), /* @__PURE__ */ React75.createElement(Button, null, props.texts?.confirm || "Confirm"))
8678
8674
  )));
8679
8675
  };
8680
8676
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.14.9-next",
3
+ "version": "0.14.11-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {