@wistia/ui 0.22.1-beta.2ef9c998.e7b3e02 → 0.22.1-beta.69dbddb4.6a0d5fa
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 +6 -6
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -351,7 +351,7 @@ type LinkProps = LinkAsButtonProps | LinkAsLinkProps;
|
|
|
351
351
|
* This means in addition to its own props, `Link` can use props from `react-router`'s `Link` component. View their documentation [here](https://reactrouter.com/en/main/components/link).
|
|
352
352
|
* The one prop we ignore from react-router is `to`. We use `href` instead and map it under the hood.
|
|
353
353
|
*/
|
|
354
|
-
declare const Link: react.ForwardRefExoticComponent<(Omit<LinkAsButtonProps, "ref"> | Omit<LinkAsLinkProps, "ref">) & react.RefAttributes<
|
|
354
|
+
declare const Link: react.ForwardRefExoticComponent<(Omit<LinkAsButtonProps, "ref"> | Omit<LinkAsLinkProps, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
355
355
|
//#endregion
|
|
356
356
|
//#region src/private/hooks/useResponsiveProp/useResponsiveProp.d.ts
|
|
357
357
|
type Breakpoints = 'isLgAndDown' | 'isLgAndUp' | 'isMdAndDown' | 'isMdAndUp' | 'isSmAndDown' | 'isSmAndUp' | 'isXlAndDown' | 'isXlAndUp' | 'isXsAndDown' | 'isXsAndUp';
|
|
@@ -508,7 +508,7 @@ declare const Button: react.ForwardRefExoticComponent<(Omit<ButtonAsButtonProps,
|
|
|
508
508
|
* @ignore
|
|
509
509
|
*/
|
|
510
510
|
type?: LinkTypes;
|
|
511
|
-
}, "ref">) & react.RefAttributes<
|
|
511
|
+
}, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
512
512
|
//#endregion
|
|
513
513
|
//#region src/private/components/Toast/Toast.d.ts
|
|
514
514
|
type ToastProps = ComponentPropsWithoutRef<'div'> & {
|
|
@@ -644,7 +644,7 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
644
644
|
* Changes the secondary icon for different use cases
|
|
645
645
|
*/
|
|
646
646
|
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
647
|
-
} & Omit<ButtonAsLinkProps, "variant" | "size" | "fullWidth" | "isLoading" | "leftIcon" | "rightIcon" | "unstyled">, "ref">) & react.RefAttributes<
|
|
647
|
+
} & Omit<ButtonAsLinkProps, "variant" | "size" | "fullWidth" | "isLoading" | "leftIcon" | "rightIcon" | "unstyled">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
648
648
|
//#endregion
|
|
649
649
|
//#region src/components/Avatar/Avatar.d.ts
|
|
650
650
|
type AvatarInstanceType = 'image' | 'initials';
|
|
@@ -3185,7 +3185,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
3185
3185
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
3186
3186
|
*/
|
|
3187
3187
|
children: JSX.Element;
|
|
3188
|
-
} & Omit<ButtonAsLinkProps, "fullWidth" | "leftIcon" | "rightIcon">, "ref">) & react.RefAttributes<
|
|
3188
|
+
} & Omit<ButtonAsLinkProps, "fullWidth" | "leftIcon" | "rightIcon">, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
3189
3189
|
//#endregion
|
|
3190
3190
|
//#region src/components/Image/Image.d.ts
|
|
3191
3191
|
type ImageProps = ComponentPropsWithoutRef<'img'> & {
|
|
@@ -3265,7 +3265,7 @@ type InputClickToCopyProps = Omit<InputProps, 'autoSelect' | 'disabled' | 'right
|
|
|
3265
3265
|
/**
|
|
3266
3266
|
* Provides a readonly input that copies the text to the clipboard when clicked.
|
|
3267
3267
|
*/
|
|
3268
|
-
declare const InputClickToCopy: react.ForwardRefExoticComponent<Omit<InputProps, "type" | "
|
|
3268
|
+
declare const InputClickToCopy: react.ForwardRefExoticComponent<Omit<InputProps, "type" | "disabled" | "value" | "rightIcon" | "autoSelect"> & {
|
|
3269
3269
|
/**
|
|
3270
3270
|
* When disabled, the copy action will not be triggered
|
|
3271
3271
|
*/
|
|
@@ -3700,7 +3700,7 @@ declare const MenuItem: react.ForwardRefExoticComponent<(Omit<DropdownMenuItemPr
|
|
|
3700
3700
|
* Treats the menu item as a link when provided
|
|
3701
3701
|
*/
|
|
3702
3702
|
href?: MenuItemButtonProps["href"];
|
|
3703
|
-
}, "ref">) & react.RefAttributes<
|
|
3703
|
+
}, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
3704
3704
|
//#endregion
|
|
3705
3705
|
//#region src/components/Menu/MenuItemLabel.d.ts
|
|
3706
3706
|
type MenuItemLabelProps = {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/ui",
|
|
3
|
-
"version": "0.22.1-beta.
|
|
3
|
+
"version": "0.22.1-beta.69dbddb4.6a0d5fa",
|
|
4
4
|
"description": "Wistia UI React component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"test:ci": "vitest run --coverage",
|
|
40
40
|
"test:coverage": "vitest --coverage --ui",
|
|
41
41
|
"test:debug": "echo 'open chrome://inspect/#devices' && vitest --inspect-brk --no-file-parallelism",
|
|
42
|
-
"typecheck": "
|
|
42
|
+
"typecheck": "tsgo"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@types/react": "^19.0.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"react-markdown": "^10.1.0",
|
|
71
71
|
"sonner": "^2.0.7",
|
|
72
72
|
"throttle-debounce": "^5.0.2",
|
|
73
|
-
"use-file-picker": "
|
|
73
|
+
"use-file-picker": "2.1.2",
|
|
74
74
|
"yup": "^1.7.1"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"@types/react": "^19.2.14",
|
|
95
95
|
"@types/react-dom": "^19.2.3",
|
|
96
96
|
"@types/throttle-debounce": "^5.0.2",
|
|
97
|
+
"@typescript/native-preview": "^7.0.0-dev.20260325.1",
|
|
97
98
|
"@vitejs/plugin-react": "^6.0.1",
|
|
98
99
|
"@vitest/coverage-istanbul": "^4.1.1",
|
|
99
100
|
"@vitest/ui": "^4.1.1",
|
|
@@ -117,7 +118,6 @@
|
|
|
117
118
|
"storybook": "^10.3.3",
|
|
118
119
|
"styled-components": "6.2.0",
|
|
119
120
|
"tsdown": "^0.21.5",
|
|
120
|
-
"typescript": "^6.0.2",
|
|
121
121
|
"vite": "^8.0.2",
|
|
122
122
|
"vitest": "^4.1.1",
|
|
123
123
|
"vitest-axe": "^1.0.0-pre.5",
|