@pathscale/ui 0.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -59
- package/dist/components/accordion/Accordion.d.ts +1 -0
- package/dist/components/accordion/Accordion.js +180 -0
- package/dist/components/accordion/collapse.css +248 -0
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/accordion/index.js +3 -0
- package/dist/components/alert/Alert.css +116 -0
- package/dist/components/alert/Alert.d.ts +32 -15
- package/dist/components/alert/Alert.js +195 -0
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/alert/index.js +8 -0
- package/dist/components/artboard/Artboard.js +42 -0
- package/dist/components/artboard/index.js +3 -0
- package/dist/components/avatar/Avatar.css +124 -0
- package/dist/components/avatar/Avatar.d.ts +24 -23
- package/dist/components/avatar/Avatar.js +159 -0
- package/dist/components/avatar/AvatarGroup.js +52 -0
- package/dist/components/avatar/index.d.ts +1 -3
- package/dist/components/avatar/index.js +6 -0
- package/dist/components/background/Background.js +22 -0
- package/dist/components/background/index.d.ts +1 -1
- package/dist/components/background/index.js +3 -0
- package/dist/components/badge/Badge.css +164 -0
- package/dist/components/badge/Badge.d.ts +24 -17
- package/dist/components/badge/Badge.js +98 -0
- package/dist/components/badge/index.d.ts +9 -1
- package/dist/components/badge/index.js +11 -0
- package/dist/components/bottom-sheet/BottomSheet.d.ts +1 -1
- package/dist/components/bottom-sheet/BottomSheet.js +109 -0
- package/dist/components/bottom-sheet/index.js +3 -0
- package/dist/components/breadcrumbs/Breadcrumbs.css +63 -0
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +17 -4
- package/dist/components/breadcrumbs/Breadcrumbs.js +117 -0
- package/dist/components/breadcrumbs/index.d.ts +1 -2
- package/dist/components/breadcrumbs/index.js +5 -0
- package/dist/components/browsermockup/BrowserMockup.js +55 -0
- package/dist/components/browsermockup/index.js +3 -0
- package/dist/components/button/Button.css +184 -0
- package/dist/components/button/Button.d.ts +11 -31
- package/dist/components/button/Button.js +70 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/index.js +3 -0
- package/dist/components/calendar/Calendar.d.ts +1 -0
- package/dist/components/calendar/Calendar.js +194 -0
- package/dist/components/calendar/index.js +3 -0
- package/dist/components/calendar/input.css +277 -0
- package/dist/components/card/Card.d.ts +1 -0
- package/dist/components/card/Card.js +98 -0
- package/dist/components/card/CardActions.js +15 -0
- package/dist/components/card/CardBody.js +15 -0
- package/dist/components/card/CardImage.js +10 -0
- package/dist/components/card/CardTitle.js +13 -0
- package/dist/components/card/card.css +171 -0
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/card/index.js +3 -0
- package/dist/components/carousel/Carousel.d.ts +1 -0
- package/dist/components/carousel/Carousel.js +70 -0
- package/dist/components/carousel/CarouselItem.js +27 -0
- package/dist/components/carousel/carousel.css +39 -0
- package/dist/components/carousel/index.js +3 -0
- package/dist/components/chatbubble/ChatBubble.d.ts +1 -0
- package/dist/components/chatbubble/ChatBubble.js +48 -0
- package/dist/components/chatbubble/ChatBubbleAvatar.d.ts +6 -2
- package/dist/components/chatbubble/ChatBubbleAvatar.js +42 -0
- package/dist/components/chatbubble/ChatBubbleFooter.js +14 -0
- package/dist/components/chatbubble/ChatBubbleHeader.js +14 -0
- package/dist/components/chatbubble/ChatBubbleMessage.js +28 -0
- package/dist/components/chatbubble/ChatBubbleTime.js +14 -0
- package/dist/components/chatbubble/chat.css +153 -0
- package/dist/components/chatbubble/index.d.ts +1 -1
- package/dist/components/chatbubble/index.js +3 -0
- package/dist/components/checkbox/Checkbox.css +183 -0
- package/dist/components/checkbox/Checkbox.d.ts +13 -17
- package/dist/components/checkbox/Checkbox.js +139 -0
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +3 -0
- package/dist/components/codemockup/CodeMockup.d.ts +1 -1
- package/dist/components/codemockup/CodeMockup.js +33 -0
- package/dist/components/codemockup/CodeMockupLine.js +53 -0
- package/dist/components/codemockup/index.d.ts +1 -1
- package/dist/components/codemockup/index.js +5 -0
- package/dist/components/collapse/Collapse.d.ts +1 -0
- package/dist/components/collapse/Collapse.js +104 -0
- package/dist/components/collapse/CollapseContent.js +15 -0
- package/dist/components/collapse/CollapseDetails.js +33 -0
- package/dist/components/collapse/CollapseTitle.d.ts +1 -1
- package/dist/components/collapse/CollapseTitle.js +47 -0
- package/dist/components/collapse/collapse.css +248 -0
- package/dist/components/collapse/index.d.ts +1 -1
- package/dist/components/collapse/index.js +10 -0
- package/dist/components/colorpicker/AlphaSlider.d.ts +7 -0
- package/dist/components/colorpicker/AlphaSlider.js +107 -0
- package/dist/components/colorpicker/ColorInput.d.ts +7 -0
- package/dist/components/colorpicker/ColorInput.js +88 -0
- package/dist/components/colorpicker/ColorPicker.d.ts +18 -0
- package/dist/components/colorpicker/ColorPicker.js +264 -0
- package/dist/components/colorpicker/ColorPickerFlowerSelector.d.ts +3 -0
- package/dist/components/colorpicker/ColorPickerFlowerSelector.js +9 -0
- package/dist/components/colorpicker/ColorPickerGradientSelector.d.ts +3 -0
- package/dist/components/colorpicker/ColorPickerGradientSelector.js +9 -0
- package/dist/components/colorpicker/ColorPickerWheelSelector.d.ts +3 -0
- package/dist/components/colorpicker/ColorPickerWheelSelector.js +9 -0
- package/dist/components/colorpicker/ColorPreview.d.ts +11 -0
- package/dist/components/colorpicker/ColorPreview.js +47 -0
- package/dist/components/colorpicker/ColorSwatches.d.ts +8 -0
- package/dist/components/colorpicker/ColorSwatches.js +67 -0
- package/dist/components/colorpicker/ColorUtils.d.ts +58 -0
- package/dist/components/colorpicker/ColorUtils.js +216 -0
- package/dist/components/colorpicker/ColorWheel.d.ts +7 -0
- package/dist/components/colorpicker/ColorWheel.js +106 -0
- package/dist/components/colorpicker/ColorWheelFlower.d.ts +7 -0
- package/dist/components/colorpicker/ColorWheelFlower.js +462 -0
- package/dist/components/colorpicker/HueSlider.d.ts +7 -0
- package/dist/components/colorpicker/HueSlider.js +105 -0
- package/dist/components/colorpicker/LightnessSlider.d.ts +7 -0
- package/dist/components/colorpicker/LightnessSlider.js +111 -0
- package/dist/components/colorpicker/SaturationBrightness.d.ts +7 -0
- package/dist/components/colorpicker/SaturationBrightness.js +120 -0
- package/dist/components/colorpicker/colorpickerContext.d.ts +11 -0
- package/dist/components/colorpicker/colorpickerContext.js +8 -0
- package/dist/components/colorpicker/index.d.ts +26 -0
- package/dist/components/colorpicker/index.js +31 -0
- package/dist/components/confirm-dialog/ConfirmDialog.d.ts +15 -0
- package/dist/components/confirm-dialog/ConfirmDialog.js +102 -0
- package/dist/components/confirm-dialog/index.d.ts +2 -0
- package/dist/components/confirm-dialog/index.js +3 -0
- package/dist/components/connectionstatus/ConnectionStatus.d.ts +2 -2
- package/dist/components/connectionstatus/ConnectionStatus.js +197 -0
- package/dist/components/connectionstatus/index.js +3 -0
- package/dist/components/copy-button/CopyButton.js +70 -0
- package/dist/components/copy-button/index.js +3 -0
- package/dist/components/countdown/Countdown.d.ts +1 -0
- package/dist/components/countdown/Countdown.js +37 -0
- package/dist/components/countdown/countdown.css +58 -0
- package/dist/components/countdown/index.d.ts +1 -1
- package/dist/components/countdown/index.js +3 -0
- package/dist/components/diff/Diff.d.ts +1 -0
- package/dist/components/diff/Diff.js +29 -0
- package/dist/components/diff/diff.css +162 -0
- package/dist/components/diff/index.d.ts +1 -1
- package/dist/components/diff/index.js +3 -0
- package/dist/components/divider/Divider.js +41 -0
- package/dist/components/divider/Divider.styles.d.ts +1 -1
- package/dist/components/divider/Divider.styles.js +71 -0
- package/dist/components/divider/index.d.ts +1 -0
- package/dist/components/divider/index.js +3 -0
- package/dist/components/dock/Dock.d.ts +1 -0
- package/dist/components/dock/Dock.js +40 -0
- package/dist/components/dock/DockItem.js +45 -0
- package/dist/components/dock/DockLabel.js +22 -0
- package/dist/components/dock/dock.css +147 -0
- package/dist/components/dock/index.js +3 -0
- package/dist/components/drawer/Drawer.css +305 -0
- package/dist/components/drawer/Drawer.d.ts +71 -12
- package/dist/components/drawer/Drawer.js +470 -0
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/drawer/index.js +15 -0
- package/dist/components/dropdown/Dropdown.css +184 -0
- package/dist/components/dropdown/Dropdown.d.ts +34 -24
- package/dist/components/dropdown/Dropdown.js +488 -0
- package/dist/components/dropdown/index.d.ts +2 -2
- package/dist/components/dropdown/index.js +4 -0
- package/dist/components/dropdown-select/DropdownSelect.d.ts +22 -0
- package/dist/components/dropdown-select/DropdownSelect.js +296 -0
- package/dist/components/dropdown-select/index.d.ts +2 -0
- package/dist/components/dropdown-select/index.js +3 -0
- package/dist/components/empty-state/EmptyState.css +39 -0
- package/dist/components/empty-state/EmptyState.d.ts +32 -0
- package/dist/components/empty-state/EmptyState.js +146 -0
- package/dist/components/empty-state/index.d.ts +3 -0
- package/dist/components/empty-state/index.js +8 -0
- package/dist/components/fieldset/Fieldset.d.ts +11 -0
- package/dist/components/fieldset/Fieldset.js +73 -0
- package/dist/components/fieldset/index.d.ts +2 -0
- package/dist/components/fieldset/index.js +3 -0
- package/dist/components/fileinput/FileInput.d.ts +1 -0
- package/dist/components/fileinput/FileInput.js +51 -0
- package/dist/components/fileinput/index.d.ts +1 -1
- package/dist/components/fileinput/index.js +3 -0
- package/dist/components/fileinput/input.css +277 -0
- package/dist/components/flex/Flex.js +101 -0
- package/dist/components/flex/index.d.ts +1 -1
- package/dist/components/flex/index.js +3 -0
- package/dist/components/floating-dock/FloatingDock.css +179 -0
- package/dist/components/floating-dock/FloatingDock.d.ts +39 -0
- package/dist/components/floating-dock/FloatingDock.js +615 -0
- package/dist/components/floating-dock/index.d.ts +2 -0
- package/dist/components/floating-dock/index.js +3 -0
- package/dist/components/footer/Footer.d.ts +1 -0
- package/dist/components/footer/Footer.js +41 -0
- package/dist/components/footer/FooterTitle.js +27 -0
- package/dist/components/footer/footer.css +51 -0
- package/dist/components/footer/index.js +3 -0
- package/dist/components/form/Form.d.ts +3 -8
- package/dist/components/form/Form.js +17 -0
- package/dist/components/form/FormBase.d.ts +8 -0
- package/dist/components/form/FormBase.js +74 -0
- package/dist/components/form/FormDropdown.js +139 -0
- package/dist/components/form/FormField.js +78 -0
- package/dist/components/form/Label.js +31 -0
- package/dist/components/form/NumberField.js +109 -0
- package/dist/components/form/PasswordField.js +113 -0
- package/dist/components/form/ValidatedForm.d.ts +1 -1
- package/dist/components/form/ValidatedForm.js +55 -0
- package/dist/components/form/index.js +6 -0
- package/dist/components/form-actions/FormActions.d.ts +14 -0
- package/dist/components/form-actions/FormActions.js +142 -0
- package/dist/components/form-actions/index.d.ts +2 -0
- package/dist/components/form-actions/index.js +3 -0
- package/dist/components/glass-panel/GlassPanel.d.ts +20 -0
- package/dist/components/glass-panel/GlassPanel.js +146 -0
- package/dist/components/glass-panel/index.d.ts +1 -0
- package/dist/components/glass-panel/index.js +3 -0
- package/dist/components/glow-card/GlowCard.css +65 -0
- package/dist/components/glow-card/GlowCard.d.ts +5 -0
- package/dist/components/glow-card/GlowCard.js +47 -0
- package/dist/components/glow-card/index.d.ts +2 -0
- package/dist/components/glow-card/index.js +3 -0
- package/dist/components/grid/Grid.js +89 -0
- package/dist/components/grid/index.d.ts +1 -1
- package/dist/components/grid/index.js +3 -0
- package/dist/components/hero/Hero.d.ts +1 -0
- package/dist/components/hero/Hero.js +47 -0
- package/dist/components/hero/HeroContent.js +31 -0
- package/dist/components/hero/HeroOverlay.js +39 -0
- package/dist/components/hero/hero.css +38 -0
- package/dist/components/hero/index.js +3 -0
- package/dist/components/icon/Icon.js +38 -0
- package/dist/components/icon/index.js +3 -0
- package/dist/components/immersive-landing/ImmersiveLanding.d.ts +8 -0
- package/dist/components/immersive-landing/ImmersiveLanding.js +218 -0
- package/dist/components/immersive-landing/ImmersiveLandingArrows.d.ts +4 -0
- package/dist/components/immersive-landing/ImmersiveLandingArrows.js +60 -0
- package/dist/components/immersive-landing/ImmersiveLandingContext.d.ts +3 -0
- package/dist/components/immersive-landing/ImmersiveLandingContext.js +8 -0
- package/dist/components/immersive-landing/ImmersiveLandingNavigation.d.ts +4 -0
- package/dist/components/immersive-landing/ImmersiveLandingNavigation.js +91 -0
- package/dist/components/immersive-landing/ImmersiveLandingPage.d.ts +4 -0
- package/dist/components/immersive-landing/ImmersiveLandingPage.js +46 -0
- package/dist/components/immersive-landing/components/CookieConsent.d.ts +3 -0
- package/dist/components/immersive-landing/components/CookieConsent.js +256 -0
- package/dist/components/immersive-landing/components/FirefoxPWABanner.d.ts +9 -0
- package/dist/components/immersive-landing/components/FirefoxPWABanner.js +173 -0
- package/dist/components/immersive-landing/components/PWAInstallPrompt.d.ts +3 -0
- package/dist/components/immersive-landing/components/PWAInstallPrompt.js +178 -0
- package/dist/components/immersive-landing/index.d.ts +7 -0
- package/dist/components/immersive-landing/index.js +14 -0
- package/dist/components/immersive-landing/types.d.ts +134 -0
- package/dist/components/immersive-landing/types.js +0 -0
- package/dist/components/immersive-landing/useImmersiveLanding.d.ts +2 -0
- package/dist/components/immersive-landing/useImmersiveLanding.js +151 -0
- package/dist/components/indicator/Indicator.d.ts +1 -0
- package/dist/components/indicator/Indicator.js +76 -0
- package/dist/components/indicator/index.js +3 -0
- package/dist/components/indicator/indicator.css +70 -0
- package/dist/components/input/Input.css +138 -0
- package/dist/components/input/Input.d.ts +40 -18
- package/dist/components/input/Input.js +286 -0
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input/index.js +3 -0
- package/dist/components/join/Join.js +41 -0
- package/dist/components/join/index.js +3 -0
- package/dist/components/kbd/Kbd.d.ts +1 -0
- package/dist/components/kbd/Kbd.js +22 -0
- package/dist/components/kbd/index.d.ts +1 -1
- package/dist/components/kbd/index.js +3 -0
- package/dist/components/kbd/kbd.css +55 -0
- package/dist/components/language-switcher/LanguageSwitcher.d.ts +31 -0
- package/dist/components/language-switcher/LanguageSwitcher.js +99 -0
- package/dist/components/language-switcher/createI18n.d.ts +102 -0
- package/dist/components/language-switcher/createI18n.js +85 -0
- package/dist/components/language-switcher/index.d.ts +3 -0
- package/dist/components/language-switcher/index.js +8 -0
- package/dist/components/link/Link.d.ts +1 -0
- package/dist/components/link/Link.js +70 -0
- package/dist/components/link/index.d.ts +1 -1
- package/dist/components/link/index.js +3 -0
- package/dist/components/link/link.css +153 -0
- package/dist/components/live-chat/LiveChatBubble.d.ts +53 -0
- package/dist/components/live-chat/LiveChatBubble.js +106 -0
- package/dist/components/live-chat/LiveChatPanel.d.ts +69 -0
- package/dist/components/live-chat/LiveChatPanel.js +359 -0
- package/dist/components/live-chat/index.d.ts +5 -0
- package/dist/components/live-chat/index.js +5 -0
- package/dist/components/live-chat/types.d.ts +13 -0
- package/dist/components/live-chat/types.js +0 -0
- package/dist/components/loading/Loading.css +131 -0
- package/dist/components/loading/Loading.d.ts +11 -11
- package/dist/components/loading/Loading.js +81 -0
- package/dist/components/loading/index.d.ts +1 -1
- package/dist/components/loading/index.js +3 -0
- package/dist/components/mask/Mask.d.ts +1 -0
- package/dist/components/mask/Mask.js +62 -0
- package/dist/components/mask/index.d.ts +1 -0
- package/dist/components/mask/index.js +3 -0
- package/dist/components/mask/mask.css +89 -0
- package/dist/components/menu/Menu.d.ts +1 -0
- package/dist/components/menu/Menu.js +51 -0
- package/dist/components/menu/MenuDetails.js +37 -0
- package/dist/components/menu/MenuDropdown.js +48 -0
- package/dist/components/menu/MenuItem.js +40 -0
- package/dist/components/menu/MenuTitle.js +22 -0
- package/dist/components/menu/index.js +3 -0
- package/dist/components/menu/menu.css +364 -0
- package/dist/components/modal/Modal.d.ts +1 -0
- package/dist/components/modal/Modal.js +125 -0
- package/dist/components/modal/ModalActions.js +14 -0
- package/dist/components/modal/ModalBody.js +14 -0
- package/dist/components/modal/ModalHeader.js +15 -0
- package/dist/components/modal/ModalLegacy.js +36 -0
- package/dist/components/modal/index.js +3 -0
- package/dist/components/modal/modal.css +170 -0
- package/dist/components/navbar/Navbar.d.ts +1 -0
- package/dist/components/navbar/Navbar.js +54 -0
- package/dist/components/navbar/NavbarRow.js +49 -0
- package/dist/components/navbar/NavbarSection.js +38 -0
- package/dist/components/navbar/NavbarStack.js +39 -0
- package/dist/components/navbar/index.js +3 -0
- package/dist/components/navbar/navbar.css +33 -0
- package/dist/components/noise-background/NoiseBackground.d.ts +25 -0
- package/dist/components/noise-background/NoiseBackground.js +200 -0
- package/dist/components/noise-background/index.d.ts +2 -0
- package/dist/components/noise-background/index.js +3 -0
- package/dist/components/pagination/Pagination.d.ts +2 -1
- package/dist/components/pagination/Pagination.js +17 -0
- package/dist/components/pagination/index.js +3 -0
- package/dist/components/phonemockup/PhoneMockup.js +44 -0
- package/dist/components/phonemockup/index.js +3 -0
- package/dist/components/progress/Progress.css +135 -0
- package/dist/components/progress/Progress.d.ts +35 -13
- package/dist/components/progress/Progress.js +197 -0
- package/dist/components/progress/index.d.ts +1 -1
- package/dist/components/progress/index.js +7 -0
- package/dist/components/props-table/PropsTable.js +56 -0
- package/dist/components/props-table/index.js +3 -0
- package/dist/components/radialprogress/RadialProgress.js +47 -0
- package/dist/components/radialprogress/index.d.ts +1 -1
- package/dist/components/radialprogress/index.js +3 -0
- package/dist/components/radio/Radio.css +129 -0
- package/dist/components/radio/Radio.d.ts +9 -13
- package/dist/components/radio/Radio.js +116 -0
- package/dist/components/radio/index.d.ts +1 -1
- package/dist/components/radio/index.js +3 -0
- package/dist/components/radio-group/RadioGroup.css +58 -0
- package/dist/components/radio-group/RadioGroup.d.ts +22 -0
- package/dist/components/radio-group/RadioGroup.js +147 -0
- package/dist/components/radio-group/context.d.ts +9 -0
- package/dist/components/radio-group/context.js +3 -0
- package/dist/components/radio-group/index.d.ts +4 -0
- package/dist/components/radio-group/index.js +4 -0
- package/dist/components/range/Range.d.ts +1 -0
- package/dist/components/range/Range.js +85 -0
- package/dist/components/range/index.d.ts +1 -1
- package/dist/components/range/index.js +3 -0
- package/dist/components/range/range.css +174 -0
- package/dist/components/range-slider/RangeSlider.d.ts +22 -0
- package/dist/components/range-slider/RangeSlider.js +191 -0
- package/dist/components/range-slider/index.d.ts +2 -0
- package/dist/components/range-slider/index.js +3 -0
- package/dist/components/range-slider/range.css +136 -0
- package/dist/components/rating/Rating.d.ts +1 -0
- package/dist/components/rating/Rating.js +54 -0
- package/dist/components/rating/RatingHidden.js +29 -0
- package/dist/components/rating/RatingItem.js +62 -0
- package/dist/components/rating/index.js +3 -0
- package/dist/components/rating/rating.css +106 -0
- package/dist/components/select/Select.d.ts +1 -0
- package/dist/components/select/Select.js +62 -0
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.js +3 -0
- package/dist/components/select/select.css +351 -0
- package/dist/components/showcase/ShowcaseBlock.js +48 -0
- package/dist/components/showcase/index.js +3 -0
- package/dist/components/showcase-section/ShowcaseSection.js +73 -0
- package/dist/components/showcase-section/index.js +3 -0
- package/dist/{sidenav → components/sidenav}/Sidenav.css +27 -1
- package/dist/components/sidenav/Sidenav.js +66 -0
- package/dist/components/sidenav/SidenavButton.js +41 -0
- package/dist/components/sidenav/SidenavGroup.js +45 -0
- package/dist/components/sidenav/SidenavItem.js +37 -0
- package/dist/components/sidenav/SidenavLink.js +36 -0
- package/dist/components/sidenav/SidenavMenu.js +31 -0
- package/dist/components/sidenav/index.js +13 -0
- package/dist/components/size-picker/SizePicker.d.ts +10 -0
- package/dist/components/size-picker/SizePicker.js +63 -0
- package/dist/components/size-picker/index.d.ts +3 -0
- package/dist/components/size-picker/index.js +6 -0
- package/dist/components/size-picker/sizeStore.d.ts +8 -0
- package/dist/components/size-picker/sizeStore.js +36 -0
- package/dist/components/skeleton/Skeleton.css +95 -0
- package/dist/components/skeleton/Skeleton.d.ts +7 -3
- package/dist/components/skeleton/Skeleton.js +38 -0
- package/dist/components/skeleton/index.d.ts +1 -1
- package/dist/components/skeleton/index.js +3 -0
- package/dist/components/skip-link/SkipLink.d.ts +7 -0
- package/dist/components/skip-link/SkipLink.js +34 -0
- package/dist/components/skip-link/index.d.ts +2 -0
- package/dist/components/skip-link/index.js +3 -0
- package/dist/components/stack/Stack.d.ts +1 -0
- package/dist/components/stack/Stack.js +53 -0
- package/dist/components/stack/index.js +3 -0
- package/dist/components/stack/stack.css +90 -0
- package/dist/components/stat-card/StatCard.js +46 -0
- package/dist/components/stat-card/StatCardSection.js +39 -0
- package/dist/components/stat-card/index.d.ts +1 -1
- package/dist/components/stat-card/index.js +3 -0
- package/dist/components/stats/Stat.d.ts +1 -0
- package/dist/components/stats/Stat.js +51 -0
- package/dist/components/stats/StatSection.js +29 -0
- package/dist/components/stats/Stats.js +29 -0
- package/dist/components/stats/index.d.ts +1 -1
- package/dist/components/stats/index.js +3 -0
- package/dist/components/stats/stat.css +67 -0
- package/dist/components/status/Status.js +30 -0
- package/dist/components/status/index.js +3 -0
- package/dist/components/steps/Step.d.ts +1 -0
- package/dist/components/steps/Step.js +88 -0
- package/dist/components/steps/Steps.js +80 -0
- package/dist/components/steps/index.d.ts +1 -0
- package/dist/components/steps/index.js +3 -0
- package/dist/components/steps/step.css +179 -0
- package/dist/components/streaming-table/StreamingTable.d.ts +3 -1
- package/dist/components/streaming-table/StreamingTable.js +345 -0
- package/dist/components/streaming-table/createRowStore.js +18 -0
- package/dist/components/streaming-table/createStreamingTableStore.js +68 -0
- package/dist/components/streaming-table/index.js +5 -0
- package/dist/components/streaming-table/types.js +0 -0
- package/dist/components/svgbackground/SvgBackground.js +413 -0
- package/dist/components/svgbackground/index.js +3 -0
- package/dist/components/swap/Swap.d.ts +1 -0
- package/dist/components/swap/Swap.js +57 -0
- package/dist/components/swap/index.d.ts +1 -1
- package/dist/components/swap/index.js +3 -0
- package/dist/components/swap/swap.css +92 -0
- package/dist/components/switch-field/SwitchField.d.ts +19 -0
- package/dist/components/switch-field/SwitchField.js +71 -0
- package/dist/components/switch-field/index.d.ts +2 -0
- package/dist/components/switch-field/index.js +3 -0
- package/dist/components/table/EnhancedTable.d.ts +1 -0
- package/dist/components/table/EnhancedTable.js +727 -0
- package/dist/components/table/Table.d.ts +1 -0
- package/dist/components/table/Table.js +57 -0
- package/dist/components/table/TableBody.js +30 -0
- package/dist/components/table/TableCell.js +34 -0
- package/dist/components/table/TableFooter.js +45 -0
- package/dist/components/table/TableHead.js +45 -0
- package/dist/components/table/TableHeadCell.js +34 -0
- package/dist/components/table/TableRow.js +34 -0
- package/dist/components/table/index.js +5 -0
- package/dist/components/table/table.css +148 -0
- package/dist/components/tabs/Tabs.css +202 -0
- package/dist/components/tabs/Tabs.d.ts +41 -9
- package/dist/components/tabs/Tabs.js +387 -0
- package/dist/components/tabs/index.d.ts +2 -4
- package/dist/components/tabs/index.js +4 -0
- package/dist/components/textarea/Textarea.d.ts +1 -0
- package/dist/components/textarea/Textarea.js +53 -0
- package/dist/components/textarea/index.d.ts +1 -1
- package/dist/components/textarea/index.js +3 -0
- package/dist/components/textarea/textarea.css +191 -0
- package/dist/components/theme-color-picker/ThemeColorPicker.d.ts +23 -0
- package/dist/components/theme-color-picker/ThemeColorPicker.js +151 -0
- package/dist/components/theme-color-picker/hueShift.d.ts +14 -0
- package/dist/components/theme-color-picker/hueShift.js +492 -0
- package/dist/components/theme-color-picker/index.d.ts +3 -0
- package/dist/components/theme-color-picker/index.js +7 -0
- package/dist/components/timeline/Timeline.d.ts +2 -1
- package/dist/components/timeline/Timeline.js +42 -0
- package/dist/components/timeline/TimelineEnd.js +28 -0
- package/dist/components/timeline/TimelineItem.js +47 -0
- package/dist/components/timeline/TimelineMiddle.js +25 -0
- package/dist/components/timeline/TimelineStart.js +28 -0
- package/dist/components/timeline/index.d.ts +1 -1
- package/dist/components/timeline/index.js +11 -0
- package/dist/components/timeline/timeline.css +286 -0
- package/dist/components/toast/Toast.d.ts +1 -0
- package/dist/components/toast/Toast.js +54 -0
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/index.js +3 -0
- package/dist/components/toast/toast.css +58 -0
- package/dist/components/toastcontainer/ToastContainer.d.ts +2 -1
- package/dist/components/toastcontainer/ToastContainer.js +15 -0
- package/dist/components/toastcontainer/ToastStack.d.ts +17 -0
- package/dist/components/toastcontainer/ToastStack.js +181 -0
- package/dist/components/toastcontainer/index.d.ts +2 -0
- package/dist/components/toastcontainer/index.js +5 -0
- package/dist/components/toggle/Toggle.d.ts +14 -17
- package/dist/components/toggle/Toggle.js +124 -0
- package/dist/components/toggle/index.d.ts +1 -1
- package/dist/components/toggle/index.js +3 -0
- package/dist/components/toggle/toggle.css +228 -0
- package/dist/components/tooltip/Tooltip.css +161 -0
- package/dist/components/tooltip/Tooltip.d.ts +34 -14
- package/dist/components/tooltip/Tooltip.js +204 -0
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.js +7 -0
- package/dist/components/types.js +8 -0
- package/dist/components/utils.js +46 -0
- package/dist/components/video-preview/VideoPreview.d.ts +21 -0
- package/dist/components/video-preview/VideoPreview.js +55 -0
- package/dist/components/video-preview/index.d.ts +2 -0
- package/dist/components/video-preview/index.js +3 -0
- package/dist/components/windowmockup/WindowMockup.js +85 -0
- package/dist/components/windowmockup/index.js +3 -0
- package/dist/index.css +75 -0
- package/dist/index.d.ts +46 -8
- package/dist/index.js +268 -12922
- package/dist/lib/iterable.js +6 -0
- package/dist/lib/props/index.js +0 -0
- package/dist/lib/props/types.js +0 -0
- package/dist/lib/refs/index.js +3 -0
- package/dist/lib/refs/mergeRefs.js +5 -0
- package/dist/lib/refs/types.js +0 -0
- package/dist/lib/style/classes.js +40 -0
- package/dist/lib/style/index.js +4 -0
- package/dist/lib/tag/createIsButton.js +23 -0
- package/dist/lib/tag/createTagName.js +5 -0
- package/dist/lib/tag/index.js +7 -0
- package/dist/motion/driver.d.ts +5 -0
- package/dist/motion/driver.js +13 -0
- package/dist/motion/easing.d.ts +2 -0
- package/dist/motion/easing.js +18 -0
- package/dist/motion/engine.d.ts +4 -0
- package/dist/motion/engine.js +85 -0
- package/dist/motion/index.d.ts +11 -0
- package/dist/motion/index.js +34 -0
- package/dist/motion/popmotion.d.ts +6 -0
- package/dist/motion/popmotion.js +6 -0
- package/dist/motion/presets.d.ts +10 -0
- package/dist/motion/presets.js +203 -0
- package/dist/motion/reduced-motion.d.ts +1 -0
- package/dist/motion/reduced-motion.js +2 -0
- package/dist/motion/route.d.ts +11 -0
- package/dist/motion/route.js +24 -0
- package/dist/motion/solid/MotionDiv.d.ts +13 -0
- package/dist/motion/solid/MotionDiv.js +76 -0
- package/dist/motion/solid/index.d.ts +2 -0
- package/dist/motion/solid/index.js +3 -0
- package/dist/motion/system.d.ts +20 -0
- package/dist/motion/system.js +59 -0
- package/dist/motion/tokens.d.ts +6 -0
- package/dist/motion/tokens.js +42 -0
- package/dist/motion/types.d.ts +39 -0
- package/dist/motion/types.js +0 -0
- package/dist/stores/index.js +1 -0
- package/dist/stores/toastStore.d.ts +8 -1
- package/dist/stores/toastStore.js +64 -0
- package/dist/styles/base/index.css +43 -0
- package/dist/styles/icons/generated-icons.css +1 -1
- package/dist/styles/themes/dark.css +88 -0
- package/dist/styles/themes/light.css +90 -0
- package/package.json +58 -14
- package/dist/components/breadcrumbs/BreadcrumbsItem.d.ts +0 -6
- package/dist/components/dropdown/DropdownDetails.d.ts +0 -14
- package/dist/components/dropdown/DropdownItem.d.ts +0 -19
- package/dist/components/dropdown/DropdownMenu.d.ts +0 -9
- package/dist/components/dropdown/DropdownToggle.d.ts +0 -17
- package/dist/components/dropdown/dropdownContext.d.ts +0 -9
- package/dist/components/tabs/RadioTab.d.ts +0 -16
- package/dist/components/tabs/Tab.d.ts +0 -12
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__engine_js_ffb17bc2__ from "../engine.js";
|
|
4
|
+
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
5
|
+
const MotionDiv_MotionDiv = (props)=>{
|
|
6
|
+
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
7
|
+
"initial",
|
|
8
|
+
"animate",
|
|
9
|
+
"exit",
|
|
10
|
+
"transition",
|
|
11
|
+
"isExiting",
|
|
12
|
+
"onExitComplete",
|
|
13
|
+
"animateKey",
|
|
14
|
+
"children",
|
|
15
|
+
"ref"
|
|
16
|
+
]);
|
|
17
|
+
const [elementRef, setElementRef] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)(void 0);
|
|
18
|
+
let activeControl = null;
|
|
19
|
+
let lastTrigger;
|
|
20
|
+
let lastIsExiting = false;
|
|
21
|
+
let hasAnimated = false;
|
|
22
|
+
const stopActive = ()=>{
|
|
23
|
+
activeControl?.stop();
|
|
24
|
+
activeControl = null;
|
|
25
|
+
};
|
|
26
|
+
const runEnter = (target, from, to, transition)=>{
|
|
27
|
+
if (!to) return;
|
|
28
|
+
stopActive();
|
|
29
|
+
activeControl = (0, __WEBPACK_EXTERNAL_MODULE__engine_js_ffb17bc2__.runMotion)(target, from ?? {}, to ?? {}, transition);
|
|
30
|
+
};
|
|
31
|
+
const runExit = (target, from, to, transition, onComplete)=>{
|
|
32
|
+
if (!to) return void onComplete?.();
|
|
33
|
+
stopActive();
|
|
34
|
+
activeControl = (0, __WEBPACK_EXTERNAL_MODULE__engine_js_ffb17bc2__.runMotion)(target, from ?? {}, to ?? {}, transition, onComplete);
|
|
35
|
+
};
|
|
36
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createEffect)(()=>{
|
|
37
|
+
const target = elementRef();
|
|
38
|
+
if (!target) return;
|
|
39
|
+
const isExiting = Boolean(local.isExiting);
|
|
40
|
+
const trigger = local.animateKey;
|
|
41
|
+
const initial = local.initial;
|
|
42
|
+
const animate = local.animate;
|
|
43
|
+
const exit = local.exit;
|
|
44
|
+
const transition = local.transition;
|
|
45
|
+
const onComplete = local.onExitComplete;
|
|
46
|
+
if (isExiting) {
|
|
47
|
+
if (!lastIsExiting) {
|
|
48
|
+
lastIsExiting = true;
|
|
49
|
+
hasAnimated = false;
|
|
50
|
+
runExit(target, animate ?? initial, exit, transition, onComplete);
|
|
51
|
+
}
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
lastIsExiting = false;
|
|
55
|
+
if (!hasAnimated || trigger !== lastTrigger) {
|
|
56
|
+
lastTrigger = trigger;
|
|
57
|
+
hasAnimated = true;
|
|
58
|
+
runEnter(target, initial, animate, transition);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.onCleanup)(()=>{
|
|
62
|
+
stopActive();
|
|
63
|
+
});
|
|
64
|
+
return (()=>{
|
|
65
|
+
var _el$ = _tmpl$();
|
|
66
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.use)((el)=>{
|
|
67
|
+
setElementRef(el);
|
|
68
|
+
if ("function" == typeof local.ref) local.ref(el);
|
|
69
|
+
}, _el$);
|
|
70
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, rest, false, true);
|
|
71
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children);
|
|
72
|
+
return _el$;
|
|
73
|
+
})();
|
|
74
|
+
};
|
|
75
|
+
const MotionDiv = MotionDiv_MotionDiv;
|
|
76
|
+
export { MotionDiv_MotionDiv as MotionDiv, MotionDiv as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { MotionPreset, MotionTokenOverrides, MotionTokens } from "./types";
|
|
2
|
+
export type MotionSystemConfig = {
|
|
3
|
+
tokens?: MotionTokenOverrides;
|
|
4
|
+
presets?: Record<string, MotionPreset>;
|
|
5
|
+
reduceMotion?: () => boolean;
|
|
6
|
+
noMotionPreset?: MotionPreset;
|
|
7
|
+
};
|
|
8
|
+
export declare const createMotionSystem: (config?: MotionSystemConfig) => {
|
|
9
|
+
getTokens: () => MotionTokens;
|
|
10
|
+
getPresets: () => {
|
|
11
|
+
[x: string]: MotionPreset;
|
|
12
|
+
};
|
|
13
|
+
getPreset: (name: string) => MotionPreset;
|
|
14
|
+
registerPreset: (name: string, preset: MotionPreset) => void;
|
|
15
|
+
overrideTokens: (overrides: MotionTokenOverrides) => MotionTokens;
|
|
16
|
+
resolvePreset: (name: string, options?: {
|
|
17
|
+
reduceMotion?: boolean;
|
|
18
|
+
}) => MotionPreset;
|
|
19
|
+
setNoMotionPreset: (preset: MotionPreset) => void;
|
|
20
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__reduced_motion_js_6b898224__ from "./reduced-motion.js";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__presets_js_17a1eb8d__ from "./presets.js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__tokens_js_afbe9ddb__ from "./tokens.js";
|
|
4
|
+
const createMotionSystem = (config)=>{
|
|
5
|
+
let tokens = (0, __WEBPACK_EXTERNAL_MODULE__tokens_js_afbe9ddb__.mergeMotionTokens)(__WEBPACK_EXTERNAL_MODULE__tokens_js_afbe9ddb__.defaultMotionTokens, config?.tokens);
|
|
6
|
+
let customPresets = {
|
|
7
|
+
...config?.presets ?? {}
|
|
8
|
+
};
|
|
9
|
+
let basePresets = (0, __WEBPACK_EXTERNAL_MODULE__presets_js_17a1eb8d__.createMotionPresets)(tokens);
|
|
10
|
+
let presets = {
|
|
11
|
+
...basePresets,
|
|
12
|
+
...customPresets
|
|
13
|
+
};
|
|
14
|
+
const reduceMotion = config?.reduceMotion ?? __WEBPACK_EXTERNAL_MODULE__reduced_motion_js_6b898224__.prefersReducedMotion;
|
|
15
|
+
let noMotionPreset = config?.noMotionPreset ?? __WEBPACK_EXTERNAL_MODULE__presets_js_17a1eb8d__.noMotion;
|
|
16
|
+
const rebuildPresets = ()=>{
|
|
17
|
+
basePresets = (0, __WEBPACK_EXTERNAL_MODULE__presets_js_17a1eb8d__.createMotionPresets)(tokens);
|
|
18
|
+
presets = {
|
|
19
|
+
...basePresets,
|
|
20
|
+
...customPresets
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
const getTokens = ()=>tokens;
|
|
24
|
+
const getPresets = ()=>presets;
|
|
25
|
+
const getPreset = (name)=>presets[name];
|
|
26
|
+
const registerPreset = (name, preset)=>{
|
|
27
|
+
customPresets = {
|
|
28
|
+
...customPresets,
|
|
29
|
+
[name]: preset
|
|
30
|
+
};
|
|
31
|
+
presets = {
|
|
32
|
+
...basePresets,
|
|
33
|
+
...customPresets
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
const overrideTokens = (overrides)=>{
|
|
37
|
+
tokens = (0, __WEBPACK_EXTERNAL_MODULE__tokens_js_afbe9ddb__.mergeMotionTokens)(tokens, overrides);
|
|
38
|
+
rebuildPresets();
|
|
39
|
+
return tokens;
|
|
40
|
+
};
|
|
41
|
+
const resolvePreset = (name, options)=>{
|
|
42
|
+
const reduce = options?.reduceMotion ?? reduceMotion();
|
|
43
|
+
if (reduce) return noMotionPreset;
|
|
44
|
+
return presets[name] ?? noMotionPreset;
|
|
45
|
+
};
|
|
46
|
+
const setNoMotionPreset = (preset)=>{
|
|
47
|
+
noMotionPreset = preset;
|
|
48
|
+
};
|
|
49
|
+
return {
|
|
50
|
+
getTokens,
|
|
51
|
+
getPresets,
|
|
52
|
+
getPreset,
|
|
53
|
+
registerPreset,
|
|
54
|
+
overrideTokens,
|
|
55
|
+
resolvePreset,
|
|
56
|
+
setNoMotionPreset
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export { createMotionSystem };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MotionEasing, MotionTokens, MotionTokenOverrides } from "./types";
|
|
2
|
+
export declare const motionDurations: Record<string, number>;
|
|
3
|
+
export declare const motionEasings: Record<string, MotionEasing>;
|
|
4
|
+
export declare const motionDistances: Record<string, number>;
|
|
5
|
+
export declare const defaultMotionTokens: MotionTokens;
|
|
6
|
+
export declare const mergeMotionTokens: (base: MotionTokens, overrides?: MotionTokenOverrides) => MotionTokens;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const motionDurations = {
|
|
2
|
+
route: 0.18,
|
|
3
|
+
routeAuth: 0.35,
|
|
4
|
+
fast: 0.2,
|
|
5
|
+
base: 0.3,
|
|
6
|
+
slow: 0.45
|
|
7
|
+
};
|
|
8
|
+
const motionEasings = {
|
|
9
|
+
out: "ease-out",
|
|
10
|
+
inOut: "ease-in-out"
|
|
11
|
+
};
|
|
12
|
+
const motionDistances = {
|
|
13
|
+
sm: 6,
|
|
14
|
+
md: 12,
|
|
15
|
+
lg: 20,
|
|
16
|
+
slideIn: 40
|
|
17
|
+
};
|
|
18
|
+
const defaultMotionTokens = {
|
|
19
|
+
durations: {
|
|
20
|
+
...motionDurations
|
|
21
|
+
},
|
|
22
|
+
easings: {
|
|
23
|
+
...motionEasings
|
|
24
|
+
},
|
|
25
|
+
distances: {
|
|
26
|
+
...motionDistances
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const mergeDefined = (base, overrides)=>{
|
|
30
|
+
const next = {
|
|
31
|
+
...base
|
|
32
|
+
};
|
|
33
|
+
if (!overrides) return next;
|
|
34
|
+
for (const [key, value] of Object.entries(overrides))if (void 0 !== value) next[key] = value;
|
|
35
|
+
return next;
|
|
36
|
+
};
|
|
37
|
+
const mergeMotionTokens = (base, overrides)=>({
|
|
38
|
+
durations: mergeDefined(base.durations, overrides?.durations),
|
|
39
|
+
easings: mergeDefined(base.easings, overrides?.easings),
|
|
40
|
+
distances: mergeDefined(base.distances, overrides?.distances)
|
|
41
|
+
});
|
|
42
|
+
export { defaultMotionTokens, mergeMotionTokens, motionDistances, motionDurations, motionEasings };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type MotionState = {
|
|
2
|
+
opacity?: number;
|
|
3
|
+
x?: number;
|
|
4
|
+
y?: number;
|
|
5
|
+
scale?: number;
|
|
6
|
+
};
|
|
7
|
+
export type MotionEasing = "ease-in" | "ease-out" | "ease-in-out" | "linear" | ((t: number) => number);
|
|
8
|
+
export type MotionTransition = {
|
|
9
|
+
duration?: number;
|
|
10
|
+
easing?: MotionEasing;
|
|
11
|
+
delay?: number;
|
|
12
|
+
};
|
|
13
|
+
export type MotionPreset = {
|
|
14
|
+
initial: MotionState;
|
|
15
|
+
animate: MotionState;
|
|
16
|
+
exit: MotionState;
|
|
17
|
+
transition?: MotionTransition;
|
|
18
|
+
};
|
|
19
|
+
export type MotionTokens = {
|
|
20
|
+
durations: Record<string, number>;
|
|
21
|
+
easings: Record<string, MotionEasing>;
|
|
22
|
+
distances: Record<string, number>;
|
|
23
|
+
};
|
|
24
|
+
export type MotionTokenOverrides = {
|
|
25
|
+
durations?: Partial<Record<string, number>>;
|
|
26
|
+
easings?: Partial<Record<string, MotionEasing>>;
|
|
27
|
+
distances?: Partial<Record<string, number>>;
|
|
28
|
+
};
|
|
29
|
+
export type MotionDriverOptions = {
|
|
30
|
+
from: number;
|
|
31
|
+
to: number;
|
|
32
|
+
duration: number;
|
|
33
|
+
ease: (t: number) => number;
|
|
34
|
+
onUpdate: (value: number) => void;
|
|
35
|
+
onComplete?: () => void;
|
|
36
|
+
};
|
|
37
|
+
export type MotionDriver = (options: MotionDriverOptions) => {
|
|
38
|
+
stop: () => void;
|
|
39
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./toastStore.js";
|
|
@@ -4,10 +4,17 @@ export interface ToastItem {
|
|
|
4
4
|
message: string;
|
|
5
5
|
type: ToastType;
|
|
6
6
|
timestamp: number;
|
|
7
|
+
duration: number;
|
|
8
|
+
isExiting?: boolean;
|
|
9
|
+
persist?: boolean;
|
|
7
10
|
}
|
|
8
11
|
export declare const toastStore: {
|
|
9
12
|
toasts: import("solid-js").Accessor<ToastItem[]>;
|
|
10
|
-
addToast: (message: string, type?: ToastType,
|
|
13
|
+
addToast: (message: string, type?: ToastType, durationOrOptions?: number | {
|
|
14
|
+
duration?: number;
|
|
15
|
+
persist?: boolean;
|
|
16
|
+
}) => string;
|
|
17
|
+
dismissToast: (id: string) => void;
|
|
11
18
|
removeToast: (id: string) => void;
|
|
12
19
|
clearAll: () => void;
|
|
13
20
|
showError: (message: string) => string;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
|
|
2
|
+
const [toasts, setToasts] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createSignal)([]);
|
|
3
|
+
let toastCounter = 0;
|
|
4
|
+
const toastTimers = new Map();
|
|
5
|
+
const clearToastTimer = (id)=>{
|
|
6
|
+
const timer = toastTimers.get(id);
|
|
7
|
+
if (!timer) return;
|
|
8
|
+
clearTimeout(timer);
|
|
9
|
+
toastTimers.delete(id);
|
|
10
|
+
};
|
|
11
|
+
const scheduleDismiss = (id, duration)=>{
|
|
12
|
+
if (duration <= 0) return;
|
|
13
|
+
clearToastTimer(id);
|
|
14
|
+
const timer = setTimeout(()=>{
|
|
15
|
+
toastStore.dismissToast(id);
|
|
16
|
+
}, duration);
|
|
17
|
+
toastTimers.set(id, timer);
|
|
18
|
+
};
|
|
19
|
+
const toastStore = {
|
|
20
|
+
toasts,
|
|
21
|
+
addToast: (message, type = "info", durationOrOptions)=>{
|
|
22
|
+
const hasOptions = void 0 !== durationOrOptions;
|
|
23
|
+
const duration = "number" == typeof durationOrOptions ? durationOrOptions : durationOrOptions?.duration ?? ("error" !== type || hasOptions ? 8000 : 0);
|
|
24
|
+
const persist = "number" == typeof durationOrOptions ? false : durationOrOptions?.persist ?? ("error" === type && !hasOptions);
|
|
25
|
+
const id = `toast-${++toastCounter}`;
|
|
26
|
+
const toast = {
|
|
27
|
+
id,
|
|
28
|
+
message,
|
|
29
|
+
type,
|
|
30
|
+
timestamp: Date.now(),
|
|
31
|
+
duration,
|
|
32
|
+
persist
|
|
33
|
+
};
|
|
34
|
+
setToasts((prev)=>[
|
|
35
|
+
...prev,
|
|
36
|
+
toast
|
|
37
|
+
]);
|
|
38
|
+
if (!persist) scheduleDismiss(id, duration);
|
|
39
|
+
return id;
|
|
40
|
+
},
|
|
41
|
+
dismissToast: (id)=>{
|
|
42
|
+
clearToastTimer(id);
|
|
43
|
+
setToasts((prev)=>prev.map((toast)=>toast.id !== id || toast.isExiting ? toast : {
|
|
44
|
+
...toast,
|
|
45
|
+
isExiting: true
|
|
46
|
+
}));
|
|
47
|
+
},
|
|
48
|
+
removeToast: (id)=>{
|
|
49
|
+
clearToastTimer(id);
|
|
50
|
+
setToasts((prev)=>prev.filter((toast)=>toast.id !== id));
|
|
51
|
+
},
|
|
52
|
+
clearAll: ()=>{
|
|
53
|
+
toastTimers.forEach((timer)=>clearTimeout(timer));
|
|
54
|
+
toastTimers.clear();
|
|
55
|
+
setToasts([]);
|
|
56
|
+
},
|
|
57
|
+
showError: (message)=>toastStore.addToast(message, "error", {
|
|
58
|
+
persist: true
|
|
59
|
+
}),
|
|
60
|
+
showSuccess: (message)=>toastStore.addToast(message, "success", 6000),
|
|
61
|
+
showWarning: (message)=>toastStore.addToast(message, "warning", 8000),
|
|
62
|
+
showInfo: (message)=>toastStore.addToast(message, "info", 6000)
|
|
63
|
+
};
|
|
64
|
+
export { toastStore };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
html {
|
|
3
|
+
scrollbar-color: var(--color-base-300) transparent;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
body {
|
|
7
|
+
color: var(--color-base-content);
|
|
8
|
+
background: var(--color-base-100);
|
|
9
|
+
overflow-x: clip;
|
|
10
|
+
touch-action: manipulation;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
*::selection {
|
|
14
|
+
color: var(--color-primary-content);
|
|
15
|
+
background: var(--color-primary);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.resize-y {
|
|
19
|
+
resize: vertical;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.resize-x {
|
|
23
|
+
resize: horizontal;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.resize-both {
|
|
27
|
+
resize: both;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.resize-none {
|
|
31
|
+
resize: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@layer components {
|
|
36
|
+
.table tr.active {
|
|
37
|
+
background-color: var(--b2);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.table.table-hover tbody tr:hover {
|
|
41
|
+
background-color: var(--b2);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.iconify{background-color:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%}.iconify,.iconify-color{display:inline-block;height:1em;width:1em}.iconify-color{background-repeat:no-repeat;background-size:100% 100%}.icon-[mdi-light--chevron-down]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='m5.84 9.59 5.66 5.66 5.66-5.66-.71-.7-4.95 4.95-4.95-4.95z'/%3E%3C/svg%3E")}.icon-[mdi-light--chevron-down].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--chevron-down].iconify-color{background-image:var(--svg)}.icon-[mdi-light--chevron-left]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M14.41 18.16 8.75 12.5l5.66-5.66.7.71-4.95 4.95 4.95 4.95z'/%3E%3C/svg%3E")}.icon-[mdi-light--chevron-left].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--chevron-left].iconify-color{background-image:var(--svg)}.icon-[mdi-light--chevron-right]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='m8.59 18.16 5.66-5.66-5.66-5.66-.7.71 4.95 4.95-4.95 4.95z'/%3E%3C/svg%3E")}.icon-[mdi-light--chevron-right].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--chevron-right].iconify-color{background-image:var(--svg)}.icon-[mdi-light--chevron-up]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='m5.84 15.41 5.66-5.66 5.66 5.66-.71.7-4.95-4.95-4.95 4.95z'/%3E%3C/svg%3E")}.icon-[mdi-light--chevron-up].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--chevron-up].iconify-color{background-image:var(--svg)}.icon-[mdi-light--eye]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M11.5 18c4 0 7.46-2.22 9.24-5.5C18.96 9.22 15.5 7 11.5 7s-7.46 2.22-9.24 5.5C4.04 15.78 7.5 18 11.5 18m0-12c4.56 0 8.5 2.65 10.36 6.5C20 16.35 16.06 19 11.5 19S3 16.35 1.14 12.5C3 8.65 6.94 6 11.5 6m0 2C14 8 16 10 16 12.5S14 17 11.5 17 7 15 7 12.5 9 8 11.5 8m0 1A3.5 3.5 0 0 0 8 12.5a3.5 3.5 0 0 0 3.5 3.5 3.5 3.5 0 0 0 3.5-3.5A3.5 3.5 0 0 0 11.5 9'/%3E%3C/svg%3E")}.icon-[mdi-light--eye].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--eye].iconify-color{background-image:var(--svg)}.icon-[mdi-light--eye-off]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M2.54 4.71 3.25 4 20 20.75l-.71.71-3.34-3.35c-1.37.57-2.87.89-4.45.89-4.56 0-8.5-2.65-10.36-6.5.97-2 2.49-3.67 4.36-4.82zM11.5 18c1.29 0 2.53-.23 3.67-.66l-1.12-1.13c-.73.5-1.6.79-2.55.79C9 17 7 15 7 12.5c0-.95.29-1.82.79-2.55L6.24 8.41a10.64 10.64 0 0 0-3.98 4.09C4.04 15.78 7.5 18 11.5 18m9.24-5.5C18.96 9.22 15.5 7 11.5 7c-1.15 0-2.27.19-3.31.53l-.78-.78C8.68 6.26 10.06 6 11.5 6c4.56 0 8.5 2.65 10.36 6.5a11.47 11.47 0 0 1-4.07 4.63l-.72-.73c1.53-.96 2.8-2.3 3.67-3.9M11.5 8C14 8 16 10 16 12.5c0 .82-.22 1.58-.6 2.24l-.74-.74c.22-.46.34-.96.34-1.5A3.5 3.5 0 0 0 11.5 9c-.54 0-1.04.12-1.5.34l-.74-.74c.66-.38 1.42-.6 2.24-.6M8 12.5a3.5 3.5 0 0 0 3.5 3.5c.67 0 1.29-.19 1.82-.5L8.5 10.68c-.31.53-.5 1.15-.5 1.82'/%3E%3C/svg%3E")}.icon-[mdi-light--eye-off].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--eye-off].iconify-color{background-image:var(--svg)}.icon-[mdi-light--unfold-more-horizontal]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='m15.74 8.83-.7.71L11.5 6 7.96 9.54l-.7-.71 4.24-4.24zm0 7.34-4.24 4.24-4.24-4.24.7-.71L11.5 19l3.54-3.54z'/%3E%3C/svg%3E")}.icon-[mdi-light--unfold-more-horizontal].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--unfold-more-horizontal].iconify-color{background-image:var(--svg)}
|
|
1
|
+
.iconify{background-color:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%}.iconify,.iconify-color{display:inline-block;height:1em;width:1em}.iconify-color{background-repeat:no-repeat;background-size:100% 100%}.icon-[mdi--close]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E")}.icon-[mdi--close].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi--close].iconify-color{background-image:var(--svg)}.icon-[mdi--firefox]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M6.85 6.74q.015 0 0 0M21.28 8.6c-.43-1.05-1.32-2.18-2.01-2.54.56 1.11.89 2.22 1.02 3.04v.02c-1.13-2.82-3.05-3.96-4.62-6.44-.08-.12-.17-.25-.24-.38-.04-.07-.07-.14-.11-.21-.06-.13-.12-.26-.15-.4 0-.01-.01-.02-.02-.02h-.03c-2.22 1.3-3.15 3.59-3.38 5.04-.69.04-1.37.21-1.99.51-.12.05-.17.19-.13.31.05.14.21.21.34.15.54-.26 1.14-.41 1.74-.45h.05c.08-.01.17-.01.25-.01.5-.01.97.06 1.44.2l.06.02c.1.02.17.06.25.06.05.04.11.06.16.08l.14.06c.07.03.14.06.2.09.03.02.06.03.09.05.07.04.16.07.2.11.04.02.08.05.12.07.73.45 1.34 1.07 1.75 1.81-.53-.37-1.49-.74-2.41-.58 3.6 1.81 2.63 8-2.36 7.76-.44-.01-.88-.1-1.3-.25-.1-.03-.2-.07-.29-.12-.05-.02-.12-.05-.17-.08-1.23-.63-2.24-1.82-2.38-3.27 0 0 .5-1.73 3.33-1.73.31 0 1.17-.86 1.2-1.1 0-.09-1.74-.78-2.42-1.45-.37-.36-.54-.53-.69-.66-.08-.07-.17-.13-.26-.19a4.63 4.63 0 0 1-.03-2.45C7.6 6.12 6.8 6.86 6.22 7.5c-.4-.5-.37-2.15-.35-2.5-.01 0-.3.16-.33.18-.35.25-.68.53-.98.82-.35.37-.66.74-.94 1.14-.62.91-1.12 1.95-1.34 3.04 0 .01-.1.41-.17.92l-.03.23c-.02.17-.04.32-.08.58v.41c0 5.53 4.5 10.01 10 10.01 4.97 0 9.08-3.59 9.88-8.33.02-.11.03-.24.05-.37.2-1.72-.02-3.52-.65-5.03'/%3E%3C/svg%3E")}.icon-[mdi--firefox].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi--firefox].iconify-color{background-image:var(--svg)}.icon-[mdi--loading]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8'/%3E%3C/svg%3E")}.icon-[mdi--loading].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi--loading].iconify-color{background-image:var(--svg)}.icon-[mdi--palette]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M17.5 12a1.5 1.5 0 0 1-1.5-1.5A1.5 1.5 0 0 1 17.5 9a1.5 1.5 0 0 1 1.5 1.5 1.5 1.5 0 0 1-1.5 1.5m-3-4A1.5 1.5 0 0 1 13 6.5 1.5 1.5 0 0 1 14.5 5 1.5 1.5 0 0 1 16 6.5 1.5 1.5 0 0 1 14.5 8m-5 0A1.5 1.5 0 0 1 8 6.5 1.5 1.5 0 0 1 9.5 5 1.5 1.5 0 0 1 11 6.5 1.5 1.5 0 0 1 9.5 8m-3 4A1.5 1.5 0 0 1 5 10.5 1.5 1.5 0 0 1 6.5 9 1.5 1.5 0 0 1 8 10.5 1.5 1.5 0 0 1 6.5 12M12 3a9 9 0 0 0-9 9 9 9 0 0 0 9 9 1.5 1.5 0 0 0 1.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 0 1 1.5-1.5H16a5 5 0 0 0 5-5c0-4.42-4.03-8-9-8'/%3E%3C/svg%3E")}.icon-[mdi--palette].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi--palette].iconify-color{background-image:var(--svg)}.icon-[mdi-light--chevron-down]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='m5.84 9.59 5.66 5.66 5.66-5.66-.71-.7-4.95 4.95-4.95-4.95z'/%3E%3C/svg%3E")}.icon-[mdi-light--chevron-down].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--chevron-down].iconify-color{background-image:var(--svg)}.icon-[mdi-light--chevron-left]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M14.41 18.16 8.75 12.5l5.66-5.66.7.71-4.95 4.95 4.95 4.95z'/%3E%3C/svg%3E")}.icon-[mdi-light--chevron-left].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--chevron-left].iconify-color{background-image:var(--svg)}.icon-[mdi-light--chevron-right]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='m8.59 18.16 5.66-5.66-5.66-5.66-.7.71 4.95 4.95-4.95 4.95z'/%3E%3C/svg%3E")}.icon-[mdi-light--chevron-right].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--chevron-right].iconify-color{background-image:var(--svg)}.icon-[mdi-light--chevron-up]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='m5.84 15.41 5.66-5.66 5.66 5.66-.71.7-4.95-4.95-4.95 4.95z'/%3E%3C/svg%3E")}.icon-[mdi-light--chevron-up].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--chevron-up].iconify-color{background-image:var(--svg)}.icon-[mdi-light--eye]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M11.5 18c4 0 7.46-2.22 9.24-5.5C18.96 9.22 15.5 7 11.5 7s-7.46 2.22-9.24 5.5C4.04 15.78 7.5 18 11.5 18m0-12c4.56 0 8.5 2.65 10.36 6.5C20 16.35 16.06 19 11.5 19S3 16.35 1.14 12.5C3 8.65 6.94 6 11.5 6m0 2C14 8 16 10 16 12.5S14 17 11.5 17 7 15 7 12.5 9 8 11.5 8m0 1A3.5 3.5 0 0 0 8 12.5a3.5 3.5 0 0 0 3.5 3.5 3.5 3.5 0 0 0 3.5-3.5A3.5 3.5 0 0 0 11.5 9'/%3E%3C/svg%3E")}.icon-[mdi-light--eye].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--eye].iconify-color{background-image:var(--svg)}.icon-[mdi-light--eye-off]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M2.54 4.71 3.25 4 20 20.75l-.71.71-3.34-3.35c-1.37.57-2.87.89-4.45.89-4.56 0-8.5-2.65-10.36-6.5.97-2 2.49-3.67 4.36-4.82zM11.5 18c1.29 0 2.53-.23 3.67-.66l-1.12-1.13c-.73.5-1.6.79-2.55.79C9 17 7 15 7 12.5c0-.95.29-1.82.79-2.55L6.24 8.41a10.64 10.64 0 0 0-3.98 4.09C4.04 15.78 7.5 18 11.5 18m9.24-5.5C18.96 9.22 15.5 7 11.5 7c-1.15 0-2.27.19-3.31.53l-.78-.78C8.68 6.26 10.06 6 11.5 6c4.56 0 8.5 2.65 10.36 6.5a11.47 11.47 0 0 1-4.07 4.63l-.72-.73c1.53-.96 2.8-2.3 3.67-3.9M11.5 8C14 8 16 10 16 12.5c0 .82-.22 1.58-.6 2.24l-.74-.74c.22-.46.34-.96.34-1.5A3.5 3.5 0 0 0 11.5 9c-.54 0-1.04.12-1.5.34l-.74-.74c.66-.38 1.42-.6 2.24-.6M8 12.5a3.5 3.5 0 0 0 3.5 3.5c.67 0 1.29-.19 1.82-.5L8.5 10.68c-.31.53-.5 1.15-.5 1.82'/%3E%3C/svg%3E")}.icon-[mdi-light--eye-off].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--eye-off].iconify-color{background-image:var(--svg)}.icon-[mdi-light--unfold-more-horizontal]{--svg:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='m15.74 8.83-.7.71L11.5 6 7.96 9.54l-.7-.71 4.24-4.24zm0 7.34-4.24 4.24-4.24-4.24.7-.71L11.5 19l3.54-3.54z'/%3E%3C/svg%3E")}.icon-[mdi-light--unfold-more-horizontal].iconify{-webkit-mask-image:var(--svg);mask-image:var(--svg)}.icon-[mdi-light--unfold-more-horizontal].iconify-color{background-image:var(--svg)}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
@layer theme {
|
|
2
|
+
[data-theme="dark"] {
|
|
3
|
+
/* Base colors */
|
|
4
|
+
--color-primary: var(--color-blue-500);
|
|
5
|
+
--color-primary-content: var(--color-white);
|
|
6
|
+
--color-secondary: var(--color-purple-500);
|
|
7
|
+
--color-secondary-content: var(--color-white);
|
|
8
|
+
--color-accent: var(--color-sky-500);
|
|
9
|
+
--color-accent-content: var(--color-white);
|
|
10
|
+
--color-accent-foreground: var(--color-white);
|
|
11
|
+
--color-accent-soft: color-mix(in oklab, var(--color-sky-500) 20%, var(--color-gray-900));
|
|
12
|
+
--color-accent-soft-foreground: var(--color-sky-400);
|
|
13
|
+
--color-accent-soft-hover: color-mix(in oklab, var(--color-sky-500) 28%, var(--color-gray-900));
|
|
14
|
+
--color-accent-hover: var(--color-sky-400);
|
|
15
|
+
--color-neutral: var(--color-gray-700);
|
|
16
|
+
--color-neutral-content: var(--color-gray-100);
|
|
17
|
+
|
|
18
|
+
/* Semantic colors */
|
|
19
|
+
--color-info: var(--color-blue-400);
|
|
20
|
+
--color-info-content: var(--color-gray-900);
|
|
21
|
+
--color-success: var(--color-emerald-500);
|
|
22
|
+
--color-success-content: var(--color-gray-900);
|
|
23
|
+
--color-success-foreground: var(--color-white);
|
|
24
|
+
--color-success-soft: color-mix(in oklab, var(--color-emerald-500) 20%, var(--color-gray-900));
|
|
25
|
+
--color-success-soft-foreground: var(--color-emerald-400);
|
|
26
|
+
--color-warning: var(--color-amber-400);
|
|
27
|
+
--color-warning-content: var(--color-gray-900);
|
|
28
|
+
--color-warning-foreground: var(--color-gray-900);
|
|
29
|
+
--color-warning-soft: color-mix(in oklab, var(--color-amber-400) 20%, var(--color-gray-900));
|
|
30
|
+
--color-warning-soft-foreground: var(--color-amber-300);
|
|
31
|
+
--color-error: var(--color-rose-500);
|
|
32
|
+
--color-error-content: var(--color-white);
|
|
33
|
+
--color-danger: var(--color-rose-500);
|
|
34
|
+
--color-danger-foreground: var(--color-white);
|
|
35
|
+
--color-danger-soft: color-mix(in oklab, var(--color-rose-500) 20%, var(--color-gray-900));
|
|
36
|
+
--color-danger-soft-foreground: var(--color-rose-400);
|
|
37
|
+
|
|
38
|
+
/* HeroUI generic tokens */
|
|
39
|
+
--color-default: var(--color-gray-700);
|
|
40
|
+
--color-default-foreground: var(--color-gray-100);
|
|
41
|
+
--color-default-hover: var(--color-gray-600);
|
|
42
|
+
--color-background: var(--color-gray-900);
|
|
43
|
+
--color-foreground: var(--color-gray-100);
|
|
44
|
+
|
|
45
|
+
/* Base background colors */
|
|
46
|
+
--color-base-100: var(--color-gray-900);
|
|
47
|
+
--color-base-200: var(--color-gray-800);
|
|
48
|
+
--color-base-300: var(--color-gray-700);
|
|
49
|
+
--color-base-content: var(--color-gray-100);
|
|
50
|
+
|
|
51
|
+
/* Legacy support */
|
|
52
|
+
--color-bg-body: var(--color-gray-900);
|
|
53
|
+
--color-bg-inverse: var(--color-white);
|
|
54
|
+
--color-bg-primary: var(--color-gray-800);
|
|
55
|
+
--color-bg-secondary: var(--color-gray-700);
|
|
56
|
+
--color-bg-tertiary: var(--color-gray-600);
|
|
57
|
+
--color-bg-positive: var(--color-emerald-500);
|
|
58
|
+
--color-bg-destructive: var(--color-rose-500);
|
|
59
|
+
|
|
60
|
+
--color-fg-body: var(--color-gray-100);
|
|
61
|
+
--color-fg-inverse: var(--color-gray-900);
|
|
62
|
+
--color-fg-primary: var(--color-gray-200);
|
|
63
|
+
--color-fg-secondary: var(--color-gray-300);
|
|
64
|
+
--color-fg-tertiary: var(--color-gray-400);
|
|
65
|
+
--color-fg-positive: var(--color-emerald-400);
|
|
66
|
+
--color-fg-destructive: var(--color-rose-400);
|
|
67
|
+
|
|
68
|
+
/* Daisy-compatible aliases and structural tokens */
|
|
69
|
+
--b1: var(--color-base-100);
|
|
70
|
+
--b2: var(--color-base-200);
|
|
71
|
+
--b3: var(--color-base-300);
|
|
72
|
+
--bc: var(--color-base-content);
|
|
73
|
+
--radius-selector: 0.375rem;
|
|
74
|
+
--radius-field: 0.375rem;
|
|
75
|
+
--radius-box: 0.75rem;
|
|
76
|
+
--size-selector: 0.25rem;
|
|
77
|
+
--size-field: 0.25rem;
|
|
78
|
+
--border: 1px;
|
|
79
|
+
--depth: 0;
|
|
80
|
+
--noise: 1;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@layer base {
|
|
85
|
+
[data-theme="dark"] {
|
|
86
|
+
color-scheme: only dark;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@layer theme {
|
|
2
|
+
:root:not([data-theme]),
|
|
3
|
+
[data-theme="light"] {
|
|
4
|
+
/* Base colors */
|
|
5
|
+
--color-primary: var(--color-blue-600);
|
|
6
|
+
--color-primary-content: var(--color-white);
|
|
7
|
+
--color-secondary: var(--color-purple-600);
|
|
8
|
+
--color-secondary-content: var(--color-white);
|
|
9
|
+
--color-accent: var(--color-sky-600);
|
|
10
|
+
--color-accent-content: var(--color-white);
|
|
11
|
+
--color-accent-foreground: var(--color-white);
|
|
12
|
+
--color-accent-soft: color-mix(in oklab, var(--color-sky-600) 15%, var(--color-white));
|
|
13
|
+
--color-accent-soft-foreground: var(--color-sky-700);
|
|
14
|
+
--color-accent-soft-hover: color-mix(in oklab, var(--color-sky-600) 22%, var(--color-white));
|
|
15
|
+
--color-accent-hover: var(--color-sky-700);
|
|
16
|
+
--color-neutral: var(--color-gray-600);
|
|
17
|
+
--color-neutral-content: var(--color-white);
|
|
18
|
+
|
|
19
|
+
/* Semantic colors */
|
|
20
|
+
--color-info: var(--color-blue-500);
|
|
21
|
+
--color-info-content: var(--color-white);
|
|
22
|
+
--color-success: var(--color-emerald-600);
|
|
23
|
+
--color-success-content: var(--color-white);
|
|
24
|
+
--color-success-foreground: var(--color-white);
|
|
25
|
+
--color-success-soft: color-mix(in oklab, var(--color-emerald-600) 15%, var(--color-white));
|
|
26
|
+
--color-success-soft-foreground: var(--color-emerald-700);
|
|
27
|
+
--color-warning: var(--color-amber-500);
|
|
28
|
+
--color-warning-content: var(--color-black);
|
|
29
|
+
--color-warning-foreground: var(--color-black);
|
|
30
|
+
--color-warning-soft: color-mix(in oklab, var(--color-amber-500) 15%, var(--color-white));
|
|
31
|
+
--color-warning-soft-foreground: var(--color-amber-700);
|
|
32
|
+
--color-error: var(--color-rose-600);
|
|
33
|
+
--color-error-content: var(--color-white);
|
|
34
|
+
--color-danger: var(--color-rose-600);
|
|
35
|
+
--color-danger-foreground: var(--color-white);
|
|
36
|
+
--color-danger-soft: color-mix(in oklab, var(--color-rose-600) 15%, var(--color-white));
|
|
37
|
+
--color-danger-soft-foreground: var(--color-rose-700);
|
|
38
|
+
|
|
39
|
+
/* HeroUI generic tokens */
|
|
40
|
+
--color-default: var(--color-gray-200);
|
|
41
|
+
--color-default-foreground: var(--color-gray-800);
|
|
42
|
+
--color-default-hover: var(--color-gray-300);
|
|
43
|
+
--color-background: var(--color-white);
|
|
44
|
+
--color-foreground: var(--color-gray-900);
|
|
45
|
+
|
|
46
|
+
/* Base background colors */
|
|
47
|
+
--color-base-100: var(--color-white);
|
|
48
|
+
--color-base-200: var(--color-gray-100);
|
|
49
|
+
--color-base-300: var(--color-gray-200);
|
|
50
|
+
--color-base-content: var(--color-gray-900);
|
|
51
|
+
|
|
52
|
+
/* Legacy support */
|
|
53
|
+
--color-bg-body: var(--color-white);
|
|
54
|
+
--color-bg-inverse: var(--color-gray-900);
|
|
55
|
+
--color-bg-primary: var(--color-gray-100);
|
|
56
|
+
--color-bg-secondary: var(--color-gray-200);
|
|
57
|
+
--color-bg-tertiary: var(--color-gray-300);
|
|
58
|
+
--color-bg-positive: var(--color-emerald-600);
|
|
59
|
+
--color-bg-destructive: var(--color-rose-600);
|
|
60
|
+
|
|
61
|
+
--color-fg-body: var(--color-gray-900);
|
|
62
|
+
--color-fg-inverse: var(--color-white);
|
|
63
|
+
--color-fg-primary: var(--color-gray-800);
|
|
64
|
+
--color-fg-secondary: var(--color-gray-700);
|
|
65
|
+
--color-fg-tertiary: var(--color-gray-600);
|
|
66
|
+
--color-fg-positive: var(--color-emerald-700);
|
|
67
|
+
--color-fg-destructive: var(--color-rose-700);
|
|
68
|
+
|
|
69
|
+
/* Daisy-compatible aliases and structural tokens */
|
|
70
|
+
--b1: var(--color-base-100);
|
|
71
|
+
--b2: var(--color-base-200);
|
|
72
|
+
--b3: var(--color-base-300);
|
|
73
|
+
--bc: var(--color-base-content);
|
|
74
|
+
--radius-selector: 0.375rem;
|
|
75
|
+
--radius-field: 0.375rem;
|
|
76
|
+
--radius-box: 0.75rem;
|
|
77
|
+
--size-selector: 0.25rem;
|
|
78
|
+
--size-field: 0.25rem;
|
|
79
|
+
--border: 1px;
|
|
80
|
+
--depth: 0;
|
|
81
|
+
--noise: 1;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@layer base {
|
|
86
|
+
:root:not([data-theme]),
|
|
87
|
+
[data-theme="light"] {
|
|
88
|
+
color-scheme: only light;
|
|
89
|
+
}
|
|
90
|
+
}
|