@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.cjs
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
|
*
|
|
@@ -1397,9 +1397,12 @@ var typographyTokens = import_styled_components7.css`
|
|
|
1397
1397
|
// src/css/designTokens/zIndex.tsx
|
|
1398
1398
|
var import_styled_components8 = require("styled-components");
|
|
1399
1399
|
var zIndexTokens = import_styled_components8.css`
|
|
1400
|
+
--wui-zindex-under: -1;
|
|
1400
1401
|
--wui-zindex-backdrop: 100;
|
|
1401
1402
|
--wui-zindex-modal: 100;
|
|
1402
1403
|
--wui-zindex-menu: 500;
|
|
1404
|
+
--wui-zindex-select: 500;
|
|
1405
|
+
--wui-zindex-tooltip: 500;
|
|
1403
1406
|
`;
|
|
1404
1407
|
|
|
1405
1408
|
// src/css/designTokens/elevation.tsx
|
|
@@ -7747,6 +7750,7 @@ var StyledContent = (0, import_styled_components42.default)(import_react_tooltip
|
|
|
7747
7750
|
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
7748
7751
|
will-change: transform, opacity;
|
|
7749
7752
|
max-width: 30em;
|
|
7753
|
+
z-index: var(--wui-zindex-tooltip);
|
|
7750
7754
|
|
|
7751
7755
|
&[data-state='delayed-open'][data-side='top'] {
|
|
7752
7756
|
animation-name: slideDownAndFade;
|
|
@@ -7918,7 +7922,10 @@ var Input = (0, import_react22.forwardRef)(
|
|
|
7918
7922
|
...props
|
|
7919
7923
|
}, externalRef) => {
|
|
7920
7924
|
const internalRef = (0, import_react22.useRef)();
|
|
7921
|
-
const ref = (
|
|
7925
|
+
const ref = (
|
|
7926
|
+
// eslint-disable-next-line react-compiler/react-compiler
|
|
7927
|
+
(0, import_type_guards25.isNotNil)(externalRef) && (0, import_type_guards25.isRecord)(externalRef) && "current" in externalRef ? externalRef : internalRef
|
|
7928
|
+
);
|
|
7922
7929
|
let leftIconToDisplay = leftIcon;
|
|
7923
7930
|
if ((0, import_type_guards25.isNil)(leftIcon) && type === "search") {
|
|
7924
7931
|
leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(Icon, { type: "search" });
|
|
@@ -8922,8 +8929,8 @@ var StyledSubTrigger = (0, import_styled_components54.default)(import_react_drop
|
|
|
8922
8929
|
`;
|
|
8923
8930
|
var SubMenuTrigger = (props) => {
|
|
8924
8931
|
const { isSmAndUp } = useMq();
|
|
8925
|
-
const
|
|
8926
|
-
return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
|
|
8932
|
+
const Trigger4 = isSmAndUp ? StyledSubTrigger : import_react_dropdown_menu3.DropdownMenuItem;
|
|
8933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(Trigger4, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
|
|
8927
8934
|
MenuItemButton,
|
|
8928
8935
|
{
|
|
8929
8936
|
...props,
|
|
@@ -9632,7 +9639,6 @@ var useSegmentedControlValue = () => {
|
|
|
9632
9639
|
|
|
9633
9640
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
9634
9641
|
var import_jsx_runtime213 = require("react/jsx-runtime");
|
|
9635
|
-
var Z_INDEX_TO_SIT_BEHIND_SIBLINGS = -1;
|
|
9636
9642
|
var SelectedItemIndicatorDiv = import_styled_components62.default.div`
|
|
9637
9643
|
background-color: var(--wui-color-bg-fill-white);
|
|
9638
9644
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -9643,7 +9649,7 @@ var SelectedItemIndicatorDiv = import_styled_components62.default.div`
|
|
|
9643
9649
|
transition:
|
|
9644
9650
|
transform var(--wui-motion-duration-02) var(--wui-motion-ease-out),
|
|
9645
9651
|
width var(--wui-motion-duration-02) var(--wui-motion-ease-out);
|
|
9646
|
-
z-index:
|
|
9652
|
+
z-index: var(--wui-zindex-under);
|
|
9647
9653
|
`;
|
|
9648
9654
|
var SelectedItemIndicator = () => {
|
|
9649
9655
|
const selectedValue = useSegmentedControlValue();
|
|
@@ -10494,7 +10500,7 @@ var StyledContent3 = (0, import_styled_components71.default)(import_react_select
|
|
|
10494
10500
|
padding: var(--wui-select-option-padding);
|
|
10495
10501
|
min-width: var(--radix-select-trigger-width);
|
|
10496
10502
|
max-height: var(--radix-select-content-available-height);
|
|
10497
|
-
z-index: var(--wui-zindex-
|
|
10503
|
+
z-index: var(--wui-zindex-select);
|
|
10498
10504
|
`;
|
|
10499
10505
|
var Select = (0, import_react55.forwardRef)(
|
|
10500
10506
|
({
|