@wistia/ui 0.10.9 → 0.10.10-beta.2369e96e.0f9bc32
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 +29 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +29 -28
- 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.10.
|
|
3
|
+
* @license @wistia/ui v0.10.10-beta.2369e96e.0f9bc32
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -7468,7 +7468,7 @@ var StyledActionButton = (0, import_styled_components22.default)(Button)`
|
|
|
7468
7468
|
}
|
|
7469
7469
|
|
|
7470
7470
|
&:hover,
|
|
7471
|
-
|
|
7471
|
+
&:focus-visible {
|
|
7472
7472
|
--wui-color-text: var(--wui-color-text-button);
|
|
7473
7473
|
|
|
7474
7474
|
${({ $hoverColorScheme }) => getColorScheme($hoverColorScheme)};
|
|
@@ -7976,24 +7976,25 @@ var getFlexStyle = (flexMode) => {
|
|
|
7976
7976
|
}
|
|
7977
7977
|
};
|
|
7978
7978
|
var StyledBoxComponent = import_styled_components27.default.div`
|
|
7979
|
+
/* properties meant for Box parent (flex container) */
|
|
7979
7980
|
align-content: ${({ $alignContent }) => $alignContent};
|
|
7980
7981
|
align-items: ${({ $alignItems }) => $alignItems};
|
|
7981
|
-
align-self: ${({ $alignSelf }) => $alignSelf ?? null};
|
|
7982
7982
|
display: ${({ $inline }) => (0, import_type_guards20.isNotNil)($inline) && $inline ? "inline-flex" : "flex"};
|
|
7983
|
-
flex-basis: ${({ $basis }) => (0, import_type_guards20.isNotNil)($basis) ? $basis : null};
|
|
7984
7983
|
flex-direction: ${({ $flexDirection }) => $flexDirection};
|
|
7984
|
+
flex-wrap: ${({ $wrapItems }) => $wrapItems ? "wrap" : "nowrap"};
|
|
7985
|
+
justify-content: ${({ $justifyContent }) => $justifyContent};
|
|
7986
|
+
height: ${({ $height }) => $height ?? null};
|
|
7987
|
+
width: ${({ $width }) => $width ?? null};
|
|
7985
7988
|
${({ $fillBox: fill }) => getFillStyle2(fill)};
|
|
7986
7989
|
${({ $fillViewport }) => getFillViewportStyle($fillViewport)};
|
|
7987
7990
|
${({ $flexMode }) => getFlexStyle($flexMode)};
|
|
7988
7991
|
${({ $gap }) => getGapStyle($gap)};
|
|
7989
|
-
height: ${({ $height }) => $height ?? null};
|
|
7990
|
-
width: ${({ $width }) => $width ?? null};
|
|
7991
7992
|
|
|
7992
|
-
/* Box children
|
|
7993
|
+
/* properties meant for Box children (flex items) */
|
|
7994
|
+
align-self: ${({ $alignSelf }) => $alignSelf ?? null};
|
|
7995
|
+
flex-basis: ${({ $basis }) => (0, import_type_guards20.isNotNil)($basis) ? $basis : null};
|
|
7993
7996
|
flex-grow: ${({ $grow }) => (0, import_type_guards20.isNotNil)($grow) ? $grow : null};
|
|
7994
7997
|
flex-shrink: ${({ $shrink }) => (0, import_type_guards20.isNotNil)($shrink) ? $shrink : null};
|
|
7995
|
-
flex-wrap: ${({ $wrapItems }) => $wrapItems ? "wrap" : "nowrap"};
|
|
7996
|
-
justify-content: ${({ $justifyContent }) => $justifyContent};
|
|
7997
7998
|
order: ${({ $order }) => (0, import_type_guards20.isNotNil)($order) ? $order : null};
|
|
7998
7999
|
`;
|
|
7999
8000
|
var DEFAULT_ELEMENT = "div";
|
|
@@ -8196,7 +8197,7 @@ var HeadingComponent = (0, import_react28.forwardRef)(
|
|
|
8196
8197
|
$preventUserSelect: preventUserSelect,
|
|
8197
8198
|
$truncate: truncate,
|
|
8198
8199
|
$variant: variant,
|
|
8199
|
-
as: renderAs ?? variantElementMap[variant],
|
|
8200
|
+
as: renderAs ?? variantElementMap[variant] ?? DEFAULT_ELEMENT2,
|
|
8200
8201
|
...props
|
|
8201
8202
|
}
|
|
8202
8203
|
)
|
|
@@ -8405,7 +8406,7 @@ var TextComponent = (0, import_react29.forwardRef)(
|
|
|
8405
8406
|
$prominence: prominence,
|
|
8406
8407
|
$truncate: truncate,
|
|
8407
8408
|
$variant: variant,
|
|
8408
|
-
as: renderAs ?? variantElementMap2[variant],
|
|
8409
|
+
as: renderAs ?? variantElementMap2[variant] ?? DEFAULT_ELEMENT3,
|
|
8409
8410
|
...props
|
|
8410
8411
|
}
|
|
8411
8412
|
);
|
|
@@ -9431,22 +9432,22 @@ var TagLabel = import_styled_components46.default.a`
|
|
|
9431
9432
|
width: 12px;
|
|
9432
9433
|
}
|
|
9433
9434
|
|
|
9434
|
-
|
|
9435
|
+
&:focus-visible {
|
|
9436
|
+
outline: unset;
|
|
9437
|
+
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
9438
|
+
}
|
|
9439
|
+
|
|
9440
|
+
&:not(:only-child) {
|
|
9435
9441
|
padding-right: var(--wui-space-01);
|
|
9436
9442
|
}
|
|
9437
9443
|
|
|
9438
|
-
|
|
9444
|
+
&:is(a):hover {
|
|
9439
9445
|
background: var(--wui-color-bg-surface-secondary-hover);
|
|
9440
9446
|
}
|
|
9441
9447
|
|
|
9442
|
-
|
|
9448
|
+
&:is(a):active {
|
|
9443
9449
|
background: var(--wui-color-bg-surface-secondary-active);
|
|
9444
9450
|
}
|
|
9445
|
-
|
|
9446
|
-
:focus-visible {
|
|
9447
|
-
outline: unset;
|
|
9448
|
-
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
9449
|
-
}
|
|
9450
9451
|
`;
|
|
9451
9452
|
var TagDivider = import_styled_components46.default.div`
|
|
9452
9453
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
@@ -9470,15 +9471,15 @@ var StyledRemoveButton = import_styled_components46.default.button`
|
|
|
9470
9471
|
fill: var(--wui-color-icon);
|
|
9471
9472
|
}
|
|
9472
9473
|
|
|
9473
|
-
|
|
9474
|
+
&:hover {
|
|
9474
9475
|
background: var(--wui-color-bg-surface-secondary-hover);
|
|
9475
9476
|
}
|
|
9476
9477
|
|
|
9477
|
-
|
|
9478
|
+
&:active {
|
|
9478
9479
|
background: var(--wui-color-bg-surface-secondary-active);
|
|
9479
9480
|
}
|
|
9480
9481
|
|
|
9481
|
-
|
|
9482
|
+
&:focus-visible {
|
|
9482
9483
|
outline: unset;
|
|
9483
9484
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
9484
9485
|
}
|
|
@@ -10362,8 +10363,8 @@ var StyledInputContainer = import_styled_components54.default.div`
|
|
|
10362
10363
|
transform: translateY(-50%);
|
|
10363
10364
|
}
|
|
10364
10365
|
|
|
10365
|
-
|
|
10366
|
-
|
|
10366
|
+
&:has(.wui-input-left-icon) input,
|
|
10367
|
+
&:has(.wui-input-left-icon) textarea {
|
|
10367
10368
|
padding-left: 32px;
|
|
10368
10369
|
}
|
|
10369
10370
|
|
|
@@ -10376,8 +10377,8 @@ var StyledInputContainer = import_styled_components54.default.div`
|
|
|
10376
10377
|
transform: translateY(-50%);
|
|
10377
10378
|
}
|
|
10378
10379
|
|
|
10379
|
-
|
|
10380
|
-
|
|
10380
|
+
&:has(.wui-input-right-icon) input,
|
|
10381
|
+
&:has(.wui-input-right-icon) textarea {
|
|
10381
10382
|
padding-right: 32px;
|
|
10382
10383
|
}
|
|
10383
10384
|
`;
|
|
@@ -10591,7 +10592,6 @@ var StyledForm = import_styled_components56.default.form`
|
|
|
10591
10592
|
--form-default-width: 690px;
|
|
10592
10593
|
|
|
10593
10594
|
max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
|
|
10594
|
-
align-items: ${({ $fullWidth }) => $fullWidth ? "stretch" : "flex-start"};
|
|
10595
10595
|
`;
|
|
10596
10596
|
var FormContext = (0, import_react45.createContext)({
|
|
10597
10597
|
values: {},
|
|
@@ -10672,6 +10672,7 @@ var FormComponent = ({
|
|
|
10672
10672
|
...props,
|
|
10673
10673
|
ref,
|
|
10674
10674
|
$fullWidth: fullWidth,
|
|
10675
|
+
alignItems: fullWidth ? "stretch" : "flex-start",
|
|
10675
10676
|
as: StyledForm,
|
|
10676
10677
|
gap: "space-05",
|
|
10677
10678
|
id,
|
|
@@ -11533,7 +11534,7 @@ var StyledButton3 = (0, import_styled_components65.default)(Button)`
|
|
|
11533
11534
|
line-height: var(--menu-label-line-height);
|
|
11534
11535
|
transition: background-color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
11535
11536
|
|
|
11536
|
-
|
|
11537
|
+
&:active {
|
|
11537
11538
|
background-color: var(--wui-color-bg-surface-active);
|
|
11538
11539
|
}
|
|
11539
11540
|
|