@edifice.io/react 2.5.6 → 2.5.8

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 (155) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +8 -0
  2. package/dist/_virtual/common.js +4 -0
  3. package/dist/_virtual/de_DE.js +4 -0
  4. package/dist/_virtual/de_DE2.js +4 -0
  5. package/dist/_virtual/de_DE3.js +4 -0
  6. package/dist/_virtual/de_DE4.js +4 -0
  7. package/dist/_virtual/de_DE5.js +4 -0
  8. package/dist/_virtual/de_DE6.js +4 -0
  9. package/dist/_virtual/defineProperty.js +4 -0
  10. package/dist/_virtual/es_ES.js +4 -0
  11. package/dist/_virtual/es_ES2.js +4 -0
  12. package/dist/_virtual/es_ES3.js +4 -0
  13. package/dist/_virtual/es_ES4.js +4 -0
  14. package/dist/_virtual/es_ES5.js +4 -0
  15. package/dist/_virtual/es_ES6.js +4 -0
  16. package/dist/_virtual/fr_FR.js +4 -0
  17. package/dist/_virtual/fr_FR2.js +4 -0
  18. package/dist/_virtual/fr_FR3.js +4 -0
  19. package/dist/_virtual/fr_FR4.js +4 -0
  20. package/dist/_virtual/fr_FR5.js +4 -0
  21. package/dist/_virtual/fr_FR6.js +4 -0
  22. package/dist/_virtual/interopRequireDefault.js +4 -0
  23. package/dist/_virtual/it_IT.js +4 -0
  24. package/dist/_virtual/it_IT2.js +4 -0
  25. package/dist/_virtual/it_IT3.js +4 -0
  26. package/dist/_virtual/it_IT4.js +4 -0
  27. package/dist/_virtual/it_IT5.js +4 -0
  28. package/dist/_virtual/it_IT6.js +4 -0
  29. package/dist/_virtual/localeData.js +4 -0
  30. package/dist/_virtual/objectSpread2.js +4 -0
  31. package/dist/_virtual/pt_PT.js +4 -0
  32. package/dist/_virtual/pt_PT2.js +4 -0
  33. package/dist/_virtual/pt_PT3.js +4 -0
  34. package/dist/_virtual/pt_PT4.js +4 -0
  35. package/dist/_virtual/pt_PT5.js +4 -0
  36. package/dist/_virtual/pt_PT6.js +4 -0
  37. package/dist/_virtual/toPrimitive.js +4 -0
  38. package/dist/_virtual/toPropertyKey.js +4 -0
  39. package/dist/_virtual/typeof.js +4 -0
  40. package/dist/_virtual/weekday.js +4 -0
  41. package/dist/components/AppIcon/index.d.ts +1 -0
  42. package/dist/components/Badge/Badge.d.ts +12 -1
  43. package/dist/components/Badge/Badge.js +15 -2
  44. package/dist/components/Combobox/Combobox.js +1 -1
  45. package/dist/components/Combobox/ComboboxTrigger.js +1 -1
  46. package/dist/components/DatePicker/DatePicker.js +35 -0
  47. package/dist/components/DatePicker/index.d.ts +2 -0
  48. package/dist/components/Divider/Divider.d.ts +38 -0
  49. package/dist/components/Divider/Divider.js +11 -0
  50. package/dist/components/Divider/index.d.ts +2 -0
  51. package/dist/components/Flex/Flex.js +1 -1
  52. package/dist/components/Menu/components/MenuButton.d.ts +2 -0
  53. package/dist/components/Menu/components/MenuButton.js +13 -4
  54. package/dist/components/SegmentedControl/SegmentedControl.d.ts +59 -0
  55. package/dist/components/SegmentedControl/SegmentedControl.js +24 -0
  56. package/dist/components/SegmentedControl/index.d.ts +2 -0
  57. package/dist/components/Select/Select.d.ts +6 -2
  58. package/dist/components/Select/Select.js +10 -4
  59. package/dist/components/index.d.ts +3 -0
  60. package/dist/editor.js +40 -36
  61. package/dist/hooks/index.d.ts +1 -0
  62. package/dist/hooks/useDropzone/useDropzone.d.ts +2 -2
  63. package/dist/hooks/useDropzone/useDropzone.js +20 -5
  64. package/dist/hooks/useInfiniteScroll/index.d.ts +1 -0
  65. package/dist/hooks/useInfiniteScroll/useInfiniteScroll.d.ts +33 -0
  66. package/dist/hooks/useInfiniteScroll/useInfiniteScroll.js +20 -0
  67. package/dist/icons.js +302 -298
  68. package/dist/index.js +188 -170
  69. package/dist/modals.js +8 -6
  70. package/dist/modules/comments/components/Comment.js +4 -2
  71. package/dist/modules/comments/components/CommentList.js +1 -1
  72. package/dist/modules/comments/components/DeleteModal.js +14 -8
  73. package/dist/modules/editor/components/Editor/Editor.js +1 -1
  74. package/dist/modules/editor/components/Editor/EditorPreview.d.ts +14 -0
  75. package/dist/modules/editor/components/Editor/EditorPreview.js +56 -0
  76. package/dist/modules/editor/components/Editor/EditorPreviewSkeleton.d.ts +8 -0
  77. package/dist/modules/editor/components/Editor/EditorPreviewSkeleton.js +24 -0
  78. package/dist/modules/editor/components/Editor/index.d.ts +2 -0
  79. package/dist/modules/editor/components/Renderer/AttachmentRenderer.js +2 -2
  80. package/dist/modules/editor/hooks/useMediaLibraryEditor.js +4 -3
  81. package/dist/modules/icons/components/IconClockAlert.d.ts +7 -0
  82. package/dist/modules/icons/components/IconClockAlert.js +17 -0
  83. package/dist/modules/icons/components/IconSubmitToValidate.d.ts +7 -0
  84. package/dist/modules/icons/components/IconSubmitToValidate.js +12 -0
  85. package/dist/modules/icons/components/index.d.ts +2 -0
  86. package/dist/modules/modals/ShareModal/ShareBookmark.d.ts +1 -1
  87. package/dist/modules/modals/ShareModal/ShareBookmark.js +6 -3
  88. package/dist/modules/modals/ShareModal/ShareBookmarkLine.js +4 -4
  89. package/dist/modules/modals/ShareModal/ShareModal.d.ts +1 -11
  90. package/dist/modules/modals/ShareModal/ShareModal.js +13 -105
  91. package/dist/modules/modals/ShareModal/ShareResources.d.ts +187 -0
  92. package/dist/modules/modals/ShareModal/ShareResources.js +145 -0
  93. package/dist/modules/modals/ShareModal/hooks/useSearch.d.ts +5 -3
  94. package/dist/modules/modals/ShareModal/hooks/useSearch.js +12 -16
  95. package/dist/modules/modals/ShareModal/hooks/useShare.d.ts +12 -5
  96. package/dist/modules/modals/ShareModal/hooks/useShare.js +20 -13
  97. package/dist/modules/modals/ShareModal/hooks/useShareBookmark.d.ts +1 -1
  98. package/dist/modules/modals/ShareModal/hooks/useShareBookmark.js +1 -1
  99. package/dist/modules/modals/ShareModal/index.d.ts +3 -1
  100. package/dist/modules/multimedia/MediaLibrary/index.d.ts +2 -0
  101. package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +1 -1
  102. package/dist/modules/multimedia/index.d.ts +1 -0
  103. package/dist/multimedia.js +14 -8
  104. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/defineProperty.js +18 -0
  105. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/interopRequireDefault.js +13 -0
  106. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/objectSpread2.js +31 -0
  107. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPrimitive.js +20 -0
  108. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPropertyKey.js +15 -0
  109. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/typeof.js +16 -0
  110. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/de_DE.js +11 -0
  111. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/es_ES.js +11 -0
  112. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/fr_FR.js +11 -0
  113. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/it_IT.js +11 -0
  114. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/pt_PT.js +11 -0
  115. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/de_DE.js +22 -0
  116. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/es_ES.js +22 -0
  117. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/fr_FR.js +27 -0
  118. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/it_IT.js +20 -0
  119. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/pt_PT.js +45 -0
  120. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/de_DE.js +145 -0
  121. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/es_ES.js +145 -0
  122. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/fr_FR.js +144 -0
  123. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/it_IT.js +156 -0
  124. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/pt_PT.js +158 -0
  125. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/de_DE.js +10 -0
  126. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/es_ES.js +10 -0
  127. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/fr_FR.js +10 -0
  128. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/it_IT.js +10 -0
  129. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/pt_PT.js +10 -0
  130. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/de_DE.js +8 -0
  131. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/es_ES.js +8 -0
  132. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/fr_FR.js +8 -0
  133. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/it_IT.js +8 -0
  134. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/pt_PT.js +8 -0
  135. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/localeData.js +82 -0
  136. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/weekday.js +19 -0
  137. package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/de_DE.js +21 -0
  138. package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/es_ES.js +21 -0
  139. package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/fr_FR.js +21 -0
  140. package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/it_IT.js +21 -0
  141. package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/pt_PT.js +21 -0
  142. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/common.js +14 -0
  143. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/de_DE.js +37 -0
  144. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/es_ES.js +37 -0
  145. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/fr_FR.js +38 -0
  146. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/it_IT.js +37 -0
  147. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/pt_PT.js +39 -0
  148. package/dist/providers/AntThemeProvider/AntProvider.d.ts +2 -2
  149. package/dist/providers/AntThemeProvider/AntProvider.js +19 -2
  150. package/dist/style.css +1 -1
  151. package/dist/utilities/index.d.ts +1 -0
  152. package/dist/utilities/react-query/index.d.ts +1 -0
  153. package/dist/utilities/react-query/react-query-utils.d.ts +21 -0
  154. package/dist/utilities/react-query/react-query-utils.js +13 -0
  155. package/package.json +8 -7
@@ -0,0 +1,8 @@
1
+ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function getDefaultExportFromCjs(x) {
3
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
4
+ }
5
+ export {
6
+ commonjsGlobal,
7
+ getDefaultExportFromCjs
8
+ };
@@ -0,0 +1,4 @@
1
+ var common = {};
2
+ export {
3
+ common as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var defineProperty = { exports: {} };
2
+ export {
3
+ defineProperty as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var interopRequireDefault = { exports: {} };
2
+ export {
3
+ interopRequireDefault as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var localeData = { exports: {} };
2
+ export {
3
+ localeData as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var objectSpread2 = { exports: {} };
2
+ export {
3
+ objectSpread2 as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var toPrimitive = { exports: {} };
2
+ export {
3
+ toPrimitive as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var toPropertyKey = { exports: {} };
2
+ export {
3
+ toPropertyKey as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var _typeof = { exports: {} };
2
+ export {
3
+ _typeof as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var weekday = { exports: {} };
2
+ export {
3
+ weekday as __module
4
+ };
@@ -1 +1,2 @@
1
+ export * from './AppIcon';
1
2
  export { default as AppIcon } from './AppIcon';
@@ -26,7 +26,17 @@ export type ChipBadgeVariant = {
26
26
  export type LinkBadgeVariant = {
27
27
  type: 'link';
28
28
  };
29
- export type BadgeVariants = NotificationBadgeVariant | ContentBadgeVariant | ProfileBadgeVariant | ChipBadgeVariant | LinkBadgeVariant;
29
+ /**
30
+ * Badge variant : beta.
31
+ * Beta Badge is used to indicate that a feature is in beta phase.
32
+ * The color prop allows to customize the badge color to match the app color.
33
+ * Defaults to black if not provided.
34
+ */
35
+ export type BetaBadgeVariant = {
36
+ type: 'beta';
37
+ color?: string;
38
+ };
39
+ export type BadgeVariants = NotificationBadgeVariant | ContentBadgeVariant | ProfileBadgeVariant | ChipBadgeVariant | LinkBadgeVariant | BetaBadgeVariant;
30
40
  export interface BadgeProps extends React.ComponentPropsWithRef<'span'> {
31
41
  /**
32
42
  * Badge variant : notification, link or profile (Teacher|Student|Relative|Personnel)
@@ -35,6 +45,7 @@ export interface BadgeProps extends React.ComponentPropsWithRef<'span'> {
35
45
  variant?: BadgeVariants;
36
46
  /**
37
47
  * Text or icon (or whatever) to render as children elements.
48
+ * Defaults to 'BÊTA' for beta variant.
38
49
  */
39
50
  children?: ReactNode;
40
51
  /**
@@ -1,4 +1,4 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import clsx from "clsx";
4
4
  const Badge = /* @__PURE__ */ forwardRef(({
@@ -11,7 +11,20 @@ const Badge = /* @__PURE__ */ forwardRef(({
11
11
  ...restProps
12
12
  }, ref) => {
13
13
  const classes = clsx("badge rounded-pill", (variant.type === "content" || variant.type === "user") && "background" in variant ? "bg-gray-200" : (variant.type === "content" || variant.type === "user") && !("background" in variant) ? "border border-0" : "", variant.type === "content" && `text-${variant.level}`, variant.type === "notification" && `badge-notification bg-${variant.level} text-light border border-0`, variant.type === "user" && `badge-profile-${variant.profile.toLowerCase()}`, variant.type === "link" && "badge-link border border-0", variant.type === "chip" && "bg-gray-200", className);
14
- return /* @__PURE__ */ jsx("span", { ref, className: classes, ...restProps, children: variant.type === "chip" ? /* @__PURE__ */ jsx("div", { className: "d-flex fw-800 align-items-center", children }) : children });
14
+ return /* @__PURE__ */ jsxs("span", { ref, className: classes, style: (() => {
15
+ if (variant.type !== "beta") return;
16
+ const color = variant.color ?? "#000000";
17
+ return {
18
+ borderColor: color,
19
+ color,
20
+ backgroundColor: `${color}10`
21
+ // the 2 last hexadecimal numbers are for opacity
22
+ };
23
+ })(), ...restProps, children: [
24
+ variant.type === "chip" && /* @__PURE__ */ jsx("div", { className: "d-flex fw-800 align-items-center", children }),
25
+ variant.type === "beta" && (children ?? "BÊTA"),
26
+ variant.type !== "chip" && variant.type !== "beta" && children
27
+ ] });
15
28
  });
16
29
  export {
17
30
  Badge as default
@@ -51,7 +51,7 @@ const ComboboxComponent = /* @__PURE__ */ forwardRef(({
51
51
  /* @__PURE__ */ jsx(Combobox.Trigger, { placeholder, searchMinLength, handleSearchInputChange: onSearchInputChange, handleSearchInputKeyUp: (event) => {
52
52
  onSearchInputKeyUp == null || onSearchInputKeyUp(event);
53
53
  }, value, variant, renderInputGroup, renderSelectedItems, hasDefault: !!options.length, onFocus, onBlur, inputRef }),
54
- /* @__PURE__ */ jsx(Dropdown.Menu, { children: renderContent() })
54
+ /* @__PURE__ */ jsx(Dropdown.Menu, { "data-testid": "combobox-search-menu", children: renderContent() })
55
55
  ] });
56
56
  }), Combobox = /* @__PURE__ */ Object.assign(ComboboxComponent, {
57
57
  Trigger: ComboboxTrigger
@@ -48,7 +48,7 @@ const ComboboxTrigger = ({
48
48
  !!renderInputGroup && /* @__PURE__ */ jsx("label", { className: "input-group-text pe-0" + classNameVariant, htmlFor: triggerProps.id, children: renderInputGroup }),
49
49
  /* @__PURE__ */ jsxs("div", { className: "d-flex align-items-center flex-wrap flex-fill", children: [
50
50
  renderSelectedItems,
51
- /* @__PURE__ */ jsx(Input, { ...inputProps, className: classNameInput, onFocus, onBlur, noValidationIcon: !0, placeholder, size: "md", type: "search", onKeyDown: itemProps.onMenuItemKeyDown })
51
+ /* @__PURE__ */ jsx(Input, { "data-testid": "combobox-search-input", ...inputProps, className: classNameInput, onFocus, onBlur, noValidationIcon: !0, placeholder, size: "md", type: "search", onKeyDown: itemProps.onMenuItemKeyDown })
52
52
  ] })
53
53
  ] });
54
54
  };
@@ -0,0 +1,35 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { DatePicker as DatePicker$1 } from "antd";
3
+ import dayjs from "dayjs";
4
+ import localeData from "../../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/localeData.js";
5
+ import weekday from "../../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/weekday.js";
6
+ import { forwardRef } from "react";
7
+ import "dayjs/locale/de.js";
8
+ import "dayjs/locale/es.js";
9
+ import "dayjs/locale/fr.js";
10
+ import "dayjs/locale/it.js";
11
+ import "dayjs/locale/pt.js";
12
+ dayjs.extend(weekday);
13
+ dayjs.extend(localeData);
14
+ const DatePicker = /* @__PURE__ */ forwardRef(({
15
+ value,
16
+ onChange,
17
+ dateFormat = "DD / MM / YYYY",
18
+ minDate,
19
+ maxDate
20
+ }, ref) => {
21
+ const handleChange = (date) => {
22
+ onChange == null || onChange(date ? date.toDate() : void 0);
23
+ }, antProps = {
24
+ value: value ? dayjs(value) : void 0,
25
+ onChange: handleChange,
26
+ format: dateFormat,
27
+ minDate: minDate ? dayjs(minDate) : void 0,
28
+ maxDate: maxDate ? dayjs(maxDate) : void 0,
29
+ ref
30
+ };
31
+ return /* @__PURE__ */ jsx(DatePicker$1, { ...antProps });
32
+ });
33
+ export {
34
+ DatePicker as default
35
+ };
@@ -0,0 +1,2 @@
1
+ export { default as DatePicker } from './DatePicker';
2
+ export * from './DatePicker';
@@ -0,0 +1,38 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * A divider component that renders a horizontal or vertical line to separate content.
4
+ *
5
+ * @param props - The component props
6
+ * @param props.children - Content to be displayed inside the divider
7
+ * @param props.vertical - Whether the divider is vertical. Defaults to false
8
+ * @param props.className - Optional CSS class name for additional styling of the divider
9
+ * @default 'border-gray-500'
10
+ * @param props.style - Optional inline styles for the divider
11
+ *
12
+ * @returns A React component that renders a divider with the specified properties
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * // Basic horizontal divider
17
+ * <Divider />
18
+ *
19
+ * // Divider with text content
20
+ * <Divider>Section Title</Divider>
21
+ *
22
+ * // Vertical divider
23
+ * <Divider vertical />
24
+ *
25
+ * // Custom colored divider
26
+ * <Divider className="border-red-500" />
27
+ * ```
28
+ */
29
+ declare const Divider: {
30
+ ({ children, vertical, className, style, }: {
31
+ children?: ReactNode;
32
+ vertical?: boolean;
33
+ className?: string;
34
+ style?: React.CSSProperties;
35
+ }): import("react/jsx-runtime").JSX.Element;
36
+ displayName: string;
37
+ };
38
+ export default Divider;
@@ -0,0 +1,11 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Divider as Divider$1 } from "antd";
3
+ const Divider = ({
4
+ children,
5
+ vertical = !1,
6
+ className = "border-gray-500",
7
+ style
8
+ }) => /* @__PURE__ */ jsx(Divider$1, { plain: !0, children, type: vertical ? "vertical" : "horizontal", className, orientation: "center", style });
9
+ export {
10
+ Divider as default
11
+ };
@@ -0,0 +1,2 @@
1
+ export * from './Divider';
2
+ export { default as Divider } from './Divider';
@@ -13,7 +13,7 @@ const Flex = /* @__PURE__ */ forwardRef(({
13
13
  children,
14
14
  ...restProps
15
15
  }, ref) => {
16
- const classes = clsx("d-flex", direction && `flex-${direction}`, fill && "flex-fill", align && `align-items-${align}`, justify && `justify-content-${justify}`, gap && `gap-${gap}`, wrap && `flex-${wrap}`, className);
16
+ const classes = clsx("d-flex", direction && `flex-${direction}`, fill && "flex-fill", align && `align-items-${align}`, justify && `justify-content-${justify}`, gap && `gap-${gap}`, wrap && `flex-${wrap === "reverse" ? "wrap-reverse" : wrap}`, className);
17
17
  return /* @__PURE__ */ jsx(Component, { ref, className: classes, ...restProps, children });
18
18
  });
19
19
  export {
@@ -1,5 +1,7 @@
1
1
  import { ButtonProps } from '../../Button';
2
2
  export type MenuButtonProps = Pick<ButtonProps, 'children' | 'leftIcon' | 'rightIcon' | 'onClick'> & {
3
3
  selected: boolean;
4
+ className?: string;
5
+ size?: 'md' | 'lg';
4
6
  };
5
7
  export declare const MenuButton: (props: Partial<MenuButtonProps>) => import("react/jsx-runtime").JSX.Element;
@@ -8,13 +8,22 @@ const MenuButton = (props) => {
8
8
  leftIcon,
9
9
  rightIcon,
10
10
  onClick,
11
- children
11
+ children,
12
+ className,
13
+ size
12
14
  } = props, {
13
15
  childProps
14
16
  } = useMenuContext();
15
- return /* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", className: clsx("stack w-100", {
16
- selected
17
- }), leftIcon, rightIcon, onClick, ...childProps, children });
17
+ return /* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", className: clsx("stack w-100 overflow-hidden", {
18
+ selected,
19
+ "menu-button-lg": size === "lg"
20
+ }, className), leftIcon, rightIcon, onClick, ...childProps, style: size === "lg" ? {
21
+ height: "auto"
22
+ } : void 0, children: /* @__PURE__ */ jsx("div", { className: clsx("text-truncate w-100 text-start", {
23
+ "text-truncate-2 text-start ms-0": size === "lg"
24
+ }), style: {
25
+ overflowWrap: "break-word"
26
+ }, children }) });
18
27
  };
19
28
  export {
20
29
  MenuButton
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Simple option for SegmentedControl
3
+ */
4
+ export interface SegmentedOption {
5
+ /**
6
+ * Option label
7
+ */
8
+ label: string;
9
+ /**
10
+ * Option value
11
+ */
12
+ value: string;
13
+ }
14
+ /**
15
+ * SegmentedControl component props
16
+ *
17
+ * Minimal interface that only exposes what is necessary.
18
+ * Ant Design implementation is hidden and no Ant Design-specific props are exposed.
19
+ * Standard HTML div attributes are supported (passed through to the underlying DOM element).
20
+ */
21
+ export interface SegmentedControlProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
22
+ /**
23
+ * Segmented control options
24
+ */
25
+ options: SegmentedOption[];
26
+ /**
27
+ * Selected value
28
+ */
29
+ value?: string;
30
+ /**
31
+ * Callback called when value changes
32
+ */
33
+ onChange?: (value: string) => void;
34
+ }
35
+ /**
36
+ * SegmentedControl component
37
+ *
38
+ * Segmented control component for selecting between multiple options.
39
+ *
40
+ * **Note:** This component uses Ant Design's Segmented component internally.
41
+ * Only the props defined in SegmentedControlProps are allowed to prevent
42
+ * dependency on Ant Design-specific features. To replace the implementation,
43
+ * modify the component body below.
44
+ *
45
+ * @example
46
+ * ```tsx
47
+ * <SegmentedControl
48
+ * options={[
49
+ * { label: 'List', value: 'list' },
50
+ * { label: 'Kanban', value: 'kanban' },
51
+ * { label: 'Table', value: 'table' }
52
+ * ]}
53
+ * value={value}
54
+ * onChange={(val) => setValue(val)}
55
+ * />
56
+ * ```
57
+ */
58
+ declare const SegmentedControl: import('react').ForwardRefExoticComponent<SegmentedControlProps & import('react').RefAttributes<HTMLDivElement>>;
59
+ export default SegmentedControl;
@@ -0,0 +1,24 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from "react";
3
+ import { Segmented } from "antd";
4
+ const SegmentedControl = /* @__PURE__ */ forwardRef(({
5
+ options,
6
+ value,
7
+ onChange,
8
+ ...htmlProps
9
+ }, ref) => {
10
+ const antProps = {
11
+ options: options.map((option) => ({
12
+ ...option,
13
+ label: /* @__PURE__ */ jsx("span", { "data-testid": `segmented-option-${option.value}`, children: option.label })
14
+ })),
15
+ value,
16
+ onChange,
17
+ ref,
18
+ ...htmlProps
19
+ };
20
+ return /* @__PURE__ */ jsx(Segmented, { ...antProps });
21
+ });
22
+ export {
23
+ SegmentedControl as default
24
+ };
@@ -0,0 +1,2 @@
1
+ export { default as SegmentedControl } from './SegmentedControl';
2
+ export * from './SegmentedControl';
@@ -14,7 +14,7 @@ export interface OptionsType {
14
14
  */
15
15
  icon?: JSX.Element;
16
16
  }
17
- export interface SelectProps extends Omit<DropdownProps, 'children'>, Omit<DropdownTriggerProps, 'badgeContent'> {
17
+ export interface SelectProps extends Omit<DropdownProps, 'children'>, Omit<DropdownTriggerProps, 'badgeContent' | 'defaultValue'> {
18
18
  /**
19
19
  * Controlled value
20
20
  */
@@ -31,13 +31,17 @@ export interface SelectProps extends Omit<DropdownProps, 'children'>, Omit<Dropd
31
31
  * Callback to get value
32
32
  */
33
33
  onValueChange?: (option: OptionsType | string) => void;
34
+ /**
35
+ * Default value
36
+ */
37
+ defaultValue?: string;
34
38
  }
35
39
  /**
36
40
  *
37
41
  * Select component is based on Dropdown Component. It extends `Dropdown` and `Dropdown.Trigger` props `block`, `overflow`, `icon`, `variant`, `size`, `disabled`
38
42
  */
39
43
  declare const Select: {
40
- ({ selectedValue, icon, options, overflow, block, variant, size, disabled, placeholderOption, onValueChange, }: SelectProps): import("react/jsx-runtime").JSX.Element;
44
+ ({ selectedValue, icon, options, overflow, block, variant, size, disabled, placeholderOption, onValueChange, defaultValue, }: SelectProps): import("react/jsx-runtime").JSX.Element;
41
45
  displayName: string;
42
46
  };
43
47
  export default Select;
@@ -1,8 +1,8 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { useTranslation } from "react-i18next";
4
- import SelectTrigger from "./SelectTrigger.js";
5
4
  import Dropdown from "../Dropdown/Dropdown.js";
5
+ import SelectTrigger from "./SelectTrigger.js";
6
6
  const Select = ({
7
7
  selectedValue,
8
8
  icon,
@@ -13,7 +13,8 @@ const Select = ({
13
13
  size,
14
14
  disabled,
15
15
  placeholderOption,
16
- onValueChange
16
+ onValueChange,
17
+ defaultValue
17
18
  }) => {
18
19
  const [localValue, setLocalValue] = useState(), {
19
20
  t
@@ -25,10 +26,15 @@ const Select = ({
25
26
  const value = typeof localValue == "object" ? localValue.value : localValue;
26
27
  onValueChange == null || onValueChange(value);
27
28
  }
28
- }, [localValue]);
29
+ }, [localValue]), useEffect(() => {
30
+ if (defaultValue) {
31
+ const foundOption = options.find((option) => (typeof option == "object" ? option.value : option) === defaultValue);
32
+ foundOption !== void 0 && setLocalValue(foundOption);
33
+ }
34
+ }, []);
29
35
  const label = typeof localValue == "object" ? localValue.label : localValue, iconChange = typeof localValue == "object" ? localValue.icon : void 0;
30
36
  return /* @__PURE__ */ jsxs(Dropdown, { overflow, block, children: [
31
- /* @__PURE__ */ jsx(SelectTrigger, { icon: iconChange || icon, label: t(label || placeholderOption), variant, size, disabled }),
37
+ /* @__PURE__ */ jsx(SelectTrigger, { icon: iconChange || icon, label: /* @__PURE__ */ jsx("span", { className: "text-truncate", children: t(label || placeholderOption) }), variant, size, disabled }),
32
38
  /* @__PURE__ */ jsx(Dropdown.Menu, { role: "listbox", children: options == null ? void 0 : options.map((option) => {
33
39
  const value = typeof option == "object" ? option.value : option, label2 = typeof option == "object" ? option.label : option, icon2 = typeof option == "object" ? option.icon : void 0;
34
40
  return /* @__PURE__ */ jsx(Dropdown.Item, { type: "action", onClick: () => setLocalValue(option), icon: icon2, children: label2 }, value);
@@ -12,6 +12,8 @@ export * from './Card';
12
12
  export * from './Checkbox';
13
13
  export * from './ColorPicker';
14
14
  export * from './Combobox';
15
+ export * from './DatePicker';
16
+ export * from './Divider';
15
17
  export * from './Dropdown';
16
18
  export * from './Dropzone';
17
19
  export * from './EmptyScreen';
@@ -34,6 +36,7 @@ export * from './PreventPropagation';
34
36
  export * from './Radio';
35
37
  export * from './RadioCard';
36
38
  export * from './SearchBar';
39
+ export * from './SegmentedControl';
37
40
  export * from './Select';
38
41
  export * from './Skeleton';
39
42
  export * from './StackedGroup';