@producteca/producteca-ui-kit 1.104.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.
@@ -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';
@@ -12,3 +12,4 @@ export * from './generatingState';
12
12
  export * from './pickChannelModal';
13
13
  export * from './fileRow';
14
14
  export * from './permissionSelector';
15
+ export * from './statusIndicator';
@@ -0,0 +1 @@
1
+ export { StatusIndicator } from './statusIndicator';
@@ -0,0 +1,2 @@
1
+ export { StatusIndicator } from './statusIndicator';
2
+ export type { StatusIndicatorProps, StatusIndicatorStatus } from './statusIndicator.types';
@@ -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,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,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 {};
@@ -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;
@@ -702,5 +702,30 @@ declare const _default: {
702
702
  itemsLabel: string;
703
703
  };
704
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
+ };
705
730
  };
706
731
  export default _default;
@@ -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;