@wistia/ui 0.14.35 → 0.14.36
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 +53 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +53 -49
- 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.14.
|
|
3
|
+
* @license @wistia/ui v0.14.36
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -16449,6 +16449,7 @@ var StyledTrigger2 = (0, import_styled_components109.default)(import_react_selec
|
|
|
16449
16449
|
&:disabled {
|
|
16450
16450
|
outline-color: var(--wui-color-border-disabled);
|
|
16451
16451
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
16452
|
+
cursor: not-allowed;
|
|
16452
16453
|
}
|
|
16453
16454
|
|
|
16454
16455
|
&[data-placeholder] {
|
|
@@ -16468,10 +16469,15 @@ var StyledContent3 = (0, import_styled_components109.default)(import_react_selec
|
|
|
16468
16469
|
background-color: var(--wui-select-content-bg);
|
|
16469
16470
|
border: 1px solid var(--wui-select-content-border);
|
|
16470
16471
|
border-radius: var(--wui-select-content-border-radius);
|
|
16472
|
+
box-shadow: var(--wui-elevation-01);
|
|
16471
16473
|
padding: var(--wui-select-option-padding);
|
|
16472
16474
|
min-width: var(--radix-select-trigger-width);
|
|
16473
16475
|
max-height: var(--radix-select-content-available-height);
|
|
16474
16476
|
z-index: var(--wui-zindex-select);
|
|
16477
|
+
|
|
16478
|
+
[role='separator'] {
|
|
16479
|
+
margin: var(--wui-space-02) 0;
|
|
16480
|
+
}
|
|
16475
16481
|
`;
|
|
16476
16482
|
var Select = (0, import_react90.forwardRef)(
|
|
16477
16483
|
({
|
|
@@ -16480,42 +16486,43 @@ var Select = (0, import_react90.forwardRef)(
|
|
|
16480
16486
|
onChange = () => null,
|
|
16481
16487
|
placeholder = "Select...",
|
|
16482
16488
|
fullWidth = false,
|
|
16489
|
+
forceOpen = false,
|
|
16483
16490
|
...props
|
|
16484
16491
|
}, forwardedRef) => {
|
|
16485
16492
|
const responsiveFullWidth = useResponsiveProp(fullWidth);
|
|
16486
|
-
|
|
16487
|
-
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16492
|
-
|
|
16493
|
-
|
|
16494
|
-
|
|
16495
|
-
|
|
16496
|
-
|
|
16497
|
-
|
|
16498
|
-
|
|
16499
|
-
|
|
16500
|
-
|
|
16501
|
-
|
|
16502
|
-
|
|
16503
|
-
|
|
16504
|
-
|
|
16505
|
-
|
|
16506
|
-
|
|
16507
|
-
|
|
16508
|
-
|
|
16509
|
-
|
|
16510
|
-
|
|
16511
|
-
|
|
16512
|
-
|
|
16513
|
-
|
|
16514
|
-
|
|
16515
|
-
|
|
16516
|
-
|
|
16517
|
-
}
|
|
16518
|
-
);
|
|
16493
|
+
const rootProps = {
|
|
16494
|
+
...props,
|
|
16495
|
+
onValueChange: onChange
|
|
16496
|
+
};
|
|
16497
|
+
if (forceOpen) {
|
|
16498
|
+
rootProps["open"] = true;
|
|
16499
|
+
}
|
|
16500
|
+
return /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(import_react_select.Root, { ...rootProps, children: [
|
|
16501
|
+
/* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(
|
|
16502
|
+
StyledTrigger2,
|
|
16503
|
+
{
|
|
16504
|
+
ref: forwardedRef,
|
|
16505
|
+
$colorScheme: colorScheme,
|
|
16506
|
+
$fullWidth: responsiveFullWidth,
|
|
16507
|
+
...props,
|
|
16508
|
+
children: [
|
|
16509
|
+
/* @__PURE__ */ (0, import_jsx_runtime307.jsx)(import_react_select.Value, { placeholder }),
|
|
16510
|
+
/* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
|
|
16511
|
+
Icon,
|
|
16512
|
+
{
|
|
16513
|
+
size: "md",
|
|
16514
|
+
type: "caret-down"
|
|
16515
|
+
}
|
|
16516
|
+
)
|
|
16517
|
+
]
|
|
16518
|
+
}
|
|
16519
|
+
),
|
|
16520
|
+
/* @__PURE__ */ (0, import_jsx_runtime307.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(StyledContent3, { position: "popper", children: [
|
|
16521
|
+
/* @__PURE__ */ (0, import_jsx_runtime307.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(Icon, { type: "caret-up" }) }),
|
|
16522
|
+
/* @__PURE__ */ (0, import_jsx_runtime307.jsx)(import_react_select.Viewport, { children }),
|
|
16523
|
+
/* @__PURE__ */ (0, import_jsx_runtime307.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(Icon, { type: "caret-down" }) })
|
|
16524
|
+
] }) })
|
|
16525
|
+
] });
|
|
16519
16526
|
}
|
|
16520
16527
|
);
|
|
16521
16528
|
Select.displayName = "Select_UI";
|
|
@@ -16527,10 +16534,10 @@ var import_styled_components110 = __toESM(require("styled-components"));
|
|
|
16527
16534
|
var import_type_guards64 = require("@wistia/type-guards");
|
|
16528
16535
|
var import_jsx_runtime308 = require("react/jsx-runtime");
|
|
16529
16536
|
var StyledItem = (0, import_styled_components110.default)(import_react_select2.Item)`
|
|
16530
|
-
${
|
|
16537
|
+
${getTypographicStyles("label3")}
|
|
16531
16538
|
display: flex;
|
|
16532
16539
|
padding: var(--wui-select-option-padding);
|
|
16533
|
-
|
|
16540
|
+
justify-content: space-between;
|
|
16534
16541
|
font-size: var(--font-size);
|
|
16535
16542
|
font-weight: var(--font-weight);
|
|
16536
16543
|
border-radius: var(--wui-border-radius-01);
|
|
@@ -16550,9 +16557,6 @@ var StyledItem = (0, import_styled_components110.default)(import_react_select2.I
|
|
|
16550
16557
|
background-color: transparent;
|
|
16551
16558
|
}
|
|
16552
16559
|
`;
|
|
16553
|
-
var StyledIconContainer2 = import_styled_components110.default.span`
|
|
16554
|
-
width: 12px;
|
|
16555
|
-
`;
|
|
16556
16560
|
var SelectOption = (0, import_react91.forwardRef)(
|
|
16557
16561
|
({ children, selectedDisplayValue, ...props }, forwardedRef) => {
|
|
16558
16562
|
return /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
|
|
@@ -16561,17 +16565,17 @@ var SelectOption = (0, import_react91.forwardRef)(
|
|
|
16561
16565
|
...props,
|
|
16562
16566
|
ref: forwardedRef,
|
|
16563
16567
|
children: [
|
|
16564
|
-
|
|
16568
|
+
(0, import_type_guards64.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)("div", { children: [
|
|
16569
|
+
children,
|
|
16570
|
+
/* @__PURE__ */ (0, import_jsx_runtime308.jsx)("div", { style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select2.ItemText, { children: selectedDisplayValue }) })
|
|
16571
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select2.ItemText, { children }),
|
|
16572
|
+
/* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
|
|
16565
16573
|
Icon,
|
|
16566
16574
|
{
|
|
16567
|
-
size: "
|
|
16575
|
+
size: "md",
|
|
16568
16576
|
type: "checkmark"
|
|
16569
16577
|
}
|
|
16570
|
-
) })
|
|
16571
|
-
(0, import_type_guards64.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)("div", { children: [
|
|
16572
|
-
children,
|
|
16573
|
-
/* @__PURE__ */ (0, import_jsx_runtime308.jsx)("div", { style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select2.ItemText, { children: selectedDisplayValue }) })
|
|
16574
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select2.ItemText, { children })
|
|
16578
|
+
) })
|
|
16575
16579
|
]
|
|
16576
16580
|
}
|
|
16577
16581
|
);
|
|
@@ -16589,10 +16593,10 @@ var StyledLabel4 = (0, import_styled_components111.default)(import_react_select3
|
|
|
16589
16593
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
16590
16594
|
return /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(import_react_select3.Group, { ...props, children: [
|
|
16591
16595
|
/* @__PURE__ */ (0, import_jsx_runtime309.jsx)(StyledLabel4, { children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
|
|
16592
|
-
|
|
16596
|
+
Heading,
|
|
16593
16597
|
{
|
|
16594
|
-
|
|
16595
|
-
variant: "
|
|
16598
|
+
renderAs: "span",
|
|
16599
|
+
variant: "heading6",
|
|
16596
16600
|
children: label
|
|
16597
16601
|
}
|
|
16598
16602
|
) }),
|