@wistia/ui 0.19.1 → 0.19.2-beta.2859661a.15d019f

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.19.1
3
+ * @license @wistia/ui v0.19.2-beta.2859661a.15d019f
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -3545,8 +3545,8 @@ var buttonExtraLargeStyles = import_styled_components19.css`
3545
3545
  `;
3546
3546
  var ghostButtonVariant = import_styled_components19.css`
3547
3547
  --button-color-bg-override: transparent;
3548
- --button-color-bg-hover: var(--wui-color-bg-surface-hover);
3549
- --button-color-bg-active: var(--wui-color-bg-surface-active);
3548
+ --button-color-bg-hover: var(--wui-color-bg-surface-secondary-hover);
3549
+ --button-color-bg-active: var(--wui-color-bg-surface-secondary-active);
3550
3550
  --button-color-text: var(--wui-color-text-button);
3551
3551
  --button-color-icon: var(--wui-color-icon);
3552
3552
  `;
@@ -3623,12 +3623,15 @@ var buttonBaseStyles = import_styled_components19.css`
3623
3623
 
3624
3624
  &:focus-visible,
3625
3625
  &.force-state-focus {
3626
- outline: 2px solid var(--wui-color-focus-ring);
3627
- outline-offset: 2px;
3626
+ --wui-button-focus-color: var(--wui-color-focus-ring);
3627
+
3628
3628
  background: var(--button-color-bg-hover);
3629
+ box-shadow:
3630
+ inset 0 0 0 2px var(--wui-button-focus-color),
3631
+ inset 0 0 0 3px var(--wui-color-bg-app);
3629
3632
 
3630
3633
  &[aria-disabled='true'] {
3631
- outline-color: var(--wui-color-border-disabled);
3634
+ --wui-button-focus-color: var(--wui-color-focus-ring-disabled);
3632
3635
  }
3633
3636
  }
3634
3637
 
@@ -8262,22 +8265,29 @@ var StyledActionButton = (0, import_styled_components24.styled)(Button)`
8262
8265
  }
8263
8266
 
8264
8267
  &:hover,
8265
- &:focus-visible {
8268
+ &:focus-visible,
8269
+ &.force-state-hover,
8270
+ &.force-state-focus {
8266
8271
  --wui-color-text: var(--wui-color-text-button);
8267
8272
 
8268
8273
  ${({ $hoverColorScheme }) => getColorScheme($hoverColorScheme)};
8269
8274
  background: var(--wui-color-bg-surface-tertiary);
8270
8275
  }
8271
8276
 
8272
- &:focus-visible {
8273
- outline: 2px solid var(--wui-color-focus-ring);
8274
- outline-offset: 2px;
8277
+ &:focus-visible,
8278
+ &.force-state-focus {
8279
+ --wui-action-button-focus-color: var(--wui-color-focus-ring);
8280
+
8281
+ box-shadow:
8282
+ inset 0 0 0 2px var(--wui-action-button-focus-color),
8283
+ inset 0 0 0 3px var(--wui-color-bg-app);
8275
8284
  }
8276
8285
 
8277
8286
  &[aria-disabled='true'] {
8287
+ --wui-action-button-focus-color: var(--wui-color-focus-ring-disabled);
8288
+
8278
8289
  background: var(--wui-color-bg-surface-disabled);
8279
8290
  color: var(--wui-color-text-disabled);
8280
- outline-color: var(--wui-color-focus-ring-disabled);
8281
8291
  cursor: not-allowed;
8282
8292
 
8283
8293
  && {
@@ -8315,7 +8325,9 @@ var StyledSecondaryIcon = import_styled_components24.styled.div`
8315
8325
  opacity: 0;
8316
8326
  transform: translateX(-16px);
8317
8327
  ${StyledActionButton}:hover:not([aria-disabled="true"]) &,
8318
- ${StyledActionButton}:focus-visible:not([aria-disabled="true"]) & {
8328
+ ${StyledActionButton}:focus-visible:not([aria-disabled="true"]) &,
8329
+ ${StyledActionButton}.force-state-hover:not([aria-disabled="true"]) &,
8330
+ ${StyledActionButton}.force-state-focus:not([aria-disabled="true"]) & {
8319
8331
  transform: translateX(0);
8320
8332
  opacity: 1;
8321
8333
  }
@@ -8344,6 +8356,7 @@ var ActionButton = (0, import_react24.forwardRef)(
8344
8356
  icon,
8345
8357
  colorScheme = "standard",
8346
8358
  disabled = false,
8359
+ forceState,
8347
8360
  hoverColorScheme,
8348
8361
  variant = "default",
8349
8362
  children,
@@ -8364,6 +8377,7 @@ var ActionButton = (0, import_react24.forwardRef)(
8364
8377
  $colorScheme: colorScheme,
8365
8378
  $hoverColorScheme: resolvedHoverColorScheme,
8366
8379
  disabled,
8380
+ forceState,
8367
8381
  unstyled: true,
8368
8382
  children: [
8369
8383
  /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(StyledMainIcon, { children: icon }),
@@ -12918,7 +12932,7 @@ var SaturationAndValuePicker = ({
12918
12932
  SaturationAndValuePicker.displayName = "SaturationAndValuePicker_UI";
12919
12933
 
12920
12934
  // src/components/Combobox/Combobox.tsx
12921
- var Ariakit = __toESM(require("@ariakit/react"));
12935
+ var Ariakit = __toESM(require("@ariakit/react"), 1);
12922
12936
  var import_react54 = require("react");
12923
12937
  var import_match_sorter = require("match-sorter");
12924
12938
  var import_styled_components71 = require("styled-components");