@wistia/ui 0.21.2-beta.aac731c8.81d0fc3 → 0.21.2-beta.d6f13bc7.7286c8a
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.d.ts +1 -7
- package/dist/index.js +7 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4117,12 +4117,6 @@ type SliderProps = Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> & {
|
|
|
4117
4117
|
* Callback called on value change
|
|
4118
4118
|
*/
|
|
4119
4119
|
onChange?: (value: number[]) => void;
|
|
4120
|
-
/**
|
|
4121
|
-
* Callback called when the user finishes interacting with the slider
|
|
4122
|
-
* (e.g. on mouseup, touchend, or keyup). Useful for analytics or
|
|
4123
|
-
* expensive operations where only the final value matters.
|
|
4124
|
-
*/
|
|
4125
|
-
onValueCommit?: (value: number[]) => void;
|
|
4126
4120
|
/**
|
|
4127
4121
|
* Value to be added or subtracted on each step
|
|
4128
4122
|
*/
|
|
@@ -4134,7 +4128,7 @@ type SliderProps = Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> & {
|
|
|
4134
4128
|
value?: number[];
|
|
4135
4129
|
};
|
|
4136
4130
|
declare const Slider: {
|
|
4137
|
-
({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, disabled, initialValue, max, min, onChange,
|
|
4131
|
+
({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, disabled, initialValue, max, min, onChange, step, value, "data-testid": dataTestId, ...otherProps }: SliderProps): JSX.Element;
|
|
4138
4132
|
displayName: string;
|
|
4139
4133
|
};
|
|
4140
4134
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.21.2-beta.
|
|
3
|
+
* @license @wistia/ui v0.21.2-beta.d6f13bc7.7286c8a
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2026, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -16411,11 +16411,11 @@ var ListComponent = styled78.ul`
|
|
|
16411
16411
|
list-style-position: outside;
|
|
16412
16412
|
margin: 0 0 var(--wui-space-01);
|
|
16413
16413
|
padding: 0 0 0 var(--wui-space-04);
|
|
16414
|
-
${({ variant }) => variant === "unbulleted" && unbulletedStyle};
|
|
16415
|
-
${({ variant }) => variant === "spaces" && spacesStyle};
|
|
16416
|
-
${({ variant }) => variant === "commas" && commasStyle};
|
|
16417
|
-
${({ variant }) => variant === "slashes" && slashesStyle};
|
|
16418
|
-
${({ variant }) => variant === "breadcrumbs" && breadcrumbsStyle};
|
|
16414
|
+
${({ $variant }) => $variant === "unbulleted" && unbulletedStyle};
|
|
16415
|
+
${({ $variant }) => $variant === "spaces" && spacesStyle};
|
|
16416
|
+
${({ $variant }) => $variant === "commas" && commasStyle};
|
|
16417
|
+
${({ $variant }) => $variant === "slashes" && slashesStyle};
|
|
16418
|
+
${({ $variant }) => $variant === "breadcrumbs" && breadcrumbsStyle};
|
|
16419
16419
|
|
|
16420
16420
|
> li:last-child {
|
|
16421
16421
|
margin-bottom: 0;
|
|
@@ -16438,7 +16438,7 @@ var renderListComponent = (listItems, variant, { ...otherProps }) => {
|
|
|
16438
16438
|
ListComponent,
|
|
16439
16439
|
{
|
|
16440
16440
|
as: elementType,
|
|
16441
|
-
variant,
|
|
16441
|
+
$variant: variant,
|
|
16442
16442
|
...otherProps,
|
|
16443
16443
|
children: listItems
|
|
16444
16444
|
}
|
|
@@ -18683,7 +18683,6 @@ var Slider = ({
|
|
|
18683
18683
|
max = 100,
|
|
18684
18684
|
min = 0,
|
|
18685
18685
|
onChange,
|
|
18686
|
-
onValueCommit,
|
|
18687
18686
|
step = 1,
|
|
18688
18687
|
value,
|
|
18689
18688
|
"data-testid": dataTestId = "ui-slider",
|
|
@@ -18716,7 +18715,6 @@ var Slider = ({
|
|
|
18716
18715
|
min,
|
|
18717
18716
|
onValueChange: handleValueChange,
|
|
18718
18717
|
step,
|
|
18719
|
-
...onValueCommit ? { onValueCommit } : {},
|
|
18720
18718
|
...value ? { value } : {},
|
|
18721
18719
|
children: [
|
|
18722
18720
|
/* @__PURE__ */ jsx342(StyledSliderTrack, { "data-testid": `${dataTestId}-track`, children: /* @__PURE__ */ jsx342(StyledSliderRange, { "data-testid": `${dataTestId}-range` }) }),
|