myshell-react-lib 0.2.9 → 0.2.10
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.map +1 -1
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ReactElement, SyntheticEvent } from 'react';
|
|
3
|
+
import React__default, { ReactElement, ReactEventHandler, SyntheticEvent } from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
6
6
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
@@ -495,11 +495,11 @@ interface ImageProps {
|
|
|
495
495
|
/**
|
|
496
496
|
* 圆角,默认为 none
|
|
497
497
|
*/
|
|
498
|
-
rounded?:
|
|
498
|
+
rounded?: "none" | "sm" | "default" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full";
|
|
499
499
|
/**
|
|
500
500
|
* 填充类型
|
|
501
501
|
*/
|
|
502
|
-
object?:
|
|
502
|
+
object?: "contain" | "cover" | "fill" | "none";
|
|
503
503
|
/**
|
|
504
504
|
* 图像描述
|
|
505
505
|
*/
|
|
@@ -522,9 +522,10 @@ interface ImageProps {
|
|
|
522
522
|
*
|
|
523
523
|
* @default auto
|
|
524
524
|
*/
|
|
525
|
-
fetchPriority?:
|
|
526
|
-
loading?:
|
|
525
|
+
fetchPriority?: "auto" | "high" | "low" | "low";
|
|
526
|
+
loading?: "eager" | "lazy";
|
|
527
527
|
style?: React.CSSProperties;
|
|
528
|
+
onLoad?: ReactEventHandler<HTMLImageElement>;
|
|
528
529
|
/**
|
|
529
530
|
* 加载错误回调
|
|
530
531
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ReactElement, SyntheticEvent } from 'react';
|
|
3
|
+
import React__default, { ReactElement, ReactEventHandler, SyntheticEvent } from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
6
6
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
@@ -495,11 +495,11 @@ interface ImageProps {
|
|
|
495
495
|
/**
|
|
496
496
|
* 圆角,默认为 none
|
|
497
497
|
*/
|
|
498
|
-
rounded?:
|
|
498
|
+
rounded?: "none" | "sm" | "default" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full";
|
|
499
499
|
/**
|
|
500
500
|
* 填充类型
|
|
501
501
|
*/
|
|
502
|
-
object?:
|
|
502
|
+
object?: "contain" | "cover" | "fill" | "none";
|
|
503
503
|
/**
|
|
504
504
|
* 图像描述
|
|
505
505
|
*/
|
|
@@ -522,9 +522,10 @@ interface ImageProps {
|
|
|
522
522
|
*
|
|
523
523
|
* @default auto
|
|
524
524
|
*/
|
|
525
|
-
fetchPriority?:
|
|
526
|
-
loading?:
|
|
525
|
+
fetchPriority?: "auto" | "high" | "low" | "low";
|
|
526
|
+
loading?: "eager" | "lazy";
|
|
527
527
|
style?: React.CSSProperties;
|
|
528
|
+
onLoad?: ReactEventHandler<HTMLImageElement>;
|
|
528
529
|
/**
|
|
529
530
|
* 加载错误回调
|
|
530
531
|
*/
|