@producteca/producteca-ui-kit 1.103.0 → 1.105.0
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/inputs/selectField/selectField.d.ts +2 -1
- package/dist/components/patterns/index.d.js +2 -1
- package/dist/components/patterns/index.d.ts +1 -0
- package/dist/components/patterns/statusIndicator/index.d.js +1 -0
- package/dist/components/patterns/statusIndicator/index.d.ts +2 -0
- package/dist/components/patterns/statusIndicator/statusIndicator.d.js +1 -0
- package/dist/components/patterns/statusIndicator/statusIndicator.d.ts +4 -0
- package/dist/components/patterns/statusIndicator/statusIndicator.examples.d.js +1 -0
- package/dist/components/patterns/statusIndicator/statusIndicator.examples.d.ts +7 -0
- package/dist/components/patterns/statusIndicator/statusIndicator.types.d.js +1 -0
- package/dist/components/patterns/statusIndicator/statusIndicator.types.d.ts +23 -0
- package/dist/locales/en.d.ts +9 -0
- package/dist/locales/es.d.ts +26 -0
- package/dist/locales/pt-BR.d.ts +9 -0
- package/dist/playground/ComponentDemos.d.ts +1 -0
- package/dist/producteca-ui-kit.es.js +88 -88
- package/dist/producteca-ui-kit.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -8,10 +8,11 @@ export declare const SingleValue: (props: SingleValueProps<SelectOption> & {
|
|
|
8
8
|
getOptionLabel?: (option: SelectOption) => string;
|
|
9
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export declare const SearchComponent: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const ClearComponent: ({ optionSelected, isClearable, handleChange, }: {
|
|
11
|
+
export declare const ClearComponent: ({ optionSelected, isClearable, handleChange, disabled, }: {
|
|
12
12
|
optionSelected?: SelectOptionType | undefined;
|
|
13
13
|
isClearable: boolean;
|
|
14
14
|
handleChange: (selected: SelectOptionType) => void;
|
|
15
|
+
disabled?: boolean;
|
|
15
16
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
16
17
|
export declare const SelectField: React.FC<SelectFieldProps>;
|
|
17
18
|
export default SelectField;
|
|
@@ -11,4 +11,5 @@ export * from './maintenance/maintenance';
|
|
|
11
11
|
export * from './generatingState';
|
|
12
12
|
export * from './pickChannelModal';
|
|
13
13
|
export * from './fileRow';
|
|
14
|
-
export * from './permissionSelector';
|
|
14
|
+
export * from './permissionSelector';
|
|
15
|
+
export * from './statusIndicator';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { StatusIndicator } from './statusIndicator';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { StatusIndicatorProps } from './statusIndicator.types';
|
|
2
|
+
|
|
3
|
+
export declare const StatusIndicator: ({ iconAlt, bordered, href, label, color, fullWidth, status, target, iconUrl, onClick, className, ...props }: StatusIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default StatusIndicator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StatusIndicatorProps, StatusIndicatorStatus } from './statusIndicator.types';
|
|
2
|
+
|
|
3
|
+
export declare const STATUSES: StatusIndicatorStatus[];
|
|
4
|
+
export declare const CHANNEL_ICON_URL = "https://http2.mlstatic.com/frontend-assets/ml-web-navigation/ui-navigation/6.6.108/mercadolibre/favicon.svg";
|
|
5
|
+
export declare const PUBLICATION_URL = "https://www.producteca.com";
|
|
6
|
+
export declare const renderStatuses: (args: StatusIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const renderFullWidthStatuses: (args: StatusIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HTMLAttributes, MouseEvent } from 'react';
|
|
2
|
+
|
|
3
|
+
export type StatusIndicatorStatus = 'active' | 'paused' | 'pending' | 'rejected' | 'unlinked' | 'multiple' | 'disconnected';
|
|
4
|
+
interface StatusIndicatorBaseProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'color' | 'onClick'> {
|
|
5
|
+
href?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
target?: string;
|
|
8
|
+
iconUrl?: string;
|
|
9
|
+
iconAlt?: string;
|
|
10
|
+
bordered?: boolean;
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
13
|
+
}
|
|
14
|
+
interface PredefinedStatusIndicatorProps extends StatusIndicatorBaseProps {
|
|
15
|
+
label?: string;
|
|
16
|
+
status: StatusIndicatorStatus;
|
|
17
|
+
}
|
|
18
|
+
interface CustomStatusIndicatorProps extends StatusIndicatorBaseProps {
|
|
19
|
+
label: string;
|
|
20
|
+
status?: never;
|
|
21
|
+
}
|
|
22
|
+
export type StatusIndicatorProps = PredefinedStatusIndicatorProps | CustomStatusIndicatorProps;
|
|
23
|
+
export {};
|
package/dist/locales/en.d.ts
CHANGED
|
@@ -86,6 +86,15 @@ declare const _default: {
|
|
|
86
86
|
selectPlaceholder: string;
|
|
87
87
|
selected: string;
|
|
88
88
|
selectedPlural: string;
|
|
89
|
+
statusIndicator: {
|
|
90
|
+
active: string;
|
|
91
|
+
disconnected: string;
|
|
92
|
+
multiple: string;
|
|
93
|
+
paused: string;
|
|
94
|
+
pending: string;
|
|
95
|
+
rejected: string;
|
|
96
|
+
unlinked: string;
|
|
97
|
+
};
|
|
89
98
|
warningModal: {
|
|
90
99
|
dontShowAgain: string;
|
|
91
100
|
warning: string;
|
package/dist/locales/es.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ declare const _default: {
|
|
|
84
84
|
example: string;
|
|
85
85
|
defaultValue: string;
|
|
86
86
|
disabled: string;
|
|
87
|
+
disabledMultiple: string;
|
|
87
88
|
disabledOptions: string;
|
|
88
89
|
noOptions: string;
|
|
89
90
|
withIcon: string;
|
|
@@ -701,5 +702,30 @@ declare const _default: {
|
|
|
701
702
|
itemsLabel: string;
|
|
702
703
|
};
|
|
703
704
|
};
|
|
705
|
+
statusIndicator: {
|
|
706
|
+
active: string;
|
|
707
|
+
paused: string;
|
|
708
|
+
pending: string;
|
|
709
|
+
multiple: string;
|
|
710
|
+
rejected: string;
|
|
711
|
+
unlinked: string;
|
|
712
|
+
customStatus: string;
|
|
713
|
+
customLabel: string;
|
|
714
|
+
disconnected: string;
|
|
715
|
+
channelLogo: string;
|
|
716
|
+
component: string;
|
|
717
|
+
props: {
|
|
718
|
+
target: string;
|
|
719
|
+
bordered: string;
|
|
720
|
+
href: string;
|
|
721
|
+
onClick: string;
|
|
722
|
+
label: string;
|
|
723
|
+
iconAlt: string;
|
|
724
|
+
iconUrl: string;
|
|
725
|
+
fullWidth: string;
|
|
726
|
+
color: string;
|
|
727
|
+
status: string;
|
|
728
|
+
};
|
|
729
|
+
};
|
|
704
730
|
};
|
|
705
731
|
export default _default;
|
package/dist/locales/pt-BR.d.ts
CHANGED
|
@@ -86,6 +86,15 @@ declare const _default: {
|
|
|
86
86
|
selectPlaceholder: string;
|
|
87
87
|
selected: string;
|
|
88
88
|
selectedPlural: string;
|
|
89
|
+
statusIndicator: {
|
|
90
|
+
active: string;
|
|
91
|
+
disconnected: string;
|
|
92
|
+
multiple: string;
|
|
93
|
+
paused: string;
|
|
94
|
+
pending: string;
|
|
95
|
+
rejected: string;
|
|
96
|
+
unlinked: string;
|
|
97
|
+
};
|
|
89
98
|
warningModal: {
|
|
90
99
|
dontShowAgain: string;
|
|
91
100
|
warning: string;
|
|
@@ -27,6 +27,7 @@ export declare const DemoCopyButton: DemoComponent;
|
|
|
27
27
|
export declare const DemoConditionalOperator: DemoComponent;
|
|
28
28
|
export declare const DemoLinkWithIcon: DemoComponent;
|
|
29
29
|
export declare const DemoIconWithIdentifier: DemoComponent;
|
|
30
|
+
export declare const DemoStatusIndicator: DemoComponent;
|
|
30
31
|
export declare const DemoSidebar: DemoComponent;
|
|
31
32
|
export declare const DemoDraggableList: DemoComponent;
|
|
32
33
|
export declare const DemoModal: DemoComponent;
|