@42-central/ui-react 0.26.0 → 0.27.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 (138) hide show
  1. package/dist/{chunk-YZJUPYPO.js → chunk-2W7H43WL.js} +3 -3
  2. package/dist/{chunk-YZJUPYPO.js.map → chunk-2W7H43WL.js.map} +1 -1
  3. package/dist/{chunk-NLSJ6T7V.js → chunk-4D2V4JE4.js} +3 -3
  4. package/dist/{chunk-NLSJ6T7V.js.map → chunk-4D2V4JE4.js.map} +1 -1
  5. package/dist/{chunk-7B44J3CF.js → chunk-5H5YOPCF.js} +3 -3
  6. package/dist/{chunk-7B44J3CF.js.map → chunk-5H5YOPCF.js.map} +1 -1
  7. package/dist/{chunk-JFB6O7IY.js → chunk-7KFUFAVP.js} +4 -4
  8. package/dist/{chunk-JFB6O7IY.js.map → chunk-7KFUFAVP.js.map} +1 -1
  9. package/dist/{chunk-PT22KEVD.js → chunk-BGDVUC3B.js} +5 -5
  10. package/dist/{chunk-PT22KEVD.js.map → chunk-BGDVUC3B.js.map} +1 -1
  11. package/dist/{chunk-7247WBTV.js → chunk-DJ72KP32.js} +3 -3
  12. package/dist/{chunk-7247WBTV.js.map → chunk-DJ72KP32.js.map} +1 -1
  13. package/dist/{chunk-JDPVD2YE.js → chunk-HCHGERDB.js} +3 -3
  14. package/dist/{chunk-JDPVD2YE.js.map → chunk-HCHGERDB.js.map} +1 -1
  15. package/dist/{chunk-H7WOMZXO.js → chunk-HWBFRDX7.js} +16 -8
  16. package/dist/chunk-HWBFRDX7.js.map +1 -0
  17. package/dist/{chunk-LYGOFMXJ.js → chunk-I4IJOLNA.js} +4 -4
  18. package/dist/{chunk-LYGOFMXJ.js.map → chunk-I4IJOLNA.js.map} +1 -1
  19. package/dist/{chunk-DSZF2TW6.js → chunk-IA6DCC3N.js} +6 -6
  20. package/dist/{chunk-DSZF2TW6.js.map → chunk-IA6DCC3N.js.map} +1 -1
  21. package/dist/{chunk-QEAF57ZQ.js → chunk-ISX3AM32.js} +3 -3
  22. package/dist/{chunk-QEAF57ZQ.js.map → chunk-ISX3AM32.js.map} +1 -1
  23. package/dist/{chunk-YMVUQ2L7.js → chunk-L24N5EON.js} +6 -6
  24. package/dist/chunk-L24N5EON.js.map +1 -0
  25. package/dist/{chunk-J2NW7JID.js → chunk-L5GH7LLD.js} +3 -3
  26. package/dist/{chunk-J2NW7JID.js.map → chunk-L5GH7LLD.js.map} +1 -1
  27. package/dist/{chunk-N42EFOML.js → chunk-MCRTAUSZ.js} +6 -6
  28. package/dist/chunk-MCRTAUSZ.js.map +1 -0
  29. package/dist/{chunk-276RL7FX.js → chunk-MNYY7UU2.js} +6 -6
  30. package/dist/{chunk-276RL7FX.js.map → chunk-MNYY7UU2.js.map} +1 -1
  31. package/dist/{chunk-THGJLR5S.js → chunk-NNPSBC7O.js} +5 -5
  32. package/dist/{chunk-THGJLR5S.js.map → chunk-NNPSBC7O.js.map} +1 -1
  33. package/dist/{chunk-2CL3FKEY.js → chunk-QEMXXQQO.js} +3 -3
  34. package/dist/{chunk-2CL3FKEY.js.map → chunk-QEMXXQQO.js.map} +1 -1
  35. package/dist/{chunk-2NTCQIRP.js → chunk-QRNQQIQM.js} +5 -5
  36. package/dist/{chunk-2NTCQIRP.js.map → chunk-QRNQQIQM.js.map} +1 -1
  37. package/dist/{chunk-E3XLWMEB.js → chunk-RKCUXOU2.js} +4 -4
  38. package/dist/{chunk-E3XLWMEB.js.map → chunk-RKCUXOU2.js.map} +1 -1
  39. package/dist/{chunk-DMI4KS32.js → chunk-SBZJGFZ6.js} +3 -3
  40. package/dist/{chunk-DMI4KS32.js.map → chunk-SBZJGFZ6.js.map} +1 -1
  41. package/dist/{chunk-7P32XCEU.js → chunk-SLUOF7XW.js} +2 -2
  42. package/dist/chunk-SLUOF7XW.js.map +1 -0
  43. package/dist/{chunk-2TZU4LSX.js → chunk-ULF5LOBS.js} +3 -3
  44. package/dist/{chunk-2TZU4LSX.js.map → chunk-ULF5LOBS.js.map} +1 -1
  45. package/dist/components/app-shell/index.js +4 -4
  46. package/dist/components/autocomplete/index.js +4 -4
  47. package/dist/components/calendar-heatmap/index.js +2 -2
  48. package/dist/components/camera/index.js +6 -6
  49. package/dist/components/code-block/chrome.js +5 -5
  50. package/dist/components/code-block/index.js +6 -6
  51. package/dist/components/combobox/index.js +4 -4
  52. package/dist/components/combobox-list/index.js +6 -6
  53. package/dist/components/data-table/data-table-features.d.ts +8 -0
  54. package/dist/components/data-table/data-table-features.d.ts.map +1 -1
  55. package/dist/components/data-table/data-table-group.d.ts +128 -0
  56. package/dist/components/data-table/data-table-group.d.ts.map +1 -0
  57. package/dist/components/data-table/data-table-grouping.d.ts +72 -0
  58. package/dist/components/data-table/data-table-grouping.d.ts.map +1 -0
  59. package/dist/components/data-table/data-table-icons.d.ts +4 -2
  60. package/dist/components/data-table/data-table-icons.d.ts.map +1 -1
  61. package/dist/components/data-table/data-table-meta.d.ts +9 -0
  62. package/dist/components/data-table/data-table-meta.d.ts.map +1 -1
  63. package/dist/components/data-table/data-table-pagination.d.ts +4 -1
  64. package/dist/components/data-table/data-table-pagination.d.ts.map +1 -1
  65. package/dist/components/data-table/data-table-schema.d.ts +4 -0
  66. package/dist/components/data-table/data-table-schema.d.ts.map +1 -1
  67. package/dist/components/data-table/data-table-stack.d.ts +16 -3
  68. package/dist/components/data-table/data-table-stack.d.ts.map +1 -1
  69. package/dist/components/data-table/data-table-toolbar.d.ts +33 -2
  70. package/dist/components/data-table/data-table-toolbar.d.ts.map +1 -1
  71. package/dist/components/data-table/data-table-translations.d.ts +35 -0
  72. package/dist/components/data-table/data-table-translations.d.ts.map +1 -1
  73. package/dist/components/data-table/data-table.d.ts +55 -3
  74. package/dist/components/data-table/data-table.d.ts.map +1 -1
  75. package/dist/components/data-table/index.d.ts +3 -1
  76. package/dist/components/data-table/index.d.ts.map +1 -1
  77. package/dist/components/data-table/index.js +877 -229
  78. package/dist/components/data-table/index.js.map +1 -1
  79. package/dist/components/date-picker/index.js +7 -7
  80. package/dist/components/drawer/index.js +4 -4
  81. package/dist/components/hover-card/index.js +3 -3
  82. package/dist/components/kbd/index.js +3 -3
  83. package/dist/components/lightbox/index.js +4 -4
  84. package/dist/components/menu/index.js +4 -4
  85. package/dist/components/modal/index.js +4 -4
  86. package/dist/components/multi-combobox-list/index.js +6 -6
  87. package/dist/components/multi-select/index.js +4 -4
  88. package/dist/components/nav-link/index.js +3 -3
  89. package/dist/components/nav-link/tanstack.js +3 -3
  90. package/dist/components/notification/create-notifier.d.ts.map +1 -1
  91. package/dist/components/notification/index.js +15 -3
  92. package/dist/components/notification/index.js.map +1 -1
  93. package/dist/components/notification/types.d.ts +5 -0
  94. package/dist/components/notification/types.d.ts.map +1 -1
  95. package/dist/components/number-input/index.js +4 -4
  96. package/dist/components/overlays/index.js +5 -5
  97. package/dist/components/photo-capture/index.js +6 -6
  98. package/dist/components/popover/index.js +3 -3
  99. package/dist/components/schedule/index.js +3 -3
  100. package/dist/components/select/index.js +5 -5
  101. package/dist/components/spotlight/index.js +8 -8
  102. package/dist/components/tags-input/index.js +3 -3
  103. package/dist/components/time-input/index.js +5 -5
  104. package/dist/components/tooltip/index.js +2 -2
  105. package/dist/components/tree-multi-select/index.js +4 -4
  106. package/dist/components/tree-select/index.js +4 -4
  107. package/dist/index.js +2 -2
  108. package/dist/lib/overlay-container.d.ts.map +1 -1
  109. package/dist/lib/overlay-layer.d.ts +10 -3
  110. package/dist/lib/overlay-layer.d.ts.map +1 -1
  111. package/dist/theme.css +14 -6
  112. package/package.json +1 -1
  113. package/src/components/data-table/data-table-features.ts +11 -0
  114. package/src/components/data-table/data-table-group.test.tsx +1007 -0
  115. package/src/components/data-table/data-table-group.tsx +474 -0
  116. package/src/components/data-table/data-table-grouping.ts +160 -0
  117. package/src/components/data-table/data-table-icons.tsx +8 -1
  118. package/src/components/data-table/data-table-meta.ts +9 -0
  119. package/src/components/data-table/data-table-pagination.tsx +5 -1
  120. package/src/components/data-table/data-table-stack.tsx +165 -43
  121. package/src/components/data-table/data-table-toolbar.tsx +110 -2
  122. package/src/components/data-table/data-table-translations.ts +44 -0
  123. package/src/components/data-table/data-table.tsx +420 -150
  124. package/src/components/data-table/index.ts +4 -0
  125. package/src/components/drawer/drawer.tsx +1 -1
  126. package/src/components/modal/modal.tsx +1 -1
  127. package/src/components/notification/create-notifier.tsx +18 -2
  128. package/src/components/notification/notify-in-modal.test.tsx +128 -0
  129. package/src/components/notification/types.ts +5 -0
  130. package/src/lib/overlay-container.tsx +2 -1
  131. package/src/lib/overlay-layer.test.tsx +63 -1
  132. package/src/lib/overlay-layer.tsx +29 -6
  133. package/src/theme.css +14 -6
  134. package/src/theme.test.ts +14 -10
  135. package/dist/chunk-7P32XCEU.js.map +0 -1
  136. package/dist/chunk-H7WOMZXO.js.map +0 -1
  137. package/dist/chunk-N42EFOML.js.map +0 -1
  138. package/dist/chunk-YMVUQ2L7.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- export { Popover } from '../../chunk-E3XLWMEB.js';
3
- import '../../chunk-H7WOMZXO.js';
2
+ export { Popover } from '../../chunk-RKCUXOU2.js';
3
+ import '../../chunk-HWBFRDX7.js';
4
4
  import '../../chunk-V6PY7C6S.js';
5
- import '../../chunk-7P32XCEU.js';
5
+ import '../../chunk-SLUOF7XW.js';
6
6
  import '../../chunk-PMUCGFY5.js';
7
7
  import '../../chunk-BUIHQJGE.js';
8
8
  import '../../chunk-WYCMIIRR.js';
@@ -9,10 +9,10 @@ import { prefersReducedMotion } from '../../chunk-CQ4M4BSF.js';
9
9
  import '../../chunk-HDYORQZN.js';
10
10
  import { useMergedRefs } from '../../chunk-HBWV5EPU.js';
11
11
  import { useLocale, useTimeZone, DEFAULT_LOCALE } from '../../chunk-IUK7OJXZ.js';
12
- import { Popover } from '../../chunk-E3XLWMEB.js';
13
- import '../../chunk-H7WOMZXO.js';
12
+ import { Popover } from '../../chunk-RKCUXOU2.js';
13
+ import '../../chunk-HWBFRDX7.js';
14
14
  import { resolveLogicalPlacement } from '../../chunk-V6PY7C6S.js';
15
- import { OverlayContainerProvider } from '../../chunk-7P32XCEU.js';
15
+ import { OverlayContainerProvider } from '../../chunk-SLUOF7XW.js';
16
16
  import { ActionIcon } from '../../chunk-BMEJBY6H.js';
17
17
  import { devWarn, warnRenamedProp } from '../../chunk-LIZWCWED.js';
18
18
  import { useUncontrolled } from '../../chunk-PMUCGFY5.js';
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- export { Select } from '../../chunk-DSZF2TW6.js';
2
+ export { Select } from '../../chunk-IA6DCC3N.js';
3
3
  import '../../chunk-7TDHT3QD.js';
4
- import '../../chunk-2NTCQIRP.js';
4
+ import '../../chunk-QRNQQIQM.js';
5
5
  import '../../chunk-5FDOOG4J.js';
6
6
  import '../../chunk-I4B3N3UX.js';
7
7
  import '../../chunk-X6DESK37.js';
8
8
  import '../../chunk-HBWV5EPU.js';
9
- import '../../chunk-E3XLWMEB.js';
10
- import '../../chunk-H7WOMZXO.js';
9
+ import '../../chunk-RKCUXOU2.js';
10
+ import '../../chunk-HWBFRDX7.js';
11
11
  import '../../chunk-V6PY7C6S.js';
12
- import '../../chunk-7P32XCEU.js';
12
+ import '../../chunk-SLUOF7XW.js';
13
13
  import '../../chunk-PMUCGFY5.js';
14
14
  import '../../chunk-BUIHQJGE.js';
15
15
  import '../../chunk-6YNLRQ25.js';
@@ -1,21 +1,21 @@
1
1
  "use client";
2
- import { Kbd } from '../../chunk-7247WBTV.js';
3
- import { Modal } from '../../chunk-N42EFOML.js';
2
+ import { Kbd } from '../../chunk-DJ72KP32.js';
3
+ import { Modal } from '../../chunk-MCRTAUSZ.js';
4
4
  import { Pill } from '../../chunk-6M6YZ3PQ.js';
5
5
  import { Mark } from '../../chunk-NS6RGPWR.js';
6
6
  import { Skeleton } from '../../chunk-TWNIAF7K.js';
7
- import '../../chunk-NLSJ6T7V.js';
8
- import { Combobox } from '../../chunk-2NTCQIRP.js';
7
+ import '../../chunk-4D2V4JE4.js';
8
+ import { Combobox } from '../../chunk-QRNQQIQM.js';
9
9
  import '../../chunk-I4B3N3UX.js';
10
10
  import '../../chunk-X6DESK37.js';
11
11
  import { useLocalStorage, useInView } from '../../chunk-HC4XVBP2.js';
12
- import { useHotkey, KBD_DEFAULT_TRANSLATIONS } from '../../chunk-2CL3FKEY.js';
12
+ import { useHotkey, KBD_DEFAULT_TRANSLATIONS } from '../../chunk-QEMXXQQO.js';
13
13
  import { observeResize } from '../../chunk-2LI3VPDP.js';
14
14
  import { useLinkComponent } from '../../chunk-GTKKRV5N.js';
15
- import { popoverOption, popoverGroupLabel, popoverEmpty } from '../../chunk-E3XLWMEB.js';
16
- import '../../chunk-H7WOMZXO.js';
15
+ import { popoverOption, popoverGroupLabel, popoverEmpty } from '../../chunk-RKCUXOU2.js';
16
+ import '../../chunk-HWBFRDX7.js';
17
17
  import '../../chunk-V6PY7C6S.js';
18
- import '../../chunk-7P32XCEU.js';
18
+ import '../../chunk-SLUOF7XW.js';
19
19
  import '../../chunk-BMEJBY6H.js';
20
20
  import { devWarn } from '../../chunk-LIZWCWED.js';
21
21
  import '../../chunk-PMUCGFY5.js';
@@ -5,10 +5,10 @@ import { inputSlot, inputControlClasses, inputShell } from '../../chunk-I4B3N3UX
5
5
  import { FieldShell, fieldA11yProps } from '../../chunk-X6DESK37.js';
6
6
  import '../../chunk-2LI3VPDP.js';
7
7
  import '../../chunk-IUK7OJXZ.js';
8
- import { popoverClearTrigger } from '../../chunk-E3XLWMEB.js';
9
- import '../../chunk-H7WOMZXO.js';
8
+ import { popoverClearTrigger } from '../../chunk-RKCUXOU2.js';
9
+ import '../../chunk-HWBFRDX7.js';
10
10
  import '../../chunk-V6PY7C6S.js';
11
- import '../../chunk-7P32XCEU.js';
11
+ import '../../chunk-SLUOF7XW.js';
12
12
  import '../../chunk-LIZWCWED.js';
13
13
  import '../../chunk-PMUCGFY5.js';
14
14
  import '../../chunk-BUIHQJGE.js';
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { resolveHourCycle, toDisplayHour, TimeRow, fromDisplayHour } from '../../chunk-2TZU4LSX.js';
2
+ import { resolveHourCycle, toDisplayHour, TimeRow, fromDisplayHour } from '../../chunk-ULF5LOBS.js';
3
3
  import '../../chunk-NF2PBGD3.js';
4
- import '../../chunk-DMI4KS32.js';
4
+ import '../../chunk-SBZJGFZ6.js';
5
5
  import '../../chunk-I4B3N3UX.js';
6
6
  import { FieldShell, fieldA11yProps } from '../../chunk-X6DESK37.js';
7
7
  import '../../chunk-HBWV5EPU.js';
8
8
  import '../../chunk-IUK7OJXZ.js';
9
- import '../../chunk-E3XLWMEB.js';
10
- import '../../chunk-H7WOMZXO.js';
9
+ import '../../chunk-RKCUXOU2.js';
10
+ import '../../chunk-HWBFRDX7.js';
11
11
  import '../../chunk-V6PY7C6S.js';
12
- import '../../chunk-7P32XCEU.js';
12
+ import '../../chunk-SLUOF7XW.js';
13
13
  import '../../chunk-LIZWCWED.js';
14
14
  import { useUncontrolled } from '../../chunk-PMUCGFY5.js';
15
15
  import '../../chunk-BUIHQJGE.js';
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import '../../chunk-ZP6EBROY.js';
3
- export { Tooltip } from '../../chunk-YZJUPYPO.js';
3
+ export { Tooltip } from '../../chunk-2W7H43WL.js';
4
4
  import '../../chunk-V6PY7C6S.js';
5
- import '../../chunk-7P32XCEU.js';
5
+ import '../../chunk-SLUOF7XW.js';
6
6
  import '../../chunk-WYCMIIRR.js';
7
7
  import '../../chunk-C6NVU4F7.js';
8
8
  import '../../chunk-GIPQUKCN.js';
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { buildMaps, filterTree, flattenTree, useTreeRovingFocus, TreeTrigger, TreeSearch, TreeBody, renderTree, isLeaf, TreeLabel, TreeRails, treeRow, treeItemAria } from '../../chunk-JDPVD2YE.js';
2
+ import { buildMaps, filterTree, flattenTree, useTreeRovingFocus, TreeTrigger, TreeSearch, TreeBody, renderTree, isLeaf, TreeLabel, TreeRails, treeRow, treeItemAria } from '../../chunk-HCHGERDB.js';
3
3
  import { usePillOverflow, PillOverflowCounter, pillsContent, pillsShell } from '../../chunk-PFZMB3US.js';
4
4
  import { Pill } from '../../chunk-6M6YZ3PQ.js';
5
5
  import { controlIndicator } from '../../chunk-NLOBBJAA.js';
@@ -8,10 +8,10 @@ import { placeholderColor, inputShell } from '../../chunk-I4B3N3UX.js';
8
8
  import { FieldShell } from '../../chunk-X6DESK37.js';
9
9
  import '../../chunk-2LI3VPDP.js';
10
10
  import '../../chunk-IUK7OJXZ.js';
11
- import { Popover } from '../../chunk-E3XLWMEB.js';
12
- import '../../chunk-H7WOMZXO.js';
11
+ import { Popover } from '../../chunk-RKCUXOU2.js';
12
+ import '../../chunk-HWBFRDX7.js';
13
13
  import '../../chunk-V6PY7C6S.js';
14
- import '../../chunk-7P32XCEU.js';
14
+ import '../../chunk-SLUOF7XW.js';
15
15
  import '../../chunk-LIZWCWED.js';
16
16
  import { useUncontrolled } from '../../chunk-PMUCGFY5.js';
17
17
  import '../../chunk-BUIHQJGE.js';
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { buildMaps, filterTree, flattenTree, isLeaf, useTreeRovingFocus, TreeTrigger, TreeSearch, TreeBody, renderTree, TreeLabel, TreeRails, treeRow, treeItemAria } from '../../chunk-JDPVD2YE.js';
2
+ import { buildMaps, filterTree, flattenTree, isLeaf, useTreeRovingFocus, TreeTrigger, TreeSearch, TreeBody, renderTree, TreeLabel, TreeRails, treeRow, treeItemAria } from '../../chunk-HCHGERDB.js';
3
3
  import { useLabelSearch } from '../../chunk-7TDHT3QD.js';
4
4
  import { placeholderColor, inputShell } from '../../chunk-I4B3N3UX.js';
5
5
  import { FieldShell } from '../../chunk-X6DESK37.js';
6
- import { Popover, popoverIndicator } from '../../chunk-E3XLWMEB.js';
7
- import '../../chunk-H7WOMZXO.js';
6
+ import { Popover, popoverIndicator } from '../../chunk-RKCUXOU2.js';
7
+ import '../../chunk-HWBFRDX7.js';
8
8
  import '../../chunk-V6PY7C6S.js';
9
- import '../../chunk-7P32XCEU.js';
9
+ import '../../chunk-SLUOF7XW.js';
10
10
  import { useUncontrolled } from '../../chunk-PMUCGFY5.js';
11
11
  import '../../chunk-BUIHQJGE.js';
12
12
  import { CloseIcon, ChevronIcon, CheckIcon } from '../../chunk-6YNLRQ25.js';
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { DEFAULT_THEME_STORAGE_KEY, resolveTheme, applyThemeAttribute, getSystem
2
2
  export { DEFAULT_THEME_STORAGE_KEY, THEME_MODES, buildThemeInitScript, getSystemTheme, isThemeMode, resolveTheme } from './chunk-EEMRRRYS.js';
3
3
  import { useLocalStorage } from './chunk-HC4XVBP2.js';
4
4
  export { useInView, useLocalStorage } from './chunk-HC4XVBP2.js';
5
- export { KBD_DEFAULT_TRANSLATIONS, formatHotkey, hotkeyKeys, isApplePlatform, matchHotkey, useApplePlatform, useHotkey } from './chunk-2CL3FKEY.js';
5
+ export { KBD_DEFAULT_TRANSLATIONS, formatHotkey, hotkeyKeys, isApplePlatform, matchHotkey, useApplePlatform, useHotkey } from './chunk-QEMXXQQO.js';
6
6
  export { FILE_KINDS, OPEN_FILE_MAX_AGE, OPEN_FILE_POLL, SVG_DATA_URL_LIMIT, extensionOf, fileKind, formatFileSize, openFile, useObjectUrl, viewableType } from './chunk-WERJ44ZN.js';
7
7
  import { createFileQueue, errorMessage } from './chunk-JYKP4RSG.js';
8
8
  export { DEFAULT_CONCURRENCY } from './chunk-JYKP4RSG.js';
@@ -20,7 +20,7 @@ export { mergeRefs, useMergedRefs } from './chunk-HBWV5EPU.js';
20
20
  export { ratioStyle, ratioToNumber } from './chunk-AHM6SGEU.js';
21
21
  export { DEFAULT_LOCALE, DEFAULT_TIME_ZONE, IntlProvider, useLocale, useTimeZone } from './chunk-IUK7OJXZ.js';
22
22
  export { LinkComponentProvider, useLinkComponent } from './chunk-GTKKRV5N.js';
23
- import './chunk-H7WOMZXO.js';
23
+ import './chunk-HWBFRDX7.js';
24
24
  import './chunk-LIZWCWED.js';
25
25
  export { useUncontrolled } from './chunk-PMUCGFY5.js';
26
26
  import { useIsomorphicLayoutEffect } from './chunk-BUIHQJGE.js';
@@ -1 +1 @@
1
- {"version":3,"file":"overlay-container.d.ts","sourceRoot":"","sources":["../../src/lib/overlay-container.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAsC1F,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;mEAE+D;IAC/D,KAAK,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACpC,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,wBAAwB,wBAAyB,6BAA6B,gCAE1F,CAAA;AAED;;4EAE4E;AAC5E,eAAO,MAAM,mBAAmB,cACnB,WAAW,GAAG,IAAI,KAC5B,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,SAMlC,CAAA"}
1
+ {"version":3,"file":"overlay-container.d.ts","sourceRoot":"","sources":["../../src/lib/overlay-container.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAuC1F,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;mEAE+D;IAC/D,KAAK,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACpC,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,wBAAwB,wBAAyB,6BAA6B,gCAE1F,CAAA;AAED;;4EAE4E;AAC5E,eAAO,MAAM,mBAAmB,cACnB,WAAW,GAAG,IAAI,KAC5B,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,SAMlC,CAAA"}
@@ -33,6 +33,9 @@ import { type ReactNode } from "react";
33
33
  * sees only what opened from that Modal.
34
34
  */
35
35
  export type OverlayLayers = Set<symbol>;
36
+ /** Whether a Modal, Drawer or Lightbox is open right now. The notifier asks
37
+ * when a toast is created, to raise it above the modal (`--toast-raised-z`). */
38
+ export declare const isModalOpen: () => boolean;
36
39
  /** For a parent layer. Spread `onPointerDownOutside` onto the Ark root
37
40
  * (composed with the caller's own) and wrap the children that may open nested
38
41
  * layers in `OverlayLayerProvider`. A ref'd set, not state: it's read synchronously while
@@ -49,12 +52,16 @@ export declare const OverlayLayerProvider: ({ value, children, }: {
49
52
  * none encloses it) while `open`. Keyed on
50
53
  * `open`, not presence, so a panel playing its exit animation no longer holds
51
54
  * the parent's next click. A layout effect so the registration is in place
52
- * before the browser can deliver the next pointerdown. */
53
- export declare const useNestedLayer: (open: boolean) => void;
55
+ * before the browser can deliver the next pointerdown. `modal` marks a
56
+ * Modal, Drawer or Lightbox, which `isModalOpen` counts. */
57
+ export declare const useNestedLayer: (open: boolean, { modal }?: {
58
+ modal?: boolean;
59
+ }) => void;
54
60
  /** `useNestedLayer` as an element, for call sites that only have the machine's
55
61
  * `open` inside a render prop (`<Ark.Context>{(api) => …}</Ark.Context>`). */
56
- export declare const NestedLayer: ({ open }: {
62
+ export declare const NestedLayer: ({ open, modal }: {
57
63
  open: boolean;
64
+ modal?: boolean;
58
65
  }) => null;
59
66
  /** Whether a layer is open above the component calling this, right now: a
60
67
  * Modal, Drawer, Popover or picker that opened from the same layer (from the
@@ -1 +1 @@
1
- {"version":3,"file":"overlay-layer.d.ts","sourceRoot":"","sources":["../../src/lib/overlay-layer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,SAAS,EAAmC,MAAM,OAAO,CAAA;AAGtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,CAAC,CAAA;AAQvC;;;4EAG4E;AAC5E,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,KAAK,yBAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI;;kCAG5E,CAAC;CAOZ,CAAA;AAED,eAAO,MAAM,oBAAoB,yBAG9B;IACD,KAAK,EAAE,aAAa,CAAA;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,gCAA0F,CAAA;AAE3F;;;;2DAI2D;AAC3D,eAAO,MAAM,cAAc,SAAU,OAAO,SAU3C,CAAA;AAED;+EAC+E;AAC/E,eAAO,MAAM,WAAW,aAAc;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,SAGtD,CAAA;AAED;;;;mCAImC;AACnC,eAAO,MAAM,eAAe,QAAO,CAAC,MAAM,OAAO,CAGhD,CAAA"}
1
+ {"version":3,"file":"overlay-layer.d.ts","sourceRoot":"","sources":["../../src/lib/overlay-layer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,SAAS,EAAmC,MAAM,OAAO,CAAA;AAGtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,CAAC,CAAA;AAevC;iFACiF;AACjF,eAAO,MAAM,WAAW,eAA6B,CAAA;AAWrD;;;4EAG4E;AAC5E,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,KAAK,yBAAyB,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI;;kCAG5E,CAAC;CAOZ,CAAA;AAED,eAAO,MAAM,oBAAoB,yBAG9B;IACD,KAAK,EAAE,aAAa,CAAA;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,gCAA0F,CAAA;AAE3F;;;;;6DAK6D;AAC7D,eAAO,MAAM,cAAc,SAAU,OAAO,cAAqB;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,SAYnF,CAAA;AAED;+EAC+E;AAC/E,eAAO,MAAM,WAAW,oBAAqB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,SAG9E,CAAA;AAED;;;;mCAImC;AACnC,eAAO,MAAM,eAAe,QAAO,CAAC,MAAM,OAAO,CAGhD,CAAA"}
package/dist/theme.css CHANGED
@@ -1295,10 +1295,17 @@ body {
1295
1295
  ==========================================
1296
1296
  One scale for every floating surface, in the order they need to paint:
1297
1297
 
1298
- --overlay-z popover, menu, hover-card, select, combobox, date-picker
1299
- --toast-z the notifier region
1300
- --modal-z modal + drawer (backdrop and positioner)
1301
- --tooltip-z tooltip
1298
+ --overlay-z popover, menu, hover-card, select, combobox, date-picker
1299
+ --toast-z the notifier region
1300
+ --modal-z modal + drawer + lightbox (backdrop and positioner)
1301
+ --toast-raised-z the notifier region, while it holds a toast created
1302
+ with a modal open (feedback on what was done in it)
1303
+ --tooltip-z tooltip
1304
+
1305
+ Bands are 50 apart, and stay that way: each one adds zag's `--layer-index`
1306
+ (nesting depth) on top of its base, so the gap is how deep a band can nest
1307
+ before it collides with the next. Insert a new band by moving the ones
1308
+ above it up, not by halving a gap. `theme.test.ts` holds the spacing.
1302
1309
 
1303
1310
  Two facts about `@zag-js/popper` decide *where* these values have to be
1304
1311
  declared, and both are easy to get wrong:
@@ -1339,7 +1346,8 @@ body {
1339
1346
  --overlay-z: 50;
1340
1347
  --toast-z: 100;
1341
1348
  --modal-z: 150;
1342
- --tooltip-z: 200;
1349
+ --toast-raised-z: 200;
1350
+ --tooltip-z: 250;
1343
1351
  }
1344
1352
 
1345
1353
  [data-scope="popover"][data-part="content"],
@@ -1354,7 +1362,7 @@ body {
1354
1362
  /* A tooltip can show up over anything hoverable, an open picker included. It
1355
1363
  isn't a dismissable layer, so there's no `--layer-index` to add. */
1356
1364
  [data-scope="tooltip"][data-part="content"] {
1357
- z-index: var(--tooltip-z, 200);
1365
+ z-index: var(--tooltip-z, 250);
1358
1366
  }
1359
1367
 
1360
1368
  /* ==========================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@42-central/ui-react",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "React UI kit for 42 tools",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -8,10 +8,13 @@ import type {
8
8
  } from "@tanstack/react-table"
9
9
  import {
10
10
  columnFilteringFeature,
11
+ columnGroupingFeature,
11
12
  columnResizingFeature,
12
13
  columnSizingFeature,
13
14
  columnVisibilityFeature,
15
+ createExpandedRowModel,
14
16
  createFilteredRowModel,
17
+ createGroupedRowModel,
15
18
  createPaginatedRowModel,
16
19
  createSortedRowModel,
17
20
  filterFn_arrIncludes,
@@ -21,6 +24,7 @@ import {
21
24
  filterFn_inNumberRange,
22
25
  filterFn_weakEquals,
23
26
  globalFilteringFeature,
27
+ rowExpandingFeature,
24
28
  rowPaginationFeature,
25
29
  rowSelectionFeature,
26
30
  rowSortingFeature,
@@ -57,11 +61,18 @@ export const dataTableFeatures = tableFeatures({
57
61
  columnVisibilityFeature,
58
62
  columnSizingFeature,
59
63
  columnResizingFeature,
64
+ // Row grouping (`grouping`) and its fold state (`expanded`). No
65
+ // `rowAggregationFeature`: a group row draws a header, never cells, so there
66
+ // is nothing to aggregate.
67
+ columnGroupingFeature,
68
+ rowExpandingFeature,
60
69
 
61
70
  // v8's `get*RowModel` options moved into these slots. The core row model is
62
71
  // automatic in v9 and must not be passed.
63
72
  filteredRowModel: createFilteredRowModel(),
73
+ groupedRowModel: createGroupedRowModel(),
64
74
  sortedRowModel: createSortedRowModel(),
75
+ expandedRowModel: createExpandedRowModel(),
65
76
  paginatedRowModel: createPaginatedRowModel(),
66
77
 
67
78
  /* These two registries are load-bearing, and their failure mode is silent.