@majoo-ui/react 1.61.11-rc.2 → 1.61.11-rc.3
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/components/accordion/Accordion.d.ts +7 -7
- package/components/devicePreview/DevicePreview.d.ts +0 -3
- package/components/dialog/Dialog.d.ts +8 -9
- package/index.esm.js +1838 -1722
- package/index.umd.js +1819 -1720
- package/package.json +3 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { AccordionSingleProps, AccordionMultipleProps, PrimitiveDivProps, AccordionItemProps, AccordionContentProps, AccordionTriggerProps } from '@radix-ui/react-accordion';
|
|
3
3
|
import { PrimitiveButtonProps } from '@radix-ui/react-popover';
|
|
4
4
|
import { BaseRadixNoCss, BaseRadixProps } from '../../type/base.types';
|
|
5
|
-
declare type AccordionPrimitiveProps = Omit<
|
|
5
|
+
declare type AccordionPrimitiveProps = Omit<AccordionSingleProps, keyof Omit<PrimitiveDivProps, 'defaultValue'>> | Omit<AccordionMultipleProps, keyof Omit<PrimitiveDivProps, 'defaultValue'>>;
|
|
6
6
|
declare type AccordionProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Determines whether one or multiple items can be opened at the same time.
|
|
@@ -11,8 +11,8 @@ declare type AccordionProps = {
|
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
} & AccordionPrimitiveProps & BaseRadixProps;
|
|
13
13
|
export declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare type AccordionTriggerPrimitiveProps = Omit<
|
|
15
|
-
interface
|
|
14
|
+
declare type AccordionTriggerPrimitiveProps = Omit<AccordionTriggerProps, keyof PrimitiveButtonProps>;
|
|
15
|
+
interface AccordionTriggersProps extends AccordionTriggerPrimitiveProps, BaseRadixProps {
|
|
16
16
|
/**
|
|
17
17
|
* If the value is 'false' then it will hide the arrow icon.
|
|
18
18
|
*/
|
|
@@ -31,7 +31,7 @@ interface AccordionTriggerProps extends AccordionTriggerPrimitiveProps, BaseRadi
|
|
|
31
31
|
customArrow?: React.ReactNode;
|
|
32
32
|
children: React.ReactNode;
|
|
33
33
|
}
|
|
34
|
-
export declare const AccordionTrigger: React.ForwardRefExoticComponent<
|
|
35
|
-
export declare const AccordionItem: React.FC<Omit<
|
|
36
|
-
export declare const AccordionContent: React.FC<Omit<
|
|
34
|
+
export declare const AccordionTrigger: React.ForwardRefExoticComponent<AccordionTriggersProps & React.RefAttributes<HTMLButtonElement>>;
|
|
35
|
+
export declare const AccordionItem: React.FC<Omit<AccordionItemProps, keyof PrimitiveDivProps> & BaseRadixNoCss>;
|
|
36
|
+
export declare const AccordionContent: React.FC<Omit<AccordionContentProps, keyof PrimitiveDivProps> & BaseRadixNoCss>;
|
|
37
37
|
export {};
|
|
@@ -131,9 +131,6 @@ export declare const ImageDevicePreview: import("@stitches/react/types/styled-co
|
|
|
131
131
|
my: (value: {
|
|
132
132
|
readonly [Stitches.$$ScaleValue]: "space";
|
|
133
133
|
}) => {
|
|
134
|
-
/**
|
|
135
|
-
* alt prop when url image not found or invalid
|
|
136
|
-
*/
|
|
137
134
|
marginTop: {
|
|
138
135
|
readonly [Stitches.$$ScaleValue]: "space";
|
|
139
136
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
declare const StyledContent: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>>, {
|
|
2
|
+
declare const StyledContent: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>>, {
|
|
4
3
|
size?: "sm" | "md" | "lg" | "xl" | "auto" | "xs" | "full" | undefined;
|
|
5
4
|
}, {
|
|
6
5
|
sm: "(min-width: 359px)";
|
|
@@ -102,11 +101,11 @@ export declare type DialogContentProps = React.ComponentProps<typeof StyledConte
|
|
|
102
101
|
interface IContentProps extends DialogContentProps {
|
|
103
102
|
children: React.ReactNode[] | React.ReactNode;
|
|
104
103
|
}
|
|
105
|
-
declare const Dialog: React.FC<
|
|
104
|
+
declare const Dialog: React.FC<import("@radix-ui/react-dialog").DialogProps>;
|
|
106
105
|
export default Dialog;
|
|
107
|
-
export declare const DialogTrigger: React.ForwardRefExoticComponent<
|
|
106
|
+
export declare const DialogTrigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
108
107
|
export declare const DialogContent: React.ForwardRefExoticComponent<Pick<IContentProps, "color" | "translate" | "hidden" | "size" | "style" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "children" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "asChild" | "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onOpenAutoFocus" | "onCloseAutoFocus" | "forceMount" | "css"> & React.RefAttributes<HTMLDivElement>>;
|
|
109
|
-
export declare const DialogTitle: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<
|
|
108
|
+
export declare const DialogTitle: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>, {}, {
|
|
110
109
|
sm: "(min-width: 359px)";
|
|
111
110
|
md: "(min-width: 767px)";
|
|
112
111
|
lg: "(min-width: 1023px)";
|
|
@@ -202,7 +201,7 @@ export declare const DialogTitle: import("@stitches/react/types/styled-component
|
|
|
202
201
|
backgroundColor: string;
|
|
203
202
|
};
|
|
204
203
|
}>>;
|
|
205
|
-
export declare const DialogDescription: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<
|
|
204
|
+
export declare const DialogDescription: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>, {}, {
|
|
206
205
|
sm: "(min-width: 359px)";
|
|
207
206
|
md: "(min-width: 767px)";
|
|
208
207
|
lg: "(min-width: 1023px)";
|
|
@@ -298,8 +297,8 @@ export declare const DialogDescription: import("@stitches/react/types/styled-com
|
|
|
298
297
|
backgroundColor: string;
|
|
299
298
|
};
|
|
300
299
|
}>>;
|
|
301
|
-
export declare const DialogClose: React.ForwardRefExoticComponent<
|
|
302
|
-
export declare const DialogOverlay: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<
|
|
300
|
+
export declare const DialogClose: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
301
|
+
export declare const DialogOverlay: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>>, {}, {
|
|
303
302
|
sm: "(min-width: 359px)";
|
|
304
303
|
md: "(min-width: 767px)";
|
|
305
304
|
lg: "(min-width: 1023px)";
|
|
@@ -395,4 +394,4 @@ export declare const DialogOverlay: import("@stitches/react/types/styled-compone
|
|
|
395
394
|
backgroundColor: string;
|
|
396
395
|
};
|
|
397
396
|
}>>;
|
|
398
|
-
export declare const DialogPortal: React.FC<
|
|
397
|
+
export declare const DialogPortal: React.FC<import("@radix-ui/react-dialog").DialogPortalProps>;
|