@govtechsg/sgds-web-component 0.0.5 → 0.0.7

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/index.js CHANGED
@@ -27068,8 +27068,10 @@ a[target=_blank]:after {
27068
27068
  display: flex;
27069
27069
  align-self: center;
27070
27070
  gap: 1rem;
27071
+ padding-left: 1rem;
27072
+ padding-right: 1rem;
27071
27073
  height: 100%;
27072
- margin-left: 1rem;
27074
+ width: 100%;
27073
27075
  }
27074
27076
 
27075
27077
  .navbar-toggler {
@@ -27084,6 +27086,17 @@ slot[name=non-collapsible] {
27084
27086
  display: flex;
27085
27087
  gap: 1rem;
27086
27088
  align-items: center;
27089
+ }
27090
+
27091
+ .slot-end {
27092
+ display: flex;
27093
+ margin-left: auto;
27094
+ align-items: stretch;
27095
+ gap: 1rem;
27096
+ }
27097
+
27098
+ .slot-end::slotted(:not(sgds-mainnav-item)) {
27099
+ align-self: center;
27087
27100
  }`;
27088
27101
 
27089
27102
  var top = 'top';
@@ -34220,7 +34233,19 @@ let SgdsMainnav = class SgdsMainnav extends SgdsElement {
34220
34233
  aria-expanded="${this.expanded}"
34221
34234
  aria-label="Toggle navigation"
34222
34235
  >
34223
- <span class="navbar-toggler-icon"></span>
34236
+ <svg
34237
+ xmlns="http://www.w3.org/2000/svg"
34238
+ width="30"
34239
+ height="30"
34240
+ fill="currentColor"
34241
+ class="bi bi-list"
34242
+ viewBox="0 0 16 16"
34243
+ >
34244
+ <path
34245
+ fill-rule="evenodd"
34246
+ d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"
34247
+ />
34248
+ </svg>
34224
34249
  </button>
34225
34250
  <div
34226
34251
  class=${this.mode === "default" ? collapseClass : offcanvasClass}
@@ -34231,6 +34256,7 @@ let SgdsMainnav = class SgdsMainnav extends SgdsElement {
34231
34256
  >
34232
34257
  <ul class="navbar-nav">
34233
34258
  <slot></slot>
34259
+ <slot name="end" class=${o$2({ "slot-end": !this.breakpointReached })}></slot>
34234
34260
  </ul>
34235
34261
  </div>
34236
34262
  </nav>