@wistia/ui 0.19.1-beta.b5f9943f.e933a21 → 0.19.1
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 +14 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +0 -15
- package/dist/index.d.ts +0 -15
- package/dist/index.mjs +14 -36
- 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.19.1
|
|
3
|
+
* @license @wistia/ui v0.19.1
|
|
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-
|
|
3549
|
-
--button-color-bg-active: var(--wui-color-bg-surface-
|
|
3548
|
+
--button-color-bg-hover: var(--wui-color-bg-surface-hover);
|
|
3549
|
+
--button-color-bg-active: var(--wui-color-bg-surface-active);
|
|
3550
3550
|
--button-color-text: var(--wui-color-text-button);
|
|
3551
3551
|
--button-color-icon: var(--wui-color-icon);
|
|
3552
3552
|
`;
|
|
@@ -3586,24 +3586,6 @@ var pressedButtonVariant = import_styled_components19.css`
|
|
|
3586
3586
|
--button-color-icon: var(--wui-color-icon-selected);
|
|
3587
3587
|
--button-color-border: var(--wui-color-border-selected);
|
|
3588
3588
|
`;
|
|
3589
|
-
var buttonFocusStyles = import_styled_components19.css`
|
|
3590
|
-
&:focus {
|
|
3591
|
-
outline: none;
|
|
3592
|
-
}
|
|
3593
|
-
|
|
3594
|
-
&:focus-visible,
|
|
3595
|
-
&.force-state-focus {
|
|
3596
|
-
--wui-button-focus-color: var(--wui-color-focus-ring);
|
|
3597
|
-
|
|
3598
|
-
box-shadow:
|
|
3599
|
-
inset 0 0 0 2px var(--wui-button-focus-color),
|
|
3600
|
-
inset 0 0 0 3px var(--wui-color-bg-app);
|
|
3601
|
-
|
|
3602
|
-
&[aria-disabled='true'] {
|
|
3603
|
-
--wui-button-focus-color: var(--wui-color-focus-ring-disabled);
|
|
3604
|
-
}
|
|
3605
|
-
}
|
|
3606
|
-
`;
|
|
3607
3589
|
var buttonBaseStyles = import_styled_components19.css`
|
|
3608
3590
|
border-radius: var(--wui-border-radius-rounded);
|
|
3609
3591
|
font-family: var(--button-typography-family);
|
|
@@ -3641,14 +3623,12 @@ var buttonBaseStyles = import_styled_components19.css`
|
|
|
3641
3623
|
|
|
3642
3624
|
&:focus-visible,
|
|
3643
3625
|
&.force-state-focus {
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
inset 0 0 0 2px var(--wui-button-focus-color),
|
|
3648
|
-
inset 0 0 0 3px var(--wui-color-bg-app);
|
|
3626
|
+
outline: 2px solid var(--wui-color-focus-ring);
|
|
3627
|
+
outline-offset: 2px;
|
|
3628
|
+
background: var(--button-color-bg-hover);
|
|
3649
3629
|
|
|
3650
3630
|
&[aria-disabled='true'] {
|
|
3651
|
-
|
|
3631
|
+
outline-color: var(--wui-color-border-disabled);
|
|
3652
3632
|
}
|
|
3653
3633
|
}
|
|
3654
3634
|
|
|
@@ -8282,20 +8262,22 @@ var StyledActionButton = (0, import_styled_components24.styled)(Button)`
|
|
|
8282
8262
|
}
|
|
8283
8263
|
|
|
8284
8264
|
&:hover,
|
|
8285
|
-
&:focus-visible
|
|
8286
|
-
&.force-state-hover,
|
|
8287
|
-
&.force-state-focus {
|
|
8265
|
+
&:focus-visible {
|
|
8288
8266
|
--wui-color-text: var(--wui-color-text-button);
|
|
8289
8267
|
|
|
8290
8268
|
${({ $hoverColorScheme }) => getColorScheme($hoverColorScheme)};
|
|
8291
8269
|
background: var(--wui-color-bg-surface-tertiary);
|
|
8292
8270
|
}
|
|
8293
8271
|
|
|
8294
|
-
|
|
8272
|
+
&:focus-visible {
|
|
8273
|
+
outline: 2px solid var(--wui-color-focus-ring);
|
|
8274
|
+
outline-offset: 2px;
|
|
8275
|
+
}
|
|
8295
8276
|
|
|
8296
8277
|
&[aria-disabled='true'] {
|
|
8297
8278
|
background: var(--wui-color-bg-surface-disabled);
|
|
8298
8279
|
color: var(--wui-color-text-disabled);
|
|
8280
|
+
outline-color: var(--wui-color-focus-ring-disabled);
|
|
8299
8281
|
cursor: not-allowed;
|
|
8300
8282
|
|
|
8301
8283
|
&& {
|
|
@@ -8333,9 +8315,7 @@ var StyledSecondaryIcon = import_styled_components24.styled.div`
|
|
|
8333
8315
|
opacity: 0;
|
|
8334
8316
|
transform: translateX(-16px);
|
|
8335
8317
|
${StyledActionButton}:hover:not([aria-disabled="true"]) &,
|
|
8336
|
-
|
|
8337
|
-
${StyledActionButton}.force-state-hover:not([aria-disabled="true"]) &,
|
|
8338
|
-
${StyledActionButton}.force-state-focus:not([aria-disabled="true"]) & {
|
|
8318
|
+
${StyledActionButton}:focus-visible:not([aria-disabled="true"]) & {
|
|
8339
8319
|
transform: translateX(0);
|
|
8340
8320
|
opacity: 1;
|
|
8341
8321
|
}
|
|
@@ -8364,7 +8344,6 @@ var ActionButton = (0, import_react24.forwardRef)(
|
|
|
8364
8344
|
icon,
|
|
8365
8345
|
colorScheme = "standard",
|
|
8366
8346
|
disabled = false,
|
|
8367
|
-
forceState,
|
|
8368
8347
|
hoverColorScheme,
|
|
8369
8348
|
variant = "default",
|
|
8370
8349
|
children,
|
|
@@ -8385,7 +8364,6 @@ var ActionButton = (0, import_react24.forwardRef)(
|
|
|
8385
8364
|
$colorScheme: colorScheme,
|
|
8386
8365
|
$hoverColorScheme: resolvedHoverColorScheme,
|
|
8387
8366
|
disabled,
|
|
8388
|
-
forceState,
|
|
8389
8367
|
unstyled: true,
|
|
8390
8368
|
children: [
|
|
8391
8369
|
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(StyledMainIcon, { children: icon }),
|