@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,171 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.card {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
border-radius: var(--radius-box);
|
|
7
|
+
outline-width: 2px;
|
|
8
|
+
transition: outline 0.2s ease-in-out;
|
|
9
|
+
outline: 0 solid #0000;
|
|
10
|
+
outline-offset: 2px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.card:focus {
|
|
14
|
+
--tw-outline-style: none;
|
|
15
|
+
outline-style: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media (forced-colors: active) {
|
|
19
|
+
.card:focus {
|
|
20
|
+
outline: 2px solid transparent;
|
|
21
|
+
outline-offset: 2px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.card:focus-visible {
|
|
26
|
+
outline-color: currentColor;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.card :where(figure:first-child) {
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
border-start-start-radius: inherit;
|
|
32
|
+
border-start-end-radius: inherit;
|
|
33
|
+
border-end-start-radius: unset;
|
|
34
|
+
border-end-end-radius: unset;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.card :where(figure:last-child) {
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
border-start-start-radius: unset;
|
|
40
|
+
border-start-end-radius: unset;
|
|
41
|
+
border-end-start-radius: inherit;
|
|
42
|
+
border-end-end-radius: inherit;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.card figure {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.card:has(> input:is(input[type="checkbox"], input[type="radio"])) {
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
user-select: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.card:has(> :checked) {
|
|
57
|
+
outline: 2px solid currentColor;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.card-body {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex: auto;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
gap: calc(0.25rem * 2);
|
|
65
|
+
padding: var(--card-p, 1.5rem);
|
|
66
|
+
font-size: var(--card-fs, 0.875rem);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.card-body :where(p) {
|
|
70
|
+
flex-grow: 1;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.card-actions {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-wrap: wrap;
|
|
76
|
+
align-items: flex-start;
|
|
77
|
+
gap: calc(0.25rem * 2);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.card-title {
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
gap: calc(0.25rem * 2);
|
|
84
|
+
font-size: var(--cardtitle-fs, 1.125rem);
|
|
85
|
+
font-weight: 600;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.card-side {
|
|
89
|
+
align-items: stretch;
|
|
90
|
+
flex-direction: row;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.card-side :where(figure:first-child) {
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
border-start-start-radius: inherit;
|
|
96
|
+
border-start-end-radius: unset;
|
|
97
|
+
border-end-start-radius: inherit;
|
|
98
|
+
border-end-end-radius: unset;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.card-side :where(figure:last-child) {
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
border-start-start-radius: unset;
|
|
104
|
+
border-start-end-radius: inherit;
|
|
105
|
+
border-end-start-radius: unset;
|
|
106
|
+
border-end-end-radius: inherit;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.card-side figure > * {
|
|
110
|
+
max-width: unset;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.card-side :where(figure > *) {
|
|
114
|
+
width: 100%;
|
|
115
|
+
height: 100%;
|
|
116
|
+
object-fit: cover;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.card-lg .card-body {
|
|
120
|
+
--card-p: 2rem;
|
|
121
|
+
--card-fs: 1rem;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.card-lg .card-title {
|
|
125
|
+
--cardtitle-fs: 1.25rem;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.card-md .card-body {
|
|
129
|
+
--card-p: 1.5rem;
|
|
130
|
+
--card-fs: 0.875rem;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.card-md .card-title {
|
|
134
|
+
--cardtitle-fs: 1.125rem;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.card-sm .card-body {
|
|
138
|
+
--card-p: 1rem;
|
|
139
|
+
--card-fs: 0.75rem;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.card-sm .card-title {
|
|
143
|
+
--cardtitle-fs: 1rem;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.card-xl .card-body {
|
|
147
|
+
--card-p: 2.5rem;
|
|
148
|
+
--card-fs: 1.125rem;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.card-xl .card-title {
|
|
152
|
+
--cardtitle-fs: 1.375rem;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.card-xs .card-body {
|
|
156
|
+
--card-p: 0.5rem;
|
|
157
|
+
--card-fs: 0.6875rem;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.card-xs .card-title {
|
|
161
|
+
--cardtitle-fs: 0.875rem;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.card-border {
|
|
165
|
+
border: var(--border) solid var(--color-base-200);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.card-dash {
|
|
169
|
+
border: var(--border) dashed var(--color-base-200);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "./Card";
|
|
1
|
+
export { default, type CardProps } from "./Card";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web";
|
|
2
|
+
import "./carousel.css";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__CarouselItem_js_1038c5b2__ from "./CarouselItem.js";
|
|
7
|
+
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div><div class=carousel-content>");
|
|
8
|
+
const Carousel = (props)=>{
|
|
9
|
+
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
10
|
+
"class",
|
|
11
|
+
"children",
|
|
12
|
+
"snap",
|
|
13
|
+
"direction",
|
|
14
|
+
"aria-label",
|
|
15
|
+
"aria-roledescription",
|
|
16
|
+
"aria-describedby",
|
|
17
|
+
"aria-labelledby",
|
|
18
|
+
"aria-live",
|
|
19
|
+
"aria-atomic"
|
|
20
|
+
]);
|
|
21
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>(0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)("carousel", local.class, (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])({
|
|
22
|
+
"carousel-start": "start" === local.snap || !local.snap,
|
|
23
|
+
"carousel-center": "center" === local.snap,
|
|
24
|
+
"carousel-end": "end" === local.snap,
|
|
25
|
+
"carousel-vertical": "vertical" === local.direction,
|
|
26
|
+
"carousel-horizontal": "horizontal" === local.direction
|
|
27
|
+
})));
|
|
28
|
+
const ariaRoleDescription = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-roledescription"] || "carousel");
|
|
29
|
+
const ariaLabel = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-label"]);
|
|
30
|
+
const ariaDescribedby = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-describedby"]);
|
|
31
|
+
const ariaLabelledby = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-labelledby"]);
|
|
32
|
+
const ariaLive = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-live"] || "polite");
|
|
33
|
+
const ariaAtomic = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>local["aria-atomic"] || false);
|
|
34
|
+
return (()=>{
|
|
35
|
+
var _el$ = _tmpl$(), _el$2 = _el$.firstChild;
|
|
36
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(rest, {
|
|
37
|
+
get ["class"] () {
|
|
38
|
+
return classes();
|
|
39
|
+
},
|
|
40
|
+
role: "region",
|
|
41
|
+
get ["aria-roledescription"] () {
|
|
42
|
+
return ariaRoleDescription();
|
|
43
|
+
},
|
|
44
|
+
get ["aria-label"] () {
|
|
45
|
+
return ariaLabel();
|
|
46
|
+
},
|
|
47
|
+
get ["aria-describedby"] () {
|
|
48
|
+
return ariaDescribedby();
|
|
49
|
+
},
|
|
50
|
+
get ["aria-labelledby"] () {
|
|
51
|
+
return ariaLabelledby();
|
|
52
|
+
}
|
|
53
|
+
}), false, true);
|
|
54
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$2, ()=>local.children);
|
|
55
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.effect)((_p$)=>{
|
|
56
|
+
var _v$ = ariaLive(), _v$2 = ariaAtomic();
|
|
57
|
+
_v$ !== _p$.e && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$2, "aria-live", _p$.e = _v$);
|
|
58
|
+
_v$2 !== _p$.t && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.setAttribute)(_el$2, "aria-atomic", _p$.t = _v$2);
|
|
59
|
+
return _p$;
|
|
60
|
+
}, {
|
|
61
|
+
e: void 0,
|
|
62
|
+
t: void 0
|
|
63
|
+
});
|
|
64
|
+
return _el$;
|
|
65
|
+
})();
|
|
66
|
+
};
|
|
67
|
+
const carousel_Carousel = Object.assign(Carousel, {
|
|
68
|
+
Item: __WEBPACK_EXTERNAL_MODULE__CarouselItem_js_1038c5b2__["default"]
|
|
69
|
+
});
|
|
70
|
+
export { carousel_Carousel as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
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_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
4
|
+
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
5
|
+
const CarouselItem_CarouselItem = (props)=>{
|
|
6
|
+
const [local, rest] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
7
|
+
"class",
|
|
8
|
+
"children",
|
|
9
|
+
"aria-current"
|
|
10
|
+
]);
|
|
11
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)("carousel-item", local.class);
|
|
12
|
+
return (()=>{
|
|
13
|
+
var _el$ = _tmpl$();
|
|
14
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(rest, {
|
|
15
|
+
class: classes,
|
|
16
|
+
role: "group",
|
|
17
|
+
"aria-roledescription": "slide",
|
|
18
|
+
get ["aria-current"] () {
|
|
19
|
+
return local["aria-current"];
|
|
20
|
+
}
|
|
21
|
+
}), false, true);
|
|
22
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>local.children);
|
|
23
|
+
return _el$;
|
|
24
|
+
})();
|
|
25
|
+
};
|
|
26
|
+
const CarouselItem = CarouselItem_CarouselItem;
|
|
27
|
+
export { CarouselItem as default };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.carousel-item {
|
|
3
|
+
box-sizing: content-box;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex: none;
|
|
6
|
+
scroll-snap-align: start;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.carousel {
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
overflow-x: scroll;
|
|
12
|
+
scroll-snap-type: x mandatory;
|
|
13
|
+
scrollbar-width: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
17
|
+
.carousel {
|
|
18
|
+
scroll-behavior: smooth;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.carousel::-webkit-scrollbar {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.carousel-vertical {
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
overflow-y: scroll;
|
|
29
|
+
scroll-snap-type: y mandatory;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.carousel-center .carousel-item {
|
|
33
|
+
scroll-snap-align: center;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.carousel-end .carousel-item {
|
|
37
|
+
scroll-snap-align: end;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web";
|
|
2
|
+
import "./chat.css";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__ from "solid-js";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__ChatBubbleHeader_js_27ae7dae__ from "./ChatBubbleHeader.js";
|
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__ChatBubbleTime_js_4a8b0bdd__ from "./ChatBubbleTime.js";
|
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__ChatBubbleAvatar_js_15308dcc__ from "./ChatBubbleAvatar.js";
|
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE__ChatBubbleMessage_js_98a4ad66__ from "./ChatBubbleMessage.js";
|
|
9
|
+
import * as __WEBPACK_EXTERNAL_MODULE__ChatBubbleFooter_js_337289df__ from "./ChatBubbleFooter.js";
|
|
10
|
+
import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
|
|
11
|
+
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
12
|
+
const ChatBubble = (props)=>{
|
|
13
|
+
const [local, others] = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.splitProps)(props, [
|
|
14
|
+
"end",
|
|
15
|
+
"dataTheme",
|
|
16
|
+
"class",
|
|
17
|
+
"className",
|
|
18
|
+
"style"
|
|
19
|
+
]);
|
|
20
|
+
const classes = (0, __WEBPACK_EXTERNAL_MODULE_solid_js_aeefcc6d__.createMemo)(()=>(0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)("chat", (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])({
|
|
21
|
+
"chat-end": local.end,
|
|
22
|
+
"chat-start": !local.end
|
|
23
|
+
}), local.class, local.className));
|
|
24
|
+
return (()=>{
|
|
25
|
+
var _el$ = _tmpl$();
|
|
26
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(others, {
|
|
27
|
+
get ["data-theme"] () {
|
|
28
|
+
return local.dataTheme;
|
|
29
|
+
},
|
|
30
|
+
get ["class"] () {
|
|
31
|
+
return classes();
|
|
32
|
+
},
|
|
33
|
+
get style () {
|
|
34
|
+
return local.style;
|
|
35
|
+
}
|
|
36
|
+
}), false, true);
|
|
37
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.insert)(_el$, ()=>others.children);
|
|
38
|
+
return _el$;
|
|
39
|
+
})();
|
|
40
|
+
};
|
|
41
|
+
const chatbubble_ChatBubble = Object.assign(ChatBubble, {
|
|
42
|
+
Header: __WEBPACK_EXTERNAL_MODULE__ChatBubbleHeader_js_27ae7dae__["default"],
|
|
43
|
+
Time: __WEBPACK_EXTERNAL_MODULE__ChatBubbleTime_js_4a8b0bdd__["default"],
|
|
44
|
+
Avatar: __WEBPACK_EXTERNAL_MODULE__ChatBubbleAvatar_js_15308dcc__["default"],
|
|
45
|
+
Message: __WEBPACK_EXTERNAL_MODULE__ChatBubbleMessage_js_98a4ad66__["default"],
|
|
46
|
+
Footer: __WEBPACK_EXTERNAL_MODULE__ChatBubbleFooter_js_337289df__["default"]
|
|
47
|
+
});
|
|
48
|
+
export { chatbubble_ChatBubble as default };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { JSX } from "solid-js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { AvatarRootProps } from "../avatar";
|
|
3
3
|
import type { IComponentBaseProps } from "../types";
|
|
4
|
-
export type ChatBubbleAvatarProps =
|
|
4
|
+
export type ChatBubbleAvatarProps = {
|
|
5
|
+
src?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
fallback?: string;
|
|
8
|
+
} & Omit<AvatarRootProps, "children"> & IComponentBaseProps;
|
|
5
9
|
declare const ChatBubbleAvatar: (props: ChatBubbleAvatarProps) => JSX.Element;
|
|
6
10
|
export default ChatBubbleAvatar;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__avatar_index_js_ad25bec4__ from "../avatar/index.js";
|
|
4
|
+
const ChatBubbleAvatar = (props)=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__avatar_index_js_ad25bec4__["default"], {
|
|
5
|
+
get size () {
|
|
6
|
+
return props.size ?? "sm";
|
|
7
|
+
},
|
|
8
|
+
get color () {
|
|
9
|
+
return props.color;
|
|
10
|
+
},
|
|
11
|
+
get variant () {
|
|
12
|
+
return props.variant;
|
|
13
|
+
},
|
|
14
|
+
get ["class"] () {
|
|
15
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)("chat-image", props.class);
|
|
16
|
+
},
|
|
17
|
+
get dataTheme () {
|
|
18
|
+
return props.dataTheme;
|
|
19
|
+
},
|
|
20
|
+
get style () {
|
|
21
|
+
return props.style;
|
|
22
|
+
},
|
|
23
|
+
get children () {
|
|
24
|
+
return [
|
|
25
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.memo)(()=>!!props.src)() && (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__avatar_index_js_ad25bec4__["default"].Image, {
|
|
26
|
+
get src () {
|
|
27
|
+
return props.src;
|
|
28
|
+
},
|
|
29
|
+
get alt () {
|
|
30
|
+
return props.alt;
|
|
31
|
+
}
|
|
32
|
+
})),
|
|
33
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.createComponent)(__WEBPACK_EXTERNAL_MODULE__avatar_index_js_ad25bec4__["default"].Fallback, {
|
|
34
|
+
get children () {
|
|
35
|
+
return props.fallback ?? props.alt?.charAt(0) ?? "?";
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
];
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
const chatbubble_ChatBubbleAvatar = ChatBubbleAvatar;
|
|
42
|
+
export { chatbubble_ChatBubbleAvatar as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
3
|
+
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
4
|
+
const ChatBubbleFooter = (props)=>(()=>{
|
|
5
|
+
var _el$ = _tmpl$();
|
|
6
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(props, {
|
|
7
|
+
get ["class"] () {
|
|
8
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)("chat-footer opacity-50", props.class);
|
|
9
|
+
}
|
|
10
|
+
}), false, false);
|
|
11
|
+
return _el$;
|
|
12
|
+
})();
|
|
13
|
+
const chatbubble_ChatBubbleFooter = ChatBubbleFooter;
|
|
14
|
+
export { chatbubble_ChatBubbleFooter as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
3
|
+
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
4
|
+
const ChatBubbleHeader_ChatBubbleHeader = (props)=>(()=>{
|
|
5
|
+
var _el$ = _tmpl$();
|
|
6
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(props, {
|
|
7
|
+
get ["class"] () {
|
|
8
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)("chat-header", props.class);
|
|
9
|
+
}
|
|
10
|
+
}), false, false);
|
|
11
|
+
return _el$;
|
|
12
|
+
})();
|
|
13
|
+
const ChatBubbleHeader = ChatBubbleHeader_ChatBubbleHeader;
|
|
14
|
+
export { ChatBubbleHeader as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
|
|
4
|
+
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<div>");
|
|
5
|
+
const ChatBubbleMessage_ChatBubbleMessage = (props)=>{
|
|
6
|
+
const bubbleClass = (0, __WEBPACK_EXTERNAL_MODULE_clsx__.clsx)({
|
|
7
|
+
"chat-bubble": true,
|
|
8
|
+
"chat-bubble-neutral": "neutral" === props.color,
|
|
9
|
+
"chat-bubble-primary": "primary" === props.color,
|
|
10
|
+
"chat-bubble-secondary": "secondary" === props.color,
|
|
11
|
+
"chat-bubble-accent": "accent" === props.color,
|
|
12
|
+
"chat-bubble-info": "info" === props.color,
|
|
13
|
+
"chat-bubble-success": "success" === props.color,
|
|
14
|
+
"chat-bubble-warning": "warning" === props.color,
|
|
15
|
+
"chat-bubble-error": "error" === props.color
|
|
16
|
+
});
|
|
17
|
+
return (()=>{
|
|
18
|
+
var _el$ = _tmpl$();
|
|
19
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(props, {
|
|
20
|
+
get ["class"] () {
|
|
21
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(bubbleClass, props.class);
|
|
22
|
+
}
|
|
23
|
+
}), false, false);
|
|
24
|
+
return _el$;
|
|
25
|
+
})();
|
|
26
|
+
};
|
|
27
|
+
const ChatBubbleMessage = ChatBubbleMessage_ChatBubbleMessage;
|
|
28
|
+
export { ChatBubbleMessage as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__ from "solid-js/web";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
3
|
+
var _tmpl$ = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.template)("<time>");
|
|
4
|
+
const ChatBubbleTime = (props)=>(()=>{
|
|
5
|
+
var _el$ = _tmpl$();
|
|
6
|
+
(0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.spread)(_el$, (0, __WEBPACK_EXTERNAL_MODULE_solid_js_web_35d951b7__.mergeProps)(props, {
|
|
7
|
+
get ["class"] () {
|
|
8
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)("text-xs opacity-50", props.class);
|
|
9
|
+
}
|
|
10
|
+
}), false, false);
|
|
11
|
+
return _el$;
|
|
12
|
+
})();
|
|
13
|
+
const chatbubble_ChatBubbleTime = ChatBubbleTime;
|
|
14
|
+
export { chatbubble_ChatBubbleTime as default };
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.chat-bubble {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: block;
|
|
5
|
+
width: fit-content;
|
|
6
|
+
border-radius: var(--radius-field);
|
|
7
|
+
background-color: var(--color-base-300);
|
|
8
|
+
padding-inline: calc(0.25rem * 4);
|
|
9
|
+
padding-block: calc(0.25rem * 2);
|
|
10
|
+
color: var(--color-base-content);
|
|
11
|
+
grid-row-end: 3;
|
|
12
|
+
min-height: 2rem;
|
|
13
|
+
min-width: 2.5rem;
|
|
14
|
+
max-width: 90%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.chat-bubble:before {
|
|
18
|
+
position: absolute;
|
|
19
|
+
bottom: calc(0.25rem * 0);
|
|
20
|
+
height: calc(0.25rem * 3);
|
|
21
|
+
width: calc(0.25rem * 3);
|
|
22
|
+
background-color: inherit;
|
|
23
|
+
content: "";
|
|
24
|
+
mask-repeat: no-repeat;
|
|
25
|
+
mask-image: var(--mask-chat);
|
|
26
|
+
mask-position: 0px -1px;
|
|
27
|
+
mask-size: 0.8125rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.chat-end {
|
|
31
|
+
place-items: end;
|
|
32
|
+
grid-template-columns: 1fr auto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.chat-end .chat-header {
|
|
36
|
+
grid-column-start: 1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.chat-end .chat-footer {
|
|
40
|
+
grid-column-start: 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.chat-end .chat-image {
|
|
44
|
+
grid-column-start: 2;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.chat-end .chat-bubble {
|
|
48
|
+
grid-column-start: 1;
|
|
49
|
+
border-end-end-radius: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.chat-end .chat-bubble:before {
|
|
53
|
+
transform: rotateY(180deg);
|
|
54
|
+
inset-inline-start: 100%;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[dir="rtl"] .chat-end .chat-bubble:before {
|
|
58
|
+
transform: rotateY(0deg);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.chat-start {
|
|
62
|
+
place-items: start;
|
|
63
|
+
grid-template-columns: auto 1fr;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.chat-start .chat-header {
|
|
67
|
+
grid-column-start: 2;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.chat-start .chat-footer {
|
|
71
|
+
grid-column-start: 2;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.chat-start .chat-image {
|
|
75
|
+
grid-column-start: 1;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.chat-start .chat-bubble {
|
|
79
|
+
grid-column-start: 2;
|
|
80
|
+
border-end-start-radius: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.chat-start .chat-bubble:before {
|
|
84
|
+
transform: rotateY(0deg);
|
|
85
|
+
inset-inline-start: -0.75rem;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
[dir="rtl"] .chat-start .chat-bubble:before {
|
|
89
|
+
transform: rotateY(180deg);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.chat-image {
|
|
93
|
+
grid-row: span 2 / span 2;
|
|
94
|
+
align-self: flex-end;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.chat-footer {
|
|
98
|
+
grid-row-start: 3;
|
|
99
|
+
display: flex;
|
|
100
|
+
gap: calc(0.25rem * 1);
|
|
101
|
+
font-size: 0.6875rem;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.chat-header {
|
|
105
|
+
grid-row-start: 1;
|
|
106
|
+
display: flex;
|
|
107
|
+
gap: calc(0.25rem * 1);
|
|
108
|
+
font-size: 0.6875rem;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.chat {
|
|
112
|
+
display: grid;
|
|
113
|
+
grid-auto-rows: min-content;
|
|
114
|
+
column-gap: calc(0.25rem * 3);
|
|
115
|
+
padding-block: calc(0.25rem * 1);
|
|
116
|
+
--mask-chat: url("data:image/svg+xml,%3csvg width='13' height='13' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='black' d='M0 11.5004C0 13.0004 2 13.0004 2 13.0004H12H13V0.00036329L12.5 0C12.5 0 11.977 2.09572 11.8581 2.50033C11.6075 3.35237 10.9149 4.22374 9 5.50036C6 7.50036 0 10.0004 0 11.5004Z'/%3e%3c/svg%3e");
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.chat-bubble-accent {
|
|
120
|
+
background-color: var(--color-accent);
|
|
121
|
+
color: var(--color-accent-content);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.chat-bubble-error {
|
|
125
|
+
background-color: var(--color-error);
|
|
126
|
+
color: var(--color-error-content);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.chat-bubble-info {
|
|
130
|
+
background-color: var(--color-info);
|
|
131
|
+
color: var(--color-info-content);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.chat-bubble-primary {
|
|
135
|
+
background-color: var(--color-primary);
|
|
136
|
+
color: var(--color-primary-content);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.chat-bubble-secondary {
|
|
140
|
+
background-color: var(--color-secondary);
|
|
141
|
+
color: var(--color-secondary-content);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.chat-bubble-success {
|
|
145
|
+
background-color: var(--color-success);
|
|
146
|
+
color: var(--color-success-content);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.chat-bubble-warning {
|
|
150
|
+
background-color: var(--color-warning);
|
|
151
|
+
color: var(--color-warning-content);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "./ChatBubble";
|
|
1
|
+
export { default, type ChatBubbleProps } from "./ChatBubble";
|