@wistia/ui 0.10.3 → 0.10.4-beta.36362cd1.2b96fcb

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.10.3
3
+ * @license @wistia/ui v0.10.4-beta.36362cd1.2b96fcb
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -58,6 +58,7 @@ __export(index_exports, {
58
58
  CollapsibleTrigger: () => CollapsibleTrigger,
59
59
  ColorSchemeWrapper: () => ColorSchemeWrapper,
60
60
  Combobox: () => Combobox2,
61
+ ComboboxOption: () => ComboboxOption,
61
62
  DataCard: () => DataCard,
62
63
  DataCardTrend: () => DataCardTrend,
63
64
  DataCards: () => DataCards,
@@ -7827,6 +7828,7 @@ var StyledBadge = import_styled_components26.default.div`
7827
7828
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
7828
7829
  align-items: center;
7829
7830
  background-color: var(--wui-color-bg-surface-secondary);
7831
+ box-shadow: ${({ $variant }) => $variant === "outline" ? "inset 0 0 0 1px var(--wui-color-border)" : "none"};
7830
7832
  border-radius: var(--wui-border-radius-rounded);
7831
7833
  color: var(--wui-color-text);
7832
7834
  display: inline-flex;
@@ -7834,17 +7836,21 @@ var StyledBadge = import_styled_components26.default.div`
7834
7836
  font-weight: var(--wui-typography-label-4-weight);
7835
7837
  gap: var(--wui-space-01);
7836
7838
  justify-content: center;
7839
+ line-height: var(--wui-typography-label-3-line-height);
7837
7840
  padding: var(--wui-space-01) var(--wui-space-02);
7838
7841
  width: fit-content;
7839
7842
 
7840
- /* Icon component size */
7841
- svg {
7842
- height: 12px;
7843
- width: 12px;
7843
+ /* Icon component size and color */
7844
+ && {
7845
+ svg {
7846
+ color: var(--wui-color-icon);
7847
+ height: 12px;
7848
+ width: 12px;
7849
+ }
7844
7850
  }
7845
7851
  `;
7846
7852
  var Badge = (0, import_react26.forwardRef)(
7847
- ({ colorScheme = "inherit", label, icon, ...props }, ref) => {
7853
+ ({ colorScheme = "inherit", label, icon, variant = "default", ...props }, ref) => {
7848
7854
  const hasIcon = (0, import_type_guards19.isNotNil)(icon);
7849
7855
  return /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)(
7850
7856
  StyledBadge,
@@ -7853,6 +7859,7 @@ var Badge = (0, import_react26.forwardRef)(
7853
7859
  ...props,
7854
7860
  $colorScheme: colorScheme,
7855
7861
  $hasIcon: hasIcon,
7862
+ $variant: variant,
7856
7863
  children: [
7857
7864
  hasIcon ? icon : null,
7858
7865
  /* @__PURE__ */ (0, import_jsx_runtime200.jsx)("span", { children: label })
@@ -9903,7 +9910,6 @@ var StyledForm = import_styled_components51.default.form`
9903
9910
  --form-default-width: 690px;
9904
9911
 
9905
9912
  max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
9906
- align-items: ${({ $fullWidth }) => $fullWidth ? "stretch" : "flex-start"};
9907
9913
  `;
9908
9914
  var FormContext = (0, import_react41.createContext)({
9909
9915
  values: {},
@@ -9984,6 +9990,7 @@ var FormComponent = ({
9984
9990
  ...props,
9985
9991
  ref,
9986
9992
  $fullWidth: fullWidth,
9993
+ alignItems: fullWidth ? "stretch" : "flex-start",
9987
9994
  as: StyledForm,
9988
9995
  gap: "space-05",
9989
9996
  id,
@@ -13825,6 +13832,17 @@ var NoResults = import_styled_components96.default.div`
13825
13832
  gap: var(--wui-space-02);
13826
13833
  `;
13827
13834
  var POPOVER_WIDTH_OFFSET = 20;
13835
+ var ComboboxOption = ({ value, children }) => {
13836
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
13837
+ ComboboxItem2,
13838
+ {
13839
+ className: "combobox-item",
13840
+ focusOnHover: true,
13841
+ value,
13842
+ children
13843
+ }
13844
+ );
13845
+ };
13828
13846
  var extractOptions = (children) => {
13829
13847
  const options = {};
13830
13848
  import_react73.Children.forEach(children, (child) => {
@@ -13960,6 +13978,7 @@ var Combobox2 = ({
13960
13978
  CollapsibleTrigger,
13961
13979
  ColorSchemeWrapper,
13962
13980
  Combobox,
13981
+ ComboboxOption,
13963
13982
  DataCard,
13964
13983
  DataCardTrend,
13965
13984
  DataCards,