@osdk/cbac-components 0.1.0-beta.3 → 0.1.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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/cbac-picker/utils/selectionLogic.ts"],"names":[],"mappings":";;;AAgBO,SAAS,aAAA,CAAc,SAAW,EAAA,gBAAA,EAAkB,UAAY,EAAA;AACrE,EAAM,MAAA,UAAA,GAAa,gBAAiB,CAAA,QAAA,CAAS,SAAS,CAAA;AACtD,EAAI,IAAA,UAAA;AACJ,EAAA,KAAA,MAAW,SAAS,UAAY,EAAA;AAC9B,IAAW,KAAA,MAAA,OAAA,IAAW,MAAM,QAAU,EAAA;AACpC,MAAI,IAAA,OAAA,CAAQ,OAAO,SAAW,EAAA;AAC5B,QAAa,UAAA,GAAA,KAAA;AACb,QAAA;AAAA;AACF;AAEF,IAAA,IAAI,eAAe,MAAW,EAAA;AAC5B,MAAA;AAAA;AACF;AAEF,EAAA,IAAI,eAAe,MAAW,EAAA;AAC5B,IAAO,OAAA,gBAAA;AAAA;AAET,EAAA,IAAI,UAAY,EAAA;AACd,IAAA,OAAO,gBAAiB,CAAA,MAAA,CAAO,CAAM,EAAA,KAAA,EAAA,KAAO,SAAS,CAAA;AAAA;AAKvD,EAAI,IAAA,UAAA,CAAW,QAAS,CAAA,YAAA,KAAiB,aAAe,EAAA;AACtD,IAAM,MAAA,sBAAA,GAAyB,IAAI,GAAI,CAAA,UAAA,CAAW,SAAS,GAAI,CAAA,CAAA,CAAA,KAAK,CAAE,CAAA,EAAE,CAAC,CAAA;AACzE,IAAM,MAAA,mBAAA,GAAsB,iBAAiB,MAAO,CAAA,CAAA,EAAA,KAAM,CAAC,sBAAuB,CAAA,GAAA,CAAI,EAAE,CAAC,CAAA;AACzF,IAAO,OAAA,CAAC,GAAG,mBAAA,EAAqB,SAAS,CAAA;AAAA;AAE3C,EAAO,OAAA,CAAC,GAAG,gBAAA,EAAkB,SA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,CAAQ,UAAU,CAAA;AAC5D,IAAA,IAAI,aAAa,MAAW,EAAA;AAC1B,MAAA,QAAA,CAAS,KAAK,OAAO,CAAA;AAAA,KAChB,MAAA;AACL,MAAA,oBAAA,CAAqB,GAAI,CAAA,OAAA,CAAQ,UAAY,EAAA,CAAC,OAAO,CAAC,CAAA;AAAA;AACxD;AAEF,EAAA,MAAM,SAAS,EAAC;AAChB,EAAA,KAAA,MAAW,YAAY,UAAY,EAAA;AACjC,IAAA,MAAM,gBAAmB,GAAA,oBAAA,CAAqB,GAAI,CAAA,QAAA,CAAS,EAAE,CAAA;AAC7D,IAAA,IAAI,gBAAqB,KAAA,MAAA,IAAa,gBAAiB,CAAA,MAAA,GAAS,CAAG,EAAA;AACjE,MAAA,MAAA,CAAO,IAAK,CAAA;AAAA,QACV,QAAA;AAAA,QACA,QAAU,EAAA;AAAA,OACX,CAAA;AAAA;AACH;AAEF,EAAO,OAAA,MAAA;AACT","file":"experimental.cjs","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\nexport function toggleMarking(markingId, currentSelection, categories) {\n const isSelected = currentSelection.includes(markingId);\n let ownerGroup;\n for (const group of categories) {\n for (const marking of group.markings) {\n if (marking.id === markingId) {\n ownerGroup = group;\n break;\n }\n }\n if (ownerGroup !== undefined) {\n break;\n }\n }\n if (ownerGroup === undefined) {\n return currentSelection;\n }\n if (isSelected) {\n return currentSelection.filter(id => id !== markingId);\n }\n\n // Disjunctive categories allow only one marking selected at a time (radio-style).\n // Conjunctive categories allow multiple markings (checkbox-style).\n if (ownerGroup.category.categoryType === \"DISJUNCTIVE\") {\n const sameCategoryMarkingIds = new Set(ownerGroup.markings.map(m => m.id));\n const withoutSameCategory = currentSelection.filter(id => !sameCategoryMarkingIds.has(id));\n return [...withoutSameCategory, markingId];\n }\n return [...currentSelection, markingId];\n}\nexport function computeMarkingStates(selectedIds, impliedIds, disallowedIds) {\n const states = new Map();\n const selectedSet = new Set(selectedIds);\n const impliedSet = new Set(impliedIds);\n const disallowedSet = new Set(disallowedIds);\n const allIds = new Set([...selectedIds, ...impliedIds, ...disallowedIds]);\n for (const id of allIds) {\n const isImplied = impliedSet.has(id);\n const isDisallowed = disallowedSet.has(id);\n const isSelected = selectedSet.has(id);\n if (isSelected) {\n states.set(id, \"SELECTED\");\n } else if (isImplied && isDisallowed) {\n states.set(id, \"IMPLIED_DISALLOWED\");\n } else if (isImplied) {\n states.set(id, \"IMPLIED\");\n } else if (isDisallowed) {\n states.set(id, \"DISALLOWED\");\n }\n }\n return states;\n}\nexport function groupMarkingsByCategory(markings, categories) {\n const markingsByCategoryId = new Map();\n for (const marking of markings) {\n const existing = markingsByCategoryId.get(marking.categoryId);\n if (existing !== undefined) {\n existing.push(marking);\n } else {\n markingsByCategoryId.set(marking.categoryId, [marking]);\n }\n }\n const groups = [];\n for (const category of categories) {\n const categoryMarkings = markingsByCategoryId.get(category.id);\n if (categoryMarkings !== undefined && categoryMarkings.length > 0) {\n groups.push({\n category,\n markings: categoryMarkings\n });\n }\n }\n return groups;\n}"]}
1
+ {"version":3,"sources":["../../../src/cbac-picker/utils/cbacPickerUtils.ts","../../../src/cbac-picker/base/BaseCbacBanner.module.css","../../../src/cbac-picker/base/BaseCbacBanner.tsx","../../../src/cbac-picker/base/BaseCbacPicker.module.css","../../../src/cbac-picker/base/CategoryMarkingGroup.module.css","../../../src/cbac-picker/base/MarkingButton.module.css","../../../src/cbac-picker/base/selectionStateHelpers.ts","../../../src/cbac-picker/base/MarkingButton.tsx","../../../src/cbac-picker/base/OverflowButton.module.css","../../../src/cbac-picker/base/OverflowItem.module.css","../../../src/cbac-picker/base/OverflowItem.tsx","../../../src/cbac-picker/base/OverflowButton.tsx","../../../src/cbac-picker/base/CategoryMarkingGroup.tsx","../../../src/cbac-picker/base/InfoBanner.module.css","../../../src/cbac-picker/base/InfoBanner.tsx","../../../src/cbac-picker/base/ValidationWarning.module.css","../../../src/cbac-picker/base/ValidationWarning.tsx","../../../src/cbac-picker/base/BaseCbacPicker.tsx","../../../src/cbac-picker/utils/selectionLogic.ts","../../../src/cbac-picker/useCbacPickerState.ts","../../../src/cbac-picker/CbacPicker.tsx","../../../src/cbac-picker/base/CbacPickerDialogFooter.module.css","../../../src/cbac-picker/base/CbacPickerDialogFooter.tsx","../../../src/cbac-picker/base/BaseCbacPickerDialog.tsx","../../../src/cbac-picker/CbacPickerDialog.tsx"],"names":["React","Button","Cross","classnames","OverflowItem","Popover","CategoryMarkingGroup","MarkingButtonItem","InfoSign","WarningSign","isImplied","isDisallowed","useMarkingCategories","useMarkings","useCbacBanner","useCbacMarkingRestrictions","ActionButton","Tooltip","Dialog"],"mappings":";;;;;;;;;;;;;;;;;;AAmBO,IAAM,cAAc,EAAC;AACrB,SAAS,qBAAqB,gBAAkB,EAAA;AACrD,EAAO,OAAA,gBAAA,CAAiB,MAAS,GAAA,CAAA,GAAI,CAA6B,0BAAA,EAAA,gBAAA,CAAiB,IAAK,CAAA,IAAI,CAAC,CAAA,CAAA,CAAA,GAAM,gBAAiB,CAAA,CAAC,CAAK,IAAA,aAAA;AAC5H;AAQO,SAAS,qBAAA,CAAsB,gBAAgB,qBAAuB,EAAA;AAC3E,EAAA,MAAM,kBAAkB,IAAI,GAAA,CAAI,cAAe,CAAA,OAAA,CAAQ,OAAK,CAAE,CAAA,QAAQ,CAAE,CAAA,GAAA,CAAI,OAAK,CAAC,CAAA,CAAE,IAAI,CAAE,CAAA,IAAI,CAAC,CAAC,CAAA;AAChG,EAAO,OAAA,qBAAA,CAAsB,IAAI,CAAQ,GAAA,M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,MAAA,aAAA,GAAgBA,uBAAM,CAAA,WAAA,CAAY,MAAM;AAC5C,IAAA,cAAA,CAAe,WAAW,CAAA;AAAA,GAC5B,EAAG,EAAE,CAAA;AACL,EAAA,MAAM,kBAAqB,GAAA,iBAAA,KAAsB,MAAa,IAAA,iBAAA,CAAkB,MAAS,GAAA,CAAA;AACzF,EAAM,MAAA,oBAAA,GAAuBA,uBAAM,CAAA,OAAA,CAAQ,MAAM;AAC/C,IAAA,IAAI,OAAS,EAAA;AACX,MAAO,OAAA,MAAA;AAAA;AAET,IAAI,IAAA,qBAAA,CAAsB,SAAS,CAAG,EAAA;AACpC,MAAO,OAAA,yDAAA;AAAA;AAET,IAAO,OAAA,4BAAA;AAAA,GACN,EAAA,CAAC,OAAS,EAAA,qBAAA,CAAsB,MAAM,CAAC,CAAA;AAC1C,EAAoB,uBAAAA,uBAAM,CAAA,aAAA,CAAc,oBAAsB,EAAA;AAAA,IAC5D,MAAA;AAAA,IACA,YAAA;AAAA,IACA,SAAW,EAAA,aAAA;AAAA,IACX,QAAU,EAAA,YAAA;AAAA,IACV,KAAA,EAAO,qBAAqB,qBAAwB,GAAA,oBAAA;AAAA,IACpD,UAAY,EAAA,cAAA;AAAA,IACZ,aAAA;AAAA,IACA,MAAA;AAAA,IACA,eAAiB,EAAA,mBAAA;AAAA,IACjB,eAAiB,EAAA,aAAA;AAAA,IACjB,qBAAA;AAAA,IACA,OAAA;AAAA,IACA,oBAAA;AAAA,IACA,SAAA;AAAA,IACA;AAAA,GACD,CAAA;AACH","file":"experimental.cjs","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\nconst UNMARKED_BACKGROUND_COLORS = [\"#8F99A8\"];\nconst UNMARKED_TEXT_COLOR = \"#FFFFFF\";\nconst UNMARKED_CLASSIFICATION_STRING = \"UNMARKED\";\nexport const EMPTY_ARRAY = [];\nexport function backgroundFromColors(backgroundColors) {\n return backgroundColors.length > 1 ? `linear-gradient(to right, ${backgroundColors.join(\", \")})` : backgroundColors[0] ?? \"transparent\";\n}\nexport function resolveBannerDisplay(banner) {\n return {\n classificationString: banner?.classificationString ?? UNMARKED_CLASSIFICATION_STRING,\n textColor: banner?.textColor ?? UNMARKED_TEXT_COLOR,\n backgroundColors: banner?.backgroundColors ?? UNMARKED_BACKGROUND_COLORS\n };\n}\nexport function resolveRequiredGroups(categoryGroups, requiredMarkingGroups) {\n const markingIdToName = new Map(categoryGroups.flatMap(g => g.markings).map(m => [m.id, m.name]));\n return requiredMarkingGroups.map(ids => ({\n markingNames: ids.map(id => markingIdToName.get(id) ?? id)\n }));\n}","/*\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\n.bannerRow {\n display: flex;\n align-items: center;\n border-radius: var(--osdk-cbac-banner-border-radius);\n width: 100%;\n box-sizing: border-box;\n background: var(--osdk-cbac-banner-bg);\n color: var(--osdk-cbac-banner-color);\n}\n\n.banner {\n flex: 1;\n padding: var(--osdk-cbac-banner-padding);\n font-size: var(--osdk-cbac-banner-font-size);\n font-weight: var(--osdk-cbac-banner-font-weight);\n text-align: var(--osdk-cbac-banner-text-align);\n font-family: inherit;\n border: none;\n background: transparent;\n color: inherit;\n}\n\n.clickable {\n cursor: pointer;\n}\n\n.clickable:focus-visible {\n outline: var(--osdk-focus-outline);\n outline-offset: var(--osdk-focus-visible-outline-offset);\n}\n\n.clickable:hover {\n filter: brightness(0.9);\n text-decoration: underline;\n}\n\n.dismissButton {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: calc(var(--osdk-surface-spacing) * 1);\n margin-right: calc(var(--osdk-surface-spacing) * 1);\n background: transparent;\n border: none;\n color: inherit;\n cursor: pointer;\n border-radius: var(--osdk-surface-border-radius);\n flex-shrink: 0;\n}\n\n.dismissButton:hover {\n filter: brightness(0.8);\n}\n\n.dismissButton:focus-visible {\n outline: var(--osdk-focus-outline);\n outline-offset: var(--osdk-focus-visible-outline-offset);\n}\n","/*\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 { Cross } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport React from \"react\";\nimport { backgroundFromColors } from \"../utils/cbacPickerUtils.js\";\nimport styles from \"./BaseCbacBanner.module.css\";\nexport function BaseCbacBanner({\n classificationString,\n textColor,\n backgroundColors,\n onClick,\n onDismiss,\n className\n}) {\n const bannerStyle = React.useMemo(() => ({\n \"--osdk-cbac-banner-bg\": backgroundFromColors(backgroundColors),\n \"--osdk-cbac-banner-color\": textColor\n }), [textColor, backgroundColors]);\n const handleDismiss = React.useCallback(e => {\n e.stopPropagation();\n onDismiss?.();\n }, [onDismiss]);\n const dismissButton = onDismiss != null ? /*#__PURE__*/React.createElement(Button, {\n className: styles.dismissButton,\n onClick: handleDismiss,\n \"aria-label\": \"Clear classification\"\n }, /*#__PURE__*/React.createElement(Cross, {\n size: 12,\n color: \"currentColor\"\n })) : null;\n if (onClick != null) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames(styles.bannerRow, className),\n style: bannerStyle\n }, /*#__PURE__*/React.createElement(Button, {\n className: classnames(styles.banner, styles.clickable),\n onClick: onClick,\n \"aria-label\": \"Edit classification\"\n }, classificationString), dismissButton);\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames(styles.bannerRow, className),\n style: bannerStyle\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: styles.banner\n }, classificationString), dismissButton);\n}","/*\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\n.picker {\n display: flex;\n flex-direction: column;\n gap: var(--osdk-cbac-picker-category-gap);\n padding: var(--osdk-cbac-picker-padding);\n}\n\n.categoriesContainer {\n display: flex;\n flex-direction: column;\n gap: var(--osdk-cbac-picker-category-gap);\n overflow-y: auto;\n}\n\n.innerBanner {\n border: 1px solid var(--osdk-cbac-banner-border-color);\n}\n\n.statusMessage {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: calc(var(--osdk-surface-spacing) * 5);\n color: var(--osdk-typography-color-muted);\n font-style: italic;\n}\n","/*\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\n.categoryGroup {\n display: flex;\n flex-direction: column;\n gap: var(--osdk-cbac-marking-button-gap);\n}\n\n.categoryName {\n font-size: var(--osdk-cbac-picker-category-title-font-size);\n font-weight: var(--osdk-cbac-picker-category-title-font-weight);\n color: var(--osdk-cbac-picker-category-title-color);\n letter-spacing: var(--osdk-cbac-picker-category-title-letter-spacing);\n margin: 0;\n}\n\n.markingGrid {\n display: grid;\n grid-template-columns: repeat(\n var(--osdk-cbac-picker-marking-grid-columns),\n 1fr\n );\n border-top: 1px solid var(--osdk-cbac-picker-marking-grid-border-color);\n border-left: 1px solid var(--osdk-cbac-picker-marking-grid-border-color);\n}\n\n.emptyCell {\n border-right: 1px solid var(--osdk-cbac-marking-button-border-color-default);\n border-bottom: 1px solid var(--osdk-cbac-marking-button-border-color-default);\n}\n","/*\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\n.markingButton {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: var(--osdk-cbac-marking-button-padding);\n border-radius: var(--osdk-cbac-marking-button-border-radius);\n font-size: var(--osdk-cbac-marking-button-font-size);\n font-family: inherit;\n cursor: pointer;\n border: none;\n border-right: 1px solid var(--osdk-cbac-marking-button-border-color-default);\n border-bottom: 1px solid var(--osdk-cbac-marking-button-border-color-default);\n color: var(--osdk-cbac-marking-button-color-default);\n background: var(--osdk-cbac-marking-button-bg-default);\n transition: background var(--osdk-emphasis-transition-duration)\n var(--osdk-emphasis-ease-default),\n border-color var(--osdk-emphasis-transition-duration)\n var(--osdk-emphasis-ease-default),\n color var(--osdk-emphasis-transition-duration)\n var(--osdk-emphasis-ease-default);\n}\n\n.markingButton:hover:not(:disabled):not(.disallowed):not(.impliedDisallowed) {\n background: var(--osdk-surface-background-color-default-hover);\n}\n\n.selected {\n color: var(--osdk-cbac-marking-button-color-selected);\n background: var(--osdk-cbac-marking-button-bg-selected);\n border-color: var(--osdk-cbac-marking-button-border-color-selected);\n}\n\n.selected:hover:not(:disabled) {\n background: var(--osdk-intent-primary-hover);\n}\n\n.implied {\n color: var(--osdk-cbac-marking-button-color-implied);\n background: var(--osdk-cbac-marking-button-bg-implied);\n border-color: var(--osdk-cbac-marking-button-border-color-implied);\n}\n\n.disallowed,\n.impliedDisallowed {\n color: var(--osdk-cbac-marking-button-color-disallowed);\n background: var(--osdk-cbac-marking-button-bg-disallowed);\n border-color: var(--osdk-cbac-marking-button-border-color-disallowed);\n cursor: not-allowed;\n opacity: var(--osdk-cbac-disabled-opacity);\n}\n\n.markingButton:focus-visible {\n outline: var(--osdk-focus-outline);\n outline-offset: var(--osdk-focus-visible-outline-offset);\n}\n\n.markingButton:disabled {\n cursor: not-allowed;\n}\n","/*\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\nexport function isDisallowed(state) {\n return state === \"DISALLOWED\" || state === \"IMPLIED_DISALLOWED\";\n}\nexport function isImplied(state) {\n return state === \"IMPLIED\" || state === \"IMPLIED_DISALLOWED\";\n}\nexport function getDisplayLabel(label, state) {\n return isImplied(state) ? `(${label})` : label;\n}","/*\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 classnames from \"classnames\";\nimport React from \"react\";\nimport styles from \"./MarkingButton.module.css\";\nimport { getDisplayLabel, isDisallowed } from \"./selectionStateHelpers.js\";\nconst selectionStateClassMap = {\n SELECTED: styles.selected,\n IMPLIED: styles.implied,\n DISALLOWED: styles.disallowed,\n IMPLIED_DISALLOWED: styles.impliedDisallowed,\n NONE: undefined\n};\nexport function MarkingButton({\n label,\n selectionState,\n onToggle,\n disabled\n}) {\n return /*#__PURE__*/React.createElement(Button, {\n className: classnames(styles.markingButton, selectionStateClassMap[selectionState]),\n onClick: onToggle,\n disabled: disabled ?? isDisallowed(selectionState),\n \"aria-pressed\": selectionState === \"SELECTED\" || selectionState === \"IMPLIED\"\n }, getDisplayLabel(label, selectionState));\n}","/*\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\n.moreButton {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: var(--osdk-cbac-overflow-button-padding);\n font-size: var(--osdk-cbac-overflow-button-font-size);\n font-family: inherit;\n cursor: pointer;\n border: none;\n border-right: 1px solid var(--osdk-cbac-marking-button-border-color-default);\n border-bottom: 1px solid var(--osdk-cbac-marking-button-border-color-default);\n color: var(--osdk-cbac-marking-button-color-default);\n background: var(--osdk-cbac-marking-button-bg-default);\n font-weight: var(--osdk-typography-weight-bold);\n}\n\n.moreButton:hover {\n background: var(--osdk-surface-background-color-default-hover);\n}\n\n.moreButton:focus-visible {\n outline: var(--osdk-focus-outline);\n outline-offset: var(--osdk-focus-visible-outline-offset);\n}\n\n.moreButtonActive {\n color: var(--osdk-intent-primary-rest);\n}\n\n.overflowList {\n display: flex;\n flex-direction: column;\n max-height: var(--osdk-cbac-overflow-list-max-height);\n overflow-y: auto;\n padding: calc(var(--osdk-surface-spacing) * 0.5);\n background: var(--osdk-surface-background-color-default);\n border: 1px solid var(--osdk-surface-border-color-default);\n border-radius: var(--osdk-surface-border-radius);\n box-shadow: var(--osdk-surface-elevation-2);\n}\n","/*\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\n.overflowItem {\n display: flex;\n align-items: center;\n width: 100%;\n text-align: left;\n padding: var(--osdk-surface-spacing)\n calc(var(--osdk-surface-spacing) * 1.5);\n font-size: var(--osdk-cbac-overflow-button-font-size);\n font-family: inherit;\n cursor: pointer;\n border: none;\n border-radius: var(--osdk-surface-border-radius);\n color: var(--osdk-cbac-marking-button-color-default);\n background: transparent;\n}\n\n.overflowItem:hover:not(:disabled) {\n background: var(--osdk-surface-background-color-default-hover);\n}\n\n.overflowItem:focus-visible {\n outline: var(--osdk-focus-outline);\n outline-offset: var(--osdk-focus-visible-outline-offset);\n}\n\n.overflowItemSelected {\n color: var(--osdk-intent-primary-rest);\n font-weight: var(--osdk-typography-weight-bold);\n}\n\n.overflowItemDisabled {\n color: var(--osdk-cbac-marking-button-color-disallowed);\n cursor: not-allowed;\n opacity: var(--osdk-cbac-disabled-opacity);\n}\n","/*\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 classnames from \"classnames\";\nimport React from \"react\";\nimport styles from \"./OverflowItem.module.css\";\nimport { getDisplayLabel, isDisallowed, isImplied } from \"./selectionStateHelpers.js\";\nexport const OverflowItem = /*#__PURE__*/React.memo(function OverflowItem({\n id,\n label,\n selectionState,\n disabled,\n onToggle\n}) {\n const handleClick = React.useCallback(() => {\n onToggle(id);\n }, [onToggle, id]);\n const disallowed = isDisallowed(selectionState);\n const isSelected = selectionState === \"SELECTED\";\n const implied = isImplied(selectionState);\n return /*#__PURE__*/React.createElement(Button, {\n className: classnames(styles.overflowItem, (isSelected || implied) && styles.overflowItemSelected, disallowed && styles.overflowItemDisabled),\n onClick: handleClick,\n disabled: disabled ?? disallowed,\n \"aria-pressed\": isSelected || implied\n }, getDisplayLabel(label, selectionState));\n});","/*\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 { Popover } from \"@base-ui/react/popover\";\nimport classnames from \"classnames\";\nimport React from \"react\";\nimport styles from \"./OverflowButton.module.css\";\nimport { OverflowItem } from \"./OverflowItem.js\";\nexport function OverflowButton({\n overflowMarkings,\n hasActiveOverflow,\n onMarkingToggle\n}) {\n const [open, setOpen] = React.useState(false);\n return /*#__PURE__*/React.createElement(Popover.Root, {\n open: open,\n onOpenChange: setOpen\n }, /*#__PURE__*/React.createElement(Popover.Trigger, {\n render: /*#__PURE__*/React.createElement(Button, {\n className: classnames(styles.moreButton, hasActiveOverflow && styles.moreButtonActive)\n }, \"+\", overflowMarkings.length, \" more\")\n }), /*#__PURE__*/React.createElement(Popover.Portal, null, /*#__PURE__*/React.createElement(Popover.Positioner, {\n side: \"bottom\",\n align: \"start\"\n }, /*#__PURE__*/React.createElement(Popover.Popup, {\n className: styles.overflowList\n }, overflowMarkings.map(marking => /*#__PURE__*/React.createElement(OverflowItem, {\n key: marking.id,\n id: marking.id,\n label: marking.label,\n selectionState: marking.selectionState,\n disabled: marking.disabled,\n onToggle: onMarkingToggle\n }))))));\n}","/*\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 styles from \"./CategoryMarkingGroup.module.css\";\nimport { MarkingButton } from \"./MarkingButton.js\";\nimport { OverflowButton } from \"./OverflowButton.js\";\nimport { isImplied } from \"./selectionStateHelpers.js\";\nconst GRID_COLUMNS = 4;\nconst VISIBLE_ROWS = 3;\nconst DEFAULT_MARKING_STATE = \"NONE\";\nexport const CategoryMarkingGroup = /*#__PURE__*/React.memo(function CategoryMarkingGroup({\n categoryName,\n markings,\n markingStates,\n readOnly,\n onMarkingToggle\n}) {\n const headingId = React.useId();\n const resolvedMarkings = React.useMemo(() => markings.map(marking => ({\n id: marking.id,\n label: marking.name,\n selectionState: markingStates.get(marking.id) ?? DEFAULT_MARKING_STATE,\n disabled: readOnly\n })), [markings, markingStates, readOnly]);\n const maxVisible = GRID_COLUMNS * VISIBLE_ROWS;\n const hasOverflow = resolvedMarkings.length > maxVisible;\n const visibleMarkings = hasOverflow ? resolvedMarkings.slice(0, maxVisible - 1) : resolvedMarkings;\n const overflowMarkings = hasOverflow ? resolvedMarkings.slice(maxVisible - 1) : [];\n const gridItemCount = hasOverflow ? visibleMarkings.length + 1 : visibleMarkings.length;\n const emptyCellCount = (GRID_COLUMNS - gridItemCount % GRID_COLUMNS) % GRID_COLUMNS;\n const hasActiveOverflow = overflowMarkings.some(m => m.selectionState === \"SELECTED\" || isImplied(m.selectionState));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: styles.categoryGroup,\n role: \"group\",\n \"aria-labelledby\": headingId\n }, /*#__PURE__*/React.createElement(\"h3\", {\n id: headingId,\n className: styles.categoryName\n }, categoryName), /*#__PURE__*/React.createElement(\"div\", {\n className: styles.markingGrid\n }, visibleMarkings.map(marking => /*#__PURE__*/React.createElement(MarkingButtonItem, {\n key: marking.id,\n id: marking.id,\n label: marking.label,\n selectionState: marking.selectionState,\n disabled: marking.disabled,\n onToggle: onMarkingToggle\n })), hasOverflow && /*#__PURE__*/React.createElement(OverflowButton, {\n overflowMarkings: overflowMarkings,\n hasActiveOverflow: hasActiveOverflow,\n onMarkingToggle: onMarkingToggle\n }), Array.from({\n length: emptyCellCount\n }, (_, i) => /*#__PURE__*/React.createElement(\"div\", {\n key: `empty-${i}`,\n className: styles.emptyCell\n }))));\n});\nconst MarkingButtonItem = /*#__PURE__*/React.memo(function MarkingButtonItem({\n id,\n label,\n selectionState,\n disabled,\n onToggle\n}) {\n const handleToggle = React.useCallback(() => {\n onToggle(id);\n }, [onToggle, id]);\n return /*#__PURE__*/React.createElement(MarkingButton, {\n label: label,\n selectionState: selectionState,\n onToggle: handleToggle,\n disabled: disabled\n });\n});","/*\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\n.infoBanner {\n display: flex;\n align-items: center;\n gap: calc(var(--osdk-surface-spacing) * 1.5);\n padding: var(--osdk-cbac-info-banner-padding);\n background: var(--osdk-cbac-info-banner-bg);\n color: var(--osdk-cbac-info-banner-color);\n font-size: var(--osdk-cbac-info-banner-font-size);\n border-radius: var(--osdk-cbac-info-banner-border-radius);\n}\n\n.icon {\n flex-shrink: 0;\n}\n","/*\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\";\nexport function InfoBanner({\n message,\n className\n}) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames(styles.infoBanner, className)\n }, /*#__PURE__*/React.createElement(InfoSign, {\n className: styles.icon,\n size: 14\n }), /*#__PURE__*/React.createElement(\"span\", null, message));\n}","/*\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\n.validationWarning {\n display: flex;\n flex-direction: column;\n gap: calc(var(--osdk-surface-spacing) * 1.5);\n padding: var(--osdk-cbac-validation-warning-padding);\n background: var(--osdk-cbac-validation-warning-bg);\n color: var(--osdk-cbac-validation-warning-color);\n font-size: var(--osdk-cbac-validation-warning-font-size);\n border-radius: var(--osdk-cbac-validation-warning-border-radius);\n max-height: var(--osdk-cbac-validation-warning-max-height);\n overflow-y: auto;\n}\n\n.header {\n display: flex;\n align-items: center;\n gap: calc(var(--osdk-surface-spacing) * 1.5);\n}\n\n.icon {\n flex-shrink: 0;\n}\n\n.groupList {\n list-style: none;\n margin: 0;\n padding: 0;\n padding-left: calc(var(--osdk-surface-spacing) * 3);\n display: flex;\n flex-direction: column;\n gap: var(--osdk-surface-spacing);\n}\n\n.groupItem {\n display: flex;\n align-items: center;\n gap: var(--osdk-surface-spacing);\n flex-wrap: wrap;\n}\n\n.groupNumber {\n font-weight: var(--osdk-typography-weight-bold);\n flex-shrink: 0;\n}\n\n.chip {\n display: inline-flex;\n align-items: center;\n padding: 0 var(--osdk-surface-spacing);\n border: 1px solid var(--osdk-cbac-validation-warning-chip-border-color);\n border-radius: var(--osdk-surface-border-radius);\n background: var(--osdk-cbac-validation-warning-chip-bg);\n font-size: var(--osdk-cbac-validation-warning-font-size);\n color: var(--osdk-typography-color-default-rest);\n}\n","/*\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 { WarningSign } from \"@blueprintjs/icons\";\nimport classnames from \"classnames\";\nimport React from \"react\";\nimport styles from \"./ValidationWarning.module.css\";\nexport function ValidationWarning({\n requiredMarkingGroups,\n className\n}) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames(styles.validationWarning, className)\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.header\n }, /*#__PURE__*/React.createElement(WarningSign, {\n className: styles.icon,\n size: 14\n }), /*#__PURE__*/React.createElement(\"span\", null, \"To complete a valid classification, at least one marking from each of the following sets needs to be selected:\")), /*#__PURE__*/React.createElement(\"ol\", {\n className: styles.groupList\n }, requiredMarkingGroups.map((group, index) => /*#__PURE__*/React.createElement(\"li\", {\n key: group.markingNames.join(\",\"),\n className: styles.groupItem\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: styles.groupNumber\n }, index + 1, \".\"), group.markingNames.map(name => /*#__PURE__*/React.createElement(\"span\", {\n key: name,\n className: styles.chip\n }, name))))));\n}","/*\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 \"./BaseCbacPicker.module.css\";\nimport { CategoryMarkingGroup } from \"./CategoryMarkingGroup.js\";\nimport { InfoBanner } from \"./InfoBanner.js\";\nimport { ValidationWarning } from \"./ValidationWarning.js\";\nexport function BaseCbacPicker({\n categories,\n markingStates,\n banner,\n onMarkingToggle,\n onDismissBanner,\n showInfoBanner,\n requiredMarkingGroups,\n isValid,\n readOnly,\n isLoading,\n error,\n className\n}) {\n const showInitialLoading = isLoading === true && categories.length === 0;\n const showValidationWarning = isValid === false && requiredMarkingGroups != null && requiredMarkingGroups.length > 0;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classnames(styles.picker, className)\n }, showInfoBanner === true && /*#__PURE__*/React.createElement(InfoBanner, {\n message: \"Implied markings are (in parentheses).\"\n }), banner != null && /*#__PURE__*/React.createElement(BaseCbacBanner, {\n classificationString: banner.classificationString,\n textColor: banner.textColor,\n backgroundColors: banner.backgroundColors,\n onDismiss: onDismissBanner,\n className: styles.innerBanner\n }), error != null ? /*#__PURE__*/React.createElement(\"div\", {\n className: styles.statusMessage,\n role: \"alert\"\n }, error.message) : showInitialLoading ? /*#__PURE__*/React.createElement(\"div\", {\n className: styles.statusMessage,\n role: \"status\",\n \"aria-live\": \"polite\"\n }, \"Loading...\") : /*#__PURE__*/React.createElement(\"div\", {\n className: styles.categoriesContainer\n }, categories.map(group => /*#__PURE__*/React.createElement(CategoryMarkingGroup, {\n key: group.category.id,\n categoryName: group.category.name,\n markings: group.markings,\n markingStates: markingStates,\n readOnly: readOnly,\n onMarkingToggle: onMarkingToggle\n }))), showValidationWarning && /*#__PURE__*/React.createElement(ValidationWarning, {\n requiredMarkingGroups: requiredMarkingGroups\n }));\n}","/*\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\nexport function toggleMarking(markingId, currentSelection, categories) {\n const isSelected = currentSelection.includes(markingId);\n let ownerGroup;\n for (const group of categories) {\n for (const marking of group.markings) {\n if (marking.id === markingId) {\n ownerGroup = group;\n break;\n }\n }\n if (ownerGroup !== undefined) {\n break;\n }\n }\n if (ownerGroup === undefined) {\n return currentSelection;\n }\n if (isSelected) {\n return currentSelection.filter(id => id !== markingId);\n }\n\n // Disjunctive categories allow only one marking selected at a time (radio-style).\n // Conjunctive categories allow multiple markings (checkbox-style).\n if (ownerGroup.category.categoryType === \"DISJUNCTIVE\") {\n const sameCategoryMarkingIds = new Set(ownerGroup.markings.map(m => m.id));\n const withoutSameCategory = currentSelection.filter(id => !sameCategoryMarkingIds.has(id));\n return [...withoutSameCategory, markingId];\n }\n return [...currentSelection, markingId];\n}\nexport function computeMarkingStates(selectedIds, impliedIds, disallowedIds) {\n const states = new Map();\n const selectedSet = new Set(selectedIds);\n const impliedSet = new Set(impliedIds);\n const disallowedSet = new Set(disallowedIds);\n const allIds = new Set([...selectedIds, ...impliedIds, ...disallowedIds]);\n for (const id of allIds) {\n const isImplied = impliedSet.has(id);\n const isDisallowed = disallowedSet.has(id);\n const isSelected = selectedSet.has(id);\n if (isSelected) {\n states.set(id, \"SELECTED\");\n } else if (isImplied && isDisallowed) {\n states.set(id, \"IMPLIED_DISALLOWED\");\n } else if (isImplied) {\n states.set(id, \"IMPLIED\");\n } else if (isDisallowed) {\n states.set(id, \"DISALLOWED\");\n }\n }\n return states;\n}\nexport function groupMarkingsByCategory(markings, categories) {\n const markingsByCategoryId = new Map();\n for (const marking of markings) {\n const existing = markingsByCategoryId.get(marking.categoryId);\n if (existing !== undefined) {\n existing.push(marking);\n } else {\n markingsByCategoryId.set(marking.categoryId, [marking]);\n }\n }\n const groups = [];\n for (const category of categories) {\n const categoryMarkings = markingsByCategoryId.get(category.id);\n if (categoryMarkings !== undefined && categoryMarkings.length > 0) {\n groups.push({\n category,\n markings: categoryMarkings\n });\n }\n }\n return groups;\n}","/*\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 { useCbacBanner, useCbacMarkingRestrictions, useMarkingCategories, useMarkings } from \"@osdk/react/experimental/admin\";\nimport React from \"react\";\nimport { EMPTY_ARRAY, resolveRequiredGroups } from \"./utils/cbacPickerUtils.js\";\nimport { computeMarkingStates, groupMarkingsByCategory } from \"./utils/selectionLogic.js\";\nconst EMPTY_GROUPS = [];\nfunction useStableArray(arr) {\n const ref = React.useRef(arr);\n if (arr.length !== ref.current.length || arr.some((id, i) => id !== ref.current[i])) {\n ref.current = arr;\n }\n return ref.current;\n}\nexport function useCbacPickerState(selectedIds) {\n const stableSelectedIds = useStableArray(selectedIds);\n const {\n categories: rawCategories,\n isLoading: categoriesLoading,\n error: categoriesError\n } = useMarkingCategories();\n const {\n markings: rawMarkings,\n isLoading: markingsLoading,\n error: markingsError\n } = useMarkings();\n const {\n banner,\n isLoading: bannerLoading,\n error: bannerError\n } = useCbacBanner({\n markingIds: stableSelectedIds\n });\n const {\n restrictions,\n isLoading: restrictionsLoading,\n error: restrictionsError\n } = useCbacMarkingRestrictions({\n markingIds: stableSelectedIds\n });\n const impliedMarkingIds = restrictions?.impliedMarkings ?? EMPTY_ARRAY;\n const disallowedMarkingIds = restrictions?.disallowedMarkings ?? EMPTY_ARRAY;\n const requiredMarkingGroups = restrictions?.requiredMarkings ?? EMPTY_GROUPS;\n const isValid = restrictions?.isValid ?? true;\n const isLoading = categoriesLoading || markingsLoading || restrictionsLoading || bannerLoading;\n const error = React.useMemo(() => {\n const errors = [categoriesError, markingsError, restrictionsError, bannerError].filter(e => e != null);\n if (errors.length > 1) {\n return new AggregateError(errors, errors.map(e => e.message).join(\"; \"));\n }\n return errors[0];\n }, [categoriesError, markingsError, restrictionsError, bannerError]);\n const categoryGroups = React.useMemo(() => {\n if (rawCategories === undefined || rawMarkings === undefined) {\n return [];\n }\n return groupMarkingsByCategory(rawMarkings, rawCategories);\n }, [rawMarkings, rawCategories]);\n const markingStates = React.useMemo(() => computeMarkingStates(stableSelectedIds, impliedMarkingIds, disallowedMarkingIds), [stableSelectedIds, impliedMarkingIds, disallowedMarkingIds]);\n const resolvedRequiredGroups = React.useMemo(() => resolveRequiredGroups(categoryGroups, requiredMarkingGroups), [categoryGroups, requiredMarkingGroups]);\n return React.useMemo(() => ({\n categoryGroups,\n markingStates,\n banner,\n requiredMarkingGroups: resolvedRequiredGroups,\n isValid,\n isLoading,\n error\n }), [categoryGroups, markingStates, banner, resolvedRequiredGroups, isValid, isLoading, error]);\n}","/*\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 { BaseCbacPicker } from \"./base/BaseCbacPicker.js\";\nimport { useCbacPickerState } from \"./useCbacPickerState.js\";\nimport { EMPTY_ARRAY } from \"./utils/cbacPickerUtils.js\";\nimport { toggleMarking } from \"./utils/selectionLogic.js\";\nexport function CbacPicker({\n initialMarkingIds,\n onChange,\n readOnly,\n className\n}) {\n const [selectedIds, setSelectedIds] = React.useState(initialMarkingIds ?? EMPTY_ARRAY);\n\n // Reset local state when initialMarkingIds changes (e.g. external update)\n const [prevInitialIds, setPrevInitialIds] = React.useState(initialMarkingIds);\n if (initialMarkingIds !== prevInitialIds) {\n setPrevInitialIds(initialMarkingIds);\n setSelectedIds(initialMarkingIds ?? EMPTY_ARRAY);\n }\n const {\n categoryGroups,\n markingStates,\n banner,\n requiredMarkingGroups,\n isValid,\n isLoading,\n error\n } = useCbacPickerState(selectedIds);\n const handleMarkingToggle = React.useCallback(markingId => {\n if (readOnly) {\n return;\n }\n const newSelection = toggleMarking(markingId, selectedIds, categoryGroups);\n setSelectedIds(newSelection);\n onChange(newSelection);\n }, [readOnly, selectedIds, categoryGroups, onChange]);\n const handleDismiss = React.useCallback(() => {\n setSelectedIds(EMPTY_ARRAY);\n onChange(EMPTY_ARRAY);\n }, [onChange]);\n return /*#__PURE__*/React.createElement(BaseCbacPicker, {\n categories: categoryGroups,\n markingStates: markingStates,\n banner: banner,\n onMarkingToggle: handleMarkingToggle,\n onDismissBanner: handleDismiss,\n requiredMarkingGroups: requiredMarkingGroups,\n isValid: isValid,\n readOnly: readOnly,\n isLoading: isLoading,\n error: error,\n className: className\n });\n}","/*\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\n.tooltipTriggerWrapper {\n display: contents;\n}\n","/*\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 { ActionButton, Tooltip } from \"@osdk/react-components/primitives\";\nimport React from \"react\";\nimport styles from \"./CbacPickerDialogFooter.module.css\";\nexport function CbacPickerDialogFooter({\n onCancel,\n onConfirm,\n submitDisabledReason\n}) {\n const isSubmitDisabled = submitDisabledReason != null;\n const submitButton = /*#__PURE__*/React.createElement(ActionButton, {\n variant: \"primary\",\n onClick: onConfirm,\n disabled: isSubmitDisabled\n }, \"Set classification\");\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ActionButton, {\n variant: \"secondary\",\n onClick: onCancel\n }, \"Cancel\"), isSubmitDisabled ? /*#__PURE__*/React.createElement(Tooltip.Root, null, /*#__PURE__*/React.createElement(Tooltip.Trigger, {\n render: /*#__PURE__*/React.createElement(\"span\", {\n className: styles.tooltipTriggerWrapper\n })\n }, submitButton), /*#__PURE__*/React.createElement(Tooltip.Portal, null, /*#__PURE__*/React.createElement(Tooltip.Positioner, {\n side: \"top\"\n }, /*#__PURE__*/React.createElement(Tooltip.Popup, null, submitDisabledReason, /*#__PURE__*/React.createElement(Tooltip.Arrow, null))))) : submitButton);\n}","function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\n/*\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 { Dialog } from \"@osdk/react-components/primitives\";\nimport React from \"react\";\nimport { BaseCbacPicker } from \"./BaseCbacPicker.js\";\nimport { CbacPickerDialogFooter } from \"./CbacPickerDialogFooter.js\";\nexport function BaseCbacPickerDialog({\n isOpen,\n onOpenChange,\n onConfirm,\n onCancel,\n title = \"Select classification\",\n submitDisabledReason,\n ...pickerProps\n}) {\n const handleOpenChange = React.useCallback(open => {\n if (!open) {\n onCancel();\n }\n onOpenChange(open);\n }, [onCancel, onOpenChange]);\n return /*#__PURE__*/React.createElement(Dialog, {\n isOpen: isOpen,\n onOpenChange: handleOpenChange,\n title: title,\n footer: /*#__PURE__*/React.createElement(CbacPickerDialogFooter, {\n onCancel: onCancel,\n onConfirm: onConfirm,\n submitDisabledReason: submitDisabledReason\n }),\n disablePointerDismissal: true\n }, /*#__PURE__*/React.createElement(BaseCbacPicker, _extends({}, pickerProps, {\n showInfoBanner: pickerProps.showInfoBanner ?? true\n })));\n}","/*\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 { BaseCbacPickerDialog } from \"./base/BaseCbacPickerDialog.js\";\nimport { useCbacPickerState } from \"./useCbacPickerState.js\";\nimport { EMPTY_ARRAY } from \"./utils/cbacPickerUtils.js\";\nimport { toggleMarking } from \"./utils/selectionLogic.js\";\nexport function CbacPickerDialog({\n isOpen,\n onOpenChange,\n onConfirm,\n initialMarkingIds\n}) {\n const [selectedIds, setSelectedIds] = React.useState(initialMarkingIds ?? EMPTY_ARRAY);\n\n // Reset local state when initialMarkingIds changes (e.g. external update)\n const [prevInitialIds, setPrevInitialIds] = React.useState(initialMarkingIds);\n if (initialMarkingIds !== prevInitialIds) {\n setPrevInitialIds(initialMarkingIds);\n setSelectedIds(initialMarkingIds ?? EMPTY_ARRAY);\n }\n const {\n categoryGroups,\n markingStates,\n banner,\n requiredMarkingGroups,\n isValid,\n isLoading,\n error\n } = useCbacPickerState(selectedIds);\n const handleMarkingToggle = React.useCallback(markingId => {\n setSelectedIds(prev => toggleMarking(markingId, prev, categoryGroups));\n }, [categoryGroups]);\n\n // Parent controls dialog close on confirm (e.g. to show a loading state)\n const handleConfirm = React.useCallback(() => {\n onConfirm(selectedIds);\n }, [onConfirm, selectedIds]);\n const handleCancel = React.useCallback(() => {\n setSelectedIds(initialMarkingIds ?? EMPTY_ARRAY);\n onOpenChange(false);\n }, [initialMarkingIds, onOpenChange]);\n const handleDismiss = React.useCallback(() => {\n setSelectedIds(EMPTY_ARRAY);\n }, []);\n const hasInitialMarkings = initialMarkingIds !== undefined && initialMarkingIds.length > 0;\n const submitDisabledReason = React.useMemo(() => {\n if (isValid) {\n return undefined;\n }\n if (requiredMarkingGroups.length > 0) {\n return \"Selected markings do not include all required markings.\";\n }\n return \"Invalid marking selection.\";\n }, [isValid, requiredMarkingGroups.length]);\n return /*#__PURE__*/React.createElement(BaseCbacPickerDialog, {\n isOpen: isOpen,\n onOpenChange: onOpenChange,\n onConfirm: handleConfirm,\n onCancel: handleCancel,\n title: hasInitialMarkings ? \"Edit classification\" : \"Add classification\",\n categories: categoryGroups,\n markingStates: markingStates,\n banner: banner,\n onMarkingToggle: handleMarkingToggle,\n onDismissBanner: handleDismiss,\n requiredMarkingGroups: requiredMarkingGroups,\n isValid: isValid,\n submitDisabledReason: submitDisabledReason,\n isLoading: isLoading,\n error: error\n });\n}"]}
@@ -0,0 +1,297 @@
1
+ /* src/cbac-picker/base/BaseCbacBanner.module.css */
2
+ .bannerRow {
3
+ display: flex;
4
+ align-items: center;
5
+ border-radius: var(--osdk-cbac-banner-border-radius);
6
+ width: 100%;
7
+ box-sizing: border-box;
8
+ background: var(--osdk-cbac-banner-bg);
9
+ color: var(--osdk-cbac-banner-color);
10
+ }
11
+ .banner {
12
+ flex: 1;
13
+ padding: var(--osdk-cbac-banner-padding);
14
+ font-size: var(--osdk-cbac-banner-font-size);
15
+ font-weight: var(--osdk-cbac-banner-font-weight);
16
+ text-align: var(--osdk-cbac-banner-text-align);
17
+ font-family: inherit;
18
+ border: none;
19
+ background: transparent;
20
+ color: inherit;
21
+ }
22
+ .clickable {
23
+ cursor: pointer;
24
+ }
25
+ .clickable:focus-visible {
26
+ outline: var(--osdk-focus-outline);
27
+ outline-offset: var(--osdk-focus-visible-outline-offset);
28
+ }
29
+ .clickable:hover {
30
+ filter: brightness(0.9);
31
+ text-decoration: underline;
32
+ }
33
+ .dismissButton {
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ padding: calc(var(--osdk-surface-spacing) * 1);
38
+ margin-right: calc(var(--osdk-surface-spacing) * 1);
39
+ background: transparent;
40
+ border: none;
41
+ color: inherit;
42
+ cursor: pointer;
43
+ border-radius: var(--osdk-surface-border-radius);
44
+ flex-shrink: 0;
45
+ }
46
+ .dismissButton:hover {
47
+ filter: brightness(0.8);
48
+ }
49
+ .dismissButton:focus-visible {
50
+ outline: var(--osdk-focus-outline);
51
+ outline-offset: var(--osdk-focus-visible-outline-offset);
52
+ }
53
+
54
+ /* src/cbac-picker/base/BaseCbacPicker.module.css */
55
+ .picker {
56
+ display: flex;
57
+ flex-direction: column;
58
+ gap: var(--osdk-cbac-picker-category-gap);
59
+ padding: var(--osdk-cbac-picker-padding);
60
+ }
61
+ .categoriesContainer {
62
+ display: flex;
63
+ flex-direction: column;
64
+ gap: var(--osdk-cbac-picker-category-gap);
65
+ overflow-y: auto;
66
+ }
67
+ .innerBanner {
68
+ border: 1px solid var(--osdk-cbac-banner-border-color);
69
+ }
70
+ .statusMessage {
71
+ display: flex;
72
+ align-items: center;
73
+ justify-content: center;
74
+ padding: calc(var(--osdk-surface-spacing) * 5);
75
+ color: var(--osdk-typography-color-muted);
76
+ font-style: italic;
77
+ }
78
+
79
+ /* src/cbac-picker/base/CategoryMarkingGroup.module.css */
80
+ .categoryGroup {
81
+ display: flex;
82
+ flex-direction: column;
83
+ gap: var(--osdk-cbac-marking-button-gap);
84
+ }
85
+ .categoryName {
86
+ font-size: var(--osdk-cbac-picker-category-title-font-size);
87
+ font-weight: var(--osdk-cbac-picker-category-title-font-weight);
88
+ color: var(--osdk-cbac-picker-category-title-color);
89
+ letter-spacing: var(--osdk-cbac-picker-category-title-letter-spacing);
90
+ margin: 0;
91
+ }
92
+ .markingGrid {
93
+ display: grid;
94
+ grid-template-columns: repeat(var(--osdk-cbac-picker-marking-grid-columns), 1fr);
95
+ border-top: 1px solid var(--osdk-cbac-picker-marking-grid-border-color);
96
+ border-left: 1px solid var(--osdk-cbac-picker-marking-grid-border-color);
97
+ }
98
+ .emptyCell {
99
+ border-right: 1px solid var(--osdk-cbac-marking-button-border-color-default);
100
+ border-bottom: 1px solid var(--osdk-cbac-marking-button-border-color-default);
101
+ }
102
+
103
+ /* src/cbac-picker/base/MarkingButton.module.css */
104
+ .markingButton {
105
+ display: inline-flex;
106
+ align-items: center;
107
+ justify-content: center;
108
+ text-align: center;
109
+ padding: var(--osdk-cbac-marking-button-padding);
110
+ border-radius: var(--osdk-cbac-marking-button-border-radius);
111
+ font-size: var(--osdk-cbac-marking-button-font-size);
112
+ font-family: inherit;
113
+ cursor: pointer;
114
+ border: none;
115
+ border-right: 1px solid var(--osdk-cbac-marking-button-border-color-default);
116
+ border-bottom: 1px solid var(--osdk-cbac-marking-button-border-color-default);
117
+ color: var(--osdk-cbac-marking-button-color-default);
118
+ background: var(--osdk-cbac-marking-button-bg-default);
119
+ transition:
120
+ background var(--osdk-emphasis-transition-duration) var(--osdk-emphasis-ease-default),
121
+ border-color var(--osdk-emphasis-transition-duration) var(--osdk-emphasis-ease-default),
122
+ color var(--osdk-emphasis-transition-duration) var(--osdk-emphasis-ease-default);
123
+ }
124
+ .markingButton:hover:not(:disabled):not(.disallowed):not(.impliedDisallowed) {
125
+ background: var(--osdk-surface-background-color-default-hover);
126
+ }
127
+ .selected {
128
+ color: var(--osdk-cbac-marking-button-color-selected);
129
+ background: var(--osdk-cbac-marking-button-bg-selected);
130
+ border-color: var(--osdk-cbac-marking-button-border-color-selected);
131
+ }
132
+ .selected:hover:not(:disabled) {
133
+ background: var(--osdk-intent-primary-hover);
134
+ }
135
+ .implied {
136
+ color: var(--osdk-cbac-marking-button-color-implied);
137
+ background: var(--osdk-cbac-marking-button-bg-implied);
138
+ border-color: var(--osdk-cbac-marking-button-border-color-implied);
139
+ }
140
+ .disallowed,
141
+ .impliedDisallowed {
142
+ color: var(--osdk-cbac-marking-button-color-disallowed);
143
+ background: var(--osdk-cbac-marking-button-bg-disallowed);
144
+ border-color: var(--osdk-cbac-marking-button-border-color-disallowed);
145
+ cursor: not-allowed;
146
+ opacity: var(--osdk-cbac-disabled-opacity);
147
+ }
148
+ .markingButton:focus-visible {
149
+ outline: var(--osdk-focus-outline);
150
+ outline-offset: var(--osdk-focus-visible-outline-offset);
151
+ }
152
+ .markingButton:disabled {
153
+ cursor: not-allowed;
154
+ }
155
+
156
+ /* src/cbac-picker/base/OverflowButton.module.css */
157
+ .moreButton {
158
+ display: inline-flex;
159
+ align-items: center;
160
+ justify-content: center;
161
+ text-align: center;
162
+ padding: var(--osdk-cbac-overflow-button-padding);
163
+ font-size: var(--osdk-cbac-overflow-button-font-size);
164
+ font-family: inherit;
165
+ cursor: pointer;
166
+ border: none;
167
+ border-right: 1px solid var(--osdk-cbac-marking-button-border-color-default);
168
+ border-bottom: 1px solid var(--osdk-cbac-marking-button-border-color-default);
169
+ color: var(--osdk-cbac-marking-button-color-default);
170
+ background: var(--osdk-cbac-marking-button-bg-default);
171
+ font-weight: var(--osdk-typography-weight-bold);
172
+ }
173
+ .moreButton:hover {
174
+ background: var(--osdk-surface-background-color-default-hover);
175
+ }
176
+ .moreButton:focus-visible {
177
+ outline: var(--osdk-focus-outline);
178
+ outline-offset: var(--osdk-focus-visible-outline-offset);
179
+ }
180
+ .moreButtonActive {
181
+ color: var(--osdk-intent-primary-rest);
182
+ }
183
+ .overflowList {
184
+ display: flex;
185
+ flex-direction: column;
186
+ max-height: var(--osdk-cbac-overflow-list-max-height);
187
+ overflow-y: auto;
188
+ padding: calc(var(--osdk-surface-spacing) * 0.5);
189
+ background: var(--osdk-surface-background-color-default);
190
+ border: 1px solid var(--osdk-surface-border-color-default);
191
+ border-radius: var(--osdk-surface-border-radius);
192
+ box-shadow: var(--osdk-surface-elevation-2);
193
+ }
194
+
195
+ /* src/cbac-picker/base/OverflowItem.module.css */
196
+ .overflowItem {
197
+ display: flex;
198
+ align-items: center;
199
+ width: 100%;
200
+ text-align: left;
201
+ padding: var(--osdk-surface-spacing) calc(var(--osdk-surface-spacing) * 1.5);
202
+ font-size: var(--osdk-cbac-overflow-button-font-size);
203
+ font-family: inherit;
204
+ cursor: pointer;
205
+ border: none;
206
+ border-radius: var(--osdk-surface-border-radius);
207
+ color: var(--osdk-cbac-marking-button-color-default);
208
+ background: transparent;
209
+ }
210
+ .overflowItem:hover:not(:disabled) {
211
+ background: var(--osdk-surface-background-color-default-hover);
212
+ }
213
+ .overflowItem:focus-visible {
214
+ outline: var(--osdk-focus-outline);
215
+ outline-offset: var(--osdk-focus-visible-outline-offset);
216
+ }
217
+ .overflowItemSelected {
218
+ color: var(--osdk-intent-primary-rest);
219
+ font-weight: var(--osdk-typography-weight-bold);
220
+ }
221
+ .overflowItemDisabled {
222
+ color: var(--osdk-cbac-marking-button-color-disallowed);
223
+ cursor: not-allowed;
224
+ opacity: var(--osdk-cbac-disabled-opacity);
225
+ }
226
+
227
+ /* src/cbac-picker/base/InfoBanner.module.css */
228
+ .infoBanner {
229
+ display: flex;
230
+ align-items: center;
231
+ gap: calc(var(--osdk-surface-spacing) * 1.5);
232
+ padding: var(--osdk-cbac-info-banner-padding);
233
+ background: var(--osdk-cbac-info-banner-bg);
234
+ color: var(--osdk-cbac-info-banner-color);
235
+ font-size: var(--osdk-cbac-info-banner-font-size);
236
+ border-radius: var(--osdk-cbac-info-banner-border-radius);
237
+ }
238
+ .icon {
239
+ flex-shrink: 0;
240
+ }
241
+
242
+ /* src/cbac-picker/base/ValidationWarning.module.css */
243
+ .validationWarning {
244
+ display: flex;
245
+ flex-direction: column;
246
+ gap: calc(var(--osdk-surface-spacing) * 1.5);
247
+ padding: var(--osdk-cbac-validation-warning-padding);
248
+ background: var(--osdk-cbac-validation-warning-bg);
249
+ color: var(--osdk-cbac-validation-warning-color);
250
+ font-size: var(--osdk-cbac-validation-warning-font-size);
251
+ border-radius: var(--osdk-cbac-validation-warning-border-radius);
252
+ max-height: var(--osdk-cbac-validation-warning-max-height);
253
+ overflow-y: auto;
254
+ }
255
+ .header {
256
+ display: flex;
257
+ align-items: center;
258
+ gap: calc(var(--osdk-surface-spacing) * 1.5);
259
+ }
260
+ .icon {
261
+ flex-shrink: 0;
262
+ }
263
+ .groupList {
264
+ list-style: none;
265
+ margin: 0;
266
+ padding: 0;
267
+ padding-left: calc(var(--osdk-surface-spacing) * 3);
268
+ display: flex;
269
+ flex-direction: column;
270
+ gap: var(--osdk-surface-spacing);
271
+ }
272
+ .groupItem {
273
+ display: flex;
274
+ align-items: center;
275
+ gap: var(--osdk-surface-spacing);
276
+ flex-wrap: wrap;
277
+ }
278
+ .groupNumber {
279
+ font-weight: var(--osdk-typography-weight-bold);
280
+ flex-shrink: 0;
281
+ }
282
+ .chip {
283
+ display: inline-flex;
284
+ align-items: center;
285
+ padding: 0 var(--osdk-surface-spacing);
286
+ border: 1px solid var(--osdk-cbac-validation-warning-chip-border-color);
287
+ border-radius: var(--osdk-surface-border-radius);
288
+ background: var(--osdk-cbac-validation-warning-chip-bg);
289
+ font-size: var(--osdk-cbac-validation-warning-font-size);
290
+ color: var(--osdk-typography-color-default-rest);
291
+ }
292
+
293
+ /* src/cbac-picker/base/CbacPickerDialogFooter.module.css */
294
+ .tooltipTriggerWrapper {
295
+ display: contents;
296
+ }
297
+ /*# sourceMappingURL=experimental.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/cbac-picker/base/BaseCbacBanner.module.css","../../../src/cbac-picker/base/BaseCbacPicker.module.css","../../../src/cbac-picker/base/CategoryMarkingGroup.module.css","../../../src/cbac-picker/base/MarkingButton.module.css","../../../src/cbac-picker/base/OverflowButton.module.css","../../../src/cbac-picker/base/OverflowItem.module.css","../../../src/cbac-picker/base/InfoBanner.module.css","../../../src/cbac-picker/base/ValidationWarning.module.css","../../../src/cbac-picker/base/CbacPickerDialogFooter.module.css"],"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\n.bannerRow {\n display: flex;\n align-items: center;\n border-radius: var(--osdk-cbac-banner-border-radius);\n width: 100%;\n box-sizing: border-box;\n background: var(--osdk-cbac-banner-bg);\n color: var(--osdk-cbac-banner-color);\n}\n\n.banner {\n flex: 1;\n padding: var(--osdk-cbac-banner-padding);\n font-size: var(--osdk-cbac-banner-font-size);\n font-weight: var(--osdk-cbac-banner-font-weight);\n text-align: var(--osdk-cbac-banner-text-align);\n font-family: inherit;\n border: none;\n background: transparent;\n color: inherit;\n}\n\n.clickable {\n cursor: pointer;\n}\n\n.clickable:focus-visible {\n outline: var(--osdk-focus-outline);\n outline-offset: var(--osdk-focus-visible-outline-offset);\n}\n\n.clickable:hover {\n filter: brightness(0.9);\n text-decoration: underline;\n}\n\n.dismissButton {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: calc(var(--osdk-surface-spacing) * 1);\n margin-right: calc(var(--osdk-surface-spacing) * 1);\n background: transparent;\n border: none;\n color: inherit;\n cursor: pointer;\n border-radius: var(--osdk-surface-border-radius);\n flex-shrink: 0;\n}\n\n.dismissButton:hover {\n filter: brightness(0.8);\n}\n\n.dismissButton:focus-visible {\n outline: var(--osdk-focus-outline);\n outline-offset: var(--osdk-focus-visible-outline-offset);\n}\n","/*\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\n.picker {\n display: flex;\n flex-direction: column;\n gap: var(--osdk-cbac-picker-category-gap);\n padding: var(--osdk-cbac-picker-padding);\n}\n\n.categoriesContainer {\n display: flex;\n flex-direction: column;\n gap: var(--osdk-cbac-picker-category-gap);\n overflow-y: auto;\n}\n\n.innerBanner {\n border: 1px solid var(--osdk-cbac-banner-border-color);\n}\n\n.statusMessage {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: calc(var(--osdk-surface-spacing) * 5);\n color: var(--osdk-typography-color-muted);\n font-style: italic;\n}\n","/*\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\n.categoryGroup {\n display: flex;\n flex-direction: column;\n gap: var(--osdk-cbac-marking-button-gap);\n}\n\n.categoryName {\n font-size: var(--osdk-cbac-picker-category-title-font-size);\n font-weight: var(--osdk-cbac-picker-category-title-font-weight);\n color: var(--osdk-cbac-picker-category-title-color);\n letter-spacing: var(--osdk-cbac-picker-category-title-letter-spacing);\n margin: 0;\n}\n\n.markingGrid {\n display: grid;\n grid-template-columns: repeat(\n var(--osdk-cbac-picker-marking-grid-columns),\n 1fr\n );\n border-top: 1px solid var(--osdk-cbac-picker-marking-grid-border-color);\n border-left: 1px solid var(--osdk-cbac-picker-marking-grid-border-color);\n}\n\n.emptyCell {\n border-right: 1px solid var(--osdk-cbac-marking-button-border-color-default);\n border-bottom: 1px solid var(--osdk-cbac-marking-button-border-color-default);\n}\n","/*\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\n.markingButton {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: var(--osdk-cbac-marking-button-padding);\n border-radius: var(--osdk-cbac-marking-button-border-radius);\n font-size: var(--osdk-cbac-marking-button-font-size);\n font-family: inherit;\n cursor: pointer;\n border: none;\n border-right: 1px solid var(--osdk-cbac-marking-button-border-color-default);\n border-bottom: 1px solid var(--osdk-cbac-marking-button-border-color-default);\n color: var(--osdk-cbac-marking-button-color-default);\n background: var(--osdk-cbac-marking-button-bg-default);\n transition: background var(--osdk-emphasis-transition-duration)\n var(--osdk-emphasis-ease-default),\n border-color var(--osdk-emphasis-transition-duration)\n var(--osdk-emphasis-ease-default),\n color var(--osdk-emphasis-transition-duration)\n var(--osdk-emphasis-ease-default);\n}\n\n.markingButton:hover:not(:disabled):not(.disallowed):not(.impliedDisallowed) {\n background: var(--osdk-surface-background-color-default-hover);\n}\n\n.selected {\n color: var(--osdk-cbac-marking-button-color-selected);\n background: var(--osdk-cbac-marking-button-bg-selected);\n border-color: var(--osdk-cbac-marking-button-border-color-selected);\n}\n\n.selected:hover:not(:disabled) {\n background: var(--osdk-intent-primary-hover);\n}\n\n.implied {\n color: var(--osdk-cbac-marking-button-color-implied);\n background: var(--osdk-cbac-marking-button-bg-implied);\n border-color: var(--osdk-cbac-marking-button-border-color-implied);\n}\n\n.disallowed,\n.impliedDisallowed {\n color: var(--osdk-cbac-marking-button-color-disallowed);\n background: var(--osdk-cbac-marking-button-bg-disallowed);\n border-color: var(--osdk-cbac-marking-button-border-color-disallowed);\n cursor: not-allowed;\n opacity: var(--osdk-cbac-disabled-opacity);\n}\n\n.markingButton:focus-visible {\n outline: var(--osdk-focus-outline);\n outline-offset: var(--osdk-focus-visible-outline-offset);\n}\n\n.markingButton:disabled {\n cursor: not-allowed;\n}\n","/*\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\n.moreButton {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: var(--osdk-cbac-overflow-button-padding);\n font-size: var(--osdk-cbac-overflow-button-font-size);\n font-family: inherit;\n cursor: pointer;\n border: none;\n border-right: 1px solid var(--osdk-cbac-marking-button-border-color-default);\n border-bottom: 1px solid var(--osdk-cbac-marking-button-border-color-default);\n color: var(--osdk-cbac-marking-button-color-default);\n background: var(--osdk-cbac-marking-button-bg-default);\n font-weight: var(--osdk-typography-weight-bold);\n}\n\n.moreButton:hover {\n background: var(--osdk-surface-background-color-default-hover);\n}\n\n.moreButton:focus-visible {\n outline: var(--osdk-focus-outline);\n outline-offset: var(--osdk-focus-visible-outline-offset);\n}\n\n.moreButtonActive {\n color: var(--osdk-intent-primary-rest);\n}\n\n.overflowList {\n display: flex;\n flex-direction: column;\n max-height: var(--osdk-cbac-overflow-list-max-height);\n overflow-y: auto;\n padding: calc(var(--osdk-surface-spacing) * 0.5);\n background: var(--osdk-surface-background-color-default);\n border: 1px solid var(--osdk-surface-border-color-default);\n border-radius: var(--osdk-surface-border-radius);\n box-shadow: var(--osdk-surface-elevation-2);\n}\n","/*\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\n.overflowItem {\n display: flex;\n align-items: center;\n width: 100%;\n text-align: left;\n padding: var(--osdk-surface-spacing)\n calc(var(--osdk-surface-spacing) * 1.5);\n font-size: var(--osdk-cbac-overflow-button-font-size);\n font-family: inherit;\n cursor: pointer;\n border: none;\n border-radius: var(--osdk-surface-border-radius);\n color: var(--osdk-cbac-marking-button-color-default);\n background: transparent;\n}\n\n.overflowItem:hover:not(:disabled) {\n background: var(--osdk-surface-background-color-default-hover);\n}\n\n.overflowItem:focus-visible {\n outline: var(--osdk-focus-outline);\n outline-offset: var(--osdk-focus-visible-outline-offset);\n}\n\n.overflowItemSelected {\n color: var(--osdk-intent-primary-rest);\n font-weight: var(--osdk-typography-weight-bold);\n}\n\n.overflowItemDisabled {\n color: var(--osdk-cbac-marking-button-color-disallowed);\n cursor: not-allowed;\n opacity: var(--osdk-cbac-disabled-opacity);\n}\n","/*\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\n.infoBanner {\n display: flex;\n align-items: center;\n gap: calc(var(--osdk-surface-spacing) * 1.5);\n padding: var(--osdk-cbac-info-banner-padding);\n background: var(--osdk-cbac-info-banner-bg);\n color: var(--osdk-cbac-info-banner-color);\n font-size: var(--osdk-cbac-info-banner-font-size);\n border-radius: var(--osdk-cbac-info-banner-border-radius);\n}\n\n.icon {\n flex-shrink: 0;\n}\n","/*\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\n.validationWarning {\n display: flex;\n flex-direction: column;\n gap: calc(var(--osdk-surface-spacing) * 1.5);\n padding: var(--osdk-cbac-validation-warning-padding);\n background: var(--osdk-cbac-validation-warning-bg);\n color: var(--osdk-cbac-validation-warning-color);\n font-size: var(--osdk-cbac-validation-warning-font-size);\n border-radius: var(--osdk-cbac-validation-warning-border-radius);\n max-height: var(--osdk-cbac-validation-warning-max-height);\n overflow-y: auto;\n}\n\n.header {\n display: flex;\n align-items: center;\n gap: calc(var(--osdk-surface-spacing) * 1.5);\n}\n\n.icon {\n flex-shrink: 0;\n}\n\n.groupList {\n list-style: none;\n margin: 0;\n padding: 0;\n padding-left: calc(var(--osdk-surface-spacing) * 3);\n display: flex;\n flex-direction: column;\n gap: var(--osdk-surface-spacing);\n}\n\n.groupItem {\n display: flex;\n align-items: center;\n gap: var(--osdk-surface-spacing);\n flex-wrap: wrap;\n}\n\n.groupNumber {\n font-weight: var(--osdk-typography-weight-bold);\n flex-shrink: 0;\n}\n\n.chip {\n display: inline-flex;\n align-items: center;\n padding: 0 var(--osdk-surface-spacing);\n border: 1px solid var(--osdk-cbac-validation-warning-chip-border-color);\n border-radius: var(--osdk-surface-border-radius);\n background: var(--osdk-cbac-validation-warning-chip-bg);\n font-size: var(--osdk-cbac-validation-warning-font-size);\n color: var(--osdk-typography-color-default-rest);\n}\n","/*\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\n.tooltipTriggerWrapper {\n display: contents;\n}\n"],"mappings":";AAgBA,CAAC;AACC,WAAS;AACT,eAAa;AACb,iBAAe,IAAI;AACnB,SAAO;AACP,cAAY;AACZ,cAAY,IAAI;AAChB,SAAO,IAAI;AACb;AAEA,CAAC;AACC,QAAM;AACN,WAAS,IAAI;AACb,aAAW,IAAI;AACf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ACZ,UAAQ;AACR,WAAS;AACT,gBAAc,KAAK,IAAI,wBAAwB,EAAE;AACjD,WAAS;AACT,kBAAgB;AAChB,OAAK,IAAI;AACX;AAEA,CAAC;AACC,WAAS;AACT,eAAa;AACb,OAAK,IAAI;AACT,aAAW;AACb;AAEA,CAAC;AACC,eAAa,IAAI;AACjB,eAAa;AACf;AAEA,CAAC;AACC,WAAS;AACT,eAAa;AACb,WAAS,EAAE,IAAI;AACf,UAAQ,IAAI,MAAM,IAAI;AACtB,iBAAe,IAAI;AACnB,cAAY,IAAI;AAChB,aAAW,IAAI;AACf,SAAO,IAAI;AACb;;;ACtDA,CAAC;AACC,WAAS;AACX;","names":[]}
@@ -1,3 +1,31 @@
1
+ import React from 'react';
2
+
3
+ interface CbacPickerProps {
4
+ initialMarkingIds?: string[];
5
+ onChange: (markingIds: string[]) => void;
6
+ readOnly?: boolean;
7
+ className?: string;
8
+ }
9
+ declare function CbacPicker({ initialMarkingIds, onChange, readOnly, className, }: CbacPickerProps): React.ReactElement;
10
+
11
+ interface CbacPickerDialogProps {
12
+ isOpen: boolean;
13
+ onOpenChange: (open: boolean) => void;
14
+ onConfirm: (markingIds: string[]) => void;
15
+ initialMarkingIds?: string[];
16
+ }
17
+ declare function CbacPickerDialog({ isOpen, onOpenChange, onConfirm, initialMarkingIds, }: CbacPickerDialogProps): React.ReactElement;
18
+
19
+ interface BaseCbacBannerProps {
20
+ classificationString: string;
21
+ textColor: string;
22
+ backgroundColors: string[];
23
+ onClick?: () => void;
24
+ onDismiss?: () => void;
25
+ className?: string;
26
+ }
27
+ declare function BaseCbacBanner({ classificationString, textColor, backgroundColors, onClick, onDismiss, className, }: BaseCbacBannerProps): React.ReactElement;
28
+
1
29
  type MarkingSelectionState = "NONE" | "SELECTED" | "IMPLIED" | "DISALLOWED" | "IMPLIED_DISALLOWED";
2
30
  interface CbacBannerData {
3
31
  classificationString: string;
@@ -26,8 +54,34 @@ interface RequiredMarkingGroup {
26
54
  markingNames: string[];
27
55
  }
28
56
 
57
+ interface BaseCbacPickerProps {
58
+ categories: CategoryMarkingGroup[];
59
+ markingStates: Map<string, MarkingSelectionState>;
60
+ banner?: CbacBannerData;
61
+ onMarkingToggle: (markingId: string) => void;
62
+ onDismissBanner?: () => void;
63
+ showInfoBanner?: boolean;
64
+ requiredMarkingGroups?: ReadonlyArray<RequiredMarkingGroup>;
65
+ isValid?: boolean;
66
+ readOnly?: boolean;
67
+ isLoading?: boolean;
68
+ error?: Error;
69
+ className?: string;
70
+ }
71
+ declare function BaseCbacPicker({ categories, markingStates, banner, onMarkingToggle, onDismissBanner, showInfoBanner, requiredMarkingGroups, isValid, readOnly, isLoading, error, className, }: BaseCbacPickerProps): React.ReactElement;
72
+
73
+ interface BaseCbacPickerDialogProps extends BaseCbacPickerProps {
74
+ isOpen: boolean;
75
+ onOpenChange: (open: boolean) => void;
76
+ onConfirm: () => void;
77
+ onCancel: () => void;
78
+ title?: string;
79
+ submitDisabledReason?: string;
80
+ }
81
+ declare function BaseCbacPickerDialog({ isOpen, onOpenChange, onConfirm, onCancel, title, submitDisabledReason, ...pickerProps }: BaseCbacPickerDialogProps): React.ReactElement;
82
+
29
83
  declare function toggleMarking(markingId: string, currentSelection: string[], categories: CategoryMarkingGroup[]): string[];
30
84
  declare function computeMarkingStates(selectedIds: string[], impliedIds: string[], disallowedIds: string[]): Map<string, MarkingSelectionState>;
31
85
  declare function groupMarkingsByCategory(markings: PickerMarking[], categories: PickerMarkingCategory[]): CategoryMarkingGroup[];
32
86
 
33
- export { type CategoryMarkingGroup, type CbacBannerData, type MarkingSelectionState, type PickerMarking, type PickerMarkingCategory, type RequiredMarkingGroup, computeMarkingStates, groupMarkingsByCategory, toggleMarking };
87
+ export { BaseCbacBanner, BaseCbacPicker, BaseCbacPickerDialog, type CategoryMarkingGroup, type CbacBannerData, CbacPicker, CbacPickerDialog, type MarkingSelectionState, type PickerMarking, type PickerMarkingCategory, type RequiredMarkingGroup, computeMarkingStates, groupMarkingsByCategory, toggleMarking };