prometeo-design-system 8.1.4 → 8.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/AttachInput.es.js +10 -10
- package/dist/Button.es.js +43 -46
- 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-0GSfoMZZ.js → ChatCard-BFhVwFm3.js} +101 -101
- package/dist/ChatCard.es.js +1 -1
- package/dist/CodeInput.es.js +235 -221
- package/dist/ColorPicker.css +1 -0
- package/dist/ColorPicker.d.ts +6 -0
- package/dist/ColorPicker.es.js +472 -0
- package/dist/DatePicker-CdLqTQWn.js +3882 -0
- package/dist/DatePicker.es.js +1 -1
- 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/Header.es.js +19 -11
- package/dist/Icon-500-Public.d.ts +6 -0
- package/dist/Icon-500-Public.es.js +19 -0
- package/dist/Icon-Public.d.ts +6 -0
- package/dist/Icon-Public.es.js +19 -0
- package/dist/Icons/500/index.d.ts +1 -0
- package/dist/Icons/components/500/Public.d.ts +4 -0
- package/dist/Icons/components/Public.d.ts +4 -0
- package/dist/Icons/index.d.ts +1 -0
- package/dist/Icons/paths.json.d.ts +2 -0
- package/dist/Icons-500.es.js +98 -96
- package/dist/Icons.es.js +415 -410
- package/dist/ListItem.es.js +1 -1
- package/dist/Menu.es.js +65 -65
- package/dist/Modal.es.js +8 -8
- package/dist/ModuleItem.es.js +1 -1
- package/dist/NavigationDrawer.es.js +127 -144
- package/dist/NavigationRail.es.js +1 -1
- package/dist/NotificationCard.es.js +24 -24
- package/dist/OtpInput.es.js +2 -2
- package/dist/PLNotificationsList.es.js +9 -9
- 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/Scrollable-B7xZ3C4Z.js +214 -0
- package/dist/Scrollable.es.js +2 -13
- package/dist/SegmentedButton.es.js +1 -1
- package/dist/Select.es.js +81 -81
- package/dist/Sidebar.es.js +1 -1
- package/dist/SidebarItem.es.js +11 -11
- package/dist/SplitButton.es.js +2 -2
- package/dist/StarRating.es.js +1 -1
- package/dist/Switch.es.js +78 -3
- package/dist/TabSwitch.es.js +3 -1537
- package/dist/Table.es.js +170 -170
- package/dist/Tabs.es.js +117 -106
- package/dist/TextareaInput.es.js +2 -2
- package/dist/Toggle.es.js +3 -78
- package/dist/Tooltip.es.js +2 -2
- package/dist/UserAccountMenu.es.js +6 -6
- 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/Chips/PriorityChip.d.ts +1 -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 +6 -0
- package/dist/components/ColorPicker/ColorPickerFreeform.d.ts +6 -0
- package/dist/components/ColorPicker/ColorPickerPalette.d.ts +6 -0
- package/dist/components/ColorPicker/colorConversions.d.ts +17 -0
- package/dist/components/ColorPicker/index.d.ts +2 -0
- package/dist/components/ColorPicker/paletteTokens.d.ts +11 -0
- package/dist/components/ColorPicker/types.d.ts +11 -0
- package/dist/components/DatePicker/DatePicker.d.ts +2 -2
- 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/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 +11 -3
- package/dist/components/NavigationDrawer/drawerTypes.d.ts +0 -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/SelectDropdown.d.ts +1 -1
- 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-wrGfL1XJ.js → drawerRegistrationContext-Dm86v5MO.js} +3 -3
- package/dist/exports/ColorPicker.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/prometeo-design-system.es.js +253 -251
- package/dist/styles.css +1 -1
- package/dist/{useDrawerCollapsed-DpxHSr6u.js → useDrawerCollapsed-CJOXf2Fw.js} +1 -1
- package/dist/useDrawerCollapsed.es.js +1 -1
- package/dist/{useDrawerControl-H3_CBNvK.js → useDrawerControl-B3mYMhai.js} +2 -2
- package/dist/{useModalControl-Ca832V0w.js → useModalControl-CM1LgGIM.js} +1 -1
- package/dist/usePyrionLayout-DA4pTw-b.js +1539 -0
- package/dist/usePyrionLayout.es.js +1 -1
- package/package.json +6 -1
- package/src/styles/dist-entry.css +16 -0
- package/src/styles/tokens.css +3 -3
- package/src/styles/utilities.css +1 -0
- package/dist/DatePicker-CXrFAj-o.js +0 -3856
- package/dist/ScrollableBase-D92R0fKI.js +0 -205
- /package/dist/{ScrollableBase.css → Scrollable.css} +0 -0
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 P, forwardRef as E, useCallback as G } from "react";
|
|
4
|
+
import { useDropzone as H } from "react-dropzone";
|
|
5
5
|
import _ from "./CardBackground.es.js";
|
|
6
|
-
import q from "./PlainTooltip.es.js";
|
|
6
|
+
import { PlainTooltip as 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 = E(
|
|
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 = G(
|
|
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
|
+
} = H({
|
|
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, T = d ?? N(m ?? {}), B = 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
|
+
T,
|
|
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: B, 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 = P(w);
|
|
217
217
|
export {
|
|
218
218
|
ue as AttachInput,
|
|
219
219
|
ue as default
|
package/dist/Button.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as a } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
-
import { memo as
|
|
3
|
-
import { c as
|
|
2
|
+
import { memo as H, forwardRef as J, useMemo as K, createElement as O, isValidElement as P } from "react";
|
|
3
|
+
import { c as Q } from "./cn-B6yFEsav.js";
|
|
4
4
|
import { c as m } from "./index-BOQuZ0gG.js";
|
|
5
5
|
import U from "./Spinner.es.js";
|
|
6
|
-
const W = (r) =>
|
|
6
|
+
const W = (r) => P(r), C = {
|
|
7
7
|
primary: "brand",
|
|
8
8
|
secondary: "neutral"
|
|
9
|
-
}, X = (r) => r in
|
|
9
|
+
}, X = (r) => r in C, Y = (r) => X(r) ? C[r] : r, o = {
|
|
10
10
|
small: {
|
|
11
11
|
container: "h-8 px-3 py-1.5 spacing-x-2 radius-small",
|
|
12
12
|
icon: ""
|
|
@@ -142,14 +142,14 @@ const W = (r) => Q(r), B = {
|
|
|
142
142
|
container: "box-border flex justify-center items-center w-max bg-transparent cursor-pointer transition-all ease-in-out duration-300 relative after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:border-transparent after:transition-all after:ease-in-out after:duration-300",
|
|
143
143
|
label: "w-max transition-all ease-in-out duration-300 pyrion-fonts-label-large",
|
|
144
144
|
icon: "transition-all ease-in-out duration-300 flex justify-center items-center m-0 p-0"
|
|
145
|
-
},
|
|
145
|
+
}, V = {
|
|
146
146
|
true: {
|
|
147
147
|
container: "hover:scale-105 active:scale-95 disabled:scale-100"
|
|
148
148
|
},
|
|
149
149
|
false: {
|
|
150
150
|
container: ""
|
|
151
151
|
}
|
|
152
|
-
},
|
|
152
|
+
}, $ = {
|
|
153
153
|
true: {
|
|
154
154
|
icon: "group-hover:rotate-90 group-active:rotate-0 group-disabled:rotate-0"
|
|
155
155
|
},
|
|
@@ -177,8 +177,8 @@ const W = (r) => Q(r), B = {
|
|
|
177
177
|
disabled: ""
|
|
178
178
|
},
|
|
179
179
|
animateIcon: {
|
|
180
|
-
true:
|
|
181
|
-
false:
|
|
180
|
+
true: $.true.icon,
|
|
181
|
+
false: $.false.icon
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
184
|
compoundVariants: [
|
|
@@ -228,8 +228,8 @@ const W = (r) => Q(r), B = {
|
|
|
228
228
|
disabled: ""
|
|
229
229
|
},
|
|
230
230
|
animation: {
|
|
231
|
-
true:
|
|
232
|
-
false:
|
|
231
|
+
true: V.true.container,
|
|
232
|
+
false: V.false.container
|
|
233
233
|
}
|
|
234
234
|
},
|
|
235
235
|
compoundVariants: [
|
|
@@ -258,7 +258,7 @@ const W = (r) => Q(r), B = {
|
|
|
258
258
|
color: "brand",
|
|
259
259
|
animation: !0
|
|
260
260
|
}
|
|
261
|
-
}),
|
|
261
|
+
}), j = m(f.label, {
|
|
262
262
|
variants: {
|
|
263
263
|
size: {
|
|
264
264
|
small: n.small.label,
|
|
@@ -304,47 +304,44 @@ const W = (r) => Q(r), B = {
|
|
|
304
304
|
variant: "fill",
|
|
305
305
|
color: "brand"
|
|
306
306
|
}
|
|
307
|
-
}),
|
|
307
|
+
}), B = J(({
|
|
308
308
|
label: r,
|
|
309
309
|
onClick: z,
|
|
310
310
|
icon: h,
|
|
311
311
|
contentClassName: T,
|
|
312
312
|
loadingText: x = "Cargando...",
|
|
313
|
-
animate:
|
|
314
|
-
animateIcon:
|
|
313
|
+
animate: I = !1,
|
|
314
|
+
animateIcon: N = !1,
|
|
315
315
|
isLoading: d = !1,
|
|
316
316
|
children: s,
|
|
317
317
|
hideSpinner: y = !1,
|
|
318
318
|
spinner: b,
|
|
319
|
-
type:
|
|
320
|
-
className:
|
|
321
|
-
disabled:
|
|
319
|
+
type: S = "button",
|
|
320
|
+
className: E,
|
|
321
|
+
disabled: M,
|
|
322
322
|
variant: l = "fill",
|
|
323
|
-
form:
|
|
323
|
+
form: F,
|
|
324
324
|
size: t = "medium",
|
|
325
|
-
color:
|
|
326
|
-
...
|
|
327
|
-
},
|
|
328
|
-
const c = !!(
|
|
325
|
+
color: R = "brand",
|
|
326
|
+
...A
|
|
327
|
+
}, D) => {
|
|
328
|
+
const c = !!(M || d), w = N && !c, L = I && !c, i = c ? "disabled" : Y(R), v = typeof s == "string" ? s : r, p = typeof s != "string" ? s : void 0, k = K(() => {
|
|
329
329
|
if (d) {
|
|
330
|
-
const
|
|
330
|
+
const G = {
|
|
331
331
|
small: "small",
|
|
332
332
|
medium: "medium",
|
|
333
333
|
large: "medium"
|
|
334
334
|
};
|
|
335
335
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
336
|
-
!y && b ? b : /* @__PURE__ */ a.jsx(U, { size:
|
|
336
|
+
!y && b ? b : /* @__PURE__ */ a.jsx(U, { size: G[t], variant: "clip", color: "brand" }),
|
|
337
337
|
/* @__PURE__ */ a.jsx(
|
|
338
338
|
"span",
|
|
339
339
|
{
|
|
340
|
-
className:
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
}),
|
|
346
|
-
t === "small" ? "pyrion-fonts-label-xsmall" : ""
|
|
347
|
-
),
|
|
340
|
+
className: j({
|
|
341
|
+
size: t,
|
|
342
|
+
variant: l,
|
|
343
|
+
color: i
|
|
344
|
+
}),
|
|
348
345
|
children: x
|
|
349
346
|
}
|
|
350
347
|
)
|
|
@@ -354,13 +351,13 @@ const W = (r) => Q(r), B = {
|
|
|
354
351
|
return p;
|
|
355
352
|
const u = h;
|
|
356
353
|
let g = null;
|
|
357
|
-
const
|
|
354
|
+
const q = {
|
|
358
355
|
small: 20,
|
|
359
356
|
medium: 24,
|
|
360
357
|
large: 24
|
|
361
358
|
};
|
|
362
|
-
return u && (g = W(u) ? u :
|
|
363
|
-
size:
|
|
359
|
+
return u && (g = W(u) ? u : O(u, {
|
|
360
|
+
size: q[t]
|
|
364
361
|
})), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
365
362
|
g && /* @__PURE__ */ a.jsx(
|
|
366
363
|
"span",
|
|
@@ -377,7 +374,7 @@ const W = (r) => Q(r), B = {
|
|
|
377
374
|
v && /* @__PURE__ */ a.jsx(
|
|
378
375
|
"span",
|
|
379
376
|
{
|
|
380
|
-
className:
|
|
377
|
+
className: j({
|
|
381
378
|
size: t,
|
|
382
379
|
variant: l,
|
|
383
380
|
color: i
|
|
@@ -402,28 +399,28 @@ const W = (r) => Q(r), B = {
|
|
|
402
399
|
return /* @__PURE__ */ a.jsx(
|
|
403
400
|
"button",
|
|
404
401
|
{
|
|
405
|
-
ref:
|
|
406
|
-
type:
|
|
407
|
-
className:
|
|
402
|
+
ref: D,
|
|
403
|
+
type: S,
|
|
404
|
+
className: Q(
|
|
408
405
|
"group",
|
|
409
406
|
_({
|
|
410
407
|
size: t,
|
|
411
408
|
variant: l,
|
|
412
409
|
color: i,
|
|
413
|
-
animation:
|
|
410
|
+
animation: L
|
|
414
411
|
}),
|
|
415
|
-
|
|
412
|
+
E
|
|
416
413
|
),
|
|
417
414
|
disabled: c,
|
|
418
|
-
form:
|
|
415
|
+
form: F,
|
|
419
416
|
onClick: z,
|
|
420
|
-
...
|
|
421
|
-
children:
|
|
417
|
+
...A,
|
|
418
|
+
children: k
|
|
422
419
|
}
|
|
423
420
|
);
|
|
424
421
|
});
|
|
425
|
-
|
|
426
|
-
const oe =
|
|
422
|
+
B.displayName = "Button";
|
|
423
|
+
const oe = H(B);
|
|
427
424
|
export {
|
|
428
425
|
oe as default
|
|
429
426
|
};
|
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 at from "./SegmentedButton.es.js";
|
|
6
|
+
import { SegmentedButton as 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 { useContext as z, createContext 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 = w(null);
|
|
7
7
|
function m() {
|
|
8
|
-
const a =
|
|
8
|
+
const a = z(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 b } from "react";
|
|
5
|
+
import { AvatarAndSubavatar as j } 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
|
+
j,
|
|
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 && b(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" }), A = ({ 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: A
|
|
286
286
|
});
|
|
287
287
|
export {
|
|
288
288
|
s as CardProfile,
|
package/dist/Chat.es.js
CHANGED
|
@@ -1,104 +1,30 @@
|
|
|
1
1
|
import { j as n } from "./jsx-runtime-GkKLlHH4.js";
|
|
2
|
-
import {
|
|
2
|
+
import { memo as d, forwardRef as j, Children as C, isValidElement as h, cloneElement as b } 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 { AvatarAndSubavatar as w } from "./Avatar.es.js";
|
|
6
|
+
import S from "./Link.es.js";
|
|
7
|
+
import D 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", {
|
|
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) {
|
|
83
9
|
if (!t) return;
|
|
84
10
|
if (typeof t == "string") return t;
|
|
85
11
|
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");
|
|
86
12
|
return `${e}/${r}/${a}, ${s}:${o}`;
|
|
87
13
|
}
|
|
88
|
-
const
|
|
14
|
+
const z = m("relative overflow-hidden flex flex-col rounded-[var(--radius-large)]", {
|
|
89
15
|
variants: {
|
|
90
16
|
direction: {
|
|
91
17
|
left: "[&:last-child]:rounded-bl-none",
|
|
92
18
|
right: "[&:last-child]:rounded-br-none"
|
|
93
19
|
}
|
|
94
20
|
}
|
|
95
|
-
}),
|
|
21
|
+
}), A = m("flex flex-col gap-3 relative z-10 p-3"), x = d(function({
|
|
96
22
|
children: e,
|
|
97
23
|
className: r,
|
|
98
24
|
...a
|
|
99
25
|
}) {
|
|
100
26
|
return /* @__PURE__ */ n.jsx("div", { className: l("flex flex-col gap-3 ", r), ...a, children: e });
|
|
101
|
-
}),
|
|
27
|
+
}), v = d(function({
|
|
102
28
|
children: e,
|
|
103
29
|
className: r,
|
|
104
30
|
...a
|
|
@@ -121,7 +47,7 @@ const T = m("relative overflow-hidden flex flex-col rounded-[var(--radius-large)
|
|
|
121
47
|
className: s,
|
|
122
48
|
...o
|
|
123
49
|
}) {
|
|
124
|
-
const i =
|
|
50
|
+
const i = k(e);
|
|
125
51
|
return /* @__PURE__ */ n.jsxs(
|
|
126
52
|
"div",
|
|
127
53
|
{
|
|
@@ -140,36 +66,36 @@ const T = m("relative overflow-hidden flex flex-col rounded-[var(--radius-large)
|
|
|
140
66
|
}
|
|
141
67
|
);
|
|
142
68
|
});
|
|
143
|
-
function
|
|
69
|
+
function F(t) {
|
|
144
70
|
if (typeof t != "function" && typeof t != "object") return;
|
|
145
71
|
const e = t;
|
|
146
72
|
return e.displayName ?? e.type?.displayName;
|
|
147
73
|
}
|
|
148
|
-
function
|
|
74
|
+
function V(t) {
|
|
149
75
|
const e = t.type;
|
|
150
|
-
return e === p ||
|
|
76
|
+
return e === p || F(e) === "ChatCard.Footer";
|
|
151
77
|
}
|
|
152
|
-
function
|
|
78
|
+
function $(t) {
|
|
153
79
|
const e = [], r = [];
|
|
154
80
|
return C.forEach(t, (a) => {
|
|
155
|
-
if (h(a) &&
|
|
81
|
+
if (h(a) && V(a)) {
|
|
156
82
|
r.push(a);
|
|
157
83
|
return;
|
|
158
84
|
}
|
|
159
85
|
e.push(a);
|
|
160
86
|
}), { commentContent: e, footers: r };
|
|
161
87
|
}
|
|
162
|
-
const
|
|
163
|
-
const { commentContent: f, footers: u } =
|
|
88
|
+
const E = j(function({ cardBackground: e, children: r, className: a, direction: s = "left", ...o }, i) {
|
|
89
|
+
const { commentContent: f, footers: u } = $(r);
|
|
164
90
|
return /* @__PURE__ */ n.jsxs(
|
|
165
91
|
"div",
|
|
166
92
|
{
|
|
167
|
-
className: l(
|
|
93
|
+
className: l(z({ direction: s }), a),
|
|
168
94
|
ref: i,
|
|
169
95
|
...o,
|
|
170
96
|
children: [
|
|
171
97
|
/* @__PURE__ */ n.jsx(
|
|
172
|
-
|
|
98
|
+
D,
|
|
173
99
|
{
|
|
174
100
|
color: "neutral",
|
|
175
101
|
variant: "secondary",
|
|
@@ -177,25 +103,99 @@ const B = w(function({ cardBackground: e, children: r, className: a, direction:
|
|
|
177
103
|
className: l("absolute inset-0 z-0", e?.className)
|
|
178
104
|
}
|
|
179
105
|
),
|
|
180
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
106
|
+
/* @__PURE__ */ n.jsx("div", { className: A(), children: f }),
|
|
181
107
|
u
|
|
182
108
|
]
|
|
183
109
|
}
|
|
184
110
|
);
|
|
185
111
|
});
|
|
186
|
-
function
|
|
187
|
-
return /* @__PURE__ */ n.jsx(
|
|
112
|
+
function T(t) {
|
|
113
|
+
return /* @__PURE__ */ n.jsx(y, { ...t });
|
|
188
114
|
}
|
|
189
|
-
const c = d(
|
|
190
|
-
c.Content =
|
|
191
|
-
c.Text =
|
|
115
|
+
const c = d(E);
|
|
116
|
+
c.Content = x;
|
|
117
|
+
c.Text = v;
|
|
192
118
|
c.Footer = p;
|
|
193
|
-
c.Participant =
|
|
119
|
+
c.Participant = T;
|
|
194
120
|
c.displayName = "ChatCard";
|
|
195
|
-
|
|
196
|
-
|
|
121
|
+
x.displayName = "ChatCard.Content";
|
|
122
|
+
v.displayName = "ChatCard.Text";
|
|
197
123
|
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 : b(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", {
|
|
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(w, { ...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
|
+
y as M
|
|
201
201
|
};
|
package/dist/ChatCard.es.js
CHANGED