@sebgroup/green-core 2.18.0 → 2.19.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/components/icon/icon.component.d.ts +0 -2
- package/components/icon/icon.js +0 -1
- package/custom-elements.json +225067 -0
- package/gds-element.js +1 -1
- package/generated/react/alert/index.d.ts +15 -22
- package/generated/react/backdrop/index.d.ts +12 -19
- package/generated/react/badge/index.d.ts +15 -22
- package/generated/react/blur/index.d.ts +11 -18
- package/generated/react/breadcrumb/index.d.ts +15 -22
- package/generated/react/breadcrumbs/index.d.ts +12 -19
- package/generated/react/button/index.d.ts +23 -30
- package/generated/react/calendar/index.d.ts +17 -24
- package/generated/react/card/index.d.ts +12 -19
- package/generated/react/card-linked/index.d.ts +14 -21
- package/generated/react/card-pattern-01/index.d.ts +22 -29
- package/generated/react/checkbox/index.d.ts +24 -31
- package/generated/react/checkbox-group/index.d.ts +24 -31
- package/generated/react/coachmark/index.d.ts +14 -21
- package/generated/react/context-menu/index.d.ts +14 -21
- package/generated/react/datepicker/index.d.ts +33 -40
- package/generated/react/details/index.d.ts +14 -21
- package/generated/react/dialog/index.d.ts +13 -20
- package/generated/react/div/index.d.ts +11 -18
- package/generated/react/divider/index.d.ts +11 -18
- package/generated/react/dropdown/index.d.ts +36 -43
- package/generated/react/fab/index.d.ts +23 -30
- package/generated/react/filter-chip/index.d.ts +12 -19
- package/generated/react/filter-chips/index.d.ts +24 -31
- package/generated/react/flex/index.d.ts +11 -18
- package/generated/react/form-control-footer/index.d.ts +11 -18
- package/generated/react/form-control-header/index.d.ts +12 -19
- package/generated/react/form-summary/index.d.ts +14 -21
- package/generated/react/formatted-account/index.d.ts +14 -21
- package/generated/react/formatted-date/index.d.ts +13 -20
- package/generated/react/formatted-number/index.d.ts +14 -21
- package/generated/react/grid/index.d.ts +11 -18
- package/generated/react/grouped-list/index.d.ts +12 -19
- package/generated/react/icons/icon-ai/index.d.ts +13 -20
- package/generated/react/icons/icon-airplane-up/index.d.ts +13 -20
- package/generated/react/icons/icon-archive/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-bottom-top/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-box-left/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-box-right/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-down/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-inbox/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-left/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-left-right/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-out-of-box/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-right/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-right-circle/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-right-down-circle/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-right-up-circle/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-rotate-clockwise/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-rotate-counter-clockwise/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-rotate-left-right/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-rotate-right-left/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-share-left/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-share-right/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-split/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-up/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-wall-down/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-wall-left/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-wall-right/index.d.ts +13 -20
- package/generated/react/icons/icon-arrow-wall-up/index.d.ts +13 -20
- package/generated/react/icons/icon-arrows-repeat/index.d.ts +13 -20
- package/generated/react/icons/icon-at/index.d.ts +13 -20
- package/generated/react/icons/icon-back/index.d.ts +13 -20
- package/generated/react/icons/icon-backward/index.d.ts +13 -20
- package/generated/react/icons/icon-bag/index.d.ts +13 -20
- package/generated/react/icons/icon-bank/index.d.ts +13 -20
- package/generated/react/icons/icon-banknote/index.d.ts +13 -20
- package/generated/react/icons/icon-banknote-2/index.d.ts +13 -20
- package/generated/react/icons/icon-barcode/index.d.ts +13 -20
- package/generated/react/icons/icon-bars-three/index.d.ts +13 -20
- package/generated/react/icons/icon-bars-two/index.d.ts +13 -20
- package/generated/react/icons/icon-basket/index.d.ts +13 -20
- package/generated/react/icons/icon-battery-loading/index.d.ts +13 -20
- package/generated/react/icons/icon-bell/index.d.ts +13 -20
- package/generated/react/icons/icon-block/index.d.ts +13 -20
- package/generated/react/icons/icon-book/index.d.ts +13 -20
- package/generated/react/icons/icon-bookmark/index.d.ts +13 -20
- package/generated/react/icons/icon-bookmark-check/index.d.ts +13 -20
- package/generated/react/icons/icon-bookmark-delete/index.d.ts +13 -20
- package/generated/react/icons/icon-bookmark-plus/index.d.ts +13 -20
- package/generated/react/icons/icon-bookmark-remove/index.d.ts +13 -20
- package/generated/react/icons/icon-books/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-app-store/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-apple-music/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-bankid/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-chrome/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-facebook/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-figma/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-firefox/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-github/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-green/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-instagram/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-linkedin/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-play-store/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-rss-feed/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-seb/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-spotify/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-storybook/index.d.ts +13 -20
- package/generated/react/icons/icon-brand-x/index.d.ts +13 -20
- package/generated/react/icons/icon-brush/index.d.ts +13 -20
- package/generated/react/icons/icon-bubble/index.d.ts +13 -20
- package/generated/react/icons/icon-bubble-annotation/index.d.ts +13 -20
- package/generated/react/icons/icon-bubble-dots/index.d.ts +13 -20
- package/generated/react/icons/icon-bubble-question/index.d.ts +13 -20
- package/generated/react/icons/icon-bubble-quotes/index.d.ts +13 -20
- package/generated/react/icons/icon-bubble-text/index.d.ts +13 -20
- package/generated/react/icons/icon-bubble-wide-annotation/index.d.ts +13 -20
- package/generated/react/icons/icon-bubbles/index.d.ts +13 -20
- package/generated/react/icons/icon-buildings/index.d.ts +13 -20
- package/generated/react/icons/icon-bullet-list/index.d.ts +13 -20
- package/generated/react/icons/icon-cain-link/index.d.ts +13 -20
- package/generated/react/icons/icon-calculator/index.d.ts +13 -20
- package/generated/react/icons/icon-calendar/index.d.ts +13 -20
- package/generated/react/icons/icon-calendar-check/index.d.ts +13 -20
- package/generated/react/icons/icon-calender-add/index.d.ts +13 -20
- package/generated/react/icons/icon-call/index.d.ts +13 -20
- package/generated/react/icons/icon-car/index.d.ts +13 -20
- package/generated/react/icons/icon-carussel/index.d.ts +13 -20
- package/generated/react/icons/icon-chain-link/index.d.ts +13 -20
- package/generated/react/icons/icon-chain-link-broken/index.d.ts +13 -20
- package/generated/react/icons/icon-charging-station/index.d.ts +13 -20
- package/generated/react/icons/icon-chart-one/index.d.ts +13 -20
- package/generated/react/icons/icon-chart-presentation/index.d.ts +13 -20
- package/generated/react/icons/icon-chart-two/index.d.ts +13 -20
- package/generated/react/icons/icon-checklist/index.d.ts +13 -20
- package/generated/react/icons/icon-checkmark/index.d.ts +13 -20
- package/generated/react/icons/icon-chevron-bottom/index.d.ts +13 -20
- package/generated/react/icons/icon-chevron-double-down/index.d.ts +13 -20
- package/generated/react/icons/icon-chevron-double-left/index.d.ts +13 -20
- package/generated/react/icons/icon-chevron-double-right/index.d.ts +13 -20
- package/generated/react/icons/icon-chevron-double-up/index.d.ts +13 -20
- package/generated/react/icons/icon-chevron-down-small/index.d.ts +13 -20
- package/generated/react/icons/icon-chevron-grabber-vertical/index.d.ts +13 -20
- package/generated/react/icons/icon-chevron-left/index.d.ts +13 -20
- package/generated/react/icons/icon-chevron-left-small/index.d.ts +13 -20
- package/generated/react/icons/icon-chevron-right/index.d.ts +13 -20
- package/generated/react/icons/icon-chevron-right-small/index.d.ts +13 -20
- package/generated/react/icons/icon-chevron-top/index.d.ts +13 -20
- package/generated/react/icons/icon-chevron-top-small/index.d.ts +13 -20
- package/generated/react/icons/icon-circle-ban/index.d.ts +13 -20
- package/generated/react/icons/icon-circle-check/index.d.ts +13 -20
- package/generated/react/icons/icon-circle-dots/index.d.ts +13 -20
- package/generated/react/icons/icon-circle-info/index.d.ts +13 -20
- package/generated/react/icons/icon-circle-minus/index.d.ts +13 -20
- package/generated/react/icons/icon-circle-placeholder-on/index.d.ts +13 -20
- package/generated/react/icons/icon-circle-plus/index.d.ts +13 -20
- package/generated/react/icons/icon-circle-questionmark/index.d.ts +13 -20
- package/generated/react/icons/icon-circle-x/index.d.ts +13 -20
- package/generated/react/icons/icon-circles-three/index.d.ts +13 -20
- package/generated/react/icons/icon-clock/index.d.ts +13 -20
- package/generated/react/icons/icon-cloud-download/index.d.ts +13 -20
- package/generated/react/icons/icon-cloud-upload/index.d.ts +13 -20
- package/generated/react/icons/icon-cloudy-sun/index.d.ts +13 -20
- package/generated/react/icons/icon-code/index.d.ts +13 -20
- package/generated/react/icons/icon-code-brackets/index.d.ts +13 -20
- package/generated/react/icons/icon-compass-round/index.d.ts +13 -20
- package/generated/react/icons/icon-cookies/index.d.ts +13 -20
- package/generated/react/icons/icon-copy/index.d.ts +13 -20
- package/generated/react/icons/icon-credit-card/index.d.ts +13 -20
- package/generated/react/icons/icon-cross-large/index.d.ts +13 -20
- package/generated/react/icons/icon-cross-small/index.d.ts +13 -20
- package/generated/react/icons/icon-cup-hot/index.d.ts +13 -20
- package/generated/react/icons/icon-cursor/index.d.ts +13 -20
- package/generated/react/icons/icon-details/index.d.ts +12 -19
- package/generated/react/icons/icon-devices/index.d.ts +13 -20
- package/generated/react/icons/icon-direction/index.d.ts +13 -20
- package/generated/react/icons/icon-dollar/index.d.ts +13 -20
- package/generated/react/icons/icon-dot-grid-one-horizontal/index.d.ts +13 -20
- package/generated/react/icons/icon-dot-grid-one-vertical/index.d.ts +13 -20
- package/generated/react/icons/icon-dot-grid-three/index.d.ts +13 -20
- package/generated/react/icons/icon-dot-grid-two/index.d.ts +13 -20
- package/generated/react/icons/icon-email/index.d.ts +13 -20
- package/generated/react/icons/icon-emoji-angry/index.d.ts +13 -20
- package/generated/react/icons/icon-emoji-neutral/index.d.ts +13 -20
- package/generated/react/icons/icon-emoji-sad/index.d.ts +13 -20
- package/generated/react/icons/icon-emoji-smile/index.d.ts +13 -20
- package/generated/react/icons/icon-emoji-smiley/index.d.ts +13 -20
- package/generated/react/icons/icon-euro/index.d.ts +13 -20
- package/generated/react/icons/icon-expand/index.d.ts +13 -20
- package/generated/react/icons/icon-eye-open/index.d.ts +13 -20
- package/generated/react/icons/icon-eye-slash/index.d.ts +13 -20
- package/generated/react/icons/icon-fashion/index.d.ts +13 -20
- package/generated/react/icons/icon-fast-forward/index.d.ts +13 -20
- package/generated/react/icons/icon-file-bend/index.d.ts +13 -20
- package/generated/react/icons/icon-file-chart/index.d.ts +13 -20
- package/generated/react/icons/icon-file-text/index.d.ts +13 -20
- package/generated/react/icons/icon-files/index.d.ts +13 -20
- package/generated/react/icons/icon-filter/index.d.ts +13 -20
- package/generated/react/icons/icon-flag/index.d.ts +13 -20
- package/generated/react/icons/icon-floppy-disk/index.d.ts +13 -20
- package/generated/react/icons/icon-focus/index.d.ts +13 -20
- package/generated/react/icons/icon-focus-square/index.d.ts +13 -20
- package/generated/react/icons/icon-folder/index.d.ts +13 -20
- package/generated/react/icons/icon-folder-add-right/index.d.ts +13 -20
- package/generated/react/icons/icon-folder-paper/index.d.ts +13 -20
- package/generated/react/icons/icon-folder-upload/index.d.ts +13 -20
- package/generated/react/icons/icon-fullscreen/index.d.ts +13 -20
- package/generated/react/icons/icon-gift/index.d.ts +13 -20
- package/generated/react/icons/icon-globus/index.d.ts +13 -20
- package/generated/react/icons/icon-graduate-cap/index.d.ts +13 -20
- package/generated/react/icons/icon-green-power/index.d.ts +13 -20
- package/generated/react/icons/icon-group/index.d.ts +13 -20
- package/generated/react/icons/icon-growth/index.d.ts +13 -20
- package/generated/react/icons/icon-headphones/index.d.ts +13 -20
- package/generated/react/icons/icon-heart/index.d.ts +13 -20
- package/generated/react/icons/icon-heart-beat/index.d.ts +13 -20
- package/generated/react/icons/icon-history/index.d.ts +13 -20
- package/generated/react/icons/icon-home-energy-one/index.d.ts +13 -20
- package/generated/react/icons/icon-home-energy-two/index.d.ts +13 -20
- package/generated/react/icons/icon-home-open/index.d.ts +13 -20
- package/generated/react/icons/icon-home-roof/index.d.ts +13 -20
- package/generated/react/icons/icon-horizontal-alignment-bottom/index.d.ts +13 -20
- package/generated/react/icons/icon-hourglass/index.d.ts +13 -20
- package/generated/react/icons/icon-images/index.d.ts +13 -20
- package/generated/react/icons/icon-inbox-empty/index.d.ts +13 -20
- package/generated/react/icons/icon-industry/index.d.ts +13 -20
- package/generated/react/icons/icon-invite/index.d.ts +13 -20
- package/generated/react/icons/icon-jpg/index.d.ts +13 -20
- package/generated/react/icons/icon-key/index.d.ts +13 -20
- package/generated/react/icons/icon-knife-spoon/index.d.ts +13 -20
- package/generated/react/icons/icon-lab/index.d.ts +13 -20
- package/generated/react/icons/icon-law/index.d.ts +13 -20
- package/generated/react/icons/icon-leisure/index.d.ts +13 -20
- package/generated/react/icons/icon-light-bulb/index.d.ts +13 -20
- package/generated/react/icons/icon-light-bulb-simple/index.d.ts +13 -20
- package/generated/react/icons/icon-lightning/index.d.ts +13 -20
- package/generated/react/icons/icon-line-chart-four/index.d.ts +13 -20
- package/generated/react/icons/icon-line-chart-one/index.d.ts +13 -20
- package/generated/react/icons/icon-line-chart-three/index.d.ts +13 -20
- package/generated/react/icons/icon-line-chart-two/index.d.ts +13 -20
- package/generated/react/icons/icon-lock/index.d.ts +13 -20
- package/generated/react/icons/icon-macbook-air/index.d.ts +13 -20
- package/generated/react/icons/icon-magnifying-glass/index.d.ts +13 -20
- package/generated/react/icons/icon-maintenance/index.d.ts +13 -20
- package/generated/react/icons/icon-map-pin/index.d.ts +13 -20
- package/generated/react/icons/icon-megaphone/index.d.ts +13 -20
- package/generated/react/icons/icon-menu-sidebar/index.d.ts +13 -20
- package/generated/react/icons/icon-mic-off/index.d.ts +13 -20
- package/generated/react/icons/icon-mic-on/index.d.ts +13 -20
- package/generated/react/icons/icon-minimize/index.d.ts +13 -20
- package/generated/react/icons/icon-minus-large/index.d.ts +13 -20
- package/generated/react/icons/icon-minus-small/index.d.ts +13 -20
- package/generated/react/icons/icon-money-hand/index.d.ts +13 -20
- package/generated/react/icons/icon-moneybag/index.d.ts +13 -20
- package/generated/react/icons/icon-moon/index.d.ts +13 -20
- package/generated/react/icons/icon-mute/index.d.ts +13 -20
- package/generated/react/icons/icon-office/index.d.ts +13 -20
- package/generated/react/icons/icon-other/index.d.ts +13 -20
- package/generated/react/icons/icon-page-add/index.d.ts +13 -20
- package/generated/react/icons/icon-page-text/index.d.ts +13 -20
- package/generated/react/icons/icon-paper-plane-top-right/index.d.ts +13 -20
- package/generated/react/icons/icon-paperclip/index.d.ts +13 -20
- package/generated/react/icons/icon-pause/index.d.ts +13 -20
- package/generated/react/icons/icon-pdf/index.d.ts +13 -20
- package/generated/react/icons/icon-pencel-line/index.d.ts +13 -20
- package/generated/react/icons/icon-pencil-sign/index.d.ts +13 -20
- package/generated/react/icons/icon-pencil-sparkle/index.d.ts +13 -20
- package/generated/react/icons/icon-pencil-wave/index.d.ts +13 -20
- package/generated/react/icons/icon-pension/index.d.ts +13 -20
- package/generated/react/icons/icon-people/index.d.ts +13 -20
- package/generated/react/icons/icon-people-a11y/index.d.ts +13 -20
- package/generated/react/icons/icon-people-add/index.d.ts +13 -20
- package/generated/react/icons/icon-people-added/index.d.ts +13 -20
- package/generated/react/icons/icon-people-circle/index.d.ts +13 -20
- package/generated/react/icons/icon-people-copy/index.d.ts +13 -20
- package/generated/react/icons/icon-people-profile/index.d.ts +13 -20
- package/generated/react/icons/icon-people-remove/index.d.ts +13 -20
- package/generated/react/icons/icon-percent/index.d.ts +13 -20
- package/generated/react/icons/icon-phone/index.d.ts +13 -20
- package/generated/react/icons/icon-phone-dynamic-island/index.d.ts +13 -20
- package/generated/react/icons/icon-pie-chart/index.d.ts +13 -20
- package/generated/react/icons/icon-piggy-bank/index.d.ts +13 -20
- package/generated/react/icons/icon-pin/index.d.ts +13 -20
- package/generated/react/icons/icon-pinch/index.d.ts +13 -20
- package/generated/react/icons/icon-play/index.d.ts +13 -20
- package/generated/react/icons/icon-play-circle/index.d.ts +13 -20
- package/generated/react/icons/icon-plus-large/index.d.ts +13 -20
- package/generated/react/icons/icon-plus-small/index.d.ts +13 -20
- package/generated/react/icons/icon-png/index.d.ts +13 -20
- package/generated/react/icons/icon-poop/index.d.ts +13 -20
- package/generated/react/icons/icon-postcard/index.d.ts +13 -20
- package/generated/react/icons/icon-pound/index.d.ts +13 -20
- package/generated/react/icons/icon-power-plant/index.d.ts +13 -20
- package/generated/react/icons/icon-printer/index.d.ts +13 -20
- package/generated/react/icons/icon-push/index.d.ts +13 -20
- package/generated/react/icons/icon-qr-code/index.d.ts +13 -20
- package/generated/react/icons/icon-rainy/index.d.ts +13 -20
- package/generated/react/icons/icon-raising-hand/index.d.ts +13 -20
- package/generated/react/icons/icon-reading-list/index.d.ts +13 -20
- package/generated/react/icons/icon-receipt-bill/index.d.ts +13 -20
- package/generated/react/icons/icon-receiption-bell/index.d.ts +13 -20
- package/generated/react/icons/icon-record/index.d.ts +13 -20
- package/generated/react/icons/icon-refund/index.d.ts +13 -20
- package/generated/react/icons/icon-robot/index.d.ts +13 -20
- package/generated/react/icons/icon-rocket/index.d.ts +13 -20
- package/generated/react/icons/icon-run-shortcut/index.d.ts +13 -20
- package/generated/react/icons/icon-safari/index.d.ts +13 -20
- package/generated/react/icons/icon-school/index.d.ts +13 -20
- package/generated/react/icons/icon-scissors/index.d.ts +13 -20
- package/generated/react/icons/icon-search-menu/index.d.ts +13 -20
- package/generated/react/icons/icon-seb/index.d.ts +13 -20
- package/generated/react/icons/icon-settings-gear/index.d.ts +13 -20
- package/generated/react/icons/icon-settings-slider-hor/index.d.ts +13 -20
- package/generated/react/icons/icon-settings-slider-three/index.d.ts +13 -20
- package/generated/react/icons/icon-settings-slider-ver/index.d.ts +13 -20
- package/generated/react/icons/icon-shapes/index.d.ts +13 -20
- package/generated/react/icons/icon-share/index.d.ts +13 -20
- package/generated/react/icons/icon-shield/index.d.ts +13 -20
- package/generated/react/icons/icon-shield-checked/index.d.ts +13 -20
- package/generated/react/icons/icon-shield-crossed/index.d.ts +13 -20
- package/generated/react/icons/icon-shopping-bag/index.d.ts +13 -20
- package/generated/react/icons/icon-signature/index.d.ts +13 -20
- package/generated/react/icons/icon-smartwatch/index.d.ts +13 -20
- package/generated/react/icons/icon-solar/index.d.ts +13 -20
- package/generated/react/icons/icon-solar-panel/index.d.ts +13 -20
- package/generated/react/icons/icon-sort/index.d.ts +13 -20
- package/generated/react/icons/icon-sort-ascending/index.d.ts +13 -20
- package/generated/react/icons/icon-sort-descending/index.d.ts +13 -20
- package/generated/react/icons/icon-sort-down/index.d.ts +13 -20
- package/generated/react/icons/icon-sort-up/index.d.ts +13 -20
- package/generated/react/icons/icon-square-arrow-top-right/index.d.ts +13 -20
- package/generated/react/icons/icon-square-behind-square/index.d.ts +13 -20
- package/generated/react/icons/icon-square-check/index.d.ts +13 -20
- package/generated/react/icons/icon-square-grid-circle/index.d.ts +13 -20
- package/generated/react/icons/icon-square-info/index.d.ts +13 -20
- package/generated/react/icons/icon-square-minus/index.d.ts +13 -20
- package/generated/react/icons/icon-square-placeholder/index.d.ts +13 -20
- package/generated/react/icons/icon-square-plus/index.d.ts +13 -20
- package/generated/react/icons/icon-square-x/index.d.ts +13 -20
- package/generated/react/icons/icon-star/index.d.ts +13 -20
- package/generated/react/icons/icon-store/index.d.ts +13 -20
- package/generated/react/icons/icon-suitcase-work/index.d.ts +13 -20
- package/generated/react/icons/icon-sun/index.d.ts +13 -20
- package/generated/react/icons/icon-sunset-arrow-down/index.d.ts +13 -20
- package/generated/react/icons/icon-tag/index.d.ts +13 -20
- package/generated/react/icons/icon-target-arrow/index.d.ts +13 -20
- package/generated/react/icons/icon-television/index.d.ts +13 -20
- package/generated/react/icons/icon-tennis/index.d.ts +13 -20
- package/generated/react/icons/icon-text-edit/index.d.ts +13 -20
- package/generated/react/icons/icon-thermostat/index.d.ts +13 -20
- package/generated/react/icons/icon-thumbs-down/index.d.ts +13 -20
- package/generated/react/icons/icon-thumbs-up/index.d.ts +13 -20
- package/generated/react/icons/icon-ticket/index.d.ts +13 -20
- package/generated/react/icons/icon-todos/index.d.ts +13 -20
- package/generated/react/icons/icon-trading-view-candles/index.d.ts +13 -20
- package/generated/react/icons/icon-trash-can/index.d.ts +13 -20
- package/generated/react/icons/icon-tree/index.d.ts +13 -20
- package/generated/react/icons/icon-trending-four/index.d.ts +13 -20
- package/generated/react/icons/icon-trending-one/index.d.ts +13 -20
- package/generated/react/icons/icon-trending-three/index.d.ts +13 -20
- package/generated/react/icons/icon-trending-two/index.d.ts +13 -20
- package/generated/react/icons/icon-triangle-exclamation/index.d.ts +13 -20
- package/generated/react/icons/icon-truck/index.d.ts +13 -20
- package/generated/react/icons/icon-umbrella-security/index.d.ts +13 -20
- package/generated/react/icons/icon-unlocked/index.d.ts +13 -20
- package/generated/react/icons/icon-vertical-alignment-right/index.d.ts +13 -20
- package/generated/react/icons/icon-volume-full/index.d.ts +13 -20
- package/generated/react/icons/icon-volume-half/index.d.ts +13 -20
- package/generated/react/icons/icon-volume-off/index.d.ts +13 -20
- package/generated/react/icons/icon-wallet/index.d.ts +13 -20
- package/generated/react/icons/icon-warning-sign/index.d.ts +13 -20
- package/generated/react/icons/icon-wifi-full/index.d.ts +13 -20
- package/generated/react/icons/icon-youtube/index.d.ts +13 -20
- package/generated/react/icons/icon-zap/index.d.ts +13 -20
- package/generated/react/icons/icon-zoom-in/index.d.ts +13 -20
- package/generated/react/icons/icon-zoom-out/index.d.ts +13 -20
- package/generated/react/img/index.d.ts +13 -20
- package/generated/react/index.d.ts +4 -5
- package/generated/react/index.js +4 -5
- package/generated/react/input/index.d.ts +33 -40
- package/generated/react/link/index.d.ts +14 -21
- package/generated/react/list-item/index.d.ts +11 -18
- package/generated/react/mask/index.d.ts +14 -21
- package/generated/react/menu-button/index.d.ts +17 -24
- package/generated/react/menu-heading/index.d.ts +11 -18
- package/generated/react/menu-item/index.d.ts +11 -18
- package/generated/react/option/index.d.ts +15 -22
- package/generated/react/popover/index.d.ts +15 -22
- package/generated/react/radio/index.d.ts +17 -24
- package/generated/react/radio-group/index.d.ts +24 -31
- package/generated/react/rich-text/index.d.ts +11 -18
- package/generated/react/segment/index.d.ts +15 -22
- package/generated/react/segmented-control/index.d.ts +13 -20
- package/generated/react/select/index.d.ts +26 -33
- package/generated/react/sensitive-account/index.d.ts +15 -22
- package/generated/react/sensitive-date/index.d.ts +14 -21
- package/generated/react/sensitive-number/index.d.ts +15 -22
- package/generated/react/signal/index.d.ts +11 -18
- package/generated/react/spinner/index.d.ts +14 -21
- package/generated/react/text/index.d.ts +12 -19
- package/generated/react/textarea/index.d.ts +31 -38
- package/generated/react/theme/index.d.ts +11 -18
- package/generated/react/video/index.d.ts +11 -18
- package/package.json +7 -4
- package/utils/helpers/component-meta.d.ts +74 -0
- package/utils/helpers/component-meta.js +276 -0
- package/utils/helpers/component-meta.types.d.ts +68 -0
- package/utils/helpers/component-meta.types.js +0 -0
- package/utils/helpers/custom-element-scoping.d.ts +1 -1
- package/utils/helpers/custom-element-scoping.js +3 -3
- package/utils/mixins/focusable.js +10 -10
- package/generated/react/icons/icon/index.d.ts +0 -395
- package/generated/react/icons/icon/index.js +0 -13
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import "../../chunks/chunk.QU3DSPNU.js";
|
|
2
|
+
class CemParser {
|
|
3
|
+
/**
|
|
4
|
+
* Loads and parses the CEM file
|
|
5
|
+
*/
|
|
6
|
+
static async loadManifest(cemPath = "../../custom-elements.json") {
|
|
7
|
+
const cemModule = await import(cemPath);
|
|
8
|
+
return cemModule.default;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Extracts modules that contain web components
|
|
12
|
+
*/
|
|
13
|
+
static getComponentModules(manifest) {
|
|
14
|
+
return manifest.modules.filter(
|
|
15
|
+
(mod) => mod.declarations?.some((declaration) => {
|
|
16
|
+
const d = declaration;
|
|
17
|
+
return d.tagName && d.customElement === true;
|
|
18
|
+
})
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Extracts component data from a JavaScriptModule declaration
|
|
23
|
+
*/
|
|
24
|
+
static extractComponentData(mod, declaration) {
|
|
25
|
+
const className = declaration.name;
|
|
26
|
+
const tagName = declaration.tagName;
|
|
27
|
+
return {
|
|
28
|
+
tagName,
|
|
29
|
+
className,
|
|
30
|
+
description: declaration.description,
|
|
31
|
+
outputPath: mod.path,
|
|
32
|
+
sourcePath: mod.path,
|
|
33
|
+
properties: this.extractProperties(declaration),
|
|
34
|
+
events: this.extractEvents(declaration),
|
|
35
|
+
slots: this.extractSlots(declaration),
|
|
36
|
+
methods: this.extractMethods(declaration),
|
|
37
|
+
isFormControl: this.isFormControl(declaration),
|
|
38
|
+
isLinkComponent: this.isLinkComponent(declaration),
|
|
39
|
+
isCheckboxComponent: this.isCheckboxComponent(tagName)
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Checks if a component is a form control by looking for properties inherited from GdsFormControlElement
|
|
44
|
+
*/
|
|
45
|
+
static isFormControl(declaration) {
|
|
46
|
+
if (!declaration.members) return false;
|
|
47
|
+
return declaration.members.some(
|
|
48
|
+
(member) => member.inheritedFrom?.name === "GdsFormControlElement" && member.inheritedFrom?.module === "src/components/form/form-control.ts"
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Checks if a component supports routing by looking for an 'href' property
|
|
53
|
+
*/
|
|
54
|
+
static isLinkComponent(declaration) {
|
|
55
|
+
if (!declaration.members) return false;
|
|
56
|
+
return declaration.members.some(
|
|
57
|
+
(member) => member.kind === "field" && member.name === "href" && member.privacy !== "private" && member.privacy !== "protected"
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Checks if a component is a checkbox by checking the tag name
|
|
62
|
+
* Checkboxes need special handling to work with boolean checked state instead of string values
|
|
63
|
+
*/
|
|
64
|
+
static isCheckboxComponent(tagName) {
|
|
65
|
+
return tagName === "gds-checkbox";
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Extracts properties
|
|
69
|
+
*/
|
|
70
|
+
static extractProperties(declaration) {
|
|
71
|
+
if (!declaration.members) return [];
|
|
72
|
+
return declaration.members.filter(
|
|
73
|
+
(member) => member.name?.length > 0 && member.kind === "field" && member.privacy !== "private" && member.privacy !== "protected" && !member.readonly && !member.static
|
|
74
|
+
).map((field) => ({
|
|
75
|
+
kind: "field",
|
|
76
|
+
name: field.name,
|
|
77
|
+
type: field.type,
|
|
78
|
+
defaultValue: field.default,
|
|
79
|
+
description: field.description
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Extracts events
|
|
84
|
+
*/
|
|
85
|
+
static extractEvents(declaration) {
|
|
86
|
+
if (!declaration.events) return [];
|
|
87
|
+
return declaration.events.filter((event) => event.name && !event.inheritedFrom).map((event) => ({
|
|
88
|
+
name: event.name,
|
|
89
|
+
// Store original event name
|
|
90
|
+
type: this.mapEventType(event.type?.text, event.name),
|
|
91
|
+
description: event.description
|
|
92
|
+
}));
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Extracts slot information
|
|
96
|
+
*/
|
|
97
|
+
static extractSlots(declaration) {
|
|
98
|
+
if (!declaration.slots) return [];
|
|
99
|
+
return declaration.slots.map((slot) => ({
|
|
100
|
+
name: slot.name || "default",
|
|
101
|
+
description: slot.description
|
|
102
|
+
}));
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Extracts public methods
|
|
106
|
+
*/
|
|
107
|
+
static extractMethods(declaration) {
|
|
108
|
+
if (!declaration.members) return [];
|
|
109
|
+
return declaration.members.filter(
|
|
110
|
+
(member) => member.kind === "method" && member.privacy !== "private" && !member.static && !member.inheritedFrom && !member.name.startsWith("_")
|
|
111
|
+
).map((method) => ({
|
|
112
|
+
name: method.name,
|
|
113
|
+
description: method.description,
|
|
114
|
+
returnType: method.return?.type,
|
|
115
|
+
parameters: method.parameters?.map((param) => ({
|
|
116
|
+
name: param.name,
|
|
117
|
+
type: param.type?.text || "any",
|
|
118
|
+
optional: param.optional || false
|
|
119
|
+
})) || []
|
|
120
|
+
}));
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Maps CEM event types to TypeScript types
|
|
124
|
+
*/
|
|
125
|
+
static mapEventType(cemType, eventName) {
|
|
126
|
+
if (cemType) {
|
|
127
|
+
if (cemType === "CustomEvent") {
|
|
128
|
+
return "CustomEvent<any>";
|
|
129
|
+
}
|
|
130
|
+
return cemType;
|
|
131
|
+
}
|
|
132
|
+
if (!eventName) return "Event";
|
|
133
|
+
const standardEventMap = {
|
|
134
|
+
click: "MouseEvent",
|
|
135
|
+
dblclick: "MouseEvent",
|
|
136
|
+
mousedown: "MouseEvent",
|
|
137
|
+
mouseup: "MouseEvent",
|
|
138
|
+
mouseover: "MouseEvent",
|
|
139
|
+
mouseout: "MouseEvent",
|
|
140
|
+
mousemove: "MouseEvent",
|
|
141
|
+
mouseenter: "MouseEvent",
|
|
142
|
+
mouseleave: "MouseEvent",
|
|
143
|
+
contextmenu: "MouseEvent",
|
|
144
|
+
keydown: "KeyboardEvent",
|
|
145
|
+
keyup: "KeyboardEvent",
|
|
146
|
+
keypress: "KeyboardEvent",
|
|
147
|
+
focus: "FocusEvent",
|
|
148
|
+
blur: "FocusEvent",
|
|
149
|
+
focusin: "FocusEvent",
|
|
150
|
+
focusout: "FocusEvent",
|
|
151
|
+
input: "InputEvent",
|
|
152
|
+
change: "Event",
|
|
153
|
+
submit: "SubmitEvent",
|
|
154
|
+
reset: "Event",
|
|
155
|
+
scroll: "Event",
|
|
156
|
+
resize: "UIEvent",
|
|
157
|
+
load: "Event",
|
|
158
|
+
unload: "Event",
|
|
159
|
+
error: "ErrorEvent",
|
|
160
|
+
touchstart: "TouchEvent",
|
|
161
|
+
touchend: "TouchEvent",
|
|
162
|
+
touchmove: "TouchEvent",
|
|
163
|
+
touchcancel: "TouchEvent",
|
|
164
|
+
wheel: "WheelEvent",
|
|
165
|
+
drag: "DragEvent",
|
|
166
|
+
dragstart: "DragEvent",
|
|
167
|
+
dragend: "DragEvent",
|
|
168
|
+
dragenter: "DragEvent",
|
|
169
|
+
dragleave: "DragEvent",
|
|
170
|
+
dragover: "DragEvent",
|
|
171
|
+
drop: "DragEvent"
|
|
172
|
+
};
|
|
173
|
+
const standardType = standardEventMap[eventName];
|
|
174
|
+
if (standardType) {
|
|
175
|
+
return standardType;
|
|
176
|
+
}
|
|
177
|
+
if (eventName.startsWith("gds-") || eventName.includes("-")) {
|
|
178
|
+
return "CustomEvent<any>";
|
|
179
|
+
}
|
|
180
|
+
return "Event";
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Finds primitives that are re-exported by component modules
|
|
184
|
+
*/
|
|
185
|
+
static findReExportedPrimitives(manifest) {
|
|
186
|
+
const reExportedPrimitives = [];
|
|
187
|
+
for (const JavaScriptModule of manifest.modules) {
|
|
188
|
+
if (!JavaScriptModule.path.includes("/components/") || !JavaScriptModule.exports) {
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
for (const exportDecl of JavaScriptModule.exports) {
|
|
192
|
+
if (exportDecl.declaration?.module?.includes("primitives/")) {
|
|
193
|
+
const primitivePackage = exportDecl.declaration.module;
|
|
194
|
+
const primitiveModule = manifest.modules.find(
|
|
195
|
+
(m) => m.path.includes(
|
|
196
|
+
primitivePackage.replace(/^\.\.\//, "src/").replace(
|
|
197
|
+
/^\.\//,
|
|
198
|
+
JavaScriptModule.path.replace(/\/[^/]+$/, "/")
|
|
199
|
+
)
|
|
200
|
+
)
|
|
201
|
+
);
|
|
202
|
+
if (primitiveModule?.declarations) {
|
|
203
|
+
for (const primitiveDecl of primitiveModule.declarations) {
|
|
204
|
+
if (primitiveDecl.customElement && primitiveDecl.tagName) {
|
|
205
|
+
reExportedPrimitives.push({
|
|
206
|
+
primitiveName: primitiveDecl.tagName,
|
|
207
|
+
primitiveClass: primitiveDecl.name,
|
|
208
|
+
reExportModule: JavaScriptModule.path,
|
|
209
|
+
reExportPath: JavaScriptModule.path.replace(/^src\//, "").replace(/\.ts$/, ".js")
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return reExportedPrimitives;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Parses all components from the manifest
|
|
221
|
+
*/
|
|
222
|
+
static async parseAllComponents(manifestPath) {
|
|
223
|
+
const manifest = await this.loadManifest(manifestPath);
|
|
224
|
+
const componentModules = this.getComponentModules(manifest);
|
|
225
|
+
const reExportedPrimitives = this.findReExportedPrimitives(manifest);
|
|
226
|
+
const components = [];
|
|
227
|
+
for (const JavaScriptModule of componentModules) {
|
|
228
|
+
if (JavaScriptModule.path.includes("/primitives/")) {
|
|
229
|
+
continue;
|
|
230
|
+
}
|
|
231
|
+
for (const declaration of JavaScriptModule.declarations || []) {
|
|
232
|
+
if (declaration.tagName && declaration.customElement === true) {
|
|
233
|
+
const componentData = this.extractComponentData(
|
|
234
|
+
JavaScriptModule,
|
|
235
|
+
declaration
|
|
236
|
+
);
|
|
237
|
+
components.push(componentData);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
const primitiveMap = /* @__PURE__ */ new Map();
|
|
242
|
+
for (const reExported of reExportedPrimitives) {
|
|
243
|
+
if (primitiveMap.has(reExported.primitiveClass)) {
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
const primitiveModule = manifest.modules.find(
|
|
247
|
+
(m) => m.declarations?.some((d) => d.name === reExported.primitiveClass)
|
|
248
|
+
);
|
|
249
|
+
if (primitiveModule) {
|
|
250
|
+
const primitiveDecl = primitiveModule.declarations?.find(
|
|
251
|
+
(d) => d.name === reExported.primitiveClass
|
|
252
|
+
);
|
|
253
|
+
if (primitiveDecl) {
|
|
254
|
+
const componentData = this.extractComponentData(
|
|
255
|
+
primitiveModule,
|
|
256
|
+
primitiveDecl
|
|
257
|
+
);
|
|
258
|
+
componentData.sourcePath = reExported.reExportModule;
|
|
259
|
+
primitiveMap.set(reExported.primitiveClass, componentData);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
components.push(...primitiveMap.values());
|
|
264
|
+
return { components, reExportedPrimitives };
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Parses a single component by tag name
|
|
268
|
+
*/
|
|
269
|
+
static async parseComponent(tagName, manifestPath) {
|
|
270
|
+
const { components } = await this.parseAllComponents(manifestPath);
|
|
271
|
+
return components.find((comp) => comp.tagName === tagName) || null;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
export {
|
|
275
|
+
CemParser
|
|
276
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TypeScript interfaces for Custom Elements Manifest (CEM) structure
|
|
3
|
+
* Based on the schema used in custom-elements.json
|
|
4
|
+
*/
|
|
5
|
+
import { CustomElementField, Type } from 'custom-elements-manifest';
|
|
6
|
+
/**
|
|
7
|
+
* Processed component meta data
|
|
8
|
+
*/
|
|
9
|
+
export interface ComponentData {
|
|
10
|
+
/** Original component class name (e.g., 'GdsAlert') */
|
|
11
|
+
className: string;
|
|
12
|
+
/** Web component tag name (e.g., 'gds-alert') */
|
|
13
|
+
tagName: string;
|
|
14
|
+
/** Component description */
|
|
15
|
+
description?: string;
|
|
16
|
+
/** File path where component will be generated */
|
|
17
|
+
outputPath: string;
|
|
18
|
+
/** Original source file path from the manifest (e.g., 'src/components/alert/alert.component.ts') */
|
|
19
|
+
sourcePath: string;
|
|
20
|
+
/** Input properties from attributes and reflected fields */
|
|
21
|
+
properties: CustomElementField[];
|
|
22
|
+
/** Output events */
|
|
23
|
+
events: ComponentEvent[];
|
|
24
|
+
/** Content projection slots */
|
|
25
|
+
slots: SlotInfo[];
|
|
26
|
+
/** Public methods that should be exposed */
|
|
27
|
+
methods: MethodInfo[];
|
|
28
|
+
/** Whether this component is a form control (extends GdsFormControlElement) */
|
|
29
|
+
isFormControl?: boolean;
|
|
30
|
+
/** Whether this component supports routing (has an href property) */
|
|
31
|
+
isLinkComponent?: boolean;
|
|
32
|
+
/** Whether this component is a checkbox (gds-checkbox) that needs special boolean handling */
|
|
33
|
+
isCheckboxComponent?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface ComponentEvent {
|
|
36
|
+
/** Original event name from web component (e.g., 'gds-close') */
|
|
37
|
+
name: string;
|
|
38
|
+
/** Event type (e.g., 'CustomEvent<string>') */
|
|
39
|
+
type: string;
|
|
40
|
+
/** Event description */
|
|
41
|
+
description?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface SlotInfo {
|
|
44
|
+
/** Slot name (empty string for default slot) */
|
|
45
|
+
name: string;
|
|
46
|
+
/** Slot description */
|
|
47
|
+
description?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface MethodInfo {
|
|
50
|
+
/** Method name */
|
|
51
|
+
name: string;
|
|
52
|
+
/** Return type */
|
|
53
|
+
returnType?: Type;
|
|
54
|
+
/** Method parameters */
|
|
55
|
+
parameters: ParameterInfo[];
|
|
56
|
+
/** Method description */
|
|
57
|
+
description?: string;
|
|
58
|
+
}
|
|
59
|
+
export interface ParameterInfo {
|
|
60
|
+
/** Parameter name */
|
|
61
|
+
name: string;
|
|
62
|
+
/** Parameter type */
|
|
63
|
+
type: string;
|
|
64
|
+
/** Whether parameter is optional */
|
|
65
|
+
optional: boolean;
|
|
66
|
+
/** Parameter description */
|
|
67
|
+
description?: string;
|
|
68
|
+
}
|
|
File without changes
|
|
@@ -105,7 +105,7 @@ export declare const html: (strings: TemplateStringsArray, ...values: any[]) =>
|
|
|
105
105
|
* Returns the correctly scoped tag name for the given tag.
|
|
106
106
|
* @param tagName The tag name to scope
|
|
107
107
|
*/
|
|
108
|
-
export declare function getScopedTagName(tagName: string): string;
|
|
108
|
+
export declare function getScopedTagName(tagName: string, alwaysAddSuffix?: boolean): string;
|
|
109
109
|
/**
|
|
110
110
|
* Returns the unscoped tag name for the given scoped tag.
|
|
111
111
|
* @param tagName The scoped tag name to unscope
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../chunks/chunk.QU3DSPNU.js";
|
|
2
2
|
import { html as litHtml } from "lit";
|
|
3
|
-
const VER_SUFFIX = "-
|
|
3
|
+
const VER_SUFFIX = "-607d3a";
|
|
4
4
|
class ScopedElementRegistry {
|
|
5
5
|
static get instance() {
|
|
6
6
|
if (!globalThis.__gdsElementLookupTable?.[VER_SUFFIX])
|
|
@@ -60,8 +60,8 @@ function htmlTemplateTagFactory(extendedTag) {
|
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
const html = htmlTemplateTagFactory(litHtml);
|
|
63
|
-
function getScopedTagName(tagName) {
|
|
64
|
-
return ScopedElementRegistry.instance.get(tagName) ?? tagName;
|
|
63
|
+
function getScopedTagName(tagName, alwaysAddSuffix = false) {
|
|
64
|
+
return ScopedElementRegistry.instance.get(tagName) ?? tagName + (alwaysAddSuffix ? VER_SUFFIX : "");
|
|
65
65
|
}
|
|
66
66
|
function getUnscopedTagName(tagName) {
|
|
67
67
|
return [...ScopedElementRegistry.instance.entries()].find(
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import "../../chunks/chunk.QU3DSPNU.js";
|
|
2
2
|
const Focusable = (superClass) => {
|
|
3
3
|
class HighlightableElement extends superClass {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
focus(options) {
|
|
5
|
+
this.setAttribute("tabindex", "0");
|
|
6
|
+
super.focus(options);
|
|
7
|
+
}
|
|
8
|
+
connectedCallback() {
|
|
9
|
+
super.connectedCallback();
|
|
10
|
+
this.addEventListener("blur", (e) => {
|
|
7
11
|
this.setAttribute("tabindex", "-1");
|
|
8
12
|
this.dispatchEvent(
|
|
9
13
|
new FocusEvent("gds-blur", {
|
|
@@ -12,8 +16,8 @@ const Focusable = (superClass) => {
|
|
|
12
16
|
relatedTarget: e.relatedTarget
|
|
13
17
|
})
|
|
14
18
|
);
|
|
15
|
-
};
|
|
16
|
-
this.
|
|
19
|
+
});
|
|
20
|
+
this.addEventListener("focus", (e) => {
|
|
17
21
|
this.dispatchEvent(
|
|
18
22
|
new FocusEvent("gds-focus", {
|
|
19
23
|
bubbles: false,
|
|
@@ -21,11 +25,7 @@ const Focusable = (superClass) => {
|
|
|
21
25
|
relatedTarget: e.relatedTarget
|
|
22
26
|
})
|
|
23
27
|
);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
focus(options) {
|
|
27
|
-
this.setAttribute("tabindex", "0");
|
|
28
|
-
super.focus(options);
|
|
28
|
+
});
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
return HighlightableElement;
|