@nldd/design-system 0.8.63 → 0.8.65

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 (737) hide show
  1. package/dist/assets/styles/{slotted-reset.d.ts → style-resets.d.ts} +1 -1
  2. package/dist/assets/styles/style-resets.d.ts.map +1 -0
  3. package/dist/assets/styles/{slotted-reset.fixtures.d.ts → style-resets.fixtures.d.ts} +4 -4
  4. package/dist/assets/styles/style-resets.fixtures.d.ts.map +1 -0
  5. package/dist/assets/styles/{slotted-reset.fixtures.js → style-resets.fixtures.js} +4 -4
  6. package/dist/assets/styles/style-resets.fixtures.js.map +1 -0
  7. package/dist/assets/styles/{slotted-reset.js → style-resets.js} +1 -1
  8. package/dist/assets/styles/style-resets.js.map +1 -0
  9. package/dist/components/actions/button/button.d.ts.map +1 -1
  10. package/dist/components/actions/button/button.js +7 -6
  11. package/dist/components/actions/button/button.js.map +1 -1
  12. package/dist/components/actions/button/button.styles.d.ts.map +1 -1
  13. package/dist/components/actions/button/button.styles.js +16 -12
  14. package/dist/components/actions/button/button.styles.js.map +1 -1
  15. package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
  16. package/dist/components/actions/button-bar/button-bar.js +3 -2
  17. package/dist/components/actions/button-bar/button-bar.js.map +1 -1
  18. package/dist/components/actions/button-bar/button-bar.styles.d.ts.map +1 -1
  19. package/dist/components/actions/button-bar/button-bar.styles.js +3 -0
  20. package/dist/components/actions/button-bar/button-bar.styles.js.map +1 -1
  21. package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
  22. package/dist/components/actions/button-group/button-group.js +3 -2
  23. package/dist/components/actions/button-group/button-group.js.map +1 -1
  24. package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
  25. package/dist/components/actions/button-group/button-group.styles.js +3 -0
  26. package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
  27. package/dist/components/actions/icon-button/icon-button.d.ts +4 -0
  28. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  29. package/dist/components/actions/icon-button/icon-button.js +13 -5
  30. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  31. package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
  32. package/dist/components/actions/icon-button/icon-button.styles.js +19 -11
  33. package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
  34. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  35. package/dist/components/actions/icon-button/icon-button.template.js +2 -0
  36. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  37. package/dist/components/actions/menu/menu.d.ts +1 -0
  38. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  39. package/dist/components/actions/menu/menu.js +33 -15
  40. package/dist/components/actions/menu/menu.js.map +1 -1
  41. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
  42. package/dist/components/actions/menu/menu.styles.js +12 -1
  43. package/dist/components/actions/menu/menu.styles.js.map +1 -1
  44. package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
  45. package/dist/components/actions/split-button/split-button.js +5 -4
  46. package/dist/components/actions/split-button/split-button.js.map +1 -1
  47. package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
  48. package/dist/components/actions/split-button/split-button.styles.js +4 -1
  49. package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
  50. package/dist/components/actions/toolbar/toolbar.d.ts +11 -0
  51. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  52. package/dist/components/actions/toolbar/toolbar.js +112 -40
  53. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  54. package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
  55. package/dist/components/actions/toolbar/toolbar.styles.js +7 -13
  56. package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
  57. package/dist/components/components.js +104 -101
  58. package/dist/components/content/blockquote/blockquote.styles.js +4 -4
  59. package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
  60. package/dist/components/content/byline/byline.d.ts.map +1 -1
  61. package/dist/components/content/byline/byline.js +3 -2
  62. package/dist/components/content/byline/byline.js.map +1 -1
  63. package/dist/components/content/byline/byline.styles.d.ts.map +1 -1
  64. package/dist/components/content/byline/byline.styles.js +4 -1
  65. package/dist/components/content/byline/byline.styles.js.map +1 -1
  66. package/dist/components/content/code-viewer/code-viewer.d.ts +24 -64
  67. package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
  68. package/dist/components/content/code-viewer/code-viewer.js +239 -156
  69. package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
  70. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  71. package/dist/components/content/code-viewer/code-viewer.styles.js +37 -93
  72. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  73. package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
  74. package/dist/components/content/code-viewer/code-viewer.template.js +10 -29
  75. package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
  76. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  77. package/dist/components/content/icon/icon-aliases.js +23 -2
  78. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  79. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  80. package/dist/components/content/icon/icon-registry.js +18 -0
  81. package/dist/components/content/icon/icon-registry.js.map +1 -1
  82. package/dist/components/content/icon/icon.d.ts.map +1 -1
  83. package/dist/components/content/icon/icon.js +3 -2
  84. package/dist/components/content/icon/icon.js.map +1 -1
  85. package/dist/components/content/icon/icon.styles.d.ts.map +1 -1
  86. package/dist/components/content/icon/icon.styles.js +3 -0
  87. package/dist/components/content/icon/icon.styles.js.map +1 -1
  88. package/dist/components/content/image/image.d.ts.map +1 -1
  89. package/dist/components/content/image/image.js +7 -6
  90. package/dist/components/content/image/image.js.map +1 -1
  91. package/dist/components/content/image/image.styles.d.ts.map +1 -1
  92. package/dist/components/content/image/image.styles.js +6 -7
  93. package/dist/components/content/image/image.styles.js.map +1 -1
  94. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
  95. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +8 -7
  96. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
  97. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
  98. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +9 -2
  99. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
  100. package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
  101. package/dist/components/content/rich-text/rich-text.js +3 -2
  102. package/dist/components/content/rich-text/rich-text.js.map +1 -1
  103. package/dist/components/content/tag/tag.d.ts.map +1 -1
  104. package/dist/components/content/tag/tag.js +5 -4
  105. package/dist/components/content/tag/tag.js.map +1 -1
  106. package/dist/components/content/tag/tag.styles.d.ts.map +1 -1
  107. package/dist/components/content/tag/tag.styles.js +4 -1
  108. package/dist/components/content/tag/tag.styles.js.map +1 -1
  109. package/dist/components/content/title/title.d.ts.map +1 -1
  110. package/dist/components/content/title/title.js +2 -1
  111. package/dist/components/content/title/title.js.map +1 -1
  112. package/dist/components/content/title/title.styles.d.ts.map +1 -1
  113. package/dist/components/content/title/title.styles.js +4 -1
  114. package/dist/components/content/title/title.styles.js.map +1 -1
  115. package/dist/components/content/token/token.d.ts +70 -0
  116. package/dist/components/content/token/token.d.ts.map +1 -0
  117. package/dist/components/content/token/token.js +170 -0
  118. package/dist/components/content/token/token.js.map +1 -0
  119. package/dist/components/content/token/token.styles.d.ts.map +1 -0
  120. package/dist/components/content/token/token.styles.js +122 -0
  121. package/dist/components/content/token/token.styles.js.map +1 -0
  122. package/dist/components/content/token/token.template.d.ts +6 -0
  123. package/dist/components/content/token/token.template.d.ts.map +1 -0
  124. package/dist/components/content/token/token.template.js +47 -0
  125. package/dist/components/content/token/token.template.js.map +1 -0
  126. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  127. package/dist/components/content/tooltip/tooltip.js +14 -5
  128. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  129. package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
  130. package/dist/components/content/tooltip/tooltip.styles.js +15 -1
  131. package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
  132. package/dist/components/forms/form-actions/form-actions.styles.d.ts.map +1 -1
  133. package/dist/components/forms/form-actions/form-actions.styles.js +3 -0
  134. package/dist/components/forms/form-actions/form-actions.styles.js.map +1 -1
  135. package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
  136. package/dist/components/forms/form-field/form-field.styles.js +4 -1
  137. package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
  138. package/dist/components/gherkin-DhZlEZiy.js +115 -0
  139. package/dist/components/index-BI4lrehT.js +66595 -0
  140. package/dist/components/index-BcdqzZql.js +703 -0
  141. package/dist/components/index-BlMqctke.js +81 -0
  142. package/dist/components/index-BseMFLNF.js +688 -0
  143. package/dist/components/index-ChjtFo6I.js +177 -0
  144. package/dist/components/index-D3NSlPL5.js +405 -0
  145. package/dist/components/index-D7B3n3QJ.js +384 -0
  146. package/dist/components/index.d.ts +21 -18
  147. package/dist/components/index.d.ts.map +1 -1
  148. package/dist/components/index.js +21 -18
  149. package/dist/components/index.js.map +1 -1
  150. package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
  151. package/dist/components/inputs/checkbox/checkbox.styles.js +3 -0
  152. package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
  153. package/dist/components/inputs/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
  154. package/dist/components/inputs/checkbox-field/checkbox-field.styles.js +4 -1
  155. package/dist/components/inputs/checkbox-field/checkbox-field.styles.js.map +1 -1
  156. package/dist/components/inputs/code-editor/code-editor.d.ts +58 -29
  157. package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
  158. package/dist/components/inputs/code-editor/code-editor.js +241 -52
  159. package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
  160. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  161. package/dist/components/inputs/code-editor/code-editor.styles.js +62 -47
  162. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  163. package/dist/components/inputs/code-editor/code-editor.template.d.ts +1 -1
  164. package/dist/components/inputs/code-editor/code-editor.template.d.ts.map +1 -1
  165. package/dist/components/inputs/code-editor/code-editor.template.js +5 -22
  166. package/dist/components/inputs/code-editor/code-editor.template.js.map +1 -1
  167. package/dist/components/inputs/combo-box/combo-box.d.ts +15 -4
  168. package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
  169. package/dist/components/inputs/combo-box/combo-box.js +53 -9
  170. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  171. package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
  172. package/dist/components/inputs/combo-box/combo-box.styles.js +4 -1
  173. package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
  174. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  175. package/dist/components/inputs/dropdown/dropdown.js +2 -1
  176. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  177. package/dist/components/inputs/dropdown/dropdown.styles.d.ts.map +1 -1
  178. package/dist/components/inputs/dropdown/dropdown.styles.js +4 -1
  179. package/dist/components/inputs/dropdown/dropdown.styles.js.map +1 -1
  180. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +1 -1
  181. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
  182. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +6 -5
  183. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
  184. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +12 -12
  185. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
  186. package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
  187. package/dist/components/inputs/number-field/number-field.js +2 -1
  188. package/dist/components/inputs/number-field/number-field.js.map +1 -1
  189. package/dist/components/inputs/number-field/number-field.styles.d.ts.map +1 -1
  190. package/dist/components/inputs/number-field/number-field.styles.js +4 -1
  191. package/dist/components/inputs/number-field/number-field.styles.js.map +1 -1
  192. package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
  193. package/dist/components/inputs/password-field/password-field.js +3 -2
  194. package/dist/components/inputs/password-field/password-field.js.map +1 -1
  195. package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
  196. package/dist/components/inputs/password-field/password-field.styles.js +4 -1
  197. package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
  198. package/dist/components/inputs/radio-button/radio-button.styles.d.ts.map +1 -1
  199. package/dist/components/inputs/radio-button/radio-button.styles.js +3 -0
  200. package/dist/components/inputs/radio-button/radio-button.styles.js.map +1 -1
  201. package/dist/components/inputs/radio-button-field/radio-button-field.styles.d.ts.map +1 -1
  202. package/dist/components/inputs/radio-button-field/radio-button-field.styles.js +4 -1
  203. package/dist/components/inputs/radio-button-field/radio-button-field.styles.js.map +1 -1
  204. package/dist/components/inputs/radio-button-group/radio-button-group.js +1 -1
  205. package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
  206. package/dist/components/inputs/radio-button-group/radio-button-group.styles.d.ts.map +1 -1
  207. package/dist/components/inputs/radio-button-group/radio-button-group.styles.js +4 -1
  208. package/dist/components/inputs/radio-button-group/radio-button-group.styles.js.map +1 -1
  209. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  210. package/dist/components/inputs/search-field/search-field.js +2 -1
  211. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  212. package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
  213. package/dist/components/inputs/search-field/search-field.styles.js +13 -1
  214. package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
  215. package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
  216. package/dist/components/inputs/search-field/search-field.template.js +47 -39
  217. package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
  218. package/dist/components/inputs/segmented-control/segmented-control.d.ts +1 -1
  219. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  220. package/dist/components/inputs/segmented-control/segmented-control.js +10 -9
  221. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  222. package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
  223. package/dist/components/inputs/segmented-control/segmented-control.styles.js +74 -37
  224. package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
  225. package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
  226. package/dist/components/inputs/stepper/stepper.js +2 -1
  227. package/dist/components/inputs/stepper/stepper.js.map +1 -1
  228. package/dist/components/inputs/stepper/stepper.styles.d.ts.map +1 -1
  229. package/dist/components/inputs/stepper/stepper.styles.js +3 -0
  230. package/dist/components/inputs/stepper/stepper.styles.js.map +1 -1
  231. package/dist/components/inputs/switch/switch.d.ts.map +1 -1
  232. package/dist/components/inputs/switch/switch.js +2 -1
  233. package/dist/components/inputs/switch/switch.js.map +1 -1
  234. package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
  235. package/dist/components/inputs/switch/switch.styles.js +3 -0
  236. package/dist/components/inputs/switch/switch.styles.js.map +1 -1
  237. package/dist/components/inputs/switch-field/switch-field.styles.d.ts.map +1 -1
  238. package/dist/components/inputs/switch-field/switch-field.styles.js +4 -1
  239. package/dist/components/inputs/switch-field/switch-field.styles.js.map +1 -1
  240. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.d.ts +51 -0
  241. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.d.ts.map +1 -0
  242. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js +148 -0
  243. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js.map +1 -0
  244. package/dist/components/inputs/text-editor/text-editor.annotations.d.ts +47 -0
  245. package/dist/components/inputs/text-editor/text-editor.annotations.d.ts.map +1 -0
  246. package/dist/components/inputs/text-editor/text-editor.annotations.js +327 -0
  247. package/dist/components/inputs/text-editor/text-editor.annotations.js.map +1 -0
  248. package/dist/components/inputs/text-editor/text-editor.caret.d.ts +13 -0
  249. package/dist/components/inputs/text-editor/text-editor.caret.d.ts.map +1 -0
  250. package/dist/components/inputs/text-editor/text-editor.caret.js +27 -0
  251. package/dist/components/inputs/text-editor/text-editor.caret.js.map +1 -0
  252. package/dist/components/inputs/text-editor/text-editor.commands.d.ts +61 -0
  253. package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -0
  254. package/dist/components/inputs/text-editor/text-editor.commands.js +376 -0
  255. package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -0
  256. package/dist/components/inputs/text-editor/text-editor.d.ts +241 -0
  257. package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -0
  258. package/dist/components/inputs/text-editor/text-editor.drag.d.ts +30 -0
  259. package/dist/components/inputs/text-editor/text-editor.drag.d.ts.map +1 -0
  260. package/dist/components/inputs/text-editor/text-editor.drag.js +231 -0
  261. package/dist/components/inputs/text-editor/text-editor.drag.js.map +1 -0
  262. package/dist/components/inputs/text-editor/text-editor.i18n.d.ts +8 -0
  263. package/dist/components/inputs/text-editor/text-editor.i18n.d.ts.map +1 -0
  264. package/dist/components/inputs/text-editor/text-editor.i18n.js +13 -0
  265. package/dist/components/inputs/text-editor/text-editor.i18n.js.map +1 -0
  266. package/dist/components/inputs/text-editor/text-editor.js +782 -0
  267. package/dist/components/inputs/text-editor/text-editor.js.map +1 -0
  268. package/dist/components/inputs/text-editor/text-editor.links.d.ts +18 -0
  269. package/dist/components/inputs/text-editor/text-editor.links.d.ts.map +1 -0
  270. package/dist/components/inputs/text-editor/text-editor.links.js +147 -0
  271. package/dist/components/inputs/text-editor/text-editor.links.js.map +1 -0
  272. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts +20 -0
  273. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -0
  274. package/dist/components/inputs/text-editor/text-editor.markdown.js +372 -0
  275. package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -0
  276. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +32 -0
  277. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -0
  278. package/dist/components/inputs/text-editor/text-editor.mentions.js +153 -0
  279. package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -0
  280. package/dist/components/inputs/text-editor/text-editor.ordered-list.d.ts +12 -0
  281. package/dist/components/inputs/text-editor/text-editor.ordered-list.d.ts.map +1 -0
  282. package/dist/components/inputs/text-editor/text-editor.ordered-list.js +85 -0
  283. package/dist/components/inputs/text-editor/text-editor.ordered-list.js.map +1 -0
  284. package/dist/components/inputs/text-editor/text-editor.styles.d.ts +2 -0
  285. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -0
  286. package/dist/components/inputs/text-editor/text-editor.styles.js +592 -0
  287. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -0
  288. package/dist/components/inputs/text-editor/text-editor.template.d.ts +4 -0
  289. package/dist/components/inputs/text-editor/text-editor.template.d.ts.map +1 -0
  290. package/dist/components/inputs/text-editor/text-editor.template.js +7 -0
  291. package/dist/components/inputs/text-editor/text-editor.template.js.map +1 -0
  292. package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
  293. package/dist/components/inputs/text-field/text-field.js +3 -2
  294. package/dist/components/inputs/text-field/text-field.js.map +1 -1
  295. package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
  296. package/dist/components/inputs/text-field/text-field.styles.js +4 -1
  297. package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
  298. package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
  299. package/dist/components/inputs/toggle-button/toggle-button.js +4 -3
  300. package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
  301. package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
  302. package/dist/components/inputs/toggle-button/toggle-button.styles.js +18 -11
  303. package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
  304. package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +1 -1
  305. package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
  306. package/dist/components/inputs/toggle-button-group/toggle-button-group.js +5 -4
  307. package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
  308. package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.d.ts.map +1 -1
  309. package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.js +3 -0
  310. package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.js.map +1 -1
  311. package/dist/components/inputs/token-field/token-field.d.ts +257 -0
  312. package/dist/components/inputs/token-field/token-field.d.ts.map +1 -0
  313. package/dist/components/inputs/token-field/token-field.i18n.d.ts +9 -0
  314. package/dist/components/inputs/token-field/token-field.i18n.d.ts.map +1 -0
  315. package/dist/components/inputs/token-field/token-field.i18n.js +8 -0
  316. package/dist/components/inputs/token-field/token-field.i18n.js.map +1 -0
  317. package/dist/components/inputs/token-field/token-field.js +877 -0
  318. package/dist/components/inputs/token-field/token-field.js.map +1 -0
  319. package/dist/components/inputs/token-field/token-field.styles.d.ts +2 -0
  320. package/dist/components/inputs/token-field/token-field.styles.d.ts.map +1 -0
  321. package/dist/components/inputs/token-field/token-field.styles.js +194 -0
  322. package/dist/components/inputs/token-field/token-field.styles.js.map +1 -0
  323. package/dist/components/inputs/token-field/token-field.template.d.ts +8 -0
  324. package/dist/components/inputs/token-field/token-field.template.d.ts.map +1 -0
  325. package/dist/components/inputs/token-field/token-field.template.js +136 -0
  326. package/dist/components/inputs/token-field/token-field.template.js.map +1 -0
  327. package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
  328. package/dist/components/layout/app-view/app-view.js +2 -1
  329. package/dist/components/layout/app-view/app-view.js.map +1 -1
  330. package/dist/components/layout/app-view/app-view.styles.d.ts.map +1 -1
  331. package/dist/components/layout/app-view/app-view.styles.js +3 -0
  332. package/dist/components/layout/app-view/app-view.styles.js.map +1 -1
  333. package/dist/components/layout/box/box.d.ts.map +1 -1
  334. package/dist/components/layout/box/box.js +2 -1
  335. package/dist/components/layout/box/box.js.map +1 -1
  336. package/dist/components/layout/box/box.styles.d.ts.map +1 -1
  337. package/dist/components/layout/box/box.styles.js +4 -6
  338. package/dist/components/layout/box/box.styles.js.map +1 -1
  339. package/dist/components/layout/card/card.d.ts +28 -2
  340. package/dist/components/layout/card/card.d.ts.map +1 -1
  341. package/dist/components/layout/card/card.i18n.d.ts +5 -0
  342. package/dist/components/layout/card/card.i18n.d.ts.map +1 -0
  343. package/dist/components/layout/card/card.i18n.js +4 -0
  344. package/dist/components/layout/card/card.i18n.js.map +1 -0
  345. package/dist/components/layout/card/card.js +54 -2
  346. package/dist/components/layout/card/card.js.map +1 -1
  347. package/dist/components/layout/card/card.styles.d.ts.map +1 -1
  348. package/dist/components/layout/card/card.styles.js +20 -0
  349. package/dist/components/layout/card/card.styles.js.map +1 -1
  350. package/dist/components/layout/card/card.template.d.ts.map +1 -1
  351. package/dist/components/layout/card/card.template.js +17 -1
  352. package/dist/components/layout/card/card.template.js.map +1 -1
  353. package/dist/components/layout/collection/collection.d.ts +10 -5
  354. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  355. package/dist/components/layout/collection/collection.js +21 -5
  356. package/dist/components/layout/collection/collection.js.map +1 -1
  357. package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
  358. package/dist/components/layout/collection/collection.styles.js +23 -19
  359. package/dist/components/layout/collection/collection.styles.js.map +1 -1
  360. package/dist/components/layout/container/container.d.ts +7 -3
  361. package/dist/components/layout/container/container.d.ts.map +1 -1
  362. package/dist/components/layout/container/container.js +15 -3
  363. package/dist/components/layout/container/container.js.map +1 -1
  364. package/dist/components/layout/container/container.styles.d.ts.map +1 -1
  365. package/dist/components/layout/container/container.styles.js +42 -1
  366. package/dist/components/layout/container/container.styles.js.map +1 -1
  367. package/dist/components/layout/divider/divider.styles.d.ts.map +1 -1
  368. package/dist/components/layout/divider/divider.styles.js +3 -0
  369. package/dist/components/layout/divider/divider.styles.js.map +1 -1
  370. package/dist/components/layout/page/page.styles.d.ts.map +1 -1
  371. package/dist/components/layout/page/page.styles.js +3 -0
  372. package/dist/components/layout/page/page.styles.js.map +1 -1
  373. package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
  374. package/dist/components/layout/page-footer/page-footer.js +2 -1
  375. package/dist/components/layout/page-footer/page-footer.js.map +1 -1
  376. package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
  377. package/dist/components/layout/page-footer/page-footer.styles.js +4 -1
  378. package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
  379. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.d.ts.map +1 -1
  380. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +3 -0
  381. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
  382. package/dist/components/layout/page-sections/hero/hero.d.ts +29 -25
  383. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  384. package/dist/components/layout/page-sections/hero/hero.js +64 -76
  385. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  386. package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
  387. package/dist/components/layout/page-sections/hero/hero.styles.js +28 -163
  388. package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
  389. package/dist/components/layout/page-sections/hero/hero.template.d.ts.map +1 -1
  390. package/dist/components/layout/page-sections/hero/hero.template.js +13 -1
  391. package/dist/components/layout/page-sections/hero/hero.template.js.map +1 -1
  392. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.d.ts.map +1 -1
  393. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +3 -0
  394. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
  395. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.d.ts.map +1 -1
  396. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +3 -0
  397. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
  398. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +119 -0
  399. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -0
  400. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.i18n.d.ts +6 -0
  401. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.i18n.d.ts.map +1 -0
  402. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.i18n.js +5 -0
  403. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.i18n.js.map +1 -0
  404. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +219 -0
  405. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -0
  406. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts +2 -0
  407. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts.map +1 -0
  408. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +157 -0
  409. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -0
  410. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.d.ts +4 -0
  411. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.d.ts.map +1 -0
  412. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +57 -0
  413. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js.map +1 -0
  414. package/dist/components/layout/page-sections/simple-section/simple-section.styles.d.ts.map +1 -1
  415. package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +3 -0
  416. package/dist/components/layout/page-sections/simple-section/simple-section.styles.js.map +1 -1
  417. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.d.ts.map +1 -1
  418. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +3 -0
  419. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
  420. package/dist/components/layout/popover/popover.d.ts +1 -0
  421. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  422. package/dist/components/layout/popover/popover.js +14 -1
  423. package/dist/components/layout/popover/popover.js.map +1 -1
  424. package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
  425. package/dist/components/layout/popover/popover.styles.js +14 -0
  426. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  427. package/dist/components/layout/sheet/sheet.d.ts +1 -1
  428. package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
  429. package/dist/components/layout/sheet/sheet.js +16 -6
  430. package/dist/components/layout/sheet/sheet.js.map +1 -1
  431. package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
  432. package/dist/components/layout/sheet/sheet.styles.js +63 -83
  433. package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
  434. package/dist/components/layout/spacer/spacer.d.ts.map +1 -1
  435. package/dist/components/layout/spacer/spacer.js +2 -1
  436. package/dist/components/layout/spacer/spacer.js.map +1 -1
  437. package/dist/components/layout/spacer/spacer.styles.d.ts.map +1 -1
  438. package/dist/components/layout/spacer/spacer.styles.js +3 -1
  439. package/dist/components/layout/spacer/spacer.styles.js.map +1 -1
  440. package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.d.ts.map +1 -1
  441. package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js +3 -0
  442. package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js.map +1 -1
  443. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +47 -19
  444. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
  445. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +123 -73
  446. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
  447. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.d.ts.map +1 -1
  448. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +17 -14
  449. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
  450. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.d.ts.map +1 -1
  451. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js +10 -8
  452. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js.map +1 -1
  453. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.d.ts.map +1 -1
  454. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +3 -0
  455. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js.map +1 -1
  456. package/dist/components/layout/split-views/split-view-divider/split-view-divider.d.ts.map +1 -1
  457. package/dist/components/layout/split-views/split-view-divider/split-view-divider.js +2 -1
  458. package/dist/components/layout/split-views/split-view-divider/split-view-divider.js.map +1 -1
  459. package/dist/components/layout/split-views/split-view-divider/split-view-divider.styles.d.ts.map +1 -1
  460. package/dist/components/layout/split-views/split-view-divider/split-view-divider.styles.js +13 -10
  461. package/dist/components/layout/split-views/split-view-divider/split-view-divider.styles.js.map +1 -1
  462. package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.d.ts.map +1 -1
  463. package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +3 -0
  464. package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js.map +1 -1
  465. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.d.ts.map +1 -1
  466. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +3 -0
  467. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js.map +1 -1
  468. package/dist/components/layout/window/window.d.ts +1 -19
  469. package/dist/components/layout/window/window.d.ts.map +1 -1
  470. package/dist/components/layout/window/window.js +11 -188
  471. package/dist/components/layout/window/window.js.map +1 -1
  472. package/dist/components/layout/window/window.styles.d.ts.map +1 -1
  473. package/dist/components/layout/window/window.styles.js +5 -28
  474. package/dist/components/layout/window/window.styles.js.map +1 -1
  475. package/dist/components/layout/window/window.template.d.ts.map +1 -1
  476. package/dist/components/layout/window/window.template.js +1 -2
  477. package/dist/components/layout/window/window.template.js.map +1 -1
  478. package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -1
  479. package/dist/components/lists-and-tables/cells/cell/cell.js +4 -3
  480. package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
  481. package/dist/components/lists-and-tables/cells/cell/cell.styles.d.ts.map +1 -1
  482. package/dist/components/lists-and-tables/cells/cell/cell.styles.js +4 -1
  483. package/dist/components/lists-and-tables/cells/cell/cell.styles.js.map +1 -1
  484. package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts.map +1 -1
  485. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +3 -2
  486. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
  487. package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.d.ts.map +1 -1
  488. package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js +4 -1
  489. package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js.map +1 -1
  490. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts.map +1 -1
  491. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js +2 -1
  492. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js.map +1 -1
  493. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.d.ts.map +1 -1
  494. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js +3 -0
  495. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js.map +1 -1
  496. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
  497. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +3 -2
  498. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
  499. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.d.ts.map +1 -1
  500. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +3 -0
  501. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js.map +1 -1
  502. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.styles.d.ts.map +1 -1
  503. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.styles.js +3 -0
  504. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.styles.js.map +1 -1
  505. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
  506. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +10 -9
  507. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
  508. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -1
  509. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +4 -1
  510. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
  511. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts.map +1 -1
  512. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js +3 -2
  513. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js.map +1 -1
  514. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.d.ts.map +1 -1
  515. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js +3 -0
  516. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js.map +1 -1
  517. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
  518. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +9 -8
  519. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
  520. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -1
  521. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +4 -1
  522. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
  523. package/dist/components/lists-and-tables/list/list.d.ts +138 -8
  524. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  525. package/dist/components/lists-and-tables/list/list.i18n.d.ts +2 -0
  526. package/dist/components/lists-and-tables/list/list.i18n.d.ts.map +1 -1
  527. package/dist/components/lists-and-tables/list/list.i18n.js +2 -0
  528. package/dist/components/lists-and-tables/list/list.i18n.js.map +1 -1
  529. package/dist/components/lists-and-tables/list/list.js +373 -20
  530. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  531. package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
  532. package/dist/components/lists-and-tables/list/list.styles.js +164 -25
  533. package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
  534. package/dist/components/lists-and-tables/list/list.template.d.ts +26 -1
  535. package/dist/components/lists-and-tables/list/list.template.d.ts.map +1 -1
  536. package/dist/components/lists-and-tables/list/list.template.js +76 -18
  537. package/dist/components/lists-and-tables/list/list.template.js.map +1 -1
  538. package/dist/components/lists-and-tables/list-item/list-item.d.ts +20 -7
  539. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  540. package/dist/components/lists-and-tables/list-item/list-item.js +51 -25
  541. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  542. package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
  543. package/dist/components/lists-and-tables/list-item/list-item.styles.js +50 -28
  544. package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
  545. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
  546. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
  547. package/dist/components/lists-and-tables/list-item/list-item.template.js +9 -6
  548. package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
  549. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  550. package/dist/components/lists-and-tables/table/table.js +4 -3
  551. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  552. package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
  553. package/dist/components/lists-and-tables/table/table.styles.js +4 -1
  554. package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
  555. package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +0 -44
  556. package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  557. package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts +0 -1
  558. package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts.map +1 -1
  559. package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js +0 -1
  560. package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js.map +1 -1
  561. package/dist/components/navigation/breadcrumbs/breadcrumbs.js +3 -85
  562. package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
  563. package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
  564. package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +6 -52
  565. package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -1
  566. package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts.map +1 -1
  567. package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +1 -17
  568. package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js.map +1 -1
  569. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
  570. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +5 -4
  571. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  572. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
  573. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +4 -1
  574. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
  575. package/dist/components/navigation/link/link.d.ts.map +1 -1
  576. package/dist/components/navigation/link/link.js +2 -1
  577. package/dist/components/navigation/link/link.js.map +1 -1
  578. package/dist/components/navigation/link/link.styles.d.ts.map +1 -1
  579. package/dist/components/navigation/link/link.styles.js +4 -1
  580. package/dist/components/navigation/link/link.styles.js.map +1 -1
  581. package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
  582. package/dist/components/navigation/menu-bar/menu-bar.js +2 -1
  583. package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
  584. package/dist/components/navigation/menu-bar/menu-bar.styles.d.ts.map +1 -1
  585. package/dist/components/navigation/menu-bar/menu-bar.styles.js +4 -1
  586. package/dist/components/navigation/menu-bar/menu-bar.styles.js.map +1 -1
  587. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
  588. package/dist/components/navigation/menu-bar-item/menu-bar-item.js +4 -3
  589. package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
  590. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.d.ts.map +1 -1
  591. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +4 -1
  592. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
  593. package/dist/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
  594. package/dist/components/navigation/pagination/pagination.styles.js +4 -1
  595. package/dist/components/navigation/pagination/pagination.styles.js.map +1 -1
  596. package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
  597. package/dist/components/navigation/skip-link/skip-link.js +2 -1
  598. package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
  599. package/dist/components/navigation/skip-link/skip-link.styles.d.ts.map +1 -1
  600. package/dist/components/navigation/skip-link/skip-link.styles.js +4 -1
  601. package/dist/components/navigation/skip-link/skip-link.styles.js.map +1 -1
  602. package/dist/components/navigation/tab-bar/tab-bar.d.ts +7 -0
  603. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  604. package/dist/components/navigation/tab-bar/tab-bar.js +31 -5
  605. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  606. package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
  607. package/dist/components/navigation/tab-bar/tab-bar.styles.js +78 -79
  608. package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
  609. package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
  610. package/dist/components/navigation/tab-bar/tab-bar.template.js +8 -1
  611. package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
  612. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +5 -0
  613. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
  614. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +24 -6
  615. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  616. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  617. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +32 -16
  618. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  619. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
  620. package/dist/components/navigation/top-title-bar/top-title-bar.js +5 -4
  621. package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
  622. package/dist/components/navigation/top-title-bar/top-title-bar.styles.d.ts.map +1 -1
  623. package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +4 -1
  624. package/dist/components/navigation/top-title-bar/top-title-bar.styles.js.map +1 -1
  625. package/dist/components/shell-BlsXDxCn.js +222 -0
  626. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
  627. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +4 -3
  628. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
  629. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
  630. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +4 -2
  631. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -1
  632. package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
  633. package/dist/components/status-and-feedback/badge/badge.js +4 -3
  634. package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
  635. package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
  636. package/dist/components/status-and-feedback/badge/badge.styles.js +4 -1
  637. package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
  638. package/dist/components/status-and-feedback/banner/banner.d.ts +0 -1
  639. package/dist/components/status-and-feedback/banner/banner.d.ts.map +1 -1
  640. package/dist/components/status-and-feedback/banner/banner.js +13 -13
  641. package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
  642. package/dist/components/status-and-feedback/banner/banner.styles.d.ts.map +1 -1
  643. package/dist/components/status-and-feedback/banner/banner.styles.js +4 -1
  644. package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -1
  645. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts.map +1 -1
  646. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +5 -4
  647. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
  648. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.d.ts.map +1 -1
  649. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +4 -1
  650. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js.map +1 -1
  651. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +6 -4
  652. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map +1 -1
  653. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +40 -9
  654. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
  655. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.d.ts.map +1 -1
  656. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js +16 -2
  657. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js.map +1 -1
  658. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
  659. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +4 -3
  660. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
  661. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
  662. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +4 -1
  663. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
  664. package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -1
  665. package/dist/components/status-and-feedback/progress-bar/progress-bar.js +9 -8
  666. package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
  667. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
  668. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +4 -7
  669. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
  670. package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
  671. package/dist/components/status-and-feedback/progress-circle/progress-circle.js +8 -7
  672. package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
  673. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts.map +1 -1
  674. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +4 -3
  675. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -1
  676. package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
  677. package/dist/components/status-and-feedback/status-bar/status-bar.js +3 -2
  678. package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
  679. package/dist/components/status-and-feedback/status-bar/status-bar.styles.d.ts.map +1 -1
  680. package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +4 -1
  681. package/dist/components/status-and-feedback/status-bar/status-bar.styles.js.map +1 -1
  682. package/dist/components/toml-BOuWGMcf.js +76 -0
  683. package/dist/css/fouc.css +30 -0
  684. package/dist/css/global.css +1 -0
  685. package/dist/css/rich-text.css +63 -5
  686. package/dist/css/settings.css +35 -13
  687. package/dist/utilities/codemirror/codemirror-element.d.ts +66 -0
  688. package/dist/utilities/codemirror/codemirror-element.d.ts.map +1 -0
  689. package/dist/utilities/codemirror/codemirror-element.js +121 -0
  690. package/dist/utilities/codemirror/codemirror-element.js.map +1 -0
  691. package/dist/utilities/codemirror/languages.d.ts +4 -0
  692. package/dist/utilities/codemirror/languages.d.ts.map +1 -0
  693. package/dist/utilities/codemirror/languages.js +39 -0
  694. package/dist/utilities/codemirror/languages.js.map +1 -0
  695. package/dist/utilities/codemirror/theme.d.ts +4 -0
  696. package/dist/utilities/codemirror/theme.d.ts.map +1 -0
  697. package/dist/utilities/codemirror/theme.js +84 -0
  698. package/dist/utilities/codemirror/theme.js.map +1 -0
  699. package/dist/utilities/dismiss-from-title-bar.d.ts +19 -0
  700. package/dist/utilities/dismiss-from-title-bar.d.ts.map +1 -0
  701. package/dist/utilities/dismiss-from-title-bar.js +21 -0
  702. package/dist/utilities/dismiss-from-title-bar.js.map +1 -0
  703. package/dist/utilities/reflect-non-default.d.ts +30 -0
  704. package/dist/utilities/reflect-non-default.d.ts.map +1 -0
  705. package/dist/utilities/reflect-non-default.js +34 -0
  706. package/dist/utilities/reflect-non-default.js.map +1 -0
  707. package/package.json +96 -68
  708. package/dist/assets/styles/slotted-reset.d.ts.map +0 -1
  709. package/dist/assets/styles/slotted-reset.fixtures.d.ts.map +0 -1
  710. package/dist/assets/styles/slotted-reset.fixtures.js.map +0 -1
  711. package/dist/assets/styles/slotted-reset.js.map +0 -1
  712. package/dist/components/index-BVaijKe_.js +0 -35785
  713. package/dist/components/inputs/token/token.d.ts +0 -42
  714. package/dist/components/inputs/token/token.d.ts.map +0 -1
  715. package/dist/components/inputs/token/token.js +0 -86
  716. package/dist/components/inputs/token/token.js.map +0 -1
  717. package/dist/components/inputs/token/token.styles.d.ts.map +0 -1
  718. package/dist/components/inputs/token/token.styles.js +0 -139
  719. package/dist/components/inputs/token/token.styles.js.map +0 -1
  720. package/dist/components/inputs/token/token.template.d.ts +0 -4
  721. package/dist/components/inputs/token/token.template.d.ts.map +0 -1
  722. package/dist/components/inputs/token/token.template.js +0 -41
  723. package/dist/components/inputs/token/token.template.js.map +0 -1
  724. package/dist/components/prism-bash-vbqaw3JR.js +0 -226
  725. package/dist/components/prism-css-B93tXdOU.js +0 -59
  726. package/dist/components/prism-gherkin-CMPYyXOQ.js +0 -82
  727. package/dist/components/prism-javascript-DeC_17Pw.js +0 -140
  728. package/dist/components/prism-json-DIMpow89.js +0 -25
  729. package/dist/components/prism-markdown-D-uFBkiz.js +0 -339
  730. package/dist/components/prism-markup-DfJYPYHA.js +0 -177
  731. package/dist/components/prism-python-Tr_Ff1KJ.js +0 -99
  732. package/dist/components/prism-rust-CxUpjfK5.js +0 -157
  733. package/dist/components/prism-sql-BGqCBMyJ.js +0 -33
  734. package/dist/components/prism-toml-Ubdq-a5x.js +0 -45
  735. package/dist/components/prism-typescript-zaF4YQWN.js +0 -87
  736. package/dist/components/prism-yaml-DO0f9pf6.js +0 -71
  737. /package/dist/components/{inputs → content}/token/token.styles.d.ts +0 -0
@@ -0,0 +1,241 @@
1
+ /**
2
+ * Nederlandse Digitale Dienst Text Editor Component (Lit + TypeScript)
3
+ *
4
+ * A hybrid markdown editor built on CodeMirror 6 (via NLDDCodeMirrorElement):
5
+ * the document stays plain markdown text, but formatting is shown inline (bold
6
+ * is bold, headings are larger, links are coloured) while the syntax markers
7
+ * stay visible, only dimmed — the iA Writer / Kirby approach. No WYSIWYG tree,
8
+ * so the data stays portable.
9
+ *
10
+ * Default `variant="simple"` is bare (no frame, no focus ring) for use inside
11
+ * a composition (e.g. a message field) that owns its chrome and focus; the
12
+ * caret is a prominent accent. `variant="input-field"` adds a framed surface + focus
13
+ * ring. `font` is `sans` (default, best for prose) or `mono`.
14
+ *
15
+ * Headless: there is no built-in toolbar. A consumer drives formatting via the
16
+ * command methods (toggleBold/toggleItalic/toggleInlineCode/toggleStrikethrough/
17
+ * toggleHeading/toggleBulletList/toggleQuote/toggleLink/runCommand to toggle, and
18
+ * setHeading/setList for picker-style "set" semantics), reads the active formats
19
+ * with getState(), listens to the nldd-text-editor-state event to render toggle
20
+ * states, and forwards padding clicks with focusFromPoint(). Cmd/Ctrl+B/I/E/K are
21
+ * bound out of the box. Commands keep focus on the editor. An @-mention typeahead
22
+ * (mentionSource) collapses to an atomic token, and a W3C-style annotation overlay
23
+ * (annotations) marks ranges with a dashed underline, light tint and a count badge
24
+ * without touching the underlying text.
25
+ *
26
+ * @element nldd-text-editor
27
+ *
28
+ * @attr {string} value - Editor content (markdown)
29
+ * @attr {string} placeholder - Placeholder text shown while empty
30
+ * @attr {string} input-id - Sets the id on the editable element. Set automatically by nldd-form-field.
31
+ * @attr {boolean} disabled - Disabled state
32
+ * @attr {string} name - Field name for form submission
33
+ * @attr {boolean} readonly - Readonly state (focusable and selectable, not editable)
34
+ * @attr {boolean} required - Required state
35
+ * @attr {boolean} wrap - Wrap long lines (default true; prose wraps)
36
+ * @attr {number} rows - Minimum visible rows (the floor in every resize mode). Default: 6.
37
+ * @attr {string} resize - 'none' (fixed) | 'vertical' (drag) | 'auto' (grow, default)
38
+ * @attr {string} variant - 'simple' (default, bare) | 'input-field' (framed surface)
39
+ * @attr {string} font - 'sans' (default) | 'mono'
40
+ * @attr {string} accessible-label - Accessible label forwarded to the editor. Set automatically by nldd-form-field.
41
+ *
42
+ * @prop {MentionSource} mentionSource - Consumer-supplied @-mention candidate source (property only). Without it, @-typeahead is inert.
43
+ * @attr {boolean} annotatable - Enable the annotation overlay (off by default). Annotations only render when this is set.
44
+ * @prop {Annotation[]} annotations - Consumer-supplied annotation overlay (property only). Anchored by offset and mapped through edits; the text stays clean. Requires `annotatable`. Assign a NEW array to apply changes (Lit dirty-checks by identity, so in-place mutation like `.push()` won't re-render): `editor.annotations = [...editor.annotations, next]`.
45
+ * @attr {object} translations - Override the editor's assistive-tech strings (the open-in-new-tab link badge and the annotation count badge). Unset keys fall back to Dutch.
46
+ *
47
+ * @fires input - When the content changes (detail: { value })
48
+ * @fires change - When the content is committed on blur (detail: { value })
49
+ * @fires nldd-text-editor-state - When the selection or content changes (detail: TextEditorState), for toolbar toggle state
50
+ * @fires nldd-text-editor-mention - When an @-mention is inserted (detail: MentionInsertedDetail with id, label, from, to)
51
+ * @fires nldd-text-editor-annotation-click - When an annotation's count badge is clicked (detail: { ids: string[], rect: DOMRect }); rect is the badge's viewport box so a consumer can anchor its own note UI to it
52
+ */
53
+ import { type PropertyValues } from 'lit';
54
+ import { type Extension } from '@codemirror/state';
55
+ import { NLDDCodeMirrorElement } from '../../../utilities/codemirror/codemirror-element.js';
56
+ import { type MentionSource } from './text-editor.mentions.js';
57
+ import { type Annotation } from './text-editor.annotations.js';
58
+ import { type HeadingLevel, type TextEditorState } from './text-editor.commands.js';
59
+ import { type NLDDTextEditorTranslations } from './text-editor.i18n.js';
60
+ export type ResizeMode = 'none' | 'vertical' | 'auto';
61
+ export type TextEditorVariant = 'input-field' | 'simple';
62
+ export type TextEditorFont = 'sans' | 'mono';
63
+ export type { HeadingLevel, TextEditorState, TextEditorActiveFormats } from './text-editor.commands.js';
64
+ export type { MentionCandidate, MentionSource, MentionInsertedDetail } from './text-editor.mentions.js';
65
+ export type { Annotation } from './text-editor.annotations.js';
66
+ export declare class NLDDTextEditor extends NLDDCodeMirrorElement {
67
+ static formAssociated: boolean;
68
+ static shadowRootOptions: {
69
+ delegatesFocus: boolean;
70
+ clonable?: boolean;
71
+ customElementRegistry?: CustomElementRegistry;
72
+ mode: ShadowRootMode;
73
+ serializable?: boolean;
74
+ slotAssignment?: SlotAssignmentMode;
75
+ };
76
+ static styles: import("lit").CSSResult;
77
+ private _internals;
78
+ private _initialValue;
79
+ private _valueAtFocus;
80
+ private _accessibleLabelWarned;
81
+ value: string;
82
+ inputId: string;
83
+ placeholder: string;
84
+ disabled: boolean;
85
+ name: string;
86
+ readonly: boolean;
87
+ required: boolean;
88
+ wrap: boolean;
89
+ rows: number;
90
+ resize: ResizeMode;
91
+ variant: TextEditorVariant;
92
+ font: TextEditorFont;
93
+ accessibleLabel: string;
94
+ /** Consumer-supplied @-mention source: called with the text typed after `@`
95
+ * and returns (a promise of) candidates. Property only (set via JS); without
96
+ * it, @-typeahead is inert. */
97
+ mentionSource?: MentionSource;
98
+ /** Whether the annotation overlay is enabled. Off by default; set the
99
+ * `annotatable` attribute to turn it on (so the comment affordance and the
100
+ * overlay only appear when the consumer opts in). */
101
+ annotatable: boolean;
102
+ /** Consumer-supplied annotations (W3C-style overlay). Property only (set via
103
+ * JS). Render only when `annotatable` is on. The text stays clean; these
104
+ * render as a light tint and a count badge, anchored by offset and mapped
105
+ * through edits.
106
+ *
107
+ * IMPORTANT: assign a NEW array to apply changes. Lit dirty-checks this
108
+ * property by identity, so mutating the existing array in place
109
+ * (`editor.annotations.push(next)`, `editor.annotations[0].end = 9`, …) does
110
+ * NOT trigger a re-render. Always replace it:
111
+ * `editor.annotations = [...editor.annotations, next]`. */
112
+ annotations: Annotation[];
113
+ /** Override translation keys for the editor's assistive-tech strings (the
114
+ * open-in-new-tab link badge and the annotation count badge). Unset keys fall
115
+ * back to Dutch. */
116
+ translations: Partial<NLDDTextEditorTranslations>;
117
+ private _container;
118
+ private _editableCompartment;
119
+ private _wrapCompartment;
120
+ private _placeholderCompartment;
121
+ private _attrsCompartment;
122
+ private _historyCompartment;
123
+ protected getEditorParent(): HTMLElement | null | undefined;
124
+ /** Resolve a translation key, applying `{name}` placeholder substitution from
125
+ * `vars`. Consumer overrides via `translations` win; unset keys fall back to the
126
+ * Dutch defaults. */
127
+ _t(key: keyof NLDDTextEditorTranslations, vars?: Record<string, string | number>): string;
128
+ protected buildExtensions(): Extension[];
129
+ private _editableExtension;
130
+ private _placeholderExtension;
131
+ private _attrsExtension;
132
+ firstUpdated(): void;
133
+ protected onEditorMounted(): void;
134
+ updated(changed: PropertyValues): void;
135
+ private _syncAnnotations;
136
+ private _selectMentionBeforeDelete;
137
+ toggleBold(): void;
138
+ toggleItalic(): void;
139
+ toggleInlineCode(): void;
140
+ toggleStrikethrough(): void;
141
+ toggleHeading(level: HeadingLevel): void;
142
+ /** Set the block to a heading level (0 = paragraph) without toggling — for a
143
+ * picker where choosing a level always applies it. */
144
+ setHeading(level: HeadingLevel): void;
145
+ toggleBulletList(): void;
146
+ /** Set the list type, replacing any existing list ('none' strips it) — for an
147
+ * exclusive list picker. */
148
+ setList(type: 'none' | 'bullet' | 'ordered'): void;
149
+ toggleQuote(): void;
150
+ toggleLink(href?: string): void;
151
+ toggleCodeBlock(): void;
152
+ /** Nest the selected list item(s) under the preceding item at the same level.
153
+ * Only list items move, and only as far as that parent's content column — so a
154
+ * first or standalone item can't be over-indented into an indented code block. */
155
+ indent(): void;
156
+ /** Decrease the leading indentation of the selected lines. */
157
+ outdent(): void;
158
+ /** Undo the last change. History is built in, so Cmd/Ctrl+Z works too. */
159
+ undo(): void;
160
+ /** Redo the last undone change (Cmd/Ctrl+Shift+Z / Ctrl+Y also work). */
161
+ redo(): void;
162
+ /** Drop the undo/redo history, leaving the document untouched. Use after a
163
+ * consumer-driven discard so a later undo can't step back into the
164
+ * thrown-away edits. Reconfiguring the history compartment off and back on
165
+ * re-initialises it with empty stacks. */
166
+ clearHistory(): void;
167
+ /** Text and annotations of the last cut, so a same-editor paste can move the
168
+ * annotations along with their text. Cleared by copy and by a matching paste. */
169
+ private _cutBuffer;
170
+ /** The annotations lying fully inside the current selection, offset relative to
171
+ * the selection's clean start. */
172
+ private _annotationsInSelection;
173
+ /** Copy the current selection to the clipboard, sentinel-free. No-op when the
174
+ * selection is empty or the clipboard is unavailable (e.g. permission denied). */
175
+ copy(): Promise<void>;
176
+ /** Cut the current selection to the clipboard and remove it from the document.
177
+ * Its annotations are remembered so a paste back into this editor moves them
178
+ * along. No-op when the selection is empty. */
179
+ cut(): Promise<void>;
180
+ /** Paste clipboard text at the caret, replacing any selection. Sentinels that
181
+ * rode in from another editor are stripped. When the text matches a cut made in
182
+ * this editor, its annotations travel with it (a move); otherwise it's plain
183
+ * text. No-op when the clipboard is empty or unreadable. */
184
+ paste(): Promise<void>;
185
+ /** Insert `text` at the selection, re-attaching the cut annotations when it matches
186
+ * a cut made in this editor (a move, one-shot). Shared by the toolbar's paste()
187
+ * and the native Cmd/Ctrl+V handler. */
188
+ private _pasteText;
189
+ /** Escape hatch: run a command by name (bold, italic, inlineCode,
190
+ * strikethrough, bulletList, quote, heading [payload: level], link
191
+ * [payload: href], copy, cut, paste). */
192
+ runCommand(name: string, payload?: unknown): void;
193
+ /** The formats active at the current selection (drives a toolbar's state). */
194
+ getState(): TextEditorState;
195
+ /** The current selection in CLEAN (annotation-sentinel-free) coordinates plus
196
+ * the quoted text — the anchor a consumer needs to attach a new annotation to
197
+ * the selection (e.g. from a toolbar "comment" button). `empty` mirrors
198
+ * getState().empty for gating that button.
199
+ *
200
+ * `rect` is the selection's bounding box in viewport coordinates (or the
201
+ * caret box when empty), so a consumer can anchor a popover to the selected
202
+ * text itself instead of to its own button. Use it as a Floating UI virtual
203
+ * anchor: `{ getBoundingClientRect: () => rect, contextElement: editorEl }`.
204
+ * It is computed from CodeMirror's layout, so it is correct even when the
205
+ * editor is not focused (clicking a toolbar button blurs the editor but the
206
+ * selection state survives). `null` when there is no view or the selection
207
+ * is scrolled out of sight. */
208
+ getSelection(): {
209
+ start: number;
210
+ end: number;
211
+ quote: string;
212
+ empty: boolean;
213
+ rect: DOMRect | null;
214
+ };
215
+ /** The annotations currently in the editor, in CLEAN coordinates, each quote
216
+ * re-sliced from the current text — so a consumer can persist positions that
217
+ * moved with edits (read this on save, then write the anchors back). */
218
+ getAnnotations(): Annotation[];
219
+ private _emitState;
220
+ private _emitMention;
221
+ private _onScrollerPointerDown;
222
+ private _onMentionPointerDown;
223
+ /** A click on an annotation's count badge emits nldd-text-editor-annotation-click
224
+ * with the id(s) it covers (a merged badge carries several) and the badge's
225
+ * viewport rect, so the consumer can anchor its own note UI to the badge. The
226
+ * tinted text stays plain-clickable for caret placement. */
227
+ private _onAnnotationBadgeClick;
228
+ private _onDocChanged;
229
+ private _emitChange;
230
+ private _checkAccessibleLabel;
231
+ formResetCallback(): void;
232
+ formDisabledCallback(disabled: boolean): void;
233
+ formStateRestoreCallback(state: File | string | FormData | null): void;
234
+ render(): import("lit-html").TemplateResult;
235
+ }
236
+ declare global {
237
+ interface HTMLElementTagNameMap {
238
+ 'nldd-text-editor': NLDDTextEditor;
239
+ }
240
+ }
241
+ //# sourceMappingURL=text-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAUtD,OAAO,EAA+C,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEhG,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAG5F,OAAO,EAAY,KAAK,aAAa,EAA8B,MAAM,2BAA2B,CAAC;AACrG,OAAO,EAA4F,KAAK,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAIzJ,OAAO,EAeN,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAA8B,KAAK,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEpG,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;AACtD,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,QAAQ,CAAC;AACz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OAAO,CAAC,IAAI,CAAC;IAa3B;;oDAEgD;IAC1C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAa1B;;;iEAG6D;IACvD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ5B;;6CAEyC;IACzC,OAAO,CAAC,UAAU;IAiBlB;;8CAE0C;IAC1C,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI;IAgBjD,8EAA8E;IAC9E,QAAQ,IAAI,eAAe;IAW3B;;;;;;;;;;;;oCAYgC;IAChC,YAAY,IAAI;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAA;KAAE;IAqBnG;;6EAEyE;IACzE,cAAc,IAAI,UAAU,EAAE;IAY9B,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,sBAAsB,CAO5B;IAEF,OAAO,CAAC,qBAAqB,CAiB3B;IAEF;;;iEAG6D;IAC7D,OAAO,CAAC,uBAAuB,CAW7B;IAEF,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,qBAAqB;IAO7B,iBAAiB,IAAI,IAAI;IAIzB,oBAAoB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAI7C,wBAAwB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAI7D,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,kBAAkB,EAAE,cAAc,CAAC;KACnC;CACD"}
@@ -0,0 +1,30 @@
1
+ import { EditorView, ViewPlugin } from '@codemirror/view';
2
+ import { type Extension } from '@codemirror/state';
3
+ declare class DragMove {
4
+ private readonly view;
5
+ private state;
6
+ private ghost;
7
+ constructor(view: EditorView);
8
+ start(event: MouseEvent): boolean;
9
+ /** Begin a drag of an explicit range (a mention token) seeded from a pointer
10
+ * press the component already handled. The mention is selected on press, so a
11
+ * plain release keeps it selected; dragging past the threshold moves the whole
12
+ * token. mousemove/mouseup still fire after a prevented pointerdown. */
13
+ startFor(seed: {
14
+ clientX: number;
15
+ clientY: number;
16
+ }, from: number, to: number): void;
17
+ private removeListeners;
18
+ private onMove;
19
+ private onUp;
20
+ private isInside;
21
+ private showGhost;
22
+ private moveGhost;
23
+ private clearGhost;
24
+ destroy(): void;
25
+ }
26
+ export declare const dragMovePlugin: ViewPlugin<DragMove, undefined>;
27
+ /** Drag selected text to move it (shadow-DOM-safe; native DnD won't start here). */
28
+ export declare const dragToMove: Extension;
29
+ export {};
30
+ //# sourceMappingURL=text-editor.drag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor.drag.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.drag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAmB,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAA2B,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAiG5E,cAAM,QAAQ;IAID,OAAO,CAAC,QAAQ,CAAC,IAAI;IAHjC,OAAO,CAAC,KAAK,CAA0B;IACvC,OAAO,CAAC,KAAK,CAA4B;gBAEZ,IAAI,EAAE,UAAU;IAE7C,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO;IAoBjC;;;6EAGyE;IACzE,QAAQ,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;IASpF,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,MAAM,CAkBZ;IAEF,OAAO,CAAC,IAAI,CAuCV;IAEF,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,SAAS;IASjB,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,UAAU;IAKlB,OAAO,IAAI,IAAI;CAIf;AAED,eAAO,MAAM,cAAc,iCAMzB,CAAC;AAEH,oFAAoF;AACpF,eAAO,MAAM,UAAU,EAAE,SAA2D,CAAC"}
@@ -0,0 +1,231 @@
1
+ import { ViewPlugin } from '@codemirror/view';
2
+ import { StateEffect, StateField } from '@codemirror/state';
3
+ import { stripSentinels, docToClean } from './text-editor.annotation-sentinels.js';
4
+ import { annotationMove } from './text-editor.annotations.js';
5
+ /* Drag-to-move for selected text. The editor lives in a shadow DOM, where the
6
+ * browser refuses to start a native drag of the selection (the document-level
7
+ * selection is collapsed for shadow-tree selections), so the native HTML5 path
8
+ * never fires. This reimplements it with pointer tracking: mousedown on the
9
+ * selection → past a small threshold it becomes a drag → a drop cursor shows
10
+ * where it will land → mouseup moves the text there. */
11
+ const setDropPos = StateEffect.define();
12
+ // Holds the live drop position during a drag; the overlay plugin draws the cursor.
13
+ const dropPosField = StateField.define({
14
+ create: () => null,
15
+ update(value, tr) {
16
+ for (const effect of tr.effects)
17
+ if (effect.is(setDropPos))
18
+ return effect.value;
19
+ return value === null ? null : tr.changes.mapPos(value);
20
+ },
21
+ });
22
+ // Draws the drop cursor as an absolutely-positioned overlay instead of an inline
23
+ // widget. An inline widget dropped inside an annotation splits its tint into two
24
+ // rounded pills; an overlay sits above the text, so the annotation stays whole and
25
+ // the cursor can be a clearly visible bar. The position is read in a measure pass,
26
+ // so coordsAtPos (a layout read) never runs mid-update.
27
+ class DropCursorLayer {
28
+ constructor(view) {
29
+ this.view = view;
30
+ this.cursor = null;
31
+ this.readPos = () => {
32
+ const pos = this.view.state.field(dropPosField);
33
+ if (pos === null)
34
+ return null;
35
+ const rect = this.view.coordsAtPos(pos, 1);
36
+ if (!rect)
37
+ return null;
38
+ const base = this.view.scrollDOM.getBoundingClientRect();
39
+ return {
40
+ left: rect.left - base.left + this.view.scrollDOM.scrollLeft,
41
+ top: rect.top - base.top + this.view.scrollDOM.scrollTop,
42
+ height: rect.bottom - rect.top,
43
+ };
44
+ };
45
+ this.drawCursor = (rect) => {
46
+ if (!rect) {
47
+ this.remove();
48
+ return;
49
+ }
50
+ if (!this.cursor) {
51
+ this.cursor = document.createElement('div');
52
+ this.cursor.className = 'cm-drag-and-drop-cursor';
53
+ this.view.scrollDOM.appendChild(this.cursor);
54
+ }
55
+ this.cursor.style.left = `${rect.left}px`;
56
+ this.cursor.style.top = `${rect.top}px`;
57
+ this.cursor.style.height = `${rect.height}px`;
58
+ };
59
+ }
60
+ update(update) {
61
+ const pos = update.state.field(dropPosField);
62
+ if (pos === null) {
63
+ this.remove();
64
+ }
65
+ else if (update.startState.field(dropPosField) !== pos ||
66
+ update.docChanged ||
67
+ update.geometryChanged) {
68
+ this.view.requestMeasure({ read: this.readPos, write: this.drawCursor });
69
+ }
70
+ }
71
+ remove() {
72
+ this.cursor?.remove();
73
+ this.cursor = null;
74
+ }
75
+ destroy() {
76
+ this.remove();
77
+ }
78
+ }
79
+ const dropCursorLayer = ViewPlugin.fromClass(DropCursorLayer);
80
+ class DragMove {
81
+ constructor(view) {
82
+ this.view = view;
83
+ this.state = null;
84
+ this.ghost = null;
85
+ this.onMove = (event) => {
86
+ const st = this.state;
87
+ if (!st)
88
+ return;
89
+ if (!st.dragging) {
90
+ if (Math.abs(event.clientX - st.startX) + Math.abs(event.clientY - st.startY) < 4)
91
+ return;
92
+ st.dragging = true;
93
+ // Default cursor (no grab handle) plus a translucent copy of the text.
94
+ this.view.scrollDOM.style.cursor = 'default';
95
+ this.showGhost(st.from, st.to);
96
+ }
97
+ this.moveGhost(event.clientX, event.clientY);
98
+ // No drop cursor when outside the editor (the drop would be undone) or while
99
+ // hovering inside the dragged range (a no-op target).
100
+ const pos = this.isInside(event.clientX, event.clientY)
101
+ ? this.view.posAtCoords({ x: event.clientX, y: event.clientY })
102
+ : null;
103
+ const drop = pos === null || (pos >= st.from && pos <= st.to) ? null : pos;
104
+ this.view.dispatch({ effects: setDropPos.of(drop) });
105
+ };
106
+ this.onUp = (event) => {
107
+ this.removeListeners();
108
+ this.view.scrollDOM.style.cursor = '';
109
+ this.clearGhost();
110
+ const st = this.state;
111
+ this.state = null;
112
+ this.view.dispatch({ effects: setDropPos.of(null) });
113
+ if (!st)
114
+ return;
115
+ const pos = this.view.posAtCoords({ x: event.clientX, y: event.clientY });
116
+ if (!st.dragging) {
117
+ // A plain click on a mention keeps it selected (set on press); on a text
118
+ // selection it collapses the caret where you clicked.
119
+ if (!st.isMention && pos !== null)
120
+ this.view.dispatch({ selection: { anchor: pos } });
121
+ this.view.focus();
122
+ return;
123
+ }
124
+ if (this.isInside(event.clientX, event.clientY) && pos !== null && (pos < st.from || pos > st.to)) {
125
+ // Move clean text: any annotation sentinels in the slice are dropped here,
126
+ // and the document filter re-adds the ones it needs at the new location.
127
+ const doc = this.view.state.doc.toString();
128
+ const text = stripSentinels(this.view.state.sliceDoc(st.from, st.to));
129
+ const insertAt = pos > st.to ? pos - (st.to - st.from) : pos;
130
+ // Clean-coordinate move info so annotations inside the block travel with it
131
+ // (drop is always outside the block, so pos is before delFrom or after delTo).
132
+ const delFrom = docToClean(doc, st.from);
133
+ const delTo = docToClean(doc, st.to);
134
+ const cleanPos = docToClean(doc, pos);
135
+ const cleanInsertAt = cleanPos > delTo ? cleanPos - (delTo - delFrom) : cleanPos;
136
+ this.view.dispatch({
137
+ changes: [{ from: st.from, to: st.to }, { from: pos, insert: text }],
138
+ selection: { anchor: insertAt, head: insertAt + text.length },
139
+ effects: annotationMove.of({ from: delFrom, to: delTo, insertAt: cleanInsertAt }),
140
+ });
141
+ }
142
+ else {
143
+ // Dropped outside the editor (or back onto the selection): leave the text
144
+ // where it was and keep it selected — effectively undoing the drag.
145
+ this.view.dispatch({ selection: { anchor: st.from, head: st.to } });
146
+ }
147
+ this.view.focus();
148
+ };
149
+ }
150
+ start(event) {
151
+ if (event.button !== 0 || event.shiftKey || event.altKey || event.metaKey || event.ctrlKey)
152
+ return false;
153
+ // Leave multi-click to CM (double = word, triple = line). Otherwise the third
154
+ // click of a triple lands on the word the second click selected, starts a drag,
155
+ // and collapses to a caret on release — so it took a fourth click to select.
156
+ if (event.detail >= 2)
157
+ return false;
158
+ if (this.view.state.readOnly)
159
+ return false;
160
+ // Mentions own their own click (select-on-click); don't hijack it as a drag.
161
+ if (event.target?.closest?.('.cm-md-mention-token'))
162
+ return false;
163
+ const sel = this.view.state.selection.main;
164
+ if (sel.empty)
165
+ return false;
166
+ const pos = this.view.posAtCoords({ x: event.clientX, y: event.clientY });
167
+ if (pos === null || pos < sel.from || pos > sel.to)
168
+ return false; // not on the selection
169
+ this.state = { startX: event.clientX, startY: event.clientY, from: sel.from, to: sel.to, dragging: false, isMention: false };
170
+ window.addEventListener('mousemove', this.onMove, true);
171
+ window.addEventListener('mouseup', this.onUp, true);
172
+ event.preventDefault(); // we own this press; CM shouldn't start a new selection
173
+ return true;
174
+ }
175
+ /** Begin a drag of an explicit range (a mention token) seeded from a pointer
176
+ * press the component already handled. The mention is selected on press, so a
177
+ * plain release keeps it selected; dragging past the threshold moves the whole
178
+ * token. mousemove/mouseup still fire after a prevented pointerdown. */
179
+ startFor(seed, from, to) {
180
+ if (this.view.state.readOnly)
181
+ return;
182
+ this.state = { startX: seed.clientX, startY: seed.clientY, from, to, dragging: false, isMention: true };
183
+ // Pointer events, not mouse: the component preventDefault'd the pointerdown to
184
+ // own the press, which can suppress the compatibility mousemove/mouseup.
185
+ window.addEventListener('pointermove', this.onMove, true);
186
+ window.addEventListener('pointerup', this.onUp, true);
187
+ }
188
+ removeListeners() {
189
+ window.removeEventListener('mousemove', this.onMove, true);
190
+ window.removeEventListener('mouseup', this.onUp, true);
191
+ window.removeEventListener('pointermove', this.onMove, true);
192
+ window.removeEventListener('pointerup', this.onUp, true);
193
+ }
194
+ isInside(x, y) {
195
+ const r = this.view.scrollDOM.getBoundingClientRect();
196
+ return x >= r.left && x <= r.right && y >= r.top && y <= r.bottom;
197
+ }
198
+ // A translucent copy of the dragged text that follows the pointer.
199
+ showGhost(from, to) {
200
+ const ghost = document.createElement('div');
201
+ ghost.className = 'cm-drag-ghost';
202
+ // Show a mention as plain @Name — drop the markdown link wrapper and user id.
203
+ ghost.textContent = stripSentinels(this.view.state.sliceDoc(from, to)).replace(/\[(@[^\]]*)\]\(user:[^)]*\)/g, '$1');
204
+ this.view.dom.appendChild(ghost);
205
+ this.ghost = ghost;
206
+ }
207
+ moveGhost(x, y) {
208
+ if (this.ghost) {
209
+ this.ghost.style.left = `${x + 12}px`;
210
+ this.ghost.style.top = `${y + 12}px`;
211
+ }
212
+ }
213
+ clearGhost() {
214
+ this.ghost?.remove();
215
+ this.ghost = null;
216
+ }
217
+ destroy() {
218
+ this.removeListeners();
219
+ this.clearGhost();
220
+ }
221
+ }
222
+ export const dragMovePlugin = ViewPlugin.fromClass(DragMove, {
223
+ eventHandlers: {
224
+ mousedown(event) {
225
+ return this.start(event);
226
+ },
227
+ },
228
+ });
229
+ /** Drag selected text to move it (shadow-DOM-safe; native DnD won't start here). */
230
+ export const dragToMove = [dropPosField, dropCursorLayer, dragMovePlugin];
231
+ //# sourceMappingURL=text-editor.drag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor.drag.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.drag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,UAAU,EAAmB,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,UAAU,EAAkB,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D;;;;;wDAKwD;AAExD,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,EAAiB,CAAC;AAEvD,mFAAmF;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C,CAAC,CAAC,OAAO,CAAC,8BAA8B,EAAE,IAAI,CAAC,CAAC;QACrH,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACpB,CAAC;IAEO,SAAS,CAAC,CAAS,EAAE,CAAS;QACrC,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC;YACtC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC;QACtC,CAAC;IACF,CAAC;IAEO,UAAU;QACjB,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,OAAO;QACN,IAAI,CAAC,eAAe,EAAE,CAAC;QACvB,IAAI,CAAC,UAAU,EAAE,CAAC;IACnB,CAAC;CACD;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,QAAQ,EAAE;IAC5D,aAAa,EAAE;QACd,SAAS,CAAiB,KAAiB;YAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;KACD;CACD,CAAC,CAAC;AAEH,oFAAoF;AACpF,MAAM,CAAC,MAAM,UAAU,GAAc,CAAC,YAAY,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const nlddTextEditorTranslations: {
2
+ 'components.text-editor.open-in-new-tab-label': string;
3
+ 'components.text-editor.annotation-count-label': string;
4
+ 'components.text-editor.annotation-singular-lowercase': string;
5
+ 'components.text-editor.annotation-plural-lowercase': string;
6
+ };
7
+ export type NLDDTextEditorTranslations = typeof nlddTextEditorTranslations;
8
+ //# sourceMappingURL=text-editor.i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B;;;;;CAWtC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC"}
@@ -0,0 +1,13 @@
1
+ export const nlddTextEditorTranslations = {
2
+ // Accessible label on the "open link in new tab" badge that follows a real link.
3
+ // {url} is the link's destination.
4
+ 'components.text-editor.open-in-new-tab-label': 'Open link in nieuw tabblad: {url}',
5
+ // Accessible label on an annotation's count badge. {count} is the number of
6
+ // annotations on the range, {noun} is the singular/plural noun below, and {quote}
7
+ // is the (truncated) annotated text.
8
+ 'components.text-editor.annotation-count-label': "{count} {noun} op '{quote}'",
9
+ // The noun used in annotation-count-label: singular for one annotation, plural for more.
10
+ 'components.text-editor.annotation-singular-lowercase': 'annotatie',
11
+ 'components.text-editor.annotation-plural-lowercase': 'annotaties',
12
+ };
13
+ //# sourceMappingURL=text-editor.i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor.i18n.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC,iFAAiF;IACjF,mCAAmC;IACnC,8CAA8C,EAAE,mCAAmC;IACnF,4EAA4E;IAC5E,kFAAkF;IAClF,qCAAqC;IACrC,+CAA+C,EAAE,6BAA6B;IAC9E,yFAAyF;IACzF,sDAAsD,EAAE,WAAW;IACnE,oDAAoD,EAAE,YAAY;CAClE,CAAC"}