@redvars/peacock 3.4.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/dist/BaseButton-DuASuVth.js +219 -0
  2. package/dist/BaseButton-DuASuVth.js.map +1 -0
  3. package/dist/BaseHyperlinkMixin-BNuwbiEf.js +65 -0
  4. package/dist/BaseHyperlinkMixin-BNuwbiEf.js.map +1 -0
  5. package/dist/assets/components.css +1 -1
  6. package/dist/assets/components.css.map +1 -1
  7. package/dist/assets/styles.css +1 -1
  8. package/dist/assets/styles.css.map +1 -1
  9. package/dist/banner.js +187 -0
  10. package/dist/banner.js.map +1 -0
  11. package/dist/bottom-sheet.js +2 -2
  12. package/dist/{button-COYCtuA8.js → button-DouvOfEU.js} +92 -283
  13. package/dist/button-DouvOfEU.js.map +1 -0
  14. package/dist/{button-group-DsXquZQn.js → button-group-CEdMwvJJ.js} +72 -48
  15. package/dist/button-group-CEdMwvJJ.js.map +1 -0
  16. package/dist/button-group.js +8 -5
  17. package/dist/button-group.js.map +1 -1
  18. package/dist/button.js +7 -4
  19. package/dist/button.js.map +1 -1
  20. package/dist/card.js +29 -74
  21. package/dist/card.js.map +1 -1
  22. package/dist/chart-bar.js +2 -2
  23. package/dist/chart-bar.js.map +1 -1
  24. package/dist/chart-doughnut.js +2 -2
  25. package/dist/chart-doughnut.js.map +1 -1
  26. package/dist/chart-pie.js +2 -2
  27. package/dist/chart-pie.js.map +1 -1
  28. package/dist/chart-stacked-bar.js +2 -2
  29. package/dist/chart-stacked-bar.js.map +1 -1
  30. package/dist/{class-map-3TAnCMAX.js → class-map-YU7g0o3B.js} +2 -2
  31. package/dist/{class-map-3TAnCMAX.js.map → class-map-YU7g0o3B.js.map} +1 -1
  32. package/dist/clock.js.map +1 -1
  33. package/dist/code-editor.js +4 -4
  34. package/dist/code-editor.js.map +1 -1
  35. package/dist/code-highlighter.js +5 -4
  36. package/dist/code-highlighter.js.map +1 -1
  37. package/dist/custom-elements-jsdocs.json +6627 -3477
  38. package/dist/custom-elements.json +10954 -7810
  39. package/dist/directive-ZPhl09Yt.js +9 -0
  40. package/dist/directive-ZPhl09Yt.js.map +1 -0
  41. package/dist/dispatch-event-utils-CuEqjlPT.js +127 -0
  42. package/dist/dispatch-event-utils-CuEqjlPT.js.map +1 -0
  43. package/dist/fab.js +423 -0
  44. package/dist/fab.js.map +1 -0
  45. package/dist/index.js +17 -9
  46. package/dist/index.js.map +1 -1
  47. package/dist/{observe-theme-change-DKAIv5BB.js → is-dark-mode-DicqGkCJ.js} +6 -2
  48. package/dist/is-dark-mode-DicqGkCJ.js.map +1 -0
  49. package/dist/{select-C3XAzenC.js → navigation-rail-Lxetd5-Z.js} +2426 -898
  50. package/dist/navigation-rail-Lxetd5-Z.js.map +1 -0
  51. package/dist/notification.js +418 -0
  52. package/dist/notification.js.map +1 -0
  53. package/dist/number-counter.js +2 -2
  54. package/dist/number-counter.js.map +1 -1
  55. package/dist/observe-slot-change-BGJfgg2E.js +31 -0
  56. package/dist/observe-slot-change-BGJfgg2E.js.map +1 -0
  57. package/dist/peacock-loader.js +48 -13
  58. package/dist/peacock-loader.js.map +1 -1
  59. package/dist/search.js +456 -0
  60. package/dist/search.js.map +1 -0
  61. package/dist/side-sheet.js +2 -2
  62. package/dist/src/__mixins/BaseButtonMixin.d.ts +20 -0
  63. package/dist/src/__mixins/BaseHyperlinkMixin.d.ts +18 -0
  64. package/dist/src/__mixins/MixinConstructor.d.ts +1 -0
  65. package/dist/src/__utils/cache-fetch.d.ts +1 -0
  66. package/dist/src/__utils/is-dark-mode.d.ts +1 -0
  67. package/dist/src/__utils/is-in-viewport.d.ts +1 -0
  68. package/dist/src/__utils/observe-slot-change.d.ts +1 -0
  69. package/dist/src/__utils/sanitize-svg.d.ts +1 -0
  70. package/dist/src/__utils/throttle.d.ts +4 -0
  71. package/dist/src/accordion/accordion-item.d.ts +33 -9
  72. package/dist/src/accordion/accordion.d.ts +21 -5
  73. package/dist/src/banner/banner.d.ts +43 -0
  74. package/dist/src/banner/index.d.ts +1 -0
  75. package/dist/src/button/BaseButton.d.ts +7 -57
  76. package/dist/src/button/button/button.d.ts +32 -3
  77. package/dist/src/button/button-group/button-group.d.ts +4 -4
  78. package/dist/src/button/icon-button/icon-button.d.ts +33 -8
  79. package/dist/src/card/card.d.ts +4 -15
  80. package/dist/src/empty-state/empty-state.d.ts +1 -1
  81. package/dist/src/fab/fab.d.ts +80 -0
  82. package/dist/src/fab/index.d.ts +1 -0
  83. package/dist/src/focus-ring/focus-ring.d.ts +11 -5
  84. package/dist/src/index.d.ts +8 -1
  85. package/dist/src/link/link.d.ts +3 -10
  86. package/dist/src/menu/menu/menu.d.ts +3 -2
  87. package/dist/src/menu/sub-menu/sub-menu.d.ts +1 -0
  88. package/dist/src/navigation-rail/index.d.ts +2 -0
  89. package/dist/src/navigation-rail/navigation-rail-item.d.ts +55 -0
  90. package/dist/src/navigation-rail/navigation-rail.d.ts +71 -0
  91. package/dist/src/notification/index.d.ts +1 -0
  92. package/dist/src/notification/notification.d.ts +69 -0
  93. package/dist/src/pagination/pagination.d.ts +8 -1
  94. package/dist/src/search/index.d.ts +1 -0
  95. package/dist/src/search/search.d.ts +76 -0
  96. package/dist/src/select/select.d.ts +3 -5
  97. package/dist/src/sidebar-menu/index.d.ts +3 -0
  98. package/dist/src/sidebar-menu/sidebar-menu-item.d.ts +58 -0
  99. package/dist/src/sidebar-menu/sidebar-menu.d.ts +38 -0
  100. package/dist/src/sidebar-menu/sidebar-sub-menu.d.ts +35 -0
  101. package/dist/src/slider/slider.d.ts +4 -0
  102. package/dist/src/snackbar/snackbar.d.ts +14 -1
  103. package/dist/src/toolbar/index.d.ts +1 -0
  104. package/dist/src/toolbar/toolbar.d.ts +86 -0
  105. package/dist/src/tooltip/tooltip.d.ts +3 -0
  106. package/dist/src/url-field/index.d.ts +1 -0
  107. package/dist/src/url-field/url-field.d.ts +48 -0
  108. package/dist/{style-map-CRFEoCEg.js → style-map-DVmWOuYy.js} +2 -2
  109. package/dist/{style-map-CRFEoCEg.js.map → style-map-DVmWOuYy.js.map} +1 -1
  110. package/dist/test/banner.test.d.ts +1 -0
  111. package/dist/test/search.test.d.ts +1 -0
  112. package/dist/test/sidebar-menu.test.d.ts +1 -0
  113. package/dist/test/toolbar.test.d.ts +1 -0
  114. package/dist/toolbar.js +306 -0
  115. package/dist/toolbar.js.map +1 -0
  116. package/dist/tsconfig.tsbuildinfo +1 -1
  117. package/dist/{unsafe-html-D3GHRaGQ.js → unsafe-html-BsGUjx94.js} +2 -2
  118. package/dist/{unsafe-html-D3GHRaGQ.js.map → unsafe-html-BsGUjx94.js.map} +1 -1
  119. package/package.json +1 -1
  120. package/readme.md +73 -65
  121. package/scss/mixin.scss +16 -0
  122. package/scss/styles.scss +4 -0
  123. package/src/__mixins/BaseButtonMixin.ts +83 -0
  124. package/src/__mixins/BaseHyperlinkMixin.ts +68 -0
  125. package/src/__mixins/MixinConstructor.ts +1 -0
  126. package/src/__mixins/README.md +19 -0
  127. package/src/__utils/cache-fetch.ts +65 -0
  128. package/src/__utils/is-dark-mode.ts +3 -0
  129. package/src/__utils/is-in-viewport.ts +6 -0
  130. package/src/__utils/observe-slot-change.ts +38 -0
  131. package/src/__utils/sanitize-svg.ts +27 -0
  132. package/src/__utils/throttle.ts +27 -0
  133. package/src/accordion/accordion-item.scss +136 -65
  134. package/src/accordion/accordion-item.ts +117 -44
  135. package/src/accordion/accordion.scss +24 -5
  136. package/src/accordion/accordion.ts +29 -23
  137. package/src/accordion/demo/index.html +74 -35
  138. package/src/banner/banner.scss +83 -0
  139. package/src/banner/banner.ts +101 -0
  140. package/src/banner/index.ts +1 -0
  141. package/src/button/BaseButton.ts +13 -115
  142. package/src/button/button/button-colors.scss +14 -14
  143. package/src/button/button/button-sizes.scss +4 -2
  144. package/src/button/button/button.ts +80 -26
  145. package/src/button/button-group/button-group.ts +5 -5
  146. package/src/button/icon-button/icon-button.ts +79 -44
  147. package/src/card/card.ts +50 -100
  148. package/src/chart-bar/chart-bar.ts +10 -15
  149. package/src/chart-bar/chart-stacked-bar.ts +15 -19
  150. package/src/chart-doughnut/chart-doughnut.ts +24 -28
  151. package/src/chart-pie/chart-pie.ts +20 -24
  152. package/src/checkbox/checkbox.scss +17 -34
  153. package/src/checkbox/checkbox.ts +4 -2
  154. package/src/clock/clock.ts +1 -1
  155. package/src/code-editor/code-editor.ts +4 -4
  156. package/src/code-highlighter/code-highlighter.scss +1 -0
  157. package/src/code-highlighter/code-highlighter.ts +3 -3
  158. package/src/date-picker/date-picker.ts +6 -3
  159. package/src/divider/divider.ts +3 -1
  160. package/src/elevation/elevation.scss +5 -5
  161. package/src/empty-state/empty-state.scss +7 -9
  162. package/src/empty-state/empty-state.ts +1 -1
  163. package/src/fab/fab-colors.scss +49 -0
  164. package/src/fab/fab-sizes.scss +47 -0
  165. package/src/fab/fab.scss +137 -0
  166. package/src/fab/fab.ts +214 -0
  167. package/src/fab/index.ts +1 -0
  168. package/src/field/field.ts +3 -1
  169. package/src/focus-ring/focus-ring.ts +47 -40
  170. package/src/icon/datasource.ts +1 -1
  171. package/src/icon/icon.ts +3 -1
  172. package/src/image/image.ts +3 -2
  173. package/src/index.ts +8 -1
  174. package/src/input/input.ts +8 -3
  175. package/src/link/link.ts +2 -15
  176. package/src/menu/menu/menu.scss +7 -0
  177. package/src/menu/menu/menu.ts +7 -4
  178. package/src/menu/menu-item/menu-item.ts +3 -1
  179. package/src/menu/sub-menu/sub-menu.ts +1 -0
  180. package/src/navigation-rail/index.ts +2 -0
  181. package/src/navigation-rail/navigation-rail-item.scss +216 -0
  182. package/src/navigation-rail/navigation-rail-item.ts +223 -0
  183. package/src/navigation-rail/navigation-rail.scss +72 -0
  184. package/src/navigation-rail/navigation-rail.ts +149 -0
  185. package/src/notification/index.ts +1 -0
  186. package/src/notification/notification.scss +201 -0
  187. package/src/notification/notification.ts +207 -0
  188. package/src/number-counter/number-counter.ts +3 -1
  189. package/src/number-field/number-field.ts +10 -6
  190. package/src/pagination/pagination.scss +33 -24
  191. package/src/pagination/pagination.ts +115 -60
  192. package/src/peacock-loader.ts +42 -5
  193. package/src/radio/radio.ts +3 -1
  194. package/src/search/index.ts +1 -0
  195. package/src/search/search-colors.scss +14 -0
  196. package/src/search/search.scss +204 -0
  197. package/src/search/search.ts +244 -0
  198. package/src/select/option.ts +1 -1
  199. package/src/select/select.scss +5 -0
  200. package/src/select/select.ts +71 -37
  201. package/src/sidebar-menu/demo/index.html +68 -0
  202. package/src/sidebar-menu/index.ts +3 -0
  203. package/src/sidebar-menu/sidebar-menu-item.scss +102 -0
  204. package/src/sidebar-menu/sidebar-menu-item.ts +151 -0
  205. package/src/{tree-view/tree-view.scss → sidebar-menu/sidebar-menu.scss} +1 -1
  206. package/src/sidebar-menu/sidebar-menu.ts +182 -0
  207. package/src/sidebar-menu/sidebar-sub-menu.scss +130 -0
  208. package/src/sidebar-menu/sidebar-sub-menu.ts +160 -0
  209. package/src/skeleton/skeleton.scss +18 -24
  210. package/src/slider/slider.scss +19 -0
  211. package/src/slider/slider.ts +30 -19
  212. package/src/snackbar/snackbar.scss +62 -31
  213. package/src/snackbar/snackbar.ts +91 -11
  214. package/src/switch/switch.ts +3 -1
  215. package/src/table/table.ts +3 -1
  216. package/src/tabs/tab.ts +10 -6
  217. package/src/text/text.css-component.scss +7 -1
  218. package/src/textarea/textarea.ts +4 -2
  219. package/src/time-picker/time-picker.ts +5 -3
  220. package/src/toolbar/index.ts +1 -0
  221. package/src/toolbar/toolbar-colors.scss +16 -0
  222. package/src/toolbar/toolbar.scss +165 -0
  223. package/src/toolbar/toolbar.ts +137 -0
  224. package/src/tooltip/tooltip.ts +24 -0
  225. package/src/url-field/index.ts +1 -0
  226. package/src/url-field/url-field.scss +50 -0
  227. package/src/url-field/url-field.ts +239 -0
  228. package/dist/button-COYCtuA8.js.map +0 -1
  229. package/dist/button-group-DsXquZQn.js.map +0 -1
  230. package/dist/directive-Cuw6h7YA.js +0 -9
  231. package/dist/directive-Cuw6h7YA.js.map +0 -1
  232. package/dist/dispatch-event-utils-B4odODQf.js +0 -277
  233. package/dist/dispatch-event-utils-B4odODQf.js.map +0 -1
  234. package/dist/observe-theme-change-DKAIv5BB.js.map +0 -1
  235. package/dist/select-C3XAzenC.js.map +0 -1
  236. package/dist/src/styleMixins.css.d.ts +0 -9
  237. package/dist/src/tree-view/index.d.ts +0 -2
  238. package/dist/src/tree-view/tree-node.d.ts +0 -69
  239. package/dist/src/tree-view/tree-view.d.ts +0 -40
  240. package/dist/src/tree-view/wc-tree-view.d.ts +0 -6
  241. package/dist/src/utils.d.ts +0 -9
  242. package/dist/test/tree-view.test.d.ts +0 -1
  243. package/src/styleMixins.css.ts +0 -55
  244. package/src/tree-view/demo/index.html +0 -57
  245. package/src/tree-view/index.ts +0 -2
  246. package/src/tree-view/tree-node.scss +0 -101
  247. package/src/tree-view/tree-node.ts +0 -268
  248. package/src/tree-view/tree-view.ts +0 -182
  249. package/src/tree-view/wc-tree-view.ts +0 -9
  250. package/src/utils.ts +0 -193
  251. /package/dist/src/{spread.d.ts → __directive/spread.d.ts} +0 -0
  252. /package/dist/src/{utils → __utils}/copy-to-clipboard.d.ts +0 -0
  253. /package/dist/src/{utils → __utils}/dispatch-event-utils.d.ts +0 -0
  254. /package/dist/src/{utils → __utils}/observe-theme-change.d.ts +0 -0
  255. /package/src/{spread.ts → __directive/spread.ts} +0 -0
  256. /package/src/{utils → __utils}/copy-to-clipboard.ts +0 -0
  257. /package/src/{utils → __utils}/dispatch-event-utils.ts +0 -0
  258. /package/src/{utils → __utils}/observe-theme-change.ts +0 -0
@@ -0,0 +1,48 @@
1
+ import BaseInput from '../input/BaseInput.js';
2
+ /**
3
+ * @label URL Field
4
+ * @tag wc-url-field
5
+ * @rawTag url-field
6
+ *
7
+ * @summary A field for entering and displaying URLs with validation.
8
+ * @overview
9
+ * <p>URL Field wraps an input with URL validation, showing a clickable link preview when not in edit mode.</p>
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <wc-url-field label="Website" value="https://example.com"></wc-url-field>
14
+ * ```
15
+ * @tags form
16
+ */
17
+ export declare class UrlField extends BaseInput {
18
+ static styles: import("lit").CSSResultGroup[];
19
+ value: string;
20
+ name: string;
21
+ placeholder: string;
22
+ label: string;
23
+ editing: boolean;
24
+ debounce: number;
25
+ size: 'sm' | 'md' | 'lg';
26
+ variant: 'filled' | 'outlined' | 'default';
27
+ helperText: string;
28
+ error: boolean;
29
+ errorText: string;
30
+ warning: boolean;
31
+ warningText: string;
32
+ private focused;
33
+ private isValid;
34
+ private inputElement?;
35
+ private debounceTimer?;
36
+ disconnectedCallback(): void;
37
+ focus(): void;
38
+ blur(): void;
39
+ private startEditing;
40
+ private closeEditing;
41
+ private validateUrl;
42
+ private handleInput;
43
+ private handleFocusChange;
44
+ private handleBlur;
45
+ private handleChange;
46
+ private renderDisplayValue;
47
+ render(): import("lit-html").TemplateResult<1>;
48
+ }
@@ -1,5 +1,5 @@
1
1
  import { E } from './IndividualComponent-DUINtMGK.js';
2
- import { e, i as i$1, t } from './directive-Cuw6h7YA.js';
2
+ import { e, i as i$1, t } from './directive-ZPhl09Yt.js';
3
3
 
4
4
  /**
5
5
  * @license
@@ -8,4 +8,4 @@ import { e, i as i$1, t } from './directive-Cuw6h7YA.js';
8
8
  */const n="important",i=" !"+n,o=e(class extends i$1{constructor(t$1){if(super(t$1),t$1.type!==t.ATTRIBUTE||"style"!==t$1.name||t$1.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(const t of this.ft)null==r[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in r){const e=r[t];if(null!=e){this.ft.add(t);const r="string"==typeof e&&e.endsWith(i);t.includes("-")||r?s.setProperty(t,r?e.slice(0,-11):e,r?n:""):s[t]=e;}}return E}});
9
9
 
10
10
  export { o };
11
- //# sourceMappingURL=style-map-CRFEoCEg.js.map
11
+ //# sourceMappingURL=style-map-DVmWOuYy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"style-map-CRFEoCEg.js","sources":["../node_modules/lit-html/directives/style-map.js"],"sourcesContent":["import{noChange as t}from\"../lit-html.js\";import{directive as e,Directive as r,PartType as s}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const n=\"important\",i=\" !\"+n,o=e(class extends r{constructor(t){if(super(t),t.type!==s.ATTRIBUTE||\"style\"!==t.name||t.strings?.length>2)throw Error(\"The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.\")}render(t){return Object.keys(t).reduce((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes(\"-\")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,\"-$&\").toLowerCase()}:${s};`},\"\")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(const t of this.ft)null==r[t]&&(this.ft.delete(t),t.includes(\"-\")?s.removeProperty(t):s[t]=null);for(const t in r){const e=r[t];if(null!=e){this.ft.add(t);const r=\"string\"==typeof e&&e.endsWith(i);t.includes(\"-\")||r?s.setProperty(t,r?e.slice(0,-11):e,r?n:\"\"):s[t]=e}}return t}});export{o as styleMap};\n//# sourceMappingURL=style-map.js.map\n"],"names":["r","t","s"],"mappings":";;;AACA;AACA;AACA;AACA;AACA,GAAQ,MAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAcA,GAAC,CAAC,WAAW,CAACC,GAAC,CAAC,CAAC,GAAG,KAAK,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MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,OAAOA,CAAC,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"style-map-DVmWOuYy.js","sources":["../node_modules/lit-html/directives/style-map.js"],"sourcesContent":["import{noChange as t}from\"../lit-html.js\";import{directive as e,Directive as r,PartType as s}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const n=\"important\",i=\" !\"+n,o=e(class extends r{constructor(t){if(super(t),t.type!==s.ATTRIBUTE||\"style\"!==t.name||t.strings?.length>2)throw Error(\"The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.\")}render(t){return Object.keys(t).reduce((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.includes(\"-\")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,\"-$&\").toLowerCase()}:${s};`},\"\")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(const t of this.ft)null==r[t]&&(this.ft.delete(t),t.includes(\"-\")?s.removeProperty(t):s[t]=null);for(const t in r){const e=r[t];if(null!=e){this.ft.add(t);const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AC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,OAAOA,CAAC,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,306 @@
1
+ import { a as i, _ as __decorate, I as IndividualComponent, i as i$1, b } from './IndividualComponent-DUINtMGK.js';
2
+ import { n } from './property-1psGvXOq.js';
3
+ import { e } from './class-map-YU7g0o3B.js';
4
+ import './directive-ZPhl09Yt.js';
5
+
6
+ var css_248z$1 = i`* {
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ .screen-reader-only {
11
+ display: none !important;
12
+ }
13
+
14
+ :host {
15
+ display: block;
16
+ --toolbar-container-shape: var(--shape-corner-full);
17
+ --toolbar-docked-container-shape: var(--shape-corner-extra-large) var(--shape-corner-extra-large) var(--shape-corner-none) var(--shape-corner-none);
18
+ --toolbar-height: 5rem; /* 80dp - small/default docked */
19
+ --toolbar-padding-inline: 0.75rem;
20
+ --toolbar-gap: 0.5rem;
21
+ --toolbar-shadow: none;
22
+ }
23
+
24
+ /* ---- Shared toolbar base ---- */
25
+ .toolbar {
26
+ position: relative;
27
+ display: flex;
28
+ align-items: center;
29
+ gap: var(--toolbar-gap);
30
+ padding-inline: var(--toolbar-padding-inline);
31
+ min-height: var(--toolbar-height);
32
+ width: 100%;
33
+ box-sizing: border-box;
34
+ color: var(--_toolbar-title-color);
35
+ --icon-color: var(--_toolbar-icon-color);
36
+ box-shadow: var(--toolbar-shadow);
37
+ }
38
+
39
+ .toolbar-content {
40
+ position: relative;
41
+ z-index: 1;
42
+ display: flex;
43
+ align-items: center;
44
+ min-width: 0;
45
+ }
46
+
47
+ .background {
48
+ position: absolute;
49
+ inset: 0;
50
+ background-color: var(--_toolbar-container-color);
51
+ pointer-events: none;
52
+ z-index: 0;
53
+ }
54
+
55
+ /* ---- Docked variant ---- */
56
+ .toolbar.variant-docked {
57
+ width: 100%;
58
+ padding-inline: var(--toolbar-padding-inline);
59
+ padding-block-start: 0.5rem;
60
+ padding-block-end: calc(0.5rem + env(safe-area-inset-bottom, 0px));
61
+ }
62
+ .toolbar.variant-docked .background {
63
+ border-radius: var(--toolbar-docked-container-shape);
64
+ }
65
+ .toolbar.variant-docked .toolbar-content {
66
+ width: 100%;
67
+ justify-content: space-between;
68
+ gap: var(--toolbar-gap);
69
+ overflow-x: auto;
70
+ overflow-y: hidden;
71
+ scrollbar-width: none;
72
+ }
73
+ .toolbar.variant-docked .toolbar-content::-webkit-scrollbar {
74
+ display: none;
75
+ }
76
+ .toolbar.variant-docked ::slotted(*) {
77
+ position: relative;
78
+ z-index: 1;
79
+ flex-shrink: 0;
80
+ }
81
+ .toolbar.variant-docked ::slotted(wc-icon-button) {
82
+ --button-container-shape: var(--shape-corner-full);
83
+ --button-container-shape-variant: round;
84
+ }
85
+ .toolbar.variant-docked {
86
+ /* Size variants */
87
+ }
88
+ .toolbar.variant-docked.size-small {
89
+ --toolbar-height: 5rem;
90
+ }
91
+ .toolbar.variant-docked.size-medium {
92
+ --toolbar-height: 6rem;
93
+ }
94
+ .toolbar.variant-docked.size-large {
95
+ --toolbar-height: 7rem;
96
+ }
97
+ .toolbar.variant-docked.elevated {
98
+ --toolbar-shadow: var(--elevation-shadow-level-3, 0 4px 8px rgba(0, 0, 0, 0.15));
99
+ }
100
+
101
+ /* ---- Floating variant ---- */
102
+ .toolbar.variant-floating {
103
+ --toolbar-container-shape: var(--shape-corner-full);
104
+ border-radius: var(--toolbar-container-shape);
105
+ width: auto;
106
+ display: inline-flex;
107
+ padding: 0.75rem;
108
+ gap: 0.5rem;
109
+ }
110
+ .toolbar.variant-floating .elevation {
111
+ --elevation-level: 3;
112
+ --elevation-container-shape: var(--toolbar-container-shape);
113
+ --elevation-container-shape-variant: round;
114
+ }
115
+ .toolbar.variant-floating .background {
116
+ border-radius: var(--toolbar-container-shape);
117
+ }
118
+ .toolbar.variant-floating .toolbar-content {
119
+ width: auto;
120
+ gap: 0.5rem;
121
+ }
122
+ .toolbar.variant-floating ::slotted(*) {
123
+ position: relative;
124
+ z-index: 1;
125
+ }
126
+ .toolbar.variant-floating ::slotted(wc-icon-button) {
127
+ --button-container-shape: var(--shape-corner-full);
128
+ --button-container-shape-variant: round;
129
+ }
130
+ .toolbar.variant-floating.orientation-horizontal {
131
+ min-height: auto;
132
+ padding-block: 0.5rem;
133
+ padding-inline: 0.75rem;
134
+ }
135
+ .toolbar.variant-floating.orientation-horizontal .toolbar-content {
136
+ flex-direction: row;
137
+ align-items: center;
138
+ }
139
+ .toolbar.variant-floating.orientation-vertical {
140
+ min-height: auto;
141
+ width: auto;
142
+ padding-block: 0.75rem;
143
+ padding-inline: 0.5rem;
144
+ }
145
+ .toolbar.variant-floating.orientation-vertical .toolbar-content {
146
+ flex-direction: column;
147
+ align-items: center;
148
+ }
149
+ .toolbar.variant-floating.elevated .elevation {
150
+ --elevation-level: 4;
151
+ }`;
152
+
153
+ var css_248z = i`:host {
154
+ /* Docked toolbar */
155
+ --toolbar-container-color: var(--color-surface-container);
156
+ --toolbar-title-color: var(--color-on-surface);
157
+ --toolbar-icon-color: var(--color-on-surface-variant);
158
+ /* Internal aliases used by styles */
159
+ --_toolbar-container-color: var(--toolbar-container-color);
160
+ --_toolbar-title-color: var(--toolbar-title-color);
161
+ --_toolbar-icon-color: var(--toolbar-icon-color);
162
+ }
163
+
164
+ /* Floating variant uses surface-container-high for a visible pill */
165
+ :host([variant=floating]) {
166
+ --toolbar-container-color: var(--color-surface-container-high);
167
+ }`;
168
+
169
+ var Toolbar_1;
170
+ /**
171
+ * @label Toolbar
172
+ * @tag wc-toolbar
173
+ * @rawTag toolbar
174
+ *
175
+ * @summary A Material 3 toolbar / app bar for navigation and actions.
176
+ * @overview
177
+ * <p>The toolbar component implements the Material 3 app bar pattern. It supports a
178
+ * docked (attached) variant for bottom-panel navigation and a floating (detached pill-shaped)
179
+ * variant. The floating variant supports both horizontal and vertical orientations.</p>
180
+ *
181
+ * <p>Render toolbar actions directly as children of the component. The docked variant is
182
+ * optimized for a horizontal action row, while the floating variant supports both horizontal
183
+ * and vertical layouts.</p>
184
+ *
185
+ * @cssprop --toolbar-container-color - Background color of the toolbar.
186
+ * @cssprop --toolbar-container-shape - Border radius of the toolbar. Relevant for the floating variant.
187
+ * @cssprop --toolbar-height - Height of the toolbar (docked horizontal / floating horizontal).
188
+ * @cssprop --toolbar-padding-inline - Inline padding of the toolbar.
189
+ * @cssprop --toolbar-gap - Gap between toolbar sections.
190
+ * @cssprop --toolbar-icon-color - Color of icon slots.
191
+ * @cssprop --toolbar-title-color - Color of the title (default slot) text.
192
+ * @cssprop --toolbar-shadow - Box-shadow of the toolbar.
193
+ *
194
+ * @example
195
+ * ```html
196
+ * <!-- Docked toolbar -->
197
+ * <wc-toolbar>
198
+ * <wc-icon-button variant="text"><wc-icon name="home"></wc-icon></wc-icon-button>
199
+ * <wc-icon-button variant="tonal"><wc-icon name="search"></wc-icon></wc-icon-button>
200
+ * <wc-icon-button variant="text"><wc-icon name="favorite"></wc-icon></wc-icon-button>
201
+ * <wc-icon-button variant="text"><wc-icon name="account_circle"></wc-icon></wc-icon-button>
202
+ * </wc-toolbar>
203
+ * ```
204
+ *
205
+ * @example
206
+ * ```html
207
+ * <!-- Floating horizontal toolbar -->
208
+ * <wc-toolbar variant="floating" orientation="horizontal">
209
+ * <wc-icon-button variant="tonal"><wc-icon name="home"></wc-icon></wc-icon-button>
210
+ * <wc-icon-button variant="text"><wc-icon name="search"></wc-icon></wc-icon-button>
211
+ * <wc-icon-button variant="text"><wc-icon name="favorite"></wc-icon></wc-icon-button>
212
+ * </wc-toolbar>
213
+ * ```
214
+ *
215
+ * @example
216
+ * ```html
217
+ * <!-- Floating vertical toolbar -->
218
+ * <wc-toolbar variant="floating" orientation="vertical">
219
+ * <wc-icon-button variant="tonal"><wc-icon name="home"></wc-icon></wc-icon-button>
220
+ * <wc-icon-button variant="text"><wc-icon name="search"></wc-icon></wc-icon-button>
221
+ * <wc-icon-button variant="text"><wc-icon name="favorite"></wc-icon></wc-icon-button>
222
+ * </wc-toolbar>
223
+ * ```
224
+ * @tags display navigation
225
+ */
226
+ let Toolbar = Toolbar_1 = class Toolbar extends i$1 {
227
+ constructor() {
228
+ super(...arguments);
229
+ /**
230
+ * Visual and layout variant of the toolbar.
231
+ * - `"docked"`: A full-width bar attached to the edge of the screen (default).
232
+ * - `"floating"`: A detached pill-shaped toolbar that floats over content.
233
+ */
234
+ this.variant = 'docked';
235
+ /**
236
+ * Orientation of the toolbar content.
237
+ * - `"horizontal"`: Items are laid out left to right (default).
238
+ * - `"vertical"`: Items are stacked top to bottom. Primarily useful for the floating variant.
239
+ */
240
+ this.orientation = 'horizontal';
241
+ /**
242
+ * Size of the docked toolbar.
243
+ * - `"small"`: 80dp height (default).
244
+ * - `"medium"`: 96dp height.
245
+ * - `"large"`: 112dp height.
246
+ */
247
+ this.size = 'small';
248
+ /**
249
+ * Whether the toolbar is visually elevated (adds a shadow).
250
+ */
251
+ this.elevated = false;
252
+ }
253
+ render() {
254
+ const cssClasses = {
255
+ toolbar: true,
256
+ [`variant-${this.variant}`]: true,
257
+ [`orientation-${this.orientation}`]: true,
258
+ [`size-${this.size}`]: true,
259
+ elevated: this.elevated,
260
+ };
261
+ if (this.variant === 'floating') {
262
+ return Toolbar_1.__renderFloating(cssClasses);
263
+ }
264
+ return Toolbar_1.__renderDocked(cssClasses);
265
+ }
266
+ static __renderDocked(cssClasses) {
267
+ return b `
268
+ <div class=${e(cssClasses)} role="toolbar">
269
+ <div class="background"></div>
270
+ <div class="toolbar-content">
271
+ <slot></slot>
272
+ </div>
273
+ </div>
274
+ `;
275
+ }
276
+ static __renderFloating(cssClasses) {
277
+ return b `
278
+ <div class=${e(cssClasses)} role="toolbar">
279
+ <wc-elevation class="elevation"></wc-elevation>
280
+ <div class="background"></div>
281
+ <div class="toolbar-content">
282
+ <slot></slot>
283
+ </div>
284
+ </div>
285
+ `;
286
+ }
287
+ };
288
+ Toolbar.styles = [css_248z$1, css_248z];
289
+ __decorate([
290
+ n({ type: String, reflect: true })
291
+ ], Toolbar.prototype, "variant", void 0);
292
+ __decorate([
293
+ n({ type: String, reflect: true })
294
+ ], Toolbar.prototype, "orientation", void 0);
295
+ __decorate([
296
+ n({ type: String, reflect: true })
297
+ ], Toolbar.prototype, "size", void 0);
298
+ __decorate([
299
+ n({ type: Boolean, reflect: true })
300
+ ], Toolbar.prototype, "elevated", void 0);
301
+ Toolbar = Toolbar_1 = __decorate([
302
+ IndividualComponent
303
+ ], Toolbar);
304
+
305
+ export { Toolbar };
306
+ //# sourceMappingURL=toolbar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolbar.js","sources":["../../src/toolbar/toolbar.ts"],"sourcesContent":["import { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport IndividualComponent from '@/IndividualComponent.js';\nimport styles from './toolbar.scss';\nimport colorStyles from './toolbar-colors.scss';\n\n/**\n * @label Toolbar\n * @tag wc-toolbar\n * @rawTag toolbar\n *\n * @summary A Material 3 toolbar / app bar for navigation and actions.\n * @overview\n * <p>The toolbar component implements the Material 3 app bar pattern. It supports a\n * docked (attached) variant for bottom-panel navigation and a floating (detached pill-shaped)\n * variant. The floating variant supports both horizontal and vertical orientations.</p>\n *\n * <p>Render toolbar actions directly as children of the component. The docked variant is\n * optimized for a horizontal action row, while the floating variant supports both horizontal\n * and vertical layouts.</p>\n *\n * @cssprop --toolbar-container-color - Background color of the toolbar.\n * @cssprop --toolbar-container-shape - Border radius of the toolbar. Relevant for the floating variant.\n * @cssprop --toolbar-height - Height of the toolbar (docked horizontal / floating horizontal).\n * @cssprop --toolbar-padding-inline - Inline padding of the toolbar.\n * @cssprop --toolbar-gap - Gap between toolbar sections.\n * @cssprop --toolbar-icon-color - Color of icon slots.\n * @cssprop --toolbar-title-color - Color of the title (default slot) text.\n * @cssprop --toolbar-shadow - Box-shadow of the toolbar.\n *\n * @example\n * ```html\n * <!-- Docked toolbar -->\n * <wc-toolbar>\n * <wc-icon-button variant=\"text\"><wc-icon name=\"home\"></wc-icon></wc-icon-button>\n * <wc-icon-button variant=\"tonal\"><wc-icon name=\"search\"></wc-icon></wc-icon-button>\n * <wc-icon-button variant=\"text\"><wc-icon name=\"favorite\"></wc-icon></wc-icon-button>\n * <wc-icon-button variant=\"text\"><wc-icon name=\"account_circle\"></wc-icon></wc-icon-button>\n * </wc-toolbar>\n * ```\n *\n * @example\n * ```html\n * <!-- Floating horizontal toolbar -->\n * <wc-toolbar variant=\"floating\" orientation=\"horizontal\">\n * <wc-icon-button variant=\"tonal\"><wc-icon name=\"home\"></wc-icon></wc-icon-button>\n * <wc-icon-button variant=\"text\"><wc-icon name=\"search\"></wc-icon></wc-icon-button>\n * <wc-icon-button variant=\"text\"><wc-icon name=\"favorite\"></wc-icon></wc-icon-button>\n * </wc-toolbar>\n * ```\n *\n * @example\n * ```html\n * <!-- Floating vertical toolbar -->\n * <wc-toolbar variant=\"floating\" orientation=\"vertical\">\n * <wc-icon-button variant=\"tonal\"><wc-icon name=\"home\"></wc-icon></wc-icon-button>\n * <wc-icon-button variant=\"text\"><wc-icon name=\"search\"></wc-icon></wc-icon-button>\n * <wc-icon-button variant=\"text\"><wc-icon name=\"favorite\"></wc-icon></wc-icon-button>\n * </wc-toolbar>\n * ```\n * @tags display navigation\n */\n@IndividualComponent\nexport class Toolbar extends LitElement {\n static styles = [styles, colorStyles];\n\n /**\n * Visual and layout variant of the toolbar.\n * - `\"docked\"`: A full-width bar attached to the edge of the screen (default).\n * - `\"floating\"`: A detached pill-shaped toolbar that floats over content.\n */\n @property({ type: String, reflect: true })\n variant: 'docked' | 'floating' = 'docked';\n\n /**\n * Orientation of the toolbar content.\n * - `\"horizontal\"`: Items are laid out left to right (default).\n * - `\"vertical\"`: Items are stacked top to bottom. Primarily useful for the floating variant.\n */\n @property({ type: String, reflect: true })\n orientation: 'horizontal' | 'vertical' = 'horizontal';\n\n /**\n * Size of the docked toolbar.\n * - `\"small\"`: 80dp height (default).\n * - `\"medium\"`: 96dp height.\n * - `\"large\"`: 112dp height.\n */\n @property({ type: String, reflect: true })\n size: 'small' | 'medium' | 'large' = 'small';\n\n /**\n * Whether the toolbar is visually elevated (adds a shadow).\n */\n @property({ type: Boolean, reflect: true })\n elevated: boolean = false;\n\n override render() {\n const cssClasses = {\n toolbar: true,\n [`variant-${this.variant}`]: true,\n [`orientation-${this.orientation}`]: true,\n [`size-${this.size}`]: true,\n elevated: this.elevated,\n };\n\n if (this.variant === 'floating') {\n return Toolbar.__renderFloating(cssClasses);\n }\n\n return Toolbar.__renderDocked(cssClasses);\n }\n\n private static __renderDocked(cssClasses: Record<string, boolean>) {\n return html`\n <div class=${classMap(cssClasses)} role=\"toolbar\">\n <div class=\"background\"></div>\n <div class=\"toolbar-content\">\n <slot></slot>\n </div>\n </div>\n `;\n }\n\n private static __renderFloating(cssClasses: Record<string, boolean>) {\n return html`\n <div class=${classMap(cssClasses)} role=\"toolbar\">\n <wc-elevation class=\"elevation\"></wc-elevation>\n <div class=\"background\"></div>\n <div class=\"toolbar-content\">\n <slot></slot>\n </div>\n </div>\n `;\n }\n}\n"],"names":["LitElement","html","classMap","styles","colorStyles","property"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDG;AAEI,IAAM,OAAO,GAAA,SAAA,GAAb,MAAM,OAAQ,SAAQA,GAAU,CAAA;AAAhC,IAAA,WAAA,GAAA;;AAGL;;;;AAIG;QAEH,IAAA,CAAA,OAAO,GAA0B,QAAQ;AAEzC;;;;AAIG;QAEH,IAAA,CAAA,WAAW,GAA8B,YAAY;AAErD;;;;;AAKG;QAEH,IAAA,CAAA,IAAI,GAAiC,OAAO;AAE5C;;AAEG;QAEH,IAAA,CAAA,QAAQ,GAAY,KAAK;IAwC3B;IAtCW,MAAM,GAAA;AACb,QAAA,MAAM,UAAU,GAAG;AACjB,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,CAAC,WAAW,IAAI,CAAC,OAAO,CAAA,CAAE,GAAG,IAAI;AACjC,YAAA,CAAC,eAAe,IAAI,CAAC,WAAW,CAAA,CAAE,GAAG,IAAI;AACz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