@wistia/ui 0.14.33 → 0.14.34
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 +82 -80
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +39 -58
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.14.
|
|
3
|
+
* @license @wistia/ui v0.14.34
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -12066,6 +12066,23 @@ var Tag = forwardRef16(
|
|
|
12066
12066
|
);
|
|
12067
12067
|
Tag.displayName = "Tag_UI";
|
|
12068
12068
|
|
|
12069
|
+
// src/private/helpers/getTypographicStyles/getTypographicStyles.ts
|
|
12070
|
+
import { css as css30 } from "styled-components";
|
|
12071
|
+
var typographicVariantStyleMap = { ...variantStyleMap2, ...variantStyleMap };
|
|
12072
|
+
var getTypographicStyles = (variant) => {
|
|
12073
|
+
return css30`
|
|
12074
|
+
${typographicVariantStyleMap[variant]}
|
|
12075
|
+
font-family: var(--font-family);
|
|
12076
|
+
font-size: var(--font-size);
|
|
12077
|
+
font-weight: var(--font-weight);
|
|
12078
|
+
line-height: var(--line-height);
|
|
12079
|
+
`;
|
|
12080
|
+
};
|
|
12081
|
+
var typographicVariantElementMap = { ...variantElementMap2, ...variantElementMap };
|
|
12082
|
+
var getDefaultTypographicElement = (variant) => {
|
|
12083
|
+
return typographicVariantElementMap[variant] ?? "span";
|
|
12084
|
+
};
|
|
12085
|
+
|
|
12069
12086
|
// src/components/Combobox/Combobox.tsx
|
|
12070
12087
|
import { jsx as jsx254, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
12071
12088
|
var ComboboxWrapper = styled50.div`
|
|
@@ -12141,7 +12158,7 @@ var ComboboxPopover2 = styled50(Ariakit.ComboboxPopover)`
|
|
|
12141
12158
|
--wui-combobox-option-bg-hover: var(--wui-color-bg-surface-hover);
|
|
12142
12159
|
|
|
12143
12160
|
border-radius: var(--wui-border-radius-02);
|
|
12144
|
-
padding: var(--wui-space-
|
|
12161
|
+
padding: var(--wui-space-02);
|
|
12145
12162
|
max-height: var(--wui-popover-max-height, 300px);
|
|
12146
12163
|
background-color: var(--wui-color-bg-surface);
|
|
12147
12164
|
box-shadow: var(--wui-elevation-01);
|
|
@@ -12152,13 +12169,14 @@ var ComboboxPopover2 = styled50(Ariakit.ComboboxPopover)`
|
|
|
12152
12169
|
flex-direction: column;
|
|
12153
12170
|
overflow: auto;
|
|
12154
12171
|
overscroll-behavior: contain;
|
|
12172
|
+
margin-top: var(--wui-space-02);
|
|
12155
12173
|
|
|
12156
12174
|
&[aria-busy='true'] {
|
|
12157
12175
|
--item-opacity: 0.5;
|
|
12158
12176
|
}
|
|
12159
12177
|
`;
|
|
12160
12178
|
var ComboboxItem2 = styled50(Ariakit.ComboboxItem)`
|
|
12161
|
-
${
|
|
12179
|
+
${getTypographicStyles("body3")};
|
|
12162
12180
|
display: flex;
|
|
12163
12181
|
padding: var(--wui-combobox-option-padding);
|
|
12164
12182
|
gap: var(--wui-combobox-option-inner-gap);
|
|
@@ -12167,6 +12185,7 @@ var ComboboxItem2 = styled50(Ariakit.ComboboxItem)`
|
|
|
12167
12185
|
border-radius: var(--wui-border-radius-01);
|
|
12168
12186
|
align-items: center;
|
|
12169
12187
|
cursor: pointer;
|
|
12188
|
+
justify-content: space-between;
|
|
12170
12189
|
|
|
12171
12190
|
&:hover,
|
|
12172
12191
|
&:focus-visible,
|
|
@@ -12289,17 +12308,17 @@ var Combobox2 = ({
|
|
|
12289
12308
|
className: "combobox-item",
|
|
12290
12309
|
value: match,
|
|
12291
12310
|
children: [
|
|
12311
|
+
options[match],
|
|
12292
12312
|
/* @__PURE__ */ jsx254(
|
|
12293
12313
|
Icon,
|
|
12294
12314
|
{
|
|
12295
|
-
size: "
|
|
12315
|
+
size: "md",
|
|
12296
12316
|
style: {
|
|
12297
12317
|
opacity: value.includes(match) ? 1 : 0
|
|
12298
12318
|
},
|
|
12299
12319
|
type: "checkmark"
|
|
12300
12320
|
}
|
|
12301
|
-
)
|
|
12302
|
-
options[match]
|
|
12321
|
+
)
|
|
12303
12322
|
]
|
|
12304
12323
|
},
|
|
12305
12324
|
match
|
|
@@ -12326,7 +12345,7 @@ import {
|
|
|
12326
12345
|
} from "@radix-ui/react-dropdown-menu";
|
|
12327
12346
|
import { isNotNil as isNotNil20, isNotUndefined as isNotUndefined9 } from "@wistia/type-guards";
|
|
12328
12347
|
import { forwardRef as forwardRef17, useMemo as useMemo12 } from "react";
|
|
12329
|
-
import styled51, { css as
|
|
12348
|
+
import styled51, { css as css31, keyframes as keyframes2 } from "styled-components";
|
|
12330
12349
|
|
|
12331
12350
|
// src/components/Menu/MenuContext.tsx
|
|
12332
12351
|
import { createContext as createContext6, useContext as useContext5 } from "react";
|
|
@@ -12355,7 +12374,7 @@ var close = keyframes2`
|
|
|
12355
12374
|
transform: scale(.97) translateY(-8px);
|
|
12356
12375
|
}
|
|
12357
12376
|
`;
|
|
12358
|
-
var menuItemCss =
|
|
12377
|
+
var menuItemCss = css31`
|
|
12359
12378
|
--menu-label-description-gap: var(--wui-space-01);
|
|
12360
12379
|
--menu-item-inner-gap: var(--wui-space-03);
|
|
12361
12380
|
--menu-item-left-icon-size: 24px;
|
|
@@ -12366,7 +12385,7 @@ var menuItemCss = css30`
|
|
|
12366
12385
|
--menu-label-line-height: var(--wui-typography-label-3-line-height);
|
|
12367
12386
|
--menu-divider-margin: var(--wui-space-02);
|
|
12368
12387
|
`;
|
|
12369
|
-
var compactMenuItemCss =
|
|
12388
|
+
var compactMenuItemCss = css31`
|
|
12370
12389
|
--menu-label-description-gap: 0;
|
|
12371
12390
|
--menu-item-inner-gap: var(--wui-space-02);
|
|
12372
12391
|
--menu-item-left-icon-size: 16px;
|
|
@@ -12377,7 +12396,7 @@ var compactMenuItemCss = css30`
|
|
|
12377
12396
|
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
12378
12397
|
--menu-divider-margin: var(--wui-space-01);
|
|
12379
12398
|
`;
|
|
12380
|
-
var menuContentCss =
|
|
12399
|
+
var menuContentCss = css31`
|
|
12381
12400
|
--menu-font-family: var(--wui-typography-family-default);
|
|
12382
12401
|
--menu-bg: var(--wui-color-bg-surface);
|
|
12383
12402
|
--menu-shadow: var(--wui-elevation-01);
|
|
@@ -12760,9 +12779,7 @@ var MenuItem = forwardRef19(
|
|
|
12760
12779
|
MenuItem.displayName = "MenuItem_UI";
|
|
12761
12780
|
|
|
12762
12781
|
// src/components/Menu/MenuRadioGroup.tsx
|
|
12763
|
-
import {
|
|
12764
|
-
DropdownMenuRadioGroup
|
|
12765
|
-
} from "@radix-ui/react-dropdown-menu";
|
|
12782
|
+
import { DropdownMenuRadioGroup } from "@radix-ui/react-dropdown-menu";
|
|
12766
12783
|
import { jsx as jsx261 } from "react/jsx-runtime";
|
|
12767
12784
|
var MenuRadioGroup = ({ children, ...props }) => {
|
|
12768
12785
|
return /* @__PURE__ */ jsx261(DropdownMenuRadioGroup, { ...props, children });
|
|
@@ -12770,10 +12787,7 @@ var MenuRadioGroup = ({ children, ...props }) => {
|
|
|
12770
12787
|
MenuRadioGroup.displayName = "MenuRadioGroup_UI";
|
|
12771
12788
|
|
|
12772
12789
|
// src/components/Menu/RadioMenuItem.tsx
|
|
12773
|
-
import {
|
|
12774
|
-
DropdownMenuItemIndicator,
|
|
12775
|
-
DropdownMenuRadioItem
|
|
12776
|
-
} from "@radix-ui/react-dropdown-menu";
|
|
12790
|
+
import { DropdownMenuItemIndicator, DropdownMenuRadioItem } from "@radix-ui/react-dropdown-menu";
|
|
12777
12791
|
import { jsx as jsx262 } from "react/jsx-runtime";
|
|
12778
12792
|
var RadioMenuItem = ({
|
|
12779
12793
|
onSelect,
|
|
@@ -12807,10 +12821,7 @@ var RadioMenuItem = ({
|
|
|
12807
12821
|
RadioMenuItem.displayName = "RadioMenuItem_UI";
|
|
12808
12822
|
|
|
12809
12823
|
// src/components/Menu/CheckboxMenuItem.tsx
|
|
12810
|
-
import {
|
|
12811
|
-
DropdownMenuCheckboxItem,
|
|
12812
|
-
DropdownMenuItemIndicator as DropdownMenuItemIndicator2
|
|
12813
|
-
} from "@radix-ui/react-dropdown-menu";
|
|
12824
|
+
import { DropdownMenuCheckboxItem, DropdownMenuItemIndicator as DropdownMenuItemIndicator2 } from "@radix-ui/react-dropdown-menu";
|
|
12814
12825
|
import { isNotNil as isNotNil23 } from "@wistia/type-guards";
|
|
12815
12826
|
import { jsx as jsx263, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
12816
12827
|
var CheckboxIndicator = ({ checked, ...props }) => {
|
|
@@ -13427,16 +13438,16 @@ var DataListItemValue = (props) => {
|
|
|
13427
13438
|
DataListItemValue.displayName = "DataListItemValue_UI";
|
|
13428
13439
|
|
|
13429
13440
|
// src/components/Divider/Divider.tsx
|
|
13430
|
-
import styled61, { css as
|
|
13441
|
+
import styled61, { css as css32 } from "styled-components";
|
|
13431
13442
|
import { jsx as jsx273 } from "react/jsx-runtime";
|
|
13432
|
-
var horizontalBorderCss =
|
|
13443
|
+
var horizontalBorderCss = css32`
|
|
13433
13444
|
border-top-color: var(--wui-color-border);
|
|
13434
13445
|
border-top-style: solid;
|
|
13435
13446
|
border-top-width: 1px;
|
|
13436
13447
|
clear: both; /* for horizontal dividers, ensure it clears any floats */
|
|
13437
13448
|
height: 0;
|
|
13438
13449
|
`;
|
|
13439
|
-
var verticalBorderCss =
|
|
13450
|
+
var verticalBorderCss = css32`
|
|
13440
13451
|
background-color: var(--wui-color-border);
|
|
13441
13452
|
max-width: 1px;
|
|
13442
13453
|
min-height: 100%;
|
|
@@ -13468,7 +13479,7 @@ var Divider = ({ orientation = "horizontal", ...props }) => {
|
|
|
13468
13479
|
Divider.displayName = "Divider_UI";
|
|
13469
13480
|
|
|
13470
13481
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
13471
|
-
import styled62, { css as
|
|
13482
|
+
import styled62, { css as css33 } from "styled-components";
|
|
13472
13483
|
import { useState as useState18, useRef as useRef16 } from "react";
|
|
13473
13484
|
import { Fragment as Fragment7, jsx as jsx274, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
13474
13485
|
var StyledInput = styled62(Input)`
|
|
@@ -13492,7 +13503,7 @@ var StyledInput = styled62(Input)`
|
|
|
13492
13503
|
resize: none;
|
|
13493
13504
|
}
|
|
13494
13505
|
`;
|
|
13495
|
-
var editableStyles =
|
|
13506
|
+
var editableStyles = css33`
|
|
13496
13507
|
&:has(+ :focus-within) {
|
|
13497
13508
|
background: var(--wui-color-bg-surface-hover);
|
|
13498
13509
|
}
|
|
@@ -13609,13 +13620,7 @@ import styled64, { css as css34 } from "styled-components";
|
|
|
13609
13620
|
import { isNotNil as isNotNil26 } from "@wistia/type-guards";
|
|
13610
13621
|
|
|
13611
13622
|
// src/components/EditableText/EditableTextRoot.tsx
|
|
13612
|
-
import {
|
|
13613
|
-
createContext as createContext7,
|
|
13614
|
-
useMemo as useMemo13,
|
|
13615
|
-
useState as useState19,
|
|
13616
|
-
useCallback as useCallback16,
|
|
13617
|
-
useId as useId4
|
|
13618
|
-
} from "react";
|
|
13623
|
+
import { createContext as createContext7, useMemo as useMemo13, useState as useState19, useCallback as useCallback16, useId as useId4 } from "react";
|
|
13619
13624
|
import { isNonEmptyString as isNonEmptyString6 } from "@wistia/type-guards";
|
|
13620
13625
|
import styled63 from "styled-components";
|
|
13621
13626
|
import { jsx as jsx275 } from "react/jsx-runtime";
|
|
@@ -13729,23 +13734,6 @@ var EditableTextRoot = ({
|
|
|
13729
13734
|
);
|
|
13730
13735
|
};
|
|
13731
13736
|
|
|
13732
|
-
// src/private/helpers/getTypographicStyles/getTypographicStyles.ts
|
|
13733
|
-
import { css as css33 } from "styled-components";
|
|
13734
|
-
var typographicVariantStyleMap = { ...variantStyleMap2, ...variantStyleMap };
|
|
13735
|
-
var getTypographicStyles = (variant) => {
|
|
13736
|
-
return css33`
|
|
13737
|
-
${typographicVariantStyleMap[variant]}
|
|
13738
|
-
font-family: var(--font-family);
|
|
13739
|
-
font-size: var(--font-size);
|
|
13740
|
-
font-weight: var(--font-weight);
|
|
13741
|
-
line-height: var(--line-height);
|
|
13742
|
-
`;
|
|
13743
|
-
};
|
|
13744
|
-
var typographicVariantElementMap = { ...variantElementMap2, ...variantElementMap };
|
|
13745
|
-
var getDefaultTypographicElement = (variant) => {
|
|
13746
|
-
return typographicVariantElementMap[variant] ?? "span";
|
|
13747
|
-
};
|
|
13748
|
-
|
|
13749
13737
|
// src/components/EditableText/EditableTextDisplay.tsx
|
|
13750
13738
|
import { jsx as jsx276, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
13751
13739
|
var StyledEditableTextDisplay = styled64.div`
|
|
@@ -15877,14 +15865,7 @@ var RadioCardImage = forwardRef30(
|
|
|
15877
15865
|
RadioCardImage.displayName = "RadioCardImage_UI";
|
|
15878
15866
|
|
|
15879
15867
|
// src/components/ScrollArea/ScrollArea.tsx
|
|
15880
|
-
import {
|
|
15881
|
-
forwardRef as forwardRef31,
|
|
15882
|
-
useCallback as useCallback18,
|
|
15883
|
-
useEffect as useEffect20,
|
|
15884
|
-
useMemo as useMemo15,
|
|
15885
|
-
useRef as useRef21,
|
|
15886
|
-
useState as useState23
|
|
15887
|
-
} from "react";
|
|
15868
|
+
import { forwardRef as forwardRef31, useCallback as useCallback18, useEffect as useEffect20, useMemo as useMemo15, useRef as useRef21, useState as useState23 } from "react";
|
|
15888
15869
|
import styled87 from "styled-components";
|
|
15889
15870
|
import { throttle } from "throttle-debounce";
|
|
15890
15871
|
import { jsx as jsx302, jsxs as jsxs57 } from "react/jsx-runtime";
|