@loja-integrada/admin-components 0.19.4 → 0.19.6
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/TabsItem.d.ts +1 -1
- package/dist/Components/Tabs/TabsItem.interface.d.ts +5 -0
- package/dist/Icons/icons-path/Table.d.ts +2 -0
- package/dist/Icons/icons-path/index.d.ts +1 -0
- package/dist/Indicators/InformationBox/InformationBox.d.ts +9 -1
- package/dist/admin-components.cjs.development.js +415 -55
- package/dist/admin-components.cjs.development.js.map +1 -1
- package/dist/admin-components.cjs.production.min.js +1 -1
- package/dist/admin-components.cjs.production.min.js.map +1 -1
- package/dist/admin-components.esm.js +415 -55
- package/dist/admin-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Components/Tabs/Tabs.spec.tsx +7 -0
- package/src/Components/Tabs/Tabs.stories.tsx +8 -1
- package/src/Components/Tabs/TabsItem.interface.ts +4 -0
- package/src/Components/Tabs/TabsItem.tsx +2 -0
- package/src/Icons/icons-path/Table.tsx +9 -0
- package/src/Icons/icons-path/index.ts +2 -0
- package/src/Indicators/InformationBox/InformationBox.spec.tsx +6 -0
- package/src/Indicators/InformationBox/InformationBox.tsx +30 -2
|
@@ -10,5 +10,5 @@ interface TabsItemProps extends TabsItemInterface {
|
|
|
10
10
|
*/
|
|
11
11
|
onChange: (arg0: string) => void;
|
|
12
12
|
}
|
|
13
|
-
export declare const TabsItem: ({ id, title, active, disabled, onChange, }: TabsItemProps) => JSX.Element;
|
|
13
|
+
export declare const TabsItem: ({ id, title, titleComplement, active, disabled, onChange, }: TabsItemProps) => JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface TabsItemInterface {
|
|
2
3
|
/**
|
|
3
4
|
* Item identification
|
|
@@ -7,6 +8,10 @@ export interface TabsItemInterface {
|
|
|
7
8
|
* Item visible title
|
|
8
9
|
*/
|
|
9
10
|
title: string;
|
|
11
|
+
/**
|
|
12
|
+
* Complement to title
|
|
13
|
+
* */
|
|
14
|
+
titleComplement?: string | React.ReactNode;
|
|
10
15
|
/**
|
|
11
16
|
* Disabled a specific tab
|
|
12
17
|
*/
|
|
@@ -8,7 +8,7 @@ declare const InformationBoxTypes: Record<InformationBoxTypesOptions, {
|
|
|
8
8
|
icon: IconProps['icon'];
|
|
9
9
|
iconClass: string;
|
|
10
10
|
}>;
|
|
11
|
-
export declare const InformationBox: React.MemoExoticComponent<({ type, subtitle,
|
|
11
|
+
export declare const InformationBox: React.MemoExoticComponent<({ type, title, subtitle, showClose, onClose, }: InformationBoxProps) => JSX.Element | null>;
|
|
12
12
|
export interface InformationBoxProps {
|
|
13
13
|
/** InformationBox color
|
|
14
14
|
* @default info
|
|
@@ -22,5 +22,13 @@ export interface InformationBoxProps {
|
|
|
22
22
|
* InformationBox text below title
|
|
23
23
|
*/
|
|
24
24
|
subtitle?: string | React.ReactNode;
|
|
25
|
+
/** Show close button
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
showClose?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Function to close InformationBox (also activate `showClose`)
|
|
31
|
+
*/
|
|
32
|
+
onClose?: () => void;
|
|
25
33
|
}
|
|
26
34
|
export {};
|