@prolibu-suite/cobalt-core 0.10.4 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +4362 -388
- 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 +2 -2
- package/dist/cjs/co-avatar-group.cjs.entry.js +1 -1
- 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 +3 -3
- package/dist/cjs/co-button.cjs.entry.js +9 -7
- package/dist/cjs/co-calendar-month_2.cjs.entry.js +4 -4
- package/dist/cjs/co-calendar_3.cjs.entry.js +72 -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 +3 -3
- package/dist/cjs/co-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/co-checkbox.cjs.entry.js +13 -5
- package/dist/cjs/co-chip_2.cjs.entry.js +9 -6
- 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 +3 -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 +2 -2
- package/dist/cjs/co-date-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-date-range.cjs.entry.js +2 -2
- package/dist/cjs/co-date-time-picker.cjs.entry.js +4 -4
- package/dist/cjs/co-document-editor.cjs.entry.js +1161 -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 +3 -3
- package/dist/cjs/co-event-popover.cjs.entry.js +3 -3
- package/dist/cjs/co-fab.cjs.entry.js +3 -3
- package/dist/cjs/co-file-field.cjs.entry.js +8 -8
- package/dist/cjs/co-file-type-tile.cjs.entry.js +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 +49 -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 +5 -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 +5 -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 +67 -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 +4 -4
- package/dist/cjs/co-ref-field.cjs.entry.js +5 -5
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +26 -92
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +79 -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 +158 -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 +203 -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 +8 -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 +2 -2
- package/dist/cjs/co-toast.cjs.entry.js +3 -3
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +26 -5
- package/dist/cjs/co-toggle-button.cjs.entry.js +67 -6
- package/dist/cjs/co-transfer-list.cjs.entry.js +3 -3
- package/dist/cjs/co-tree-item.cjs.entry.js +110 -0
- package/dist/cjs/co-video.cjs.entry.js +3 -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-ee149fd2.entry.js → p-05000ef3.entry.js} +1 -1
- package/dist/cobalt/p-06689166.entry.js +1 -0
- package/dist/cobalt/{p-1dc55e43.entry.js → p-0a5cfed0.entry.js} +1 -1
- package/dist/cobalt/p-1289131f.entry.js +1 -0
- package/dist/cobalt/{p-c7d7d7f7.entry.js → p-136beb2c.entry.js} +1 -1
- package/dist/cobalt/{p-b437eff6.entry.js → p-1693b614.entry.js} +1 -1
- package/dist/cobalt/p-1bfb69ae.entry.js +1 -0
- package/dist/cobalt/{p-2c9dba2f.entry.js → p-1f3d5313.entry.js} +1 -1
- package/dist/cobalt/{p-b821d9de.entry.js → p-22233b31.entry.js} +1 -1
- package/dist/cobalt/{p-c30b4cb5.entry.js → p-26fa36f8.entry.js} +1 -1
- package/dist/cobalt/p-2794c500.entry.js +1 -0
- package/dist/cobalt/p-297b55cd.entry.js +1 -0
- package/dist/cobalt/{p-17244412.entry.js → p-2a2b0c7a.entry.js} +1 -1
- package/dist/cobalt/{p-2636b7eb.entry.js → p-2e5702a0.entry.js} +1 -1
- package/dist/cobalt/p-3011c84f.entry.js +1 -0
- package/dist/cobalt/{p-4d65e713.entry.js → p-30760f77.entry.js} +1 -1
- package/dist/cobalt/{p-6dd220e0.entry.js → p-3b9a8e86.entry.js} +1 -1
- package/dist/cobalt/p-4111fefa.entry.js +1 -0
- package/dist/cobalt/{p-a32b20eb.entry.js → p-44edde81.entry.js} +1 -1
- package/dist/cobalt/{p-292b0389.entry.js → p-45007758.entry.js} +1 -1
- package/dist/cobalt/p-48c23310.entry.js +1 -0
- package/dist/cobalt/p-4b327483.entry.js +1 -0
- package/dist/cobalt/p-4c6caa41.entry.js +1 -0
- package/dist/cobalt/{p-000a15b8.entry.js → p-5534a64f.entry.js} +1 -1
- package/dist/cobalt/p-5573985a.entry.js +1 -0
- package/dist/cobalt/p-57d250ad.entry.js +1 -0
- package/dist/cobalt/{p-826ee074.entry.js → p-59d3e8fc.entry.js} +1 -1
- package/dist/cobalt/{p-4592ca00.entry.js → p-5a32b9a2.entry.js} +1 -1
- package/dist/cobalt/p-5b2aa70e.entry.js +1 -0
- package/dist/cobalt/{p-d29bb0fa.entry.js → p-5d6e02dd.entry.js} +1 -1
- package/dist/cobalt/{p-623cc195.entry.js → p-608d251d.entry.js} +1 -1
- package/dist/cobalt/{p-011dc80b.entry.js → p-66fc1528.entry.js} +1 -1
- package/dist/cobalt/{p-11c5ce78.entry.js → p-67ad9544.entry.js} +1 -1
- package/dist/cobalt/{p-290066ef.entry.js → p-6c157ea2.entry.js} +1 -1
- package/dist/cobalt/{p-a2462d7a.entry.js → p-6d541199.entry.js} +1 -1
- package/dist/cobalt/{p-58d9b650.entry.js → p-7376f4ed.entry.js} +1 -1
- package/dist/cobalt/{p-39a50e7f.entry.js → p-7569375a.entry.js} +1 -1
- package/dist/cobalt/{p-7b5c555c.entry.js → p-763698b3.entry.js} +1 -1
- package/dist/cobalt/{p-f57dffca.entry.js → p-7675cebe.entry.js} +1 -1
- package/dist/cobalt/p-78a20284.entry.js +1 -0
- package/dist/cobalt/{p-aa9400bf.entry.js → p-7f3523ce.entry.js} +1 -1
- package/dist/cobalt/{p-24196410.entry.js → p-86b6fd81.entry.js} +1 -1
- package/dist/cobalt/{p-996f4e38.entry.js → p-889563d5.entry.js} +1 -1
- package/dist/cobalt/{p-eadfd661.entry.js → p-8ab5b396.entry.js} +1 -1
- package/dist/cobalt/{p-c91d4fc6.entry.js → p-8b2e4579.entry.js} +1 -1
- package/dist/cobalt/p-8cd3acaa.entry.js +1 -0
- package/dist/cobalt/{p-23ab0cc5.entry.js → p-8f701eac.entry.js} +1 -1
- package/dist/cobalt/p-90fad0f9.entry.js +1 -0
- package/dist/cobalt/{p-76249983.entry.js → p-97a4fbba.entry.js} +1 -1
- package/dist/cobalt/p-9b46a8fe.entry.js +1 -0
- package/dist/cobalt/{p-ee2023da.entry.js → p-9bee9dc8.entry.js} +1 -1
- package/dist/cobalt/{p-2f9cbbd5.entry.js → p-9cf10331.entry.js} +1 -1
- package/dist/cobalt/p-9dc01092.entry.js +1 -0
- package/dist/cobalt/p-9e406172.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-1861fe41.entry.js → p-a07dedd1.entry.js} +1 -1
- package/dist/cobalt/{p-08e42e00.entry.js → p-a336178b.entry.js} +1 -1
- package/dist/cobalt/{p-f9a7b7c6.entry.js → p-a52ed6ff.entry.js} +1 -1
- package/dist/cobalt/{p-aaca6dab.entry.js → p-a930cdd7.entry.js} +1 -1
- package/dist/cobalt/{p-eb82358d.entry.js → p-b1994bb4.entry.js} +1 -1
- package/dist/cobalt/p-b2b13da8.entry.js +1 -0
- package/dist/cobalt/{p-c2ebf0ec.entry.js → p-b5ec4286.entry.js} +1 -1
- package/dist/cobalt/p-b9401dd7.entry.js +1 -0
- package/dist/cobalt/p-b9dfb333.entry.js +1 -0
- package/dist/cobalt/p-bc3ba0cd.entry.js +1 -0
- package/dist/cobalt/{p-d375014b.entry.js → p-bc4fbfa6.entry.js} +1 -1
- package/dist/cobalt/{p-d0b2c418.entry.js → p-c109a1e1.entry.js} +1 -1
- package/dist/cobalt/{p-ee9a623d.entry.js → p-c1caa112.entry.js} +1 -1
- package/dist/cobalt/p-c9990662.entry.js +1 -0
- package/dist/cobalt/p-cc4b51fa.entry.js +1 -0
- package/dist/cobalt/p-cc5989e9.entry.js +1 -0
- package/dist/cobalt/{p-e4264532.entry.js → p-ce2b2048.entry.js} +1 -1
- package/dist/cobalt/p-d1c378ff.entry.js +1 -0
- package/dist/cobalt/p-d1e83525.entry.js +1 -0
- package/dist/cobalt/{p-59963937.entry.js → p-d1f47915.entry.js} +1 -1
- package/dist/cobalt/{p-28764b8e.entry.js → p-d4979025.entry.js} +1 -1
- package/dist/cobalt/p-d6e7c258.entry.js +1 -0
- package/dist/cobalt/p-d75d2f3d.entry.js +1 -0
- package/dist/cobalt/p-db42c4ab.entry.js +1 -0
- package/dist/cobalt/{p-44c4e4a3.entry.js → p-e4ff2fcb.entry.js} +1 -1
- package/dist/cobalt/p-e6116149.entry.js +1 -0
- package/dist/cobalt/{p-0c004735.entry.js → p-e99ddf9c.entry.js} +1 -1
- package/dist/cobalt/{p-1cc818ca.entry.js → p-ea24eea8.entry.js} +1 -1
- package/dist/cobalt/{p-07416e31.entry.js → p-ea564148.entry.js} +1 -1
- package/dist/cobalt/{p-8471abe2.entry.js → p-ec7a6bf2.entry.js} +1 -1
- package/dist/cobalt/{p-fb2d1144.entry.js → p-ee42dca6.entry.js} +1 -1
- package/dist/cobalt/{p-49834b8e.entry.js → p-ee88ec40.entry.js} +1 -1
- package/dist/cobalt/p-eeb114da.entry.js +1 -0
- package/dist/cobalt/{p-f6691108.entry.js → p-f0898e21.entry.js} +1 -1
- package/dist/cobalt/p-f246946a.entry.js +1 -0
- package/dist/cobalt/{p-b90d41e4.entry.js → p-f5934cd9.entry.js} +1 -1
- package/dist/cobalt/p-f5e1873d.entry.js +1 -0
- package/dist/cobalt/p-f60bd4d6.entry.js +1 -0
- package/dist/cobalt/p-f813569c.entry.js +1 -0
- package/dist/cobalt/{p-f7eb1a40.entry.js → p-f8c7941f.entry.js} +1 -1
- package/dist/cobalt/{p-44ea675f.entry.js → p-f8d3c71e.entry.js} +1 -1
- package/dist/cobalt/{p-91e73a92.entry.js → p-ffbe955a.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 +2 -2
- package/dist/collection/components/co-action-bar/co-action-bar.js +2 -2
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-audio-player/co-audio-player.js +3 -3
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +1 -1
- package/dist/collection/components/co-avatar/co-avatar.css +11 -2
- package/dist/collection/components/co-avatar/co-avatar.js +7 -4
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +1 -1
- package/dist/collection/components/co-badge/co-badge.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +4 -4
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +1 -1
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +2 -2
- package/dist/collection/components/co-button/co-button.css +73 -6
- package/dist/collection/components/co-button/co-button.js +33 -11
- package/dist/collection/components/co-button-group/co-button-group.js +2 -2
- package/dist/collection/components/co-calendar/calendarMarks.js +40 -0
- package/dist/collection/components/co-calendar/co-calendar.css +11 -1
- package/dist/collection/components/co-calendar/co-calendar.js +82 -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 +2 -2
- package/dist/collection/components/co-card/co-card.js +2 -2
- package/dist/collection/components/co-carousel/co-carousel.js +2 -2
- 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 +31 -3
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +1 -1
- package/dist/collection/components/co-chip/co-chip.js +2 -2
- package/dist/collection/components/co-color-area/co-color-area.css +83 -0
- package/dist/collection/components/co-color-area/co-color-area.js +341 -0
- package/dist/collection/components/co-color-picker/co-color-picker.js +2 -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 +353 -0
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.js +4 -4
- package/dist/collection/components/co-command-search/co-command-search.js +5 -5
- package/dist/collection/components/co-data-table/co-data-table.js +3 -3
- 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.js +4 -4
- package/dist/collection/components/co-date-range/co-date-range.js +1 -1
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +2 -2
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +3 -3
- 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 +1542 -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-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.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.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.js +6 -6
- 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.css +138 -0
- package/dist/collection/components/co-gradient-bar/co-gradient-bar.js +407 -0
- 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 +95 -19
- package/dist/collection/components/co-icon-button/co-icon-button.js +120 -10
- package/dist/collection/components/co-input/co-input.css +122 -0
- package/dist/collection/components/co-input/co-input.js +37 -11
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-kbd/co-kbd.css +99 -0
- package/dist/collection/components/co-kbd/co-kbd.js +291 -0
- package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
- package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
- package/dist/collection/components/co-list-item/co-list-item.js +4 -4
- package/dist/collection/components/co-media-thumb/co-media-thumb.js +2 -2
- package/dist/collection/components/co-menu/co-menu.css +60 -0
- package/dist/collection/components/co-menu/co-menu.js +143 -3
- package/dist/collection/components/co-menu-divider/co-menu-divider.css +17 -0
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-menu-item/co-menu-item.css +42 -6
- package/dist/collection/components/co-menu-item/co-menu-item.js +58 -4
- package/dist/collection/components/co-modal/co-modal.css +212 -1
- package/dist/collection/components/co-modal/co-modal.js +339 -9
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.js +3 -3
- package/dist/collection/components/co-option-list/co-option-list.css +64 -21
- package/dist/collection/components/co-option-list/co-option-list.js +6 -2
- package/dist/collection/components/co-overlay/co-overlay.js +7 -3
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
- package/dist/collection/components/co-popover/co-popover.css +15 -2
- package/dist/collection/components/co-popover/co-popover.js +130 -5
- 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.js +4 -4
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.js +5 -5
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +23 -90
- 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 +123 -18
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +8 -1
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +3 -3
- package/dist/collection/components/co-select/co-select.css +194 -10
- package/dist/collection/components/co-select/co-select.js +163 -32
- package/dist/collection/components/co-select/virtualRows.js +57 -0
- 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 +10 -0
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +19 -4
- package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
- package/dist/collection/components/co-slider/co-slider.css +148 -5
- package/dist/collection/components/co-slider/co-slider.js +240 -21
- package/dist/collection/components/co-swatch-grid/co-swatch-grid.css +56 -0
- package/dist/collection/components/co-swatch-grid/co-swatch-grid.js +292 -0
- package/dist/collection/components/co-switch/co-switch.js +3 -3
- package/dist/collection/components/co-tab/co-tab.css +60 -0
- package/dist/collection/components/co-tab/co-tab.js +36 -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 +124 -2
- package/dist/collection/components/co-tab-group/revealTab.js +26 -0
- package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
- 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 +162 -0
- package/dist/collection/components/co-time-field/co-time-field.js +1 -1
- package/dist/collection/components/co-toast/co-toast.js +4 -4
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +101 -0
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +80 -8
- 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 +28 -7
- package/dist/collection/components/co-tooltip/co-tooltip.css +36 -0
- package/dist/collection/components/co-tooltip/co-tooltip.js +51 -3
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +3 -3
- package/dist/collection/components/co-tree-item/co-tree-item.css +226 -0
- package/dist/collection/components/co-tree-item/co-tree-item.js +353 -0
- package/dist/collection/components/co-tree-item/treeItemI18n.js +16 -0
- package/dist/collection/components/co-video/co-video.js +2 -2
- 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-B1JT7us1.js +1 -0
- package/dist/components/{p-Nt4JJxbL.js → p-B20o5exO.js} +1 -1
- package/dist/components/{p-DNJAIVfI.js → p-B3kKOgsA.js} +1 -1
- package/dist/components/{p-P4HlMBlL.js → p-BIDSDP05.js} +1 -1
- package/dist/components/p-BOqtnWTJ.js +1 -0
- package/dist/components/p-BQltjDw5.js +1 -0
- package/dist/components/p-BR0LYW9v.js +1 -0
- package/dist/components/{p-BRbgGqLw.js → p-BVGGRfNG.js} +1 -1
- package/dist/components/p-BZDl9aFl.js +1 -0
- package/dist/components/p-BcXdId8y.js +1 -0
- package/dist/components/p-BmdKHBZP.js +1 -0
- package/dist/components/{p-NNxjElcX.js → p-BraiMwgs.js} +1 -1
- package/dist/components/p-BtliEQAT.js +1 -0
- package/dist/components/p-Bymi-A7C.js +1 -0
- package/dist/components/p-C-f8wTqe.js +1 -0
- package/dist/components/{p-BhCVadcA.js → p-C1jZYtUS.js} +1 -1
- package/dist/components/{p-CT2enQ6h.js → p-C3G8oPgU.js} +1 -1
- package/dist/components/{p-B56LX2SH.js → p-CGH3E8uK.js} +1 -1
- package/dist/components/p-COJdaKBU.js +1 -0
- package/dist/components/{p-BAYo-RBt.js → p-CRxTFT_z.js} +1 -1
- package/dist/components/{p-Du_CgT5E.js → p-CfJgypOl.js} +1 -1
- package/dist/components/{p-uxdXViMV.js → p-ChwSnCFf.js} +1 -1
- package/dist/components/{p-Dc_Kbari.js → p-CpGEV0iM.js} +1 -1
- package/dist/components/{p-DvR45CLa.js → p-D9or2g4j.js} +1 -1
- package/dist/components/{p-e5KibEs8.js → p-DJ468fPu.js} +1 -1
- package/dist/components/{p-DFlJMEJ-.js → p-DKXCr-hE.js} +1 -1
- package/dist/components/p-DU-KOQ8L.js +1 -0
- package/dist/components/p-DXLeDZvr.js +1 -0
- package/dist/components/{p-BGDqldEg.js → p-DfcPGitr.js} +1 -1
- package/dist/components/p-Dg-Ti_Bf.js +1 -0
- package/dist/components/p-Dh_eRYKu.js +1 -0
- package/dist/components/p-Dp650Gpp.js +1 -0
- package/dist/components/p-FA1kBmZ-.js +1 -0
- package/dist/components/p-RVQJEYxa.js +1 -0
- package/dist/components/p-d4rf3H8p.js +1 -0
- package/dist/components/{p-Dxa7c4Ap.js → p-dnaee7fS.js} +1 -1
- package/dist/components/p-f2xwcrXa.js +1 -0
- 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 +2 -2
- package/dist/esm/co-avatar-group.entry.js +1 -1
- 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 +3 -3
- package/dist/esm/co-button.entry.js +9 -7
- package/dist/esm/co-calendar-month_2.entry.js +4 -4
- package/dist/esm/co-calendar_3.entry.js +72 -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 +3 -3
- package/dist/esm/co-checkbox-group.entry.js +1 -1
- package/dist/esm/co-checkbox.entry.js +13 -5
- package/dist/esm/co-chip_2.entry.js +9 -6
- 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 +3 -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 +2 -2
- package/dist/esm/co-date-range-picker.entry.js +2 -2
- package/dist/esm/co-date-range.entry.js +2 -2
- package/dist/esm/co-date-time-picker.entry.js +4 -4
- package/dist/esm/co-document-editor.entry.js +1159 -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 +3 -3
- package/dist/esm/co-event-popover.entry.js +3 -3
- package/dist/esm/co-fab.entry.js +3 -3
- package/dist/esm/co-file-field.entry.js +8 -8
- package/dist/esm/co-file-type-tile.entry.js +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 +49 -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 +5 -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 +5 -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 +67 -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 +4 -4
- package/dist/esm/co-ref-field.entry.js +5 -5
- package/dist/esm/co-rich-text-editor.entry.js +26 -92
- package/dist/esm/co-rich-text-toolbar.entry.js +79 -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 +158 -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 +203 -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 +8 -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 +2 -2
- package/dist/esm/co-toast.entry.js +3 -3
- package/dist/esm/co-toggle-button-group.entry.js +26 -5
- package/dist/esm/co-toggle-button.entry.js +67 -6
- package/dist/esm/co-transfer-list.entry.js +3 -3
- package/dist/esm/co-tree-item.entry.js +108 -0
- package/dist/esm/co-video.entry.js +3 -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-avatar/co-avatar.d.ts +4 -2
- package/dist/types/components/co-button/co-button.d.ts +6 -4
- package/dist/types/components/co-calendar/calendarMarks.d.ts +15 -0
- package/dist/types/components/co-calendar/co-calendar.d.ts +16 -0
- package/dist/types/components/co-checkbox/co-checkbox.d.ts +7 -0
- package/dist/types/components/co-color-area/co-color-area.d.ts +64 -0
- package/dist/types/components/co-color-slider/co-color-slider.d.ts +61 -0
- package/dist/types/components/co-date-time-picker/co-date-time-picker.d.ts +1 -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 +276 -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-gradient-bar/co-gradient-bar.d.ts +72 -0
- package/dist/types/components/co-icon-button/co-icon-button.d.ts +34 -2
- package/dist/types/components/co-input/co-input.d.ts +14 -5
- package/dist/types/components/co-kbd/co-kbd.d.ts +43 -0
- package/dist/types/components/co-menu/co-menu.d.ts +40 -1
- package/dist/types/components/co-menu-item/co-menu-item.d.ts +17 -0
- package/dist/types/components/co-modal/co-modal.d.ts +111 -2
- package/dist/types/components/co-option-list/co-option-list.d.ts +1 -0
- package/dist/types/components/co-option-list/optionListLogic.d.ts +3 -0
- package/dist/types/components/co-popover/co-popover.d.ts +36 -0
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +2 -5
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +17 -2
- package/dist/types/components/co-select/co-select.d.ts +47 -5
- package/dist/types/components/co-select/virtualRows.d.ts +44 -0
- package/dist/types/components/co-slider/co-slider.d.ts +143 -1
- package/dist/types/components/co-swatch-grid/co-swatch-grid.d.ts +37 -0
- package/dist/types/components/co-tab/co-tab.d.ts +12 -2
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +37 -0
- package/dist/types/components/co-tab-group/revealTab.d.ts +29 -0
- package/dist/types/components/co-tile/co-tile.d.ts +40 -0
- package/dist/types/components/co-toggle-button/co-toggle-button.d.ts +37 -2
- package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +20 -2
- package/dist/types/components/co-tooltip/co-tooltip.d.ts +12 -0
- package/dist/types/components/co-tree-item/co-tree-item.d.ts +73 -0
- package/dist/types/components/co-tree-item/treeItemI18n.d.ts +6 -0
- package/dist/types/components.d.ts +1744 -88
- 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-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-f4e1c3c3.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-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
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @slot - Glifo propio (p.ej. un `<svg>` inline de 16px) que ocupa el lugar del
|
|
4
|
+
* `co-icon` cuando NO se pasa `icon`. Va dentro del `<button>`, así que
|
|
5
|
+
* hereda `color`/`currentColor`, la opacidad de hover/disabled, el
|
|
6
|
+
* `:active` y el color de `selected` sin trabajo extra; mide lo mismo
|
|
7
|
+
* que mediría el `co-icon` de esa talla (o `iconSize`) vía
|
|
8
|
+
* `--co-icon-button-glyph-size`. Con `icon` el slot no se monta (DOM
|
|
9
|
+
* idéntico al de siempre). El glifo proyectado no aporta nombre
|
|
10
|
+
* accesible: pasar `label` siempre.
|
|
11
|
+
*/
|
|
2
12
|
export class CoIconButton {
|
|
3
13
|
constructor() {
|
|
4
14
|
/**
|
|
5
15
|
* filled = dark background (negro), outlined = light background (blanco + border),
|
|
6
|
-
* ghost = transparent background, no border, tinted hover (negro-8 on light / blanco-16 on dark)
|
|
16
|
+
* ghost = transparent background, no border, tinted hover (negro-8 on light / blanco-16 on dark),
|
|
17
|
+
* soft = fondo gris sólido (--co-color-gray-100), sin borde visible, sin frost.
|
|
7
18
|
* Matches Figma: Secundario → filled, Primario → outlined
|
|
8
19
|
*/
|
|
9
20
|
this.variant = 'filled';
|
|
@@ -30,6 +41,27 @@ export class CoIconButton {
|
|
|
30
41
|
this.toggled = false;
|
|
31
42
|
/** Icon weight */
|
|
32
43
|
this.iconWeight = 'regular';
|
|
44
|
+
/**
|
|
45
|
+
* Estado de selección (transversal, gana sobre cualquier `variant`): fondo/color
|
|
46
|
+
* de acento. Reflejado para que `:host([selected])` sea estilable desde afuera y
|
|
47
|
+
* marca `aria-pressed="true"` en el `<button>` (ausente cuando no está selected,
|
|
48
|
+
* en vez de "false", para no alterar el árbol de accesibilidad por defecto).
|
|
49
|
+
*/
|
|
50
|
+
this.selected = false;
|
|
51
|
+
/**
|
|
52
|
+
* Ocupa el espacio disponible del contenedor flex (`flex: 1 1 0; min-width: 0`) en
|
|
53
|
+
* vez del ancho fijo por `size` — para filas de N botones repartidos en el 100%.
|
|
54
|
+
*/
|
|
55
|
+
this.fluid = false;
|
|
56
|
+
/**
|
|
57
|
+
* Agrega un `caret-down` de 8px a la derecha del icono principal (botones-disclosure).
|
|
58
|
+
* Ensancha la caja +8px (el alto no cambia) para que el caret no le robe espacio
|
|
59
|
+
* al icono — fix round 1: la primera versión usaba `padding-right`, que con
|
|
60
|
+
* `box-sizing: border-box` y ancho fijo por talla ENCOGE el área de contenido en
|
|
61
|
+
* vez de agrandar la caja (overflow real en xs/xxs). Sin `caret`, el DOM/CSS
|
|
62
|
+
* quedan idénticos al comportamiento anterior.
|
|
63
|
+
*/
|
|
64
|
+
this.caret = false;
|
|
33
65
|
}
|
|
34
66
|
render() {
|
|
35
67
|
var _a, _b;
|
|
@@ -37,23 +69,41 @@ export class CoIconButton {
|
|
|
37
69
|
xl: 32, lg: 28, md: 24, sm: 20, xs: 16, xxs: 16,
|
|
38
70
|
};
|
|
39
71
|
const resolvedIconSize = (_a = this.iconSize) !== null && _a !== void 0 ? _a : ((_b = iconSizeMap[this.size]) !== null && _b !== void 0 ? _b : 24);
|
|
72
|
+
// --co-icon-button-radius unifica el radio: mismo fallback que ya tenía el
|
|
73
|
+
// boxStyle inline, pero ahora personalizable también en el path de `boxSize`.
|
|
74
|
+
const radiusFallback = this.shape === 'square' ? 'var(--co-border-radius-xs, 8px)' : 'var(--co-border-radius-full)';
|
|
75
|
+
// Con `caret`, el ancho crece +8px (el alto NO — el caret es más angosto que
|
|
76
|
+
// alto) para que el caret quepa sin robarle espacio al contenido existente
|
|
77
|
+
// (con box-sizing:border-box, un padding-right no agranda la caja, la
|
|
78
|
+
// encoge — de ahí el bug de overflow en xs/xxs que esto corrige). Espejo del
|
|
79
|
+
// fix por talla en el .css (`.co-icon-button--caret.co-icon-button--<size>`).
|
|
40
80
|
const boxStyle = this.boxSize != null
|
|
41
81
|
? {
|
|
42
|
-
width: `${this.boxSize}px`,
|
|
82
|
+
width: `${this.caret ? this.boxSize + 8 : this.boxSize}px`,
|
|
43
83
|
height: `${this.boxSize}px`,
|
|
44
|
-
borderRadius:
|
|
45
|
-
? 'var(--co-border-radius-xs, 8px)'
|
|
46
|
-
: 'var(--co-border-radius-full)',
|
|
84
|
+
borderRadius: `var(--co-icon-button-radius, ${radiusFallback})`,
|
|
47
85
|
}
|
|
48
86
|
: undefined;
|
|
49
|
-
|
|
87
|
+
// Modo slot (sin `icon`): el glifo proyectado debe medir lo mismo que
|
|
88
|
+
// mediría el co-icon de esta talla (o `iconSize`). Se publica como custom
|
|
89
|
+
// property inline SOLO en este modo, así el botón con `icon` no gana un
|
|
90
|
+
// atributo `style` que antes no tenía (DOM byte-idéntico). El CSS la
|
|
91
|
+
// consume en `::slotted(*)`.
|
|
92
|
+
const usesSlot = !this.icon;
|
|
93
|
+
const style = usesSlot
|
|
94
|
+
? Object.assign(Object.assign({}, (boxStyle !== null && boxStyle !== void 0 ? boxStyle : {})), { '--co-icon-button-glyph-size': `${resolvedIconSize}px` }) : boxStyle;
|
|
95
|
+
return (h("button", { key: '4ae94400d9f54425b1aa844a651fbe441f545645', class: {
|
|
50
96
|
'co-icon-button': true,
|
|
51
97
|
[`co-icon-button--${this.variant}`]: true,
|
|
52
98
|
[`co-icon-button--${this.shape}`]: true,
|
|
53
99
|
[`co-icon-button--${this.size}`]: true,
|
|
54
100
|
'co-icon-button--dark': this.surface === 'dark',
|
|
101
|
+
'co-icon-button--selected': this.selected,
|
|
102
|
+
'co-icon-button--caret': this.caret,
|
|
55
103
|
'co-icon-button--disabled': this.disabled,
|
|
56
|
-
}, style:
|
|
104
|
+
}, style: style, disabled: this.disabled, "aria-label": this.label || (this.toggled && this.toggleIcon ? this.toggleIcon : this.icon), "aria-pressed": this.selected ? 'true' : undefined, part: "button" }, this.icon && this.toggleIcon ? (h("span", { class: { 'co-icon-button__swap': true, 'co-icon-button__swap--toggled': this.toggled }, "aria-hidden": "true" }, h("co-icon", { name: this.icon, weight: this.iconWeight, size: resolvedIconSize }), h("co-icon", { name: this.toggleIcon, weight: this.iconWeight, size: resolvedIconSize }))) : this.icon ? (h("co-icon", { name: this.icon, weight: this.iconWeight, size: resolvedIconSize })) : (
|
|
105
|
+
// Sin `icon`: el consumidor proyecta su propio glifo (ver @slot).
|
|
106
|
+
h("slot", null)), this.caret && h("co-icon", { key: 'f8a026ec97d9d37f9f62c81a3ae484d2a8b09665', class: "co-icon-button__caret", name: "caret-down", size: 8 })));
|
|
57
107
|
}
|
|
58
108
|
static get is() { return "co-icon-button"; }
|
|
59
109
|
static get encapsulation() { return "shadow"; }
|
|
@@ -73,15 +123,15 @@ export class CoIconButton {
|
|
|
73
123
|
"type": "string",
|
|
74
124
|
"mutable": false,
|
|
75
125
|
"complexType": {
|
|
76
|
-
"original": "'filled' | 'outlined' | 'ghost'",
|
|
77
|
-
"resolved": "\"filled\" | \"ghost\" | \"outlined\"",
|
|
126
|
+
"original": "'filled' | 'outlined' | 'ghost' | 'soft'",
|
|
127
|
+
"resolved": "\"filled\" | \"ghost\" | \"outlined\" | \"soft\"",
|
|
78
128
|
"references": {}
|
|
79
129
|
},
|
|
80
130
|
"required": false,
|
|
81
131
|
"optional": false,
|
|
82
132
|
"docs": {
|
|
83
133
|
"tags": [],
|
|
84
|
-
"text": "filled = dark background (negro), outlined = light background (blanco + border),\nghost = transparent background, no border, tinted hover (negro-8 on light / blanco-16 on dark).\nMatches Figma: Secundario \u2192 filled, Primario \u2192 outlined"
|
|
134
|
+
"text": "filled = dark background (negro), outlined = light background (blanco + border),\nghost = transparent background, no border, tinted hover (negro-8 on light / blanco-16 on dark),\nsoft = fondo gris s\u00F3lido (--co-color-gray-100), sin borde visible, sin frost.\nMatches Figma: Secundario \u2192 filled, Primario \u2192 outlined"
|
|
85
135
|
},
|
|
86
136
|
"getter": false,
|
|
87
137
|
"setter": false,
|
|
@@ -304,6 +354,66 @@ export class CoIconButton {
|
|
|
304
354
|
"reflect": false,
|
|
305
355
|
"attribute": "icon-weight",
|
|
306
356
|
"defaultValue": "'regular'"
|
|
357
|
+
},
|
|
358
|
+
"selected": {
|
|
359
|
+
"type": "boolean",
|
|
360
|
+
"mutable": false,
|
|
361
|
+
"complexType": {
|
|
362
|
+
"original": "boolean",
|
|
363
|
+
"resolved": "boolean",
|
|
364
|
+
"references": {}
|
|
365
|
+
},
|
|
366
|
+
"required": false,
|
|
367
|
+
"optional": false,
|
|
368
|
+
"docs": {
|
|
369
|
+
"tags": [],
|
|
370
|
+
"text": "Estado de selecci\u00F3n (transversal, gana sobre cualquier `variant`): fondo/color\nde acento. Reflejado para que `:host([selected])` sea estilable desde afuera y\nmarca `aria-pressed=\"true\"` en el `<button>` (ausente cuando no est\u00E1 selected,\nen vez de \"false\", para no alterar el \u00E1rbol de accesibilidad por defecto)."
|
|
371
|
+
},
|
|
372
|
+
"getter": false,
|
|
373
|
+
"setter": false,
|
|
374
|
+
"reflect": true,
|
|
375
|
+
"attribute": "selected",
|
|
376
|
+
"defaultValue": "false"
|
|
377
|
+
},
|
|
378
|
+
"fluid": {
|
|
379
|
+
"type": "boolean",
|
|
380
|
+
"mutable": false,
|
|
381
|
+
"complexType": {
|
|
382
|
+
"original": "boolean",
|
|
383
|
+
"resolved": "boolean",
|
|
384
|
+
"references": {}
|
|
385
|
+
},
|
|
386
|
+
"required": false,
|
|
387
|
+
"optional": false,
|
|
388
|
+
"docs": {
|
|
389
|
+
"tags": [],
|
|
390
|
+
"text": "Ocupa el espacio disponible del contenedor flex (`flex: 1 1 0; min-width: 0`) en\nvez del ancho fijo por `size` \u2014 para filas de N botones repartidos en el 100%."
|
|
391
|
+
},
|
|
392
|
+
"getter": false,
|
|
393
|
+
"setter": false,
|
|
394
|
+
"reflect": true,
|
|
395
|
+
"attribute": "fluid",
|
|
396
|
+
"defaultValue": "false"
|
|
397
|
+
},
|
|
398
|
+
"caret": {
|
|
399
|
+
"type": "boolean",
|
|
400
|
+
"mutable": false,
|
|
401
|
+
"complexType": {
|
|
402
|
+
"original": "boolean",
|
|
403
|
+
"resolved": "boolean",
|
|
404
|
+
"references": {}
|
|
405
|
+
},
|
|
406
|
+
"required": false,
|
|
407
|
+
"optional": false,
|
|
408
|
+
"docs": {
|
|
409
|
+
"tags": [],
|
|
410
|
+
"text": "Agrega un `caret-down` de 8px a la derecha del icono principal (botones-disclosure).\nEnsancha la caja +8px (el alto no cambia) para que el caret no le robe espacio\nal icono \u2014 fix round 1: la primera versi\u00F3n usaba `padding-right`, que con\n`box-sizing: border-box` y ancho fijo por talla ENCOGE el \u00E1rea de contenido en\nvez de agrandar la caja (overflow real en xs/xxs). Sin `caret`, el DOM/CSS\nquedan id\u00E9nticos al comportamiento anterior."
|
|
411
|
+
},
|
|
412
|
+
"getter": false,
|
|
413
|
+
"setter": false,
|
|
414
|
+
"reflect": false,
|
|
415
|
+
"attribute": "caret",
|
|
416
|
+
"defaultValue": "false"
|
|
307
417
|
}
|
|
308
418
|
};
|
|
309
419
|
}
|
|
@@ -110,6 +110,27 @@
|
|
|
110
110
|
border-color: transparent;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
/* ---- Variant: soft (fondo --co-semantic-surface-control sólido, borde transparente) ----
|
|
114
|
+
Mismo ancho de borde que el default (1px) — solo cambia el color a
|
|
115
|
+
transparente, así el tamaño de la caja no se mueve (igual criterio
|
|
116
|
+
que la variante flat de arriba). Placed here (fix round 1, antes vivía
|
|
117
|
+
al final del archivo): igual que flat, tiene que ir ANTES de la
|
|
118
|
+
sección States/Validation de abajo para que el empate de
|
|
119
|
+
especificidad (0,2,0) lo gane el selector de estado (focused/error/
|
|
120
|
+
success/warning/info) por orden de declaración — si iba después,
|
|
121
|
+
`border-color: transparent; box-shadow: none;` tapaba el anillo de
|
|
122
|
+
foco y el borde de status en un input soft. El fondo/disabled de soft
|
|
123
|
+
sigue con selectores de mayor especificidad (0,3,0) más abajo, esos sí
|
|
124
|
+
son independientes del orden. */
|
|
125
|
+
.co-input--soft .co-input__field {
|
|
126
|
+
background: var(--co-semantic-surface-control, #f6f6f6);
|
|
127
|
+
border-color: transparent;
|
|
128
|
+
box-shadow: none;
|
|
129
|
+
-webkit-backdrop-filter: none;
|
|
130
|
+
backdrop-filter: none;
|
|
131
|
+
color: var(--co-semantic-text-default);
|
|
132
|
+
}
|
|
133
|
+
|
|
113
134
|
/* ---- Size variants ---- */
|
|
114
135
|
.co-input--s .co-input__field {
|
|
115
136
|
min-height: 28px;
|
|
@@ -520,3 +541,104 @@
|
|
|
520
541
|
border-color: transparent;
|
|
521
542
|
box-shadow: none;
|
|
522
543
|
}
|
|
544
|
+
|
|
545
|
+
/* ============================================================
|
|
546
|
+
Task C4 — size xs, variant soft, slot prefix, icon-size,
|
|
547
|
+
--co-input-suffix-color. Reglas nuevas al final del archivo (mismo
|
|
548
|
+
criterio que la sección Fill de arriba): así ganan el empate de
|
|
549
|
+
especificidad (0,2,0) contra las reglas de tamaño/estado existentes
|
|
550
|
+
sin tener que tocarlas.
|
|
551
|
+
Excepción: el resting-state de `.co-input--soft .co-input__field`
|
|
552
|
+
(fondo/borde/sombra) NO vive acá — se movió (fix round 1) junto a
|
|
553
|
+
`.co-input--flat`, antes de la sección States/Validation, por la
|
|
554
|
+
misma razón documentada ahí: necesita PERDER el empate de
|
|
555
|
+
especificidad contra focused/error/success/warning/info, no ganarlo.
|
|
556
|
+
Lo que sí sigue acá son los selectores de mayor especificidad
|
|
557
|
+
(disabled+soft), que son independientes del orden.
|
|
558
|
+
============================================================ */
|
|
559
|
+
|
|
560
|
+
/* ---- Size variant: xs (24px) ---- */
|
|
561
|
+
.co-input--xs .co-input__field {
|
|
562
|
+
min-height: 24px;
|
|
563
|
+
/* m-9: el brief de la talla decía 6px (`--co-spacing-sm`) y el mock del
|
|
564
|
+
panel de Multimedia dibuja el placeholder del campo URL arrancando en x≈11.
|
|
565
|
+
La escala de spacing salta de 8 (`sm2`) a 12 (`md`), sin 10 ni 11: el
|
|
566
|
+
escalón que queda al lado es `md`. `xs` todavía no salió en ninguna
|
|
567
|
+
versión publicada, así que el cambio no le mueve la caja a ningún
|
|
568
|
+
consumidor. Ojo: con `variant="soft"` el borde de 1px es transparente pero
|
|
569
|
+
sigue contando, así que ahí el texto arranca a 13. */
|
|
570
|
+
padding: 0 var(--co-spacing-md);
|
|
571
|
+
font-size: var(--co-font-size-12);
|
|
572
|
+
border-radius: var(--co-border-radius-xxs);
|
|
573
|
+
/* Gap entre iconLeft/iconRight y el resto del campo en xs (brief:
|
|
574
|
+
"gap interno ... 6 con icono"). El gap prefijo→texto (4px) vive en
|
|
575
|
+
.co-input__input-wrapper, más abajo. */
|
|
576
|
+
gap: var(--co-spacing-sm);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/* Disabled + soft: el fondo surface-control se mantiene (no pasa a
|
|
580
|
+
surface-disabled, a diferencia del default). Selector de mayor
|
|
581
|
+
especificidad (0,3,0) que gana siempre a `.co-input--disabled
|
|
582
|
+
.co-input__field` (0,2,0), sin depender del orden en el archivo. */
|
|
583
|
+
.co-input--soft.co-input--disabled .co-input__field {
|
|
584
|
+
background: var(--co-semantic-surface-control, #f6f6f6);
|
|
585
|
+
border-color: transparent;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
/* En vez de atenuar el fondo, se atenúa el CONTENIDO al 35%: íconos,
|
|
589
|
+
el input-wrapper (input + prefix), el botón clear y el ícono de
|
|
590
|
+
status. `::slotted(*)` cubre además lo que venga por los slots
|
|
591
|
+
(chips/suffix/default/action) — apunta al nodo real proyectado, no
|
|
592
|
+
al <slot> (que es display:contents y no tiene caja propia sobre la
|
|
593
|
+
que aplicar opacity).
|
|
594
|
+
Fix round 1: `::slotted(*)` excluye `[slot="prefix"]` — el prefix
|
|
595
|
+
vive DENTRO de `.co-input__input-wrapper` (co-input.tsx), que ya se
|
|
596
|
+
atenúa al 35% acá abajo; opacity no es heredable como color, pero SÍ
|
|
597
|
+
afecta visualmente a todo el subárbol del elemento (crea su propio
|
|
598
|
+
stacking context), así que el prefix ya queda atenuado por el
|
|
599
|
+
wrapper. Sin la exclusión, `::slotted([slot="prefix"])` sumaba OTRO
|
|
600
|
+
35% encima → 0.35 × 0.35 ≈ 0.12 efectivo (doble atenuado). */
|
|
601
|
+
.co-input--soft.co-input--disabled .co-input__field > .co-input__icon,
|
|
602
|
+
.co-input--soft.co-input--disabled .co-input__field > .co-input__input-wrapper,
|
|
603
|
+
.co-input--soft.co-input--disabled .co-input__field > .co-input__clear,
|
|
604
|
+
.co-input--soft.co-input--disabled .co-input__field > .co-input__status-icon,
|
|
605
|
+
.co-input--soft.co-input--disabled .co-input__field ::slotted(:not([slot="prefix"])) {
|
|
606
|
+
opacity: 0.35;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/* ---- Slot: prefix (contenido pegado al texto, dentro del wrapper) ----
|
|
610
|
+
Gap por defecto 4px entre el prefijo y el input — mismo valor que
|
|
611
|
+
pide el brief para xs; a otros tamaños es un default razonable (el
|
|
612
|
+
wrapper no tenía gap propio, tampoco se notaba con un solo hijo).
|
|
613
|
+
<slot> es display:contents por estilo UA por defecto, así que un
|
|
614
|
+
prefix sin contenido asignado no agrega caja ni gap: sin cambio
|
|
615
|
+
visual cuando el slot no se usa. */
|
|
616
|
+
.co-input__input-wrapper {
|
|
617
|
+
gap: var(--co-spacing-xs);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.co-input__input-wrapper ::slotted([slot="prefix"]) {
|
|
621
|
+
display: flex;
|
|
622
|
+
align-items: center;
|
|
623
|
+
flex-shrink: 0;
|
|
624
|
+
color: var(--co-semantic-text-muted);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/* xs: el prefijo hereda 12px/400 gray-600 (Figma) */
|
|
628
|
+
.co-input--xs .co-input__input-wrapper ::slotted([slot="prefix"]) {
|
|
629
|
+
font-size: var(--co-font-size-12);
|
|
630
|
+
font-weight: 400;
|
|
631
|
+
color: var(--co-color-gray-600, #585858);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/* ---- --co-input-suffix-color: color configurable del slot suffix ----
|
|
635
|
+
Default `inherit` = mismo comportamiento que ya tenía el slot antes
|
|
636
|
+
de esta variable (heredaba color del contexto, sin regla propia). */
|
|
637
|
+
.co-input__field ::slotted([slot="suffix"]) {
|
|
638
|
+
color: var(--co-input-suffix-color, inherit);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/* xs: el sufijo hereda 12px */
|
|
642
|
+
.co-input--xs .co-input__field ::slotted([slot="suffix"]) {
|
|
643
|
+
font-size: var(--co-font-size-12);
|
|
644
|
+
}
|
|
@@ -5,6 +5,7 @@ import { RequiredMark } from "../../utils/requiredMark";
|
|
|
5
5
|
* Supports vertical and horizontal label layouts, action button, and chips.
|
|
6
6
|
*
|
|
7
7
|
* @slot - Default slot for custom content inside the field
|
|
8
|
+
* @slot prefix - Slot for prefix content (e.g. "$", "https://") rendered right before the native input, inside the input wrapper
|
|
8
9
|
* @slot suffix - Slot for suffix content (e.g. toggle password icon) rendered after the input
|
|
9
10
|
* @slot action - Slot for action button, rendered flush-right inside the field (Botón variant)
|
|
10
11
|
* @slot chips - Slot for chip/tag elements rendered before the input (Chips variant)
|
|
@@ -36,14 +37,18 @@ export class CoInput {
|
|
|
36
37
|
this.autoFocus = false;
|
|
37
38
|
/** Validation status */
|
|
38
39
|
this.status = 'default';
|
|
39
|
-
/** Size variant: s (28px), sm (32px), md (40px, default), lg (48px).
|
|
40
|
+
/** Size variant: xs (24px), s (28px), sm (32px), md (40px, default), lg (48px).
|
|
40
41
|
* In the filled search-pill variant (`fill`) this drives the pill height
|
|
41
42
|
* instead (s ≈ 38px). */
|
|
42
43
|
this.size = 'md';
|
|
43
44
|
/** Visual style. `flat` strips the field's border and background so it
|
|
44
45
|
* reads as plain content instead of a boxed input — padding, label, focus
|
|
45
|
-
* ring, disabled and status states are unaffected. `
|
|
46
|
-
*
|
|
46
|
+
* ring, disabled and status states are unaffected. `soft` renders a solid
|
|
47
|
+
* gray-100 background with a transparent 1px border (same width as
|
|
48
|
+
* default, so nothing shifts) and no backdrop-filter — the disabled state
|
|
49
|
+
* keeps that gray-100 background and dims the field's content instead.
|
|
50
|
+
* `default` (the standard bordered box) renders identically to before
|
|
51
|
+
* this prop existed. */
|
|
47
52
|
this.variant = 'default';
|
|
48
53
|
/** Filled search-pill variant. When true the field renders as a minimal gray
|
|
49
54
|
* pill (background gray-100, no border/box-shadow, 10px radius) with a search
|
|
@@ -176,6 +181,7 @@ export class CoInput {
|
|
|
176
181
|
}, type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear input", part: "clear" }, h("co-icon", { name: "x", size: 14 })))))));
|
|
177
182
|
}
|
|
178
183
|
render() {
|
|
184
|
+
var _a, _b;
|
|
179
185
|
if (this.fill) {
|
|
180
186
|
return this.renderFill();
|
|
181
187
|
}
|
|
@@ -190,11 +196,12 @@ export class CoInput {
|
|
|
190
196
|
[`co-input--${this.status}`]: this.status !== 'default',
|
|
191
197
|
'co-input--has-action': this.hasAction,
|
|
192
198
|
'co-input--flat': this.variant === 'flat',
|
|
199
|
+
'co-input--soft': this.variant === 'soft',
|
|
193
200
|
'co-input--shake': this.shaking,
|
|
194
|
-
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { class: "co-input__labels" }, this.label && h("label", { class: "co-input__label", part: "label" }, this.label, h(RequiredMark, { required: this.required })), this.secondaryLabel && (h("span", { class: "co-input__secondary-label", part: "secondary-label" }, this.secondaryLabel)))), h("div", { class: "co-input__field-row" }, h("div", { class: "co-input__field", part: "field", onAnimationEnd: this.handleShakeEnd }, this.iconLeft && (h("co-icon", { name: this.iconLeft, size: 16, class: "co-input__icon co-input__icon--left" })), h("slot", { name: "chips" }), h("div", { class: "co-input__input-wrapper" }, h("input", { ref: (el) => (this.inputEl = el), class: "co-input__native", type: this.type, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, autoComplete: this.autocomplete, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, part: "input" })), this.clearable && (h("button", { class: {
|
|
201
|
+
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { class: "co-input__labels" }, this.label && h("label", { class: "co-input__label", part: "label" }, this.label, h(RequiredMark, { required: this.required })), this.secondaryLabel && (h("span", { class: "co-input__secondary-label", part: "secondary-label" }, this.secondaryLabel)))), h("div", { class: "co-input__field-row" }, h("div", { class: "co-input__field", part: "field", onAnimationEnd: this.handleShakeEnd }, this.iconLeft && (h("co-icon", { name: this.iconLeft, size: (_a = this.iconSize) !== null && _a !== void 0 ? _a : 16, class: "co-input__icon co-input__icon--left" })), h("slot", { name: "chips" }), h("div", { class: "co-input__input-wrapper" }, h("slot", { name: "prefix" }), h("input", { ref: (el) => (this.inputEl = el), class: "co-input__native", type: this.type, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, autoComplete: this.autocomplete, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, part: "input" })), this.clearable && (h("button", { class: {
|
|
195
202
|
'co-input__clear': true,
|
|
196
203
|
'co-input__clear--hidden': !showClear,
|
|
197
|
-
}, type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear input", part: "clear" }, h("co-icon", { name: "x-circle", size: 16, weight: "fill" }))), this.iconRight && (h("co-icon", { name: this.iconRight, size: 16, class: "co-input__icon co-input__icon--right" })), this.statusFieldIcon && (h("co-icon", { name: this.statusFieldIcon, size: 16, class: "co-input__status-icon" })), h("slot", { name: "suffix" }), h("slot", null), h("slot", { name: "action" })), this.hasAction && (h("button", { class: "co-input__action", type: "button", onClick: this.handleAction, disabled: this.disabled, part: "action" }, this.actionIcon && (h("co-icon", { name: this.actionIcon, size: 16, class: "co-input__action-icon" })), this.actionLabel && (h("span", { class: "co-input__action-label" }, this.actionLabel))))), this.helperText && (h("div", { class: `co-input__helper co-input__helper--${this.status}`, part: "helper" }, this.helperIcon && (h("co-icon", { name: this.helperIcon, size: 14, class: "co-input__helper-icon" })), h("span", { class: "co-input__helper-text" }, this.helperText)))));
|
|
204
|
+
}, type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear input", part: "clear" }, h("co-icon", { name: "x-circle", size: 16, weight: "fill" }))), this.iconRight && (h("co-icon", { name: this.iconRight, size: (_b = this.iconSize) !== null && _b !== void 0 ? _b : 16, class: "co-input__icon co-input__icon--right" })), this.statusFieldIcon && (h("co-icon", { name: this.statusFieldIcon, size: 16, class: "co-input__status-icon" })), h("slot", { name: "suffix" }), h("slot", null), h("slot", { name: "action" })), this.hasAction && (h("button", { class: "co-input__action", type: "button", onClick: this.handleAction, disabled: this.disabled, part: "action" }, this.actionIcon && (h("co-icon", { name: this.actionIcon, size: 16, class: "co-input__action-icon" })), this.actionLabel && (h("span", { class: "co-input__action-label" }, this.actionLabel))))), this.helperText && (h("div", { class: `co-input__helper co-input__helper--${this.status}`, part: "helper" }, this.helperIcon && (h("co-icon", { name: this.helperIcon, size: 14, class: "co-input__helper-icon" })), h("span", { class: "co-input__helper-text" }, this.helperText)))));
|
|
198
205
|
}
|
|
199
206
|
static get is() { return "co-input"; }
|
|
200
207
|
static get encapsulation() { return "shadow"; }
|
|
@@ -547,15 +554,15 @@ export class CoInput {
|
|
|
547
554
|
"type": "string",
|
|
548
555
|
"mutable": false,
|
|
549
556
|
"complexType": {
|
|
550
|
-
"original": "'s' | 'sm' | 'md' | 'lg'",
|
|
551
|
-
"resolved": "\"lg\" | \"md\" | \"s\" | \"sm\"",
|
|
557
|
+
"original": "'xs' | 's' | 'sm' | 'md' | 'lg'",
|
|
558
|
+
"resolved": "\"lg\" | \"md\" | \"s\" | \"sm\" | \"xs\"",
|
|
552
559
|
"references": {}
|
|
553
560
|
},
|
|
554
561
|
"required": false,
|
|
555
562
|
"optional": false,
|
|
556
563
|
"docs": {
|
|
557
564
|
"tags": [],
|
|
558
|
-
"text": "Size variant: s (28px), sm (32px), md (40px, default), lg (48px).\nIn the filled search-pill variant (`fill`) this drives the pill height\ninstead (s \u2248 38px)."
|
|
565
|
+
"text": "Size variant: xs (24px), s (28px), sm (32px), md (40px, default), lg (48px).\nIn the filled search-pill variant (`fill`) this drives the pill height\ninstead (s \u2248 38px)."
|
|
559
566
|
},
|
|
560
567
|
"getter": false,
|
|
561
568
|
"setter": false,
|
|
@@ -567,15 +574,15 @@ export class CoInput {
|
|
|
567
574
|
"type": "string",
|
|
568
575
|
"mutable": false,
|
|
569
576
|
"complexType": {
|
|
570
|
-
"original": "'default' | 'flat'",
|
|
571
|
-
"resolved": "\"default\" | \"flat\"",
|
|
577
|
+
"original": "'default' | 'flat' | 'soft'",
|
|
578
|
+
"resolved": "\"default\" | \"flat\" | \"soft\"",
|
|
572
579
|
"references": {}
|
|
573
580
|
},
|
|
574
581
|
"required": false,
|
|
575
582
|
"optional": false,
|
|
576
583
|
"docs": {
|
|
577
584
|
"tags": [],
|
|
578
|
-
"text": "Visual style. `flat` strips the field's border and background so it\nreads as plain content instead of a boxed input \u2014 padding, label, focus\nring, disabled and status states are unaffected. `
|
|
585
|
+
"text": "Visual style. `flat` strips the field's border and background so it\nreads as plain content instead of a boxed input \u2014 padding, label, focus\nring, disabled and status states are unaffected. `soft` renders a solid\ngray-100 background with a transparent 1px border (same width as\ndefault, so nothing shifts) and no backdrop-filter \u2014 the disabled state\nkeeps that gray-100 background and dims the field's content instead.\n`default` (the standard bordered box) renders identically to before\nthis prop existed."
|
|
579
586
|
},
|
|
580
587
|
"getter": false,
|
|
581
588
|
"setter": false,
|
|
@@ -583,6 +590,25 @@ export class CoInput {
|
|
|
583
590
|
"attribute": "variant",
|
|
584
591
|
"defaultValue": "'default'"
|
|
585
592
|
},
|
|
593
|
+
"iconSize": {
|
|
594
|
+
"type": "number",
|
|
595
|
+
"mutable": false,
|
|
596
|
+
"complexType": {
|
|
597
|
+
"original": "number",
|
|
598
|
+
"resolved": "number | undefined",
|
|
599
|
+
"references": {}
|
|
600
|
+
},
|
|
601
|
+
"required": false,
|
|
602
|
+
"optional": true,
|
|
603
|
+
"docs": {
|
|
604
|
+
"tags": [],
|
|
605
|
+
"text": "Tama\u00F1o en px de los \u00EDconos `iconLeft`/`iconRight` (pasado al `co-icon`\ninterno). Sin este prop, el campo sigue con el tama\u00F1o fijo que ya ten\u00EDa\n(16px) \u2014 comportamiento id\u00E9ntico a antes de esta prop."
|
|
606
|
+
},
|
|
607
|
+
"getter": false,
|
|
608
|
+
"setter": false,
|
|
609
|
+
"reflect": false,
|
|
610
|
+
"attribute": "icon-size"
|
|
611
|
+
},
|
|
586
612
|
"fill": {
|
|
587
613
|
"type": "boolean",
|
|
588
614
|
"mutable": false,
|
|
@@ -97,17 +97,17 @@ export class CoJsonField {
|
|
|
97
97
|
render() {
|
|
98
98
|
const helper = this.internalInvalid ? this.invalidMessage : this.helperText;
|
|
99
99
|
const statusClass = this.status !== 'default' ? `co-json-field--${this.status}` : '';
|
|
100
|
-
return (h("div", { key: '
|
|
100
|
+
return (h("div", { key: 'b7cc05a2cf7bcac484ef35923b873d487f9cf818', class: {
|
|
101
101
|
'co-json-field': true,
|
|
102
102
|
'co-json-field--disabled': this.disabled,
|
|
103
103
|
'co-json-field--focused': this.hasFocus,
|
|
104
104
|
'co-json-field--invalid': this.isInvalid,
|
|
105
105
|
[`co-json-field--${this.size}`]: true,
|
|
106
106
|
[statusClass]: !!statusClass,
|
|
107
|
-
}, part: "wrapper" }, this.label && (h("div", { key: '
|
|
107
|
+
}, part: "wrapper" }, this.label && (h("div", { key: '5e6829693907789665f54851df8ac012bbe9d9c9', class: "co-json-field__labels" }, h("label", { key: 'e19ba3d715acd5b505147ef6e0c173dbaf1dbae8', class: "co-json-field__label", part: "label" }, this.label, h(RequiredMark, { key: 'e45feaa1a58875adc64ab58e77d1cef498042574', required: this.required })))), h("div", { key: '7b5ed251a4c7f3456f1a5c36c7800aae60b8e602', class: "co-json-field__field", part: "field" }, h("textarea", { key: '03b4e34fabc26829c823f5dea01c987e5fc1a1f8', class: "co-json-field__native", rows: this.rows, spellcheck: false, autocomplete: "off", value: this.draft, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, "aria-invalid": this.isInvalid ? 'true' : 'false', "aria-label": !this.label ? 'JSON' : undefined, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, part: "input" })), this.name && h("input", { key: 'e7659c214e65fb97de486f442a170e11fb917587', type: "hidden", name: this.name, value: this.draft }), helper && (h("div", { key: '744697ecde8364833b3dfb4656602a5c8bb6192a', class: {
|
|
108
108
|
'co-json-field__helper': true,
|
|
109
109
|
'co-json-field__helper--error': this.isInvalid,
|
|
110
|
-
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: '
|
|
110
|
+
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: '8b80af75ce8f27fb68fa5760e584ce7aeedd67a7', name: "warning-circle", size: 14, class: "co-json-field__helper-icon" })), h("span", { key: 'f79da7c507e282694367d602dac6e99e534579f0', class: "co-json-field__helper-text" }, helper)))));
|
|
111
111
|
}
|
|
112
112
|
static get is() { return "co-json-field"; }
|
|
113
113
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* co-kbd — grupo de teclas de un atajo (ícono Phosphor en mac, texto en win) */
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.co-kbd {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
gap: var(--co-spacing-xxs, 2px);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.co-kbd__sep {
|
|
14
|
+
font-family: var(--co-font-family-primary, 'Geist', sans-serif);
|
|
15
|
+
font-size: var(--co-font-size-10, 10px);
|
|
16
|
+
line-height: 1;
|
|
17
|
+
opacity: 0.6;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.co-kbd__key {
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
font-family: var(--co-font-family-primary, 'Geist', sans-serif);
|
|
26
|
+
font-style: normal;
|
|
27
|
+
font-weight: var(--co-font-weight-medium, 500);
|
|
28
|
+
font-size: var(--co-font-size-10, 10px);
|
|
29
|
+
line-height: 1;
|
|
30
|
+
text-transform: uppercase;
|
|
31
|
+
border-radius: var(--co-border-radius-xxs, 4px);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* ── Sizes (Figma: sm 30×18 con ícono 12px · xs 16×16) ──────────── */
|
|
35
|
+
.co-kbd--sm .co-kbd__key {
|
|
36
|
+
min-width: 30px;
|
|
37
|
+
height: 18px;
|
|
38
|
+
padding: 0 3px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.co-kbd--xs .co-kbd__key {
|
|
42
|
+
width: 16px;
|
|
43
|
+
height: 16px;
|
|
44
|
+
padding: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* ── Chord: toda la combinación en UN chip ─────────────────────── */
|
|
48
|
+
/* Cada token en una celda de 12 de alto, sin separadores. La celda con
|
|
49
|
+
ÍCONO (`--icon`: modificador en mac) es 12×12 fija; la de TEXTO (`--text`:
|
|
50
|
+
modificadores en win — "Ctrl", "Shift" —, teclas sueltas — "0", "Esc") crece
|
|
51
|
+
con su contenido desde un mínimo de 12: con 12px fijos y sin overflow el
|
|
52
|
+
texto sobresalía a ambos lados y pisaba al token siguiente (fix round 1).
|
|
53
|
+
En `sm` el chip hereda 30×18 de `.co-kbd--sm .co-kbd__key` (min-width: se
|
|
54
|
+
ensancha con las celdas); en `xs` la tecla suelta tiene `width: 16px`
|
|
55
|
+
FIJO, que aquí se suelta (auto + min-width 16, mismo alto 16) — va DESPUÉS
|
|
56
|
+
de esa regla porque pesa lo mismo (0,2,0) y gana por orden. */
|
|
57
|
+
.co-kbd__cell {
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
min-width: 12px;
|
|
63
|
+
height: 12px;
|
|
64
|
+
flex-shrink: 0;
|
|
65
|
+
white-space: nowrap;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.co-kbd__cell--icon {
|
|
69
|
+
width: 12px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.co-kbd__cell--text {
|
|
73
|
+
width: auto;
|
|
74
|
+
padding: 0 1px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.co-kbd--xs .co-kbd__key--chord {
|
|
78
|
+
width: auto;
|
|
79
|
+
min-width: 16px;
|
|
80
|
+
height: 16px;
|
|
81
|
+
padding: 0 2px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* ── Surfaces ───────────────────────────────────────────────────── */
|
|
85
|
+
.co-kbd--light .co-kbd__key {
|
|
86
|
+
background: var(--co-semantic-surface-control, #f6f6f6);
|
|
87
|
+
color: var(--co-semantic-text-default, #1f1c1b);
|
|
88
|
+
}
|
|
89
|
+
.co-kbd--light .co-kbd__sep {
|
|
90
|
+
color: var(--co-semantic-text-default, #1f1c1b);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.co-kbd--dark .co-kbd__key {
|
|
94
|
+
background: var(--co-color-opacity-blanco-16, rgba(255, 255, 255, 0.16));
|
|
95
|
+
color: var(--co-color-base-blanco, #fff);
|
|
96
|
+
}
|
|
97
|
+
.co-kbd--dark .co-kbd__sep {
|
|
98
|
+
color: var(--co-color-base-blanco, #fff);
|
|
99
|
+
}
|