master-components-react-ts 2.11.12 → 2.11.14
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/Provider/Color.types.d.ts +14 -0
- package/dist/Provider/ColorVariables.d.ts +14 -0
- package/dist/Provider/ThemeProvider.d.ts +1 -7
- package/dist/components/Tabs/Tabs.d.ts +2 -2
- package/dist/components/Tabs/Tabs.types.d.ts +3 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1160 -1138
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type ThemeColors = {
|
|
2
|
+
buttonPrimaryDefault?: string;
|
|
3
|
+
buttonPrimaryHover?: string;
|
|
4
|
+
buttonPrimaryPressed?: string;
|
|
5
|
+
buttonPrimaryDisabled?: string;
|
|
6
|
+
buttonPrimaryText?: string;
|
|
7
|
+
buttonPrimaryDisabledText?: string;
|
|
8
|
+
buttonSecondaryDefault?: string;
|
|
9
|
+
buttonSecondaryHover?: string;
|
|
10
|
+
buttonSecondaryPressed?: string;
|
|
11
|
+
buttonSecondaryDisabled?: string;
|
|
12
|
+
buttonSecondaryText?: string;
|
|
13
|
+
buttonSecondaryDisabledText?: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const variableMap: {
|
|
2
|
+
readonly buttonPrimaryDefault: "--button-primary-default";
|
|
3
|
+
readonly buttonPrimaryHover: "--button-primary-hover";
|
|
4
|
+
readonly buttonPrimaryPressed: "--button-primary-pressed";
|
|
5
|
+
readonly buttonPrimaryDisabled: "--button-primary-disabled";
|
|
6
|
+
readonly buttonPrimaryText: "--button-primary-text";
|
|
7
|
+
readonly buttonPrimaryDisabledText: "--button-primary-disabled-text";
|
|
8
|
+
readonly buttonSecondaryDefault: "--button-secondary-default";
|
|
9
|
+
readonly buttonSecondaryHover: "--button-secondary-hover";
|
|
10
|
+
readonly buttonSecondaryPressed: "--button-secondary-pressed";
|
|
11
|
+
readonly buttonSecondaryDisabled: "--button-secondary-disabled";
|
|
12
|
+
readonly buttonSecondaryText: "--button-secondary-text";
|
|
13
|
+
readonly buttonSecondaryDisabledText: "--button-secondary-disabled-text";
|
|
14
|
+
};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
primaryBackgroundColor?: string;
|
|
4
|
-
primaryHoverColor?: string;
|
|
5
|
-
primaryActiveColor?: string;
|
|
6
|
-
primaryActiveOutlineColor?: string;
|
|
7
|
-
primaryLabelColor?: string;
|
|
8
|
-
};
|
|
2
|
+
import { ThemeColors } from './Color.types';
|
|
9
3
|
export type ThemeProviderProps = {
|
|
10
4
|
children: ReactNode;
|
|
11
5
|
theme?: ThemeColors;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TabsProps } from './Tabs.types';
|
|
2
2
|
declare const Tabs: {
|
|
3
|
-
({ tabsData, onItemClick, tabContainerStyle, singleTabStyle, }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
propKeys: readonly ["tabsData", "onItemClick", "tabContainerStyle", "singleTabStyle"];
|
|
3
|
+
({ tabsData, onItemClick, tabContainerStyle, singleTabStyle, variant }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
propKeys: readonly ["tabsData", "onItemClick", "tabContainerStyle", "singleTabStyle", "variant"];
|
|
5
5
|
displayName: string;
|
|
6
6
|
description: string;
|
|
7
7
|
};
|
|
@@ -2,10 +2,13 @@ export type TabType = {
|
|
|
2
2
|
label: string;
|
|
3
3
|
id: string | number;
|
|
4
4
|
active?: boolean;
|
|
5
|
+
leftSlot?: React.ReactNode;
|
|
6
|
+
rightSlot?: React.ReactNode;
|
|
5
7
|
};
|
|
6
8
|
export interface TabsProps {
|
|
7
9
|
tabsData: TabType[];
|
|
8
10
|
onItemClick: (tab: TabType) => void;
|
|
9
11
|
tabContainerStyle?: React.CSSProperties;
|
|
10
12
|
singleTabStyle?: React.CSSProperties;
|
|
13
|
+
variant?: 'default' | 'pill';
|
|
11
14
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as ThemeProvider } from './Provider/ThemeProvider';
|
|
2
|
-
export type { ThemeColors
|
|
2
|
+
export type { ThemeColors } from './Provider/Color.types';
|
|
3
|
+
export type { ThemeProviderProps } from './Provider/ThemeProvider';
|
|
3
4
|
export { default as MainButton } from './components/MainButton/MainButton';
|
|
4
5
|
export type { MainButtonProps } from './components/MainButton/MainButton.types';
|
|
5
6
|
export { default as FormInput } from './components/FormInput/FormInput';
|