@pathscale/ui 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -22
- package/README.md +59 -59
- package/dist/components/_shared/index.js +1 -3
- package/dist/components/_shared/overlayPosition.js +6 -6
- package/dist/components/accordion/Accordion.css +158 -158
- package/dist/components/accordion/Accordion.js +46 -45
- package/dist/components/accordion/index.js +3 -9
- package/dist/components/alert/Alert.css +116 -116
- package/dist/components/alert/Alert.js +34 -33
- package/dist/components/alert/index.js +1 -8
- package/dist/components/auth-card/AuthCard.js +21 -21
- package/dist/components/auth-card/index.js +1 -3
- package/dist/components/auth-error-message/AuthErrorMessage.js +10 -10
- package/dist/components/auth-error-message/index.js +1 -3
- package/dist/components/auth-field-group/AuthFieldGroup.js +9 -9
- package/dist/components/auth-field-group/index.js +1 -3
- package/dist/components/auth-footer-links/AuthFooterLinks.js +21 -21
- package/dist/components/auth-footer-links/index.js +1 -3
- package/dist/components/auth-form/AuthForm.js +11 -11
- package/dist/components/auth-form/index.js +1 -3
- package/dist/components/auth-powered-by/AuthPoweredBy.js +15 -15
- package/dist/components/auth-powered-by/index.js +1 -3
- package/dist/components/auth-submit-button/AuthSubmitButton.js +10 -10
- package/dist/components/auth-submit-button/index.js +1 -3
- package/dist/components/auth-success-message/AuthSuccessMessage.js +12 -12
- package/dist/components/auth-success-message/index.js +1 -3
- package/dist/components/avatar/Avatar.css +124 -124
- package/dist/components/avatar/Avatar.js +28 -27
- package/dist/components/avatar/AvatarGroup.js +11 -11
- package/dist/components/avatar/index.js +1 -6
- package/dist/components/badge/Badge.css +164 -164
- package/dist/components/badge/Badge.js +19 -19
- package/dist/components/badge/index.js +7 -9
- package/dist/components/breadcrumbs/Breadcrumbs.css +63 -63
- package/dist/components/breadcrumbs/Breadcrumbs.js +27 -26
- package/dist/components/breadcrumbs/index.js +1 -5
- package/dist/components/button/Button.css +194 -194
- package/dist/components/button/Button.js +23 -23
- package/dist/components/button/index.js +1 -3
- package/dist/components/button-group/ButtonGroup.css +117 -117
- package/dist/components/button-group/ButtonGroup.js +16 -15
- package/dist/components/button-group/context.js +2 -2
- package/dist/components/button-group/index.js +3 -6
- package/dist/components/calendar/Calendar.css +258 -258
- package/dist/components/calendar/Calendar.js +88 -88
- package/dist/components/calendar/index.js +1 -3
- package/dist/components/card/Card.css +110 -110
- package/dist/components/card/Card.js +23 -22
- package/dist/components/card/index.js +3 -8
- package/dist/components/chatbubble/ChatBubble.css +164 -164
- package/dist/components/chatbubble/ChatBubble.js +20 -20
- package/dist/components/chatbubble/ChatBubbleAvatar.js +9 -9
- package/dist/components/chatbubble/ChatBubbleFooter.js +9 -9
- package/dist/components/chatbubble/ChatBubbleHeader.js +11 -11
- package/dist/components/chatbubble/ChatBubbleMessage.js +12 -12
- package/dist/components/chatbubble/ChatBubbleTime.js +9 -9
- package/dist/components/chatbubble/index.js +1 -3
- package/dist/components/checkbox/Checkbox.css +183 -183
- package/dist/components/checkbox/Checkbox.js +32 -32
- package/dist/components/checkbox/index.js +1 -3
- package/dist/components/checkbox-group/CheckboxGroup.css +10 -10
- package/dist/components/checkbox-group/CheckboxGroup.js +14 -14
- package/dist/components/checkbox-group/context.js +2 -2
- package/dist/components/checkbox-group/index.js +4 -4
- package/dist/components/chip/Chip.css +197 -197
- package/dist/components/chip/Chip.js +32 -32
- package/dist/components/chip/index.js +6 -7
- package/dist/components/close-button/CloseButton.css +81 -81
- package/dist/components/close-button/CloseButton.js +22 -22
- package/dist/components/close-button/index.js +1 -3
- package/dist/components/color-area/ColorArea.css +54 -54
- package/dist/components/color-area/ColorArea.js +16 -16
- package/dist/components/color-area/index.js +3 -3
- package/dist/components/color-field/ColorField.css +88 -88
- package/dist/components/color-field/ColorField.js +21 -21
- package/dist/components/color-field/index.js +3 -3
- package/dist/components/color-picker/ColorPicker.css +28 -28
- package/dist/components/color-picker/ColorPicker.js +46 -45
- package/dist/components/color-picker/index.js +3 -8
- package/dist/components/color-slider/ColorSlider.css +57 -57
- package/dist/components/color-slider/ColorSlider.js +19 -19
- package/dist/components/color-slider/index.js +3 -3
- package/dist/components/color-swatch/ColorSwatch.css +84 -84
- package/dist/components/color-swatch/ColorSwatch.js +12 -12
- package/dist/components/color-swatch/index.js +3 -3
- package/dist/components/color-swatch-picker/ColorSwatchPicker.css +12 -12
- package/dist/components/color-swatch-picker/ColorSwatchPicker.js +16 -15
- package/dist/components/color-swatch-picker/index.js +1 -5
- package/dist/components/color-wheel-flower/ColorWheelFlower.css +147 -147
- package/dist/components/color-wheel-flower/ColorWheelFlower.js +84 -84
- package/dist/components/color-wheel-flower/colorWheelFlowerContext.js +3 -3
- package/dist/components/color-wheel-flower/index.js +2 -6
- package/dist/components/combo-box/ComboBox.css +344 -344
- package/dist/components/combo-box/ComboBox.js +92 -91
- package/dist/components/combo-box/index.js +3 -10
- package/dist/components/date-field/DateField.css +215 -215
- package/dist/components/date-field/DateField.js +45 -44
- package/dist/components/date-field/index.js +3 -11
- package/dist/components/date-picker/DatePicker.css +143 -143
- package/dist/components/date-picker/DatePicker.js +38 -38
- package/dist/components/date-picker/index.js +1 -3
- package/dist/components/date-range-picker/DateRangePicker.css +149 -149
- package/dist/components/date-range-picker/DateRangePicker.js +53 -53
- package/dist/components/date-range-picker/index.js +1 -3
- package/dist/components/description/Description.css +10 -10
- package/dist/components/description/Description.js +11 -10
- package/dist/components/description/index.js +3 -5
- package/dist/components/disclosure/Disclosure.css +84 -84
- package/dist/components/disclosure/Disclosure.js +44 -43
- package/dist/components/disclosure/index.js +4 -9
- package/dist/components/disclosure-group/DisclosureGroup.css +9 -9
- package/dist/components/disclosure-group/DisclosureGroup.js +15 -14
- package/dist/components/disclosure-group/index.js +5 -6
- package/dist/components/disclosure-group/useDisclosureGroupNavigation.js +4 -4
- package/dist/components/drawer/Drawer.context.js +3 -3
- package/dist/components/drawer/Drawer.css +463 -463
- package/dist/components/drawer/Drawer.js +109 -108
- package/dist/components/drawer/index.js +1 -15
- package/dist/components/dropdown/Dropdown.css +211 -211
- package/dist/components/dropdown/Dropdown.js +68 -67
- package/dist/components/dropdown/index.js +3 -4
- package/dist/components/empty-state/EmptyState.css +39 -39
- package/dist/components/empty-state/EmptyState.js +27 -26
- package/dist/components/empty-state/index.js +1 -8
- package/dist/components/error-message/ErrorMessage.css +20 -20
- package/dist/components/error-message/ErrorMessage.js +13 -12
- package/dist/components/error-message/index.js +1 -5
- package/dist/components/field-error/FieldError.css +27 -27
- package/dist/components/field-error/FieldError.js +18 -17
- package/dist/components/field-error/index.js +1 -5
- package/dist/components/fieldset/Fieldset.css +30 -30
- package/dist/components/fieldset/Fieldset.js +23 -22
- package/dist/components/fieldset/index.js +3 -8
- package/dist/components/flex/Flex.css +5 -5
- package/dist/components/flex/Flex.js +14 -14
- package/dist/components/flex/index.js +1 -3
- package/dist/components/floating-dock/FloatingDock.css +208 -208
- package/dist/components/floating-dock/FloatingDock.js +78 -78
- package/dist/components/floating-dock/index.js +1 -3
- package/dist/components/footer/Footer.js +12 -12
- package/dist/components/footer/FooterTitle.js +9 -9
- package/dist/components/footer/footer.css +51 -51
- package/dist/components/footer/index.js +1 -3
- package/dist/components/form/FieldErrorMessage.js +10 -9
- package/dist/components/form/Form.css +5 -5
- package/dist/components/form/Form.js +18 -17
- package/dist/components/form/FormField.js +21 -20
- package/dist/components/form/FormSubmitButton.js +12 -11
- package/dist/components/form/index.js +6 -12
- package/dist/components/glass-panel/GlassPanel.classes.d.ts +3 -0
- package/dist/components/glass-panel/GlassPanel.classes.js +3 -0
- package/dist/components/glass-panel/GlassPanel.css +359 -282
- package/dist/components/glass-panel/GlassPanel.d.ts +3 -0
- package/dist/components/glass-panel/GlassPanel.js +30 -27
- package/dist/components/glass-panel/index.js +1 -3
- package/dist/components/glow-card/GlowCard.css +100 -100
- package/dist/components/glow-card/GlowCard.js +11 -11
- package/dist/components/glow-card/index.js +1 -3
- package/dist/components/grid/Grid.css +5 -5
- package/dist/components/grid/Grid.js +15 -15
- package/dist/components/grid/index.js +1 -3
- package/dist/components/header/Header.css +13 -13
- package/dist/components/header/Header.js +11 -10
- package/dist/components/header/index.js +3 -5
- package/dist/components/icon/Icon.css +10 -10
- package/dist/components/icon/Icon.js +9 -9
- package/dist/components/icon/index.js +1 -3
- package/dist/components/immersive-landing/ImmersiveLanding.css +565 -565
- package/dist/components/immersive-landing/ImmersiveLanding.js +45 -45
- package/dist/components/immersive-landing/ImmersiveLandingArrows.js +18 -18
- package/dist/components/immersive-landing/ImmersiveLandingContext.js +3 -3
- package/dist/components/immersive-landing/ImmersiveLandingNavigation.js +34 -34
- package/dist/components/immersive-landing/ImmersiveLandingPage.js +16 -16
- package/dist/components/immersive-landing/components/CookieConsent.js +71 -71
- package/dist/components/immersive-landing/components/FirefoxPWABanner.js +42 -42
- package/dist/components/immersive-landing/components/PWAInstallPrompt.js +40 -40
- package/dist/components/immersive-landing/index.js +6 -14
- package/dist/components/immersive-landing/useImmersiveLanding.js +8 -8
- package/dist/components/input/Input.css +155 -155
- package/dist/components/input/Input.js +46 -46
- package/dist/components/input/index.js +3 -3
- package/dist/components/input-group/InputGroup.css +172 -172
- package/dist/components/input-group/InputGroup.js +32 -31
- package/dist/components/input-group/index.js +3 -9
- package/dist/components/input-otp/InputOTP.css +170 -170
- package/dist/components/input-otp/InputOTP.js +52 -51
- package/dist/components/input-otp/index.js +1 -11
- package/dist/components/join/Join.js +15 -15
- package/dist/components/join/index.js +1 -3
- package/dist/components/kbd/Kbd.css +60 -60
- package/dist/components/kbd/Kbd.js +39 -38
- package/dist/components/kbd/index.js +1 -8
- package/dist/components/label/Label.css +30 -30
- package/dist/components/label/Label.js +11 -10
- package/dist/components/label/index.js +3 -5
- package/dist/components/language-switcher/LanguageSwitcher.css +56 -56
- package/dist/components/language-switcher/LanguageSwitcher.js +24 -24
- package/dist/components/language-switcher/createI18n.js +10 -10
- package/dist/components/language-switcher/index.js +2 -8
- package/dist/components/link/Link.css +131 -131
- package/dist/components/link/Link.js +21 -20
- package/dist/components/link/index.js +1 -5
- package/dist/components/list-box/ListBox.css +148 -148
- package/dist/components/list-box/ListBox.js +19 -18
- package/dist/components/list-box/ListBoxItem.js +31 -30
- package/dist/components/list-box/ListBoxSection.js +15 -14
- package/dist/components/list-box/context.js +2 -2
- package/dist/components/list-box/index.js +11 -16
- package/dist/components/live-chat/LiveChat.css +324 -324
- package/dist/components/live-chat/LiveChatBubble.js +28 -28
- package/dist/components/live-chat/LiveChatPanel.js +67 -67
- package/dist/components/live-chat/index.js +2 -5
- package/dist/components/menu/Menu.css +199 -199
- package/dist/components/menu/Menu.js +24 -28
- package/dist/components/menu/MenuItem.js +37 -36
- package/dist/components/menu/MenuSection.js +15 -14
- package/dist/components/menu/context.js +2 -2
- package/dist/components/menu/index.js +4 -12
- package/dist/components/meter/Meter.css +89 -89
- package/dist/components/meter/Meter.js +35 -34
- package/dist/components/meter/index.js +1 -8
- package/dist/components/modal/Modal.css +320 -320
- package/dist/components/modal/Modal.js +79 -78
- package/dist/components/modal/index.js +1 -13
- package/dist/components/navbar/Navbar.classes.d.ts +9 -0
- package/dist/components/navbar/Navbar.classes.js +9 -0
- package/dist/components/navbar/Navbar.css +110 -110
- package/dist/components/navbar/Navbar.js +16 -16
- package/dist/components/navbar/NavbarRow.js +11 -11
- package/dist/components/navbar/NavbarSection.js +10 -10
- package/dist/components/navbar/NavbarStack.js +11 -11
- package/dist/components/navbar/index.js +1 -3
- package/dist/components/noise-background/NoiseBackground.css +66 -66
- package/dist/components/noise-background/NoiseBackground.js +33 -33
- package/dist/components/noise-background/index.js +1 -3
- package/dist/components/number-field/NumberField.css +198 -198
- package/dist/components/number-field/NumberField.js +43 -42
- package/dist/components/number-field/index.js +1 -9
- package/dist/components/pagination/Pagination.css +121 -121
- package/dist/components/pagination/Pagination.js +32 -32
- package/dist/components/pagination/index.js +1 -3
- package/dist/components/password-field/PasswordField.js +18 -17
- package/dist/components/password-field/index.js +1 -3
- package/dist/components/password-requirements/PasswordRequirements.js +22 -22
- package/dist/components/password-requirements/index.js +1 -3
- package/dist/components/password-rules/index.js +1 -4
- package/dist/components/popover/Popover.css +117 -117
- package/dist/components/popover/Popover.js +52 -51
- package/dist/components/popover/index.js +4 -9
- package/dist/components/progress-bar/ProgressBar.css +104 -104
- package/dist/components/progress-bar/ProgressBar.js +28 -28
- package/dist/components/progress-bar/index.js +1 -3
- package/dist/components/progress-circle/ProgressCircle.css +82 -82
- package/dist/components/progress-circle/ProgressCircle.js +30 -30
- package/dist/components/progress-circle/index.js +1 -3
- package/dist/components/radio/Radio.css +129 -129
- package/dist/components/radio/Radio.js +28 -28
- package/dist/components/radio/index.js +1 -3
- package/dist/components/radio-group/RadioGroup.css +58 -58
- package/dist/components/radio-group/RadioGroup.js +31 -31
- package/dist/components/radio-group/context.js +2 -2
- package/dist/components/radio-group/index.js +4 -4
- package/dist/components/range-calendar/RangeCalendar.css +51 -51
- package/dist/components/range-calendar/RangeCalendar.js +18 -18
- package/dist/components/range-calendar/index.js +1 -3
- package/dist/components/scroll-shadow/ScrollShadow.css +93 -93
- package/dist/components/scroll-shadow/ScrollShadow.js +17 -17
- package/dist/components/scroll-shadow/index.js +1 -3
- package/dist/components/scroll-shadow/useScrollShadow.js +4 -4
- package/dist/components/search-field/SearchField.css +183 -183
- package/dist/components/search-field/SearchField.js +42 -41
- package/dist/components/search-field/index.js +1 -9
- package/dist/components/select/Select.css +284 -284
- package/dist/components/select/Select.js +130 -130
- package/dist/components/select/index.js +1 -3
- package/dist/components/separator/Separator.css +35 -35
- package/dist/components/separator/Separator.js +12 -11
- package/dist/components/separator/index.js +1 -4
- package/dist/components/size-picker/SizePicker.js +17 -17
- package/dist/components/size-picker/index.js +2 -6
- package/dist/components/size-picker/sizeStore.js +5 -5
- package/dist/components/skeleton/Skeleton.css +95 -95
- package/dist/components/skeleton/Skeleton.js +9 -9
- package/dist/components/skeleton/index.js +1 -3
- package/dist/components/slider/Slider.css +122 -122
- package/dist/components/slider/Slider.js +27 -27
- package/dist/components/slider/index.js +1 -3
- package/dist/components/spinner/Spinner.css +131 -131
- package/dist/components/spinner/Spinner.js +17 -17
- package/dist/components/spinner/index.js +1 -5
- package/dist/components/surface/Surface.css +37 -37
- package/dist/components/surface/Surface.js +11 -10
- package/dist/components/surface/index.js +1 -4
- package/dist/components/table/ExpandToggle.js +14 -14
- package/dist/components/table/InlineConfirm.js +12 -12
- package/dist/components/table/MobileListView.js +24 -24
- package/dist/components/table/SortIcon.js +11 -11
- package/dist/components/table/Table.css +426 -426
- package/dist/components/table/Table.js +82 -81
- package/dist/components/table/VirtualSpacerRow.js +9 -9
- package/dist/components/table/index.js +7 -38
- package/dist/components/tabs/Tabs.css +203 -203
- package/dist/components/tabs/Tabs.js +62 -61
- package/dist/components/tabs/index.js +1 -4
- package/dist/components/tag/Tag.css +121 -121
- package/dist/components/tag/Tag.js +41 -40
- package/dist/components/tag/index.js +3 -6
- package/dist/components/tag-group/TagGroup.css +22 -22
- package/dist/components/tag-group/TagGroup.js +24 -23
- package/dist/components/tag-group/context.js +2 -2
- package/dist/components/tag-group/index.js +1 -6
- package/dist/components/text/Text.css +66 -66
- package/dist/components/text/Text.js +11 -10
- package/dist/components/text/index.js +1 -5
- package/dist/components/text-area/TextArea.css +95 -95
- package/dist/components/text-area/TextArea.js +14 -13
- package/dist/components/text-area/index.js +1 -5
- package/dist/components/text-field/TextField.css +33 -33
- package/dist/components/text-field/TextField.js +14 -13
- package/dist/components/text-field/index.js +3 -7
- package/dist/components/textarea/Textarea.js +10 -11
- package/dist/components/textarea/index.js +1 -6
- package/dist/components/theme-color-picker/ThemeColorPicker.js +52 -52
- package/dist/components/theme-color-picker/hueShift.js +8 -8
- package/dist/components/theme-color-picker/index.js +2 -7
- package/dist/components/time-field/TimeField.css +215 -215
- package/dist/components/time-field/TimeField.js +43 -42
- package/dist/components/time-field/index.js +3 -11
- package/dist/components/toast/Toast.css +344 -344
- package/dist/components/toast/Toast.js +101 -100
- package/dist/components/toast/index.js +1 -19
- package/dist/components/toggle/Toggle.css +237 -237
- package/dist/components/toggle/Toggle.js +31 -31
- package/dist/components/toggle/index.js +1 -3
- package/dist/components/toolbar/Toolbar.css +55 -55
- package/dist/components/toolbar/Toolbar.js +12 -11
- package/dist/components/toolbar/index.js +1 -5
- package/dist/components/tooltip/Tooltip.css +153 -153
- package/dist/components/tooltip/Tooltip.js +40 -39
- package/dist/components/tooltip/index.js +1 -7
- package/dist/components/utils.js +6 -7
- package/dist/components/video-preview/VideoPreview.js +14 -13
- package/dist/components/video-preview/index.js +1 -3
- package/dist/hooks/date/useCalendarNavigation.js +18 -18
- package/dist/hooks/date/useCalendarState.js +19 -19
- package/dist/hooks/date/useDateSelection.js +7 -7
- package/dist/hooks/date/usePickerOpenState.js +8 -8
- package/dist/hooks/date/useRangeSelection.js +16 -16
- package/dist/hooks/form/FormContext.js +3 -3
- package/dist/hooks/form/createForm.js +4 -4
- package/dist/hooks/form/index.js +4 -10
- package/dist/hooks/form/useFieldNew.js +10 -10
- package/dist/hooks/layout/index.js +1 -3
- package/dist/hooks/layout/useDesktop.js +4 -4
- package/dist/hooks/table/index.js +8 -18
- package/dist/hooks/table/useAnchoredOverlayPosition.js +5 -5
- package/dist/hooks/table/useTableExpansion.js +4 -4
- package/dist/hooks/table/useTableFiltering.js +8 -8
- package/dist/hooks/table/useTableModel.js +10 -10
- package/dist/hooks/table/useTablePagination.js +4 -4
- package/dist/hooks/table/useTableSelection.js +4 -4
- package/dist/hooks/table/useTableSorting.js +6 -6
- package/dist/index.css +74 -74
- package/dist/index.js +108 -398
- package/dist/lib/refs/index.js +1 -3
- package/dist/lib/refs/mergeRefs.js +2 -2
- package/dist/lib/style/index.js +1 -4
- package/dist/lib/tag/createIsButton.js +4 -4
- package/dist/lib/tag/createTagName.js +2 -2
- package/dist/lib/tag/index.js +2 -7
- package/dist/motion/engine.js +4 -4
- package/dist/motion/index.js +10 -39
- package/dist/motion/popmotion.js +2 -2
- package/dist/motion/presets.js +4 -4
- package/dist/motion/route.js +7 -7
- package/dist/motion/solid/AnimatedCollapse.js +27 -26
- package/dist/motion/solid/MotionDiv.js +17 -16
- package/dist/motion/solid/Presence.js +13 -12
- package/dist/motion/solid/index.js +3 -10
- package/dist/motion/system.js +9 -9
- package/dist/primitives/streaming/index.js +2 -5
- package/dist/primitives/streaming/useStreamingBuffer.js +2 -2
- package/dist/primitives/streaming/useStreamingSubscription.js +7 -7
- package/dist/primitives/virtualizer/index.js +1 -3
- package/dist/primitives/virtualizer/useVirtualRows.js +7 -7
- package/dist/purge-manifest.json +15350 -15141
- package/dist/styles/base/index.css +43 -43
- package/dist/styles/icons/generated-icons.css +1 -173
- package/dist/styles/themes/dark.css +141 -141
- package/dist/styles/themes/light.css +143 -143
- package/package.json +31 -31
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Portal, createComponent, insert, mergeProps, spread, template, use } from "solid-js/web";
|
|
2
2
|
import "./Dropdown.css";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
var _tmpl$ = /*#__PURE__*/
|
|
8
|
-
const DropdownContext =
|
|
3
|
+
import { Show, createContext, createEffect, createSignal, createUniqueId, onCleanup, onMount, splitProps, useContext } from "solid-js";
|
|
4
|
+
import { twMerge } from "tailwind-merge";
|
|
5
|
+
import { createOverlayPosition } from "../_shared/overlayPosition.js";
|
|
6
|
+
import { CLASSES } from "./Dropdown.classes.js";
|
|
7
|
+
var _tmpl$ = /*#__PURE__*/ template("<div>"), _tmpl$2 = /*#__PURE__*/ template("<button>"), _tmpl$3 = /*#__PURE__*/ template("<div><div>");
|
|
8
|
+
const DropdownContext = createContext();
|
|
9
9
|
const invokeEventHandler = (handler, event)=>{
|
|
10
10
|
if ("function" == typeof handler) return void handler(event);
|
|
11
11
|
if (Array.isArray(handler) && "function" == typeof handler[0]) handler[0](handler[1], event);
|
|
@@ -20,7 +20,7 @@ const sortItemsByDomOrder = (items)=>[
|
|
|
20
20
|
return 0;
|
|
21
21
|
});
|
|
22
22
|
const DropdownRoot = (props)=>{
|
|
23
|
-
const [local, others] =
|
|
23
|
+
const [local, others] = splitProps(props, [
|
|
24
24
|
"children",
|
|
25
25
|
"class",
|
|
26
26
|
"open",
|
|
@@ -33,16 +33,16 @@ const DropdownRoot = (props)=>{
|
|
|
33
33
|
"className",
|
|
34
34
|
"ref"
|
|
35
35
|
]);
|
|
36
|
-
const baseId =
|
|
36
|
+
const baseId = createUniqueId();
|
|
37
37
|
const triggerId = `${baseId}-trigger`;
|
|
38
38
|
const menuId = `${baseId}-menu`;
|
|
39
|
-
const [internalOpen, setInternalOpen] =
|
|
40
|
-
const [items, setItems] =
|
|
41
|
-
const [focusedKey, setFocusedKey] =
|
|
42
|
-
const [focusRequest, setFocusRequest] =
|
|
43
|
-
const [triggerRef, setTriggerRefSignal] =
|
|
44
|
-
const [menuRef, setMenuRefSignal] =
|
|
45
|
-
const [rootRef, setRootRefSignal] =
|
|
39
|
+
const [internalOpen, setInternalOpen] = createSignal(Boolean(local.defaultOpen));
|
|
40
|
+
const [items, setItems] = createSignal([]);
|
|
41
|
+
const [focusedKey, setFocusedKey] = createSignal(void 0);
|
|
42
|
+
const [focusRequest, setFocusRequest] = createSignal(null);
|
|
43
|
+
const [triggerRef, setTriggerRefSignal] = createSignal(void 0);
|
|
44
|
+
const [menuRef, setMenuRefSignal] = createSignal(void 0);
|
|
45
|
+
const [rootRef, setRootRefSignal] = createSignal(void 0);
|
|
46
46
|
const isControlled = ()=>void 0 !== local.open;
|
|
47
47
|
const isDisabled = ()=>Boolean(local.disabled);
|
|
48
48
|
const open = ()=>isControlled() ? Boolean(local.open) : internalOpen();
|
|
@@ -104,14 +104,14 @@ const DropdownRoot = (props)=>{
|
|
|
104
104
|
setItems((prev)=>prev.filter((item)=>item.key !== key));
|
|
105
105
|
if (focusedKey() === key) setFocusedKey(void 0);
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
createEffect(()=>{
|
|
108
108
|
if (!open()) return;
|
|
109
109
|
const request = focusRequest();
|
|
110
110
|
if (!request) return;
|
|
111
111
|
focusBoundary("first" === request ? "first" : "last");
|
|
112
112
|
setFocusRequest(null);
|
|
113
113
|
});
|
|
114
|
-
|
|
114
|
+
createEffect(()=>{
|
|
115
115
|
const list = items();
|
|
116
116
|
const currentFocused = focusedKey();
|
|
117
117
|
if (currentFocused && !list.some((item)=>item.key === currentFocused)) return void setFocusedKey(void 0);
|
|
@@ -120,7 +120,7 @@ const DropdownRoot = (props)=>{
|
|
|
120
120
|
if (firstEnabled) setFocusedKey(firstEnabled.key);
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
|
-
|
|
123
|
+
onMount(()=>{
|
|
124
124
|
const handlePointerDown = (event)=>{
|
|
125
125
|
if (!open()) return;
|
|
126
126
|
const target = event.target;
|
|
@@ -130,11 +130,11 @@ const DropdownRoot = (props)=>{
|
|
|
130
130
|
setOpen(false);
|
|
131
131
|
};
|
|
132
132
|
document.addEventListener("pointerdown", handlePointerDown);
|
|
133
|
-
|
|
133
|
+
onCleanup(()=>{
|
|
134
134
|
document.removeEventListener("pointerdown", handlePointerDown);
|
|
135
135
|
});
|
|
136
136
|
});
|
|
137
|
-
return
|
|
137
|
+
return createComponent(DropdownContext.Provider, {
|
|
138
138
|
value: {
|
|
139
139
|
open,
|
|
140
140
|
disabled: isDisabled,
|
|
@@ -159,9 +159,9 @@ const DropdownRoot = (props)=>{
|
|
|
159
159
|
},
|
|
160
160
|
get children () {
|
|
161
161
|
var _el$ = _tmpl$();
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
class:
|
|
162
|
+
use(setRootRef, _el$);
|
|
163
|
+
spread(_el$, mergeProps(others, ()=>({
|
|
164
|
+
class: twMerge(CLASSES.base, local.class, local.className)
|
|
165
165
|
}), {
|
|
166
166
|
get ["data-theme"] () {
|
|
167
167
|
return local.dataTheme;
|
|
@@ -171,14 +171,14 @@ const DropdownRoot = (props)=>{
|
|
|
171
171
|
return open() ? "true" : "false";
|
|
172
172
|
}
|
|
173
173
|
}), false, true);
|
|
174
|
-
|
|
174
|
+
insert(_el$, ()=>local.children);
|
|
175
175
|
return _el$;
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
178
|
};
|
|
179
179
|
const DropdownTrigger = (props)=>{
|
|
180
|
-
const ctx =
|
|
181
|
-
const [local, others] =
|
|
180
|
+
const ctx = useContext(DropdownContext);
|
|
181
|
+
const [local, others] = splitProps(props, [
|
|
182
182
|
"class",
|
|
183
183
|
"children",
|
|
184
184
|
"disabled",
|
|
@@ -189,14 +189,14 @@ const DropdownTrigger = (props)=>{
|
|
|
189
189
|
]);
|
|
190
190
|
if (!ctx) return (()=>{
|
|
191
191
|
var _el$2 = _tmpl$2();
|
|
192
|
-
|
|
193
|
-
class:
|
|
192
|
+
spread(_el$2, mergeProps(others, ()=>({
|
|
193
|
+
class: twMerge(CLASSES.slot.trigger, local.class)
|
|
194
194
|
}), {
|
|
195
195
|
get type () {
|
|
196
196
|
return local.type ?? "button";
|
|
197
197
|
}
|
|
198
198
|
}), false, true);
|
|
199
|
-
|
|
199
|
+
insert(_el$2, ()=>local.children);
|
|
200
200
|
return _el$2;
|
|
201
201
|
})();
|
|
202
202
|
const isDisabled = ()=>Boolean(local.disabled) || ctx.disabled();
|
|
@@ -247,8 +247,8 @@ const DropdownTrigger = (props)=>{
|
|
|
247
247
|
};
|
|
248
248
|
return (()=>{
|
|
249
249
|
var _el$3 = _tmpl$2();
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
use(setRef, _el$3);
|
|
251
|
+
spread(_el$3, mergeProps(others, {
|
|
252
252
|
get id () {
|
|
253
253
|
return ctx.triggerId;
|
|
254
254
|
},
|
|
@@ -256,7 +256,7 @@ const DropdownTrigger = (props)=>{
|
|
|
256
256
|
return local.type ?? "button";
|
|
257
257
|
}
|
|
258
258
|
}, ()=>({
|
|
259
|
-
class:
|
|
259
|
+
class: twMerge(CLASSES.slot.trigger, local.class)
|
|
260
260
|
}), {
|
|
261
261
|
"data-slot": "dropdown-trigger",
|
|
262
262
|
"aria-haspopup": "menu",
|
|
@@ -272,13 +272,13 @@ const DropdownTrigger = (props)=>{
|
|
|
272
272
|
onClick: handleClick,
|
|
273
273
|
onKeyDown: handleKeyDown
|
|
274
274
|
}), false, true);
|
|
275
|
-
|
|
275
|
+
insert(_el$3, ()=>local.children);
|
|
276
276
|
return _el$3;
|
|
277
277
|
})();
|
|
278
278
|
};
|
|
279
279
|
const DropdownMenu = (props)=>{
|
|
280
|
-
const ctx =
|
|
281
|
-
const [local, others] =
|
|
280
|
+
const ctx = useContext(DropdownContext);
|
|
281
|
+
const [local, others] = splitProps(props, [
|
|
282
282
|
"class",
|
|
283
283
|
"children",
|
|
284
284
|
"align",
|
|
@@ -291,16 +291,16 @@ const DropdownMenu = (props)=>{
|
|
|
291
291
|
]);
|
|
292
292
|
if (!ctx) return (()=>{
|
|
293
293
|
var _el$4 = _tmpl$3(), _el$5 = _el$4.firstChild;
|
|
294
|
-
|
|
295
|
-
class:
|
|
294
|
+
spread(_el$4, mergeProps(others, ()=>({
|
|
295
|
+
class: twMerge(CLASSES.slot.popover, local.class)
|
|
296
296
|
})), false, true);
|
|
297
|
-
|
|
298
|
-
class:
|
|
297
|
+
spread(_el$5, mergeProps(()=>({
|
|
298
|
+
class: CLASSES.slot.menu
|
|
299
299
|
})), false, true);
|
|
300
|
-
|
|
300
|
+
insert(_el$5, ()=>local.children);
|
|
301
301
|
return _el$4;
|
|
302
302
|
})();
|
|
303
|
-
const overlayPosition =
|
|
303
|
+
const overlayPosition = createOverlayPosition({
|
|
304
304
|
open: ctx.open,
|
|
305
305
|
triggerRef: ctx.triggerRef,
|
|
306
306
|
overlayRef: ctx.menuRef,
|
|
@@ -353,22 +353,22 @@ const DropdownMenu = (props)=>{
|
|
|
353
353
|
...overlayStyle
|
|
354
354
|
};
|
|
355
355
|
};
|
|
356
|
-
return
|
|
356
|
+
return createComponent(Show, {
|
|
357
357
|
get when () {
|
|
358
358
|
return ctx.open();
|
|
359
359
|
},
|
|
360
360
|
get children () {
|
|
361
|
-
return
|
|
361
|
+
return createComponent(Portal, {
|
|
362
362
|
get children () {
|
|
363
363
|
var _el$6 = _tmpl$3(), _el$7 = _el$6.firstChild;
|
|
364
364
|
var _ref$ = ctx.setMenuRef;
|
|
365
|
-
"function" == typeof _ref$ ?
|
|
366
|
-
|
|
365
|
+
"function" == typeof _ref$ ? use(_ref$, _el$6) : ctx.setMenuRef = _el$6;
|
|
366
|
+
spread(_el$6, mergeProps(others, {
|
|
367
367
|
get id () {
|
|
368
368
|
return ctx.menuId;
|
|
369
369
|
}
|
|
370
370
|
}, ()=>({
|
|
371
|
-
class:
|
|
371
|
+
class: twMerge(CLASSES.slot.popover, local.class)
|
|
372
372
|
}), {
|
|
373
373
|
get role () {
|
|
374
374
|
return local.role ?? "menu";
|
|
@@ -391,12 +391,12 @@ const DropdownMenu = (props)=>{
|
|
|
391
391
|
},
|
|
392
392
|
onKeyDown: handleKeyDown
|
|
393
393
|
}), false, true);
|
|
394
|
-
|
|
395
|
-
class:
|
|
394
|
+
spread(_el$7, mergeProps(()=>({
|
|
395
|
+
class: CLASSES.slot.menu
|
|
396
396
|
}), {
|
|
397
397
|
"data-slot": "dropdown-menu"
|
|
398
398
|
}), false, true);
|
|
399
|
-
|
|
399
|
+
insert(_el$7, ()=>local.children);
|
|
400
400
|
return _el$6;
|
|
401
401
|
}
|
|
402
402
|
});
|
|
@@ -404,8 +404,8 @@ const DropdownMenu = (props)=>{
|
|
|
404
404
|
});
|
|
405
405
|
};
|
|
406
406
|
const DropdownItem = (props)=>{
|
|
407
|
-
const ctx =
|
|
408
|
-
const [local, others] =
|
|
407
|
+
const ctx = useContext(DropdownContext);
|
|
408
|
+
const [local, others] = splitProps(props, [
|
|
409
409
|
"class",
|
|
410
410
|
"children",
|
|
411
411
|
"disabled",
|
|
@@ -417,17 +417,17 @@ const DropdownItem = (props)=>{
|
|
|
417
417
|
"role",
|
|
418
418
|
"type"
|
|
419
419
|
]);
|
|
420
|
-
const itemKey =
|
|
420
|
+
const itemKey = createUniqueId();
|
|
421
421
|
let itemRef;
|
|
422
422
|
if (ctx) {
|
|
423
|
-
|
|
423
|
+
onMount(()=>{
|
|
424
424
|
if (itemRef) ctx.registerItem({
|
|
425
425
|
key: itemKey,
|
|
426
426
|
ref: itemRef,
|
|
427
427
|
disabled: Boolean(local.disabled)
|
|
428
428
|
});
|
|
429
429
|
});
|
|
430
|
-
|
|
430
|
+
onCleanup(()=>{
|
|
431
431
|
ctx.unregisterItem(itemKey);
|
|
432
432
|
});
|
|
433
433
|
}
|
|
@@ -456,8 +456,8 @@ const DropdownItem = (props)=>{
|
|
|
456
456
|
};
|
|
457
457
|
return (()=>{
|
|
458
458
|
var _el$8 = _tmpl$2();
|
|
459
|
-
|
|
460
|
-
|
|
459
|
+
use(setRef, _el$8);
|
|
460
|
+
spread(_el$8, mergeProps(others, {
|
|
461
461
|
get type () {
|
|
462
462
|
return local.type ?? "button";
|
|
463
463
|
},
|
|
@@ -465,7 +465,7 @@ const DropdownItem = (props)=>{
|
|
|
465
465
|
return local.role ?? "menuitem";
|
|
466
466
|
}
|
|
467
467
|
}, ()=>({
|
|
468
|
-
class:
|
|
468
|
+
class: twMerge(CLASSES.slot.item, local.class)
|
|
469
469
|
}), {
|
|
470
470
|
"data-slot": "menu-item",
|
|
471
471
|
get ["data-disabled"] () {
|
|
@@ -487,38 +487,38 @@ const DropdownItem = (props)=>{
|
|
|
487
487
|
onMouseEnter: handleMouseEnter,
|
|
488
488
|
onFocus: handleFocus
|
|
489
489
|
}), false, true);
|
|
490
|
-
|
|
490
|
+
insert(_el$8, ()=>local.children);
|
|
491
491
|
return _el$8;
|
|
492
492
|
})();
|
|
493
493
|
};
|
|
494
494
|
const DropdownGroup = (props)=>{
|
|
495
|
-
const [local, others] =
|
|
495
|
+
const [local, others] = splitProps(props, [
|
|
496
496
|
"class",
|
|
497
497
|
"children"
|
|
498
498
|
]);
|
|
499
499
|
return (()=>{
|
|
500
500
|
var _el$9 = _tmpl$();
|
|
501
|
-
|
|
501
|
+
spread(_el$9, mergeProps(others, {
|
|
502
502
|
role: "group"
|
|
503
503
|
}, ()=>({
|
|
504
|
-
class:
|
|
504
|
+
class: twMerge(CLASSES.slot.group, local.class)
|
|
505
505
|
}), {
|
|
506
506
|
"data-slot": "dropdown-group"
|
|
507
507
|
}), false, true);
|
|
508
|
-
|
|
508
|
+
insert(_el$9, ()=>local.children);
|
|
509
509
|
return _el$9;
|
|
510
510
|
})();
|
|
511
511
|
};
|
|
512
512
|
const DropdownSeparator = (props)=>{
|
|
513
|
-
const [local, others] =
|
|
513
|
+
const [local, others] = splitProps(props, [
|
|
514
514
|
"class"
|
|
515
515
|
]);
|
|
516
516
|
return (()=>{
|
|
517
517
|
var _el$0 = _tmpl$();
|
|
518
|
-
|
|
518
|
+
spread(_el$0, mergeProps(others, {
|
|
519
519
|
role: "separator"
|
|
520
520
|
}, ()=>({
|
|
521
|
-
class:
|
|
521
|
+
class: twMerge(CLASSES.slot.separator, local.class)
|
|
522
522
|
}), {
|
|
523
523
|
"data-slot": "separator",
|
|
524
524
|
"aria-orientation": "horizontal"
|
|
@@ -534,4 +534,5 @@ const Dropdown = Object.assign(DropdownRoot, {
|
|
|
534
534
|
Group: DropdownGroup,
|
|
535
535
|
Separator: DropdownSeparator
|
|
536
536
|
});
|
|
537
|
-
export
|
|
537
|
+
export default Dropdown;
|
|
538
|
+
export { Dropdown, DropdownGroup, DropdownItem, DropdownMenu, DropdownRoot, DropdownSeparator, DropdownTrigger };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { __webpack_exports__Dropdown as Dropdown, __webpack_exports__default as default };
|
|
1
|
+
import { Dropdown as external_Dropdown_js_Dropdown } from "./Dropdown.js";
|
|
2
|
+
export default external_Dropdown_js_Dropdown;
|
|
3
|
+
export { external_Dropdown_js_Dropdown as Dropdown };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
.empty-state {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
gap: 0.75rem;
|
|
8
|
-
padding: 3rem 1.5rem;
|
|
9
|
-
text-align: center;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.empty-state__icon {
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
color: color-mix(in oklab, var(--color-base-content) 40%, transparent);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.empty-state__title {
|
|
20
|
-
font-size: 0.875rem;
|
|
21
|
-
font-weight: 600;
|
|
22
|
-
color: var(--color-base-content);
|
|
23
|
-
margin: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.empty-state__description {
|
|
27
|
-
font-size: 0.875rem;
|
|
28
|
-
color: color-mix(in oklab, var(--color-base-content) 60%, transparent);
|
|
29
|
-
max-width: 24rem;
|
|
30
|
-
margin: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.empty-state__actions {
|
|
34
|
-
display: flex;
|
|
35
|
-
align-items: center;
|
|
36
|
-
gap: 0.5rem;
|
|
37
|
-
margin-top: 0.5rem;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
@layer components {
|
|
2
|
+
.empty-state {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
gap: 0.75rem;
|
|
8
|
+
padding: 3rem 1.5rem;
|
|
9
|
+
text-align: center;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.empty-state__icon {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
color: color-mix(in oklab, var(--color-base-content) 40%, transparent);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.empty-state__title {
|
|
20
|
+
font-size: 0.875rem;
|
|
21
|
+
font-weight: 600;
|
|
22
|
+
color: var(--color-base-content);
|
|
23
|
+
margin: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.empty-state__description {
|
|
27
|
+
font-size: 0.875rem;
|
|
28
|
+
color: color-mix(in oklab, var(--color-base-content) 60%, transparent);
|
|
29
|
+
max-width: 24rem;
|
|
30
|
+
margin: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.empty-state__actions {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: 0.5rem;
|
|
37
|
+
margin-top: 0.5rem;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { insert, mergeProps, spread, template } from "solid-js/web";
|
|
2
2
|
import "./EmptyState.css";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
var _tmpl$ = /*#__PURE__*/
|
|
3
|
+
import { splitProps } from "solid-js";
|
|
4
|
+
import { twMerge } from "tailwind-merge";
|
|
5
|
+
import { CLASSES } from "./EmptyState.classes.js";
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template("<div>"), _tmpl$2 = /*#__PURE__*/ template("<h3>"), _tmpl$3 = /*#__PURE__*/ template("<p>");
|
|
7
7
|
const EmptyStateRoot = (props)=>{
|
|
8
|
-
const [local, others] =
|
|
8
|
+
const [local, others] = splitProps(props, [
|
|
9
9
|
"children",
|
|
10
10
|
"class",
|
|
11
11
|
"className",
|
|
@@ -14,10 +14,10 @@ const EmptyStateRoot = (props)=>{
|
|
|
14
14
|
]);
|
|
15
15
|
return (()=>{
|
|
16
16
|
var _el$ = _tmpl$();
|
|
17
|
-
|
|
17
|
+
spread(_el$, mergeProps(others, {
|
|
18
18
|
role: "status"
|
|
19
19
|
}, ()=>({
|
|
20
|
-
class:
|
|
20
|
+
class: twMerge(CLASSES.base, local.class, local.className)
|
|
21
21
|
}), {
|
|
22
22
|
"data-slot": "empty-state",
|
|
23
23
|
get ["data-theme"] () {
|
|
@@ -27,12 +27,12 @@ const EmptyStateRoot = (props)=>{
|
|
|
27
27
|
return local.style;
|
|
28
28
|
}
|
|
29
29
|
}), false, true);
|
|
30
|
-
|
|
30
|
+
insert(_el$, ()=>local.children);
|
|
31
31
|
return _el$;
|
|
32
32
|
})();
|
|
33
33
|
};
|
|
34
34
|
const EmptyStateIcon = (props)=>{
|
|
35
|
-
const [local, others] =
|
|
35
|
+
const [local, others] = splitProps(props, [
|
|
36
36
|
"children",
|
|
37
37
|
"class",
|
|
38
38
|
"className",
|
|
@@ -41,8 +41,8 @@ const EmptyStateIcon = (props)=>{
|
|
|
41
41
|
]);
|
|
42
42
|
return (()=>{
|
|
43
43
|
var _el$2 = _tmpl$();
|
|
44
|
-
|
|
45
|
-
class:
|
|
44
|
+
spread(_el$2, mergeProps(others, ()=>({
|
|
45
|
+
class: twMerge(CLASSES.slot.icon, local.class, local.className)
|
|
46
46
|
}), {
|
|
47
47
|
"data-slot": "empty-state-icon",
|
|
48
48
|
get ["data-theme"] () {
|
|
@@ -53,12 +53,12 @@ const EmptyStateIcon = (props)=>{
|
|
|
53
53
|
},
|
|
54
54
|
"aria-hidden": "true"
|
|
55
55
|
}), false, true);
|
|
56
|
-
|
|
56
|
+
insert(_el$2, ()=>local.children);
|
|
57
57
|
return _el$2;
|
|
58
58
|
})();
|
|
59
59
|
};
|
|
60
60
|
const EmptyStateTitle = (props)=>{
|
|
61
|
-
const [local, others] =
|
|
61
|
+
const [local, others] = splitProps(props, [
|
|
62
62
|
"children",
|
|
63
63
|
"class",
|
|
64
64
|
"className",
|
|
@@ -67,8 +67,8 @@ const EmptyStateTitle = (props)=>{
|
|
|
67
67
|
]);
|
|
68
68
|
return (()=>{
|
|
69
69
|
var _el$3 = _tmpl$2();
|
|
70
|
-
|
|
71
|
-
class:
|
|
70
|
+
spread(_el$3, mergeProps(others, ()=>({
|
|
71
|
+
class: twMerge(CLASSES.slot.title, local.class, local.className)
|
|
72
72
|
}), {
|
|
73
73
|
"data-slot": "empty-state-title",
|
|
74
74
|
get ["data-theme"] () {
|
|
@@ -78,12 +78,12 @@ const EmptyStateTitle = (props)=>{
|
|
|
78
78
|
return local.style;
|
|
79
79
|
}
|
|
80
80
|
}), false, true);
|
|
81
|
-
|
|
81
|
+
insert(_el$3, ()=>local.children);
|
|
82
82
|
return _el$3;
|
|
83
83
|
})();
|
|
84
84
|
};
|
|
85
85
|
const EmptyStateDescription = (props)=>{
|
|
86
|
-
const [local, others] =
|
|
86
|
+
const [local, others] = splitProps(props, [
|
|
87
87
|
"children",
|
|
88
88
|
"class",
|
|
89
89
|
"className",
|
|
@@ -92,8 +92,8 @@ const EmptyStateDescription = (props)=>{
|
|
|
92
92
|
]);
|
|
93
93
|
return (()=>{
|
|
94
94
|
var _el$4 = _tmpl$3();
|
|
95
|
-
|
|
96
|
-
class:
|
|
95
|
+
spread(_el$4, mergeProps(others, ()=>({
|
|
96
|
+
class: twMerge(CLASSES.slot.description, local.class, local.className)
|
|
97
97
|
}), {
|
|
98
98
|
"data-slot": "empty-state-description",
|
|
99
99
|
get ["data-theme"] () {
|
|
@@ -103,12 +103,12 @@ const EmptyStateDescription = (props)=>{
|
|
|
103
103
|
return local.style;
|
|
104
104
|
}
|
|
105
105
|
}), false, true);
|
|
106
|
-
|
|
106
|
+
insert(_el$4, ()=>local.children);
|
|
107
107
|
return _el$4;
|
|
108
108
|
})();
|
|
109
109
|
};
|
|
110
110
|
const EmptyStateActions = (props)=>{
|
|
111
|
-
const [local, others] =
|
|
111
|
+
const [local, others] = splitProps(props, [
|
|
112
112
|
"children",
|
|
113
113
|
"class",
|
|
114
114
|
"className",
|
|
@@ -117,8 +117,8 @@ const EmptyStateActions = (props)=>{
|
|
|
117
117
|
]);
|
|
118
118
|
return (()=>{
|
|
119
119
|
var _el$5 = _tmpl$();
|
|
120
|
-
|
|
121
|
-
class:
|
|
120
|
+
spread(_el$5, mergeProps(others, ()=>({
|
|
121
|
+
class: twMerge(CLASSES.slot.actions, local.class, local.className)
|
|
122
122
|
}), {
|
|
123
123
|
"data-slot": "empty-state-actions",
|
|
124
124
|
get ["data-theme"] () {
|
|
@@ -128,7 +128,7 @@ const EmptyStateActions = (props)=>{
|
|
|
128
128
|
return local.style;
|
|
129
129
|
}
|
|
130
130
|
}), false, true);
|
|
131
|
-
|
|
131
|
+
insert(_el$5, ()=>local.children);
|
|
132
132
|
return _el$5;
|
|
133
133
|
})();
|
|
134
134
|
};
|
|
@@ -140,4 +140,5 @@ const EmptyState = Object.assign(EmptyStateRoot, {
|
|
|
140
140
|
Actions: EmptyStateActions
|
|
141
141
|
});
|
|
142
142
|
const empty_state_EmptyState = EmptyState;
|
|
143
|
-
export
|
|
143
|
+
export default empty_state_EmptyState;
|
|
144
|
+
export { EmptyStateActions, EmptyStateDescription, EmptyStateIcon, EmptyStateRoot, EmptyStateTitle };
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __webpack_exports__EmptyState = __WEBPACK_EXTERNAL_MODULE__EmptyState_js_010733b6__["default"];
|
|
3
|
-
var __webpack_exports__EmptyStateActions = __WEBPACK_EXTERNAL_MODULE__EmptyState_js_010733b6__.EmptyStateActions;
|
|
4
|
-
var __webpack_exports__EmptyStateDescription = __WEBPACK_EXTERNAL_MODULE__EmptyState_js_010733b6__.EmptyStateDescription;
|
|
5
|
-
var __webpack_exports__EmptyStateIcon = __WEBPACK_EXTERNAL_MODULE__EmptyState_js_010733b6__.EmptyStateIcon;
|
|
6
|
-
var __webpack_exports__EmptyStateRoot = __WEBPACK_EXTERNAL_MODULE__EmptyState_js_010733b6__.EmptyStateRoot;
|
|
7
|
-
var __webpack_exports__EmptyStateTitle = __WEBPACK_EXTERNAL_MODULE__EmptyState_js_010733b6__.EmptyStateTitle;
|
|
8
|
-
export { __webpack_exports__EmptyState as EmptyState, __webpack_exports__EmptyStateActions as EmptyStateActions, __webpack_exports__EmptyStateDescription as EmptyStateDescription, __webpack_exports__EmptyStateIcon as EmptyStateIcon, __webpack_exports__EmptyStateRoot as EmptyStateRoot, __webpack_exports__EmptyStateTitle as EmptyStateTitle };
|
|
1
|
+
export { EmptyStateActions, EmptyStateDescription, EmptyStateIcon, EmptyStateRoot, EmptyStateTitle, default as EmptyState } from "./EmptyState.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
.error-message {
|
|
3
|
-
height: auto;
|
|
4
|
-
font-size: 0.75rem;
|
|
5
|
-
line-height: 1rem;
|
|
6
|
-
text-wrap: wrap;
|
|
7
|
-
overflow-wrap: break-word;
|
|
8
|
-
word-break: break-word;
|
|
9
|
-
color: var(--color-danger);
|
|
10
|
-
transition:
|
|
11
|
-
opacity 150ms var(--ease-out),
|
|
12
|
-
height 350ms var(--ease-smooth);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@media (prefers-reduced-motion: reduce) {
|
|
16
|
-
.error-message {
|
|
17
|
-
transition: none;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
@layer components {
|
|
2
|
+
.error-message {
|
|
3
|
+
height: auto;
|
|
4
|
+
font-size: 0.75rem;
|
|
5
|
+
line-height: 1rem;
|
|
6
|
+
text-wrap: wrap;
|
|
7
|
+
overflow-wrap: break-word;
|
|
8
|
+
word-break: break-word;
|
|
9
|
+
color: var(--color-danger);
|
|
10
|
+
transition:
|
|
11
|
+
opacity 150ms var(--ease-out),
|
|
12
|
+
height 350ms var(--ease-smooth);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media (prefers-reduced-motion: reduce) {
|
|
16
|
+
.error-message {
|
|
17
|
+
transition: none;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|