@sebgroup/green-core 3.12.5 → 3.14.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/badge/badge.styles.js +1 -1
- package/components/button/button.styles.js +1 -1
- package/components/button/button.trans.styles.scss.js +1 -1
- package/components/context-menu/context-menu.trans.styles.scss.js +1 -1
- package/components/grouped-list/grouped-list.component.d.ts +0 -2
- package/components/grouped-list/grouped-list.component.js +3 -4
- package/components/grouped-list/index.d.ts +0 -1
- package/components/grouped-list/index.js +0 -1
- package/components/grouped-list/list-item.component.d.ts +1 -11
- package/components/grouped-list/list-item.component.js +2 -17
- package/components/index.d.ts +2 -0
- package/components/index.js +2 -0
- package/components/list/index.d.ts +2 -0
- package/components/list/index.js +2 -0
- package/components/list/list-item/index.d.ts +1 -0
- package/components/list/list-item/index.js +1 -0
- package/components/list/list-item/list-item.component.d.ts +16 -0
- package/components/list/list-item/list-item.component.js +24 -0
- package/components/list/list-item/list-item.d.ts +2 -0
- package/components/list/list-item/list-item.js +6 -0
- package/components/list/list-item/list-item.styles.d.ts +2 -0
- package/components/list/list-item/list-item.styles.js +13 -0
- package/components/list/list.component.d.ts +16 -0
- package/components/list/list.component.js +23 -0
- package/components/list/list.d.ts +2 -0
- package/components/list/list.js +6 -0
- package/components/list/list.styles.d.ts +2 -0
- package/components/list/list.styles.js +13 -0
- package/components/popover/popover.trans.styles.scss.js +1 -1
- package/components/tabs/index.d.ts +3 -0
- package/components/tabs/index.js +3 -0
- package/components/tabs/tab/index.d.ts +1 -0
- package/components/tabs/tab/index.js +1 -0
- package/components/tabs/tab/tab.component.d.ts +49 -0
- package/components/tabs/tab/tab.component.js +120 -0
- package/components/tabs/tab/tab.d.ts +2 -0
- package/components/tabs/tab/tab.js +6 -0
- package/components/tabs/tab/tab.styles.d.ts +2 -0
- package/components/tabs/tab/tab.styles.js +69 -0
- package/components/tabs/tab-panel/index.d.ts +1 -0
- package/components/tabs/tab-panel/index.js +1 -0
- package/components/tabs/tab-panel/tab-panel.component.d.ts +33 -0
- package/components/tabs/tab-panel/tab-panel.component.js +73 -0
- package/components/tabs/tab-panel/tab-panel.d.ts +2 -0
- package/components/tabs/tab-panel/tab-panel.js +6 -0
- package/components/tabs/tab-panel/tab-panel.styles.d.ts +2 -0
- package/components/tabs/tab-panel/tab-panel.styles.js +22 -0
- package/components/tabs/tabs.component.d.ts +41 -0
- package/components/tabs/tabs.component.js +439 -0
- package/components/tabs/tabs.d.ts +2 -0
- package/components/tabs/tabs.js +6 -0
- package/components/tabs/tabs.styles.d.ts +2 -0
- package/components/tabs/tabs.styles.js +115 -0
- package/custom-elements.json +22167 -18353
- package/gds-element.js +1 -1
- package/generated/mcp/components.json +65 -2
- package/generated/mcp/icons.json +1 -1
- package/generated/mcp/index.json +1 -1
- package/generated/mcp/list/angular.md +17 -0
- package/generated/mcp/list/api.md +86 -0
- package/generated/mcp/list/guidelines.md +1 -0
- package/generated/mcp/list/index.json +9 -0
- package/generated/mcp/list/react.md +17 -0
- package/generated/mcp/list-item/angular.md +3 -1
- package/generated/mcp/list-item/api.md +17 -0
- package/generated/mcp/list-item/react.md +3 -1
- package/generated/mcp/list-item-pattern-01/angular.md +26 -0
- package/generated/mcp/list-item-pattern-01/api.md +55 -0
- package/generated/mcp/list-item-pattern-01/guidelines.md +1 -0
- package/generated/mcp/list-item-pattern-01/index.json +9 -0
- package/generated/mcp/list-item-pattern-01/react.md +26 -0
- package/generated/mcp/tab/angular.md +25 -0
- package/generated/mcp/tab/api.md +32 -0
- package/generated/mcp/tab/index.json +8 -0
- package/generated/mcp/tab/react.md +25 -0
- package/generated/mcp/tab-panel/angular.md +17 -0
- package/generated/mcp/tab-panel/api.md +20 -0
- package/generated/mcp/tab-panel/index.json +8 -0
- package/generated/mcp/tab-panel/react.md +17 -0
- package/generated/mcp/tabs/angular.md +26 -0
- package/generated/mcp/tabs/api.md +49 -0
- package/generated/mcp/tabs/guidelines.md +71 -0
- package/generated/mcp/tabs/index.json +9 -0
- package/generated/mcp/tabs/react.md +26 -0
- package/generated/mcp/tokens.json +1 -1
- package/generated/react/alert/index.d.ts +118 -110
- package/generated/react/avatar/index.d.ts +116 -108
- package/generated/react/avatar-group/index.d.ts +114 -106
- package/generated/react/backdrop/index.d.ts +115 -107
- package/generated/react/badge/index.d.ts +118 -110
- package/generated/react/blur/index.d.ts +114 -106
- package/generated/react/breadcrumb/index.d.ts +118 -110
- package/generated/react/breadcrumbs/index.d.ts +115 -107
- package/generated/react/button/index.d.ts +127 -119
- package/generated/react/calendar/index.d.ts +121 -113
- package/generated/react/card/index.d.ts +114 -106
- package/generated/react/card-linked/index.d.ts +116 -108
- package/generated/react/card-pattern-01/index.d.ts +124 -116
- package/generated/react/checkbox/index.d.ts +127 -119
- package/generated/react/checkbox-group/index.d.ts +128 -120
- package/generated/react/coachmark/index.d.ts +117 -109
- package/generated/react/context-menu/index.d.ts +118 -110
- package/generated/react/datepicker/index.d.ts +136 -128
- package/generated/react/details/index.d.ts +117 -109
- package/generated/react/dialog/index.d.ts +116 -108
- package/generated/react/div/index.d.ts +114 -106
- package/generated/react/divider/index.d.ts +114 -106
- package/generated/react/dropdown/index.d.ts +139 -131
- package/generated/react/fab/index.d.ts +127 -119
- package/generated/react/filter-chip/index.d.ts +115 -107
- package/generated/react/filter-chips/index.d.ts +127 -119
- package/generated/react/flex/index.d.ts +114 -106
- package/generated/react/form-summary/index.d.ts +117 -109
- package/generated/react/formatted-account/index.d.ts +117 -109
- package/generated/react/formatted-date/index.d.ts +116 -108
- package/generated/react/formatted-number/index.d.ts +117 -109
- package/generated/react/grid/index.d.ts +114 -106
- package/generated/react/grouped-list/index.d.ts +115 -107
- package/generated/react/icons/icon-ai/index.d.ts +116 -108
- package/generated/react/icons/icon-airplane-up/index.d.ts +116 -108
- package/generated/react/icons/icon-archive/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-bottom-top/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-box-left/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-box-left-alt/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-box-right/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-down/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-inbox/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-left/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-left-right/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-out-of-box/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-right/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-right-circle/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-right-down-circle/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-right-up-circle/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-rotate-clockwise/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-rotate-counter-clockwise/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-rotate-left-right/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-rotate-right-left/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-share-left/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-share-right/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-split/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-up/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-wall-down/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-wall-left/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-wall-right/index.d.ts +116 -108
- package/generated/react/icons/icon-arrow-wall-up/index.d.ts +116 -108
- package/generated/react/icons/icon-arrows-repeat-right/index.d.ts +116 -108
- package/generated/react/icons/icon-asterisk/index.d.ts +116 -108
- package/generated/react/icons/icon-at/index.d.ts +116 -108
- package/generated/react/icons/icon-back/index.d.ts +116 -108
- package/generated/react/icons/icon-backward/index.d.ts +116 -108
- package/generated/react/icons/icon-bag/index.d.ts +116 -108
- package/generated/react/icons/icon-bank/index.d.ts +116 -108
- package/generated/react/icons/icon-banknote/index.d.ts +116 -108
- package/generated/react/icons/icon-banknote-2/index.d.ts +116 -108
- package/generated/react/icons/icon-barcode/index.d.ts +116 -108
- package/generated/react/icons/icon-bars-three/index.d.ts +116 -108
- package/generated/react/icons/icon-bars-two/index.d.ts +116 -108
- package/generated/react/icons/icon-basket/index.d.ts +116 -108
- package/generated/react/icons/icon-battery-loading/index.d.ts +116 -108
- package/generated/react/icons/icon-bell/index.d.ts +116 -108
- package/generated/react/icons/icon-block/index.d.ts +116 -108
- package/generated/react/icons/icon-book/index.d.ts +116 -108
- package/generated/react/icons/icon-bookmark/index.d.ts +116 -108
- package/generated/react/icons/icon-bookmark-check/index.d.ts +116 -108
- package/generated/react/icons/icon-bookmark-delete/index.d.ts +116 -108
- package/generated/react/icons/icon-bookmark-plus/index.d.ts +116 -108
- package/generated/react/icons/icon-bookmark-remove/index.d.ts +116 -108
- package/generated/react/icons/icon-books/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-app-store/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-apple-music/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-bankid/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-chrome/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-facebook/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-figma/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-firefox/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-github/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-green/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-instagram/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-linkedin/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-play-store/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-rss-feed/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-seb/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-spotify/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-storybook/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-swish-word/index.d.ts +116 -108
- package/generated/react/icons/icon-brand-x/index.d.ts +116 -108
- package/generated/react/icons/icon-brush/index.d.ts +116 -108
- package/generated/react/icons/icon-bubble-annotation/index.d.ts +116 -108
- package/generated/react/icons/icon-bubbles/index.d.ts +116 -108
- package/generated/react/icons/icon-buildings/index.d.ts +116 -108
- package/generated/react/icons/icon-bullet-list/index.d.ts +116 -108
- package/generated/react/icons/icon-calculator/index.d.ts +116 -108
- package/generated/react/icons/icon-calendar/index.d.ts +116 -108
- package/generated/react/icons/icon-calendar-check/index.d.ts +116 -108
- package/generated/react/icons/icon-calendar-repeat/index.d.ts +116 -108
- package/generated/react/icons/icon-calender-add/index.d.ts +116 -108
- package/generated/react/icons/icon-call/index.d.ts +116 -108
- package/generated/react/icons/icon-car/index.d.ts +116 -108
- package/generated/react/icons/icon-carussel/index.d.ts +116 -108
- package/generated/react/icons/icon-chain-link/index.d.ts +116 -108
- package/generated/react/icons/icon-chain-link-broken/index.d.ts +116 -108
- package/generated/react/icons/icon-chart-two/index.d.ts +116 -108
- package/generated/react/icons/icon-checklist/index.d.ts +116 -108
- package/generated/react/icons/icon-checkmark/index.d.ts +116 -108
- package/generated/react/icons/icon-chevron-bottom/index.d.ts +116 -108
- package/generated/react/icons/icon-chevron-double-down/index.d.ts +116 -108
- package/generated/react/icons/icon-chevron-double-left/index.d.ts +116 -108
- package/generated/react/icons/icon-chevron-double-right/index.d.ts +116 -108
- package/generated/react/icons/icon-chevron-double-up/index.d.ts +116 -108
- package/generated/react/icons/icon-chevron-down-small/index.d.ts +116 -108
- package/generated/react/icons/icon-chevron-grabber-vertical/index.d.ts +116 -108
- package/generated/react/icons/icon-chevron-grabber-vertical-reversed/index.d.ts +116 -108
- package/generated/react/icons/icon-chevron-left/index.d.ts +116 -108
- package/generated/react/icons/icon-chevron-left-small/index.d.ts +116 -108
- package/generated/react/icons/icon-chevron-right/index.d.ts +116 -108
- package/generated/react/icons/icon-chevron-right-small/index.d.ts +116 -108
- package/generated/react/icons/icon-chevron-top/index.d.ts +116 -108
- package/generated/react/icons/icon-chevron-top-small/index.d.ts +116 -108
- package/generated/react/icons/icon-circle-ban/index.d.ts +116 -108
- package/generated/react/icons/icon-circle-check/index.d.ts +116 -108
- package/generated/react/icons/icon-circle-dots/index.d.ts +116 -108
- package/generated/react/icons/icon-circle-info/index.d.ts +116 -108
- package/generated/react/icons/icon-circle-minus/index.d.ts +116 -108
- package/generated/react/icons/icon-circle-placeholder-on/index.d.ts +116 -108
- package/generated/react/icons/icon-circle-plus/index.d.ts +116 -108
- package/generated/react/icons/icon-circle-questionmark/index.d.ts +116 -108
- package/generated/react/icons/icon-circle-x/index.d.ts +116 -108
- package/generated/react/icons/icon-circles-three/index.d.ts +116 -108
- package/generated/react/icons/icon-clock/index.d.ts +116 -108
- package/generated/react/icons/icon-cloud-download/index.d.ts +116 -108
- package/generated/react/icons/icon-cloud-upload/index.d.ts +116 -108
- package/generated/react/icons/icon-cloudy-sun/index.d.ts +116 -108
- package/generated/react/icons/icon-code/index.d.ts +116 -108
- package/generated/react/icons/icon-code-brackets/index.d.ts +116 -108
- package/generated/react/icons/icon-compass-round/index.d.ts +116 -108
- package/generated/react/icons/icon-cookies/index.d.ts +116 -108
- package/generated/react/icons/icon-copy/index.d.ts +116 -108
- package/generated/react/icons/icon-credit-card/index.d.ts +116 -108
- package/generated/react/icons/icon-credit-card-add/index.d.ts +116 -108
- package/generated/react/icons/icon-cross-large/index.d.ts +116 -108
- package/generated/react/icons/icon-cross-small/index.d.ts +116 -108
- package/generated/react/icons/icon-cup-hot/index.d.ts +116 -108
- package/generated/react/icons/icon-cursor/index.d.ts +116 -108
- package/generated/react/icons/icon-details/index.d.ts +115 -107
- package/generated/react/icons/icon-devices/index.d.ts +116 -108
- package/generated/react/icons/icon-direction/index.d.ts +116 -108
- package/generated/react/icons/icon-dollar/index.d.ts +116 -108
- package/generated/react/icons/icon-dot-grid-one-horizontal/index.d.ts +116 -108
- package/generated/react/icons/icon-dot-grid-one-vertical/index.d.ts +116 -108
- package/generated/react/icons/icon-dot-grid-three/index.d.ts +116 -108
- package/generated/react/icons/icon-dot-grid-two/index.d.ts +116 -108
- package/generated/react/icons/icon-email/index.d.ts +116 -108
- package/generated/react/icons/icon-emoji-angry/index.d.ts +116 -108
- package/generated/react/icons/icon-emoji-neutral/index.d.ts +116 -108
- package/generated/react/icons/icon-emoji-sad/index.d.ts +116 -108
- package/generated/react/icons/icon-emoji-smile/index.d.ts +116 -108
- package/generated/react/icons/icon-emoji-smiley/index.d.ts +116 -108
- package/generated/react/icons/icon-euro/index.d.ts +116 -108
- package/generated/react/icons/icon-expand/index.d.ts +116 -108
- package/generated/react/icons/icon-eye-open/index.d.ts +116 -108
- package/generated/react/icons/icon-eye-slash/index.d.ts +116 -108
- package/generated/react/icons/icon-fashion/index.d.ts +116 -108
- package/generated/react/icons/icon-fast-forward/index.d.ts +116 -108
- package/generated/react/icons/icon-file-bend/index.d.ts +116 -108
- package/generated/react/icons/icon-file-chart/index.d.ts +116 -108
- package/generated/react/icons/icon-file-text/index.d.ts +116 -108
- package/generated/react/icons/icon-files/index.d.ts +116 -108
- package/generated/react/icons/icon-filter/index.d.ts +116 -108
- package/generated/react/icons/icon-flag/index.d.ts +116 -108
- package/generated/react/icons/icon-floppy-disk/index.d.ts +116 -108
- package/generated/react/icons/icon-focus/index.d.ts +116 -108
- package/generated/react/icons/icon-folder/index.d.ts +116 -108
- package/generated/react/icons/icon-folder-add-right/index.d.ts +116 -108
- package/generated/react/icons/icon-fullscreen/index.d.ts +116 -108
- package/generated/react/icons/icon-gift/index.d.ts +116 -108
- package/generated/react/icons/icon-globus/index.d.ts +116 -108
- package/generated/react/icons/icon-graduate-cap/index.d.ts +116 -108
- package/generated/react/icons/icon-green-power/index.d.ts +116 -108
- package/generated/react/icons/icon-group/index.d.ts +116 -108
- package/generated/react/icons/icon-growth/index.d.ts +116 -108
- package/generated/react/icons/icon-headphones/index.d.ts +116 -108
- package/generated/react/icons/icon-heart/index.d.ts +116 -108
- package/generated/react/icons/icon-heart-beat/index.d.ts +116 -108
- package/generated/react/icons/icon-history/index.d.ts +116 -108
- package/generated/react/icons/icon-home-energy-one/index.d.ts +116 -108
- package/generated/react/icons/icon-home-energy-two/index.d.ts +116 -108
- package/generated/react/icons/icon-home-open/index.d.ts +116 -108
- package/generated/react/icons/icon-home-roof/index.d.ts +116 -108
- package/generated/react/icons/icon-horizontal-alignment-bottom/index.d.ts +116 -108
- package/generated/react/icons/icon-hourglass/index.d.ts +116 -108
- package/generated/react/icons/icon-images/index.d.ts +116 -108
- package/generated/react/icons/icon-inbox-empty/index.d.ts +116 -108
- package/generated/react/icons/icon-industry/index.d.ts +116 -108
- package/generated/react/icons/icon-jpg/index.d.ts +116 -108
- package/generated/react/icons/icon-key/index.d.ts +116 -108
- package/generated/react/icons/icon-knife-spoon/index.d.ts +116 -108
- package/generated/react/icons/icon-lab/index.d.ts +116 -108
- package/generated/react/icons/icon-law/index.d.ts +116 -108
- package/generated/react/icons/icon-leisure/index.d.ts +116 -108
- package/generated/react/icons/icon-light-bulb-simple/index.d.ts +116 -108
- package/generated/react/icons/icon-lightning/index.d.ts +116 -108
- package/generated/react/icons/icon-line-chart-four/index.d.ts +116 -108
- package/generated/react/icons/icon-line-chart-one/index.d.ts +116 -108
- package/generated/react/icons/icon-line-chart-three/index.d.ts +116 -108
- package/generated/react/icons/icon-line-chart-two/index.d.ts +116 -108
- package/generated/react/icons/icon-lock/index.d.ts +116 -108
- package/generated/react/icons/icon-macbook-air/index.d.ts +116 -108
- package/generated/react/icons/icon-magnifying-glass/index.d.ts +116 -108
- package/generated/react/icons/icon-map-pin/index.d.ts +116 -108
- package/generated/react/icons/icon-megaphone/index.d.ts +116 -108
- package/generated/react/icons/icon-menu-sidebar/index.d.ts +116 -108
- package/generated/react/icons/icon-mic-off/index.d.ts +116 -108
- package/generated/react/icons/icon-mic-on/index.d.ts +116 -108
- package/generated/react/icons/icon-minimize/index.d.ts +116 -108
- package/generated/react/icons/icon-minus-large/index.d.ts +116 -108
- package/generated/react/icons/icon-minus-small/index.d.ts +116 -108
- package/generated/react/icons/icon-money-hand/index.d.ts +116 -108
- package/generated/react/icons/icon-moneybag/index.d.ts +116 -108
- package/generated/react/icons/icon-moon/index.d.ts +116 -108
- package/generated/react/icons/icon-mute/index.d.ts +116 -108
- package/generated/react/icons/icon-newspaper/index.d.ts +116 -108
- package/generated/react/icons/icon-office/index.d.ts +116 -108
- package/generated/react/icons/icon-page-add/index.d.ts +116 -108
- package/generated/react/icons/icon-paper-plane-top-right/index.d.ts +116 -108
- package/generated/react/icons/icon-paperclip/index.d.ts +116 -108
- package/generated/react/icons/icon-pause/index.d.ts +116 -108
- package/generated/react/icons/icon-pdf/index.d.ts +116 -108
- package/generated/react/icons/icon-pencil-sign/index.d.ts +116 -108
- package/generated/react/icons/icon-pencil-sparkle/index.d.ts +116 -108
- package/generated/react/icons/icon-pencil-wave/index.d.ts +116 -108
- package/generated/react/icons/icon-pension/index.d.ts +116 -108
- package/generated/react/icons/icon-people/index.d.ts +116 -108
- package/generated/react/icons/icon-people-a11y/index.d.ts +116 -108
- package/generated/react/icons/icon-people-add/index.d.ts +116 -108
- package/generated/react/icons/icon-people-added/index.d.ts +116 -108
- package/generated/react/icons/icon-people-circle/index.d.ts +116 -108
- package/generated/react/icons/icon-people-copy/index.d.ts +116 -108
- package/generated/react/icons/icon-people-profile/index.d.ts +116 -108
- package/generated/react/icons/icon-people-remove/index.d.ts +116 -108
- package/generated/react/icons/icon-percent/index.d.ts +116 -108
- package/generated/react/icons/icon-phone/index.d.ts +116 -108
- package/generated/react/icons/icon-pie-chart/index.d.ts +116 -108
- package/generated/react/icons/icon-piggy-bank/index.d.ts +116 -108
- package/generated/react/icons/icon-pin/index.d.ts +116 -108
- package/generated/react/icons/icon-pinch/index.d.ts +116 -108
- package/generated/react/icons/icon-play/index.d.ts +116 -108
- package/generated/react/icons/icon-play-circle/index.d.ts +116 -108
- package/generated/react/icons/icon-plus-large/index.d.ts +116 -108
- package/generated/react/icons/icon-plus-small/index.d.ts +116 -108
- package/generated/react/icons/icon-png/index.d.ts +116 -108
- package/generated/react/icons/icon-poop/index.d.ts +116 -108
- package/generated/react/icons/icon-postcard/index.d.ts +116 -108
- package/generated/react/icons/icon-pound/index.d.ts +116 -108
- package/generated/react/icons/icon-power/index.d.ts +116 -108
- package/generated/react/icons/icon-power-plant/index.d.ts +116 -108
- package/generated/react/icons/icon-printer/index.d.ts +116 -108
- package/generated/react/icons/icon-push/index.d.ts +116 -108
- package/generated/react/icons/icon-qr-code/index.d.ts +116 -108
- package/generated/react/icons/icon-rainy/index.d.ts +116 -108
- package/generated/react/icons/icon-raising-hand/index.d.ts +116 -108
- package/generated/react/icons/icon-reading-list/index.d.ts +116 -108
- package/generated/react/icons/icon-receipt-bill/index.d.ts +116 -108
- package/generated/react/icons/icon-receiption-bell/index.d.ts +116 -108
- package/generated/react/icons/icon-record/index.d.ts +116 -108
- package/generated/react/icons/icon-refund/index.d.ts +116 -108
- package/generated/react/icons/icon-robot/index.d.ts +116 -108
- package/generated/react/icons/icon-rocket/index.d.ts +116 -108
- package/generated/react/icons/icon-run-shortcut/index.d.ts +116 -108
- package/generated/react/icons/icon-safari/index.d.ts +116 -108
- package/generated/react/icons/icon-school/index.d.ts +116 -108
- package/generated/react/icons/icon-scissors/index.d.ts +116 -108
- package/generated/react/icons/icon-search-menu/index.d.ts +116 -108
- package/generated/react/icons/icon-settings-gear/index.d.ts +116 -108
- package/generated/react/icons/icon-settings-slider-hor/index.d.ts +116 -108
- package/generated/react/icons/icon-settings-slider-ver/index.d.ts +116 -108
- package/generated/react/icons/icon-shapes/index.d.ts +116 -108
- package/generated/react/icons/icon-share/index.d.ts +116 -108
- package/generated/react/icons/icon-shield/index.d.ts +116 -108
- package/generated/react/icons/icon-shield-checked/index.d.ts +116 -108
- package/generated/react/icons/icon-shield-crossed/index.d.ts +116 -108
- package/generated/react/icons/icon-shopping-bag/index.d.ts +116 -108
- package/generated/react/icons/icon-signature/index.d.ts +116 -108
- package/generated/react/icons/icon-smartwatch/index.d.ts +116 -108
- package/generated/react/icons/icon-solar/index.d.ts +116 -108
- package/generated/react/icons/icon-sort/index.d.ts +116 -108
- package/generated/react/icons/icon-sort-ascending/index.d.ts +116 -108
- package/generated/react/icons/icon-sort-descending/index.d.ts +116 -108
- package/generated/react/icons/icon-sort-down/index.d.ts +116 -108
- package/generated/react/icons/icon-sort-up/index.d.ts +116 -108
- package/generated/react/icons/icon-square-arrow-top-right/index.d.ts +116 -108
- package/generated/react/icons/icon-square-behind-square/index.d.ts +116 -108
- package/generated/react/icons/icon-square-grid-circle/index.d.ts +116 -108
- package/generated/react/icons/icon-square-placeholder/index.d.ts +116 -108
- package/generated/react/icons/icon-star/index.d.ts +116 -108
- package/generated/react/icons/icon-store/index.d.ts +116 -108
- package/generated/react/icons/icon-sun/index.d.ts +116 -108
- package/generated/react/icons/icon-sunset-arrow-down/index.d.ts +116 -108
- package/generated/react/icons/icon-tag/index.d.ts +116 -108
- package/generated/react/icons/icon-target-arrow/index.d.ts +116 -108
- package/generated/react/icons/icon-television/index.d.ts +116 -108
- package/generated/react/icons/icon-tennis/index.d.ts +116 -108
- package/generated/react/icons/icon-text-edit/index.d.ts +116 -108
- package/generated/react/icons/icon-thermostat/index.d.ts +116 -108
- package/generated/react/icons/icon-thumbs-down/index.d.ts +116 -108
- package/generated/react/icons/icon-thumbs-up/index.d.ts +116 -108
- package/generated/react/icons/icon-ticket/index.d.ts +116 -108
- package/generated/react/icons/icon-trading-view-candles/index.d.ts +116 -108
- package/generated/react/icons/icon-trash-can/index.d.ts +116 -108
- package/generated/react/icons/icon-tree/index.d.ts +116 -108
- package/generated/react/icons/icon-trending-five/index.d.ts +116 -108
- package/generated/react/icons/icon-trending-four/index.d.ts +116 -108
- package/generated/react/icons/icon-trending-one/index.d.ts +116 -108
- package/generated/react/icons/icon-trending-three/index.d.ts +116 -108
- package/generated/react/icons/icon-trending-two/index.d.ts +116 -108
- package/generated/react/icons/icon-triangle-exclamation/index.d.ts +116 -108
- package/generated/react/icons/icon-truck/index.d.ts +116 -108
- package/generated/react/icons/icon-umbrella-security/index.d.ts +116 -108
- package/generated/react/icons/icon-unlocked/index.d.ts +116 -108
- package/generated/react/icons/icon-volume-full/index.d.ts +116 -108
- package/generated/react/icons/icon-volume-half/index.d.ts +116 -108
- package/generated/react/icons/icon-volume-off/index.d.ts +116 -108
- package/generated/react/icons/icon-wallet/index.d.ts +116 -108
- package/generated/react/icons/icon-warning-sign/index.d.ts +116 -108
- package/generated/react/icons/icon-wifi-full/index.d.ts +116 -108
- package/generated/react/icons/icon-youtube/index.d.ts +116 -108
- package/generated/react/icons/icon-zap/index.d.ts +116 -108
- package/generated/react/icons/icon-zoom-in/index.d.ts +116 -108
- package/generated/react/icons/icon-zoom-out/index.d.ts +116 -108
- package/generated/react/img/index.d.ts +116 -108
- package/generated/react/index.d.ts +10 -5
- package/generated/react/index.js +10 -5
- package/generated/react/input/index.d.ts +139 -131
- package/generated/react/link/index.d.ts +117 -109
- package/generated/react/list/index.d.ts +735 -0
- package/generated/react/list/index.js +14 -0
- package/generated/react/list-item/index.d.ts +124 -107
- package/generated/react/list-item/index.js +1 -1
- package/generated/react/list-item-pattern-01/index.d.ts +698 -0
- package/generated/react/list-item-pattern-01/index.js +16 -0
- package/generated/react/mask/index.d.ts +117 -109
- package/generated/react/menu-button/index.d.ts +120 -112
- package/generated/react/menu-heading/index.d.ts +114 -106
- package/generated/react/menu-item/index.d.ts +114 -106
- package/generated/react/option/index.d.ts +118 -110
- package/generated/react/pagination/index.d.ts +120 -112
- package/generated/react/popover/index.d.ts +123 -115
- package/generated/react/radio/index.d.ts +119 -111
- package/generated/react/radio-group/index.d.ts +127 -119
- package/generated/react/rich-text/index.d.ts +114 -106
- package/generated/react/segment/index.d.ts +118 -110
- package/generated/react/segmented-control/index.d.ts +116 -108
- package/generated/react/select/index.d.ts +129 -121
- package/generated/react/sensitive-account/index.d.ts +118 -110
- package/generated/react/sensitive-date/index.d.ts +117 -109
- package/generated/react/sensitive-number/index.d.ts +118 -110
- package/generated/react/signal/index.d.ts +114 -106
- package/generated/react/spinner/index.d.ts +117 -109
- package/generated/react/switch/index.d.ts +126 -118
- package/generated/react/tab/index.d.ts +682 -0
- package/generated/react/tab/index.js +14 -0
- package/generated/react/tab-panel/index.d.ts +675 -0
- package/generated/react/tab-panel/index.js +14 -0
- package/generated/react/table/index.d.ts +125 -117
- package/generated/react/tabs/index.d.ts +699 -0
- package/generated/react/tabs/index.js +14 -0
- package/generated/react/text/index.d.ts +115 -107
- package/generated/react/textarea/index.d.ts +137 -129
- package/generated/react/theme/index.d.ts +114 -106
- package/generated/react/video/index.d.ts +114 -106
- package/package.json +14 -1
- package/patterns/index.d.ts +1 -0
- package/patterns/index.js +1 -0
- package/patterns/list-item-pattern-01/index.d.ts +1 -0
- package/patterns/list-item-pattern-01/index.js +1 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.component.d.ts +74 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.component.js +278 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.d.ts +2 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.js +6 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.stories.data.d.ts +4 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.stories.data.js +8 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.styles.d.ts +2 -0
- package/patterns/list-item-pattern-01/list-item-pattern-01.styles.js +113 -0
- package/primitives/listbox/listbox.trans.styles.scss.js +1 -1
- package/primitives/listbox/option.trans.styles.scss.js +1 -1
- package/pure.d.ts +3 -0
- package/pure.js +3 -0
- package/utils/helpers/custom-element-scoping.js +1 -1
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__decorateClass,
|
|
3
|
+
__privateAdd,
|
|
4
|
+
__privateGet,
|
|
5
|
+
__privateMethod
|
|
6
|
+
} from "../../chunks/chunk.CAV4X6PU.js";
|
|
7
|
+
var _isLinked, isLinked_get, _renderCheckbox, renderCheckbox_fn, _renderLead, renderLead_fn, _renderItems, renderItems_fn, _onLeadSlotChange, onLeadSlotChange_fn, _onTrailSlotChange, onTrailSlotChange_fn, _renderMain, renderMain_fn, _renderTrail, renderTrail_fn, _renderRowContent, renderRowContent_fn;
|
|
8
|
+
import { property, query, state } from "lit/decorators.js";
|
|
9
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
10
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
11
|
+
import { when } from "lit/directives/when.js";
|
|
12
|
+
import { GdsButton } from "../../components/button/button.component.js";
|
|
13
|
+
import { GdsFlex } from "../../components/flex/flex.component.js";
|
|
14
|
+
import { IconCheckmark } from "../../components/icon/icons/checkmark.component.js";
|
|
15
|
+
import { IconChevronRight } from "../../components/icon/icons/chevron-right.component.js";
|
|
16
|
+
import { IconMinusSmall } from "../../components/icon/icons/minus-small.component.js";
|
|
17
|
+
import { GdsListItem } from "../../components/list/list-item/list-item.component.js";
|
|
18
|
+
import { GdsText } from "../../components/text/text.component.js";
|
|
19
|
+
import rbcbToggleStyles from "../../shared-styles/rbcb-toggle.style.js";
|
|
20
|
+
import { checkboxToggle } from "../../shared-styles/rbcb-toggle.template.js";
|
|
21
|
+
import { tokens } from "../../tokens.style.js";
|
|
22
|
+
import { resizeObserver } from "../../utils/decorators/resize-observer.js";
|
|
23
|
+
import { styleExpressionProperty } from "../../utils/decorators/style-expression-property.js";
|
|
24
|
+
import {
|
|
25
|
+
gdsCustomElement,
|
|
26
|
+
html
|
|
27
|
+
} from "../../utils/helpers/custom-element-scoping.js";
|
|
28
|
+
import { forSpaceTokensAndCustomValues } from "../../utils/helpers/style-expression-helpers.js";
|
|
29
|
+
import { withLinkProps } from "../../utils/mixins/props-link.js";
|
|
30
|
+
import ListPattern01ItemStyles from "./list-item-pattern-01.styles.js";
|
|
31
|
+
let GdsListItemPattern01 = class extends withLinkProps(GdsListItem) {
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
|
+
__privateAdd(this, _isLinked);
|
|
35
|
+
__privateAdd(this, _renderCheckbox);
|
|
36
|
+
__privateAdd(this, _renderLead);
|
|
37
|
+
__privateAdd(this, _renderItems);
|
|
38
|
+
__privateAdd(this, _onLeadSlotChange);
|
|
39
|
+
__privateAdd(this, _onTrailSlotChange);
|
|
40
|
+
__privateAdd(this, _renderMain);
|
|
41
|
+
__privateAdd(this, _renderTrail);
|
|
42
|
+
__privateAdd(this, _renderRowContent);
|
|
43
|
+
this._isWrapped = false;
|
|
44
|
+
this._hasLead = false;
|
|
45
|
+
this.label = "";
|
|
46
|
+
this.selectable = false;
|
|
47
|
+
this.checked = false;
|
|
48
|
+
this.indeterminate = false;
|
|
49
|
+
this.disabled = false;
|
|
50
|
+
this._hasTrailContent = false;
|
|
51
|
+
}
|
|
52
|
+
_checkWrap() {
|
|
53
|
+
const el = this._itemsContainer;
|
|
54
|
+
if (!el)
|
|
55
|
+
return;
|
|
56
|
+
const children = Array.from(el.children);
|
|
57
|
+
if (children.length < 2) {
|
|
58
|
+
this._isWrapped = false;
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const firstTop = children[0].getBoundingClientRect().top;
|
|
62
|
+
this._isWrapped = children.some(
|
|
63
|
+
(child) => child.getBoundingClientRect().top > firstTop
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
return html`${__privateMethod(this, _renderRowContent, renderRowContent_fn).call(this)}`;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
_isLinked = new WeakSet();
|
|
71
|
+
isLinked_get = function() {
|
|
72
|
+
return !!this.href;
|
|
73
|
+
};
|
|
74
|
+
_renderCheckbox = new WeakSet();
|
|
75
|
+
renderCheckbox_fn = function() {
|
|
76
|
+
const toggle = (e) => {
|
|
77
|
+
e.stopPropagation();
|
|
78
|
+
if (this.disabled)
|
|
79
|
+
return;
|
|
80
|
+
this.checked = !this.checked;
|
|
81
|
+
this.dispatchEvent(new Event("input", { bubbles: true, composed: true }));
|
|
82
|
+
this.dispatchEvent(new Event("change", { bubbles: true, composed: true }));
|
|
83
|
+
};
|
|
84
|
+
const onKey = (e) => {
|
|
85
|
+
if (e.key === " " || e.key === "Enter") {
|
|
86
|
+
e.preventDefault();
|
|
87
|
+
toggle(e);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
return html`
|
|
91
|
+
<div
|
|
92
|
+
class="rbcb-wrapper"
|
|
93
|
+
role="checkbox"
|
|
94
|
+
aria-checked=${this.indeterminate ? "mixed" : this.checked ? "true" : "false"}
|
|
95
|
+
aria-label=${this.label || "Select item"}
|
|
96
|
+
tabindex="0"
|
|
97
|
+
@click=${toggle}
|
|
98
|
+
@keydown=${onKey}
|
|
99
|
+
>
|
|
100
|
+
<input
|
|
101
|
+
type="checkbox"
|
|
102
|
+
class="visually-hidden-checkbox"
|
|
103
|
+
.checked=${this.checked}
|
|
104
|
+
.indeterminate=${this.indeterminate}
|
|
105
|
+
?disabled=${this.disabled}
|
|
106
|
+
aria-hidden="true"
|
|
107
|
+
tabindex="-1"
|
|
108
|
+
@change=${toggle}
|
|
109
|
+
/>
|
|
110
|
+
${checkboxToggle({
|
|
111
|
+
checked: this.checked,
|
|
112
|
+
indeterminate: this.indeterminate,
|
|
113
|
+
disabled: this.disabled,
|
|
114
|
+
invalid: false
|
|
115
|
+
})}
|
|
116
|
+
</div>
|
|
117
|
+
`;
|
|
118
|
+
};
|
|
119
|
+
_renderLead = new WeakSet();
|
|
120
|
+
renderLead_fn = function() {
|
|
121
|
+
if (this.selectable)
|
|
122
|
+
return __privateMethod(this, _renderCheckbox, renderCheckbox_fn).call(this);
|
|
123
|
+
return html``;
|
|
124
|
+
};
|
|
125
|
+
_renderItems = new WeakSet();
|
|
126
|
+
renderItems_fn = function(col, alignEnd = false) {
|
|
127
|
+
return html`
|
|
128
|
+
<div class="item-column ${alignEnd ? "align-end" : ""}">
|
|
129
|
+
${when(
|
|
130
|
+
col.label,
|
|
131
|
+
() => html`<gds-text font="detail-s-regular" tag="label"
|
|
132
|
+
>${col.label}</gds-text
|
|
133
|
+
>`
|
|
134
|
+
)}
|
|
135
|
+
<gds-text font="detail-m-book" tag="span">${col.value}</gds-text>
|
|
136
|
+
</div>
|
|
137
|
+
`;
|
|
138
|
+
};
|
|
139
|
+
_onLeadSlotChange = new WeakSet();
|
|
140
|
+
onLeadSlotChange_fn = function(e) {
|
|
141
|
+
const slot = e.target;
|
|
142
|
+
this._hasLead = slot.assignedElements().length > 0;
|
|
143
|
+
};
|
|
144
|
+
_onTrailSlotChange = new WeakSet();
|
|
145
|
+
onTrailSlotChange_fn = function(e) {
|
|
146
|
+
const slot = e.target;
|
|
147
|
+
this._hasTrailContent = slot.assignedElements().length > 0 || __privateGet(this, _isLinked, isLinked_get);
|
|
148
|
+
};
|
|
149
|
+
_renderMain = new WeakSet();
|
|
150
|
+
renderMain_fn = function() {
|
|
151
|
+
if (this.items && this.items.length > 0) {
|
|
152
|
+
const wrap = this.items.length >= 3 ? "wrap" : "nowrap";
|
|
153
|
+
const alignLastEnd = this.items.length >= 2 && !this._isWrapped;
|
|
154
|
+
return html`
|
|
155
|
+
<slot name="lead" @slotchange=${__privateMethod(this, _onLeadSlotChange, onLeadSlotChange_fn)}></slot>
|
|
156
|
+
<gds-flex
|
|
157
|
+
class="items-container"
|
|
158
|
+
flex="1"
|
|
159
|
+
justify-content="space-between"
|
|
160
|
+
gap="l"
|
|
161
|
+
flex-wrap=${wrap}
|
|
162
|
+
>
|
|
163
|
+
${this.items.map((col, i) => {
|
|
164
|
+
const isLast = i === this.items.length - 1;
|
|
165
|
+
return __privateMethod(this, _renderItems, renderItems_fn).call(this, i === 0 && this.label && !col.label ? { ...col, label: this.label } : col, alignLastEnd && isLast);
|
|
166
|
+
})}
|
|
167
|
+
</gds-flex>
|
|
168
|
+
<slot></slot>
|
|
169
|
+
`;
|
|
170
|
+
}
|
|
171
|
+
return html`<slot name="lead" @slotchange=${__privateMethod(this, _onLeadSlotChange, onLeadSlotChange_fn)}></slot
|
|
172
|
+
><slot></slot>`;
|
|
173
|
+
};
|
|
174
|
+
_renderTrail = new WeakSet();
|
|
175
|
+
renderTrail_fn = function() {
|
|
176
|
+
const classes = classMap({
|
|
177
|
+
"has-content": this._hasTrailContent
|
|
178
|
+
});
|
|
179
|
+
return html`
|
|
180
|
+
<slot name="trail" @slotchange=${__privateMethod(this, _onTrailSlotChange, onTrailSlotChange_fn)} class=${classes}
|
|
181
|
+
>${when(
|
|
182
|
+
this.href,
|
|
183
|
+
() => html`<gds-icon-chevron-right></gds-icon-chevron-right>`
|
|
184
|
+
)}</slot
|
|
185
|
+
>
|
|
186
|
+
`;
|
|
187
|
+
};
|
|
188
|
+
_renderRowContent = new WeakSet();
|
|
189
|
+
renderRowContent_fn = function() {
|
|
190
|
+
if (__privateGet(this, _isLinked, isLinked_get) && this.selectable) {
|
|
191
|
+
return html`
|
|
192
|
+
${__privateMethod(this, _renderLead, renderLead_fn).call(this)} ${__privateMethod(this, _renderMain, renderMain_fn).call(this)}
|
|
193
|
+
<gds-button
|
|
194
|
+
slot="trail"
|
|
195
|
+
href=${ifDefined(this.href)}
|
|
196
|
+
target=${ifDefined(this.target)}
|
|
197
|
+
rel=${ifDefined(this.rel)}
|
|
198
|
+
download=${ifDefined(this.download)}
|
|
199
|
+
ping=${ifDefined(this.ping)}
|
|
200
|
+
rank="tertiary"
|
|
201
|
+
aria-label=${this.label || "Navigate"}
|
|
202
|
+
><gds-icon-chevron-right></gds-icon-chevron-right
|
|
203
|
+
></gds-button>
|
|
204
|
+
`;
|
|
205
|
+
}
|
|
206
|
+
if (__privateGet(this, _isLinked, isLinked_get)) {
|
|
207
|
+
const classes = classMap({
|
|
208
|
+
"has-lead": this._hasLead
|
|
209
|
+
});
|
|
210
|
+
return html`
|
|
211
|
+
${__privateMethod(this, _renderLead, renderLead_fn).call(this)}
|
|
212
|
+
<a
|
|
213
|
+
class="linked-area ${classes}"
|
|
214
|
+
href=${ifDefined(this.href)}
|
|
215
|
+
target=${ifDefined(this.target)}
|
|
216
|
+
rel=${ifDefined(this.rel)}
|
|
217
|
+
download=${ifDefined(this.download)}
|
|
218
|
+
ping=${ifDefined(this.ping)}
|
|
219
|
+
>
|
|
220
|
+
${__privateMethod(this, _renderMain, renderMain_fn).call(this)} ${__privateMethod(this, _renderTrail, renderTrail_fn).call(this)}
|
|
221
|
+
</a>
|
|
222
|
+
`;
|
|
223
|
+
}
|
|
224
|
+
return html`${__privateMethod(this, _renderLead, renderLead_fn).call(this)} ${__privateMethod(this, _renderMain, renderMain_fn).call(this)}
|
|
225
|
+
${__privateMethod(this, _renderTrail, renderTrail_fn).call(this)}`;
|
|
226
|
+
};
|
|
227
|
+
GdsListItemPattern01.styles = [tokens, rbcbToggleStyles, ListPattern01ItemStyles];
|
|
228
|
+
__decorateClass([
|
|
229
|
+
state()
|
|
230
|
+
], GdsListItemPattern01.prototype, "_isWrapped", 2);
|
|
231
|
+
__decorateClass([
|
|
232
|
+
state()
|
|
233
|
+
], GdsListItemPattern01.prototype, "_hasLead", 2);
|
|
234
|
+
__decorateClass([
|
|
235
|
+
query(".items-container")
|
|
236
|
+
], GdsListItemPattern01.prototype, "_itemsContainer", 2);
|
|
237
|
+
__decorateClass([
|
|
238
|
+
resizeObserver()
|
|
239
|
+
], GdsListItemPattern01.prototype, "_checkWrap", 1);
|
|
240
|
+
__decorateClass([
|
|
241
|
+
property({ type: Array })
|
|
242
|
+
], GdsListItemPattern01.prototype, "items", 2);
|
|
243
|
+
__decorateClass([
|
|
244
|
+
property({ reflect: true })
|
|
245
|
+
], GdsListItemPattern01.prototype, "label", 2);
|
|
246
|
+
__decorateClass([
|
|
247
|
+
property({ type: Boolean, reflect: true })
|
|
248
|
+
], GdsListItemPattern01.prototype, "selectable", 2);
|
|
249
|
+
__decorateClass([
|
|
250
|
+
property({ type: Boolean, reflect: true })
|
|
251
|
+
], GdsListItemPattern01.prototype, "checked", 2);
|
|
252
|
+
__decorateClass([
|
|
253
|
+
property({ type: Boolean, reflect: true })
|
|
254
|
+
], GdsListItemPattern01.prototype, "indeterminate", 2);
|
|
255
|
+
__decorateClass([
|
|
256
|
+
property({ type: Boolean, reflect: true })
|
|
257
|
+
], GdsListItemPattern01.prototype, "disabled", 2);
|
|
258
|
+
__decorateClass([
|
|
259
|
+
styleExpressionProperty({ ...forSpaceTokensAndCustomValues, reflect: true })
|
|
260
|
+
], GdsListItemPattern01.prototype, "padding-inline", 2);
|
|
261
|
+
__decorateClass([
|
|
262
|
+
state()
|
|
263
|
+
], GdsListItemPattern01.prototype, "_hasTrailContent", 2);
|
|
264
|
+
GdsListItemPattern01 = __decorateClass([
|
|
265
|
+
gdsCustomElement("gds-list-item-pattern-01", {
|
|
266
|
+
dependsOn: [
|
|
267
|
+
GdsFlex,
|
|
268
|
+
GdsText,
|
|
269
|
+
GdsButton,
|
|
270
|
+
IconCheckmark,
|
|
271
|
+
IconMinusSmall,
|
|
272
|
+
IconChevronRight
|
|
273
|
+
]
|
|
274
|
+
})
|
|
275
|
+
], GdsListItemPattern01);
|
|
276
|
+
export {
|
|
277
|
+
GdsListItemPattern01
|
|
278
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import "../../chunks/chunk.CAV4X6PU.js";
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
const style = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
gap: var(--gds-sys-space-s);
|
|
8
|
+
padding: var(--gds-sys-space-s);
|
|
9
|
+
padding-inline: var(--gds-sys-space-s);
|
|
10
|
+
border-radius: var(--gds-sys-space-2xs);
|
|
11
|
+
transition:
|
|
12
|
+
background-color 0.15s ease,
|
|
13
|
+
box-shadow 0.15s ease;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Anchor wrapping main when href is set */
|
|
17
|
+
.linked-area {
|
|
18
|
+
flex: 1;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
align-self: stretch;
|
|
22
|
+
gap: var(--gds-sys-space-s);
|
|
23
|
+
text-decoration: none;
|
|
24
|
+
color: inherit;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
border-radius: var(--gds-sys-space-2xs);
|
|
27
|
+
transition:
|
|
28
|
+
background-color 0.15s ease,
|
|
29
|
+
box-shadow 0.15s ease;
|
|
30
|
+
/* Extend hover to top, and bottom edges of the host */
|
|
31
|
+
margin-top: calc(-1 * var(--gds-sys-space-s));
|
|
32
|
+
margin-bottom: calc(-1 * var(--gds-sys-space-s));
|
|
33
|
+
padding: var(--gds-sys-space-s);
|
|
34
|
+
/* Pre-set transparent outline so it animates in on focus (same pattern as gds-button) */
|
|
35
|
+
outline-color: transparent;
|
|
36
|
+
outline-offset: calc(-1 * var(--gds-sys-space-4xs));
|
|
37
|
+
outline-style: solid;
|
|
38
|
+
outline-width: var(--gds-sys-space-4xs);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.linked-area:focus {
|
|
42
|
+
outline-color: var(--gds-sys-color-content-neutral-01);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.linked-area:focus:not(:focus-visible) {
|
|
46
|
+
outline-color: transparent;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media (pointer: fine) {
|
|
50
|
+
.linked-area:hover {
|
|
51
|
+
background-color: color-mix(
|
|
52
|
+
in srgb,
|
|
53
|
+
var(--gds-sys-color-l2-neutral-01),
|
|
54
|
+
var(--gds-sys-color-state-neutral-03)
|
|
55
|
+
);
|
|
56
|
+
padding: var(--gds-sys-space-s);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.linked-area:active {
|
|
61
|
+
background-color: color-mix(
|
|
62
|
+
in srgb,
|
|
63
|
+
var(--gds-sys-color-l2-neutral-01),
|
|
64
|
+
var(--gds-sys-color-state-neutral-04)
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.linked-area .has-lead {
|
|
69
|
+
flex-shrink: 0;
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
slot[name='trail'] {
|
|
75
|
+
margin-inline-start: auto;
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: end;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
slot[name='trail']:not(.has-content) {
|
|
83
|
+
display: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host([href]) slot[name='trail'] {
|
|
87
|
+
display: flex;
|
|
88
|
+
min-width: 40px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.rbcb-wrapper {
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
outline: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.item-column {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
gap: var(--gds-sys-space-4xs);
|
|
102
|
+
justify-content: center;
|
|
103
|
+
text-align: start;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.item-column.align-end {
|
|
107
|
+
text-align: end;
|
|
108
|
+
}
|
|
109
|
+
`;
|
|
110
|
+
var list_item_pattern_01_styles_default = style;
|
|
111
|
+
export {
|
|
112
|
+
list_item_pattern_01_styles_default as default
|
|
113
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const styles = "/* stylelint-disable max-nesting-depth */\n/**\n * Assert that a map is in ascending order\n * @mixin assert-ascending\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Assert that the first breakpoint in a map starts at zero\n * @mixin assert-starts-at-zero\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Check if a value is important\n * @function is-important\n * @param {Boolean} $important - Whether the value is important\n * @return {String} - \"!important\" if true, otherwise an empty string\n */\n/**\n * Replace a substring in a string\n * @function str-replace\n * @param {String} $string - The original string\n * @param {String} $search - The substring to replace\n * @param {String} $replace - The replacement string\n * @return {String} - The updated string\n */\n/**\n * Convert a map to its negative variant\n * @function negativify-map\n * @param {Map} $map - The map to convert\n * @return {Map} - The negative variant of the map\n */\n/**\n * Generate utility classes\n * @mixin generate-utility\n * @param {Map} $utility - Utility map\n * @param {String} $infix - Infix for class names\n * @param {Boolean} $is-rfs-media-query - Whether to use RFS media query\n */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * @function luminance\n * @param {Color} $color - The color to calculate luminance for\n * @return {Number} - The luminance value\n */\n/**\n * Calculate the contrast ratio between two colors.\n * @function color-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @return {Number} - The contrast ratio\n */\n/**\n * Remove the unit of a length\n * @function strip-unit\n * @param {Number} $number - Number to remove unit from\n * @return {Number} - Unitless number\n */\n/**\n * Validate font size\n * @function validate-font-size\n * @param {Number} $size - Font size to validate\n * @return {Number} - Validated font size in pixels\n */\n/**\n * Get ratio for WCAG level\n * @function get-ratio\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @return {Number} - Ratio value\n */\n/**\n * Determine if a color is light or dark\n * @function light-or-dark\n * @param {Color} $color - The color to check\n * @return {String} - \"light\" or \"dark\"\n */\n/**\n * Get the most legible color (black or white) for a given background color\n * @function most-legible-color\n * @param {Color} $color - The background color\n * @return {Color} - The most legible color\n */\n/**\n * Get the desired color combination for foreground and background colors\n * @function desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n * @return {List} - List containing background and foreground colors\n */\n/**\n * @mixin desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n */\n/**\n * Get an accessible color for a given foreground and background color\n * @function a11y-color\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @param {Number} $maxOffset - Maximum offset\n * @param {Boolean} $darkMode - Is dark mode\n * @param {Number} $ratio - Contrast ratio\n * @return {Color} - Accessible color\n */\n/**\n * Get the maximum contrast color\n * @function max-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Color} $max - Maximum contrast color\n * @return {Color} - Maximum contrast color\n */\n/**\n * Get the RGB values of a color as a string\n * @function stripped-rgb\n * @param {Color} $color - The color\n * @return {String} - RGB values as a string\n */\n/**\n * Get the HSL values of a color as a string\n * @function stripped-hsl\n * @param {Color} $color - The color\n * @return {String} - HSL values as a string\n */\n/**\n * Convert a map of colors to a map of HSL values\n * @function hsl-map\n * @param {Map} $colors - Map of colors\n * @return {Map} - Map of HSL values\n */\n/**\n* @deprecated\n* Use `add-focus` instead\n*/\n/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */\n/**\n * Breakpoint viewport sizes and media queries.\n *\n * Breakpoints are defined as a map of (name: minimum width), order from small to large:\n *\n * (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)\n *\n * The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.\n */\n/**\n * Name of the next breakpoint, or null for the last breakpoint.\n *\n * >> breakpoint-next(sm)\n * md\n * >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * md\n * >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))\n * md\n */\n/**\n * Minimum breakpoint width. Null for the smallest (first) breakpoint.\n *\n * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 576px\n */\n/**\n * Maximum breakpoint width.\n * The maximum value is reduced by 0.02px to work around the limitations of\n * `min-` and `max-` prefixes and viewports with fractional widths.\n * See https://www.w3.org/TR/mediaqueries-4/#mq-min-max\n * Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.\n * See https://bugs.webkit.org/show_bug.cgi?id=178261\n *\n * >> breakpoint-max(md, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 767.98px\n */\n/**\n * Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.\n * Useful for making responsive utilities.\n *\n * >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"\" (Returns a blank string)\n * >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"-sm\"\n */\n/**\n * Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n * Makes the @content apply to the given breakpoint and wider.\n */\n/**\n * Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n * Makes the @content apply to the given breakpoint and narrower.\n */\n/**\n * Media that spans multiple breakpoint widths.\n * Makes the @content apply between the min and max breakpoints\n */\n/**\n * Media between the breakpoint's minimum and maximum widths.\n * No minimum for the smallest breakpoint, and no maximum for the largest one.\n * Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n */\n/** \n * @deprecated in favor of Grouped list component\n */\n/** \n * @deprecated in favor of Grouped list component\n */\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n :host {\n padding-left: 0;\n margin-bottom: 0;\n margin-top: 0;\n display: flex;\n flex-direction: column;\n list-style: none;\n }\n :host > li {\n padding-bottom: 0.5rem;\n padding-top: 0.5rem;\n border: 0;\n display: block;\n position: relative;\n }\n :host > li::before {\n font-weight: 500;\n display: inline-block;\n left: 0;\n position: absolute;\n text-align: center;\n }\n :host {\n overflow-y: auto;\n }\n}";
|
|
1
|
+
const styles = "/* stylelint-disable max-nesting-depth */\n/**\n * Assert that a map is in ascending order\n * @mixin assert-ascending\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Assert that the first breakpoint in a map starts at zero\n * @mixin assert-starts-at-zero\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Check if a value is important\n * @function is-important\n * @param {Boolean} $important - Whether the value is important\n * @return {String} - \"!important\" if true, otherwise an empty string\n */\n/**\n * Replace a substring in a string\n * @function str-replace\n * @param {String} $string - The original string\n * @param {String} $search - The substring to replace\n * @param {String} $replace - The replacement string\n * @return {String} - The updated string\n */\n/**\n * Convert a map to its negative variant\n * @function negativify-map\n * @param {Map} $map - The map to convert\n * @return {Map} - The negative variant of the map\n */\n/**\n * Generate utility classes\n * @mixin generate-utility\n * @param {Map} $utility - Utility map\n * @param {String} $infix - Infix for class names\n * @param {Boolean} $is-rfs-media-query - Whether to use RFS media query\n */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * @function luminance\n * @param {Color} $color - The color to calculate luminance for\n * @return {Number} - The luminance value\n */\n/**\n * Calculate the contrast ratio between two colors.\n * @function color-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @return {Number} - The contrast ratio\n */\n/**\n * Remove the unit of a length\n * @function strip-unit\n * @param {Number} $number - Number to remove unit from\n * @return {Number} - Unitless number\n */\n/**\n * Validate font size\n * @function validate-font-size\n * @param {Number} $size - Font size to validate\n * @return {Number} - Validated font size in pixels\n */\n/**\n * Get ratio for WCAG level\n * @function get-ratio\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @return {Number} - Ratio value\n */\n/**\n * Determine if a color is light or dark\n * @function light-or-dark\n * @param {Color} $color - The color to check\n * @return {String} - \"light\" or \"dark\"\n */\n/**\n * Get the most legible color (black or white) for a given background color\n * @function most-legible-color\n * @param {Color} $color - The background color\n * @return {Color} - The most legible color\n */\n/**\n * Get the desired color combination for foreground and background colors\n * @function desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n * @return {List} - List containing background and foreground colors\n */\n/**\n * @mixin desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n */\n/**\n * Get an accessible color for a given foreground and background color\n * @function a11y-color\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @param {Number} $maxOffset - Maximum offset\n * @param {Boolean} $darkMode - Is dark mode\n * @param {Number} $ratio - Contrast ratio\n * @return {Color} - Accessible color\n */\n/**\n * Get the maximum contrast color\n * @function max-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Color} $max - Maximum contrast color\n * @return {Color} - Maximum contrast color\n */\n/**\n * Get the RGB values of a color as a string\n * @function stripped-rgb\n * @param {Color} $color - The color\n * @return {String} - RGB values as a string\n */\n/**\n * Get the HSL values of a color as a string\n * @function stripped-hsl\n * @param {Color} $color - The color\n * @return {String} - HSL values as a string\n */\n/**\n * Convert a map of colors to a map of HSL values\n * @function hsl-map\n * @param {Map} $colors - Map of colors\n * @return {Map} - Map of HSL values\n */\n/**\n* @deprecated\n* Use `add-focus` instead\n*/\n/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */\n/**\n * Breakpoint viewport sizes and media queries.\n *\n * Breakpoints are defined as a map of (name: minimum width), order from small to large:\n *\n * (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)\n *\n * The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.\n */\n/**\n * Name of the next breakpoint, or null for the last breakpoint.\n *\n * >> breakpoint-next(sm)\n * md\n * >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * md\n * >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))\n * md\n */\n/**\n * Minimum breakpoint width. Null for the smallest (first) breakpoint.\n *\n * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 576px\n */\n/**\n * Maximum breakpoint width.\n * The maximum value is reduced by 0.02px to work around the limitations of\n * `min-` and `max-` prefixes and viewports with fractional widths.\n * See https://www.w3.org/TR/mediaqueries-4/#mq-min-max\n * Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.\n * See https://bugs.webkit.org/show_bug.cgi?id=178261\n *\n * >> breakpoint-max(md, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 767.98px\n */\n/**\n * Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.\n * Useful for making responsive utilities.\n *\n * >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"\" (Returns a blank string)\n * >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"-sm\"\n */\n/**\n * Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n * Makes the @content apply to the given breakpoint and wider.\n */\n/**\n * Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n * Makes the @content apply to the given breakpoint and narrower.\n */\n/**\n * Media that spans multiple breakpoint widths.\n * Makes the @content apply between the min and max breakpoints\n */\n/**\n * Media between the breakpoint's minimum and maximum widths.\n * No minimum for the smallest breakpoint, and no maximum for the largest one.\n * Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n */\n/** \n * @deprecated in favor of Grouped list component\n */\n/** \n * @deprecated in favor of Grouped list component\n */\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n :host {\n padding-left: 0 \"\";\n margin-bottom: 0 \"\";\n margin-top: 0 \"\";\n display: flex;\n flex-direction: column;\n list-style: none;\n }\n :host > li {\n padding-bottom: 0.5rem \"\";\n padding-top: 0.5rem \"\";\n border: 0;\n display: block;\n position: relative;\n }\n :host > li::before {\n font-weight: 500;\n display: inline-block;\n left: 0;\n position: absolute;\n text-align: center;\n }\n :host {\n overflow-y: auto;\n }\n}";
|
|
2
2
|
export default styles;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const styles = "/* stylelint-disable max-nesting-depth */\n/**\n * Assert that a map is in ascending order\n * @mixin assert-ascending\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Assert that the first breakpoint in a map starts at zero\n * @mixin assert-starts-at-zero\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Check if a value is important\n * @function is-important\n * @param {Boolean} $important - Whether the value is important\n * @return {String} - \"!important\" if true, otherwise an empty string\n */\n/**\n * Replace a substring in a string\n * @function str-replace\n * @param {String} $string - The original string\n * @param {String} $search - The substring to replace\n * @param {String} $replace - The replacement string\n * @return {String} - The updated string\n */\n/**\n * Convert a map to its negative variant\n * @function negativify-map\n * @param {Map} $map - The map to convert\n * @return {Map} - The negative variant of the map\n */\n/**\n * Generate utility classes\n * @mixin generate-utility\n * @param {Map} $utility - Utility map\n * @param {String} $infix - Infix for class names\n * @param {Boolean} $is-rfs-media-query - Whether to use RFS media query\n */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * @function luminance\n * @param {Color} $color - The color to calculate luminance for\n * @return {Number} - The luminance value\n */\n/**\n * Calculate the contrast ratio between two colors.\n * @function color-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @return {Number} - The contrast ratio\n */\n/**\n * Remove the unit of a length\n * @function strip-unit\n * @param {Number} $number - Number to remove unit from\n * @return {Number} - Unitless number\n */\n/**\n * Validate font size\n * @function validate-font-size\n * @param {Number} $size - Font size to validate\n * @return {Number} - Validated font size in pixels\n */\n/**\n * Get ratio for WCAG level\n * @function get-ratio\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @return {Number} - Ratio value\n */\n/**\n * Determine if a color is light or dark\n * @function light-or-dark\n * @param {Color} $color - The color to check\n * @return {String} - \"light\" or \"dark\"\n */\n/**\n * Get the most legible color (black or white) for a given background color\n * @function most-legible-color\n * @param {Color} $color - The background color\n * @return {Color} - The most legible color\n */\n/**\n * Get the desired color combination for foreground and background colors\n * @function desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n * @return {List} - List containing background and foreground colors\n */\n/**\n * @mixin desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n */\n/**\n * Get an accessible color for a given foreground and background color\n * @function a11y-color\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @param {Number} $maxOffset - Maximum offset\n * @param {Boolean} $darkMode - Is dark mode\n * @param {Number} $ratio - Contrast ratio\n * @return {Color} - Accessible color\n */\n/**\n * Get the maximum contrast color\n * @function max-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Color} $max - Maximum contrast color\n * @return {Color} - Maximum contrast color\n */\n/**\n * Get the RGB values of a color as a string\n * @function stripped-rgb\n * @param {Color} $color - The color\n * @return {String} - RGB values as a string\n */\n/**\n * Get the HSL values of a color as a string\n * @function stripped-hsl\n * @param {Color} $color - The color\n * @return {String} - HSL values as a string\n */\n/**\n * Convert a map of colors to a map of HSL values\n * @function hsl-map\n * @param {Map} $colors - Map of colors\n * @return {Map} - Map of HSL values\n */\n/**\n* @deprecated\n* Use `add-focus` instead\n*/\n/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */\n/**\n * Breakpoint viewport sizes and media queries.\n *\n * Breakpoints are defined as a map of (name: minimum width), order from small to large:\n *\n * (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)\n *\n * The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.\n */\n/**\n * Name of the next breakpoint, or null for the last breakpoint.\n *\n * >> breakpoint-next(sm)\n * md\n * >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * md\n * >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))\n * md\n */\n/**\n * Minimum breakpoint width. Null for the smallest (first) breakpoint.\n *\n * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 576px\n */\n/**\n * Maximum breakpoint width.\n * The maximum value is reduced by 0.02px to work around the limitations of\n * `min-` and `max-` prefixes and viewports with fractional widths.\n * See https://www.w3.org/TR/mediaqueries-4/#mq-min-max\n * Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.\n * See https://bugs.webkit.org/show_bug.cgi?id=178261\n *\n * >> breakpoint-max(md, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 767.98px\n */\n/**\n * Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.\n * Useful for making responsive utilities.\n *\n * >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"\" (Returns a blank string)\n * >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"-sm\"\n */\n/**\n * Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n * Makes the @content apply to the given breakpoint and wider.\n */\n/**\n * Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n * Makes the @content apply to the given breakpoint and narrower.\n */\n/**\n * Media that spans multiple breakpoint widths.\n * Makes the @content apply between the min and max breakpoints\n */\n/**\n * Media between the breakpoint's minimum and maximum widths.\n * No minimum for the smallest breakpoint, and no maximum for the largest one.\n * Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n */\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n .item {\n padding-left: 1rem;\n padding-right: 1rem;\n padding-bottom: 0.75rem;\n padding-top: 0.75rem;\n line-height: 1.25;\n cursor: pointer;\n }\n .item:hover, .item:focus-visible {\n background-color: var(--gds-sys-color-base-200);\n }\n .item:active {\n background-color: var(--gds-sys-color-base-200);\n }\n .item:focus {\n outline-color: #000;\n outline-offset: -0.25rem;\n }\n .item.active.sg-highlighted, .item[aria-selected=true] {\n background: var(--gds-sys-color-base-800);\n color: #fff;\n }\n .item {\n display: flex;\n gap: 0.75rem;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n }\n :host(:hover) div,\n :host(:focus-visible) div {\n background-color: var(--gds-sys-color-base-200);\n }\n :host(:active) div {\n background-color: var(--gds-sys-color-base-300);\n }\n :host(:focus-visible) {\n outline-color: #000;\n outline-offset: -0.25rem;\n }\n :host([inert]) {\n display: none;\n }\n :host([highlighted]) .item {\n background: var(--gds-sys-color-base-800);\n color: #fff;\n }\n}";
|
|
1
|
+
const styles = "/* stylelint-disable max-nesting-depth */\n/**\n * Assert that a map is in ascending order\n * @mixin assert-ascending\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Assert that the first breakpoint in a map starts at zero\n * @mixin assert-starts-at-zero\n * @param {Map} $map - The map to check\n * @param {String} $map-name - The name of the map\n */\n/**\n * Check if a value is important\n * @function is-important\n * @param {Boolean} $important - Whether the value is important\n * @return {String} - \"!important\" if true, otherwise an empty string\n */\n/**\n * Replace a substring in a string\n * @function str-replace\n * @param {String} $string - The original string\n * @param {String} $search - The substring to replace\n * @param {String} $replace - The replacement string\n * @return {String} - The updated string\n */\n/**\n * Convert a map to its negative variant\n * @function negativify-map\n * @param {Map} $map - The map to convert\n * @return {Map} - The negative variant of the map\n */\n/**\n * Generate utility classes\n * @mixin generate-utility\n * @param {Map} $utility - Utility map\n * @param {String} $infix - Infix for class names\n * @param {Boolean} $is-rfs-media-query - Whether to use RFS media query\n */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * @function luminance\n * @param {Color} $color - The color to calculate luminance for\n * @return {Number} - The luminance value\n */\n/**\n * Calculate the contrast ratio between two colors.\n * @function color-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @return {Number} - The contrast ratio\n */\n/**\n * Remove the unit of a length\n * @function strip-unit\n * @param {Number} $number - Number to remove unit from\n * @return {Number} - Unitless number\n */\n/**\n * Validate font size\n * @function validate-font-size\n * @param {Number} $size - Font size to validate\n * @return {Number} - Validated font size in pixels\n */\n/**\n * Get ratio for WCAG level\n * @function get-ratio\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @return {Number} - Ratio value\n */\n/**\n * Determine if a color is light or dark\n * @function light-or-dark\n * @param {Color} $color - The color to check\n * @return {String} - \"light\" or \"dark\"\n */\n/**\n * Get the most legible color (black or white) for a given background color\n * @function most-legible-color\n * @param {Color} $color - The background color\n * @return {Color} - The most legible color\n */\n/**\n * Get the desired color combination for foreground and background colors\n * @function desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n * @return {List} - List containing background and foreground colors\n */\n/**\n * @mixin desired-color-combination\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Number} $offsetThreshold - Offset threshold\n * @param {Number} $ratio - Contrast ratio\n */\n/**\n * Get an accessible color for a given foreground and background color\n * @function a11y-color\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {String} $level - WCAG level\n * @param {Number} $size - Font size\n * @param {Boolean} $bold - Is bold\n * @param {Boolean} $graphic - Is graphic\n * @param {Number} $maxOffset - Maximum offset\n * @param {Boolean} $darkMode - Is dark mode\n * @param {Number} $ratio - Contrast ratio\n * @return {Color} - Accessible color\n */\n/**\n * Get the maximum contrast color\n * @function max-contrast\n * @param {Color} $fg - Foreground color\n * @param {Color} $bg - Background color\n * @param {Color} $max - Maximum contrast color\n * @return {Color} - Maximum contrast color\n */\n/**\n * Get the RGB values of a color as a string\n * @function stripped-rgb\n * @param {Color} $color - The color\n * @return {String} - RGB values as a string\n */\n/**\n * Get the HSL values of a color as a string\n * @function stripped-hsl\n * @param {Color} $color - The color\n * @return {String} - HSL values as a string\n */\n/**\n * Convert a map of colors to a map of HSL values\n * @function hsl-map\n * @param {Map} $colors - Map of colors\n * @return {Map} - Map of HSL values\n */\n/**\n* @deprecated\n* Use `add-focus` instead\n*/\n/** add background color, color and border-color to element when it has focus-visible i.e. tab focus */\n/**\n * Breakpoint viewport sizes and media queries.\n *\n * Breakpoints are defined as a map of (name: minimum width), order from small to large:\n *\n * (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)\n *\n * The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.\n */\n/**\n * Name of the next breakpoint, or null for the last breakpoint.\n *\n * >> breakpoint-next(sm)\n * md\n * >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * md\n * >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))\n * md\n */\n/**\n * Minimum breakpoint width. Null for the smallest (first) breakpoint.\n *\n * >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 576px\n */\n/**\n * Maximum breakpoint width.\n * The maximum value is reduced by 0.02px to work around the limitations of\n * `min-` and `max-` prefixes and viewports with fractional widths.\n * See https://www.w3.org/TR/mediaqueries-4/#mq-min-max\n * Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.\n * See https://bugs.webkit.org/show_bug.cgi?id=178261\n *\n * >> breakpoint-max(md, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * 767.98px\n */\n/**\n * Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.\n * Useful for making responsive utilities.\n *\n * >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"\" (Returns a blank string)\n * >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))\n * \"-sm\"\n */\n/**\n * Media of at least the minimum breakpoint width. No query for the smallest breakpoint.\n * Makes the @content apply to the given breakpoint and wider.\n */\n/**\n * Media of at most the maximum breakpoint width. No query for the largest breakpoint.\n * Makes the @content apply to the given breakpoint and narrower.\n */\n/**\n * Media that spans multiple breakpoint widths.\n * Makes the @content apply between the min and max breakpoints\n */\n/**\n * Media between the breakpoint's minimum and maximum widths.\n * No minimum for the smallest breakpoint, and no maximum for the largest one.\n * Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.\n */\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n .item {\n padding-left: 1rem \"\";\n padding-right: 1rem \"\";\n padding-bottom: 0.75rem \"\";\n padding-top: 0.75rem \"\";\n line-height: 1.25;\n cursor: pointer;\n }\n .item:hover, .item:focus-visible {\n background-color: var(--gds-sys-color-base-200);\n }\n .item:active {\n background-color: var(--gds-sys-color-base-200);\n }\n .item:focus {\n outline-color: #000;\n outline-offset: -0.25rem;\n }\n .item.active.sg-highlighted, .item[aria-selected=true] {\n background: var(--gds-sys-color-base-800);\n color: #fff;\n }\n .item {\n display: flex;\n gap: 0.75rem;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n }\n :host(:hover) div,\n :host(:focus-visible) div {\n background-color: var(--gds-sys-color-base-200);\n }\n :host(:active) div {\n background-color: var(--gds-sys-color-base-300);\n }\n :host(:focus-visible) {\n outline-color: #000;\n outline-offset: -0.25rem;\n }\n :host([inert]) {\n display: none;\n }\n :host([highlighted]) .item {\n background: var(--gds-sys-color-base-800);\n color: #fff;\n }\n}";
|
|
2
2
|
export default styles;
|
package/pure.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ export * from './components/icon/icons/pure';
|
|
|
33
33
|
export * from './components/img/img.component';
|
|
34
34
|
export * from './components/input/input.component';
|
|
35
35
|
export * from './components/link/link.component';
|
|
36
|
+
export * from './components/list/list.component';
|
|
37
|
+
export * from './components/list/list-item/list-item.component';
|
|
36
38
|
export * from './components/mask/mask.component';
|
|
37
39
|
export * from './components/menu-button/menu-button.component';
|
|
38
40
|
export * from './components/pagination/pagination.component';
|
|
@@ -54,3 +56,4 @@ export * from './components/textarea/textarea.component';
|
|
|
54
56
|
export * from './components/theme/theme.component';
|
|
55
57
|
export * from './components/video/video.component';
|
|
56
58
|
export * from './patterns/card-pattern-01/card-pattern-01.component';
|
|
59
|
+
export * from './patterns/list-item-pattern-01/list-item-pattern-01.component';
|
package/pure.js
CHANGED
|
@@ -33,6 +33,8 @@ export * from "./components/icon/icons/pure.js";
|
|
|
33
33
|
export * from "./components/img/img.component.js";
|
|
34
34
|
export * from "./components/input/input.component.js";
|
|
35
35
|
export * from "./components/link/link.component.js";
|
|
36
|
+
export * from "./components/list/list.component.js";
|
|
37
|
+
export * from "./components/list/list-item/list-item.component.js";
|
|
36
38
|
export * from "./components/mask/mask.component.js";
|
|
37
39
|
export * from "./components/menu-button/menu-button.component.js";
|
|
38
40
|
export * from "./components/pagination/pagination.component.js";
|
|
@@ -54,3 +56,4 @@ export * from "./components/textarea/textarea.component.js";
|
|
|
54
56
|
export * from "./components/theme/theme.component.js";
|
|
55
57
|
export * from "./components/video/video.component.js";
|
|
56
58
|
export * from "./patterns/card-pattern-01/card-pattern-01.component.js";
|
|
59
|
+
export * from "./patterns/list-item-pattern-01/list-item-pattern-01.component.js";
|