@urbicon-ui/blocks 6.3.1 → 6.3.6
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/dist/components/AreaChart/AreaChart.svelte.d.ts +1 -1
- package/dist/components/AreaChart/index.d.ts +1 -1
- package/dist/components/BarChart/BarChart.svelte.d.ts +1 -1
- package/dist/components/BarChart/index.d.ts +1 -1
- package/dist/components/Calendar/Calendar.svelte.d.ts +1 -1
- package/dist/components/Calendar/CalendarAgendaView.svelte.d.ts +1 -1
- package/dist/components/Calendar/CalendarDay.svelte.d.ts +1 -1
- package/dist/components/Calendar/CalendarDayView.svelte.d.ts +1 -1
- package/dist/components/Calendar/CalendarEventItem.svelte.d.ts +1 -1
- package/dist/components/Calendar/CalendarEventList.svelte.d.ts +1 -1
- package/dist/components/Calendar/CalendarEventPopover.svelte.d.ts +1 -1
- package/dist/components/Calendar/CalendarEventRenderer.svelte.d.ts +1 -1
- package/dist/components/Calendar/CalendarGrid.svelte.d.ts +1 -1
- package/dist/components/Calendar/CalendarHeader.svelte.d.ts +1 -1
- package/dist/components/Calendar/CalendarMultiDayBar.svelte.d.ts +1 -1
- package/dist/components/Calendar/CalendarTimeEvent.svelte.d.ts +1 -1
- package/dist/components/Calendar/CalendarTimeGrid.svelte.d.ts +1 -1
- package/dist/components/Calendar/CalendarWeekGrid.svelte.d.ts +1 -1
- package/dist/components/Calendar/calendar.context.d.ts +3 -3
- package/dist/components/Calendar/calendar.context.js +1 -1
- package/dist/components/Calendar/calendar.drag.d.ts +1 -1
- package/dist/components/Calendar/calendar.engine.d.ts +1 -1
- package/dist/components/Calendar/calendar.engine.js +1 -1
- package/dist/components/Calendar/calendar.variants.d.ts +2 -2
- package/dist/components/Calendar/calendar.variants.js +1 -1
- package/dist/components/Calendar/index.d.ts +7 -7
- package/dist/components/Calendar/index.js +2 -2
- package/dist/components/ChartFrame/ChartFrame.svelte.d.ts +1 -1
- package/dist/components/ChartFrame/index.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPalette.svelte.d.ts +1 -1
- package/dist/components/CommandPalette/commandPalette.variants.d.ts +2 -2
- package/dist/components/CommandPalette/commandPalette.variants.js +4 -2
- package/dist/components/CommandPalette/index.d.ts +2 -2
- package/dist/components/CommandPalette/index.js +1 -1
- package/dist/components/CompositionBar/CompositionBar.svelte.d.ts +1 -1
- package/dist/components/CompositionBar/composition-bar.variants.d.ts +2 -2
- package/dist/components/CompositionBar/composition-bar.variants.js +1 -1
- package/dist/components/CompositionBar/index.d.ts +3 -3
- package/dist/components/CompositionBar/index.js +1 -1
- package/dist/components/CurrencyInput/CurrencyInput.svelte.d.ts +1 -1
- package/dist/components/CurrencyInput/index.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.svelte.d.ts +1 -1
- package/dist/components/DatePicker/DateRangePicker.svelte.d.ts +1 -1
- package/dist/components/DatePicker/datepicker.engine.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts +8 -7
- package/dist/components/DonutChart/DonutChart.svelte.d.ts +1 -1
- package/dist/components/DonutChart/index.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.svelte.d.ts +1 -1
- package/dist/components/EmptyState/emptyState.variants.d.ts +2 -2
- package/dist/components/EmptyState/emptyState.variants.js +1 -1
- package/dist/components/EmptyState/index.d.ts +3 -3
- package/dist/components/EmptyState/index.js +1 -1
- package/dist/components/FileUpload/FileUpload.svelte.d.ts +1 -1
- package/dist/components/FileUpload/fileUpload.variants.d.ts +2 -2
- package/dist/components/FileUpload/fileUpload.variants.js +1 -1
- package/dist/components/FileUpload/index.d.ts +3 -3
- package/dist/components/FileUpload/index.js +1 -1
- package/dist/components/Guide/Guide.svelte.d.ts +1 -1
- package/dist/components/Guide/GuideArticle.svelte.d.ts +1 -1
- package/dist/components/Guide/GuideBeacon.svelte.d.ts +1 -1
- package/dist/components/Guide/GuideHint.svelte.d.ts +1 -1
- package/dist/components/Guide/GuideMarker.svelte.d.ts +1 -1
- package/dist/components/Guide/GuideMention.svelte.d.ts +1 -1
- package/dist/components/Guide/GuidePanel.svelte.d.ts +1 -1
- package/dist/components/Guide/GuideProvider.svelte.d.ts +1 -1
- package/dist/components/Guide/guide-panel.context.js +1 -1
- package/dist/components/Guide/guide.context.d.ts +1 -1
- package/dist/components/Guide/guide.context.js +1 -1
- package/dist/components/Guide/guide.variants.d.ts +8 -8
- package/dist/components/Guide/guide.variants.js +1 -1
- package/dist/components/Guide/index.d.ts +3 -3
- package/dist/components/Guide/index.js +1 -1
- package/dist/components/LineChart/LineChart.svelte.d.ts +1 -1
- package/dist/components/LineChart/index.d.ts +1 -1
- package/dist/components/LocaleSwitcher/LocaleSwitcher.svelte.d.ts +1 -1
- package/dist/components/LocaleSwitcher/index.d.ts +1 -1
- package/dist/components/Planner/Planner.svelte.d.ts +1 -1
- package/dist/components/Planner/index.d.ts +5 -5
- package/dist/components/Planner/index.js +2 -2
- package/dist/components/Planner/planner.bucket.js +1 -1
- package/dist/components/Planner/planner.context.d.ts +1 -1
- package/dist/components/Planner/planner.context.js +1 -1
- package/dist/components/Planner/planner.variants.d.ts +2 -2
- package/dist/components/Planner/planner.variants.js +1 -1
- package/dist/components/Sankey/Sankey.svelte.d.ts +1 -1
- package/dist/components/Sankey/index.d.ts +3 -3
- package/dist/components/Sankey/index.js +1 -1
- package/dist/components/Sankey/sankey.variants.d.ts +2 -2
- package/dist/components/Sankey/sankey.variants.js +1 -1
- package/dist/components/SidebarLayout/SidebarLayout.svelte.d.ts +1 -1
- package/dist/components/SidebarLayout/index.d.ts +2 -2
- package/dist/components/SidebarLayout/index.js +1 -1
- package/dist/components/SidebarLayout/sidebar-layout.variants.d.ts +2 -2
- package/dist/components/SidebarLayout/sidebar-layout.variants.js +1 -1
- package/dist/components/Sparkline/Sparkline.svelte.d.ts +1 -1
- package/dist/components/ThemeSwitcher/ThemeSwitcher.svelte.d.ts +1 -1
- package/dist/components/ThemeSwitcher/index.d.ts +2 -2
- package/dist/components/ThemeSwitcher/index.js +1 -1
- package/dist/components/ThemeSwitcher/themeSwitcher.variants.d.ts +2 -2
- package/dist/components/ThemeSwitcher/themeSwitcher.variants.js +1 -1
- package/dist/components/index.d.ts +27 -27
- package/dist/components/index.js +21 -21
- package/dist/date/format.js +1 -1
- package/dist/date/index.d.ts +4 -4
- package/dist/date/index.js +4 -4
- package/dist/date/range.js +1 -1
- package/dist/i18n/index.d.ts +341 -3
- package/dist/i18n/index.js +2 -2
- package/dist/icons/ActivityIcon.svelte.d.ts +1 -1
- package/dist/icons/AlertCircleIcon.svelte.d.ts +1 -1
- package/dist/icons/AlignCenterIcon.svelte.d.ts +1 -1
- package/dist/icons/AlignLeftIcon.svelte.d.ts +1 -1
- package/dist/icons/AlignRightIcon.svelte.d.ts +1 -1
- package/dist/icons/AnchorIcon.svelte.d.ts +1 -1
- package/dist/icons/ApertureIcon.svelte.d.ts +1 -1
- package/dist/icons/ArchiveIcon.svelte.d.ts +1 -1
- package/dist/icons/AreaChartIcon.svelte.d.ts +1 -1
- package/dist/icons/ArrowDownIcon.svelte.d.ts +1 -1
- package/dist/icons/ArrowLeftIcon.svelte.d.ts +1 -1
- package/dist/icons/ArrowLeftRightIcon.svelte.d.ts +1 -1
- package/dist/icons/ArrowRightIcon.svelte.d.ts +1 -1
- package/dist/icons/ArrowUpDownIcon.svelte.d.ts +1 -1
- package/dist/icons/ArrowUpIcon.svelte.d.ts +1 -1
- package/dist/icons/ArrowUpRightIcon.svelte.d.ts +1 -1
- package/dist/icons/AtSignIcon.svelte.d.ts +1 -1
- package/dist/icons/AwardIcon.svelte.d.ts +1 -1
- package/dist/icons/BadgeAlertIcon.svelte.d.ts +1 -1
- package/dist/icons/BadgeCheckIcon.svelte.d.ts +1 -1
- package/dist/icons/BadgeEuroIcon.svelte.d.ts +1 -1
- package/dist/icons/BanIcon.svelte.d.ts +1 -1
- package/dist/icons/BanknoteIcon.svelte.d.ts +1 -1
- package/dist/icons/BarChartIcon.svelte.d.ts +1 -1
- package/dist/icons/BathIcon.svelte.d.ts +1 -1
- package/dist/icons/BatteryChargingIcon.svelte.d.ts +1 -1
- package/dist/icons/BatteryIcon.svelte.d.ts +1 -1
- package/dist/icons/BatteryLowIcon.svelte.d.ts +1 -1
- package/dist/icons/BedIcon.svelte.d.ts +1 -1
- package/dist/icons/BellIcon.svelte.d.ts +1 -1
- package/dist/icons/BellOffIcon.svelte.d.ts +1 -1
- package/dist/icons/BellRingIcon.svelte.d.ts +1 -1
- package/dist/icons/BikeIcon.svelte.d.ts +1 -1
- package/dist/icons/BoldIcon.svelte.d.ts +1 -1
- package/dist/icons/BookOpenIcon.svelte.d.ts +1 -1
- package/dist/icons/BookmarkIcon.svelte.d.ts +1 -1
- package/dist/icons/BriefcaseIcon.svelte.d.ts +1 -1
- package/dist/icons/BugIcon.svelte.d.ts +1 -1
- package/dist/icons/Building2Icon.svelte.d.ts +1 -1
- package/dist/icons/BuildingIcon.svelte.d.ts +1 -1
- package/dist/icons/CalculatorIcon.svelte.d.ts +1 -1
- package/dist/icons/CalendarClockIcon.svelte.d.ts +1 -1
- package/dist/icons/CalendarDaysIcon.svelte.d.ts +1 -1
- package/dist/icons/CalendarIcon.svelte.d.ts +1 -1
- package/dist/icons/CameraIcon.svelte.d.ts +1 -1
- package/dist/icons/CarIcon.svelte.d.ts +1 -1
- package/dist/icons/CheckCircleIcon.svelte.d.ts +1 -1
- package/dist/icons/CheckIcon.svelte.d.ts +1 -1
- package/dist/icons/ChevronDownIcon.svelte.d.ts +1 -1
- package/dist/icons/ChevronLeftIcon.svelte.d.ts +1 -1
- package/dist/icons/ChevronRightIcon.svelte.d.ts +1 -1
- package/dist/icons/ChevronUpIcon.svelte.d.ts +1 -1
- package/dist/icons/ChevronsDownIcon.svelte.d.ts +1 -1
- package/dist/icons/ChevronsLeftIcon.svelte.d.ts +1 -1
- package/dist/icons/ChevronsRightIcon.svelte.d.ts +1 -1
- package/dist/icons/ChevronsUpIcon.svelte.d.ts +1 -1
- package/dist/icons/CircleDotIcon.svelte.d.ts +1 -1
- package/dist/icons/CircleHelpIcon.svelte.d.ts +1 -1
- package/dist/icons/CircleIcon.svelte.d.ts +1 -1
- package/dist/icons/CirclePercentIcon.svelte.d.ts +1 -1
- package/dist/icons/CircleUserIcon.svelte.d.ts +1 -1
- package/dist/icons/ClipboardCheckIcon.svelte.d.ts +1 -1
- package/dist/icons/ClipboardIcon.svelte.d.ts +1 -1
- package/dist/icons/ClipboardListIcon.svelte.d.ts +1 -1
- package/dist/icons/ClockIcon.svelte.d.ts +1 -1
- package/dist/icons/CloseIcon.svelte.d.ts +1 -1
- package/dist/icons/CloudIcon.svelte.d.ts +1 -1
- package/dist/icons/CloudLightningIcon.svelte.d.ts +1 -1
- package/dist/icons/CloudRainIcon.svelte.d.ts +1 -1
- package/dist/icons/CloudSnowIcon.svelte.d.ts +1 -1
- package/dist/icons/CloudSunIcon.svelte.d.ts +1 -1
- package/dist/icons/CodeIcon.svelte.d.ts +1 -1
- package/dist/icons/CoffeeIcon.svelte.d.ts +1 -1
- package/dist/icons/CoinsIcon.svelte.d.ts +1 -1
- package/dist/icons/Columns3Icon.svelte.d.ts +1 -1
- package/dist/icons/ContactIcon.svelte.d.ts +1 -1
- package/dist/icons/CopyIcon.svelte.d.ts +1 -1
- package/dist/icons/CornerDownRightIcon.svelte.d.ts +1 -1
- package/dist/icons/CornerUpLeftIcon.svelte.d.ts +1 -1
- package/dist/icons/CreditCardIcon.svelte.d.ts +1 -1
- package/dist/icons/DangerCircleIcon.svelte.d.ts +1 -1
- package/dist/icons/DatabaseIcon.svelte.d.ts +1 -1
- package/dist/icons/DoorIcon.svelte.d.ts +1 -1
- package/dist/icons/DoorOpenIcon.svelte.d.ts +1 -1
- package/dist/icons/DownloadIcon.svelte.d.ts +1 -1
- package/dist/icons/DropletIcon.svelte.d.ts +1 -1
- package/dist/icons/DropletsIcon.svelte.d.ts +1 -1
- package/dist/icons/EditIcon.svelte.d.ts +1 -1
- package/dist/icons/EuroIcon.svelte.d.ts +1 -1
- package/dist/icons/ExpandIcon.svelte.d.ts +1 -1
- package/dist/icons/ExternalLinkIcon.svelte.d.ts +1 -1
- package/dist/icons/EyeIcon.svelte.d.ts +1 -1
- package/dist/icons/EyeOffIcon.svelte.d.ts +1 -1
- package/dist/icons/FastForwardIcon.svelte.d.ts +1 -1
- package/dist/icons/FenceIcon.svelte.d.ts +1 -1
- package/dist/icons/FileCheckIcon.svelte.d.ts +1 -1
- package/dist/icons/FileIcon.svelte.d.ts +1 -1
- package/dist/icons/FilePlusIcon.svelte.d.ts +1 -1
- package/dist/icons/FileSignatureIcon.svelte.d.ts +1 -1
- package/dist/icons/FileSpreadsheetIcon.svelte.d.ts +1 -1
- package/dist/icons/FileTextIcon.svelte.d.ts +1 -1
- package/dist/icons/FilesIcon.svelte.d.ts +1 -1
- package/dist/icons/FilmIcon.svelte.d.ts +1 -1
- package/dist/icons/FilterXIcon.svelte.d.ts +1 -1
- package/dist/icons/FingerprintIcon.svelte.d.ts +1 -1
- package/dist/icons/FlagIcon.svelte.d.ts +1 -1
- package/dist/icons/FlameIcon.svelte.d.ts +1 -1
- package/dist/icons/FlashlightIcon.svelte.d.ts +1 -1
- package/dist/icons/FolderIcon.svelte.d.ts +1 -1
- package/dist/icons/FolderMinusIcon.svelte.d.ts +1 -1
- package/dist/icons/FolderOpenIcon.svelte.d.ts +1 -1
- package/dist/icons/FolderPlusIcon.svelte.d.ts +1 -1
- package/dist/icons/FolderTreeIcon.svelte.d.ts +1 -1
- package/dist/icons/FuelIcon.svelte.d.ts +1 -1
- package/dist/icons/FunnelIcon.svelte.d.ts +1 -1
- package/dist/icons/GalleryIcon.svelte.d.ts +1 -1
- package/dist/icons/GamepadIcon.svelte.d.ts +1 -1
- package/dist/icons/GaugeCircleIcon.svelte.d.ts +1 -1
- package/dist/icons/GaugeIcon.svelte.d.ts +1 -1
- package/dist/icons/GiftIcon.svelte.d.ts +1 -1
- package/dist/icons/GitBranchIcon.svelte.d.ts +1 -1
- package/dist/icons/GitCommitIcon.svelte.d.ts +1 -1
- package/dist/icons/GitMergeIcon.svelte.d.ts +1 -1
- package/dist/icons/GlassesIcon.svelte.d.ts +1 -1
- package/dist/icons/GlobeIcon.svelte.d.ts +1 -1
- package/dist/icons/GraduationCapIcon.svelte.d.ts +1 -1
- package/dist/icons/GripIcon.svelte.d.ts +1 -1
- package/dist/icons/HammerIcon.svelte.d.ts +1 -1
- package/dist/icons/HandCoinsIcon.svelte.d.ts +1 -1
- package/dist/icons/HardHatIcon.svelte.d.ts +1 -1
- package/dist/icons/HashIcon.svelte.d.ts +1 -1
- package/dist/icons/HeadingIcon.svelte.d.ts +1 -1
- package/dist/icons/HeadphonesIcon.svelte.d.ts +1 -1
- package/dist/icons/HeartIcon.svelte.d.ts +1 -1
- package/dist/icons/HeartPulseIcon.svelte.d.ts +1 -1
- package/dist/icons/HeatPumpIcon.svelte.d.ts +1 -1
- package/dist/icons/HexagonIcon.svelte.d.ts +1 -1
- package/dist/icons/HighlighterIcon.svelte.d.ts +1 -1
- package/dist/icons/HomeIcon.svelte.d.ts +1 -1
- package/dist/icons/HouseIcon.svelte.d.ts +1 -1
- package/dist/icons/Icon.svelte.d.ts +1 -1
- package/dist/icons/IconProvider.svelte.d.ts +1 -1
- package/dist/icons/IconWrapper.svelte.d.ts +1 -1
- package/dist/icons/IdCardIcon.svelte.d.ts +1 -1
- package/dist/icons/ImageIcon.svelte.d.ts +1 -1
- package/dist/icons/ImportIcon.svelte.d.ts +1 -1
- package/dist/icons/InboxIcon.svelte.d.ts +1 -1
- package/dist/icons/IndentIcon.svelte.d.ts +1 -1
- package/dist/icons/InfoCircleIcon.svelte.d.ts +1 -1
- package/dist/icons/ItalicIcon.svelte.d.ts +1 -1
- package/dist/icons/KeyIcon.svelte.d.ts +1 -1
- package/dist/icons/KeyRoundIcon.svelte.d.ts +1 -1
- package/dist/icons/LandmarkIcon.svelte.d.ts +1 -1
- package/dist/icons/LaptopIcon.svelte.d.ts +1 -1
- package/dist/icons/LayersIcon.svelte.d.ts +1 -1
- package/dist/icons/LeafIcon.svelte.d.ts +1 -1
- package/dist/icons/LightbulbIcon.svelte.d.ts +1 -1
- package/dist/icons/LineChartIcon.svelte.d.ts +1 -1
- package/dist/icons/LinkIcon.svelte.d.ts +1 -1
- package/dist/icons/ListChecksIcon.svelte.d.ts +1 -1
- package/dist/icons/ListFilterIcon.svelte.d.ts +1 -1
- package/dist/icons/ListIcon.svelte.d.ts +1 -1
- package/dist/icons/ListOrderedIcon.svelte.d.ts +1 -1
- package/dist/icons/LockIcon.svelte.d.ts +1 -1
- package/dist/icons/LockKeyholeIcon.svelte.d.ts +1 -1
- package/dist/icons/LogInIcon.svelte.d.ts +1 -1
- package/dist/icons/LogOutIcon.svelte.d.ts +1 -1
- package/dist/icons/MailCheckIcon.svelte.d.ts +1 -1
- package/dist/icons/MailIcon.svelte.d.ts +1 -1
- package/dist/icons/MailOpenIcon.svelte.d.ts +1 -1
- package/dist/icons/MapIcon.svelte.d.ts +1 -1
- package/dist/icons/MapPinIcon.svelte.d.ts +1 -1
- package/dist/icons/MaximizeIcon.svelte.d.ts +1 -1
- package/dist/icons/MegaphoneIcon.svelte.d.ts +1 -1
- package/dist/icons/MenuIcon.svelte.d.ts +1 -1
- package/dist/icons/MessageCircleIcon.svelte.d.ts +1 -1
- package/dist/icons/MessageSquareIcon.svelte.d.ts +1 -1
- package/dist/icons/MeterIcon.svelte.d.ts +1 -1
- package/dist/icons/MicIcon.svelte.d.ts +1 -1
- package/dist/icons/MicOffIcon.svelte.d.ts +1 -1
- package/dist/icons/MinimizeIcon.svelte.d.ts +1 -1
- package/dist/icons/MinusCircleIcon.svelte.d.ts +1 -1
- package/dist/icons/MinusIcon.svelte.d.ts +1 -1
- package/dist/icons/MonitorIcon.svelte.d.ts +1 -1
- package/dist/icons/MoonIcon.svelte.d.ts +1 -1
- package/dist/icons/MoreHorizontalIcon.svelte.d.ts +1 -1
- package/dist/icons/MoreVerticalIcon.svelte.d.ts +1 -1
- package/dist/icons/MoveIcon.svelte.d.ts +1 -1
- package/dist/icons/MusicIcon.svelte.d.ts +1 -1
- package/dist/icons/NavigationIcon.svelte.d.ts +1 -1
- package/dist/icons/NetworkIcon.svelte.d.ts +1 -1
- package/dist/icons/OctagonIcon.svelte.d.ts +1 -1
- package/dist/icons/OilCanIcon.svelte.d.ts +1 -1
- package/dist/icons/OutdentIcon.svelte.d.ts +1 -1
- package/dist/icons/PackageIcon.svelte.d.ts +1 -1
- package/dist/icons/PaletteIcon.svelte.d.ts +1 -1
- package/dist/icons/PanelLeftIcon.svelte.d.ts +1 -1
- package/dist/icons/PanelRightIcon.svelte.d.ts +1 -1
- package/dist/icons/PaperclipIcon.svelte.d.ts +1 -1
- package/dist/icons/ParkingIcon.svelte.d.ts +1 -1
- package/dist/icons/PasskeyIcon.svelte.d.ts +1 -1
- package/dist/icons/PauseIcon.svelte.d.ts +1 -1
- package/dist/icons/PelletIcon.svelte.d.ts +1 -1
- package/dist/icons/PercentIcon.svelte.d.ts +1 -1
- package/dist/icons/PhoneIcon.svelte.d.ts +1 -1
- package/dist/icons/PieChartIcon.svelte.d.ts +1 -1
- package/dist/icons/PiggyBankIcon.svelte.d.ts +1 -1
- package/dist/icons/PillIcon.svelte.d.ts +1 -1
- package/dist/icons/PinIcon.svelte.d.ts +1 -1
- package/dist/icons/PlaneIcon.svelte.d.ts +1 -1
- package/dist/icons/PlayIcon.svelte.d.ts +1 -1
- package/dist/icons/PlugIcon.svelte.d.ts +1 -1
- package/dist/icons/PlugZapIcon.svelte.d.ts +1 -1
- package/dist/icons/PlusCircleIcon.svelte.d.ts +1 -1
- package/dist/icons/PlusIcon.svelte.d.ts +1 -1
- package/dist/icons/PowerIcon.svelte.d.ts +1 -1
- package/dist/icons/PrinterIcon.svelte.d.ts +1 -1
- package/dist/icons/QrCodeIcon.svelte.d.ts +1 -1
- package/dist/icons/QuoteIcon.svelte.d.ts +1 -1
- package/dist/icons/RadiatorIcon.svelte.d.ts +1 -1
- package/dist/icons/ReceiptIcon.svelte.d.ts +1 -1
- package/dist/icons/RecycleIcon.svelte.d.ts +1 -1
- package/dist/icons/RedoIcon.svelte.d.ts +1 -1
- package/dist/icons/RefreshIcon.svelte.d.ts +1 -1
- package/dist/icons/RepeatIcon.svelte.d.ts +1 -1
- package/dist/icons/ReplyIcon.svelte.d.ts +1 -1
- package/dist/icons/RewindIcon.svelte.d.ts +1 -1
- package/dist/icons/RocketIcon.svelte.d.ts +1 -1
- package/dist/icons/RouteIcon.svelte.d.ts +1 -1
- package/dist/icons/Rows3Icon.svelte.d.ts +1 -1
- package/dist/icons/RulerIcon.svelte.d.ts +1 -1
- package/dist/icons/SaveIcon.svelte.d.ts +1 -1
- package/dist/icons/ScaleIcon.svelte.d.ts +1 -1
- package/dist/icons/ScanFaceIcon.svelte.d.ts +1 -1
- package/dist/icons/ScanIcon.svelte.d.ts +1 -1
- package/dist/icons/ScatterChartIcon.svelte.d.ts +1 -1
- package/dist/icons/ScissorsIcon.svelte.d.ts +1 -1
- package/dist/icons/SearchIcon.svelte.d.ts +1 -1
- package/dist/icons/SendIcon.svelte.d.ts +1 -1
- package/dist/icons/ServerIcon.svelte.d.ts +1 -1
- package/dist/icons/SettingsIcon.svelte.d.ts +1 -1
- package/dist/icons/ShareIcon.svelte.d.ts +1 -1
- package/dist/icons/ShieldAlertIcon.svelte.d.ts +1 -1
- package/dist/icons/ShieldCheckIcon.svelte.d.ts +1 -1
- package/dist/icons/ShieldIcon.svelte.d.ts +1 -1
- package/dist/icons/ShieldOffIcon.svelte.d.ts +1 -1
- package/dist/icons/ShieldXIcon.svelte.d.ts +1 -1
- package/dist/icons/ShoppingBagIcon.svelte.d.ts +1 -1
- package/dist/icons/ShoppingCartIcon.svelte.d.ts +1 -1
- package/dist/icons/ShuffleIcon.svelte.d.ts +1 -1
- package/dist/icons/SkipBackIcon.svelte.d.ts +1 -1
- package/dist/icons/SkipForwardIcon.svelte.d.ts +1 -1
- package/dist/icons/SmartphoneIcon.svelte.d.ts +1 -1
- package/dist/icons/SmileIcon.svelte.d.ts +1 -1
- package/dist/icons/SnowflakeIcon.svelte.d.ts +1 -1
- package/dist/icons/SofaIcon.svelte.d.ts +1 -1
- package/dist/icons/SolarPanelIcon.svelte.d.ts +1 -1
- package/dist/icons/SortAscIcon.svelte.d.ts +1 -1
- package/dist/icons/SortDescIcon.svelte.d.ts +1 -1
- package/dist/icons/SparklesIcon.svelte.d.ts +1 -1
- package/dist/icons/SquareIcon.svelte.d.ts +1 -1
- package/dist/icons/SquareSigmaIcon.svelte.d.ts +1 -1
- package/dist/icons/StairsIcon.svelte.d.ts +1 -1
- package/dist/icons/StarIcon.svelte.d.ts +1 -1
- package/dist/icons/StopCircleIcon.svelte.d.ts +1 -1
- package/dist/icons/StoreIcon.svelte.d.ts +1 -1
- package/dist/icons/StrikethroughIcon.svelte.d.ts +1 -1
- package/dist/icons/SuccessCircleIcon.svelte.d.ts +1 -1
- package/dist/icons/SunIcon.svelte.d.ts +1 -1
- package/dist/icons/SunSnowIcon.svelte.d.ts +1 -1
- package/dist/icons/SunriseIcon.svelte.d.ts +1 -1
- package/dist/icons/SunsetIcon.svelte.d.ts +1 -1
- package/dist/icons/Table2Icon.svelte.d.ts +1 -1
- package/dist/icons/TableIcon.svelte.d.ts +1 -1
- package/dist/icons/TagIcon.svelte.d.ts +1 -1
- package/dist/icons/TargetIcon.svelte.d.ts +1 -1
- package/dist/icons/TerminalIcon.svelte.d.ts +1 -1
- package/dist/icons/ThermometerIcon.svelte.d.ts +1 -1
- package/dist/icons/ThumbsDownIcon.svelte.d.ts +1 -1
- package/dist/icons/ThumbsUpIcon.svelte.d.ts +1 -1
- package/dist/icons/TrashIcon.svelte.d.ts +1 -1
- package/dist/icons/TreeIcon.svelte.d.ts +1 -1
- package/dist/icons/TrendingDownIcon.svelte.d.ts +1 -1
- package/dist/icons/TrendingUpIcon.svelte.d.ts +1 -1
- package/dist/icons/TriangleIcon.svelte.d.ts +1 -1
- package/dist/icons/TruckIcon.svelte.d.ts +1 -1
- package/dist/icons/TypeIcon.svelte.d.ts +1 -1
- package/dist/icons/UmbrellaIcon.svelte.d.ts +1 -1
- package/dist/icons/UnderlineIcon.svelte.d.ts +1 -1
- package/dist/icons/UndoIcon.svelte.d.ts +1 -1
- package/dist/icons/UnlinkIcon.svelte.d.ts +1 -1
- package/dist/icons/UnlockIcon.svelte.d.ts +1 -1
- package/dist/icons/UploadCloudIcon.svelte.d.ts +1 -1
- package/dist/icons/UserCheckIcon.svelte.d.ts +1 -1
- package/dist/icons/UserCogIcon.svelte.d.ts +1 -1
- package/dist/icons/UserIcon.svelte.d.ts +1 -1
- package/dist/icons/UserPlusIcon.svelte.d.ts +1 -1
- package/dist/icons/UserXIcon.svelte.d.ts +1 -1
- package/dist/icons/UsersIcon.svelte.d.ts +1 -1
- package/dist/icons/VideoIcon.svelte.d.ts +1 -1
- package/dist/icons/VideoOffIcon.svelte.d.ts +1 -1
- package/dist/icons/VolumeIcon.svelte.d.ts +1 -1
- package/dist/icons/VolumeOffIcon.svelte.d.ts +1 -1
- package/dist/icons/WalletCardsIcon.svelte.d.ts +1 -1
- package/dist/icons/WalletIcon.svelte.d.ts +1 -1
- package/dist/icons/WarehouseIcon.svelte.d.ts +1 -1
- package/dist/icons/WarningTriangleIcon.svelte.d.ts +1 -1
- package/dist/icons/WatchIcon.svelte.d.ts +1 -1
- package/dist/icons/WaterMeterIcon.svelte.d.ts +1 -1
- package/dist/icons/WavesIcon.svelte.d.ts +1 -1
- package/dist/icons/WifiIcon.svelte.d.ts +1 -1
- package/dist/icons/WindArrowIcon.svelte.d.ts +1 -1
- package/dist/icons/WindIcon.svelte.d.ts +1 -1
- package/dist/icons/WorkflowIcon.svelte.d.ts +1 -1
- package/dist/icons/WrenchIcon.svelte.d.ts +1 -1
- package/dist/icons/ZapIcon.svelte.d.ts +1 -1
- package/dist/icons/ZoomInIcon.svelte.d.ts +1 -1
- package/dist/icons/ZoomOutIcon.svelte.d.ts +1 -1
- package/dist/icons/icon-registry.d.ts +1 -1
- package/dist/icons/icon-registry.js +1 -1
- package/dist/icons/icon.context.d.ts +2 -2
- package/dist/icons/icon.context.js +1 -1
- package/dist/icons/index.d.ts +3 -3
- package/dist/icons/index.js +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +9 -9
- package/dist/internal/charts/types.d.ts +1 -1
- package/dist/internal/charts/variants.d.ts +2 -2
- package/dist/internal/charts/variants.js +1 -1
- package/dist/internal/date-grid/DateGridScaffold.svelte.d.ts +1 -1
- package/dist/internal/date-grid/date-grid.context.d.ts +1 -1
- package/dist/internal/date-grid/date-grid.context.js +1 -1
- package/dist/internal/date-grid/date-grid.keyboard.d.ts +1 -1
- package/dist/internal/date-grid/date-grid.keyboard.js +1 -1
- package/dist/internal/date-grid/date-grid.svelte.d.ts +1 -1
- package/dist/internal/date-grid/date-grid.svelte.js +1 -1
- package/dist/internal/date-grid/index.d.ts +4 -4
- package/dist/internal/date-grid/index.js +3 -3
- package/dist/mint/compose.d.ts +2 -2
- package/dist/mint/compose.js +1 -1
- package/dist/mint/index.d.ts +7 -7
- package/dist/mint/index.js +7 -7
- package/dist/mint/micro-interactions.d.ts +2 -2
- package/dist/mint/presets.js +4 -4
- package/dist/mint/registry.d.ts +1 -1
- package/dist/mint/ripple.d.ts +2 -2
- package/dist/mint/svelte.d.ts +1 -1
- package/dist/mint/svelte.js +1 -1
- package/dist/primitives/Accordion/Accordion.svelte.d.ts +1 -1
- package/dist/primitives/Accordion/AccordionItem.svelte.d.ts +1 -1
- package/dist/primitives/Accordion/accordion.context.d.ts +1 -1
- package/dist/primitives/Accordion/accordion.variants.d.ts +2 -2
- package/dist/primitives/Accordion/accordion.variants.js +1 -1
- package/dist/primitives/Accordion/index.d.ts +2 -2
- package/dist/primitives/Accordion/index.js +1 -1
- package/dist/primitives/Alert/Alert.svelte.d.ts +1 -1
- package/dist/primitives/Alert/alert.variants.d.ts +2 -2
- package/dist/primitives/Alert/alert.variants.js +1 -1
- package/dist/primitives/Alert/index.d.ts +2 -2
- package/dist/primitives/Alert/index.js +1 -1
- package/dist/primitives/Avatar/Avatar.svelte.d.ts +1 -1
- package/dist/primitives/Avatar/avatar.variants.d.ts +2 -2
- package/dist/primitives/Avatar/avatar.variants.js +1 -1
- package/dist/primitives/Avatar/index.d.ts +3 -3
- package/dist/primitives/Avatar/index.js +1 -1
- package/dist/primitives/Badge/Badge.svelte.d.ts +1 -1
- package/dist/primitives/Badge/badge.variants.d.ts +2 -2
- package/dist/primitives/Badge/badge.variants.js +1 -1
- package/dist/primitives/Badge/index.d.ts +3 -3
- package/dist/primitives/Badge/index.js +1 -1
- package/dist/primitives/Breadcrumb/Breadcrumb.svelte.d.ts +1 -1
- package/dist/primitives/Breadcrumb/breadcrumb.variants.d.ts +2 -2
- package/dist/primitives/Breadcrumb/breadcrumb.variants.js +1 -1
- package/dist/primitives/Breadcrumb/index.d.ts +2 -2
- package/dist/primitives/Breadcrumb/index.js +1 -1
- package/dist/primitives/Button/Button.svelte.d.ts +1 -1
- package/dist/primitives/Button/button.variants.d.ts +2 -2
- package/dist/primitives/Button/button.variants.js +1 -1
- package/dist/primitives/Button/index.d.ts +3 -3
- package/dist/primitives/Button/index.js +1 -1
- package/dist/primitives/ButtonGroup/ButtonGroup.svelte.d.ts +1 -1
- package/dist/primitives/ButtonGroup/buttonGroup.context.d.ts +1 -1
- package/dist/primitives/ButtonGroup/buttonGroup.context.js +1 -1
- package/dist/primitives/ButtonGroup/buttongroup.variants.d.ts +2 -2
- package/dist/primitives/ButtonGroup/buttongroup.variants.js +1 -1
- package/dist/primitives/ButtonGroup/index.d.ts +5 -5
- package/dist/primitives/ButtonGroup/index.js +1 -1
- package/dist/primitives/Card/Card.svelte.d.ts +1 -1
- package/dist/primitives/Card/card.variants.d.ts +2 -2
- package/dist/primitives/Card/card.variants.js +1 -1
- package/dist/primitives/Card/index.d.ts +3 -3
- package/dist/primitives/Card/index.js +1 -1
- package/dist/primitives/Checkbox/Checkbox.svelte.d.ts +1 -1
- package/dist/primitives/Checkbox/checkbox.variants.d.ts +2 -2
- package/dist/primitives/Checkbox/checkbox.variants.js +1 -1
- package/dist/primitives/Checkbox/index.d.ts +4 -4
- package/dist/primitives/Checkbox/index.js +1 -1
- package/dist/primitives/Collapsible/Collapsible.svelte.d.ts +1 -1
- package/dist/primitives/Collapsible/collapsible.variants.d.ts +2 -2
- package/dist/primitives/Collapsible/collapsible.variants.js +1 -1
- package/dist/primitives/Collapsible/index.d.ts +2 -2
- package/dist/primitives/Collapsible/index.js +1 -1
- package/dist/primitives/Combobox/Combobox.svelte +42 -5
- package/dist/primitives/Combobox/Combobox.svelte.d.ts +1 -1
- package/dist/primitives/Combobox/combobox.variants.d.ts +11 -2
- package/dist/primitives/Combobox/combobox.variants.js +18 -7
- package/dist/primitives/Combobox/index.d.ts +4 -4
- package/dist/primitives/Combobox/index.js +1 -1
- package/dist/primitives/ConfirmDialog/ConfirmDialog.svelte.d.ts +1 -1
- package/dist/primitives/ConfirmDialog/index.d.ts +1 -1
- package/dist/primitives/Dialog/Dialog.svelte.d.ts +1 -1
- package/dist/primitives/Dialog/dialog.variants.d.ts +2 -2
- package/dist/primitives/Dialog/dialog.variants.js +1 -1
- package/dist/primitives/Dialog/index.d.ts +2 -2
- package/dist/primitives/Dialog/index.js +1 -1
- package/dist/primitives/Drawer/Drawer.svelte.d.ts +1 -1
- package/dist/primitives/Drawer/drawer.variants.d.ts +2 -2
- package/dist/primitives/Drawer/drawer.variants.js +1 -1
- package/dist/primitives/Drawer/index.d.ts +2 -2
- package/dist/primitives/Drawer/index.js +1 -1
- package/dist/primitives/FormField/FormField.svelte.d.ts +1 -1
- package/dist/primitives/Input/Input.svelte.d.ts +1 -1
- package/dist/primitives/Input/index.d.ts +3 -3
- package/dist/primitives/Input/index.js +1 -1
- package/dist/primitives/Input/input.variants.d.ts +2 -2
- package/dist/primitives/Input/input.variants.js +7 -3
- package/dist/primitives/Menu/Menu.svelte +43 -12
- package/dist/primitives/Menu/Menu.svelte.d.ts +1 -1
- package/dist/primitives/Menu/MenuSubmenu.svelte.d.ts +1 -1
- package/dist/primitives/Menu/index.d.ts +8 -8
- package/dist/primitives/Menu/index.js +1 -1
- package/dist/primitives/Menu/menu.context.d.ts +4 -4
- package/dist/primitives/Menu/menu.context.js +1 -1
- package/dist/primitives/Menu/menu.variants.d.ts +3 -3
- package/dist/primitives/Menu/menu.variants.js +1 -1
- package/dist/primitives/Pagination/Pagination.svelte.d.ts +1 -1
- package/dist/primitives/Pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/primitives/Pagination/index.d.ts +4 -4
- package/dist/primitives/Pagination/index.js +1 -1
- package/dist/primitives/Pagination/pagination.variants.d.ts +2 -2
- package/dist/primitives/Pagination/pagination.variants.js +1 -1
- package/dist/primitives/Popover/Popover.svelte +14 -12
- package/dist/primitives/Popover/Popover.svelte.d.ts +1 -1
- package/dist/primitives/Popover/index.d.ts +3 -3
- package/dist/primitives/Popover/index.js +1 -1
- package/dist/primitives/Popover/popover.variants.d.ts +2 -2
- package/dist/primitives/Popover/popover.variants.js +1 -1
- package/dist/primitives/Progress/Progress.svelte.d.ts +1 -1
- package/dist/primitives/Progress/index.d.ts +2 -2
- package/dist/primitives/Progress/index.js +1 -1
- package/dist/primitives/Progress/progress.variants.d.ts +2 -2
- package/dist/primitives/Progress/progress.variants.js +1 -1
- package/dist/primitives/RadioGroup/RadioGroup.svelte.d.ts +1 -1
- package/dist/primitives/RadioGroup/RadioItem.svelte.d.ts +1 -1
- package/dist/primitives/RadioGroup/index.d.ts +4 -4
- package/dist/primitives/RadioGroup/index.js +1 -1
- package/dist/primitives/RadioGroup/radioGroup.context.d.ts +1 -1
- package/dist/primitives/RadioGroup/radioGroup.variants.d.ts +3 -3
- package/dist/primitives/RadioGroup/radioGroup.variants.js +1 -1
- package/dist/primitives/SegmentGroup/SegmentGroup.svelte +67 -0
- package/dist/primitives/SegmentGroup/SegmentGroup.svelte.d.ts +1 -1
- package/dist/primitives/SegmentGroup/SegmentItem.svelte.d.ts +1 -1
- package/dist/primitives/SegmentGroup/index.d.ts +14 -4
- package/dist/primitives/SegmentGroup/index.js +1 -1
- package/dist/primitives/SegmentGroup/segmentGroup.context.d.ts +1 -1
- package/dist/primitives/SegmentGroup/segmentgroup.variants.d.ts +2 -2
- package/dist/primitives/SegmentGroup/segmentgroup.variants.js +16 -2
- package/dist/primitives/Select/Select.svelte +61 -40
- package/dist/primitives/Select/Select.svelte.d.ts +1 -1
- package/dist/primitives/Select/index.d.ts +3 -3
- package/dist/primitives/Select/index.js +1 -1
- package/dist/primitives/Select/select.variants.d.ts +2 -2
- package/dist/primitives/Select/select.variants.js +1 -1
- package/dist/primitives/Separator/Separator.svelte.d.ts +1 -1
- package/dist/primitives/Separator/index.d.ts +2 -2
- package/dist/primitives/Separator/index.js +1 -1
- package/dist/primitives/Separator/separator.variants.d.ts +2 -2
- package/dist/primitives/Separator/separator.variants.js +1 -1
- package/dist/primitives/Sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/primitives/Sidebar/index.d.ts +2 -2
- package/dist/primitives/Sidebar/index.js +1 -1
- package/dist/primitives/Sidebar/sidebar.variants.d.ts +2 -2
- package/dist/primitives/Sidebar/sidebar.variants.js +1 -1
- package/dist/primitives/Skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/primitives/Skeleton/index.d.ts +2 -2
- package/dist/primitives/Skeleton/index.js +1 -1
- package/dist/primitives/Skeleton/skeleton.variants.d.ts +2 -2
- package/dist/primitives/Skeleton/skeleton.variants.js +1 -1
- package/dist/primitives/Slider/Slider.svelte.d.ts +1 -1
- package/dist/primitives/Slider/index.d.ts +3 -3
- package/dist/primitives/Slider/index.js +1 -1
- package/dist/primitives/Slider/slider.variants.d.ts +2 -2
- package/dist/primitives/Slider/slider.variants.js +1 -1
- package/dist/primitives/Spinner/Spinner.svelte.d.ts +1 -1
- package/dist/primitives/Spinner/index.d.ts +2 -2
- package/dist/primitives/Spinner/index.js +1 -1
- package/dist/primitives/Spinner/spinner.variants.d.ts +2 -2
- package/dist/primitives/Spinner/spinner.variants.js +1 -1
- package/dist/primitives/Stepper/Stepper.svelte.d.ts +1 -1
- package/dist/primitives/Stepper/StepperStep.svelte.d.ts +1 -1
- package/dist/primitives/Stepper/index.d.ts +3 -3
- package/dist/primitives/Stepper/index.js +1 -1
- package/dist/primitives/Stepper/stepper.context.d.ts +1 -1
- package/dist/primitives/Stepper/stepper.variants.d.ts +2 -2
- package/dist/primitives/Stepper/stepper.variants.js +1 -1
- package/dist/primitives/Tab/Tab.svelte.d.ts +1 -1
- package/dist/primitives/Tab/TabItem.svelte.d.ts +1 -1
- package/dist/primitives/Tab/TabPanel.svelte.d.ts +1 -1
- package/dist/primitives/Tab/index.d.ts +4 -4
- package/dist/primitives/Tab/index.js +1 -1
- package/dist/primitives/Tab/tab.context.d.ts +1 -1
- package/dist/primitives/Tab/tab.variants.d.ts +2 -2
- package/dist/primitives/Tab/tab.variants.js +1 -1
- package/dist/primitives/Textarea/Textarea.svelte.d.ts +1 -1
- package/dist/primitives/Textarea/index.d.ts +3 -3
- package/dist/primitives/Textarea/index.js +1 -1
- package/dist/primitives/Textarea/textarea.variants.d.ts +2 -2
- package/dist/primitives/Textarea/textarea.variants.js +4 -2
- package/dist/primitives/Toast/Toaster.svelte.d.ts +1 -1
- package/dist/primitives/Toast/index.d.ts +3 -3
- package/dist/primitives/Toast/index.js +2 -2
- package/dist/primitives/Toast/toast.store.svelte.d.ts +2 -2
- package/dist/primitives/Toast/toast.variants.d.ts +2 -2
- package/dist/primitives/Toast/toast.variants.js +1 -1
- package/dist/primitives/Toggle/Toggle.svelte.d.ts +1 -1
- package/dist/primitives/Toggle/index.d.ts +4 -4
- package/dist/primitives/Toggle/index.js +1 -1
- package/dist/primitives/Toggle/toggle.variants.d.ts +2 -2
- package/dist/primitives/Toggle/toggle.variants.js +1 -1
- package/dist/primitives/Toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/primitives/Toolbar/index.d.ts +3 -3
- package/dist/primitives/Toolbar/index.js +1 -1
- package/dist/primitives/Toolbar/toolbar.variants.d.ts +2 -2
- package/dist/primitives/Toolbar/toolbar.variants.js +1 -1
- package/dist/primitives/Tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/primitives/Tooltip/index.d.ts +4 -4
- package/dist/primitives/Tooltip/index.js +1 -1
- package/dist/primitives/Tooltip/tooltip.variants.d.ts +2 -2
- package/dist/primitives/Tooltip/tooltip.variants.js +1 -1
- package/dist/primitives/index.d.ts +70 -70
- package/dist/primitives/index.js +36 -36
- package/dist/provider/BlocksProvider.svelte.d.ts +1 -1
- package/dist/provider/blocks-context.js +2 -2
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.js +1 -1
- package/dist/translations/de.d.ts +1 -0
- package/dist/translations/de.js +1 -0
- package/dist/translations/en.d.ts +1 -0
- package/dist/translations/en.js +1 -0
- package/dist/types/index.d.ts +14 -14
- package/dist/types/index.js +14 -14
- package/dist/utils/guide.svelte.d.ts +1 -1
- package/dist/utils/guide.svelte.js +1 -1
- package/dist/utils/index.d.ts +16 -16
- package/dist/utils/index.js +16 -16
- package/dist/utils/tier-context.js +1 -1
- package/dist/utils/types.d.ts +1 -1
- package/dist/utils/use-floating-listbox.svelte.js +1 -1
- package/dist/utils/use-form-field.svelte.d.ts +1 -1
- package/dist/utils/use-form-field.svelte.js +1 -1
- package/package.json +13 -12
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Progress } from './Progress.svelte';
|
|
2
|
-
export { progressVariants } from './progress.variants';
|
|
2
|
+
export { progressVariants } from './progress.variants.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type SlotNames, type VariantProps } from '../../utils/variants';
|
|
2
|
-
export declare const progressVariants: (props?: import("../../utils/variants").TVProps<{
|
|
1
|
+
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
|
+
export declare const progressVariants: (props?: import("../../utils/variants.js").TVProps<{
|
|
3
3
|
intent: {
|
|
4
4
|
primary: {
|
|
5
5
|
fill: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
import type { HTMLAttributes, HTMLInputAttributes } from 'svelte/elements';
|
|
3
|
-
import type { MintProp } from '../../mint';
|
|
4
|
-
import type { InteractiveTier } from '../../utils';
|
|
5
|
-
import type { RadioGroupSlots, RadioItemSlots, RadioItemVariants } from './radioGroup.variants';
|
|
3
|
+
import type { MintProp } from '../../mint/index.js';
|
|
4
|
+
import type { InteractiveTier } from '../../utils/index.js';
|
|
5
|
+
import type { RadioGroupSlots, RadioItemSlots, RadioItemVariants } from './radioGroup.variants.js';
|
|
6
6
|
/**
|
|
7
7
|
* @description Accessible radio group for single-option selection with semantic intents and form integration.
|
|
8
8
|
* Uses native radio inputs for correct form behavior and ARIA semantics with keyboard navigation.
|
|
@@ -123,4 +123,4 @@ export interface RadioItemProps extends Omit<HTMLInputAttributes, 'type' | 'size
|
|
|
123
123
|
}
|
|
124
124
|
export { default as RadioGroup } from './RadioGroup.svelte';
|
|
125
125
|
export { default as RadioItem } from './RadioItem.svelte';
|
|
126
|
-
export { type RadioGroupVariants, type RadioItemVariants, radioGroupVariants, radioItemVariants } from './radioGroup.variants';
|
|
126
|
+
export { type RadioGroupVariants, type RadioItemVariants, radioGroupVariants, radioItemVariants } from './radioGroup.variants.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as RadioGroup } from './RadioGroup.svelte';
|
|
2
2
|
export { default as RadioItem } from './RadioItem.svelte';
|
|
3
|
-
export { radioGroupVariants, radioItemVariants } from './radioGroup.variants';
|
|
3
|
+
export { radioGroupVariants, radioItemVariants } from './radioGroup.variants.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { RadioGroupContext } from './index';
|
|
1
|
+
import type { RadioGroupContext } from './index.js';
|
|
2
2
|
declare const getRadioGroupContext: () => RadioGroupContext, setRadioGroupContext: (context: RadioGroupContext) => RadioGroupContext;
|
|
3
3
|
export { getRadioGroupContext, setRadioGroupContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type SlotNames, type VariantProps } from '../../utils/variants';
|
|
2
|
-
export declare const radioGroupVariants: (props?: import("../../utils/variants").TVProps<{
|
|
1
|
+
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
|
+
export declare const radioGroupVariants: (props?: import("../../utils/variants.js").TVProps<{
|
|
3
3
|
orientation: {
|
|
4
4
|
horizontal: {
|
|
5
5
|
group: string;
|
|
@@ -59,7 +59,7 @@ export declare const radioGroupVariants: (props?: import("../../utils/variants")
|
|
|
59
59
|
className?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
60
60
|
}) | undefined) => string;
|
|
61
61
|
};
|
|
62
|
-
export declare const radioItemVariants: (props?: import("../../utils/variants").TVProps<{
|
|
62
|
+
export declare const radioItemVariants: (props?: import("../../utils/variants.js").TVProps<{
|
|
63
63
|
tier: {
|
|
64
64
|
commit: {
|
|
65
65
|
indicator: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { untrack } from 'svelte';
|
|
2
3
|
import { SvelteMap } from 'svelte/reactivity';
|
|
3
4
|
import { getBlocksConfig, resolveSlotClasses } from '../../provider';
|
|
4
5
|
import { getTierContext } from '../../utils';
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
slotClasses: slotClassesProp = {},
|
|
22
23
|
preset,
|
|
23
24
|
ariaLabel,
|
|
25
|
+
collapseOnOverflow = true,
|
|
24
26
|
...restProps
|
|
25
27
|
}: SegmentGroupProps = $props();
|
|
26
28
|
|
|
@@ -35,6 +37,15 @@
|
|
|
35
37
|
|
|
36
38
|
let containerElement = $state<HTMLDivElement>();
|
|
37
39
|
let indicatorStyle = $state('opacity: 0;');
|
|
40
|
+
// Content-aware overflow degradation: when the horizontal track can't fit its
|
|
41
|
+
// available width, collapse to a vertical radio-style stack. `collapsed`
|
|
42
|
+
// drives the `data-collapsed` attribute (CSS does the layout switch).
|
|
43
|
+
let collapsed = $state(false);
|
|
44
|
+
// Horizontal content width recorded at the moment we collapse, used as the
|
|
45
|
+
// hysteresis threshold to expand back. Without it the check would oscillate:
|
|
46
|
+
// once vertical the track no longer overflows horizontally, so a naive
|
|
47
|
+
// re-measure would immediately switch back to horizontal and overflow again.
|
|
48
|
+
let naturalWidth = 0;
|
|
38
49
|
// SvelteMap instead of `$state(new Map())` — `.set()`/`.delete()` must be
|
|
39
50
|
// reactive so the indicator updates when new items register.
|
|
40
51
|
const registeredItems = new SvelteMap<string, HTMLElement>();
|
|
@@ -121,9 +132,63 @@
|
|
|
121
132
|
|
|
122
133
|
$effect(() => {
|
|
123
134
|
void value;
|
|
135
|
+
// Reposition the indicator when the layout flips orientation — the active
|
|
136
|
+
// item's box moves from a horizontal slot to a full-width row.
|
|
137
|
+
void collapsed;
|
|
124
138
|
requestAnimationFrame(updateIndicator);
|
|
125
139
|
});
|
|
126
140
|
|
|
141
|
+
// Detects whether the horizontal track fits its available width. Reads
|
|
142
|
+
// layout, so it runs from the ResizeObserver callback rather than a reactive
|
|
143
|
+
// effect. The +1 tolerance + recorded `naturalWidth` give it hysteresis so it
|
|
144
|
+
// settles instead of flip-flopping at the boundary.
|
|
145
|
+
//
|
|
146
|
+
// We measure the items' own geometry rather than `el.scrollWidth`: the track
|
|
147
|
+
// is `overflow-x-clip`, which is NOT a scroll container, and Chromium/WebKit
|
|
148
|
+
// clamp `scrollWidth` to `clientWidth` for clip boxes (so the old scrollWidth
|
|
149
|
+
// check silently never fired off Firefox). `getBoundingClientRect()` reports
|
|
150
|
+
// true layout positions regardless of clipping.
|
|
151
|
+
function measureOverflow() {
|
|
152
|
+
const el = containerElement;
|
|
153
|
+
if (!el || el.clientWidth === 0 || registeredItems.size === 0) return;
|
|
154
|
+
if (!collapsed) {
|
|
155
|
+
let minLeft = Infinity;
|
|
156
|
+
let maxRight = -Infinity;
|
|
157
|
+
for (const item of registeredItems.values()) {
|
|
158
|
+
const r = item.getBoundingClientRect();
|
|
159
|
+
if (r.width === 0 && r.height === 0) continue; // not laid out yet
|
|
160
|
+
minLeft = Math.min(minLeft, r.left);
|
|
161
|
+
maxRight = Math.max(maxRight, r.right);
|
|
162
|
+
}
|
|
163
|
+
if (maxRight === -Infinity) return;
|
|
164
|
+
const cs = getComputedStyle(el);
|
|
165
|
+
const padX = (parseFloat(cs.paddingLeft) || 0) + (parseFloat(cs.paddingRight) || 0);
|
|
166
|
+
const contentWidth = maxRight - minLeft;
|
|
167
|
+
// Overflow when the items can't fit the content box (clientWidth − padding).
|
|
168
|
+
if (contentWidth > el.clientWidth - padX + 1) {
|
|
169
|
+
// Min box width that fits the horizontal track again (used as the
|
|
170
|
+
// expand-back threshold while collapsed, where the items are stacked
|
|
171
|
+
// and can no longer be measured horizontally).
|
|
172
|
+
naturalWidth = contentWidth + padX;
|
|
173
|
+
collapsed = true;
|
|
174
|
+
}
|
|
175
|
+
} else if (naturalWidth > 0 && el.clientWidth >= naturalWidth) {
|
|
176
|
+
collapsed = false;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
$effect(() => {
|
|
181
|
+
if (!collapseOnOverflow || !containerElement) return;
|
|
182
|
+
const el = containerElement;
|
|
183
|
+
const ro = new ResizeObserver(() => measureOverflow());
|
|
184
|
+
ro.observe(el);
|
|
185
|
+
// `untrack` so the synchronous first measure doesn't make `collapsed` a
|
|
186
|
+
// dependency of this effect (which would tear down + rebuild the observer
|
|
187
|
+
// on every collapse toggle).
|
|
188
|
+
untrack(() => measureOverflow());
|
|
189
|
+
return () => ro.disconnect();
|
|
190
|
+
});
|
|
191
|
+
|
|
127
192
|
function handleKeyDown(event: KeyboardEvent) {
|
|
128
193
|
if (disabled) return;
|
|
129
194
|
|
|
@@ -165,6 +230,8 @@
|
|
|
165
230
|
<div
|
|
166
231
|
bind:this={containerElement}
|
|
167
232
|
role="radiogroup"
|
|
233
|
+
data-collapsed={collapsed || undefined}
|
|
234
|
+
aria-orientation={collapsed ? 'vertical' : 'horizontal'}
|
|
168
235
|
class={unstyled
|
|
169
236
|
? [slotClasses?.base, className].filter(Boolean).join(' ')
|
|
170
237
|
: styles.base({ class: [slotClasses?.base, className] })}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SegmentGroupProps } from './index';
|
|
1
|
+
import type { SegmentGroupProps } from './index.js';
|
|
2
2
|
declare const SegmentGroup: import("svelte").Component<SegmentGroupProps, {}, "value">;
|
|
3
3
|
type SegmentGroup = ReturnType<typeof SegmentGroup>;
|
|
4
4
|
export default SegmentGroup;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
import type { HTMLAttributes, HTMLButtonAttributes } from 'svelte/elements';
|
|
3
|
-
import type { MintProp } from '../../mint';
|
|
4
|
-
import type { InteractiveTier } from '../../utils';
|
|
5
|
-
import type { SegmentGroupSlots, SegmentGroupVariants } from './segmentgroup.variants';
|
|
3
|
+
import type { MintProp } from '../../mint/index.js';
|
|
4
|
+
import type { InteractiveTier } from '../../utils/index.js';
|
|
5
|
+
import type { SegmentGroupSlots, SegmentGroupVariants } from './segmentgroup.variants.js';
|
|
6
6
|
/**
|
|
7
7
|
* Reactive context exposed to child SegmentItem components.
|
|
8
8
|
*/
|
|
@@ -59,6 +59,16 @@ export interface SegmentGroupProps extends SegmentGroupVariants, Omit<HTMLAttrib
|
|
|
59
59
|
preset?: string;
|
|
60
60
|
/** Accessible label for the segment group. */
|
|
61
61
|
ariaLabel?: string;
|
|
62
|
+
/**
|
|
63
|
+
* When the segments can't fit their available width, collapse the horizontal
|
|
64
|
+
* track to a vertical radio-style stack (all options stay visible) instead of
|
|
65
|
+
* overflowing. Triggered by real measured overflow (ResizeObserver), not a
|
|
66
|
+
* viewport breakpoint, so it only engages when an instance genuinely doesn't
|
|
67
|
+
* fit — a 2-segment switcher that fits stays horizontal. Set `false` to keep
|
|
68
|
+
* the track horizontal (it still won't push the page wider than its parent).
|
|
69
|
+
* @default true
|
|
70
|
+
*/
|
|
71
|
+
collapseOnOverflow?: boolean;
|
|
62
72
|
/**
|
|
63
73
|
* Micro-interaction effect applied to each segment item (per-item, not the container).
|
|
64
74
|
* Accepts a preset name, an array of names, or configured mint objects.
|
|
@@ -104,4 +114,4 @@ export interface SegmentItemProps extends Omit<HTMLButtonAttributes, 'children'>
|
|
|
104
114
|
}
|
|
105
115
|
export { default as SegmentGroup } from './SegmentGroup.svelte';
|
|
106
116
|
export { default as SegmentItem } from './SegmentItem.svelte';
|
|
107
|
-
export { type SegmentGroupVariants, segmentGroupVariants } from './segmentgroup.variants';
|
|
117
|
+
export { type SegmentGroupVariants, segmentGroupVariants } from './segmentgroup.variants.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { SegmentGroupContext } from './index';
|
|
1
|
+
import type { SegmentGroupContext } from './index.js';
|
|
2
2
|
declare const getSegmentGroupContext: () => SegmentGroupContext, setSegmentGroupContext: (context: SegmentGroupContext) => SegmentGroupContext;
|
|
3
3
|
export { getSegmentGroupContext, setSegmentGroupContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type SlotNames, type VariantProps } from '../../utils/variants';
|
|
2
|
-
export declare const segmentGroupVariants: (props?: import("../../utils/variants").TVProps<{
|
|
1
|
+
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
|
+
export declare const segmentGroupVariants: (props?: import("../../utils/variants.js").TVProps<{
|
|
3
3
|
tier: {
|
|
4
4
|
commit: {
|
|
5
5
|
base: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '../../utils/variants';
|
|
1
|
+
import { tv } from '../../utils/variants.js';
|
|
2
2
|
export const segmentGroupVariants = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
// Geometry tier moves to the `tier` variant below. The SegmentGroup is
|
|
@@ -6,7 +6,18 @@ export const segmentGroupVariants = tv({
|
|
|
6
6
|
// `commit` mirrors that. `modify` softens the track + indicator into a
|
|
7
7
|
// compact rectangle for inline-toolbar contexts.
|
|
8
8
|
base: [
|
|
9
|
-
|
|
9
|
+
// `group` + `data-[collapsed]` drive the content-aware degradation below.
|
|
10
|
+
// `min-w-0 max-w-full` let the track shrink inside a flex/narrow parent
|
|
11
|
+
// instead of pushing the page wide; `overflow-x-clip` (with a clip-margin
|
|
12
|
+
// so focus rings aren't cut) contains any horizontal overflow until the
|
|
13
|
+
// ResizeObserver flips to the vertical stack.
|
|
14
|
+
'group relative inline-flex items-center',
|
|
15
|
+
'min-w-0 max-w-full overflow-x-clip [overflow-clip-margin:0.5rem]',
|
|
16
|
+
// Collapsed = real horizontal overflow detected → vertical radio-style
|
|
17
|
+
// stack (all options visible, large tap targets). SegmentGroup is already
|
|
18
|
+
// role=radiogroup, so this is layout-only; the 2D indicator follows the
|
|
19
|
+
// active row.
|
|
20
|
+
'data-[collapsed]:flex-col data-[collapsed]:items-stretch data-[collapsed]:w-full data-[collapsed]:overflow-visible',
|
|
10
21
|
'bg-surface-interactive p-1',
|
|
11
22
|
'transition-colors duration-[var(--blocks-duration-fast)]'
|
|
12
23
|
],
|
|
@@ -17,6 +28,9 @@ export const segmentGroupVariants = tv({
|
|
|
17
28
|
],
|
|
18
29
|
item: [
|
|
19
30
|
'relative z-10 flex items-center justify-center',
|
|
31
|
+
// In the collapsed (vertical) layout each item becomes a full-width,
|
|
32
|
+
// left-aligned row — see the `data-[collapsed]` block on `base`.
|
|
33
|
+
'group-data-[collapsed]:w-full group-data-[collapsed]:justify-start',
|
|
20
34
|
'font-medium whitespace-nowrap cursor-pointer select-none',
|
|
21
35
|
// `border-0` (not `border-none`) — keeps `border-style: solid` so the
|
|
22
36
|
// text-appearance can add `border-b-[1.5px]` without a style conflict.
|
|
@@ -109,6 +109,10 @@
|
|
|
109
109
|
}));
|
|
110
110
|
|
|
111
111
|
let activeIndex = $state(-1);
|
|
112
|
+
// Tracks whether the most recent open was keyboard-driven, so the initial
|
|
113
|
+
// active-option highlight only defaults to the first row for keyboard users.
|
|
114
|
+
// Plain `let`: read in the open effect, intentionally not a reactive dep.
|
|
115
|
+
let openedViaKeyboard = false;
|
|
112
116
|
let triggerRef = $state<HTMLElement>();
|
|
113
117
|
let listboxRef = $state<HTMLDivElement>();
|
|
114
118
|
|
|
@@ -205,15 +209,23 @@
|
|
|
205
209
|
}
|
|
206
210
|
});
|
|
207
211
|
|
|
212
|
+
// Initial active-option highlight when the listbox opens. Where the virtual
|
|
213
|
+
// cursor starts:
|
|
214
|
+
// • the selected option, if any — shows the user where they are
|
|
215
|
+
// • else the first option ONLY on keyboard-open — gives arrows a starting
|
|
216
|
+
// point and matches the keyboard expectation of a focused first row
|
|
217
|
+
// • else nothing (-1) on pointer-open — avoids the "first element always
|
|
218
|
+
// marked" phantom highlight; the first ArrowDown then moves to row 0.
|
|
219
|
+
// The `activeIndex >= 0` guard preserves an in-progress cursor so multi-
|
|
220
|
+
// select (listbox stays open across picks) doesn't reset on every toggle.
|
|
208
221
|
$effect(() => {
|
|
209
|
-
if (open
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
222
|
+
if (!open || !listboxRef) return;
|
|
223
|
+
if (activeIndex >= 0) return;
|
|
224
|
+
let next = -1;
|
|
225
|
+
const selectedIdx = multiple ? -1 : enabledOptions.findIndex((o) => o.value === value);
|
|
226
|
+
if (selectedIdx >= 0) next = selectedIdx;
|
|
227
|
+
else if (openedViaKeyboard) next = 0;
|
|
228
|
+
activeIndex = next;
|
|
217
229
|
});
|
|
218
230
|
|
|
219
231
|
useFloatingListbox({
|
|
@@ -226,6 +238,9 @@
|
|
|
226
238
|
|
|
227
239
|
function toggle() {
|
|
228
240
|
if (disabled) return;
|
|
241
|
+
// Pointer-driven open (trigger onclick). Mark modality so the open effect
|
|
242
|
+
// doesn't pre-highlight the first row for a mouse/touch user.
|
|
243
|
+
if (!open) openedViaKeyboard = false;
|
|
229
244
|
open = !open;
|
|
230
245
|
if (!open) activeIndex = -1;
|
|
231
246
|
}
|
|
@@ -277,7 +292,7 @@
|
|
|
277
292
|
|
|
278
293
|
// Focus-restoration policy follows the ARIA Listbox/Button pattern:
|
|
279
294
|
// • selection → focus returns to the trigger button (`selectOption`)
|
|
280
|
-
// • Escape → focus returns to the trigger button (
|
|
295
|
+
// • Escape → focus returns to the trigger button (handleTriggerKeydown)
|
|
281
296
|
// • Tab → focus moves naturally to the next tab stop (no restore)
|
|
282
297
|
// • outside → focus stays where the user clicked (no restore — user
|
|
283
298
|
// explicitly intent to focus elsewhere)
|
|
@@ -289,64 +304,71 @@
|
|
|
289
304
|
return true;
|
|
290
305
|
}
|
|
291
306
|
|
|
307
|
+
// Single keyboard model, attached to the trigger (the focused element). The
|
|
308
|
+
// ARIA listbox pattern keeps DOM focus on the trigger and moves a virtual
|
|
309
|
+
// cursor via `aria-activedescendant`, so the listbox element never receives
|
|
310
|
+
// key events — every key is handled here, branching on `open`.
|
|
311
|
+
//
|
|
312
|
+
// (Previously a second handler lived on the listbox `div`; since focus never
|
|
313
|
+
// entered it, arrows were preventDefault'd but never advanced the cursor —
|
|
314
|
+
// the "keyboard does nothing / fights the page" report. Consolidated here.)
|
|
292
315
|
function handleTriggerKeydown(event: KeyboardEvent) {
|
|
293
316
|
if (disabled) return;
|
|
294
317
|
|
|
295
318
|
switch (event.key) {
|
|
296
|
-
case 'Enter':
|
|
297
|
-
case ' ':
|
|
298
319
|
case 'ArrowDown':
|
|
299
320
|
event.preventDefault();
|
|
300
|
-
if (!open)
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
break;
|
|
306
|
-
case 'Escape':
|
|
307
|
-
if (open && dismissByEscape()) {
|
|
308
|
-
event.preventDefault();
|
|
321
|
+
if (!open) {
|
|
322
|
+
openedViaKeyboard = true;
|
|
323
|
+
open = true;
|
|
324
|
+
} else {
|
|
325
|
+
activeIndex = activeIndex < enabledOptions.length - 1 ? activeIndex + 1 : 0;
|
|
309
326
|
}
|
|
310
327
|
break;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
function handleListboxKeydown(event: KeyboardEvent) {
|
|
315
|
-
switch (event.key) {
|
|
316
|
-
case 'ArrowDown':
|
|
317
|
-
event.preventDefault();
|
|
318
|
-
activeIndex = activeIndex < enabledOptions.length - 1 ? activeIndex + 1 : 0;
|
|
319
|
-
break;
|
|
320
328
|
case 'ArrowUp':
|
|
321
329
|
event.preventDefault();
|
|
322
|
-
|
|
330
|
+
if (!open) {
|
|
331
|
+
openedViaKeyboard = true;
|
|
332
|
+
open = true;
|
|
333
|
+
} else {
|
|
334
|
+
activeIndex = activeIndex > 0 ? activeIndex - 1 : enabledOptions.length - 1;
|
|
335
|
+
}
|
|
323
336
|
break;
|
|
324
337
|
case 'Enter':
|
|
325
338
|
case ' ':
|
|
326
339
|
event.preventDefault();
|
|
327
|
-
if (
|
|
340
|
+
if (!open) {
|
|
341
|
+
openedViaKeyboard = true;
|
|
342
|
+
open = true;
|
|
343
|
+
} else if (activeIndex >= 0 && activeIndex < enabledOptions.length) {
|
|
328
344
|
selectOption(enabledOptions[activeIndex]);
|
|
329
345
|
}
|
|
330
346
|
break;
|
|
331
347
|
case 'Escape':
|
|
332
|
-
if (dismissByEscape()) {
|
|
348
|
+
if (open && dismissByEscape()) {
|
|
333
349
|
event.preventDefault();
|
|
334
350
|
focusTrigger();
|
|
335
351
|
}
|
|
336
352
|
break;
|
|
337
353
|
case 'Tab':
|
|
338
|
-
// Tab
|
|
354
|
+
// Tab leaves the widget — close (focus moves on via the default tab),
|
|
339
355
|
// independent of closeOnEscape/closeOnClickOutside.
|
|
340
|
-
open
|
|
341
|
-
|
|
356
|
+
if (open) {
|
|
357
|
+
open = false;
|
|
358
|
+
activeIndex = -1;
|
|
359
|
+
}
|
|
342
360
|
break;
|
|
343
361
|
case 'Home':
|
|
344
|
-
|
|
345
|
-
|
|
362
|
+
if (open) {
|
|
363
|
+
event.preventDefault();
|
|
364
|
+
activeIndex = 0;
|
|
365
|
+
}
|
|
346
366
|
break;
|
|
347
367
|
case 'End':
|
|
348
|
-
|
|
349
|
-
|
|
368
|
+
if (open) {
|
|
369
|
+
event.preventDefault();
|
|
370
|
+
activeIndex = enabledOptions.length - 1;
|
|
371
|
+
}
|
|
350
372
|
break;
|
|
351
373
|
}
|
|
352
374
|
}
|
|
@@ -512,7 +534,6 @@
|
|
|
512
534
|
? 'position: absolute; overflow-y: auto;'
|
|
513
535
|
: 'display: none; position: absolute; overflow-y: auto;'}
|
|
514
536
|
aria-labelledby={labelId}
|
|
515
|
-
onkeydown={handleListboxKeydown}
|
|
516
537
|
>
|
|
517
538
|
{#if open}
|
|
518
539
|
{#if groups}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
-
import type { MintProp } from '../../mint';
|
|
4
|
-
import type { SelectSlots, SelectVariants } from './select.variants';
|
|
3
|
+
import type { MintProp } from '../../mint/index.js';
|
|
4
|
+
import type { SelectSlots, SelectVariants } from './select.variants.js';
|
|
5
5
|
/**
|
|
6
6
|
* Primitive value types accepted by Select / Combobox options.
|
|
7
7
|
* Strings are the default; numbers and booleans cover form fields
|
|
@@ -323,4 +323,4 @@ export interface SelectMultipleProps<T extends SelectValue = string> extends Sel
|
|
|
323
323
|
*/
|
|
324
324
|
export type SelectProps<T extends SelectValue = string> = SelectSingleProps<T> | SelectMultipleProps<T>;
|
|
325
325
|
export { default as Select } from './Select.svelte';
|
|
326
|
-
export { type SelectVariants, selectVariants } from './select.variants';
|
|
326
|
+
export { type SelectVariants, selectVariants } from './select.variants.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Select } from './Select.svelte';
|
|
2
|
-
export { selectVariants } from './select.variants';
|
|
2
|
+
export { selectVariants } from './select.variants.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type SlotNames, type VariantProps } from '../../utils/variants';
|
|
2
|
-
export declare const selectVariants: (props?: import("../../utils/variants").TVProps<{
|
|
1
|
+
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
|
+
export declare const selectVariants: (props?: import("../../utils/variants.js").TVProps<{
|
|
3
3
|
tier: {
|
|
4
4
|
modify: {
|
|
5
5
|
trigger: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import type { SeparatorVariants } from './separator.variants';
|
|
2
|
+
import type { SeparatorVariants } from './separator.variants.js';
|
|
3
3
|
/**
|
|
4
4
|
* @description Visual divider for separating content sections. Supports horizontal and
|
|
5
5
|
* vertical orientations with proper ARIA semantics.
|
|
@@ -42,4 +42,4 @@ export interface SeparatorProps extends SeparatorVariants, Omit<HTMLAttributes<H
|
|
|
42
42
|
preset?: string;
|
|
43
43
|
}
|
|
44
44
|
export { default as Separator } from './Separator.svelte';
|
|
45
|
-
export { type SeparatorVariants, separatorVariants } from './separator.variants';
|
|
45
|
+
export { type SeparatorVariants, separatorVariants } from './separator.variants.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Separator } from './Separator.svelte';
|
|
2
|
-
export { separatorVariants } from './separator.variants';
|
|
2
|
+
export { separatorVariants } from './separator.variants.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VariantProps } from '../../utils/variants';
|
|
2
|
-
export declare const separatorVariants: (props?: import("../../utils/variants").TVProps<{
|
|
1
|
+
import { type VariantProps } from '../../utils/variants.js';
|
|
2
|
+
export declare const separatorVariants: (props?: import("../../utils/variants.js").TVProps<{
|
|
3
3
|
orientation: {
|
|
4
4
|
horizontal: string;
|
|
5
5
|
vertical: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '../../utils/variants';
|
|
1
|
+
import { tv } from '../../utils/variants.js';
|
|
2
2
|
// Separator is a purely visual primitive. Spacing belongs to the surrounding
|
|
3
3
|
// layout (flex/grid gap, `space-y-*`, `space-x-*`) — not to the separator
|
|
4
4
|
// itself. Pre-v1.0 we dropped the built-in margins that forced consumers to
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
-
import type { SidebarSlots, SidebarVariants } from './sidebar.variants';
|
|
3
|
+
import type { SidebarSlots, SidebarVariants } from './sidebar.variants.js';
|
|
4
4
|
/**
|
|
5
5
|
* @description Sidebar primitive — fixed-position panel that is permanent on
|
|
6
6
|
* desktop (≥1024px) and slides in as a backdropped overlay on mobile. Use
|
|
@@ -98,4 +98,4 @@ export interface SidebarProps extends Omit<HTMLAttributes<HTMLElement>, 'childre
|
|
|
98
98
|
preset?: string;
|
|
99
99
|
}
|
|
100
100
|
export { default as Sidebar } from './Sidebar.svelte';
|
|
101
|
-
export { type SidebarVariants, sidebarVariants } from './sidebar.variants';
|
|
101
|
+
export { type SidebarVariants, sidebarVariants } from './sidebar.variants.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Sidebar } from './Sidebar.svelte';
|
|
2
|
-
export { sidebarVariants } from './sidebar.variants';
|
|
2
|
+
export { sidebarVariants } from './sidebar.variants.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type SlotNames, type VariantProps } from '../../utils/variants';
|
|
2
|
-
export declare const sidebarVariants: (props?: import("../../utils/variants").TVProps<{
|
|
1
|
+
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
|
+
export declare const sidebarVariants: (props?: import("../../utils/variants.js").TVProps<{
|
|
3
3
|
side: {
|
|
4
4
|
left: {
|
|
5
5
|
panel: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import type { SkeletonSlots, SkeletonVariants } from './skeleton.variants';
|
|
2
|
+
import type { SkeletonSlots, SkeletonVariants } from './skeleton.variants.js';
|
|
3
3
|
/**
|
|
4
4
|
* @description Placeholder loading animation that mimics content layout.
|
|
5
5
|
* Use to reduce perceived loading time and prevent layout shift.
|
|
@@ -60,4 +60,4 @@ export interface SkeletonProps extends SkeletonVariants, HTMLAttributes<HTMLDivE
|
|
|
60
60
|
preset?: string;
|
|
61
61
|
}
|
|
62
62
|
export { default as Skeleton } from './Skeleton.svelte';
|
|
63
|
-
export { type SkeletonVariants, skeletonVariants } from './skeleton.variants';
|
|
63
|
+
export { type SkeletonVariants, skeletonVariants } from './skeleton.variants.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Skeleton } from './Skeleton.svelte';
|
|
2
|
-
export { skeletonVariants } from './skeleton.variants';
|
|
2
|
+
export { skeletonVariants } from './skeleton.variants.js';
|