@prolibu-suite/cobalt-core 0.10.4 → 0.11.1
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/README.md +12 -5
- package/custom-elements.json +7034 -1203
- package/dist/cjs/co-accordion.cjs.entry.js +3 -3
- package/dist/cjs/co-action-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-app-shell.cjs.entry.js +3 -3
- package/dist/cjs/co-audio-player.cjs.entry.js +4 -4
- package/dist/cjs/co-autocomplete.cjs.entry.js +12 -5
- package/dist/cjs/co-avatar-group.cjs.entry.js +3 -3
- package/dist/cjs/co-avatar.cjs.entry.js +7 -4
- package/dist/cjs/co-badge.cjs.entry.js +2 -2
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +5 -5
- 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 +4 -3
- package/dist/cjs/co-button.cjs.entry.js +9 -7
- package/dist/cjs/co-calendar-month_2.cjs.entry.js +16 -4
- package/dist/cjs/co-calendar_3.cjs.entry.js +76 -27
- package/dist/cjs/co-card.cjs.entry.js +3 -3
- package/dist/cjs/co-carousel-item.cjs.entry.js +2 -2
- package/dist/cjs/co-carousel.cjs.entry.js +6 -3
- package/dist/cjs/co-checkbox-group.cjs.entry.js +4 -4
- package/dist/cjs/co-checkbox.cjs.entry.js +13 -5
- package/dist/cjs/co-chip_2.cjs.entry.js +20 -7
- package/dist/cjs/co-color-area.cjs.entry.js +169 -0
- package/dist/cjs/co-color-picker.cjs.entry.js +5 -5
- package/dist/cjs/co-color-slider.cjs.entry.js +189 -0
- package/dist/cjs/co-column-picker.cjs.entry.js +23 -3
- package/dist/cjs/co-combobox.cjs.entry.js +5 -5
- package/dist/cjs/co-command-search.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +3 -3
- package/dist/cjs/co-date-picker.cjs.entry.js +10 -2
- package/dist/cjs/co-date-range-picker.cjs.entry.js +11 -2
- package/dist/cjs/co-date-range.cjs.entry.js +8 -2
- package/dist/cjs/co-date-time-picker.cjs.entry.js +11 -4
- package/dist/cjs/co-document-editor.cjs.entry.js +1167 -0
- 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-emoji-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/co-event-calendar.cjs.entry.js +5 -3
- package/dist/cjs/co-event-popover.cjs.entry.js +7 -3
- package/dist/cjs/co-fab.cjs.entry.js +7 -3
- package/dist/cjs/co-file-field.cjs.entry.js +12 -8
- package/dist/cjs/co-file-type-tile.cjs.entry.js +3 -3
- package/dist/cjs/co-gradient-bar.cjs.entry.js +220 -0
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +48 -9
- package/dist/cjs/co-icon.cjs.entry.js +3 -3
- package/dist/cjs/co-input.cjs.entry.js +14 -8
- package/dist/cjs/co-json-field.cjs.entry.js +10 -5
- package/dist/cjs/{co-tooltip.cjs.entry.js → co-kbd_2.cjs.entry.js} +194 -6
- package/dist/cjs/co-lightbox.cjs.entry.js +5 -5
- 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 +3 -3
- package/dist/cjs/co-menu-item.cjs.entry.js +41 -43
- package/dist/cjs/co-menu.cjs.entry.js +81 -5
- package/dist/cjs/co-modal.cjs.entry.js +350 -7
- package/dist/cjs/co-navbar.cjs.entry.js +3 -3
- package/dist/cjs/co-number-field.cjs.entry.js +11 -5
- package/dist/cjs/co-overlay.cjs.entry.js +8 -4
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +3 -3
- package/dist/cjs/co-popover.cjs.entry.js +69 -6
- 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-provider-logo_2.cjs.entry.js +2 -2
- package/dist/cjs/co-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/co-radio.cjs.entry.js +4 -4
- package/dist/cjs/co-rating.cjs.entry.js +11 -4
- package/dist/cjs/co-ref-field.cjs.entry.js +14 -5
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +40 -92
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +80 -20
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +9 -2
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-segmented-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-select.cjs.entry.js +171 -29
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +20 -5
- package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/co-slider.cjs.entry.js +209 -23
- package/dist/cjs/co-swatch-grid.cjs.entry.js +121 -0
- package/dist/cjs/co-switch.cjs.entry.js +5 -5
- package/dist/cjs/co-tab-group.cjs.entry.js +113 -4
- package/dist/cjs/co-tab.cjs.entry.js +15 -5
- package/dist/cjs/co-tags-field.cjs.entry.js +13 -8
- package/dist/cjs/co-textarea.cjs.entry.js +6 -6
- package/dist/cjs/co-tile.cjs.entry.js +61 -0
- package/dist/cjs/co-time-field.cjs.entry.js +5 -2
- package/dist/cjs/co-toast.cjs.entry.js +3 -3
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +29 -5
- package/dist/cjs/co-toggle-button.cjs.entry.js +70 -6
- package/dist/cjs/co-transfer-list.cjs.entry.js +7 -3
- package/dist/cjs/co-tree-item.cjs.entry.js +110 -0
- package/dist/cjs/co-video.cjs.entry.js +11 -3
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/{color-CML2Cfdh.js → color-DQVrQGi0.js} +10 -5
- package/dist/cjs/{fieldChip-B6YIGU1V.js → fieldChip-C7MxxBVO.js} +1 -1
- package/dist/cjs/gradientStops-CMpH4fB_.js +153 -0
- package/dist/cjs/hsv-DpfSF3M2.js +95 -0
- package/dist/cjs/{index-MDAnKsze.js → index-bHoidDwv.js} +67 -27
- package/dist/cjs/index-oMHzCXm6.js +144 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{index-2kMmd5-a.js → pagination-DV43TRj9.js} +1780 -297
- package/dist/cjs/{positioning-CyatXeT_.js → positioning-CILo5esi.js} +45 -18
- package/dist/cjs/{requiredMark-D-t-IPN0.js → requiredMark-21yHvvZS.js} +1 -1
- package/dist/cjs/rich-text-host-ueFSfW-6.js +119 -0
- package/dist/cjs/{richTextI18n-B28uAhh4.js → richTextI18n-DXGIv5w1.js} +45 -0
- package/dist/cjs/submenu-RlaX6irw.js +65 -0
- package/dist/cjs/{toolbar-config-CYACt9hh.js → toolbar-config-DczL6C4W.js} +32 -0
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/{p-76249983.entry.js → p-019eed8e.entry.js} +1 -1
- package/dist/cobalt/p-04e3e1f6.entry.js +1 -0
- package/dist/cobalt/p-06689166.entry.js +1 -0
- package/dist/cobalt/p-0d046d98.entry.js +1 -0
- package/dist/cobalt/{p-28764b8e.entry.js → p-0e4c2234.entry.js} +1 -1
- package/dist/cobalt/{p-b90d41e4.entry.js → p-1348d5ca.entry.js} +1 -1
- package/dist/cobalt/{p-49834b8e.entry.js → p-13e5b724.entry.js} +1 -1
- package/dist/cobalt/p-1a5bec8c.entry.js +1 -0
- package/dist/cobalt/p-21b4a830.entry.js +1 -0
- package/dist/cobalt/p-2231bacc.entry.js +1 -0
- package/dist/cobalt/{p-b437eff6.entry.js → p-26cbdc33.entry.js} +1 -1
- package/dist/cobalt/{p-aa9400bf.entry.js → p-28cf05f3.entry.js} +1 -1
- package/dist/cobalt/{p-eadfd661.entry.js → p-358a6c2a.entry.js} +1 -1
- package/dist/cobalt/p-3b5024ce.entry.js +1 -0
- package/dist/cobalt/p-3b6efb79.entry.js +1 -0
- package/dist/cobalt/p-3d1a48e5.entry.js +1 -0
- package/dist/cobalt/p-47eca182.entry.js +1 -0
- package/dist/cobalt/{p-eb82358d.entry.js → p-4bcdd422.entry.js} +1 -1
- package/dist/cobalt/{p-17244412.entry.js → p-4d743628.entry.js} +1 -1
- package/dist/cobalt/{p-011dc80b.entry.js → p-4e81e580.entry.js} +1 -1
- package/dist/cobalt/{p-ee9a623d.entry.js → p-53a251ca.entry.js} +1 -1
- package/dist/cobalt/{p-11c5ce78.entry.js → p-56176aa0.entry.js} +1 -1
- package/dist/cobalt/{p-a32b20eb.entry.js → p-58ebb303.entry.js} +1 -1
- package/dist/cobalt/{p-4592ca00.entry.js → p-5a32b9a2.entry.js} +1 -1
- package/dist/cobalt/{p-2636b7eb.entry.js → p-5e678e88.entry.js} +1 -1
- package/dist/cobalt/{p-996f4e38.entry.js → p-60f948c4.entry.js} +1 -1
- package/dist/cobalt/p-63908a8d.entry.js +1 -0
- package/dist/cobalt/p-65c191aa.entry.js +1 -0
- package/dist/cobalt/{p-c2ebf0ec.entry.js → p-65d44da2.entry.js} +1 -1
- package/dist/cobalt/p-67a024dd.entry.js +1 -0
- package/dist/cobalt/{p-ee149fd2.entry.js → p-6974df59.entry.js} +1 -1
- package/dist/cobalt/{p-000a15b8.entry.js → p-69ecc933.entry.js} +1 -1
- package/dist/cobalt/p-6c1992c9.entry.js +1 -0
- package/dist/cobalt/{p-b821d9de.entry.js → p-6d4a660c.entry.js} +1 -1
- package/dist/cobalt/{p-f57dffca.entry.js → p-713637f2.entry.js} +1 -1
- package/dist/cobalt/{p-292b0389.entry.js → p-71ae1551.entry.js} +1 -1
- package/dist/cobalt/{p-91e73a92.entry.js → p-71dc8e4a.entry.js} +1 -1
- package/dist/cobalt/{p-aaca6dab.entry.js → p-71ee36a8.entry.js} +1 -1
- package/dist/cobalt/p-71fe35c4.entry.js +1 -0
- package/dist/cobalt/{p-08e42e00.entry.js → p-73313cbe.entry.js} +1 -1
- package/dist/cobalt/{p-7b5c555c.entry.js → p-763698b3.entry.js} +1 -1
- package/dist/cobalt/p-77e0d401.entry.js +1 -0
- package/dist/cobalt/{p-c91d4fc6.entry.js → p-78412feb.entry.js} +1 -1
- package/dist/cobalt/p-7beface1.entry.js +1 -0
- package/dist/cobalt/{p-f4e1c3c3.entry.js → p-7d1718ed.entry.js} +1 -1
- package/dist/cobalt/{p-826ee074.entry.js → p-7df18a52.entry.js} +1 -1
- package/dist/cobalt/p-7e678cbd.entry.js +1 -0
- package/dist/cobalt/{p-d0b2c418.entry.js → p-7fabd8ba.entry.js} +1 -1
- package/dist/cobalt/{p-23ab0cc5.entry.js → p-848f5ca4.entry.js} +1 -1
- package/dist/cobalt/{p-623cc195.entry.js → p-8680559b.entry.js} +1 -1
- package/dist/cobalt/p-87de5469.entry.js +1 -0
- package/dist/cobalt/p-87e62e2b.entry.js +1 -0
- package/dist/cobalt/{p-1861fe41.entry.js → p-8a2a2b6c.entry.js} +1 -1
- package/dist/cobalt/p-903237f9.entry.js +1 -0
- package/dist/cobalt/{p-2c9dba2f.entry.js → p-95f2ebb1.entry.js} +1 -1
- package/dist/cobalt/{p-24196410.entry.js → p-99df434b.entry.js} +1 -1
- package/dist/cobalt/{p-290066ef.entry.js → p-9adbab95.entry.js} +1 -1
- package/dist/cobalt/p-9dc01092.entry.js +1 -0
- package/dist/cobalt/p-9ee5bef3.entry.js +1 -0
- package/dist/cobalt/p-B1JT7us1.js +1 -0
- package/dist/cobalt/{p-BRbgGqLw.js → p-BVGGRfNG.js} +1 -1
- package/dist/cobalt/p-BmdKHBZP.js +1 -0
- package/dist/cobalt/p-BtliEQAT.js +1 -0
- package/dist/cobalt/p-COJdaKBU.js +1 -0
- package/dist/cobalt/{p-BAYo-RBt.js → p-CRxTFT_z.js} +1 -1
- package/dist/cobalt/p-CYN5B3IQ.js +1 -0
- package/dist/cobalt/p-DJkaRtbb.js +2 -0
- package/dist/cobalt/p-DU-KOQ8L.js +1 -0
- package/dist/cobalt/p-DXLeDZvr.js +1 -0
- package/dist/cobalt/{p-D_zA1Pv4.js → p-DgJovDdy.js} +1 -1
- package/dist/cobalt/p-RVQJEYxa.js +1 -0
- package/dist/cobalt/{p-ee2023da.entry.js → p-a27013e6.entry.js} +1 -1
- package/dist/cobalt/{p-2f9cbbd5.entry.js → p-a4eb298c.entry.js} +1 -1
- package/dist/cobalt/p-a56bd4a8.entry.js +1 -0
- package/dist/cobalt/{p-59963937.entry.js → p-a5eabecb.entry.js} +1 -1
- package/dist/cobalt/p-a5ee1fc2.entry.js +1 -0
- package/dist/cobalt/{p-fb2d1144.entry.js → p-a7cd61ce.entry.js} +1 -1
- package/dist/cobalt/{p-39a50e7f.entry.js → p-ad752791.entry.js} +1 -1
- package/dist/cobalt/{p-07416e31.entry.js → p-ae999b94.entry.js} +1 -1
- package/dist/cobalt/{p-4d65e713.entry.js → p-aed832d5.entry.js} +1 -1
- package/dist/cobalt/p-b2457431.entry.js +1 -0
- package/dist/cobalt/{p-6dd220e0.entry.js → p-b39a4999.entry.js} +1 -1
- package/dist/cobalt/p-b5dabdc3.entry.js +1 -0
- package/dist/cobalt/{p-8471abe2.entry.js → p-b67fb616.entry.js} +1 -1
- package/dist/cobalt/{p-f7eb1a40.entry.js → p-b9b73dcb.entry.js} +1 -1
- package/dist/cobalt/{p-f9a7b7c6.entry.js → p-ba39a965.entry.js} +1 -1
- package/dist/cobalt/{p-58d9b650.entry.js → p-be520bd5.entry.js} +1 -1
- package/dist/cobalt/{p-1dc55e43.entry.js → p-bee30373.entry.js} +1 -1
- package/dist/cobalt/{p-44c4e4a3.entry.js → p-c220362c.entry.js} +1 -1
- package/dist/cobalt/p-c4c997f3.entry.js +1 -0
- package/dist/cobalt/{p-a2462d7a.entry.js → p-c5464a98.entry.js} +1 -1
- package/dist/cobalt/p-c567533e.entry.js +1 -0
- package/dist/cobalt/{p-c30b4cb5.entry.js → p-cf5b91be.entry.js} +1 -1
- package/dist/cobalt/p-cfaaa684.entry.js +1 -0
- package/dist/cobalt/p-d00c3894.entry.js +1 -0
- package/dist/cobalt/p-d1e83525.entry.js +1 -0
- package/dist/cobalt/{p-44ea675f.entry.js → p-d5d8fa8b.entry.js} +1 -1
- package/dist/cobalt/p-d6215d80.entry.js +1 -0
- package/dist/cobalt/p-d6e7c258.entry.js +1 -0
- package/dist/cobalt/p-dabcbba7.entry.js +1 -0
- package/dist/cobalt/p-db623519.entry.js +1 -0
- package/dist/cobalt/{p-c7d7d7f7.entry.js → p-df529110.entry.js} +1 -1
- package/dist/cobalt/{p-1cc818ca.entry.js → p-ea24eea8.entry.js} +1 -1
- package/dist/cobalt/{p-d29bb0fa.entry.js → p-efb3cbb0.entry.js} +1 -1
- package/dist/cobalt/{p-f6691108.entry.js → p-f0898e21.entry.js} +1 -1
- package/dist/cobalt/{p-0c004735.entry.js → p-f2fa2ac0.entry.js} +1 -1
- package/dist/cobalt/p-f403eeec.entry.js +1 -0
- package/dist/cobalt/{p-e4264532.entry.js → p-f69804a6.entry.js} +1 -1
- package/dist/cobalt/p-xnrKkNWQ.js +1 -0
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/co-accordion/co-accordion.js +12 -2
- package/dist/collection/components/co-action-bar/co-action-bar.css +6 -0
- package/dist/collection/components/co-action-bar/co-action-bar.js +3 -2
- package/dist/collection/components/co-app-shell/co-app-shell.css +6 -0
- package/dist/collection/components/co-app-shell/co-app-shell.js +13 -2
- package/dist/collection/components/co-audio-player/co-audio-player.js +19 -7
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +30 -17
- package/dist/collection/components/co-avatar/co-avatar.css +16 -2
- package/dist/collection/components/co-avatar/co-avatar.js +14 -4
- package/dist/collection/components/co-avatar-group/co-avatar-group.css +4 -0
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +8 -3
- package/dist/collection/components/co-badge/co-badge.js +8 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +13 -4
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +5 -1
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +8 -2
- package/dist/collection/components/co-button/co-button.css +81 -6
- package/dist/collection/components/co-button/co-button.js +39 -11
- package/dist/collection/components/co-button-group/co-button-group.js +10 -3
- package/dist/collection/components/co-calendar/calendarMarks.js +40 -0
- package/dist/collection/components/co-calendar/co-calendar.css +19 -1
- package/dist/collection/components/co-calendar/co-calendar.js +84 -20
- package/dist/collection/components/co-calendar-month/co-calendar-month.js +1 -1
- package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.js +36 -19
- package/dist/collection/components/co-card/co-card.js +11 -2
- package/dist/collection/components/co-carousel/co-carousel.css +10 -0
- package/dist/collection/components/co-carousel/co-carousel.js +17 -5
- package/dist/collection/components/co-carousel-item/co-carousel-item.js +1 -1
- package/dist/collection/components/co-checkbox/co-checkbox.css +43 -1
- package/dist/collection/components/co-checkbox/co-checkbox.js +39 -3
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +9 -4
- package/dist/collection/components/co-chip/co-chip.css +9 -0
- package/dist/collection/components/co-chip/co-chip.js +15 -2
- package/dist/collection/components/co-color-area/co-color-area.css +87 -0
- package/dist/collection/components/co-color-area/co-color-area.js +342 -0
- package/dist/collection/components/co-color-picker/co-color-picker.js +4 -2
- package/dist/collection/components/co-color-slider/co-color-slider.css +115 -0
- package/dist/collection/components/co-color-slider/co-color-slider.js +354 -0
- package/dist/collection/components/co-column-picker/co-column-picker.js +51 -25
- package/dist/collection/components/co-combobox/co-combobox.js +18 -4
- package/dist/collection/components/co-command-search/co-command-search.js +19 -8
- package/dist/collection/components/co-data-table/co-data-table.js +8 -3
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +16 -4
- package/dist/collection/components/co-date-field/co-date-field.js +19 -13
- package/dist/collection/components/co-date-picker/co-date-picker.js +38 -25
- package/dist/collection/components/co-date-range/co-date-range.js +19 -10
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +44 -30
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +31 -22
- package/dist/collection/components/co-document-editor/change-throttle.js +30 -0
- package/dist/collection/components/co-document-editor/co-document-editor.css +438 -0
- package/dist/collection/components/co-document-editor/co-document-editor.js +1549 -0
- package/dist/collection/components/co-document-editor/document-props.js +40 -0
- package/dist/collection/components/co-document-editor/header-tools.js +11 -0
- package/dist/collection/components/co-document-editor/image-bar.js +66 -0
- package/dist/collection/components/co-document-editor/page-styles.js +90 -0
- package/dist/collection/components/co-document-editor/zoom.js +45 -0
- package/dist/collection/components/co-drawer/co-drawer.css +5 -0
- package/dist/collection/components/co-drawer/co-drawer.js +13 -0
- package/dist/collection/components/co-drive-card/co-drive-card.js +14 -1
- package/dist/collection/components/co-drop-zone/co-drop-zone.js +7 -2
- package/dist/collection/components/co-emoji-picker/co-emoji-picker.css +4 -0
- package/dist/collection/components/co-emoji-picker/co-emoji-picker.js +11 -2
- package/dist/collection/components/co-empty-state/co-empty-state.js +4 -2
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +16 -4
- package/dist/collection/components/co-event-popover/co-event-popover.js +18 -6
- package/dist/collection/components/co-fab/co-fab.css +8 -0
- package/dist/collection/components/co-fab/co-fab.js +17 -8
- package/dist/collection/components/co-file-field/co-file-field.js +16 -11
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +9 -2
- package/dist/collection/components/co-gradient-bar/co-gradient-bar.css +143 -0
- package/dist/collection/components/co-gradient-bar/co-gradient-bar.js +412 -0
- package/dist/collection/components/co-helper-text/co-helper-text.js +4 -2
- package/dist/collection/components/co-icon/co-icon.js +6 -2
- package/dist/collection/components/co-icon-button/co-icon-button.css +104 -19
- package/dist/collection/components/co-icon-button/co-icon-button.js +125 -10
- package/dist/collection/components/co-input/co-input.css +125 -0
- package/dist/collection/components/co-input/co-input.js +48 -11
- package/dist/collection/components/co-json-field/co-json-field.js +19 -12
- package/dist/collection/components/co-kbd/co-kbd.css +99 -0
- package/dist/collection/components/co-kbd/co-kbd.js +298 -0
- package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
- package/dist/collection/components/co-list-footer/co-list-footer.js +4 -1
- package/dist/collection/components/co-list-item/co-list-item.js +7 -4
- package/dist/collection/components/co-loader/co-loader.js +5 -0
- package/dist/collection/components/co-media-thumb/co-media-thumb.js +9 -2
- package/dist/collection/components/co-menu/co-menu.css +70 -0
- package/dist/collection/components/co-menu/co-menu.js +146 -6
- package/dist/collection/components/co-menu-divider/co-menu-divider.css +21 -0
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +2 -1
- package/dist/collection/components/co-menu-item/co-menu-item.css +56 -6
- package/dist/collection/components/co-menu-item/co-menu-item.js +60 -4
- package/dist/collection/components/co-modal/co-modal.css +218 -1
- package/dist/collection/components/co-modal/co-modal.js +354 -12
- package/dist/collection/components/co-navbar/co-navbar.css +7 -0
- package/dist/collection/components/co-navbar/co-navbar.js +4 -2
- package/dist/collection/components/co-number-field/co-number-field.js +29 -15
- package/dist/collection/components/co-option-list/co-option-list.css +102 -21
- package/dist/collection/components/co-option-list/co-option-list.js +37 -16
- package/dist/collection/components/co-overlay/co-overlay.css +4 -0
- package/dist/collection/components/co-overlay/co-overlay.js +17 -3
- package/dist/collection/components/co-page-header/co-page-header.js +4 -1
- package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
- package/dist/collection/components/co-popover/co-popover.css +20 -2
- package/dist/collection/components/co-popover/co-popover.js +148 -10
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +5 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +5 -2
- package/dist/collection/components/co-provider-logo/co-provider-logo.js +3 -0
- package/dist/collection/components/co-radio/co-radio.js +11 -3
- package/dist/collection/components/co-radio-group/co-radio-group.js +9 -4
- package/dist/collection/components/co-rating/co-rating.js +25 -13
- package/dist/collection/components/co-ref-field/co-ref-field.css +14 -0
- package/dist/collection/components/co-ref-field/co-ref-field.js +55 -27
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +66 -111
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +12 -0
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +127 -19
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +16 -1
- package/dist/collection/components/co-row/co-row.js +5 -2
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +9 -3
- package/dist/collection/components/co-select/co-select.css +207 -11
- package/dist/collection/components/co-select/co-select.js +198 -48
- package/dist/collection/components/co-select/virtualRows.js +57 -0
- package/dist/collection/components/co-separator/co-separator.js +8 -1
- package/dist/collection/components/co-sidebar/co-sidebar.js +10 -2
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +15 -0
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +20 -4
- package/dist/collection/components/co-skeleton/co-skeleton.js +4 -1
- package/dist/collection/components/co-slider/co-slider.css +155 -5
- package/dist/collection/components/co-slider/co-slider.js +263 -32
- package/dist/collection/components/co-swatch-grid/co-swatch-grid.css +56 -0
- package/dist/collection/components/co-swatch-grid/co-swatch-grid.js +293 -0
- package/dist/collection/components/co-switch/co-switch.css +4 -0
- package/dist/collection/components/co-switch/co-switch.js +12 -3
- package/dist/collection/components/co-tab/co-tab.css +60 -0
- package/dist/collection/components/co-tab/co-tab.js +44 -6
- package/dist/collection/components/co-tab-group/co-tab-group.css +24 -0
- package/dist/collection/components/co-tab-group/co-tab-group.js +133 -2
- package/dist/collection/components/co-tab-group/revealTab.js +26 -0
- package/dist/collection/components/co-tags-field/co-tags-field.js +21 -14
- package/dist/collection/components/co-textarea/co-textarea.js +4 -4
- package/dist/collection/components/co-tile/co-tile.css +63 -0
- package/dist/collection/components/co-tile/co-tile.js +167 -0
- package/dist/collection/components/co-time-field/co-time-field.js +9 -4
- package/dist/collection/components/co-toast/co-toast.css +11 -0
- package/dist/collection/components/co-toast/co-toast.js +13 -4
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +106 -0
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +91 -15
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +21 -0
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +41 -11
- package/dist/collection/components/co-tooltip/co-tooltip.css +36 -0
- package/dist/collection/components/co-tooltip/co-tooltip.js +61 -3
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +19 -10
- package/dist/collection/components/co-tree-item/co-tree-item.css +235 -0
- package/dist/collection/components/co-tree-item/co-tree-item.js +355 -0
- package/dist/collection/components/co-tree-item/treeItemI18n.js +16 -0
- package/dist/collection/components/co-video/co-video.css +11 -0
- package/dist/collection/components/co-video/co-video.js +41 -22
- package/dist/collection/utils/color.js +9 -5
- package/dist/collection/utils/dragMove.js +95 -0
- package/dist/collection/utils/gradientBarI18n.js +24 -0
- package/dist/collection/utils/gradientStops.js +142 -0
- package/dist/collection/utils/hsv.js +114 -0
- package/dist/collection/utils/kbdI18n.js +29 -0
- package/dist/collection/utils/positioning.js +44 -18
- package/dist/collection/utils/rich-text-host.js +109 -0
- package/dist/collection/utils/richTextI18n.js +45 -0
- package/dist/collection/utils/submenu.js +23 -3
- package/dist/collection/utils/swatchGridI18n.js +14 -0
- package/dist/collection/utils/test/fake-block-layout.js +41 -0
- package/dist/collection/utils/test/prosemirror-dom-shim.js +17 -0
- package/dist/collection/utils/test/shared-contract-css.js +9 -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-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-timegrid.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.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-area.d.ts +11 -0
- package/dist/components/co-color-area.js +1 -0
- package/dist/components/co-color-picker.js +1 -1
- package/dist/components/co-color-slider.d.ts +11 -0
- package/dist/components/co-color-slider.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-document-editor.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-gradient-bar.js +1 -0
- package/dist/components/co-helper-text.js +1 -1
- package/dist/components/co-icon-button.js +1 -1
- package/dist/components/co-icon.js +1 -1
- package/dist/components/co-input.js +1 -1
- package/dist/components/co-json-field.js +1 -1
- package/dist/components/co-kbd.d.ts +11 -0
- package/dist/components/co-kbd.js +1 -0
- 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-segmented-bar.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.d.ts +11 -0
- package/dist/components/co-swatch-grid.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-tile.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-tree-item.js +1 -0
- package/dist/components/co-video.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-8XzG8pzY.js +1 -0
- package/dist/components/p-9VoFSbIH.js +1 -0
- package/dist/components/p-B1JT7us1.js +1 -0
- package/dist/components/{p-Dc_Kbari.js → p-B3Egz082.js} +1 -1
- package/dist/components/p-B9wdMd_0.js +1 -0
- package/dist/components/p-BRZci8B3.js +1 -0
- package/dist/components/{p-BRbgGqLw.js → p-BVGGRfNG.js} +1 -1
- package/dist/components/{p-B56LX2SH.js → p-BVdCvEza.js} +1 -1
- package/dist/components/p-BdmzslA5.js +1 -0
- package/dist/components/p-BmdKHBZP.js +1 -0
- package/dist/components/p-BtliEQAT.js +1 -0
- package/dist/components/{p-CT2enQ6h.js → p-Bw_b_czs.js} +1 -1
- package/dist/components/{p-NNxjElcX.js → p-C4sZjIDj.js} +1 -1
- package/dist/components/{p-Nt4JJxbL.js → p-C6WHpL5X.js} +1 -1
- package/dist/components/p-COJdaKBU.js +1 -0
- package/dist/components/p-COozgrEk.js +1 -0
- package/dist/components/{p-BAYo-RBt.js → p-CRxTFT_z.js} +1 -1
- package/dist/components/{p-uxdXViMV.js → p-CiYPJW0B.js} +1 -1
- package/dist/components/p-Cnfd6Zze.js +1 -0
- package/dist/components/{p-BhCVadcA.js → p-CxWo3qDo.js} +1 -1
- package/dist/components/p-D4XP17VP.js +1 -0
- package/dist/components/{p-e5KibEs8.js → p-DJ468fPu.js} +1 -1
- package/dist/components/p-DU-KOQ8L.js +1 -0
- package/dist/components/p-DXLeDZvr.js +1 -0
- package/dist/components/{p-DvR45CLa.js → p-Dn2wblrA.js} +1 -1
- package/dist/components/p-Dnz99Ox_.js +1 -0
- package/dist/components/p-DsuFNmTI.js +1 -0
- package/dist/components/{p-Du_CgT5E.js → p-Du8EpQb-.js} +1 -1
- package/dist/components/{p-DFlJMEJ-.js → p-DymSqdlK.js} +1 -1
- package/dist/components/p-Hi57w2_2.js +1 -0
- package/dist/components/{p-DNJAIVfI.js → p-KK2vAKs-.js} +1 -1
- package/dist/components/p-RVQJEYxa.js +1 -0
- package/dist/components/p-TGRbLkLz.js +1 -0
- package/dist/components/p-VcrjNCew.js +1 -0
- package/dist/components/{p-Dxa7c4Ap.js → p-dnaee7fS.js} +1 -1
- package/dist/components/p-nrwDl_gx.js +1 -0
- package/dist/components/{p-P4HlMBlL.js → p-zJ3pjFzW.js} +1 -1
- package/dist/esm/co-accordion.entry.js +3 -3
- package/dist/esm/co-action-bar.entry.js +3 -3
- package/dist/esm/co-app-shell.entry.js +3 -3
- package/dist/esm/co-audio-player.entry.js +4 -4
- package/dist/esm/co-autocomplete.entry.js +12 -5
- package/dist/esm/co-avatar-group.entry.js +3 -3
- package/dist/esm/co-avatar.entry.js +7 -4
- package/dist/esm/co-badge.entry.js +2 -2
- package/dist/esm/co-bottom-sheet.entry.js +5 -5
- 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 +4 -3
- package/dist/esm/co-button.entry.js +9 -7
- package/dist/esm/co-calendar-month_2.entry.js +16 -4
- package/dist/esm/co-calendar_3.entry.js +76 -27
- package/dist/esm/co-card.entry.js +3 -3
- package/dist/esm/co-carousel-item.entry.js +2 -2
- package/dist/esm/co-carousel.entry.js +6 -3
- package/dist/esm/co-checkbox-group.entry.js +4 -4
- package/dist/esm/co-checkbox.entry.js +13 -5
- package/dist/esm/co-chip_2.entry.js +20 -7
- package/dist/esm/co-color-area.entry.js +167 -0
- package/dist/esm/co-color-picker.entry.js +5 -5
- package/dist/esm/co-color-slider.entry.js +187 -0
- package/dist/esm/co-column-picker.entry.js +23 -3
- package/dist/esm/co-combobox.entry.js +5 -5
- package/dist/esm/co-command-search.entry.js +5 -5
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +3 -3
- package/dist/esm/co-date-picker.entry.js +10 -2
- package/dist/esm/co-date-range-picker.entry.js +11 -2
- package/dist/esm/co-date-range.entry.js +8 -2
- package/dist/esm/co-date-time-picker.entry.js +11 -4
- package/dist/esm/co-document-editor.entry.js +1165 -0
- package/dist/esm/co-drive-card.entry.js +2 -2
- package/dist/esm/co-drop-zone.entry.js +2 -2
- package/dist/esm/co-emoji-picker.entry.js +3 -3
- package/dist/esm/co-empty-state.entry.js +3 -3
- package/dist/esm/co-event-calendar.entry.js +5 -3
- package/dist/esm/co-event-popover.entry.js +7 -3
- package/dist/esm/co-fab.entry.js +7 -3
- package/dist/esm/co-file-field.entry.js +12 -8
- package/dist/esm/co-file-type-tile.entry.js +3 -3
- package/dist/esm/co-gradient-bar.entry.js +218 -0
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +48 -9
- package/dist/esm/co-icon.entry.js +3 -3
- package/dist/esm/co-input.entry.js +14 -8
- package/dist/esm/co-json-field.entry.js +10 -5
- package/dist/esm/{co-tooltip.entry.js → co-kbd_2.entry.js} +194 -7
- package/dist/esm/co-lightbox.entry.js +5 -5
- 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 +3 -3
- package/dist/esm/co-menu-item.entry.js +39 -41
- package/dist/esm/co-menu.entry.js +81 -5
- package/dist/esm/co-modal.entry.js +350 -7
- package/dist/esm/co-navbar.entry.js +3 -3
- package/dist/esm/co-number-field.entry.js +11 -5
- package/dist/esm/co-overlay.entry.js +8 -4
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +3 -3
- package/dist/esm/co-popover.entry.js +69 -6
- package/dist/esm/co-progress-bar.entry.js +3 -3
- package/dist/esm/co-progress-circle.entry.js +3 -3
- package/dist/esm/co-provider-logo_2.entry.js +2 -2
- package/dist/esm/co-radio-group.entry.js +4 -4
- package/dist/esm/co-radio.entry.js +4 -4
- package/dist/esm/co-rating.entry.js +11 -4
- package/dist/esm/co-ref-field.entry.js +14 -5
- package/dist/esm/co-rich-text-editor.entry.js +40 -92
- package/dist/esm/co-rich-text-toolbar.entry.js +80 -20
- package/dist/esm/co-rich-text-viewer.entry.js +9 -2
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-segmented-bar.entry.js +3 -3
- package/dist/esm/co-select.entry.js +171 -29
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +20 -5
- package/dist/esm/co-sidebar.entry.js +3 -3
- package/dist/esm/co-slider.entry.js +209 -23
- package/dist/esm/co-swatch-grid.entry.js +119 -0
- package/dist/esm/co-switch.entry.js +5 -5
- package/dist/esm/co-tab-group.entry.js +113 -4
- package/dist/esm/co-tab.entry.js +15 -5
- package/dist/esm/co-tags-field.entry.js +13 -8
- package/dist/esm/co-textarea.entry.js +6 -6
- package/dist/esm/co-tile.entry.js +59 -0
- package/dist/esm/co-time-field.entry.js +5 -2
- package/dist/esm/co-toast.entry.js +3 -3
- package/dist/esm/co-toggle-button-group.entry.js +29 -5
- package/dist/esm/co-toggle-button.entry.js +70 -6
- package/dist/esm/co-transfer-list.entry.js +7 -3
- package/dist/esm/co-tree-item.entry.js +108 -0
- package/dist/esm/co-video.entry.js +11 -3
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/{color-BRbgGqLw.js → color-BVGGRfNG.js} +10 -6
- package/dist/esm/{fieldChip-uyggU8VV.js → fieldChip-B2ctp2m6.js} +1 -1
- package/dist/esm/gradientStops-DDK0y8ra.js +145 -0
- package/dist/esm/hsv-COJdaKBU.js +90 -0
- package/dist/esm/index-Cpo8HTwr.js +142 -0
- package/dist/esm/{index-DH5lfRNj.js → index-DJkaRtbb.js} +67 -28
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{index-BBIYyvq-.js → pagination-D9OfZUnY.js} +1728 -297
- package/dist/esm/{positioning-DFHRS9cJ.js → positioning-BtliEQAT.js} +45 -19
- package/dist/esm/{requiredMark-BCJUuZvC.js → requiredMark-D5C5NzOE.js} +1 -1
- package/dist/esm/rich-text-host-BmdKHBZP.js +111 -0
- package/dist/esm/{richTextI18n-BYKAgwq3.js → richTextI18n-xnrKkNWQ.js} +45 -0
- package/dist/esm/submenu-DU-KOQ8L.js +57 -0
- package/dist/esm/{toolbar-config-BAYo-RBt.js → toolbar-config-CRxTFT_z.js} +32 -0
- package/dist/types/components/co-accordion/co-accordion.d.ts +10 -0
- package/dist/types/components/co-action-bar/co-action-bar.d.ts +1 -0
- package/dist/types/components/co-app-shell/co-app-shell.d.ts +11 -0
- package/dist/types/components/co-audio-player/co-audio-player.d.ts +16 -0
- package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +21 -0
- package/dist/types/components/co-avatar/co-avatar.d.ts +11 -2
- package/dist/types/components/co-avatar-group/co-avatar-group.d.ts +5 -0
- package/dist/types/components/co-badge/co-badge.d.ts +7 -0
- package/dist/types/components/co-bottom-sheet/co-bottom-sheet.d.ts +9 -0
- package/dist/types/components/co-breadcrumb/co-breadcrumb.d.ts +4 -0
- package/dist/types/components/co-breadcrumb-item/co-breadcrumb-item.d.ts +6 -0
- package/dist/types/components/co-button/co-button.d.ts +12 -4
- package/dist/types/components/co-button-group/co-button-group.d.ts +7 -0
- package/dist/types/components/co-calendar/calendarMarks.d.ts +15 -0
- package/dist/types/components/co-calendar/co-calendar.d.ts +18 -0
- package/dist/types/components/co-calendar-timegrid/co-calendar-timegrid.d.ts +23 -0
- package/dist/types/components/co-card/co-card.d.ts +9 -0
- package/dist/types/components/co-carousel/co-carousel.d.ts +12 -0
- package/dist/types/components/co-checkbox/co-checkbox.d.ts +15 -0
- package/dist/types/components/co-checkbox-group/co-checkbox-group.d.ts +5 -0
- package/dist/types/components/co-chip/co-chip.d.ts +13 -0
- package/dist/types/components/co-color-area/co-color-area.d.ts +65 -0
- package/dist/types/components/co-color-picker/co-color-picker.d.ts +2 -0
- package/dist/types/components/co-color-slider/co-color-slider.d.ts +62 -0
- package/dist/types/components/co-column-picker/co-column-picker.d.ts +32 -0
- package/dist/types/components/co-combobox/co-combobox.d.ts +14 -0
- package/dist/types/components/co-command-search/co-command-search.d.ts +15 -0
- package/dist/types/components/co-data-table/co-data-table.d.ts +5 -0
- package/dist/types/components/co-data-table-pagination/co-data-table-pagination.d.ts +12 -0
- package/dist/types/components/co-date-field/co-date-field.d.ts +11 -0
- package/dist/types/components/co-date-picker/co-date-picker.d.ts +30 -0
- package/dist/types/components/co-date-range/co-date-range.d.ts +12 -0
- package/dist/types/components/co-date-range-picker/co-date-range-picker.d.ts +33 -0
- package/dist/types/components/co-date-time-picker/co-date-time-picker.d.ts +22 -1
- package/dist/types/components/co-document-editor/change-throttle.d.ts +9 -0
- package/dist/types/components/co-document-editor/co-document-editor.d.ts +284 -0
- package/dist/types/components/co-document-editor/document-props.d.ts +6 -0
- package/dist/types/components/co-document-editor/header-tools.d.ts +11 -0
- package/dist/types/components/co-document-editor/image-bar.d.ts +50 -0
- package/dist/types/components/co-document-editor/page-styles.d.ts +1 -0
- package/dist/types/components/co-document-editor/zoom.d.ts +26 -0
- package/dist/types/components/co-drawer/co-drawer.d.ts +13 -0
- package/dist/types/components/co-drive-card/co-drive-card.d.ts +13 -0
- package/dist/types/components/co-drop-zone/co-drop-zone.d.ts +6 -1
- package/dist/types/components/co-emoji-picker/co-emoji-picker.d.ts +9 -0
- package/dist/types/components/co-empty-state/co-empty-state.d.ts +2 -0
- package/dist/types/components/co-event-calendar/co-event-calendar.d.ts +12 -16
- package/dist/types/components/co-event-popover/co-event-popover.d.ts +13 -0
- package/dist/types/components/co-fab/co-fab.d.ts +11 -0
- package/dist/types/components/co-file-field/co-file-field.d.ts +6 -0
- package/dist/types/components/co-file-type-tile/co-file-type-tile.d.ts +7 -0
- package/dist/types/components/co-gradient-bar/co-gradient-bar.d.ts +77 -0
- package/dist/types/components/co-helper-text/co-helper-text.d.ts +2 -0
- package/dist/types/components/co-icon/co-icon.d.ts +4 -0
- package/dist/types/components/co-icon-button/co-icon-button.d.ts +39 -2
- package/dist/types/components/co-input/co-input.d.ts +25 -5
- package/dist/types/components/co-json-field/co-json-field.d.ts +11 -0
- package/dist/types/components/co-kbd/co-kbd.d.ts +50 -0
- package/dist/types/components/co-list-footer/co-list-footer.d.ts +3 -0
- package/dist/types/components/co-list-item/co-list-item.d.ts +3 -0
- package/dist/types/components/co-loader/co-loader.d.ts +5 -0
- package/dist/types/components/co-media-thumb/co-media-thumb.d.ts +7 -0
- package/dist/types/components/co-menu/co-menu.d.ts +42 -1
- package/dist/types/components/co-menu-divider/co-menu-divider.d.ts +1 -0
- package/dist/types/components/co-menu-item/co-menu-item.d.ts +19 -0
- package/dist/types/components/co-modal/co-modal.d.ts +126 -5
- package/dist/types/components/co-navbar/co-navbar.d.ts +2 -0
- package/dist/types/components/co-number-field/co-number-field.d.ts +20 -0
- package/dist/types/components/co-option-list/co-option-list.d.ts +29 -1
- package/dist/types/components/co-option-list/optionListLogic.d.ts +3 -0
- package/dist/types/components/co-overlay/co-overlay.d.ts +10 -0
- package/dist/types/components/co-page-header/co-page-header.d.ts +3 -0
- package/dist/types/components/co-popover/co-popover.d.ts +51 -0
- package/dist/types/components/co-progress-bar/co-progress-bar.d.ts +3 -0
- package/dist/types/components/co-progress-circle/co-progress-circle.d.ts +3 -0
- package/dist/types/components/co-provider-logo/co-provider-logo.d.ts +3 -0
- package/dist/types/components/co-radio/co-radio.d.ts +8 -0
- package/dist/types/components/co-radio-group/co-radio-group.d.ts +5 -0
- package/dist/types/components/co-rating/co-rating.d.ts +15 -0
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +42 -0
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +31 -5
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +20 -2
- package/dist/types/components/co-rich-text-viewer/co-rich-text-viewer.d.ts +8 -0
- package/dist/types/components/co-row/co-row.d.ts +3 -0
- package/dist/types/components/co-segmented-bar/co-segmented-bar.d.ts +6 -0
- package/dist/types/components/co-select/co-select.d.ts +73 -5
- package/dist/types/components/co-select/virtualRows.d.ts +44 -0
- package/dist/types/components/co-separator/co-separator.d.ts +7 -0
- package/dist/types/components/co-sidebar/co-sidebar.d.ts +8 -0
- package/dist/types/components/co-sidebar-nav/co-sidebar-nav.d.ts +1 -0
- package/dist/types/components/co-skeleton/co-skeleton.d.ts +3 -0
- package/dist/types/components/co-slider/co-slider.d.ts +160 -1
- package/dist/types/components/co-swatch-grid/co-swatch-grid.d.ts +38 -0
- package/dist/types/components/co-switch/co-switch.d.ts +9 -0
- package/dist/types/components/co-tab/co-tab.d.ts +20 -2
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +46 -0
- package/dist/types/components/co-tab-group/revealTab.d.ts +29 -0
- package/dist/types/components/co-tags-field/co-tags-field.d.ts +11 -0
- package/dist/types/components/co-tile/co-tile.d.ts +45 -0
- package/dist/types/components/co-time-field/co-time-field.d.ts +5 -0
- package/dist/types/components/co-toast/co-toast.d.ts +9 -0
- package/dist/types/components/co-toggle-button/co-toggle-button.d.ts +45 -2
- package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +30 -2
- package/dist/types/components/co-tooltip/co-tooltip.d.ts +22 -0
- package/dist/types/components/co-transfer-list/co-transfer-list.d.ts +12 -0
- package/dist/types/components/co-tree-item/co-tree-item.d.ts +75 -0
- package/dist/types/components/co-tree-item/treeItemI18n.d.ts +6 -0
- package/dist/types/components/co-video/co-video.d.ts +31 -0
- package/dist/types/components.d.ts +3905 -85
- package/dist/types/utils/color.d.ts +9 -1
- package/dist/types/utils/dragMove.d.ts +63 -0
- package/dist/types/utils/gradientBarI18n.d.ts +8 -0
- package/dist/types/utils/gradientStops.d.ts +63 -0
- package/dist/types/utils/hsv.d.ts +44 -0
- package/dist/types/utils/kbdI18n.d.ts +25 -0
- package/dist/types/utils/positioning.d.ts +24 -0
- package/dist/types/utils/rich-text-host.d.ts +41 -0
- package/dist/types/utils/richTextI18n.d.ts +15 -0
- package/dist/types/utils/submenu.d.ts +16 -2
- package/dist/types/utils/swatchGridI18n.d.ts +6 -0
- package/dist/types/utils/test/fake-block-layout.d.ts +7 -0
- package/dist/types/utils/test/prosemirror-dom-shim.d.ts +1 -0
- package/dist/types/utils/test/shared-contract-css.d.ts +9 -0
- package/package.json +5 -5
- package/dist/cobalt/p-0678c797.entry.js +0 -1
- package/dist/cobalt/p-1d3a79af.entry.js +0 -1
- package/dist/cobalt/p-216a63ee.entry.js +0 -1
- package/dist/cobalt/p-3d31c575.entry.js +0 -1
- package/dist/cobalt/p-416795f5.entry.js +0 -1
- package/dist/cobalt/p-56551580.entry.js +0 -1
- package/dist/cobalt/p-58137c9e.entry.js +0 -1
- package/dist/cobalt/p-5a3e4c81.entry.js +0 -1
- package/dist/cobalt/p-5c756787.entry.js +0 -1
- package/dist/cobalt/p-67f3b9d6.entry.js +0 -1
- package/dist/cobalt/p-6a4f3179.entry.js +0 -1
- package/dist/cobalt/p-71cbc53c.entry.js +0 -1
- package/dist/cobalt/p-72e52af7.entry.js +0 -1
- package/dist/cobalt/p-8530ad16.entry.js +0 -1
- package/dist/cobalt/p-8a74bf7d.entry.js +0 -1
- package/dist/cobalt/p-8e05b979.entry.js +0 -1
- package/dist/cobalt/p-8ebc0c12.entry.js +0 -1
- package/dist/cobalt/p-8f2199ff.entry.js +0 -1
- package/dist/cobalt/p-9246e09c.entry.js +0 -1
- package/dist/cobalt/p-99a655f6.entry.js +0 -1
- package/dist/cobalt/p-BYKAgwq3.js +0 -1
- package/dist/cobalt/p-CJW9H3Gi.js +0 -1
- package/dist/cobalt/p-DFHRS9cJ.js +0 -1
- package/dist/cobalt/p-DH5lfRNj.js +0 -2
- package/dist/cobalt/p-a1b422ca.entry.js +0 -1
- package/dist/cobalt/p-ade07307.entry.js +0 -1
- package/dist/cobalt/p-b0762fd8.entry.js +0 -1
- package/dist/cobalt/p-b698188c.entry.js +0 -1
- package/dist/cobalt/p-bde32f8b.entry.js +0 -1
- package/dist/cobalt/p-d375014b.entry.js +0 -1
- package/dist/cobalt/p-db805569.entry.js +0 -1
- package/dist/cobalt/p-e3aae282.entry.js +0 -1
- package/dist/cobalt/p-e49a564c.entry.js +0 -1
- package/dist/cobalt/p-ef301976.entry.js +0 -1
- package/dist/cobalt/p-fMqVDypp.js +0 -1
- package/dist/components/p-2EOI1nrz.js +0 -1
- package/dist/components/p-7TncUlLN.js +0 -1
- package/dist/components/p-B4NCaKrR.js +0 -1
- package/dist/components/p-BGDqldEg.js +0 -1
- package/dist/components/p-BJh68Jqe.js +0 -1
- package/dist/components/p-BrAFTkAn.js +0 -1
- package/dist/components/p-Bsh0JMGf.js +0 -1
- package/dist/components/p-CJW9H3Gi.js +0 -1
- package/dist/components/p-CWCYYQrF.js +0 -1
- package/dist/components/p-D9T7zKeL.js +0 -1
- package/dist/components/p-DFHRS9cJ.js +0 -1
- package/dist/components/p-DTPYZwaZ.js +0 -1
- package/dist/components/p-Dcg4krSX.js +0 -1
- package/dist/components/p-Dh8ffSjK.js +0 -1
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { gradientCss, hasTransparentStop, interpolateStopColor, opaqueColor, positionFromPointer, stepPosition, } from "../../utils/gradientStops";
|
|
3
|
+
import { getGradientBarStrings } from "../../utils/gradientBarI18n";
|
|
4
|
+
/**
|
|
5
|
+
* Barra de paradas de un degradado (popover de relleno del editor): arrastrar
|
|
6
|
+
* una parada, agregar una con click sobre la barra y seleccionar.
|
|
7
|
+
*
|
|
8
|
+
* Contrato de eventos (pensado para el historial de deshacer del host):
|
|
9
|
+
* - `coStopMove` — continuo, en cada movimiento del arrastre (preview en vivo).
|
|
10
|
+
* - `coStopsChange` — UNA vez al terminar el gesto (siempre que hubo al menos
|
|
11
|
+
* un `coStopMove`, aunque el stop vuelva a su posición inicial: el host cierra
|
|
12
|
+
* ahí su transacción) y una vez por cada paso de teclado.
|
|
13
|
+
* - `coStopSelect` — al hacer pointerdown sobre un handle.
|
|
14
|
+
* - `coStopAdd` — al hacer click sobre el track fuera de un handle; `color` es
|
|
15
|
+
* el interpolado en esa posición.
|
|
16
|
+
* Con `disabled` no se emite nada.
|
|
17
|
+
*
|
|
18
|
+
* El componente es controlado: `stops` los pinta el host. Durante el arrastre
|
|
19
|
+
* el handle se pinta en la posición viva aunque el host no aplique cada
|
|
20
|
+
* `coStopMove`.
|
|
21
|
+
*
|
|
22
|
+
* Wrapper Vue: `CoGradientBar` de `@prolibu-suite/cobalt-vue`.
|
|
23
|
+
*
|
|
24
|
+
* @part track - La barra con el degradado.
|
|
25
|
+
* @part handle - Cada tirador de parada.
|
|
26
|
+
*/
|
|
27
|
+
export class CoGradientBar {
|
|
28
|
+
constructor() {
|
|
29
|
+
/** Paradas del degradado: `position` 0–100, `color` hex/rgba. */
|
|
30
|
+
this.stops = [];
|
|
31
|
+
/** Deshabilita toda interacción; no se emite ningún evento. */
|
|
32
|
+
this.disabled = false;
|
|
33
|
+
/** Índice de la parada en arrastre; -1 sin gesto. */
|
|
34
|
+
this.dragIndex = -1;
|
|
35
|
+
/** Posición viva de la parada en arrastre. */
|
|
36
|
+
this.dragPosition = 0;
|
|
37
|
+
this.pointerId = -1;
|
|
38
|
+
/** Desplazamiento entre el puntero y el centro del handle al agarrarlo, para que no salte. */
|
|
39
|
+
this.grabOffset = 0;
|
|
40
|
+
/** Hubo al menos un `coStopMove` en el gesto → al soltar se emite `coStopsChange`. */
|
|
41
|
+
this.dragMoved = false;
|
|
42
|
+
// ── Agregar parada ────────────────────────────────────────────────────
|
|
43
|
+
this.handleTrackClick = (e) => {
|
|
44
|
+
var _a;
|
|
45
|
+
if (this.disabled)
|
|
46
|
+
return;
|
|
47
|
+
// El click que sigue a un pointerdown/up sobre un handle también burbujea
|
|
48
|
+
// hasta el track: ahí no se agrega nada.
|
|
49
|
+
const target = e.target;
|
|
50
|
+
if ((_a = target === null || target === void 0 ? void 0 : target.closest) === null || _a === void 0 ? void 0 : _a.call(target, '.co-gradient-bar__handle'))
|
|
51
|
+
return;
|
|
52
|
+
const position = this.positionAt(e.clientX);
|
|
53
|
+
this.coStopAdd.emit({ position, color: interpolateStopColor(this.stopList, position) });
|
|
54
|
+
};
|
|
55
|
+
// ── Seleccionar + arrastrar ───────────────────────────────────────────
|
|
56
|
+
this.handleHandlePointerDown = (index, e) => {
|
|
57
|
+
var _a, _b, _c, _d, _e, _f;
|
|
58
|
+
if (this.disabled)
|
|
59
|
+
return;
|
|
60
|
+
// Un segundo puntero (multitouch) durante un arrastre no selecciona ni
|
|
61
|
+
// secuestra el gesto en curso.
|
|
62
|
+
if (this.dragIndex >= 0)
|
|
63
|
+
return;
|
|
64
|
+
if (e.button !== undefined && e.button !== 0)
|
|
65
|
+
return;
|
|
66
|
+
// preventDefault evita la selección de texto; el foco se da a mano.
|
|
67
|
+
e.preventDefault();
|
|
68
|
+
const handle = e.currentTarget;
|
|
69
|
+
(_a = handle === null || handle === void 0 ? void 0 : handle.focus) === null || _a === void 0 ? void 0 : _a.call(handle);
|
|
70
|
+
this.selected = index;
|
|
71
|
+
this.coStopSelect.emit(index);
|
|
72
|
+
// jsdom no implementa setPointerCapture; en el browser retarget-ea el
|
|
73
|
+
// puntero al handle aunque salga del elemento.
|
|
74
|
+
if (handle === null || handle === void 0 ? void 0 : handle.setPointerCapture) {
|
|
75
|
+
try {
|
|
76
|
+
handle.setPointerCapture(e.pointerId);
|
|
77
|
+
}
|
|
78
|
+
catch (_g) {
|
|
79
|
+
/* puntero ya inactivo */
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
const start = (_c = (_b = this.stopList[index]) === null || _b === void 0 ? void 0 : _b.position) !== null && _c !== void 0 ? _c : 0;
|
|
83
|
+
const rect = (_d = this.trackEl) === null || _d === void 0 ? void 0 : _d.getBoundingClientRect();
|
|
84
|
+
const centerX = ((_e = rect === null || rect === void 0 ? void 0 : rect.left) !== null && _e !== void 0 ? _e : 0) + (((_f = rect === null || rect === void 0 ? void 0 : rect.width) !== null && _f !== void 0 ? _f : 0) * start) / 100;
|
|
85
|
+
this.grabOffset = rect && rect.width > 0 ? e.clientX - centerX : 0;
|
|
86
|
+
this.pointerId = e.pointerId;
|
|
87
|
+
this.dragIndex = index;
|
|
88
|
+
this.dragPosition = start;
|
|
89
|
+
this.dragMoved = false;
|
|
90
|
+
this.bindWindow();
|
|
91
|
+
};
|
|
92
|
+
this.handleWindowPointerMove = (e) => {
|
|
93
|
+
if (e.pointerId !== this.pointerId || this.dragIndex < 0)
|
|
94
|
+
return;
|
|
95
|
+
const position = this.positionAt(e.clientX - this.grabOffset);
|
|
96
|
+
if (position === this.dragPosition)
|
|
97
|
+
return;
|
|
98
|
+
this.dragPosition = position;
|
|
99
|
+
this.dragMoved = true;
|
|
100
|
+
this.coStopMove.emit({ index: this.dragIndex, position });
|
|
101
|
+
};
|
|
102
|
+
this.handleWindowPointerUp = (e) => {
|
|
103
|
+
if (e.pointerId !== this.pointerId)
|
|
104
|
+
return;
|
|
105
|
+
this.endDrag();
|
|
106
|
+
};
|
|
107
|
+
// ── Teclado ───────────────────────────────────────────────────────────
|
|
108
|
+
this.handleHandleKeyDown = (index, e) => {
|
|
109
|
+
var _a, _b;
|
|
110
|
+
if (this.disabled)
|
|
111
|
+
return;
|
|
112
|
+
const current = (_b = (_a = this.stopList[index]) === null || _a === void 0 ? void 0 : _a.position) !== null && _b !== void 0 ? _b : 0;
|
|
113
|
+
let next;
|
|
114
|
+
if (e.key === 'ArrowRight' || e.key === 'ArrowLeft') {
|
|
115
|
+
const delta = (e.key === 'ArrowRight' ? 1 : -1) * (e.shiftKey ? 10 : 1);
|
|
116
|
+
next = stepPosition(current, delta);
|
|
117
|
+
}
|
|
118
|
+
else if (e.key === 'Home') {
|
|
119
|
+
next = 0;
|
|
120
|
+
}
|
|
121
|
+
else if (e.key === 'End') {
|
|
122
|
+
next = 100;
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
e.preventDefault();
|
|
128
|
+
// Acotado en el borde: sin cambio real no hay paso de historial.
|
|
129
|
+
if (next === current)
|
|
130
|
+
return;
|
|
131
|
+
this.coStopsChange.emit(this.withPosition(index, next));
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
disconnectedCallback() {
|
|
135
|
+
this.unbindWindow();
|
|
136
|
+
}
|
|
137
|
+
// ── Geometría ──────────────────────────────────────────────────────────
|
|
138
|
+
positionAt(clientX) {
|
|
139
|
+
var _a, _b, _c;
|
|
140
|
+
const rect = (_a = this.trackEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
141
|
+
return positionFromPointer(clientX, (_b = rect === null || rect === void 0 ? void 0 : rect.left) !== null && _b !== void 0 ? _b : 0, (_c = rect === null || rect === void 0 ? void 0 : rect.width) !== null && _c !== void 0 ? _c : 0);
|
|
142
|
+
}
|
|
143
|
+
/** `stops` del host; un `undefined` explícito (wrappers React/Vue) cuenta como vacío. */
|
|
144
|
+
get stopList() {
|
|
145
|
+
var _a;
|
|
146
|
+
return (_a = this.stops) !== null && _a !== void 0 ? _a : [];
|
|
147
|
+
}
|
|
148
|
+
withPosition(index, position) {
|
|
149
|
+
return this.stopList.map((s, i) => (i === index ? Object.assign(Object.assign({}, s), { position }) : s));
|
|
150
|
+
}
|
|
151
|
+
/** Paradas a pintar: las del host, con la que se arrastra en su posición viva. */
|
|
152
|
+
liveStops() {
|
|
153
|
+
return this.dragIndex >= 0 ? this.withPosition(this.dragIndex, this.dragPosition) : this.stopList;
|
|
154
|
+
}
|
|
155
|
+
endDrag() {
|
|
156
|
+
this.unbindWindow();
|
|
157
|
+
const index = this.dragIndex;
|
|
158
|
+
const position = this.dragPosition;
|
|
159
|
+
const moved = this.dragMoved;
|
|
160
|
+
this.pointerId = -1;
|
|
161
|
+
this.dragIndex = -1;
|
|
162
|
+
this.dragMoved = false;
|
|
163
|
+
if (index >= 0 && moved) {
|
|
164
|
+
this.coStopsChange.emit(this.withPosition(index, position));
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
bindWindow() {
|
|
168
|
+
window.addEventListener('pointermove', this.handleWindowPointerMove);
|
|
169
|
+
window.addEventListener('pointerup', this.handleWindowPointerUp);
|
|
170
|
+
window.addEventListener('pointercancel', this.handleWindowPointerUp);
|
|
171
|
+
}
|
|
172
|
+
unbindWindow() {
|
|
173
|
+
window.removeEventListener('pointermove', this.handleWindowPointerMove);
|
|
174
|
+
window.removeEventListener('pointerup', this.handleWindowPointerUp);
|
|
175
|
+
window.removeEventListener('pointercancel', this.handleWindowPointerUp);
|
|
176
|
+
}
|
|
177
|
+
// ── Render ────────────────────────────────────────────────────────────
|
|
178
|
+
render() {
|
|
179
|
+
const s = getGradientBarStrings(this.locale);
|
|
180
|
+
const live = this.liveStops();
|
|
181
|
+
const n = live.length;
|
|
182
|
+
const hasSelection = this.selected != null && this.selected >= 0 && this.selected < n;
|
|
183
|
+
return (h("div", { key: '10e1f78165d061dd08141de0a0ca885f15b7ff83', class: {
|
|
184
|
+
'co-gradient-bar': true,
|
|
185
|
+
'co-gradient-bar--disabled': this.disabled,
|
|
186
|
+
'co-gradient-bar--dragging': this.dragIndex >= 0,
|
|
187
|
+
'co-gradient-bar--transparent': hasTransparentStop(live),
|
|
188
|
+
}, role: "group", "aria-label": this.label || s.barLabel, "aria-disabled": this.disabled ? 'true' : undefined }, h("div", { key: 'e591b6e6d74ee9c9f3b9992f6d12cfd360f9fa49', class: "co-gradient-bar__track", part: "track", ref: (el) => (this.trackEl = el), onClick: this.handleTrackClick }, h("div", { key: 'fd5b93939df8988a08b8ab9f1fab36cc3eb24096', class: "co-gradient-bar__fill", style: { background: gradientCss(live) } }), live.map((stop, i) => {
|
|
189
|
+
const selected = i === this.selected;
|
|
190
|
+
// Roving tabindex: una sola parada de tab (la seleccionada, o la primera).
|
|
191
|
+
const tabbable = hasSelection ? selected : i === 0;
|
|
192
|
+
return (h("div", { key: i, class: {
|
|
193
|
+
'co-gradient-bar__handle': true,
|
|
194
|
+
'co-gradient-bar__handle--selected': selected,
|
|
195
|
+
}, part: "handle", role: "slider", "aria-label": s.stopLabel.replace('{i}', String(i + 1)).replace('{n}', String(n)).replace('{p}', String(stop.position)), "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": String(stop.position), "aria-disabled": this.disabled ? 'true' : undefined, tabIndex: this.disabled || !tabbable ? -1 : 0, style: {
|
|
196
|
+
left: `${stop.position}%`,
|
|
197
|
+
'--co-gradient-bar-stop-color': stop.color,
|
|
198
|
+
// Mitad "sólida" del chip partido (Figma): el color sin alpha.
|
|
199
|
+
'--co-gradient-bar-stop-opaque': opaqueColor(stop.color),
|
|
200
|
+
}, onPointerDown: (e) => this.handleHandlePointerDown(i, e), onKeyDown: (e) => this.handleHandleKeyDown(i, e) }));
|
|
201
|
+
}))));
|
|
202
|
+
}
|
|
203
|
+
static get is() { return "co-gradient-bar"; }
|
|
204
|
+
static get encapsulation() { return "shadow"; }
|
|
205
|
+
static get originalStyleUrls() {
|
|
206
|
+
return {
|
|
207
|
+
"$": ["co-gradient-bar.css"]
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
static get styleUrls() {
|
|
211
|
+
return {
|
|
212
|
+
"$": ["co-gradient-bar.css"]
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
static get properties() {
|
|
216
|
+
return {
|
|
217
|
+
"stops": {
|
|
218
|
+
"type": "unknown",
|
|
219
|
+
"mutable": false,
|
|
220
|
+
"complexType": {
|
|
221
|
+
"original": "GradientStop[]",
|
|
222
|
+
"resolved": "GradientStop[]",
|
|
223
|
+
"references": {
|
|
224
|
+
"GradientStop": {
|
|
225
|
+
"location": "import",
|
|
226
|
+
"path": "../../utils/gradientStops",
|
|
227
|
+
"id": "src/utils/gradientStops.ts::GradientStop",
|
|
228
|
+
"referenceLocation": "GradientStop"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"required": false,
|
|
233
|
+
"optional": false,
|
|
234
|
+
"docs": {
|
|
235
|
+
"tags": [],
|
|
236
|
+
"text": "Paradas del degradado: `position` 0\u2013100, `color` hex/rgba."
|
|
237
|
+
},
|
|
238
|
+
"getter": false,
|
|
239
|
+
"setter": false,
|
|
240
|
+
"defaultValue": "[]"
|
|
241
|
+
},
|
|
242
|
+
"selected": {
|
|
243
|
+
"type": "number",
|
|
244
|
+
"mutable": true,
|
|
245
|
+
"complexType": {
|
|
246
|
+
"original": "number",
|
|
247
|
+
"resolved": "number | undefined",
|
|
248
|
+
"references": {}
|
|
249
|
+
},
|
|
250
|
+
"required": false,
|
|
251
|
+
"optional": true,
|
|
252
|
+
"docs": {
|
|
253
|
+
"tags": [],
|
|
254
|
+
"text": "\u00CDndice de la parada seleccionada (anillo `accent`). Se actualiza al hacer pointerdown en un handle."
|
|
255
|
+
},
|
|
256
|
+
"getter": false,
|
|
257
|
+
"setter": false,
|
|
258
|
+
"reflect": false,
|
|
259
|
+
"attribute": "selected"
|
|
260
|
+
},
|
|
261
|
+
"disabled": {
|
|
262
|
+
"type": "boolean",
|
|
263
|
+
"mutable": false,
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "boolean",
|
|
266
|
+
"resolved": "boolean",
|
|
267
|
+
"references": {}
|
|
268
|
+
},
|
|
269
|
+
"required": false,
|
|
270
|
+
"optional": false,
|
|
271
|
+
"docs": {
|
|
272
|
+
"tags": [],
|
|
273
|
+
"text": "Deshabilita toda interacci\u00F3n; no se emite ning\u00FAn evento."
|
|
274
|
+
},
|
|
275
|
+
"getter": false,
|
|
276
|
+
"setter": false,
|
|
277
|
+
"reflect": true,
|
|
278
|
+
"attribute": "disabled",
|
|
279
|
+
"defaultValue": "false"
|
|
280
|
+
},
|
|
281
|
+
"label": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"mutable": false,
|
|
284
|
+
"complexType": {
|
|
285
|
+
"original": "string",
|
|
286
|
+
"resolved": "string | undefined",
|
|
287
|
+
"references": {}
|
|
288
|
+
},
|
|
289
|
+
"required": false,
|
|
290
|
+
"optional": true,
|
|
291
|
+
"docs": {
|
|
292
|
+
"tags": [],
|
|
293
|
+
"text": "aria-label del grupo. Vac\u00EDo = el del `locale`."
|
|
294
|
+
},
|
|
295
|
+
"getter": false,
|
|
296
|
+
"setter": false,
|
|
297
|
+
"reflect": false,
|
|
298
|
+
"attribute": "label"
|
|
299
|
+
},
|
|
300
|
+
"locale": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"mutable": false,
|
|
303
|
+
"complexType": {
|
|
304
|
+
"original": "string",
|
|
305
|
+
"resolved": "string | undefined",
|
|
306
|
+
"references": {}
|
|
307
|
+
},
|
|
308
|
+
"required": false,
|
|
309
|
+
"optional": true,
|
|
310
|
+
"docs": {
|
|
311
|
+
"tags": [],
|
|
312
|
+
"text": "Locale de los strings integrados (es/en/pt)."
|
|
313
|
+
},
|
|
314
|
+
"getter": false,
|
|
315
|
+
"setter": false,
|
|
316
|
+
"reflect": false,
|
|
317
|
+
"attribute": "locale"
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
static get states() {
|
|
322
|
+
return {
|
|
323
|
+
"dragIndex": {},
|
|
324
|
+
"dragPosition": {}
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
static get events() {
|
|
328
|
+
return [{
|
|
329
|
+
"method": "coStopMove",
|
|
330
|
+
"name": "coStopMove",
|
|
331
|
+
"bubbles": true,
|
|
332
|
+
"cancelable": true,
|
|
333
|
+
"composed": true,
|
|
334
|
+
"docs": {
|
|
335
|
+
"tags": [],
|
|
336
|
+
"text": "`{ index, position }` en cada movimiento del arrastre."
|
|
337
|
+
},
|
|
338
|
+
"complexType": {
|
|
339
|
+
"original": "GradientStopMoveDetail",
|
|
340
|
+
"resolved": "GradientStopMoveDetail",
|
|
341
|
+
"references": {
|
|
342
|
+
"GradientStopMoveDetail": {
|
|
343
|
+
"location": "import",
|
|
344
|
+
"path": "../../utils/gradientStops",
|
|
345
|
+
"id": "src/utils/gradientStops.ts::GradientStopMoveDetail",
|
|
346
|
+
"referenceLocation": "GradientStopMoveDetail"
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}, {
|
|
351
|
+
"method": "coStopsChange",
|
|
352
|
+
"name": "coStopsChange",
|
|
353
|
+
"bubbles": true,
|
|
354
|
+
"cancelable": true,
|
|
355
|
+
"composed": true,
|
|
356
|
+
"docs": {
|
|
357
|
+
"tags": [],
|
|
358
|
+
"text": "Paradas resultantes al soltar (una vez por gesto) o tras cada paso de\nteclado. Conserva el ORDEN e \u00CDNDICES del `stops` del host (solo cambia\n`position` de la parada movida): un host que ordene por posici\u00F3n al\nconfirmar debe remapear `selected` al \u00EDndice nuevo."
|
|
359
|
+
},
|
|
360
|
+
"complexType": {
|
|
361
|
+
"original": "GradientStop[]",
|
|
362
|
+
"resolved": "GradientStop[]",
|
|
363
|
+
"references": {
|
|
364
|
+
"GradientStop": {
|
|
365
|
+
"location": "import",
|
|
366
|
+
"path": "../../utils/gradientStops",
|
|
367
|
+
"id": "src/utils/gradientStops.ts::GradientStop",
|
|
368
|
+
"referenceLocation": "GradientStop"
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}, {
|
|
373
|
+
"method": "coStopSelect",
|
|
374
|
+
"name": "coStopSelect",
|
|
375
|
+
"bubbles": true,
|
|
376
|
+
"cancelable": true,
|
|
377
|
+
"composed": true,
|
|
378
|
+
"docs": {
|
|
379
|
+
"tags": [],
|
|
380
|
+
"text": "\u00CDndice de la parada al hacer pointerdown sobre su handle."
|
|
381
|
+
},
|
|
382
|
+
"complexType": {
|
|
383
|
+
"original": "number",
|
|
384
|
+
"resolved": "number",
|
|
385
|
+
"references": {}
|
|
386
|
+
}
|
|
387
|
+
}, {
|
|
388
|
+
"method": "coStopAdd",
|
|
389
|
+
"name": "coStopAdd",
|
|
390
|
+
"bubbles": true,
|
|
391
|
+
"cancelable": true,
|
|
392
|
+
"composed": true,
|
|
393
|
+
"docs": {
|
|
394
|
+
"tags": [],
|
|
395
|
+
"text": "`{ position, color }` al hacer click sobre el track fuera de un handle."
|
|
396
|
+
},
|
|
397
|
+
"complexType": {
|
|
398
|
+
"original": "GradientStopAddDetail",
|
|
399
|
+
"resolved": "GradientStopAddDetail",
|
|
400
|
+
"references": {
|
|
401
|
+
"GradientStopAddDetail": {
|
|
402
|
+
"location": "import",
|
|
403
|
+
"path": "../../utils/gradientStops",
|
|
404
|
+
"id": "src/utils/gradientStops.ts::GradientStopAddDetail",
|
|
405
|
+
"referenceLocation": "GradientStopAddDetail"
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}];
|
|
410
|
+
}
|
|
411
|
+
static get elementRef() { return "el"; }
|
|
412
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
/**
|
|
3
3
|
* Helper / validation text shown below form fields.
|
|
4
|
+
* Wrapper Vue: `CoHelperText` de `@prolibu-suite/cobalt-vue`.
|
|
5
|
+
* @part helper-text - La fila del texto (ícono de estado + texto).
|
|
4
6
|
*/
|
|
5
7
|
export class CoHelperText {
|
|
6
8
|
constructor() {
|
|
@@ -15,10 +17,10 @@ export class CoHelperText {
|
|
|
15
17
|
};
|
|
16
18
|
}
|
|
17
19
|
render() {
|
|
18
|
-
return (h("div", { key: '
|
|
20
|
+
return (h("div", { key: '12a67e485fed5d931c4325a0139d3ae7669b8de4', class: {
|
|
19
21
|
'co-helper-text': true,
|
|
20
22
|
[`co-helper-text--${this.status}`]: true,
|
|
21
|
-
}, part: "helper-text" }, h("co-icon", { key: '
|
|
23
|
+
}, part: "helper-text" }, h("co-icon", { key: '5bdb8635fa1654a9e10176c9818ba4197fc252e8', name: this.STATUS_ICON[this.status], size: 14, weight: "fill", class: "co-helper-text__icon" }), h("span", { key: 'c2f165cc0226ea1d799c62d0929d6acbf5cc1b98', class: "co-helper-text__message" }, h("slot", { key: 'd8315ea3ea6c002f83f1d936f9a3521831593b3d' }, this.message))));
|
|
22
24
|
}
|
|
23
25
|
static get is() { return "co-helper-text"; }
|
|
24
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,6 +6,10 @@ import { loadSvg } from "./iconLoader";
|
|
|
6
6
|
* Usage:
|
|
7
7
|
* <co-icon name="plus" />
|
|
8
8
|
* <co-icon name="arrow-right" weight="bold" size="24" />
|
|
9
|
+
*
|
|
10
|
+
* Wrapper Vue: `CoIcon` de `@prolibu-suite/cobalt-vue`.
|
|
11
|
+
*
|
|
12
|
+
* @part svg - Contenedor del SVG (toma `currentColor`).
|
|
9
13
|
*/
|
|
10
14
|
export class CoIcon {
|
|
11
15
|
constructor() {
|
|
@@ -31,12 +35,12 @@ export class CoIcon {
|
|
|
31
35
|
this.svgContent = await loadSvg(this.name, this.weight);
|
|
32
36
|
}
|
|
33
37
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: 'e6f8302d22e1fbeac4e82d199b9214063c7b2313', "aria-hidden": "true", style: {
|
|
35
39
|
display: 'inline-flex',
|
|
36
40
|
width: `${this.size}px`,
|
|
37
41
|
height: `${this.size}px`,
|
|
38
42
|
flexShrink: '0',
|
|
39
|
-
} }, h("span", { key: '
|
|
43
|
+
} }, h("span", { key: '7967a0787112955036f6f88231a2a635e647e218', part: "svg", innerHTML: this.svgContent })));
|
|
40
44
|
}
|
|
41
45
|
static get is() { return "co-icon"; }
|
|
42
46
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prop --co-icon-button-bg: Superficie de las variantes `filled`/`outlined` (se mezcla con transparencia).
|
|
3
|
+
* @prop --co-icon-button-color: Color del ícono.
|
|
4
|
+
* @prop --co-icon-button-border: Borde de la variante `filled`.
|
|
5
|
+
* @prop --co-icon-button-selected-bg: Fondo con `selected` (default el acento).
|
|
6
|
+
* @prop --co-icon-button-selected-color: Color del ícono con `selected` (default on-accent).
|
|
7
|
+
* @prop --co-icon-button-radius: Radio del botón, en todas las tallas y formas.
|
|
8
|
+
* @prop --co-icon-button-backdrop-filter: Reemplaza el `backdrop-filter` del botón. Ojo: queda fuera del interruptor `--co-glass-filter` y de `prefers-reduced-transparency`; para ajustar el frost usá `--co-glass-blur`/`--co-glass-saturate`.
|
|
9
|
+
*/
|
|
1
10
|
:host {
|
|
2
11
|
display: inline-flex;
|
|
3
12
|
}
|
|
@@ -9,6 +18,18 @@
|
|
|
9
18
|
pointer-events: none;
|
|
10
19
|
}
|
|
11
20
|
|
|
21
|
+
/* fluid: cede el ancho fijo por `size` y se reparte el espacio disponible del
|
|
22
|
+
flex padre (fila de N botones al 100%). min-width:0 permite que se achique
|
|
23
|
+
por debajo del contenido intrínseco, como cualquier item flex que necesite
|
|
24
|
+
truncar/encoger en vez de forzar overflow del contenedor. */
|
|
25
|
+
:host([fluid]) {
|
|
26
|
+
flex: 1 1 0;
|
|
27
|
+
min-width: 0;
|
|
28
|
+
}
|
|
29
|
+
:host([fluid]) .co-icon-button {
|
|
30
|
+
width: 100%;
|
|
31
|
+
}
|
|
32
|
+
|
|
12
33
|
.co-icon-button {
|
|
13
34
|
display: inline-flex;
|
|
14
35
|
align-items: center;
|
|
@@ -62,6 +83,20 @@
|
|
|
62
83
|
background: var(--co-color-opacity-negro-8, rgba(31, 28, 27, 0.08));
|
|
63
84
|
}
|
|
64
85
|
|
|
86
|
+
/* Soft = fondo sólido `--co-semantic-surface-control` (gray-100 en claro /
|
|
87
|
+
gray-700 en oscuro), sin borde visible (queda en transparent, mismo grosor
|
|
88
|
+
que el default — no cambia el tamaño), sin frost. */
|
|
89
|
+
.co-icon-button--soft {
|
|
90
|
+
background: var(--co-semantic-surface-control);
|
|
91
|
+
color: var(--co-icon-button-color, var(--co-semantic-text-default));
|
|
92
|
+
border-color: transparent;
|
|
93
|
+
-webkit-backdrop-filter: none;
|
|
94
|
+
backdrop-filter: none;
|
|
95
|
+
}
|
|
96
|
+
.co-icon-button--soft:hover:not(:disabled) {
|
|
97
|
+
background: color-mix(in srgb, var(--co-semantic-surface-control), var(--co-semantic-surface-hover));
|
|
98
|
+
}
|
|
99
|
+
|
|
65
100
|
/* ─── SURFACE · DARK (on-dark theming) ──────────────────────── */
|
|
66
101
|
/* Placed after the variants so it wins on icon color; opt-in via surface="dark" */
|
|
67
102
|
.co-icon-button--dark {
|
|
@@ -71,65 +106,115 @@
|
|
|
71
106
|
background: var(--co-color-opacity-blanco-16, rgba(255, 255, 255, 0.16));
|
|
72
107
|
}
|
|
73
108
|
|
|
109
|
+
/* ─── SELECTED (transversal: gana sobre cualquier variant/surface) ───── */
|
|
110
|
+
/* Colocada después de VARIANTS y SURFACE·DARK para pisar su background/color
|
|
111
|
+
sin importar qué variant esté activa (filled/outlined/ghost/soft) — es el
|
|
112
|
+
mismo orden-de-fuente que ya usa `--dark` para pisar el color de icono.
|
|
113
|
+
Fix round 1: `.co-icon-button--selected` sola (especificidad 0,1,0) perdía
|
|
114
|
+
el hover contra `--ghost:hover:not(:disabled)`, `--soft:hover:not(:disabled)`
|
|
115
|
+
y `--dark.--ghost:hover:not(:disabled)` (0,3,0 / 0,4,0) — el fondo de acento
|
|
116
|
+
desaparecía al pasar el mouse. Se agregan variantes `:hover:not(:disabled)`
|
|
117
|
+
con la MISMA especificidad que esas reglas; como esta sección ya viene
|
|
118
|
+
después de todas ellas en el archivo, gana por orden de fuente. */
|
|
119
|
+
.co-icon-button--selected,
|
|
120
|
+
.co-icon-button--selected:hover:not(:disabled),
|
|
121
|
+
.co-icon-button--dark.co-icon-button--selected:hover:not(:disabled) {
|
|
122
|
+
background: var(--co-icon-button-selected-bg, var(--co-semantic-accent));
|
|
123
|
+
color: var(--co-icon-button-selected-color, var(--co-semantic-on-accent));
|
|
124
|
+
}
|
|
125
|
+
|
|
74
126
|
/* ─── SIZES · ROUNDED ───────────────────────────────────────── */
|
|
127
|
+
/* --co-icon-button-radius unifica el radio en las 12 combinaciones talla×shape
|
|
128
|
+
(y en el boxStyle inline de `boxSize`, ver .tsx) — el fallback es el valor
|
|
129
|
+
que ya tenía cada regla, así que sin la variable el resultado es idéntico. */
|
|
75
130
|
.co-icon-button--rounded.co-icon-button--xl {
|
|
76
131
|
width: 80px; height: 80px;
|
|
77
|
-
border-radius: var(--co-border-radius-full);
|
|
132
|
+
border-radius: var(--co-icon-button-radius, var(--co-border-radius-full));
|
|
78
133
|
}
|
|
79
134
|
.co-icon-button--rounded.co-icon-button--lg {
|
|
80
135
|
width: 64px; height: 64px;
|
|
81
|
-
border-radius: var(--co-border-radius-full);
|
|
136
|
+
border-radius: var(--co-icon-button-radius, var(--co-border-radius-full));
|
|
82
137
|
}
|
|
83
138
|
.co-icon-button--rounded.co-icon-button--md {
|
|
84
139
|
width: 56px; height: 56px;
|
|
85
|
-
border-radius: var(--co-border-radius-full);
|
|
140
|
+
border-radius: var(--co-icon-button-radius, var(--co-border-radius-full));
|
|
86
141
|
}
|
|
87
142
|
.co-icon-button--rounded.co-icon-button--sm {
|
|
88
143
|
width: 48px; height: 48px;
|
|
89
|
-
border-radius: var(--co-border-radius-full);
|
|
144
|
+
border-radius: var(--co-icon-button-radius, var(--co-border-radius-full));
|
|
90
145
|
}
|
|
91
146
|
.co-icon-button--rounded.co-icon-button--xs {
|
|
92
147
|
width: 32px; height: 32px;
|
|
93
|
-
border-radius: var(--co-border-radius-full);
|
|
148
|
+
border-radius: var(--co-icon-button-radius, var(--co-border-radius-full));
|
|
94
149
|
}
|
|
95
150
|
.co-icon-button--rounded.co-icon-button--xxs {
|
|
96
151
|
width: 24px; height: 24px;
|
|
97
|
-
border-radius: var(--co-border-radius-full);
|
|
152
|
+
border-radius: var(--co-icon-button-radius, var(--co-border-radius-full));
|
|
98
153
|
}
|
|
99
154
|
|
|
100
155
|
/* ─── SIZES · SQUARE ────────────────────────────────────────── */
|
|
101
156
|
.co-icon-button--square.co-icon-button--xl {
|
|
102
157
|
width: 80px; height: 80px;
|
|
103
|
-
border-radius: var(--co-border-radius-xl); /* 24px */
|
|
158
|
+
border-radius: var(--co-icon-button-radius, var(--co-border-radius-xl)); /* 24px */
|
|
104
159
|
}
|
|
105
160
|
.co-icon-button--square.co-icon-button--lg {
|
|
106
161
|
width: 64px; height: 64px;
|
|
107
|
-
border-radius: var(--co-border-radius-lg); /* 16px */
|
|
162
|
+
border-radius: var(--co-icon-button-radius, var(--co-border-radius-lg)); /* 16px */
|
|
108
163
|
}
|
|
109
164
|
.co-icon-button--square.co-icon-button--md {
|
|
110
165
|
width: 56px; height: 56px;
|
|
111
|
-
border-radius: var(--co-border-radius-lg); /* 16px */
|
|
166
|
+
border-radius: var(--co-icon-button-radius, var(--co-border-radius-lg)); /* 16px */
|
|
112
167
|
}
|
|
113
168
|
.co-icon-button--square.co-icon-button--sm {
|
|
114
169
|
width: 48px; height: 48px;
|
|
115
|
-
border-radius: var(--co-border-radius-sm); /* 12px */
|
|
170
|
+
border-radius: var(--co-icon-button-radius, var(--co-border-radius-sm)); /* 12px */
|
|
116
171
|
}
|
|
117
172
|
.co-icon-button--square.co-icon-button--xs {
|
|
118
173
|
width: 32px; height: 32px;
|
|
119
|
-
border-radius: var(--co-border-radius-xs); /* 8px */
|
|
174
|
+
border-radius: var(--co-icon-button-radius, var(--co-border-radius-xs)); /* 8px */
|
|
120
175
|
}
|
|
121
176
|
.co-icon-button--square.co-icon-button--xxs {
|
|
122
177
|
width: 24px; height: 24px;
|
|
123
|
-
border-radius: var(--co-spacing-sm); /* 6px */
|
|
178
|
+
border-radius: var(--co-icon-button-radius, var(--co-spacing-sm)); /* 6px */
|
|
124
179
|
}
|
|
125
180
|
|
|
126
|
-
/* ───
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
181
|
+
/* ─── GLIFO PROYECTADO (slot default, solo sin `icon`) ─────────── */
|
|
182
|
+
/* El `<slot/>` solo se monta cuando NO hay `icon` (ver .tsx): el consumidor
|
|
183
|
+
proyecta su propio glifo (SVG inline) en el lugar del co-icon. Vive dentro
|
|
184
|
+
del <button>, así que hereda color/currentColor, la opacidad de hover y
|
|
185
|
+
disabled, el scale de :active y el color de `selected` sin reglas extra.
|
|
186
|
+
Mide lo que mediría el co-icon de esa talla (o `iconSize`): el .tsx publica
|
|
187
|
+
`--co-icon-button-glyph-size` inline en el botón SOLO en modo slot.
|
|
188
|
+
Reemplaza las seis reglas `.co-icon-button--<size> ::slotted(*)` que
|
|
189
|
+
quedaron muertas desde 94a242a (el slot se quitó del render y nada se
|
|
190
|
+
proyectaba) y cuyas medidas ya no coincidían con las del co-icon
|
|
191
|
+
(lg 24 vs 28, md 20 vs 24, sm 18 vs 20, xxs 12 vs 16). Sin slot montado
|
|
192
|
+
—o sea, con `icon`— esta regla no matchea nada. */
|
|
193
|
+
::slotted(*) {
|
|
194
|
+
width: var(--co-icon-button-glyph-size);
|
|
195
|
+
height: var(--co-icon-button-glyph-size);
|
|
196
|
+
flex-shrink: 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* ─── CARET (disclosure) ──────────────────────────────────────── */
|
|
200
|
+
/* Fix round 1: `padding-right: 8px` NO agranda la caja — con
|
|
201
|
+
`box-sizing: border-box` (regla base `.co-icon-button`) y un `width` FIJO por
|
|
202
|
+
talla, un padding extra le ROBA espacio al área de contenido en vez de sumar
|
|
203
|
+
ancho, y a xs (32px: icono 16 + gap 4 + caret 8 = 28 vs 22 disponibles tras
|
|
204
|
+
el padding) y xxs desborda. El fix real es crecer el `width` mismo +8px por
|
|
205
|
+
talla — mismos dos-clases de especificidad que `.co-icon-button--rounded/
|
|
206
|
+
--square.co-icon-button--<size>`, así que gana por ORDEN DE FUENTE (viene
|
|
207
|
+
después de esas reglas), sin necesidad de repetir por shape porque el ancho
|
|
208
|
+
ya es igual en rounded y square para cada talla. */
|
|
209
|
+
.co-icon-button--caret {
|
|
210
|
+
gap: 4px;
|
|
211
|
+
}
|
|
212
|
+
.co-icon-button--caret.co-icon-button--xl { width: calc(80px + 8px); }
|
|
213
|
+
.co-icon-button--caret.co-icon-button--lg { width: calc(64px + 8px); }
|
|
214
|
+
.co-icon-button--caret.co-icon-button--md { width: calc(56px + 8px); }
|
|
215
|
+
.co-icon-button--caret.co-icon-button--sm { width: calc(48px + 8px); }
|
|
216
|
+
.co-icon-button--caret.co-icon-button--xs { width: calc(32px + 8px); }
|
|
217
|
+
.co-icon-button--caret.co-icon-button--xxs { width: calc(24px + 8px); }
|
|
133
218
|
|
|
134
219
|
/* ─── STATES ────────────────────────────────────────────────── */
|
|
135
220
|
.co-icon-button--disabled,
|