@lilydesignsystem/svelte-headless 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/LICENSE.md +8 -8
  3. package/README.md +453 -0
  4. package/dist/components/AccordionLink/AccordionLink.svelte +12 -2
  5. package/dist/components/AccordionLink/AccordionLink.svelte.d.ts +4 -0
  6. package/dist/components/ActionBar/ActionBar.svelte +2 -2
  7. package/dist/components/ActionGroup/ActionGroup.svelte +31 -7
  8. package/dist/components/ActionGroup/ActionGroup.svelte.d.ts +4 -4
  9. package/dist/components/AddressographBox/AddressographBox.svelte +5 -1
  10. package/dist/components/AiLabel/AiLabel.svelte +2 -2
  11. package/dist/components/Alert/Alert.svelte +1 -3
  12. package/dist/components/AlertDialog/AlertDialog.svelte +2 -3
  13. package/dist/components/Answer/Answer.svelte +5 -1
  14. package/dist/components/AreaChart/AreaChart.svelte +5 -1
  15. package/dist/components/AsSaudiyahRaqmAlHuwiyahAlWataniyahInput/AsSaudiyahRaqmAlHuwiyahAlWataniyahInput.svelte +55 -0
  16. package/dist/components/AsSaudiyahRaqmAlHuwiyahAlWataniyahInput/AsSaudiyahRaqmAlHuwiyahAlWataniyahInput.svelte.d.ts +10 -0
  17. package/dist/components/AsSaudiyahRaqmAlHuwiyahAlWataniyahView/AsSaudiyahRaqmAlHuwiyahAlWataniyahView.svelte +40 -0
  18. package/dist/components/AsSaudiyahRaqmAlHuwiyahAlWataniyahView/AsSaudiyahRaqmAlHuwiyahAlWataniyahView.svelte.d.ts +8 -0
  19. package/dist/components/AustraliaTaxFileNumberInput/AustraliaTaxFileNumberInput.svelte +55 -0
  20. package/dist/components/AustraliaTaxFileNumberInput/AustraliaTaxFileNumberInput.svelte.d.ts +10 -0
  21. package/dist/components/AustraliaTaxFileNumberView/AustraliaTaxFileNumberView.svelte +40 -0
  22. package/dist/components/AustraliaTaxFileNumberView/AustraliaTaxFileNumberView.svelte.d.ts +8 -0
  23. package/dist/components/Autosuggest/Autosuggest.svelte +175 -8
  24. package/dist/components/Autosuggest/Autosuggest.svelte.d.ts +18 -4
  25. package/dist/components/AvatarGroup/AvatarGroup.svelte +5 -1
  26. package/dist/components/BarChart/BarChart.svelte +5 -1
  27. package/dist/components/BarcodeImage/BarcodeImage.svelte +7 -1
  28. package/dist/components/BreadcrumbLink/BreadcrumbLink.svelte +12 -2
  29. package/dist/components/BreadcrumbLink/BreadcrumbLink.svelte.d.ts +4 -0
  30. package/dist/components/Byline/Byline.svelte +4 -1
  31. package/dist/components/CandlestickChart/CandlestickChart.svelte +5 -1
  32. package/dist/components/Caption/Caption.svelte +1 -0
  33. package/dist/components/CareCard/CareCard.svelte +1 -0
  34. package/dist/components/Cascader/Cascader.svelte +7 -1
  35. package/dist/components/ChatComposer/ChatComposer.svelte +6 -3
  36. package/dist/components/ChatList/ChatList.svelte +6 -2
  37. package/dist/components/ChatListItem/ChatListItem.svelte +10 -2
  38. package/dist/components/ChatListItem/ChatListItem.svelte.d.ts +2 -0
  39. package/dist/components/ChatMessage/ChatMessage.svelte +6 -2
  40. package/dist/components/ChatNav/ChatNav.svelte +6 -2
  41. package/dist/components/CheckListItem/CheckListItem.svelte +4 -1
  42. package/dist/components/CheckboxGroup/CheckboxGroup.svelte +1 -0
  43. package/dist/components/ChoroplethChart/ChoroplethChart.svelte +5 -1
  44. package/dist/components/Citation/Citation.svelte +6 -2
  45. package/dist/components/Coachmark/Coachmark.svelte +20 -10
  46. package/dist/components/Code/Code.svelte +6 -2
  47. package/dist/components/CodeBlock/CodeBlock.svelte +6 -2
  48. package/dist/components/CollectionListItem/CollectionListItem.svelte +1 -1
  49. package/dist/components/ColombiaCedulaDeCiudadaniaInput/ColombiaCedulaDeCiudadaniaInput.svelte +55 -0
  50. package/dist/components/ColombiaCedulaDeCiudadaniaInput/ColombiaCedulaDeCiudadaniaInput.svelte.d.ts +10 -0
  51. package/dist/components/ColombiaCedulaDeCiudadaniaView/ColombiaCedulaDeCiudadaniaView.svelte +40 -0
  52. package/dist/components/ColombiaCedulaDeCiudadaniaView/ColombiaCedulaDeCiudadaniaView.svelte.d.ts +8 -0
  53. package/dist/components/ColumnChart/ColumnChart.svelte +5 -1
  54. package/dist/components/Combobox/Combobox.svelte +11 -9
  55. package/dist/components/Comment/Comment.svelte +5 -1
  56. package/dist/components/ComposedChart/ComposedChart.svelte +5 -1
  57. package/dist/components/ContentsListItem/ContentsListItem.svelte +4 -1
  58. package/dist/components/ContentsNav/ContentsNav.svelte +56 -36
  59. package/dist/components/ContextMenu/ContextMenu.svelte +19 -17
  60. package/dist/components/ContextualHelp/ContextualHelp.svelte +55 -26
  61. package/dist/components/ContextualHelp/ContextualHelp.svelte.d.ts +4 -2
  62. package/dist/components/ConvertDiv/ConvertDiv.svelte +3 -1
  63. package/dist/components/ConvertFromDiv/ConvertFromDiv.svelte +0 -1
  64. package/dist/components/ConvertFromUnitDiv/ConvertFromUnitDiv.svelte +0 -1
  65. package/dist/components/ConvertFromValueDiv/ConvertFromValueDiv.svelte +0 -1
  66. package/dist/components/ConvertIntoDiv/ConvertIntoDiv.svelte +0 -1
  67. package/dist/components/ConvertIntoUnitDiv/ConvertIntoUnitDiv.svelte +0 -1
  68. package/dist/components/ConvertIntoValueDiv/ConvertIntoValueDiv.svelte +0 -1
  69. package/dist/components/CurrencyInput/CurrencyInput.svelte +61 -8
  70. package/dist/components/CurrencyInput/CurrencyInput.svelte.d.ts +9 -4
  71. package/dist/components/DateTimeNowInput/DateTimeNowInput.svelte +18 -16
  72. package/dist/components/DateTimeNowInput/DateTimeNowInput.svelte.d.ts +3 -3
  73. package/dist/components/DescriptionList/DescriptionList.svelte +0 -2
  74. package/dist/components/DescriptionListItem/DescriptionListItem.svelte +0 -2
  75. package/dist/components/DialGroup/DialGroup.svelte +5 -1
  76. package/dist/components/Dialog/Dialog.svelte +2 -2
  77. package/dist/components/Diff/Diff.svelte +5 -1
  78. package/dist/components/DigitalObjectIdentifierLink/DigitalObjectIdentifierLink.svelte +16 -7
  79. package/dist/components/DigitalObjectIdentifierLink/DigitalObjectIdentifierLink.svelte.d.ts +4 -2
  80. package/dist/components/DocumentList/DocumentList.svelte +0 -1
  81. package/dist/components/DocumentListItem/DocumentListItem.svelte +0 -2
  82. package/dist/components/Drawer/Drawer.svelte +35 -12
  83. package/dist/components/DropdownMenu/DropdownMenu.svelte +27 -16
  84. package/dist/components/EcuadorCedulaDeIdentidadInput/EcuadorCedulaDeIdentidadInput.svelte +55 -0
  85. package/dist/components/EcuadorCedulaDeIdentidadInput/EcuadorCedulaDeIdentidadInput.svelte.d.ts +10 -0
  86. package/dist/components/EcuadorCedulaDeIdentidadView/EcuadorCedulaDeIdentidadView.svelte +40 -0
  87. package/dist/components/EcuadorCedulaDeIdentidadView/EcuadorCedulaDeIdentidadView.svelte.d.ts +8 -0
  88. package/dist/components/EireIndividualHealthIdentifierView/EireIndividualHealthIdentifierView.svelte +2 -1
  89. package/dist/components/EspanaTarjetaSanitariaIndividualView/EspanaTarjetaSanitariaIndividualView.svelte +2 -1
  90. package/dist/components/Event/Event.svelte +6 -2
  91. package/dist/components/FeatureCard/FeatureCard.svelte +5 -1
  92. package/dist/components/FeaturePhoto/FeaturePhoto.svelte +4 -1
  93. package/dist/components/FileTree/FileTree.svelte +20 -5
  94. package/dist/components/FiveFaceRatingPicker/FiveFaceRatingPicker.svelte +3 -1
  95. package/dist/components/FiveFaceRatingPickerButton/FiveFaceRatingPickerButton.svelte +2 -2
  96. package/dist/components/FiveStarRatingPicker/FiveStarRatingPicker.svelte +3 -1
  97. package/dist/components/FiveStarRatingPickerButton/FiveStarRatingPickerButton.svelte +2 -2
  98. package/dist/components/FlexStack/FlexStack.svelte +3 -1
  99. package/dist/components/FloatingPanel/FloatingPanel.svelte +15 -13
  100. package/dist/components/FunnelChart/FunnelChart.svelte +5 -1
  101. package/dist/components/GaugeChart/GaugeChart.svelte +5 -1
  102. package/dist/components/GoToNextSection/GoToNextSection.svelte +2 -3
  103. package/dist/components/GoToPreviousSection/GoToPreviousSection.svelte +2 -3
  104. package/dist/components/GoToTop/GoToTop.svelte +0 -2
  105. package/dist/components/GrailLayoutBottomFooter/GrailLayoutBottomFooter.svelte +4 -1
  106. package/dist/components/GrailLayoutCenterMain/GrailLayoutCenterMain.svelte +4 -1
  107. package/dist/components/GrailLayoutLeftAside/GrailLayoutLeftAside.svelte +4 -1
  108. package/dist/components/GrailLayoutRightAside/GrailLayoutRightAside.svelte +4 -1
  109. package/dist/components/GrailLayoutTopHeader/GrailLayoutTopHeader.svelte +4 -1
  110. package/dist/components/GraphicBlock/GraphicBlock.svelte +1 -1
  111. package/dist/components/Grid/Grid.svelte +12 -3
  112. package/dist/components/Grid/Grid.svelte.d.ts +2 -0
  113. package/dist/components/Headline/Headline.svelte +4 -1
  114. package/dist/components/HeatmapChart/HeatmapChart.svelte +5 -1
  115. package/dist/components/HeatmapChartWithYearOfDays/HeatmapChartWithYearOfDays.svelte +5 -1
  116. package/dist/components/Hero/Hero.svelte +6 -2
  117. package/dist/components/HongKongIdentityCardInput/HongKongIdentityCardInput.svelte +55 -0
  118. package/dist/components/HongKongIdentityCardInput/HongKongIdentityCardInput.svelte.d.ts +10 -0
  119. package/dist/components/HongKongIdentityCardView/HongKongIdentityCardView.svelte +40 -0
  120. package/dist/components/HongKongIdentityCardView/HongKongIdentityCardView.svelte.d.ts +8 -0
  121. package/dist/components/HorizontalScroller/HorizontalScroller.svelte +1 -0
  122. package/dist/components/HoverCard/HoverCard.svelte +14 -13
  123. package/dist/components/IconListItem/IconListItem.svelte +4 -1
  124. package/dist/components/InputWithMask/InputWithMask.svelte +4 -1
  125. package/dist/components/IranKodEMelliInput/IranKodEMelliInput.svelte +55 -0
  126. package/dist/components/IranKodEMelliInput/IranKodEMelliInput.svelte.d.ts +10 -0
  127. package/dist/components/IranKodEMelliView/IranKodEMelliView.svelte +40 -0
  128. package/dist/components/IranKodEMelliView/IranKodEMelliView.svelte.d.ts +8 -0
  129. package/dist/components/Kbd/Kbd.svelte +5 -1
  130. package/dist/components/KbdShortcut/KbdShortcut.svelte +9 -2
  131. package/dist/components/LineChart/LineChart.svelte +5 -1
  132. package/dist/components/Listbox/Listbox.svelte +22 -117
  133. package/dist/components/Listbox/listbox-machine.d.ts +81 -0
  134. package/dist/components/Listbox/listbox-machine.js +116 -0
  135. package/dist/components/Listbox/search-text.d.ts +22 -0
  136. package/dist/components/Listbox/search-text.js +56 -0
  137. package/dist/components/Listbox/typeahead.d.ts +19 -0
  138. package/dist/components/Listbox/typeahead.js +39 -0
  139. package/dist/components/Loading/Loading.svelte +5 -1
  140. package/dist/components/MalaysiaKadPengenalanInput/MalaysiaKadPengenalanInput.svelte +55 -0
  141. package/dist/components/MalaysiaKadPengenalanInput/MalaysiaKadPengenalanInput.svelte.d.ts +10 -0
  142. package/dist/components/MalaysiaKadPengenalanView/MalaysiaKadPengenalanView.svelte +40 -0
  143. package/dist/components/MalaysiaKadPengenalanView/MalaysiaKadPengenalanView.svelte.d.ts +8 -0
  144. package/dist/components/Mark/Mark.svelte +0 -2
  145. package/dist/components/MentionsInput/MentionsInput.svelte +14 -2
  146. package/dist/components/Menu/Menu.svelte +1 -3
  147. package/dist/components/MenuBar/MenuBar.svelte +1 -3
  148. package/dist/components/MenuGroup/MenuGroup.svelte +6 -1
  149. package/dist/components/MiddleTruncation/MiddleTruncation.svelte +13 -3
  150. package/dist/components/MockupBrowser/MockupBrowser.svelte +5 -1
  151. package/dist/components/MockupLaptop/MockupLaptop.svelte +5 -1
  152. package/dist/components/MockupPhonePortrait/MockupPhonePortrait.svelte +5 -1
  153. package/dist/components/MockupShell/MockupShell.svelte +5 -1
  154. package/dist/components/MockupTabletLandscape/MockupTabletLandscape.svelte +5 -1
  155. package/dist/components/MockupTabletPortrait/MockupTabletPortrait.svelte +5 -1
  156. package/dist/components/MockupWatch/MockupWatch.svelte +5 -1
  157. package/dist/components/MockupWindow/MockupWindow.svelte +5 -1
  158. package/dist/components/MutuallyExclusive/MutuallyExclusive.svelte +0 -1
  159. package/dist/components/NavigationMenu/NavigationMenu.svelte +51 -3
  160. package/dist/components/NavigationMenu/NavigationMenu.svelte.d.ts +4 -0
  161. package/dist/components/NavigationMenu/overflow-navigation.d.ts +35 -0
  162. package/dist/components/NavigationMenu/overflow-navigation.js +133 -0
  163. package/dist/components/NetPromoterScorePicker/NetPromoterScorePicker.svelte +3 -1
  164. package/dist/components/NetPromoterScorePickerButton/NetPromoterScorePickerButton.svelte +2 -2
  165. package/dist/components/NigeriaNationalIdentificationNumberInput/NigeriaNationalIdentificationNumberInput.svelte +55 -0
  166. package/dist/components/NigeriaNationalIdentificationNumberInput/NigeriaNationalIdentificationNumberInput.svelte.d.ts +10 -0
  167. package/dist/components/NigeriaNationalIdentificationNumberView/NigeriaNationalIdentificationNumberView.svelte +40 -0
  168. package/dist/components/NigeriaNationalIdentificationNumberView/NigeriaNationalIdentificationNumberView.svelte.d.ts +8 -0
  169. package/dist/components/Organization/Organization.svelte +6 -2
  170. package/dist/components/PaginationLink/PaginationLink.svelte +12 -2
  171. package/dist/components/PaginationLink/PaginationLink.svelte.d.ts +4 -0
  172. package/dist/components/PakistanComputerizedNationalIdentityCardInput/PakistanComputerizedNationalIdentityCardInput.svelte +55 -0
  173. package/dist/components/PakistanComputerizedNationalIdentityCardInput/PakistanComputerizedNationalIdentityCardInput.svelte.d.ts +10 -0
  174. package/dist/components/PakistanComputerizedNationalIdentityCardView/PakistanComputerizedNationalIdentityCardView.svelte +40 -0
  175. package/dist/components/PakistanComputerizedNationalIdentityCardView/PakistanComputerizedNationalIdentityCardView.svelte.d.ts +8 -0
  176. package/dist/components/Person/Person.svelte +6 -2
  177. package/dist/components/PhaseBanner/PhaseBanner.svelte +0 -1
  178. package/dist/components/Pictogram/Pictogram.svelte +4 -1
  179. package/dist/components/Picture/Picture.svelte +27 -0
  180. package/dist/components/Picture/Picture.svelte.d.ts +9 -0
  181. package/dist/components/PieChart/PieChart.svelte +5 -1
  182. package/dist/components/Place/Place.svelte +6 -2
  183. package/dist/components/PopconfirmDialog/PopconfirmDialog.svelte +16 -3
  184. package/dist/components/Popover/Popover.svelte +39 -24
  185. package/dist/components/Popover/popover.d.ts +9 -0
  186. package/dist/components/Popover/popover.js +50 -0
  187. package/dist/components/Popup/Popup.svelte +40 -25
  188. package/dist/components/ProductCard/ProductCard.svelte +5 -1
  189. package/dist/components/ProgressBar/ProgressBar.svelte +0 -1
  190. package/dist/components/Question/Question.svelte +5 -1
  191. package/dist/components/RadarChart/RadarChart.svelte +5 -1
  192. package/dist/components/RedAmberGreenPickerButton/RedAmberGreenPickerButton.svelte +2 -2
  193. package/dist/components/RedOrangeYellowGreenBluePickerButton/RedOrangeYellowGreenBluePickerButton.svelte +2 -2
  194. package/dist/components/RelatedContent/RelatedContent.svelte +0 -1
  195. package/dist/components/Resizable/Resizable.svelte +1 -0
  196. package/dist/components/RingChart/RingChart.svelte +5 -1
  197. package/dist/components/SankeyChart/SankeyChart.svelte +5 -1
  198. package/dist/components/ScatterChart/ScatterChart.svelte +5 -1
  199. package/dist/components/ScreenReaderSpan/ScreenReaderSpan.svelte +6 -2
  200. package/dist/components/ScrollArea/ScrollArea.svelte +1 -0
  201. package/dist/components/ScrollBar/ScrollBar.svelte +78 -16
  202. package/dist/components/ScrollBar/ScrollBar.svelte.d.ts +13 -1
  203. package/dist/components/Scroller/Scroller.svelte +4 -1
  204. package/dist/components/ScrollerBase/ScrollerBase.svelte +1 -1
  205. package/dist/components/SectionLink/SectionLink.svelte +0 -2
  206. package/dist/components/SectionList/SectionList.svelte +0 -2
  207. package/dist/components/SectionListItem/SectionListItem.svelte +0 -2
  208. package/dist/components/SectionNav/SectionNav.svelte +0 -1
  209. package/dist/components/Separator/Separator.svelte +1 -0
  210. package/dist/components/Sheet/Sheet.svelte +32 -11
  211. package/dist/components/ShowMore/ShowMore.svelte +9 -2
  212. package/dist/components/SlideOutDrawer/SlideOutDrawer.svelte +33 -10
  213. package/dist/components/SliderButton/SliderButton.svelte +64 -6
  214. package/dist/components/SliderButton/SliderButton.svelte.d.ts +8 -2
  215. package/dist/components/SplitButton/SplitButton.svelte +29 -5
  216. package/dist/components/SplitButton/SplitButton.svelte.d.ts +3 -3
  217. package/dist/components/SplitView/SplitView.svelte +1 -0
  218. package/dist/components/Splitter/Splitter.svelte +1 -0
  219. package/dist/components/StatusLight/StatusLight.svelte +5 -8
  220. package/dist/components/StickyPromoBanner/StickyPromoBanner.svelte +1 -0
  221. package/dist/components/SunburstChart/SunburstChart.svelte +5 -1
  222. package/dist/components/SuperBanner/SuperBanner.svelte +5 -1
  223. package/dist/components/TabBar/TabBar.svelte +1 -3
  224. package/dist/components/Tag/Tag.svelte +10 -2
  225. package/dist/components/TaiwanGuominShenfenzhengTongyiBianhaoInput/TaiwanGuominShenfenzhengTongyiBianhaoInput.svelte +55 -0
  226. package/dist/components/TaiwanGuominShenfenzhengTongyiBianhaoInput/TaiwanGuominShenfenzhengTongyiBianhaoInput.svelte.d.ts +10 -0
  227. package/dist/components/TaiwanGuominShenfenzhengTongyiBianhaoView/TaiwanGuominShenfenzhengTongyiBianhaoView.svelte +40 -0
  228. package/dist/components/TaiwanGuominShenfenzhengTongyiBianhaoView/TaiwanGuominShenfenzhengTongyiBianhaoView.svelte.d.ts +8 -0
  229. package/dist/components/TaskBar/TaskBar.svelte +1 -3
  230. package/dist/components/TextAreaInput/TextAreaInput.svelte +1 -2
  231. package/dist/components/TextAreaInputWithCharacterCounter/TextAreaInputWithCharacterCounter.svelte +4 -3
  232. package/dist/components/ThemeProvider/ThemeProvider.svelte +3 -3
  233. package/dist/components/Tile/Tile.svelte +5 -1
  234. package/dist/components/TimerButton/TimerButton.svelte +55 -7
  235. package/dist/components/TimerButton/TimerButton.svelte.d.ts +9 -3
  236. package/dist/components/ToolBar/ToolBar.svelte +1 -3
  237. package/dist/components/ToolCallError/ToolCallError.svelte +0 -1
  238. package/dist/components/ToolCallName/ToolCallName.svelte +0 -2
  239. package/dist/components/Tooltip/Tooltip.svelte +14 -12
  240. package/dist/components/Tour/Tour.svelte +5 -4
  241. package/dist/components/TourList/TourList.svelte +10 -9
  242. package/dist/components/TourList/TourList.svelte.d.ts +2 -0
  243. package/dist/components/TransferList/TransferList.svelte +8 -2
  244. package/dist/components/TreeLink/TreeLink.svelte +12 -2
  245. package/dist/components/TreeLink/TreeLink.svelte.d.ts +4 -0
  246. package/dist/components/TreeList/TreeList.svelte +3 -3
  247. package/dist/components/TreeListItem/TreeListItem.svelte +9 -1
  248. package/dist/components/TreeMenu/TreeMenu.svelte +40 -1
  249. package/dist/components/TreeSelect/TreeSelect.svelte +10 -3
  250. package/dist/components/TuaisceartEireannHealthAndCareNumberView/TuaisceartEireannHealthAndCareNumberView.svelte +2 -1
  251. package/dist/components/UruguayCedulaDeIdentidadInput/UruguayCedulaDeIdentidadInput.svelte +55 -0
  252. package/dist/components/UruguayCedulaDeIdentidadInput/UruguayCedulaDeIdentidadInput.svelte.d.ts +10 -0
  253. package/dist/components/UruguayCedulaDeIdentidadView/UruguayCedulaDeIdentidadView.svelte +40 -0
  254. package/dist/components/UruguayCedulaDeIdentidadView/UruguayCedulaDeIdentidadView.svelte.d.ts +8 -0
  255. package/dist/components/VideoPlayer/VideoPlayer.svelte +6 -2
  256. package/dist/components/VietNamCanCuocCongDanInput/VietNamCanCuocCongDanInput.svelte +55 -0
  257. package/dist/components/VietNamCanCuocCongDanInput/VietNamCanCuocCongDanInput.svelte.d.ts +10 -0
  258. package/dist/components/VietNamCanCuocCongDanView/VietNamCanCuocCongDanView.svelte +40 -0
  259. package/dist/components/VietNamCanCuocCongDanView/VietNamCanCuocCongDanView.svelte.d.ts +8 -0
  260. package/dist/components/Visible/Visible.svelte +1 -1
  261. package/dist/components/WarningText/WarningText.svelte +48 -0
  262. package/dist/components/WarningText/WarningText.svelte.d.ts +13 -0
  263. package/dist/components/WheelPicker/WheelPicker.svelte +18 -4
  264. package/dist/components/WheelPicker/wheel-picker.js +18 -3
  265. package/dist/index.d.ts +26 -0
  266. package/dist/index.js +26 -0
  267. package/index.md +4 -4
  268. package/package.json +5 -5
@@ -13,6 +13,10 @@
13
13
  </script>
14
14
 
15
15
  <!-- Person.svelte -->
16
- <div class={`person ${className}`} aria-label={label} {...restProps}>
16
+ <article
17
+ class={`person ${className}`}
18
+ aria-label={label}
19
+ {...restProps}
20
+ >
17
21
  {@render children?.()}
18
- </div>
22
+ </article>
@@ -16,7 +16,6 @@
16
16
  <!-- PhaseBanner.svelte -->
17
17
  <div
18
18
  class={`phase-banner ${className}`}
19
-
20
19
  aria-label={label}
21
20
  {...restProps}
22
21
  >
@@ -72,7 +72,10 @@
72
72
  aria-label={label}
73
73
  {...restProps}
74
74
  >
75
- <div class="pictogram-icon" aria-hidden="true">
75
+ <div
76
+ class="pictogram-icon"
77
+ aria-hidden="true"
78
+ >
76
79
  {@render icon()}
77
80
  </div>
78
81
  <figcaption class="pictogram-caption">
@@ -0,0 +1,27 @@
1
+ <script lang="ts">
2
+ // Picture component
3
+ //
4
+ // A headless wrapper around the native picture element: the browser chooses among the source
5
+ // children (by media query, image type or resolution) and falls back to the img child.
6
+ // Draws nothing and carries no strings of its own; the consumer supplies the source and img
7
+ // elements, including the img's alt text.
8
+ import type { Snippet } from "svelte";
9
+
10
+ let {
11
+ class: className = "",
12
+ children,
13
+ ...restProps
14
+ }: {
15
+ /** The source elements, then one img with its alt, width and height. */
16
+ children?: Snippet;
17
+ [key: string]: unknown;
18
+ } = $props();
19
+ </script>
20
+
21
+ <!-- Picture.svelte -->
22
+ <picture
23
+ class={`picture ${className}`}
24
+ {...restProps}
25
+ >
26
+ {@render children?.()}
27
+ </picture>
@@ -0,0 +1,9 @@
1
+ import type { Snippet } from "svelte";
2
+ type $$ComponentProps = {
3
+ /** The source elements, then one img with its alt, width and height. */
4
+ children?: Snippet;
5
+ [key: string]: unknown;
6
+ };
7
+ declare const Picture: import("svelte").Component<$$ComponentProps, {}, "">;
8
+ type Picture = ReturnType<typeof Picture>;
9
+ export default Picture;
@@ -52,7 +52,11 @@
52
52
  class={`pie-chart ${className}`}
53
53
  {...restProps}
54
54
  >
55
- <div class="pie-chart-graphic" role="img" aria-label={label}>
55
+ <div
56
+ class="pie-chart-graphic"
57
+ role="img"
58
+ aria-label={label}
59
+ >
56
60
  {@render children?.()}
57
61
  </div>
58
62
  {#if dataTable}
@@ -13,6 +13,10 @@
13
13
  </script>
14
14
 
15
15
  <!-- Place.svelte -->
16
- <div class={`place ${className}`} aria-label={label} {...restProps}>
16
+ <article
17
+ class={`place ${className}`}
18
+ aria-label={label}
19
+ {...restProps}
20
+ >
17
21
  {@render children?.()}
18
- </div>
22
+ </article>
@@ -44,6 +44,8 @@
44
44
  // - Ant Design Popconfirm: https://ant.design/components/popconfirm
45
45
  // - WAI-ARIA Alert and Message Dialogs Pattern: https://www.w3.org/WAI/ARIA/apg/patterns/alertdialog/
46
46
 
47
+ import { popoverState } from "../Popover/popover.js";
48
+
47
49
  let {
48
50
  class: className = "",
49
51
  open = false,
@@ -95,12 +97,23 @@
95
97
  aria-modal="false"
96
98
  aria-labelledby={titleId}
97
99
  aria-describedby={description ? descId : undefined}
98
- hidden={!open}
100
+ popover="manual"
101
+ use:popoverState={open}
99
102
  {...restProps}
100
103
  >
101
- <h2 class="popconfirm-dialog-title" id={titleId}>{title}</h2>
104
+ <h2
105
+ class="popconfirm-dialog-title"
106
+ id={titleId}
107
+ >
108
+ {title}
109
+ </h2>
102
110
  {#if description}
103
- <p class="popconfirm-dialog-description" id={descId}>{description}</p>
111
+ <p
112
+ class="popconfirm-dialog-description"
113
+ id={descId}
114
+ >
115
+ {description}
116
+ </p>
104
117
  {/if}
105
118
  <button
106
119
  class="popconfirm-dialog-cancel"
@@ -1,17 +1,22 @@
1
1
  <script lang="ts">
2
2
  // Popover component
3
3
  //
4
- // A headless conditional dialog overlay that displays contextual information or
5
- // actions near the element that triggered it. It renders a <div> with role="dialog"
6
- // only when the open state is true, using $bindable() for two-way binding of
7
- // visibility. Unlike tooltips, popovers can contain rich interactive content such
4
+ // A headless dialog overlay that displays contextual information or actions near
5
+ // the element that triggered it. It renders a <div popover="auto" role="dialog">:
6
+ // the native Popover API puts it in the top layer while open and closes it on
7
+ // Escape and on a click outside it (light dismiss), with no script. `open` is
8
+ // $bindable() and follows the element's `toggle` event, so a light dismiss or a
9
+ // command="toggle-popover" trigger keeps it in step. Unlike tooltips, popovers can contain rich interactive content such
8
10
  // as forms, buttons, or other controls. Commonly used for contextual menus,
9
11
  // information panels, and inline editing.
10
12
  //
11
13
  // Props:
12
14
  // className — string, optional. CSS class name.
13
15
  // label — string, required. Accessible name for the popover dialog via aria-label.
14
- // open — boolean, default false, bindable. Controls whether the popover is visible.
16
+ // open — boolean, default false, bindable. Controls whether the popover is visible;
17
+ // set to false when the browser closes it (Escape, light dismiss, a trigger).
18
+ // id — string, optional (rest prop). Give one so a trigger can name the popover
19
+ // with commandfor (or popovertarget).
15
20
  // children — Snippet, required. The popover content.
16
21
  // ...restProps — additional HTML attributes spread onto the <div>.
17
22
  //
@@ -19,21 +24,23 @@
19
24
  // <Popover label="Info" bind:open>{children}</Popover>
20
25
  //
21
26
  // Examples:
22
- // <!-- Popover with toggle trigger -->
23
- // <button onclick={() => showPopover = !showPopover}>Toggle info</button>
24
- // <Popover label="Additional information" bind:open={showPopover}>
27
+ // <!-- Trigger with no script: the browser opens and closes the popover -->
28
+ // <button type="button" command="toggle-popover" commandfor="info-popover">Toggle info</button>
29
+ // <Popover id="info-popover" label="Additional information" bind:open={showPopover}>
25
30
  // <p>Here is some contextual information.</p>
26
- // <button onclick={() => showPopover = false}>Close</button>
31
+ // <button type="button" command="hide-popover" commandfor="info-popover">Close</button>
27
32
  // </Popover>
28
33
  //
29
34
  // Keyboard:
30
- // - Escape: consumer should implement closing the popover by setting open to false
31
- // - Tab: consumer should consider trapping focus within the popover when open
35
+ // - Escape: the browser closes the popover (Popover API); where the API is missing,
36
+ // the consumer closes it by setting open to false
37
+ // - Tab: not trapped; a popover is non-modal (use Dialog for a modal)
32
38
  //
33
39
  // Accessibility:
34
40
  // - role="dialog" identifies the popover as a dialog overlay
35
41
  // - aria-label provides the accessible name for the dialog
36
- // - Conditionally rendered; not in the DOM when closed
42
+ // - Always in the DOM, so a trigger can reference its id; closed it is not
43
+ // displayed (the popover UA style, or `hidden` where the API is missing)
37
44
  //
38
45
  // Internationalization:
39
46
  // - The label prop is the only text; all content comes through children
@@ -41,14 +48,18 @@
41
48
  //
42
49
  // Claude rules:
43
50
  // - Headless: no CSS, no styles — consumer provides all styling
44
- // - Consumer must provide trigger element and open/close logic
45
- // - Do not add focus trapping or Escape handling — consumer responsibility
51
+ // - Consumer provides the trigger (command="toggle-popover" commandfor={id})
52
+ // - Native first: popover="auto"; scripted fallback via ./popover.ts (Popover) when
53
+ // showPopover is missing. No focus trapping — a popover is non-modal
46
54
  //
47
55
  // References:
48
56
  // - WAI-ARIA Dialog Pattern: https://www.w3.org/WAI/ARIA/apg/patterns/dialog/
49
57
  // - WAI-ARIA dialog role: https://www.w3.org/TR/wai-aria-1.2/#dialog
58
+ // - HTML popover attribute: https://html.spec.whatwg.org/multipage/popover.html
59
+ // - MDN Popover API: https://developer.mozilla.org/en-US/docs/Web/API/Popover_API
50
60
 
51
61
  import type { Snippet } from "svelte";
62
+ import { popoverState, toggleOpened } from "./popover.js";
52
63
  let {
53
64
  class: className = "",
54
65
  label,
@@ -64,13 +75,17 @@
64
75
  </script>
65
76
 
66
77
  <!-- Popover.svelte -->
67
- {#if open}
68
- <div
69
- class={`popover ${className}`}
70
- role="dialog"
71
- aria-label={label}
72
- {...restProps}
73
- >
74
- {@render children?.()}
75
- </div>
76
- {/if}
78
+ <!-- popover="auto": top layer, light dismiss and Escape from the browser; popoverState opens and closes it from
79
+ `open` (or sets `hidden` where the Popover API is missing), and the toggle event writes the browser's changes
80
+ back to `open`. -->
81
+ <div
82
+ class={`popover ${className}`}
83
+ role="dialog"
84
+ aria-label={label}
85
+ popover="auto"
86
+ use:popoverState={open}
87
+ ontoggle={(event) => (open = toggleOpened(event))}
88
+ {...restProps}
89
+ >
90
+ {@render children?.()}
91
+ </div>
@@ -0,0 +1,9 @@
1
+ /** Whether this element has the Popover API (`showPopover` and `hidePopover`). */
2
+ export declare function popoverSupported(node: HTMLElement): boolean;
3
+ /** Open or close a popover element, or set `hidden` where the Popover API is missing. */
4
+ export declare function syncPopover(node: HTMLElement, open: boolean): void;
5
+ /** The `toggle` event's new state, as a boolean (true when the popover opened). */
6
+ export declare function toggleOpened(event: Event): boolean;
7
+ export declare function popoverState(node: HTMLElement, open: boolean): {
8
+ update(next: boolean): void;
9
+ };
@@ -0,0 +1,50 @@
1
+ // Show and hide a popover="auto" element through the Popover API, or with the `hidden` attribute.
2
+ //
3
+ // A popover="auto" element is in the top layer while open, and the browser closes it on Escape and on a click
4
+ // outside it (light dismiss). A button with command="toggle-popover" commandfor="<id>" (or popovertarget="<id>")
5
+ // opens and closes it with no script at all. Each of those changes fires a `toggle` event on the element, whose
6
+ // `newState` is "open" or "closed": listen to it to keep a bindable `open` in step.
7
+ //
8
+ // Where the Popover API is missing (jsdom, browsers before Chrome 114, Firefox 125 and Safari 17) the element
9
+ // falls back to the `hidden` attribute, which keeps it hidden or shown and testable; light dismiss and Escape are
10
+ // then the consumer's, as before. The fallback also drops the `popover` attribute, which does nothing there except
11
+ // in jsdom, whose UA stylesheet hides every [popover] it cannot open. Used as `use:popoverState={open}`.
12
+ /** Whether this element has the Popover API (`showPopover` and `hidePopover`). */
13
+ export function popoverSupported(node) {
14
+ return typeof node.showPopover === "function" && typeof node.hidePopover === "function";
15
+ }
16
+ /** Open or close a popover element, or set `hidden` where the Popover API is missing. */
17
+ export function syncPopover(node, open) {
18
+ if (!popoverSupported(node)) {
19
+ node.removeAttribute("popover");
20
+ node.toggleAttribute("hidden", !open);
21
+ return;
22
+ }
23
+ // Showing an open popover or hiding a closed one is a no-op in current engines; older ones throw
24
+ // InvalidStateError, as does an element that is not connected or has no popover attribute.
25
+ try {
26
+ if (open)
27
+ node.showPopover();
28
+ else
29
+ node.hidePopover();
30
+ }
31
+ catch {
32
+ // Already in that state, or not a valid popover: nothing to do.
33
+ }
34
+ }
35
+ /** The `toggle` event's new state, as a boolean (true when the popover opened). */
36
+ export function toggleOpened(event) {
37
+ return event.newState === "open";
38
+ }
39
+ export function popoverState(node, open) {
40
+ let current = open;
41
+ syncPopover(node, current);
42
+ return {
43
+ update(next) {
44
+ if (next === current)
45
+ return;
46
+ current = next;
47
+ syncPopover(node, current);
48
+ },
49
+ };
50
+ }
@@ -1,16 +1,22 @@
1
1
  <script lang="ts">
2
2
  // Popup component
3
3
  //
4
- // A headless conditional overlay dialog that temporarily appears over the main
4
+ // A headless overlay dialog that temporarily appears over the main
5
5
  // content to convey information, prompt user actions, or display additional
6
- // options. It renders a <div> with role="dialog" only when the open state is
7
- // true. Similar to Popover but designed as a general-purpose overlay dialog.
6
+ // options. It renders a <div popover="auto" role="dialog">: the native Popover
7
+ // API puts it in the top layer while open and closes it on Escape and on a click
8
+ // outside it (light dismiss), with no script. `open` is $bindable() and follows
9
+ // the element's `toggle` event. Similar to Popover but designed as a
10
+ // general-purpose overlay dialog.
8
11
  // Commonly used for confirmations, prompts, contextual actions, and inline forms.
9
12
  //
10
13
  // Props:
11
14
  // className — string, optional. CSS class name.
12
15
  // label — string, required. Accessible name for the popup dialog via aria-label.
13
- // open — boolean, default false, bindable. Controls whether the popup is visible.
16
+ // open — boolean, default false, bindable. Controls whether the popup is visible;
17
+ // set to false when the browser closes it (Escape, light dismiss, a trigger).
18
+ // id — string, optional (rest prop). Give one so a trigger can name the popup
19
+ // with commandfor (or popovertarget).
14
20
  // children — Snippet, required. Content rendered inside the dialog.
15
21
  // ...restProps — additional HTML attributes spread onto the <div>.
16
22
  //
@@ -18,22 +24,23 @@
18
24
  // <Popup label="Info" bind:open>{children}</Popup>
19
25
  //
20
26
  // Examples:
21
- // <!-- Confirmation popup -->
22
- // <button onclick={() => showPopup = !showPopup}>Open popup</button>
23
- // <Popup label="Confirmation" bind:open={showPopup}>
24
- // <p>Are you sure you want to proceed?</p>
25
- // <button onclick={() => showPopup = false}>Yes</button>
26
- // <button onclick={() => showPopup = false}>No</button>
27
+ // <!-- Trigger with no script: the browser opens and closes the popup -->
28
+ // <button type="button" command="toggle-popover" commandfor="info-popup">Toggle info</button>
29
+ // <Popup id="info-popup" label="Additional information" bind:open={showPopup}>
30
+ // <p>Here is some contextual information.</p>
31
+ // <button type="button" command="hide-popover" commandfor="info-popup">Close</button>
27
32
  // </Popup>
28
33
  //
29
34
  // Keyboard:
30
- // - Escape: consumer should implement closing the popup by setting open to false
31
- // - Tab: consumer should consider trapping focus within the popup when open
35
+ // - Escape: the browser closes the popup (Popover API); where the API is missing,
36
+ // the consumer closes it by setting open to false
37
+ // - Tab: not trapped; a popover is non-modal (use Dialog for a modal)
32
38
  //
33
39
  // Accessibility:
34
40
  // - role="dialog" identifies the popup as a dialog overlay
35
41
  // - aria-label provides the accessible name for the dialog
36
- // - Conditionally rendered; not in the DOM when closed
42
+ // - Always in the DOM, so a trigger can reference its id; closed it is not
43
+ // displayed (the popover UA style, or `hidden` where the API is missing)
37
44
  //
38
45
  // Internationalization:
39
46
  // - The label prop is the only text; all content comes through children
@@ -41,14 +48,18 @@
41
48
  //
42
49
  // Claude rules:
43
50
  // - Headless: no CSS, no styles — consumer provides all styling
44
- // - Consumer must provide trigger element and open/close logic
45
- // - Do not add focus trapping or Escape handling — consumer responsibility
51
+ // - Consumer provides the trigger (command="toggle-popover" commandfor={id})
52
+ // - Native first: popover="auto"; scripted fallback via ./popover.ts (Popover) when
53
+ // showPopover is missing. No focus trapping — a popover is non-modal
46
54
  //
47
55
  // References:
48
56
  // - WAI-ARIA Dialog Pattern: https://www.w3.org/WAI/ARIA/apg/patterns/dialog/
49
57
  // - WAI-ARIA dialog role: https://www.w3.org/TR/wai-aria-1.2/#dialog
58
+ // - HTML popover attribute: https://html.spec.whatwg.org/multipage/popover.html
59
+ // - MDN Popover API: https://developer.mozilla.org/en-US/docs/Web/API/Popover_API
50
60
 
51
61
  import type { Snippet } from "svelte";
62
+ import { popoverState, toggleOpened } from "../Popover/popover.js";
52
63
 
53
64
  let {
54
65
  class: className = "",
@@ -68,13 +79,17 @@
68
79
  </script>
69
80
 
70
81
  <!-- Popup.svelte -->
71
- {#if open}
72
- <div
73
- class={`popup ${className}`}
74
- role="dialog"
75
- aria-label={label}
76
- {...restProps}
77
- >
78
- {@render children?.()}
79
- </div>
80
- {/if}
82
+ <!-- popover="auto": top layer, light dismiss and Escape from the browser; popoverState opens and closes it from
83
+ `open` (or sets `hidden` where the Popover API is missing), and the toggle event writes the browser's changes
84
+ back to `open`. -->
85
+ <div
86
+ class={`popup ${className}`}
87
+ role="dialog"
88
+ aria-label={label}
89
+ popover="auto"
90
+ use:popoverState={open}
91
+ ontoggle={(event) => (open = toggleOpened(event))}
92
+ {...restProps}
93
+ >
94
+ {@render children?.()}
95
+ </div>
@@ -77,7 +77,11 @@
77
77
  {...restProps}
78
78
  >
79
79
  {#if imageUrl}
80
- <img class="product-card-image" src={imageUrl} alt={imageAlt ?? ""} />
80
+ <img
81
+ class="product-card-image"
82
+ src={imageUrl}
83
+ alt={imageAlt ?? ""}
84
+ />
81
85
  {/if}
82
86
  <header class="product-card-header">
83
87
  <h3 class="product-card-name">{name}</h3>
@@ -2,7 +2,6 @@
2
2
  // ProgressBar component
3
3
  // A horizontal progress indicator.
4
4
 
5
-
6
5
  let {
7
6
  class: className = "",
8
7
  label,
@@ -13,6 +13,10 @@
13
13
  </script>
14
14
 
15
15
  <!-- Question.svelte -->
16
- <div class={`question ${className}`} aria-label={label} {...restProps}>
16
+ <div
17
+ class={`question ${className}`}
18
+ aria-label={label}
19
+ {...restProps}
20
+ >
17
21
  {@render children?.()}
18
22
  </div>
@@ -52,7 +52,11 @@
52
52
  class={`radar-chart ${className}`}
53
53
  {...restProps}
54
54
  >
55
- <div class="radar-chart-graphic" role="img" aria-label={label}>
55
+ <div
56
+ class="radar-chart-graphic"
57
+ role="img"
58
+ aria-label={label}
59
+ >
56
60
  {@render children?.()}
57
61
  </div>
58
62
  {#if dataTable}
@@ -78,5 +78,5 @@
78
78
  {disabled}
79
79
  data-value={value}
80
80
  {onclick}
81
- {...restProps}
82
- >{label}</button>
81
+ {...restProps}>{label}</button
82
+ >
@@ -77,5 +77,5 @@
77
77
  {disabled}
78
78
  data-value={value}
79
79
  {onclick}
80
- {...restProps}
81
- >{label}</button>
80
+ {...restProps}>{label}</button
81
+ >
@@ -16,7 +16,6 @@
16
16
  <!-- RelatedContent.svelte -->
17
17
  <aside
18
18
  class={`related-content ${className}`}
19
-
20
19
  aria-label={label}
21
20
  {...restProps}
22
21
  >
@@ -71,6 +71,7 @@
71
71
  </script>
72
72
 
73
73
  <!-- Resizable.svelte -->
74
+ <!-- svelte-ignore a11y_no_noninteractive_tabindex (a scrollable region must be keyboard-focusable (axe scrollable-region-focusable)) -->
74
75
  <div
75
76
  class={`resizable ${className}`}
76
77
  role="region"
@@ -52,7 +52,11 @@
52
52
  class={`ring-chart ${className}`}
53
53
  {...restProps}
54
54
  >
55
- <div class="ring-chart-graphic" role="img" aria-label={label}>
55
+ <div
56
+ class="ring-chart-graphic"
57
+ role="img"
58
+ aria-label={label}
59
+ >
56
60
  {@render children?.()}
57
61
  </div>
58
62
  {#if dataTable}
@@ -52,7 +52,11 @@
52
52
  class={`sankey-chart ${className}`}
53
53
  {...restProps}
54
54
  >
55
- <div class="sankey-chart-graphic" role="img" aria-label={label}>
55
+ <div
56
+ class="sankey-chart-graphic"
57
+ role="img"
58
+ aria-label={label}
59
+ >
56
60
  {@render children?.()}
57
61
  </div>
58
62
  {#if dataTable}
@@ -52,7 +52,11 @@
52
52
  class={`scatter-chart ${className}`}
53
53
  {...restProps}
54
54
  >
55
- <div class="scatter-chart-graphic" role="img" aria-label={label}>
55
+ <div
56
+ class="scatter-chart-graphic"
57
+ role="img"
58
+ aria-label={label}
59
+ >
56
60
  {@render children?.()}
57
61
  </div>
58
62
  {#if dataTable}
@@ -13,6 +13,10 @@
13
13
  </script>
14
14
 
15
15
  <!-- ScreenReaderSpan.svelte -->
16
- <div class={`screen-reader-span ${className}`} aria-label={label} {...restProps}>
16
+ <span
17
+ class={`screen-reader-span ${className}`}
18
+ aria-label={label}
19
+ {...restProps}
20
+ >
17
21
  {@render children?.()}
18
- </div>
22
+ </span>
@@ -69,6 +69,7 @@
69
69
  </script>
70
70
 
71
71
  <!-- ScrollArea.svelte -->
72
+ <!-- svelte-ignore a11y_no_noninteractive_tabindex (a scrollable region must be keyboard-focusable (axe scrollable-region-focusable)) -->
72
73
  <div
73
74
  class={`scroll-area ${className}`}
74
75
  role="region"