@redvars/peacock 3.6.1 → 3.6.2

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.
Files changed (71) hide show
  1. package/dist/assets/styles.css +1 -1
  2. package/dist/assets/styles.css.map +1 -1
  3. package/dist/assets/tokens.css +1 -1
  4. package/dist/assets/tokens.css.map +1 -1
  5. package/dist/{button-colors-Ccys3hvS.js → button-colors-AvGh22Zn.js} +18 -18
  6. package/dist/{button-colors-Ccys3hvS.js.map → button-colors-AvGh22Zn.js.map} +1 -1
  7. package/dist/button-group.js +2 -2
  8. package/dist/button.js +2 -3
  9. package/dist/button.js.map +1 -1
  10. package/dist/card.js +1 -1
  11. package/dist/card.js.map +1 -1
  12. package/dist/code-highlighter.js +34 -9
  13. package/dist/code-highlighter.js.map +1 -1
  14. package/dist/custom-elements-jsdocs.json +661 -73
  15. package/dist/custom-elements.json +718 -80
  16. package/dist/flow-designer.js +1402 -8
  17. package/dist/flow-designer.js.map +1 -1
  18. package/dist/icon-CueRR7wx.js +260 -0
  19. package/dist/icon-CueRR7wx.js.map +1 -0
  20. package/dist/{icon-button-CK1ZuE-2.js → icon-button-ohxHhy4t.js} +2 -2
  21. package/dist/{icon-button-CK1ZuE-2.js.map → icon-button-ohxHhy4t.js.map} +1 -1
  22. package/dist/index.js +9 -8
  23. package/dist/index.js.map +1 -1
  24. package/dist/modal.js +11 -11
  25. package/dist/modal.js.map +1 -1
  26. package/dist/{navigation-rail-DTTkqohi.js → navigation-rail-CD7IrqbN.js} +247 -123
  27. package/dist/navigation-rail-CD7IrqbN.js.map +1 -0
  28. package/dist/peacock-loader.js +30 -30
  29. package/dist/peacock-loader.js.map +1 -1
  30. package/dist/{popover-NC7b1lTq.js → popover-DUPmMVWS.js} +9 -4
  31. package/dist/{popover-NC7b1lTq.js.map → popover-DUPmMVWS.js.map} +1 -1
  32. package/dist/popover.js +1 -1
  33. package/dist/src/__controllers/floating-controller.d.ts +1 -0
  34. package/dist/src/avatar/avatar.d.ts +1 -1
  35. package/dist/src/breadcrumb/breadcrumb/breadcrumb.d.ts +0 -1
  36. package/dist/src/chip/chip/chip.d.ts +14 -11
  37. package/dist/src/chip/chip-set/chip-set.d.ts +20 -0
  38. package/dist/src/chip/chip-set/index.d.ts +1 -0
  39. package/dist/src/code-highlighter/code-highlighter.d.ts +4 -0
  40. package/dist/src/index.d.ts +1 -0
  41. package/dist/src/menu/menu/menu.d.ts +1 -0
  42. package/dist/src/modal/modal.d.ts +1 -1
  43. package/dist/test/chip.test.d.ts +1 -0
  44. package/dist/tsconfig.tsbuildinfo +1 -1
  45. package/package.json +1 -1
  46. package/readme.md +2 -2
  47. package/scss/styles.scss +3 -3
  48. package/scss/tokens.css +1 -1
  49. package/src/__controllers/floating-controller.ts +9 -3
  50. package/src/avatar/avatar.scss +4 -4
  51. package/src/avatar/avatar.ts +1 -1
  52. package/src/breadcrumb/breadcrumb/breadcrumb.ts +0 -1
  53. package/src/button/button/button.scss +17 -17
  54. package/src/button/button/button.ts +1 -2
  55. package/src/card/card.ts +1 -1
  56. package/src/chip/chip/chip.scss +119 -45
  57. package/src/chip/chip/chip.ts +97 -38
  58. package/src/chip/chip-set/chip-set.scss +13 -0
  59. package/src/chip/chip-set/chip-set.ts +25 -0
  60. package/src/chip/chip-set/index.ts +1 -0
  61. package/src/code-highlighter/code-highlighter.ts +33 -6
  62. package/src/field/field.scss +1 -1
  63. package/src/index.ts +1 -0
  64. package/src/menu/menu/menu.ts +11 -0
  65. package/src/modal/modal.scss +10 -10
  66. package/src/modal/modal.ts +1 -1
  67. package/src/peacock-loader.ts +24 -22
  68. package/dist/flow-designer-DvTUrDp5.js +0 -1656
  69. package/dist/flow-designer-DvTUrDp5.js.map +0 -1
  70. package/dist/navigation-rail-DTTkqohi.js.map +0 -1
  71. package/src/chip/chip/chip-colors.scss +0 -31
@@ -5,13 +5,13 @@ import { r } from './state-DwbEjqVk.js';
5
5
  import { o as observerSlotChangesWithCallback } from './observe-slot-change-BGJfgg2E.js';
6
6
  import { a as e, e as e$2 } from './query-QBcUV-L_.js';
7
7
  import { B as BaseHyperlinkMixin, t as throttle } from './BaseHyperlinkMixin-BNuwbiEf.js';
8
- import { o as o$1 } from './style-map-DVmWOuYy.js';
8
+ import { B as BaseButton, o as o$1, s as spread, a as BaseButtonMixin } from './BaseButton-BNFAYn-S.js';
9
+ import { o as o$2 } from './style-map-DVmWOuYy.js';
9
10
  import { r as redispatchEvent, i as isActivationClick, d as dispatchActivationClick } from './dispatch-event-utils-CuEqjlPT.js';
10
- import { s as spread, o as o$2, a as BaseButtonMixin } from './BaseButton-BNFAYn-S.js';
11
11
  import { B as BaseInput } from './BaseInput-14YmcfK7.js';
12
- import { F as FloatingController } from './popover-NC7b1lTq.js';
12
+ import { F as FloatingController } from './popover-DUPmMVWS.js';
13
13
  import { i as isDarkMode, o as observeThemeChange } from './is-dark-mode-DOcaw4Yq.js';
14
- import { f as fetchSVG, s as sanitizeSvg, o as o$3 } from './flow-designer-DvTUrDp5.js';
14
+ import { f as fetchSVG, s as sanitizeSvg, o as o$3 } from './icon-CueRR7wx.js';
15
15
  import { o as o$4 } from './unsafe-html-BsGUjx94.js';
16
16
 
17
17
  /**
@@ -32,9 +32,9 @@ var css_248z$U = i`* {
32
32
  display: inline-block;
33
33
  pointer-events: none;
34
34
  --avatar-size: 2rem;
35
- --avatar-background-color: var(--color-primary);
35
+ --avatar-container-color: var(--color-primary);
36
36
  --avatar-text-color: var(--color-on-primary);
37
- --avatar-border-radius: var(--global-avatar-border-radius);
37
+ --avatar-container-shape: var(--global-avatar-container-shape);
38
38
  }
39
39
 
40
40
  .avatar-container {
@@ -45,7 +45,7 @@ var css_248z$U = i`* {
45
45
  }
46
46
 
47
47
  .avatar {
48
- border-radius: var(--avatar-border-radius);
48
+ border-radius: var(--avatar-container-shape);
49
49
  display: flex;
50
50
  justify-content: center;
51
51
  align-items: center;
@@ -57,7 +57,7 @@ var css_248z$U = i`* {
57
57
  font-weight: var(--typography-body-large-emphasized-font-weight) !important;
58
58
  line-height: var(--typography-body-large-emphasized-line-height) !important;
59
59
  letter-spacing: var(--typography-body-large-emphasized-letter-spacing) !important;
60
- background-color: var(--avatar-background-color);
60
+ background-color: var(--avatar-container-color);
61
61
  font-size: calc(var(--avatar-size) * 0.5) !important;
62
62
  }
63
63
  .avatar .image {
@@ -74,7 +74,7 @@ var css_248z$U = i`* {
74
74
  * @summary The Avatar component is used to represent user, and displays the profile picture, initials or fallback icon.
75
75
  *
76
76
  * @cssprop --avatar-border-radius - Controls the border radius of the avatar.
77
- * @cssprop --avatar-background-color - Controls the color of the avatar.
77
+ * @cssprop --avatar-container-color - Controls the color of the avatar container.
78
78
  * @cssprop --avatar-size - Controls the size of the avatar.
79
79
  * @cssprop --avatar-text-color - Controls the color of the text inside the avatar.
80
80
  *
@@ -2238,24 +2238,32 @@ var css_248z$H = i`* {
2238
2238
  display: inline-block;
2239
2239
  --chip-container-color: var(--color-surface);
2240
2240
  --chip-label-text-color: var(--color-on-surface);
2241
- --chip-outline-color: var(--color-outline);
2241
+ --chip-outline-color: var(--color-outline-variant);
2242
2242
  --chip-container-shape: var(--shape-corner-small);
2243
+ --chip-container-padding: 1rem;
2244
+ /* 8dp */
2243
2245
  }
2244
2246
 
2245
- :host-context([data-theme=dark]) {
2246
- --chip-hover-color: var(--color-primary-30);
2247
+ /*
2248
+ * Reset native button/link styles
2249
+ */
2250
+ .button {
2251
+ background: transparent;
2252
+ border: none;
2253
+ appearance: none;
2254
+ margin: 0;
2255
+ padding: 0;
2256
+ outline: none;
2257
+ text-decoration: none;
2247
2258
  }
2248
2259
 
2249
2260
  .chip {
2250
2261
  position: relative;
2251
2262
  display: inline-flex;
2252
- flex-direction: column;
2253
2263
  align-items: center;
2254
- justify-content: center;
2255
2264
  height: var(--chip-height, var(--_chip-height, 2rem));
2256
- padding: 0 var(--_container-padding, 1rem);
2257
2265
  width: 100%;
2258
- border-radius: var(--chip-container-shape);
2266
+ cursor: pointer;
2259
2267
  }
2260
2268
  .chip .tag-content {
2261
2269
  position: relative;
@@ -2264,41 +2272,74 @@ var css_248z$H = i`* {
2264
2272
  text-overflow: ellipsis;
2265
2273
  white-space: nowrap;
2266
2274
  max-width: 100%;
2275
+ height: 100%;
2267
2276
  display: flex;
2268
2277
  align-items: center;
2269
2278
  justify-content: center;
2270
- color: var(--chip-label-text-color);
2271
- font-family: var(--typography-label-small-font-family) !important;
2272
- font-size: var(--typography-label-small-font-size) !important;
2273
- font-weight: var(--typography-label-small-font-weight) !important;
2274
- line-height: var(--typography-label-small-line-height) !important;
2275
- letter-spacing: var(--typography-label-small-letter-spacing) !important;
2276
- gap: 0.5rem;
2279
+ padding-inline: var(--chip-container-padding);
2280
+ color: var(--_chip-text-color);
2281
+ opacity: var(--_chip-text-opacity, 1);
2282
+ font-family: var(--typography-label-large-font-family) !important;
2283
+ font-size: var(--typography-label-large-font-size) !important;
2284
+ font-weight: var(--typography-label-large-font-weight) !important;
2285
+ line-height: var(--typography-label-large-line-height) !important;
2286
+ letter-spacing: var(--typography-label-large-letter-spacing) !important;
2277
2287
  }
2278
- .chip .tag-content .tag-image {
2279
- width: 1.125rem;
2280
- height: 1.125rem;
2281
- border-radius: 100%;
2282
- background: var(--chip-hover-color);
2288
+ .chip .tag-content .label-container {
2289
+ min-width: 0;
2290
+ overflow: hidden;
2291
+ text-overflow: ellipsis;
2292
+ white-space: nowrap;
2283
2293
  }
2284
- .chip .close-btn {
2285
- border-radius: 12px;
2294
+ .chip .tag-content .close-btn {
2295
+ height: 100%;
2286
2296
  padding: 0;
2297
+ padding-inline: calc(var(--chip-container-padding) / 2);
2287
2298
  margin: 0;
2288
2299
  border: none;
2289
2300
  background: transparent;
2290
2301
  line-height: 0;
2291
2302
  cursor: pointer;
2292
- --icon-size: 1rem;
2293
2303
  }
2294
- .chip .close-btn .close-btn-icon {
2304
+ .chip .tag-content .close-btn .close-btn-icon {
2295
2305
  --icon-size: 1rem;
2306
+ --icon-color: var(--_chip-text-color);
2296
2307
  }
2297
- .chip .close-btn:hover {
2308
+ .chip .tag-content .close-btn:hover {
2298
2309
  background: var(--chip-hover-color);
2299
2310
  }
2300
- .chip .close-btn:hover .close-btn-icon {
2301
- color: var(--background);
2311
+ .chip .tag-content .icon-slot-container {
2312
+ height: 100%;
2313
+ display: flex;
2314
+ align-items: center;
2315
+ --icon-size: 1rem;
2316
+ --icon-color: var(--color-primary);
2317
+ }
2318
+ .chip .focus-ring {
2319
+ z-index: 2;
2320
+ display: block;
2321
+ --focus-ring-container-shape: var(--chip-container-shape);
2322
+ }
2323
+ .chip .ripple {
2324
+ display: block;
2325
+ border-radius: var(--chip-container-shape);
2326
+ --ripple-state-opacity: var(--_chip-state-opacity, 0);
2327
+ --ripple-pressed-color: var(--_chip-state-color);
2328
+ }
2329
+ .chip.disabled {
2330
+ cursor: not-allowed;
2331
+ }
2332
+ .chip.dismissible .tag-content {
2333
+ padding-inline-end: 0;
2334
+ }
2335
+ .chip.dismissible.actionable .tag-content {
2336
+ padding-inline-end: calc(var(--chip-container-padding) / 2);
2337
+ }
2338
+ .chip.icon-slot-has-content .tag-content, .chip.selected .tag-content {
2339
+ padding-inline-start: 0;
2340
+ }
2341
+ .chip.icon-slot-has-content .icon-slot-container, .chip.selected .icon-slot-container {
2342
+ padding-inline: calc(var(--chip-container-padding) / 2);
2302
2343
  }
2303
2344
  .chip {
2304
2345
  /**
@@ -2308,66 +2349,56 @@ var css_248z$H = i`* {
2308
2349
  .chip .background {
2309
2350
  display: block;
2310
2351
  position: absolute;
2352
+ left: 0;
2311
2353
  width: 100%;
2312
2354
  height: 100%;
2313
- border-radius: inherit;
2314
- background: var(--chip-container-color);
2355
+ border-radius: var(--chip-container-shape);
2356
+ background: var(--_chip-container-color);
2315
2357
  pointer-events: none;
2316
2358
  }
2317
2359
  .chip .outline {
2360
+ z-index: 0;
2318
2361
  display: block;
2319
2362
  position: absolute;
2363
+ left: 0;
2320
2364
  width: 100%;
2321
2365
  height: 100%;
2322
- border-radius: inherit;
2366
+ border-radius: var(--chip-container-shape);
2323
2367
  border: 1px solid var(--chip-outline-color);
2324
2368
  }
2325
2369
  .chip .elevation {
2326
2370
  --elevation-level: 0;
2327
2371
  transition-duration: 280ms;
2328
- border-radius: inherit;
2329
- }
2330
- .chip.dismissible .tag-content {
2331
- padding-inline-end: 0.25rem;
2372
+ --elevation-container-shape: var(--chip-container-shape);
2332
2373
  }
2333
- .chip.selected {
2334
- color: var(--background);
2335
- background: var(--chip-hover-color);
2336
- }
2337
- .chip.selected .close-btn-icon {
2338
- color: var(--background);
2339
- }`;
2340
2374
 
2341
- var css_248z$G = i`:host([color=red]) {
2342
- --chip-container-color: var(--color-red-container);
2343
- --chip-outline-color: var(--color-on-red-container);
2375
+ /** Color state management */
2376
+ .chip {
2377
+ --_chip-container-color: var(--chip-container-color);
2378
+ --_chip-text-color: var(--chip-label-text-color);
2379
+ --_chip-state-color: var(--_chip-text-color);
2344
2380
  }
2345
-
2346
- :host([color=green]) {
2347
- --chip-container-color: var(--color-green-container);
2348
- --chip-label-text-color: var(--color-on-green-container);
2349
- --chip-outline-color: var(--color-on-green-container);
2381
+ .chip:hover {
2382
+ --_chip-state-opacity: 0.08;
2350
2383
  }
2351
-
2352
- :host([color=blue]) {
2353
- --chip-container-color: var(--color-blue-container);
2354
- --chip-label-text-color: var(--color-on-blue-container);
2355
- --chip-outline-color: var(--color-on-blue-container);
2384
+ .chip.pressed {
2385
+ --_chip-state-opacity: 0.12;
2356
2386
  }
2357
-
2358
- :host([color=yellow]) {
2359
- --chip-container-color: var(--color-yellow-container);
2360
- --chip-label-text-color: var(--color-on-yellow-container);
2361
- --chip-outline-color: var(--color-on-yellow-container);
2387
+ .chip.selected {
2388
+ --_chip-container-color: var(--color-secondary-container);
2389
+ --_chip-text-color: var(--color-on-secondary-container);
2362
2390
  }
2363
-
2364
- :host([color=purple]) {
2365
- --chip-container-color: var(--color-purple-container);
2366
- --chip-label-text-color: var(--color-on-purple-container);
2367
- --chip-outline-color: var(--color-on-purple-container);
2391
+ .chip.disabled {
2392
+ --_chip-container-color: var(--color-on-surface);
2393
+ --_chip-container-opacity: 0.1;
2394
+ --_chip-text-color: var(--color-on-surface);
2395
+ --_chip-text-opacity: 0.38;
2396
+ }
2397
+ .chip.disabled .ripple {
2398
+ display: none;
2368
2399
  }`;
2369
2400
 
2370
- var css_248z$F = i`.tag {
2401
+ var css_248z$G = i`.tag {
2371
2402
  font-family: var(--font-family-sans) !important;
2372
2403
  }
2373
2404
 
@@ -2437,17 +2468,25 @@ var css_248z$F = i`.tag {
2437
2468
  * <wc-chip>Chip content</wc-chip>
2438
2469
  * ```
2439
2470
  */
2440
- class Chip extends i$1 {
2471
+ class Chip extends BaseButton {
2441
2472
  constructor() {
2442
2473
  super(...arguments);
2443
2474
  /** If true, the tag will have a close icon. */
2444
2475
  this.dismissible = false;
2445
- /** Tag color. */
2446
- this.color = 'default';
2447
- /** Tag value. */
2448
- this.value = '';
2449
- /** If true, the tag will be selected. */
2450
- this.selected = false;
2476
+ this._hasIconSlotContent = false;
2477
+ this._isPressed = false;
2478
+ }
2479
+ focus() {
2480
+ this.buttonElement?.focus();
2481
+ }
2482
+ blur() {
2483
+ this.buttonElement?.blur();
2484
+ }
2485
+ firstUpdated() {
2486
+ observerSlotChangesWithCallback(this.renderRoot.querySelector('slot[name="icon"]'), hasContent => {
2487
+ this._hasIconSlotContent = hasContent;
2488
+ this.requestUpdate();
2489
+ });
2451
2490
  }
2452
2491
  _dismissClickHandler(e) {
2453
2492
  e.stopPropagation();
@@ -2461,7 +2500,7 @@ class Chip extends i$1 {
2461
2500
  }
2462
2501
  _renderCloseButton() {
2463
2502
  if (!this.dismissible)
2464
- return null;
2503
+ return A;
2465
2504
  return b `
2466
2505
  <button
2467
2506
  class="close-btn"
@@ -2472,55 +2511,133 @@ class Chip extends i$1 {
2472
2511
  </button>
2473
2512
  `;
2474
2513
  }
2475
- _renderImage() {
2476
- if (this.imageSrc)
2477
- return b `<img
2478
- src=${this.imageSrc}
2479
- class="tag-image"
2480
- alt="Tag Logo"
2481
- />`;
2482
- return A;
2483
- }
2484
2514
  render() {
2485
- const classes = {
2515
+ const cssClasses = {
2486
2516
  chip: true,
2517
+ button: true,
2487
2518
  selected: this.selected,
2488
2519
  dismissible: this.dismissible,
2489
- [`color-${this.color}`]: true,
2520
+ pressed: this._isPressed,
2521
+ 'icon-slot-has-content': this._hasIconSlotContent,
2490
2522
  };
2523
+ if (!this.__isLink()) {
2524
+ return b `<button
2525
+ class=${e$1(cssClasses)}
2526
+ id="button"
2527
+ type=${this.htmlType}
2528
+ @click=${this.__dispatchClickWithThrottle}
2529
+ @mousedown=${this.__handlePress}
2530
+ @keydown=${this.__handlePress}
2531
+ @keyup=${this.__handlePress}
2532
+
2533
+ aria-describedby=${o$1(this.softDisabled ? BaseButton.DISABLED_REASON_ID : undefined)}
2534
+ ?aria-disabled=${this.softDisabled}
2535
+
2536
+ ?disabled=${this.disabled}
2537
+ ${spread(this.configAria)}
2538
+ >
2539
+ ${this.renderChipContent()}
2540
+ </button>`;
2541
+ }
2542
+ return b `<a
2543
+ class=${e$1(cssClasses)}
2544
+ id="button"
2545
+ href=${this.href}
2546
+ target=${this.target}
2547
+ tabindex=${this.disabled ? '-1' : '0'}
2548
+
2549
+ @click=${this.__dispatchClick}
2550
+ @mousedown=${this.__handlePress}
2551
+ @keydown=${this.__handlePress}
2552
+ @keyup=${this.__handlePress}
2553
+ role="button"
2554
+
2555
+ aria-describedby=${o$1(this.softDisabled ? BaseButton.DISABLED_REASON_ID : undefined)}
2556
+ ?aria-disabled=${this.softDisabled}
2557
+
2558
+ ${spread(this.configAria)}
2559
+ >
2560
+ ${this.renderChipContent()}
2561
+ </a>`;
2562
+ }
2563
+ renderChipContent() {
2491
2564
  return b `
2492
- <div class="${e$1(classes)}">
2493
- <wc-elevation class="elevation"></wc-elevation>
2494
- <div class="background"></div>
2495
- <div class="outline"></div>
2565
+ <wc-focus-ring class="focus-ring" for="button"></wc-focus-ring>
2566
+ <wc-elevation class="elevation"></wc-elevation>
2567
+ <div class="background"></div>
2568
+ <div class="outline"></div>
2569
+ <wc-ripple class="ripple"></wc-ripple>
2570
+ <div class="tag-content">
2496
2571
 
2497
- <div class="tag-content">
2498
- <slot name="icon"></slot>
2499
- <slot></slot>
2500
- ${this._renderCloseButton()}
2572
+ <div class="icon-slot-container">
2573
+ ${this.selected
2574
+ ? b `<wc-icon class="selected-icon" name="check"></wc-icon>`
2575
+ : b `<slot name="icon"></slot>`}
2501
2576
  </div>
2577
+ <div class="label-container">
2578
+ <slot></slot>
2579
+ </div>
2580
+
2581
+ ${this._renderCloseButton()}
2502
2582
  </div>
2503
2583
  `;
2504
2584
  }
2505
2585
  }
2506
2586
  // Define styles (Lit handles Scoping via Shadow DOM by default)
2507
2587
  // You would typically import your tag.scss.js here or use the css tag
2508
- Chip.styles = [css_248z$H, css_248z$G, css_248z$F];
2588
+ Chip.styles = [css_248z$H, css_248z$G];
2509
2589
  __decorate([
2510
2590
  n({ type: Boolean })
2511
2591
  ], Chip.prototype, "dismissible", void 0);
2512
2592
  __decorate([
2513
- n({ type: String, reflect: true })
2514
- ], Chip.prototype, "color", void 0);
2515
- __decorate([
2516
- n({ type: String, reflect: true })
2517
- ], Chip.prototype, "value", void 0);
2593
+ n({ reflect: true })
2594
+ ], Chip.prototype, "configAria", void 0);
2518
2595
  __decorate([
2519
- n({ type: Boolean, reflect: true })
2520
- ], Chip.prototype, "selected", void 0);
2596
+ r()
2597
+ ], Chip.prototype, "_hasIconSlotContent", void 0);
2521
2598
  __decorate([
2522
- n({ type: String })
2523
- ], Chip.prototype, "imageSrc", void 0);
2599
+ r()
2600
+ ], Chip.prototype, "_isPressed", void 0);
2601
+
2602
+ var css_248z$F = i`* {
2603
+ box-sizing: border-box;
2604
+ }
2605
+
2606
+ .screen-reader-only {
2607
+ display: none !important;
2608
+ }
2609
+
2610
+ :host {
2611
+ display: block;
2612
+ }
2613
+
2614
+ slot {
2615
+ display: flex;
2616
+ flex-wrap: wrap;
2617
+ gap: 8px;
2618
+ }`;
2619
+
2620
+ /**
2621
+ * @label Chip Set
2622
+ * @tag wc-chip-set
2623
+ * @rawTag chip-set
2624
+ * @summary A layout container for wrapping chips.
2625
+ * @tags layout
2626
+ *
2627
+ * @example
2628
+ * ```html
2629
+ * <wc-chip-set>
2630
+ * <wc-chip>One</wc-chip>
2631
+ * <wc-chip>Two</wc-chip>
2632
+ * </wc-chip-set>
2633
+ * ```
2634
+ */
2635
+ class ChipSet extends i$1 {
2636
+ render() {
2637
+ return b `<slot></slot>`;
2638
+ }
2639
+ }
2640
+ ChipSet.styles = [css_248z$F];
2524
2641
 
2525
2642
  var css_248z$E = i`:host {
2526
2643
  display: block;
@@ -2712,7 +2829,7 @@ class LinearProgress extends BaseProgress {
2712
2829
  <div class="track track-start"></div>
2713
2830
  <div
2714
2831
  class="active-indicator"
2715
- style="${o$1({
2832
+ style="${o$2({
2716
2833
  width: `${this.__getPercentageValue()}%`,
2717
2834
  })}"
2718
2835
  ></div>
@@ -2872,7 +2989,7 @@ class CircularProgress extends BaseProgress {
2872
2989
  cx="8"
2873
2990
  cy="8"
2874
2991
  r="6"
2875
- style="${o$1({
2992
+ style="${o$2({
2876
2993
  strokeDasharray: `${circumference}`,
2877
2994
  strokeDashoffset: this.indeterminate ? undefined : `${offset}`,
2878
2995
  })}"
@@ -3610,7 +3727,7 @@ var css_248z$z = i`* {
3610
3727
  display: flex;
3611
3728
  align-items: center;
3612
3729
  flex: 1;
3613
- height: var(--field-height, 3.5rem);
3730
+ min-height: var(--field-height, 3.5rem);
3614
3731
  padding-block: var(--field-padding-block);
3615
3732
  z-index: 1;
3616
3733
  }
@@ -6553,8 +6670,8 @@ class BreadcrumbItem extends i$1 {
6553
6670
  <a
6554
6671
  class="breadcrumb-link"
6555
6672
  itemprop="item"
6556
- href=${o$2(this.href)}
6557
- target=${o$2(this.target)}
6673
+ href=${o$1(this.href)}
6674
+ target=${o$1(this.target)}
6558
6675
  ${this.target === '_blank'
6559
6676
  ? b `rel="noopener noreferrer"`
6560
6677
  : A}
@@ -6616,7 +6733,6 @@ class Breadcrumb extends i$1 {
6616
6733
  super(...arguments);
6617
6734
  /**
6618
6735
  * Accessible label for the breadcrumb navigation landmark.
6619
- * @default "Breadcrumb"
6620
6736
  */
6621
6737
  this.label = 'Breadcrumb';
6622
6738
  }
@@ -7105,6 +7221,7 @@ class Menu extends i$1 {
7105
7221
  return;
7106
7222
  }
7107
7223
  this._setActiveItem(item);
7224
+ this._dispatchItemActivate(item);
7108
7225
  if (item.keepOpen) {
7109
7226
  return;
7110
7227
  }
@@ -7323,6 +7440,13 @@ class Menu extends i$1 {
7323
7440
  this.activeIndex = nextIndex;
7324
7441
  this._syncRovingTabIndex();
7325
7442
  }
7443
+ _dispatchItemActivate(item) {
7444
+ this.dispatchEvent(new CustomEvent('menu-item-activate', {
7445
+ bubbles: true,
7446
+ composed: true,
7447
+ detail: { item },
7448
+ }));
7449
+ }
7326
7450
  _applyPositioning() {
7327
7451
  if (!this.open || !this.menuListElement) {
7328
7452
  return;
@@ -7903,8 +8027,8 @@ class ListItem extends BaseButtonMixin(BaseHyperlinkMixin(i$1)) {
7903
8027
  class=${e$1(cssClasses)}
7904
8028
  href=${this.href}
7905
8029
  target=${this.target}
7906
- rel=${o$2(this.rel)}
7907
- download=${o$2(this.download)}
8030
+ rel=${o$1(this.rel)}
8031
+ download=${o$1(this.download)}
7908
8032
  tabindex=${this.disabled ? '-1' : '0'}
7909
8033
  aria-disabled=${String(this.disabled || this.softDisabled)}
7910
8034
  @click=${this.__dispatchClick}
@@ -9797,7 +9921,7 @@ class Slider extends i$1 {
9797
9921
  @touchstart=${this.onMouseDown}
9798
9922
  >
9799
9923
  <div class="track">
9800
- <div class="track-active" style=${o$1({ width: `${percentage}%` })}></div>
9924
+ <div class="track-active" style=${o$2({ width: `${percentage}%` })}></div>
9801
9925
  </div>
9802
9926
 
9803
9927
  <div
@@ -9809,7 +9933,7 @@ class Slider extends i$1 {
9809
9933
  aria-valuemax=${this.max}
9810
9934
  aria-valuenow=${this.value}
9811
9935
  aria-disabled=${this.disabled}
9812
- style=${o$1({ left: `calc(${percentage}% - var(--thumb-half))` })}
9936
+ style=${o$2({ left: `calc(${percentage}% - var(--thumb-half))` })}
9813
9937
  @keydown=${this.handleKeyDown}
9814
9938
  >
9815
9939
  ${this.labeled ? b `<div class="value-label">${this.value}</div>` : ''}
@@ -11153,7 +11277,7 @@ class SidebarSubMenu extends i$1 {
11153
11277
  disabled: this.disabled,
11154
11278
  selected: this.selected,
11155
11279
  });
11156
- const inlineStyles = o$1({
11280
+ const inlineStyles = o$2({
11157
11281
  paddingLeft: `calc(var(--sidebar-menu-item-height, 2.5rem) * ${this.level})`,
11158
11282
  });
11159
11283
  return b `
@@ -13475,5 +13599,5 @@ __decorate([
13475
13599
  n({ type: Boolean, attribute: 'show-divider' })
13476
13600
  ], NavigationRail.prototype, "showDivider", void 0);
13477
13601
 
13478
- export { Accordion as A, Badge as B, Checkbox as C, DatePicker as D, Elevation as E, Field as F, Spinner as G, SubMenu as H, Image as I, Svg as J, Switch as K, LinearProgress as L, Menu as M, NavigationRail as N, TabGroup as O, Pagination as P, TabPanel as Q, Radio as R, SegmentedButton as S, Tab as T, Table as U, Tabs as V, Tag as W, Textarea as X, TimePicker as Y, Tooltip as Z, UrlField as _, Avatar as a, Breadcrumb as b, BreadcrumbItem as c, Chip as d, CircularProgress as e, Container as f, Divider as g, EmptyState as h, FocusRing as i, Input as j, Link as k, List as l, ListItem as m, MenuItem as n, NavigationRailItem as o, NumberField as p, Ripple as q, SegmentedButtonGroup as r, Select as s, SelectOptionElement as t, SidebarMenu as u, SidebarMenuItem as v, SidebarSubMenu as w, Skeleton as x, Slider as y, Snackbar as z };
13479
- //# sourceMappingURL=navigation-rail-DTTkqohi.js.map
13602
+ export { UrlField as $, Accordion as A, Badge as B, Checkbox as C, DatePicker as D, Elevation as E, Field as F, Snackbar as G, Spinner as H, Image as I, SubMenu as J, Svg as K, LinearProgress as L, Menu as M, NavigationRail as N, Switch as O, Pagination as P, TabGroup as Q, Radio as R, SegmentedButton as S, Tab as T, TabPanel as U, Table as V, Tabs as W, Tag as X, Textarea as Y, TimePicker as Z, Tooltip as _, Avatar as a, Breadcrumb as b, BreadcrumbItem as c, Chip as d, ChipSet as e, CircularProgress as f, Container as g, Divider as h, EmptyState as i, FocusRing as j, Input as k, Link as l, List as m, ListItem as n, MenuItem as o, NavigationRailItem as p, NumberField as q, Ripple as r, SegmentedButtonGroup as s, Select as t, SelectOptionElement as u, SidebarMenu as v, SidebarMenuItem as w, SidebarSubMenu as x, Skeleton as y, Slider as z };
13603
+ //# sourceMappingURL=navigation-rail-CD7IrqbN.js.map