@govtechsg/sgds-web-component 3.2.0-rc.0 → 3.2.0-rc.1
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/base/button.js +1 -1
- package/base/card-element.d.ts +14 -0
- package/base/card-element.js +53 -2
- package/base/card-element.js.map +1 -1
- package/base/card.js +1 -1
- package/components/Badge/index.umd.js +63 -44
- package/components/Badge/index.umd.js.map +1 -1
- package/components/Badge/sgds-badge.d.ts +3 -1
- package/components/Badge/sgds-badge.js +23 -4
- package/components/Badge/sgds-badge.js.map +1 -1
- package/components/Breadcrumb/index.umd.js +2 -2
- package/components/Breadcrumb/index.umd.js.map +1 -1
- package/components/Breadcrumb/sgds-breadcrumb.d.ts +1 -1
- package/components/Breadcrumb/sgds-breadcrumb.js +1 -1
- package/components/Breadcrumb/sgds-breadcrumb.js.map +1 -1
- package/components/Button/index.umd.js +1 -1
- package/components/Card/card.js +1 -1
- package/components/Card/index.umd.js +121 -69
- package/components/Card/index.umd.js.map +1 -1
- package/components/Card/sgds-card.d.ts +4 -15
- package/components/Card/sgds-card.js +16 -54
- package/components/Card/sgds-card.js.map +1 -1
- package/components/Card/types.d.ts +3 -0
- package/components/ComboBox/combo-box-item2.js +1 -1
- package/components/ComboBox/index.umd.js +30 -10
- package/components/ComboBox/index.umd.js.map +1 -1
- package/components/ComboBox/sgds-combo-box.js +3 -2
- package/components/ComboBox/sgds-combo-box.js.map +1 -1
- package/components/Datepicker/index.umd.js +30 -13
- package/components/Datepicker/index.umd.js.map +1 -1
- package/components/Datepicker/sgds-datepicker.d.ts +13 -3
- package/components/Datepicker/sgds-datepicker.js +29 -11
- package/components/Datepicker/sgds-datepicker.js.map +1 -1
- package/components/Drawer/index.umd.js +2 -2
- package/components/Drawer/index.umd.js.map +1 -1
- package/components/Dropdown/dropdown-item.js +1 -1
- package/components/Dropdown/dropdown.js +1 -1
- package/components/Dropdown/index.umd.js +2 -2
- package/components/FileUpload/index.umd.js +1 -1
- package/components/IconButton/index.umd.js +1 -1
- package/components/IconCard/icon-card.js +6 -0
- package/components/IconCard/icon-card.js.map +1 -0
- package/components/IconCard/index.d.ts +6 -0
- package/components/IconCard/index.js +4 -0
- package/components/IconCard/index.js.map +1 -0
- package/components/IconCard/index.umd.js +4760 -0
- package/components/IconCard/index.umd.js.map +1 -0
- package/components/IconCard/sgds-icon-card.d.ts +24 -0
- package/components/IconCard/sgds-icon-card.js +83 -0
- package/components/IconCard/sgds-icon-card.js.map +1 -0
- package/components/IconList/icon-list.js +1 -1
- package/components/IconList/index.umd.js +1 -1
- package/components/ImageCard/image-card.js +6 -0
- package/components/ImageCard/image-card.js.map +1 -0
- package/components/ImageCard/index.d.ts +6 -0
- package/components/ImageCard/index.js +4 -0
- package/components/ImageCard/index.js.map +1 -0
- package/components/ImageCard/index.umd.js +4774 -0
- package/components/ImageCard/index.umd.js.map +1 -0
- package/components/ImageCard/sgds-image-card.d.ts +30 -0
- package/components/ImageCard/sgds-image-card.js +97 -0
- package/components/ImageCard/sgds-image-card.js.map +1 -0
- package/components/Input/index.umd.js +1 -1
- package/components/Input/input.js +1 -1
- package/components/Mainnav/index.umd.js +5 -5
- package/components/Mainnav/index.umd.js.map +1 -1
- package/components/Mainnav/sgds-mainnav-item.d.ts +1 -1
- package/components/Mainnav/sgds-mainnav-item.js +2 -2
- package/components/Mainnav/sgds-mainnav-item.js.map +1 -1
- package/components/Modal/index.umd.js +22 -17
- package/components/Modal/index.umd.js.map +1 -1
- package/components/Modal/modal.js +1 -1
- package/components/Modal/sgds-modal.js +17 -14
- package/components/Modal/sgds-modal.js.map +1 -1
- package/components/OverflowMenu/index.js +5 -0
- package/components/OverflowMenu/index.js.map +1 -0
- package/components/OverflowMenu/index.umd.js +11129 -0
- package/components/OverflowMenu/index.umd.js.map +1 -0
- package/{internals → components}/OverflowMenu/sgds-overflow-menu.d.ts +3 -3
- package/{internals → components}/OverflowMenu/sgds-overflow-menu.js +3 -3
- package/components/OverflowMenu/sgds-overflow-menu.js.map +1 -0
- package/components/Pagination/index.umd.js +1 -1
- package/components/QuantityToggle/index.umd.js +2 -2
- package/components/Select/index.umd.js +1 -1
- package/components/Select/select-item2.js +1 -1
- package/components/Subnav/index.umd.js +79 -87
- package/components/Subnav/index.umd.js.map +1 -1
- package/components/Subnav/sgds-subnav-item.d.ts +1 -1
- package/components/Subnav/sgds-subnav-item.js +2 -2
- package/components/Subnav/sgds-subnav-item.js.map +1 -1
- package/components/Subnav/sgds-subnav.d.ts +5 -4
- package/components/Subnav/sgds-subnav.js +76 -85
- package/components/Subnav/sgds-subnav.js.map +1 -1
- package/components/Subnav/subnav-item.js +1 -1
- package/components/Subnav/subnav.js +1 -1
- package/components/Table/index.d.ts +7 -1
- package/components/Table/index.js +6 -0
- package/components/Table/index.js.map +1 -1
- package/components/Table/index.umd.js +182 -16
- package/components/Table/index.umd.js.map +1 -1
- package/components/Table/sgds-table-cell.d.ts +13 -0
- package/components/Table/sgds-table-cell.js +22 -0
- package/components/Table/sgds-table-cell.js.map +1 -0
- package/components/Table/sgds-table-head.d.ts +18 -0
- package/components/Table/sgds-table-head.js +43 -0
- package/components/Table/sgds-table-head.js.map +1 -0
- package/components/Table/sgds-table-row.d.ts +13 -0
- package/components/Table/sgds-table-row.js +22 -0
- package/components/Table/sgds-table-row.js.map +1 -0
- package/components/Table/sgds-table.d.ts +5 -2
- package/components/Table/sgds-table.js +18 -13
- package/components/Table/sgds-table.js.map +1 -1
- package/components/Table/table-cell.js +6 -0
- package/components/Table/table-cell.js.map +1 -0
- package/components/Table/table-head.js +6 -0
- package/components/Table/table-head.js.map +1 -0
- package/components/Table/table-row.js +6 -0
- package/components/Table/table-row.js.map +1 -0
- package/components/Table/table.js +1 -1
- package/components/ThumbnailCard/index.d.ts +6 -0
- package/components/ThumbnailCard/index.js +4 -0
- package/components/ThumbnailCard/index.js.map +1 -0
- package/components/ThumbnailCard/index.umd.js +4764 -0
- package/components/ThumbnailCard/index.umd.js.map +1 -0
- package/components/ThumbnailCard/sgds-thumbnail-card.d.ts +24 -0
- package/components/ThumbnailCard/sgds-thumbnail-card.js +87 -0
- package/components/ThumbnailCard/sgds-thumbnail-card.js.map +1 -0
- package/components/ThumbnailCard/thumbnail-card.js +6 -0
- package/components/ThumbnailCard/thumbnail-card.js.map +1 -0
- package/components/Toast/index.umd.js +1 -1
- package/components/Toast/toast.js +1 -1
- package/components/index.d.ts +4 -0
- package/components/index.js +4 -0
- package/components/index.js.map +1 -1
- package/components/index.umd.js +615 -322
- package/components/index.umd.js.map +1 -1
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/index.js.map +1 -1
- package/index.umd.js +703 -331
- package/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/react/badge/index.cjs.js +3 -1
- package/react/badge/index.cjs.js.map +1 -1
- package/react/badge/index.js +3 -1
- package/react/badge/index.js.map +1 -1
- package/react/base/button.cjs.js +1 -1
- package/react/base/button.js +1 -1
- package/react/base/card-element.cjs.js +52 -1
- package/react/base/card-element.cjs.js.map +1 -1
- package/react/base/card-element.js +53 -2
- package/react/base/card-element.js.map +1 -1
- package/react/base/card.cjs.js +1 -1
- package/react/base/card.js +1 -1
- package/react/components/Badge/sgds-badge.cjs.js +23 -4
- package/react/components/Badge/sgds-badge.cjs.js.map +1 -1
- package/react/components/Badge/sgds-badge.js +23 -4
- package/react/components/Badge/sgds-badge.js.map +1 -1
- package/react/components/Breadcrumb/sgds-breadcrumb.cjs.js +1 -1
- package/react/components/Breadcrumb/sgds-breadcrumb.cjs.js.map +1 -1
- package/react/components/Breadcrumb/sgds-breadcrumb.js +1 -1
- package/react/components/Breadcrumb/sgds-breadcrumb.js.map +1 -1
- package/react/components/Card/card.cjs.js +1 -1
- package/react/components/Card/card.js +1 -1
- package/react/components/Card/sgds-card.cjs.js +15 -53
- package/react/components/Card/sgds-card.cjs.js.map +1 -1
- package/react/components/Card/sgds-card.js +16 -54
- package/react/components/Card/sgds-card.js.map +1 -1
- package/react/components/ComboBox/combo-box-item.cjs2.js +1 -1
- package/react/components/ComboBox/combo-box-item2.js +1 -1
- package/react/components/ComboBox/sgds-combo-box.cjs.js +3 -2
- package/react/components/ComboBox/sgds-combo-box.cjs.js.map +1 -1
- package/react/components/ComboBox/sgds-combo-box.js +3 -2
- package/react/components/ComboBox/sgds-combo-box.js.map +1 -1
- package/react/components/Datepicker/sgds-datepicker.cjs.js +29 -11
- package/react/components/Datepicker/sgds-datepicker.cjs.js.map +1 -1
- package/react/components/Datepicker/sgds-datepicker.js +29 -11
- package/react/components/Datepicker/sgds-datepicker.js.map +1 -1
- package/react/components/Dropdown/dropdown-item.cjs.js +1 -1
- package/react/components/Dropdown/dropdown-item.js +1 -1
- package/react/components/Dropdown/dropdown.cjs.js +1 -1
- package/react/components/Dropdown/dropdown.js +1 -1
- package/react/components/IconCard/icon-card.cjs.js +11 -0
- package/react/components/IconCard/icon-card.cjs.js.map +1 -0
- package/react/components/IconCard/icon-card.js +7 -0
- package/react/components/IconCard/icon-card.js.map +1 -0
- package/react/components/IconCard/sgds-icon-card.cjs.js +89 -0
- package/react/components/IconCard/sgds-icon-card.cjs.js.map +1 -0
- package/react/components/IconCard/sgds-icon-card.js +84 -0
- package/react/components/IconCard/sgds-icon-card.js.map +1 -0
- package/react/components/IconList/icon-list.cjs.js +1 -1
- package/react/components/IconList/icon-list.js +1 -1
- package/react/components/ImageCard/image-card.cjs.js +11 -0
- package/react/components/ImageCard/image-card.cjs.js.map +1 -0
- package/react/components/ImageCard/image-card.js +7 -0
- package/react/components/ImageCard/image-card.js.map +1 -0
- package/react/components/ImageCard/sgds-image-card.cjs.js +103 -0
- package/react/components/ImageCard/sgds-image-card.cjs.js.map +1 -0
- package/react/components/ImageCard/sgds-image-card.js +98 -0
- package/react/components/ImageCard/sgds-image-card.js.map +1 -0
- package/react/components/Input/input.cjs.js +1 -1
- package/react/components/Input/input.js +1 -1
- package/react/components/Mainnav/sgds-mainnav-item.cjs.js +2 -2
- package/react/components/Mainnav/sgds-mainnav-item.cjs.js.map +1 -1
- package/react/components/Mainnav/sgds-mainnav-item.js +2 -2
- package/react/components/Mainnav/sgds-mainnav-item.js.map +1 -1
- package/react/components/Modal/modal.cjs.js +1 -1
- package/react/components/Modal/modal.js +1 -1
- package/react/components/Modal/sgds-modal.cjs.js +17 -14
- package/react/components/Modal/sgds-modal.cjs.js.map +1 -1
- package/react/components/Modal/sgds-modal.js +17 -14
- package/react/components/Modal/sgds-modal.js.map +1 -1
- package/react/{internals → components}/OverflowMenu/sgds-overflow-menu.cjs.js +3 -3
- package/react/components/OverflowMenu/sgds-overflow-menu.cjs.js.map +1 -0
- package/react/{internals → components}/OverflowMenu/sgds-overflow-menu.js +3 -3
- package/react/components/OverflowMenu/sgds-overflow-menu.js.map +1 -0
- package/react/components/Select/select-item.cjs2.js +1 -1
- package/react/components/Select/select-item2.js +1 -1
- package/react/components/Subnav/sgds-subnav-item.cjs.js +2 -2
- package/react/components/Subnav/sgds-subnav-item.cjs.js.map +1 -1
- package/react/components/Subnav/sgds-subnav-item.js +2 -2
- package/react/components/Subnav/sgds-subnav-item.js.map +1 -1
- package/react/components/Subnav/sgds-subnav.cjs.js +74 -83
- package/react/components/Subnav/sgds-subnav.cjs.js.map +1 -1
- package/react/components/Subnav/sgds-subnav.js +76 -85
- package/react/components/Subnav/sgds-subnav.js.map +1 -1
- package/react/components/Subnav/subnav-item.cjs.js +1 -1
- package/react/components/Subnav/subnav-item.js +1 -1
- package/react/components/Subnav/subnav.cjs.js +1 -1
- package/react/components/Subnav/subnav.js +1 -1
- package/react/components/Table/sgds-table-cell.cjs.js +28 -0
- package/react/components/Table/sgds-table-cell.cjs.js.map +1 -0
- package/react/components/Table/sgds-table-cell.js +23 -0
- package/react/components/Table/sgds-table-cell.js.map +1 -0
- package/react/components/Table/sgds-table-head.cjs.js +49 -0
- package/react/components/Table/sgds-table-head.cjs.js.map +1 -0
- package/react/components/Table/sgds-table-head.js +44 -0
- package/react/components/Table/sgds-table-head.js.map +1 -0
- package/react/components/Table/sgds-table-row.cjs.js +28 -0
- package/react/components/Table/sgds-table-row.cjs.js.map +1 -0
- package/react/components/Table/sgds-table-row.js +23 -0
- package/react/components/Table/sgds-table-row.js.map +1 -0
- package/react/components/Table/sgds-table.cjs.js +17 -12
- package/react/components/Table/sgds-table.cjs.js.map +1 -1
- package/react/components/Table/sgds-table.js +18 -13
- package/react/components/Table/sgds-table.js.map +1 -1
- package/react/components/Table/table-cell.cjs.js +11 -0
- package/react/components/Table/table-cell.cjs.js.map +1 -0
- package/react/components/Table/table-cell.js +7 -0
- package/react/components/Table/table-cell.js.map +1 -0
- package/react/components/Table/table-head.cjs.js +11 -0
- package/react/components/Table/table-head.cjs.js.map +1 -0
- package/react/components/Table/table-head.js +7 -0
- package/react/components/Table/table-head.js.map +1 -0
- package/react/components/Table/table-row.cjs.js +11 -0
- package/react/components/Table/table-row.cjs.js.map +1 -0
- package/react/components/Table/table-row.js +7 -0
- package/react/components/Table/table-row.js.map +1 -0
- package/react/components/Table/table.cjs.js +1 -1
- package/react/components/Table/table.js +1 -1
- package/react/components/ThumbnailCard/sgds-thumbnail-card.cjs.js +93 -0
- package/react/components/ThumbnailCard/sgds-thumbnail-card.cjs.js.map +1 -0
- package/react/components/ThumbnailCard/sgds-thumbnail-card.js +88 -0
- package/react/components/ThumbnailCard/sgds-thumbnail-card.js.map +1 -0
- package/react/components/ThumbnailCard/thumbnail-card.cjs.js +11 -0
- package/react/components/ThumbnailCard/thumbnail-card.cjs.js.map +1 -0
- package/react/components/ThumbnailCard/thumbnail-card.js +7 -0
- package/react/components/ThumbnailCard/thumbnail-card.js.map +1 -0
- package/react/components/Toast/toast.cjs.js +1 -1
- package/react/components/Toast/toast.js +1 -1
- package/react/icon-card/index.cjs.js +40 -0
- package/react/icon-card/index.cjs.js.map +1 -0
- package/react/icon-card/index.d.ts +2 -0
- package/react/icon-card/index.js +16 -0
- package/react/icon-card/index.js.map +1 -0
- package/react/image-card/index.cjs.js +40 -0
- package/react/image-card/index.cjs.js.map +1 -0
- package/react/image-card/index.d.ts +2 -0
- package/react/image-card/index.js +16 -0
- package/react/image-card/index.js.map +1 -0
- package/react/index.cjs.js +78 -64
- package/react/index.cjs.js.map +1 -1
- package/react/index.d.ts +7 -0
- package/react/index.js +7 -0
- package/react/index.js.map +1 -1
- package/react/overflow-menu/index.cjs.js +40 -0
- package/react/overflow-menu/index.cjs.js.map +1 -0
- package/react/overflow-menu/index.d.ts +2 -0
- package/react/overflow-menu/index.js +16 -0
- package/react/overflow-menu/index.js.map +1 -0
- package/react/table-cell/index.cjs.js +40 -0
- package/react/table-cell/index.cjs.js.map +1 -0
- package/react/table-cell/index.d.ts +2 -0
- package/react/table-cell/index.js +16 -0
- package/react/table-cell/index.js.map +1 -0
- package/react/table-head/index.cjs.js +40 -0
- package/react/table-head/index.cjs.js.map +1 -0
- package/react/table-head/index.d.ts +2 -0
- package/react/table-head/index.js +16 -0
- package/react/table-head/index.js.map +1 -0
- package/react/table-row/index.cjs.js +40 -0
- package/react/table-row/index.cjs.js.map +1 -0
- package/react/table-row/index.d.ts +2 -0
- package/react/table-row/index.js +16 -0
- package/react/table-row/index.js.map +1 -0
- package/react/thumbnail-card/index.cjs.js +40 -0
- package/react/thumbnail-card/index.cjs.js.map +1 -0
- package/react/thumbnail-card/index.d.ts +2 -0
- package/react/thumbnail-card/index.js +16 -0
- package/react/thumbnail-card/index.js.map +1 -0
- package/react/utils/breakpoints.cjs.js.map +1 -1
- package/react/utils/breakpoints.js.map +1 -1
- package/react/utils/scroll.cjs.js +2 -2
- package/react/utils/scroll.cjs.js.map +1 -1
- package/react/utils/scroll.js +2 -2
- package/react/utils/scroll.js.map +1 -1
- package/themes/day.css +1 -0
- package/themes/night.css +1 -0
- package/themes/root.css +6 -0
- package/utils/breakpoints.d.ts +1 -0
- package/utils/breakpoints.js.map +1 -1
- package/utils/scroll.js +2 -2
- package/utils/scroll.js.map +1 -1
- package/internals/OverflowMenu/sgds-overflow-menu.js.map +0 -1
- package/react/internals/OverflowMenu/sgds-overflow-menu.cjs.js.map +0 -1
- package/react/internals/OverflowMenu/sgds-overflow-menu.js.map +0 -1
- /package/{internals → components}/OverflowMenu/index.d.ts +0 -0
- /package/{internals → components}/OverflowMenu/overflow-menu.js +0 -0
- /package/{internals → components}/OverflowMenu/overflow-menu.js.map +0 -0
- /package/react/{internals → components}/OverflowMenu/overflow-menu.cjs.js +0 -0
- /package/react/{internals → components}/OverflowMenu/overflow-menu.cjs.js.map +0 -0
- /package/react/{internals → components}/OverflowMenu/overflow-menu.js +0 -0
- /package/react/{internals → components}/OverflowMenu/overflow-menu.js.map +0 -0
package/components/index.umd.js
CHANGED
|
@@ -4383,7 +4383,7 @@
|
|
|
4383
4383
|
});
|
|
4384
4384
|
}
|
|
4385
4385
|
|
|
4386
|
-
var css_248z$
|
|
4386
|
+
var css_248z$1f = css`:host{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--sgds-body-color-default);font-family:var(--sgds-font-family-brand);font-size:var(--sgds-font-size-2);font-weight:var(--sgds-font-weight-regular);line-height:var(--sgds-line-height-body);margin:0;*,:after,:before{box-sizing:border-box}:disabled{cursor:not-allowed}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}a[target=_blank]{align-items:center;display:flex;gap:var(--sgds-gap-2-xs)}::slotted(a[target=_blank]):after,a[target=_blank]:after{background-color:currentColor;content:"/";display:inline-block;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.274 3.9H9.3a.6.6 0 0 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.361 6.41c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v5.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h5.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.469-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.274c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.524-.042-1.175-.042-1.993V9.274c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C7.805 3.9 8.456 3.9 9.274 3.9Zm3.626.6a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V5.949l-5.976 5.975a.6.6 0 0 1-.848-.848L18.05 5.1H13.5a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.274 3.9H9.3a.6.6 0 0 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.361 6.41c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v5.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h5.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.469-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.274c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.524-.042-1.175-.042-1.993V9.274c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C7.805 3.9 8.456 3.9 9.274 3.9Zm3.626.6a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V5.949l-5.976 5.975a.6.6 0 0 1-.848-.848L18.05 5.1H13.5a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;padding:0 .45em}::slotted(svg){vertical-align:middle}}`;
|
|
4387
4387
|
|
|
4388
4388
|
/**
|
|
4389
4389
|
* @cssprop --sgds-{stateColor} - State colors in hexadecimal value
|
|
@@ -4440,13 +4440,13 @@
|
|
|
4440
4440
|
});
|
|
4441
4441
|
}
|
|
4442
4442
|
}
|
|
4443
|
-
SgdsElement.styles = [css_248z$
|
|
4443
|
+
SgdsElement.styles = [css_248z$1f];
|
|
4444
4444
|
/** @internal */
|
|
4445
4445
|
SgdsElement.dependencies = {};
|
|
4446
4446
|
|
|
4447
|
-
var css_248z$
|
|
4447
|
+
var css_248z$1e = css`:host([variant=border]) .accordion{border:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);border-radius:var(--sgds-border-radius-md)}`;
|
|
4448
4448
|
|
|
4449
|
-
const VALID_KEYS = ["Enter", "ArrowUp", "ArrowLeft", "ArrowDown", "ArrowRight"];
|
|
4449
|
+
const VALID_KEYS$1 = ["Enter", "ArrowUp", "ArrowLeft", "ArrowDown", "ArrowRight"];
|
|
4450
4450
|
/**
|
|
4451
4451
|
* @summary A dropdown mechanism that allow users to either show or hide related content. `SgdsAccordion` is a wrapper to manage the behaviour for multiple `SgdsAccordionItems`
|
|
4452
4452
|
* @slot default - slot for accordion-item
|
|
@@ -4504,7 +4504,7 @@
|
|
|
4504
4504
|
});
|
|
4505
4505
|
}
|
|
4506
4506
|
async _onKeyboardToggle(event) {
|
|
4507
|
-
if (!VALID_KEYS.includes(event.key))
|
|
4507
|
+
if (!VALID_KEYS$1.includes(event.key))
|
|
4508
4508
|
return;
|
|
4509
4509
|
return this._onToggle(event);
|
|
4510
4510
|
}
|
|
@@ -4516,7 +4516,7 @@
|
|
|
4516
4516
|
`;
|
|
4517
4517
|
}
|
|
4518
4518
|
}
|
|
4519
|
-
SgdsAccordion.styles = [...SgdsElement.styles, css_248z$
|
|
4519
|
+
SgdsAccordion.styles = [...SgdsElement.styles, css_248z$1e];
|
|
4520
4520
|
__decorate([
|
|
4521
4521
|
property({ type: Boolean, reflect: true })
|
|
4522
4522
|
], SgdsAccordion.prototype, "allowMultiple", void 0);
|
|
@@ -4791,7 +4791,7 @@
|
|
|
4791
4791
|
};
|
|
4792
4792
|
}
|
|
4793
4793
|
|
|
4794
|
-
var css_248z$
|
|
4794
|
+
var css_248z$1d = css`:host([variant=border][last-of-type]) .accordion-item{border-bottom:none}:host([density=compact]) .accordion-btn{font-size:var(--sgds-font-size-2);line-height:var(--sgds-line-height-min);padding:var(--sgds-padding-sm) var(--sgds-padding-sm)}:host([density=compact]) .content{padding:var(--sgds-padding-xs) var(--sgds-padding-sm) var(--sgds-padding-sm)}.accordion-item{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}.accordion-btn{align-items:center;background-color:var(--sgds-bg-transparent);border:0;color:var(--sgds-color-default);display:flex;font-size:var(--sgds-font-size-3);gap:var(--sgds-gap-sm);line-height:var(--sgds-line-height-heading);overflow-anchor:none;padding:var(--sgds-padding-lg) var(--sgds-padding-lg);text-align:left;width:100%}@media (prefers-reduced-motion:reduce){.accordion-btn,.accordion-btn:after{transition:none}}.accordion-btn:not(.collapsed){font-weight:var(--sgds-font-weight-semibold)}.accordion-btn:not(.disabled):hover,.accordion-btn:not(:disabled):hover{background-color:var(--sgds-bg-translucent-subtle);z-index:2}.accordion-btn:not(.disabled):focus,.accordion-btn:not(.disabled):focus-visible,.accordion-btn:not(:disabled):focus,.accordion-btn:not(:disabled):focus-visible{background-color:var(--sgds-bg-translucent-subtle);box-shadow:var(--sgds-box-shadow-focus);outline:0;z-index:3}.accordion-btn.disabled,.accordion-btn:disabled{cursor:not-allowed;opacity:var(--sgds-opacity-50)}slot[name=caret] sgds-icon,slot[name=caret]::slotted(*){color:var(--sgds-color-subtle);margin-left:auto;transition:transform .2s ease-in-out}.accordion-btn:not(.collapsed) slot[name=caret] sgds-icon,.accordion-btn:not(.collapsed) slot[name=caret]::slotted(*){transform:rotate(-180deg)}.accordion-body{overflow:hidden;padding:0}.content{display:block;padding:var(--sgds-padding-xs) var(--sgds-padding-lg) var(--sgds-padding-lg)}.hidden{display:none}`;
|
|
4795
4795
|
|
|
4796
4796
|
/**
|
|
4797
4797
|
*
|
|
@@ -4926,7 +4926,7 @@
|
|
|
4926
4926
|
`;
|
|
4927
4927
|
}
|
|
4928
4928
|
}
|
|
4929
|
-
SgdsAccordionItem.styles = [...SgdsElement.styles, css_248z$
|
|
4929
|
+
SgdsAccordionItem.styles = [...SgdsElement.styles, css_248z$1d];
|
|
4930
4930
|
__decorate([
|
|
4931
4931
|
query(".accordion-item")
|
|
4932
4932
|
], SgdsAccordionItem.prototype, "accordion", void 0);
|
|
@@ -5087,7 +5087,7 @@
|
|
|
5087
5087
|
*/
|
|
5088
5088
|
const ifDefined = (value) => value ?? nothing;
|
|
5089
5089
|
|
|
5090
|
-
var css_248z$
|
|
5090
|
+
var css_248z$1c = css`:host{--sgds-close-btn-border-radius:var(--sgds-border-radius-sm);display:inline-flex}.btn-close{align-items:center;background-color:var(--sgds-bg-transparent);border:0;border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-close-btn-border-radius);cursor:pointer;display:flex;height:var(--sgds-dimension-32);justify-content:center;padding:0;position:relative;width:var(--sgds-dimension-32)}.btn-close-light{color:var(--sgds-color-fixed-light)}.btn-close-dark{color:var(--sgds-color-fixed-dark)}.btn-close:hover{background-color:var(--sgds-bg-translucent)}.btn-close:focus,.btn-close:focus-visible{background-color:var(--sgds-bg-translucent);box-shadow:var(--sgds-box-shadow-focus);outline:0}.btn-close-sm{height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}.btn-close.btn-close-sm{height:var(--sgds-icon-size-sm);width:var(--sgds-icon-size-sm)}`;
|
|
5091
5091
|
|
|
5092
5092
|
/**
|
|
5093
5093
|
*
|
|
@@ -5149,7 +5149,7 @@
|
|
|
5149
5149
|
`;
|
|
5150
5150
|
}
|
|
5151
5151
|
}
|
|
5152
|
-
SgdsCloseButton.styles = [...SgdsElement.styles, css_248z$
|
|
5152
|
+
SgdsCloseButton.styles = [...SgdsElement.styles, css_248z$1c];
|
|
5153
5153
|
__decorate([
|
|
5154
5154
|
property({ type: String })
|
|
5155
5155
|
], SgdsCloseButton.prototype, "ariaLabel", void 0);
|
|
@@ -7608,7 +7608,7 @@
|
|
|
7608
7608
|
"zoom-out": ZoomOut
|
|
7609
7609
|
};
|
|
7610
7610
|
|
|
7611
|
-
var css_248z$
|
|
7611
|
+
var css_248z$1b = css`:host{color:inherit;display:inline-flex}:host([size=sm]) svg{height:var(--sgds-icon-size-sm);width:var(--sgds-icon-size-sm)}:host([size=md]) svg{height:var(--sgds-icon-size-md);width:var(--sgds-icon-size-md)}:host([size=xl]) svg{height:var(--sgds-icon-size-xl);width:var(--sgds-icon-size-xl)}:host([size="2-xl"]) svg{height:var(--sgds-icon-size-2-xl);width:var(--sgds-icon-size-2-xl)}:host([size="3-xl"]) svg{height:var(--sgds-icon-size-3-xl);width:var(--sgds-icon-size-3-xl)}svg{display:inline-block;height:var(--sgds-icon-size-lg);width:var(--sgds-icon-size-lg)}`;
|
|
7612
7612
|
|
|
7613
7613
|
/**
|
|
7614
7614
|
* @summary Icons offer a form of visual shorthand that we are all familiar with. They can label, inform and aid navigation quickly and effectively in minimal space. Icons must first and foremost communicate meaning. By default, the icon component renders icons from `SgdsIcon` library set
|
|
@@ -7634,7 +7634,7 @@
|
|
|
7634
7634
|
return icon ? icon : nothing;
|
|
7635
7635
|
}
|
|
7636
7636
|
}
|
|
7637
|
-
SgdsIcon.styles = [...SgdsElement.styles, css_248z$
|
|
7637
|
+
SgdsIcon.styles = [...SgdsElement.styles, css_248z$1b];
|
|
7638
7638
|
__decorate([
|
|
7639
7639
|
property({ type: String, reflect: true })
|
|
7640
7640
|
], SgdsIcon.prototype, "name", void 0);
|
|
@@ -7642,7 +7642,7 @@
|
|
|
7642
7642
|
property({ type: String, reflect: true })
|
|
7643
7643
|
], SgdsIcon.prototype, "size", void 0);
|
|
7644
7644
|
|
|
7645
|
-
var css_248z$
|
|
7645
|
+
var css_248z$1a = css`:host([variant=success]) .alert{background-color:var(--sgds-success-surface-default)}:host([variant=warning]) .alert{--sgds-alert-color:var(--sgds-color-fixed-dark);background-color:var(--sgds-warning-surface-default)}:host([variant=danger]) .alert{background-color:var(--sgds-danger-surface-default)}:host([variant=neutral]) .alert{background-color:var(--sgds-neutral-surface-default)}:host([variant=success][outlined]) .alert{background-color:var(--sgds-success-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-success-border-color-default)}:host([variant=warning][outlined]) .alert{background-color:var(--sgds-warning-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-warning-border-color-default)}:host([variant=danger][outlined]) .alert{background-color:var(--sgds-danger-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-danger-border-color-default)}:host([variant=neutral][outlined]) .alert{background-color:var(--sgds-neutral-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-neutral-border-color-default)}.alert{--sgds-alert-color:var(--sgds-color-fixed-light);background-color:var(--sgds-primary-surface-default);border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-border-radius-md);color:var(--sgds-alert-color);display:flex;flex-direction:row;gap:var(--sgds-gap-sm);padding:var(--sgds-padding-lg)}.alert.outlined{--sgds-alert-color:var(--sgds-color-fixed-dark);background-color:var(--sgds-primary-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-primary-border-color-default)}.alert-content{align-items:flex-start;display:flex;flex:1 0 0;flex-direction:column;gap:var(--sgds-gap-2-xs);padding-right:var(--sgds-padding-2-xl)}.alert-title{font-weight:var(--sgds-font-weight-semibold)}`;
|
|
7646
7646
|
|
|
7647
7647
|
/**
|
|
7648
7648
|
* @summary Alerts provide short, timely, and relevant information for your users. It can be a simple text message or customised HTML content with paragraphs, headings and links.
|
|
@@ -7704,7 +7704,7 @@
|
|
|
7704
7704
|
: nothing;
|
|
7705
7705
|
}
|
|
7706
7706
|
}
|
|
7707
|
-
SgdsAlert.styles = [...SgdsElement.styles, css_248z$
|
|
7707
|
+
SgdsAlert.styles = [...SgdsElement.styles, css_248z$1a];
|
|
7708
7708
|
/**@internal */
|
|
7709
7709
|
SgdsAlert.dependencies = {
|
|
7710
7710
|
"sgds-close-button": SgdsCloseButton,
|
|
@@ -7729,9 +7729,9 @@
|
|
|
7729
7729
|
watch("show")
|
|
7730
7730
|
], SgdsAlert.prototype, "_handleShowChange", null);
|
|
7731
7731
|
|
|
7732
|
-
var css_248z$
|
|
7732
|
+
var css_248z$19 = css`:host{cursor:pointer;display:inline-block}.alert-link,.alert-link:hover{color:var(--sgds-alert-color);text-decoration-line:underline}.alert-link:focus,.alert-link:focus-visible{box-shadow:var(--sgds-box-shadow-focus);outline:0}`;
|
|
7733
7733
|
|
|
7734
|
-
var css_248z$
|
|
7734
|
+
var css_248z$18 = css`::slotted(a[target=_blank]:after),a[target=_blank]:after{background-color:currentColor;content:"/";display:inline-block;margin:0 .125rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.274 3.9H9.3a.6.6 0 0 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.361 6.41c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v5.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h5.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.469-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.274c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.524-.042-1.175-.042-1.993V9.274c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C7.805 3.9 8.456 3.9 9.274 3.9Zm3.626.6a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V5.949l-5.976 5.975a.6.6 0 0 1-.848-.848L18.05 5.1H13.5a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.274 3.9H9.3a.6.6 0 0 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.361 6.41c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v5.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h5.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.469-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.274c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.524-.042-1.175-.042-1.993V9.274c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C7.805 3.9 8.456 3.9 9.274 3.9Zm3.626.6a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V5.949l-5.976 5.975a.6.6 0 0 1-.848-.848L18.05 5.1H13.5a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;mask-size:73%;-webkit-mask-size:73%;padding:0 .45em}`;
|
|
7735
7735
|
|
|
7736
7736
|
/**
|
|
7737
7737
|
* @summary Alert link are used within the alert's message that is passed into the default slot of `<sgds-alert>`
|
|
@@ -7745,7 +7745,7 @@
|
|
|
7745
7745
|
`;
|
|
7746
7746
|
}
|
|
7747
7747
|
}
|
|
7748
|
-
SgdsAlertLink.styles = [...SgdsElement.styles, css_248z$
|
|
7748
|
+
SgdsAlertLink.styles = [...SgdsElement.styles, css_248z$18, css_248z$19];
|
|
7749
7749
|
__decorate([
|
|
7750
7750
|
property({ type: String, reflect: true })
|
|
7751
7751
|
], SgdsAlertLink.prototype, "href", void 0);
|
|
@@ -7753,7 +7753,7 @@
|
|
|
7753
7753
|
property()
|
|
7754
7754
|
], SgdsAlertLink.prototype, "target", void 0);
|
|
7755
7755
|
|
|
7756
|
-
var css_248z$
|
|
7756
|
+
var css_248z$17 = css`:host{display:inline-flex}:host([variant=success]) .badge{background-color:var(--sgds-success-surface-default)}:host([variant=danger]) .badge{background-color:var(--sgds-danger-surface-default)}:host([variant=warning]) .badge{background-color:var(--sgds-warning-surface-default);color:var(--sgds-color-fixed-dark)}:host([variant=neutral]) .badge{background-color:var(--sgds-neutral-surface-default)}:host([variant=success][outlined]) .badge{background-color:var(--sgds-success-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-success-border-color-default)}:host([variant=danger][outlined]) .badge{background-color:var(--sgds-danger-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-danger-border-color-default)}:host([variant=warning][outlined]) .badge{background-color:var(--sgds-warning-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-warning-border-color-default)}:host([variant=neutral][outlined]) .badge{background-color:var(--sgds-neutral-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-neutral-border-color-default)}.badge{align-items:center;background-color:var(--sgds-primary-surface-default);border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-border-radius-sm);color:var(--sgds-color-fixed-light);display:inline-flex;font-size:var(--sgds-font-size-1);height:var(--sgds-dimension-24);justify-content:center;min-width:var(--sgds-dimension-24);padding:var(--sgds-padding-none) var(--sgds-padding-2-xs)}.badge.outlined{background-color:var(--sgds-primary-surface-muted);border:var(--sgds-border-width-1) solid var(--sgds-primary-border-color-default);color:var(--sgds-color-fixed-dark)}.badge-label{line-height:var(--sgds-line-height-min);padding:var(--sgds-padding-none) var(--sgds-padding-2-xs)}.badge-dismissible{padding-right:0}.badge-dimissible sgds-close-button{--sgds-close-btn-border-radius:var(--sgds-border-radius-sm)}slot::slotted(*){font-size:14px;font-weight:400}`;
|
|
7757
7757
|
|
|
7758
7758
|
/**
|
|
7759
7759
|
* @summary Badges can be used to highlight important bits of information such as labels, notifications & status.
|
|
@@ -7762,7 +7762,9 @@
|
|
|
7762
7762
|
* @slot icon - The slot for icon to the left of the badge text
|
|
7763
7763
|
*
|
|
7764
7764
|
* @event sgds-show - Emitted when the badge appears.
|
|
7765
|
-
* @event sgds-hide - Emitted
|
|
7765
|
+
* @event sgds-hide - Emitted when the badge is starting to close but has not closed.
|
|
7766
|
+
* @event sgds-after-show - Emitted after the badge has appeared
|
|
7767
|
+
* @event sgds-after-hide - Emitted after the badge has closed
|
|
7766
7768
|
*/
|
|
7767
7769
|
class SgdsBadge extends SgdsElement {
|
|
7768
7770
|
constructor() {
|
|
@@ -7782,7 +7784,24 @@
|
|
|
7782
7784
|
}
|
|
7783
7785
|
/**@internal */
|
|
7784
7786
|
_handleShowChange() {
|
|
7785
|
-
|
|
7787
|
+
if (this.show) {
|
|
7788
|
+
const sgdsShow = this.emit("sgds-show", { cancelable: true });
|
|
7789
|
+
if (sgdsShow.defaultPrevented) {
|
|
7790
|
+
this.show = false;
|
|
7791
|
+
return;
|
|
7792
|
+
}
|
|
7793
|
+
// animations if any go here
|
|
7794
|
+
this.emit("sgds-after-show");
|
|
7795
|
+
}
|
|
7796
|
+
else {
|
|
7797
|
+
const sgdsHide = this.emit("sgds-hide", { cancelable: true });
|
|
7798
|
+
if (sgdsHide.defaultPrevented) {
|
|
7799
|
+
this.show = true;
|
|
7800
|
+
return;
|
|
7801
|
+
}
|
|
7802
|
+
// animations if any go here
|
|
7803
|
+
this.emit("sgds-after-hide");
|
|
7804
|
+
}
|
|
7786
7805
|
}
|
|
7787
7806
|
render() {
|
|
7788
7807
|
return (this.dismissible && this.show) || !this.dismissible
|
|
@@ -7815,7 +7834,7 @@
|
|
|
7815
7834
|
: nothing;
|
|
7816
7835
|
}
|
|
7817
7836
|
}
|
|
7818
|
-
SgdsBadge.styles = [...SgdsElement.styles, css_248z$
|
|
7837
|
+
SgdsBadge.styles = [...SgdsElement.styles, css_248z$17];
|
|
7819
7838
|
/**@internal */
|
|
7820
7839
|
SgdsBadge.dependencies = {
|
|
7821
7840
|
"sgds-close-button": SgdsCloseButton
|
|
@@ -7836,7 +7855,7 @@
|
|
|
7836
7855
|
watch("show")
|
|
7837
7856
|
], SgdsBadge.prototype, "_handleShowChange", null);
|
|
7838
7857
|
|
|
7839
|
-
var css_248z$
|
|
7858
|
+
var css_248z$16 = css`:host([size=sm]) .overflow-btn{height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}.overflow-btn{align-items:center;background-color:var(--sgds-bg-transparent);border:0;border-radius:var(--sgds-border-radius-sm);cursor:pointer;display:flex;height:var(--sgds-dimension-32);justify-content:center;padding:0;position:relative;width:var(--sgds-dimension-32)}.overflow-btn:hover{background-color:var(--sgds-bg-translucent-subtle)}.overflow-btn:focus,.overflow-btn:focus-visible{background-color:var(--sgds-bg-translucent-subtle);box-shadow:var(--sgds-box-shadow-focus);outline:0}`;
|
|
7840
7859
|
|
|
7841
7860
|
/**
|
|
7842
7861
|
* @license
|
|
@@ -11819,9 +11838,9 @@
|
|
|
11819
11838
|
state()
|
|
11820
11839
|
], DropdownListElement.prototype, "prevDropdownItemNo", void 0);
|
|
11821
11840
|
|
|
11822
|
-
var css_248z$
|
|
11841
|
+
var css_248z$15 = css`.dropdown-menu{background-clip:padding-box;background-color:var(--sgds-surface-default);border-radius:var(--sgds-border-radius-md);box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 4px 8px 0 hsla(0,0%,5%,.12);color:var(--sgds-color-default);display:none;list-style:none;margin:0;max-height:var(--sgds-dimension-480);min-width:var(--sgds-dimension-280);overflow-y:auto;padding:var(--sgds-padding-xs) 0;position:absolute;text-align:left;z-index:1000}.dropdown-menu.show{display:block}.nav-tabs .dropdown-menu{border-top-left-radius:0;border-top-right-radius:0;margin-top:calc(var(--sgds-nav-tabs-border-width)*-1)}@media (min-width:576px){.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:768px){.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:992px){.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1200px){.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1400px){.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.sgds.navbar .dropdown-menu.megamenu{left:0;right:0;width:100%}.sgds.combobox>.dropdown-menu{min-width:100%}`;
|
|
11823
11842
|
|
|
11824
|
-
var css_248z$
|
|
11843
|
+
var css_248z$14 = css`.dropdown{display:flex;height:inherit;position:relative}`;
|
|
11825
11844
|
|
|
11826
11845
|
/**
|
|
11827
11846
|
* @summary `SgdsDropdown` toggles contextual overlays for displaying lists of links.
|
|
@@ -11900,7 +11919,7 @@
|
|
|
11900
11919
|
`;
|
|
11901
11920
|
}
|
|
11902
11921
|
}
|
|
11903
|
-
SgdsDropdown.styles = [...DropdownListElement.styles, css_248z$
|
|
11922
|
+
SgdsDropdown.styles = [...DropdownListElement.styles, css_248z$14, css_248z$15];
|
|
11904
11923
|
__decorate([
|
|
11905
11924
|
property({ type: Boolean, reflect: true, state: false })
|
|
11906
11925
|
], SgdsDropdown.prototype, "noFlip", void 0);
|
|
@@ -11917,7 +11936,7 @@
|
|
|
11917
11936
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
11918
11937
|
], SgdsDropdown.prototype, "_handleDisabled", null);
|
|
11919
11938
|
|
|
11920
|
-
var css_248z$
|
|
11939
|
+
var css_248z$13 = css`.dropdown-item{align-items:center;background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-color-default);cursor:pointer;display:flex;gap:var(--sgds-gap-sm);padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-align:inherit}.dropdown-item:not(.nav-link):hover{background-color:var(--sgds-bg-translucent-subtle)}.dropdown-item:not(.nav-link):focus,.dropdown-item:not(.nav-link):focus-visible{background-color:var(--sgds-bg-translucent-subtle);box-shadow:inset var(--sgds-form-box-shadow-focus);outline:0}.dropdown-item:not(.nav-link).active{background-color:var(--sgds-bg-translucent-subtle);color:var(--sgds-primary-color-default);text-decoration:none}.dropdown-item.disabled,.dropdown-item:disabled{opacity:var(--sgds-opacity-50);pointer-events:none}::slotted(*){color:inherit!important;display:flex;gap:var(--sgds-gap-sm);text-decoration:none!important}.nav-link{gap:var(--sgds-gap-xs);padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}.nav-link:hover{color:var(--sgds-primary-color-default)}.nav-link:focus,.nav-link:focus-visible{outline:0}.nav-link:focus-visible{box-shadow:var(--sgds-box-shadow-focus) inset;color:var(--sgds-primary-color-default)}.nav-link.active{background-color:var(--sgds-bg-translucent-subtle);color:var(--sgds-primary-color-default)}`;
|
|
11921
11940
|
|
|
11922
11941
|
/**
|
|
11923
11942
|
* @summary `SgdsDropdownItem` are navigation links built with `HTMLAnchorElement`. It should be used in the default slot of `SgdsDropdown`
|
|
@@ -11958,7 +11977,7 @@
|
|
|
11958
11977
|
`;
|
|
11959
11978
|
}
|
|
11960
11979
|
}
|
|
11961
|
-
SgdsDropdownItem.styles = [css_248z$
|
|
11980
|
+
SgdsDropdownItem.styles = [css_248z$14, css_248z$13];
|
|
11962
11981
|
SgdsDropdownItem.dependencies = {
|
|
11963
11982
|
"sgds-icon": SgdsIcon
|
|
11964
11983
|
};
|
|
@@ -11993,7 +12012,7 @@
|
|
|
11993
12012
|
`;
|
|
11994
12013
|
}
|
|
11995
12014
|
}
|
|
11996
|
-
SgdsOverflowMenu.styles = [...SgdsElement.styles, css_248z$
|
|
12015
|
+
SgdsOverflowMenu.styles = [...SgdsElement.styles, css_248z$16];
|
|
11997
12016
|
/** @internal */
|
|
11998
12017
|
SgdsOverflowMenu.dependencies = {
|
|
11999
12018
|
"sgds-dropdown": SgdsDropdown,
|
|
@@ -12004,7 +12023,7 @@
|
|
|
12004
12023
|
property({ type: String, reflect: true })
|
|
12005
12024
|
], SgdsOverflowMenu.prototype, "size", void 0);
|
|
12006
12025
|
|
|
12007
|
-
var css_248z
|
|
12026
|
+
var css_248z$12 = css`.breadcrumb{display:flex;gap:var(--sgds-gap-xs)}`;
|
|
12008
12027
|
|
|
12009
12028
|
/**
|
|
12010
12029
|
* @summary Breadcrumbs help users to navigate and understand where they are on the current website or service.
|
|
@@ -12075,7 +12094,7 @@
|
|
|
12075
12094
|
`;
|
|
12076
12095
|
}
|
|
12077
12096
|
}
|
|
12078
|
-
SgdsBreadcrumb.styles = [...SgdsElement.styles, css_248z
|
|
12097
|
+
SgdsBreadcrumb.styles = [...SgdsElement.styles, css_248z$12];
|
|
12079
12098
|
SgdsBreadcrumb.dependencies = {
|
|
12080
12099
|
"sgds-overflow-menu": SgdsOverflowMenu
|
|
12081
12100
|
};
|
|
@@ -12086,7 +12105,7 @@
|
|
|
12086
12105
|
query("slot")
|
|
12087
12106
|
], SgdsBreadcrumb.prototype, "defaultSlot", void 0);
|
|
12088
12107
|
|
|
12089
|
-
var css_248z$
|
|
12108
|
+
var css_248z$11 = css`.nav-link::slotted(a){align-items:center;color:var(--sgds-link-color-default);cursor:pointer;display:inline-flex;flex-shrink:0;gap:var(--sgds-gap-2-xs);height:var(--sgds-dimension-24);justify-content:center;text-decoration:none!important}.nav-link::slotted(a:focus),.nav-link::slotted(a:focus-visible),.nav-link::slotted(a:hover),.nav-link::slotted(a[active]){color:var( --sgds-link-color-emphasis)}.nav-link::slotted(a:focus),.nav-link::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus);outline:0}.nav-link::slotted(a[disabled]){cursor:not-allowed;opacity:var(--sgds-opacity-50)}:host([variant=danger]) .nav-link::slotted(a){--sgds-link-color-default:var(--sgds-danger-color-default);color:var(--sgds-link-color-default,--sgds-danger-color-default)}:host([variant=danger]) .nav-link::slotted(a:focus),:host([variant=danger]) .nav-link::slotted(a:focus-visible),:host([variant=danger]) .nav-link::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-danger-color-emphasis);color:var(--sgds-link-color-emphasis,--sgds-danger-color-emphasis)}:host([variant=light]) .nav-link::slotted(a){--sgds-link-color-default:var(--sgds-color-fixed-light);color:var(--sgds-link-color-default,--sgds-color-fixed-light)}:host([variant=light]) .nav-link::slotted(a:focus),:host([variant=light]) .nav-link::slotted(a:focus-visible),:host([variant=light]) .nav-link::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-fixed-light);color:var(--sgds-link-color-emphasis,--sgds-color-fixed-light)}:host([variant=dark]) .nav-link::slotted(a){--sgds-link-color-default:var(--sgds-color-fixed-dark);color:var(--sgds-link-color-default,--sgds-color-fixed-dark)}:host([variant=dark]) .nav-link::slotted(a:focus),:host([variant=dark]) .nav-link::slotted(a:focus-visible),:host([variant=dark]) .nav-link::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-fixed-dark);color:var(--sgds-link-color-emphasis,--sgds-color-fixed-dark)}:host([size=lg]) .nav-link::slotted(a){font-size:var(--sgds-font-size-3)!important;height:var(--sgds-dimension-32)}:host([size=sm]) .nav-link::slotted(a){font-size:var(--sgds-font-size-1)!important;height:var(--sgds-dimension-20)}`;
|
|
12090
12109
|
|
|
12091
12110
|
/**
|
|
12092
12111
|
* @summary Link allows users to click and navigate their way from page to page
|
|
@@ -12118,7 +12137,7 @@
|
|
|
12118
12137
|
return html$1 `<slot class="nav-link" @slotchange=${this._handleSlotChange}></slot>`;
|
|
12119
12138
|
}
|
|
12120
12139
|
}
|
|
12121
|
-
SgdsLink.styles = [...SgdsElement.styles, css_248z$
|
|
12140
|
+
SgdsLink.styles = [...SgdsElement.styles, css_248z$11];
|
|
12122
12141
|
__decorate([
|
|
12123
12142
|
property({ type: String, reflect: true })
|
|
12124
12143
|
], SgdsLink.prototype, "size", void 0);
|
|
@@ -12126,7 +12145,7 @@
|
|
|
12126
12145
|
property({ type: String, reflect: true })
|
|
12127
12146
|
], SgdsLink.prototype, "variant", void 0);
|
|
12128
12147
|
|
|
12129
|
-
var css_248z$
|
|
12148
|
+
var css_248z$10 = css`:host{align-items:center;display:flex;gap:var(--sgds-gap-xs)}:host([active]) .nav-link::slotted(*){--sgds-link-color-default:var(--sgds-color-default);color:var(--sgds-link-color-default,--sgds-color-default);pointer-events:none}:host([active]) .nav-link::slotted(:focus),:host([active]) .nav-link::slotted(:focus-visible),:host([active]) .nav-link::slotted(:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-link-color-emphasis,--sgds-color-default)}.separator svg{display:block}:host(:last-of-type) .separator{display:none}`;
|
|
12130
12149
|
|
|
12131
12150
|
/**
|
|
12132
12151
|
* @summary Breadcrumb Item are navigational links used in Breadcrumb component
|
|
@@ -12155,12 +12174,12 @@
|
|
|
12155
12174
|
`;
|
|
12156
12175
|
}
|
|
12157
12176
|
}
|
|
12158
|
-
SgdsBreadcrumbItem.styles = [...SgdsLink.styles, css_248z$
|
|
12177
|
+
SgdsBreadcrumbItem.styles = [...SgdsLink.styles, css_248z$10];
|
|
12159
12178
|
__decorate([
|
|
12160
12179
|
property({ type: Boolean, reflect: true })
|
|
12161
12180
|
], SgdsBreadcrumbItem.prototype, "active", void 0);
|
|
12162
12181
|
|
|
12163
|
-
var css_248z
|
|
12182
|
+
var css_248z$$ = css`:host{--btn-font-weight:var(--sgds-font-weight-regular);--btn-bg:var(--sgds-primary-surface-default);--btn-hover-bg:var(--sgds-primary-surface-emphasis);--btn-border-radius:var(--sgds-border-radius-md)}:host([variant=primary]){--btn-bg:var(--sgds-primary-surface-default);--btn-color:var(--sgds-color-fixed-light)}:host([variant=outline]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-primary-surface-translucent);--btn-color:var(--sgds-primary-color-default);--btn-border-width:var(--sgds-border-width-1);--btn-border-color:var(--sgds-primary-border-color-default)}:host([variant=ghost]){--btn-bg:var(--sgds-bg-transparent);--btn-hover-bg:var(--sgds-primary-surface-translucent);--btn-color:var(--sgds-primary-color-default)}:host([variant=danger]){--btn-bg:var(--sgds-danger-surface-default);--btn-hover-bg:var(--sgds-danger-surface-emphasis);--btn-color:var(--sgds-color-fixed-light)}:host([variant=ghost]) .btn,:host([variant=outline]) .btn,:host([variant=primary]) .btn{color:var(--btn-color)}:host([variant=outline]) .btn{border:var(--btn-border-width) solid var(--btn-border-color)}:host([size=lg]) .btn{font-size:var(--sgds-font-size-3);height:var(--sgds-dimension-56);min-width:var(--sgds-dimension-112);padding:0 var(--sgds-padding-xl)}:host([size=sm]) .btn{font-size:var(--sgds-font-size-1);height:var(--sgds-dimension-40);line-height:var(--sgds-line-height-min);min-width:var(--sgds-dimension-80);padding:0 var(--sgds-padding-md)}.btn{align-items:center;background-color:var(--btn-bg);border:1px solid var(--sgds-border-color-transparent);border-radius:var(--btn-border-radius);color:var(--sgds-color-fixed-light);cursor:pointer;display:inline-flex;font-size:var(--sgds-font-size-2);font-weight:var(--btn-font-weight);gap:var(--sgds-gap-2-xs);height:var(--sgds-dimension-48);justify-content:center;line-height:var(--sgds-line-height-body);min-width:var(--sgds-dimension-96);padding:0 var(--sgds-padding-lg);text-align:center;text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;user-select:none;vertical-align:middle;white-space:nowrap;width:inherit}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn.active,.btn:hover{background-color:var(--btn-hover-bg)}.btn:focus,.btn:focus-visible{background-color:var(--btn-hover-bg);border-color:transparent;box-shadow:var(--sgds-box-shadow-focus);outline:0}.btn.disabled,.btn:disabled{color:var(--btn-color);cursor:not-allowed;opacity:var(--sgds-opacity-50)}.btn slot::slotted(*){color:var(--btn-color)}`;
|
|
12164
12183
|
|
|
12165
12184
|
class ButtonElement extends SgdsElement {
|
|
12166
12185
|
constructor() {
|
|
@@ -12202,7 +12221,7 @@
|
|
|
12202
12221
|
}
|
|
12203
12222
|
}
|
|
12204
12223
|
}
|
|
12205
|
-
ButtonElement.styles = [...SgdsElement.styles, css_248z
|
|
12224
|
+
ButtonElement.styles = [...SgdsElement.styles, css_248z$$];
|
|
12206
12225
|
__decorate([
|
|
12207
12226
|
query(".btn")
|
|
12208
12227
|
], ButtonElement.prototype, "button", void 0);
|
|
@@ -12288,7 +12307,7 @@
|
|
|
12288
12307
|
}
|
|
12289
12308
|
}
|
|
12290
12309
|
|
|
12291
|
-
var css_248z$
|
|
12310
|
+
var css_248z$_ = css`:host{display:inline-block}:host([fullWidth]),:host([fullWidth]) .btn{width:100%}:host([fullWidth]) .btn.has-left-icon{justify-content:flex-start}:host([fullWidth]) .btn.has-right-icon{justify-content:space-between}:host([fullWidth]) .btn.has-left-icon.has-right-icon{justify-content:center}.btn span{padding:0 var(--sgds-padding-2-xs)}`;
|
|
12292
12311
|
|
|
12293
12312
|
/**
|
|
12294
12313
|
* @summary Custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
|
|
@@ -12389,7 +12408,7 @@
|
|
|
12389
12408
|
`;
|
|
12390
12409
|
}
|
|
12391
12410
|
}
|
|
12392
|
-
SgdsButton.styles = [...ButtonElement.styles, css_248z$
|
|
12411
|
+
SgdsButton.styles = [...ButtonElement.styles, css_248z$18, css_248z$_];
|
|
12393
12412
|
__decorate([
|
|
12394
12413
|
state()
|
|
12395
12414
|
], SgdsButton.prototype, "_hasLeftIcon", void 0);
|
|
@@ -12418,55 +12437,102 @@
|
|
|
12418
12437
|
property({ type: Boolean, reflect: true })
|
|
12419
12438
|
], SgdsButton.prototype, "fullWidth", void 0);
|
|
12420
12439
|
|
|
12421
|
-
var css_248z$
|
|
12440
|
+
var css_248z$Z = css`:host([orientation=horizontal]) .card{flex-direction:row}:host(:not([hideBorder])) .card{border:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}:host([orientation=horizontal]) .card-body{flex:1}:host([orientation=horizontal]) .card-media{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-xl)}:host([orientation=horizontal]) .card-image{width:40%}:host([imagePosition=after]) .card-image{order:1}:host([orientation=vertical][imagePosition=after]) slot[name=image]::slotted(img){border-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-top-left-radius:var(--sgds-border-radius-none);border-top-right-radius:var(--sgds-border-radius-none)}:host([orientation=horizontal][imagePosition=after]) slot[name=image]::slotted(img){border-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-bottom-left-radius:var(--sgds-border-radius-none);border-top-left-radius:var(--sgds-border-radius-none)}:host([orientation=horizontal]) slot[name=image]::slotted(img){border-bottom-left-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-top-right-radius:var(--sgds-border-radius-none);height:100%;object-fit:cover}:host([orientation=vertical][imageAdjustment="padding around"]) .card-image{margin:var(--sgds-margin-sm) var(--sgds-margin-sm) var(--sgds-padding-none)}:host([orientation=vertical][imageAdjustment="padding around"][imagePosition=after]) .card-image{margin:var(--sgds-margin-none) var(--sgds-margin-sm) var(--sgds-margin-sm)}:host([orientation=horizontal][imageAdjustment="padding around"]) .card-image{margin:var(--sgds-margin-sm) var(--sgds-margin-none) var(--sgds-margin-sm) var(--sgds-margin-sm)}:host([orientation=horizontal][imageAdjustment="padding around"][imagePosition=after]) .card-image{margin:var(--sgds-margin-sm) var(--sgds-margin-sm) var(--sgds-margin-sm) var(--sgds-margin-none)}:host([orientation][imageAdjustment="padding around"]) slot[name=image]::slotted(img){border-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1))}:host([orientation=vertical]:not([imageAdjustment="aspect ratio"])) slot[name=image]::slotted(img){height:auto}:host([orientation=vertical][imageAdjustment="aspect ratio"]) slot[name=image]::slotted(img){object-fit:cover}.card{word-wrap:break-word;background-clip:border-box;background-color:var(--sgds-surface-default);border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-border-radius-md);box-shadow:none;display:flex;flex-direction:column;height:100%;min-width:0;position:relative;transition:box-shadow .3s ease}a.card{color:initial;text-decoration:none}@media (prefers-reduced-motion:reduce){.card{transition:none}}.card.disabled{cursor:not-allowed;opacity:var(--sgds-opacity-50)}a.card:focus{outline:0}a.card:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus)}.card-tinted-bg{border-radius:var(--sgds-border-radius-md);bottom:0;left:0;opacity:var(--sgds-opacity-0);position:absolute;right:0;top:0}.card-image{flex:1;position:relative}.card-media{align-items:flex-start;display:flex;justify-content:space-between;line-height:0;padding:var(--sgds-padding-xl) var(--sgds-padding-xl) var(--sgds-padding-none)}.card-thumbnail{align-items:center;border:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);border-radius:var(--sgds-border-radius-full);display:flex;height:var(--sgds-dimension-80);justify-content:center;width:var(--sgds-dimension-80)}.card-body{color:var(--sgds-body-color-default);display:flex;flex:1 1 auto;flex-direction:column;gap:var(--sgds-gap-xl);padding:var(--sgds-padding-xl);z-index:1}.card-header-container{display:flex;flex-direction:column;gap:var(--sgds-gap-sm)}.card-header{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}.card-title{--sgds-font-size-5:var(--sgds-font-size-4);--sgds-font-size-6:var(--sgds-font-size-4);--sgds-margin-2-xs:var(--sgds-margin-none);--sgds-font-weight-bold:var(--sgds-font-weight-semibold);color:var(--sgds-body-color-default);font-size:var(--sgds-font-size-4);font-weight:var(--sgds-font-weight-semibold)}.card-subtitle,.card-text,.card-title{margin-bottom:var(--sgds-margin-none)}slot[name=subtitle]::slotted(*){--sgds-margin-2-xs:var(--sgds-margin-none);--sgds-margin-xs:var(--sgds-margin-none);--sgds-font-size-4:var(--sgds-font-size-1);--sgds-font-size-5:var(--sgds-font-size-1);--sgds-font-size-6:var(--sgds-font-size-1);--sgds-font-weight-bold:var(--sgds-font-weight-semibold);--sgds-line-height-heading:var(--sgds-line-height-min);--sgds-letter-spacing-tight:var(--sgds-letter-spacing-wide);color:var(--sgds-color-default);font-size:var(--sgds-font-size-1);font-weight:var(--sgds-font-weight-semibold);letter-spacing:var(--sgds-letter-spacing-wide);line-height:var(--sgds-line-height-min);margin:var(--sgds-margin-none);text-transform:uppercase}slot[name=title]::slotted(a){--sgds-font-size-2:var(--sgds-font-size-4);--sgds-font-weight-regular:var(--sgds-font-weight-semibold);color:var(--sgds-link-color-default);font-size:var(--sgds-font-size-4);font-weight:var(--sgds-font-weight-semibold);text-decoration:none!important}slot[name=description]::slotted(*){color:var(--sgds-color-subtle)}slot[name=image]::slotted(img){border-top-left-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));border-top-right-radius:calc(var(--sgds-border-radius-md) - var(--sgds-border-width-1));display:block;width:100%}slot[name=link]::slotted(*){font-weight:700;margin-top:auto;padding-top:var(--sgds-padding-sm)}slot[name=link]::slotted(a){color:var(--sgds-link-color-default);display:inline-flex;gap:var(--sgds-gap-2-xs);height:auto!important;text-decoration:none!important}slot[name=link]::slotted(a:focus),slot[name=link]::slotted(a:hover),slot[name=title]::slotted(a:focus),slot[name=title]::slotted(a:hover){color:var(--sgds-link-color-emphasis)}slot[name=link]::slotted(a:focus),slot[name=title]::slotted(a:focus){outline:0}slot[name=link]::slotted(a:focus-visible),slot[name=title]::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus)}`;
|
|
12422
12441
|
|
|
12423
|
-
var css_248z$
|
|
12442
|
+
var css_248z$Y = css`.text-primary{color:var(--sgds-primary-rgb)!important}.text-secondary{color:var(--sgds-secondary-rgb)!important}.text-success{color:var(--sgds-success-rgb)!important}.text-info{color:var(--sgds-info-rgb)!important}.text-warning{color:var(--sgds-warning-rgb)!important}.text-danger{color:var(--sgds-danger-rgb)!important}.text-light{color:var(--sgds-light-rgb)!important}.text-dark{color:var(--sgds-dark-rgb)!important}.text-muted{color:var(--sgds-secondary-color)!important}`;
|
|
12424
12443
|
|
|
12425
|
-
var css_248z$
|
|
12444
|
+
var css_248z$X = css`.bg-primary{background-color:var(--sgds-primary)!important}.bg-secondary{background-color:var(--sgds-secondary)!important}.bg-success{background-color:var(--sgds-success)!important}.bg-info{background-color:var(--sgds-info)!important}.bg-warning{background-color:var(--sgds-warning)!important}.bg-danger{background-color:var(--sgds-danger)!important}.bg-light{background-color:var(--sgds-light)!important}.bg-dark{background-color:var(--sgds-dark)!important}`;
|
|
12426
12445
|
|
|
12427
|
-
var css_248z$
|
|
12446
|
+
var css_248z$W = css`.border-primary{border-color:var(--sgds-primary)!important}.border-secondary{border-color:var(--sgds-secondary)!important}.border-success{border-color:var(--sgds-success)!important}.border-info{border-color:var(--sgds-info)!important}.border-warning{border-color:var(--sgds-warning)!important}.border-danger{border-color:var(--sgds-danger)!important}.border-light{border-color:var(--sgds-light)!important}.border-dark{border-color:var(--sgds-dark)!important}`;
|
|
12428
12447
|
|
|
12429
|
-
var css_248z$
|
|
12448
|
+
var css_248z$V = css`.h1,.h2,.h3,.h4,.h5,.h6 ::slotted(h6),::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),h1,h2,h3,h4,h5,h6{color:var(--sgds-heading-color);font-weight:700;line-height:1.2;margin-bottom:.5rem;margin-top:0}.h1,::slotted(h1),h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,::slotted(h1),h1{font-size:2.5rem}}.h2,::slotted(h2),h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,::slotted(h2),h2{font-size:2rem}}.h3,::slotted(h3),h3{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h3,::slotted(h3),h3{font-size:1.5rem}}.h4,::slotted(h4),h4{font-size:1.125rem}.h5,.h6 ::slotted(h6),::slotted(h5),h5,h6{font-size:1rem}.h1,::slotted(h1),h1{line-height:1.2}.h2,::slotted(h2),h2{line-height:1.25}.h3,::slotted(h3),h3{line-height:1.33}.h4,::slotted(h4),h4{line-height:1.78}.h5,.h6 ::slotted(h6),::slotted(h5),h5,h6{line-height:1.2}`;
|
|
12430
12449
|
|
|
12431
|
-
var css_248z$
|
|
12450
|
+
var css_248z$U = css`p{margin-bottom:1.5rem;margin-top:0}`;
|
|
12432
12451
|
|
|
12433
12452
|
class CardElement extends SgdsElement {
|
|
12434
12453
|
constructor() {
|
|
12435
12454
|
super(...arguments);
|
|
12455
|
+
/** Extends the link passed in slot[name="link"] to the entire card */
|
|
12456
|
+
this.stretchedLink = false;
|
|
12457
|
+
/** Disables the card */
|
|
12458
|
+
this.disabled = false;
|
|
12436
12459
|
/** When true, hides the default border of the card. */
|
|
12437
12460
|
this.hideBorder = false;
|
|
12438
12461
|
/** When true, applies a tinted background color to the card. */
|
|
12439
12462
|
this.tinted = false;
|
|
12463
|
+
/** Sets the orientation of the card. Available options: `vertical`, `horizontal` */
|
|
12464
|
+
this.orientation = "vertical";
|
|
12465
|
+
}
|
|
12466
|
+
firstUpdated() {
|
|
12467
|
+
if (this.disabled && this._linkNode.length > 0) {
|
|
12468
|
+
const hyperlink = this._linkNode[0].querySelector("a");
|
|
12469
|
+
hyperlink.setAttribute("disabled", "true");
|
|
12470
|
+
hyperlink.removeAttribute("href");
|
|
12471
|
+
}
|
|
12472
|
+
}
|
|
12473
|
+
handleTitleSlotChange(e) {
|
|
12474
|
+
const childNodes = e.target.assignedNodes({ flatten: true });
|
|
12475
|
+
if (this.stretchedLink && childNodes[0] instanceof HTMLAnchorElement) {
|
|
12476
|
+
const hyperlink = childNodes[0].querySelector("a") || childNodes[0];
|
|
12477
|
+
hyperlink.removeAttribute("href");
|
|
12478
|
+
}
|
|
12479
|
+
return;
|
|
12480
|
+
}
|
|
12481
|
+
handleLinkSlotChange(e) {
|
|
12482
|
+
const childNodes = e.target.assignedNodes({ flatten: true });
|
|
12483
|
+
if (childNodes.length > 1) {
|
|
12484
|
+
return console.error("Multiple elements passed into SgdsCard's link slot");
|
|
12485
|
+
}
|
|
12486
|
+
if (!this.stretchedLink)
|
|
12487
|
+
return;
|
|
12488
|
+
if (childNodes[0] instanceof HTMLAnchorElement || childNodes[0] instanceof SgdsLink) {
|
|
12489
|
+
const hyperlink = (childNodes[0].querySelector("a") || childNodes[0]);
|
|
12490
|
+
this.card.setAttribute("href", hyperlink.href);
|
|
12491
|
+
const linkSlot = this.shadowRoot.querySelector("slot[name='link']");
|
|
12492
|
+
linkSlot.style.display = "none";
|
|
12493
|
+
}
|
|
12440
12494
|
}
|
|
12441
12495
|
}
|
|
12442
|
-
CardElement.styles = [...SgdsElement.styles, css_248z$
|
|
12496
|
+
CardElement.styles = [...SgdsElement.styles, css_248z$Y, css_248z$X, css_248z$W, css_248z$V, css_248z$U, css_248z$Z];
|
|
12497
|
+
__decorate([
|
|
12498
|
+
query("a.card")
|
|
12499
|
+
], CardElement.prototype, "card", void 0);
|
|
12500
|
+
__decorate([
|
|
12501
|
+
queryAssignedNodes({ slot: "link", flatten: true })
|
|
12502
|
+
], CardElement.prototype, "_linkNode", void 0);
|
|
12503
|
+
__decorate([
|
|
12504
|
+
property({ type: Boolean, reflect: true })
|
|
12505
|
+
], CardElement.prototype, "stretchedLink", void 0);
|
|
12506
|
+
__decorate([
|
|
12507
|
+
property({ type: Boolean, reflect: true })
|
|
12508
|
+
], CardElement.prototype, "disabled", void 0);
|
|
12443
12509
|
__decorate([
|
|
12444
12510
|
property({ type: Boolean, reflect: true })
|
|
12445
12511
|
], CardElement.prototype, "hideBorder", void 0);
|
|
12446
12512
|
__decorate([
|
|
12447
12513
|
property({ type: Boolean, reflect: true })
|
|
12448
12514
|
], CardElement.prototype, "tinted", void 0);
|
|
12515
|
+
__decorate([
|
|
12516
|
+
property({ type: String, reflect: true })
|
|
12517
|
+
], CardElement.prototype, "orientation", void 0);
|
|
12449
12518
|
|
|
12450
|
-
var css_248z$
|
|
12519
|
+
var css_248z$T = css`:host([tinted]) .card-tinted-bg{background-color:var(--sgds-bg-translucent-subtle);opacity:var(--sgds-opacity-50)}slot[name=menu]::slotted(*){position:absolute;right:20px;top:20px;z-index:10}`;
|
|
12451
12520
|
|
|
12452
12521
|
/**
|
|
12453
12522
|
* @summary Cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.
|
|
12523
|
+
* @slot default - The content area of the card, placed directly under the title. Accepts any HTML or custom elements.
|
|
12524
|
+
* @slot menu - Accepts an element for an overflow or contextual menu, positioned at the top-right corner of the card. Typically used for action menus or dropdowns.
|
|
12454
12525
|
* @slot image - Accepts an image or svg element of the card. Only a single element is allowed to be passed in.
|
|
12455
12526
|
* @slot icon - Accepts an icon element to visually represent the card. Only a single element is allowed to be passed in.
|
|
12456
12527
|
* @slot subtitle - The subtitle of the card
|
|
12457
12528
|
* @slot title - The title of the card
|
|
12458
12529
|
* @slot description - The paragrapher text of the card
|
|
12530
|
+
* @slot lower - Accepts any additional content to be displayed below the card description, such as badges, metadata, or supplementary information.
|
|
12459
12531
|
* @slot link - Accepts an anchor element. Only a single element is allowed to be passed in.
|
|
12460
12532
|
*/
|
|
12461
12533
|
class SgdsCard extends CardElement {
|
|
12462
12534
|
constructor() {
|
|
12463
12535
|
super(...arguments);
|
|
12464
|
-
/** Extends the link passed in slot[name="link"] to the entire card */
|
|
12465
|
-
this.stretchedLink = false;
|
|
12466
|
-
/** Disables the card */
|
|
12467
|
-
this.disabled = false;
|
|
12468
|
-
/** Sets the orientation of the card. Available options: `vertical`, `horizontal` */
|
|
12469
|
-
this.orientation = "vertical";
|
|
12470
12536
|
/** Sets the image position of the card. Available options: `before`, `after` */
|
|
12471
12537
|
this.imagePosition = "before";
|
|
12472
12538
|
/** Controls how the image is sized and aligned within the card. Available options: `default`, `padding around`, `aspect ratio` */
|
|
@@ -12478,36 +12544,10 @@
|
|
|
12478
12544
|
icon.style.display = "none";
|
|
12479
12545
|
}
|
|
12480
12546
|
if (this._iconNode.length === 0) {
|
|
12481
|
-
const
|
|
12482
|
-
|
|
12483
|
-
}
|
|
12484
|
-
if (this.disabled && this._linkNode.length > 0) {
|
|
12485
|
-
const hyperlink = this._linkNode[0].querySelector("a");
|
|
12486
|
-
hyperlink.setAttribute("disabled", "true");
|
|
12487
|
-
hyperlink.removeAttribute("href");
|
|
12547
|
+
const media = this.shadowRoot.querySelector(".card-media");
|
|
12548
|
+
media.style.display = "none";
|
|
12488
12549
|
}
|
|
12489
12550
|
}
|
|
12490
|
-
handleTitleSlotChange(e) {
|
|
12491
|
-
const childNodes = e.target.assignedNodes({ flatten: true });
|
|
12492
|
-
if (this.stretchedLink && childNodes[0] instanceof HTMLAnchorElement) {
|
|
12493
|
-
const hyperlink = childNodes[0].querySelector("a") || childNodes[0];
|
|
12494
|
-
hyperlink.removeAttribute("href");
|
|
12495
|
-
}
|
|
12496
|
-
return;
|
|
12497
|
-
}
|
|
12498
|
-
handleLinkSlotChange(e) {
|
|
12499
|
-
const childNodes = e.target.assignedNodes({ flatten: true });
|
|
12500
|
-
if (childNodes.length > 1) {
|
|
12501
|
-
return console.error("Multiple elements passed into SgdsCard's link slot");
|
|
12502
|
-
}
|
|
12503
|
-
if (this.stretchedLink && childNodes[0] instanceof HTMLAnchorElement) {
|
|
12504
|
-
const hyperlink = childNodes[0].querySelector("a") || childNodes[0];
|
|
12505
|
-
this.card.setAttribute("href", hyperlink.href);
|
|
12506
|
-
const linkSlot = this.shadowRoot.querySelector("slot[name='link']");
|
|
12507
|
-
linkSlot.style.display = "none";
|
|
12508
|
-
}
|
|
12509
|
-
return;
|
|
12510
|
-
}
|
|
12511
12551
|
handleImgSlotChange(e) {
|
|
12512
12552
|
const childNodes = e.target.assignedNodes({ flatten: true });
|
|
12513
12553
|
if (childNodes.length > 1) {
|
|
@@ -12524,48 +12564,39 @@
|
|
|
12524
12564
|
})}"
|
|
12525
12565
|
tabindex=${cardTabIndex}
|
|
12526
12566
|
>
|
|
12567
|
+
<div class="card-tinted-bg"></div>
|
|
12568
|
+
<slot name="menu"></slot>
|
|
12527
12569
|
<div class="card-image">
|
|
12528
12570
|
<slot name="image" @slotchange=${this.handleImgSlotChange}></slot>
|
|
12529
12571
|
</div>
|
|
12530
|
-
<div class="card-
|
|
12572
|
+
<div class="card-media">
|
|
12531
12573
|
<slot name="icon"></slot>
|
|
12532
12574
|
</div>
|
|
12533
12575
|
<div class="card-body">
|
|
12534
|
-
<div class="card-header">
|
|
12535
|
-
<
|
|
12536
|
-
|
|
12576
|
+
<div class="card-header-container">
|
|
12577
|
+
<div class="card-header">
|
|
12578
|
+
<slot name="subtitle"></slot>
|
|
12579
|
+
<h3 class="card-title"><slot name="title" @slotchange=${this.handleTitleSlotChange}></slot></h3>
|
|
12580
|
+
</div>
|
|
12581
|
+
<slot></slot>
|
|
12537
12582
|
</div>
|
|
12538
12583
|
<p class="card-text">
|
|
12539
12584
|
<slot name="description"></slot>
|
|
12540
12585
|
</p>
|
|
12586
|
+
<slot name="lower"></slot>
|
|
12541
12587
|
<slot name="link" @slotchange=${this.handleLinkSlotChange}></slot>
|
|
12542
12588
|
</div>
|
|
12543
12589
|
</${tag}>
|
|
12544
12590
|
`;
|
|
12545
12591
|
}
|
|
12546
12592
|
}
|
|
12547
|
-
SgdsCard.styles = [...CardElement.styles, css_248z$
|
|
12548
|
-
__decorate([
|
|
12549
|
-
query("a.card")
|
|
12550
|
-
], SgdsCard.prototype, "card", void 0);
|
|
12593
|
+
SgdsCard.styles = [...CardElement.styles, css_248z$T];
|
|
12551
12594
|
__decorate([
|
|
12552
12595
|
queryAssignedNodes({ slot: "image", flatten: true })
|
|
12553
12596
|
], SgdsCard.prototype, "_imageNode", void 0);
|
|
12554
12597
|
__decorate([
|
|
12555
12598
|
queryAssignedNodes({ slot: "icon", flatten: true })
|
|
12556
12599
|
], SgdsCard.prototype, "_iconNode", void 0);
|
|
12557
|
-
__decorate([
|
|
12558
|
-
queryAssignedNodes({ slot: "link", flatten: true })
|
|
12559
|
-
], SgdsCard.prototype, "_linkNode", void 0);
|
|
12560
|
-
__decorate([
|
|
12561
|
-
property({ type: Boolean, reflect: true })
|
|
12562
|
-
], SgdsCard.prototype, "stretchedLink", void 0);
|
|
12563
|
-
__decorate([
|
|
12564
|
-
property({ type: Boolean, reflect: true })
|
|
12565
|
-
], SgdsCard.prototype, "disabled", void 0);
|
|
12566
|
-
__decorate([
|
|
12567
|
-
property({ type: String, reflect: true })
|
|
12568
|
-
], SgdsCard.prototype, "orientation", void 0);
|
|
12569
12600
|
__decorate([
|
|
12570
12601
|
property({ type: String, reflect: true })
|
|
12571
12602
|
], SgdsCard.prototype, "imagePosition", void 0);
|
|
@@ -12647,13 +12678,13 @@
|
|
|
12647
12678
|
*/
|
|
12648
12679
|
const live = directive(LiveDirective);
|
|
12649
12680
|
|
|
12650
|
-
var css_248z$
|
|
12681
|
+
var css_248z$S = css`.invalid-feedback-container{display:flex;gap:var(--sgds-form-gap-sm)}.invalid-feedback,.invalid-feedback-container{color:var(--sgds-form-danger-color-default);line-height:var(--sgds-line-height-min)}.invalid-feedback{font-size:var(--sgds-font-size-1);font-weight:var(--sgds-font-weight-regular)}.valid-icon{color:var(--sgds-form-success-color-default)}`;
|
|
12651
12682
|
|
|
12652
|
-
var css_248z$
|
|
12683
|
+
var css_248z$R = css`.form-text{color:var(--sgds-form-color-subtle);font-size:var(--sgds-font-size-1);line-height:var(--sgds-line-height-min)}.form-text.disabled{opacity:var(--sgds-opacity-50)}`;
|
|
12653
12684
|
|
|
12654
|
-
var css_248z$
|
|
12685
|
+
var css_248z$Q = css`.form-label{color:var(--sgds-form-color-default);margin-bottom:0}.form-label.disabled{opacity:var(--sgds-opacity-50)}.form-check-label{color:var(--sgds-form-color-default)}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:not-allowed}`;
|
|
12655
12686
|
|
|
12656
|
-
var css_248z$
|
|
12687
|
+
var css_248z$P = css`.form-control::placeholder{color:var(--sgds-form-color-subtle);font-family:var(--sgds-font-family-brand);font-weight:var(--sgds-font-weight-light);line-height:var(--sgds-line-height-body)}`;
|
|
12657
12688
|
|
|
12658
12689
|
class FormControlElement extends SgdsElement {
|
|
12659
12690
|
constructor() {
|
|
@@ -12680,7 +12711,7 @@
|
|
|
12680
12711
|
}
|
|
12681
12712
|
}
|
|
12682
12713
|
}
|
|
12683
|
-
FormControlElement.styles = [...SgdsElement.styles, css_248z$
|
|
12714
|
+
FormControlElement.styles = [...SgdsElement.styles, css_248z$S, css_248z$R, css_248z$Q, css_248z$P];
|
|
12684
12715
|
__decorate([
|
|
12685
12716
|
property({ reflect: true })
|
|
12686
12717
|
], FormControlElement.prototype, "label", void 0);
|
|
@@ -12949,7 +12980,7 @@
|
|
|
12949
12980
|
return ToBeValidatedElement;
|
|
12950
12981
|
};
|
|
12951
12982
|
|
|
12952
|
-
var css_248z$
|
|
12983
|
+
var css_248z$O = css`:host{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}input{margin:0}.form-check{display:flex;gap:var(--sgds-form-gap-md);padding:var(--sgds-form-padding-inline-sm) 0}.form-check-input,.form-check-input-container{height:var(--sgds-form-height-sm);width:var(--sgds-form-width-xs)}.form-check-input{appearance:none;background-color:var(--sgds-form-surface-default);background-image:var(--sgds-radio-bg-image);background-position:50%;background-repeat:no-repeat;background-size:auto;border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--sgds-form-border-radius-md)}:host(:not([disabled]):not([invalid]):not([checked]):not([indeterminate])) .form-check-input:hover{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis)}.form-check-input:focus,.form-check-input:focus-visible{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);box-shadow:var(--sgds-form-box-shadow-focus);outline:0}.form-check-input:checked,.form-check-input[checked]{--sgds-radio-bg-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" fill="none"><path d="M14.347 3.979a.522.522 0 0 1 0 .739L7.043 12.02a.521.521 0 0 1-.738 0L2.653 8.369a.522.522 0 1 1 .739-.738l3.282 3.283 6.934-6.935a.52.52 0 0 1 .739 0Z" fill="%23fff"/></svg>');background-color:var(--sgds-form-primary-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent)}.form-check-input:checked:focus,.form-check-input:checked:hover,.form-check-input[checked]:focus-visible,.form-check-input[checked]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}.form-check-input:indeterminate,.form-check-input[indeterminate]{--sgds-radio-bg-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5Z" fill="%23fff"/></svg>');background-color:var(--sgds-form-primary-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent)}.form-check-input:indeterminate:focus,.form-check-input:indeterminate:hover,.form-check-input[indeterminate]:focus-visible,.form-check-input[indeterminate]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}:host([disabled]) .form-check{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.form-check-input.is-invalid{border:var(--sgds-form-border-width-thick) solid var(--sgds-form-danger-border-color-default)}.form-check-input:checked.is-invalid,.form-check-input:indeterminate.is-invalid,.form-check-input[checked].is-invalid,.form-check-input[indeterminate].is-invalid{background-color:var(--sgds-form-danger-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent)}.form-check-label{width:100%}`;
|
|
12953
12984
|
|
|
12954
12985
|
/**
|
|
12955
12986
|
* @summary Checkbox component is used when you require users to select multiple items from a list.
|
|
@@ -13113,7 +13144,7 @@
|
|
|
13113
13144
|
`;
|
|
13114
13145
|
}
|
|
13115
13146
|
}
|
|
13116
|
-
SgdsCheckbox.styles = [...FormControlElement.styles, css_248z$
|
|
13147
|
+
SgdsCheckbox.styles = [...FormControlElement.styles, css_248z$O];
|
|
13117
13148
|
__decorate([
|
|
13118
13149
|
property({ type: String, reflect: true })
|
|
13119
13150
|
], SgdsCheckbox.prototype, "value", void 0);
|
|
@@ -13145,7 +13176,7 @@
|
|
|
13145
13176
|
watch("_isTouched", { waitUntilFirstUpdate: true })
|
|
13146
13177
|
], SgdsCheckbox.prototype, "_handleIsTouched", null);
|
|
13147
13178
|
|
|
13148
|
-
var css_248z$
|
|
13179
|
+
var css_248z$N = css`:host{--sgds-checkbox-group-gap:var(--sgds-spacer-2)}fieldset{border:0;gap:var(--sgds-form-gap-md);margin:0;min-width:0;padding:0}.label-hint-container,fieldset{display:flex;flex-direction:column}.label-hint-container{gap:var(--sgds-form-gap-sm)}.label-hint-container .form-label{color:var(--sgds-form-color-default);font-size:var(--sgds-font-size-2);font-weight:var(--sgds-font-weight-regular)}.checkbox-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.checkbox-group-validation-input{display:none}`;
|
|
13149
13180
|
|
|
13150
13181
|
/**
|
|
13151
13182
|
* @summary CheckboxGroup is a form component for multiselection of checkboxes.
|
|
@@ -13343,7 +13374,7 @@
|
|
|
13343
13374
|
`;
|
|
13344
13375
|
}
|
|
13345
13376
|
}
|
|
13346
|
-
SgdsCheckboxGroup.styles = [...FormControlElement.styles, css_248z$
|
|
13377
|
+
SgdsCheckboxGroup.styles = [...FormControlElement.styles, css_248z$N];
|
|
13347
13378
|
__decorate([
|
|
13348
13379
|
property({ reflect: true })
|
|
13349
13380
|
], SgdsCheckboxGroup.prototype, "label", void 0);
|
|
@@ -13518,7 +13549,7 @@
|
|
|
13518
13549
|
}
|
|
13519
13550
|
}
|
|
13520
13551
|
}
|
|
13521
|
-
SelectElement.styles = [...DropdownListElement.styles, css_248z$
|
|
13552
|
+
SelectElement.styles = [...DropdownListElement.styles, css_248z$15, css_248z$R, css_248z$S];
|
|
13522
13553
|
__decorate([
|
|
13523
13554
|
property({ reflect: true })
|
|
13524
13555
|
], SelectElement.prototype, "label", void 0);
|
|
@@ -13574,7 +13605,7 @@
|
|
|
13574
13605
|
queryAsync("input.form-control")
|
|
13575
13606
|
], SelectElement.prototype, "_input", void 0);
|
|
13576
13607
|
|
|
13577
|
-
var css_248z$
|
|
13608
|
+
var css_248z$M = css`:host([active]) .dropdown-item{background-color:var(--sgds-primary-surface-translucent)}.dropdown-item{background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-color-default);cursor:pointer;height:100%;padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-align:inherit}.dropdown-item .normal-item-content{align-items:center;display:flex;justify-content:space-between}:host([active]) .dropdown-item .normal-item-content{color:var(--sgds-primary-bg-default)}:host([active]) .dropdown-item .normal-item-content sgds-icon{fill:var(--sgds-primary-bg-default);color:var(--sgds-primary-bg-default)}.dropdown-item:hover{background:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus,.dropdown-item:focus-visible{background:var(--sgds-bg-translucent-subtle);box-shadow:inset var(--sgds-form-box-shadow-focus);outline:0}`;
|
|
13578
13609
|
|
|
13579
13610
|
class ComboBoxItem extends SgdsElement {
|
|
13580
13611
|
constructor() {
|
|
@@ -13642,7 +13673,7 @@
|
|
|
13642
13673
|
"sgds-icon": SgdsIcon,
|
|
13643
13674
|
"sgds-checkbox": SgdsCheckbox
|
|
13644
13675
|
};
|
|
13645
|
-
ComboBoxItem.styles = [css_248z$
|
|
13676
|
+
ComboBoxItem.styles = [css_248z$M];
|
|
13646
13677
|
__decorate([
|
|
13647
13678
|
property({ type: Boolean, reflect: true })
|
|
13648
13679
|
], ComboBoxItem.prototype, "active", void 0);
|
|
@@ -13653,7 +13684,7 @@
|
|
|
13653
13684
|
property({ type: Boolean, reflect: true })
|
|
13654
13685
|
], ComboBoxItem.prototype, "checkbox", void 0);
|
|
13655
13686
|
|
|
13656
|
-
var css_248z$
|
|
13687
|
+
var css_248z$L = css`:host{display:block;position:relative}.combobox{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.combobox .dropdown-menu{min-width:100%}.dropdown{display:flex;height:100%}.sgds.combobox{align-items:stretch;display:flex;flex-wrap:wrap;justify-content:flex-end;position:relative;width:-webkit-fill-available;width:-moz-available}.dropdown-menu{box-sizing:border-box;max-height:10rem;overflow-x:hidden;overflow-y:auto}.visually-hidden{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.form-control-group.disabled{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--sgds-form-border-radius-md);display:flex;gap:var(--sgds-form-gap-md);justify-content:space-between;min-height:var(--sgds-dimension-48);min-width:var(--sgds-dimension-256);padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:inline;flex-grow:1;font-size:var(--sgds-font-size-2);line-height:var(--sgds-line-height-body);outline:none;padding:0}.combobox-input-container{display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs);width:100%}.empty-menu{padding:var(--sgds-padding-sm) var(--sgds-padding-lg,20px)}.form-control-group.readonly{border-color:var(--sgds-border-color-muted)}.form-control-group:not(.disabled):not(.is-invalid):hover{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis)}.form-control-group:not(.disabled):not(.is-invalid):focus,.form-control-group:not(.disabled):not(.is-invalid):focus-within{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);box-shadow:var(--sgds-form-box-shadow-focus);outline:0}.form-control-group.is-invalid{border:var(--sgds-form-border-width-thick) solid var(--sgds-form-danger-border-color-default)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted)}`;
|
|
13657
13688
|
|
|
13658
13689
|
/**
|
|
13659
13690
|
* @summary ComboBox component is used for users to make one or more selections from a list through user input, keyboard or mouse actions
|
|
@@ -13777,7 +13808,8 @@
|
|
|
13777
13808
|
this.selectedItems = this.selectedItems.filter(i => i.value !== foundItem.value);
|
|
13778
13809
|
this.value = this.selectedItems.map(i => i.value).join(";");
|
|
13779
13810
|
}
|
|
13780
|
-
async _handleBadgeDismissed(item) {
|
|
13811
|
+
async _handleBadgeDismissed(e, item) {
|
|
13812
|
+
e.preventDefault();
|
|
13781
13813
|
this.selectedItems = this.selectedItems.filter(i => i.value !== item.value);
|
|
13782
13814
|
this.value = this.selectedItems.map(i => i.value).join(";");
|
|
13783
13815
|
}
|
|
@@ -13876,7 +13908,7 @@
|
|
|
13876
13908
|
variant="neutral"
|
|
13877
13909
|
show
|
|
13878
13910
|
dismissible
|
|
13879
|
-
@sgds-hide=${
|
|
13911
|
+
@sgds-hide=${e => this._handleBadgeDismissed(e, item)}
|
|
13880
13912
|
>${item.label}</sgds-badge
|
|
13881
13913
|
>`)}
|
|
13882
13914
|
`
|
|
@@ -13927,7 +13959,7 @@
|
|
|
13927
13959
|
`;
|
|
13928
13960
|
}
|
|
13929
13961
|
}
|
|
13930
|
-
SgdsComboBox.styles = [...SelectElement.styles, css_248z$
|
|
13962
|
+
SgdsComboBox.styles = [...SelectElement.styles, css_248z$L];
|
|
13931
13963
|
/** @internal */
|
|
13932
13964
|
SgdsComboBox.dependencies = {
|
|
13933
13965
|
"sgds-combo-box-item": ComboBoxItem,
|
|
@@ -19641,7 +19673,7 @@
|
|
|
19641
19673
|
return newDate;
|
|
19642
19674
|
};
|
|
19643
19675
|
|
|
19644
|
-
var css_248z$
|
|
19676
|
+
var css_248z$K = css`.datepicker-body{color:var(--sgds-form-color-default);display:flex;justify-content:center}table{border-collapse:collapse;text-align:center}.monthpicker,.yearpicker{display:grid;grid-template-columns:repeat(3,6rem);grid-template-rows:repeat(4,2.5rem)}button.month,button.year{background-color:transparent;border:0;border-radius:var(--sgds-form-border-radius-sm);line-height:var(--sgds-line-height-min);padding:0;position:relative}button.month.active:not(.selected-ends),button.year.active:not(.selected-ends),td[data-day].active:not(.selected-ends){background-color:var(--sgds-primary-surface-translucent);border-radius:0;cursor:pointer}button.month:hover:not(.active),button.year:hover:not(.active),td[data-day]:hover:not(.disabled):not(.selected-ends):not(.active){background-color:var(--sgds-bg-translucent-subtle);cursor:pointer}button.month:focus:not(.active),button.year:focus:not(.active),td[data-day]:focus:not(.disabled):not(.selected-ends):not(.active){background-color:var(--sgds-bg-translucent-subtle)}button.month:focus,button.year:focus,td[data-day]:focus{outline:var(--sgds-form-border-radius-sm) solid var(--sgds-blue-400)}button.month.active:not(.selected-ends):focus,button.year.active:not(.selected-ends):focus,td[data-day].active:not(.selected-ends):focus{border-radius:var(--sgds-form-border-radius-sm)}button.year.active{background-color:var(--sgds-primary-surface-translucent);cursor:pointer}td,th{border-radius:var(--sgds-form-border-radius-sm);height:var(--sgds-form-height-lg);line-height:var(--sgds-line-height-min);padding:0;position:relative;width:var(--sgds-form-width-md)}th{font-weight:var(--sgds-font-weight-semibold)}td[data-day]{cursor:pointer}button.month.active.selected-ends,button.year.active.selected-ends,td[data-day].active.selected-ends{background-color:var(--sgds-form-primary-surface-default);color:var(--sgds-form-color-fixed-light)}button.month.active.selected-ends:focus,button.month.active.selected-ends:hover,button.year.active.selected-ends:focus,button.year.active.selected-ends:hover,td[data-day].active.selected-ends:focus,td[data-day].active.selected-ends:hover{background-color:var(--sgds-form-primary-surface-emphasis)}td[data-day].disabled{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.today{align-items:center;display:flex;flex-direction:column;justify-content:center}.today:after{background-color:var(--sgds-form-primary-surface-default);bottom:6px;content:".";line-height:4px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' fill='none'%3E%3Ccircle cx='2' cy='2' r='2' fill='%235A42C0'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' fill='none'%3E%3Ccircle cx='2' cy='2' r='2' fill='%235A42C0'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;position:absolute;width:4px}.today.active.selected-ends:after{background-color:var(--sgds-form-color-inverse)}`;
|
|
19645
19677
|
|
|
19646
19678
|
const TODAY_DATE = new Date();
|
|
19647
19679
|
const keyPressAction = {
|
|
@@ -20037,7 +20069,7 @@
|
|
|
20037
20069
|
return html$1 ` <div class="datepicker-body">${viewContent}</div> `;
|
|
20038
20070
|
}
|
|
20039
20071
|
}
|
|
20040
|
-
DatepickerCalendar.styles = [css_248z$
|
|
20072
|
+
DatepickerCalendar.styles = [css_248z$K];
|
|
20041
20073
|
/** @internal */
|
|
20042
20074
|
DatepickerCalendar.DAY_LABELS = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
|
|
20043
20075
|
/** @internal */
|
|
@@ -20085,7 +20117,7 @@
|
|
|
20085
20117
|
watch("displayDate")
|
|
20086
20118
|
], DatepickerCalendar.prototype, "_updateFocusedDate", null);
|
|
20087
20119
|
|
|
20088
|
-
var css_248z$
|
|
20120
|
+
var css_248z$J = css`:host{display:inline-block}.btn.btn-icon{display:flex;height:var(--sgds-dimension-48,56px);min-width:unset;padding:0;width:var(--sgds-dimension-48,56px)}.btn.btn-icon.btn-lg{font-size:var(--sgds-font-size-3);height:var(--sgds-dimension-56);min-width:unset;padding:0;width:var(--sgds-dimension-56)}.btn.btn-icon.btn-sm{font-size:var(--sgds-font-size-1);height:var(--sgds-dimension-40);min-width:unset;padding:0;width:var(--sgds-dimension-40)}`;
|
|
20089
20121
|
|
|
20090
20122
|
/**
|
|
20091
20123
|
* @summary An icon button is a user interface element that combines an icon and a button, serving as a clickable or tabbable component.
|
|
@@ -20132,7 +20164,7 @@
|
|
|
20132
20164
|
`;
|
|
20133
20165
|
}
|
|
20134
20166
|
}
|
|
20135
|
-
SgdsIconButton.styles = [...ButtonElement.styles, css_248z$
|
|
20167
|
+
SgdsIconButton.styles = [...ButtonElement.styles, css_248z$J];
|
|
20136
20168
|
/** @internal */
|
|
20137
20169
|
SgdsIconButton.dependencies = {
|
|
20138
20170
|
"sgds-icon": SgdsIcon
|
|
@@ -20141,7 +20173,7 @@
|
|
|
20141
20173
|
property({ type: String, reflect: true })
|
|
20142
20174
|
], SgdsIconButton.prototype, "name", void 0);
|
|
20143
20175
|
|
|
20144
|
-
var css_248z$
|
|
20176
|
+
var css_248z$I = css`.datepicker-header{display:flex;gap:var(--sgds-form-gap-md)}sgds-button{--btn-font-weight:var(--sgds-font-weight-semibold)}`;
|
|
20145
20177
|
|
|
20146
20178
|
class DatepickerHeader extends SgdsElement {
|
|
20147
20179
|
constructor() {
|
|
@@ -20317,7 +20349,7 @@
|
|
|
20317
20349
|
`;
|
|
20318
20350
|
}
|
|
20319
20351
|
}
|
|
20320
|
-
DatepickerHeader.styles = [css_248z$
|
|
20352
|
+
DatepickerHeader.styles = [css_248z$I];
|
|
20321
20353
|
/** @internal */
|
|
20322
20354
|
DatepickerHeader.dependencies = {
|
|
20323
20355
|
"sgds-icon": SgdsIcon,
|
|
@@ -23958,7 +23990,7 @@
|
|
|
23958
23990
|
globalThis.IMask = IMask;
|
|
23959
23991
|
} catch {}
|
|
23960
23992
|
|
|
23961
|
-
var css_248z$
|
|
23993
|
+
var css_248z$H = css`:host{--sgds-spinner-bg:var(--sgds-primary-surface-default);display:inline-flex}:host([variant=neutral]){--sgds-spinner-bg:var(--sgds-neutral-surface-default)}.spinner-wrapper{align-items:center;display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs)}.spinner{animation:spinner .75s linear infinite;border-radius:50%;border-right:.25em solid var(--sgds-bg-translucent);border:.25em solid var(--sgds-bg-translucent);border-right-color:var(--sgds-spinner-bg);color:var(--sgds-spinner-color);display:inline-flex;height:var(--sgds-dimension-32);width:var(--sgds-dimension-32)}.spinner-sm{height:var(--sgds-dimension-24);width:var(--sgds-dimension-24)}.spinner-lg{height:var(--sgds-dimension-48);width:var(--sgds-dimension-48)}.spinner-label{color:var(--sgds-neutral-color-default);font-size:var(--sgds-font-size-1)}@media (prefers-reduced-motion:reduce){.spinner{animation-duration:1.5s}}
|
|
23962
23994
|
|
|
23963
23995
|
/*! CSS Used keyframes */@keyframes spinner{to{transform:rotate(1turn)}}.sr-only{clip:rect(0,0,0,0);border:0;height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}`;
|
|
23964
23996
|
|
|
@@ -23990,7 +24022,7 @@
|
|
|
23990
24022
|
`;
|
|
23991
24023
|
}
|
|
23992
24024
|
}
|
|
23993
|
-
SgdsSpinner.styles = [...SgdsElement.styles, css_248z$
|
|
24025
|
+
SgdsSpinner.styles = [...SgdsElement.styles, css_248z$Y, css_248z$H];
|
|
23994
24026
|
__decorate([
|
|
23995
24027
|
property({ type: String, reflect: true })
|
|
23996
24028
|
], SgdsSpinner.prototype, "variant", void 0);
|
|
@@ -24001,7 +24033,7 @@
|
|
|
24001
24033
|
property({ reflect: true, type: String })
|
|
24002
24034
|
], SgdsSpinner.prototype, "label", void 0);
|
|
24003
24035
|
|
|
24004
|
-
var css_248z$
|
|
24036
|
+
var css_248z$G = css`:host{--input-border-radius:var(--sgds-form-border-radius-md)}.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.form-control-container.disabled{opacity:var(--sgds-opacity-50)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--input-border-radius);display:flex;gap:var(--sgds-form-gap-md);height:var(--sgds-dimension-48);justify-content:center;min-width:var(--sgds-dimension-256);padding:0 var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;color:var(--sgds-form-color-default);display:block;flex-grow:1;font-size:var(--sgds-font-size-2);line-height:var(--sgds-line-height-body);outline:none;padding:0}.form-control-group>.form-control:focus{z-index:3}@media (prefers-reduced-motion:reduce){.form-control-group{transition:none}}.form-control-group.readonly{background-color:var(--sgds-form-surface-raised)}.form-control-group:not(.disabled):not(.is-invalid):not(.readonly):hover{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis)}.form-control-group:not(.disabled):not(.is-invalid):focus,.form-control-group:not(.disabled):not(.is-invalid):focus-within{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);box-shadow:var(--sgds-form-box-shadow-focus);outline:0}.form-control-group.is-invalid{border:var(--sgds-form-border-width-thick) solid var(--sgds-form-danger-border-color-default)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted)}:host(.quantity-toggle) input::-webkit-inner-spin-button{appearance:none;margin:0}:host(.quantity-toggle) input{text-align:center}.form-control-prefix,.form-control-suffix{color:var(--sgds-form-color-subtle);display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs)}.form-control-group.quantity-toggle{padding:0}`;
|
|
24005
24037
|
|
|
24006
24038
|
/**
|
|
24007
24039
|
* @summary Text inputs allow your users to enter letters, numbers and symbols on a single line.
|
|
@@ -24202,7 +24234,7 @@
|
|
|
24202
24234
|
`;
|
|
24203
24235
|
}
|
|
24204
24236
|
}
|
|
24205
|
-
SgdsInput.styles = [...FormControlElement.styles, css_248z$
|
|
24237
|
+
SgdsInput.styles = [...FormControlElement.styles, css_248z$P, css_248z$G];
|
|
24206
24238
|
/** @internal */
|
|
24207
24239
|
SgdsInput.dependencies = {
|
|
24208
24240
|
"sgds-spinner": SgdsSpinner,
|
|
@@ -24275,7 +24307,7 @@
|
|
|
24275
24307
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
24276
24308
|
], SgdsInput.prototype, "_handleDisabledChange", null);
|
|
24277
24309
|
|
|
24278
|
-
var css_248z$
|
|
24310
|
+
var css_248z$F = css`.input-container{display:flex;flex-direction:row;width:-webkit-fill-available;width:-moz-available}.form-control-group{border-right:0}.input-feedback{display:flex;flex-direction:column;width:-webkit-fill-available;width:-moz-available}.calendar-btn{all:unset}`;
|
|
24279
24311
|
|
|
24280
24312
|
class DatepickerInput extends SgdsInput {
|
|
24281
24313
|
constructor() {
|
|
@@ -24402,7 +24434,7 @@
|
|
|
24402
24434
|
`;
|
|
24403
24435
|
}
|
|
24404
24436
|
}
|
|
24405
|
-
DatepickerInput.styles = [...SgdsInput.styles, css_248z$
|
|
24437
|
+
DatepickerInput.styles = [...SgdsInput.styles, css_248z$F];
|
|
24406
24438
|
__decorate([
|
|
24407
24439
|
property({ type: String })
|
|
24408
24440
|
], DatepickerInput.prototype, "minDate", void 0);
|
|
@@ -24416,7 +24448,7 @@
|
|
|
24416
24448
|
queryAsync("input")
|
|
24417
24449
|
], DatepickerInput.prototype, "shadowInput", void 0);
|
|
24418
24450
|
|
|
24419
|
-
var css_248z$
|
|
24451
|
+
var css_248z$E = css`:host{--datepicker-theme-color:var(--sgds-primary);--datepicker-hover-bg:var(--sgds-primary-100);--datepicker-bg:#fff;--datepicker-close-btn-bg:var(--datepicker-theme-color);--datepicker-close-btn-hover-bg:var(--sgds-primary-700);--datepicker-close-btn-color:#fff;--datepicker-selected-date-bg:var(--sgds-primary);--datepicker-selected-date-color:#fff;font-size:var(--sgds-font-size-1)}.dropdown{display:flex;height:100%}.datepicker.dropdown-menu.show{background-color:var(--sgds-form-surface-default);display:flex;flex-direction:column;gap:var(--sgds-form-gap-sm);overflow:unset;padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x);width:var(--sgds-dimension-320)}sgds-datepicker-input{--input-border-radius:var(--sgds-form-border-radius-md) 0 0 var(--sgds-form-border-radius-md);flex:1;margin-right:0}sgds-icon-button{--btn-border-radius:0 var(--sgds-form-border-radius-md) var(--sgds-form-border-radius-md) 0}.datepicker-container{display:flex}.calendar-btn:not(.with-hint-text){align-self:center}.calendar-btn:not(.with-hint-text).with-label{align-self:end}.calendar-btn.with-hint-text.with-label,.calendar-btn:not(.with-hint-text).with-label{margin-top:calc(var(--sgds-font-size-2)*var(--sgds-line-height-body) - var(--sgds-line-height-min))}.calendar-btn.with-hint-text.with-label{align-self:center}`;
|
|
24420
24452
|
|
|
24421
24453
|
/**
|
|
24422
24454
|
* @summary The `DatePicker` Component is built using `Dropdown`, `Input` and `Button` components. By default, the Calendar points to today's date and input has no value. Users can either pick dates from the calendar or type dates through the input
|
|
@@ -24434,7 +24466,17 @@
|
|
|
24434
24466
|
this.required = false;
|
|
24435
24467
|
/** When true, adds disabled attribute to input and button element */
|
|
24436
24468
|
this.disabled = false;
|
|
24437
|
-
/**
|
|
24469
|
+
/** Sets the initial value of the datepicker. Replaces deprecated `initialValue`.
|
|
24470
|
+
* Pass in dates in this format `dd/mm/yyyy` for single mode and `dd/mm/yyyy - dd/mm/yyyy` for range mode
|
|
24471
|
+
* For example, `value="22/12/2023"` for single mode or `value="22/12/2023 - 25/12/2023"` for range mode
|
|
24472
|
+
*/
|
|
24473
|
+
this.value = "";
|
|
24474
|
+
/**
|
|
24475
|
+
* @deprecated since v3.1.1 in favour of `value`.
|
|
24476
|
+
* The initial value of DatePicker on first load for single &
|
|
24477
|
+
* range mode as array of string. eg.'["22/12/2023"]' for single &
|
|
24478
|
+
* '["22/12/2023","25/12/2023"]' for range respectively
|
|
24479
|
+
* */
|
|
24438
24480
|
this.initialValue = [];
|
|
24439
24481
|
this.dateFormat = "DD/MM/YYYY";
|
|
24440
24482
|
/** ISO date string to set the lowest allowable date value. e.g. "2016-05-19T12:00:00.000Z" */
|
|
@@ -24453,8 +24495,8 @@
|
|
|
24453
24495
|
this.noFlip = false;
|
|
24454
24496
|
/** The drop position of menu relative to the toggle button */
|
|
24455
24497
|
this.drop = "down";
|
|
24456
|
-
|
|
24457
|
-
this.
|
|
24498
|
+
/**Gets or sets the default value used to reset this element. The initial value corresponds to the one originally specified in the HTML that created this element. */
|
|
24499
|
+
this.defaultValue = "";
|
|
24458
24500
|
/**@internal */
|
|
24459
24501
|
this.invalid = false;
|
|
24460
24502
|
this.view = "days";
|
|
@@ -24540,6 +24582,7 @@
|
|
|
24540
24582
|
this.addEventListener("sgds-hide", this._handleCloseMenu);
|
|
24541
24583
|
this.addEventListener("sgds-show", this._handleOpenMenu);
|
|
24542
24584
|
this.addEventListener("blur", this._mixinCheckValidity);
|
|
24585
|
+
this.initialValue = this.value ? this.value.split(" - ").map(v => v.trim()) : this.initialValue;
|
|
24543
24586
|
this.initialDisplayDate = this.displayDate || new Date();
|
|
24544
24587
|
if (this.initialValue && this.initialValue.length > 0) {
|
|
24545
24588
|
// Validate initialValue against the dateFormat regex
|
|
@@ -24666,19 +24709,22 @@
|
|
|
24666
24709
|
this._manageInternalsBadInput();
|
|
24667
24710
|
}
|
|
24668
24711
|
async _handleEmptyInput() {
|
|
24669
|
-
this.
|
|
24712
|
+
if (this.required) {
|
|
24713
|
+
this._manageEmptyInput();
|
|
24714
|
+
}
|
|
24715
|
+
return;
|
|
24670
24716
|
}
|
|
24671
|
-
async _resetDatepicker() {
|
|
24717
|
+
async _resetDatepicker(resetValue = "") {
|
|
24672
24718
|
this.displayDate = this.initialDisplayDate;
|
|
24673
24719
|
this.selectedDateRange = [];
|
|
24674
|
-
this.value =
|
|
24720
|
+
this.value = resetValue;
|
|
24675
24721
|
this.view = "days";
|
|
24676
24722
|
const input = await this.datepickerInputAsync;
|
|
24677
24723
|
input.setInvalid(false);
|
|
24678
24724
|
input.destroyInputMask();
|
|
24679
24725
|
await input.applyInputMask();
|
|
24680
24726
|
this._mixinResetValidity(input);
|
|
24681
|
-
if (this.isValueEmpty()
|
|
24727
|
+
if (this.isValueEmpty()) {
|
|
24682
24728
|
this._handleEmptyInput();
|
|
24683
24729
|
}
|
|
24684
24730
|
}
|
|
@@ -24712,7 +24758,7 @@
|
|
|
24712
24758
|
* Handles the form "reset" event
|
|
24713
24759
|
*/
|
|
24714
24760
|
async _mixinResetFormControl() {
|
|
24715
|
-
this._resetDatepicker();
|
|
24761
|
+
this._resetDatepicker(this.defaultValue);
|
|
24716
24762
|
}
|
|
24717
24763
|
async _handleInputMaskChange(e) {
|
|
24718
24764
|
this.value = e.detail;
|
|
@@ -24788,7 +24834,7 @@
|
|
|
24788
24834
|
`;
|
|
24789
24835
|
}
|
|
24790
24836
|
}
|
|
24791
|
-
SgdsDatepicker.styles = [...DropdownElement.styles, css_248z$
|
|
24837
|
+
SgdsDatepicker.styles = [...DropdownElement.styles, css_248z$15, css_248z$E];
|
|
24792
24838
|
/**@internal */
|
|
24793
24839
|
SgdsDatepicker.dependencies = {
|
|
24794
24840
|
"sgds-datepicker-input": DatepickerInput,
|
|
@@ -24806,6 +24852,9 @@
|
|
|
24806
24852
|
__decorate([
|
|
24807
24853
|
property({ type: Boolean, reflect: true })
|
|
24808
24854
|
], SgdsDatepicker.prototype, "disabled", void 0);
|
|
24855
|
+
__decorate([
|
|
24856
|
+
property({ type: String, reflect: true })
|
|
24857
|
+
], SgdsDatepicker.prototype, "value", void 0);
|
|
24809
24858
|
__decorate([
|
|
24810
24859
|
property({ type: Array, reflect: true })
|
|
24811
24860
|
], SgdsDatepicker.prototype, "initialValue", void 0);
|
|
@@ -24840,8 +24889,8 @@
|
|
|
24840
24889
|
property({ attribute: false })
|
|
24841
24890
|
], SgdsDatepicker.prototype, "displayDate", void 0);
|
|
24842
24891
|
__decorate([
|
|
24843
|
-
|
|
24844
|
-
], SgdsDatepicker.prototype, "
|
|
24892
|
+
defaultValue()
|
|
24893
|
+
], SgdsDatepicker.prototype, "defaultValue", void 0);
|
|
24845
24894
|
__decorate([
|
|
24846
24895
|
state()
|
|
24847
24896
|
], SgdsDatepicker.prototype, "invalid", void 0);
|
|
@@ -24867,10 +24916,10 @@
|
|
|
24867
24916
|
query("sgds-datepicker-input")
|
|
24868
24917
|
], SgdsDatepicker.prototype, "datepickerInput", void 0);
|
|
24869
24918
|
__decorate([
|
|
24870
|
-
watch("value")
|
|
24919
|
+
watch("value", { waitUntilFirstUpdate: true })
|
|
24871
24920
|
], SgdsDatepicker.prototype, "_handleValueChange", null);
|
|
24872
24921
|
|
|
24873
|
-
var css_248z$
|
|
24922
|
+
var css_248z$D = css`:host([bordered][islastchild]) .container:last-child{border-bottom:none}:host([stacked]) .container{align-items:flex-start;flex-direction:column;gap:var(--sgds-gap-xs);justify-content:flex-start}.container{align-items:flex-start;border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);display:flex;gap:var(--sgds-gap-xs);justify-content:space-between;padding:var(--sgds-padding-lg) var(--sgds-padding-xl)}.data-container,.label-container{flex:1}.label{color:var(--sgds-color-default);font-weight:var(--sgds-font-weight-semibold)}.data,.label{font-size:var(--sgds-font-size-2)}.data{color:var(--sgds-color-subtle);font-weight:var(--sgds-font-weight-regular);margin:0}`;
|
|
24874
24923
|
|
|
24875
24924
|
let id$2 = 0;
|
|
24876
24925
|
/**
|
|
@@ -24913,7 +24962,7 @@
|
|
|
24913
24962
|
`;
|
|
24914
24963
|
}
|
|
24915
24964
|
}
|
|
24916
|
-
SgdsDescriptionList.styles = [...SgdsElement.styles, css_248z$
|
|
24965
|
+
SgdsDescriptionList.styles = [...SgdsElement.styles, css_248z$D];
|
|
24917
24966
|
__decorate([
|
|
24918
24967
|
property({ type: Boolean, reflect: true })
|
|
24919
24968
|
], SgdsDescriptionList.prototype, "stacked", void 0);
|
|
@@ -24921,7 +24970,7 @@
|
|
|
24921
24970
|
property({ type: Boolean, reflect: true })
|
|
24922
24971
|
], SgdsDescriptionList.prototype, "bordered", void 0);
|
|
24923
24972
|
|
|
24924
|
-
var css_248z$
|
|
24973
|
+
var css_248z$C = css`:host([bordered]) .container{border:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);border-radius:var(--sgds-border-radius-md)}.container{display:flex;flex-direction:column}.title{color:var(--sgds-header-color-default);font-size:var(--sgds-font-size-4);font-weight:var(--sgds-font-weight-semibold);letter-spacing:var(--sgds-letter-spacing-tight);line-height:var(--sgds-line-height-heading)}.description{color:var(--sgds-color-subtle);font-size:var(--sgds-font-size-2);font-weight:var(--sgds-font-weight-regular);line-height:var(--sgds-line-height-body)}.header{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);display:flex;flex-direction:column;gap:var(--sgds-gap-xs);padding:var(--sgds-padding-lg) var(--sgds-padding-xl)}`;
|
|
24925
24974
|
|
|
24926
24975
|
class HasSlotController {
|
|
24927
24976
|
constructor(host, ...slotNames) {
|
|
@@ -25057,7 +25106,7 @@
|
|
|
25057
25106
|
`;
|
|
25058
25107
|
}
|
|
25059
25108
|
}
|
|
25060
|
-
SgdsDescriptionListGroup.styles = [...SgdsElement.styles, css_248z$
|
|
25109
|
+
SgdsDescriptionListGroup.styles = [...SgdsElement.styles, css_248z$C];
|
|
25061
25110
|
__decorate([
|
|
25062
25111
|
property({ type: Boolean, reflect: true })
|
|
25063
25112
|
], SgdsDescriptionListGroup.prototype, "bordered", void 0);
|
|
@@ -25068,7 +25117,7 @@
|
|
|
25068
25117
|
queryAssignedElements({ flatten: true })
|
|
25069
25118
|
], SgdsDescriptionListGroup.prototype, "_descriptionLists", void 0);
|
|
25070
25119
|
|
|
25071
|
-
var css_248z$
|
|
25120
|
+
var css_248z$B = css`:host{--container-size:8px}:host([orientation=horizontal]){border-top:var(--border-width) solid var(--sgds-border-color-muted);display:block;margin:calc((var(--container-size) - var(--border-width))/2) 0;width:100%}:host([orientation=vertical]){border-left:var(--border-width) solid var(--sgds-border-color-muted);display:inline-block;height:100%;margin:0 calc((var(--container-size) - var(--border-width))/2)}:host([thickness=thin]){--border-width:var(--sgds-border-width-1)}:host([thickness=thick]){--border-width:var(--sgds-border-width-2)}:host([thickness=thicker]){--border-width:var(--sgds-border-width-4)}`;
|
|
25072
25121
|
|
|
25073
25122
|
/**
|
|
25074
25123
|
* @summary A divider is a thin line that groups content in lists and layouts. They bring clarity to a layout by grouping and dividing content in close proximity.
|
|
@@ -25087,7 +25136,7 @@
|
|
|
25087
25136
|
this.setAttribute("aria-orientation", this.orientation);
|
|
25088
25137
|
}
|
|
25089
25138
|
}
|
|
25090
|
-
SgdsDivider.styles = [css_248z$
|
|
25139
|
+
SgdsDivider.styles = [css_248z$B];
|
|
25091
25140
|
__decorate([
|
|
25092
25141
|
property({ type: String, reflect: true })
|
|
25093
25142
|
], SgdsDivider.prototype, "orientation", void 0);
|
|
@@ -25102,7 +25151,7 @@
|
|
|
25102
25151
|
*/
|
|
25103
25152
|
function lockBodyScrolling(lockingEl) {
|
|
25104
25153
|
locks.add(lockingEl);
|
|
25105
|
-
document.body.
|
|
25154
|
+
document.body.style.overflow = "hidden";
|
|
25106
25155
|
}
|
|
25107
25156
|
/**
|
|
25108
25157
|
* Unlocks body scrolling. Scrolling will only be unlocked once all elements that requested a lock call this method.
|
|
@@ -25110,11 +25159,11 @@
|
|
|
25110
25159
|
function unlockBodyScrolling(lockingEl) {
|
|
25111
25160
|
locks.delete(lockingEl);
|
|
25112
25161
|
if (locks.size === 0) {
|
|
25113
|
-
document.body.
|
|
25162
|
+
document.body.style.overflow = "";
|
|
25114
25163
|
}
|
|
25115
25164
|
}
|
|
25116
25165
|
|
|
25117
|
-
var css_248z$
|
|
25166
|
+
var css_248z$A = css`:host{display:contents}.drawer{height:100%;inset-inline-start:0;overflow:hidden;pointer-events:none;top:0;width:100%}.drawer-fixed{position:fixed;z-index:1100}.drawer-panel{background-color:var(--sgds-surface-default);display:flex;flex-direction:column;gap:var(--sgds-gap-2-xl);max-height:100%;max-width:100%;overflow:auto;padding:var(--sgds-padding-4-xl) var(--sgds-padding-3-xl);pointer-events:all;position:absolute;z-index:2}.drawer-panel:focus{outline:none}.drawer-top .drawer-panel{bottom:auto;height:var(--sgds-dimension-512);inset-inline-end:auto;inset-inline-start:0;top:0;width:100%}.drawer-end .drawer-panel{bottom:auto;height:100%;inset-inline-end:0;inset-inline-start:auto;top:0;width:var(--sgds-dimension-512)}.drawer-bottom .drawer-panel{bottom:0;height:var(--sgds-dimension-512);inset-inline-end:auto;inset-inline-start:0;top:auto;width:100%}.drawer-start .drawer-panel{bottom:auto;height:100%;inset-inline-end:auto;inset-inline-start:0;top:0;width:var(--sgds-dimension-512)}.drawer-header{display:flex;flex-direction:column;gap:var(--sgds-gap-sm)}slot[name=title]::slotted(*){--sgds-margin-2-xs:var(--sgds-margin-none);--sgds-font-size-6:var(--sgds-font-size-4);color:var(--sgds-color-default)!important;font-size:var(--sgds-font-size-6,var(--sgds-font-size-4));margin-bottom:var(--sgds-margin-2-xs,var(--sgds-margin-none))}slot[name=description]::slotted(*){--sgds-paragraph-spacing-xl:var(--sgds-margin-none);color:var(--sgds-color-subtle);margin-bottom:var(--sgds-paragraph-spacing-xl,var(--sgds-margin-none))}sgds-close-button{position:absolute;right:32px;top:32px}.drawer-body{-webkit-overflow-scrolling:touch;display:block;flex:1 1 auto;overflow:auto}.drawer-overlay{background-color:var(--sgds-bg-overlay);bottom:0;display:block;left:0;pointer-events:all;position:fixed;right:0;top:0}.drawer-contained .drawer-overlay{display:none}@media screen and (max-width:768px){.drawer-panel{padding:var(--sgds-padding-3-xl) var(--sgds-padding-lg)}sgds-close-button{right:20px;top:20px}}`;
|
|
25118
25167
|
|
|
25119
25168
|
/**
|
|
25120
25169
|
* @summary Drawers slide in from a container to expose additional options and information.
|
|
@@ -25333,7 +25382,7 @@
|
|
|
25333
25382
|
`;
|
|
25334
25383
|
}
|
|
25335
25384
|
}
|
|
25336
|
-
SgdsDrawer.styles = [...SgdsElement.styles, css_248z$
|
|
25385
|
+
SgdsDrawer.styles = [...SgdsElement.styles, css_248z$A];
|
|
25337
25386
|
/**@internal */
|
|
25338
25387
|
SgdsDrawer.dependencies = {
|
|
25339
25388
|
"sgds-close-button": SgdsCloseButton
|
|
@@ -25453,7 +25502,7 @@
|
|
|
25453
25502
|
options: { duration: 250 }
|
|
25454
25503
|
});
|
|
25455
25504
|
|
|
25456
|
-
var css_248z$
|
|
25505
|
+
var css_248z$z = css`.file-upload{display:flex;flex-direction:column;gap:var(--sgds-form-gap-2-xl)}.file-upload-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.file-upload-list{display:flex;flex-direction:column;gap:var(--sgds-form-gap-xl);list-style-type:none}.file-upload-list-item{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-muted);border-radius:var(--sgds-form-border-radius-md);display:flex;gap:var(--sgds-form-gap-lg);padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x)}.file-upload-list-item span:not(:first-of-type){cursor:pointer}ul{margin:0;padding:0}input{display:none}label,sgds-button{cursor:pointer}sgds-close-button{margin-left:auto}sgds-icon.valid{color:var(--sgds-form-success-color-default)}sgds-icon.invalid{color:var(--sgds-color-muted)}`;
|
|
25457
25506
|
|
|
25458
25507
|
/**
|
|
25459
25508
|
* @summary Allows users to upload files of various sizes and formats
|
|
@@ -25626,7 +25675,7 @@
|
|
|
25626
25675
|
`;
|
|
25627
25676
|
}
|
|
25628
25677
|
}
|
|
25629
|
-
SgdsFileUpload.styles = [...FormControlElement.styles, css_248z$
|
|
25678
|
+
SgdsFileUpload.styles = [...FormControlElement.styles, css_248z$z];
|
|
25630
25679
|
/**@internal */
|
|
25631
25680
|
SgdsFileUpload.dependencies = {
|
|
25632
25681
|
"sgds-button": SgdsButton,
|
|
@@ -25655,7 +25704,7 @@
|
|
|
25655
25704
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
25656
25705
|
], SgdsFileUpload.prototype, "_handleDisabledChange", null);
|
|
25657
25706
|
|
|
25658
|
-
var css_248z$
|
|
25707
|
+
var css_248z$y = css`.footer{container:footer/inline-size;height:auto}.footer-top{background-color:var(--sgds-bg-fixed-dark);border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-default);gap:var(--sgds-gap-md);padding:var(--sgds-padding-xl) var(--sgds-padding-2-xl)}.footer-header,.footer-top{display:flex;flex-direction:column}.footer-header{gap:var(--sgds-gap-xs);margin:var(--sgds-margin-3-xs) 0}slot[name=title]::slotted(*){--sgds-header-color-default:var(--sgds-color-fixed-light);--sgds-font-size-6:var(--sgds-font-size-5);--sgds-margin-2-xs:var(--sgds-margin-none);color:var(--sgds-header-color-default,--sgds-color-fixed-light);font-size:var(--sgds-font-size-6,--sgds-font-size-5);font-weight:var(--sgds-font-weight-bold);letter-spacing:var(--sgds-letter-spacing-tight);line-height:var(--sgds-line-height-heading);margin-bottom:var(--sgds-margin-2-xs,--sgds-margin-none);margin-top:var(--sgds-margin-none)}slot[name=description]::slotted(*){--sgds-font-size-2:var(--sgds-font-size-3);--sgds-paragraph-spacing-xl:var(--sgds-margin-none);color:var(--sgds-color-fixed-light);font-size:var(--sgds-font-size-2,--sgds-font-size-3);margin-bottom:var(--sgds-paragraph-spacing-xl,--sgds-margin-none);margin-top:var(--sgds-margin-none)}.footer-items{display:grid;gap:var(--sgds-gap-md) var(--sgds-gap-lg);grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.footer ul{margin:0;padding:0}.footer ul li{list-style-type:none}.footer-mandatory-links ul li a{text-decoration:none}.footer-mandatory-links ul li a,.footer-mandatory-links ul li a:focus,.footer-mandatory-links ul li a:hover{color:var(--sgds-color-fixed-light)}.footer-mandatory-links ul li a:focus,.footer-mandatory-links ul li a:focus-visible{box-shadow:var(--sgds-box-shadow-focus);outline:0}.footer-bottom{background-color:var(--sgds-bg-fixed-dark);display:flex;flex-direction:column;gap:var(--sgds-gap-md);padding:var(--sgds-padding-xl) var(--sgds-padding-2-xl)}.social-media{display:flex;gap:var(--sgds-gap-sm)}slot[name=social-media]::slotted(a){--sgds-link-color-default:var(--sgds-color-fixed-light);--sgds-body-color-default:var(--sgds-color-fixed-light);color:var(--sgds-body-color-default,--sgds-link-color-default);display:inline-flex}slot[name=social-media]::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-fixed-light);color:var(--sgds-link-color-emphasis)}slot[name=social-media]::slotted(a:focus),slot[name=social-media]::slotted(a:focus-visible){--sgds-link-color-emphasis:var(--sgds-color-fixed-light);box-shadow:var(--sgds-box-shadow-focus);color:var(--sgds-link-color-emphasis);outline:0}.footer-mandatory-links{display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xl) var(--sgds-gap-lg);justify-content:space-between}.footer-mandatory-links ul{display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs) var(--sgds-gap-xl)}.footer-copyrights{color:var(--sgds-color-fixed-light)}@container footer (max-width: 711px){.footer-bottom,.footer-top{padding:var(--sgds-padding-lg)}.footer-top{gap:var(--sgds-gap-lg)}.footer-mandatory-links,.footer-mandatory-links ul{flex-direction:column}}`;
|
|
25659
25708
|
|
|
25660
25709
|
/**
|
|
25661
25710
|
* @summary The footer contains supporting information for your service at the bottom of your website. All .gov.sg digital services shall contain a Global Footer Bar across all pages. The Global Footer Bar should include the name of the digital service, contact information, a privacy statement and the terms of use.
|
|
@@ -25758,7 +25807,7 @@
|
|
|
25758
25807
|
`;
|
|
25759
25808
|
}
|
|
25760
25809
|
}
|
|
25761
|
-
SgdsFooter.styles = [...SgdsElement.styles, css_248z$
|
|
25810
|
+
SgdsFooter.styles = [...SgdsElement.styles, css_248z$y];
|
|
25762
25811
|
__decorate([
|
|
25763
25812
|
property({ type: String })
|
|
25764
25813
|
], SgdsFooter.prototype, "copyrightLiner", void 0);
|
|
@@ -25778,7 +25827,82 @@
|
|
|
25778
25827
|
property({ type: String })
|
|
25779
25828
|
], SgdsFooter.prototype, "termsOfUseHref", void 0);
|
|
25780
25829
|
|
|
25781
|
-
var css_248z$
|
|
25830
|
+
var css_248z$x = css`:host([noPadding]) .card{border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent)}:host(:not([noPadding])) .card:not(.disabled):hover{box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 8px 16px 0 hsla(0,0%,5%,.12)}:host([orientation=vertical][noPadding]) .card-body{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none)}:host([orientation=vertical][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none)}:host([orientation=horizontal][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl)}:host([orientation=horizontal][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none)}:host([tinted]:not([noPadding])) .card-tinted-bg{background-color:var(--sgds-bg-translucent-subtle);opacity:var(--sgds-opacity-50)}:host([orientation][noPadding]) .card-media{padding:var(--sgds-padding-none)}`;
|
|
25831
|
+
|
|
25832
|
+
/**
|
|
25833
|
+
* @summary Icon cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.
|
|
25834
|
+
* @slot default - The content area of the card, placed directly under the title. Accepts any HTML or custom elements.
|
|
25835
|
+
* @slot icon - Accepts an icon element to visually represent the card. Only a single element is allowed to be passed in.
|
|
25836
|
+
* @slot upper - Accepts any content to be displayed at the top of the subtitle. Commonly used for badges, status indicators, or decorative elements.
|
|
25837
|
+
* @slot subtitle - The subtitle of the card
|
|
25838
|
+
* @slot title - The title of the card
|
|
25839
|
+
* @slot description - The paragrapher text of the card
|
|
25840
|
+
* @slot lower - Accepts any additional content to be displayed below the card description, such as badges, metadata, or supplementary information.
|
|
25841
|
+
* @slot link - Accepts an anchor element. Only a single element is allowed to be passed in.
|
|
25842
|
+
*/
|
|
25843
|
+
class SgdsIconCard extends CardElement {
|
|
25844
|
+
constructor() {
|
|
25845
|
+
super(...arguments);
|
|
25846
|
+
/** Removes the card's internal padding when set to true. */
|
|
25847
|
+
this.noPadding = false;
|
|
25848
|
+
}
|
|
25849
|
+
firstUpdated() {
|
|
25850
|
+
if (this._iconNode.length === 0) {
|
|
25851
|
+
if ((this.orientation === "vertical" && this._upperNode.length === 0) || this.orientation === "horizontal") {
|
|
25852
|
+
const media = this.shadowRoot.querySelector(".card-media");
|
|
25853
|
+
media.style.display = "none";
|
|
25854
|
+
const body = this.shadowRoot.querySelector(".card-body");
|
|
25855
|
+
if (this.noPadding)
|
|
25856
|
+
body.style.padding = "0px";
|
|
25857
|
+
}
|
|
25858
|
+
}
|
|
25859
|
+
}
|
|
25860
|
+
render() {
|
|
25861
|
+
const tag = this.stretchedLink ? literal `a` : literal `div`;
|
|
25862
|
+
const cardTabIndex = !this.stretchedLink || this.disabled ? -1 : 0;
|
|
25863
|
+
return html `
|
|
25864
|
+
<${tag}
|
|
25865
|
+
class="card ${classMap({
|
|
25866
|
+
disabled: this.disabled
|
|
25867
|
+
})}"
|
|
25868
|
+
tabindex=${cardTabIndex}
|
|
25869
|
+
>
|
|
25870
|
+
${this.tinted && !this.noPadding ? html `<div class="card-tinted-bg"></div>` : nothing}
|
|
25871
|
+
<div class="card-media">
|
|
25872
|
+
<slot name="icon"></slot>
|
|
25873
|
+
${this.orientation === "vertical" ? html `<slot name="upper"></slot>` : nothing}
|
|
25874
|
+
</div>
|
|
25875
|
+
<div class="card-body">
|
|
25876
|
+
${this.orientation === "horizontal" ? html `<slot name="upper"></slot>` : nothing}
|
|
25877
|
+
<div class="card-header-container">
|
|
25878
|
+
<div class="card-header">
|
|
25879
|
+
<slot name="subtitle"></slot>
|
|
25880
|
+
<h3 class="card-title"><slot name="title" @slotchange=${this.handleTitleSlotChange}></slot></h3>
|
|
25881
|
+
</div>
|
|
25882
|
+
<slot></slot>
|
|
25883
|
+
</div>
|
|
25884
|
+
<p class="card-text">
|
|
25885
|
+
<slot name="description"></slot>
|
|
25886
|
+
</p>
|
|
25887
|
+
<slot name="lower"></slot>
|
|
25888
|
+
<slot name="link" @slotchange=${this.handleLinkSlotChange}></slot>
|
|
25889
|
+
</div>
|
|
25890
|
+
</${tag}>
|
|
25891
|
+
`;
|
|
25892
|
+
}
|
|
25893
|
+
}
|
|
25894
|
+
SgdsIconCard.styles = [...CardElement.styles, css_248z$x];
|
|
25895
|
+
__decorate([
|
|
25896
|
+
queryAssignedNodes({ slot: "icon", flatten: true })
|
|
25897
|
+
], SgdsIconCard.prototype, "_iconNode", void 0);
|
|
25898
|
+
__decorate([
|
|
25899
|
+
queryAssignedNodes({ slot: "upper", flatten: true })
|
|
25900
|
+
], SgdsIconCard.prototype, "_upperNode", void 0);
|
|
25901
|
+
__decorate([
|
|
25902
|
+
property({ type: Boolean, reflect: true })
|
|
25903
|
+
], SgdsIconCard.prototype, "noPadding", void 0);
|
|
25904
|
+
|
|
25905
|
+
var css_248z$w = css`slot{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}slot::slotted(*){align-items:flex-start;display:flex;gap:var(--sgds-gap-xs)}.sm{font-size:var(--sgds-font-size-1)}.lg{font-size:var(--sgds-font-size-3)}`;
|
|
25782
25906
|
|
|
25783
25907
|
/**
|
|
25784
25908
|
* @summary A IconList can be used to display content related to the same topic. Each list item begins an icon.
|
|
@@ -25801,7 +25925,7 @@
|
|
|
25801
25925
|
`;
|
|
25802
25926
|
}
|
|
25803
25927
|
}
|
|
25804
|
-
SgdsIconList.styles = [...SgdsElement.styles, css_248z$
|
|
25928
|
+
SgdsIconList.styles = [...SgdsElement.styles, css_248z$w];
|
|
25805
25929
|
__decorate([
|
|
25806
25930
|
property({ type: String, reflect: true })
|
|
25807
25931
|
], SgdsIconList.prototype, "role", void 0);
|
|
@@ -25809,6 +25933,95 @@
|
|
|
25809
25933
|
property({ type: String, reflect: true })
|
|
25810
25934
|
], SgdsIconList.prototype, "size", void 0);
|
|
25811
25935
|
|
|
25936
|
+
var css_248z$v = css`:host([noPadding]) .card{border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent)}:host(:not([noPadding])) .card:not(.disabled):hover{box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 8px 16px 0 hsla(0,0%,5%,.12)}:host([orientation=vertical][noPadding]) .card-body{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none)}:host([orientation=vertical][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none)}:host([orientation=horizontal][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl)}:host([orientation=horizontal][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none)}:host([tinted]:not([noPadding])) .card-tinted-bg{background-color:var(--sgds-bg-translucent-subtle);opacity:var(--sgds-opacity-50)}:host([orientation][noPadding]) .card-media{padding:var(--sgds-padding-none)}slot[name=image-badge]::slotted(*){left:20px;position:absolute;top:20px}slot[name=image-action]::slotted(*){position:absolute;right:20px;top:20px}`;
|
|
25937
|
+
|
|
25938
|
+
/**
|
|
25939
|
+
* @summary Image cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.
|
|
25940
|
+
* @slot default - The content area of the card, placed directly under the title. Accepts any HTML or custom elements.
|
|
25941
|
+
* @slot image - Accepts an image or svg element of the card. Only a single element is allowed to be passed in.
|
|
25942
|
+
* @slot image-badge - Accepts an element for a badge, positioned at the top-left corner of the image.
|
|
25943
|
+
* @slot image-action - Accepts an element for an overflow or contextual menu, positioned at the top-right corner of the image. Typically used for action menu.
|
|
25944
|
+
* @slot upper - Accepts any content to be displayed at the top of the subtitle. Commonly used for badges, status indicators, or decorative elements.
|
|
25945
|
+
* @slot subtitle - The subtitle of the card
|
|
25946
|
+
* @slot title - The title of the card
|
|
25947
|
+
* @slot description - The paragrapher text of the card
|
|
25948
|
+
* @slot lower - Accepts any additional content to be displayed below the card description, such as badges, metadata, or supplementary information.
|
|
25949
|
+
* @slot link - Accepts an anchor element. Only a single element is allowed to be passed in.
|
|
25950
|
+
*/
|
|
25951
|
+
class SgdsImageCard extends CardElement {
|
|
25952
|
+
constructor() {
|
|
25953
|
+
super(...arguments);
|
|
25954
|
+
/** Removes the card's internal padding when set to true. */
|
|
25955
|
+
this.noPadding = false;
|
|
25956
|
+
/** Sets the image position of the card. Available options: `before`, `after` */
|
|
25957
|
+
this.imagePosition = "before";
|
|
25958
|
+
/** Controls how the image is sized and aligned within the card. Available options: `default`, `padding around`, `aspect ratio` */
|
|
25959
|
+
this.imageAdjustment = "default";
|
|
25960
|
+
}
|
|
25961
|
+
firstUpdated() {
|
|
25962
|
+
if (this._imageNode.length === 0) {
|
|
25963
|
+
const image = this.shadowRoot.querySelector(".card-image");
|
|
25964
|
+
const body = this.shadowRoot.querySelector(".card-body");
|
|
25965
|
+
image.style.display = "none";
|
|
25966
|
+
if (this.noPadding)
|
|
25967
|
+
body.style.padding = "0px";
|
|
25968
|
+
}
|
|
25969
|
+
}
|
|
25970
|
+
handleImgSlotChange(e) {
|
|
25971
|
+
const childNodes = e.target.assignedNodes({ flatten: true });
|
|
25972
|
+
if (childNodes.length > 1) {
|
|
25973
|
+
return console.error("Multiple elements passed into SgdsCard's image slot");
|
|
25974
|
+
}
|
|
25975
|
+
}
|
|
25976
|
+
render() {
|
|
25977
|
+
const tag = this.stretchedLink ? literal `a` : literal `div`;
|
|
25978
|
+
const cardTabIndex = !this.stretchedLink || this.disabled ? -1 : 0;
|
|
25979
|
+
return html `
|
|
25980
|
+
<${tag}
|
|
25981
|
+
class="card ${classMap({
|
|
25982
|
+
disabled: this.disabled
|
|
25983
|
+
})}"
|
|
25984
|
+
tabindex=${cardTabIndex}
|
|
25985
|
+
>
|
|
25986
|
+
${this.tinted && !this.noPadding ? html `<div class="card-tinted-bg"></div>` : nothing}
|
|
25987
|
+
<div class="card-image">
|
|
25988
|
+
<slot name="image" @slotchange=${this.handleImgSlotChange}></slot>
|
|
25989
|
+
<slot name="image-badge"></slot>
|
|
25990
|
+
<slot name="image-action"></slot>
|
|
25991
|
+
</div>
|
|
25992
|
+
<div class="card-body">
|
|
25993
|
+
<slot name="upper"></slot>
|
|
25994
|
+
<div class="card-header-container">
|
|
25995
|
+
<div class="card-header">
|
|
25996
|
+
<slot name="subtitle"></slot>
|
|
25997
|
+
<h3 class="card-title"><slot name="title" @slotchange=${this.handleTitleSlotChange}></slot></h3>
|
|
25998
|
+
</div>
|
|
25999
|
+
<slot></slot>
|
|
26000
|
+
</div>
|
|
26001
|
+
<p class="card-text">
|
|
26002
|
+
<slot name="description"></slot>
|
|
26003
|
+
</p>
|
|
26004
|
+
<slot name="lower"></slot>
|
|
26005
|
+
<slot name="link" @slotchange=${this.handleLinkSlotChange}></slot>
|
|
26006
|
+
</div>
|
|
26007
|
+
</${tag}>
|
|
26008
|
+
`;
|
|
26009
|
+
}
|
|
26010
|
+
}
|
|
26011
|
+
SgdsImageCard.styles = [...CardElement.styles, css_248z$v];
|
|
26012
|
+
__decorate([
|
|
26013
|
+
queryAssignedNodes({ slot: "image", flatten: true })
|
|
26014
|
+
], SgdsImageCard.prototype, "_imageNode", void 0);
|
|
26015
|
+
__decorate([
|
|
26016
|
+
property({ type: Boolean, reflect: true })
|
|
26017
|
+
], SgdsImageCard.prototype, "noPadding", void 0);
|
|
26018
|
+
__decorate([
|
|
26019
|
+
property({ type: String, reflect: true })
|
|
26020
|
+
], SgdsImageCard.prototype, "imagePosition", void 0);
|
|
26021
|
+
__decorate([
|
|
26022
|
+
property({ type: String, reflect: true })
|
|
26023
|
+
], SgdsImageCard.prototype, "imageAdjustment", void 0);
|
|
26024
|
+
|
|
25812
26025
|
/**
|
|
25813
26026
|
* @license
|
|
25814
26027
|
* Copyright 2021 Google LLC
|
|
@@ -26300,7 +26513,7 @@
|
|
|
26300
26513
|
|
|
26301
26514
|
const MainnavContext = createContext("mainnav-context");
|
|
26302
26515
|
|
|
26303
|
-
var css_248z$
|
|
26516
|
+
var css_248z$u = css`:host{z-index:1200}nav{background-color:var(--sgds-surface-default);box-shadow:0 2px 2px 0 hsla(0,0%,5%,.08)}.navbar{align-items:stretch;display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs);justify-content:space-between;margin:auto;max-width:var(--sgds-mainnav-max-width);min-height:80px;padding:0 var(--sgds-mainnav-padding-x);position:relative;width:100%}@media screen and (max-width:768px){.navbar{padding:0 var(--sgds-mainnav-mobile-padding-x)}}.navbar-brand{align-items:center;display:flex;text-decoration:none;white-space:nowrap}.navbar-brand:focus,.navbar-brand:focus-visible{box-shadow:var(--sgds-box-shadow-focus);outline:0}.navbar-nav{display:flex;flex-direction:column;height:100%;margin-bottom:0;margin-top:0;width:100%}nav>.navbar-body{background-color:var(--sgds-surface-default);border-top:var(--sgds-border-width-1) solid var(--sgds-border-color-translucent);bottom:0;box-shadow:0 2px 2px 0 hsla(0,0%,5%,.08);padding:var(--sgds-padding-md) 0;position:absolute;transition:transform .2s ease-in-out;width:100%;z-index:2000}nav>.navbar-body slot::slotted(:not(sgds-mainnav-item):not(sgds-mainnav-dropdown)){padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x)}@media screen and (max-width:768px){nav>.navbar-body slot::slotted(:not(sgds-mainnav-item):not(sgds-mainnav-dropdown)){padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x)}}.navbar-collapse{align-items:center;flex-basis:100%;flex-grow:1}.navbar-toggler{align-self:center}@media (prefers-reduced-motion:reduce){.navbar-toggler{transition:none}}.navbar-nav-scroll{overflow-y:auto}@media (min-width:576px){.navbar-expand-sm{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (min-width:768px){.navbar-expand-md{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (min-width:992px){.navbar-expand-lg{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (min-width:1200px){.navbar-expand-xl{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand-xl .navbar-nav .nav-link{padding-left:var(--mainnav-nav-link-padding-x);padding-right:var(--mainnav-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}@media (min-width:1400px){.navbar-expand-xxl{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}}.navbar-expand{flex-wrap:nowrap;gap:var(--sgds-gap-xl);justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}slot[name=non-collapsible]{align-items:center;display:flex;gap:var(--sgds-spacer-4);margin-left:auto}.slot-end{align-items:stretch;display:flex;gap:var(--sgds-gap-xs);margin-left:auto}.slot-end::slotted(:not([name$=-mainnav-item]):not([name$=-mainnav-dropdown])){align-self:center}`;
|
|
26304
26517
|
|
|
26305
26518
|
const SIZES = {
|
|
26306
26519
|
sm: SM_BREAKPOINT,
|
|
@@ -26522,7 +26735,7 @@
|
|
|
26522
26735
|
}
|
|
26523
26736
|
}
|
|
26524
26737
|
}
|
|
26525
|
-
SgdsMainnav.styles = [...SgdsElement.styles, css_248z$
|
|
26738
|
+
SgdsMainnav.styles = [...SgdsElement.styles, css_248z$u];
|
|
26526
26739
|
/** @internal */
|
|
26527
26740
|
SgdsMainnav.dependencies = {
|
|
26528
26741
|
"sgds-icon-button": SgdsIconButton
|
|
@@ -26585,7 +26798,7 @@
|
|
|
26585
26798
|
options: { duration: 200, easing: "ease-in-out" }
|
|
26586
26799
|
});
|
|
26587
26800
|
|
|
26588
|
-
var css_248z$
|
|
26801
|
+
var css_248z$t = css`:host([expand=always]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}@media (min-width:512px){:host([expand=sm]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host([expand=sm]) .nav-link:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus)}}@media (min-width:768px){:host([expand=md]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host([expand=md]) .nav-link:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus)}}@media (min-width:1024px){:host(:not([expand])) .nav-link,:host([expand=lg]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host([expand=lg]) .nav-link:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus)}}@media (min-width:1280px){:host([expand=xl]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host([expand=xl]) .nav-link:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus)}}@media (min-width:1440px){:host([expand=xxl]) .nav-link{border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host([expand=xxl]) .nav-link:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus)}}.nav-link{align-items:center;cursor:pointer;display:flex;gap:var(--sgds-gap-xs);padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x);text-decoration:none}@media screen and (max-width:767px){.nav-link{padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x)}}.nav-link.show,.nav-link:not(.disabled).active{border-color:var(--sgds-primary-border-color-default);color:var(--sgds-primary-color-default)}.nav-link:not(.disabled):hover{color:var(--sgds-primary-color-default)}.nav-link:not(.disabled):focus,.nav-link:not(.disabled):focus-visible{outline:0}.nav-link:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus) inset;color:var(--sgds-primary-color-default)}.nav-link.disabled{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.dropdown-items{background-color:var(--sgds-surface-default);height:100%;left:100%;padding:var(--sgds-padding-md) 0;position:absolute;top:0;width:100%}.dropdown-items a{align-items:center;color:var(--sgds-color-default);cursor:pointer;display:flex;gap:var(--sgds-gap-xs);padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x);text-decoration:none}.dropdown-items a:hover{color:var(--sgds-primary-color-default)}.dropdown-items a:focus,.dropdown-items a:focus-visible{outline:0}.dropdown-items a:focus-visible{box-shadow:var(--sgds-box-shadow-focus) inset;color:var(--sgds-primary-color-default)}slot[name=toggler]::slotted(*){flex:1}sgds-dropdown{height:100%}`;
|
|
26589
26802
|
|
|
26590
26803
|
const TAB = "Tab";
|
|
26591
26804
|
const ENTER = "Enter";
|
|
@@ -26629,7 +26842,7 @@
|
|
|
26629
26842
|
return;
|
|
26630
26843
|
}
|
|
26631
26844
|
if (this._breakpointReached) {
|
|
26632
|
-
this.shadowRoot.adoptedStyleSheets = [css_248z$
|
|
26845
|
+
this.shadowRoot.adoptedStyleSheets = [css_248z$15.styleSheet, css_248z$t.styleSheet];
|
|
26633
26846
|
}
|
|
26634
26847
|
}
|
|
26635
26848
|
updated() {
|
|
@@ -26819,7 +27032,7 @@
|
|
|
26819
27032
|
return this._breakpointReached ? mobileView : desktopView;
|
|
26820
27033
|
}
|
|
26821
27034
|
}
|
|
26822
|
-
SgdsMainnavDropdown.styles = [...SgdsElement.styles, css_248z$
|
|
27035
|
+
SgdsMainnavDropdown.styles = [...SgdsElement.styles, css_248z$14, css_248z$15, css_248z$t];
|
|
26823
27036
|
/** @internal */
|
|
26824
27037
|
SgdsMainnavDropdown.dependencies = {
|
|
26825
27038
|
"sgds-dropdown": SgdsDropdown,
|
|
@@ -26855,7 +27068,7 @@
|
|
|
26855
27068
|
queryAssignedElements()
|
|
26856
27069
|
], SgdsMainnavDropdown.prototype, "defaultNodes", void 0);
|
|
26857
27070
|
|
|
26858
|
-
var css_248z$
|
|
27071
|
+
var css_248z$s = css`:host([expand=always]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}@media screen and (min-width:512px){:host([expand=sm]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=sm]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}:host([expand=sm]) ::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus)}}@media screen and (min-width:768px){:host([expand=md]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=md]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}:host([expand=md]) ::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus)}}@media screen and (min-width:1024px){:host([expand=lg]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=lg]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}:host([expand=lg]) ::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus)}}@media screen and (min-width:1280px){:host([expand=xl]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=xl]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}:host([expand=xl]) ::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus)}}@media screen and (min-width:1440px){:host([expand=xxl]) ::slotted(*){border-bottom:var(--sgds-border-width-4) solid transparent;min-height:100%;padding:0 var(--sgds-padding-md)}:host(:not([disabled])[active][expand=xxl]) ::slotted(*){border-color:var(--sgds-primary-border-color-default)}:host([expand=xxl]) ::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus)}}@media screen and (max-width:511px){:host(:not([disabled])[active][expand=sm]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:767px){:host(:not([disabled])[active][expand=md]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:1023px){:host(:not([disabled])[active][expand=lg]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:1279px){:host(:not([disabled])[active][expand=xl]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}@media screen and (max-width:1439px){:host(:not([disabled])[active][expand=xxl]) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle)}}::slotted(*){--sgds-link-color-default:var(--sgds-color-default);align-items:center;box-sizing:border-box;color:var(--sgds-link-color-default,var(--sgds-color-default));cursor:pointer;display:flex;height:auto!important;padding:var(--sgds-padding-sm) var(--sgds-mainnav-padding-x);text-decoration:none!important;text-decoration:none}@media screen and (max-width:767px){::slotted(*){padding:var(--sgds-padding-sm) var(--sgds-mainnav-mobile-padding-x)}}:host(:not([disabled])[active]) ::slotted(*){--sgds-link-color-default:var(--sgds-primary-color-default);color:var(--sgds-link-color-default,var(--sgds-primary-color-default))}:host([disabled]) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-link-color-emphasis,var(--sgds-color-default))}:host(:not([disabled])) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-primary-color-default);color:var(--sgds-link-color-emphasis,var(--sgds-primary-color-default))}::slotted(a:focus),::slotted(a:focus-visible){outline:0}::slotted(a:focus-visible){--sgds-link-color-emphasis:var(--sgds-primary-color-default);box-shadow:var(--sgds-box-shadow-focus) inset;color:var(--sgds-link-color-emphasis,var(--sgds-primary-color-default))}:host([disabled]) ::slotted(*){cursor:not-allowed;opacity:var(--sgds-opacity-50)}`;
|
|
26859
27072
|
|
|
26860
27073
|
/**
|
|
26861
27074
|
* @slot default - slot for SgdsMainnavItem element.
|
|
@@ -26864,7 +27077,7 @@
|
|
|
26864
27077
|
class SgdsMainnavItem extends SgdsElement {
|
|
26865
27078
|
constructor() {
|
|
26866
27079
|
super(...arguments);
|
|
26867
|
-
/** when true, sets the active stylings of
|
|
27080
|
+
/** when true, sets the active stylings of the navigation item */
|
|
26868
27081
|
this.active = false;
|
|
26869
27082
|
/** Disables the SgdsMainnavItem */
|
|
26870
27083
|
this.disabled = false;
|
|
@@ -26905,9 +27118,9 @@
|
|
|
26905
27118
|
return html$1 `<slot @slotchange=${this._handleSlotChange}></slot>`;
|
|
26906
27119
|
}
|
|
26907
27120
|
}
|
|
26908
|
-
SgdsMainnavItem.styles = [...SgdsElement.styles, css_248z$
|
|
27121
|
+
SgdsMainnavItem.styles = [...SgdsElement.styles, css_248z$s];
|
|
26909
27122
|
__decorate([
|
|
26910
|
-
property({ type: Boolean })
|
|
27123
|
+
property({ type: Boolean, reflect: true })
|
|
26911
27124
|
], SgdsMainnavItem.prototype, "active", void 0);
|
|
26912
27125
|
__decorate([
|
|
26913
27126
|
property({ type: Boolean, reflect: true })
|
|
@@ -26916,9 +27129,9 @@
|
|
|
26916
27129
|
watch("disabled")
|
|
26917
27130
|
], SgdsMainnavItem.prototype, "_handleDisabled", null);
|
|
26918
27131
|
|
|
26919
|
-
var css_248z$
|
|
27132
|
+
var css_248z$r = css`b{font-weight:bolder}[role=button]{cursor:pointer}a{color:#0049dc}a:hover{color:#0022b9}.sgds-masthead{font-family:Inter,system-ui,sans-serif;font-size:.875rem;line-height:1.25rem}.banner{background-color:light-dark(#f3f3f3,#1a1a1a)}.container{margin-left:auto;margin-right:auto;max-width:var(--sgds-mainnav-max-width);padding:.25rem var(--sgds-mainnav-padding-x);width:100%}.sg-crest{flex-shrink:0;height:20px;width:20px}.sg-crest path{fill:#db0000}.masthead-layout{display:flex;gap:.25rem}.masthead-text-layout{align-items:center;display:flex;flex-wrap:wrap;gap:0 .75rem}.sgds-masthead-identify-icon{align-self:center;display:block;height:20px;transform:rotate(180deg);transition:transform .3s ease-in-out 0s;user-select:none;width:20px}.sgds-masthead-identify-icon.show{transform:rotate(0deg)}.sgds-masthead-button{align-items:center;color:light-dark(#0269d0,#60aaf4);cursor:pointer;display:flex;gap:4px}.sgds-masthead-button:hover{color:light-dark(#0151a0,#96c7f7)}.panel{background-color:light-dark(oklch(from #0e0e0e l c h/.1),oklch(from #fff l c h/.1))}.sgds-masthead .sgds-masthead-content{display:none;padding-bottom:1rem;padding-top:1rem}.sgds-masthead .sgds-masthead-content.show{display:block}.content-grid{display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}.icon{margin-top:-.1em}.wrapper{display:flex;gap:.5rem}.content{display:flex;flex-direction:column;gap:.25rem}.content .title{font-weight:600}.content article{color:light-dark(#525252,#a5a5a5)}.banner-icon,.banner-icon-inline{height:20px;width:20px}.banner-icon path,.banner-icon-inline path{fill:light-dark(#1a1a1a,#f3f3f3)}a.trusted-websites-link{color:light-dark(#0269d0,#60aaf4);text-decoration:underline;width:fit-content}a.trusted-websites-link:hover{color:light-dark(#0151a0,#96c7f7)}.sgds-masthead-button:focus,.sgds-masthead-button:focus-visible,a.trusted-websites-link:focus,a.trusted-websites-link:focus-visible{box-shadow:0 0 0 4px #60aaf4;outline:0}@media screen and (max-width:768px){.container{padding:.25rem var(--sgds-mainnav-mobile-padding-x)}.sgds-masthead-content .content-grid{gap:1rem;grid-template-columns:1fr}}`;
|
|
26920
27133
|
|
|
26921
|
-
var css_248z$
|
|
27134
|
+
var css_248z$q = css`svg{vertical-align:middle}`;
|
|
26922
27135
|
|
|
26923
27136
|
/**
|
|
26924
27137
|
* @summary All .gov.sg digital services shall adopt The Official Government Banner for every page in the digital service and be placed at the top of the page.
|
|
@@ -27096,7 +27309,7 @@
|
|
|
27096
27309
|
`;
|
|
27097
27310
|
}
|
|
27098
27311
|
}
|
|
27099
|
-
SgdsMasthead.styles = [...SgdsElement.styles, css_248z$
|
|
27312
|
+
SgdsMasthead.styles = [...SgdsElement.styles, css_248z$q, css_248z$18, css_248z$r];
|
|
27100
27313
|
__decorate([
|
|
27101
27314
|
state()
|
|
27102
27315
|
], SgdsMasthead.prototype, "toggleVisibility", void 0);
|
|
@@ -27218,7 +27431,7 @@
|
|
|
27218
27431
|
}
|
|
27219
27432
|
}
|
|
27220
27433
|
|
|
27221
|
-
var css_248z$
|
|
27434
|
+
var css_248z$p = css`:host([size=sm]) .modal-panel{max-width:var(--sgds-dimension-480)}:host([size=md]) .modal-panel{max-width:var(--sgds-dimension-640)}:host([size=lg]) .modal-panel{max-width:var(--sgds-dimension-800)}:host([size=fullscreen]) .modal-overlay{background-color:var(--sgds-surface-default)}.modal{align-items:start;bottom:0;display:flex;font-family:var(--sgds-body-font-family);justify-content:center;left:0;position:fixed;right:0;top:0;z-index:105500}.modal-panel{border-radius:var(--sgds-border-radius-md);display:flex;flex-direction:column;gap:var(--sgds-gap-2-xl);margin:var(--sgds-margin-sm) var(--sgds-margin-xs);max-height:calc(100% - var(--sgds-margin-sm) - var(--sgds-margin-sm));position:relative;width:100%}:host(:not([size=fullscreen])) .modal-panel{background-color:var(--sgds-surface-default);max-width:var(--sgds-dimension-640);padding:var(--sgds-padding-xl)}.modal-panel:focus{outline:none}.modal-content{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--sgds-gap-2-xl);min-height:0;position:relative}.modal-header__close{position:absolute;right:calc(var(--sgds-padding-md)*-1);top:calc(var(--sgds-padding-md)*-1)}@media screen and (min-width:512px){:host([size=fullscreen]) .modal-panel{margin:var(--sgds-margin-sm)}}@media screen and (min-width:768px){:host([size=fullscreen]) .modal-panel{margin:var(--sgds-margin-md);max-height:calc(100% - var(--sgds-margin-md) - var(--sgds-margin-md))}}@media screen and (min-width:1024px){:host([size=fullscreen]) .modal-panel{margin:var(--sgds-margin-xl) var(--sgds-margin-xs);max-height:calc(100% - var(--sgds-margin-xl) - var(--sgds-margin-xl));max-width:var(--sgds-dimension-896)}}@media screen and (min-width:1280px){:host([size=fullscreen]) .modal-panel{max-width:var(--sgds-dimension-1176)}}@media screen and (min-width:1440px){:host([size=fullscreen]) .modal-panel{max-width:var(--sgds-dimension-1320)}}.modal.show .modal-panel{opacity:1;transform:none}.modal-header{display:flex;flex:0 0 auto;flex-direction:row;justify-content:space-between;max-width:var(--sgds-dimension-872)}.modal-header__title-description{display:flex;flex-direction:column;gap:var(--sgds-gap-sm)}:host([size=fullscreen]) .modal-header__title-description{gap:var(--sgds-gap-md)}slot[name=title]::slotted(*){--sgds-margin-2-xs:var(--sgds-margin-none);--sgds-margin-xs:var(--sgds-margin-none);--sgds-font-size-6:var(--sgds-font-size-4);align-items:center;display:flex;flex:1 1 auto;font-size:var(--sgds-font-size-6,--sgds-font-size-4);gap:1rem;line-height:var(--sgds-line-height-heading);margin:var(--sgds-margin-none,var(--sgds-margin-xs,--sgds-margin-2-xs))}slot[name=description]::slotted(*){--sgds-paragraph-spacing-xl:var(--sgds-margin-none);color:var(--sgds-color-subtle);line-height:var(--sgds-line-height-body);margin:var(--sgds-margin-none,--sgds-paragraph-spacing-xl)}.modal-body{-webkit-overflow-scrolling:touch;flex:1 1 auto;overflow:auto}.modal-body slot::slotted(*){--sgds-paragraph-spacing-xl:var(--sgds-margin-none)}.modal-footer{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:var(--sgds-gap-md);justify-content:flex-end;padding-top:var(--sgds-padding-md)}.modal:not(.has-footer) .modal-footer{display:none}.modal-overlay{background-color:var(--sgds-bg-overlay);bottom:0;left:0;position:fixed;right:0;top:0}[hidden]{display:none}`;
|
|
27222
27435
|
|
|
27223
27436
|
/**
|
|
27224
27437
|
* @summary The modal component inform users about a specific task and may contain critical information which users then have to make a decision.
|
|
@@ -27283,7 +27496,7 @@
|
|
|
27283
27496
|
return;
|
|
27284
27497
|
if (buttonElements.length <= 1)
|
|
27285
27498
|
return;
|
|
27286
|
-
if (panelWidth
|
|
27499
|
+
if (panelWidth < SM_BREAKPOINT || (this.size === "fullscreen" && panelWidth < MD_BREAKPOINT)) {
|
|
27287
27500
|
buttonElements.forEach(buttonElement => {
|
|
27288
27501
|
const button = buttonElement;
|
|
27289
27502
|
button.fullWidth = true;
|
|
@@ -27427,20 +27640,22 @@
|
|
|
27427
27640
|
aria-labelledby="title"
|
|
27428
27641
|
tabindex="-1"
|
|
27429
27642
|
>
|
|
27430
|
-
<div class="modal-
|
|
27431
|
-
<div class="modal-
|
|
27432
|
-
<
|
|
27433
|
-
|
|
27643
|
+
<div class="modal-content">
|
|
27644
|
+
<div class="modal-header">
|
|
27645
|
+
<div class="modal-header__title-description">
|
|
27646
|
+
<slot class="modal-title" id="title" name="title"></slot>
|
|
27647
|
+
<slot name="description"></slot>
|
|
27648
|
+
</div>
|
|
27649
|
+
<sgds-close-button
|
|
27650
|
+
class="modal-header__close"
|
|
27651
|
+
@click="${() => this.requestClose("close-button")}"
|
|
27652
|
+
ariaLabel="close modal"
|
|
27653
|
+
></sgds-close-button>
|
|
27434
27654
|
</div>
|
|
27435
|
-
<
|
|
27436
|
-
|
|
27437
|
-
|
|
27438
|
-
|
|
27439
|
-
></sgds-close-button>
|
|
27440
|
-
</div>
|
|
27441
|
-
<div class="modal-body">
|
|
27442
|
-
<slot></slot>
|
|
27443
|
-
</div>
|
|
27655
|
+
<div class="modal-body">
|
|
27656
|
+
<slot></slot>
|
|
27657
|
+
</div>
|
|
27658
|
+
</div class="modal-content">
|
|
27444
27659
|
<div class="modal-footer">
|
|
27445
27660
|
<slot name="footer"></slot>
|
|
27446
27661
|
</div>
|
|
@@ -27449,7 +27664,7 @@
|
|
|
27449
27664
|
`;
|
|
27450
27665
|
}
|
|
27451
27666
|
}
|
|
27452
|
-
SgdsModal.styles = [...SgdsElement.styles, css_248z$
|
|
27667
|
+
SgdsModal.styles = [...SgdsElement.styles, css_248z$V, css_248z$q, css_248z$p];
|
|
27453
27668
|
/**@internal */
|
|
27454
27669
|
SgdsModal.dependencies = {
|
|
27455
27670
|
"sgds-close-button": SgdsCloseButton
|
|
@@ -27505,7 +27720,7 @@
|
|
|
27505
27720
|
options: { duration: 400 }
|
|
27506
27721
|
});
|
|
27507
27722
|
|
|
27508
|
-
var css_248z$
|
|
27723
|
+
var css_248z$o = css`ul{margin-bottom:1rem;margin-top:0;padding-left:2rem}svg{vertical-align:middle}.pagination{display:inline-flex;gap:var(--sgds-gap-2-xs);list-style:none;padding-left:0}.page-link{align-items:center;background-color:var(--sgds-bg-transparent);border:1px solid var(--sgds-border-color-default);border-radius:var(--sgds-border-radius-md);display:flex;height:var(--sgds-dimension-48);justify-content:center;width:var(--sgds-dimension-48)}@media (prefers-reduced-motion:reduce){.page-link{transition:none}}.page-link:focus,.page-link:not(.ellipsis):hover{background-color:var(--sgds-primary-bg-translucent);color:var(--sgds-primary-color-default);z-index:2}.page-link:focus{box-shadow:var(--sgds-box-shadow-focus);outline:0;z-index:3}.page-item>.page-link:not(.ellipsis){cursor:pointer}.page-item.active .page-link{background-color:var(--sgds-primary-bg-default);border-color:var(--sgds-info);color:var(--sgds-color-fixed-light);z-index:3}.ellipsis-disabled,.page-item.disabled .page-link{opacity:var(--sgds-opacity-50)}.ellipsis-disabled{cursor:not-allowed;pointer-events:none}.pagination-sm .page-link{font-size:var(--sgds-font-size-1);height:var(--sgds-dimension-40);width:var(--sgds-dimension-40)}.sr-only{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pagination-description{align-items:center;display:flex}.pagination-sm .pagination-description{font-size:var(--sgds-font-size-1)}`;
|
|
27509
27724
|
|
|
27510
27725
|
/**
|
|
27511
27726
|
* @summary The Pagination component enables the user to select a specific page from a range of pages
|
|
@@ -27789,7 +28004,7 @@
|
|
|
27789
28004
|
`;
|
|
27790
28005
|
}
|
|
27791
28006
|
}
|
|
27792
|
-
SgdsPagination.styles = [...SgdsElement.styles, css_248z$
|
|
28007
|
+
SgdsPagination.styles = [...SgdsElement.styles, css_248z$o];
|
|
27793
28008
|
/**@internal */
|
|
27794
28009
|
SgdsPagination.dependencies = {
|
|
27795
28010
|
"sgds-icon-button": SgdsIconButton,
|
|
@@ -27924,7 +28139,7 @@
|
|
|
27924
28139
|
*/
|
|
27925
28140
|
const styleMap = directive(StyleMapDirective);
|
|
27926
28141
|
|
|
27927
|
-
var css_248z$
|
|
28142
|
+
var css_248z$n = css`progress{vertical-align:baseline}.progress-container{display:flex;flex-direction:column;gap:var(--sgds-gap-2-xs);overflow:hidden}.progress{background-color:var(--sgds-bg-translucent)}.progress-bar{background-color:var(--sgds-primary-surface-default);display:flex;flex-direction:column;height:var(--sgds-dimension-4);justify-content:center;overflow:hidden;transition:width .6s ease}:host([variant=neutral]) .progress-bar{background-color:var(--sgds-neutral-surface-default)}.label{color:var(--sgds-color-subtle);font-size:var(--sgds-font-size-1);white-space:nowrap}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}`;
|
|
27928
28143
|
|
|
27929
28144
|
/**
|
|
27930
28145
|
* @summary Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.
|
|
@@ -27960,7 +28175,7 @@
|
|
|
27960
28175
|
`;
|
|
27961
28176
|
}
|
|
27962
28177
|
}
|
|
27963
|
-
SgdsProgressBar.styles = [...SgdsElement.styles, css_248z$
|
|
28178
|
+
SgdsProgressBar.styles = [...SgdsElement.styles, css_248z$n];
|
|
27964
28179
|
__decorate([
|
|
27965
28180
|
property({ type: String, reflect: true })
|
|
27966
28181
|
], SgdsProgressBar.prototype, "variant", void 0);
|
|
@@ -27980,7 +28195,7 @@
|
|
|
27980
28195
|
property({ type: String, reflect: true })
|
|
27981
28196
|
], SgdsProgressBar.prototype, "label", void 0);
|
|
27982
28197
|
|
|
27983
|
-
var css_248z$
|
|
28198
|
+
var css_248z$m = css`.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.input-group{align-items:stretch;display:flex;flex-wrap:wrap;gap:var(--sgds-form-gap-lg);position:relative}.input-group>sgds-input{flex:1 1 auto;min-width:0;position:relative}.input-group sgds-button:focus,.input-group>sgds-input:focus{z-index:3}.visually-hidden{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}`;
|
|
27984
28199
|
|
|
27985
28200
|
/**
|
|
27986
28201
|
* @summary The quantity toggle component is used to increase or decrease an incremental venue, best used when the user needs to enter or adjust the quantity of a selected item.
|
|
@@ -28197,7 +28412,7 @@
|
|
|
28197
28412
|
`;
|
|
28198
28413
|
}
|
|
28199
28414
|
}
|
|
28200
|
-
SgdsQuantityToggle.styles = [...FormControlElement.styles, css_248z$
|
|
28415
|
+
SgdsQuantityToggle.styles = [...FormControlElement.styles, css_248z$P, css_248z$q, css_248z$m];
|
|
28201
28416
|
/** @internal */
|
|
28202
28417
|
SgdsQuantityToggle.dependencies = {
|
|
28203
28418
|
"sgds-input": SgdsInput,
|
|
@@ -28234,7 +28449,7 @@
|
|
|
28234
28449
|
queryAsync("sgds-input")
|
|
28235
28450
|
], SgdsQuantityToggle.prototype, "_sgdsInput", void 0);
|
|
28236
28451
|
|
|
28237
|
-
var css_248z$
|
|
28452
|
+
var css_248z$l = css`:host{outline:0}input{margin:0}.form-check{display:flex;gap:var(--sgds-form-gap-md);padding:var(--sgds-form-padding-inline-sm) 0}.form-check-input-container{height:var(--sgds-form-height-sm);width:var(--sgds-form-width-xs)}.form-check-input{appearance:none;background-color:var(--sgds-form-surface-default);background-image:var(--sgds-radio-bg-image);background-position:50%;background-repeat:no-repeat;background-size:auto;border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:50%;height:var(--sgds-form-height-sm);width:var(--sgds-form-height-sm)}.form-check-input:not([disabled]):not(.is-invalid):not([aria-checked=true]):hover{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis)}.form-check-input:focus,.form-check-input:focus-visible{border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-emphasis);box-shadow:var(--sgds-form-box-shadow-focus);outline:0}.form-check-input:checked,.form-check-input[checked]{--sgds-radio-bg-image:url('data:image/svg+xml;charset=utf-8,<svg width="8" height="8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 4a4 4 0 1 1 8 0 4 4 0 0 1-8 0Z" fill="%23fff"/></svg>');background-color:var(--sgds-form-primary-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent)}.form-check-input:not([disabled]):not(.is-invalid):checked:focus-visible,.form-check-input:not([disabled]):not(.is-invalid):checked:hover,.form-check-input:not([disabled]):not(.is-invalid)[checked]:focus-visible,.form-check-input:not([disabled]):not(.is-invalid)[checked]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}:host([disabled]) .form-check{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.form-check-input:not([disabled]).is-invalid{border:var(--sgds-form-border-width-thick) solid var(--sgds-form-danger-border-color-default)}.form-check-input:checked.is-invalid,.form-check-input[checked].is-invalid{background-color:var(--sgds-form-danger-surface-default)}`;
|
|
28238
28453
|
|
|
28239
28454
|
/**
|
|
28240
28455
|
* @summary Radio allows the user to select one option from a set while seeing all available options.
|
|
@@ -28320,7 +28535,7 @@
|
|
|
28320
28535
|
`;
|
|
28321
28536
|
}
|
|
28322
28537
|
}
|
|
28323
|
-
SgdsRadio.styles = [...SgdsElement.styles, css_248z$
|
|
28538
|
+
SgdsRadio.styles = [...SgdsElement.styles, css_248z$Q, css_248z$l];
|
|
28324
28539
|
__decorate([
|
|
28325
28540
|
property({ type: Boolean, reflect: true })
|
|
28326
28541
|
], SgdsRadio.prototype, "checked", void 0);
|
|
@@ -28343,7 +28558,7 @@
|
|
|
28343
28558
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
28344
28559
|
], SgdsRadio.prototype, "handleDisabledChange", null);
|
|
28345
28560
|
|
|
28346
|
-
var css_248z$
|
|
28561
|
+
var css_248z$k = css`fieldset{border:0;gap:var(--sgds-form-gap-md);margin:0;min-width:0;padding:0}.label-hint-container,fieldset{display:flex;flex-direction:column}.label-hint-container{gap:var(--sgds-form-gap-sm)}.radio-group-validation-input{display:none}.radio-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}`;
|
|
28347
28562
|
|
|
28348
28563
|
/**
|
|
28349
28564
|
* @summary RadioGroup group multiple radios so they function as a single form control.
|
|
@@ -28574,7 +28789,7 @@
|
|
|
28574
28789
|
`;
|
|
28575
28790
|
}
|
|
28576
28791
|
}
|
|
28577
|
-
SgdsRadioGroup.styles = [...FormControlElement.styles, css_248z$
|
|
28792
|
+
SgdsRadioGroup.styles = [...FormControlElement.styles, css_248z$k];
|
|
28578
28793
|
__decorate([
|
|
28579
28794
|
query("slot:not([name])")
|
|
28580
28795
|
], SgdsRadioGroup.prototype, "defaultSlot", void 0);
|
|
@@ -28612,9 +28827,9 @@
|
|
|
28612
28827
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
28613
28828
|
], SgdsRadioGroup.prototype, "_handleDisabledChange", null);
|
|
28614
28829
|
|
|
28615
|
-
var css_248z$
|
|
28830
|
+
var css_248z$j = css`:host{display:block;position:relative}.select{flex-direction:column;gap:var(--sgds-form-gap-md)}.select .dropdown-menu{min-width:100%}.dropdown{display:flex;height:100%}.select{align-items:stretch;display:flex;flex-wrap:wrap;justify-content:flex-end;position:relative;width:-webkit-fill-available;width:-moz-available}.dropdown-menu{box-sizing:border-box;max-height:10rem;overflow-x:hidden;overflow-y:auto}.form-control-group.disabled{cursor:not-allowed;opacity:var(--sgds-opacity-50)}.form-control-group{align-items:center;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--sgds-form-border-radius-md);display:flex;gap:var(--sgds-form-gap-md);justify-content:space-between;min-height:var(--sgds-dimension-48);min-width:var(--sgds-dimension-256);padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:-webkit-fill-available;width:-moz-available}.form-control{appearance:none;background-clip:padding-box;background:none;border:none;caret-color:transparent;color:var(--sgds-form-color-default);display:inline;flex-grow:1;font-size:var(--sgds-font-size-2);line-height:var(--sgds-line-height-body);outline:none;padding:0}.select-input-container{display:flex;flex-wrap:wrap;gap:var(--sgds-gap-xs);width:100%}.empty-menu{padding:var(--sgds-padding-sm) var(--sgds-padding-lg,20px)}.form-control-group.readonly{border-color:var(--sgds-border-color-muted)}.form-control-group:not(.disabled):not(.is-invalid):hover{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis)}.form-control-group:not(.disabled):not(.is-invalid):focus,.form-control-group:not(.disabled):not(.is-invalid):focus-within{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);box-shadow:var(--sgds-form-box-shadow-focus);outline:0}.form-control-group.is-invalid{border:var(--sgds-form-border-width-thick) solid var(--sgds-form-danger-border-color-default)}.form-control-group.disabled{background-color:var(--sgds-form-surface-muted)}`;
|
|
28616
28831
|
|
|
28617
|
-
var css_248z$
|
|
28832
|
+
var css_248z$i = css`:host([active]) .dropdown-item{background-color:var(--sgds-primary-surface-translucent)}.dropdown-item{background-color:var(--sgds-bg-transparent);clear:both;color:var(--sgds-color-default);cursor:pointer;height:100%;padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-align:inherit}.dropdown-item .normal-item-content{align-items:center;display:flex;justify-content:space-between}:host([active]) .dropdown-item .normal-item-content{color:var(--sgds-primary-bg-default)}:host([active]) .dropdown-item .normal-item-content sgds-icon{fill:var(--sgds-primary-bg-default);color:var(--sgds-primary-bg-default)}.dropdown-item:hover{background:var(--sgds-bg-translucent-subtle)}.dropdown-item:focus,.dropdown-item:focus-visible{background:var(--sgds-bg-translucent-subtle);box-shadow:inset var(--sgds-form-box-shadow-focus);outline:0}`;
|
|
28618
28833
|
|
|
28619
28834
|
class SelectItem extends SgdsElement {
|
|
28620
28835
|
constructor() {
|
|
@@ -28659,7 +28874,7 @@
|
|
|
28659
28874
|
SelectItem.dependencies = {
|
|
28660
28875
|
"sgds-icon": SgdsIcon
|
|
28661
28876
|
};
|
|
28662
|
-
SelectItem.styles = [css_248z$
|
|
28877
|
+
SelectItem.styles = [css_248z$i];
|
|
28663
28878
|
__decorate([
|
|
28664
28879
|
property({ type: Boolean, reflect: true })
|
|
28665
28880
|
], SelectItem.prototype, "active", void 0);
|
|
@@ -28802,7 +29017,7 @@
|
|
|
28802
29017
|
`;
|
|
28803
29018
|
}
|
|
28804
29019
|
}
|
|
28805
|
-
SgdsSelect.styles = [...SelectElement.styles, css_248z$
|
|
29020
|
+
SgdsSelect.styles = [...SelectElement.styles, css_248z$j];
|
|
28806
29021
|
/** @internal */
|
|
28807
29022
|
SgdsSelect.dependencies = {
|
|
28808
29023
|
"sgds-icon": SgdsIcon,
|
|
@@ -28812,7 +29027,7 @@
|
|
|
28812
29027
|
watch("value", { waitUntilFirstUpdate: true })
|
|
28813
29028
|
], SgdsSelect.prototype, "_handleValueChange", null);
|
|
28814
29029
|
|
|
28815
|
-
var css_248z$
|
|
29030
|
+
var css_248z$h = css`:host{--sidenav-sticky-top:0rem;padding:var(--sgds-padding-md)}.sticky{height:calc(100vh - var(--sidenav-sticky-top));overflow-y:visible;position:sticky;top:var(--sidenav-sticky-top)}`;
|
|
28816
29031
|
|
|
28817
29032
|
/**
|
|
28818
29033
|
* @summary The side navigation is used to display a list of links to move between pages within a related category.
|
|
@@ -28857,7 +29072,7 @@
|
|
|
28857
29072
|
`;
|
|
28858
29073
|
}
|
|
28859
29074
|
}
|
|
28860
|
-
SgdsSidenav.styles = [...SgdsElement.styles, css_248z$
|
|
29075
|
+
SgdsSidenav.styles = [...SgdsElement.styles, css_248z$h];
|
|
28861
29076
|
__decorate([
|
|
28862
29077
|
property({ type: Boolean, attribute: true })
|
|
28863
29078
|
], SgdsSidenav.prototype, "sticky", void 0);
|
|
@@ -28865,7 +29080,7 @@
|
|
|
28865
29080
|
queryAssignedElements()
|
|
28866
29081
|
], SgdsSidenav.prototype, "defaultNodes", void 0);
|
|
28867
29082
|
|
|
28868
|
-
var css_248z$
|
|
29083
|
+
var css_248z$g = css`:host([class^=second-level]) .sidenav-btn{font-weight:var(--sgds-font-weight-regular);padding-left:var(--sgds-padding-3-xl)}button{all:unset}.sidenav-btn{background:0;border:0;border-radius:var(--sgds-border-radius-md);display:flex;font-size:var(--sgds-font-size-2);font-weight:var(--sgds-font-weight-semibold);gap:var(--sgds-gap-xs);line-height:var(--sgds-line-height-body);padding:var(--sgds-padding-sm) var(--sgds-padding-sm) var(--sgds-padding-sm) calc(var(--sgds-padding-sm) + var(--sgds-padding-2-xs));text-align:initial;width:100%;.caret-icon,slot[name=caret-icon]::slotted(*){margin-bottom:auto;margin-left:auto;transform:rotate(180deg);transition:all .3s ease-in-out}}.sidenav-btn:hover:not(.disabled){background-color:var(--sgds-bg-translucent-subtle)}.sidenav-btn.active{color:var(--sgds-color-default)}.sidenav-btn.disabled{opacity:var(--sgds-opacity-50);pointer-events:none}.sidenav-btn:not(.active){.caret-icon,slot[name=caret-icon]::slotted(*){transform:rotate(0deg)}}.sidenav-btn:focus-visible:not(.disabled),.sidenav-btn:focus:not(.disabled){background-color:var(--sgds-bg-translucent-subtle);box-shadow:var(--sgds-box-shadow-focus);outline:0}.no-menu-default:focus,.no-menu-default:focus-visible{background-color:var(--sgds-default-bg-translucent-subtle);box-shadow:var(--sgds-box-shadow-focus)}.no-menu-default::slotted(a){background:0;border:0;border-radius:var(--sgds-border-radius-md);color:inherit!important;display:flex;font-size:var(--sgds-font-size-2);font-weight:var(--sgds-font-weight-semibold)!important;gap:var(--sgds-gap-xs);line-height:var(--sgds-line-height-body)!important;line-height:var(--sgds-line-height-body);padding:var(--sgds-padding-sm) var(--sgds-padding-sm) var(--sgds-padding-sm) calc(var(--sgds-padding-sm) + var(--sgds-padding-2-xs));text-decoration:none!important}.no-menu-default::slotted(a:focus),.no-menu-default::slotted(a:focus-visible){background-color:var(--sgds-bg-translucent-subtle);box-shadow:var(--sgds-box-shadow-focus);outline:0!important}:host([class^=first-level][active]) .no-menu-default::slotted(a){background-color:var(--sgds-primary-surface-translucent);color:var(--sgds-primary-color-emphasis)!important}:host([class^=first-level][disabled]) .no-menu-default::slotted(a){opacity:var(--sgds-opacity-50);pointer-events:none}`;
|
|
28869
29084
|
|
|
28870
29085
|
/**
|
|
28871
29086
|
* @description SgdsSidenavItem can function as either a menu type or a link type. Its type is determined by the children slotted into the default slot.
|
|
@@ -29075,7 +29290,7 @@
|
|
|
29075
29290
|
`;
|
|
29076
29291
|
}
|
|
29077
29292
|
}
|
|
29078
|
-
SgdsSidenavItem.styles = [...SgdsElement.styles, css_248z$
|
|
29293
|
+
SgdsSidenavItem.styles = [...SgdsElement.styles, css_248z$g];
|
|
29079
29294
|
/** @internal */
|
|
29080
29295
|
SgdsSidenavItem.dependencies = {
|
|
29081
29296
|
"sgds-icon": SgdsIcon
|
|
@@ -29116,7 +29331,7 @@
|
|
|
29116
29331
|
options: { duration: 200, easing: "ease-in-out" }
|
|
29117
29332
|
});
|
|
29118
29333
|
|
|
29119
|
-
var css_248z$
|
|
29334
|
+
var css_248z$f = css`:host([class^=third-level]) ::slotted(a){padding-left:calc(var(--sgds-padding-xl) + var(--sgds-padding-3-xl))}::slotted(a){--sgds-link-color-default:var(--sgds-color-default);border-radius:var(--sgds-border-radius-md);color:var(--sgds-color-default,var(--sgds-link-color-default));display:block;padding:var(--sgds-padding-sm) var(--sgds-padding-sm) var(--sgds-padding-sm) var(--sgds-padding-3-xl);text-decoration:none!important}:host([active]) ::slotted(a){--sgds-link-color-default:var(--sgds-primary-color-emphasis);background-color:var(--sgds-primary-surface-translucent);color:var(--sgds-primary-color-emphasis,var(--sgds-link-color-default))}:host(:not([disabled]):not([active])) ::slotted(a:hover){background-color:var(--sgds-bg-translucent-subtle)}::slotted(a:focus),::slotted(a:focus-visible),::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-default);color:var(--sgds-color-default,var(--sgds-link-color-emphasis))}:host([active]) ::slotted(a:focus),:host([active]) ::slotted(a:focus-visible),:host([active]) ::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-primary-color-emphasis);color:var(--sgds-primary-color-emphasis,var(--sgds-link-color-emphasis))}:host([disabled]) ::slotted(a){opacity:var(--sgds-opacity-50);pointer-events:none}:host([disabled]) ::slotted(a:focus),:host([disabled]) ::slotted(a:focus-visible){box-shadow:none;outline:0}::slotted(a:focus),::slotted(a:focus-visible){background-color:var(--sgds-bg-translucent-subtle);box-shadow:var(--sgds-box-shadow-focus);outline:0}:host([active]) ::slotted(a:focus),:host([active]) ::slotted(a:focus-visible){background-color:var(--sgds-primary-bg-translucent)}`;
|
|
29120
29335
|
|
|
29121
29336
|
/**
|
|
29122
29337
|
* @slot default - slot for label of anchor tag.
|
|
@@ -29153,7 +29368,7 @@
|
|
|
29153
29368
|
return html$1 ` <slot @slotchange=${this._handleSlotChange}></slot> `;
|
|
29154
29369
|
}
|
|
29155
29370
|
}
|
|
29156
|
-
SgdsSidenavLink.styles = [...SgdsElement.styles, css_248z$
|
|
29371
|
+
SgdsSidenavLink.styles = [...SgdsElement.styles, css_248z$f];
|
|
29157
29372
|
__decorate([
|
|
29158
29373
|
property({ type: Boolean, reflect: true })
|
|
29159
29374
|
], SgdsSidenavLink.prototype, "active", void 0);
|
|
@@ -29167,7 +29382,7 @@
|
|
|
29167
29382
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
29168
29383
|
], SgdsSidenavLink.prototype, "_handleDisabled", null);
|
|
29169
29384
|
|
|
29170
|
-
var css_248z$
|
|
29385
|
+
var css_248z$e = css`.skeleton{--bg:var(--sgds-bg-translucent-subtle);background-color:var(--bg);border-radius:var(--sgds-border-radius-sm);display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}.skeleton.skeleton-paragraph{background-color:transparent}.skeleton.skeleton-paragraph.auto-size-rows>div[class*=skeleton-row]{background-color:var(--sgds-bg-translucent);border-radius:var(--sgds-border-radius-sm);height:-webkit-fill-available}.sheen{--sheen-color:var(--sgds-bg-translucent);animation:sheen 8s ease-in-out infinite;background:linear-gradient(270deg,var(--bg) 0,var(--sheen-color) 33.33%,var(--sheen-color) 66.67%,var(--bg) 100%);background-size:400% 100%}@keyframes sheen{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.sheen{animation:none}}`;
|
|
29171
29386
|
|
|
29172
29387
|
/**
|
|
29173
29388
|
* @summary A skeleton is a low-fidelity visual placeholder that represents the loading of interface elements
|
|
@@ -29215,7 +29430,7 @@
|
|
|
29215
29430
|
`;
|
|
29216
29431
|
}
|
|
29217
29432
|
}
|
|
29218
|
-
SgdsSkeleton.styles = [css_248z$
|
|
29433
|
+
SgdsSkeleton.styles = [css_248z$e];
|
|
29219
29434
|
__decorate([
|
|
29220
29435
|
query(".skeleton")
|
|
29221
29436
|
], SgdsSkeleton.prototype, "skeleton", void 0);
|
|
@@ -29238,7 +29453,7 @@
|
|
|
29238
29453
|
// When user use a template of sgds-skeletons, add one visually hidden span to indicate Loading...
|
|
29239
29454
|
// Loading labels must be unique thats why its not advisible to handle the aria labelling for users inside sgds-skeleton
|
|
29240
29455
|
|
|
29241
|
-
var css_248z$
|
|
29456
|
+
var css_248z$d = css`.stepper{display:flex;flex-wrap:wrap}.stepper.vertical{flex-direction:column}.stepper.horizontal .stepper-item-container{align-items:center;display:flex;flex-basis:1em;flex-direction:column;flex-grow:1;flex-shrink:1;position:relative}.stepper.vertical .stepper-item-container{position:relative;width:fit-content}.stepper .stepper-item{align-items:center;display:flex;flex-direction:column;gap:var(--sgds-gap-sm)}.stepper.vertical .stepper-item{align-items:flex-start;flex-direction:row}.stepper.vertical .stepper-item-container:not(:last-child) .stepper-item{margin-bottom:var(--sgds-padding-xl)}.stepper .stepper-item:focus,.stepper .stepper-item:focus-visible{outline:0}.stepper .stepper-item.is-clickable:focus,.stepper .stepper-item.is-clickable:focus-visible{box-shadow:var(--sgds-box-shadow-focus)}.stepper.horizontal .stepper-item-container:not(:first-child) .stepper-item:before{background:var(--sgds-border-color-translucent);bottom:0;content:" ";height:var(--sgds-dimension-2);left:calc(-50% + 16px);position:absolute;top:15px;width:calc(100% - var(--sgds-dimension-32))}.stepper.vertical .stepper-item-container:not(:last-child) .stepper-item:after{background:var(--sgds-bg-translucent);bottom:0;content:" ";height:calc(100% - var(--sgds-dimension-32));left:15px;position:absolute;top:32px;width:var(--sgds-dimension-2)}.stepper.horizontal .stepper-item-container .stepper-item.is-active:before,.stepper.horizontal .stepper-item-container .stepper-item.is-completed:before,.stepper.vertical .stepper-item-container .stepper-item.is-completed:after{background:var(--sgds-primary-border-color-default)}.stepper .stepper-item.is-clickable{cursor:pointer}.stepper .stepper-marker{align-items:center;background:var(--sgds-bg-translucent);border:var(--sgds-border-width-2) solid var(--sgds-border-color-transparent);border-radius:50%;color:var(--sgds-color-default);display:flex;height:var(--sgds-dimension-32);justify-content:center;width:var(--sgds-dimension-32);z-index:1}.stepper:not(.vertical) .stepper-detail{max-width:var(--sgds-dimension-128);text-align:center}.stepper.vertical .stepper-detail{padding:var(--sgds-padding-2-xs) 0 0;text-align:left}.stepper .stepper-item:not(.is-active):not(.is-completed) .stepper-detail{color:var(--sgds-color-subtle)}.stepper .stepper-item.is-clickable:focus .stepper-marker,.stepper .stepper-item.is-clickable:focus-visible .stepper-marker,.stepper .stepper-item.is-clickable:hover .stepper-marker{background-color:var(--sgds-primary-surface-emphasis);border-color:var(--sgds-border-color-transparent);color:var(--sgds-color-fixed-light)}.stepper .stepper-item.is-clickable:focus .stepper-detail,.stepper .stepper-item.is-clickable:focus-visible .stepper-detail,.stepper .stepper-item.is-clickable:hover .stepper-detail{color:var(--sgds-primary-color-emphasis)}.stepper .stepper-item.is-clickable .stepper-detail,.stepper.clickable .stepper-item.is-active .stepper-detail{color:var(--sgds-primary-color-default)}.stepper .stepper-item.is-active .stepper-marker{background-color:var(--sgds-primary-surface-default);color:var(--sgds-color-fixed-light)}.stepper .stepper-item.is-completed .stepper-marker{background-color:var(--sgds-bg-transparent);border:var(--sgds-border-width-2) solid var(--sgds-primary-border-color-default);color:var(--sgds-primary-color-default)}`;
|
|
29242
29457
|
|
|
29243
29458
|
/**
|
|
29244
29459
|
* @summary Steppers are used to inform users which step they are at in a form or a process
|
|
@@ -29356,7 +29571,7 @@
|
|
|
29356
29571
|
`;
|
|
29357
29572
|
}
|
|
29358
29573
|
}
|
|
29359
|
-
SgdsStepper.styles = [...SgdsElement.styles, css_248z$
|
|
29574
|
+
SgdsStepper.styles = [...SgdsElement.styles, css_248z$d];
|
|
29360
29575
|
/** @internal */
|
|
29361
29576
|
SgdsStepper.dependencies = { "sgds-icon": SgdsIcon };
|
|
29362
29577
|
__decorate([
|
|
@@ -29378,10 +29593,11 @@
|
|
|
29378
29593
|
watch("activeStep", { waitUntilFirstUpdate: true })
|
|
29379
29594
|
], SgdsStepper.prototype, "_handleActiveStepChange", null);
|
|
29380
29595
|
|
|
29381
|
-
var css_248z$
|
|
29596
|
+
var css_248z$c = css`:host{display:block;position:sticky;top:0;z-index:1000}nav{background-color:var(--sgds-surface-raised);border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);width:100%}.subnav{flex-direction:column;flex-wrap:nowrap}.header-container,.subnav{align-items:flex-start;display:flex}.header-container{gap:var(--sgds-gap-md);padding:var(--sgds-padding-md) var(--sgds-padding-lg);width:100%}slot[name=header]::slotted(*){--sgds-margin-3-xs:var(--sgds-margin-none);flex:1 1 auto;margin-bottom:var(--sgds-margin-3-xs,--sgds-margin-none);padding-top:var(--sgds-padding-none)}.subnav-toggler{cursor:pointer;transition:transform .2s ease-in-out}.subnav-toggler:focus,.subnav-toggler:focus-visible{box-shadow:var(--sgds-box-shadow-focus);outline:0}.subnav:not(.collapsed) .subnav-toggler{transform:rotate(-180deg)}.subnav-nav-group{display:flex;flex:1 1 0}.subnav-nav,.subnav-nav-group{align-items:flex-start;flex-direction:column;width:100%}.subnav-nav{display:none;overflow-y:auto;transition:transform .2s ease-in-out}.subnav-nav ::slotted(*){width:100%}.subnav-actions{bottom:0;display:flex;flex-direction:column;gap:var(--sgds-gap-md);padding:var(--sgds-padding-md) var(--sgds-padding-lg);position:sticky;width:100%}slot[name=actions]::slotted(*){width:100%}@media screen and (max-width:1023px){.subnav.sgds-container{max-width:inherit}}@media screen and (min-width:512px){.subnav-actions{flex-direction:row}}@media screen and (min-width:768px){nav{border-bottom:var(--sgds-border-width-0)}.subnav{flex-direction:row}.subnav.collapsed{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}.header-container{padding:var(--sgds-padding-lg) var(--sgds-padding-2-xl)}.subnav-nav{background-color:var(--sgds-surface-raised);border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);left:0;position:absolute;top:100%}.subnav-actions{align-items:center;flex-direction:row;padding:var(--sgds-padding-sm) var(--sgds-padding-2-xl) var(--sgds-padding-sm) var(--sgds-padding-none);position:inherit}}@media screen and (min-width:1024px){nav{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);position:inherit}.subnav{flex-wrap:wrap;gap:var(--sgds-gap-xl);row-gap:var(--sgds-gap-none)}.subnav.collapsed{border-bottom:var(--sgds-border-width-0)}.header-container{flex:1;padding:var(--sgds-padding-none);width:auto}slot[name=header]::slotted(*){padding-top:var(--sgds-padding-lg);white-space:nowrap}.subnav-nav-group{align-items:center;flex:inherit;flex-direction:row;flex-wrap:wrap;gap:var(--sgds-gap-xl);justify-content:space-between;row-gap:var(--sgds-gap-none);width:auto}.subnav-nav{align-items:center;background-color:inherit;border-bottom:var(--sgds-border-width-0);display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--sgds-gap-lg);overflow-y:inherit;position:inherit;row-gap:0;transition:none;width:auto}.subnav-nav ::slotted(*){width:inherit}.subnav-toggler{display:none}.subnav-actions{padding:var(--sgds-padding-sm) var(--sgds-padding-none);width:auto}slot[name=actions]::slotted(*){width:inherit}}`;
|
|
29382
29597
|
|
|
29383
|
-
var css_248z$
|
|
29598
|
+
var css_248z$b = css`.sgds-container{margin-left:auto;margin-right:auto;max-width:calc(100% - 40px);width:100%}.sgds-grid{display:grid;gap:var(--sgds-gap-md);grid-template-columns:repeat(4,1fr)}.sgds-col-1{grid-column:span 1}.sgds-col-2{grid-column:span 2}.sgds-col-3{grid-column:span 3}.sgds-col-4{grid-column:span 4}.sgds-col-center-2{grid-column:2/span 2}.sgds-col-none{display:none}@media (min-width:512px){.sgds-grid{grid-template-columns:repeat(8,1fr)}.sgds-container{max-width:calc(100% - 48px)}.sgds-col-sm-1{grid-column:span 1}.sgds-col-sm-2{grid-column:span 2}.sgds-col-sm-3{grid-column:span 3}.sgds-col-sm-4{grid-column:span 4}.sgds-col-sm-5{grid-column:span 5}.sgds-col-sm-6{grid-column:span 6}.sgds-col-sm-7{grid-column:span 7}.sgds-col-sm-8{grid-column:span 8}.sgds-col-sm-center-2{grid-column:4/span 2}.sgds-col-sm-center-4{grid-column:3/span 4}.sgds-col-sm-center-6{grid-column:2/span 6}.sgds-col-none{display:revert}.sgds-col-sm-none{display:none}}@media (min-width:768px){.sgds-container{max-width:calc(100% - 64px)}.sgds-col-md-1{grid-column:span 1}.sgds-col-md-2{grid-column:span 2}.sgds-col-md-3{grid-column:span 3}.sgds-col-md-4{grid-column:span 4}.sgds-col-md-5{grid-column:span 5}.sgds-col-md-6{grid-column:span 6}.sgds-col-md-7{grid-column:span 7}.sgds-col-md-8{grid-column:span 8}.sgds-col-md-center-2{grid-column:4/span 2}.sgds-col-md-center-4{grid-column:3/span 4}.sgds-col-md-center-6{grid-column:2/span 6}.sgds-col-sm-none{display:revert}.sgds-col-md-none{display:none}}@media (min-width:1024px){.sgds-grid{grid-template-columns:repeat(12,1fr)}.sgds-container{max-width:896px}.sgds-col-lg-1{grid-column:span 1}.sgds-col-lg-2{grid-column:span 2}.sgds-col-lg-3{grid-column:span 3}.sgds-col-lg-4{grid-column:span 4}.sgds-col-lg-5{grid-column:span 5}.sgds-col-lg-6{grid-column:span 6}.sgds-col-lg-7{grid-column:span 7}.sgds-col-lg-8{grid-column:span 8}.sgds-col-lg-9{grid-column:span 9}.sgds-col-lg-10{grid-column:span 10}.sgds-col-lg-11{grid-column:span 11}.sgds-col-lg-12{grid-column:span 12}.sgds-col-lg-center-2{grid-column:6/span 2}.sgds-col-lg-center-4{grid-column:5/span 4}.sgds-col-lg-center-6{grid-column:4/span 6}.sgds-col-lg-center-8{grid-column:3/span 8}.sgds-col-lg-center-10{grid-column:2/span 10}.sgds-col-md-none{display:revert}.sgds-col-lg-none{display:none}}@media (min-width:1280px){.sgds-grid{gap:var(--sgds-gap-xl)}.sgds-container{max-width:1176px}.sgds-col-xl-1{grid-column:span 1}.sgds-col-xl-2{grid-column:span 2}.sgds-col-xl-3{grid-column:span 3}.sgds-col-xl-4{grid-column:span 4}.sgds-col-xl-5{grid-column:span 5}.sgds-col-xl-6{grid-column:span 6}.sgds-col-xl-7{grid-column:span 7}.sgds-col-xl-8{grid-column:span 8}.sgds-col-xl-9{grid-column:span 9}.sgds-col-xl-10{grid-column:span 10}.sgds-col-xl-11{grid-column:span 11}.sgds-col-xl-12{grid-column:span 12}.sgds-col-xl-center-2{grid-column:6/span 2}.sgds-col-xl-center-4{grid-column:5/span 4}.sgds-col-xl-center-6{grid-column:4/span 6}.sgds-col-xl-center-8{grid-column:3/span 8}.sgds-col-xl-center-10{grid-column:2/span 10}.sgds-col-lg-none{display:revert}.sgds-col-xl-none{display:none}}@media (min-width:1440px){.sgds-container{max-width:1320px}.sgds-col-2-xl-1{grid-column:span 1}.sgds-col-2-xl-2{grid-column:span 2}.sgds-col-2-xl-3{grid-column:span 3}.sgds-col-2-xl-4{grid-column:span 4}.sgds-col-2-xl-5{grid-column:span 5}.sgds-col-2-xl-6{grid-column:span 6}.sgds-col-2-xl-7{grid-column:span 7}.sgds-col-2-xl-8{grid-column:span 8}.sgds-col-2-xl-9{grid-column:span 9}.sgds-col-2-xl-10{grid-column:span 10}.sgds-col-2-xl-11{grid-column:span 11}.sgds-col-2-xl-12{grid-column:span 12}.sgds-col-2-xl-center-2{grid-column:6/span 2}.sgds-col-2-xl-center-4{grid-column:5/span 4}.sgds-col-2-xl-center-6{grid-column:4/span 6}.sgds-col-2-xl-center-8{grid-column:3/span 8}.sgds-col-2-xl-center-10{grid-column:2/span 10}.sgds-col-xl-none{display:revert}.sgds-col-2-xl-none{display:none}}`;
|
|
29384
29599
|
|
|
29600
|
+
const VALID_KEYS = ["Enter", " "];
|
|
29385
29601
|
/**
|
|
29386
29602
|
* @summary This component provides secondary navigation within a specific section or page. It typically appears below the main navigation and offers context-specific links or actions to help users explore related content.
|
|
29387
29603
|
*
|
|
@@ -29400,21 +29616,33 @@
|
|
|
29400
29616
|
super(...arguments);
|
|
29401
29617
|
this.isCollapsed = false;
|
|
29402
29618
|
this.isMenuOpen = false;
|
|
29403
|
-
this._handleResize = () => {
|
|
29619
|
+
this._handleResize = async () => {
|
|
29404
29620
|
this.isCollapsed = window.innerWidth < LG_BREAKPOINT;
|
|
29621
|
+
await this.updateComplete;
|
|
29405
29622
|
if (!this.isCollapsed) {
|
|
29406
29623
|
this.isMenuOpen = false;
|
|
29407
29624
|
}
|
|
29408
|
-
this.
|
|
29625
|
+
this._updateMobileLayout();
|
|
29409
29626
|
};
|
|
29410
|
-
this.
|
|
29411
|
-
if (!this.nav || !this.
|
|
29627
|
+
this._updateMobileLayout = () => {
|
|
29628
|
+
if (!this.nav || !this.headerContainer || !this.mobileActions || !this.mobileNav)
|
|
29412
29629
|
return;
|
|
29413
|
-
|
|
29414
|
-
|
|
29415
|
-
|
|
29416
|
-
|
|
29417
|
-
|
|
29630
|
+
if (this.isCollapsed) {
|
|
29631
|
+
const { top: subnavTop } = this.nav.getBoundingClientRect();
|
|
29632
|
+
const headerHeight = this.headerContainer.clientHeight;
|
|
29633
|
+
const actionsButtonHeight = this.mobileActions.clientHeight;
|
|
29634
|
+
const offset = window.innerWidth >= MD_BREAKPOINT && window.innerWidth < LG_BREAKPOINT
|
|
29635
|
+
? subnavTop + headerHeight
|
|
29636
|
+
: subnavTop + headerHeight + actionsButtonHeight;
|
|
29637
|
+
this.mobileNav.style.maxHeight = `calc(100dvh - ${offset}px)`;
|
|
29638
|
+
this.style.minHeight = `${this.nav.clientHeight}px`;
|
|
29639
|
+
this.nav.style.position = "absolute";
|
|
29640
|
+
}
|
|
29641
|
+
else {
|
|
29642
|
+
this.mobileNav.style.maxHeight = "none";
|
|
29643
|
+
this.style.minHeight = "auto";
|
|
29644
|
+
this.nav.style.position = "relative";
|
|
29645
|
+
}
|
|
29418
29646
|
};
|
|
29419
29647
|
this._toggleMenu = () => {
|
|
29420
29648
|
var _a;
|
|
@@ -29430,36 +29658,29 @@
|
|
|
29430
29658
|
}
|
|
29431
29659
|
connectedCallback() {
|
|
29432
29660
|
super.connectedCallback();
|
|
29433
|
-
this._handleResize();
|
|
29661
|
+
// this._handleResize();
|
|
29434
29662
|
window.addEventListener("resize", this._handleResize);
|
|
29435
|
-
window.addEventListener("click", (event) => this._handleClickOutOfElement(event, this.
|
|
29663
|
+
window.addEventListener("click", (event) => this._handleClickOutOfElement(event, this.navGroup));
|
|
29436
29664
|
}
|
|
29437
29665
|
disconnectedCallback() {
|
|
29438
29666
|
super.disconnectedCallback();
|
|
29439
29667
|
window.removeEventListener("resize", this._handleResize);
|
|
29440
|
-
window.removeEventListener("click", (event) => this._handleClickOutOfElement(event, this.
|
|
29668
|
+
window.removeEventListener("click", (event) => this._handleClickOutOfElement(event, this.navGroup));
|
|
29441
29669
|
}
|
|
29442
29670
|
firstUpdated() {
|
|
29443
|
-
this.
|
|
29444
|
-
}
|
|
29445
|
-
_handleSlotChange(e) {
|
|
29446
|
-
const childElements = e.target.assignedElements({ flatten: true });
|
|
29447
|
-
if (this.isCollapsed) {
|
|
29448
|
-
childElements.forEach(element => {
|
|
29449
|
-
element.setAttribute("isCollapsed", `${this.isCollapsed}`);
|
|
29450
|
-
});
|
|
29451
|
-
}
|
|
29452
|
-
else {
|
|
29453
|
-
childElements.forEach(element => {
|
|
29454
|
-
element.removeAttribute("isCollapsed");
|
|
29455
|
-
});
|
|
29456
|
-
}
|
|
29671
|
+
this._handleResize();
|
|
29457
29672
|
}
|
|
29458
29673
|
_handleClickOutOfElement(e, self) {
|
|
29459
29674
|
if (!e.composedPath().includes(self) && !e.composedPath().includes(this.toggler)) {
|
|
29460
29675
|
this.hide();
|
|
29461
29676
|
}
|
|
29462
29677
|
}
|
|
29678
|
+
async _onKeyboardToggle(event) {
|
|
29679
|
+
if (!VALID_KEYS.includes(event.key))
|
|
29680
|
+
return;
|
|
29681
|
+
event.preventDefault();
|
|
29682
|
+
this._toggleMenu();
|
|
29683
|
+
}
|
|
29463
29684
|
/** Shows the menu. For when subnav is in the collapsed form */
|
|
29464
29685
|
async show() {
|
|
29465
29686
|
if (this.isMenuOpen) {
|
|
@@ -29484,10 +29705,11 @@
|
|
|
29484
29705
|
return;
|
|
29485
29706
|
}
|
|
29486
29707
|
await stopAnimations(this.mobileNav);
|
|
29487
|
-
this.
|
|
29708
|
+
if (this.isCollapsed) {
|
|
29709
|
+
this.mobileNav.style.display = "flex";
|
|
29710
|
+
}
|
|
29488
29711
|
const { keyframes, options } = getAnimation(this, "subnav.show");
|
|
29489
29712
|
await animateTo(this.mobileNav, shimKeyframesHeightAuto(keyframes, this.mobileNav.scrollHeight), options);
|
|
29490
|
-
// this.mobileNav.style.height = "auto";
|
|
29491
29713
|
this.emit("sgds-after-show");
|
|
29492
29714
|
}
|
|
29493
29715
|
async _animateToHide() {
|
|
@@ -29499,8 +29721,9 @@
|
|
|
29499
29721
|
await stopAnimations(this.mobileNav);
|
|
29500
29722
|
const { keyframes, options } = getAnimation(this, "subnav.hide");
|
|
29501
29723
|
await animateTo(this.mobileNav, shimKeyframesHeightAuto(keyframes, this.mobileNav.scrollHeight), options);
|
|
29502
|
-
this.
|
|
29503
|
-
|
|
29724
|
+
if (this.isCollapsed) {
|
|
29725
|
+
this.mobileNav.style.display = "none";
|
|
29726
|
+
}
|
|
29504
29727
|
this.emit("sgds-after-hide");
|
|
29505
29728
|
}
|
|
29506
29729
|
async handleOpenChange() {
|
|
@@ -29513,66 +29736,46 @@
|
|
|
29513
29736
|
this._animateToHide();
|
|
29514
29737
|
}
|
|
29515
29738
|
}
|
|
29739
|
+
async handleCollapsedChange() {
|
|
29740
|
+
await this.updateComplete;
|
|
29741
|
+
this.mobileNav.style.display = this.isCollapsed ? "none" : "flex";
|
|
29742
|
+
}
|
|
29516
29743
|
render() {
|
|
29517
|
-
const isHydrated = this.hasUpdated;
|
|
29518
29744
|
return html$1 `
|
|
29519
|
-
<nav
|
|
29520
|
-
class=${classMap({
|
|
29521
|
-
mobile: this.isCollapsed
|
|
29522
|
-
})}
|
|
29523
|
-
aria-label="Sub navigation"
|
|
29524
|
-
>
|
|
29745
|
+
<nav aria-label="Sub navigation">
|
|
29525
29746
|
<div
|
|
29526
29747
|
class=${classMap({
|
|
29527
|
-
"sgds-container":
|
|
29748
|
+
"sgds-container": true,
|
|
29528
29749
|
subnav: true,
|
|
29529
|
-
mobile: this.isCollapsed,
|
|
29530
29750
|
collapsed: !this.isMenuOpen
|
|
29531
29751
|
})}
|
|
29532
29752
|
>
|
|
29533
|
-
<
|
|
29534
|
-
|
|
29535
|
-
|
|
29536
|
-
|
|
29537
|
-
|
|
29538
|
-
|
|
29539
|
-
|
|
29540
|
-
|
|
29541
|
-
|
|
29542
|
-
|
|
29543
|
-
|
|
29544
|
-
|
|
29545
|
-
|
|
29546
|
-
|
|
29547
|
-
|
|
29548
|
-
|
|
29549
|
-
|
|
29550
|
-
|
|
29551
|
-
|
|
29552
|
-
|
|
29753
|
+
<div class="header-container">
|
|
29754
|
+
<slot name="header"></slot>
|
|
29755
|
+
<sgds-icon
|
|
29756
|
+
class="subnav-toggler"
|
|
29757
|
+
name="chevron-down"
|
|
29758
|
+
tabindex="0"
|
|
29759
|
+
@click=${this._toggleMenu}
|
|
29760
|
+
@keydown=${this._onKeyboardToggle}
|
|
29761
|
+
aria-label="Toggle sub navigation"
|
|
29762
|
+
aria-expanded=${this.isMenuOpen}
|
|
29763
|
+
></sgds-icon>
|
|
29764
|
+
</div>
|
|
29765
|
+
<div class="subnav-nav-group">
|
|
29766
|
+
<div class="subnav-nav">
|
|
29767
|
+
<slot></slot>
|
|
29768
|
+
</div>
|
|
29769
|
+
<div class="subnav-actions">
|
|
29770
|
+
<slot name="actions"></slot>
|
|
29771
|
+
</div>
|
|
29772
|
+
</div>
|
|
29553
29773
|
</div>
|
|
29554
|
-
${this.isCollapsed
|
|
29555
|
-
? html$1 `
|
|
29556
|
-
<div class="subnav-dropdown">
|
|
29557
|
-
<div
|
|
29558
|
-
class=${classMap({
|
|
29559
|
-
"subnav-nav-mobile": true,
|
|
29560
|
-
hidden: !this.isMenuOpen && !isHydrated
|
|
29561
|
-
})}
|
|
29562
|
-
>
|
|
29563
|
-
<slot @slotchange="${this._handleSlotChange}"></slot>
|
|
29564
|
-
</div>
|
|
29565
|
-
<div class="subnav-actions-mobile">
|
|
29566
|
-
<slot name="actions"></slot>
|
|
29567
|
-
</div>
|
|
29568
|
-
</div>
|
|
29569
|
-
`
|
|
29570
|
-
: nothing}
|
|
29571
29774
|
</nav>
|
|
29572
29775
|
`;
|
|
29573
29776
|
}
|
|
29574
29777
|
}
|
|
29575
|
-
SgdsSubnav.styles = [...SgdsElement.styles, css_248z$
|
|
29778
|
+
SgdsSubnav.styles = [...SgdsElement.styles, css_248z$c, css_248z$b];
|
|
29576
29779
|
/** @internal */
|
|
29577
29780
|
SgdsSubnav.dependencies = {
|
|
29578
29781
|
"sgds-icon": SgdsIcon
|
|
@@ -29581,19 +29784,19 @@
|
|
|
29581
29784
|
query("nav")
|
|
29582
29785
|
], SgdsSubnav.prototype, "nav", void 0);
|
|
29583
29786
|
__decorate([
|
|
29584
|
-
query(".subnav")
|
|
29585
|
-
], SgdsSubnav.prototype, "subnav", void 0);
|
|
29586
|
-
__decorate([
|
|
29587
|
-
query(".subnav-nav-mobile")
|
|
29787
|
+
query(".subnav-nav")
|
|
29588
29788
|
], SgdsSubnav.prototype, "mobileNav", void 0);
|
|
29789
|
+
__decorate([
|
|
29790
|
+
query(".header-container")
|
|
29791
|
+
], SgdsSubnav.prototype, "headerContainer", void 0);
|
|
29589
29792
|
__decorate([
|
|
29590
29793
|
query(".subnav-toggler")
|
|
29591
29794
|
], SgdsSubnav.prototype, "toggler", void 0);
|
|
29592
29795
|
__decorate([
|
|
29593
|
-
query(".subnav-
|
|
29594
|
-
], SgdsSubnav.prototype, "
|
|
29796
|
+
query(".subnav-nav-group")
|
|
29797
|
+
], SgdsSubnav.prototype, "navGroup", void 0);
|
|
29595
29798
|
__decorate([
|
|
29596
|
-
query(".subnav-actions
|
|
29799
|
+
query(".subnav-actions")
|
|
29597
29800
|
], SgdsSubnav.prototype, "mobileActions", void 0);
|
|
29598
29801
|
__decorate([
|
|
29599
29802
|
state()
|
|
@@ -29604,6 +29807,9 @@
|
|
|
29604
29807
|
__decorate([
|
|
29605
29808
|
watch("isMenuOpen", { waitUntilFirstUpdate: true })
|
|
29606
29809
|
], SgdsSubnav.prototype, "handleOpenChange", null);
|
|
29810
|
+
__decorate([
|
|
29811
|
+
watch("isCollapsed", { waitUntilFirstUpdate: true })
|
|
29812
|
+
], SgdsSubnav.prototype, "handleCollapsedChange", null);
|
|
29607
29813
|
setDefaultAnimation("subnav.show", {
|
|
29608
29814
|
keyframes: [
|
|
29609
29815
|
{ height: "0", opacity: "0" },
|
|
@@ -29619,7 +29825,7 @@
|
|
|
29619
29825
|
options: { duration: 200, easing: "ease-in-out" }
|
|
29620
29826
|
});
|
|
29621
29827
|
|
|
29622
|
-
var css_248z$
|
|
29828
|
+
var css_248z$a = css`input{margin:0}.form-check{align-items:center;display:flex;gap:var(--sgds-form-gap-lg)}.form-check-input{--sgds-switch-width:var(--sgds-form-width-xl);--sgds-switch-height:var(--sgds-form-height-md);--sgds-switch-bg-image:url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M.5 12c0-6.627 5.373-12 12-12s12 5.373 12 12-5.373 12-12 12-12-5.373-12-12Z" fill="%23fff"/></svg>');appearance:none;background-color:var(--sgds-form-surface-subtle);background-image:var(--sgds-switch-bg-image);background-position:left var(--sgds-form-padding-inline-sm) center;background-repeat:no-repeat;background-size:var(--sgds-form-width-xs) var(--sgds-form-height-sm);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-transparent);border-radius:var(--sgds-form-border-radius-full);height:var(--sgds-switch-height);padding:0 var(--sgds-form-padding-inline-sm);transition:background-position .15s ease-in-out;width:var(--sgds-switch-width)}.form-check-input:focus,.form-check-input:focus-visible{background-color:var(--sgds-form-surface-emphasis);box-shadow:var(--sgds-form-box-shadow-focus);outline:0}.form-check-input:not([disabled]):hover{background-color:var(--sgds-form-surface-emphasis)}.form-check-input:checked,.form-check-input[checked]{background-color:var(--sgds-form-primary-surface-default);background-position:right var(--sgds-form-padding-inline-sm) center}.form-check-input:not([disabled]):checked:focus,.form-check-input:not([disabled]):checked:hover,.form-check-input:not([disabled])[checked]:focus-visible,.form-check-input:not([disabled])[checked]:hover{background-color:var(--sgds-form-primary-surface-emphasis)}:host([disabled]) .form-check{cursor:not-allowed;opacity:var(--sgds-opacity-50)}:host([size=sm]) .form-check{font-size:var(--sgds-font-size-1)}:host([size=sm]) .form-check-input{--sgds-switch-width:var(--sgds-form-width-md);--sgds-switch-height:var(--sgds-form-height-sm);background-size:var(--sgds-form-width-2-xs) var(--sgds-form-height-2-xs)}:host([size=lg]) .form-check{font-size:var(--sgds-font-size-3)}:host([size=lg]) .form-check-input{--sgds-switch-width:var(--sgds-form-width-3-xl);--sgds-switch-height:var(--sgds-form-height-lg);background-size:var(--sgds-form-width-sm) var(--sgds-form-height-md)}@media (prefers-reduced-motion:reduce){.form-check .form-check-input{transition:none}}:host([icon]) .form-check-input:checked,:host([icon]) .form-check-input[checked]{--sgds-switch-bg-image:url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16 32c8.837 0 16-7.163 16-16S24.837 0 16 0 0 7.163 0 16s7.163 16 16 16Zm8.94-21.778a.776.776 0 0 0-.424-.424.781.781 0 0 0-.854.17L13.261 20.372l-4.924-4.925a.783.783 0 1 0-1.108 1.108l5.478 5.478a.777.777 0 0 0 .692.217.787.787 0 0 0 .416-.217L24.77 11.076a.777.777 0 0 0 .17-.854Z" fill="%23fff"/></svg>')}:host([icon]) .form-check-input{--sgds-switch-bg-image:url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16 32c8.837 0 16-7.163 16-16S24.837 0 16 0 0 7.163 0 16s7.163 16 16 16ZM10.164 9.416a.75.75 0 0 0-.53 1.28L14.937 16l-5.303 5.303a.75.75 0 0 0 1.06 1.061l5.304-5.303 5.303 5.303a.75.75 0 1 0 1.06-1.06L17.06 16l5.303-5.303a.75.75 0 0 0-1.06-1.061l-5.304 5.304-5.303-5.304a.75.75 0 0 0-.53-.22Z" fill="%23fff"/></svg>')}.d-none{display:none}`;
|
|
29623
29829
|
|
|
29624
29830
|
/**
|
|
29625
29831
|
* @summary Switch component is used to toggle on and off or yes or no action.
|
|
@@ -29717,7 +29923,7 @@
|
|
|
29717
29923
|
`;
|
|
29718
29924
|
}
|
|
29719
29925
|
}
|
|
29720
|
-
SgdsSwitch.styles = [...SgdsElement.styles, css_248z$
|
|
29926
|
+
SgdsSwitch.styles = [...SgdsElement.styles, css_248z$Q, css_248z$a];
|
|
29721
29927
|
__decorate([
|
|
29722
29928
|
property({ reflect: true, type: String })
|
|
29723
29929
|
], SgdsSwitch.prototype, "size", void 0);
|
|
@@ -29740,7 +29946,7 @@
|
|
|
29740
29946
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
29741
29947
|
], SgdsSwitch.prototype, "_handleDisabledChange", null);
|
|
29742
29948
|
|
|
29743
|
-
var css_248z$
|
|
29949
|
+
var css_248z$9 = css`:host([density=compact]) .tab{font-size:var(--sgds-font-size-1);padding:var(--sgds-spacer-3) var(--sgds-spacer-5)}:host(:not([active])) .tab{cursor:pointer}:host([variant=solid]) .tab{background-color:var(--sgds-bg-translucent-subtle);border-radius:var(--sgds-border-radius-md)}:host([variant=solid][active]) .tab{background-color:var(--sgds-primary-surface-default);color:var(--sgds-color-fixed-light)}:host([variant=solid]:not([active]):not([disabled])) .tab:focus,:host([variant=solid]:not([active]):not([disabled])) .tab:focus-visible{background-color:var(--sgds-bg-translucent);box-shadow:var(--sgds-box-shadow-focus);outline:0}:host([variant=solid]:not([active]):not([disabled])) .tab:hover{background-color:var(--sgds-bg-translucent)}:host([disabled]) .tab{cursor:not-allowed;opacity:var(--sgds-opacity-50)}:host([variant=underlined][active]) .tab{color:var(--sgds-primary-color-default)}:host([variant=underlined][orientation=vertical]) .tab{border-right:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}:host([variant=underlined][orientation=vertical][active]) .tab:after{background-color:var(--sgds-primary-surface-default);bottom:0;content:"";height:100%;position:absolute;right:-1px;width:var(--sgds-border-width-4)}:host([variant=underlined][orientation=horizontal]) .tab{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}:host([variant=underlined][orientation=horizontal][active]) .tab:after{background-color:var(--sgds-primary-surface-default);bottom:-1px;content:"";height:var(--sgds-border-width-4);left:0;position:absolute;width:100%}:host([variant=underlined]:not([active]):not([disabled])) .tab:focus,:host([variant=underlined]:not([active]):not([disabled])) .tab:focus-visible{background-color:var(--sgds-bg-translucent-subtle);box-shadow:var(--sgds-box-shadow-focus);outline:0}:host([variant=underlined]:not([active]):not([disabled])) .tab:hover{background-color:var(--sgds-bg-translucent-subtle)}.tab{align-items:center;color:var(--sgds-color-default);display:flex;gap:var(--sgds-spacer-3);padding:var(--sgds-spacer-4) var(--sgds-spacer-5);position:relative}.tab:focus,.tab:focus-visible{box-shadow:var(--sgds-box-shadow-focus);outline:0}`;
|
|
29744
29950
|
|
|
29745
29951
|
let id$1 = 0;
|
|
29746
29952
|
/**
|
|
@@ -29796,7 +30002,7 @@
|
|
|
29796
30002
|
`;
|
|
29797
30003
|
}
|
|
29798
30004
|
}
|
|
29799
|
-
SgdsTab.styles = [css_248z$
|
|
30005
|
+
SgdsTab.styles = [css_248z$9];
|
|
29800
30006
|
__decorate([
|
|
29801
30007
|
query(".tab")
|
|
29802
30008
|
], SgdsTab.prototype, "tab", void 0);
|
|
@@ -29816,7 +30022,7 @@
|
|
|
29816
30022
|
watch("disabled")
|
|
29817
30023
|
], SgdsTab.prototype, "handleDisabledChange", null);
|
|
29818
30024
|
|
|
29819
|
-
var css_248z$
|
|
30025
|
+
var css_248z$8 = css`.tab-group{display:flex;flex-direction:column;gap:var(--sgds-gap-xl)}.tab-group__nav{display:flex;flex-direction:row}.tab-group__content{flex:1}:host([orientation=vertical]) .tab-group{flex-direction:row}:host([orientation=vertical]) .tab-group__nav{flex-direction:column}:host([variant=solid]) .tab-group__nav{gap:var(--sgds-gap-xs)}`;
|
|
29820
30026
|
|
|
29821
30027
|
/**
|
|
29822
30028
|
* @summary Tab Group organizes content into a container with the syncing of tab and their corresponding panels.
|
|
@@ -30033,7 +30239,7 @@
|
|
|
30033
30239
|
`;
|
|
30034
30240
|
}
|
|
30035
30241
|
}
|
|
30036
|
-
SgdsTabGroup.styles = [...SgdsElement.styles, css_248z$
|
|
30242
|
+
SgdsTabGroup.styles = [...SgdsElement.styles, css_248z$8];
|
|
30037
30243
|
__decorate([
|
|
30038
30244
|
query(".tab-group")
|
|
30039
30245
|
], SgdsTabGroup.prototype, "_tabGroup", void 0);
|
|
@@ -30056,7 +30262,7 @@
|
|
|
30056
30262
|
queryAssignedElements({ slot: "nav", flatten: true })
|
|
30057
30263
|
], SgdsTabGroup.prototype, "_navSlot", void 0);
|
|
30058
30264
|
|
|
30059
|
-
var css_248z$
|
|
30265
|
+
var css_248z$7 = css`.tab-panel{display:block}.tab-panel:not(.tab-panel--active){display:none}`;
|
|
30060
30266
|
|
|
30061
30267
|
let id = 0;
|
|
30062
30268
|
/**
|
|
@@ -30093,7 +30299,7 @@
|
|
|
30093
30299
|
`;
|
|
30094
30300
|
}
|
|
30095
30301
|
}
|
|
30096
|
-
SgdsTabPanel.styles = [...SgdsElement.styles, css_248z$
|
|
30302
|
+
SgdsTabPanel.styles = [...SgdsElement.styles, css_248z$7];
|
|
30097
30303
|
__decorate([
|
|
30098
30304
|
property({ reflect: true })
|
|
30099
30305
|
], SgdsTabPanel.prototype, "name", void 0);
|
|
@@ -30104,10 +30310,13 @@
|
|
|
30104
30310
|
watch("active")
|
|
30105
30311
|
], SgdsTabPanel.prototype, "_handleActiveChange", null);
|
|
30106
30312
|
|
|
30107
|
-
var css_248z$
|
|
30313
|
+
var css_248z$6 = css`tbody,td,th,thead,tr{border:var(--sgds-border-width-0) solid;border-color:inherit}th{text-align:-webkit-match-parent}table{border-collapse:collapse;caption-side:bottom}.table{border-color:var(--sgds-border-color-default);display:table;vertical-align:top;width:100%}.table>:not(caption) td,.table>:not(caption) th{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);padding:var(--sgds-padding-lg)}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table>thead th{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-emphasis)}.table-group-divider{border-top:calc(var(--sgds-border-width)*2) solid}.table>:not(:first-child){border-top:var(--sgds-border-width-1) solid var(--sgds-border-color-emphasis)}.table-responsive{-webkit-overflow-scrolling:touch;overflow-x:auto}@media (max-width:575.98px){.table-responsive-sm{-webkit-overflow-scrolling:touch;overflow-x:auto}}@media (max-width:767.98px){.table-responsive-md{-webkit-overflow-scrolling:touch;overflow-x:auto}}@media (max-width:991.98px){.table-responsive-lg{-webkit-overflow-scrolling:touch;overflow-x:auto}}@media (max-width:1199.98px){.table-responsive-xl{-webkit-overflow-scrolling:touch;overflow-x:auto}}@media (max-width:1399.98px){.table-responsive-xxl{-webkit-overflow-scrolling:touch;overflow-x:auto}}`;
|
|
30108
30314
|
|
|
30109
30315
|
/**
|
|
30110
|
-
* @summary
|
|
30316
|
+
* @summary Table is used for displaying collections of data in organized rows and columns.
|
|
30317
|
+
* It supports two rendering methods: supply an array of data for automatic table generation, or use the slot to insert custom table elements for full structural control.
|
|
30318
|
+
*
|
|
30319
|
+
* @slot - Insert custom table elements (such as rows, headers, or cells) to define the table structure manually.
|
|
30111
30320
|
*/
|
|
30112
30321
|
class SgdsTable extends SgdsElement {
|
|
30113
30322
|
constructor() {
|
|
@@ -30129,18 +30338,17 @@
|
|
|
30129
30338
|
*/
|
|
30130
30339
|
this.headerPosition = "horizontal";
|
|
30131
30340
|
/** @internal */
|
|
30132
|
-
this.
|
|
30341
|
+
this.hasSlotController = new HasSlotController(this, "[default]");
|
|
30133
30342
|
}
|
|
30134
30343
|
connectedCallback() {
|
|
30135
30344
|
super.connectedCallback();
|
|
30136
|
-
this.originalTableData = [...this.tableData];
|
|
30137
30345
|
}
|
|
30138
30346
|
_renderTable() {
|
|
30139
30347
|
if (this.headerPosition === "horizontal") {
|
|
30140
30348
|
return html$1 `
|
|
30141
30349
|
<thead>
|
|
30142
30350
|
<tr>
|
|
30143
|
-
${this.rowHeader.map((header
|
|
30351
|
+
${this.rowHeader.map((header) => html$1 ` <th>${header}</th> `)}
|
|
30144
30352
|
</tr>
|
|
30145
30353
|
</thead>
|
|
30146
30354
|
<tbody>
|
|
@@ -30157,7 +30365,7 @@
|
|
|
30157
30365
|
<thead>
|
|
30158
30366
|
<tr>
|
|
30159
30367
|
<th></th>
|
|
30160
|
-
${this.rowHeader.map((header
|
|
30368
|
+
${this.rowHeader.map((header) => html$1 ` <th>${header}</th> `)}
|
|
30161
30369
|
</tr>
|
|
30162
30370
|
</thead>
|
|
30163
30371
|
<tbody>
|
|
@@ -30183,6 +30391,7 @@
|
|
|
30183
30391
|
}
|
|
30184
30392
|
}
|
|
30185
30393
|
render() {
|
|
30394
|
+
const hasDefaultSlot = this.hasSlotController.test("[default]");
|
|
30186
30395
|
return html$1 `
|
|
30187
30396
|
<div
|
|
30188
30397
|
class=${classMap({
|
|
@@ -30194,14 +30403,18 @@
|
|
|
30194
30403
|
})}
|
|
30195
30404
|
tabindex="0"
|
|
30196
30405
|
>
|
|
30197
|
-
<table class="table">
|
|
30198
|
-
|
|
30199
|
-
|
|
30406
|
+
<slot id="table-slot" class="table"></slot>
|
|
30407
|
+
|
|
30408
|
+
${!hasDefaultSlot
|
|
30409
|
+
? html$1 `<table class="table">
|
|
30410
|
+
${this._renderTable()}
|
|
30411
|
+
</table>`
|
|
30412
|
+
: ""}
|
|
30200
30413
|
</div>
|
|
30201
30414
|
`;
|
|
30202
30415
|
}
|
|
30203
30416
|
}
|
|
30204
|
-
SgdsTable.styles = [...SgdsElement.styles, css_248z$
|
|
30417
|
+
SgdsTable.styles = [...SgdsElement.styles, css_248z$6];
|
|
30205
30418
|
__decorate([
|
|
30206
30419
|
property({ type: String, reflect: true })
|
|
30207
30420
|
], SgdsTable.prototype, "responsive", void 0);
|
|
@@ -30215,13 +30428,10 @@
|
|
|
30215
30428
|
property({ type: Array })
|
|
30216
30429
|
], SgdsTable.prototype, "tableData", void 0);
|
|
30217
30430
|
__decorate([
|
|
30218
|
-
property({ type: String
|
|
30431
|
+
property({ type: String })
|
|
30219
30432
|
], SgdsTable.prototype, "headerPosition", void 0);
|
|
30220
|
-
__decorate([
|
|
30221
|
-
state()
|
|
30222
|
-
], SgdsTable.prototype, "originalTableData", void 0);
|
|
30223
30433
|
|
|
30224
|
-
var css_248z$
|
|
30434
|
+
var css_248z$5 = css`.container{display:flex;flex-direction:column;gap:var(--sgds-gap-xl)}slot:not([name])::slotted(*){--sgds-font-size-5:var(--sgds-font-size-4);--sgds-font-size-6:var(--sgds-font-size-4);--sgds-margin-2-xs:var(--sgds-margin-none);--sgds-font-weight-bold:var(--sgds-font-weight-semibold);font-size:var(--sgds-font-size-4);font-weight:var(--sgds-font-weight-bold,var(--sgds-font-weight-semibold));margin-bottom:var(--sgds-margin-2-xs,var(--sgds-margin-none))}.contents{display:flex;flex-direction:column;gap:var(--sgds-gap-md);list-style:none;margin:var(--sgds-margin-none);padding:var(--sgds-padding-none)}slot[name=contents]::slotted(li){--sgds-margin-3-xs:var(--sgds-margin-none);margin-top:var(--sgds-margin-3-xs,var(--sgds-margin-none))}`;
|
|
30225
30435
|
|
|
30226
30436
|
/**
|
|
30227
30437
|
*
|
|
@@ -30240,9 +30450,9 @@
|
|
|
30240
30450
|
</div> `;
|
|
30241
30451
|
}
|
|
30242
30452
|
}
|
|
30243
|
-
SgdsTableOfContents.styles = [...SgdsElement.styles, css_248z$
|
|
30453
|
+
SgdsTableOfContents.styles = [...SgdsElement.styles, css_248z$5];
|
|
30244
30454
|
|
|
30245
|
-
var css_248z$
|
|
30455
|
+
var css_248z$4 = css`.form-control-container{display:flex;flex-direction:column;gap:var(--sgds-form-gap-md)}.form-control-container.disabled{opacity:var(--sgds-opacity-50)}textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0;resize:vertical}.form-control{appearance:none;background-clip:padding-box;background-color:var(--sgds-form-surface-default);border:var(--sgds-form-border-width-default) solid var(--sgds-border-color-default);border-radius:var(--sgds-form-border-radius-md);color:var(--sgds-form-color-default);min-height:var(--sgds-dimension-136);outline:0;padding:var(--sgds-form-padding-y) var(--sgds-form-padding-x);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;width:100%}.form-control[readonly]{border-color:var(--sgds-border-color-muted)}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control:not([disabled]):not(.is-invalid):hover{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis)}.form-control:not([disabled]):not(.is-invalid):focus,.form-control:not([disabled]):not(.is-invalid):focus-visible{border:var(--sgds-form-border-width-thick) solid var(--sgds-border-color-emphasis);box-shadow:var(--sgds-form-box-shadow-focus)}.form-control.is-invalid{border:var(--sgds-form-border-width-thick) solid var(--sgds-form-danger-border-color-default)}.form-control:disabled{background-color:var(--sgds-form-surface-muted)}.textarea-resize-none{resize:none}.textarea-resize-vertical{resize:vertical}.textarea-resize-auto{height:auto;overflow-y:hidden;resize:none}.textarea-info-container{display:flex;justify-content:space-between}.word-count{margin-left:auto}`;
|
|
30246
30456
|
|
|
30247
30457
|
/**
|
|
30248
30458
|
* @summary Text areas allow for the collection of input longer than a single line.
|
|
@@ -30438,7 +30648,7 @@
|
|
|
30438
30648
|
`;
|
|
30439
30649
|
}
|
|
30440
30650
|
}
|
|
30441
|
-
SgdsTextarea.styles = [...FormControlElement.styles, css_248z$
|
|
30651
|
+
SgdsTextarea.styles = [...FormControlElement.styles, css_248z$4];
|
|
30442
30652
|
__decorate([
|
|
30443
30653
|
query("textarea.form-control")
|
|
30444
30654
|
], SgdsTextarea.prototype, "textarea", void 0);
|
|
@@ -30509,7 +30719,86 @@
|
|
|
30509
30719
|
watch("value", { waitUntilFirstUpdate: true })
|
|
30510
30720
|
], SgdsTextarea.prototype, "_handleValueChange", null);
|
|
30511
30721
|
|
|
30512
|
-
var css_248z$
|
|
30722
|
+
var css_248z$3 = css`:host([noPadding]) .card{border:var(--sgds-border-width-1) solid var(--sgds-border-color-transparent)}:host(:not([noPadding])) .card:not(.disabled):hover{box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 8px 16px 0 hsla(0,0%,5%,.12)}:host([orientation=vertical][noPadding]) .card-body{padding:var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none)}:host([orientation=vertical][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none)}:host([orientation=horizontal][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-none) var(--sgds-padding-xl)}:host([orientation=horizontal][imagePosition=after][noPadding]) .card-body{padding:var(--sgds-padding-none) var(--sgds-padding-xl) var(--sgds-padding-none) var(--sgds-padding-none)}:host([tinted]:not([noPadding])) .card-tinted-bg{background-color:var(--sgds-bg-translucent-subtle);opacity:var(--sgds-opacity-50)}:host([orientation][noPadding]) .card-media{padding:var(--sgds-padding-none)}slot[name=thumbnail]::slotted(*){height:auto;max-width:100%}`;
|
|
30723
|
+
|
|
30724
|
+
/**
|
|
30725
|
+
* @summary Thumbnail cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.
|
|
30726
|
+
* @slot default - The content area of the card, placed directly under the title. Accepts any HTML or custom elements.
|
|
30727
|
+
* @slot thumbnail - Accepts a small image or visual element typically displayed alongside the card's title or content to provide quick visual context.
|
|
30728
|
+
* @slot upper - Accepts any content to be displayed at the top of the subtitle. Commonly used for badges, status indicators, or decorative elements.
|
|
30729
|
+
* @slot subtitle - The subtitle of the card
|
|
30730
|
+
* @slot title - The title of the card
|
|
30731
|
+
* @slot description - The paragrapher text of the card
|
|
30732
|
+
* @slot lower - Accepts any additional content to be displayed below the card description, such as badges, metadata, or supplementary information.
|
|
30733
|
+
* @slot link - Accepts an anchor element. Only a single element is allowed to be passed in.
|
|
30734
|
+
*/
|
|
30735
|
+
class SgdsThumbnailCard extends CardElement {
|
|
30736
|
+
constructor() {
|
|
30737
|
+
super(...arguments);
|
|
30738
|
+
/** Removes the card's internal padding when set to true. */
|
|
30739
|
+
this.noPadding = false;
|
|
30740
|
+
}
|
|
30741
|
+
firstUpdated() {
|
|
30742
|
+
if (this._thumbnailNode.length === 0) {
|
|
30743
|
+
const thumbnail = this.shadowRoot.querySelector(".card-thumbnail");
|
|
30744
|
+
thumbnail.style.display = "none";
|
|
30745
|
+
if ((this.orientation === "vertical" && this._upperNode.length === 0) || this.orientation === "horizontal") {
|
|
30746
|
+
const media = this.shadowRoot.querySelector(".card-media");
|
|
30747
|
+
media.style.display = "none";
|
|
30748
|
+
const body = this.shadowRoot.querySelector(".card-body");
|
|
30749
|
+
if (this.noPadding)
|
|
30750
|
+
body.style.padding = "0px";
|
|
30751
|
+
}
|
|
30752
|
+
}
|
|
30753
|
+
}
|
|
30754
|
+
render() {
|
|
30755
|
+
const tag = this.stretchedLink ? literal `a` : literal `div`;
|
|
30756
|
+
const cardTabIndex = !this.stretchedLink || this.disabled ? -1 : 0;
|
|
30757
|
+
return html `
|
|
30758
|
+
<${tag}
|
|
30759
|
+
class="card ${classMap({
|
|
30760
|
+
disabled: this.disabled
|
|
30761
|
+
})}"
|
|
30762
|
+
tabindex=${cardTabIndex}
|
|
30763
|
+
>
|
|
30764
|
+
${this.tinted && !this.noPadding ? html `<div class="card-tinted-bg"></div>` : nothing}
|
|
30765
|
+
<div class="card-media">
|
|
30766
|
+
<div class="card-thumbnail">
|
|
30767
|
+
<slot name="thumbnail"></slot>
|
|
30768
|
+
</div>
|
|
30769
|
+
${this.orientation === "vertical" ? html `<slot name="upper"></slot>` : nothing}
|
|
30770
|
+
</div>
|
|
30771
|
+
<div class="card-body">
|
|
30772
|
+
${this.orientation === "horizontal" ? html `<slot name="upper"></slot>` : nothing}
|
|
30773
|
+
<div class="card-header-container">
|
|
30774
|
+
<div class="card-header">
|
|
30775
|
+
<slot name="subtitle"></slot>
|
|
30776
|
+
<h3 class="card-title"><slot name="title" @slotchange=${this.handleTitleSlotChange}></slot></h3>
|
|
30777
|
+
</div>
|
|
30778
|
+
<slot></slot>
|
|
30779
|
+
</div>
|
|
30780
|
+
<p class="card-text">
|
|
30781
|
+
<slot name="description"></slot>
|
|
30782
|
+
</p>
|
|
30783
|
+
<slot name="lower"></slot>
|
|
30784
|
+
<slot name="link" @slotchange=${this.handleLinkSlotChange}></slot>
|
|
30785
|
+
</div>
|
|
30786
|
+
</${tag}>
|
|
30787
|
+
`;
|
|
30788
|
+
}
|
|
30789
|
+
}
|
|
30790
|
+
SgdsThumbnailCard.styles = [...CardElement.styles, css_248z$3];
|
|
30791
|
+
__decorate([
|
|
30792
|
+
queryAssignedNodes({ slot: "thumbnail", flatten: true })
|
|
30793
|
+
], SgdsThumbnailCard.prototype, "_thumbnailNode", void 0);
|
|
30794
|
+
__decorate([
|
|
30795
|
+
queryAssignedNodes({ slot: "upper", flatten: true })
|
|
30796
|
+
], SgdsThumbnailCard.prototype, "_upperNode", void 0);
|
|
30797
|
+
__decorate([
|
|
30798
|
+
property({ type: Boolean, reflect: true })
|
|
30799
|
+
], SgdsThumbnailCard.prototype, "noPadding", void 0);
|
|
30800
|
+
|
|
30801
|
+
var css_248z$2 = css`:host([variant=info]) slot[name=icon]::slotted(*){color:var(--sgds-primary-color-default)}:host([variant=success]) slot[name=icon]::slotted(*){color:var(--sgds-success-color-default)}:host([variant=danger]) slot[name=icon]::slotted(*){color:var(--sgds-danger-color-default)}:host([variant=warning]) slot[name=icon]::slotted(*){color:var(--sgds-warning-color-fixed-light)}.toast{align-items:flex-start;background-clip:padding-box;background-color:var(--sgds-surface-default);border-radius:var(--sgds-border-radius-md);box-shadow:0 0 2px 0 rgba(0,0,0,.12),0 8px 16px 0 rgba(0,0,0,.14);display:flex;flex-direction:row;gap:var(--sgds-gap-xs);max-width:var(--sgds-dimension-480);min-width:var(--sgds-dimension-320);padding:var(--sgds-padding-md);pointer-events:auto;width:320px}.toast-content{word-wrap:break-word;gap:var(--sgds-gap-sm)}.toast-body,.toast-content{display:flex;flex-direction:column}.toast-body{gap:var(--sgds-gap-2-xs)}.toast-body strong{line-height:var(--sgds-line-height-min)}.toast-body span{color:var(--sgds-color-subtle)}.toast-action{word-wrap:break-word;color:var(--sgds-link-color-default)}.toast-header strong{margin-right:auto;word-break:break-all}.close-btn{margin-left:auto}.d-none{display:none}`;
|
|
30513
30802
|
|
|
30514
30803
|
/**
|
|
30515
30804
|
* @summary Toast allows you to convey quick messaging notifications to the user.
|
|
@@ -31724,7 +32013,9 @@
|
|
|
31724
32013
|
exports.SgdsFooter = SgdsFooter;
|
|
31725
32014
|
exports.SgdsIcon = SgdsIcon;
|
|
31726
32015
|
exports.SgdsIconButton = SgdsIconButton;
|
|
32016
|
+
exports.SgdsIconCard = SgdsIconCard;
|
|
31727
32017
|
exports.SgdsIconList = SgdsIconList;
|
|
32018
|
+
exports.SgdsImageCard = SgdsImageCard;
|
|
31728
32019
|
exports.SgdsInput = SgdsInput;
|
|
31729
32020
|
exports.SgdsLink = SgdsLink;
|
|
31730
32021
|
exports.SgdsMainnav = SgdsMainnav;
|
|
@@ -31732,6 +32023,7 @@
|
|
|
31732
32023
|
exports.SgdsMainnavItem = SgdsMainnavItem;
|
|
31733
32024
|
exports.SgdsMasthead = SgdsMasthead;
|
|
31734
32025
|
exports.SgdsModal = SgdsModal;
|
|
32026
|
+
exports.SgdsOverflowMenu = SgdsOverflowMenu;
|
|
31735
32027
|
exports.SgdsPagination = SgdsPagination;
|
|
31736
32028
|
exports.SgdsProgressBar = SgdsProgressBar;
|
|
31737
32029
|
exports.SgdsQuantityToggle = SgdsQuantityToggle;
|
|
@@ -31752,6 +32044,7 @@
|
|
|
31752
32044
|
exports.SgdsTable = SgdsTable;
|
|
31753
32045
|
exports.SgdsTableOfContents = SgdsTableOfContents;
|
|
31754
32046
|
exports.SgdsTextarea = SgdsTextarea;
|
|
32047
|
+
exports.SgdsThumbnailCard = SgdsThumbnailCard;
|
|
31755
32048
|
exports.SgdsToast = SgdsToast;
|
|
31756
32049
|
exports.SgdsToastContainer = SgdsToastContainer;
|
|
31757
32050
|
exports.SgdsTooltip = SgdsTooltip;
|