@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.d.mts
CHANGED
|
@@ -471,11 +471,6 @@ type ActionButtonProps = {
|
|
|
471
471
|
* Disables the button
|
|
472
472
|
*/
|
|
473
473
|
disabled?: boolean;
|
|
474
|
-
/**
|
|
475
|
-
* @ignore
|
|
476
|
-
* Force a button into a particular css state (for debugging)
|
|
477
|
-
*/
|
|
478
|
-
forceState?: 'focus' | 'hover' | undefined;
|
|
479
474
|
/**
|
|
480
475
|
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `ActionButton` when hovered. By default, it will inherit the `colorScheme` prop.
|
|
481
476
|
*/
|
|
@@ -504,11 +499,6 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
504
499
|
* Disables the button
|
|
505
500
|
*/
|
|
506
501
|
disabled?: boolean;
|
|
507
|
-
/**
|
|
508
|
-
* @ignore
|
|
509
|
-
* Force a button into a particular css state (for debugging)
|
|
510
|
-
*/
|
|
511
|
-
forceState?: "focus" | "hover" | undefined;
|
|
512
502
|
/**
|
|
513
503
|
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `ActionButton` when hovered. By default, it will inherit the `colorScheme` prop.
|
|
514
504
|
*/
|
|
@@ -533,11 +523,6 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
533
523
|
* Disables the button
|
|
534
524
|
*/
|
|
535
525
|
disabled?: boolean;
|
|
536
|
-
/**
|
|
537
|
-
* @ignore
|
|
538
|
-
* Force a button into a particular css state (for debugging)
|
|
539
|
-
*/
|
|
540
|
-
forceState?: "focus" | "hover" | undefined;
|
|
541
526
|
/**
|
|
542
527
|
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `ActionButton` when hovered. By default, it will inherit the `colorScheme` prop.
|
|
543
528
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -471,11 +471,6 @@ type ActionButtonProps = {
|
|
|
471
471
|
* Disables the button
|
|
472
472
|
*/
|
|
473
473
|
disabled?: boolean;
|
|
474
|
-
/**
|
|
475
|
-
* @ignore
|
|
476
|
-
* Force a button into a particular css state (for debugging)
|
|
477
|
-
*/
|
|
478
|
-
forceState?: 'focus' | 'hover' | undefined;
|
|
479
474
|
/**
|
|
480
475
|
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `ActionButton` when hovered. By default, it will inherit the `colorScheme` prop.
|
|
481
476
|
*/
|
|
@@ -504,11 +499,6 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
504
499
|
* Disables the button
|
|
505
500
|
*/
|
|
506
501
|
disabled?: boolean;
|
|
507
|
-
/**
|
|
508
|
-
* @ignore
|
|
509
|
-
* Force a button into a particular css state (for debugging)
|
|
510
|
-
*/
|
|
511
|
-
forceState?: "focus" | "hover" | undefined;
|
|
512
502
|
/**
|
|
513
503
|
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `ActionButton` when hovered. By default, it will inherit the `colorScheme` prop.
|
|
514
504
|
*/
|
|
@@ -533,11 +523,6 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
533
523
|
* Disables the button
|
|
534
524
|
*/
|
|
535
525
|
disabled?: boolean;
|
|
536
|
-
/**
|
|
537
|
-
* @ignore
|
|
538
|
-
* Force a button into a particular css state (for debugging)
|
|
539
|
-
*/
|
|
540
|
-
forceState?: "focus" | "hover" | undefined;
|
|
541
526
|
/**
|
|
542
527
|
* Set the [color scheme](../?path=/docs/docs-color-schemes--docs) of the `ActionButton` when hovered. By default, it will inherit the `colorScheme` prop.
|
|
543
528
|
*/
|
package/dist/index.mjs
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
|
*
|
|
@@ -3363,8 +3363,8 @@ var buttonExtraLargeStyles = css17`
|
|
|
3363
3363
|
`;
|
|
3364
3364
|
var ghostButtonVariant = css17`
|
|
3365
3365
|
--button-color-bg-override: transparent;
|
|
3366
|
-
--button-color-bg-hover: var(--wui-color-bg-surface-
|
|
3367
|
-
--button-color-bg-active: var(--wui-color-bg-surface-
|
|
3366
|
+
--button-color-bg-hover: var(--wui-color-bg-surface-hover);
|
|
3367
|
+
--button-color-bg-active: var(--wui-color-bg-surface-active);
|
|
3368
3368
|
--button-color-text: var(--wui-color-text-button);
|
|
3369
3369
|
--button-color-icon: var(--wui-color-icon);
|
|
3370
3370
|
`;
|
|
@@ -3404,24 +3404,6 @@ var pressedButtonVariant = css17`
|
|
|
3404
3404
|
--button-color-icon: var(--wui-color-icon-selected);
|
|
3405
3405
|
--button-color-border: var(--wui-color-border-selected);
|
|
3406
3406
|
`;
|
|
3407
|
-
var buttonFocusStyles = css17`
|
|
3408
|
-
&:focus {
|
|
3409
|
-
outline: none;
|
|
3410
|
-
}
|
|
3411
|
-
|
|
3412
|
-
&:focus-visible,
|
|
3413
|
-
&.force-state-focus {
|
|
3414
|
-
--wui-button-focus-color: var(--wui-color-focus-ring);
|
|
3415
|
-
|
|
3416
|
-
box-shadow:
|
|
3417
|
-
inset 0 0 0 2px var(--wui-button-focus-color),
|
|
3418
|
-
inset 0 0 0 3px var(--wui-color-bg-app);
|
|
3419
|
-
|
|
3420
|
-
&[aria-disabled='true'] {
|
|
3421
|
-
--wui-button-focus-color: var(--wui-color-focus-ring-disabled);
|
|
3422
|
-
}
|
|
3423
|
-
}
|
|
3424
|
-
`;
|
|
3425
3407
|
var buttonBaseStyles = css17`
|
|
3426
3408
|
border-radius: var(--wui-border-radius-rounded);
|
|
3427
3409
|
font-family: var(--button-typography-family);
|
|
@@ -3459,14 +3441,12 @@ var buttonBaseStyles = css17`
|
|
|
3459
3441
|
|
|
3460
3442
|
&:focus-visible,
|
|
3461
3443
|
&.force-state-focus {
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
inset 0 0 0 2px var(--wui-button-focus-color),
|
|
3466
|
-
inset 0 0 0 3px var(--wui-color-bg-app);
|
|
3444
|
+
outline: 2px solid var(--wui-color-focus-ring);
|
|
3445
|
+
outline-offset: 2px;
|
|
3446
|
+
background: var(--button-color-bg-hover);
|
|
3467
3447
|
|
|
3468
3448
|
&[aria-disabled='true'] {
|
|
3469
|
-
|
|
3449
|
+
outline-color: var(--wui-color-border-disabled);
|
|
3470
3450
|
}
|
|
3471
3451
|
}
|
|
3472
3452
|
|
|
@@ -8100,20 +8080,22 @@ var StyledActionButton = styled7(Button)`
|
|
|
8100
8080
|
}
|
|
8101
8081
|
|
|
8102
8082
|
&:hover,
|
|
8103
|
-
&:focus-visible
|
|
8104
|
-
&.force-state-hover,
|
|
8105
|
-
&.force-state-focus {
|
|
8083
|
+
&:focus-visible {
|
|
8106
8084
|
--wui-color-text: var(--wui-color-text-button);
|
|
8107
8085
|
|
|
8108
8086
|
${({ $hoverColorScheme }) => getColorScheme($hoverColorScheme)};
|
|
8109
8087
|
background: var(--wui-color-bg-surface-tertiary);
|
|
8110
8088
|
}
|
|
8111
8089
|
|
|
8112
|
-
|
|
8090
|
+
&:focus-visible {
|
|
8091
|
+
outline: 2px solid var(--wui-color-focus-ring);
|
|
8092
|
+
outline-offset: 2px;
|
|
8093
|
+
}
|
|
8113
8094
|
|
|
8114
8095
|
&[aria-disabled='true'] {
|
|
8115
8096
|
background: var(--wui-color-bg-surface-disabled);
|
|
8116
8097
|
color: var(--wui-color-text-disabled);
|
|
8098
|
+
outline-color: var(--wui-color-focus-ring-disabled);
|
|
8117
8099
|
cursor: not-allowed;
|
|
8118
8100
|
|
|
8119
8101
|
&& {
|
|
@@ -8151,9 +8133,7 @@ var StyledSecondaryIcon = styled7.div`
|
|
|
8151
8133
|
opacity: 0;
|
|
8152
8134
|
transform: translateX(-16px);
|
|
8153
8135
|
${StyledActionButton}:hover:not([aria-disabled="true"]) &,
|
|
8154
|
-
|
|
8155
|
-
${StyledActionButton}.force-state-hover:not([aria-disabled="true"]) &,
|
|
8156
|
-
${StyledActionButton}.force-state-focus:not([aria-disabled="true"]) & {
|
|
8136
|
+
${StyledActionButton}:focus-visible:not([aria-disabled="true"]) & {
|
|
8157
8137
|
transform: translateX(0);
|
|
8158
8138
|
opacity: 1;
|
|
8159
8139
|
}
|
|
@@ -8182,7 +8162,6 @@ var ActionButton = forwardRef3(
|
|
|
8182
8162
|
icon,
|
|
8183
8163
|
colorScheme = "standard",
|
|
8184
8164
|
disabled = false,
|
|
8185
|
-
forceState,
|
|
8186
8165
|
hoverColorScheme,
|
|
8187
8166
|
variant = "default",
|
|
8188
8167
|
children,
|
|
@@ -8203,7 +8182,6 @@ var ActionButton = forwardRef3(
|
|
|
8203
8182
|
$colorScheme: colorScheme,
|
|
8204
8183
|
$hoverColorScheme: resolvedHoverColorScheme,
|
|
8205
8184
|
disabled,
|
|
8206
|
-
forceState,
|
|
8207
8185
|
unstyled: true,
|
|
8208
8186
|
children: [
|
|
8209
8187
|
/* @__PURE__ */ jsx210(StyledMainIcon, { children: icon }),
|