@wistia/ui 0.15.7 → 0.15.8-beta.a2358089.ff99cb6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.15.7
3
+ * @license @wistia/ui v0.15.8-beta.a2358089.ff99cb6
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -16900,6 +16900,7 @@ var StyledTrigger2 = (0, import_styled_components110.default)(import_react_selec
16900
16900
  font-size: var(--wui-input-font-size);
16901
16901
  line-height: var(--wui-input-line-height);
16902
16902
  color: var(--wui-input-color-text);
16903
+ gap: var(--wui-space-01);
16903
16904
 
16904
16905
  > span {
16905
16906
  white-space: nowrap;
@@ -16949,6 +16950,17 @@ var StyledContent3 = (0, import_styled_components110.default)(import_react_selec
16949
16950
  margin: var(--wui-space-02) 0;
16950
16951
  }
16951
16952
  `;
16953
+ var scrollButtonStyles = import_styled_components110.css`
16954
+ align-items: center;
16955
+ display: flex;
16956
+ justify-content: center;
16957
+ `;
16958
+ var StyledScrollDownButton = (0, import_styled_components110.default)(import_react_select.ScrollDownButton)`
16959
+ ${scrollButtonStyles}
16960
+ `;
16961
+ var StyledScrollUpButton = (0, import_styled_components110.default)(import_react_select.ScrollUpButton)`
16962
+ ${scrollButtonStyles}
16963
+ `;
16952
16964
  var Select = (0, import_react90.forwardRef)(
16953
16965
  ({
16954
16966
  colorScheme = "inherit",
@@ -16990,9 +17002,21 @@ var Select = (0, import_react90.forwardRef)(
16990
17002
  }
16991
17003
  ),
16992
17004
  /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(StyledContent3, { position: "popper", children: [
16993
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select.ScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(Icon, { type: "caret-up" }) }),
17005
+ /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(StyledScrollUpButton, { children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
17006
+ Icon,
17007
+ {
17008
+ size: "sm",
17009
+ type: "caret-up"
17010
+ }
17011
+ ) }),
16994
17012
  /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select.Viewport, { children }),
16995
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select.ScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(Icon, { type: "caret-down" }) })
17013
+ /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(StyledScrollDownButton, { children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
17014
+ Icon,
17015
+ {
17016
+ size: "sm",
17017
+ type: "caret-down"
17018
+ }
17019
+ ) })
16996
17020
  ] }) })
16997
17021
  ] });
16998
17022
  }
@@ -17007,6 +17031,8 @@ var import_type_guards65 = require("@wistia/type-guards");
17007
17031
  var import_jsx_runtime309 = require("react/jsx-runtime");
17008
17032
  var StyledItem = (0, import_styled_components111.default)(import_react_select2.Item)`
17009
17033
  ${getTypographicStyles("label3")}
17034
+ align-items: ${({ $checkmarkVerticalAlign }) => $checkmarkVerticalAlign === "center" ? "center" : "flex-start"};
17035
+ background-color: transparent;
17010
17036
  display: flex;
17011
17037
  padding: var(--wui-select-option-padding);
17012
17038
  justify-content: space-between;
@@ -17030,12 +17056,13 @@ var StyledItem = (0, import_styled_components111.default)(import_react_select2.I
17030
17056
  }
17031
17057
  `;
17032
17058
  var SelectOption = (0, import_react91.forwardRef)(
17033
- ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
17059
+ ({ children, selectedDisplayValue, checkmarkVerticalAlign = "center", ...props }, forwardedRef) => {
17034
17060
  return /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
17035
17061
  StyledItem,
17036
17062
  {
17037
17063
  ...props,
17038
17064
  ref: forwardedRef,
17065
+ $checkmarkVerticalAlign: checkmarkVerticalAlign,
17039
17066
  children: [
17040
17067
  (0, import_type_guards65.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)("div", { children: [
17041
17068
  children,