@osdk/react-components 0.26.0 → 0.27.0-main-db8df2423f72b154e84da1e327691afbc569c5aa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/AGENTS.md +27 -19
  2. package/CHANGELOG.md +14 -0
  3. package/README.md +1 -0
  4. package/build/browser/cbac-picker/CbacBanner.js +42 -0
  5. package/build/browser/cbac-picker/CbacBanner.js.map +1 -0
  6. package/build/browser/cbac-picker/CbacBannerPopover.js +83 -0
  7. package/build/browser/cbac-picker/CbacBannerPopover.js.map +1 -0
  8. package/build/browser/cbac-picker/CbacPicker.js +69 -0
  9. package/build/browser/cbac-picker/CbacPicker.js.map +1 -0
  10. package/build/browser/cbac-picker/CbacPickerDialog.js +81 -0
  11. package/build/browser/cbac-picker/CbacPickerDialog.js.map +1 -0
  12. package/build/browser/cbac-picker/base/BaseCbacBanner.js +64 -0
  13. package/build/browser/cbac-picker/base/BaseCbacBanner.js.map +1 -0
  14. package/build/browser/cbac-picker/base/BaseCbacBanner.module.css +74 -0
  15. package/build/browser/cbac-picker/base/BaseCbacBanner.module.css.js +9 -0
  16. package/build/browser/cbac-picker/base/BaseCbacBannerPopover.js +168 -0
  17. package/build/browser/cbac-picker/base/BaseCbacBannerPopover.js.map +1 -0
  18. package/build/browser/cbac-picker/base/BaseCbacBannerPopover.module.css +193 -0
  19. package/build/browser/cbac-picker/base/BaseCbacBannerPopover.module.css.js +30 -0
  20. package/build/browser/cbac-picker/base/BaseCbacPicker.js +74 -0
  21. package/build/browser/cbac-picker/base/BaseCbacPicker.js.map +1 -0
  22. package/build/browser/cbac-picker/base/BaseCbacPicker.module.css +47 -0
  23. package/build/browser/cbac-picker/base/BaseCbacPicker.module.css.js +9 -0
  24. package/build/browser/cbac-picker/base/BaseCbacPickerDialog.js +51 -0
  25. package/build/browser/cbac-picker/base/BaseCbacPickerDialog.js.map +1 -0
  26. package/build/browser/cbac-picker/base/CategoryMarkingGroup.js +91 -0
  27. package/build/browser/cbac-picker/base/CategoryMarkingGroup.js.map +1 -0
  28. package/build/browser/cbac-picker/base/CategoryMarkingGroup.module.css +69 -0
  29. package/build/browser/cbac-picker/base/CategoryMarkingGroup.module.css.js +12 -0
  30. package/build/browser/cbac-picker/base/CbacPickerDialogFooter.js +43 -0
  31. package/build/browser/cbac-picker/base/CbacPickerDialogFooter.js.map +1 -0
  32. package/build/browser/cbac-picker/base/CbacPickerDialogFooter.module.css +19 -0
  33. package/build/browser/cbac-picker/base/CbacPickerDialogFooter.module.css.js +6 -0
  34. package/build/browser/cbac-picker/base/InfoBanner.js +32 -0
  35. package/build/browser/cbac-picker/base/InfoBanner.js.map +1 -0
  36. package/build/browser/cbac-picker/base/InfoBanner.module.css +30 -0
  37. package/build/browser/cbac-picker/base/InfoBanner.module.css.js +7 -0
  38. package/build/browser/cbac-picker/base/MarkingButton.js +83 -0
  39. package/build/browser/cbac-picker/base/MarkingButton.js.map +1 -0
  40. package/build/browser/cbac-picker/base/MarkingButton.module.css +104 -0
  41. package/build/browser/cbac-picker/base/MarkingButton.module.css.js +14 -0
  42. package/build/browser/cbac-picker/base/MaxClassificationField.js +42 -0
  43. package/build/browser/cbac-picker/base/MaxClassificationField.js.map +1 -0
  44. package/build/browser/cbac-picker/base/MaxClassificationField.module.css +39 -0
  45. package/build/browser/cbac-picker/base/MaxClassificationField.module.css.js +9 -0
  46. package/build/browser/cbac-picker/base/OverflowButton.js +51 -0
  47. package/build/browser/cbac-picker/base/OverflowButton.js.map +1 -0
  48. package/build/browser/cbac-picker/base/OverflowButton.module.css +57 -0
  49. package/build/browser/cbac-picker/base/OverflowButton.module.css.js +8 -0
  50. package/build/browser/cbac-picker/base/OverflowItem.js +64 -0
  51. package/build/browser/cbac-picker/base/OverflowItem.js.map +1 -0
  52. package/build/browser/cbac-picker/base/OverflowItem.module.css +75 -0
  53. package/build/browser/cbac-picker/base/OverflowItem.module.css.js +11 -0
  54. package/build/browser/cbac-picker/base/ValidationWarning.js +44 -0
  55. package/build/browser/cbac-picker/base/ValidationWarning.js.map +1 -0
  56. package/build/browser/cbac-picker/base/ValidationWarning.module.css +71 -0
  57. package/build/browser/cbac-picker/base/ValidationWarning.module.css.js +12 -0
  58. package/build/browser/cbac-picker/base/selectionStateHelpers.js +35 -0
  59. package/build/browser/cbac-picker/base/selectionStateHelpers.js.map +1 -0
  60. package/build/browser/cbac-picker/types.js +2 -0
  61. package/build/browser/cbac-picker/types.js.map +1 -0
  62. package/build/browser/cbac-picker/useCbacPickerState.js +104 -0
  63. package/build/browser/cbac-picker/useCbacPickerState.js.map +1 -0
  64. package/build/browser/cbac-picker/useCbacSelection.js +52 -0
  65. package/build/browser/cbac-picker/useCbacSelection.js.map +1 -0
  66. package/build/browser/cbac-picker/useConstraintCallout.js +42 -0
  67. package/build/browser/cbac-picker/useConstraintCallout.js.map +1 -0
  68. package/build/browser/cbac-picker/utils/cbacPickerUtils.js +60 -0
  69. package/build/browser/cbac-picker/utils/cbacPickerUtils.js.map +1 -0
  70. package/build/browser/cbac-picker/utils/errorMessages.js +78 -0
  71. package/build/browser/cbac-picker/utils/errorMessages.js.map +1 -0
  72. package/build/browser/cbac-picker/utils/selectionLogic.js +91 -0
  73. package/build/browser/cbac-picker/utils/selectionLogic.js.map +1 -0
  74. package/build/browser/cbac-picker/utils/validationMessages.js +34 -0
  75. package/build/browser/cbac-picker/utils/validationMessages.js.map +1 -0
  76. package/build/browser/filter-list/base/inputs/ListogramInput.module.css +2 -5
  77. package/build/browser/public/experimental/cbac-picker.js +36 -0
  78. package/build/browser/public/experimental/cbac-picker.js.map +1 -0
  79. package/build/browser/public/experimental.js +1 -0
  80. package/build/browser/public/experimental.js.map +1 -1
  81. package/build/browser/styles.css +815 -7
  82. package/build/browser/tokens/component-tokens/filter-list.css +2 -2
  83. package/build/browser/util/UserAgent.js +1 -1
  84. package/build/browser/util/UserAgent.js.map +1 -1
  85. package/build/cjs/chunk-6IIKW56G.cjs +11 -0
  86. package/build/cjs/{chunk-W6C6UWUN.cjs.map → chunk-6IIKW56G.cjs.map} +1 -1
  87. package/build/cjs/{chunk-Y4OUZFGE.cjs → chunk-B7QEY2ER.cjs} +4 -4
  88. package/build/cjs/{chunk-Y4OUZFGE.cjs.map → chunk-B7QEY2ER.cjs.map} +1 -1
  89. package/build/cjs/{chunk-OZ3OGPEA.cjs → chunk-DAWQ5KT5.cjs} +4 -4
  90. package/build/cjs/{chunk-OZ3OGPEA.cjs.map → chunk-DAWQ5KT5.cjs.map} +1 -1
  91. package/build/cjs/chunk-EI62HPZN.cjs +11 -0
  92. package/build/cjs/{chunk-YLYICFCA.cjs.map → chunk-EI62HPZN.cjs.map} +1 -1
  93. package/build/cjs/{chunk-RDILWZTC.cjs → chunk-JQ67SCIO.cjs} +6 -6
  94. package/build/cjs/{chunk-RDILWZTC.cjs.map → chunk-JQ67SCIO.cjs.map} +1 -1
  95. package/build/cjs/{chunk-DY6YZDDT.cjs → chunk-MUITA6EM.cjs} +4 -4
  96. package/build/cjs/{chunk-DY6YZDDT.cjs.map → chunk-MUITA6EM.cjs.map} +1 -1
  97. package/build/cjs/{chunk-3VL5YVFA.cjs → chunk-NPT4RHWG.cjs} +4 -4
  98. package/build/cjs/{chunk-3VL5YVFA.cjs.map → chunk-NPT4RHWG.cjs.map} +1 -1
  99. package/build/cjs/{chunk-3FFHTVG7.cjs → chunk-NSXB2TXV.cjs} +6 -6
  100. package/build/cjs/{chunk-3FFHTVG7.cjs.map → chunk-NSXB2TXV.cjs.map} +1 -1
  101. package/build/cjs/chunk-PJVK32YR.cjs +11 -0
  102. package/build/cjs/{chunk-GKWXRVFO.cjs.map → chunk-PJVK32YR.cjs.map} +1 -1
  103. package/build/cjs/chunk-V6CDK4G4.cjs +11 -0
  104. package/build/cjs/{chunk-JPVZGQXS.cjs.map → chunk-V6CDK4G4.cjs.map} +1 -1
  105. package/build/cjs/chunk-VFRZREZV.cjs +4 -0
  106. package/build/cjs/chunk-VFRZREZV.cjs.map +1 -0
  107. package/build/cjs/chunk-W4T7KB4R.cjs +11 -0
  108. package/build/cjs/{chunk-UJXNFENA.cjs.map → chunk-W4T7KB4R.cjs.map} +1 -1
  109. package/build/cjs/{chunk-IFOPHNX3.cjs → chunk-X7AKMQQW.cjs} +8 -8
  110. package/build/cjs/{chunk-IFOPHNX3.cjs.map → chunk-X7AKMQQW.cjs.map} +1 -1
  111. package/build/cjs/chunk-Y47SHEG7.cjs +1190 -0
  112. package/build/cjs/chunk-Y47SHEG7.cjs.map +1 -0
  113. package/build/cjs/{chunk-UTB55N5Y.cjs → chunk-YBGT4WIE.cjs} +3 -3
  114. package/build/cjs/chunk-YBGT4WIE.cjs.map +1 -0
  115. package/build/cjs/public/experimental/action-form.cjs +6 -6
  116. package/build/cjs/public/experimental/cbac-picker.cjs +60 -0
  117. package/build/cjs/public/experimental/cbac-picker.cjs.map +1 -0
  118. package/build/cjs/public/experimental/cbac-picker.css +731 -0
  119. package/build/cjs/public/experimental/cbac-picker.css.map +1 -0
  120. package/build/cjs/public/experimental/cbac-picker.d.cts +122 -0
  121. package/build/cjs/public/experimental/document-viewer.cjs +6 -6
  122. package/build/cjs/public/experimental/email-viewer.cjs +3 -3
  123. package/build/cjs/public/experimental/excel-viewer.cjs +3 -3
  124. package/build/cjs/public/experimental/filter-list.cjs +16 -16
  125. package/build/cjs/public/experimental/filter-list.css +2 -5
  126. package/build/cjs/public/experimental/filter-list.css.map +1 -1
  127. package/build/cjs/public/experimental/image-viewer.cjs +3 -3
  128. package/build/cjs/public/experimental/markdown-renderer.cjs +3 -3
  129. package/build/cjs/public/experimental/object-table.cjs +12 -12
  130. package/build/cjs/public/experimental/pdf-viewer.cjs +7 -7
  131. package/build/cjs/public/experimental/tiff-renderer.cjs +3 -3
  132. package/build/cjs/public/experimental/video-viewer.cjs +3 -3
  133. package/build/cjs/public/experimental/xml-viewer.cjs +3 -3
  134. package/build/cjs/public/experimental.cjs +151 -105
  135. package/build/cjs/public/experimental.css +612 -76
  136. package/build/cjs/public/experimental.css.map +1 -1
  137. package/build/cjs/public/experimental.d.cts +1 -0
  138. package/build/cjs/public/primitives.cjs +2 -1
  139. package/build/esm/cbac-picker/CbacBanner.js +42 -0
  140. package/build/esm/cbac-picker/CbacBanner.js.map +1 -0
  141. package/build/esm/cbac-picker/CbacBannerPopover.js +83 -0
  142. package/build/esm/cbac-picker/CbacBannerPopover.js.map +1 -0
  143. package/build/esm/cbac-picker/CbacPicker.js +69 -0
  144. package/build/esm/cbac-picker/CbacPicker.js.map +1 -0
  145. package/build/esm/cbac-picker/CbacPickerDialog.js +81 -0
  146. package/build/esm/cbac-picker/CbacPickerDialog.js.map +1 -0
  147. package/build/esm/cbac-picker/base/BaseCbacBanner.js +64 -0
  148. package/build/esm/cbac-picker/base/BaseCbacBanner.js.map +1 -0
  149. package/build/esm/cbac-picker/base/BaseCbacBanner.module.css +74 -0
  150. package/build/esm/cbac-picker/base/BaseCbacBannerPopover.js +168 -0
  151. package/build/esm/cbac-picker/base/BaseCbacBannerPopover.js.map +1 -0
  152. package/build/esm/cbac-picker/base/BaseCbacBannerPopover.module.css +193 -0
  153. package/build/esm/cbac-picker/base/BaseCbacPicker.js +74 -0
  154. package/build/esm/cbac-picker/base/BaseCbacPicker.js.map +1 -0
  155. package/build/esm/cbac-picker/base/BaseCbacPicker.module.css +47 -0
  156. package/build/esm/cbac-picker/base/BaseCbacPickerDialog.js +51 -0
  157. package/build/esm/cbac-picker/base/BaseCbacPickerDialog.js.map +1 -0
  158. package/build/esm/cbac-picker/base/CategoryMarkingGroup.js +91 -0
  159. package/build/esm/cbac-picker/base/CategoryMarkingGroup.js.map +1 -0
  160. package/build/esm/cbac-picker/base/CategoryMarkingGroup.module.css +69 -0
  161. package/build/esm/cbac-picker/base/CbacPickerDialogFooter.js +43 -0
  162. package/build/esm/cbac-picker/base/CbacPickerDialogFooter.js.map +1 -0
  163. package/build/esm/cbac-picker/base/CbacPickerDialogFooter.module.css +19 -0
  164. package/build/esm/cbac-picker/base/InfoBanner.js +32 -0
  165. package/build/esm/cbac-picker/base/InfoBanner.js.map +1 -0
  166. package/build/esm/cbac-picker/base/InfoBanner.module.css +30 -0
  167. package/build/esm/cbac-picker/base/MarkingButton.js +83 -0
  168. package/build/esm/cbac-picker/base/MarkingButton.js.map +1 -0
  169. package/build/esm/cbac-picker/base/MarkingButton.module.css +104 -0
  170. package/build/esm/cbac-picker/base/MaxClassificationField.js +42 -0
  171. package/build/esm/cbac-picker/base/MaxClassificationField.js.map +1 -0
  172. package/build/esm/cbac-picker/base/MaxClassificationField.module.css +39 -0
  173. package/build/esm/cbac-picker/base/OverflowButton.js +51 -0
  174. package/build/esm/cbac-picker/base/OverflowButton.js.map +1 -0
  175. package/build/esm/cbac-picker/base/OverflowButton.module.css +57 -0
  176. package/build/esm/cbac-picker/base/OverflowItem.js +64 -0
  177. package/build/esm/cbac-picker/base/OverflowItem.js.map +1 -0
  178. package/build/esm/cbac-picker/base/OverflowItem.module.css +75 -0
  179. package/build/esm/cbac-picker/base/ValidationWarning.js +44 -0
  180. package/build/esm/cbac-picker/base/ValidationWarning.js.map +1 -0
  181. package/build/esm/cbac-picker/base/ValidationWarning.module.css +71 -0
  182. package/build/esm/cbac-picker/base/selectionStateHelpers.js +35 -0
  183. package/build/esm/cbac-picker/base/selectionStateHelpers.js.map +1 -0
  184. package/build/esm/cbac-picker/types.js +2 -0
  185. package/build/esm/cbac-picker/types.js.map +1 -0
  186. package/build/esm/cbac-picker/useCbacPickerState.js +104 -0
  187. package/build/esm/cbac-picker/useCbacPickerState.js.map +1 -0
  188. package/build/esm/cbac-picker/useCbacSelection.js +52 -0
  189. package/build/esm/cbac-picker/useCbacSelection.js.map +1 -0
  190. package/build/esm/cbac-picker/useConstraintCallout.js +42 -0
  191. package/build/esm/cbac-picker/useConstraintCallout.js.map +1 -0
  192. package/build/esm/cbac-picker/utils/cbacPickerUtils.js +60 -0
  193. package/build/esm/cbac-picker/utils/cbacPickerUtils.js.map +1 -0
  194. package/build/esm/cbac-picker/utils/errorMessages.js +78 -0
  195. package/build/esm/cbac-picker/utils/errorMessages.js.map +1 -0
  196. package/build/esm/cbac-picker/utils/selectionLogic.js +91 -0
  197. package/build/esm/cbac-picker/utils/selectionLogic.js.map +1 -0
  198. package/build/esm/cbac-picker/utils/validationMessages.js +34 -0
  199. package/build/esm/cbac-picker/utils/validationMessages.js.map +1 -0
  200. package/build/esm/filter-list/base/inputs/ListogramInput.module.css +2 -5
  201. package/build/esm/public/experimental/cbac-picker.js +36 -0
  202. package/build/esm/public/experimental/cbac-picker.js.map +1 -0
  203. package/build/esm/public/experimental.js +1 -0
  204. package/build/esm/public/experimental.js.map +1 -1
  205. package/build/esm/tokens/component-tokens/filter-list.css +2 -2
  206. package/build/esm/util/UserAgent.js +1 -1
  207. package/build/esm/util/UserAgent.js.map +1 -1
  208. package/build/types/cbac-picker/CbacBanner.d.ts +8 -0
  209. package/build/types/cbac-picker/CbacBanner.d.ts.map +1 -0
  210. package/build/types/cbac-picker/CbacBannerPopover.d.ts +9 -0
  211. package/build/types/cbac-picker/CbacBannerPopover.d.ts.map +1 -0
  212. package/build/types/cbac-picker/CbacPicker.d.ts +10 -0
  213. package/build/types/cbac-picker/CbacPicker.d.ts.map +1 -0
  214. package/build/types/cbac-picker/CbacPickerDialog.d.ts +10 -0
  215. package/build/types/cbac-picker/CbacPickerDialog.d.ts.map +1 -0
  216. package/build/types/cbac-picker/base/BaseCbacBanner.d.ts +10 -0
  217. package/build/types/cbac-picker/base/BaseCbacBanner.d.ts.map +1 -0
  218. package/build/types/cbac-picker/base/BaseCbacBannerPopover.d.ts +18 -0
  219. package/build/types/cbac-picker/base/BaseCbacBannerPopover.d.ts.map +1 -0
  220. package/build/types/cbac-picker/base/BaseCbacPicker.d.ts +18 -0
  221. package/build/types/cbac-picker/base/BaseCbacPicker.d.ts.map +1 -0
  222. package/build/types/cbac-picker/base/BaseCbacPickerDialog.d.ts +11 -0
  223. package/build/types/cbac-picker/base/BaseCbacPickerDialog.d.ts.map +1 -0
  224. package/build/types/cbac-picker/base/CategoryMarkingGroup.d.ts +15 -0
  225. package/build/types/cbac-picker/base/CategoryMarkingGroup.d.ts.map +1 -0
  226. package/build/types/cbac-picker/base/CbacPickerDialogFooter.d.ts +8 -0
  227. package/build/types/cbac-picker/base/CbacPickerDialogFooter.d.ts.map +1 -0
  228. package/build/types/cbac-picker/base/InfoBanner.d.ts +6 -0
  229. package/build/types/cbac-picker/base/InfoBanner.d.ts.map +1 -0
  230. package/build/types/cbac-picker/base/MarkingButton.d.ts +11 -0
  231. package/build/types/cbac-picker/base/MarkingButton.d.ts.map +1 -0
  232. package/build/types/cbac-picker/base/MaxClassificationField.d.ts +9 -0
  233. package/build/types/cbac-picker/base/MaxClassificationField.d.ts.map +1 -0
  234. package/build/types/cbac-picker/base/OverflowButton.d.ts +14 -0
  235. package/build/types/cbac-picker/base/OverflowButton.d.ts.map +1 -0
  236. package/build/types/cbac-picker/base/OverflowItem.d.ts +11 -0
  237. package/build/types/cbac-picker/base/OverflowItem.d.ts.map +1 -0
  238. package/build/types/cbac-picker/base/ValidationWarning.d.ts +7 -0
  239. package/build/types/cbac-picker/base/ValidationWarning.d.ts.map +1 -0
  240. package/build/types/cbac-picker/base/selectionStateHelpers.d.ts +5 -0
  241. package/build/types/cbac-picker/base/selectionStateHelpers.d.ts.map +1 -0
  242. package/build/types/cbac-picker/types.d.ts +32 -0
  243. package/build/types/cbac-picker/types.d.ts.map +1 -0
  244. package/build/types/cbac-picker/useCbacPickerState.d.ts +14 -0
  245. package/build/types/cbac-picker/useCbacPickerState.d.ts.map +1 -0
  246. package/build/types/cbac-picker/useCbacSelection.d.ts +11 -0
  247. package/build/types/cbac-picker/useCbacSelection.d.ts.map +1 -0
  248. package/build/types/cbac-picker/useConstraintCallout.d.ts +3 -0
  249. package/build/types/cbac-picker/useConstraintCallout.d.ts.map +1 -0
  250. package/build/types/cbac-picker/utils/cbacPickerUtils.d.ts +22 -0
  251. package/build/types/cbac-picker/utils/cbacPickerUtils.d.ts.map +1 -0
  252. package/build/types/cbac-picker/utils/errorMessages.d.ts +5 -0
  253. package/build/types/cbac-picker/utils/errorMessages.d.ts.map +1 -0
  254. package/build/types/cbac-picker/utils/selectionLogic.d.ts +4 -0
  255. package/build/types/cbac-picker/utils/selectionLogic.d.ts.map +1 -0
  256. package/build/types/cbac-picker/utils/validationMessages.d.ts +9 -0
  257. package/build/types/cbac-picker/utils/validationMessages.d.ts.map +1 -0
  258. package/build/types/public/experimental/cbac-picker.d.ts +12 -0
  259. package/build/types/public/experimental/cbac-picker.d.ts.map +1 -0
  260. package/build/types/public/experimental.d.ts +1 -0
  261. package/build/types/public/experimental.d.ts.map +1 -1
  262. package/docs/CbacPicker.md +495 -0
  263. package/package.json +18 -9
  264. package/build/cjs/chunk-GKWXRVFO.cjs +0 -11
  265. package/build/cjs/chunk-JPVZGQXS.cjs +0 -11
  266. package/build/cjs/chunk-UJXNFENA.cjs +0 -11
  267. package/build/cjs/chunk-UTB55N5Y.cjs.map +0 -1
  268. package/build/cjs/chunk-W6C6UWUN.cjs +0 -11
  269. package/build/cjs/chunk-YLYICFCA.cjs +0 -11
@@ -0,0 +1,91 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { Tooltip } from "@base-ui/react/tooltip";
18
+ import { InfoSign } from "@blueprintjs/icons";
19
+ import React from "react";
20
+ import styles from "./CategoryMarkingGroup.module.css.js";
21
+ import { MarkingButton } from "./MarkingButton.js";
22
+ import { OverflowButton } from "./OverflowButton.js";
23
+ import { isImplied } from "./selectionStateHelpers.js";
24
+ const GRID_COLUMNS = 4;
25
+ const VISIBLE_ROWS = 3;
26
+ const DEFAULT_MARKING_STATE = "NONE";
27
+ export const CategoryMarkingGroup = /*#__PURE__*/React.memo(function ({
28
+ categoryName,
29
+ categoryDescription,
30
+ markings,
31
+ markingStates,
32
+ readOnly,
33
+ onMarkingToggle
34
+ }) {
35
+ const headingId = React.useId();
36
+ const resolvedMarkings = React.useMemo(() => markings.map(marking => ({
37
+ id: marking.id,
38
+ label: marking.name,
39
+ description: marking.description,
40
+ selectionState: markingStates.get(marking.id) ?? DEFAULT_MARKING_STATE,
41
+ disabled: readOnly
42
+ })), [markings, markingStates, readOnly]);
43
+ const maxVisible = GRID_COLUMNS * VISIBLE_ROWS;
44
+ const hasOverflow = resolvedMarkings.length > maxVisible;
45
+ const visibleMarkings = hasOverflow ? resolvedMarkings.slice(0, maxVisible - 1) : resolvedMarkings;
46
+ const overflowMarkings = hasOverflow ? resolvedMarkings.slice(maxVisible - 1) : [];
47
+ const gridItemCount = hasOverflow ? visibleMarkings.length + 1 : visibleMarkings.length;
48
+ const hasActiveOverflow = overflowMarkings.some(m => m.selectionState === "SELECTED" || isImplied(m.selectionState));
49
+ return /*#__PURE__*/React.createElement("div", {
50
+ className: styles.categoryGroup,
51
+ role: "group",
52
+ "aria-labelledby": headingId
53
+ }, /*#__PURE__*/React.createElement("div", {
54
+ className: styles.categoryHeader
55
+ }, /*#__PURE__*/React.createElement("h3", {
56
+ id: headingId,
57
+ className: styles.categoryName
58
+ }, categoryName), categoryDescription != null && categoryDescription.length > 0 && /*#__PURE__*/React.createElement(Tooltip.Root, null, /*#__PURE__*/React.createElement(Tooltip.Trigger, {
59
+ render: /*#__PURE__*/React.createElement("span", {
60
+ className: styles.infoIcon,
61
+ "aria-label": "Category description"
62
+ }, /*#__PURE__*/React.createElement(InfoSign, {
63
+ size: 12
64
+ }))
65
+ }), /*#__PURE__*/React.createElement(Tooltip.Portal, null, /*#__PURE__*/React.createElement(Tooltip.Positioner, {
66
+ side: "top",
67
+ sideOffset: 4
68
+ }, /*#__PURE__*/React.createElement(Tooltip.Popup, {
69
+ className: styles.infoTooltip
70
+ }, categoryDescription))))), /*#__PURE__*/React.createElement("div", {
71
+ className: styles.markingGrid
72
+ }, visibleMarkings.map(marking => /*#__PURE__*/React.createElement(MarkingButton, {
73
+ key: marking.id,
74
+ id: marking.id,
75
+ label: marking.label,
76
+ description: marking.description,
77
+ selectionState: marking.selectionState,
78
+ disabled: marking.disabled,
79
+ onToggle: onMarkingToggle
80
+ })), hasOverflow && /*#__PURE__*/React.createElement(OverflowButton, {
81
+ overflowMarkings: overflowMarkings,
82
+ hasActiveOverflow: hasActiveOverflow,
83
+ onMarkingToggle: onMarkingToggle
84
+ }), Array.from({
85
+ length: (GRID_COLUMNS - gridItemCount % GRID_COLUMNS) % GRID_COLUMNS
86
+ }, (_, i) => /*#__PURE__*/React.createElement("div", {
87
+ key: `empty-${i}`,
88
+ className: styles.emptyCell
89
+ }))));
90
+ });
91
+ //# sourceMappingURL=CategoryMarkingGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoryMarkingGroup.js","names":["Tooltip","InfoSign","React","styles","MarkingButton","OverflowButton","isImplied","GRID_COLUMNS","VISIBLE_ROWS","DEFAULT_MARKING_STATE","CategoryMarkingGroup","memo","categoryName","categoryDescription","markings","markingStates","readOnly","onMarkingToggle","headingId","useId","resolvedMarkings","useMemo","map","marking","id","label","name","description","selectionState","get","disabled","maxVisible","hasOverflow","length","visibleMarkings","slice","overflowMarkings","gridItemCount","hasActiveOverflow","some","m","createElement","className","categoryGroup","role","categoryHeader","Root","Trigger","render","infoIcon","size","Portal","Positioner","side","sideOffset","Popup","infoTooltip","markingGrid","key","onToggle","Array","from","_","i","emptyCell"],"sources":["CategoryMarkingGroup.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Tooltip } from \"@base-ui/react/tooltip\";\nimport { InfoSign } from \"@blueprintjs/icons\";\nimport React from \"react\";\nimport type { MarkingSelectionState } from \"../types.js\";\nimport styles from \"./CategoryMarkingGroup.module.css\";\nimport { MarkingButton } from \"./MarkingButton.js\";\nimport { OverflowButton } from \"./OverflowButton.js\";\nimport { isImplied } from \"./selectionStateHelpers.js\";\n\nconst GRID_COLUMNS = 4;\nconst VISIBLE_ROWS = 3;\nconst DEFAULT_MARKING_STATE: MarkingSelectionState = \"NONE\";\n\nexport interface CategoryMarkingGroupProps {\n categoryName: string;\n categoryDescription?: string;\n markings: ReadonlyArray<{ id: string; name: string; description?: string }>;\n markingStates: Map<string, MarkingSelectionState>;\n readOnly?: boolean;\n onMarkingToggle: (markingId: string) => void;\n}\n\nexport const CategoryMarkingGroup: React.MemoExoticComponent<\n (props: CategoryMarkingGroupProps) => React.ReactElement\n> = React.memo(function CategoryMarkingGroup({\n categoryName,\n categoryDescription,\n markings,\n markingStates,\n readOnly,\n onMarkingToggle,\n}: CategoryMarkingGroupProps): React.ReactElement {\n const headingId = React.useId();\n\n const resolvedMarkings = React.useMemo(\n () =>\n markings.map((marking) => ({\n id: marking.id,\n label: marking.name,\n description: marking.description,\n selectionState: markingStates.get(marking.id) ?? DEFAULT_MARKING_STATE,\n disabled: readOnly,\n })),\n [markings, markingStates, readOnly],\n );\n\n const maxVisible = GRID_COLUMNS * VISIBLE_ROWS;\n const hasOverflow = resolvedMarkings.length > maxVisible;\n const visibleMarkings = hasOverflow\n ? resolvedMarkings.slice(0, maxVisible - 1)\n : resolvedMarkings;\n const overflowMarkings = hasOverflow\n ? resolvedMarkings.slice(maxVisible - 1)\n : [];\n\n const gridItemCount = hasOverflow\n ? visibleMarkings.length + 1\n : visibleMarkings.length;\n const emptyCellCount = (GRID_COLUMNS - (gridItemCount % GRID_COLUMNS))\n % GRID_COLUMNS;\n\n const hasActiveOverflow = overflowMarkings.some(\n (m) => m.selectionState === \"SELECTED\" || isImplied(m.selectionState),\n );\n\n return (\n <div\n className={styles.categoryGroup}\n role=\"group\"\n aria-labelledby={headingId}\n >\n <div className={styles.categoryHeader}>\n <h3 id={headingId} className={styles.categoryName}>{categoryName}</h3>\n {categoryDescription != null && categoryDescription.length > 0 && (\n <Tooltip.Root>\n <Tooltip.Trigger\n render={\n <span\n className={styles.infoIcon}\n aria-label=\"Category description\"\n >\n <InfoSign size={12} />\n </span>\n }\n />\n <Tooltip.Portal>\n <Tooltip.Positioner side=\"top\" sideOffset={4}>\n <Tooltip.Popup className={styles.infoTooltip}>\n {categoryDescription}\n </Tooltip.Popup>\n </Tooltip.Positioner>\n </Tooltip.Portal>\n </Tooltip.Root>\n )}\n </div>\n <div className={styles.markingGrid}>\n {visibleMarkings.map((marking) => (\n <MarkingButton\n key={marking.id}\n id={marking.id}\n label={marking.label}\n description={marking.description}\n selectionState={marking.selectionState}\n disabled={marking.disabled}\n onToggle={onMarkingToggle}\n />\n ))}\n {hasOverflow && (\n <OverflowButton\n overflowMarkings={overflowMarkings}\n hasActiveOverflow={hasActiveOverflow}\n onMarkingToggle={onMarkingToggle}\n />\n )}\n {Array.from({ length: emptyCellCount }, (_, i) => (\n <div\n key={`empty-${i}`}\n className={styles.emptyCell}\n />\n ))}\n </div>\n </div>\n );\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,QAAQ,wBAAwB;AAChD,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,OAAOC,KAAK,MAAM,OAAO;AAEzB,OAAOC,MAAM,MAAM,mCAAmC;AACtD,SAASC,aAAa,QAAQ,oBAAoB;AAClD,SAASC,cAAc,QAAQ,qBAAqB;AACpD,SAASC,SAAS,QAAQ,4BAA4B;AAEtD,MAAMC,YAAY,GAAG,CAAC;AACtB,MAAMC,YAAY,GAAG,CAAC;AACtB,MAAMC,qBAA4C,GAAG,MAAM;AAW3D,OAAO,MAAMC,oBAEZ,gBAAGR,KAAK,CAACS,IAAI,CAAC,UAA8B;EAC3CC,YAAY;EACZC,mBAAmB;EACnBC,QAAQ;EACRC,aAAa;EACbC,QAAQ;EACRC;AACyB,CAAC,EAAsB;EAChD,MAAMC,SAAS,GAAGhB,KAAK,CAACiB,KAAK,CAAC,CAAC;EAE/B,MAAMC,gBAAgB,GAAGlB,KAAK,CAACmB,OAAO,CACpC,MACEP,QAAQ,CAACQ,GAAG,CAAEC,OAAO,KAAM;IACzBC,EAAE,EAAED,OAAO,CAACC,EAAE;IACdC,KAAK,EAAEF,OAAO,CAACG,IAAI;IACnBC,WAAW,EAAEJ,OAAO,CAACI,WAAW;IAChCC,cAAc,EAAEb,aAAa,CAACc,GAAG,CAACN,OAAO,CAACC,EAAE,CAAC,IAAIf,qBAAqB;IACtEqB,QAAQ,EAAEd;EACZ,CAAC,CAAC,CAAC,EACL,CAACF,QAAQ,EAAEC,aAAa,EAAEC,QAAQ,CACpC,CAAC;EAED,MAAMe,UAAU,GAAGxB,YAAY,GAAGC,YAAY;EAC9C,MAAMwB,WAAW,GAAGZ,gBAAgB,CAACa,MAAM,GAAGF,UAAU;EACxD,MAAMG,eAAe,GAAGF,WAAW,GAC/BZ,gBAAgB,CAACe,KAAK,CAAC,CAAC,EAAEJ,UAAU,GAAG,CAAC,CAAC,GACzCX,gBAAgB;EACpB,MAAMgB,gBAAgB,GAAGJ,WAAW,GAChCZ,gBAAgB,CAACe,KAAK,CAACJ,UAAU,GAAG,CAAC,CAAC,GACtC,EAAE;EAEN,MAAMM,aAAa,GAAGL,WAAW,GAC7BE,eAAe,CAACD,MAAM,GAAG,CAAC,GAC1BC,eAAe,CAACD,MAAM;EAI1B,MAAMK,iBAAiB,GAAGF,gBAAgB,CAACG,IAAI,CAC5CC,CAAC,IAAKA,CAAC,CAACZ,cAAc,KAAK,UAAU,IAAItB,SAAS,CAACkC,CAAC,CAACZ,cAAc,CACtE,CAAC;EAED,oBACE1B,KAAA,CAAAuC,aAAA;IACEC,SAAS,EAAEvC,MAAM,CAACwC,aAAc;IAChCC,IAAI,EAAC,OAAO;IACZ,mBAAiB1B;EAAU,gBAE3BhB,KAAA,CAAAuC,aAAA;IAAKC,SAAS,EAAEvC,MAAM,CAAC0C;EAAe,gBACpC3C,KAAA,CAAAuC,aAAA;IAAIjB,EAAE,EAAEN,SAAU;IAACwB,SAAS,EAAEvC,MAAM,CAACS;EAAa,GAAEA,YAAiB,CAAC,EACrEC,mBAAmB,IAAI,IAAI,IAAIA,mBAAmB,CAACoB,MAAM,GAAG,CAAC,iBAC5D/B,KAAA,CAAAuC,aAAA,CAACzC,OAAO,CAAC8C,IAAI,qBACX5C,KAAA,CAAAuC,aAAA,CAACzC,OAAO,CAAC+C,OAAO;IACdC,MAAM,eACJ9C,KAAA,CAAAuC,aAAA;MACEC,SAAS,EAAEvC,MAAM,CAAC8C,QAAS;MAC3B,cAAW;IAAsB,gBAEjC/C,KAAA,CAAAuC,aAAA,CAACxC,QAAQ;MAACiD,IAAI,EAAE;IAAG,CAAE,CACjB;EACP,CACF,CAAC,eACFhD,KAAA,CAAAuC,aAAA,CAACzC,OAAO,CAACmD,MAAM,qBACbjD,KAAA,CAAAuC,aAAA,CAACzC,OAAO,CAACoD,UAAU;IAACC,IAAI,EAAC,KAAK;IAACC,UAAU,EAAE;EAAE,gBAC3CpD,KAAA,CAAAuC,aAAA,CAACzC,OAAO,CAACuD,KAAK;IAACb,SAAS,EAAEvC,MAAM,CAACqD;EAAY,GAC1C3C,mBACY,CACG,CACN,CACJ,CAEb,CAAC,eACNX,KAAA,CAAAuC,aAAA;IAAKC,SAAS,EAAEvC,MAAM,CAACsD;EAAY,GAChCvB,eAAe,CAACZ,GAAG,CAAEC,OAAO,iBAC3BrB,KAAA,CAAAuC,aAAA,CAACrC,aAAa;IACZsD,GAAG,EAAEnC,OAAO,CAACC,EAAG;IAChBA,EAAE,EAAED,OAAO,CAACC,EAAG;IACfC,KAAK,EAAEF,OAAO,CAACE,KAAM;IACrBE,WAAW,EAAEJ,OAAO,CAACI,WAAY;IACjCC,cAAc,EAAEL,OAAO,CAACK,cAAe;IACvCE,QAAQ,EAAEP,OAAO,CAACO,QAAS;IAC3B6B,QAAQ,EAAE1C;EAAgB,CAC3B,CACF,CAAC,EACDe,WAAW,iBACV9B,KAAA,CAAAuC,aAAA,CAACpC,cAAc;IACb+B,gBAAgB,EAAEA,gBAAiB;IACnCE,iBAAiB,EAAEA,iBAAkB;IACrCrB,eAAe,EAAEA;EAAgB,CAClC,CACF,EACA2C,KAAK,CAACC,IAAI,CAAC;IAAE5B,MAAM,EAxDH,CAAC1B,YAAY,GAAI8B,aAAa,GAAG9B,YAAa,IACjEA;EAuDuC,CAAC,EAAE,CAACuD,CAAC,EAAEC,CAAC,kBAC3C7D,KAAA,CAAAuC,aAAA;IACEiB,GAAG,EAAE,SAASK,CAAC,EAAG;IAClBrB,SAAS,EAAEvC,MAAM,CAAC6D;EAAU,CAC7B,CACF,CACE,CACF,CAAC;AAEV,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,69 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ .categoryGroup {
18
+ display: flex;
19
+ flex-direction: column;
20
+ gap: var(--osdk-cbac-marking-button-gap);
21
+ }
22
+
23
+ .categoryHeader {
24
+ display: flex;
25
+ align-items: center;
26
+ gap: calc(var(--osdk-surface-spacing) * 0.75);
27
+ }
28
+
29
+ .categoryName {
30
+ font-size: var(--osdk-cbac-picker-category-title-font-size);
31
+ font-weight: var(--osdk-cbac-picker-category-title-font-weight);
32
+ color: var(--osdk-cbac-picker-category-title-color);
33
+ letter-spacing: var(--osdk-cbac-picker-category-title-letter-spacing);
34
+ margin: 0;
35
+ }
36
+
37
+ .infoIcon {
38
+ display: inline-flex;
39
+ color: var(--osdk-typography-color-muted);
40
+ cursor: help;
41
+ }
42
+
43
+ .infoTooltip {
44
+ z-index: var(--osdk-cbac-marking-tooltip-z-index);
45
+ max-width: var(--osdk-cbac-marking-tooltip-max-width);
46
+ padding: var(--osdk-cbac-marking-tooltip-padding);
47
+ background-color: var(--osdk-tooltip-bg);
48
+ border: 1px solid var(--osdk-tooltip-border-color);
49
+ border-radius: var(--osdk-surface-border-radius);
50
+ box-shadow: var(--osdk-tooltip-shadow);
51
+ font-size: var(--osdk-cbac-marking-tooltip-font-size);
52
+ line-height: 1.4;
53
+ color: var(--osdk-typography-color-muted);
54
+ }
55
+
56
+ .markingGrid {
57
+ display: grid;
58
+ grid-template-columns: repeat(
59
+ var(--osdk-cbac-picker-marking-grid-columns),
60
+ 1fr
61
+ );
62
+ border-top: 1px solid var(--osdk-cbac-picker-marking-grid-border-color);
63
+ border-left: 1px solid var(--osdk-cbac-picker-marking-grid-border-color);
64
+ }
65
+
66
+ .emptyCell {
67
+ border-right: 1px solid var(--osdk-cbac-marking-button-border-color-default);
68
+ border-bottom: 1px solid var(--osdk-cbac-marking-button-border-color-default);
69
+ }
@@ -0,0 +1,12 @@
1
+ // CSS Module proxy for CategoryMarkingGroup.module.css
2
+ const styles = {
3
+ "categoryGroup": "CategoryMarkingGroup-module__categoryGroup___YLFH-t86",
4
+ "categoryHeader": "CategoryMarkingGroup-module__categoryHeader___uwdmF3aG",
5
+ "categoryName": "CategoryMarkingGroup-module__categoryName___7n2BZ6EY",
6
+ "infoIcon": "CategoryMarkingGroup-module__infoIcon___-diV2RjV",
7
+ "infoTooltip": "CategoryMarkingGroup-module__infoTooltip___tU-JHUm5",
8
+ "markingGrid": "CategoryMarkingGroup-module__markingGrid___1y6ahlKa",
9
+ "emptyCell": "CategoryMarkingGroup-module__emptyCell___ByBo51l5"
10
+ };
11
+
12
+ export default styles;
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import React from "react";
18
+ import { ActionButton } from "../../base-components/action-button/ActionButton.js";
19
+ import { Tooltip } from "../../base-components/tooltip/index.js";
20
+ import styles from "./CbacPickerDialogFooter.module.css.js";
21
+ export function CbacPickerDialogFooter({
22
+ onCancel,
23
+ onConfirm,
24
+ submitDisabledReason
25
+ }) {
26
+ const isSubmitDisabled = submitDisabledReason != null;
27
+ const submitButton = /*#__PURE__*/React.createElement(ActionButton, {
28
+ variant: "primary",
29
+ onClick: onConfirm,
30
+ disabled: isSubmitDisabled
31
+ }, "Set classification");
32
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ActionButton, {
33
+ variant: "secondary",
34
+ onClick: onCancel
35
+ }, "Cancel"), isSubmitDisabled ? /*#__PURE__*/React.createElement(Tooltip.Root, null, /*#__PURE__*/React.createElement(Tooltip.Trigger, {
36
+ render: /*#__PURE__*/React.createElement("span", {
37
+ className: styles.tooltipTriggerWrapper
38
+ })
39
+ }, submitButton), /*#__PURE__*/React.createElement(Tooltip.Portal, null, /*#__PURE__*/React.createElement(Tooltip.Positioner, {
40
+ side: "top"
41
+ }, /*#__PURE__*/React.createElement(Tooltip.Popup, null, submitDisabledReason, /*#__PURE__*/React.createElement(Tooltip.Arrow, null))))) : submitButton);
42
+ }
43
+ //# sourceMappingURL=CbacPickerDialogFooter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CbacPickerDialogFooter.js","names":["React","ActionButton","Tooltip","styles","CbacPickerDialogFooter","onCancel","onConfirm","submitDisabledReason","isSubmitDisabled","submitButton","createElement","variant","onClick","disabled","Fragment","Root","Trigger","render","className","tooltipTriggerWrapper","Portal","Positioner","side","Popup","Arrow"],"sources":["CbacPickerDialogFooter.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from \"react\";\nimport { ActionButton } from \"../../base-components/action-button/ActionButton.js\";\nimport { Tooltip } from \"../../base-components/tooltip/index.js\";\nimport styles from \"./CbacPickerDialogFooter.module.css\";\n\ninterface CbacPickerDialogFooterProps {\n onCancel: () => void;\n onConfirm: () => void;\n submitDisabledReason?: string;\n}\n\nexport function CbacPickerDialogFooter({\n onCancel,\n onConfirm,\n submitDisabledReason,\n}: CbacPickerDialogFooterProps): React.ReactElement {\n const isSubmitDisabled = submitDisabledReason != null;\n\n const submitButton = (\n <ActionButton\n variant=\"primary\"\n onClick={onConfirm}\n disabled={isSubmitDisabled}\n >\n Set classification\n </ActionButton>\n );\n\n return (\n <>\n <ActionButton variant=\"secondary\" onClick={onCancel}>\n Cancel\n </ActionButton>\n {isSubmitDisabled\n ? (\n <Tooltip.Root>\n <Tooltip.Trigger\n render={<span className={styles.tooltipTriggerWrapper} />}\n >\n {submitButton}\n </Tooltip.Trigger>\n <Tooltip.Portal>\n <Tooltip.Positioner side=\"top\">\n <Tooltip.Popup>\n {submitDisabledReason}\n <Tooltip.Arrow />\n </Tooltip.Popup>\n </Tooltip.Positioner>\n </Tooltip.Portal>\n </Tooltip.Root>\n )\n : submitButton}\n </>\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,YAAY,QAAQ,qDAAqD;AAClF,SAASC,OAAO,QAAQ,wCAAwC;AAChE,OAAOC,MAAM,MAAM,qCAAqC;AAQxD,OAAO,SAASC,sBAAsBA,CAAC;EACrCC,QAAQ;EACRC,SAAS;EACTC;AAC2B,CAAC,EAAsB;EAClD,MAAMC,gBAAgB,GAAGD,oBAAoB,IAAI,IAAI;EAErD,MAAME,YAAY,gBAChBT,KAAA,CAAAU,aAAA,CAACT,YAAY;IACXU,OAAO,EAAC,SAAS;IACjBC,OAAO,EAAEN,SAAU;IACnBO,QAAQ,EAAEL;EAAiB,GAC5B,oBAEa,CACf;EAED,oBACER,KAAA,CAAAU,aAAA,CAAAV,KAAA,CAAAc,QAAA,qBACEd,KAAA,CAAAU,aAAA,CAACT,YAAY;IAACU,OAAO,EAAC,WAAW;IAACC,OAAO,EAAEP;EAAS,GAAC,QAEvC,CAAC,EACdG,gBAAgB,gBAEbR,KAAA,CAAAU,aAAA,CAACR,OAAO,CAACa,IAAI,qBACXf,KAAA,CAAAU,aAAA,CAACR,OAAO,CAACc,OAAO;IACdC,MAAM,eAAEjB,KAAA,CAAAU,aAAA;MAAMQ,SAAS,EAAEf,MAAM,CAACgB;IAAsB,CAAE;EAAE,GAEzDV,YACc,CAAC,eAClBT,KAAA,CAAAU,aAAA,CAACR,OAAO,CAACkB,MAAM,qBACbpB,KAAA,CAAAU,aAAA,CAACR,OAAO,CAACmB,UAAU;IAACC,IAAI,EAAC;EAAK,gBAC5BtB,KAAA,CAAAU,aAAA,CAACR,OAAO,CAACqB,KAAK,QACXhB,oBAAoB,eACrBP,KAAA,CAAAU,aAAA,CAACR,OAAO,CAACsB,KAAK,MAAE,CACH,CACG,CACN,CACJ,CAAC,GAEff,YACJ,CAAC;AAEP","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ .tooltipTriggerWrapper {
18
+ display: contents;
19
+ }
@@ -0,0 +1,6 @@
1
+ // CSS Module proxy for CbacPickerDialogFooter.module.css
2
+ const styles = {
3
+ "tooltipTriggerWrapper": "CbacPickerDialogFooter-module__tooltipTriggerWrapper___J-ZltPM0"
4
+ };
5
+
6
+ export default styles;
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { InfoSign } from "@blueprintjs/icons";
18
+ import classnames from "classnames";
19
+ import React from "react";
20
+ import styles from "./InfoBanner.module.css.js";
21
+ export function InfoBanner({
22
+ message,
23
+ className
24
+ }) {
25
+ return /*#__PURE__*/React.createElement("div", {
26
+ className: classnames(styles.infoBanner, className)
27
+ }, /*#__PURE__*/React.createElement(InfoSign, {
28
+ className: styles.icon,
29
+ size: 14
30
+ }), /*#__PURE__*/React.createElement("span", null, message));
31
+ }
32
+ //# sourceMappingURL=InfoBanner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InfoBanner.js","names":["InfoSign","classnames","React","styles","InfoBanner","message","className","createElement","infoBanner","icon","size"],"sources":["InfoBanner.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { InfoSign } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport React from \"react\";\nimport styles from \"./InfoBanner.module.css\";\n\nexport interface InfoBannerProps {\n message: string;\n className?: string;\n}\n\nexport function InfoBanner({\n message,\n className,\n}: InfoBannerProps): React.ReactElement {\n return (\n <div className={classnames(styles.infoBanner, className)}>\n <InfoSign className={styles.icon} size={14} />\n <span>{message}</span>\n </div>\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,oBAAoB;AAC7C,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,yBAAyB;AAO5C,OAAO,SAASC,UAAUA,CAAC;EACzBC,OAAO;EACPC;AACe,CAAC,EAAsB;EACtC,oBACEJ,KAAA,CAAAK,aAAA;IAAKD,SAAS,EAAEL,UAAU,CAACE,MAAM,CAACK,UAAU,EAAEF,SAAS;EAAE,gBACvDJ,KAAA,CAAAK,aAAA,CAACP,QAAQ;IAACM,SAAS,EAAEH,MAAM,CAACM,IAAK;IAACC,IAAI,EAAE;EAAG,CAAE,CAAC,eAC9CR,KAAA,CAAAK,aAAA,eAAOF,OAAc,CAClB,CAAC;AAEV","ignoreList":[]}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ .infoBanner {
18
+ display: flex;
19
+ align-items: center;
20
+ gap: calc(var(--osdk-surface-spacing) * 1.5);
21
+ padding: var(--osdk-cbac-info-banner-padding);
22
+ background: var(--osdk-cbac-info-banner-bg);
23
+ color: var(--osdk-cbac-info-banner-color);
24
+ font-size: var(--osdk-cbac-info-banner-font-size);
25
+ border-radius: var(--osdk-cbac-info-banner-border-radius);
26
+ }
27
+
28
+ .icon {
29
+ flex-shrink: 0;
30
+ }
@@ -0,0 +1,7 @@
1
+ // CSS Module proxy for InfoBanner.module.css
2
+ const styles = {
3
+ "infoBanner": "InfoBanner-module__infoBanner___UqeHvalP",
4
+ "icon": "InfoBanner-module__icon___Pl0HKY0f"
5
+ };
6
+
7
+ export default styles;
@@ -0,0 +1,83 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { Button } from "@base-ui/react/button";
18
+ import { Tooltip } from "@base-ui/react/tooltip";
19
+ import classnames from "classnames";
20
+ import React from "react";
21
+ import styles from "./MarkingButton.module.css.js";
22
+ import { getDisplayLabel, isDisallowed } from "./selectionStateHelpers.js";
23
+ const selectionStateClassMap = {
24
+ SELECTED: styles.selected,
25
+ IMPLIED: styles.implied,
26
+ DISALLOWED: styles.disallowed,
27
+ IMPLIED_DISALLOWED: styles.impliedDisallowed,
28
+ NONE: undefined
29
+ };
30
+ function getSelectionHint(state) {
31
+ switch (state) {
32
+ case "SELECTED":
33
+ return "Click to deselect";
34
+ case "IMPLIED":
35
+ return "Implied by another marking";
36
+ case "DISALLOWED":
37
+ case "IMPLIED_DISALLOWED":
38
+ return "Not available with current selection. Deselect your current choice first.";
39
+ case "NONE":
40
+ return undefined;
41
+ }
42
+ }
43
+ export const MarkingButton = /*#__PURE__*/React.memo(function ({
44
+ id,
45
+ label,
46
+ description,
47
+ selectionState,
48
+ onToggle,
49
+ disabled
50
+ }) {
51
+ const handleToggle = React.useCallback(() => {
52
+ onToggle(id);
53
+ }, [onToggle, id]);
54
+ const hasDescription = description !== undefined && description.length > 0;
55
+ const isButtonDisabled = disabled ?? isDisallowed(selectionState);
56
+ const showTooltip = hasDescription || isDisallowed(selectionState);
57
+ const hint = getSelectionHint(selectionState);
58
+ const button = /*#__PURE__*/React.createElement(Button, {
59
+ className: classnames(styles.markingButton, selectionStateClassMap[selectionState]),
60
+ onClick: isButtonDisabled ? undefined : handleToggle,
61
+ disabled: showTooltip ? undefined : isButtonDisabled,
62
+ "aria-disabled": showTooltip ? isButtonDisabled : undefined,
63
+ "aria-pressed": selectionState === "SELECTED" || selectionState === "IMPLIED",
64
+ title: showTooltip ? undefined : label
65
+ }, getDisplayLabel(label, selectionState));
66
+ if (!showTooltip) {
67
+ return button;
68
+ }
69
+ return /*#__PURE__*/React.createElement(Tooltip.Root, null, /*#__PURE__*/React.createElement(Tooltip.Trigger, {
70
+ render: button
71
+ }), /*#__PURE__*/React.createElement(Tooltip.Portal, null, /*#__PURE__*/React.createElement(Tooltip.Positioner, {
72
+ sideOffset: 8
73
+ }, /*#__PURE__*/React.createElement(Tooltip.Popup, {
74
+ className: styles.tooltip
75
+ }, /*#__PURE__*/React.createElement("p", {
76
+ className: styles.tooltipTitle
77
+ }, label), hasDescription && /*#__PURE__*/React.createElement("p", {
78
+ className: styles.tooltipDescription
79
+ }, description), hint != null && /*#__PURE__*/React.createElement("p", {
80
+ className: styles.tooltipHint
81
+ }, hint)))));
82
+ });
83
+ //# sourceMappingURL=MarkingButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkingButton.js","names":["Button","Tooltip","classnames","React","styles","getDisplayLabel","isDisallowed","selectionStateClassMap","SELECTED","selected","IMPLIED","implied","DISALLOWED","disallowed","IMPLIED_DISALLOWED","impliedDisallowed","NONE","undefined","getSelectionHint","state","MarkingButton","memo","id","label","description","selectionState","onToggle","disabled","handleToggle","useCallback","hasDescription","length","isButtonDisabled","showTooltip","hint","button","createElement","className","markingButton","onClick","title","Root","Trigger","render","Portal","Positioner","sideOffset","Popup","tooltip","tooltipTitle","tooltipDescription","tooltipHint"],"sources":["MarkingButton.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Button } from \"@base-ui/react/button\";\nimport { Tooltip } from \"@base-ui/react/tooltip\";\nimport classnames from \"classnames\";\nimport React from \"react\";\nimport type { MarkingSelectionState } from \"../types.js\";\nimport styles from \"./MarkingButton.module.css\";\nimport { getDisplayLabel, isDisallowed } from \"./selectionStateHelpers.js\";\n\nexport interface MarkingButtonProps {\n id: string;\n label: string;\n description?: string;\n selectionState: MarkingSelectionState;\n onToggle: (markingId: string) => void;\n disabled?: boolean;\n}\n\nconst selectionStateClassMap: Record<\n MarkingSelectionState,\n string | undefined\n> = {\n SELECTED: styles.selected,\n IMPLIED: styles.implied,\n DISALLOWED: styles.disallowed,\n IMPLIED_DISALLOWED: styles.impliedDisallowed,\n NONE: undefined,\n};\n\nfunction getSelectionHint(state: MarkingSelectionState): string | undefined {\n switch (state) {\n case \"SELECTED\":\n return \"Click to deselect\";\n case \"IMPLIED\":\n return \"Implied by another marking\";\n case \"DISALLOWED\":\n case \"IMPLIED_DISALLOWED\":\n return \"Not available with current selection. Deselect your current choice first.\";\n case \"NONE\":\n return undefined;\n }\n}\n\nexport const MarkingButton: React.MemoExoticComponent<\n (props: MarkingButtonProps) => React.ReactElement\n> = React.memo(function MarkingButton({\n id,\n label,\n description,\n selectionState,\n onToggle,\n disabled,\n}: MarkingButtonProps): React.ReactElement {\n const handleToggle = React.useCallback(() => {\n onToggle(id);\n }, [onToggle, id]);\n\n const hasDescription = description !== undefined\n && description.length > 0;\n const isButtonDisabled = disabled ?? isDisallowed(selectionState);\n const showTooltip = hasDescription || isDisallowed(selectionState);\n const hint = getSelectionHint(selectionState);\n\n const button = (\n <Button\n className={classnames(\n styles.markingButton,\n selectionStateClassMap[selectionState],\n )}\n onClick={isButtonDisabled ? undefined : handleToggle}\n disabled={showTooltip ? undefined : isButtonDisabled}\n aria-disabled={showTooltip ? isButtonDisabled : undefined}\n aria-pressed={selectionState === \"SELECTED\"\n || selectionState === \"IMPLIED\"}\n title={showTooltip ? undefined : label}\n >\n {getDisplayLabel(label, selectionState)}\n </Button>\n );\n\n if (!showTooltip) {\n return button;\n }\n\n return (\n <Tooltip.Root>\n <Tooltip.Trigger render={button} />\n <Tooltip.Portal>\n <Tooltip.Positioner sideOffset={8}>\n <Tooltip.Popup className={styles.tooltip}>\n <p className={styles.tooltipTitle}>{label}</p>\n {hasDescription && (\n <p className={styles.tooltipDescription}>{description}</p>\n )}\n {hint != null && (\n <p className={styles.tooltipHint}>\n {hint}\n </p>\n )}\n </Tooltip.Popup>\n </Tooltip.Positioner>\n </Tooltip.Portal>\n </Tooltip.Root>\n );\n});\n"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,104 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ .markingButton {
18
+ display: inline-flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ text-align: center;
22
+ padding: var(--osdk-cbac-marking-button-padding);
23
+ border-radius: var(--osdk-cbac-marking-button-border-radius);
24
+ font-size: var(--osdk-cbac-marking-button-font-size);
25
+ font-family: inherit;
26
+ cursor: pointer;
27
+ border: none;
28
+ border-right: 1px solid var(--osdk-cbac-marking-button-border-color-default);
29
+ border-bottom: 1px solid var(--osdk-cbac-marking-button-border-color-default);
30
+ color: var(--osdk-cbac-marking-button-color-default);
31
+ background-color: var(--osdk-cbac-marking-button-bg-default, transparent);
32
+ }
33
+
34
+ .markingButton:hover:not(:disabled):not([aria-disabled="true"]):not(.disallowed):not(.impliedDisallowed):not(.selected):not(.implied) {
35
+ background-color: var(--osdk-surface-background-color-default-hover);
36
+ }
37
+
38
+ .selected {
39
+ color: var(--osdk-cbac-marking-button-color-selected);
40
+ background-color: var(--osdk-cbac-marking-button-bg-selected);
41
+ border-color: var(--osdk-cbac-marking-button-border-color-selected);
42
+ }
43
+
44
+ .selected:hover:not(:disabled):not([aria-disabled="true"]) {
45
+ background-color: var(
46
+ --osdk-cbac-marking-button-bg-selected-hover,
47
+ var(--osdk-cbac-marking-button-bg-selected)
48
+ );
49
+ filter: brightness(0.85);
50
+ }
51
+
52
+ .implied {
53
+ color: var(--osdk-cbac-marking-button-color-implied);
54
+ background-color: var(--osdk-cbac-marking-button-bg-implied);
55
+ border-color: var(--osdk-cbac-marking-button-border-color-implied);
56
+ }
57
+
58
+ .disallowed,
59
+ .impliedDisallowed {
60
+ color: var(--osdk-cbac-marking-button-color-disallowed);
61
+ background-color: var(--osdk-cbac-marking-button-bg-disallowed);
62
+ border-color: var(--osdk-cbac-marking-button-border-color-disallowed);
63
+ cursor: not-allowed;
64
+ opacity: var(--osdk-cbac-disabled-opacity);
65
+ text-decoration: line-through;
66
+ }
67
+
68
+ .markingButton:focus-visible {
69
+ outline: var(--osdk-focus-outline);
70
+ outline-offset: var(--osdk-focus-visible-outline-offset);
71
+ }
72
+
73
+ .markingButton:disabled {
74
+ cursor: not-allowed;
75
+ }
76
+
77
+ .tooltip {
78
+ z-index: var(--osdk-cbac-marking-tooltip-z-index);
79
+ max-width: var(--osdk-cbac-marking-tooltip-max-width);
80
+ padding: var(--osdk-cbac-marking-tooltip-padding);
81
+ background-color: var(--osdk-tooltip-bg);
82
+ border: 1px solid var(--osdk-tooltip-border-color);
83
+ border-radius: var(--osdk-surface-border-radius);
84
+ box-shadow: var(--osdk-tooltip-shadow);
85
+ font-size: var(--osdk-cbac-marking-tooltip-font-size);
86
+ line-height: 1.4;
87
+ }
88
+
89
+ .tooltipTitle {
90
+ margin: 0;
91
+ font-weight: var(--osdk-typography-weight-bold);
92
+ color: var(--osdk-typography-color-default-rest);
93
+ }
94
+
95
+ .tooltipDescription {
96
+ margin: calc(var(--osdk-surface-spacing) * 0.5) 0 0;
97
+ color: var(--osdk-typography-color-muted);
98
+ }
99
+
100
+ .tooltipHint {
101
+ margin: calc(var(--osdk-surface-spacing) * 0.5) 0 0;
102
+ font-style: italic;
103
+ color: var(--osdk-typography-color-muted);
104
+ }
@@ -0,0 +1,14 @@
1
+ // CSS Module proxy for MarkingButton.module.css
2
+ const styles = {
3
+ "markingButton": "MarkingButton-module__markingButton___Ra7r3hu1",
4
+ "disallowed": "MarkingButton-module__disallowed___gqq-bTvz",
5
+ "impliedDisallowed": "MarkingButton-module__impliedDisallowed___cpzuUIxC",
6
+ "selected": "MarkingButton-module__selected___HC8AEwJx",
7
+ "implied": "MarkingButton-module__implied___dIs7pIKM",
8
+ "tooltip": "MarkingButton-module__tooltip___ry4qh1Hy",
9
+ "tooltipTitle": "MarkingButton-module__tooltipTitle___i0pEeK3a",
10
+ "tooltipDescription": "MarkingButton-module__tooltipDescription___IWc-RpKb",
11
+ "tooltipHint": "MarkingButton-module__tooltipHint___aduxbl1-"
12
+ };
13
+
14
+ export default styles;
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import classnames from "classnames";
18
+ import React from "react";
19
+ import { BaseCbacBanner } from "./BaseCbacBanner.js";
20
+ import styles from "./MaxClassificationField.module.css.js";
21
+ export function MaxClassificationField({
22
+ classificationString,
23
+ textColor,
24
+ backgroundColors,
25
+ helperText,
26
+ className
27
+ }) {
28
+ return /*#__PURE__*/React.createElement("div", {
29
+ className: classnames(styles.container, className)
30
+ }, /*#__PURE__*/React.createElement("p", {
31
+ className: styles.label
32
+ }, "Maximum allowed classification"), /*#__PURE__*/React.createElement("div", {
33
+ className: styles.bannerWrapper
34
+ }, /*#__PURE__*/React.createElement(BaseCbacBanner, {
35
+ classificationString: classificationString,
36
+ textColor: textColor,
37
+ backgroundColors: backgroundColors
38
+ })), helperText != null && /*#__PURE__*/React.createElement("p", {
39
+ className: styles.helperText
40
+ }, helperText));
41
+ }
42
+ //# sourceMappingURL=MaxClassificationField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MaxClassificationField.js","names":["classnames","React","BaseCbacBanner","styles","MaxClassificationField","classificationString","textColor","backgroundColors","helperText","className","createElement","container","label","bannerWrapper"],"sources":["MaxClassificationField.tsx"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport classnames from \"classnames\";\nimport React from \"react\";\nimport { BaseCbacBanner } from \"./BaseCbacBanner.js\";\nimport styles from \"./MaxClassificationField.module.css\";\n\nexport interface MaxClassificationFieldProps {\n classificationString: string;\n textColor: string;\n backgroundColors: string[];\n helperText?: string;\n className?: string;\n}\n\nexport function MaxClassificationField({\n classificationString,\n textColor,\n backgroundColors,\n helperText,\n className,\n}: MaxClassificationFieldProps): React.ReactElement {\n return (\n <div className={classnames(styles.container, className)}>\n <p className={styles.label}>Maximum allowed classification</p>\n <div className={styles.bannerWrapper}>\n <BaseCbacBanner\n classificationString={classificationString}\n textColor={textColor}\n backgroundColors={backgroundColors}\n />\n </div>\n {helperText != null && <p className={styles.helperText}>{helperText}</p>}\n </div>\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,qBAAqB;AACpD,OAAOC,MAAM,MAAM,qCAAqC;AAUxD,OAAO,SAASC,sBAAsBA,CAAC;EACrCC,oBAAoB;EACpBC,SAAS;EACTC,gBAAgB;EAChBC,UAAU;EACVC;AAC2B,CAAC,EAAsB;EAClD,oBACER,KAAA,CAAAS,aAAA;IAAKD,SAAS,EAAET,UAAU,CAACG,MAAM,CAACQ,SAAS,EAAEF,SAAS;EAAE,gBACtDR,KAAA,CAAAS,aAAA;IAAGD,SAAS,EAAEN,MAAM,CAACS;EAAM,GAAC,gCAAiC,CAAC,eAC9DX,KAAA,CAAAS,aAAA;IAAKD,SAAS,EAAEN,MAAM,CAACU;EAAc,gBACnCZ,KAAA,CAAAS,aAAA,CAACR,cAAc;IACbG,oBAAoB,EAAEA,oBAAqB;IAC3CC,SAAS,EAAEA,SAAU;IACrBC,gBAAgB,EAAEA;EAAiB,CACpC,CACE,CAAC,EACLC,UAAU,IAAI,IAAI,iBAAIP,KAAA,CAAAS,aAAA;IAAGD,SAAS,EAAEN,MAAM,CAACK;EAAW,GAAEA,UAAc,CACpE,CAAC;AAEV","ignoreList":[]}