@mlw-packages/react-components 1.3.5 → 1.3.6
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.js +18 -30
- package/dist/index.mjs +18 -30
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1047,7 +1047,6 @@ var import_phosphor_react6 = require("phosphor-react");
|
|
|
1047
1047
|
var React10 = __toESM(require("react"));
|
|
1048
1048
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
1049
1049
|
var import_phosphor_react5 = require("phosphor-react");
|
|
1050
|
-
var import_framer_motion = require("framer-motion");
|
|
1051
1050
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1052
1051
|
var DropDownMenuBase = DropdownMenuPrimitive.Root;
|
|
1053
1052
|
var DropDownMenuTriggerBase = DropdownMenuPrimitive.Trigger;
|
|
@@ -1084,30 +1083,19 @@ var DropDownMenuSubContentBase = React10.forwardRef(({ className, ...props }, re
|
|
|
1084
1083
|
}
|
|
1085
1084
|
));
|
|
1086
1085
|
DropDownMenuSubContentBase.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1087
|
-
var DropDownMenuContentBase = React10.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1086
|
+
var DropDownMenuContentBase = React10.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1088
1087
|
DropdownMenuPrimitive.Content,
|
|
1089
1088
|
{
|
|
1090
|
-
asChild: true,
|
|
1091
1089
|
sideOffset,
|
|
1092
|
-
|
|
1090
|
+
className: cn(
|
|
1091
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1092
|
+
className
|
|
1093
|
+
),
|
|
1093
1094
|
ref,
|
|
1094
1095
|
...props,
|
|
1095
|
-
children:
|
|
1096
|
-
import_framer_motion.motion.div,
|
|
1097
|
-
{
|
|
1098
|
-
initial: { opacity: 0, scale: 0.95, y: 5 },
|
|
1099
|
-
animate: { opacity: 1, scale: 1, y: 0 },
|
|
1100
|
-
exit: { opacity: 0, scale: 0.95, y: 5 },
|
|
1101
|
-
transition: { duration: 0.2, ease: "easeOut" },
|
|
1102
|
-
className: cn(
|
|
1103
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
1104
|
-
className
|
|
1105
|
-
),
|
|
1106
|
-
children: props.children
|
|
1107
|
-
}
|
|
1108
|
-
)
|
|
1096
|
+
children: props.children
|
|
1109
1097
|
}
|
|
1110
|
-
) })
|
|
1098
|
+
) }));
|
|
1111
1099
|
DropDownMenuContentBase.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1112
1100
|
var DropDownMenuItemBase = React10.forwardRef(({ className, inset, leftIcon, rightIcon, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
1113
1101
|
DropdownMenuPrimitive.Item,
|
|
@@ -1304,7 +1292,7 @@ var import_react5 = require("react");
|
|
|
1304
1292
|
var React11 = __toESM(require("react"));
|
|
1305
1293
|
var import_cmdk = require("cmdk");
|
|
1306
1294
|
var import_phosphor_react7 = require("phosphor-react");
|
|
1307
|
-
var
|
|
1295
|
+
var import_framer_motion = require("framer-motion");
|
|
1308
1296
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1309
1297
|
var CommandBase = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1310
1298
|
import_cmdk.Command,
|
|
@@ -1324,8 +1312,8 @@ var dialogVariants = {
|
|
|
1324
1312
|
exit: { opacity: 0, scale: 0.95, y: -20 }
|
|
1325
1313
|
};
|
|
1326
1314
|
var CommandDialogBase = ({ children, open, ...props }) => {
|
|
1327
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DialogBase, { open, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1328
|
-
|
|
1315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DialogBase, { open, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_framer_motion.AnimatePresence, { children: open && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DialogContentBase, { asChild: true, forceMount: true, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1316
|
+
import_framer_motion.motion.div,
|
|
1329
1317
|
{
|
|
1330
1318
|
initial: "hidden",
|
|
1331
1319
|
animate: "visible",
|
|
@@ -1596,7 +1584,7 @@ function MultiCombobox({
|
|
|
1596
1584
|
var React13 = __toESM(require("react"));
|
|
1597
1585
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
|
|
1598
1586
|
var import_phosphor_react10 = require("phosphor-react");
|
|
1599
|
-
var
|
|
1587
|
+
var import_framer_motion2 = require("framer-motion");
|
|
1600
1588
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1601
1589
|
var SelectBase = SelectPrimitive.Root;
|
|
1602
1590
|
var SelectGroupBase = SelectPrimitive.Group;
|
|
@@ -1613,7 +1601,7 @@ var SelectTriggerBase = React13.forwardRef(({ className, children, open, ...prop
|
|
|
1613
1601
|
children: [
|
|
1614
1602
|
children,
|
|
1615
1603
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1616
|
-
|
|
1604
|
+
import_framer_motion2.motion.span,
|
|
1617
1605
|
{
|
|
1618
1606
|
animate: { rotate: open ? 180 : 0 },
|
|
1619
1607
|
transition: { duration: 0.3 },
|
|
@@ -1651,7 +1639,7 @@ var SelectScrollDownButtonBase = React13.forwardRef(({ className, ...props }, re
|
|
|
1651
1639
|
}
|
|
1652
1640
|
));
|
|
1653
1641
|
SelectScrollDownButtonBase.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1654
|
-
var SelectContentBase = React13.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1642
|
+
var SelectContentBase = React13.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_framer_motion2.AnimatePresence, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1655
1643
|
SelectPrimitive.Content,
|
|
1656
1644
|
{
|
|
1657
1645
|
ref,
|
|
@@ -1663,7 +1651,7 @@ var SelectContentBase = React13.forwardRef(({ className, children, position = "p
|
|
|
1663
1651
|
...props,
|
|
1664
1652
|
asChild: true,
|
|
1665
1653
|
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1666
|
-
|
|
1654
|
+
import_framer_motion2.motion.div,
|
|
1667
1655
|
{
|
|
1668
1656
|
initial: { opacity: 0, scale: 0.95 },
|
|
1669
1657
|
animate: { opacity: 1, scale: 1 },
|
|
@@ -1901,7 +1889,7 @@ CardFooterBase.displayName = "CardFooter";
|
|
|
1901
1889
|
var React16 = __toESM(require("react"));
|
|
1902
1890
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
|
1903
1891
|
var import_phosphor_react12 = require("phosphor-react");
|
|
1904
|
-
var
|
|
1892
|
+
var import_framer_motion3 = require("framer-motion");
|
|
1905
1893
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1906
1894
|
var CheckboxBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1907
1895
|
CheckboxPrimitive.Root,
|
|
@@ -1913,7 +1901,7 @@ var CheckboxBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1913
1901
|
),
|
|
1914
1902
|
...props,
|
|
1915
1903
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CheckboxPrimitive.Indicator, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1916
|
-
|
|
1904
|
+
import_framer_motion3.motion.div,
|
|
1917
1905
|
{
|
|
1918
1906
|
initial: { scale: 0, opacity: 0, rotate: -90 },
|
|
1919
1907
|
animate: { scale: 1, opacity: 1, rotate: 0 },
|
|
@@ -2174,7 +2162,7 @@ var ProgressCirclesBase = ({
|
|
|
2174
2162
|
// src/components/ui/SeparatorBase.tsx
|
|
2175
2163
|
var React19 = __toESM(require("react"));
|
|
2176
2164
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
|
|
2177
|
-
var
|
|
2165
|
+
var import_framer_motion4 = require("framer-motion");
|
|
2178
2166
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2179
2167
|
var SeparatorBase = React19.forwardRef(
|
|
2180
2168
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => {
|
|
@@ -2188,7 +2176,7 @@ var SeparatorBase = React19.forwardRef(
|
|
|
2188
2176
|
asChild: true,
|
|
2189
2177
|
...props,
|
|
2190
2178
|
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2191
|
-
|
|
2179
|
+
import_framer_motion4.motion.div,
|
|
2192
2180
|
{
|
|
2193
2181
|
className: cn(
|
|
2194
2182
|
"shrink-0 bg-border",
|
package/dist/index.mjs
CHANGED
|
@@ -855,7 +855,6 @@ import { Check as Check2, Moon, Sun } from "phosphor-react";
|
|
|
855
855
|
import * as React10 from "react";
|
|
856
856
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
857
857
|
import { Check, CaretRight as CaretRight2, Circle } from "phosphor-react";
|
|
858
|
-
import { motion, AnimatePresence } from "framer-motion";
|
|
859
858
|
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
860
859
|
var DropDownMenuBase = DropdownMenuPrimitive.Root;
|
|
861
860
|
var DropDownMenuTriggerBase = DropdownMenuPrimitive.Trigger;
|
|
@@ -892,30 +891,19 @@ var DropDownMenuSubContentBase = React10.forwardRef(({ className, ...props }, re
|
|
|
892
891
|
}
|
|
893
892
|
));
|
|
894
893
|
DropDownMenuSubContentBase.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
895
|
-
var DropDownMenuContentBase = React10.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx11(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx11(
|
|
894
|
+
var DropDownMenuContentBase = React10.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx11(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx11(
|
|
896
895
|
DropdownMenuPrimitive.Content,
|
|
897
896
|
{
|
|
898
|
-
asChild: true,
|
|
899
897
|
sideOffset,
|
|
900
|
-
|
|
898
|
+
className: cn(
|
|
899
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
900
|
+
className
|
|
901
|
+
),
|
|
901
902
|
ref,
|
|
902
903
|
...props,
|
|
903
|
-
children:
|
|
904
|
-
motion.div,
|
|
905
|
-
{
|
|
906
|
-
initial: { opacity: 0, scale: 0.95, y: 5 },
|
|
907
|
-
animate: { opacity: 1, scale: 1, y: 0 },
|
|
908
|
-
exit: { opacity: 0, scale: 0.95, y: 5 },
|
|
909
|
-
transition: { duration: 0.2, ease: "easeOut" },
|
|
910
|
-
className: cn(
|
|
911
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
912
|
-
className
|
|
913
|
-
),
|
|
914
|
-
children: props.children
|
|
915
|
-
}
|
|
916
|
-
)
|
|
904
|
+
children: props.children
|
|
917
905
|
}
|
|
918
|
-
) })
|
|
906
|
+
) }));
|
|
919
907
|
DropDownMenuContentBase.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
920
908
|
var DropDownMenuItemBase = React10.forwardRef(({ className, inset, leftIcon, rightIcon, children, ...props }, ref) => /* @__PURE__ */ jsxs6(
|
|
921
909
|
DropdownMenuPrimitive.Item,
|
|
@@ -1112,7 +1100,7 @@ import { useCallback, useMemo } from "react";
|
|
|
1112
1100
|
import * as React11 from "react";
|
|
1113
1101
|
import { Command as CommandPrimitive } from "cmdk";
|
|
1114
1102
|
import { MagnifyingGlass } from "phosphor-react";
|
|
1115
|
-
import { motion
|
|
1103
|
+
import { motion, AnimatePresence } from "framer-motion";
|
|
1116
1104
|
import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1117
1105
|
var CommandBase = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
1118
1106
|
CommandPrimitive,
|
|
@@ -1132,8 +1120,8 @@ var dialogVariants = {
|
|
|
1132
1120
|
exit: { opacity: 0, scale: 0.95, y: -20 }
|
|
1133
1121
|
};
|
|
1134
1122
|
var CommandDialogBase = ({ children, open, ...props }) => {
|
|
1135
|
-
return /* @__PURE__ */ jsx14(DialogBase, { open, ...props, children: /* @__PURE__ */ jsx14(
|
|
1136
|
-
|
|
1123
|
+
return /* @__PURE__ */ jsx14(DialogBase, { open, ...props, children: /* @__PURE__ */ jsx14(AnimatePresence, { children: open && /* @__PURE__ */ jsx14(DialogContentBase, { asChild: true, forceMount: true, children: /* @__PURE__ */ jsx14(
|
|
1124
|
+
motion.div,
|
|
1137
1125
|
{
|
|
1138
1126
|
initial: "hidden",
|
|
1139
1127
|
animate: "visible",
|
|
@@ -1404,7 +1392,7 @@ function MultiCombobox({
|
|
|
1404
1392
|
import * as React13 from "react";
|
|
1405
1393
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
1406
1394
|
import { Check as Check4, CaretDown as CaretDown2, CaretUp } from "phosphor-react";
|
|
1407
|
-
import { motion as
|
|
1395
|
+
import { motion as motion2, AnimatePresence as AnimatePresence2 } from "framer-motion";
|
|
1408
1396
|
import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1409
1397
|
var SelectBase = SelectPrimitive.Root;
|
|
1410
1398
|
var SelectGroupBase = SelectPrimitive.Group;
|
|
@@ -1421,7 +1409,7 @@ var SelectTriggerBase = React13.forwardRef(({ className, children, open, ...prop
|
|
|
1421
1409
|
children: [
|
|
1422
1410
|
children,
|
|
1423
1411
|
/* @__PURE__ */ jsx19(
|
|
1424
|
-
|
|
1412
|
+
motion2.span,
|
|
1425
1413
|
{
|
|
1426
1414
|
animate: { rotate: open ? 180 : 0 },
|
|
1427
1415
|
transition: { duration: 0.3 },
|
|
@@ -1459,7 +1447,7 @@ var SelectScrollDownButtonBase = React13.forwardRef(({ className, ...props }, re
|
|
|
1459
1447
|
}
|
|
1460
1448
|
));
|
|
1461
1449
|
SelectScrollDownButtonBase.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1462
|
-
var SelectContentBase = React13.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx19(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx19(
|
|
1450
|
+
var SelectContentBase = React13.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx19(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx19(AnimatePresence2, { children: /* @__PURE__ */ jsx19(
|
|
1463
1451
|
SelectPrimitive.Content,
|
|
1464
1452
|
{
|
|
1465
1453
|
ref,
|
|
@@ -1471,7 +1459,7 @@ var SelectContentBase = React13.forwardRef(({ className, children, position = "p
|
|
|
1471
1459
|
...props,
|
|
1472
1460
|
asChild: true,
|
|
1473
1461
|
children: /* @__PURE__ */ jsx19(
|
|
1474
|
-
|
|
1462
|
+
motion2.div,
|
|
1475
1463
|
{
|
|
1476
1464
|
initial: { opacity: 0, scale: 0.95 },
|
|
1477
1465
|
animate: { opacity: 1, scale: 1 },
|
|
@@ -1709,7 +1697,7 @@ CardFooterBase.displayName = "CardFooter";
|
|
|
1709
1697
|
import * as React16 from "react";
|
|
1710
1698
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
1711
1699
|
import { Check as Check5 } from "phosphor-react";
|
|
1712
|
-
import { motion as
|
|
1700
|
+
import { motion as motion3 } from "framer-motion";
|
|
1713
1701
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1714
1702
|
var CheckboxBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1715
1703
|
CheckboxPrimitive.Root,
|
|
@@ -1721,7 +1709,7 @@ var CheckboxBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1721
1709
|
),
|
|
1722
1710
|
...props,
|
|
1723
1711
|
children: /* @__PURE__ */ jsx24(CheckboxPrimitive.Indicator, { asChild: true, children: /* @__PURE__ */ jsx24(
|
|
1724
|
-
|
|
1712
|
+
motion3.div,
|
|
1725
1713
|
{
|
|
1726
1714
|
initial: { scale: 0, opacity: 0, rotate: -90 },
|
|
1727
1715
|
animate: { scale: 1, opacity: 1, rotate: 0 },
|
|
@@ -1986,7 +1974,7 @@ var ProgressCirclesBase = ({
|
|
|
1986
1974
|
// src/components/ui/SeparatorBase.tsx
|
|
1987
1975
|
import * as React19 from "react";
|
|
1988
1976
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
1989
|
-
import { motion as
|
|
1977
|
+
import { motion as motion4 } from "framer-motion";
|
|
1990
1978
|
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1991
1979
|
var SeparatorBase = React19.forwardRef(
|
|
1992
1980
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => {
|
|
@@ -2000,7 +1988,7 @@ var SeparatorBase = React19.forwardRef(
|
|
|
2000
1988
|
asChild: true,
|
|
2001
1989
|
...props,
|
|
2002
1990
|
children: /* @__PURE__ */ jsx27(
|
|
2003
|
-
|
|
1991
|
+
motion4.div,
|
|
2004
1992
|
{
|
|
2005
1993
|
className: cn(
|
|
2006
1994
|
"shrink-0 bg-border",
|