@42-central/ui-react 0.26.0 → 0.28.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 (220) 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-OVT2KZHY.js → chunk-3KARNPW4.js} +3 -3
  4. package/dist/{chunk-OVT2KZHY.js.map → chunk-3KARNPW4.js.map} +1 -1
  5. package/dist/chunk-6B2GNPJP.js +43 -0
  6. package/dist/chunk-6B2GNPJP.js.map +1 -0
  7. package/dist/{chunk-E52Z2FKU.js → chunk-7BY5I2RB.js} +3 -3
  8. package/dist/{chunk-E52Z2FKU.js.map → chunk-7BY5I2RB.js.map} +1 -1
  9. package/dist/{chunk-JFB6O7IY.js → chunk-7KFUFAVP.js} +4 -4
  10. package/dist/{chunk-JFB6O7IY.js.map → chunk-7KFUFAVP.js.map} +1 -1
  11. package/dist/{chunk-X3YIHN2U.js → chunk-ASKQ6N5V.js} +3 -3
  12. package/dist/{chunk-X3YIHN2U.js.map → chunk-ASKQ6N5V.js.map} +1 -1
  13. package/dist/{chunk-6IRMKF5T.js → chunk-B4GNSSHU.js} +4 -4
  14. package/dist/{chunk-6IRMKF5T.js.map → chunk-B4GNSSHU.js.map} +1 -1
  15. package/dist/{chunk-BMEJBY6H.js → chunk-B5YHYI7E.js} +22 -27
  16. package/dist/chunk-B5YHYI7E.js.map +1 -0
  17. package/dist/{chunk-PT22KEVD.js → chunk-BGDVUC3B.js} +5 -5
  18. package/dist/{chunk-PT22KEVD.js.map → chunk-BGDVUC3B.js.map} +1 -1
  19. package/dist/{chunk-7247WBTV.js → chunk-DJ72KP32.js} +3 -3
  20. package/dist/{chunk-7247WBTV.js.map → chunk-DJ72KP32.js.map} +1 -1
  21. package/dist/{chunk-7OGZT7U2.js → chunk-G3AD3NJG.js} +3 -3
  22. package/dist/{chunk-7OGZT7U2.js.map → chunk-G3AD3NJG.js.map} +1 -1
  23. package/dist/{chunk-276RL7FX.js → chunk-GJFCIG34.js} +8 -8
  24. package/dist/{chunk-276RL7FX.js.map → chunk-GJFCIG34.js.map} +1 -1
  25. package/dist/{chunk-JDPVD2YE.js → chunk-HCHGERDB.js} +3 -3
  26. package/dist/{chunk-JDPVD2YE.js.map → chunk-HCHGERDB.js.map} +1 -1
  27. package/dist/{chunk-H7WOMZXO.js → chunk-HWBFRDX7.js} +16 -8
  28. package/dist/chunk-HWBFRDX7.js.map +1 -0
  29. package/dist/{chunk-LYGOFMXJ.js → chunk-I4IJOLNA.js} +4 -4
  30. package/dist/{chunk-LYGOFMXJ.js.map → chunk-I4IJOLNA.js.map} +1 -1
  31. package/dist/{chunk-7B44J3CF.js → chunk-I53TMAV2.js} +6 -6
  32. package/dist/{chunk-7B44J3CF.js.map → chunk-I53TMAV2.js.map} +1 -1
  33. package/dist/{chunk-DSZF2TW6.js → chunk-IA6DCC3N.js} +6 -6
  34. package/dist/{chunk-DSZF2TW6.js.map → chunk-IA6DCC3N.js.map} +1 -1
  35. package/dist/{chunk-QEAF57ZQ.js → chunk-ISX3AM32.js} +3 -3
  36. package/dist/{chunk-QEAF57ZQ.js.map → chunk-ISX3AM32.js.map} +1 -1
  37. package/dist/{chunk-N42EFOML.js → chunk-K3FZHYJL.js} +6 -6
  38. package/dist/chunk-K3FZHYJL.js.map +1 -0
  39. package/dist/{chunk-ZVECQBGG.js → chunk-KNGSO7A3.js} +41 -13
  40. package/dist/chunk-KNGSO7A3.js.map +1 -0
  41. package/dist/{chunk-NLSJ6T7V.js → chunk-KYVXPSNW.js} +4 -4
  42. package/dist/{chunk-NLSJ6T7V.js.map → chunk-KYVXPSNW.js.map} +1 -1
  43. package/dist/{chunk-J2NW7JID.js → chunk-L5GH7LLD.js} +3 -3
  44. package/dist/{chunk-J2NW7JID.js.map → chunk-L5GH7LLD.js.map} +1 -1
  45. package/dist/{chunk-THGJLR5S.js → chunk-NNPSBC7O.js} +5 -5
  46. package/dist/{chunk-THGJLR5S.js.map → chunk-NNPSBC7O.js.map} +1 -1
  47. package/dist/{chunk-YMVUQ2L7.js → chunk-P7SH3XWY.js} +6 -6
  48. package/dist/chunk-P7SH3XWY.js.map +1 -0
  49. package/dist/{chunk-2CL3FKEY.js → chunk-QEMXXQQO.js} +3 -3
  50. package/dist/{chunk-2CL3FKEY.js.map → chunk-QEMXXQQO.js.map} +1 -1
  51. package/dist/{chunk-2NTCQIRP.js → chunk-QRNQQIQM.js} +5 -5
  52. package/dist/{chunk-2NTCQIRP.js.map → chunk-QRNQQIQM.js.map} +1 -1
  53. package/dist/{chunk-LKFHUDEW.js → chunk-QVOBLRCM.js} +3 -3
  54. package/dist/{chunk-LKFHUDEW.js.map → chunk-QVOBLRCM.js.map} +1 -1
  55. package/dist/{chunk-E3XLWMEB.js → chunk-RKCUXOU2.js} +4 -4
  56. package/dist/{chunk-E3XLWMEB.js.map → chunk-RKCUXOU2.js.map} +1 -1
  57. package/dist/{chunk-DMI4KS32.js → chunk-SBZJGFZ6.js} +3 -3
  58. package/dist/{chunk-DMI4KS32.js.map → chunk-SBZJGFZ6.js.map} +1 -1
  59. package/dist/{chunk-7P32XCEU.js → chunk-SLUOF7XW.js} +2 -2
  60. package/dist/chunk-SLUOF7XW.js.map +1 -0
  61. package/dist/{chunk-SCXXJDKQ.js → chunk-SP6LCCTZ.js} +21 -28
  62. package/dist/chunk-SP6LCCTZ.js.map +1 -0
  63. package/dist/{chunk-Y2G47ARQ.js → chunk-TGGNSSOJ.js} +3 -3
  64. package/dist/{chunk-Y2G47ARQ.js.map → chunk-TGGNSSOJ.js.map} +1 -1
  65. package/dist/{chunk-2TZU4LSX.js → chunk-ULF5LOBS.js} +3 -3
  66. package/dist/{chunk-2TZU4LSX.js.map → chunk-ULF5LOBS.js.map} +1 -1
  67. package/dist/{chunk-D2QIPQ74.js → chunk-W3XX7BYT.js} +2 -2
  68. package/dist/chunk-W3XX7BYT.js.map +1 -0
  69. package/dist/{chunk-F374BNL4.js → chunk-YVTM2KRR.js} +12 -8
  70. package/dist/chunk-YVTM2KRR.js.map +1 -0
  71. package/dist/colors.css +328 -0
  72. package/dist/components/action-icon/action-icon.d.ts +6 -5
  73. package/dist/components/action-icon/action-icon.d.ts.map +1 -1
  74. package/dist/components/action-icon/index.js +3 -2
  75. package/dist/components/alert/index.js +2 -2
  76. package/dist/components/app-shell/index.js +7 -6
  77. package/dist/components/app-shell/index.js.map +1 -1
  78. package/dist/components/autocomplete/index.js +4 -4
  79. package/dist/components/badge/badge.d.ts +1 -1
  80. package/dist/components/badge/badge.d.ts.map +1 -1
  81. package/dist/components/badge/index.js +2 -1
  82. package/dist/components/button/button.d.ts +11 -9
  83. package/dist/components/button/button.d.ts.map +1 -1
  84. package/dist/components/button/index.js +3 -2
  85. package/dist/components/button-multi-select/index.js +4 -3
  86. package/dist/components/button-multi-select/index.js.map +1 -1
  87. package/dist/components/button-select/index.js +4 -3
  88. package/dist/components/button-select/index.js.map +1 -1
  89. package/dist/components/calendar/index.js +4 -3
  90. package/dist/components/calendar-heatmap/index.js +2 -2
  91. package/dist/components/camera/index.js +11 -10
  92. package/dist/components/clipboard/index.js +3 -2
  93. package/dist/components/clipboard/index.js.map +1 -1
  94. package/dist/components/code-block/chrome.js +5 -5
  95. package/dist/components/code-block/index.js +6 -6
  96. package/dist/components/combobox/index.js +4 -4
  97. package/dist/components/combobox-list/index.js +6 -6
  98. package/dist/components/data-table/data-table-features.d.ts +8 -0
  99. package/dist/components/data-table/data-table-features.d.ts.map +1 -1
  100. package/dist/components/data-table/data-table-group.d.ts +128 -0
  101. package/dist/components/data-table/data-table-group.d.ts.map +1 -0
  102. package/dist/components/data-table/data-table-grouping.d.ts +72 -0
  103. package/dist/components/data-table/data-table-grouping.d.ts.map +1 -0
  104. package/dist/components/data-table/data-table-icons.d.ts +4 -2
  105. package/dist/components/data-table/data-table-icons.d.ts.map +1 -1
  106. package/dist/components/data-table/data-table-meta.d.ts +9 -0
  107. package/dist/components/data-table/data-table-meta.d.ts.map +1 -1
  108. package/dist/components/data-table/data-table-pagination.d.ts +4 -1
  109. package/dist/components/data-table/data-table-pagination.d.ts.map +1 -1
  110. package/dist/components/data-table/data-table-schema.d.ts +4 -0
  111. package/dist/components/data-table/data-table-schema.d.ts.map +1 -1
  112. package/dist/components/data-table/data-table-stack.d.ts +16 -3
  113. package/dist/components/data-table/data-table-stack.d.ts.map +1 -1
  114. package/dist/components/data-table/data-table-toolbar.d.ts +33 -2
  115. package/dist/components/data-table/data-table-toolbar.d.ts.map +1 -1
  116. package/dist/components/data-table/data-table-translations.d.ts +35 -0
  117. package/dist/components/data-table/data-table-translations.d.ts.map +1 -1
  118. package/dist/components/data-table/data-table.d.ts +55 -3
  119. package/dist/components/data-table/data-table.d.ts.map +1 -1
  120. package/dist/components/data-table/index.d.ts +3 -1
  121. package/dist/components/data-table/index.d.ts.map +1 -1
  122. package/dist/components/data-table/index.js +883 -234
  123. package/dist/components/data-table/index.js.map +1 -1
  124. package/dist/components/date-picker/index.js +12 -11
  125. package/dist/components/date-picker/index.js.map +1 -1
  126. package/dist/components/download-button/index.js +4 -3
  127. package/dist/components/drawer/index.js +7 -6
  128. package/dist/components/file-item/index.js +4 -3
  129. package/dist/components/file-preview/index.js +4 -3
  130. package/dist/components/file-preview/index.js.map +1 -1
  131. package/dist/components/file-trigger/index.js +4 -3
  132. package/dist/components/file-upload/index.js +4 -3
  133. package/dist/components/file-upload/index.js.map +1 -1
  134. package/dist/components/hover-card/index.js +3 -3
  135. package/dist/components/image-cropper/index.js +4 -3
  136. package/dist/components/kbd/index.js +3 -3
  137. package/dist/components/lightbox/index.js +9 -8
  138. package/dist/components/lightbox/index.js.map +1 -1
  139. package/dist/components/menu/index.js +4 -4
  140. package/dist/components/modal/index.js +7 -6
  141. package/dist/components/multi-combobox-list/index.js +6 -6
  142. package/dist/components/multi-select/index.js +4 -4
  143. package/dist/components/nav-link/index.js +3 -3
  144. package/dist/components/nav-link/tanstack.js +3 -3
  145. package/dist/components/notification/create-notifier.d.ts.map +1 -1
  146. package/dist/components/notification/index.js +18 -6
  147. package/dist/components/notification/index.js.map +1 -1
  148. package/dist/components/notification/types.d.ts +5 -0
  149. package/dist/components/notification/types.d.ts.map +1 -1
  150. package/dist/components/number-input/index.js +4 -4
  151. package/dist/components/overlays/index.js +9 -8
  152. package/dist/components/overlays/index.js.map +1 -1
  153. package/dist/components/photo-capture/index.js +13 -12
  154. package/dist/components/photo-capture/index.js.map +1 -1
  155. package/dist/components/popover/index.js +3 -3
  156. package/dist/components/schedule/index.js +7 -6
  157. package/dist/components/schedule/index.js.map +1 -1
  158. package/dist/components/select/index.js +5 -5
  159. package/dist/components/spinner/index.js +1 -1
  160. package/dist/components/spinner/spinner.d.ts +1 -1
  161. package/dist/components/spinner/spinner.d.ts.map +1 -1
  162. package/dist/components/spotlight/index.js +11 -10
  163. package/dist/components/spotlight/index.js.map +1 -1
  164. package/dist/components/tags-input/index.js +3 -3
  165. package/dist/components/theme-icon/index.js +1 -1
  166. package/dist/components/theme-icon/theme-icon.d.ts.map +1 -1
  167. package/dist/components/time-input/index.js +5 -5
  168. package/dist/components/tooltip/index.js +2 -2
  169. package/dist/components/tree-multi-select/index.js +4 -4
  170. package/dist/components/tree-select/index.js +4 -4
  171. package/dist/index.js +2 -2
  172. package/dist/lib/button-colors.d.ts +25 -0
  173. package/dist/lib/button-colors.d.ts.map +1 -0
  174. package/dist/lib/overlay-container.d.ts.map +1 -1
  175. package/dist/lib/overlay-layer.d.ts +10 -3
  176. package/dist/lib/overlay-layer.d.ts.map +1 -1
  177. package/dist/theme.css +14 -6
  178. package/package.json +1 -1
  179. package/src/colors.css +328 -0
  180. package/src/components/action-icon/action-icon.test.tsx +22 -0
  181. package/src/components/action-icon/action-icon.tsx +24 -28
  182. package/src/components/badge/badge.test.tsx +53 -10
  183. package/src/components/badge/badge.tsx +64 -11
  184. package/src/components/button/button.test.tsx +41 -5
  185. package/src/components/button/button.tsx +28 -33
  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/modal/modal.tsx +1 -1
  200. package/src/components/notification/create-notifier.tsx +18 -2
  201. package/src/components/notification/notify-in-modal.test.tsx +128 -0
  202. package/src/components/notification/types.ts +5 -0
  203. package/src/components/spinner/spinner.tsx +3 -3
  204. package/src/components/theme-icon/theme-icon.test.tsx +7 -0
  205. package/src/components/theme-icon/theme-icon.tsx +10 -6
  206. package/src/lib/button-colors.ts +55 -0
  207. package/src/lib/overlay-container.tsx +2 -1
  208. package/src/lib/overlay-layer.test.tsx +63 -1
  209. package/src/lib/overlay-layer.tsx +29 -6
  210. package/src/theme.css +14 -6
  211. package/src/theme.test.ts +14 -10
  212. package/dist/chunk-7P32XCEU.js.map +0 -1
  213. package/dist/chunk-BMEJBY6H.js.map +0 -1
  214. package/dist/chunk-D2QIPQ74.js.map +0 -1
  215. package/dist/chunk-F374BNL4.js.map +0 -1
  216. package/dist/chunk-H7WOMZXO.js.map +0 -1
  217. package/dist/chunk-N42EFOML.js.map +0 -1
  218. package/dist/chunk-SCXXJDKQ.js.map +0 -1
  219. package/dist/chunk-YMVUQ2L7.js.map +0 -1
  220. package/dist/chunk-ZVECQBGG.js.map +0 -1
@@ -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,4 +1,4 @@
1
- export { ThemeIcon } from '../../chunk-F374BNL4.js';
1
+ export { ThemeIcon } from '../../chunk-YVTM2KRR.js';
2
2
  import '../../chunk-WYCMIIRR.js';
3
3
  import '../../chunk-C6NVU4F7.js';
4
4
  import '../../chunk-4ASNIDV7.js';
@@ -1 +1 @@
1
- {"version":3,"file":"theme-icon.d.ts","sourceRoot":"","sources":["../../../src/components/theme-icon/theme-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAG7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,iBAAiB;;;;8EAkGtB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA;AAC7F,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;AACvF,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAA;AAE3F,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,KAAK,CAAC,GAC9C,YAAY,CAAC,OAAO,iBAAiB,CAAC,GACtC,UAAU,GAAG;IACX,kEAAkE;IAClE,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAEH,eAAO,MAAM,SAAS,0EASnB,cAAc,gCAShB,CAAA"}
1
+ {"version":3,"file":"theme-icon.d.ts","sourceRoot":"","sources":["../../../src/components/theme-icon/theme-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAG7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,iBAAiB;;;;8EAsGtB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA;AAC7F,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;AACvF,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAA;AAE3F,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,KAAK,CAAC,GAC9C,YAAY,CAAC,OAAO,iBAAiB,CAAC,GACtC,UAAU,GAAG;IACX,kEAAkE;IAClE,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAEH,eAAO,MAAM,SAAS,0EASnB,cAAc,gCAShB,CAAA"}
@@ -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';
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Colour classes shared by Button and ActionIcon, one entry per variant.
3
+ *
4
+ * Every value comes from the `--btn-*` slots in `colors.css`, which copy the
5
+ * 42 UI Kit V3 Figma `Buttons/Button` set (Figma's ActionIcon is an instance
6
+ * of it). Shape, size and layout stay in each component's own `cva`.
7
+ *
8
+ * Hovers are gated on `not-data-loading:` so a loading control keeps its
9
+ * resting colours. Disabled colours are keyed twice: `:disabled` for a real
10
+ * `<button>` (scoped off while loading, which also sets native `disabled`)
11
+ * and `data-disabled` for an `asChild` element, where `:disabled` never
12
+ * matches.
13
+ *
14
+ * Every class is written out in full: Tailwind only generates CSS for class
15
+ * names it finds literally in the source, so composing the prefixes with a
16
+ * template string would silently drop every hover and disabled rule.
17
+ */
18
+ export declare const buttonColorVariants: {
19
+ filled: string[];
20
+ light: string[];
21
+ outline: string[];
22
+ subtle: string[];
23
+ link: string[];
24
+ };
25
+ //# sourceMappingURL=button-colors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-colors.d.ts","sourceRoot":"","sources":["../../src/lib/button-colors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;IAC9B,MAAM;IAON,KAAK;IASL,OAAO;IASP,MAAM;IAMN,IAAI;CAKL,CAAA"}
@@ -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.28.0",
4
4
  "description": "React UI kit for 42 tools",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",