@sikka/hawa 0.2.42-next → 0.2.44-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 +154 -13
- package/dist/index.d.mts +70 -2
- package/dist/index.d.ts +70 -2
- package/dist/index.js +356 -0
- package/dist/index.mjs +343 -0
- package/package.json +4 -1
package/dist/index.mjs
CHANGED
|
@@ -3922,6 +3922,341 @@ var BackToTop = ({ ...props }) => {
|
|
|
3922
3922
|
)
|
|
3923
3923
|
);
|
|
3924
3924
|
};
|
|
3925
|
+
|
|
3926
|
+
// components/elements/Input.tsx
|
|
3927
|
+
import React29 from "react";
|
|
3928
|
+
var Input = ({
|
|
3929
|
+
margin = "none",
|
|
3930
|
+
width = "full",
|
|
3931
|
+
preview = false,
|
|
3932
|
+
...props
|
|
3933
|
+
}) => {
|
|
3934
|
+
let marginStyles = {
|
|
3935
|
+
none: "hawa-mb-0",
|
|
3936
|
+
normal: "hawa-mb-3",
|
|
3937
|
+
large: "hawa-mb-5"
|
|
3938
|
+
};
|
|
3939
|
+
let widthStyles = {
|
|
3940
|
+
small: "hawa-w-full hawa-max-w-2xs",
|
|
3941
|
+
normal: "hawa-w-1/2",
|
|
3942
|
+
full: "hawa-w-full"
|
|
3943
|
+
};
|
|
3944
|
+
let defaultStyle = "hawa-flex hawa-max-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-2";
|
|
3945
|
+
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-2 hawa-text-sm hawa-text-black dark:hawa-text-white ";
|
|
3946
|
+
return /* @__PURE__ */ React29.createElement(
|
|
3947
|
+
"div",
|
|
3948
|
+
{
|
|
3949
|
+
className: cn(
|
|
3950
|
+
defaultStyle,
|
|
3951
|
+
marginStyles[margin],
|
|
3952
|
+
widthStyles[width],
|
|
3953
|
+
props.className
|
|
3954
|
+
)
|
|
3955
|
+
},
|
|
3956
|
+
props.label && /* @__PURE__ */ React29.createElement(Label, null, props.label),
|
|
3957
|
+
props.isLoading ? /* @__PURE__ */ React29.createElement(Skeleton, { className: "hawa-h-[38px] hawa-w-full" }) : /* @__PURE__ */ React29.createElement(React29.Fragment, null, /* @__PURE__ */ React29.createElement(
|
|
3958
|
+
"div",
|
|
3959
|
+
{
|
|
3960
|
+
className: cn(
|
|
3961
|
+
"hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800",
|
|
3962
|
+
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
|
3963
|
+
)
|
|
3964
|
+
}
|
|
3965
|
+
), /* @__PURE__ */ React29.createElement(React29.Fragment, null, /* @__PURE__ */ React29.createElement("div", { className: cn("hawa-relative") }, props.icon && /* @__PURE__ */ React29.createElement("div", { className: "hawa-absolute hawa-left-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.icon), /* @__PURE__ */ React29.createElement(
|
|
3966
|
+
"input",
|
|
3967
|
+
{
|
|
3968
|
+
...props,
|
|
3969
|
+
className: cn(
|
|
3970
|
+
defaultInputStyle,
|
|
3971
|
+
props.icon && "hawa-pl-10",
|
|
3972
|
+
"focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2",
|
|
3973
|
+
preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0"
|
|
3974
|
+
),
|
|
3975
|
+
disabled: preview
|
|
3976
|
+
}
|
|
3977
|
+
)), props.iconInside && /* @__PURE__ */ React29.createElement("div", { className: "hawa-absolute hawa-right-1 hawa-top-[41px] hawa--translate-y-1/2" }, props.iconInside), props.helperText && /* @__PURE__ */ React29.createElement("p", { className: "hawa-mb-0 hawa-mt-0 hawa-text-xs hawa-text-red-600 dark:hawa-text-red-500" }, props.helperText)))
|
|
3978
|
+
);
|
|
3979
|
+
};
|
|
3980
|
+
|
|
3981
|
+
// components/elements/Tabs.tsx
|
|
3982
|
+
import * as React30 from "react";
|
|
3983
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3984
|
+
var TabsContext = React30.createContext({ orientation: "vertical" });
|
|
3985
|
+
var Tabs = React30.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React30.createElement(
|
|
3986
|
+
TabsPrimitive.Root,
|
|
3987
|
+
{
|
|
3988
|
+
ref,
|
|
3989
|
+
className: cn(
|
|
3990
|
+
"hawa-flex hawa-gap-2",
|
|
3991
|
+
orientation === "vertical" ? "hawa-flex-row" : "hawa-flex-col",
|
|
3992
|
+
className
|
|
3993
|
+
),
|
|
3994
|
+
...props
|
|
3995
|
+
},
|
|
3996
|
+
/* @__PURE__ */ React30.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
|
|
3997
|
+
));
|
|
3998
|
+
Tabs.displayName = TabsPrimitive.Root.displayName;
|
|
3999
|
+
var TabsList = React30.forwardRef(({ className, ...props }, ref) => {
|
|
4000
|
+
const { orientation } = React30.useContext(TabsContext);
|
|
4001
|
+
console.log("orient ", orientation);
|
|
4002
|
+
return /* @__PURE__ */ React30.createElement(
|
|
4003
|
+
TabsPrimitive.List,
|
|
4004
|
+
{
|
|
4005
|
+
ref,
|
|
4006
|
+
className: cn(
|
|
4007
|
+
"hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-border hawa-bg-muted hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10",
|
|
4008
|
+
orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row",
|
|
4009
|
+
className
|
|
4010
|
+
),
|
|
4011
|
+
...props
|
|
4012
|
+
}
|
|
4013
|
+
);
|
|
4014
|
+
});
|
|
4015
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
4016
|
+
var TabsTrigger = React30.forwardRef(({ className, ...props }, ref) => {
|
|
4017
|
+
return /* @__PURE__ */ React30.createElement(
|
|
4018
|
+
TabsPrimitive.Trigger,
|
|
4019
|
+
{
|
|
4020
|
+
ref,
|
|
4021
|
+
className: cn(
|
|
4022
|
+
"hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-whitespace-nowrap hawa-rounded hawa-border hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[state=active]:hawa-bg-primary data-[state=active]:hawa-text-primary-foreground data-[state=active]:hawa-shadow-sm dark:hawa-border-primary/10",
|
|
4023
|
+
className
|
|
4024
|
+
),
|
|
4025
|
+
...props
|
|
4026
|
+
}
|
|
4027
|
+
);
|
|
4028
|
+
});
|
|
4029
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4030
|
+
var TabsContent = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React30.createElement(
|
|
4031
|
+
TabsPrimitive.Content,
|
|
4032
|
+
{
|
|
4033
|
+
ref,
|
|
4034
|
+
className: cn(
|
|
4035
|
+
"hawa-w-full hawa-ring-offset-hawa-background focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2",
|
|
4036
|
+
className
|
|
4037
|
+
),
|
|
4038
|
+
...props
|
|
4039
|
+
}
|
|
4040
|
+
));
|
|
4041
|
+
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
4042
|
+
|
|
4043
|
+
// components/elements/ScrollArea.tsx
|
|
4044
|
+
import * as React31 from "react";
|
|
4045
|
+
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
4046
|
+
var ScrollArea = React31.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React31.createElement(
|
|
4047
|
+
ScrollAreaPrimitive.Root,
|
|
4048
|
+
{
|
|
4049
|
+
ref,
|
|
4050
|
+
className: cn("hawa-relative hawa-overflow-hidden", className),
|
|
4051
|
+
...props
|
|
4052
|
+
},
|
|
4053
|
+
/* @__PURE__ */ React31.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
|
4054
|
+
/* @__PURE__ */ React31.createElement(ScrollBar, { orientation }),
|
|
4055
|
+
/* @__PURE__ */ React31.createElement(ScrollAreaPrimitive.Corner, null)
|
|
4056
|
+
));
|
|
4057
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
4058
|
+
var ScrollBar = React31.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React31.createElement(
|
|
4059
|
+
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
4060
|
+
{
|
|
4061
|
+
ref,
|
|
4062
|
+
orientation,
|
|
4063
|
+
className: cn(
|
|
4064
|
+
"hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors",
|
|
4065
|
+
orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]",
|
|
4066
|
+
orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]",
|
|
4067
|
+
className
|
|
4068
|
+
),
|
|
4069
|
+
...props
|
|
4070
|
+
},
|
|
4071
|
+
/* @__PURE__ */ React31.createElement(
|
|
4072
|
+
ScrollAreaPrimitive.ScrollAreaThumb,
|
|
4073
|
+
{
|
|
4074
|
+
className: cn(
|
|
4075
|
+
"hawa-relative hawa-rounded-full hawa-bg-border",
|
|
4076
|
+
orientation === "vertical" && "hawa-flex-1"
|
|
4077
|
+
)
|
|
4078
|
+
}
|
|
4079
|
+
)
|
|
4080
|
+
));
|
|
4081
|
+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
4082
|
+
|
|
4083
|
+
// components/elements/Logos.tsx
|
|
4084
|
+
import React32 from "react";
|
|
4085
|
+
var Logos = {
|
|
4086
|
+
logo: (props) => /* @__PURE__ */ React32.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props }, /* @__PURE__ */ React32.createElement("rect", { width: "256", height: "256", fill: "none" }), /* @__PURE__ */ React32.createElement(
|
|
4087
|
+
"line",
|
|
4088
|
+
{
|
|
4089
|
+
x1: "208",
|
|
4090
|
+
y1: "128",
|
|
4091
|
+
x2: "128",
|
|
4092
|
+
y2: "208",
|
|
4093
|
+
fill: "none",
|
|
4094
|
+
stroke: "currentColor",
|
|
4095
|
+
strokeLinecap: "round",
|
|
4096
|
+
strokeLinejoin: "round",
|
|
4097
|
+
strokeWidth: "16"
|
|
4098
|
+
}
|
|
4099
|
+
), /* @__PURE__ */ React32.createElement(
|
|
4100
|
+
"line",
|
|
4101
|
+
{
|
|
4102
|
+
x1: "192",
|
|
4103
|
+
y1: "40",
|
|
4104
|
+
x2: "40",
|
|
4105
|
+
y2: "192",
|
|
4106
|
+
fill: "none",
|
|
4107
|
+
stroke: "currentColor",
|
|
4108
|
+
strokeLinecap: "round",
|
|
4109
|
+
strokeLinejoin: "round",
|
|
4110
|
+
strokeWidth: "16"
|
|
4111
|
+
}
|
|
4112
|
+
)),
|
|
4113
|
+
mail: (props) => /* @__PURE__ */ React32.createElement(
|
|
4114
|
+
"svg",
|
|
4115
|
+
{
|
|
4116
|
+
stroke: "currentColor",
|
|
4117
|
+
fill: "none",
|
|
4118
|
+
"stroke-width": "2",
|
|
4119
|
+
viewBox: "0 0 24 24",
|
|
4120
|
+
"stroke-linecap": "round",
|
|
4121
|
+
"stroke-linejoin": "round",
|
|
4122
|
+
height: "1em",
|
|
4123
|
+
width: "1em",
|
|
4124
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4125
|
+
...props
|
|
4126
|
+
},
|
|
4127
|
+
/* @__PURE__ */ React32.createElement("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }),
|
|
4128
|
+
/* @__PURE__ */ React32.createElement("polyline", { points: "22,6 12,13 2,6" })
|
|
4129
|
+
),
|
|
4130
|
+
phone: (props) => /* @__PURE__ */ React32.createElement(
|
|
4131
|
+
"svg",
|
|
4132
|
+
{
|
|
4133
|
+
stroke: "currentColor",
|
|
4134
|
+
fill: "none",
|
|
4135
|
+
"stroke-width": "2",
|
|
4136
|
+
viewBox: "0 0 24 24",
|
|
4137
|
+
"aria-hidden": "true",
|
|
4138
|
+
height: "1em",
|
|
4139
|
+
width: "1em",
|
|
4140
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4141
|
+
...props
|
|
4142
|
+
},
|
|
4143
|
+
/* @__PURE__ */ React32.createElement(
|
|
4144
|
+
"path",
|
|
4145
|
+
{
|
|
4146
|
+
"stroke-linecap": "round",
|
|
4147
|
+
"stroke-linejoin": "round",
|
|
4148
|
+
d: "M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"
|
|
4149
|
+
}
|
|
4150
|
+
)
|
|
4151
|
+
),
|
|
4152
|
+
twitter: (props) => /* @__PURE__ */ React32.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React32.createElement(
|
|
4153
|
+
"path",
|
|
4154
|
+
{
|
|
4155
|
+
fill: "currentColor",
|
|
4156
|
+
d: "M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"
|
|
4157
|
+
}
|
|
4158
|
+
)),
|
|
4159
|
+
microsoft: (props) => /* @__PURE__ */ React32.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ React32.createElement(
|
|
4160
|
+
"path",
|
|
4161
|
+
{
|
|
4162
|
+
fill: "currentColor",
|
|
4163
|
+
d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
|
|
4164
|
+
}
|
|
4165
|
+
)),
|
|
4166
|
+
gitHub: (props) => /* @__PURE__ */ React32.createElement("svg", { viewBox: "0 0 438.549 438.549", ...props }, /* @__PURE__ */ React32.createElement(
|
|
4167
|
+
"path",
|
|
4168
|
+
{
|
|
4169
|
+
fill: "currentColor",
|
|
4170
|
+
d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
|
|
4171
|
+
}
|
|
4172
|
+
)),
|
|
4173
|
+
radix: (props) => /* @__PURE__ */ React32.createElement("svg", { viewBox: "0 0 25 25", fill: "none", ...props }, /* @__PURE__ */ React32.createElement(
|
|
4174
|
+
"path",
|
|
4175
|
+
{
|
|
4176
|
+
d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
|
|
4177
|
+
fill: "currentcolor"
|
|
4178
|
+
}
|
|
4179
|
+
), /* @__PURE__ */ React32.createElement("path", { d: "M12 0H4V8H12V0Z", fill: "currentcolor" }), /* @__PURE__ */ React32.createElement(
|
|
4180
|
+
"path",
|
|
4181
|
+
{
|
|
4182
|
+
d: "M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",
|
|
4183
|
+
fill: "currentcolor"
|
|
4184
|
+
}
|
|
4185
|
+
)),
|
|
4186
|
+
aria: (props) => /* @__PURE__ */ React32.createElement("svg", { role: "img", viewBox: "0 0 24 24", fill: "currentColor", ...props }, /* @__PURE__ */ React32.createElement("path", { d: "M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z" })),
|
|
4187
|
+
npm: (props) => /* @__PURE__ */ React32.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React32.createElement(
|
|
4188
|
+
"path",
|
|
4189
|
+
{
|
|
4190
|
+
d: "M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",
|
|
4191
|
+
fill: "currentColor"
|
|
4192
|
+
}
|
|
4193
|
+
)),
|
|
4194
|
+
yarn: (props) => /* @__PURE__ */ React32.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React32.createElement(
|
|
4195
|
+
"path",
|
|
4196
|
+
{
|
|
4197
|
+
d: "M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",
|
|
4198
|
+
fill: "currentColor"
|
|
4199
|
+
}
|
|
4200
|
+
)),
|
|
4201
|
+
pnpm: (props) => /* @__PURE__ */ React32.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React32.createElement(
|
|
4202
|
+
"path",
|
|
4203
|
+
{
|
|
4204
|
+
d: "M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",
|
|
4205
|
+
fill: "currentColor"
|
|
4206
|
+
}
|
|
4207
|
+
)),
|
|
4208
|
+
react: (props) => /* @__PURE__ */ React32.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React32.createElement(
|
|
4209
|
+
"path",
|
|
4210
|
+
{
|
|
4211
|
+
d: "M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",
|
|
4212
|
+
fill: "currentColor"
|
|
4213
|
+
}
|
|
4214
|
+
)),
|
|
4215
|
+
tailwind: (props) => /* @__PURE__ */ React32.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React32.createElement(
|
|
4216
|
+
"path",
|
|
4217
|
+
{
|
|
4218
|
+
d: "M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",
|
|
4219
|
+
fill: "currentColor"
|
|
4220
|
+
}
|
|
4221
|
+
)),
|
|
4222
|
+
google: (props) => /* @__PURE__ */ React32.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React32.createElement(
|
|
4223
|
+
"path",
|
|
4224
|
+
{
|
|
4225
|
+
fill: "currentColor",
|
|
4226
|
+
d: "M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
|
4227
|
+
}
|
|
4228
|
+
)),
|
|
4229
|
+
apple: (props) => /* @__PURE__ */ React32.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React32.createElement(
|
|
4230
|
+
"path",
|
|
4231
|
+
{
|
|
4232
|
+
d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",
|
|
4233
|
+
fill: "currentColor"
|
|
4234
|
+
}
|
|
4235
|
+
)),
|
|
4236
|
+
paypal: (props) => /* @__PURE__ */ React32.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React32.createElement(
|
|
4237
|
+
"path",
|
|
4238
|
+
{
|
|
4239
|
+
d: "M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",
|
|
4240
|
+
fill: "currentColor"
|
|
4241
|
+
}
|
|
4242
|
+
)),
|
|
4243
|
+
spinner: (props) => /* @__PURE__ */ React32.createElement(
|
|
4244
|
+
"svg",
|
|
4245
|
+
{
|
|
4246
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4247
|
+
width: "24",
|
|
4248
|
+
height: "24",
|
|
4249
|
+
viewBox: "0 0 24 24",
|
|
4250
|
+
fill: "none",
|
|
4251
|
+
stroke: "currentColor",
|
|
4252
|
+
strokeWidth: "2",
|
|
4253
|
+
strokeLinecap: "round",
|
|
4254
|
+
strokeLinejoin: "round",
|
|
4255
|
+
...props
|
|
4256
|
+
},
|
|
4257
|
+
/* @__PURE__ */ React32.createElement("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
4258
|
+
)
|
|
4259
|
+
};
|
|
3925
4260
|
export {
|
|
3926
4261
|
ActionCard,
|
|
3927
4262
|
Alert,
|
|
@@ -3948,16 +4283,24 @@ export {
|
|
|
3948
4283
|
DialogTrigger,
|
|
3949
4284
|
DropdownMenu,
|
|
3950
4285
|
FileDropzone,
|
|
4286
|
+
Input,
|
|
3951
4287
|
Label,
|
|
3952
4288
|
Loading,
|
|
4289
|
+
Logos,
|
|
3953
4290
|
PhoneInput,
|
|
3954
4291
|
PinInput,
|
|
3955
4292
|
Popover,
|
|
3956
4293
|
PopoverContent,
|
|
3957
4294
|
Radio,
|
|
4295
|
+
ScrollArea,
|
|
4296
|
+
ScrollBar,
|
|
3958
4297
|
Skeleton,
|
|
3959
4298
|
Slider,
|
|
3960
4299
|
Switch,
|
|
4300
|
+
Tabs,
|
|
4301
|
+
TabsContent,
|
|
4302
|
+
TabsList,
|
|
4303
|
+
TabsTrigger,
|
|
3961
4304
|
Textarea,
|
|
3962
4305
|
Toast,
|
|
3963
4306
|
ToastAction,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sikka/hawa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.44-next",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -30,8 +30,10 @@
|
|
|
30
30
|
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
|
31
31
|
"@radix-ui/react-label": "^2.0.2",
|
|
32
32
|
"@radix-ui/react-popover": "^1.0.7",
|
|
33
|
+
"@radix-ui/react-scroll-area": "^1.0.5",
|
|
33
34
|
"@radix-ui/react-slider": "^1.1.2",
|
|
34
35
|
"@radix-ui/react-switch": "^1.0.3",
|
|
36
|
+
"@radix-ui/react-tabs": "^1.0.4",
|
|
35
37
|
"@radix-ui/react-toast": "^1.1.5",
|
|
36
38
|
"@radix-ui/react-tooltip": "^1.0.7",
|
|
37
39
|
"@types/node": "20.8.0",
|
|
@@ -47,6 +49,7 @@
|
|
|
47
49
|
"react": "18.2.0",
|
|
48
50
|
"react-dom": "18.2.0",
|
|
49
51
|
"react-dropzone": "^14.2.3",
|
|
52
|
+
"react-hook-form": "^7.47.0",
|
|
50
53
|
"react-select": "^5.7.7",
|
|
51
54
|
"tailwind-merge": "^1.14.0",
|
|
52
55
|
"typescript": "5.2.2"
|