@prolibu-suite/cobalt-core 0.6.0 → 0.7.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 +1049 -52
- package/dist/cjs/co-accordion.cjs.entry.js +1 -1
- package/dist/cjs/co-app-shell.cjs.entry.js +1 -1
- package/dist/cjs/co-autocomplete.cjs.entry.js +3 -3
- package/dist/cjs/co-avatar-group.cjs.entry.js +3 -3
- package/dist/cjs/{co-tooltip.cjs.entry.js → co-avatar_2.cjs.entry.js} +95 -3
- package/dist/cjs/co-badge.cjs.entry.js +2 -2
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +4 -4
- package/dist/cjs/co-breadcrumb-item.cjs.entry.js +3 -3
- package/dist/cjs/co-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/co-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-button.cjs.entry.js +3 -3
- package/dist/cjs/co-calendar-month.cjs.entry.js +2 -2
- package/dist/cjs/co-calendar_3.cjs.entry.js +8 -8
- package/dist/cjs/co-card.cjs.entry.js +3 -3
- package/dist/cjs/co-carousel-item.cjs.entry.js +17 -0
- package/dist/cjs/co-carousel.cjs.entry.js +368 -0
- package/dist/cjs/co-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/co-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/co-chip_2.cjs.entry.js +5 -5
- package/dist/cjs/co-color-picker.cjs.entry.js +5 -5
- package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-combobox.cjs.entry.js +3 -3
- package/dist/cjs/co-command-search.cjs.entry.js +1 -1
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +2 -2
- package/dist/cjs/co-date-picker.cjs.entry.js +11 -4
- package/dist/cjs/co-date-range-picker.cjs.entry.js +9 -3
- package/dist/cjs/co-date-range.cjs.entry.js +2 -2
- package/dist/cjs/co-drive-card.cjs.entry.js +2 -2
- package/dist/cjs/co-drop-zone.cjs.entry.js +2 -2
- package/dist/cjs/co-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/co-event-calendar.cjs.entry.js +3 -3
- package/dist/cjs/co-fab.cjs.entry.js +21 -6
- package/dist/cjs/co-file-field.cjs.entry.js +8 -8
- package/dist/cjs/co-file-type-tile.cjs.entry.js +3 -3
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +2 -2
- package/dist/cjs/co-icon.cjs.entry.js +3 -3
- package/dist/cjs/co-input.cjs.entry.js +9 -3
- package/dist/cjs/co-json-field.cjs.entry.js +6 -6
- package/dist/cjs/co-lightbox.cjs.entry.js +33 -6
- package/dist/cjs/co-list-footer.cjs.entry.js +2 -2
- package/dist/cjs/co-list-item.cjs.entry.js +5 -5
- package/dist/cjs/co-loader.cjs.entry.js +1 -1
- package/dist/cjs/co-media-thumb.cjs.entry.js +3 -3
- package/dist/cjs/co-menu-divider.cjs.entry.js +2 -2
- package/dist/cjs/co-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/co-menu.cjs.entry.js +2 -2
- package/dist/cjs/co-modal.cjs.entry.js +3 -3
- package/dist/cjs/co-navbar.cjs.entry.js +3 -3
- package/dist/cjs/co-number-field.cjs.entry.js +5 -5
- package/dist/cjs/co-overlay.cjs.entry.js +2 -2
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +4 -4
- package/dist/cjs/co-popover.cjs.entry.js +1 -1
- package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-progress-circle.cjs.entry.js +3 -3
- package/dist/cjs/co-radio-group.cjs.entry.js +1 -1
- 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 +11 -5
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +22 -7
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +36 -4
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +36 -6
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-segmented-bar.cjs.entry.js +1 -1
- package/dist/cjs/co-select.cjs.entry.js +13 -7
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +1 -1
- package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/co-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/co-slider.cjs.entry.js +3 -3
- package/dist/cjs/co-switch.cjs.entry.js +5 -5
- package/dist/cjs/co-tab-group.cjs.entry.js +4 -4
- package/dist/cjs/co-tab.cjs.entry.js +3 -3
- package/dist/cjs/co-tags-field.cjs.entry.js +9 -9
- package/dist/cjs/co-textarea.cjs.entry.js +13 -7
- package/dist/cjs/co-toast.cjs.entry.js +1 -1
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/co-transfer-list.cjs.entry.js +1 -1
- package/dist/cjs/co-video.cjs.entry.js +3 -3
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/{fieldChip-D8YJCyQF.js → fieldChip-B_npd9rL.js} +1 -1
- package/dist/cjs/{index-4y1Dm145.js → index-DFZ5YhIT.js} +171 -11
- package/dist/cjs/{index-DxEFsH_t.js → index-kBiXCEE7.js} +13 -9
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{requiredMark-B3pKyqYI.js → requiredMark-DuMIcKtt.js} +1 -1
- package/dist/cjs/{richTextI18n-B7ktXg3M.js → richTextI18n-B28uAhh4.js} +3 -0
- package/dist/cjs/{toolbar-config-3PlT-3zm.js → toolbar-config-BQfWTW6P.js} +2 -0
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/{p-86e60cfa.entry.js → p-0110108f.entry.js} +1 -1
- package/dist/cobalt/p-037cc571.entry.js +1 -0
- package/dist/cobalt/{p-47a2dd67.entry.js → p-080f62e4.entry.js} +1 -1
- package/dist/cobalt/{p-8128e84a.entry.js → p-0a294205.entry.js} +1 -1
- package/dist/cobalt/{p-a9afbaa6.entry.js → p-0b7359bb.entry.js} +1 -1
- package/dist/cobalt/p-0b92167a.entry.js +1 -0
- package/dist/cobalt/p-0bc5a962.entry.js +1 -0
- package/dist/cobalt/{p-02c5a9a9.entry.js → p-202eadfc.entry.js} +1 -1
- package/dist/cobalt/{p-1681ce1d.entry.js → p-264508ae.entry.js} +1 -1
- package/dist/cobalt/{p-b8ec0cc1.entry.js → p-2661557c.entry.js} +1 -1
- package/dist/cobalt/{p-771bc8fe.entry.js → p-27dce0ac.entry.js} +1 -1
- package/dist/cobalt/{p-c3462def.entry.js → p-28ab9cef.entry.js} +1 -1
- package/dist/cobalt/{p-d9608046.entry.js → p-2da09948.entry.js} +1 -1
- package/dist/cobalt/p-2f6c7eb5.entry.js +1 -0
- package/dist/cobalt/{p-002e5beb.entry.js → p-30c80e3a.entry.js} +1 -1
- package/dist/cobalt/p-331a0108.entry.js +1 -0
- package/dist/cobalt/{p-c0f39ddd.entry.js → p-36ad3a96.entry.js} +1 -1
- package/dist/cobalt/{p-8dfb6886.entry.js → p-3af74ab8.entry.js} +1 -1
- package/dist/cobalt/{p-c6fedc59.entry.js → p-3b9be8a8.entry.js} +1 -1
- package/dist/cobalt/p-3c681e3a.entry.js +1 -0
- package/dist/cobalt/{p-14d4c5c7.entry.js → p-3ecbbe93.entry.js} +1 -1
- package/dist/cobalt/{p-9c873a6a.entry.js → p-3f1030fb.entry.js} +1 -1
- package/dist/cobalt/p-3f7215e7.entry.js +1 -0
- package/dist/cobalt/p-431cec34.entry.js +1 -0
- package/dist/cobalt/p-48fbf051.entry.js +1 -0
- package/dist/cobalt/{p-e420d5c9.entry.js → p-4f615cbd.entry.js} +1 -1
- package/dist/cobalt/{p-81cfd951.entry.js → p-5319ac3f.entry.js} +1 -1
- package/dist/cobalt/p-532baca4.entry.js +1 -0
- package/dist/cobalt/{p-ba66584f.entry.js → p-53a276a8.entry.js} +1 -1
- package/dist/cobalt/{p-f0de4415.entry.js → p-543cc00d.entry.js} +1 -1
- package/dist/cobalt/{p-f073b467.entry.js → p-54857f78.entry.js} +1 -1
- package/dist/cobalt/{p-85eed52c.entry.js → p-54f8c68c.entry.js} +1 -1
- package/dist/cobalt/{p-9c6ca902.entry.js → p-585c132d.entry.js} +1 -1
- package/dist/cobalt/{p-8f194753.entry.js → p-59b114ab.entry.js} +1 -1
- package/dist/cobalt/{p-2d1cbd7f.entry.js → p-5b84cf37.entry.js} +1 -1
- package/dist/cobalt/{p-0d7536a8.entry.js → p-5c250889.entry.js} +1 -1
- package/dist/cobalt/{p-e33853fa.entry.js → p-5d0510a5.entry.js} +1 -1
- package/dist/cobalt/{p-f86ccb38.entry.js → p-5e246304.entry.js} +1 -1
- package/dist/cobalt/{p-075eed3d.entry.js → p-616e4286.entry.js} +1 -1
- package/dist/cobalt/{p-8e823c15.entry.js → p-64115d66.entry.js} +1 -1
- package/dist/cobalt/{p-495c9b99.entry.js → p-69723cc1.entry.js} +1 -1
- package/dist/cobalt/{p-6ad1625a.entry.js → p-69ce2269.entry.js} +1 -1
- package/dist/cobalt/{p-b1197c08.entry.js → p-6b38e8fb.entry.js} +1 -1
- package/dist/cobalt/{p-5c43d30e.entry.js → p-7178113f.entry.js} +1 -1
- package/dist/cobalt/p-741cf623.entry.js +1 -0
- package/dist/cobalt/{p-1726ce07.entry.js → p-75515a8e.entry.js} +1 -1
- package/dist/cobalt/{p-fd27c2bd.entry.js → p-7f78e45c.entry.js} +1 -1
- package/dist/cobalt/{p-3f06d373.entry.js → p-8155d781.entry.js} +1 -1
- package/dist/cobalt/{p-e710b9ea.entry.js → p-8fe5b07e.entry.js} +1 -1
- package/dist/cobalt/{p-9a587867.entry.js → p-9211e794.entry.js} +1 -1
- package/dist/cobalt/p-97875bde.entry.js +1 -0
- package/dist/cobalt/p-9824c478.entry.js +1 -0
- package/dist/cobalt/{p-cc0a4617.entry.js → p-9994fcd8.entry.js} +1 -1
- package/dist/cobalt/p-9bf42bf4.entry.js +1 -0
- package/dist/cobalt/{p-f6ac5301.entry.js → p-9fab9c1f.entry.js} +1 -1
- package/dist/cobalt/p-BCEz3S-z.js +2 -0
- package/dist/cobalt/{p-Bgxofdfb.js → p-BL0sCfMH.js} +1 -1
- package/dist/cobalt/p-BYKAgwq3.js +1 -0
- package/dist/cobalt/p-C-d15gih.js +1 -0
- package/dist/cobalt/p-D5gr2ent.js +1 -0
- package/dist/cobalt/p-WeuPA9Rw.js +1 -0
- package/dist/cobalt/{p-77d01b39.entry.js → p-a252f8c5.entry.js} +1 -1
- package/dist/cobalt/{p-809015dd.entry.js → p-b06af5c6.entry.js} +1 -1
- package/dist/cobalt/p-b87a2e7a.entry.js +1 -0
- package/dist/cobalt/{p-fb251497.entry.js → p-ba5c6aa7.entry.js} +1 -1
- package/dist/cobalt/{p-373cd08e.entry.js → p-bb00ae4a.entry.js} +1 -1
- package/dist/cobalt/{p-5edd0d3f.entry.js → p-bcd38114.entry.js} +1 -1
- package/dist/cobalt/{p-bb534985.entry.js → p-c237add6.entry.js} +1 -1
- package/dist/cobalt/{p-c750b2d2.entry.js → p-c3004e1c.entry.js} +1 -1
- package/dist/cobalt/p-c589ae25.entry.js +1 -0
- package/dist/cobalt/p-c635417b.entry.js +1 -0
- package/dist/cobalt/p-c7d9ff39.entry.js +1 -0
- package/dist/cobalt/{p-c1e53e4c.entry.js → p-c9528a5f.entry.js} +1 -1
- package/dist/cobalt/{p-20ba59a2.entry.js → p-cbac0a11.entry.js} +1 -1
- package/dist/cobalt/p-cd28aa6d.entry.js +1 -0
- package/dist/cobalt/{p-5c3101b5.entry.js → p-cdedaa82.entry.js} +1 -1
- package/dist/cobalt/{p-627d2d1a.entry.js → p-ceb85838.entry.js} +1 -1
- package/dist/cobalt/{p-5e9a9caf.entry.js → p-d3a1a604.entry.js} +1 -1
- package/dist/cobalt/{p-a6900010.entry.js → p-d71b800a.entry.js} +1 -1
- package/dist/cobalt/p-df752f6e.entry.js +1 -0
- package/dist/cobalt/{p-b4bed98b.entry.js → p-e1b468c1.entry.js} +1 -1
- package/dist/cobalt/{p-0d6a562d.entry.js → p-e4555fda.entry.js} +1 -1
- package/dist/cobalt/p-ec9dd3a3.entry.js +1 -0
- package/dist/cobalt/p-eec1c44c.entry.js +1 -0
- package/dist/cobalt/p-eeed80ac.entry.js +1 -0
- package/dist/cobalt/p-f0a98453.entry.js +1 -0
- package/dist/cobalt/{p-af4cb263.entry.js → p-ff581807.entry.js} +1 -1
- package/dist/cobalt/p-fffeb610.entry.js +1 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +1 -1
- package/dist/collection/components/co-avatar/co-avatar.css +23 -0
- package/dist/collection/components/co-avatar/co-avatar.js +24 -1
- package/dist/collection/components/co-avatar-group/co-avatar-group.css +9 -5
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +2 -2
- package/dist/collection/components/co-badge/co-badge.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +3 -3
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +1 -1
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +2 -2
- package/dist/collection/components/co-button/co-button.js +2 -2
- 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.js +1 -1
- package/dist/collection/components/co-card/co-card.js +2 -2
- package/dist/collection/components/co-carousel/co-carousel.css +152 -0
- package/dist/collection/components/co-carousel/co-carousel.js +633 -0
- package/dist/collection/components/co-carousel-item/co-carousel-item.css +6 -0
- package/dist/collection/components/co-carousel-item/co-carousel-item.js +25 -0
- package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
- package/dist/collection/components/co-chip/co-chip.js +2 -2
- package/dist/collection/components/co-color-picker/co-color-picker.css +11 -10
- package/dist/collection/components/co-color-picker/co-color-picker.js +2 -2
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.css +6 -8
- package/dist/collection/components/co-data-table/co-data-table.css +19 -4
- 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 +6 -7
- package/dist/collection/components/co-date-field/co-date-field.js +4 -4
- package/dist/collection/components/co-date-picker/co-date-picker.css +16 -0
- package/dist/collection/components/co-date-picker/co-date-picker.js +28 -1
- 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 +13 -1
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +26 -0
- package/dist/collection/components/co-drive-card/co-drive-card.js +1 -1
- package/dist/collection/components/co-drop-zone/co-drop-zone.js +1 -1
- package/dist/collection/components/co-empty-state/co-empty-state.js +2 -2
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +2 -2
- package/dist/collection/components/co-fab/co-fab.css +70 -10
- package/dist/collection/components/co-fab/co-fab.js +39 -4
- package/dist/collection/components/co-file-field/co-file-field.css +2 -2
- 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.js +2 -2
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +2 -2
- package/dist/collection/components/co-icon-button/co-icon-button.js +1 -1
- package/dist/collection/components/co-input/co-input.css +13 -1
- package/dist/collection/components/co-input/co-input.js +26 -0
- package/dist/collection/components/co-json-field/co-json-field.css +4 -8
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-lightbox/co-lightbox.css +12 -1
- package/dist/collection/components/co-lightbox/co-lightbox.js +31 -4
- package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
- package/dist/collection/components/co-list-item/co-list-item.js +4 -4
- package/dist/collection/components/co-media-thumb/co-media-thumb.js +2 -2
- package/dist/collection/components/co-menu/co-menu.js +1 -1
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-modal/co-modal.js +2 -2
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.css +1 -1
- package/dist/collection/components/co-number-field/co-number-field.js +2 -2
- package/dist/collection/components/co-option-list/co-option-list.js +2 -2
- package/dist/collection/components/co-overlay/co-overlay.js +1 -1
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.css +2 -2
- package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -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-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +17 -1
- package/dist/collection/components/co-ref-field/co-ref-field.js +27 -1
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +21 -3
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +97 -4
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +93 -3
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.css +19 -0
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +53 -4
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-select/co-select.css +12 -1
- package/dist/collection/components/co-select/co-select.js +30 -4
- 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-skeleton/co-skeleton.js +1 -1
- package/dist/collection/components/co-slider/co-slider.js +2 -2
- package/dist/collection/components/co-switch/co-switch.js +3 -3
- package/dist/collection/components/co-tab/co-tab.js +2 -2
- package/dist/collection/components/co-tab-group/co-tab-group.css +7 -4
- package/dist/collection/components/co-tab-group/co-tab-group.js +2 -2
- package/dist/collection/components/co-tags-field/co-tags-field.css +12 -21
- package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
- package/dist/collection/components/co-textarea/co-textarea.css +18 -8
- package/dist/collection/components/co-textarea/co-textarea.js +30 -4
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +2 -2
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +2 -2
- package/dist/collection/components/co-tooltip/co-tooltip.js +2 -2
- package/dist/collection/components/co-video/co-video.js +2 -2
- package/dist/collection/utils/carouselI18n.js +36 -0
- package/dist/collection/utils/richTextI18n.js +3 -0
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-autocomplete.js +1 -1
- package/dist/components/co-avatar-group.js +1 -1
- package/dist/components/co-avatar.js +1 -1
- package/dist/components/co-badge.js +1 -1
- package/dist/components/co-bottom-sheet.js +1 -1
- package/dist/components/co-breadcrumb-item.js +1 -1
- package/dist/components/co-breadcrumb.js +1 -1
- package/dist/components/co-button-group.js +1 -1
- package/dist/components/co-button.js +1 -1
- package/dist/components/co-calendar-month.js +1 -1
- package/dist/components/co-calendar.js +1 -1
- package/dist/components/co-card.js +1 -1
- package/dist/components/co-carousel-item.d.ts +11 -0
- package/dist/components/co-carousel-item.js +1 -0
- package/dist/components/co-carousel.d.ts +11 -0
- package/dist/components/co-carousel.js +1 -0
- 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.js +1 -1
- package/dist/components/co-drop-zone.js +1 -1
- package/dist/components/co-empty-state.js +1 -1
- package/dist/components/co-event-calendar.js +1 -1
- package/dist/components/co-fab.js +1 -1
- package/dist/components/co-file-field.js +1 -1
- package/dist/components/co-file-type-tile.js +1 -1
- 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.js +1 -1
- package/dist/components/co-list-item.js +1 -1
- package/dist/components/co-media-thumb.js +1 -1
- 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.js +1 -1
- 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-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-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.js +1 -1
- 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.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CNIs9j-h.js → p-9aNhJfTT.js} +1 -1
- package/dist/components/{p-QWi9AmnD.js → p-B0b9Etx4.js} +1 -1
- package/dist/components/{p-D4SOCy8I.js → p-B3U63yZw.js} +1 -1
- package/dist/components/p-B7Yv00g9.js +1 -0
- package/dist/components/{p-Bgxofdfb.js → p-BL0sCfMH.js} +1 -1
- package/dist/components/{p-DrQh1Cb8.js → p-BTa6ss5i.js} +1 -1
- package/dist/components/p-BtpRnpaF.js +1 -0
- package/dist/components/{p-lus32JrB.js → p-Bul6EdDX.js} +1 -1
- package/dist/components/{p-COb8X_fE.js → p-Bzg5FPSA.js} +1 -1
- package/dist/components/{p-Cam92sWP.js → p-CQ-8domm.js} +1 -1
- package/dist/components/{p-Bsq90mo4.js → p-CVeEoHr7.js} +1 -1
- package/dist/components/p-CYi6V_Ss.js +1 -0
- package/dist/components/{p-DvL2TcDG.js → p-Cd3inFSL.js} +1 -1
- package/dist/components/{p-OKwHt2i9.js → p-CuQjKAf5.js} +1 -1
- package/dist/components/{p-Ba5lW0pA.js → p-DKvTqEaf.js} +1 -1
- package/dist/components/p-DfpOEXHC.js +1 -0
- package/dist/components/p-DwwxS5bY.js +1 -0
- package/dist/components/p-T0UfY6rA.js +1 -0
- package/dist/components/p-WeuPA9Rw.js +1 -0
- package/dist/components/{p-_k-j03K-.js → p-oV_1MoAN.js} +1 -1
- package/dist/esm/co-accordion.entry.js +1 -1
- package/dist/esm/co-app-shell.entry.js +1 -1
- package/dist/esm/co-autocomplete.entry.js +3 -3
- package/dist/esm/co-avatar-group.entry.js +3 -3
- package/dist/esm/{co-tooltip.entry.js → co-avatar_2.entry.js} +95 -4
- package/dist/esm/co-badge.entry.js +2 -2
- package/dist/esm/co-bottom-sheet.entry.js +4 -4
- package/dist/esm/co-breadcrumb-item.entry.js +3 -3
- package/dist/esm/co-breadcrumb.entry.js +2 -2
- package/dist/esm/co-button-group.entry.js +3 -3
- package/dist/esm/co-button.entry.js +3 -3
- package/dist/esm/co-calendar-month.entry.js +2 -2
- package/dist/esm/co-calendar_3.entry.js +8 -8
- package/dist/esm/co-card.entry.js +3 -3
- package/dist/esm/co-carousel-item.entry.js +15 -0
- package/dist/esm/co-carousel.entry.js +366 -0
- package/dist/esm/co-checkbox-group.entry.js +1 -1
- package/dist/esm/co-checkbox.entry.js +4 -4
- package/dist/esm/co-chip_2.entry.js +5 -5
- package/dist/esm/co-color-picker.entry.js +5 -5
- package/dist/esm/co-column-picker.entry.js +3 -3
- package/dist/esm/co-combobox.entry.js +3 -3
- package/dist/esm/co-command-search.entry.js +1 -1
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +2 -2
- package/dist/esm/co-date-picker.entry.js +11 -4
- package/dist/esm/co-date-range-picker.entry.js +9 -3
- package/dist/esm/co-date-range.entry.js +2 -2
- package/dist/esm/co-drive-card.entry.js +2 -2
- package/dist/esm/co-drop-zone.entry.js +2 -2
- package/dist/esm/co-empty-state.entry.js +3 -3
- package/dist/esm/co-event-calendar.entry.js +3 -3
- package/dist/esm/co-fab.entry.js +21 -6
- package/dist/esm/co-file-field.entry.js +8 -8
- package/dist/esm/co-file-type-tile.entry.js +3 -3
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +2 -2
- package/dist/esm/co-icon.entry.js +3 -3
- package/dist/esm/co-input.entry.js +9 -3
- package/dist/esm/co-json-field.entry.js +6 -6
- package/dist/esm/co-lightbox.entry.js +33 -6
- package/dist/esm/co-list-footer.entry.js +2 -2
- package/dist/esm/co-list-item.entry.js +5 -5
- package/dist/esm/co-loader.entry.js +1 -1
- package/dist/esm/co-media-thumb.entry.js +3 -3
- package/dist/esm/co-menu-divider.entry.js +2 -2
- package/dist/esm/co-menu-item.entry.js +1 -1
- package/dist/esm/co-menu.entry.js +2 -2
- package/dist/esm/co-modal.entry.js +3 -3
- package/dist/esm/co-navbar.entry.js +3 -3
- package/dist/esm/co-number-field.entry.js +5 -5
- package/dist/esm/co-overlay.entry.js +2 -2
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +4 -4
- package/dist/esm/co-popover.entry.js +1 -1
- package/dist/esm/co-progress-bar.entry.js +3 -3
- package/dist/esm/co-progress-circle.entry.js +3 -3
- package/dist/esm/co-radio-group.entry.js +1 -1
- 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 +11 -5
- package/dist/esm/co-rich-text-editor.entry.js +22 -7
- package/dist/esm/co-rich-text-toolbar.entry.js +36 -4
- package/dist/esm/co-rich-text-viewer.entry.js +36 -6
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-segmented-bar.entry.js +1 -1
- package/dist/esm/co-select.entry.js +13 -7
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +1 -1
- package/dist/esm/co-sidebar.entry.js +3 -3
- package/dist/esm/co-skeleton.entry.js +2 -2
- package/dist/esm/co-slider.entry.js +3 -3
- package/dist/esm/co-switch.entry.js +5 -5
- package/dist/esm/co-tab-group.entry.js +4 -4
- package/dist/esm/co-tab.entry.js +3 -3
- package/dist/esm/co-tags-field.entry.js +9 -9
- package/dist/esm/co-textarea.entry.js +13 -7
- package/dist/esm/co-toast.entry.js +1 -1
- package/dist/esm/co-toggle-button-group.entry.js +3 -3
- package/dist/esm/co-toggle-button.entry.js +3 -3
- package/dist/esm/co-transfer-list.entry.js +1 -1
- package/dist/esm/co-video.entry.js +3 -3
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/{fieldChip-ChXW__C5.js → fieldChip-Bb8YIN0J.js} +1 -1
- package/dist/esm/{index-tT-aZV0-.js → index-BCEz3S-z.js} +13 -9
- package/dist/esm/{index-Cyrxk8Qq.js → index-RuXxdKzC.js} +171 -11
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{requiredMark-C7-_2UhB.js → requiredMark-D7kAMXHM.js} +1 -1
- package/dist/esm/{richTextI18n-B-ckjCUA.js → richTextI18n-BYKAgwq3.js} +3 -0
- package/dist/esm/{toolbar-config-ChibIpZv.js → toolbar-config-WeuPA9Rw.js} +2 -0
- package/dist/types/components/co-avatar/co-avatar.d.ts +5 -0
- package/dist/types/components/co-carousel/co-carousel.d.ts +85 -0
- package/dist/types/components/co-carousel-item/co-carousel-item.d.ts +10 -0
- package/dist/types/components/co-date-picker/co-date-picker.d.ts +7 -0
- package/dist/types/components/co-date-range-picker/co-date-range-picker.d.ts +5 -0
- package/dist/types/components/co-fab/co-fab.d.ts +6 -0
- package/dist/types/components/co-input/co-input.d.ts +5 -0
- package/dist/types/components/co-lightbox/co-lightbox.d.ts +7 -0
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +5 -0
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +17 -0
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +12 -1
- package/dist/types/components/co-rich-text-viewer/co-rich-text-viewer.d.ts +10 -0
- package/dist/types/components/co-select/co-select.d.ts +5 -0
- package/dist/types/components/co-textarea/co-textarea.d.ts +5 -0
- package/dist/types/components.d.ts +363 -3
- package/dist/types/utils/carouselI18n.d.ts +10 -0
- package/dist/types/utils/richTextI18n.d.ts +1 -0
- package/package.json +4 -4
- package/dist/cjs/co-avatar.cjs.entry.js +0 -92
- package/dist/cobalt/p-0c0621a7.entry.js +0 -1
- package/dist/cobalt/p-13fc9c8a.entry.js +0 -1
- package/dist/cobalt/p-3f68fd2e.entry.js +0 -1
- package/dist/cobalt/p-4a075257.entry.js +0 -1
- package/dist/cobalt/p-5647ca9d.entry.js +0 -1
- package/dist/cobalt/p-5b31d45b.entry.js +0 -1
- package/dist/cobalt/p-6911a034.entry.js +0 -1
- package/dist/cobalt/p-70f70e02.entry.js +0 -1
- package/dist/cobalt/p-73b30ebb.entry.js +0 -1
- package/dist/cobalt/p-75dcaeb0.entry.js +0 -1
- package/dist/cobalt/p-7780ddb5.entry.js +0 -1
- package/dist/cobalt/p-7FZXeBK4.js +0 -1
- package/dist/cobalt/p-86d4e016.entry.js +0 -1
- package/dist/cobalt/p-8a9ed2da.entry.js +0 -1
- package/dist/cobalt/p-B-ckjCUA.js +0 -1
- package/dist/cobalt/p-BAA4ln31.js +0 -1
- package/dist/cobalt/p-ChibIpZv.js +0 -1
- package/dist/cobalt/p-aa20ffca.entry.js +0 -1
- package/dist/cobalt/p-ac5df270.entry.js +0 -1
- package/dist/cobalt/p-c2e2eee9.entry.js +0 -1
- package/dist/cobalt/p-cc8e2f16.entry.js +0 -1
- package/dist/cobalt/p-e1957078.entry.js +0 -1
- package/dist/cobalt/p-e2762263.entry.js +0 -1
- package/dist/cobalt/p-e4a539da.entry.js +0 -1
- package/dist/cobalt/p-e7085f08.entry.js +0 -1
- package/dist/cobalt/p-e9aaeaf7.entry.js +0 -1
- package/dist/cobalt/p-f36e461f.entry.js +0 -1
- package/dist/cobalt/p-f6b0c4a0.entry.js +0 -1
- package/dist/cobalt/p-tT-aZV0-.js +0 -2
- package/dist/components/p-BHqdcGDh.js +0 -1
- package/dist/components/p-BJTMFYax.js +0 -1
- package/dist/components/p-ChibIpZv.js +0 -1
- package/dist/components/p-D3ts7oo9.js +0 -1
- package/dist/components/p-Dh-h40mY.js +0 -1
- package/dist/components/p-Xwo2HQmt.js +0 -1
- package/dist/components/p-eSq2ze8W.js +0 -1
- package/dist/esm/co-avatar.entry.js +0 -90
|
@@ -5,7 +5,7 @@ import { h } from "@stencil/core";
|
|
|
5
5
|
*/
|
|
6
6
|
export class CoMenuDivider {
|
|
7
7
|
render() {
|
|
8
|
-
return h("hr", { key: '
|
|
8
|
+
return h("hr", { key: 'e47780a9d8f80cf8a9b1b4585e71bb20b2bebf5d', class: "co-menu-divider", role: "separator" });
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "co-menu-divider"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -62,14 +62,14 @@ export class CoModal {
|
|
|
62
62
|
this.coClose.emit();
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
return (h("co-overlay", { key: '
|
|
65
|
+
return (h("co-overlay", { key: '05ef9c3f53b155899f4838db0c0fca818f542731', open: this.open, onCoClose: this.handleOverlayClick }, h("div", { key: '46dbcfb7b8073c2ca11114fe049d55842bd9cb94', class: "co-modal__frame" }, h("div", { key: '75a703ddeb451e3afc4392990c10040423f0f7c7', class: {
|
|
66
66
|
'co-modal': true,
|
|
67
67
|
'co-modal--open': this.open,
|
|
68
68
|
'co-modal--sm': this.size === 'sm',
|
|
69
69
|
'co-modal--lg': this.size === 'lg',
|
|
70
70
|
'co-modal--full': this.size === 'full',
|
|
71
71
|
'co-modal--no-dividers': this.noDividers,
|
|
72
|
-
}, part: "modal", ref: (el) => (this.modalEl = el), role: "dialog", "aria-modal": "true", "aria-labelledby": "modal-heading", onClick: this.stopPropagation, onTransitionEnd: this.handleTransitionEnd }, h("div", { key: '
|
|
72
|
+
}, part: "modal", ref: (el) => (this.modalEl = el), role: "dialog", "aria-modal": "true", "aria-labelledby": "modal-heading", onClick: this.stopPropagation, onTransitionEnd: this.handleTransitionEnd }, h("div", { key: '3ebedf6549d81d4515abef9cd406688d82d583dd', class: "co-modal__header", part: "header" }, h("div", { key: '8c08be60fe1cac72a2351acbd26f93c4aa2178f4', class: "co-modal__header-text" }, h("h2", { key: '8235568540f5c09941790d203ae43c94393f4c3c', class: "co-modal__heading", id: "modal-heading" }, this.heading), this.description && (h("p", { key: 'bda3dc9a4eea2b60c9728e01b83771ea921dec57', class: "co-modal__description" }, this.description))), this.closable && (h("button", { key: '10bf91d47ce12f40e3d7ede6adc788ac5952e928', class: "co-modal__close", type: "button", "aria-label": "Close", onClick: this.handleCloseClick }, h("co-icon", { key: '3eb98394355c5d60ca633c55f6c26111b046bfa7', name: "x", size: 20 })))), !this.noDividers && (h("div", { key: '1fa27604b8f29d2271b4c4291a52949a1a57dcba', class: "co-modal__body", part: "body" }, h("slot", { key: '1524ac17115286ee90e4ffd251e3407edb1ecb94' }))), h("div", { key: 'f65aae95cdbc156285e3837187b161a65d8772ef', class: "co-modal__footer", part: "footer" }, h("slot", { key: '936d4e2f0b52553abf4edec689ff13e8d0bc1940', name: "footer" }))))));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "co-modal"; }
|
|
75
75
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,12 +14,12 @@ export class CoNavbar {
|
|
|
14
14
|
this.rounded = false;
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h("div", { key: '
|
|
17
|
+
return (h("div", { key: '93279a4c80cd3c050fe5bd5bb10b0c56fa942bdc', class: {
|
|
18
18
|
'co-navbar': true,
|
|
19
19
|
[`co-navbar--${this.variant}`]: true,
|
|
20
20
|
[`co-navbar--${this.size}`]: true,
|
|
21
21
|
'co-navbar--rounded': this.rounded,
|
|
22
|
-
}, part: "navbar", role: "toolbar" }, h("slot", { key: '
|
|
22
|
+
}, part: "navbar", role: "toolbar" }, h("slot", { key: '643f397c092a3ad3961158c641bab0d4edb27e47' })));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "co-navbar"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
/* Figma Text Field parity (same box as co-input): solid page surface +
|
|
55
55
|
Negro 25% border — tinted glass didn't read as editable on white. */
|
|
56
56
|
background: var(--co-semantic-surface-page);
|
|
57
|
-
border: 1px solid var(--co-
|
|
57
|
+
border: 1px solid var(--co-semantic-border-field);
|
|
58
58
|
border-radius: var(--co-border-radius-xs);
|
|
59
59
|
min-height: 40px;
|
|
60
60
|
overflow: hidden;
|
|
@@ -124,13 +124,13 @@ export class CoNumberField {
|
|
|
124
124
|
this.coChange.emit(clamped);
|
|
125
125
|
}
|
|
126
126
|
render() {
|
|
127
|
-
return (h("div", { key: '
|
|
127
|
+
return (h("div", { key: '81d578bdeaefc9f6176ab68ca38b5e831ad636cd', class: {
|
|
128
128
|
'co-number-field': true,
|
|
129
129
|
'co-number-field--disabled': this.disabled,
|
|
130
130
|
'co-number-field--focused': this.focused,
|
|
131
131
|
[`co-number-field--${this.size}`]: true,
|
|
132
132
|
[`co-number-field--${this.status}`]: this.status !== 'default',
|
|
133
|
-
} }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
133
|
+
} }, (this.label || this.secondaryLabel) && (h("div", { key: '0010a5984faa5c26d3ed18a29c43679422158529', class: "co-number-field__labels" }, this.label && h("label", { key: '1744b37b776c36e6c105f6537e9bc0eff427f3c3', class: "co-number-field__label" }, this.label, h(RequiredMark, { key: '24b51fde19384d3de672b6c1aa1c54c408078b98', required: this.required })), this.secondaryLabel && h("span", { key: '752dca236f11f65a78ab0f2e35bae1a0dcb81ba8', class: "co-number-field__secondary-label" }, this.secondaryLabel))), h("div", { key: 'a88c171a1349972ed78452b0c304cac207921a8f', class: "co-number-field__row" }, h("button", { key: '4a781c675e97937288f641d55e821fa30104a180', class: "co-number-field__btn co-number-field__btn--minus", type: "button", tabIndex: -1, disabled: !this.canDecrement, onClick: this.handleDecrement, "aria-label": "Decrease" }, h("co-icon", { key: '12f82a9f0f8c1b0c9f51264006084d4e80d81715', name: "minus", size: 16 })), h("input", { key: '6f440216843a93d124723b18e0f6f1e7ce98791c', ref: el => (this.inputEl = el), class: "co-number-field__input", type: "text", inputMode: "decimal", value: this.isEmpty ? '' : String(this.toDisplay(this.value)), placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown }), this.scaled && !this.isEmpty && (h("span", { key: '6672a63fc024e9d33661fee37deb04debe2aaa25', class: "co-number-field__affix", "aria-hidden": "true" }, "%")), this.clearable && !this.isEmpty && !this.disabled && (h("button", { key: 'a0ad4682f949dab538db35348282a3cab52fcb75', class: "co-number-field__clear", type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear" }, h("co-icon", { key: '2beb8574b79926c54665081e4ed06e191932bed6', name: "x-circle", size: 16, weight: "fill" }))), h("button", { key: 'd6e01ce20f596ff102899680f7234d35042e2d49', class: "co-number-field__btn co-number-field__btn--plus", type: "button", tabIndex: -1, disabled: !this.canIncrement, onClick: this.handleIncrement, "aria-label": "Increase" }, h("co-icon", { key: '27e33390bc7f3baaf9caed056e8e3e6e64b291c9', name: "plus", size: 16 }))), this.helperText && (h("div", { key: '9cc415d2a5f5be410a0677ed7067c7d9bb8368df', class: `co-number-field__helper co-number-field__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: '7cf249285dcd15680f6e21840adcfc81dfd16298', name: this.statusIcon, size: 14, weight: "fill", class: "co-number-field__helper-icon" }), h("span", { key: '6791bb8f9789af7b878d7c5aa27047d905238e48', class: "co-number-field__helper-text" }, this.helperText)))));
|
|
134
134
|
}
|
|
135
135
|
static get is() { return "co-number-field"; }
|
|
136
136
|
static get encapsulation() { return "shadow"; }
|
|
@@ -278,11 +278,11 @@ export class CoOptionList {
|
|
|
278
278
|
const selectedIds = this.selectedIds;
|
|
279
279
|
const { hasMore, remaining } = deriveMore(this.parsedItems.length, this.total, this.hasMore);
|
|
280
280
|
const showClear = !!this.clearOptionLabel && selectedIds.length > 0;
|
|
281
|
-
return (h("div", { key: '
|
|
281
|
+
return (h("div", { key: '8e4a0e5e6b0831d1413fccc5d58f5548e756ca90', class: "co-option-list", onKeyDown: this.onRootKeyDown }, this.searchable && (h("div", { key: '91658cdefff07570ae339a7e4c785493c200b690', class: "co-option-list__search", part: "search" }, h("co-icon", { key: '28900e1543e8cd50d7e789de2f6d8815eafd1fb7', name: "magnifying-glass", size: 16 }), h("input", { key: '3455b4f3d4e54b81291b997bceb64d95ef1be105', class: "co-option-list__search-input", type: "text", placeholder: this.searchPlaceholder, value: this.term, onInput: this.onSearchInput, ref: (el) => (this.searchInputEl = el), role: "combobox", "aria-expanded": "true", "aria-autocomplete": "list" }))), h("div", { key: '32f315ed929802532c1a050d6e42aaa4150a2d11', class: "co-option-list__options", part: "options", role: "listbox", "aria-multiselectable": this.multiple ? 'true' : 'false', ref: (el) => (this.optionsEl = el), onScroll: this.onNativeScroll }, h("div", { key: '374a2383399a56d90afcb048f5e6343d4f9275d7', class: "co-option-list__inner" }, showClear && (h("button", { key: 'be34ee751a34147660e8bc7846b12d8ab1f937d4', class: "co-option-list__clear-row", type: "button", onClick: () => this.coClearSelection.emit() }, h("co-icon", { key: 'c3c70f93b6d4ce7c0774b4c5ff1ebd7f2549dd93', name: "x-circle", size: 14 }), h("span", { key: 'a9970acd4f67dc84afd4d7f10317d4e35f0feebf' }, this.clearOptionLabel))), this.loading && items.length === 0 && (h("div", { key: '6b1bb04068d2832bd71f0d9b9b9205662a3184f2', class: "co-option-list__loading" }, h("co-loader", { key: '1de716e5fac313dbc10a9aeed2dd8f61e491f020', size: "sm" }))), !this.loading && items.length === 0 && (h("div", { key: '29f51655d034fcd1b5aac08df9537fb176090ce7', class: "co-option-list__empty" }, h("co-icon", { key: 'c7c51260cfe80d82ae75ae0a3510560f5258a3ad', name: "magnifying-glass", size: 20 }), h("span", { key: 'af1c571186f203f2a128b4a7f2d26e5171bf7951' }, this.emptyMessage))), items.length > 0 && this.virtual
|
|
282
282
|
? this.renderVirtual(items, selectedIds)
|
|
283
283
|
: buildRows(items).map((row) => row.kind === 'header'
|
|
284
284
|
? h("div", { class: "co-option-list__group", role: "presentation" }, row.label)
|
|
285
|
-
: this.renderRow(row.item, row.index, selectedIds)), this.loading && items.length > 0 && (h("div", { key: '
|
|
285
|
+
: this.renderRow(row.item, row.index, selectedIds)), this.loading && items.length > 0 && (h("div", { key: '0322e0c734d57f0fdc80ace2753276b2bc2a33ad', class: "co-option-list__loading-more" }, h("co-loader", { key: 'e305edb2317d433b27e581a97f35e99083306bff', size: "sm" }))), !this.loading && hasMore && remaining > 0 && (h("div", { key: '31d25badb8cbefa515eaedd1a849b943274a2f9d', class: "co-option-list__more" }, remaining, " more results")))), h("slot", { key: '2df4d5c4c55db9647b378eb9d09c828a76e563f1', name: "footer" })));
|
|
286
286
|
}
|
|
287
287
|
static get is() { return "co-option-list"; }
|
|
288
288
|
static get encapsulation() { return "shadow"; }
|
|
@@ -187,7 +187,7 @@ export class CoOverlay {
|
|
|
187
187
|
focusables[nextIndex].focus();
|
|
188
188
|
}
|
|
189
189
|
render() {
|
|
190
|
-
return (h("div", { key: '
|
|
190
|
+
return (h("div", { key: '41b0ea10b8078a2bf3c46f68fe35869bf2778130', class: { 'co-overlay': true, 'co-overlay--open': this.open }, part: "overlay", popover: "manual", tabindex: this.trapFocus ? -1 : undefined, ref: (el) => (this.overlayEl = el), onClick: this.handleClick, onTransitionEnd: this.handleTransitionEnd }, h("slot", { key: '35e1ec1b7921c1439a177b8f526f128351c5fdec' })));
|
|
191
191
|
}
|
|
192
192
|
static get is() { return "co-overlay"; }
|
|
193
193
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,7 +6,7 @@ import { h } from "@stencil/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export class CoPageHeader {
|
|
8
8
|
render() {
|
|
9
|
-
return (h("div", { key: '
|
|
9
|
+
return (h("div", { key: '9170d832d0e51cc8e721a4a331f85abb8543b893', class: "co-page-header", part: "page-header" }, h("div", { key: 'ca13df04f2b81a2ce14ab0223a5f651aaa0c921d', class: "co-page-header__left" }, this.icon && (h("span", { key: 'efe024a0388ae60afc2c4e3ce0861b65e0fa9923', class: "co-page-header__icon" }, h("co-icon", { key: '3051bda0f31d1002142e53db09d0aabd7ecf13bf', name: this.icon, size: 24 }))), h("span", { key: '7b714ebec4e82dffaca71d9e8152330b7fe0a38f', class: "co-page-header__title" }, h("slot", { key: '021b7da34753a3946b94bb104f515b1c4781d837' }, this.heading))), h("div", { key: '52d2d1f3510b23c1684aecacb97d341e56fc7619', class: "co-page-header__actions" }, h("slot", { key: 'da455091aa0467df02674fdd38241fd7e70bab13', name: "actions" }))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "co-page-header"; }
|
|
12
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
/* Figma Text Field parity (same box as co-input): solid page surface +
|
|
52
52
|
Negro 25% border — tinted glass didn't read as editable on white. */
|
|
53
53
|
background: var(--co-semantic-surface-page);
|
|
54
|
-
border: 1px solid var(--co-
|
|
54
|
+
border: 1px solid var(--co-semantic-border-field);
|
|
55
55
|
border-radius: var(--co-border-radius-xs);
|
|
56
56
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
57
57
|
min-height: 40px;
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
|
|
86
86
|
.co-phone-field__container:focus-within {
|
|
87
87
|
border-color: var(--co-semantic-border-focus);
|
|
88
|
-
box-shadow: 0 0 0 2px
|
|
88
|
+
box-shadow: 0 0 0 2px var(--co-semantic-border-focus-ring);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.co-phone-field__selector {
|
|
@@ -159,7 +159,7 @@ export class CoPhoneField {
|
|
|
159
159
|
render() {
|
|
160
160
|
const entry = this.selectedEntry;
|
|
161
161
|
const statusClass = this.status !== 'default' ? `co-phone-field--${this.status}` : '';
|
|
162
|
-
return (h("div", { key: '
|
|
162
|
+
return (h("div", { key: 'e1851152e30c4e1580dd533ba0880eeef8933c0c', class: `co-phone-field co-phone-field--${this.size} ${statusClass} ${this.disabled ? 'co-phone-field--disabled' : ''}` }, this.label && (h("label", { key: 'd6adc2584613b7c2ebe72933275ff3058c9d6eef', class: "co-phone-field__label" }, this.label, h(RequiredMark, { key: 'e02252f85db26cc8ac82a791d86b096630026e9f', required: this.required }))), h("div", { key: 'a1433e7df570481200e39aa366e343d41e85441d', class: "co-phone-field__container" }, h("button", { key: 'da306e01f096755f7da014bbfaf21db41fb99c51', type: "button", class: "co-phone-field__selector", disabled: this.disabled, onClick: () => this.handleToggleDropdown(), "aria-expanded": String(this.isOpen), "aria-haspopup": "listbox" }, entry ? (h("img", { class: "co-phone-field__flag", src: `https://flagcdn.com/w40/${entry.iso2.toLowerCase()}.png`, alt: entry.iso2 })) : (h("co-icon", { name: "phone", size: 16 })), h("span", { key: '920e1cfffbcae7266dcde4bd37e339e550adcae0', class: "co-phone-field__dial-code" }, entry ? entry.dialCode : ''), h("span", { key: '2dec0f362a9a75b718ea4aade2c981fba6777ecb', class: "co-phone-field__chevron" }, h("co-icon", { key: 'ad77c5446f2352cc8fa07230af125500dff3f4b6', name: "caret-down", size: 14 }))), h("input", { key: '926302b2660eb32b8d86a2e421700acebc1b8e11', class: "co-phone-field__input", type: "tel", placeholder: this.placeholder, value: this.numberPart, disabled: this.disabled, onInput: (e) => this.handleNumberInput(e) })), this.isOpen && (h("div", { key: '4e86eb6353ad92839a68400ebfa9d8b5dff0111b', class: "co-phone-field__dropdown", role: "listbox" }, h("div", { key: 'bdd3d82c8b1e46741f9fca118ffe35b2e8c0690f', class: "co-phone-field__search" }, h("input", { key: '699189bbdd5027436c2757569ddf5945f2c29e78', class: "co-phone-field__search-input", type: "text", placeholder: "Search country...", value: this.searchQuery, onInput: (e) => this.handleSearchInput(e), autoFocus: true })), h("div", { key: '8ec344b5aeb8a80fd0bb72ad1773ac3416a6d1e6', class: "co-phone-field__options" }, this.filteredCountries.map((d) => (h("button", { type: "button", key: d.iso2, class: `co-phone-field__option ${d.iso2 === this.selectedIso2 ? 'co-phone-field__option--selected' : ''}`, role: "option", "aria-selected": d.iso2 === this.selectedIso2 ? 'true' : 'false', onClick: () => this.handleCountrySelect(d) }, h("img", { class: "co-phone-field__option-flag", src: `https://flagcdn.com/w40/${d.iso2.toLowerCase()}.png`, alt: d.iso2 }), h("span", { class: "co-phone-field__option-name" }, this.renderName(d.name)), h("span", { class: "co-phone-field__option-code" }, d.dialCode))))))), this.helperText && (h("div", { key: 'e248da6a7e2c62c9ed01d2ad0a204caea51f55a6', class: "co-phone-field__helper" }, this.statusIcon && (h("co-icon", { key: 'ab6fbf9894d8d71fde4e00e07eb81eece230eafb', name: this.statusIcon, size: 14, weight: "fill", class: "co-phone-field__helper-icon" })), h("span", { key: '0608d49c56d3a20c65cc966c733607440bf73900', class: "co-phone-field__helper-text" }, this.helperText)))));
|
|
163
163
|
}
|
|
164
164
|
static get is() { return "co-phone-field"; }
|
|
165
165
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,12 +18,12 @@ export class CoProgressBar {
|
|
|
18
18
|
render() {
|
|
19
19
|
const clamped = Math.max(0, Math.min(100, this.value));
|
|
20
20
|
const indeterminate = this.indeterminate;
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: '77313f1edbd0a70e8b783155e71ba39ac6c2b905', class: {
|
|
22
22
|
'co-progress-bar': true,
|
|
23
23
|
[`co-progress-bar--${this.status}`]: true,
|
|
24
24
|
[`co-progress-bar--${this.variant}`]: true,
|
|
25
25
|
'co-progress-bar--indeterminate': indeterminate,
|
|
26
|
-
}, role: "progressbar", "aria-valuenow": indeterminate ? undefined : clamped, "aria-valuemin": 0, "aria-valuemax": 100, part: "bar", style: { height: `${this.thickness}px` } }, h("div", { key: '
|
|
26
|
+
}, role: "progressbar", "aria-valuenow": indeterminate ? undefined : clamped, "aria-valuemin": 0, "aria-valuemax": 100, part: "bar", style: { height: `${this.thickness}px` } }, h("div", { key: '1c6e1942e8128d49f01bb2fedac113eee2f31ac6', class: "co-progress-bar__fill", style: indeterminate ? undefined : { width: `${clamped}%` } })));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "co-progress-bar"; }
|
|
29
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class CoProgressCircle {
|
|
|
19
19
|
const clamped = Math.max(0, Math.min(100, this.value));
|
|
20
20
|
const angle = (clamped / 100) * 360;
|
|
21
21
|
const safeStroke = Math.min(this.strokeWidth, this.size / 2);
|
|
22
|
-
return (h("div", { key: '
|
|
22
|
+
return (h("div", { key: '879a0c95c7d4aa279eed21447b093bc1461afa4c', class: {
|
|
23
23
|
'co-progress-circle': true,
|
|
24
24
|
[`co-progress-circle--${this.status}`]: true,
|
|
25
25
|
}, role: "progressbar", "aria-valuenow": clamped, "aria-valuemin": 0, "aria-valuemax": 100, part: "circle", style: {
|
|
@@ -27,7 +27,7 @@ export class CoProgressCircle {
|
|
|
27
27
|
height: `${this.size}px`,
|
|
28
28
|
'--co-pc-angle': `${angle}deg`,
|
|
29
29
|
'--co-pc-stroke': `${safeStroke}px`,
|
|
30
|
-
} }, h("div", { key: '
|
|
30
|
+
} }, h("div", { key: '7f2ece80cede1b6eda659706fe4a2b8cbfc6f47a', class: "co-progress-circle__track" }), this.showLabel && (h("span", { key: '83cbbe79663dae93962da7d1d9ae1f27a6e46fa4', class: "co-progress-circle__label" }, clamped, "%"))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "co-progress-circle"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -17,15 +17,15 @@ export class CoRadio {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h("div", { key: '
|
|
20
|
+
return (h("div", { key: '65bc1f5e350693d2ccbe1fb7e83af03bee729904', class: {
|
|
21
21
|
'co-radio-row': true,
|
|
22
22
|
'co-radio-row--disabled': this.disabled,
|
|
23
|
-
}, onClick: this.handleClick }, h("button", { key: '
|
|
23
|
+
}, onClick: this.handleClick }, h("button", { key: '16dfd7001260a09ef6c77b85b8d3b9b465a3fa98', role: "radio", "aria-checked": String(this.checked), "aria-label": this.label || '', class: {
|
|
24
24
|
'co-radio': true,
|
|
25
25
|
[`co-radio--${this.size}`]: true,
|
|
26
26
|
'co-radio--checked': this.checked,
|
|
27
27
|
'co-radio--disabled': this.disabled,
|
|
28
|
-
}, disabled: this.disabled, part: "circle" }), this.label && (h("span", { key: '
|
|
28
|
+
}, disabled: this.disabled, part: "circle" }), this.label && (h("span", { key: '87ae90a0b64ca95b0806599f16f7770e06329dfc', class: "co-radio__label", part: "label" }, this.label))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "co-radio"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -36,16 +36,16 @@ export class CoRating {
|
|
|
36
36
|
const iconSize = this.size === 'large' ? 28 : 20;
|
|
37
37
|
const active = this.hoverValue || this.value;
|
|
38
38
|
const stars = Array.from({ length: this.max }, (_, i) => i + 1);
|
|
39
|
-
return (h("div", { key: '
|
|
39
|
+
return (h("div", { key: '0c7b3f29a8dd3604712402d76d97e7bd89d5009f', class: {
|
|
40
40
|
'co-rating': true,
|
|
41
41
|
'co-rating--disabled': this.disabled,
|
|
42
42
|
'co-rating--readonly': this.readOnly,
|
|
43
43
|
[`co-rating--${this.size}`]: true,
|
|
44
|
-
} }, this.label && h("label", { key: '
|
|
44
|
+
} }, this.label && h("label", { key: 'a371c03388a9854bbaaf7a9388159a7684a90c2f', class: "co-rating__label" }, this.label), h("div", { key: '0479a6b098fe059d800bc1c33b833a3c67f0f2c7', class: "co-rating__stars", onMouseLeave: this.handleMouseLeave }, stars.map(star => (h("button", { class: {
|
|
45
45
|
'co-rating__star': true,
|
|
46
46
|
'co-rating__star--active': star <= active,
|
|
47
47
|
'co-rating__star--hover': this.hoverValue > 0 && star <= this.hoverValue,
|
|
48
|
-
}, type: "button", tabIndex: this.disabled || this.readOnly ? -1 : 0, disabled: this.disabled, onClick: () => this.handleClick(star), onMouseEnter: () => this.handleMouseEnter(star), "aria-label": `${star} of ${this.max}` }, h("co-icon", { name: this.icon, size: iconSize, weight: star <= active ? 'fill' : 'regular' }))))), this.helperText && (h("div", { key: '
|
|
48
|
+
}, type: "button", tabIndex: this.disabled || this.readOnly ? -1 : 0, disabled: this.disabled, onClick: () => this.handleClick(star), onMouseEnter: () => this.handleMouseEnter(star), "aria-label": `${star} of ${this.max}` }, h("co-icon", { name: this.icon, size: iconSize, weight: star <= active ? 'fill' : 'regular' }))))), this.helperText && (h("div", { key: '18267dee4784ba5c2a49acb12374f7d1ae696cdd', class: `co-rating__helper co-rating__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: 'be16cbf699c2e9360d90106546b8150b3329885b', name: this.statusIcon, size: 14, weight: "fill", class: "co-rating__helper-icon" }), h("span", { key: 'c7f3f02d072ded7d59bd0a23ff4a6de9cb73cf72', class: "co-rating__helper-text" }, this.helperText)))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "co-rating"; }
|
|
51
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
(e.g. the dark-navbar workspace pill = Figma "Blanco 8%") without
|
|
60
60
|
touching shared tokens. */
|
|
61
61
|
background: var(--co-ref-field-trigger-bg, var(--co-semantic-surface-page));
|
|
62
|
-
border: 1px solid var(--co-ref-field-trigger-border-color, var(--co-
|
|
62
|
+
border: 1px solid var(--co-ref-field-trigger-border-color, var(--co-semantic-border-field));
|
|
63
63
|
border-radius: var(--co-border-radius-xs);
|
|
64
64
|
min-height: 40px;
|
|
65
65
|
box-sizing: border-box;
|
|
@@ -67,6 +67,22 @@
|
|
|
67
67
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
/* ── Variant: flat (no border/background — reads as content) ──────────
|
|
71
|
+
Border-width/radius are left untouched (only the color goes transparent),
|
|
72
|
+
so padding/box size never shift between default and flat. Placed here
|
|
73
|
+
(before size variants and ahead of open/disabled/status below) so the
|
|
74
|
+
equal-specificity (0,1,0) single-class state selectors — open/disabled/
|
|
75
|
+
error/success/warning — win the cascade tie by source order and keep
|
|
76
|
+
showing through on top of flat. Unlike co-input/co-select (wrapper class +
|
|
77
|
+
separate `__field`/`__trigger` child), co-ref-field already keeps every
|
|
78
|
+
trigger modifier on this one div, so the tied selectors are single
|
|
79
|
+
classes here instead of two-class descendant chains — same trick,
|
|
80
|
+
adapted to this component's existing structure. */
|
|
81
|
+
.co-ref-field--flat {
|
|
82
|
+
background: transparent;
|
|
83
|
+
border-color: transparent;
|
|
84
|
+
}
|
|
85
|
+
|
|
70
86
|
/* ── Size variants (mirror co-input heights: s 28 / sm 32 / md 40 / lg 48).
|
|
71
87
|
md is the default trigger above — no override needed. sm keeps its legacy
|
|
72
88
|
12px font (suite-v2 FieldRef/filters depend on this exact look). */
|
|
@@ -19,6 +19,11 @@ export class CoRefField {
|
|
|
19
19
|
* compatibility with the old `'default' | 'sm'` scale — use `'md'` instead.
|
|
20
20
|
*/
|
|
21
21
|
this.size = 'md';
|
|
22
|
+
/** Visual style. `flat` strips the trigger's border and background so it
|
|
23
|
+
* reads as plain content instead of a boxed control — padding, label,
|
|
24
|
+
* focus ring, disabled and status states are unaffected. `default` (the
|
|
25
|
+
* standard bordered box) renders identically to before this prop existed. */
|
|
26
|
+
this.variant = 'default';
|
|
22
27
|
// ── Data props (controlled) ────────────────────────────────
|
|
23
28
|
/** Selected value: single ID string or JSON array of IDs. */
|
|
24
29
|
this.value = '';
|
|
@@ -263,6 +268,7 @@ export class CoRefField {
|
|
|
263
268
|
'co-ref-field--disabled': this.disabled,
|
|
264
269
|
[`co-ref-field--${this.normalizedSize}`]: true,
|
|
265
270
|
[`co-ref-field--${this.status}`]: this.status !== 'default',
|
|
271
|
+
'co-ref-field--flat': this.variant === 'flat',
|
|
266
272
|
}, onClick: this.handleTriggerClick }, this.iconLeft && (h("span", { class: "co-ref-field__icon" }, h("co-icon", { name: this.iconLeft, size: 16 }))), h("div", { class: "co-ref-field__value" }, !hasValue && h("span", { class: "co-ref-field__placeholder", part: "trigger-placeholder" }, this.placeholder), hasValue && !this.multiple && this.renderSingleValue(selected[0]), hasValue && this.multiple && this.renderMultipleValue(selected)), hasValue && this.clearable && !this.disabled && (h("button", { class: "co-ref-field__clear", part: "trigger-clear", onClick: this.handleClear, type: "button" }, h("co-icon", { name: "x", size: 14 }))), h("span", { class: "co-ref-field__caret", part: "trigger-chevron" }, h("co-icon", { name: "caret-up-down", size: 16 }))));
|
|
267
273
|
}
|
|
268
274
|
/**
|
|
@@ -314,7 +320,7 @@ export class CoRefField {
|
|
|
314
320
|
}
|
|
315
321
|
// ── Main render ────────────────────────────────────────────
|
|
316
322
|
render() {
|
|
317
|
-
return (h("div", { key: '
|
|
323
|
+
return (h("div", { key: '19b3543f876fa1396cb08ac5d24f0cdfdfff06ad', class: "co-ref-field" }, (this.label || this.secondaryLabel) && (h("div", { key: '2ae2a6946b2fecc67551acd7b1e966bb8b4fc392', class: "co-ref-field__labels" }, this.label && (h("label", { key: '0552bc35602d1f03ff68bb8cee9ab79a43b39a14', class: "co-ref-field__label" }, this.labelIcon && (h("co-icon", { key: 'b9731bccb2dcf66749e6240d83c25385c4bc312c', class: "co-ref-field__label-icon", name: this.labelIcon, size: 16 })), this.label, h(RequiredMark, { key: 'c49c5dd8d0bf8824363a1eba27386a6c87b64688', required: this.required }))), this.secondaryLabel && (h("span", { key: '2c23a1ab30fe332e7d80d02f162876f1d56d5817', class: "co-ref-field__secondary-label" }, this.secondaryLabel)))), h("co-popover", { key: '91ac16f115e0d631a27bf6fae212dffba274cbcb', open: this.isOpen, placement: "bottom-start", matchWidth: true, offset: 4, onCoOpen: this.handlePopoverOpen, onCoClose: this.handlePopoverClose }, h("div", { key: '410a56a47f7092904d09d41cb2e269b8627b8151', slot: "trigger" }, this.renderTrigger()), this.isOpen && this.renderPanel()), this.helperText && (h("div", { key: '044055f24a9cf11eacd22383d793c2133b555419', class: `co-ref-field__helper co-ref-field__helper--${this.status}` }, this.status !== 'default' && (h("co-icon", { key: '96dd504f4900f394370ad938b458f044abd2aa9a', name: this.status === 'error' ? 'warning-circle' : this.status === 'success' ? 'check-circle' : 'info', size: 14 })), h("span", { key: 'ac4bc95df2bb54dc7b60fc5fa098f8cf40c81153' }, this.helperText)))));
|
|
318
324
|
}
|
|
319
325
|
static get is() { return "co-ref-field"; }
|
|
320
326
|
static get encapsulation() { return "shadow"; }
|
|
@@ -585,6 +591,26 @@ export class CoRefField {
|
|
|
585
591
|
"attribute": "size",
|
|
586
592
|
"defaultValue": "'md'"
|
|
587
593
|
},
|
|
594
|
+
"variant": {
|
|
595
|
+
"type": "string",
|
|
596
|
+
"mutable": false,
|
|
597
|
+
"complexType": {
|
|
598
|
+
"original": "'default' | 'flat'",
|
|
599
|
+
"resolved": "\"default\" | \"flat\"",
|
|
600
|
+
"references": {}
|
|
601
|
+
},
|
|
602
|
+
"required": false,
|
|
603
|
+
"optional": false,
|
|
604
|
+
"docs": {
|
|
605
|
+
"tags": [],
|
|
606
|
+
"text": "Visual style. `flat` strips the trigger's border and background so it\nreads as plain content instead of a boxed control \u2014 padding, label,\nfocus ring, disabled and status states are unaffected. `default` (the\nstandard bordered box) renders identically to before this prop existed."
|
|
607
|
+
},
|
|
608
|
+
"getter": false,
|
|
609
|
+
"setter": false,
|
|
610
|
+
"reflect": true,
|
|
611
|
+
"attribute": "variant",
|
|
612
|
+
"defaultValue": "'default'"
|
|
613
|
+
},
|
|
588
614
|
"value": {
|
|
589
615
|
"type": "string",
|
|
590
616
|
"mutable": true,
|
|
@@ -37,8 +37,8 @@ co-rich-text-editor {
|
|
|
37
37
|
.co-rich-text-editor__frame {
|
|
38
38
|
display: flex;
|
|
39
39
|
flex-direction: column;
|
|
40
|
-
background: var(--co-semantic-surface-
|
|
41
|
-
border: 1px solid var(--co-semantic-border-
|
|
40
|
+
background: var(--co-semantic-surface-page);
|
|
41
|
+
border: 1px solid var(--co-semantic-border-field);
|
|
42
42
|
border-radius: var(--co-border-radius-xs);
|
|
43
43
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
44
44
|
min-height: 0;
|
|
@@ -58,6 +58,21 @@ co-rich-text-editor {
|
|
|
58
58
|
overflow-x: hidden;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
/* ---- Variant: flat (no border/background — reads as content) ----
|
|
62
|
+
Border-width/radius are left untouched (only the color goes transparent),
|
|
63
|
+
so padding/box size never shift between default and flat. Placed here
|
|
64
|
+
(before the focused/error/success/disabled/readonly rules below) so the
|
|
65
|
+
equal-specificity (0,2,0) state selectors win their cascade tie by source
|
|
66
|
+
order and keep showing through on top of flat, same trick as co-input/
|
|
67
|
+
co-select. The toolbar (co-rich-text-toolbar) is its own shadow-DOM
|
|
68
|
+
component with its own background + `border-bottom` — that border-bottom
|
|
69
|
+
is exactly the "subtle separator" that keeps the toolbar legible/distinct
|
|
70
|
+
from the (now borderless) content area below, so it's left untouched. */
|
|
71
|
+
.co-rich-text-editor--flat .co-rich-text-editor__frame {
|
|
72
|
+
background: transparent;
|
|
73
|
+
border-color: transparent;
|
|
74
|
+
}
|
|
75
|
+
|
|
61
76
|
.co-rich-text-editor--focused .co-rich-text-editor__frame {
|
|
62
77
|
border-color: var(--co-semantic-border-focus, var(--co-color-base-negro, #1a1a1a));
|
|
63
78
|
box-shadow: 0 0 0 3px var(--co-semantic-border-focus-ring, rgba(37, 99, 235, 0.15));
|
|
@@ -362,7 +377,10 @@ co-rich-text-editor {
|
|
|
362
377
|
white-space: nowrap;
|
|
363
378
|
}
|
|
364
379
|
.co-rte-content .co-rte-mention {
|
|
365
|
-
|
|
380
|
+
/* Highlight pastel azul (tint azul-200 + texto azul-800) — patrón tint/accent
|
|
381
|
+
del design system (cf. co-file-type-tile). Legible y suave, no un pill sólido. */
|
|
382
|
+
background: var(--co-color-azul-200);
|
|
383
|
+
color: var(--co-color-azul-800);
|
|
366
384
|
}
|
|
367
385
|
|
|
368
386
|
/* ---- Footer (helper + count) ---- */
|
|
@@ -22,6 +22,14 @@ export class CoRichTextEditor {
|
|
|
22
22
|
this.preset = 'task';
|
|
23
23
|
this.placeholder = '';
|
|
24
24
|
this.status = 'default';
|
|
25
|
+
/** Visual style. `flat` strips the frame's border and background so it
|
|
26
|
+
* reads as plain content instead of a boxed control — padding, label,
|
|
27
|
+
* focus ring, disabled and status states are unaffected. The toolbar keeps
|
|
28
|
+
* its own background + bottom border (a subtle, token-driven separator),
|
|
29
|
+
* which is what keeps toolbar and editable area legible/separated once the
|
|
30
|
+
* outer box is gone. `default` (the standard bordered box) renders
|
|
31
|
+
* identically to before this prop existed. */
|
|
32
|
+
this.variant = 'default';
|
|
25
33
|
this.disabled = false;
|
|
26
34
|
this.readonly = false;
|
|
27
35
|
this.required = false;
|
|
@@ -29,6 +37,8 @@ export class CoRichTextEditor {
|
|
|
29
37
|
this.autofocus = false;
|
|
30
38
|
/** Toolbar layout. `auto` uses the preset default. */
|
|
31
39
|
this.toolbar = 'auto';
|
|
40
|
+
/** Passthrough: shows the toolbar attachment button (host owns the files). */
|
|
41
|
+
this.attachmentsEnabled = false;
|
|
32
42
|
/** BCP-47 locale for UI strings (e.g. 'en', 'es-CO', 'pt-BR'). Default English. */
|
|
33
43
|
this.locale = 'en';
|
|
34
44
|
this.ready = false;
|
|
@@ -2021,14 +2031,18 @@ export class CoRichTextEditor {
|
|
|
2021
2031
|
render() {
|
|
2022
2032
|
const showToolbar = this.resolvedToolbar !== 'none' && !this.readonly && !this.disabled;
|
|
2023
2033
|
const showCount = this.showCharacterCount || this.maxLength != null;
|
|
2024
|
-
return (h("div", { key: '
|
|
2034
|
+
return (h("div", { key: '68960896d888331319dc82779e73988d66dc57de', class: {
|
|
2025
2035
|
'co-rich-text-editor': true,
|
|
2026
2036
|
'co-rich-text-editor--focused': this.hasFocus,
|
|
2027
2037
|
'co-rich-text-editor--disabled': this.disabled,
|
|
2028
2038
|
'co-rich-text-editor--readonly': this.readonly,
|
|
2029
2039
|
'co-rich-text-editor--loading': !this.ready,
|
|
2030
2040
|
[`co-rich-text-editor--${this.status}`]: this.status !== 'default',
|
|
2031
|
-
|
|
2041
|
+
'co-rich-text-editor--flat': this.variant === 'flat',
|
|
2042
|
+
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: 'b62f26479fb2483bdbbe91102890b34d17a2a0e2', class: "co-rich-text-editor__labels" }, this.label && h("label", { key: '8f9938f7db575672bc7828a9631fbfd414e9f56b', class: "co-rich-text-editor__label", part: "label" }, this.label), this.secondaryLabel && (h("span", { key: '1011143f44b19a00c7eb5b4da92f876355fa512c', class: "co-rich-text-editor__secondary-label" }, this.secondaryLabel)))), h("div", { key: '4e9f178ac73859fc451d744af890611344f1356b', class: "co-rich-text-editor__frame" }, showToolbar && (h("co-rich-text-toolbar", { key: 'b26c97a093c7ec8f32a2103af0d932ee7a67c4c4', class: "co-rich-text-editor__toolbar", part: "toolbar", variant: this.resolvedToolbar, disabled: this.disabled || this.readonly, locale: this.locale, attachmentsEnabled: this.attachmentsEnabled, attachmentAccept: this.attachmentAccept, onCoAttachmentsSelected: (e) => {
|
|
2043
|
+
e.stopPropagation();
|
|
2044
|
+
this.coAttachmentsSelected.emit(e.detail);
|
|
2045
|
+
}, ref: (el) => (this.toolbarEl = el) })), h("div", { key: 'afcea2bd72ff458960dc8392042a5b40be198c60', class: "co-rich-text-editor__box" }, h("div", { key: '63909643a4f31c88bf4a1f8dbf912f802c9b4445', class: "co-rte-content", part: "content", role: "textbox", "aria-multiline": "true", "aria-label": this.label, "aria-required": this.required ? 'true' : undefined, "aria-invalid": this.status === 'error' ? 'true' : undefined, ref: (el) => (this.contentEl = el) }))), h("div", { key: '1ae75fba2960ca8b51b1b07fe1c7547d8519be06', class: "co-rich-text-editor__footer" }, this.helperText && (h("div", { key: '4785f2a71c576901c0fb8fba7be0a7caaf744338', class: `co-rich-text-editor__helper co-rich-text-editor__helper--${this.status}`, part: "helper" }, h("co-icon", { key: '8a8f5299c523630c7f83499f9e5a3322a5f977dd', name: this.helperIcon, size: 14 }), h("span", { key: '0d19604ce80786b32ab83b48ddf12948012b8e16' }, this.helperText))), showCount && (h("span", { key: 'a668807c60d0e00452dd88582c8bd1cb8f4fed20', class: "co-rich-text-editor__count", ref: (el) => (this.charCountEl = el) }, this.charCount, this.maxLength != null ? ` / ${this.maxLength}` : '')))));
|
|
2032
2046
|
}
|
|
2033
2047
|
static get is() { return "co-rich-text-editor"; }
|
|
2034
2048
|
static get originalStyleUrls() {
|
|
@@ -2068,7 +2082,7 @@ export class CoRichTextEditor {
|
|
|
2068
2082
|
"mutable": false,
|
|
2069
2083
|
"complexType": {
|
|
2070
2084
|
"original": "RichTextPreset",
|
|
2071
|
-
"resolved": "\"comment\" | \"document\" | \"email\" | \"task\"",
|
|
2085
|
+
"resolved": "\"block-email\" | \"comment\" | \"document\" | \"email\" | \"task\"",
|
|
2072
2086
|
"references": {
|
|
2073
2087
|
"RichTextPreset": {
|
|
2074
2088
|
"location": "import",
|
|
@@ -2187,6 +2201,26 @@ export class CoRichTextEditor {
|
|
|
2187
2201
|
"attribute": "status",
|
|
2188
2202
|
"defaultValue": "'default'"
|
|
2189
2203
|
},
|
|
2204
|
+
"variant": {
|
|
2205
|
+
"type": "string",
|
|
2206
|
+
"mutable": false,
|
|
2207
|
+
"complexType": {
|
|
2208
|
+
"original": "'default' | 'flat'",
|
|
2209
|
+
"resolved": "\"default\" | \"flat\"",
|
|
2210
|
+
"references": {}
|
|
2211
|
+
},
|
|
2212
|
+
"required": false,
|
|
2213
|
+
"optional": false,
|
|
2214
|
+
"docs": {
|
|
2215
|
+
"tags": [],
|
|
2216
|
+
"text": "Visual style. `flat` strips the frame's border and background so it\nreads as plain content instead of a boxed control \u2014 padding, label,\nfocus ring, disabled and status states are unaffected. The toolbar keeps\nits own background + bottom border (a subtle, token-driven separator),\nwhich is what keeps toolbar and editable area legible/separated once the\nouter box is gone. `default` (the standard bordered box) renders\nidentically to before this prop existed."
|
|
2217
|
+
},
|
|
2218
|
+
"getter": false,
|
|
2219
|
+
"setter": false,
|
|
2220
|
+
"reflect": true,
|
|
2221
|
+
"attribute": "variant",
|
|
2222
|
+
"defaultValue": "'default'"
|
|
2223
|
+
},
|
|
2190
2224
|
"disabled": {
|
|
2191
2225
|
"type": "boolean",
|
|
2192
2226
|
"mutable": false,
|
|
@@ -2311,7 +2345,7 @@ export class CoRichTextEditor {
|
|
|
2311
2345
|
"mutable": false,
|
|
2312
2346
|
"complexType": {
|
|
2313
2347
|
"original": "ToolbarVariant",
|
|
2314
|
-
"resolved": "\"auto\" | \"basic\" | \"compact\" | \"full\" | \"none\"",
|
|
2348
|
+
"resolved": "\"auto\" | \"basic\" | \"compact\" | \"compact-assets\" | \"full\" | \"none\"",
|
|
2315
2349
|
"references": {
|
|
2316
2350
|
"ToolbarVariant": {
|
|
2317
2351
|
"location": "import",
|
|
@@ -2395,6 +2429,45 @@ export class CoRichTextEditor {
|
|
|
2395
2429
|
"getter": false,
|
|
2396
2430
|
"setter": false
|
|
2397
2431
|
},
|
|
2432
|
+
"attachmentsEnabled": {
|
|
2433
|
+
"type": "boolean",
|
|
2434
|
+
"mutable": false,
|
|
2435
|
+
"complexType": {
|
|
2436
|
+
"original": "boolean",
|
|
2437
|
+
"resolved": "boolean",
|
|
2438
|
+
"references": {}
|
|
2439
|
+
},
|
|
2440
|
+
"required": false,
|
|
2441
|
+
"optional": false,
|
|
2442
|
+
"docs": {
|
|
2443
|
+
"tags": [],
|
|
2444
|
+
"text": "Passthrough: shows the toolbar attachment button (host owns the files)."
|
|
2445
|
+
},
|
|
2446
|
+
"getter": false,
|
|
2447
|
+
"setter": false,
|
|
2448
|
+
"reflect": false,
|
|
2449
|
+
"attribute": "attachments-enabled",
|
|
2450
|
+
"defaultValue": "false"
|
|
2451
|
+
},
|
|
2452
|
+
"attachmentAccept": {
|
|
2453
|
+
"type": "string",
|
|
2454
|
+
"mutable": false,
|
|
2455
|
+
"complexType": {
|
|
2456
|
+
"original": "string",
|
|
2457
|
+
"resolved": "string | undefined",
|
|
2458
|
+
"references": {}
|
|
2459
|
+
},
|
|
2460
|
+
"required": false,
|
|
2461
|
+
"optional": true,
|
|
2462
|
+
"docs": {
|
|
2463
|
+
"tags": [],
|
|
2464
|
+
"text": "Passthrough: `accept` for the toolbar attachment picker."
|
|
2465
|
+
},
|
|
2466
|
+
"getter": false,
|
|
2467
|
+
"setter": false,
|
|
2468
|
+
"reflect": false,
|
|
2469
|
+
"attribute": "attachment-accept"
|
|
2470
|
+
},
|
|
2398
2471
|
"fontFamilies": {
|
|
2399
2472
|
"type": "string",
|
|
2400
2473
|
"mutable": false,
|
|
@@ -2637,6 +2710,26 @@ export class CoRichTextEditor {
|
|
|
2637
2710
|
"resolved": "void",
|
|
2638
2711
|
"references": {}
|
|
2639
2712
|
}
|
|
2713
|
+
}, {
|
|
2714
|
+
"method": "coAttachmentsSelected",
|
|
2715
|
+
"name": "coAttachmentsSelected",
|
|
2716
|
+
"bubbles": true,
|
|
2717
|
+
"cancelable": true,
|
|
2718
|
+
"composed": true,
|
|
2719
|
+
"docs": {
|
|
2720
|
+
"tags": [],
|
|
2721
|
+
"text": "Re-emitted from the inner toolbar: files picked via the attach button.\nDeclared here so hosts can bind on the editor (the toolbar is internal)."
|
|
2722
|
+
},
|
|
2723
|
+
"complexType": {
|
|
2724
|
+
"original": "{ files: File[] }",
|
|
2725
|
+
"resolved": "{ files: File[]; }",
|
|
2726
|
+
"references": {
|
|
2727
|
+
"File": {
|
|
2728
|
+
"location": "global",
|
|
2729
|
+
"id": "global::File"
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
}
|
|
2640
2733
|
}];
|
|
2641
2734
|
}
|
|
2642
2735
|
static get methods() {
|