@sikka/hawa 0.31.3-next → 0.31.5-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/appLayout/index.d.mts +1 -0
- package/dist/appLayout/index.d.ts +1 -0
- package/dist/appLayout/index.js +11 -8
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +11 -8
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/auth/index.js +8 -2
- package/dist/blocks/auth/index.mjs +4 -4
- package/dist/blocks/feedback/index.js +8 -2
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.js +8 -2
- package/dist/blocks/index.mjs +2 -2
- package/dist/blocks/misc/index.js +8 -2
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.js +8 -2
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/card/index.d.mts +1 -0
- package/dist/card/index.d.ts +1 -0
- package/dist/card/index.js +8 -2
- package/dist/card/index.js.map +1 -1
- package/dist/card/index.mjs +8 -2
- package/dist/card/index.mjs.map +1 -1
- package/dist/{chunk-X5YH2OOE.mjs → chunk-2QAGLSHC.mjs} +1 -1
- package/dist/{chunk-IKHGAGYN.mjs → chunk-34LNWMOZ.mjs} +1 -1
- package/dist/{chunk-HR37LWAO.mjs → chunk-3S44N7SB.mjs} +1 -1
- package/dist/{chunk-CRKKOXUP.mjs → chunk-6HRJIMXY.mjs} +1 -1
- package/dist/{chunk-XQ3GJWXB.mjs → chunk-MQWYXMSK.mjs} +8 -2
- package/dist/{chunk-NEJHLLDI.mjs → chunk-PA3Z7W32.mjs} +8 -2
- package/dist/{chunk-DNUJA5QC.mjs → chunk-S6TZHTWS.mjs} +1 -1
- package/dist/{chunk-MS7B36BZ.mjs → chunk-WUMWQIAW.mjs} +1 -1
- package/dist/{chunk-VYAFGNRW.mjs → chunk-XRUPXLOK.mjs} +1 -1
- package/dist/{chunk-YAGZ6WVL.mjs → chunk-XZLXGXIA.mjs} +1 -1
- package/dist/combobox/index.d.mts +1 -0
- package/dist/combobox/index.d.ts +1 -0
- package/dist/combobox/index.js +6 -5
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +6 -5
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/destroyableCard/index.js +8 -2
- package/dist/destroyableCard/index.js.map +1 -1
- package/dist/destroyableCard/index.mjs +8 -2
- package/dist/destroyableCard/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +2 -0
- package/dist/elements/index.d.ts +2 -0
- package/dist/elements/index.js +14 -7
- package/dist/elements/index.mjs +9 -8
- package/dist/index.css +12 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +25 -15
- package/dist/index.mjs +25 -15
- package/dist/layout/index.d.mts +1 -0
- package/dist/layout/index.d.ts +1 -0
- package/dist/layout/index.js +19 -10
- package/dist/layout/index.mjs +13 -10
- package/dist/sonner/index.js +4 -2
- package/dist/sonner/index.js.map +1 -1
- package/dist/sonner/index.mjs +4 -2
- package/dist/sonner/index.mjs.map +1 -1
- package/dist/stats/index.js +8 -2
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs +8 -2
- package/dist/stats/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/elements/index.mjs
CHANGED
@@ -27,7 +27,7 @@ import {
|
|
27
27
|
TabsTrigger,
|
28
28
|
Textarea,
|
29
29
|
UncheckMark
|
30
|
-
} from "../chunk-
|
30
|
+
} from "../chunk-6HRJIMXY.mjs";
|
31
31
|
import {
|
32
32
|
useClipboard
|
33
33
|
} from "../chunk-R2SKHHDK.mjs";
|
@@ -42,7 +42,7 @@ import {
|
|
42
42
|
SheetPortal,
|
43
43
|
SheetTitle,
|
44
44
|
SheetTrigger
|
45
|
-
} from "../chunk-
|
45
|
+
} from "../chunk-XZLXGXIA.mjs";
|
46
46
|
import {
|
47
47
|
Button,
|
48
48
|
Card,
|
@@ -76,7 +76,7 @@ import {
|
|
76
76
|
buttonVariants,
|
77
77
|
calculateLuminance,
|
78
78
|
cn
|
79
|
-
} from "../chunk-
|
79
|
+
} from "../chunk-MQWYXMSK.mjs";
|
80
80
|
import {
|
81
81
|
__require
|
82
82
|
} from "../chunk-UDCDD66A.mjs";
|
@@ -1479,6 +1479,7 @@ var Combobox = React13.forwardRef(
|
|
1479
1479
|
inputProps,
|
1480
1480
|
data,
|
1481
1481
|
renderOption,
|
1482
|
+
renderSelected,
|
1482
1483
|
...props
|
1483
1484
|
}, ref) => {
|
1484
1485
|
var _a, _b, _c;
|
@@ -1493,6 +1494,9 @@ var Combobox = React13.forwardRef(
|
|
1493
1494
|
setOpen(open2);
|
1494
1495
|
}
|
1495
1496
|
};
|
1497
|
+
const selectedItem = data.find(
|
1498
|
+
(item) => getProperty(item, valueKey) === value
|
1499
|
+
);
|
1496
1500
|
return /* @__PURE__ */ React13.createElement(
|
1497
1501
|
"div",
|
1498
1502
|
{
|
@@ -1522,10 +1526,7 @@ var Combobox = React13.forwardRef(
|
|
1522
1526
|
props.preview ? "hawa-cursor-default hawa-rounded-none hawa-border-transparent hawa-px-0" : "hawa-bg-background hawa-px-3 "
|
1523
1527
|
)
|
1524
1528
|
},
|
1525
|
-
|
1526
|
-
data.find((item) => item[valueKey] === value) || {},
|
1527
|
-
labelKey
|
1528
|
-
) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
|
1529
|
+
selectedItem ? renderSelected ? renderSelected(selectedItem) : getProperty(selectedItem, labelKey) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
|
1529
1530
|
/* @__PURE__ */ React13.createElement(
|
1530
1531
|
"svg",
|
1531
1532
|
{
|
@@ -1584,7 +1585,7 @@ var Combobox = React13.forwardRef(
|
|
1584
1585
|
{
|
1585
1586
|
className: cn(
|
1586
1587
|
"hawa-max-h-[200px]",
|
1587
|
-
data.length > 0 && "hawa-overflow-y-
|
1588
|
+
data.length > 0 && "hawa-overflow-y-auto"
|
1588
1589
|
)
|
1589
1590
|
},
|
1590
1591
|
data.map((item, i) => /* @__PURE__ */ React13.createElement(
|
package/dist/index.css
CHANGED
@@ -2151,12 +2151,18 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
2151
2151
|
.hawa-border-b-2 {
|
2152
2152
|
border-bottom-width: 2px;
|
2153
2153
|
}
|
2154
|
+
.hawa-border-b-\[1px\] {
|
2155
|
+
border-bottom-width: 1px;
|
2156
|
+
}
|
2154
2157
|
.hawa-border-e {
|
2155
2158
|
border-inline-end-width: 1px;
|
2156
2159
|
}
|
2157
2160
|
.hawa-border-e-2 {
|
2158
2161
|
border-inline-end-width: 2px;
|
2159
2162
|
}
|
2163
|
+
.hawa-border-e-\[1px\] {
|
2164
|
+
border-inline-end-width: 1px;
|
2165
|
+
}
|
2160
2166
|
.hawa-border-l {
|
2161
2167
|
border-left-width: 1px;
|
2162
2168
|
}
|
@@ -2172,6 +2178,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
2172
2178
|
.hawa-border-r-4 {
|
2173
2179
|
border-right-width: 4px;
|
2174
2180
|
}
|
2181
|
+
.hawa-border-s-\[1px\] {
|
2182
|
+
border-inline-start-width: 1px;
|
2183
|
+
}
|
2175
2184
|
.hawa-border-t {
|
2176
2185
|
border-top-width: 1px;
|
2177
2186
|
}
|
@@ -2774,6 +2783,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
2774
2783
|
font-size: 0.75rem;
|
2775
2784
|
line-height: 1rem;
|
2776
2785
|
}
|
2786
|
+
.\!hawa-font-bold {
|
2787
|
+
font-weight: 700 !important;
|
2788
|
+
}
|
2777
2789
|
.hawa-font-bold {
|
2778
2790
|
font-weight: 700;
|
2779
2791
|
}
|
package/dist/index.d.mts
CHANGED
@@ -26,6 +26,7 @@ import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
26
26
|
interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
27
27
|
clickable?: boolean;
|
28
28
|
variant?: "default" | "neoBrutalism";
|
29
|
+
asContainer?: boolean;
|
29
30
|
}
|
30
31
|
declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>>;
|
31
32
|
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
@@ -596,6 +597,7 @@ type ComboboxTypes<T> = {
|
|
596
597
|
isRequired?: boolean;
|
597
598
|
onChange?: (e: any) => void;
|
598
599
|
renderOption?: (item: T) => React$1.ReactNode;
|
600
|
+
renderSelected?: (item: T) => React$1.ReactNode;
|
599
601
|
};
|
600
602
|
declare const Combobox: React$1.ForwardRefExoticComponent<ComboboxTypes<any> & React$1.RefAttributes<HTMLDivElement>>;
|
601
603
|
|
@@ -1205,6 +1207,7 @@ type AppLayoutTypes$1 = {
|
|
1205
1207
|
/** a custom header to replace the logoLink & logoSymbol */
|
1206
1208
|
header?: React__default.ReactNode;
|
1207
1209
|
design?: "default";
|
1210
|
+
bordered?: boolean;
|
1208
1211
|
/** The pages of the side drawer */
|
1209
1212
|
drawerItems: AppSidebarItemProps[];
|
1210
1213
|
/** The direction of the layout */
|
package/dist/index.d.ts
CHANGED
@@ -26,6 +26,7 @@ import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
26
26
|
interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
27
27
|
clickable?: boolean;
|
28
28
|
variant?: "default" | "neoBrutalism";
|
29
|
+
asContainer?: boolean;
|
29
30
|
}
|
30
31
|
declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>>;
|
31
32
|
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
@@ -596,6 +597,7 @@ type ComboboxTypes<T> = {
|
|
596
597
|
isRequired?: boolean;
|
597
598
|
onChange?: (e: any) => void;
|
598
599
|
renderOption?: (item: T) => React$1.ReactNode;
|
600
|
+
renderSelected?: (item: T) => React$1.ReactNode;
|
599
601
|
};
|
600
602
|
declare const Combobox: React$1.ForwardRefExoticComponent<ComboboxTypes<any> & React$1.RefAttributes<HTMLDivElement>>;
|
601
603
|
|
@@ -1205,6 +1207,7 @@ type AppLayoutTypes$1 = {
|
|
1205
1207
|
/** a custom header to replace the logoLink & logoSymbol */
|
1206
1208
|
header?: React__default.ReactNode;
|
1207
1209
|
design?: "default";
|
1210
|
+
bordered?: boolean;
|
1208
1211
|
/** The pages of the side drawer */
|
1209
1212
|
drawerItems: AppSidebarItemProps[];
|
1210
1213
|
/** The direction of the layout */
|
package/dist/index.js
CHANGED
@@ -276,7 +276,13 @@ var calculateLuminance = (color) => {
|
|
276
276
|
|
277
277
|
// elements/card/Card.tsx
|
278
278
|
var Card = React.forwardRef(
|
279
|
-
({
|
279
|
+
({
|
280
|
+
className,
|
281
|
+
variant = "default",
|
282
|
+
clickable = false,
|
283
|
+
asContainer = false,
|
284
|
+
...props
|
285
|
+
}, ref) => {
|
280
286
|
let variantStyles = {
|
281
287
|
default: cn(
|
282
288
|
"hawa-rounded-lg hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
|
@@ -292,7 +298,7 @@ var Card = React.forwardRef(
|
|
292
298
|
"div",
|
293
299
|
{
|
294
300
|
ref,
|
295
|
-
className: cn(className, variantStyles[variant]),
|
301
|
+
className: cn(className, !asContainer && variantStyles[variant]),
|
296
302
|
...props
|
297
303
|
}
|
298
304
|
);
|
@@ -3705,6 +3711,7 @@ var Combobox = React27.forwardRef(
|
|
3705
3711
|
inputProps,
|
3706
3712
|
data,
|
3707
3713
|
renderOption,
|
3714
|
+
renderSelected,
|
3708
3715
|
...props
|
3709
3716
|
}, ref) => {
|
3710
3717
|
var _a, _b, _c;
|
@@ -3719,6 +3726,9 @@ var Combobox = React27.forwardRef(
|
|
3719
3726
|
setOpen(open2);
|
3720
3727
|
}
|
3721
3728
|
};
|
3729
|
+
const selectedItem = data.find(
|
3730
|
+
(item) => getProperty(item, valueKey) === value
|
3731
|
+
);
|
3722
3732
|
return /* @__PURE__ */ React27.createElement(
|
3723
3733
|
"div",
|
3724
3734
|
{
|
@@ -3748,10 +3758,7 @@ var Combobox = React27.forwardRef(
|
|
3748
3758
|
props.preview ? "hawa-cursor-default hawa-rounded-none hawa-border-transparent hawa-px-0" : "hawa-bg-background hawa-px-3 "
|
3749
3759
|
)
|
3750
3760
|
},
|
3751
|
-
|
3752
|
-
data.find((item) => item[valueKey] === value) || {},
|
3753
|
-
labelKey
|
3754
|
-
) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
|
3761
|
+
selectedItem ? renderSelected ? renderSelected(selectedItem) : getProperty(selectedItem, labelKey) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
|
3755
3762
|
/* @__PURE__ */ React27.createElement(
|
3756
3763
|
"svg",
|
3757
3764
|
{
|
@@ -3810,7 +3817,7 @@ var Combobox = React27.forwardRef(
|
|
3810
3817
|
{
|
3811
3818
|
className: cn(
|
3812
3819
|
"hawa-max-h-[200px]",
|
3813
|
-
data.length > 0 && "hawa-overflow-y-
|
3820
|
+
data.length > 0 && "hawa-overflow-y-auto"
|
3814
3821
|
)
|
3815
3822
|
},
|
3816
3823
|
data.map((item, i) => /* @__PURE__ */ React27.createElement(
|
@@ -9016,6 +9023,7 @@ var AppLayout = ({
|
|
9016
9023
|
profileMenuWidth = "default",
|
9017
9024
|
DrawerFooterActions,
|
9018
9025
|
classNames,
|
9026
|
+
bordered = true,
|
9019
9027
|
design = "default",
|
9020
9028
|
direction = "ltr",
|
9021
9029
|
drawerSize = "md",
|
@@ -9079,7 +9087,8 @@ var AppLayout = ({
|
|
9079
9087
|
{
|
9080
9088
|
className: cn(
|
9081
9089
|
"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",
|
9082
|
-
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9090
|
+
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row",
|
9091
|
+
bordered && "hawa-border-b-[1px]"
|
9083
9092
|
)
|
9084
9093
|
},
|
9085
9094
|
size > 600 ? /* @__PURE__ */ import_react54.default.createElement(
|
@@ -9175,9 +9184,11 @@ var AppLayout = ({
|
|
9175
9184
|
"div",
|
9176
9185
|
{
|
9177
9186
|
className: cn(
|
9178
|
-
"hawa-fixed hawa-z-0 hawa-flex
|
9187
|
+
"hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all",
|
9179
9188
|
isRTL ? "hawa-right-0 hawa-top-0 hawa-h-14" : "hawa-left-0 hawa-top-0 hawa-h-14",
|
9180
|
-
"hawa-h-[calc(100dvh)]"
|
9189
|
+
"hawa-h-[calc(100dvh)]",
|
9190
|
+
"hawa-bg-primary-foreground",
|
9191
|
+
bordered ? direction === "rtl" ? "hawa-border-s-[1px]" : "hawa-border-e-[1px]" : ""
|
9181
9192
|
),
|
9182
9193
|
style: {
|
9183
9194
|
width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
|
@@ -9205,7 +9216,7 @@ var AppLayout = ({
|
|
9205
9216
|
onClick: props.onLogoClick,
|
9206
9217
|
dir: direction,
|
9207
9218
|
className: cn(
|
9208
|
-
"hawa-fixed hawa-z-50 hawa-mb-2 hawa-flex hawa-h-14 hawa-w-full hawa-flex-row hawa-items-center hawa-justify-center hawa-
|
9219
|
+
"hawa-fixed hawa-z-50 hawa-mb-2 hawa-flex hawa-h-14 hawa-w-full hawa-flex-row hawa-items-center hawa-justify-center hawa-transition-all",
|
9209
9220
|
props.onLogoClick && "hawa-cursor-pointer",
|
9210
9221
|
classNames == null ? void 0 : classNames.logoContainer
|
9211
9222
|
),
|
@@ -9242,7 +9253,7 @@ var AppLayout = ({
|
|
9242
9253
|
"div",
|
9243
9254
|
{
|
9244
9255
|
className: cn(
|
9245
|
-
"hawa-fixed hawa-bottom-14 hawa-top-14 hawa-
|
9256
|
+
"hawa-fixed hawa-bottom-14 hawa-top-14 hawa-p-0 hawa-py-2 hawa-transition-all",
|
9246
9257
|
openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"
|
9247
9258
|
),
|
9248
9259
|
style: {
|
@@ -9276,9 +9287,8 @@ var AppLayout = ({
|
|
9276
9287
|
"div",
|
9277
9288
|
{
|
9278
9289
|
className: cn(
|
9279
|
-
"hawa-fixed
|
9280
|
-
direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9281
|
-
"hawa-bottom-0"
|
9290
|
+
"hawa-fixed hawa-bottom-0 hawa-flex hawa-h-14 hawa-items-center hawa-justify-center hawa-gap-2 hawa-overflow-clip hawa-transition-all",
|
9291
|
+
direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9282
9292
|
),
|
9283
9293
|
style: {
|
9284
9294
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
package/dist/index.mjs
CHANGED
@@ -38,7 +38,13 @@ var calculateLuminance = (color) => {
|
|
38
38
|
|
39
39
|
// elements/card/Card.tsx
|
40
40
|
var Card = React.forwardRef(
|
41
|
-
({
|
41
|
+
({
|
42
|
+
className,
|
43
|
+
variant = "default",
|
44
|
+
clickable = false,
|
45
|
+
asContainer = false,
|
46
|
+
...props
|
47
|
+
}, ref) => {
|
42
48
|
let variantStyles = {
|
43
49
|
default: cn(
|
44
50
|
"hawa-rounded-lg hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
|
@@ -54,7 +60,7 @@ var Card = React.forwardRef(
|
|
54
60
|
"div",
|
55
61
|
{
|
56
62
|
ref,
|
57
|
-
className: cn(className, variantStyles[variant]),
|
63
|
+
className: cn(className, !asContainer && variantStyles[variant]),
|
58
64
|
...props
|
59
65
|
}
|
60
66
|
);
|
@@ -3475,6 +3481,7 @@ var Combobox = React27.forwardRef(
|
|
3475
3481
|
inputProps,
|
3476
3482
|
data,
|
3477
3483
|
renderOption,
|
3484
|
+
renderSelected,
|
3478
3485
|
...props
|
3479
3486
|
}, ref) => {
|
3480
3487
|
var _a, _b, _c;
|
@@ -3489,6 +3496,9 @@ var Combobox = React27.forwardRef(
|
|
3489
3496
|
setOpen(open2);
|
3490
3497
|
}
|
3491
3498
|
};
|
3499
|
+
const selectedItem = data.find(
|
3500
|
+
(item) => getProperty(item, valueKey) === value
|
3501
|
+
);
|
3492
3502
|
return /* @__PURE__ */ React27.createElement(
|
3493
3503
|
"div",
|
3494
3504
|
{
|
@@ -3518,10 +3528,7 @@ var Combobox = React27.forwardRef(
|
|
3518
3528
|
props.preview ? "hawa-cursor-default hawa-rounded-none hawa-border-transparent hawa-px-0" : "hawa-bg-background hawa-px-3 "
|
3519
3529
|
)
|
3520
3530
|
},
|
3521
|
-
|
3522
|
-
data.find((item) => item[valueKey] === value) || {},
|
3523
|
-
labelKey
|
3524
|
-
) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
|
3531
|
+
selectedItem ? renderSelected ? renderSelected(selectedItem) : getProperty(selectedItem, labelKey) : ((_a = props.texts) == null ? void 0 : _a.placeholder) || ". . .",
|
3525
3532
|
/* @__PURE__ */ React27.createElement(
|
3526
3533
|
"svg",
|
3527
3534
|
{
|
@@ -3580,7 +3587,7 @@ var Combobox = React27.forwardRef(
|
|
3580
3587
|
{
|
3581
3588
|
className: cn(
|
3582
3589
|
"hawa-max-h-[200px]",
|
3583
|
-
data.length > 0 && "hawa-overflow-y-
|
3590
|
+
data.length > 0 && "hawa-overflow-y-auto"
|
3584
3591
|
)
|
3585
3592
|
},
|
3586
3593
|
data.map((item, i) => /* @__PURE__ */ React27.createElement(
|
@@ -8793,6 +8800,7 @@ var AppLayout = ({
|
|
8793
8800
|
profileMenuWidth = "default",
|
8794
8801
|
DrawerFooterActions,
|
8795
8802
|
classNames,
|
8803
|
+
bordered = true,
|
8796
8804
|
design = "default",
|
8797
8805
|
direction = "ltr",
|
8798
8806
|
drawerSize = "md",
|
@@ -8856,7 +8864,8 @@ var AppLayout = ({
|
|
8856
8864
|
{
|
8857
8865
|
className: cn(
|
8858
8866
|
"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",
|
8859
|
-
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
8867
|
+
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row",
|
8868
|
+
bordered && "hawa-border-b-[1px]"
|
8860
8869
|
)
|
8861
8870
|
},
|
8862
8871
|
size > 600 ? /* @__PURE__ */ React75.createElement(
|
@@ -8952,9 +8961,11 @@ var AppLayout = ({
|
|
8952
8961
|
"div",
|
8953
8962
|
{
|
8954
8963
|
className: cn(
|
8955
|
-
"hawa-fixed hawa-z-0 hawa-flex
|
8964
|
+
"hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all",
|
8956
8965
|
isRTL ? "hawa-right-0 hawa-top-0 hawa-h-14" : "hawa-left-0 hawa-top-0 hawa-h-14",
|
8957
|
-
"hawa-h-[calc(100dvh)]"
|
8966
|
+
"hawa-h-[calc(100dvh)]",
|
8967
|
+
"hawa-bg-primary-foreground",
|
8968
|
+
bordered ? direction === "rtl" ? "hawa-border-s-[1px]" : "hawa-border-e-[1px]" : ""
|
8958
8969
|
),
|
8959
8970
|
style: {
|
8960
8971
|
width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
|
@@ -8982,7 +8993,7 @@ var AppLayout = ({
|
|
8982
8993
|
onClick: props.onLogoClick,
|
8983
8994
|
dir: direction,
|
8984
8995
|
className: cn(
|
8985
|
-
"hawa-fixed hawa-z-50 hawa-mb-2 hawa-flex hawa-h-14 hawa-w-full hawa-flex-row hawa-items-center hawa-justify-center hawa-
|
8996
|
+
"hawa-fixed hawa-z-50 hawa-mb-2 hawa-flex hawa-h-14 hawa-w-full hawa-flex-row hawa-items-center hawa-justify-center hawa-transition-all",
|
8986
8997
|
props.onLogoClick && "hawa-cursor-pointer",
|
8987
8998
|
classNames == null ? void 0 : classNames.logoContainer
|
8988
8999
|
),
|
@@ -9019,7 +9030,7 @@ var AppLayout = ({
|
|
9019
9030
|
"div",
|
9020
9031
|
{
|
9021
9032
|
className: cn(
|
9022
|
-
"hawa-fixed hawa-bottom-14 hawa-top-14 hawa-
|
9033
|
+
"hawa-fixed hawa-bottom-14 hawa-top-14 hawa-p-0 hawa-py-2 hawa-transition-all",
|
9023
9034
|
openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"
|
9024
9035
|
),
|
9025
9036
|
style: {
|
@@ -9053,9 +9064,8 @@ var AppLayout = ({
|
|
9053
9064
|
"div",
|
9054
9065
|
{
|
9055
9066
|
className: cn(
|
9056
|
-
"hawa-fixed
|
9057
|
-
direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9058
|
-
"hawa-bottom-0"
|
9067
|
+
"hawa-fixed hawa-bottom-0 hawa-flex hawa-h-14 hawa-items-center hawa-justify-center hawa-gap-2 hawa-overflow-clip hawa-transition-all",
|
9068
|
+
direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
9059
9069
|
),
|
9060
9070
|
style: {
|
9061
9071
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
package/dist/layout/index.d.mts
CHANGED
@@ -98,6 +98,7 @@ type AppLayoutTypes$1 = {
|
|
98
98
|
/** a custom header to replace the logoLink & logoSymbol */
|
99
99
|
header?: React__default.ReactNode;
|
100
100
|
design?: "default";
|
101
|
+
bordered?: boolean;
|
101
102
|
/** The pages of the side drawer */
|
102
103
|
drawerItems: AppSidebarItemProps[];
|
103
104
|
/** The direction of the layout */
|
package/dist/layout/index.d.ts
CHANGED
@@ -98,6 +98,7 @@ type AppLayoutTypes$1 = {
|
|
98
98
|
/** a custom header to replace the logoLink & logoSymbol */
|
99
99
|
header?: React__default.ReactNode;
|
100
100
|
design?: "default";
|
101
|
+
bordered?: boolean;
|
101
102
|
/** The pages of the side drawer */
|
102
103
|
drawerItems: AppSidebarItemProps[];
|
103
104
|
/** The direction of the layout */
|
package/dist/layout/index.js
CHANGED
@@ -75,7 +75,13 @@ function cn(...inputs) {
|
|
75
75
|
|
76
76
|
// elements/card/Card.tsx
|
77
77
|
var Card = React.forwardRef(
|
78
|
-
({
|
78
|
+
({
|
79
|
+
className,
|
80
|
+
variant = "default",
|
81
|
+
clickable = false,
|
82
|
+
asContainer = false,
|
83
|
+
...props
|
84
|
+
}, ref) => {
|
79
85
|
let variantStyles = {
|
80
86
|
default: cn(
|
81
87
|
"hawa-rounded-lg hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
|
@@ -91,7 +97,7 @@ var Card = React.forwardRef(
|
|
91
97
|
"div",
|
92
98
|
{
|
93
99
|
ref,
|
94
|
-
className: cn(className, variantStyles[variant]),
|
100
|
+
className: cn(className, !asContainer && variantStyles[variant]),
|
95
101
|
...props
|
96
102
|
}
|
97
103
|
);
|
@@ -1386,6 +1392,7 @@ var AppLayout = ({
|
|
1386
1392
|
profileMenuWidth = "default",
|
1387
1393
|
DrawerFooterActions,
|
1388
1394
|
classNames,
|
1395
|
+
bordered = true,
|
1389
1396
|
design = "default",
|
1390
1397
|
direction = "ltr",
|
1391
1398
|
drawerSize = "md",
|
@@ -1449,7 +1456,8 @@ var AppLayout = ({
|
|
1449
1456
|
{
|
1450
1457
|
className: cn(
|
1451
1458
|
"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",
|
1452
|
-
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
1459
|
+
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row",
|
1460
|
+
bordered && "hawa-border-b-[1px]"
|
1453
1461
|
)
|
1454
1462
|
},
|
1455
1463
|
size > 600 ? /* @__PURE__ */ import_react8.default.createElement(
|
@@ -1545,9 +1553,11 @@ var AppLayout = ({
|
|
1545
1553
|
"div",
|
1546
1554
|
{
|
1547
1555
|
className: cn(
|
1548
|
-
"hawa-fixed hawa-z-0 hawa-flex
|
1556
|
+
"hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all",
|
1549
1557
|
isRTL ? "hawa-right-0 hawa-top-0 hawa-h-14" : "hawa-left-0 hawa-top-0 hawa-h-14",
|
1550
|
-
"hawa-h-[calc(100dvh)]"
|
1558
|
+
"hawa-h-[calc(100dvh)]",
|
1559
|
+
"hawa-bg-primary-foreground",
|
1560
|
+
bordered ? direction === "rtl" ? "hawa-border-s-[1px]" : "hawa-border-e-[1px]" : ""
|
1551
1561
|
),
|
1552
1562
|
style: {
|
1553
1563
|
width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
|
@@ -1575,7 +1585,7 @@ var AppLayout = ({
|
|
1575
1585
|
onClick: props.onLogoClick,
|
1576
1586
|
dir: direction,
|
1577
1587
|
className: cn(
|
1578
|
-
"hawa-fixed hawa-z-50 hawa-mb-2 hawa-flex hawa-h-14 hawa-w-full hawa-flex-row hawa-items-center hawa-justify-center hawa-
|
1588
|
+
"hawa-fixed hawa-z-50 hawa-mb-2 hawa-flex hawa-h-14 hawa-w-full hawa-flex-row hawa-items-center hawa-justify-center hawa-transition-all",
|
1579
1589
|
props.onLogoClick && "hawa-cursor-pointer",
|
1580
1590
|
classNames == null ? void 0 : classNames.logoContainer
|
1581
1591
|
),
|
@@ -1612,7 +1622,7 @@ var AppLayout = ({
|
|
1612
1622
|
"div",
|
1613
1623
|
{
|
1614
1624
|
className: cn(
|
1615
|
-
"hawa-fixed hawa-bottom-14 hawa-top-14 hawa-
|
1625
|
+
"hawa-fixed hawa-bottom-14 hawa-top-14 hawa-p-0 hawa-py-2 hawa-transition-all",
|
1616
1626
|
openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"
|
1617
1627
|
),
|
1618
1628
|
style: {
|
@@ -1646,9 +1656,8 @@ var AppLayout = ({
|
|
1646
1656
|
"div",
|
1647
1657
|
{
|
1648
1658
|
className: cn(
|
1649
|
-
"hawa-fixed
|
1650
|
-
direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
1651
|
-
"hawa-bottom-0"
|
1659
|
+
"hawa-fixed hawa-bottom-0 hawa-flex hawa-h-14 hawa-items-center hawa-justify-center hawa-gap-2 hawa-overflow-clip hawa-transition-all",
|
1660
|
+
direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
1652
1661
|
),
|
1653
1662
|
style: {
|
1654
1663
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
package/dist/layout/index.mjs
CHANGED
@@ -3,7 +3,7 @@ import {
|
|
3
3
|
Sheet,
|
4
4
|
SheetContent,
|
5
5
|
SheetTrigger
|
6
|
-
} from "../chunk-
|
6
|
+
} from "../chunk-XZLXGXIA.mjs";
|
7
7
|
import {
|
8
8
|
Button,
|
9
9
|
Card,
|
@@ -15,7 +15,7 @@ import {
|
|
15
15
|
Skeleton,
|
16
16
|
Tooltip,
|
17
17
|
cn
|
18
|
-
} from "../chunk-
|
18
|
+
} from "../chunk-MQWYXMSK.mjs";
|
19
19
|
import {
|
20
20
|
useBreakpoint
|
21
21
|
} from "../chunk-UDCDD66A.mjs";
|
@@ -397,6 +397,7 @@ var AppLayout = ({
|
|
397
397
|
profileMenuWidth = "default",
|
398
398
|
DrawerFooterActions,
|
399
399
|
classNames,
|
400
|
+
bordered = true,
|
400
401
|
design = "default",
|
401
402
|
direction = "ltr",
|
402
403
|
drawerSize = "md",
|
@@ -460,7 +461,8 @@ var AppLayout = ({
|
|
460
461
|
{
|
461
462
|
className: cn(
|
462
463
|
"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",
|
463
|
-
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
464
|
+
isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row",
|
465
|
+
bordered && "hawa-border-b-[1px]"
|
464
466
|
)
|
465
467
|
},
|
466
468
|
size > 600 ? /* @__PURE__ */ React5.createElement(
|
@@ -556,9 +558,11 @@ var AppLayout = ({
|
|
556
558
|
"div",
|
557
559
|
{
|
558
560
|
className: cn(
|
559
|
-
"hawa-fixed hawa-z-0 hawa-flex
|
561
|
+
"hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all",
|
560
562
|
isRTL ? "hawa-right-0 hawa-top-0 hawa-h-14" : "hawa-left-0 hawa-top-0 hawa-h-14",
|
561
|
-
"hawa-h-[calc(100dvh)]"
|
563
|
+
"hawa-h-[calc(100dvh)]",
|
564
|
+
"hawa-bg-primary-foreground",
|
565
|
+
bordered ? direction === "rtl" ? "hawa-border-s-[1px]" : "hawa-border-e-[1px]" : ""
|
562
566
|
),
|
563
567
|
style: {
|
564
568
|
width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
|
@@ -586,7 +590,7 @@ var AppLayout = ({
|
|
586
590
|
onClick: props.onLogoClick,
|
587
591
|
dir: direction,
|
588
592
|
className: cn(
|
589
|
-
"hawa-fixed hawa-z-50 hawa-mb-2 hawa-flex hawa-h-14 hawa-w-full hawa-flex-row hawa-items-center hawa-justify-center hawa-
|
593
|
+
"hawa-fixed hawa-z-50 hawa-mb-2 hawa-flex hawa-h-14 hawa-w-full hawa-flex-row hawa-items-center hawa-justify-center hawa-transition-all",
|
590
594
|
props.onLogoClick && "hawa-cursor-pointer",
|
591
595
|
classNames == null ? void 0 : classNames.logoContainer
|
592
596
|
),
|
@@ -623,7 +627,7 @@ var AppLayout = ({
|
|
623
627
|
"div",
|
624
628
|
{
|
625
629
|
className: cn(
|
626
|
-
"hawa-fixed hawa-bottom-14 hawa-top-14 hawa-
|
630
|
+
"hawa-fixed hawa-bottom-14 hawa-top-14 hawa-p-0 hawa-py-2 hawa-transition-all",
|
627
631
|
openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"
|
628
632
|
),
|
629
633
|
style: {
|
@@ -657,9 +661,8 @@ var AppLayout = ({
|
|
657
661
|
"div",
|
658
662
|
{
|
659
663
|
className: cn(
|
660
|
-
"hawa-fixed
|
661
|
-
direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
662
|
-
"hawa-bottom-0"
|
664
|
+
"hawa-fixed hawa-bottom-0 hawa-flex hawa-h-14 hawa-items-center hawa-justify-center hawa-gap-2 hawa-overflow-clip hawa-transition-all",
|
665
|
+
direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row"
|
663
666
|
),
|
664
667
|
style: {
|
665
668
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
package/dist/sonner/index.js
CHANGED
@@ -49,11 +49,13 @@ var Sonner = ({ ...props }) => {
|
|
49
49
|
toastOptions: {
|
50
50
|
classNames: {
|
51
51
|
toast: "group toast group-[.toaster]:hawa-bg-background group-[.toaster]:hawa-text-foreground group-[.toaster]:hawa-border-border group-[.toaster]:hawa-shadow-lg",
|
52
|
-
description: "group-[.toast]:text-muted-foreground",
|
52
|
+
description: "group-[.toast]:hawa-text-muted-foreground",
|
53
53
|
actionButton: "group-[.toast]:hawa-bg-primary group-[.toast]:hawa-text-primary-foreground",
|
54
|
-
cancelButton: "group-[.toast]:hawa-bg-muted group-[.toast]:hawa-text-muted-foreground"
|
54
|
+
cancelButton: "group-[.toast]:hawa-bg-muted group-[.toast]:hawa-text-muted-foreground",
|
55
|
+
title: "!hawa-font-bold"
|
55
56
|
}
|
56
57
|
},
|
58
|
+
style: { fontFamily: "IBM Plex Sans Arabic" },
|
57
59
|
...props
|
58
60
|
}
|
59
61
|
);
|
package/dist/sonner/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../elements/sonner/index.ts","../../elements/sonner/Sonner.tsx"],"sourcesContent":["export * from \"./Sonner\";\n","import React from \"react\";\n\nimport { Toaster as SonnerToaster, toast } from \"sonner\";\n\nimport { DirectionType } from \"@_types/commonTypes\";\n\ntype SonnerProps = React.ComponentProps<typeof SonnerToaster> & {\n direction?: DirectionType;\n};\n\nconst Sonner = ({ ...props }: SonnerProps) => {\n return (\n <SonnerToaster\n
|
1
|
+
{"version":3,"sources":["../../elements/sonner/index.ts","../../elements/sonner/Sonner.tsx"],"sourcesContent":["export * from \"./Sonner\";\n","import React from \"react\";\n\nimport { Toaster as SonnerToaster, toast } from \"sonner\";\n\nimport { DirectionType } from \"@_types/commonTypes\";\n\ntype SonnerProps = React.ComponentProps<typeof SonnerToaster> & {\n direction?: DirectionType;\n};\n\nconst Sonner = ({ ...props }: SonnerProps) => {\n return (\n <SonnerToaster\n dir={props.direction}\n position={props.direction === \"rtl\" ? \"bottom-left\" : \"bottom-right\"}\n className=\"toaster group\"\n toastOptions={{\n classNames: {\n toast:\n \"group toast group-[.toaster]:hawa-bg-background group-[.toaster]:hawa-text-foreground group-[.toaster]:hawa-border-border group-[.toaster]:hawa-shadow-lg\",\n description: \"group-[.toast]:hawa-text-muted-foreground\",\n actionButton:\n \"group-[.toast]:hawa-bg-primary group-[.toast]:hawa-text-primary-foreground\",\n cancelButton:\n \"group-[.toast]:hawa-bg-muted group-[.toast]:hawa-text-muted-foreground\",\n title: \"!hawa-font-bold\",\n },\n }}\n style={{ fontFamily: \"IBM Plex Sans Arabic\" }}\n {...props}\n />\n );\n};\n\nconst createSonner: typeof toast = toast;\n\nexport { Sonner, createSonner };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAkB;AAElB,oBAAgD;AAQhD,IAAM,SAAS,CAAC,EAAE,GAAG,MAAM,MAAmB;AAC5C,SACE,6BAAAA,QAAA;AAAA,IAAC,cAAAC;AAAA,IAAA;AAAA,MACC,KAAK,MAAM;AAAA,MACX,UAAU,MAAM,cAAc,QAAQ,gBAAgB;AAAA,MACtD,WAAU;AAAA,MACV,cAAc;AAAA,QACZ,YAAY;AAAA,UACV,OACE;AAAA,UACF,aAAa;AAAA,UACb,cACE;AAAA,UACF,cACE;AAAA,UACF,OAAO;AAAA,QACT;AAAA,MACF;AAAA,MACA,OAAO,EAAE,YAAY,uBAAuB;AAAA,MAC3C,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,IAAM,eAA6B;","names":["React","SonnerToaster"]}
|
package/dist/sonner/index.mjs
CHANGED
@@ -13,11 +13,13 @@ var Sonner = ({ ...props }) => {
|
|
13
13
|
toastOptions: {
|
14
14
|
classNames: {
|
15
15
|
toast: "group toast group-[.toaster]:hawa-bg-background group-[.toaster]:hawa-text-foreground group-[.toaster]:hawa-border-border group-[.toaster]:hawa-shadow-lg",
|
16
|
-
description: "group-[.toast]:text-muted-foreground",
|
16
|
+
description: "group-[.toast]:hawa-text-muted-foreground",
|
17
17
|
actionButton: "group-[.toast]:hawa-bg-primary group-[.toast]:hawa-text-primary-foreground",
|
18
|
-
cancelButton: "group-[.toast]:hawa-bg-muted group-[.toast]:hawa-text-muted-foreground"
|
18
|
+
cancelButton: "group-[.toast]:hawa-bg-muted group-[.toast]:hawa-text-muted-foreground",
|
19
|
+
title: "!hawa-font-bold"
|
19
20
|
}
|
20
21
|
},
|
22
|
+
style: { fontFamily: "IBM Plex Sans Arabic" },
|
21
23
|
...props
|
22
24
|
}
|
23
25
|
);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../elements/sonner/Sonner.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Toaster as SonnerToaster, toast } from \"sonner\";\n\nimport { DirectionType } from \"@_types/commonTypes\";\n\ntype SonnerProps = React.ComponentProps<typeof SonnerToaster> & {\n direction?: DirectionType;\n};\n\nconst Sonner = ({ ...props }: SonnerProps) => {\n return (\n <SonnerToaster\n
|
1
|
+
{"version":3,"sources":["../../elements/sonner/Sonner.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Toaster as SonnerToaster, toast } from \"sonner\";\n\nimport { DirectionType } from \"@_types/commonTypes\";\n\ntype SonnerProps = React.ComponentProps<typeof SonnerToaster> & {\n direction?: DirectionType;\n};\n\nconst Sonner = ({ ...props }: SonnerProps) => {\n return (\n <SonnerToaster\n dir={props.direction}\n position={props.direction === \"rtl\" ? \"bottom-left\" : \"bottom-right\"}\n className=\"toaster group\"\n toastOptions={{\n classNames: {\n toast:\n \"group toast group-[.toaster]:hawa-bg-background group-[.toaster]:hawa-text-foreground group-[.toaster]:hawa-border-border group-[.toaster]:hawa-shadow-lg\",\n description: \"group-[.toast]:hawa-text-muted-foreground\",\n actionButton:\n \"group-[.toast]:hawa-bg-primary group-[.toast]:hawa-text-primary-foreground\",\n cancelButton:\n \"group-[.toast]:hawa-bg-muted group-[.toast]:hawa-text-muted-foreground\",\n title: \"!hawa-font-bold\",\n },\n }}\n style={{ fontFamily: \"IBM Plex Sans Arabic\" }}\n {...props}\n />\n );\n};\n\nconst createSonner: typeof toast = toast;\n\nexport { Sonner, createSonner };\n"],"mappings":";;;AAAA,OAAO,WAAW;AAElB,SAAS,WAAW,eAAe,aAAa;AAQhD,IAAM,SAAS,CAAC,EAAE,GAAG,MAAM,MAAmB;AAC5C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,KAAK,MAAM;AAAA,MACX,UAAU,MAAM,cAAc,QAAQ,gBAAgB;AAAA,MACtD,WAAU;AAAA,MACV,cAAc;AAAA,QACZ,YAAY;AAAA,UACV,OACE;AAAA,UACF,aAAa;AAAA,UACb,cACE;AAAA,UACF,cACE;AAAA,UACF,OAAO;AAAA,QACT;AAAA,MACF;AAAA,MACA,OAAO,EAAE,YAAY,uBAAuB;AAAA,MAC3C,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,IAAM,eAA6B;","names":[]}
|
package/dist/stats/index.js
CHANGED
@@ -50,7 +50,13 @@ function cn(...inputs) {
|
|
50
50
|
|
51
51
|
// elements/card/Card.tsx
|
52
52
|
var Card = React.forwardRef(
|
53
|
-
({
|
53
|
+
({
|
54
|
+
className,
|
55
|
+
variant = "default",
|
56
|
+
clickable = false,
|
57
|
+
asContainer = false,
|
58
|
+
...props
|
59
|
+
}, ref) => {
|
54
60
|
let variantStyles = {
|
55
61
|
default: cn(
|
56
62
|
"hawa-rounded-lg hawa-border hawa-bg-card hawa-text-card-foreground hawa-shadow-sm",
|
@@ -66,7 +72,7 @@ var Card = React.forwardRef(
|
|
66
72
|
"div",
|
67
73
|
{
|
68
74
|
ref,
|
69
|
-
className: cn(className, variantStyles[variant]),
|
75
|
+
className: cn(className, !asContainer && variantStyles[variant]),
|
70
76
|
...props
|
71
77
|
}
|
72
78
|
);
|