@wistia/ui 0.6.8 → 0.6.9-beta.37015977.6acbc8a
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 +13 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +37 -31
- package/dist/index.mjs.map +1 -1
- package/package.json +22 -22
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.
|
|
3
|
+
* @license @wistia/ui v0.6.9-beta.37015977.6acbc8a
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1282,9 +1282,12 @@ var typographyTokens = css7`
|
|
|
1282
1282
|
// src/css/designTokens/zIndex.tsx
|
|
1283
1283
|
import { css as css8 } from "styled-components";
|
|
1284
1284
|
var zIndexTokens = css8`
|
|
1285
|
+
--wui-zindex-under: -1;
|
|
1285
1286
|
--wui-zindex-backdrop: 100;
|
|
1286
1287
|
--wui-zindex-modal: 100;
|
|
1287
1288
|
--wui-zindex-menu: 500;
|
|
1289
|
+
--wui-zindex-select: 500;
|
|
1290
|
+
--wui-zindex-tooltip: 500;
|
|
1288
1291
|
`;
|
|
1289
1292
|
|
|
1290
1293
|
// src/css/designTokens/elevation.tsx
|
|
@@ -7605,11 +7608,11 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
|
7605
7608
|
|
|
7606
7609
|
// src/components/Tooltip/Tooltip.tsx
|
|
7607
7610
|
import {
|
|
7608
|
-
Root as
|
|
7609
|
-
Content as
|
|
7610
|
-
Trigger as
|
|
7611
|
-
Portal,
|
|
7612
|
-
Arrow
|
|
7611
|
+
Root as TooltipRoot,
|
|
7612
|
+
Content as TooltipContent,
|
|
7613
|
+
Trigger as TooltipTrigger,
|
|
7614
|
+
Portal as TooltipPortal,
|
|
7615
|
+
Arrow as TooltipArrow
|
|
7613
7616
|
} from "@radix-ui/react-tooltip";
|
|
7614
7617
|
import styled27, { css as css21 } from "styled-components";
|
|
7615
7618
|
import { jsx as jsx185, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
@@ -7620,7 +7623,7 @@ var CompactTooltipStyles = css21`
|
|
|
7620
7623
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
7621
7624
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
7622
7625
|
`;
|
|
7623
|
-
var StyledContent = styled27(
|
|
7626
|
+
var StyledContent = styled27(TooltipContent)`
|
|
7624
7627
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
7625
7628
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
7626
7629
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -7644,6 +7647,7 @@ var StyledContent = styled27(Content2)`
|
|
|
7644
7647
|
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
7645
7648
|
will-change: transform, opacity;
|
|
7646
7649
|
max-width: 30em;
|
|
7650
|
+
z-index: var(--wui-zindex-tooltip);
|
|
7647
7651
|
|
|
7648
7652
|
&[data-state='delayed-open'][data-side='top'] {
|
|
7649
7653
|
animation-name: slideDownAndFade;
|
|
@@ -7679,13 +7683,13 @@ var Tooltip = ({
|
|
|
7679
7683
|
rootProps.open = true;
|
|
7680
7684
|
}
|
|
7681
7685
|
return /* @__PURE__ */ jsxs15(
|
|
7682
|
-
|
|
7686
|
+
TooltipRoot,
|
|
7683
7687
|
{
|
|
7684
7688
|
delayDuration: delay,
|
|
7685
7689
|
...rootProps,
|
|
7686
7690
|
children: [
|
|
7687
|
-
/* @__PURE__ */ jsx185(
|
|
7688
|
-
/* @__PURE__ */ jsx185(
|
|
7691
|
+
/* @__PURE__ */ jsx185(TooltipTrigger, { asChild: true, children }),
|
|
7692
|
+
/* @__PURE__ */ jsx185(TooltipPortal, { children: /* @__PURE__ */ jsxs15(
|
|
7689
7693
|
StyledContent,
|
|
7690
7694
|
{
|
|
7691
7695
|
$compact: compact,
|
|
@@ -7693,7 +7697,7 @@ var Tooltip = ({
|
|
|
7693
7697
|
sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
|
|
7694
7698
|
children: [
|
|
7695
7699
|
content,
|
|
7696
|
-
!hideArrow ? /* @__PURE__ */ jsx185(
|
|
7700
|
+
!hideArrow ? /* @__PURE__ */ jsx185(TooltipArrow, { asChild: true, children: /* @__PURE__ */ jsx185(
|
|
7697
7701
|
"svg",
|
|
7698
7702
|
{
|
|
7699
7703
|
fill: "var(--tooltip-bg)",
|
|
@@ -7815,7 +7819,10 @@ var Input = forwardRef9(
|
|
|
7815
7819
|
...props
|
|
7816
7820
|
}, externalRef) => {
|
|
7817
7821
|
const internalRef = useRef3();
|
|
7818
|
-
const ref =
|
|
7822
|
+
const ref = (
|
|
7823
|
+
// eslint-disable-next-line react-compiler/react-compiler
|
|
7824
|
+
isNotNil10(externalRef) && isRecord4(externalRef) && "current" in externalRef ? externalRef : internalRef
|
|
7825
|
+
);
|
|
7819
7826
|
let leftIconToDisplay = leftIcon;
|
|
7820
7827
|
if (isNil12(leftIcon) && type === "search") {
|
|
7821
7828
|
leftIconToDisplay = /* @__PURE__ */ jsx186(Icon, { type: "search" });
|
|
@@ -8831,8 +8838,8 @@ var StyledSubTrigger = styled39(DropdownMenuSubTrigger)`
|
|
|
8831
8838
|
`;
|
|
8832
8839
|
var SubMenuTrigger = (props) => {
|
|
8833
8840
|
const { isSmAndUp } = useMq();
|
|
8834
|
-
const
|
|
8835
|
-
return /* @__PURE__ */ jsx200(
|
|
8841
|
+
const Trigger4 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
|
|
8842
|
+
return /* @__PURE__ */ jsx200(Trigger4, { asChild: true, children: /* @__PURE__ */ jsx200(
|
|
8836
8843
|
MenuItemButton,
|
|
8837
8844
|
{
|
|
8838
8845
|
...props,
|
|
@@ -9302,7 +9309,7 @@ var Modal = forwardRef17(
|
|
|
9302
9309
|
Modal.displayName = "Modal";
|
|
9303
9310
|
|
|
9304
9311
|
// src/components/Popover/Popover.tsx
|
|
9305
|
-
import { Root as
|
|
9312
|
+
import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close, Arrow } from "@radix-ui/react-popover";
|
|
9306
9313
|
import styled45 from "styled-components";
|
|
9307
9314
|
|
|
9308
9315
|
// src/private/helpers/getControls/getControlProps.tsx
|
|
@@ -9313,7 +9320,7 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
9313
9320
|
|
|
9314
9321
|
// src/components/Popover/Popover.tsx
|
|
9315
9322
|
import { jsx as jsx210, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
9316
|
-
var StyledContent2 = styled45(
|
|
9323
|
+
var StyledContent2 = styled45(Content2)`
|
|
9317
9324
|
border-radius: var(--wui-border-radius-02);
|
|
9318
9325
|
padding: var(--wui-space-04);
|
|
9319
9326
|
max-width: 320px;
|
|
@@ -9327,7 +9334,7 @@ var StyledContent2 = styled45(Content3)`
|
|
|
9327
9334
|
right: var(--wui-space-02);
|
|
9328
9335
|
}
|
|
9329
9336
|
`;
|
|
9330
|
-
var StyledArrow = styled45(
|
|
9337
|
+
var StyledArrow = styled45(Arrow)`
|
|
9331
9338
|
fill: white;
|
|
9332
9339
|
display: none;
|
|
9333
9340
|
`;
|
|
@@ -9339,9 +9346,9 @@ var Popover = ({
|
|
|
9339
9346
|
onOpenChange,
|
|
9340
9347
|
...props
|
|
9341
9348
|
}) => {
|
|
9342
|
-
return /* @__PURE__ */ jsxs28(
|
|
9343
|
-
/* @__PURE__ */ jsx210(
|
|
9344
|
-
/* @__PURE__ */ jsx210(
|
|
9349
|
+
return /* @__PURE__ */ jsxs28(Root2, { ...getControlProps(isOpen, onOpenChange), children: [
|
|
9350
|
+
/* @__PURE__ */ jsx210(Trigger2, { asChild: true, children: trigger }),
|
|
9351
|
+
/* @__PURE__ */ jsx210(Portal, { children: /* @__PURE__ */ jsxs28(
|
|
9345
9352
|
StyledContent2,
|
|
9346
9353
|
{
|
|
9347
9354
|
sideOffset: 5,
|
|
@@ -9548,7 +9555,6 @@ var useSegmentedControlValue = () => {
|
|
|
9548
9555
|
|
|
9549
9556
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
9550
9557
|
import { jsx as jsx213 } from "react/jsx-runtime";
|
|
9551
|
-
var Z_INDEX_TO_SIT_BEHIND_SIBLINGS = -1;
|
|
9552
9558
|
var SelectedItemIndicatorDiv = styled47.div`
|
|
9553
9559
|
background-color: var(--wui-color-bg-fill-white);
|
|
9554
9560
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -9559,7 +9565,7 @@ var SelectedItemIndicatorDiv = styled47.div`
|
|
|
9559
9565
|
transition:
|
|
9560
9566
|
transform var(--wui-motion-duration-02) var(--wui-motion-ease-out),
|
|
9561
9567
|
width var(--wui-motion-duration-02) var(--wui-motion-ease-out);
|
|
9562
|
-
z-index:
|
|
9568
|
+
z-index: var(--wui-zindex-under);
|
|
9563
9569
|
`;
|
|
9564
9570
|
var SelectedItemIndicator = () => {
|
|
9565
9571
|
const selectedValue = useSegmentedControlValue();
|
|
@@ -10343,10 +10349,10 @@ WistiaLogo.displayName = "WistiaLogo";
|
|
|
10343
10349
|
|
|
10344
10350
|
// src/components/Select/Select.tsx
|
|
10345
10351
|
import {
|
|
10346
|
-
Root as
|
|
10347
|
-
Trigger as
|
|
10348
|
-
Portal as
|
|
10349
|
-
Content as
|
|
10352
|
+
Root as Root3,
|
|
10353
|
+
Trigger as Trigger3,
|
|
10354
|
+
Portal as Portal2,
|
|
10355
|
+
Content as Content3,
|
|
10350
10356
|
ScrollUpButton,
|
|
10351
10357
|
Viewport,
|
|
10352
10358
|
Value,
|
|
@@ -10355,7 +10361,7 @@ import {
|
|
|
10355
10361
|
import { forwardRef as forwardRef25 } from "react";
|
|
10356
10362
|
import styled56 from "styled-components";
|
|
10357
10363
|
import { jsx as jsx222, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
10358
|
-
var StyledTrigger = styled56(
|
|
10364
|
+
var StyledTrigger = styled56(Trigger3)`
|
|
10359
10365
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
10360
10366
|
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
10361
10367
|
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
@@ -10403,7 +10409,7 @@ var StyledTrigger = styled56(Trigger4)`
|
|
|
10403
10409
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
10404
10410
|
}
|
|
10405
10411
|
`;
|
|
10406
|
-
var StyledContent3 = styled56(
|
|
10412
|
+
var StyledContent3 = styled56(Content3)`
|
|
10407
10413
|
--wui-select-content-border: var(--wui-color-border);
|
|
10408
10414
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
10409
10415
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -10419,7 +10425,7 @@ var StyledContent3 = styled56(Content4)`
|
|
|
10419
10425
|
padding: var(--wui-select-option-padding);
|
|
10420
10426
|
min-width: var(--radix-select-trigger-width);
|
|
10421
10427
|
max-height: var(--radix-select-content-available-height);
|
|
10422
|
-
z-index: var(--wui-zindex-
|
|
10428
|
+
z-index: var(--wui-zindex-select);
|
|
10423
10429
|
`;
|
|
10424
10430
|
var Select = forwardRef25(
|
|
10425
10431
|
({
|
|
@@ -10432,7 +10438,7 @@ var Select = forwardRef25(
|
|
|
10432
10438
|
}, forwardedRef) => {
|
|
10433
10439
|
const responsiveFullWidth = useResponsiveProp(fullWidth);
|
|
10434
10440
|
return /* @__PURE__ */ jsxs36(
|
|
10435
|
-
|
|
10441
|
+
Root3,
|
|
10436
10442
|
{
|
|
10437
10443
|
...props,
|
|
10438
10444
|
onValueChange: onChange,
|
|
@@ -10456,7 +10462,7 @@ var Select = forwardRef25(
|
|
|
10456
10462
|
]
|
|
10457
10463
|
}
|
|
10458
10464
|
),
|
|
10459
|
-
/* @__PURE__ */ jsx222(
|
|
10465
|
+
/* @__PURE__ */ jsx222(Portal2, { children: /* @__PURE__ */ jsxs36(StyledContent3, { position: "popper", children: [
|
|
10460
10466
|
/* @__PURE__ */ jsx222(ScrollUpButton, { children: /* @__PURE__ */ jsx222(Icon, { type: "caret-up" }) }),
|
|
10461
10467
|
/* @__PURE__ */ jsx222(Viewport, { children }),
|
|
10462
10468
|
/* @__PURE__ */ jsx222(ScrollDownButton, { children: /* @__PURE__ */ jsx222(Icon, { type: "caret-down" }) })
|