@redvars/peacock 4.7.0 → 4.8.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.
Files changed (277) hide show
  1. package/dist/accordion-item.js +4 -4
  2. package/dist/app-bar.js +1 -1
  3. package/dist/app-shell.js +2 -2
  4. package/dist/assets/styles.css +1 -1
  5. package/dist/assets/styles.css.map +1 -1
  6. package/dist/assets/theme.d.ts +2 -0
  7. package/dist/assets/theme.js +49 -29
  8. package/dist/assets/tokens.css +1 -1
  9. package/dist/assets/tokens.css.map +1 -1
  10. package/dist/bottom-sheet.js +3 -3
  11. package/dist/breadcrumb-item.js +1 -1
  12. package/dist/button-group.js +79 -0
  13. package/dist/button-group.js.map +1 -1
  14. package/dist/button.js +26 -25
  15. package/dist/button.js.map +1 -1
  16. package/dist/calendar-column-view.js +3 -3
  17. package/dist/calendar-month-view.js +3 -3
  18. package/dist/calendar-timeline.js +3 -3
  19. package/dist/card.js +2 -1
  20. package/dist/card.js.map +1 -1
  21. package/dist/carousel.js +182 -7
  22. package/dist/carousel.js.map +1 -1
  23. package/dist/{cartesian-chart-C8qKDXo8.js → cartesian-chart-UW1CYKRS.js} +2 -2
  24. package/dist/{cartesian-chart-C8qKDXo8.js.map → cartesian-chart-UW1CYKRS.js.map} +1 -1
  25. package/dist/cb-group.js +1 -1
  26. package/dist/chart-area.js +2 -2
  27. package/dist/chart-bar.js +2 -2
  28. package/dist/{chart-base-BpQMZZsw.js → chart-base-D5ujPGcl.js} +3 -3
  29. package/dist/{chart-base-BpQMZZsw.js.map → chart-base-D5ujPGcl.js.map} +1 -1
  30. package/dist/chart-doughnut.js +1 -1
  31. package/dist/chart-line.js +2 -2
  32. package/dist/chart-pie.js +2 -2
  33. package/dist/checkbox.js +5 -5
  34. package/dist/chip.js +34 -8
  35. package/dist/chip.js.map +1 -1
  36. package/dist/circular-progress.js +46 -15
  37. package/dist/circular-progress.js.map +1 -1
  38. package/dist/code-highlighter.js +1 -1
  39. package/dist/color-picker.js +1 -1
  40. package/dist/command-palette.js +2 -2
  41. package/dist/comment-composer.js +5 -5
  42. package/dist/condition-builder.js +1 -1
  43. package/dist/{condition-group-base-NcvOY-Zv.js → condition-group-base-DS76sprm.js} +2 -2
  44. package/dist/{condition-group-base-NcvOY-Zv.js.map → condition-group-base-DS76sprm.js.map} +1 -1
  45. package/dist/confirm-dialog.js +2 -2
  46. package/dist/custom-elements-jsdocs.json +302 -10
  47. package/dist/custom-elements.json +1128 -16
  48. package/dist/dependency-map.js +2 -2
  49. package/dist/{diagram-hv7hCgzx.js → diagram-DFO-X7yq.js} +2 -2
  50. package/dist/{diagram-hv7hCgzx.js.map → diagram-DFO-X7yq.js.map} +1 -1
  51. package/dist/diagram.js +1 -1
  52. package/dist/discussion.js +3 -3
  53. package/dist/{document-editor-CZBlz3ai.js → document-editor-CSS-wACs.js} +7 -7
  54. package/dist/{document-editor-CZBlz3ai.js.map → document-editor-CSS-wACs.js.map} +1 -1
  55. package/dist/document-editor.js +3 -3
  56. package/dist/dropdown-button.js +1 -1
  57. package/dist/erd.js +4 -4
  58. package/dist/fab-menu-item.js +189 -0
  59. package/dist/fab-menu-item.js.map +1 -0
  60. package/dist/fab-menu.js +326 -0
  61. package/dist/fab-menu.js.map +1 -0
  62. package/dist/fab.js +28 -17
  63. package/dist/fab.js.map +1 -1
  64. package/dist/field.js +1 -1
  65. package/dist/file-upload.js +1 -1
  66. package/dist/flow.js +1 -1
  67. package/dist/hover-card.js +5 -3
  68. package/dist/hover-card.js.map +1 -1
  69. package/dist/html-editor.js +4 -4
  70. package/dist/icon-button.js +26 -25
  71. package/dist/icon-button.js.map +1 -1
  72. package/dist/{index-DK3fREuj.js → index-BBxpsqx8.js} +4 -4
  73. package/dist/{index-DK3fREuj.js.map → index-BBxpsqx8.js.map} +1 -1
  74. package/dist/{index-CTEt3LtO.js → index-CDtKB0In.js} +4 -4
  75. package/dist/{index-CTEt3LtO.js.map → index-CDtKB0In.js.map} +1 -1
  76. package/dist/{index-Bag4vtx-.js → index-Tb0ky27z.js} +3 -3
  77. package/dist/{index-Bag4vtx-.js.map → index-Tb0ky27z.js.map} +1 -1
  78. package/dist/index.js +15 -12
  79. package/dist/index.js.map +1 -1
  80. package/dist/{indicator-navigation-item-BG0TrdDE.js → indicator-navigation-item-aZsm-RpR.js} +17 -5
  81. package/dist/{indicator-navigation-item-BG0TrdDE.js.map → indicator-navigation-item-aZsm-RpR.js.map} +1 -1
  82. package/dist/inline-edit.js +1 -1
  83. package/dist/json-viewer.js +1 -1
  84. package/dist/linear-progress.js +51 -4
  85. package/dist/linear-progress.js.map +1 -1
  86. package/dist/link-button.js +26 -25
  87. package/dist/link-button.js.map +1 -1
  88. package/dist/loader-full.js +8 -5
  89. package/dist/loader-full.js.map +1 -1
  90. package/dist/loader.js +17 -5
  91. package/dist/loader.js.map +1 -1
  92. package/dist/loading-indicator.js +301 -0
  93. package/dist/loading-indicator.js.map +1 -0
  94. package/dist/markdown-editor.js +4 -4
  95. package/dist/mention-input.js +1 -1
  96. package/dist/menu.js +8 -6
  97. package/dist/menu.js.map +1 -1
  98. package/dist/{modal-Dds0rXAG.js → modal-ClWCCbxD.js} +7 -5
  99. package/dist/{modal-Dds0rXAG.js.map → modal-ClWCCbxD.js.map} +1 -1
  100. package/dist/modal.js +2 -2
  101. package/dist/navigation-bar-item.js +1 -1
  102. package/dist/navigation-bar.js +1 -1
  103. package/dist/navigation-drawer-group.js +1 -1
  104. package/dist/navigation-drawer.js +1 -1
  105. package/dist/navigation-rail-item.js +1 -1
  106. package/dist/navigation-rail.js +1 -1
  107. package/dist/notification-center.js +1 -1
  108. package/dist/number-counter.js +1 -1
  109. package/dist/{overlay-controller-BOk-kfil.js → overlay-controller-iVaiUqos.js} +20 -10
  110. package/dist/{overlay-controller-BOk-kfil.js.map → overlay-controller-iVaiUqos.js.map} +1 -1
  111. package/dist/pagination.js +1 -1
  112. package/dist/popover-content.js +4 -2
  113. package/dist/popover-content.js.map +1 -1
  114. package/dist/popover.js +1 -1
  115. package/dist/{progress-base-BhJK__VP.js → progress-base-BeLu9-Tq.js} +13 -1
  116. package/dist/progress-base-BeLu9-Tq.js.map +1 -0
  117. package/dist/prompt-input.js +5 -5
  118. package/dist/radio.js +3 -3
  119. package/dist/resizable-panels.js +1 -1
  120. package/dist/{rich-text-input-base-SrsPvc-j.js → rich-text-input-base-BCmnkpuV.js} +2 -2
  121. package/dist/{rich-text-input-base-SrsPvc-j.js.map → rich-text-input-base-BCmnkpuV.js.map} +1 -1
  122. package/dist/scroll-area.js +1 -1
  123. package/dist/search.js +1 -1
  124. package/dist/segmented-button.js +7 -2
  125. package/dist/segmented-button.js.map +1 -1
  126. package/dist/select.js +1 -1
  127. package/dist/side-sheet.js +3 -3
  128. package/dist/site-header.js +3 -3
  129. package/dist/site-nav-menu.js +1 -1
  130. package/dist/{slash-controller-DwL0nkqv.js → slash-controller-BFhzSjiR.js} +2 -2
  131. package/dist/{slash-controller-DwL0nkqv.js.map → slash-controller-BFhzSjiR.js.map} +1 -1
  132. package/dist/slider.js +163 -68
  133. package/dist/slider.js.map +1 -1
  134. package/dist/snackbar.js +2 -2
  135. package/dist/sparkline.js +2 -2
  136. package/dist/split-button.js +1 -1
  137. package/dist/src/button/button-group/button-group.d.ts +12 -0
  138. package/dist/src/button/fab/fab.d.ts +1 -0
  139. package/dist/src/carousel/carousel.d.ts +22 -0
  140. package/dist/src/chip/chip/chip.d.ts +4 -0
  141. package/dist/src/fab-menu/fab-menu-item.d.ts +30 -0
  142. package/dist/src/fab-menu/fab-menu.d.ts +64 -0
  143. package/dist/src/fab-menu/index.d.ts +2 -0
  144. package/dist/src/index.d.ts +3 -0
  145. package/dist/src/loading-indicator/index.d.ts +1 -0
  146. package/dist/src/loading-indicator/loading-indicator.d.ts +44 -0
  147. package/dist/src/loading-indicator/shapes.d.ts +29 -0
  148. package/dist/src/progress/circular-progress/circular-progress.d.ts +3 -1
  149. package/dist/src/progress/linear-progress/linear-progress.d.ts +2 -1
  150. package/dist/src/progress/progress-base.d.ts +7 -0
  151. package/dist/src/slider/slider.d.ts +23 -3
  152. package/dist/src/toolbar/toolbar.d.ts +20 -0
  153. package/dist/step.js +1 -1
  154. package/dist/switch.js +5 -2
  155. package/dist/switch.js.map +1 -1
  156. package/dist/tab-group.js +13 -2
  157. package/dist/tab-group.js.map +1 -1
  158. package/dist/tab-panel.js +26 -0
  159. package/dist/tab-panel.js.map +1 -1
  160. package/dist/tab.js +23 -5
  161. package/dist/tab.js.map +1 -1
  162. package/dist/table.js +4 -4
  163. package/dist/tag.js +2 -1
  164. package/dist/tag.js.map +1 -1
  165. package/dist/test/button-group-press.test.d.ts +1 -0
  166. package/dist/test/fab-menu.test.d.ts +1 -0
  167. package/dist/test/loading-indicator.test.d.ts +1 -0
  168. package/dist/toolbar.js +102 -0
  169. package/dist/toolbar.js.map +1 -1
  170. package/dist/tooltip.js +5 -2
  171. package/dist/tooltip.js.map +1 -1
  172. package/dist/tour.js +3 -3
  173. package/dist/tree-chart.js +3 -3
  174. package/dist/tree-item.js +1 -1
  175. package/dist/tsconfig.tsbuildinfo +1 -1
  176. package/dist/{video-DgtGGvrk.js → video-DSQ07o3h.js} +2 -2
  177. package/dist/{video-DgtGGvrk.js.map → video-DSQ07o3h.js.map} +1 -1
  178. package/dist/video.js +1 -1
  179. package/dist/workflow.js +5 -5
  180. package/package.json +1 -1
  181. package/scss/tokens.css +364 -0
  182. package/src/__internal/chart/chart-base.scss +4 -2
  183. package/src/__internal/controllers/overlay-controller.ts +19 -9
  184. package/src/__internal/rich-text/editor-chrome.scss +2 -1
  185. package/src/accordion/accordion-item.scss +10 -6
  186. package/src/app-bar/app-bar.scss +2 -1
  187. package/src/app-shell/app-shell.scss +2 -2
  188. package/src/bottom-sheet/bottom-sheet.scss +4 -2
  189. package/src/breadcrumb/breadcrumb-item/breadcrumb-item.scss +4 -2
  190. package/src/button/button/button-base.scss +14 -12
  191. package/src/button/button/button-layers.scss +27 -5
  192. package/src/button/button-group/button-group.scss +6 -0
  193. package/src/button/button-group/button-group.ts +105 -0
  194. package/src/button/fab/fab-sizes.scss +2 -0
  195. package/src/button/fab/fab.scss +32 -17
  196. package/src/button/fab/fab.ts +1 -0
  197. package/src/calendar/calendar-column-view.scss +3 -3
  198. package/src/calendar/calendar-month-view.scss +3 -3
  199. package/src/calendar-timeline/calendar-timeline.scss +6 -3
  200. package/src/card/card.scss +2 -1
  201. package/src/carousel/carousel.scss +71 -2
  202. package/src/carousel/carousel.ts +159 -7
  203. package/src/chart-pie/chart-pie.scss +4 -2
  204. package/src/checkbox/checkbox.scss +13 -7
  205. package/src/chip/chip/chip.scss +41 -8
  206. package/src/chip/chip/chip.ts +4 -0
  207. package/src/chip/tag/tag.scss +2 -1
  208. package/src/code-highlighter/code-highlighter.scss +2 -1
  209. package/src/color-picker/color-picker.scss +1 -1
  210. package/src/comment-composer/comment-composer.scss +2 -1
  211. package/src/components.manifest.json +21 -0
  212. package/src/condition-builder/condition-group-base.scss +1 -1
  213. package/src/dependency-map/dependency-map.scss +4 -2
  214. package/src/diagram/diagram.scss +2 -1
  215. package/src/document-editor/document-editor.scss +1 -1
  216. package/src/dropdown-button/dropdown-button.scss +2 -1
  217. package/src/erd/erd.scss +8 -4
  218. package/src/fab-menu/fab-menu-item.scss +99 -0
  219. package/src/fab-menu/fab-menu-item.ts +58 -0
  220. package/src/fab-menu/fab-menu.scss +119 -0
  221. package/src/fab-menu/fab-menu.ts +193 -0
  222. package/src/fab-menu/index.ts +2 -0
  223. package/src/field/field.scss +1 -1
  224. package/src/file-upload/file-upload.scss +2 -2
  225. package/src/hover-card/hover-card.scss +9 -2
  226. package/src/index.ts +3 -0
  227. package/src/inline-edit/inline-edit.scss +2 -2
  228. package/src/json-viewer/json-viewer.scss +2 -1
  229. package/src/loader.ts +12 -0
  230. package/src/loading-indicator/index.ts +1 -0
  231. package/src/loading-indicator/loading-indicator.scss +52 -0
  232. package/src/loading-indicator/loading-indicator.ts +164 -0
  233. package/src/loading-indicator/shapes.ts +104 -0
  234. package/src/menu/menu/menu.scss +10 -6
  235. package/src/modal/modal.scss +8 -4
  236. package/src/navigation-drawer/navigation-drawer-group.scss +2 -2
  237. package/src/navigation-drawer/navigation-drawer.scss +3 -2
  238. package/src/navigation-rail/navigation-rail-item.scss +27 -5
  239. package/src/number-counter/number-counter.scss +1 -1
  240. package/src/pagination/pagination.scss +2 -1
  241. package/src/popover/popover-content.scss +7 -2
  242. package/src/progress/circular-progress/circular-progress.scss +3 -2
  243. package/src/progress/circular-progress/circular-progress.ts +43 -12
  244. package/src/progress/linear-progress/linear-progress.scss +70 -2
  245. package/src/progress/linear-progress/linear-progress.ts +4 -1
  246. package/src/progress/progress-base.ts +11 -0
  247. package/src/prompt-input/prompt-input.scss +2 -1
  248. package/src/radio/radio.scss +8 -4
  249. package/src/resizable-panels/resizable-panels.scss +2 -1
  250. package/src/scroll-area/scroll-area.scss +2 -1
  251. package/src/search/search.scss +2 -1
  252. package/src/segmented-button/segmented-button.scss +8 -3
  253. package/src/select/select.scss +2 -1
  254. package/src/side-sheet/side-sheet.scss +4 -2
  255. package/src/site-header/site-header.scss +4 -4
  256. package/src/site-header/site-nav-menu.scss +2 -2
  257. package/src/slider/slider.scss +127 -64
  258. package/src/slider/slider.ts +74 -9
  259. package/src/snackbar/snackbar.scss +5 -2
  260. package/src/sparkline/sparkline.scss +6 -3
  261. package/src/split-button/split-button.scss +4 -2
  262. package/src/stepper/step.scss +2 -1
  263. package/src/switch/switch.scss +21 -2
  264. package/src/table/table.scss +8 -4
  265. package/src/tabs/tab-group.ts +12 -2
  266. package/src/tabs/tab-panel.scss +31 -0
  267. package/src/tabs/tab.scss +28 -17
  268. package/src/toolbar/toolbar-colors.scss +11 -0
  269. package/src/toolbar/toolbar.scss +28 -0
  270. package/src/toolbar/toolbar.ts +74 -1
  271. package/src/tooltip/tooltip.scss +9 -3
  272. package/src/tour/tour.scss +2 -2
  273. package/src/tree/tree-item.scss +2 -1
  274. package/src/tree-chart/tree-chart.scss +3 -3
  275. package/src/video/video.scss +2 -1
  276. package/src/workflow/workflow.scss +5 -5
  277. package/dist/progress-base-BhJK__VP.js.map +0 -1
@@ -53,8 +53,8 @@ var css_248z = i`* {
53
53
  top: 0;
54
54
  left: 0;
55
55
  z-index: var(--z-index-popover, 1000);
56
- --_popover-duration: var(--duration-short2, 0.1s);
57
- --_popover-easing: var(--easing-standard, ease-in-out);
56
+ --_popover-duration: var(--motion-spring-fast-effects-duration, 0.1s);
57
+ --_popover-easing: var(--motion-spring-fast-effects-easing, ease-in-out);
58
58
  /* Keep the panel in the top layer while it fades out. */
59
59
  transition: display var(--_popover-duration) allow-discrete, overlay var(--_popover-duration) allow-discrete;
60
60
  /**
@@ -95,6 +95,8 @@ var css_248z = i`* {
95
95
  :host([open]:not([popover])) .popover-content {
96
96
  transform: none;
97
97
  opacity: 1;
98
+ transition-duration: var(--motion-spring-default-spatial-duration, 0.1s), var(--_popover-duration);
99
+ transition-timing-function: var(--motion-spring-default-spatial-easing, ease-out), var(--_popover-easing);
98
100
  }
99
101
  @starting-style {
100
102
  :host(:popover-open) .popover-content,
@@ -1 +1 @@
1
- {"version":3,"file":"popover-content.js","sources":["../../src/popover/popover-content.ts"],"sourcesContent":["import { html, LitElement } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport styles from './popover-content.scss';\n\n/**\n * @label Popover Content\n * @tag wc-popover-content\n * @rawTag popover-content\n * @summary The floating panel of a popover, with an optional heading and an arrow pointing at the trigger.\n * @overview\n * <p>The panel of a <code>wc-popover</code>. The popover shows it in the browser's top layer, gives it\n * <code>role=\"dialog\"</code> and names it from the popover's <code>label</code> or from the element in the\n * <code>heading</code> slot.</p>\n * @tags display\n *\n * @slot - The popover body.\n * @slot heading - A heading for the panel; it names the dialog when the popover has no `label`.\n *\n * @csspart container - The panel surface.\n * @csspart arrow - The arrow pointing at the trigger; shown when the popover has `arrow`.\n *\n * @cssprop --popover-content-background - Background color of the popover content. Defaults to `var(--color-surface-container)`.\n * @cssprop --popover-content-padding - Padding of the popover content. Defaults to `var(--spacing-200)`.\n * @cssprop --popover-content-border-radius - Border radius of the popover content. Defaults to `var(--shape-corner-small)`.\n * @cssprop --popover-content-min-width - Minimum width of the popover content. Defaults to `10rem`.\n *\n * @example\n * ```html\n * <wc-popover-content>\n * <p>Popover body text</p>\n * </wc-popover-content>\n * ```\n */\nexport class PopoverContent extends LitElement {\n // ── Static ───────────────────────────────────────────────────────────────\n\n static styles = [styles];\n\n // ── Properties ───────────────────────────────────────────────────────────\n\n /** Whether the popover content is visible. Set by the enclosing `wc-popover`. */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /** Shows the arrow that points at the trigger. Set by the enclosing `wc-popover`. */\n @property({ type: Boolean, reflect: true }) arrow = false;\n\n // ── Queries ──────────────────────────────────────────────────────────────\n\n /** The arrow element, positioned by the popover's floating-ui arrow middleware. */\n @query('.arrow') arrowElement?: HTMLElement | null;\n\n // ── Render ───────────────────────────────────────────────────────────────\n\n render() {\n return html`\n <div\n class=${classMap({\n 'popover-content': true,\n open: this.open,\n })}\n part=\"container\"\n >\n <slot name=\"heading\"></slot>\n <slot></slot>\n <wc-elevation class=\"elevation\"></wc-elevation>\n <div class=\"arrow\" part=\"arrow\"></div>\n </div>\n `;\n }\n}\n"],"names":["LitElement","html","classMap","styles","property","query"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BG;AACG,MAAO,cAAe,SAAQA,GAAU,CAAA;AAA9C,IAAA,WAAA,GAAA;;;;;QAQ8C,IAAA,CAAA,IAAI,GAAG,KAAK;;QAGZ,IAAA,CAAA,KAAK,GAAG,KAAK;IAyB3D;;IAhBE,MAAM,GAAA;AACJ,QAAA,OAAOC,CAAI,CAAA;;AAEC,cAAA,EAAAC,GAAQ,CAAC;AACf,YAAA,iBAAiB,EAAE,IAAI;YACvB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;;;;;;;;KAQL;IACH;;AAhCO,cAAA,CAAA,MAAM,GAAG,CAACC,QAAM,CAAC;AAKoB,UAAA,CAAA;IAA3CC,CAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAAe,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAGb,UAAA,CAAA;IAA3CA,CAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAAgB,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AAKzC,UAAA,CAAA;IAAhBC,CAAK,CAAC,QAAQ;AAAoC,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;;;;"}
1
+ {"version":3,"file":"popover-content.js","sources":["../../src/popover/popover-content.ts"],"sourcesContent":["import { html, LitElement } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport styles from './popover-content.scss';\n\n/**\n * @label Popover Content\n * @tag wc-popover-content\n * @rawTag popover-content\n * @summary The floating panel of a popover, with an optional heading and an arrow pointing at the trigger.\n * @overview\n * <p>The panel of a <code>wc-popover</code>. The popover shows it in the browser's top layer, gives it\n * <code>role=\"dialog\"</code> and names it from the popover's <code>label</code> or from the element in the\n * <code>heading</code> slot.</p>\n * @tags display\n *\n * @slot - The popover body.\n * @slot heading - A heading for the panel; it names the dialog when the popover has no `label`.\n *\n * @csspart container - The panel surface.\n * @csspart arrow - The arrow pointing at the trigger; shown when the popover has `arrow`.\n *\n * @cssprop --popover-content-background - Background color of the popover content. Defaults to `var(--color-surface-container)`.\n * @cssprop --popover-content-padding - Padding of the popover content. Defaults to `var(--spacing-200)`.\n * @cssprop --popover-content-border-radius - Border radius of the popover content. Defaults to `var(--shape-corner-small)`.\n * @cssprop --popover-content-min-width - Minimum width of the popover content. Defaults to `10rem`.\n *\n * @example\n * ```html\n * <wc-popover-content>\n * <p>Popover body text</p>\n * </wc-popover-content>\n * ```\n */\nexport class PopoverContent extends LitElement {\n // ── Static ───────────────────────────────────────────────────────────────\n\n static styles = [styles];\n\n // ── Properties ───────────────────────────────────────────────────────────\n\n /** Whether the popover content is visible. Set by the enclosing `wc-popover`. */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /** Shows the arrow that points at the trigger. Set by the enclosing `wc-popover`. */\n @property({ type: Boolean, reflect: true }) arrow = false;\n\n // ── Queries ──────────────────────────────────────────────────────────────\n\n /** The arrow element, positioned by the popover's floating-ui arrow middleware. */\n @query('.arrow') arrowElement?: HTMLElement | null;\n\n // ── Render ───────────────────────────────────────────────────────────────\n\n render() {\n return html`\n <div\n class=${classMap({\n 'popover-content': true,\n open: this.open,\n })}\n part=\"container\"\n >\n <slot name=\"heading\"></slot>\n <slot></slot>\n <wc-elevation class=\"elevation\"></wc-elevation>\n <div class=\"arrow\" part=\"arrow\"></div>\n </div>\n `;\n }\n}\n"],"names":["LitElement","html","classMap","styles","property","query"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BG;AACG,MAAO,cAAe,SAAQA,GAAU,CAAA;AAA9C,IAAA,WAAA,GAAA;;;;;QAQ8C,IAAA,CAAA,IAAI,GAAG,KAAK;;QAGZ,IAAA,CAAA,KAAK,GAAG,KAAK;IAyB3D;;IAhBE,MAAM,GAAA;AACJ,QAAA,OAAOC,CAAI,CAAA;;AAEC,cAAA,EAAAC,GAAQ,CAAC;AACf,YAAA,iBAAiB,EAAE,IAAI;YACvB,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;;;;;;;;KAQL;IACH;;AAhCO,cAAA,CAAA,MAAM,GAAG,CAACC,QAAM,CAAC;AAKoB,UAAA,CAAA;IAA3CC,CAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAAe,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAGb,UAAA,CAAA;IAA3CA,CAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAAgB,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AAKzC,UAAA,CAAA;IAAhBC,CAAK,CAAC,QAAQ;AAAoC,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;;;;"}
package/dist/popover.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { _ as __decorate, n } from './property-Dn3pvFDo.js';
2
2
  import { i, a as i$1, b } from './lit-element-CKa37m3w.js';
3
3
  import { F as FloatingController } from './floating-controller-CABF4tBT.js';
4
- import { O as OverlayController } from './overlay-controller-BOk-kfil.js';
4
+ import { O as OverlayController } from './overlay-controller-iVaiUqos.js';
5
5
  import { t as toPhysicalPlacement } from './placement-C4GO0JP9.js';
6
6
 
7
7
  var css_248z = i`* {
@@ -16,6 +16,11 @@ class ProgressBase extends mixinDelegatesAria(i) {
16
16
  this.indeterminate = false;
17
17
  /** Lays out the label and the indicator on one line instead of stacking them. */
18
18
  this.inline = false;
19
+ /**
20
+ * Draws the active indicator as a wave, the M3 Expressive style. The wave flattens out once the
21
+ * task is complete, and stops moving with reduced motion.
22
+ */
23
+ this.wavy = false;
19
24
  /** Peacock's strings, for the fallback accessible name. */
20
25
  this.i18n = new I18nController(this);
21
26
  }
@@ -34,6 +39,10 @@ class ProgressBase extends mixinDelegatesAria(i) {
34
39
  return 0;
35
40
  return Math.min(this.__max, Math.max(0, value));
36
41
  }
42
+ /** Whether a determinate task has reached `max`. */
43
+ get __complete() {
44
+ return !this.indeterminate && this.__clampedValue >= this.__max;
45
+ }
37
46
  /** The clamped value as a percentage of `max`. */
38
47
  __getPercentageValue() {
39
48
  return (this.__clampedValue / this.__max) * 100;
@@ -57,6 +66,9 @@ __decorate([
57
66
  __decorate([
58
67
  n({ type: Boolean })
59
68
  ], ProgressBase.prototype, "inline", void 0);
69
+ __decorate([
70
+ n({ type: Boolean, reflect: true })
71
+ ], ProgressBase.prototype, "wavy", void 0);
60
72
 
61
73
  export { ProgressBase as P };
62
- //# sourceMappingURL=progress-base-BhJK__VP.js.map
74
+ //# sourceMappingURL=progress-base-BeLu9-Tq.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-base-BeLu9-Tq.js","sources":["../../src/progress/progress-base.ts"],"sourcesContent":["import { LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { I18nController } from '@/__internal/i18n/i18n-controller.js';\nimport { mixinDelegatesAria } from '@/__internal/aria/delegate.js';\nimport type { ARIAMixinStrict } from '@/__internal/aria/aria.js';\n\n/**\n * `aria-label` on the host names the progress bar without a visible label (it moves to the inner\n * `role=\"progressbar\"` element, as on buttons).\n */\nexport class ProgressBase extends mixinDelegatesAria(LitElement) {\n /** The current value, clamped into `0`–`max`. */\n @property({ type: Number }) value?: number;\n\n /** The value at which the task is complete. Defaults to `100`. */\n @property({ type: Number }) max = 100;\n\n /** Shows ongoing activity with no known completion, ignoring `value`. */\n @property({ type: Boolean }) indeterminate = false;\n\n /**\n * A visible label describing the progress, which also names the progress bar\n * (`aria-labelledby`). Without one the bar is named \"Loading\" (string `loading`).\n */\n @property({ type: String }) label?: string;\n\n /** Help text shown below the progress indicator. */\n @property({ type: String, attribute: 'helper-text' }) helperText?: string;\n\n /** Lays out the label and the indicator on one line instead of stacking them. */\n @property({ type: Boolean }) inline = false;\n\n /**\n * Draws the active indicator as a wave, the M3 Expressive style. The wave flattens out once the\n * task is complete, and stops moving with reduced motion.\n */\n @property({ type: Boolean, reflect: true }) wavy = false;\n\n /** Peacock's strings, for the fallback accessible name. */\n protected readonly i18n = new I18nController(this);\n\n /** The bar's name without a visible `label`: the host's `aria-label`, else \"Loading\". */\n protected get __fallbackLabel(): string {\n return (this as ARIAMixinStrict).ariaLabel || this.i18n.t('loading');\n }\n\n /** `max`, or 100 when it is not a positive number. */\n protected get __max(): number {\n return Number.isFinite(this.max) && this.max > 0 ? this.max : 100;\n }\n\n /** `value` clamped into `0`–`max`; 0 when unset. */\n protected get __clampedValue(): number {\n const value = Number(this.value);\n if (!Number.isFinite(value)) return 0;\n return Math.min(this.__max, Math.max(0, value));\n }\n\n /** Whether a determinate task has reached `max`. */\n protected get __complete(): boolean {\n return !this.indeterminate && this.__clampedValue >= this.__max;\n }\n\n /** The clamped value as a percentage of `max`. */\n __getPercentageValue(): number {\n return (this.__clampedValue / this.__max) * 100;\n }\n}\n"],"names":["LitElement","property"],"mappings":";;;;;AAMA;;;AAGG;MACU,YAAa,SAAQ,kBAAkB,CAACA,CAAU,CAAC,CAAA;AAAhE,IAAA,WAAA,GAAA;;;QAK8B,IAAA,CAAA,GAAG,GAAG,GAAG;;QAGR,IAAA,CAAA,aAAa,GAAG,KAAK;;QAYrB,IAAA,CAAA,MAAM,GAAG,KAAK;AAE3C;;;AAGG;QACyC,IAAA,CAAA,IAAI,GAAG,KAAK;;AAGrC,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC;IA4BpD;;AAzBE,IAAA,IAAc,eAAe,GAAA;AAC3B,QAAA,OAAQ,IAAwB,CAAC,SAAS,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IACtE;;AAGA,IAAA,IAAc,KAAK,GAAA;QACjB,OAAO,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,I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,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE;AAAsB,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAG7C,UAAA,CAAA;AAA5B,IAAAA,CAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AAAiB,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AAMA,UAAA,CAAA;IAA3CA,CAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAAe,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { _ as __decorate, n } from './property-Dn3pvFDo.js';
2
2
  import { i, b, A } from './lit-element-CKa37m3w.js';
3
3
  import { e } from './class-map-DN-g_e4M.js';
4
- import { i as Extension } from './slash-controller-DwL0nkqv.js';
5
- import { R as RichTextInputBase } from './rich-text-input-base-SrsPvc-j.js';
4
+ import { i as Extension } from './slash-controller-BFhzSjiR.js';
5
+ import { R as RichTextInputBase } from './rich-text-input-base-BCmnkpuV.js';
6
6
  import { e as extractMentions } from './markdown-lexer-Bx4Vkpu6.js';
7
7
  import './directive-ZPhl09Yt.js';
8
8
  import './diff-CT416thw.js';
@@ -11,7 +11,7 @@ import './locale-DEsJZCQG.js';
11
11
  import './sparkle-DbxCXWsC.js';
12
12
  import './stream-C16hbcio.js';
13
13
  import './floating-controller-CABF4tBT.js';
14
- import './overlay-controller-BOk-kfil.js';
14
+ import './overlay-controller-iVaiUqos.js';
15
15
  import './mention--NNhafc7.js';
16
16
  import './url-BFUh__RO.js';
17
17
  import './state-Bz6ycyYM.js';
@@ -905,7 +905,7 @@ img.ProseMirror-separator {
905
905
  gap: 2px;
906
906
  opacity: 0;
907
907
  pointer-events: none;
908
- transition: opacity 0.12s ease;
908
+ transition: opacity var(--motion-spring-fast-effects-duration) var(--motion-spring-fast-effects-easing);
909
909
  }
910
910
  .block-handle.visible {
911
911
  opacity: 1;
@@ -979,7 +979,7 @@ img.ProseMirror-separator {
979
979
  background: var(--prompt-input-background, var(--color-surface));
980
980
  border: 1px solid var(--color-outline);
981
981
  border-radius: calc(var(--_line) / 2 + var(--spacing-200, 1rem));
982
- transition: border-color 0.12s ease;
982
+ transition: border-color var(--motion-spring-fast-effects-duration) var(--motion-spring-fast-effects-easing);
983
983
  }
984
984
  .prompt.focused {
985
985
  border-color: var(--color-primary);
package/dist/radio.js CHANGED
@@ -103,7 +103,7 @@ var css_248z = i`* {
103
103
  inset: 0;
104
104
  border-radius: 50%;
105
105
  opacity: 0;
106
- transition: opacity var(--duration-short2) var(--easing-standard);
106
+ transition: opacity var(--motion-spring-fast-effects-duration) var(--motion-spring-fast-effects-easing);
107
107
  }
108
108
  .radio .outer-circle {
109
109
  position: absolute;
@@ -112,7 +112,7 @@ var css_248z = i`* {
112
112
  border: 2px solid var(--radio-unselected-color);
113
113
  border-radius: 50%;
114
114
  box-sizing: border-box;
115
- transition: border-color var(--duration-short2) var(--easing-standard);
115
+ transition: border-color var(--motion-spring-fast-effects-duration) var(--motion-spring-fast-effects-easing);
116
116
  }
117
117
  .radio .inner-circle {
118
118
  position: absolute;
@@ -122,7 +122,7 @@ var css_248z = i`* {
122
122
  border-radius: 50%;
123
123
  opacity: 0;
124
124
  transform: scale(0.5);
125
- transition: transform var(--duration-short2) var(--easing-standard), opacity var(--duration-short2) var(--easing-standard);
125
+ transition: transform var(--motion-spring-fast-spatial-duration) var(--motion-spring-fast-spatial-easing), opacity var(--motion-spring-fast-effects-duration) var(--motion-spring-fast-effects-easing);
126
126
  }
127
127
  .radio .label {
128
128
  color: var(--color-on-surface);
@@ -77,7 +77,7 @@ var css_248z = i`* {
77
77
  cursor: col-resize;
78
78
  touch-action: none;
79
79
  outline: none;
80
- transition: background-color var(--duration-short2, 100ms) linear;
80
+ transition: background-color var(--motion-spring-fast-effects-duration) var(--motion-spring-fast-effects-easing);
81
81
  }
82
82
  .divider::before {
83
83
  content: "";
@@ -4,7 +4,7 @@ import { r } from './state-Bz6ycyYM.js';
4
4
  import { e } from './query-CHb9Ft_d.js';
5
5
  import { e as e$1 } from './class-map-DN-g_e4M.js';
6
6
  import { o } from './style-map-D1ZICebN.js';
7
- import { b as blocksFor, R as RichTextMentionController, a as RichTextAiController, c as RichTextSlashController, d as RichTextLinkController, e as RichTextBubbleController, f as RichTextBlockHandleController, B as BLOCKS, S as SET_VALUE_META, E as Editor, g as buildExtensions, h as activeTextStyle, m as marksFor } from './slash-controller-DwL0nkqv.js';
7
+ import { b as blocksFor, R as RichTextMentionController, a as RichTextAiController, c as RichTextSlashController, d as RichTextLinkController, e as RichTextBubbleController, f as RichTextBlockHandleController, B as BLOCKS, S as SET_VALUE_META, E as Editor, g as buildExtensions, h as activeTextStyle, m as marksFor } from './slash-controller-BFhzSjiR.js';
8
8
  import { I as InputBase } from './input-base-u60DF-pm.js';
9
9
  import { I as I18nController } from './i18n-controller-BTeChxE0.js';
10
10
 
@@ -659,4 +659,4 @@ __decorate([
659
659
  ], RichTextInputBase.prototype, "editorRoot", void 0);
660
660
 
661
661
  export { RichTextInputBase as R };
662
- //# sourceMappingURL=rich-text-input-base-SrsPvc-j.js.map
662
+ //# sourceMappingURL=rich-text-input-base-BCmnkpuV.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rich-text-input-base-SrsPvc-j.js","sources":["../../src/__internal/rich-text/rich-text-input-base.ts"],"sourcesContent":["import { html, nothing, type PropertyValues, type TemplateResult } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport { Editor, type Content, type Extensions } from '@tiptap/core';\n\nimport InputBase, { type ControlValidity } from '@/__internal/input-base.js';\nimport { I18nController } from '../i18n/i18n-controller.js';\nimport type { PeacockStrings } from '../i18n/strings.js';\nimport type { MentionSuggestion } from '../../mention-input/mention-model.js';\nimport { RichTextAiController } from './ai-controller.js';\nimport { RichTextBlockHandleController } from './block-handle-controller.js';\nimport { RichTextBubbleController } from './bubble-controller.js';\nimport {\n activeTextStyle,\n BLOCKS,\n blocksFor,\n marksFor,\n type BlockCommand,\n} from './commands.js';\nimport {\n buildExtensions,\n SET_VALUE_META,\n type RichTextProfile,\n} from './extensions.js';\nimport { RichTextLinkController } from './link-controller.js';\nimport {\n RichTextMentionController,\n type RichTextMentionHost,\n} from './mention-controller.js';\nimport { RichTextSlashController } from './slash-controller.js';\n\n/** What the editor's constructor takes as its first content. */\nexport interface RichTextContent {\n content: Content;\n contentType?: 'markdown' | 'html' | 'json';\n}\n\n/** The table commands offered while the caret is in a table. */\nconst TABLE_ACTIONS = [\n 'addRowBelow',\n 'addColumnAfter',\n 'deleteRow',\n 'deleteColumn',\n 'deleteTable',\n] as const;\n\ntype TableAction = (typeof TABLE_ACTIONS)[number];\n\n/**\n * The shared base of Peacock's rich-text fields (`wc-markdown-editor`, `wc-html-editor`,\n * `wc-comment-composer`): a form-associated Tiptap editor inside `wc-field`, with a fixed toolbar,\n * a selection bubble, a slash menu, a link editor, a block handle, mentions and a source view.\n *\n * Subclasses say what the value is: the editor `profile`, how to read the value from the editor and\n * write it back, and the source language. Everything else, including the events, is here:\n * - `input` with `{ value }`, `debounce` milliseconds after the content stops changing;\n * - `change` with `{ value }` when focus leaves after an edit;\n * - `search` and `mention`, as on `wc-mention-input`.\n *\n * With a provider that offers them (ADR-030002), the editors also get AI actions on the selection\n * (from the bubble and the toolbar), Continue writing and Summarize above in the slash menu, and,\n * with `ai-completion`, ghost text. Results show in a preview until the person accepts them.\n */\nexport default abstract class RichTextInputBase\n extends InputBase\n implements RichTextMentionHost\n{\n // ── Properties ────────────────────────────────────────────────────────────\n\n /** The value: Markdown or HTML, depending on the editor. */\n @property({ type: String })\n value = '';\n\n /** Label shown above the editor. */\n @property({ type: String })\n label = '';\n\n /** Text shown while the editor is empty. Each editor has its own default. */\n @property({ type: String })\n placeholder = '';\n\n /** Visual style of the field. */\n @property({ type: String })\n variant: 'filled' | 'outlined' | 'default' = 'default';\n\n /** Size of the text: `sm` or `md`. */\n @property({ type: String, reflect: true })\n size: 'sm' | 'md' = 'md';\n\n /** Help shown below the editor. */\n @property({ type: String, attribute: 'helper-text' })\n helperText = '';\n\n /** Shows the error state. */\n @property({ type: Boolean })\n error = false;\n\n /** The error message shown with `error`. */\n @property({ type: String, attribute: 'error-text' })\n errorText = '';\n\n /** Milliseconds without typing before `input` fires. */\n @property({ type: Number })\n debounce = 250;\n\n /** Hides the fixed toolbar; formatting stays available from the selection bubble, `/` and shortcuts. */\n @property({ type: Boolean, attribute: 'hide-toolbar' })\n hideToolbar = false;\n\n /** Shows a \"Read only\" badge in the toolbar while the editor is read-only or disabled. Not shown with `hide-toolbar`. */\n @property({ type: Boolean, attribute: 'show-readonly-badge' })\n showReadonlyBadge = false;\n\n /** Maximum number of characters of text. Typing stops there, and a count shows below. */\n @property({ type: Number, attribute: 'maxlength' })\n maxlength?: number;\n\n /** Height of the empty editor, in lines. */\n @property({ type: Number })\n rows = 4;\n\n /** Lines the editor grows to before it scrolls. Without it, it keeps growing. */\n @property({ type: Number, attribute: 'max-rows' })\n maxRows?: number;\n\n /** Characters that start a mention, such as `\"@\"` or `\"@#\"`. Empty turns mentions off. */\n @property({ type: String })\n triggers = '@';\n\n /** Suggestions for the mention being typed; set them in answer to `search`. */\n @property({ attribute: false })\n suggestions: MentionSuggestion[] = [];\n\n /** Shows a loading row in the mention list while the app looks for suggestions. */\n @property({ type: Boolean, attribute: 'suggestions-loading' })\n suggestionsLoading = false;\n\n /** Overrides Peacock's strings for this instance only. */\n @property({ attribute: false })\n strings?: Partial<PeacockStrings>;\n\n /**\n * Suggests how to go on after a pause in typing, as ghost text at the end of the paragraph: Tab\n * takes it, Mod+→ takes a word, Escape dismisses it. Needs a provider with `complete`.\n */\n @property({ type: Boolean, reflect: true, attribute: 'ai-completion' })\n aiCompletion = false;\n\n /** Turns the AI actions and ghost text off for this editor, even when the page offers them. */\n @property({ type: Boolean, reflect: true, attribute: 'no-ai' })\n noAi = false;\n\n // ── State ─────────────────────────────────────────────────────────────────\n\n /** Whether the editor has focus. */\n @state() protected editorFocused = false;\n\n /** Whether the source view is showing. */\n @state() protected sourceView = false;\n\n // ── Queries ───────────────────────────────────────────────────────────────\n\n @query('.editor-root')\n private editorRoot?: HTMLElement;\n\n // ── Protected fields ──────────────────────────────────────────────────────\n\n /** The Tiptap editor, once created. */\n protected editor?: Editor;\n\n protected readonly i18n = new I18nController(this);\n\n protected readonly mentions = new RichTextMentionController(this, {\n editor: () => this.editor,\n i18n: this.i18n,\n });\n\n protected readonly ai = new RichTextAiController(this, {\n editor: () => this.editor,\n i18n: this.i18n,\n });\n\n protected readonly slash = new RichTextSlashController(this, {\n editor: () => this.editor,\n i18n: this.i18n,\n actions: () => this.ai.slashActions(),\n });\n\n protected readonly link = new RichTextLinkController(this, {\n editor: () => this.editor,\n i18n: this.i18n,\n });\n\n protected readonly bubble = new RichTextBubbleController(this, {\n editor: () => this.editor,\n i18n: this.i18n,\n allowed: () =>\n this.selectionBubble &&\n !this.sourceView &&\n !this.link.open &&\n !this.slash.visible &&\n !this.mentions.visible &&\n !this.ai.open,\n editLink: () => this.link.show(),\n extra: () => this.bubbleExtra(),\n });\n\n protected readonly blockHandle = new RichTextBlockHandleController(this, {\n editor: () => this.editor,\n i18n: this.i18n,\n allowed: () => !this.sourceView && this.showBlockHandle,\n insertAfter: position => this.slash.openAfterBlock(position),\n });\n\n // ── Private fields ────────────────────────────────────────────────────────\n\n private inputTimer?: number;\n\n private focusWithin = false;\n\n private valueAtFocus = '';\n\n // ── Abstract ──────────────────────────────────────────────────────────────\n\n /** Which nodes and marks the editor allows. */\n protected abstract readonly profile: RichTextProfile;\n\n /** The language of the source view. */\n protected abstract readonly sourceLanguage: 'markdown' | 'html';\n\n /** The icon of the source toggle. */\n protected abstract readonly sourceIcon: string;\n\n /** The value as the editor holds it now. */\n protected abstract readFromEditor(editor: Editor): string;\n\n /** The editor's content for a value. */\n protected abstract contentFor(value: string): RichTextContent;\n\n /** The placeholder when `placeholder` is empty. */\n protected abstract defaultPlaceholder(): string;\n\n /** Whether the block handle shows; the comment composer turns it off. */\n protected get showBlockHandle(): boolean {\n return true;\n }\n\n /** Whether `/` opens the block menu; the prompt input, which holds no blocks, turns it off. */\n protected get slashMenu(): boolean {\n return true;\n }\n\n /** Whether selecting text shows the selection bubble; the prompt input turns it off. */\n protected get selectionBubble(): boolean {\n return true;\n }\n\n /** Extensions a subclass adds, such as keyboard shortcuts. */\n protected extraExtensions(): Extensions {\n return [];\n }\n\n /** Buttons added to the selection bubble after the marks and link; Ask AI by default. */\n protected bubbleExtra(): TemplateResult | typeof nothing {\n return this.ai.bubbleButton();\n }\n\n /** The block tools in the toolbar: every block the schema allows except text styles. */\n protected toolbarBlocks(editor: Editor): BlockCommand[] {\n return blocksFor(editor).filter(block => !block.textStyle);\n }\n\n // ── Lifecycle ─────────────────────────────────────────────────────────────\n\n constructor() {\n super();\n this.addEventListener('focusin', this.onFocusIn);\n this.addEventListener('focusout', this.onFocusOut);\n }\n\n override connectedCallback() {\n super.connectedCallback();\n // Reconnected after a move: the editor was destroyed on disconnect.\n if (this.hasUpdated && !this.editor) this.createEditor();\n }\n\n override disconnectedCallback() {\n super.disconnectedCallback();\n this.flushInput();\n this.destroyEditor();\n }\n\n protected override firstUpdated() {\n this.createEditor();\n }\n\n protected override willUpdate(changed: PropertyValues<this>) {\n super.willUpdate(changed);\n // Load a new value before validity is computed in updated().\n const { editor } = this;\n if (!editor || !changed.has('value')) return;\n const current = this.normalizeValue(this.readFromEditor(editor));\n if (current === this.normalizeValue(this.value)) return;\n const { content, contentType } = this.contentFor(this.value);\n editor\n .chain()\n .setMeta(SET_VALUE_META, true)\n .setContent(content, { emitUpdate: false, contentType })\n .run();\n }\n\n protected override updated(changed: PropertyValues<this>) {\n super.updated(changed);\n const { editor } = this;\n if (!editor) return;\n\n if (changed.has('triggers') || changed.has('maxlength')) {\n this.destroyEditor();\n this.createEditor();\n return;\n }\n\n if (changed.has('disabled') || changed.has('readonly')) {\n editor.setEditable(!(this.disabled || this.readonly));\n }\n\n if (changed.has('placeholder') || changed.has('strings')) {\n // The placeholder is a decoration; an empty transaction redraws it.\n editor.view.dispatch(editor.state.tr.setMeta('placeholder', true));\n }\n }\n\n // ── Public methods ────────────────────────────────────────────────────────\n\n override focus(options?: Parameters<HTMLElement['focus']>[0]) {\n if (this.editor && !this.sourceView) this.editor.commands.focus();\n else super.focus(options);\n }\n\n // ── Protected methods ─────────────────────────────────────────────────────\n\n /** Line endings and trailing whitespace do not count as changes. */\n protected normalizeValue(value: string): string {\n return (value ?? '').replace(/\\r\\n/g, '\\n').replace(/\\s+$/, '');\n }\n\n protected override computeValidity(): ControlValidity {\n const base = super.computeValidity();\n if (Object.values(base.flags).some(Boolean)) return base;\n const max = this.maxlength;\n if (typeof max === 'number' && max >= 0 && this.characters() > max) {\n return {\n flags: { tooLong: true },\n message: this.i18n.t('richTextTooLong')(max),\n };\n }\n return base;\n }\n\n /** The number of characters of text, as `maxlength` counts them. */\n protected characters(): number {\n return this.editor?.state.doc.textContent.length ?? 0;\n }\n\n /** Whether the editor holds nothing: a single empty paragraph. */\n protected isEditorEmpty(editor: Editor): boolean {\n const { doc } = editor.state;\n const first = doc.firstChild;\n return (\n doc.childCount <= 1 &&\n (!first || (first.type.name === 'paragraph' && first.content.size === 0))\n );\n }\n\n /** Runs an editor command, unless the editor is disabled or read-only. */\n protected run(command: (editor: Editor) => void) {\n const { editor } = this;\n if (!editor || this.disabled || this.readonly) return;\n command(editor);\n }\n\n // ── Private methods: editor ───────────────────────────────────────────────\n\n private createEditor() {\n const root = this.editorRoot;\n if (!root || this.editor) return;\n const { content, contentType } = this.contentFor(this.value);\n this.editor = new Editor({\n element: root,\n extensions: buildExtensions(this.profile, {\n placeholder: () => this.placeholder || this.defaultPlaceholder(),\n maxlength: this.maxlength,\n mentions: this.triggers ? this.mentions.suggestionOptions() : [],\n extra: [\n this.ai.extension(),\n ...(this.slashMenu ? [this.slash.extension()] : []),\n this.link.extension(),\n this.blockHandle.extension(),\n ...this.extraExtensions(),\n ],\n }),\n content,\n contentType,\n editable: !(this.disabled || this.readonly),\n editorProps: {\n attributes: {\n role: 'textbox',\n 'aria-multiline': 'true',\n 'aria-label':\n this.label || this.placeholder || this.defaultPlaceholder(),\n },\n },\n onFocus: () => {\n this.editorFocused = true;\n },\n onBlur: () => {\n this.editorFocused = false;\n },\n onUpdate: () => this.onEditorUpdate(),\n onTransaction: () => this.requestUpdate(),\n });\n this.requestUpdate();\n }\n\n private destroyEditor() {\n this.editor?.destroy();\n this.editor = undefined;\n }\n\n private onEditorUpdate() {\n const { editor } = this;\n if (!editor) return;\n const next = this.normalizeValue(this.readFromEditor(editor));\n if (next === this.normalizeValue(this.value)) return;\n this.value = next;\n this.queueInput();\n }\n\n // ── Private methods: events ───────────────────────────────────────────────\n\n private emit(type: 'input' | 'change') {\n this.dispatchEvent(\n new CustomEvent(type, {\n detail: { value: this.value },\n bubbles: true,\n composed: true,\n }),\n );\n }\n\n private queueInput() {\n window.clearTimeout(this.inputTimer);\n this.inputTimer = window.setTimeout(() => {\n this.inputTimer = undefined;\n this.emit('input');\n }, this.debounce);\n }\n\n /** Fires a pending `input` now. */\n private flushInput() {\n if (this.inputTimer === undefined) return;\n window.clearTimeout(this.inputTimer);\n this.inputTimer = undefined;\n this.emit('input');\n }\n\n private onFocusIn = () => {\n if (this.focusWithin) return;\n this.focusWithin = true;\n this.valueAtFocus = this.value;\n };\n\n private onFocusOut = (event: FocusEvent) => {\n // Focus moving between parts of the editor arrives retargeted to the host.\n const next = event.relatedTarget as Node | null;\n if (next && (next === this || this.contains(next))) return;\n this.focusWithin = false;\n this.flushInput();\n if (this.value === this.valueAtFocus) return;\n this.valueAtFocus = this.value;\n this.emit('change');\n };\n\n private onSourceInput = (event: CustomEvent<{ value: string }>) => {\n event.stopPropagation();\n const next = event.detail?.value ?? '';\n if (next === this.value) return;\n this.value = next;\n this.queueInput();\n };\n\n private toggleSource = () => {\n const { editor } = this;\n if (editor && !this.sourceView) {\n // Take the editor's latest value before showing it as source.\n this.value = this.normalizeValue(this.readFromEditor(editor));\n }\n this.sourceView = !this.sourceView;\n if (!this.sourceView) {\n this.updateComplete.then(() => this.editor?.commands.focus());\n }\n };\n\n private onTextStyle = (event: CustomEvent<{ item: HTMLElement }>) => {\n event.stopPropagation();\n const id = event.detail.item.getAttribute('value');\n const block: BlockCommand | undefined = BLOCKS.find(b => b.id === id);\n if (block) this.run(editor => block.run(editor.chain().focus()).run());\n };\n\n private onTableAction = (event: CustomEvent<{ item: HTMLElement }>) => {\n event.stopPropagation();\n const action = event.detail.item.getAttribute('value') as TableAction;\n this.run(editor => {\n const chain = editor.chain().focus();\n const commands: Record<TableAction, () => boolean> = {\n addRowBelow: () => chain.addRowAfter().run(),\n addColumnAfter: () => chain.addColumnAfter().run(),\n deleteRow: () => chain.deleteRow().run(),\n deleteColumn: () => chain.deleteColumn().run(),\n deleteTable: () => chain.deleteTable().run(),\n };\n commands[action]?.();\n });\n };\n\n // ── Render helpers ────────────────────────────────────────────────────────\n\n protected toolButton(\n icon: string,\n label: string,\n action: () => void,\n selected?: boolean,\n ): TemplateResult {\n return html`<wc-icon-button\n class=\"tool\"\n variant=\"text\"\n color=\"surface\"\n shape=\"round\"\n size=\"xs\"\n ?toggle=${selected !== undefined}\n ?selected=${!!selected}\n ?disabled=${this.disabled || this.readonly}\n aria-label=${label}\n tooltip=${label}\n @click=${action}\n ><wc-icon name=${icon}></wc-icon\n ></wc-icon-button>`;\n }\n\n private renderTextStyle(editor: Editor) {\n const styles = blocksFor(editor).filter(block => block.textStyle);\n if (styles.length < 2) return nothing;\n const active = activeTextStyle(editor);\n return html`<wc-dropdown-button\n class=\"text-style\"\n size=\"xs\"\n variant=\"text\"\n color=\"surface\"\n aria-label=${this.i18n.t('textStyle')}\n ?disabled=${this.disabled || this.readonly}\n @menu-item-activate=${this.onTextStyle}\n >\n ${this.i18n.t(active?.id ?? 'paragraph')}\n ${styles.map(\n block =>\n html`<wc-menu-item\n slot=\"menu\"\n type=\"radio\"\n value=${block.id}\n ?selected=${block === active}\n >${this.i18n.t(block.id)}</wc-menu-item\n >`,\n )}\n </wc-dropdown-button>\n <wc-divider orientation=\"vertical\"></wc-divider>`;\n }\n\n private renderTableTools(editor: Editor) {\n if (!editor.isActive('table')) return nothing;\n return html`<wc-divider orientation=\"vertical\"></wc-divider>\n <wc-dropdown-button\n class=\"table-tools\"\n size=\"xs\"\n variant=\"text\"\n color=\"surface\"\n ?disabled=${this.disabled || this.readonly}\n @menu-item-activate=${this.onTableAction}\n >\n ${this.i18n.t('table')}\n ${TABLE_ACTIONS.map(\n action =>\n html`<wc-menu-item slot=\"menu\" value=${action}\n >${this.i18n.t(action)}</wc-menu-item\n >`,\n )}\n </wc-dropdown-button>`;\n }\n\n /** The formatting tools: text style, marks, link, blocks, mention and table actions. */\n protected renderTools(editor: Editor): TemplateResult {\n const { i18n } = this;\n return html`${this.renderTextStyle(editor)}\n ${marksFor(editor).map(mark =>\n this.toolButton(\n mark.icon,\n i18n.t(mark.id),\n () => this.run(e => mark.run(e.chain().focus()).run()),\n editor.isActive(mark.mark),\n ),\n )}\n ${editor.schema.marks.link\n ? this.toolButton(\n 'link',\n i18n.t('link'),\n () => this.link.show(),\n editor.isActive('link'),\n )\n : nothing}\n <wc-divider orientation=\"vertical\"></wc-divider>\n ${this.toolbarBlocks(editor).map(block =>\n this.toolButton(\n block.icon,\n i18n.t(block.id),\n () => this.run(e => block.run(e.chain().focus()).run()),\n block.id === 'divider' || block.id === 'table'\n ? undefined\n : block.active(editor),\n ),\n )}\n ${this.triggers\n ? this.toolButton('alternate_email', i18n.t('mentionSomeone'), () =>\n this.mentions.insertTrigger(),\n )\n : nothing}\n ${this.renderTableTools(editor)} ${this.ai.toolbarButton()}`;\n }\n\n /** Keeps the editor's selection when a tool is pressed. */\n protected keepSelection = (event: MouseEvent) => {\n if (!this.sourceView) event.preventDefault();\n };\n\n /**\n * The toolbar. A read-only or disabled editor shows no formatting tools, which could do\n * nothing: only View source, and the \"Read only\" badge with `show-readonly-badge`.\n */\n private renderToolbar() {\n if (this.hideToolbar) return nothing;\n const { editor, i18n } = this;\n const locked = this.disabled || this.readonly;\n return html`<wc-toolbar\n class=\"toolbar\"\n variant=\"flat\"\n aria-label=${i18n.t('formattingToolbar')}\n @mousedown=${this.keepSelection}\n >\n ${editor && !this.sourceView && !locked\n ? this.renderTools(editor)\n : nothing}\n <span class=\"toolbar-spacer\" aria-hidden=\"true\"></span>\n ${locked && this.showReadonlyBadge\n ? html`<span class=\"read-only-badge\">\n <wc-icon name=\"lock\"></wc-icon>${i18n.t('readOnly')}\n </span>`\n : nothing}\n <wc-icon-button\n class=\"tool source-toggle\"\n variant=\"text\"\n color=\"surface\"\n shape=\"round\"\n size=\"xs\"\n toggle\n ?selected=${this.sourceView}\n ?disabled=${this.disabled}\n aria-label=${i18n.t('viewSource')}\n tooltip=${i18n.t('viewSource')}\n @click=${this.toggleSource}\n ><wc-icon name=${this.sourceIcon}></wc-icon\n ></wc-icon-button>\n </wc-toolbar>`;\n }\n\n /** The count below the field, with `maxlength`. */\n private textCount(): string {\n const max = this.maxlength;\n if (typeof max !== 'number' || max < 0) return '';\n return this.i18n.t('characterCount')(this.characters(), max);\n }\n\n /**\n * A block dragged with the handle drops anywhere in the area, padding included, by height. The\n * listeners capture, so ProseMirror's own drop handling never sees these drags. `dragenter` is\n * cancelled too: outside editable content the browser only drops where it was.\n */\n private readonly areaDragOver = {\n handleEvent: (event: DragEvent) => this.blockHandle.dragOver(event),\n capture: true,\n };\n\n private readonly areaDrop = {\n handleEvent: (event: DragEvent) => this.blockHandle.drop(event),\n capture: true,\n };\n\n /** The editable area: Tiptap mounts into `.editor-root`. */\n protected renderEditorArea(): TemplateResult {\n const lines: Record<string, string> = { '--_rows': String(this.rows) };\n if (this.maxRows) lines['--_max-rows'] = String(this.maxRows);\n return html`<div\n class=${classMap({\n 'editor-area': true,\n hidden: this.sourceView,\n 'with-handle': this.showBlockHandle && !this.disabled && !this.readonly,\n })}\n style=${styleMap(lines)}\n @input=${(event: Event) => event.stopPropagation()}\n @beforeinput=${(event: Event) => event.stopPropagation()}\n @dragenter=${this.areaDragOver}\n @dragover=${this.areaDragOver}\n @drop=${this.areaDrop}\n >\n <div class=\"editor-root\"></div>\n </div>`;\n }\n\n /** The mention list, slash menu, selection bubble, link editor and block handle. */\n protected renderPopups(): TemplateResult {\n return html`${this.mentions.render()}\n <span class=\"slash-anchor\" aria-hidden=\"true\"></span>\n ${this.slash.render()} ${this.bubble.render()} ${this.link.render()}\n ${this.blockHandle.render()} ${this.blockHandle.renderDropLine()}\n ${this.ai.render()}`;\n }\n\n // ── Render ────────────────────────────────────────────────────────────────\n\n render() {\n const empty = !this.value || !this.value.trim();\n const { validationText } = this;\n return html`\n <wc-field\n class=${classMap({\n 'rich-text-field': true,\n 'max-rows': !!this.maxRows,\n })}\n label=${this.label}\n ?required=${this.required}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n ?skeleton=${this.skeleton}\n ?focused=${this.editorFocused}\n ?error=${this.error || !!validationText}\n error-text=${this.error ? this.errorText : validationText}\n helper-text=${this.helperText}\n text-count=${this.textCount()}\n variant=${this.variant}\n ?populated=${!empty}\n .host=${this}\n >\n <div class=\"shell\">\n ${this.renderToolbar()} ${this.renderEditorArea()}\n ${this.sourceView\n ? html`<div class=\"source\">\n <wc-code-editor\n language=${this.sourceLanguage}\n size=${this.size}\n wrap\n .value=${this.value}\n ?readonly=${this.readonly}\n ?disabled=${this.disabled}\n @input=${this.onSourceInput}\n @change=${(event: Event) => event.stopPropagation()}\n ></wc-code-editor>\n </div>`\n : nothing}\n </div>\n </wc-field>\n ${this.renderPopups()}\n `;\n }\n}\n"],"names":["html","nothing","classMap","styleMap","property","state","query"],"mappings":";;;;;;;;;;AAsCA;AACA,MAAM,aAAa,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C,IAAAA,CAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AACI,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAOlC,UAAA,CAAA;AADC,IAAAA,CAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE;AACjD,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAIrB,UAAA,CAAA;AADC,IAAAA,CAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE;AACjD,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAKM,UAAA,CAAA;AAAlB,IAAAC,CAAK;AAAmC,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,eAAA,EAAA,MAAA,CAAA;AAGtB,UAAA,CAAA;AAAlB,IAAAA,CAAK;AAAgC,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAK9B,UAAA,CAAA;IADPC,CAAK,CAAC,cAAc;AACY,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;;;;"}
1
+ {"version":3,"file":"rich-text-input-base-BCmnkpuV.js","sources":["../../src/__internal/rich-text/rich-text-input-base.ts"],"sourcesContent":["import { html, nothing, type PropertyValues, type TemplateResult } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport { Editor, type Content, type Extensions } from '@tiptap/core';\n\nimport InputBase, { type ControlValidity } from '@/__internal/input-base.js';\nimport { I18nController } from '../i18n/i18n-controller.js';\nimport type { PeacockStrings } from '../i18n/strings.js';\nimport type { MentionSuggestion } from '../../mention-input/mention-model.js';\nimport { RichTextAiController } from './ai-controller.js';\nimport { RichTextBlockHandleController } from './block-handle-controller.js';\nimport { RichTextBubbleController } from './bubble-controller.js';\nimport {\n activeTextStyle,\n BLOCKS,\n blocksFor,\n marksFor,\n type BlockCommand,\n} from './commands.js';\nimport {\n buildExtensions,\n SET_VALUE_META,\n type RichTextProfile,\n} from './extensions.js';\nimport { RichTextLinkController } from './link-controller.js';\nimport {\n RichTextMentionController,\n type RichTextMentionHost,\n} from './mention-controller.js';\nimport { RichTextSlashController } from './slash-controller.js';\n\n/** What the editor's constructor takes as its first content. */\nexport interface RichTextContent {\n content: Content;\n contentType?: 'markdown' | 'html' | 'json';\n}\n\n/** The table commands offered while the caret is in a table. */\nconst TABLE_ACTIONS = [\n 'addRowBelow',\n 'addColumnAfter',\n 'deleteRow',\n 'deleteColumn',\n 'deleteTable',\n] as const;\n\ntype TableAction = (typeof TABLE_ACTIONS)[number];\n\n/**\n * The shared base of Peacock's rich-text fields (`wc-markdown-editor`, `wc-html-editor`,\n * `wc-comment-composer`): a form-associated Tiptap editor inside `wc-field`, with a fixed toolbar,\n * a selection bubble, a slash menu, a link editor, a block handle, mentions and a source view.\n *\n * Subclasses say what the value is: the editor `profile`, how to read the value from the editor and\n * write it back, and the source language. Everything else, including the events, is here:\n * - `input` with `{ value }`, `debounce` milliseconds after the content stops changing;\n * - `change` with `{ value }` when focus leaves after an edit;\n * - `search` and `mention`, as on `wc-mention-input`.\n *\n * With a provider that offers them (ADR-030002), the editors also get AI actions on the selection\n * (from the bubble and the toolbar), Continue writing and Summarize above in the slash menu, and,\n * with `ai-completion`, ghost text. Results show in a preview until the person accepts them.\n */\nexport default abstract class RichTextInputBase\n extends InputBase\n implements RichTextMentionHost\n{\n // ── Properties ────────────────────────────────────────────────────────────\n\n /** The value: Markdown or HTML, depending on the editor. */\n @property({ type: String })\n value = '';\n\n /** Label shown above the editor. */\n @property({ type: String })\n label = '';\n\n /** Text shown while the editor is empty. Each editor has its own default. */\n @property({ type: String })\n placeholder = '';\n\n /** Visual style of the field. */\n @property({ type: String })\n variant: 'filled' | 'outlined' | 'default' = 'default';\n\n /** Size of the text: `sm` or `md`. */\n @property({ type: String, reflect: true })\n size: 'sm' | 'md' = 'md';\n\n /** Help shown below the editor. */\n @property({ type: String, attribute: 'helper-text' })\n helperText = '';\n\n /** Shows the error state. */\n @property({ type: Boolean })\n error = false;\n\n /** The error message shown with `error`. */\n @property({ type: String, attribute: 'error-text' })\n errorText = '';\n\n /** Milliseconds without typing before `input` fires. */\n @property({ type: Number })\n debounce = 250;\n\n /** Hides the fixed toolbar; formatting stays available from the selection bubble, `/` and shortcuts. */\n @property({ type: Boolean, attribute: 'hide-toolbar' })\n hideToolbar = false;\n\n /** Shows a \"Read only\" badge in the toolbar while the editor is read-only or disabled. Not shown with `hide-toolbar`. */\n @property({ type: Boolean, attribute: 'show-readonly-badge' })\n showReadonlyBadge = false;\n\n /** Maximum number of characters of text. Typing stops there, and a count shows below. */\n @property({ type: Number, attribute: 'maxlength' })\n maxlength?: number;\n\n /** Height of the empty editor, in lines. */\n @property({ type: Number })\n rows = 4;\n\n /** Lines the editor grows to before it scrolls. Without it, it keeps growing. */\n @property({ type: Number, attribute: 'max-rows' })\n maxRows?: number;\n\n /** Characters that start a mention, such as `\"@\"` or `\"@#\"`. Empty turns mentions off. */\n @property({ type: String })\n triggers = '@';\n\n /** Suggestions for the mention being typed; set them in answer to `search`. */\n @property({ attribute: false })\n suggestions: MentionSuggestion[] = [];\n\n /** Shows a loading row in the mention list while the app looks for suggestions. */\n @property({ type: Boolean, attribute: 'suggestions-loading' })\n suggestionsLoading = false;\n\n /** Overrides Peacock's strings for this instance only. */\n @property({ attribute: false })\n strings?: Partial<PeacockStrings>;\n\n /**\n * Suggests how to go on after a pause in typing, as ghost text at the end of the paragraph: Tab\n * takes it, Mod+→ takes a word, Escape dismisses it. Needs a provider with `complete`.\n */\n @property({ type: Boolean, reflect: true, attribute: 'ai-completion' })\n aiCompletion = false;\n\n /** Turns the AI actions and ghost text off for this editor, even when the page offers them. */\n @property({ type: Boolean, reflect: true, attribute: 'no-ai' })\n noAi = false;\n\n // ── State ─────────────────────────────────────────────────────────────────\n\n /** Whether the editor has focus. */\n @state() protected editorFocused = false;\n\n /** Whether the source view is showing. */\n @state() protected sourceView = false;\n\n // ── Queries ───────────────────────────────────────────────────────────────\n\n @query('.editor-root')\n private editorRoot?: HTMLElement;\n\n // ── Protected fields ──────────────────────────────────────────────────────\n\n /** The Tiptap editor, once created. */\n protected editor?: Editor;\n\n protected readonly i18n = new I18nController(this);\n\n protected readonly mentions = new RichTextMentionController(this, {\n editor: () => this.editor,\n i18n: this.i18n,\n });\n\n protected readonly ai = new RichTextAiController(this, {\n editor: () => this.editor,\n i18n: this.i18n,\n });\n\n protected readonly slash = new RichTextSlashController(this, {\n editor: () => this.editor,\n i18n: this.i18n,\n actions: () => this.ai.slashActions(),\n });\n\n protected readonly link = new RichTextLinkController(this, {\n editor: () => this.editor,\n i18n: this.i18n,\n });\n\n protected readonly bubble = new RichTextBubbleController(this, {\n editor: () => this.editor,\n i18n: this.i18n,\n allowed: () =>\n this.selectionBubble &&\n !this.sourceView &&\n !this.link.open &&\n !this.slash.visible &&\n !this.mentions.visible &&\n !this.ai.open,\n editLink: () => this.link.show(),\n extra: () => this.bubbleExtra(),\n });\n\n protected readonly blockHandle = new RichTextBlockHandleController(this, {\n editor: () => this.editor,\n i18n: this.i18n,\n allowed: () => !this.sourceView && this.showBlockHandle,\n insertAfter: position => this.slash.openAfterBlock(position),\n });\n\n // ── Private fields ────────────────────────────────────────────────────────\n\n private inputTimer?: number;\n\n private focusWithin = false;\n\n private valueAtFocus = '';\n\n // ── Abstract ──────────────────────────────────────────────────────────────\n\n /** Which nodes and marks the editor allows. */\n protected abstract readonly profile: RichTextProfile;\n\n /** The language of the source view. */\n protected abstract readonly sourceLanguage: 'markdown' | 'html';\n\n /** The icon of the source toggle. */\n protected abstract readonly sourceIcon: string;\n\n /** The value as the editor holds it now. */\n protected abstract readFromEditor(editor: Editor): string;\n\n /** The editor's content for a value. */\n protected abstract contentFor(value: string): RichTextContent;\n\n /** The placeholder when `placeholder` is empty. */\n protected abstract defaultPlaceholder(): string;\n\n /** Whether the block handle shows; the comment composer turns it off. */\n protected get showBlockHandle(): boolean {\n return true;\n }\n\n /** Whether `/` opens the block menu; the prompt input, which holds no blocks, turns it off. */\n protected get slashMenu(): boolean {\n return true;\n }\n\n /** Whether selecting text shows the selection bubble; the prompt input turns it off. */\n protected get selectionBubble(): boolean {\n return true;\n }\n\n /** Extensions a subclass adds, such as keyboard shortcuts. */\n protected extraExtensions(): Extensions {\n return [];\n }\n\n /** Buttons added to the selection bubble after the marks and link; Ask AI by default. */\n protected bubbleExtra(): TemplateResult | typeof nothing {\n return this.ai.bubbleButton();\n }\n\n /** The block tools in the toolbar: every block the schema allows except text styles. */\n protected toolbarBlocks(editor: Editor): BlockCommand[] {\n return blocksFor(editor).filter(block => !block.textStyle);\n }\n\n // ── Lifecycle ─────────────────────────────────────────────────────────────\n\n constructor() {\n super();\n this.addEventListener('focusin', this.onFocusIn);\n this.addEventListener('focusout', this.onFocusOut);\n }\n\n override connectedCallback() {\n super.connectedCallback();\n // Reconnected after a move: the editor was destroyed on disconnect.\n if (this.hasUpdated && !this.editor) this.createEditor();\n }\n\n override disconnectedCallback() {\n super.disconnectedCallback();\n this.flushInput();\n this.destroyEditor();\n }\n\n protected override firstUpdated() {\n this.createEditor();\n }\n\n protected override willUpdate(changed: PropertyValues<this>) {\n super.willUpdate(changed);\n // Load a new value before validity is computed in updated().\n const { editor } = this;\n if (!editor || !changed.has('value')) return;\n const current = this.normalizeValue(this.readFromEditor(editor));\n if (current === this.normalizeValue(this.value)) return;\n const { content, contentType } = this.contentFor(this.value);\n editor\n .chain()\n .setMeta(SET_VALUE_META, true)\n .setContent(content, { emitUpdate: false, contentType })\n .run();\n }\n\n protected override updated(changed: PropertyValues<this>) {\n super.updated(changed);\n const { editor } = this;\n if (!editor) return;\n\n if (changed.has('triggers') || changed.has('maxlength')) {\n this.destroyEditor();\n this.createEditor();\n return;\n }\n\n if (changed.has('disabled') || changed.has('readonly')) {\n editor.setEditable(!(this.disabled || this.readonly));\n }\n\n if (changed.has('placeholder') || changed.has('strings')) {\n // The placeholder is a decoration; an empty transaction redraws it.\n editor.view.dispatch(editor.state.tr.setMeta('placeholder', true));\n }\n }\n\n // ── Public methods ────────────────────────────────────────────────────────\n\n override focus(options?: Parameters<HTMLElement['focus']>[0]) {\n if (this.editor && !this.sourceView) this.editor.commands.focus();\n else super.focus(options);\n }\n\n // ── Protected methods ─────────────────────────────────────────────────────\n\n /** Line endings and trailing whitespace do not count as changes. */\n protected normalizeValue(value: string): string {\n return (value ?? '').replace(/\\r\\n/g, '\\n').replace(/\\s+$/, '');\n }\n\n protected override computeValidity(): ControlValidity {\n const base = super.computeValidity();\n if (Object.values(base.flags).some(Boolean)) return base;\n const max = this.maxlength;\n if (typeof max === 'number' && max >= 0 && this.characters() > max) {\n return {\n flags: { tooLong: true },\n message: this.i18n.t('richTextTooLong')(max),\n };\n }\n return base;\n }\n\n /** The number of characters of text, as `maxlength` counts them. */\n protected characters(): number {\n return this.editor?.state.doc.textContent.length ?? 0;\n }\n\n /** Whether the editor holds nothing: a single empty paragraph. */\n protected isEditorEmpty(editor: Editor): boolean {\n const { doc } = editor.state;\n const first = doc.firstChild;\n return (\n doc.childCount <= 1 &&\n (!first || (first.type.name === 'paragraph' && first.content.size === 0))\n );\n }\n\n /** Runs an editor command, unless the editor is disabled or read-only. */\n protected run(command: (editor: Editor) => void) {\n const { editor } = this;\n if (!editor || this.disabled || this.readonly) return;\n command(editor);\n }\n\n // ── Private methods: editor ───────────────────────────────────────────────\n\n private createEditor() {\n const root = this.editorRoot;\n if (!root || this.editor) return;\n const { content, contentType } = this.contentFor(this.value);\n this.editor = new Editor({\n element: root,\n extensions: buildExtensions(this.profile, {\n placeholder: () => this.placeholder || this.defaultPlaceholder(),\n maxlength: this.maxlength,\n mentions: this.triggers ? this.mentions.suggestionOptions() : [],\n extra: [\n this.ai.extension(),\n ...(this.slashMenu ? [this.slash.extension()] : []),\n this.link.extension(),\n this.blockHandle.extension(),\n ...this.extraExtensions(),\n ],\n }),\n content,\n contentType,\n editable: !(this.disabled || this.readonly),\n editorProps: {\n attributes: {\n role: 'textbox',\n 'aria-multiline': 'true',\n 'aria-label':\n this.label || this.placeholder || this.defaultPlaceholder(),\n },\n },\n onFocus: () => {\n this.editorFocused = true;\n },\n onBlur: () => {\n this.editorFocused = false;\n },\n onUpdate: () => this.onEditorUpdate(),\n onTransaction: () => this.requestUpdate(),\n });\n this.requestUpdate();\n }\n\n private destroyEditor() {\n this.editor?.destroy();\n this.editor = undefined;\n }\n\n private onEditorUpdate() {\n const { editor } = this;\n if (!editor) return;\n const next = this.normalizeValue(this.readFromEditor(editor));\n if (next === this.normalizeValue(this.value)) return;\n this.value = next;\n this.queueInput();\n }\n\n // ── Private methods: events ───────────────────────────────────────────────\n\n private emit(type: 'input' | 'change') {\n this.dispatchEvent(\n new CustomEvent(type, {\n detail: { value: this.value },\n bubbles: true,\n composed: true,\n }),\n );\n }\n\n private queueInput() {\n window.clearTimeout(this.inputTimer);\n this.inputTimer = window.setTimeout(() => {\n this.inputTimer = undefined;\n this.emit('input');\n }, this.debounce);\n }\n\n /** Fires a pending `input` now. */\n private flushInput() {\n if (this.inputTimer === undefined) return;\n window.clearTimeout(this.inputTimer);\n this.inputTimer = undefined;\n this.emit('input');\n }\n\n private onFocusIn = () => {\n if (this.focusWithin) return;\n this.focusWithin = true;\n this.valueAtFocus = this.value;\n };\n\n private onFocusOut = (event: FocusEvent) => {\n // Focus moving between parts of the editor arrives retargeted to the host.\n const next = event.relatedTarget as Node | null;\n if (next && (next === this || this.contains(next))) return;\n this.focusWithin = false;\n this.flushInput();\n if (this.value === this.valueAtFocus) return;\n this.valueAtFocus = this.value;\n this.emit('change');\n };\n\n private onSourceInput = (event: CustomEvent<{ value: string }>) => {\n event.stopPropagation();\n const next = event.detail?.value ?? '';\n if (next === this.value) return;\n this.value = next;\n this.queueInput();\n };\n\n private toggleSource = () => {\n const { editor } = this;\n if (editor && !this.sourceView) {\n // Take the editor's latest value before showing it as source.\n this.value = this.normalizeValue(this.readFromEditor(editor));\n }\n this.sourceView = !this.sourceView;\n if (!this.sourceView) {\n this.updateComplete.then(() => this.editor?.commands.focus());\n }\n };\n\n private onTextStyle = (event: CustomEvent<{ item: HTMLElement }>) => {\n event.stopPropagation();\n const id = event.detail.item.getAttribute('value');\n const block: BlockCommand | undefined = BLOCKS.find(b => b.id === id);\n if (block) this.run(editor => block.run(editor.chain().focus()).run());\n };\n\n private onTableAction = (event: CustomEvent<{ item: HTMLElement }>) => {\n event.stopPropagation();\n const action = event.detail.item.getAttribute('value') as TableAction;\n this.run(editor => {\n const chain = editor.chain().focus();\n const commands: Record<TableAction, () => boolean> = {\n addRowBelow: () => chain.addRowAfter().run(),\n addColumnAfter: () => chain.addColumnAfter().run(),\n deleteRow: () => chain.deleteRow().run(),\n deleteColumn: () => chain.deleteColumn().run(),\n deleteTable: () => chain.deleteTable().run(),\n };\n commands[action]?.();\n });\n };\n\n // ── Render helpers ────────────────────────────────────────────────────────\n\n protected toolButton(\n icon: string,\n label: string,\n action: () => void,\n selected?: boolean,\n ): TemplateResult {\n return html`<wc-icon-button\n class=\"tool\"\n variant=\"text\"\n color=\"surface\"\n shape=\"round\"\n size=\"xs\"\n ?toggle=${selected !== undefined}\n ?selected=${!!selected}\n ?disabled=${this.disabled || this.readonly}\n aria-label=${label}\n tooltip=${label}\n @click=${action}\n ><wc-icon name=${icon}></wc-icon\n ></wc-icon-button>`;\n }\n\n private renderTextStyle(editor: Editor) {\n const styles = blocksFor(editor).filter(block => block.textStyle);\n if (styles.length < 2) return nothing;\n const active = activeTextStyle(editor);\n return html`<wc-dropdown-button\n class=\"text-style\"\n size=\"xs\"\n variant=\"text\"\n color=\"surface\"\n aria-label=${this.i18n.t('textStyle')}\n ?disabled=${this.disabled || this.readonly}\n @menu-item-activate=${this.onTextStyle}\n >\n ${this.i18n.t(active?.id ?? 'paragraph')}\n ${styles.map(\n block =>\n html`<wc-menu-item\n slot=\"menu\"\n type=\"radio\"\n value=${block.id}\n ?selected=${block === active}\n >${this.i18n.t(block.id)}</wc-menu-item\n >`,\n )}\n </wc-dropdown-button>\n <wc-divider orientation=\"vertical\"></wc-divider>`;\n }\n\n private renderTableTools(editor: Editor) {\n if (!editor.isActive('table')) return nothing;\n return html`<wc-divider orientation=\"vertical\"></wc-divider>\n <wc-dropdown-button\n class=\"table-tools\"\n size=\"xs\"\n variant=\"text\"\n color=\"surface\"\n ?disabled=${this.disabled || this.readonly}\n @menu-item-activate=${this.onTableAction}\n >\n ${this.i18n.t('table')}\n ${TABLE_ACTIONS.map(\n action =>\n html`<wc-menu-item slot=\"menu\" value=${action}\n >${this.i18n.t(action)}</wc-menu-item\n >`,\n )}\n </wc-dropdown-button>`;\n }\n\n /** The formatting tools: text style, marks, link, blocks, mention and table actions. */\n protected renderTools(editor: Editor): TemplateResult {\n const { i18n } = this;\n return html`${this.renderTextStyle(editor)}\n ${marksFor(editor).map(mark =>\n this.toolButton(\n mark.icon,\n i18n.t(mark.id),\n () => this.run(e => mark.run(e.chain().focus()).run()),\n editor.isActive(mark.mark),\n ),\n )}\n ${editor.schema.marks.link\n ? this.toolButton(\n 'link',\n i18n.t('link'),\n () => this.link.show(),\n editor.isActive('link'),\n )\n : nothing}\n <wc-divider orientation=\"vertical\"></wc-divider>\n ${this.toolbarBlocks(editor).map(block =>\n this.toolButton(\n block.icon,\n i18n.t(block.id),\n () => this.run(e => block.run(e.chain().focus()).run()),\n block.id === 'divider' || block.id === 'table'\n ? undefined\n : block.active(editor),\n ),\n )}\n ${this.triggers\n ? this.toolButton('alternate_email', i18n.t('mentionSomeone'), () =>\n this.mentions.insertTrigger(),\n )\n : nothing}\n ${this.renderTableTools(editor)} ${this.ai.toolbarButton()}`;\n }\n\n /** Keeps the editor's selection when a tool is pressed. */\n protected keepSelection = (event: MouseEvent) => {\n if (!this.sourceView) event.preventDefault();\n };\n\n /**\n * The toolbar. A read-only or disabled editor shows no formatting tools, which could do\n * nothing: only View source, and the \"Read only\" badge with `show-readonly-badge`.\n */\n private renderToolbar() {\n if (this.hideToolbar) return nothing;\n const { editor, i18n } = this;\n const locked = this.disabled || this.readonly;\n return html`<wc-toolbar\n class=\"toolbar\"\n variant=\"flat\"\n aria-label=${i18n.t('formattingToolbar')}\n @mousedown=${this.keepSelection}\n >\n ${editor && !this.sourceView && !locked\n ? this.renderTools(editor)\n : nothing}\n <span class=\"toolbar-spacer\" aria-hidden=\"true\"></span>\n ${locked && this.showReadonlyBadge\n ? html`<span class=\"read-only-badge\">\n <wc-icon name=\"lock\"></wc-icon>${i18n.t('readOnly')}\n </span>`\n : nothing}\n <wc-icon-button\n class=\"tool source-toggle\"\n variant=\"text\"\n color=\"surface\"\n shape=\"round\"\n size=\"xs\"\n toggle\n ?selected=${this.sourceView}\n ?disabled=${this.disabled}\n aria-label=${i18n.t('viewSource')}\n tooltip=${i18n.t('viewSource')}\n @click=${this.toggleSource}\n ><wc-icon name=${this.sourceIcon}></wc-icon\n ></wc-icon-button>\n </wc-toolbar>`;\n }\n\n /** The count below the field, with `maxlength`. */\n private textCount(): string {\n const max = this.maxlength;\n if (typeof max !== 'number' || max < 0) return '';\n return this.i18n.t('characterCount')(this.characters(), max);\n }\n\n /**\n * A block dragged with the handle drops anywhere in the area, padding included, by height. The\n * listeners capture, so ProseMirror's own drop handling never sees these drags. `dragenter` is\n * cancelled too: outside editable content the browser only drops where it was.\n */\n private readonly areaDragOver = {\n handleEvent: (event: DragEvent) => this.blockHandle.dragOver(event),\n capture: true,\n };\n\n private readonly areaDrop = {\n handleEvent: (event: DragEvent) => this.blockHandle.drop(event),\n capture: true,\n };\n\n /** The editable area: Tiptap mounts into `.editor-root`. */\n protected renderEditorArea(): TemplateResult {\n const lines: Record<string, string> = { '--_rows': String(this.rows) };\n if (this.maxRows) lines['--_max-rows'] = String(this.maxRows);\n return html`<div\n class=${classMap({\n 'editor-area': true,\n hidden: this.sourceView,\n 'with-handle': this.showBlockHandle && !this.disabled && !this.readonly,\n })}\n style=${styleMap(lines)}\n @input=${(event: Event) => event.stopPropagation()}\n @beforeinput=${(event: Event) => event.stopPropagation()}\n @dragenter=${this.areaDragOver}\n @dragover=${this.areaDragOver}\n @drop=${this.areaDrop}\n >\n <div class=\"editor-root\"></div>\n </div>`;\n }\n\n /** The mention list, slash menu, selection bubble, link editor and block handle. */\n protected renderPopups(): TemplateResult {\n return html`${this.mentions.render()}\n <span class=\"slash-anchor\" aria-hidden=\"true\"></span>\n ${this.slash.render()} ${this.bubble.render()} ${this.link.render()}\n ${this.blockHandle.render()} ${this.blockHandle.renderDropLine()}\n ${this.ai.render()}`;\n }\n\n // ── Render ────────────────────────────────────────────────────────────────\n\n render() {\n const empty = !this.value || !this.value.trim();\n const { validationText } = this;\n return html`\n <wc-field\n class=${classMap({\n 'rich-text-field': true,\n 'max-rows': !!this.maxRows,\n })}\n label=${this.label}\n ?required=${this.required}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n ?skeleton=${this.skeleton}\n ?focused=${this.editorFocused}\n ?error=${this.error || !!validationText}\n error-text=${this.error ? this.errorText : validationText}\n helper-text=${this.helperText}\n text-count=${this.textCount()}\n variant=${this.variant}\n ?populated=${!empty}\n .host=${this}\n >\n <div class=\"shell\">\n ${this.renderToolbar()} ${this.renderEditorArea()}\n ${this.sourceView\n ? html`<div class=\"source\">\n <wc-code-editor\n language=${this.sourceLanguage}\n size=${this.size}\n wrap\n .value=${this.value}\n ?readonly=${this.readonly}\n ?disabled=${this.disabled}\n @input=${this.onSourceInput}\n @change=${(event: Event) => event.stopPropagation()}\n ></wc-code-editor>\n </div>`\n : nothing}\n </div>\n </wc-field>\n ${this.renderPopups()}\n `;\n }\n}\n"],"names":["html","nothing","classMap","styleMap","property","state","query"],"mappings":";;;;;;;;;;AAsCA;AACA,MAAM,aAAa,GAAG;IACpB,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AQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AACI,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAOlC,UAAA,CAAA;AADC,IAAAA,CAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE;AACjD,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAIrB,UAAA,CAAA;AADC,IAAAA,CAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE;AACjD,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAKM,UAAA,CAAA;AAAlB,IAAAC,CAAK;AAAmC,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,eAAA,EAAA,MAAA,CAAA;AAGtB,UAAA,CAAA;AAAlB,IAAAA,CAAK;AAAgC,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAK9B,UAAA,CAAA;IADPC,CAAK,CAAC,cAAc;AACY,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;;;;"}
@@ -122,7 +122,7 @@ var css_248z = i`* {
122
122
  z-index: 1;
123
123
  opacity: 0;
124
124
  pointer-events: none;
125
- transition: opacity 150ms ease;
125
+ transition: opacity var(--motion-spring-fast-effects-duration) var(--motion-spring-fast-effects-easing);
126
126
  }
127
127
 
128
128
  .top,
package/dist/search.js CHANGED
@@ -239,7 +239,7 @@ var css_248z$1 = i`* {
239
239
  color: var(--_icon-color);
240
240
  --icon-color: var(--_icon-color);
241
241
  outline: none;
242
- transition: background-color 150ms;
242
+ transition: background-color var(--motion-spring-fast-effects-duration) var(--motion-spring-fast-effects-easing);
243
243
  }
244
244
  .clear-button:hover:not([disabled]) {
245
245
  background-color: color-mix(in srgb, var(--_icon-color) 8%, transparent);
@@ -66,7 +66,7 @@ var css_248z = i`* {
66
66
  -webkit-user-select: none;
67
67
  background: transparent;
68
68
  overflow: hidden;
69
- transition: background-color 200ms ease, color 200ms ease;
69
+ transition: background-color var(--motion-spring-fast-effects-duration) var(--motion-spring-fast-effects-easing), color var(--motion-spring-fast-effects-duration) var(--motion-spring-fast-effects-easing);
70
70
  }
71
71
  .segment .content {
72
72
  position: relative;
@@ -98,7 +98,7 @@ var css_248z = i`* {
98
98
  background: var(--_segmented-button-state-layer-color);
99
99
  opacity: 0;
100
100
  pointer-events: none;
101
- transition: opacity 200ms ease;
101
+ transition: opacity var(--motion-spring-fast-effects-duration) var(--motion-spring-fast-effects-easing);
102
102
  }
103
103
  .segment {
104
104
  /* right-side divider between segments */
@@ -129,6 +129,11 @@ var css_248z = i`* {
129
129
  }
130
130
  .segment.selected .content {
131
131
  color: var(--segmented-button-selected-label-text-color, var(--_segmented-button-selected-label-text-color));
132
+ font-family: var(--typography-label-large-emphasized-font-family) !important;
133
+ font-size: var(--typography-label-large-emphasized-font-size) !important;
134
+ font-weight: var(--typography-label-large-emphasized-font-weight) !important;
135
+ line-height: var(--typography-label-large-emphasized-line-height) !important;
136
+ letter-spacing: var(--typography-label-large-emphasized-letter-spacing) !important;
132
137
  }
133
138
  .segment.selected .state-layer {
134
139
  background: var(--_segmented-button-selected-state-layer-color);
@@ -1 +1 @@
1
- {"version":3,"file":"segmented-button.js","sources":["../../src/segmented-button/segmented-button.ts"],"sourcesContent":["import { html, LitElement, nothing } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport styles from './segmented-button.scss';\n\n/**\n * @label Segmented Button\n * @tag wc-segmented-button\n * @rawTag segmented-button\n * @summary One option of a segmented button group.\n * @overview\n * <p>Use it inside a <code>wc-segmented-button-group</code>, which manages the selection.</p>\n *\n * @cssprop --segmented-button-height: Height of the segmented button.\n * @cssprop --segmented-button-selected-container-color: Background color when the segment is selected.\n * @cssprop --segmented-button-selected-label-text-color: Text color when the segment is selected.\n * @cssprop --segmented-button-unselected-label-text-color: Text color when the segment is unselected.\n * @cssprop --segmented-button-outline-color: Outline / border color.\n * @cssprop --segmented-button-disabled-opacity: Opacity when the segment is disabled.\n *\n * @fires {CustomEvent<{value: string, selected: boolean, originalEvent: MouseEvent | KeyboardEvent}>} change - Dispatched when the segment is activated; `selected` is the requested state. Inside a `wc-segmented-button-group` the group swallows it and fires its own `change` instead.\n * @fires {CustomEvent<FocusEvent>} focus - Dispatched when the segment gains focus. Bubbles; `detail` is the native focus event.\n * @fires {CustomEvent<FocusEvent>} blur - Dispatched when the segment loses focus. Bubbles; `detail` is the native blur event.\n *\n * @example\n * ```html\n * <wc-segmented-button-group>\n * <wc-segmented-button value=\"day\">Day</wc-segmented-button>\n * <wc-segmented-button value=\"week\" selected>Week</wc-segmented-button>\n * <wc-segmented-button value=\"month\">Month</wc-segmented-button>\n * </wc-segmented-button-group>\n * ```\n *\n * @tags controls\n */\nexport class SegmentedButton extends LitElement {\n static styles = [styles];\n\n /**\n * The value associated with this segment.\n */\n @property({ type: String, reflect: true })\n value: string = '';\n\n /**\n * Whether this segment is currently selected.\n */\n @property({ type: Boolean, reflect: true })\n selected: boolean = false;\n\n /**\n * If true, the user cannot interact with this segment.\n */\n @property({ type: Boolean, reflect: true })\n disabled: boolean = false;\n\n /**\n * Optional icon name to display (uses wc-icon).\n */\n @property({ type: String })\n icon?: string;\n\n /**\n * How the segment is exposed: `radio` (with `aria-checked`) in a single-select group, `button`\n * (with `aria-pressed`) otherwise. Set by `wc-segmented-button-group`.\n */\n @property({ attribute: false })\n groupRole: 'button' | 'radio' = 'button';\n\n /**\n * Tab index of the segment; a single-select group gives only one segment `0` (roving tabindex).\n * Set by `wc-segmented-button-group`.\n */\n @property({ attribute: false })\n groupTabIndex?: number;\n\n /** True while the segment has keyboard focus. */\n @state()\n private hasFocus = false;\n\n /** True while the user is actively pressing the segment. */\n @state()\n private isActive = false;\n\n connectedCallback() {\n super.connectedCallback();\n window.addEventListener('mouseup', this._windowMouseUp);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n window.removeEventListener('mouseup', this._windowMouseUp);\n }\n\n private _windowMouseUp = () => {\n if (this.isActive) {\n this.isActive = false;\n }\n };\n\n private _mouseDownHandler = () => {\n this.isActive = true;\n };\n\n private _keyDownHandler = (evt: KeyboardEvent) => {\n if (evt.key === ' ' || evt.key === 'Enter') {\n evt.preventDefault();\n this.isActive = true;\n this._toggle(evt);\n }\n };\n\n private _clickHandler = (ev: MouseEvent) => {\n this._toggle(ev);\n };\n\n private _toggle(ev: MouseEvent | KeyboardEvent) {\n if (this.disabled) return;\n const detail = {\n value: this.value || this.textContent?.trim(),\n selected: !this.selected,\n originalEvent: ev,\n };\n this.dispatchEvent(\n new CustomEvent('change', { detail, bubbles: true, composed: true }),\n );\n }\n\n private _blurHandler = (ev: FocusEvent) => {\n this.hasFocus = false;\n this.dispatchEvent(\n new CustomEvent('blur', { detail: ev, bubbles: true, composed: true }),\n );\n };\n\n private _focusHandler = (ev: FocusEvent) => {\n this.hasFocus = true;\n this.dispatchEvent(\n new CustomEvent('focus', { detail: ev, bubbles: true, composed: true }),\n );\n };\n\n /** Sets focus on the segment. */\n focus() {\n this.renderRoot.querySelector<HTMLElement>('.segment')?.focus();\n }\n\n /** Removes focus from the segment. */\n blur() {\n this.renderRoot.querySelector<HTMLElement>('.segment')?.blur();\n }\n\n render() {\n const cssClasses = {\n segment: true,\n selected: this.selected,\n disabled: this.disabled,\n 'has-focus': this.hasFocus,\n active: this.isActive,\n 'has-icon': !!this.icon,\n };\n\n return html`\n <div\n class=${classMap(cssClasses)}\n role=${this.groupRole}\n tabindex=${this.disabled ? -1 : (this.groupTabIndex ?? 0)}\n aria-pressed=${this.groupRole === 'button'\n ? String(this.selected)\n : nothing}\n aria-checked=${this.groupRole === 'radio'\n ? String(this.selected)\n : nothing}\n aria-disabled=${this.disabled ? 'true' : nothing}\n @click=${this._clickHandler}\n @mousedown=${this._mouseDownHandler}\n @keydown=${this._keyDownHandler}\n @blur=${this._blurHandler}\n @focus=${this._focusHandler}\n >\n <div class=\"state-layer\"></div>\n <div class=\"content\">\n ${this.selected\n ? html`<wc-icon class=\"check-icon\" name=\"check\"></wc-icon>`\n : this.icon\n ? html`<wc-icon class=\"leading-icon\" name=${this.icon}></wc-icon>`\n : nothing}\n <span class=\"label\"><slot></slot></span>\n </div>\n <div class=\"segment-outline\"></div>\n </div>\n `;\n }\n}\n"],"names":["LitElement","html","classMap","nothing","styles","property","state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BG;AACG,MAAO,eAAgB,SAAQA,GAAU,CAAA;AAA/C,IAAA,WAAA,GAAA;;AAGE;;AAEG;QAEH,IAAA,CAAA,KAAK,GAAW,EAAE;AAElB;;AAEG;QAEH,IAAA,CAAA,QAAQ,GAAY,KAAK;AAEzB;;AAEG;QAEH,IAAA,CAAA,QAAQ,GAAY,KAAK;AAQzB;;;AAGG;QAEH,IAAA,CAAA,SAAS,GAAuB,QAAQ;;QAWhC,IAAA,CAAA,QAAQ,GAAG,KAAK;;QAIhB,IAAA,CAAA,QAAQ,GAAG,KAAK;QAYhB,IAAA,CAAA,cAAc,GAAG,MAAK;AAC5B,YAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;AACjB,gBAAA,IAAI,CAAC,QAAQ,GAAG,KAAK;YACvB;AACF,QAAA,CAAC;QAEO,IAAA,CAAA,iBAAiB,GAAG,MAAK;AAC/B,YAAA,IAAI,CAAC,QAAQ,GAAG,IAAI;AACtB,QAAA,CAAC;AAEO,QAAA,IAAA,CAAA,eAAe,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UAAA,CAAA;AADC,IAAAA,CAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AACP,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,eAAA,EAAA,MAAA,CAAA;AAIf,UAAA,CAAA;AADP,IAAAC,CAAK;AACmB,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAIjB,UAAA,CAAA;AADP,IAAAA,CAAK;AACmB,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;;;;"}
1
+ {"version":3,"file":"segmented-button.js","sources":["../../src/segmented-button/segmented-button.ts"],"sourcesContent":["import { html, LitElement, nothing } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport styles from './segmented-button.scss';\n\n/**\n * @label Segmented Button\n * @tag wc-segmented-button\n * @rawTag segmented-button\n * @summary One option of a segmented button group.\n * @overview\n * <p>Use it inside a <code>wc-segmented-button-group</code>, which manages the selection.</p>\n *\n * @cssprop --segmented-button-height: Height of the segmented button.\n * @cssprop --segmented-button-selected-container-color: Background color when the segment is selected.\n * @cssprop --segmented-button-selected-label-text-color: Text color when the segment is selected.\n * @cssprop --segmented-button-unselected-label-text-color: Text color when the segment is unselected.\n * @cssprop --segmented-button-outline-color: Outline / border color.\n * @cssprop --segmented-button-disabled-opacity: Opacity when the segment is disabled.\n *\n * @fires {CustomEvent<{value: string, selected: boolean, originalEvent: MouseEvent | KeyboardEvent}>} change - Dispatched when the segment is activated; `selected` is the requested state. Inside a `wc-segmented-button-group` the group swallows it and fires its own `change` instead.\n * @fires {CustomEvent<FocusEvent>} focus - Dispatched when the segment gains focus. Bubbles; `detail` is the native focus event.\n * @fires {CustomEvent<FocusEvent>} blur - Dispatched when the segment loses focus. Bubbles; `detail` is the native blur event.\n *\n * @example\n * ```html\n * <wc-segmented-button-group>\n * <wc-segmented-button value=\"day\">Day</wc-segmented-button>\n * <wc-segmented-button value=\"week\" selected>Week</wc-segmented-button>\n * <wc-segmented-button value=\"month\">Month</wc-segmented-button>\n * </wc-segmented-button-group>\n * ```\n *\n * @tags controls\n */\nexport class SegmentedButton extends LitElement {\n static styles = [styles];\n\n /**\n * The value associated with this segment.\n */\n @property({ type: String, reflect: true })\n value: string = '';\n\n /**\n * Whether this segment is currently selected.\n */\n @property({ type: Boolean, reflect: true })\n selected: boolean = false;\n\n /**\n * If true, the user cannot interact with this segment.\n */\n @property({ type: Boolean, reflect: true })\n disabled: boolean = false;\n\n /**\n * Optional icon name to display (uses wc-icon).\n */\n @property({ type: String })\n icon?: string;\n\n /**\n * How the segment is exposed: `radio` (with `aria-checked`) in a single-select group, `button`\n * (with `aria-pressed`) otherwise. Set by `wc-segmented-button-group`.\n */\n @property({ attribute: false })\n groupRole: 'button' | 'radio' = 'button';\n\n /**\n * Tab index of the segment; a single-select group gives only one segment `0` (roving tabindex).\n * Set by `wc-segmented-button-group`.\n */\n @property({ attribute: false })\n groupTabIndex?: number;\n\n /** True while the segment has keyboard focus. */\n @state()\n private hasFocus = false;\n\n /** True while the user is actively pressing the segment. */\n @state()\n private isActive = false;\n\n connectedCallback() {\n super.connectedCallback();\n window.addEventListener('mouseup', this._windowMouseUp);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n window.removeEventListener('mouseup', this._windowMouseUp);\n }\n\n private _windowMouseUp = () => {\n if (this.isActive) {\n this.isActive = false;\n }\n };\n\n private _mouseDownHandler = () => {\n this.isActive = true;\n };\n\n private _keyDownHandler = (evt: KeyboardEvent) => {\n if (evt.key === ' ' || evt.key === 'Enter') {\n evt.preventDefault();\n this.isActive = true;\n this._toggle(evt);\n }\n };\n\n private _clickHandler = (ev: MouseEvent) => {\n this._toggle(ev);\n };\n\n private _toggle(ev: MouseEvent | KeyboardEvent) {\n if (this.disabled) return;\n const detail = {\n value: this.value || this.textContent?.trim(),\n selected: !this.selected,\n originalEvent: ev,\n };\n this.dispatchEvent(\n new CustomEvent('change', { detail, bubbles: true, composed: true }),\n );\n }\n\n private _blurHandler = (ev: FocusEvent) => {\n this.hasFocus = false;\n this.dispatchEvent(\n new CustomEvent('blur', { detail: ev, bubbles: true, composed: true }),\n );\n };\n\n private _focusHandler = (ev: FocusEvent) => {\n this.hasFocus = true;\n this.dispatchEvent(\n new CustomEvent('focus', { detail: ev, bubbles: true, composed: true }),\n );\n };\n\n /** Sets focus on the segment. */\n focus() {\n this.renderRoot.querySelector<HTMLElement>('.segment')?.focus();\n }\n\n /** Removes focus from the segment. */\n blur() {\n this.renderRoot.querySelector<HTMLElement>('.segment')?.blur();\n }\n\n render() {\n const cssClasses = {\n segment: true,\n selected: this.selected,\n disabled: this.disabled,\n 'has-focus': this.hasFocus,\n active: this.isActive,\n 'has-icon': !!this.icon,\n };\n\n return html`\n <div\n class=${classMap(cssClasses)}\n role=${this.groupRole}\n tabindex=${this.disabled ? -1 : (this.groupTabIndex ?? 0)}\n aria-pressed=${this.groupRole === 'button'\n ? String(this.selected)\n : nothing}\n aria-checked=${this.groupRole === 'radio'\n ? String(this.selected)\n : nothing}\n aria-disabled=${this.disabled ? 'true' : nothing}\n @click=${this._clickHandler}\n @mousedown=${this._mouseDownHandler}\n @keydown=${this._keyDownHandler}\n @blur=${this._blurHandler}\n @focus=${this._focusHandler}\n >\n <div class=\"state-layer\"></div>\n <div class=\"content\">\n ${this.selected\n ? html`<wc-icon class=\"check-icon\" name=\"check\"></wc-icon>`\n : this.icon\n ? html`<wc-icon class=\"leading-icon\" name=${this.icon}></wc-icon>`\n : nothing}\n <span class=\"label\"><slot></slot></span>\n </div>\n <div class=\"segment-outline\"></div>\n </div>\n `;\n }\n}\n"],"names":["LitElement","html","classMap","nothing","styles","property","state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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OAAO,EAAE,IAAI,EAAE;AACtB,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AAMnB,UAAA,CAAA;IADCA,CAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAChB,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAM1B,UAAA,CAAA;IADCA,CAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAChB,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAM1B,UAAA,CAAA;AADC,IAAAA,CAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AACZ,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAOd,UAAA,CAAA;AADC,IAAAA,CAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AACW,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,WAAA,EAAA,MAAA,CAAA;AAOzC,UAAA,CAAA;AADC,IAAAA,CAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AACP,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,eAAA,EAAA,MAAA,CAAA;AAIf,UAAA,CAAA;AADP,IAAAC,CAAK;AACmB,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAIjB,UAAA,CAAA;AADP,IAAAA,CAAK;AACmB,CAAA,EAAA,eAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;;;;"}
package/dist/select.js CHANGED
@@ -179,7 +179,7 @@ var css_248z = i`* {
179
179
  .dropdown-icon {
180
180
  --icon-size: 1.5rem;
181
181
  --icon-color: var(--color-on-surface-variant);
182
- transition: transform 200ms ease;
182
+ transition: transform var(--motion-spring-fast-spatial-duration) var(--motion-spring-fast-spatial-easing);
183
183
  flex-shrink: 0;
184
184
  }
185
185
  .dropdown-icon.dropdown-icon--open {
@@ -3,7 +3,7 @@ import { i, a as i$1, A, b } from './lit-element-CKa37m3w.js';
3
3
  import { e } from './query-CHb9Ft_d.js';
4
4
  import { e as e$1 } from './class-map-DN-g_e4M.js';
5
5
  import { I as I18nController } from './i18n-controller-BTeChxE0.js';
6
- import { O as OverlayController } from './overlay-controller-BOk-kfil.js';
6
+ import { O as OverlayController } from './overlay-controller-iVaiUqos.js';
7
7
  import './base-Cl6v8-BZ.js';
8
8
  import './directive-ZPhl09Yt.js';
9
9
  import './strings-DeiQWMd9.js';
@@ -50,8 +50,8 @@ var css_248z = i`* {
50
50
  --side-sheet-scrim-color: color-mix(in srgb, var(--color-scrim) 32%, transparent);
51
51
  --side-sheet-shape: var(--shape-corner-extra-large, 28px);
52
52
  --side-sheet-width: 360px;
53
- --side-sheet-transition-duration: var(--duration-medium2, 300ms);
54
- --side-sheet-transition-easing: var(--easing-standard, cubic-bezier(0.2, 0, 0, 1));
53
+ --side-sheet-transition-duration: var(--motion-spring-slow-effects-duration, 300ms);
54
+ --side-sheet-transition-easing: var(--motion-spring-slow-effects-easing, cubic-bezier(0.2, 0, 0, 1));
55
55
  }
56
56
 
57
57
  /* The native dialog: reset its UA box; the scrim and the sheet are drawn inside it. */
@@ -4,7 +4,7 @@ import { r } from './state-Bz6ycyYM.js';
4
4
  import { e } from './query-CHb9Ft_d.js';
5
5
  import { e as e$1 } from './class-map-DN-g_e4M.js';
6
6
  import { I as I18nController } from './i18n-controller-BTeChxE0.js';
7
- import { O as OverlayController } from './overlay-controller-BOk-kfil.js';
7
+ import { O as OverlayController } from './overlay-controller-iVaiUqos.js';
8
8
  import { SiteNavMenu } from './site-nav-menu.js';
9
9
  import { SiteNavGroup } from './site-nav-group.js';
10
10
  import { SiteNavLink } from './site-nav-link.js';
@@ -62,7 +62,7 @@ var css_248z = i`* {
62
62
  :host([sticky]) {
63
63
  position: sticky;
64
64
  inset-block-start: 0;
65
- transition: transform var(--duration-medium2, 300ms) var(--easing-standard, ease);
65
+ transition: transform var(--motion-spring-default-spatial-duration) var(--motion-spring-default-spatial-easing);
66
66
  }
67
67
 
68
68
  :host([data-scrolled-away]) {
@@ -195,7 +195,7 @@ var css_248z = i`* {
195
195
  }
196
196
  .drawer[open] {
197
197
  display: flex;
198
- animation: site-header-slide-in var(--duration-medium2, 300ms) var(--easing-emphasized-decelerate, ease-out);
198
+ animation: site-header-slide-in var(--motion-spring-slow-effects-duration) var(--motion-spring-slow-effects-easing);
199
199
  }
200
200
  .drawer:dir(rtl)[open] {
201
201
  animation-name: site-header-slide-in-rtl;
@@ -88,7 +88,7 @@ var css_248z = i`* {
88
88
  .chevron {
89
89
  --icon-size: 1.125rem;
90
90
  --icon-color: currentColor;
91
- transition: transform var(--duration-short4, 200ms) var(--easing-standard, ease);
91
+ transition: transform var(--motion-spring-fast-spatial-duration) var(--motion-spring-fast-spatial-easing);
92
92
  }
93
93
 
94
94
  .open .chevron {