@economic/taco 1.10.4 → 1.11.0

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.
@@ -10,19 +10,7 @@ declare const _default: {
10
10
  placement?: "right" | "left" | "top" | "bottom" | undefined;
11
11
  } & React.RefAttributes<HTMLDivElement>>;
12
12
  };
13
- argTypes: {
14
- size: {
15
- control: {
16
- type: string;
17
- options: string[];
18
- };
19
- };
20
- };
21
- args: {
22
- draggable: boolean;
23
- size: string;
24
- };
25
13
  };
26
14
  export default _default;
27
15
  export declare const Basic: () => JSX.Element;
28
- export declare const Custom: () => JSX.Element;
16
+ export declare const Placement: () => JSX.Element;
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
3
+ import { Placement } from '../..';
4
+ export declare const UnstyledArrow: React.ForwardRefExoticComponent<React.SVGAttributes<SVGElement> & React.RefAttributes<SVGSVGElement>>;
5
+ export declare type UnstyledContentProps = Omit<HoverCardPrimitive.HoverCardContentProps, 'side'> & {
6
+ /** Set the position of the Popover relative to its trigger. Default value is `bottom` */
7
+ placement?: Placement;
8
+ };
9
+ export declare const UnstyledContent: React.ForwardRefExoticComponent<Pick<HoverCardPrimitive.HoverCardContentProps, "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "asChild" | "sideOffset" | "align" | "alignOffset" | "arrowPadding" | "collisionBoundary" | "collisionPadding" | "sticky" | "hideWhenDetached" | "avoidCollisions" | "forceMount" | "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside"> & {
10
+ /** Set the position of the Popover relative to its trigger. Default value is `bottom` */
11
+ placement?: "right" | "left" | "top" | "bottom" | undefined;
12
+ } & React.RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,7 @@
1
1
  import { createElement, forwardRef } from 'react';
2
2
  import cn from 'classnames';
3
- import { Root, Trigger as Trigger$1, Content as Content$1 } from '@radix-ui/react-hover-card';
3
+ import { Root, Trigger as Trigger$1 } from '@radix-ui/react-hover-card';
4
+ import { UnstyledContent, UnstyledArrow } from './Primitives.js';
4
5
 
5
6
  const Trigger = /*#__PURE__*/forwardRef(function HoverCardTrigger(props, ref) {
6
7
  return /*#__PURE__*/createElement(Trigger$1, Object.assign({}, props, {
@@ -13,11 +14,13 @@ const Content = /*#__PURE__*/forwardRef(function HoverCardContent(externalProps,
13
14
  placement,
14
15
  ...props
15
16
  } = externalProps;
16
- const className = cn('bg-white rounded p-3 yt-shadow', props.className);
17
- return /*#__PURE__*/createElement(Content$1, Object.assign({}, props, {
17
+ const className = cn('bg-white focus:border-blue-light rounded p-3 yt-shadow min-w-[theme(spacing.40)] max-w-[theme(spacing.96)]', props.className);
18
+ return /*#__PURE__*/createElement(UnstyledContent, Object.assign({}, props, {
18
19
  className: className,
19
- ref: ref,
20
- side: placement
20
+ placement: placement,
21
+ ref: ref
22
+ }), props.children, /*#__PURE__*/createElement(UnstyledArrow, {
23
+ className: "text-white"
21
24
  }));
22
25
  });
23
26
  const HoverCard = props => {
@@ -1 +1 @@
1
- {"version":3,"file":"HoverCard.js","sources":["../../../../src/components/HoverCard/HoverCard.tsx"],"sourcesContent":["import * as React from 'react';\nimport cn from 'classnames';\nimport * as HoverCardPrimitive from '@radix-ui/react-hover-card';\nimport { Placement } from '../..';\n\nexport type HoverCardTriggerProps = React.HTMLAttributes<HTMLAnchorElement>;\nconst Trigger = React.forwardRef(function HoverCardTrigger(props: HoverCardTriggerProps, ref: React.Ref<HTMLAnchorElement>) {\n return <HoverCardPrimitive.Trigger {...props} asChild ref={ref} />;\n});\n\nexport type HoverCardContentProps = React.HTMLAttributes<HTMLDivElement> & {\n /** Set the position of the HoverCard relative to its trigger. Default value is `bottom` */\n placement?: Placement;\n};\nconst Content = React.forwardRef(function HoverCardContent(externalProps: HoverCardContentProps, ref: React.Ref<HTMLDivElement>) {\n const { placement, ...props } = externalProps;\n const className = cn('bg-white rounded p-3 yt-shadow', props.className);\n\n return <HoverCardPrimitive.Content {...props} className={className} ref={ref} side={placement} />;\n});\n\nexport type HoverCardProps = React.PropsWithChildren<{}>;\n\nexport const HoverCard = (props: HoverCardProps) => {\n return <HoverCardPrimitive.Root {...props} openDelay={300} />;\n};\nHoverCard.Trigger = Trigger;\nHoverCard.Content = Content;\n"],"names":["Trigger","React","HoverCardTrigger","props","ref","HoverCardPrimitive","asChild","Content","HoverCardContent","externalProps","placement","className","cn","side","HoverCard","openDelay"],"mappings":";;;;AAMA,MAAMA,OAAO,gBAAGC,UAAA,CAAiB,SAASC,gBAAT,CAA0BC,KAA1B,EAAwDC,GAAxD;EAC7B,oBAAOH,aAAA,CAACI,SAAD,oBAAgCF;IAAOG,OAAO;IAACF,GAAG,EAAEA;IAApD,CAAP;AACH,CAFe,CAAhB;AAQA,MAAMG,OAAO,gBAAGN,UAAA,CAAiB,SAASO,gBAAT,CAA0BC,aAA1B,EAAgEL,GAAhE;EAC7B,MAAM;IAAEM,SAAF;IAAa,GAAGP;MAAUM,aAAhC;EACA,MAAME,SAAS,GAAGC,EAAE,CAAC,gCAAD,EAAmCT,KAAK,CAACQ,SAAzC,CAApB;EAEA,oBAAOV,aAAA,CAACI,SAAD,oBAAgCF;IAAOQ,SAAS,EAAEA;IAAWP,GAAG,EAAEA;IAAKS,IAAI,EAAEH;IAA7E,CAAP;AACH,CALe,CAAhB;MASaI,SAAS,GAAIX,KAAD;EACrB,oBAAOF,aAAA,CAACI,IAAD,oBAA6BF;IAAOY,SAAS,EAAE;IAA/C,CAAP;AACH;AACDD,SAAS,CAACd,OAAV,GAAoBA,OAApB;AACAc,SAAS,CAACP,OAAV,GAAoBA,OAApB;;;;"}
1
+ {"version":3,"file":"HoverCard.js","sources":["../../../../src/components/HoverCard/HoverCard.tsx"],"sourcesContent":["import * as React from 'react';\nimport cn from 'classnames';\nimport * as HoverCardPrimitive from '@radix-ui/react-hover-card';\nimport { Placement } from '../..';\nimport { UnstyledArrow, UnstyledContent } from './Primitives';\n\nexport type HoverCardTriggerProps = React.HTMLAttributes<HTMLAnchorElement>;\nconst Trigger = React.forwardRef(function HoverCardTrigger(props: HoverCardTriggerProps, ref: React.Ref<HTMLAnchorElement>) {\n return <HoverCardPrimitive.Trigger {...props} asChild ref={ref} />;\n});\n\nexport type HoverCardContentProps = React.HTMLAttributes<HTMLDivElement> & {\n /** Set the position of the HoverCard relative to its trigger. Default value is `bottom` */\n placement?: Placement;\n};\nconst Content = React.forwardRef(function HoverCardContent(externalProps: HoverCardContentProps, ref: React.Ref<HTMLDivElement>) {\n const { placement, ...props } = externalProps;\n const className = cn(\n 'bg-white focus:border-blue-light rounded p-3 yt-shadow min-w-[theme(spacing.40)] max-w-[theme(spacing.96)]',\n props.className\n );\n\n return (\n <UnstyledContent {...props} className={className} placement={placement} ref={ref}>\n {props.children}\n <UnstyledArrow className=\"text-white\" />\n </UnstyledContent>\n );\n});\n\nexport type HoverCardProps = React.PropsWithChildren<{}>;\n\nexport const HoverCard = (props: HoverCardProps) => {\n return <HoverCardPrimitive.Root {...props} openDelay={300} />;\n};\nHoverCard.Trigger = Trigger;\nHoverCard.Content = Content;\n"],"names":["Trigger","React","HoverCardTrigger","props","ref","HoverCardPrimitive","asChild","Content","HoverCardContent","externalProps","placement","className","cn","UnstyledContent","children","UnstyledArrow","HoverCard","openDelay"],"mappings":";;;;;AAOA,MAAMA,OAAO,gBAAGC,UAAA,CAAiB,SAASC,gBAAT,CAA0BC,KAA1B,EAAwDC,GAAxD;EAC7B,oBAAOH,aAAA,CAACI,SAAD,oBAAgCF;IAAOG,OAAO;IAACF,GAAG,EAAEA;IAApD,CAAP;AACH,CAFe,CAAhB;AAQA,MAAMG,OAAO,gBAAGN,UAAA,CAAiB,SAASO,gBAAT,CAA0BC,aAA1B,EAAgEL,GAAhE;EAC7B,MAAM;IAAEM,SAAF;IAAa,GAAGP;MAAUM,aAAhC;EACA,MAAME,SAAS,GAAGC,EAAE,CAChB,4GADgB,EAEhBT,KAAK,CAACQ,SAFU,CAApB;EAKA,oBACIV,aAAA,CAACY,eAAD,oBAAqBV;IAAOQ,SAAS,EAAEA;IAAWD,SAAS,EAAEA;IAAWN,GAAG,EAAEA;IAA7E,EACKD,KAAK,CAACW,QADX,eAEIb,aAAA,CAACc,aAAD;IAAeJ,SAAS,EAAC;GAAzB,CAFJ,CADJ;AAMH,CAbe,CAAhB;MAiBaK,SAAS,GAAIb,KAAD;EACrB,oBAAOF,aAAA,CAACI,IAAD,oBAA6BF;IAAOc,SAAS,EAAE;IAA/C,CAAP;AACH;AACDD,SAAS,CAAChB,OAAV,GAAoBA,OAApB;AACAgB,SAAS,CAACT,OAAV,GAAoBA,OAApB;;;;"}
@@ -0,0 +1,41 @@
1
+ import { forwardRef, createElement } from 'react';
2
+ import cn from 'classnames';
3
+ import { Arrow, Content } from '@radix-ui/react-hover-card';
4
+
5
+ const UnstyledArrow = /*#__PURE__*/forwardRef(function HoverCardArrow(props, ref) {
6
+ return /*#__PURE__*/createElement(Arrow, {
7
+ className: "pointer-events-none -mt-px",
8
+ asChild: true,
9
+ offset: 2,
10
+ width: 30,
11
+ height: 11
12
+ }, /*#__PURE__*/createElement("svg", Object.assign({}, props, {
13
+ ref: ref,
14
+ viewBox: "0 19 30 11",
15
+ style: {
16
+ transform: 'rotateZ(180deg)'
17
+ }
18
+ }), /*#__PURE__*/createElement("path", {
19
+ className: "text-grey-dark group-focus:text-blue-light fill-current",
20
+ d: "M23.7,27.1L17,19.9C16.5,19.3,15.8,19,15,19s-1.6,0.3-2.1,0.9l-6.6,7.2C5.3,28.1,3.4,29,2,29h26 C26.7,29,24.6,28.1,23.7,27.1z"
21
+ }), /*#__PURE__*/createElement("path", {
22
+ className: "fill-current",
23
+ d: "M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"
24
+ })));
25
+ });
26
+ const UnstyledContent = /*#__PURE__*/forwardRef(function HoverCardContent(props, ref) {
27
+ const {
28
+ placement: side,
29
+ ...otherProps
30
+ } = props;
31
+ const className = cn('border border-transparent rounded p-3 yt-shadow focus:yt-focus outline-none group z-[996]', props.className);
32
+ return /*#__PURE__*/createElement(Content, Object.assign({}, otherProps, {
33
+ className: className,
34
+ side: side,
35
+ sideOffset: 1,
36
+ ref: ref
37
+ }));
38
+ });
39
+
40
+ export { UnstyledArrow, UnstyledContent };
41
+ //# sourceMappingURL=Primitives.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Primitives.js","sources":["../../../../src/components/HoverCard/Primitives.tsx"],"sourcesContent":["import * as React from 'react';\nimport cn from 'classnames';\nimport * as HoverCardPrimitive from '@radix-ui/react-hover-card';\nimport { Placement } from '../..';\n\nexport const UnstyledArrow = React.forwardRef(function HoverCardArrow(\n props: React.SVGAttributes<SVGElement>,\n ref: React.Ref<SVGSVGElement>\n) {\n return (\n <HoverCardPrimitive.Arrow className=\"pointer-events-none -mt-px\" asChild offset={2} width={30} height={11}>\n <svg {...props} ref={ref} viewBox=\"0 19 30 11\" style={{ transform: 'rotateZ(180deg)' }}>\n <path\n className=\"text-grey-dark group-focus:text-blue-light fill-current\"\n d=\"M23.7,27.1L17,19.9C16.5,19.3,15.8,19,15,19s-1.6,0.3-2.1,0.9l-6.6,7.2C5.3,28.1,3.4,29,2,29h26 C26.7,29,24.6,28.1,23.7,27.1z\"></path>\n <path\n className=\"fill-current\"\n d=\"M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z\"></path>\n </svg>\n </HoverCardPrimitive.Arrow>\n );\n});\n\nexport type UnstyledContentProps = Omit<HoverCardPrimitive.HoverCardContentProps, 'side'> & {\n /** Set the position of the Popover relative to its trigger. Default value is `bottom` */\n placement?: Placement;\n};\nexport const UnstyledContent = React.forwardRef(function HoverCardContent(\n props: UnstyledContentProps,\n ref: React.Ref<HTMLDivElement>\n) {\n const { placement: side, ...otherProps } = props;\n\n const className = cn(\n 'border border-transparent rounded p-3 yt-shadow focus:yt-focus outline-none group z-[996]',\n props.className\n );\n\n return <HoverCardPrimitive.Content {...otherProps} className={className} side={side} sideOffset={1} ref={ref} />;\n});\n"],"names":["UnstyledArrow","React","HoverCardArrow","props","ref","HoverCardPrimitive","className","asChild","offset","width","height","viewBox","style","transform","d","UnstyledContent","HoverCardContent","placement","side","otherProps","cn","sideOffset"],"mappings":";;;;MAKaA,aAAa,gBAAGC,UAAA,CAAiB,SAASC,cAAT,CAC1CC,KAD0C,EAE1CC,GAF0C;EAI1C,oBACIH,aAAA,CAACI,KAAD;IAA0BC,SAAS,EAAC;IAA6BC,OAAO;IAACC,MAAM,EAAE;IAAGC,KAAK,EAAE;IAAIC,MAAM,EAAE;GAAvG,eACIT,aAAA,MAAA,oBAASE;IAAOC,GAAG,EAAEA;IAAKO,OAAO,EAAC;IAAaC,KAAK,EAAE;MAAEC,SAAS,EAAE;;IAAnE,eACIZ,aAAA,OAAA;IACIK,SAAS,EAAC;IACVQ,CAAC,EAAC;GAFN,CADJ,eAIIb,aAAA,OAAA;IACIK,SAAS,EAAC;IACVQ,CAAC,EAAC;GAFN,CAJJ,CADJ,CADJ;AAYH,CAhB4B;MAsBhBC,eAAe,gBAAGd,UAAA,CAAiB,SAASe,gBAAT,CAC5Cb,KAD4C,EAE5CC,GAF4C;EAI5C,MAAM;IAAEa,SAAS,EAAEC,IAAb;IAAmB,GAAGC;MAAehB,KAA3C;EAEA,MAAMG,SAAS,GAAGc,EAAE,CAChB,2FADgB,EAEhBjB,KAAK,CAACG,SAFU,CAApB;EAKA,oBAAOL,aAAA,CAACI,OAAD,oBAAgCc;IAAYb,SAAS,EAAEA;IAAWY,IAAI,EAAEA;IAAMG,UAAU,EAAE;IAAGjB,GAAG,EAAEA;IAAlG,CAAP;AACH,CAZ8B;;;;"}
@@ -5987,6 +5987,41 @@ Hanger.Anchor = Anchor;
5987
5987
  Hanger.Content = Content$4;
5988
5988
  Hanger.Title = Title$1;
5989
5989
 
5990
+ const UnstyledArrow$1 = /*#__PURE__*/React.forwardRef(function HoverCardArrow(props, ref) {
5991
+ return /*#__PURE__*/React.createElement(HoverCardPrimitive.Arrow, {
5992
+ className: "pointer-events-none -mt-px",
5993
+ asChild: true,
5994
+ offset: 2,
5995
+ width: 30,
5996
+ height: 11
5997
+ }, /*#__PURE__*/React.createElement("svg", Object.assign({}, props, {
5998
+ ref: ref,
5999
+ viewBox: "0 19 30 11",
6000
+ style: {
6001
+ transform: 'rotateZ(180deg)'
6002
+ }
6003
+ }), /*#__PURE__*/React.createElement("path", {
6004
+ className: "text-grey-dark group-focus:text-blue-light fill-current",
6005
+ d: "M23.7,27.1L17,19.9C16.5,19.3,15.8,19,15,19s-1.6,0.3-2.1,0.9l-6.6,7.2C5.3,28.1,3.4,29,2,29h26 C26.7,29,24.6,28.1,23.7,27.1z"
6006
+ }), /*#__PURE__*/React.createElement("path", {
6007
+ className: "fill-current",
6008
+ d: "M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"
6009
+ })));
6010
+ });
6011
+ const UnstyledContent$1 = /*#__PURE__*/React.forwardRef(function HoverCardContent(props, ref) {
6012
+ const {
6013
+ placement: side,
6014
+ ...otherProps
6015
+ } = props;
6016
+ const className = cn('border border-transparent rounded p-3 yt-shadow focus:yt-focus outline-none group z-[996]', props.className);
6017
+ return /*#__PURE__*/React.createElement(HoverCardPrimitive.Content, Object.assign({}, otherProps, {
6018
+ className: className,
6019
+ side: side,
6020
+ sideOffset: 1,
6021
+ ref: ref
6022
+ }));
6023
+ });
6024
+
5990
6025
  const Trigger$3 = /*#__PURE__*/React.forwardRef(function HoverCardTrigger(props, ref) {
5991
6026
  return /*#__PURE__*/React.createElement(HoverCardPrimitive.Trigger, Object.assign({}, props, {
5992
6027
  asChild: true,
@@ -5998,11 +6033,13 @@ const Content$5 = /*#__PURE__*/React.forwardRef(function HoverCardContent(extern
5998
6033
  placement,
5999
6034
  ...props
6000
6035
  } = externalProps;
6001
- const className = cn('bg-white rounded p-3 yt-shadow', props.className);
6002
- return /*#__PURE__*/React.createElement(HoverCardPrimitive.Content, Object.assign({}, props, {
6036
+ const className = cn('bg-white focus:border-blue-light rounded p-3 yt-shadow min-w-[theme(spacing.40)] max-w-[theme(spacing.96)]', props.className);
6037
+ return /*#__PURE__*/React.createElement(UnstyledContent$1, Object.assign({}, props, {
6003
6038
  className: className,
6004
- ref: ref,
6005
- side: placement
6039
+ placement: placement,
6040
+ ref: ref
6041
+ }), props.children, /*#__PURE__*/React.createElement(UnstyledArrow$1, {
6042
+ className: "text-white"
6006
6043
  }));
6007
6044
  });
6008
6045
  const HoverCard = props => {