@wistia/ui 0.23.0-beta.3f5d16e2.7eba552 → 0.23.0-beta.dfc52bdb.2a20da9
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 +5 -5
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -618,7 +618,7 @@ declare const ActionButton: _$react.ForwardRefExoticComponent<(Omit<{
|
|
|
618
618
|
* Changes the secondary icon for different use cases
|
|
619
619
|
*/
|
|
620
620
|
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
621
|
-
} & Omit<ButtonAsButtonProps, "
|
|
621
|
+
} & Omit<ButtonAsButtonProps, "variant" | "size" | "fullWidth" | "leftIcon" | "rightIcon" | "isLoading" | "unstyled">, "ref"> | Omit<{
|
|
622
622
|
/**
|
|
623
623
|
* @override
|
|
624
624
|
* The text to display for the ActionButton
|
|
@@ -647,7 +647,7 @@ declare const ActionButton: _$react.ForwardRefExoticComponent<(Omit<{
|
|
|
647
647
|
* Changes the secondary icon for different use cases
|
|
648
648
|
*/
|
|
649
649
|
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
650
|
-
} & Omit<ButtonAsLinkProps, "
|
|
650
|
+
} & Omit<ButtonAsLinkProps, "variant" | "size" | "fullWidth" | "leftIcon" | "rightIcon" | "isLoading" | "unstyled">, "ref">) & _$react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
651
651
|
//#endregion
|
|
652
652
|
//#region src/components/Avatar/Avatar.d.ts
|
|
653
653
|
type AvatarInstanceType = 'image' | 'initials';
|
|
@@ -1233,7 +1233,7 @@ declare const Center: _$react.ForwardRefExoticComponent<Omit<_$react.DetailedHTM
|
|
|
1233
1233
|
//#endregion
|
|
1234
1234
|
//#region src/components/Checkbox/Checkbox.d.ts
|
|
1235
1235
|
type CheckboxSizeType = 'lg' | 'md' | 'sm';
|
|
1236
|
-
declare const Checkbox: _$react.ForwardRefExoticComponent<Omit<Omit<_$react.DetailedHTMLProps<_$react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "
|
|
1236
|
+
declare const Checkbox: _$react.ForwardRefExoticComponent<Omit<Omit<_$react.DetailedHTMLProps<_$react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "label" | "onChange" | "size" | "hideLabel"> & {
|
|
1237
1237
|
/**
|
|
1238
1238
|
* Indicates the state of the checkbox
|
|
1239
1239
|
*/
|
|
@@ -3322,7 +3322,7 @@ type InputClickToCopyProps = Omit<InputProps, 'autoSelect' | 'disabled' | 'right
|
|
|
3322
3322
|
/**
|
|
3323
3323
|
* Provides a readonly input that copies the text to the clipboard when clicked.
|
|
3324
3324
|
*/
|
|
3325
|
-
declare const InputClickToCopy: _$react.ForwardRefExoticComponent<Omit<InputProps, "type" | "
|
|
3325
|
+
declare const InputClickToCopy: _$react.ForwardRefExoticComponent<Omit<InputProps, "type" | "disabled" | "value" | "autoSelect" | "rightIcon"> & {
|
|
3326
3326
|
/**
|
|
3327
3327
|
* When disabled, the copy action will not be triggered
|
|
3328
3328
|
*/
|
|
@@ -4373,7 +4373,7 @@ type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'hideLabel' | 'label'
|
|
|
4373
4373
|
*/
|
|
4374
4374
|
hideLabel?: boolean;
|
|
4375
4375
|
};
|
|
4376
|
-
declare const Radio: _$react.ForwardRefExoticComponent<Omit<Omit<_$react.DetailedHTMLProps<_$react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "
|
|
4376
|
+
declare const Radio: _$react.ForwardRefExoticComponent<Omit<Omit<_$react.DetailedHTMLProps<_$react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "label" | "onChange" | "size" | "value" | "hideLabel"> & {
|
|
4377
4377
|
/**
|
|
4378
4378
|
* Indicates the state of the radio
|
|
4379
4379
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.23.0-beta.
|
|
3
|
+
* @license @wistia/ui v0.23.0-beta.dfc52bdb.2a20da9
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2026, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -10883,7 +10883,7 @@ const StyledMobileTrigger = styled.button`
|
|
|
10883
10883
|
}
|
|
10884
10884
|
`;
|
|
10885
10885
|
const DatePickerInput = ({ placeholder = "Select a date...", fullWidth, name, id, "aria-invalid": ariaInvalid, "aria-describedby": ariaDescribedBy }) => {
|
|
10886
|
-
const { selectedDate, isOpen, inputText, disabled, isMobile, inputRef, popoverContentRef, setIsOpen, handleInputChange, handleCommit } = useDatePickerContext();
|
|
10886
|
+
const { selectedDate, isOpen, inputText, disabled, isMobile, popoverId, inputRef, popoverContentRef, setIsOpen, handleInputChange, handleCommit } = useDatePickerContext();
|
|
10887
10887
|
const submittedValue = selectedDate !== null ? toISODate(selectedDate) : "";
|
|
10888
10888
|
const handleClick = () => {
|
|
10889
10889
|
if (!isOpen) setIsOpen(true);
|
|
@@ -10898,6 +10898,7 @@ const DatePickerInput = ({ placeholder = "Select a date...", fullWidth, name, id
|
|
|
10898
10898
|
const isEmpty = inputText.length === 0;
|
|
10899
10899
|
return /* @__PURE__ */ jsxs(PopoverAnchor, { children: [/* @__PURE__ */ jsxs(StyledMobileTrigger, {
|
|
10900
10900
|
ref: inputRef,
|
|
10901
|
+
"aria-controls": isOpen ? popoverId : void 0,
|
|
10901
10902
|
"aria-describedby": ariaDescribedBy,
|
|
10902
10903
|
"aria-expanded": isOpen,
|
|
10903
10904
|
"aria-haspopup": "dialog",
|
|
@@ -10937,9 +10938,9 @@ const DatePickerInput = ({ placeholder = "Select a date...", fullWidth, name, id
|
|
|
10937
10938
|
};
|
|
10938
10939
|
return /* @__PURE__ */ jsxs(PopoverAnchor, { children: [/* @__PURE__ */ jsx(Input, {
|
|
10939
10940
|
ref: inputRef,
|
|
10941
|
+
"aria-controls": popoverId,
|
|
10940
10942
|
"aria-describedby": ariaDescribedBy,
|
|
10941
10943
|
"aria-expanded": isOpen,
|
|
10942
|
-
"aria-haspopup": "dialog",
|
|
10943
10944
|
...ariaInvalid !== void 0 ? { "aria-invalid": ariaInvalid } : {},
|
|
10944
10945
|
autoSelect: true,
|
|
10945
10946
|
disabled,
|
|
@@ -11223,7 +11224,7 @@ Calendar.displayName = "Calendar";
|
|
|
11223
11224
|
//#endregion
|
|
11224
11225
|
//#region src/components/DatePicker/DatePickerPopover.tsx
|
|
11225
11226
|
const DatePickerPopover = () => {
|
|
11226
|
-
const { selectedDate, previewDate, displayedMonth, align, side, minDate, maxDate, disabledDates, inputRef, popoverContentRef, handleDaySelect, setDisplayedMonth, setIsOpen } = useDatePickerContext();
|
|
11227
|
+
const { selectedDate, previewDate, displayedMonth, align, side, minDate, maxDate, disabledDates, popoverId, inputRef, popoverContentRef, handleDaySelect, setDisplayedMonth, setIsOpen } = useDatePickerContext();
|
|
11227
11228
|
const disabledMatcher = buildDisabledMatcher(minDate, maxDate, disabledDates);
|
|
11228
11229
|
const handleOpenAutoFocus = (event) => {
|
|
11229
11230
|
event.preventDefault();
|
|
@@ -11244,6 +11245,7 @@ const DatePickerPopover = () => {
|
|
|
11244
11245
|
return /* @__PURE__ */ jsx(PopoverPortal, { children: /* @__PURE__ */ jsx(PopoverContent, {
|
|
11245
11246
|
ref: popoverContentRef,
|
|
11246
11247
|
align,
|
|
11248
|
+
id: popoverId,
|
|
11247
11249
|
maxWidth: "none",
|
|
11248
11250
|
side,
|
|
11249
11251
|
onCloseAutoFocus: handleCloseAutoFocus,
|
|
@@ -11280,6 +11282,7 @@ const DatePicker = forwardRef(({ value, onChange, defaultValue, minDate, maxDate
|
|
|
11280
11282
|
const inputRef = useRef(null);
|
|
11281
11283
|
const popoverContentRef = useRef(null);
|
|
11282
11284
|
const skipNextCommitRef = useRef(false);
|
|
11285
|
+
const popoverId = useId();
|
|
11283
11286
|
const { isSmAndDown } = useMq();
|
|
11284
11287
|
const commitDate = useCallback((date) => {
|
|
11285
11288
|
if (isControlled) onChange(date);
|
|
@@ -11353,6 +11356,7 @@ const DatePicker = forwardRef(({ value, onChange, defaultValue, minDate, maxDate
|
|
|
11353
11356
|
minDate,
|
|
11354
11357
|
maxDate,
|
|
11355
11358
|
disabledDates,
|
|
11359
|
+
popoverId,
|
|
11356
11360
|
inputRef,
|
|
11357
11361
|
popoverContentRef,
|
|
11358
11362
|
setIsOpen,
|
|
@@ -11374,6 +11378,7 @@ const DatePicker = forwardRef(({ value, onChange, defaultValue, minDate, maxDate
|
|
|
11374
11378
|
minDate,
|
|
11375
11379
|
maxDate,
|
|
11376
11380
|
disabledDates,
|
|
11381
|
+
popoverId,
|
|
11377
11382
|
handleInputChange,
|
|
11378
11383
|
handleCommit,
|
|
11379
11384
|
handleDaySelect
|