@sikka/hawa 0.19.1-next → 0.19.3-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 +0 -3
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +12 -11
- package/dist/index.mjs +12 -11
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1478,9 +1478,6 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1478
1478
|
.hawa-min-h-\[37\.75px\] {
|
|
1479
1479
|
min-height: 37.75px;
|
|
1480
1480
|
}
|
|
1481
|
-
.hawa-min-h-\[80px\] {
|
|
1482
|
-
min-height: 80px;
|
|
1483
|
-
}
|
|
1484
1481
|
.hawa-min-h-fit {
|
|
1485
1482
|
min-height: -moz-fit-content;
|
|
1486
1483
|
min-height: fit-content;
|
package/dist/index.d.mts
CHANGED
|
@@ -272,6 +272,10 @@ declare const Switch: React$1.ForwardRefExoticComponent<SwitchProps & React$1.Re
|
|
|
272
272
|
|
|
273
273
|
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
274
274
|
helperText?: string;
|
|
275
|
+
/** The label of the input field */
|
|
276
|
+
label?: any;
|
|
277
|
+
labelProps?: LabelProps;
|
|
278
|
+
forceHideHelperText?: boolean;
|
|
275
279
|
}
|
|
276
280
|
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
277
281
|
|
|
@@ -303,8 +307,6 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
|
|
|
303
307
|
label?: any;
|
|
304
308
|
labelProps?: LabelProps | undefined;
|
|
305
309
|
hideSeparator?: boolean | undefined;
|
|
306
|
-
/** Disable/Enable multiple line text input field */
|
|
307
|
-
multiline?: boolean | undefined;
|
|
308
310
|
/** The small red text under the input field to show validation. */
|
|
309
311
|
helperText?: any;
|
|
310
312
|
forceHideHelperText?: boolean | undefined;
|
|
@@ -399,6 +401,7 @@ interface AvatarProps {
|
|
|
399
401
|
size?: "2xs" | "xs" | "sm" | "default" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl";
|
|
400
402
|
radius?: RadiusType;
|
|
401
403
|
className?: string;
|
|
404
|
+
icon?: React__default.ReactNode;
|
|
402
405
|
}
|
|
403
406
|
declare const Avatar: React__default.FC<AvatarProps>;
|
|
404
407
|
|
package/dist/index.d.ts
CHANGED
|
@@ -272,6 +272,10 @@ declare const Switch: React$1.ForwardRefExoticComponent<SwitchProps & React$1.Re
|
|
|
272
272
|
|
|
273
273
|
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
274
274
|
helperText?: string;
|
|
275
|
+
/** The label of the input field */
|
|
276
|
+
label?: any;
|
|
277
|
+
labelProps?: LabelProps;
|
|
278
|
+
forceHideHelperText?: boolean;
|
|
275
279
|
}
|
|
276
280
|
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
277
281
|
|
|
@@ -303,8 +307,6 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
|
|
|
303
307
|
label?: any;
|
|
304
308
|
labelProps?: LabelProps | undefined;
|
|
305
309
|
hideSeparator?: boolean | undefined;
|
|
306
|
-
/** Disable/Enable multiple line text input field */
|
|
307
|
-
multiline?: boolean | undefined;
|
|
308
310
|
/** The small red text under the input field to show validation. */
|
|
309
311
|
helperText?: any;
|
|
310
312
|
forceHideHelperText?: boolean | undefined;
|
|
@@ -399,6 +401,7 @@ interface AvatarProps {
|
|
|
399
401
|
size?: "2xs" | "xs" | "sm" | "default" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl";
|
|
400
402
|
radius?: RadiusType;
|
|
401
403
|
className?: string;
|
|
404
|
+
icon?: React__default.ReactNode;
|
|
402
405
|
}
|
|
403
406
|
declare const Avatar: React__default.FC<AvatarProps>;
|
|
404
407
|
|
package/dist/index.js
CHANGED
|
@@ -3762,18 +3762,18 @@ Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
|
3762
3762
|
// components/elements/Textarea.tsx
|
|
3763
3763
|
var React22 = __toESM(require("react"));
|
|
3764
3764
|
var Textarea = React22.forwardRef(
|
|
3765
|
-
({ className, ...props }, ref) => {
|
|
3766
|
-
return /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React22.createElement(
|
|
3765
|
+
({ className, labelProps, forceHideHelperText, ...props }, ref) => {
|
|
3766
|
+
return /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2 hawa-h-full" }, props.label && /* @__PURE__ */ React22.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React22.createElement(
|
|
3767
3767
|
"textarea",
|
|
3768
3768
|
{
|
|
3769
3769
|
className: cn(
|
|
3770
|
-
"hawa-flex hawa-
|
|
3770
|
+
"hawa-flex hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
|
3771
3771
|
className
|
|
3772
3772
|
),
|
|
3773
3773
|
ref,
|
|
3774
3774
|
...props
|
|
3775
3775
|
}
|
|
3776
|
-
), /* @__PURE__ */ React22.createElement(
|
|
3776
|
+
), !forceHideHelperText && /* @__PURE__ */ React22.createElement(
|
|
3777
3777
|
"p",
|
|
3778
3778
|
{
|
|
3779
3779
|
className: cn(
|
|
@@ -3782,7 +3782,7 @@ var Textarea = React22.forwardRef(
|
|
|
3782
3782
|
)
|
|
3783
3783
|
},
|
|
3784
3784
|
props.helperText
|
|
3785
|
-
)
|
|
3785
|
+
));
|
|
3786
3786
|
}
|
|
3787
3787
|
);
|
|
3788
3788
|
Textarea.displayName = "Textarea";
|
|
@@ -4651,6 +4651,7 @@ var Avatar = ({
|
|
|
4651
4651
|
alt,
|
|
4652
4652
|
size = "default",
|
|
4653
4653
|
radius = "inherit",
|
|
4654
|
+
icon,
|
|
4654
4655
|
className,
|
|
4655
4656
|
...props
|
|
4656
4657
|
}) => {
|
|
@@ -4714,7 +4715,7 @@ var Avatar = ({
|
|
|
4714
4715
|
"hawa-justify-center hawa-items-center hawa-flex hawa-flex-col"
|
|
4715
4716
|
)
|
|
4716
4717
|
},
|
|
4717
|
-
/* @__PURE__ */ import_react18.default.createElement(
|
|
4718
|
+
icon ? icon : /* @__PURE__ */ import_react18.default.createElement(
|
|
4718
4719
|
"svg",
|
|
4719
4720
|
{
|
|
4720
4721
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7125,7 +7126,6 @@ var SheetOverlay = React58.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
7125
7126
|
ref
|
|
7126
7127
|
}
|
|
7127
7128
|
));
|
|
7128
|
-
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
7129
7129
|
var sheetVariants = (0, import_class_variance_authority3.cva)(
|
|
7130
7130
|
"hawa-fixed hawa-z-50 hawa-gap-4 hawa-bg-background hawa-p-2 hawa-shadow-lg hawa-transition hawa-ease-in-out data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-duration-300 data-[state=open]:hawa-duration-300",
|
|
7131
7131
|
{
|
|
@@ -7169,7 +7169,6 @@ var SheetContent = React58.forwardRef(({ side = "right", className, children, ..
|
|
|
7169
7169
|
)
|
|
7170
7170
|
), /* @__PURE__ */ React58.createElement("span", { className: "hawa-sr-only" }, "Close"))
|
|
7171
7171
|
)));
|
|
7172
|
-
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
7173
7172
|
var SheetHeader = ({
|
|
7174
7173
|
className,
|
|
7175
7174
|
...props
|
|
@@ -7183,7 +7182,6 @@ var SheetHeader = ({
|
|
|
7183
7182
|
...props
|
|
7184
7183
|
}
|
|
7185
7184
|
);
|
|
7186
|
-
SheetHeader.displayName = "SheetHeader";
|
|
7187
7185
|
var SheetFooter = ({
|
|
7188
7186
|
className,
|
|
7189
7187
|
...props
|
|
@@ -7197,7 +7195,6 @@ var SheetFooter = ({
|
|
|
7197
7195
|
...props
|
|
7198
7196
|
}
|
|
7199
7197
|
);
|
|
7200
|
-
SheetFooter.displayName = "SheetFooter";
|
|
7201
7198
|
var SheetTitle = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
|
7202
7199
|
SheetPrimitive.Title,
|
|
7203
7200
|
{
|
|
@@ -7209,7 +7206,6 @@ var SheetTitle = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
7209
7206
|
...props
|
|
7210
7207
|
}
|
|
7211
7208
|
));
|
|
7212
|
-
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
7213
7209
|
var SheetDescription = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
|
7214
7210
|
SheetPrimitive.Description,
|
|
7215
7211
|
{
|
|
@@ -7219,6 +7215,11 @@ var SheetDescription = React58.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
7219
7215
|
}
|
|
7220
7216
|
));
|
|
7221
7217
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
7218
|
+
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
7219
|
+
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
7220
|
+
SheetHeader.displayName = "SheetHeader";
|
|
7221
|
+
SheetFooter.displayName = "SheetFooter";
|
|
7222
|
+
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
7222
7223
|
|
|
7223
7224
|
// components/elements/ProgressCircle.tsx
|
|
7224
7225
|
var import_react35 = __toESM(require("react"));
|
package/dist/index.mjs
CHANGED
|
@@ -3529,18 +3529,18 @@ Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
|
3529
3529
|
// components/elements/Textarea.tsx
|
|
3530
3530
|
import * as React22 from "react";
|
|
3531
3531
|
var Textarea = React22.forwardRef(
|
|
3532
|
-
({ className, ...props }, ref) => {
|
|
3533
|
-
return /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React22.createElement(
|
|
3532
|
+
({ className, labelProps, forceHideHelperText, ...props }, ref) => {
|
|
3533
|
+
return /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2 hawa-h-full" }, props.label && /* @__PURE__ */ React22.createElement(Label2, { ...labelProps }, props.label), /* @__PURE__ */ React22.createElement(
|
|
3534
3534
|
"textarea",
|
|
3535
3535
|
{
|
|
3536
3536
|
className: cn(
|
|
3537
|
-
"hawa-flex hawa-
|
|
3537
|
+
"hawa-flex hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
|
3538
3538
|
className
|
|
3539
3539
|
),
|
|
3540
3540
|
ref,
|
|
3541
3541
|
...props
|
|
3542
3542
|
}
|
|
3543
|
-
), /* @__PURE__ */ React22.createElement(
|
|
3543
|
+
), !forceHideHelperText && /* @__PURE__ */ React22.createElement(
|
|
3544
3544
|
"p",
|
|
3545
3545
|
{
|
|
3546
3546
|
className: cn(
|
|
@@ -3549,7 +3549,7 @@ var Textarea = React22.forwardRef(
|
|
|
3549
3549
|
)
|
|
3550
3550
|
},
|
|
3551
3551
|
props.helperText
|
|
3552
|
-
)
|
|
3552
|
+
));
|
|
3553
3553
|
}
|
|
3554
3554
|
);
|
|
3555
3555
|
Textarea.displayName = "Textarea";
|
|
@@ -4421,6 +4421,7 @@ var Avatar = ({
|
|
|
4421
4421
|
alt,
|
|
4422
4422
|
size = "default",
|
|
4423
4423
|
radius = "inherit",
|
|
4424
|
+
icon,
|
|
4424
4425
|
className,
|
|
4425
4426
|
...props
|
|
4426
4427
|
}) => {
|
|
@@ -4484,7 +4485,7 @@ var Avatar = ({
|
|
|
4484
4485
|
"hawa-justify-center hawa-items-center hawa-flex hawa-flex-col"
|
|
4485
4486
|
)
|
|
4486
4487
|
},
|
|
4487
|
-
/* @__PURE__ */ React31.createElement(
|
|
4488
|
+
icon ? icon : /* @__PURE__ */ React31.createElement(
|
|
4488
4489
|
"svg",
|
|
4489
4490
|
{
|
|
4490
4491
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6907,7 +6908,6 @@ var SheetOverlay = React58.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
6907
6908
|
ref
|
|
6908
6909
|
}
|
|
6909
6910
|
));
|
|
6910
|
-
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
6911
6911
|
var sheetVariants = cva3(
|
|
6912
6912
|
"hawa-fixed hawa-z-50 hawa-gap-4 hawa-bg-background hawa-p-2 hawa-shadow-lg hawa-transition hawa-ease-in-out data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-duration-300 data-[state=open]:hawa-duration-300",
|
|
6913
6913
|
{
|
|
@@ -6951,7 +6951,6 @@ var SheetContent = React58.forwardRef(({ side = "right", className, children, ..
|
|
|
6951
6951
|
)
|
|
6952
6952
|
), /* @__PURE__ */ React58.createElement("span", { className: "hawa-sr-only" }, "Close"))
|
|
6953
6953
|
)));
|
|
6954
|
-
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
6955
6954
|
var SheetHeader = ({
|
|
6956
6955
|
className,
|
|
6957
6956
|
...props
|
|
@@ -6965,7 +6964,6 @@ var SheetHeader = ({
|
|
|
6965
6964
|
...props
|
|
6966
6965
|
}
|
|
6967
6966
|
);
|
|
6968
|
-
SheetHeader.displayName = "SheetHeader";
|
|
6969
6967
|
var SheetFooter = ({
|
|
6970
6968
|
className,
|
|
6971
6969
|
...props
|
|
@@ -6979,7 +6977,6 @@ var SheetFooter = ({
|
|
|
6979
6977
|
...props
|
|
6980
6978
|
}
|
|
6981
6979
|
);
|
|
6982
|
-
SheetFooter.displayName = "SheetFooter";
|
|
6983
6980
|
var SheetTitle = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
|
6984
6981
|
SheetPrimitive.Title,
|
|
6985
6982
|
{
|
|
@@ -6991,7 +6988,6 @@ var SheetTitle = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
6991
6988
|
...props
|
|
6992
6989
|
}
|
|
6993
6990
|
));
|
|
6994
|
-
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
6995
6991
|
var SheetDescription = React58.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React58.createElement(
|
|
6996
6992
|
SheetPrimitive.Description,
|
|
6997
6993
|
{
|
|
@@ -7001,6 +6997,11 @@ var SheetDescription = React58.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
7001
6997
|
}
|
|
7002
6998
|
));
|
|
7003
6999
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
7000
|
+
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
7001
|
+
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
7002
|
+
SheetHeader.displayName = "SheetHeader";
|
|
7003
|
+
SheetFooter.displayName = "SheetFooter";
|
|
7004
|
+
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
7004
7005
|
|
|
7005
7006
|
// components/elements/ProgressCircle.tsx
|
|
7006
7007
|
import React59 from "react";
|