react-magma-dom 4.9.0-next.7 → 4.9.0-next.8

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,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { ThemeInterface } from '../../theme/magma';
2
3
  export declare enum ButtonVariant {
3
4
  solid = "solid",
4
5
  link = "link"
@@ -80,7 +81,7 @@ interface BaseButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>
80
81
  /**
81
82
  * @internal
82
83
  */
83
- theme?: any;
84
+ theme?: ThemeInterface;
84
85
  /**
85
86
  * The type attribute of the button
86
87
  * ButtonType.button
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { ThemeInterface } from '../../theme/magma';
2
3
  export declare enum CheckboxTextPosition {
3
4
  left = "left",
4
5
  right = "right"
@@ -88,6 +89,6 @@ export declare const StyledFakeInput: import("@emotion/styled").StyledComponent<
88
89
  hasError?: boolean;
89
90
  hideFocus?: boolean;
90
91
  textPosition?: CheckboxTextPosition;
91
- theme?: any;
92
+ theme?: ThemeInterface;
92
93
  }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
93
94
  export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
@@ -129,7 +129,7 @@ export interface InputBaseProps extends React.InputHTMLAttributes<HTMLInputEleme
129
129
  /**
130
130
  * @internal
131
131
  */
132
- theme?: any;
132
+ theme?: ThemeInterface;
133
133
  /**
134
134
  * The type attribute of the form field
135
135
  * @default InputType.text
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { ThemeInterface } from '../../theme/magma';
2
3
  import { InputIconPosition, InputSize } from '../InputBase';
3
4
  export declare enum LabelPosition {
4
5
  left = "left",
@@ -16,7 +17,7 @@ export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement>
16
17
  * @default InputSize.medium
17
18
  */
18
19
  size?: InputSize;
19
- theme?: any;
20
+ theme?: ThemeInterface;
20
21
  /**
21
22
  * @internal
22
23
  */
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { ThemeInterface } from '../../theme/magma';
2
3
  import { XOR } from '../../utils';
3
4
  import { TabsIconPosition } from '../Tabs';
4
5
  import { TabsOrientation, TabsTextTransform } from '../Tabs/shared';
@@ -38,7 +39,7 @@ export interface BaseNavTabProps extends React.HTMLAttributes<HTMLAnchorElement>
38
39
  /**
39
40
  * @internal
40
41
  */
41
- theme?: any;
42
+ theme?: ThemeInterface;
42
43
  }
43
44
  export interface NavTabChildrenProps extends BaseNavTabProps {
44
45
  children?: JSX.Element | string;
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { ThemeInterface } from '../../theme/magma';
2
3
  import { TypographyVisualStyle, TypographyColor, TypographyContextVariant } from '../Typography';
3
4
  /**
4
5
  * @children required
@@ -37,7 +38,7 @@ export interface ParagraphProps extends React.HTMLAttributes<HTMLParagraphElemen
37
38
  /**
38
39
  * @internal
39
40
  */
40
- theme?: any;
41
+ theme?: ThemeInterface;
41
42
  /**
42
43
  * Applies visual styles including font-size, font-weight, line-height and margins
43
44
  * @default TypographyVisualStyle.bodyMedium
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { TableCellAlign } from './Table';
3
+ import { ThemeInterface } from '../../theme/magma';
3
4
  export interface TableCellProps extends React.HTMLAttributes<HTMLTableCellElement> {
4
5
  /**
5
6
  * Text alignment of the cell content. Right alignment should be used for numeric values
@@ -17,5 +18,5 @@ export interface TableCellProps extends React.HTMLAttributes<HTMLTableCellElemen
17
18
  width?: string | number;
18
19
  }
19
20
  export declare const baseTableCellStyle: (props: any) => import("@emotion/react").SerializedStyles;
20
- export declare function buildCellPaddingStyle(density: any, theme: any): string;
21
+ export declare function buildCellPaddingStyle(density: any, theme: ThemeInterface): string;
21
22
  export declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
@@ -20,7 +20,7 @@ export interface TabProps extends React.ButtonHTMLAttributes<HTMLButtonElement>
20
20
  /**
21
21
  * @internal
22
22
  */
23
- theme?: any;
23
+ theme?: ThemeInterface;
24
24
  }
25
25
  export declare const StyledTabsChild: import("@emotion/styled").StyledComponent<{
26
26
  theme?: import("@emotion/react").Theme;
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { ThemeInterface } from '../../theme/magma';
2
3
  export declare enum ToggleTextPosition {
3
4
  left = "left",
4
5
  right = "right"
@@ -52,7 +53,7 @@ export interface ToggleProps extends React.InputHTMLAttributes<HTMLInputElement>
52
53
  /**
53
54
  * @internal
54
55
  */
55
- theme?: any;
56
+ theme?: ThemeInterface;
56
57
  /**
57
58
  * Style properties for the part of the component that slides back and forth on the track
58
59
  */
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { ThemeInterface } from '../../theme/magma';
2
3
  export interface TypographyProps<T = HTMLParagraphElement> extends React.HTMLAttributes<T> {
3
4
  as?: string;
4
5
  children?: any;
@@ -14,7 +15,7 @@ export interface TypographyProps<T = HTMLParagraphElement> extends React.HTMLAtt
14
15
  * @internal
15
16
  */
16
17
  testId?: string;
17
- theme?: any;
18
+ theme?: ThemeInterface;
18
19
  visualStyle?: TypographyVisualStyle;
19
20
  }
20
21
  export declare enum TypographyColor {
package/dist/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
+ import { css, ClassNames, jsx, Global } from '@emotion/react';
1
2
  import * as React from 'react';
2
3
  import React__default, { createContext, useContext, forwardRef, createElement, Children, cloneElement, useState, useRef, useEffect, Fragment, useCallback, useMemo, useLayoutEffect, isValidElement } from 'react';
3
4
  import _styled from '@emotion/styled/base';
4
- import { css, ClassNames, jsx, Global } from '@emotion/react';
5
5
  import { CloseIcon, InfoIcon, CheckCircleIcon, WarningIcon, ErrorIcon, ChevronRightIcon, ClearIcon, CheckBoxIcon, CheckBoxOutlineBlankIcon, IndeterminateCheckBoxIcon, NorthIcon, SouthIcon, SortDoubleArrowIcon, ArrowDropDownIcon, WestIcon, EastIcon, ArrowBackIcon, ArrowForwardIcon, KeyboardIcon, EventIcon, ArrowDropUpIcon, ArrowRightIcon, ArrowLeftIcon, CheckIcon, ExpandMoreIcon, ExpandLessIcon, ArrowBackIosIcon, ArrowForwardIosIcon, RadioButtonCheckedIcon, RadioButtonUncheckedIcon, SearchIcon, CancelIcon, ScheduleIcon, FolderIcon, ArticleIcon } from 'react-magma-icons';
6
6
  import { v4 } from 'uuid';
7
7
  import ReactDOM__default, { flushSync } from 'react-dom';