@wistia/ui 0.10.11 → 0.10.12
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 +11 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +16 -17
- package/dist/index.d.ts +16 -17
- package/dist/index.mjs +11 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
package/dist/index.d.mts
CHANGED
|
@@ -7,7 +7,6 @@ import * as react_router from 'react-router';
|
|
|
7
7
|
import { LinkProps as LinkProps$1 } from 'react-router-dom';
|
|
8
8
|
import { CollapsibleContentProps as CollapsibleContentProps$1 } from '@radix-ui/react-collapsible';
|
|
9
9
|
import * as styled_components from 'styled-components';
|
|
10
|
-
import { FlattenSimpleInterpolation } from 'styled-components';
|
|
11
10
|
import { DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
|
|
12
11
|
import { PopoverContentProps } from '@radix-ui/react-popover';
|
|
13
12
|
import { ToggleGroupSingleProps } from '@radix-ui/react-toggle-group';
|
|
@@ -3281,22 +3280,22 @@ declare const ThumbnailBadge: {
|
|
|
3281
3280
|
};
|
|
3282
3281
|
|
|
3283
3282
|
declare const gradients: {
|
|
3284
|
-
defaultDarkOne: FlattenSimpleInterpolation;
|
|
3285
|
-
defaultDarkTwo: FlattenSimpleInterpolation;
|
|
3286
|
-
defaultLightOne: FlattenSimpleInterpolation;
|
|
3287
|
-
defaultLightTwo: FlattenSimpleInterpolation;
|
|
3288
|
-
defaultMidOne: FlattenSimpleInterpolation;
|
|
3289
|
-
defaultMidTwo: FlattenSimpleInterpolation;
|
|
3290
|
-
green: FlattenSimpleInterpolation;
|
|
3291
|
-
greenWithPop: FlattenSimpleInterpolation;
|
|
3292
|
-
pink: FlattenSimpleInterpolation;
|
|
3293
|
-
pinkWithPop: FlattenSimpleInterpolation;
|
|
3294
|
-
playfulGradientOne: FlattenSimpleInterpolation;
|
|
3295
|
-
playfulGradientTwo: FlattenSimpleInterpolation;
|
|
3296
|
-
purple: FlattenSimpleInterpolation;
|
|
3297
|
-
purpleWithPop: FlattenSimpleInterpolation;
|
|
3298
|
-
yellow: FlattenSimpleInterpolation;
|
|
3299
|
-
yellowWithPop: FlattenSimpleInterpolation;
|
|
3283
|
+
defaultDarkOne: styled_components.FlattenSimpleInterpolation;
|
|
3284
|
+
defaultDarkTwo: styled_components.FlattenSimpleInterpolation;
|
|
3285
|
+
defaultLightOne: styled_components.FlattenSimpleInterpolation;
|
|
3286
|
+
defaultLightTwo: styled_components.FlattenSimpleInterpolation;
|
|
3287
|
+
defaultMidOne: styled_components.FlattenSimpleInterpolation;
|
|
3288
|
+
defaultMidTwo: styled_components.FlattenSimpleInterpolation;
|
|
3289
|
+
green: styled_components.FlattenSimpleInterpolation;
|
|
3290
|
+
greenWithPop: styled_components.FlattenSimpleInterpolation;
|
|
3291
|
+
pink: styled_components.FlattenSimpleInterpolation;
|
|
3292
|
+
pinkWithPop: styled_components.FlattenSimpleInterpolation;
|
|
3293
|
+
playfulGradientOne: styled_components.FlattenSimpleInterpolation;
|
|
3294
|
+
playfulGradientTwo: styled_components.FlattenSimpleInterpolation;
|
|
3295
|
+
purple: styled_components.FlattenSimpleInterpolation;
|
|
3296
|
+
purpleWithPop: styled_components.FlattenSimpleInterpolation;
|
|
3297
|
+
yellow: styled_components.FlattenSimpleInterpolation;
|
|
3298
|
+
yellowWithPop: styled_components.FlattenSimpleInterpolation;
|
|
3300
3299
|
};
|
|
3301
3300
|
type GradientNameType = keyof typeof gradients;
|
|
3302
3301
|
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import * as react_router from 'react-router';
|
|
|
7
7
|
import { LinkProps as LinkProps$1 } from 'react-router-dom';
|
|
8
8
|
import { CollapsibleContentProps as CollapsibleContentProps$1 } from '@radix-ui/react-collapsible';
|
|
9
9
|
import * as styled_components from 'styled-components';
|
|
10
|
-
import { FlattenSimpleInterpolation } from 'styled-components';
|
|
11
10
|
import { DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
|
|
12
11
|
import { PopoverContentProps } from '@radix-ui/react-popover';
|
|
13
12
|
import { ToggleGroupSingleProps } from '@radix-ui/react-toggle-group';
|
|
@@ -3281,22 +3280,22 @@ declare const ThumbnailBadge: {
|
|
|
3281
3280
|
};
|
|
3282
3281
|
|
|
3283
3282
|
declare const gradients: {
|
|
3284
|
-
defaultDarkOne: FlattenSimpleInterpolation;
|
|
3285
|
-
defaultDarkTwo: FlattenSimpleInterpolation;
|
|
3286
|
-
defaultLightOne: FlattenSimpleInterpolation;
|
|
3287
|
-
defaultLightTwo: FlattenSimpleInterpolation;
|
|
3288
|
-
defaultMidOne: FlattenSimpleInterpolation;
|
|
3289
|
-
defaultMidTwo: FlattenSimpleInterpolation;
|
|
3290
|
-
green: FlattenSimpleInterpolation;
|
|
3291
|
-
greenWithPop: FlattenSimpleInterpolation;
|
|
3292
|
-
pink: FlattenSimpleInterpolation;
|
|
3293
|
-
pinkWithPop: FlattenSimpleInterpolation;
|
|
3294
|
-
playfulGradientOne: FlattenSimpleInterpolation;
|
|
3295
|
-
playfulGradientTwo: FlattenSimpleInterpolation;
|
|
3296
|
-
purple: FlattenSimpleInterpolation;
|
|
3297
|
-
purpleWithPop: FlattenSimpleInterpolation;
|
|
3298
|
-
yellow: FlattenSimpleInterpolation;
|
|
3299
|
-
yellowWithPop: FlattenSimpleInterpolation;
|
|
3283
|
+
defaultDarkOne: styled_components.FlattenSimpleInterpolation;
|
|
3284
|
+
defaultDarkTwo: styled_components.FlattenSimpleInterpolation;
|
|
3285
|
+
defaultLightOne: styled_components.FlattenSimpleInterpolation;
|
|
3286
|
+
defaultLightTwo: styled_components.FlattenSimpleInterpolation;
|
|
3287
|
+
defaultMidOne: styled_components.FlattenSimpleInterpolation;
|
|
3288
|
+
defaultMidTwo: styled_components.FlattenSimpleInterpolation;
|
|
3289
|
+
green: styled_components.FlattenSimpleInterpolation;
|
|
3290
|
+
greenWithPop: styled_components.FlattenSimpleInterpolation;
|
|
3291
|
+
pink: styled_components.FlattenSimpleInterpolation;
|
|
3292
|
+
pinkWithPop: styled_components.FlattenSimpleInterpolation;
|
|
3293
|
+
playfulGradientOne: styled_components.FlattenSimpleInterpolation;
|
|
3294
|
+
playfulGradientTwo: styled_components.FlattenSimpleInterpolation;
|
|
3295
|
+
purple: styled_components.FlattenSimpleInterpolation;
|
|
3296
|
+
purpleWithPop: styled_components.FlattenSimpleInterpolation;
|
|
3297
|
+
yellow: styled_components.FlattenSimpleInterpolation;
|
|
3298
|
+
yellowWithPop: styled_components.FlattenSimpleInterpolation;
|
|
3300
3299
|
};
|
|
3301
3300
|
type GradientNameType = keyof typeof gradients;
|
|
3302
3301
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.10.
|
|
3
|
+
* @license @wistia/ui v0.10.12
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -7769,10 +7769,10 @@ var getGapStyle = (gap) => {
|
|
|
7769
7769
|
if (isNotNil10(gap)) {
|
|
7770
7770
|
if (isRecord3(gap)) {
|
|
7771
7771
|
return Object.entries(gap).map(([key, value]) => {
|
|
7772
|
-
return `${key}-gap: var(--wui-${value})
|
|
7772
|
+
return `${key}-gap: var(--wui-${value});`;
|
|
7773
7773
|
}).join("");
|
|
7774
7774
|
}
|
|
7775
|
-
return `gap: var(--wui-${gap.toString()})
|
|
7775
|
+
return `gap: var(--wui-${gap.toString()});`;
|
|
7776
7776
|
}
|
|
7777
7777
|
return void 0;
|
|
7778
7778
|
};
|
|
@@ -8913,7 +8913,7 @@ var StyledLegend = styled25.legend`
|
|
|
8913
8913
|
margin-bottom: var(--space-01);
|
|
8914
8914
|
`;
|
|
8915
8915
|
var FormGroup = ({ children, label, ...props }) => {
|
|
8916
|
-
const ref = useRef7();
|
|
8916
|
+
const ref = useRef7(null);
|
|
8917
8917
|
return /* @__PURE__ */ jsxs16(
|
|
8918
8918
|
Stack,
|
|
8919
8919
|
{
|
|
@@ -8981,7 +8981,7 @@ var FormComponent = ({
|
|
|
8981
8981
|
}, forwardedRef) => {
|
|
8982
8982
|
const [errors, setErrors] = useState11({});
|
|
8983
8983
|
const [hasSubmitted, setHasSubmitted] = useState11(false);
|
|
8984
|
-
const innerRef = useRef8();
|
|
8984
|
+
const innerRef = useRef8(null);
|
|
8985
8985
|
const ref = forwardedRef ?? innerRef;
|
|
8986
8986
|
const autoId = useId();
|
|
8987
8987
|
const id = props.id ?? autoId;
|
|
@@ -12685,13 +12685,15 @@ var segmentedControlItemStyles = css38`
|
|
|
12685
12685
|
outline: 2px solid var(--wui-color-focus-ring);
|
|
12686
12686
|
}
|
|
12687
12687
|
|
|
12688
|
-
|
|
12688
|
+
/* note: react-toggle-group uses 'aria-selected' and react-tabs uses "active" */
|
|
12689
|
+
|
|
12690
|
+
/* we can't style off of 'data-state' since that gets overridden when wrapped in a Tooltip */
|
|
12691
|
+
&:hover:not([aria-checked='true'], [aria-selected='true']) {
|
|
12689
12692
|
background-color: var(--wui-color-bg-surface-secondary-hover);
|
|
12690
12693
|
}
|
|
12691
12694
|
|
|
12692
|
-
|
|
12693
|
-
&[
|
|
12694
|
-
&[data-state='active'] {
|
|
12695
|
+
&[aria-checked='true'],
|
|
12696
|
+
&[aria-selected='true'] {
|
|
12695
12697
|
color: var(--wui-color-text-selected);
|
|
12696
12698
|
cursor: default;
|
|
12697
12699
|
transition: none;
|