@foundrykit/primitives 2.0.8 → 2.0.9

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{chunk-D4X2ZO5T.js → chunk-2SBGU5XA.js} +2 -2
  3. package/dist/{chunk-3MEIDBWZ.js → chunk-3QUMCM5K.js} +2 -2
  4. package/dist/{chunk-5OSYIETI.js → chunk-FRIOQFPE.js} +1 -1
  5. package/dist/{chunk-EDKSYP4L.js → chunk-G2YBCHWR.js} +1 -1
  6. package/dist/{chunk-DKBMAFIR.js → chunk-GKCBSG2W.js} +2 -0
  7. package/dist/chunk-HS46TIMU.js +75 -0
  8. package/dist/{chunk-R3IEOV2B.js → chunk-P5KEJOBH.js} +1 -1
  9. package/dist/{chunk-FIRYLO5W.js → chunk-SDYKJVXX.js} +2 -2
  10. package/dist/{chunk-2PXD7LAX.js → chunk-U7JIOR7A.js} +3 -3
  11. package/dist/{chunk-VA4MKQN7.js → chunk-W4XY3SNY.js} +1 -1
  12. package/dist/chunk-XCPGTXEJ.js +23 -0
  13. package/dist/components/alert-dialog/index.cjs +1 -1
  14. package/dist/components/alert-dialog/index.js +1 -1
  15. package/dist/components/card/index.cjs +63 -61
  16. package/dist/components/card/index.d.cts +8 -7
  17. package/dist/components/card/index.d.ts +8 -7
  18. package/dist/components/card/index.js +1 -1
  19. package/dist/components/context-menu/index.cjs +2 -2
  20. package/dist/components/context-menu/index.js +1 -1
  21. package/dist/components/dropdown/index.cjs +2 -2
  22. package/dist/components/dropdown/index.js +1 -1
  23. package/dist/components/hover-card/index.cjs +1 -1
  24. package/dist/components/hover-card/index.js +1 -1
  25. package/dist/components/input/index.cjs +16 -28
  26. package/dist/components/input/index.d.cts +6 -5
  27. package/dist/components/input/index.d.ts +6 -5
  28. package/dist/components/input/index.js +1 -1
  29. package/dist/components/menubar/index.cjs +2 -2
  30. package/dist/components/menubar/index.js +1 -1
  31. package/dist/components/navigation-menu/index.cjs +3 -3
  32. package/dist/components/navigation-menu/index.js +1 -1
  33. package/dist/components/popover/index.cjs +1 -1
  34. package/dist/components/popover/index.js +1 -1
  35. package/dist/components/select/index.cjs +1 -1
  36. package/dist/components/select/index.js +1 -1
  37. package/dist/components/slider/index.cjs +2 -0
  38. package/dist/components/slider/index.d.cts +3 -2
  39. package/dist/components/slider/index.d.ts +3 -2
  40. package/dist/components/slider/index.js +1 -1
  41. package/dist/index.cjs +107 -95
  42. package/dist/index.js +23 -23
  43. package/package.json +1 -1
  44. package/src/components/alert-dialog/index.tsx +1 -1
  45. package/src/components/card/index.tsx +59 -67
  46. package/src/components/context-menu/index.tsx +2 -2
  47. package/src/components/dialog/index.tsx +1 -1
  48. package/src/components/dropdown/index.tsx +2 -2
  49. package/src/components/hover-card/index.tsx +1 -1
  50. package/src/components/input/index.tsx +20 -21
  51. package/src/components/menubar/index.tsx +2 -2
  52. package/src/components/navigation-menu/index.tsx +3 -3
  53. package/src/components/popover/index.tsx +1 -1
  54. package/src/components/select/index.tsx +1 -1
  55. package/src/components/sheet/index.tsx +4 -4
  56. package/src/components/slider/index.tsx +4 -1
  57. package/src/components/tooltip/index.tsx +1 -1
  58. package/.turbo/turbo-build.log +0 -235
  59. package/.turbo/turbo-type-check.log +0 -4
  60. package/dist/chunk-DFGLEAZI.js +0 -63
  61. package/dist/chunk-RDQF3IQE.js +0 -25
package/dist/index.cjs CHANGED
@@ -436,7 +436,7 @@ function AlertDialogContent({
436
436
  {
437
437
  "data-slot": "alert-dialog-content",
438
438
  className: (0, import_utils3.cn)(
439
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
439
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
440
440
  className
441
441
  ),
442
442
  ...props
@@ -884,58 +884,70 @@ function ButtonGroupSeparator({
884
884
 
885
885
  // src/components/card/index.tsx
886
886
  var import_utils10 = require("@foundrykit/utils");
887
- var React = __toESM(require("react"), 1);
888
887
  var import_jsx_runtime11 = require("react/jsx-runtime");
889
- var Card = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
890
- "div",
891
- {
892
- ref,
893
- className: (0, import_utils10.cn)(
894
- "bg-card text-card-foreground rounded-xl border shadow",
895
- className
896
- ),
897
- ...props
898
- }
899
- ));
900
- Card.displayName = "Card";
901
- var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
902
- "div",
903
- {
904
- ref,
905
- className: (0, import_utils10.cn)("flex flex-col space-y-1.5 p-6", className),
906
- ...props
907
- }
908
- ));
909
- CardHeader.displayName = "CardHeader";
910
- var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
911
- "h3",
912
- {
913
- ref,
914
- className: (0, import_utils10.cn)("leading-none font-semibold tracking-tight", className),
915
- ...props
916
- }
917
- ));
918
- CardTitle.displayName = "CardTitle";
919
- var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
920
- "p",
921
- {
922
- ref,
923
- className: (0, import_utils10.cn)("text-muted-foreground text-sm", className),
924
- ...props
925
- }
926
- ));
927
- CardDescription.displayName = "CardDescription";
928
- var CardContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { ref, className: (0, import_utils10.cn)("p-6 pt-0", className), ...props }));
929
- CardContent.displayName = "CardContent";
930
- var CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
931
- "div",
932
- {
933
- ref,
934
- className: (0, import_utils10.cn)("flex items-center p-6 pt-0", className),
935
- ...props
936
- }
937
- ));
938
- CardFooter.displayName = "CardFooter";
888
+ function Card({ className, ...props }) {
889
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
890
+ "div",
891
+ {
892
+ "data-slot": "card",
893
+ className: (0, import_utils10.cn)(
894
+ "bg-card text-card-foreground rounded-xl border shadow",
895
+ className
896
+ ),
897
+ ...props
898
+ }
899
+ );
900
+ }
901
+ function CardHeader({ className, ...props }) {
902
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
903
+ "div",
904
+ {
905
+ "data-slot": "card-header",
906
+ className: (0, import_utils10.cn)("flex flex-col space-y-1.5 p-6", className),
907
+ ...props
908
+ }
909
+ );
910
+ }
911
+ function CardTitle({ className, ...props }) {
912
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
913
+ "h3",
914
+ {
915
+ "data-slot": "card-title",
916
+ className: (0, import_utils10.cn)("leading-none font-semibold tracking-tight", className),
917
+ ...props
918
+ }
919
+ );
920
+ }
921
+ function CardDescription({ className, ...props }) {
922
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
923
+ "p",
924
+ {
925
+ "data-slot": "card-description",
926
+ className: (0, import_utils10.cn)("text-muted-foreground text-sm", className),
927
+ ...props
928
+ }
929
+ );
930
+ }
931
+ function CardContent({ className, ...props }) {
932
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
933
+ "div",
934
+ {
935
+ "data-slot": "card-content",
936
+ className: (0, import_utils10.cn)("p-6 pt-0", className),
937
+ ...props
938
+ }
939
+ );
940
+ }
941
+ function CardFooter({ className, ...props }) {
942
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
943
+ "div",
944
+ {
945
+ "data-slot": "card-footer",
946
+ className: (0, import_utils10.cn)("flex items-center p-6 pt-0", className),
947
+ ...props
948
+ }
949
+ );
950
+ }
939
951
 
940
952
  // src/components/checkbox/index.tsx
941
953
  var import_utils11 = require("@foundrykit/utils");
@@ -1071,7 +1083,7 @@ function ContextMenuSubContent({
1071
1083
  {
1072
1084
  "data-slot": "context-menu-sub-content",
1073
1085
  className: (0, import_utils12.cn)(
1074
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
1086
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
1075
1087
  className
1076
1088
  ),
1077
1089
  ...props
@@ -1087,7 +1099,7 @@ function ContextMenuContent({
1087
1099
  {
1088
1100
  "data-slot": "context-menu-content",
1089
1101
  className: (0, import_utils12.cn)(
1090
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
1102
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
1091
1103
  className
1092
1104
  ),
1093
1105
  ...props
@@ -1260,7 +1272,7 @@ function DialogContent({
1260
1272
  {
1261
1273
  "data-slot": "dialog-content",
1262
1274
  className: (0, import_utils13.cn)(
1263
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
1275
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
1264
1276
  className
1265
1277
  ),
1266
1278
  ...props,
@@ -1496,7 +1508,7 @@ function DropdownMenuContent({
1496
1508
  "data-slot": "dropdown-menu-content",
1497
1509
  sideOffset,
1498
1510
  className: (0, import_utils15.cn)(
1499
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
1511
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
1500
1512
  className
1501
1513
  ),
1502
1514
  ...props
@@ -1667,7 +1679,7 @@ function DropdownMenuSubContent({
1667
1679
  {
1668
1680
  "data-slot": "dropdown-menu-sub-content",
1669
1681
  className: (0, import_utils15.cn)(
1670
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
1682
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
1671
1683
  className
1672
1684
  ),
1673
1685
  ...props
@@ -1775,7 +1787,7 @@ function EmptyContent({ className, ...props }) {
1775
1787
  var import_utils17 = require("@foundrykit/utils");
1776
1788
  var LabelPrimitive = __toESM(require("@radix-ui/react-label"), 1);
1777
1789
  var import_class_variance_authority6 = require("class-variance-authority");
1778
- var React2 = __toESM(require("react"), 1);
1790
+ var React = __toESM(require("react"), 1);
1779
1791
  var import_jsx_runtime20 = require("react/jsx-runtime");
1780
1792
  var fieldVariants = (0, import_class_variance_authority6.cva)(
1781
1793
  "group/field data-[invalid=true]:text-destructive flex w-full gap-3",
@@ -1953,7 +1965,7 @@ function FieldError({
1953
1965
  errors,
1954
1966
  ...props
1955
1967
  }) {
1956
- const content = React2.useMemo(() => {
1968
+ const content = React.useMemo(() => {
1957
1969
  if (children) {
1958
1970
  return children;
1959
1971
  }
@@ -2009,7 +2021,7 @@ function HoverCardContent({
2009
2021
  align,
2010
2022
  sideOffset,
2011
2023
  className: (0, import_utils18.cn)(
2012
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
2024
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
2013
2025
  className
2014
2026
  ),
2015
2027
  ...props
@@ -2019,25 +2031,23 @@ function HoverCardContent({
2019
2031
 
2020
2032
  // src/components/input/index.tsx
2021
2033
  var import_utils19 = require("@foundrykit/utils");
2022
- var React3 = __toESM(require("react"), 1);
2023
2034
  var import_jsx_runtime22 = require("react/jsx-runtime");
2024
- var Input = React3.forwardRef(
2025
- ({ className, type, ...props }, ref) => {
2026
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2027
- "input",
2028
- {
2029
- type,
2030
- className: (0, import_utils19.cn)(
2031
- "border-input file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
2032
- className
2033
- ),
2034
- ref,
2035
- ...props
2036
- }
2037
- );
2038
- }
2039
- );
2040
- Input.displayName = "Input";
2035
+ function Input({ className, type, ...props }) {
2036
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2037
+ "input",
2038
+ {
2039
+ type,
2040
+ "data-slot": "input",
2041
+ className: (0, import_utils19.cn)(
2042
+ "border-input file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
2043
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
2044
+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
2045
+ className
2046
+ ),
2047
+ ...props
2048
+ }
2049
+ );
2050
+ }
2041
2051
 
2042
2052
  // src/components/item/index.tsx
2043
2053
  var import_utils20 = require("@foundrykit/utils");
@@ -2336,7 +2346,7 @@ function MenubarContent({
2336
2346
  alignOffset,
2337
2347
  sideOffset,
2338
2348
  className: (0, import_utils23.cn)(
2339
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
2349
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
2340
2350
  className
2341
2351
  ),
2342
2352
  ...props
@@ -2491,7 +2501,7 @@ function MenubarSubContent({
2491
2501
  {
2492
2502
  "data-slot": "menubar-sub-content",
2493
2503
  className: (0, import_utils23.cn)(
2494
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
2504
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
2495
2505
  className
2496
2506
  ),
2497
2507
  ...props
@@ -2620,8 +2630,8 @@ function NavigationMenuContent({
2620
2630
  {
2621
2631
  "data-slot": "navigation-menu-content",
2622
2632
  className: (0, import_utils25.cn)(
2623
- "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
2624
- "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
2633
+ "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out motion-safe:data-[motion=from-end]:slide-in-from-right-52 motion-safe:data-[motion=from-start]:slide-in-from-left-52 motion-safe:data-[motion=to-end]:slide-out-to-right-52 motion-safe:data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
2634
+ "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out motion-safe:group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 motion-safe:group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200",
2625
2635
  className
2626
2636
  ),
2627
2637
  ...props
@@ -2643,7 +2653,7 @@ function NavigationMenuViewport({
2643
2653
  {
2644
2654
  "data-slot": "navigation-menu-viewport",
2645
2655
  className: (0, import_utils25.cn)(
2646
- "origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
2656
+ "origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
2647
2657
  className
2648
2658
  ),
2649
2659
  ...props
@@ -2713,7 +2723,7 @@ function PopoverContent({
2713
2723
  align,
2714
2724
  sideOffset,
2715
2725
  className: (0, import_utils26.cn)(
2716
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
2726
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
2717
2727
  className
2718
2728
  ),
2719
2729
  ...props
@@ -2954,7 +2964,7 @@ function SelectContent({
2954
2964
  {
2955
2965
  "data-slot": "select-content",
2956
2966
  className: (0, import_utils31.cn)(
2957
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
2967
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
2958
2968
  position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
2959
2969
  className
2960
2970
  ),
@@ -3112,10 +3122,10 @@ function SheetContent({
3112
3122
  "data-slot": "sheet-content",
3113
3123
  className: (0, import_utils32.cn)(
3114
3124
  "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
3115
- side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
3116
- side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
3117
- side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
3118
- side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
3125
+ side === "right" && "motion-safe:data-[state=closed]:slide-out-to-right motion-safe:data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
3126
+ side === "left" && "motion-safe:data-[state=closed]:slide-out-to-left motion-safe:data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
3127
+ side === "top" && "motion-safe:data-[state=closed]:slide-out-to-top motion-safe:data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
3128
+ side === "bottom" && "motion-safe:data-[state=closed]:slide-out-to-bottom motion-safe:data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
3119
3129
  className
3120
3130
  ),
3121
3131
  ...props,
@@ -3194,7 +3204,7 @@ function Skeleton({ className, ...props }) {
3194
3204
  // src/components/slider/index.tsx
3195
3205
  var import_utils34 = require("@foundrykit/utils");
3196
3206
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
3197
- var React4 = __toESM(require("react"), 1);
3207
+ var React2 = __toESM(require("react"), 1);
3198
3208
  var import_jsx_runtime37 = require("react/jsx-runtime");
3199
3209
  function Slider({
3200
3210
  className,
@@ -3202,9 +3212,10 @@ function Slider({
3202
3212
  value,
3203
3213
  min = 0,
3204
3214
  max = 100,
3215
+ "aria-label": ariaLabel,
3205
3216
  ...props
3206
3217
  }) {
3207
- const _values = React4.useMemo(
3218
+ const _values = React2.useMemo(
3208
3219
  () => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
3209
3220
  [value, defaultValue, min, max]
3210
3221
  );
@@ -3244,6 +3255,7 @@ function Slider({
3244
3255
  SliderPrimitive.Thumb,
3245
3256
  {
3246
3257
  "data-slot": "slider-thumb",
3258
+ "aria-label": ariaLabel,
3247
3259
  className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
3248
3260
  },
3249
3261
  index
@@ -3555,7 +3567,7 @@ function Toggle({
3555
3567
  var import_utils41 = require("@foundrykit/utils");
3556
3568
  var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
3557
3569
  var import_class_variance_authority10 = require("class-variance-authority");
3558
- var React5 = __toESM(require("react"), 1);
3570
+ var React3 = __toESM(require("react"), 1);
3559
3571
  var import_jsx_runtime45 = require("react/jsx-runtime");
3560
3572
  var toggleGroupItemVariants = (0, import_class_variance_authority10.cva)(
3561
3573
  "hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
@@ -3577,7 +3589,7 @@ var toggleGroupItemVariants = (0, import_class_variance_authority10.cva)(
3577
3589
  }
3578
3590
  }
3579
3591
  );
3580
- var ToggleGroupContext = React5.createContext({
3592
+ var ToggleGroupContext = React3.createContext({
3581
3593
  size: "default",
3582
3594
  variant: "default"
3583
3595
  });
@@ -3610,7 +3622,7 @@ function ToggleGroupItem({
3610
3622
  size,
3611
3623
  ...props
3612
3624
  }) {
3613
- const context = React5.useContext(ToggleGroupContext);
3625
+ const context = React3.useContext(ToggleGroupContext);
3614
3626
  return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
3615
3627
  ToggleGroupPrimitive.Item,
3616
3628
  {
@@ -3670,7 +3682,7 @@ function TooltipContent({
3670
3682
  "data-slot": "tooltip-content",
3671
3683
  sideOffset,
3672
3684
  className: (0, import_utils42.cn)(
3673
- "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
3685
+ "bg-primary text-primary-foreground animate-in fade-in-0 motion-safe:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
3674
3686
  className
3675
3687
  ),
3676
3688
  ...props,
package/dist/index.js CHANGED
@@ -37,13 +37,13 @@ import {
37
37
  SelectSeparator,
38
38
  SelectTrigger,
39
39
  SelectValue
40
- } from "./chunk-5OSYIETI.js";
40
+ } from "./chunk-FRIOQFPE.js";
41
41
  import {
42
42
  Skeleton
43
43
  } from "./chunk-SKR3J46C.js";
44
44
  import {
45
45
  Slider
46
- } from "./chunk-DKBMAFIR.js";
46
+ } from "./chunk-GKCBSG2W.js";
47
47
  import {
48
48
  Toaster,
49
49
  toast
@@ -81,7 +81,7 @@ import {
81
81
  MenubarSubContent,
82
82
  MenubarSubTrigger,
83
83
  MenubarTrigger
84
- } from "./chunk-FIRYLO5W.js";
84
+ } from "./chunk-SDYKJVXX.js";
85
85
  import {
86
86
  NativeSelect
87
87
  } from "./chunk-76APYFRN.js";
@@ -95,13 +95,13 @@ import {
95
95
  NavigationMenuTrigger,
96
96
  NavigationMenuViewport,
97
97
  navigationMenuTriggerStyle
98
- } from "./chunk-2PXD7LAX.js";
98
+ } from "./chunk-U7JIOR7A.js";
99
99
  import {
100
100
  Popover,
101
101
  PopoverAnchor,
102
102
  PopoverContent,
103
103
  PopoverTrigger
104
- } from "./chunk-EDKSYP4L.js";
104
+ } from "./chunk-G2YBCHWR.js";
105
105
  import {
106
106
  Progress
107
107
  } from "./chunk-MMZJQ7RW.js";
@@ -134,7 +134,7 @@ import {
134
134
  DropdownMenuSubContent,
135
135
  DropdownMenuSubTrigger,
136
136
  DropdownMenuTrigger
137
- } from "./chunk-D4X2ZO5T.js";
137
+ } from "./chunk-2SBGU5XA.js";
138
138
  import {
139
139
  Empty,
140
140
  EmptyContent,
@@ -161,10 +161,10 @@ import {
161
161
  HoverCard,
162
162
  HoverCardContent,
163
163
  HoverCardTrigger
164
- } from "./chunk-VA4MKQN7.js";
164
+ } from "./chunk-W4XY3SNY.js";
165
165
  import {
166
166
  Input
167
- } from "./chunk-RDQF3IQE.js";
167
+ } from "./chunk-XCPGTXEJ.js";
168
168
  import {
169
169
  Item,
170
170
  ItemActions,
@@ -206,7 +206,7 @@ import {
206
206
  CardFooter,
207
207
  CardHeader,
208
208
  CardTitle
209
- } from "./chunk-DFGLEAZI.js";
209
+ } from "./chunk-HS46TIMU.js";
210
210
  import {
211
211
  Checkbox
212
212
  } from "./chunk-3UKWAM5M.js";
@@ -231,7 +231,7 @@ import {
231
231
  ContextMenuSubContent,
232
232
  ContextMenuSubTrigger,
233
233
  ContextMenuTrigger
234
- } from "./chunk-3MEIDBWZ.js";
234
+ } from "./chunk-3QUMCM5K.js";
235
235
  import {
236
236
  DirectionProvider,
237
237
  useDirection
@@ -254,12 +254,6 @@ import {
254
254
  AccordionItem,
255
255
  AccordionTrigger
256
256
  } from "./chunk-2JOT4DV4.js";
257
- import {
258
- Alert,
259
- AlertDescription,
260
- AlertTitle,
261
- alertVariants
262
- } from "./chunk-BIFBYERK.js";
263
257
  import {
264
258
  AlertDialog,
265
259
  AlertDialogAction,
@@ -272,7 +266,13 @@ import {
272
266
  AlertDialogPortal,
273
267
  AlertDialogTitle,
274
268
  AlertDialogTrigger
275
- } from "./chunk-R3IEOV2B.js";
269
+ } from "./chunk-P5KEJOBH.js";
270
+ import {
271
+ Alert,
272
+ AlertDescription,
273
+ AlertTitle,
274
+ alertVariants
275
+ } from "./chunk-BIFBYERK.js";
276
276
  import {
277
277
  AspectRatio
278
278
  } from "./chunk-AJAAMJYH.js";
@@ -352,7 +352,7 @@ function DialogContent({
352
352
  {
353
353
  "data-slot": "dialog-content",
354
354
  className: cn(
355
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
355
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
356
356
  className
357
357
  ),
358
358
  ...props,
@@ -477,10 +477,10 @@ function SheetContent({
477
477
  "data-slot": "sheet-content",
478
478
  className: cn2(
479
479
  "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
480
- side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
481
- side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
482
- side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
483
- side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
480
+ side === "right" && "motion-safe:data-[state=closed]:slide-out-to-right motion-safe:data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
481
+ side === "left" && "motion-safe:data-[state=closed]:slide-out-to-left motion-safe:data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
482
+ side === "top" && "motion-safe:data-[state=closed]:slide-out-to-top motion-safe:data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
483
+ side === "bottom" && "motion-safe:data-[state=closed]:slide-out-to-bottom motion-safe:data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
484
484
  className
485
485
  ),
486
486
  ...props,
@@ -622,7 +622,7 @@ function TooltipContent({
622
622
  "data-slot": "tooltip-content",
623
623
  sideOffset,
624
624
  className: cn4(
625
- "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
625
+ "bg-primary text-primary-foreground animate-in fade-in-0 motion-safe:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
626
626
  className
627
627
  ),
628
628
  ...props,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foundrykit/primitives",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
@@ -77,7 +77,7 @@ function AlertDialogContent({
77
77
  <AlertDialogPrimitive.Content
78
78
  data-slot='alert-dialog-content'
79
79
  className={cn(
80
- 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg',
80
+ 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg',
81
81
  className
82
82
  )}
83
83
  {...props}