@prolibu-suite/cobalt-core 0.2.0 → 0.4.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.
- package/custom-elements.json +19263 -11548
- package/dist/cjs/co-accordion.cjs.entry.js +3 -3
- package/dist/cjs/co-app-shell.cjs.entry.js +4 -4
- package/dist/cjs/co-autocomplete.cjs.entry.js +10 -7
- package/dist/cjs/co-avatar-group.cjs.entry.js +77 -0
- package/dist/cjs/co-avatar.cjs.entry.js +12 -5
- package/dist/cjs/co-badge.cjs.entry.js +2 -2
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +325 -0
- package/dist/cjs/co-breadcrumb-item.cjs.entry.js +37 -0
- package/dist/cjs/co-breadcrumb.cjs.entry.js +55 -0
- package/dist/cjs/co-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-button.cjs.entry.js +12 -6
- package/dist/cjs/co-calendar-month.cjs.entry.js +381 -0
- package/dist/cjs/co-calendar_3.cjs.entry.js +41 -11
- package/dist/cjs/co-card.cjs.entry.js +3 -3
- package/dist/cjs/co-checkbox-group.cjs.entry.js +5 -5
- package/dist/cjs/co-checkbox.cjs.entry.js +18 -6
- package/dist/cjs/co-chip.cjs.entry.js +19 -11
- package/dist/cjs/co-color-picker.cjs.entry.js +7 -5
- package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-combobox.cjs.entry.js +7 -7
- package/dist/cjs/co-command-search.cjs.entry.js +151 -12
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +44 -23
- package/dist/cjs/co-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-date-range-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-date-range.cjs.entry.js +2 -2
- package/dist/cjs/co-drive-card.cjs.entry.js +81 -0
- package/dist/cjs/co-drop-zone.cjs.entry.js +63 -0
- package/dist/cjs/co-empty-state.cjs.entry.js +13 -3
- package/dist/cjs/co-event-calendar.cjs.entry.js +318 -0
- package/dist/cjs/co-fab.cjs.entry.js +3 -3
- package/dist/cjs/co-file-field.cjs.entry.js +8 -8
- package/dist/cjs/co-file-type-tile.cjs.entry.js +78 -0
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +24 -8
- package/dist/cjs/co-icon.cjs.entry.js +33 -25
- package/dist/cjs/co-input.cjs.entry.js +36 -7
- package/dist/cjs/co-json-field.cjs.entry.js +10 -6
- package/dist/cjs/co-lightbox.cjs.entry.js +5 -5
- package/dist/cjs/co-list-footer.cjs.entry.js +25 -0
- package/dist/cjs/co-list-item.cjs.entry.js +60 -4
- package/dist/cjs/co-loader.cjs.entry.js +2 -2
- package/dist/cjs/co-media-thumb.cjs.entry.js +36 -0
- package/dist/cjs/co-menu-divider.cjs.entry.js +2 -2
- package/dist/cjs/co-menu-item.cjs.entry.js +26 -11
- package/dist/cjs/co-menu.cjs.entry.js +3 -3
- package/dist/cjs/co-modal.cjs.entry.js +41 -5
- package/dist/cjs/co-navbar.cjs.entry.js +3 -3
- package/dist/cjs/co-number-field.cjs.entry.js +18 -6
- package/dist/cjs/co-option-list.cjs.entry.js +379 -0
- package/dist/cjs/co-overlay.cjs.entry.js +243 -3
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +6 -4
- package/dist/cjs/co-popover.cjs.entry.js +45 -14
- package/dist/cjs/co-progress-bar.cjs.entry.js +8 -4
- package/dist/cjs/co-progress-circle.cjs.entry.js +3 -3
- package/dist/cjs/co-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/co-radio.cjs.entry.js +4 -4
- package/dist/cjs/co-rating.cjs.entry.js +4 -4
- package/dist/cjs/co-ref-field.cjs.entry.js +36 -13
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +1879 -33
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +995 -71
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +55 -19
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-segmented-bar.cjs.entry.js +58 -0
- package/dist/cjs/co-select.cjs.entry.js +8 -8
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +29 -9
- package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/co-skeleton.cjs.entry.js +26 -0
- package/dist/cjs/co-slider.cjs.entry.js +3 -3
- package/dist/cjs/co-switch.cjs.entry.js +6 -6
- package/dist/cjs/co-tab-group.cjs.entry.js +15 -3
- package/dist/cjs/co-tab.cjs.entry.js +8 -5
- package/dist/cjs/co-tags-field.cjs.entry.js +19 -13
- package/dist/cjs/co-textarea.cjs.entry.js +11 -7
- package/dist/cjs/co-toast.cjs.entry.js +10 -4
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +16 -4
- package/dist/cjs/co-toggle-button.cjs.entry.js +9 -5
- package/dist/cjs/co-tooltip.cjs.entry.js +51 -16
- package/dist/cjs/co-transfer-list.cjs.entry.js +3 -3
- package/dist/cjs/co-video.cjs.entry.js +839 -0
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/fieldChip-DtYUP0VZ.js +7 -0
- package/dist/{esm/index-BjAqSidM.js → cjs/index-4y1Dm145.js} +14436 -6178
- package/dist/cjs/{index-DoFnrUVH.js → index-NNvye1ul.js} +105 -21
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/overlayAfterClose-BdeXrhVY.js +12 -0
- package/dist/{esm/sanitizer-DcK0GGZC.js → cjs/purify.es-DX41ZWS2.js} +3 -107
- package/dist/cjs/{requiredMark-DA6y-4rp.js → requiredMark-DyjZzUCd.js} +1 -1
- package/dist/cjs/richTextI18n-B7ktXg3M.js +382 -0
- package/dist/cjs/toolbar-config-3PlT-3zm.js +216 -0
- package/dist/cjs/tz-Dgom0W69.js +127 -0
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/p-06c27cc5.entry.js +1 -0
- package/dist/cobalt/{p-136bdbd2.entry.js → p-075f6ca4.entry.js} +1 -1
- package/dist/cobalt/p-0810ee1e.entry.js +1 -0
- package/dist/cobalt/p-08519a7c.entry.js +1 -0
- package/dist/cobalt/p-0b41e76e.entry.js +1 -0
- package/dist/cobalt/p-0be124d5.entry.js +1 -0
- package/dist/cobalt/{p-e8b58332.entry.js → p-0e1afdea.entry.js} +1 -1
- package/dist/cobalt/p-1388eac6.entry.js +1 -0
- package/dist/cobalt/{p-7f818368.entry.js → p-19f7ee64.entry.js} +1 -1
- package/dist/cobalt/p-1af6ef83.entry.js +1 -0
- package/dist/cobalt/{p-f2c5cb74.entry.js → p-1cecb9e1.entry.js} +1 -1
- package/dist/cobalt/{p-273afd93.entry.js → p-20c68308.entry.js} +1 -1
- package/dist/cobalt/p-21916f82.entry.js +1 -0
- package/dist/cobalt/p-23c9208a.entry.js +1 -0
- package/dist/cobalt/p-2d4e1ca8.entry.js +1 -0
- package/dist/cobalt/{p-def448e4.entry.js → p-304c3be1.entry.js} +1 -1
- package/dist/cobalt/p-311118cb.entry.js +1 -0
- package/dist/cobalt/{p-2b4d8535.entry.js → p-328f0470.entry.js} +1 -1
- package/dist/cobalt/p-35c63fdc.entry.js +1 -0
- package/dist/cobalt/{p-f97ad9ad.entry.js → p-363a5262.entry.js} +1 -1
- package/dist/cobalt/p-376c43b8.entry.js +1 -0
- package/dist/cobalt/p-39a29bbb.entry.js +1 -0
- package/dist/cobalt/p-3d07e4a9.entry.js +1 -0
- package/dist/cobalt/{p-1e0282b8.entry.js → p-3dd6b57b.entry.js} +1 -1
- package/dist/cobalt/{p-7ef766c6.entry.js → p-48c5f311.entry.js} +1 -1
- package/dist/cobalt/{p-fe9e85b6.entry.js → p-4aeefe3f.entry.js} +1 -1
- package/dist/cobalt/p-523cfd98.entry.js +1 -0
- package/dist/cobalt/{p-c87285b6.entry.js → p-58aed8d6.entry.js} +1 -1
- package/dist/cobalt/p-593fd213.entry.js +1 -0
- package/dist/cobalt/p-5eecea26.entry.js +1 -0
- package/dist/cobalt/p-64a0b656.entry.js +1 -0
- package/dist/cobalt/p-69289e82.entry.js +1 -0
- package/dist/cobalt/p-6a3ed174.entry.js +1 -0
- package/dist/cobalt/p-6f12e721.entry.js +1 -0
- package/dist/cobalt/{p-3f9b3fcb.entry.js → p-7040e4c5.entry.js} +1 -1
- package/dist/cobalt/p-755ecee1.entry.js +1 -0
- package/dist/cobalt/p-76b46336.entry.js +1 -0
- package/dist/cobalt/p-79e49749.entry.js +1 -0
- package/dist/cobalt/p-7b5dec05.entry.js +1 -0
- package/dist/cobalt/p-7d9f2021.entry.js +1 -0
- package/dist/cobalt/p-804d025f.entry.js +1 -0
- package/dist/cobalt/p-860a685f.entry.js +1 -0
- package/dist/cobalt/p-87289d32.entry.js +1 -0
- package/dist/cobalt/{p-b758c2e6.entry.js → p-8ae5da0c.entry.js} +1 -1
- package/dist/cobalt/{p-ff2690e5.entry.js → p-8fdf2163.entry.js} +1 -1
- package/dist/cobalt/p-9310739f.entry.js +1 -0
- package/dist/cobalt/{p-522fcdb7.entry.js → p-96baec0e.entry.js} +1 -1
- package/dist/cobalt/p-B-ckjCUA.js +1 -0
- package/dist/cobalt/p-B2QLgWrz.js +2 -0
- package/dist/cobalt/p-B6JZk8fL.js +1 -0
- package/dist/cobalt/p-BUgUTjOB.js +1 -0
- package/dist/cobalt/p-Bgxofdfb.js +1 -0
- package/dist/cobalt/p-BxzuCRMr.js +1 -0
- package/dist/cobalt/p-Ch1jfwZ2.js +1 -0
- package/dist/cobalt/p-ChibIpZv.js +1 -0
- package/dist/cobalt/p-Es9IUmmt.js +2 -0
- package/dist/cobalt/p-a0749d7b.entry.js +1 -0
- package/dist/cobalt/p-a71fd4f1.entry.js +1 -0
- package/dist/cobalt/p-aa1ad9fa.entry.js +1 -0
- package/dist/cobalt/p-af0495d8.entry.js +1 -0
- package/dist/cobalt/p-b045d680.entry.js +1 -0
- package/dist/cobalt/p-b3c8fc9a.entry.js +1 -0
- package/dist/cobalt/p-b4dcc260.entry.js +1 -0
- package/dist/cobalt/p-b8200f7f.entry.js +1 -0
- package/dist/cobalt/p-b8f36f12.entry.js +1 -0
- package/dist/cobalt/p-ba6f0f90.entry.js +1 -0
- package/dist/cobalt/p-bae82095.entry.js +1 -0
- package/dist/cobalt/p-be3e61f4.entry.js +1 -0
- package/dist/cobalt/p-c1abc74b.entry.js +1 -0
- package/dist/cobalt/{p-bb07da22.entry.js → p-c23a2ff6.entry.js} +1 -1
- package/dist/cobalt/p-c682453a.entry.js +1 -0
- package/dist/cobalt/{p-97c20011.entry.js → p-c857b9ff.entry.js} +1 -1
- package/dist/cobalt/{p-54f26e95.entry.js → p-c85a6a9e.entry.js} +1 -1
- package/dist/cobalt/p-ca108c6d.entry.js +1 -0
- package/dist/cobalt/p-cf239452.entry.js +1 -0
- package/dist/cobalt/p-d2507f04.entry.js +1 -0
- package/dist/cobalt/p-d403d9c4.entry.js +1 -0
- package/dist/cobalt/{p-aa63812a.entry.js → p-d4086c34.entry.js} +1 -1
- package/dist/cobalt/p-d55652f2.entry.js +1 -0
- package/dist/cobalt/p-d7c9cf93.entry.js +1 -0
- package/dist/cobalt/p-d7cbb4c7.entry.js +1 -0
- package/dist/cobalt/p-da211abf.entry.js +1 -0
- package/dist/cobalt/p-dcc7fc95.entry.js +1 -0
- package/dist/cobalt/p-dd03c00b.entry.js +1 -0
- package/dist/cobalt/p-e55fb916.entry.js +1 -0
- package/dist/cobalt/p-e8e752f9.entry.js +1 -0
- package/dist/cobalt/p-e93644cb.entry.js +1 -0
- package/dist/cobalt/{p-f0e8fa7d.entry.js → p-f6b93f17.entry.js} +1 -1
- package/dist/cobalt/p-f72f0e38.entry.js +1 -0
- package/dist/cobalt/{p-beb9c11d.entry.js → p-fb86cdb9.entry.js} +1 -1
- package/dist/cobalt/p-ff6be242.entry.js +1 -0
- package/dist/cobalt/{p-CyYF8IJE.js → p-tPYikBRJ.js} +1 -1
- package/dist/collection/collection-manifest.json +18 -3
- package/dist/collection/components/co-accordion/co-accordion.js +2 -2
- package/dist/collection/components/co-app-shell/co-app-shell.css +79 -6
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +28 -1
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +27 -4
- package/dist/collection/components/co-avatar/co-avatar.css +38 -1
- package/dist/collection/components/co-avatar/co-avatar.js +48 -3
- package/dist/collection/components/co-avatar-group/co-avatar-group.css +86 -0
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +224 -0
- package/dist/collection/components/co-badge/co-badge.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.css +136 -0
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +507 -0
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.css +6 -0
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +111 -0
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.css +66 -0
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +169 -0
- package/dist/collection/components/co-button/co-button.css +63 -7
- package/dist/collection/components/co-button/co-button.js +72 -7
- package/dist/collection/components/co-button-group/co-button-group.js +2 -2
- package/dist/collection/components/co-calendar/co-calendar.js +1 -1
- package/dist/collection/components/co-calendar-month/co-calendar-month.css +231 -0
- package/dist/collection/components/co-calendar-month/co-calendar-month.js +594 -0
- package/dist/collection/components/co-card/co-card.js +2 -2
- package/dist/collection/components/co-checkbox/co-checkbox.css +70 -1
- package/dist/collection/components/co-checkbox/co-checkbox.js +58 -7
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +7 -1
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +3 -3
- package/dist/collection/components/co-chip/co-chip.css +82 -7
- package/dist/collection/components/co-chip/co-chip.js +102 -17
- package/dist/collection/components/co-color-picker/co-color-picker.css +35 -1
- package/dist/collection/components/co-color-picker/co-color-picker.js +24 -2
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.css +7 -47
- package/dist/collection/components/co-combobox/co-combobox.js +4 -4
- package/dist/collection/components/co-command-search/co-command-search.css +163 -1
- package/dist/collection/components/co-command-search/co-command-search.js +355 -14
- package/dist/collection/components/co-command-search/commandSearchGroup.js +17 -0
- package/dist/collection/components/co-command-search/commandSearchLogic.js +27 -0
- package/dist/collection/components/co-data-table/co-data-table.css +42 -2
- package/dist/collection/components/co-data-table/co-data-table.js +116 -23
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
- package/dist/collection/components/co-date-field/co-date-field.css +7 -1
- package/dist/collection/components/co-date-field/co-date-field.js +4 -4
- package/dist/collection/components/co-date-range/co-date-range.js +1 -1
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +7 -1
- package/dist/collection/components/co-drawer/co-drawer.css +21 -3
- package/dist/collection/components/co-drawer/co-drawer.js +52 -2
- package/dist/collection/components/co-drive-card/co-drive-card.css +285 -0
- package/dist/collection/components/co-drive-card/co-drive-card.js +329 -0
- package/dist/collection/components/co-drop-zone/co-drop-zone.css +49 -0
- package/dist/collection/components/co-drop-zone/co-drop-zone.js +197 -0
- package/dist/collection/components/co-empty-state/co-empty-state.css +38 -0
- package/dist/collection/components/co-empty-state/co-empty-state.js +72 -1
- package/dist/collection/components/co-event-calendar/co-event-calendar.css +146 -0
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +620 -0
- package/dist/collection/components/co-fab/co-fab.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.css +7 -1
- package/dist/collection/components/co-file-field/co-file-field.js +5 -5
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.css +14 -0
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +164 -0
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +7 -37
- package/dist/collection/components/co-icon/iconLoader.js +39 -0
- package/dist/collection/components/co-icon-button/co-icon-button.css +26 -8
- package/dist/collection/components/co-icon-button/co-icon-button.js +82 -8
- package/dist/collection/components/co-input/co-input.css +65 -1
- package/dist/collection/components/co-input/co-input.js +54 -5
- package/dist/collection/components/co-json-field/co-json-field.css +25 -1
- package/dist/collection/components/co-json-field/co-json-field.js +27 -3
- package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
- package/dist/collection/components/co-list-footer/co-list-footer.css +50 -0
- package/dist/collection/components/co-list-footer/co-list-footer.js +149 -0
- package/dist/collection/components/co-list-item/co-list-item.css +7 -0
- package/dist/collection/components/co-list-item/co-list-item.js +65 -2
- package/dist/collection/components/co-loader/co-loader.css +9 -0
- package/dist/collection/components/co-media-thumb/co-media-thumb.css +43 -0
- package/dist/collection/components/co-media-thumb/co-media-thumb.js +148 -0
- package/dist/collection/components/co-menu/co-menu.css +6 -4
- package/dist/collection/components/co-menu/co-menu.js +20 -1
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-menu-item/co-menu-item.css +44 -8
- package/dist/collection/components/co-menu-item/co-menu-item.js +84 -10
- package/dist/collection/components/co-modal/co-modal.css +59 -2
- package/dist/collection/components/co-modal/co-modal.js +99 -6
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.css +19 -1
- package/dist/collection/components/co-number-field/co-number-field.js +34 -3
- package/dist/collection/components/co-option-list/co-option-list.css +228 -0
- package/dist/collection/components/co-option-list/co-option-list.js +860 -0
- package/dist/collection/components/co-option-list/optionListLogic.js +100 -0
- package/dist/collection/components/co-overlay/co-overlay.css +15 -1
- package/dist/collection/components/co-overlay/co-overlay.js +266 -1
- package/dist/collection/components/co-overlay/focusTrap.js +53 -0
- package/dist/collection/components/co-overlay/overlayAfterClose.js +8 -0
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.css +30 -2
- package/dist/collection/components/co-phone-field/co-phone-field.js +23 -1
- package/dist/collection/components/co-popover/co-popover.css +9 -0
- package/dist/collection/components/co-popover/co-popover.js +43 -12
- package/dist/collection/components/co-progress-bar/co-progress-bar.css +22 -0
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +26 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
- package/dist/collection/components/co-radio/co-radio.js +3 -3
- package/dist/collection/components/co-radio-group/co-radio-group.js +3 -3
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +64 -6
- package/dist/collection/components/co-ref-field/co-ref-field.js +0 -0
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +1125 -41
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +2008 -53
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +791 -9
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +1071 -71
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.css +78 -0
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +46 -41
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.css +36 -0
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +176 -0
- package/dist/collection/components/co-select/co-select.css +7 -1
- package/dist/collection/components/co-select/co-select.js +5 -5
- package/dist/collection/components/co-separator/co-separator.js +1 -1
- package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +99 -12
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +28 -8
- package/dist/collection/components/co-skeleton/co-skeleton.css +28 -0
- package/dist/collection/components/co-skeleton/co-skeleton.js +97 -0
- package/dist/collection/components/co-slider/co-slider.js +2 -2
- package/dist/collection/components/co-switch/co-switch.css +9 -1
- package/dist/collection/components/co-switch/co-switch.js +3 -3
- package/dist/collection/components/co-tab/co-tab.css +54 -3
- package/dist/collection/components/co-tab/co-tab.js +45 -3
- package/dist/collection/components/co-tab-group/co-tab-group.css +8 -0
- package/dist/collection/components/co-tab-group/co-tab-group.js +35 -1
- package/dist/collection/components/co-tags-field/co-tags-field.css +39 -1
- package/dist/collection/components/co-tags-field/co-tags-field.js +36 -10
- package/dist/collection/components/co-textarea/co-textarea.css +26 -1
- package/dist/collection/components/co-textarea/co-textarea.js +28 -4
- package/dist/collection/components/co-toast/co-toast.css +56 -2
- package/dist/collection/components/co-toast/co-toast.js +27 -2
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +64 -4
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +47 -4
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +32 -12
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +34 -2
- package/dist/collection/components/co-tooltip/co-tooltip.css +8 -0
- package/dist/collection/components/co-tooltip/co-tooltip.js +69 -14
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +2 -2
- package/dist/collection/components/co-video/co-video.css +497 -0
- package/dist/collection/components/co-video/co-video.js +1772 -0
- package/dist/collection/utils/fieldChip.js +2 -0
- package/dist/collection/utils/icon-config.js +12 -0
- package/dist/collection/utils/richTextI18n.js +378 -0
- package/dist/collection/utils/sheetGesture.js +53 -0
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-app-shell.js +1 -1
- package/dist/components/co-autocomplete.js +1 -1
- package/dist/components/co-avatar-group.d.ts +11 -0
- package/dist/components/co-avatar-group.js +1 -0
- package/dist/components/co-avatar.js +1 -1
- package/dist/components/co-badge.js +1 -1
- package/dist/components/co-bottom-sheet.d.ts +11 -0
- package/dist/components/co-bottom-sheet.js +1 -0
- package/dist/components/co-breadcrumb-item.d.ts +11 -0
- package/dist/components/co-breadcrumb-item.js +1 -0
- package/dist/components/co-breadcrumb.d.ts +11 -0
- package/dist/components/co-breadcrumb.js +1 -0
- package/dist/components/co-button-group.js +1 -1
- package/dist/components/co-button.js +1 -1
- package/dist/components/co-calendar-month.d.ts +11 -0
- package/dist/components/co-calendar-month.js +1 -0
- package/dist/components/co-calendar.js +1 -1
- package/dist/components/co-card.js +1 -1
- package/dist/components/co-checkbox-group.js +1 -1
- package/dist/components/co-checkbox.js +1 -1
- package/dist/components/co-chip.js +1 -1
- package/dist/components/co-color-picker.js +1 -1
- package/dist/components/co-column-picker.js +1 -1
- package/dist/components/co-combobox.js +1 -1
- package/dist/components/co-command-search.js +1 -1
- package/dist/components/co-data-table-pagination.js +1 -1
- package/dist/components/co-data-table.js +1 -1
- package/dist/components/co-date-field.js +1 -1
- package/dist/components/co-date-picker.js +1 -1
- package/dist/components/co-date-range-picker.js +1 -1
- package/dist/components/co-date-range.js +1 -1
- package/dist/components/co-drawer.js +1 -1
- package/dist/components/co-drive-card.d.ts +11 -0
- package/dist/components/co-drive-card.js +1 -0
- package/dist/components/co-drop-zone.d.ts +11 -0
- package/dist/components/co-drop-zone.js +1 -0
- package/dist/components/co-empty-state.js +1 -1
- package/dist/components/co-event-calendar.d.ts +11 -0
- package/dist/components/co-event-calendar.js +1 -0
- package/dist/components/co-fab.js +1 -1
- package/dist/components/co-file-field.js +1 -1
- package/dist/components/co-file-type-tile.d.ts +11 -0
- package/dist/components/co-file-type-tile.js +1 -0
- package/dist/components/co-helper-text.js +1 -1
- package/dist/components/co-icon-button.js +1 -1
- package/dist/components/co-icon.js +1 -1
- package/dist/components/co-input.js +1 -1
- package/dist/components/co-json-field.js +1 -1
- package/dist/components/co-lightbox.js +1 -1
- package/dist/components/co-list-footer.d.ts +11 -0
- package/dist/components/co-list-footer.js +1 -0
- package/dist/components/co-list-item.js +1 -1
- package/dist/components/co-loader.js +1 -1
- package/dist/components/co-media-thumb.d.ts +11 -0
- package/dist/components/co-media-thumb.js +1 -0
- package/dist/components/co-menu-divider.js +1 -1
- package/dist/components/co-menu-item.js +1 -1
- package/dist/components/co-menu.js +1 -1
- package/dist/components/co-modal.js +1 -1
- package/dist/components/co-navbar.js +1 -1
- package/dist/components/co-number-field.js +1 -1
- package/dist/components/co-option-list.d.ts +11 -0
- package/dist/components/co-option-list.js +1 -0
- package/dist/components/co-overlay.js +1 -1
- package/dist/components/co-page-header.js +1 -1
- package/dist/components/co-phone-field.js +1 -1
- package/dist/components/co-popover.js +1 -1
- package/dist/components/co-progress-bar.js +1 -1
- package/dist/components/co-progress-circle.js +1 -1
- package/dist/components/co-radio-group.js +1 -1
- package/dist/components/co-radio.js +1 -1
- package/dist/components/co-rating.js +1 -1
- package/dist/components/co-ref-field.js +1 -1
- package/dist/components/co-rich-text-editor.js +1 -1
- package/dist/components/co-rich-text-toolbar.js +1 -1
- package/dist/components/co-rich-text-viewer.js +1 -1
- package/dist/components/co-row.js +1 -1
- package/dist/components/co-segmented-bar.d.ts +11 -0
- package/dist/components/co-segmented-bar.js +1 -0
- package/dist/components/co-select.js +1 -1
- package/dist/components/co-separator.js +1 -1
- package/dist/components/co-sidebar-nav.js +1 -1
- package/dist/components/co-sidebar.js +1 -1
- package/dist/components/co-skeleton.d.ts +11 -0
- package/dist/components/co-skeleton.js +1 -0
- package/dist/components/co-slider.js +1 -1
- package/dist/components/co-switch.js +1 -1
- package/dist/components/co-tab-group.js +1 -1
- package/dist/components/co-tab.js +1 -1
- package/dist/components/co-tags-field.js +1 -1
- package/dist/components/co-textarea.js +1 -1
- package/dist/components/co-toast.js +1 -1
- package/dist/components/co-toggle-button-group.js +1 -1
- package/dist/components/co-toggle-button.js +1 -1
- package/dist/components/co-tooltip.js +1 -1
- package/dist/components/co-transfer-list.js +1 -1
- package/dist/components/co-video.d.ts +11 -0
- package/dist/components/co-video.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-B0buzt_E.js +1 -0
- package/dist/components/p-B2QLgWrz.js +2 -0
- package/dist/components/p-B3igDRut.js +1 -0
- package/dist/components/p-Bgxofdfb.js +1 -0
- package/dist/components/p-BhSJcOUS.js +1 -0
- package/dist/components/{p-DObrQi5F.js → p-BnTTeIFH.js} +1 -1
- package/dist/components/{p-C9tHLXKS.js → p-Bx1OwdIV.js} +1 -1
- package/dist/components/p-BxiKVtk4.js +1 -0
- package/dist/components/p-C7tPadNy.js +1 -0
- package/dist/components/p-CBzpUqwG.js +1 -0
- package/dist/components/p-CUvAZhuM.js +1 -0
- package/dist/components/p-CZKHHCdL.js +1 -0
- package/dist/components/p-ChibIpZv.js +1 -0
- package/dist/components/p-CybHxq25.js +1 -0
- package/dist/components/p-CzkeIavk.js +1 -0
- package/dist/components/p-D7dk2gM7.js +1 -0
- package/dist/components/p-DTS-dgEe.js +1 -0
- package/dist/components/p-DvhR3H61.js +1 -0
- package/dist/components/{p-OGpfa9Yd.js → p-DzoNGEDU.js} +1 -1
- package/dist/components/{p-BeWXpX8I.js → p-HXlAaApx.js} +1 -1
- package/dist/components/p-K6LC1Hz4.js +1 -0
- package/dist/components/p-LAxCvyJl.js +1 -0
- package/dist/components/p-vLFwJ77w.js +1 -0
- package/dist/esm/co-accordion.entry.js +3 -3
- package/dist/esm/co-app-shell.entry.js +4 -4
- package/dist/esm/co-autocomplete.entry.js +10 -7
- package/dist/esm/co-avatar-group.entry.js +75 -0
- package/dist/esm/co-avatar.entry.js +12 -5
- package/dist/esm/co-badge.entry.js +2 -2
- package/dist/esm/co-bottom-sheet.entry.js +323 -0
- package/dist/esm/co-breadcrumb-item.entry.js +35 -0
- package/dist/esm/co-breadcrumb.entry.js +53 -0
- package/dist/esm/co-button-group.entry.js +3 -3
- package/dist/esm/co-button.entry.js +12 -6
- package/dist/esm/co-calendar-month.entry.js +379 -0
- package/dist/esm/co-calendar_3.entry.js +42 -12
- package/dist/esm/co-card.entry.js +3 -3
- package/dist/esm/co-checkbox-group.entry.js +5 -5
- package/dist/esm/co-checkbox.entry.js +18 -6
- package/dist/esm/co-chip.entry.js +19 -11
- package/dist/esm/co-color-picker.entry.js +7 -5
- package/dist/esm/co-column-picker.entry.js +3 -3
- package/dist/esm/co-combobox.entry.js +7 -7
- package/dist/esm/co-command-search.entry.js +151 -12
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +44 -23
- package/dist/esm/co-date-picker.entry.js +2 -2
- package/dist/esm/co-date-range-picker.entry.js +4 -4
- package/dist/esm/co-date-range.entry.js +2 -2
- package/dist/esm/co-drive-card.entry.js +79 -0
- package/dist/esm/co-drop-zone.entry.js +61 -0
- package/dist/esm/co-empty-state.entry.js +13 -3
- package/dist/esm/co-event-calendar.entry.js +316 -0
- package/dist/esm/co-fab.entry.js +3 -3
- package/dist/esm/co-file-field.entry.js +8 -8
- package/dist/esm/co-file-type-tile.entry.js +76 -0
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +24 -8
- package/dist/esm/co-icon.entry.js +33 -25
- package/dist/esm/co-input.entry.js +36 -7
- package/dist/esm/co-json-field.entry.js +10 -6
- package/dist/esm/co-lightbox.entry.js +5 -5
- package/dist/esm/co-list-footer.entry.js +23 -0
- package/dist/esm/co-list-item.entry.js +60 -4
- package/dist/esm/co-loader.entry.js +2 -2
- package/dist/esm/co-media-thumb.entry.js +34 -0
- package/dist/esm/co-menu-divider.entry.js +2 -2
- package/dist/esm/co-menu-item.entry.js +26 -11
- package/dist/esm/co-menu.entry.js +3 -3
- package/dist/esm/co-modal.entry.js +41 -5
- package/dist/esm/co-navbar.entry.js +3 -3
- package/dist/esm/co-number-field.entry.js +18 -6
- package/dist/esm/co-option-list.entry.js +377 -0
- package/dist/esm/co-overlay.entry.js +243 -3
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +6 -4
- package/dist/esm/co-popover.entry.js +45 -14
- package/dist/esm/co-progress-bar.entry.js +8 -4
- package/dist/esm/co-progress-circle.entry.js +3 -3
- package/dist/esm/co-radio-group.entry.js +4 -4
- package/dist/esm/co-radio.entry.js +4 -4
- package/dist/esm/co-rating.entry.js +4 -4
- package/dist/esm/co-ref-field.entry.js +36 -13
- package/dist/esm/co-rich-text-editor.entry.js +1879 -33
- package/dist/esm/co-rich-text-toolbar.entry.js +995 -71
- package/dist/esm/co-rich-text-viewer.entry.js +55 -19
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-segmented-bar.entry.js +56 -0
- package/dist/esm/co-select.entry.js +8 -8
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +29 -9
- package/dist/esm/co-sidebar.entry.js +3 -3
- package/dist/esm/co-skeleton.entry.js +24 -0
- package/dist/esm/co-slider.entry.js +3 -3
- package/dist/esm/co-switch.entry.js +6 -6
- package/dist/esm/co-tab-group.entry.js +15 -3
- package/dist/esm/co-tab.entry.js +8 -5
- package/dist/esm/co-tags-field.entry.js +19 -13
- package/dist/esm/co-textarea.entry.js +11 -7
- package/dist/esm/co-toast.entry.js +10 -4
- package/dist/esm/co-toggle-button-group.entry.js +16 -4
- package/dist/esm/co-toggle-button.entry.js +9 -5
- package/dist/esm/co-tooltip.entry.js +51 -16
- package/dist/esm/co-transfer-list.entry.js +3 -3
- package/dist/esm/co-video.entry.js +837 -0
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/{dates-CyYF8IJE.js → dates-tPYikBRJ.js} +1 -1
- package/dist/esm/fieldChip-BBu4ukje.js +5 -0
- package/dist/{cjs/index-CaEJnpZe.js → esm/index-Cyrxk8Qq.js} +14437 -6194
- package/dist/esm/{index-BKmfyPZK.js → index-Es9IUmmt.js} +105 -21
- package/dist/esm/loader.js +3 -3
- package/dist/esm/overlayAfterClose-Ch1jfwZ2.js +10 -0
- package/dist/{cjs/sanitizer-CjHZAkOm.js → esm/purify.es-B2QLgWrz.js} +1 -110
- package/dist/esm/{requiredMark-DFvtYtkE.js → requiredMark-Bg25QWFn.js} +1 -1
- package/dist/esm/richTextI18n-B-ckjCUA.js +380 -0
- package/dist/esm/toolbar-config-ChibIpZv.js +212 -0
- package/dist/esm/tz-B6JZk8fL.js +119 -0
- package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +2 -0
- package/dist/types/components/co-avatar/co-avatar.d.ts +4 -0
- package/dist/types/components/co-avatar-group/co-avatar-group.d.ts +33 -0
- package/dist/types/components/co-bottom-sheet/co-bottom-sheet.d.ts +81 -0
- package/dist/types/components/co-breadcrumb/co-breadcrumb.d.ts +27 -0
- package/dist/types/components/co-breadcrumb-item/co-breadcrumb-item.d.ts +33 -0
- package/dist/types/components/co-button/co-button.d.ts +7 -1
- package/dist/types/components/co-calendar-month/co-calendar-month.d.ts +83 -0
- package/dist/types/components/co-checkbox/co-checkbox.d.ts +10 -2
- package/dist/types/components/co-chip/co-chip.d.ts +22 -5
- package/dist/types/components/co-color-picker/co-color-picker.d.ts +2 -0
- package/dist/types/components/co-command-search/co-command-search.d.ts +39 -6
- package/dist/types/components/co-command-search/commandSearchGroup.d.ts +20 -0
- package/dist/types/components/co-command-search/commandSearchLogic.d.ts +17 -0
- package/dist/types/components/co-data-table/co-data-table.d.ts +15 -2
- package/dist/types/components/co-drawer/co-drawer.d.ts +12 -0
- package/dist/types/components/co-drive-card/co-drive-card.d.ts +52 -0
- package/dist/types/components/co-drop-zone/co-drop-zone.d.ts +38 -0
- package/dist/types/components/co-empty-state/co-empty-state.d.ts +6 -0
- package/dist/types/components/co-event-calendar/co-event-calendar.d.ts +110 -0
- package/dist/types/components/co-file-type-tile/co-file-type-tile.d.ts +11 -0
- package/dist/types/components/co-icon/co-icon.d.ts +1 -1
- package/dist/types/components/co-icon/iconLoader.d.ts +6 -0
- package/dist/types/components/co-icon-button/co-icon-button.d.ts +18 -1
- package/dist/types/components/co-input/co-input.d.ts +13 -1
- package/dist/types/components/co-json-field/co-json-field.d.ts +3 -0
- package/dist/types/components/co-list-footer/co-list-footer.d.ts +26 -0
- package/dist/types/components/co-list-item/co-list-item.d.ts +11 -0
- package/dist/types/components/co-media-thumb/co-media-thumb.d.ts +21 -0
- package/dist/types/components/co-menu/co-menu.d.ts +4 -0
- package/dist/types/components/co-menu-item/co-menu-item.d.ts +10 -1
- package/dist/types/components/co-modal/co-modal.d.ts +26 -2
- package/dist/types/components/co-number-field/co-number-field.d.ts +13 -0
- package/dist/types/components/co-option-list/co-option-list.d.ts +101 -0
- package/dist/types/components/co-option-list/optionListLogic.d.ts +69 -0
- package/dist/types/components/co-overlay/co-overlay.d.ts +45 -0
- package/dist/types/components/co-overlay/focusTrap.d.ts +20 -0
- package/dist/types/components/co-overlay/overlayAfterClose.d.ts +5 -0
- package/dist/types/components/co-phone-field/co-phone-field.d.ts +2 -0
- package/dist/types/components/co-popover/co-popover.d.ts +9 -0
- package/dist/types/components/co-progress-bar/co-progress-bar.d.ts +2 -0
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +17 -2
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +161 -9
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +119 -13
- package/dist/types/components/co-rich-text-viewer/co-rich-text-viewer.d.ts +1 -14
- package/dist/types/components/co-segmented-bar/co-segmented-bar.d.ts +32 -0
- package/dist/types/components/co-skeleton/co-skeleton.d.ts +13 -0
- package/dist/types/components/co-tab/co-tab.d.ts +4 -0
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +3 -0
- package/dist/types/components/co-tags-field/co-tags-field.d.ts +2 -0
- package/dist/types/components/co-textarea/co-textarea.d.ts +3 -0
- package/dist/types/components/co-toast/co-toast.d.ts +7 -0
- package/dist/types/components/co-toggle-button/co-toggle-button.d.ts +6 -0
- package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +5 -0
- package/dist/types/components/co-tooltip/co-tooltip.d.ts +12 -0
- package/dist/types/components/co-video/co-video.d.ts +203 -0
- package/dist/types/components.d.ts +3184 -221
- package/dist/types/utils/fieldChip.d.ts +37 -0
- package/dist/types/utils/icon-config.d.ts +11 -0
- package/dist/types/utils/richTextI18n.d.ts +130 -0
- package/dist/types/utils/sheetGesture.d.ts +31 -0
- package/package.json +5 -4
- package/dist/cobalt/p-01fc77c4.entry.js +0 -1
- package/dist/cobalt/p-0a6d8061.entry.js +0 -1
- package/dist/cobalt/p-0bf288cd.entry.js +0 -1
- package/dist/cobalt/p-15708d32.entry.js +0 -1
- package/dist/cobalt/p-1578b019.entry.js +0 -1
- package/dist/cobalt/p-23d48581.entry.js +0 -1
- package/dist/cobalt/p-2718ff27.entry.js +0 -1
- package/dist/cobalt/p-3190d715.entry.js +0 -1
- package/dist/cobalt/p-41228dce.entry.js +0 -1
- package/dist/cobalt/p-44672953.entry.js +0 -1
- package/dist/cobalt/p-53ce9023.entry.js +0 -1
- package/dist/cobalt/p-5d01bd4d.entry.js +0 -1
- package/dist/cobalt/p-5e7141aa.entry.js +0 -1
- package/dist/cobalt/p-5f905739.entry.js +0 -1
- package/dist/cobalt/p-6404bd21.entry.js +0 -1
- package/dist/cobalt/p-654bbc2a.entry.js +0 -1
- package/dist/cobalt/p-6678ac0a.entry.js +0 -1
- package/dist/cobalt/p-66a912dd.entry.js +0 -1
- package/dist/cobalt/p-6759ee1c.entry.js +0 -1
- package/dist/cobalt/p-69a40bfd.entry.js +0 -1
- package/dist/cobalt/p-6a6a62cb.entry.js +0 -1
- package/dist/cobalt/p-6d43b6cd.entry.js +0 -1
- package/dist/cobalt/p-759c3dd0.entry.js +0 -1
- package/dist/cobalt/p-782f729f.entry.js +0 -1
- package/dist/cobalt/p-83b89bf8.entry.js +0 -1
- package/dist/cobalt/p-88dc561a.entry.js +0 -1
- package/dist/cobalt/p-8c27aff7.entry.js +0 -1
- package/dist/cobalt/p-95d14878.entry.js +0 -1
- package/dist/cobalt/p-996179f7.entry.js +0 -1
- package/dist/cobalt/p-9c533830.entry.js +0 -1
- package/dist/cobalt/p-9d89bf47.entry.js +0 -1
- package/dist/cobalt/p-BKmfyPZK.js +0 -2
- package/dist/cobalt/p-BchB6Hdr.js +0 -1
- package/dist/cobalt/p-DcK0GGZC.js +0 -2
- package/dist/cobalt/p-Qqq8fysz.js +0 -1
- package/dist/cobalt/p-aa17c70b.entry.js +0 -1
- package/dist/cobalt/p-ad4c1b41.entry.js +0 -1
- package/dist/cobalt/p-ae4d3207.entry.js +0 -1
- package/dist/cobalt/p-af64da37.entry.js +0 -1
- package/dist/cobalt/p-c6a242e4.entry.js +0 -1
- package/dist/cobalt/p-cd57e8b4.entry.js +0 -1
- package/dist/cobalt/p-ce3a535f.entry.js +0 -1
- package/dist/cobalt/p-d17e1444.entry.js +0 -1
- package/dist/cobalt/p-d958566a.entry.js +0 -1
- package/dist/cobalt/p-dd873bf8.entry.js +0 -1
- package/dist/cobalt/p-e4de8865.entry.js +0 -1
- package/dist/cobalt/p-eba0bf7f.entry.js +0 -1
- package/dist/cobalt/p-f8728b21.entry.js +0 -1
- package/dist/cobalt/p-fad3605d.entry.js +0 -1
- package/dist/components/p-BXdfh__-.js +0 -1
- package/dist/components/p-BchB6Hdr.js +0 -1
- package/dist/components/p-BiW0ubLs.js +0 -1
- package/dist/components/p-CaMgu2_g.js +0 -1
- package/dist/components/p-DBhNS7JD.js +0 -1
- package/dist/components/p-DPi_U-Kl.js +0 -1
- package/dist/components/p-DcK0GGZC.js +0 -2
- package/dist/components/p-MiSJXuBx.js +0 -1
- package/dist/components/p-Sgn-2g8m.js +0 -1
- package/dist/components/p-jDjfGZJp.js +0 -1
- package/dist/components/p-o8hrDIKe.js +0 -1
|
@@ -55,6 +55,12 @@
|
|
|
55
55
|
border-radius: var(--co-border-radius-xxs); /* 4px */
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
.co-checkbox--medium {
|
|
59
|
+
width: 20px;
|
|
60
|
+
height: 20px;
|
|
61
|
+
border-radius: var(--co-spacing-sm); /* 6px */
|
|
62
|
+
}
|
|
63
|
+
|
|
58
64
|
.co-checkbox--large {
|
|
59
65
|
width: 24px;
|
|
60
66
|
height: 24px;
|
|
@@ -63,7 +69,9 @@
|
|
|
63
69
|
|
|
64
70
|
/* ─── UNCHECKED ─────────────────────────────────────────────── */
|
|
65
71
|
.co-checkbox:not(.co-checkbox--checked) {
|
|
66
|
-
background: transparent;
|
|
72
|
+
background: color-mix(in srgb, var(--co-semantic-surface-secondary) 35%, transparent);
|
|
73
|
+
-webkit-backdrop-filter: blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate));
|
|
74
|
+
backdrop-filter: blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate));
|
|
67
75
|
border: 1px solid var(--co-semantic-border-subtle);
|
|
68
76
|
}
|
|
69
77
|
|
|
@@ -89,6 +97,11 @@
|
|
|
89
97
|
height: 4px;
|
|
90
98
|
}
|
|
91
99
|
|
|
100
|
+
.co-checkbox--medium.co-checkbox--checked::after {
|
|
101
|
+
width: 8px;
|
|
102
|
+
height: 5px;
|
|
103
|
+
}
|
|
104
|
+
|
|
92
105
|
.co-checkbox--large.co-checkbox--checked::after {
|
|
93
106
|
width: 10px;
|
|
94
107
|
height: 6px;
|
|
@@ -113,6 +126,11 @@
|
|
|
113
126
|
height: 1.5px;
|
|
114
127
|
}
|
|
115
128
|
|
|
129
|
+
.co-checkbox--medium.co-checkbox--indeterminate::after {
|
|
130
|
+
width: 10px;
|
|
131
|
+
height: 1.75px;
|
|
132
|
+
}
|
|
133
|
+
|
|
116
134
|
.co-checkbox--large.co-checkbox--indeterminate::after {
|
|
117
135
|
width: 12px;
|
|
118
136
|
height: 2px;
|
|
@@ -124,3 +142,54 @@
|
|
|
124
142
|
cursor: not-allowed;
|
|
125
143
|
pointer-events: none;
|
|
126
144
|
}
|
|
145
|
+
|
|
146
|
+
/* ─── OVERLAY appearance (Drive selection chip) ─────────────── */
|
|
147
|
+
/* Standalone frosted rounded square, no label, bespoke inline SVG glyphs. */
|
|
148
|
+
.co-checkbox--overlay {
|
|
149
|
+
border-radius: 6px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.co-checkbox--overlay.co-checkbox--small {
|
|
153
|
+
width: 20px;
|
|
154
|
+
height: 20px;
|
|
155
|
+
border-radius: 6px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.co-checkbox--overlay.co-checkbox--medium,
|
|
159
|
+
.co-checkbox--overlay.co-checkbox--large {
|
|
160
|
+
width: 22px;
|
|
161
|
+
height: 22px;
|
|
162
|
+
border-radius: 6px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Unchecked → frosted white chip with a hairline inset border */
|
|
166
|
+
.co-checkbox--overlay:not(.co-checkbox--checked):not(.co-checkbox--indeterminate) {
|
|
167
|
+
background: rgba(255, 255, 255, 0.9);
|
|
168
|
+
box-shadow: inset 0 0 0 1px var(--co-color-opacity-negro-16, rgba(31, 28, 27, 0.16));
|
|
169
|
+
border: none;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Checked / indeterminate → solid accent fill (overridable via the on-color prop) */
|
|
173
|
+
.co-checkbox--overlay.co-checkbox--checked,
|
|
174
|
+
.co-checkbox--overlay.co-checkbox--indeterminate {
|
|
175
|
+
background: var(--co-color-primary-azul, #2563eb);
|
|
176
|
+
border: none;
|
|
177
|
+
box-shadow: none;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* Overlay uses inline SVG glyphs, so suppress the default ::after check/dash */
|
|
181
|
+
.co-checkbox--overlay.co-checkbox--checked::after,
|
|
182
|
+
.co-checkbox--overlay.co-checkbox--indeterminate::after {
|
|
183
|
+
content: none;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.co-checkbox__glyph {
|
|
187
|
+
display: block;
|
|
188
|
+
width: 100%;
|
|
189
|
+
height: 100%;
|
|
190
|
+
pointer-events: none;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@supports not (background: color-mix(in srgb, red, transparent)) {
|
|
194
|
+
.co-checkbox:not(.co-checkbox--checked) { background: transparent; }
|
|
195
|
+
}
|
|
@@ -5,12 +5,18 @@ export class CoCheckbox {
|
|
|
5
5
|
this.checked = false;
|
|
6
6
|
/** Indeterminate state (partial selection) — visual only, overrides checked appearance */
|
|
7
7
|
this.indeterminate = false;
|
|
8
|
-
/** Size: small=16px, large=24px */
|
|
8
|
+
/** Size: small=16px, medium=20px, large=24px (overlay appearance: small=20px, medium/large=22px) */
|
|
9
9
|
this.size = 'small';
|
|
10
10
|
/** Disabled state */
|
|
11
11
|
this.disabled = false;
|
|
12
12
|
/** Value for checkbox group usage */
|
|
13
13
|
this.value = '';
|
|
14
|
+
/**
|
|
15
|
+
* Visual appearance:
|
|
16
|
+
* - 'default' — the standard labeled form checkbox (unchanged).
|
|
17
|
+
* - 'overlay' — a standalone frosted rounded selection chip (Drive), no label, bespoke SVG glyphs.
|
|
18
|
+
*/
|
|
19
|
+
this.appearance = 'default';
|
|
14
20
|
this.handleClick = () => {
|
|
15
21
|
if (!this.disabled) {
|
|
16
22
|
if (this.indeterminate) {
|
|
@@ -26,16 +32,22 @@ export class CoCheckbox {
|
|
|
26
32
|
};
|
|
27
33
|
}
|
|
28
34
|
render() {
|
|
29
|
-
|
|
35
|
+
const isOverlay = this.appearance === 'overlay';
|
|
36
|
+
const isOn = this.checked || this.indeterminate;
|
|
37
|
+
// Only override the fill when a custom color is provided AND the box is "on".
|
|
38
|
+
// Leaving this undefined keeps the default appearance byte-identical to before.
|
|
39
|
+
const boxStyle = this.onColor && isOn ? { background: this.onColor } : undefined;
|
|
40
|
+
return (h("div", { key: '08c291f6fbc3d37788a26d8d4dc747eba32bdca8', class: {
|
|
30
41
|
'co-checkbox-row': true,
|
|
31
42
|
'co-checkbox-row--disabled': this.disabled,
|
|
32
|
-
}, onClick: this.handleClick }, h("span", { key: '
|
|
43
|
+
}, onClick: this.handleClick }, h("span", { key: '24839a60401f929b87be87aea57c0b130a007f3a', role: "checkbox", "aria-checked": this.indeterminate ? 'mixed' : String(this.checked), "aria-label": this.label || '', class: {
|
|
33
44
|
'co-checkbox': true,
|
|
34
45
|
[`co-checkbox--${this.size}`]: true,
|
|
46
|
+
'co-checkbox--overlay': isOverlay,
|
|
35
47
|
'co-checkbox--checked': this.checked && !this.indeterminate,
|
|
36
48
|
'co-checkbox--indeterminate': this.indeterminate,
|
|
37
49
|
'co-checkbox--disabled': this.disabled,
|
|
38
|
-
}, part: "box" }), this.label && (h("span", { key: '
|
|
50
|
+
}, style: boxStyle, part: "box" }, isOverlay && this.indeterminate && (h("svg", { key: '1af8a42128f227fc5849f87de4005525e6450d96', class: "co-checkbox__glyph", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("path", { key: '6fcd92e86641b5b1338370d7fe4cf75eaa860268', d: "M3 8h10", stroke: "#fff", "stroke-width": "2.2", "stroke-linecap": "round" }))), isOverlay && this.checked && !this.indeterminate && (h("svg", { key: 'f3442c680dc9d30a7d69954137300d76242999d4', class: "co-checkbox__glyph", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("path", { key: '4bd18d9e214646ff2e5cd0cb5e697525e7e605e1', d: "M3.5 8.5l3 3 6-6.5", stroke: "#fff", "stroke-width": "2.2", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.label && (h("span", { key: '6a25deb4ea5b703c3732c9c97d6a5e822451ec70', class: "co-checkbox__label", part: "label" }, this.label))));
|
|
39
51
|
}
|
|
40
52
|
static get is() { return "co-checkbox"; }
|
|
41
53
|
static get encapsulation() { return "shadow"; }
|
|
@@ -95,15 +107,15 @@ export class CoCheckbox {
|
|
|
95
107
|
"type": "string",
|
|
96
108
|
"mutable": false,
|
|
97
109
|
"complexType": {
|
|
98
|
-
"original": "'small' | 'large'",
|
|
99
|
-
"resolved": "\"large\" | \"small\"",
|
|
110
|
+
"original": "'small' | 'medium' | 'large'",
|
|
111
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
100
112
|
"references": {}
|
|
101
113
|
},
|
|
102
114
|
"required": false,
|
|
103
115
|
"optional": false,
|
|
104
116
|
"docs": {
|
|
105
117
|
"tags": [],
|
|
106
|
-
"text": "Size: small=16px, large=24px"
|
|
118
|
+
"text": "Size: small=16px, medium=20px, large=24px (overlay appearance: small=20px, medium/large=22px)"
|
|
107
119
|
},
|
|
108
120
|
"getter": false,
|
|
109
121
|
"setter": false,
|
|
@@ -169,6 +181,45 @@ export class CoCheckbox {
|
|
|
169
181
|
"reflect": false,
|
|
170
182
|
"attribute": "value",
|
|
171
183
|
"defaultValue": "''"
|
|
184
|
+
},
|
|
185
|
+
"onColor": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"mutable": false,
|
|
188
|
+
"complexType": {
|
|
189
|
+
"original": "string",
|
|
190
|
+
"resolved": "string | undefined",
|
|
191
|
+
"references": {}
|
|
192
|
+
},
|
|
193
|
+
"required": false,
|
|
194
|
+
"optional": true,
|
|
195
|
+
"docs": {
|
|
196
|
+
"tags": [],
|
|
197
|
+
"text": "Accent fill color used when checked/indeterminate. Defaults to the current design token."
|
|
198
|
+
},
|
|
199
|
+
"getter": false,
|
|
200
|
+
"setter": false,
|
|
201
|
+
"reflect": false,
|
|
202
|
+
"attribute": "on-color"
|
|
203
|
+
},
|
|
204
|
+
"appearance": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"mutable": false,
|
|
207
|
+
"complexType": {
|
|
208
|
+
"original": "'default' | 'overlay'",
|
|
209
|
+
"resolved": "\"default\" | \"overlay\"",
|
|
210
|
+
"references": {}
|
|
211
|
+
},
|
|
212
|
+
"required": false,
|
|
213
|
+
"optional": false,
|
|
214
|
+
"docs": {
|
|
215
|
+
"tags": [],
|
|
216
|
+
"text": "Visual appearance:\n- 'default' \u2014 the standard labeled form checkbox (unchanged).\n- 'overlay' \u2014 a standalone frosted rounded selection chip (Drive), no label, bespoke SVG glyphs."
|
|
217
|
+
},
|
|
218
|
+
"getter": false,
|
|
219
|
+
"setter": false,
|
|
220
|
+
"reflect": false,
|
|
221
|
+
"attribute": "appearance",
|
|
222
|
+
"defaultValue": "'default'"
|
|
172
223
|
}
|
|
173
224
|
};
|
|
174
225
|
}
|
|
@@ -114,7 +114,9 @@
|
|
|
114
114
|
|
|
115
115
|
/* unchecked */
|
|
116
116
|
.co-checkbox-group__box:not(.co-checkbox-group__box--checked) {
|
|
117
|
-
background: transparent;
|
|
117
|
+
background: color-mix(in srgb, var(--co-semantic-surface-secondary) 35%, transparent);
|
|
118
|
+
-webkit-backdrop-filter: blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate));
|
|
119
|
+
backdrop-filter: blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate));
|
|
118
120
|
border: 1px solid var(--co-semantic-border-subtle);
|
|
119
121
|
}
|
|
120
122
|
|
|
@@ -222,3 +224,7 @@
|
|
|
222
224
|
grid-column: 2;
|
|
223
225
|
min-width: 0;
|
|
224
226
|
}
|
|
227
|
+
|
|
228
|
+
@supports not (background: color-mix(in srgb, red, transparent)) {
|
|
229
|
+
.co-checkbox-group__box:not(.co-checkbox-group__box--checked) { background: transparent; }
|
|
230
|
+
}
|
|
@@ -70,11 +70,11 @@ export class CoCheckboxGroup {
|
|
|
70
70
|
const hasLabels = this.label || this.secondaryLabel;
|
|
71
71
|
const opts = this.parsedOptions;
|
|
72
72
|
const selected = this.selectedValues;
|
|
73
|
-
return (h("div", { key: '
|
|
73
|
+
return (h("div", { key: 'cb538aaa167b240cafcbd7421e11aa588a7c7b12', class: {
|
|
74
74
|
'co-checkbox-group': true,
|
|
75
75
|
'co-checkbox-group--disabled': this.disabled,
|
|
76
76
|
[`co-checkbox-group--${this.status}`]: this.status !== 'default',
|
|
77
|
-
}, role: "group", "aria-label": this.label || '' }, hasLabels && (h("div", { key: '
|
|
77
|
+
}, role: "group", "aria-label": this.label || '' }, hasLabels && (h("div", { key: '9e8e43ef8ec56df7cb7386af62ac27633cde08e9', class: "co-checkbox-group__labels" }, this.label && h("span", { key: 'f1c4af391f16486910353cfa271a99c0800efaf7', class: "co-checkbox-group__label" }, this.label), this.secondaryLabel && (h("span", { key: 'bb91d781eb3c76b3cf346d7c09b6aa67074cb7c6', class: "co-checkbox-group__secondary-label" }, this.secondaryLabel)))), h("div", { key: 'ea0258b1106e9a13ad869823606fa86ed3044431', class: {
|
|
78
78
|
'co-checkbox-group__options': true,
|
|
79
79
|
[`co-checkbox-group__options--${this.direction}`]: true,
|
|
80
80
|
} }, opts.map(opt => {
|
|
@@ -89,7 +89,7 @@ export class CoCheckboxGroup {
|
|
|
89
89
|
'co-checkbox-group__box--checked': isChecked,
|
|
90
90
|
'co-checkbox-group__box--disabled': isDisabled,
|
|
91
91
|
}, role: "checkbox", "aria-checked": String(isChecked), "aria-label": opt.label }), h("span", { class: "co-checkbox-group__option-label" }, opt.label)));
|
|
92
|
-
})), this.helperText && (h("div", { key: '
|
|
92
|
+
})), this.helperText && (h("div", { key: 'c0f01f638a2380f8f124350f4feebe768359e16d', class: `co-checkbox-group__helper co-checkbox-group__helper--${this.status}` }, this.statusIcon && (h("co-icon", { key: '81d770840578006abea0a2e36f5e7162c1773765', name: this.statusIcon, size: 14, weight: "fill", class: "co-checkbox-group__helper-icon" })), h("span", { key: 'ae77c9a6f140d4fb59bfd0d2e4a61b9063d4cdab', class: "co-checkbox-group__helper-text" }, this.helperText)))));
|
|
93
93
|
}
|
|
94
94
|
static get is() { return "co-checkbox-group"; }
|
|
95
95
|
static get encapsulation() { return "shadow"; }
|
|
@@ -42,6 +42,12 @@ button.co-chip:focus-visible {
|
|
|
42
42
|
min-width: 0;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
/* Two-tone muted value suffix (": <value>"), sits inside the label so the
|
|
46
|
+
flex gap never separates it from the base word. */
|
|
47
|
+
.co-chip__value {
|
|
48
|
+
color: var(--co-chip-value-color, var(--co-color-gray-500, #888888));
|
|
49
|
+
}
|
|
50
|
+
|
|
45
51
|
/* ═══════════════════════════════════════════════════════════════
|
|
46
52
|
VARIANT: FILLED — default is a neutral gray pill (filter / tag look).
|
|
47
53
|
Use color="primary" for the emphatic dark variant.
|
|
@@ -90,6 +96,23 @@ button.co-chip:focus-visible {
|
|
|
90
96
|
color: #fff;
|
|
91
97
|
}
|
|
92
98
|
|
|
99
|
+
.co-chip--filled.co-chip--pending {
|
|
100
|
+
background: var(--co-color-status-pending);
|
|
101
|
+
color: #fff;
|
|
102
|
+
}
|
|
103
|
+
.co-chip--filled.co-chip--progress {
|
|
104
|
+
background: var(--co-color-status-progress);
|
|
105
|
+
color: #fff;
|
|
106
|
+
}
|
|
107
|
+
.co-chip--filled.co-chip--review {
|
|
108
|
+
background: var(--co-color-status-review);
|
|
109
|
+
color: #fff;
|
|
110
|
+
}
|
|
111
|
+
.co-chip--filled.co-chip--submitted {
|
|
112
|
+
background: var(--co-color-status-submitted);
|
|
113
|
+
color: #fff;
|
|
114
|
+
}
|
|
115
|
+
|
|
93
116
|
/* ═══════════════════════════════════════════════════════════════
|
|
94
117
|
VARIANT: OUTLINED (transparent bg, border, dark text)
|
|
95
118
|
═══════════════════════════════════════════════════════════════ */
|
|
@@ -230,20 +253,29 @@ button.co-chip--disabled {
|
|
|
230
253
|
ICON SLOTS & REMOVE BUTTON
|
|
231
254
|
═══════════════════════════════════════════════════════════════ */
|
|
232
255
|
.co-chip__icon-left,
|
|
233
|
-
.co-chip__icon-right
|
|
256
|
+
.co-chip__icon-right,
|
|
257
|
+
.co-chip__dot,
|
|
258
|
+
.co-chip__trailing {
|
|
234
259
|
display: inline-flex;
|
|
235
260
|
flex-shrink: 0;
|
|
236
261
|
align-items: center;
|
|
237
262
|
}
|
|
238
263
|
|
|
264
|
+
/* Trailing prop-based icon inherits the chip colour by default. */
|
|
265
|
+
.co-chip__trailing {
|
|
266
|
+
color: var(--co-chip-trailing-color, currentColor);
|
|
267
|
+
}
|
|
268
|
+
|
|
239
269
|
.co-chip--large .co-chip__icon-left,
|
|
240
|
-
.co-chip--large .co-chip__icon-right
|
|
270
|
+
.co-chip--large .co-chip__icon-right,
|
|
271
|
+
.co-chip--large .co-chip__dot {
|
|
241
272
|
width: 16px;
|
|
242
273
|
height: 16px;
|
|
243
274
|
}
|
|
244
275
|
|
|
245
276
|
.co-chip--small .co-chip__icon-left,
|
|
246
|
-
.co-chip--small .co-chip__icon-right
|
|
277
|
+
.co-chip--small .co-chip__icon-right,
|
|
278
|
+
.co-chip--small .co-chip__dot {
|
|
247
279
|
width: 10px;
|
|
248
280
|
height: 10px;
|
|
249
281
|
}
|
|
@@ -254,7 +286,7 @@ button.co-chip--disabled {
|
|
|
254
286
|
flex-shrink: 0;
|
|
255
287
|
align-items: center;
|
|
256
288
|
cursor: pointer;
|
|
257
|
-
opacity:
|
|
289
|
+
opacity: 1;
|
|
258
290
|
transition: opacity 0.1s ease;
|
|
259
291
|
border: none;
|
|
260
292
|
background: transparent;
|
|
@@ -263,12 +295,12 @@ button.co-chip--disabled {
|
|
|
263
295
|
}
|
|
264
296
|
|
|
265
297
|
.co-chip__remove:hover {
|
|
266
|
-
opacity:
|
|
298
|
+
opacity: 0.7;
|
|
267
299
|
}
|
|
268
300
|
|
|
269
301
|
.co-chip--large .co-chip__remove {
|
|
270
|
-
width:
|
|
271
|
-
height:
|
|
302
|
+
width: 16px;
|
|
303
|
+
height: 16px;
|
|
272
304
|
}
|
|
273
305
|
|
|
274
306
|
.co-chip--small .co-chip__remove {
|
|
@@ -281,3 +313,46 @@ button.co-chip--disabled {
|
|
|
281
313
|
width: 100%;
|
|
282
314
|
height: 100%;
|
|
283
315
|
}
|
|
316
|
+
|
|
317
|
+
/* ═══════════════════════════════════════════════════════════════
|
|
318
|
+
VARIANT: FILTER — Cloud Drive filter-trigger pill.
|
|
319
|
+
White pill with an inset hairline ring, a tinted leading icon, a
|
|
320
|
+
two-tone muted value suffix and a trailing caret.
|
|
321
|
+
Fixed metrics: height 34, padding 0 12, gap 7, font-size 13.5.
|
|
322
|
+
Declared with .co-chip.co-chip--filter so these override the
|
|
323
|
+
size/icon-mode padding + gap rules (equal specificity, later in source).
|
|
324
|
+
═══════════════════════════════════════════════════════════════ */
|
|
325
|
+
.co-chip.co-chip--filter {
|
|
326
|
+
height: 34px;
|
|
327
|
+
padding: 0 12px;
|
|
328
|
+
gap: 7px;
|
|
329
|
+
font-size: 13.5px;
|
|
330
|
+
border-radius: var(--co-border-radius-full);
|
|
331
|
+
background: var(--co-color-base-blanco, #fff);
|
|
332
|
+
color: var(--co-color-base-negro, #1f1c1b);
|
|
333
|
+
border-color: transparent;
|
|
334
|
+
box-shadow: inset 0 0 0 1px var(--co-color-opacity-negro-16, rgba(0, 0, 0, 0.16));
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/* Leading icon (prop- or slot-based) tinted gray-500 in this mode. */
|
|
338
|
+
.co-chip--filter .co-chip__icon-left {
|
|
339
|
+
color: var(--co-color-gray-500, #888888);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* Trailing caret is a subtle gray-400. */
|
|
343
|
+
.co-chip--filter .co-chip__trailing {
|
|
344
|
+
color: var(--co-color-gray-400, #a0a0a0);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.co-chip--filter.co-chip--clickable:hover:not(.co-chip--disabled) {
|
|
348
|
+
box-shadow: inset 0 0 0 1px var(--co-color-opacity-negro-25, rgba(0, 0, 0, 0.25));
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.co-chip--filter.co-chip--clickable:active:not(.co-chip--disabled) {
|
|
352
|
+
background: var(--co-color-gray-100, #f6f6f6);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/* Open/active trigger tint (consumer toggles `selected` while the menu is open). */
|
|
356
|
+
.co-chip--filter.co-chip--selected {
|
|
357
|
+
background: var(--co-color-gray-100, #f6f6f6);
|
|
358
|
+
}
|
|
@@ -17,14 +17,20 @@ export class CoChip {
|
|
|
17
17
|
* - both = icon before + icon after (Figma "2nd Icon")
|
|
18
18
|
*/
|
|
19
19
|
this.iconMode = 'none';
|
|
20
|
-
/** Visual variant
|
|
20
|
+
/** Visual variant.
|
|
21
|
+
* - filled/outlined = existing tag/chip looks (unchanged defaults).
|
|
22
|
+
* - filter = Cloud Drive filter-trigger pill (white pill, inset hairline
|
|
23
|
+
* ring, tinted leading icon, two-tone value, trailing caret). */
|
|
21
24
|
this.variant = 'filled';
|
|
22
25
|
/** Semantic color */
|
|
23
26
|
this.color = 'default';
|
|
24
|
-
/** Icon weight applied to prop-based iconLeft / iconRight. */
|
|
27
|
+
/** Icon weight applied to prop-based iconLeft / iconRight / trailingIcon. */
|
|
25
28
|
this.iconWeight = 'regular';
|
|
26
|
-
/** Show dismiss/remove button and emit coRemove on click
|
|
29
|
+
/** Show dismiss/remove button and emit coRemove on click. Reflected so it
|
|
30
|
+
* survives lazy hydration when set via a framework wrapper. */
|
|
27
31
|
this.removable = false;
|
|
32
|
+
/** Show a leading colour dot (status/value colour). Reflected for hydration. */
|
|
33
|
+
this.dot = false;
|
|
28
34
|
/** Make the chip clickable (emits coClick) */
|
|
29
35
|
this.clickable = false;
|
|
30
36
|
/** Disabled state */
|
|
@@ -48,10 +54,12 @@ export class CoChip {
|
|
|
48
54
|
const hasLeftSlot = this.iconMode === 'left' || this.iconMode === 'both';
|
|
49
55
|
const hasRightSlot = this.iconMode === 'both' && !this.removable;
|
|
50
56
|
const iconSize = this.size === 'large' ? 16 : 10;
|
|
51
|
-
const removeIconSize = this.size === 'large' ?
|
|
52
|
-
//
|
|
53
|
-
const
|
|
54
|
-
|
|
57
|
+
const removeIconSize = this.size === 'large' ? 16 : 10;
|
|
58
|
+
// Filter-variant trailing caret is a fixed 13px; otherwise match icon size.
|
|
59
|
+
const trailingIconSize = this.variant === 'filter' ? 13 : iconSize;
|
|
60
|
+
// Determine effective icon mode for CSS padding (the dot counts as a left icon).
|
|
61
|
+
const hasAnyLeft = hasLeftSlot || !!this.iconLeft || this.dot;
|
|
62
|
+
const hasAnyRight = hasRightSlot || !!this.iconRight || this.removable || !!this.trailingIcon;
|
|
55
63
|
let effectiveIconMode;
|
|
56
64
|
if (hasAnyLeft && hasAnyRight)
|
|
57
65
|
effectiveIconMode = 'both';
|
|
@@ -62,7 +70,7 @@ export class CoChip {
|
|
|
62
70
|
else
|
|
63
71
|
effectiveIconMode = 'none';
|
|
64
72
|
const Tag = this.clickable ? 'button' : 'div';
|
|
65
|
-
return (h(Tag, { key: '
|
|
73
|
+
return (h(Tag, { key: '2a0ec169b9c4ec0516d275d3787f7f02bcc4815f', class: {
|
|
66
74
|
'co-chip': true,
|
|
67
75
|
[`co-chip--${this.shape}`]: true,
|
|
68
76
|
[`co-chip--${this.size}`]: true,
|
|
@@ -72,7 +80,7 @@ export class CoChip {
|
|
|
72
80
|
'co-chip--clickable': this.clickable,
|
|
73
81
|
'co-chip--disabled': this.disabled,
|
|
74
82
|
'co-chip--selected': this.selected,
|
|
75
|
-
}, part: "chip", type: this.clickable ? 'button' : undefined, disabled: this.clickable ? this.disabled : undefined, onClick: this.handleClick }, this.iconLeft && !hasLeftSlot && (h("span", { key: '
|
|
83
|
+
}, part: "chip", type: this.clickable ? 'button' : undefined, disabled: this.clickable ? this.disabled : undefined, onClick: this.handleClick }, this.dot && (h("span", { key: '43dac38d1aba1dead22ac164926167c38e66a9fe', class: "co-chip__dot", part: "dot", style: this.dotColor ? { color: this.dotColor } : undefined }, h("co-icon", { key: '3797d8f1081f82ed4f44bb99ffe26087b45c3d3a', name: "circle", size: iconSize, weight: "fill" }))), this.iconLeft && !hasLeftSlot && (h("span", { key: '742a11aaefce99a0bbf1c1bd6c2c3ca8b31d63cd', class: "co-chip__icon-left", part: "icon-left" }, h("co-icon", { key: 'a9f2c057d7df6e51f5be5c757e26280780fe1ae9', name: this.iconLeft, size: iconSize, weight: this.iconWeight }))), hasLeftSlot && (h("span", { key: 'c8f56d8525efb0a095f0c21d9cf0626964484510', class: "co-chip__icon-left", part: "icon-left" }, h("slot", { key: '01fb166b21b09cdb5b8b86dca1ec2a9fc57f6848', name: "icon-left" }))), h("span", { key: 'd6201c5dded49a5bdc32110d8e11165aeac99eac', class: "co-chip__label" }, h("slot", { key: 'd947e19d407485bcfcedd6eacc4af81c3059166b' }, this.label), this.valueLabel != null && this.valueLabel !== '' && (h("span", { key: '53108c759b51c53fa649776166396a9f609d20d0', class: "co-chip__value", part: "value" }, `: ${this.valueLabel}`))), this.iconRight && !hasRightSlot && !this.removable && (h("span", { key: '493961698dc761c41cf6a6e24d20e61701f594fa', class: "co-chip__icon-right", part: "icon-right" }, h("co-icon", { key: 'c9f198139af0e17dedd3464d9ccdd7b6c6163aff', name: this.iconRight, size: iconSize, weight: this.iconWeight }))), hasRightSlot && (h("span", { key: 'ab0224fdb675c1706cda2395f57ddf6f17160185', class: "co-chip__icon-right", part: "icon-right" }, h("slot", { key: '3e1a2cc6cde7a2834f9c872925aa4a2ee2136a9f', name: "icon-right" }))), this.removable && (h("span", { key: '4eb54aae2e81bf76bd99cf1ba808403de8f98d10', class: "co-chip__remove", part: "remove", role: "button", tabIndex: this.disabled ? -1 : 0, onClick: this.handleRemove, "aria-label": "Remove" }, h("co-icon", { key: 'e9736b8d92d01df66a670a67e7ef05920c6a527b', name: "x-circle", size: removeIconSize, weight: "fill" }))), this.trailingIcon && (h("span", { key: 'd56053da1f81ebfbd276f314c08f0ca9d8b722c8', class: "co-chip__trailing", part: "trailing" }, h("co-icon", { key: 'f6cf7398888677b48622415b0d1e65f2117a841a', name: this.trailingIcon, size: trailingIconSize, weight: this.iconWeight })))));
|
|
76
84
|
}
|
|
77
85
|
static get is() { return "co-chip"; }
|
|
78
86
|
static get encapsulation() { return "shadow"; }
|
|
@@ -152,15 +160,15 @@ export class CoChip {
|
|
|
152
160
|
"type": "string",
|
|
153
161
|
"mutable": false,
|
|
154
162
|
"complexType": {
|
|
155
|
-
"original": "'filled' | 'outlined'",
|
|
156
|
-
"resolved": "\"filled\" | \"outlined\"",
|
|
163
|
+
"original": "'filled' | 'outlined' | 'filter'",
|
|
164
|
+
"resolved": "\"filled\" | \"filter\" | \"outlined\"",
|
|
157
165
|
"references": {}
|
|
158
166
|
},
|
|
159
167
|
"required": false,
|
|
160
168
|
"optional": false,
|
|
161
169
|
"docs": {
|
|
162
170
|
"tags": [],
|
|
163
|
-
"text": "Visual variant"
|
|
171
|
+
"text": "Visual variant.\n- filled/outlined = existing tag/chip looks (unchanged defaults).\n- filter = Cloud Drive filter-trigger pill (white pill, inset hairline\n ring, tinted leading icon, two-tone value, trailing caret)."
|
|
164
172
|
},
|
|
165
173
|
"getter": false,
|
|
166
174
|
"setter": false,
|
|
@@ -172,8 +180,8 @@ export class CoChip {
|
|
|
172
180
|
"type": "string",
|
|
173
181
|
"mutable": false,
|
|
174
182
|
"complexType": {
|
|
175
|
-
"original": "'default' | 'primary' | 'success' | 'error' | 'warning' | 'info'",
|
|
176
|
-
"resolved": "\"default\" | \"error\" | \"info\" | \"primary\" | \"success\" | \"warning\"",
|
|
183
|
+
"original": "| 'default' | 'primary' | 'success' | 'error' | 'warning' | 'info'\n | 'pending' | 'progress' | 'review' | 'submitted'",
|
|
184
|
+
"resolved": "\"default\" | \"error\" | \"info\" | \"pending\" | \"primary\" | \"progress\" | \"review\" | \"submitted\" | \"success\" | \"warning\"",
|
|
177
185
|
"references": {}
|
|
178
186
|
},
|
|
179
187
|
"required": false,
|
|
@@ -257,7 +265,7 @@ export class CoChip {
|
|
|
257
265
|
"optional": false,
|
|
258
266
|
"docs": {
|
|
259
267
|
"tags": [],
|
|
260
|
-
"text": "Icon weight applied to prop-based iconLeft / iconRight."
|
|
268
|
+
"text": "Icon weight applied to prop-based iconLeft / iconRight / trailingIcon."
|
|
261
269
|
},
|
|
262
270
|
"getter": false,
|
|
263
271
|
"setter": false,
|
|
@@ -265,6 +273,44 @@ export class CoChip {
|
|
|
265
273
|
"attribute": "icon-weight",
|
|
266
274
|
"defaultValue": "'regular'"
|
|
267
275
|
},
|
|
276
|
+
"valueLabel": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"mutable": false,
|
|
279
|
+
"complexType": {
|
|
280
|
+
"original": "string",
|
|
281
|
+
"resolved": "string | undefined",
|
|
282
|
+
"references": {}
|
|
283
|
+
},
|
|
284
|
+
"required": false,
|
|
285
|
+
"optional": true,
|
|
286
|
+
"docs": {
|
|
287
|
+
"tags": [],
|
|
288
|
+
"text": "Muted two-tone value suffix rendered right after the label as\n\": <valueLabel>\" (e.g. label \"Ordenar\" + valueLabel \"Reciente\" \u2192\n\"Ordenar: Reciente\"). The suffix is coloured with --co-chip-value-color\n(default gray-500). Omit for a plain chip."
|
|
289
|
+
},
|
|
290
|
+
"getter": false,
|
|
291
|
+
"setter": false,
|
|
292
|
+
"reflect": false,
|
|
293
|
+
"attribute": "value-label"
|
|
294
|
+
},
|
|
295
|
+
"trailingIcon": {
|
|
296
|
+
"type": "string",
|
|
297
|
+
"mutable": false,
|
|
298
|
+
"complexType": {
|
|
299
|
+
"original": "string",
|
|
300
|
+
"resolved": "string | undefined",
|
|
301
|
+
"references": {}
|
|
302
|
+
},
|
|
303
|
+
"required": false,
|
|
304
|
+
"optional": true,
|
|
305
|
+
"docs": {
|
|
306
|
+
"tags": [],
|
|
307
|
+
"text": "Trailing icon name (prop-based, uses co-icon \u2014 any Phosphor icon name),\ne.g. 'caret-down'. In the `filter` variant it renders at 13px in gray-400;\nin other variants it inherits the chip text colour."
|
|
308
|
+
},
|
|
309
|
+
"getter": false,
|
|
310
|
+
"setter": false,
|
|
311
|
+
"reflect": false,
|
|
312
|
+
"attribute": "trailing-icon"
|
|
313
|
+
},
|
|
268
314
|
"removable": {
|
|
269
315
|
"type": "boolean",
|
|
270
316
|
"mutable": false,
|
|
@@ -277,14 +323,53 @@ export class CoChip {
|
|
|
277
323
|
"optional": false,
|
|
278
324
|
"docs": {
|
|
279
325
|
"tags": [],
|
|
280
|
-
"text": "Show dismiss/remove button and emit coRemove on click"
|
|
326
|
+
"text": "Show dismiss/remove button and emit coRemove on click. Reflected so it\nsurvives lazy hydration when set via a framework wrapper."
|
|
281
327
|
},
|
|
282
328
|
"getter": false,
|
|
283
329
|
"setter": false,
|
|
284
|
-
"reflect":
|
|
330
|
+
"reflect": true,
|
|
285
331
|
"attribute": "removable",
|
|
286
332
|
"defaultValue": "false"
|
|
287
333
|
},
|
|
334
|
+
"dot": {
|
|
335
|
+
"type": "boolean",
|
|
336
|
+
"mutable": false,
|
|
337
|
+
"complexType": {
|
|
338
|
+
"original": "boolean",
|
|
339
|
+
"resolved": "boolean",
|
|
340
|
+
"references": {}
|
|
341
|
+
},
|
|
342
|
+
"required": false,
|
|
343
|
+
"optional": false,
|
|
344
|
+
"docs": {
|
|
345
|
+
"tags": [],
|
|
346
|
+
"text": "Show a leading colour dot (status/value colour). Reflected for hydration."
|
|
347
|
+
},
|
|
348
|
+
"getter": false,
|
|
349
|
+
"setter": false,
|
|
350
|
+
"reflect": true,
|
|
351
|
+
"attribute": "dot",
|
|
352
|
+
"defaultValue": "false"
|
|
353
|
+
},
|
|
354
|
+
"dotColor": {
|
|
355
|
+
"type": "string",
|
|
356
|
+
"mutable": false,
|
|
357
|
+
"complexType": {
|
|
358
|
+
"original": "string",
|
|
359
|
+
"resolved": "string | undefined",
|
|
360
|
+
"references": {}
|
|
361
|
+
},
|
|
362
|
+
"required": false,
|
|
363
|
+
"optional": true,
|
|
364
|
+
"docs": {
|
|
365
|
+
"tags": [],
|
|
366
|
+
"text": "Colour of the leading dot (hex or any CSS colour). Reflected for hydration."
|
|
367
|
+
},
|
|
368
|
+
"getter": false,
|
|
369
|
+
"setter": false,
|
|
370
|
+
"reflect": true,
|
|
371
|
+
"attribute": "dot-color"
|
|
372
|
+
},
|
|
288
373
|
"clickable": {
|
|
289
374
|
"type": "boolean",
|
|
290
375
|
"mutable": false,
|
|
@@ -52,7 +52,9 @@
|
|
|
52
52
|
align-items: center;
|
|
53
53
|
gap: var(--co-spacing-sm2);
|
|
54
54
|
padding: var(--co-spacing-sm2) var(--co-spacing-md);
|
|
55
|
-
background: var(--co-semantic-surface-secondary);
|
|
55
|
+
background: color-mix(in srgb, var(--co-semantic-surface-secondary) 55%, transparent);
|
|
56
|
+
-webkit-backdrop-filter: blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate));
|
|
57
|
+
backdrop-filter: blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate));
|
|
56
58
|
border: 1px solid var(--co-semantic-border-subtle);
|
|
57
59
|
border-radius: var(--co-border-radius-xs);
|
|
58
60
|
min-height: 40px;
|
|
@@ -61,6 +63,34 @@
|
|
|
61
63
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
62
64
|
}
|
|
63
65
|
|
|
66
|
+
/* ── Size variants (mirror co-input: s 28 / sm 32 / md 40 / lg 48).
|
|
67
|
+
The 24px swatch shrinks on the compact sizes so it fits the height. ── */
|
|
68
|
+
.co-color-picker--s .co-color-picker__trigger {
|
|
69
|
+
min-height: 28px;
|
|
70
|
+
padding: var(--co-spacing-xxs) var(--co-spacing-sm);
|
|
71
|
+
font-size: var(--co-font-size-12);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.co-color-picker--sm .co-color-picker__trigger {
|
|
75
|
+
min-height: 32px;
|
|
76
|
+
padding: var(--co-spacing-xs) var(--co-spacing-sm);
|
|
77
|
+
font-size: var(--co-font-size-14);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* md is the default (40px) — no override needed */
|
|
81
|
+
|
|
82
|
+
.co-color-picker--lg .co-color-picker__trigger {
|
|
83
|
+
min-height: 48px;
|
|
84
|
+
padding: var(--co-spacing-sm) var(--co-spacing-lg);
|
|
85
|
+
font-size: var(--co-font-size-16);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.co-color-picker--s .co-color-picker__swatch,
|
|
89
|
+
.co-color-picker--sm .co-color-picker__swatch {
|
|
90
|
+
width: 18px;
|
|
91
|
+
height: 18px;
|
|
92
|
+
}
|
|
93
|
+
|
|
64
94
|
.co-color-picker__trigger:hover {
|
|
65
95
|
border-color: var(--co-semantic-border-default);
|
|
66
96
|
}
|
|
@@ -222,3 +252,7 @@
|
|
|
222
252
|
grid-column: 2;
|
|
223
253
|
min-width: 0;
|
|
224
254
|
}
|
|
255
|
+
|
|
256
|
+
@supports not (background: color-mix(in srgb, red, transparent)) {
|
|
257
|
+
.co-color-picker__trigger { background: var(--co-semantic-surface-secondary); }
|
|
258
|
+
}
|