@majoo-ui/react 1.61.24 → 1.61.25-rc.1

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.
Files changed (133) hide show
  1. package/index.d.ts +1 -5
  2. package/index.esm.js +24547 -26991
  3. package/package.json +4 -4
  4. package/{colors → src/colors}/index.d.ts +1 -1
  5. package/{components → src/components}/accordion/Accordion.d.ts +35 -35
  6. package/{components → src/components}/accordion/index.d.ts +1 -1
  7. package/{components → src/components}/barChart/BarChart.d.ts +82 -82
  8. package/{components → src/components}/barChart/index.d.ts +1 -1
  9. package/{components → src/components}/breadcrumb/index.d.ts +7 -7
  10. package/{components → src/components}/button/index.d.ts +2 -2
  11. package/{components → src/components}/card/index.d.ts +2 -2
  12. package/{components → src/components}/chart/index.d.ts +1 -1
  13. package/{components → src/components}/chart/lineChart/LineChart.d.ts +80 -80
  14. package/{components → src/components}/chart/lineChart/components/Comparator.d.ts +16 -16
  15. package/{components → src/components}/chart/lineChart/components/ComparatorController.d.ts +8 -8
  16. package/{components → src/components}/chart/lineChart/components/ComparatorItem.d.ts +10 -10
  17. package/{components → src/components}/chart/lineChart/components/ProductList.d.ts +10 -10
  18. package/{components → src/components}/chart/lineChart/components/TitleLegend.d.ts +19 -19
  19. package/{components → src/components}/chart/lineChart/components/Tooltip.d.ts +21 -21
  20. package/{components → src/components}/chart/lineChart/index.d.ts +1 -1
  21. package/{components → src/components}/chart/utils/index.d.ts +18 -18
  22. package/{components → src/components}/checkboxTable/CheckboxTable.d.ts +29 -29
  23. package/{components → src/components}/checkboxTable/index.d.ts +1 -1
  24. package/{components → src/components}/checkboxTable/transition.d.ts +11 -11
  25. package/{components → src/components}/contentEditor/ContentEditor.d.ts +44 -44
  26. package/{components → src/components}/contentEditor/index.d.ts +1 -1
  27. package/{components → src/components}/contextMenu/index.d.ts +1 -1
  28. package/{components → src/components}/datePicker/AdvancedOption.d.ts +12 -12
  29. package/{components → src/components}/datePicker/CustomDatePicker.d.ts +63 -63
  30. package/{components → src/components}/datePicker/DatePicker.d.ts +10 -10
  31. package/{components → src/components}/datePicker/DatePickerMulti.d.ts +11 -11
  32. package/{components → src/components}/datePicker/InputDatePicker.d.ts +170 -170
  33. package/{components → src/components}/datePicker/InputDateRangePicker.d.ts +26 -26
  34. package/{components → src/components}/datePicker/components/Calendar.d.ts +32 -32
  35. package/{components → src/components}/datePicker/components/CalendarMulti.d.ts +21 -21
  36. package/{components → src/components}/datePicker/components/CalendarTimePicker.d.ts +11 -11
  37. package/{components → src/components}/datePicker/components/MobileCalendar.d.ts +4 -4
  38. package/{components → src/components}/datePicker/components/index.d.ts +6 -6
  39. package/{components → src/components}/datePicker/index.d.ts +7 -7
  40. package/{components → src/components}/datePicker/state/reducer.d.ts +26 -26
  41. package/{components → src/components}/datePicker/timePicker/index.d.ts +4 -4
  42. package/{components → src/components}/devicePreview/index.d.ts +2 -2
  43. package/{components → src/components}/dialog/index.d.ts +2 -2
  44. package/{components → src/components}/editableTable/Columns.d.ts +59 -59
  45. package/{components → src/components}/editableTable/EditableMobile.d.ts +23 -23
  46. package/{components → src/components}/editableTable/EditableTable.d.ts +432 -432
  47. package/{components → src/components}/editableTable/faker.d.ts +16 -16
  48. package/{components → src/components}/editableTable/index.d.ts +2 -2
  49. package/{components → src/components}/form/components/InputCombobox/InputCombobox.d.ts +43 -43
  50. package/{components → src/components}/form/components/InputCombobox/index.d.ts +1 -1
  51. package/{components → src/components}/form/components/InputCounter/InputCounter.d.ts +58 -58
  52. package/{components → src/components}/form/components/InputCounter/index.d.ts +2 -2
  53. package/{components → src/components}/form/components/InputDateRange/InputDateRange.d.ts +39 -39
  54. package/{components → src/components}/form/components/InputDateRange/index.d.ts +2 -2
  55. package/{components → src/components}/form/components/InputElement/index.d.ts +1 -1
  56. package/{components → src/components}/form/components/InputGroup/index.d.ts +1 -1
  57. package/{components → src/components}/form/components/InputOTP/InputOTP.d.ts +108 -108
  58. package/{components → src/components}/form/components/InputOTP/index.d.ts +2 -2
  59. package/{components → src/components}/form/components/InputResourceList/InputResourceList.d.ts +39 -39
  60. package/{components → src/components}/form/components/InputSelect/index.d.ts +2 -2
  61. package/{components → src/components}/form/components/InputSelectCheck/OptionGroupItem.d.ts +5 -5
  62. package/{components → src/components}/form/components/InputSignature/InputSignature.d.ts +12 -12
  63. package/{components → src/components}/form/components/InputSignature/SignatureModal.d.ts +11 -11
  64. package/{components → src/components}/form/components/InputSignature/index.d.ts +2 -2
  65. package/{components → src/components}/form/components/InputText/index.d.ts +1 -1
  66. package/{components → src/components}/form/components/index.d.ts +27 -27
  67. package/{components → src/components}/form/index.d.ts +1 -1
  68. package/{components → src/components}/heading/index.d.ts +2 -2
  69. package/{components → src/components}/image/index.d.ts +2 -2
  70. package/{components → src/components}/index.d.ts +53 -53
  71. package/{components → src/components}/link/index.d.ts +1 -1
  72. package/{components → src/components}/loadingBar/LoadingBar.d.ts +51 -51
  73. package/{components → src/components}/loadingBar/index.d.ts +1 -1
  74. package/{components → src/components}/mapPicker/InputMapPicker.d.ts +4 -4
  75. package/{components → src/components}/mapPicker/MapPicker.d.ts +17 -17
  76. package/{components → src/components}/mapPicker/index.d.ts +2 -2
  77. package/{components → src/components}/mapPicker/types/index.d.ts +103 -103
  78. package/{components → src/components}/modalDialog/index.d.ts +2 -2
  79. package/{components → src/components}/pageDialog/index.d.ts +1 -1
  80. package/{components → src/components}/paragraph/index.d.ts +2 -2
  81. package/{components → src/components}/pieChart/PieChart.d.ts +100 -100
  82. package/{components → src/components}/pieChart/index.d.ts +1 -1
  83. package/{components → src/components}/progressIndicator/ProgressIndicator.d.ts +17 -17
  84. package/{components → src/components}/progressIndicator/index.d.ts +1 -1
  85. package/{components → src/components}/scrollSync/ScrollSync.d.ts +45 -45
  86. package/{components → src/components}/scrollSync/ScrollSyncNode.d.ts +32 -32
  87. package/{components → src/components}/scrollSync/index.d.ts +2 -2
  88. package/{components → src/components}/scrollSync/utils.d.ts +3 -3
  89. package/{components → src/components}/separator/index.d.ts +2 -2
  90. package/{components → src/components}/skeleton/Skeleton.d.ts +19 -19
  91. package/{components → src/components}/skeleton/index.d.ts +1 -1
  92. package/{components → src/components}/stepWizard/index.d.ts +45 -45
  93. package/{components → src/components}/table/MobileTable.d.ts +39 -39
  94. package/{components → src/components}/table/index.d.ts +3 -3
  95. package/{components → src/components}/tableOfContent/index.d.ts +57 -57
  96. package/{components → src/components}/tagList/TagList.d.ts +21 -21
  97. package/{components → src/components}/tagList/index.d.ts +1 -1
  98. package/{components → src/components}/text/index.d.ts +2 -2
  99. package/{components → src/components}/upload/utils/canvasPreview.d.ts +2 -2
  100. package/{components → src/components}/upload/utils/imgPreview.d.ts +2 -2
  101. package/{foundations → src/foundations}/indices/Indices.d.ts +2 -2
  102. package/{foundations → src/foundations}/radii/Radii.d.ts +2 -2
  103. package/{foundations → src/foundations}/space/Space.d.ts +2 -2
  104. package/{hooks → src/hooks}/index.d.ts +2 -2
  105. package/{hooks → src/hooks}/useListOption/useListOption.d.ts +8 -8
  106. package/{hooks → src/hooks}/useToggle/useToggle.d.ts +1 -1
  107. package/src/index.d.ts +5 -0
  108. package/{layout → src/layout}/box/index.d.ts +1 -1
  109. package/{layout → src/layout}/flex/index.d.ts +2 -2
  110. package/{layout → src/layout}/grid/index.d.ts +2 -2
  111. package/{layout → src/layout}/index.d.ts +4 -4
  112. package/{type → src/type}/base.types.d.ts +11 -11
  113. package/src/type/stitches.types.d.ts +1 -0
  114. package/{utils → src/utils}/request.d.ts +14 -14
  115. package/{utils → src/utils}/useNavigatorOnline.d.ts +2 -2
  116. package/{utils → src/utils}/variant.d.ts +4 -4
  117. package/components/alert-backup/index.backup.d.ts +0 -1
  118. package/components/button/Button.d.ts +0 -163
  119. package/components/card/Card.d.ts +0 -531
  120. package/components/contextMenu/ContextMenu.d.ts +0 -404
  121. package/components/datePicker/components/DateNumber.d.ts +0 -104
  122. package/components/devicePreview/DevicePreview.d.ts +0 -161
  123. package/components/dialog/Dialog.d.ts +0 -402
  124. package/components/form/components/InputCombobox/InputCombobox.backup.d.ts +0 -43
  125. package/components/form/components/InputSelect/InputSelect.d.ts +0 -862
  126. package/components/heading/Heading.d.ts +0 -100
  127. package/components/link/Link.d.ts +0 -109
  128. package/components/modalDialog/ModalDialog.d.ts +0 -836
  129. package/components/pageDialog/PageDialog.d.ts +0 -810
  130. package/components/table/Table.d.ts +0 -1529
  131. package/config/stitches.config.d.ts +0 -645
  132. package/foundations/typography/Typography.d.ts +0 -396
  133. package/type/stitches.types.d.ts +0 -1
@@ -1,57 +1,57 @@
1
- import { MutableRefObject, ReactNode } from 'react';
2
- interface ScrollSpyProps {
3
- /**
4
- * Each direct child Element should contain an id.
5
- */
6
- children: ReactNode;
7
- /**
8
- * ref to your navigation container containing items with data-to-scrollspy-id attributes.
9
- */
10
- navContainerRef?: MutableRefObject<HTMLDivElement | null>;
11
- /**
12
- * If you want to spy only on a particular scrollable container (Element) then pass its ref to this prop.
13
- */
14
- parentScrollContainerRef?: MutableRefObject<HTMLDivElement | null>;
15
- /**
16
- * In milliseconds to throttle the onscroll event. Lower the number, better the response time, higher the performance cost.
17
- */
18
- scrollThrottle?: number;
19
- /**
20
- * Executes this function whenever you scroll to a new ScrollSpy child Element, callback returns the id of that Element as well.
21
- */
22
- onUpdateCallback?: (id: string) => void;
23
- /**
24
- * Spy will be fired when it has been scrolled offsetTop beyond 50% to the top of the containing element.
25
- */
26
- offsetTop?: number;
27
- /**
28
- * Spy will be fired when it has been scrolled offsetBottom beyond 50% to the bottom of the containing element.
29
- */
30
- offsetBottom?: number;
31
- /**
32
- * To customize the string after data-.
33
- */
34
- useDataAttribute?: string;
35
- /**
36
- * To customize the class added when the Element in view.
37
- */
38
- activeClass?: string;
39
- /**
40
- * Set to false if you want your spy to be active only if more than50% of that div is in the viewport.
41
- */
42
- useBoxMethod?: boolean;
43
- }
44
- declare const TableOfContentPage: {
45
- (props: ScrollSpyProps): JSX.Element;
46
- defaultProps: {
47
- scrollThrottle: number;
48
- offsetTop: number;
49
- offsetBottom: number;
50
- useDataAttribute: string;
51
- activeClass: string;
52
- useBoxMethod: boolean;
53
- };
54
- };
55
- export { default as TableOfContent } from './TableOfContent';
56
- export * from './TableOfContent';
57
- export { TableOfContentPage };
1
+ import { MutableRefObject, ReactNode } from 'react';
2
+ interface ScrollSpyProps {
3
+ /**
4
+ * Each direct child Element should contain an id.
5
+ */
6
+ children: ReactNode;
7
+ /**
8
+ * ref to your navigation container containing items with data-to-scrollspy-id attributes.
9
+ */
10
+ navContainerRef?: MutableRefObject<HTMLDivElement | null>;
11
+ /**
12
+ * If you want to spy only on a particular scrollable container (Element) then pass its ref to this prop.
13
+ */
14
+ parentScrollContainerRef?: MutableRefObject<HTMLDivElement | null>;
15
+ /**
16
+ * In milliseconds to throttle the onscroll event. Lower the number, better the response time, higher the performance cost.
17
+ */
18
+ scrollThrottle?: number;
19
+ /**
20
+ * Executes this function whenever you scroll to a new ScrollSpy child Element, callback returns the id of that Element as well.
21
+ */
22
+ onUpdateCallback?: (id: string) => void;
23
+ /**
24
+ * Spy will be fired when it has been scrolled offsetTop beyond 50% to the top of the containing element.
25
+ */
26
+ offsetTop?: number;
27
+ /**
28
+ * Spy will be fired when it has been scrolled offsetBottom beyond 50% to the bottom of the containing element.
29
+ */
30
+ offsetBottom?: number;
31
+ /**
32
+ * To customize the string after data-.
33
+ */
34
+ useDataAttribute?: string;
35
+ /**
36
+ * To customize the class added when the Element in view.
37
+ */
38
+ activeClass?: string;
39
+ /**
40
+ * Set to false if you want your spy to be active only if more than50% of that div is in the viewport.
41
+ */
42
+ useBoxMethod?: boolean;
43
+ }
44
+ declare const TableOfContentPage: {
45
+ (props: ScrollSpyProps): JSX.Element;
46
+ defaultProps: {
47
+ scrollThrottle: number;
48
+ offsetTop: number;
49
+ offsetBottom: number;
50
+ useDataAttribute: string;
51
+ activeClass: string;
52
+ useBoxMethod: boolean;
53
+ };
54
+ };
55
+ export { default as TableOfContent } from './TableOfContent';
56
+ export * from './TableOfContent';
57
+ export { TableOfContentPage };
@@ -1,21 +1,21 @@
1
- /// <reference types="react" />
2
- export interface SelectedItem {
3
- id: string | number;
4
- name: string;
5
- }
6
- interface TagListProps {
7
- /**
8
- * List of selected item.
9
- */
10
- selectedItems: SelectedItem[];
11
- /**
12
- * onRemoveItem event handler.
13
- */
14
- onRemoveItem?: (SelectedItem: any) => void;
15
- /**
16
- * Custom counter label.
17
- */
18
- counterLabel?: string;
19
- }
20
- declare function TagList({ selectedItems, onRemoveItem, counterLabel }: TagListProps): JSX.Element;
21
- export default TagList;
1
+ /// <reference types="react" />
2
+ export interface SelectedItem {
3
+ id: string | number;
4
+ name: string;
5
+ }
6
+ interface TagListProps {
7
+ /**
8
+ * List of selected item.
9
+ */
10
+ selectedItems: SelectedItem[];
11
+ /**
12
+ * onRemoveItem event handler.
13
+ */
14
+ onRemoveItem?: (SelectedItem: any) => void;
15
+ /**
16
+ * Custom counter label.
17
+ */
18
+ counterLabel?: string;
19
+ }
20
+ declare function TagList({ selectedItems, onRemoveItem, counterLabel }: TagListProps): JSX.Element;
21
+ export default TagList;
@@ -1 +1 @@
1
- export { default as TagList } from './TagList';
1
+ export { default as TagList } from './TagList';
@@ -1,2 +1,2 @@
1
- export * from './Text';
2
- export { default as Text } from './Text';
1
+ export * from './Text';
2
+ export { default as Text } from './Text';
@@ -1,2 +1,2 @@
1
- import { PixelCrop } from 'react-image-crop';
2
- export declare function canvasPreview(image: HTMLImageElement, canvas: HTMLCanvasElement, crop: PixelCrop, scale: number | undefined, rotate: number | undefined, ratio: any): Promise<void>;
1
+ import { PixelCrop } from 'react-image-crop';
2
+ export declare function canvasPreview(image: HTMLImageElement, canvas: HTMLCanvasElement, crop: PixelCrop, scale: number | undefined, rotate: number | undefined, ratio: any): Promise<void>;
@@ -1,2 +1,2 @@
1
- import { PixelCrop } from 'react-image-crop';
2
- export declare function imgPreview(image: HTMLImageElement, crop: PixelCrop, scale: number | undefined, rotate: number | undefined, ratio: any, type: any): Promise<unknown>;
1
+ import { PixelCrop } from 'react-image-crop';
2
+ export declare function imgPreview(image: HTMLImageElement, crop: PixelCrop, scale: number | undefined, rotate: number | undefined, ratio: any, type: any): Promise<unknown>;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export default function Spaces(): JSX.Element;
1
+ /// <reference types="react" />
2
+ export default function Spaces(): JSX.Element;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export default function Spaces(): JSX.Element;
1
+ /// <reference types="react" />
2
+ export default function Spaces(): JSX.Element;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export default function Space(): JSX.Element;
1
+ /// <reference types="react" />
2
+ export default function Space(): JSX.Element;
@@ -1,2 +1,2 @@
1
- export * from './useListOption/useListOption';
2
- export * from './useToggle/useToggle';
1
+ export * from './useListOption/useListOption';
2
+ export * from './useToggle/useToggle';
@@ -1,8 +1,8 @@
1
- export interface ITransform<T> {
2
- name: string;
3
- value: any;
4
- rec: T;
5
- key: any;
6
- isDisabled: boolean;
7
- }
8
- export declare function useListOption<T>(list: T[], nameKey?: string | string[], valueKey?: string | string[], disableList?: string[], separator?: string | ((values: string | string[], item: any, index: any) => string)): ITransform<T>[];
1
+ export interface ITransform<T> {
2
+ name: string;
3
+ value: any;
4
+ rec: T;
5
+ key: any;
6
+ isDisabled: boolean;
7
+ }
8
+ export declare function useListOption<T>(list: T[], nameKey?: string | string[], valueKey?: string | string[], disableList?: string[], separator?: string | ((values: string | string[], item: any, index: any) => string)): ITransform<T>[];
@@ -1 +1 @@
1
- export declare const useToggle: (initialValue: boolean) => [boolean, (nextValue?: any) => void];
1
+ export declare const useToggle: (initialValue: boolean) => [boolean, (nextValue?: any) => void];
package/src/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export * from './majoo-provider';
2
+ export * from './colors';
3
+ export * from './layout';
4
+ export * from './components';
5
+ export * from './hooks';
@@ -1 +1 @@
1
- export { default as Box } from './Box';
1
+ export { default as Box } from './Box';
@@ -1,2 +1,2 @@
1
- export * from './Flex';
2
- export { default as Flex } from './Flex';
1
+ export * from './Flex';
2
+ export { default as Flex } from './Flex';
@@ -1,2 +1,2 @@
1
- export * from './Grid';
2
- export { default as Grid } from './Grid';
1
+ export * from './Grid';
2
+ export { default as Grid } from './Grid';
@@ -1,4 +1,4 @@
1
- export * from './box';
2
- export * from './flex';
3
- export * from './grid';
4
- export * from './pageContainer';
1
+ export * from './box';
2
+ export * from './flex';
3
+ export * from './grid';
4
+ export * from './pageContainer';
@@ -1,11 +1,11 @@
1
- import { CSS } from '../config/stitches.config';
2
- export declare type BaseRadixProps = {
3
- /**
4
- * Change the component to the HTML tag or custom component of the only child.
5
- * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
6
- */
7
- asChild?: boolean;
8
- css?: CSS;
9
- };
10
- export declare type BaseRadixNoCss = Omit<BaseRadixProps, 'css'>;
11
- export declare type PopoverPlacement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
1
+ import { CSS } from '../config/stitches.config';
2
+ export type BaseRadixProps = {
3
+ /**
4
+ * Change the component to the HTML tag or custom component of the only child.
5
+ * This will merge the original component props with the props of the supplied element/component and change the underlying DOM node.
6
+ */
7
+ asChild?: boolean;
8
+ css?: CSS;
9
+ };
10
+ export type BaseRadixNoCss = Omit<BaseRadixProps, 'css'>;
11
+ export type PopoverPlacement = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
@@ -0,0 +1 @@
1
+ export type NumericalSizingLiteral = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
@@ -1,14 +1,14 @@
1
- export declare function upload({ url, file, customBody, tokenKey, token, progress, reqKey, resKey, onError, onSuccess, onProgress, }: {
2
- url: any;
3
- file: any;
4
- customBody: any;
5
- tokenKey: any;
6
- token: any;
7
- progress: any;
8
- reqKey: any;
9
- resKey: any;
10
- onError: any;
11
- onSuccess: any;
12
- onProgress: any;
13
- }): Promise<unknown>;
14
- export declare const catchError: (e: any) => string;
1
+ export declare function upload({ url, file, customBody, tokenKey, token, progress, reqKey, resKey, onError, onSuccess, onProgress, }: {
2
+ url: any;
3
+ file: any;
4
+ customBody: any;
5
+ tokenKey: any;
6
+ token: any;
7
+ progress: any;
8
+ reqKey: any;
9
+ resKey: any;
10
+ onError: any;
11
+ onSuccess: any;
12
+ onProgress: any;
13
+ }): Promise<unknown>;
14
+ export declare const catchError: (e: any) => string;
@@ -1,2 +1,2 @@
1
- declare const useNavigatorOnLine: () => boolean;
2
- export default useNavigatorOnLine;
1
+ declare const useNavigatorOnLine: () => boolean;
2
+ export default useNavigatorOnLine;
@@ -1,4 +1,4 @@
1
- import { CSS } from "../config/stitches.config";
2
- import { NumericalSizingLiteral } from "../type/stitches.types";
3
- export declare function seqNumberVariants(variantFn: (value: number) => CSS, max: number): Record<NumericalSizingLiteral, CSS>;
4
- export declare const range1: (n: any, fromOne: any) => number[];
1
+ import { CSS } from "../config/stitches.config";
2
+ import { NumericalSizingLiteral } from "../type/stitches.types";
3
+ export declare function seqNumberVariants(variantFn: (value: number) => CSS, max: number): Record<NumericalSizingLiteral, CSS>;
4
+ export declare const range1: (n: any, fromOne: any) => number[];
@@ -1 +0,0 @@
1
- export {};
@@ -1,163 +0,0 @@
1
- import * as React from 'react';
2
- import type * as Stitches from '@stitches/react';
3
- import { CSS } from '../../config/stitches.config';
4
- export declare const ButtonPrimitive: import("@stitches/react/types/styled-component").StyledComponent<"button", {
5
- buttonType?: "primary" | "secondary" | "ghost" | "ghost-secondary" | "negative" | "negative-secondary" | "negative-ghost" | "headerMenu" | "tableMenu" | undefined;
6
- size?: "sm" | "md" | "lg" | "xs" | undefined;
7
- iconSize?: "sm" | "md" | "lg" | "xs" | undefined;
8
- hidden?: boolean | "true" | undefined;
9
- withIcon?: boolean | "true" | undefined;
10
- mobileOnly?: boolean | "true" | undefined;
11
- desktopOnly?: boolean | "true" | undefined;
12
- }, {
13
- sm: "(min-width: 359px)";
14
- md: "(min-width: 767px)";
15
- lg: "(min-width: 1023px)";
16
- xl: "(min-width: 1199px)";
17
- '2xl': "(min-width: 1399px)";
18
- '3xl': "(min-width: 1600px)";
19
- }, import("@stitches/react/types/css-util").CSS<{
20
- sm: "(min-width: 359px)";
21
- md: "(min-width: 767px)";
22
- lg: "(min-width: 1023px)";
23
- xl: "(min-width: 1199px)";
24
- '2xl': "(min-width: 1399px)";
25
- '3xl': "(min-width: 1600px)";
26
- }, {
27
- colors: unknown;
28
- space: unknown;
29
- shadows: unknown;
30
- fontSizes: unknown;
31
- fonts: unknown;
32
- lineHeights: unknown;
33
- letterSpacings: unknown;
34
- radii: unknown;
35
- sizes: unknown;
36
- zIndices: unknown;
37
- toastPosition: unknown;
38
- }, import("@stitches/react/types/config").DefaultThemeMap, {
39
- m: (value: {
40
- readonly [Stitches.$$ScaleValue]: "space";
41
- }) => {
42
- margin: {
43
- readonly [Stitches.$$ScaleValue]: "space";
44
- };
45
- };
46
- mt: (value: {
47
- readonly [Stitches.$$ScaleValue]: "space";
48
- }) => {
49
- marginTop: {
50
- readonly [Stitches.$$ScaleValue]: "space";
51
- };
52
- };
53
- mr: (value: {
54
- readonly [Stitches.$$ScaleValue]: "space";
55
- }) => {
56
- marginRight: {
57
- readonly [Stitches.$$ScaleValue]: "space";
58
- };
59
- };
60
- mb: (value: {
61
- readonly [Stitches.$$ScaleValue]: "space";
62
- }) => {
63
- marginBottom: {
64
- readonly [Stitches.$$ScaleValue]: "space";
65
- };
66
- };
67
- ml: (value: {
68
- readonly [Stitches.$$ScaleValue]: "space";
69
- }) => {
70
- marginLeft: {
71
- readonly [Stitches.$$ScaleValue]: "space";
72
- };
73
- };
74
- mx: (value: {
75
- readonly [Stitches.$$ScaleValue]: "space";
76
- }) => {
77
- marginLeft: {
78
- readonly [Stitches.$$ScaleValue]: "space";
79
- };
80
- marginRight: {
81
- readonly [Stitches.$$ScaleValue]: "space";
82
- };
83
- };
84
- my: (value: {
85
- readonly [Stitches.$$ScaleValue]: "space";
86
- }) => {
87
- marginTop: {
88
- readonly [Stitches.$$ScaleValue]: "space";
89
- };
90
- marginBottom: {
91
- readonly [Stitches.$$ScaleValue]: "space";
92
- };
93
- };
94
- size: (value: {
95
- readonly [Stitches.$$PropertyValue]: "width";
96
- }) => {
97
- width: {
98
- readonly [Stitches.$$PropertyValue]: "width";
99
- };
100
- height: {
101
- readonly [Stitches.$$PropertyValue]: "width";
102
- };
103
- };
104
- subtleColor: (value: string) => {
105
- color: string;
106
- backgroundColor: string;
107
- };
108
- }>>;
109
- interface AdditionalButtonProps extends React.ComponentPropsWithoutRef<'button'> {
110
- /**
111
- * Specify whether the button should be disabled, or not
112
- */
113
- disabled?: boolean;
114
- /**
115
- * Specify whether the button should be displayed as block and 100% width , or not
116
- */
117
- block?: boolean;
118
- /**
119
- * Specify the button width
120
- */
121
- width?: string | number;
122
- /**
123
- * Specify the button left icon component
124
- */
125
- leftIcon?: React.ReactNode;
126
- /**
127
- * Specify the button right icon component
128
- */
129
- rightIcon?: React.ReactNode;
130
- /**
131
- * Specify whether the Button children is icon only , or not
132
- */
133
- icon?: boolean;
134
- /**
135
- * Additional css styles
136
- */
137
- css?: CSS;
138
- /**
139
- * If the condition is true, the button will only be displayed in mobile view
140
- */
141
- mobileOnly?: boolean;
142
- /**
143
- * If the condition is true, the button will only be displayed in desktop view
144
- */
145
- desktopOnly?: boolean;
146
- }
147
- export declare const Button: React.ForwardRefExoticComponent<import("@stitches/react/types/styled-component").TransformProps<{
148
- buttonType?: "primary" | "secondary" | "ghost" | "ghost-secondary" | "negative" | "negative-secondary" | "negative-ghost" | "headerMenu" | "tableMenu" | undefined;
149
- size?: "sm" | "md" | "lg" | "xs" | undefined;
150
- iconSize?: "sm" | "md" | "lg" | "xs" | undefined;
151
- hidden?: boolean | "true" | undefined;
152
- withIcon?: boolean | "true" | undefined;
153
- mobileOnly?: boolean | "true" | undefined;
154
- desktopOnly?: boolean | "true" | undefined;
155
- }, {
156
- sm: "(min-width: 359px)";
157
- md: "(min-width: 767px)";
158
- lg: "(min-width: 1023px)";
159
- xl: "(min-width: 1199px)";
160
- '2xl': "(min-width: 1399px)";
161
- '3xl': "(min-width: 1600px)";
162
- }> & AdditionalButtonProps & React.RefAttributes<HTMLButtonElement>>;
163
- export default Button;