@wistia/ui 0.15.6 → 0.15.7-beta.c5f38edd.1905336

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.6
3
+ * @license @wistia/ui v0.15.7-beta.c5f38edd.1905336
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -7741,6 +7741,12 @@ var StyledLink = import_styled_components21.default.a`
7741
7741
  text-decoration: ${({ $underline }) => $underline === "hover" || $underline === "always" ? "underline" : "none"};
7742
7742
  }
7743
7743
 
7744
+ button& {
7745
+ display: inline;
7746
+ line-height: inherit;
7747
+ vertical-align: baseline;
7748
+ }
7749
+
7744
7750
  && {
7745
7751
  svg {
7746
7752
  width: 14px;
@@ -16894,6 +16900,7 @@ var StyledTrigger2 = (0, import_styled_components110.default)(import_react_selec
16894
16900
  font-size: var(--wui-input-font-size);
16895
16901
  line-height: var(--wui-input-line-height);
16896
16902
  color: var(--wui-input-color-text);
16903
+ gap: var(--wui-space-01);
16897
16904
 
16898
16905
  > span {
16899
16906
  white-space: nowrap;
@@ -16943,6 +16950,17 @@ var StyledContent3 = (0, import_styled_components110.default)(import_react_selec
16943
16950
  margin: var(--wui-space-02) 0;
16944
16951
  }
16945
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
+ `;
16946
16964
  var Select = (0, import_react90.forwardRef)(
16947
16965
  ({
16948
16966
  colorScheme = "inherit",
@@ -16984,9 +17002,21 @@ var Select = (0, import_react90.forwardRef)(
16984
17002
  }
16985
17003
  ),
16986
17004
  /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(StyledContent3, { position: "popper", children: [
16987
- /* @__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
+ ) }),
16988
17012
  /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(import_react_select.Viewport, { children }),
16989
- /* @__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
+ ) })
16990
17020
  ] }) })
16991
17021
  ] });
16992
17022
  }
@@ -17001,6 +17031,8 @@ var import_type_guards65 = require("@wistia/type-guards");
17001
17031
  var import_jsx_runtime309 = require("react/jsx-runtime");
17002
17032
  var StyledItem = (0, import_styled_components111.default)(import_react_select2.Item)`
17003
17033
  ${getTypographicStyles("label3")}
17034
+ align-items: ${({ $checkmarkVerticalAlign }) => $checkmarkVerticalAlign === "center" ? "center" : "flex-start"};
17035
+ background-color: transparent;
17004
17036
  display: flex;
17005
17037
  padding: var(--wui-select-option-padding);
17006
17038
  justify-content: space-between;
@@ -17024,12 +17056,13 @@ var StyledItem = (0, import_styled_components111.default)(import_react_select2.I
17024
17056
  }
17025
17057
  `;
17026
17058
  var SelectOption = (0, import_react91.forwardRef)(
17027
- ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
17059
+ ({ children, selectedDisplayValue, checkmarkVerticalAlign = "center", ...props }, forwardedRef) => {
17028
17060
  return /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
17029
17061
  StyledItem,
17030
17062
  {
17031
17063
  ...props,
17032
17064
  ref: forwardedRef,
17065
+ $checkmarkVerticalAlign: checkmarkVerticalAlign,
17033
17066
  children: [
17034
17067
  (0, import_type_guards65.isNotNil)(selectedDisplayValue) ? /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)("div", { children: [
17035
17068
  children,