@sebgroup/green-core 3.11.0 → 3.12.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/alert/alert.component.js +5 -0
- package/components/breadcrumbs/breadcrumbs.component.js +4 -0
- package/components/button/button.component.js +11 -3
- package/components/calendar/calendar.component.js +5 -0
- package/components/checkbox/checkbox-group/checkbox-group.component.d.ts +2 -0
- package/components/checkbox/checkbox-group/checkbox-group.component.js +6 -0
- package/components/checkbox/checkbox.component.js +6 -0
- package/components/context-menu/context-menu.component.js +6 -0
- package/components/datepicker/datepicker.component.js +6 -0
- package/components/details/details.component.js +6 -1
- package/components/dialog/dialog.component.js +5 -0
- package/components/dropdown/dropdown.component.js +6 -0
- package/components/filter-chips/filter-chips.component.js +6 -1
- package/components/input/input.component.d.ts +2 -0
- package/components/input/input.component.js +6 -0
- package/components/link/link.component.js +6 -1
- package/components/menu-button/menu-button.component.js +7 -1
- package/components/menu-button/menu-button.styles.js +0 -1
- package/components/pagination/pagination.component.js +19 -12
- package/components/popover/popover.component.js +5 -0
- package/components/radio/radio-group/radio-group.component.d.ts +2 -0
- package/components/radio/radio-group/radio-group.component.js +6 -0
- package/components/radio/radio.component.js +6 -1
- package/components/segmented-control/segmented-control.component.js +5 -0
- package/components/select/select.component.d.ts +3 -2
- package/components/select/select.component.js +6 -0
- package/components/switch/switch.component.js +10 -2
- package/components/table/table.component.js +21 -8
- package/components/table/table.styles.js +19 -0
- package/components/textarea/textarea.component.d.ts +3 -0
- package/components/textarea/textarea.component.js +6 -0
- package/custom-elements.json +137900 -137390
- package/gds-element.js +1 -1
- package/generated/mcp/checkbox-group/angular.md +8 -0
- package/generated/mcp/checkbox-group/api.md +7 -0
- package/generated/mcp/checkbox-group/react.md +8 -0
- package/generated/mcp/components.json +1 -1
- package/generated/mcp/icons.json +1 -1
- package/generated/mcp/index.json +1 -1
- package/generated/mcp/input/angular.md +1 -0
- package/generated/mcp/input/api.md +1 -0
- package/generated/mcp/input/react.md +1 -0
- package/generated/mcp/radio-group/angular.md +1 -0
- package/generated/mcp/radio-group/api.md +1 -0
- package/generated/mcp/radio-group/react.md +1 -0
- package/generated/mcp/select/angular.md +1 -0
- package/generated/mcp/select/api.md +3 -2
- package/generated/mcp/select/react.md +1 -0
- package/generated/mcp/textarea/angular.md +1 -0
- package/generated/mcp/textarea/api.md +1 -0
- package/generated/mcp/textarea/react.md +1 -0
- package/generated/mcp/tokens.json +1 -1
- package/generated/react/alert/index.d.ts +8 -0
- package/generated/react/avatar/index.d.ts +8 -0
- package/generated/react/avatar-group/index.d.ts +8 -0
- package/generated/react/backdrop/index.d.ts +8 -0
- package/generated/react/badge/index.d.ts +8 -0
- package/generated/react/blur/index.d.ts +8 -0
- package/generated/react/breadcrumb/index.d.ts +8 -0
- package/generated/react/breadcrumbs/index.d.ts +8 -0
- package/generated/react/button/index.d.ts +8 -0
- package/generated/react/calendar/index.d.ts +8 -0
- package/generated/react/card/index.d.ts +8 -0
- package/generated/react/card-linked/index.d.ts +8 -0
- package/generated/react/card-pattern-01/index.d.ts +8 -0
- package/generated/react/checkbox/index.d.ts +8 -0
- package/generated/react/checkbox-group/index.d.ts +10 -0
- package/generated/react/coachmark/index.d.ts +8 -0
- package/generated/react/context-menu/index.d.ts +8 -0
- package/generated/react/datepicker/index.d.ts +8 -0
- package/generated/react/details/index.d.ts +8 -0
- package/generated/react/dialog/index.d.ts +8 -0
- package/generated/react/div/index.d.ts +8 -0
- package/generated/react/divider/index.d.ts +8 -0
- package/generated/react/dropdown/index.d.ts +8 -0
- package/generated/react/fab/index.d.ts +8 -0
- package/generated/react/filter-chip/index.d.ts +8 -0
- package/generated/react/filter-chips/index.d.ts +8 -0
- package/generated/react/flex/index.d.ts +8 -0
- package/generated/react/form-summary/index.d.ts +8 -0
- package/generated/react/formatted-account/index.d.ts +8 -0
- package/generated/react/formatted-date/index.d.ts +8 -0
- package/generated/react/formatted-number/index.d.ts +8 -0
- package/generated/react/grid/index.d.ts +8 -0
- package/generated/react/grouped-list/index.d.ts +8 -0
- package/generated/react/icons/icon-ai/index.d.ts +8 -0
- package/generated/react/icons/icon-airplane-up/index.d.ts +8 -0
- package/generated/react/icons/icon-archive/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-bottom-top/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-box-left/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-box-left-alt/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-box-right/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-down/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-inbox/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-left/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-left-right/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-out-of-box/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-right/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-right-circle/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-right-down-circle/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-right-up-circle/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-rotate-clockwise/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-rotate-counter-clockwise/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-rotate-left-right/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-rotate-right-left/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-share-left/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-share-right/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-split/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-up/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-wall-down/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-wall-left/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-wall-right/index.d.ts +8 -0
- package/generated/react/icons/icon-arrow-wall-up/index.d.ts +8 -0
- package/generated/react/icons/icon-arrows-repeat-right/index.d.ts +8 -0
- package/generated/react/icons/icon-asterisk/index.d.ts +8 -0
- package/generated/react/icons/icon-at/index.d.ts +8 -0
- package/generated/react/icons/icon-back/index.d.ts +8 -0
- package/generated/react/icons/icon-backward/index.d.ts +8 -0
- package/generated/react/icons/icon-bag/index.d.ts +8 -0
- package/generated/react/icons/icon-bank/index.d.ts +8 -0
- package/generated/react/icons/icon-banknote/index.d.ts +8 -0
- package/generated/react/icons/icon-banknote-2/index.d.ts +8 -0
- package/generated/react/icons/icon-barcode/index.d.ts +8 -0
- package/generated/react/icons/icon-bars-three/index.d.ts +8 -0
- package/generated/react/icons/icon-bars-two/index.d.ts +8 -0
- package/generated/react/icons/icon-basket/index.d.ts +8 -0
- package/generated/react/icons/icon-battery-loading/index.d.ts +8 -0
- package/generated/react/icons/icon-bell/index.d.ts +8 -0
- package/generated/react/icons/icon-block/index.d.ts +8 -0
- package/generated/react/icons/icon-book/index.d.ts +8 -0
- package/generated/react/icons/icon-bookmark/index.d.ts +8 -0
- package/generated/react/icons/icon-bookmark-check/index.d.ts +8 -0
- package/generated/react/icons/icon-bookmark-delete/index.d.ts +8 -0
- package/generated/react/icons/icon-bookmark-plus/index.d.ts +8 -0
- package/generated/react/icons/icon-bookmark-remove/index.d.ts +8 -0
- package/generated/react/icons/icon-books/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-app-store/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-apple-music/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-bankid/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-chrome/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-facebook/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-figma/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-firefox/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-github/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-green/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-instagram/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-linkedin/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-play-store/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-rss-feed/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-seb/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-spotify/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-storybook/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-swish-word/index.d.ts +8 -0
- package/generated/react/icons/icon-brand-x/index.d.ts +8 -0
- package/generated/react/icons/icon-brush/index.d.ts +8 -0
- package/generated/react/icons/icon-bubble-annotation/index.d.ts +8 -0
- package/generated/react/icons/icon-bubbles/index.d.ts +8 -0
- package/generated/react/icons/icon-buildings/index.d.ts +8 -0
- package/generated/react/icons/icon-bullet-list/index.d.ts +8 -0
- package/generated/react/icons/icon-calculator/index.d.ts +8 -0
- package/generated/react/icons/icon-calendar/index.d.ts +8 -0
- package/generated/react/icons/icon-calendar-check/index.d.ts +8 -0
- package/generated/react/icons/icon-calendar-repeat/index.d.ts +8 -0
- package/generated/react/icons/icon-calender-add/index.d.ts +8 -0
- package/generated/react/icons/icon-call/index.d.ts +8 -0
- package/generated/react/icons/icon-car/index.d.ts +8 -0
- package/generated/react/icons/icon-carussel/index.d.ts +8 -0
- package/generated/react/icons/icon-chain-link/index.d.ts +8 -0
- package/generated/react/icons/icon-chain-link-broken/index.d.ts +8 -0
- package/generated/react/icons/icon-chart-two/index.d.ts +8 -0
- package/generated/react/icons/icon-checklist/index.d.ts +8 -0
- package/generated/react/icons/icon-checkmark/index.d.ts +8 -0
- package/generated/react/icons/icon-chevron-bottom/index.d.ts +8 -0
- package/generated/react/icons/icon-chevron-double-down/index.d.ts +8 -0
- package/generated/react/icons/icon-chevron-double-left/index.d.ts +8 -0
- package/generated/react/icons/icon-chevron-double-right/index.d.ts +8 -0
- package/generated/react/icons/icon-chevron-double-up/index.d.ts +8 -0
- package/generated/react/icons/icon-chevron-down-small/index.d.ts +8 -0
- package/generated/react/icons/icon-chevron-grabber-vertical/index.d.ts +8 -0
- package/generated/react/icons/icon-chevron-grabber-vertical-reversed/index.d.ts +8 -0
- package/generated/react/icons/icon-chevron-left/index.d.ts +8 -0
- package/generated/react/icons/icon-chevron-left-small/index.d.ts +8 -0
- package/generated/react/icons/icon-chevron-right/index.d.ts +8 -0
- package/generated/react/icons/icon-chevron-right-small/index.d.ts +8 -0
- package/generated/react/icons/icon-chevron-top/index.d.ts +8 -0
- package/generated/react/icons/icon-chevron-top-small/index.d.ts +8 -0
- package/generated/react/icons/icon-circle-ban/index.d.ts +8 -0
- package/generated/react/icons/icon-circle-check/index.d.ts +8 -0
- package/generated/react/icons/icon-circle-dots/index.d.ts +8 -0
- package/generated/react/icons/icon-circle-info/index.d.ts +8 -0
- package/generated/react/icons/icon-circle-minus/index.d.ts +8 -0
- package/generated/react/icons/icon-circle-placeholder-on/index.d.ts +8 -0
- package/generated/react/icons/icon-circle-plus/index.d.ts +8 -0
- package/generated/react/icons/icon-circle-questionmark/index.d.ts +8 -0
- package/generated/react/icons/icon-circle-x/index.d.ts +8 -0
- package/generated/react/icons/icon-circles-three/index.d.ts +8 -0
- package/generated/react/icons/icon-clock/index.d.ts +8 -0
- package/generated/react/icons/icon-cloud-download/index.d.ts +8 -0
- package/generated/react/icons/icon-cloud-upload/index.d.ts +8 -0
- package/generated/react/icons/icon-cloudy-sun/index.d.ts +8 -0
- package/generated/react/icons/icon-code/index.d.ts +8 -0
- package/generated/react/icons/icon-code-brackets/index.d.ts +8 -0
- package/generated/react/icons/icon-compass-round/index.d.ts +8 -0
- package/generated/react/icons/icon-cookies/index.d.ts +8 -0
- package/generated/react/icons/icon-copy/index.d.ts +8 -0
- package/generated/react/icons/icon-credit-card/index.d.ts +8 -0
- package/generated/react/icons/icon-credit-card-add/index.d.ts +8 -0
- package/generated/react/icons/icon-cross-large/index.d.ts +8 -0
- package/generated/react/icons/icon-cross-small/index.d.ts +8 -0
- package/generated/react/icons/icon-cup-hot/index.d.ts +8 -0
- package/generated/react/icons/icon-cursor/index.d.ts +8 -0
- package/generated/react/icons/icon-details/index.d.ts +8 -0
- package/generated/react/icons/icon-devices/index.d.ts +8 -0
- package/generated/react/icons/icon-direction/index.d.ts +8 -0
- package/generated/react/icons/icon-dollar/index.d.ts +8 -0
- package/generated/react/icons/icon-dot-grid-one-horizontal/index.d.ts +8 -0
- package/generated/react/icons/icon-dot-grid-one-vertical/index.d.ts +8 -0
- package/generated/react/icons/icon-dot-grid-three/index.d.ts +8 -0
- package/generated/react/icons/icon-dot-grid-two/index.d.ts +8 -0
- package/generated/react/icons/icon-email/index.d.ts +8 -0
- package/generated/react/icons/icon-emoji-angry/index.d.ts +8 -0
- package/generated/react/icons/icon-emoji-neutral/index.d.ts +8 -0
- package/generated/react/icons/icon-emoji-sad/index.d.ts +8 -0
- package/generated/react/icons/icon-emoji-smile/index.d.ts +8 -0
- package/generated/react/icons/icon-emoji-smiley/index.d.ts +8 -0
- package/generated/react/icons/icon-euro/index.d.ts +8 -0
- package/generated/react/icons/icon-expand/index.d.ts +8 -0
- package/generated/react/icons/icon-eye-open/index.d.ts +8 -0
- package/generated/react/icons/icon-eye-slash/index.d.ts +8 -0
- package/generated/react/icons/icon-fashion/index.d.ts +8 -0
- package/generated/react/icons/icon-fast-forward/index.d.ts +8 -0
- package/generated/react/icons/icon-file-bend/index.d.ts +8 -0
- package/generated/react/icons/icon-file-chart/index.d.ts +8 -0
- package/generated/react/icons/icon-file-text/index.d.ts +8 -0
- package/generated/react/icons/icon-files/index.d.ts +8 -0
- package/generated/react/icons/icon-filter/index.d.ts +8 -0
- package/generated/react/icons/icon-flag/index.d.ts +8 -0
- package/generated/react/icons/icon-floppy-disk/index.d.ts +8 -0
- package/generated/react/icons/icon-focus/index.d.ts +8 -0
- package/generated/react/icons/icon-folder/index.d.ts +8 -0
- package/generated/react/icons/icon-folder-add-right/index.d.ts +8 -0
- package/generated/react/icons/icon-fullscreen/index.d.ts +8 -0
- package/generated/react/icons/icon-gift/index.d.ts +8 -0
- package/generated/react/icons/icon-globus/index.d.ts +8 -0
- package/generated/react/icons/icon-graduate-cap/index.d.ts +8 -0
- package/generated/react/icons/icon-green-power/index.d.ts +8 -0
- package/generated/react/icons/icon-group/index.d.ts +8 -0
- package/generated/react/icons/icon-growth/index.d.ts +8 -0
- package/generated/react/icons/icon-headphones/index.d.ts +8 -0
- package/generated/react/icons/icon-heart/index.d.ts +8 -0
- package/generated/react/icons/icon-heart-beat/index.d.ts +8 -0
- package/generated/react/icons/icon-history/index.d.ts +8 -0
- package/generated/react/icons/icon-home-energy-one/index.d.ts +8 -0
- package/generated/react/icons/icon-home-energy-two/index.d.ts +8 -0
- package/generated/react/icons/icon-home-open/index.d.ts +8 -0
- package/generated/react/icons/icon-home-roof/index.d.ts +8 -0
- package/generated/react/icons/icon-horizontal-alignment-bottom/index.d.ts +8 -0
- package/generated/react/icons/icon-hourglass/index.d.ts +8 -0
- package/generated/react/icons/icon-images/index.d.ts +8 -0
- package/generated/react/icons/icon-inbox-empty/index.d.ts +8 -0
- package/generated/react/icons/icon-industry/index.d.ts +8 -0
- package/generated/react/icons/icon-jpg/index.d.ts +8 -0
- package/generated/react/icons/icon-key/index.d.ts +8 -0
- package/generated/react/icons/icon-knife-spoon/index.d.ts +8 -0
- package/generated/react/icons/icon-lab/index.d.ts +8 -0
- package/generated/react/icons/icon-law/index.d.ts +8 -0
- package/generated/react/icons/icon-leisure/index.d.ts +8 -0
- package/generated/react/icons/icon-light-bulb-simple/index.d.ts +8 -0
- package/generated/react/icons/icon-lightning/index.d.ts +8 -0
- package/generated/react/icons/icon-line-chart-four/index.d.ts +8 -0
- package/generated/react/icons/icon-line-chart-one/index.d.ts +8 -0
- package/generated/react/icons/icon-line-chart-three/index.d.ts +8 -0
- package/generated/react/icons/icon-line-chart-two/index.d.ts +8 -0
- package/generated/react/icons/icon-lock/index.d.ts +8 -0
- package/generated/react/icons/icon-macbook-air/index.d.ts +8 -0
- package/generated/react/icons/icon-magnifying-glass/index.d.ts +8 -0
- package/generated/react/icons/icon-map-pin/index.d.ts +8 -0
- package/generated/react/icons/icon-megaphone/index.d.ts +8 -0
- package/generated/react/icons/icon-menu-sidebar/index.d.ts +8 -0
- package/generated/react/icons/icon-mic-off/index.d.ts +8 -0
- package/generated/react/icons/icon-mic-on/index.d.ts +8 -0
- package/generated/react/icons/icon-minimize/index.d.ts +8 -0
- package/generated/react/icons/icon-minus-large/index.d.ts +8 -0
- package/generated/react/icons/icon-minus-small/index.d.ts +8 -0
- package/generated/react/icons/icon-money-hand/index.d.ts +8 -0
- package/generated/react/icons/icon-moneybag/index.d.ts +8 -0
- package/generated/react/icons/icon-moon/index.d.ts +8 -0
- package/generated/react/icons/icon-mute/index.d.ts +8 -0
- package/generated/react/icons/icon-newspaper/index.d.ts +8 -0
- package/generated/react/icons/icon-office/index.d.ts +8 -0
- package/generated/react/icons/icon-page-add/index.d.ts +8 -0
- package/generated/react/icons/icon-paper-plane-top-right/index.d.ts +8 -0
- package/generated/react/icons/icon-paperclip/index.d.ts +8 -0
- package/generated/react/icons/icon-pause/index.d.ts +8 -0
- package/generated/react/icons/icon-pdf/index.d.ts +8 -0
- package/generated/react/icons/icon-pencil-sign/index.d.ts +8 -0
- package/generated/react/icons/icon-pencil-sparkle/index.d.ts +8 -0
- package/generated/react/icons/icon-pencil-wave/index.d.ts +8 -0
- package/generated/react/icons/icon-pension/index.d.ts +8 -0
- package/generated/react/icons/icon-people/index.d.ts +8 -0
- package/generated/react/icons/icon-people-a11y/index.d.ts +8 -0
- package/generated/react/icons/icon-people-add/index.d.ts +8 -0
- package/generated/react/icons/icon-people-added/index.d.ts +8 -0
- package/generated/react/icons/icon-people-circle/index.d.ts +8 -0
- package/generated/react/icons/icon-people-copy/index.d.ts +8 -0
- package/generated/react/icons/icon-people-profile/index.d.ts +8 -0
- package/generated/react/icons/icon-people-remove/index.d.ts +8 -0
- package/generated/react/icons/icon-percent/index.d.ts +8 -0
- package/generated/react/icons/icon-phone/index.d.ts +8 -0
- package/generated/react/icons/icon-pie-chart/index.d.ts +8 -0
- package/generated/react/icons/icon-piggy-bank/index.d.ts +8 -0
- package/generated/react/icons/icon-pin/index.d.ts +8 -0
- package/generated/react/icons/icon-pinch/index.d.ts +8 -0
- package/generated/react/icons/icon-play/index.d.ts +8 -0
- package/generated/react/icons/icon-play-circle/index.d.ts +8 -0
- package/generated/react/icons/icon-plus-large/index.d.ts +8 -0
- package/generated/react/icons/icon-plus-small/index.d.ts +8 -0
- package/generated/react/icons/icon-png/index.d.ts +8 -0
- package/generated/react/icons/icon-poop/index.d.ts +8 -0
- package/generated/react/icons/icon-postcard/index.d.ts +8 -0
- package/generated/react/icons/icon-pound/index.d.ts +8 -0
- package/generated/react/icons/icon-power/index.d.ts +8 -0
- package/generated/react/icons/icon-power-plant/index.d.ts +8 -0
- package/generated/react/icons/icon-printer/index.d.ts +8 -0
- package/generated/react/icons/icon-push/index.d.ts +8 -0
- package/generated/react/icons/icon-qr-code/index.d.ts +8 -0
- package/generated/react/icons/icon-rainy/index.d.ts +8 -0
- package/generated/react/icons/icon-raising-hand/index.d.ts +8 -0
- package/generated/react/icons/icon-reading-list/index.d.ts +8 -0
- package/generated/react/icons/icon-receipt-bill/index.d.ts +8 -0
- package/generated/react/icons/icon-receiption-bell/index.d.ts +8 -0
- package/generated/react/icons/icon-record/index.d.ts +8 -0
- package/generated/react/icons/icon-refund/index.d.ts +8 -0
- package/generated/react/icons/icon-robot/index.d.ts +8 -0
- package/generated/react/icons/icon-rocket/index.d.ts +8 -0
- package/generated/react/icons/icon-run-shortcut/index.d.ts +8 -0
- package/generated/react/icons/icon-safari/index.d.ts +8 -0
- package/generated/react/icons/icon-school/index.d.ts +8 -0
- package/generated/react/icons/icon-scissors/index.d.ts +8 -0
- package/generated/react/icons/icon-search-menu/index.d.ts +8 -0
- package/generated/react/icons/icon-settings-gear/index.d.ts +8 -0
- package/generated/react/icons/icon-settings-slider-hor/index.d.ts +8 -0
- package/generated/react/icons/icon-settings-slider-ver/index.d.ts +8 -0
- package/generated/react/icons/icon-shapes/index.d.ts +8 -0
- package/generated/react/icons/icon-share/index.d.ts +8 -0
- package/generated/react/icons/icon-shield/index.d.ts +8 -0
- package/generated/react/icons/icon-shield-checked/index.d.ts +8 -0
- package/generated/react/icons/icon-shield-crossed/index.d.ts +8 -0
- package/generated/react/icons/icon-shopping-bag/index.d.ts +8 -0
- package/generated/react/icons/icon-signature/index.d.ts +8 -0
- package/generated/react/icons/icon-smartwatch/index.d.ts +8 -0
- package/generated/react/icons/icon-solar/index.d.ts +8 -0
- package/generated/react/icons/icon-sort/index.d.ts +8 -0
- package/generated/react/icons/icon-sort-ascending/index.d.ts +8 -0
- package/generated/react/icons/icon-sort-descending/index.d.ts +8 -0
- package/generated/react/icons/icon-sort-down/index.d.ts +8 -0
- package/generated/react/icons/icon-sort-up/index.d.ts +8 -0
- package/generated/react/icons/icon-square-arrow-top-right/index.d.ts +8 -0
- package/generated/react/icons/icon-square-behind-square/index.d.ts +8 -0
- package/generated/react/icons/icon-square-grid-circle/index.d.ts +8 -0
- package/generated/react/icons/icon-square-placeholder/index.d.ts +8 -0
- package/generated/react/icons/icon-star/index.d.ts +8 -0
- package/generated/react/icons/icon-store/index.d.ts +8 -0
- package/generated/react/icons/icon-sun/index.d.ts +8 -0
- package/generated/react/icons/icon-sunset-arrow-down/index.d.ts +8 -0
- package/generated/react/icons/icon-tag/index.d.ts +8 -0
- package/generated/react/icons/icon-target-arrow/index.d.ts +8 -0
- package/generated/react/icons/icon-television/index.d.ts +8 -0
- package/generated/react/icons/icon-tennis/index.d.ts +8 -0
- package/generated/react/icons/icon-text-edit/index.d.ts +8 -0
- package/generated/react/icons/icon-thermostat/index.d.ts +8 -0
- package/generated/react/icons/icon-thumbs-down/index.d.ts +8 -0
- package/generated/react/icons/icon-thumbs-up/index.d.ts +8 -0
- package/generated/react/icons/icon-ticket/index.d.ts +8 -0
- package/generated/react/icons/icon-trading-view-candles/index.d.ts +8 -0
- package/generated/react/icons/icon-trash-can/index.d.ts +8 -0
- package/generated/react/icons/icon-tree/index.d.ts +8 -0
- package/generated/react/icons/icon-trending-five/index.d.ts +8 -0
- package/generated/react/icons/icon-trending-four/index.d.ts +8 -0
- package/generated/react/icons/icon-trending-one/index.d.ts +8 -0
- package/generated/react/icons/icon-trending-three/index.d.ts +8 -0
- package/generated/react/icons/icon-trending-two/index.d.ts +8 -0
- package/generated/react/icons/icon-triangle-exclamation/index.d.ts +8 -0
- package/generated/react/icons/icon-truck/index.d.ts +8 -0
- package/generated/react/icons/icon-umbrella-security/index.d.ts +8 -0
- package/generated/react/icons/icon-unlocked/index.d.ts +8 -0
- package/generated/react/icons/icon-volume-full/index.d.ts +8 -0
- package/generated/react/icons/icon-volume-half/index.d.ts +8 -0
- package/generated/react/icons/icon-volume-off/index.d.ts +8 -0
- package/generated/react/icons/icon-wallet/index.d.ts +8 -0
- package/generated/react/icons/icon-warning-sign/index.d.ts +8 -0
- package/generated/react/icons/icon-wifi-full/index.d.ts +8 -0
- package/generated/react/icons/icon-youtube/index.d.ts +8 -0
- package/generated/react/icons/icon-zap/index.d.ts +8 -0
- package/generated/react/icons/icon-zoom-in/index.d.ts +8 -0
- package/generated/react/icons/icon-zoom-out/index.d.ts +8 -0
- package/generated/react/img/index.d.ts +8 -0
- package/generated/react/index.d.ts +8 -8
- package/generated/react/index.js +8 -8
- package/generated/react/input/index.d.ts +10 -0
- package/generated/react/link/index.d.ts +8 -0
- package/generated/react/list-item/index.d.ts +8 -0
- package/generated/react/mask/index.d.ts +8 -0
- package/generated/react/menu-button/index.d.ts +8 -0
- package/generated/react/menu-heading/index.d.ts +8 -0
- package/generated/react/menu-item/index.d.ts +8 -0
- package/generated/react/option/index.d.ts +8 -0
- package/generated/react/pagination/index.d.ts +8 -0
- package/generated/react/popover/index.d.ts +8 -0
- package/generated/react/radio/index.d.ts +8 -0
- package/generated/react/radio-group/index.d.ts +10 -0
- package/generated/react/rich-text/index.d.ts +8 -0
- package/generated/react/segment/index.d.ts +8 -0
- package/generated/react/segmented-control/index.d.ts +8 -0
- package/generated/react/select/index.d.ts +10 -0
- package/generated/react/sensitive-account/index.d.ts +8 -0
- package/generated/react/sensitive-date/index.d.ts +8 -0
- package/generated/react/sensitive-number/index.d.ts +8 -0
- package/generated/react/signal/index.d.ts +8 -0
- package/generated/react/spinner/index.d.ts +8 -0
- package/generated/react/switch/index.d.ts +8 -0
- package/generated/react/table/index.d.ts +8 -0
- package/generated/react/text/index.d.ts +8 -0
- package/generated/react/textarea/index.d.ts +10 -0
- package/generated/react/theme/index.d.ts +8 -0
- package/generated/react/video/index.d.ts +8 -0
- package/package.json +1 -1
- package/utils/decorators/aria-forwarding.d.ts +38 -0
- package/utils/decorators/aria-forwarding.js +130 -0
- package/utils/decorators/aria-forwarding.types.d.ts +59 -0
- package/utils/decorators/aria-forwarding.types.js +14 -0
- package/utils/decorators/observe-attributes.d.ts +31 -0
- package/utils/decorators/observe-attributes.js +54 -0
- package/utils/helpers/custom-element-scoping.js +1 -1
|
@@ -15,6 +15,7 @@ import { html as staticHtml, unsafeStatic } from "lit/static-html.js";
|
|
|
15
15
|
import { GdsElement } from "../../gds-element.js";
|
|
16
16
|
import { gdsCustomElement, getScopedTagName, html } from "../../scoping.js";
|
|
17
17
|
import { tokens } from "../../tokens.style.js";
|
|
18
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
18
19
|
import { GdsButton } from "../button/button.component.js";
|
|
19
20
|
import { GdsCard } from "../card/card.component.js";
|
|
20
21
|
import { IconCircleCheck } from "../icon/icons/circle-check.component.js";
|
|
@@ -357,6 +358,10 @@ GdsAlert = __decorateClass([
|
|
|
357
358
|
IconCrossSmall
|
|
358
359
|
]
|
|
359
360
|
}),
|
|
361
|
+
ariaForwarding({
|
|
362
|
+
labelledBy: '[role="alert"]',
|
|
363
|
+
describedBy: '[role="alert"]'
|
|
364
|
+
}),
|
|
360
365
|
localized()
|
|
361
366
|
], GdsAlert);
|
|
362
367
|
export {
|
|
@@ -6,6 +6,7 @@ import { property } from "lit/decorators.js";
|
|
|
6
6
|
import { classMap } from "lit/directives/class-map.js";
|
|
7
7
|
import { GdsElement } from "../../gds-element.js";
|
|
8
8
|
import { tokens } from "../../tokens.style.js";
|
|
9
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
9
10
|
import {
|
|
10
11
|
gdsCustomElement,
|
|
11
12
|
html
|
|
@@ -68,6 +69,9 @@ GdsBreadcrumbs = __decorateClass([
|
|
|
68
69
|
gdsCustomElement("gds-breadcrumbs", {
|
|
69
70
|
dependsOn: [IconChevronLeft]
|
|
70
71
|
}),
|
|
72
|
+
ariaForwarding({
|
|
73
|
+
labelledBy: "nav"
|
|
74
|
+
}),
|
|
71
75
|
localized()
|
|
72
76
|
], GdsBreadcrumbs);
|
|
73
77
|
export {
|
|
@@ -16,6 +16,7 @@ import { html as customElementHtml, gdsCustomElement } from "../../scoping.js";
|
|
|
16
16
|
import { tokens } from "../../tokens.style.js";
|
|
17
17
|
import { TransitionalStyles } from "../../transitional-styles.js";
|
|
18
18
|
import { observeLightDOM } from "../../utils/decorators/index.js";
|
|
19
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
19
20
|
import { styleExpressionProperty } from "../../utils/decorators/style-expression-property.js";
|
|
20
21
|
import { forwardAttributes } from "../../utils/directives/index.js";
|
|
21
22
|
import { stripWhitespace } from "../../utils/helpers/strip-white-space.js";
|
|
@@ -29,7 +30,7 @@ import ButtonStyles from "./button.styles.js";
|
|
|
29
30
|
const ariaForwards = ["aria-label", "aria-haspopup", "aria-expanded"];
|
|
30
31
|
const attributeForwards = [...ariaForwards, "gds-tabindex"];
|
|
31
32
|
const html = stripWhitespace(customElementHtml);
|
|
32
|
-
|
|
33
|
+
let Button = class extends GdsFormControlElement {
|
|
33
34
|
constructor() {
|
|
34
35
|
super(...arguments);
|
|
35
36
|
__privateAdd(this, _isLink);
|
|
@@ -117,7 +118,7 @@ class Button extends GdsFormControlElement {
|
|
|
117
118
|
@click="${__privateGet(this, _handleClick)}"
|
|
118
119
|
@keydown="${__privateGet(this, _handleKeyDown)}"
|
|
119
120
|
${forwardAttributes(
|
|
120
|
-
(attr) => attr.name
|
|
121
|
+
(attr) => attr.name === "gds-role" || attributeForwards.includes(attr.name)
|
|
121
122
|
)}
|
|
122
123
|
>
|
|
123
124
|
<slot name="lead"></slot>
|
|
@@ -136,7 +137,7 @@ class Button extends GdsFormControlElement {
|
|
|
136
137
|
_attributeChanged() {
|
|
137
138
|
this.requestUpdate();
|
|
138
139
|
}
|
|
139
|
-
}
|
|
140
|
+
};
|
|
140
141
|
_isIconButton = new WeakMap();
|
|
141
142
|
_isLink = new WeakSet();
|
|
142
143
|
isLink_get = function() {
|
|
@@ -216,6 +217,13 @@ __decorateClass([
|
|
|
216
217
|
characterData: false
|
|
217
218
|
})
|
|
218
219
|
], Button.prototype, "_attributeChanged", 1);
|
|
220
|
+
Button = __decorateClass([
|
|
221
|
+
ariaForwarding({
|
|
222
|
+
labelledBy: ".button",
|
|
223
|
+
describedBy: ".button",
|
|
224
|
+
controls: ".button"
|
|
225
|
+
})
|
|
226
|
+
], Button);
|
|
219
227
|
let GdsButton = class extends withSizeXProps(
|
|
220
228
|
withMarginProps(withLayoutChildProps(Button))
|
|
221
229
|
) {
|
|
@@ -24,6 +24,7 @@ import { GdsElement } from "../../gds-element.js";
|
|
|
24
24
|
import { gdsCustomElement } from "../../scoping.js";
|
|
25
25
|
import { tokens } from "../../tokens.style.js";
|
|
26
26
|
import { TransitionalStyles } from "../../transitional-styles.js";
|
|
27
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
27
28
|
import { watch } from "../../utils/decorators/watch.js";
|
|
28
29
|
import CalendarStyles from "./calendar.styles.js";
|
|
29
30
|
import { renderMonthGridView } from "./functions.js";
|
|
@@ -323,6 +324,10 @@ __decorateClass([
|
|
|
323
324
|
], GdsCalendar.prototype, "_valueChanged", 1);
|
|
324
325
|
GdsCalendar = __decorateClass([
|
|
325
326
|
gdsCustomElement("gds-calendar"),
|
|
327
|
+
ariaForwarding({
|
|
328
|
+
labelledBy: "table",
|
|
329
|
+
describedBy: "table"
|
|
330
|
+
}),
|
|
326
331
|
localized()
|
|
327
332
|
], GdsCalendar);
|
|
328
333
|
export {
|
|
@@ -47,6 +47,8 @@ declare const GdsCheckboxGroup_base: (new (...args: any[]) => import("../../../u
|
|
|
47
47
|
*
|
|
48
48
|
* @element gds-checkbox-group
|
|
49
49
|
*
|
|
50
|
+
* @event gds-ui-state - Fired when the extended supporting text is opened or closed by the user. Can be cancelled to prevent it from opening or closing.
|
|
51
|
+
*
|
|
50
52
|
*/
|
|
51
53
|
export declare class GdsCheckboxGroup extends GdsCheckboxGroup_base {
|
|
52
54
|
}
|
|
@@ -11,6 +11,7 @@ import { classMap } from "lit/directives/class-map.js";
|
|
|
11
11
|
import { GdsFormControlFooter } from "../../../primitives/form-control-footer/form-control-footer.component.js";
|
|
12
12
|
import { GdsFormControlHeader } from "../../../primitives/form-control-header/form-control-header.component.js";
|
|
13
13
|
import { gdsCustomElement, html } from "../../../scoping.js";
|
|
14
|
+
import { ariaForwarding } from "../../../utils/decorators/aria-forwarding.js";
|
|
14
15
|
import { observeLightDOM } from "../../../utils/decorators/index.js";
|
|
15
16
|
import { watch } from "../../../utils/decorators/watch.js";
|
|
16
17
|
import {
|
|
@@ -209,6 +210,11 @@ __decorateClass([
|
|
|
209
210
|
})
|
|
210
211
|
], CheckboxGroup.prototype, "_syncOnDOMChange", 1);
|
|
211
212
|
CheckboxGroup = __decorateClass([
|
|
213
|
+
ariaForwarding({
|
|
214
|
+
labelledBy: "#checkboxgroup",
|
|
215
|
+
describedBy: "#checkboxgroup",
|
|
216
|
+
errorMessage: "#checkboxgroup"
|
|
217
|
+
}),
|
|
212
218
|
localized()
|
|
213
219
|
], CheckboxGroup);
|
|
214
220
|
let GdsCheckboxGroup = class extends withLayoutChildProps(
|
|
@@ -12,6 +12,7 @@ import { gdsCustomElement, html } from "../../scoping.js";
|
|
|
12
12
|
import rbcbToggleStyles from "../../shared-styles/rbcb-toggle.style.js";
|
|
13
13
|
import { checkboxToggle } from "../../shared-styles/rbcb-toggle.template.js";
|
|
14
14
|
import { tokens } from "../../tokens.style.js";
|
|
15
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
15
16
|
import { watch } from "../../utils/decorators/watch.js";
|
|
16
17
|
import { GdsFormControlElement } from "../form/form-control.js";
|
|
17
18
|
import { IconCheckmark } from "../icon/icons/checkmark.component.js";
|
|
@@ -154,6 +155,11 @@ __decorateClass([
|
|
|
154
155
|
GdsCheckbox = __decorateClass([
|
|
155
156
|
gdsCustomElement("gds-checkbox", {
|
|
156
157
|
dependsOn: [GdsToggleControlBase, IconCheckmark, IconMinusSmall]
|
|
158
|
+
}),
|
|
159
|
+
ariaForwarding({
|
|
160
|
+
labelledBy: "#checkbox-input",
|
|
161
|
+
describedBy: "#checkbox-input",
|
|
162
|
+
errorMessage: "#checkbox-input"
|
|
157
163
|
})
|
|
158
164
|
], GdsCheckbox);
|
|
159
165
|
export {
|
|
@@ -15,6 +15,7 @@ import { GdsMenuItem } from "../../primitives/menu/menu-item.component.js";
|
|
|
15
15
|
import { GdsMenu } from "../../primitives/menu/menu.component.js";
|
|
16
16
|
import { tokens } from "../../tokens.style.js";
|
|
17
17
|
import { TransitionalStyles } from "../../transitional-styles.js";
|
|
18
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
18
19
|
import { watch } from "../../utils/decorators/watch.js";
|
|
19
20
|
import {
|
|
20
21
|
gdsCustomElement,
|
|
@@ -194,6 +195,11 @@ GdsContextMenu = __decorateClass([
|
|
|
194
195
|
IconDotGridOneHorizontal
|
|
195
196
|
]
|
|
196
197
|
}),
|
|
198
|
+
ariaForwarding({
|
|
199
|
+
labelledBy: "#trigger",
|
|
200
|
+
describedBy: "#trigger",
|
|
201
|
+
controls: "#trigger"
|
|
202
|
+
}),
|
|
197
203
|
localized()
|
|
198
204
|
], GdsContextMenu);
|
|
199
205
|
export {
|
|
@@ -23,6 +23,7 @@ import formControlHostStyle from "../../shared-styles/form-control-host.style.js
|
|
|
23
23
|
import { tokens } from "../../tokens.style.js";
|
|
24
24
|
import { TransitionalStyles } from "../../transitional-styles.js";
|
|
25
25
|
import { watch } from "../../utils/decorators/index.js";
|
|
26
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
26
27
|
import {
|
|
27
28
|
dateArrayConverter,
|
|
28
29
|
dateConverter
|
|
@@ -793,6 +794,11 @@ __decorateClass([
|
|
|
793
794
|
watch("open")
|
|
794
795
|
], Datepicker.prototype, "_handleOpenChange", 1);
|
|
795
796
|
Datepicker = __decorateClass([
|
|
797
|
+
ariaForwarding({
|
|
798
|
+
labelledBy: ".spinner",
|
|
799
|
+
describedBy: ".spinner",
|
|
800
|
+
errorMessage: ".spinner"
|
|
801
|
+
}),
|
|
796
802
|
localized()
|
|
797
803
|
], Datepicker);
|
|
798
804
|
let GdsDatepicker = class extends withSizeXProps(
|
|
@@ -8,6 +8,7 @@ import { property, query } from "lit/decorators.js";
|
|
|
8
8
|
import { classMap } from "lit/directives/class-map.js";
|
|
9
9
|
import { GdsElement } from "../../gds-element.js";
|
|
10
10
|
import { tokens } from "../../tokens.style.js";
|
|
11
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
11
12
|
import { watch } from "../../utils/decorators/watch.js";
|
|
12
13
|
import {
|
|
13
14
|
gdsCustomElement,
|
|
@@ -159,7 +160,11 @@ __decorateClass([
|
|
|
159
160
|
watch("open")
|
|
160
161
|
], GdsDetails.prototype, "__handleOpenChange", 1);
|
|
161
162
|
GdsDetails = __decorateClass([
|
|
162
|
-
gdsCustomElement("gds-details", { dependsOn: [GdsButton, GdsIconDetails] })
|
|
163
|
+
gdsCustomElement("gds-details", { dependsOn: [GdsButton, GdsIconDetails] }),
|
|
164
|
+
ariaForwarding({
|
|
165
|
+
labelledBy: ".summary",
|
|
166
|
+
describedBy: ".summary"
|
|
167
|
+
})
|
|
163
168
|
], GdsDetails);
|
|
164
169
|
export {
|
|
165
170
|
GdsDetails
|
|
@@ -13,6 +13,7 @@ import { classMap } from "lit/directives/class-map.js";
|
|
|
13
13
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
14
14
|
import { when } from "lit/directives/when.js";
|
|
15
15
|
import { GdsElement } from "../../gds-element.js";
|
|
16
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
16
17
|
import { watch } from "../../utils/decorators/watch.js";
|
|
17
18
|
import {
|
|
18
19
|
gdsCustomElement,
|
|
@@ -346,6 +347,10 @@ GdsDialog = __decorateClass([
|
|
|
346
347
|
gdsCustomElement("gds-dialog", {
|
|
347
348
|
dependsOn: [GdsButton, GdsCard, GdsDiv, GdsFlex, IconCrossLarge]
|
|
348
349
|
}),
|
|
350
|
+
ariaForwarding({
|
|
351
|
+
labelledBy: "dialog",
|
|
352
|
+
describedBy: "dialog"
|
|
353
|
+
}),
|
|
349
354
|
localized()
|
|
350
355
|
], GdsDialog);
|
|
351
356
|
export {
|
|
@@ -20,6 +20,7 @@ import { GdsListbox } from "../../primitives/listbox/listbox.component.js";
|
|
|
20
20
|
import { gdsCustomElement, html } from "../../scoping.js";
|
|
21
21
|
import formControlHostStyle from "../../shared-styles/form-control-host.style.js";
|
|
22
22
|
import { tokens } from "../../tokens.style.js";
|
|
23
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
23
24
|
import { observeLightDOM } from "../../utils/decorators/observe-light-dom.js";
|
|
24
25
|
import { watch } from "../../utils/decorators/watch.js";
|
|
25
26
|
import {
|
|
@@ -609,6 +610,11 @@ __decorateClass([
|
|
|
609
610
|
watch("open")
|
|
610
611
|
], Dropdown.prototype, "_handleOpenChange", 1);
|
|
611
612
|
Dropdown = __decorateClass([
|
|
613
|
+
ariaForwarding({
|
|
614
|
+
labelledBy: "#trigger",
|
|
615
|
+
describedBy: "#trigger",
|
|
616
|
+
errorMessage: "#trigger"
|
|
617
|
+
}),
|
|
612
618
|
localized()
|
|
613
619
|
], Dropdown);
|
|
614
620
|
let GdsDropdown = class extends withSizeXProps(
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
var _handleChipClick, _collapseThreshold, _collapsedAt, _getChipHeight, getChipHeight_fn, _handleSlotChange, handleSlotChange_fn;
|
|
9
9
|
import { property, query, state } from "lit/decorators.js";
|
|
10
10
|
import { classMap } from "lit/directives/class-map.js";
|
|
11
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
11
12
|
import { resizeObserver } from "../../utils/decorators/resize-observer.js";
|
|
12
13
|
import { watch } from "../../utils/decorators/watch.js";
|
|
13
14
|
import { stringArrayConverter } from "../../utils/helpers/attribute-converters.js";
|
|
@@ -168,7 +169,11 @@ __decorateClass([
|
|
|
168
169
|
watch("value")
|
|
169
170
|
], GdsFilterChips.prototype, "_updateSelectedFromValue", 1);
|
|
170
171
|
GdsFilterChips = __decorateClass([
|
|
171
|
-
gdsCustomElement("gds-filter-chips", { dependsOn: [GdsFilterChip] })
|
|
172
|
+
gdsCustomElement("gds-filter-chips", { dependsOn: [GdsFilterChip] }),
|
|
173
|
+
ariaForwarding({
|
|
174
|
+
labelledBy: '[role="listbox"]',
|
|
175
|
+
describedBy: '[role="listbox"]'
|
|
176
|
+
})
|
|
172
177
|
], GdsFilterChips);
|
|
173
178
|
export {
|
|
174
179
|
GdsFilterChip,
|
|
@@ -141,7 +141,9 @@ declare const GdsInput_base: (new (...args: any[]) => import("../../utils/mixins
|
|
|
141
141
|
* @slot trail - Accepts `gds-badge`. Use this to place a badge in the field, for displaying currency for example.
|
|
142
142
|
* @slot extended-supporting-text - A longer supporting text can be placed here. It will be
|
|
143
143
|
* displayed in a panel when the user clicks the info button.
|
|
144
|
+
*
|
|
144
145
|
* @event gds-input-cleared - Fired when the clear button is clicked.
|
|
146
|
+
* @event gds-ui-state - Fired when the extended supporting text is opened or closed by the user. Can be cancelled to prevent it from opening or closing.
|
|
145
147
|
*/
|
|
146
148
|
export declare class GdsInput extends GdsInput_base {
|
|
147
149
|
}
|
|
@@ -18,6 +18,7 @@ import { GdsFormControlHeader } from "../../primitives/form-control-header/form-
|
|
|
18
18
|
import { gdsCustomElement, html } from "../../scoping.js";
|
|
19
19
|
import formControlHostStyles from "../../shared-styles/form-control-host.style.js";
|
|
20
20
|
import { tokens } from "../../tokens.style.js";
|
|
21
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
21
22
|
import { watch } from "../../utils/decorators/watch.js";
|
|
22
23
|
import {
|
|
23
24
|
withLayoutChildProps,
|
|
@@ -389,6 +390,11 @@ __decorateClass([
|
|
|
389
390
|
watch("value")
|
|
390
391
|
], Input.prototype, "_handleValueChange", 1);
|
|
391
392
|
Input = __decorateClass([
|
|
393
|
+
ariaForwarding({
|
|
394
|
+
labelledBy: "input",
|
|
395
|
+
describedBy: "input",
|
|
396
|
+
errorMessage: "input"
|
|
397
|
+
}),
|
|
392
398
|
localized()
|
|
393
399
|
], Input);
|
|
394
400
|
let GdsInput = class extends withSizeXProps(
|
|
@@ -11,6 +11,7 @@ import { html as staticHtml } from "lit/static-html.js";
|
|
|
11
11
|
import { GdsElement } from "../../gds-element.js";
|
|
12
12
|
import { gdsCustomElement } from "../../scoping.js";
|
|
13
13
|
import { tokens } from "../../tokens.style.js";
|
|
14
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
14
15
|
import { styleExpressionProperty } from "../../utils/decorators/style-expression-property.js";
|
|
15
16
|
import {
|
|
16
17
|
withLayoutChildProps,
|
|
@@ -67,7 +68,11 @@ __decorateClass([
|
|
|
67
68
|
})
|
|
68
69
|
], GdsLink.prototype, "text-decoration", 2);
|
|
69
70
|
GdsLink = __decorateClass([
|
|
70
|
-
gdsCustomElement("gds-link")
|
|
71
|
+
gdsCustomElement("gds-link"),
|
|
72
|
+
ariaForwarding({
|
|
73
|
+
labelledBy: "a",
|
|
74
|
+
describedBy: "a"
|
|
75
|
+
})
|
|
71
76
|
], GdsLink);
|
|
72
77
|
export {
|
|
73
78
|
GdsLink
|
|
@@ -11,6 +11,7 @@ import { literal, html as staticHtml } from "lit/static-html.js";
|
|
|
11
11
|
import { GdsElement } from "../../gds-element.js";
|
|
12
12
|
import { gdsCustomElement } from "../../scoping.js";
|
|
13
13
|
import { tokens } from "../../tokens.style.js";
|
|
14
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
14
15
|
import {
|
|
15
16
|
withLayoutChildProps,
|
|
16
17
|
withSizeXProps
|
|
@@ -91,7 +92,12 @@ __decorateClass([
|
|
|
91
92
|
property({ type: Boolean, reflect: true })
|
|
92
93
|
], GdsMenuButton.prototype, "selected", 2);
|
|
93
94
|
GdsMenuButton = __decorateClass([
|
|
94
|
-
gdsCustomElement("gds-menu-button")
|
|
95
|
+
gdsCustomElement("gds-menu-button"),
|
|
96
|
+
ariaForwarding({
|
|
97
|
+
labelledBy: "button",
|
|
98
|
+
describedBy: "button",
|
|
99
|
+
controls: "button"
|
|
100
|
+
})
|
|
95
101
|
], GdsMenuButton);
|
|
96
102
|
export {
|
|
97
103
|
GdsMenuButton
|
|
@@ -13,6 +13,7 @@ import { when } from "lit/directives/when.js";
|
|
|
13
13
|
import { GdsElement } from "../../gds-element.js";
|
|
14
14
|
import { tokens } from "../../tokens.style.js";
|
|
15
15
|
import { watchMediaQuery } from "../../utils/decorators/index.js";
|
|
16
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
16
17
|
import {
|
|
17
18
|
gdsCustomElement,
|
|
18
19
|
html
|
|
@@ -110,25 +111,27 @@ let GdsPagination = class extends withMarginProps(
|
|
|
110
111
|
if (!showNavigation && !pageSizeMenu)
|
|
111
112
|
return nothing;
|
|
112
113
|
return html`
|
|
113
|
-
<
|
|
114
|
-
align-items="center"
|
|
115
|
-
justify-content="space-between"
|
|
116
|
-
width="100%"
|
|
117
|
-
gap="${__privateGet(this, _config, config_get).gap}"
|
|
118
|
-
>
|
|
119
|
-
${__privateMethod(this, _renderLabel, renderLabel_fn).call(this)}
|
|
114
|
+
<nav aria-label="${this.label || msg("Pagination")}">
|
|
120
115
|
<gds-flex
|
|
121
|
-
|
|
116
|
+
align-items="center"
|
|
117
|
+
justify-content="space-between"
|
|
118
|
+
width="100%"
|
|
122
119
|
gap="${__privateGet(this, _config, config_get).gap}"
|
|
123
|
-
flex="1"
|
|
124
|
-
justify-content="${showNavigation ? "space-between" : "flex-end"}"
|
|
125
120
|
>
|
|
126
|
-
${
|
|
121
|
+
${__privateMethod(this, _renderLabel, renderLabel_fn).call(this)}
|
|
122
|
+
<gds-flex
|
|
123
|
+
aling-items="center"
|
|
124
|
+
gap="${__privateGet(this, _config, config_get).gap}"
|
|
125
|
+
flex="1"
|
|
126
|
+
justify-content="${showNavigation ? "space-between" : "flex-end"}"
|
|
127
|
+
>
|
|
128
|
+
${[
|
|
127
129
|
when(showNavigation, () => __privateMethod(this, _renderNavigationControls, renderNavigationControls_fn).call(this)),
|
|
128
130
|
pageSizeMenu
|
|
129
131
|
]}
|
|
132
|
+
</gds-flex>
|
|
130
133
|
</gds-flex>
|
|
131
|
-
</
|
|
134
|
+
</nav>
|
|
132
135
|
`;
|
|
133
136
|
}
|
|
134
137
|
};
|
|
@@ -491,6 +494,10 @@ GdsPagination = __decorateClass([
|
|
|
491
494
|
IconChevronRightSmall,
|
|
492
495
|
IconChevronDoubleRight
|
|
493
496
|
]
|
|
497
|
+
}),
|
|
498
|
+
ariaForwarding({
|
|
499
|
+
labelledBy: "nav",
|
|
500
|
+
describedBy: "nav"
|
|
494
501
|
})
|
|
495
502
|
], GdsPagination);
|
|
496
503
|
export {
|
|
@@ -19,6 +19,7 @@ import { GdsElement } from "../../gds-element.js";
|
|
|
19
19
|
import { gdsCustomElement, html } from "../../scoping.js";
|
|
20
20
|
import { TransitionalStyles } from "../../transitional-styles.js";
|
|
21
21
|
import { watch, watchMediaQuery } from "../../utils/decorators/index.js";
|
|
22
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
22
23
|
import { IconCrossSmall } from "../icon/icons/cross-small.component.js";
|
|
23
24
|
import PopoverStyles from "./popover.styles.js";
|
|
24
25
|
function applyTriggerAriaAttributes(trigger, open, popupRole) {
|
|
@@ -434,6 +435,10 @@ __decorateClass([
|
|
|
434
435
|
], GdsPopover.prototype, "_handleMobileLayout", 1);
|
|
435
436
|
GdsPopover = __decorateClass([
|
|
436
437
|
gdsCustomElement("gds-popover", { dependsOn: [IconCrossSmall] }),
|
|
438
|
+
ariaForwarding({
|
|
439
|
+
labelledBy: "dialog",
|
|
440
|
+
describedBy: "dialog"
|
|
441
|
+
}),
|
|
437
442
|
localized()
|
|
438
443
|
], GdsPopover);
|
|
439
444
|
export {
|
|
@@ -47,6 +47,8 @@ declare const GdsRadioGroup_base: (new (...args: any[]) => import("../../../util
|
|
|
47
47
|
*
|
|
48
48
|
* @event change - Fired when a radio button selection changes
|
|
49
49
|
* @event input - Fired when a radio button selection changes
|
|
50
|
+
* @event gds-ui-state - Fired when the extended supporting text is opened or closed by the user. Can be cancelled to prevent it from opening or closing.
|
|
51
|
+
*
|
|
50
52
|
*/
|
|
51
53
|
export declare class GdsRadioGroup extends GdsRadioGroup_base {
|
|
52
54
|
}
|
|
@@ -11,6 +11,7 @@ import { GdsFormControlFooter } from "../../../primitives/form-control-footer/fo
|
|
|
11
11
|
import { GdsFormControlHeader } from "../../../primitives/form-control-header/form-control-header.component.js";
|
|
12
12
|
import { gdsCustomElement, html } from "../../../scoping.js";
|
|
13
13
|
import { tokens } from "../../../tokens.style.js";
|
|
14
|
+
import { ariaForwarding } from "../../../utils/decorators/aria-forwarding.js";
|
|
14
15
|
import { watch } from "../../../utils/decorators/watch.js";
|
|
15
16
|
import {
|
|
16
17
|
withLayoutChildProps,
|
|
@@ -277,6 +278,11 @@ __decorateClass([
|
|
|
277
278
|
watch("errorMessage")
|
|
278
279
|
], RadioGroup.prototype, "_syncRadioStates", 1);
|
|
279
280
|
RadioGroup = __decorateClass([
|
|
281
|
+
ariaForwarding({
|
|
282
|
+
labelledBy: "#radiogroup",
|
|
283
|
+
describedBy: "#radiogroup",
|
|
284
|
+
errorMessage: "#radiogroup"
|
|
285
|
+
}),
|
|
280
286
|
localized()
|
|
281
287
|
], RadioGroup);
|
|
282
288
|
let GdsRadioGroup = class extends withLayoutChildProps(
|
|
@@ -10,6 +10,7 @@ import { GdsToggleControlBase } from "../../primitives/toggle-controls-base/togg
|
|
|
10
10
|
import { gdsCustomElement, html } from "../../scoping.js";
|
|
11
11
|
import rbcbToggleStyles from "../../shared-styles/rbcb-toggle.style.js";
|
|
12
12
|
import { radioToggle } from "../../shared-styles/rbcb-toggle.template.js";
|
|
13
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
13
14
|
import RadioStyles from "./radio.styles.js";
|
|
14
15
|
let GdsRadio = class extends GdsElement {
|
|
15
16
|
constructor() {
|
|
@@ -107,7 +108,11 @@ __decorateClass([
|
|
|
107
108
|
state()
|
|
108
109
|
], GdsRadio.prototype, "_isFocused", 2);
|
|
109
110
|
GdsRadio = __decorateClass([
|
|
110
|
-
gdsCustomElement("gds-radio", { dependsOn: [GdsToggleControlBase] })
|
|
111
|
+
gdsCustomElement("gds-radio", { dependsOn: [GdsToggleControlBase] }),
|
|
112
|
+
ariaForwarding({
|
|
113
|
+
labelledBy: "gds-toggle-control-base",
|
|
114
|
+
describedBy: "gds-toggle-control-base"
|
|
115
|
+
})
|
|
111
116
|
], GdsRadio);
|
|
112
117
|
export {
|
|
113
118
|
GdsRadio
|
|
@@ -12,6 +12,7 @@ import { GdsElement } from "../../gds-element.js";
|
|
|
12
12
|
import { gdsCustomElement, html } from "../../scoping.js";
|
|
13
13
|
import { tokens } from "../../tokens.style.js";
|
|
14
14
|
import { TransitionalStyles } from "../../transitional-styles.js";
|
|
15
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
15
16
|
import { resizeObserver } from "../../utils/decorators/resize-observer.js";
|
|
16
17
|
import { watch } from "../../utils/decorators/watch.js";
|
|
17
18
|
import {
|
|
@@ -233,6 +234,10 @@ GdsSegmentedControl = __decorateClass([
|
|
|
233
234
|
gdsCustomElement("gds-segmented-control", {
|
|
234
235
|
dependsOn: [GdsSegment, IconChevronLeft, IconChevronRight]
|
|
235
236
|
}),
|
|
237
|
+
ariaForwarding({
|
|
238
|
+
labelledBy: '[role="list"]',
|
|
239
|
+
describedBy: '[role="list"]'
|
|
240
|
+
}),
|
|
236
241
|
localized()
|
|
237
242
|
], GdsSegmentedControl);
|
|
238
243
|
export {
|
|
@@ -75,8 +75,9 @@ declare const GdsSelect_base: (new (...args: any[]) => import("../../utils/mixin
|
|
|
75
75
|
* element, and not on the enclosed select element. Also, state should also be handled only through the host.
|
|
76
76
|
* Setting value or selected props on the select element will not work as expected.
|
|
77
77
|
*
|
|
78
|
-
* @event
|
|
79
|
-
* @event
|
|
78
|
+
* @event change - Fired when the selection changes with detail: { value: string }
|
|
79
|
+
* @event input - Fired on input with detail: { value: string }
|
|
80
|
+
* @event gds-ui-state - Fired when the extended supporting text is opened or closed by the user. Can be cancelled to prevent it from opening or closing.
|
|
80
81
|
*
|
|
81
82
|
* @slot - Default slot for the native select element
|
|
82
83
|
* @slot lead - Slot for leading content (e.g., icons)
|
|
@@ -15,6 +15,7 @@ import { GdsFormControlFooter } from "../../primitives/form-control-footer/form-
|
|
|
15
15
|
import { GdsFormControlHeader } from "../../primitives/form-control-header/form-control-header.component.js";
|
|
16
16
|
import formControlHostStyles from "../../shared-styles/form-control-host.style.js";
|
|
17
17
|
import { tokens } from "../../tokens.style.js";
|
|
18
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
18
19
|
import { observeLightDOM } from "../../utils/decorators/observe-light-dom.js";
|
|
19
20
|
import { watch } from "../../utils/decorators/watch.js";
|
|
20
21
|
import {
|
|
@@ -305,6 +306,11 @@ __decorateClass([
|
|
|
305
306
|
watch("value")
|
|
306
307
|
], Select.prototype, "_handleValueChange", 1);
|
|
307
308
|
Select = __decorateClass([
|
|
309
|
+
ariaForwarding({
|
|
310
|
+
labelledBy: "select",
|
|
311
|
+
describedBy: "select",
|
|
312
|
+
errorMessage: "select"
|
|
313
|
+
}),
|
|
308
314
|
localized()
|
|
309
315
|
], Select);
|
|
310
316
|
let GdsSelect = class extends withLayoutChildProps(
|
|
@@ -9,6 +9,7 @@ import { property, query } from "lit/decorators.js";
|
|
|
9
9
|
import { classMap } from "lit/directives/class-map.js";
|
|
10
10
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
11
11
|
import { gdsCustomElement, html } from "../../scoping.js";
|
|
12
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
12
13
|
import { styleExpressionProperty } from "../../utils/decorators/style-expression-property.js";
|
|
13
14
|
import {
|
|
14
15
|
withLayoutChildProps,
|
|
@@ -18,7 +19,7 @@ import {
|
|
|
18
19
|
import { GdsFormControlElement } from "../form/form-control.js";
|
|
19
20
|
import { IconCheckmark } from "../icon/icons/checkmark.component.js";
|
|
20
21
|
import { styles } from "./switch.styles.js";
|
|
21
|
-
|
|
22
|
+
let Switch = class extends GdsFormControlElement {
|
|
22
23
|
constructor() {
|
|
23
24
|
super(...arguments);
|
|
24
25
|
__privateAdd(this, _renderNativeInput);
|
|
@@ -80,7 +81,7 @@ class Switch extends GdsFormControlElement {
|
|
|
80
81
|
</label>
|
|
81
82
|
`;
|
|
82
83
|
}
|
|
83
|
-
}
|
|
84
|
+
};
|
|
84
85
|
_renderNativeInput = new WeakSet();
|
|
85
86
|
renderNativeInput_fn = function() {
|
|
86
87
|
return html`
|
|
@@ -173,6 +174,13 @@ __decorateClass([
|
|
|
173
174
|
__decorateClass([
|
|
174
175
|
query(".perimeter")
|
|
175
176
|
], Switch.prototype, "_perimeter", 2);
|
|
177
|
+
Switch = __decorateClass([
|
|
178
|
+
ariaForwarding({
|
|
179
|
+
labelledBy: "#switch-input",
|
|
180
|
+
describedBy: "#switch-input",
|
|
181
|
+
errorMessage: "#switch-input"
|
|
182
|
+
})
|
|
183
|
+
], Switch);
|
|
176
184
|
let GdsSwitch = class extends withLayoutChildProps(
|
|
177
185
|
withMarginProps(withSizeXProps(Switch))
|
|
178
186
|
) {
|
|
@@ -14,6 +14,7 @@ import { styleMap } from "lit/directives/style-map.js";
|
|
|
14
14
|
import { when } from "lit/directives/when.js";
|
|
15
15
|
import { GdsElement } from "../../gds-element.js";
|
|
16
16
|
import { watchMediaQuery } from "../../utils/decorators/index.js";
|
|
17
|
+
import { ariaForwarding } from "../../utils/decorators/aria-forwarding.js";
|
|
17
18
|
import { styleExpressionProperty } from "../../utils/decorators/style-expression-property.js";
|
|
18
19
|
import { watch } from "../../utils/decorators/watch.js";
|
|
19
20
|
import { forSpaceTokensAndCustomValues } from "../../utils/helpers/index.js";
|
|
@@ -751,19 +752,27 @@ renderColumnHeader_fn = function(column) {
|
|
|
751
752
|
style=${style}
|
|
752
753
|
data-col-key=${ifDefined(column.sticky ? column.key : void 0)}
|
|
753
754
|
aria-sort="${isSorted ? sortDirection === "asc" ? "ascending" : "descending" : "none"}"
|
|
754
|
-
@click=${column.sortable ? () => __privateMethod(this, _handleSort, handleSort_fn).call(this, column.key) : null}
|
|
755
755
|
>
|
|
756
|
-
|
|
757
|
-
<span class="column-label" aria-label="${ariaLabel}">
|
|
758
|
-
${column.label}
|
|
759
|
-
</span>
|
|
760
|
-
${when(
|
|
756
|
+
${when(
|
|
761
757
|
column.sortable,
|
|
762
758
|
() => html`
|
|
759
|
+
<button
|
|
760
|
+
type="button"
|
|
761
|
+
class="column-header"
|
|
762
|
+
aria-label="${ariaLabel}"
|
|
763
|
+
aria-pressed=${isSorted}
|
|
764
|
+
@click=${() => __privateMethod(this, _handleSort, handleSort_fn).call(this, column.key)}
|
|
765
|
+
>
|
|
766
|
+
<span class="column-label">${column.label}</span>
|
|
763
767
|
<span class="sort-icon">${__privateMethod(this, _renderSortIcon, renderSortIcon_fn).call(this, column)}</span>
|
|
764
|
-
|
|
768
|
+
</button>
|
|
769
|
+
`,
|
|
770
|
+
() => html`
|
|
771
|
+
<div class="column-header">
|
|
772
|
+
<span class="column-label">${column.label}</span>
|
|
773
|
+
</div>
|
|
774
|
+
`
|
|
765
775
|
)}
|
|
766
|
-
</div>
|
|
767
776
|
</th>
|
|
768
777
|
`;
|
|
769
778
|
};
|
|
@@ -1905,6 +1914,10 @@ GdsTable = __decorateClass([
|
|
|
1905
1914
|
localized(),
|
|
1906
1915
|
gdsCustomElement("gds-table", {
|
|
1907
1916
|
dependsOn: Table.Dependencies
|
|
1917
|
+
}),
|
|
1918
|
+
ariaForwarding({
|
|
1919
|
+
labelledBy: "table",
|
|
1920
|
+
describedBy: "table"
|
|
1908
1921
|
})
|
|
1909
1922
|
], GdsTable);
|
|
1910
1923
|
export {
|