@plasmicpkgs/radix-ui 0.0.46 → 0.0.48

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 CHANGED
@@ -492,9 +492,13 @@ var popoverProps = {
492
492
  description: "Add additional subtle slide-in animation on reveal, which can depend on where the tooltip is dynamically placed."
493
493
  }
494
494
  };
495
- function wrapFragmentInDiv(node) {
495
+ function wrapFragmentInDiv(node, className) {
496
496
  if (React.isValidElement(node) && node.type === React.Fragment) {
497
- const props = { ...(0, import_remeda.omit)(node.props, ["children"]), key: node.key };
497
+ const props = {
498
+ ...(0, import_remeda.omit)(node.props, ["children"]),
499
+ key: node.key
500
+ };
501
+ props["className"] = props["className"] ? props["className"] + className : className;
498
502
  return /* @__PURE__ */ React.createElement("div", { ...props }, node.props.children);
499
503
  }
500
504
  return node;
@@ -534,7 +538,7 @@ function Popover({
534
538
  defaultOpen,
535
539
  modal
536
540
  },
537
- trigger ? /* @__PURE__ */ React2.createElement(PopoverPrimitive.Trigger, { asChild: true }, wrapFragmentInDiv(children)) : /* @__PURE__ */ React2.createElement(PopoverPrimitive.Anchor, { asChild: true }, wrapFragmentInDiv(children)),
541
+ trigger ? /* @__PURE__ */ React2.createElement(PopoverPrimitive.Trigger, { asChild: true }, wrapFragmentInDiv(children, className)) : /* @__PURE__ */ React2.createElement(PopoverPrimitive.Anchor, { asChild: true }, wrapFragmentInDiv(children, className)),
538
542
  /* @__PURE__ */ React2.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React2.createElement(
539
543
  PopoverPrimitive.Content,
540
544
  {
@@ -546,7 +550,6 @@ function Popover({
546
550
  "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"
547
551
  ) : "",
548
552
  dynClass ? dynClass : "",
549
- className,
550
553
  themeResetClass
551
554
  ),
552
555
  sideOffset,
@@ -723,6 +726,7 @@ var sheetVariants = (0, import_class_variance_authority.cva)(
723
726
  );
724
727
  var Dialog = React3.forwardRef(
725
728
  ({
729
+ className,
726
730
  open,
727
731
  onOpenChange,
728
732
  modal,
@@ -741,7 +745,7 @@ var Dialog = React3.forwardRef(
741
745
  onOpenChange,
742
746
  defaultOpen
743
747
  },
744
- /* @__PURE__ */ React3.createElement(DialogPrimitive.Trigger, { asChild: true }, wrapFragmentInDiv(triggerSlot)),
748
+ /* @__PURE__ */ React3.createElement(DialogPrimitive.Trigger, { asChild: true }, wrapFragmentInDiv(triggerSlot, className)),
745
749
  noContain ? /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(DialogPrimitive.Portal, null, /* @__PURE__ */ React3.createElement(
746
750
  DialogOverlay,
747
751
  {
@@ -1013,7 +1017,7 @@ var Tooltip = React4.forwardRef(
1013
1017
  defaultOpen
1014
1018
  }
1015
1019
  },
1016
- /* @__PURE__ */ React4.createElement(TooltipPrimitive.Trigger, { asChild: true }, wrapFragmentInDiv(children)),
1020
+ /* @__PURE__ */ React4.createElement(TooltipPrimitive.Trigger, { asChild: true }, wrapFragmentInDiv(children, className)),
1017
1021
  /* @__PURE__ */ React4.createElement(
1018
1022
  TooltipPrimitive.Content,
1019
1023
  {
@@ -1027,7 +1031,6 @@ var Tooltip = React4.forwardRef(
1027
1031
  "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"
1028
1032
  ) : "",
1029
1033
  dynClass ? dynClass : "",
1030
- className,
1031
1034
  themeResetClass
1032
1035
  ),
1033
1036
  ...rest
package/dist/index.mjs CHANGED
@@ -447,9 +447,13 @@ var popoverProps = {
447
447
  description: "Add additional subtle slide-in animation on reveal, which can depend on where the tooltip is dynamically placed."
448
448
  }
449
449
  };
450
- function wrapFragmentInDiv(node) {
450
+ function wrapFragmentInDiv(node, className) {
451
451
  if (React.isValidElement(node) && node.type === React.Fragment) {
452
- const props = { ...omit(node.props, ["children"]), key: node.key };
452
+ const props = {
453
+ ...omit(node.props, ["children"]),
454
+ key: node.key
455
+ };
456
+ props["className"] = props["className"] ? props["className"] + className : className;
453
457
  return /* @__PURE__ */ React.createElement("div", { ...props }, node.props.children);
454
458
  }
455
459
  return node;
@@ -489,7 +493,7 @@ function Popover({
489
493
  defaultOpen,
490
494
  modal
491
495
  },
492
- trigger ? /* @__PURE__ */ React2.createElement(PopoverPrimitive.Trigger, { asChild: true }, wrapFragmentInDiv(children)) : /* @__PURE__ */ React2.createElement(PopoverPrimitive.Anchor, { asChild: true }, wrapFragmentInDiv(children)),
496
+ trigger ? /* @__PURE__ */ React2.createElement(PopoverPrimitive.Trigger, { asChild: true }, wrapFragmentInDiv(children, className)) : /* @__PURE__ */ React2.createElement(PopoverPrimitive.Anchor, { asChild: true }, wrapFragmentInDiv(children, className)),
493
497
  /* @__PURE__ */ React2.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React2.createElement(
494
498
  PopoverPrimitive.Content,
495
499
  {
@@ -501,7 +505,6 @@ function Popover({
501
505
  "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"
502
506
  ) : "",
503
507
  dynClass ? dynClass : "",
504
- className,
505
508
  themeResetClass
506
509
  ),
507
510
  sideOffset,
@@ -678,6 +681,7 @@ var sheetVariants = cva(
678
681
  );
679
682
  var Dialog = React3.forwardRef(
680
683
  ({
684
+ className,
681
685
  open,
682
686
  onOpenChange,
683
687
  modal,
@@ -696,7 +700,7 @@ var Dialog = React3.forwardRef(
696
700
  onOpenChange,
697
701
  defaultOpen
698
702
  },
699
- /* @__PURE__ */ React3.createElement(DialogPrimitive.Trigger, { asChild: true }, wrapFragmentInDiv(triggerSlot)),
703
+ /* @__PURE__ */ React3.createElement(DialogPrimitive.Trigger, { asChild: true }, wrapFragmentInDiv(triggerSlot, className)),
700
704
  noContain ? /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(DialogPrimitive.Portal, null, /* @__PURE__ */ React3.createElement(
701
705
  DialogOverlay,
702
706
  {
@@ -968,7 +972,7 @@ var Tooltip = React4.forwardRef(
968
972
  defaultOpen
969
973
  }
970
974
  },
971
- /* @__PURE__ */ React4.createElement(TooltipPrimitive.Trigger, { asChild: true }, wrapFragmentInDiv(children)),
975
+ /* @__PURE__ */ React4.createElement(TooltipPrimitive.Trigger, { asChild: true }, wrapFragmentInDiv(children, className)),
972
976
  /* @__PURE__ */ React4.createElement(
973
977
  TooltipPrimitive.Content,
974
978
  {
@@ -982,7 +986,6 @@ var Tooltip = React4.forwardRef(
982
986
  "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"
983
987
  ) : "",
984
988
  dynClass ? dynClass : "",
985
- className,
986
989
  themeResetClass
987
990
  ),
988
991
  ...rest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/radix-ui",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "description": "Radix UI components for Plasmic",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "analyze": "size-limit --why"
27
27
  },
28
28
  "devDependencies": {
29
- "@plasmicapp/host": "1.0.192",
29
+ "@plasmicapp/host": "1.0.193",
30
30
  "@size-limit/preset-small-lib": "^4.11.0",
31
31
  "@types/node": "^14.0.26",
32
32
  "@types/react": "^18.2.33",
@@ -45,16 +45,16 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@radix-ui/react-context-menu": "^2.1.4",
48
- "@radix-ui/react-dialog": "^1.0.4",
48
+ "@radix-ui/react-dialog": "^1.0.5",
49
49
  "@radix-ui/react-dropdown-menu": "^2.0.5",
50
- "@radix-ui/react-popover": "^1.0.6",
50
+ "@radix-ui/react-popover": "^1.0.7",
51
51
  "@radix-ui/react-popper": "^1.1.3",
52
52
  "@radix-ui/react-slot": "^1.0.2",
53
- "@radix-ui/react-tooltip": "^1.0.6",
53
+ "@radix-ui/react-tooltip": "^1.0.7",
54
54
  "class-variance-authority": "^0.7.0",
55
55
  "clsx": "^2.0.0",
56
56
  "lucide-react": "^0.279.0",
57
57
  "remeda": "^1.27.0"
58
58
  },
59
- "gitHead": "0597c84c0fa0df12523bfdbc1ba21ce81d34d63c"
59
+ "gitHead": "76c1dc046eabe4babd379478df251dc7d04c186e"
60
60
  }