react-magma-dom 4.10.0-next.11 → 4.10.0-next.13
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/components/Tabs/CustomTab.d.ts +7 -0
- package/dist/components/Tabs/Tab.d.ts +6 -0
- package/dist/esm/index.js +66 -44
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/properties.json +12 -12
- package/dist/react-magma-dom.cjs.development.js +66 -43
- package/dist/react-magma-dom.cjs.development.js.map +1 -1
- package/dist/react-magma-dom.cjs.production.min.js +1 -1
- package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TabProps } from './Tab';
|
|
3
|
+
/**
|
|
4
|
+
* CustomTab allows full customization of the tab content while preserving tab behavior.
|
|
5
|
+
* You can pass any children (e.g., a Button) and all tab context/props will be handled.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CustomTab: React.ForwardRefExoticComponent<TabProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -8,6 +8,11 @@ export interface TabProps extends React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
8
8
|
*/
|
|
9
9
|
icon?: React.ReactElement<any> | React.ReactElement<any>[];
|
|
10
10
|
isInverse?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* If true, the tab will have no styles and will render the children directly.
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
unstyled?: boolean;
|
|
11
16
|
/**
|
|
12
17
|
* Determines whether the tab appears in all-caps
|
|
13
18
|
* @default TabsTextTransform.uppercase
|
|
@@ -33,6 +38,7 @@ export declare const StyledTabsChild: import("@emotion/styled").StyledComponent<
|
|
|
33
38
|
isInverse?: boolean;
|
|
34
39
|
orientation: TabsOrientation;
|
|
35
40
|
theme: ThemeInterface;
|
|
41
|
+
unstyled?: boolean;
|
|
36
42
|
}, React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
37
43
|
export declare const TabStyles: (props: any) => import("@emotion/react").SerializedStyles;
|
|
38
44
|
export declare const StyledIcon: import("@emotion/styled").StyledComponent<{
|