@loja-integrada/admin-components 0.18.23 → 0.18.25
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/Icons/icons-path/EyeSlash.d.ts +2 -0
- package/dist/Icons/icons-path/Rocket.d.ts +2 -0
- package/dist/Icons/icons-path/index.d.ts +2 -0
- package/dist/Indicators/Badge/Badge.d.ts +11 -1
- package/dist/Layout/ListActions/ListActions.d.ts +42 -0
- package/dist/Layout/ListActions/ListActions.spec.d.ts +1 -0
- package/dist/Layout/ListActions/ListActions.stories.d.ts +4 -0
- package/dist/Layout/ListActions/index.d.ts +1 -0
- package/dist/Layout/index.d.ts +1 -0
- package/dist/admin-components.cjs.development.js +1353 -73
- 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 +1353 -74
- package/dist/admin-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Forms/Checkbox/Checkbox.tsx +2 -2
- package/src/Icons/icons-path/EyeSlash.tsx +9 -0
- package/src/Icons/icons-path/Rocket.tsx +22 -0
- package/src/Icons/icons-path/index.ts +4 -0
- package/src/Indicators/Badge/Badge.spec.tsx +21 -0
- package/src/Indicators/Badge/Badge.tsx +25 -5
- package/src/Layout/ListActions/ListActions.spec.tsx +23 -0
- package/src/Layout/ListActions/ListActions.stories.tsx +71 -0
- package/src/Layout/ListActions/ListActions.tsx +149 -0
- package/src/Layout/ListActions/index.tsx +1 -0
- package/src/Layout/index.ts +1 -0
|
@@ -8,11 +8,17 @@ declare const badgeTypes: {
|
|
|
8
8
|
warning: string;
|
|
9
9
|
focus: string;
|
|
10
10
|
};
|
|
11
|
+
declare const badgeRounded: {
|
|
12
|
+
full: string;
|
|
13
|
+
small: string;
|
|
14
|
+
none: string;
|
|
15
|
+
};
|
|
11
16
|
declare const badgeSizes: {
|
|
12
17
|
default: string;
|
|
13
18
|
small: string;
|
|
19
|
+
xsmall: string;
|
|
14
20
|
};
|
|
15
|
-
export declare const Badge: React.MemoExoticComponent<({ type, text, size, expanded, }: BadgeProps) => JSX.Element>;
|
|
21
|
+
export declare const Badge: React.MemoExoticComponent<({ type, text, size, expanded, rounded, }: BadgeProps) => JSX.Element>;
|
|
16
22
|
export interface BadgeProps {
|
|
17
23
|
/** Badge color
|
|
18
24
|
* @default neutral
|
|
@@ -30,5 +36,9 @@ export interface BadgeProps {
|
|
|
30
36
|
* Enlarge width of the badge
|
|
31
37
|
* */
|
|
32
38
|
expanded?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Style of rounded corners
|
|
41
|
+
* */
|
|
42
|
+
rounded?: keyof typeof badgeRounded;
|
|
33
43
|
}
|
|
34
44
|
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { IconProps } from '../../Icons';
|
|
3
|
+
export interface ListActionsTagProps {
|
|
4
|
+
type: ListActionButtonProps['tagType'];
|
|
5
|
+
text?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const ListActions: React.MemoExoticComponent<({ actions, isVisible, }: ListActionsProps) => JSX.Element>;
|
|
8
|
+
export interface ListActionsButtons {
|
|
9
|
+
buttons: ListActionButtonProps[];
|
|
10
|
+
}
|
|
11
|
+
export interface ListActionsProps {
|
|
12
|
+
/**
|
|
13
|
+
* Actions of list
|
|
14
|
+
*/
|
|
15
|
+
actions: ListActionsButtons[];
|
|
16
|
+
/**
|
|
17
|
+
* Visibility of component
|
|
18
|
+
*/
|
|
19
|
+
isVisible?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface ListActionButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
22
|
+
/**
|
|
23
|
+
* Button tag
|
|
24
|
+
*/
|
|
25
|
+
tagType?: 'new' | 'sign';
|
|
26
|
+
/**
|
|
27
|
+
* Button tag text
|
|
28
|
+
*/
|
|
29
|
+
tagText?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Button icon
|
|
32
|
+
*/
|
|
33
|
+
icon: IconProps['icon'];
|
|
34
|
+
/**
|
|
35
|
+
* Button text
|
|
36
|
+
*/
|
|
37
|
+
text: string | React.ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Button type
|
|
40
|
+
*/
|
|
41
|
+
variant?: 'default' | 'danger';
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ListActionsProps } from '.';
|
|
2
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, ListActionsProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListActions';
|