@skeletonlabs/skeleton 0.92.1 → 0.92.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions/Clipboard/clipboard.d.ts +4 -0
- package/actions/Clipboard/clipboard.js +37 -0
- package/actions/Filters/filter.d.ts +3 -0
- package/actions/Filters/filter.js +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/Apollo.svelte +0 -0
- package/actions/Filters/svg-filters/Apollo.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/BlueNight.svelte +0 -0
- package/actions/Filters/svg-filters/BlueNight.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/Emerald.svelte +0 -0
- package/actions/Filters/svg-filters/Emerald.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/GreenFall.svelte +0 -0
- package/actions/Filters/svg-filters/GreenFall.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/Noir.svelte +0 -0
- package/actions/Filters/svg-filters/Noir.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/NoirLight.svelte +0 -0
- package/actions/Filters/svg-filters/NoirLight.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/Rustic.svelte +0 -0
- package/actions/Filters/svg-filters/Rustic.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/Summer84.svelte +0 -0
- package/actions/Filters/svg-filters/Summer84.svelte.d.ts +23 -0
- package/{src/lib/actions → actions}/Filters/svg-filters/XPro.svelte +0 -0
- package/actions/Filters/svg-filters/XPro.svelte.d.ts +23 -0
- package/actions/FocusTrap/focusTrap.d.ts +4 -0
- package/actions/FocusTrap/focusTrap.js +53 -0
- package/components/Accordion/AccordionGroup.svelte +46 -0
- package/components/Accordion/AccordionGroup.svelte.d.ts +24 -0
- package/components/Accordion/AccordionItem.svelte +73 -0
- package/components/Accordion/AccordionItem.svelte.d.ts +36 -0
- package/components/Alert/Alert.svelte +65 -0
- package/components/Alert/Alert.svelte.d.ts +30 -0
- package/components/AppBar/AppBar.svelte +54 -0
- package/components/AppBar/AppBar.svelte.d.ts +30 -0
- package/components/AppRail/AppRail.svelte +51 -0
- package/components/AppRail/AppRail.svelte.d.ts +32 -0
- package/components/AppRail/AppRailTile.svelte +57 -0
- package/components/AppRail/AppRailTile.svelte.d.ts +33 -0
- package/components/AppShell/AppShell.svelte +80 -0
- package/components/AppShell/AppShell.svelte.d.ts +31 -0
- package/components/Avatar/Avatar.svelte +46 -0
- package/components/Avatar/Avatar.svelte.d.ts +32 -0
- package/components/Breadcrumb/Breadcrumb.svelte +24 -0
- package/components/Breadcrumb/Breadcrumb.svelte.d.ts +21 -0
- package/{src/lib/components → components}/Breadcrumb/Crumb.svelte +16 -23
- package/components/Breadcrumb/Crumb.svelte.d.ts +26 -0
- package/components/ConicGradient/ConicGradient.svelte +80 -0
- package/components/ConicGradient/ConicGradient.svelte.d.ts +29 -0
- package/components/ConicGradient/settings.d.ts +13 -0
- package/components/ConicGradient/settings.js +335 -0
- package/components/ConicGradient/types.d.ts +10 -0
- package/components/ConicGradient/types.js +2 -0
- package/components/Divider/Divider.svelte +21 -0
- package/components/Divider/Divider.svelte.d.ts +22 -0
- package/components/FileButton/FileButton.svelte +25 -0
- package/components/FileButton/FileButton.svelte.d.ts +25 -0
- package/components/FileDropzone/FileDropzone.svelte +95 -0
- package/components/FileDropzone/FileDropzone.svelte.d.ts +32 -0
- package/components/GradientHeading/GradientHeading.svelte +21 -0
- package/components/GradientHeading/GradientHeading.svelte.d.ts +22 -0
- package/components/InputChip/InputChip.svelte +107 -0
- package/components/InputChip/InputChip.svelte.d.ts +29 -0
- package/components/ListBox/ListBox.svelte +57 -0
- package/components/ListBox/ListBox.svelte.d.ts +30 -0
- package/components/ListBox/ListBoxItem.svelte +88 -0
- package/components/ListBox/ListBoxItem.svelte.d.ts +32 -0
- package/components/Paginator/Paginator.svelte +74 -0
- package/components/Paginator/Paginator.svelte.d.ts +29 -0
- package/components/Paginator/types.d.ts +10 -0
- package/components/Paginator/types.js +2 -0
- package/components/ProgressBar/ProgressBar.svelte +67 -0
- package/components/ProgressBar/ProgressBar.svelte.d.ts +24 -0
- package/components/ProgressRadial/ProgressRadial.svelte +89 -0
- package/components/ProgressRadial/ProgressRadial.svelte.d.ts +25 -0
- package/components/Radio/RadioGroup.svelte +48 -0
- package/components/Radio/RadioGroup.svelte.d.ts +31 -0
- package/components/Radio/RadioItem.svelte +61 -0
- package/components/Radio/RadioItem.svelte.d.ts +33 -0
- package/components/RangeSlider/RangeSlider.svelte +101 -0
- package/components/RangeSlider/RangeSlider.svelte.d.ts +32 -0
- package/components/SlideToggle/SlideToggle.svelte +100 -0
- package/components/SlideToggle/SlideToggle.svelte.d.ts +34 -0
- package/components/Stepper/Step.svelte +133 -0
- package/components/Stepper/Step.svelte.d.ts +39 -0
- package/components/Stepper/Stepper.svelte +64 -0
- package/components/Stepper/Stepper.svelte.d.ts +32 -0
- package/components/SvgIcon/SvgIcon.svelte +45 -0
- package/components/SvgIcon/SvgIcon.svelte.d.ts +26 -0
- package/components/SvgIcon/icons.d.ts +1 -0
- package/components/SvgIcon/icons.js +25 -0
- package/components/Tab/Tab.svelte +69 -0
- package/components/Tab/Tab.svelte.d.ts +37 -0
- package/components/Tab/TabGroup.svelte +69 -0
- package/components/Tab/TabGroup.svelte.d.ts +30 -0
- package/components/Table/Table.svelte +99 -0
- package/components/Table/Table.svelte.d.ts +27 -0
- package/components/Table/types.d.ts +10 -0
- package/components/Table/types.js +1 -0
- package/components/Table/utils.d.ts +7 -0
- package/{src/lib/components/Table/utils.ts → components/Table/utils.js} +10 -16
- package/components/TableOfContents/TableOfContents.svelte +132 -0
- package/components/TableOfContents/TableOfContents.svelte.d.ts +32 -0
- package/{src/lib/index.ts → index.d.ts} +1 -31
- package/index.js +71 -0
- package/package.json +158 -61
- package/{src/lib/styles → styles}/all.css +0 -0
- package/{src/lib/styles → styles}/core.css +0 -0
- package/{src/lib/styles → styles}/elements/alerts.css +0 -0
- package/{src/lib/styles → styles}/elements/badges.css +0 -0
- package/{src/lib/styles → styles}/elements/breadcrumbs.css +0 -0
- package/{src/lib/styles → styles}/elements/buttons.css +0 -0
- package/{src/lib/styles → styles}/elements/cards.css +0 -0
- package/{src/lib/styles → styles}/elements/chips.css +0 -0
- package/{src/lib/styles → styles}/elements/lists.css +0 -0
- package/{src/lib/styles → styles}/elements/logo-clouds.css +0 -0
- package/{src/lib/styles → styles}/elements/menus.css +0 -0
- package/{src/lib/styles → styles}/elements/placeholders.css +0 -0
- package/{src/lib/styles → styles}/elements/tables.css +0 -0
- package/{src/lib/styles → styles}/elements/tooltips.css +0 -0
- package/{src/lib/styles → styles}/elements.css +0 -0
- package/{src/lib/styles → styles}/forms.css +0 -0
- package/{src/lib/styles → styles}/highlight-js.css +0 -0
- package/{src/lib/styles → styles}/tailwind.css +0 -0
- package/{src/lib/styles → styles}/typography.css +0 -0
- package/tailwind/generated/allComponents.cjs +1 -0
- package/tailwind/generated/allComponents.d.cts +2156 -0
- package/{src/lib/tailwind → tailwind}/settings.cjs +0 -0
- package/tailwind/settings.d.cts +6 -0
- package/{src/lib/tailwind → tailwind}/skeleton.cjs +0 -0
- package/tailwind/skeleton.d.cts +5 -0
- package/{src/lib/tailwind → tailwind}/theme/colors.cjs +0 -0
- package/tailwind/theme/colors.d.cts +2 -0
- package/{src/lib/tailwind → tailwind}/tokens/backgrounds.cjs +0 -0
- package/tailwind/tokens/backgrounds.d.cts +2 -0
- package/{src/lib/tailwind → tailwind}/tokens/border-radius.cjs +0 -0
- package/tailwind/tokens/border-radius.d.cts +33 -0
- package/{src/lib/tailwind → tailwind}/tokens/borders.cjs +0 -0
- package/tailwind/tokens/borders.d.cts +6 -0
- package/{src/lib/tailwind → tailwind}/tokens/fills.cjs +0 -0
- package/tailwind/tokens/fills.d.cts +15 -0
- package/{src/lib/tailwind → tailwind}/tokens/rings.cjs +0 -0
- package/tailwind/tokens/rings.d.cts +17 -0
- package/{src/lib/tailwind → tailwind}/tokens/text.cjs +0 -0
- package/tailwind/tokens/text.d.cts +21 -0
- package/{src/lib/themes → themes}/theme-crimson.css +0 -0
- package/{src/lib/themes → themes}/theme-gold-nouveau.css +0 -0
- package/{src/lib/themes → themes}/theme-hamlindigo.css +0 -0
- package/{src/lib/themes → themes}/theme-modern.css +0 -0
- package/{src/lib/themes → themes}/theme-rocket.css +0 -0
- package/{src/lib/themes → themes}/theme-sahara.css +0 -0
- package/{src/lib/themes → themes}/theme-seafoam.css +0 -0
- package/{src/lib/themes → themes}/theme-seasonal.css +0 -0
- package/{src/lib/themes → themes}/theme-skeleton.css +0 -0
- package/{src/lib/themes → themes}/theme-vintage.css +0 -0
- package/utilities/CodeBlock/CodeBlock.svelte +68 -0
- package/utilities/CodeBlock/CodeBlock.svelte.d.ts +25 -0
- package/utilities/CodeBlock/stores.d.ts +2 -0
- package/utilities/CodeBlock/stores.js +3 -0
- package/utilities/DataTable/DataTable.d.ts +18 -0
- package/utilities/DataTable/DataTable.js +137 -0
- package/utilities/DataTable/actions.d.ts +8 -0
- package/utilities/DataTable/actions.js +114 -0
- package/utilities/DataTable/types.d.ts +33 -0
- package/utilities/DataTable/types.js +2 -0
- package/utilities/Drawer/Drawer.svelte +157 -0
- package/utilities/Drawer/Drawer.svelte.d.ts +33 -0
- package/utilities/Drawer/stores.d.ts +10 -0
- package/utilities/Drawer/stores.js +21 -0
- package/utilities/Drawer/types.d.ts +33 -0
- package/utilities/Drawer/types.js +2 -0
- package/utilities/LightSwitch/LightSwitch.svelte +98 -0
- package/utilities/LightSwitch/LightSwitch.svelte.d.ts +21 -0
- package/utilities/LightSwitch/stores.d.ts +2 -0
- package/utilities/LightSwitch/stores.js +5 -0
- package/utilities/LocalStorageStore/LocalStorageStore.d.ts +12 -0
- package/utilities/LocalStorageStore/LocalStorageStore.js +49 -0
- package/utilities/Menu/menu.d.ts +18 -0
- package/utilities/Menu/menu.js +151 -0
- package/utilities/Modal/Modal.svelte +195 -0
- package/utilities/Modal/Modal.svelte.d.ts +35 -0
- package/{src/lib/utilities → utilities}/Modal/examples/ModalExampleEmbed.svelte +5 -7
- package/utilities/Modal/examples/ModalExampleEmbed.svelte.d.ts +17 -0
- package/{src/lib/utilities → utilities}/Modal/examples/ModalExampleForm.svelte +20 -24
- package/utilities/Modal/examples/ModalExampleForm.svelte.d.ts +17 -0
- package/{src/lib/utilities → utilities}/Modal/examples/ModalExampleList.svelte +13 -18
- package/utilities/Modal/examples/ModalExampleList.svelte.d.ts +17 -0
- package/utilities/Modal/stores.d.ts +12 -0
- package/utilities/Modal/stores.js +24 -0
- package/utilities/Modal/types.d.ts +36 -0
- package/utilities/Modal/types.js +2 -0
- package/utilities/Toast/Toast.svelte +117 -0
- package/utilities/Toast/Toast.svelte.d.ts +28 -0
- package/utilities/Toast/stores.d.ts +10 -0
- package/utilities/Toast/stores.js +60 -0
- package/utilities/Toast/types.d.ts +26 -0
- package/utilities/Toast/types.js +2 -0
- package/utilities/Tooltip/tooltip.d.ts +35 -0
- package/utilities/Tooltip/tooltip.js +94 -0
- package/.eslintrc.cjs +0 -20
- package/.github/FUNDING.yml +0 -13
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -30
- package/.github/ISSUE_TEMPLATE/config.yml +0 -8
- package/.github/ISSUE_TEMPLATE/docs_issue.yml +0 -23
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -22
- package/.github/pull_request_template.md +0 -14
- package/.prettierignore +0 -12
- package/.prettierrc +0 -6
- package/postcss.config.cjs +0 -14
- package/scripts/compile-css-to-js.cjs +0 -50
- package/scripts/generate-jss.js +0 -67
- package/scripts/post-build.js +0 -17
- package/scripts/pre-build.js +0 -14
- package/src/app.d.ts +0 -13
- package/src/app.html +0 -43
- package/src/app.postcss +0 -10
- package/src/docs/DocsAppBar/DocsAppBar.svelte +0 -213
- package/src/docs/DocsFooter/DocsFooter.svelte +0 -78
- package/src/docs/DocsLogo/DocsLogoAnim.svelte +0 -44
- package/src/docs/DocsLogo/DocsLogoFull.svelte +0 -11
- package/src/docs/DocsLogo/DocsLogoIcon.svelte +0 -6
- package/src/docs/DocsNavigation/DocsDrawer.svelte +0 -23
- package/src/docs/DocsNavigation/DocsSidebar.svelte +0 -103
- package/src/docs/DocsNavigation/links.ts +0 -148
- package/src/docs/DocsSearch/DocsSearch.svelte +0 -78
- package/src/docs/DocsShell/DocsShell.svelte +0 -377
- package/src/docs/DocsShell/sveldMapper.ts +0 -143
- package/src/docs/DocsShell/types.ts +0 -96
- package/src/docs/DocsStyles/blog.css +0 -192
- package/src/docs/DocsThemer/DocsThemer.svelte +0 -254
- package/src/docs/DocsThemer/Swatch.svelte +0 -28
- package/src/docs/DocsThemer/colors.ts +0 -122
- package/src/docs/DocsThemer/settings.ts +0 -129
- package/src/docs/DocsThemer/stores.ts +0 -5
- package/src/docs/DocsThemer/types.ts +0 -20
- package/src/docs/README.md +0 -3
- package/src/docs/stores.ts +0 -15
- package/src/lib/actions/Clipboard/clipboard.ts +0 -39
- package/src/lib/actions/Filters/filter.test.ts +0 -40
- package/src/lib/actions/Filters/filter.ts +0 -23
- package/src/lib/actions/FocusTrap/focusTrap.ts +0 -56
- package/src/lib/components/Accordion/AccordionGroup.svelte +0 -53
- package/src/lib/components/Accordion/AccordionGroup.test.ts +0 -22
- package/src/lib/components/Accordion/AccordionItem.svelte +0 -80
- package/src/lib/components/Accordion/AccordionItem.test.ts +0 -28
- package/src/lib/components/Alert/Alert.svelte +0 -71
- package/src/lib/components/Alert/Alert.test.ts +0 -30
- package/src/lib/components/AppBar/AppBar.svelte +0 -60
- package/src/lib/components/AppBar/AppBar.test.ts +0 -31
- package/src/lib/components/AppRail/AppRail.svelte +0 -58
- package/src/lib/components/AppRail/AppRailTile.svelte +0 -66
- package/src/lib/components/AppShell/AppShell.svelte +0 -84
- package/src/lib/components/AppShell/AppShell.test.ts +0 -26
- package/src/lib/components/Avatar/Avatar.svelte +0 -51
- package/src/lib/components/Avatar/Avatar.test.ts +0 -41
- package/src/lib/components/Breadcrumb/Breadcrumb.svelte +0 -30
- package/src/lib/components/Breadcrumb/Breadcrumb.test.ts +0 -20
- package/src/lib/components/Breadcrumb/Crumb.test.ts +0 -48
- package/src/lib/components/ConicGradient/ConicGradient.svelte +0 -88
- package/src/lib/components/ConicGradient/ConicGradient.test.ts +0 -26
- package/src/lib/components/ConicGradient/settings.ts +0 -345
- package/src/lib/components/ConicGradient/types.ts +0 -12
- package/src/lib/components/Divider/Divider.svelte +0 -26
- package/src/lib/components/Divider/Divider.test.ts +0 -32
- package/src/lib/components/FileButton/FileButton.svelte +0 -29
- package/src/lib/components/FileButton/FileButton.test.ts +0 -32
- package/src/lib/components/FileDropzone/FileDropzone.svelte +0 -108
- package/src/lib/components/FileDropzone/FileDropzone.test.ts +0 -32
- package/src/lib/components/GradientHeading/GradientHeading.svelte +0 -24
- package/src/lib/components/GradientHeading/GradientHeading.test.ts +0 -30
- package/src/lib/components/InputChip/InputChip.svelte +0 -118
- package/src/lib/components/ListBox/ListBox.svelte +0 -65
- package/src/lib/components/ListBox/ListBox.test.ts +0 -48
- package/src/lib/components/ListBox/ListBoxItem.svelte +0 -99
- package/src/lib/components/ListBox/ListBoxItem.test.ts +0 -22
- package/src/lib/components/Paginator/Paginator.svelte +0 -84
- package/src/lib/components/Paginator/Paginator.test.ts +0 -29
- package/src/lib/components/Paginator/types.ts +0 -12
- package/src/lib/components/ProgressBar/ProgressBar.svelte +0 -73
- package/src/lib/components/ProgressBar/ProgressBar.test.ts +0 -27
- package/src/lib/components/ProgressRadial/ProgressRadial.svelte +0 -98
- package/src/lib/components/ProgressRadial/ProgressRadial.test.ts +0 -26
- package/src/lib/components/Radio/RadioGroup.svelte +0 -54
- package/src/lib/components/Radio/RadioGroup.test.ts +0 -35
- package/src/lib/components/Radio/RadioItem.svelte +0 -71
- package/src/lib/components/Radio/RadioItem.test.ts +0 -32
- package/src/lib/components/RangeSlider/RangeSlider.svelte +0 -110
- package/src/lib/components/RangeSlider/RangeSlider.test.ts +0 -44
- package/src/lib/components/SlideToggle/SlideToggle.svelte +0 -106
- package/src/lib/components/SlideToggle/SlideToggle.test.ts +0 -23
- package/src/lib/components/Stepper/Step.svelte +0 -140
- package/src/lib/components/Stepper/Step.test.ts +0 -21
- package/src/lib/components/Stepper/Stepper.svelte +0 -71
- package/src/lib/components/Stepper/Stepper.test.ts +0 -31
- package/src/lib/components/SvgIcon/SvgIcon.svelte +0 -50
- package/src/lib/components/SvgIcon/SvgIcon.test.ts +0 -28
- package/src/lib/components/SvgIcon/icons.ts +0 -29
- package/src/lib/components/Tab/Tab.svelte +0 -79
- package/src/lib/components/Tab/Tab.test.ts +0 -26
- package/src/lib/components/Tab/TabGroup.svelte +0 -78
- package/src/lib/components/Tab/TabGroup.test.ts +0 -30
- package/src/lib/components/Table/Table.svelte +0 -106
- package/src/lib/components/Table/types.ts +0 -10
- package/src/lib/components/TableOfContents/TableOfContents.svelte +0 -139
- package/src/lib/themes/theme-test.css +0 -96
- package/src/lib/utilities/CodeBlock/CodeBlock.svelte +0 -78
- package/src/lib/utilities/CodeBlock/CodeBlock.test.ts +0 -27
- package/src/lib/utilities/CodeBlock/stores.ts +0 -5
- package/src/lib/utilities/DataTable/DataTable.ts +0 -151
- package/src/lib/utilities/DataTable/actions.ts +0 -100
- package/src/lib/utilities/DataTable/types.ts +0 -33
- package/src/lib/utilities/Drawer/Drawer.svelte +0 -173
- package/src/lib/utilities/Drawer/Drawer.test.ts +0 -15
- package/src/lib/utilities/Drawer/stores.ts +0 -27
- package/src/lib/utilities/Drawer/types.ts +0 -47
- package/src/lib/utilities/LightSwitch/LightSwitch.svelte +0 -116
- package/src/lib/utilities/LightSwitch/LightSwitch.test.ts +0 -19
- package/src/lib/utilities/LightSwitch/stores.ts +0 -7
- package/src/lib/utilities/LocalStorageStore/LocalStorageStore.test.ts +0 -220
- package/src/lib/utilities/LocalStorageStore/LocalStorageStore.ts +0 -77
- package/src/lib/utilities/Menu/menu.test.ts +0 -22
- package/src/lib/utilities/Menu/menu.ts +0 -172
- package/src/lib/utilities/Modal/Modal.svelte +0 -206
- package/src/lib/utilities/Modal/Modal.test.ts +0 -50
- package/src/lib/utilities/Modal/stores.ts +0 -29
- package/src/lib/utilities/Modal/types.ts +0 -39
- package/src/lib/utilities/Toast/Toast.svelte +0 -95
- package/src/lib/utilities/Toast/Toats.test.ts +0 -25
- package/src/lib/utilities/Toast/stores.ts +0 -63
- package/src/lib/utilities/Toast/types.ts +0 -29
- package/src/lib/utilities/Tooltip/tooltip.ts +0 -137
- package/src/routes/(inner)/+layout.svelte +0 -3
- package/src/routes/(inner)/actions/clipboard/+page.svelte +0 -87
- package/src/routes/(inner)/actions/filters/+page.svelte +0 -151
- package/src/routes/(inner)/actions/focus-trap/+page.svelte +0 -59
- package/src/routes/(inner)/components/accordions/+page.svelte +0 -127
- package/src/routes/(inner)/components/alerts/+page.svelte +0 -130
- package/src/routes/(inner)/components/app-bar/+page.svelte +0 -52
- package/src/routes/(inner)/components/app-rail/+page.svelte +0 -105
- package/src/routes/(inner)/components/app-shell/+page.svelte +0 -159
- package/src/routes/(inner)/components/avatars/+page.svelte +0 -193
- package/src/routes/(inner)/components/breadcrumbs/+page.svelte +0 -121
- package/src/routes/(inner)/components/conic-gradients/+page.svelte +0 -161
- package/src/routes/(inner)/components/dividers/+page.svelte +0 -146
- package/src/routes/(inner)/components/file-buttons/+page.svelte +0 -46
- package/src/routes/(inner)/components/file-dropzone/+page.svelte +0 -71
- package/src/routes/(inner)/components/gradient-headings/+page.svelte +0 -138
- package/src/routes/(inner)/components/input-chips/+page.svelte +0 -128
- package/src/routes/(inner)/components/listboxes/+page.svelte +0 -92
- package/src/routes/(inner)/components/paginators/+page.svelte +0 -118
- package/src/routes/(inner)/components/progress-bars/+page.svelte +0 -157
- package/src/routes/(inner)/components/progress-radials/+page.svelte +0 -64
- package/src/routes/(inner)/components/radio-groups/+page.svelte +0 -91
- package/src/routes/(inner)/components/range-sliders/+page.svelte +0 -134
- package/src/routes/(inner)/components/slide-toggles/+page.svelte +0 -63
- package/src/routes/(inner)/components/steppers/+page.svelte +0 -168
- package/src/routes/(inner)/components/svg-icons/+page.svelte +0 -60
- package/src/routes/(inner)/components/table-of-contents/+page.svelte +0 -110
- package/src/routes/(inner)/components/tables/+page.svelte +0 -216
- package/src/routes/(inner)/components/tabs/+page.svelte +0 -146
- package/src/routes/(inner)/docs/comparisons/+page.svelte +0 -130
- package/src/routes/(inner)/docs/contributions/+page.svelte +0 -78
- package/src/routes/(inner)/docs/contributions/documentation/+page.svelte +0 -217
- package/src/routes/(inner)/docs/contributions/requirements/+page.svelte +0 -173
- package/src/routes/(inner)/docs/contributions/style-guide/+page.svelte +0 -164
- package/src/routes/(inner)/docs/faqs/+page.svelte +0 -80
- package/src/routes/(inner)/docs/features/+page.svelte +0 -121
- package/src/routes/(inner)/docs/recommended/+page.svelte +0 -162
- package/src/routes/(inner)/docs/why/+page.svelte +0 -104
- package/src/routes/(inner)/elements/alerts/+page.svelte +0 -142
- package/src/routes/(inner)/elements/badges/+page.svelte +0 -155
- package/src/routes/(inner)/elements/breadcrumbs/+page.svelte +0 -132
- package/src/routes/(inner)/elements/buttons/+page.svelte +0 -304
- package/src/routes/(inner)/elements/cards/+page.svelte +0 -117
- package/src/routes/(inner)/elements/chips/+page.svelte +0 -130
- package/src/routes/(inner)/elements/core/+page.svelte +0 -98
- package/src/routes/(inner)/elements/forms/+page.svelte +0 -89
- package/src/routes/(inner)/elements/forms/preview/+page.svelte +0 -256
- package/src/routes/(inner)/elements/lists/+page.svelte +0 -197
- package/src/routes/(inner)/elements/logo-clouds/+page.svelte +0 -105
- package/src/routes/(inner)/elements/placeholders/+page.svelte +0 -70
- package/src/routes/(inner)/elements/tables/+page.svelte +0 -138
- package/src/routes/(inner)/elements/tokens/+page.svelte +0 -176
- package/src/routes/(inner)/elements/typography/+page.svelte +0 -100
- package/src/routes/(inner)/guides/install/+page.svelte +0 -84
- package/src/routes/(inner)/guides/quickstart/+page.svelte +0 -118
- package/src/routes/(inner)/guides/styling/+page.svelte +0 -361
- package/src/routes/(inner)/guides/tailwind/+page.svelte +0 -150
- package/src/routes/(inner)/guides/themes/+page.svelte +0 -144
- package/src/routes/(inner)/guides/themes/colors/+page.svelte +0 -87
- package/src/routes/(inner)/guides/themes/generator/+page.svelte +0 -58
- package/src/routes/(inner)/guides/themes/presets.ts +0 -69
- package/src/routes/(inner)/template/+page.svelte +0 -52
- package/src/routes/(inner)/utilities/codeblocks/+page.svelte +0 -77
- package/src/routes/(inner)/utilities/data-tables/+page.svelte +0 -399
- package/src/routes/(inner)/utilities/data-tables/+page.ts +0 -18
- package/src/routes/(inner)/utilities/drawers/+page.svelte +0 -193
- package/src/routes/(inner)/utilities/lightswitches/+page.svelte +0 -86
- package/src/routes/(inner)/utilities/local-storage-stores/+page.svelte +0 -67
- package/src/routes/(inner)/utilities/menus/+page.svelte +0 -186
- package/src/routes/(inner)/utilities/modals/+page.svelte +0 -391
- package/src/routes/(inner)/utilities/toasts/+page.svelte +0 -212
- package/src/routes/(inner)/utilities/tooltips/+page.svelte +0 -153
- package/src/routes/+error.svelte +0 -16
- package/src/routes/+layout.server.ts +0 -13
- package/src/routes/+layout.svelte +0 -100
- package/src/routes/+page.server.ts +0 -12
- package/src/routes/+page.svelte +0 -197
- package/src/routes/blog/+page.svelte +0 -78
- package/src/routes/blog/+page.ts +0 -6
- package/src/routes/blog/[slug]/+page.svelte +0 -112
- package/src/routes/blog/[slug]/+page.ts +0 -6
- package/src/routes/blog/blog-service.ts +0 -31
- package/src/routes/blog/rss/+server.ts +0 -16
- package/static/favicon.png +0 -0
- package/svelte.config.js +0 -30
- package/tailwind.config.cjs +0 -14
- package/tsconfig.json +0 -37
- package/vite.config.js +0 -25
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { ConicStop } from './types';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
stops?: ConicStop[] | undefined;
|
|
7
|
+
legend?: boolean | undefined;
|
|
8
|
+
spin?: boolean | undefined;
|
|
9
|
+
width?: string | undefined;
|
|
10
|
+
hover?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
events: {
|
|
13
|
+
click: MouseEvent;
|
|
14
|
+
keydown: KeyboardEvent;
|
|
15
|
+
keyup: KeyboardEvent;
|
|
16
|
+
keypress: KeyboardEvent;
|
|
17
|
+
} & {
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
};
|
|
20
|
+
slots: {
|
|
21
|
+
default: {};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type ConicGradientProps = typeof __propDef.props;
|
|
25
|
+
export type ConicGradientEvents = typeof __propDef.events;
|
|
26
|
+
export type ConicGradientSlots = typeof __propDef.slots;
|
|
27
|
+
export default class ConicGradient extends SvelteComponentTyped<ConicGradientProps, ConicGradientEvents, ConicGradientSlots> {
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type TailwindNumbers = typeof tailwindNumbers[number];
|
|
2
|
+
export declare const tailwindNumbers: readonly ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
|
|
3
|
+
export type SemanticNames = typeof semanticNames[number];
|
|
4
|
+
export declare const semanticNames: readonly ["primary", "secondary", "tertiary", "success", "warning", "error", "surface"];
|
|
5
|
+
export type HexRgb = {
|
|
6
|
+
hex: string;
|
|
7
|
+
rgb: string;
|
|
8
|
+
};
|
|
9
|
+
export type TailwindColorObject = {
|
|
10
|
+
label: string;
|
|
11
|
+
shades: Record<TailwindNumbers, HexRgb>;
|
|
12
|
+
};
|
|
13
|
+
export declare const tailwindDefaultColors: TailwindColorObject[];
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
export const tailwindNumbers = ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900'];
|
|
2
|
+
export const semanticNames = ['primary', 'secondary', 'tertiary', 'success', 'warning', 'error', 'surface'];
|
|
3
|
+
// https://tailwindcss.com/docs/customizing-colors#default-color-palette
|
|
4
|
+
export const tailwindDefaultColors = [
|
|
5
|
+
{
|
|
6
|
+
label: 'slate',
|
|
7
|
+
shades: {
|
|
8
|
+
'50': { hex: '#f8fafc', rgb: '248 250 252' },
|
|
9
|
+
'100': { hex: '#f1f5f9', rgb: '241 245 249' },
|
|
10
|
+
'200': { hex: '#e2e8f0', rgb: '226 232 240' },
|
|
11
|
+
'300': { hex: '#cbd5e1', rgb: '203 213 225' },
|
|
12
|
+
'400': { hex: '#94a3b8', rgb: '148 163 184' },
|
|
13
|
+
'500': { hex: '#64748b', rgb: '100 116 139' },
|
|
14
|
+
'600': { hex: '#475569', rgb: '71 85 105' },
|
|
15
|
+
'700': { hex: '#334155', rgb: '51 65 85' },
|
|
16
|
+
'800': { hex: '#1e293b', rgb: '30 41 59' },
|
|
17
|
+
'900': { hex: '#0f172a', rgb: '15 23 42' }
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
label: 'gray',
|
|
22
|
+
shades: {
|
|
23
|
+
'50': { hex: '#f9fafb', rgb: '249 250 251' },
|
|
24
|
+
'100': { hex: '#f3f4f6', rgb: '243 244 246' },
|
|
25
|
+
'200': { hex: '#e5e7eb', rgb: '229 231 235' },
|
|
26
|
+
'300': { hex: '#d1d5db', rgb: '209 213 219' },
|
|
27
|
+
'400': { hex: '#9ca3af', rgb: '156 163 175' },
|
|
28
|
+
'500': { hex: '#6b7280', rgb: '107 114 128' },
|
|
29
|
+
'600': { hex: '#4b5563', rgb: '75 85 99' },
|
|
30
|
+
'700': { hex: '#374151', rgb: '55 65 81' },
|
|
31
|
+
'800': { hex: '#1f2937', rgb: '31 41 55' },
|
|
32
|
+
'900': { hex: '#111827', rgb: '17 24 39' }
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
label: 'zinc',
|
|
37
|
+
shades: {
|
|
38
|
+
'50': { hex: '#fafafa', rgb: '250 250 250' },
|
|
39
|
+
'100': { hex: '#f4f4f5', rgb: '244 244 245' },
|
|
40
|
+
'200': { hex: '#e4e4e7', rgb: '228 228 231' },
|
|
41
|
+
'300': { hex: '#d4d4d8', rgb: '212 212 216' },
|
|
42
|
+
'400': { hex: '#a1a1aa', rgb: '161 161 170' },
|
|
43
|
+
'500': { hex: '#71717a', rgb: '113 113 122' },
|
|
44
|
+
'600': { hex: '#52525b', rgb: '82 82 91' },
|
|
45
|
+
'700': { hex: '#3f3f46', rgb: '63 63 70' },
|
|
46
|
+
'800': { hex: '#27272a', rgb: '39 39 42' },
|
|
47
|
+
'900': { hex: '#18181b', rgb: '24 24 27' }
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: 'neutral',
|
|
52
|
+
shades: {
|
|
53
|
+
'50': { hex: '#fafafa', rgb: '250 250 250' },
|
|
54
|
+
'100': { hex: '#f5f5f5', rgb: '245 245 245' },
|
|
55
|
+
'200': { hex: '#e5e5e5', rgb: '229 229 229' },
|
|
56
|
+
'300': { hex: '#d4d4d4', rgb: '212 212 212' },
|
|
57
|
+
'400': { hex: '#a3a3a3', rgb: '163 163 163' },
|
|
58
|
+
'500': { hex: '#737373', rgb: '115 115 115' },
|
|
59
|
+
'600': { hex: '#525252', rgb: '82 82 82' },
|
|
60
|
+
'700': { hex: '#404040', rgb: '64 64 64' },
|
|
61
|
+
'800': { hex: '#262626', rgb: '38 38 38' },
|
|
62
|
+
'900': { hex: '#171717', rgb: '23 23 23' }
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
label: 'stone',
|
|
67
|
+
shades: {
|
|
68
|
+
'50': { hex: '#fafaf9', rgb: '250 250 249' },
|
|
69
|
+
'100': { hex: '#f5f5f4', rgb: '245 245 244' },
|
|
70
|
+
'200': { hex: '#e7e5e4', rgb: '231 229 228' },
|
|
71
|
+
'300': { hex: '#d6d3d1', rgb: '214 211 209' },
|
|
72
|
+
'400': { hex: '#a8a29e', rgb: '168 162 158' },
|
|
73
|
+
'500': { hex: '#78716c', rgb: '120 113 108' },
|
|
74
|
+
'600': { hex: '#57534e', rgb: '87 83 78' },
|
|
75
|
+
'700': { hex: '#44403c', rgb: '68 64 60' },
|
|
76
|
+
'800': { hex: '#292524', rgb: '41 37 36' },
|
|
77
|
+
'900': { hex: '#1c1917', rgb: '28 25 23' }
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: 'red',
|
|
82
|
+
shades: {
|
|
83
|
+
'50': { hex: '#fef2f2', rgb: '254 242 242' },
|
|
84
|
+
'100': { hex: '#fee2e2', rgb: '254 226 226' },
|
|
85
|
+
'200': { hex: '#fecaca', rgb: '254 202 202' },
|
|
86
|
+
'300': { hex: '#fca5a5', rgb: '252 165 165' },
|
|
87
|
+
'400': { hex: '#f87171', rgb: '248 113 113' },
|
|
88
|
+
'500': { hex: '#ef4444', rgb: '239 68 68' },
|
|
89
|
+
'600': { hex: '#dc2626', rgb: '220 38 38' },
|
|
90
|
+
'700': { hex: '#b91c1c', rgb: '185 28 28' },
|
|
91
|
+
'800': { hex: '#991b1b', rgb: '153 27 27' },
|
|
92
|
+
'900': { hex: '#7f1d1d', rgb: '127 29 29' }
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: 'orange',
|
|
97
|
+
shades: {
|
|
98
|
+
'50': { hex: '#fff7ed', rgb: '255 247 237' },
|
|
99
|
+
'100': { hex: '#ffedd5', rgb: '255 237 213' },
|
|
100
|
+
'200': { hex: '#fed7aa', rgb: '254 215 170' },
|
|
101
|
+
'300': { hex: '#fdba74', rgb: '253 186 116' },
|
|
102
|
+
'400': { hex: '#fb923c', rgb: '251 146 60' },
|
|
103
|
+
'500': { hex: '#f97316', rgb: '249 115 22' },
|
|
104
|
+
'600': { hex: '#ea580c', rgb: '234 88 12' },
|
|
105
|
+
'700': { hex: '#c2410c', rgb: '194 65 12' },
|
|
106
|
+
'800': { hex: '#9a3412', rgb: '154 52 18' },
|
|
107
|
+
'900': { hex: '#7c2d12', rgb: '124 45 18' }
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
label: 'amber',
|
|
112
|
+
shades: {
|
|
113
|
+
'50': { hex: '#fffbeb', rgb: '255 251 235' },
|
|
114
|
+
'100': { hex: '#fef3c7', rgb: '254 243 199' },
|
|
115
|
+
'200': { hex: '#fde68a', rgb: '253 230 138' },
|
|
116
|
+
'300': { hex: '#fcd34d', rgb: '252 211 77' },
|
|
117
|
+
'400': { hex: '#fbbf24', rgb: '251 191 36' },
|
|
118
|
+
'500': { hex: '#f59e0b', rgb: '245 158 11' },
|
|
119
|
+
'600': { hex: '#d97706', rgb: '217 119 6' },
|
|
120
|
+
'700': { hex: '#b45309', rgb: '180 83 9' },
|
|
121
|
+
'800': { hex: '#92400e', rgb: '146 64 14' },
|
|
122
|
+
'900': { hex: '#78350f', rgb: '120 53 15' }
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
label: 'yellow',
|
|
127
|
+
shades: {
|
|
128
|
+
'50': { hex: '#fefce8', rgb: '254 252 232' },
|
|
129
|
+
'100': { hex: '#fef9c3', rgb: '254 249 195' },
|
|
130
|
+
'200': { hex: '#fef08a', rgb: '254 240 138' },
|
|
131
|
+
'300': { hex: '#fde047', rgb: '253 224 71' },
|
|
132
|
+
'400': { hex: '#facc15', rgb: '250 204 21' },
|
|
133
|
+
'500': { hex: '#eab308', rgb: '234 179 8' },
|
|
134
|
+
'600': { hex: '#ca8a04', rgb: '202 138 4' },
|
|
135
|
+
'700': { hex: '#a16207', rgb: '161 98 7' },
|
|
136
|
+
'800': { hex: '#854d0e', rgb: '133 77 14' },
|
|
137
|
+
'900': { hex: '#713f12', rgb: '113 63 18' }
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
label: 'lime',
|
|
142
|
+
shades: {
|
|
143
|
+
'50': { hex: '#f7fee7', rgb: '247 254 231' },
|
|
144
|
+
'100': { hex: '#ecfccb', rgb: '236 252 203' },
|
|
145
|
+
'200': { hex: '#d9f99d', rgb: '217 249 157' },
|
|
146
|
+
'300': { hex: '#bef264', rgb: '190 242 100' },
|
|
147
|
+
'400': { hex: '#a3e635', rgb: '163 230 53' },
|
|
148
|
+
'500': { hex: '#84cc16', rgb: '132 204 22' },
|
|
149
|
+
'600': { hex: '#65a30d', rgb: '101 163 13' },
|
|
150
|
+
'700': { hex: '#4d7c0f', rgb: '77 124 15' },
|
|
151
|
+
'800': { hex: '#3f6212', rgb: '63 98 18' },
|
|
152
|
+
'900': { hex: '#365314', rgb: '54 83 20' }
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
label: 'green',
|
|
157
|
+
shades: {
|
|
158
|
+
'50': { hex: '#f0fdf4', rgb: '240 253 244' },
|
|
159
|
+
'100': { hex: '#dcfce7', rgb: '220 252 231' },
|
|
160
|
+
'200': { hex: '#bbf7d0', rgb: '187 247 208' },
|
|
161
|
+
'300': { hex: '#86efac', rgb: '134 239 172' },
|
|
162
|
+
'400': { hex: '#4ade80', rgb: '74 222 128' },
|
|
163
|
+
'500': { hex: '#22c55e', rgb: '34 197 94' },
|
|
164
|
+
'600': { hex: '#16a34a', rgb: '22 163 74' },
|
|
165
|
+
'700': { hex: '#15803d', rgb: '21 128 61' },
|
|
166
|
+
'800': { hex: '#166534', rgb: '22 101 52' },
|
|
167
|
+
'900': { hex: '#14532d', rgb: '20 83 45' }
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
label: 'emerald',
|
|
172
|
+
shades: {
|
|
173
|
+
'50': { hex: '#ecfdf5', rgb: '236 253 245' },
|
|
174
|
+
'100': { hex: '#d1fae5', rgb: '209 250 229' },
|
|
175
|
+
'200': { hex: '#a7f3d0', rgb: '167 243 208' },
|
|
176
|
+
'300': { hex: '#6ee7b7', rgb: '110 231 183' },
|
|
177
|
+
'400': { hex: '#34d399', rgb: '52 211 153' },
|
|
178
|
+
'500': { hex: '#10b981', rgb: '16 185 129' },
|
|
179
|
+
'600': { hex: '#059669', rgb: '5 150 105' },
|
|
180
|
+
'700': { hex: '#047857', rgb: '4 120 87' },
|
|
181
|
+
'800': { hex: '#065f46', rgb: '6 95 70' },
|
|
182
|
+
'900': { hex: '#064e3b', rgb: '6 78 59' }
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
label: 'teal',
|
|
187
|
+
shades: {
|
|
188
|
+
'50': { hex: '#f0fdfa', rgb: '240 253 250' },
|
|
189
|
+
'100': { hex: '#ccfbf1', rgb: '204 251 241' },
|
|
190
|
+
'200': { hex: '#99f6e4', rgb: '153 246 228' },
|
|
191
|
+
'300': { hex: '#5eead4', rgb: '94 234 212' },
|
|
192
|
+
'400': { hex: '#2dd4bf', rgb: '45 212 191' },
|
|
193
|
+
'500': { hex: '#14b8a6', rgb: '20 184 166' },
|
|
194
|
+
'600': { hex: '#0d9488', rgb: '13 148 136' },
|
|
195
|
+
'700': { hex: '#0f766e', rgb: '15 118 110' },
|
|
196
|
+
'800': { hex: '#115e59', rgb: '17 94 89' },
|
|
197
|
+
'900': { hex: '#134e4a', rgb: '19 78 74' }
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
label: 'cyan',
|
|
202
|
+
shades: {
|
|
203
|
+
'50': { hex: '#ecfeff', rgb: '236 254 255' },
|
|
204
|
+
'100': { hex: '#cffafe', rgb: '207 250 254' },
|
|
205
|
+
'200': { hex: '#a5f3fc', rgb: '165 243 252' },
|
|
206
|
+
'300': { hex: '#67e8f9', rgb: '103 232 249' },
|
|
207
|
+
'400': { hex: '#22d3ee', rgb: '34 211 238' },
|
|
208
|
+
'500': { hex: '#06b6d4', rgb: '6 182 212' },
|
|
209
|
+
'600': { hex: '#0891b2', rgb: '8 145 178' },
|
|
210
|
+
'700': { hex: '#0e7490', rgb: '14 116 144' },
|
|
211
|
+
'800': { hex: '#155e75', rgb: '21 94 117' },
|
|
212
|
+
'900': { hex: '#164e63', rgb: '22 78 99' }
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
label: 'sky',
|
|
217
|
+
shades: {
|
|
218
|
+
'50': { hex: '#f0f9ff', rgb: '240 249 255' },
|
|
219
|
+
'100': { hex: '#e0f2fe', rgb: '224 242 254' },
|
|
220
|
+
'200': { hex: '#bae6fd', rgb: '186 230 253' },
|
|
221
|
+
'300': { hex: '#7dd3fc', rgb: '125 211 252' },
|
|
222
|
+
'400': { hex: '#38bdf8', rgb: '56 189 248' },
|
|
223
|
+
'500': { hex: '#0ea5e9', rgb: '14 165 233' },
|
|
224
|
+
'600': { hex: '#0284c7', rgb: '2 132 199' },
|
|
225
|
+
'700': { hex: '#0369a1', rgb: '3 105 161' },
|
|
226
|
+
'800': { hex: '#075985', rgb: '7 89 133' },
|
|
227
|
+
'900': { hex: '#0c4a6e', rgb: '12 74 110' }
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
label: 'blue',
|
|
232
|
+
shades: {
|
|
233
|
+
'50': { hex: '#eff6ff', rgb: '239 246 255' },
|
|
234
|
+
'100': { hex: '#dbeafe', rgb: '219 234 254' },
|
|
235
|
+
'200': { hex: '#bfdbfe', rgb: '191 219 254' },
|
|
236
|
+
'300': { hex: '#93c5fd', rgb: '147 197 253' },
|
|
237
|
+
'400': { hex: '#60a5fa', rgb: '96 165 250' },
|
|
238
|
+
'500': { hex: '#3b82f6', rgb: '59 130 246' },
|
|
239
|
+
'600': { hex: '#2563eb', rgb: '37 99 235' },
|
|
240
|
+
'700': { hex: '#1d4ed8', rgb: '29 78 216' },
|
|
241
|
+
'800': { hex: '#1e40af', rgb: '30 64 175' },
|
|
242
|
+
'900': { hex: '#1e3a8a', rgb: '30 58 138' }
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
label: 'indigo',
|
|
247
|
+
shades: {
|
|
248
|
+
'50': { hex: '#eef2ff', rgb: '238 242 255' },
|
|
249
|
+
'100': { hex: '#e0e7ff', rgb: '224 231 255' },
|
|
250
|
+
'200': { hex: '#c7d2fe', rgb: '199 210 254' },
|
|
251
|
+
'300': { hex: '#a5b4fc', rgb: '165 180 252' },
|
|
252
|
+
'400': { hex: '#818cf8', rgb: '129 140 248' },
|
|
253
|
+
'500': { hex: '#6366f1', rgb: '99 102 241' },
|
|
254
|
+
'600': { hex: '#4f46e5', rgb: '79 70 229' },
|
|
255
|
+
'700': { hex: '#4338ca', rgb: '67 56 202' },
|
|
256
|
+
'800': { hex: '#3730a3', rgb: '55 48 163' },
|
|
257
|
+
'900': { hex: '#312e81', rgb: '49 46 129' }
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
label: 'violet',
|
|
262
|
+
shades: {
|
|
263
|
+
'50': { hex: '#f5f3ff', rgb: '245 243 255' },
|
|
264
|
+
'100': { hex: '#ede9fe', rgb: '237 233 254' },
|
|
265
|
+
'200': { hex: '#ddd6fe', rgb: '221 214 254' },
|
|
266
|
+
'300': { hex: '#c4b5fd', rgb: '196 181 253' },
|
|
267
|
+
'400': { hex: '#a78bfa', rgb: '167 139 250' },
|
|
268
|
+
'500': { hex: '#8b5cf6', rgb: '139 92 246' },
|
|
269
|
+
'600': { hex: '#7c3aed', rgb: '124 58 237' },
|
|
270
|
+
'700': { hex: '#6d28d9', rgb: '109 40 217' },
|
|
271
|
+
'800': { hex: '#5b21b6', rgb: '91 33 182' },
|
|
272
|
+
'900': { hex: '#4c1d95', rgb: '76 29 149' }
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
label: 'purple',
|
|
277
|
+
shades: {
|
|
278
|
+
'50': { hex: '#faf5ff', rgb: '250 245 255' },
|
|
279
|
+
'100': { hex: '#f3e8ff', rgb: '243 232 255' },
|
|
280
|
+
'200': { hex: '#e9d5ff', rgb: '233 213 255' },
|
|
281
|
+
'300': { hex: '#d8b4fe', rgb: '216 180 254' },
|
|
282
|
+
'400': { hex: '#c084fc', rgb: '192 132 252' },
|
|
283
|
+
'500': { hex: '#a855f7', rgb: '168 85 247' },
|
|
284
|
+
'600': { hex: '#9333ea', rgb: '147 51 234' },
|
|
285
|
+
'700': { hex: '#7e22ce', rgb: '126 34 206' },
|
|
286
|
+
'800': { hex: '#6b21a8', rgb: '107 33 168' },
|
|
287
|
+
'900': { hex: '#581c87', rgb: '88 28 135' }
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
label: 'fuchsia',
|
|
292
|
+
shades: {
|
|
293
|
+
'50': { hex: '#fdf4ff', rgb: '253 244 255' },
|
|
294
|
+
'100': { hex: '#fae8ff', rgb: '250 232 255' },
|
|
295
|
+
'200': { hex: '#f5d0fe', rgb: '245 208 254' },
|
|
296
|
+
'300': { hex: '#f0abfc', rgb: '240 171 252' },
|
|
297
|
+
'400': { hex: '#e879f9', rgb: '232 121 249' },
|
|
298
|
+
'500': { hex: '#d946ef', rgb: '217 70 239' },
|
|
299
|
+
'600': { hex: '#c026d3', rgb: '192 38 211' },
|
|
300
|
+
'700': { hex: '#a21caf', rgb: '162 28 175' },
|
|
301
|
+
'800': { hex: '#86198f', rgb: '134 25 143' },
|
|
302
|
+
'900': { hex: '#701a75', rgb: '112 26 117' }
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
label: 'pink',
|
|
307
|
+
shades: {
|
|
308
|
+
'50': { hex: '#fdf2f8', rgb: '253 242 248' },
|
|
309
|
+
'100': { hex: '#fce7f3', rgb: '252 231 243' },
|
|
310
|
+
'200': { hex: '#fbcfe8', rgb: '251 207 232' },
|
|
311
|
+
'300': { hex: '#f9a8d4', rgb: '249 168 212' },
|
|
312
|
+
'400': { hex: '#f472b6', rgb: '244 114 182' },
|
|
313
|
+
'500': { hex: '#ec4899', rgb: '236 72 153' },
|
|
314
|
+
'600': { hex: '#db2777', rgb: '219 39 119' },
|
|
315
|
+
'700': { hex: '#be185d', rgb: '190 24 93' },
|
|
316
|
+
'800': { hex: '#9d174d', rgb: '157 23 77' },
|
|
317
|
+
'900': { hex: '#831843', rgb: '131 24 67' }
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
label: 'rose',
|
|
322
|
+
shades: {
|
|
323
|
+
'50': { hex: '#fff1f2', rgb: '255 241 242' },
|
|
324
|
+
'100': { hex: '#ffe4e6', rgb: '255 228 230' },
|
|
325
|
+
'200': { hex: '#fecdd3', rgb: '254 205 211' },
|
|
326
|
+
'300': { hex: '#fda4af', rgb: '253 164 175' },
|
|
327
|
+
'400': { hex: '#fb7185', rgb: '251 113 133' },
|
|
328
|
+
'500': { hex: '#f43f5e', rgb: '244 63 94' },
|
|
329
|
+
'600': { hex: '#e11d48', rgb: '225 29 72' },
|
|
330
|
+
'700': { hex: '#be123c', rgb: '190 18 60' },
|
|
331
|
+
'800': { hex: '#9f1239', rgb: '159 18 57' },
|
|
332
|
+
'900': { hex: '#881337', rgb: '136 19 55' }
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>// Props
|
|
2
|
+
/** When enabled, sets the width to zero and height to full. */
|
|
3
|
+
export let vertical = false;
|
|
4
|
+
/** Provide classes to set the border width. */
|
|
5
|
+
export let borderWidth = 'border-t';
|
|
6
|
+
/** Provide classes to set the border style. */
|
|
7
|
+
export let borderStyle = 'border-solid';
|
|
8
|
+
/** Provide classes to set the border color. */
|
|
9
|
+
export let borderColor = 'border-surface-300-600-token';
|
|
10
|
+
/** Provide classes to set the margin. */
|
|
11
|
+
export let margin = 'm-0';
|
|
12
|
+
/** Provide classes to set opacity. */
|
|
13
|
+
export let opacity = 'opacity-full';
|
|
14
|
+
// Base Classes
|
|
15
|
+
const cBaseDivider = `block`;
|
|
16
|
+
// Reactive Classes
|
|
17
|
+
$: classesOrientation = vertical === true ? 'w-0 h-full min-h-[24px]' : 'w-full h-0';
|
|
18
|
+
$: classesDivider = `${cBaseDivider} ${classesOrientation} ${borderWidth} ${borderStyle} ${borderColor} ${margin} ${opacity} ${$$props.class ?? ''}`;
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<hr class="divider {classesDivider}" data-testid="divider" />
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
vertical?: boolean | undefined;
|
|
6
|
+
borderWidth?: string | undefined;
|
|
7
|
+
borderStyle?: string | undefined;
|
|
8
|
+
borderColor?: string | undefined;
|
|
9
|
+
margin?: string | undefined;
|
|
10
|
+
opacity?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
events: {
|
|
13
|
+
[evt: string]: CustomEvent<any>;
|
|
14
|
+
};
|
|
15
|
+
slots: {};
|
|
16
|
+
};
|
|
17
|
+
export type DividerProps = typeof __propDef.props;
|
|
18
|
+
export type DividerEvents = typeof __propDef.events;
|
|
19
|
+
export type DividerSlots = typeof __propDef.slots;
|
|
20
|
+
export default class Divider extends SvelteComponentTyped<DividerProps, DividerEvents, DividerSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script>/**
|
|
2
|
+
* Bind your file data for the file input.
|
|
3
|
+
* @type {FileList}
|
|
4
|
+
*/
|
|
5
|
+
export let files;
|
|
6
|
+
/** Provide a button variant or other class styles. */
|
|
7
|
+
export let button = 'btn-filled-secondary';
|
|
8
|
+
let elemFileInput;
|
|
9
|
+
function onButtonClick() {
|
|
10
|
+
elemFileInput.click();
|
|
11
|
+
}
|
|
12
|
+
function prunedRestProps() {
|
|
13
|
+
delete $$restProps.class;
|
|
14
|
+
return $$restProps;
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<div class="file-button {$$props.class ?? ''}" data-testid="file-button">
|
|
19
|
+
<!-- Input: File -->
|
|
20
|
+
<input bind:this={elemFileInput} bind:files type="file" {...prunedRestProps()} class="file-button-input hidden" on:change />
|
|
21
|
+
<!-- Button -->
|
|
22
|
+
<button class="file-button-btn btn {button}" type="button" on:click={onButtonClick} on:keydown on:keyup on:keypress>
|
|
23
|
+
<slot />
|
|
24
|
+
</button>
|
|
25
|
+
</div>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
files: FileList;
|
|
6
|
+
button?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
change: Event;
|
|
10
|
+
keydown: KeyboardEvent;
|
|
11
|
+
keyup: KeyboardEvent;
|
|
12
|
+
keypress: KeyboardEvent;
|
|
13
|
+
} & {
|
|
14
|
+
[evt: string]: CustomEvent<any>;
|
|
15
|
+
};
|
|
16
|
+
slots: {
|
|
17
|
+
default: {};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export type FileButtonProps = typeof __propDef.props;
|
|
21
|
+
export type FileButtonEvents = typeof __propDef.events;
|
|
22
|
+
export type FileButtonSlots = typeof __propDef.slots;
|
|
23
|
+
export default class FileButton extends SvelteComponentTyped<FileButtonProps, FileButtonEvents, FileButtonSlots> {
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<script>import { createEventDispatcher } from 'svelte/internal';
|
|
2
|
+
// Event Dispatcher
|
|
3
|
+
const dispatch = createEventDispatcher();
|
|
4
|
+
// Props
|
|
5
|
+
/**
|
|
6
|
+
* Bind this to your form data, represents the "files" data from the input.
|
|
7
|
+
* @type {FileList}
|
|
8
|
+
*/
|
|
9
|
+
export let files;
|
|
10
|
+
/** Provided custom title.
|
|
11
|
+
* @type {string}
|
|
12
|
+
*/
|
|
13
|
+
export let title = 'Drop files or click to select.';
|
|
14
|
+
/** Provided additional notes or information. */
|
|
15
|
+
export let notes = '';
|
|
16
|
+
// Props (Styles)
|
|
17
|
+
/** Provide styles to set the dropzone width. */
|
|
18
|
+
export let width = 'w-full';
|
|
19
|
+
/** Provide styles to set the dropzone height. */
|
|
20
|
+
export let height = 'h-24';
|
|
21
|
+
/** Provide styles to set the dropzone padding. */
|
|
22
|
+
export let padding = 'p-4';
|
|
23
|
+
/** Provide styles to set the dropzone text color. */
|
|
24
|
+
export let color = '';
|
|
25
|
+
// Classes
|
|
26
|
+
const cBase = 'relative';
|
|
27
|
+
const cMessage = 'absolute top-0 left-0 right-0 bottom-0 z-[1] max-w-[480px] mx-auto flex justify-center items-center !pointer-events-none';
|
|
28
|
+
const cInput = '!border-2 border-dashed cursor-pointer !text-transparent !rounded-container-token';
|
|
29
|
+
// Local
|
|
30
|
+
let elemIcon;
|
|
31
|
+
// Drag and Drop Event Handlers
|
|
32
|
+
// Handles icon animation and passes events up
|
|
33
|
+
function onDragOver(event) {
|
|
34
|
+
/** @event {{ event: DragEvent }} dragover - When a file is dragged over the component. */
|
|
35
|
+
dispatch('dragover', event);
|
|
36
|
+
elemIcon?.classList.add('animate-bounce');
|
|
37
|
+
}
|
|
38
|
+
function onDragLeave(event) {
|
|
39
|
+
/** @event {{ event: DragEvent }} dragleave - When a file is dragged out off the component. */
|
|
40
|
+
dispatch('dragleave', event);
|
|
41
|
+
elemIcon?.classList.remove('animate-bounce');
|
|
42
|
+
}
|
|
43
|
+
function onDrop(event) {
|
|
44
|
+
/** @event {{ event: DragEvent }} drop - When a file is dropped on the component. */
|
|
45
|
+
dispatch('drop', event);
|
|
46
|
+
elemIcon?.classList.remove('animate-bounce');
|
|
47
|
+
}
|
|
48
|
+
// Reactive
|
|
49
|
+
$: classesBase = `${cBase} ${width} ${$$props.class ?? ''}`;
|
|
50
|
+
$: classesMessage = `${cMessage} ${color} ${height} ${padding}`;
|
|
51
|
+
$: classesInput = `${cInput} ${height} ${padding}`;
|
|
52
|
+
// Prune $$restProps to avoid overwriting $$props.class
|
|
53
|
+
function prunedRestProps() {
|
|
54
|
+
delete $$restProps.class;
|
|
55
|
+
return $$restProps;
|
|
56
|
+
}
|
|
57
|
+
</script>
|
|
58
|
+
|
|
59
|
+
<div
|
|
60
|
+
class="file-dropzone {classesBase}"
|
|
61
|
+
data-testid="file-dropzone"
|
|
62
|
+
on:dragenter
|
|
63
|
+
on:dragover={onDragOver}
|
|
64
|
+
on:dragleave={onDragLeave}
|
|
65
|
+
on:drop={onDrop}
|
|
66
|
+
on:click
|
|
67
|
+
on:keydown
|
|
68
|
+
on:keyup
|
|
69
|
+
on:keypress
|
|
70
|
+
>
|
|
71
|
+
<!-- Message -->
|
|
72
|
+
<div class="file-dropzone-message {classesMessage}">
|
|
73
|
+
<!-- Slot: Default -->
|
|
74
|
+
<slot>
|
|
75
|
+
<!-- Default Message -->
|
|
76
|
+
<div class="grid grid-cols-[auto_1fr] gap-4">
|
|
77
|
+
<!-- Icon -->
|
|
78
|
+
<div class="text-4xl flex justify-center items-center" bind:this={elemIcon}>↓</div>
|
|
79
|
+
<!-- Text -->
|
|
80
|
+
<div class="flex flex-col justify-center items-start space-y-0">
|
|
81
|
+
<div class="text-base font-bold">{@html title}</div>
|
|
82
|
+
{#if notes}<div class="text-sm opacity-70">{@html notes}</div>{/if}
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</slot>
|
|
86
|
+
</div>
|
|
87
|
+
<!-- Input: File -->
|
|
88
|
+
<input bind:files type="file" {...prunedRestProps()} class="file-dropzone-input {classesInput}" on:change />
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
<style>
|
|
92
|
+
/* Hide Input:File Content */
|
|
93
|
+
::file-selector-button {
|
|
94
|
+
display: none
|
|
95
|
+
}</style>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
files: FileList;
|
|
6
|
+
title?: string | undefined;
|
|
7
|
+
notes?: string | undefined;
|
|
8
|
+
width?: string | undefined;
|
|
9
|
+
height?: string | undefined;
|
|
10
|
+
padding?: string | undefined;
|
|
11
|
+
color?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
events: {
|
|
14
|
+
dragenter: DragEvent;
|
|
15
|
+
click: MouseEvent;
|
|
16
|
+
keydown: KeyboardEvent;
|
|
17
|
+
keyup: KeyboardEvent;
|
|
18
|
+
keypress: KeyboardEvent;
|
|
19
|
+
change: Event;
|
|
20
|
+
} & {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type FileDropzoneProps = typeof __propDef.props;
|
|
28
|
+
export type FileDropzoneEvents = typeof __propDef.events;
|
|
29
|
+
export type FileDropzoneSlots = typeof __propDef.slots;
|
|
30
|
+
export default class FileDropzone extends SvelteComponentTyped<FileDropzoneProps, FileDropzoneEvents, FileDropzoneSlots> {
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>/** Define the semantic element tag. */
|
|
2
|
+
export let tag = 'h1';
|
|
3
|
+
/** Provide classes to set gradient direction. */
|
|
4
|
+
export let direction = 'bg-gradient-to-r';
|
|
5
|
+
/** Provide classes to set "from" gradient color. */
|
|
6
|
+
export let from = 'from-primary-500';
|
|
7
|
+
/** Provide classes to set "to" gradient color. */
|
|
8
|
+
export let to = 'to-secondary-500';
|
|
9
|
+
// Base Clases
|
|
10
|
+
let cBaseHeading = 'bg-clip-text text-transparent box-decoration-clone';
|
|
11
|
+
// Reactive
|
|
12
|
+
$: classesBase = `${$$props.class ?? ''}`;
|
|
13
|
+
$: clasesText = `${cBaseHeading} ${direction} ${from} ${to}`;
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<!-- svelte-ignore a11y-role-has-required-aria-props-->
|
|
17
|
+
<svelte:element this={tag} class="gradient-heading {classesBase}" data-testid="gradient-heading" role="heading">
|
|
18
|
+
<span class="gradient-heading-text {clasesText}">
|
|
19
|
+
<slot />
|
|
20
|
+
</span>
|
|
21
|
+
</svelte:element>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
tag?: string | undefined;
|
|
6
|
+
direction?: string | undefined;
|
|
7
|
+
from?: string | undefined;
|
|
8
|
+
to?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
};
|
|
13
|
+
slots: {
|
|
14
|
+
default: {};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type GradientHeadingProps = typeof __propDef.props;
|
|
18
|
+
export type GradientHeadingEvents = typeof __propDef.events;
|
|
19
|
+
export type GradientHeadingSlots = typeof __propDef.slots;
|
|
20
|
+
export default class GradientHeading extends SvelteComponentTyped<GradientHeadingProps, GradientHeadingEvents, GradientHeadingSlots> {
|
|
21
|
+
}
|
|
22
|
+
export {};
|