@urbicon-ui/blocks 6.2.0 → 6.3.3
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 +2 -6
- 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 +2 -6
- 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 +12 -10
- 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 +3 -2
- package/dist/components/Calendar/calendar.variants.js +1 -1
- package/dist/components/Calendar/index.d.ts +8 -8
- 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 +106 -39
- package/dist/components/CommandPalette/CommandPalette.svelte.d.ts +1 -1
- package/dist/components/CommandPalette/commandPalette.variants.d.ts +4 -8
- package/dist/components/CommandPalette/commandPalette.variants.js +1 -2
- package/dist/components/CommandPalette/index.d.ts +3 -3
- package/dist/components/CommandPalette/index.js +1 -1
- package/dist/components/CompositionBar/CompositionBar.svelte +12 -15
- package/dist/components/CompositionBar/CompositionBar.svelte.d.ts +1 -1
- package/dist/components/CompositionBar/composition-bar.variants.d.ts +4 -2
- package/dist/components/CompositionBar/composition-bar.variants.js +1 -1
- package/dist/components/CompositionBar/index.d.ts +4 -4
- 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 +2 -6
- 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 +8 -9
- package/dist/components/EmptyState/EmptyState.svelte.d.ts +1 -1
- package/dist/components/EmptyState/emptyState.variants.d.ts +4 -2
- package/dist/components/EmptyState/emptyState.variants.js +1 -1
- package/dist/components/EmptyState/index.d.ts +5 -5
- package/dist/components/EmptyState/index.js +1 -1
- package/dist/components/FileUpload/FileUpload.svelte +17 -17
- package/dist/components/FileUpload/FileUpload.svelte.d.ts +1 -1
- package/dist/components/FileUpload/fileUpload.variants.d.ts +4 -12
- package/dist/components/FileUpload/fileUpload.variants.js +1 -6
- package/dist/components/FileUpload/index.d.ts +6 -5
- package/dist/components/FileUpload/index.js +1 -1
- package/dist/components/Guide/Guide.svelte +5 -8
- package/dist/components/Guide/Guide.svelte.d.ts +1 -1
- package/dist/components/Guide/GuideArticle.svelte +5 -8
- package/dist/components/Guide/GuideArticle.svelte.d.ts +1 -1
- package/dist/components/Guide/GuideBeacon.svelte +5 -8
- package/dist/components/Guide/GuideBeacon.svelte.d.ts +1 -1
- package/dist/components/Guide/GuideHint.svelte +5 -8
- package/dist/components/Guide/GuideHint.svelte.d.ts +1 -1
- package/dist/components/Guide/GuideMarker.svelte +5 -8
- package/dist/components/Guide/GuideMarker.svelte.d.ts +1 -1
- package/dist/components/Guide/GuideMention.svelte +5 -8
- package/dist/components/Guide/GuideMention.svelte.d.ts +1 -1
- package/dist/components/Guide/GuidePanel.svelte +5 -8
- 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 +16 -8
- package/dist/components/Guide/guide.variants.js +1 -1
- package/dist/components/Guide/index.d.ts +14 -11
- package/dist/components/Guide/index.js +1 -1
- package/dist/components/LineChart/LineChart.svelte +2 -6
- 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 +7 -10
- package/dist/components/Planner/Planner.svelte.d.ts +1 -1
- package/dist/components/Planner/index.d.ts +7 -7
- 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 +4 -2
- package/dist/components/Planner/planner.variants.js +1 -1
- package/dist/components/Sankey/Sankey.svelte +8 -9
- package/dist/components/Sankey/Sankey.svelte.d.ts +1 -1
- package/dist/components/Sankey/index.d.ts +4 -4
- package/dist/components/Sankey/index.js +1 -1
- package/dist/components/Sankey/sankey.variants.d.ts +4 -2
- package/dist/components/Sankey/sankey.variants.js +1 -1
- package/dist/components/SidebarLayout/SidebarLayout.svelte +17 -17
- package/dist/components/SidebarLayout/SidebarLayout.svelte.d.ts +1 -1
- package/dist/components/SidebarLayout/index.d.ts +9 -3
- package/dist/components/SidebarLayout/index.js +1 -1
- package/dist/components/SidebarLayout/sidebar-layout.variants.d.ts +4 -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 +30 -38
- package/dist/components/ThemeSwitcher/ThemeSwitcher.svelte.d.ts +1 -1
- package/dist/components/ThemeSwitcher/index.d.ts +7 -5
- package/dist/components/ThemeSwitcher/index.js +1 -1
- package/dist/components/ThemeSwitcher/themeSwitcher.variants.d.ts +4 -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 +337 -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 +7 -9
- package/dist/primitives/Accordion/Accordion.svelte.d.ts +1 -1
- package/dist/primitives/Accordion/AccordionItem.svelte +8 -20
- 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 +4 -2
- package/dist/primitives/Accordion/accordion.variants.js +1 -1
- package/dist/primitives/Accordion/index.d.ts +7 -7
- package/dist/primitives/Accordion/index.js +1 -1
- package/dist/primitives/Alert/Alert.svelte +7 -21
- package/dist/primitives/Alert/Alert.svelte.d.ts +1 -1
- package/dist/primitives/Alert/alert.variants.d.ts +4 -2
- package/dist/primitives/Alert/alert.variants.js +1 -1
- package/dist/primitives/Alert/index.d.ts +4 -4
- package/dist/primitives/Alert/index.js +1 -1
- package/dist/primitives/Avatar/Avatar.svelte +17 -20
- package/dist/primitives/Avatar/Avatar.svelte.d.ts +1 -1
- package/dist/primitives/Avatar/avatar.variants.d.ts +4 -2
- package/dist/primitives/Avatar/avatar.variants.js +1 -1
- package/dist/primitives/Avatar/index.d.ts +5 -5
- package/dist/primitives/Avatar/index.js +1 -1
- package/dist/primitives/Badge/Badge.svelte +2 -2
- package/dist/primitives/Badge/Badge.svelte.d.ts +1 -1
- package/dist/primitives/Badge/badge.variants.d.ts +4 -2
- package/dist/primitives/Badge/badge.variants.js +1 -1
- package/dist/primitives/Badge/index.d.ts +4 -4
- package/dist/primitives/Badge/index.js +1 -1
- package/dist/primitives/Breadcrumb/Breadcrumb.svelte +30 -32
- package/dist/primitives/Breadcrumb/Breadcrumb.svelte.d.ts +1 -1
- package/dist/primitives/Breadcrumb/breadcrumb.variants.d.ts +4 -2
- package/dist/primitives/Breadcrumb/breadcrumb.variants.js +1 -1
- package/dist/primitives/Breadcrumb/index.d.ts +3 -3
- package/dist/primitives/Breadcrumb/index.js +1 -1
- package/dist/primitives/Button/Button.svelte +21 -21
- package/dist/primitives/Button/Button.svelte.d.ts +1 -1
- package/dist/primitives/Button/button.variants.d.ts +4 -2
- package/dist/primitives/Button/button.variants.js +1 -1
- package/dist/primitives/Button/index.d.ts +5 -5
- package/dist/primitives/Button/index.js +1 -1
- package/dist/primitives/ButtonGroup/ButtonGroup.svelte +15 -14
- 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 +4 -2
- package/dist/primitives/ButtonGroup/buttongroup.variants.js +1 -1
- package/dist/primitives/ButtonGroup/index.d.ts +7 -6
- package/dist/primitives/ButtonGroup/index.js +1 -1
- package/dist/primitives/Card/Card.svelte +15 -18
- package/dist/primitives/Card/Card.svelte.d.ts +1 -1
- package/dist/primitives/Card/card.variants.d.ts +4 -2
- package/dist/primitives/Card/card.variants.js +1 -1
- package/dist/primitives/Card/index.d.ts +5 -5
- package/dist/primitives/Card/index.js +1 -1
- package/dist/primitives/Checkbox/Checkbox.svelte +20 -20
- package/dist/primitives/Checkbox/Checkbox.svelte.d.ts +1 -1
- package/dist/primitives/Checkbox/checkbox.variants.d.ts +4 -2
- package/dist/primitives/Checkbox/checkbox.variants.js +1 -1
- package/dist/primitives/Checkbox/index.d.ts +10 -6
- package/dist/primitives/Checkbox/index.js +1 -1
- package/dist/primitives/Collapsible/Collapsible.svelte +30 -30
- package/dist/primitives/Collapsible/Collapsible.svelte.d.ts +1 -1
- package/dist/primitives/Collapsible/collapsible.variants.d.ts +4 -2
- package/dist/primitives/Collapsible/collapsible.variants.js +1 -1
- package/dist/primitives/Collapsible/index.d.ts +4 -4
- package/dist/primitives/Collapsible/index.js +1 -1
- package/dist/primitives/Combobox/Combobox.svelte +20 -31
- package/dist/primitives/Combobox/Combobox.svelte.d.ts +1 -1
- package/dist/primitives/Combobox/combobox.variants.d.ts +4 -2
- package/dist/primitives/Combobox/combobox.variants.js +1 -1
- package/dist/primitives/Combobox/index.d.ts +8 -6
- 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 +7 -10
- package/dist/primitives/Dialog/Dialog.svelte.d.ts +1 -1
- package/dist/primitives/Dialog/dialog.variants.d.ts +4 -2
- package/dist/primitives/Dialog/dialog.variants.js +1 -1
- package/dist/primitives/Dialog/index.d.ts +3 -3
- package/dist/primitives/Dialog/index.js +1 -1
- package/dist/primitives/Drawer/Drawer.svelte +7 -10
- package/dist/primitives/Drawer/Drawer.svelte.d.ts +1 -1
- package/dist/primitives/Drawer/drawer.variants.d.ts +4 -2
- package/dist/primitives/Drawer/drawer.variants.js +1 -1
- package/dist/primitives/Drawer/index.d.ts +3 -3
- package/dist/primitives/Drawer/index.js +1 -1
- package/dist/primitives/FormField/FormField.svelte.d.ts +1 -1
- package/dist/primitives/Input/Input.svelte +54 -30
- package/dist/primitives/Input/Input.svelte.d.ts +1 -1
- package/dist/primitives/Input/index.d.ts +9 -5
- package/dist/primitives/Input/index.js +1 -1
- package/dist/primitives/Input/input.variants.d.ts +4 -2
- package/dist/primitives/Input/input.variants.js +1 -1
- package/dist/primitives/Menu/Menu.svelte +23 -23
- 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 +11 -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 +5 -3
- package/dist/primitives/Menu/menu.variants.js +1 -1
- package/dist/primitives/Pagination/Pagination.svelte +18 -16
- 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 +5 -5
- package/dist/primitives/Pagination/index.js +1 -1
- package/dist/primitives/Pagination/pagination.variants.d.ts +4 -2
- package/dist/primitives/Pagination/pagination.variants.js +1 -1
- package/dist/primitives/Popover/Popover.svelte +2 -6
- 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 +17 -17
- package/dist/primitives/Progress/Progress.svelte.d.ts +1 -1
- package/dist/primitives/Progress/index.d.ts +9 -4
- package/dist/primitives/Progress/index.js +1 -1
- package/dist/primitives/Progress/progress.variants.d.ts +4 -2
- package/dist/primitives/Progress/progress.variants.js +1 -1
- package/dist/primitives/RadioGroup/RadioGroup.svelte +16 -16
- package/dist/primitives/RadioGroup/RadioGroup.svelte.d.ts +1 -1
- package/dist/primitives/RadioGroup/RadioItem.svelte +19 -19
- package/dist/primitives/RadioGroup/RadioItem.svelte.d.ts +1 -1
- package/dist/primitives/RadioGroup/index.d.ts +6 -6
- 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 +6 -3
- package/dist/primitives/RadioGroup/radioGroup.variants.js +1 -1
- package/dist/primitives/SegmentGroup/SegmentGroup.svelte +14 -11
- package/dist/primitives/SegmentGroup/SegmentGroup.svelte.d.ts +1 -1
- package/dist/primitives/SegmentGroup/SegmentItem.svelte +12 -11
- package/dist/primitives/SegmentGroup/SegmentItem.svelte.d.ts +1 -1
- package/dist/primitives/SegmentGroup/index.d.ts +6 -6
- 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 +4 -2
- package/dist/primitives/SegmentGroup/segmentgroup.variants.js +1 -1
- package/dist/primitives/Select/Select.svelte +31 -22
- package/dist/primitives/Select/Select.svelte.d.ts +1 -1
- package/dist/primitives/Select/index.d.ts +10 -5
- package/dist/primitives/Select/index.js +1 -1
- package/dist/primitives/Select/select.variants.d.ts +4 -2
- package/dist/primitives/Select/select.variants.js +1 -1
- package/dist/primitives/Separator/Separator.svelte +2 -6
- 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 +6 -9
- package/dist/primitives/Sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/primitives/Sidebar/index.d.ts +3 -3
- package/dist/primitives/Sidebar/index.js +1 -1
- package/dist/primitives/Sidebar/sidebar.variants.d.ts +4 -2
- package/dist/primitives/Sidebar/sidebar.variants.js +1 -1
- package/dist/primitives/Skeleton/Skeleton.svelte +7 -9
- package/dist/primitives/Skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/primitives/Skeleton/index.d.ts +4 -4
- package/dist/primitives/Skeleton/index.js +1 -1
- package/dist/primitives/Skeleton/skeleton.variants.d.ts +4 -2
- package/dist/primitives/Skeleton/skeleton.variants.js +6 -7
- package/dist/primitives/Slider/Slider.svelte +19 -19
- package/dist/primitives/Slider/Slider.svelte.d.ts +1 -1
- package/dist/primitives/Slider/index.d.ts +10 -5
- package/dist/primitives/Slider/index.js +1 -1
- package/dist/primitives/Slider/slider.variants.d.ts +4 -2
- package/dist/primitives/Slider/slider.variants.js +1 -1
- package/dist/primitives/Spinner/Spinner.svelte +7 -9
- package/dist/primitives/Spinner/Spinner.svelte.d.ts +1 -1
- package/dist/primitives/Spinner/index.d.ts +6 -4
- package/dist/primitives/Spinner/index.js +1 -1
- package/dist/primitives/Spinner/spinner.variants.d.ts +4 -2
- package/dist/primitives/Spinner/spinner.variants.js +1 -1
- package/dist/primitives/Stepper/Stepper.svelte +13 -18
- package/dist/primitives/Stepper/Stepper.svelte.d.ts +1 -1
- package/dist/primitives/Stepper/StepperStep.svelte +18 -19
- package/dist/primitives/Stepper/StepperStep.svelte.d.ts +1 -1
- package/dist/primitives/Stepper/index.d.ts +7 -7
- 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 +4 -2
- package/dist/primitives/Stepper/stepper.variants.js +1 -1
- package/dist/primitives/Tab/Tab.svelte +14 -17
- package/dist/primitives/Tab/Tab.svelte.d.ts +1 -1
- package/dist/primitives/Tab/TabItem.svelte +18 -19
- package/dist/primitives/Tab/TabItem.svelte.d.ts +1 -1
- package/dist/primitives/Tab/TabPanel.svelte +10 -13
- package/dist/primitives/Tab/TabPanel.svelte.d.ts +1 -1
- package/dist/primitives/Tab/index.d.ts +10 -10
- 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 +4 -2
- package/dist/primitives/Tab/tab.variants.js +1 -1
- package/dist/primitives/Textarea/Textarea.svelte +23 -23
- package/dist/primitives/Textarea/Textarea.svelte.d.ts +1 -1
- package/dist/primitives/Textarea/index.d.ts +9 -5
- package/dist/primitives/Textarea/index.js +1 -1
- package/dist/primitives/Textarea/textarea.variants.d.ts +4 -2
- package/dist/primitives/Textarea/textarea.variants.js +1 -1
- package/dist/primitives/Toast/Toaster.svelte +5 -6
- package/dist/primitives/Toast/Toaster.svelte.d.ts +1 -1
- package/dist/primitives/Toast/index.d.ts +4 -4
- 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 +4 -2
- package/dist/primitives/Toast/toast.variants.js +1 -1
- package/dist/primitives/Toggle/Toggle.svelte +19 -19
- package/dist/primitives/Toggle/Toggle.svelte.d.ts +1 -1
- package/dist/primitives/Toggle/index.d.ts +10 -6
- package/dist/primitives/Toggle/index.js +1 -1
- package/dist/primitives/Toggle/toggle.variants.d.ts +4 -2
- package/dist/primitives/Toggle/toggle.variants.js +1 -1
- package/dist/primitives/Toolbar/Toolbar.svelte +7 -9
- package/dist/primitives/Toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/primitives/Toolbar/index.d.ts +6 -5
- package/dist/primitives/Toolbar/index.js +1 -1
- package/dist/primitives/Toolbar/toolbar.variants.d.ts +4 -2
- package/dist/primitives/Toolbar/toolbar.variants.js +1 -1
- package/dist/primitives/Tooltip/Tooltip.svelte +7 -9
- package/dist/primitives/Tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/primitives/Tooltip/index.d.ts +5 -5
- package/dist/primitives/Tooltip/index.js +1 -1
- package/dist/primitives/Tooltip/tooltip.variants.d.ts +4 -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/style/semantic.css +5 -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/dist/utils/variants.d.ts +17 -0
- package/package.json +7 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VariantProps } from '../../utils/variants';
|
|
2
|
-
export declare const commandPaletteVariants: (props?: import("../../utils/variants").TVProps<{
|
|
1
|
+
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
|
+
export declare const commandPaletteVariants: (props?: import("../../utils/variants.js").TVProps<{
|
|
3
3
|
size: {
|
|
4
4
|
sm: {
|
|
5
5
|
wrapper: string;
|
|
@@ -48,12 +48,6 @@ export declare const commandPaletteVariants: (props?: import("../../utils/varian
|
|
|
48
48
|
class?: 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;
|
|
49
49
|
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;
|
|
50
50
|
}) | undefined) => string;
|
|
51
|
-
group: (props?: ({
|
|
52
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
53
|
-
} & {
|
|
54
|
-
class?: 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;
|
|
55
|
-
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;
|
|
56
|
-
}) | undefined) => string;
|
|
57
51
|
groupLabel: (props?: ({
|
|
58
52
|
size?: "sm" | "md" | "lg" | undefined;
|
|
59
53
|
} & {
|
|
@@ -134,3 +128,5 @@ export declare const commandPaletteVariants: (props?: import("../../utils/varian
|
|
|
134
128
|
}) | undefined) => string;
|
|
135
129
|
};
|
|
136
130
|
export type CommandPaletteVariants = VariantProps<typeof commandPaletteVariants>;
|
|
131
|
+
/** Slot names derived from the `tv()` config above — single source of truth for `slotClasses`. */
|
|
132
|
+
export type CommandPaletteSlots = SlotNames<typeof commandPaletteVariants>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '../../utils/variants';
|
|
1
|
+
import { tv } from '../../utils/variants.js';
|
|
2
2
|
export const commandPaletteVariants = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
// tier: contain — floating modal-like surface.
|
|
@@ -14,7 +14,6 @@ export const commandPaletteVariants = tv({
|
|
|
14
14
|
inputIcon: 'h-4 w-4 shrink-0 text-text-tertiary',
|
|
15
15
|
clearButton: 'text-text-quaternary hover:text-text-secondary',
|
|
16
16
|
list: 'max-h-72 overflow-y-auto p-1.5',
|
|
17
|
-
group: '',
|
|
18
17
|
groupLabel: [
|
|
19
18
|
'px-2 py-1.5 text-[11px] font-semibold uppercase tracking-wide text-text-quaternary'
|
|
20
19
|
],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
|
-
import type { CommandPaletteVariants } from './commandPalette.variants';
|
|
2
|
+
import type { CommandPaletteSlots, CommandPaletteVariants } from './commandPalette.variants.js';
|
|
3
3
|
/**
|
|
4
4
|
* A single item in the command palette.
|
|
5
5
|
*
|
|
@@ -102,7 +102,7 @@ export interface CommandPaletteProps {
|
|
|
102
102
|
/** Strip all default styles. @default false */
|
|
103
103
|
unstyled?: boolean;
|
|
104
104
|
/** Per-slot class overrides. */
|
|
105
|
-
slotClasses?: Partial<Record<
|
|
105
|
+
slotClasses?: Partial<Record<CommandPaletteSlots, string>>;
|
|
106
106
|
/**
|
|
107
107
|
* Apply a named preset registered via `<BlocksProvider presets={{ CommandPalette: {...} }}>`.
|
|
108
108
|
* Prefer this over `class` overrides when the requested look falls outside the
|
|
@@ -112,4 +112,4 @@ export interface CommandPaletteProps {
|
|
|
112
112
|
preset?: string;
|
|
113
113
|
}
|
|
114
114
|
export { default as CommandPalette } from './CommandPalette.svelte';
|
|
115
|
-
export { type CommandPaletteVariants, commandPaletteVariants } from './commandPalette.variants';
|
|
115
|
+
export { type CommandPaletteVariants, commandPaletteVariants } from './commandPalette.variants.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as CommandPalette } from './CommandPalette.svelte';
|
|
2
|
-
export { commandPaletteVariants } from './commandPalette.variants';
|
|
2
|
+
export { commandPaletteVariants } from './commandPalette.variants.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { useBlocksI18n, mintRegistry } from '../..';
|
|
3
3
|
import { useI18n } from '@urbicon-ui/i18n';
|
|
4
|
-
import { getBlocksConfig,
|
|
4
|
+
import { getBlocksConfig, resolveSlotClasses } from '../../provider';
|
|
5
5
|
import type { CompositionBarProps, CompositionBarIntent, CompositionItem } from './index';
|
|
6
|
-
import { compositionBarVariants } from './composition-bar.variants';
|
|
6
|
+
import { compositionBarVariants, type CompositionBarVariants } from './composition-bar.variants';
|
|
7
7
|
|
|
8
8
|
const bt = useBlocksI18n();
|
|
9
9
|
const i18n = useI18n();
|
|
@@ -36,12 +36,17 @@
|
|
|
36
36
|
|
|
37
37
|
const blocksConfig = getBlocksConfig();
|
|
38
38
|
const unstyled = $derived(unstyledProp || blocksConfig?.unstyled || false);
|
|
39
|
+
|
|
40
|
+
const variantProps: CompositionBarVariants = $derived({
|
|
41
|
+
orientation,
|
|
42
|
+
size,
|
|
43
|
+
legendPlacement
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
const styles = $derived(compositionBarVariants(variantProps));
|
|
47
|
+
|
|
39
48
|
const slotClasses = $derived(
|
|
40
|
-
|
|
41
|
-
blocksConfig?.defaults?.CompositionBar?.slotClasses,
|
|
42
|
-
resolvePresetSlotClasses(blocksConfig?.presets, 'CompositionBar', preset),
|
|
43
|
-
slotClassesProp
|
|
44
|
-
)
|
|
49
|
+
resolveSlotClasses(blocksConfig, 'CompositionBar', preset, variantProps, slotClassesProp)
|
|
45
50
|
);
|
|
46
51
|
|
|
47
52
|
let barRef = $state<HTMLDivElement>();
|
|
@@ -167,14 +172,6 @@
|
|
|
167
172
|
return intentRingClass[item.intent ?? intent];
|
|
168
173
|
}
|
|
169
174
|
|
|
170
|
-
const styles = $derived(
|
|
171
|
-
compositionBarVariants({
|
|
172
|
-
orientation,
|
|
173
|
-
size,
|
|
174
|
-
legendPlacement
|
|
175
|
-
})
|
|
176
|
-
);
|
|
177
|
-
|
|
178
175
|
$effect(() => {
|
|
179
176
|
if (barRef && mint && mint !== 'none') {
|
|
180
177
|
return mintRegistry.apply(barRef, mint);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CompositionBarProps } from './index';
|
|
1
|
+
import type { CompositionBarProps } from './index.js';
|
|
2
2
|
declare const CompositionBar: import("svelte").Component<CompositionBarProps, {}, "">;
|
|
3
3
|
type CompositionBar = ReturnType<typeof CompositionBar>;
|
|
4
4
|
export default CompositionBar;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VariantProps } from '../../utils/variants';
|
|
2
|
-
export declare const compositionBarVariants: (props?: import("../../utils/variants").TVProps<{
|
|
1
|
+
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
|
+
export declare const compositionBarVariants: (props?: import("../../utils/variants.js").TVProps<{
|
|
3
3
|
orientation: {
|
|
4
4
|
horizontal: {
|
|
5
5
|
wrapper: string;
|
|
@@ -190,3 +190,5 @@ export declare const compositionBarVariants: (props?: import("../../utils/varian
|
|
|
190
190
|
}) | undefined) => string;
|
|
191
191
|
};
|
|
192
192
|
export type CompositionBarVariants = VariantProps<typeof compositionBarVariants>;
|
|
193
|
+
/** Slot names derived from the `tv()` config above — single source of truth for `slotClasses`. */
|
|
194
|
+
export type CompositionBarSlots = SlotNames<typeof compositionBarVariants>;
|
|
@@ -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 { CompositionBarVariants } from './composition-bar.variants';
|
|
3
|
+
import type { MintProp } from '../../mint/index.js';
|
|
4
|
+
import type { CompositionBarSlots, CompositionBarVariants } from './composition-bar.variants.js';
|
|
5
5
|
export type CompositionBarIntent = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'neutral';
|
|
6
6
|
/** A single share in the stacked bar. */
|
|
7
7
|
export interface CompositionItem {
|
|
@@ -105,7 +105,7 @@ export interface CompositionBarProps extends Omit<CompositionBarVariants, 'isHov
|
|
|
105
105
|
/** Remove all default classes; only the layout structure remains. */
|
|
106
106
|
unstyled?: boolean;
|
|
107
107
|
/** Per-slot class overrides. */
|
|
108
|
-
slotClasses?: Partial<Record<
|
|
108
|
+
slotClasses?: Partial<Record<CompositionBarSlots, string>>;
|
|
109
109
|
/** Preset name (registered via `<BlocksProvider presets={{ CompositionBar: {...} }}>`). */
|
|
110
110
|
preset?: string;
|
|
111
111
|
/**
|
|
@@ -119,4 +119,4 @@ export interface CompositionBarProps extends Omit<CompositionBarVariants, 'isHov
|
|
|
119
119
|
tooltip?: Snippet<[item: CompositionItem, percent: number]>;
|
|
120
120
|
}
|
|
121
121
|
export { default as CompositionBar } from './CompositionBar.svelte';
|
|
122
|
-
export { type CompositionBarVariants, compositionBarVariants } from './composition-bar.variants';
|
|
122
|
+
export { type CompositionBarVariants, compositionBarVariants } from './composition-bar.variants.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as CompositionBar } from './CompositionBar.svelte';
|
|
2
|
-
export { compositionBarVariants } from './composition-bar.variants';
|
|
2
|
+
export { compositionBarVariants } from './composition-bar.variants.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CurrencyInputProps } from './index';
|
|
1
|
+
import type { CurrencyInputProps } from './index.js';
|
|
2
2
|
declare const CurrencyInput: import("svelte").Component<CurrencyInputProps, {}, "value">;
|
|
3
3
|
type CurrencyInput = ReturnType<typeof CurrencyInput>;
|
|
4
4
|
export default CurrencyInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InputProps } from '../../primitives/Input';
|
|
1
|
+
import type { InputProps } from '../../primitives/Input/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Where the currency symbol appears relative to the input field.
|
|
4
4
|
* The symbol is rendered as a static adornment in the input's left or right
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DateRangePickerProps } from '.';
|
|
1
|
+
import type { DateRangePickerProps } from './index.js';
|
|
2
2
|
declare const DateRangePicker: import("svelte").Component<DateRangePickerProps, {}, "value">;
|
|
3
3
|
type DateRangePicker = ReturnType<typeof DateRangePicker>;
|
|
4
4
|
export default DateRangePicker;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* the supported entry points are the `DatePicker` and `DateRangePicker`
|
|
9
9
|
* Svelte components themselves.
|
|
10
10
|
*/
|
|
11
|
-
import type { DateRange } from '../Calendar/calendar.types';
|
|
11
|
+
import type { DateRange } from '../Calendar/calendar.types.js';
|
|
12
12
|
export type DateFormatOptions = Intl.DateTimeFormatOptions;
|
|
13
13
|
/**
|
|
14
14
|
* Format a Date as a locale-aware string. Guards Invalid Date and Intl
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import type { MintProp } from '../../mint';
|
|
3
|
-
import type { MonthIndex, WeekdayIndex } from '../../utils/date';
|
|
4
|
-
import type { DateRange } from '../Calendar/calendar.types';
|
|
5
|
-
import type { DateFormatOptions } from './datepicker.engine';
|
|
2
|
+
import type { MintProp } from '../../mint/index.js';
|
|
3
|
+
import type { MonthIndex, WeekdayIndex } from '../../utils/date.js';
|
|
4
|
+
import type { DateRange } from '../Calendar/calendar.types.js';
|
|
5
|
+
import type { DateFormatOptions } from './datepicker.engine.js';
|
|
6
6
|
/**
|
|
7
7
|
* @description Date input with calendar popup for selecting a single date. Supports min/max constraints, disabled dates, and format customization.
|
|
8
8
|
*
|
|
@@ -161,11 +161,12 @@ export interface DatePickerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'c
|
|
|
161
161
|
valueFormat?: 'date' | 'iso';
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
164
|
-
* @description Date range
|
|
164
|
+
* @description Date range picker with a dual-calendar popup for selecting a start and end date — min/max constraints, disabled dates, and native form submission via paired hidden inputs.
|
|
165
165
|
*
|
|
166
166
|
* @tag form
|
|
167
167
|
* @related DatePicker
|
|
168
168
|
* @related Calendar
|
|
169
|
+
* @standalone
|
|
169
170
|
*/
|
|
170
171
|
export interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
171
172
|
/** Currently selected date range. Supports bind:value. */
|
|
@@ -249,7 +250,7 @@ export interface DateRangePreset {
|
|
|
249
250
|
label: string;
|
|
250
251
|
value: DateRange;
|
|
251
252
|
}
|
|
252
|
-
export type { DateRange } from '../Calendar/calendar.types';
|
|
253
|
+
export type { DateRange } from '../Calendar/calendar.types.js';
|
|
253
254
|
export { default as DatePicker } from './DatePicker.svelte';
|
|
254
255
|
export { default as DateRangePicker } from './DateRangePicker.svelte';
|
|
255
|
-
export type { DateFormatOptions } from './datepicker.engine';
|
|
256
|
+
export type { DateFormatOptions } from './datepicker.engine.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { getBlocksConfig,
|
|
2
|
+
import { getBlocksConfig, resolveSlotClasses } from '../../provider';
|
|
3
3
|
import type { DonutChartProps } from './index';
|
|
4
4
|
import { chartSlotResolver } from '../../internal/charts/variants';
|
|
5
5
|
import { arcPath, seriesColor, numberFormatter } from '../../internal/charts/utils';
|
|
@@ -25,11 +25,7 @@
|
|
|
25
25
|
const blocksConfig = getBlocksConfig();
|
|
26
26
|
const unstyled = $derived(unstyledProp || blocksConfig?.unstyled || false);
|
|
27
27
|
const slotClasses = $derived(
|
|
28
|
-
|
|
29
|
-
blocksConfig?.defaults?.DonutChart?.slotClasses,
|
|
30
|
-
resolvePresetSlotClasses(blocksConfig?.presets, 'DonutChart', preset),
|
|
31
|
-
slotClassesProp
|
|
32
|
-
)
|
|
28
|
+
resolveSlotClasses(blocksConfig, 'DonutChart', preset, {}, slotClassesProp)
|
|
33
29
|
);
|
|
34
30
|
const slot = $derived(chartSlotResolver(unstyled, slotClasses));
|
|
35
31
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
-
import type { ChartSlotClasses } from '../../internal/charts/types';
|
|
2
|
+
import type { ChartSlotClasses } from '../../internal/charts/types.js';
|
|
3
3
|
/** A single slice of a donut / pie chart. */
|
|
4
4
|
export interface DonutDatum {
|
|
5
5
|
/** Slice label (legend + data table). */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { getBlocksConfig,
|
|
2
|
+
import { getBlocksConfig, resolveSlotClasses } from '../../provider';
|
|
3
3
|
import type { EmptyStateProps } from './index';
|
|
4
|
-
import { emptyStateVariants } from './emptyState.variants';
|
|
4
|
+
import { emptyStateVariants, type EmptyStateVariants } from './emptyState.variants';
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
icon: IconComponent,
|
|
@@ -19,16 +19,15 @@
|
|
|
19
19
|
|
|
20
20
|
const blocksConfig = getBlocksConfig();
|
|
21
21
|
const unstyled = $derived(unstyledProp || blocksConfig?.unstyled || false);
|
|
22
|
+
|
|
23
|
+
const variantProps: EmptyStateVariants = $derived({ density });
|
|
24
|
+
|
|
25
|
+
const styles = $derived(unstyled ? undefined : emptyStateVariants(variantProps));
|
|
26
|
+
|
|
22
27
|
const slotClasses = $derived(
|
|
23
|
-
|
|
24
|
-
blocksConfig?.defaults?.EmptyState?.slotClasses,
|
|
25
|
-
resolvePresetSlotClasses(blocksConfig?.presets, 'EmptyState', preset),
|
|
26
|
-
slotClassesProp
|
|
27
|
-
)
|
|
28
|
+
resolveSlotClasses(blocksConfig, 'EmptyState', preset, variantProps, slotClassesProp)
|
|
28
29
|
);
|
|
29
30
|
|
|
30
|
-
const styles = $derived(unstyled ? undefined : emptyStateVariants({ density }));
|
|
31
|
-
|
|
32
31
|
const iconSize = $derived(density === 'compact' ? 32 : 40);
|
|
33
32
|
|
|
34
33
|
function slot(name: 'base' | 'iconWrapper' | 'title' | 'description' | 'children' | 'cta') {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VariantProps } from '../../utils/variants';
|
|
2
|
-
export declare const emptyStateVariants: (props?: import("../../utils/variants").TVProps<{
|
|
1
|
+
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
|
+
export declare const emptyStateVariants: (props?: import("../../utils/variants.js").TVProps<{
|
|
3
3
|
density: {
|
|
4
4
|
compact: {
|
|
5
5
|
base: string;
|
|
@@ -52,3 +52,5 @@ export declare const emptyStateVariants: (props?: import("../../utils/variants")
|
|
|
52
52
|
}) | undefined) => string;
|
|
53
53
|
};
|
|
54
54
|
export type EmptyStateVariants = VariantProps<typeof emptyStateVariants>;
|
|
55
|
+
/** Slot names derived from the tv() config — single source of truth for slotClasses. */
|
|
56
|
+
export type EmptyStateSlots = SlotNames<typeof emptyStateVariants>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Component, Snippet } from 'svelte';
|
|
2
2
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
-
import type { IconProps } from '../../icons';
|
|
4
|
-
type
|
|
3
|
+
import type { IconProps } from '../../icons/index.js';
|
|
4
|
+
import type { EmptyStateSlots } from './emptyState.variants.js';
|
|
5
5
|
/**
|
|
6
6
|
* @description Centered placeholder block for "no data yet" / "no results"
|
|
7
7
|
* states. Pairs an optional icon with a heading, supporting text, and an
|
|
@@ -47,8 +47,8 @@ export interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'c
|
|
|
47
47
|
class?: string;
|
|
48
48
|
/** Remove all default tv classes. */
|
|
49
49
|
unstyled?: boolean;
|
|
50
|
-
/** Per-slot class overrides. */
|
|
51
|
-
slotClasses?: Partial<Record<
|
|
50
|
+
/** Per-slot class overrides. Slots: base | iconWrapper | title | description | children | cta */
|
|
51
|
+
slotClasses?: Partial<Record<EmptyStateSlots, string>>;
|
|
52
52
|
/**
|
|
53
53
|
* Apply a named preset registered via `<BlocksProvider presets={{ EmptyState: {...} }}>`.
|
|
54
54
|
* Prefer this over `class` overrides when the same look should be reused
|
|
@@ -57,4 +57,4 @@ export interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'c
|
|
|
57
57
|
preset?: string;
|
|
58
58
|
}
|
|
59
59
|
export { default as EmptyState } from './EmptyState.svelte';
|
|
60
|
-
export { type EmptyStateVariants, emptyStateVariants } from './emptyState.variants';
|
|
60
|
+
export { type EmptyStateVariants, emptyStateVariants } from './emptyState.variants.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as EmptyState } from './EmptyState.svelte';
|
|
2
|
-
export { emptyStateVariants } from './emptyState.variants';
|
|
2
|
+
export { emptyStateVariants } from './emptyState.variants.js';
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
FileUploadError,
|
|
8
8
|
FileUploadSlotName
|
|
9
9
|
} from './index';
|
|
10
|
-
import { fileUploadVariants } from './fileUpload.variants';
|
|
11
|
-
import { getBlocksConfig,
|
|
10
|
+
import { fileUploadVariants, type FileUploadVariants } from './fileUpload.variants';
|
|
11
|
+
import { getBlocksConfig, resolveSlotClasses } from '../../provider';
|
|
12
12
|
import { resolveIcon } from '../../icons';
|
|
13
13
|
import UploadCloudIconDefault from '../../icons/UploadCloudIcon.svelte';
|
|
14
14
|
import FileIconDefault from '../../icons/FileIcon.svelte';
|
|
@@ -68,13 +68,6 @@
|
|
|
68
68
|
|
|
69
69
|
const blocksConfig = getBlocksConfig();
|
|
70
70
|
const unstyled = $derived(unstyledProp || blocksConfig?.unstyled || false);
|
|
71
|
-
const slotClasses = $derived(
|
|
72
|
-
mergeSlotClasses(
|
|
73
|
-
blocksConfig?.defaults?.FileUpload?.slotClasses,
|
|
74
|
-
resolvePresetSlotClasses(blocksConfig?.presets, 'FileUpload', preset),
|
|
75
|
-
slotClassesProp
|
|
76
|
-
)
|
|
77
|
-
);
|
|
78
71
|
|
|
79
72
|
// ── State ──────────────────────────────────────────────────────────────────
|
|
80
73
|
|
|
@@ -90,14 +83,21 @@
|
|
|
90
83
|
const effectiveMultiple = $derived(multiple || maxFiles > 1);
|
|
91
84
|
const acceptString = $derived(Array.isArray(accept) ? accept.join(',') : (accept ?? ''));
|
|
92
85
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
86
|
+
// Variant props feed both the tv() style computation and the slot-class
|
|
87
|
+
// cascade — extracted into one derived so `resolveSlotClasses` can match
|
|
88
|
+
// conditional `overrides` against the dropzone's active variants.
|
|
89
|
+
const variantProps: FileUploadVariants = $derived({
|
|
90
|
+
size,
|
|
91
|
+
intent,
|
|
92
|
+
dragging,
|
|
93
|
+
invalid: dragInvalid,
|
|
94
|
+
disabled
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
const styles = $derived(fileUploadVariants(variantProps));
|
|
98
|
+
|
|
99
|
+
const slotClasses = $derived(
|
|
100
|
+
resolveSlotClasses(blocksConfig, 'FileUpload', preset, variantProps, slotClassesProp)
|
|
101
101
|
);
|
|
102
102
|
|
|
103
103
|
const iconSize = $derived({ sm: 24, md: 32, lg: 40 }[size ?? 'md']);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FileUploadProps } from './index';
|
|
1
|
+
import type { FileUploadProps } from './index.js';
|
|
2
2
|
declare const FileUpload: import("svelte").Component<FileUploadProps, {}, "files" | "file">;
|
|
3
3
|
type FileUpload = ReturnType<typeof FileUpload>;
|
|
4
4
|
export default FileUpload;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type VariantProps } from '../../utils/variants';
|
|
2
|
-
export declare const fileUploadVariants: (props?: import("../../utils/variants").TVProps<{
|
|
1
|
+
import { type SlotNames, type VariantProps } from '../../utils/variants.js';
|
|
2
|
+
export declare const fileUploadVariants: (props?: import("../../utils/variants.js").TVProps<{
|
|
3
3
|
size: {
|
|
4
4
|
sm: {
|
|
5
5
|
dropzone: string;
|
|
@@ -182,16 +182,6 @@ export declare const fileUploadVariants: (props?: import("../../utils/variants")
|
|
|
182
182
|
class?: 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;
|
|
183
183
|
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;
|
|
184
184
|
}) | undefined) => string;
|
|
185
|
-
fileItemActions: (props?: ({
|
|
186
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
187
|
-
intent?: "primary" | "neutral" | undefined;
|
|
188
|
-
dragging?: boolean | undefined;
|
|
189
|
-
invalid?: boolean | undefined;
|
|
190
|
-
disabled?: boolean | undefined;
|
|
191
|
-
} & {
|
|
192
|
-
class?: 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;
|
|
193
|
-
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;
|
|
194
|
-
}) | undefined) => string;
|
|
195
185
|
fileItemRemoveButton: (props?: ({
|
|
196
186
|
size?: "sm" | "md" | "lg" | undefined;
|
|
197
187
|
intent?: "primary" | "neutral" | undefined;
|
|
@@ -224,3 +214,5 @@ export declare const fileUploadVariants: (props?: import("../../utils/variants")
|
|
|
224
214
|
}) | undefined) => string;
|
|
225
215
|
};
|
|
226
216
|
export type FileUploadVariants = VariantProps<typeof fileUploadVariants>;
|
|
217
|
+
/** Slot names derived from the `tv()` config above — single source of truth for `slotClasses`. */
|
|
218
|
+
export type FileUploadSlots = SlotNames<typeof fileUploadVariants>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '../../utils/variants';
|
|
1
|
+
import { tv } from '../../utils/variants.js';
|
|
2
2
|
export const fileUploadVariants = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
root: ['flex flex-col gap-3 w-full'],
|
|
@@ -39,11 +39,6 @@ export const fileUploadVariants = tv({
|
|
|
39
39
|
fileItemName: ['truncate text-text-primary font-medium'],
|
|
40
40
|
fileItemSize: ['text-text-tertiary'],
|
|
41
41
|
fileItemProgress: ['w-full'],
|
|
42
|
-
fileItemActions: [
|
|
43
|
-
'flex flex-shrink-0 items-center gap-1',
|
|
44
|
-
'opacity-0 group-hover:opacity-100 group-focus-within:opacity-100',
|
|
45
|
-
'transition-opacity duration-[var(--blocks-duration-fast)]'
|
|
46
|
-
],
|
|
47
42
|
// tier: modify — small destructive sub-button.
|
|
48
43
|
fileItemRemoveButton: [
|
|
49
44
|
'flex items-center justify-center rounded-modify',
|
|
@@ -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 { FileUploadVariants } from './fileUpload.variants';
|
|
3
|
+
import type { MintProp } from '../../mint/index.js';
|
|
4
|
+
import type { FileUploadSlots, FileUploadVariants } from './fileUpload.variants.js';
|
|
5
5
|
export type FileUploadErrorCode = 'FILE_INVALID_TYPE' | 'FILE_TOO_LARGE' | 'FILE_TOO_SMALL' | 'TOO_MANY_FILES' | 'FILE_EXISTS' | 'CUSTOM';
|
|
6
6
|
export interface FileUploadError {
|
|
7
7
|
/** Machine-readable error code. */
|
|
@@ -40,7 +40,8 @@ export interface FileItemContext {
|
|
|
40
40
|
/** Remove this file from the list. */
|
|
41
41
|
remove: () => void;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
/** Slot names for `slotClasses` — derived from the `tv()` config (single source of truth). */
|
|
44
|
+
export type FileUploadSlotName = FileUploadSlots;
|
|
44
45
|
/**
|
|
45
46
|
* @description Drag-and-drop file upload with validation, image previews, progress tracking, and animated file list.
|
|
46
47
|
* @tag form
|
|
@@ -142,7 +143,7 @@ export interface FileUploadProps extends Omit<FileUploadVariants, 'dragging' | '
|
|
|
142
143
|
/** Strip all default styles. */
|
|
143
144
|
unstyled?: boolean;
|
|
144
145
|
/** Per-slot class overrides. */
|
|
145
|
-
slotClasses?: Partial<Record<
|
|
146
|
+
slotClasses?: Partial<Record<FileUploadSlots, string>>;
|
|
146
147
|
/**
|
|
147
148
|
* Apply a named preset registered via `<BlocksProvider presets={{ FileUpload: {...} }}>`.
|
|
148
149
|
* Prefer this over `class` overrides when the requested look falls outside the
|
|
@@ -152,4 +153,4 @@ export interface FileUploadProps extends Omit<FileUploadVariants, 'dragging' | '
|
|
|
152
153
|
preset?: string;
|
|
153
154
|
}
|
|
154
155
|
export { default as FileUpload } from './FileUpload.svelte';
|
|
155
|
-
export { type FileUploadVariants, fileUploadVariants } from './fileUpload.variants';
|
|
156
|
+
export { type FileUploadVariants, fileUploadVariants } from './fileUpload.variants.js';
|
|
@@ -11,4 +11,4 @@ export const PDF_MIME_TYPE = ['application/pdf'];
|
|
|
11
11
|
export const VIDEO_MIME_TYPES = ['video/mp4', 'video/webm', 'video/ogg'];
|
|
12
12
|
export const AUDIO_MIME_TYPES = ['audio/mpeg', 'audio/wav', 'audio/ogg', 'audio/webm'];
|
|
13
13
|
export { default as FileUpload } from './FileUpload.svelte';
|
|
14
|
-
export { fileUploadVariants } from './fileUpload.variants';
|
|
14
|
+
export { fileUploadVariants } from './fileUpload.variants.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { MediaQuery } from 'svelte/reactivity';
|
|
4
4
|
import { useBlocksI18n } from '../../i18n';
|
|
5
5
|
import { Button } from '../../primitives/Button';
|
|
6
|
-
import { getBlocksConfig,
|
|
6
|
+
import { getBlocksConfig, resolveSlotClasses } from '../../provider';
|
|
7
7
|
import {
|
|
8
8
|
computePosition,
|
|
9
9
|
autoUpdate,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
} from '../../utils/floating';
|
|
15
15
|
import { observeTargetResolution } from '../../utils/observe-target';
|
|
16
16
|
import { getGuideContext } from './guide.context';
|
|
17
|
-
import { guideTourVariants } from './guide.variants';
|
|
17
|
+
import { guideTourVariants, type GuideTourVariants } from './guide.variants';
|
|
18
18
|
import type { GuideProps } from './index';
|
|
19
19
|
|
|
20
20
|
const bt = useBlocksI18n();
|
|
@@ -44,14 +44,11 @@
|
|
|
44
44
|
|
|
45
45
|
const blocksConfig = getBlocksConfig();
|
|
46
46
|
const unstyled = $derived(unstyledProp || blocksConfig?.unstyled || false);
|
|
47
|
+
const variantProps: GuideTourVariants = $derived({});
|
|
48
|
+
const styles = $derived(guideTourVariants(variantProps));
|
|
47
49
|
const slotClasses = $derived(
|
|
48
|
-
|
|
49
|
-
blocksConfig?.defaults?.Guide?.slotClasses,
|
|
50
|
-
resolvePresetSlotClasses(blocksConfig?.presets, 'Guide', preset),
|
|
51
|
-
slotClassesProp
|
|
52
|
-
)
|
|
50
|
+
resolveSlotClasses(blocksConfig, 'Guide', preset, variantProps, slotClassesProp)
|
|
53
51
|
);
|
|
54
|
-
const styles = $derived(guideTourVariants());
|
|
55
52
|
|
|
56
53
|
// ── Controller-driven tour state ───────────────────────────────────────────
|
|
57
54
|
const isTourActive = $derived(guide?.isTourActive ?? false);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { getBlocksConfig,
|
|
2
|
+
import { getBlocksConfig, resolveSlotClasses } from '../../provider';
|
|
3
3
|
import { getGuideContext } from './guide.context';
|
|
4
4
|
import { getGuidePanelContext } from './guide-panel.context';
|
|
5
|
-
import { guideArticleVariants } from './guide.variants';
|
|
5
|
+
import { guideArticleVariants, type GuideArticleVariants } from './guide.variants';
|
|
6
6
|
import type { GuideArticleProps } from './index';
|
|
7
7
|
|
|
8
8
|
let {
|
|
@@ -28,14 +28,11 @@
|
|
|
28
28
|
|
|
29
29
|
const blocksConfig = getBlocksConfig();
|
|
30
30
|
const unstyled = $derived(unstyledProp || blocksConfig?.unstyled || false);
|
|
31
|
+
const variantProps: GuideArticleVariants = $derived({});
|
|
32
|
+
const styles = $derived(guideArticleVariants(variantProps));
|
|
31
33
|
const slotClasses = $derived(
|
|
32
|
-
|
|
33
|
-
blocksConfig?.defaults?.GuideArticle?.slotClasses,
|
|
34
|
-
resolvePresetSlotClasses(blocksConfig?.presets, 'GuideArticle', preset),
|
|
35
|
-
slotClassesProp
|
|
36
|
-
)
|
|
34
|
+
resolveSlotClasses(blocksConfig, 'GuideArticle', preset, variantProps, slotClassesProp)
|
|
37
35
|
);
|
|
38
|
-
const styles = $derived(guideArticleVariants());
|
|
39
36
|
|
|
40
37
|
const isActive = $derived(guide?.activeArticle === id);
|
|
41
38
|
</script>
|