@majoo-ui/react 1.61.11-rc.1 → 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.
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import * as AccordionPrimitive from '@radix-ui/react-accordion';
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<AccordionPrimitive.AccordionSingleProps, keyof Omit<AccordionPrimitive.PrimitiveDivProps, 'defaultValue'>> | Omit<AccordionPrimitive.AccordionMultipleProps, keyof Omit<AccordionPrimitive.PrimitiveDivProps, 'defaultValue'>>;
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<AccordionPrimitive.AccordionTriggerProps, keyof PrimitiveButtonProps>;
15
- interface AccordionTriggerProps extends AccordionTriggerPrimitiveProps, BaseRadixProps {
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<AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
35
- export declare const AccordionItem: React.FC<Omit<AccordionPrimitive.AccordionItemProps, keyof AccordionPrimitive.PrimitiveDivProps> & BaseRadixNoCss>;
36
- export declare const AccordionContent: React.FC<Omit<AccordionPrimitive.AccordionContentProps, keyof AccordionPrimitive.PrimitiveDivProps> & BaseRadixNoCss>;
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
- import * as DialogPrimitive from '@radix-ui/react-dialog';
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<DialogPrimitive.DialogProps>;
104
+ declare const Dialog: React.FC<import("@radix-ui/react-dialog").DialogProps>;
106
105
  export default Dialog;
107
- export declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
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<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>, {}, {
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<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>, {}, {
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<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
302
- export declare const DialogOverlay: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>>, {}, {
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<DialogPrimitive.DialogPortalProps>;
397
+ export declare const DialogPortal: React.FC<import("@radix-ui/react-dialog").DialogPortalProps>;
@@ -202,6 +202,7 @@ export declare const TableHeaderCellContainer: import("@stitches/react/types/sty
202
202
  isMobile?: boolean | "true" | undefined;
203
203
  isToggleable?: boolean | "true" | undefined;
204
204
  isToggled?: boolean | "true" | undefined;
205
+ darkTheme?: boolean | "true" | undefined;
205
206
  }, {
206
207
  sm: "(min-width: 359px)";
207
208
  md: "(min-width: 767px)";
@@ -687,6 +688,102 @@ export declare const TableRow: import("@stitches/react/types/styled-component").
687
688
  backgroundColor: string;
688
689
  };
689
690
  }>>;
691
+ export declare const Cell: import("@stitches/react/types/styled-component").StyledComponent<"td", {}, {
692
+ sm: "(min-width: 359px)";
693
+ md: "(min-width: 767px)";
694
+ lg: "(min-width: 1023px)";
695
+ xl: "(min-width: 1199px)";
696
+ '2xl': "(min-width: 1399px)";
697
+ '3xl': "(min-width: 1600px)";
698
+ }, import("@stitches/react/types/css-util").CSS<{
699
+ sm: "(min-width: 359px)";
700
+ md: "(min-width: 767px)";
701
+ lg: "(min-width: 1023px)";
702
+ xl: "(min-width: 1199px)";
703
+ '2xl': "(min-width: 1399px)";
704
+ '3xl': "(min-width: 1600px)";
705
+ }, {
706
+ colors: unknown;
707
+ space: unknown;
708
+ shadows: unknown;
709
+ fontSizes: unknown;
710
+ fonts: unknown;
711
+ lineHeights: unknown;
712
+ letterSpacings: unknown;
713
+ radii: unknown;
714
+ sizes: unknown;
715
+ zIndices: unknown;
716
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
717
+ m: (value: {
718
+ readonly [$$ScaleValue]: "space";
719
+ }) => {
720
+ margin: {
721
+ readonly [$$ScaleValue]: "space";
722
+ };
723
+ };
724
+ mt: (value: {
725
+ readonly [$$ScaleValue]: "space";
726
+ }) => {
727
+ marginTop: {
728
+ readonly [$$ScaleValue]: "space";
729
+ };
730
+ };
731
+ mr: (value: {
732
+ readonly [$$ScaleValue]: "space";
733
+ }) => {
734
+ marginRight: {
735
+ readonly [$$ScaleValue]: "space";
736
+ };
737
+ };
738
+ mb: (value: {
739
+ readonly [$$ScaleValue]: "space";
740
+ }) => {
741
+ marginBottom: {
742
+ readonly [$$ScaleValue]: "space";
743
+ };
744
+ };
745
+ ml: (value: {
746
+ readonly [$$ScaleValue]: "space";
747
+ }) => {
748
+ marginLeft: {
749
+ readonly [$$ScaleValue]: "space";
750
+ };
751
+ };
752
+ mx: (value: {
753
+ readonly [$$ScaleValue]: "space";
754
+ }) => {
755
+ marginLeft: {
756
+ readonly [$$ScaleValue]: "space";
757
+ };
758
+ marginRight: {
759
+ readonly [$$ScaleValue]: "space";
760
+ };
761
+ };
762
+ my: (value: {
763
+ readonly [$$ScaleValue]: "space";
764
+ }) => {
765
+ marginTop: {
766
+ readonly [$$ScaleValue]: "space";
767
+ };
768
+ marginBottom: {
769
+ readonly [$$ScaleValue]: "space";
770
+ };
771
+ };
772
+ size: (value: {
773
+ readonly [$$PropertyValue]: "width";
774
+ }) => {
775
+ width: {
776
+ readonly [$$PropertyValue]: "width";
777
+ };
778
+ height: {
779
+ readonly [$$PropertyValue]: "width";
780
+ };
781
+ };
782
+ subtleColor: (value: string) => {
783
+ color: string;
784
+ backgroundColor: string;
785
+ };
786
+ }>>;
690
787
  export declare const TableCell: import("@stitches/react/types/styled-component").StyledComponent<"td", {
691
788
  subCell?: boolean | "true" | undefined;
692
789
  headerSubCell?: boolean | "true" | undefined;
@@ -618,7 +618,17 @@ export declare const darkTheme: string & {
618
618
  } & import("@stitches/react/types/stitches").ThemeTokens<{
619
619
  colors: {
620
620
  bgWhite: string;
621
+ bgGray: string;
621
622
  bgDark: string;
623
+ textPrimary: string;
624
+ textSecondary: string;
625
+ bgHeader: string;
626
+ btnPrimary: string;
627
+ btnSecondary: string;
628
+ primary50: string;
629
+ primary100: string;
630
+ iconPrimary: string;
631
+ bgBorder: string;
622
632
  };
623
633
  }, "">;
624
634
  export declare const colors: any;