@lilydesignsystem/svelte-headless 0.6.0 → 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.
- package/CHANGELOG.md +6 -1
- package/LICENSE.md +8 -8
- package/README.md +4 -4
- package/dist/components/AccordionLink/AccordionLink.svelte +12 -2
- package/dist/components/AccordionLink/AccordionLink.svelte.d.ts +4 -0
- package/dist/components/ActionBar/ActionBar.svelte +2 -2
- package/dist/components/ActionGroup/ActionGroup.svelte +31 -7
- package/dist/components/ActionGroup/ActionGroup.svelte.d.ts +4 -4
- package/dist/components/AddressographBox/AddressographBox.svelte +5 -1
- package/dist/components/AiLabel/AiLabel.svelte +2 -2
- package/dist/components/Alert/Alert.svelte +1 -3
- package/dist/components/AlertDialog/AlertDialog.svelte +9 -4
- package/dist/components/Answer/Answer.svelte +5 -1
- package/dist/components/AreaChart/AreaChart.svelte +5 -1
- package/dist/components/AsSaudiyahRaqmAlHuwiyahAlWataniyahInput/AsSaudiyahRaqmAlHuwiyahAlWataniyahInput.svelte +55 -0
- package/dist/components/AsSaudiyahRaqmAlHuwiyahAlWataniyahInput/AsSaudiyahRaqmAlHuwiyahAlWataniyahInput.svelte.d.ts +10 -0
- package/dist/components/AsSaudiyahRaqmAlHuwiyahAlWataniyahView/AsSaudiyahRaqmAlHuwiyahAlWataniyahView.svelte +40 -0
- package/dist/components/AsSaudiyahRaqmAlHuwiyahAlWataniyahView/AsSaudiyahRaqmAlHuwiyahAlWataniyahView.svelte.d.ts +8 -0
- package/dist/components/AustraliaTaxFileNumberInput/AustraliaTaxFileNumberInput.svelte +55 -0
- package/dist/components/AustraliaTaxFileNumberInput/AustraliaTaxFileNumberInput.svelte.d.ts +10 -0
- package/dist/components/AustraliaTaxFileNumberView/AustraliaTaxFileNumberView.svelte +40 -0
- package/dist/components/AustraliaTaxFileNumberView/AustraliaTaxFileNumberView.svelte.d.ts +8 -0
- package/dist/components/Autosuggest/Autosuggest.svelte +175 -8
- package/dist/components/Autosuggest/Autosuggest.svelte.d.ts +18 -4
- package/dist/components/AvatarGroup/AvatarGroup.svelte +5 -1
- package/dist/components/BarChart/BarChart.svelte +5 -1
- package/dist/components/BarcodeImage/BarcodeImage.svelte +7 -1
- package/dist/components/BreadcrumbLink/BreadcrumbLink.svelte +12 -2
- package/dist/components/BreadcrumbLink/BreadcrumbLink.svelte.d.ts +4 -0
- package/dist/components/BreadcrumbListItem/BreadcrumbListItem.svelte +3 -3
- package/dist/components/Byline/Byline.svelte +4 -1
- package/dist/components/CandlestickChart/CandlestickChart.svelte +5 -1
- package/dist/components/Caption/Caption.svelte +1 -0
- package/dist/components/CareCard/CareCard.svelte +1 -0
- package/dist/components/Cascader/Cascader.svelte +7 -1
- package/dist/components/ChatComposer/ChatComposer.svelte +6 -3
- package/dist/components/ChatList/ChatList.svelte +6 -2
- package/dist/components/ChatListItem/ChatListItem.svelte +10 -2
- package/dist/components/ChatListItem/ChatListItem.svelte.d.ts +2 -0
- package/dist/components/ChatMessage/ChatMessage.svelte +6 -2
- package/dist/components/ChatNav/ChatNav.svelte +6 -2
- package/dist/components/CheckListItem/CheckListItem.svelte +4 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.svelte +1 -0
- package/dist/components/ChoroplethChart/ChoroplethChart.svelte +5 -1
- package/dist/components/Citation/Citation.svelte +6 -2
- package/dist/components/Coachmark/Coachmark.svelte +20 -10
- package/dist/components/Code/Code.svelte +6 -2
- package/dist/components/CodeBlock/CodeBlock.svelte +6 -2
- package/dist/components/CollectionListItem/CollectionListItem.svelte +1 -1
- package/dist/components/ColombiaCedulaDeCiudadaniaInput/ColombiaCedulaDeCiudadaniaInput.svelte +55 -0
- package/dist/components/ColombiaCedulaDeCiudadaniaInput/ColombiaCedulaDeCiudadaniaInput.svelte.d.ts +10 -0
- package/dist/components/ColombiaCedulaDeCiudadaniaView/ColombiaCedulaDeCiudadaniaView.svelte +40 -0
- package/dist/components/ColombiaCedulaDeCiudadaniaView/ColombiaCedulaDeCiudadaniaView.svelte.d.ts +8 -0
- package/dist/components/ColumnChart/ColumnChart.svelte +5 -1
- package/dist/components/Combobox/Combobox.svelte +11 -9
- package/dist/components/Comment/Comment.svelte +5 -1
- package/dist/components/ComposedChart/ComposedChart.svelte +5 -1
- package/dist/components/ContentsListItem/ContentsListItem.svelte +4 -1
- package/dist/components/ContentsNav/ContentsNav.svelte +56 -36
- package/dist/components/ContextMenu/ContextMenu.svelte +19 -17
- package/dist/components/ContextualHelp/ContextualHelp.svelte +55 -26
- package/dist/components/ContextualHelp/ContextualHelp.svelte.d.ts +4 -2
- package/dist/components/ConvertDiv/ConvertDiv.svelte +31 -0
- package/dist/components/ConvertDiv/ConvertDiv.svelte.d.ts +11 -0
- package/dist/components/ConvertFromDiv/ConvertFromDiv.svelte +25 -0
- package/dist/components/ConvertFromDiv/ConvertFromDiv.svelte.d.ts +9 -0
- package/dist/components/ConvertFromUnitDiv/ConvertFromUnitDiv.svelte +25 -0
- package/dist/components/ConvertFromUnitDiv/ConvertFromUnitDiv.svelte.d.ts +9 -0
- package/dist/components/ConvertFromValueDiv/ConvertFromValueDiv.svelte +25 -0
- package/dist/components/ConvertFromValueDiv/ConvertFromValueDiv.svelte.d.ts +9 -0
- package/dist/components/ConvertIntoDiv/ConvertIntoDiv.svelte +25 -0
- package/dist/components/ConvertIntoDiv/ConvertIntoDiv.svelte.d.ts +9 -0
- package/dist/components/ConvertIntoUnitDiv/ConvertIntoUnitDiv.svelte +25 -0
- package/dist/components/ConvertIntoUnitDiv/ConvertIntoUnitDiv.svelte.d.ts +9 -0
- package/dist/components/ConvertIntoValueDiv/ConvertIntoValueDiv.svelte +25 -0
- package/dist/components/ConvertIntoValueDiv/ConvertIntoValueDiv.svelte.d.ts +9 -0
- package/dist/components/CurrencyInput/CurrencyInput.svelte +61 -8
- package/dist/components/CurrencyInput/CurrencyInput.svelte.d.ts +9 -4
- package/dist/components/DateTimeNowInput/DateTimeNowInput.svelte +18 -16
- package/dist/components/DateTimeNowInput/DateTimeNowInput.svelte.d.ts +3 -3
- package/dist/components/DescriptionList/DescriptionList.svelte +0 -2
- package/dist/components/DescriptionListItem/DescriptionListItem.svelte +0 -2
- package/dist/components/DialGroup/DialGroup.svelte +5 -1
- package/dist/components/Dialog/Dialog.svelte +14 -1
- package/dist/components/Dialog/modal.d.ts +4 -0
- package/dist/components/Dialog/modal.js +47 -0
- package/dist/components/Diff/Diff.svelte +5 -1
- package/dist/components/DigitalObjectIdentifierLink/DigitalObjectIdentifierLink.svelte +16 -7
- package/dist/components/DigitalObjectIdentifierLink/DigitalObjectIdentifierLink.svelte.d.ts +4 -2
- package/dist/components/DocumentList/DocumentList.svelte +0 -1
- package/dist/components/DocumentListItem/DocumentListItem.svelte +0 -2
- package/dist/components/Drawer/Drawer.svelte +35 -12
- package/dist/components/DropdownMenu/DropdownMenu.svelte +27 -16
- package/dist/components/EcuadorCedulaDeIdentidadInput/EcuadorCedulaDeIdentidadInput.svelte +55 -0
- package/dist/components/EcuadorCedulaDeIdentidadInput/EcuadorCedulaDeIdentidadInput.svelte.d.ts +10 -0
- package/dist/components/EcuadorCedulaDeIdentidadView/EcuadorCedulaDeIdentidadView.svelte +40 -0
- package/dist/components/EcuadorCedulaDeIdentidadView/EcuadorCedulaDeIdentidadView.svelte.d.ts +8 -0
- package/dist/components/EireIndividualHealthIdentifierView/EireIndividualHealthIdentifierView.svelte +2 -1
- package/dist/components/EspanaTarjetaSanitariaIndividualView/EspanaTarjetaSanitariaIndividualView.svelte +2 -1
- package/dist/components/Event/Event.svelte +6 -2
- package/dist/components/FeatureCard/FeatureCard.svelte +5 -1
- package/dist/components/FeaturePhoto/FeaturePhoto.svelte +4 -1
- package/dist/components/FileDialog/FileDialog.svelte +7 -1
- package/dist/components/FileTree/FileTree.svelte +20 -5
- package/dist/components/FiveFaceRatingPicker/FiveFaceRatingPicker.svelte +3 -1
- package/dist/components/FiveFaceRatingPickerButton/FiveFaceRatingPickerButton.svelte +2 -2
- package/dist/components/FiveStarRatingPicker/FiveStarRatingPicker.svelte +3 -1
- package/dist/components/FiveStarRatingPickerButton/FiveStarRatingPickerButton.svelte +2 -2
- package/dist/components/FlexStack/FlexStack.svelte +3 -1
- package/dist/components/FloatingPanel/FloatingPanel.svelte +15 -13
- package/dist/components/FunnelChart/FunnelChart.svelte +5 -1
- package/dist/components/GaugeChart/GaugeChart.svelte +5 -1
- package/dist/components/GoToNextSection/GoToNextSection.svelte +2 -3
- package/dist/components/GoToPreviousSection/GoToPreviousSection.svelte +2 -3
- package/dist/components/GoToTop/GoToTop.svelte +0 -2
- package/dist/components/GrailLayoutBottomFooter/GrailLayoutBottomFooter.svelte +4 -1
- package/dist/components/GrailLayoutCenterMain/GrailLayoutCenterMain.svelte +4 -1
- package/dist/components/GrailLayoutLeftAside/GrailLayoutLeftAside.svelte +4 -1
- package/dist/components/GrailLayoutRightAside/GrailLayoutRightAside.svelte +4 -1
- package/dist/components/GrailLayoutTopHeader/GrailLayoutTopHeader.svelte +4 -1
- package/dist/components/GraphicBlock/GraphicBlock.svelte +1 -1
- package/dist/components/Grid/Grid.svelte +12 -3
- package/dist/components/Grid/Grid.svelte.d.ts +2 -0
- package/dist/components/Headline/Headline.svelte +4 -1
- package/dist/components/HeatmapChart/HeatmapChart.svelte +5 -1
- package/dist/components/HeatmapChartWithYearOfDays/HeatmapChartWithYearOfDays.svelte +5 -1
- package/dist/components/Hero/Hero.svelte +6 -2
- package/dist/components/HongKongIdentityCardInput/HongKongIdentityCardInput.svelte +55 -0
- package/dist/components/HongKongIdentityCardInput/HongKongIdentityCardInput.svelte.d.ts +10 -0
- package/dist/components/HongKongIdentityCardView/HongKongIdentityCardView.svelte +40 -0
- package/dist/components/HongKongIdentityCardView/HongKongIdentityCardView.svelte.d.ts +8 -0
- package/dist/components/HorizontalScroller/HorizontalScroller.svelte +1 -0
- package/dist/components/HoverCard/HoverCard.svelte +14 -13
- package/dist/components/IconListItem/IconListItem.svelte +4 -1
- package/dist/components/InputWithMask/InputWithMask.svelte +4 -1
- package/dist/components/IranKodEMelliInput/IranKodEMelliInput.svelte +55 -0
- package/dist/components/IranKodEMelliInput/IranKodEMelliInput.svelte.d.ts +10 -0
- package/dist/components/IranKodEMelliView/IranKodEMelliView.svelte +40 -0
- package/dist/components/IranKodEMelliView/IranKodEMelliView.svelte.d.ts +8 -0
- package/dist/components/Kbd/Kbd.svelte +5 -1
- package/dist/components/KbdShortcut/KbdShortcut.svelte +9 -2
- package/dist/components/LineChart/LineChart.svelte +5 -1
- package/dist/components/Listbox/Listbox.svelte +22 -117
- package/dist/components/Listbox/listbox-machine.d.ts +81 -0
- package/dist/components/Listbox/listbox-machine.js +116 -0
- package/dist/components/Listbox/search-text.d.ts +22 -0
- package/dist/components/Listbox/search-text.js +56 -0
- package/dist/components/Listbox/typeahead.d.ts +19 -0
- package/dist/components/Listbox/typeahead.js +39 -0
- package/dist/components/Loading/Loading.svelte +5 -1
- package/dist/components/MalaysiaKadPengenalanInput/MalaysiaKadPengenalanInput.svelte +55 -0
- package/dist/components/MalaysiaKadPengenalanInput/MalaysiaKadPengenalanInput.svelte.d.ts +10 -0
- package/dist/components/MalaysiaKadPengenalanView/MalaysiaKadPengenalanView.svelte +40 -0
- package/dist/components/MalaysiaKadPengenalanView/MalaysiaKadPengenalanView.svelte.d.ts +8 -0
- package/dist/components/Mark/Mark.svelte +0 -2
- package/dist/components/MentionsInput/MentionsInput.svelte +14 -2
- package/dist/components/Menu/Menu.svelte +1 -3
- package/dist/components/MenuBar/MenuBar.svelte +1 -3
- package/dist/components/MenuGroup/MenuGroup.svelte +6 -1
- package/dist/components/MiddleTruncation/MiddleTruncation.svelte +13 -3
- package/dist/components/MockupBrowser/MockupBrowser.svelte +5 -1
- package/dist/components/MockupLaptop/MockupLaptop.svelte +5 -1
- package/dist/components/MockupPhonePortrait/MockupPhonePortrait.svelte +5 -1
- package/dist/components/MockupShell/MockupShell.svelte +5 -1
- package/dist/components/MockupTabletLandscape/MockupTabletLandscape.svelte +5 -1
- package/dist/components/MockupTabletPortrait/MockupTabletPortrait.svelte +5 -1
- package/dist/components/MockupWatch/MockupWatch.svelte +5 -1
- package/dist/components/MockupWindow/MockupWindow.svelte +5 -1
- package/dist/components/MutuallyExclusive/MutuallyExclusive.svelte +0 -1
- package/dist/components/NavigationMenu/NavigationMenu.svelte +51 -3
- package/dist/components/NavigationMenu/NavigationMenu.svelte.d.ts +4 -0
- package/dist/components/NavigationMenu/overflow-navigation.d.ts +35 -0
- package/dist/components/NavigationMenu/overflow-navigation.js +133 -0
- package/dist/components/NetPromoterScorePicker/NetPromoterScorePicker.svelte +3 -1
- package/dist/components/NetPromoterScorePickerButton/NetPromoterScorePickerButton.svelte +2 -2
- package/dist/components/NigeriaNationalIdentificationNumberInput/NigeriaNationalIdentificationNumberInput.svelte +55 -0
- package/dist/components/NigeriaNationalIdentificationNumberInput/NigeriaNationalIdentificationNumberInput.svelte.d.ts +10 -0
- package/dist/components/NigeriaNationalIdentificationNumberView/NigeriaNationalIdentificationNumberView.svelte +40 -0
- package/dist/components/NigeriaNationalIdentificationNumberView/NigeriaNationalIdentificationNumberView.svelte.d.ts +8 -0
- package/dist/components/Organization/Organization.svelte +6 -2
- package/dist/components/PaginationLink/PaginationLink.svelte +12 -2
- package/dist/components/PaginationLink/PaginationLink.svelte.d.ts +4 -0
- package/dist/components/PakistanComputerizedNationalIdentityCardInput/PakistanComputerizedNationalIdentityCardInput.svelte +55 -0
- package/dist/components/PakistanComputerizedNationalIdentityCardInput/PakistanComputerizedNationalIdentityCardInput.svelte.d.ts +10 -0
- package/dist/components/PakistanComputerizedNationalIdentityCardView/PakistanComputerizedNationalIdentityCardView.svelte +40 -0
- package/dist/components/PakistanComputerizedNationalIdentityCardView/PakistanComputerizedNationalIdentityCardView.svelte.d.ts +8 -0
- package/dist/components/Person/Person.svelte +6 -2
- package/dist/components/PhaseBanner/PhaseBanner.svelte +0 -1
- package/dist/components/Pictogram/Pictogram.svelte +4 -1
- package/dist/components/Picture/Picture.svelte +27 -0
- package/dist/components/Picture/Picture.svelte.d.ts +9 -0
- package/dist/components/PieChart/PieChart.svelte +5 -1
- package/dist/components/Place/Place.svelte +6 -2
- package/dist/components/PopconfirmDialog/PopconfirmDialog.svelte +16 -3
- package/dist/components/Popover/Popover.svelte +39 -24
- package/dist/components/Popover/popover.d.ts +9 -0
- package/dist/components/Popover/popover.js +50 -0
- package/dist/components/Popup/Popup.svelte +40 -25
- package/dist/components/ProductCard/ProductCard.svelte +5 -1
- package/dist/components/ProgressBar/ProgressBar.svelte +0 -1
- package/dist/components/Question/Question.svelte +5 -1
- package/dist/components/RadarChart/RadarChart.svelte +5 -1
- package/dist/components/RedAmberGreenPickerButton/RedAmberGreenPickerButton.svelte +2 -2
- package/dist/components/RedOrangeYellowGreenBluePickerButton/RedOrangeYellowGreenBluePickerButton.svelte +2 -2
- package/dist/components/RelatedContent/RelatedContent.svelte +0 -1
- package/dist/components/Resizable/Resizable.svelte +1 -0
- package/dist/components/RingChart/RingChart.svelte +5 -1
- package/dist/components/SankeyChart/SankeyChart.svelte +5 -1
- package/dist/components/ScatterChart/ScatterChart.svelte +5 -1
- package/dist/components/ScreenReaderSpan/ScreenReaderSpan.svelte +6 -2
- package/dist/components/ScrollArea/ScrollArea.svelte +1 -0
- package/dist/components/ScrollBar/ScrollBar.svelte +78 -16
- package/dist/components/ScrollBar/ScrollBar.svelte.d.ts +13 -1
- package/dist/components/Scroller/Scroller.svelte +4 -1
- package/dist/components/ScrollerBase/ScrollerBase.svelte +1 -1
- package/dist/components/SectionLink/SectionLink.svelte +0 -2
- package/dist/components/SectionList/SectionList.svelte +0 -2
- package/dist/components/SectionListItem/SectionListItem.svelte +1 -3
- package/dist/components/SectionNav/SectionNav.svelte +0 -1
- package/dist/components/Separator/Separator.svelte +1 -0
- package/dist/components/Sheet/Sheet.svelte +32 -11
- package/dist/components/ShowMore/ShowMore.svelte +9 -2
- package/dist/components/SlideOutDrawer/SlideOutDrawer.svelte +33 -10
- package/dist/components/SliderButton/SliderButton.svelte +64 -6
- package/dist/components/SliderButton/SliderButton.svelte.d.ts +8 -2
- package/dist/components/SplitButton/SplitButton.svelte +29 -5
- package/dist/components/SplitButton/SplitButton.svelte.d.ts +3 -3
- package/dist/components/SplitView/SplitView.svelte +1 -0
- package/dist/components/Splitter/Splitter.svelte +1 -0
- package/dist/components/StatusLight/StatusLight.svelte +5 -8
- package/dist/components/StepListItem/StepListItem.svelte +3 -3
- package/dist/components/StickyPromoBanner/StickyPromoBanner.svelte +1 -0
- package/dist/components/SunburstChart/SunburstChart.svelte +5 -1
- package/dist/components/SuperBanner/SuperBanner.svelte +5 -1
- package/dist/components/TabBar/TabBar.svelte +1 -3
- package/dist/components/Tag/Tag.svelte +10 -2
- package/dist/components/TaiwanGuominShenfenzhengTongyiBianhaoInput/TaiwanGuominShenfenzhengTongyiBianhaoInput.svelte +55 -0
- package/dist/components/TaiwanGuominShenfenzhengTongyiBianhaoInput/TaiwanGuominShenfenzhengTongyiBianhaoInput.svelte.d.ts +10 -0
- package/dist/components/TaiwanGuominShenfenzhengTongyiBianhaoView/TaiwanGuominShenfenzhengTongyiBianhaoView.svelte +40 -0
- package/dist/components/TaiwanGuominShenfenzhengTongyiBianhaoView/TaiwanGuominShenfenzhengTongyiBianhaoView.svelte.d.ts +8 -0
- package/dist/components/TaskBar/TaskBar.svelte +1 -3
- package/dist/components/TextAreaInput/TextAreaInput.svelte +1 -2
- package/dist/components/TextAreaInputWithCharacterCounter/TextAreaInputWithCharacterCounter.svelte +4 -3
- package/dist/components/ThemeProvider/ThemeProvider.svelte +3 -3
- package/dist/components/Tile/Tile.svelte +5 -1
- package/dist/components/TimeoutDialog/TimeoutDialog.svelte +14 -1
- package/dist/components/TimerButton/TimerButton.svelte +55 -7
- package/dist/components/TimerButton/TimerButton.svelte.d.ts +9 -3
- package/dist/components/ToolBar/ToolBar.svelte +1 -3
- package/dist/components/ToolCallError/ToolCallError.svelte +0 -1
- package/dist/components/ToolCallName/ToolCallName.svelte +0 -2
- package/dist/components/Tooltip/Tooltip.svelte +14 -12
- package/dist/components/Tour/Tour.svelte +5 -4
- package/dist/components/TourList/TourList.svelte +10 -9
- package/dist/components/TourList/TourList.svelte.d.ts +2 -0
- package/dist/components/TourListItem/TourListItem.svelte +2 -2
- package/dist/components/TransferList/TransferList.svelte +8 -2
- package/dist/components/TreeLink/TreeLink.svelte +12 -2
- package/dist/components/TreeLink/TreeLink.svelte.d.ts +4 -0
- package/dist/components/TreeList/TreeList.svelte +3 -3
- package/dist/components/TreeListItem/TreeListItem.svelte +9 -1
- package/dist/components/TreeMenu/TreeMenu.svelte +40 -1
- package/dist/components/TreeSelect/TreeSelect.svelte +10 -3
- package/dist/components/TuaisceartEireannHealthAndCareNumberView/TuaisceartEireannHealthAndCareNumberView.svelte +2 -1
- package/dist/components/UruguayCedulaDeIdentidadInput/UruguayCedulaDeIdentidadInput.svelte +55 -0
- package/dist/components/UruguayCedulaDeIdentidadInput/UruguayCedulaDeIdentidadInput.svelte.d.ts +10 -0
- package/dist/components/UruguayCedulaDeIdentidadView/UruguayCedulaDeIdentidadView.svelte +40 -0
- package/dist/components/UruguayCedulaDeIdentidadView/UruguayCedulaDeIdentidadView.svelte.d.ts +8 -0
- package/dist/components/VideoPlayer/VideoPlayer.svelte +6 -2
- package/dist/components/VietNamCanCuocCongDanInput/VietNamCanCuocCongDanInput.svelte +55 -0
- package/dist/components/VietNamCanCuocCongDanInput/VietNamCanCuocCongDanInput.svelte.d.ts +10 -0
- package/dist/components/VietNamCanCuocCongDanView/VietNamCanCuocCongDanView.svelte +40 -0
- package/dist/components/VietNamCanCuocCongDanView/VietNamCanCuocCongDanView.svelte.d.ts +8 -0
- package/dist/components/Visible/Visible.svelte +1 -1
- package/dist/components/WarningText/WarningText.svelte +48 -0
- package/dist/components/WarningText/WarningText.svelte.d.ts +13 -0
- package/dist/components/WheelPicker/WheelPicker.svelte +18 -4
- package/dist/components/WheelPicker/wheel-picker.js +18 -3
- package/dist/index.d.ts +33 -0
- package/dist/index.js +33 -0
- package/index.md +4 -4
- package/package.json +5 -5
|
@@ -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
|
|
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}
|
|
@@ -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
|
-
|
|
100
|
+
popover="manual"
|
|
101
|
+
use:popoverState={open}
|
|
99
102
|
{...restProps}
|
|
100
103
|
>
|
|
101
|
-
<h2
|
|
104
|
+
<h2
|
|
105
|
+
class="popconfirm-dialog-title"
|
|
106
|
+
id={titleId}
|
|
107
|
+
>
|
|
108
|
+
{title}
|
|
109
|
+
</h2>
|
|
102
110
|
{#if description}
|
|
103
|
-
<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
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
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
|
-
// <!--
|
|
23
|
-
// <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
|
|
31
|
+
// <button type="button" command="hide-popover" commandfor="info-popover">Close</button>
|
|
27
32
|
// </Popover>
|
|
28
33
|
//
|
|
29
34
|
// Keyboard:
|
|
30
|
-
// - Escape:
|
|
31
|
-
//
|
|
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
|
-
// -
|
|
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
|
|
45
|
-
// -
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
{
|
|
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
|
|
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
|
|
7
|
-
//
|
|
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
|
-
// <!--
|
|
22
|
-
// <button
|
|
23
|
-
// <Popup label="
|
|
24
|
-
// <p>
|
|
25
|
-
// <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:
|
|
31
|
-
//
|
|
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
|
-
// -
|
|
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
|
|
45
|
-
// -
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
{
|
|
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
|
|
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>
|
|
@@ -52,7 +52,11 @@
|
|
|
52
52
|
class={`radar-chart ${className}`}
|
|
53
53
|
{...restProps}
|
|
54
54
|
>
|
|
55
|
-
<div
|
|
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}
|
|
@@ -52,7 +52,11 @@
|
|
|
52
52
|
class={`ring-chart ${className}`}
|
|
53
53
|
{...restProps}
|
|
54
54
|
>
|
|
55
|
-
<div
|
|
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
|
|
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
|
|
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
|
-
<
|
|
16
|
+
<span
|
|
17
|
+
class={`screen-reader-span ${className}`}
|
|
18
|
+
aria-label={label}
|
|
19
|
+
{...restProps}
|
|
20
|
+
>
|
|
17
21
|
{@render children?.()}
|
|
18
|
-
</
|
|
22
|
+
</span>
|