@42-central/ui-react 0.25.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 (232) 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-QZ4N5LYG.js → chunk-5H5YOPCF.js} +3 -3
  6. package/dist/{chunk-QZ4N5LYG.js.map → chunk-5H5YOPCF.js.map} +1 -1
  7. package/dist/{chunk-6II2DVYR.js → chunk-7KFUFAVP.js} +4 -4
  8. package/dist/{chunk-6II2DVYR.js.map → chunk-7KFUFAVP.js.map} +1 -1
  9. package/dist/{chunk-XUFCI262.js → chunk-7OGZT7U2.js} +12 -4
  10. package/dist/chunk-7OGZT7U2.js.map +1 -0
  11. package/dist/{chunk-PI7X5YFJ.js → chunk-BGDVUC3B.js} +5 -5
  12. package/dist/{chunk-PI7X5YFJ.js.map → chunk-BGDVUC3B.js.map} +1 -1
  13. package/dist/{chunk-7247WBTV.js → chunk-DJ72KP32.js} +3 -3
  14. package/dist/{chunk-7247WBTV.js.map → chunk-DJ72KP32.js.map} +1 -1
  15. package/dist/{chunk-FZSLSUSX.js → chunk-HCHGERDB.js} +3 -3
  16. package/dist/{chunk-FZSLSUSX.js.map → chunk-HCHGERDB.js.map} +1 -1
  17. package/dist/{chunk-H7WOMZXO.js → chunk-HWBFRDX7.js} +16 -8
  18. package/dist/chunk-HWBFRDX7.js.map +1 -0
  19. package/dist/{chunk-HQPU73WV.js → chunk-I4IJOLNA.js} +4 -4
  20. package/dist/{chunk-HQPU73WV.js.map → chunk-I4IJOLNA.js.map} +1 -1
  21. package/dist/{chunk-UDCCOUWR.js → chunk-IA6DCC3N.js} +6 -6
  22. package/dist/{chunk-UDCCOUWR.js.map → chunk-IA6DCC3N.js.map} +1 -1
  23. package/dist/{chunk-36NWC4GV.js → chunk-ISX3AM32.js} +3 -3
  24. package/dist/{chunk-36NWC4GV.js.map → chunk-ISX3AM32.js.map} +1 -1
  25. package/dist/{chunk-LMCUGYHT.js → chunk-L24N5EON.js} +6 -6
  26. package/dist/chunk-L24N5EON.js.map +1 -0
  27. package/dist/{chunk-HRNWWL3Y.js → chunk-L5GH7LLD.js} +61 -29
  28. package/dist/chunk-L5GH7LLD.js.map +1 -0
  29. package/dist/chunk-LJVIZNPE.js +9 -0
  30. package/dist/chunk-LJVIZNPE.js.map +1 -0
  31. package/dist/{chunk-AHKMN3YQ.js → chunk-MCRTAUSZ.js} +6 -6
  32. package/dist/chunk-MCRTAUSZ.js.map +1 -0
  33. package/dist/{chunk-LHUWOA2U.js → chunk-MNYY7UU2.js} +6 -6
  34. package/dist/{chunk-LHUWOA2U.js.map → chunk-MNYY7UU2.js.map} +1 -1
  35. package/dist/{chunk-7HZBD4YZ.js → chunk-NF2PBGD3.js} +36 -23
  36. package/dist/chunk-NF2PBGD3.js.map +1 -0
  37. package/dist/{chunk-54W6VAI3.js → chunk-NNPSBC7O.js} +5 -5
  38. package/dist/{chunk-54W6VAI3.js.map → chunk-NNPSBC7O.js.map} +1 -1
  39. package/dist/{chunk-MW42XVPD.js → chunk-PBSVX5DB.js} +15 -5
  40. package/dist/chunk-PBSVX5DB.js.map +1 -0
  41. package/dist/{chunk-2CL3FKEY.js → chunk-QEMXXQQO.js} +3 -3
  42. package/dist/{chunk-2CL3FKEY.js.map → chunk-QEMXXQQO.js.map} +1 -1
  43. package/dist/{chunk-6UIQJJNJ.js → chunk-QRNQQIQM.js} +5 -5
  44. package/dist/{chunk-6UIQJJNJ.js.map → chunk-QRNQQIQM.js.map} +1 -1
  45. package/dist/{chunk-N66NC6QK.js → chunk-RKCUXOU2.js} +4 -4
  46. package/dist/{chunk-N66NC6QK.js.map → chunk-RKCUXOU2.js.map} +1 -1
  47. package/dist/{chunk-N5M4PDBK.js → chunk-SBZJGFZ6.js} +3 -3
  48. package/dist/{chunk-N5M4PDBK.js.map → chunk-SBZJGFZ6.js.map} +1 -1
  49. package/dist/{chunk-7P32XCEU.js → chunk-SLUOF7XW.js} +2 -2
  50. package/dist/chunk-SLUOF7XW.js.map +1 -0
  51. package/dist/{chunk-SAXWCGWR.js → chunk-SOUDKESO.js} +14 -7
  52. package/dist/chunk-SOUDKESO.js.map +1 -0
  53. package/dist/{chunk-T44RW5DW.js → chunk-ULF5LOBS.js} +4 -4
  54. package/dist/{chunk-T44RW5DW.js.map → chunk-ULF5LOBS.js.map} +1 -1
  55. package/dist/components/ambient-background/index.js +9 -23
  56. package/dist/components/ambient-background/index.js.map +1 -1
  57. package/dist/components/ambient-background/starfield.d.ts.map +1 -1
  58. package/dist/components/app-shell/app-shell.d.ts +55 -10
  59. package/dist/components/app-shell/app-shell.d.ts.map +1 -1
  60. package/dist/components/app-shell/index.d.ts +1 -1
  61. package/dist/components/app-shell/index.d.ts.map +1 -1
  62. package/dist/components/app-shell/index.js +299 -38
  63. package/dist/components/app-shell/index.js.map +1 -1
  64. package/dist/components/autocomplete/index.js +4 -4
  65. package/dist/components/avatar/avatar.d.ts +1 -1
  66. package/dist/components/avatar/avatar.d.ts.map +1 -1
  67. package/dist/components/avatar/index.js +10 -1
  68. package/dist/components/avatar/index.js.map +1 -1
  69. package/dist/components/button-group/button-group.d.ts +10 -2
  70. package/dist/components/button-group/button-group.d.ts.map +1 -1
  71. package/dist/components/button-group/index.js +1 -1
  72. package/dist/components/button-multi-select/index.js +2 -2
  73. package/dist/components/button-select/button-select-control.d.ts +4 -1
  74. package/dist/components/button-select/button-select-control.d.ts.map +1 -1
  75. package/dist/components/button-select/button-select.d.ts +4 -1
  76. package/dist/components/button-select/button-select.d.ts.map +1 -1
  77. package/dist/components/button-select/index.js +2 -2
  78. package/dist/components/calendar-heatmap/index.js +2 -2
  79. package/dist/components/camera/index.js +6 -6
  80. package/dist/components/code-block/chrome.js +5 -5
  81. package/dist/components/code-block/index.js +6 -6
  82. package/dist/components/combobox/index.js +4 -4
  83. package/dist/components/combobox-list/index.js +6 -6
  84. package/dist/components/data-table/data-table-features.d.ts +8 -0
  85. package/dist/components/data-table/data-table-features.d.ts.map +1 -1
  86. package/dist/components/data-table/data-table-group.d.ts +128 -0
  87. package/dist/components/data-table/data-table-group.d.ts.map +1 -0
  88. package/dist/components/data-table/data-table-grouping.d.ts +72 -0
  89. package/dist/components/data-table/data-table-grouping.d.ts.map +1 -0
  90. package/dist/components/data-table/data-table-icons.d.ts +4 -2
  91. package/dist/components/data-table/data-table-icons.d.ts.map +1 -1
  92. package/dist/components/data-table/data-table-meta.d.ts +9 -0
  93. package/dist/components/data-table/data-table-meta.d.ts.map +1 -1
  94. package/dist/components/data-table/data-table-pagination.d.ts +4 -1
  95. package/dist/components/data-table/data-table-pagination.d.ts.map +1 -1
  96. package/dist/components/data-table/data-table-schema.d.ts +4 -0
  97. package/dist/components/data-table/data-table-schema.d.ts.map +1 -1
  98. package/dist/components/data-table/data-table-stack.d.ts +16 -3
  99. package/dist/components/data-table/data-table-stack.d.ts.map +1 -1
  100. package/dist/components/data-table/data-table-toolbar.d.ts +33 -2
  101. package/dist/components/data-table/data-table-toolbar.d.ts.map +1 -1
  102. package/dist/components/data-table/data-table-translations.d.ts +35 -0
  103. package/dist/components/data-table/data-table-translations.d.ts.map +1 -1
  104. package/dist/components/data-table/data-table.d.ts +55 -3
  105. package/dist/components/data-table/data-table.d.ts.map +1 -1
  106. package/dist/components/data-table/index.d.ts +3 -1
  107. package/dist/components/data-table/index.d.ts.map +1 -1
  108. package/dist/components/data-table/index.js +878 -230
  109. package/dist/components/data-table/index.js.map +1 -1
  110. package/dist/components/date-picker/index.js +8 -8
  111. package/dist/components/drawer/index.js +4 -4
  112. package/dist/components/geodesic/a11y.d.ts +3 -3
  113. package/dist/components/geodesic/a11y.d.ts.map +1 -1
  114. package/dist/components/geodesic/badge-frame.d.ts +13 -1
  115. package/dist/components/geodesic/badge-frame.d.ts.map +1 -1
  116. package/dist/components/geodesic/exam-badge.d.ts +4 -1
  117. package/dist/components/geodesic/exam-badge.d.ts.map +1 -1
  118. package/dist/components/geodesic/geometry.d.ts +14 -9
  119. package/dist/components/geodesic/geometry.d.ts.map +1 -1
  120. package/dist/components/geodesic/index.js +62 -23
  121. package/dist/components/geodesic/index.js.map +1 -1
  122. package/dist/components/geodesic/status.d.ts +8 -6
  123. package/dist/components/geodesic/status.d.ts.map +1 -1
  124. package/dist/components/geodesic/styles.css +15 -2
  125. package/dist/components/hover-card/index.js +3 -3
  126. package/dist/components/indicator/index.js +23 -8
  127. package/dist/components/indicator/index.js.map +1 -1
  128. package/dist/components/indicator/indicator.d.ts +15 -6
  129. package/dist/components/indicator/indicator.d.ts.map +1 -1
  130. package/dist/components/kbd/index.js +3 -3
  131. package/dist/components/lightbox/index.js +4 -4
  132. package/dist/components/menu/index.js +4 -4
  133. package/dist/components/modal/index.js +4 -4
  134. package/dist/components/multi-combobox-list/index.js +6 -6
  135. package/dist/components/multi-select/index.js +4 -4
  136. package/dist/components/nav-link/index.js +5 -1
  137. package/dist/components/nav-link/nav-link.d.ts.map +1 -1
  138. package/dist/components/nav-link/tanstack.js +5 -1
  139. package/dist/components/nav-link/tanstack.js.map +1 -1
  140. package/dist/components/notification/create-notifier.d.ts.map +1 -1
  141. package/dist/components/notification/index.js +15 -3
  142. package/dist/components/notification/index.js.map +1 -1
  143. package/dist/components/notification/types.d.ts +5 -0
  144. package/dist/components/notification/types.d.ts.map +1 -1
  145. package/dist/components/number-input/index.js +4 -4
  146. package/dist/components/overlays/index.js +5 -5
  147. package/dist/components/photo-capture/index.js +6 -6
  148. package/dist/components/popover/index.js +3 -3
  149. package/dist/components/schedule/index.js +4 -4
  150. package/dist/components/segment-group/index.js +1 -1
  151. package/dist/components/segment-group/segment-group.d.ts +6 -1
  152. package/dist/components/segment-group/segment-group.d.ts.map +1 -1
  153. package/dist/components/select/index.js +5 -5
  154. package/dist/components/spotlight/index.js +8 -8
  155. package/dist/components/tabs/index.js +1 -1
  156. package/dist/components/tabs/tabs-data.d.ts +4 -1
  157. package/dist/components/tabs/tabs-data.d.ts.map +1 -1
  158. package/dist/components/tabs/tabs.d.ts +4 -1
  159. package/dist/components/tabs/tabs.d.ts.map +1 -1
  160. package/dist/components/tags-input/index.js +3 -3
  161. package/dist/components/time-input/index.js +6 -6
  162. package/dist/components/tooltip/index.js +2 -2
  163. package/dist/components/tree-multi-select/index.js +4 -4
  164. package/dist/components/tree-select/index.js +4 -4
  165. package/dist/index.js +2 -2
  166. package/dist/lib/overlay-container.d.ts.map +1 -1
  167. package/dist/lib/overlay-layer.d.ts +10 -3
  168. package/dist/lib/overlay-layer.d.ts.map +1 -1
  169. package/dist/lib/sidebar-rail.d.ts +21 -0
  170. package/dist/lib/sidebar-rail.d.ts.map +1 -0
  171. package/dist/theme.css +21 -18
  172. package/package.json +1 -1
  173. package/src/as-child.contract.test.tsx +6 -0
  174. package/src/components/ambient-background/starfield.tsx +14 -41
  175. package/src/components/app-shell/app-shell.test.tsx +430 -5
  176. package/src/components/app-shell/app-shell.tsx +484 -24
  177. package/src/components/app-shell/index.ts +2 -0
  178. package/src/components/avatar/avatar.test.tsx +12 -0
  179. package/src/components/avatar/avatar.tsx +9 -0
  180. package/src/components/button-group/button-group.test.tsx +24 -0
  181. package/src/components/button-group/button-group.tsx +21 -4
  182. package/src/components/button-multi-select/button-multi-select.test.tsx +15 -0
  183. package/src/components/button-select/button-select-control.tsx +5 -0
  184. package/src/components/button-select/button-select.test.tsx +25 -0
  185. package/src/components/button-select/button-select.tsx +13 -2
  186. package/src/components/data-table/data-table-features.ts +11 -0
  187. package/src/components/data-table/data-table-group.test.tsx +1007 -0
  188. package/src/components/data-table/data-table-group.tsx +474 -0
  189. package/src/components/data-table/data-table-grouping.ts +160 -0
  190. package/src/components/data-table/data-table-icons.tsx +8 -1
  191. package/src/components/data-table/data-table-meta.ts +9 -0
  192. package/src/components/data-table/data-table-pagination.tsx +5 -1
  193. package/src/components/data-table/data-table-stack.tsx +165 -43
  194. package/src/components/data-table/data-table-toolbar.tsx +110 -2
  195. package/src/components/data-table/data-table-translations.ts +44 -0
  196. package/src/components/data-table/data-table.tsx +420 -150
  197. package/src/components/data-table/index.ts +4 -0
  198. package/src/components/drawer/drawer.tsx +1 -1
  199. package/src/components/geodesic/badge-frame.tsx +67 -13
  200. package/src/components/geodesic/exam-badge.tsx +8 -4
  201. package/src/components/geodesic/geometry.ts +8 -6
  202. package/src/components/geodesic/status.test.ts +11 -2
  203. package/src/components/geodesic/status.ts +11 -7
  204. package/src/components/geodesic/styles.css +15 -2
  205. package/src/components/indicator/indicator.test.tsx +45 -0
  206. package/src/components/indicator/indicator.tsx +40 -13
  207. package/src/components/modal/modal.tsx +1 -1
  208. package/src/components/nav-link/nav-link.test.tsx +121 -1
  209. package/src/components/nav-link/nav-link.tsx +78 -29
  210. package/src/components/notification/create-notifier.tsx +18 -2
  211. package/src/components/notification/notify-in-modal.test.tsx +128 -0
  212. package/src/components/notification/types.ts +5 -0
  213. package/src/components/segment-group/segment-group.test.tsx +22 -0
  214. package/src/components/segment-group/segment-group.tsx +35 -19
  215. package/src/components/tabs/tabs-data.tsx +5 -1
  216. package/src/components/tabs/tabs.test.tsx +28 -0
  217. package/src/components/tabs/tabs.tsx +14 -4
  218. package/src/lib/overlay-container.tsx +2 -1
  219. package/src/lib/overlay-layer.test.tsx +63 -1
  220. package/src/lib/overlay-layer.tsx +29 -6
  221. package/src/lib/sidebar-rail.ts +24 -0
  222. package/src/theme.css +21 -18
  223. package/src/theme.test.ts +14 -11
  224. package/dist/chunk-7HZBD4YZ.js.map +0 -1
  225. package/dist/chunk-7P32XCEU.js.map +0 -1
  226. package/dist/chunk-AHKMN3YQ.js.map +0 -1
  227. package/dist/chunk-H7WOMZXO.js.map +0 -1
  228. package/dist/chunk-HRNWWL3Y.js.map +0 -1
  229. package/dist/chunk-LMCUGYHT.js.map +0 -1
  230. package/dist/chunk-MW42XVPD.js.map +0 -1
  231. package/dist/chunk-SAXWCGWR.js.map +0 -1
  232. package/dist/chunk-XUFCI262.js.map +0 -1
@@ -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-FZSLSUSX.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-N66NC6QK.js';
11
+ import { Popover } from '../../chunk-RKCUXOU2.js';
12
+ import '../../chunk-HWBFRDX7.js';
12
13
  import '../../chunk-V6PY7C6S.js';
13
- import '../../chunk-7P32XCEU.js';
14
- import '../../chunk-H7WOMZXO.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-FZSLSUSX.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-N66NC6QK.js';
6
+ import { Popover, popoverIndicator } from '../../chunk-RKCUXOU2.js';
7
+ import '../../chunk-HWBFRDX7.js';
7
8
  import '../../chunk-V6PY7C6S.js';
8
- import '../../chunk-7P32XCEU.js';
9
- import '../../chunk-H7WOMZXO.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"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Whether the content is sitting in a sidebar collapsed to an icon rail —
3
+ * provided by `AppShell.Sidebar collapse="icons"`, read by anything that has to
4
+ * change *behaviour* there (not just appearance): `NavLink` turns its label
5
+ * into a tooltip on the icon.
6
+ *
7
+ * Kept in `lib` rather than exported from AppShell so a nav component can
8
+ * react to a rail without depending on the shell that draws it. Appearance
9
+ * alone needs no JS: the rail carries `data-sidebar-rail`, and the
10
+ * `sidebar-rail:` variant (theme.css) styles anything inside it.
11
+ *
12
+ * `null` outside a rail-capable sidebar; `{ active: false }` inside one that is
13
+ * expanded (or peeking, labels visible); `{ active: true }` while it shows
14
+ * icons only.
15
+ */
16
+ export type SidebarRailState = {
17
+ active: boolean;
18
+ };
19
+ export declare const SidebarRailContext: import("react").Context<SidebarRailState | null>;
20
+ export declare const useSidebarRail: () => SidebarRailState | null;
21
+ //# sourceMappingURL=sidebar-rail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-rail.d.ts","sourceRoot":"","sources":["../../src/lib/sidebar-rail.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,CAAA;AAElD,eAAO,MAAM,kBAAkB,kDAA+C,CAAA;AAE9E,eAAO,MAAM,cAAc,QAAO,gBAAgB,GAAG,IAAsC,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
  /* ==========================================
@@ -1434,10 +1442,6 @@ body {
1434
1442
  --animate-ambient-star-twinkle: ambient-star-twinkle 8s ease-in-out infinite;
1435
1443
  /* The dust dims the same way, deeper and slower, one group per layer. */
1436
1444
  --animate-ambient-star-dim: ambient-star-dim 17s ease-in-out infinite;
1437
- /* The nebula's clouds swing slowly away and back, each by its own drift
1438
- (`--drift-*`, set per cloud): moved, swollen a little and thinned out at
1439
- the far end, eased at both. */
1440
- --animate-ambient-nebula-drift: ambient-nebula-drift 90s ease-in-out infinite alternate;
1441
1445
  /* A meteor's whole cycle is mostly waiting: it streaks across in the first
1442
1446
  2% (about a second of its long cycle), its tail growing behind the head
1443
1447
  as it fades in and burning out before it stops, then nothing until the
@@ -1465,13 +1469,6 @@ body {
1465
1469
  }
1466
1470
  }
1467
1471
 
1468
- @keyframes ambient-nebula-drift {
1469
- to {
1470
- transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(var(--drift-scale));
1471
- opacity: var(--drift-fade);
1472
- }
1473
- }
1474
-
1475
1472
  @keyframes ambient-meteor {
1476
1473
  0% {
1477
1474
  opacity: 0;
@@ -1489,7 +1486,7 @@ body {
1489
1486
 
1490
1487
  /* `motion-safe:` reads only the OS setting; apps that let people choose
1491
1488
  in-app set `data-motion="reduced"` on `<html>`, and the sky stills for that
1492
- too: no drift, no dimming, no meteors. */
1489
+ too: no dimming, no twinkle, no meteors. */
1493
1490
  :where(:root[data-motion="reduced"]) {
1494
1491
  .ambient-starfield,
1495
1492
  .ambient-starfield * {
@@ -1514,5 +1511,11 @@ body {
1514
1511
  > &
1515
1512
  );
1516
1513
 
1514
+ /* Inside an `AppShell.Sidebar collapse="icons"` while it shows icons only:
1515
+ hide what doesn't fit a 68px rail (`sidebar-rail:hidden` on a logo's
1516
+ wordmark, a footer's user name). Matches the rail itself too. NavLink uses it
1517
+ for its label, endSlot, chevron. */
1518
+ @custom-variant sidebar-rail (&:where([data-sidebar-rail], [data-sidebar-rail] *));
1519
+
1517
1520
  /* Variants to use with slider's values */
1518
1521
  @custom-variant state-under-or-at (&:is([data-state="under-value"], [data-state="at-value"]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@42-central/ui-react",
3
- "version": "0.25.0",
3
+ "version": "0.27.0",
4
4
  "description": "React UI kit for 42 tools",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -442,6 +442,12 @@ const contract: Record<AsChildPart, Case> = {
442
442
  </AppShell>
443
443
  ),
444
444
  "AppShell.Main": bare,
445
+ // jsdom measures the shell 0px wide, so `breakpoint={0}` keeps it desktop.
446
+ "AppShell.SidebarCollapseTrigger": (c) => (
447
+ <AppShell breakpoint={0}>
448
+ <AppShell.SidebarCollapseTrigger asChild>{c}</AppShell.SidebarCollapseTrigger>
449
+ </AppShell>
450
+ ),
445
451
  "AppShell.SidebarTrigger": (c) => (
446
452
  <AppShell>
447
453
  <AppShell.SidebarTrigger asChild>{c}</AppShell.SidebarTrigger>
@@ -10,10 +10,12 @@ import { props } from "../../lib/props"
10
10
  //
11
11
  // Everything is computed once at module load from a seeded PRNG, so the sky
12
12
  // is identical on every render, on the server and the client, and on every
13
- // visit. It moves, slowly: the clouds drift and swell, the dust dims and comes
14
- // back, the brighter stars breathe, and now and then a meteor crosses. All of
15
- // it is CSS animation of transform and opacity (keyframes in theme.css), so
16
- // the compositor runs it and no script does per frame; and all of it sits
13
+ // visit. The clouds hold still: a drifting full-screen gradient is redrawn
14
+ // whole on every frame in Firefox, which kept its GPU busy for as long as a
15
+ // page was open. The rest moves, slowly: the dust dims and comes back, the
16
+ // brighter stars breathe, and now and then a meteor crosses. All of it is CSS
17
+ // animation of opacity and transform (keyframes in theme.css), so the
18
+ // compositor runs it and no script does per frame; and all of it sits
17
19
  // behind `motion-safe:` and the `data-motion="reduced"` rule in theme.css, so
18
20
  // with reduced motion the sky is a still picture, without the meteors.
19
21
 
@@ -98,15 +100,6 @@ const BRIGHT_STARS = [
98
100
  // A four-point sparkle with concave sides: reads as a lens glint, not a shape.
99
101
  const SPARKLE = "M0 -6Q0 0 6 0Q0 0 0 6Q0 0 -6 0Q0 0 0 -6Z"
100
102
 
101
- // Each cloud's layer overhangs the viewport by this much on every side, so a
102
- // cloud cut by the screen's edge (several are) can drift without the cut
103
- // ever coming into view.
104
- const BLEED = 15
105
- const SPAN = 100 + 2 * BLEED
106
-
107
- // A length or a position given in viewport %, as % of the overhanging layer.
108
- const inLayer = (viewport: number, offset = 0) => `${round(((viewport + offset) / SPAN) * 100)}%`
109
-
110
103
  type Ellipse = { rx: number; ry: number; x: number; y: number }
111
104
  type Hue = { color: string; strength: number }
112
105
 
@@ -114,66 +107,46 @@ type Hue = { color: string; strength: number }
114
107
  // ellipses that fade out over their whole radius so no edge ever shows. The
115
108
  // design's blue core is already the kit's ambient glow; this adds the purple.
116
109
  const cloud = ({ rx, ry, x, y }: Ellipse, { color, strength }: Hue) =>
117
- `radial-gradient(ellipse ${inLayer(rx)} ${inLayer(ry)} at ${inLayer(x, BLEED)} ${inLayer(y, BLEED)}, color-mix(in oklab, var(${color}) ${strength}%, transparent), color-mix(in oklab, var(${color}) ${strength * 0.45}%, transparent) 45%, transparent 100%)`
110
+ `radial-gradient(ellipse ${rx}% ${ry}% at ${x}% ${y}%, color-mix(in oklab, var(${color}) ${strength}%, transparent), color-mix(in oklab, var(${color}) ${strength * 0.45}%, transparent) 45%, transparent 100%)`
118
111
 
119
- // Each cloud drifts on its own long, slow swing (there and back, eased at
120
- // both ends), swelling a little and thinning as it goes: a few px a second,
121
- // so the sky is never seen moving, only found changed. On a light sky the
122
- // same clouds are pale tints, so the light theme keeps the violet without
123
- // muddying the page.
124
- const CLOUDS: {
125
- at: Ellipse
126
- dark: Hue
127
- light: Hue
128
- drift: { x: string; y: string; scale: number; fade: number; duration: string; delay: string }
129
- }[] = [
112
+ // On a light sky the same clouds are pale tints, so the light theme keeps
113
+ // the violet without muddying the page.
114
+ const CLOUDS: { at: Ellipse; dark: Hue; light: Hue }[] = [
130
115
  {
131
116
  // Moved down-left, narrowed and brightened (9 → 17) against Figma's « Background / Cosmos »,
132
117
  // whose lower-left glows violet behind the first column (2026-10-29).
133
118
  at: { rx: 35, ry: 34, x: 23, y: 72 },
134
119
  dark: { color: "--color-purple-400", strength: 17 },
135
120
  light: { color: "--color-purple-200", strength: 14 },
136
- drift: { x: "6vw", y: "-4vh", scale: 1.12, fade: 0.7, duration: "70s", delay: "-20s" },
137
121
  },
138
122
  {
139
123
  at: { rx: 60, ry: 38, x: 42, y: 104 },
140
124
  dark: { color: "--color-purple-800", strength: 20 },
141
125
  light: { color: "--color-purple-200", strength: 26 },
142
- drift: { x: "-8vw", y: "-3vh", scale: 1.08, fade: 0.85, duration: "95s", delay: "-50s" },
143
126
  },
144
127
  {
145
128
  at: { rx: 40, ry: 34, x: 92, y: 4 },
146
129
  dark: { color: "--color-purple-800", strength: 22 },
147
130
  light: { color: "--color-purple-200", strength: 28 },
148
- drift: { x: "-5vw", y: "5vh", scale: 1.15, fade: 0.8, duration: "85s", delay: "-10s" },
149
131
  },
150
132
  {
151
133
  at: { rx: 46, ry: 40, x: 24, y: 20 },
152
134
  dark: { color: "--color-brand-700", strength: 18 },
153
135
  light: { color: "--color-brand-200", strength: 24 },
154
- drift: { x: "7vw", y: "4vh", scale: 1.1, fade: 0.85, duration: "110s", delay: "-70s" },
155
136
  },
156
137
  {
157
138
  at: { rx: 36, ry: 30, x: 4, y: 92 },
158
139
  dark: { color: "--color-pink-800", strength: 10 },
159
140
  light: { color: "--color-pink-200", strength: 16 },
160
- drift: { x: "5vw", y: "-6vh", scale: 1.2, fade: 0.6, duration: "75s", delay: "-35s" },
161
141
  },
162
142
  ]
163
143
 
164
- // The cloud's picture per theme and its drift, as variables the classes and
165
- // the ambient-nebula-drift keyframes (theme.css) read.
166
- const cloudStyle = ({ at, dark, light, drift }: (typeof CLOUDS)[number]) =>
144
+ // The cloud's picture per theme, as variables the classes read.
145
+ const cloudStyle = ({ at, dark, light }: (typeof CLOUDS)[number]) =>
167
146
  ({
168
147
  "--nebula-light": cloud(at, light),
169
148
  "--nebula-dark": cloud(at, dark),
170
- "--drift-x": drift.x,
171
- "--drift-y": drift.y,
172
- "--drift-scale": drift.scale,
173
- "--drift-fade": drift.fade,
174
- inset: `-${BLEED}%`,
175
- animationDuration: drift.duration,
176
- animationDelay: drift.delay,
149
+ inset: 0,
177
150
  }) as CSSProperties
178
151
 
179
152
  // The meteors: three, each on its own long cycle and visible for about a
@@ -218,7 +191,7 @@ export const Starfield = ({
218
191
  aria-hidden="true"
219
192
  className={cn(
220
193
  LAYER,
221
- "[background-image:var(--nebula-light)] motion-safe:animate-ambient-nebula-drift dark:[background-image:var(--nebula-dark)]",
194
+ "[background-image:var(--nebula-light)] dark:[background-image:var(--nebula-dark)]",
222
195
  classNames?.nebula,
223
196
  )}
224
197
  style={cloudStyle(c)}