sv5ui 2.1.0 → 2.3.0
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/README.md +122 -43
- package/dist/{Accordion → components/Accordion}/Accordion.svelte +79 -99
- package/dist/components/Alert/Alert.svelte +119 -0
- package/dist/components/Avatar/Avatar.svelte +86 -0
- package/dist/components/AvatarGroup/AvatarGroup.svelte +59 -0
- package/dist/components/Badge/Badge.svelte +69 -0
- package/dist/{Banner → components/Banner}/Banner.svelte +73 -87
- package/dist/components/Breadcrumb/Breadcrumb.svelte +85 -0
- package/dist/components/Button/Button.svelte +149 -0
- package/dist/{Calendar → components/Calendar}/Calendar.svelte +139 -165
- package/dist/components/Card/Card.svelte +46 -0
- package/dist/components/Carousel/Carousel.svelte +254 -0
- package/dist/components/Checkbox/Checkbox.svelte +142 -0
- package/dist/{CheckboxGroup → components/CheckboxGroup}/CheckboxGroup.svelte +89 -109
- package/dist/components/Chip/Chip.svelte +43 -0
- package/dist/components/Collapsible/Collapsible.svelte +60 -0
- package/dist/{Collapsible → components/Collapsible}/CollapsibleTestWrapper.svelte +2 -5
- package/dist/{Command → components/Command}/Command.svelte +69 -78
- package/dist/components/Command/CommandTestWrapper.svelte +7 -0
- package/dist/components/Container/Container.svelte +13 -0
- package/dist/{ContextMenu → components/ContextMenu}/ContextMenu.svelte +93 -117
- package/dist/components/Drawer/Drawer.svelte +191 -0
- package/dist/{Drawer → components/Drawer}/DrawerTriggerTestWrapper.svelte +1 -2
- package/dist/{DropdownMenu → components/DropdownMenu}/DropdownMenu.svelte +103 -128
- package/dist/components/DropdownMenu/DropdownMenuTriggerTestWrapper.svelte +9 -0
- package/dist/components/Editor/Editor.svelte +674 -0
- package/dist/components/Editor/EditorUrlPrompt.svelte +88 -0
- package/dist/{Editor → components/Editor}/SlashPopup.svelte +12 -24
- package/dist/components/Empty/Empty.svelte +102 -0
- package/dist/components/Error/Error.svelte +89 -0
- package/dist/components/Error/Error.svelte.d.ts +5 -0
- package/dist/components/Error/error.types.d.ts +87 -0
- package/dist/components/Error/error.variants.d.ts +66 -0
- package/dist/components/Error/error.variants.js +16 -0
- package/dist/components/Error/index.d.ts +2 -0
- package/dist/components/Error/index.js +1 -0
- package/dist/components/FieldGroup/FieldGroup.svelte +41 -0
- package/dist/{FileUpload → components/FileUpload}/FileUpload.svelte +265 -321
- package/dist/components/Footer/Footer.svelte +71 -0
- package/dist/components/Footer/Footer.svelte.d.ts +5 -0
- package/dist/components/Footer/FooterColumns.svelte +110 -0
- package/dist/components/Footer/FooterColumns.svelte.d.ts +5 -0
- package/dist/components/Footer/footer-columns.types.d.ts +73 -0
- package/dist/components/Footer/footer-columns.variants.d.ts +108 -0
- package/dist/components/Footer/footer-columns.variants.js +23 -0
- package/dist/components/Footer/footer.types.d.ts +46 -0
- package/dist/components/Footer/footer.variants.d.ts +66 -0
- package/dist/components/Footer/footer.variants.js +16 -0
- package/dist/components/Footer/index.d.ts +4 -0
- package/dist/components/Footer/index.js +2 -0
- package/dist/components/Form/Form.svelte +146 -0
- package/dist/{Form → components/Form}/form.context.svelte.js +1 -1
- package/dist/{Form → components/Form}/form.variants.d.ts +1 -1
- package/dist/{Form → components/Form}/form.variants.js +1 -1
- package/dist/components/FormField/FormField.svelte +158 -0
- package/dist/components/Header/Header.svelte +177 -0
- package/dist/components/Header/Header.svelte.d.ts +5 -0
- package/dist/components/Header/header.types.d.ts +124 -0
- package/dist/components/Header/header.variants.d.ts +108 -0
- package/dist/components/Header/header.variants.js +32 -0
- package/dist/components/Header/index.d.ts +2 -0
- package/dist/components/Header/index.js +1 -0
- package/dist/components/Icon/Icon.svelte +31 -0
- package/dist/components/Input/Input.svelte +168 -0
- package/dist/{Input → components/Input}/input.types.d.ts +3 -3
- package/dist/components/Kbd/Kbd.svelte +36 -0
- package/dist/components/Link/Link.svelte +131 -0
- package/dist/components/Main/Main.svelte +20 -0
- package/dist/components/Main/Main.svelte.d.ts +5 -0
- package/dist/components/Main/index.d.ts +2 -0
- package/dist/components/Main/index.js +1 -0
- package/dist/components/Main/main.types.d.ts +27 -0
- package/dist/components/Main/main.variants.d.ts +30 -0
- package/dist/components/Main/main.variants.js +10 -0
- package/dist/{Modal → components/Modal}/Modal.svelte +94 -108
- package/dist/{Modal → components/Modal}/ModalTriggerTestWrapper.svelte +1 -2
- package/dist/{Pagination → components/Pagination}/Pagination.svelte +79 -93
- package/dist/components/PinInput/PinInput.svelte +142 -0
- package/dist/components/Popover/Popover.svelte +111 -0
- package/dist/components/Progress/Progress.svelte +117 -0
- package/dist/{RadioGroup → components/RadioGroup}/RadioGroup.svelte +82 -101
- package/dist/components/Select/Select.svelte +400 -0
- package/dist/components/SelectMenu/SelectMenu.svelte +544 -0
- package/dist/components/SelectMenu/SelectMenuFormFieldTestWrapper.svelte +8 -0
- package/dist/components/Separator/Separator.svelte +67 -0
- package/dist/components/Skeleton/Skeleton.svelte +31 -0
- package/dist/{Slideover → components/Slideover}/Slideover.svelte +94 -108
- package/dist/{Slideover → components/Slideover}/SlideoverTriggerTestWrapper.svelte +1 -2
- package/dist/components/Slider/Slider.svelte +111 -0
- package/dist/components/Stepper/Stepper.svelte +238 -0
- package/dist/components/Switch/Switch.svelte +126 -0
- package/dist/components/Table/Table.svelte +644 -0
- package/dist/components/Tabs/Tabs.svelte +156 -0
- package/dist/components/Textarea/Textarea.svelte +174 -0
- package/dist/components/ThemeModeButton/ThemeModeButton.svelte +64 -0
- package/dist/components/ThemeModeButton/theme-mode-button.types.js +1 -0
- package/dist/components/Timeline/Timeline.svelte +114 -0
- package/dist/components/Timeline/timeline.types.js +1 -0
- package/dist/{Toast → components/Toast}/Toaster.svelte +18 -26
- package/dist/components/Toast/toast.types.js +1 -0
- package/dist/{Tooltip → components/Tooltip}/Tooltip.svelte +54 -67
- package/dist/components/Tooltip/TooltipTestWrapper.svelte +5 -0
- package/dist/components/Tooltip/tooltip.types.js +1 -0
- package/dist/components/Tour/Tour.svelte +459 -0
- package/dist/components/Tour/Tour.svelte.d.ts +5 -0
- package/dist/components/Tour/index.d.ts +2 -0
- package/dist/components/Tour/index.js +1 -0
- package/dist/components/Tour/tour.types.d.ts +457 -0
- package/dist/components/Tour/tour.types.js +1 -0
- package/dist/components/Tour/tour.variants.d.ts +208 -0
- package/dist/components/Tour/tour.variants.js +56 -0
- package/dist/components/User/User.svelte +87 -0
- package/dist/components/User/user.types.js +1 -0
- package/dist/config.d.ts +2 -0
- package/dist/config.js +2 -0
- package/dist/hooks/index.d.ts +17 -14
- package/dist/hooks/index.js +17 -7
- package/dist/hooks/useClickOutside/index.d.ts +1 -0
- package/dist/hooks/useClickOutside/index.js +1 -0
- package/dist/hooks/{useClickOutside.svelte.js → useClickOutside/useClickOutside.svelte.js} +3 -6
- package/dist/hooks/useClipboard/index.d.ts +1 -0
- package/dist/hooks/useClipboard/index.js +1 -0
- package/dist/hooks/{useClipboard.svelte.d.ts → useClipboard/useClipboard.svelte.d.ts} +2 -1
- package/dist/hooks/useDebounce/index.d.ts +1 -0
- package/dist/hooks/useDebounce/index.js +1 -0
- package/dist/hooks/useDebouncedState/index.d.ts +1 -0
- package/dist/hooks/useDebouncedState/index.js +1 -0
- package/dist/hooks/useDebouncedState/useDebouncedState.svelte.d.ts +30 -0
- package/dist/hooks/useDebouncedState/useDebouncedState.svelte.js +45 -0
- package/dist/hooks/useEscapeKeydown/index.d.ts +1 -0
- package/dist/hooks/useEscapeKeydown/index.js +1 -0
- package/dist/hooks/{useEscapeKeydown.svelte.js → useEscapeKeydown/useEscapeKeydown.svelte.js} +3 -6
- package/dist/hooks/useEventListener/index.d.ts +1 -0
- package/dist/hooks/useEventListener/index.js +1 -0
- package/dist/hooks/useEventListener/useEventListener.svelte.d.ts +30 -0
- package/dist/hooks/useEventListener/useEventListener.svelte.js +16 -0
- package/dist/hooks/useFocusTrap/index.d.ts +1 -0
- package/dist/hooks/useFocusTrap/index.js +1 -0
- package/dist/hooks/useFocusTrap/useFocusTrap.svelte.d.ts +42 -0
- package/dist/hooks/useFocusTrap/useFocusTrap.svelte.js +87 -0
- package/dist/hooks/useFormField/HookContextProbe.svelte +5 -0
- package/dist/hooks/useFormField/HookContextProvider.svelte +7 -0
- package/dist/hooks/useFormField/HookEmitProbe.svelte +11 -0
- package/dist/hooks/useFormField/index.d.ts +1 -0
- package/dist/hooks/useFormField/index.js +1 -0
- package/dist/hooks/{useFormField.svelte.d.ts → useFormField/useFormField.svelte.d.ts} +1 -1
- package/dist/hooks/{useFormField.svelte.js → useFormField/useFormField.svelte.js} +1 -1
- package/dist/hooks/useInfiniteScroll/index.d.ts +1 -0
- package/dist/hooks/useInfiniteScroll/index.js +1 -0
- package/dist/hooks/{useInfiniteScroll.svelte.d.ts → useInfiniteScroll/useInfiniteScroll.svelte.d.ts} +2 -1
- package/dist/hooks/{useInfiniteScroll.svelte.js → useInfiniteScroll/useInfiniteScroll.svelte.js} +2 -9
- package/dist/hooks/useIntersectionObserver/index.d.ts +1 -0
- package/dist/hooks/useIntersectionObserver/index.js +1 -0
- package/dist/hooks/useIntersectionObserver/useIntersectionObserver.svelte.d.ts +30 -0
- package/dist/hooks/useIntersectionObserver/useIntersectionObserver.svelte.js +46 -0
- package/dist/hooks/useLocalStorage/index.d.ts +1 -0
- package/dist/hooks/useLocalStorage/index.js +1 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.svelte.d.ts +39 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.svelte.js +73 -0
- package/dist/hooks/useMediaQuery/index.d.ts +1 -0
- package/dist/hooks/useMediaQuery/index.js +1 -0
- package/dist/hooks/{useMediaQuery.svelte.d.ts → useMediaQuery/useMediaQuery.svelte.d.ts} +2 -1
- package/dist/hooks/{useMediaQuery.svelte.js → useMediaQuery/useMediaQuery.svelte.js} +2 -1
- package/dist/hooks/useResizeObserver/index.d.ts +1 -0
- package/dist/hooks/useResizeObserver/index.js +1 -0
- package/dist/hooks/useResizeObserver/useResizeObserver.svelte.d.ts +50 -0
- package/dist/hooks/useResizeObserver/useResizeObserver.svelte.js +71 -0
- package/dist/hooks/useScrollLock/index.d.ts +1 -0
- package/dist/hooks/useScrollLock/index.js +1 -0
- package/dist/hooks/useScrollLock/useScrollLock.svelte.d.ts +28 -0
- package/dist/hooks/useScrollLock/useScrollLock.svelte.js +79 -0
- package/dist/hooks/useThrottle/index.d.ts +1 -0
- package/dist/hooks/useThrottle/index.js +1 -0
- package/dist/hooks/useThrottle/useThrottle.svelte.d.ts +37 -0
- package/dist/hooks/useThrottle/useThrottle.svelte.js +72 -0
- package/dist/hooks/useTimers/index.d.ts +1 -0
- package/dist/hooks/useTimers/index.js +1 -0
- package/dist/hooks/useTimers/useTimers.svelte.d.ts +62 -0
- package/dist/hooks/useTimers/useTimers.svelte.js +90 -0
- package/dist/hooks/useTour/index.d.ts +1 -0
- package/dist/hooks/useTour/index.js +1 -0
- package/dist/hooks/useTour/useTour.svelte.d.ts +29 -0
- package/dist/hooks/useTour/useTour.svelte.js +194 -0
- package/dist/hooks/utils.d.ts +1 -0
- package/dist/hooks/utils.js +3 -0
- package/dist/index.d.ts +56 -51
- package/dist/index.js +56 -51
- package/dist/theme.css +3 -0
- package/package.json +4 -4
- package/dist/Alert/Alert.svelte +0 -131
- package/dist/Avatar/Avatar.svelte +0 -114
- package/dist/AvatarGroup/AvatarGroup.svelte +0 -71
- package/dist/Badge/Badge.svelte +0 -79
- package/dist/Breadcrumb/Breadcrumb.svelte +0 -101
- package/dist/Button/Button.svelte +0 -177
- package/dist/Card/Card.svelte +0 -54
- package/dist/Carousel/Carousel.svelte +0 -279
- package/dist/Checkbox/Checkbox.svelte +0 -161
- package/dist/Chip/Chip.svelte +0 -51
- package/dist/Collapsible/Collapsible.svelte +0 -69
- package/dist/Command/CommandTestWrapper.svelte +0 -13
- package/dist/Container/Container.svelte +0 -21
- package/dist/Drawer/Drawer.svelte +0 -204
- package/dist/DropdownMenu/DropdownMenuTriggerTestWrapper.svelte +0 -12
- package/dist/Editor/Editor.svelte +0 -762
- package/dist/Editor/EditorUrlPrompt.svelte +0 -111
- package/dist/Empty/Empty.svelte +0 -118
- package/dist/FieldGroup/FieldGroup.svelte +0 -53
- package/dist/Form/Form.svelte +0 -203
- package/dist/FormField/FormField.svelte +0 -186
- package/dist/Icon/Icon.svelte +0 -46
- package/dist/Input/Input.svelte +0 -199
- package/dist/Kbd/Kbd.svelte +0 -45
- package/dist/Link/Link.svelte +0 -168
- package/dist/PinInput/PinInput.svelte +0 -162
- package/dist/Popover/Popover.svelte +0 -122
- package/dist/Progress/Progress.svelte +0 -135
- package/dist/Select/Select.svelte +0 -461
- package/dist/SelectMenu/SelectMenu.svelte +0 -637
- package/dist/SelectMenu/SelectMenuFormFieldTestWrapper.svelte +0 -11
- package/dist/Separator/Separator.svelte +0 -77
- package/dist/Skeleton/Skeleton.svelte +0 -39
- package/dist/Slider/Slider.svelte +0 -129
- package/dist/Stepper/Stepper.svelte +0 -290
- package/dist/Switch/Switch.svelte +0 -150
- package/dist/Table/Table.svelte +0 -763
- package/dist/Tabs/Tabs.svelte +0 -188
- package/dist/Textarea/Textarea.svelte +0 -215
- package/dist/ThemeModeButton/ThemeModeButton.svelte +0 -74
- package/dist/Timeline/Timeline.svelte +0 -151
- package/dist/Tooltip/TooltipTestWrapper.svelte +0 -8
- package/dist/User/User.svelte +0 -98
- package/dist/hooks/HookContextProbe.svelte +0 -7
- package/dist/hooks/HookContextProvider.svelte +0 -9
- package/dist/hooks/HookEmitProbe.svelte +0 -14
- /package/dist/{Accordion → components/Accordion}/Accordion.svelte.d.ts +0 -0
- /package/dist/{Accordion → components/Accordion}/accordion.types.d.ts +0 -0
- /package/dist/{Accordion → components/Accordion}/accordion.types.js +0 -0
- /package/dist/{Accordion → components/Accordion}/accordion.variants.d.ts +0 -0
- /package/dist/{Accordion → components/Accordion}/accordion.variants.js +0 -0
- /package/dist/{Accordion → components/Accordion}/index.d.ts +0 -0
- /package/dist/{Accordion → components/Accordion}/index.js +0 -0
- /package/dist/{Alert → components/Alert}/Alert.svelte.d.ts +0 -0
- /package/dist/{Alert → components/Alert}/alert.types.d.ts +0 -0
- /package/dist/{Alert → components/Alert}/alert.types.js +0 -0
- /package/dist/{Alert → components/Alert}/alert.variants.d.ts +0 -0
- /package/dist/{Alert → components/Alert}/alert.variants.js +0 -0
- /package/dist/{Alert → components/Alert}/index.d.ts +0 -0
- /package/dist/{Alert → components/Alert}/index.js +0 -0
- /package/dist/{Avatar → components/Avatar}/Avatar.svelte.d.ts +0 -0
- /package/dist/{Avatar → components/Avatar}/avatar.types.d.ts +0 -0
- /package/dist/{Avatar → components/Avatar}/avatar.types.js +0 -0
- /package/dist/{Avatar → components/Avatar}/avatar.variants.d.ts +0 -0
- /package/dist/{Avatar → components/Avatar}/avatar.variants.js +0 -0
- /package/dist/{Avatar → components/Avatar}/index.d.ts +0 -0
- /package/dist/{Avatar → components/Avatar}/index.js +0 -0
- /package/dist/{AvatarGroup → components/AvatarGroup}/AvatarGroup.svelte.d.ts +0 -0
- /package/dist/{AvatarGroup → components/AvatarGroup}/avatar-group.types.d.ts +0 -0
- /package/dist/{AvatarGroup → components/AvatarGroup}/avatar-group.types.js +0 -0
- /package/dist/{AvatarGroup → components/AvatarGroup}/avatar-group.variants.d.ts +0 -0
- /package/dist/{AvatarGroup → components/AvatarGroup}/avatar-group.variants.js +0 -0
- /package/dist/{AvatarGroup → components/AvatarGroup}/index.d.ts +0 -0
- /package/dist/{AvatarGroup → components/AvatarGroup}/index.js +0 -0
- /package/dist/{Badge → components/Badge}/Badge.svelte.d.ts +0 -0
- /package/dist/{Badge → components/Badge}/badge.types.d.ts +0 -0
- /package/dist/{Badge → components/Badge}/badge.types.js +0 -0
- /package/dist/{Badge → components/Badge}/badge.variants.d.ts +0 -0
- /package/dist/{Badge → components/Badge}/badge.variants.js +0 -0
- /package/dist/{Badge → components/Badge}/index.d.ts +0 -0
- /package/dist/{Badge → components/Badge}/index.js +0 -0
- /package/dist/{Banner → components/Banner}/Banner.svelte.d.ts +0 -0
- /package/dist/{Banner → components/Banner}/banner.types.d.ts +0 -0
- /package/dist/{Banner → components/Banner}/banner.types.js +0 -0
- /package/dist/{Banner → components/Banner}/banner.variants.d.ts +0 -0
- /package/dist/{Banner → components/Banner}/banner.variants.js +0 -0
- /package/dist/{Banner → components/Banner}/index.d.ts +0 -0
- /package/dist/{Banner → components/Banner}/index.js +0 -0
- /package/dist/{Breadcrumb → components/Breadcrumb}/Breadcrumb.svelte.d.ts +0 -0
- /package/dist/{Breadcrumb → components/Breadcrumb}/breadcrumb.types.d.ts +0 -0
- /package/dist/{Breadcrumb → components/Breadcrumb}/breadcrumb.types.js +0 -0
- /package/dist/{Breadcrumb → components/Breadcrumb}/breadcrumb.variants.d.ts +0 -0
- /package/dist/{Breadcrumb → components/Breadcrumb}/breadcrumb.variants.js +0 -0
- /package/dist/{Breadcrumb → components/Breadcrumb}/index.d.ts +0 -0
- /package/dist/{Breadcrumb → components/Breadcrumb}/index.js +0 -0
- /package/dist/{Button → components/Button}/Button.svelte.d.ts +0 -0
- /package/dist/{Button → components/Button}/button.types.d.ts +0 -0
- /package/dist/{Button → components/Button}/button.types.js +0 -0
- /package/dist/{Button → components/Button}/button.variants.d.ts +0 -0
- /package/dist/{Button → components/Button}/button.variants.js +0 -0
- /package/dist/{Button → components/Button}/index.d.ts +0 -0
- /package/dist/{Button → components/Button}/index.js +0 -0
- /package/dist/{Calendar → components/Calendar}/Calendar.svelte.d.ts +0 -0
- /package/dist/{Calendar → components/Calendar}/calendar.types.d.ts +0 -0
- /package/dist/{Calendar → components/Calendar}/calendar.types.js +0 -0
- /package/dist/{Calendar → components/Calendar}/calendar.variants.d.ts +0 -0
- /package/dist/{Calendar → components/Calendar}/calendar.variants.js +0 -0
- /package/dist/{Calendar → components/Calendar}/index.d.ts +0 -0
- /package/dist/{Calendar → components/Calendar}/index.js +0 -0
- /package/dist/{Card → components/Card}/Card.svelte.d.ts +0 -0
- /package/dist/{Card → components/Card}/card.types.d.ts +0 -0
- /package/dist/{Card → components/Card}/card.types.js +0 -0
- /package/dist/{Card → components/Card}/card.variants.d.ts +0 -0
- /package/dist/{Card → components/Card}/card.variants.js +0 -0
- /package/dist/{Card → components/Card}/index.d.ts +0 -0
- /package/dist/{Card → components/Card}/index.js +0 -0
- /package/dist/{Carousel → components/Carousel}/Carousel.svelte.d.ts +0 -0
- /package/dist/{Carousel → components/Carousel}/carousel.types.d.ts +0 -0
- /package/dist/{Carousel → components/Carousel}/carousel.types.js +0 -0
- /package/dist/{Carousel → components/Carousel}/carousel.variants.d.ts +0 -0
- /package/dist/{Carousel → components/Carousel}/carousel.variants.js +0 -0
- /package/dist/{Carousel → components/Carousel}/index.d.ts +0 -0
- /package/dist/{Carousel → components/Carousel}/index.js +0 -0
- /package/dist/{Checkbox → components/Checkbox}/Checkbox.svelte.d.ts +0 -0
- /package/dist/{Checkbox → components/Checkbox}/checkbox.types.d.ts +0 -0
- /package/dist/{Checkbox → components/Checkbox}/checkbox.types.js +0 -0
- /package/dist/{Checkbox → components/Checkbox}/checkbox.variants.d.ts +0 -0
- /package/dist/{Checkbox → components/Checkbox}/checkbox.variants.js +0 -0
- /package/dist/{Checkbox → components/Checkbox}/index.d.ts +0 -0
- /package/dist/{Checkbox → components/Checkbox}/index.js +0 -0
- /package/dist/{CheckboxGroup → components/CheckboxGroup}/CheckboxGroup.svelte.d.ts +0 -0
- /package/dist/{CheckboxGroup → components/CheckboxGroup}/checkbox-group.types.d.ts +0 -0
- /package/dist/{CheckboxGroup → components/CheckboxGroup}/checkbox-group.types.js +0 -0
- /package/dist/{CheckboxGroup → components/CheckboxGroup}/checkbox-group.variants.d.ts +0 -0
- /package/dist/{CheckboxGroup → components/CheckboxGroup}/checkbox-group.variants.js +0 -0
- /package/dist/{CheckboxGroup → components/CheckboxGroup}/index.d.ts +0 -0
- /package/dist/{CheckboxGroup → components/CheckboxGroup}/index.js +0 -0
- /package/dist/{Chip → components/Chip}/Chip.svelte.d.ts +0 -0
- /package/dist/{Chip → components/Chip}/chip.types.d.ts +0 -0
- /package/dist/{Chip → components/Chip}/chip.types.js +0 -0
- /package/dist/{Chip → components/Chip}/chip.variants.d.ts +0 -0
- /package/dist/{Chip → components/Chip}/chip.variants.js +0 -0
- /package/dist/{Chip → components/Chip}/index.d.ts +0 -0
- /package/dist/{Chip → components/Chip}/index.js +0 -0
- /package/dist/{Collapsible → components/Collapsible}/Collapsible.svelte.d.ts +0 -0
- /package/dist/{Collapsible → components/Collapsible}/CollapsibleTestWrapper.svelte.d.ts +0 -0
- /package/dist/{Collapsible → components/Collapsible}/collapsible.types.d.ts +0 -0
- /package/dist/{Collapsible → components/Collapsible}/collapsible.types.js +0 -0
- /package/dist/{Collapsible → components/Collapsible}/collapsible.variants.d.ts +0 -0
- /package/dist/{Collapsible → components/Collapsible}/collapsible.variants.js +0 -0
- /package/dist/{Collapsible → components/Collapsible}/index.d.ts +0 -0
- /package/dist/{Collapsible → components/Collapsible}/index.js +0 -0
- /package/dist/{Command → components/Command}/Command.svelte.d.ts +0 -0
- /package/dist/{Command → components/Command}/CommandTestWrapper.svelte.d.ts +0 -0
- /package/dist/{Command → components/Command}/command.types.d.ts +0 -0
- /package/dist/{Command → components/Command}/command.types.js +0 -0
- /package/dist/{Command → components/Command}/command.variants.d.ts +0 -0
- /package/dist/{Command → components/Command}/command.variants.js +0 -0
- /package/dist/{Command → components/Command}/index.d.ts +0 -0
- /package/dist/{Command → components/Command}/index.js +0 -0
- /package/dist/{Container → components/Container}/Container.svelte.d.ts +0 -0
- /package/dist/{Container → components/Container}/container.types.d.ts +0 -0
- /package/dist/{Container → components/Container}/container.types.js +0 -0
- /package/dist/{Container → components/Container}/container.variants.d.ts +0 -0
- /package/dist/{Container → components/Container}/container.variants.js +0 -0
- /package/dist/{Container → components/Container}/index.d.ts +0 -0
- /package/dist/{Container → components/Container}/index.js +0 -0
- /package/dist/{ContextMenu → components/ContextMenu}/ContextMenu.svelte.d.ts +0 -0
- /package/dist/{ContextMenu → components/ContextMenu}/context-menu.types.d.ts +0 -0
- /package/dist/{ContextMenu → components/ContextMenu}/context-menu.types.js +0 -0
- /package/dist/{ContextMenu → components/ContextMenu}/context-menu.variants.d.ts +0 -0
- /package/dist/{ContextMenu → components/ContextMenu}/context-menu.variants.js +0 -0
- /package/dist/{ContextMenu → components/ContextMenu}/index.d.ts +0 -0
- /package/dist/{ContextMenu → components/ContextMenu}/index.js +0 -0
- /package/dist/{Drawer → components/Drawer}/Drawer.svelte.d.ts +0 -0
- /package/dist/{Drawer → components/Drawer}/DrawerTriggerTestWrapper.svelte.d.ts +0 -0
- /package/dist/{Drawer → components/Drawer}/drawer.types.d.ts +0 -0
- /package/dist/{Drawer → components/Drawer}/drawer.types.js +0 -0
- /package/dist/{Drawer → components/Drawer}/drawer.variants.d.ts +0 -0
- /package/dist/{Drawer → components/Drawer}/drawer.variants.js +0 -0
- /package/dist/{Drawer → components/Drawer}/index.d.ts +0 -0
- /package/dist/{Drawer → components/Drawer}/index.js +0 -0
- /package/dist/{DropdownMenu → components/DropdownMenu}/DropdownMenu.svelte.d.ts +0 -0
- /package/dist/{DropdownMenu → components/DropdownMenu}/DropdownMenuTriggerTestWrapper.svelte.d.ts +0 -0
- /package/dist/{DropdownMenu → components/DropdownMenu}/dropdown-menu.types.d.ts +0 -0
- /package/dist/{DropdownMenu → components/DropdownMenu}/dropdown-menu.types.js +0 -0
- /package/dist/{DropdownMenu → components/DropdownMenu}/dropdown-menu.variants.d.ts +0 -0
- /package/dist/{DropdownMenu → components/DropdownMenu}/dropdown-menu.variants.js +0 -0
- /package/dist/{DropdownMenu → components/DropdownMenu}/index.d.ts +0 -0
- /package/dist/{DropdownMenu → components/DropdownMenu}/index.js +0 -0
- /package/dist/{Editor → components/Editor}/Editor.svelte.d.ts +0 -0
- /package/dist/{Editor → components/Editor}/EditorUrlPrompt.svelte.d.ts +0 -0
- /package/dist/{Editor → components/Editor}/SlashPopup.svelte.d.ts +0 -0
- /package/dist/{Editor → components/Editor}/editor.extensions.d.ts +0 -0
- /package/dist/{Editor → components/Editor}/editor.extensions.js +0 -0
- /package/dist/{Editor → components/Editor}/editor.schemas.d.ts +0 -0
- /package/dist/{Editor → components/Editor}/editor.schemas.js +0 -0
- /package/dist/{Editor → components/Editor}/editor.slash.svelte.d.ts +0 -0
- /package/dist/{Editor → components/Editor}/editor.slash.svelte.js +0 -0
- /package/dist/{Editor → components/Editor}/editor.suggestion.d.ts +0 -0
- /package/dist/{Editor → components/Editor}/editor.suggestion.js +0 -0
- /package/dist/{Editor → components/Editor}/editor.toolbar.d.ts +0 -0
- /package/dist/{Editor → components/Editor}/editor.toolbar.js +0 -0
- /package/dist/{Editor → components/Editor}/editor.types.d.ts +0 -0
- /package/dist/{Editor → components/Editor}/editor.types.js +0 -0
- /package/dist/{Editor → components/Editor}/editor.variants.d.ts +0 -0
- /package/dist/{Editor → components/Editor}/editor.variants.js +0 -0
- /package/dist/{Editor → components/Editor}/index.d.ts +0 -0
- /package/dist/{Editor → components/Editor}/index.js +0 -0
- /package/dist/{Empty → components/Empty}/Empty.svelte.d.ts +0 -0
- /package/dist/{Empty → components/Empty}/empty.types.d.ts +0 -0
- /package/dist/{Empty → components/Empty}/empty.types.js +0 -0
- /package/dist/{Empty → components/Empty}/empty.variants.d.ts +0 -0
- /package/dist/{Empty → components/Empty}/empty.variants.js +0 -0
- /package/dist/{Empty → components/Empty}/index.d.ts +0 -0
- /package/dist/{Empty → components/Empty}/index.js +0 -0
- /package/dist/{FieldGroup/field-group.types.js → components/Error/error.types.js} +0 -0
- /package/dist/{FieldGroup → components/FieldGroup}/FieldGroup.svelte.d.ts +0 -0
- /package/dist/{FieldGroup → components/FieldGroup}/field-group.types.d.ts +0 -0
- /package/dist/{FileUpload/file-upload.types.js → components/FieldGroup/field-group.types.js} +0 -0
- /package/dist/{FieldGroup → components/FieldGroup}/field-group.variants.d.ts +0 -0
- /package/dist/{FieldGroup → components/FieldGroup}/field-group.variants.js +0 -0
- /package/dist/{FieldGroup → components/FieldGroup}/index.d.ts +0 -0
- /package/dist/{FieldGroup → components/FieldGroup}/index.js +0 -0
- /package/dist/{FileUpload → components/FileUpload}/FileUpload.svelte.d.ts +0 -0
- /package/dist/{FileUpload → components/FileUpload}/file-upload.types.d.ts +0 -0
- /package/dist/{FormField/form-field.types.js → components/FileUpload/file-upload.types.js} +0 -0
- /package/dist/{FileUpload → components/FileUpload}/file-upload.variants.d.ts +0 -0
- /package/dist/{FileUpload → components/FileUpload}/file-upload.variants.js +0 -0
- /package/dist/{FileUpload → components/FileUpload}/index.d.ts +0 -0
- /package/dist/{FileUpload → components/FileUpload}/index.js +0 -0
- /package/dist/{Icon/icon.types.js → components/Footer/footer-columns.types.js} +0 -0
- /package/dist/{Input/input.types.js → components/Footer/footer.types.js} +0 -0
- /package/dist/{Form → components/Form}/Form.svelte.d.ts +0 -0
- /package/dist/{Form → components/Form}/form.context.svelte.d.ts +0 -0
- /package/dist/{Form → components/Form}/form.types.d.ts +0 -0
- /package/dist/{Form → components/Form}/form.types.js +0 -0
- /package/dist/{Form → components/Form}/index.d.ts +0 -0
- /package/dist/{Form → components/Form}/index.js +0 -0
- /package/dist/{Form → components/Form}/validate-schema.d.ts +0 -0
- /package/dist/{Form → components/Form}/validate-schema.js +0 -0
- /package/dist/{FormField → components/FormField}/FormField.svelte.d.ts +0 -0
- /package/dist/{FormField → components/FormField}/form-field.types.d.ts +0 -0
- /package/dist/{Kbd/kbd.types.js → components/FormField/form-field.types.js} +0 -0
- /package/dist/{FormField → components/FormField}/form-field.variants.d.ts +0 -0
- /package/dist/{FormField → components/FormField}/form-field.variants.js +0 -0
- /package/dist/{FormField → components/FormField}/index.d.ts +0 -0
- /package/dist/{FormField → components/FormField}/index.js +0 -0
- /package/dist/{Link/link.types.js → components/Header/header.types.js} +0 -0
- /package/dist/{Icon → components/Icon}/Icon.svelte.d.ts +0 -0
- /package/dist/{Icon → components/Icon}/icon.types.d.ts +0 -0
- /package/dist/{Modal/modal.types.js → components/Icon/icon.types.js} +0 -0
- /package/dist/{Icon → components/Icon}/index.d.ts +0 -0
- /package/dist/{Icon → components/Icon}/index.js +0 -0
- /package/dist/{Input → components/Input}/Input.svelte.d.ts +0 -0
- /package/dist/{Input → components/Input}/index.d.ts +0 -0
- /package/dist/{Input → components/Input}/index.js +0 -0
- /package/dist/{Pagination/pagination.types.js → components/Input/input.types.js} +0 -0
- /package/dist/{Input → components/Input}/input.variants.d.ts +0 -0
- /package/dist/{Input → components/Input}/input.variants.js +0 -0
- /package/dist/{Kbd → components/Kbd}/Kbd.svelte.d.ts +0 -0
- /package/dist/{Kbd → components/Kbd}/index.d.ts +0 -0
- /package/dist/{Kbd → components/Kbd}/index.js +0 -0
- /package/dist/{Kbd → components/Kbd}/kbd.types.d.ts +0 -0
- /package/dist/{PinInput/pin-input.types.js → components/Kbd/kbd.types.js} +0 -0
- /package/dist/{Kbd → components/Kbd}/kbd.variants.d.ts +0 -0
- /package/dist/{Kbd → components/Kbd}/kbd.variants.js +0 -0
- /package/dist/{Kbd → components/Kbd}/useKbd.svelte.d.ts +0 -0
- /package/dist/{Kbd → components/Kbd}/useKbd.svelte.js +0 -0
- /package/dist/{Link → components/Link}/Link.svelte.d.ts +0 -0
- /package/dist/{Link → components/Link}/index.d.ts +0 -0
- /package/dist/{Link → components/Link}/index.js +0 -0
- /package/dist/{Link → components/Link}/link.types.d.ts +0 -0
- /package/dist/{Popover/popover.types.js → components/Link/link.types.js} +0 -0
- /package/dist/{Link → components/Link}/link.variants.d.ts +0 -0
- /package/dist/{Link → components/Link}/link.variants.js +0 -0
- /package/dist/{Progress/progress.types.js → components/Main/main.types.js} +0 -0
- /package/dist/{Modal → components/Modal}/Modal.svelte.d.ts +0 -0
- /package/dist/{Modal → components/Modal}/ModalTriggerTestWrapper.svelte.d.ts +0 -0
- /package/dist/{Modal → components/Modal}/index.d.ts +0 -0
- /package/dist/{Modal → components/Modal}/index.js +0 -0
- /package/dist/{Modal → components/Modal}/modal.types.d.ts +0 -0
- /package/dist/{RadioGroup/radio-group.types.js → components/Modal/modal.types.js} +0 -0
- /package/dist/{Modal → components/Modal}/modal.variants.d.ts +0 -0
- /package/dist/{Modal → components/Modal}/modal.variants.js +0 -0
- /package/dist/{Pagination → components/Pagination}/Pagination.svelte.d.ts +0 -0
- /package/dist/{Pagination → components/Pagination}/index.d.ts +0 -0
- /package/dist/{Pagination → components/Pagination}/index.js +0 -0
- /package/dist/{Pagination → components/Pagination}/pagination.types.d.ts +0 -0
- /package/dist/{Select/select.types.js → components/Pagination/pagination.types.js} +0 -0
- /package/dist/{Pagination → components/Pagination}/pagination.variants.d.ts +0 -0
- /package/dist/{Pagination → components/Pagination}/pagination.variants.js +0 -0
- /package/dist/{PinInput → components/PinInput}/PinInput.svelte.d.ts +0 -0
- /package/dist/{PinInput → components/PinInput}/index.d.ts +0 -0
- /package/dist/{PinInput → components/PinInput}/index.js +0 -0
- /package/dist/{PinInput → components/PinInput}/pin-input.types.d.ts +0 -0
- /package/dist/{SelectMenu/select-menu.types.js → components/PinInput/pin-input.types.js} +0 -0
- /package/dist/{PinInput → components/PinInput}/pin-input.variants.d.ts +0 -0
- /package/dist/{PinInput → components/PinInput}/pin-input.variants.js +0 -0
- /package/dist/{Popover → components/Popover}/Popover.svelte.d.ts +0 -0
- /package/dist/{Popover → components/Popover}/index.d.ts +0 -0
- /package/dist/{Popover → components/Popover}/index.js +0 -0
- /package/dist/{Popover → components/Popover}/popover.types.d.ts +0 -0
- /package/dist/{Separator/separator.types.js → components/Popover/popover.types.js} +0 -0
- /package/dist/{Popover → components/Popover}/popover.variants.d.ts +0 -0
- /package/dist/{Popover → components/Popover}/popover.variants.js +0 -0
- /package/dist/{Progress → components/Progress}/Progress.svelte.d.ts +0 -0
- /package/dist/{Progress → components/Progress}/index.d.ts +0 -0
- /package/dist/{Progress → components/Progress}/index.js +0 -0
- /package/dist/{Progress → components/Progress}/progress.types.d.ts +0 -0
- /package/dist/{Skeleton/skeleton.types.js → components/Progress/progress.types.js} +0 -0
- /package/dist/{Progress → components/Progress}/progress.variants.d.ts +0 -0
- /package/dist/{Progress → components/Progress}/progress.variants.js +0 -0
- /package/dist/{RadioGroup → components/RadioGroup}/RadioGroup.svelte.d.ts +0 -0
- /package/dist/{RadioGroup → components/RadioGroup}/index.d.ts +0 -0
- /package/dist/{RadioGroup → components/RadioGroup}/index.js +0 -0
- /package/dist/{RadioGroup → components/RadioGroup}/radio-group.types.d.ts +0 -0
- /package/dist/{Slideover/slideover.types.js → components/RadioGroup/radio-group.types.js} +0 -0
- /package/dist/{RadioGroup → components/RadioGroup}/radio-group.variants.d.ts +0 -0
- /package/dist/{RadioGroup → components/RadioGroup}/radio-group.variants.js +0 -0
- /package/dist/{Select → components/Select}/Select.svelte.d.ts +0 -0
- /package/dist/{Select → components/Select}/index.d.ts +0 -0
- /package/dist/{Select → components/Select}/index.js +0 -0
- /package/dist/{Select → components/Select}/select.types.d.ts +0 -0
- /package/dist/{Slider/slider.types.js → components/Select/select.types.js} +0 -0
- /package/dist/{Select → components/Select}/select.variants.d.ts +0 -0
- /package/dist/{Select → components/Select}/select.variants.js +0 -0
- /package/dist/{SelectMenu → components/SelectMenu}/SelectMenu.svelte.d.ts +0 -0
- /package/dist/{SelectMenu → components/SelectMenu}/SelectMenuFormFieldTestWrapper.svelte.d.ts +0 -0
- /package/dist/{SelectMenu → components/SelectMenu}/index.d.ts +0 -0
- /package/dist/{SelectMenu → components/SelectMenu}/index.js +0 -0
- /package/dist/{SelectMenu → components/SelectMenu}/select-menu.types.d.ts +0 -0
- /package/dist/{Stepper/stepper.types.js → components/SelectMenu/select-menu.types.js} +0 -0
- /package/dist/{SelectMenu → components/SelectMenu}/select-menu.variants.d.ts +0 -0
- /package/dist/{SelectMenu → components/SelectMenu}/select-menu.variants.js +0 -0
- /package/dist/{Separator → components/Separator}/Separator.svelte.d.ts +0 -0
- /package/dist/{Separator → components/Separator}/index.d.ts +0 -0
- /package/dist/{Separator → components/Separator}/index.js +0 -0
- /package/dist/{Separator → components/Separator}/separator.types.d.ts +0 -0
- /package/dist/{Switch/switch.types.js → components/Separator/separator.types.js} +0 -0
- /package/dist/{Separator → components/Separator}/separator.variants.d.ts +0 -0
- /package/dist/{Separator → components/Separator}/separator.variants.js +0 -0
- /package/dist/{Skeleton → components/Skeleton}/Skeleton.svelte.d.ts +0 -0
- /package/dist/{Skeleton → components/Skeleton}/index.d.ts +0 -0
- /package/dist/{Skeleton → components/Skeleton}/index.js +0 -0
- /package/dist/{Skeleton → components/Skeleton}/skeleton.types.d.ts +0 -0
- /package/dist/{Table/table.types.js → components/Skeleton/skeleton.types.js} +0 -0
- /package/dist/{Skeleton → components/Skeleton}/skeleton.variants.d.ts +0 -0
- /package/dist/{Skeleton → components/Skeleton}/skeleton.variants.js +0 -0
- /package/dist/{Slideover → components/Slideover}/Slideover.svelte.d.ts +0 -0
- /package/dist/{Slideover → components/Slideover}/SlideoverTriggerTestWrapper.svelte.d.ts +0 -0
- /package/dist/{Slideover → components/Slideover}/index.d.ts +0 -0
- /package/dist/{Slideover → components/Slideover}/index.js +0 -0
- /package/dist/{Slideover → components/Slideover}/slideover.types.d.ts +0 -0
- /package/dist/{Tabs/tabs.types.js → components/Slideover/slideover.types.js} +0 -0
- /package/dist/{Slideover → components/Slideover}/slideover.variants.d.ts +0 -0
- /package/dist/{Slideover → components/Slideover}/slideover.variants.js +0 -0
- /package/dist/{Slider → components/Slider}/Slider.svelte.d.ts +0 -0
- /package/dist/{Slider → components/Slider}/index.d.ts +0 -0
- /package/dist/{Slider → components/Slider}/index.js +0 -0
- /package/dist/{Slider → components/Slider}/slider.types.d.ts +0 -0
- /package/dist/{Textarea/textarea.types.js → components/Slider/slider.types.js} +0 -0
- /package/dist/{Slider → components/Slider}/slider.variants.d.ts +0 -0
- /package/dist/{Slider → components/Slider}/slider.variants.js +0 -0
- /package/dist/{Stepper → components/Stepper}/Stepper.svelte.d.ts +0 -0
- /package/dist/{Stepper → components/Stepper}/index.d.ts +0 -0
- /package/dist/{Stepper → components/Stepper}/index.js +0 -0
- /package/dist/{Stepper → components/Stepper}/stepper.types.d.ts +0 -0
- /package/dist/{ThemeModeButton/theme-mode-button.types.js → components/Stepper/stepper.types.js} +0 -0
- /package/dist/{Stepper → components/Stepper}/stepper.variants.d.ts +0 -0
- /package/dist/{Stepper → components/Stepper}/stepper.variants.js +0 -0
- /package/dist/{Switch → components/Switch}/Switch.svelte.d.ts +0 -0
- /package/dist/{Switch → components/Switch}/index.d.ts +0 -0
- /package/dist/{Switch → components/Switch}/index.js +0 -0
- /package/dist/{Switch → components/Switch}/switch.types.d.ts +0 -0
- /package/dist/{Timeline/timeline.types.js → components/Switch/switch.types.js} +0 -0
- /package/dist/{Switch → components/Switch}/switch.variants.d.ts +0 -0
- /package/dist/{Switch → components/Switch}/switch.variants.js +0 -0
- /package/dist/{Table → components/Table}/Table.svelte.d.ts +0 -0
- /package/dist/{Table → components/Table}/index.d.ts +0 -0
- /package/dist/{Table → components/Table}/index.js +0 -0
- /package/dist/{Table → components/Table}/table.types.d.ts +0 -0
- /package/dist/{Toast/toast.types.js → components/Table/table.types.js} +0 -0
- /package/dist/{Table → components/Table}/table.utils.d.ts +0 -0
- /package/dist/{Table → components/Table}/table.utils.js +0 -0
- /package/dist/{Table → components/Table}/table.variants.d.ts +0 -0
- /package/dist/{Table → components/Table}/table.variants.js +0 -0
- /package/dist/{Tabs → components/Tabs}/Tabs.svelte.d.ts +0 -0
- /package/dist/{Tabs → components/Tabs}/index.d.ts +0 -0
- /package/dist/{Tabs → components/Tabs}/index.js +0 -0
- /package/dist/{Tabs → components/Tabs}/tabs.types.d.ts +0 -0
- /package/dist/{Tooltip/tooltip.types.js → components/Tabs/tabs.types.js} +0 -0
- /package/dist/{Tabs → components/Tabs}/tabs.variants.d.ts +0 -0
- /package/dist/{Tabs → components/Tabs}/tabs.variants.js +0 -0
- /package/dist/{Textarea → components/Textarea}/Textarea.svelte.d.ts +0 -0
- /package/dist/{Textarea → components/Textarea}/index.d.ts +0 -0
- /package/dist/{Textarea → components/Textarea}/index.js +0 -0
- /package/dist/{Textarea → components/Textarea}/textarea.types.d.ts +0 -0
- /package/dist/{User/user.types.js → components/Textarea/textarea.types.js} +0 -0
- /package/dist/{Textarea → components/Textarea}/textarea.variants.d.ts +0 -0
- /package/dist/{Textarea → components/Textarea}/textarea.variants.js +0 -0
- /package/dist/{ThemeModeButton → components/ThemeModeButton}/ThemeModeButton.svelte.d.ts +0 -0
- /package/dist/{ThemeModeButton → components/ThemeModeButton}/index.d.ts +0 -0
- /package/dist/{ThemeModeButton → components/ThemeModeButton}/index.js +0 -0
- /package/dist/{ThemeModeButton → components/ThemeModeButton}/theme-mode-button.types.d.ts +0 -0
- /package/dist/{ThemeModeButton → components/ThemeModeButton}/theme-mode-button.variants.d.ts +0 -0
- /package/dist/{ThemeModeButton → components/ThemeModeButton}/theme-mode-button.variants.js +0 -0
- /package/dist/{Timeline → components/Timeline}/Timeline.svelte.d.ts +0 -0
- /package/dist/{Timeline → components/Timeline}/index.d.ts +0 -0
- /package/dist/{Timeline → components/Timeline}/index.js +0 -0
- /package/dist/{Timeline → components/Timeline}/timeline.types.d.ts +0 -0
- /package/dist/{Timeline → components/Timeline}/timeline.variants.d.ts +0 -0
- /package/dist/{Timeline → components/Timeline}/timeline.variants.js +0 -0
- /package/dist/{Toast → components/Toast}/Toaster.svelte.d.ts +0 -0
- /package/dist/{Toast → components/Toast}/index.d.ts +0 -0
- /package/dist/{Toast → components/Toast}/index.js +0 -0
- /package/dist/{Toast → components/Toast}/toast.d.ts +0 -0
- /package/dist/{Toast → components/Toast}/toast.js +0 -0
- /package/dist/{Toast → components/Toast}/toast.types.d.ts +0 -0
- /package/dist/{Toast → components/Toast}/toast.variants.d.ts +0 -0
- /package/dist/{Toast → components/Toast}/toast.variants.js +0 -0
- /package/dist/{Tooltip → components/Tooltip}/Tooltip.svelte.d.ts +0 -0
- /package/dist/{Tooltip → components/Tooltip}/TooltipTestWrapper.svelte.d.ts +0 -0
- /package/dist/{Tooltip → components/Tooltip}/index.d.ts +0 -0
- /package/dist/{Tooltip → components/Tooltip}/index.js +0 -0
- /package/dist/{Tooltip → components/Tooltip}/tooltip.types.d.ts +0 -0
- /package/dist/{Tooltip → components/Tooltip}/tooltip.variants.d.ts +0 -0
- /package/dist/{Tooltip → components/Tooltip}/tooltip.variants.js +0 -0
- /package/dist/{User → components/User}/User.svelte.d.ts +0 -0
- /package/dist/{User → components/User}/index.d.ts +0 -0
- /package/dist/{User → components/User}/index.js +0 -0
- /package/dist/{User → components/User}/user.types.d.ts +0 -0
- /package/dist/{User → components/User}/user.variants.d.ts +0 -0
- /package/dist/{User → components/User}/user.variants.js +0 -0
- /package/dist/hooks/{useClickOutside.svelte.d.ts → useClickOutside/useClickOutside.svelte.d.ts} +0 -0
- /package/dist/hooks/{useClipboard.svelte.js → useClipboard/useClipboard.svelte.js} +0 -0
- /package/dist/hooks/{useDebounce.svelte.d.ts → useDebounce/useDebounce.svelte.d.ts} +0 -0
- /package/dist/hooks/{useDebounce.svelte.js → useDebounce/useDebounce.svelte.js} +0 -0
- /package/dist/hooks/{useEscapeKeydown.svelte.d.ts → useEscapeKeydown/useEscapeKeydown.svelte.d.ts} +0 -0
- /package/dist/hooks/{HookContextProbe.svelte.d.ts → useFormField/HookContextProbe.svelte.d.ts} +0 -0
- /package/dist/hooks/{HookContextProvider.svelte.d.ts → useFormField/HookContextProvider.svelte.d.ts} +0 -0
- /package/dist/hooks/{HookEmitProbe.svelte.d.ts → useFormField/HookEmitProbe.svelte.d.ts} +0 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
<script lang="ts" module></script>
|
|
2
|
+
|
|
3
|
+
<script lang="ts" generics="T extends InputValue = InputValue">import { inputVariants, inputDefaults } from "./input.variants.js";
|
|
4
|
+
import { getComponentConfig, iconsDefaults } from "../../config.js";
|
|
5
|
+
import { getContext } from "svelte";
|
|
6
|
+
import {
|
|
7
|
+
fieldGroupVariantWithRoot
|
|
8
|
+
} from "../FieldGroup/field-group.variants.js";
|
|
9
|
+
import Icon from "../Icon/Icon.svelte";
|
|
10
|
+
import Avatar from "../Avatar/Avatar.svelte";
|
|
11
|
+
import { useFormField, useFormFieldEmit } from "../../hooks/useFormField/index.js";
|
|
12
|
+
const config = getComponentConfig("input", inputDefaults);
|
|
13
|
+
const icons = getComponentConfig("icons", iconsDefaults);
|
|
14
|
+
let {
|
|
15
|
+
ref = $bindable(null),
|
|
16
|
+
value = $bindable(),
|
|
17
|
+
ui,
|
|
18
|
+
id,
|
|
19
|
+
name,
|
|
20
|
+
color = config.defaultVariants.color,
|
|
21
|
+
variant = config.defaultVariants.variant,
|
|
22
|
+
size,
|
|
23
|
+
type = "text",
|
|
24
|
+
highlight,
|
|
25
|
+
loading = false,
|
|
26
|
+
loadingIcon = icons.loading,
|
|
27
|
+
disabled = false,
|
|
28
|
+
icon,
|
|
29
|
+
leadingIcon,
|
|
30
|
+
trailingIcon,
|
|
31
|
+
trailing = false,
|
|
32
|
+
avatar,
|
|
33
|
+
leadingSlot,
|
|
34
|
+
trailingSlot,
|
|
35
|
+
class: className,
|
|
36
|
+
onblur,
|
|
37
|
+
oninput,
|
|
38
|
+
onchange,
|
|
39
|
+
onfocus,
|
|
40
|
+
...restProps
|
|
41
|
+
} = $props();
|
|
42
|
+
const formFieldContext = useFormField();
|
|
43
|
+
const emit = useFormFieldEmit();
|
|
44
|
+
function handleBlur(event) {
|
|
45
|
+
emit.onBlur();
|
|
46
|
+
onblur?.(event);
|
|
47
|
+
}
|
|
48
|
+
function handleInput(event) {
|
|
49
|
+
emit.onInput();
|
|
50
|
+
oninput?.(event);
|
|
51
|
+
}
|
|
52
|
+
function handleChange(event) {
|
|
53
|
+
emit.onChange();
|
|
54
|
+
onchange?.(event);
|
|
55
|
+
}
|
|
56
|
+
function handleFocus(event) {
|
|
57
|
+
emit.onFocus();
|
|
58
|
+
onfocus?.(event);
|
|
59
|
+
}
|
|
60
|
+
const fieldGroupContext = getContext("fieldGroup");
|
|
61
|
+
const hasError = $derived(
|
|
62
|
+
formFieldContext?.error !== void 0 && formFieldContext?.error !== false
|
|
63
|
+
);
|
|
64
|
+
const resolvedSize = $derived(
|
|
65
|
+
size ?? formFieldContext?.size ?? fieldGroupContext?.size ?? config.defaultVariants.size
|
|
66
|
+
);
|
|
67
|
+
const resolvedColor = $derived(hasError ? "error" : color);
|
|
68
|
+
const resolvedHighlight = $derived(highlight ?? hasError);
|
|
69
|
+
const fieldGroupClass = $derived(
|
|
70
|
+
fieldGroupContext ? fieldGroupVariantWithRoot.fieldGroup[fieldGroupContext.orientation ?? "horizontal"] : void 0
|
|
71
|
+
);
|
|
72
|
+
const resolvedId = $derived(id ?? formFieldContext?.ariaId);
|
|
73
|
+
const resolvedName = $derived(name ?? formFieldContext?.name);
|
|
74
|
+
const loadingLeading = $derived(loading && !trailing);
|
|
75
|
+
const loadingTrailing = $derived(loading && trailing);
|
|
76
|
+
const isLeading = $derived(!!icon && !trailing || !!leadingIcon || !!avatar || loadingLeading);
|
|
77
|
+
const isTrailing = $derived(!!icon && trailing || !!trailingIcon || loadingTrailing);
|
|
78
|
+
const leadingIconName = $derived(leadingIcon || (!!icon && !trailing ? icon : void 0));
|
|
79
|
+
const trailingIconName = $derived(trailingIcon || (!!icon && trailing ? icon : void 0));
|
|
80
|
+
const ariaDescribedBy = $derived(
|
|
81
|
+
!formFieldContext ? void 0 : hasError ? `${formFieldContext.ariaId}-error` : `${formFieldContext.ariaId}-description ${formFieldContext.ariaId}-help`
|
|
82
|
+
);
|
|
83
|
+
const variantSlots = $derived(
|
|
84
|
+
inputVariants({
|
|
85
|
+
variant,
|
|
86
|
+
color: resolvedColor,
|
|
87
|
+
size: resolvedSize,
|
|
88
|
+
leading: isLeading,
|
|
89
|
+
trailing: isTrailing,
|
|
90
|
+
highlight: resolvedHighlight
|
|
91
|
+
})
|
|
92
|
+
);
|
|
93
|
+
const classes = $derived({
|
|
94
|
+
root: variantSlots.root({
|
|
95
|
+
class: [config.slots.root, fieldGroupClass?.root, className, ui?.root]
|
|
96
|
+
}),
|
|
97
|
+
base: variantSlots.base({
|
|
98
|
+
class: [config.slots.base, fieldGroupClass?.base, ui?.base]
|
|
99
|
+
}),
|
|
100
|
+
leading: variantSlots.leading({ class: [config.slots.leading, ui?.leading] }),
|
|
101
|
+
leadingIcon: variantSlots.leadingIcon({
|
|
102
|
+
class: [config.slots.leadingIcon, ui?.leadingIcon]
|
|
103
|
+
}),
|
|
104
|
+
leadingAvatar: variantSlots.leadingAvatar({
|
|
105
|
+
class: [config.slots.leadingAvatar, ui?.leadingAvatar]
|
|
106
|
+
}),
|
|
107
|
+
leadingAvatarSize: variantSlots.leadingAvatarSize(),
|
|
108
|
+
trailing: variantSlots.trailing({ class: [config.slots.trailing, ui?.trailing] }),
|
|
109
|
+
trailingIcon: variantSlots.trailingIcon({
|
|
110
|
+
class: [config.slots.trailingIcon, ui?.trailingIcon]
|
|
111
|
+
})
|
|
112
|
+
});
|
|
113
|
+
</script>
|
|
114
|
+
|
|
115
|
+
<div class={classes.root}>
|
|
116
|
+
{#if leadingSlot}
|
|
117
|
+
<span class={classes.leading}>
|
|
118
|
+
{@render leadingSlot()}
|
|
119
|
+
</span>
|
|
120
|
+
{:else if loadingLeading}
|
|
121
|
+
<span class={classes.leading}>
|
|
122
|
+
<span class="inline-flex animate-spin">
|
|
123
|
+
<Icon name={loadingIcon} class={classes.leadingIcon} />
|
|
124
|
+
</span>
|
|
125
|
+
</span>
|
|
126
|
+
{:else if avatar}
|
|
127
|
+
<span class={classes.leading}>
|
|
128
|
+
<Avatar {...avatar} size={classes.leadingAvatarSize} class={classes.leadingAvatar} />
|
|
129
|
+
</span>
|
|
130
|
+
{:else if leadingIconName}
|
|
131
|
+
<span class={classes.leading}>
|
|
132
|
+
<Icon name={leadingIconName} class={classes.leadingIcon} />
|
|
133
|
+
</span>
|
|
134
|
+
{/if}
|
|
135
|
+
|
|
136
|
+
<input
|
|
137
|
+
{...restProps}
|
|
138
|
+
bind:this={ref}
|
|
139
|
+
bind:value
|
|
140
|
+
{type}
|
|
141
|
+
id={resolvedId}
|
|
142
|
+
name={resolvedName}
|
|
143
|
+
disabled={disabled || loading}
|
|
144
|
+
aria-describedby={ariaDescribedBy}
|
|
145
|
+
aria-invalid={resolvedHighlight ? true : undefined}
|
|
146
|
+
class={classes.base}
|
|
147
|
+
onblur={handleBlur}
|
|
148
|
+
oninput={handleInput}
|
|
149
|
+
onchange={handleChange}
|
|
150
|
+
onfocus={handleFocus}
|
|
151
|
+
/>
|
|
152
|
+
|
|
153
|
+
{#if trailingSlot}
|
|
154
|
+
<span class={classes.trailing}>
|
|
155
|
+
{@render trailingSlot()}
|
|
156
|
+
</span>
|
|
157
|
+
{:else if loadingTrailing}
|
|
158
|
+
<span class={classes.trailing}>
|
|
159
|
+
<span class="inline-flex animate-spin">
|
|
160
|
+
<Icon name={loadingIcon} class={classes.trailingIcon} />
|
|
161
|
+
</span>
|
|
162
|
+
</span>
|
|
163
|
+
{:else if trailingIconName}
|
|
164
|
+
<span class={classes.trailing}>
|
|
165
|
+
<Icon name={trailingIconName} class={classes.trailingIcon} />
|
|
166
|
+
</span>
|
|
167
|
+
{/if}
|
|
168
|
+
</div>
|
|
@@ -7,9 +7,9 @@ import type { AvatarProps } from '../Avatar/avatar.types.js';
|
|
|
7
7
|
* Valid value types for `<Input bind:value>`.
|
|
8
8
|
*
|
|
9
9
|
* Covers every HTML input `type` except `"file"` (which uses `FileList` and is
|
|
10
|
-
* typically handled via `onchange` events, not `bind:value`).
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* typically handled via `onchange` events, not `bind:value`). It's the minimum
|
|
11
|
+
* union that covers real-world usage while still giving TypeScript enough to
|
|
12
|
+
* catch mistakes.
|
|
13
13
|
*
|
|
14
14
|
* Use with the component generic for strict typing:
|
|
15
15
|
* ```ts
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script lang="ts" module>import { resolveKey } from "./useKbd.svelte.js";
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<script lang="ts">import { onMount } from "svelte";
|
|
5
|
+
import { kbdVariants, kbdDefaults } from "./kbd.variants.js";
|
|
6
|
+
import { getComponentConfig } from "../../config.js";
|
|
7
|
+
const config = getComponentConfig("kbd", kbdDefaults);
|
|
8
|
+
let {
|
|
9
|
+
ref = $bindable(null),
|
|
10
|
+
as = "kbd",
|
|
11
|
+
value,
|
|
12
|
+
color = config.defaultVariants.color,
|
|
13
|
+
size = config.defaultVariants.size,
|
|
14
|
+
variant = config.defaultVariants.variant,
|
|
15
|
+
ui,
|
|
16
|
+
class: className,
|
|
17
|
+
children,
|
|
18
|
+
...restProps
|
|
19
|
+
} = $props();
|
|
20
|
+
let mounted = $state(false);
|
|
21
|
+
onMount(() => mounted = true);
|
|
22
|
+
const displayValue = $derived(resolveKey(value, mounted));
|
|
23
|
+
const kbdClass = $derived(
|
|
24
|
+
kbdVariants({ color, size, variant }).base({
|
|
25
|
+
class: [config.slots.base, className, ui?.base]
|
|
26
|
+
})
|
|
27
|
+
);
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<svelte:element this={as} bind:this={ref} class={kbdClass} {...restProps}>
|
|
31
|
+
{#if children}
|
|
32
|
+
{@render children()}
|
|
33
|
+
{:else if displayValue}
|
|
34
|
+
{displayValue}
|
|
35
|
+
{/if}
|
|
36
|
+
</svelte:element>
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
<script lang="ts" module>function parseUrl(url, baseUrl) {
|
|
2
|
+
try {
|
|
3
|
+
const parsed = new URL(url, baseUrl.origin);
|
|
4
|
+
return {
|
|
5
|
+
pathname: parsed.pathname,
|
|
6
|
+
query: parsed.searchParams,
|
|
7
|
+
hash: parsed.hash
|
|
8
|
+
};
|
|
9
|
+
} catch {
|
|
10
|
+
return {
|
|
11
|
+
pathname: url,
|
|
12
|
+
query: new URLSearchParams(),
|
|
13
|
+
hash: ""
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function isQueryMatch(linkQuery, currentQuery, mode) {
|
|
18
|
+
if (mode === false) return true;
|
|
19
|
+
if (mode === "partial") {
|
|
20
|
+
for (const [key, value] of linkQuery) {
|
|
21
|
+
if (!currentQuery.getAll(key).includes(value)) return false;
|
|
22
|
+
}
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
if (linkQuery.size !== currentQuery.size) return false;
|
|
26
|
+
const sorted = (p) => new URLSearchParams([...p].sort()).toString();
|
|
27
|
+
return sorted(linkQuery) === sorted(currentQuery);
|
|
28
|
+
}
|
|
29
|
+
function isPathnameMatch(linkPath, currentPath, exactMatch) {
|
|
30
|
+
if (exactMatch) return linkPath === currentPath;
|
|
31
|
+
const link = linkPath.replace(/\/$/, "") || "/";
|
|
32
|
+
const current = currentPath.replace(/\/$/, "") || "/";
|
|
33
|
+
return link === "/" ? current === "/" : current === link || current.startsWith(link + "/");
|
|
34
|
+
}
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<script lang="ts">import { page } from "$app/state";
|
|
38
|
+
import { twMerge } from "tailwind-merge";
|
|
39
|
+
import { linkVariants, linkDefaults } from "./link.variants.js";
|
|
40
|
+
import { getComponentConfig } from "../../config.js";
|
|
41
|
+
const config = getComponentConfig("link", linkDefaults);
|
|
42
|
+
let {
|
|
43
|
+
ref = $bindable(null),
|
|
44
|
+
href,
|
|
45
|
+
type,
|
|
46
|
+
active,
|
|
47
|
+
exact = false,
|
|
48
|
+
exactQuery = false,
|
|
49
|
+
exactHash = false,
|
|
50
|
+
activeClass,
|
|
51
|
+
inactiveClass,
|
|
52
|
+
disabled = false,
|
|
53
|
+
raw = false,
|
|
54
|
+
external,
|
|
55
|
+
children,
|
|
56
|
+
class: className,
|
|
57
|
+
ui,
|
|
58
|
+
target,
|
|
59
|
+
rel,
|
|
60
|
+
onclick,
|
|
61
|
+
...restProps
|
|
62
|
+
} = $props();
|
|
63
|
+
const isLink = $derived(!!href);
|
|
64
|
+
const isExternal = $derived(
|
|
65
|
+
isLink && (external ?? (href.startsWith("http://") || href.startsWith("https://") || href.startsWith("//")))
|
|
66
|
+
);
|
|
67
|
+
const resolvedTarget = $derived(
|
|
68
|
+
isLink ? target ?? (isExternal ? "_blank" : void 0) : void 0
|
|
69
|
+
);
|
|
70
|
+
const resolvedRel = $derived(
|
|
71
|
+
isLink ? rel ?? (isExternal || resolvedTarget === "_blank" ? "noopener noreferrer" : void 0) : void 0
|
|
72
|
+
);
|
|
73
|
+
const isActive = $derived.by(() => {
|
|
74
|
+
if (active !== void 0) return active;
|
|
75
|
+
if (!isLink || !page.url || isExternal) return false;
|
|
76
|
+
const link = parseUrl(href, page.url);
|
|
77
|
+
if (exactHash && link.hash !== page.url.hash) return false;
|
|
78
|
+
if (!isQueryMatch(link.query, page.url.searchParams, exactQuery)) return false;
|
|
79
|
+
return isPathnameMatch(link.pathname, page.url.pathname, exact);
|
|
80
|
+
});
|
|
81
|
+
const baseClass = $derived.by(() => {
|
|
82
|
+
const stateClass = isActive ? activeClass : inactiveClass;
|
|
83
|
+
if (raw) return twMerge(stateClass, className);
|
|
84
|
+
const slots = linkVariants({ active: isActive, disabled, raw });
|
|
85
|
+
return slots.base({ class: [config.slots.base, stateClass, className, ui?.base] });
|
|
86
|
+
});
|
|
87
|
+
const ariaCurrent = $derived(isActive && exact ? "page" : void 0);
|
|
88
|
+
function handleClick(e) {
|
|
89
|
+
if (disabled) {
|
|
90
|
+
e.preventDefault();
|
|
91
|
+
e.stopPropagation();
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (typeof onclick === "function") {
|
|
95
|
+
;
|
|
96
|
+
onclick(e);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
</script>
|
|
100
|
+
|
|
101
|
+
{#if isLink}
|
|
102
|
+
<!-- eslint-disable svelte/no-navigation-without-resolve -->
|
|
103
|
+
<a
|
|
104
|
+
bind:this={ref}
|
|
105
|
+
{...restProps}
|
|
106
|
+
href={disabled ? undefined : href}
|
|
107
|
+
class={baseClass}
|
|
108
|
+
target={resolvedTarget}
|
|
109
|
+
rel={resolvedRel}
|
|
110
|
+
role={disabled ? 'link' : undefined}
|
|
111
|
+
aria-disabled={disabled ? 'true' : undefined}
|
|
112
|
+
aria-current={ariaCurrent}
|
|
113
|
+
tabindex={disabled ? -1 : undefined}
|
|
114
|
+
onclick={handleClick}
|
|
115
|
+
>
|
|
116
|
+
<!-- eslint-enable svelte/no-navigation-without-resolve -->
|
|
117
|
+
{@render children?.()}
|
|
118
|
+
</a>
|
|
119
|
+
{:else}
|
|
120
|
+
<button
|
|
121
|
+
bind:this={ref}
|
|
122
|
+
{...restProps}
|
|
123
|
+
type={type ?? 'button'}
|
|
124
|
+
class={baseClass}
|
|
125
|
+
{disabled}
|
|
126
|
+
aria-current={ariaCurrent}
|
|
127
|
+
onclick={handleClick}
|
|
128
|
+
>
|
|
129
|
+
{@render children?.()}
|
|
130
|
+
</button>
|
|
131
|
+
{/if}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script lang="ts" module></script>
|
|
2
|
+
|
|
3
|
+
<script lang="ts">import { mainVariants, mainDefaults } from "./main.variants.js";
|
|
4
|
+
import { getComponentConfig } from "../../config.js";
|
|
5
|
+
const config = getComponentConfig("main", mainDefaults);
|
|
6
|
+
let {
|
|
7
|
+
ref = $bindable(null),
|
|
8
|
+
as = "main",
|
|
9
|
+
ui,
|
|
10
|
+
class: className,
|
|
11
|
+
children,
|
|
12
|
+
...restProps
|
|
13
|
+
} = $props();
|
|
14
|
+
const slots = mainVariants();
|
|
15
|
+
const rootClass = $derived(slots.root({ class: [config.slots.root, className, ui?.root] }));
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<svelte:element this={as} bind:this={ref} class={rootClass} {...restProps}>
|
|
19
|
+
{@render children?.()}
|
|
20
|
+
</svelte:element>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Main } from './Main.svelte';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
import type { ClassNameValue } from 'tailwind-merge';
|
|
4
|
+
import type { MainSlots } from './main.variants.js';
|
|
5
|
+
export type MainProps = Omit<HTMLAttributes<HTMLElement>, 'class'> & {
|
|
6
|
+
/**
|
|
7
|
+
* Bindable reference to the root DOM element.
|
|
8
|
+
*/
|
|
9
|
+
ref?: HTMLElement | null;
|
|
10
|
+
/**
|
|
11
|
+
* Renders the main container as a different HTML element.
|
|
12
|
+
* @default 'main'
|
|
13
|
+
*/
|
|
14
|
+
as?: keyof HTMLElementTagNameMap;
|
|
15
|
+
/**
|
|
16
|
+
* Override styles for specific main slots.
|
|
17
|
+
*/
|
|
18
|
+
ui?: Partial<Record<MainSlots, ClassNameValue>>;
|
|
19
|
+
/**
|
|
20
|
+
* Additional CSS classes for the root element.
|
|
21
|
+
*/
|
|
22
|
+
class?: ClassNameValue;
|
|
23
|
+
/**
|
|
24
|
+
* Content rendered inside the main container.
|
|
25
|
+
*/
|
|
26
|
+
children?: Snippet;
|
|
27
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const mainVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
4
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
} | {
|
|
8
|
+
[x: string]: {
|
|
9
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
10
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
} | {}, {
|
|
14
|
+
root: string;
|
|
15
|
+
}, undefined, {
|
|
16
|
+
[key: string]: {
|
|
17
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
18
|
+
root?: import("tailwind-merge").ClassNameValue;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
} | {}, {
|
|
22
|
+
root: string;
|
|
23
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
24
|
+
root: string;
|
|
25
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
26
|
+
export type MainSlots = keyof ReturnType<typeof mainVariants>;
|
|
27
|
+
export declare const mainDefaults: {
|
|
28
|
+
defaultVariants: Record<string, never>;
|
|
29
|
+
slots: Partial<Record<MainSlots, string>>;
|
|
30
|
+
};
|
|
@@ -1,111 +1,97 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
interactOutsideBehavior: behavior,
|
|
96
|
-
onOpenAutoFocus,
|
|
97
|
-
onCloseAutoFocus,
|
|
98
|
-
onEscapeKeydown,
|
|
99
|
-
onInteractOutside,
|
|
100
|
-
forceMount,
|
|
101
|
-
restoreScrollDelay
|
|
102
|
-
}
|
|
103
|
-
})
|
|
104
|
-
|
|
105
|
-
function handleOpenChange(value: boolean) {
|
|
106
|
-
open = value
|
|
107
|
-
onOpenChange?.(value)
|
|
108
|
-
}
|
|
1
|
+
<script lang="ts" module></script>
|
|
2
|
+
|
|
3
|
+
<script lang="ts">import { Dialog } from "bits-ui";
|
|
4
|
+
import { modalVariants, modalDefaults } from "./modal.variants.js";
|
|
5
|
+
import { getComponentConfig } from "../../config.js";
|
|
6
|
+
import Button from "../Button/Button.svelte";
|
|
7
|
+
const config = getComponentConfig("modal", modalDefaults);
|
|
8
|
+
let {
|
|
9
|
+
open = $bindable(false),
|
|
10
|
+
onOpenChange,
|
|
11
|
+
onOpenChangeComplete,
|
|
12
|
+
trapFocus = true,
|
|
13
|
+
preventScroll = true,
|
|
14
|
+
onOpenAutoFocus,
|
|
15
|
+
onCloseAutoFocus,
|
|
16
|
+
onEscapeKeydown,
|
|
17
|
+
onInteractOutside,
|
|
18
|
+
forceMount,
|
|
19
|
+
restoreScrollDelay,
|
|
20
|
+
title,
|
|
21
|
+
description,
|
|
22
|
+
overlay: showOverlay = config.defaultVariants.overlay ?? true,
|
|
23
|
+
scrollable = config.defaultVariants.scrollable ?? false,
|
|
24
|
+
transition = config.defaultVariants.transition ?? "scale",
|
|
25
|
+
size = config.defaultVariants.size ?? "md",
|
|
26
|
+
fullscreen = false,
|
|
27
|
+
portal = true,
|
|
28
|
+
close: closeProp = true,
|
|
29
|
+
dismissible = true,
|
|
30
|
+
ui,
|
|
31
|
+
class: className,
|
|
32
|
+
children,
|
|
33
|
+
content: contentSlot,
|
|
34
|
+
header: headerSlot,
|
|
35
|
+
titleSlot,
|
|
36
|
+
descriptionSlot,
|
|
37
|
+
actions: actionsSlot,
|
|
38
|
+
body: bodySlot,
|
|
39
|
+
footer: footerSlot,
|
|
40
|
+
closeSlot
|
|
41
|
+
} = $props();
|
|
42
|
+
const resolvedSize = $derived(fullscreen ? "full" : size);
|
|
43
|
+
const resolvedTransition = $derived(
|
|
44
|
+
transition === false ? "none" : transition === true ? "scale" : transition
|
|
45
|
+
);
|
|
46
|
+
const showClose = $derived(!!closeProp);
|
|
47
|
+
const closeProps = $derived(typeof closeProp === "object" ? closeProp : {});
|
|
48
|
+
const hasTitle = $derived(!!title || !!titleSlot);
|
|
49
|
+
const hasDescription = $derived(!!description || !!descriptionSlot);
|
|
50
|
+
const hasHeading = $derived(hasTitle || hasDescription);
|
|
51
|
+
const hasHeader = $derived(
|
|
52
|
+
!!headerSlot || hasHeading || !!actionsSlot || showClose || !!closeSlot
|
|
53
|
+
);
|
|
54
|
+
const variantSlots = $derived(
|
|
55
|
+
modalVariants({
|
|
56
|
+
transition: resolvedTransition,
|
|
57
|
+
size: resolvedSize,
|
|
58
|
+
overlay: showOverlay,
|
|
59
|
+
scrollable
|
|
60
|
+
})
|
|
61
|
+
);
|
|
62
|
+
const classes = $derived({
|
|
63
|
+
overlay: variantSlots.overlay({ class: [config.slots.overlay, ui?.overlay] }),
|
|
64
|
+
content: variantSlots.content({ class: [config.slots.content, ui?.content] }),
|
|
65
|
+
header: variantSlots.header({ class: [config.slots.header, ui?.header] }),
|
|
66
|
+
wrapper: variantSlots.wrapper({ class: [config.slots.wrapper, ui?.wrapper] }),
|
|
67
|
+
title: variantSlots.title({ class: [config.slots.title, ui?.title] }),
|
|
68
|
+
description: variantSlots.description({
|
|
69
|
+
class: [config.slots.description, ui?.description]
|
|
70
|
+
}),
|
|
71
|
+
actions: variantSlots.actions({ class: [config.slots.actions, ui?.actions] }),
|
|
72
|
+
body: variantSlots.body({ class: [config.slots.body, ui?.body] }),
|
|
73
|
+
footer: variantSlots.footer({ class: [config.slots.footer, ui?.footer] }),
|
|
74
|
+
close: variantSlots.close({ class: [config.slots.close, ui?.close] })
|
|
75
|
+
});
|
|
76
|
+
const contentProps = $derived.by(() => {
|
|
77
|
+
const behavior = dismissible ? "close" : "ignore";
|
|
78
|
+
return {
|
|
79
|
+
trapFocus,
|
|
80
|
+
preventScroll,
|
|
81
|
+
escapeKeydownBehavior: behavior,
|
|
82
|
+
interactOutsideBehavior: behavior,
|
|
83
|
+
onOpenAutoFocus,
|
|
84
|
+
onCloseAutoFocus,
|
|
85
|
+
onEscapeKeydown,
|
|
86
|
+
onInteractOutside,
|
|
87
|
+
forceMount,
|
|
88
|
+
restoreScrollDelay
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
function handleOpenChange(value) {
|
|
92
|
+
open = value;
|
|
93
|
+
onOpenChange?.(value);
|
|
94
|
+
}
|
|
109
95
|
</script>
|
|
110
96
|
|
|
111
97
|
{#snippet titleEl()}
|