prometeo-design-system 8.3.0 → 8.4.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/AttachInput.es.js +10 -10
- package/dist/Calendar.es.js +1 -1
- package/dist/Card.es.js +3 -3
- package/dist/CardProfile.es.js +6 -6
- package/dist/Chat.es.js +1 -1
- package/dist/{ChatCard-O3S0nzbH.js → ChatCard-CkayOQuw.js} +101 -101
- package/dist/ChatCard.es.js +1 -1
- package/dist/Chip.es.js +573 -142
- package/dist/ChipSelect.es.js +19 -19
- package/dist/CodeInput.es.js +221 -235
- package/dist/ColorPicker.es.js +39 -39
- package/dist/DatePicker-CXrFAj-o.js +3856 -0
- package/dist/DatePicker.es.js +1 -1
- package/dist/DatePickerPill.es.js +37 -37
- package/dist/DesktopModal.es.js +2 -2
- package/dist/DialogModal.es.js +1 -1
- package/dist/Drawer.es.js +2 -2
- package/dist/DrawerDesktop.es.js +1 -1
- package/dist/DrawerMobile.es.js +1 -1
- package/dist/DropZone.es.js +1 -1
- package/dist/Icon-500-FormatAlignCenter.d.ts +6 -0
- package/dist/Icon-500-FormatAlignCenter.es.js +19 -0
- package/dist/Icon-500-FormatAlignJustify.d.ts +6 -0
- package/dist/Icon-500-FormatAlignJustify.es.js +19 -0
- package/dist/Icon-500-FormatAlignRight.d.ts +6 -0
- package/dist/Icon-500-FormatAlignRight.es.js +19 -0
- package/dist/Icon-500-FormatH1.d.ts +6 -0
- package/dist/Icon-500-FormatH1.es.js +19 -0
- package/dist/Icon-500-FormatH2.d.ts +6 -0
- package/dist/Icon-500-FormatH2.es.js +19 -0
- package/dist/Icon-500-FormatH3.d.ts +6 -0
- package/dist/Icon-500-FormatH3.es.js +19 -0
- package/dist/Icon-500-FormatH4.d.ts +6 -0
- package/dist/Icon-500-FormatH4.es.js +19 -0
- package/dist/Icon-500-FormatH5.d.ts +6 -0
- package/dist/Icon-500-FormatH5.es.js +19 -0
- package/dist/Icon-500-FormatH6.d.ts +6 -0
- package/dist/Icon-500-FormatH6.es.js +19 -0
- package/dist/Icon-500-FormatStrikethrough.d.ts +6 -0
- package/dist/Icon-500-FormatStrikethrough.es.js +19 -0
- package/dist/Icon-500-HMobiledata.d.ts +6 -0
- package/dist/Icon-500-HMobiledata.es.js +19 -0
- package/dist/Icon-500-Palette.d.ts +6 -0
- package/dist/Icon-500-Palette.es.js +19 -0
- package/dist/Icon-500-Redo.d.ts +6 -0
- package/dist/Icon-500-Redo.es.js +19 -0
- package/dist/Icon-500-Undo.d.ts +6 -0
- package/dist/Icon-500-Undo.es.js +19 -0
- package/dist/Icon-FormatAlignCenter.d.ts +6 -0
- package/dist/Icon-FormatAlignCenter.es.js +19 -0
- package/dist/Icon-FormatAlignJustify.d.ts +6 -0
- package/dist/Icon-FormatAlignJustify.es.js +19 -0
- package/dist/Icon-FormatAlignRight.d.ts +6 -0
- package/dist/Icon-FormatAlignRight.es.js +19 -0
- package/dist/Icon-FormatH1.d.ts +6 -0
- package/dist/Icon-FormatH1.es.js +19 -0
- package/dist/Icon-FormatH2.d.ts +6 -0
- package/dist/Icon-FormatH2.es.js +19 -0
- package/dist/Icon-FormatH3.d.ts +6 -0
- package/dist/Icon-FormatH3.es.js +19 -0
- package/dist/Icon-FormatH4.d.ts +6 -0
- package/dist/Icon-FormatH4.es.js +19 -0
- package/dist/Icon-FormatH5.d.ts +6 -0
- package/dist/Icon-FormatH5.es.js +19 -0
- package/dist/Icon-FormatH6.d.ts +6 -0
- package/dist/Icon-FormatH6.es.js +19 -0
- package/dist/Icon-FormatStrikethrough.d.ts +6 -0
- package/dist/Icon-FormatStrikethrough.es.js +19 -0
- package/dist/Icon-HMobiledata.d.ts +6 -0
- package/dist/Icon-HMobiledata.es.js +19 -0
- package/dist/Icon-Palette.d.ts +6 -0
- package/dist/Icon-Palette.es.js +19 -0
- package/dist/Icon-Redo.d.ts +6 -0
- package/dist/Icon-Redo.es.js +19 -0
- package/dist/Icon-Undo.d.ts +6 -0
- package/dist/Icon-Undo.es.js +19 -0
- package/dist/Icons/500/index.d.ts +14 -0
- package/dist/Icons/components/500/FormatAlignCenter.d.ts +4 -0
- package/dist/Icons/components/500/FormatAlignJustify.d.ts +4 -0
- package/dist/Icons/components/500/FormatAlignRight.d.ts +4 -0
- package/dist/Icons/components/500/FormatH1.d.ts +4 -0
- package/dist/Icons/components/500/FormatH2.d.ts +4 -0
- package/dist/Icons/components/500/FormatH3.d.ts +4 -0
- package/dist/Icons/components/500/FormatH4.d.ts +4 -0
- package/dist/Icons/components/500/FormatH5.d.ts +4 -0
- package/dist/Icons/components/500/FormatH6.d.ts +4 -0
- package/dist/Icons/components/500/FormatStrikethrough.d.ts +4 -0
- package/dist/Icons/components/500/HMobiledata.d.ts +4 -0
- package/dist/Icons/components/500/Palette.d.ts +4 -0
- package/dist/Icons/components/500/Redo.d.ts +4 -0
- package/dist/Icons/components/500/Undo.d.ts +4 -0
- package/dist/Icons/components/FormatAlignCenter.d.ts +4 -0
- package/dist/Icons/components/FormatAlignJustify.d.ts +4 -0
- package/dist/Icons/components/FormatAlignRight.d.ts +4 -0
- package/dist/Icons/components/FormatH1.d.ts +4 -0
- package/dist/Icons/components/FormatH2.d.ts +4 -0
- package/dist/Icons/components/FormatH3.d.ts +4 -0
- package/dist/Icons/components/FormatH4.d.ts +4 -0
- package/dist/Icons/components/FormatH5.d.ts +4 -0
- package/dist/Icons/components/FormatH6.d.ts +4 -0
- package/dist/Icons/components/FormatStrikethrough.d.ts +4 -0
- package/dist/Icons/components/HMobiledata.d.ts +4 -0
- package/dist/Icons/components/Palette.d.ts +4 -0
- package/dist/Icons/components/Redo.d.ts +4 -0
- package/dist/Icons/components/Undo.d.ts +4 -0
- package/dist/Icons/index.d.ts +14 -0
- package/dist/Icons/paths.json.d.ts +31 -2
- package/dist/Icons-500.es.js +270 -242
- package/dist/Icons.es.js +550 -473
- package/dist/ListItem.es.js +1 -1
- package/dist/Menu.es.js +66 -66
- package/dist/Modal.es.js +8 -8
- package/dist/ModuleItem.es.js +1 -1
- package/dist/NavigationDrawer.es.js +4 -4
- package/dist/NavigationRail.es.js +1 -1
- package/dist/NotificationCard.es.js +24 -24
- package/dist/OtpInput.es.js +2 -2
- package/dist/ProfilePictureUpload.es.js +16 -16
- package/dist/PyrionLayout.es.js +1 -1
- package/dist/RecurrentDatePicker.es.js +2 -2
- package/dist/RecurrentDatePickerRRule.es.js +2 -2
- package/dist/SegmentedButton.es.js +1 -1
- package/dist/Select.css +1 -1
- package/dist/Select.es.js +1009 -811
- package/dist/Sidebar.es.js +1 -1
- package/dist/SidebarItem.es.js +11 -11
- package/dist/SplitButton.es.js +3 -3
- package/dist/StarRating.es.js +1 -1
- package/dist/Switch.es.js +3 -78
- package/dist/TabSwitch.es.js +1537 -3
- package/dist/Table.es.js +170 -170
- package/dist/Tabs.es.js +8 -8
- package/dist/TextareaInput.es.js +2 -2
- package/dist/Toggle.es.js +78 -3
- package/dist/Tooltip.es.js +2 -2
- package/dist/UserCard.es.js +16 -16
- package/dist/components/ActionInput/ActionInput.AttachFields.d.ts +1 -1
- package/dist/components/ActionInput/ActionInput.Footer.d.ts +1 -1
- package/dist/components/ActionInput/ActionInput.d.ts +2 -2
- package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/AvatarAndSubavatar.d.ts +1 -1
- package/dist/components/Avatar/AvatarBase.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Breadcrumbs/BreadcrumbEllipsis.d.ts +1 -1
- package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/Breadcrumbs/BreadcrumbsListItem.d.ts +1 -1
- package/dist/components/Calendar/AgendaView.d.ts +1 -1
- package/dist/components/Calendar/Calendar.d.ts +1 -1
- package/dist/components/Calendar/CalendarEventItem.d.ts +1 -1
- package/dist/components/Calendar/CalendarToolbar.d.ts +1 -1
- package/dist/components/Calendar/MonthView.d.ts +1 -1
- package/dist/components/Calendar/TimeGridView.d.ts +1 -1
- package/dist/components/CardBackground/CardBackground.d.ts +1 -1
- package/dist/components/CardProfile/CardProfile.d.ts +6 -6
- package/dist/components/Cards/Message/MessageCard.d.ts +1 -1
- package/dist/components/Chat/ChatGroup.d.ts +1 -1
- package/dist/components/ChatCard/ChatCard.d.ts +1 -1
- package/dist/components/ChipSelect/ChipSelect.d.ts +1 -1
- package/dist/components/Chips/Chip.d.ts +1 -1
- package/dist/components/Chips/PriorityChip.d.ts +1 -1
- package/dist/components/Chips/chipTypes.d.ts +5 -1
- package/dist/components/CodeInput/CodeInput.d.ts +1 -1
- package/dist/components/Collapsible/Collapsible.d.ts +3 -3
- package/dist/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPickerFreeform.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPickerPalette.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/components/DatePickerPill/DatePickerPill.d.ts +1 -1
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Drawer/DrawerPanel.d.ts +1 -1
- package/dist/components/FAB/FAButton.d.ts +1 -1
- package/dist/components/FileCard/FileCard.d.ts +10 -10
- package/dist/components/FileChip/FileChip.d.ts +1 -1
- package/dist/components/Header/Header.d.ts +1 -1
- package/dist/components/Image/Image.d.ts +1 -1
- package/dist/components/Image/LightBox.d.ts +1 -1
- package/dist/components/Logo/Logo.d.ts +1 -1
- package/dist/components/Modal/DesktopModal.d.ts +5 -5
- package/dist/components/Modal/Modal.d.ts +3 -3
- package/dist/components/NavigationDrawer/NavigationDrawer.d.ts +2 -2
- package/dist/components/NavigationRail/NavigationRail.d.ts +2 -2
- package/dist/components/NotificationCard/NotificationCard.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/ProfilePictureUpload/ProfilePictureUpload.d.ts +1 -1
- package/dist/components/PyrionNavigationDrawer/PLActionEntry.d.ts +2 -2
- package/dist/components/PyrionNavigationDrawer/PLHelpSection.d.ts +1 -1
- package/dist/components/PyrionNavigationDrawer/PLModulesRail.d.ts +1 -1
- package/dist/components/PyrionNavigationDrawer/PLNavEntries.d.ts +1 -1
- package/dist/components/PyrionNavigationDrawer/PLNotificationsHyperextensionBottomSlot.d.ts +1 -1
- package/dist/components/PyrionNavigationDrawer/PLNotificationsList.d.ts +1 -1
- package/dist/components/PyrionNavigationDrawer/PLNotificationsLoader.d.ts +1 -1
- package/dist/components/PyrionNavigationDrawer/PLRailModuleEntry.d.ts +1 -1
- package/dist/components/PyrionNavigationDrawer/PLSidebarContent.d.ts +1 -1
- package/dist/components/PyrionNavigationDrawer/PLSystemLogo.d.ts +1 -1
- package/dist/components/PyrionNavigationDrawer/PLTertiaryLinkEntry.d.ts +1 -1
- package/dist/components/PyrionNavigationDrawer/PyrionLayout.d.ts +1 -1
- package/dist/components/RecurrentDatePicker/CustomFrequencySettings.d.ts +1 -1
- package/dist/components/RecurrentDatePicker/FrequencySettings.d.ts +1 -1
- package/dist/components/RecurrentDatePicker/MonthlyFrequencySettings.d.ts +1 -1
- package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +1 -1
- package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +1 -1
- package/dist/components/RecurrentDatePicker/RecurrentDatePickerRRule.d.ts +1 -1
- package/dist/components/RecurrentDatePicker/WeekdaysSelector.d.ts +1 -1
- package/dist/components/RecurrentDatePicker/WeeklyFrequencySetting.d.ts +1 -1
- package/dist/components/RecurrentDatePicker/YearlyFrequencySettings.d.ts +1 -1
- package/dist/components/Scrollable/Scrollable.d.ts +1 -1
- package/dist/components/SegmentedButton/SegmentedButton.d.ts +1 -1
- package/dist/components/Select/DefaultOption.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/SelectDropdown.d.ts +4 -3
- package/dist/components/Select/SelectTrigger.d.ts +6 -7
- package/dist/components/Select/types.d.ts +63 -3
- package/dist/components/SelectSearch/SelectSearch.d.ts +1 -1
- package/dist/components/SelectSearch/SelectSearchLegacy.d.ts +1 -1
- package/dist/components/Shared/HelperComponent.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/components/Sidebar/SidebarAppInfo.d.ts +1 -1
- package/dist/components/Sidebar/SidebarCollapseToggle.d.ts +1 -1
- package/dist/components/Sidebar/components/badge.d.ts +1 -1
- package/dist/components/Sidebar/components/changue-account.d.ts +1 -1
- package/dist/components/Sidebar/components/collapse-button.d.ts +1 -1
- package/dist/components/SidebarItem/SidebarItem.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Spinner/Spinner.d.ts +1 -1
- package/dist/components/SplitButton/SplitButton.d.ts +1 -1
- package/dist/components/StarRating/StarRating.d.ts +2 -2
- package/dist/components/Subtitle/Subtitle.d.ts +1 -1
- package/dist/components/Table/HeadRow.d.ts +1 -1
- package/dist/components/Table/HeaderCell.d.ts +1 -1
- package/dist/components/Table/RowCell.d.ts +1 -1
- package/dist/components/Table/TableBody.d.ts +1 -1
- package/dist/components/Table/TableFooter.d.ts +1 -1
- package/dist/components/Table/TableHeader.d.ts +1 -1
- package/dist/components/Table/TableRow.d.ts +1 -1
- package/dist/components/Tabs/Tab.d.ts +2 -2
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/TertiaryLevelSidebar/TertiaryLevelSidebar.d.ts +1 -1
- package/dist/components/TicketCard/TicketCard.d.ts +4 -4
- package/dist/components/Title/Title.d.ts +1 -1
- package/dist/components/Toaster/ToastProvider.d.ts +1 -1
- package/dist/components/Toaster/Toaster.d.ts +2 -2
- package/dist/components/Toggle/Toggle.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/UserAccountMenu/UserAccountMenu.d.ts +1 -1
- package/dist/{drawerRegistrationContext-Dm86v5MO.js → drawerRegistrationContext-wrGfL1XJ.js} +3 -3
- package/dist/exports/Select.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/prometeo-design-system.es.js +236 -236
- package/dist/styles.css +1 -1
- package/dist/{useDrawerCollapsed-CJOXf2Fw.js → useDrawerCollapsed-DpxHSr6u.js} +1 -1
- package/dist/useDrawerCollapsed.es.js +1 -1
- package/dist/{useDrawerControl-B3mYMhai.js → useDrawerControl-H3_CBNvK.js} +2 -2
- package/dist/{useModalControl-CM1LgGIM.js → useModalControl-Ca832V0w.js} +1 -1
- package/dist/usePyrionLayout.es.js +1 -1
- package/package.json +1 -1
- package/src/styles/dist-entry.css +9 -0
- package/src/styles/tokens.css +0 -1
- package/src/styles/utilities/background.css +0 -2
- package/src/styles/utilities/border.css +0 -1
- package/src/styles/utilities/dataviz.css +0 -1
- package/src/styles/utilities/icon.css +0 -1
- package/src/styles/utilities/os.css +0 -2
- package/src/styles/utilities/size.css +0 -1
- package/src/styles/utilities/text.css +0 -1
- package/src/styles/utility-variants.css +384 -0
- package/dist/DatePicker-CdLqTQWn.js +0 -3882
- package/dist/usePyrionLayout-DA4pTw-b.js +0 -1539
package/dist/AttachInput.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
2
|
import { c as o } from "./cn-B6yFEsav.js";
|
|
3
|
-
import { memo as
|
|
4
|
-
import { useDropzone as
|
|
3
|
+
import { memo as E, forwardRef as G, useCallback as H } from "react";
|
|
4
|
+
import { useDropzone as P } from "react-dropzone";
|
|
5
5
|
import _ from "./CardBackground.es.js";
|
|
6
|
-
import
|
|
6
|
+
import q from "./PlainTooltip.es.js";
|
|
7
7
|
import K from "./HelperComponent.es.js";
|
|
8
8
|
import { c as i } from "./index-BOQuZ0gG.js";
|
|
9
9
|
import { UploadCloud as O } from "./Icon-UploadCloud.es.js";
|
|
@@ -77,7 +77,7 @@ const W = i(
|
|
|
77
77
|
return `Máximo ${e} ${e === 1 ? "archivo" : "archivos"} permitido${e === 1 ? "" : "s"}`;
|
|
78
78
|
const s = r.length;
|
|
79
79
|
return s === 1 ? "El archivo no pudo cargarse" : `${s} archivos no pudieron cargarse`;
|
|
80
|
-
}, ee = (r, e) => e ? "reject" : r ? "active" : "idle", w =
|
|
80
|
+
}, ee = (r, e) => e ? "reject" : r ? "active" : "idle", w = G(
|
|
81
81
|
({
|
|
82
82
|
onFilesAccepted: r,
|
|
83
83
|
onFilesRejected: e,
|
|
@@ -95,7 +95,7 @@ const W = i(
|
|
|
95
95
|
cardBackground: b,
|
|
96
96
|
...C
|
|
97
97
|
}, M) => {
|
|
98
|
-
const D =
|
|
98
|
+
const D = H(
|
|
99
99
|
(j, y) => {
|
|
100
100
|
j.length > 0 && r?.(j), y.length > 0 && e?.(y);
|
|
101
101
|
},
|
|
@@ -106,14 +106,14 @@ const W = i(
|
|
|
106
106
|
isDragActive: k,
|
|
107
107
|
isDragReject: A,
|
|
108
108
|
fileRejections: g
|
|
109
|
-
} =
|
|
109
|
+
} = P({
|
|
110
110
|
onDrop: D,
|
|
111
111
|
accept: m,
|
|
112
112
|
maxFiles: h,
|
|
113
113
|
disabled: a,
|
|
114
114
|
maxSize: v,
|
|
115
115
|
...C
|
|
116
|
-
}), p = g.length > 0, l = p ? "error" : u ?? "default", x = ee(k, A), R = L(l, x, a), S = J[R], I = p ? F([...g], h) : typeof f == "function" ? f() : f,
|
|
116
|
+
}), p = g.length > 0, l = p ? "error" : u ?? "default", x = ee(k, A), R = L(l, x, a), S = J[R], I = p ? F([...g], h) : typeof f == "function" ? f() : f, B = d ?? N(m ?? {}), T = N(m ?? {});
|
|
117
117
|
return /* @__PURE__ */ t.jsxs("div", { className: o("w-full flex flex-col gap-1 h-[136px]", n), children: [
|
|
118
118
|
c && /* @__PURE__ */ t.jsx(
|
|
119
119
|
"label",
|
|
@@ -185,7 +185,7 @@ const W = i(
|
|
|
185
185
|
a && "text-disabled-default!"
|
|
186
186
|
),
|
|
187
187
|
children: [
|
|
188
|
-
|
|
188
|
+
B,
|
|
189
189
|
v !== void 0 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
190
190
|
" ",
|
|
191
191
|
"· Máx. ",
|
|
@@ -194,7 +194,7 @@ const W = i(
|
|
|
194
194
|
]
|
|
195
195
|
}
|
|
196
196
|
),
|
|
197
|
-
/* @__PURE__ */ t.jsx(q, { title:
|
|
197
|
+
/* @__PURE__ */ t.jsx(q, { title: T, children: /* @__PURE__ */ t.jsx(
|
|
198
198
|
U,
|
|
199
199
|
{
|
|
200
200
|
size: 12,
|
|
@@ -213,7 +213,7 @@ const W = i(
|
|
|
213
213
|
}
|
|
214
214
|
);
|
|
215
215
|
w.displayName = "AttachInput";
|
|
216
|
-
const ue =
|
|
216
|
+
const ue = E(w);
|
|
217
217
|
export {
|
|
218
218
|
ue as AttachInput,
|
|
219
219
|
ue as default
|
package/dist/Calendar.es.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useCallback as z, useRef as J, useEffect as ae, useState as fe, useMemo
|
|
|
3
3
|
import { c as H } from "./cn-B6yFEsav.js";
|
|
4
4
|
import st from "./Button.es.js";
|
|
5
5
|
import Pe from "./IconButton.es.js";
|
|
6
|
-
import
|
|
6
|
+
import at from "./SegmentedButton.es.js";
|
|
7
7
|
import { ArrowBack as ot } from "./Icon-ArrowBack.es.js";
|
|
8
8
|
import { ArrowForward as lt } from "./Icon-ArrowForward.es.js";
|
|
9
9
|
const it = 864e5, Me = 1440, ct = /^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{1,2}):(\d{2})(?::(\d{2}))?)?$/;
|
package/dist/Card.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
-
import {
|
|
2
|
+
import { createContext as z, useContext as w, memo as s, forwardRef as F, useMemo as H } from "react";
|
|
3
3
|
import { c as i } from "./cn-B6yFEsav.js";
|
|
4
4
|
import { c as d } from "./index-BOQuZ0gG.js";
|
|
5
5
|
import V from "./CardBackground.es.js";
|
|
6
|
-
const C =
|
|
6
|
+
const C = z(null);
|
|
7
7
|
function m() {
|
|
8
|
-
const a =
|
|
8
|
+
const a = w(C);
|
|
9
9
|
if (!a)
|
|
10
10
|
throw new Error(
|
|
11
11
|
"Card compound components (Card.Header, Card.Content, Card.Footer) must be used inside <Card>"
|
package/dist/CardProfile.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
2
|
import { c as i } from "./cn-B6yFEsav.js";
|
|
3
3
|
import { motion as n, AnimatePresence as h } from "framer-motion";
|
|
4
|
-
import { isValidElement as
|
|
5
|
-
import
|
|
4
|
+
import { isValidElement as j } from "react";
|
|
5
|
+
import b from "./Avatar.es.js";
|
|
6
6
|
import { ChevronDown as v } from "./Icon-ChevronDown.es.js";
|
|
7
7
|
import { Logout as y } from "./Icon-Logout.es.js";
|
|
8
8
|
function g({
|
|
@@ -168,7 +168,7 @@ const w = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
168
168
|
]
|
|
169
169
|
}
|
|
170
170
|
) }), I = ({ imageUrl: t, fallbackText: r, avatarProps: a }) => /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-center profile-image-wrapper", children: /* @__PURE__ */ e.jsx(
|
|
171
|
-
|
|
171
|
+
b,
|
|
172
172
|
{
|
|
173
173
|
imageUrl: t,
|
|
174
174
|
sizeImage: "xxs",
|
|
@@ -186,7 +186,7 @@ const w = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
186
186
|
unassigned: l = !1
|
|
187
187
|
}) => {
|
|
188
188
|
const f = () => {
|
|
189
|
-
if (o &&
|
|
189
|
+
if (o && j(o) && o.type === s.Image) {
|
|
190
190
|
const d = o.props, m = l ? "" : d.fallbackText || r, x = l ? "" : d.imageUrl, p = l ? "defaultAvatar" : "initials";
|
|
191
191
|
return /* @__PURE__ */ e.jsx(s.Image, { ...d, fallbackText: m, avatarProps: { ...d.avatarProps, fallbackType: p, imageUrl: x } });
|
|
192
192
|
}
|
|
@@ -257,7 +257,7 @@ const w = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
257
257
|
]
|
|
258
258
|
}
|
|
259
259
|
);
|
|
260
|
-
}, C = () => /* @__PURE__ */ e.jsx("div", { className: "w-px bg-gray-500/30 my-1 border-separator-profile" }),
|
|
260
|
+
}, C = () => /* @__PURE__ */ e.jsx("div", { className: "w-px bg-gray-500/30 my-1 border-separator-profile" }), P = ({ isExpanded: t, onClick: r }) => /* @__PURE__ */ e.jsx(
|
|
261
261
|
n.button,
|
|
262
262
|
{
|
|
263
263
|
onClick: r,
|
|
@@ -282,7 +282,7 @@ const w = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: "profil
|
|
|
282
282
|
Image: I,
|
|
283
283
|
Content: O,
|
|
284
284
|
Separator: C,
|
|
285
|
-
Options:
|
|
285
|
+
Options: P
|
|
286
286
|
});
|
|
287
287
|
export {
|
|
288
288
|
s as CardProfile,
|
package/dist/Chat.es.js
CHANGED
|
@@ -1,30 +1,104 @@
|
|
|
1
1
|
import { j as n } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Children as C, isValidElement as h, cloneElement as j, memo as d, forwardRef as w } from "react";
|
|
3
3
|
import { c as l } from "./cn-B6yFEsav.js";
|
|
4
4
|
import { c as m } from "./index-BOQuZ0gG.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import b from "./Avatar.es.js";
|
|
6
|
+
import D from "./Link.es.js";
|
|
7
|
+
import S from "./CardBackground.es.js";
|
|
8
8
|
function k(t) {
|
|
9
|
+
if (typeof t != "function" && typeof t != "object") return;
|
|
10
|
+
const e = t;
|
|
11
|
+
return e.displayName ?? e.type?.displayName;
|
|
12
|
+
}
|
|
13
|
+
function z(t) {
|
|
14
|
+
const e = t.type;
|
|
15
|
+
return e === c || k(e) === "ChatCard";
|
|
16
|
+
}
|
|
17
|
+
function F(t, e) {
|
|
18
|
+
return C.map(t, (r) => !h(r) || !z(r) || r.props.direction ? r : j(r, {
|
|
19
|
+
direction: e
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
const V = m("relative flex flex-col gap-1 justify-start", {
|
|
23
|
+
variants: {
|
|
24
|
+
direction: {
|
|
25
|
+
left: "items-start",
|
|
26
|
+
right: "items-end"
|
|
27
|
+
},
|
|
28
|
+
withAvatar: {
|
|
29
|
+
true: "",
|
|
30
|
+
false: ""
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
compoundVariants: [
|
|
34
|
+
{ direction: "left", withAvatar: !0, class: "pl-12" },
|
|
35
|
+
{ direction: "right", withAvatar: !0, class: "pr-12" }
|
|
36
|
+
]
|
|
37
|
+
}), $ = m("flex gap-1 min-w-0 max-w-full", {
|
|
38
|
+
variants: {
|
|
39
|
+
direction: {
|
|
40
|
+
left: "flex-row",
|
|
41
|
+
right: "flex-row-reverse"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
function A({
|
|
46
|
+
direction: t,
|
|
47
|
+
avatar: e,
|
|
48
|
+
link: r,
|
|
49
|
+
children: a,
|
|
50
|
+
className: s
|
|
51
|
+
}) {
|
|
52
|
+
const { ref: o, label: i, href: f, onClick: u } = r, g = f ? { href: f } : { onClick: u }, N = F(a, t);
|
|
53
|
+
return /* @__PURE__ */ n.jsxs(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
className: l(
|
|
57
|
+
V({ direction: t, withAvatar: !0 }),
|
|
58
|
+
s
|
|
59
|
+
),
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ n.jsxs("div", { className: $({ direction: t }), children: [
|
|
62
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex items-end shrink-0 self-end", children: /* @__PURE__ */ n.jsx(b, { ...e, size: e.size ?? "small" }) }),
|
|
63
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: N })
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ n.jsx(
|
|
66
|
+
D,
|
|
67
|
+
{
|
|
68
|
+
ref: o,
|
|
69
|
+
color: "brand",
|
|
70
|
+
size: "medium",
|
|
71
|
+
withBackground: !1,
|
|
72
|
+
...g,
|
|
73
|
+
children: i
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
const x = d(A);
|
|
81
|
+
x.displayName = "Chat";
|
|
82
|
+
function E(t) {
|
|
9
83
|
if (!t) return;
|
|
10
84
|
if (typeof t == "string") return t;
|
|
11
85
|
const e = String(t.getDate()).padStart(2, "0"), r = String(t.getMonth() + 1).padStart(2, "0"), a = t.getFullYear(), s = String(t.getHours()).padStart(2, "0"), o = String(t.getMinutes()).padStart(2, "0");
|
|
12
86
|
return `${e}/${r}/${a}, ${s}:${o}`;
|
|
13
87
|
}
|
|
14
|
-
const
|
|
88
|
+
const T = m("relative overflow-hidden flex flex-col rounded-[var(--radius-large)]", {
|
|
15
89
|
variants: {
|
|
16
90
|
direction: {
|
|
17
91
|
left: "[&:last-child]:rounded-bl-none",
|
|
18
92
|
right: "[&:last-child]:rounded-br-none"
|
|
19
93
|
}
|
|
20
94
|
}
|
|
21
|
-
}),
|
|
95
|
+
}), M = m("flex flex-col gap-3 relative z-10 p-3"), v = d(function({
|
|
22
96
|
children: e,
|
|
23
97
|
className: r,
|
|
24
98
|
...a
|
|
25
99
|
}) {
|
|
26
100
|
return /* @__PURE__ */ n.jsx("div", { className: l("flex flex-col gap-3 ", r), ...a, children: e });
|
|
27
|
-
}),
|
|
101
|
+
}), y = d(function({
|
|
28
102
|
children: e,
|
|
29
103
|
className: r,
|
|
30
104
|
...a
|
|
@@ -47,7 +121,7 @@ const z = m("relative overflow-hidden flex flex-col rounded-[var(--radius-large)
|
|
|
47
121
|
className: s,
|
|
48
122
|
...o
|
|
49
123
|
}) {
|
|
50
|
-
const i =
|
|
124
|
+
const i = E(e);
|
|
51
125
|
return /* @__PURE__ */ n.jsxs(
|
|
52
126
|
"div",
|
|
53
127
|
{
|
|
@@ -66,36 +140,36 @@ const z = m("relative overflow-hidden flex flex-col rounded-[var(--radius-large)
|
|
|
66
140
|
}
|
|
67
141
|
);
|
|
68
142
|
});
|
|
69
|
-
function
|
|
143
|
+
function P(t) {
|
|
70
144
|
if (typeof t != "function" && typeof t != "object") return;
|
|
71
145
|
const e = t;
|
|
72
146
|
return e.displayName ?? e.type?.displayName;
|
|
73
147
|
}
|
|
74
|
-
function
|
|
148
|
+
function R(t) {
|
|
75
149
|
const e = t.type;
|
|
76
|
-
return e === p ||
|
|
150
|
+
return e === p || P(e) === "ChatCard.Footer";
|
|
77
151
|
}
|
|
78
|
-
function
|
|
152
|
+
function G(t) {
|
|
79
153
|
const e = [], r = [];
|
|
80
154
|
return C.forEach(t, (a) => {
|
|
81
|
-
if (h(a) &&
|
|
155
|
+
if (h(a) && R(a)) {
|
|
82
156
|
r.push(a);
|
|
83
157
|
return;
|
|
84
158
|
}
|
|
85
159
|
e.push(a);
|
|
86
160
|
}), { commentContent: e, footers: r };
|
|
87
161
|
}
|
|
88
|
-
const
|
|
89
|
-
const { commentContent: f, footers: u } =
|
|
162
|
+
const B = w(function({ cardBackground: e, children: r, className: a, direction: s = "left", ...o }, i) {
|
|
163
|
+
const { commentContent: f, footers: u } = G(r);
|
|
90
164
|
return /* @__PURE__ */ n.jsxs(
|
|
91
165
|
"div",
|
|
92
166
|
{
|
|
93
|
-
className: l(
|
|
167
|
+
className: l(T({ direction: s }), a),
|
|
94
168
|
ref: i,
|
|
95
169
|
...o,
|
|
96
170
|
children: [
|
|
97
171
|
/* @__PURE__ */ n.jsx(
|
|
98
|
-
|
|
172
|
+
S,
|
|
99
173
|
{
|
|
100
174
|
color: "neutral",
|
|
101
175
|
variant: "secondary",
|
|
@@ -103,99 +177,25 @@ const E = j(function({ cardBackground: e, children: r, className: a, direction:
|
|
|
103
177
|
className: l("absolute inset-0 z-0", e?.className)
|
|
104
178
|
}
|
|
105
179
|
),
|
|
106
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
180
|
+
/* @__PURE__ */ n.jsx("div", { className: M(), children: f }),
|
|
107
181
|
u
|
|
108
182
|
]
|
|
109
183
|
}
|
|
110
184
|
);
|
|
111
185
|
});
|
|
112
|
-
function
|
|
113
|
-
return /* @__PURE__ */ n.jsx(
|
|
186
|
+
function H(t) {
|
|
187
|
+
return /* @__PURE__ */ n.jsx(x, { ...t });
|
|
114
188
|
}
|
|
115
|
-
const c = d(
|
|
116
|
-
c.Content =
|
|
117
|
-
c.Text =
|
|
189
|
+
const c = d(B);
|
|
190
|
+
c.Content = v;
|
|
191
|
+
c.Text = y;
|
|
118
192
|
c.Footer = p;
|
|
119
|
-
c.Participant =
|
|
193
|
+
c.Participant = H;
|
|
120
194
|
c.displayName = "ChatCard";
|
|
121
|
-
|
|
122
|
-
|
|
195
|
+
v.displayName = "ChatCard.Content";
|
|
196
|
+
y.displayName = "ChatCard.Text";
|
|
123
197
|
p.displayName = "ChatCard.Footer";
|
|
124
|
-
function M(t) {
|
|
125
|
-
if (typeof t != "function" && typeof t != "object") return;
|
|
126
|
-
const e = t;
|
|
127
|
-
return e.displayName ?? e.type?.displayName;
|
|
128
|
-
}
|
|
129
|
-
function P(t) {
|
|
130
|
-
const e = t.type;
|
|
131
|
-
return e === c || M(e) === "ChatCard";
|
|
132
|
-
}
|
|
133
|
-
function R(t, e) {
|
|
134
|
-
return C.map(t, (r) => !h(r) || !P(r) || r.props.direction ? r : w(r, {
|
|
135
|
-
direction: e
|
|
136
|
-
}));
|
|
137
|
-
}
|
|
138
|
-
const G = m("relative flex flex-col gap-1 justify-start", {
|
|
139
|
-
variants: {
|
|
140
|
-
direction: {
|
|
141
|
-
left: "items-start",
|
|
142
|
-
right: "items-end"
|
|
143
|
-
},
|
|
144
|
-
withAvatar: {
|
|
145
|
-
true: "",
|
|
146
|
-
false: ""
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
compoundVariants: [
|
|
150
|
-
{ direction: "left", withAvatar: !0, class: "pl-12" },
|
|
151
|
-
{ direction: "right", withAvatar: !0, class: "pr-12" }
|
|
152
|
-
]
|
|
153
|
-
}), B = m("flex gap-1 min-w-0 max-w-full", {
|
|
154
|
-
variants: {
|
|
155
|
-
direction: {
|
|
156
|
-
left: "flex-row",
|
|
157
|
-
right: "flex-row-reverse"
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
function H({
|
|
162
|
-
direction: t,
|
|
163
|
-
avatar: e,
|
|
164
|
-
link: r,
|
|
165
|
-
children: a,
|
|
166
|
-
className: s
|
|
167
|
-
}) {
|
|
168
|
-
const { ref: o, label: i, href: f, onClick: u } = r, g = f ? { href: f } : { onClick: u }, N = R(a, t);
|
|
169
|
-
return /* @__PURE__ */ n.jsxs(
|
|
170
|
-
"div",
|
|
171
|
-
{
|
|
172
|
-
className: l(
|
|
173
|
-
G({ direction: t, withAvatar: !0 }),
|
|
174
|
-
s
|
|
175
|
-
),
|
|
176
|
-
children: [
|
|
177
|
-
/* @__PURE__ */ n.jsxs("div", { className: B({ direction: t }), children: [
|
|
178
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex items-end shrink-0 self-end", children: /* @__PURE__ */ n.jsx(b, { ...e, size: e.size ?? "small" }) }),
|
|
179
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: N })
|
|
180
|
-
] }),
|
|
181
|
-
/* @__PURE__ */ n.jsx(
|
|
182
|
-
S,
|
|
183
|
-
{
|
|
184
|
-
ref: o,
|
|
185
|
-
color: "brand",
|
|
186
|
-
size: "medium",
|
|
187
|
-
withBackground: !1,
|
|
188
|
-
...g,
|
|
189
|
-
children: i
|
|
190
|
-
}
|
|
191
|
-
)
|
|
192
|
-
]
|
|
193
|
-
}
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
const y = d(H);
|
|
197
|
-
y.displayName = "Chat";
|
|
198
198
|
export {
|
|
199
199
|
c as C,
|
|
200
|
-
|
|
200
|
+
x as M
|
|
201
201
|
};
|
package/dist/ChatCard.es.js
CHANGED