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.
Files changed (269) hide show
  1. package/dist/AttachInput.es.js +10 -10
  2. package/dist/Calendar.es.js +1 -1
  3. package/dist/Card.es.js +3 -3
  4. package/dist/CardProfile.es.js +6 -6
  5. package/dist/Chat.es.js +1 -1
  6. package/dist/{ChatCard-O3S0nzbH.js → ChatCard-CkayOQuw.js} +101 -101
  7. package/dist/ChatCard.es.js +1 -1
  8. package/dist/Chip.es.js +573 -142
  9. package/dist/ChipSelect.es.js +19 -19
  10. package/dist/CodeInput.es.js +221 -235
  11. package/dist/ColorPicker.es.js +39 -39
  12. package/dist/DatePicker-CXrFAj-o.js +3856 -0
  13. package/dist/DatePicker.es.js +1 -1
  14. package/dist/DatePickerPill.es.js +37 -37
  15. package/dist/DesktopModal.es.js +2 -2
  16. package/dist/DialogModal.es.js +1 -1
  17. package/dist/Drawer.es.js +2 -2
  18. package/dist/DrawerDesktop.es.js +1 -1
  19. package/dist/DrawerMobile.es.js +1 -1
  20. package/dist/DropZone.es.js +1 -1
  21. package/dist/Icon-500-FormatAlignCenter.d.ts +6 -0
  22. package/dist/Icon-500-FormatAlignCenter.es.js +19 -0
  23. package/dist/Icon-500-FormatAlignJustify.d.ts +6 -0
  24. package/dist/Icon-500-FormatAlignJustify.es.js +19 -0
  25. package/dist/Icon-500-FormatAlignRight.d.ts +6 -0
  26. package/dist/Icon-500-FormatAlignRight.es.js +19 -0
  27. package/dist/Icon-500-FormatH1.d.ts +6 -0
  28. package/dist/Icon-500-FormatH1.es.js +19 -0
  29. package/dist/Icon-500-FormatH2.d.ts +6 -0
  30. package/dist/Icon-500-FormatH2.es.js +19 -0
  31. package/dist/Icon-500-FormatH3.d.ts +6 -0
  32. package/dist/Icon-500-FormatH3.es.js +19 -0
  33. package/dist/Icon-500-FormatH4.d.ts +6 -0
  34. package/dist/Icon-500-FormatH4.es.js +19 -0
  35. package/dist/Icon-500-FormatH5.d.ts +6 -0
  36. package/dist/Icon-500-FormatH5.es.js +19 -0
  37. package/dist/Icon-500-FormatH6.d.ts +6 -0
  38. package/dist/Icon-500-FormatH6.es.js +19 -0
  39. package/dist/Icon-500-FormatStrikethrough.d.ts +6 -0
  40. package/dist/Icon-500-FormatStrikethrough.es.js +19 -0
  41. package/dist/Icon-500-HMobiledata.d.ts +6 -0
  42. package/dist/Icon-500-HMobiledata.es.js +19 -0
  43. package/dist/Icon-500-Palette.d.ts +6 -0
  44. package/dist/Icon-500-Palette.es.js +19 -0
  45. package/dist/Icon-500-Redo.d.ts +6 -0
  46. package/dist/Icon-500-Redo.es.js +19 -0
  47. package/dist/Icon-500-Undo.d.ts +6 -0
  48. package/dist/Icon-500-Undo.es.js +19 -0
  49. package/dist/Icon-FormatAlignCenter.d.ts +6 -0
  50. package/dist/Icon-FormatAlignCenter.es.js +19 -0
  51. package/dist/Icon-FormatAlignJustify.d.ts +6 -0
  52. package/dist/Icon-FormatAlignJustify.es.js +19 -0
  53. package/dist/Icon-FormatAlignRight.d.ts +6 -0
  54. package/dist/Icon-FormatAlignRight.es.js +19 -0
  55. package/dist/Icon-FormatH1.d.ts +6 -0
  56. package/dist/Icon-FormatH1.es.js +19 -0
  57. package/dist/Icon-FormatH2.d.ts +6 -0
  58. package/dist/Icon-FormatH2.es.js +19 -0
  59. package/dist/Icon-FormatH3.d.ts +6 -0
  60. package/dist/Icon-FormatH3.es.js +19 -0
  61. package/dist/Icon-FormatH4.d.ts +6 -0
  62. package/dist/Icon-FormatH4.es.js +19 -0
  63. package/dist/Icon-FormatH5.d.ts +6 -0
  64. package/dist/Icon-FormatH5.es.js +19 -0
  65. package/dist/Icon-FormatH6.d.ts +6 -0
  66. package/dist/Icon-FormatH6.es.js +19 -0
  67. package/dist/Icon-FormatStrikethrough.d.ts +6 -0
  68. package/dist/Icon-FormatStrikethrough.es.js +19 -0
  69. package/dist/Icon-HMobiledata.d.ts +6 -0
  70. package/dist/Icon-HMobiledata.es.js +19 -0
  71. package/dist/Icon-Palette.d.ts +6 -0
  72. package/dist/Icon-Palette.es.js +19 -0
  73. package/dist/Icon-Redo.d.ts +6 -0
  74. package/dist/Icon-Redo.es.js +19 -0
  75. package/dist/Icon-Undo.d.ts +6 -0
  76. package/dist/Icon-Undo.es.js +19 -0
  77. package/dist/Icons/500/index.d.ts +14 -0
  78. package/dist/Icons/components/500/FormatAlignCenter.d.ts +4 -0
  79. package/dist/Icons/components/500/FormatAlignJustify.d.ts +4 -0
  80. package/dist/Icons/components/500/FormatAlignRight.d.ts +4 -0
  81. package/dist/Icons/components/500/FormatH1.d.ts +4 -0
  82. package/dist/Icons/components/500/FormatH2.d.ts +4 -0
  83. package/dist/Icons/components/500/FormatH3.d.ts +4 -0
  84. package/dist/Icons/components/500/FormatH4.d.ts +4 -0
  85. package/dist/Icons/components/500/FormatH5.d.ts +4 -0
  86. package/dist/Icons/components/500/FormatH6.d.ts +4 -0
  87. package/dist/Icons/components/500/FormatStrikethrough.d.ts +4 -0
  88. package/dist/Icons/components/500/HMobiledata.d.ts +4 -0
  89. package/dist/Icons/components/500/Palette.d.ts +4 -0
  90. package/dist/Icons/components/500/Redo.d.ts +4 -0
  91. package/dist/Icons/components/500/Undo.d.ts +4 -0
  92. package/dist/Icons/components/FormatAlignCenter.d.ts +4 -0
  93. package/dist/Icons/components/FormatAlignJustify.d.ts +4 -0
  94. package/dist/Icons/components/FormatAlignRight.d.ts +4 -0
  95. package/dist/Icons/components/FormatH1.d.ts +4 -0
  96. package/dist/Icons/components/FormatH2.d.ts +4 -0
  97. package/dist/Icons/components/FormatH3.d.ts +4 -0
  98. package/dist/Icons/components/FormatH4.d.ts +4 -0
  99. package/dist/Icons/components/FormatH5.d.ts +4 -0
  100. package/dist/Icons/components/FormatH6.d.ts +4 -0
  101. package/dist/Icons/components/FormatStrikethrough.d.ts +4 -0
  102. package/dist/Icons/components/HMobiledata.d.ts +4 -0
  103. package/dist/Icons/components/Palette.d.ts +4 -0
  104. package/dist/Icons/components/Redo.d.ts +4 -0
  105. package/dist/Icons/components/Undo.d.ts +4 -0
  106. package/dist/Icons/index.d.ts +14 -0
  107. package/dist/Icons/paths.json.d.ts +31 -2
  108. package/dist/Icons-500.es.js +270 -242
  109. package/dist/Icons.es.js +550 -473
  110. package/dist/ListItem.es.js +1 -1
  111. package/dist/Menu.es.js +66 -66
  112. package/dist/Modal.es.js +8 -8
  113. package/dist/ModuleItem.es.js +1 -1
  114. package/dist/NavigationDrawer.es.js +4 -4
  115. package/dist/NavigationRail.es.js +1 -1
  116. package/dist/NotificationCard.es.js +24 -24
  117. package/dist/OtpInput.es.js +2 -2
  118. package/dist/ProfilePictureUpload.es.js +16 -16
  119. package/dist/PyrionLayout.es.js +1 -1
  120. package/dist/RecurrentDatePicker.es.js +2 -2
  121. package/dist/RecurrentDatePickerRRule.es.js +2 -2
  122. package/dist/SegmentedButton.es.js +1 -1
  123. package/dist/Select.css +1 -1
  124. package/dist/Select.es.js +1009 -811
  125. package/dist/Sidebar.es.js +1 -1
  126. package/dist/SidebarItem.es.js +11 -11
  127. package/dist/SplitButton.es.js +3 -3
  128. package/dist/StarRating.es.js +1 -1
  129. package/dist/Switch.es.js +3 -78
  130. package/dist/TabSwitch.es.js +1537 -3
  131. package/dist/Table.es.js +170 -170
  132. package/dist/Tabs.es.js +8 -8
  133. package/dist/TextareaInput.es.js +2 -2
  134. package/dist/Toggle.es.js +78 -3
  135. package/dist/Tooltip.es.js +2 -2
  136. package/dist/UserCard.es.js +16 -16
  137. package/dist/components/ActionInput/ActionInput.AttachFields.d.ts +1 -1
  138. package/dist/components/ActionInput/ActionInput.Footer.d.ts +1 -1
  139. package/dist/components/ActionInput/ActionInput.d.ts +2 -2
  140. package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
  141. package/dist/components/Avatar/Avatar.d.ts +1 -1
  142. package/dist/components/Avatar/AvatarAndSubavatar.d.ts +1 -1
  143. package/dist/components/Avatar/AvatarBase.d.ts +1 -1
  144. package/dist/components/Badge/Badge.d.ts +1 -1
  145. package/dist/components/Breadcrumbs/BreadcrumbEllipsis.d.ts +1 -1
  146. package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +1 -1
  147. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  148. package/dist/components/Breadcrumbs/BreadcrumbsListItem.d.ts +1 -1
  149. package/dist/components/Calendar/AgendaView.d.ts +1 -1
  150. package/dist/components/Calendar/Calendar.d.ts +1 -1
  151. package/dist/components/Calendar/CalendarEventItem.d.ts +1 -1
  152. package/dist/components/Calendar/CalendarToolbar.d.ts +1 -1
  153. package/dist/components/Calendar/MonthView.d.ts +1 -1
  154. package/dist/components/Calendar/TimeGridView.d.ts +1 -1
  155. package/dist/components/CardBackground/CardBackground.d.ts +1 -1
  156. package/dist/components/CardProfile/CardProfile.d.ts +6 -6
  157. package/dist/components/Cards/Message/MessageCard.d.ts +1 -1
  158. package/dist/components/Chat/ChatGroup.d.ts +1 -1
  159. package/dist/components/ChatCard/ChatCard.d.ts +1 -1
  160. package/dist/components/ChipSelect/ChipSelect.d.ts +1 -1
  161. package/dist/components/Chips/Chip.d.ts +1 -1
  162. package/dist/components/Chips/PriorityChip.d.ts +1 -1
  163. package/dist/components/Chips/chipTypes.d.ts +5 -1
  164. package/dist/components/CodeInput/CodeInput.d.ts +1 -1
  165. package/dist/components/Collapsible/Collapsible.d.ts +3 -3
  166. package/dist/components/ColorPicker/ColorPicker.d.ts +1 -1
  167. package/dist/components/ColorPicker/ColorPickerFreeform.d.ts +1 -1
  168. package/dist/components/ColorPicker/ColorPickerPalette.d.ts +1 -1
  169. package/dist/components/DatePicker/DatePicker.d.ts +2 -2
  170. package/dist/components/DatePickerPill/DatePickerPill.d.ts +1 -1
  171. package/dist/components/Divider/Divider.d.ts +1 -1
  172. package/dist/components/Drawer/DrawerPanel.d.ts +1 -1
  173. package/dist/components/FAB/FAButton.d.ts +1 -1
  174. package/dist/components/FileCard/FileCard.d.ts +10 -10
  175. package/dist/components/FileChip/FileChip.d.ts +1 -1
  176. package/dist/components/Header/Header.d.ts +1 -1
  177. package/dist/components/Image/Image.d.ts +1 -1
  178. package/dist/components/Image/LightBox.d.ts +1 -1
  179. package/dist/components/Logo/Logo.d.ts +1 -1
  180. package/dist/components/Modal/DesktopModal.d.ts +5 -5
  181. package/dist/components/Modal/Modal.d.ts +3 -3
  182. package/dist/components/NavigationDrawer/NavigationDrawer.d.ts +2 -2
  183. package/dist/components/NavigationRail/NavigationRail.d.ts +2 -2
  184. package/dist/components/NotificationCard/NotificationCard.d.ts +1 -1
  185. package/dist/components/Pagination/Pagination.d.ts +1 -1
  186. package/dist/components/ProfilePictureUpload/ProfilePictureUpload.d.ts +1 -1
  187. package/dist/components/PyrionNavigationDrawer/PLActionEntry.d.ts +2 -2
  188. package/dist/components/PyrionNavigationDrawer/PLHelpSection.d.ts +1 -1
  189. package/dist/components/PyrionNavigationDrawer/PLModulesRail.d.ts +1 -1
  190. package/dist/components/PyrionNavigationDrawer/PLNavEntries.d.ts +1 -1
  191. package/dist/components/PyrionNavigationDrawer/PLNotificationsHyperextensionBottomSlot.d.ts +1 -1
  192. package/dist/components/PyrionNavigationDrawer/PLNotificationsList.d.ts +1 -1
  193. package/dist/components/PyrionNavigationDrawer/PLNotificationsLoader.d.ts +1 -1
  194. package/dist/components/PyrionNavigationDrawer/PLRailModuleEntry.d.ts +1 -1
  195. package/dist/components/PyrionNavigationDrawer/PLSidebarContent.d.ts +1 -1
  196. package/dist/components/PyrionNavigationDrawer/PLSystemLogo.d.ts +1 -1
  197. package/dist/components/PyrionNavigationDrawer/PLTertiaryLinkEntry.d.ts +1 -1
  198. package/dist/components/PyrionNavigationDrawer/PyrionLayout.d.ts +1 -1
  199. package/dist/components/RecurrentDatePicker/CustomFrequencySettings.d.ts +1 -1
  200. package/dist/components/RecurrentDatePicker/FrequencySettings.d.ts +1 -1
  201. package/dist/components/RecurrentDatePicker/MonthlyFrequencySettings.d.ts +1 -1
  202. package/dist/components/RecurrentDatePicker/PreviewCalendar.d.ts +1 -1
  203. package/dist/components/RecurrentDatePicker/RecurrentDatePicker.d.ts +1 -1
  204. package/dist/components/RecurrentDatePicker/RecurrentDatePickerRRule.d.ts +1 -1
  205. package/dist/components/RecurrentDatePicker/WeekdaysSelector.d.ts +1 -1
  206. package/dist/components/RecurrentDatePicker/WeeklyFrequencySetting.d.ts +1 -1
  207. package/dist/components/RecurrentDatePicker/YearlyFrequencySettings.d.ts +1 -1
  208. package/dist/components/Scrollable/Scrollable.d.ts +1 -1
  209. package/dist/components/SegmentedButton/SegmentedButton.d.ts +1 -1
  210. package/dist/components/Select/DefaultOption.d.ts +1 -1
  211. package/dist/components/Select/Select.d.ts +1 -1
  212. package/dist/components/Select/SelectDropdown.d.ts +4 -3
  213. package/dist/components/Select/SelectTrigger.d.ts +6 -7
  214. package/dist/components/Select/types.d.ts +63 -3
  215. package/dist/components/SelectSearch/SelectSearch.d.ts +1 -1
  216. package/dist/components/SelectSearch/SelectSearchLegacy.d.ts +1 -1
  217. package/dist/components/Shared/HelperComponent.d.ts +1 -1
  218. package/dist/components/Sidebar/Sidebar.d.ts +1 -1
  219. package/dist/components/Sidebar/SidebarAppInfo.d.ts +1 -1
  220. package/dist/components/Sidebar/SidebarCollapseToggle.d.ts +1 -1
  221. package/dist/components/Sidebar/components/badge.d.ts +1 -1
  222. package/dist/components/Sidebar/components/changue-account.d.ts +1 -1
  223. package/dist/components/Sidebar/components/collapse-button.d.ts +1 -1
  224. package/dist/components/SidebarItem/SidebarItem.d.ts +1 -1
  225. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  226. package/dist/components/Spinner/Spinner.d.ts +1 -1
  227. package/dist/components/SplitButton/SplitButton.d.ts +1 -1
  228. package/dist/components/StarRating/StarRating.d.ts +2 -2
  229. package/dist/components/Subtitle/Subtitle.d.ts +1 -1
  230. package/dist/components/Table/HeadRow.d.ts +1 -1
  231. package/dist/components/Table/HeaderCell.d.ts +1 -1
  232. package/dist/components/Table/RowCell.d.ts +1 -1
  233. package/dist/components/Table/TableBody.d.ts +1 -1
  234. package/dist/components/Table/TableFooter.d.ts +1 -1
  235. package/dist/components/Table/TableHeader.d.ts +1 -1
  236. package/dist/components/Table/TableRow.d.ts +1 -1
  237. package/dist/components/Tabs/Tab.d.ts +2 -2
  238. package/dist/components/Tabs/Tabs.d.ts +1 -1
  239. package/dist/components/TertiaryLevelSidebar/TertiaryLevelSidebar.d.ts +1 -1
  240. package/dist/components/TicketCard/TicketCard.d.ts +4 -4
  241. package/dist/components/Title/Title.d.ts +1 -1
  242. package/dist/components/Toaster/ToastProvider.d.ts +1 -1
  243. package/dist/components/Toaster/Toaster.d.ts +2 -2
  244. package/dist/components/Toggle/Toggle.d.ts +1 -1
  245. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  246. package/dist/components/UserAccountMenu/UserAccountMenu.d.ts +1 -1
  247. package/dist/{drawerRegistrationContext-Dm86v5MO.js → drawerRegistrationContext-wrGfL1XJ.js} +3 -3
  248. package/dist/exports/Select.d.ts +1 -1
  249. package/dist/index.d.ts +1 -1
  250. package/dist/prometeo-design-system.es.js +236 -236
  251. package/dist/styles.css +1 -1
  252. package/dist/{useDrawerCollapsed-CJOXf2Fw.js → useDrawerCollapsed-DpxHSr6u.js} +1 -1
  253. package/dist/useDrawerCollapsed.es.js +1 -1
  254. package/dist/{useDrawerControl-B3mYMhai.js → useDrawerControl-H3_CBNvK.js} +2 -2
  255. package/dist/{useModalControl-CM1LgGIM.js → useModalControl-Ca832V0w.js} +1 -1
  256. package/dist/usePyrionLayout.es.js +1 -1
  257. package/package.json +1 -1
  258. package/src/styles/dist-entry.css +9 -0
  259. package/src/styles/tokens.css +0 -1
  260. package/src/styles/utilities/background.css +0 -2
  261. package/src/styles/utilities/border.css +0 -1
  262. package/src/styles/utilities/dataviz.css +0 -1
  263. package/src/styles/utilities/icon.css +0 -1
  264. package/src/styles/utilities/os.css +0 -2
  265. package/src/styles/utilities/size.css +0 -1
  266. package/src/styles/utilities/text.css +0 -1
  267. package/src/styles/utility-variants.css +384 -0
  268. package/dist/DatePicker-CdLqTQWn.js +0 -3882
  269. package/dist/usePyrionLayout-DA4pTw-b.js +0 -1539
@@ -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 P, forwardRef as E, useCallback as G } from "react";
4
- import { useDropzone as H } from "react-dropzone";
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 { PlainTooltip as q } from "./PlainTooltip.es.js";
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 = E(
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 = G(
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
- } = H({
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, T = d ?? N(m ?? {}), B = N(m ?? {});
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
- T,
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: B, children: /* @__PURE__ */ t.jsx(
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 = P(w);
216
+ const ue = E(w);
217
217
  export {
218
218
  ue as AttachInput,
219
219
  ue as default
@@ -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 { SegmentedButton as at } from "./SegmentedButton.es.js";
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 { useContext as z, createContext as w, memo as s, forwardRef as F, useMemo as H } from "react";
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 = w(null);
6
+ const C = z(null);
7
7
  function m() {
8
- const a = z(C);
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>"
@@ -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 b } from "react";
5
- import { AvatarAndSubavatar as j } from "./Avatar.es.js";
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
- j,
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 && b(o) && o.type === s.Image) {
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" }), A = ({ isExpanded: t, onClick: r }) => /* @__PURE__ */ e.jsx(
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: A
285
+ Options: P
286
286
  });
287
287
  export {
288
288
  s as CardProfile,
package/dist/Chat.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { M as f } from "./ChatCard-O3S0nzbH.js";
1
+ import { M as f } from "./ChatCard-CkayOQuw.js";
2
2
  import { j as a } from "./jsx-runtime-GkKLlHH4.js";
3
3
  import { memo as d, forwardRef as l, useMemo as m } from "react";
4
4
  import { c as i } from "./cn-B6yFEsav.js";
@@ -1,30 +1,104 @@
1
1
  import { j as n } from "./jsx-runtime-GkKLlHH4.js";
2
- import { memo as d, forwardRef as j, Children as C, isValidElement as h, cloneElement as w } from "react";
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 { AvatarAndSubavatar as b } from "./Avatar.es.js";
6
- import S from "./Link.es.js";
7
- import D from "./CardBackground.es.js";
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 z = m("relative overflow-hidden flex flex-col rounded-[var(--radius-large)]", {
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
- }), A = m("flex flex-col gap-3 relative z-10 p-3"), x = d(function({
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
- }), v = d(function({
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 = k(e);
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 F(t) {
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 V(t) {
148
+ function R(t) {
75
149
  const e = t.type;
76
- return e === p || F(e) === "ChatCard.Footer";
150
+ return e === p || P(e) === "ChatCard.Footer";
77
151
  }
78
- function $(t) {
152
+ function G(t) {
79
153
  const e = [], r = [];
80
154
  return C.forEach(t, (a) => {
81
- if (h(a) && V(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 E = j(function({ cardBackground: e, children: r, className: a, direction: s = "left", ...o }, i) {
89
- const { commentContent: f, footers: u } = $(r);
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(z({ direction: s }), a),
167
+ className: l(T({ direction: s }), a),
94
168
  ref: i,
95
169
  ...o,
96
170
  children: [
97
171
  /* @__PURE__ */ n.jsx(
98
- D,
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: A(), children: f }),
180
+ /* @__PURE__ */ n.jsx("div", { className: M(), children: f }),
107
181
  u
108
182
  ]
109
183
  }
110
184
  );
111
185
  });
112
- function T(t) {
113
- return /* @__PURE__ */ n.jsx(y, { ...t });
186
+ function H(t) {
187
+ return /* @__PURE__ */ n.jsx(x, { ...t });
114
188
  }
115
- const c = d(E);
116
- c.Content = x;
117
- c.Text = v;
189
+ const c = d(B);
190
+ c.Content = v;
191
+ c.Text = y;
118
192
  c.Footer = p;
119
- c.Participant = T;
193
+ c.Participant = H;
120
194
  c.displayName = "ChatCard";
121
- x.displayName = "ChatCard.Content";
122
- v.displayName = "ChatCard.Text";
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
- y as M
200
+ x as M
201
201
  };
@@ -1,4 +1,4 @@
1
- import { C as f } from "./ChatCard-O3S0nzbH.js";
1
+ import { C as f } from "./ChatCard-CkayOQuw.js";
2
2
  export {
3
3
  f as default
4
4
  };