@lotte-innovate/ui-component-test 0.2.81 → 0.2.82

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,10 +26,9 @@ import { forwardRef, useContext } from 'react';
26
26
  import { scalingVariants } from '../../../lib/constants';
27
27
  import { Popover as PopoverTheme } from '@radix-ui/themes';
28
28
  import { cva } from 'class-variance-authority';
29
- import { Portal } from '@radix-ui/react-portal';
30
29
  import { PopoverContext } from './PopoverRoot';
31
30
  import { cn } from '../../../lib/utils/utils';
32
- export var popoverContentVariants = cva('flex gap-2 bg-white dark:bg-slateDark-1 border-slateA-6 dark:border-slateDarkA-6', {
31
+ export var popoverContentVariants = cva('flex gap-2 bg-white dark:bg-slateDark-1 border-slateA-6 dark:border-slateDarkA-6 z-10', {
33
32
  variants: {
34
33
  radius: {
35
34
  none: 'rounded-none',
@@ -62,6 +61,6 @@ export var PopoverContent = forwardRef(function (_a, ref) {
62
61
  sizeTheme = '3';
63
62
  if (size === 'x-large')
64
63
  sizeTheme = '4';
65
- return (_jsx(Portal, { children: _jsx(PopoverTheme.Content, __assign({ ref: ref, size: sizeTheme, className: cn(popoverContentVariants({ size: size, radius: radius, scaling: scaling }), className) }, props, { children: children })) }));
64
+ return (_jsx(PopoverTheme.Content, __assign({ ref: ref, size: sizeTheme, className: cn(popoverContentVariants({ size: size, radius: radius, scaling: scaling }), className) }, props, { children: children })));
66
65
  });
67
66
  PopoverContent.displayName = 'Popover.Content';
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{jsx as r}from"react/jsx-runtime";import{forwardRef as e,useContext as t}from"react";import{scalingVariants as a}from"../../constants.mjs";import{Popover as o}from"@radix-ui/themes";import{cva as i}from"class-variance-authority";import{Portal as n}from"@radix-ui/react-portal";import{PopoverContext as s}from"./PopoverRoot.mjs";import{cn as l}from"../../utils/utils.mjs";var m=function(){return m=Object.assign||function(r){for(var e,t=1,a=arguments.length;t<a;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},m.apply(this,arguments)},d=function(r,e){var t={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(t[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(r);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(r,a[o])&&(t[a[o]]=r[a[o]])}return t},p=i("flex gap-2 bg-white dark:bg-slateDark-1 border-slateA-6 dark:border-slateDarkA-6",{variants:{radius:{none:"rounded-none",small:"rounded-[3px]",medium:"rounded",large:"rounded-md",full:"rounded-md"},size:{small:"text-xs w-[250px]",medium:"text-sm w-[300px]",large:"text-base w-[350px]","x-large":"text-lg w-[400px]"},scaling:m({},a)},defaultVariants:{radius:"medium",size:"medium",scaling:"100%"}}),u=e((function(e,a){var i=e.className,u=e.children,c=d(e,["className","children"]),f=t(s),x=f.radius,g=f.size,b=f.scaling,y="2";return"small"===g&&(y="1"),"large"===g&&(y="3"),"x-large"===g&&(y="4"),r(n,{children:r(o.Content,m({ref:a,size:y,className:l(p({size:g,radius:x,scaling:b}),i)},c,{children:u}))})}));u.displayName="Popover.Content";export{u as PopoverContent,p as popoverContentVariants};
2
+ import{jsx as r}from"react/jsx-runtime";import{forwardRef as e,useContext as t}from"react";import{scalingVariants as a}from"../../constants.mjs";import{Popover as o}from"@radix-ui/themes";import{cva as n}from"class-variance-authority";import{PopoverContext as i}from"./PopoverRoot.mjs";import{cn as s}from"../../utils/utils.mjs";var l=function(){return l=Object.assign||function(r){for(var e,t=1,a=arguments.length;t<a;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},l.apply(this,arguments)},m=function(r,e){var t={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(t[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(r);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(r,a[o])&&(t[a[o]]=r[a[o]])}return t},d=n("flex gap-2 bg-white dark:bg-slateDark-1 border-slateA-6 dark:border-slateDarkA-6 z-10",{variants:{radius:{none:"rounded-none",small:"rounded-[3px]",medium:"rounded",large:"rounded-md",full:"rounded-md"},size:{small:"text-xs w-[250px]",medium:"text-sm w-[300px]",large:"text-base w-[350px]","x-large":"text-lg w-[400px]"},scaling:l({},a)},defaultVariants:{radius:"medium",size:"medium",scaling:"100%"}}),p=e((function(e,a){var n=e.className,p=e.children,u=m(e,["className","children"]),c=t(i),f=c.radius,g=c.size,x=c.scaling,b="2";return"small"===g&&(b="1"),"large"===g&&(b="3"),"x-large"===g&&(b="4"),r(o.Content,l({ref:a,size:b,className:s(d({size:g,radius:f,scaling:x}),n)},u,{children:p}))}));p.displayName="Popover.Content";export{p as PopoverContent,d as popoverContentVariants};
3
3
  //# sourceMappingURL=PopoverContent.mjs.map