@wistia/ui 0.5.7 → 0.6.0-beta.1033eefd.58b1a3d
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 +247 -164
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +47 -2
- package/dist/index.d.ts +47 -2
- package/dist/index.mjs +239 -157
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -21
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.
|
|
3
|
+
* @license @wistia/ui v0.6.0-beta.1033eefd.58b1a3d
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -2175,45 +2175,55 @@ var defaultScheme = css13`
|
|
|
2175
2175
|
--wui-color-focus-ring: var(--wui-blue-9);
|
|
2176
2176
|
`;
|
|
2177
2177
|
var navScheme = css13`
|
|
2178
|
-
--wui-color-bg-
|
|
2179
|
-
|
|
2178
|
+
--wui-color-bg-app: #1e3399;
|
|
2179
|
+
|
|
2180
2180
|
--wui-color-bg-fill: var(--wui-blue-1);
|
|
2181
|
-
--wui-color-bg-
|
|
2182
|
-
--wui-color-bg-
|
|
2183
|
-
|
|
2184
|
-
--wui-color-bg-surface
|
|
2185
|
-
--wui-color-bg-surface-
|
|
2186
|
-
--wui-color-bg-surface-
|
|
2187
|
-
|
|
2188
|
-
--wui-color-
|
|
2189
|
-
--wui-color-
|
|
2190
|
-
--wui-color-
|
|
2191
|
-
|
|
2192
|
-
--wui-color-
|
|
2193
|
-
|
|
2194
|
-
--wui-color-
|
|
2195
|
-
--wui-color-
|
|
2196
|
-
--wui-color-
|
|
2197
|
-
|
|
2198
|
-
--wui-color-
|
|
2181
|
+
--wui-color-bg-fill-hover: #e7e9f4;
|
|
2182
|
+
--wui-color-bg-fill-active: #dcdfef;
|
|
2183
|
+
|
|
2184
|
+
--wui-color-bg-surface: transparent;
|
|
2185
|
+
--wui-color-bg-surface-hover: #15267b;
|
|
2186
|
+
--wui-color-bg-surface-active: #122271;
|
|
2187
|
+
|
|
2188
|
+
--wui-color-bg-surface-secondary: #15267b;
|
|
2189
|
+
--wui-color-bg-surface-secondary-hover: #122271;
|
|
2190
|
+
--wui-color-bg-surface-secondary-active: #101e67;
|
|
2191
|
+
|
|
2192
|
+
--wui-color-bg-surface-tertiary: #0d1a5c;
|
|
2193
|
+
|
|
2194
|
+
--wui-color-border: #101e67;
|
|
2195
|
+
--wui-color-border-hover: #0e1c61;
|
|
2196
|
+
--wui-color-border-active: #0d1a5c;
|
|
2197
|
+
|
|
2198
|
+
--wui-color-border-secondary: var(--wui-color-bg-fill);
|
|
2199
|
+
--wui-color-border-secondary-hover: var(--wui-color-bg-fill-hover);
|
|
2200
|
+
--wui-color-border-secondary-active: var(--wui-color-bg-fill-active);
|
|
2201
|
+
|
|
2202
|
+
--wui-color-icon: var(--wui-blue-1);
|
|
2203
|
+
--wui-color-icon-on-fill: var(--wui-color-bg-app);
|
|
2204
|
+
|
|
2199
2205
|
--wui-color-text: var(--wui-blue-1);
|
|
2206
|
+
--wui-color-text-on-fill: var(--wui-color-bg-app);
|
|
2207
|
+
--wui-color-text-link: var(--wui-blue-4);
|
|
2208
|
+
--wui-color-text-secondary: var(--wui-blue-6);
|
|
2200
2209
|
--wui-color-text-button: var(--wui-blue-1);
|
|
2210
|
+
|
|
2201
2211
|
--wui-color-focus-ring: var(--wui-blue-1);
|
|
2202
2212
|
|
|
2203
2213
|
/* Nav - Disabled */
|
|
2204
|
-
--wui-color-bg-surface-disabled:
|
|
2214
|
+
--wui-color-bg-surface-disabled: transparent;
|
|
2205
2215
|
--wui-color-icon-disabled: var(--wui-blue-8);
|
|
2206
2216
|
--wui-color-text-disabled: var(--wui-blue-8);
|
|
2207
2217
|
|
|
2208
2218
|
/* Nav - Selected */
|
|
2209
|
-
--wui-color-bg-surface-selected: var(--wui-
|
|
2210
|
-
--wui-color-bg-surface-selected-active: var(--wui-
|
|
2211
|
-
--wui-color-bg-surface-selected-hover: var(--wui-
|
|
2212
|
-
--wui-color-icon-selected: var(--wui-
|
|
2213
|
-
--wui-color-text-selected: var(--wui-
|
|
2214
|
-
--wui-color-border-selected:
|
|
2215
|
-
--wui-color-border-hover-selected:
|
|
2216
|
-
--wui-color-border-active-selected:
|
|
2219
|
+
--wui-color-bg-surface-selected: var(--wui-color-bg-fill);
|
|
2220
|
+
--wui-color-bg-surface-selected-active: var(--wui-color-bg-fill-active);
|
|
2221
|
+
--wui-color-bg-surface-selected-hover: var(--wui-color-bg-fill-hover);
|
|
2222
|
+
--wui-color-icon-selected: var(--wui-color-bg-app);
|
|
2223
|
+
--wui-color-text-selected: var(--wui-color-bg-app);
|
|
2224
|
+
--wui-color-border-selected: transparent;
|
|
2225
|
+
--wui-color-border-hover-selected: transparent;
|
|
2226
|
+
--wui-color-border-active-selected: transparent;
|
|
2217
2227
|
`;
|
|
2218
2228
|
var getColorScheme = (colorScheme) => {
|
|
2219
2229
|
if (colorScheme === "nav") {
|
|
@@ -6650,7 +6660,12 @@ var ButtonGroupComponent = styled13.div`
|
|
|
6650
6660
|
display: flex;
|
|
6651
6661
|
|
|
6652
6662
|
/* this helps ensure that primary buttons appear at the top of the column */
|
|
6653
|
-
flex-direction: ${({ $align }) =>
|
|
6663
|
+
flex-direction: ${({ $collapse, $align }) => {
|
|
6664
|
+
if (!$collapse) {
|
|
6665
|
+
return "row";
|
|
6666
|
+
}
|
|
6667
|
+
return $align === "right" ? "column-reverse" : "column";
|
|
6668
|
+
}};
|
|
6654
6669
|
gap: var(--wui-space-02);
|
|
6655
6670
|
align-items: center;
|
|
6656
6671
|
justify-content: ${({ $align }) => getAlignment($align)};
|
|
@@ -6670,6 +6685,7 @@ var ButtonGroup = ({
|
|
|
6670
6685
|
children,
|
|
6671
6686
|
align = "left",
|
|
6672
6687
|
fullWidth = false,
|
|
6688
|
+
collapseOnSmallScreens = true,
|
|
6673
6689
|
...otherProps
|
|
6674
6690
|
}) => {
|
|
6675
6691
|
if (isNil10(children)) {
|
|
@@ -6679,6 +6695,7 @@ var ButtonGroup = ({
|
|
|
6679
6695
|
ButtonGroupComponent,
|
|
6680
6696
|
{
|
|
6681
6697
|
$align: align,
|
|
6698
|
+
$collapse: collapseOnSmallScreens,
|
|
6682
6699
|
$fullWidth: fullWidth,
|
|
6683
6700
|
...otherProps,
|
|
6684
6701
|
children
|
|
@@ -8762,8 +8779,8 @@ var StyledSubTrigger = styled39(DropdownMenuSubTrigger)`
|
|
|
8762
8779
|
`;
|
|
8763
8780
|
var SubMenuTrigger = (props) => {
|
|
8764
8781
|
const { isSmAndUp } = useMq();
|
|
8765
|
-
const
|
|
8766
|
-
return /* @__PURE__ */ jsx200(
|
|
8782
|
+
const Trigger5 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
|
|
8783
|
+
return /* @__PURE__ */ jsx200(Trigger5, { asChild: true, children: /* @__PURE__ */ jsx200(
|
|
8767
8784
|
MenuItemButton,
|
|
8768
8785
|
{
|
|
8769
8786
|
...props,
|
|
@@ -9232,17 +9249,81 @@ var Modal = forwardRef17(
|
|
|
9232
9249
|
);
|
|
9233
9250
|
Modal.displayName = "Modal";
|
|
9234
9251
|
|
|
9252
|
+
// src/components/Popover/Popover.tsx
|
|
9253
|
+
import { Root as Root3, Trigger as Trigger3, Portal as Portal2, Content as Content3, Close, Arrow as Arrow2 } from "@radix-ui/react-popover";
|
|
9254
|
+
import styled45 from "styled-components";
|
|
9255
|
+
|
|
9256
|
+
// src/private/helpers/getControls/getControlProps.tsx
|
|
9257
|
+
import { isNotNil as isNotNil17 } from "@wistia/type-guards";
|
|
9258
|
+
var getControlProps = (isOpen, onOpenChange) => {
|
|
9259
|
+
return isNotNil17(onOpenChange) && isNotNil17(isOpen) ? { open: isOpen, onOpenChange } : {};
|
|
9260
|
+
};
|
|
9261
|
+
|
|
9262
|
+
// src/components/Popover/Popover.tsx
|
|
9263
|
+
import { jsx as jsx210, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
9264
|
+
var StyledContent2 = styled45(Content3)`
|
|
9265
|
+
border-radius: var(--wui-border-radius-02);
|
|
9266
|
+
padding: var(--wui-space-04);
|
|
9267
|
+
max-width: 320px;
|
|
9268
|
+
background-color: var(--wui-color-bg-surface);
|
|
9269
|
+
box-shadow: var(--wui-elevation-01);
|
|
9270
|
+
border: 1px solid var(--wui-color-border);
|
|
9271
|
+
|
|
9272
|
+
[data-wui-popover-close] {
|
|
9273
|
+
position: absolute;
|
|
9274
|
+
top: var(--wui-space-02);
|
|
9275
|
+
right: var(--wui-space-02);
|
|
9276
|
+
}
|
|
9277
|
+
`;
|
|
9278
|
+
var StyledArrow = styled45(Arrow2)`
|
|
9279
|
+
fill: white;
|
|
9280
|
+
display: none;
|
|
9281
|
+
`;
|
|
9282
|
+
var Popover = ({
|
|
9283
|
+
children,
|
|
9284
|
+
trigger,
|
|
9285
|
+
isOpen = false,
|
|
9286
|
+
hideCloseButton = false,
|
|
9287
|
+
onOpenChange,
|
|
9288
|
+
...props
|
|
9289
|
+
}) => {
|
|
9290
|
+
return /* @__PURE__ */ jsxs28(Root3, { ...getControlProps(isOpen, onOpenChange), children: [
|
|
9291
|
+
/* @__PURE__ */ jsx210(Trigger3, { asChild: true, children: trigger }),
|
|
9292
|
+
/* @__PURE__ */ jsx210(Portal2, { children: /* @__PURE__ */ jsxs28(
|
|
9293
|
+
StyledContent2,
|
|
9294
|
+
{
|
|
9295
|
+
sideOffset: 5,
|
|
9296
|
+
...props,
|
|
9297
|
+
children: [
|
|
9298
|
+
/* @__PURE__ */ jsx210(StyledArrow, {}),
|
|
9299
|
+
!hideCloseButton && /* @__PURE__ */ jsx210(Close, { asChild: true, children: /* @__PURE__ */ jsx210(
|
|
9300
|
+
IconButton,
|
|
9301
|
+
{
|
|
9302
|
+
"data-wui-popover-close": true,
|
|
9303
|
+
label: "Close",
|
|
9304
|
+
variant: "ghost",
|
|
9305
|
+
children: /* @__PURE__ */ jsx210(Icon, { type: "close" })
|
|
9306
|
+
}
|
|
9307
|
+
) }),
|
|
9308
|
+
/* @__PURE__ */ jsx210("div", { children })
|
|
9309
|
+
]
|
|
9310
|
+
}
|
|
9311
|
+
) })
|
|
9312
|
+
] });
|
|
9313
|
+
};
|
|
9314
|
+
Popover.displayName = "Popover";
|
|
9315
|
+
|
|
9235
9316
|
// src/components/Radio/Radio.tsx
|
|
9236
9317
|
import { forwardRef as forwardRef18, useId as useId3 } from "react";
|
|
9237
|
-
import
|
|
9318
|
+
import styled46, { css as css25 } from "styled-components";
|
|
9238
9319
|
import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
|
|
9239
|
-
import { jsx as
|
|
9240
|
-
var StyledLabelWrapper2 =
|
|
9320
|
+
import { jsx as jsx211, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
9321
|
+
var StyledLabelWrapper2 = styled46.div`
|
|
9241
9322
|
display: flex;
|
|
9242
9323
|
flex-direction: column;
|
|
9243
9324
|
padding-left: var(--wui-space-02);
|
|
9244
9325
|
`;
|
|
9245
|
-
var StyledRadio =
|
|
9326
|
+
var StyledRadio = styled46.input`
|
|
9246
9327
|
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
9247
9328
|
appearance: none;
|
|
9248
9329
|
margin: 0;
|
|
@@ -9284,7 +9365,7 @@ var defaultHoverStyle = css25`
|
|
|
9284
9365
|
/* TODO Lamp to design hover state */
|
|
9285
9366
|
cursor: pointer;
|
|
9286
9367
|
`;
|
|
9287
|
-
var StyledRadioWrapper =
|
|
9368
|
+
var StyledRadioWrapper = styled46.div`
|
|
9288
9369
|
align-items: baseline;
|
|
9289
9370
|
border: 1px solid transparent;
|
|
9290
9371
|
border-radius: 4px;
|
|
@@ -9322,13 +9403,13 @@ var Radio = forwardRef18(
|
|
|
9322
9403
|
}, ref) => {
|
|
9323
9404
|
const generatedId = useId3();
|
|
9324
9405
|
const computedId = isNonEmptyString3(id) ? id : `ui-radio-${generatedId}`;
|
|
9325
|
-
return /* @__PURE__ */
|
|
9406
|
+
return /* @__PURE__ */ jsxs29(
|
|
9326
9407
|
StyledRadioWrapper,
|
|
9327
9408
|
{
|
|
9328
9409
|
"aria-invalid": otherProps["aria-invalid"],
|
|
9329
9410
|
disabled,
|
|
9330
9411
|
children: [
|
|
9331
|
-
/* @__PURE__ */
|
|
9412
|
+
/* @__PURE__ */ jsx211(
|
|
9332
9413
|
StyledRadio,
|
|
9333
9414
|
{
|
|
9334
9415
|
ref,
|
|
@@ -9343,8 +9424,8 @@ var Radio = forwardRef18(
|
|
|
9343
9424
|
...otherProps
|
|
9344
9425
|
}
|
|
9345
9426
|
),
|
|
9346
|
-
/* @__PURE__ */
|
|
9347
|
-
/* @__PURE__ */
|
|
9427
|
+
/* @__PURE__ */ jsxs29(StyledLabelWrapper2, { children: [
|
|
9428
|
+
/* @__PURE__ */ jsx211(
|
|
9348
9429
|
Label,
|
|
9349
9430
|
{
|
|
9350
9431
|
disabled,
|
|
@@ -9353,7 +9434,7 @@ var Radio = forwardRef18(
|
|
|
9353
9434
|
children: label
|
|
9354
9435
|
}
|
|
9355
9436
|
),
|
|
9356
|
-
/* @__PURE__ */
|
|
9437
|
+
/* @__PURE__ */ jsx211(LabelDescription, { children: description })
|
|
9357
9438
|
] })
|
|
9358
9439
|
]
|
|
9359
9440
|
}
|
|
@@ -9364,13 +9445,13 @@ Radio.displayName = "Radio";
|
|
|
9364
9445
|
|
|
9365
9446
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
9366
9447
|
import { forwardRef as forwardRef19 } from "react";
|
|
9367
|
-
import
|
|
9448
|
+
import styled48, { css as css26 } from "styled-components";
|
|
9368
9449
|
import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
|
|
9369
9450
|
import { isNil as isNil13 } from "@wistia/type-guards";
|
|
9370
9451
|
|
|
9371
9452
|
// src/components/SegmentedControl/useSelectedItemMeasurements.tsx
|
|
9372
9453
|
import { createContext as createContext6, useContext as useContext5, useMemo as useMemo8, useState as useState9 } from "react";
|
|
9373
|
-
import { jsx as
|
|
9454
|
+
import { jsx as jsx212 } from "react/jsx-runtime";
|
|
9374
9455
|
var SelectedItemMeasurementsContext = createContext6(
|
|
9375
9456
|
null
|
|
9376
9457
|
);
|
|
@@ -9385,7 +9466,7 @@ var SelectedItemMeasurementsProvider = ({
|
|
|
9385
9466
|
}),
|
|
9386
9467
|
[selectedItemMeasurements]
|
|
9387
9468
|
);
|
|
9388
|
-
return /* @__PURE__ */
|
|
9469
|
+
return /* @__PURE__ */ jsx212(SelectedItemMeasurementsContext.Provider, { value: contextValue, children });
|
|
9389
9470
|
};
|
|
9390
9471
|
var useSelectedItemMeasurements = () => {
|
|
9391
9472
|
const context = useContext5(SelectedItemMeasurementsContext);
|
|
@@ -9399,7 +9480,7 @@ var useSelectedItemMeasurements = () => {
|
|
|
9399
9480
|
|
|
9400
9481
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
9401
9482
|
import { useMemo as useMemo9 } from "react";
|
|
9402
|
-
import
|
|
9483
|
+
import styled47 from "styled-components";
|
|
9403
9484
|
|
|
9404
9485
|
// src/components/SegmentedControl/useSegmentedControlValue.tsx
|
|
9405
9486
|
import { createContext as createContext7, useContext as useContext6 } from "react";
|
|
@@ -9414,9 +9495,9 @@ var useSegmentedControlValue = () => {
|
|
|
9414
9495
|
};
|
|
9415
9496
|
|
|
9416
9497
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
9417
|
-
import { jsx as
|
|
9498
|
+
import { jsx as jsx213 } from "react/jsx-runtime";
|
|
9418
9499
|
var Z_INDEX_TO_SIT_BEHIND_SIBLINGS = -1;
|
|
9419
|
-
var SelectedItemIndicatorDiv =
|
|
9500
|
+
var SelectedItemIndicatorDiv = styled47.div`
|
|
9420
9501
|
background-color: var(--wui-color-bg-fill-white);
|
|
9421
9502
|
border-radius: var(--wui-border-radius-rounded);
|
|
9422
9503
|
left: 0;
|
|
@@ -9441,7 +9522,7 @@ var SelectedItemIndicator = () => {
|
|
|
9441
9522
|
if (!selectedValue) {
|
|
9442
9523
|
return null;
|
|
9443
9524
|
}
|
|
9444
|
-
return /* @__PURE__ */
|
|
9525
|
+
return /* @__PURE__ */ jsx213(
|
|
9445
9526
|
SelectedItemIndicatorDiv,
|
|
9446
9527
|
{
|
|
9447
9528
|
style: {
|
|
@@ -9454,7 +9535,7 @@ var SelectedItemIndicator = () => {
|
|
|
9454
9535
|
};
|
|
9455
9536
|
|
|
9456
9537
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
9457
|
-
import { jsx as
|
|
9538
|
+
import { jsx as jsx214, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
9458
9539
|
var segmentedControlStyles = css26`
|
|
9459
9540
|
display: inline-flex;
|
|
9460
9541
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -9465,7 +9546,7 @@ var segmentedControlStyles = css26`
|
|
|
9465
9546
|
position: relative;
|
|
9466
9547
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
9467
9548
|
`;
|
|
9468
|
-
var StyledSegmentedControl =
|
|
9549
|
+
var StyledSegmentedControl = styled48(ToggleGroupRoot)`
|
|
9469
9550
|
${segmentedControlStyles}
|
|
9470
9551
|
`;
|
|
9471
9552
|
var SegmentedControl = forwardRef19(
|
|
@@ -9480,7 +9561,7 @@ var SegmentedControl = forwardRef19(
|
|
|
9480
9561
|
if (isNil13(children)) {
|
|
9481
9562
|
return null;
|
|
9482
9563
|
}
|
|
9483
|
-
return /* @__PURE__ */
|
|
9564
|
+
return /* @__PURE__ */ jsx214(
|
|
9484
9565
|
StyledSegmentedControl,
|
|
9485
9566
|
{
|
|
9486
9567
|
ref,
|
|
@@ -9492,8 +9573,8 @@ var SegmentedControl = forwardRef19(
|
|
|
9492
9573
|
type: "single",
|
|
9493
9574
|
value: selectedValue,
|
|
9494
9575
|
...props,
|
|
9495
|
-
children: /* @__PURE__ */
|
|
9496
|
-
/* @__PURE__ */
|
|
9576
|
+
children: /* @__PURE__ */ jsx214(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs30(SelectedItemMeasurementsProvider, { children: [
|
|
9577
|
+
/* @__PURE__ */ jsx214(SelectedItemIndicator, {}),
|
|
9497
9578
|
children
|
|
9498
9579
|
] }) })
|
|
9499
9580
|
}
|
|
@@ -9504,26 +9585,26 @@ SegmentedControl.displayName = "SegmentedControl";
|
|
|
9504
9585
|
|
|
9505
9586
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
9506
9587
|
import { forwardRef as forwardRef20, useEffect as useEffect5, useRef as useRef9 } from "react";
|
|
9507
|
-
import
|
|
9588
|
+
import styled49, { css as css27 } from "styled-components";
|
|
9508
9589
|
import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
|
|
9509
|
-
import { isNotNil as
|
|
9590
|
+
import { isNotNil as isNotNil19 } from "@wistia/type-guards";
|
|
9510
9591
|
|
|
9511
9592
|
// src/private/helpers/mergeRefs/mergeRefs.ts
|
|
9512
|
-
import { isNotNil as
|
|
9593
|
+
import { isNotNil as isNotNil18, isFunction } from "@wistia/type-guards";
|
|
9513
9594
|
var mergeRefs = (refs) => (value) => {
|
|
9514
9595
|
refs.forEach((ref) => {
|
|
9515
9596
|
if (isFunction(ref)) {
|
|
9516
9597
|
ref(value);
|
|
9517
9598
|
return;
|
|
9518
9599
|
}
|
|
9519
|
-
if (
|
|
9600
|
+
if (isNotNil18(ref)) {
|
|
9520
9601
|
ref.current = value;
|
|
9521
9602
|
}
|
|
9522
9603
|
});
|
|
9523
9604
|
};
|
|
9524
9605
|
|
|
9525
9606
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
9526
|
-
import { jsxs as
|
|
9607
|
+
import { jsxs as jsxs31 } from "react/jsx-runtime";
|
|
9527
9608
|
var segmentedControlItemStyles = css27`
|
|
9528
9609
|
all: unset; /* ToggleGroupItem is a button element */
|
|
9529
9610
|
align-items: center;
|
|
@@ -9584,7 +9665,7 @@ var segmentedControlItemStyles = css27`
|
|
|
9584
9665
|
}
|
|
9585
9666
|
}
|
|
9586
9667
|
`;
|
|
9587
|
-
var StyledSegmentedControlItem =
|
|
9668
|
+
var StyledSegmentedControlItem = styled49(ToggleGroupItem)`
|
|
9588
9669
|
${segmentedControlItemStyles}
|
|
9589
9670
|
`;
|
|
9590
9671
|
var SegmentedControlItem = forwardRef20(
|
|
@@ -9625,12 +9706,12 @@ var SegmentedControlItem = forwardRef20(
|
|
|
9625
9706
|
resizeObserver.disconnect();
|
|
9626
9707
|
};
|
|
9627
9708
|
}, [selectedValue, setSelectedItemMeasurements, value]);
|
|
9628
|
-
return /* @__PURE__ */
|
|
9709
|
+
return /* @__PURE__ */ jsxs31(
|
|
9629
9710
|
StyledSegmentedControlItem,
|
|
9630
9711
|
{
|
|
9631
9712
|
ref: combinedRef,
|
|
9632
|
-
$hasLabel:
|
|
9633
|
-
"aria-label":
|
|
9713
|
+
$hasLabel: isNotNil19(label),
|
|
9714
|
+
"aria-label": isNotNil19(label) ? void 0 : ariaLabel,
|
|
9634
9715
|
disabled,
|
|
9635
9716
|
onClick: handleClick,
|
|
9636
9717
|
value,
|
|
@@ -9647,18 +9728,18 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
|
|
|
9647
9728
|
// src/components/Tabs/Tabs.tsx
|
|
9648
9729
|
import { forwardRef as forwardRef22, useState as useState10 } from "react";
|
|
9649
9730
|
import { Root as TabsRoot } from "@radix-ui/react-tabs";
|
|
9650
|
-
import { isNotNil as
|
|
9731
|
+
import { isNotNil as isNotNil21, isNil as isNil14 } from "@wistia/type-guards";
|
|
9651
9732
|
|
|
9652
9733
|
// src/components/Tabs/TabPanel.tsx
|
|
9653
|
-
import
|
|
9734
|
+
import styled50 from "styled-components";
|
|
9654
9735
|
import { Content as TabsContent } from "@radix-ui/react-tabs";
|
|
9655
|
-
import { jsx as
|
|
9656
|
-
var StyledTabPanel =
|
|
9736
|
+
import { jsx as jsx215 } from "react/jsx-runtime";
|
|
9737
|
+
var StyledTabPanel = styled50(TabsContent)`
|
|
9657
9738
|
display: flex;
|
|
9658
9739
|
flex-direction: column;
|
|
9659
9740
|
`;
|
|
9660
9741
|
var TabPanel = ({ children, value, ...props }) => {
|
|
9661
|
-
return /* @__PURE__ */
|
|
9742
|
+
return /* @__PURE__ */ jsx215(
|
|
9662
9743
|
StyledTabPanel,
|
|
9663
9744
|
{
|
|
9664
9745
|
value,
|
|
@@ -9670,10 +9751,10 @@ var TabPanel = ({ children, value, ...props }) => {
|
|
|
9670
9751
|
TabPanel.displayName = "TabPanel";
|
|
9671
9752
|
|
|
9672
9753
|
// src/components/Tabs/TabList.tsx
|
|
9673
|
-
import
|
|
9754
|
+
import styled51 from "styled-components";
|
|
9674
9755
|
import { List as RadixTabList } from "@radix-ui/react-tabs";
|
|
9675
|
-
import { jsx as
|
|
9676
|
-
var StyledTabList =
|
|
9756
|
+
import { jsx as jsx216 } from "react/jsx-runtime";
|
|
9757
|
+
var StyledTabList = styled51(RadixTabList)`
|
|
9677
9758
|
${segmentedControlStyles}
|
|
9678
9759
|
|
|
9679
9760
|
margin-bottom: var(--wui-space-04);
|
|
@@ -9684,7 +9765,7 @@ var TabList = ({
|
|
|
9684
9765
|
ariaLabel,
|
|
9685
9766
|
...props
|
|
9686
9767
|
}) => {
|
|
9687
|
-
return /* @__PURE__ */
|
|
9768
|
+
return /* @__PURE__ */ jsx216(
|
|
9688
9769
|
StyledTabList,
|
|
9689
9770
|
{
|
|
9690
9771
|
$fullWidth: fullWidth,
|
|
@@ -9698,9 +9779,9 @@ TabList.displayName = "TabList";
|
|
|
9698
9779
|
|
|
9699
9780
|
// src/components/Tabs/TabItem.tsx
|
|
9700
9781
|
import { forwardRef as forwardRef21, useEffect as useEffect6, useRef as useRef10 } from "react";
|
|
9701
|
-
import
|
|
9782
|
+
import styled52 from "styled-components";
|
|
9702
9783
|
import { Trigger as RadixTab } from "@radix-ui/react-tabs";
|
|
9703
|
-
import { isNotNil as
|
|
9784
|
+
import { isNotNil as isNotNil20 } from "@wistia/type-guards";
|
|
9704
9785
|
|
|
9705
9786
|
// src/components/Tabs/useTabsValue.tsx
|
|
9706
9787
|
import { createContext as createContext8, useContext as useContext7 } from "react";
|
|
@@ -9715,8 +9796,8 @@ var useTabsValue = () => {
|
|
|
9715
9796
|
};
|
|
9716
9797
|
|
|
9717
9798
|
// src/components/Tabs/TabItem.tsx
|
|
9718
|
-
import { jsxs as
|
|
9719
|
-
var StyledTabItem =
|
|
9799
|
+
import { jsxs as jsxs32 } from "react/jsx-runtime";
|
|
9800
|
+
var StyledTabItem = styled52(RadixTab)`
|
|
9720
9801
|
${segmentedControlItemStyles}
|
|
9721
9802
|
|
|
9722
9803
|
&:focus-visible {
|
|
@@ -9754,12 +9835,12 @@ var TabItem = forwardRef21(
|
|
|
9754
9835
|
resizeObserver.disconnect();
|
|
9755
9836
|
};
|
|
9756
9837
|
}, [selectedValue, setSelectedItemMeasurements, value]);
|
|
9757
|
-
return /* @__PURE__ */
|
|
9838
|
+
return /* @__PURE__ */ jsxs32(
|
|
9758
9839
|
StyledTabItem,
|
|
9759
9840
|
{
|
|
9760
9841
|
ref: combinedRef,
|
|
9761
|
-
$hasLabel:
|
|
9762
|
-
"aria-label":
|
|
9842
|
+
$hasLabel: isNotNil20(label),
|
|
9843
|
+
"aria-label": isNotNil20(label) ? void 0 : ariaLabel,
|
|
9763
9844
|
disabled,
|
|
9764
9845
|
value,
|
|
9765
9846
|
children: [
|
|
@@ -9796,9 +9877,9 @@ var extractTabItems = (children) => {
|
|
|
9796
9877
|
|
|
9797
9878
|
// src/components/Tabs/SelectedItemIndicator.tsx
|
|
9798
9879
|
import { useMemo as useMemo10 } from "react";
|
|
9799
|
-
import
|
|
9800
|
-
import { jsx as
|
|
9801
|
-
var TabsSelectedItemIndicatorDiv =
|
|
9880
|
+
import styled53 from "styled-components";
|
|
9881
|
+
import { jsx as jsx217 } from "react/jsx-runtime";
|
|
9882
|
+
var TabsSelectedItemIndicatorDiv = styled53(SelectedItemIndicatorDiv)`
|
|
9802
9883
|
&:has(~ ${StyledTabItem}:focus-visible) {
|
|
9803
9884
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
9804
9885
|
}
|
|
@@ -9817,7 +9898,7 @@ var SelectedItemIndicator2 = () => {
|
|
|
9817
9898
|
if (selectedValue == null) {
|
|
9818
9899
|
return null;
|
|
9819
9900
|
}
|
|
9820
|
-
return /* @__PURE__ */
|
|
9901
|
+
return /* @__PURE__ */ jsx217(
|
|
9821
9902
|
TabsSelectedItemIndicatorDiv,
|
|
9822
9903
|
{
|
|
9823
9904
|
style: {
|
|
@@ -9830,7 +9911,7 @@ var SelectedItemIndicator2 = () => {
|
|
|
9830
9911
|
};
|
|
9831
9912
|
|
|
9832
9913
|
// src/components/Tabs/Tabs.tsx
|
|
9833
|
-
import { jsx as
|
|
9914
|
+
import { jsx as jsx218, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
9834
9915
|
var Tabs = forwardRef22(
|
|
9835
9916
|
({
|
|
9836
9917
|
children,
|
|
@@ -9847,25 +9928,25 @@ var Tabs = forwardRef22(
|
|
|
9847
9928
|
defaultValue: defaultSelectedValue,
|
|
9848
9929
|
onValueChange: setInternalSelectedValue
|
|
9849
9930
|
} : { value: selectedValue, onValueChange: onSelectedValueChange };
|
|
9850
|
-
return /* @__PURE__ */
|
|
9931
|
+
return /* @__PURE__ */ jsx218(
|
|
9851
9932
|
TabsRoot,
|
|
9852
9933
|
{
|
|
9853
9934
|
ref,
|
|
9854
9935
|
activationMode: "automatic",
|
|
9855
9936
|
...otherProps,
|
|
9856
9937
|
...modeProps,
|
|
9857
|
-
children: /* @__PURE__ */
|
|
9938
|
+
children: /* @__PURE__ */ jsx218(
|
|
9858
9939
|
TabsValueProvider,
|
|
9859
9940
|
{
|
|
9860
9941
|
value: defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue,
|
|
9861
|
-
children: /* @__PURE__ */
|
|
9862
|
-
/* @__PURE__ */
|
|
9942
|
+
children: /* @__PURE__ */ jsxs33(SelectedItemMeasurementsProvider, { children: [
|
|
9943
|
+
/* @__PURE__ */ jsxs33(
|
|
9863
9944
|
TabList,
|
|
9864
9945
|
{
|
|
9865
9946
|
ariaLabel,
|
|
9866
9947
|
fullWidth,
|
|
9867
9948
|
children: [
|
|
9868
|
-
/* @__PURE__ */
|
|
9949
|
+
/* @__PURE__ */ jsx218(SelectedItemIndicator2, {}),
|
|
9869
9950
|
tabItems.map((tab) => {
|
|
9870
9951
|
const {
|
|
9871
9952
|
value,
|
|
@@ -9875,7 +9956,7 @@ var Tabs = forwardRef22(
|
|
|
9875
9956
|
"aria-label": ariaLabelForTab
|
|
9876
9957
|
} = tab.props;
|
|
9877
9958
|
if (isNil14(icon)) {
|
|
9878
|
-
return /* @__PURE__ */
|
|
9959
|
+
return /* @__PURE__ */ jsx218(
|
|
9879
9960
|
TabItem,
|
|
9880
9961
|
{
|
|
9881
9962
|
disabled,
|
|
@@ -9885,8 +9966,8 @@ var Tabs = forwardRef22(
|
|
|
9885
9966
|
value
|
|
9886
9967
|
);
|
|
9887
9968
|
}
|
|
9888
|
-
if (
|
|
9889
|
-
return /* @__PURE__ */
|
|
9969
|
+
if (isNotNil21(label)) {
|
|
9970
|
+
return /* @__PURE__ */ jsx218(
|
|
9890
9971
|
TabItem,
|
|
9891
9972
|
{
|
|
9892
9973
|
disabled,
|
|
@@ -9897,8 +9978,8 @@ var Tabs = forwardRef22(
|
|
|
9897
9978
|
value
|
|
9898
9979
|
);
|
|
9899
9980
|
}
|
|
9900
|
-
if (
|
|
9901
|
-
return /* @__PURE__ */
|
|
9981
|
+
if (isNotNil21(ariaLabelForTab)) {
|
|
9982
|
+
return /* @__PURE__ */ jsx218(
|
|
9902
9983
|
TabItem,
|
|
9903
9984
|
{
|
|
9904
9985
|
"aria-label": ariaLabelForTab,
|
|
@@ -9914,7 +9995,7 @@ var Tabs = forwardRef22(
|
|
|
9914
9995
|
]
|
|
9915
9996
|
}
|
|
9916
9997
|
),
|
|
9917
|
-
tabItems.map((tab) => /* @__PURE__ */
|
|
9998
|
+
tabItems.map((tab) => /* @__PURE__ */ jsx218(
|
|
9918
9999
|
TabPanel,
|
|
9919
10000
|
{
|
|
9920
10001
|
value: tab.props.value,
|
|
@@ -9933,18 +10014,18 @@ Tabs.displayName = "Tabs";
|
|
|
9933
10014
|
|
|
9934
10015
|
// src/components/Tabs/Tab.tsx
|
|
9935
10016
|
import { forwardRef as forwardRef23 } from "react";
|
|
9936
|
-
import { jsx as
|
|
10017
|
+
import { jsx as jsx219 } from "react/jsx-runtime";
|
|
9937
10018
|
var Tab = forwardRef23(({ children }, ref) => {
|
|
9938
|
-
return /* @__PURE__ */
|
|
10019
|
+
return /* @__PURE__ */ jsx219("div", { ref, children });
|
|
9939
10020
|
});
|
|
9940
10021
|
Tab.displayName = "Tab";
|
|
9941
10022
|
|
|
9942
10023
|
// src/components/Tag/Tag.tsx
|
|
9943
10024
|
import { forwardRef as forwardRef24 } from "react";
|
|
9944
|
-
import
|
|
9945
|
-
import { isNil as isNil15, isNotNil as
|
|
9946
|
-
import { Fragment as Fragment7, jsx as
|
|
9947
|
-
var TagLabel =
|
|
10025
|
+
import styled54 from "styled-components";
|
|
10026
|
+
import { isNil as isNil15, isNotNil as isNotNil22, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
|
|
10027
|
+
import { Fragment as Fragment7, jsx as jsx220, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
10028
|
+
var TagLabel = styled54.a`
|
|
9948
10029
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9949
10030
|
font-size: var(--wui-typography-label-4-size);
|
|
9950
10031
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -9972,14 +10053,14 @@ var TagLabel = styled53.a`
|
|
|
9972
10053
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
9973
10054
|
}
|
|
9974
10055
|
`;
|
|
9975
|
-
var TagDivider =
|
|
10056
|
+
var TagDivider = styled54.div`
|
|
9976
10057
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9977
10058
|
border-left: 1px solid var(--wui-color-border);
|
|
9978
10059
|
display: flex;
|
|
9979
10060
|
height: 14px;
|
|
9980
10061
|
width: 1px;
|
|
9981
10062
|
`;
|
|
9982
|
-
var StyledRemoveButton =
|
|
10063
|
+
var StyledRemoveButton = styled54.button`
|
|
9983
10064
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9984
10065
|
all: unset;
|
|
9985
10066
|
cursor: pointer;
|
|
@@ -10007,7 +10088,7 @@ var StyledRemoveButton = styled53.button`
|
|
|
10007
10088
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
10008
10089
|
}
|
|
10009
10090
|
`;
|
|
10010
|
-
var StyledTag =
|
|
10091
|
+
var StyledTag = styled54.div`
|
|
10011
10092
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
10012
10093
|
align-items: center;
|
|
10013
10094
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -10028,23 +10109,23 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
10028
10109
|
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
10029
10110
|
);
|
|
10030
10111
|
}
|
|
10031
|
-
return /* @__PURE__ */
|
|
10032
|
-
/* @__PURE__ */
|
|
10033
|
-
/* @__PURE__ */
|
|
10112
|
+
return /* @__PURE__ */ jsxs34(Fragment7, { children: [
|
|
10113
|
+
/* @__PURE__ */ jsx220(TagDivider, { $colorScheme: colorScheme }),
|
|
10114
|
+
/* @__PURE__ */ jsxs34(
|
|
10034
10115
|
StyledRemoveButton,
|
|
10035
10116
|
{
|
|
10036
10117
|
$colorScheme: colorScheme,
|
|
10037
10118
|
onClick: onClickRemove,
|
|
10038
10119
|
type: "button",
|
|
10039
10120
|
children: [
|
|
10040
|
-
/* @__PURE__ */
|
|
10121
|
+
/* @__PURE__ */ jsx220(
|
|
10041
10122
|
Icon,
|
|
10042
10123
|
{
|
|
10043
10124
|
size: "sm",
|
|
10044
10125
|
type: "close"
|
|
10045
10126
|
}
|
|
10046
10127
|
),
|
|
10047
|
-
/* @__PURE__ */
|
|
10128
|
+
/* @__PURE__ */ jsx220(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
10048
10129
|
]
|
|
10049
10130
|
}
|
|
10050
10131
|
)
|
|
@@ -10052,15 +10133,15 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
10052
10133
|
};
|
|
10053
10134
|
var Tag = forwardRef24(
|
|
10054
10135
|
({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
|
|
10055
|
-
const labelProps =
|
|
10056
|
-
return /* @__PURE__ */
|
|
10136
|
+
const labelProps = isNotNil22(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
|
|
10137
|
+
return /* @__PURE__ */ jsxs34(
|
|
10057
10138
|
StyledTag,
|
|
10058
10139
|
{
|
|
10059
10140
|
ref,
|
|
10060
10141
|
$colorScheme: colorScheme,
|
|
10061
10142
|
...otherProps,
|
|
10062
10143
|
children: [
|
|
10063
|
-
/* @__PURE__ */
|
|
10144
|
+
/* @__PURE__ */ jsx220(
|
|
10064
10145
|
TagLabel,
|
|
10065
10146
|
{
|
|
10066
10147
|
...labelProps,
|
|
@@ -10068,7 +10149,7 @@ var Tag = forwardRef24(
|
|
|
10068
10149
|
children: label
|
|
10069
10150
|
}
|
|
10070
10151
|
),
|
|
10071
|
-
/* @__PURE__ */
|
|
10152
|
+
/* @__PURE__ */ jsx220(
|
|
10072
10153
|
RemoveButton,
|
|
10073
10154
|
{
|
|
10074
10155
|
colorScheme,
|
|
@@ -10084,26 +10165,26 @@ var Tag = forwardRef24(
|
|
|
10084
10165
|
Tag.displayName = "Tag";
|
|
10085
10166
|
|
|
10086
10167
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
10087
|
-
import
|
|
10088
|
-
import { isNotNil as
|
|
10089
|
-
import { jsx as
|
|
10168
|
+
import styled55 from "styled-components";
|
|
10169
|
+
import { isNotNil as isNotNil23 } from "@wistia/type-guards";
|
|
10170
|
+
import { jsx as jsx221, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
10090
10171
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
10091
10172
|
if (iconOnly) {
|
|
10092
|
-
return /* @__PURE__ */
|
|
10173
|
+
return /* @__PURE__ */ jsx221(
|
|
10093
10174
|
"g",
|
|
10094
10175
|
{
|
|
10095
10176
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
10096
10177
|
fill: brandmarkColor,
|
|
10097
|
-
children: /* @__PURE__ */
|
|
10178
|
+
children: /* @__PURE__ */ jsx221("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
|
|
10098
10179
|
}
|
|
10099
10180
|
);
|
|
10100
10181
|
}
|
|
10101
|
-
return /* @__PURE__ */
|
|
10182
|
+
return /* @__PURE__ */ jsx221(
|
|
10102
10183
|
"g",
|
|
10103
10184
|
{
|
|
10104
10185
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
10105
10186
|
fill: brandmarkColor,
|
|
10106
|
-
children: /* @__PURE__ */
|
|
10187
|
+
children: /* @__PURE__ */ jsx221("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
|
|
10107
10188
|
}
|
|
10108
10189
|
);
|
|
10109
10190
|
};
|
|
@@ -10111,12 +10192,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
10111
10192
|
if (iconOnly) {
|
|
10112
10193
|
return null;
|
|
10113
10194
|
}
|
|
10114
|
-
return /* @__PURE__ */
|
|
10195
|
+
return /* @__PURE__ */ jsx221(
|
|
10115
10196
|
"g",
|
|
10116
10197
|
{
|
|
10117
10198
|
"data-testid": "ui-wistia-logo-logotype",
|
|
10118
10199
|
fill: logotypeColor,
|
|
10119
|
-
children: /* @__PURE__ */
|
|
10200
|
+
children: /* @__PURE__ */ jsx221("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
|
|
10120
10201
|
}
|
|
10121
10202
|
);
|
|
10122
10203
|
};
|
|
@@ -10126,7 +10207,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
10126
10207
|
}
|
|
10127
10208
|
return "0 0 144 31.47";
|
|
10128
10209
|
};
|
|
10129
|
-
var WistiaLogoComponent =
|
|
10210
|
+
var WistiaLogoComponent = styled55.svg`
|
|
10130
10211
|
height: ${({ height }) => `${height}px`};
|
|
10131
10212
|
|
|
10132
10213
|
/* ensure it will always fit on mobile */
|
|
@@ -10168,7 +10249,7 @@ var WistiaLogo = ({
|
|
|
10168
10249
|
};
|
|
10169
10250
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
10170
10251
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
10171
|
-
const Logo = /* @__PURE__ */
|
|
10252
|
+
const Logo = /* @__PURE__ */ jsxs35(
|
|
10172
10253
|
WistiaLogoComponent,
|
|
10173
10254
|
{
|
|
10174
10255
|
$hoverColor: hoverColor,
|
|
@@ -10178,32 +10259,32 @@ var WistiaLogo = ({
|
|
|
10178
10259
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10179
10260
|
...otherProps,
|
|
10180
10261
|
children: [
|
|
10181
|
-
/* @__PURE__ */
|
|
10182
|
-
|
|
10262
|
+
/* @__PURE__ */ jsx221("title", { children: title }),
|
|
10263
|
+
isNotNil23(description) ? /* @__PURE__ */ jsx221("desc", { children: description }) : null,
|
|
10183
10264
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
10184
10265
|
renderLogotype(logotypeColor, iconOnly)
|
|
10185
10266
|
]
|
|
10186
10267
|
}
|
|
10187
10268
|
);
|
|
10188
|
-
return href !== void 0 ? /* @__PURE__ */
|
|
10269
|
+
return href !== void 0 ? /* @__PURE__ */ jsx221("a", { href, children: Logo }) : Logo;
|
|
10189
10270
|
};
|
|
10190
10271
|
WistiaLogo.displayName = "WistiaLogo";
|
|
10191
10272
|
|
|
10192
10273
|
// src/components/Select/Select.tsx
|
|
10193
10274
|
import {
|
|
10194
|
-
Root as
|
|
10195
|
-
Trigger as
|
|
10196
|
-
Portal as
|
|
10197
|
-
Content as
|
|
10275
|
+
Root as Root4,
|
|
10276
|
+
Trigger as Trigger4,
|
|
10277
|
+
Portal as Portal3,
|
|
10278
|
+
Content as Content4,
|
|
10198
10279
|
ScrollUpButton,
|
|
10199
10280
|
Viewport,
|
|
10200
10281
|
Value,
|
|
10201
10282
|
ScrollDownButton
|
|
10202
10283
|
} from "@radix-ui/react-select";
|
|
10203
10284
|
import { forwardRef as forwardRef25 } from "react";
|
|
10204
|
-
import
|
|
10205
|
-
import { jsx as
|
|
10206
|
-
var StyledTrigger =
|
|
10285
|
+
import styled56 from "styled-components";
|
|
10286
|
+
import { jsx as jsx222, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
10287
|
+
var StyledTrigger = styled56(Trigger4)`
|
|
10207
10288
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
10208
10289
|
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
10209
10290
|
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
@@ -10244,7 +10325,7 @@ var StyledTrigger = styled55(Trigger3)`
|
|
|
10244
10325
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
10245
10326
|
}
|
|
10246
10327
|
`;
|
|
10247
|
-
var
|
|
10328
|
+
var StyledContent3 = styled56(Content4)`
|
|
10248
10329
|
--wui-select-content-border: var(--wui-color-border);
|
|
10249
10330
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
10250
10331
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -10270,13 +10351,13 @@ var Select = forwardRef25(
|
|
|
10270
10351
|
...props
|
|
10271
10352
|
}, forwardedRef) => {
|
|
10272
10353
|
const responsiveFullWidth = useResponsiveProp(fullWidth);
|
|
10273
|
-
return /* @__PURE__ */
|
|
10274
|
-
|
|
10354
|
+
return /* @__PURE__ */ jsxs36(
|
|
10355
|
+
Root4,
|
|
10275
10356
|
{
|
|
10276
10357
|
...props,
|
|
10277
10358
|
onValueChange: onChange,
|
|
10278
10359
|
children: [
|
|
10279
|
-
/* @__PURE__ */
|
|
10360
|
+
/* @__PURE__ */ jsxs36(
|
|
10280
10361
|
StyledTrigger,
|
|
10281
10362
|
{
|
|
10282
10363
|
ref: forwardedRef,
|
|
@@ -10284,8 +10365,8 @@ var Select = forwardRef25(
|
|
|
10284
10365
|
$fullWidth: responsiveFullWidth,
|
|
10285
10366
|
...props,
|
|
10286
10367
|
children: [
|
|
10287
|
-
/* @__PURE__ */
|
|
10288
|
-
/* @__PURE__ */
|
|
10368
|
+
/* @__PURE__ */ jsx222(Value, { placeholder }),
|
|
10369
|
+
/* @__PURE__ */ jsx222(
|
|
10289
10370
|
Icon,
|
|
10290
10371
|
{
|
|
10291
10372
|
size: "md",
|
|
@@ -10295,10 +10376,10 @@ var Select = forwardRef25(
|
|
|
10295
10376
|
]
|
|
10296
10377
|
}
|
|
10297
10378
|
),
|
|
10298
|
-
/* @__PURE__ */
|
|
10299
|
-
/* @__PURE__ */
|
|
10300
|
-
/* @__PURE__ */
|
|
10301
|
-
/* @__PURE__ */
|
|
10379
|
+
/* @__PURE__ */ jsx222(Portal3, { children: /* @__PURE__ */ jsxs36(StyledContent3, { position: "popper", children: [
|
|
10380
|
+
/* @__PURE__ */ jsx222(ScrollUpButton, { children: /* @__PURE__ */ jsx222(Icon, { type: "caret-up" }) }),
|
|
10381
|
+
/* @__PURE__ */ jsx222(Viewport, { children }),
|
|
10382
|
+
/* @__PURE__ */ jsx222(ScrollDownButton, { children: /* @__PURE__ */ jsx222(Icon, { type: "caret-down" }) })
|
|
10302
10383
|
] }) })
|
|
10303
10384
|
]
|
|
10304
10385
|
}
|
|
@@ -10310,9 +10391,9 @@ Select.displayName = "Select";
|
|
|
10310
10391
|
// src/components/Select/SelectOption.tsx
|
|
10311
10392
|
import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
|
|
10312
10393
|
import { forwardRef as forwardRef26 } from "react";
|
|
10313
|
-
import
|
|
10314
|
-
import { jsx as
|
|
10315
|
-
var StyledItem =
|
|
10394
|
+
import styled57 from "styled-components";
|
|
10395
|
+
import { jsx as jsx223, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
10396
|
+
var StyledItem = styled57(Item)`
|
|
10316
10397
|
${variantStyleMap2.body3};
|
|
10317
10398
|
display: flex;
|
|
10318
10399
|
padding: var(--wui-select-option-padding);
|
|
@@ -10335,25 +10416,25 @@ var StyledItem = styled56(Item)`
|
|
|
10335
10416
|
background-color: transparent;
|
|
10336
10417
|
}
|
|
10337
10418
|
`;
|
|
10338
|
-
var StyledIconContainer =
|
|
10419
|
+
var StyledIconContainer = styled57.span`
|
|
10339
10420
|
width: 12px;
|
|
10340
10421
|
`;
|
|
10341
10422
|
var SelectOption = forwardRef26(
|
|
10342
10423
|
({ children, ...props }, forwardedRef) => {
|
|
10343
|
-
return /* @__PURE__ */
|
|
10424
|
+
return /* @__PURE__ */ jsxs37(
|
|
10344
10425
|
StyledItem,
|
|
10345
10426
|
{
|
|
10346
10427
|
...props,
|
|
10347
10428
|
ref: forwardedRef,
|
|
10348
10429
|
children: [
|
|
10349
|
-
/* @__PURE__ */
|
|
10430
|
+
/* @__PURE__ */ jsx223(StyledIconContainer, { children: /* @__PURE__ */ jsx223(ItemIndicator, { children: /* @__PURE__ */ jsx223(
|
|
10350
10431
|
Icon,
|
|
10351
10432
|
{
|
|
10352
10433
|
size: "sm",
|
|
10353
10434
|
type: "checkmark"
|
|
10354
10435
|
}
|
|
10355
10436
|
) }) }),
|
|
10356
|
-
/* @__PURE__ */
|
|
10437
|
+
/* @__PURE__ */ jsx223(ItemText, { children })
|
|
10357
10438
|
]
|
|
10358
10439
|
}
|
|
10359
10440
|
);
|
|
@@ -10363,14 +10444,14 @@ SelectOption.displayName = "Option";
|
|
|
10363
10444
|
|
|
10364
10445
|
// src/components/Select/SelectOptionGroup.tsx
|
|
10365
10446
|
import { Group, Label as Label2 } from "@radix-ui/react-select";
|
|
10366
|
-
import
|
|
10367
|
-
import { jsx as
|
|
10368
|
-
var StyledLabel4 =
|
|
10447
|
+
import styled58 from "styled-components";
|
|
10448
|
+
import { jsx as jsx224, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
10449
|
+
var StyledLabel4 = styled58(Label2)`
|
|
10369
10450
|
padding: var(--wui-select-option-padding);
|
|
10370
10451
|
`;
|
|
10371
10452
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
10372
|
-
return /* @__PURE__ */
|
|
10373
|
-
/* @__PURE__ */
|
|
10453
|
+
return /* @__PURE__ */ jsxs38(Group, { ...props, children: [
|
|
10454
|
+
/* @__PURE__ */ jsx224(StyledLabel4, { children: /* @__PURE__ */ jsx224(
|
|
10374
10455
|
Text,
|
|
10375
10456
|
{
|
|
10376
10457
|
prominence: "secondary",
|
|
@@ -10421,6 +10502,7 @@ export {
|
|
|
10421
10502
|
MenuLabel,
|
|
10422
10503
|
MenuRadioGroup,
|
|
10423
10504
|
Modal,
|
|
10505
|
+
Popover,
|
|
10424
10506
|
Radio,
|
|
10425
10507
|
RadioGroup,
|
|
10426
10508
|
RadioMenuItem,
|