@sebgroup/green-core 1.70.0 → 1.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/badge/badge.component.js +5 -5
- package/components/badge/badge.js +1 -1
- package/components/badge/index.js +1 -1
- package/components/button/button.component.js +8 -8
- package/components/button/button.js +1 -1
- package/components/button/button.style.css.js +2 -4
- package/components/button/button.trans.styles.js +1 -1
- package/components/button/button.trans.styles.scss.js +2 -4
- package/components/button/index.js +1 -1
- package/components/calendar/calendar.component.js +5 -5
- package/components/calendar/calendar.js +1 -1
- package/components/calendar/calendar.trans.styles.js +1 -1
- package/components/calendar/calendar.trans.styles.scss.js +2 -4
- package/components/calendar/index.js +1 -1
- package/components/card/card.component.js +3 -3
- package/components/card/card.js +1 -1
- package/components/card/index.js +1 -1
- package/components/coachmark/coachmark.component.js +2 -2
- package/components/coachmark/coachmark.js +1 -1
- package/components/coachmark/index.js +1 -1
- package/components/container/container.component.js +2 -2
- package/components/container/container.js +1 -1
- package/components/container/index.js +1 -1
- package/components/context-menu/context-menu.component.js +8 -8
- package/components/context-menu/context-menu.js +1 -1
- package/components/context-menu/context-menu.trans.styles.js +1 -1
- package/components/context-menu/context-menu.trans.styles.scss.js +2 -4
- package/components/context-menu/index.js +3 -3
- package/components/datepicker/date-part-spinner.js +3 -3
- package/components/datepicker/datepicker.component.js +16 -16
- package/components/datepicker/datepicker.js +1 -1
- package/components/datepicker/datepicker.trans.styles.js +1 -1
- package/components/datepicker/datepicker.trans.styles.scss.js +2 -4
- package/components/datepicker/index.js +1 -1
- package/components/dialog/dialog.component.js +8 -8
- package/components/dialog/dialog.js +1 -1
- package/components/dialog/index.js +1 -1
- package/components/dialog/scroll-lock.js +1 -1
- package/components/div/div.component.d.ts +5 -0
- package/components/div/div.component.js +8 -5
- package/components/div/div.js +1 -1
- package/components/div/index.js +1 -1
- package/components/divider/divider.component.js +4 -4
- package/components/divider/divider.js +1 -1
- package/components/divider/index.js +1 -1
- package/components/dropdown/dropdown.component.js +12 -12
- package/components/dropdown/dropdown.js +1 -1
- package/components/dropdown/index.js +3 -3
- package/components/fab/fab.component.js +3 -3
- package/components/fab/fab.js +1 -1
- package/components/fab/index.js +1 -1
- package/components/filter-chips/filter-chip/filter-chip.component.js +5 -5
- package/components/filter-chips/filter-chip/filter-chip.js +1 -1
- package/components/filter-chips/filter-chip/filter-chip.trans.styles.js +1 -1
- package/components/filter-chips/filter-chip/filter-chip.trans.styles.scss.js +2 -4
- package/components/filter-chips/filter-chip/index.js +1 -1
- package/components/filter-chips/filter-chips.component.js +6 -6
- package/components/filter-chips/filter-chips.js +1 -1
- package/components/filter-chips/filter-chips.trans.styles.js +1 -1
- package/components/filter-chips/filter-chips.trans.styles.scss.js +2 -4
- package/components/filter-chips/index.js +2 -2
- package/components/flex/flex.component.js +2 -2
- package/components/flex/flex.js +1 -1
- package/components/flex/index.js +1 -1
- package/components/form/form-control.js +2 -2
- package/components/form/index.js +1 -1
- package/components/form/summary/index.js +1 -1
- package/components/form/summary/summary.component.js +5 -5
- package/components/form/summary/summary.js +1 -1
- package/components/grid/grid.component.js +4 -4
- package/components/grid/grid.js +1 -1
- package/components/grid/index.js +1 -1
- package/components/grouped-list/grouped-list.component.js +4 -4
- package/components/grouped-list/grouped-list.js +1 -1
- package/components/grouped-list/grouped-list.trans.styles.js +1 -1
- package/components/grouped-list/grouped-list.trans.styles.scss.js +2 -4
- package/components/grouped-list/index.js +2 -2
- package/components/grouped-list/list-item.component.js +2 -2
- package/components/grouped-list/list-item.js +1 -1
- package/components/icon/icon.component.js +1 -1
- package/components/icon/icon.js +1 -1
- package/components/icon/icons/airplane-up.component.js +2 -2
- package/components/icon/icons/airplane-up.js +1 -1
- package/components/icon/icons/archive.component.js +2 -2
- package/components/icon/icons/archive.js +1 -1
- package/components/icon/icons/arrow-box-left.component.js +2 -2
- package/components/icon/icons/arrow-box-left.js +1 -1
- package/components/icon/icons/arrow-box-right.component.js +2 -2
- package/components/icon/icons/arrow-box-right.js +1 -1
- package/components/icon/icons/arrow-down.component.js +2 -2
- package/components/icon/icons/arrow-down.js +1 -1
- package/components/icon/icons/arrow-inbox.component.js +2 -2
- package/components/icon/icons/arrow-inbox.js +1 -1
- package/components/icon/icons/arrow-left-right.component.js +2 -2
- package/components/icon/icons/arrow-left-right.js +1 -1
- package/components/icon/icons/arrow-left.component.js +2 -2
- package/components/icon/icons/arrow-left.js +1 -1
- package/components/icon/icons/arrow-out-of-box.component.js +2 -2
- package/components/icon/icons/arrow-out-of-box.js +1 -1
- package/components/icon/icons/arrow-right-circle.component.js +2 -2
- package/components/icon/icons/arrow-right-circle.js +1 -1
- package/components/icon/icons/arrow-right-down-circle.component.js +2 -2
- package/components/icon/icons/arrow-right-down-circle.js +1 -1
- package/components/icon/icons/arrow-right-up-circle.component.js +2 -2
- package/components/icon/icons/arrow-right-up-circle.js +1 -1
- package/components/icon/icons/arrow-right.component.js +2 -2
- package/components/icon/icons/arrow-right.js +1 -1
- package/components/icon/icons/arrow-rotate-clockwise.component.js +2 -2
- package/components/icon/icons/arrow-rotate-clockwise.js +1 -1
- package/components/icon/icons/arrow-rotate-counter-clockwise.component.js +2 -2
- package/components/icon/icons/arrow-rotate-counter-clockwise.js +1 -1
- package/components/icon/icons/arrow-rotate-left-right.component.js +2 -2
- package/components/icon/icons/arrow-rotate-left-right.js +1 -1
- package/components/icon/icons/arrow-rotate-right-left.component.js +2 -2
- package/components/icon/icons/arrow-rotate-right-left.js +1 -1
- package/components/icon/icons/arrow-share-left.component.js +2 -2
- package/components/icon/icons/arrow-share-left.js +1 -1
- package/components/icon/icons/arrow-share-right.component.js +2 -2
- package/components/icon/icons/arrow-share-right.js +1 -1
- package/components/icon/icons/arrow-up.component.js +2 -2
- package/components/icon/icons/arrow-up.js +1 -1
- package/components/icon/icons/arrow-wall-down.component.js +2 -2
- package/components/icon/icons/arrow-wall-down.js +1 -1
- package/components/icon/icons/arrow-wall-left.component.js +2 -2
- package/components/icon/icons/arrow-wall-left.js +1 -1
- package/components/icon/icons/arrow-wall-right.component.js +2 -2
- package/components/icon/icons/arrow-wall-right.js +1 -1
- package/components/icon/icons/arrow-wall-up.component.js +2 -2
- package/components/icon/icons/arrow-wall-up.js +1 -1
- package/components/icon/icons/arrow.component.js +2 -2
- package/components/icon/icons/arrow.js +1 -1
- package/components/icon/icons/arrows-repeat.component.js +2 -2
- package/components/icon/icons/arrows-repeat.js +1 -1
- package/components/icon/icons/at.component.js +2 -2
- package/components/icon/icons/at.js +1 -1
- package/components/icon/icons/back.component.js +2 -2
- package/components/icon/icons/back.js +1 -1
- package/components/icon/icons/bag.component.js +2 -2
- package/components/icon/icons/bag.js +1 -1
- package/components/icon/icons/bank.component.js +2 -2
- package/components/icon/icons/bank.js +1 -1
- package/components/icon/icons/banknote.component.js +2 -2
- package/components/icon/icons/banknote.js +1 -1
- package/components/icon/icons/barcode.component.js +2 -2
- package/components/icon/icons/barcode.js +1 -1
- package/components/icon/icons/bars-three.component.js +2 -2
- package/components/icon/icons/bars-three.js +1 -1
- package/components/icon/icons/bars-two.component.js +2 -2
- package/components/icon/icons/bars-two.js +1 -1
- package/components/icon/icons/battery-loading.component.js +2 -2
- package/components/icon/icons/battery-loading.js +1 -1
- package/components/icon/icons/bell.component.js +2 -2
- package/components/icon/icons/bell.js +1 -1
- package/components/icon/icons/block.component.js +2 -2
- package/components/icon/icons/block.js +1 -1
- package/components/icon/icons/book.component.js +2 -2
- package/components/icon/icons/book.js +1 -1
- package/components/icon/icons/bookmark-check.component.js +2 -2
- package/components/icon/icons/bookmark-check.js +1 -1
- package/components/icon/icons/bookmark-delete.component.js +2 -2
- package/components/icon/icons/bookmark-delete.js +1 -1
- package/components/icon/icons/bookmark-plus.component.js +2 -2
- package/components/icon/icons/bookmark-plus.js +1 -1
- package/components/icon/icons/bookmark-remove.component.js +2 -2
- package/components/icon/icons/bookmark-remove.js +1 -1
- package/components/icon/icons/bookmark.component.js +2 -2
- package/components/icon/icons/bookmark.js +1 -1
- package/components/icon/icons/books.component.js +2 -2
- package/components/icon/icons/books.js +1 -1
- package/components/icon/icons/brand-app-store.component.js +2 -2
- package/components/icon/icons/brand-app-store.js +1 -1
- package/components/icon/icons/brand-apple-music.component.js +2 -2
- package/components/icon/icons/brand-apple-music.js +1 -1
- package/components/icon/icons/brand-bankid.component.js +2 -2
- package/components/icon/icons/brand-bankid.js +1 -1
- package/components/icon/icons/brand-chrome.component.js +2 -2
- package/components/icon/icons/brand-chrome.js +1 -1
- package/components/icon/icons/brand-facebook.component.js +2 -2
- package/components/icon/icons/brand-facebook.js +1 -1
- package/components/icon/icons/brand-figma.component.js +2 -2
- package/components/icon/icons/brand-figma.js +1 -1
- package/components/icon/icons/brand-github.component.js +2 -2
- package/components/icon/icons/brand-github.js +1 -1
- package/components/icon/icons/brand-green.component.js +2 -2
- package/components/icon/icons/brand-green.js +1 -1
- package/components/icon/icons/brand-instagram.component.js +2 -2
- package/components/icon/icons/brand-instagram.js +1 -1
- package/components/icon/icons/brand-linkedin.component.js +2 -2
- package/components/icon/icons/brand-linkedin.js +1 -1
- package/components/icon/icons/brand-play-store.component.js +2 -2
- package/components/icon/icons/brand-play-store.js +1 -1
- package/components/icon/icons/brand-rss-feed.component.js +2 -2
- package/components/icon/icons/brand-rss-feed.js +1 -1
- package/components/icon/icons/brand-seb.component.js +2 -2
- package/components/icon/icons/brand-seb.js +1 -1
- package/components/icon/icons/brand-spotify.component.js +2 -2
- package/components/icon/icons/brand-spotify.js +1 -1
- package/components/icon/icons/brand-x.component.js +2 -2
- package/components/icon/icons/brand-x.js +1 -1
- package/components/icon/icons/brush.component.js +2 -2
- package/components/icon/icons/brush.js +1 -1
- package/components/icon/icons/bubble-annotation.component.js +2 -2
- package/components/icon/icons/bubble-annotation.js +1 -1
- package/components/icon/icons/bubble-dots.component.js +2 -2
- package/components/icon/icons/bubble-dots.js +1 -1
- package/components/icon/icons/bubble-question.component.js +2 -2
- package/components/icon/icons/bubble-question.js +1 -1
- package/components/icon/icons/bubble-quotes.component.js +2 -2
- package/components/icon/icons/bubble-quotes.js +1 -1
- package/components/icon/icons/bubble-text.component.js +2 -2
- package/components/icon/icons/bubble-text.js +1 -1
- package/components/icon/icons/bubble-wide-annotation.component.js +2 -2
- package/components/icon/icons/bubble-wide-annotation.js +1 -1
- package/components/icon/icons/bubble.component.js +2 -2
- package/components/icon/icons/bubble.js +1 -1
- package/components/icon/icons/bubbles.component.js +2 -2
- package/components/icon/icons/bubbles.js +1 -1
- package/components/icon/icons/buildings.component.js +2 -2
- package/components/icon/icons/buildings.js +1 -1
- package/components/icon/icons/cain-link.component.js +2 -2
- package/components/icon/icons/cain-link.js +1 -1
- package/components/icon/icons/calculator.component.js +2 -2
- package/components/icon/icons/calculator.js +1 -1
- package/components/icon/icons/calendar-check.component.js +2 -2
- package/components/icon/icons/calendar-check.js +1 -1
- package/components/icon/icons/calendar.component.js +2 -2
- package/components/icon/icons/calendar.js +1 -1
- package/components/icon/icons/calender-add.component.js +2 -2
- package/components/icon/icons/calender-add.js +1 -1
- package/components/icon/icons/call.component.js +2 -2
- package/components/icon/icons/call.js +1 -1
- package/components/icon/icons/car.component.js +2 -2
- package/components/icon/icons/car.js +1 -1
- package/components/icon/icons/charging-station.component.js +2 -2
- package/components/icon/icons/charging-station.js +1 -1
- package/components/icon/icons/chart-one.component.js +2 -2
- package/components/icon/icons/chart-one.js +1 -1
- package/components/icon/icons/chart-presentation.component.js +2 -2
- package/components/icon/icons/chart-presentation.js +1 -1
- package/components/icon/icons/chart-two.component.js +2 -2
- package/components/icon/icons/chart-two.js +1 -1
- package/components/icon/icons/checklist.component.js +2 -2
- package/components/icon/icons/checklist.js +1 -1
- package/components/icon/icons/checkmark.component.js +2 -2
- package/components/icon/icons/checkmark.js +1 -1
- package/components/icon/icons/chevron-bottom.component.js +2 -2
- package/components/icon/icons/chevron-bottom.js +1 -1
- package/components/icon/icons/chevron-double-down.component.js +2 -2
- package/components/icon/icons/chevron-double-down.js +1 -1
- package/components/icon/icons/chevron-double-left.component.js +2 -2
- package/components/icon/icons/chevron-double-left.js +1 -1
- package/components/icon/icons/chevron-double-right.component.js +2 -2
- package/components/icon/icons/chevron-double-right.js +1 -1
- package/components/icon/icons/chevron-double-up.component.js +2 -2
- package/components/icon/icons/chevron-double-up.js +1 -1
- package/components/icon/icons/chevron-grabber-vertical.component.js +2 -2
- package/components/icon/icons/chevron-grabber-vertical.js +1 -1
- package/components/icon/icons/chevron-left.component.js +2 -2
- package/components/icon/icons/chevron-left.js +1 -1
- package/components/icon/icons/chevron-right.component.js +2 -2
- package/components/icon/icons/chevron-right.js +1 -1
- package/components/icon/icons/chevron-top.component.js +2 -2
- package/components/icon/icons/chevron-top.js +1 -1
- package/components/icon/icons/circle-check.component.js +2 -2
- package/components/icon/icons/circle-check.js +1 -1
- package/components/icon/icons/circle-info.component.js +2 -2
- package/components/icon/icons/circle-info.js +1 -1
- package/components/icon/icons/circle-minus.component.js +2 -2
- package/components/icon/icons/circle-minus.js +1 -1
- package/components/icon/icons/circle-placeholder-on.component.js +2 -2
- package/components/icon/icons/circle-placeholder-on.js +1 -1
- package/components/icon/icons/circle-plus.component.js +2 -2
- package/components/icon/icons/circle-plus.js +1 -1
- package/components/icon/icons/circle-questionmark.component.js +2 -2
- package/components/icon/icons/circle-questionmark.js +1 -1
- package/components/icon/icons/circle-x.component.js +2 -2
- package/components/icon/icons/circle-x.js +1 -1
- package/components/icon/icons/circles-three.component.js +2 -2
- package/components/icon/icons/circles-three.js +1 -1
- package/components/icon/icons/clock.component.js +2 -2
- package/components/icon/icons/clock.js +1 -1
- package/components/icon/icons/cloud-upload.component.js +2 -2
- package/components/icon/icons/cloud-upload.js +1 -1
- package/components/icon/icons/cloudy-sun.component.js +2 -2
- package/components/icon/icons/cloudy-sun.js +1 -1
- package/components/icon/icons/compass-round.component.js +2 -2
- package/components/icon/icons/compass-round.js +1 -1
- package/components/icon/icons/credit-card.component.js +2 -2
- package/components/icon/icons/credit-card.js +1 -1
- package/components/icon/icons/cross-large.component.js +2 -2
- package/components/icon/icons/cross-large.js +1 -1
- package/components/icon/icons/cross-small.component.js +2 -2
- package/components/icon/icons/cross-small.js +1 -1
- package/components/icon/icons/cup-hot.component.js +2 -2
- package/components/icon/icons/cup-hot.js +1 -1
- package/components/icon/icons/devices.component.js +2 -2
- package/components/icon/icons/devices.js +1 -1
- package/components/icon/icons/direction.component.js +2 -2
- package/components/icon/icons/direction.js +1 -1
- package/components/icon/icons/dollar.component.js +2 -2
- package/components/icon/icons/dollar.js +1 -1
- package/components/icon/icons/dot-grid-one-horizontal.component.js +2 -2
- package/components/icon/icons/dot-grid-one-horizontal.js +1 -1
- package/components/icon/icons/dot-grid-one-vertical.component.js +2 -2
- package/components/icon/icons/dot-grid-one-vertical.js +1 -1
- package/components/icon/icons/dot-grid-three.component.js +2 -2
- package/components/icon/icons/dot-grid-three.js +1 -1
- package/components/icon/icons/dot-grid-two.component.js +2 -2
- package/components/icon/icons/dot-grid-two.js +1 -1
- package/components/icon/icons/email.component.js +2 -2
- package/components/icon/icons/email.js +1 -1
- package/components/icon/icons/euro.component.js +2 -2
- package/components/icon/icons/euro.js +1 -1
- package/components/icon/icons/eye-open.component.js +2 -2
- package/components/icon/icons/eye-open.js +1 -1
- package/components/icon/icons/eye-slash.component.js +2 -2
- package/components/icon/icons/eye-slash.js +1 -1
- package/components/icon/icons/fashion.component.js +2 -2
- package/components/icon/icons/fashion.js +1 -1
- package/components/icon/icons/fast-forward.component.js +2 -2
- package/components/icon/icons/fast-forward.js +1 -1
- package/components/icon/icons/file-bend.component.js +2 -2
- package/components/icon/icons/file-bend.js +1 -1
- package/components/icon/icons/file-chart.component.js +2 -2
- package/components/icon/icons/file-chart.js +1 -1
- package/components/icon/icons/file-text.component.js +2 -2
- package/components/icon/icons/file-text.js +1 -1
- package/components/icon/icons/files.component.js +2 -2
- package/components/icon/icons/files.js +1 -1
- package/components/icon/icons/filter.component.js +2 -2
- package/components/icon/icons/filter.js +1 -1
- package/components/icon/icons/flag.component.js +2 -2
- package/components/icon/icons/flag.js +1 -1
- package/components/icon/icons/floppy-disk.component.js +2 -2
- package/components/icon/icons/floppy-disk.js +1 -1
- package/components/icon/icons/focus-square.component.js +2 -2
- package/components/icon/icons/focus-square.js +1 -1
- package/components/icon/icons/focus.component.js +2 -2
- package/components/icon/icons/focus.js +1 -1
- package/components/icon/icons/folder-add-right.component.js +2 -2
- package/components/icon/icons/folder-add-right.js +1 -1
- package/components/icon/icons/folder-paper.component.js +2 -2
- package/components/icon/icons/folder-paper.js +1 -1
- package/components/icon/icons/folder-upload.component.js +2 -2
- package/components/icon/icons/folder-upload.js +1 -1
- package/components/icon/icons/folder.component.js +2 -2
- package/components/icon/icons/folder.js +1 -1
- package/components/icon/icons/globus.component.js +2 -2
- package/components/icon/icons/globus.js +1 -1
- package/components/icon/icons/graduate-cap.component.js +2 -2
- package/components/icon/icons/graduate-cap.js +1 -1
- package/components/icon/icons/group.component.js +2 -2
- package/components/icon/icons/group.js +1 -1
- package/components/icon/icons/growth.component.js +2 -2
- package/components/icon/icons/growth.js +1 -1
- package/components/icon/icons/headphones.component.js +2 -2
- package/components/icon/icons/headphones.js +1 -1
- package/components/icon/icons/heart-beat.component.js +2 -2
- package/components/icon/icons/heart-beat.js +1 -1
- package/components/icon/icons/heart.component.js +2 -2
- package/components/icon/icons/heart.js +1 -1
- package/components/icon/icons/history.component.js +2 -2
- package/components/icon/icons/history.js +1 -1
- package/components/icon/icons/home-energy-one.component.js +2 -2
- package/components/icon/icons/home-energy-one.js +1 -1
- package/components/icon/icons/home-energy-two.component.js +2 -2
- package/components/icon/icons/home-energy-two.js +1 -1
- package/components/icon/icons/home-open.component.js +2 -2
- package/components/icon/icons/home-open.js +1 -1
- package/components/icon/icons/home-roof.component.js +2 -2
- package/components/icon/icons/home-roof.js +1 -1
- package/components/icon/icons/horizontal-alignment-bottom.component.js +2 -2
- package/components/icon/icons/horizontal-alignment-bottom.js +1 -1
- package/components/icon/icons/images.component.js +2 -2
- package/components/icon/icons/images.js +1 -1
- package/components/icon/icons/index.js +259 -259
- package/components/icon/icons/invite.component.js +2 -2
- package/components/icon/icons/invite.js +1 -1
- package/components/icon/icons/knife-spoon.component.js +2 -2
- package/components/icon/icons/knife-spoon.js +1 -1
- package/components/icon/icons/law.component.js +2 -2
- package/components/icon/icons/law.js +1 -1
- package/components/icon/icons/light-bulb-simple.component.js +2 -2
- package/components/icon/icons/light-bulb-simple.js +1 -1
- package/components/icon/icons/light-bulb.component.js +2 -2
- package/components/icon/icons/light-bulb.js +1 -1
- package/components/icon/icons/lightning.component.js +2 -2
- package/components/icon/icons/lightning.js +1 -1
- package/components/icon/icons/line-chart-four.component.js +2 -2
- package/components/icon/icons/line-chart-four.js +1 -1
- package/components/icon/icons/line-chart-one.component.js +2 -2
- package/components/icon/icons/line-chart-one.js +1 -1
- package/components/icon/icons/line-chart-three.component.js +2 -2
- package/components/icon/icons/line-chart-three.js +1 -1
- package/components/icon/icons/line-chart-two.component.js +2 -2
- package/components/icon/icons/line-chart-two.js +1 -1
- package/components/icon/icons/lock.component.js +2 -2
- package/components/icon/icons/lock.js +1 -1
- package/components/icon/icons/macbook-air.component.js +2 -2
- package/components/icon/icons/macbook-air.js +1 -1
- package/components/icon/icons/magnifying-glass.component.js +2 -2
- package/components/icon/icons/magnifying-glass.js +1 -1
- package/components/icon/icons/maintenance.component.js +2 -2
- package/components/icon/icons/maintenance.js +1 -1
- package/components/icon/icons/map-pin.component.js +2 -2
- package/components/icon/icons/map-pin.js +1 -1
- package/components/icon/icons/megaphone.component.js +2 -2
- package/components/icon/icons/megaphone.js +1 -1
- package/components/icon/icons/minus-large.component.js +2 -2
- package/components/icon/icons/minus-large.js +1 -1
- package/components/icon/icons/minus-small.component.js +2 -2
- package/components/icon/icons/minus-small.js +1 -1
- package/components/icon/icons/money-hand.component.js +2 -2
- package/components/icon/icons/money-hand.js +1 -1
- package/components/icon/icons/moneybag.component.js +2 -2
- package/components/icon/icons/moneybag.js +1 -1
- package/components/icon/icons/moon.component.js +2 -2
- package/components/icon/icons/moon.js +1 -1
- package/components/icon/icons/mute.component.js +2 -2
- package/components/icon/icons/mute.js +1 -1
- package/components/icon/icons/page-text.component.js +2 -2
- package/components/icon/icons/page-text.js +1 -1
- package/components/icon/icons/paperclip.component.js +2 -2
- package/components/icon/icons/paperclip.js +1 -1
- package/components/icon/icons/pause.component.js +2 -2
- package/components/icon/icons/pause.js +1 -1
- package/components/icon/icons/pencel-line.component.js +2 -2
- package/components/icon/icons/pencel-line.js +1 -1
- package/components/icon/icons/pencil-sparkle.component.js +2 -2
- package/components/icon/icons/pencil-sparkle.js +1 -1
- package/components/icon/icons/pencil-wave.component.js +2 -2
- package/components/icon/icons/pencil-wave.js +1 -1
- package/components/icon/icons/people-add.component.js +2 -2
- package/components/icon/icons/people-add.js +1 -1
- package/components/icon/icons/people-added.component.js +2 -2
- package/components/icon/icons/people-added.js +1 -1
- package/components/icon/icons/people-circle.component.js +2 -2
- package/components/icon/icons/people-circle.js +1 -1
- package/components/icon/icons/people-copy.component.js +2 -2
- package/components/icon/icons/people-copy.js +1 -1
- package/components/icon/icons/people-profile.component.js +2 -2
- package/components/icon/icons/people-profile.js +1 -1
- package/components/icon/icons/people-remove.component.js +2 -2
- package/components/icon/icons/people-remove.js +1 -1
- package/components/icon/icons/people.component.js +2 -2
- package/components/icon/icons/people.js +1 -1
- package/components/icon/icons/percent.component.js +2 -2
- package/components/icon/icons/percent.js +1 -1
- package/components/icon/icons/phone-dynamic-island.component.js +2 -2
- package/components/icon/icons/phone-dynamic-island.js +1 -1
- package/components/icon/icons/phone.component.js +2 -2
- package/components/icon/icons/phone.js +1 -1
- package/components/icon/icons/pie-chart.component.js +2 -2
- package/components/icon/icons/pie-chart.js +1 -1
- package/components/icon/icons/piggy-bank.component.js +2 -2
- package/components/icon/icons/piggy-bank.js +1 -1
- package/components/icon/icons/pin.component.js +2 -2
- package/components/icon/icons/pin.js +1 -1
- package/components/icon/icons/pinch.component.js +2 -2
- package/components/icon/icons/pinch.js +1 -1
- package/components/icon/icons/play-circle.component.js +2 -2
- package/components/icon/icons/play-circle.js +1 -1
- package/components/icon/icons/play.component.js +2 -2
- package/components/icon/icons/play.js +1 -1
- package/components/icon/icons/plus-large.component.js +2 -2
- package/components/icon/icons/plus-large.js +1 -1
- package/components/icon/icons/plus-small.component.js +2 -2
- package/components/icon/icons/plus-small.js +1 -1
- package/components/icon/icons/poop.component.js +2 -2
- package/components/icon/icons/poop.js +1 -1
- package/components/icon/icons/power-plant.component.js +2 -2
- package/components/icon/icons/power-plant.js +1 -1
- package/components/icon/icons/printer.component.js +2 -2
- package/components/icon/icons/printer.js +1 -1
- package/components/icon/icons/pure.js +259 -259
- package/components/icon/icons/push.component.js +2 -2
- package/components/icon/icons/push.js +1 -1
- package/components/icon/icons/qr-code.component.js +2 -2
- package/components/icon/icons/qr-code.js +1 -1
- package/components/icon/icons/rainy.component.js +2 -2
- package/components/icon/icons/rainy.js +1 -1
- package/components/icon/icons/raising-hand.component.js +2 -2
- package/components/icon/icons/raising-hand.js +1 -1
- package/components/icon/icons/reading-list.component.js +2 -2
- package/components/icon/icons/reading-list.js +1 -1
- package/components/icon/icons/receipt-bill.component.js +2 -2
- package/components/icon/icons/receipt-bill.js +1 -1
- package/components/icon/icons/receiption-bell.component.js +2 -2
- package/components/icon/icons/receiption-bell.js +1 -1
- package/components/icon/icons/robot.component.js +2 -2
- package/components/icon/icons/robot.js +1 -1
- package/components/icon/icons/rocket.component.js +2 -2
- package/components/icon/icons/rocket.js +1 -1
- package/components/icon/icons/school.component.js +2 -2
- package/components/icon/icons/school.js +1 -1
- package/components/icon/icons/scissors.component.js +2 -2
- package/components/icon/icons/scissors.js +1 -1
- package/components/icon/icons/search-menu.component.js +2 -2
- package/components/icon/icons/search-menu.js +1 -1
- package/components/icon/icons/seb.component.js +2 -2
- package/components/icon/icons/seb.js +1 -1
- package/components/icon/icons/settings-gear.component.js +2 -2
- package/components/icon/icons/settings-gear.js +1 -1
- package/components/icon/icons/settings-slider-hor.component.js +2 -2
- package/components/icon/icons/settings-slider-hor.js +1 -1
- package/components/icon/icons/settings-slider-three.component.js +2 -2
- package/components/icon/icons/settings-slider-three.js +1 -1
- package/components/icon/icons/settings-slider-ver.component.js +2 -2
- package/components/icon/icons/settings-slider-ver.js +1 -1
- package/components/icon/icons/share.component.js +2 -2
- package/components/icon/icons/share.js +1 -1
- package/components/icon/icons/shopping-bag.component.js +2 -2
- package/components/icon/icons/shopping-bag.js +1 -1
- package/components/icon/icons/smartwatch.component.js +2 -2
- package/components/icon/icons/smartwatch.js +1 -1
- package/components/icon/icons/solar-panel.component.js +2 -2
- package/components/icon/icons/solar-panel.js +1 -1
- package/components/icon/icons/solar.component.js +2 -2
- package/components/icon/icons/solar.js +1 -1
- package/components/icon/icons/square-arrow-top-right.component.js +2 -2
- package/components/icon/icons/square-arrow-top-right.js +1 -1
- package/components/icon/icons/square-behind-square.component.js +2 -2
- package/components/icon/icons/square-behind-square.js +1 -1
- package/components/icon/icons/square-check.component.js +2 -2
- package/components/icon/icons/square-check.js +1 -1
- package/components/icon/icons/square-grid-circle.component.js +2 -2
- package/components/icon/icons/square-grid-circle.js +1 -1
- package/components/icon/icons/square-info.component.js +2 -2
- package/components/icon/icons/square-info.js +1 -1
- package/components/icon/icons/square-minus.component.js +2 -2
- package/components/icon/icons/square-minus.js +1 -1
- package/components/icon/icons/square-placeholder.component.js +2 -2
- package/components/icon/icons/square-placeholder.js +1 -1
- package/components/icon/icons/square-plus.component.js +2 -2
- package/components/icon/icons/square-plus.js +1 -1
- package/components/icon/icons/square-x.component.js +2 -2
- package/components/icon/icons/square-x.js +1 -1
- package/components/icon/icons/star.component.js +2 -2
- package/components/icon/icons/star.js +1 -1
- package/components/icon/icons/store.component.js +2 -2
- package/components/icon/icons/store.js +1 -1
- package/components/icon/icons/suitcase-work.component.js +2 -2
- package/components/icon/icons/suitcase-work.js +1 -1
- package/components/icon/icons/sun.component.js +2 -2
- package/components/icon/icons/sun.js +1 -1
- package/components/icon/icons/tag.component.js +2 -2
- package/components/icon/icons/tag.js +1 -1
- package/components/icon/icons/television.component.js +2 -2
- package/components/icon/icons/television.js +1 -1
- package/components/icon/icons/tennis.component.js +2 -2
- package/components/icon/icons/tennis.js +1 -1
- package/components/icon/icons/text-edit.component.js +2 -2
- package/components/icon/icons/text-edit.js +1 -1
- package/components/icon/icons/thermostat.component.js +2 -2
- package/components/icon/icons/thermostat.js +1 -1
- package/components/icon/icons/thumbs-down.component.js +2 -2
- package/components/icon/icons/thumbs-down.js +1 -1
- package/components/icon/icons/thumbs-up.component.js +2 -2
- package/components/icon/icons/thumbs-up.js +1 -1
- package/components/icon/icons/todos.component.js +2 -2
- package/components/icon/icons/todos.js +1 -1
- package/components/icon/icons/trading-view-candles.component.js +2 -2
- package/components/icon/icons/trading-view-candles.js +1 -1
- package/components/icon/icons/trash-can.component.js +2 -2
- package/components/icon/icons/trash-can.js +1 -1
- package/components/icon/icons/tree.component.js +2 -2
- package/components/icon/icons/tree.js +1 -1
- package/components/icon/icons/trending-four.component.js +2 -2
- package/components/icon/icons/trending-four.js +1 -1
- package/components/icon/icons/trending-one.component.js +2 -2
- package/components/icon/icons/trending-one.js +1 -1
- package/components/icon/icons/trending-three.component.js +2 -2
- package/components/icon/icons/trending-three.js +1 -1
- package/components/icon/icons/trending-two.component.js +2 -2
- package/components/icon/icons/trending-two.js +1 -1
- package/components/icon/icons/triangle-exclamation.component.js +2 -2
- package/components/icon/icons/triangle-exclamation.js +1 -1
- package/components/icon/icons/truck.component.js +2 -2
- package/components/icon/icons/truck.js +1 -1
- package/components/icon/icons/umbrella-security.component.js +2 -2
- package/components/icon/icons/umbrella-security.js +1 -1
- package/components/icon/icons/unlocked.component.js +2 -2
- package/components/icon/icons/unlocked.js +1 -1
- package/components/icon/icons/vertical-alignment-right.component.js +2 -2
- package/components/icon/icons/vertical-alignment-right.js +1 -1
- package/components/icon/icons/volume-full.component.js +2 -2
- package/components/icon/icons/volume-full.js +1 -1
- package/components/icon/icons/volume-half.component.js +2 -2
- package/components/icon/icons/volume-half.js +1 -1
- package/components/icon/icons/volume-off.component.js +2 -2
- package/components/icon/icons/volume-off.js +1 -1
- package/components/icon/icons/wallet.component.js +2 -2
- package/components/icon/icons/wallet.js +1 -1
- package/components/icon/icons/warning-sign.component.js +2 -2
- package/components/icon/icons/warning-sign.js +1 -1
- package/components/icon/icons/zap.component.js +2 -2
- package/components/icon/icons/zap.js +1 -1
- package/components/icon/icons/zoom-in.component.js +2 -2
- package/components/icon/icons/zoom-in.js +1 -1
- package/components/icon/icons/zoom-out.component.js +2 -2
- package/components/icon/icons/zoom-out.js +1 -1
- package/components/icon/index.js +1 -1
- package/components/img/img.component.js +4 -4
- package/components/img/img.js +1 -1
- package/components/img/index.js +1 -1
- package/components/index.js +36 -36
- package/components/input/index.js +1 -1
- package/components/input/input.component.js +10 -10
- package/components/input/input.js +1 -1
- package/components/link/index.js +1 -1
- package/components/link/link.component.js +4 -4
- package/components/link/link.js +1 -1
- package/components/link/link.styles.js +1 -0
- package/components/mask/index.js +1 -1
- package/components/mask/mask.component.js +3 -3
- package/components/mask/mask.js +1 -1
- package/components/menu-button/index.js +1 -1
- package/components/menu-button/menu-button.component.js +3 -3
- package/components/menu-button/menu-button.js +1 -1
- package/components/popover/backdrop.component.js +2 -2
- package/components/popover/backdrop.js +1 -1
- package/components/popover/index.js +2 -2
- package/components/popover/popover.component.js +5 -5
- package/components/popover/popover.js +1 -1
- package/components/popover/popover.trans.styles.js +1 -1
- package/components/popover/popover.trans.styles.scss.js +2 -4
- package/components/pure.js +37 -37
- package/components/radio/index.js +2 -2
- package/components/radio/radio-group/radio-group.component.js +6 -6
- package/components/radio/radio-group/radio-group.js +1 -1
- package/components/radio/radio.component.js +4 -4
- package/components/radio/radio.js +1 -1
- package/components/rich-text/index.js +1 -1
- package/components/rich-text/rich-text.component.js +4 -4
- package/components/rich-text/rich-text.js +1 -1
- package/components/segmented-control/index.js +1 -1
- package/components/segmented-control/segment/index.js +1 -1
- package/components/segmented-control/segment/segment.component.js +4 -4
- package/components/segmented-control/segment/segment.js +1 -1
- package/components/segmented-control/segment/segment.style.css.js +2 -4
- package/components/segmented-control/segment/segment.trans.styles.js +1 -1
- package/components/segmented-control/segment/segment.trans.styles.scss.js +2 -4
- package/components/segmented-control/segmented-control.component.js +9 -9
- package/components/segmented-control/segmented-control.js +1 -1
- package/components/segmented-control/segmented-control.style.css.js +2 -4
- package/components/segmented-control/segmented-control.trans.styles.css.js +2 -4
- package/components/segmented-control/segmented-control.trans.styles.js +1 -1
- package/components/select/index.js +1 -1
- package/components/select/select.component.js +9 -9
- package/components/select/select.js +1 -1
- package/components/select/select.trans.styles.js +1 -1
- package/components/select/select.trans.styles.scss.js +2 -4
- package/components/signal/index.js +1 -1
- package/components/signal/signal.component.js +3 -3
- package/components/signal/signal.js +1 -1
- package/components/spacer/index.js +1 -1
- package/components/spacer/spacer.component.js +3 -3
- package/components/spacer/spacer.js +1 -1
- package/components/spinner/index.js +1 -1
- package/components/spinner/spinner.component.js +4 -4
- package/components/spinner/spinner.js +1 -1
- package/components/text/index.js +1 -1
- package/components/text/text.component.js +3 -3
- package/components/text/text.js +1 -1
- package/components/textarea/index.js +1 -1
- package/components/textarea/textarea.component.js +12 -12
- package/components/textarea/textarea.js +1 -1
- package/components/theme/chlorophyll-tokens.scss.js +2 -4
- package/components/theme/index.js +1 -1
- package/components/theme/theme.component.js +4 -4
- package/components/theme/theme.js +1 -1
- package/components/theme/theme.trans.styles.js +1 -1
- package/components/video/index.js +1 -1
- package/components/video/video.component.js +4 -4
- package/components/video/video.js +1 -1
- package/gds-element.js +1 -1
- package/generated/react/backdrop/index.js +2 -2
- package/generated/react/badge/index.js +2 -2
- package/generated/react/button/index.js +2 -2
- package/generated/react/calendar/index.js +2 -2
- package/generated/react/card/index.d.ts +1 -0
- package/generated/react/card/index.js +2 -2
- package/generated/react/coachmark/index.js +2 -2
- package/generated/react/container/index.d.ts +1 -0
- package/generated/react/container/index.js +2 -2
- package/generated/react/context-menu/index.js +2 -2
- package/generated/react/datepicker/index.js +2 -2
- package/generated/react/dialog/index.js +2 -2
- package/generated/react/div/index.d.ts +1 -0
- package/generated/react/div/index.js +2 -2
- package/generated/react/divider/index.js +2 -2
- package/generated/react/dropdown/index.js +2 -2
- package/generated/react/fab/index.js +2 -2
- package/generated/react/filter-chip/index.js +2 -2
- package/generated/react/filter-chips/index.js +2 -2
- package/generated/react/flex/index.d.ts +1 -0
- package/generated/react/flex/index.js +2 -2
- package/generated/react/form-control-footer/index.js +2 -2
- package/generated/react/form-control-header/index.js +2 -2
- package/generated/react/grid/index.d.ts +1 -0
- package/generated/react/grid/index.js +2 -2
- package/generated/react/grouped-list/index.js +2 -2
- package/generated/react/icons/icon/index.js +2 -2
- package/generated/react/icons/icon-airplane-up/index.js +2 -2
- package/generated/react/icons/icon-archive/index.js +2 -2
- package/generated/react/icons/icon-arrow/index.js +2 -2
- package/generated/react/icons/icon-arrow-box-left/index.js +2 -2
- package/generated/react/icons/icon-arrow-box-right/index.js +2 -2
- package/generated/react/icons/icon-arrow-down/index.js +2 -2
- package/generated/react/icons/icon-arrow-inbox/index.js +2 -2
- package/generated/react/icons/icon-arrow-left/index.js +2 -2
- package/generated/react/icons/icon-arrow-left-right/index.js +2 -2
- package/generated/react/icons/icon-arrow-out-of-box/index.js +2 -2
- package/generated/react/icons/icon-arrow-right/index.js +2 -2
- package/generated/react/icons/icon-arrow-right-circle/index.js +2 -2
- package/generated/react/icons/icon-arrow-right-down-circle/index.js +2 -2
- package/generated/react/icons/icon-arrow-right-up-circle/index.js +2 -2
- package/generated/react/icons/icon-arrow-rotate-clockwise/index.js +2 -2
- package/generated/react/icons/icon-arrow-rotate-counter-clockwise/index.js +2 -2
- package/generated/react/icons/icon-arrow-rotate-left-right/index.js +2 -2
- package/generated/react/icons/icon-arrow-rotate-right-left/index.js +2 -2
- package/generated/react/icons/icon-arrow-share-left/index.js +2 -2
- package/generated/react/icons/icon-arrow-share-right/index.js +2 -2
- package/generated/react/icons/icon-arrow-up/index.js +2 -2
- package/generated/react/icons/icon-arrow-wall-down/index.js +2 -2
- package/generated/react/icons/icon-arrow-wall-left/index.js +2 -2
- package/generated/react/icons/icon-arrow-wall-right/index.js +2 -2
- package/generated/react/icons/icon-arrow-wall-up/index.js +2 -2
- package/generated/react/icons/icon-arrows-repeat/index.js +2 -2
- package/generated/react/icons/icon-at/index.js +2 -2
- package/generated/react/icons/icon-back/index.js +2 -2
- package/generated/react/icons/icon-bag/index.js +2 -2
- package/generated/react/icons/icon-bank/index.js +2 -2
- package/generated/react/icons/icon-banknote/index.js +2 -2
- package/generated/react/icons/icon-barcode/index.js +2 -2
- package/generated/react/icons/icon-bars-three/index.js +2 -2
- package/generated/react/icons/icon-bars-two/index.js +2 -2
- package/generated/react/icons/icon-battery-loading/index.js +2 -2
- package/generated/react/icons/icon-bell/index.js +2 -2
- package/generated/react/icons/icon-block/index.js +2 -2
- package/generated/react/icons/icon-book/index.js +2 -2
- package/generated/react/icons/icon-bookmark/index.js +2 -2
- package/generated/react/icons/icon-bookmark-check/index.js +2 -2
- package/generated/react/icons/icon-bookmark-delete/index.js +2 -2
- package/generated/react/icons/icon-bookmark-plus/index.js +2 -2
- package/generated/react/icons/icon-bookmark-remove/index.js +2 -2
- package/generated/react/icons/icon-books/index.js +2 -2
- package/generated/react/icons/icon-brand-app-store/index.js +2 -2
- package/generated/react/icons/icon-brand-apple-music/index.js +2 -2
- package/generated/react/icons/icon-brand-bankid/index.js +2 -2
- package/generated/react/icons/icon-brand-chrome/index.js +2 -2
- package/generated/react/icons/icon-brand-facebook/index.js +2 -2
- package/generated/react/icons/icon-brand-figma/index.js +2 -2
- package/generated/react/icons/icon-brand-github/index.js +2 -2
- package/generated/react/icons/icon-brand-green/index.js +2 -2
- package/generated/react/icons/icon-brand-instagram/index.js +2 -2
- package/generated/react/icons/icon-brand-linkedin/index.js +2 -2
- package/generated/react/icons/icon-brand-play-store/index.js +2 -2
- package/generated/react/icons/icon-brand-rss-feed/index.js +2 -2
- package/generated/react/icons/icon-brand-seb/index.js +2 -2
- package/generated/react/icons/icon-brand-spotify/index.js +2 -2
- package/generated/react/icons/icon-brand-x/index.js +2 -2
- package/generated/react/icons/icon-brush/index.js +2 -2
- package/generated/react/icons/icon-bubble/index.js +2 -2
- package/generated/react/icons/icon-bubble-annotation/index.js +2 -2
- package/generated/react/icons/icon-bubble-dots/index.js +2 -2
- package/generated/react/icons/icon-bubble-question/index.js +2 -2
- package/generated/react/icons/icon-bubble-quotes/index.js +2 -2
- package/generated/react/icons/icon-bubble-text/index.js +2 -2
- package/generated/react/icons/icon-bubble-wide-annotation/index.js +2 -2
- package/generated/react/icons/icon-bubbles/index.js +2 -2
- package/generated/react/icons/icon-buildings/index.js +2 -2
- package/generated/react/icons/icon-cain-link/index.js +2 -2
- package/generated/react/icons/icon-calculator/index.js +2 -2
- package/generated/react/icons/icon-calendar/index.js +2 -2
- package/generated/react/icons/icon-calendar-check/index.js +2 -2
- package/generated/react/icons/icon-calender-add/index.js +2 -2
- package/generated/react/icons/icon-call/index.js +2 -2
- package/generated/react/icons/icon-car/index.js +2 -2
- package/generated/react/icons/icon-charging-station/index.js +2 -2
- package/generated/react/icons/icon-chart-one/index.js +2 -2
- package/generated/react/icons/icon-chart-presentation/index.js +2 -2
- package/generated/react/icons/icon-chart-two/index.js +2 -2
- package/generated/react/icons/icon-checklist/index.js +2 -2
- package/generated/react/icons/icon-checkmark/index.js +2 -2
- package/generated/react/icons/icon-chevron-bottom/index.js +2 -2
- package/generated/react/icons/icon-chevron-double-down/index.js +2 -2
- package/generated/react/icons/icon-chevron-double-left/index.js +2 -2
- package/generated/react/icons/icon-chevron-double-right/index.js +2 -2
- package/generated/react/icons/icon-chevron-double-up/index.js +2 -2
- package/generated/react/icons/icon-chevron-grabber-vertical/index.js +2 -2
- package/generated/react/icons/icon-chevron-left/index.js +2 -2
- package/generated/react/icons/icon-chevron-right/index.js +2 -2
- package/generated/react/icons/icon-chevron-top/index.js +2 -2
- package/generated/react/icons/icon-circle-check/index.js +2 -2
- package/generated/react/icons/icon-circle-info/index.js +2 -2
- package/generated/react/icons/icon-circle-minus/index.js +2 -2
- package/generated/react/icons/icon-circle-placeholder-on/index.js +2 -2
- package/generated/react/icons/icon-circle-plus/index.js +2 -2
- package/generated/react/icons/icon-circle-questionmark/index.js +2 -2
- package/generated/react/icons/icon-circle-x/index.js +2 -2
- package/generated/react/icons/icon-circles-three/index.js +2 -2
- package/generated/react/icons/icon-clock/index.js +2 -2
- package/generated/react/icons/icon-cloud-upload/index.js +2 -2
- package/generated/react/icons/icon-cloudy-sun/index.js +2 -2
- package/generated/react/icons/icon-compass-round/index.js +2 -2
- package/generated/react/icons/icon-credit-card/index.js +2 -2
- package/generated/react/icons/icon-cross-large/index.js +2 -2
- package/generated/react/icons/icon-cross-small/index.js +2 -2
- package/generated/react/icons/icon-cup-hot/index.js +2 -2
- package/generated/react/icons/icon-devices/index.js +2 -2
- package/generated/react/icons/icon-direction/index.js +2 -2
- package/generated/react/icons/icon-dollar/index.js +2 -2
- package/generated/react/icons/icon-dot-grid-one-horizontal/index.js +2 -2
- package/generated/react/icons/icon-dot-grid-one-vertical/index.js +2 -2
- package/generated/react/icons/icon-dot-grid-three/index.js +2 -2
- package/generated/react/icons/icon-dot-grid-two/index.js +2 -2
- package/generated/react/icons/icon-email/index.js +2 -2
- package/generated/react/icons/icon-euro/index.js +2 -2
- package/generated/react/icons/icon-eye-open/index.js +2 -2
- package/generated/react/icons/icon-eye-slash/index.js +2 -2
- package/generated/react/icons/icon-fashion/index.js +2 -2
- package/generated/react/icons/icon-fast-forward/index.js +2 -2
- package/generated/react/icons/icon-file-bend/index.js +2 -2
- package/generated/react/icons/icon-file-chart/index.js +2 -2
- package/generated/react/icons/icon-file-text/index.js +2 -2
- package/generated/react/icons/icon-files/index.js +2 -2
- package/generated/react/icons/icon-filter/index.js +2 -2
- package/generated/react/icons/icon-flag/index.js +2 -2
- package/generated/react/icons/icon-floppy-disk/index.js +2 -2
- package/generated/react/icons/icon-focus/index.js +2 -2
- package/generated/react/icons/icon-focus-square/index.js +2 -2
- package/generated/react/icons/icon-folder/index.js +2 -2
- package/generated/react/icons/icon-folder-add-right/index.js +2 -2
- package/generated/react/icons/icon-folder-paper/index.js +2 -2
- package/generated/react/icons/icon-folder-upload/index.js +2 -2
- package/generated/react/icons/icon-globus/index.js +2 -2
- package/generated/react/icons/icon-graduate-cap/index.js +2 -2
- package/generated/react/icons/icon-group/index.js +2 -2
- package/generated/react/icons/icon-growth/index.js +2 -2
- package/generated/react/icons/icon-headphones/index.js +2 -2
- package/generated/react/icons/icon-heart/index.js +2 -2
- package/generated/react/icons/icon-heart-beat/index.js +2 -2
- package/generated/react/icons/icon-history/index.js +2 -2
- package/generated/react/icons/icon-home-energy-one/index.js +2 -2
- package/generated/react/icons/icon-home-energy-two/index.js +2 -2
- package/generated/react/icons/icon-home-open/index.js +2 -2
- package/generated/react/icons/icon-home-roof/index.js +2 -2
- package/generated/react/icons/icon-horizontal-alignment-bottom/index.js +2 -2
- package/generated/react/icons/icon-images/index.js +2 -2
- package/generated/react/icons/icon-invite/index.js +2 -2
- package/generated/react/icons/icon-knife-spoon/index.js +2 -2
- package/generated/react/icons/icon-law/index.js +2 -2
- package/generated/react/icons/icon-light-bulb/index.js +2 -2
- package/generated/react/icons/icon-light-bulb-simple/index.js +2 -2
- package/generated/react/icons/icon-lightning/index.js +2 -2
- package/generated/react/icons/icon-line-chart-four/index.js +2 -2
- package/generated/react/icons/icon-line-chart-one/index.js +2 -2
- package/generated/react/icons/icon-line-chart-three/index.js +2 -2
- package/generated/react/icons/icon-line-chart-two/index.js +2 -2
- package/generated/react/icons/icon-lock/index.js +2 -2
- package/generated/react/icons/icon-macbook-air/index.js +2 -2
- package/generated/react/icons/icon-magnifying-glass/index.js +2 -2
- package/generated/react/icons/icon-maintenance/index.js +2 -2
- package/generated/react/icons/icon-map-pin/index.js +2 -2
- package/generated/react/icons/icon-megaphone/index.js +2 -2
- package/generated/react/icons/icon-minus-large/index.js +2 -2
- package/generated/react/icons/icon-minus-small/index.js +2 -2
- package/generated/react/icons/icon-money-hand/index.js +2 -2
- package/generated/react/icons/icon-moneybag/index.js +2 -2
- package/generated/react/icons/icon-moon/index.js +2 -2
- package/generated/react/icons/icon-mute/index.js +2 -2
- package/generated/react/icons/icon-page-text/index.js +2 -2
- package/generated/react/icons/icon-paperclip/index.js +2 -2
- package/generated/react/icons/icon-pause/index.js +2 -2
- package/generated/react/icons/icon-pencel-line/index.js +2 -2
- package/generated/react/icons/icon-pencil-sparkle/index.js +2 -2
- package/generated/react/icons/icon-pencil-wave/index.js +2 -2
- package/generated/react/icons/icon-people/index.js +2 -2
- package/generated/react/icons/icon-people-add/index.js +2 -2
- package/generated/react/icons/icon-people-added/index.js +2 -2
- package/generated/react/icons/icon-people-circle/index.js +2 -2
- package/generated/react/icons/icon-people-copy/index.js +2 -2
- package/generated/react/icons/icon-people-profile/index.js +2 -2
- package/generated/react/icons/icon-people-remove/index.js +2 -2
- package/generated/react/icons/icon-percent/index.js +2 -2
- package/generated/react/icons/icon-phone/index.js +2 -2
- package/generated/react/icons/icon-phone-dynamic-island/index.js +2 -2
- package/generated/react/icons/icon-pie-chart/index.js +2 -2
- package/generated/react/icons/icon-piggy-bank/index.js +2 -2
- package/generated/react/icons/icon-pin/index.js +2 -2
- package/generated/react/icons/icon-pinch/index.js +2 -2
- package/generated/react/icons/icon-play/index.js +2 -2
- package/generated/react/icons/icon-play-circle/index.js +2 -2
- package/generated/react/icons/icon-plus-large/index.js +2 -2
- package/generated/react/icons/icon-plus-small/index.js +2 -2
- package/generated/react/icons/icon-poop/index.js +2 -2
- package/generated/react/icons/icon-power-plant/index.js +2 -2
- package/generated/react/icons/icon-printer/index.js +2 -2
- package/generated/react/icons/icon-push/index.js +2 -2
- package/generated/react/icons/icon-qr-code/index.js +2 -2
- package/generated/react/icons/icon-rainy/index.js +2 -2
- package/generated/react/icons/icon-raising-hand/index.js +2 -2
- package/generated/react/icons/icon-reading-list/index.js +2 -2
- package/generated/react/icons/icon-receipt-bill/index.js +2 -2
- package/generated/react/icons/icon-receiption-bell/index.js +2 -2
- package/generated/react/icons/icon-robot/index.js +2 -2
- package/generated/react/icons/icon-rocket/index.js +2 -2
- package/generated/react/icons/icon-school/index.js +2 -2
- package/generated/react/icons/icon-scissors/index.js +2 -2
- package/generated/react/icons/icon-search-menu/index.js +2 -2
- package/generated/react/icons/icon-seb/index.js +2 -2
- package/generated/react/icons/icon-settings-gear/index.js +2 -2
- package/generated/react/icons/icon-settings-slider-hor/index.js +2 -2
- package/generated/react/icons/icon-settings-slider-three/index.js +2 -2
- package/generated/react/icons/icon-settings-slider-ver/index.js +2 -2
- package/generated/react/icons/icon-share/index.js +2 -2
- package/generated/react/icons/icon-shopping-bag/index.js +2 -2
- package/generated/react/icons/icon-smartwatch/index.js +2 -2
- package/generated/react/icons/icon-solar/index.js +2 -2
- package/generated/react/icons/icon-solar-panel/index.js +2 -2
- package/generated/react/icons/icon-square-arrow-top-right/index.js +2 -2
- package/generated/react/icons/icon-square-behind-square/index.js +2 -2
- package/generated/react/icons/icon-square-check/index.js +2 -2
- package/generated/react/icons/icon-square-grid-circle/index.js +2 -2
- package/generated/react/icons/icon-square-info/index.js +2 -2
- package/generated/react/icons/icon-square-minus/index.js +2 -2
- package/generated/react/icons/icon-square-placeholder/index.js +2 -2
- package/generated/react/icons/icon-square-plus/index.js +2 -2
- package/generated/react/icons/icon-square-x/index.js +2 -2
- package/generated/react/icons/icon-star/index.js +2 -2
- package/generated/react/icons/icon-store/index.js +2 -2
- package/generated/react/icons/icon-suitcase-work/index.js +2 -2
- package/generated/react/icons/icon-sun/index.js +2 -2
- package/generated/react/icons/icon-tag/index.js +2 -2
- package/generated/react/icons/icon-television/index.js +2 -2
- package/generated/react/icons/icon-tennis/index.js +2 -2
- package/generated/react/icons/icon-text-edit/index.js +2 -2
- package/generated/react/icons/icon-thermostat/index.js +2 -2
- package/generated/react/icons/icon-thumbs-down/index.js +2 -2
- package/generated/react/icons/icon-thumbs-up/index.js +2 -2
- package/generated/react/icons/icon-todos/index.js +2 -2
- package/generated/react/icons/icon-trading-view-candles/index.js +2 -2
- package/generated/react/icons/icon-trash-can/index.js +2 -2
- package/generated/react/icons/icon-tree/index.js +2 -2
- package/generated/react/icons/icon-trending-four/index.js +2 -2
- package/generated/react/icons/icon-trending-one/index.js +2 -2
- package/generated/react/icons/icon-trending-three/index.js +2 -2
- package/generated/react/icons/icon-trending-two/index.js +2 -2
- package/generated/react/icons/icon-triangle-exclamation/index.js +2 -2
- package/generated/react/icons/icon-truck/index.js +2 -2
- package/generated/react/icons/icon-umbrella-security/index.js +2 -2
- package/generated/react/icons/icon-unlocked/index.js +2 -2
- package/generated/react/icons/icon-vertical-alignment-right/index.js +2 -2
- package/generated/react/icons/icon-volume-full/index.js +2 -2
- package/generated/react/icons/icon-volume-half/index.js +2 -2
- package/generated/react/icons/icon-volume-off/index.js +2 -2
- package/generated/react/icons/icon-wallet/index.js +2 -2
- package/generated/react/icons/icon-warning-sign/index.js +2 -2
- package/generated/react/icons/icon-zap/index.js +2 -2
- package/generated/react/icons/icon-zoom-in/index.js +2 -2
- package/generated/react/icons/icon-zoom-out/index.js +2 -2
- package/generated/react/img/index.js +2 -2
- package/generated/react/index.d.ts +303 -303
- package/generated/react/index.js +303 -303
- package/generated/react/input/index.js +2 -2
- package/generated/react/link/index.js +2 -2
- package/generated/react/list-item/index.js +2 -2
- package/generated/react/mask/index.d.ts +1 -0
- package/generated/react/mask/index.js +2 -2
- package/generated/react/menu-button/index.js +2 -2
- package/generated/react/menu-item/index.js +2 -2
- package/generated/react/option/index.js +2 -2
- package/generated/react/popover/index.js +2 -2
- package/generated/react/radio/index.js +2 -2
- package/generated/react/radio-group/index.js +2 -2
- package/generated/react/rich-text/index.js +2 -2
- package/generated/react/segment/index.js +2 -2
- package/generated/react/segmented-control/index.js +2 -2
- package/generated/react/select/index.js +2 -2
- package/generated/react/signal/index.js +2 -2
- package/generated/react/spacer/index.js +2 -2
- package/generated/react/spinner/index.js +2 -2
- package/generated/react/text/index.d.ts +1 -0
- package/generated/react/text/index.js +2 -2
- package/generated/react/textarea/index.js +2 -2
- package/generated/react/theme/index.js +2 -2
- package/generated/react/video/index.js +2 -2
- package/index.js +2 -2
- package/localization.js +1 -1
- package/package.json +1 -1
- package/primitives/field-base/field-base.component.js +3 -3
- package/primitives/field-base/field-base.js +1 -1
- package/primitives/field-base/field-base.trans.styles.js +1 -1
- package/primitives/field-base/field-base.trans.styles.scss.js +2 -4
- package/primitives/field-base/index.js +1 -1
- package/primitives/form-control-footer/form-control-footer.component.js +4 -4
- package/primitives/form-control-footer/form-control-footer.js +1 -1
- package/primitives/form-control-footer/index.js +1 -1
- package/primitives/form-control-header/form-control-header.component.js +5 -5
- package/primitives/form-control-header/form-control-header.js +1 -1
- package/primitives/form-control-header/index.js +1 -1
- package/primitives/listbox/index.js +1 -1
- package/primitives/listbox/listbox.component.js +7 -7
- package/primitives/listbox/listbox.js +1 -1
- package/primitives/listbox/listbox.trans.styles.js +1 -1
- package/primitives/listbox/listbox.trans.styles.scss.js +2 -4
- package/primitives/listbox/option.component.js +6 -6
- package/primitives/listbox/option.js +1 -1
- package/primitives/listbox/option.trans.styles.scss.js +2 -4
- package/primitives/menu/index.js +1 -1
- package/primitives/menu/menu-heading.component.js +3 -3
- package/primitives/menu/menu-heading.js +1 -1
- package/primitives/menu/menu-heading.trans.styles.scss.js +2 -4
- package/primitives/menu/menu-item.component.js +4 -4
- package/primitives/menu/menu-item.js +1 -1
- package/primitives/menu/menu.component.js +6 -6
- package/primitives/menu/menu.js +1 -1
- package/primitives/ripple/index.js +1 -1
- package/primitives/ripple/ripple.component.js +2 -2
- package/primitives/ripple/ripple.js +1 -1
- package/primitives/ripple/ripple.styles.scss.js +2 -4
- package/primitives/selection-controls/index.js +1 -1
- package/primitives/selection-controls/selection-field-label.component.js +3 -3
- package/primitives/selection-controls/selection-field-label.js +1 -1
- package/scoping.js +1 -1
- package/tokens/dark.css.js +2 -4
- package/tokens/light.css.js +2 -4
- package/tokens/motion.css.js +2 -4
- package/tokens/shadow.css.js +2 -4
- package/tokens/size.css.js +2 -4
- package/tokens/text.css.js +2 -4
- package/tokens.style.js +1 -1
- package/transitional-styles.js +1 -1
- package/utils/decorators/index.js +3 -3
- package/utils/decorators/style-expression-property.js +1 -1
- package/utils/decorators/watch-media-query.js +1 -1
- package/utils/directives/index.js +1 -1
- package/utils/global-styles.js +2 -2
- package/utils/helpers/custom-element-scoping.js +1 -1
- package/utils/helpers/index.js +2 -2
- package/utils/helpers/style-expression-parser-tester.js +1 -1
- package/utils/localization/localization.js +9 -9
- package/utils/mixins/declarative-layout-mixins.js +2 -2
- package/utils/react.js +1 -1
- package/utils/transitional-styles/transitional-styles.js +2 -2
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
} from "../../chunks/chunk.QTSIPXV3.js";
|
|
6
6
|
var _renderLeadSlot, renderLeadSlot_fn, _renderMainSlot, renderMainSlot_fn, _handleSlotChange, handleSlotChange_fn, _renderTrailSlot, renderTrailSlot_fn;
|
|
7
7
|
import { property, state } from "lit/decorators.js";
|
|
8
|
-
import { GdsElement } from "../../gds-element";
|
|
9
|
-
import { html } from "../../scoping";
|
|
8
|
+
import { GdsElement } from "../../gds-element.js";
|
|
9
|
+
import { html } from "../../scoping.js";
|
|
10
10
|
import { tokens } from "../../tokens.style";
|
|
11
|
-
import { gdsCustomElement } from "../../utils/helpers/custom-element-scoping";
|
|
11
|
+
import { gdsCustomElement } from "../../utils/helpers/custom-element-scoping.js";
|
|
12
12
|
import {
|
|
13
13
|
withLayoutChildProps,
|
|
14
14
|
withMarginProps,
|
|
15
15
|
withSizeXProps
|
|
16
|
-
} from "../../utils/mixins/declarative-layout-mixins";
|
|
17
|
-
import { GdsFlex } from "../flex/flex.component";
|
|
16
|
+
} from "../../utils/mixins/declarative-layout-mixins.js";
|
|
17
|
+
import { GdsFlex } from "../flex/flex.component.js";
|
|
18
18
|
import BadgeCSS from "./badge.style";
|
|
19
19
|
let GdsBadge = class extends withSizeXProps(
|
|
20
20
|
withMarginProps(withLayoutChildProps(GdsElement))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./badge";
|
|
1
|
+
export * from "./badge.js";
|
|
@@ -11,19 +11,19 @@ import { classMap } from "lit/directives/class-map.js";
|
|
|
11
11
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
12
12
|
import { when } from "lit/directives/when.js";
|
|
13
13
|
import { literal, html as staticHtml } from "lit/static-html.js";
|
|
14
|
-
import { GdsRipple } from "../../primitives/ripple/ripple.component";
|
|
15
|
-
import { html as customElementHtml, gdsCustomElement } from "../../scoping";
|
|
14
|
+
import { GdsRipple } from "../../primitives/ripple/ripple.component.js";
|
|
15
|
+
import { html as customElementHtml, gdsCustomElement } from "../../scoping.js";
|
|
16
16
|
import { tokens } from "../../tokens.style";
|
|
17
|
-
import { TransitionalStyles } from "../../transitional-styles";
|
|
18
|
-
import { observeLightDOM } from "../../utils/decorators";
|
|
19
|
-
import { forwardAttributes } from "../../utils/directives";
|
|
20
|
-
import { stripWhitespace } from "../../utils/helpers/strip-white-space";
|
|
17
|
+
import { TransitionalStyles } from "../../transitional-styles.js";
|
|
18
|
+
import { observeLightDOM } from "../../utils/decorators/index.js";
|
|
19
|
+
import { forwardAttributes } from "../../utils/directives/index.js";
|
|
20
|
+
import { stripWhitespace } from "../../utils/helpers/strip-white-space.js";
|
|
21
21
|
import {
|
|
22
22
|
withLayoutChildProps,
|
|
23
23
|
withMarginProps,
|
|
24
24
|
withSizeXProps
|
|
25
|
-
} from "../../utils/mixins/declarative-layout-mixins";
|
|
26
|
-
import { GdsFormControlElement } from "../form/form-control";
|
|
25
|
+
} from "../../utils/mixins/declarative-layout-mixins.js";
|
|
26
|
+
import { GdsFormControlElement } from "../form/form-control.js";
|
|
27
27
|
import style from "./button.style.css.js";
|
|
28
28
|
const ariaForwards = ["aria-label", "aria-haspopup", "aria-expanded"];
|
|
29
29
|
const html = stripWhitespace(customElementHtml);
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default styles;
|
|
4
|
-
|
|
1
|
+
const styles = "@layer tokens, core, a11y, ranks, sizes, variants, disabled;\n\n@layer a11y {\n @media (prefers-reduced-motion: reduce) {\n .button {\n transition: none;\n }\n }\n}\n\n@layer core {\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n\n .button {\n --_block-size: var(--gds-space-3xl);\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n border: none;\n cursor: pointer;\n block-size: var(--_block-size);\n background-color: var(--gds-color-l3-background-primary);\n color: var(--gds-color-l3-content-primary);\n border-radius: var(--gds-space-max);\n font-family: inherit;\n font-size: var(--gds-text-size-detail-m);\n line-height: var(--gds-text-line-height-detail-m);\n font-weight: var(--gds-text-weight-book);\n gap: var(--gds-space-s);\n outline-color: transparent;\n outline-offset: var(--gds-space-3xs);\n outline-style: solid;\n outline-width: var(--gds-space-3xs);\n padding-block: var(--gds-space-s);\n padding-inline: var(--gds-space-l);\n position: relative;\n text-decoration: none;\n transition-property: color, border-colorm, background;\n transition-duration: 0.2s;\n flex: 1;\n\n &:focus {\n outline-color: var(--gds-color-l3-content-tertiary);\n\n &:not(:focus-visible) {\n outline-color: transparent;\n }\n }\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-primary),\n var(--gds-color-l3-states-dark-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-primary),\n var(--gds-color-l3-states-dark-pressed)\n );\n }\n\n &:not(.circle) slot:not([name]) {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n }\n}\n\n/* High specificity */\n.button.circle {\n aspect-ratio: 1 / 1;\n padding: 0;\n min-block-size: var(--_block-size);\n min-inline-size: var(--_block-size);\n}\n\n.button:disabled {\n pointer-events: none;\n background-color: var(--gds-color-l3-background-disabled);\n color: var(--gds-color-l3-content-disabled);\n}\n\n@layer ranks {\n :host([rank*='secondary']) .button {\n background-color: var(--gds-color-l3-background-secondary);\n color: var(--gds-color-l3-content-tertiary);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-secondary),\n var(--gds-color-l3-states-light-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-secondary),\n var(--gds-color-l3-states-light-pressed)\n );\n }\n }\n\n :host([rank*='tertiary']) .button {\n background-color: transparent;\n color: var(--gds-color-l3-content-tertiary);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-color-l3-states-light-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-color-l3-states-light-pressed)\n );\n }\n }\n}\n\n@layer sizes {\n :host([size='xs']) .button {\n --_block-size: var(--gds-space-l);\n font-size: var(--gds-text-size-detail-s);\n line-height: var(--gds-text-line-height-detail-s);\n padding-inline: var(--gds-space-m);\n }\n\n :host([size='small']) .button {\n --_block-size: var(--gds-space-xl);\n font-size: var(--gds-text-size-detail-s);\n line-height: var(--gds-text-line-height-detail-s);\n padding-inline: var(--gds-space-m);\n }\n\n :host([size='medium']) .button {\n --_block-size: var(--gds-space-2xl);\n font-size: var(--gds-text-size-detail-m);\n line-height: var(--gds-text-line-height-detail-m);\n }\n}\n\n@layer variants {\n .positive {\n background-color: var(--gds-color-l3-background-positive);\n\n &:focus {\n outline-color: var(--gds-color-l3-content-positive);\n\n &:not(:focus-visible) {\n outline-color: transparent;\n }\n }\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-positive),\n var(--gds-color-l3-states-dark-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-positive),\n var(--gds-color-l3-states-dark-pressed)\n );\n }\n\n &.secondary {\n background-color: var(--gds-color-l3-background-positive-secondary);\n color: var(--gds-color-l3-content-positive);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-positive-secondary),\n var(--gds-color-l3-states-positive-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-positive-secondary),\n var(--gds-color-l3-states-positive-pressed)\n );\n }\n }\n\n &.tertiary {\n background-color: transparent;\n color: var(--gds-color-l3-content-positive);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-color-l3-states-positive-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-color-l3-states-positive-pressed)\n );\n }\n }\n }\n\n .negative {\n background-color: var(--gds-color-l3-background-negative);\n\n &:focus {\n outline-color: var(--gds-color-l3-content-negative);\n &:not(:focus-visible) {\n outline-color: transparent;\n }\n }\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-negative),\n var(--gds-color-l3-states-dark-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-negative),\n var(--gds-color-l3-states-dark-pressed)\n );\n }\n\n &.secondary {\n background-color: var(--gds-color-l3-background-negative-secondary);\n color: var(--gds-color-l3-content-negative);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-negative-secondary),\n var(--gds-color-l3-states-negative-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n var(--gds-color-l3-background-negative-secondary),\n var(--gds-color-l3-states-negative-pressed)\n );\n }\n }\n\n &.tertiary {\n background-color: transparent;\n color: var(--gds-color-l3-content-negative);\n\n @media (pointer: fine) {\n &:hover {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-color-l3-states-negative-hover)\n );\n }\n }\n\n &:active {\n background-color: color-mix(\n in srgb,\n transparent,\n var(--gds-color-l3-states-negative-pressed)\n );\n }\n }\n }\n}\n";
|
|
2
|
+
export default styles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../chunks/chunk.QTSIPXV3.js";
|
|
2
|
-
import { TransitionalStyles } from "../../transitional-styles";
|
|
2
|
+
import { TransitionalStyles } from "../../transitional-styles.js";
|
|
3
3
|
import styles from "./button.trans.styles.scss.js";
|
|
4
4
|
function register() {
|
|
5
5
|
TransitionalStyles.instance.register("gds-button", styles.toString());
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
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 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: all 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: all 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: all 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: all 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: all 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: all 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}";
|
|
3
|
-
export default styles;
|
|
4
|
-
|
|
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 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: all 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: all 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: all 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: all 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: all 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: all 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}";
|
|
2
|
+
export default styles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./button";
|
|
1
|
+
export * from "./button.js";
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
setHours,
|
|
21
21
|
subMonths
|
|
22
22
|
} from "date-fns";
|
|
23
|
-
import { GdsElement } from "../../gds-element";
|
|
24
|
-
import { gdsCustomElement } from "../../scoping";
|
|
23
|
+
import { GdsElement } from "../../gds-element.js";
|
|
24
|
+
import { gdsCustomElement } from "../../scoping.js";
|
|
25
25
|
import { tokens } from "../../tokens.style";
|
|
26
|
-
import { TransitionalStyles } from "../../transitional-styles";
|
|
27
|
-
import { watch } from "../../utils/decorators/watch";
|
|
26
|
+
import { TransitionalStyles } from "../../transitional-styles.js";
|
|
27
|
+
import { watch } from "../../utils/decorators/watch.js";
|
|
28
28
|
import style from "./calendar.styles";
|
|
29
|
-
import { renderMonthGridView } from "./functions";
|
|
29
|
+
import { renderMonthGridView } from "./functions.js";
|
|
30
30
|
let GdsCalendar = class extends GdsElement {
|
|
31
31
|
constructor() {
|
|
32
32
|
super(...arguments);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../chunks/chunk.QTSIPXV3.js";
|
|
2
|
-
import { TransitionalStyles } from "../../utils/transitional-styles/transitional-styles";
|
|
2
|
+
import { TransitionalStyles } from "../../utils/transitional-styles/transitional-styles.js";
|
|
3
3
|
import styles from "./calendar.trans.styles.scss.js";
|
|
4
4
|
function register() {
|
|
5
5
|
TransitionalStyles.instance.register("gds-calendar", styles.toString());
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default styles;
|
|
4
|
-
|
|
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 /* dates */\n }\n :host tbody th {\n font-weight: 400;\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 /* today */\n /* hover */\n /* focus */\n /* selected */\n /* highlighted */\n /* active (pressed) */\n /* disabled */\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.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: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: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[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[tabindex=\"0\"] {\n border-radius: 4px;\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.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
|
+
export default styles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./calendar";
|
|
1
|
+
export * from "./calendar.js";
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
} from "../../chunks/chunk.QTSIPXV3.js";
|
|
4
4
|
import { css } from "lit";
|
|
5
5
|
import { tokens } from "../../tokens.style";
|
|
6
|
-
import { styleExpressionProperty } from "../../utils/decorators/style-expression-property";
|
|
6
|
+
import { styleExpressionProperty } from "../../utils/decorators/style-expression-property.js";
|
|
7
7
|
import {
|
|
8
8
|
gdsCustomElement,
|
|
9
9
|
html
|
|
10
|
-
} from "../../utils/helpers/custom-element-scoping";
|
|
11
|
-
import { GdsDiv } from "../div/div.component";
|
|
10
|
+
} from "../../utils/helpers/custom-element-scoping.js";
|
|
11
|
+
import { GdsDiv } from "../div/div.component.js";
|
|
12
12
|
let GdsCard = class extends GdsDiv {
|
|
13
13
|
/// This sets variables that are used in the default styles. Any other SEPs will override.
|
|
14
14
|
constructor() {
|
package/components/card/card.js
CHANGED
package/components/card/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./card";
|
|
1
|
+
export * from "./card.js";
|
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
offset,
|
|
20
20
|
shift
|
|
21
21
|
} from "@floating-ui/dom";
|
|
22
|
-
import { GdsElement } from "../../gds-element";
|
|
23
|
-
import { gdsCustomElement, html } from "../../scoping";
|
|
22
|
+
import { GdsElement } from "../../gds-element.js";
|
|
23
|
+
import { gdsCustomElement, html } from "../../scoping.js";
|
|
24
24
|
import styles from "./coachmark.styles";
|
|
25
25
|
let GdsCoachmark = class extends GdsElement {
|
|
26
26
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./coachmark";
|
|
1
|
+
export * from "./coachmark.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__decorateClass
|
|
3
3
|
} from "../../chunks/chunk.QTSIPXV3.js";
|
|
4
|
-
import { gdsCustomElement } from "../../scoping";
|
|
5
|
-
import { GdsDiv } from "../div/div.component";
|
|
4
|
+
import { gdsCustomElement } from "../../scoping.js";
|
|
5
|
+
import { GdsDiv } from "../div/div.component.js";
|
|
6
6
|
let GdsContainer = class extends GdsDiv {
|
|
7
7
|
};
|
|
8
8
|
GdsContainer = __decorateClass([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./container";
|
|
1
|
+
export * from "./container.js";
|
|
@@ -10,22 +10,22 @@ import { nothing } from "lit";
|
|
|
10
10
|
import { property, queryAsync } from "lit/decorators.js";
|
|
11
11
|
import { classMap } from "lit/directives/class-map.js";
|
|
12
12
|
import { when } from "lit/directives/when.js";
|
|
13
|
-
import { GdsElement } from "../../gds-element";
|
|
14
|
-
import { GdsMenuItem } from "../../primitives/menu/menu-item.component";
|
|
15
|
-
import { GdsMenu } from "../../primitives/menu/menu.component";
|
|
13
|
+
import { GdsElement } from "../../gds-element.js";
|
|
14
|
+
import { GdsMenuItem } from "../../primitives/menu/menu-item.component.js";
|
|
15
|
+
import { GdsMenu } from "../../primitives/menu/menu.component.js";
|
|
16
16
|
import { tokens } from "../../tokens.style";
|
|
17
|
-
import { TransitionalStyles } from "../../transitional-styles";
|
|
17
|
+
import { TransitionalStyles } from "../../transitional-styles.js";
|
|
18
18
|
import {
|
|
19
19
|
gdsCustomElement,
|
|
20
20
|
html
|
|
21
|
-
} from "../../utils/helpers/custom-element-scoping";
|
|
21
|
+
} from "../../utils/helpers/custom-element-scoping.js";
|
|
22
22
|
import {
|
|
23
23
|
withLayoutChildProps,
|
|
24
24
|
withMarginProps
|
|
25
|
-
} from "../../utils/mixins/declarative-layout-mixins";
|
|
26
|
-
import { GdsPopover } from "../popover/popover.component";
|
|
25
|
+
} from "../../utils/mixins/declarative-layout-mixins.js";
|
|
26
|
+
import { GdsPopover } from "../popover/popover.component.js";
|
|
27
27
|
import styles from "./context-menu.styles";
|
|
28
|
-
import { GdsMenuHeading } from "../../primitives/menu/menu-heading.component";
|
|
28
|
+
import { GdsMenuHeading } from "../../primitives/menu/menu-heading.component.js";
|
|
29
29
|
let GdsContextMenu = class extends withMarginProps(
|
|
30
30
|
withLayoutChildProps(GdsElement)
|
|
31
31
|
) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../chunks/chunk.QTSIPXV3.js";
|
|
2
2
|
import * as Listbox from "../../primitives/listbox/listbox.trans.styles";
|
|
3
|
-
import { TransitionalStyles } from "../../utils/transitional-styles/transitional-styles";
|
|
3
|
+
import { TransitionalStyles } from "../../utils/transitional-styles/transitional-styles.js";
|
|
4
4
|
import * as Popover from "../popover/popover.trans.styles";
|
|
5
5
|
import styles from "./context-menu.trans.styles.scss.js";
|
|
6
6
|
function register() {
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
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-ref-pallet-base800);\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 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-ref-pallet-base800);\n stroke: var(--gds-ref-pallet-base800);\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}";
|
|
3
|
-
export default styles;
|
|
4
|
-
|
|
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-ref-pallet-base800);\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 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-ref-pallet-base800);\n stroke: var(--gds-ref-pallet-base800);\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
|
+
export default styles;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./context-menu";
|
|
2
|
-
export * from "../../primitives/menu/menu-item";
|
|
3
|
-
export * from "../../primitives/menu/menu-heading";
|
|
1
|
+
export * from "./context-menu.js";
|
|
2
|
+
export * from "../../primitives/menu/menu-item.js";
|
|
3
|
+
export * from "../../primitives/menu/menu-heading.js";
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
} from "../../chunks/chunk.QTSIPXV3.js";
|
|
8
8
|
var _inputBuffer, _increment, _decrement, _handleClick, _handleFocus, _handleBlur, _handleWheel, _handleKeyDown, _focusNextSpinner, focusNextSpinner_fn, _dispatchChangeEvent, dispatchChangeEvent_fn, _formatNumber, formatNumber_fn, _clamp, clamp_fn, _clearInputBuffer, clearInputBuffer_fn;
|
|
9
9
|
import { property, state } from "lit/decorators.js";
|
|
10
|
-
import { GdsElement } from "../../gds-element";
|
|
11
|
-
import { gdsCustomElement, html } from "../../scoping";
|
|
12
|
-
import { watch } from "../../utils/decorators/watch";
|
|
10
|
+
import { GdsElement } from "../../gds-element.js";
|
|
11
|
+
import { gdsCustomElement, html } from "../../scoping.js";
|
|
12
|
+
import { watch } from "../../utils/decorators/watch.js";
|
|
13
13
|
let GdsDatePartSpinner = class extends GdsElement {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments);
|
|
@@ -15,30 +15,30 @@ import { repeat } from "lit/directives/repeat.js";
|
|
|
15
15
|
import { until } from "lit/directives/until.js";
|
|
16
16
|
import { when } from "lit/directives/when.js";
|
|
17
17
|
import { isSameDay } from "date-fns";
|
|
18
|
-
import { GdsButton } from "../../components/button/button.component";
|
|
19
|
-
import { GdsDropdown } from "../../components/dropdown/dropdown.component";
|
|
20
|
-
import { GdsFlex } from "../../components/flex/flex.component";
|
|
21
|
-
import { gdsCustomElement, html } from "../../scoping";
|
|
18
|
+
import { GdsButton } from "../../components/button/button.component.js";
|
|
19
|
+
import { GdsDropdown } from "../../components/dropdown/dropdown.component.js";
|
|
20
|
+
import { GdsFlex } from "../../components/flex/flex.component.js";
|
|
21
|
+
import { gdsCustomElement, html } from "../../scoping.js";
|
|
22
22
|
import { tokens } from "../../tokens.style";
|
|
23
|
-
import { TransitionalStyles } from "../../transitional-styles";
|
|
24
|
-
import { watch } from "../../utils/decorators";
|
|
23
|
+
import { TransitionalStyles } from "../../transitional-styles.js";
|
|
24
|
+
import { watch } from "../../utils/decorators/index.js";
|
|
25
25
|
import {
|
|
26
26
|
dateArrayConverter,
|
|
27
27
|
dateConverter
|
|
28
|
-
} from "../../utils/helpers/attribute-converters";
|
|
28
|
+
} from "../../utils/helpers/attribute-converters.js";
|
|
29
29
|
import {
|
|
30
30
|
withLayoutChildProps,
|
|
31
31
|
withMarginProps,
|
|
32
32
|
withSizeXProps
|
|
33
|
-
} from "../../utils/mixins/declarative-layout-mixins";
|
|
34
|
-
import { GdsCalendar } from "../calendar/calendar.component";
|
|
35
|
-
import { GdsFormControlElement } from "../form/form-control";
|
|
36
|
-
import { IconCalendar } from "../icon/icons/calendar.component";
|
|
37
|
-
import { IconCalenderAdd } from "../icon/icons/calender-add.component";
|
|
38
|
-
import { IconChevronLeft } from "../icon/icons/chevron-left.component";
|
|
39
|
-
import { IconChevronRight } from "../icon/icons/chevron-right.component";
|
|
40
|
-
import { GdsPopover } from "../popover/popover.component";
|
|
41
|
-
import { GdsDatePartSpinner } from "./date-part-spinner";
|
|
33
|
+
} from "../../utils/mixins/declarative-layout-mixins.js";
|
|
34
|
+
import { GdsCalendar } from "../calendar/calendar.component.js";
|
|
35
|
+
import { GdsFormControlElement } from "../form/form-control.js";
|
|
36
|
+
import { IconCalendar } from "../icon/icons/calendar.component.js";
|
|
37
|
+
import { IconCalenderAdd } from "../icon/icons/calender-add.component.js";
|
|
38
|
+
import { IconChevronLeft } from "../icon/icons/chevron-left.component.js";
|
|
39
|
+
import { IconChevronRight } from "../icon/icons/chevron-right.component.js";
|
|
40
|
+
import { GdsPopover } from "../popover/popover.component.js";
|
|
41
|
+
import { GdsDatePartSpinner } from "./date-part-spinner.js";
|
|
42
42
|
import { styles } from "./datepicker.styles";
|
|
43
43
|
let Datepicker = class extends GdsFormControlElement {
|
|
44
44
|
constructor() {
|