@sikka/hawa 0.14.8-next → 0.14.10-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 +8 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +62 -67
- package/dist/index.mjs +62 -61
- package/package.json +1 -1
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;
|
|
@@ -764,6 +766,7 @@ type SelectOptionProps = {
|
|
|
764
766
|
};
|
|
765
767
|
type SelectTypes = {
|
|
766
768
|
label?: string;
|
|
769
|
+
hideHelperText?: boolean;
|
|
767
770
|
options?: SelectOptionProps[];
|
|
768
771
|
labelKey?: string;
|
|
769
772
|
isCreatable?: boolean;
|
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;
|
|
@@ -764,6 +766,7 @@ type SelectOptionProps = {
|
|
|
764
766
|
};
|
|
765
767
|
type SelectTypes = {
|
|
766
768
|
label?: string;
|
|
769
|
+
hideHelperText?: boolean;
|
|
767
770
|
options?: SelectOptionProps[];
|
|
768
771
|
labelKey?: string;
|
|
769
772
|
isCreatable?: boolean;
|
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
|
-
|
|
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",
|
|
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",
|
|
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",
|
|
@@ -1937,7 +1943,7 @@ var CheckboxElement = React16.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
1937
1943
|
]);
|
|
1938
1944
|
return React16.createElement(CheckboxPrimitive.Root, _object_spread({
|
|
1939
1945
|
ref: ref,
|
|
1940
|
-
className: cn("hawa-peer hawa-
|
|
1946
|
+
className: cn("hawa-peer hawa-icon hawa-shrink-0 hawa-rounded-sm hawa-border hawa-border-primary hawa-ring-offset-background focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50 data-[state=checked]:hawa-bg-primary data-[state=checked]:hawa-text-primary-foreground", className)
|
|
1941
1947
|
}, props), /* @__PURE__ */ React16.createElement(CheckboxPrimitive.Indicator, {
|
|
1942
1948
|
className: cn("hawa-flex hawa-items-center hawa-justify-center hawa-text-current")
|
|
1943
1949
|
}, /* @__PURE__ */ React16.createElement("svg", {
|
|
@@ -2024,7 +2030,7 @@ var ToastClose = React17.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
2024
2030
|
}, props), /* @__PURE__ */ React17.createElement("svg", {
|
|
2025
2031
|
"aria-label": "Close Icon",
|
|
2026
2032
|
"aria-hidden": "true",
|
|
2027
|
-
className: "hawa-
|
|
2033
|
+
className: "hawa-icon",
|
|
2028
2034
|
fill: "currentColor",
|
|
2029
2035
|
viewBox: "0 0 20 20"
|
|
2030
2036
|
}, /* @__PURE__ */ React17.createElement("path", {
|
|
@@ -4908,7 +4914,7 @@ var Select = function(_param) {
|
|
|
4908
4914
|
onInputChange: function(newValue, action) {
|
|
4909
4915
|
return props.onInputChange(newValue, action);
|
|
4910
4916
|
}
|
|
4911
|
-
}), /* @__PURE__ */ import_react21.default.createElement("p", {
|
|
4917
|
+
}), !props.hideHelperText && /* @__PURE__ */ import_react21.default.createElement("p", {
|
|
4912
4918
|
className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all hawa-text-start", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
|
|
4913
4919
|
}, props.helperText));
|
|
4914
4920
|
};
|
|
@@ -4924,7 +4930,11 @@ var PhoneInput = function(props) {
|
|
|
4924
4930
|
}
|
|
4925
4931
|
}, []);
|
|
4926
4932
|
var handleInputChange = function(e) {
|
|
4927
|
-
|
|
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 {
|
|
@@ -4932,12 +4942,13 @@ var PhoneInput = function(props) {
|
|
|
4932
4942
|
}
|
|
4933
4943
|
};
|
|
4934
4944
|
return /* @__PURE__ */ import_react22.default.createElement("div", {
|
|
4935
|
-
className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2"
|
|
4945
|
+
className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2 hawa-h-fit"
|
|
4936
4946
|
}, props.label && /* @__PURE__ */ import_react22.default.createElement(Label2, null, props.label), /* @__PURE__ */ import_react22.default.createElement("div", {
|
|
4937
4947
|
dir: "ltr",
|
|
4938
4948
|
className: "hawa-flex hawa-flex-row hawa-w-full"
|
|
4939
4949
|
}, /* @__PURE__ */ import_react22.default.createElement(Select, {
|
|
4940
4950
|
width: "fit",
|
|
4951
|
+
hideHelperText: true,
|
|
4941
4952
|
phoneCode: true,
|
|
4942
4953
|
hideIndicator: true,
|
|
4943
4954
|
placeholder: "Code",
|
|
@@ -4949,7 +4960,7 @@ var PhoneInput = function(props) {
|
|
|
4949
4960
|
value: countryCode === null || countryCode === void 0 ? void 0 : countryCode.label,
|
|
4950
4961
|
onChange: setCountryCode
|
|
4951
4962
|
}), /* @__PURE__ */ import_react22.default.createElement("div", {
|
|
4952
|
-
className: "hawa-flex hawa-
|
|
4963
|
+
className: "hawa-flex hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-w-full hawa-gap-0"
|
|
4953
4964
|
}, /* @__PURE__ */ import_react22.default.createElement("input", {
|
|
4954
4965
|
ref: inputRef,
|
|
4955
4966
|
id: "phone-number",
|
|
@@ -4966,13 +4977,15 @@ var PhoneInput = function(props) {
|
|
|
4966
4977
|
var import_react23 = __toESM(require("react"));
|
|
4967
4978
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
|
4968
4979
|
var Carousel = function(props) {
|
|
4969
|
-
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, [
|
|
4970
4981
|
"children",
|
|
4971
4982
|
"items",
|
|
4972
|
-
"showArrows"
|
|
4983
|
+
"showArrows",
|
|
4984
|
+
"autoplay",
|
|
4985
|
+
"autoplayInterval"
|
|
4973
4986
|
]);
|
|
4974
4987
|
var _ref = _sliced_to_array((0, import_embla_carousel_react.default)({
|
|
4975
|
-
loop: options.loop || false
|
|
4988
|
+
loop: autoplay ? true : options.loop || false
|
|
4976
4989
|
}), 2), emblaRef = _ref[0], emblaApi = _ref[1];
|
|
4977
4990
|
var _ref1 = _sliced_to_array((0, import_react23.useState)(0), 2), selectedIndex = _ref1[0], setSelectedIndex = _ref1[1];
|
|
4978
4991
|
(0, import_react23.useEffect)(function() {
|
|
@@ -4987,6 +5000,21 @@ var Carousel = function(props) {
|
|
|
4987
5000
|
}, [
|
|
4988
5001
|
emblaApi
|
|
4989
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
|
+
]);
|
|
4990
5018
|
var length = import_react23.default.Children.count(items);
|
|
4991
5019
|
var canScrollNext = !!(emblaApi === null || emblaApi === void 0 ? void 0 : emblaApi.canScrollNext());
|
|
4992
5020
|
var canScrollPrev = !!(emblaApi === null || emblaApi === void 0 ? void 0 : emblaApi.canScrollPrev());
|
|
@@ -5078,8 +5106,8 @@ var import_react24 = __toESM(require("react"));
|
|
|
5078
5106
|
var AppStores = function(props) {
|
|
5079
5107
|
return /* @__PURE__ */ import_react24.default.createElement("div", {
|
|
5080
5108
|
className: "hawa-flex hawa-justify-center"
|
|
5081
|
-
}, /* @__PURE__ */ import_react24.default.createElement("div", null, props.store === "apple" ?
|
|
5082
|
-
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"
|
|
5083
5111
|
}, /* @__PURE__ */ import_react24.default.createElement("div", {
|
|
5084
5112
|
className: "hawa-mr-3"
|
|
5085
5113
|
}, /* @__PURE__ */ import_react24.default.createElement("svg", {
|
|
@@ -5093,44 +5121,7 @@ var AppStores = function(props) {
|
|
|
5093
5121
|
}, "Download on the"), /* @__PURE__ */ import_react24.default.createElement("div", {
|
|
5094
5122
|
className: "hawa-font-sans hawa--mt-1 hawa-text-2xl hawa-font-semibold"
|
|
5095
5123
|
}, "App Store"))) : /* @__PURE__ */ import_react24.default.createElement("div", {
|
|
5096
|
-
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-
|
|
5097
|
-
}, /* @__PURE__ */ import_react24.default.createElement("div", {
|
|
5098
|
-
className: "hawa-mr-3"
|
|
5099
|
-
}, /* @__PURE__ */ import_react24.default.createElement("svg", {
|
|
5100
|
-
viewBox: "0 0 384 512",
|
|
5101
|
-
width: "30"
|
|
5102
|
-
}, /* @__PURE__ */ import_react24.default.createElement("path", {
|
|
5103
|
-
fill: "currentColor",
|
|
5104
|
-
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"
|
|
5105
|
-
}))), /* @__PURE__ */ import_react24.default.createElement("div", null, /* @__PURE__ */ import_react24.default.createElement("div", {
|
|
5106
|
-
className: "hawa-text-xs"
|
|
5107
|
-
}, "Download on the"), /* @__PURE__ */ import_react24.default.createElement("div", {
|
|
5108
|
-
className: "hawa-font-sans hawa--mt-1 hawa-text-2xl hawa-font-semibold"
|
|
5109
|
-
}, "App Store"))) : props.mode === "dark" ? /* @__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 hawa-text-white"
|
|
5111
|
-
}, /* @__PURE__ */ import_react24.default.createElement("div", {
|
|
5112
|
-
className: "hawa-mr-3"
|
|
5113
|
-
}, /* @__PURE__ */ import_react24.default.createElement("svg", {
|
|
5114
|
-
viewBox: "30 336.7 120.9 129.2",
|
|
5115
|
-
width: "30"
|
|
5116
|
-
}, /* @__PURE__ */ import_react24.default.createElement("path", {
|
|
5117
|
-
fill: "#FFD400",
|
|
5118
|
-
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"
|
|
5119
|
-
}), /* @__PURE__ */ import_react24.default.createElement("path", {
|
|
5120
|
-
fill: "#FF3333",
|
|
5121
|
-
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"
|
|
5122
|
-
}), /* @__PURE__ */ import_react24.default.createElement("path", {
|
|
5123
|
-
fill: "#48FF48",
|
|
5124
|
-
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"
|
|
5125
|
-
}), /* @__PURE__ */ import_react24.default.createElement("path", {
|
|
5126
|
-
fill: "#3BCCFF",
|
|
5127
|
-
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"
|
|
5128
|
-
}))), /* @__PURE__ */ import_react24.default.createElement("div", null, /* @__PURE__ */ import_react24.default.createElement("div", {
|
|
5129
|
-
className: "hawa-text-xs"
|
|
5130
|
-
}, "GET IT ON"), /* @__PURE__ */ import_react24.default.createElement("div", {
|
|
5131
|
-
className: "hawa-font-sans hawa--mt-1 hawa-text-xl hawa-font-semibold"
|
|
5132
|
-
}, "Google Play"))) : /* @__PURE__ */ import_react24.default.createElement("div", {
|
|
5133
|
-
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"
|
|
5134
5125
|
}, /* @__PURE__ */ import_react24.default.createElement("div", {
|
|
5135
5126
|
className: "hawa-mr-3"
|
|
5136
5127
|
}, /* @__PURE__ */ import_react24.default.createElement("svg", {
|
|
@@ -5170,7 +5161,7 @@ var SortButton = function(props) {
|
|
|
5170
5161
|
strokeWidth: "2",
|
|
5171
5162
|
strokeLinecap: "round",
|
|
5172
5163
|
strokeLinejoin: "round",
|
|
5173
|
-
className: props.condensed ? "hawa-h-3 hawa-w-3" : "hawa-
|
|
5164
|
+
className: props.condensed ? "hawa-h-3 hawa-w-3" : "hawa-icon"
|
|
5174
5165
|
}, /* @__PURE__ */ import_react25.default.createElement("path", {
|
|
5175
5166
|
d: "m21 16-4 4-4-4"
|
|
5176
5167
|
}), /* @__PURE__ */ import_react25.default.createElement("path", {
|
|
@@ -5675,7 +5666,7 @@ var AccordionTrigger = React42.forwardRef(function(_param, ref) /* @__PURE__ */
|
|
|
5675
5666
|
strokeWidth: "2",
|
|
5676
5667
|
strokeLinecap: "round",
|
|
5677
5668
|
strokeLinejoin: "round",
|
|
5678
|
-
className: "hawa-
|
|
5669
|
+
className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
|
|
5679
5670
|
}, /* @__PURE__ */ React42.createElement("path", {
|
|
5680
5671
|
d: "m6 9 6 6 6-6"
|
|
5681
5672
|
}))));
|
|
@@ -6257,6 +6248,7 @@ var CommandInput = React51.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
6257
6248
|
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
|
6258
6249
|
"cmdk-input-wrapper": ""
|
|
6259
6250
|
}, /* @__PURE__ */ React51.createElement("svg", {
|
|
6251
|
+
"aria-label": "Search Icon",
|
|
6260
6252
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6261
6253
|
width: "24",
|
|
6262
6254
|
height: "24",
|
|
@@ -6266,7 +6258,7 @@ var CommandInput = React51.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
6266
6258
|
strokeWidth: "2",
|
|
6267
6259
|
strokeLinecap: "round",
|
|
6268
6260
|
strokeLinejoin: "round",
|
|
6269
|
-
className: "hawa-mr-2 hawa-
|
|
6261
|
+
className: "hawa-mr-2 hawa-icon hawa-shrink-0 hawa-opacity-50"
|
|
6270
6262
|
}, /* @__PURE__ */ React51.createElement("circle", {
|
|
6271
6263
|
cx: "11",
|
|
6272
6264
|
cy: "11",
|
|
@@ -6375,7 +6367,8 @@ var Combobox = function(_param) {
|
|
|
6375
6367
|
return item[valueKey] === value;
|
|
6376
6368
|
}) || {}, labelKey) : props.placeholder || "...", /* @__PURE__ */ React52.createElement("svg", {
|
|
6377
6369
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6378
|
-
className: cn("hawa-
|
|
6370
|
+
className: cn("hawa-icon hawa-transition-all", !props.preview ? "hawa-opacity-100 hawa-visible" : "hawa-opacity-0 hawa-invisible"),
|
|
6371
|
+
"aria-label": "Chevron down icon",
|
|
6379
6372
|
viewBox: "0 0 24 24",
|
|
6380
6373
|
fill: "none",
|
|
6381
6374
|
stroke: "currentColor",
|
|
@@ -6404,6 +6397,7 @@ var Combobox = function(_param) {
|
|
|
6404
6397
|
setOpen(false);
|
|
6405
6398
|
}
|
|
6406
6399
|
}, /* @__PURE__ */ React52.createElement("svg", {
|
|
6400
|
+
"aria-label": "Check Icon",
|
|
6407
6401
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6408
6402
|
width: "24",
|
|
6409
6403
|
height: "24",
|
|
@@ -6413,7 +6407,7 @@ var Combobox = function(_param) {
|
|
|
6413
6407
|
strokeWidth: "2",
|
|
6414
6408
|
strokeLinecap: "round",
|
|
6415
6409
|
strokeLinejoin: "round",
|
|
6416
|
-
className: cn("hawa-mr-2 hawa-
|
|
6410
|
+
className: cn("hawa-mr-2 hawa-icon", value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0")
|
|
6417
6411
|
}, /* @__PURE__ */ React52.createElement("polyline", {
|
|
6418
6412
|
points: "20 6 9 17 4 12"
|
|
6419
6413
|
})), getProperty(item, labelKey));
|
|
@@ -6724,6 +6718,7 @@ var NavigationMenuTrigger = React57.forwardRef(function(_param, ref) /* @__PURE_
|
|
|
6724
6718
|
ref: ref,
|
|
6725
6719
|
className: cn(navigationMenuTriggerStyle(), "hawa-group", className)
|
|
6726
6720
|
}, props), children, " ", /* @__PURE__ */ React57.createElement("svg", {
|
|
6721
|
+
"aria-label": "Chevron Icon",
|
|
6727
6722
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6728
6723
|
width: "24",
|
|
6729
6724
|
height: "24",
|
|
@@ -6734,7 +6729,7 @@ var NavigationMenuTrigger = React57.forwardRef(function(_param, ref) /* @__PURE_
|
|
|
6734
6729
|
"stroke-linecap": "round",
|
|
6735
6730
|
"stroke-linejoin": "round",
|
|
6736
6731
|
"aria-hidden": "true",
|
|
6737
|
-
className: "hawa-relative hawa-top-[1px] hawa-
|
|
6732
|
+
className: "hawa-relative hawa-top-[1px] hawa-icon hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
6738
6733
|
}, /* @__PURE__ */ React57.createElement("path", {
|
|
6739
6734
|
d: "m6 9 6 6 6-6"
|
|
6740
6735
|
})));
|
|
@@ -6867,7 +6862,7 @@ var AccordionTrigger2 = React59.forwardRef(function(_param, ref) /* @__PURE__ */
|
|
|
6867
6862
|
viewBox: "0 0 16 16",
|
|
6868
6863
|
height: "1em",
|
|
6869
6864
|
width: "1em",
|
|
6870
|
-
className: "hawa-
|
|
6865
|
+
className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
|
6871
6866
|
}, /* @__PURE__ */ React59.createElement("path", {
|
|
6872
6867
|
d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
|
|
6873
6868
|
}))));
|
|
@@ -7554,7 +7549,7 @@ var DocsLayout = function(_param) {
|
|
|
7554
7549
|
variant: "ghost",
|
|
7555
7550
|
size: "smallIcon"
|
|
7556
7551
|
}, /* @__PURE__ */ import_react41.default.createElement(Logos.github, {
|
|
7557
|
-
className: "hawa-
|
|
7552
|
+
className: "hawa-icon"
|
|
7558
7553
|
})))), /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7559
7554
|
className: cn("hawa-fixed hawa-bg-primary-foreground hawa-z-40 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all", isRTL ? "hawa-right-0 hawa-top-0 hawa-h-full" : "hawa-left-0 hawa-top-0 hawa-h-full", "hawa-fixed hawa-p-0 hawa-py-2 hawa-overflow-x-clip hawa-transition-all", "hawa-top-14", openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"),
|
|
7560
7555
|
style: {
|
|
@@ -7605,43 +7600,43 @@ var AuthButtons = function(props) {
|
|
|
7605
7600
|
variant: "outline",
|
|
7606
7601
|
onClick: props.handleGoogle
|
|
7607
7602
|
}, /* @__PURE__ */ import_react42.default.createElement(Logos.google, {
|
|
7608
|
-
className: "hawa-
|
|
7603
|
+
className: "hawa-icon"
|
|
7609
7604
|
}), (_props_texts_continueWithGoogle = (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.continueWithGoogle) !== null && _props_texts_continueWithGoogle !== void 0 ? _props_texts_continueWithGoogle : "Continue With Google"), props.viaGithub && /* @__PURE__ */ import_react42.default.createElement(Button, {
|
|
7610
7605
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7611
7606
|
variant: "outline",
|
|
7612
7607
|
onClick: props.handleGithub
|
|
7613
7608
|
}, /* @__PURE__ */ import_react42.default.createElement(Logos.github, {
|
|
7614
|
-
className: "hawa-
|
|
7609
|
+
className: "hawa-icon"
|
|
7615
7610
|
}), (_props_texts_continueWithGithub = (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.continueWithGithub) !== null && _props_texts_continueWithGithub !== void 0 ? _props_texts_continueWithGithub : "Continue With Github"), props.viaTwitter && /* @__PURE__ */ import_react42.default.createElement(Button, {
|
|
7616
7611
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7617
7612
|
variant: "outline",
|
|
7618
7613
|
onClick: props.handleTwitter
|
|
7619
7614
|
}, /* @__PURE__ */ import_react42.default.createElement(Logos.twitter, {
|
|
7620
|
-
className: "hawa-
|
|
7615
|
+
className: "hawa-icon"
|
|
7621
7616
|
}), (_props_texts_continueWithTwitter = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.continueWithTwitter) !== null && _props_texts_continueWithTwitter !== void 0 ? _props_texts_continueWithTwitter : "Continue With Twitter"), props.viaApple && /* @__PURE__ */ import_react42.default.createElement(Button, {
|
|
7622
7617
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7623
7618
|
variant: "outline",
|
|
7624
7619
|
onClick: props.handleApple
|
|
7625
7620
|
}, /* @__PURE__ */ import_react42.default.createElement(Logos.apple, {
|
|
7626
|
-
className: "hawa-
|
|
7621
|
+
className: "hawa-icon"
|
|
7627
7622
|
}), (_props_texts_continueWithApple = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.continueWithApple) !== null && _props_texts_continueWithApple !== void 0 ? _props_texts_continueWithApple : "Continue With Apple"), props.viaMicrosoft && /* @__PURE__ */ import_react42.default.createElement(Button, {
|
|
7628
7623
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7629
7624
|
variant: "outline",
|
|
7630
7625
|
onClick: props.handleMicrosoft
|
|
7631
7626
|
}, /* @__PURE__ */ import_react42.default.createElement(Logos.microsoft, {
|
|
7632
|
-
className: "hawa-
|
|
7627
|
+
className: "hawa-icon"
|
|
7633
7628
|
}), (_props_texts_continueWithMicrosoft = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.continueWithMicrosoft) !== null && _props_texts_continueWithMicrosoft !== void 0 ? _props_texts_continueWithMicrosoft : "Continue With Microsoft"), props.viaEmail && /* @__PURE__ */ import_react42.default.createElement(Button, {
|
|
7634
7629
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7635
7630
|
variant: "outline",
|
|
7636
7631
|
onClick: props.handleEmail
|
|
7637
7632
|
}, /* @__PURE__ */ import_react42.default.createElement(Logos.mail, {
|
|
7638
|
-
className: "hawa-
|
|
7633
|
+
className: "hawa-icon"
|
|
7639
7634
|
}), (_props_texts_continueWithEmail = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.continueWithEmail) !== null && _props_texts_continueWithEmail !== void 0 ? _props_texts_continueWithEmail : "Continue With Email"), props.viaPhone && /* @__PURE__ */ import_react42.default.createElement(Button, {
|
|
7640
7635
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7641
7636
|
variant: "outline",
|
|
7642
7637
|
onClick: props.handlePhone
|
|
7643
7638
|
}, /* @__PURE__ */ import_react42.default.createElement(Logos.phone, {
|
|
7644
|
-
className: "hawa-
|
|
7639
|
+
className: "hawa-icon"
|
|
7645
7640
|
}), (_props_texts_continueWithPhone = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.continueWithPhone) !== null && _props_texts_continueWithPhone !== void 0 ? _props_texts_continueWithPhone : "Continue With Phone"));
|
|
7646
7641
|
};
|
|
7647
7642
|
// components/icons/index.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -890,10 +890,8 @@ var SplitButton = ({
|
|
|
890
890
|
}) => /* @__PURE__ */ React11.createElement(
|
|
891
891
|
"div",
|
|
892
892
|
{
|
|
893
|
-
|
|
894
|
-
|
|
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
|
-
|
|
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
|
},
|
|
@@ -1333,7 +1336,7 @@ var CheckboxElement = React16.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1333
1336
|
{
|
|
1334
1337
|
ref,
|
|
1335
1338
|
className: cn(
|
|
1336
|
-
"hawa-peer hawa-
|
|
1339
|
+
"hawa-peer hawa-icon hawa-shrink-0 hawa-rounded-sm hawa-border hawa-border-primary hawa-ring-offset-background focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50 data-[state=checked]:hawa-bg-primary data-[state=checked]:hawa-text-primary-foreground",
|
|
1337
1340
|
className
|
|
1338
1341
|
),
|
|
1339
1342
|
...props
|
|
@@ -1451,7 +1454,7 @@ var ToastClose = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1451
1454
|
{
|
|
1452
1455
|
"aria-label": "Close Icon",
|
|
1453
1456
|
"aria-hidden": "true",
|
|
1454
|
-
className: "hawa-
|
|
1457
|
+
className: "hawa-icon",
|
|
1455
1458
|
fill: "currentColor",
|
|
1456
1459
|
viewBox: "0 0 20 20"
|
|
1457
1460
|
},
|
|
@@ -4529,7 +4532,7 @@ var Select = ({ labelKey = "label", ...props }) => {
|
|
|
4529
4532
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
|
4530
4533
|
}
|
|
4531
4534
|
),
|
|
4532
|
-
/* @__PURE__ */ React33.createElement(
|
|
4535
|
+
!props.hideHelperText && /* @__PURE__ */ React33.createElement(
|
|
4533
4536
|
"p",
|
|
4534
4537
|
{
|
|
4535
4538
|
className: cn(
|
|
@@ -4553,17 +4556,22 @@ var PhoneInput = (props) => {
|
|
|
4553
4556
|
}
|
|
4554
4557
|
}, []);
|
|
4555
4558
|
const handleInputChange = (e) => {
|
|
4556
|
-
|
|
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 {
|
|
4560
4567
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
|
4561
4568
|
}
|
|
4562
4569
|
};
|
|
4563
|
-
return /* @__PURE__ */ React34.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, props.label && /* @__PURE__ */ React34.createElement(Label2, null, props.label), /* @__PURE__ */ React34.createElement("div", { dir: "ltr", className: "hawa-flex hawa-flex-row hawa-w-full" }, /* @__PURE__ */ React34.createElement(
|
|
4570
|
+
return /* @__PURE__ */ React34.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2 hawa-h-fit" }, props.label && /* @__PURE__ */ React34.createElement(Label2, null, props.label), /* @__PURE__ */ React34.createElement("div", { dir: "ltr", className: "hawa-flex hawa-flex-row hawa-w-full" }, /* @__PURE__ */ React34.createElement(
|
|
4564
4571
|
Select,
|
|
4565
4572
|
{
|
|
4566
4573
|
width: "fit",
|
|
4574
|
+
hideHelperText: true,
|
|
4567
4575
|
phoneCode: true,
|
|
4568
4576
|
hideIndicator: true,
|
|
4569
4577
|
placeholder: "Code",
|
|
@@ -4575,7 +4583,7 @@ var PhoneInput = (props) => {
|
|
|
4575
4583
|
value: countryCode?.label,
|
|
4576
4584
|
onChange: setCountryCode
|
|
4577
4585
|
}
|
|
4578
|
-
), /* @__PURE__ */ React34.createElement("div", { className: "hawa-flex hawa-
|
|
4586
|
+
), /* @__PURE__ */ React34.createElement("div", { className: "hawa-flex hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-w-full hawa-gap-0" }, /* @__PURE__ */ React34.createElement(
|
|
4579
4587
|
"input",
|
|
4580
4588
|
{
|
|
4581
4589
|
ref: inputRef,
|
|
@@ -4604,9 +4612,16 @@ var PhoneInput = (props) => {
|
|
|
4604
4612
|
import React35, { useEffect as useEffect13, useState as useState16 } from "react";
|
|
4605
4613
|
import useEmblaCarousel from "embla-carousel-react";
|
|
4606
4614
|
var Carousel = (props) => {
|
|
4607
|
-
const {
|
|
4615
|
+
const {
|
|
4616
|
+
children,
|
|
4617
|
+
items,
|
|
4618
|
+
showArrows,
|
|
4619
|
+
autoplay = true,
|
|
4620
|
+
autoplayInterval = 3e3,
|
|
4621
|
+
...options
|
|
4622
|
+
} = props;
|
|
4608
4623
|
const [emblaRef, emblaApi] = useEmblaCarousel({
|
|
4609
|
-
loop: options.loop || false
|
|
4624
|
+
loop: autoplay ? true : options.loop || false
|
|
4610
4625
|
});
|
|
4611
4626
|
const [selectedIndex, setSelectedIndex] = useState16(0);
|
|
4612
4627
|
useEffect13(() => {
|
|
@@ -4619,6 +4634,18 @@ var Carousel = (props) => {
|
|
|
4619
4634
|
emblaApi?.off("select", selectHandler);
|
|
4620
4635
|
};
|
|
4621
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]);
|
|
4622
4649
|
const length = React35.Children.count(items);
|
|
4623
4650
|
const canScrollNext = !!emblaApi?.canScrollNext();
|
|
4624
4651
|
const canScrollPrev = !!emblaApi?.canScrollPrev();
|
|
@@ -4715,43 +4742,13 @@ var CarouselControls = (props) => {
|
|
|
4715
4742
|
// components/elements/AppStores.tsx
|
|
4716
4743
|
import React36 from "react";
|
|
4717
4744
|
var AppStores = (props) => {
|
|
4718
|
-
return /* @__PURE__ */ React36.createElement("div", { className: "hawa-flex hawa-justify-center" }, /* @__PURE__ */ React36.createElement("div", null, props.store === "apple" ?
|
|
4719
|
-
"path",
|
|
4720
|
-
{
|
|
4721
|
-
fill: "currentColor",
|
|
4722
|
-
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"
|
|
4723
|
-
}
|
|
4724
|
-
))), /* @__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(
|
|
4725
4746
|
"path",
|
|
4726
4747
|
{
|
|
4727
4748
|
fill: "currentColor",
|
|
4728
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"
|
|
4729
4750
|
}
|
|
4730
|
-
))), /* @__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"))) :
|
|
4731
|
-
"path",
|
|
4732
|
-
{
|
|
4733
|
-
fill: "#FFD400",
|
|
4734
|
-
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"
|
|
4735
|
-
}
|
|
4736
|
-
), /* @__PURE__ */ React36.createElement(
|
|
4737
|
-
"path",
|
|
4738
|
-
{
|
|
4739
|
-
fill: "#FF3333",
|
|
4740
|
-
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"
|
|
4741
|
-
}
|
|
4742
|
-
), /* @__PURE__ */ React36.createElement(
|
|
4743
|
-
"path",
|
|
4744
|
-
{
|
|
4745
|
-
fill: "#48FF48",
|
|
4746
|
-
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"
|
|
4747
|
-
}
|
|
4748
|
-
), /* @__PURE__ */ React36.createElement(
|
|
4749
|
-
"path",
|
|
4750
|
-
{
|
|
4751
|
-
fill: "#3BCCFF",
|
|
4752
|
-
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"
|
|
4753
|
-
}
|
|
4754
|
-
))), /* @__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(
|
|
4755
4752
|
"path",
|
|
4756
4753
|
{
|
|
4757
4754
|
fill: "#FFD400",
|
|
@@ -4803,7 +4800,7 @@ var SortButton = (props) => {
|
|
|
4803
4800
|
strokeWidth: "2",
|
|
4804
4801
|
strokeLinecap: "round",
|
|
4805
4802
|
strokeLinejoin: "round",
|
|
4806
|
-
className: props.condensed ? "hawa-h-3 hawa-w-3" : "hawa-
|
|
4803
|
+
className: props.condensed ? "hawa-h-3 hawa-w-3" : "hawa-icon"
|
|
4807
4804
|
},
|
|
4808
4805
|
/* @__PURE__ */ React37.createElement("path", { d: "m21 16-4 4-4-4" }),
|
|
4809
4806
|
/* @__PURE__ */ React37.createElement("path", { d: "M17 20V4" }),
|
|
@@ -5384,7 +5381,7 @@ var AccordionTrigger = React42.forwardRef(({ className, children, ...props }, re
|
|
|
5384
5381
|
strokeWidth: "2",
|
|
5385
5382
|
strokeLinecap: "round",
|
|
5386
5383
|
strokeLinejoin: "round",
|
|
5387
|
-
className: "hawa-
|
|
5384
|
+
className: "hawa-icon hawa-shrink-0 hawa-transition-transform hawa-duration-200"
|
|
5388
5385
|
},
|
|
5389
5386
|
/* @__PURE__ */ React42.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
5390
5387
|
)
|
|
@@ -5971,6 +5968,7 @@ var CommandInput = React51.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
5971
5968
|
/* @__PURE__ */ React51.createElement(
|
|
5972
5969
|
"svg",
|
|
5973
5970
|
{
|
|
5971
|
+
"aria-label": "Search Icon",
|
|
5974
5972
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5975
5973
|
width: "24",
|
|
5976
5974
|
height: "24",
|
|
@@ -5980,7 +5978,7 @@ var CommandInput = React51.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
5980
5978
|
strokeWidth: "2",
|
|
5981
5979
|
strokeLinecap: "round",
|
|
5982
5980
|
strokeLinejoin: "round",
|
|
5983
|
-
className: "hawa-mr-2 hawa-
|
|
5981
|
+
className: "hawa-mr-2 hawa-icon hawa-shrink-0 hawa-opacity-50"
|
|
5984
5982
|
},
|
|
5985
5983
|
/* @__PURE__ */ React51.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
|
5986
5984
|
/* @__PURE__ */ React51.createElement("path", { d: "m21 21-4.3-4.3" })
|
|
@@ -6121,9 +6119,10 @@ var Combobox = ({
|
|
|
6121
6119
|
{
|
|
6122
6120
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6123
6121
|
className: cn(
|
|
6124
|
-
"hawa-
|
|
6122
|
+
"hawa-icon hawa-transition-all",
|
|
6125
6123
|
!props.preview ? "hawa-opacity-100 hawa-visible" : "hawa-opacity-0 hawa-invisible"
|
|
6126
6124
|
),
|
|
6125
|
+
"aria-label": "Chevron down icon",
|
|
6127
6126
|
viewBox: "0 0 24 24",
|
|
6128
6127
|
fill: "none",
|
|
6129
6128
|
stroke: "currentColor",
|
|
@@ -6165,6 +6164,7 @@ var Combobox = ({
|
|
|
6165
6164
|
/* @__PURE__ */ React52.createElement(
|
|
6166
6165
|
"svg",
|
|
6167
6166
|
{
|
|
6167
|
+
"aria-label": "Check Icon",
|
|
6168
6168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6169
6169
|
width: "24",
|
|
6170
6170
|
height: "24",
|
|
@@ -6175,7 +6175,7 @@ var Combobox = ({
|
|
|
6175
6175
|
strokeLinecap: "round",
|
|
6176
6176
|
strokeLinejoin: "round",
|
|
6177
6177
|
className: cn(
|
|
6178
|
-
"hawa-mr-2 hawa-
|
|
6178
|
+
"hawa-mr-2 hawa-icon",
|
|
6179
6179
|
value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
6180
6180
|
)
|
|
6181
6181
|
},
|
|
@@ -6547,6 +6547,7 @@ var NavigationMenuTrigger = React57.forwardRef(({ className, children, ...props
|
|
|
6547
6547
|
/* @__PURE__ */ React57.createElement(
|
|
6548
6548
|
"svg",
|
|
6549
6549
|
{
|
|
6550
|
+
"aria-label": "Chevron Icon",
|
|
6550
6551
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6551
6552
|
width: "24",
|
|
6552
6553
|
height: "24",
|
|
@@ -6557,7 +6558,7 @@ var NavigationMenuTrigger = React57.forwardRef(({ className, children, ...props
|
|
|
6557
6558
|
"stroke-linecap": "round",
|
|
6558
6559
|
"stroke-linejoin": "round",
|
|
6559
6560
|
"aria-hidden": "true",
|
|
6560
|
-
className: "hawa-relative hawa-top-[1px] hawa-
|
|
6561
|
+
className: "hawa-relative hawa-top-[1px] hawa-icon hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
6561
6562
|
},
|
|
6562
6563
|
/* @__PURE__ */ React57.createElement("path", { d: "m6 9 6 6 6-6" })
|
|
6563
6564
|
)
|
|
@@ -6689,7 +6690,7 @@ var AccordionTrigger2 = React59.forwardRef(({ className, showArrow, children, ..
|
|
|
6689
6690
|
viewBox: "0 0 16 16",
|
|
6690
6691
|
height: "1em",
|
|
6691
6692
|
width: "1em",
|
|
6692
|
-
className: "hawa-
|
|
6693
|
+
className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
|
6693
6694
|
},
|
|
6694
6695
|
/* @__PURE__ */ React59.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
|
|
6695
6696
|
)
|
|
@@ -7616,7 +7617,7 @@ var DocsLayout = ({
|
|
|
7616
7617
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
7617
7618
|
)
|
|
7618
7619
|
},
|
|
7619
|
-
/* @__PURE__ */ React66.createElement(Button, { variant: "ghost", size: "smallIcon" }, /* @__PURE__ */ React66.createElement(Logos.github, { className: "hawa-
|
|
7620
|
+
/* @__PURE__ */ React66.createElement(Button, { variant: "ghost", size: "smallIcon" }, /* @__PURE__ */ React66.createElement(Logos.github, { className: "hawa-icon" }))
|
|
7620
7621
|
)
|
|
7621
7622
|
), /* @__PURE__ */ React66.createElement(
|
|
7622
7623
|
"div",
|
|
@@ -7682,7 +7683,7 @@ var AuthButtons = (props) => {
|
|
|
7682
7683
|
variant: "outline",
|
|
7683
7684
|
onClick: props.handleGoogle
|
|
7684
7685
|
},
|
|
7685
|
-
/* @__PURE__ */ React67.createElement(Logos.google, { className: "hawa-
|
|
7686
|
+
/* @__PURE__ */ React67.createElement(Logos.google, { className: "hawa-icon" }),
|
|
7686
7687
|
props.texts?.continueWithGoogle ?? "Continue With Google"
|
|
7687
7688
|
), props.viaGithub && /* @__PURE__ */ React67.createElement(
|
|
7688
7689
|
Button,
|
|
@@ -7691,7 +7692,7 @@ var AuthButtons = (props) => {
|
|
|
7691
7692
|
variant: "outline",
|
|
7692
7693
|
onClick: props.handleGithub
|
|
7693
7694
|
},
|
|
7694
|
-
/* @__PURE__ */ React67.createElement(Logos.github, { className: "hawa-
|
|
7695
|
+
/* @__PURE__ */ React67.createElement(Logos.github, { className: "hawa-icon" }),
|
|
7695
7696
|
props.texts?.continueWithGithub ?? "Continue With Github"
|
|
7696
7697
|
), props.viaTwitter && /* @__PURE__ */ React67.createElement(
|
|
7697
7698
|
Button,
|
|
@@ -7700,7 +7701,7 @@ var AuthButtons = (props) => {
|
|
|
7700
7701
|
variant: "outline",
|
|
7701
7702
|
onClick: props.handleTwitter
|
|
7702
7703
|
},
|
|
7703
|
-
/* @__PURE__ */ React67.createElement(Logos.twitter, { className: "hawa-
|
|
7704
|
+
/* @__PURE__ */ React67.createElement(Logos.twitter, { className: "hawa-icon" }),
|
|
7704
7705
|
props.texts?.continueWithTwitter ?? "Continue With Twitter"
|
|
7705
7706
|
), props.viaApple && /* @__PURE__ */ React67.createElement(
|
|
7706
7707
|
Button,
|
|
@@ -7709,7 +7710,7 @@ var AuthButtons = (props) => {
|
|
|
7709
7710
|
variant: "outline",
|
|
7710
7711
|
onClick: props.handleApple
|
|
7711
7712
|
},
|
|
7712
|
-
/* @__PURE__ */ React67.createElement(Logos.apple, { className: "hawa-
|
|
7713
|
+
/* @__PURE__ */ React67.createElement(Logos.apple, { className: "hawa-icon" }),
|
|
7713
7714
|
props.texts?.continueWithApple ?? "Continue With Apple"
|
|
7714
7715
|
), props.viaMicrosoft && /* @__PURE__ */ React67.createElement(
|
|
7715
7716
|
Button,
|
|
@@ -7718,7 +7719,7 @@ var AuthButtons = (props) => {
|
|
|
7718
7719
|
variant: "outline",
|
|
7719
7720
|
onClick: props.handleMicrosoft
|
|
7720
7721
|
},
|
|
7721
|
-
/* @__PURE__ */ React67.createElement(Logos.microsoft, { className: "hawa-
|
|
7722
|
+
/* @__PURE__ */ React67.createElement(Logos.microsoft, { className: "hawa-icon" }),
|
|
7722
7723
|
props.texts?.continueWithMicrosoft ?? "Continue With Microsoft"
|
|
7723
7724
|
), props.viaEmail && /* @__PURE__ */ React67.createElement(
|
|
7724
7725
|
Button,
|
|
@@ -7727,7 +7728,7 @@ var AuthButtons = (props) => {
|
|
|
7727
7728
|
variant: "outline",
|
|
7728
7729
|
onClick: props.handleEmail
|
|
7729
7730
|
},
|
|
7730
|
-
/* @__PURE__ */ React67.createElement(Logos.mail, { className: "hawa-
|
|
7731
|
+
/* @__PURE__ */ React67.createElement(Logos.mail, { className: "hawa-icon" }),
|
|
7731
7732
|
props.texts?.continueWithEmail ?? "Continue With Email"
|
|
7732
7733
|
), props.viaPhone && /* @__PURE__ */ React67.createElement(
|
|
7733
7734
|
Button,
|
|
@@ -7736,7 +7737,7 @@ var AuthButtons = (props) => {
|
|
|
7736
7737
|
variant: "outline",
|
|
7737
7738
|
onClick: props.handlePhone
|
|
7738
7739
|
},
|
|
7739
|
-
/* @__PURE__ */ React67.createElement(Logos.phone, { className: "hawa-
|
|
7740
|
+
/* @__PURE__ */ React67.createElement(Logos.phone, { className: "hawa-icon" }),
|
|
7740
7741
|
props.texts?.continueWithPhone ?? "Continue With Phone"
|
|
7741
7742
|
));
|
|
7742
7743
|
};
|