@sikka/hawa 0.8.10-next → 0.8.12-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 +26 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -17
- package/dist/index.mjs +19 -18
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -431,8 +431,18 @@ video {
|
|
|
431
431
|
--muted-foreground: 240 5% 64.9%;
|
|
432
432
|
--accent: 240 3.7% 15.9%;
|
|
433
433
|
--accent-foreground: 0 0% 98%;
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
--success: 106 70% 40%; /* A shade of green */
|
|
437
|
+
--success-foreground: 0 0% 100%; /* White */
|
|
438
|
+
--info: 200 100% 30%; /* A shade of blue */
|
|
439
|
+
--info-foreground: 0 0% 100%; /* White */
|
|
440
|
+
--warning: 45 100% 50%; /* A shade of yellow */
|
|
441
|
+
--warning-foreground: 0 0% 20%; /* Dark grey */
|
|
442
|
+
|
|
434
443
|
--destructive: 0 62.8% 30.6%;
|
|
435
444
|
--destructive-foreground: 0 85.7% 97.3%;
|
|
445
|
+
|
|
436
446
|
--border: 240 3.7% 15.9%;
|
|
437
447
|
--input: 240 3.7% 15.9%;
|
|
438
448
|
--ring: 240 4.9% 83.9%;
|
|
@@ -1765,6 +1775,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1765
1775
|
--tw-bg-opacity: 1;
|
|
1766
1776
|
background-color: hsl(var(--destructive) / var(--tw-bg-opacity));
|
|
1767
1777
|
}
|
|
1778
|
+
.hawa-bg-destructive\/90 {
|
|
1779
|
+
background-color: hsl(var(--destructive) / 0.9);
|
|
1780
|
+
}
|
|
1768
1781
|
.hawa-bg-error {
|
|
1769
1782
|
--tw-bg-opacity: 1;
|
|
1770
1783
|
background-color: hsl(var(--error) / var(--tw-bg-opacity));
|
|
@@ -1808,6 +1821,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1808
1821
|
--tw-bg-opacity: 1;
|
|
1809
1822
|
background-color: hsl(var(--info) / var(--tw-bg-opacity));
|
|
1810
1823
|
}
|
|
1824
|
+
.hawa-bg-info\/90 {
|
|
1825
|
+
background-color: hsl(var(--info) / 0.9);
|
|
1826
|
+
}
|
|
1811
1827
|
.hawa-bg-muted {
|
|
1812
1828
|
background-color: hsl(var(--muted));
|
|
1813
1829
|
}
|
|
@@ -1867,6 +1883,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1867
1883
|
--tw-bg-opacity: 1;
|
|
1868
1884
|
background-color: hsl(var(--success) / var(--tw-bg-opacity));
|
|
1869
1885
|
}
|
|
1886
|
+
.hawa-bg-success\/90 {
|
|
1887
|
+
background-color: hsl(var(--success) / 0.9);
|
|
1888
|
+
}
|
|
1870
1889
|
.hawa-bg-transparent {
|
|
1871
1890
|
background-color: transparent;
|
|
1872
1891
|
}
|
|
@@ -1874,6 +1893,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1874
1893
|
--tw-bg-opacity: 1;
|
|
1875
1894
|
background-color: hsl(var(--warning) / var(--tw-bg-opacity));
|
|
1876
1895
|
}
|
|
1896
|
+
.hawa-bg-warning\/90 {
|
|
1897
|
+
background-color: hsl(var(--warning) / 0.9);
|
|
1898
|
+
}
|
|
1877
1899
|
.hawa-bg-white {
|
|
1878
1900
|
--tw-bg-opacity: 1;
|
|
1879
1901
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
@@ -3015,9 +3037,6 @@ body {
|
|
|
3015
3037
|
.data-\[state\=open\]\:hawa-bg-accent[data-state=open] {
|
|
3016
3038
|
background-color: hsl(var(--accent));
|
|
3017
3039
|
}
|
|
3018
|
-
.data-\[state\=open\]\:hawa-bg-accent\/50[data-state=open] {
|
|
3019
|
-
background-color: hsl(var(--accent) / 0.5);
|
|
3020
|
-
}
|
|
3021
3040
|
.data-\[state\=selected\]\:hawa-bg-muted[data-state=selected] {
|
|
3022
3041
|
background-color: hsl(var(--muted));
|
|
3023
3042
|
}
|
|
@@ -3233,6 +3252,10 @@ body {
|
|
|
3233
3252
|
--tw-bg-opacity: 1;
|
|
3234
3253
|
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
|
|
3235
3254
|
}
|
|
3255
|
+
:is([data-mode="dark"] .dark\:hawa-bg-gray-900) {
|
|
3256
|
+
--tw-bg-opacity: 1;
|
|
3257
|
+
background-color: rgb(17 24 39 / var(--tw-bg-opacity));
|
|
3258
|
+
}
|
|
3236
3259
|
:is([data-mode="dark"] .dark\:hawa-bg-green-200) {
|
|
3237
3260
|
--tw-bg-opacity: 1;
|
|
3238
3261
|
background-color: rgb(187 247 208 / var(--tw-bg-opacity));
|
package/dist/index.d.mts
CHANGED
|
@@ -246,7 +246,7 @@ declare const Chip: FC<TChipTypes>;
|
|
|
246
246
|
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
247
247
|
|
|
248
248
|
type AlertTypes = {
|
|
249
|
-
severity?: "info" | "warning" | "error" | "success";
|
|
249
|
+
severity?: "info" | "warning" | "error" | "success" | "none";
|
|
250
250
|
/** The title of the alert placed above the text of the alert. Can be used alone */
|
|
251
251
|
title?: any;
|
|
252
252
|
/** The text of the alert placed below the title of the alert. Can be used alone */
|
package/dist/index.d.ts
CHANGED
|
@@ -246,7 +246,7 @@ declare const Chip: FC<TChipTypes>;
|
|
|
246
246
|
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
247
247
|
|
|
248
248
|
type AlertTypes = {
|
|
249
|
-
severity?: "info" | "warning" | "error" | "success";
|
|
249
|
+
severity?: "info" | "warning" | "error" | "success" | "none";
|
|
250
250
|
/** The title of the alert placed above the text of the alert. Can be used alone */
|
|
251
251
|
title?: any;
|
|
252
252
|
/** The text of the alert placed below the title of the alert. Can be used alone */
|
package/dist/index.js
CHANGED
|
@@ -1736,11 +1736,13 @@ var Switch = React15.forwardRef(function(_param, ref) {
|
|
|
1736
1736
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
|
1737
1737
|
ref: parentRef
|
|
1738
1738
|
}, /* @__PURE__ */ React15.createElement(SwitchPrimitives.Root, _object_spread_props(_object_spread({
|
|
1739
|
-
className: cn("hawa-relative hawa-cursor-pointer hawa-rounded-
|
|
1739
|
+
className: cn("hawa-relative hawa-cursor-pointer hawa-rounded-inner hawa-bg-primary/20 hawa-outline-none data-[state=checked]:hawa-bg-primary", // hawa-rounded-full
|
|
1740
|
+
className, rootSize[size])
|
|
1740
1741
|
}, props), {
|
|
1741
1742
|
ref: ref
|
|
1742
1743
|
}), /* @__PURE__ */ React15.createElement(SwitchPrimitives.Thumb, {
|
|
1743
|
-
className: cn(thumbSize[size], "hawa-block hawa-rounded-
|
|
1744
|
+
className: cn(thumbSize[size], "hawa-block hawa-rounded-inner hawa-bg-white hawa-transition-transform hawa-duration-100 hawa-will-change-transform data-[state=checked]:hawa-bg-primary-foreground dark:hawa-bg-background", // hawa-rounded-full
|
|
1745
|
+
parentDirection === "rtl" ? "hawa--translate-x-0.5 data-[state=checked]:hawa--translate-x-[19px]" : "hawa-translate-x-0.5 data-[state=checked]:hawa-translate-x-[19px]")
|
|
1744
1746
|
})), label && /* @__PURE__ */ React15.createElement("span", {
|
|
1745
1747
|
className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300"
|
|
1746
1748
|
}, label));
|
|
@@ -1964,26 +1966,25 @@ var Alert = function(_param) {
|
|
|
1964
1966
|
duration
|
|
1965
1967
|
]);
|
|
1966
1968
|
var closeButtonStyle = {
|
|
1967
|
-
none: "
|
|
1968
|
-
info: "
|
|
1969
|
-
warning: "
|
|
1970
|
-
error: "
|
|
1971
|
-
success: "
|
|
1969
|
+
none: "",
|
|
1970
|
+
info: "",
|
|
1971
|
+
warning: "",
|
|
1972
|
+
error: "",
|
|
1973
|
+
success: ""
|
|
1972
1974
|
};
|
|
1973
1975
|
var styleVariant = {
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
success: "hawa-text-green-700 hawa-bg-green-100 dark:hawa-bg-green-200 dark:hawa-text-green-800"
|
|
1976
|
+
none: "hawa-text-gray-700 hawa-bg-gray-100 dark:hawa-bg-gray-900 ",
|
|
1977
|
+
info: "hawa-text-info-foreground hawa-bg-info/90",
|
|
1978
|
+
warning: "hawa-text-warning-foreground hawa-bg-warning/90",
|
|
1979
|
+
error: "hawa-text-destructive-foreground hawa-bg-destructive/90",
|
|
1980
|
+
success: "hawa-text-success-foreground hawa-bg-success/90"
|
|
1980
1981
|
};
|
|
1981
1982
|
return /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1982
1983
|
ref: alertRef
|
|
1983
1984
|
}, /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1984
|
-
className: (0, import_clsx6.default)("hawa-relative hawa-mb-4 hawa-flex hawa-flex-col hawa-rounded hawa-p-4 hawa-text-sm hawa-transition-all", styleVariant[severity], closed ? "hawa-opacity-0" : "hawa-opacity-100", className),
|
|
1985
1985
|
role: "alert",
|
|
1986
|
-
dir: direction
|
|
1986
|
+
dir: direction,
|
|
1987
|
+
className: (0, import_clsx6.default)("hawa-relative hawa-mb-4 hawa-flex hawa-flex-col hawa-rounded hawa-p-4 hawa-text-sm hawa-transition-all", styleVariant[severity], closed ? "hawa-opacity-0" : "hawa-opacity-100", className)
|
|
1987
1988
|
}, /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
1988
1989
|
className: "hawa-flex hawa-flex-row"
|
|
1989
1990
|
}, icon && /* @__PURE__ */ import_react13.default.createElement("div", {
|
|
@@ -2002,7 +2003,7 @@ var Alert = function(_param) {
|
|
|
2002
2003
|
}, act.label);
|
|
2003
2004
|
})))), !props.persistant && /* @__PURE__ */ import_react13.default.createElement("button", {
|
|
2004
2005
|
type: "button",
|
|
2005
|
-
className: (0, import_clsx6.default)("hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-9 hawa-w-9 hawa-items-center hawa-justify-center hawa-rounded-inner hawa-p-1.5 hawa-
|
|
2006
|
+
className: (0, import_clsx6.default)("hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-9 hawa-w-9 hawa-items-center hawa-justify-center hawa-rounded-inner hawa-p-1.5 hawa-transition-all hover:hawa-text-gray-900", closeButtonStyle[severity], direction === "rtl" ? "hawa-left-2" : "hawa-right-2"),
|
|
2006
2007
|
"data-dismiss-target": "#alert-default",
|
|
2007
2008
|
"aria-label": "Close",
|
|
2008
2009
|
onClick: function() {
|
|
@@ -6100,7 +6101,7 @@ var NavigationMenuList = React47.forwardRef(function(_param, ref) /* @__PURE__ *
|
|
|
6100
6101
|
});
|
|
6101
6102
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
6102
6103
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
6103
|
-
var navigationMenuTriggerStyle = (0, import_class_variance_authority4.cva)("hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50
|
|
6104
|
+
var navigationMenuTriggerStyle = (0, import_class_variance_authority4.cva)("hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 ");
|
|
6104
6105
|
var NavigationMenuTrigger = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6105
6106
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
6106
6107
|
"className",
|
package/dist/index.mjs
CHANGED
|
@@ -1099,7 +1099,8 @@ var Switch = React15.forwardRef(({ className, size = "default", label, ...props
|
|
|
1099
1099
|
SwitchPrimitives.Root,
|
|
1100
1100
|
{
|
|
1101
1101
|
className: cn(
|
|
1102
|
-
"hawa-relative hawa-cursor-pointer hawa-rounded-
|
|
1102
|
+
"hawa-relative hawa-cursor-pointer hawa-rounded-inner hawa-bg-primary/20 hawa-outline-none data-[state=checked]:hawa-bg-primary",
|
|
1103
|
+
// hawa-rounded-full
|
|
1103
1104
|
className,
|
|
1104
1105
|
rootSize[size]
|
|
1105
1106
|
),
|
|
@@ -1111,7 +1112,8 @@ var Switch = React15.forwardRef(({ className, size = "default", label, ...props
|
|
|
1111
1112
|
{
|
|
1112
1113
|
className: cn(
|
|
1113
1114
|
thumbSize[size],
|
|
1114
|
-
"hawa-block hawa-rounded-
|
|
1115
|
+
"hawa-block hawa-rounded-inner hawa-bg-white hawa-transition-transform hawa-duration-100 hawa-will-change-transform data-[state=checked]:hawa-bg-primary-foreground dark:hawa-bg-background",
|
|
1116
|
+
// hawa-rounded-full
|
|
1115
1117
|
parentDirection === "rtl" ? "hawa--translate-x-0.5 data-[state=checked]:hawa--translate-x-[19px]" : "hawa-translate-x-0.5 data-[state=checked]:hawa-translate-x-[19px]"
|
|
1116
1118
|
)
|
|
1117
1119
|
}
|
|
@@ -1413,31 +1415,30 @@ var Alert = ({
|
|
|
1413
1415
|
}
|
|
1414
1416
|
}, [duration]);
|
|
1415
1417
|
let closeButtonStyle = {
|
|
1416
|
-
none: "
|
|
1417
|
-
info: "
|
|
1418
|
-
warning: "
|
|
1419
|
-
error: "
|
|
1420
|
-
success: "
|
|
1418
|
+
none: "",
|
|
1419
|
+
info: "",
|
|
1420
|
+
warning: "",
|
|
1421
|
+
error: "",
|
|
1422
|
+
success: ""
|
|
1421
1423
|
};
|
|
1422
1424
|
let styleVariant = {
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
success: "hawa-text-green-700 hawa-bg-green-100 dark:hawa-bg-green-200 dark:hawa-text-green-800"
|
|
1425
|
+
none: "hawa-text-gray-700 hawa-bg-gray-100 dark:hawa-bg-gray-900 ",
|
|
1426
|
+
info: "hawa-text-info-foreground hawa-bg-info/90",
|
|
1427
|
+
warning: "hawa-text-warning-foreground hawa-bg-warning/90",
|
|
1428
|
+
error: "hawa-text-destructive-foreground hawa-bg-destructive/90",
|
|
1429
|
+
success: "hawa-text-success-foreground hawa-bg-success/90"
|
|
1429
1430
|
};
|
|
1430
1431
|
return /* @__PURE__ */ React20.createElement("div", { ref: alertRef }, /* @__PURE__ */ React20.createElement(
|
|
1431
1432
|
"div",
|
|
1432
1433
|
{
|
|
1434
|
+
role: "alert",
|
|
1435
|
+
dir: direction,
|
|
1433
1436
|
className: clsx6(
|
|
1434
1437
|
"hawa-relative hawa-mb-4 hawa-flex hawa-flex-col hawa-rounded hawa-p-4 hawa-text-sm hawa-transition-all",
|
|
1435
1438
|
styleVariant[severity],
|
|
1436
1439
|
closed ? "hawa-opacity-0" : "hawa-opacity-100",
|
|
1437
1440
|
className
|
|
1438
|
-
)
|
|
1439
|
-
role: "alert",
|
|
1440
|
-
dir: direction
|
|
1441
|
+
)
|
|
1441
1442
|
},
|
|
1442
1443
|
/* @__PURE__ */ React20.createElement("div", { className: "hawa-flex hawa-flex-row" }, icon && /* @__PURE__ */ React20.createElement(
|
|
1443
1444
|
"div",
|
|
@@ -1468,7 +1469,7 @@ var Alert = ({
|
|
|
1468
1469
|
{
|
|
1469
1470
|
type: "button",
|
|
1470
1471
|
className: clsx6(
|
|
1471
|
-
"hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-9 hawa-w-9 hawa-items-center hawa-justify-center hawa-rounded-inner hawa-p-1.5 hawa-
|
|
1472
|
+
"hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-9 hawa-w-9 hawa-items-center hawa-justify-center hawa-rounded-inner hawa-p-1.5 hawa-transition-all hover:hawa-text-gray-900",
|
|
1472
1473
|
closeButtonStyle[severity],
|
|
1473
1474
|
direction === "rtl" ? "hawa-left-2" : "hawa-right-2"
|
|
1474
1475
|
),
|
|
@@ -5809,7 +5810,7 @@ var NavigationMenuList = React47.forwardRef(({ className, ...props }, ref) => /*
|
|
|
5809
5810
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
5810
5811
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
5811
5812
|
var navigationMenuTriggerStyle = cva4(
|
|
5812
|
-
"hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50
|
|
5813
|
+
"hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 "
|
|
5813
5814
|
);
|
|
5814
5815
|
var NavigationMenuTrigger = React47.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React47.createElement(
|
|
5815
5816
|
NavigationMenuPrimitive.Trigger,
|