@wistia/ui 0.14.35-beta.cd017dfa.d55d9a7 → 0.14.35-beta.da98fddc.3a5b347
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 +17 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +52 -52
- package/dist/index.d.ts +52 -52
- package/dist/index.mjs +20 -18
- 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.35-beta.
|
|
3
|
+
* @license @wistia/ui v0.14.35-beta.da98fddc.3a5b347
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -11343,14 +11343,14 @@ var Input = (0, import_react47.forwardRef)(
|
|
|
11343
11343
|
if ((0, import_type_guards35.isNil)(leftIcon) && type === "search") {
|
|
11344
11344
|
leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Icon, { type: "search" });
|
|
11345
11345
|
}
|
|
11346
|
-
if ((0, import_type_guards35.isNotNil)(leftIconToDisplay)
|
|
11346
|
+
if ((0, import_type_guards35.isNotNil)(leftIconToDisplay)) {
|
|
11347
11347
|
leftIconToDisplay = (0, import_react47.cloneElement)(leftIconToDisplay, {
|
|
11348
11348
|
size: "md",
|
|
11349
11349
|
className: "wui-input-left-icon"
|
|
11350
11350
|
});
|
|
11351
11351
|
}
|
|
11352
11352
|
let rightIconToDisplay = rightIcon;
|
|
11353
|
-
if ((0, import_type_guards35.isNotNil)(rightIconToDisplay)
|
|
11353
|
+
if ((0, import_type_guards35.isNotNil)(rightIconToDisplay)) {
|
|
11354
11354
|
rightIconToDisplay = (0, import_react47.cloneElement)(rightIconToDisplay, {
|
|
11355
11355
|
size: "md",
|
|
11356
11356
|
className: "wui-input-right-icon"
|
|
@@ -16469,10 +16469,15 @@ var StyledContent3 = (0, import_styled_components109.default)(import_react_selec
|
|
|
16469
16469
|
background-color: var(--wui-select-content-bg);
|
|
16470
16470
|
border: 1px solid var(--wui-select-content-border);
|
|
16471
16471
|
border-radius: var(--wui-select-content-border-radius);
|
|
16472
|
+
box-shadow: var(--wui-elevation-01);
|
|
16472
16473
|
padding: var(--wui-select-option-padding);
|
|
16473
16474
|
min-width: var(--radix-select-trigger-width);
|
|
16474
16475
|
max-height: var(--radix-select-content-available-height);
|
|
16475
16476
|
z-index: var(--wui-zindex-select);
|
|
16477
|
+
|
|
16478
|
+
[role='separator'] {
|
|
16479
|
+
margin: var(--wui-space-02) 0;
|
|
16480
|
+
}
|
|
16476
16481
|
`;
|
|
16477
16482
|
var Select = (0, import_react90.forwardRef)(
|
|
16478
16483
|
({
|
|
@@ -16529,10 +16534,10 @@ var import_styled_components110 = __toESM(require("styled-components"));
|
|
|
16529
16534
|
var import_type_guards64 = require("@wistia/type-guards");
|
|
16530
16535
|
var import_jsx_runtime308 = require("react/jsx-runtime");
|
|
16531
16536
|
var StyledItem = (0, import_styled_components110.default)(import_react_select2.Item)`
|
|
16532
|
-
${
|
|
16537
|
+
${getTypographicStyles("label3")}
|
|
16533
16538
|
display: flex;
|
|
16534
16539
|
padding: var(--wui-select-option-padding);
|
|
16535
|
-
|
|
16540
|
+
justify-content: space-between;
|
|
16536
16541
|
font-size: var(--font-size);
|
|
16537
16542
|
font-weight: var(--font-weight);
|
|
16538
16543
|
border-radius: var(--wui-border-radius-01);
|
|
@@ -16552,9 +16557,6 @@ var StyledItem = (0, import_styled_components110.default)(import_react_select2.I
|
|
|
16552
16557
|
background-color: transparent;
|
|
16553
16558
|
}
|
|
16554
16559
|
`;
|
|
16555
|
-
var StyledIconContainer2 = import_styled_components110.default.span`
|
|
16556
|
-
width: 12px;
|
|
16557
|
-
`;
|
|
16558
16560
|
var SelectOption = (0, import_react91.forwardRef)(
|
|
16559
16561
|
({ children, selectedDisplayValue, ...props }, forwardedRef) => {
|
|
16560
16562
|
return /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
|
|
@@ -16563,17 +16565,17 @@ var SelectOption = (0, import_react91.forwardRef)(
|
|
|
16563
16565
|
...props,
|
|
16564
16566
|
ref: forwardedRef,
|
|
16565
16567
|
children: [
|
|
16566
|
-
|
|
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)(
|
|
16567
16573
|
Icon,
|
|
16568
16574
|
{
|
|
16569
|
-
size: "
|
|
16575
|
+
size: "md",
|
|
16570
16576
|
type: "checkmark"
|
|
16571
16577
|
}
|
|
16572
|
-
) })
|
|
16573
|
-
(0, import_type_guards64.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)("div", { children: [
|
|
16574
|
-
children,
|
|
16575
|
-
/* @__PURE__ */ (0, import_jsx_runtime308.jsx)("div", { style: { display: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select2.ItemText, { children: selectedDisplayValue }) })
|
|
16576
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select2.ItemText, { children })
|
|
16578
|
+
) })
|
|
16577
16579
|
]
|
|
16578
16580
|
}
|
|
16579
16581
|
);
|