svelora 2.1.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/LICENSE +21 -0
- package/README.md +145 -0
- package/dist/Accordion/Accordion.svelte +207 -0
- package/dist/Accordion/Accordion.svelte.d.ts +6 -0
- package/dist/Accordion/accordion.types.d.ts +225 -0
- package/dist/Accordion/accordion.types.js +1 -0
- package/dist/Accordion/accordion.variants.d.ts +88 -0
- package/dist/Accordion/accordion.variants.js +28 -0
- package/dist/Accordion/index.d.ts +2 -0
- package/dist/Accordion/index.js +1 -0
- package/dist/Alert/Alert.svelte +131 -0
- package/dist/Alert/Alert.svelte.d.ts +5 -0
- package/dist/Alert/alert.types.d.ts +103 -0
- package/dist/Alert/alert.types.js +1 -0
- package/dist/Alert/alert.variants.d.ts +213 -0
- package/dist/Alert/alert.variants.js +293 -0
- package/dist/Alert/index.d.ts +2 -0
- package/dist/Alert/index.js +1 -0
- package/dist/Avatar/Avatar.svelte +114 -0
- package/dist/Avatar/Avatar.svelte.d.ts +6 -0
- package/dist/Avatar/avatar.types.d.ts +73 -0
- package/dist/Avatar/avatar.types.js +1 -0
- package/dist/Avatar/avatar.variants.d.ts +316 -0
- package/dist/Avatar/avatar.variants.js +39 -0
- package/dist/Avatar/index.d.ts +2 -0
- package/dist/Avatar/index.js +1 -0
- package/dist/AvatarGroup/AvatarGroup.svelte +71 -0
- package/dist/AvatarGroup/AvatarGroup.svelte.d.ts +5 -0
- package/dist/AvatarGroup/avatar-group.types.d.ts +49 -0
- package/dist/AvatarGroup/avatar-group.types.js +1 -0
- package/dist/AvatarGroup/avatar-group.variants.d.ts +258 -0
- package/dist/AvatarGroup/avatar-group.variants.js +35 -0
- package/dist/AvatarGroup/index.d.ts +2 -0
- package/dist/AvatarGroup/index.js +1 -0
- package/dist/Badge/Badge.svelte +79 -0
- package/dist/Badge/Badge.svelte.d.ts +5 -0
- package/dist/Badge/badge.types.d.ts +83 -0
- package/dist/Badge/badge.types.js +1 -0
- package/dist/Badge/badge.variants.d.ts +303 -0
- package/dist/Badge/badge.variants.js +259 -0
- package/dist/Badge/index.d.ts +2 -0
- package/dist/Badge/index.js +1 -0
- package/dist/Banner/Banner.svelte +130 -0
- package/dist/Banner/Banner.svelte.d.ts +5 -0
- package/dist/Banner/banner.types.d.ts +148 -0
- package/dist/Banner/banner.types.js +1 -0
- package/dist/Banner/banner.variants.d.ts +293 -0
- package/dist/Banner/banner.variants.js +86 -0
- package/dist/Banner/index.d.ts +2 -0
- package/dist/Banner/index.js +1 -0
- package/dist/Breadcrumb/Breadcrumb.svelte +79 -0
- package/dist/Breadcrumb/Breadcrumb.svelte.d.ts +5 -0
- package/dist/Breadcrumb/breadcrumb.types.d.ts +66 -0
- package/dist/Breadcrumb/breadcrumb.types.js +1 -0
- package/dist/Breadcrumb/breadcrumb.variants.d.ts +138 -0
- package/dist/Breadcrumb/breadcrumb.variants.js +53 -0
- package/dist/Breadcrumb/index.d.ts +2 -0
- package/dist/Breadcrumb/index.js +1 -0
- package/dist/Button/Button.svelte +177 -0
- package/dist/Button/Button.svelte.d.ts +5 -0
- package/dist/Button/button.types.d.ts +151 -0
- package/dist/Button/button.types.js +1 -0
- package/dist/Button/button.variants.d.ts +388 -0
- package/dist/Button/button.variants.js +461 -0
- package/dist/Button/index.d.ts +2 -0
- package/dist/Button/index.js +1 -0
- package/dist/Calendar/Calendar.svelte +344 -0
- package/dist/Calendar/Calendar.svelte.d.ts +6 -0
- package/dist/Calendar/calendar.types.d.ts +122 -0
- package/dist/Calendar/calendar.types.js +1 -0
- package/dist/Calendar/calendar.variants.d.ts +553 -0
- package/dist/Calendar/calendar.variants.js +368 -0
- package/dist/Calendar/index.d.ts +2 -0
- package/dist/Calendar/index.js +1 -0
- package/dist/Card/Card.svelte +54 -0
- package/dist/Card/Card.svelte.d.ts +5 -0
- package/dist/Card/card.types.d.ts +36 -0
- package/dist/Card/card.types.js +1 -0
- package/dist/Card/card.variants.d.ts +108 -0
- package/dist/Card/card.variants.js +32 -0
- package/dist/Card/index.d.ts +2 -0
- package/dist/Card/index.js +1 -0
- package/dist/Carousel/Carousel.svelte +277 -0
- package/dist/Carousel/Carousel.svelte.d.ts +26 -0
- package/dist/Carousel/carousel.types.d.ts +251 -0
- package/dist/Carousel/carousel.types.js +1 -0
- package/dist/Carousel/carousel.variants.d.ts +408 -0
- package/dist/Carousel/carousel.variants.js +88 -0
- package/dist/Carousel/index.d.ts +2 -0
- package/dist/Carousel/index.js +1 -0
- package/dist/Checkbox/Checkbox.svelte +161 -0
- package/dist/Checkbox/Checkbox.svelte.d.ts +6 -0
- package/dist/Checkbox/checkbox.types.d.ts +101 -0
- package/dist/Checkbox/checkbox.types.js +1 -0
- package/dist/Checkbox/checkbox.variants.d.ts +448 -0
- package/dist/Checkbox/checkbox.variants.js +209 -0
- package/dist/Checkbox/index.d.ts +2 -0
- package/dist/Checkbox/index.js +1 -0
- package/dist/CheckboxGroup/CheckboxGroup.svelte +219 -0
- package/dist/CheckboxGroup/CheckboxGroup.svelte.d.ts +5 -0
- package/dist/CheckboxGroup/checkbox-group.types.d.ts +130 -0
- package/dist/CheckboxGroup/checkbox-group.types.js +1 -0
- package/dist/CheckboxGroup/checkbox-group.variants.d.ts +553 -0
- package/dist/CheckboxGroup/checkbox-group.variants.js +231 -0
- package/dist/CheckboxGroup/index.d.ts +2 -0
- package/dist/CheckboxGroup/index.js +1 -0
- package/dist/Chip/Chip.svelte +51 -0
- package/dist/Chip/Chip.svelte.d.ts +5 -0
- package/dist/Chip/chip.types.d.ts +66 -0
- package/dist/Chip/chip.types.js +1 -0
- package/dist/Chip/chip.variants.d.ts +418 -0
- package/dist/Chip/chip.variants.js +74 -0
- package/dist/Chip/index.d.ts +2 -0
- package/dist/Chip/index.js +1 -0
- package/dist/Collapsible/Collapsible.svelte +69 -0
- package/dist/Collapsible/Collapsible.svelte.d.ts +6 -0
- package/dist/Collapsible/CollapsibleTestWrapper.svelte +17 -0
- package/dist/Collapsible/CollapsibleTestWrapper.svelte.d.ts +4 -0
- package/dist/Collapsible/collapsible.types.d.ts +77 -0
- package/dist/Collapsible/collapsible.types.js +1 -0
- package/dist/Collapsible/collapsible.variants.d.ts +53 -0
- package/dist/Collapsible/collapsible.variants.js +21 -0
- package/dist/Collapsible/index.d.ts +2 -0
- package/dist/Collapsible/index.js +1 -0
- package/dist/Command/Command.svelte +183 -0
- package/dist/Command/Command.svelte.d.ts +6 -0
- package/dist/Command/CommandTestWrapper.svelte +13 -0
- package/dist/Command/CommandTestWrapper.svelte.d.ts +4 -0
- package/dist/Command/command.types.d.ts +100 -0
- package/dist/Command/command.types.js +1 -0
- package/dist/Command/command.variants.d.ts +226 -0
- package/dist/Command/command.variants.js +86 -0
- package/dist/Command/index.d.ts +2 -0
- package/dist/Command/index.js +1 -0
- package/dist/Container/Container.svelte +21 -0
- package/dist/Container/Container.svelte.d.ts +5 -0
- package/dist/Container/container.types.d.ts +19 -0
- package/dist/Container/container.types.js +1 -0
- package/dist/Container/container.variants.d.ts +29 -0
- package/dist/Container/container.variants.js +9 -0
- package/dist/Container/index.d.ts +2 -0
- package/dist/Container/index.js +1 -0
- package/dist/ContextMenu/ContextMenu.svelte +344 -0
- package/dist/ContextMenu/ContextMenu.svelte.d.ts +6 -0
- package/dist/ContextMenu/context-menu.types.d.ts +265 -0
- package/dist/ContextMenu/context-menu.types.js +1 -0
- package/dist/ContextMenu/context-menu.variants.d.ts +307 -0
- package/dist/ContextMenu/context-menu.variants.js +144 -0
- package/dist/ContextMenu/index.d.ts +2 -0
- package/dist/ContextMenu/index.js +1 -0
- package/dist/Drawer/Drawer.svelte +207 -0
- package/dist/Drawer/Drawer.svelte.d.ts +6 -0
- package/dist/Drawer/DrawerTriggerTestWrapper.svelte +10 -0
- package/dist/Drawer/DrawerTriggerTestWrapper.svelte.d.ts +18 -0
- package/dist/Drawer/drawer.types.d.ts +116 -0
- package/dist/Drawer/drawer.types.js +1 -0
- package/dist/Drawer/drawer.variants.d.ts +193 -0
- package/dist/Drawer/drawer.variants.js +139 -0
- package/dist/Drawer/index.d.ts +2 -0
- package/dist/Drawer/index.js +1 -0
- package/dist/DropdownMenu/DropdownMenu.svelte +363 -0
- package/dist/DropdownMenu/DropdownMenu.svelte.d.ts +6 -0
- package/dist/DropdownMenu/DropdownMenuTriggerTestWrapper.svelte +12 -0
- package/dist/DropdownMenu/DropdownMenuTriggerTestWrapper.svelte.d.ts +7 -0
- package/dist/DropdownMenu/dropdown-menu.types.d.ts +279 -0
- package/dist/DropdownMenu/dropdown-menu.types.js +1 -0
- package/dist/DropdownMenu/dropdown-menu.variants.d.ts +312 -0
- package/dist/DropdownMenu/dropdown-menu.variants.js +149 -0
- package/dist/DropdownMenu/index.d.ts +2 -0
- package/dist/DropdownMenu/index.js +1 -0
- package/dist/Editor/Editor.svelte +756 -0
- package/dist/Editor/Editor.svelte.d.ts +6 -0
- package/dist/Editor/EditorUrlPrompt.svelte +94 -0
- package/dist/Editor/EditorUrlPrompt.svelte.d.ts +15 -0
- package/dist/Editor/SlashPopup.svelte +74 -0
- package/dist/Editor/SlashPopup.svelte.d.ts +11 -0
- package/dist/Editor/editor.extensions.d.ts +23 -0
- package/dist/Editor/editor.extensions.js +132 -0
- package/dist/Editor/editor.schemas.d.ts +5 -0
- package/dist/Editor/editor.schemas.js +27 -0
- package/dist/Editor/editor.slash.svelte.d.ts +25 -0
- package/dist/Editor/editor.slash.svelte.js +299 -0
- package/dist/Editor/editor.suggestion.d.ts +7 -0
- package/dist/Editor/editor.suggestion.js +165 -0
- package/dist/Editor/editor.toolbar.d.ts +11 -0
- package/dist/Editor/editor.toolbar.js +204 -0
- package/dist/Editor/editor.types.d.ts +367 -0
- package/dist/Editor/editor.types.js +1 -0
- package/dist/Editor/editor.variants.d.ts +303 -0
- package/dist/Editor/editor.variants.js +135 -0
- package/dist/Editor/index.d.ts +55 -0
- package/dist/Editor/index.js +54 -0
- package/dist/Empty/Empty.svelte +118 -0
- package/dist/Empty/Empty.svelte.d.ts +5 -0
- package/dist/Empty/empty.types.d.ts +91 -0
- package/dist/Empty/empty.types.js +1 -0
- package/dist/Empty/empty.variants.d.ts +308 -0
- package/dist/Empty/empty.variants.js +73 -0
- package/dist/Empty/index.d.ts +2 -0
- package/dist/Empty/index.js +1 -0
- package/dist/FieldGroup/FieldGroup.svelte +53 -0
- package/dist/FieldGroup/FieldGroup.svelte.d.ts +5 -0
- package/dist/FieldGroup/field-group.types.d.ts +37 -0
- package/dist/FieldGroup/field-group.types.js +1 -0
- package/dist/FieldGroup/field-group.variants.d.ts +116 -0
- package/dist/FieldGroup/field-group.variants.js +49 -0
- package/dist/FieldGroup/index.d.ts +2 -0
- package/dist/FieldGroup/index.js +1 -0
- package/dist/FileUpload/FileUpload.svelte +639 -0
- package/dist/FileUpload/FileUpload.svelte.d.ts +8 -0
- package/dist/FileUpload/file-upload.types.d.ts +203 -0
- package/dist/FileUpload/file-upload.types.js +1 -0
- package/dist/FileUpload/file-upload.variants.d.ts +397 -0
- package/dist/FileUpload/file-upload.variants.js +224 -0
- package/dist/FileUpload/index.d.ts +2 -0
- package/dist/FileUpload/index.js +1 -0
- package/dist/Form/Form.svelte +197 -0
- package/dist/Form/Form.svelte.d.ts +26 -0
- package/dist/Form/form.context.svelte.d.ts +64 -0
- package/dist/Form/form.context.svelte.js +478 -0
- package/dist/Form/form.types.d.ts +164 -0
- package/dist/Form/form.types.js +12 -0
- package/dist/Form/form.variants.d.ts +39 -0
- package/dist/Form/form.variants.js +17 -0
- package/dist/Form/index.d.ts +4 -0
- package/dist/Form/index.js +6 -0
- package/dist/Form/validate-schema.d.ts +13 -0
- package/dist/Form/validate-schema.js +113 -0
- package/dist/FormField/FormField.svelte +186 -0
- package/dist/FormField/FormField.svelte.d.ts +5 -0
- package/dist/FormField/form-field.types.d.ts +109 -0
- package/dist/FormField/form-field.types.js +1 -0
- package/dist/FormField/form-field.variants.d.ts +313 -0
- package/dist/FormField/form-field.variants.js +74 -0
- package/dist/FormField/index.d.ts +2 -0
- package/dist/FormField/index.js +1 -0
- package/dist/Icon/Icon.svelte +46 -0
- package/dist/Icon/Icon.svelte.d.ts +6 -0
- package/dist/Icon/icon.types.d.ts +49 -0
- package/dist/Icon/icon.types.js +1 -0
- package/dist/Icon/index.d.ts +2 -0
- package/dist/Icon/index.js +1 -0
- package/dist/Input/Input.svelte +199 -0
- package/dist/Input/Input.svelte.d.ts +26 -0
- package/dist/Input/index.d.ts +2 -0
- package/dist/Input/index.js +1 -0
- package/dist/Input/input.types.d.ts +113 -0
- package/dist/Input/input.types.js +1 -0
- package/dist/Input/input.variants.d.ts +398 -0
- package/dist/Input/input.variants.js +387 -0
- package/dist/Kbd/Kbd.svelte +45 -0
- package/dist/Kbd/Kbd.svelte.d.ts +5 -0
- package/dist/Kbd/index.d.ts +3 -0
- package/dist/Kbd/index.js +2 -0
- package/dist/Kbd/kbd.types.d.ts +91 -0
- package/dist/Kbd/kbd.types.js +1 -0
- package/dist/Kbd/kbd.variants.d.ts +180 -0
- package/dist/Kbd/kbd.variants.js +168 -0
- package/dist/Kbd/useKbd.svelte.d.ts +29 -0
- package/dist/Kbd/useKbd.svelte.js +248 -0
- package/dist/Link/Link.svelte +168 -0
- package/dist/Link/Link.svelte.d.ts +5 -0
- package/dist/Link/index.d.ts +2 -0
- package/dist/Link/index.js +1 -0
- package/dist/Link/link.types.d.ts +86 -0
- package/dist/Link/link.types.js +1 -0
- package/dist/Link/link.variants.d.ts +113 -0
- package/dist/Link/link.variants.js +43 -0
- package/dist/Modal/Modal.svelte +218 -0
- package/dist/Modal/Modal.svelte.d.ts +5 -0
- package/dist/Modal/ModalTriggerTestWrapper.svelte +10 -0
- package/dist/Modal/ModalTriggerTestWrapper.svelte.d.ts +18 -0
- package/dist/Modal/index.d.ts +2 -0
- package/dist/Modal/index.js +1 -0
- package/dist/Modal/modal.types.d.ts +155 -0
- package/dist/Modal/modal.types.js +1 -0
- package/dist/Modal/modal.variants.d.ts +303 -0
- package/dist/Modal/modal.variants.js +90 -0
- package/dist/Pagination/Pagination.svelte +253 -0
- package/dist/Pagination/Pagination.svelte.d.ts +6 -0
- package/dist/Pagination/index.d.ts +2 -0
- package/dist/Pagination/index.js +1 -0
- package/dist/Pagination/pagination.types.d.ts +191 -0
- package/dist/Pagination/pagination.types.js +1 -0
- package/dist/Pagination/pagination.variants.d.ts +160 -0
- package/dist/Pagination/pagination.variants.js +125 -0
- package/dist/PinInput/PinInput.svelte +162 -0
- package/dist/PinInput/PinInput.svelte.d.ts +6 -0
- package/dist/PinInput/index.d.ts +2 -0
- package/dist/PinInput/index.js +1 -0
- package/dist/PinInput/pin-input.types.d.ts +110 -0
- package/dist/PinInput/pin-input.types.js +1 -0
- package/dist/PinInput/pin-input.variants.d.ts +303 -0
- package/dist/PinInput/pin-input.variants.js +196 -0
- package/dist/Popover/Popover.svelte +122 -0
- package/dist/Popover/Popover.svelte.d.ts +6 -0
- package/dist/Popover/index.d.ts +2 -0
- package/dist/Popover/index.js +1 -0
- package/dist/Popover/popover.types.d.ts +58 -0
- package/dist/Popover/popover.types.js +1 -0
- package/dist/Popover/popover.variants.d.ts +53 -0
- package/dist/Popover/popover.variants.js +31 -0
- package/dist/Progress/Progress.svelte +135 -0
- package/dist/Progress/Progress.svelte.d.ts +6 -0
- package/dist/Progress/index.d.ts +2 -0
- package/dist/Progress/index.js +1 -0
- package/dist/Progress/progress.types.d.ts +71 -0
- package/dist/Progress/progress.types.js +1 -0
- package/dist/Progress/progress.variants.d.ts +513 -0
- package/dist/Progress/progress.variants.js +204 -0
- package/dist/RadioGroup/RadioGroup.svelte +226 -0
- package/dist/RadioGroup/RadioGroup.svelte.d.ts +6 -0
- package/dist/RadioGroup/index.d.ts +2 -0
- package/dist/RadioGroup/index.js +1 -0
- package/dist/RadioGroup/radio-group.types.d.ts +111 -0
- package/dist/RadioGroup/radio-group.types.js +1 -0
- package/dist/RadioGroup/radio-group.variants.d.ts +543 -0
- package/dist/RadioGroup/radio-group.variants.js +232 -0
- package/dist/Select/Select.svelte +461 -0
- package/dist/Select/Select.svelte.d.ts +6 -0
- package/dist/Select/index.d.ts +2 -0
- package/dist/Select/index.js +1 -0
- package/dist/Select/select.types.d.ts +263 -0
- package/dist/Select/select.types.js +1 -0
- package/dist/Select/select.variants.d.ts +713 -0
- package/dist/Select/select.variants.js +482 -0
- package/dist/SelectMenu/SelectMenu.svelte +637 -0
- package/dist/SelectMenu/SelectMenu.svelte.d.ts +5 -0
- package/dist/SelectMenu/SelectMenuFormFieldTestWrapper.svelte +11 -0
- package/dist/SelectMenu/SelectMenuFormFieldTestWrapper.svelte.d.ts +7 -0
- package/dist/SelectMenu/index.d.ts +2 -0
- package/dist/SelectMenu/index.js +1 -0
- package/dist/SelectMenu/select-menu.types.d.ts +326 -0
- package/dist/SelectMenu/select-menu.types.js +1 -0
- package/dist/SelectMenu/select-menu.variants.d.ts +795 -0
- package/dist/SelectMenu/select-menu.variants.js +70 -0
- package/dist/Separator/Separator.svelte +77 -0
- package/dist/Separator/Separator.svelte.d.ts +6 -0
- package/dist/Separator/index.d.ts +2 -0
- package/dist/Separator/index.js +1 -0
- package/dist/Separator/separator.types.d.ts +53 -0
- package/dist/Separator/separator.types.js +1 -0
- package/dist/Separator/separator.variants.d.ts +509 -0
- package/dist/Separator/separator.variants.js +110 -0
- package/dist/Skeleton/Skeleton.svelte +39 -0
- package/dist/Skeleton/Skeleton.svelte.d.ts +5 -0
- package/dist/Skeleton/index.d.ts +2 -0
- package/dist/Skeleton/index.js +1 -0
- package/dist/Skeleton/skeleton.types.d.ts +27 -0
- package/dist/Skeleton/skeleton.types.js +1 -0
- package/dist/Skeleton/skeleton.variants.d.ts +18 -0
- package/dist/Skeleton/skeleton.variants.js +12 -0
- package/dist/Slideover/Slideover.svelte +212 -0
- package/dist/Slideover/Slideover.svelte.d.ts +5 -0
- package/dist/Slideover/SlideoverTriggerTestWrapper.svelte +10 -0
- package/dist/Slideover/SlideoverTriggerTestWrapper.svelte.d.ts +18 -0
- package/dist/Slideover/index.d.ts +2 -0
- package/dist/Slideover/index.js +1 -0
- package/dist/Slideover/slideover.types.d.ts +154 -0
- package/dist/Slideover/slideover.types.js +1 -0
- package/dist/Slideover/slideover.variants.d.ts +298 -0
- package/dist/Slideover/slideover.variants.js +145 -0
- package/dist/Slider/Slider.svelte +129 -0
- package/dist/Slider/Slider.svelte.d.ts +6 -0
- package/dist/Slider/index.d.ts +2 -0
- package/dist/Slider/index.js +1 -0
- package/dist/Slider/slider.types.d.ts +55 -0
- package/dist/Slider/slider.types.js +1 -0
- package/dist/Slider/slider.variants.d.ts +383 -0
- package/dist/Slider/slider.variants.js +102 -0
- package/dist/Stepper/Stepper.svelte +254 -0
- package/dist/Stepper/Stepper.svelte.d.ts +5 -0
- package/dist/Stepper/index.d.ts +2 -0
- package/dist/Stepper/index.js +1 -0
- package/dist/Stepper/stepper.types.d.ts +223 -0
- package/dist/Stepper/stepper.types.js +1 -0
- package/dist/Stepper/stepper.variants.d.ts +428 -0
- package/dist/Stepper/stepper.variants.js +204 -0
- package/dist/Switch/Switch.svelte +150 -0
- package/dist/Switch/Switch.svelte.d.ts +6 -0
- package/dist/Switch/index.d.ts +2 -0
- package/dist/Switch/index.js +1 -0
- package/dist/Switch/switch.types.d.ts +80 -0
- package/dist/Switch/switch.types.js +1 -0
- package/dist/Switch/switch.variants.d.ts +433 -0
- package/dist/Switch/switch.variants.js +171 -0
- package/dist/Table/Table.svelte +667 -0
- package/dist/Table/Table.svelte.d.ts +26 -0
- package/dist/Table/index.d.ts +2 -0
- package/dist/Table/index.js +1 -0
- package/dist/Table/table.types.d.ts +202 -0
- package/dist/Table/table.types.js +1 -0
- package/dist/Table/table.utils.d.ts +54 -0
- package/dist/Table/table.utils.js +167 -0
- package/dist/Table/table.variants.d.ts +205 -0
- package/dist/Table/table.variants.js +126 -0
- package/dist/Tabs/Tabs.svelte +188 -0
- package/dist/Tabs/Tabs.svelte.d.ts +6 -0
- package/dist/Tabs/index.d.ts +2 -0
- package/dist/Tabs/index.js +1 -0
- package/dist/Tabs/tabs.types.d.ts +207 -0
- package/dist/Tabs/tabs.types.js +1 -0
- package/dist/Tabs/tabs.variants.d.ts +298 -0
- package/dist/Tabs/tabs.variants.js +251 -0
- package/dist/Textarea/Textarea.svelte +215 -0
- package/dist/Textarea/Textarea.svelte.d.ts +5 -0
- package/dist/Textarea/index.d.ts +2 -0
- package/dist/Textarea/index.js +1 -0
- package/dist/Textarea/textarea.types.d.ts +103 -0
- package/dist/Textarea/textarea.types.js +1 -0
- package/dist/Textarea/textarea.variants.d.ts +403 -0
- package/dist/Textarea/textarea.variants.js +404 -0
- package/dist/ThemeModeButton/ThemeModeButton.svelte +74 -0
- package/dist/ThemeModeButton/ThemeModeButton.svelte.d.ts +5 -0
- package/dist/ThemeModeButton/index.d.ts +2 -0
- package/dist/ThemeModeButton/index.js +1 -0
- package/dist/ThemeModeButton/theme-mode-button.types.d.ts +69 -0
- package/dist/ThemeModeButton/theme-mode-button.types.js +1 -0
- package/dist/ThemeModeButton/theme-mode-button.variants.d.ts +21 -0
- package/dist/ThemeModeButton/theme-mode-button.variants.js +17 -0
- package/dist/Timeline/Timeline.svelte +116 -0
- package/dist/Timeline/Timeline.svelte.d.ts +5 -0
- package/dist/Timeline/index.d.ts +2 -0
- package/dist/Timeline/index.js +1 -0
- package/dist/Timeline/timeline.types.d.ts +138 -0
- package/dist/Timeline/timeline.types.js +1 -0
- package/dist/Timeline/timeline.variants.d.ts +413 -0
- package/dist/Timeline/timeline.variants.js +201 -0
- package/dist/Toast/Toaster.svelte +619 -0
- package/dist/Toast/Toaster.svelte.d.ts +5 -0
- package/dist/Toast/index.d.ts +4 -0
- package/dist/Toast/index.js +2 -0
- package/dist/Toast/toast.d.ts +38 -0
- package/dist/Toast/toast.js +73 -0
- package/dist/Toast/toast.types.d.ts +19 -0
- package/dist/Toast/toast.types.js +1 -0
- package/dist/Toast/toast.variants.d.ts +7 -0
- package/dist/Toast/toast.variants.js +5 -0
- package/dist/Tooltip/Tooltip.svelte +151 -0
- package/dist/Tooltip/Tooltip.svelte.d.ts +6 -0
- package/dist/Tooltip/TooltipTestWrapper.svelte +8 -0
- package/dist/Tooltip/TooltipTestWrapper.svelte.d.ts +4 -0
- package/dist/Tooltip/index.d.ts +2 -0
- package/dist/Tooltip/index.js +1 -0
- package/dist/Tooltip/tooltip.types.d.ts +62 -0
- package/dist/Tooltip/tooltip.types.js +1 -0
- package/dist/Tooltip/tooltip.variants.d.ts +68 -0
- package/dist/Tooltip/tooltip.variants.js +35 -0
- package/dist/User/User.svelte +98 -0
- package/dist/User/User.svelte.d.ts +5 -0
- package/dist/User/index.d.ts +2 -0
- package/dist/User/index.js +1 -0
- package/dist/User/user.types.d.ts +78 -0
- package/dist/User/user.types.js +1 -0
- package/dist/User/user.variants.d.ts +368 -0
- package/dist/User/user.variants.js +85 -0
- package/dist/config.d.ts +73 -0
- package/dist/config.js +108 -0
- package/dist/hooks/HookContextProbe.svelte +7 -0
- package/dist/hooks/HookContextProbe.svelte.d.ts +18 -0
- package/dist/hooks/HookContextProvider.svelte +9 -0
- package/dist/hooks/HookContextProvider.svelte.d.ts +18 -0
- package/dist/hooks/HookEmitProbe.svelte +14 -0
- package/dist/hooks/HookEmitProbe.svelte.d.ts +18 -0
- package/dist/hooks/index.d.ts +14 -0
- package/dist/hooks/index.js +7 -0
- package/dist/hooks/useClickOutside.svelte.d.ts +31 -0
- package/dist/hooks/useClickOutside.svelte.js +37 -0
- package/dist/hooks/useClipboard.svelte.d.ts +30 -0
- package/dist/hooks/useClipboard.svelte.js +45 -0
- package/dist/hooks/useDebounce.svelte.d.ts +36 -0
- package/dist/hooks/useDebounce.svelte.js +56 -0
- package/dist/hooks/useEscapeKeydown.svelte.d.ts +31 -0
- package/dist/hooks/useEscapeKeydown.svelte.js +37 -0
- package/dist/hooks/useFormField.svelte.d.ts +54 -0
- package/dist/hooks/useFormField.svelte.js +65 -0
- package/dist/hooks/useInfiniteScroll.svelte.d.ts +57 -0
- package/dist/hooks/useInfiniteScroll.svelte.js +69 -0
- package/dist/hooks/useMediaQuery.svelte.d.ts +31 -0
- package/dist/hooks/useMediaQuery.svelte.js +38 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.js +57 -0
- package/dist/theme.css +680 -0
- package/package.json +237 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
+
export declare const breadcrumbVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
active: {
|
|
4
|
+
true: {
|
|
5
|
+
link: string;
|
|
6
|
+
};
|
|
7
|
+
false: {
|
|
8
|
+
link: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
disabled: {
|
|
12
|
+
true: {
|
|
13
|
+
link: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
to: {
|
|
17
|
+
true: string;
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
root: string;
|
|
21
|
+
list: string;
|
|
22
|
+
item: string;
|
|
23
|
+
link: string[];
|
|
24
|
+
linkLeadingIcon: string;
|
|
25
|
+
linkLabel: string;
|
|
26
|
+
separator: string;
|
|
27
|
+
separatorIcon: string;
|
|
28
|
+
}, undefined, {
|
|
29
|
+
active: {
|
|
30
|
+
true: {
|
|
31
|
+
link: string;
|
|
32
|
+
};
|
|
33
|
+
false: {
|
|
34
|
+
link: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
disabled: {
|
|
38
|
+
true: {
|
|
39
|
+
link: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
to: {
|
|
43
|
+
true: string;
|
|
44
|
+
};
|
|
45
|
+
}, {
|
|
46
|
+
root: string;
|
|
47
|
+
list: string;
|
|
48
|
+
item: string;
|
|
49
|
+
link: string[];
|
|
50
|
+
linkLeadingIcon: string;
|
|
51
|
+
linkLabel: string;
|
|
52
|
+
separator: string;
|
|
53
|
+
separatorIcon: string;
|
|
54
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
55
|
+
active: {
|
|
56
|
+
true: {
|
|
57
|
+
link: string;
|
|
58
|
+
};
|
|
59
|
+
false: {
|
|
60
|
+
link: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
disabled: {
|
|
64
|
+
true: {
|
|
65
|
+
link: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
to: {
|
|
69
|
+
true: string;
|
|
70
|
+
};
|
|
71
|
+
}, {
|
|
72
|
+
root: string;
|
|
73
|
+
list: string;
|
|
74
|
+
item: string;
|
|
75
|
+
link: string[];
|
|
76
|
+
linkLeadingIcon: string;
|
|
77
|
+
linkLabel: string;
|
|
78
|
+
separator: string;
|
|
79
|
+
separatorIcon: string;
|
|
80
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
81
|
+
export type BreadcrumbVariantProps = VariantProps<typeof breadcrumbVariants>;
|
|
82
|
+
export type BreadcrumbSlots = keyof ReturnType<typeof breadcrumbVariants>;
|
|
83
|
+
export declare const breadcrumbDefaults: {
|
|
84
|
+
defaultVariants: import("tailwind-variants").TVDefaultVariants<{
|
|
85
|
+
active: {
|
|
86
|
+
true: {
|
|
87
|
+
link: string;
|
|
88
|
+
};
|
|
89
|
+
false: {
|
|
90
|
+
link: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
disabled: {
|
|
94
|
+
true: {
|
|
95
|
+
link: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
to: {
|
|
99
|
+
true: string;
|
|
100
|
+
};
|
|
101
|
+
}, {
|
|
102
|
+
root: string;
|
|
103
|
+
list: string;
|
|
104
|
+
item: string;
|
|
105
|
+
link: string[];
|
|
106
|
+
linkLeadingIcon: string;
|
|
107
|
+
linkLabel: string;
|
|
108
|
+
separator: string;
|
|
109
|
+
separatorIcon: string;
|
|
110
|
+
}, {
|
|
111
|
+
active: {
|
|
112
|
+
true: {
|
|
113
|
+
link: string;
|
|
114
|
+
};
|
|
115
|
+
false: {
|
|
116
|
+
link: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
disabled: {
|
|
120
|
+
true: {
|
|
121
|
+
link: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
to: {
|
|
125
|
+
true: string;
|
|
126
|
+
};
|
|
127
|
+
}, {
|
|
128
|
+
root: string;
|
|
129
|
+
list: string;
|
|
130
|
+
item: string;
|
|
131
|
+
link: string[];
|
|
132
|
+
linkLeadingIcon: string;
|
|
133
|
+
linkLabel: string;
|
|
134
|
+
separator: string;
|
|
135
|
+
separatorIcon: string;
|
|
136
|
+
}>;
|
|
137
|
+
slots: Partial<Record<BreadcrumbSlots, string>>;
|
|
138
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
export const breadcrumbVariants = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: 'relative min-w-0',
|
|
5
|
+
list: 'flex items-center gap-1.5',
|
|
6
|
+
item: 'flex min-w-0 items-center',
|
|
7
|
+
link: [
|
|
8
|
+
'group relative flex items-center gap-1.5 text-sm min-w-0',
|
|
9
|
+
'focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary'
|
|
10
|
+
],
|
|
11
|
+
linkLeadingIcon: 'shrink-0 size-5',
|
|
12
|
+
linkLabel: 'truncate',
|
|
13
|
+
separator: 'flex',
|
|
14
|
+
separatorIcon: 'shrink-0 size-5 text-on-surface-variant/60'
|
|
15
|
+
},
|
|
16
|
+
variants: {
|
|
17
|
+
active: {
|
|
18
|
+
true: {
|
|
19
|
+
link: 'text-primary font-semibold'
|
|
20
|
+
},
|
|
21
|
+
false: {
|
|
22
|
+
link: 'text-on-surface-variant font-medium'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
disabled: {
|
|
26
|
+
true: {
|
|
27
|
+
link: 'cursor-not-allowed opacity-75'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
to: {
|
|
31
|
+
true: ''
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
compoundVariants: [
|
|
35
|
+
{
|
|
36
|
+
active: false,
|
|
37
|
+
disabled: false,
|
|
38
|
+
to: true,
|
|
39
|
+
class: {
|
|
40
|
+
link: 'hover:text-on-surface transition-colors'
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
defaultVariants: {
|
|
45
|
+
active: false,
|
|
46
|
+
disabled: false,
|
|
47
|
+
to: false
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export const breadcrumbDefaults = {
|
|
51
|
+
defaultVariants: breadcrumbVariants.defaultVariants,
|
|
52
|
+
slots: {}
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Breadcrumb } from './Breadcrumb.svelte';
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { ButtonProps } from './button.types.js'
|
|
3
|
+
|
|
4
|
+
export type Props = ButtonProps
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<script lang="ts">
|
|
8
|
+
import { getContext } from 'svelte'
|
|
9
|
+
import Avatar from '../Avatar/Avatar.svelte'
|
|
10
|
+
import type { AvatarSize } from '../Avatar/avatar.types.js'
|
|
11
|
+
import { getComponentConfig, iconsDefaults } from '../config.js'
|
|
12
|
+
import type { FieldGroupVariantProps } from '../FieldGroup/field-group.variants.js'
|
|
13
|
+
import { fieldGroupVariant } from '../FieldGroup/field-group.variants.js'
|
|
14
|
+
import Icon from '../Icon/Icon.svelte'
|
|
15
|
+
import Link from '../Link/Link.svelte'
|
|
16
|
+
import { buttonDefaults, buttonVariants } from './button.variants.js'
|
|
17
|
+
|
|
18
|
+
const config = getComponentConfig('button', buttonDefaults)
|
|
19
|
+
const icons = getComponentConfig('icons', iconsDefaults)
|
|
20
|
+
|
|
21
|
+
let {
|
|
22
|
+
ref = $bindable(null),
|
|
23
|
+
ui,
|
|
24
|
+
color = config.defaultVariants.color,
|
|
25
|
+
variant = config.defaultVariants.variant,
|
|
26
|
+
size,
|
|
27
|
+
label,
|
|
28
|
+
loading = false,
|
|
29
|
+
loadingAuto = false,
|
|
30
|
+
loadingIcon = icons.loading,
|
|
31
|
+
disabled = false,
|
|
32
|
+
block = false,
|
|
33
|
+
square = false,
|
|
34
|
+
icon,
|
|
35
|
+
leadingIcon,
|
|
36
|
+
trailingIcon,
|
|
37
|
+
trailing = false,
|
|
38
|
+
avatar,
|
|
39
|
+
href,
|
|
40
|
+
type,
|
|
41
|
+
external,
|
|
42
|
+
active,
|
|
43
|
+
exact = false,
|
|
44
|
+
activeColor,
|
|
45
|
+
activeVariant,
|
|
46
|
+
activeClass,
|
|
47
|
+
inactiveClass,
|
|
48
|
+
leadingSlot,
|
|
49
|
+
trailingSlot,
|
|
50
|
+
children,
|
|
51
|
+
class: className,
|
|
52
|
+
onclick,
|
|
53
|
+
...restProps
|
|
54
|
+
}: Props = $props()
|
|
55
|
+
|
|
56
|
+
const fieldGroupContext = getContext<
|
|
57
|
+
| {
|
|
58
|
+
orientation: NonNullable<FieldGroupVariantProps['orientation']>
|
|
59
|
+
size: NonNullable<FieldGroupVariantProps['size']>
|
|
60
|
+
}
|
|
61
|
+
| undefined
|
|
62
|
+
>('fieldGroup')
|
|
63
|
+
|
|
64
|
+
const resolvedSize = $derived(size ?? fieldGroupContext?.size ?? config.defaultVariants.size)
|
|
65
|
+
const fieldGroupClass = $derived(
|
|
66
|
+
fieldGroupContext
|
|
67
|
+
? fieldGroupVariant.fieldGroup[fieldGroupContext.orientation ?? 'horizontal']
|
|
68
|
+
: undefined
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
let autoLoading = $state(false)
|
|
72
|
+
let pendingPromise: Promise<unknown> | null = null
|
|
73
|
+
const isLoading = $derived(loading || autoLoading)
|
|
74
|
+
|
|
75
|
+
const isIconOnly = $derived(square || (!label && !children))
|
|
76
|
+
const isLeading = $derived((!!icon && !trailing) || (isLoading && !trailing) || !!leadingIcon)
|
|
77
|
+
const isTrailing = $derived((!!icon && trailing) || (isLoading && trailing) || !!trailingIcon)
|
|
78
|
+
|
|
79
|
+
const spinLeading = $derived(isLoading && !trailing)
|
|
80
|
+
const spinTrailing = $derived(isLoading && trailing)
|
|
81
|
+
|
|
82
|
+
const leadingIconName = $derived(
|
|
83
|
+
spinLeading ? loadingIcon : leadingIcon || (!trailing ? icon : undefined)
|
|
84
|
+
)
|
|
85
|
+
const trailingIconName = $derived(
|
|
86
|
+
spinTrailing ? loadingIcon : trailingIcon || (trailing ? icon : undefined)
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
const resolvedColor = $derived(active && activeColor ? activeColor : color)
|
|
90
|
+
const resolvedVariant = $derived(active && activeVariant ? activeVariant : variant)
|
|
91
|
+
|
|
92
|
+
const classes = $derived.by(() => {
|
|
93
|
+
const slots = buttonVariants({
|
|
94
|
+
variant: resolvedVariant,
|
|
95
|
+
color: resolvedColor,
|
|
96
|
+
size: resolvedSize,
|
|
97
|
+
block,
|
|
98
|
+
square: isIconOnly,
|
|
99
|
+
loading: isLoading,
|
|
100
|
+
leading: spinLeading,
|
|
101
|
+
trailing: spinTrailing
|
|
102
|
+
})
|
|
103
|
+
return {
|
|
104
|
+
base: slots.base({ class: [config.slots.base, fieldGroupClass, className, ui?.base] }),
|
|
105
|
+
label: slots.label({ class: [config.slots.label, ui?.label] }),
|
|
106
|
+
leadingIcon: slots.leadingIcon({ class: [config.slots.leadingIcon, ui?.leadingIcon] }),
|
|
107
|
+
trailingIcon: slots.trailingIcon({
|
|
108
|
+
class: [config.slots.trailingIcon, ui?.trailingIcon]
|
|
109
|
+
}),
|
|
110
|
+
leadingAvatar: slots.leadingAvatar({
|
|
111
|
+
class: [config.slots.leadingAvatar, ui?.leadingAvatar]
|
|
112
|
+
}),
|
|
113
|
+
leadingAvatarSize: slots.leadingAvatarSize() as AvatarSize
|
|
114
|
+
}
|
|
115
|
+
})
|
|
116
|
+
|
|
117
|
+
function handleClick(e: MouseEvent) {
|
|
118
|
+
if (disabled || isLoading) {
|
|
119
|
+
e.preventDefault()
|
|
120
|
+
e.stopPropagation()
|
|
121
|
+
return
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (typeof onclick === 'function') {
|
|
125
|
+
const result = (onclick as (e: MouseEvent) => unknown)(e)
|
|
126
|
+
|
|
127
|
+
if (loadingAuto && result instanceof Promise) {
|
|
128
|
+
autoLoading = true
|
|
129
|
+
pendingPromise = result
|
|
130
|
+
result.then(
|
|
131
|
+
() => {
|
|
132
|
+
if (pendingPromise === result) autoLoading = false
|
|
133
|
+
},
|
|
134
|
+
() => {
|
|
135
|
+
if (pendingPromise === result) autoLoading = false
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
</script>
|
|
142
|
+
|
|
143
|
+
<Link
|
|
144
|
+
{...restProps}
|
|
145
|
+
bind:ref
|
|
146
|
+
{href}
|
|
147
|
+
{type}
|
|
148
|
+
{external}
|
|
149
|
+
{active}
|
|
150
|
+
{exact}
|
|
151
|
+
{activeClass}
|
|
152
|
+
{inactiveClass}
|
|
153
|
+
raw
|
|
154
|
+
disabled={disabled || isLoading}
|
|
155
|
+
class={classes.base}
|
|
156
|
+
onclick={handleClick}
|
|
157
|
+
>
|
|
158
|
+
{#if leadingSlot}
|
|
159
|
+
{@render leadingSlot()}
|
|
160
|
+
{:else if isLeading && leadingIconName}
|
|
161
|
+
<Icon name={leadingIconName} class={classes.leadingIcon} />
|
|
162
|
+
{:else if avatar}
|
|
163
|
+
<Avatar {...avatar} size={classes.leadingAvatarSize} class={classes.leadingAvatar} />
|
|
164
|
+
{/if}
|
|
165
|
+
|
|
166
|
+
{#if label}
|
|
167
|
+
<span class={classes.label}>{label}</span>
|
|
168
|
+
{:else if children}
|
|
169
|
+
<span class={classes.label}>{@render children()}</span>
|
|
170
|
+
{/if}
|
|
171
|
+
|
|
172
|
+
{#if trailingSlot}
|
|
173
|
+
{@render trailingSlot()}
|
|
174
|
+
{:else if isTrailing && trailingIconName}
|
|
175
|
+
<Icon name={trailingIconName} class={classes.trailingIcon} />
|
|
176
|
+
{/if}
|
|
177
|
+
</Link>
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { HTMLAnchorAttributes, HTMLAttributes, HTMLButtonAttributes } from 'svelte/elements';
|
|
3
|
+
import type { ClassNameValue } from 'tailwind-merge';
|
|
4
|
+
import type { AvatarProps } from '../Avatar/avatar.types.js';
|
|
5
|
+
import type { ButtonSlots, ButtonVariantProps } from './button.variants.js';
|
|
6
|
+
export type ButtonProps = Omit<HTMLAttributes<HTMLElement>, 'class' | 'color'> & Pick<HTMLButtonAttributes, 'name' | 'value' | 'form' | 'formaction' | 'formenctype' | 'formmethod' | 'formnovalidate' | 'formtarget' | 'popovertarget' | 'popovertargetaction'> & Pick<HTMLAnchorAttributes, 'download' | 'hreflang' | 'ping' | 'media' | 'referrerpolicy'> & {
|
|
7
|
+
/**
|
|
8
|
+
* Bindable reference to the root DOM element.
|
|
9
|
+
*/
|
|
10
|
+
ref?: HTMLElement | null;
|
|
11
|
+
/**
|
|
12
|
+
* Controls the visual style of the button.
|
|
13
|
+
* @default 'solid'
|
|
14
|
+
*/
|
|
15
|
+
variant?: NonNullable<ButtonVariantProps['variant']>;
|
|
16
|
+
/**
|
|
17
|
+
* Sets the color scheme applied to the button.
|
|
18
|
+
* @default 'primary'
|
|
19
|
+
*/
|
|
20
|
+
color?: NonNullable<ButtonVariantProps['color']>;
|
|
21
|
+
/**
|
|
22
|
+
* Controls the dimensions and text size of the button.
|
|
23
|
+
* @default 'md'
|
|
24
|
+
*/
|
|
25
|
+
size?: NonNullable<ButtonVariantProps['size']>;
|
|
26
|
+
/**
|
|
27
|
+
* Text content displayed inside the button.
|
|
28
|
+
* Use this as a shorthand instead of the `children` snippet.
|
|
29
|
+
*/
|
|
30
|
+
label?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Renders a loading spinner and disables interaction.
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
loading?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Automatically shows loading state while the onclick handler's Promise is pending.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
loadingAuto?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Icon displayed as the loading indicator.
|
|
43
|
+
* Supports any valid Iconify icon name.
|
|
44
|
+
* @default Uses `icons.loading` from app config
|
|
45
|
+
*/
|
|
46
|
+
loadingIcon?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Disables the button and prevents interaction.
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
disabled?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Stretches the button to fill the full width of its container.
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
block?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Forces equal width and height, ideal for icon-only buttons.
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
square?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Renders the button in icon-only mode without a label.
|
|
64
|
+
* Supports any valid Iconify icon name.
|
|
65
|
+
*/
|
|
66
|
+
icon?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Icon placed before the label.
|
|
69
|
+
* Supports any valid Iconify icon name.
|
|
70
|
+
*/
|
|
71
|
+
leadingIcon?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Icon placed after the label.
|
|
74
|
+
* Supports any valid Iconify icon name.
|
|
75
|
+
*/
|
|
76
|
+
trailingIcon?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Moves the icon to the trailing (right) side.
|
|
79
|
+
* Only takes effect when using the `icon` prop.
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
82
|
+
trailing?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Avatar displayed before the label.
|
|
85
|
+
* Takes precedence over `leadingIcon`.
|
|
86
|
+
*/
|
|
87
|
+
avatar?: AvatarProps;
|
|
88
|
+
/**
|
|
89
|
+
* The destination URL. When provided, renders as an anchor element.
|
|
90
|
+
*/
|
|
91
|
+
href?: string;
|
|
92
|
+
/**
|
|
93
|
+
* The button type attribute. Only applies when rendering as `<button>`.
|
|
94
|
+
* @default 'button'
|
|
95
|
+
*/
|
|
96
|
+
type?: 'button' | 'submit' | 'reset';
|
|
97
|
+
/**
|
|
98
|
+
* Treats the link as external, adding `rel="noopener noreferrer"` and `target="_blank"`.
|
|
99
|
+
* Auto-detected from the `href` when omitted.
|
|
100
|
+
*/
|
|
101
|
+
external?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Overrides the auto-detected active state.
|
|
104
|
+
*/
|
|
105
|
+
active?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Requires an exact pathname match for active state detection.
|
|
108
|
+
* @default false
|
|
109
|
+
*/
|
|
110
|
+
exact?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Color scheme applied when the button is active.
|
|
113
|
+
* Falls back to the `color` prop when omitted.
|
|
114
|
+
*/
|
|
115
|
+
activeColor?: NonNullable<ButtonVariantProps['color']>;
|
|
116
|
+
/**
|
|
117
|
+
* Visual style applied when the button is active.
|
|
118
|
+
* Falls back to the `variant` prop when omitted.
|
|
119
|
+
*/
|
|
120
|
+
activeVariant?: NonNullable<ButtonVariantProps['variant']>;
|
|
121
|
+
/**
|
|
122
|
+
* Additional CSS class applied when the button link is active.
|
|
123
|
+
*/
|
|
124
|
+
activeClass?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Additional CSS class applied when the button link is inactive.
|
|
127
|
+
*/
|
|
128
|
+
inactiveClass?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Custom content rendered before the label.
|
|
131
|
+
* Takes precedence over `avatar` and `leadingIcon`.
|
|
132
|
+
*/
|
|
133
|
+
leadingSlot?: Snippet;
|
|
134
|
+
/**
|
|
135
|
+
* Custom content rendered after the label.
|
|
136
|
+
* Takes precedence over `trailingIcon`.
|
|
137
|
+
*/
|
|
138
|
+
trailingSlot?: Snippet;
|
|
139
|
+
/**
|
|
140
|
+
* Custom content for the button label area.
|
|
141
|
+
*/
|
|
142
|
+
children?: Snippet;
|
|
143
|
+
/**
|
|
144
|
+
* Additional CSS classes for the root element.
|
|
145
|
+
*/
|
|
146
|
+
class?: ClassNameValue;
|
|
147
|
+
/**
|
|
148
|
+
* Override styles for specific button slots.
|
|
149
|
+
*/
|
|
150
|
+
ui?: Partial<Record<Exclude<ButtonSlots, 'leadingAvatarSize'>, ClassNameValue>>;
|
|
151
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|