@pantograph/styles 0.0.14 → 0.0.16

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/tooltip.css CHANGED
@@ -1 +1 @@
1
- .pc_tooltip__content{position:relative;box-sizing:border-box;min-height:var(--pt-size-md, 32px);display:flex;gap:var(--pt-dimension-300, 6px);border-width:var(--pt-stroke-10, 1px);--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-radius:var(--pt-roundness-lg, 8px);border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));padding-top:var(--pt-dimension-200, 4px);padding-bottom:var(--pt-dimension-200, 4px);padding-left:var(--pt-dimension-300, 6px);padding-right:var(--pt-dimension-300, 6px);--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0;max-height:var(--reka-tooltip-content-available-height);max-width:var(--reka-tooltip-content-available-width);width:var(--ptc-tooltip-w, auto);outline:0}.pc_tooltip__content:before{content:"";position:absolute;width:8px;height:8px;--ptu-skew-x:6deg;--ptu-skew-y:6deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));border-top-right-radius:3px;border-bottom-left-radius:3px}.pc_tooltip__content[data-side=bottom]:before{--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;top:-4.5px}.pc_tooltip__content[data-side=bottom][data-align=center]:before{left:50%;--ptu-translate-x:-50%;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}.pc_tooltip__content[data-side=bottom][data-align=start]:before{inset-inline-start:12px}.pc_tooltip__content[data-side=bottom][data-align=end]:before{inset-inline-end:12px}.pc_tooltip__content[data-side=top]:before{--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;bottom:-4.5px}.pc_tooltip__content[data-side=top][data-align=center]:before{left:50%;--ptu-translate-x:-50%;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}.pc_tooltip__content[data-side=top][data-align=start]:before{inset-inline-start:12px}.pc_tooltip__content[data-side=top][data-align=end]:before{inset-inline-end:12px}.pc_tooltip__content[data-side=right]:before{top:50%;--ptu-translate-y:-50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;left:-4.5px}.pc_tooltip__content[data-side=left]:before{top:50%;--ptu-translate-y:-50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;right:-4.5px}.pc_tooltip__content .pc_tooltip__text{--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_tooltip{position:relative}.pc_tooltip:before{content:attr(data-tooltip);pointer-events:none;box-sizing:border-box;border-width:1px;--ptu-border-opacity:1;border-color:rgba(var(--pt-grayscale-dark-2),var(--ptu-border-opacity));border-radius:var(--pt-roundness-lg, 8px);border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-grayscale-dark-0),var(--ptu-bg-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);position:absolute;z-index:1000;max-width:80vw;min-height:var(--pt-size-md, 32px);padding-top:var(--pt-dimension-200, 4px);padding-bottom:var(--pt-dimension-200, 4px);padding-left:var(--pt-dimension-300, 6px);padding-right:var(--pt-dimension-300, 6px);--ptu-text-opacity:1;color:rgba(var(--pt-grayscale-dark-8),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0;line-height:var(--pt-size-sm);text-wrap:nowrap;opacity:0;visibility:hidden}.pc_tooltip:after{pointer-events:none;position:absolute;z-index:1000;width:8px;height:8px;--ptu-skew-x:6deg;--ptu-skew-y:6deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));--ptu-border-opacity:1;border-color:rgba(var(--pt-grayscale-dark-2),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-grayscale-dark-0),var(--ptu-bg-opacity));border-top-right-radius:3px;border-bottom-left-radius:3px;content:"";opacity:0;visibility:hidden}.pc_tooltip:hover:before,.pc_tooltip:hover:after{opacity:1;visibility:visible}.pc_tooltip.pc_tooltip--top:before,.pc_tooltip:not(.pc_tooltip--bottom):not(.pc_tooltip--right):not(.pc_tooltip--left):before{bottom:calc(100% + 12px);left:50%;transform:translate(-50%)}.pc_tooltip.pc_tooltip--top:after,.pc_tooltip:not(.pc_tooltip--bottom):not(.pc_tooltip--right):not(.pc_tooltip--left):after{--ptu-translate-x:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;bottom:calc(100% + 8px);left:calc(50% - 8px)}.pc_tooltip.pc_tooltip--bottom:before{top:calc(100% + 12px);left:50%;transform:translate(-50%)}.pc_tooltip.pc_tooltip--bottom:after{--ptu-translate-x:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;top:calc(100% + 8px);left:calc(50% - 8px)}.pc_tooltip.pc_tooltip--right:before{left:calc(100% + 12px);top:50%;transform:translateY(-50%)}.pc_tooltip.pc_tooltip--right:after{--ptu-translate-y:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;left:calc(100% + 8px);top:calc(50% - 8px)}.pc_tooltip.pc_tooltip--left:before{right:calc(100% + 12px);top:50%;transform:translateY(-50%)}.pc_tooltip.pc_tooltip--left:after{--ptu-translate-y:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;right:calc(100% + 8px);top:calc(50% - 8px)}
1
+ .pc_tooltip__content{position:relative;box-sizing:border-box;border-width:var(--pt-stroke-10, 1px);--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-radius:var(--pt-roundness-lg, 8px);border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_tooltip__content .pc_tooltip__wrapper{min-height:var(--pt-size-md, 32px);display:flex;gap:var(--pt-dimension-300, 6px);overflow:hidden;padding-top:var(--pt-dimension-200, 4px);padding-bottom:var(--pt-dimension-200, 4px);padding-left:var(--pt-dimension-300, 6px);padding-right:var(--pt-dimension-300, 6px);max-height:var(--reka-tooltip-content-available-height);max-width:var(--ptc-tooltip-max-w, var(--reka-tooltip-content-available-width));width:var(--ptc-tooltip-w, auto);outline:0}.pc_tooltip__content:before{content:"";position:absolute;width:8px;height:8px;--ptu-skew-x:6deg;--ptu-skew-y:6deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));border-top-right-radius:3px;border-bottom-left-radius:3px}.pc_tooltip__content[data-side=bottom]:before{--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;top:-4.5px}.pc_tooltip__content[data-side=bottom][data-align=center]:before{left:50%;--ptu-translate-x:-50%;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}.pc_tooltip__content[data-side=bottom][data-align=start]:before{inset-inline-start:12px}.pc_tooltip__content[data-side=bottom][data-align=end]:before{inset-inline-end:12px}.pc_tooltip__content[data-side=top]:before{--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;bottom:-4.5px}.pc_tooltip__content[data-side=top][data-align=center]:before{left:50%;--ptu-translate-x:-50%;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}.pc_tooltip__content[data-side=top][data-align=start]:before{inset-inline-start:12px}.pc_tooltip__content[data-side=top][data-align=end]:before{inset-inline-end:12px}.pc_tooltip__content[data-side=right]:before{top:50%;--ptu-translate-y:-50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;left:-4.5px}.pc_tooltip__content[data-side=left]:before{top:50%;--ptu-translate-y:-50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;right:-4.5px}.pc_tooltip__content .pc_tooltip__text{--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_tooltip{position:relative;max-width:var(--ptc-tooltip-max-w, auto);width:var(--ptc-tooltip-w, auto)}.pc_tooltip:before{content:attr(data-tooltip);pointer-events:none;box-sizing:border-box;border-width:1px;--ptu-border-opacity:1;border-color:rgba(var(--pt-grayscale-dark-2),var(--ptu-border-opacity));border-radius:var(--pt-roundness-lg, 8px);border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-grayscale-dark-0),var(--ptu-bg-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);position:absolute;z-index:1000;max-width:80vw;min-height:var(--pt-size-md, 32px);padding-top:var(--pt-dimension-200, 4px);padding-bottom:var(--pt-dimension-200, 4px);padding-left:var(--pt-dimension-300, 6px);padding-right:var(--pt-dimension-300, 6px);--ptu-text-opacity:1;color:rgba(var(--pt-grayscale-dark-8),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0;line-height:var(--pt-size-sm);text-wrap:nowrap;opacity:0;visibility:hidden}.pc_tooltip:after{pointer-events:none;position:absolute;z-index:1000;width:8px;height:8px;--ptu-skew-x:6deg;--ptu-skew-y:6deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));--ptu-border-opacity:1;border-color:rgba(var(--pt-grayscale-dark-2),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-grayscale-dark-0),var(--ptu-bg-opacity));border-top-right-radius:3px;border-bottom-left-radius:3px;content:"";opacity:0;visibility:hidden}.pc_tooltip:hover:before,.pc_tooltip:hover:after{opacity:1;visibility:visible}.pc_tooltip.pc_tooltip--top:before,.pc_tooltip:not(.pc_tooltip--bottom):not(.pc_tooltip--right):not(.pc_tooltip--left):before{bottom:calc(100% + 12px);left:50%;transform:translate(-50%)}.pc_tooltip.pc_tooltip--top:after,.pc_tooltip:not(.pc_tooltip--bottom):not(.pc_tooltip--right):not(.pc_tooltip--left):after{--ptu-translate-x:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;bottom:calc(100% + 8px);left:calc(50% - 8px)}.pc_tooltip.pc_tooltip--bottom:before{top:calc(100% + 12px);left:50%;transform:translate(-50%)}.pc_tooltip.pc_tooltip--bottom:after{--ptu-translate-x:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;top:calc(100% + 8px);left:calc(50% - 8px)}.pc_tooltip.pc_tooltip--right:before{left:calc(100% + 12px);top:50%;transform:translateY(-50%)}.pc_tooltip.pc_tooltip--right:after{--ptu-translate-y:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;left:calc(100% + 8px);top:calc(50% - 8px)}.pc_tooltip.pc_tooltip--left:before{right:calc(100% + 12px);top:50%;transform:translateY(-50%)}.pc_tooltip.pc_tooltip--left:after{--ptu-translate-y:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;right:calc(100% + 8px);top:calc(50% - 8px)}
package/dist/tooltip.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { addCssToHead, removeCssFromHead, prefix } from "@pantograph/tokens";
2
- const cssText = ".pc_tooltip__content{position:relative;box-sizing:border-box;min-height:var(--pt-size-md, 32px);display:flex;gap:var(--pt-dimension-300, 6px);border-width:var(--pt-stroke-10, 1px);--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-radius:var(--pt-roundness-lg, 8px);border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));padding-top:var(--pt-dimension-200, 4px);padding-bottom:var(--pt-dimension-200, 4px);padding-left:var(--pt-dimension-300, 6px);padding-right:var(--pt-dimension-300, 6px);--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0;max-height:var(--reka-tooltip-content-available-height);max-width:var(--reka-tooltip-content-available-width);width:var(--ptc-tooltip-w, auto);outline:0}.pc_tooltip__content:before{content:\"\";position:absolute;width:8px;height:8px;--ptu-skew-x:6deg;--ptu-skew-y:6deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));border-top-right-radius:3px;border-bottom-left-radius:3px}.pc_tooltip__content[data-side=bottom]:before{--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;top:-4.5px}.pc_tooltip__content[data-side=bottom][data-align=center]:before{left:50%;--ptu-translate-x:-50%;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}.pc_tooltip__content[data-side=bottom][data-align=start]:before{inset-inline-start:12px}.pc_tooltip__content[data-side=bottom][data-align=end]:before{inset-inline-end:12px}.pc_tooltip__content[data-side=top]:before{--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;bottom:-4.5px}.pc_tooltip__content[data-side=top][data-align=center]:before{left:50%;--ptu-translate-x:-50%;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}.pc_tooltip__content[data-side=top][data-align=start]:before{inset-inline-start:12px}.pc_tooltip__content[data-side=top][data-align=end]:before{inset-inline-end:12px}.pc_tooltip__content[data-side=right]:before{top:50%;--ptu-translate-y:-50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;left:-4.5px}.pc_tooltip__content[data-side=left]:before{top:50%;--ptu-translate-y:-50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;right:-4.5px}.pc_tooltip__content .pc_tooltip__text{--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_tooltip{position:relative}.pc_tooltip:before{content:attr(data-tooltip);pointer-events:none;box-sizing:border-box;border-width:1px;--ptu-border-opacity:1;border-color:rgba(var(--pt-grayscale-dark-2),var(--ptu-border-opacity));border-radius:var(--pt-roundness-lg, 8px);border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-grayscale-dark-0),var(--ptu-bg-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);position:absolute;z-index:1000;max-width:80vw;min-height:var(--pt-size-md, 32px);padding-top:var(--pt-dimension-200, 4px);padding-bottom:var(--pt-dimension-200, 4px);padding-left:var(--pt-dimension-300, 6px);padding-right:var(--pt-dimension-300, 6px);--ptu-text-opacity:1;color:rgba(var(--pt-grayscale-dark-8),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0;line-height:var(--pt-size-sm);text-wrap:nowrap;opacity:0;visibility:hidden}.pc_tooltip:after{pointer-events:none;position:absolute;z-index:1000;width:8px;height:8px;--ptu-skew-x:6deg;--ptu-skew-y:6deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));--ptu-border-opacity:1;border-color:rgba(var(--pt-grayscale-dark-2),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-grayscale-dark-0),var(--ptu-bg-opacity));border-top-right-radius:3px;border-bottom-left-radius:3px;content:\"\";opacity:0;visibility:hidden}.pc_tooltip:hover:before,.pc_tooltip:hover:after{opacity:1;visibility:visible}.pc_tooltip.pc_tooltip--top:before,.pc_tooltip:not(.pc_tooltip--bottom):not(.pc_tooltip--right):not(.pc_tooltip--left):before{bottom:calc(100% + 12px);left:50%;transform:translate(-50%)}.pc_tooltip.pc_tooltip--top:after,.pc_tooltip:not(.pc_tooltip--bottom):not(.pc_tooltip--right):not(.pc_tooltip--left):after{--ptu-translate-x:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;bottom:calc(100% + 8px);left:calc(50% - 8px)}.pc_tooltip.pc_tooltip--bottom:before{top:calc(100% + 12px);left:50%;transform:translate(-50%)}.pc_tooltip.pc_tooltip--bottom:after{--ptu-translate-x:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;top:calc(100% + 8px);left:calc(50% - 8px)}.pc_tooltip.pc_tooltip--right:before{left:calc(100% + 12px);top:50%;transform:translateY(-50%)}.pc_tooltip.pc_tooltip--right:after{--ptu-translate-y:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;left:calc(100% + 8px);top:calc(50% - 8px)}.pc_tooltip.pc_tooltip--left:before{right:calc(100% + 12px);top:50%;transform:translateY(-50%)}.pc_tooltip.pc_tooltip--left:after{--ptu-translate-y:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;right:calc(100% + 8px);top:calc(50% - 8px)}\n";
2
+ const cssText = ".pc_tooltip__content{position:relative;box-sizing:border-box;border-width:var(--pt-stroke-10, 1px);--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-radius:var(--pt-roundness-lg, 8px);border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_tooltip__content .pc_tooltip__wrapper{min-height:var(--pt-size-md, 32px);display:flex;gap:var(--pt-dimension-300, 6px);overflow:hidden;padding-top:var(--pt-dimension-200, 4px);padding-bottom:var(--pt-dimension-200, 4px);padding-left:var(--pt-dimension-300, 6px);padding-right:var(--pt-dimension-300, 6px);max-height:var(--reka-tooltip-content-available-height);max-width:var(--ptc-tooltip-max-w, var(--reka-tooltip-content-available-width));width:var(--ptc-tooltip-w, auto);outline:0}.pc_tooltip__content:before{content:\"\";position:absolute;width:8px;height:8px;--ptu-skew-x:6deg;--ptu-skew-y:6deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));border-top-right-radius:3px;border-bottom-left-radius:3px}.pc_tooltip__content[data-side=bottom]:before{--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;top:-4.5px}.pc_tooltip__content[data-side=bottom][data-align=center]:before{left:50%;--ptu-translate-x:-50%;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}.pc_tooltip__content[data-side=bottom][data-align=start]:before{inset-inline-start:12px}.pc_tooltip__content[data-side=bottom][data-align=end]:before{inset-inline-end:12px}.pc_tooltip__content[data-side=top]:before{--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;bottom:-4.5px}.pc_tooltip__content[data-side=top][data-align=center]:before{left:50%;--ptu-translate-x:-50%;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}.pc_tooltip__content[data-side=top][data-align=start]:before{inset-inline-start:12px}.pc_tooltip__content[data-side=top][data-align=end]:before{inset-inline-end:12px}.pc_tooltip__content[data-side=right]:before{top:50%;--ptu-translate-y:-50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;left:-4.5px}.pc_tooltip__content[data-side=left]:before{top:50%;--ptu-translate-y:-50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;right:-4.5px}.pc_tooltip__content .pc_tooltip__text{--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_tooltip{position:relative;max-width:var(--ptc-tooltip-max-w, auto);width:var(--ptc-tooltip-w, auto)}.pc_tooltip:before{content:attr(data-tooltip);pointer-events:none;box-sizing:border-box;border-width:1px;--ptu-border-opacity:1;border-color:rgba(var(--pt-grayscale-dark-2),var(--ptu-border-opacity));border-radius:var(--pt-roundness-lg, 8px);border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-grayscale-dark-0),var(--ptu-bg-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);position:absolute;z-index:1000;max-width:80vw;min-height:var(--pt-size-md, 32px);padding-top:var(--pt-dimension-200, 4px);padding-bottom:var(--pt-dimension-200, 4px);padding-left:var(--pt-dimension-300, 6px);padding-right:var(--pt-dimension-300, 6px);--ptu-text-opacity:1;color:rgba(var(--pt-grayscale-dark-8),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0;line-height:var(--pt-size-sm);text-wrap:nowrap;opacity:0;visibility:hidden}.pc_tooltip:after{pointer-events:none;position:absolute;z-index:1000;width:8px;height:8px;--ptu-skew-x:6deg;--ptu-skew-y:6deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));--ptu-border-opacity:1;border-color:rgba(var(--pt-grayscale-dark-2),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-grayscale-dark-0),var(--ptu-bg-opacity));border-top-right-radius:3px;border-bottom-left-radius:3px;content:\"\";opacity:0;visibility:hidden}.pc_tooltip:hover:before,.pc_tooltip:hover:after{opacity:1;visibility:visible}.pc_tooltip.pc_tooltip--top:before,.pc_tooltip:not(.pc_tooltip--bottom):not(.pc_tooltip--right):not(.pc_tooltip--left):before{bottom:calc(100% + 12px);left:50%;transform:translate(-50%)}.pc_tooltip.pc_tooltip--top:after,.pc_tooltip:not(.pc_tooltip--bottom):not(.pc_tooltip--right):not(.pc_tooltip--left):after{--ptu-translate-x:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;bottom:calc(100% + 8px);left:calc(50% - 8px)}.pc_tooltip.pc_tooltip--bottom:before{top:calc(100% + 12px);left:50%;transform:translate(-50%)}.pc_tooltip.pc_tooltip--bottom:after{--ptu-translate-x:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;top:calc(100% + 8px);left:calc(50% - 8px)}.pc_tooltip.pc_tooltip--right:before{left:calc(100% + 12px);top:50%;transform:translateY(-50%)}.pc_tooltip.pc_tooltip--right:after{--ptu-translate-y:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;left:calc(100% + 8px);top:calc(50% - 8px)}.pc_tooltip.pc_tooltip--left:before{right:calc(100% + 12px);top:50%;transform:translateY(-50%)}.pc_tooltip.pc_tooltip--left:after{--ptu-translate-y:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;right:calc(100% + 8px);top:calc(50% - 8px)}\n";
3
3
  const tooltipId = `${prefix}s-tooltip`;
4
4
  const addTooltipCss = () => addCssToHead(tooltipId, cssText);
5
5
  const removeTooltipCss = () => removeCssFromHead(tooltipId);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const { addCssToHead, removeCssFromHead, prefix } = require("@pantograph/tokens");
4
- const cssText = ".pc_tooltip__content{position:relative;box-sizing:border-box;min-height:var(--pt-size-md, 32px);display:flex;gap:var(--pt-dimension-300, 6px);border-width:var(--pt-stroke-10, 1px);--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-radius:var(--pt-roundness-lg, 8px);border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));padding-top:var(--pt-dimension-200, 4px);padding-bottom:var(--pt-dimension-200, 4px);padding-left:var(--pt-dimension-300, 6px);padding-right:var(--pt-dimension-300, 6px);--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0;max-height:var(--reka-tooltip-content-available-height);max-width:var(--reka-tooltip-content-available-width);width:var(--ptc-tooltip-w, auto);outline:0}.pc_tooltip__content:before{content:\"\";position:absolute;width:8px;height:8px;--ptu-skew-x:6deg;--ptu-skew-y:6deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));border-top-right-radius:3px;border-bottom-left-radius:3px}.pc_tooltip__content[data-side=bottom]:before{--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;top:-4.5px}.pc_tooltip__content[data-side=bottom][data-align=center]:before{left:50%;--ptu-translate-x:-50%;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}.pc_tooltip__content[data-side=bottom][data-align=start]:before{inset-inline-start:12px}.pc_tooltip__content[data-side=bottom][data-align=end]:before{inset-inline-end:12px}.pc_tooltip__content[data-side=top]:before{--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;bottom:-4.5px}.pc_tooltip__content[data-side=top][data-align=center]:before{left:50%;--ptu-translate-x:-50%;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}.pc_tooltip__content[data-side=top][data-align=start]:before{inset-inline-start:12px}.pc_tooltip__content[data-side=top][data-align=end]:before{inset-inline-end:12px}.pc_tooltip__content[data-side=right]:before{top:50%;--ptu-translate-y:-50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;left:-4.5px}.pc_tooltip__content[data-side=left]:before{top:50%;--ptu-translate-y:-50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;right:-4.5px}.pc_tooltip__content .pc_tooltip__text{--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_tooltip{position:relative}.pc_tooltip:before{content:attr(data-tooltip);pointer-events:none;box-sizing:border-box;border-width:1px;--ptu-border-opacity:1;border-color:rgba(var(--pt-grayscale-dark-2),var(--ptu-border-opacity));border-radius:var(--pt-roundness-lg, 8px);border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-grayscale-dark-0),var(--ptu-bg-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);position:absolute;z-index:1000;max-width:80vw;min-height:var(--pt-size-md, 32px);padding-top:var(--pt-dimension-200, 4px);padding-bottom:var(--pt-dimension-200, 4px);padding-left:var(--pt-dimension-300, 6px);padding-right:var(--pt-dimension-300, 6px);--ptu-text-opacity:1;color:rgba(var(--pt-grayscale-dark-8),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0;line-height:var(--pt-size-sm);text-wrap:nowrap;opacity:0;visibility:hidden}.pc_tooltip:after{pointer-events:none;position:absolute;z-index:1000;width:8px;height:8px;--ptu-skew-x:6deg;--ptu-skew-y:6deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));--ptu-border-opacity:1;border-color:rgba(var(--pt-grayscale-dark-2),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-grayscale-dark-0),var(--ptu-bg-opacity));border-top-right-radius:3px;border-bottom-left-radius:3px;content:\"\";opacity:0;visibility:hidden}.pc_tooltip:hover:before,.pc_tooltip:hover:after{opacity:1;visibility:visible}.pc_tooltip.pc_tooltip--top:before,.pc_tooltip:not(.pc_tooltip--bottom):not(.pc_tooltip--right):not(.pc_tooltip--left):before{bottom:calc(100% + 12px);left:50%;transform:translate(-50%)}.pc_tooltip.pc_tooltip--top:after,.pc_tooltip:not(.pc_tooltip--bottom):not(.pc_tooltip--right):not(.pc_tooltip--left):after{--ptu-translate-x:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;bottom:calc(100% + 8px);left:calc(50% - 8px)}.pc_tooltip.pc_tooltip--bottom:before{top:calc(100% + 12px);left:50%;transform:translate(-50%)}.pc_tooltip.pc_tooltip--bottom:after{--ptu-translate-x:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;top:calc(100% + 8px);left:calc(50% - 8px)}.pc_tooltip.pc_tooltip--right:before{left:calc(100% + 12px);top:50%;transform:translateY(-50%)}.pc_tooltip.pc_tooltip--right:after{--ptu-translate-y:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;left:calc(100% + 8px);top:calc(50% - 8px)}.pc_tooltip.pc_tooltip--left:before{right:calc(100% + 12px);top:50%;transform:translateY(-50%)}.pc_tooltip.pc_tooltip--left:after{--ptu-translate-y:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;right:calc(100% + 8px);top:calc(50% - 8px)}\n";
4
+ const cssText = ".pc_tooltip__content{position:relative;box-sizing:border-box;border-width:var(--pt-stroke-10, 1px);--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-radius:var(--pt-roundness-lg, 8px);border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_tooltip__content .pc_tooltip__wrapper{min-height:var(--pt-size-md, 32px);display:flex;gap:var(--pt-dimension-300, 6px);overflow:hidden;padding-top:var(--pt-dimension-200, 4px);padding-bottom:var(--pt-dimension-200, 4px);padding-left:var(--pt-dimension-300, 6px);padding-right:var(--pt-dimension-300, 6px);max-height:var(--reka-tooltip-content-available-height);max-width:var(--ptc-tooltip-max-w, var(--reka-tooltip-content-available-width));width:var(--ptc-tooltip-w, auto);outline:0}.pc_tooltip__content:before{content:\"\";position:absolute;width:8px;height:8px;--ptu-skew-x:6deg;--ptu-skew-y:6deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));--ptu-border-opacity:1;border-color:rgba(var(--pt-br),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-bg),var(--ptu-bg-opacity));border-top-right-radius:3px;border-bottom-left-radius:3px}.pc_tooltip__content[data-side=bottom]:before{--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;top:-4.5px}.pc_tooltip__content[data-side=bottom][data-align=center]:before{left:50%;--ptu-translate-x:-50%;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}.pc_tooltip__content[data-side=bottom][data-align=start]:before{inset-inline-start:12px}.pc_tooltip__content[data-side=bottom][data-align=end]:before{inset-inline-end:12px}.pc_tooltip__content[data-side=top]:before{--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;bottom:-4.5px}.pc_tooltip__content[data-side=top][data-align=center]:before{left:50%;--ptu-translate-x:-50%;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z))}.pc_tooltip__content[data-side=top][data-align=start]:before{inset-inline-start:12px}.pc_tooltip__content[data-side=top][data-align=end]:before{inset-inline-end:12px}.pc_tooltip__content[data-side=right]:before{top:50%;--ptu-translate-y:-50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;left:-4.5px}.pc_tooltip__content[data-side=left]:before{top:50%;--ptu-translate-y:-50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;right:-4.5px}.pc_tooltip__content .pc_tooltip__text{--ptu-text-opacity:1;color:rgba(var(--pt-fg),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0}.pc_tooltip{position:relative;max-width:var(--ptc-tooltip-max-w, auto);width:var(--ptc-tooltip-w, auto)}.pc_tooltip:before{content:attr(data-tooltip);pointer-events:none;box-sizing:border-box;border-width:1px;--ptu-border-opacity:1;border-color:rgba(var(--pt-grayscale-dark-2),var(--ptu-border-opacity));border-radius:var(--pt-roundness-lg, 8px);border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-grayscale-dark-0),var(--ptu-bg-opacity));--ptu-shadow:0px 0px var(--pt-dimension-100) 0px var(--pt-alpha-gray-2), 0 var(--pt-dimension-400) var(--pt-dimension-800) 0px var(--pt-alpha-gray-2);box-shadow:var(--ptu-ring-offset-shadow),var(--ptu-ring-shadow),var(--ptu-shadow);position:absolute;z-index:1000;max-width:80vw;min-height:var(--pt-size-md, 32px);padding-top:var(--pt-dimension-200, 4px);padding-bottom:var(--pt-dimension-200, 4px);padding-left:var(--pt-dimension-300, 6px);padding-right:var(--pt-dimension-300, 6px);--ptu-text-opacity:1;color:rgba(var(--pt-grayscale-dark-8),var(--ptu-text-opacity));font-family:var(--pt-font-family);font-weight:var(--pt-font-weight-regular, regular);font-size:var(--pt-dimension-700, 14px);line-height:var(--pt-lineheight-6, 16px);letter-spacing:0;line-height:var(--pt-size-sm);text-wrap:nowrap;opacity:0;visibility:hidden}.pc_tooltip:after{pointer-events:none;position:absolute;z-index:1000;width:8px;height:8px;--ptu-skew-x:6deg;--ptu-skew-y:6deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));--ptu-border-opacity:1;border-color:rgba(var(--pt-grayscale-dark-2),var(--ptu-border-opacity));border-style:solid;--ptu-bg-opacity:1;background-color:rgba(var(--pt-grayscale-dark-0),var(--ptu-bg-opacity));border-top-right-radius:3px;border-bottom-left-radius:3px;content:\"\";opacity:0;visibility:hidden}.pc_tooltip:hover:before,.pc_tooltip:hover:after{opacity:1;visibility:visible}.pc_tooltip.pc_tooltip--top:before,.pc_tooltip:not(.pc_tooltip--bottom):not(.pc_tooltip--right):not(.pc_tooltip--left):before{bottom:calc(100% + 12px);left:50%;transform:translate(-50%)}.pc_tooltip.pc_tooltip--top:after,.pc_tooltip:not(.pc_tooltip--bottom):not(.pc_tooltip--right):not(.pc_tooltip--left):after{--ptu-translate-x:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;bottom:calc(100% + 8px);left:calc(50% - 8px)}.pc_tooltip.pc_tooltip--bottom:before{top:calc(100% + 12px);left:50%;transform:translate(-50%)}.pc_tooltip.pc_tooltip--bottom:after{--ptu-translate-x:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:-45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;top:calc(100% + 8px);left:calc(50% - 8px)}.pc_tooltip.pc_tooltip--right:before{left:calc(100% + 12px);top:50%;transform:translateY(-50%)}.pc_tooltip.pc_tooltip--right:after{--ptu-translate-y:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-bottom-width:1px;border-left-width:1px;left:calc(100% + 8px);top:calc(50% - 8px)}.pc_tooltip.pc_tooltip--left:before{right:calc(100% + 12px);top:50%;transform:translateY(-50%)}.pc_tooltip.pc_tooltip--left:after{--ptu-translate-y:50%;--ptu-rotate-x:0;--ptu-rotate-y:0;--ptu-rotate-z:0;--ptu-rotate:45deg;transform:translate(var(--ptu-translate-x)) translateY(var(--ptu-translate-y)) translateZ(var(--ptu-translate-z)) rotate(var(--ptu-rotate)) rotateX(var(--ptu-rotate-x)) rotateY(var(--ptu-rotate-y)) rotate(var(--ptu-rotate-z)) skew(var(--ptu-skew-x)) skewY(var(--ptu-skew-y)) scaleX(var(--ptu-scale-x)) scaleY(var(--ptu-scale-y)) scaleZ(var(--ptu-scale-z));border-top-width:1px;border-right-width:1px;right:calc(100% + 8px);top:calc(50% - 8px)}\n";
5
5
  const tooltipId = `${prefix}s-tooltip`;
6
6
  const addTooltipCss = () => addCssToHead(tooltipId, cssText);
7
7
  const removeTooltipCss = () => removeCssFromHead(tooltipId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pantograph/styles",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "id": "styles",
5
5
  "private": false,
6
6
  "publishConfig": {