@pathscale/ui 2.5.0 → 2.6.1
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 +5 -5
- package/dist/components/_shared/material.css +115 -0
- package/dist/components/_shared/overlayPosition.d.ts +4 -3
- package/dist/components/accordion/Accordion.generated.d.ts +1 -1
- package/dist/components/accordion/Accordion.generated.js +146 -195
- package/dist/components/accordion/Accordion.recipe.d.ts +1 -1
- package/dist/components/address/Address.generated.d.ts +1 -1
- package/dist/components/address/Address.generated.js +79 -80
- package/dist/components/address/Address.recipe.d.ts +1 -1
- package/dist/components/alert/Alert.generated.d.ts +1 -1
- package/dist/components/alert/Alert.generated.js +71 -73
- package/dist/components/alert/Alert.recipe.d.ts +1 -1
- package/dist/components/auth-card/AuthCard.generated.d.ts +1 -1
- package/dist/components/auth-card/AuthCard.generated.js +14 -14
- package/dist/components/auth-card/AuthCard.recipe.d.ts +1 -1
- package/dist/components/auth-field-group/AuthFieldGroup.generated.d.ts +1 -1
- package/dist/components/auth-field-group/AuthFieldGroup.generated.js +3 -3
- package/dist/components/auth-field-group/AuthFieldGroup.recipe.d.ts +1 -1
- package/dist/components/auth-footer-links/AuthFooterLinks.generated.d.ts +1 -1
- package/dist/components/auth-footer-links/AuthFooterLinks.generated.js +6 -5
- package/dist/components/auth-footer-links/AuthFooterLinks.recipe.d.ts +1 -1
- package/dist/components/auth-message/AuthMessage.generated.d.ts +1 -1
- package/dist/components/auth-message/AuthMessage.generated.js +2 -2
- package/dist/components/auth-message/AuthMessage.recipe.d.ts +1 -1
- package/dist/components/auth-powered-by/AuthPoweredBy.generated.d.ts +1 -1
- package/dist/components/auth-powered-by/AuthPoweredBy.generated.js +7 -6
- package/dist/components/auth-powered-by/AuthPoweredBy.recipe.d.ts +1 -1
- package/dist/components/auth-submit-button/AuthSubmitButton.generated.d.ts +1 -1
- package/dist/components/auth-submit-button/AuthSubmitButton.generated.js +2 -2
- package/dist/components/auth-submit-button/AuthSubmitButton.recipe.d.ts +1 -1
- package/dist/components/avatar/Avatar.generated.d.ts +1 -1
- package/dist/components/avatar/Avatar.generated.js +47 -71
- package/dist/components/avatar/Avatar.recipe.d.ts +1 -1
- package/dist/components/avatar/AvatarGroup.generated.d.ts +1 -1
- package/dist/components/avatar/AvatarGroup.generated.js +9 -13
- package/dist/components/badge/Badge.generated.d.ts +1 -1
- package/dist/components/badge/Badge.generated.js +38 -58
- package/dist/components/badge/Badge.recipe.d.ts +1 -1
- package/dist/components/breadcrumb/Breadcrumb.generated.d.ts +1 -1
- package/dist/components/breadcrumb/Breadcrumb.generated.js +78 -94
- package/dist/components/breadcrumb/Breadcrumb.recipe.d.ts +1 -1
- package/dist/components/button/Button.generated.d.ts +1 -1
- package/dist/components/button/Button.generated.js +5 -5
- package/dist/components/button/Button.interactions.d.ts +2 -2
- package/dist/components/button/Button.interactions.js +1 -1
- package/dist/components/button/Button.recipe.d.ts +1 -1
- package/dist/components/button-group/ButtonGroup.generated.d.ts +1 -1
- package/dist/components/button-group/ButtonGroup.generated.js +34 -51
- package/dist/components/button-group/ButtonGroup.recipe.d.ts +1 -1
- package/dist/components/button-group/context.d.ts +1 -1
- package/dist/components/calendar/Calendar.generated.d.ts +1 -1
- package/dist/components/calendar/Calendar.generated.js +280 -301
- package/dist/components/calendar/Calendar.recipe.d.ts +1 -1
- package/dist/components/card/Card.generated.d.ts +10 -4
- package/dist/components/card/Card.generated.js +53 -51
- package/dist/components/card/Card.recipe.d.ts +4 -4
- package/dist/components/chatbubble/ChatBubble.generated.d.ts +1 -1
- package/dist/components/chatbubble/ChatBubble.generated.js +20 -27
- package/dist/components/chatbubble/ChatBubble.recipe.d.ts +1 -1
- package/dist/components/chatbubble/ChatBubbleAvatar.generated.js +5 -5
- package/dist/components/chatbubble/ChatBubbleFooter.generated.d.ts +1 -1
- package/dist/components/chatbubble/ChatBubbleFooter.generated.js +10 -14
- package/dist/components/chatbubble/ChatBubbleHeader.generated.d.ts +1 -1
- package/dist/components/chatbubble/ChatBubbleHeader.generated.js +10 -14
- package/dist/components/chatbubble/ChatBubbleMessage.generated.d.ts +1 -1
- package/dist/components/chatbubble/ChatBubbleMessage.generated.js +14 -19
- package/dist/components/chatbubble/ChatBubbleTime.generated.d.ts +1 -1
- package/dist/components/chatbubble/ChatBubbleTime.generated.js +10 -14
- package/dist/components/checkbox/Checkbox.generated.d.ts +1 -1
- package/dist/components/checkbox/Checkbox.generated.js +133 -152
- package/dist/components/checkbox/Checkbox.recipe.d.ts +1 -1
- package/dist/components/checkbox-group/CheckboxGroup.generated.d.ts +1 -1
- package/dist/components/checkbox-group/CheckboxGroup.generated.js +21 -35
- package/dist/components/checkbox-group/CheckboxGroup.recipe.d.ts +1 -1
- package/dist/components/checkbox-group/context.d.ts +1 -1
- package/dist/components/chip/Chip.generated.d.ts +1 -1
- package/dist/components/chip/Chip.generated.js +103 -119
- package/dist/components/chip/Chip.recipe.d.ts +1 -1
- package/dist/components/close-button/CloseButton.generated.d.ts +1 -1
- package/dist/components/close-button/CloseButton.generated.js +64 -78
- package/dist/components/close-button/CloseButton.recipe.d.ts +1 -1
- package/dist/components/collapsible/Collapsible.generated.d.ts +1 -1
- package/dist/components/collapsible/Collapsible.generated.js +120 -168
- package/dist/components/collapsible/Collapsible.recipe.d.ts +1 -1
- package/dist/components/color-area/ColorArea.generated.d.ts +1 -1
- package/dist/components/color-area/ColorArea.generated.js +69 -79
- package/dist/components/color-area/ColorArea.recipe.d.ts +1 -1
- package/dist/components/color-field/ColorField.generated.d.ts +1 -1
- package/dist/components/color-field/ColorField.generated.js +68 -84
- package/dist/components/color-field/ColorField.recipe.d.ts +1 -1
- package/dist/components/color-picker/ColorPicker.generated.d.ts +1 -1
- package/dist/components/color-picker/ColorPicker.generated.js +45 -69
- package/dist/components/color-picker/ColorPicker.recipe.d.ts +1 -1
- package/dist/components/color-slider/ColorSlider.generated.d.ts +1 -1
- package/dist/components/color-slider/ColorSlider.generated.js +83 -94
- package/dist/components/color-slider/ColorSlider.recipe.d.ts +1 -1
- package/dist/components/color-swatch/ColorSwatch.generated.d.ts +1 -1
- package/dist/components/color-swatch/ColorSwatch.generated.js +69 -89
- package/dist/components/color-swatch/ColorSwatch.recipe.d.ts +1 -1
- package/dist/components/color-swatch-picker/ColorSwatchPicker.generated.d.ts +3 -2
- package/dist/components/color-swatch-picker/ColorSwatchPicker.generated.js +18 -28
- package/dist/components/color-swatch-picker/ColorSwatchPicker.recipe.d.ts +1 -1
- package/dist/components/color-wheel-flower/ColorWheelFlower.generated.js +243 -250
- package/dist/components/color-wheel-flower/ColorWheelFlower.recipe.d.ts +1 -1
- package/dist/components/combo-box/ComboBox.generated.d.ts +1 -1
- package/dist/components/combo-box/ComboBox.generated.js +334 -406
- package/dist/components/combo-box/ComboBox.recipe.d.ts +1 -1
- package/dist/components/composer/Composer.generated.d.ts +1 -1
- package/dist/components/composer/Composer.generated.js +112 -112
- package/dist/components/composer/Composer.recipe.d.ts +1 -1
- package/dist/components/data-grid/DataGrid.generated.d.ts +1 -1
- package/dist/components/data-grid/DataGrid.generated.js +61 -78
- package/dist/components/data-grid/DataGrid.interactions.d.ts +1 -1
- package/dist/components/data-grid/DataGrid.recipe.d.ts +1 -1
- package/dist/components/data-grid/createDataGrid.d.ts +2 -1
- package/dist/components/data-grid/createDataGrid.js +43 -26
- package/dist/components/data-grid/index.d.ts +1 -1
- package/dist/components/date-field/DateField.generated.d.ts +1 -1
- package/dist/components/date-field/DateField.generated.js +160 -221
- package/dist/components/date-field/DateField.recipe.d.ts +1 -1
- package/dist/components/date-picker/DatePicker.generated.d.ts +1 -1
- package/dist/components/date-picker/DatePicker.generated.js +154 -174
- package/dist/components/date-picker/DatePicker.recipe.d.ts +1 -1
- package/dist/components/date-range-picker/DateRangePicker.generated.d.ts +1 -1
- package/dist/components/date-range-picker/DateRangePicker.generated.js +198 -221
- package/dist/components/date-range-picker/DateRangePicker.recipe.d.ts +1 -1
- package/dist/components/dialog/Dialog.generated.d.ts +12 -2
- package/dist/components/dialog/Dialog.generated.js +224 -320
- package/dist/components/dialog/Dialog.recipe.d.ts +1 -1
- package/dist/components/dock/Dock.generated.d.ts +1 -1
- package/dist/components/dock/Dock.generated.js +358 -391
- package/dist/components/dock/Dock.recipe.d.ts +1 -1
- package/dist/components/drawer/Drawer.context.d.ts +1 -1
- package/dist/components/drawer/Drawer.generated.d.ts +5 -2
- package/dist/components/drawer/Drawer.generated.js +280 -382
- package/dist/components/drawer/Drawer.recipe.d.ts +1 -1
- package/dist/components/dropdown/Dropdown.generated.d.ts +1 -1
- package/dist/components/dropdown/Dropdown.generated.js +146 -199
- package/dist/components/dropdown/Dropdown.recipe.d.ts +1 -1
- package/dist/components/empty/Empty.generated.d.ts +1 -1
- package/dist/components/empty/Empty.generated.js +82 -117
- package/dist/components/empty/Empty.recipe.d.ts +1 -1
- package/dist/components/fieldset/Fieldset.generated.d.ts +1 -1
- package/dist/components/fieldset/Fieldset.generated.js +64 -92
- package/dist/components/fieldset/Fieldset.recipe.d.ts +1 -1
- package/dist/components/flex/Flex.generated.d.ts +1 -1
- package/dist/components/flex/Flex.generated.js +8 -28
- package/dist/components/flex/Flex.recipe.d.ts +1 -1
- package/dist/components/footer/Footer.generated.d.ts +1 -1
- package/dist/components/footer/Footer.generated.js +16 -25
- package/dist/components/footer/Footer.recipe.d.ts +1 -1
- package/dist/components/footer/FooterTitle.generated.d.ts +1 -1
- package/dist/components/footer/FooterTitle.generated.js +16 -22
- package/dist/components/form/FieldErrorMessage.generated.d.ts +1 -1
- package/dist/components/form/FieldErrorMessage.generated.js +4 -4
- package/dist/components/form/Form.generated.d.ts +1 -1
- package/dist/components/form/Form.generated.js +30 -41
- package/dist/components/form/Form.recipe.d.ts +1 -1
- package/dist/components/form/FormField.generated.d.ts +1 -1
- package/dist/components/form/FormField.generated.js +62 -77
- package/dist/components/form/FormSubmitButton.generated.js +14 -24
- package/dist/components/glow-card/GlowCard.generated.d.ts +1 -1
- package/dist/components/glow-card/GlowCard.generated.js +27 -35
- package/dist/components/glow-card/GlowCard.recipe.d.ts +1 -1
- package/dist/components/grid/Grid.generated.d.ts +1 -1
- package/dist/components/grid/Grid.generated.js +9 -19
- package/dist/components/grid/Grid.recipe.d.ts +1 -1
- package/dist/components/header/Header.generated.d.ts +1 -1
- package/dist/components/header/Header.generated.js +19 -26
- package/dist/components/header/Header.recipe.d.ts +1 -1
- package/dist/components/icon/Icon.generated.d.ts +1 -1
- package/dist/components/icon/Icon.generated.js +10 -14
- package/dist/components/icon/Icon.recipe.d.ts +1 -1
- package/dist/components/immersive-landing/ImmersiveLanding.generated.js +57 -78
- package/dist/components/immersive-landing/ImmersiveLanding.recipe.d.ts +1 -1
- package/dist/components/immersive-landing/ImmersiveLandingArrows.generated.js +24 -29
- package/dist/components/immersive-landing/ImmersiveLandingContext.d.ts +1 -1
- package/dist/components/immersive-landing/ImmersiveLandingNavigation.generated.js +111 -122
- package/dist/components/immersive-landing/ImmersiveLandingPage.generated.js +36 -42
- package/dist/components/immersive-landing/components/CookieConsent.js +56 -36
- package/dist/components/immersive-landing/components/FirefoxPWABanner.js +15 -11
- package/dist/components/immersive-landing/components/PWAInstallPrompt.js +17 -11
- package/dist/components/immersive-landing/types.d.ts +2 -1
- package/dist/components/immersive-landing/useImmersiveLanding.js +2 -2
- package/dist/components/input/Input.generated.d.ts +2 -1
- package/dist/components/input/Input.generated.js +129 -177
- package/dist/components/input/Input.recipe.d.ts +1 -1
- package/dist/components/input-otp/InputOTP.generated.d.ts +2 -2
- package/dist/components/input-otp/InputOTP.generated.js +132 -177
- package/dist/components/input-otp/InputOTP.recipe.d.ts +1 -1
- package/dist/components/join/Join.generated.d.ts +1 -1
- package/dist/components/join/Join.generated.js +23 -33
- package/dist/components/join/Join.recipe.d.ts +1 -1
- package/dist/components/kbd/Kbd.generated.d.ts +2 -1
- package/dist/components/kbd/Kbd.generated.js +59 -82
- package/dist/components/kbd/Kbd.recipe.d.ts +1 -1
- package/dist/components/label/Label.generated.d.ts +1 -1
- package/dist/components/label/Label.generated.js +38 -50
- package/dist/components/label/Label.recipe.d.ts +1 -1
- package/dist/components/language-switcher/LanguageSwitcher.generated.js +20 -30
- package/dist/components/language-switcher/LanguageSwitcher.recipe.d.ts +1 -1
- package/dist/components/language-switcher/createI18n.d.ts +4 -3
- package/dist/components/language-switcher/createI18n.js +2 -2
- package/dist/components/link/Link.generated.d.ts +2 -1
- package/dist/components/link/Link.generated.js +77 -99
- package/dist/components/link/Link.recipe.d.ts +1 -1
- package/dist/components/list-box/ListBox.generated.d.ts +1 -1
- package/dist/components/list-box/ListBox.generated.js +30 -49
- package/dist/components/list-box/ListBox.recipe.d.ts +1 -1
- package/dist/components/list-box/ListBoxItem.generated.d.ts +1 -1
- package/dist/components/list-box/ListBoxItem.generated.js +67 -83
- package/dist/components/list-box/ListBoxSection.generated.d.ts +1 -1
- package/dist/components/list-box/ListBoxSection.generated.js +39 -48
- package/dist/components/list-box/context.d.ts +1 -1
- package/dist/components/live-chat/LiveChat.recipe.d.ts +1 -1
- package/dist/components/live-chat/LiveChatBubble.generated.d.ts +1 -1
- package/dist/components/live-chat/LiveChatBubble.generated.js +38 -53
- package/dist/components/live-chat/LiveChatPanel.generated.js +158 -176
- package/dist/components/menu/Menu.generated.d.ts +5 -2
- package/dist/components/menu/Menu.generated.js +33 -47
- package/dist/components/menu/Menu.recipe.d.ts +1 -1
- package/dist/components/menu/MenuItem.generated.d.ts +1 -1
- package/dist/components/menu/MenuItem.generated.js +95 -119
- package/dist/components/menu/MenuSection.generated.d.ts +1 -1
- package/dist/components/menu/MenuSection.generated.js +39 -48
- package/dist/components/menu/context.d.ts +1 -1
- package/dist/components/metal-border/MetalBorder.generated.d.ts +1 -1
- package/dist/components/metal-border/MetalBorder.generated.js +72 -86
- package/dist/components/metal-border/MetalBorder.recipe.d.ts +1 -1
- package/dist/components/meter/Meter.generated.d.ts +1 -1
- package/dist/components/meter/Meter.generated.js +71 -107
- package/dist/components/meter/Meter.recipe.d.ts +1 -1
- package/dist/components/navbar/Navbar.generated.d.ts +5 -2
- package/dist/components/navbar/Navbar.generated.js +14 -16
- package/dist/components/navbar/Navbar.recipe.d.ts +1 -1
- package/dist/components/navbar/NavbarRow.generated.d.ts +1 -1
- package/dist/components/navbar/NavbarRow.generated.js +21 -32
- package/dist/components/navbar/NavbarSection.generated.d.ts +1 -1
- package/dist/components/navbar/NavbarSection.generated.js +20 -28
- package/dist/components/navbar/NavbarStack.generated.d.ts +1 -1
- package/dist/components/navbar/NavbarStack.generated.js +20 -29
- package/dist/components/noise-background/NoiseBackground.generated.d.ts +1 -1
- package/dist/components/noise-background/NoiseBackground.generated.js +85 -100
- package/dist/components/noise-background/NoiseBackground.recipe.d.ts +1 -1
- package/dist/components/pagination/Pagination.generated.d.ts +1 -1
- package/dist/components/pagination/Pagination.generated.js +114 -117
- package/dist/components/pagination/Pagination.recipe.d.ts +1 -1
- package/dist/components/password-field/PasswordField.generated.d.ts +1 -1
- package/dist/components/password-field/PasswordField.generated.js +56 -58
- package/dist/components/password-field/PasswordField.interactions.d.ts +1 -1
- package/dist/components/password-field/PasswordField.interactions.js +1 -1
- package/dist/components/password-field/PasswordField.recipe.d.ts +1 -1
- package/dist/components/password-requirements/PasswordRequirements.generated.d.ts +1 -1
- package/dist/components/password-requirements/PasswordRequirements.generated.js +8 -8
- package/dist/components/password-requirements/PasswordRequirements.recipe.d.ts +1 -1
- package/dist/components/popover/Popover.generated.d.ts +5 -2
- package/dist/components/popover/Popover.generated.js +123 -170
- package/dist/components/popover/Popover.recipe.d.ts +1 -1
- package/dist/components/progress/Progress.generated.d.ts +1 -1
- package/dist/components/progress/Progress.generated.js +82 -98
- package/dist/components/progress/Progress.recipe.d.ts +1 -1
- package/dist/components/radial-progress/RadialProgress.generated.d.ts +1 -1
- package/dist/components/radial-progress/RadialProgress.generated.js +74 -89
- package/dist/components/radial-progress/RadialProgress.recipe.d.ts +1 -1
- package/dist/components/radio/Radio.generated.d.ts +1 -1
- package/dist/components/radio/Radio.generated.js +110 -126
- package/dist/components/radio/Radio.recipe.d.ts +1 -1
- package/dist/components/radio-group/RadioGroup.generated.d.ts +1 -1
- package/dist/components/radio-group/RadioGroup.generated.js +46 -61
- package/dist/components/radio-group/RadioGroup.recipe.d.ts +1 -1
- package/dist/components/radio-group/context.d.ts +1 -1
- package/dist/components/range-calendar/RangeCalendar.generated.d.ts +1 -1
- package/dist/components/range-calendar/RangeCalendar.generated.js +72 -92
- package/dist/components/range-calendar/RangeCalendar.recipe.d.ts +1 -1
- package/dist/components/scroll-area/ScrollArea.generated.d.ts +1 -1
- package/dist/components/scroll-area/ScrollArea.generated.js +37 -53
- package/dist/components/scroll-area/ScrollArea.recipe.d.ts +1 -1
- package/dist/components/select/Select.generated.d.ts +2 -1
- package/dist/components/select/Select.generated.js +326 -404
- package/dist/components/select/Select.recipe.d.ts +1 -1
- package/dist/components/separator/Separator.generated.d.ts +1 -1
- package/dist/components/separator/Separator.generated.js +33 -42
- package/dist/components/separator/Separator.recipe.d.ts +1 -1
- package/dist/components/size-picker/SizePicker.generated.js +41 -50
- package/dist/components/size-picker/SizePicker.recipe.d.ts +1 -1
- package/dist/components/skeleton/Skeleton.generated.d.ts +1 -1
- package/dist/components/skeleton/Skeleton.generated.js +8 -7
- package/dist/components/skeleton/Skeleton.recipe.d.ts +1 -1
- package/dist/components/slider/Slider.generated.d.ts +1 -1
- package/dist/components/slider/Slider.generated.js +147 -163
- package/dist/components/slider/Slider.recipe.d.ts +1 -1
- package/dist/components/spinner/Spinner.generated.d.ts +1 -1
- package/dist/components/spinner/Spinner.generated.js +9 -11
- package/dist/components/spinner/Spinner.recipe.d.ts +1 -1
- package/dist/components/status/status.d.ts +1 -1
- package/dist/components/switch/Switch.generated.d.ts +1 -1
- package/dist/components/switch/Switch.generated.js +113 -128
- package/dist/components/switch/Switch.recipe.d.ts +1 -1
- package/dist/components/table/ExpandToggle.generated.d.ts +1 -1
- package/dist/components/table/ExpandToggle.generated.js +67 -78
- package/dist/components/table/InlineConfirm.generated.js +54 -67
- package/dist/components/table/MobileListView.generated.d.ts +1 -1
- package/dist/components/table/MobileListView.generated.js +60 -73
- package/dist/components/table/SortIcon.generated.d.ts +1 -1
- package/dist/components/table/SortIcon.generated.js +46 -56
- package/dist/components/table/Table.context.d.ts +4 -3
- package/dist/components/table/Table.context.js +8 -16
- package/dist/components/table/Table.recipe.d.ts +20 -20
- package/dist/components/table/TableBody.generated.d.ts +1 -1
- package/dist/components/table/TableBody.generated.js +16 -22
- package/dist/components/table/TableCell.generated.d.ts +1 -1
- package/dist/components/table/TableCell.generated.js +16 -22
- package/dist/components/table/TableColumn.generated.d.ts +1 -1
- package/dist/components/table/TableColumn.generated.js +40 -51
- package/dist/components/table/TableColumnResizer.generated.d.ts +1 -1
- package/dist/components/table/TableColumnResizer.generated.js +23 -31
- package/dist/components/table/TableContent.generated.d.ts +1 -1
- package/dist/components/table/TableContent.generated.js +14 -20
- package/dist/components/table/TableExpandedRow.generated.d.ts +2 -2
- package/dist/components/table/TableExpandedRow.generated.js +12 -20
- package/dist/components/table/TableFooter.generated.d.ts +1 -1
- package/dist/components/table/TableFooter.generated.js +16 -22
- package/dist/components/table/TableHeader.generated.d.ts +1 -1
- package/dist/components/table/TableHeader.generated.js +16 -22
- package/dist/components/table/TableLoadMore.generated.d.ts +1 -1
- package/dist/components/table/TableLoadMore.generated.js +16 -22
- package/dist/components/table/TableLoadMoreContent.generated.d.ts +1 -1
- package/dist/components/table/TableLoadMoreContent.generated.js +16 -22
- package/dist/components/table/TablePageSize.generated.d.ts +1 -1
- package/dist/components/table/TablePageSize.generated.js +35 -46
- package/dist/components/table/TableResizableContainer.generated.d.ts +1 -1
- package/dist/components/table/TableResizableContainer.generated.js +16 -22
- package/dist/components/table/TableRoot.generated.d.ts +1 -1
- package/dist/components/table/TableRoot.generated.js +11 -16
- package/dist/components/table/TableRow.generated.d.ts +1 -1
- package/dist/components/table/TableRow.generated.js +16 -22
- package/dist/components/table/TableScrollContainer.generated.d.ts +1 -1
- package/dist/components/table/TableScrollContainer.generated.js +16 -22
- package/dist/components/table/VirtualSpacerRow.generated.d.ts +1 -1
- package/dist/components/table/VirtualSpacerRow.generated.js +23 -28
- package/dist/components/table/index.d.ts +2 -2
- package/dist/components/table/index.js +1 -1
- package/dist/components/tabs/Tabs.generated.d.ts +1 -1
- package/dist/components/tabs/Tabs.generated.js +156 -194
- package/dist/components/tabs/Tabs.recipe.d.ts +1 -1
- package/dist/components/text/Text.generated.d.ts +1 -1
- package/dist/components/text/Text.generated.js +42 -56
- package/dist/components/text/Text.recipe.d.ts +1 -1
- package/dist/components/textarea/Textarea.generated.d.ts +1 -1
- package/dist/components/textarea/Textarea.generated.js +38 -49
- package/dist/components/textarea/Textarea.recipe.d.ts +1 -1
- package/dist/components/theme-color-picker/ThemeColorPicker.generated.d.ts +1 -1
- package/dist/components/theme-color-picker/ThemeColorPicker.generated.js +36 -46
- package/dist/components/theme-color-picker/ThemeColorPicker.recipe.d.ts +1 -1
- package/dist/components/theme-color-picker/hueShift.js +8 -5
- package/dist/components/time-field/TimeField.generated.d.ts +1 -1
- package/dist/components/time-field/TimeField.generated.js +160 -221
- package/dist/components/time-field/TimeField.recipe.d.ts +1 -1
- package/dist/components/toast/Toast.generated.d.ts +2 -1
- package/dist/components/toast/Toast.generated.js +234 -306
- package/dist/components/toast/Toast.recipe.d.ts +1 -1
- package/dist/components/toolbar/Toolbar.generated.d.ts +1 -1
- package/dist/components/toolbar/Toolbar.generated.js +33 -45
- package/dist/components/toolbar/Toolbar.recipe.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.generated.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.generated.js +86 -125
- package/dist/components/tooltip/Tooltip.recipe.d.ts +1 -1
- package/dist/components/utils.d.ts +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/video-preview/VideoPreview.generated.d.ts +2 -1
- package/dist/components/video-preview/VideoPreview.generated.js +28 -37
- package/dist/components/video-preview/VideoPreview.recipe.d.ts +1 -1
- package/dist/components/vocabulary.d.ts +19 -1
- package/dist/hooks/date/useCalendarNavigation.d.ts +4 -4
- package/dist/hooks/date/useCalendarState.d.ts +6 -6
- package/dist/hooks/date/useDateSelection.d.ts +2 -2
- package/dist/hooks/date/usePickerOpenState.d.ts +2 -2
- package/dist/hooks/date/usePickerOpenState.js +2 -2
- package/dist/hooks/date/useRangeSelection.d.ts +8 -8
- package/dist/hooks/form/FormContext.d.ts +1 -1
- package/dist/hooks/form/createForm.d.ts +41 -31
- package/dist/hooks/form/createForm.js +109 -84
- package/dist/hooks/form/useFieldNew.d.ts +3 -3
- package/dist/hooks/form/useFieldNew.js +6 -15
- package/dist/hooks/layout/useDesktop.d.ts +1 -1
- package/dist/hooks/layout/useDesktop.js +2 -2
- package/dist/hooks/table/index.d.ts +0 -7
- package/dist/hooks/table/index.js +0 -7
- package/dist/hooks/table/useAnchoredOverlayPosition.d.ts +3 -2
- package/dist/index.d.ts +3 -5
- package/dist/index.js +1 -2
- package/dist/layouts.manifest.json +1 -1
- package/dist/lib/layouts/index.d.ts +1 -1
- package/dist/lib/layouts/index.js +1 -1
- package/dist/lib/twMerge.d.ts +21 -0
- package/dist/lib/twMerge.js +12 -0
- package/dist/motion/solid/AnimatedCollapse.d.ts +3 -14
- package/dist/motion/solid/AnimatedCollapse.js +20 -42
- package/dist/motion/solid/MotionDiv.d.ts +2 -1
- package/dist/motion/solid/MotionDiv.js +16 -28
- package/dist/motion/solid/Presence.d.ts +3 -10
- package/dist/motion/solid/Presence.js +2 -15
- package/dist/motion/solid/collapseState.d.ts +14 -0
- package/dist/motion/solid/collapseState.js +22 -0
- package/dist/motion/solid/presenceState.d.ts +9 -0
- package/dist/motion/solid/presenceState.js +15 -0
- package/package.json +13 -33
- package/dist/hooks/table/helpers.d.ts +0 -7
- package/dist/hooks/table/helpers.js +0 -26
- package/dist/hooks/table/useTableExpansion.d.ts +0 -13
- package/dist/hooks/table/useTableExpansion.js +0 -17
- package/dist/hooks/table/useTableFiltering.d.ts +0 -30
- package/dist/hooks/table/useTableFiltering.js +0 -67
- package/dist/hooks/table/useTableModel.d.ts +0 -27
- package/dist/hooks/table/useTableModel.js +0 -56
- package/dist/hooks/table/useTablePagination.d.ts +0 -20
- package/dist/hooks/table/useTablePagination.js +0 -48
- package/dist/hooks/table/useTableSelection.d.ts +0 -14
- package/dist/hooks/table/useTableSelection.js +0 -17
- package/dist/hooks/table/useTableSorting.d.ts +0 -19
- package/dist/hooks/table/useTableSorting.js +0 -21
- package/dist/primitives/virtualizer/index.d.ts +0 -2
- package/dist/primitives/virtualizer/index.js +0 -1
- package/dist/primitives/virtualizer/useVirtualRows.d.ts +0 -18
- package/dist/primitives/virtualizer/useVirtualRows.js +0 -31
|
@@ -65,7 +65,7 @@ export declare const CLASSES: {
|
|
|
65
65
|
readonly icon: "toast__close-icon";
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
|
-
export declare const componentRecipe: import("solid-layouts").Recipe<{
|
|
68
|
+
export declare const componentRecipe: import("solid-layouts/solid-2").Recipe<{
|
|
69
69
|
readonly component: "toast";
|
|
70
70
|
readonly slots: {
|
|
71
71
|
readonly root: {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Component as __LayoutComponent } from "solid-js";
|
|
2
2
|
import "./Toolbar.css";
|
|
3
|
-
import {
|
|
3
|
+
import type { JSX } from "@solidjs/web";
|
|
4
4
|
import type { UIBaseProps } from "../vocabulary";
|
|
5
5
|
export type ToolbarOrientation = "horizontal" | "vertical";
|
|
6
6
|
export type ToolbarRootProps = UIBaseProps & JSX.HTMLAttributes<HTMLDivElement> & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { insert, mergeProps, spread, template
|
|
2
|
-
import { defineComponent } from "solid-layouts/application-boundary";
|
|
1
|
+
import { insert, mergeProps, ref, spread, template } from "@solidjs/web";
|
|
2
|
+
import { defineComponent } from "solid-layouts/solid-2/application-boundary";
|
|
3
3
|
import "./Toolbar.css";
|
|
4
|
-
import {
|
|
5
|
-
import { twMerge } from "
|
|
4
|
+
import { omit } from "solid-js";
|
|
5
|
+
import { twMerge } from "../../lib/twMerge.js";
|
|
6
6
|
import { CLASSES, componentRecipe } from "./Toolbar.recipe.js";
|
|
7
7
|
var _tmpl$ = /*#__PURE__*/ template("<div>");
|
|
8
8
|
const FOCUSABLE_SELECTOR = 'button:not([disabled]), a[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]), [contenteditable="true"]';
|
|
@@ -18,21 +18,11 @@ const isTypingContext = (target)=>{
|
|
|
18
18
|
};
|
|
19
19
|
const getFocusableElements = (root)=>Array.from(root.querySelectorAll(FOCUSABLE_SELECTOR)).filter(isFocusableElement);
|
|
20
20
|
const __solidLayoutToolbarRoot = (_stable, p)=>{
|
|
21
|
-
const
|
|
22
|
-
"children",
|
|
23
|
-
"class",
|
|
24
|
-
"dataTheme",
|
|
25
|
-
"style",
|
|
26
|
-
"orientation",
|
|
27
|
-
"isAttached",
|
|
28
|
-
"onKeyDown",
|
|
29
|
-
"role",
|
|
30
|
-
"ref"
|
|
31
|
-
]);
|
|
21
|
+
const others = omit(p, "children", "class", "dataTheme", "style", "orientation", "isAttached", "onKeyDown", "role", "ref");
|
|
32
22
|
let rootRef;
|
|
33
|
-
const orientation = ()=>
|
|
23
|
+
const orientation = ()=>p.orientation ?? "horizontal";
|
|
34
24
|
const handleKeyDown = (event)=>{
|
|
35
|
-
if ("function" == typeof
|
|
25
|
+
if ("function" == typeof p.onKeyDown) p.onKeyDown(event);
|
|
36
26
|
if (event.defaultPrevented) return;
|
|
37
27
|
if (isTypingContext(event.target)) return;
|
|
38
28
|
const currentRoot = rootRef;
|
|
@@ -58,36 +48,34 @@ const __solidLayoutToolbarRoot = (_stable, p)=>{
|
|
|
58
48
|
event.preventDefault();
|
|
59
49
|
focusable[nextIndex]?.focus();
|
|
60
50
|
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
use((el)=>{
|
|
51
|
+
var _el$ = _tmpl$();
|
|
52
|
+
ref(()=>(el)=>{
|
|
64
53
|
rootRef = el;
|
|
65
|
-
if ("function" == typeof
|
|
54
|
+
if ("function" == typeof p.ref) p.ref(el);
|
|
66
55
|
}, _el$);
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
})();
|
|
56
|
+
spread(_el$, mergeProps(others, {
|
|
57
|
+
get role () {
|
|
58
|
+
return p.role ?? "toolbar";
|
|
59
|
+
},
|
|
60
|
+
get ["aria-orientation"] () {
|
|
61
|
+
return orientation();
|
|
62
|
+
},
|
|
63
|
+
"data-slot": "toolbar",
|
|
64
|
+
get ["data-orientation"] () {
|
|
65
|
+
return orientation();
|
|
66
|
+
},
|
|
67
|
+
get ["data-theme"] () {
|
|
68
|
+
return p.dataTheme;
|
|
69
|
+
},
|
|
70
|
+
get style () {
|
|
71
|
+
return p.style;
|
|
72
|
+
},
|
|
73
|
+
onKeyDown: handleKeyDown
|
|
74
|
+
}, ()=>({
|
|
75
|
+
class: twMerge(CLASSES.base, CLASSES.orientation[orientation()], p.isAttached && CLASSES.flag.attached, p.class)
|
|
76
|
+
})), true);
|
|
77
|
+
insert(_el$, ()=>p.children);
|
|
78
|
+
return _el$;
|
|
91
79
|
};
|
|
92
80
|
const ToolbarRoot = defineComponent({
|
|
93
81
|
recipe: componentRecipe,
|
|
@@ -8,7 +8,7 @@ export declare const CLASSES: {
|
|
|
8
8
|
readonly attached: "toolbar--attached";
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
export declare const componentRecipe: import("solid-layouts").Recipe<{
|
|
11
|
+
export declare const componentRecipe: import("solid-layouts/solid-2").Recipe<{
|
|
12
12
|
readonly component: "toolbar";
|
|
13
13
|
readonly slots: {
|
|
14
14
|
readonly root: {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Component as __LayoutComponent } from "solid-js";
|
|
2
2
|
import "./Tooltip.css";
|
|
3
|
-
import { type JSX } from "
|
|
3
|
+
import { type JSX } from "@solidjs/web";
|
|
4
4
|
import { type OverlayPlacement } from "../_shared/overlayPosition";
|
|
5
5
|
import type { UIBaseProps } from "../vocabulary";
|
|
6
6
|
export type TooltipPlacement = OverlayPlacement;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Portal, createComponent, insert, mergeProps, spread, template
|
|
2
|
-
import { defineComponent } from "solid-layouts/application-boundary";
|
|
1
|
+
import { Portal, createComponent, insert, mergeProps, ref, spread, template } from "@solidjs/web";
|
|
2
|
+
import { defineComponent } from "solid-layouts/solid-2/application-boundary";
|
|
3
3
|
import "./Tooltip.css";
|
|
4
|
-
import { Show, createContext, createEffect, createSignal,
|
|
5
|
-
import { twMerge } from "
|
|
4
|
+
import { Show, createContext, createEffect, createSignal, omit, onCleanup, useContext } from "solid-js";
|
|
5
|
+
import { twMerge } from "../../lib/twMerge.js";
|
|
6
6
|
import { createOverlayPosition } from "../_shared/overlayPosition.js";
|
|
7
7
|
import { CLASSES, componentRecipe } from "./Tooltip.recipe.js";
|
|
8
|
-
var _tmpl$ = /*#__PURE__*/ template("<span>"), _tmpl$2 = /*#__PURE__*/ template("<div>"), _tmpl$3 = /*#__PURE__*/ template('<svg aria-hidden=true data-slot=tooltip-arrow-svg height=12 viewBox="0 0 12 12"width=12
|
|
8
|
+
var _tmpl$ = /*#__PURE__*/ template("<span>"), _tmpl$2 = /*#__PURE__*/ template("<div>"), _tmpl$3 = /*#__PURE__*/ template('<svg aria-hidden=true data-slot=tooltip-arrow-svg height=12 viewBox="0 0 12 12"width=12><path d="M0 0C5.48483 8 6.5 8 12 0Z"fill=currentColor>');
|
|
9
9
|
const TooltipContext = createContext();
|
|
10
10
|
const useTooltipContext = ()=>{
|
|
11
11
|
const ctx = useContext(TooltipContext);
|
|
@@ -13,42 +13,28 @@ const useTooltipContext = ()=>{
|
|
|
13
13
|
return ctx;
|
|
14
14
|
};
|
|
15
15
|
const __solidLayoutTooltipRoot = (_stable, p)=>{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"placement",
|
|
19
|
-
"autoFlip",
|
|
20
|
-
"sideOffset",
|
|
21
|
-
"showArrow",
|
|
22
|
-
"delay",
|
|
23
|
-
"closeDelay",
|
|
24
|
-
"open",
|
|
25
|
-
"defaultOpen",
|
|
26
|
-
"onOpenChange",
|
|
27
|
-
"dataTheme",
|
|
28
|
-
"class",
|
|
29
|
-
"style"
|
|
30
|
-
]);
|
|
31
|
-
const [internalOpen, setInternalOpen] = createSignal(Boolean(local.defaultOpen));
|
|
16
|
+
omit(p, "children", "placement", "autoFlip", "sideOffset", "showArrow", "delay", "closeDelay", "open", "defaultOpen", "onOpenChange", "dataTheme", "class", "style");
|
|
17
|
+
const [internalOpen, setInternalOpen] = createSignal(Boolean(p.defaultOpen));
|
|
32
18
|
const [triggerRef, setTriggerRef] = createSignal();
|
|
33
19
|
const [contentRef, setContentRef] = createSignal();
|
|
34
|
-
const [resolvedPlacement, setResolvedPlacement] = createSignal(
|
|
20
|
+
const [resolvedPlacement, setResolvedPlacement] = createSignal(p.placement ?? "top");
|
|
35
21
|
let delayTimer;
|
|
36
22
|
let closeTimer;
|
|
37
|
-
const isControlled = ()=>void 0 !==
|
|
38
|
-
const isOpen = ()=>isControlled() ? Boolean(
|
|
23
|
+
const isControlled = ()=>void 0 !== p.open;
|
|
24
|
+
const isOpen = ()=>isControlled() ? Boolean(p.open) : internalOpen();
|
|
39
25
|
const setIsOpen = (v)=>{
|
|
40
26
|
if (!isControlled()) setInternalOpen(v);
|
|
41
|
-
|
|
27
|
+
p.onOpenChange?.(v);
|
|
42
28
|
};
|
|
43
29
|
const openTooltip = ()=>{
|
|
44
30
|
clearTimeout(closeTimer);
|
|
45
31
|
clearTimeout(delayTimer);
|
|
46
|
-
delayTimer = setTimeout(()=>setIsOpen(true),
|
|
32
|
+
delayTimer = setTimeout(()=>setIsOpen(true), p.delay ?? 0);
|
|
47
33
|
};
|
|
48
34
|
const closeTooltip = ()=>{
|
|
49
35
|
clearTimeout(delayTimer);
|
|
50
36
|
clearTimeout(closeTimer);
|
|
51
|
-
closeTimer = setTimeout(()=>setIsOpen(false),
|
|
37
|
+
closeTimer = setTimeout(()=>setIsOpen(false), p.closeDelay ?? 100);
|
|
52
38
|
};
|
|
53
39
|
onCleanup(()=>{
|
|
54
40
|
clearTimeout(delayTimer);
|
|
@@ -59,34 +45,34 @@ const __solidLayoutTooltipRoot = (_stable, p)=>{
|
|
|
59
45
|
setIsOpen,
|
|
60
46
|
openTooltip,
|
|
61
47
|
closeTooltip,
|
|
62
|
-
preferredPlacement: ()=>
|
|
48
|
+
preferredPlacement: ()=>p.placement ?? "top",
|
|
63
49
|
placement: ()=>resolvedPlacement(),
|
|
64
50
|
setPlacement: setResolvedPlacement,
|
|
65
|
-
autoFlip: ()=>
|
|
66
|
-
sideOffset: ()=>
|
|
67
|
-
showArrow: ()=>Boolean(
|
|
51
|
+
autoFlip: ()=>p.autoFlip ?? true,
|
|
52
|
+
sideOffset: ()=>p.sideOffset ?? 12,
|
|
53
|
+
showArrow: ()=>Boolean(p.showArrow),
|
|
68
54
|
triggerRef,
|
|
69
55
|
setTriggerRef,
|
|
70
56
|
contentRef,
|
|
71
57
|
setContentRef,
|
|
72
|
-
dataTheme: ()=>
|
|
58
|
+
dataTheme: ()=>p.dataTheme
|
|
73
59
|
};
|
|
74
|
-
return createComponent(TooltipContext
|
|
60
|
+
return createComponent(TooltipContext, {
|
|
75
61
|
value: ctx,
|
|
76
62
|
get children () {
|
|
77
63
|
var _el$ = _tmpl$();
|
|
78
64
|
spread(_el$, mergeProps(()=>({
|
|
79
|
-
class: twMerge(CLASSES.base,
|
|
65
|
+
class: twMerge(CLASSES.base, p.class)
|
|
80
66
|
}), {
|
|
81
67
|
"data-slot": "tooltip-root",
|
|
82
68
|
get ["data-theme"] () {
|
|
83
|
-
return
|
|
69
|
+
return p.dataTheme;
|
|
84
70
|
},
|
|
85
71
|
get style () {
|
|
86
|
-
return
|
|
72
|
+
return p.style;
|
|
87
73
|
}
|
|
88
|
-
}),
|
|
89
|
-
insert(_el$, ()=>
|
|
74
|
+
}), true);
|
|
75
|
+
insert(_el$, ()=>p.children);
|
|
90
76
|
return _el$;
|
|
91
77
|
}
|
|
92
78
|
});
|
|
@@ -97,54 +83,43 @@ const TooltipRoot = defineComponent({
|
|
|
97
83
|
embedded: true
|
|
98
84
|
});
|
|
99
85
|
const __solidLayoutTooltipTrigger = (_stable, p)=>{
|
|
100
|
-
const
|
|
101
|
-
"children",
|
|
102
|
-
"class",
|
|
103
|
-
"dataTheme",
|
|
104
|
-
"style",
|
|
105
|
-
"onMouseEnter",
|
|
106
|
-
"onMouseLeave",
|
|
107
|
-
"onFocusIn",
|
|
108
|
-
"onFocusOut"
|
|
109
|
-
]);
|
|
86
|
+
const others = omit(p, "children", "class", "dataTheme", "style", "onMouseEnter", "onMouseLeave", "onFocusIn", "onFocusOut");
|
|
110
87
|
const ctx = useTooltipContext();
|
|
111
88
|
const handleMouseEnter = (e)=>{
|
|
112
89
|
ctx.openTooltip();
|
|
113
|
-
if ("function" == typeof
|
|
90
|
+
if ("function" == typeof p.onMouseEnter) p.onMouseEnter(e);
|
|
114
91
|
};
|
|
115
92
|
const handleMouseLeave = (e)=>{
|
|
116
93
|
ctx.closeTooltip();
|
|
117
|
-
if ("function" == typeof
|
|
94
|
+
if ("function" == typeof p.onMouseLeave) p.onMouseLeave(e);
|
|
118
95
|
};
|
|
119
96
|
const handleFocusIn = (e)=>{
|
|
120
97
|
ctx.openTooltip();
|
|
121
|
-
if ("function" == typeof
|
|
98
|
+
if ("function" == typeof p.onFocusIn) p.onFocusIn(e);
|
|
122
99
|
};
|
|
123
100
|
const handleFocusOut = (e)=>{
|
|
124
101
|
ctx.setIsOpen(false);
|
|
125
|
-
if ("function" == typeof
|
|
102
|
+
if ("function" == typeof p.onFocusOut) p.onFocusOut(e);
|
|
126
103
|
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
return _el$2;
|
|
147
|
-
})();
|
|
104
|
+
var _el$2 = _tmpl$2();
|
|
105
|
+
ref(()=>(el)=>ctx.setTriggerRef(el), _el$2);
|
|
106
|
+
spread(_el$2, mergeProps(others, ()=>({
|
|
107
|
+
class: twMerge(CLASSES.slot.trigger, p.class)
|
|
108
|
+
}), {
|
|
109
|
+
"data-slot": "tooltip-trigger",
|
|
110
|
+
get ["data-theme"] () {
|
|
111
|
+
return p.dataTheme;
|
|
112
|
+
},
|
|
113
|
+
get style () {
|
|
114
|
+
return p.style;
|
|
115
|
+
},
|
|
116
|
+
onMouseEnter: handleMouseEnter,
|
|
117
|
+
onMouseLeave: handleMouseLeave,
|
|
118
|
+
onFocusIn: handleFocusIn,
|
|
119
|
+
onFocusOut: handleFocusOut
|
|
120
|
+
}), true);
|
|
121
|
+
insert(_el$2, ()=>p.children);
|
|
122
|
+
return _el$2;
|
|
148
123
|
};
|
|
149
124
|
const TooltipTrigger = defineComponent({
|
|
150
125
|
recipe: componentRecipe,
|
|
@@ -152,14 +127,7 @@ const TooltipTrigger = defineComponent({
|
|
|
152
127
|
embedded: true
|
|
153
128
|
});
|
|
154
129
|
const __solidLayoutTooltipContent = (_stable, p)=>{
|
|
155
|
-
const
|
|
156
|
-
"children",
|
|
157
|
-
"class",
|
|
158
|
-
"dataTheme",
|
|
159
|
-
"style",
|
|
160
|
-
"onMouseEnter",
|
|
161
|
-
"onMouseLeave"
|
|
162
|
-
]);
|
|
130
|
+
const others = omit(p, "children", "class", "dataTheme", "style", "onMouseEnter", "onMouseLeave");
|
|
163
131
|
const ctx = useTooltipContext();
|
|
164
132
|
const overlayPosition = createOverlayPosition({
|
|
165
133
|
open: ctx.isOpen,
|
|
@@ -175,22 +143,22 @@ const __solidLayoutTooltipContent = (_stable, p)=>{
|
|
|
175
143
|
});
|
|
176
144
|
const style = ()=>{
|
|
177
145
|
const overlayStyle = overlayPosition.style();
|
|
178
|
-
if ("string" == typeof
|
|
179
|
-
|
|
146
|
+
if ("string" == typeof p.style) return [
|
|
147
|
+
p.style,
|
|
180
148
|
Object.entries(overlayStyle).map(([key, value])=>`${key}: ${String(value)}`).join("; ")
|
|
181
149
|
].filter(Boolean).join("; ");
|
|
182
150
|
return {
|
|
183
|
-
...
|
|
151
|
+
...p.style ?? {},
|
|
184
152
|
...overlayStyle
|
|
185
153
|
};
|
|
186
154
|
};
|
|
187
155
|
const handleMouseEnter = (event)=>{
|
|
188
156
|
ctx.openTooltip();
|
|
189
|
-
if ("function" == typeof
|
|
157
|
+
if ("function" == typeof p.onMouseEnter) p.onMouseEnter(event);
|
|
190
158
|
};
|
|
191
159
|
const handleMouseLeave = (event)=>{
|
|
192
160
|
ctx.closeTooltip();
|
|
193
|
-
if ("function" == typeof
|
|
161
|
+
if ("function" == typeof p.onMouseLeave) p.onMouseLeave(event);
|
|
194
162
|
};
|
|
195
163
|
return createComponent(Show, {
|
|
196
164
|
get when () {
|
|
@@ -200,11 +168,11 @@ const __solidLayoutTooltipContent = (_stable, p)=>{
|
|
|
200
168
|
return createComponent(Portal, {
|
|
201
169
|
get children () {
|
|
202
170
|
var _el$3 = _tmpl$2();
|
|
203
|
-
|
|
171
|
+
ref(()=>(el)=>ctx.setContentRef(el), _el$3);
|
|
204
172
|
spread(_el$3, mergeProps(others, {
|
|
205
173
|
role: "tooltip"
|
|
206
174
|
}, ()=>({
|
|
207
|
-
class: twMerge(CLASSES.slot.content,
|
|
175
|
+
class: twMerge(CLASSES.slot.content, p.class)
|
|
208
176
|
}), {
|
|
209
177
|
"data-slot": "tooltip-content",
|
|
210
178
|
get ["data-placement"] () {
|
|
@@ -214,15 +182,15 @@ const __solidLayoutTooltipContent = (_stable, p)=>{
|
|
|
214
182
|
return ctx.isOpen() ? "true" : "false";
|
|
215
183
|
},
|
|
216
184
|
get ["data-theme"] () {
|
|
217
|
-
return
|
|
185
|
+
return p.dataTheme ?? ctx.dataTheme();
|
|
218
186
|
},
|
|
219
187
|
get style () {
|
|
220
188
|
return style();
|
|
221
189
|
},
|
|
222
190
|
onMouseEnter: handleMouseEnter,
|
|
223
191
|
onMouseLeave: handleMouseLeave
|
|
224
|
-
}),
|
|
225
|
-
insert(_el$3, ()=>
|
|
192
|
+
}), true);
|
|
193
|
+
insert(_el$3, ()=>p.children);
|
|
226
194
|
return _el$3;
|
|
227
195
|
}
|
|
228
196
|
});
|
|
@@ -235,42 +203,35 @@ const TooltipContent = defineComponent({
|
|
|
235
203
|
embedded: true
|
|
236
204
|
});
|
|
237
205
|
const __solidLayoutTooltipArrow = (_stable, p)=>{
|
|
238
|
-
const
|
|
239
|
-
"children",
|
|
240
|
-
"class",
|
|
241
|
-
"dataTheme",
|
|
242
|
-
"style"
|
|
243
|
-
]);
|
|
206
|
+
const others = omit(p, "children", "class", "dataTheme", "style");
|
|
244
207
|
const ctx = useTooltipContext();
|
|
245
208
|
const defaultArrow = _tmpl$3();
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
return _el$5;
|
|
273
|
-
})();
|
|
209
|
+
var _el$5 = _tmpl$();
|
|
210
|
+
spread(_el$5, mergeProps(others, ()=>({
|
|
211
|
+
class: twMerge(CLASSES.slot.arrow, p.class)
|
|
212
|
+
}), {
|
|
213
|
+
"data-slot": "tooltip-arrow",
|
|
214
|
+
get ["data-placement"] () {
|
|
215
|
+
return ctx.placement();
|
|
216
|
+
},
|
|
217
|
+
get ["data-theme"] () {
|
|
218
|
+
return p.dataTheme;
|
|
219
|
+
},
|
|
220
|
+
get style () {
|
|
221
|
+
return p.style;
|
|
222
|
+
},
|
|
223
|
+
"aria-hidden": "true"
|
|
224
|
+
}), true);
|
|
225
|
+
insert(_el$5, createComponent(Show, {
|
|
226
|
+
get when () {
|
|
227
|
+
return p.children;
|
|
228
|
+
},
|
|
229
|
+
fallback: defaultArrow,
|
|
230
|
+
get children () {
|
|
231
|
+
return p.children;
|
|
232
|
+
}
|
|
233
|
+
}));
|
|
234
|
+
return _el$5;
|
|
274
235
|
};
|
|
275
236
|
const TooltipArrow = defineComponent({
|
|
276
237
|
recipe: componentRecipe,
|
|
@@ -6,7 +6,7 @@ export declare const CLASSES: {
|
|
|
6
6
|
readonly arrow: "tooltip__arrow";
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
-
export declare const componentRecipe: import("solid-layouts").Recipe<{
|
|
9
|
+
export declare const componentRecipe: import("solid-layouts/solid-2").Recipe<{
|
|
10
10
|
readonly component: "tooltip";
|
|
11
11
|
readonly slots: {
|
|
12
12
|
readonly root: {};
|
package/dist/components/utils.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Component as __LayoutComponent } from "solid-js";
|
|
2
|
-
import { type Accessor
|
|
2
|
+
import { type Accessor } from "solid-js";
|
|
3
|
+
import type { JSX } from "@solidjs/web";
|
|
3
4
|
import type { UIBaseProps } from "../vocabulary";
|
|
4
5
|
type VideoPreviewBaseProps = {
|
|
5
6
|
/**
|
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
import { createComponent, mergeProps, spread, template
|
|
2
|
-
import { defineComponent } from "solid-layouts/application-boundary";
|
|
3
|
-
import { Show, createEffect,
|
|
4
|
-
import { twMerge } from "
|
|
1
|
+
import { createComponent, mergeProps, ref, spread, template } from "@solidjs/web";
|
|
2
|
+
import { defineComponent } from "solid-layouts/solid-2/application-boundary";
|
|
3
|
+
import { Show, createEffect, omit, onCleanup } from "solid-js";
|
|
4
|
+
import { twMerge } from "../../lib/twMerge.js";
|
|
5
5
|
import { CLASSES, componentRecipe } from "./VideoPreview.recipe.js";
|
|
6
6
|
var _tmpl$ = /*#__PURE__*/ template("<video>");
|
|
7
7
|
const __solidLayoutVideoPreview = (_stable, p)=>{
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"mirror",
|
|
12
|
-
"dataTheme",
|
|
13
|
-
"class",
|
|
14
|
-
"style"
|
|
15
|
-
]);
|
|
16
|
-
const muted = ()=>local.muted ?? true;
|
|
17
|
-
const mirror = ()=>local.mirror ?? false;
|
|
8
|
+
const others = omit(p, "stream", "muted", "mirror", "dataTheme", "class", "style");
|
|
9
|
+
const muted = ()=>p.muted ?? true;
|
|
10
|
+
const mirror = ()=>p.mirror ?? false;
|
|
18
11
|
return createComponent(Show, {
|
|
19
12
|
get when () {
|
|
20
|
-
return
|
|
13
|
+
return p.stream();
|
|
21
14
|
},
|
|
22
15
|
children: (stream)=>{
|
|
23
16
|
let videoRef;
|
|
@@ -27,28 +20,26 @@ const __solidLayoutVideoPreview = (_stable, p)=>{
|
|
|
27
20
|
onCleanup(()=>{
|
|
28
21
|
videoRef.srcObject = null;
|
|
29
22
|
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return _el$;
|
|
51
|
-
})();
|
|
23
|
+
var _el$ = _tmpl$();
|
|
24
|
+
var _ref$ = videoRef;
|
|
25
|
+
"function" == typeof _ref$ || Array.isArray(_ref$) ? ref(()=>_ref$, _el$) : videoRef = _el$;
|
|
26
|
+
spread(_el$, mergeProps(others, {
|
|
27
|
+
autoplay: true,
|
|
28
|
+
playsinline: true,
|
|
29
|
+
get muted () {
|
|
30
|
+
return muted();
|
|
31
|
+
},
|
|
32
|
+
get ["data-theme"] () {
|
|
33
|
+
return p.dataTheme;
|
|
34
|
+
}
|
|
35
|
+
}, ()=>({
|
|
36
|
+
class: twMerge(mirror() && CLASSES.mirror, p.class)
|
|
37
|
+
}), {
|
|
38
|
+
get style () {
|
|
39
|
+
return p.style;
|
|
40
|
+
}
|
|
41
|
+
}), false);
|
|
42
|
+
return _el$;
|
|
52
43
|
}
|
|
53
44
|
});
|
|
54
45
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const CLASSES: {
|
|
2
2
|
readonly mirror: "-scale-x-100";
|
|
3
3
|
};
|
|
4
|
-
export declare const componentRecipe: import("solid-layouts").Recipe<{
|
|
4
|
+
export declare const componentRecipe: import("solid-layouts/solid-2").Recipe<{
|
|
5
5
|
readonly component: "video-preview";
|
|
6
6
|
readonly slots: {
|
|
7
7
|
readonly root: {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JSX } from "
|
|
1
|
+
import type { JSX } from "@solidjs/web";
|
|
2
2
|
/**
|
|
3
3
|
* The shared parameter vocabulary.
|
|
4
4
|
*
|
|
@@ -72,6 +72,24 @@ export type Flavor = "neutral" | "primary" | "secondary" | "accent" | "destructi
|
|
|
72
72
|
export type State = "default" | "loading" | "error" | "invalid" | "disabled" | "hidden";
|
|
73
73
|
/** How much emphasis, and what shape. */
|
|
74
74
|
export type Variant = "solid" | "soft" | "outline" | "ghost" | "plain";
|
|
75
|
+
/**
|
|
76
|
+
* What a surface is made of.
|
|
77
|
+
*
|
|
78
|
+
* Orthogonal to `variant`, which is how much emphasis it carries. A glass card
|
|
79
|
+
* and a solid card can both be `outline`; the difference is whether the fill is
|
|
80
|
+
* a colour or a blurred view of whatever is behind it.
|
|
81
|
+
*
|
|
82
|
+
* `glass` reads the `--glass-*` family, which `src/styles/glass.ts` derives
|
|
83
|
+
* from three numbers. Every read carries a fallback, so a theme that sets none
|
|
84
|
+
* of them still renders — an undefined custom property makes CSS drop the whole
|
|
85
|
+
* declaration rather than fall back, which is how a partial set produced a card
|
|
86
|
+
* with no background at all.
|
|
87
|
+
*
|
|
88
|
+
* Only surfaces that can hold content take this. A `Button` is not made of
|
|
89
|
+
* anything: it is a control, and blurring what is behind a 32px pill reads as a
|
|
90
|
+
* smudge rather than as material.
|
|
91
|
+
*/
|
|
92
|
+
export type Material = "solid" | "glass";
|
|
75
93
|
/** One scale, everywhere. */
|
|
76
94
|
export type Size = "xs" | "sm" | "md" | "lg" | "xl";
|
|
77
95
|
export type Radius = "none" | "sm" | "md" | "lg" | "full";
|