@wistia/ui 0.7.1 → 0.8.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.
- package/dist/index.cjs +7 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -5
- package/dist/index.d.ts +1 -5
- package/dist/index.mjs +60 -78
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.
|
|
3
|
+
* @license @wistia/ui v0.8.0
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9039,26 +9039,17 @@ var import_react29 = require("react");
|
|
|
9039
9039
|
var import_react_tooltip2 = require("@radix-ui/react-tooltip");
|
|
9040
9040
|
var import_styled_components44 = __toESM(require("styled-components"));
|
|
9041
9041
|
var import_jsx_runtime218 = require("react/jsx-runtime");
|
|
9042
|
-
var CompactTooltipStyles = import_styled_components44.css`
|
|
9043
|
-
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
9044
|
-
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
9045
|
-
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
9046
|
-
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
9047
|
-
--tooltip-vertical-padding: var(--wui-space-03);
|
|
9048
|
-
`;
|
|
9049
9042
|
var StyledContent = (0, import_styled_components44.default)(import_react_tooltip2.Content)`
|
|
9050
9043
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
9051
9044
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
9052
9045
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
9053
9046
|
--tooltip-color: var(--wui-color-text-on-fill);
|
|
9054
|
-
--tooltip-font-size: var(--wui-typography-label-
|
|
9055
|
-
--tooltip-line-height: var(--wui-typography-label-
|
|
9056
|
-
--tooltip-font-weight: var(--wui-typography-label-
|
|
9057
|
-
--tooltip-horizontal-padding: var(--wui-space-
|
|
9047
|
+
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
9048
|
+
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
9049
|
+
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
9050
|
+
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
9058
9051
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
9059
9052
|
|
|
9060
|
-
${({ $compact }) => Boolean($compact) && CompactTooltipStyles};
|
|
9061
|
-
|
|
9062
9053
|
font-family: var(--tooltip-font-family);
|
|
9063
9054
|
font-size: var(--tooltip-font-size);
|
|
9064
9055
|
border-radius: var(--tooltip-border-radius);
|
|
@@ -9090,12 +9081,11 @@ var StyledContent = (0, import_styled_components44.default)(import_react_tooltip
|
|
|
9090
9081
|
`;
|
|
9091
9082
|
var VISUAL_OFFSET = 6;
|
|
9092
9083
|
var Tooltip = ({
|
|
9093
|
-
delay =
|
|
9084
|
+
delay = 500,
|
|
9094
9085
|
direction = "top",
|
|
9095
9086
|
content,
|
|
9096
9087
|
children,
|
|
9097
9088
|
forceOpen,
|
|
9098
|
-
compact = false,
|
|
9099
9089
|
hideArrow = false
|
|
9100
9090
|
}) => {
|
|
9101
9091
|
const rootProps = {};
|
|
@@ -9115,7 +9105,6 @@ var Tooltip = ({
|
|
|
9115
9105
|
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
|
|
9116
9106
|
StyledContent,
|
|
9117
9107
|
{
|
|
9118
|
-
$compact: compact,
|
|
9119
9108
|
side: direction,
|
|
9120
9109
|
sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
|
|
9121
9110
|
children: [
|
|
@@ -9461,14 +9450,7 @@ var EditableHeading = ({
|
|
|
9461
9450
|
);
|
|
9462
9451
|
}
|
|
9463
9452
|
return /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(import_jsx_runtime220.Fragment, { children: [
|
|
9464
|
-
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
9465
|
-
Tooltip,
|
|
9466
|
-
{
|
|
9467
|
-
compact: true,
|
|
9468
|
-
content: tooltipText,
|
|
9469
|
-
children: HeadingComponent2
|
|
9470
|
-
}
|
|
9471
|
-
),
|
|
9453
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Tooltip, { content: tooltipText, children: HeadingComponent2 }),
|
|
9472
9454
|
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
9473
9455
|
"button",
|
|
9474
9456
|
{
|