prometeo-design-system 7.1.9 → 7.2.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/RecurrentDatePicker.es.js +1 -1
- package/dist/{Select-Cm9OUOjN.js → Select-CqnQ5CMx.js} +1 -1
- package/dist/Select.es.js +1 -1
- package/dist/SelectSearch.es.js +1 -1
- package/dist/components/Chat/Chat.d.ts +8 -0
- package/dist/components/ChatCard/ChatCard.d.ts +14 -0
- package/dist/components/ChatCard/ChatCard.types.d.ts +43 -0
- package/dist/components/ChatCard/ChatCardContext.d.ts +3 -0
- package/dist/components/ChatCard/formatDate.d.ts +1 -0
- package/dist/components/Link/Link.d.ts +4 -0
- package/dist/components/Link/Link.types.d.ts +20 -0
- package/dist/exports/Chat.d.ts +2 -0
- package/dist/exports/ChatCard.d.ts +2 -0
- package/dist/exports/Link.d.ts +2 -0
- package/dist/index.d.ts +6 -0
- package/dist/prometeo-design-system.es.js +929 -618
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/styles/base.css +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as l } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
2
|
import O, { useMemo as M, memo as g, useRef as C, useCallback as p, useState as W, useEffect as I } from "react";
|
|
3
3
|
import { D as R } from "./DatePicker-CcRHWIOk.js";
|
|
4
|
-
import { S as m } from "./Select-
|
|
4
|
+
import { S as m } from "./Select-CqnQ5CMx.js";
|
|
5
5
|
import _ from "./Input.es.js";
|
|
6
6
|
import A from "./CheckBox.es.js";
|
|
7
7
|
import { c as k } from "./cn-B6yFEsav.js";
|
|
@@ -589,7 +589,7 @@ const xt = oe(function({
|
|
|
589
589
|
onRemoveGroup: g,
|
|
590
590
|
resolveOptionId: h
|
|
591
591
|
}) {
|
|
592
|
-
return r === 0 ? c ? /* @__PURE__ */ a.jsx("span", { className: "text-neutral-tertiary-default pyrion-fonts-body-
|
|
592
|
+
return r === 0 ? c ? /* @__PURE__ */ a.jsx("span", { className: "text-neutral-tertiary-default pyrion-fonts-body-medium line-clamp-1 truncate", children: c }) : null : n === "compact" ? /* @__PURE__ */ a.jsxs("span", { className: "line-clamp-1 truncate", children: [
|
|
593
593
|
r,
|
|
594
594
|
" seleccionados"
|
|
595
595
|
] }) : /* @__PURE__ */ a.jsx(
|
package/dist/Select.es.js
CHANGED
package/dist/SelectSearch.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as Q } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
2
|
import { g as M } from "./utils-X4-h3cum.js";
|
|
3
3
|
import { useState as z, useRef as x, useEffect as F, useCallback as f, useMemo as W } from "react";
|
|
4
|
-
import { S as X } from "./Select-
|
|
4
|
+
import { S as X } from "./Select-CqnQ5CMx.js";
|
|
5
5
|
const pe = {
|
|
6
6
|
fetch_in_open: "on-open",
|
|
7
7
|
fetch_on_type: "on-search"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CardBackgroundProps } from '../CardBackground/CardBackground';
|
|
3
|
+
export interface ChatProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
cardBackground?: Omit<CardBackgroundProps, "children">;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare const Chat: React.NamedExoticComponent<ChatProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export default Chat;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChatCardProps, ChatCardContentProps, ChatCardTextProps, ChatCardFooterProps, ChatParticipantProps } from './ChatCard.types';
|
|
2
|
+
declare const ChatCardContent: import('react').NamedExoticComponent<ChatCardContentProps>;
|
|
3
|
+
declare const ChatCardText: import('react').NamedExoticComponent<ChatCardTextProps>;
|
|
4
|
+
declare const ChatCardFooter: import('react').NamedExoticComponent<ChatCardFooterProps>;
|
|
5
|
+
declare const _ChatCard: import('react').ForwardRefExoticComponent<ChatCardProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const ChatCard: typeof _ChatCard & {
|
|
7
|
+
Content: typeof ChatCardContent;
|
|
8
|
+
Text: typeof ChatCardText;
|
|
9
|
+
Footer: typeof ChatCardFooter;
|
|
10
|
+
Participant: typeof ChatParticipant;
|
|
11
|
+
};
|
|
12
|
+
declare function ChatParticipant({ direction, avatar, link, children, className, }: ChatParticipantProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default ChatCard;
|
|
14
|
+
export type { ChatCardProps, ChatParticipantProps, ChatCardDirection, } from './ChatCard.types';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AvatarProps } from '../Avatar/avatarTypes';
|
|
3
|
+
import { CardBackgroundProps } from '../CardBackground/CardBackground';
|
|
4
|
+
export type ChatCardDirection = "left" | "right";
|
|
5
|
+
export interface ChatParticipantContextValue {
|
|
6
|
+
direction: ChatCardDirection;
|
|
7
|
+
avatar: AvatarProps;
|
|
8
|
+
link: {
|
|
9
|
+
label: string;
|
|
10
|
+
href?: string;
|
|
11
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface ChatCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
cardBackground?: Omit<CardBackgroundProps, "children">;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ChatCardContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export interface ChatCardTextProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
export interface ChatCardFooterProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
26
|
+
/** Fecha del mensaje. Date → DD/MM/YYYY, HH:MM | string → as-is (ej: "hace 2 min") */
|
|
27
|
+
date?: Date | string;
|
|
28
|
+
/** Slot izquierdo — estado de lectura, indicadores, etc. */
|
|
29
|
+
leftSlot?: React.ReactNode;
|
|
30
|
+
/** Slot derecho — generalmente un IconButton de acciones */
|
|
31
|
+
actions?: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
export interface ChatParticipantProps {
|
|
34
|
+
direction: ChatCardDirection;
|
|
35
|
+
avatar: AvatarProps;
|
|
36
|
+
link: {
|
|
37
|
+
label: string;
|
|
38
|
+
href?: string;
|
|
39
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
40
|
+
};
|
|
41
|
+
children: React.ReactNode;
|
|
42
|
+
className?: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatChatDate(date: Date | string | undefined): string | undefined;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type LinkSize = "medium" | "large";
|
|
3
|
+
export type LinkColor = "brand" | "neutral";
|
|
4
|
+
type LinkBaseProps = {
|
|
5
|
+
size?: LinkSize;
|
|
6
|
+
color?: LinkColor;
|
|
7
|
+
withBackground?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
children?: React.ReactNode | (() => React.ReactNode);
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export type LinkAsAnchor = LinkBaseProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "disabled"> & {
|
|
13
|
+
href: string;
|
|
14
|
+
};
|
|
15
|
+
export type LinkAsButton = LinkBaseProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "disabled"> & {
|
|
16
|
+
href?: never;
|
|
17
|
+
};
|
|
18
|
+
export type LinkProps = LinkAsAnchor | LinkAsButton;
|
|
19
|
+
export declare function isAnchorProps(props: LinkProps): props is LinkAsAnchor;
|
|
20
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ export { default as Button } from './components/Button/Button';
|
|
|
5
5
|
export { CardProfile } from './components/CardProfile/CardProfile';
|
|
6
6
|
export { default as Check } from './components/Check/Check';
|
|
7
7
|
export { default as CheckBox } from './components/CheckBox/CheckBox';
|
|
8
|
+
export { default as ChatCard } from './components/ChatCard/ChatCard';
|
|
9
|
+
export type { ChatCardProps, ChatParticipantProps, ChatCardDirection, } from './components/ChatCard/ChatCard.types';
|
|
10
|
+
export { default as Chat } from './components/Chat/Chat';
|
|
11
|
+
export type { ChatProps } from './components/Chat/Chat';
|
|
8
12
|
export { default as Modal } from './components/Modal/Modal';
|
|
9
13
|
export { default as DesktopModal } from './components/Modal/DesktopModal';
|
|
10
14
|
/** @deprecated Use `Modal` */
|
|
@@ -26,6 +30,8 @@ export { default as InputPassword } from './components/InputPassword/InputPasswo
|
|
|
26
30
|
export { default as InputLegacy } from './components/InputLegacy/Input';
|
|
27
31
|
export { default as InputMultiple } from './components/InputMultiple/InputMultiple';
|
|
28
32
|
export { default as Logo } from './components/Logo/Logo';
|
|
33
|
+
export { default as Link } from './components/Link/Link';
|
|
34
|
+
export type { LinkProps, LinkSize, LinkColor } from './components/Link/Link.types';
|
|
29
35
|
export { default as Menu } from './components/Menu/Menu';
|
|
30
36
|
export { default as MenuList } from './components/MenuList/MenuList';
|
|
31
37
|
export { default as Pagination } from './components/Pagination/Pagination';
|