@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.
- package/CHANGELOG.md +6 -1
- package/LICENSE.md +8 -8
- package/README.md +453 -0
- 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 +2 -3
- 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/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 +3 -1
- package/dist/components/ConvertFromDiv/ConvertFromDiv.svelte +0 -1
- package/dist/components/ConvertFromUnitDiv/ConvertFromUnitDiv.svelte +0 -1
- package/dist/components/ConvertFromValueDiv/ConvertFromValueDiv.svelte +0 -1
- package/dist/components/ConvertIntoDiv/ConvertIntoDiv.svelte +0 -1
- package/dist/components/ConvertIntoUnitDiv/ConvertIntoUnitDiv.svelte +0 -1
- package/dist/components/ConvertIntoValueDiv/ConvertIntoValueDiv.svelte +0 -1
- 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 +2 -2
- 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/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 +0 -2
- 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/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/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/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 +26 -0
- package/dist/index.js +26 -0
- package/index.md +4 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
The format is loosely based on [Keep a Changelog](https://keepachangelog.com/)
|
|
4
4
|
and the package follows [Semantic Versioning](https://semver.org/).
|
|
5
5
|
|
|
6
|
+
|
|
7
|
+
## 0.6.2 — 2026-11-03
|
|
8
|
+
|
|
9
|
+
- Fixed: the published barrel now exports every component in the catalog (recent components were missing). Dependencies updated within range (Svelte 5.57.3).
|
|
10
|
+
|
|
6
11
|
## 0.6.0 — 2026-10-23 (three components)
|
|
7
12
|
|
|
8
13
|
- New: `HeatmapChartWithYearOfDays`, `MiddleTruncation`, `WheelPicker`.
|
|
@@ -114,7 +119,7 @@ Metadata-only patch; no code change. Ships the corrected package
|
|
|
114
119
|
metadata to the registry:
|
|
115
120
|
|
|
116
121
|
- `license` is the project SPDX menu (`MIT OR Apache-2.0 OR
|
|
117
|
-
|
|
122
|
+
GPL-2.0-only OR GPL-3.0-only OR BSD-3-Clause`), replacing the
|
|
118
123
|
single-license field that contradicted the repository's LICENSE.md.
|
|
119
124
|
- `repository`, `homepage`, and `bugs` point at the LilyDesignSystem
|
|
120
125
|
organisation and the documentation site.
|
package/LICENSE.md
CHANGED
|
@@ -8,15 +8,15 @@ Lily Design System™ is free open source software.
|
|
|
8
8
|
|
|
9
9
|
License is any of these, at your option, or contact us for custom license options.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
- [MIT](https://opensource.org/license/mit) ([SPDX: MIT](https://spdx.org/licenses/MIT.html))
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
- [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) ([SPDX: Apache-2.0](https://spdx.org/licenses/Apache-2.0.html))
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
- [GNU General Public License v2.0](https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html) ([SPDX: GPL-2.0-only](https://spdx.org/licenses/GPL-2.0-only.html))
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
- [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0-standalone.html) ([SPDX: GPL-3.0-only](https://spdx.org/licenses/GPL-3.0-only.html))
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
- [BSD 3-Clause License](https://opensource.org/license/bsd-3-clause) ([SPDX: BSD-3-Clause](https://spdx.org/licenses/BSD-3-Clause.html))
|
|
20
20
|
|
|
21
21
|
## SPDX
|
|
22
22
|
|
|
@@ -31,9 +31,9 @@ single identifier from the list where the packaging format does not accept a
|
|
|
31
31
|
disjunction. You do not need permission to pick one: choose whichever member of
|
|
32
32
|
the list suits your project and comply with that one.
|
|
33
33
|
|
|
34
|
-
This applies to the whole repository — the component catalog, the
|
|
35
|
-
libraries, the
|
|
36
|
-
|
|
34
|
+
This applies to the whole repository — the component catalog, the headless
|
|
35
|
+
libraries, the example applications, the helper packages, the `themes/`
|
|
36
|
+
stylesheets, the `bin/` tooling, and the documentation.
|
|
37
37
|
|
|
38
38
|
## Scope note
|
|
39
39
|
|
package/README.md
ADDED
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
# Lily Design System™ - Svelte Headless
|
|
2
|
+
|
|
3
|
+
A headless Svelte 5 component library with 607 components. All components are headless (no built-in styles), fully accessible (WCAG 2.2 AAA), and use Svelte 5 runes.
|
|
4
|
+
|
|
5
|
+
## Components
|
|
6
|
+
|
|
7
|
+
- **accordion**:
|
|
8
|
+
- **accordion-nav**: a navigation container for collapsible accordion information
|
|
9
|
+
- **accordion-list**: an ordered list of accordion list item components
|
|
10
|
+
- **accordion-list-item**: one accordion list item component
|
|
11
|
+
- **accordion-link**: one accordion link in the trail
|
|
12
|
+
- **action-link**: a hyperlink styled as an action trigger
|
|
13
|
+
- **ai-label**: an indicator of AI instances that is a pathway to AI explainability
|
|
14
|
+
- **alert-dialog**: a modal dialog for urgent messages requiring user acknowledgment
|
|
15
|
+
- **alert**: a status message for important information or feedback
|
|
16
|
+
- **angle-slider-range-input**: a range input for selecting an angle in degrees
|
|
17
|
+
- **aspect-ratio-container**: a container that maintains a fixed aspect ratio
|
|
18
|
+
- **avatar**:
|
|
19
|
+
- **avatar**: an avatar indicator that shows an avatar image or avatar text
|
|
20
|
+
- **avatar-image**: an avatar indicator inside image such as a user photo
|
|
21
|
+
- **avatar-text**: an avatar indicator inner text such as a user name
|
|
22
|
+
- **back-link**: a navigation link to return to a previous page
|
|
23
|
+
- **badge**: a small label for counts, statuses, or categories
|
|
24
|
+
- **banner**: a prominent message bar across the top of a page
|
|
25
|
+
- **banner-box**: a banner box that is inside a banner component, using flexbox horizontal
|
|
26
|
+
- **beach-ball**: a decorative animated beach ball element
|
|
27
|
+
- **breadcrumb**:
|
|
28
|
+
- **breadcrumb-nav**: a navigation container for breadcrumb trail links
|
|
29
|
+
- **breadcrumb-list**: an ordered list of breadcrumb navigation items
|
|
30
|
+
- **breadcrumb-list-item**: one breadcrumb navigation link in the trail
|
|
31
|
+
- **breadcrumb-link**: one breadcrumb link in the trail
|
|
32
|
+
- **button**: a generic clickable button element
|
|
33
|
+
- **button-input**: an input element of type button for form actions
|
|
34
|
+
- **calendar-table**:
|
|
35
|
+
- **calendar-table**: a calendar table interactive grid for managing dates, days, etc.
|
|
36
|
+
- **calendar-table-head**: a calendar table interactive grid thead for managing dates, days, etc.
|
|
37
|
+
- **calendar-table-body**: a calendar table interactive grid tbody for managing dates, days, etc.
|
|
38
|
+
- **calendar-table-foot**: a calendar table interactive grid tfoot for managing dates, days, etc.
|
|
39
|
+
- **calendar-table-th**: a calendar table interactive grid column for managing dates, days, etc.
|
|
40
|
+
- **calendar-table-row**: a calendar table interactive grid row for managing dates, days, etc.
|
|
41
|
+
- **calendar-table-td**: a calendar table interactive grid data cell for managing dates, days, etc.
|
|
42
|
+
- **calendar-range-picker**: a picker for selecting a date range on a calendar
|
|
43
|
+
- **call-to-action**: a prominent prompt encouraging user action
|
|
44
|
+
- **caption**: a caption for a table or figure element
|
|
45
|
+
- **card**: a grouped content container with header, body, and footer areas
|
|
46
|
+
- **care-card**: a medical care instruction card with urgency levels
|
|
47
|
+
- **carousel**: a slideshow for cycling through content items
|
|
48
|
+
- **character-counter**: a counter showing remaining or used characters in a text field
|
|
49
|
+
- **character**: a single character display element
|
|
50
|
+
- **chat**:
|
|
51
|
+
- **chat-nav**: a navigation container for chat information
|
|
52
|
+
- **chat-list**: an ordered list of chat list item components
|
|
53
|
+
- **chat-list-item**: one chat list item component, typically containing one chat message component
|
|
54
|
+
- **chat-message**: a chat message shows one chat conversation message entry and all its data, including the author avatar, author name, time, etc.
|
|
55
|
+
- **citation**: a citation acknowledges the relevance of a work of another to the topic of discussion
|
|
56
|
+
- **checkbox-group**: a group component that manages a collection of checkboxes with shared state
|
|
57
|
+
- **checkbox-input**: a checkbox input for toggling a boolean value
|
|
58
|
+
- **check-list**: an ordered list of check list item components
|
|
59
|
+
- **check-list-item**: one check list item component with a checkbox
|
|
60
|
+
- **clipboard-copy-button**: a button that copies text to the clipboard
|
|
61
|
+
- **collapsible**: a container that can be expanded or collapsed
|
|
62
|
+
- **code**: an inline code span for displaying short code snippets within surrounding text
|
|
63
|
+
- **code-block**: a block of formatted code with optional line numbers and line highlighting
|
|
64
|
+
- **color-input**: an input for selecting a color value
|
|
65
|
+
- **color-picker**: a two-dimensional board for picking colors by hue and saturation
|
|
66
|
+
- **color-picker-button**: a button showing a color swatch in a color picker
|
|
67
|
+
- **comment**: a comment displays user discussions and user feedback
|
|
68
|
+
- **combobox**: a text input combined with a dropdown list for filtering options
|
|
69
|
+
- **command**: a command palette for searching and executing actions
|
|
70
|
+
- **contents-nav**: a navigation landmark for a table of contents
|
|
71
|
+
- **contents-list**: an ordered list of contents list item components
|
|
72
|
+
- **contents-list-item**: one contents list item component linking to a page section
|
|
73
|
+
- **contents-link**: one contents link in the trail
|
|
74
|
+
- **context-menu**: a menu that appears on right-click or long-press
|
|
75
|
+
- **context-menu-item**: one item in a context menu
|
|
76
|
+
- **currency-input**: a locale-aware currency input with automatic formatting, symbols, separators
|
|
77
|
+
- **data-filter-form**: a form for filtering data by criteria
|
|
78
|
+
- **data-table**:
|
|
79
|
+
- **data-table**: a data table interactive grid for displaying and sorting tabular data
|
|
80
|
+
- **data-table-head**: a data table interactive grid thead for displaying and sorting tabular data
|
|
81
|
+
- **data-table-body**: a data table interactive grid tbody for displaying and sorting tabular data
|
|
82
|
+
- **data-table-foot**: a data table interactive grid tfoot for displaying and sorting tabular data
|
|
83
|
+
- **data-table-th**: a data table interactive grid column for displaying and sorting tabular data
|
|
84
|
+
- **data-table-row**: a data table interactive grid row for displaying and sorting tabular data
|
|
85
|
+
- **data-table-td**: a data table interactive grid data cell for displaying and sorting tabular data
|
|
86
|
+
- **date-field**: a structured field for entering date components
|
|
87
|
+
- **date-input**: an input for entering a date value
|
|
88
|
+
- **date-range**: paired start and end date inputs
|
|
89
|
+
- **date-time-now-input**: an input for entering a date and time and "now" button
|
|
90
|
+
- **date-time-local-input**: an input for entering a date and time without time zone
|
|
91
|
+
- **details**: a disclosure widget that shows and hides content
|
|
92
|
+
- **dial**: a rotary dial control for selecting a value
|
|
93
|
+
- **dial-group**: a group of dial components
|
|
94
|
+
- **diff**: a side-by-side comparison of two items
|
|
95
|
+
- **digital-object-identifier-link**: a permanent hyperlink for a Digital Object Identifier (DOI) to an electronic source
|
|
96
|
+
- **dialog**: a modal or non-modal dialog window
|
|
97
|
+
- **do-list**: a guideline list of encouraged do-list-item components
|
|
98
|
+
- **do-list-item**: an encouraged-practice item in a do-list guideline list
|
|
99
|
+
- **dont-list**: a guideline list of discouraged dont-list-item components
|
|
100
|
+
- **dont-list-item**: a discouraged-practice item in a dont-list guideline list
|
|
101
|
+
- **drawer**: a panel that slides in from the edge of the screen
|
|
102
|
+
- **dropdown-menu**: a menu that opens below a trigger button
|
|
103
|
+
- **editable-form**: a form wrapper for inline editing of content
|
|
104
|
+
- **editable**: an inline-editable text element that toggles between view and edit modes
|
|
105
|
+
- **email-link**: a mailto hyperlink for an email address
|
|
106
|
+
- **email-input**: an input for entering an email address
|
|
107
|
+
- **emoji-character-picker**: a picker for browsing and selecting emoji characters
|
|
108
|
+
- **emoji**: a single emoji character with accessible name
|
|
109
|
+
- **error-message**: an error message associated with a form field
|
|
110
|
+
- **event**: an event component that contains other event-related information
|
|
111
|
+
- **error-summary**: a summary of all validation errors on a form
|
|
112
|
+
- **expander**: a control that expands to reveal more content
|
|
113
|
+
- **field**: a form field wrapper with label, input, and error message
|
|
114
|
+
- **fieldset**: a group of related form fields with a legend
|
|
115
|
+
- **figure**: a self-contained figure with optional caption
|
|
116
|
+
- **file-dialog**: a dialog for browsing and selecting files
|
|
117
|
+
- **file-input**: an input for selecting files from the file system
|
|
118
|
+
- **file-manager**: a file browser for navigating and managing files
|
|
119
|
+
- **file-upload**: a drag-and-drop area for uploading files
|
|
120
|
+
- **five-face-rating**:
|
|
121
|
+
- **five-face-rating-view**: a read-only display of a five-face satisfaction rating
|
|
122
|
+
- **five-face-rating-picker**: a picker for selecting a 1-5 satisfaction rating using face labels
|
|
123
|
+
- **five-face-rating-picker-button**: a picker button for selecting a 1-5 satisfaction rating using face labels
|
|
124
|
+
- **five-star-rating**:
|
|
125
|
+
- **five-star-rating-view**: a read-only display of a five-star rating
|
|
126
|
+
- **five-star-rating-picker**: a picker for selecting a 1-5 star rating using radio buttons
|
|
127
|
+
- **five-star-rating-picker-button**: a picker button for selecting a 1-5 star rating using radio buttons
|
|
128
|
+
- **flair**: a decorative highlight or emphasis element
|
|
129
|
+
- **floating-panel**: a panel that floats above page content
|
|
130
|
+
- **footer**: a page or section footer area
|
|
131
|
+
- **footnote**: a footnote reference and content element
|
|
132
|
+
- **form**: a form element for collecting and submitting user data
|
|
133
|
+
- **gantt-table**:
|
|
134
|
+
- **gantt-table**: a Gantt chart table interactive grid for planning schedule visualization
|
|
135
|
+
- **gantt-table-thead**: a Gantt chart table interactive grid thead for planning schedule visualization
|
|
136
|
+
- **gantt-table-tbody**: a Gantt chart table interactive grid tbody for planning schedule visualization
|
|
137
|
+
- **gantt-table-tfoot**: a Gantt chart table interactive grid tfoot for planning schedule visualization
|
|
138
|
+
- **gantt-table-th**: a Gantt chart table interactive grid column for planning schedule visualization
|
|
139
|
+
- **gantt-table-tr**: a Gantt chart table interactive grid row for planning schedule visualization
|
|
140
|
+
- **gantt-table-td**: a Gantt chart table interactive grid data cell for planning schedule visualization
|
|
141
|
+
- **hamburger-menu**: a toggle button that opens a mobile navigation menu
|
|
142
|
+
- **header**: a page or section header area
|
|
143
|
+
- **hero**: a large box or image with a title and description
|
|
144
|
+
- **hidden-input**: a hidden input for including data in form submission
|
|
145
|
+
- **hint**: hint text providing guidance for a form field
|
|
146
|
+
- **grail-layout**:
|
|
147
|
+
- **grail-layout**: a responsive web design structure with header, left aside, center main, right aside, footer
|
|
148
|
+
- **grail-layout-top-header**: grail layout top header full width with header tag
|
|
149
|
+
- **grail-layout-left-aside**: grail layout left aside sidebar with aside tag
|
|
150
|
+
- **grail-layout-center-main**: grail layout center main content with main tag
|
|
151
|
+
- **grail-layout-right-aside**: grail layout right aside sidebar with aside tag
|
|
152
|
+
- **grail-layout-bottom-footer**: grail layout bottom footer full width with footer tag
|
|
153
|
+
- **hover-card**: a card that appears on hover over a trigger element
|
|
154
|
+
- **icon**: a container for displaying an icon
|
|
155
|
+
- **image-file-input**: an input for selecting image files with preview
|
|
156
|
+
- **image**: an image element with alt text
|
|
157
|
+
- **image-input**: a graphical submit button that displays an image
|
|
158
|
+
- **information-callout**: a callout box highlighting informational content
|
|
159
|
+
- **input**: a generic HTML input element
|
|
160
|
+
- **inset-text**: indented text to distinguish it from surrounding content
|
|
161
|
+
- **kanban-table**:
|
|
162
|
+
- **kanban-table**: a kanban board table interactive grid for organizing items by status
|
|
163
|
+
- **kanban-table-head**: a kanban board table interactive grid thead for organizing items by status
|
|
164
|
+
- **kanban-table-body**: a kanban board table interactive grid tbody for organizing items by status
|
|
165
|
+
- **kanban-table-foot**: a kanban board table interactive grid tfoot for organizing items by status
|
|
166
|
+
- **kanban-table-th**: a kanban board table interactive grid column for organizing items by status
|
|
167
|
+
- **kanban-table-row**: a kanban board table interactive grid row for organizing items by status
|
|
168
|
+
- **kanban-table-td**: kanban board table interactive grid data cell for organizing items by status
|
|
169
|
+
- **kbd**: show keyboard shortcuts and key combinations in a styled inline element
|
|
170
|
+
- **label**: a label associated with a form input
|
|
171
|
+
- **listbox**: a list of selectable options with keyboard navigation
|
|
172
|
+
- **loading**: a loading indicator, such as text, or image, or animation
|
|
173
|
+
- **measurement**:
|
|
174
|
+
- **measurement-instance-input**: an input for entering a measurement value and unit
|
|
175
|
+
- **measurement-instance-view**: a read-only display of a measurement value and unit
|
|
176
|
+
- **measurement-system-input**: an input for selecting a measurement system
|
|
177
|
+
- **measurement-system-view**: a read-only display of a measurement system
|
|
178
|
+
- **measurement-unit-input**: an input for selecting a measurement unit
|
|
179
|
+
- **measurement-unit-view**: a read-only display of a measurement unit
|
|
180
|
+
- **medical-banner**: a prominent message bar across the top of a page, with medical information
|
|
181
|
+
- **medical-banner-box**: a medical banner box inside a medical-banner, using flexbox horizontal
|
|
182
|
+
- **medical-banner-box-for-danger**: a medical record banner box for danger information
|
|
183
|
+
- **medical-banner-box-for-advice**: a medical record banner box for advice information
|
|
184
|
+
- **menu**: a list of actions or options triggered by a button
|
|
185
|
+
- **menu-item**: one item in a menu
|
|
186
|
+
- **menu-bar**: a horizontal bar of menu triggers
|
|
187
|
+
- **menu-bar-button**: one item in a menu bar
|
|
188
|
+
- **meter**: a gauge displaying a scalar value within a known range
|
|
189
|
+
- **mockup-browser**: a box area that looks like a web browser
|
|
190
|
+
- **mockup-laptop**: a box area that looks like a laptop computer
|
|
191
|
+
- **mockup-phone-portrait**: a box area that looks like a mobile phone
|
|
192
|
+
- **mockup-tablet-landscape**: a box area that looks like a tablet computer in landscape mode
|
|
193
|
+
- **mockup-tablet-portrait**: a box area that looks like a tablet computer in portrait mode
|
|
194
|
+
- **mockup-shell**: a box area that looks like a terminal shell
|
|
195
|
+
- **mockup-watch**: a box area that looks like a smart watch
|
|
196
|
+
- **mockup-window**: a box area that looks like a desktop window
|
|
197
|
+
- **month-input**: an input for selecting a month and year
|
|
198
|
+
- **navigation-menu**: a site-wide navigation menu with links
|
|
199
|
+
- **net-promoter-score**:
|
|
200
|
+
- **net-promoter-score-view**: a read-only display of a Net Promoter Score
|
|
201
|
+
- **net-promoter-score-picker**: a picker for selecting a 0-10 Net Promoter Score
|
|
202
|
+
- **net-promoter-score-picker-button**: a picker button for selecting a 0-10 Net Promoter Score
|
|
203
|
+
- **notification**: a brief message about an event or update
|
|
204
|
+
- **number-input**: an input for entering a numeric value with validation
|
|
205
|
+
- **option**: an option element within a select dropdown
|
|
206
|
+
- **organization**: an organization component that contains other organization-related information
|
|
207
|
+
- **pagination**:
|
|
208
|
+
- **pagination-nav**: an ordered list of page navigation links
|
|
209
|
+
- **pagination-list**: an ordered list of page navigation links
|
|
210
|
+
- **pagination-list-item**: one page link in a pagination list
|
|
211
|
+
- **pagination-link**: one pagination link in the trail
|
|
212
|
+
- **panel**: a generic content panel with optional heading
|
|
213
|
+
- **person**: a person component that contains other person-related information
|
|
214
|
+
- **password-input**: an input for entering a password with obscured text
|
|
215
|
+
- **password-input-or-text-input-div**: an input for entering a password or text with show/hide toggle
|
|
216
|
+
- **place**: a place component that contains other place-related information
|
|
217
|
+
- **pin-input-div**: a series of single-digit inputs for entering a PIN or OTP code
|
|
218
|
+
- **popover**: a floating content box anchored to a trigger element
|
|
219
|
+
- **popup**: a temporary overlay that appears above page content
|
|
220
|
+
- **postal-code**:
|
|
221
|
+
- **postal-code-input**: an input for entering a postal or ZIP code
|
|
222
|
+
- **postal-code-view**: a read-only display of a postal or ZIP code
|
|
223
|
+
- **progress-circle**: a circular progress indicator
|
|
224
|
+
- **progress-spinner**: an indeterminate spinning progress indicator
|
|
225
|
+
- **progress**: a horizontal progress bar showing completion
|
|
226
|
+
- **qr-code**: a QR code image generated from text or URL data
|
|
227
|
+
- **radio-group**: a group of radio buttons for selecting one option
|
|
228
|
+
- **radio-input**: a single radio button input
|
|
229
|
+
- **range-input**: a slider input for selecting a value within a range
|
|
230
|
+
- **red-amber-green**:
|
|
231
|
+
- **red-amber-green-view**: a read-only display of a red/amber/green status
|
|
232
|
+
- **red-amber-green-picker**: a picker for selecting a red/amber/green status
|
|
233
|
+
- **red-amber-green-picker-button**: a picker button for selecting a red/amber/green status
|
|
234
|
+
- **red-orange-yellow-green-blue**:
|
|
235
|
+
- **red-orange-yellow-green-blue-view**: a read-only display of a five-level color status
|
|
236
|
+
- **red-orange-yellow-green-blue-picker**: a picker for selecting a five-level color status
|
|
237
|
+
- **red-orange-yellow-green-blue-picker-button**: a picker button for selecting a five-level color status
|
|
238
|
+
- **reset-input**: a button input that resets a form to default values
|
|
239
|
+
- **resizable**: a container that the user can resize by dragging
|
|
240
|
+
- **review-date**: a display of a content review date
|
|
241
|
+
- **screen-reader-span**: a visually hidden span of text intended for screen readers to provide more descriptive labels
|
|
242
|
+
- **scroll-area**: a scrollable container with custom scrollbar support
|
|
243
|
+
- **scroll-bar**: a custom scrollbar element
|
|
244
|
+
- **search-input**: an input for entering a search query
|
|
245
|
+
- **segment-group**: a group of mutually exclusive segment options
|
|
246
|
+
- **segment-group-item**: one selectable segment in a segment group
|
|
247
|
+
- **select-with-extras**: a select dropdown with additional features like search or groups
|
|
248
|
+
- **select**: a dropdown select element for choosing one option
|
|
249
|
+
- **separator**: a horizontal or vertical divider between content sections
|
|
250
|
+
- **sheet**: a panel that slides in from a screen edge as an overlay
|
|
251
|
+
- **sidebar**: a side panel for navigation or supplementary content
|
|
252
|
+
- **signature-pad**: a drawing area for capturing a handwritten signature
|
|
253
|
+
- **skeleton**: a placeholder loading animation for content
|
|
254
|
+
- **skip-link**: a hidden link for keyboard users to skip to main content
|
|
255
|
+
- **slide-out-drawer**: a drawer that slides out from the side of the page
|
|
256
|
+
- **slider**: a draggable control for selecting a value along a track
|
|
257
|
+
- **slider-button**: a button with a slider that the user needs to slide to confirm
|
|
258
|
+
- **sonner**: a toast notification manager
|
|
259
|
+
- **sparkline**: a small inline chart showing a data trend
|
|
260
|
+
- **splitter**: a draggable divider for resizing adjacent panels
|
|
261
|
+
- **submit-input**: a button input that submits a form
|
|
262
|
+
- **super-banner**: a super-banner communicates a high-priority state that affects an entire app, experience, process, or system
|
|
263
|
+
- **summary-list**: an ordered list of key-value summary pairs
|
|
264
|
+
- **summary-list-item**: one key-value pair in a summary list
|
|
265
|
+
- **switch-button**: a toggle switch for turning a setting on or off
|
|
266
|
+
- **tab-bar**: a group of tabs for switching between content panels
|
|
267
|
+
- **tab-bar-button**: one tab button in a tab group
|
|
268
|
+
- **table**:
|
|
269
|
+
- **table**: a data table with rows and columns
|
|
270
|
+
- **table-head**: a table header section
|
|
271
|
+
- **table-body**: a table body section
|
|
272
|
+
- **table-foot**: a table footer section
|
|
273
|
+
- **table-th**: a table column
|
|
274
|
+
- **table-row**: a table row
|
|
275
|
+
- **table-td**: a table data cell
|
|
276
|
+
- **tag-group**: a group of tag elements
|
|
277
|
+
- **tag**: a keyword label for categorizing content
|
|
278
|
+
- **tag-input**: an input for adding and removing tags
|
|
279
|
+
- **task-bar**: a horizontal bar of task shortcuts or actions
|
|
280
|
+
- **task-bar-button**: one item in a task bar
|
|
281
|
+
- **task-list**: an ordered list of task list items
|
|
282
|
+
- **task-list-item**: one task item with a checkbox and label
|
|
283
|
+
- **tel-input**: an input for entering a telephone number
|
|
284
|
+
- **tel-link**: a tel: hyperlink for a telephone number
|
|
285
|
+
- **text-input**: a single-line text input field
|
|
286
|
+
- **text-input-with-search**: a single-line text input field with search capability
|
|
287
|
+
- **text-area-input**: a multi-line text input area
|
|
288
|
+
- **text-area-input-with-character-counter**: a multi-line text area with character counter
|
|
289
|
+
- **theme-select**: a select dropdown for choosing a theme
|
|
290
|
+
- **theme-select-option**: one option in a theme select dropdown
|
|
291
|
+
- **theme-view**: a read-only display of the current theme
|
|
292
|
+
- **time-input**: an input for entering a time value
|
|
293
|
+
- **time-picker-input**: an input with a dropdown for picking a time
|
|
294
|
+
- **timeline-list**: an ordered list of chronological events or milestones
|
|
295
|
+
- **timeline-list-item**: one event in a timeline list
|
|
296
|
+
- **tile**: a grouping container that presents related content in a structured format, often as a single clickable area
|
|
297
|
+
- **timer**: a countdown or elapsed time display
|
|
298
|
+
- **timer-button**: a button with a timer that will automatically click after a given amount of time
|
|
299
|
+
- **toast**: a brief auto-dismissing notification message
|
|
300
|
+
- **toggle-group**: a group of toggle buttons for selecting options
|
|
301
|
+
- **toggle-button**: a button that toggles between pressed and unpressed states
|
|
302
|
+
- **tool-bar**: a horizontal bar of tool actions
|
|
303
|
+
- **tool-bar-button**: one action button in a tool bar
|
|
304
|
+
- **tooltip**: a small popup showing descriptive text on hover or focus
|
|
305
|
+
- **tour**: a tour guide, such as for sightseeing, or pathways, or demonstrations, etc.
|
|
306
|
+
- **tour-list**: an ordered list of tour guide steps
|
|
307
|
+
- **tour-list-item**: one step in a tour guide list
|
|
308
|
+
- **tree-menu**: a hierarchical tree menu with expandable branches
|
|
309
|
+
- **tree-nav**: a hierarchical navigation with expandable branches
|
|
310
|
+
- **tree-list**: a hierarchical list with nested expandable items
|
|
311
|
+
- **tree-list-item**: one item in a tree navigation list
|
|
312
|
+
- **tree-link**: one tree link in the trail
|
|
313
|
+
- **united-kingdom**:
|
|
314
|
+
- **united-kingdom-national-health-service-number-input**: an input for entering a UK NHS number
|
|
315
|
+
- **united-kingdom-national-health-service-number-view**: a read-only display of a UK NHS number
|
|
316
|
+
- **united-states**:
|
|
317
|
+
- **united-states-social-security-number-input**: an input for entering a US Social Security number
|
|
318
|
+
- **united-states-social-security-number-view**: a read-only display of a US Social Security number
|
|
319
|
+
- **url-input**: an input for entering a URL
|
|
320
|
+
- **warning-callout**: a callout box highlighting a warning message
|
|
321
|
+
- **week-input**: an input for selecting a week and year
|
|
322
|
+
|
|
323
|
+
## Component name patterns
|
|
324
|
+
|
|
325
|
+
- \*Bar \*BarButton
|
|
326
|
+
- MenuBar MenuBarButton
|
|
327
|
+
- TabBar TabBarButton
|
|
328
|
+
- TaskBar TaskBarButton
|
|
329
|
+
- ToolBar ToolBarButton
|
|
330
|
+
- \*Group \*GroupItem
|
|
331
|
+
- SegmentGroup SegmentGroupItem
|
|
332
|
+
- \*Guide \*GuideList \*GuideListItem
|
|
333
|
+
- Tour TourList TourListItem
|
|
334
|
+
- \*List \*ListItem
|
|
335
|
+
- CheckList CheckListItem
|
|
336
|
+
- ContentsList ContentsListItem
|
|
337
|
+
- DoList DoListItem
|
|
338
|
+
- DontList DontListItem
|
|
339
|
+
- PaginationList PaginationListItem
|
|
340
|
+
- SummaryList SummaryListItem
|
|
341
|
+
- \*Nav \*List \*ListItem
|
|
342
|
+
- AccordionNav AccordionList AccordionListItem
|
|
343
|
+
- BreadcrumbNav BreadcrumbList BreadcrumbListItem
|
|
344
|
+
- ContentsNav ContentsList ContentsListItem
|
|
345
|
+
- PaginationNav PaginationList PaginationListItem
|
|
346
|
+
- TreeNav TreeList TreeListItem
|
|
347
|
+
- *Select *SelectOption
|
|
348
|
+
- ThemeSelect ThemeSelectOption
|
|
349
|
+
- \*Menu \*MenuItem
|
|
350
|
+
- ContextMenu ContextMenuItem
|
|
351
|
+
- Menu MenuItem
|
|
352
|
+
- \*Input \*Link
|
|
353
|
+
- TelInput TelLink
|
|
354
|
+
- EmailInput EmailLink
|
|
355
|
+
- \*Picker \*PickerButton
|
|
356
|
+
- ColorPicker ColorPickerButton
|
|
357
|
+
- FiveFaceRatingPicker FiveFaceRatingPickerButton
|
|
358
|
+
- FiveStarRatingPicker FiveStarRatingPickerButton
|
|
359
|
+
- NetPromoterScorePicker NetPromoterScorePickerButton
|
|
360
|
+
- RedAmberGreenPicker RedAmberGreenPickerButton
|
|
361
|
+
- RedOrangeYellowGreenBluePicker RedOrangeYellowGreenBluePickerButton
|
|
362
|
+
- \*Table \*TableHead \*TableBody \*TableFoot \*TableTD \*TableRow \*TableTD
|
|
363
|
+
- Table TableHead TableBody TableFoot TableTD TableRow TableTD
|
|
364
|
+
- CalendarTable CalendarTableHead CalendarTableBody CalendarTableFoot CalendarTableTD CalendarTableRow CalendarTableTD
|
|
365
|
+
- DataTable DataTableHead DataTableBody DataTableFoot DataTableTD DataTableRow DataTableTD
|
|
366
|
+
- GanttTable GanttTableHead GanttTableBody GanttTableTfoot GanttTableTH GanttTableTr GanttTableTD
|
|
367
|
+
- KanbanTable KanbanTableHead KanbanTableBody KanbanTableFoot KanbanTableTD KanbanTableRow KanbanTableTD
|
|
368
|
+
|
|
369
|
+
## Component patterns for name suffix and HTML tag
|
|
370
|
+
|
|
371
|
+
| Suffix | HTML tag |
|
|
372
|
+
| ---------- | ------------ |
|
|
373
|
+
| article | `<article>` |
|
|
374
|
+
| aside | `<aside>` |
|
|
375
|
+
| button | `<button>` |
|
|
376
|
+
| dialog | `<dialog>` |
|
|
377
|
+
| div | `<div>` |
|
|
378
|
+
| fieldset | `<fieldset>` |
|
|
379
|
+
| figure | `<figure>` |
|
|
380
|
+
| footer | `<footer>` |
|
|
381
|
+
| header | `<header>` |
|
|
382
|
+
| input | `<input>` |
|
|
383
|
+
| kbd | `<kbd>` |
|
|
384
|
+
| list | `<ol>` |
|
|
385
|
+
| list-item | `<li>` |
|
|
386
|
+
| main | `<main>` |
|
|
387
|
+
| meter | `<meter>` |
|
|
388
|
+
| nav | `<nav>` |
|
|
389
|
+
| option | `<option>` |
|
|
390
|
+
| picker | `<div>` |
|
|
391
|
+
| progress | `<progress>` |
|
|
392
|
+
| table | `<table>` |
|
|
393
|
+
| table-head | `<thead>` |
|
|
394
|
+
| table-body | `<tbody>` |
|
|
395
|
+
| table-foot | `<tfoot>` |
|
|
396
|
+
| table-row | `<tr>` |
|
|
397
|
+
| table-td | `<td>` |
|
|
398
|
+
| select | `<select>` |
|
|
399
|
+
| span | `<span>` |
|
|
400
|
+
|
|
401
|
+
## Architecture
|
|
402
|
+
|
|
403
|
+
- **Svelte 5** with runes (`$props()`, `$state()`, `$derived()`, `$bindable()`)
|
|
404
|
+
- **Headless design**: no CSS, no styles -- consumers provide all styling
|
|
405
|
+
- **Accessible**: WCAG 2.2 AAA, ARIA attributes, keyboard navigation
|
|
406
|
+
- **TypeScript**: fully typed props and events
|
|
407
|
+
- **Internationalization**: no hardcoded user-facing strings
|
|
408
|
+
|
|
409
|
+
## Testing
|
|
410
|
+
|
|
411
|
+
Vitest + @testing-library/svelte for component testing. No @testing-library/jest-dom.
|
|
412
|
+
|
|
413
|
+
```sh
|
|
414
|
+
pnpm test # run all tests
|
|
415
|
+
pnpm run test:ui # open vitest UI
|
|
416
|
+
pnpm run test:watch # watch mode
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
## Accessibility
|
|
420
|
+
|
|
421
|
+
All components follow WCAG 2.2 AAA guidelines:
|
|
422
|
+
|
|
423
|
+
- **Semantic HTML**: Proper element usage (`<button>`, `<nav>`, `<dialog>`, etc.)
|
|
424
|
+
- **ARIA attributes**: Roles, labels, states, and properties
|
|
425
|
+
- **Keyboard**: native elements are keyboard-operable by default; about 34 components add APG key handling (arrows, Home/End, Escape, type-ahead) — see each component's `AGENTS.md`
|
|
426
|
+
- **Screen readers**: Proper announcements via aria-live, role="alert", etc.
|
|
427
|
+
- **Focus management**: Logical focus order and visible focus indicators
|
|
428
|
+
- **Error handling**: Accessible error messages linked via aria-errormessage
|
|
429
|
+
|
|
430
|
+
## Internationalization
|
|
431
|
+
|
|
432
|
+
No strings are hardcoded in any component. All user-facing text comes through props. Labels, placeholders, and error messages are all configurable by the consumer.
|
|
433
|
+
|
|
434
|
+
## Related Projects
|
|
435
|
+
|
|
436
|
+
- [Lily Design System](https://github.com/LilyDesignSystem/lily-design-system) — Parent project
|
|
437
|
+
- [Svelte SvelteKit Examples](../lily-design-system-svelte-sveltekit-examples/) — Example app with simple styling
|
|
438
|
+
- [React Headless](../lily-design-system-react-headless/) — React equivalent
|
|
439
|
+
- [Vue Headless](../lily-design-system-vue-headless/) — Vue equivalent
|
|
440
|
+
- [Blazor Headless](../lily-design-system-blazor-headless/) — Blazor equivalent
|
|
441
|
+
- [Angular Headless](../lily-design-system-angular-headless/) — Angular 20 equivalent
|
|
442
|
+
|
|
443
|
+
## License
|
|
444
|
+
|
|
445
|
+
MIT or Apache-2.0 or GPL-2.0 or GPL-3.0, or contact us for more options.
|
|
446
|
+
|
|
447
|
+
## Contact
|
|
448
|
+
|
|
449
|
+
Joel Parker Henderson (joel@joelparkerhenderson.com)
|
|
450
|
+
|
|
451
|
+
---
|
|
452
|
+
|
|
453
|
+
Lily™ and Lily Design System™ are trademarks.
|
|
@@ -2,17 +2,27 @@
|
|
|
2
2
|
import type { Snippet } from "svelte";
|
|
3
3
|
let {
|
|
4
4
|
class: className = "",
|
|
5
|
+
href,
|
|
5
6
|
label = undefined,
|
|
6
7
|
children,
|
|
7
8
|
...restProps
|
|
8
9
|
}: {
|
|
10
|
+
/** The URL to navigate to. */
|
|
11
|
+
href: string;
|
|
12
|
+
/** Accessible label override for screen readers. */
|
|
9
13
|
label?: string;
|
|
14
|
+
/** The link content. */
|
|
10
15
|
children: Snippet;
|
|
11
16
|
[key: string]: unknown;
|
|
12
17
|
} = $props();
|
|
13
18
|
</script>
|
|
14
19
|
|
|
15
20
|
<!-- AccordionLink.svelte -->
|
|
16
|
-
<
|
|
21
|
+
<a
|
|
22
|
+
class={`accordion-link ${className}`}
|
|
23
|
+
{href}
|
|
24
|
+
aria-label={label}
|
|
25
|
+
{...restProps}
|
|
26
|
+
>
|
|
17
27
|
{@render children?.()}
|
|
18
|
-
</
|
|
28
|
+
</a>
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { Snippet } from "svelte";
|
|
2
2
|
type $$ComponentProps = {
|
|
3
|
+
/** The URL to navigate to. */
|
|
4
|
+
href: string;
|
|
5
|
+
/** Accessible label override for screen readers. */
|
|
3
6
|
label?: string;
|
|
7
|
+
/** The link content. */
|
|
4
8
|
children: Snippet;
|
|
5
9
|
[key: string]: unknown;
|
|
6
10
|
};
|
|
@@ -33,11 +33,12 @@
|
|
|
33
33
|
// - Adobe Spectrum ActionGroup: https://spectrum.adobe.com/page/action-group/
|
|
34
34
|
|
|
35
35
|
import type { Snippet } from "svelte";
|
|
36
|
+
import { popoverState, popoverSupported, toggleOpened } from "../Popover/popover.js";
|
|
36
37
|
|
|
37
38
|
let {
|
|
38
39
|
class: className = "",
|
|
39
40
|
label,
|
|
40
|
-
overflowOpen = false,
|
|
41
|
+
overflowOpen = $bindable(false),
|
|
41
42
|
overflowLabel = undefined,
|
|
42
43
|
onOverflowToggle = undefined,
|
|
43
44
|
children = undefined,
|
|
@@ -47,18 +48,30 @@
|
|
|
47
48
|
class?: string;
|
|
48
49
|
/** Accessible label for the group (REQUIRED) */
|
|
49
50
|
label: string;
|
|
50
|
-
/** Whether the overflow menu is open */
|
|
51
|
+
/** Whether the overflow menu is open. Bindable: the browser opens and light-dismisses it. */
|
|
51
52
|
overflowOpen?: boolean;
|
|
52
53
|
/** Accessible label for the overflow trigger button */
|
|
53
54
|
overflowLabel?: string;
|
|
54
|
-
/** Click handler for the overflow trigger */
|
|
55
|
-
onOverflowToggle?: () => void;
|
|
55
|
+
/** Click handler for the overflow trigger; call preventDefault() on the event to keep the menu as it is */
|
|
56
|
+
onOverflowToggle?: (event: MouseEvent) => void;
|
|
56
57
|
/** Visible action buttons */
|
|
57
58
|
children?: Snippet;
|
|
58
59
|
/** Overflow menu content */
|
|
59
60
|
overflow?: Snippet;
|
|
60
61
|
[key: string]: unknown;
|
|
61
62
|
} = $props();
|
|
63
|
+
|
|
64
|
+
const uid = $props.id();
|
|
65
|
+
const menuId = `action-group-overflow-menu-${uid}`;
|
|
66
|
+
let menu: HTMLDivElement | undefined = $state();
|
|
67
|
+
|
|
68
|
+
// With the Popover API the trigger's command="toggle-popover" opens and closes the menu and the toggle event
|
|
69
|
+
// writes `overflowOpen` back; without it, the click toggles `overflowOpen` and popoverState sets `hidden`.
|
|
70
|
+
function toggle(event: MouseEvent) {
|
|
71
|
+
onOverflowToggle?.(event);
|
|
72
|
+
if (event.defaultPrevented) return;
|
|
73
|
+
if (menu && !popoverSupported(menu)) overflowOpen = !overflowOpen;
|
|
74
|
+
}
|
|
62
75
|
</script>
|
|
63
76
|
|
|
64
77
|
<!-- ActionGroup.svelte -->
|
|
@@ -78,9 +91,20 @@
|
|
|
78
91
|
aria-haspopup="menu"
|
|
79
92
|
aria-expanded={overflowOpen}
|
|
80
93
|
aria-label={overflowLabel}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
94
|
+
aria-controls={menuId}
|
|
95
|
+
command="toggle-popover"
|
|
96
|
+
commandfor={menuId}
|
|
97
|
+
popovertarget={menuId}
|
|
98
|
+
onclick={toggle}>…</button
|
|
99
|
+
>
|
|
100
|
+
<div
|
|
101
|
+
bind:this={menu}
|
|
102
|
+
class="action-group-overflow-menu"
|
|
103
|
+
id={menuId}
|
|
104
|
+
popover="auto"
|
|
105
|
+
use:popoverState={overflowOpen}
|
|
106
|
+
ontoggle={(event) => (overflowOpen = toggleOpened(event))}
|
|
107
|
+
>
|
|
84
108
|
{@render overflow()}
|
|
85
109
|
</div>
|
|
86
110
|
{/if}
|
|
@@ -3,18 +3,18 @@ type $$ComponentProps = {
|
|
|
3
3
|
class?: string;
|
|
4
4
|
/** Accessible label for the group (REQUIRED) */
|
|
5
5
|
label: string;
|
|
6
|
-
/** Whether the overflow menu is open */
|
|
6
|
+
/** Whether the overflow menu is open. Bindable: the browser opens and light-dismisses it. */
|
|
7
7
|
overflowOpen?: boolean;
|
|
8
8
|
/** Accessible label for the overflow trigger button */
|
|
9
9
|
overflowLabel?: string;
|
|
10
|
-
/** Click handler for the overflow trigger */
|
|
11
|
-
onOverflowToggle?: () => void;
|
|
10
|
+
/** Click handler for the overflow trigger; call preventDefault() on the event to keep the menu as it is */
|
|
11
|
+
onOverflowToggle?: (event: MouseEvent) => void;
|
|
12
12
|
/** Visible action buttons */
|
|
13
13
|
children?: Snippet;
|
|
14
14
|
/** Overflow menu content */
|
|
15
15
|
overflow?: Snippet;
|
|
16
16
|
[key: string]: unknown;
|
|
17
17
|
};
|
|
18
|
-
declare const ActionGroup: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
18
|
+
declare const ActionGroup: import("svelte").Component<$$ComponentProps, {}, "overflowOpen">;
|
|
19
19
|
type ActionGroup = ReturnType<typeof ActionGroup>;
|
|
20
20
|
export default ActionGroup;
|