@sebgroup/green-core 2.16.1 → 2.17.0-rc.20251204205214555
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.component.d.ts +0 -23
- package/components/badge/badge.component.js +18 -105
- package/components/badge/badge.styles.js +96 -2
- package/components/button/button.trans.styles.scss.js +1 -1
- package/components/calendar/calendar.trans.styles.scss.js +1 -1
- package/components/checkbox/checkbox.component.js +24 -22
- package/components/checkbox/checkbox.styles.js +0 -8
- package/components/context-menu/context-menu.trans.styles.scss.js +1 -1
- package/components/datepicker/datepicker.component.js +1 -9
- package/components/dropdown/dropdown.component.js +4 -1
- package/components/formatted-text/number/formatted-number.component.d.ts +4 -1
- package/components/formatted-text/number/formatted-number.component.js +9 -1
- package/components/formatted-text/number/number-formatter.d.ts +1 -1
- package/components/formatted-text/number/number-formatter.js +3 -3
- package/components/index.d.ts +2 -0
- package/components/index.js +2 -0
- package/components/input/input.component.js +1 -4
- package/components/input/input.styles.js +10 -1
- package/components/link/link.component.js +1 -1
- package/components/pagination/index.d.ts +1 -0
- package/components/pagination/index.js +1 -0
- package/components/pagination/pagination.component.d.ts +76 -0
- package/components/pagination/pagination.component.js +434 -0
- package/components/pagination/pagination.d.ts +2 -0
- package/components/pagination/pagination.js +6 -0
- package/components/pagination/pagination.styles.d.ts +1 -0
- package/components/pagination/pagination.styles.js +19 -0
- package/components/sensitive/number/sensitive-number.component.d.ts +2 -1
- package/components/sensitive/number/sensitive-number.component.js +6 -1
- package/components/table/index.d.ts +1 -0
- package/components/table/index.js +1 -0
- package/components/table/table.component.d.ts +127 -0
- package/components/table/table.component.js +1028 -0
- package/components/table/table.d.ts +2 -0
- package/components/table/table.imports.d.ts +6 -0
- package/components/table/table.imports.js +63 -0
- package/components/table/table.js +6 -0
- package/components/table/table.stories.data.d.ts +53 -0
- package/components/table/table.stories.data.js +395 -0
- package/components/table/table.styles.d.ts +1 -0
- package/components/table/table.styles.js +736 -0
- package/components/table/table.types.d.ts +150 -0
- package/components/table/table.types.js +24 -0
- package/components/textarea/textarea.component.js +1 -4
- package/gds-element.js +1 -1
- package/generated/locales/da.d.ts +32 -0
- package/generated/locales/da.js +33 -1
- package/generated/locales/de.d.ts +32 -0
- package/generated/locales/de.js +33 -1
- package/generated/locales/fi.d.ts +32 -0
- package/generated/locales/fi.js +33 -1
- package/generated/locales/fr.d.ts +32 -0
- package/generated/locales/fr.js +33 -1
- package/generated/locales/it.d.ts +32 -0
- package/generated/locales/it.js +33 -1
- package/generated/locales/nl.d.ts +32 -0
- package/generated/locales/nl.js +33 -1
- package/generated/locales/no.d.ts +32 -0
- package/generated/locales/no.js +33 -1
- package/generated/locales/sv.d.ts +32 -0
- package/generated/locales/sv.js +33 -1
- package/generated/react/alert/index.d.ts +22 -15
- package/generated/react/backdrop/index.d.ts +19 -12
- package/generated/react/badge/index.d.ts +22 -15
- package/generated/react/blur/index.d.ts +18 -11
- package/generated/react/breadcrumb/index.d.ts +22 -15
- package/generated/react/breadcrumbs/index.d.ts +19 -12
- package/generated/react/button/index.d.ts +30 -23
- package/generated/react/calendar/index.d.ts +24 -17
- package/generated/react/card/index.d.ts +19 -12
- package/generated/react/card-linked/index.d.ts +21 -14
- package/generated/react/card-pattern-01/index.d.ts +29 -22
- package/generated/react/checkbox/index.d.ts +31 -24
- package/generated/react/checkbox-group/index.d.ts +31 -24
- package/generated/react/coachmark/index.d.ts +21 -14
- package/generated/react/context-menu/index.d.ts +21 -14
- package/generated/react/datepicker/index.d.ts +40 -33
- package/generated/react/details/index.d.ts +21 -14
- package/generated/react/dialog/index.d.ts +20 -13
- package/generated/react/div/index.d.ts +18 -11
- package/generated/react/divider/index.d.ts +18 -11
- package/generated/react/dropdown/index.d.ts +43 -36
- package/generated/react/fab/index.d.ts +30 -23
- package/generated/react/filter-chip/index.d.ts +19 -12
- package/generated/react/filter-chips/index.d.ts +31 -24
- package/generated/react/flex/index.d.ts +18 -11
- package/generated/react/form-control-footer/index.d.ts +18 -11
- package/generated/react/form-control-header/index.d.ts +19 -12
- package/generated/react/form-summary/index.d.ts +21 -14
- package/generated/react/formatted-account/index.d.ts +21 -14
- package/generated/react/formatted-date/index.d.ts +20 -13
- package/generated/react/formatted-number/index.d.ts +22 -14
- package/generated/react/grid/index.d.ts +18 -11
- package/generated/react/grouped-list/index.d.ts +19 -12
- package/generated/react/icons/icon/index.d.ts +20 -13
- package/generated/react/icons/icon-ai/index.d.ts +20 -13
- package/generated/react/icons/icon-airplane-up/index.d.ts +20 -13
- package/generated/react/icons/icon-archive/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-bottom-top/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-box-left/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-box-right/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-down/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-inbox/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-left/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-left-right/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-out-of-box/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-right/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-right-circle/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-right-down-circle/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-right-up-circle/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-rotate-clockwise/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-rotate-counter-clockwise/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-rotate-left-right/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-rotate-right-left/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-share-left/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-share-right/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-split/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-up/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-wall-down/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-wall-left/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-wall-right/index.d.ts +20 -13
- package/generated/react/icons/icon-arrow-wall-up/index.d.ts +20 -13
- package/generated/react/icons/icon-arrows-repeat/index.d.ts +20 -13
- package/generated/react/icons/icon-at/index.d.ts +20 -13
- package/generated/react/icons/icon-back/index.d.ts +20 -13
- package/generated/react/icons/icon-backward/index.d.ts +20 -13
- package/generated/react/icons/icon-bag/index.d.ts +20 -13
- package/generated/react/icons/icon-bank/index.d.ts +20 -13
- package/generated/react/icons/icon-banknote/index.d.ts +20 -13
- package/generated/react/icons/icon-banknote-2/index.d.ts +20 -13
- package/generated/react/icons/icon-barcode/index.d.ts +20 -13
- package/generated/react/icons/icon-bars-three/index.d.ts +20 -13
- package/generated/react/icons/icon-bars-two/index.d.ts +20 -13
- package/generated/react/icons/icon-basket/index.d.ts +20 -13
- package/generated/react/icons/icon-battery-loading/index.d.ts +20 -13
- package/generated/react/icons/icon-bell/index.d.ts +20 -13
- package/generated/react/icons/icon-block/index.d.ts +20 -13
- package/generated/react/icons/icon-book/index.d.ts +20 -13
- package/generated/react/icons/icon-bookmark/index.d.ts +20 -13
- package/generated/react/icons/icon-bookmark-check/index.d.ts +20 -13
- package/generated/react/icons/icon-bookmark-delete/index.d.ts +20 -13
- package/generated/react/icons/icon-bookmark-plus/index.d.ts +20 -13
- package/generated/react/icons/icon-bookmark-remove/index.d.ts +20 -13
- package/generated/react/icons/icon-books/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-app-store/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-apple-music/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-bankid/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-chrome/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-facebook/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-figma/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-firefox/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-github/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-green/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-instagram/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-linkedin/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-play-store/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-rss-feed/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-seb/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-spotify/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-storybook/index.d.ts +20 -13
- package/generated/react/icons/icon-brand-x/index.d.ts +20 -13
- package/generated/react/icons/icon-brush/index.d.ts +20 -13
- package/generated/react/icons/icon-bubble/index.d.ts +20 -13
- package/generated/react/icons/icon-bubble-annotation/index.d.ts +20 -13
- package/generated/react/icons/icon-bubble-dots/index.d.ts +20 -13
- package/generated/react/icons/icon-bubble-question/index.d.ts +20 -13
- package/generated/react/icons/icon-bubble-quotes/index.d.ts +20 -13
- package/generated/react/icons/icon-bubble-text/index.d.ts +20 -13
- package/generated/react/icons/icon-bubble-wide-annotation/index.d.ts +20 -13
- package/generated/react/icons/icon-bubbles/index.d.ts +20 -13
- package/generated/react/icons/icon-buildings/index.d.ts +20 -13
- package/generated/react/icons/icon-bullet-list/index.d.ts +20 -13
- package/generated/react/icons/icon-cain-link/index.d.ts +20 -13
- package/generated/react/icons/icon-calculator/index.d.ts +20 -13
- package/generated/react/icons/icon-calendar/index.d.ts +20 -13
- package/generated/react/icons/icon-calendar-check/index.d.ts +20 -13
- package/generated/react/icons/icon-calender-add/index.d.ts +20 -13
- package/generated/react/icons/icon-call/index.d.ts +20 -13
- package/generated/react/icons/icon-car/index.d.ts +20 -13
- package/generated/react/icons/icon-carussel/index.d.ts +20 -13
- package/generated/react/icons/icon-chain-link/index.d.ts +20 -13
- package/generated/react/icons/icon-chain-link-broken/index.d.ts +20 -13
- package/generated/react/icons/icon-charging-station/index.d.ts +20 -13
- package/generated/react/icons/icon-chart-one/index.d.ts +20 -13
- package/generated/react/icons/icon-chart-presentation/index.d.ts +20 -13
- package/generated/react/icons/icon-chart-two/index.d.ts +20 -13
- package/generated/react/icons/icon-checklist/index.d.ts +20 -13
- package/generated/react/icons/icon-checkmark/index.d.ts +20 -13
- package/generated/react/icons/icon-chevron-bottom/index.d.ts +20 -13
- package/generated/react/icons/icon-chevron-double-down/index.d.ts +20 -13
- package/generated/react/icons/icon-chevron-double-left/index.d.ts +20 -13
- package/generated/react/icons/icon-chevron-double-right/index.d.ts +20 -13
- package/generated/react/icons/icon-chevron-double-up/index.d.ts +20 -13
- package/generated/react/icons/icon-chevron-down-small/index.d.ts +20 -13
- package/generated/react/icons/icon-chevron-grabber-vertical/index.d.ts +20 -13
- package/generated/react/icons/icon-chevron-left/index.d.ts +20 -13
- package/generated/react/icons/icon-chevron-left-small/index.d.ts +20 -13
- package/generated/react/icons/icon-chevron-right/index.d.ts +20 -13
- package/generated/react/icons/icon-chevron-right-small/index.d.ts +20 -13
- package/generated/react/icons/icon-chevron-top/index.d.ts +20 -13
- package/generated/react/icons/icon-chevron-top-small/index.d.ts +20 -13
- package/generated/react/icons/icon-circle-ban/index.d.ts +20 -13
- package/generated/react/icons/icon-circle-check/index.d.ts +20 -13
- package/generated/react/icons/icon-circle-dots/index.d.ts +20 -13
- package/generated/react/icons/icon-circle-info/index.d.ts +20 -13
- package/generated/react/icons/icon-circle-minus/index.d.ts +20 -13
- package/generated/react/icons/icon-circle-placeholder-on/index.d.ts +20 -13
- package/generated/react/icons/icon-circle-plus/index.d.ts +20 -13
- package/generated/react/icons/icon-circle-questionmark/index.d.ts +20 -13
- package/generated/react/icons/icon-circle-x/index.d.ts +20 -13
- package/generated/react/icons/icon-circles-three/index.d.ts +20 -13
- package/generated/react/icons/icon-clock/index.d.ts +20 -13
- package/generated/react/icons/icon-cloud-download/index.d.ts +20 -13
- package/generated/react/icons/icon-cloud-upload/index.d.ts +20 -13
- package/generated/react/icons/icon-cloudy-sun/index.d.ts +20 -13
- package/generated/react/icons/icon-code/index.d.ts +20 -13
- package/generated/react/icons/icon-code-brackets/index.d.ts +20 -13
- package/generated/react/icons/icon-compass-round/index.d.ts +20 -13
- package/generated/react/icons/icon-cookies/index.d.ts +20 -13
- package/generated/react/icons/icon-copy/index.d.ts +20 -13
- package/generated/react/icons/icon-credit-card/index.d.ts +20 -13
- package/generated/react/icons/icon-cross-large/index.d.ts +20 -13
- package/generated/react/icons/icon-cross-small/index.d.ts +20 -13
- package/generated/react/icons/icon-cup-hot/index.d.ts +20 -13
- package/generated/react/icons/icon-cursor/index.d.ts +20 -13
- package/generated/react/icons/icon-details/index.d.ts +19 -12
- package/generated/react/icons/icon-devices/index.d.ts +20 -13
- package/generated/react/icons/icon-direction/index.d.ts +20 -13
- package/generated/react/icons/icon-dollar/index.d.ts +20 -13
- package/generated/react/icons/icon-dot-grid-one-horizontal/index.d.ts +20 -13
- package/generated/react/icons/icon-dot-grid-one-vertical/index.d.ts +20 -13
- package/generated/react/icons/icon-dot-grid-three/index.d.ts +20 -13
- package/generated/react/icons/icon-dot-grid-two/index.d.ts +20 -13
- package/generated/react/icons/icon-email/index.d.ts +20 -13
- package/generated/react/icons/icon-emoji-angry/index.d.ts +20 -13
- package/generated/react/icons/icon-emoji-neutral/index.d.ts +20 -13
- package/generated/react/icons/icon-emoji-sad/index.d.ts +20 -13
- package/generated/react/icons/icon-emoji-smile/index.d.ts +20 -13
- package/generated/react/icons/icon-emoji-smiley/index.d.ts +20 -13
- package/generated/react/icons/icon-euro/index.d.ts +20 -13
- package/generated/react/icons/icon-expand/index.d.ts +20 -13
- package/generated/react/icons/icon-eye-open/index.d.ts +20 -13
- package/generated/react/icons/icon-eye-slash/index.d.ts +20 -13
- package/generated/react/icons/icon-fashion/index.d.ts +20 -13
- package/generated/react/icons/icon-fast-forward/index.d.ts +20 -13
- package/generated/react/icons/icon-file-bend/index.d.ts +20 -13
- package/generated/react/icons/icon-file-chart/index.d.ts +20 -13
- package/generated/react/icons/icon-file-text/index.d.ts +20 -13
- package/generated/react/icons/icon-files/index.d.ts +20 -13
- package/generated/react/icons/icon-filter/index.d.ts +20 -13
- package/generated/react/icons/icon-flag/index.d.ts +20 -13
- package/generated/react/icons/icon-floppy-disk/index.d.ts +20 -13
- package/generated/react/icons/icon-focus/index.d.ts +20 -13
- package/generated/react/icons/icon-focus-square/index.d.ts +20 -13
- package/generated/react/icons/icon-folder/index.d.ts +20 -13
- package/generated/react/icons/icon-folder-add-right/index.d.ts +20 -13
- package/generated/react/icons/icon-folder-paper/index.d.ts +20 -13
- package/generated/react/icons/icon-folder-upload/index.d.ts +20 -13
- package/generated/react/icons/icon-fullscreen/index.d.ts +20 -13
- package/generated/react/icons/icon-gift/index.d.ts +20 -13
- package/generated/react/icons/icon-globus/index.d.ts +20 -13
- package/generated/react/icons/icon-graduate-cap/index.d.ts +20 -13
- package/generated/react/icons/icon-green-power/index.d.ts +20 -13
- package/generated/react/icons/icon-group/index.d.ts +20 -13
- package/generated/react/icons/icon-growth/index.d.ts +20 -13
- package/generated/react/icons/icon-headphones/index.d.ts +20 -13
- package/generated/react/icons/icon-heart/index.d.ts +20 -13
- package/generated/react/icons/icon-heart-beat/index.d.ts +20 -13
- package/generated/react/icons/icon-history/index.d.ts +20 -13
- package/generated/react/icons/icon-home-energy-one/index.d.ts +20 -13
- package/generated/react/icons/icon-home-energy-two/index.d.ts +20 -13
- package/generated/react/icons/icon-home-open/index.d.ts +20 -13
- package/generated/react/icons/icon-home-roof/index.d.ts +20 -13
- package/generated/react/icons/icon-horizontal-alignment-bottom/index.d.ts +20 -13
- package/generated/react/icons/icon-hourglass/index.d.ts +20 -13
- package/generated/react/icons/icon-images/index.d.ts +20 -13
- package/generated/react/icons/icon-inbox-empty/index.d.ts +20 -13
- package/generated/react/icons/icon-industry/index.d.ts +20 -13
- package/generated/react/icons/icon-invite/index.d.ts +20 -13
- package/generated/react/icons/icon-jpg/index.d.ts +20 -13
- package/generated/react/icons/icon-key/index.d.ts +20 -13
- package/generated/react/icons/icon-knife-spoon/index.d.ts +20 -13
- package/generated/react/icons/icon-lab/index.d.ts +20 -13
- package/generated/react/icons/icon-law/index.d.ts +20 -13
- package/generated/react/icons/icon-leisure/index.d.ts +20 -13
- package/generated/react/icons/icon-light-bulb/index.d.ts +20 -13
- package/generated/react/icons/icon-light-bulb-simple/index.d.ts +20 -13
- package/generated/react/icons/icon-lightning/index.d.ts +20 -13
- package/generated/react/icons/icon-line-chart-four/index.d.ts +20 -13
- package/generated/react/icons/icon-line-chart-one/index.d.ts +20 -13
- package/generated/react/icons/icon-line-chart-three/index.d.ts +20 -13
- package/generated/react/icons/icon-line-chart-two/index.d.ts +20 -13
- package/generated/react/icons/icon-lock/index.d.ts +20 -13
- package/generated/react/icons/icon-macbook-air/index.d.ts +20 -13
- package/generated/react/icons/icon-magnifying-glass/index.d.ts +20 -13
- package/generated/react/icons/icon-maintenance/index.d.ts +20 -13
- package/generated/react/icons/icon-map-pin/index.d.ts +20 -13
- package/generated/react/icons/icon-megaphone/index.d.ts +20 -13
- package/generated/react/icons/icon-menu-sidebar/index.d.ts +20 -13
- package/generated/react/icons/icon-mic-off/index.d.ts +20 -13
- package/generated/react/icons/icon-mic-on/index.d.ts +20 -13
- package/generated/react/icons/icon-minimize/index.d.ts +20 -13
- package/generated/react/icons/icon-minus-large/index.d.ts +20 -13
- package/generated/react/icons/icon-minus-small/index.d.ts +20 -13
- package/generated/react/icons/icon-money-hand/index.d.ts +20 -13
- package/generated/react/icons/icon-moneybag/index.d.ts +20 -13
- package/generated/react/icons/icon-moon/index.d.ts +20 -13
- package/generated/react/icons/icon-mute/index.d.ts +20 -13
- package/generated/react/icons/icon-office/index.d.ts +20 -13
- package/generated/react/icons/icon-other/index.d.ts +20 -13
- package/generated/react/icons/icon-page-add/index.d.ts +20 -13
- package/generated/react/icons/icon-page-text/index.d.ts +20 -13
- package/generated/react/icons/icon-paper-plane-top-right/index.d.ts +20 -13
- package/generated/react/icons/icon-paperclip/index.d.ts +20 -13
- package/generated/react/icons/icon-pause/index.d.ts +20 -13
- package/generated/react/icons/icon-pdf/index.d.ts +20 -13
- package/generated/react/icons/icon-pencel-line/index.d.ts +20 -13
- package/generated/react/icons/icon-pencil-sign/index.d.ts +20 -13
- package/generated/react/icons/icon-pencil-sparkle/index.d.ts +20 -13
- package/generated/react/icons/icon-pencil-wave/index.d.ts +20 -13
- package/generated/react/icons/icon-pension/index.d.ts +20 -13
- package/generated/react/icons/icon-people/index.d.ts +20 -13
- package/generated/react/icons/icon-people-a11y/index.d.ts +20 -13
- package/generated/react/icons/icon-people-add/index.d.ts +20 -13
- package/generated/react/icons/icon-people-added/index.d.ts +20 -13
- package/generated/react/icons/icon-people-circle/index.d.ts +20 -13
- package/generated/react/icons/icon-people-copy/index.d.ts +20 -13
- package/generated/react/icons/icon-people-profile/index.d.ts +20 -13
- package/generated/react/icons/icon-people-remove/index.d.ts +20 -13
- package/generated/react/icons/icon-percent/index.d.ts +20 -13
- package/generated/react/icons/icon-phone/index.d.ts +20 -13
- package/generated/react/icons/icon-phone-dynamic-island/index.d.ts +20 -13
- package/generated/react/icons/icon-pie-chart/index.d.ts +20 -13
- package/generated/react/icons/icon-piggy-bank/index.d.ts +20 -13
- package/generated/react/icons/icon-pin/index.d.ts +20 -13
- package/generated/react/icons/icon-pinch/index.d.ts +20 -13
- package/generated/react/icons/icon-play/index.d.ts +20 -13
- package/generated/react/icons/icon-play-circle/index.d.ts +20 -13
- package/generated/react/icons/icon-plus-large/index.d.ts +20 -13
- package/generated/react/icons/icon-plus-small/index.d.ts +20 -13
- package/generated/react/icons/icon-png/index.d.ts +20 -13
- package/generated/react/icons/icon-poop/index.d.ts +20 -13
- package/generated/react/icons/icon-postcard/index.d.ts +20 -13
- package/generated/react/icons/icon-pound/index.d.ts +20 -13
- package/generated/react/icons/icon-power-plant/index.d.ts +20 -13
- package/generated/react/icons/icon-printer/index.d.ts +20 -13
- package/generated/react/icons/icon-push/index.d.ts +20 -13
- package/generated/react/icons/icon-qr-code/index.d.ts +20 -13
- package/generated/react/icons/icon-rainy/index.d.ts +20 -13
- package/generated/react/icons/icon-raising-hand/index.d.ts +20 -13
- package/generated/react/icons/icon-reading-list/index.d.ts +20 -13
- package/generated/react/icons/icon-receipt-bill/index.d.ts +20 -13
- package/generated/react/icons/icon-receiption-bell/index.d.ts +20 -13
- package/generated/react/icons/icon-record/index.d.ts +20 -13
- package/generated/react/icons/icon-refund/index.d.ts +20 -13
- package/generated/react/icons/icon-robot/index.d.ts +20 -13
- package/generated/react/icons/icon-rocket/index.d.ts +20 -13
- package/generated/react/icons/icon-run-shortcut/index.d.ts +20 -13
- package/generated/react/icons/icon-safari/index.d.ts +20 -13
- package/generated/react/icons/icon-school/index.d.ts +20 -13
- package/generated/react/icons/icon-scissors/index.d.ts +20 -13
- package/generated/react/icons/icon-search-menu/index.d.ts +20 -13
- package/generated/react/icons/icon-seb/index.d.ts +20 -13
- package/generated/react/icons/icon-settings-gear/index.d.ts +20 -13
- package/generated/react/icons/icon-settings-slider-hor/index.d.ts +20 -13
- package/generated/react/icons/icon-settings-slider-three/index.d.ts +20 -13
- package/generated/react/icons/icon-settings-slider-ver/index.d.ts +20 -13
- package/generated/react/icons/icon-shapes/index.d.ts +20 -13
- package/generated/react/icons/icon-share/index.d.ts +20 -13
- package/generated/react/icons/icon-shield/index.d.ts +20 -13
- package/generated/react/icons/icon-shield-checked/index.d.ts +20 -13
- package/generated/react/icons/icon-shield-crossed/index.d.ts +20 -13
- package/generated/react/icons/icon-shopping-bag/index.d.ts +20 -13
- package/generated/react/icons/icon-signature/index.d.ts +20 -13
- package/generated/react/icons/icon-smartwatch/index.d.ts +20 -13
- package/generated/react/icons/icon-solar/index.d.ts +20 -13
- package/generated/react/icons/icon-solar-panel/index.d.ts +20 -13
- package/generated/react/icons/icon-sort/index.d.ts +20 -13
- package/generated/react/icons/icon-sort-ascending/index.d.ts +20 -13
- package/generated/react/icons/icon-sort-descending/index.d.ts +20 -13
- package/generated/react/icons/icon-sort-down/index.d.ts +20 -13
- package/generated/react/icons/icon-sort-up/index.d.ts +20 -13
- package/generated/react/icons/icon-square-arrow-top-right/index.d.ts +20 -13
- package/generated/react/icons/icon-square-behind-square/index.d.ts +20 -13
- package/generated/react/icons/icon-square-check/index.d.ts +20 -13
- package/generated/react/icons/icon-square-grid-circle/index.d.ts +20 -13
- package/generated/react/icons/icon-square-info/index.d.ts +20 -13
- package/generated/react/icons/icon-square-minus/index.d.ts +20 -13
- package/generated/react/icons/icon-square-placeholder/index.d.ts +20 -13
- package/generated/react/icons/icon-square-plus/index.d.ts +20 -13
- package/generated/react/icons/icon-square-x/index.d.ts +20 -13
- package/generated/react/icons/icon-star/index.d.ts +20 -13
- package/generated/react/icons/icon-store/index.d.ts +20 -13
- package/generated/react/icons/icon-suitcase-work/index.d.ts +20 -13
- package/generated/react/icons/icon-sun/index.d.ts +20 -13
- package/generated/react/icons/icon-sunset-arrow-down/index.d.ts +20 -13
- package/generated/react/icons/icon-tag/index.d.ts +20 -13
- package/generated/react/icons/icon-target-arrow/index.d.ts +20 -13
- package/generated/react/icons/icon-television/index.d.ts +20 -13
- package/generated/react/icons/icon-tennis/index.d.ts +20 -13
- package/generated/react/icons/icon-text-edit/index.d.ts +20 -13
- package/generated/react/icons/icon-thermostat/index.d.ts +20 -13
- package/generated/react/icons/icon-thumbs-down/index.d.ts +20 -13
- package/generated/react/icons/icon-thumbs-up/index.d.ts +20 -13
- package/generated/react/icons/icon-ticket/index.d.ts +20 -13
- package/generated/react/icons/icon-todos/index.d.ts +20 -13
- package/generated/react/icons/icon-trading-view-candles/index.d.ts +20 -13
- package/generated/react/icons/icon-trash-can/index.d.ts +20 -13
- package/generated/react/icons/icon-tree/index.d.ts +20 -13
- package/generated/react/icons/icon-trending-four/index.d.ts +20 -13
- package/generated/react/icons/icon-trending-one/index.d.ts +20 -13
- package/generated/react/icons/icon-trending-three/index.d.ts +20 -13
- package/generated/react/icons/icon-trending-two/index.d.ts +20 -13
- package/generated/react/icons/icon-triangle-exclamation/index.d.ts +20 -13
- package/generated/react/icons/icon-truck/index.d.ts +20 -13
- package/generated/react/icons/icon-umbrella-security/index.d.ts +20 -13
- package/generated/react/icons/icon-unlocked/index.d.ts +20 -13
- package/generated/react/icons/icon-vertical-alignment-right/index.d.ts +20 -13
- package/generated/react/icons/icon-volume-full/index.d.ts +20 -13
- package/generated/react/icons/icon-volume-half/index.d.ts +20 -13
- package/generated/react/icons/icon-volume-off/index.d.ts +20 -13
- package/generated/react/icons/icon-wallet/index.d.ts +20 -13
- package/generated/react/icons/icon-warning-sign/index.d.ts +20 -13
- package/generated/react/icons/icon-wifi-full/index.d.ts +20 -13
- package/generated/react/icons/icon-youtube/index.d.ts +20 -13
- package/generated/react/icons/icon-zap/index.d.ts +20 -13
- package/generated/react/icons/icon-zoom-in/index.d.ts +20 -13
- package/generated/react/icons/icon-zoom-out/index.d.ts +20 -13
- package/generated/react/img/index.d.ts +20 -13
- package/generated/react/index.d.ts +7 -5
- package/generated/react/index.js +7 -5
- package/generated/react/input/index.d.ts +41 -34
- package/generated/react/link/index.d.ts +21 -14
- package/generated/react/list-item/index.d.ts +18 -11
- package/generated/react/mask/index.d.ts +21 -14
- package/generated/react/menu-button/index.d.ts +24 -17
- package/generated/react/menu-heading/index.d.ts +18 -11
- package/generated/react/menu-item/index.d.ts +18 -11
- package/generated/react/option/index.d.ts +22 -15
- package/generated/react/pagination/index.d.ts +403 -0
- package/generated/react/pagination/index.js +13 -0
- package/generated/react/popover/index.d.ts +22 -15
- package/generated/react/radio/index.d.ts +24 -17
- package/generated/react/radio-group/index.d.ts +31 -24
- package/generated/react/rich-text/index.d.ts +18 -11
- package/generated/react/segment/index.d.ts +22 -15
- package/generated/react/segmented-control/index.d.ts +20 -13
- package/generated/react/select/index.d.ts +33 -26
- package/generated/react/sensitive-account/index.d.ts +22 -15
- package/generated/react/sensitive-date/index.d.ts +21 -14
- package/generated/react/sensitive-number/index.d.ts +23 -15
- package/generated/react/signal/index.d.ts +18 -11
- package/generated/react/spinner/index.d.ts +21 -14
- package/generated/react/table/index.d.ts +403 -0
- package/generated/react/table/index.js +13 -0
- package/generated/react/text/index.d.ts +19 -12
- package/generated/react/textarea/index.d.ts +38 -31
- package/generated/react/theme/index.d.ts +18 -11
- package/generated/react/video/index.d.ts +18 -11
- package/package.json +9 -1
- package/primitives/field-base/field-base.component.d.ts +1 -0
- package/primitives/field-base/field-base.component.js +8 -0
- package/primitives/field-base/field-base.styles.js +9 -1
- package/primitives/field-base/field-base.trans.styles.scss.js +1 -1
- package/primitives/listbox/listbox.trans.styles.scss.js +1 -1
- package/primitives/listbox/option.trans.styles.scss.js +1 -1
- package/pure.d.ts +2 -0
- package/pure.js +2 -0
- package/shared-styles/rbcb-toggle.style.js +41 -12
- package/utils/helpers/custom-element-scoping.js +1 -1
|
@@ -4,36 +4,13 @@ declare const GdsBadge_base: (new (...args: any[]) => import("../../utils/mixins
|
|
|
4
4
|
* `gds-badge`
|
|
5
5
|
*
|
|
6
6
|
* @element gds-badge
|
|
7
|
-
*
|
|
8
7
|
*/
|
|
9
8
|
export declare class GdsBadge extends GdsBadge_base {
|
|
10
9
|
#private;
|
|
11
10
|
static styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
|
|
12
|
-
/**
|
|
13
|
-
* Controls the variant of the badge.
|
|
14
|
-
* Supports all valid variants like information, notice, positive, warning, negative.
|
|
15
|
-
* @property variant
|
|
16
|
-
*/
|
|
17
11
|
variant: 'information' | 'notice' | 'positive' | 'warning' | 'negative' | 'disabled';
|
|
18
|
-
/**
|
|
19
|
-
* Defines the size of the badge.
|
|
20
|
-
* The default value is `default`.
|
|
21
|
-
*
|
|
22
|
-
* @property {string} size - The size of the badge, which can be either 'default' or 'small'.
|
|
23
|
-
*/
|
|
24
12
|
size: 'default' | 'small';
|
|
25
|
-
/**
|
|
26
|
-
* Indicates whether the badge is in notification mode.
|
|
27
|
-
* When set to `true`, the badge will act as a notification badge with only two variants: `positive` or `negative`.
|
|
28
|
-
*
|
|
29
|
-
* @property {boolean} notification - Controls the notification mode of the badge.
|
|
30
|
-
*/
|
|
31
13
|
notification: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Indicates whether the badge is rounded.
|
|
34
|
-
*
|
|
35
|
-
* @property {boolean} rounded - Controls the border radius of the badge.
|
|
36
|
-
*/
|
|
37
14
|
rounded: boolean;
|
|
38
15
|
mainSlotOccupied: boolean;
|
|
39
16
|
leadSlotOccupied: boolean;
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
} from "../../chunks/chunk.QU3DSPNU.js";
|
|
6
6
|
var _GdsBadge_instances, handleSlotChange_fn, renderLeadSlot_fn, renderMainSlot_fn, renderTrailSlot_fn;
|
|
7
7
|
import { property, state } from "lit/decorators.js";
|
|
8
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
8
9
|
import { GdsElement } from "../../gds-element.js";
|
|
9
10
|
import { html } from "../../scoping.js";
|
|
10
11
|
import { tokens } from "../../tokens.style.js";
|
|
@@ -30,111 +31,23 @@ let GdsBadge = class extends withSizeXProps(
|
|
|
30
31
|
this.leadSlotOccupied = false;
|
|
31
32
|
}
|
|
32
33
|
render() {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
color = "positive-03";
|
|
51
|
-
break;
|
|
52
|
-
case "warning":
|
|
53
|
-
background = "warning-03";
|
|
54
|
-
color = "warning-01";
|
|
55
|
-
break;
|
|
56
|
-
case "negative":
|
|
57
|
-
background = "negative-03";
|
|
58
|
-
color = "negative-01";
|
|
59
|
-
break;
|
|
60
|
-
case "disabled":
|
|
61
|
-
background = "disabled-03";
|
|
62
|
-
color = "disabled-01";
|
|
63
|
-
break;
|
|
64
|
-
default:
|
|
65
|
-
background = "information-03";
|
|
66
|
-
color = "information-01";
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
const padding = (() => {
|
|
71
|
-
const paddings = {
|
|
72
|
-
notification: {
|
|
73
|
-
occupied: "4xs 2xs",
|
|
74
|
-
default: "3xs"
|
|
75
|
-
},
|
|
76
|
-
small: {
|
|
77
|
-
occupied: "4xs 3xs",
|
|
78
|
-
default: "4xs 3xs"
|
|
79
|
-
},
|
|
80
|
-
default: {
|
|
81
|
-
occupied: "3xs xs 3xs 2xs",
|
|
82
|
-
default: "4xs xs"
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
if (this.notification) {
|
|
86
|
-
return paddings.notification[this.mainSlotOccupied ? "occupied" : "default"];
|
|
87
|
-
}
|
|
88
|
-
const isSmall = this.size === "small";
|
|
89
|
-
return paddings[isSmall ? "small" : "default"][this.leadSlotOccupied ? "occupied" : "default"];
|
|
90
|
-
})();
|
|
91
|
-
const blockSize = (() => {
|
|
92
|
-
const sizes = {
|
|
93
|
-
occupied: {
|
|
94
|
-
small: "m",
|
|
95
|
-
default: "l"
|
|
96
|
-
},
|
|
97
|
-
default: "xs"
|
|
98
|
-
};
|
|
99
|
-
return this.mainSlotOccupied ? sizes.occupied[this.size === "small" || this.notification ? "small" : "default"] : sizes.default;
|
|
100
|
-
})();
|
|
101
|
-
const inlineSize = (() => {
|
|
102
|
-
const sizes = {
|
|
103
|
-
notification: {
|
|
104
|
-
occupied: "l",
|
|
105
|
-
default: "0"
|
|
106
|
-
},
|
|
107
|
-
default: "l"
|
|
108
|
-
};
|
|
109
|
-
return this.notification ? sizes.notification[this.mainSlotOccupied ? "occupied" : "default"] : sizes.default;
|
|
110
|
-
})();
|
|
111
|
-
const borderRadius = (() => {
|
|
112
|
-
const radiuses = {
|
|
113
|
-
small: "3xs",
|
|
114
|
-
notification: "max",
|
|
115
|
-
default: "2xs"
|
|
116
|
-
};
|
|
117
|
-
if (this.rounded) return "max";
|
|
118
|
-
if (this.notification) return radiuses.notification;
|
|
119
|
-
return this.size === "small" ? radiuses.small : radiuses.default;
|
|
120
|
-
})();
|
|
121
|
-
return html`<gds-flex
|
|
122
|
-
level="3"
|
|
123
|
-
background=${background}
|
|
124
|
-
color=${color}
|
|
125
|
-
gap="${this.notification ? "" : "3xs"}"
|
|
126
|
-
align-items="center"
|
|
127
|
-
justify-content="${this.notification ? "center" : "flex-start"}"
|
|
128
|
-
padding="${padding}"
|
|
129
|
-
min-height="${blockSize}"
|
|
130
|
-
border-radius="${borderRadius}"
|
|
131
|
-
width="100%"
|
|
132
|
-
min-width="${inlineSize}"
|
|
133
|
-
font="${this.size === "small" || this.notification ? "detail-book-xs" : "detail-book-s"}"
|
|
134
|
-
>
|
|
135
|
-
${__privateMethod(this, _GdsBadge_instances, renderLeadSlot_fn).call(this)} ${__privateMethod(this, _GdsBadge_instances, renderMainSlot_fn).call(this)}
|
|
136
|
-
${__privateMethod(this, _GdsBadge_instances, renderTrailSlot_fn).call(this)}
|
|
137
|
-
</gds-flex>`;
|
|
34
|
+
const classes = classMap({
|
|
35
|
+
badge: true,
|
|
36
|
+
[this.variant]: true,
|
|
37
|
+
[this.size]: this.size === "small",
|
|
38
|
+
notification: this.notification,
|
|
39
|
+
"with-content": this.notification && this.mainSlotOccupied,
|
|
40
|
+
rounded: this.rounded
|
|
41
|
+
});
|
|
42
|
+
return html`
|
|
43
|
+
<div class="${classes}">
|
|
44
|
+
${[
|
|
45
|
+
__privateMethod(this, _GdsBadge_instances, renderLeadSlot_fn).call(this),
|
|
46
|
+
__privateMethod(this, _GdsBadge_instances, renderMainSlot_fn).call(this),
|
|
47
|
+
__privateMethod(this, _GdsBadge_instances, renderTrailSlot_fn).call(this)
|
|
48
|
+
]}
|
|
49
|
+
</div>
|
|
50
|
+
`;
|
|
138
51
|
}
|
|
139
52
|
};
|
|
140
53
|
_GdsBadge_instances = new WeakSet();
|
|
@@ -1,8 +1,102 @@
|
|
|
1
1
|
import "../../chunks/chunk.QU3DSPNU.js";
|
|
2
2
|
import { css } from "lit";
|
|
3
3
|
const style = css`
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
@layer tokens, core, variants, sizes, states, notification;
|
|
5
|
+
|
|
6
|
+
@layer core {
|
|
7
|
+
:host {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.badge {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: flex-start;
|
|
15
|
+
gap: var(--gds-sys-space-3xs);
|
|
16
|
+
padding: var(--_padding);
|
|
17
|
+
min-height: var(--_block-size);
|
|
18
|
+
border-radius: var(--_border-radius);
|
|
19
|
+
width: 100%;
|
|
20
|
+
min-width: var(--_inline-size);
|
|
21
|
+
font: var(--_font);
|
|
22
|
+
background-color: var(--_bg);
|
|
23
|
+
color: var(--_color);
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
|
|
26
|
+
--_padding: var(--gds-sys-space-4xs) var(--gds-sys-space-xs);
|
|
27
|
+
--_block-size: var(--gds-sys-space-xs);
|
|
28
|
+
--_border-radius: var(--gds-sys-space-2xs);
|
|
29
|
+
--_inline-size: var(--gds-sys-space-l);
|
|
30
|
+
--_font: var(--gds-sys-text-detail-book-s);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@layer variants {
|
|
35
|
+
.badge.information {
|
|
36
|
+
--_bg: var(--gds-sys-color-l3-information-03);
|
|
37
|
+
--_color: var(--gds-sys-color-content-information-01);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.badge.notice {
|
|
41
|
+
--_bg: var(--gds-sys-color-l3-notice-03);
|
|
42
|
+
--_color: var(--gds-sys-color-content-notice-01);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.badge.positive {
|
|
46
|
+
--_bg: var(--gds-sys-color-l3-positive-03);
|
|
47
|
+
--_color: var(--gds-sys-color-content-positive-03);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.badge.warning {
|
|
51
|
+
--_bg: var(--gds-sys-color-l3-warning-03);
|
|
52
|
+
--_color: var(--gds-sys-color-content-warning-01);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.badge.negative {
|
|
56
|
+
--_bg: var(--gds-sys-color-l3-negative-03);
|
|
57
|
+
--_color: var(--gds-sys-color-content-negative-01);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.badge.disabled {
|
|
61
|
+
--_bg: var(--gds-sys-color-l3-disabled-03);
|
|
62
|
+
--_color: var(--gds-sys-color-content-disabled-01);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@layer sizes {
|
|
67
|
+
.badge.small {
|
|
68
|
+
--_padding: var(--gds-sys-space-4xs) var(--gds-sys-space-2xs);
|
|
69
|
+
--_block-size: var(--gds-sys-space-m);
|
|
70
|
+
--_border-radius: var(--gds-sys-space-3xs);
|
|
71
|
+
--_font: var(--gds-sys-text-detail-book-xs);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@layer notification {
|
|
76
|
+
.badge.notification {
|
|
77
|
+
--_padding: var(--gds-sys-space-3xs);
|
|
78
|
+
--_block-size: var(--gds-sys-space-xs);
|
|
79
|
+
--_border-radius: var(--gds-sys-space-max);
|
|
80
|
+
--_inline-size: 0;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
gap: 0;
|
|
83
|
+
--_bg: var(--gds-sys-color-l3-negative-01);
|
|
84
|
+
--_color: var(--gds-sys-color-content-inversed);
|
|
85
|
+
--_font: var(--gds-sys-text-detail-book-xs);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.badge.notification.with-content {
|
|
89
|
+
--_padding: var(--gds-sys-space-4xs) var(--gds-sys-space-2xs);
|
|
90
|
+
--_block-size: var(--gds-sys-space-m);
|
|
91
|
+
--_inline-size: var(--gds-sys-space-l);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@layer states {
|
|
96
|
+
.badge.rounded {
|
|
97
|
+
--_border-radius: var(--gds-sys-space-max);
|
|
98
|
+
justify-content: center;
|
|
99
|
+
}
|
|
6
100
|
}
|
|
7
101
|
|
|
8
102
|
slot[name='lead']::slotted(*) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const styles = "/* stylelint-disable max-nesting-depth */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/**\n * Calculate the contrast ratio between two colors.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/* stylelint-disable */\n/* stylelint-enable */\n/* stylelint-disable */\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 */\ni.sg-icon {\n font-size: 0;\n width: 1rem;\n height: 1rem;\n display: inline-block;\n}\ni.sg-icon::before {\n content: \"\";\n display: inline-block;\n background: var(--color);\n width: 100%;\n height: 100%;\n -webkit-mask-repeat: no-repeat;\n mask-repeat: no-repeat;\n}\ni.sg-icon.sg-icon-calendar::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 248h80v-56H48v56zm0 48v64h80v-64H48zm128 0v64h96v-64h-96zm144 0v64h80v-64h-80zm80-104h-80v56h80v-56zm0 216h-80v56h64c8.8 0 16-7.2 16-16v-40zm-128 0h-96v56h96v-56zm-144 0H48v40c0 8.8 7.16 16 16 16h64v-56zm144-216h-96v56h96v-56z '/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 248h80v-56H48v56zm0 48v64h80v-64H48zm128 0v64h96v-64h-96zm144 0v64h80v-64h-80zm80-104h-80v56h80v-56zm0 216h-80v56h64c8.8 0 16-7.2 16-16v-40zm-128 0h-96v56h96v-56zm-144 0H48v40c0 8.8 7.16 16 16 16h64v-56zm144-216h-96v56h96v-56z '/%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-calendar-range::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M96 288c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm224 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-128-64c0-13.3 10.7-24 24-24h112c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24zm40 72c13.3 0 24 10.7 24 24s-10.7 24-24 24H120c-13.3 0-24-10.7-24-24s10.7-24 24-24h112zM152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 448c0 8.8 7.16 16 16 16h320c8.8 0 16-7.2 16-16V192H48v256z'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M96 288c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm224 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-128-64c0-13.3 10.7-24 24-24h112c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24zm40 72c13.3 0 24 10.7 24 24s-10.7 24-24 24H120c-13.3 0-24-10.7-24-24s10.7-24 24-24h112zM152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 448c0 8.8 7.16 16 16 16h320c8.8 0 16-7.2 16-16V192H48v256z'/%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-ellipsis::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z'/%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-grip-vertical::before {\n -webkit-mask-image: url(\"data:image/svg+xml, %3Csvg height='1em' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z' /%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml, %3Csvg height='1em' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z' /%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-next::before {\n background: none;\n border-bottom: 2px solid;\n border-left: 2px solid;\n content: \"\";\n display: block;\n height: 12px;\n margin-left: -10px;\n margin-top: 2px;\n transform: translate(75%) rotate(-135deg) scaleZ(-1);\n transition: transform 0.3s ease-in;\n width: 12px;\n}\ni.sg-icon.sg-icon-previous::before {\n background: none;\n border-bottom: 2px solid;\n border-left: 2px solid;\n content: \"\";\n display: block;\n height: 12px;\n margin-left: -4px;\n margin-top: 2px;\n transform: translate(75%) rotate(45deg) scaleZ(-1);\n transition: transform 0.3s ease-in;\n width: 12px;\n}\ni.sg-icon.sg-icon-ellipsis::before {\n margin-right: -2px;\n}\n\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n @layer _base, _ranks, _overrides;\n :host {\n display: inline-block;\n }\n @layer _base {\n .button {\n background-color: transparent;\n border: 0;\n cursor: pointer;\n font-family: inherit;\n padding: 0;\n padding-left: 1rem;\n padding-right: 1rem;\n padding-bottom: 0.75rem;\n padding-top: 0.75rem;\n border-radius: var(--sg-border-radius);\n border: solid var(--sg-border-width) var(--sg-border-color);\n font-weight: 500;\n min-height: 2.75rem;\n align-items: center;\n display: inline-flex;\n justify-content: center;\n box-sizing: border-box;\n font-size: inherit;\n overflow: hidden;\n display: flex;\n gap: 0.5rem;\n text-decoration: none;\n width: 100%;\n }\n .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n .button:focus, .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n @media (max-width: 35.98em) {\n .button {\n min-width: 100%;\n }\n }\n @media screen and (-ms-high-contrast: active) {\n .button {\n border: 2px solid currentcolor;\n }\n }\n .button.small {\n min-height: 2rem;\n padding: 0.4375rem 0.75rem;\n font-size: 0.875rem;\n line-height: 1rem;\n }\n .button.large {\n min-height: 4rem;\n padding: 1rem 1.5rem;\n font-size: 1.5rem;\n line-height: 2rem;\n }\n .button slot:not([name]) {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n :host(:not([variant=ghost])) .button {\n transition: border 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;\n background: rgb(0, 122, 199);\n border-color: rgb(0, 122, 199);\n color: #fff;\n --color: #fff;\n }\n :host(:not([variant=ghost])) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background-color: rgb(25.4035777564, 154.8940067842, 227.221994169);\n color: rgb(255, 255, 255);\n --background: rgb(25.4035777564, 154.8940067842, 227.221994169);\n --color: rgb(255, 255, 255);\n border-color: rgb(25.4035777564, 154.8940067842, 227.221994169);\n }\n :host(:not([variant=ghost])) .button[aria-selected=true], :host(:not([variant=ghost])) .button:active, :host(:not([variant=ghost])) .button.active, :host(:not([variant=ghost])) .button.active:hover, :host(:not([variant=ghost])) .button:active:hover {\n background-color: rgb(0, 122, 199);\n color: rgb(255, 255, 255);\n --background: rgb(0, 122, 199);\n --color: rgb(255, 255, 255);\n border-color: rgb(0, 122, 199);\n }\n :host(:not([variant=ghost])) .button:focus-visible {\n background-color: rgb(25.4035777564, 154.8940067842, 227.221994169);\n color: rgb(255, 255, 255);\n --background: rgb(25.4035777564, 154.8940067842, 227.221994169);\n --color: rgb(255, 255, 255);\n border-color: rgb(25.4035777564, 154.8940067842, 227.221994169) !important;\n }\n :host(:not([variant=ghost])) .button:disabled, :host(:not([variant=ghost])) .button.disabled, :host(:not([variant=ghost])) .button[aria-disabled=true] {\n background: var(--form-control-primary-bg-disabled) !important;\n color: var(--text-primary-disabled-color) !important;\n border-color: var(--border-primary-disabled-color) !important;\n cursor: not-allowed;\n }\n :host(:not([variant=ghost])) .button:disabled::-moz-placeholder, :host(:not([variant=ghost])) .button.disabled::-moz-placeholder, :host(:not([variant=ghost])) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--text-disabled-color);\n }\n :host(:not([variant=ghost])) .button:disabled::placeholder, :host(:not([variant=ghost])) .button.disabled::placeholder, :host(:not([variant=ghost])) .button[aria-disabled=true]::placeholder {\n color: var(--text-disabled-color);\n }\n :host([rank*=secondary]) .button {\n transition: border 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;\n background: transparent;\n border-color: rgb(0, 122, 199);\n color: rgb(0, 122, 199);\n --color: rgb(0, 122, 199);\n }\n :host([rank*=secondary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([rank*=secondary]) .button:focus, :host([rank*=secondary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([rank*=secondary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background-color: rgb(25.4035777564, 154.8940067842, 227.221994169);\n color: rgb(255, 255, 255);\n --background: rgb(25.4035777564, 154.8940067842, 227.221994169);\n --color: rgb(255, 255, 255);\n border-color: rgb(25.4035777564, 154.8940067842, 227.221994169);\n }\n :host([rank*=secondary]) .button[aria-selected=true], :host([rank*=secondary]) .button:active, :host([rank*=secondary]) .button.active, :host([rank*=secondary]) .button.active:hover, :host([rank*=secondary]) .button:active:hover {\n background-color: rgb(0, 122, 199);\n color: rgb(255, 255, 255);\n --background: rgb(0, 122, 199);\n --color: rgb(255, 255, 255);\n border-color: rgb(0, 122, 199);\n }\n :host([rank*=secondary]) .button:disabled, :host([rank*=secondary]) .button.disabled, :host([rank*=secondary]) .button[aria-disabled=true] {\n background: var(--sg-form-control-bg-disabled) !important;\n color: var(--text-disabled-color) !important;\n border-color: var(--border-disabled-color) !important;\n cursor: not-allowed;\n }\n :host([rank*=secondary]) .button:disabled::-moz-placeholder, :host([rank*=secondary]) .button.disabled::-moz-placeholder, :host([rank*=secondary]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--text-disabled-color);\n }\n :host([rank*=secondary]) .button:disabled::placeholder, :host([rank*=secondary]) .button.disabled::placeholder, :host([rank*=secondary]) .button[aria-disabled=true]::placeholder {\n color: var(--text-disabled-color);\n }\n :host([rank*=tertiary]) .button {\n transition: border 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;\n background: transparent;\n border-color: transparent;\n color: rgb(0, 122, 199);\n --color: rgb(0, 122, 199);\n }\n :host([rank*=tertiary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([rank*=tertiary]) .button:focus, :host([rank*=tertiary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([rank*=tertiary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background-color: rgb(25.4035777564, 154.8940067842, 227.221994169);\n color: rgb(255, 255, 255);\n --background: rgb(25.4035777564, 154.8940067842, 227.221994169);\n --color: rgb(255, 255, 255);\n border-color: rgb(25.4035777564, 154.8940067842, 227.221994169);\n }\n :host([rank*=tertiary]) .button[aria-selected=true], :host([rank*=tertiary]) .button:active, :host([rank*=tertiary]) .button.active, :host([rank*=tertiary]) .button.active:hover, :host([rank*=tertiary]) .button:active:hover {\n background-color: rgb(0, 122, 199);\n color: rgb(255, 255, 255);\n --background: rgb(0, 122, 199);\n --color: rgb(255, 255, 255);\n border-color: rgb(0, 122, 199);\n }\n :host([rank*=tertiary]) .button:disabled, :host([rank*=tertiary]) .button.disabled, :host([rank*=tertiary]) .button[aria-disabled=true] {\n background: var(--sg-form-control-bg-disabled) !important;\n color: var(--text-disabled-color) !important;\n border-color: var(--border-disabled-color) !important;\n cursor: not-allowed;\n }\n :host([rank*=tertiary]) .button:disabled::-moz-placeholder, :host([rank*=tertiary]) .button.disabled::-moz-placeholder, :host([rank*=tertiary]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--text-disabled-color);\n }\n :host([rank*=tertiary]) .button:disabled::placeholder, :host([rank*=tertiary]) .button.disabled::placeholder, :host([rank*=tertiary]) .button[aria-disabled=true]::placeholder {\n color: var(--text-disabled-color);\n }\n /* stylelint-disable */\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button,\n :host([variant=negative][rank=primary]) .button {\n background: rgb(187, 0, 12);\n border-color: rgb(187, 0, 12);\n color: #fff;\n --color: #fff;\n transition: border 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:not(:disabled, .disabled, [aria-disabled]):hover,\n :host([variant=negative][rank=primary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background-color: rgb(216, 26, 26);\n color: rgb(255, 255, 255);\n --background: rgb(216, 26, 26);\n --color: rgb(255, 255, 255);\n border-color: rgb(216, 26, 26);\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-selected=true], :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:active, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.active, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.active:hover, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:active:hover,\n :host([variant=negative][rank=primary]) .button[aria-selected=true],\n :host([variant=negative][rank=primary]) .button:active,\n :host([variant=negative][rank=primary]) .button.active,\n :host([variant=negative][rank=primary]) .button.active:hover,\n :host([variant=negative][rank=primary]) .button:active:hover {\n background-color: rgb(187, 0, 12);\n color: rgb(255, 255, 255);\n --background: rgb(187, 0, 12);\n --color: rgb(255, 255, 255);\n border-color: rgb(187, 0, 12);\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-selected]:hover, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.active:hover, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:active:hover,\n :host([variant=negative][rank=primary]) .button[aria-selected]:hover,\n :host([variant=negative][rank=primary]) .button.active:hover,\n :host([variant=negative][rank=primary]) .button:active:hover {\n opacity: 0.9;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:focus:not(:focus-visible),\n :host([variant=negative][rank=primary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:focus, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:focus-visible,\n :host([variant=negative][rank=primary]) .button:focus,\n :host([variant=negative][rank=primary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:disabled, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.disabled, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-disabled=true],\n :host([variant=negative][rank=primary]) .button:disabled,\n :host([variant=negative][rank=primary]) .button.disabled,\n :host([variant=negative][rank=primary]) .button[aria-disabled=true] {\n background: var(--form-control-primary-bg-disabled) !important;\n color: var(--text-primary-disabled-color) !important;\n border-color: var(--border-primary-disabled-color) !important;\n cursor: not-allowed;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:disabled::-moz-placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.disabled::-moz-placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-disabled=true]::-moz-placeholder, :host([variant=negative][rank=primary]) .button:disabled::-moz-placeholder, :host([variant=negative][rank=primary]) .button.disabled::-moz-placeholder, :host([variant=negative][rank=primary]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--text-disabled-color);\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:disabled::placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.disabled::placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-disabled=true]::placeholder,\n :host([variant=negative][rank=primary]) .button:disabled::placeholder,\n :host([variant=negative][rank=primary]) .button.disabled::placeholder,\n :host([variant=negative][rank=primary]) .button[aria-disabled=true]::placeholder {\n color: var(--text-disabled-color);\n }\n /* stylelint-enable */\n :host([variant=negative][rank=secondary]) .button,\n :host([variant=negative][rank=tertiary]) .button {\n color: rgb(187, 0, 12);\n --color: rgb(187, 0, 12);\n border-color: transparent;\n transition: border 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;\n }\n :host([variant=negative][rank=secondary]) .button:not(:disabled, .disabled, [aria-disabled]):hover,\n :host([variant=negative][rank=tertiary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background-color: rgb(216, 26, 26);\n color: rgb(255, 255, 255);\n --background: rgb(216, 26, 26);\n --color: rgb(255, 255, 255);\n border-color: rgb(216, 26, 26);\n }\n :host([variant=negative][rank=secondary]) .button[aria-selected=true], :host([variant=negative][rank=secondary]) .button:active, :host([variant=negative][rank=secondary]) .button.active, :host([variant=negative][rank=secondary]) .button.active:hover, :host([variant=negative][rank=secondary]) .button:active:hover,\n :host([variant=negative][rank=tertiary]) .button[aria-selected=true],\n :host([variant=negative][rank=tertiary]) .button:active,\n :host([variant=negative][rank=tertiary]) .button.active,\n :host([variant=negative][rank=tertiary]) .button.active:hover,\n :host([variant=negative][rank=tertiary]) .button:active:hover {\n background-color: rgb(187, 0, 12);\n color: rgb(255, 255, 255);\n --background: rgb(187, 0, 12);\n --color: rgb(255, 255, 255);\n border-color: rgb(187, 0, 12);\n }\n :host([variant=negative][rank=secondary]) .button[aria-selected]:hover, :host([variant=negative][rank=secondary]) .button.active:hover, :host([variant=negative][rank=secondary]) .button:active:hover,\n :host([variant=negative][rank=tertiary]) .button[aria-selected]:hover,\n :host([variant=negative][rank=tertiary]) .button.active:hover,\n :host([variant=negative][rank=tertiary]) .button:active:hover {\n opacity: 0.9;\n }\n :host([variant=negative][rank=secondary]) .button:focus:not(:focus-visible),\n :host([variant=negative][rank=tertiary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([variant=negative][rank=secondary]) .button:focus, :host([variant=negative][rank=secondary]) .button:focus-visible,\n :host([variant=negative][rank=tertiary]) .button:focus,\n :host([variant=negative][rank=tertiary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([variant=negative][rank=secondary]) .button {\n border-color: rgb(187, 0, 12);\n }\n :host([variant=ghost]) .button {\n transition: border 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;\n border-color: rgb(51, 51, 51);\n color: rgb(51, 51, 51);\n --color: rgb(51, 51, 51);\n }\n :host([variant=ghost]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background-color: rgb(51, 51, 51);\n color: rgb(255, 255, 255);\n --background: rgb(51, 51, 51);\n --color: rgb(255, 255, 255);\n border-color: rgb(51, 51, 51);\n }\n :host([variant=ghost]) .button[aria-selected=true], :host([variant=ghost]) .button:active, :host([variant=ghost]) .button.active, :host([variant=ghost]) .button.active:hover, :host([variant=ghost]) .button:active:hover {\n background-color: rgb(51, 51, 51);\n color: rgb(255, 255, 255);\n --background: rgb(51, 51, 51);\n --color: rgb(255, 255, 255);\n border-color: rgb(51, 51, 51);\n }\n :host([variant=ghost]) .button[aria-selected]:hover, :host([variant=ghost]) .button.active:hover, :host([variant=ghost]) .button:active:hover {\n opacity: 0.9;\n }\n :host([variant=ghost]) .button:focus-visible {\n background-color: rgb(51, 51, 51);\n color: rgb(255, 255, 255);\n --background: rgb(51, 51, 51);\n --color: rgb(255, 255, 255);\n border-color: rgb(51, 51, 51) !important;\n }\n :host([variant=ghost]) .button:disabled, :host([variant=ghost]) .button.disabled, :host([variant=ghost]) .button[aria-disabled=true] {\n color: var(--text-disabled-color) !important;\n border-color: var(--border-disabled-color) !important;\n cursor: not-allowed;\n }\n :host([variant=ghost]) .button:disabled::-moz-placeholder, :host([variant=ghost]) .button.disabled::-moz-placeholder, :host([variant=ghost]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--text-disabled-color);\n }\n :host([variant=ghost]) .button:disabled::placeholder, :host([variant=ghost]) .button.disabled::placeholder, :host([variant=ghost]) .button[aria-disabled=true]::placeholder {\n color: var(--text-disabled-color);\n }\n }\n @layer _overrides {\n :host .button.icon {\n padding: 0.75rem;\n background: transparent;\n border-width: 0px;\n color: currentColor;\n }\n :host .button.icon:hover {\n color: currentColor;\n background: var(--grey-500);\n }\n :host .button.icon slot {\n display: contents;\n }\n .button.icon.xs {\n min-height: 1.5rem;\n line-height: 0.75rem;\n padding: 0.25rem;\n }\n .button.icon.small {\n padding: 0.5rem;\n }\n .button.icon.large {\n padding: 1rem;\n }\n }\n}";
|
|
1
|
+
const styles = "/* stylelint-disable max-nesting-depth */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/**\n * Calculate the contrast ratio between two colors.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/* stylelint-disable */\n/* stylelint-enable */\n/* stylelint-disable */\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 */\ni.sg-icon {\n font-size: 0;\n width: 1rem;\n height: 1rem;\n display: inline-block;\n}\ni.sg-icon::before {\n content: \"\";\n display: inline-block;\n background: var(--color);\n width: 100%;\n height: 100%;\n -webkit-mask-repeat: no-repeat;\n mask-repeat: no-repeat;\n}\ni.sg-icon.sg-icon-calendar::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 248h80v-56H48v56zm0 48v64h80v-64H48zm128 0v64h96v-64h-96zm144 0v64h80v-64h-80zm80-104h-80v56h80v-56zm0 216h-80v56h64c8.8 0 16-7.2 16-16v-40zm-128 0h-96v56h96v-56zm-144 0H48v40c0 8.8 7.16 16 16 16h64v-56zm144-216h-96v56h96v-56z '/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 248h80v-56H48v56zm0 48v64h80v-64H48zm128 0v64h96v-64h-96zm144 0v64h80v-64h-80zm80-104h-80v56h80v-56zm0 216h-80v56h64c8.8 0 16-7.2 16-16v-40zm-128 0h-96v56h96v-56zm-144 0H48v40c0 8.8 7.16 16 16 16h64v-56zm144-216h-96v56h96v-56z '/%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-calendar-range::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M96 288c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm224 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-128-64c0-13.3 10.7-24 24-24h112c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24zm40 72c13.3 0 24 10.7 24 24s-10.7 24-24 24H120c-13.3 0-24-10.7-24-24s10.7-24 24-24h112zM152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 448c0 8.8 7.16 16 16 16h320c8.8 0 16-7.2 16-16V192H48v256z'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M96 288c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm224 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-128-64c0-13.3 10.7-24 24-24h112c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24zm40 72c13.3 0 24 10.7 24 24s-10.7 24-24 24H120c-13.3 0-24-10.7-24-24s10.7-24 24-24h112zM152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 448c0 8.8 7.16 16 16 16h320c8.8 0 16-7.2 16-16V192H48v256z'/%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-ellipsis::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z'/%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-grip-vertical::before {\n -webkit-mask-image: url(\"data:image/svg+xml, %3Csvg height='1em' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z' /%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml, %3Csvg height='1em' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z' /%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-next::before {\n background: none;\n border-bottom: 2px solid;\n border-left: 2px solid;\n content: \"\";\n display: block;\n height: 12px;\n margin-left: -10px;\n margin-top: 2px;\n transform: translate(75%) rotate(-135deg) scaleZ(-1);\n transition: transform 0.3s ease-in;\n width: 12px;\n}\ni.sg-icon.sg-icon-previous::before {\n background: none;\n border-bottom: 2px solid;\n border-left: 2px solid;\n content: \"\";\n display: block;\n height: 12px;\n margin-left: -4px;\n margin-top: 2px;\n transform: translate(75%) rotate(45deg) scaleZ(-1);\n transition: transform 0.3s ease-in;\n width: 12px;\n}\ni.sg-icon.sg-icon-ellipsis::before {\n margin-right: -2px;\n}\n\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n @layer _base, _ranks, _overrides;\n :host {\n display: inline-block;\n }\n @layer _base {\n .button {\n background-color: transparent;\n border: 0;\n cursor: pointer;\n font-family: inherit;\n padding: 0;\n padding-left: 1rem;\n padding-right: 1rem;\n padding-bottom: 0.75rem;\n padding-top: 0.75rem;\n border-radius: var(--sg-border-radius);\n border: solid var(--sg-border-width) var(--sg-border-color);\n font-weight: 500;\n }\n .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n .button:focus, .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n .button {\n min-height: 2.75rem;\n align-items: center;\n display: inline-flex;\n justify-content: center;\n }\n @media (max-width: 35.98em) {\n .button {\n min-width: 100%;\n }\n }\n @media screen and (-ms-high-contrast: active) {\n .button {\n border: 2px solid currentcolor;\n }\n }\n .button.small {\n min-height: 2rem;\n padding: 0.4375rem 0.75rem;\n font-size: 0.875rem;\n line-height: 1rem;\n }\n .button.large {\n min-height: 4rem;\n padding: 1rem 1.5rem;\n font-size: 1.5rem;\n line-height: 2rem;\n }\n .button {\n box-sizing: border-box;\n font-size: inherit;\n overflow: hidden;\n display: flex;\n gap: 0.5rem;\n text-decoration: none;\n width: 100%;\n }\n .button slot:not([name]) {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n :host(:not([variant=ghost])) .button {\n transition: border 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;\n }\n :host(:not([variant=ghost])) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background-color: rgb(25.4035777564, 154.8940067842, 227.221994169);\n color: rgb(255, 255, 255);\n --background: rgb(25.4035777564, 154.8940067842, 227.221994169);\n --color: rgb(255, 255, 255);\n border-color: rgb(25.4035777564, 154.8940067842, 227.221994169);\n }\n :host(:not([variant=ghost])) .button[aria-selected=true], :host(:not([variant=ghost])) .button:active, :host(:not([variant=ghost])) .button.active, :host(:not([variant=ghost])) .button.active:hover, :host(:not([variant=ghost])) .button:active:hover {\n background-color: rgb(0, 122, 199);\n color: rgb(255, 255, 255);\n --background: rgb(0, 122, 199);\n --color: rgb(255, 255, 255);\n border-color: rgb(0, 122, 199);\n }\n :host(:not([variant=ghost])) .button:focus-visible {\n background-color: rgb(25.4035777564, 154.8940067842, 227.221994169);\n color: rgb(255, 255, 255);\n --background: rgb(25.4035777564, 154.8940067842, 227.221994169);\n --color: rgb(255, 255, 255);\n border-color: rgb(25.4035777564, 154.8940067842, 227.221994169) !important;\n }\n :host(:not([variant=ghost])) .button {\n background: rgb(0, 122, 199);\n border-color: rgb(0, 122, 199);\n color: #fff;\n --color: #fff;\n }\n :host(:not([variant=ghost])) .button:disabled, :host(:not([variant=ghost])) .button.disabled, :host(:not([variant=ghost])) .button[aria-disabled=true] {\n background: var(--form-control-primary-bg-disabled) !important;\n color: var(--text-primary-disabled-color) !important;\n border-color: var(--border-primary-disabled-color) !important;\n cursor: not-allowed;\n }\n :host(:not([variant=ghost])) .button:disabled::-moz-placeholder, :host(:not([variant=ghost])) .button.disabled::-moz-placeholder, :host(:not([variant=ghost])) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--text-disabled-color);\n }\n :host(:not([variant=ghost])) .button:disabled::placeholder, :host(:not([variant=ghost])) .button.disabled::placeholder, :host(:not([variant=ghost])) .button[aria-disabled=true]::placeholder {\n color: var(--text-disabled-color);\n }\n :host([rank*=secondary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([rank*=secondary]) .button:focus, :host([rank*=secondary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([rank*=secondary]) .button {\n transition: border 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;\n }\n :host([rank*=secondary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background-color: rgb(25.4035777564, 154.8940067842, 227.221994169);\n color: rgb(255, 255, 255);\n --background: rgb(25.4035777564, 154.8940067842, 227.221994169);\n --color: rgb(255, 255, 255);\n border-color: rgb(25.4035777564, 154.8940067842, 227.221994169);\n }\n :host([rank*=secondary]) .button[aria-selected=true], :host([rank*=secondary]) .button:active, :host([rank*=secondary]) .button.active, :host([rank*=secondary]) .button.active:hover, :host([rank*=secondary]) .button:active:hover {\n background-color: rgb(0, 122, 199);\n color: rgb(255, 255, 255);\n --background: rgb(0, 122, 199);\n --color: rgb(255, 255, 255);\n border-color: rgb(0, 122, 199);\n }\n :host([rank*=secondary]) .button {\n background: transparent;\n border-color: rgb(0, 122, 199);\n color: rgb(0, 122, 199);\n --color: rgb(0, 122, 199);\n }\n :host([rank*=secondary]) .button:disabled, :host([rank*=secondary]) .button.disabled, :host([rank*=secondary]) .button[aria-disabled=true] {\n background: var(--sg-form-control-bg-disabled) !important;\n color: var(--text-disabled-color) !important;\n border-color: var(--border-disabled-color) !important;\n cursor: not-allowed;\n }\n :host([rank*=secondary]) .button:disabled::-moz-placeholder, :host([rank*=secondary]) .button.disabled::-moz-placeholder, :host([rank*=secondary]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--text-disabled-color);\n }\n :host([rank*=secondary]) .button:disabled::placeholder, :host([rank*=secondary]) .button.disabled::placeholder, :host([rank*=secondary]) .button[aria-disabled=true]::placeholder {\n color: var(--text-disabled-color);\n }\n :host([rank*=tertiary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([rank*=tertiary]) .button:focus, :host([rank*=tertiary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([rank*=tertiary]) .button {\n transition: border 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;\n }\n :host([rank*=tertiary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background-color: rgb(25.4035777564, 154.8940067842, 227.221994169);\n color: rgb(255, 255, 255);\n --background: rgb(25.4035777564, 154.8940067842, 227.221994169);\n --color: rgb(255, 255, 255);\n border-color: rgb(25.4035777564, 154.8940067842, 227.221994169);\n }\n :host([rank*=tertiary]) .button[aria-selected=true], :host([rank*=tertiary]) .button:active, :host([rank*=tertiary]) .button.active, :host([rank*=tertiary]) .button.active:hover, :host([rank*=tertiary]) .button:active:hover {\n background-color: rgb(0, 122, 199);\n color: rgb(255, 255, 255);\n --background: rgb(0, 122, 199);\n --color: rgb(255, 255, 255);\n border-color: rgb(0, 122, 199);\n }\n :host([rank*=tertiary]) .button {\n background: transparent;\n border-color: transparent;\n color: rgb(0, 122, 199);\n --color: rgb(0, 122, 199);\n }\n :host([rank*=tertiary]) .button:disabled, :host([rank*=tertiary]) .button.disabled, :host([rank*=tertiary]) .button[aria-disabled=true] {\n background: var(--sg-form-control-bg-disabled) !important;\n color: var(--text-disabled-color) !important;\n border-color: var(--border-disabled-color) !important;\n cursor: not-allowed;\n }\n :host([rank*=tertiary]) .button:disabled::-moz-placeholder, :host([rank*=tertiary]) .button.disabled::-moz-placeholder, :host([rank*=tertiary]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--text-disabled-color);\n }\n :host([rank*=tertiary]) .button:disabled::placeholder, :host([rank*=tertiary]) .button.disabled::placeholder, :host([rank*=tertiary]) .button[aria-disabled=true]::placeholder {\n color: var(--text-disabled-color);\n }\n /* stylelint-disable */\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button,\n :host([variant=negative][rank=primary]) .button {\n background: rgb(187, 0, 12);\n border-color: rgb(187, 0, 12);\n color: #fff;\n --color: #fff;\n transition: border 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:not(:disabled, .disabled, [aria-disabled]):hover,\n :host([variant=negative][rank=primary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background-color: rgb(216, 26, 26);\n color: rgb(255, 255, 255);\n --background: rgb(216, 26, 26);\n --color: rgb(255, 255, 255);\n border-color: rgb(216, 26, 26);\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-selected=true], :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:active, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.active, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.active:hover, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:active:hover,\n :host([variant=negative][rank=primary]) .button[aria-selected=true],\n :host([variant=negative][rank=primary]) .button:active,\n :host([variant=negative][rank=primary]) .button.active,\n :host([variant=negative][rank=primary]) .button.active:hover,\n :host([variant=negative][rank=primary]) .button:active:hover {\n background-color: rgb(187, 0, 12);\n color: rgb(255, 255, 255);\n --background: rgb(187, 0, 12);\n --color: rgb(255, 255, 255);\n border-color: rgb(187, 0, 12);\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-selected]:hover, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.active:hover, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:active:hover,\n :host([variant=negative][rank=primary]) .button[aria-selected]:hover,\n :host([variant=negative][rank=primary]) .button.active:hover,\n :host([variant=negative][rank=primary]) .button:active:hover {\n opacity: 0.9;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:focus:not(:focus-visible),\n :host([variant=negative][rank=primary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:focus, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:focus-visible,\n :host([variant=negative][rank=primary]) .button:focus,\n :host([variant=negative][rank=primary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:disabled, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.disabled, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-disabled=true],\n :host([variant=negative][rank=primary]) .button:disabled,\n :host([variant=negative][rank=primary]) .button.disabled,\n :host([variant=negative][rank=primary]) .button[aria-disabled=true] {\n background: var(--form-control-primary-bg-disabled) !important;\n color: var(--text-primary-disabled-color) !important;\n border-color: var(--border-primary-disabled-color) !important;\n cursor: not-allowed;\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:disabled::-moz-placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.disabled::-moz-placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-disabled=true]::-moz-placeholder, :host([variant=negative][rank=primary]) .button:disabled::-moz-placeholder, :host([variant=negative][rank=primary]) .button.disabled::-moz-placeholder, :host([variant=negative][rank=primary]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--text-disabled-color);\n }\n :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button:disabled::placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button.disabled::placeholder, :host([variant=negative]:not([rank=secondary], [rank=tertiary])) .button[aria-disabled=true]::placeholder,\n :host([variant=negative][rank=primary]) .button:disabled::placeholder,\n :host([variant=negative][rank=primary]) .button.disabled::placeholder,\n :host([variant=negative][rank=primary]) .button[aria-disabled=true]::placeholder {\n color: var(--text-disabled-color);\n }\n /* stylelint-enable */\n :host([variant=negative][rank=secondary]) .button,\n :host([variant=negative][rank=tertiary]) .button {\n color: rgb(187, 0, 12);\n --color: rgb(187, 0, 12);\n border-color: transparent;\n transition: border 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;\n }\n :host([variant=negative][rank=secondary]) .button:not(:disabled, .disabled, [aria-disabled]):hover,\n :host([variant=negative][rank=tertiary]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background-color: rgb(216, 26, 26);\n color: rgb(255, 255, 255);\n --background: rgb(216, 26, 26);\n --color: rgb(255, 255, 255);\n border-color: rgb(216, 26, 26);\n }\n :host([variant=negative][rank=secondary]) .button[aria-selected=true], :host([variant=negative][rank=secondary]) .button:active, :host([variant=negative][rank=secondary]) .button.active, :host([variant=negative][rank=secondary]) .button.active:hover, :host([variant=negative][rank=secondary]) .button:active:hover,\n :host([variant=negative][rank=tertiary]) .button[aria-selected=true],\n :host([variant=negative][rank=tertiary]) .button:active,\n :host([variant=negative][rank=tertiary]) .button.active,\n :host([variant=negative][rank=tertiary]) .button.active:hover,\n :host([variant=negative][rank=tertiary]) .button:active:hover {\n background-color: rgb(187, 0, 12);\n color: rgb(255, 255, 255);\n --background: rgb(187, 0, 12);\n --color: rgb(255, 255, 255);\n border-color: rgb(187, 0, 12);\n }\n :host([variant=negative][rank=secondary]) .button[aria-selected]:hover, :host([variant=negative][rank=secondary]) .button.active:hover, :host([variant=negative][rank=secondary]) .button:active:hover,\n :host([variant=negative][rank=tertiary]) .button[aria-selected]:hover,\n :host([variant=negative][rank=tertiary]) .button.active:hover,\n :host([variant=negative][rank=tertiary]) .button:active:hover {\n opacity: 0.9;\n }\n :host([variant=negative][rank=secondary]) .button:focus:not(:focus-visible),\n :host([variant=negative][rank=tertiary]) .button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host([variant=negative][rank=secondary]) .button:focus, :host([variant=negative][rank=secondary]) .button:focus-visible,\n :host([variant=negative][rank=tertiary]) .button:focus,\n :host([variant=negative][rank=tertiary]) .button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host([variant=negative][rank=secondary]) .button {\n border-color: rgb(187, 0, 12);\n }\n :host([variant=ghost]) .button {\n transition: border 0.3s cubic-bezier(0.23, 1, 0.32, 1), outline-offset 0s, outline-width 0s;\n }\n :host([variant=ghost]) .button:not(:disabled, .disabled, [aria-disabled]):hover {\n background-color: rgb(51, 51, 51);\n color: rgb(255, 255, 255);\n --background: rgb(51, 51, 51);\n --color: rgb(255, 255, 255);\n border-color: rgb(51, 51, 51);\n }\n :host([variant=ghost]) .button[aria-selected=true], :host([variant=ghost]) .button:active, :host([variant=ghost]) .button.active, :host([variant=ghost]) .button.active:hover, :host([variant=ghost]) .button:active:hover {\n background-color: rgb(51, 51, 51);\n color: rgb(255, 255, 255);\n --background: rgb(51, 51, 51);\n --color: rgb(255, 255, 255);\n border-color: rgb(51, 51, 51);\n }\n :host([variant=ghost]) .button[aria-selected]:hover, :host([variant=ghost]) .button.active:hover, :host([variant=ghost]) .button:active:hover {\n opacity: 0.9;\n }\n :host([variant=ghost]) .button:focus-visible {\n background-color: rgb(51, 51, 51);\n color: rgb(255, 255, 255);\n --background: rgb(51, 51, 51);\n --color: rgb(255, 255, 255);\n border-color: rgb(51, 51, 51) !important;\n }\n :host([variant=ghost]) .button {\n border-color: rgb(51, 51, 51);\n color: rgb(51, 51, 51);\n --color: rgb(51, 51, 51);\n }\n :host([variant=ghost]) .button:disabled, :host([variant=ghost]) .button.disabled, :host([variant=ghost]) .button[aria-disabled=true] {\n color: var(--text-disabled-color) !important;\n border-color: var(--border-disabled-color) !important;\n cursor: not-allowed;\n }\n :host([variant=ghost]) .button:disabled::-moz-placeholder, :host([variant=ghost]) .button.disabled::-moz-placeholder, :host([variant=ghost]) .button[aria-disabled=true]::-moz-placeholder {\n color: var(--text-disabled-color);\n }\n :host([variant=ghost]) .button:disabled::placeholder, :host([variant=ghost]) .button.disabled::placeholder, :host([variant=ghost]) .button[aria-disabled=true]::placeholder {\n color: var(--text-disabled-color);\n }\n }\n @layer _overrides {\n :host .button.icon {\n padding: 0.75rem;\n background: transparent;\n border-width: 0px;\n color: currentColor;\n }\n :host .button.icon:hover {\n color: currentColor;\n background: var(--grey-500);\n }\n :host .button.icon slot {\n display: contents;\n }\n .button.icon.xs {\n min-height: 1.5rem;\n line-height: 0.75rem;\n padding: 0.25rem;\n }\n .button.icon.small {\n padding: 0.5rem;\n }\n .button.icon.large {\n padding: 1rem;\n }\n }\n}";
|
|
2
2
|
export default styles;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const styles = "/* stylelint-disable max-nesting-depth */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/**\n * Calculate the contrast ratio between two colors.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/* stylelint-disable */\n/* stylelint-enable */\n/* stylelint-disable */\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/* medium */\n/* regular */\n/* regular */\n/* regular */\n/* hover */\n/* focus */\n/* selected */\n/* highlighted */\n/* active */\n/* disabled */\n/* today */\n/* weekend */\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n @layer _base {\n :host {\n display: flex;\n justify-content: center;\n }\n @media (max-width: 35.98em) {\n :host {\n flex-wrap: wrap;\n overflow-y: auto;\n }\n }\n :host table {\n border-spacing: 0;\n }\n :host th,\n :host td {\n box-sizing: border-box;\n height: 2.75rem;\n text-align: center;\n width: 2.75rem;\n }\n :host thead {\n /* days */\n }\n :host thead th {\n background: var(--sg-bg-level-2);\n border-bottom: solid 1px var(--sg-grey-300);\n font-weight: 400;\n top: 0;\n }\n @media (max-width: 35.98em) {\n :host thead th {\n position: sticky;\n }\n }\n :host tbody {\n /* week numbers */\n
|
|
1
|
+
const styles = "/* stylelint-disable max-nesting-depth */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/**\n * Calculate the contrast ratio between two colors.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/* stylelint-disable */\n/* stylelint-enable */\n/* stylelint-disable */\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/* medium */\n/* regular */\n/* regular */\n/* regular */\n/* hover */\n/* focus */\n/* selected */\n/* highlighted */\n/* active */\n/* disabled */\n/* today */\n/* weekend */\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n @layer _base {\n :host {\n display: flex;\n justify-content: center;\n }\n @media (max-width: 35.98em) {\n :host {\n flex-wrap: wrap;\n overflow-y: auto;\n }\n }\n :host table {\n border-spacing: 0;\n }\n :host th,\n :host td {\n box-sizing: border-box;\n height: 2.75rem;\n text-align: center;\n width: 2.75rem;\n }\n :host thead {\n /* days */\n }\n :host thead th {\n background: var(--sg-bg-level-2);\n border-bottom: solid 1px var(--sg-grey-300);\n font-weight: 400;\n top: 0;\n }\n @media (max-width: 35.98em) {\n :host thead th {\n position: sticky;\n }\n }\n :host tbody {\n /* week numbers */\n }\n :host tbody th {\n font-weight: 400;\n }\n :host tbody {\n /* dates */\n }\n :host tbody td {\n border: solid 1px transparent;\n font-weight: 500;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n /* weekend */\n }\n :host tbody td.sg-date-holiday:not(.disabled) {\n background: var(--sg-bg-level-2);\n color: hsl(var(--sg-hsl-red-2));\n }\n :host tbody td {\n /* today */\n }\n :host tbody td.today {\n background: transparent;\n border-radius: 4px;\n box-shadow: inset 0 0 0 2px var(--grey-1000);\n color: var(--grey-1000);\n }\n :host tbody td {\n /* hover */\n }\n :host tbody td:hover:not(.disabled) {\n background: var(--grey-500);\n border: solid 1px var(--sg-bg-level-2);\n border-radius: 4px;\n color: var(--gds-sys-color-font);\n cursor: pointer;\n }\n :host tbody td {\n /* focus */\n }\n :host tbody td:focus-visible:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n :host tbody td:focus-visible:focus, :host tbody td:focus-visible:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n :host tbody td:focus-visible:not(.disabled) {\n border: solid 1px var(--sg-bg-level-2);\n border-radius: 4px;\n cursor: pointer;\n position: relative;\n z-index: 0;\n }\n :host tbody td {\n /* selected */\n }\n :host tbody td[aria-selected=true] {\n background: var(--grey-1000);\n border: solid 1px var(--sg-bg-level-2);\n border-radius: 4px;\n color: hsl(var(--sg-hsl-white));\n }\n :host tbody td {\n /* highlighted */\n }\n :host tbody td[tabindex=\"0\"] {\n border-radius: 4px;\n }\n :host tbody td {\n /* active (pressed) */\n }\n :host tbody td:hover:active:not(.disabled) {\n background: var(--grey-1000);\n border: solid 1px var(--sg-bg-level-2);\n border-radius: 4px;\n color: hsl(var(--sg-hsl-white));\n }\n :host tbody td {\n /* disabled */\n }\n :host tbody td.disabled {\n background: hsl(var(--sg-hsl-disabled-background));\n border: solid 1px var(--sg-bg-level-2);\n border-radius: 4px;\n color: hsl(var(--sg-hsl-disabled-color));\n cursor: not-allowed;\n font-weight: 400;\n }\n :host tbody td.disabled.sg-date-holiday {\n color: hsla(var(--sg-hsl-red-2), 0.25);\n }\n :host tbody td.disabled .number,\n :host tbody td.disabled .indicator-dot {\n --_color: hsl(var(--sg-hsl-disabled-color)) !important;\n }\n :host tbody td.custom-date {\n position: relative;\n }\n :host tbody .number {\n color: var(--_color, \"currentColor\");\n }\n :host tbody .indicator-dot {\n display: block;\n width: 0.375rem;\n height: 0.375rem;\n top: 1.5rem;\n border-radius: 50%;\n margin: auto;\n position: absolute;\n inset-block-end: 0.125rem;\n inset-inline: 0;\n background-color: var(--_color);\n }\n :host table {\n flex-grow: 1;\n width: 100%;\n }\n :host table td {\n width: 3rem;\n height: 3rem;\n }\n }\n @layer _modifiers {\n .week-number {\n border-right: solid 1px var(--gds-ref-pallet-base300);\n font-weight: 400;\n pointer-events: none;\n }\n }\n}";
|
|
2
2
|
export default styles;
|
|
@@ -42,39 +42,41 @@ let GdsCheckbox = class extends GdsFormControlElement {
|
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
44
|
return html`
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
45
|
+
<input
|
|
46
|
+
type="checkbox"
|
|
47
|
+
class="visually-hidden-checkbox"
|
|
48
|
+
?checked=${this.checked}
|
|
49
|
+
?disabled=${this.disabled}
|
|
50
|
+
?indeterminate=${this.indeterminate}
|
|
51
|
+
aria-invalid=${this.invalid}
|
|
52
|
+
aria-describedby="message supporting-text"
|
|
53
|
+
id="checkbox-input"
|
|
54
|
+
@change=${() => {
|
|
54
55
|
this.checked = this._elCheckbox.checked;
|
|
55
56
|
__privateMethod(this, _GdsCheckbox_instances, dispatchChangeEvents_fn).call(this);
|
|
56
57
|
}}
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
/>
|
|
59
|
+
${when(
|
|
59
60
|
this.errorMessage,
|
|
60
61
|
() => html`<span id="message">${this.errorMessage}</span>`
|
|
61
62
|
)}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
63
|
+
<gds-toggle-control-base type="checkbox" @click=${__privateMethod(this, _GdsCheckbox_instances, toggleChecked_fn)}>
|
|
64
|
+
<label for="checkbox-input" slot="label"> ${this.label} </label>
|
|
65
|
+
<span
|
|
66
|
+
slot="supporting-text"
|
|
67
|
+
class="supporting-text"
|
|
68
|
+
id="supporting-text"
|
|
69
|
+
>
|
|
70
|
+
${this.supportingText}
|
|
71
|
+
</span>
|
|
72
|
+
${checkboxToggle({
|
|
72
73
|
checked: this.checked,
|
|
73
74
|
indeterminate: this.indeterminate,
|
|
74
75
|
disabled: this.disabled,
|
|
75
76
|
invalid: this.invalid
|
|
76
77
|
})}
|
|
77
|
-
|
|
78
|
+
</gds-toggle-control-base>
|
|
79
|
+
</div>
|
|
78
80
|
`;
|
|
79
81
|
}
|
|
80
82
|
_getValidityAnchor() {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const styles = "/* stylelint-disable max-nesting-depth */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/**\n * Calculate the contrast ratio between two colors.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/* stylelint-disable */\n/* stylelint-enable */\n/* stylelint-disable */\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 */\ni.sg-icon {\n font-size: 0;\n width: 1rem;\n height: 1rem;\n display: inline-block;\n}\ni.sg-icon::before {\n content: \"\";\n display: inline-block;\n background: var(--color);\n width: 100%;\n height: 100%;\n -webkit-mask-repeat: no-repeat;\n mask-repeat: no-repeat;\n}\ni.sg-icon.sg-icon-calendar::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 248h80v-56H48v56zm0 48v64h80v-64H48zm128 0v64h96v-64h-96zm144 0v64h80v-64h-80zm80-104h-80v56h80v-56zm0 216h-80v56h64c8.8 0 16-7.2 16-16v-40zm-128 0h-96v56h96v-56zm-144 0H48v40c0 8.8 7.16 16 16 16h64v-56zm144-216h-96v56h96v-56z '/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 248h80v-56H48v56zm0 48v64h80v-64H48zm128 0v64h96v-64h-96zm144 0v64h80v-64h-80zm80-104h-80v56h80v-56zm0 216h-80v56h64c8.8 0 16-7.2 16-16v-40zm-128 0h-96v56h96v-56zm-144 0H48v40c0 8.8 7.16 16 16 16h64v-56zm144-216h-96v56h96v-56z '/%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-calendar-range::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M96 288c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm224 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-128-64c0-13.3 10.7-24 24-24h112c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24zm40 72c13.3 0 24 10.7 24 24s-10.7 24-24 24H120c-13.3 0-24-10.7-24-24s10.7-24 24-24h112zM152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 448c0 8.8 7.16 16 16 16h320c8.8 0 16-7.2 16-16V192H48v256z'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M96 288c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm224 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-128-64c0-13.3 10.7-24 24-24h112c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24zm40 72c13.3 0 24 10.7 24 24s-10.7 24-24 24H120c-13.3 0-24-10.7-24-24s10.7-24 24-24h112zM152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 448c0 8.8 7.16 16 16 16h320c8.8 0 16-7.2 16-16V192H48v256z'/%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-ellipsis::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z'/%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-grip-vertical::before {\n -webkit-mask-image: url(\"data:image/svg+xml, %3Csvg height='1em' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z' /%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml, %3Csvg height='1em' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z' /%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-next::before {\n background: none;\n border-bottom: 2px solid;\n border-left: 2px solid;\n content: \"\";\n display: block;\n height: 12px;\n margin-left: -10px;\n margin-top: 2px;\n transform: translate(75%) rotate(-135deg) scaleZ(-1);\n transition: transform 0.3s ease-in;\n width: 12px;\n}\ni.sg-icon.sg-icon-previous::before {\n background: none;\n border-bottom: 2px solid;\n border-left: 2px solid;\n content: \"\";\n display: block;\n height: 12px;\n margin-left: -4px;\n margin-top: 2px;\n transform: translate(75%) rotate(45deg) scaleZ(-1);\n transition: transform 0.3s ease-in;\n width: 12px;\n}\ni.sg-icon.sg-icon-ellipsis::before {\n margin-right: -2px;\n}\n\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n @layer _base, _overrides;\n :host {\n display: inline-block;\n }\n @layer _base {\n button {\n background-color: transparent;\n border: 0;\n cursor: pointer;\n font-family: inherit;\n padding: 0;\n padding-left: 1rem;\n padding-right: 1rem;\n padding-bottom: 0.75rem;\n padding-top: 0.75rem;\n border-radius: var(--sg-border-radius);\n border: solid var(--sg-border-width) var(--sg-border-color);\n font-weight: 500;\n min-height: 2.75rem;\n align-items: center;\n display: inline-flex;\n justify-content: center;\n background-color: transparent;\n border: 0.0625rem solid transparent;\n padding: 0.625rem;\n height: 2.75rem;\n width: 2.75rem;\n min-width: auto;\n --color: var(--gds-sys-color-base-800);\n }\n button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n button:focus, button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n @media (max-width: 35.98em) {\n button {\n min-width: 100%;\n }\n }\n @media screen and (-ms-high-contrast: active) {\n button {\n border: 2px solid currentcolor;\n }\n }\n button.small {\n min-height: 2rem;\n padding: 0.4375rem 0.75rem;\n font-size: 0.875rem;\n line-height: 1rem;\n }\n button.large {\n min-height: 4rem;\n padding: 1rem 1.5rem;\n font-size: 1.5rem;\n line-height: 2rem;\n }\n .form-group button {\n margin-top: -0.625rem;\n }\n button.small {\n height: 2rem;\n width: 2rem;\n padding: 0.4375rem;\n line-height: 1.125rem;\n }\n button svg {\n height: 1rem;\n width: 1rem;\n }\n button path,\n button line,\n button circle,\n button rect,\n button ellipse,\n button polyline,\n button text {\n fill: var(--gds-sys-color-base-800);\n stroke: var(--gds-sys-color-base-800);\n transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n }\n button:hover, button.highlighted {\n background-color: rgba(0, 0, 0, 0.1);\n border-color: transparent;\n }\n button:active, button.highlighted:hover {\n background-color: rgba(0, 0, 0, 0.2);\n border-color: transparent;\n }\n }\n @layer _overrides {\n button {\n border-color: transparent;\n color: var(--gds-ref-pallet-base800);\n display: flex;\n gap: 0.5rem;\n line-height: 0.75;\n padding-inline: 0.4375rem;\n width: auto;\n }\n button.highlighted {\n background-color: var(--gds-ref-pallet-base300);\n }\n }\n}";
|
|
1
|
+
const styles = "/* stylelint-disable max-nesting-depth */\n/* stylelint-enable max-nesting-depth */\n/**\n * Calculate the luminance for a color.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/**\n * Calculate the contrast ratio between two colors.\n * See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n */\n/* stylelint-disable */\n/* stylelint-enable */\n/* stylelint-disable */\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 */\ni.sg-icon {\n font-size: 0;\n width: 1rem;\n height: 1rem;\n display: inline-block;\n}\ni.sg-icon::before {\n content: \"\";\n display: inline-block;\n background: var(--color);\n width: 100%;\n height: 100%;\n -webkit-mask-repeat: no-repeat;\n mask-repeat: no-repeat;\n}\ni.sg-icon.sg-icon-calendar::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 248h80v-56H48v56zm0 48v64h80v-64H48zm128 0v64h96v-64h-96zm144 0v64h80v-64h-80zm80-104h-80v56h80v-56zm0 216h-80v56h64c8.8 0 16-7.2 16-16v-40zm-128 0h-96v56h96v-56zm-144 0H48v40c0 8.8 7.16 16 16 16h64v-56zm144-216h-96v56h96v-56z '/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 248h80v-56H48v56zm0 48v64h80v-64H48zm128 0v64h96v-64h-96zm144 0v64h80v-64h-80zm80-104h-80v56h80v-56zm0 216h-80v56h64c8.8 0 16-7.2 16-16v-40zm-128 0h-96v56h96v-56zm-144 0H48v40c0 8.8 7.16 16 16 16h64v-56zm144-216h-96v56h96v-56z '/%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-calendar-range::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M96 288c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm224 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-128-64c0-13.3 10.7-24 24-24h112c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24zm40 72c13.3 0 24 10.7 24 24s-10.7 24-24 24H120c-13.3 0-24-10.7-24-24s10.7-24 24-24h112zM152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 448c0 8.8 7.16 16 16 16h320c8.8 0 16-7.2 16-16V192H48v256z'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M96 288c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm224 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-128-64c0-13.3 10.7-24 24-24h112c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24zm40 72c13.3 0 24 10.7 24 24s-10.7 24-24 24H120c-13.3 0-24-10.7-24-24s10.7-24 24-24h112zM152 64h144V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40h40c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V128c0-35.35 28.65-64 64-64h40V24c0-13.25 10.7-24 24-24s24 10.75 24 24v40zM48 448c0 8.8 7.16 16 16 16h320c8.8 0 16-7.2 16-16V192H48v256z'/%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-ellipsis::before {\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z'/%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Pro 6.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--%3E%3Cpath d='M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z'/%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-grip-vertical::before {\n -webkit-mask-image: url(\"data:image/svg+xml, %3Csvg height='1em' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z' /%3E%3C/svg%3E\");\n mask-image: url(\"data:image/svg+xml, %3Csvg height='1em' viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z' /%3E%3C/svg%3E\");\n}\ni.sg-icon.sg-icon-next::before {\n background: none;\n border-bottom: 2px solid;\n border-left: 2px solid;\n content: \"\";\n display: block;\n height: 12px;\n margin-left: -10px;\n margin-top: 2px;\n transform: translate(75%) rotate(-135deg) scaleZ(-1);\n transition: transform 0.3s ease-in;\n width: 12px;\n}\ni.sg-icon.sg-icon-previous::before {\n background: none;\n border-bottom: 2px solid;\n border-left: 2px solid;\n content: \"\";\n display: block;\n height: 12px;\n margin-left: -4px;\n margin-top: 2px;\n transform: translate(75%) rotate(45deg) scaleZ(-1);\n transition: transform 0.3s ease-in;\n width: 12px;\n}\ni.sg-icon.sg-icon-ellipsis::before {\n margin-right: -2px;\n}\n\n@layer base, reset, transitional-styles;\n@layer transitional-styles {\n @layer _base, _overrides;\n :host {\n display: inline-block;\n }\n @layer _base {\n button {\n background-color: transparent;\n border: 0;\n cursor: pointer;\n font-family: inherit;\n padding: 0;\n padding-left: 1rem;\n padding-right: 1rem;\n padding-bottom: 0.75rem;\n padding-top: 0.75rem;\n border-radius: var(--sg-border-radius);\n border: solid var(--sg-border-width) var(--sg-border-color);\n font-weight: 500;\n }\n button:focus:not(:focus-visible) {\n box-shadow: none;\n outline: 0;\n }\n button:focus, button:focus-visible {\n outline-color: var(--gds-sys-color-focus-outline);\n outline-style: solid;\n outline-width: 0.125rem;\n outline-offset: 0.125rem;\n }\n button {\n min-height: 2.75rem;\n align-items: center;\n display: inline-flex;\n justify-content: center;\n }\n @media (max-width: 35.98em) {\n button {\n min-width: 100%;\n }\n }\n @media screen and (-ms-high-contrast: active) {\n button {\n border: 2px solid currentcolor;\n }\n }\n button.small {\n min-height: 2rem;\n padding: 0.4375rem 0.75rem;\n font-size: 0.875rem;\n line-height: 1rem;\n }\n button.large {\n min-height: 4rem;\n padding: 1rem 1.5rem;\n font-size: 1.5rem;\n line-height: 2rem;\n }\n button {\n background-color: transparent;\n border: 0.0625rem solid transparent;\n padding: 0.625rem;\n height: 2.75rem;\n width: 2.75rem;\n min-width: auto;\n --color: var(--gds-sys-color-base-800);\n }\n .form-group button {\n margin-top: -0.625rem;\n }\n button.small {\n height: 2rem;\n width: 2rem;\n padding: 0.4375rem;\n line-height: 1.125rem;\n }\n button svg {\n height: 1rem;\n width: 1rem;\n }\n button path,\n button line,\n button circle,\n button rect,\n button ellipse,\n button polyline,\n button text {\n fill: var(--gds-sys-color-base-800);\n stroke: var(--gds-sys-color-base-800);\n transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);\n }\n button:hover, button.highlighted {\n background-color: rgba(0, 0, 0, 0.1);\n border-color: transparent;\n }\n button:active, button.highlighted:hover {\n background-color: rgba(0, 0, 0, 0.2);\n border-color: transparent;\n }\n }\n @layer _overrides {\n button {\n border-color: transparent;\n color: var(--gds-ref-pallet-base800);\n display: flex;\n gap: 0.5rem;\n line-height: 0.75;\n padding-inline: 0.4375rem;\n width: auto;\n }\n button.highlighted {\n background-color: var(--gds-ref-pallet-base300);\n }\n }\n}";
|
|
2
2
|
export default styles;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__privateMethod,
|
|
6
6
|
__privateSet
|
|
7
7
|
} from "../../chunks/chunk.QU3DSPNU.js";
|
|
8
|
-
var _utcHours, _valueOnOpen, _Datepicker_instances, shouldShowFooter_fn, renderBackToValidRangeButton_fn, focusDate_fn, getSpinnerLabel_fn, getMinSpinnerValue_fn, getMaxSpinnerValue_fn, dispatchChangeEvent_fn, dispatchInputEvent_fn,
|
|
8
|
+
var _utcHours, _valueOnOpen, _Datepicker_instances, shouldShowFooter_fn, renderBackToValidRangeButton_fn, focusDate_fn, getSpinnerLabel_fn, getMinSpinnerValue_fn, getMaxSpinnerValue_fn, dispatchChangeEvent_fn, dispatchInputEvent_fn, _handleSpinnerFocus, _handleClipboardCopy, _handleClipboardPaste, _handleFieldClick, _handleCalendarChange, _handleMonthChange, _handleYearChange, _handleIncrementFocusedMonth, _handleDecrementFocusedMonth, _handleCalendarFocusChange, _handlePopoverStateChange, _handleSpinnerKeydown, parseDateFormat_fn, _handleSpinnerChange, _spinnerState, years_get, isValueOutsideRange_get;
|
|
9
9
|
import { localized, msg } from "@lit/localize";
|
|
10
10
|
import { nothing } from "lit";
|
|
11
11
|
import { property, query, queryAll, queryAsync, state } from "lit/decorators.js";
|
|
@@ -62,13 +62,6 @@ let Datepicker = class extends GdsFormControlElement {
|
|
|
62
62
|
this._focusedYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
63
63
|
this._dateFormatLayout = __privateMethod(this, _Datepicker_instances, parseDateFormat_fn).call(this, "y-m-d");
|
|
64
64
|
__privateAdd(this, _valueOnOpen);
|
|
65
|
-
__privateAdd(this, _handleFieldFocusOut, (e) => {
|
|
66
|
-
this._elTrigger.then((_) => {
|
|
67
|
-
const parent = e.relatedTarget?.parentElement;
|
|
68
|
-
if (parent === e.target) return;
|
|
69
|
-
document.getSelection()?.removeAllRanges();
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
65
|
__privateAdd(this, _handleSpinnerFocus, (e) => {
|
|
73
66
|
this._elTrigger.then((field) => {
|
|
74
67
|
document.getSelection()?.removeAllRanges();
|
|
@@ -620,7 +613,6 @@ dispatchInputEvent_fn = function() {
|
|
|
620
613
|
})
|
|
621
614
|
);
|
|
622
615
|
};
|
|
623
|
-
_handleFieldFocusOut = new WeakMap();
|
|
624
616
|
_handleSpinnerFocus = new WeakMap();
|
|
625
617
|
_handleClipboardCopy = new WeakMap();
|
|
626
618
|
_handleClipboardPaste = new WeakMap();
|
|
@@ -381,7 +381,10 @@ let Dropdown = class extends GdsFormControlElement {
|
|
|
381
381
|
!this.combobox || this.multiple,
|
|
382
382
|
() => __privateGet(this, _renderTriggerButton).call(this)
|
|
383
383
|
)}
|
|
384
|
-
<gds-icon-chevron-bottom
|
|
384
|
+
<gds-icon-chevron-bottom
|
|
385
|
+
size=${this.size === "small" ? "m" : "l"}
|
|
386
|
+
slot="action"
|
|
387
|
+
></gds-icon-chevron-bottom>
|
|
385
388
|
</gds-field-base>
|
|
386
389
|
|
|
387
390
|
${when(
|
|
@@ -11,7 +11,8 @@ import { NumberFormats } from '../formatters';
|
|
|
11
11
|
* <gds-formatted-number
|
|
12
12
|
* value="1234.5"
|
|
13
13
|
* locale="sv-SE"
|
|
14
|
-
* currency="SEK"
|
|
14
|
+
* currency="SEK"
|
|
15
|
+
* decimals={3}>
|
|
15
16
|
* </gds-formatted-number>
|
|
16
17
|
*/
|
|
17
18
|
export declare class GdsFormattedNumber extends GdsFormattedText {
|
|
@@ -21,6 +22,8 @@ export declare class GdsFormattedNumber extends GdsFormattedText {
|
|
|
21
22
|
locale?: string;
|
|
22
23
|
/** The currency used when formatting numbers. */
|
|
23
24
|
currency?: string;
|
|
25
|
+
/** The number of decimal places to display. */
|
|
26
|
+
decimals?: number;
|
|
24
27
|
/**
|
|
25
28
|
* Specifies the number format.
|
|
26
29
|
* @default 'decimalsAndThousands'
|