@sikka/hawa 0.15.3-next → 0.15.4-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.js +13 -9
- package/dist/index.mjs +15 -7
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -843,6 +843,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
843
843
|
.hawa-z-\[1\] {
|
|
844
844
|
z-index: 1;
|
|
845
845
|
}
|
|
846
|
+
.hawa-z-\[900\] {
|
|
847
|
+
z-index: 900;
|
|
848
|
+
}
|
|
846
849
|
.hawa-m-0 {
|
|
847
850
|
margin: 0px;
|
|
848
851
|
}
|
|
@@ -1531,6 +1534,11 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1531
1534
|
-moz-user-select: none;
|
|
1532
1535
|
user-select: none;
|
|
1533
1536
|
}
|
|
1537
|
+
.hawa-select-text {
|
|
1538
|
+
-webkit-user-select: text;
|
|
1539
|
+
-moz-user-select: text;
|
|
1540
|
+
user-select: text;
|
|
1541
|
+
}
|
|
1534
1542
|
.hawa-resize-none {
|
|
1535
1543
|
resize: none;
|
|
1536
1544
|
}
|
package/dist/index.js
CHANGED
|
@@ -3438,7 +3438,7 @@ var Label2 = React14.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
3438
3438
|
"children"
|
|
3439
3439
|
]);
|
|
3440
3440
|
return React14.createElement("div", {
|
|
3441
|
-
className: "hawa-flex hawa-flex-row hawa-gap-
|
|
3441
|
+
className: "hawa-flex hawa-flex-row hawa-gap-1 hawa-items-center"
|
|
3442
3442
|
}, /* @__PURE__ */ React14.createElement("label", _object_spread({
|
|
3443
3443
|
ref: ref,
|
|
3444
3444
|
className: cn("hawa-text-sm hawa-font-medium hawa-leading-none peer-disabled:hawa-cursor-not-allowed peer-disabled:hawa-opacity-70", className)
|
|
@@ -4331,14 +4331,18 @@ var Combobox = function(_param) {
|
|
|
4331
4331
|
]);
|
|
4332
4332
|
var _React28_useState = _sliced_to_array(React28.useState(false), 2), open = _React28_useState[0], setOpen = _React28_useState[1];
|
|
4333
4333
|
var _React28_useState1 = _sliced_to_array(React28.useState(defaultValue), 2), value = _React28_useState1[0], setValue = _React28_useState1[1];
|
|
4334
|
+
var handleOpenChange = function(open2) {
|
|
4335
|
+
if (!(props.isLoading || props.preview)) {
|
|
4336
|
+
setOpen(open2);
|
|
4337
|
+
}
|
|
4338
|
+
};
|
|
4334
4339
|
return /* @__PURE__ */ React28.createElement("div", {
|
|
4335
4340
|
className: cn("hawa-flex hawa-flex-col hawa-gap-2 hawa-relative hawa-h-fit", props.width === "fit" ? "hawa-w-fit" : "hawa-w-full")
|
|
4336
4341
|
}, props.label && /* @__PURE__ */ React28.createElement(Label2, null, props.label), /* @__PURE__ */ React28.createElement(PopoverPrimitive2.Root, {
|
|
4337
4342
|
open: open,
|
|
4338
|
-
onOpenChange:
|
|
4343
|
+
onOpenChange: handleOpenChange
|
|
4339
4344
|
}, /* @__PURE__ */ React28.createElement(PopoverTrigger, {
|
|
4340
|
-
asChild: true
|
|
4341
|
-
disabled: props.isLoading || props.preview
|
|
4345
|
+
asChild: true
|
|
4342
4346
|
}, props.isLoading ? /* @__PURE__ */ React28.createElement("div", {
|
|
4343
4347
|
className: "hawa-pb-2"
|
|
4344
4348
|
}, /* @__PURE__ */ React28.createElement(Skeleton, {
|
|
@@ -4601,7 +4605,7 @@ var CodeBlock = function(_param) {
|
|
|
4601
4605
|
var React32 = __toESM(require("react"));
|
|
4602
4606
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
|
4603
4607
|
var import_class_variance_authority2 = require("class-variance-authority");
|
|
4604
|
-
var toastVariants = (0, import_class_variance_authority2.cva)("hawa-group hawa-pointer-events-auto hawa-relative hawa-flex hawa-w-full hawa-items-center hawa-justify-between hawa-space-x-4 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-shadow-lg hawa-transition-all data-[swipe=cancel]:hawa-translate-x-0 data-[swipe=end]:hawa-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:hawa-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:hawa-transition-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[swipe=end]:hawa-animate-out data-[state=closed]:hawa-fade-out-80 data-[state=open]:hawa-slide-in-from-top-full data-[state=open]:sm:hawa-slide-in-from-bottom-full", {
|
|
4608
|
+
var toastVariants = (0, import_class_variance_authority2.cva)("hawa-group hawa-z-[900] hawa-pointer-events-auto hawa-relative hawa-flex hawa-w-full hawa-items-center hawa-justify-between hawa-space-x-4 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-shadow-lg hawa-transition-all data-[swipe=cancel]:hawa-translate-x-0 data-[swipe=end]:hawa-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:hawa-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:hawa-transition-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[swipe=end]:hawa-animate-out data-[state=closed]:hawa-fade-out-80 data-[state=open]:hawa-slide-in-from-top-full data-[state=open]:sm:hawa-slide-in-from-bottom-full", {
|
|
4605
4609
|
variants: {
|
|
4606
4610
|
variant: {
|
|
4607
4611
|
default: "hawa-border hawa-bg-background hawa-text-foreground",
|
|
@@ -4684,7 +4688,7 @@ var ToastTitle = React32.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
4684
4688
|
]);
|
|
4685
4689
|
return React32.createElement(ToastPrimitives.Title, _object_spread({
|
|
4686
4690
|
ref: ref,
|
|
4687
|
-
className: cn("hawa-text-sm hawa-font-semibold", className)
|
|
4691
|
+
className: cn("hawa-text-sm hawa-font-semibold hawa-select-text", className)
|
|
4688
4692
|
}, props));
|
|
4689
4693
|
});
|
|
4690
4694
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
@@ -4694,7 +4698,7 @@ var ToastDescription = React32.forwardRef(function(_param, ref) /* @__PURE__ */
|
|
|
4694
4698
|
]);
|
|
4695
4699
|
return React32.createElement(ToastPrimitives.Description, _object_spread({
|
|
4696
4700
|
ref: ref,
|
|
4697
|
-
className: cn("hawa-text-sm hawa-opacity-90", className)
|
|
4701
|
+
className: cn("hawa-text-sm hawa-opacity-90 hawa-select-text", className)
|
|
4698
4702
|
}, props));
|
|
4699
4703
|
});
|
|
4700
4704
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
@@ -7218,7 +7222,7 @@ var AppLayout = function(_param) {
|
|
|
7218
7222
|
return /* @__PURE__ */ import_react37.default.createElement("div", {
|
|
7219
7223
|
className: "hawa-fixed hawa-left-0"
|
|
7220
7224
|
}, props.topBar && /* @__PURE__ */ import_react37.default.createElement("div", {
|
|
7221
|
-
className: cn("hawa-fixed hawa-left-0 hawa-right-0 hawa-top-0 hawa-z-
|
|
7225
|
+
className: cn("hawa-fixed hawa-left-0 hawa-right-0 hawa-top-0 hawa-z-0 hawa-flex hawa-h-14 hawa-w-full hawa-items-center hawa-justify-between hawa-bg-primary-foreground hawa-p-2", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
7222
7226
|
}, size > 600 ? /* @__PURE__ */ import_react37.default.createElement("div", {
|
|
7223
7227
|
className: cn("dark:hawa-text-white", isRTL ? [
|
|
7224
7228
|
size > 600 ? "hawa-mr-14" : "hawa-mr-2",
|
|
@@ -7277,7 +7281,7 @@ var AppLayout = function(_param) {
|
|
|
7277
7281
|
clipRule: "evenodd"
|
|
7278
7282
|
})))
|
|
7279
7283
|
}))), /* @__PURE__ */ import_react37.default.createElement("div", {
|
|
7280
|
-
className: cn("hawa-fixed hawa-z-
|
|
7284
|
+
className: cn("hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all", isRTL ? "hawa-right-0 hawa-top-0 hawa-h-14" : "hawa-left-0 hawa-top-0 hawa-h-14", "hawa-h-[calc(100dvh)]"),
|
|
7281
7285
|
style: {
|
|
7282
7286
|
width: size > 600 ? openSideMenu ? "".concat(drawerSizeStyle["opened"][drawerSize], "px") : "".concat(drawerSizeStyle["closed"][drawerSize], "px") : openSideMenu ? "".concat(drawerSizeStyle["opened"][drawerSize], "px") : "0px"
|
|
7283
7287
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -2694,7 +2694,7 @@ var Tooltip = ({
|
|
|
2694
2694
|
|
|
2695
2695
|
// components/elements/Label.tsx
|
|
2696
2696
|
var Label2 = React14.forwardRef(
|
|
2697
|
-
({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React14.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-
|
|
2697
|
+
({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React14.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1 hawa-items-center" }, /* @__PURE__ */ React14.createElement(
|
|
2698
2698
|
"label",
|
|
2699
2699
|
{
|
|
2700
2700
|
ref,
|
|
@@ -3809,6 +3809,11 @@ var Combobox = ({
|
|
|
3809
3809
|
function getProperty(obj, key) {
|
|
3810
3810
|
return obj[key];
|
|
3811
3811
|
}
|
|
3812
|
+
const handleOpenChange = (open2) => {
|
|
3813
|
+
if (!(props.isLoading || props.preview)) {
|
|
3814
|
+
setOpen(open2);
|
|
3815
|
+
}
|
|
3816
|
+
};
|
|
3812
3817
|
return /* @__PURE__ */ React28.createElement(
|
|
3813
3818
|
"div",
|
|
3814
3819
|
{
|
|
@@ -3818,7 +3823,7 @@ var Combobox = ({
|
|
|
3818
3823
|
)
|
|
3819
3824
|
},
|
|
3820
3825
|
props.label && /* @__PURE__ */ React28.createElement(Label2, null, props.label),
|
|
3821
|
-
/* @__PURE__ */ React28.createElement(PopoverPrimitive2.Root, { open, onOpenChange:
|
|
3826
|
+
/* @__PURE__ */ React28.createElement(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange }, /* @__PURE__ */ React28.createElement(PopoverTrigger, { asChild: true }, props.isLoading ? /* @__PURE__ */ React28.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ React28.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ React28.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2 hawa-items-start " }, /* @__PURE__ */ React28.createElement(
|
|
3822
3827
|
"div",
|
|
3823
3828
|
{
|
|
3824
3829
|
className: cn(
|
|
@@ -4164,7 +4169,7 @@ import * as React32 from "react";
|
|
|
4164
4169
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
4165
4170
|
import { cva as cva2 } from "class-variance-authority";
|
|
4166
4171
|
var toastVariants = cva2(
|
|
4167
|
-
"hawa-group hawa-pointer-events-auto hawa-relative hawa-flex hawa-w-full hawa-items-center hawa-justify-between hawa-space-x-4 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-shadow-lg hawa-transition-all data-[swipe=cancel]:hawa-translate-x-0 data-[swipe=end]:hawa-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:hawa-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:hawa-transition-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[swipe=end]:hawa-animate-out data-[state=closed]:hawa-fade-out-80 data-[state=open]:hawa-slide-in-from-top-full data-[state=open]:sm:hawa-slide-in-from-bottom-full",
|
|
4172
|
+
"hawa-group hawa-z-[900] hawa-pointer-events-auto hawa-relative hawa-flex hawa-w-full hawa-items-center hawa-justify-between hawa-space-x-4 hawa-overflow-hidden hawa-rounded-md hawa-border hawa-shadow-lg hawa-transition-all data-[swipe=cancel]:hawa-translate-x-0 data-[swipe=end]:hawa-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:hawa-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:hawa-transition-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[swipe=end]:hawa-animate-out data-[state=closed]:hawa-fade-out-80 data-[state=open]:hawa-slide-in-from-top-full data-[state=open]:sm:hawa-slide-in-from-bottom-full",
|
|
4168
4173
|
{
|
|
4169
4174
|
variants: {
|
|
4170
4175
|
variant: {
|
|
@@ -4266,7 +4271,10 @@ var ToastTitle = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
4266
4271
|
ToastPrimitives.Title,
|
|
4267
4272
|
{
|
|
4268
4273
|
ref,
|
|
4269
|
-
className: cn(
|
|
4274
|
+
className: cn(
|
|
4275
|
+
"hawa-text-sm hawa-font-semibold hawa-select-text",
|
|
4276
|
+
className
|
|
4277
|
+
),
|
|
4270
4278
|
...props
|
|
4271
4279
|
}
|
|
4272
4280
|
));
|
|
@@ -4275,7 +4283,7 @@ var ToastDescription = React32.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
4275
4283
|
ToastPrimitives.Description,
|
|
4276
4284
|
{
|
|
4277
4285
|
ref,
|
|
4278
|
-
className: cn("hawa-text-sm hawa-opacity-90", className),
|
|
4286
|
+
className: cn("hawa-text-sm hawa-opacity-90 hawa-select-text", className),
|
|
4279
4287
|
...props
|
|
4280
4288
|
}
|
|
4281
4289
|
));
|
|
@@ -7034,7 +7042,7 @@ var AppLayout = ({
|
|
|
7034
7042
|
"div",
|
|
7035
7043
|
{
|
|
7036
7044
|
className: cn(
|
|
7037
|
-
"hawa-fixed hawa-left-0 hawa-right-0 hawa-top-0 hawa-z-
|
|
7045
|
+
"hawa-fixed hawa-left-0 hawa-right-0 hawa-top-0 hawa-z-0 hawa-flex hawa-h-14 hawa-w-full hawa-items-center hawa-justify-between hawa-bg-primary-foreground hawa-p-2",
|
|
7038
7046
|
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
|
7039
7047
|
)
|
|
7040
7048
|
},
|
|
@@ -7130,7 +7138,7 @@ var AppLayout = ({
|
|
|
7130
7138
|
"div",
|
|
7131
7139
|
{
|
|
7132
7140
|
className: cn(
|
|
7133
|
-
"hawa-fixed hawa-z-
|
|
7141
|
+
"hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all",
|
|
7134
7142
|
isRTL ? "hawa-right-0 hawa-top-0 hawa-h-14" : "hawa-left-0 hawa-top-0 hawa-h-14",
|
|
7135
7143
|
"hawa-h-[calc(100dvh)]"
|
|
7136
7144
|
),
|