@prolibu-suite/cobalt-core 0.11.6 → 0.11.7
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 +160 -46
- package/dist/cjs/co-action-bar.cjs.entry.js +1 -1
- package/dist/cjs/co-app-shell.cjs.entry.js +1 -1
- package/dist/cjs/co-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/co-avatar.cjs.entry.js +6 -3
- package/dist/cjs/co-button.cjs.entry.js +14 -6
- package/dist/cjs/co-calendar-month_2.cjs.entry.js +9 -5
- package/dist/cjs/co-calendar_3.cjs.entry.js +23 -7
- package/dist/cjs/co-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/co-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/co-chip_2.cjs.entry.js +4 -4
- package/dist/cjs/co-color-picker.cjs.entry.js +24 -5
- package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-combobox.cjs.entry.js +7 -5
- 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 +1 -1
- package/dist/cjs/co-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/co-date-range-picker.cjs.entry.js +1 -1
- package/dist/cjs/co-date-range.cjs.entry.js +1 -1
- package/dist/cjs/co-date-time-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-document-editor.cjs.entry.js +108 -7
- package/dist/cjs/co-drive-card.cjs.entry.js +2 -2
- package/dist/cjs/co-drop-zone.cjs.entry.js +1 -1
- package/dist/cjs/co-emoji-picker.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 +2 -2
- package/dist/cjs/co-event-popover.cjs.entry.js +1 -1
- package/dist/cjs/co-fab.cjs.entry.js +3 -3
- package/dist/cjs/co-file-field.cjs.entry.js +87 -16
- package/dist/cjs/co-file-type-tile.cjs.entry.js +2 -2
- package/dist/cjs/co-gradient-bar.cjs.entry.js +4 -4
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +3 -3
- package/dist/cjs/co-icon.cjs.entry.js +2 -2
- package/dist/cjs/co-input.cjs.entry.js +1 -1
- package/dist/cjs/co-json-field.cjs.entry.js +4 -4
- package/dist/cjs/co-kbd_2.cjs.entry.js +3 -3
- package/dist/cjs/co-lightbox.cjs.entry.js +71 -7
- package/dist/cjs/co-list-footer.cjs.entry.js +1 -1
- package/dist/cjs/co-list-item.cjs.entry.js +4 -4
- package/dist/cjs/co-media-thumb.cjs.entry.js +2 -2
- package/dist/cjs/co-menu-divider.cjs.entry.js +1 -1
- package/dist/cjs/co-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/co-menu.cjs.entry.js +3 -3
- package/dist/cjs/co-modal.cjs.entry.js +23 -3
- package/dist/cjs/co-navbar.cjs.entry.js +2 -2
- package/dist/cjs/co-number-field.cjs.entry.js +9 -5
- package/dist/cjs/co-overlay.cjs.entry.js +2 -2
- package/dist/cjs/co-page-header.cjs.entry.js +1 -1
- package/dist/cjs/co-phone-field.cjs.entry.js +52 -2
- package/dist/cjs/co-popover.cjs.entry.js +33 -4
- package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-progress-circle.cjs.entry.js +2 -2
- package/dist/cjs/co-provider-logo_2.cjs.entry.js +1 -1
- package/dist/cjs/co-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/co-radio.cjs.entry.js +3 -3
- package/dist/cjs/co-rating.cjs.entry.js +4 -4
- package/dist/cjs/co-ref-field.cjs.entry.js +15 -8
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +80 -23
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +105 -2
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +2 -2
- package/dist/cjs/co-row.cjs.entry.js +2 -2
- package/dist/cjs/co-select.cjs.entry.js +10 -8
- package/dist/cjs/co-separator.cjs.entry.js +1 -1
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +11 -9
- package/dist/cjs/co-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/co-slider.cjs.entry.js +3 -3
- package/dist/cjs/co-swatch-grid.cjs.entry.js +3 -3
- package/dist/cjs/co-switch.cjs.entry.js +4 -4
- package/dist/cjs/co-tab-group.cjs.entry.js +110 -12
- package/dist/cjs/co-tab.cjs.entry.js +3 -3
- package/dist/cjs/co-tags-field.cjs.entry.js +7 -7
- package/dist/cjs/co-textarea.cjs.entry.js +5 -5
- package/dist/cjs/co-tile.cjs.entry.js +1 -1
- package/dist/cjs/co-time-field.cjs.entry.js +1 -1
- package/dist/cjs/co-toast.cjs.entry.js +1 -1
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +6 -4
- package/dist/cjs/co-toggle-button.cjs.entry.js +5 -3
- package/dist/cjs/co-transfer-list.cjs.entry.js +1 -1
- package/dist/cjs/co-video.cjs.entry.js +2 -2
- package/dist/cjs/cobalt.cjs.js +1 -1
- package/dist/cjs/{color-DQVrQGi0.js → color-DlKNWtdc.js} +38 -2
- package/dist/cjs/escapeLayers-DlCir9Sr.js +22 -0
- package/dist/cjs/fieldChip-DbYMfylq.js +7 -0
- package/dist/cjs/{gradientStops-CMpH4fB_.js → gradientStops-xZbv7bi6.js} +1 -1
- package/dist/cjs/{index-BbSD1Eyw.js → index-CJhgaDE1.js} +1 -1
- package/dist/cjs/index-bHoidDwv.js +14 -14
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pagination-S2sSAgdl.js → pagination-BPA1UGs-.js} +30 -0
- package/dist/cjs/{richTextI18n-DXGIv5w1.js → richTextI18n-B8qb5JKb.js} +12 -0
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/p-01b54d81.entry.js +1 -0
- package/dist/cobalt/{p-02ff847e.entry.js → p-02133c95.entry.js} +1 -1
- package/dist/cobalt/{p-73313cbe.entry.js → p-0bbaaf4f.entry.js} +1 -1
- package/dist/cobalt/p-0f3a3232.entry.js +1 -0
- package/dist/cobalt/p-12fc5119.entry.js +1 -0
- package/dist/cobalt/p-19f0f534.entry.js +1 -0
- package/dist/cobalt/p-1c9253a2.entry.js +1 -0
- package/dist/cobalt/{p-63908a8d.entry.js → p-256ca457.entry.js} +1 -1
- package/dist/cobalt/{p-71fe35c4.entry.js → p-2ff8f591.entry.js} +1 -1
- package/dist/cobalt/p-33840969.entry.js +1 -0
- package/dist/cobalt/p-353ff9ed.entry.js +1 -0
- package/dist/cobalt/p-37f9ec35.entry.js +1 -0
- package/dist/cobalt/p-3878f174.entry.js +1 -0
- package/dist/cobalt/{p-a4eb298c.entry.js → p-3890d22f.entry.js} +1 -1
- package/dist/cobalt/{p-7fabd8ba.entry.js → p-3b7e90c8.entry.js} +1 -1
- package/dist/cobalt/p-3bff827a.entry.js +1 -0
- package/dist/cobalt/{p-65c191aa.entry.js → p-3e532a11.entry.js} +1 -1
- package/dist/cobalt/{p-4d743628.entry.js → p-3e864e7d.entry.js} +1 -1
- package/dist/cobalt/p-454dd8ab.entry.js +1 -0
- package/dist/cobalt/{p-cfaaa684.entry.js → p-4ae6fe0e.entry.js} +1 -1
- package/dist/cobalt/p-4cdfcd9c.entry.js +1 -0
- package/dist/cobalt/p-50ab6b9b.entry.js +1 -0
- package/dist/cobalt/{p-713637f2.entry.js → p-59a71695.entry.js} +1 -1
- package/dist/cobalt/{p-06689166.entry.js → p-5d41b58b.entry.js} +1 -1
- package/dist/cobalt/{p-95f2ebb1.entry.js → p-5e14f676.entry.js} +1 -1
- package/dist/cobalt/p-5e39cf70.entry.js +1 -0
- package/dist/cobalt/{p-df529110.entry.js → p-600d0cab.entry.js} +1 -1
- package/dist/cobalt/{p-38eb2615.entry.js → p-60ea3d33.entry.js} +1 -1
- package/dist/cobalt/{p-d5d8fa8b.entry.js → p-63f888a1.entry.js} +1 -1
- package/dist/cobalt/{p-d00c3894.entry.js → p-6eca1c7c.entry.js} +1 -1
- package/dist/cobalt/p-74804c79.entry.js +1 -0
- package/dist/cobalt/{p-f2fa2ac0.entry.js → p-76ea3f34.entry.js} +1 -1
- package/dist/cobalt/p-7737354e.entry.js +1 -0
- package/dist/cobalt/p-7e444408.entry.js +1 -0
- package/dist/cobalt/p-7e72720a.entry.js +1 -0
- package/dist/cobalt/p-82bcd062.entry.js +1 -0
- package/dist/cobalt/{p-56176aa0.entry.js → p-83691cfb.entry.js} +1 -1
- package/dist/cobalt/p-84256bde.entry.js +1 -0
- package/dist/cobalt/p-84ad0227.entry.js +1 -0
- package/dist/cobalt/{p-b2457431.entry.js → p-89328cd8.entry.js} +1 -1
- package/dist/cobalt/p-8a26f3cc.entry.js +1 -0
- package/dist/cobalt/p-8c22bf4b.entry.js +1 -0
- package/dist/cobalt/p-8e7ad2fe.entry.js +1 -0
- package/dist/cobalt/p-947b8e35.entry.js +1 -0
- package/dist/cobalt/p-94b871fb.entry.js +1 -0
- package/dist/cobalt/p-99781b0b.entry.js +1 -0
- package/dist/cobalt/{p-71dc8e4a.entry.js → p-9af26af0.entry.js} +1 -1
- package/dist/cobalt/p-9ce57385.entry.js +1 -0
- package/dist/cobalt/p-BzxEh7sq.js +1 -0
- package/dist/cobalt/{p-DXLeDZvr.js → p-CP7MznKV.js} +1 -1
- package/dist/cobalt/p-CSLjZ3WO.js +1 -0
- package/dist/cobalt/{p-Ch-Tygdb.js → p-CqQobidl.js} +1 -1
- package/dist/cobalt/p-EtYK1iGx.js +1 -0
- package/dist/cobalt/p-LnW75kr5.js +1 -0
- package/dist/cobalt/{p-cf5b91be.entry.js → p-a18c01eb.entry.js} +1 -1
- package/dist/cobalt/{p-65d44da2.entry.js → p-a33a277a.entry.js} +1 -1
- package/dist/cobalt/p-a4154bcf.entry.js +1 -0
- package/dist/cobalt/{p-aed832d5.entry.js → p-a4264bde.entry.js} +1 -1
- package/dist/cobalt/p-a6c9a0c5.entry.js +1 -0
- package/dist/cobalt/{p-868d1a18.entry.js → p-b2c49664.entry.js} +1 -1
- package/dist/cobalt/{p-f69804a6.entry.js → p-b402665a.entry.js} +1 -1
- package/dist/cobalt/{p-903237f9.entry.js → p-bbf3d859.entry.js} +1 -1
- package/dist/cobalt/p-bee52042.entry.js +1 -0
- package/dist/cobalt/{p-a7cd61ce.entry.js → p-c004fde5.entry.js} +1 -1
- package/dist/cobalt/p-c026968c.entry.js +1 -0
- package/dist/cobalt/{p-8a2a2b6c.entry.js → p-c23630ab.entry.js} +1 -1
- package/dist/cobalt/p-c31b9b51.entry.js +1 -0
- package/dist/cobalt/{p-0e4c2234.entry.js → p-c93be2d5.entry.js} +1 -1
- package/dist/cobalt/p-cb1013e6.entry.js +1 -0
- package/dist/cobalt/p-cd43d372.entry.js +1 -0
- package/dist/cobalt/{p-26cbdc33.entry.js → p-cea21e08.entry.js} +1 -1
- package/dist/cobalt/p-cf675968.entry.js +1 -0
- package/dist/cobalt/{p-ba39a965.entry.js → p-d1595580.entry.js} +1 -1
- package/dist/cobalt/{p-99df434b.entry.js → p-d26dc681.entry.js} +1 -1
- package/dist/cobalt/{p-8680559b.entry.js → p-d375c84e.entry.js} +1 -1
- package/dist/cobalt/{p-bee30373.entry.js → p-d7775109.entry.js} +1 -1
- package/dist/cobalt/p-d9b4594b.entry.js +1 -0
- package/dist/cobalt/{p-b67fb616.entry.js → p-e4646a0e.entry.js} +1 -1
- package/dist/cobalt/{p-7beface1.entry.js → p-e5350eeb.entry.js} +1 -1
- package/dist/cobalt/{p-e5f0d560.entry.js → p-f1da1df1.entry.js} +1 -1
- package/dist/cobalt/p-f23f52ed.entry.js +1 -0
- package/dist/cobalt/{p-13e5b724.entry.js → p-f6f273f7.entry.js} +1 -1
- package/dist/cobalt/{p-71ae1551.entry.js → p-fb6671e0.entry.js} +1 -1
- package/dist/cobalt/p-fb731600.entry.js +1 -0
- package/dist/cobalt/{p-7d1718ed.entry.js → p-feec49a4.entry.js} +1 -1
- package/dist/cobalt/p-ff218d09.entry.js +1 -0
- package/dist/cobalt/p-hXbDUT3I.js +1 -0
- package/dist/collection/components/co-action-bar/co-action-bar.css +6 -2
- package/dist/collection/components/co-app-shell/co-app-shell.css +6 -5
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +12 -6
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +1 -1
- package/dist/collection/components/co-avatar/co-avatar.css +11 -1
- package/dist/collection/components/co-avatar/co-avatar.js +5 -2
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +1 -1
- package/dist/collection/components/co-button/co-button.css +38 -7
- package/dist/collection/components/co-button/co-button.js +34 -6
- package/dist/collection/components/co-calendar/co-calendar.css +4 -1
- package/dist/collection/components/co-calendar-month/co-calendar-month.css +3 -1
- package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.css +3 -1
- package/dist/collection/components/co-checkbox/co-checkbox.css +5 -1
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +10 -5
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +1 -1
- package/dist/collection/components/co-chip/co-chip.css +17 -12
- package/dist/collection/components/co-color-area/co-color-area.js +2 -2
- package/dist/collection/components/co-color-picker/co-color-picker.css +19 -7
- package/dist/collection/components/co-color-picker/co-color-picker.js +42 -3
- package/dist/collection/components/co-color-slider/co-color-slider.js +1 -1
- package/dist/collection/components/co-column-picker/co-column-picker.css +10 -5
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.css +8 -5
- package/dist/collection/components/co-combobox/co-combobox.js +7 -5
- package/dist/collection/components/co-command-search/co-command-search.css +5 -2
- package/dist/collection/components/co-command-search/co-command-search.js +1 -1
- package/dist/collection/components/co-data-table/co-data-table.css +13 -10
- package/dist/collection/components/co-data-table/co-data-table.js +1 -1
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.css +15 -13
- 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 +11 -5
- package/dist/collection/components/co-date-field/co-date-field.js +4 -4
- package/dist/collection/components/co-date-picker/co-date-picker.css +5 -2
- 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 +9 -3
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +2 -2
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.css +11 -5
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +2 -2
- package/dist/collection/components/co-document-editor/co-document-editor.css +112 -1
- package/dist/collection/components/co-document-editor/co-document-editor.js +91 -10
- package/dist/collection/components/co-document-editor/signature-bar.js +26 -0
- package/dist/collection/components/co-drawer/co-drawer.css +12 -4
- package/dist/collection/components/co-drawer/co-drawer.js +16 -0
- package/dist/collection/components/co-drive-card/co-drive-card.css +18 -12
- 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-emoji-picker/co-emoji-picker.js +2 -2
- package/dist/collection/components/co-empty-state/co-empty-state.css +10 -6
- 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-event-popover/co-event-popover.js +1 -1
- package/dist/collection/components/co-fab/co-fab.css +5 -3
- package/dist/collection/components/co-fab/co-fab.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.css +11 -6
- package/dist/collection/components/co-file-field/co-file-field.js +30 -16
- package/dist/collection/components/co-file-field/co-file-field.utils.js +57 -0
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
- package/dist/collection/components/co-gradient-bar/co-gradient-bar.js +2 -2
- package/dist/collection/components/co-helper-text/co-helper-text.css +6 -4
- 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.css +5 -3
- package/dist/collection/components/co-icon-button/co-icon-button.js +2 -2
- package/dist/collection/components/co-input/co-input.css +49 -22
- package/dist/collection/components/co-json-field/co-json-field.css +10 -5
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-kbd/co-kbd.js +1 -1
- package/dist/collection/components/co-lightbox/co-lightbox.js +8 -7
- package/dist/collection/components/co-lightbox/openInTab.js +63 -0
- 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.css +7 -0
- package/dist/collection/components/co-menu/co-menu.js +2 -2
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-menu-item/co-menu-item.css +19 -7
- package/dist/collection/components/co-modal/co-modal.css +3 -0
- package/dist/collection/components/co-modal/co-modal.js +23 -2
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.css +12 -6
- package/dist/collection/components/co-number-field/co-number-field.js +3 -3
- package/dist/collection/components/co-option-list/co-option-list.css +7 -4
- package/dist/collection/components/co-option-list/co-option-list.js +2 -2
- package/dist/collection/components/co-overlay/co-overlay.css +3 -0
- package/dist/collection/components/co-overlay/co-overlay.js +1 -1
- package/dist/collection/components/co-overlay/escapeLayers.js +20 -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 +8 -3
- package/dist/collection/components/co-phone-field/co-phone-field.js +36 -1
- package/dist/collection/components/co-popover/co-popover.css +4 -0
- package/dist/collection/components/co-popover/co-popover.js +33 -4
- package/dist/collection/components/co-progress-bar/co-progress-bar.css +6 -2
- 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-radio-group/co-radio-group.css +10 -5
- package/dist/collection/components/co-radio-group/co-radio-group.js +1 -1
- package/dist/collection/components/co-rating/co-rating.css +6 -4
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +43 -8
- package/dist/collection/components/co-ref-field/co-ref-field.js +17 -10
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +26 -4
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +77 -20
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +3 -1
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +40 -0
- package/dist/collection/components/co-rich-text-toolbar/panelFit.js +63 -0
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.css +2 -1
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +1 -1
- package/dist/collection/components/co-select/co-select.css +22 -12
- package/dist/collection/components/co-select/co-select.js +10 -8
- 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 +56 -19
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +11 -9
- package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
- package/dist/collection/components/co-slider/co-slider.css +6 -4
- package/dist/collection/components/co-slider/co-slider.js +2 -2
- package/dist/collection/components/co-swatch-grid/co-swatch-grid.js +1 -1
- package/dist/collection/components/co-switch/co-switch.css +16 -7
- package/dist/collection/components/co-switch/co-switch.js +3 -3
- package/dist/collection/components/co-tab/co-tab.css +33 -29
- package/dist/collection/components/co-tab/co-tab.js +2 -2
- package/dist/collection/components/co-tab-group/co-tab-group.css +26 -6
- package/dist/collection/components/co-tab-group/co-tab-group.js +78 -11
- package/dist/collection/components/co-tab-group/trackScroll.js +31 -0
- package/dist/collection/components/co-tags-field/co-tags-field.css +10 -5
- package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
- package/dist/collection/components/co-textarea/co-textarea.css +12 -7
- package/dist/collection/components/co-textarea/co-textarea.js +4 -4
- package/dist/collection/components/co-tile/co-tile.js +1 -1
- package/dist/collection/components/co-time-field/co-time-field.js +1 -1
- package/dist/collection/components/co-toast/co-toast.css +36 -25
- package/dist/collection/components/co-toast/co-toast.js +2 -2
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +47 -0
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +7 -5
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +12 -0
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +10 -8
- package/dist/collection/components/co-tooltip/co-tooltip.js +2 -2
- package/dist/collection/components/co-transfer-list/co-transfer-list.css +15 -8
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +1 -1
- package/dist/collection/components/co-tree-item/co-tree-item.js +2 -2
- package/dist/collection/components/co-video/co-video.js +2 -2
- package/dist/collection/utils/amountText.js +5 -1
- package/dist/collection/utils/color.js +36 -2
- package/dist/collection/utils/eventColor.js +7 -3
- package/dist/collection/utils/fieldChip.js +1 -1
- package/dist/collection/utils/phoneI18n.js +34 -0
- package/dist/collection/utils/richTextI18n.js +12 -0
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-action-bar.js +1 -1
- package/dist/components/co-app-shell.js +1 -1
- package/dist/components/co-audio-player.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-breadcrumb-item.js +1 -1
- package/dist/components/co-breadcrumb.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-timegrid.js +1 -1
- package/dist/components/co-calendar.js +1 -1
- package/dist/components/co-carousel.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-date-time-picker.js +1 -1
- package/dist/components/co-document-editor.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-emoji-picker.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-event-popover.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-gradient-bar.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-kbd.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-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-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-swatch-grid.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-tile.js +1 -1
- package/dist/components/co-time-field.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-tree-item.js +1 -1
- package/dist/components/co-video.js +1 -1
- package/dist/components/{p-CxWo3qDo.js → p-4Y3YkFf1.js} +1 -1
- package/dist/components/{p-V7HYy0VO.js → p-B5F93Ujt.js} +1 -1
- package/dist/components/p-B70R6xWE.js +1 -0
- package/dist/components/p-BSt2t5Fy.js +1 -0
- package/dist/components/p-BfDYq7JS.js +1 -0
- package/dist/components/{p-C4sZjIDj.js → p-BhmVj5-9.js} +1 -1
- package/dist/components/p-BzxEh7sq.js +1 -0
- package/dist/components/p-CDiRdG6I.js +1 -0
- package/dist/components/p-CMMv2RcH.js +1 -0
- package/dist/components/{p-Dn2wblrA.js → p-CO12CK0t.js} +1 -1
- package/dist/components/{p-DymSqdlK.js → p-COCcx0DN.js} +1 -1
- package/dist/components/{p-DXLeDZvr.js → p-CP7MznKV.js} +1 -1
- package/dist/components/{p-wUXcJGdy.js → p-CX0bNXK3.js} +1 -1
- package/dist/components/{p-Bw_b_czs.js → p-CXi0fhTi.js} +1 -1
- package/dist/components/p-CaAdnjC6.js +1 -0
- package/dist/components/p-CaFwCFgg.js +1 -0
- package/dist/components/p-CjB5Vqpy.js +1 -0
- package/dist/components/p-Co0eKIiO.js +1 -0
- package/dist/components/{p-Ch-Tygdb.js → p-CqQobidl.js} +1 -1
- package/dist/components/{p-BRZci8B3.js → p-CwRoHnzq.js} +1 -1
- package/dist/components/{p-Dnz99Ox_.js → p-DMW9TJ7Z.js} +1 -1
- package/dist/components/p-DTWqwwXO.js +1 -0
- package/dist/components/{p-8XzG8pzY.js → p-DldA2IL3.js} +1 -1
- package/dist/components/p-LnW75kr5.js +1 -0
- package/dist/components/p-R1W48hzW.js +1 -0
- package/dist/components/{p-BW10Sgiy.js → p-_S5htX1i.js} +1 -1
- package/dist/components/p-hXbDUT3I.js +1 -0
- package/dist/components/p-o5wUtH9g.js +1 -0
- package/dist/components/{p-KK2vAKs-.js → p-qMNHMnvI.js} +1 -1
- package/dist/components/{p-C6WHpL5X.js → p-rfvTj6cP.js} +1 -1
- package/dist/components/{p-BI_VaFsx.js → p-upZqhFKo.js} +1 -1
- package/dist/components/{p-COozgrEk.js → p-w3AQrtBx.js} +1 -1
- package/dist/components/p-xtGT3YeI.js +1 -0
- package/dist/esm/co-action-bar.entry.js +1 -1
- package/dist/esm/co-app-shell.entry.js +1 -1
- package/dist/esm/co-autocomplete.entry.js +1 -1
- package/dist/esm/co-avatar.entry.js +6 -3
- package/dist/esm/co-button.entry.js +14 -6
- package/dist/esm/co-calendar-month_2.entry.js +9 -5
- package/dist/esm/co-calendar_3.entry.js +23 -7
- package/dist/esm/co-checkbox-group.entry.js +1 -1
- package/dist/esm/co-checkbox.entry.js +1 -1
- package/dist/esm/co-chip_2.entry.js +4 -4
- package/dist/esm/co-color-picker.entry.js +24 -5
- package/dist/esm/co-column-picker.entry.js +3 -3
- package/dist/esm/co-combobox.entry.js +7 -5
- 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 +1 -1
- package/dist/esm/co-date-picker.entry.js +1 -1
- package/dist/esm/co-date-range-picker.entry.js +1 -1
- package/dist/esm/co-date-range.entry.js +1 -1
- package/dist/esm/co-date-time-picker.entry.js +3 -3
- package/dist/esm/co-document-editor.entry.js +108 -7
- package/dist/esm/co-drive-card.entry.js +2 -2
- package/dist/esm/co-drop-zone.entry.js +1 -1
- package/dist/esm/co-emoji-picker.entry.js +2 -2
- package/dist/esm/co-empty-state.entry.js +3 -3
- package/dist/esm/co-event-calendar.entry.js +2 -2
- package/dist/esm/co-event-popover.entry.js +1 -1
- package/dist/esm/co-fab.entry.js +3 -3
- package/dist/esm/co-file-field.entry.js +87 -16
- package/dist/esm/co-file-type-tile.entry.js +2 -2
- package/dist/esm/co-gradient-bar.entry.js +4 -4
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +3 -3
- package/dist/esm/co-icon.entry.js +2 -2
- package/dist/esm/co-input.entry.js +1 -1
- package/dist/esm/co-json-field.entry.js +4 -4
- package/dist/esm/co-kbd_2.entry.js +3 -3
- package/dist/esm/co-lightbox.entry.js +71 -7
- package/dist/esm/co-list-footer.entry.js +1 -1
- package/dist/esm/co-list-item.entry.js +4 -4
- package/dist/esm/co-media-thumb.entry.js +2 -2
- package/dist/esm/co-menu-divider.entry.js +1 -1
- package/dist/esm/co-menu-item.entry.js +1 -1
- package/dist/esm/co-menu.entry.js +3 -3
- package/dist/esm/co-modal.entry.js +23 -3
- package/dist/esm/co-navbar.entry.js +2 -2
- package/dist/esm/co-number-field.entry.js +9 -5
- package/dist/esm/co-overlay.entry.js +2 -2
- package/dist/esm/co-page-header.entry.js +1 -1
- package/dist/esm/co-phone-field.entry.js +52 -2
- package/dist/esm/co-popover.entry.js +33 -4
- package/dist/esm/co-progress-bar.entry.js +3 -3
- package/dist/esm/co-progress-circle.entry.js +2 -2
- package/dist/esm/co-provider-logo_2.entry.js +1 -1
- package/dist/esm/co-radio-group.entry.js +1 -1
- package/dist/esm/co-radio.entry.js +3 -3
- package/dist/esm/co-rating.entry.js +4 -4
- package/dist/esm/co-ref-field.entry.js +15 -8
- package/dist/esm/co-rich-text-editor.entry.js +80 -23
- package/dist/esm/co-rich-text-toolbar.entry.js +105 -2
- package/dist/esm/co-rich-text-viewer.entry.js +2 -2
- package/dist/esm/co-row.entry.js +2 -2
- package/dist/esm/co-select.entry.js +10 -8
- package/dist/esm/co-separator.entry.js +1 -1
- package/dist/esm/co-sidebar-nav.entry.js +11 -9
- package/dist/esm/co-sidebar.entry.js +2 -2
- package/dist/esm/co-slider.entry.js +3 -3
- package/dist/esm/co-swatch-grid.entry.js +3 -3
- package/dist/esm/co-switch.entry.js +4 -4
- package/dist/esm/co-tab-group.entry.js +110 -12
- package/dist/esm/co-tab.entry.js +3 -3
- package/dist/esm/co-tags-field.entry.js +7 -7
- package/dist/esm/co-textarea.entry.js +5 -5
- package/dist/esm/co-tile.entry.js +1 -1
- package/dist/esm/co-time-field.entry.js +1 -1
- package/dist/esm/co-toast.entry.js +1 -1
- package/dist/esm/co-toggle-button-group.entry.js +6 -4
- package/dist/esm/co-toggle-button.entry.js +5 -3
- package/dist/esm/co-transfer-list.entry.js +1 -1
- package/dist/esm/co-video.entry.js +2 -2
- package/dist/esm/cobalt.js +1 -1
- package/dist/esm/{color-BVGGRfNG.js → color-BzxEh7sq.js} +37 -3
- package/dist/esm/escapeLayers-hXbDUT3I.js +18 -0
- package/dist/esm/fieldChip-B0N8z5W-.js +5 -0
- package/dist/esm/{gradientStops-DDK0y8ra.js → gradientStops-W-_rTTl_.js} +1 -1
- package/dist/esm/{index-CgyOJePd.js → index-BNt7Zg14.js} +1 -1
- package/dist/esm/index-DJkaRtbb.js +14 -14
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pagination-BzrIQtrk.js → pagination-BXztNUE3.js} +30 -0
- package/dist/esm/{richTextI18n-xnrKkNWQ.js → richTextI18n-EtYK1iGx.js} +12 -0
- package/dist/types/components/co-button/co-button.d.ts +4 -0
- package/dist/types/components/co-color-picker/co-color-picker.d.ts +7 -0
- package/dist/types/components/co-document-editor/co-document-editor.d.ts +24 -1
- package/dist/types/components/co-document-editor/signature-bar.d.ts +26 -0
- package/dist/types/components/co-drawer/co-drawer.d.ts +2 -0
- package/dist/types/components/co-file-field/co-file-field.d.ts +6 -0
- package/dist/types/components/co-file-field/co-file-field.utils.d.ts +26 -0
- package/dist/types/components/co-lightbox/co-lightbox.d.ts +5 -0
- package/dist/types/components/co-lightbox/openInTab.d.ts +46 -0
- package/dist/types/components/co-modal/co-modal.d.ts +2 -0
- package/dist/types/components/co-overlay/escapeLayers.d.ts +18 -0
- package/dist/types/components/co-phone-field/co-phone-field.d.ts +11 -0
- package/dist/types/components/co-popover/co-popover.d.ts +7 -0
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +3 -2
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +14 -1
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +10 -0
- package/dist/types/components/co-rich-text-toolbar/panelFit.d.ts +38 -0
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +21 -3
- package/dist/types/components/co-tab-group/trackScroll.d.ts +19 -0
- package/dist/types/components/co-toggle-button/co-toggle-button.d.ts +3 -1
- package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +6 -4
- package/dist/types/components.d.ts +50 -25
- package/dist/types/utils/color.d.ts +28 -1
- package/dist/types/utils/eventColor.d.ts +3 -1
- package/dist/types/utils/fieldChip.d.ts +6 -0
- package/dist/types/utils/phoneI18n.d.ts +18 -0
- package/dist/types/utils/richTextI18n.d.ts +4 -0
- package/package.json +3 -3
- package/dist/cjs/fieldChip-C7MxxBVO.js +0 -7
- package/dist/cobalt/p-0d046d98.entry.js +0 -1
- package/dist/cobalt/p-12914c0a.entry.js +0 -1
- package/dist/cobalt/p-1348d5ca.entry.js +0 -1
- package/dist/cobalt/p-2231bacc.entry.js +0 -1
- package/dist/cobalt/p-28cf05f3.entry.js +0 -1
- package/dist/cobalt/p-3d1a48e5.entry.js +0 -1
- package/dist/cobalt/p-4bcdd422.entry.js +0 -1
- package/dist/cobalt/p-58ebb303.entry.js +0 -1
- package/dist/cobalt/p-5e678e88.entry.js +0 -1
- package/dist/cobalt/p-60f948c4.entry.js +0 -1
- package/dist/cobalt/p-6974df59.entry.js +0 -1
- package/dist/cobalt/p-69ecc933.entry.js +0 -1
- package/dist/cobalt/p-6c1992c9.entry.js +0 -1
- package/dist/cobalt/p-6c7e423c.entry.js +0 -1
- package/dist/cobalt/p-6d4a660c.entry.js +0 -1
- package/dist/cobalt/p-763698b3.entry.js +0 -1
- package/dist/cobalt/p-77e0d401.entry.js +0 -1
- package/dist/cobalt/p-78412feb.entry.js +0 -1
- package/dist/cobalt/p-7c20207b.entry.js +0 -1
- package/dist/cobalt/p-7df18a52.entry.js +0 -1
- package/dist/cobalt/p-848f5ca4.entry.js +0 -1
- package/dist/cobalt/p-87de5469.entry.js +0 -1
- package/dist/cobalt/p-93063876.entry.js +0 -1
- package/dist/cobalt/p-9adbab95.entry.js +0 -1
- package/dist/cobalt/p-9b114836.entry.js +0 -1
- package/dist/cobalt/p-9dc01092.entry.js +0 -1
- package/dist/cobalt/p-BVGGRfNG.js +0 -1
- package/dist/cobalt/p-DGLDAl09.js +0 -1
- package/dist/cobalt/p-DgJovDdy.js +0 -1
- package/dist/cobalt/p-a56bd4a8.entry.js +0 -1
- package/dist/cobalt/p-a5eabecb.entry.js +0 -1
- package/dist/cobalt/p-a5ee1fc2.entry.js +0 -1
- package/dist/cobalt/p-ad752791.entry.js +0 -1
- package/dist/cobalt/p-b39a4999.entry.js +0 -1
- package/dist/cobalt/p-b5dabdc3.entry.js +0 -1
- package/dist/cobalt/p-b9b73dcb.entry.js +0 -1
- package/dist/cobalt/p-bb7bbe70.entry.js +0 -1
- package/dist/cobalt/p-c5464a98.entry.js +0 -1
- package/dist/cobalt/p-c567533e.entry.js +0 -1
- package/dist/cobalt/p-d6215d80.entry.js +0 -1
- package/dist/cobalt/p-ea24eea8.entry.js +0 -1
- package/dist/cobalt/p-f0898e21.entry.js +0 -1
- package/dist/cobalt/p-f403eeec.entry.js +0 -1
- package/dist/cobalt/p-xnrKkNWQ.js +0 -1
- package/dist/components/p-B3Egz082.js +0 -1
- package/dist/components/p-B9wdMd_0.js +0 -1
- package/dist/components/p-BVGGRfNG.js +0 -1
- package/dist/components/p-BdmzslA5.js +0 -1
- package/dist/components/p-BzNBPHen.js +0 -1
- package/dist/components/p-C4U2tbRp.js +0 -1
- package/dist/components/p-C_6szR7t.js +0 -1
- package/dist/components/p-CiYPJW0B.js +0 -1
- package/dist/components/p-D4XP17VP.js +0 -1
- package/dist/components/p-DB8DGMc-.js +0 -1
- package/dist/components/p-DGLDAl09.js +0 -1
- package/dist/components/p-DhPxNA2f.js +0 -1
- package/dist/components/p-DsuFNmTI.js +0 -1
- package/dist/components/p-TGRbLkLz.js +0 -1
- package/dist/components/p-dnaee7fS.js +0 -1
- package/dist/esm/fieldChip-B2ctp2m6.js +0 -5
|
@@ -28,7 +28,9 @@
|
|
|
28
28
|
--co-cal-event-border: transparent;
|
|
29
29
|
--co-cal-event-text: var(--co-color-base-blanco, #fff);
|
|
30
30
|
--co-cal-event-text-light: var(--co-color-base-blanco, #fff);
|
|
31
|
-
|
|
31
|
+
/* Tinta sobre un chip CLARO (amarillo, naranja): depende del chip, no del
|
|
32
|
+
tema — con text-default salía blanca en oscuro (~1,6:1 sobre amarillo). */
|
|
33
|
+
--co-cal-event-text-dark: var(--co-color-base-negro, #1f1c1b);
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
.tg {
|
|
@@ -97,7 +97,11 @@
|
|
|
97
97
|
/* Check/dash glyphs: inline SVG for every appearance — see "GLYPH" below. */
|
|
98
98
|
|
|
99
99
|
/* ─── INDETERMINATE ─────────────────────────────────────────── */
|
|
100
|
-
|
|
100
|
+
/* Clase repetida a propósito: la caja sin marcar es `.co-checkbox:not(--checked)`
|
|
101
|
+
(0,2,0) y el indeterminado NO lleva --checked (ver .tsx), así que con una sola
|
|
102
|
+
clase (0,1,0) perdía: fondo translúcido + guion blanco encima = casilla vacía
|
|
103
|
+
(el «parcial» de una fila «todos» no se veía). 0,2,0 y declarada después → gana. */
|
|
104
|
+
.co-checkbox.co-checkbox--indeterminate {
|
|
101
105
|
background: var(--co-semantic-surface-primary);
|
|
102
106
|
border: none;
|
|
103
107
|
}
|
|
@@ -152,8 +152,11 @@
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
/* ── Error state ────────────────────────────────────────────── */
|
|
155
|
+
/* Borde de error de CAMPO por --co-semantic-border-error: gira con el tema (status-error es
|
|
156
|
+
relleno fijo y como trazo en oscuro daba 2,94:1). En claro vale status-error (idéntico).
|
|
157
|
+
Fallback: la primitiva de hoy, hasta publicar tokens. */
|
|
155
158
|
.co-checkbox-group--error .co-checkbox-group__box:not(.co-checkbox-group__box--checked) {
|
|
156
|
-
border-color: var(--co-semantic-status-error);
|
|
159
|
+
border-color: var(--co-semantic-border-error, var(--co-semantic-status-error));
|
|
157
160
|
}
|
|
158
161
|
|
|
159
162
|
/* ── Helper text ────────────────────────────────────────────── */
|
|
@@ -177,24 +180,26 @@
|
|
|
177
180
|
line-height: 1;
|
|
178
181
|
}
|
|
179
182
|
|
|
183
|
+
/* Tinta de estado por --co-semantic-text-*: gira con el tema (status-* es relleno, no se
|
|
184
|
+
aclara, y como texto en oscuro daba <4,5). Fallback a la primitiva hasta publicar tokens. */
|
|
180
185
|
.co-checkbox-group__helper--error .co-checkbox-group__helper-icon,
|
|
181
186
|
.co-checkbox-group__helper--error .co-checkbox-group__helper-text {
|
|
182
|
-
color: var(--co-semantic-status-error);
|
|
187
|
+
color: var(--co-semantic-text-error, var(--co-semantic-status-error));
|
|
183
188
|
}
|
|
184
189
|
|
|
185
190
|
.co-checkbox-group__helper--success .co-checkbox-group__helper-icon,
|
|
186
191
|
.co-checkbox-group__helper--success .co-checkbox-group__helper-text {
|
|
187
|
-
color: var(--co-semantic-status-success);
|
|
192
|
+
color: var(--co-semantic-text-success, var(--co-semantic-status-success));
|
|
188
193
|
}
|
|
189
194
|
|
|
190
195
|
.co-checkbox-group__helper--warning .co-checkbox-group__helper-icon,
|
|
191
196
|
.co-checkbox-group__helper--warning .co-checkbox-group__helper-text {
|
|
192
|
-
color: var(--co-color-status-review);
|
|
197
|
+
color: var(--co-semantic-text-warning, var(--co-color-status-review));
|
|
193
198
|
}
|
|
194
199
|
|
|
195
200
|
.co-checkbox-group__helper--info .co-checkbox-group__helper-icon,
|
|
196
201
|
.co-checkbox-group__helper--info .co-checkbox-group__helper-text {
|
|
197
|
-
color: var(--co-semantic-status-info);
|
|
202
|
+
color: var(--co-semantic-text-info, var(--co-semantic-status-info));
|
|
198
203
|
}
|
|
199
204
|
|
|
200
205
|
/* ── Horizontal layout: label left; control + helper stacked right ──
|
|
@@ -236,7 +236,7 @@ export class CoCheckboxGroup {
|
|
|
236
236
|
"references": {
|
|
237
237
|
"CheckboxOption": {
|
|
238
238
|
"location": "local",
|
|
239
|
-
"path": "/Users/agox/
|
|
239
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-checkbox-group/co-checkbox-group.tsx",
|
|
240
240
|
"id": "src/components/co-checkbox-group/co-checkbox-group.tsx::CheckboxOption"
|
|
241
241
|
}
|
|
242
242
|
}
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
* @prop --co-chip-color: Color de texto de la variante `filled`.
|
|
6
6
|
* @prop --co-chip-border: Color del borde de la variante `filled` (default transparente).
|
|
7
7
|
* @prop --co-chip-max-width: Ancho máximo del chip; el texto se trunca con elipsis (default sin tope).
|
|
8
|
-
* @prop --co-chip-value-color: Color del sufijo `valueLabel` (default
|
|
8
|
+
* @prop --co-chip-value-color: Color del sufijo `valueLabel` (default text-muted).
|
|
9
9
|
* @prop --co-chip-trailing-color: Color del ícono final `trailingIcon` (default: el del texto).
|
|
10
|
+
* @prop --co-chip-radius: Radio del chip (default según shape).
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
:host {
|
|
@@ -54,7 +55,8 @@ button.co-chip:focus-visible {
|
|
|
54
55
|
/* Two-tone muted value suffix (": <value>"), sits inside the label so the
|
|
55
56
|
flex gap never separates it from the base word. */
|
|
56
57
|
.co-chip__value {
|
|
57
|
-
|
|
58
|
+
/* text-muted en vez de gray-500 fijo: gira con el tema (y sigue el remapeo de text-muted). */
|
|
59
|
+
color: var(--co-chip-value-color, var(--co-semantic-text-muted, #888888));
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
/* ═══════════════════════════════════════════════════════════════
|
|
@@ -68,7 +70,8 @@ button.co-chip:focus-visible {
|
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
.co-chip--filled.co-chip--clickable:hover:not(.co-chip--disabled) {
|
|
71
|
-
|
|
73
|
+
/* surface-hover = negro 8 % en claro; en oscuro gira a blanco 8 % (el negro no se veía). */
|
|
74
|
+
background: var(--co-semantic-surface-hover);
|
|
72
75
|
}
|
|
73
76
|
|
|
74
77
|
.co-chip--filled.co-chip--clickable:active:not(.co-chip--disabled) {
|
|
@@ -145,23 +148,25 @@ button.co-chip:focus-visible {
|
|
|
145
148
|
border-color: var(--co-semantic-surface-primary);
|
|
146
149
|
}
|
|
147
150
|
|
|
151
|
+
/* Tinta de estado por --co-semantic-text-*: gira con el tema (status-* es relleno, no se
|
|
152
|
+
aclara, y como texto en oscuro daba <4,5). Fallback a la primitiva hasta publicar tokens. */
|
|
148
153
|
.co-chip--outlined.co-chip--success {
|
|
149
|
-
color: var(--co-semantic-status-success);
|
|
154
|
+
color: var(--co-semantic-text-success, var(--co-semantic-status-success));
|
|
150
155
|
border-color: var(--co-semantic-status-success);
|
|
151
156
|
}
|
|
152
157
|
|
|
153
158
|
.co-chip--outlined.co-chip--error {
|
|
154
|
-
color: var(--co-semantic-status-error);
|
|
159
|
+
color: var(--co-semantic-text-error, var(--co-semantic-status-error));
|
|
155
160
|
border-color: var(--co-semantic-status-error);
|
|
156
161
|
}
|
|
157
162
|
|
|
158
163
|
.co-chip--outlined.co-chip--warning {
|
|
159
|
-
color: var(--co-color-status-review);
|
|
164
|
+
color: var(--co-semantic-text-warning, var(--co-color-status-review));
|
|
160
165
|
border-color: var(--co-color-status-review);
|
|
161
166
|
}
|
|
162
167
|
|
|
163
168
|
.co-chip--outlined.co-chip--info {
|
|
164
|
-
color: var(--co-semantic-status-info);
|
|
169
|
+
color: var(--co-semantic-text-info, var(--co-semantic-status-info));
|
|
165
170
|
border-color: var(--co-semantic-status-info);
|
|
166
171
|
}
|
|
167
172
|
|
|
@@ -255,8 +260,8 @@ button.co-chip--disabled {
|
|
|
255
260
|
/* ═══════════════════════════════════════════════════════════════
|
|
256
261
|
SHAPES
|
|
257
262
|
═══════════════════════════════════════════════════════════════ */
|
|
258
|
-
.co-chip--rounded { border-radius: var(--co-border-radius-full); }
|
|
259
|
-
.co-chip--square { border-radius: var(--co-spacing-sm); } /* 6px */
|
|
263
|
+
.co-chip--rounded { border-radius: var(--co-chip-radius, var(--co-border-radius-full)); }
|
|
264
|
+
.co-chip--square { border-radius: var(--co-chip-radius, var(--co-spacing-sm)); } /* 6px */
|
|
260
265
|
|
|
261
266
|
/* ═══════════════════════════════════════════════════════════════
|
|
262
267
|
ICON SLOTS & REMOVE BUTTON
|
|
@@ -352,10 +357,10 @@ button.co-chip--disabled {
|
|
|
352
357
|
color: var(--co-semantic-text-muted, #888888);
|
|
353
358
|
}
|
|
354
359
|
|
|
355
|
-
/* Trailing caret
|
|
356
|
-
|
|
360
|
+
/* Trailing caret en text-muted: es un control habilitado y gray-400 (= text-disabled) daba 2,6
|
|
361
|
+
sobre blanco (auditoría 2026-09-27, §5). */
|
|
357
362
|
.co-chip--filter .co-chip__trailing {
|
|
358
|
-
color: var(--co-
|
|
363
|
+
color: var(--co-semantic-text-muted, #888888);
|
|
359
364
|
}
|
|
360
365
|
|
|
361
366
|
.co-chip--filter.co-chip--clickable:hover:not(.co-chip--disabled) {
|
|
@@ -310,7 +310,7 @@ export class CoColorArea {
|
|
|
310
310
|
"references": {
|
|
311
311
|
"ColorAreaDetail": {
|
|
312
312
|
"location": "local",
|
|
313
|
-
"path": "/Users/agox/
|
|
313
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-color-area/co-color-area.tsx",
|
|
314
314
|
"id": "src/components/co-color-area/co-color-area.tsx::ColorAreaDetail"
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -331,7 +331,7 @@ export class CoColorArea {
|
|
|
331
331
|
"references": {
|
|
332
332
|
"ColorAreaDetail": {
|
|
333
333
|
"location": "local",
|
|
334
|
-
"path": "/Users/agox/
|
|
334
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-color-area/co-color-area.tsx",
|
|
335
335
|
"id": "src/components/co-color-area/co-color-area.tsx::ColorAreaDetail"
|
|
336
336
|
}
|
|
337
337
|
}
|
|
@@ -25,9 +25,11 @@
|
|
|
25
25
|
padding: 0 var(--co-spacing-xs);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/* Tinta de estado por --co-semantic-text-*: gira con el tema (status-* es relleno, no se
|
|
29
|
+
aclara, y como texto en oscuro daba <4,5). Fallback a la primitiva hasta publicar tokens. */
|
|
28
30
|
.co-field-required {
|
|
29
31
|
margin-left: 2px;
|
|
30
|
-
color: var(--co-color-status-error);
|
|
32
|
+
color: var(--co-semantic-text-error, var(--co-color-status-error));
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
.co-field-required__caption {
|
|
@@ -107,8 +109,11 @@
|
|
|
107
109
|
box-shadow: 0 0 0 2px color-mix(in srgb, var(--co-semantic-border-focus) 15%, transparent);
|
|
108
110
|
}
|
|
109
111
|
|
|
112
|
+
/* Borde de error de CAMPO por --co-semantic-border-error: gira con el tema (status-error es
|
|
113
|
+
relleno fijo y como trazo en oscuro daba 2,94:1). En claro vale status-error (idéntico).
|
|
114
|
+
Fallback: la primitiva de hoy, hasta publicar tokens. */
|
|
110
115
|
.co-color-picker--error .co-color-picker__trigger {
|
|
111
|
-
border-color: var(--co-color-status-error);
|
|
116
|
+
border-color: var(--co-semantic-border-error, var(--co-color-status-error));
|
|
112
117
|
}
|
|
113
118
|
|
|
114
119
|
.co-color-picker__swatch {
|
|
@@ -146,6 +151,11 @@
|
|
|
146
151
|
gap: var(--co-spacing-md);
|
|
147
152
|
}
|
|
148
153
|
|
|
154
|
+
/* En línea el panel vive dentro del contenedor del host (su popover ya tiene aire). */
|
|
155
|
+
.co-color-picker--inline .co-color-picker__panel {
|
|
156
|
+
padding: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
149
159
|
/* ── Área saturación × brillo ─────────────────────────────
|
|
150
160
|
El gradiente es CSS puro (sin canvas, sin dependencia nueva): el matiz llega
|
|
151
161
|
por custom property desde el render y las dos rampas se pintan encima.
|
|
@@ -330,13 +340,15 @@
|
|
|
330
340
|
0 0 0 4px var(--co-semantic-border-focus);
|
|
331
341
|
}
|
|
332
342
|
|
|
333
|
-
/* El check hereda contraste del propio swatch.
|
|
343
|
+
/* El check hereda contraste del propio swatch: su tinta depende del SWATCH, no del tema. Con
|
|
344
|
+
surface-page/text-default (que giran) en oscuro salía negro sobre swatch oscuro y blanco sobre
|
|
345
|
+
swatch claro. Primitivas fijas = los mismos valores que esos semánticos tienen en claro. */
|
|
334
346
|
.co-color-picker__grid-check {
|
|
335
|
-
color: var(--co-
|
|
347
|
+
color: var(--co-color-base-blanco);
|
|
336
348
|
}
|
|
337
349
|
|
|
338
350
|
.co-color-picker__grid-item--light .co-color-picker__grid-check {
|
|
339
|
-
color: var(--co-
|
|
351
|
+
color: var(--co-color-base-negro);
|
|
340
352
|
}
|
|
341
353
|
|
|
342
354
|
/* ── Hex row ─────────────────────────────────────────────── */
|
|
@@ -463,7 +475,7 @@
|
|
|
463
475
|
}
|
|
464
476
|
|
|
465
477
|
.co-color-picker__copy-btn--copied {
|
|
466
|
-
color: var(--co-color-status-success);
|
|
478
|
+
color: var(--co-semantic-text-success, var(--co-color-status-success));
|
|
467
479
|
}
|
|
468
480
|
|
|
469
481
|
/* ── Helper ──────────────────────────────────────────────── */
|
|
@@ -483,7 +495,7 @@
|
|
|
483
495
|
}
|
|
484
496
|
|
|
485
497
|
.co-color-picker--error .co-color-picker__helper {
|
|
486
|
-
color: var(--co-semantic-status-error);
|
|
498
|
+
color: var(--co-semantic-text-error, var(--co-semantic-status-error));
|
|
487
499
|
}
|
|
488
500
|
|
|
489
501
|
/* ── Horizontal layout: label left; control + helper stacked right ──
|
|
@@ -64,6 +64,13 @@ const flattenGroups = (groups) => groups.reduce((acc, g) => acc.concat(g.items),
|
|
|
64
64
|
*/
|
|
65
65
|
export class CoColorPicker {
|
|
66
66
|
constructor() {
|
|
67
|
+
/**
|
|
68
|
+
* Muestra el panel (área, tono, muestras y hex) siempre a la vista, sin el campo que lo
|
|
69
|
+
* abre. Para un host que ya tiene su propio disparador —un punto de color que abre un
|
|
70
|
+
* popover—: sin esto el usuario abría el popover y después, adentro, el campo con la paleta.
|
|
71
|
+
* Elegir una muestra no cierra nada; el host decide cuándo cerrar lo suyo.
|
|
72
|
+
*/
|
|
73
|
+
this.inline = false;
|
|
67
74
|
/** Current color value as hex string (e.g. "#0066FF"). */
|
|
68
75
|
this.value = '';
|
|
69
76
|
/** Placeholder text when no color is selected. */
|
|
@@ -545,6 +552,10 @@ export class CoColorPicker {
|
|
|
545
552
|
* display; `value` sigue vacío y el trigger sigue mostrando el placeholder.
|
|
546
553
|
*/
|
|
547
554
|
componentWillLoad() {
|
|
555
|
+
// En línea el panel nace abierto: mismo arranque que una apertura del popover (foco de
|
|
556
|
+
// teclado en el color elegido, sin gesto ni borrador colgados).
|
|
557
|
+
if (this.inline)
|
|
558
|
+
this.handlePopoverOpen();
|
|
548
559
|
const parsed = hexToHsv(this.value || '');
|
|
549
560
|
this.hsv = parsed !== null && parsed !== void 0 ? parsed : EMPTY_HSV;
|
|
550
561
|
// Mismo motivo que `hsv`: el tab stop del área arranca en la saturación.
|
|
@@ -700,7 +711,9 @@ export class CoColorPicker {
|
|
|
700
711
|
var _a;
|
|
701
712
|
const active = document.activeElement;
|
|
702
713
|
if (active === this.el || this.el.contains(active)) {
|
|
703
|
-
|
|
714
|
+
// Sin scroll: si el panel se cerró porque el campo salió de la vista de su scroller
|
|
715
|
+
// (co-popover), devolverle el foco llevaba al usuario de vuelta arriba del formulario.
|
|
716
|
+
(_a = this.triggerEl) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: true });
|
|
704
717
|
}
|
|
705
718
|
}
|
|
706
719
|
handleSwatchClick(hex) {
|
|
@@ -713,6 +726,9 @@ export class CoColorPicker {
|
|
|
713
726
|
// emit viven en `commit`, no duplicados acá (si no, el swatch dejaría el
|
|
714
727
|
// HSV del color anterior y el área abriría en el color equivocado).
|
|
715
728
|
this.commit(hex);
|
|
729
|
+
// En línea no hay popover propio que cerrar ni trigger al que volver.
|
|
730
|
+
if (this.inline)
|
|
731
|
+
return;
|
|
716
732
|
this.isOpen = false;
|
|
717
733
|
this.restoreTriggerFocus();
|
|
718
734
|
}
|
|
@@ -997,12 +1013,15 @@ export class CoColorPicker {
|
|
|
997
1013
|
render() {
|
|
998
1014
|
const hasValue = !!this.value;
|
|
999
1015
|
const statusClass = this.status !== 'default' ? `co-color-picker--${this.status}` : '';
|
|
1000
|
-
|
|
1016
|
+
if (this.inline) {
|
|
1017
|
+
return (h("div", { class: `co-color-picker co-color-picker--${this.size} co-color-picker--inline ${statusClass} ${this.disabled ? 'co-color-picker--disabled' : ''}` }, this.label && (h("span", { class: "co-color-picker__label" }, this.label, h(RequiredMark, { required: this.required }))), h("div", { class: "co-color-picker__panel", id: CoColorPicker.PANEL_ID, role: "group", "aria-label": this.label || this.placeholder }, this.renderArea(), this.renderHue(), this.renderSwatches(), this.renderHexRow()), this.helperText && (h("div", { class: "co-color-picker__helper" }, this.statusIcon && (h("co-icon", { name: this.statusIcon, size: 14, weight: "fill", class: "co-color-picker__helper-icon" })), h("span", { class: "co-color-picker__helper-text" }, this.helperText)))));
|
|
1018
|
+
}
|
|
1019
|
+
return (h("div", { class: `co-color-picker co-color-picker--${this.size} ${statusClass} ${this.isOpen ? 'co-color-picker--open' : ''} ${this.disabled ? 'co-color-picker--disabled' : ''}` }, this.label && (h("label", { class: "co-color-picker__label" }, this.label, h(RequiredMark, { required: this.required }))), h("co-popover", { open: this.isOpen, placement: "bottom-start",
|
|
1001
1020
|
// Sin `matchWidth`: el panel tiene ancho INTRÍNSECO (grilla de 8
|
|
1002
1021
|
// swatches fijos de 32px). Copiar el ancho del trigger achica los
|
|
1003
1022
|
// tracks bajo 32px con un campo angosto (media columna de un modal) y
|
|
1004
1023
|
// los swatches desbordan el card — guard: panel-width.spec.
|
|
1005
|
-
offset: 4, onCoOpen: this.handlePopoverOpen, onCoClose: this.handlePopoverClose }, h("div", {
|
|
1024
|
+
offset: 4, onCoOpen: this.handlePopoverOpen, onCoClose: this.handlePopoverClose }, h("div", { slot: "trigger", class: "co-color-picker__trigger", role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "dialog", "aria-controls": this.isOpen ? CoColorPicker.PANEL_ID : undefined, "aria-label": this.label || undefined, "aria-disabled": this.disabled ? 'true' : undefined, tabIndex: this.disabled ? -1 : 0, ref: (el) => (this.triggerEl = el), onKeyDown: this.handleTriggerKeyDown }, h("span", { class: "co-color-picker__swatch", style: { background: hasValue ? this.value : 'transparent' } }), h("span", { class: `co-color-picker__value ${!hasValue ? 'co-color-picker__value--empty' : ''}` }, hasValue ? this.value : this.placeholder)), this.isOpen && (h("div", { class: "co-color-picker__panel", id: CoColorPicker.PANEL_ID, role: "dialog", "aria-label": this.label || this.placeholder }, this.renderArea(), this.renderHue(), this.renderSwatches(), this.renderHexRow()))), this.helperText && (h("div", { class: "co-color-picker__helper" }, this.statusIcon && (h("co-icon", { name: this.statusIcon, size: 14, weight: "fill", class: "co-color-picker__helper-icon" })), h("span", { class: "co-color-picker__helper-text" }, this.helperText)))));
|
|
1006
1025
|
}
|
|
1007
1026
|
static get is() { return "co-color-picker"; }
|
|
1008
1027
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1018,6 +1037,26 @@ export class CoColorPicker {
|
|
|
1018
1037
|
}
|
|
1019
1038
|
static get properties() {
|
|
1020
1039
|
return {
|
|
1040
|
+
"inline": {
|
|
1041
|
+
"type": "boolean",
|
|
1042
|
+
"mutable": false,
|
|
1043
|
+
"complexType": {
|
|
1044
|
+
"original": "boolean",
|
|
1045
|
+
"resolved": "boolean",
|
|
1046
|
+
"references": {}
|
|
1047
|
+
},
|
|
1048
|
+
"required": false,
|
|
1049
|
+
"optional": false,
|
|
1050
|
+
"docs": {
|
|
1051
|
+
"tags": [],
|
|
1052
|
+
"text": "Muestra el panel (\u00E1rea, tono, muestras y hex) siempre a la vista, sin el campo que lo\nabre. Para un host que ya tiene su propio disparador \u2014un punto de color que abre un\npopover\u2014: sin esto el usuario abr\u00EDa el popover y despu\u00E9s, adentro, el campo con la paleta.\nElegir una muestra no cierra nada; el host decide cu\u00E1ndo cerrar lo suyo."
|
|
1053
|
+
},
|
|
1054
|
+
"getter": false,
|
|
1055
|
+
"setter": false,
|
|
1056
|
+
"reflect": true,
|
|
1057
|
+
"attribute": "inline",
|
|
1058
|
+
"defaultValue": "false"
|
|
1059
|
+
},
|
|
1021
1060
|
"value": {
|
|
1022
1061
|
"type": "string",
|
|
1023
1062
|
"mutable": true,
|
|
@@ -215,7 +215,7 @@ export class CoColorSlider {
|
|
|
215
215
|
"references": {
|
|
216
216
|
"ColorSliderChannel": {
|
|
217
217
|
"location": "local",
|
|
218
|
-
"path": "/Users/agox/
|
|
218
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-color-slider/co-color-slider.tsx",
|
|
219
219
|
"id": "src/components/co-color-slider/co-color-slider.tsx::ColorSliderChannel"
|
|
220
220
|
}
|
|
221
221
|
}
|
|
@@ -75,7 +75,10 @@
|
|
|
75
75
|
cursor: not-allowed;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
/* Borde de error de CAMPO por --co-semantic-border-error: gira con el tema (status-error es
|
|
79
|
+
relleno fijo y como trazo en oscuro daba 2,94:1). En claro vale status-error (idéntico).
|
|
80
|
+
Fallback: la primitiva de hoy, hasta publicar tokens. */
|
|
81
|
+
.co-column-picker--error .co-column-picker__field { border-color: var(--co-semantic-border-error, var(--co-semantic-status-error)); }
|
|
79
82
|
.co-column-picker--success .co-column-picker__field { border-color: var(--co-semantic-status-success); }
|
|
80
83
|
.co-column-picker--warning .co-column-picker__field { border-color: var(--co-color-status-review); }
|
|
81
84
|
.co-column-picker--info .co-column-picker__field { border-color: var(--co-semantic-status-info); }
|
|
@@ -480,11 +483,13 @@
|
|
|
480
483
|
color: var(--co-semantic-text-muted);
|
|
481
484
|
}
|
|
482
485
|
|
|
486
|
+
/* Tinta de estado por --co-semantic-text-*: gira con el tema (status-* es relleno, no se
|
|
487
|
+
aclara, y como texto en oscuro daba <4,5). Fallback a la primitiva hasta publicar tokens. */
|
|
483
488
|
.co-column-picker__helper--error .co-column-picker__helper-text,
|
|
484
|
-
.co-column-picker__helper--error .co-column-picker__helper-icon { color: var(--co-semantic-status-error); }
|
|
489
|
+
.co-column-picker__helper--error .co-column-picker__helper-icon { color: var(--co-semantic-text-error, var(--co-semantic-status-error)); }
|
|
485
490
|
.co-column-picker__helper--success .co-column-picker__helper-text,
|
|
486
|
-
.co-column-picker__helper--success .co-column-picker__helper-icon { color: var(--co-semantic-status-success); }
|
|
491
|
+
.co-column-picker__helper--success .co-column-picker__helper-icon { color: var(--co-semantic-text-success, var(--co-semantic-status-success)); }
|
|
487
492
|
.co-column-picker__helper--warning .co-column-picker__helper-text,
|
|
488
|
-
.co-column-picker__helper--warning .co-column-picker__helper-icon { color: var(--co-color-status-review); }
|
|
493
|
+
.co-column-picker__helper--warning .co-column-picker__helper-icon { color: var(--co-semantic-text-warning, var(--co-color-status-review)); }
|
|
489
494
|
.co-column-picker__helper--info .co-column-picker__helper-text,
|
|
490
|
-
.co-column-picker__helper--info .co-column-picker__helper-icon { color: var(--co-semantic-status-info); }
|
|
495
|
+
.co-column-picker__helper--info .co-column-picker__helper-icon { color: var(--co-semantic-text-info, var(--co-semantic-status-info)); }
|
|
@@ -191,13 +191,13 @@ export class CoColumnPicker {
|
|
|
191
191
|
return (h("div", { class: "co-column-picker__empty" }, h("co-icon", { name: "magnifying-glass", size: 40, class: "co-column-picker__empty-icon" }), h("span", null, this.emptyText)));
|
|
192
192
|
}
|
|
193
193
|
render() {
|
|
194
|
-
return (h("div", { key: '
|
|
194
|
+
return (h("div", { key: 'a2120bb77b510ce077e025616d9c6e72020bb3e6', class: {
|
|
195
195
|
'co-column-picker': true,
|
|
196
196
|
'co-column-picker--open': this.isOpen,
|
|
197
197
|
'co-column-picker--disabled': this.disabled,
|
|
198
198
|
'co-column-picker--focused': this.focused,
|
|
199
199
|
[`co-column-picker--${this.status}`]: this.status !== 'default',
|
|
200
|
-
} }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
200
|
+
} }, (this.label || this.secondaryLabel) && (h("div", { key: '0cfdbab1ed5a8181736a31f568c86159f347c454', class: "co-column-picker__labels" }, this.label && h("label", { key: '3116d113241914cdf8d4292d8b06f9581f7a04ea', class: "co-column-picker__label" }, this.label), this.secondaryLabel && h("span", { key: 'a7036062b6079277d1c2c58364d050a81f261241', class: "co-column-picker__secondary-label" }, this.secondaryLabel))), this.renderField(), this.isOpen && (h("div", { key: '6a01e60a472887b24cc18cb60dad6009027117fe', class: "co-column-picker__dropdown" }, this.showSearch && (h("div", { key: 'f9096d8e0cd1af02697aa12f9d3086d8acf3daeb', class: "co-column-picker__search" }, h("co-icon", { key: 'b344002c06c67b48d1627eec562fdd29ca3235d4', name: "magnifying-glass", size: 14, class: "co-column-picker__search-icon" }), h("input", { key: '222cecfbb918816a9f503d59f616f35d668626bb', ref: el => (this.searchInputEl = el), class: "co-column-picker__search-input", type: "text", value: this.query, placeholder: this.placeholder, onInput: this.handleSearchInput, onClick: (e) => e.stopPropagation() }), this.query && (h("button", { key: 'b2a4a5032d41610e27dd1200ddeef4fe6420b38b', class: "co-column-picker__search-clear", type: "button", onClick: this.handleSearchClear }, h("co-icon", { key: 'd7506c21412eb5d4e9fb0f2ffd2e53994fb654af', name: "x", size: 14 }))))), this.showToolbar && this.multiple && (h("div", { key: '0a9fa0cb6a4acefee7b198794551fcf667989c0e', class: "co-column-picker__toolbar" }, h("button", { key: '5e8bb88650636a8906961fe6fd9e41fb966f91ad', class: "co-column-picker__toolbar-btn", type: "button", onClick: this.handleSelectAll }, this.selectAllText), h("button", { key: '87778b94a713d8bc9d2ce2a4fc409bbdc1306f8f', class: "co-column-picker__toolbar-btn", type: "button", onClick: this.handleDeselectAll }, this.clearText), h("span", { key: '1b9df7a39d0454d05bb61c3a0490ce9a81ee3048', class: "co-column-picker__toolbar-sep" }), h("button", { key: 'a42b5776bd3fe35578b78915c2b46679af83ddf6', class: "co-column-picker__toolbar-btn", type: "button", onClick: this.handleExpandAll }, this.expandText), h("button", { key: 'f44b9093b4d02ac0f5196c90947eb23f64c93353', class: "co-column-picker__toolbar-btn", type: "button", onClick: this.handleCollapseAll }, this.collapseText), h("span", { key: '46081f18d3023dd5b377462a3459c56bb4c33e77', style: { flex: '1' } }), this.selectedValues.length > 0 && h("span", { key: '26c7311ea78e0b81965a6b8930eba3e0a1febb8c', class: "co-column-picker__toolbar-counter" }, this.selectedValues.length, " ", this.selectedText))), h("div", { key: 'ca89343db1df2062175c9a71ded6d5b804ef8dcd', class: "co-column-picker__scroll", style: { maxHeight: `${this.maxHeight}px` } }, this.renderTree()))), this.helperText && (h("div", { key: 'f0edd823f2ea2c75ca54d267bb54638ddc3cf6f2', class: `co-column-picker__helper co-column-picker__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: '3f32eb32a7fd4a3ca440b7b1c4f74b0bdb0cc83f', name: this.statusIcon, size: 14, weight: "fill", class: "co-column-picker__helper-icon" }), h("span", { key: '2c671fea48759d468e57f2440f30a60f872716b9', class: "co-column-picker__helper-text" }, this.helperText)))));
|
|
201
201
|
}
|
|
202
202
|
static get is() { return "co-column-picker"; }
|
|
203
203
|
static get encapsulation() { return "shadow"; }
|
|
@@ -244,17 +244,19 @@
|
|
|
244
244
|
line-height: 1;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
+
/* Tinta de estado por --co-semantic-text-*: gira con el tema (status-* es relleno, no se
|
|
248
|
+
aclara, y como texto en oscuro daba <4,5). Fallback a la primitiva hasta publicar tokens. */
|
|
247
249
|
.co-combobox__helper--error .co-combobox__helper-icon,
|
|
248
|
-
.co-combobox__helper--error .co-combobox__helper-text { color: var(--co-semantic-status-error); }
|
|
250
|
+
.co-combobox__helper--error .co-combobox__helper-text { color: var(--co-semantic-text-error, var(--co-semantic-status-error)); }
|
|
249
251
|
|
|
250
252
|
.co-combobox__helper--success .co-combobox__helper-icon,
|
|
251
|
-
.co-combobox__helper--success .co-combobox__helper-text { color: var(--co-semantic-status-success); }
|
|
253
|
+
.co-combobox__helper--success .co-combobox__helper-text { color: var(--co-semantic-text-success, var(--co-semantic-status-success)); }
|
|
252
254
|
|
|
253
255
|
.co-combobox__helper--warning .co-combobox__helper-icon,
|
|
254
|
-
.co-combobox__helper--warning .co-combobox__helper-text { color: var(--co-color-status-review); }
|
|
256
|
+
.co-combobox__helper--warning .co-combobox__helper-text { color: var(--co-semantic-text-warning, var(--co-color-status-review)); }
|
|
255
257
|
|
|
256
258
|
.co-combobox__helper--info .co-combobox__helper-icon,
|
|
257
|
-
.co-combobox__helper--info .co-combobox__helper-text { color: var(--co-semantic-status-info); }
|
|
259
|
+
.co-combobox__helper--info .co-combobox__helper-text { color: var(--co-semantic-text-info, var(--co-semantic-status-info)); }
|
|
258
260
|
|
|
259
261
|
/* ── Horizontal layout: label left; control + helper stacked right ──
|
|
260
262
|
Set --co-field-label-width on a container to align labels across fields. */
|
|
@@ -282,9 +284,10 @@
|
|
|
282
284
|
min-width: 0;
|
|
283
285
|
}
|
|
284
286
|
|
|
287
|
+
/* Asterisco de requerido: tinta --co-semantic-text-error (gira con el tema). */
|
|
285
288
|
.co-field-required {
|
|
286
289
|
margin-left: 2px;
|
|
287
|
-
color: var(--co-color-status-error);
|
|
290
|
+
color: var(--co-semantic-text-error, var(--co-color-status-error));
|
|
288
291
|
}
|
|
289
292
|
|
|
290
293
|
.co-field-required__caption {
|
|
@@ -271,19 +271,21 @@ export class CoCombobox {
|
|
|
271
271
|
var _a;
|
|
272
272
|
const active = document.activeElement;
|
|
273
273
|
if (active === this.el || this.el.contains(active)) {
|
|
274
|
-
|
|
274
|
+
// Sin scroll: si el panel se cerró porque el campo salió de la vista de su scroller
|
|
275
|
+
// (co-popover), devolverle el foco llevaba al usuario de vuelta arriba del formulario.
|
|
276
|
+
(_a = this.triggerEl) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: true });
|
|
275
277
|
}
|
|
276
278
|
}
|
|
277
279
|
render() {
|
|
278
|
-
return (h("div", { key: '
|
|
280
|
+
return (h("div", { key: 'f99c5d0c64f2b663d0cd553a26e5d64b66610571', class: {
|
|
279
281
|
'co-combobox': true,
|
|
280
282
|
'co-combobox--open': this.isOpen,
|
|
281
283
|
'co-combobox--disabled': this.disabled,
|
|
282
284
|
[`co-combobox--${this.size}`]: true,
|
|
283
|
-
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
285
|
+
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: '0e779933aa8d138ff765440ac2bd42ec6a3d13d7', class: "co-combobox__labels" }, this.label && h("label", { key: '463b2a9b0adaa41cc94ae6fa4f4010518294d210', class: "co-combobox__label", part: "label" }, this.label, h(RequiredMark, { key: '516ffb77b7e7a76ea8a37bd2afcb1e7089af83cd', required: this.required })), this.secondaryLabel && (h("span", { key: '43c140bbd96c4008d972d3692899cef6521b2f7f', class: "co-combobox__secondary-label", part: "secondary-label" }, this.secondaryLabel)))), h("co-popover", { key: '74e786d471d4a0d0c496cf2e0ff943b0041737ab', open: this.isOpen, placement: "bottom-start", matchWidth: true, offset: 4, onCoOpen: this.handlePopoverOpen, onCoClose: this.handlePopoverClose }, h("div", { key: '302aae50470ebdba2a60d35372e9403724632d0c', slot: "trigger", class: "co-combobox__trigger", part: "trigger", role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-label": this.label || undefined, "aria-disabled": this.disabled ? 'true' : undefined, "aria-controls": this.isOpen ? CoCombobox.LIST_ID : undefined, tabIndex: this.disabled ? -1 : 0, ref: (el) => (this.triggerEl = el), onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, this.iconLeft && (h("co-icon", { key: 'dc3e6cf2d6b0e43bc51ee9176c2b820717fb7bef', name: this.iconLeft, size: 16, class: "co-combobox__icon" })), h("div", { key: 'fa07a4fc78beb89a0528eb5ca860aafbf97b5e78', class: "co-combobox__input-wrapper", ref: (el) => (this.chipContainerEl = el) }, this.multiple && this.hasValue ? (this.selectedOptions.map(opt => (h("co-chip", { size: "small", "icon-mode": "both", label: opt.label }, h("co-icon", { slot: "icon-left", name: opt.icon || 'circle', size: 10 }), h("co-icon", { slot: "icon-right", name: "x-circle", size: 10, weight: "fill", onClick: (e) => { e.stopPropagation(); this.handleListRemove(opt.value); } }))))) : (h("span", { class: {
|
|
284
286
|
'co-combobox__text': true,
|
|
285
287
|
'co-combobox__text--placeholder': !this.hasValue,
|
|
286
|
-
} }, this.hasValue ? this.displayText : this.placeholder))), this.multiple && this.overflowCount > 0 && (h("span", { key: '
|
|
288
|
+
} }, this.hasValue ? this.displayText : this.placeholder))), this.multiple && this.overflowCount > 0 && (h("span", { key: '157baffb4927145da44cd6fc722ae1732cf20f13', class: "co-combobox__overflow-badge" }, this.overflowCount)), this.clearable && this.hasValue && !this.disabled && (h("button", { key: '1788b18dbd71a4f4e3c8c579d8394d69edda11ab', class: "co-combobox__clear", type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear selection", part: "clear" }, h("co-icon", { key: 'e37b3b32b59958dda1c0f9d33e59c9e9ebf48cbb', name: "x-circle", size: 16, weight: "fill" }))), h("co-icon", { key: '9686ea04af76add029c292936f393f059c85ad8d', name: this.isOpen ? 'caret-up' : 'caret-down', size: 16, class: "co-combobox__caret" })), h("div", { key: '7b1ffa794b02e14594990d86ae4032b41b536854', class: "co-combobox__dropdown", part: "dropdown" }, this.isOpen && (h("co-option-list", { key: '33c1d95d4ea218b7707ddc0665db826bb8f86028', id: CoCombobox.LIST_ID, ref: (el) => (this.optionListEl = el), items: this.listItemsJson, value: this.multiple ? JSON.stringify(this.selectedValues) : (this.selectedValues[0] || ''), multiple: this.multiple, selectedAffordance: "check", removableItems: this.multiple, virtual: true, searchable: this.searchable, searchPlaceholder: this.searchPlaceholder, searchDebounce: 0, highlightMatches: true, emptyMessage: this.emptyMessage, onCoSearch: (e) => { this.searchQuery = e.detail; }, onCoChange: (e) => this.handleListChange(e.detail), onCoRemoveItem: (e) => this.handleListRemove(e.detail) }, this.showFooter && (h("co-list-footer", { key: '933855b46314034c639869b4aafd9e5e577a3e1b', slot: "footer", secondaryLabel: this.footerSecondaryLabel, primaryLabel: this.footerPrimaryLabel, onCoSecondary: this.handleFooterSecondary, onCoPrimary: this.handleFooterPrimary })))))), this.helperText && (h("div", { key: '876426c2eae453d0bd8cc5bbbfd704970d8eb243', class: `co-combobox__helper co-combobox__helper--${this.status}`, part: "helper" }, this.statusIcon && h("co-icon", { key: '53cb106c5cddb0ba6a29bc9cc73aae8fd21c8913', name: this.statusIcon, size: 14, weight: "fill", class: "co-combobox__helper-icon" }), h("span", { key: '0f9a22080d190fa2cbd4f68d28838a42a6ab2761', class: "co-combobox__helper-text" }, this.helperText)))));
|
|
287
289
|
}
|
|
288
290
|
static get is() { return "co-combobox"; }
|
|
289
291
|
static get encapsulation() { return "shadow"; }
|
|
@@ -545,7 +547,7 @@ export class CoCombobox {
|
|
|
545
547
|
"references": {
|
|
546
548
|
"ComboboxOption": {
|
|
547
549
|
"location": "local",
|
|
548
|
-
"path": "/Users/agox/
|
|
550
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-combobox/co-combobox.tsx",
|
|
549
551
|
"id": "src/components/co-combobox/co-combobox.tsx::ComboboxOption"
|
|
550
552
|
}
|
|
551
553
|
}
|
|
@@ -16,6 +16,7 @@ co-overlay { --co-overlay-bg: rgba(0, 0, 0, 0.16); }
|
|
|
16
16
|
max-width: 560px;
|
|
17
17
|
max-height: 420px;
|
|
18
18
|
background: var(--co-semantic-surface-page);
|
|
19
|
+
color: var(--co-semantic-text-default); /* tinta pareja con el fondo (top layer) */
|
|
19
20
|
border-radius: var(--co-border-radius-lg);
|
|
20
21
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
|
|
21
22
|
overflow: hidden;
|
|
@@ -56,10 +57,12 @@ co-overlay { --co-overlay-bg: rgba(0, 0, 0, 0.16); }
|
|
|
56
57
|
color: var(--co-semantic-text-muted);
|
|
57
58
|
}
|
|
58
59
|
|
|
60
|
+
/* ESC: text-muted sobre surface-muted daba 2,0:1 en oscuro y 2,8:1 en claro;
|
|
61
|
+
text-secondary sobre surface-control da ~6,5:1 en ambos (cambia el claro). */
|
|
59
62
|
.co-command-search__shortcut {
|
|
60
63
|
font-size: var(--co-font-size-10);
|
|
61
|
-
color: var(--co-semantic-text-
|
|
62
|
-
background: var(--co-semantic-surface-
|
|
64
|
+
color: var(--co-semantic-text-secondary);
|
|
65
|
+
background: var(--co-semantic-surface-control);
|
|
63
66
|
padding: 2px var(--co-spacing-xs);
|
|
64
67
|
border-radius: var(--co-border-radius-xxs);
|
|
65
68
|
font-weight: 500;
|
|
@@ -257,7 +257,7 @@ export class CoCommandSearch {
|
|
|
257
257
|
"references": {
|
|
258
258
|
"CommandItem": {
|
|
259
259
|
"location": "local",
|
|
260
|
-
"path": "/Users/agox/
|
|
260
|
+
"path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-command-search/co-command-search.tsx",
|
|
261
261
|
"id": "src/components/co-command-search/co-command-search.tsx::CommandItem"
|
|
262
262
|
}
|
|
263
263
|
}
|