@wistia/ui 0.15.2 → 0.15.3-beta.558b0844.88edfec
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 +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -3504,12 +3504,18 @@ declare const ScreenReaderOnly: {
|
|
|
3504
3504
|
displayName: string;
|
|
3505
3505
|
};
|
|
3506
3506
|
|
|
3507
|
-
type ScrollAreaProps = HTMLAttributes<HTMLDivElement>;
|
|
3508
3507
|
/**
|
|
3509
3508
|
* ScrollArea is a simple scrollable container with shadow effects to indicate
|
|
3510
3509
|
* scrollability.
|
|
3511
3510
|
*/
|
|
3512
|
-
declare const ScrollArea: react.ForwardRefExoticComponent<
|
|
3511
|
+
declare const ScrollArea: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
3512
|
+
/**
|
|
3513
|
+
* When true, disables scrolling. Useful to temporarily prevent scrolling,
|
|
3514
|
+
* like when drag-and-dropping an item from inside to outside of the scroll
|
|
3515
|
+
* area.
|
|
3516
|
+
*/
|
|
3517
|
+
locked?: boolean;
|
|
3518
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
3513
3519
|
|
|
3514
3520
|
type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'> & {
|
|
3515
3521
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -3504,12 +3504,18 @@ declare const ScreenReaderOnly: {
|
|
|
3504
3504
|
displayName: string;
|
|
3505
3505
|
};
|
|
3506
3506
|
|
|
3507
|
-
type ScrollAreaProps = HTMLAttributes<HTMLDivElement>;
|
|
3508
3507
|
/**
|
|
3509
3508
|
* ScrollArea is a simple scrollable container with shadow effects to indicate
|
|
3510
3509
|
* scrollability.
|
|
3511
3510
|
*/
|
|
3512
|
-
declare const ScrollArea: react.ForwardRefExoticComponent<
|
|
3511
|
+
declare const ScrollArea: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
3512
|
+
/**
|
|
3513
|
+
* When true, disables scrolling. Useful to temporarily prevent scrolling,
|
|
3514
|
+
* like when drag-and-dropping an item from inside to outside of the scroll
|
|
3515
|
+
* area.
|
|
3516
|
+
*/
|
|
3517
|
+
locked?: boolean;
|
|
3518
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
3513
3519
|
|
|
3514
3520
|
type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'> & {
|
|
3515
3521
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.15.
|
|
3
|
+
* @license @wistia/ui v0.15.3-beta.558b0844.88edfec
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9600,12 +9600,12 @@ var Form = forwardRef11(
|
|
|
9600
9600
|
ref,
|
|
9601
9601
|
$fullWidth: fullWidth,
|
|
9602
9602
|
alignItems: fullWidth ? "stretch" : "flex-start",
|
|
9603
|
-
as: StyledForm,
|
|
9604
9603
|
gap: "space-05",
|
|
9605
9604
|
id,
|
|
9606
9605
|
onBlur: handleBlur2,
|
|
9607
9606
|
onReset: handleReset,
|
|
9608
9607
|
onSubmit: handleSubmit,
|
|
9608
|
+
renderAs: StyledForm,
|
|
9609
9609
|
children
|
|
9610
9610
|
}
|
|
9611
9611
|
) })
|
|
@@ -16348,7 +16348,7 @@ var Container10 = styled87.div`
|
|
|
16348
16348
|
flex: 1 1 auto;
|
|
16349
16349
|
`;
|
|
16350
16350
|
var ScrollContainer = styled87.div`
|
|
16351
|
-
overflow: auto;
|
|
16351
|
+
overflow: ${({ $locked }) => $locked ? "hidden" : "auto"};
|
|
16352
16352
|
height: 100%;
|
|
16353
16353
|
width: 100%;
|
|
16354
16354
|
`;
|
|
@@ -16388,7 +16388,7 @@ var ShadowAtRight = styled87(Shadow)`
|
|
|
16388
16388
|
width: 0;
|
|
16389
16389
|
`;
|
|
16390
16390
|
var ScrollArea = forwardRef31(
|
|
16391
|
-
({ children, onScroll, style, ...props }, forwardedRef) => {
|
|
16391
|
+
({ children, onScroll, style, locked = false, ...props }, forwardedRef) => {
|
|
16392
16392
|
const scrollContainerRefInternal = useRef21(null);
|
|
16393
16393
|
const [shadowState, setShadowState] = useState23({
|
|
16394
16394
|
canScrollUp: false,
|
|
@@ -16429,6 +16429,7 @@ var ScrollArea = forwardRef31(
|
|
|
16429
16429
|
ScrollContainer,
|
|
16430
16430
|
{
|
|
16431
16431
|
ref: scrollContainerRef,
|
|
16432
|
+
$locked: locked,
|
|
16432
16433
|
onScroll: onScrollScrollContainer,
|
|
16433
16434
|
...props,
|
|
16434
16435
|
children
|