@govtechsg/sgds-web-component 3.1.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base/button.js +1 -1
- package/base/card.js +1 -1
- package/components/Button/index.umd.js +1 -1
- package/components/Card/index.umd.js +53 -12
- package/components/Card/index.umd.js.map +1 -1
- package/components/Card/sgds-card.js +5 -3
- package/components/Card/sgds-card.js.map +1 -1
- package/components/Datepicker/index.umd.js +1 -1
- package/components/FileUpload/index.umd.js +1 -1
- package/components/IconButton/index.umd.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 +1 -1
- package/components/Modal/index.umd.js.map +1 -1
- package/components/Pagination/index.umd.js +1 -1
- package/components/QuantityToggle/index.umd.js +1 -1
- package/components/Subnav/index.umd.js +69 -97
- 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 +4 -3
- package/components/Subnav/sgds-subnav.js +66 -95
- 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/Toast/index.umd.js +1 -1
- package/components/Toast/toast.js +1 -1
- package/components/index.umd.js +95 -119
- package/components/index.umd.js.map +1 -1
- package/index.umd.js +297 -246
- package/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/react/base/button.cjs.js +1 -1
- package/react/base/button.js +1 -1
- package/react/base/card.cjs.js +1 -1
- package/react/base/card.js +1 -1
- package/react/components/Card/sgds-card.cjs.js +5 -3
- package/react/components/Card/sgds-card.cjs.js.map +1 -1
- package/react/components/Card/sgds-card.js +5 -3
- package/react/components/Card/sgds-card.js.map +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/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 +64 -93
- package/react/components/Subnav/sgds-subnav.cjs.js.map +1 -1
- package/react/components/Subnav/sgds-subnav.js +66 -95
- 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/Toast/toast.cjs.js +1 -1
- package/react/components/Toast/toast.js +1 -1
- package/react/index.cjs.js +26 -20
- package/react/index.cjs.js.map +1 -1
- package/react/index.d.ts +4 -1
- package/react/index.js +4 -1
- package/react/index.js.map +1 -1
- 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/utils/breakpoints.cjs.js +2 -2
- package/react/utils/breakpoints.cjs.js.map +1 -1
- package/react/utils/breakpoints.js +2 -2
- package/react/utils/breakpoints.js.map +1 -1
- package/utils/breakpoints.d.ts +3 -3
- package/utils/breakpoints.js +2 -2
- package/utils/breakpoints.js.map +1 -1
package/index.umd.js
CHANGED
|
@@ -4382,7 +4382,7 @@
|
|
|
4382
4382
|
});
|
|
4383
4383
|
}
|
|
4384
4384
|
|
|
4385
|
-
var css_248z$
|
|
4385
|
+
var css_248z$1h = 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}}`;
|
|
4386
4386
|
|
|
4387
4387
|
/**
|
|
4388
4388
|
* @cssprop --sgds-{stateColor} - State colors in hexadecimal value
|
|
@@ -4439,13 +4439,13 @@
|
|
|
4439
4439
|
});
|
|
4440
4440
|
}
|
|
4441
4441
|
}
|
|
4442
|
-
SgdsElement.styles = [css_248z$
|
|
4442
|
+
SgdsElement.styles = [css_248z$1h];
|
|
4443
4443
|
/** @internal */
|
|
4444
4444
|
SgdsElement.dependencies = {};
|
|
4445
4445
|
|
|
4446
|
-
var css_248z$
|
|
4446
|
+
var css_248z$1g = css`:host([variant=border]) .accordion{border:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);border-radius:var(--sgds-border-radius-md)}`;
|
|
4447
4447
|
|
|
4448
|
-
const VALID_KEYS = ["Enter", "ArrowUp", "ArrowLeft", "ArrowDown", "ArrowRight"];
|
|
4448
|
+
const VALID_KEYS$1 = ["Enter", "ArrowUp", "ArrowLeft", "ArrowDown", "ArrowRight"];
|
|
4449
4449
|
/**
|
|
4450
4450
|
* @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`
|
|
4451
4451
|
* @slot default - slot for accordion-item
|
|
@@ -4503,7 +4503,7 @@
|
|
|
4503
4503
|
});
|
|
4504
4504
|
}
|
|
4505
4505
|
async _onKeyboardToggle(event) {
|
|
4506
|
-
if (!VALID_KEYS.includes(event.key))
|
|
4506
|
+
if (!VALID_KEYS$1.includes(event.key))
|
|
4507
4507
|
return;
|
|
4508
4508
|
return this._onToggle(event);
|
|
4509
4509
|
}
|
|
@@ -4515,7 +4515,7 @@
|
|
|
4515
4515
|
`;
|
|
4516
4516
|
}
|
|
4517
4517
|
}
|
|
4518
|
-
SgdsAccordion.styles = [...SgdsElement.styles, css_248z$
|
|
4518
|
+
SgdsAccordion.styles = [...SgdsElement.styles, css_248z$1g];
|
|
4519
4519
|
__decorate([
|
|
4520
4520
|
property({ type: Boolean, reflect: true })
|
|
4521
4521
|
], SgdsAccordion.prototype, "allowMultiple", void 0);
|
|
@@ -4790,7 +4790,7 @@
|
|
|
4790
4790
|
};
|
|
4791
4791
|
}
|
|
4792
4792
|
|
|
4793
|
-
var css_248z$
|
|
4793
|
+
var css_248z$1f = 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}`;
|
|
4794
4794
|
|
|
4795
4795
|
/**
|
|
4796
4796
|
*
|
|
@@ -4925,7 +4925,7 @@
|
|
|
4925
4925
|
`;
|
|
4926
4926
|
}
|
|
4927
4927
|
}
|
|
4928
|
-
SgdsAccordionItem.styles = [...SgdsElement.styles, css_248z$
|
|
4928
|
+
SgdsAccordionItem.styles = [...SgdsElement.styles, css_248z$1f];
|
|
4929
4929
|
__decorate([
|
|
4930
4930
|
query(".accordion-item")
|
|
4931
4931
|
], SgdsAccordionItem.prototype, "accordion", void 0);
|
|
@@ -5112,7 +5112,7 @@
|
|
|
5112
5112
|
*/
|
|
5113
5113
|
const ifDefined = (value) => value ?? nothing;
|
|
5114
5114
|
|
|
5115
|
-
var css_248z$
|
|
5115
|
+
var css_248z$1e = 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)}`;
|
|
5116
5116
|
|
|
5117
5117
|
/**
|
|
5118
5118
|
* @summary Close button for closing actions. Used in Modal, Drawer, Alert and Toast.
|
|
@@ -5156,7 +5156,7 @@
|
|
|
5156
5156
|
`;
|
|
5157
5157
|
}
|
|
5158
5158
|
}
|
|
5159
|
-
SgdsCloseButton.styles = [...SgdsElement.styles, css_248z$
|
|
5159
|
+
SgdsCloseButton.styles = [...SgdsElement.styles, css_248z$1e];
|
|
5160
5160
|
__decorate([
|
|
5161
5161
|
property({ type: String })
|
|
5162
5162
|
], SgdsCloseButton.prototype, "ariaLabel", void 0);
|
|
@@ -7615,7 +7615,7 @@
|
|
|
7615
7615
|
"zoom-out": ZoomOut
|
|
7616
7616
|
};
|
|
7617
7617
|
|
|
7618
|
-
var css_248z$
|
|
7618
|
+
var css_248z$1d = 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)}`;
|
|
7619
7619
|
|
|
7620
7620
|
/**
|
|
7621
7621
|
* @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
|
|
@@ -7641,7 +7641,7 @@
|
|
|
7641
7641
|
return icon ? icon : nothing;
|
|
7642
7642
|
}
|
|
7643
7643
|
}
|
|
7644
|
-
SgdsIcon.styles = [...SgdsElement.styles, css_248z$
|
|
7644
|
+
SgdsIcon.styles = [...SgdsElement.styles, css_248z$1d];
|
|
7645
7645
|
__decorate([
|
|
7646
7646
|
property({ type: String, reflect: true })
|
|
7647
7647
|
], SgdsIcon.prototype, "name", void 0);
|
|
@@ -7649,7 +7649,7 @@
|
|
|
7649
7649
|
property({ type: String, reflect: true })
|
|
7650
7650
|
], SgdsIcon.prototype, "size", void 0);
|
|
7651
7651
|
|
|
7652
|
-
var css_248z$
|
|
7652
|
+
var css_248z$1c = 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)}`;
|
|
7653
7653
|
|
|
7654
7654
|
/**
|
|
7655
7655
|
* @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.
|
|
@@ -7711,7 +7711,7 @@
|
|
|
7711
7711
|
: nothing;
|
|
7712
7712
|
}
|
|
7713
7713
|
}
|
|
7714
|
-
SgdsAlert.styles = [...SgdsElement.styles, css_248z$
|
|
7714
|
+
SgdsAlert.styles = [...SgdsElement.styles, css_248z$1c];
|
|
7715
7715
|
/**@internal */
|
|
7716
7716
|
SgdsAlert.dependencies = {
|
|
7717
7717
|
"sgds-close-button": SgdsCloseButton,
|
|
@@ -7736,9 +7736,9 @@
|
|
|
7736
7736
|
watch("show")
|
|
7737
7737
|
], SgdsAlert.prototype, "_handleShowChange", null);
|
|
7738
7738
|
|
|
7739
|
-
var css_248z$
|
|
7739
|
+
var css_248z$1b = 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}`;
|
|
7740
7740
|
|
|
7741
|
-
var css_248z$
|
|
7741
|
+
var css_248z$1a = 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}`;
|
|
7742
7742
|
|
|
7743
7743
|
/**
|
|
7744
7744
|
* @summary Alert link are used within the alert's message that is passed into the default slot of `<sgds-alert>`
|
|
@@ -7752,7 +7752,7 @@
|
|
|
7752
7752
|
`;
|
|
7753
7753
|
}
|
|
7754
7754
|
}
|
|
7755
|
-
SgdsAlertLink.styles = [...SgdsElement.styles, css_248z$
|
|
7755
|
+
SgdsAlertLink.styles = [...SgdsElement.styles, css_248z$1a, css_248z$1b];
|
|
7756
7756
|
__decorate([
|
|
7757
7757
|
property({ type: String, reflect: true })
|
|
7758
7758
|
], SgdsAlertLink.prototype, "href", void 0);
|
|
@@ -7763,7 +7763,7 @@
|
|
|
7763
7763
|
register("sgds-alert", SgdsAlert);
|
|
7764
7764
|
register("sgds-alert-link", SgdsAlertLink);
|
|
7765
7765
|
|
|
7766
|
-
var css_248z$
|
|
7766
|
+
var css_248z$19 = 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}`;
|
|
7767
7767
|
|
|
7768
7768
|
/**
|
|
7769
7769
|
* @summary Badges can be used to highlight important bits of information such as labels, notifications & status.
|
|
@@ -7844,7 +7844,7 @@
|
|
|
7844
7844
|
: nothing;
|
|
7845
7845
|
}
|
|
7846
7846
|
}
|
|
7847
|
-
SgdsBadge.styles = [...SgdsElement.styles, css_248z$
|
|
7847
|
+
SgdsBadge.styles = [...SgdsElement.styles, css_248z$19];
|
|
7848
7848
|
/**@internal */
|
|
7849
7849
|
SgdsBadge.dependencies = {
|
|
7850
7850
|
"sgds-close-button": SgdsCloseButton
|
|
@@ -7867,7 +7867,7 @@
|
|
|
7867
7867
|
|
|
7868
7868
|
register("sgds-badge", SgdsBadge);
|
|
7869
7869
|
|
|
7870
|
-
var css_248z$
|
|
7870
|
+
var css_248z$18 = 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}`;
|
|
7871
7871
|
|
|
7872
7872
|
/**
|
|
7873
7873
|
* @license
|
|
@@ -11850,9 +11850,9 @@
|
|
|
11850
11850
|
state()
|
|
11851
11851
|
], DropdownListElement.prototype, "prevDropdownItemNo", void 0);
|
|
11852
11852
|
|
|
11853
|
-
var css_248z$
|
|
11853
|
+
var css_248z$17 = 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%}`;
|
|
11854
11854
|
|
|
11855
|
-
var css_248z$
|
|
11855
|
+
var css_248z$16 = css`:host{position:relative}.dropdown{display:flex;height:inherit}`;
|
|
11856
11856
|
|
|
11857
11857
|
/**
|
|
11858
11858
|
* @summary `SgdsDropdown` toggles contextual overlays for displaying lists of links.
|
|
@@ -11931,7 +11931,7 @@
|
|
|
11931
11931
|
`;
|
|
11932
11932
|
}
|
|
11933
11933
|
}
|
|
11934
|
-
SgdsDropdown.styles = [...DropdownListElement.styles, css_248z$
|
|
11934
|
+
SgdsDropdown.styles = [...DropdownListElement.styles, css_248z$16, css_248z$17];
|
|
11935
11935
|
__decorate([
|
|
11936
11936
|
property({ type: Boolean, reflect: true, state: false })
|
|
11937
11937
|
], SgdsDropdown.prototype, "noFlip", void 0);
|
|
@@ -11948,7 +11948,7 @@
|
|
|
11948
11948
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
11949
11949
|
], SgdsDropdown.prototype, "_handleDisabled", null);
|
|
11950
11950
|
|
|
11951
|
-
var css_248z$
|
|
11951
|
+
var css_248z$15 = 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;white-space:nowrap}.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)}`;
|
|
11952
11952
|
|
|
11953
11953
|
/**
|
|
11954
11954
|
* @summary `SgdsDropdownItem` are navigation links built with `HTMLAnchorElement`. It should be used in the default slot of `SgdsDropdown`
|
|
@@ -11989,7 +11989,7 @@
|
|
|
11989
11989
|
`;
|
|
11990
11990
|
}
|
|
11991
11991
|
}
|
|
11992
|
-
SgdsDropdownItem.styles = [css_248z$
|
|
11992
|
+
SgdsDropdownItem.styles = [css_248z$16, css_248z$15];
|
|
11993
11993
|
SgdsDropdownItem.dependencies = {
|
|
11994
11994
|
"sgds-icon": SgdsIcon
|
|
11995
11995
|
};
|
|
@@ -12024,7 +12024,7 @@
|
|
|
12024
12024
|
`;
|
|
12025
12025
|
}
|
|
12026
12026
|
}
|
|
12027
|
-
SgdsOverflowMenu.styles = [...SgdsElement.styles, css_248z$
|
|
12027
|
+
SgdsOverflowMenu.styles = [...SgdsElement.styles, css_248z$18];
|
|
12028
12028
|
/** @internal */
|
|
12029
12029
|
SgdsOverflowMenu.dependencies = {
|
|
12030
12030
|
"sgds-dropdown": SgdsDropdown,
|
|
@@ -12035,7 +12035,7 @@
|
|
|
12035
12035
|
property({ type: String, reflect: true })
|
|
12036
12036
|
], SgdsOverflowMenu.prototype, "size", void 0);
|
|
12037
12037
|
|
|
12038
|
-
var css_248z$
|
|
12038
|
+
var css_248z$14 = css`.breadcrumb{display:flex;gap:var(--sgds-gap-xs)}`;
|
|
12039
12039
|
|
|
12040
12040
|
/**
|
|
12041
12041
|
* @summary Breadcrumbs help users to navigate and understand where they are on the current website or service.
|
|
@@ -12106,7 +12106,7 @@
|
|
|
12106
12106
|
`;
|
|
12107
12107
|
}
|
|
12108
12108
|
}
|
|
12109
|
-
SgdsBreadcrumb.styles = [...SgdsElement.styles, css_248z$
|
|
12109
|
+
SgdsBreadcrumb.styles = [...SgdsElement.styles, css_248z$14];
|
|
12110
12110
|
SgdsBreadcrumb.dependencies = {
|
|
12111
12111
|
"sgds-overflow-menu": SgdsOverflowMenu
|
|
12112
12112
|
};
|
|
@@ -12117,7 +12117,7 @@
|
|
|
12117
12117
|
query("slot")
|
|
12118
12118
|
], SgdsBreadcrumb.prototype, "defaultSlot", void 0);
|
|
12119
12119
|
|
|
12120
|
-
var css_248z$
|
|
12120
|
+
var css_248z$13 = 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)}`;
|
|
12121
12121
|
|
|
12122
12122
|
/**
|
|
12123
12123
|
* @summary Link allows users to click and navigate their way from page to page
|
|
@@ -12149,7 +12149,7 @@
|
|
|
12149
12149
|
return html$1 `<slot class="nav-link" @slotchange=${this._handleSlotChange}></slot>`;
|
|
12150
12150
|
}
|
|
12151
12151
|
}
|
|
12152
|
-
SgdsLink.styles = [...SgdsElement.styles, css_248z$
|
|
12152
|
+
SgdsLink.styles = [...SgdsElement.styles, css_248z$13];
|
|
12153
12153
|
__decorate([
|
|
12154
12154
|
property({ type: String, reflect: true })
|
|
12155
12155
|
], SgdsLink.prototype, "size", void 0);
|
|
@@ -12157,7 +12157,7 @@
|
|
|
12157
12157
|
property({ type: String, reflect: true })
|
|
12158
12158
|
], SgdsLink.prototype, "variant", void 0);
|
|
12159
12159
|
|
|
12160
|
-
var css_248z
|
|
12160
|
+
var css_248z$12 = 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}`;
|
|
12161
12161
|
|
|
12162
12162
|
/**
|
|
12163
12163
|
* @summary Breadcrumb Item are navigational links used in Breadcrumb component
|
|
@@ -12186,7 +12186,7 @@
|
|
|
12186
12186
|
`;
|
|
12187
12187
|
}
|
|
12188
12188
|
}
|
|
12189
|
-
SgdsBreadcrumbItem.styles = [...SgdsLink.styles, css_248z
|
|
12189
|
+
SgdsBreadcrumbItem.styles = [...SgdsLink.styles, css_248z$12];
|
|
12190
12190
|
__decorate([
|
|
12191
12191
|
property({ type: Boolean, reflect: true })
|
|
12192
12192
|
], SgdsBreadcrumbItem.prototype, "active", void 0);
|
|
@@ -12194,7 +12194,7 @@
|
|
|
12194
12194
|
register("sgds-breadcrumb", SgdsBreadcrumb);
|
|
12195
12195
|
register("sgds-breadcrumb-item", SgdsBreadcrumbItem);
|
|
12196
12196
|
|
|
12197
|
-
var css_248z$
|
|
12197
|
+
var css_248z$11 = 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)}`;
|
|
12198
12198
|
|
|
12199
12199
|
class ButtonElement extends SgdsElement {
|
|
12200
12200
|
constructor() {
|
|
@@ -12236,7 +12236,7 @@
|
|
|
12236
12236
|
}
|
|
12237
12237
|
}
|
|
12238
12238
|
}
|
|
12239
|
-
ButtonElement.styles = [...SgdsElement.styles, css_248z$
|
|
12239
|
+
ButtonElement.styles = [...SgdsElement.styles, css_248z$11];
|
|
12240
12240
|
__decorate([
|
|
12241
12241
|
query(".btn")
|
|
12242
12242
|
], ButtonElement.prototype, "button", void 0);
|
|
@@ -12322,7 +12322,7 @@
|
|
|
12322
12322
|
}
|
|
12323
12323
|
}
|
|
12324
12324
|
|
|
12325
|
-
var css_248z$
|
|
12325
|
+
var css_248z$10 = 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)}`;
|
|
12326
12326
|
|
|
12327
12327
|
/**
|
|
12328
12328
|
* @summary Custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
|
|
@@ -12423,7 +12423,7 @@
|
|
|
12423
12423
|
`;
|
|
12424
12424
|
}
|
|
12425
12425
|
}
|
|
12426
|
-
SgdsButton.styles = [...ButtonElement.styles, css_248z$
|
|
12426
|
+
SgdsButton.styles = [...ButtonElement.styles, css_248z$1a, css_248z$10];
|
|
12427
12427
|
__decorate([
|
|
12428
12428
|
state()
|
|
12429
12429
|
], SgdsButton.prototype, "_hasLeftIcon", void 0);
|
|
@@ -12454,17 +12454,17 @@
|
|
|
12454
12454
|
|
|
12455
12455
|
register("sgds-button", SgdsButton);
|
|
12456
12456
|
|
|
12457
|
-
var css_248z
|
|
12457
|
+
var css_248z$$ = css`:host([orientation=horizontal]) .card{flex-direction:row}:host([orientation=horizontal]) .card-body{flex:1}:host(:not([hideBorder])) .card{border:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}:host([tinted]) .card{background-color:var(--sgds-bg-translucent-subtle);border:none}: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=vertical][imageAdjustment="padding around"]) .card-image{padding:var(--sgds-padding-xl) var(--sgds-padding-xl) 0}:host([orientation=vertical][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-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)}.card:not(.disabled):hover{box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 8px 16px 0 hsla(0,0%,5%,.12)}a.card:focus{outline:0}a.card:not(.disabled):focus-visible{box-shadow:var(--sgds-box-shadow-focus)}.card-image{flex:1}.card-body{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--sgds-gap-lg);padding:var(--sgds-padding-xl)}.card-body,.card-title{color:var(--sgds-body-color-default)}.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);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=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%}: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}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)}`;
|
|
12458
12458
|
|
|
12459
|
-
var css_248z$
|
|
12459
|
+
var css_248z$_ = 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}`;
|
|
12460
12460
|
|
|
12461
|
-
var css_248z$
|
|
12461
|
+
var css_248z$Z = 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}`;
|
|
12462
12462
|
|
|
12463
|
-
var css_248z$
|
|
12463
|
+
var css_248z$Y = 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}`;
|
|
12464
12464
|
|
|
12465
|
-
var css_248z$
|
|
12465
|
+
var css_248z$X = 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}`;
|
|
12466
12466
|
|
|
12467
|
-
var css_248z$
|
|
12467
|
+
var css_248z$W = css`p{margin-bottom:1.5rem;margin-top:0}`;
|
|
12468
12468
|
|
|
12469
12469
|
class CardElement extends SgdsElement {
|
|
12470
12470
|
constructor() {
|
|
@@ -12475,7 +12475,7 @@
|
|
|
12475
12475
|
this.tinted = false;
|
|
12476
12476
|
}
|
|
12477
12477
|
}
|
|
12478
|
-
CardElement.styles = [...SgdsElement.styles, css_248z$
|
|
12478
|
+
CardElement.styles = [...SgdsElement.styles, css_248z$_, css_248z$Z, css_248z$Y, css_248z$X, css_248z$W, css_248z$$];
|
|
12479
12479
|
__decorate([
|
|
12480
12480
|
property({ type: Boolean, reflect: true })
|
|
12481
12481
|
], CardElement.prototype, "hideBorder", void 0);
|
|
@@ -12483,7 +12483,7 @@
|
|
|
12483
12483
|
property({ type: Boolean, reflect: true })
|
|
12484
12484
|
], CardElement.prototype, "tinted", void 0);
|
|
12485
12485
|
|
|
12486
|
-
var css_248z$
|
|
12486
|
+
var css_248z$V = css`:host([orientation=horizontal]) .card-icon{padding:var(--sgds-padding-xl) 0 var(--sgds-padding-xl) var(--sgds-padding-xl)}.card-icon{line-height:0;padding:var(--sgds-padding-xl) var(--sgds-padding-xl) 0}.card-header{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}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}`;
|
|
12487
12487
|
|
|
12488
12488
|
/**
|
|
12489
12489
|
* @summary Cards can be used for headers and footers, a wide variety of content, contain contextual background colors and images.
|
|
@@ -12536,13 +12536,14 @@
|
|
|
12536
12536
|
if (childNodes.length > 1) {
|
|
12537
12537
|
return console.error("Multiple elements passed into SgdsCard's link slot");
|
|
12538
12538
|
}
|
|
12539
|
-
if (this.stretchedLink
|
|
12540
|
-
|
|
12539
|
+
if (!this.stretchedLink)
|
|
12540
|
+
return;
|
|
12541
|
+
if (childNodes[0] instanceof HTMLAnchorElement || childNodes[0] instanceof SgdsLink) {
|
|
12542
|
+
const hyperlink = (childNodes[0].querySelector("a") || childNodes[0]);
|
|
12541
12543
|
this.card.setAttribute("href", hyperlink.href);
|
|
12542
12544
|
const linkSlot = this.shadowRoot.querySelector("slot[name='link']");
|
|
12543
12545
|
linkSlot.style.display = "none";
|
|
12544
12546
|
}
|
|
12545
|
-
return;
|
|
12546
12547
|
}
|
|
12547
12548
|
handleImgSlotChange(e) {
|
|
12548
12549
|
const childNodes = e.target.assignedNodes({ flatten: true });
|
|
@@ -12580,7 +12581,7 @@
|
|
|
12580
12581
|
`;
|
|
12581
12582
|
}
|
|
12582
12583
|
}
|
|
12583
|
-
SgdsCard.styles = [...CardElement.styles, css_248z$
|
|
12584
|
+
SgdsCard.styles = [...CardElement.styles, css_248z$V];
|
|
12584
12585
|
__decorate([
|
|
12585
12586
|
query("a.card")
|
|
12586
12587
|
], SgdsCard.prototype, "card", void 0);
|
|
@@ -12685,9 +12686,9 @@
|
|
|
12685
12686
|
*/
|
|
12686
12687
|
const live = directive(LiveDirective);
|
|
12687
12688
|
|
|
12688
|
-
var css_248z$
|
|
12689
|
+
var css_248z$U = 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)}`;
|
|
12689
12690
|
|
|
12690
|
-
var css_248z$
|
|
12691
|
+
var css_248z$T = 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)}`;
|
|
12691
12692
|
|
|
12692
12693
|
// @defaultValue decorator
|
|
12693
12694
|
const defaultValue = (propertyName = "value") => (proto, key) => {
|
|
@@ -13072,7 +13073,7 @@
|
|
|
13072
13073
|
}
|
|
13073
13074
|
}
|
|
13074
13075
|
}
|
|
13075
|
-
SelectElement.styles = [...DropdownListElement.styles, css_248z$
|
|
13076
|
+
SelectElement.styles = [...DropdownListElement.styles, css_248z$17, css_248z$T, css_248z$U];
|
|
13076
13077
|
__decorate([
|
|
13077
13078
|
property({ reflect: true })
|
|
13078
13079
|
], SelectElement.prototype, "label", void 0);
|
|
@@ -13128,9 +13129,9 @@
|
|
|
13128
13129
|
queryAsync("input.form-control")
|
|
13129
13130
|
], SelectElement.prototype, "_input", void 0);
|
|
13130
13131
|
|
|
13131
|
-
var css_248z$
|
|
13132
|
+
var css_248z$S = 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}`;
|
|
13132
13133
|
|
|
13133
|
-
var css_248z$
|
|
13134
|
+
var css_248z$R = 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)}`;
|
|
13134
13135
|
|
|
13135
13136
|
class FormControlElement extends SgdsElement {
|
|
13136
13137
|
constructor() {
|
|
@@ -13157,7 +13158,7 @@
|
|
|
13157
13158
|
}
|
|
13158
13159
|
}
|
|
13159
13160
|
}
|
|
13160
|
-
FormControlElement.styles = [...SgdsElement.styles, css_248z$
|
|
13161
|
+
FormControlElement.styles = [...SgdsElement.styles, css_248z$U, css_248z$T, css_248z$S, css_248z$R];
|
|
13161
13162
|
__decorate([
|
|
13162
13163
|
property({ reflect: true })
|
|
13163
13164
|
], FormControlElement.prototype, "label", void 0);
|
|
@@ -13174,7 +13175,7 @@
|
|
|
13174
13175
|
property({ type: Boolean, reflect: true })
|
|
13175
13176
|
], FormControlElement.prototype, "invalid", void 0);
|
|
13176
13177
|
|
|
13177
|
-
var css_248z$
|
|
13178
|
+
var css_248z$Q = 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%}`;
|
|
13178
13179
|
|
|
13179
13180
|
/**
|
|
13180
13181
|
* @summary Checkbox component is used when you require users to select multiple items from a list.
|
|
@@ -13338,7 +13339,7 @@
|
|
|
13338
13339
|
`;
|
|
13339
13340
|
}
|
|
13340
13341
|
}
|
|
13341
|
-
SgdsCheckbox.styles = [...FormControlElement.styles, css_248z$
|
|
13342
|
+
SgdsCheckbox.styles = [...FormControlElement.styles, css_248z$Q];
|
|
13342
13343
|
__decorate([
|
|
13343
13344
|
property({ type: String, reflect: true })
|
|
13344
13345
|
], SgdsCheckbox.prototype, "value", void 0);
|
|
@@ -13370,7 +13371,7 @@
|
|
|
13370
13371
|
watch("_isTouched", { waitUntilFirstUpdate: true })
|
|
13371
13372
|
], SgdsCheckbox.prototype, "_handleIsTouched", null);
|
|
13372
13373
|
|
|
13373
|
-
var css_248z$
|
|
13374
|
+
var css_248z$P = 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;white-space:nowrap}.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}`;
|
|
13374
13375
|
|
|
13375
13376
|
class ComboBoxItem extends SgdsElement {
|
|
13376
13377
|
constructor() {
|
|
@@ -13438,7 +13439,7 @@
|
|
|
13438
13439
|
"sgds-icon": SgdsIcon,
|
|
13439
13440
|
"sgds-checkbox": SgdsCheckbox
|
|
13440
13441
|
};
|
|
13441
|
-
ComboBoxItem.styles = [css_248z$
|
|
13442
|
+
ComboBoxItem.styles = [css_248z$P];
|
|
13442
13443
|
__decorate([
|
|
13443
13444
|
property({ type: Boolean, reflect: true })
|
|
13444
13445
|
], ComboBoxItem.prototype, "active", void 0);
|
|
@@ -13449,7 +13450,7 @@
|
|
|
13449
13450
|
property({ type: Boolean, reflect: true })
|
|
13450
13451
|
], ComboBoxItem.prototype, "checkbox", void 0);
|
|
13451
13452
|
|
|
13452
|
-
var css_248z$
|
|
13453
|
+
var css_248z$O = 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)}`;
|
|
13453
13454
|
|
|
13454
13455
|
/**
|
|
13455
13456
|
* @summary ComboBox component is used for users to make one or more selections from a list through user input, keyboard or mouse actions
|
|
@@ -13724,7 +13725,7 @@
|
|
|
13724
13725
|
`;
|
|
13725
13726
|
}
|
|
13726
13727
|
}
|
|
13727
|
-
SgdsComboBox.styles = [...SelectElement.styles, css_248z$
|
|
13728
|
+
SgdsComboBox.styles = [...SelectElement.styles, css_248z$O];
|
|
13728
13729
|
/** @internal */
|
|
13729
13730
|
SgdsComboBox.dependencies = {
|
|
13730
13731
|
"sgds-combo-box-item": ComboBoxItem,
|
|
@@ -13749,7 +13750,7 @@
|
|
|
13749
13750
|
|
|
13750
13751
|
register("sgds-combo-box", SgdsComboBox);
|
|
13751
13752
|
|
|
13752
|
-
var css_248z$
|
|
13753
|
+
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}`;
|
|
13753
13754
|
|
|
13754
13755
|
/**
|
|
13755
13756
|
* @summary CheckboxGroup is a form component for multiselection of checkboxes.
|
|
@@ -13947,7 +13948,7 @@
|
|
|
13947
13948
|
`;
|
|
13948
13949
|
}
|
|
13949
13950
|
}
|
|
13950
|
-
SgdsCheckboxGroup.styles = [...FormControlElement.styles, css_248z$
|
|
13951
|
+
SgdsCheckboxGroup.styles = [...FormControlElement.styles, css_248z$N];
|
|
13951
13952
|
__decorate([
|
|
13952
13953
|
property({ reflect: true })
|
|
13953
13954
|
], SgdsCheckboxGroup.prototype, "label", void 0);
|
|
@@ -19685,7 +19686,7 @@
|
|
|
19685
19686
|
return newDate;
|
|
19686
19687
|
};
|
|
19687
19688
|
|
|
19688
|
-
var css_248z$
|
|
19689
|
+
var css_248z$M = 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)}`;
|
|
19689
19690
|
|
|
19690
19691
|
const TODAY_DATE = new Date();
|
|
19691
19692
|
const keyPressAction = {
|
|
@@ -20081,7 +20082,7 @@
|
|
|
20081
20082
|
return html$1 ` <div class="datepicker-body">${viewContent}</div> `;
|
|
20082
20083
|
}
|
|
20083
20084
|
}
|
|
20084
|
-
DatepickerCalendar.styles = [css_248z$
|
|
20085
|
+
DatepickerCalendar.styles = [css_248z$M];
|
|
20085
20086
|
/** @internal */
|
|
20086
20087
|
DatepickerCalendar.DAY_LABELS = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
|
|
20087
20088
|
/** @internal */
|
|
@@ -20129,7 +20130,7 @@
|
|
|
20129
20130
|
watch("displayDate")
|
|
20130
20131
|
], DatepickerCalendar.prototype, "_updateFocusedDate", null);
|
|
20131
20132
|
|
|
20132
|
-
var css_248z$
|
|
20133
|
+
var css_248z$L = 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)}`;
|
|
20133
20134
|
|
|
20134
20135
|
/**
|
|
20135
20136
|
* @summary An icon button is a user interface element that combines an icon and a button, serving as a clickable or tabbable component.
|
|
@@ -20176,7 +20177,7 @@
|
|
|
20176
20177
|
`;
|
|
20177
20178
|
}
|
|
20178
20179
|
}
|
|
20179
|
-
SgdsIconButton.styles = [...ButtonElement.styles, css_248z$
|
|
20180
|
+
SgdsIconButton.styles = [...ButtonElement.styles, css_248z$L];
|
|
20180
20181
|
/** @internal */
|
|
20181
20182
|
SgdsIconButton.dependencies = {
|
|
20182
20183
|
"sgds-icon": SgdsIcon
|
|
@@ -20185,7 +20186,7 @@
|
|
|
20185
20186
|
property({ type: String, reflect: true })
|
|
20186
20187
|
], SgdsIconButton.prototype, "name", void 0);
|
|
20187
20188
|
|
|
20188
|
-
var css_248z$
|
|
20189
|
+
var css_248z$K = css`.datepicker-header{display:flex;gap:var(--sgds-form-gap-md)}sgds-button{--btn-font-weight:var(--sgds-font-weight-semibold)}`;
|
|
20189
20190
|
|
|
20190
20191
|
class DatepickerHeader extends SgdsElement {
|
|
20191
20192
|
constructor() {
|
|
@@ -20361,7 +20362,7 @@
|
|
|
20361
20362
|
`;
|
|
20362
20363
|
}
|
|
20363
20364
|
}
|
|
20364
|
-
DatepickerHeader.styles = [css_248z$
|
|
20365
|
+
DatepickerHeader.styles = [css_248z$K];
|
|
20365
20366
|
/** @internal */
|
|
20366
20367
|
DatepickerHeader.dependencies = {
|
|
20367
20368
|
"sgds-icon": SgdsIcon,
|
|
@@ -24002,7 +24003,7 @@
|
|
|
24002
24003
|
globalThis.IMask = IMask;
|
|
24003
24004
|
} catch {}
|
|
24004
24005
|
|
|
24005
|
-
var css_248z$
|
|
24006
|
+
var css_248z$J = 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}}
|
|
24006
24007
|
|
|
24007
24008
|
/*! 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}`;
|
|
24008
24009
|
|
|
@@ -24034,7 +24035,7 @@
|
|
|
24034
24035
|
`;
|
|
24035
24036
|
}
|
|
24036
24037
|
}
|
|
24037
|
-
SgdsSpinner.styles = [...SgdsElement.styles, css_248z$
|
|
24038
|
+
SgdsSpinner.styles = [...SgdsElement.styles, css_248z$_, css_248z$J];
|
|
24038
24039
|
__decorate([
|
|
24039
24040
|
property({ type: String, reflect: true })
|
|
24040
24041
|
], SgdsSpinner.prototype, "variant", void 0);
|
|
@@ -24045,7 +24046,7 @@
|
|
|
24045
24046
|
property({ reflect: true, type: String })
|
|
24046
24047
|
], SgdsSpinner.prototype, "label", void 0);
|
|
24047
24048
|
|
|
24048
|
-
var css_248z$
|
|
24049
|
+
var css_248z$I = 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{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)}: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}`;
|
|
24049
24050
|
|
|
24050
24051
|
/**
|
|
24051
24052
|
* @summary Text inputs allow your users to enter letters, numbers and symbols on a single line.
|
|
@@ -24246,7 +24247,7 @@
|
|
|
24246
24247
|
`;
|
|
24247
24248
|
}
|
|
24248
24249
|
}
|
|
24249
|
-
SgdsInput.styles = [...FormControlElement.styles, css_248z$
|
|
24250
|
+
SgdsInput.styles = [...FormControlElement.styles, css_248z$R, css_248z$I];
|
|
24250
24251
|
/** @internal */
|
|
24251
24252
|
SgdsInput.dependencies = {
|
|
24252
24253
|
"sgds-spinner": SgdsSpinner,
|
|
@@ -24319,7 +24320,7 @@
|
|
|
24319
24320
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
24320
24321
|
], SgdsInput.prototype, "_handleDisabledChange", null);
|
|
24321
24322
|
|
|
24322
|
-
var css_248z$
|
|
24323
|
+
var css_248z$H = 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}`;
|
|
24323
24324
|
|
|
24324
24325
|
class DatepickerInput extends SgdsInput {
|
|
24325
24326
|
constructor() {
|
|
@@ -24446,7 +24447,7 @@
|
|
|
24446
24447
|
`;
|
|
24447
24448
|
}
|
|
24448
24449
|
}
|
|
24449
|
-
DatepickerInput.styles = [...SgdsInput.styles, css_248z$
|
|
24450
|
+
DatepickerInput.styles = [...SgdsInput.styles, css_248z$H];
|
|
24450
24451
|
__decorate([
|
|
24451
24452
|
property({ type: String })
|
|
24452
24453
|
], DatepickerInput.prototype, "minDate", void 0);
|
|
@@ -24460,7 +24461,7 @@
|
|
|
24460
24461
|
queryAsync("input")
|
|
24461
24462
|
], DatepickerInput.prototype, "shadowInput", void 0);
|
|
24462
24463
|
|
|
24463
|
-
var css_248z$
|
|
24464
|
+
var css_248z$G = 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}`;
|
|
24464
24465
|
|
|
24465
24466
|
/**
|
|
24466
24467
|
* @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
|
|
@@ -24832,7 +24833,7 @@
|
|
|
24832
24833
|
`;
|
|
24833
24834
|
}
|
|
24834
24835
|
}
|
|
24835
|
-
SgdsDatepicker.styles = [...DropdownElement.styles, css_248z$
|
|
24836
|
+
SgdsDatepicker.styles = [...DropdownElement.styles, css_248z$17, css_248z$G];
|
|
24836
24837
|
/**@internal */
|
|
24837
24838
|
SgdsDatepicker.dependencies = {
|
|
24838
24839
|
"sgds-datepicker-input": DatepickerInput,
|
|
@@ -24916,7 +24917,7 @@
|
|
|
24916
24917
|
|
|
24917
24918
|
register("sgds-datepicker", SgdsDatepicker);
|
|
24918
24919
|
|
|
24919
|
-
var css_248z$
|
|
24920
|
+
var css_248z$F = 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)}`;
|
|
24920
24921
|
|
|
24921
24922
|
class HasSlotController {
|
|
24922
24923
|
constructor(host, ...slotNames) {
|
|
@@ -25052,7 +25053,7 @@
|
|
|
25052
25053
|
`;
|
|
25053
25054
|
}
|
|
25054
25055
|
}
|
|
25055
|
-
SgdsDescriptionListGroup.styles = [...SgdsElement.styles, css_248z$
|
|
25056
|
+
SgdsDescriptionListGroup.styles = [...SgdsElement.styles, css_248z$F];
|
|
25056
25057
|
__decorate([
|
|
25057
25058
|
property({ type: Boolean, reflect: true })
|
|
25058
25059
|
], SgdsDescriptionListGroup.prototype, "bordered", void 0);
|
|
@@ -25063,7 +25064,7 @@
|
|
|
25063
25064
|
queryAssignedElements({ flatten: true })
|
|
25064
25065
|
], SgdsDescriptionListGroup.prototype, "_descriptionLists", void 0);
|
|
25065
25066
|
|
|
25066
|
-
var css_248z$
|
|
25067
|
+
var css_248z$E = 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}`;
|
|
25067
25068
|
|
|
25068
25069
|
let id$2 = 0;
|
|
25069
25070
|
/**
|
|
@@ -25106,7 +25107,7 @@
|
|
|
25106
25107
|
`;
|
|
25107
25108
|
}
|
|
25108
25109
|
}
|
|
25109
|
-
SgdsDescriptionList.styles = [...SgdsElement.styles, css_248z$
|
|
25110
|
+
SgdsDescriptionList.styles = [...SgdsElement.styles, css_248z$E];
|
|
25110
25111
|
__decorate([
|
|
25111
25112
|
property({ type: Boolean, reflect: true })
|
|
25112
25113
|
], SgdsDescriptionList.prototype, "stacked", void 0);
|
|
@@ -25117,7 +25118,7 @@
|
|
|
25117
25118
|
register("sgds-description-list", SgdsDescriptionList);
|
|
25118
25119
|
register("sgds-description-list-group", SgdsDescriptionListGroup);
|
|
25119
25120
|
|
|
25120
|
-
var css_248z$
|
|
25121
|
+
var css_248z$D = 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)}`;
|
|
25121
25122
|
|
|
25122
25123
|
/**
|
|
25123
25124
|
* @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.
|
|
@@ -25136,7 +25137,7 @@
|
|
|
25136
25137
|
this.setAttribute("aria-orientation", this.orientation);
|
|
25137
25138
|
}
|
|
25138
25139
|
}
|
|
25139
|
-
SgdsDivider.styles = [css_248z$
|
|
25140
|
+
SgdsDivider.styles = [css_248z$D];
|
|
25140
25141
|
__decorate([
|
|
25141
25142
|
property({ type: String, reflect: true })
|
|
25142
25143
|
], SgdsDivider.prototype, "orientation", void 0);
|
|
@@ -25165,7 +25166,7 @@
|
|
|
25165
25166
|
}
|
|
25166
25167
|
}
|
|
25167
25168
|
|
|
25168
|
-
var css_248z$
|
|
25169
|
+
var css_248z$C = 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}}`;
|
|
25169
25170
|
|
|
25170
25171
|
/**
|
|
25171
25172
|
* @summary Drawers slide in from a container to expose additional options and information.
|
|
@@ -25384,7 +25385,7 @@
|
|
|
25384
25385
|
`;
|
|
25385
25386
|
}
|
|
25386
25387
|
}
|
|
25387
|
-
SgdsDrawer.styles = [...SgdsElement.styles, css_248z$
|
|
25388
|
+
SgdsDrawer.styles = [...SgdsElement.styles, css_248z$C];
|
|
25388
25389
|
/**@internal */
|
|
25389
25390
|
SgdsDrawer.dependencies = {
|
|
25390
25391
|
"sgds-close-button": SgdsCloseButton
|
|
@@ -25509,7 +25510,7 @@
|
|
|
25509
25510
|
register("sgds-dropdown", SgdsDropdown);
|
|
25510
25511
|
register("sgds-dropdown-item", SgdsDropdownItem);
|
|
25511
25512
|
|
|
25512
|
-
var css_248z$
|
|
25513
|
+
var css_248z$B = 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)}`;
|
|
25513
25514
|
|
|
25514
25515
|
/**
|
|
25515
25516
|
* @summary Allows users to upload files of various sizes and formats
|
|
@@ -25682,7 +25683,7 @@
|
|
|
25682
25683
|
`;
|
|
25683
25684
|
}
|
|
25684
25685
|
}
|
|
25685
|
-
SgdsFileUpload.styles = [...FormControlElement.styles, css_248z$
|
|
25686
|
+
SgdsFileUpload.styles = [...FormControlElement.styles, css_248z$B];
|
|
25686
25687
|
/**@internal */
|
|
25687
25688
|
SgdsFileUpload.dependencies = {
|
|
25688
25689
|
"sgds-button": SgdsButton,
|
|
@@ -25713,7 +25714,7 @@
|
|
|
25713
25714
|
|
|
25714
25715
|
register("sgds-file-upload", SgdsFileUpload);
|
|
25715
25716
|
|
|
25716
|
-
var css_248z$
|
|
25717
|
+
var css_248z$A = 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}}`;
|
|
25717
25718
|
|
|
25718
25719
|
/**
|
|
25719
25720
|
* @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.
|
|
@@ -25816,7 +25817,7 @@
|
|
|
25816
25817
|
`;
|
|
25817
25818
|
}
|
|
25818
25819
|
}
|
|
25819
|
-
SgdsFooter.styles = [...SgdsElement.styles, css_248z$
|
|
25820
|
+
SgdsFooter.styles = [...SgdsElement.styles, css_248z$A];
|
|
25820
25821
|
__decorate([
|
|
25821
25822
|
property({ type: String })
|
|
25822
25823
|
], SgdsFooter.prototype, "copyrightLiner", void 0);
|
|
@@ -25836,7 +25837,7 @@
|
|
|
25836
25837
|
property({ type: String })
|
|
25837
25838
|
], SgdsFooter.prototype, "termsOfUseHref", void 0);
|
|
25838
25839
|
|
|
25839
|
-
var css_248z$
|
|
25840
|
+
var css_248z$z = css`.footer-item{margin-bottom:var(--sgds-margin-3-xs)}.footer-item,.links{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}slot[name=title]::slotted(*){--sgds-paragraph-spacing-xl:var(--sgds-margin-none);--sgds-font-weight-regular:var(--sgds-font-weight-semibold);color:var(--sgds-color-fixed-light);font-weight:var(--sgds-font-weight-regular,--sgds-font-weight-semibold);margin:var(--sgds-paragraph-spacing-xl,--sgds-margin-none)}.links{margin:0;padding:0}.links slot::slotted(a){--sgds-link-color-default:var(--sgds-color-fixed-light);color:var(--sgds-link-color-default,--sgds-fixed-light);text-decoration:none!important;width:fit-content}.links slot::slotted(a[target=_blank]){align-items:center;display:flex;gap:var(--sgds-gap-2-xs);justify-content:center}.links slot::slotted(a:focus),.links slot::slotted(a:focus-visible),slot::slotted(a:hover){--sgds-link-color-emphasis:var(--sgds-color-fixed-light);color:var(--sgds-link-color-emphasis,--sgds-color-fixed-light)}.links slot::slotted(a:focus),.links slot::slotted(a:focus-visible){box-shadow:var(--sgds-box-shadow-focus);outline:0}`;
|
|
25840
25841
|
|
|
25841
25842
|
/**
|
|
25842
25843
|
* @summary The footer item component organizes links under a clear, descriptive title within the footer. It helps users easily navigate to related resources or information, ensuring clarity and accessibility.
|
|
@@ -25857,7 +25858,7 @@
|
|
|
25857
25858
|
`;
|
|
25858
25859
|
}
|
|
25859
25860
|
}
|
|
25860
|
-
SgdsFooterItem.styles = [...SgdsElement.styles, css_248z$
|
|
25861
|
+
SgdsFooterItem.styles = [...SgdsElement.styles, css_248z$z];
|
|
25861
25862
|
|
|
25862
25863
|
register("sgds-footer", SgdsFooter);
|
|
25863
25864
|
register("sgds-footer-item", SgdsFooterItem);
|
|
@@ -25866,7 +25867,7 @@
|
|
|
25866
25867
|
|
|
25867
25868
|
register("sgds-icon-button", SgdsIconButton);
|
|
25868
25869
|
|
|
25869
|
-
var css_248z$
|
|
25870
|
+
var css_248z$y = css`slot{display:flex;flex-direction:column;gap:var(--sgds-gap-xs)}slot::slotted(*){align-items:center;display:flex;gap:var(--sgds-gap-xs)}.sm{font-size:var(--sgds-font-size-1)}.lg{font-size:var(--sgds-font-size-3)}`;
|
|
25870
25871
|
|
|
25871
25872
|
/**
|
|
25872
25873
|
* @summary A IconList can be used to display content related to the same topic. Each list item begins an icon.
|
|
@@ -25889,7 +25890,7 @@
|
|
|
25889
25890
|
`;
|
|
25890
25891
|
}
|
|
25891
25892
|
}
|
|
25892
|
-
SgdsIconList.styles = [...SgdsElement.styles, css_248z$
|
|
25893
|
+
SgdsIconList.styles = [...SgdsElement.styles, css_248z$y];
|
|
25893
25894
|
__decorate([
|
|
25894
25895
|
property({ type: String, reflect: true })
|
|
25895
25896
|
], SgdsIconList.prototype, "role", void 0);
|
|
@@ -26386,15 +26387,15 @@
|
|
|
26386
26387
|
});
|
|
26387
26388
|
}
|
|
26388
26389
|
|
|
26389
|
-
const SM_BREAKPOINT = 512;
|
|
26390
|
-
const MD_BREAKPOINT = 768;
|
|
26391
26390
|
const LG_BREAKPOINT = 1024;
|
|
26391
|
+
const MD_BREAKPOINT = 768;
|
|
26392
|
+
const SM_BREAKPOINT = 512;
|
|
26392
26393
|
const XL_BREAKPOINT = 1280;
|
|
26393
26394
|
const XXL_BREAKPOINT = 1440;
|
|
26394
26395
|
|
|
26395
26396
|
const MainnavContext = createContext("mainnav-context");
|
|
26396
26397
|
|
|
26397
|
-
var css_248z$
|
|
26398
|
+
var css_248z$x = 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}`;
|
|
26398
26399
|
|
|
26399
26400
|
const SIZES = {
|
|
26400
26401
|
sm: SM_BREAKPOINT,
|
|
@@ -26616,7 +26617,7 @@
|
|
|
26616
26617
|
}
|
|
26617
26618
|
}
|
|
26618
26619
|
}
|
|
26619
|
-
SgdsMainnav.styles = [...SgdsElement.styles, css_248z$
|
|
26620
|
+
SgdsMainnav.styles = [...SgdsElement.styles, css_248z$x];
|
|
26620
26621
|
/** @internal */
|
|
26621
26622
|
SgdsMainnav.dependencies = {
|
|
26622
26623
|
"sgds-icon-button": SgdsIconButton
|
|
@@ -26679,7 +26680,7 @@
|
|
|
26679
26680
|
options: { duration: 200, easing: "ease-in-out" }
|
|
26680
26681
|
});
|
|
26681
26682
|
|
|
26682
|
-
var css_248z$
|
|
26683
|
+
var css_248z$w = 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%}`;
|
|
26683
26684
|
|
|
26684
26685
|
const TAB = "Tab";
|
|
26685
26686
|
const ENTER = "Enter";
|
|
@@ -26723,7 +26724,7 @@
|
|
|
26723
26724
|
return;
|
|
26724
26725
|
}
|
|
26725
26726
|
if (this._breakpointReached) {
|
|
26726
|
-
this.shadowRoot.adoptedStyleSheets = [css_248z$
|
|
26727
|
+
this.shadowRoot.adoptedStyleSheets = [css_248z$17.styleSheet, css_248z$w.styleSheet];
|
|
26727
26728
|
}
|
|
26728
26729
|
}
|
|
26729
26730
|
updated() {
|
|
@@ -26913,7 +26914,7 @@
|
|
|
26913
26914
|
return this._breakpointReached ? mobileView : desktopView;
|
|
26914
26915
|
}
|
|
26915
26916
|
}
|
|
26916
|
-
SgdsMainnavDropdown.styles = [...SgdsElement.styles, css_248z$
|
|
26917
|
+
SgdsMainnavDropdown.styles = [...SgdsElement.styles, css_248z$16, css_248z$17, css_248z$w];
|
|
26917
26918
|
/** @internal */
|
|
26918
26919
|
SgdsMainnavDropdown.dependencies = {
|
|
26919
26920
|
"sgds-dropdown": SgdsDropdown,
|
|
@@ -26949,7 +26950,7 @@
|
|
|
26949
26950
|
queryAssignedElements()
|
|
26950
26951
|
], SgdsMainnavDropdown.prototype, "defaultNodes", void 0);
|
|
26951
26952
|
|
|
26952
|
-
var css_248z$
|
|
26953
|
+
var css_248z$v = 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)}`;
|
|
26953
26954
|
|
|
26954
26955
|
/**
|
|
26955
26956
|
* @slot default - slot for SgdsMainnavItem element.
|
|
@@ -26958,7 +26959,7 @@
|
|
|
26958
26959
|
class SgdsMainnavItem extends SgdsElement {
|
|
26959
26960
|
constructor() {
|
|
26960
26961
|
super(...arguments);
|
|
26961
|
-
/** when true, sets the active stylings of
|
|
26962
|
+
/** when true, sets the active stylings of the navigation item */
|
|
26962
26963
|
this.active = false;
|
|
26963
26964
|
/** Disables the SgdsMainnavItem */
|
|
26964
26965
|
this.disabled = false;
|
|
@@ -26999,9 +27000,9 @@
|
|
|
26999
27000
|
return html$1 `<slot @slotchange=${this._handleSlotChange}></slot>`;
|
|
27000
27001
|
}
|
|
27001
27002
|
}
|
|
27002
|
-
SgdsMainnavItem.styles = [...SgdsElement.styles, css_248z$
|
|
27003
|
+
SgdsMainnavItem.styles = [...SgdsElement.styles, css_248z$v];
|
|
27003
27004
|
__decorate([
|
|
27004
|
-
property({ type: Boolean })
|
|
27005
|
+
property({ type: Boolean, reflect: true })
|
|
27005
27006
|
], SgdsMainnavItem.prototype, "active", void 0);
|
|
27006
27007
|
__decorate([
|
|
27007
27008
|
property({ type: Boolean, reflect: true })
|
|
@@ -27014,9 +27015,9 @@
|
|
|
27014
27015
|
register("sgds-mainnav-dropdown", SgdsMainnavDropdown);
|
|
27015
27016
|
register("sgds-mainnav-item", SgdsMainnavItem);
|
|
27016
27017
|
|
|
27017
|
-
var css_248z$
|
|
27018
|
+
var css_248z$u = 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}}`;
|
|
27018
27019
|
|
|
27019
|
-
var css_248z$
|
|
27020
|
+
var css_248z$t = css`svg{vertical-align:middle}`;
|
|
27020
27021
|
|
|
27021
27022
|
/**
|
|
27022
27023
|
* @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.
|
|
@@ -27194,7 +27195,7 @@
|
|
|
27194
27195
|
`;
|
|
27195
27196
|
}
|
|
27196
27197
|
}
|
|
27197
|
-
SgdsMasthead.styles = [...SgdsElement.styles, css_248z$
|
|
27198
|
+
SgdsMasthead.styles = [...SgdsElement.styles, css_248z$t, css_248z$1a, css_248z$u];
|
|
27198
27199
|
__decorate([
|
|
27199
27200
|
state()
|
|
27200
27201
|
], SgdsMasthead.prototype, "toggleVisibility", void 0);
|
|
@@ -27318,7 +27319,7 @@
|
|
|
27318
27319
|
}
|
|
27319
27320
|
}
|
|
27320
27321
|
|
|
27321
|
-
var css_248z$
|
|
27322
|
+
var css_248z$s = 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}`;
|
|
27322
27323
|
|
|
27323
27324
|
/**
|
|
27324
27325
|
* @summary The modal component inform users about a specific task and may contain critical information which users then have to make a decision.
|
|
@@ -27551,7 +27552,7 @@
|
|
|
27551
27552
|
`;
|
|
27552
27553
|
}
|
|
27553
27554
|
}
|
|
27554
|
-
SgdsModal.styles = [...SgdsElement.styles, css_248z$
|
|
27555
|
+
SgdsModal.styles = [...SgdsElement.styles, css_248z$X, css_248z$t, css_248z$s];
|
|
27555
27556
|
/**@internal */
|
|
27556
27557
|
SgdsModal.dependencies = {
|
|
27557
27558
|
"sgds-close-button": SgdsCloseButton
|
|
@@ -27609,7 +27610,7 @@
|
|
|
27609
27610
|
|
|
27610
27611
|
register("sgds-modal", SgdsModal);
|
|
27611
27612
|
|
|
27612
|
-
var css_248z$
|
|
27613
|
+
var css_248z$r = 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)}`;
|
|
27613
27614
|
|
|
27614
27615
|
/**
|
|
27615
27616
|
* @summary The Pagination component enables the user to select a specific page from a range of pages
|
|
@@ -27893,7 +27894,7 @@
|
|
|
27893
27894
|
`;
|
|
27894
27895
|
}
|
|
27895
27896
|
}
|
|
27896
|
-
SgdsPagination.styles = [...SgdsElement.styles, css_248z$
|
|
27897
|
+
SgdsPagination.styles = [...SgdsElement.styles, css_248z$r];
|
|
27897
27898
|
/**@internal */
|
|
27898
27899
|
SgdsPagination.dependencies = {
|
|
27899
27900
|
"sgds-icon-button": SgdsIconButton,
|
|
@@ -28030,7 +28031,7 @@
|
|
|
28030
28031
|
*/
|
|
28031
28032
|
const styleMap = directive(StyleMapDirective);
|
|
28032
28033
|
|
|
28033
|
-
var css_248z$
|
|
28034
|
+
var css_248z$q = 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}}`;
|
|
28034
28035
|
|
|
28035
28036
|
/**
|
|
28036
28037
|
* @summary Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.
|
|
@@ -28066,7 +28067,7 @@
|
|
|
28066
28067
|
`;
|
|
28067
28068
|
}
|
|
28068
28069
|
}
|
|
28069
|
-
SgdsProgressBar.styles = [...SgdsElement.styles, css_248z$
|
|
28070
|
+
SgdsProgressBar.styles = [...SgdsElement.styles, css_248z$q];
|
|
28070
28071
|
__decorate([
|
|
28071
28072
|
property({ type: String, reflect: true })
|
|
28072
28073
|
], SgdsProgressBar.prototype, "variant", void 0);
|
|
@@ -28088,7 +28089,7 @@
|
|
|
28088
28089
|
|
|
28089
28090
|
register("sgds-progress-bar", SgdsProgressBar);
|
|
28090
28091
|
|
|
28091
|
-
var css_248z$
|
|
28092
|
+
var css_248z$p = 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}`;
|
|
28092
28093
|
|
|
28093
28094
|
/**
|
|
28094
28095
|
* @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.
|
|
@@ -28305,7 +28306,7 @@
|
|
|
28305
28306
|
`;
|
|
28306
28307
|
}
|
|
28307
28308
|
}
|
|
28308
|
-
SgdsQuantityToggle.styles = [...FormControlElement.styles, css_248z$
|
|
28309
|
+
SgdsQuantityToggle.styles = [...FormControlElement.styles, css_248z$R, css_248z$t, css_248z$p];
|
|
28309
28310
|
/** @internal */
|
|
28310
28311
|
SgdsQuantityToggle.dependencies = {
|
|
28311
28312
|
"sgds-input": SgdsInput,
|
|
@@ -28344,7 +28345,7 @@
|
|
|
28344
28345
|
|
|
28345
28346
|
register("sgds-quantity-toggle", SgdsQuantityToggle);
|
|
28346
28347
|
|
|
28347
|
-
var css_248z$
|
|
28348
|
+
var css_248z$o = 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)}`;
|
|
28348
28349
|
|
|
28349
28350
|
/**
|
|
28350
28351
|
* @summary Radio allows the user to select one option from a set while seeing all available options.
|
|
@@ -28430,7 +28431,7 @@
|
|
|
28430
28431
|
`;
|
|
28431
28432
|
}
|
|
28432
28433
|
}
|
|
28433
|
-
SgdsRadio.styles = [...SgdsElement.styles, css_248z$
|
|
28434
|
+
SgdsRadio.styles = [...SgdsElement.styles, css_248z$S, css_248z$o];
|
|
28434
28435
|
__decorate([
|
|
28435
28436
|
property({ type: Boolean, reflect: true })
|
|
28436
28437
|
], SgdsRadio.prototype, "checked", void 0);
|
|
@@ -28453,7 +28454,7 @@
|
|
|
28453
28454
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
28454
28455
|
], SgdsRadio.prototype, "handleDisabledChange", null);
|
|
28455
28456
|
|
|
28456
|
-
var css_248z$
|
|
28457
|
+
var css_248z$n = 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)}`;
|
|
28457
28458
|
|
|
28458
28459
|
/**
|
|
28459
28460
|
* @summary RadioGroup group multiple radios so they function as a single form control.
|
|
@@ -28684,7 +28685,7 @@
|
|
|
28684
28685
|
`;
|
|
28685
28686
|
}
|
|
28686
28687
|
}
|
|
28687
|
-
SgdsRadioGroup.styles = [...FormControlElement.styles, css_248z$
|
|
28688
|
+
SgdsRadioGroup.styles = [...FormControlElement.styles, css_248z$n];
|
|
28688
28689
|
__decorate([
|
|
28689
28690
|
query("slot:not([name])")
|
|
28690
28691
|
], SgdsRadioGroup.prototype, "defaultSlot", void 0);
|
|
@@ -28725,7 +28726,7 @@
|
|
|
28725
28726
|
register("sgds-radio", SgdsRadio);
|
|
28726
28727
|
register("sgds-radio-group", SgdsRadioGroup);
|
|
28727
28728
|
|
|
28728
|
-
var css_248z$
|
|
28729
|
+
var css_248z$m = 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)}`;
|
|
28729
28730
|
|
|
28730
28731
|
/**
|
|
28731
28732
|
* @summary The side navigation is used to display a list of links to move between pages within a related category.
|
|
@@ -28770,7 +28771,7 @@
|
|
|
28770
28771
|
`;
|
|
28771
28772
|
}
|
|
28772
28773
|
}
|
|
28773
|
-
SgdsSidenav.styles = [...SgdsElement.styles, css_248z$
|
|
28774
|
+
SgdsSidenav.styles = [...SgdsElement.styles, css_248z$m];
|
|
28774
28775
|
__decorate([
|
|
28775
28776
|
property({ type: Boolean, attribute: true })
|
|
28776
28777
|
], SgdsSidenav.prototype, "sticky", void 0);
|
|
@@ -28778,7 +28779,7 @@
|
|
|
28778
28779
|
queryAssignedElements()
|
|
28779
28780
|
], SgdsSidenav.prototype, "defaultNodes", void 0);
|
|
28780
28781
|
|
|
28781
|
-
var css_248z$
|
|
28782
|
+
var css_248z$l = 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}`;
|
|
28782
28783
|
|
|
28783
28784
|
/**
|
|
28784
28785
|
* @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.
|
|
@@ -28988,7 +28989,7 @@
|
|
|
28988
28989
|
`;
|
|
28989
28990
|
}
|
|
28990
28991
|
}
|
|
28991
|
-
SgdsSidenavItem.styles = [...SgdsElement.styles, css_248z$
|
|
28992
|
+
SgdsSidenavItem.styles = [...SgdsElement.styles, css_248z$l];
|
|
28992
28993
|
/** @internal */
|
|
28993
28994
|
SgdsSidenavItem.dependencies = {
|
|
28994
28995
|
"sgds-icon": SgdsIcon
|
|
@@ -29029,7 +29030,7 @@
|
|
|
29029
29030
|
options: { duration: 200, easing: "ease-in-out" }
|
|
29030
29031
|
});
|
|
29031
29032
|
|
|
29032
|
-
var css_248z$
|
|
29033
|
+
var css_248z$k = 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)}`;
|
|
29033
29034
|
|
|
29034
29035
|
/**
|
|
29035
29036
|
* @slot default - slot for label of anchor tag.
|
|
@@ -29066,7 +29067,7 @@
|
|
|
29066
29067
|
return html$1 ` <slot @slotchange=${this._handleSlotChange}></slot> `;
|
|
29067
29068
|
}
|
|
29068
29069
|
}
|
|
29069
|
-
SgdsSidenavLink.styles = [...SgdsElement.styles, css_248z$
|
|
29070
|
+
SgdsSidenavLink.styles = [...SgdsElement.styles, css_248z$k];
|
|
29070
29071
|
__decorate([
|
|
29071
29072
|
property({ type: Boolean, reflect: true })
|
|
29072
29073
|
], SgdsSidenavLink.prototype, "active", void 0);
|
|
@@ -29084,7 +29085,7 @@
|
|
|
29084
29085
|
register("sgds-sidenav-item", SgdsSidenavItem);
|
|
29085
29086
|
register("sgds-sidenav-link", SgdsSidenavLink);
|
|
29086
29087
|
|
|
29087
|
-
var css_248z$
|
|
29088
|
+
var css_248z$j = 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}}`;
|
|
29088
29089
|
|
|
29089
29090
|
/**
|
|
29090
29091
|
* @summary A skeleton is a low-fidelity visual placeholder that represents the loading of interface elements
|
|
@@ -29132,7 +29133,7 @@
|
|
|
29132
29133
|
`;
|
|
29133
29134
|
}
|
|
29134
29135
|
}
|
|
29135
|
-
SgdsSkeleton.styles = [css_248z$
|
|
29136
|
+
SgdsSkeleton.styles = [css_248z$j];
|
|
29136
29137
|
__decorate([
|
|
29137
29138
|
query(".skeleton")
|
|
29138
29139
|
], SgdsSkeleton.prototype, "skeleton", void 0);
|
|
@@ -29159,7 +29160,7 @@
|
|
|
29159
29160
|
|
|
29160
29161
|
register("sgds-spinner", SgdsSpinner);
|
|
29161
29162
|
|
|
29162
|
-
var css_248z$
|
|
29163
|
+
var css_248z$i = 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}`;
|
|
29163
29164
|
|
|
29164
29165
|
/**
|
|
29165
29166
|
* @summary Switch component is used to toggle on and off or yes or no action.
|
|
@@ -29257,7 +29258,7 @@
|
|
|
29257
29258
|
`;
|
|
29258
29259
|
}
|
|
29259
29260
|
}
|
|
29260
|
-
SgdsSwitch.styles = [...SgdsElement.styles, css_248z$
|
|
29261
|
+
SgdsSwitch.styles = [...SgdsElement.styles, css_248z$S, css_248z$i];
|
|
29261
29262
|
__decorate([
|
|
29262
29263
|
property({ reflect: true, type: String })
|
|
29263
29264
|
], SgdsSwitch.prototype, "size", void 0);
|
|
@@ -29282,7 +29283,7 @@
|
|
|
29282
29283
|
|
|
29283
29284
|
register("sgds-switch", SgdsSwitch);
|
|
29284
29285
|
|
|
29285
|
-
var css_248z$
|
|
29286
|
+
var css_248z$h = 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)}`;
|
|
29286
29287
|
|
|
29287
29288
|
/**
|
|
29288
29289
|
* @summary Steppers are used to inform users which step they are at in a form or a process
|
|
@@ -29400,7 +29401,7 @@
|
|
|
29400
29401
|
`;
|
|
29401
29402
|
}
|
|
29402
29403
|
}
|
|
29403
|
-
SgdsStepper.styles = [...SgdsElement.styles, css_248z$
|
|
29404
|
+
SgdsStepper.styles = [...SgdsElement.styles, css_248z$h];
|
|
29404
29405
|
/** @internal */
|
|
29405
29406
|
SgdsStepper.dependencies = { "sgds-icon": SgdsIcon };
|
|
29406
29407
|
__decorate([
|
|
@@ -29424,7 +29425,7 @@
|
|
|
29424
29425
|
|
|
29425
29426
|
register("sgds-stepper", SgdsStepper);
|
|
29426
29427
|
|
|
29427
|
-
var css_248z$
|
|
29428
|
+
var css_248z$g = 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}`;
|
|
29428
29429
|
|
|
29429
29430
|
let id$1 = 0;
|
|
29430
29431
|
/**
|
|
@@ -29480,7 +29481,7 @@
|
|
|
29480
29481
|
`;
|
|
29481
29482
|
}
|
|
29482
29483
|
}
|
|
29483
|
-
SgdsTab.styles = [css_248z$
|
|
29484
|
+
SgdsTab.styles = [css_248z$g];
|
|
29484
29485
|
__decorate([
|
|
29485
29486
|
query(".tab")
|
|
29486
29487
|
], SgdsTab.prototype, "tab", void 0);
|
|
@@ -29500,7 +29501,7 @@
|
|
|
29500
29501
|
watch("disabled")
|
|
29501
29502
|
], SgdsTab.prototype, "handleDisabledChange", null);
|
|
29502
29503
|
|
|
29503
|
-
var css_248z$
|
|
29504
|
+
var css_248z$f = 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)}`;
|
|
29504
29505
|
|
|
29505
29506
|
/**
|
|
29506
29507
|
* @summary Tab Group organizes content into a container with the syncing of tab and their corresponding panels.
|
|
@@ -29717,7 +29718,7 @@
|
|
|
29717
29718
|
`;
|
|
29718
29719
|
}
|
|
29719
29720
|
}
|
|
29720
|
-
SgdsTabGroup.styles = [...SgdsElement.styles, css_248z$
|
|
29721
|
+
SgdsTabGroup.styles = [...SgdsElement.styles, css_248z$f];
|
|
29721
29722
|
__decorate([
|
|
29722
29723
|
query(".tab-group")
|
|
29723
29724
|
], SgdsTabGroup.prototype, "_tabGroup", void 0);
|
|
@@ -29740,7 +29741,7 @@
|
|
|
29740
29741
|
queryAssignedElements({ slot: "nav", flatten: true })
|
|
29741
29742
|
], SgdsTabGroup.prototype, "_navSlot", void 0);
|
|
29742
29743
|
|
|
29743
|
-
var css_248z$
|
|
29744
|
+
var css_248z$e = css`.tab-panel{display:block}.tab-panel:not(.tab-panel--active){display:none}`;
|
|
29744
29745
|
|
|
29745
29746
|
let id = 0;
|
|
29746
29747
|
/**
|
|
@@ -29777,7 +29778,7 @@
|
|
|
29777
29778
|
`;
|
|
29778
29779
|
}
|
|
29779
29780
|
}
|
|
29780
|
-
SgdsTabPanel.styles = [...SgdsElement.styles, css_248z$
|
|
29781
|
+
SgdsTabPanel.styles = [...SgdsElement.styles, css_248z$e];
|
|
29781
29782
|
__decorate([
|
|
29782
29783
|
property({ reflect: true })
|
|
29783
29784
|
], SgdsTabPanel.prototype, "name", void 0);
|
|
@@ -29792,10 +29793,13 @@
|
|
|
29792
29793
|
register("sgds-tab-group", SgdsTabGroup);
|
|
29793
29794
|
register("sgds-tab-panel", SgdsTabPanel);
|
|
29794
29795
|
|
|
29795
|
-
var css_248z$
|
|
29796
|
+
var css_248z$d = 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}}`;
|
|
29796
29797
|
|
|
29797
29798
|
/**
|
|
29798
|
-
* @summary
|
|
29799
|
+
* @summary Table is used for displaying collections of data in organized rows and columns.
|
|
29800
|
+
* 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.
|
|
29801
|
+
*
|
|
29802
|
+
* @slot - Insert custom table elements (such as rows, headers, or cells) to define the table structure manually.
|
|
29799
29803
|
*/
|
|
29800
29804
|
class SgdsTable extends SgdsElement {
|
|
29801
29805
|
constructor() {
|
|
@@ -29817,18 +29821,17 @@
|
|
|
29817
29821
|
*/
|
|
29818
29822
|
this.headerPosition = "horizontal";
|
|
29819
29823
|
/** @internal */
|
|
29820
|
-
this.
|
|
29824
|
+
this.hasSlotController = new HasSlotController(this, "[default]");
|
|
29821
29825
|
}
|
|
29822
29826
|
connectedCallback() {
|
|
29823
29827
|
super.connectedCallback();
|
|
29824
|
-
this.originalTableData = [...this.tableData];
|
|
29825
29828
|
}
|
|
29826
29829
|
_renderTable() {
|
|
29827
29830
|
if (this.headerPosition === "horizontal") {
|
|
29828
29831
|
return html$1 `
|
|
29829
29832
|
<thead>
|
|
29830
29833
|
<tr>
|
|
29831
|
-
${this.rowHeader.map((header
|
|
29834
|
+
${this.rowHeader.map((header) => html$1 ` <th>${header}</th> `)}
|
|
29832
29835
|
</tr>
|
|
29833
29836
|
</thead>
|
|
29834
29837
|
<tbody>
|
|
@@ -29845,7 +29848,7 @@
|
|
|
29845
29848
|
<thead>
|
|
29846
29849
|
<tr>
|
|
29847
29850
|
<th></th>
|
|
29848
|
-
${this.rowHeader.map((header
|
|
29851
|
+
${this.rowHeader.map((header) => html$1 ` <th>${header}</th> `)}
|
|
29849
29852
|
</tr>
|
|
29850
29853
|
</thead>
|
|
29851
29854
|
<tbody>
|
|
@@ -29871,6 +29874,7 @@
|
|
|
29871
29874
|
}
|
|
29872
29875
|
}
|
|
29873
29876
|
render() {
|
|
29877
|
+
const hasDefaultSlot = this.hasSlotController.test("[default]");
|
|
29874
29878
|
return html$1 `
|
|
29875
29879
|
<div
|
|
29876
29880
|
class=${classMap({
|
|
@@ -29882,14 +29886,18 @@
|
|
|
29882
29886
|
})}
|
|
29883
29887
|
tabindex="0"
|
|
29884
29888
|
>
|
|
29885
|
-
<table class="table">
|
|
29886
|
-
|
|
29887
|
-
|
|
29889
|
+
<slot id="table-slot" class="table"></slot>
|
|
29890
|
+
|
|
29891
|
+
${!hasDefaultSlot
|
|
29892
|
+
? html$1 `<table class="table">
|
|
29893
|
+
${this._renderTable()}
|
|
29894
|
+
</table>`
|
|
29895
|
+
: ""}
|
|
29888
29896
|
</div>
|
|
29889
29897
|
`;
|
|
29890
29898
|
}
|
|
29891
29899
|
}
|
|
29892
|
-
SgdsTable.styles = [...SgdsElement.styles, css_248z$
|
|
29900
|
+
SgdsTable.styles = [...SgdsElement.styles, css_248z$d];
|
|
29893
29901
|
__decorate([
|
|
29894
29902
|
property({ type: String, reflect: true })
|
|
29895
29903
|
], SgdsTable.prototype, "responsive", void 0);
|
|
@@ -29903,13 +29911,85 @@
|
|
|
29903
29911
|
property({ type: Array })
|
|
29904
29912
|
], SgdsTable.prototype, "tableData", void 0);
|
|
29905
29913
|
__decorate([
|
|
29906
|
-
property({ type: String
|
|
29914
|
+
property({ type: String })
|
|
29907
29915
|
], SgdsTable.prototype, "headerPosition", void 0);
|
|
29916
|
+
|
|
29917
|
+
var css_248z$c = css`:host{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-emphasis);display:table-cell;font-weight:700;padding:var(--sgds-padding-lg)}:host(:not([border])){border-color:var(--sgds-border-color-muted)}`;
|
|
29918
|
+
|
|
29919
|
+
/**
|
|
29920
|
+
* @summary Table head represents a table header cell that identifies a group of information within the table.
|
|
29921
|
+
*
|
|
29922
|
+
* @slot - Place any elements inside to display as the header content.
|
|
29923
|
+
*/
|
|
29924
|
+
class SgdsTableHead extends SgdsElement {
|
|
29925
|
+
constructor() {
|
|
29926
|
+
super(...arguments);
|
|
29927
|
+
/**
|
|
29928
|
+
* To indicate if the header will have a darker bottom border style
|
|
29929
|
+
*/
|
|
29930
|
+
this.border = false;
|
|
29931
|
+
}
|
|
29932
|
+
_handleBorderChange() {
|
|
29933
|
+
var _a, _b;
|
|
29934
|
+
this.border = ((_b = (_a = this.nextElementSibling) === null || _a === void 0 ? void 0 : _a.tagName) === null || _b === void 0 ? void 0 : _b.toLowerCase()) !== "sgds-table-cell";
|
|
29935
|
+
this.border ? this.setAttribute("border", "true") : this.removeAttribute("border");
|
|
29936
|
+
}
|
|
29937
|
+
connectedCallback() {
|
|
29938
|
+
super.connectedCallback();
|
|
29939
|
+
this.setAttribute("role", "columnheader");
|
|
29940
|
+
}
|
|
29941
|
+
render() {
|
|
29942
|
+
return html$1 `<slot></slot>`;
|
|
29943
|
+
}
|
|
29944
|
+
}
|
|
29945
|
+
SgdsTableHead.styles = [...SgdsElement.styles, css_248z$c];
|
|
29908
29946
|
__decorate([
|
|
29909
29947
|
state()
|
|
29910
|
-
],
|
|
29948
|
+
], SgdsTableHead.prototype, "border", void 0);
|
|
29949
|
+
__decorate([
|
|
29950
|
+
watch("border")
|
|
29951
|
+
], SgdsTableHead.prototype, "_handleBorderChange", null);
|
|
29952
|
+
|
|
29953
|
+
var css_248z$b = css`:host{display:table-row;width:100%}`;
|
|
29954
|
+
|
|
29955
|
+
/**
|
|
29956
|
+
* @summary Table row organizes and groups table cells or header cells into a single horizontal line within the table.
|
|
29957
|
+
*
|
|
29958
|
+
* @slot - Insert any table cell or header elements to be displayed as part of this row.
|
|
29959
|
+
*/
|
|
29960
|
+
class SgdsTableRow extends SgdsElement {
|
|
29961
|
+
connectedCallback() {
|
|
29962
|
+
super.connectedCallback();
|
|
29963
|
+
this.setAttribute("role", "row");
|
|
29964
|
+
}
|
|
29965
|
+
render() {
|
|
29966
|
+
return html$1 `<slot class="table-row"></slot>`;
|
|
29967
|
+
}
|
|
29968
|
+
}
|
|
29969
|
+
SgdsTableRow.styles = [...SgdsElement.styles, css_248z$b];
|
|
29970
|
+
|
|
29971
|
+
var css_248z$a = css`:host{border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted);display:table-cell;padding:var(--sgds-padding-lg)}`;
|
|
29972
|
+
|
|
29973
|
+
/**
|
|
29974
|
+
* @summary Table cell is used for presenting individual data values, interactive elements, or custom content within a table row.
|
|
29975
|
+
*
|
|
29976
|
+
* @slot - Insert any elements to be rendered as the cell’s content.
|
|
29977
|
+
*/
|
|
29978
|
+
class SgdsTableCell extends SgdsElement {
|
|
29979
|
+
connectedCallback() {
|
|
29980
|
+
super.connectedCallback();
|
|
29981
|
+
this.setAttribute("role", "cell");
|
|
29982
|
+
}
|
|
29983
|
+
render() {
|
|
29984
|
+
return html$1 ` <slot class="table-cell"></slot> `;
|
|
29985
|
+
}
|
|
29986
|
+
}
|
|
29987
|
+
SgdsTableCell.styles = [...SgdsElement.styles, css_248z$a];
|
|
29911
29988
|
|
|
29912
29989
|
register("sgds-table", SgdsTable);
|
|
29990
|
+
register("sgds-table-head", SgdsTableHead);
|
|
29991
|
+
register("sgds-table-row", SgdsTableRow);
|
|
29992
|
+
register("sgds-table-cell", SgdsTableCell);
|
|
29913
29993
|
|
|
29914
29994
|
var css_248z$9 = 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}`;
|
|
29915
29995
|
|
|
@@ -30180,7 +30260,7 @@
|
|
|
30180
30260
|
|
|
30181
30261
|
register("sgds-textarea", SgdsTextarea);
|
|
30182
30262
|
|
|
30183
|
-
var css_248z$8 = 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 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}`;
|
|
30263
|
+
var css_248z$8 = 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}`;
|
|
30184
30264
|
|
|
30185
30265
|
/**
|
|
30186
30266
|
* @summary Toast allows you to convey quick messaging notifications to the user.
|
|
@@ -31400,10 +31480,11 @@
|
|
|
31400
31480
|
|
|
31401
31481
|
customElements.define("sgds-table-of-contents", SgdsTableOfContents);
|
|
31402
31482
|
|
|
31403
|
-
var css_248z$4 = css`:host{display:block;position:sticky;top:0;z-index:1000}nav{background-color:var(--sgds-surface-default);border-bottom:var(--sgds-border-width-1) solid var(--sgds-border-color-muted)}
|
|
31483
|
+
var css_248z$4 = css`:host{display:block;position:sticky;top:0;z-index:1000}nav{background-color:var(--sgds-surface-default);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-default);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}}`;
|
|
31404
31484
|
|
|
31405
31485
|
var css_248z$3 = 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}}`;
|
|
31406
31486
|
|
|
31487
|
+
const VALID_KEYS = ["Enter", " "];
|
|
31407
31488
|
/**
|
|
31408
31489
|
* @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.
|
|
31409
31490
|
*
|
|
@@ -31420,40 +31501,34 @@
|
|
|
31420
31501
|
class SgdsSubnav extends SgdsElement {
|
|
31421
31502
|
constructor() {
|
|
31422
31503
|
super(...arguments);
|
|
31423
|
-
this.isCollapsed =
|
|
31504
|
+
this.isCollapsed = false;
|
|
31424
31505
|
this.isMenuOpen = false;
|
|
31425
|
-
this._handleResize = () => {
|
|
31506
|
+
this._handleResize = async () => {
|
|
31426
31507
|
this.isCollapsed = window.innerWidth < LG_BREAKPOINT;
|
|
31508
|
+
await this.updateComplete;
|
|
31427
31509
|
if (!this.isCollapsed) {
|
|
31428
31510
|
this.isMenuOpen = false;
|
|
31429
31511
|
}
|
|
31430
31512
|
this._updateMobileLayout();
|
|
31431
31513
|
};
|
|
31432
31514
|
this._updateMobileLayout = () => {
|
|
31433
|
-
|
|
31434
|
-
if (!this.nav || !this.subnav || !this.mobileActions || !this.mobileNav)
|
|
31515
|
+
if (!this.nav || !this.headerContainer || !this.mobileActions || !this.mobileNav)
|
|
31435
31516
|
return;
|
|
31436
|
-
const actionsSlot = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot[name="actions"]');
|
|
31437
31517
|
if (this.isCollapsed) {
|
|
31438
|
-
const subnavHeight = this.nav.clientHeight;
|
|
31439
31518
|
const { top: subnavTop } = this.nav.getBoundingClientRect();
|
|
31440
|
-
const headerHeight = this.
|
|
31519
|
+
const headerHeight = this.headerContainer.clientHeight;
|
|
31441
31520
|
const actionsButtonHeight = this.mobileActions.clientHeight;
|
|
31442
|
-
const offset =
|
|
31521
|
+
const offset = window.innerWidth >= MD_BREAKPOINT && window.innerWidth < LG_BREAKPOINT
|
|
31522
|
+
? subnavTop + headerHeight
|
|
31523
|
+
: subnavTop + headerHeight + actionsButtonHeight;
|
|
31443
31524
|
this.mobileNav.style.maxHeight = `calc(100dvh - ${offset}px)`;
|
|
31444
|
-
this.style.minHeight = `${
|
|
31445
|
-
|
|
31446
|
-
const buttons = actionsSlot.assignedElements({ flatten: true });
|
|
31447
|
-
buttons.forEach(el => el.setAttribute("fullWidth", "true"));
|
|
31448
|
-
}
|
|
31525
|
+
this.style.minHeight = `${this.nav.clientHeight}px`;
|
|
31526
|
+
this.nav.style.position = "absolute";
|
|
31449
31527
|
}
|
|
31450
31528
|
else {
|
|
31451
31529
|
this.mobileNav.style.maxHeight = "none";
|
|
31452
31530
|
this.style.minHeight = "auto";
|
|
31453
|
-
|
|
31454
|
-
const buttons = actionsSlot.assignedElements({ flatten: true });
|
|
31455
|
-
buttons.forEach(el => el.removeAttribute("isCollapsed"));
|
|
31456
|
-
}
|
|
31531
|
+
this.nav.style.position = "relative";
|
|
31457
31532
|
}
|
|
31458
31533
|
};
|
|
31459
31534
|
this._toggleMenu = () => {
|
|
@@ -31470,38 +31545,29 @@
|
|
|
31470
31545
|
}
|
|
31471
31546
|
connectedCallback() {
|
|
31472
31547
|
super.connectedCallback();
|
|
31473
|
-
this._handleResize();
|
|
31548
|
+
// this._handleResize();
|
|
31474
31549
|
window.addEventListener("resize", this._handleResize);
|
|
31475
|
-
window.addEventListener("click", (event) => this._handleClickOutOfElement(event, this.
|
|
31550
|
+
window.addEventListener("click", (event) => this._handleClickOutOfElement(event, this.navGroup));
|
|
31476
31551
|
}
|
|
31477
31552
|
disconnectedCallback() {
|
|
31478
31553
|
super.disconnectedCallback();
|
|
31479
31554
|
window.removeEventListener("resize", this._handleResize);
|
|
31480
|
-
window.removeEventListener("click", (event) => this._handleClickOutOfElement(event, this.
|
|
31555
|
+
window.removeEventListener("click", (event) => this._handleClickOutOfElement(event, this.navGroup));
|
|
31481
31556
|
}
|
|
31482
31557
|
firstUpdated() {
|
|
31483
|
-
|
|
31484
|
-
this._updateMobileLayout();
|
|
31485
|
-
});
|
|
31486
|
-
}
|
|
31487
|
-
_handleSlotChange(e) {
|
|
31488
|
-
const childElements = e.target.assignedElements({ flatten: true });
|
|
31489
|
-
if (this.isCollapsed) {
|
|
31490
|
-
childElements.forEach(element => {
|
|
31491
|
-
element.setAttribute("isCollapsed", `${this.isCollapsed}`);
|
|
31492
|
-
});
|
|
31493
|
-
}
|
|
31494
|
-
else {
|
|
31495
|
-
childElements.forEach(element => {
|
|
31496
|
-
element.removeAttribute("isCollapsed");
|
|
31497
|
-
});
|
|
31498
|
-
}
|
|
31558
|
+
this._handleResize();
|
|
31499
31559
|
}
|
|
31500
31560
|
_handleClickOutOfElement(e, self) {
|
|
31501
31561
|
if (!e.composedPath().includes(self) && !e.composedPath().includes(this.toggler)) {
|
|
31502
31562
|
this.hide();
|
|
31503
31563
|
}
|
|
31504
31564
|
}
|
|
31565
|
+
async _onKeyboardToggle(event) {
|
|
31566
|
+
if (!VALID_KEYS.includes(event.key))
|
|
31567
|
+
return;
|
|
31568
|
+
event.preventDefault();
|
|
31569
|
+
this._toggleMenu();
|
|
31570
|
+
}
|
|
31505
31571
|
/** Shows the menu. For when subnav is in the collapsed form */
|
|
31506
31572
|
async show() {
|
|
31507
31573
|
if (this.isMenuOpen) {
|
|
@@ -31526,10 +31592,11 @@
|
|
|
31526
31592
|
return;
|
|
31527
31593
|
}
|
|
31528
31594
|
await stopAnimations(this.mobileNav);
|
|
31529
|
-
this.
|
|
31595
|
+
if (this.isCollapsed) {
|
|
31596
|
+
this.mobileNav.style.display = "flex";
|
|
31597
|
+
}
|
|
31530
31598
|
const { keyframes, options } = getAnimation(this, "subnav.show");
|
|
31531
31599
|
await animateTo(this.mobileNav, shimKeyframesHeightAuto(keyframes, this.mobileNav.scrollHeight), options);
|
|
31532
|
-
// this.mobileNav.style.height = "auto";
|
|
31533
31600
|
this.emit("sgds-after-show");
|
|
31534
31601
|
}
|
|
31535
31602
|
async _animateToHide() {
|
|
@@ -31541,8 +31608,9 @@
|
|
|
31541
31608
|
await stopAnimations(this.mobileNav);
|
|
31542
31609
|
const { keyframes, options } = getAnimation(this, "subnav.hide");
|
|
31543
31610
|
await animateTo(this.mobileNav, shimKeyframesHeightAuto(keyframes, this.mobileNav.scrollHeight), options);
|
|
31544
|
-
this.
|
|
31545
|
-
|
|
31611
|
+
if (this.isCollapsed) {
|
|
31612
|
+
this.mobileNav.style.display = "none";
|
|
31613
|
+
}
|
|
31546
31614
|
this.emit("sgds-after-hide");
|
|
31547
31615
|
}
|
|
31548
31616
|
async handleOpenChange() {
|
|
@@ -31555,61 +31623,41 @@
|
|
|
31555
31623
|
this._animateToHide();
|
|
31556
31624
|
}
|
|
31557
31625
|
}
|
|
31626
|
+
async handleCollapsedChange() {
|
|
31627
|
+
await this.updateComplete;
|
|
31628
|
+
this.mobileNav.style.display = this.isCollapsed ? "none" : "flex";
|
|
31629
|
+
}
|
|
31558
31630
|
render() {
|
|
31559
|
-
const isHydrated = this.hasUpdated;
|
|
31560
31631
|
return html$1 `
|
|
31561
|
-
<nav
|
|
31562
|
-
class=${classMap({
|
|
31563
|
-
mobile: this.isCollapsed
|
|
31564
|
-
})}
|
|
31565
|
-
aria-label="Sub navigation"
|
|
31566
|
-
>
|
|
31632
|
+
<nav aria-label="Sub navigation">
|
|
31567
31633
|
<div
|
|
31568
31634
|
class=${classMap({
|
|
31569
|
-
"sgds-container":
|
|
31635
|
+
"sgds-container": true,
|
|
31570
31636
|
subnav: true,
|
|
31571
|
-
mobile: this.isCollapsed,
|
|
31572
31637
|
collapsed: !this.isMenuOpen
|
|
31573
31638
|
})}
|
|
31574
31639
|
>
|
|
31575
|
-
<
|
|
31576
|
-
|
|
31577
|
-
|
|
31578
|
-
|
|
31579
|
-
|
|
31580
|
-
|
|
31581
|
-
|
|
31582
|
-
|
|
31583
|
-
|
|
31584
|
-
|
|
31585
|
-
|
|
31586
|
-
|
|
31587
|
-
|
|
31588
|
-
|
|
31589
|
-
|
|
31590
|
-
|
|
31591
|
-
|
|
31592
|
-
|
|
31593
|
-
|
|
31594
|
-
|
|
31640
|
+
<div class="header-container">
|
|
31641
|
+
<slot name="header"></slot>
|
|
31642
|
+
<sgds-icon
|
|
31643
|
+
class="subnav-toggler"
|
|
31644
|
+
name="chevron-down"
|
|
31645
|
+
tabindex="0"
|
|
31646
|
+
@click=${this._toggleMenu}
|
|
31647
|
+
@keydown=${this._onKeyboardToggle}
|
|
31648
|
+
aria-label="Toggle sub navigation"
|
|
31649
|
+
aria-expanded=${this.isMenuOpen}
|
|
31650
|
+
></sgds-icon>
|
|
31651
|
+
</div>
|
|
31652
|
+
<div class="subnav-nav-group">
|
|
31653
|
+
<div class="subnav-nav">
|
|
31654
|
+
<slot></slot>
|
|
31655
|
+
</div>
|
|
31656
|
+
<div class="subnav-actions">
|
|
31657
|
+
<slot name="actions"></slot>
|
|
31658
|
+
</div>
|
|
31659
|
+
</div>
|
|
31595
31660
|
</div>
|
|
31596
|
-
${this.isCollapsed
|
|
31597
|
-
? html$1 `
|
|
31598
|
-
<div class="subnav-dropdown">
|
|
31599
|
-
<div
|
|
31600
|
-
class=${classMap({
|
|
31601
|
-
"subnav-nav-mobile": true,
|
|
31602
|
-
hidden: !this.isMenuOpen && !isHydrated
|
|
31603
|
-
})}
|
|
31604
|
-
>
|
|
31605
|
-
<slot @slotchange="${this._handleSlotChange}"></slot>
|
|
31606
|
-
</div>
|
|
31607
|
-
<div class="subnav-actions-mobile">
|
|
31608
|
-
<slot name="actions"></slot>
|
|
31609
|
-
</div>
|
|
31610
|
-
</div>
|
|
31611
|
-
`
|
|
31612
|
-
: nothing}
|
|
31613
31661
|
</nav>
|
|
31614
31662
|
`;
|
|
31615
31663
|
}
|
|
@@ -31623,19 +31671,19 @@
|
|
|
31623
31671
|
query("nav")
|
|
31624
31672
|
], SgdsSubnav.prototype, "nav", void 0);
|
|
31625
31673
|
__decorate([
|
|
31626
|
-
query(".subnav")
|
|
31627
|
-
], SgdsSubnav.prototype, "subnav", void 0);
|
|
31628
|
-
__decorate([
|
|
31629
|
-
query(".subnav-nav-mobile")
|
|
31674
|
+
query(".subnav-nav")
|
|
31630
31675
|
], SgdsSubnav.prototype, "mobileNav", void 0);
|
|
31676
|
+
__decorate([
|
|
31677
|
+
query(".header-container")
|
|
31678
|
+
], SgdsSubnav.prototype, "headerContainer", void 0);
|
|
31631
31679
|
__decorate([
|
|
31632
31680
|
query(".subnav-toggler")
|
|
31633
31681
|
], SgdsSubnav.prototype, "toggler", void 0);
|
|
31634
31682
|
__decorate([
|
|
31635
|
-
query(".subnav-
|
|
31636
|
-
], SgdsSubnav.prototype, "
|
|
31683
|
+
query(".subnav-nav-group")
|
|
31684
|
+
], SgdsSubnav.prototype, "navGroup", void 0);
|
|
31637
31685
|
__decorate([
|
|
31638
|
-
query(".subnav-actions
|
|
31686
|
+
query(".subnav-actions")
|
|
31639
31687
|
], SgdsSubnav.prototype, "mobileActions", void 0);
|
|
31640
31688
|
__decorate([
|
|
31641
31689
|
state()
|
|
@@ -31646,6 +31694,9 @@
|
|
|
31646
31694
|
__decorate([
|
|
31647
31695
|
watch("isMenuOpen", { waitUntilFirstUpdate: true })
|
|
31648
31696
|
], SgdsSubnav.prototype, "handleOpenChange", null);
|
|
31697
|
+
__decorate([
|
|
31698
|
+
watch("isCollapsed", { waitUntilFirstUpdate: true })
|
|
31699
|
+
], SgdsSubnav.prototype, "handleCollapsedChange", null);
|
|
31649
31700
|
setDefaultAnimation("subnav.show", {
|
|
31650
31701
|
keyframes: [
|
|
31651
31702
|
{ height: "0", opacity: "0" },
|
|
@@ -31661,7 +31712,7 @@
|
|
|
31661
31712
|
options: { duration: 200, easing: "ease-in-out" }
|
|
31662
31713
|
});
|
|
31663
31714
|
|
|
31664
|
-
var css_248z$2 = css`:host(:not([disabled])[active]:not([active=false])) ::slotted(*){
|
|
31715
|
+
var css_248z$2 = css`:host(:not([disabled])[active]:not([active=false])) ::slotted(*){background-color:var(--sgds-bg-translucent-subtle);border-bottom:none}::slotted(*){--sgds-font-size-2:var(--sgds-font-size-1);--sgds-link-color-default:var(--sgds-color-default);box-sizing:border-box;color:var(--sgds-link-color-default,var(--sgds-color-default));cursor:pointer;display:flex;font-size:var(--sgds-font-size-2,var(--sgds-font-size-1));gap:var(--sgds-gap-2-xs);padding:var(--sgds-padding-sm) var(--sgds-padding-lg);text-decoration:none!important;white-space:nowrap}:host(:not([disabled])[active]:not([active=false])) ::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)}@media screen and (min-width:1024px){:host(:not([disabled])[active]:not([active=false])) ::slotted(*){--sgds-link-color-default:var(--sgds-primary-color-default);background-color:inherit;border-bottom:var(--sgds-border-width-2) solid var(--sgds-primary-border-color-default);color:var(--sgds-link-color-default,var(--sgds-primary-color-default))}::slotted(*){padding:var(--sgds-padding-lg) var(--sgds-padding-none)}}`;
|
|
31665
31716
|
|
|
31666
31717
|
/**
|
|
31667
31718
|
* @slot default - slot for SgdsSubnavItem element.
|
|
@@ -31670,7 +31721,7 @@
|
|
|
31670
31721
|
class SgdsSubnavItem extends SgdsElement {
|
|
31671
31722
|
constructor() {
|
|
31672
31723
|
super(...arguments);
|
|
31673
|
-
/** when true, sets the active stylings of
|
|
31724
|
+
/** when true, sets the active stylings of the navigation item */
|
|
31674
31725
|
this.active = false;
|
|
31675
31726
|
/** Disables the SgdsSubnavItem */
|
|
31676
31727
|
this.disabled = false;
|
|
@@ -31713,7 +31764,7 @@
|
|
|
31713
31764
|
}
|
|
31714
31765
|
SgdsSubnavItem.styles = [...SgdsElement.styles, css_248z$2];
|
|
31715
31766
|
__decorate([
|
|
31716
|
-
property({ type: Boolean })
|
|
31767
|
+
property({ type: Boolean, reflect: true })
|
|
31717
31768
|
], SgdsSubnavItem.prototype, "active", void 0);
|
|
31718
31769
|
__decorate([
|
|
31719
31770
|
property({ type: Boolean, reflect: true })
|