@pathscale/ui 2.1.1 → 2.2.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 +1 -1
- package/dist/components/accordion/Accordion.css +3 -3
- package/dist/components/accordion/Accordion.generated.d.ts +8 -8
- package/dist/components/accordion/Accordion.generated.js +9 -14
- package/dist/components/address/Address.css +66 -0
- package/dist/components/address/Address.generated.d.ts +35 -0
- package/dist/components/address/Address.generated.js +106 -0
- package/dist/components/address/Address.interactions.d.ts +48 -0
- package/dist/components/address/Address.interactions.js +25 -0
- package/dist/components/address/Address.recipe.d.ts +60 -0
- package/dist/components/address/Address.recipe.js +101 -0
- package/dist/components/address/index.d.ts +5 -0
- package/dist/components/address/index.js +3 -0
- package/dist/components/alert/Alert.css +125 -72
- package/dist/components/alert/Alert.generated.d.ts +12 -30
- package/dist/components/alert/Alert.generated.js +95 -191
- package/dist/components/alert/Alert.recipe.d.ts +57 -24
- package/dist/components/alert/Alert.recipe.js +90 -49
- package/dist/components/alert/index.d.ts +3 -1
- package/dist/components/alert/index.js +2 -1
- package/dist/components/auth-card/AuthCard.css +44 -0
- package/dist/components/auth-card/AuthCard.generated.d.ts +12 -0
- package/dist/components/auth-card/{AuthCard.js → AuthCard.generated.js} +33 -46
- package/dist/components/auth-card/AuthCard.recipe.d.ts +30 -0
- package/dist/components/auth-card/AuthCard.recipe.js +79 -0
- package/dist/components/auth-card/index.d.ts +2 -1
- package/dist/components/auth-card/index.js +1 -1
- package/dist/components/auth-field-group/AuthFieldGroup.css +19 -0
- package/dist/components/auth-field-group/AuthFieldGroup.generated.d.ts +10 -0
- package/dist/components/auth-field-group/AuthFieldGroup.generated.js +17 -0
- package/dist/components/auth-field-group/AuthFieldGroup.recipe.d.ts +19 -0
- package/dist/components/auth-field-group/AuthFieldGroup.recipe.js +39 -0
- package/dist/components/auth-field-group/index.d.ts +2 -1
- package/dist/components/auth-field-group/index.js +1 -1
- package/dist/components/auth-footer-links/AuthFooterLinks.css +53 -0
- package/dist/components/auth-footer-links/AuthFooterLinks.generated.d.ts +17 -0
- package/dist/components/auth-footer-links/AuthFooterLinks.generated.js +58 -0
- package/dist/components/auth-footer-links/AuthFooterLinks.recipe.d.ts +22 -0
- package/dist/components/auth-footer-links/AuthFooterLinks.recipe.js +47 -0
- package/dist/components/auth-footer-links/index.d.ts +2 -1
- package/dist/components/auth-footer-links/index.js +1 -1
- package/dist/components/auth-message/AuthMessage.css +6 -0
- package/dist/components/auth-message/AuthMessage.generated.d.ts +9 -0
- package/dist/components/auth-message/AuthMessage.generated.js +27 -0
- package/dist/components/auth-message/AuthMessage.recipe.d.ts +9 -0
- package/dist/components/auth-message/AuthMessage.recipe.js +23 -0
- package/dist/components/auth-message/index.d.ts +2 -0
- package/dist/components/auth-message/index.js +1 -0
- package/dist/components/auth-powered-by/AuthPoweredBy.css +61 -0
- package/dist/components/auth-powered-by/AuthPoweredBy.generated.d.ts +14 -0
- package/dist/components/auth-powered-by/AuthPoweredBy.generated.js +41 -0
- package/dist/components/auth-powered-by/AuthPoweredBy.recipe.d.ts +34 -0
- package/dist/components/auth-powered-by/AuthPoweredBy.recipe.js +74 -0
- package/dist/components/auth-powered-by/index.d.ts +2 -1
- package/dist/components/auth-powered-by/index.js +1 -1
- package/dist/components/auth-submit-button/AuthSubmitButton.css +5 -0
- package/dist/components/auth-submit-button/AuthSubmitButton.generated.d.ts +14 -0
- package/dist/components/auth-submit-button/AuthSubmitButton.generated.js +34 -0
- package/dist/components/auth-submit-button/AuthSubmitButton.recipe.d.ts +9 -0
- package/dist/components/auth-submit-button/AuthSubmitButton.recipe.js +23 -0
- package/dist/components/auth-submit-button/index.d.ts +2 -1
- package/dist/components/auth-submit-button/index.js +1 -1
- package/dist/components/avatar/Avatar.css +33 -16
- package/dist/components/avatar/Avatar.generated.d.ts +5 -6
- package/dist/components/avatar/Avatar.generated.js +6 -9
- package/dist/components/avatar/Avatar.recipe.d.ts +9 -6
- package/dist/components/avatar/Avatar.recipe.js +9 -6
- package/dist/components/avatar/AvatarGroup.generated.d.ts +2 -3
- package/dist/components/avatar/AvatarGroup.generated.js +1 -2
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/badge/Badge.css +81 -69
- package/dist/components/badge/Badge.generated.d.ts +4 -4
- package/dist/components/badge/Badge.generated.js +8 -4
- package/dist/components/badge/Badge.recipe.d.ts +20 -9
- package/dist/components/badge/Badge.recipe.js +20 -9
- package/dist/components/{breadcrumbs/Breadcrumbs.css → breadcrumb/Breadcrumb.css} +10 -10
- package/dist/components/breadcrumb/Breadcrumb.generated.d.ts +21 -0
- package/dist/components/{breadcrumbs/Breadcrumbs.generated.js → breadcrumb/Breadcrumb.generated.js} +29 -31
- package/dist/components/breadcrumb/Breadcrumb.recipe.d.ts +18 -0
- package/dist/components/{breadcrumbs/Breadcrumbs.recipe.js → breadcrumb/Breadcrumb.recipe.js} +17 -17
- package/dist/components/breadcrumb/index.d.ts +1 -0
- package/dist/components/breadcrumb/index.js +1 -0
- package/dist/components/button/Button.css +212 -82
- package/dist/components/button/Button.generated.d.ts +12 -16
- package/dist/components/button/Button.generated.js +31 -61
- package/dist/components/button/Button.recipe.d.ts +80 -33
- package/dist/components/button/Button.recipe.js +131 -52
- package/dist/components/button/index.d.ts +3 -2
- package/dist/components/button/index.js +2 -1
- package/dist/components/button-group/ButtonGroup.generated.d.ts +6 -7
- package/dist/components/button-group/ButtonGroup.generated.js +5 -7
- package/dist/components/button-group/context.d.ts +3 -3
- package/dist/components/calendar/Calendar.css +8 -8
- package/dist/components/calendar/Calendar.generated.d.ts +3 -3
- package/dist/components/calendar/Calendar.generated.js +3 -4
- package/dist/components/card/Card.css +170 -64
- package/dist/components/card/Card.generated.d.ts +22 -25
- package/dist/components/card/Card.generated.js +71 -144
- package/dist/components/card/Card.recipe.d.ts +110 -24
- package/dist/components/card/Card.recipe.js +171 -46
- package/dist/components/card/index.d.ts +16 -1
- package/dist/components/card/index.js +11 -1
- package/dist/components/chatbubble/ChatBubble.css +12 -12
- package/dist/components/chatbubble/ChatBubble.generated.d.ts +2 -2
- package/dist/components/chatbubble/ChatBubble.generated.js +1 -2
- package/dist/components/chatbubble/ChatBubble.recipe.d.ts +9 -9
- package/dist/components/chatbubble/ChatBubble.recipe.js +9 -9
- package/dist/components/chatbubble/ChatBubbleAvatar.generated.d.ts +2 -2
- package/dist/components/chatbubble/ChatBubbleAvatar.generated.js +3 -3
- package/dist/components/chatbubble/ChatBubbleFooter.generated.d.ts +2 -2
- package/dist/components/chatbubble/ChatBubbleFooter.generated.js +2 -3
- package/dist/components/chatbubble/ChatBubbleHeader.generated.d.ts +2 -2
- package/dist/components/chatbubble/ChatBubbleHeader.generated.js +2 -3
- package/dist/components/chatbubble/ChatBubbleMessage.generated.d.ts +3 -3
- package/dist/components/chatbubble/ChatBubbleMessage.generated.js +6 -6
- package/dist/components/chatbubble/ChatBubbleTime.generated.d.ts +2 -2
- package/dist/components/chatbubble/ChatBubbleTime.generated.js +2 -3
- package/dist/components/checkbox/Checkbox.css +2 -2
- package/dist/components/checkbox/Checkbox.generated.d.ts +4 -4
- package/dist/components/checkbox/Checkbox.generated.js +6 -6
- package/dist/components/checkbox-group/CheckboxGroup.generated.d.ts +4 -4
- package/dist/components/checkbox-group/CheckboxGroup.generated.js +6 -6
- package/dist/components/chip/Chip.css +76 -52
- package/dist/components/chip/Chip.generated.d.ts +3 -3
- package/dist/components/chip/Chip.generated.js +6 -7
- package/dist/components/chip/Chip.recipe.d.ts +9 -7
- package/dist/components/chip/Chip.recipe.js +9 -7
- package/dist/components/close-button/CloseButton.css +2 -2
- package/dist/components/close-button/CloseButton.generated.d.ts +3 -4
- package/dist/components/close-button/CloseButton.generated.js +3 -4
- package/dist/components/{disclosure/Disclosure.css → collapsible/Collapsible.css} +18 -18
- package/dist/components/collapsible/Collapsible.generated.d.ts +46 -0
- package/dist/components/{disclosure/Disclosure.generated.js → collapsible/Collapsible.generated.js} +59 -86
- package/dist/components/collapsible/Collapsible.recipe.d.ts +28 -0
- package/dist/components/collapsible/Collapsible.recipe.js +77 -0
- package/dist/components/collapsible/index.d.ts +11 -0
- package/dist/components/collapsible/index.js +4 -0
- package/dist/components/color-area/ColorArea.css +5 -5
- package/dist/components/color-area/ColorArea.generated.d.ts +3 -3
- package/dist/components/color-area/ColorArea.generated.js +3 -4
- package/dist/components/color-field/ColorField.css +1 -1
- package/dist/components/color-field/ColorField.generated.d.ts +3 -3
- package/dist/components/color-field/ColorField.generated.js +3 -4
- package/dist/components/color-picker/ColorPicker.generated.d.ts +3 -3
- package/dist/components/color-picker/ColorPicker.generated.js +16 -20
- package/dist/components/color-slider/ColorSlider.css +5 -5
- package/dist/components/color-slider/ColorSlider.generated.d.ts +3 -3
- package/dist/components/color-slider/ColorSlider.generated.js +3 -4
- package/dist/components/color-swatch/ColorSwatch.css +5 -5
- package/dist/components/color-swatch/ColorSwatch.generated.d.ts +3 -3
- package/dist/components/color-swatch/ColorSwatch.generated.js +3 -4
- package/dist/components/color-swatch-picker/ColorSwatchPicker.generated.d.ts +3 -3
- package/dist/components/color-swatch-picker/ColorSwatchPicker.generated.js +3 -4
- package/dist/components/color-wheel-flower/ColorWheelFlower.css +11 -11
- package/dist/components/color-wheel-flower/ColorWheelFlower.generated.d.ts +0 -1
- package/dist/components/color-wheel-flower/ColorWheelFlower.generated.js +5 -6
- package/dist/components/combo-box/ComboBox.css +5 -5
- package/dist/components/combo-box/ComboBox.generated.d.ts +11 -12
- package/dist/components/combo-box/ComboBox.generated.js +17 -23
- package/dist/components/composer/Composer.css +109 -0
- package/dist/components/composer/Composer.generated.d.ts +46 -0
- package/dist/components/composer/Composer.generated.js +153 -0
- package/dist/components/composer/Composer.interactions.d.ts +93 -0
- package/dist/components/composer/Composer.interactions.js +42 -0
- package/dist/components/composer/Composer.recipe.d.ts +80 -0
- package/dist/components/composer/Composer.recipe.js +146 -0
- package/dist/components/composer/index.d.ts +5 -0
- package/dist/components/composer/index.js +3 -0
- package/dist/components/date-field/DateField.generated.d.ts +12 -13
- package/dist/components/date-field/DateField.generated.js +15 -22
- package/dist/components/date-picker/DatePicker.css +1 -1
- package/dist/components/date-picker/DatePicker.generated.d.ts +4 -4
- package/dist/components/date-picker/DatePicker.generated.js +7 -8
- package/dist/components/date-range-picker/DateRangePicker.css +1 -1
- package/dist/components/date-range-picker/DateRangePicker.generated.d.ts +4 -4
- package/dist/components/date-range-picker/DateRangePicker.generated.js +7 -8
- package/dist/components/{modal/Modal.css → dialog/Dialog.css} +73 -73
- package/dist/components/dialog/Dialog.generated.d.ts +84 -0
- package/dist/components/{modal/Modal.generated.js → dialog/Dialog.generated.js} +81 -91
- package/dist/components/dialog/Dialog.recipe.d.ts +104 -0
- package/dist/components/dialog/Dialog.recipe.js +178 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/{floating-dock/FloatingDock.css → dock/Dock.css} +32 -32
- package/dist/components/{floating-dock/FloatingDock.generated.d.ts → dock/Dock.generated.d.ts} +11 -11
- package/dist/components/{floating-dock/FloatingDock.generated.js → dock/Dock.generated.js} +17 -18
- package/dist/components/dock/Dock.recipe.d.ts +31 -0
- package/dist/components/dock/Dock.recipe.js +45 -0
- package/dist/components/dock/index.d.ts +2 -0
- package/dist/components/dock/index.js +1 -0
- package/dist/components/drawer/Drawer.a11y.d.ts +1 -1
- package/dist/components/drawer/Drawer.css +9 -9
- package/dist/components/drawer/Drawer.generated.d.ts +13 -13
- package/dist/components/drawer/Drawer.generated.js +15 -26
- package/dist/components/dropdown/Dropdown.css +8 -8
- package/dist/components/dropdown/Dropdown.generated.d.ts +0 -1
- package/dist/components/dropdown/Dropdown.generated.js +1 -2
- package/dist/components/{empty-state/EmptyState.css → empty/Empty.css} +5 -5
- package/dist/components/empty/Empty.generated.d.ts +33 -0
- package/dist/components/{empty-state/EmptyState.generated.js → empty/Empty.generated.js} +36 -41
- package/dist/components/empty/Empty.recipe.d.ts +20 -0
- package/dist/components/{empty-state/EmptyState.recipe.js → empty/Empty.recipe.js} +21 -21
- package/dist/components/empty/index.d.ts +3 -0
- package/dist/components/empty/index.js +1 -0
- package/dist/components/fieldset/Fieldset.generated.d.ts +5 -5
- package/dist/components/fieldset/Fieldset.generated.js +4 -8
- package/dist/components/flex/Flex.generated.d.ts +2 -2
- package/dist/components/flex/Flex.generated.js +1 -2
- package/dist/components/footer/Footer.generated.d.ts +2 -2
- package/dist/components/footer/Footer.generated.js +1 -2
- package/dist/components/footer/FooterTitle.generated.d.ts +2 -2
- package/dist/components/footer/FooterTitle.generated.js +1 -2
- package/dist/components/form/FieldErrorMessage.generated.d.ts +0 -1
- package/dist/components/form/FieldErrorMessage.generated.js +1 -1
- package/dist/components/form/Form.generated.d.ts +3 -3
- package/dist/components/form/Form.generated.js +2 -4
- package/dist/components/form/FormField.generated.d.ts +0 -1
- package/dist/components/form/FormField.generated.js +9 -5
- package/dist/components/form/FormSubmitButton.generated.d.ts +1 -1
- package/dist/components/form/FormSubmitButton.generated.js +3 -6
- package/dist/components/glow-card/GlowCard.css +1 -1
- package/dist/components/glow-card/GlowCard.generated.d.ts +2 -2
- package/dist/components/glow-card/GlowCard.generated.js +1 -2
- package/dist/components/grid/Grid.generated.d.ts +2 -2
- package/dist/components/grid/Grid.generated.js +1 -2
- package/dist/components/header/Header.generated.d.ts +2 -2
- package/dist/components/header/Header.generated.js +1 -2
- package/dist/components/icon/Icon.css +37 -1
- package/dist/components/icon/Icon.generated.d.ts +17 -7
- package/dist/components/icon/Icon.generated.js +40 -22
- package/dist/components/icon/Icon.interactions.d.ts +8 -0
- package/dist/components/icon/Icon.interactions.js +10 -0
- package/dist/components/icon/Icon.recipe.d.ts +27 -6
- package/dist/components/icon/Icon.recipe.js +36 -8
- package/dist/components/icon/index.d.ts +2 -1
- package/dist/components/icon/index.js +2 -1
- package/dist/components/immersive-landing/ImmersiveLanding.css +12 -12
- package/dist/components/immersive-landing/ImmersiveLanding.generated.js +1 -2
- package/dist/components/immersive-landing/ImmersiveLandingArrows.generated.js +3 -4
- package/dist/components/immersive-landing/ImmersiveLandingNavigation.generated.js +1 -2
- package/dist/components/immersive-landing/ImmersiveLandingPage.generated.js +1 -2
- package/dist/components/immersive-landing/components/CookieConsent.js +3 -3
- package/dist/components/immersive-landing/components/FirefoxPWABanner.js +5 -5
- package/dist/components/immersive-landing/components/PWAInstallPrompt.js +3 -3
- package/dist/components/immersive-landing/types.d.ts +5 -5
- package/dist/components/input/Input.css +1 -1
- package/dist/components/input/Input.generated.d.ts +6 -10
- package/dist/components/input/Input.generated.js +25 -32
- package/dist/components/input-otp/InputOTP.generated.d.ts +7 -7
- package/dist/components/input-otp/InputOTP.generated.js +9 -12
- package/dist/components/join/Join.generated.d.ts +2 -2
- package/dist/components/join/Join.generated.js +1 -2
- package/dist/components/kbd/Kbd.css +2 -2
- package/dist/components/kbd/Kbd.generated.d.ts +4 -4
- package/dist/components/kbd/Kbd.generated.js +3 -6
- package/dist/components/label/Label.generated.d.ts +5 -5
- package/dist/components/label/Label.generated.js +10 -10
- package/dist/components/language-switcher/LanguageSwitcher.css +3 -3
- package/dist/components/language-switcher/LanguageSwitcher.generated.d.ts +2 -2
- package/dist/components/language-switcher/LanguageSwitcher.generated.js +2 -3
- package/dist/components/link/Link.css +2 -2
- package/dist/components/link/Link.generated.d.ts +4 -4
- package/dist/components/link/Link.generated.js +4 -6
- package/dist/components/list-box/ListBox.css +2 -2
- package/dist/components/list-box/ListBox.generated.d.ts +4 -4
- package/dist/components/list-box/ListBox.generated.js +5 -6
- package/dist/components/list-box/ListBoxItem.generated.d.ts +4 -4
- package/dist/components/list-box/ListBoxItem.generated.js +5 -7
- package/dist/components/list-box/ListBoxSection.generated.d.ts +2 -2
- package/dist/components/list-box/ListBoxSection.generated.js +1 -2
- package/dist/components/live-chat/LiveChat.css +8 -8
- package/dist/components/live-chat/LiveChatBubble.generated.d.ts +2 -2
- package/dist/components/live-chat/LiveChatBubble.generated.js +1 -2
- package/dist/components/live-chat/LiveChatPanel.generated.d.ts +2 -2
- package/dist/components/live-chat/LiveChatPanel.generated.js +5 -6
- package/dist/components/menu/Menu.css +2 -2
- package/dist/components/menu/Menu.generated.d.ts +4 -4
- package/dist/components/menu/Menu.generated.js +5 -6
- package/dist/components/menu/MenuItem.generated.d.ts +5 -5
- package/dist/components/menu/MenuItem.generated.js +6 -9
- package/dist/components/menu/MenuSection.generated.d.ts +2 -2
- package/dist/components/menu/MenuSection.generated.js +1 -2
- package/dist/components/metal-border/MetalBorder.generated.d.ts +2 -2
- package/dist/components/metal-border/MetalBorder.generated.js +1 -2
- package/dist/components/meter/Meter.css +34 -18
- package/dist/components/meter/Meter.generated.d.ts +7 -7
- package/dist/components/meter/Meter.generated.js +9 -13
- package/dist/components/meter/Meter.recipe.d.ts +9 -6
- package/dist/components/meter/Meter.recipe.js +9 -6
- package/dist/components/navbar/Navbar.css +13 -13
- package/dist/components/navbar/Navbar.generated.d.ts +2 -3
- package/dist/components/navbar/Navbar.generated.js +1 -2
- package/dist/components/navbar/Navbar.recipe.d.ts +12 -9
- package/dist/components/navbar/Navbar.recipe.js +13 -10
- package/dist/components/navbar/NavbarRow.generated.d.ts +5 -3
- package/dist/components/navbar/NavbarRow.generated.js +4 -4
- package/dist/components/navbar/NavbarSection.generated.d.ts +0 -1
- package/dist/components/navbar/NavbarSection.generated.js +1 -2
- package/dist/components/navbar/NavbarStack.generated.d.ts +2 -3
- package/dist/components/navbar/NavbarStack.generated.js +1 -2
- package/dist/components/noise-background/NoiseBackground.generated.d.ts +2 -2
- package/dist/components/noise-background/NoiseBackground.generated.js +1 -2
- package/dist/components/pagination/Pagination.css +1 -1
- package/dist/components/pagination/Pagination.generated.d.ts +3 -3
- package/dist/components/pagination/Pagination.generated.js +3 -4
- package/dist/components/password-field/PasswordField.css +12 -0
- package/dist/components/password-field/PasswordField.generated.d.ts +29 -0
- package/dist/components/password-field/PasswordField.generated.js +95 -0
- package/dist/components/password-field/{PasswordField.d.ts → PasswordField.interactions.d.ts} +40 -38
- package/dist/components/password-field/PasswordField.interactions.js +48 -0
- package/dist/components/password-field/PasswordField.recipe.d.ts +12 -0
- package/dist/components/password-field/PasswordField.recipe.js +31 -0
- package/dist/components/password-field/index.d.ts +3 -1
- package/dist/components/password-field/index.js +2 -1
- package/dist/components/password-requirements/PasswordRequirements.css +42 -0
- package/dist/components/password-requirements/PasswordRequirements.generated.d.ts +12 -0
- package/dist/components/password-requirements/PasswordRequirements.generated.js +69 -0
- package/dist/components/password-requirements/PasswordRequirements.recipe.d.ts +24 -0
- package/dist/components/password-requirements/PasswordRequirements.recipe.js +63 -0
- package/dist/components/password-requirements/index.d.ts +2 -1
- package/dist/components/password-requirements/index.js +1 -1
- package/dist/components/popover/Popover.css +3 -3
- package/dist/components/popover/Popover.generated.d.ts +8 -8
- package/dist/components/popover/Popover.generated.js +9 -15
- package/dist/components/progress/Progress.css +121 -0
- package/dist/components/progress/Progress.generated.d.ts +20 -0
- package/dist/components/{progress-bar/ProgressBar.generated.js → progress/Progress.generated.js} +12 -13
- package/dist/components/progress/Progress.recipe.d.ts +32 -0
- package/dist/components/progress/Progress.recipe.js +46 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/index.js +1 -0
- package/dist/components/radial-progress/RadialProgress.css +99 -0
- package/dist/components/radial-progress/RadialProgress.generated.d.ts +19 -0
- package/dist/components/{progress-circle/ProgressCircle.generated.js → radial-progress/RadialProgress.generated.js} +12 -13
- package/dist/components/radial-progress/RadialProgress.recipe.d.ts +31 -0
- package/dist/components/radial-progress/RadialProgress.recipe.js +45 -0
- package/dist/components/radial-progress/index.d.ts +2 -0
- package/dist/components/radial-progress/index.js +1 -0
- package/dist/components/radio/Radio.css +3 -3
- package/dist/components/radio/Radio.generated.d.ts +4 -4
- package/dist/components/radio/Radio.generated.js +6 -6
- package/dist/components/radio-group/RadioGroup.generated.d.ts +4 -4
- package/dist/components/radio-group/RadioGroup.generated.js +6 -6
- package/dist/components/range-calendar/RangeCalendar.css +1 -1
- package/dist/components/range-calendar/RangeCalendar.generated.d.ts +3 -3
- package/dist/components/range-calendar/RangeCalendar.generated.js +5 -6
- package/dist/components/{scroll-shadow/ScrollShadow.css → scroll-area/ScrollArea.css} +20 -20
- package/dist/components/scroll-area/ScrollArea.generated.d.ts +19 -0
- package/dist/components/{scroll-shadow/ScrollShadow.generated.js → scroll-area/ScrollArea.generated.js} +15 -16
- package/dist/components/scroll-area/ScrollArea.recipe.d.ts +19 -0
- package/dist/components/{scroll-shadow/ScrollShadow.recipe.js → scroll-area/ScrollArea.recipe.js} +6 -6
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/scroll-area/index.js +1 -0
- package/dist/components/scroll-area/useScrollArea.d.ts +13 -0
- package/dist/components/{scroll-shadow/useScrollShadow.js → scroll-area/useScrollArea.js} +6 -6
- package/dist/components/select/Select.css +7 -7
- package/dist/components/select/Select.generated.d.ts +11 -11
- package/dist/components/select/Select.generated.js +16 -23
- package/dist/components/separator/Separator.generated.d.ts +2 -2
- package/dist/components/separator/Separator.generated.js +1 -2
- package/dist/components/size-picker/SizePicker.generated.d.ts +2 -2
- package/dist/components/size-picker/SizePicker.generated.js +5 -3
- package/dist/components/skeleton/Skeleton.css +71 -0
- package/dist/components/skeleton/Skeleton.generated.d.ts +13 -4
- package/dist/components/skeleton/Skeleton.generated.js +36 -6
- package/dist/components/skeleton/Skeleton.recipe.d.ts +39 -10
- package/dist/components/skeleton/Skeleton.recipe.js +88 -12
- package/dist/components/skeleton/index.d.ts +3 -2
- package/dist/components/skeleton/index.js +2 -1
- package/dist/components/slider/Slider.css +8 -8
- package/dist/components/slider/Slider.generated.d.ts +2 -3
- package/dist/components/slider/Slider.generated.js +1 -2
- package/dist/components/spinner/Spinner.generated.d.ts +6 -8
- package/dist/components/spinner/Spinner.generated.js +4 -4
- package/dist/components/spinner/Spinner.recipe.d.ts +15 -31
- package/dist/components/spinner/Spinner.recipe.js +67 -32
- package/dist/components/spinner/index.d.ts +3 -2
- package/dist/components/spinner/index.js +2 -1
- package/dist/components/status/index.d.ts +3 -0
- package/dist/components/status/index.js +1 -0
- package/dist/components/status/status.d.ts +167 -0
- package/dist/components/status/status.js +101 -0
- package/dist/components/{toggle/Toggle.css → switch/Switch.css} +83 -63
- package/dist/components/{toggle/Toggle.generated.d.ts → switch/Switch.generated.d.ts} +7 -7
- package/dist/components/{toggle/Toggle.generated.js → switch/Switch.generated.js} +18 -19
- package/dist/components/switch/Switch.recipe.d.ts +43 -0
- package/dist/components/switch/Switch.recipe.js +97 -0
- package/dist/components/{toggle → switch}/index.d.ts +1 -1
- package/dist/components/switch/index.js +1 -0
- package/dist/components/table/ExpandToggle.generated.d.ts +2 -2
- package/dist/components/table/ExpandToggle.generated.js +3 -4
- package/dist/components/table/InlineConfirm.generated.d.ts +3 -3
- package/dist/components/table/InlineConfirm.generated.js +13 -18
- package/dist/components/table/MobileListView.generated.d.ts +2 -2
- package/dist/components/table/MobileListView.generated.js +6 -7
- package/dist/components/table/SortIcon.generated.d.ts +2 -2
- package/dist/components/table/SortIcon.generated.js +2 -3
- package/dist/components/table/Table.css +7 -7
- package/dist/components/table/Table.generated.d.ts +16 -16
- package/dist/components/table/Table.generated.js +15 -30
- package/dist/components/table/VirtualSpacerRow.generated.d.ts +2 -2
- package/dist/components/table/VirtualSpacerRow.generated.js +1 -2
- package/dist/components/tabs/Tabs.css +5 -5
- package/dist/components/tabs/Tabs.generated.d.ts +2 -1
- package/dist/components/tabs/Tabs.generated.js +2 -2
- package/dist/components/text/Text.generated.d.ts +2 -2
- package/dist/components/text/Text.generated.js +1 -2
- package/dist/components/textarea/Textarea.generated.d.ts +16 -7
- package/dist/components/textarea/Textarea.generated.js +47 -7
- package/dist/components/textarea/Textarea.recipe.d.ts +9 -1
- package/dist/components/textarea/Textarea.recipe.js +16 -3
- package/dist/components/textarea/index.d.ts +1 -2
- package/dist/components/textarea/index.js +1 -1
- package/dist/components/theme-color-picker/ThemeColorPicker.generated.d.ts +2 -2
- package/dist/components/theme-color-picker/ThemeColorPicker.generated.js +2 -3
- package/dist/components/time-field/TimeField.generated.d.ts +12 -13
- package/dist/components/time-field/TimeField.generated.js +15 -22
- package/dist/components/toast/Toast.css +4 -4
- package/dist/components/toast/Toast.generated.d.ts +10 -10
- package/dist/components/toast/Toast.generated.js +16 -24
- package/dist/components/toolbar/Toolbar.css +2 -2
- package/dist/components/toolbar/Toolbar.generated.d.ts +2 -2
- package/dist/components/toolbar/Toolbar.generated.js +1 -2
- package/dist/components/tooltip/Tooltip.css +4 -4
- package/dist/components/tooltip/Tooltip.generated.d.ts +6 -6
- package/dist/components/tooltip/Tooltip.generated.js +7 -11
- package/dist/components/types.d.ts +0 -7
- package/dist/components/video-preview/VideoPreview.generated.d.ts +2 -2
- package/dist/components/video-preview/VideoPreview.generated.js +1 -2
- package/dist/components/vocabulary.d.ts +267 -0
- package/dist/components/vocabulary.js +46 -0
- package/dist/index.css +0 -1
- package/dist/index.d.ts +53 -113
- package/dist/index.js +32 -67
- package/dist/lab.d.ts +44 -0
- package/dist/lab.js +24 -0
- package/dist/layouts.manifest.json +77 -218
- package/dist/purge-manifest.json +13075 -17765
- package/dist/styles/themes/dark.css +27 -0
- package/dist/styles/themes/light.css +29 -0
- package/package.json +12 -11
- package/dist/components/auth-card/AuthCard.d.ts +0 -12
- package/dist/components/auth-error-message/AuthErrorMessage.d.ts +0 -7
- package/dist/components/auth-error-message/AuthErrorMessage.js +0 -35
- package/dist/components/auth-error-message/index.d.ts +0 -1
- package/dist/components/auth-error-message/index.js +0 -1
- package/dist/components/auth-field-group/AuthFieldGroup.d.ts +0 -8
- package/dist/components/auth-field-group/AuthFieldGroup.js +0 -33
- package/dist/components/auth-footer-links/AuthFooterLinks.d.ts +0 -15
- package/dist/components/auth-footer-links/AuthFooterLinks.js +0 -74
- package/dist/components/auth-form/AuthForm.d.ts +0 -9
- package/dist/components/auth-form/AuthForm.js +0 -36
- package/dist/components/auth-form/index.d.ts +0 -1
- package/dist/components/auth-form/index.js +0 -1
- package/dist/components/auth-powered-by/AuthPoweredBy.d.ts +0 -11
- package/dist/components/auth-powered-by/AuthPoweredBy.js +0 -59
- package/dist/components/auth-submit-button/AuthSubmitButton.d.ts +0 -11
- package/dist/components/auth-submit-button/AuthSubmitButton.js +0 -51
- package/dist/components/auth-success-message/AuthSuccessMessage.d.ts +0 -7
- package/dist/components/auth-success-message/AuthSuccessMessage.js +0 -36
- package/dist/components/auth-success-message/index.d.ts +0 -1
- package/dist/components/auth-success-message/index.js +0 -1
- package/dist/components/breadcrumbs/Breadcrumbs.generated.d.ts +0 -21
- package/dist/components/breadcrumbs/Breadcrumbs.recipe.d.ts +0 -18
- package/dist/components/breadcrumbs/index.d.ts +0 -1
- package/dist/components/breadcrumbs/index.js +0 -1
- package/dist/components/description/Description.css +0 -10
- package/dist/components/description/Description.generated.d.ts +0 -12
- package/dist/components/description/Description.generated.js +0 -47
- package/dist/components/description/Description.recipe.d.ts +0 -10
- package/dist/components/description/Description.recipe.js +0 -29
- package/dist/components/description/index.d.ts +0 -1
- package/dist/components/description/index.js +0 -1
- package/dist/components/disclosure/Disclosure.generated.d.ts +0 -46
- package/dist/components/disclosure/Disclosure.recipe.d.ts +0 -28
- package/dist/components/disclosure/Disclosure.recipe.js +0 -77
- package/dist/components/disclosure/index.d.ts +0 -11
- package/dist/components/disclosure/index.js +0 -4
- package/dist/components/disclosure-group/DisclosureGroup.css +0 -9
- package/dist/components/disclosure-group/DisclosureGroup.generated.d.ts +0 -26
- package/dist/components/disclosure-group/DisclosureGroup.generated.js +0 -80
- package/dist/components/disclosure-group/DisclosureGroup.recipe.d.ts +0 -10
- package/dist/components/disclosure-group/DisclosureGroup.recipe.js +0 -29
- package/dist/components/disclosure-group/index.d.ts +0 -9
- package/dist/components/disclosure-group/index.js +0 -5
- package/dist/components/disclosure-group/useDisclosureGroupNavigation.d.ts +0 -14
- package/dist/components/disclosure-group/useDisclosureGroupNavigation.js +0 -54
- package/dist/components/empty-state/EmptyState.generated.d.ts +0 -33
- package/dist/components/empty-state/EmptyState.recipe.d.ts +0 -20
- package/dist/components/empty-state/index.d.ts +0 -3
- package/dist/components/empty-state/index.js +0 -1
- package/dist/components/error-message/ErrorMessage.css +0 -20
- package/dist/components/error-message/ErrorMessage.generated.d.ts +0 -12
- package/dist/components/error-message/ErrorMessage.generated.js +0 -47
- package/dist/components/error-message/ErrorMessage.recipe.d.ts +0 -10
- package/dist/components/error-message/ErrorMessage.recipe.js +0 -29
- package/dist/components/error-message/index.d.ts +0 -1
- package/dist/components/error-message/index.js +0 -1
- package/dist/components/field-error/FieldError.css +0 -27
- package/dist/components/field-error/FieldError.generated.d.ts +0 -22
- package/dist/components/field-error/FieldError.generated.js +0 -76
- package/dist/components/field-error/FieldError.recipe.d.ts +0 -10
- package/dist/components/field-error/FieldError.recipe.js +0 -29
- package/dist/components/field-error/index.d.ts +0 -1
- package/dist/components/field-error/index.js +0 -1
- package/dist/components/floating-dock/FloatingDock.recipe.d.ts +0 -31
- package/dist/components/floating-dock/FloatingDock.recipe.js +0 -45
- package/dist/components/floating-dock/index.d.ts +0 -2
- package/dist/components/floating-dock/index.js +0 -1
- package/dist/components/glass-panel/GlassPanel.css +0 -359
- package/dist/components/glass-panel/GlassPanel.generated.d.ts +0 -21
- package/dist/components/glass-panel/GlassPanel.generated.js +0 -116
- package/dist/components/glass-panel/GlassPanel.recipe.d.ts +0 -33
- package/dist/components/glass-panel/GlassPanel.recipe.js +0 -47
- package/dist/components/glass-panel/index.d.ts +0 -1
- package/dist/components/glass-panel/index.js +0 -1
- package/dist/components/input-group/InputGroup.css +0 -172
- package/dist/components/input-group/InputGroup.generated.d.ts +0 -45
- package/dist/components/input-group/InputGroup.generated.js +0 -246
- package/dist/components/input-group/InputGroup.recipe.d.ts +0 -32
- package/dist/components/input-group/InputGroup.recipe.js +0 -71
- package/dist/components/input-group/index.d.ts +0 -1
- package/dist/components/input-group/index.js +0 -1
- package/dist/components/modal/Modal.generated.d.ts +0 -84
- package/dist/components/modal/Modal.recipe.d.ts +0 -104
- package/dist/components/modal/Modal.recipe.js +0 -178
- package/dist/components/modal/index.d.ts +0 -1
- package/dist/components/modal/index.js +0 -1
- package/dist/components/number-field/NumberField.css +0 -198
- package/dist/components/number-field/NumberField.generated.d.ts +0 -49
- package/dist/components/number-field/NumberField.generated.js +0 -372
- package/dist/components/number-field/NumberField.recipe.d.ts +0 -40
- package/dist/components/number-field/NumberField.recipe.js +0 -89
- package/dist/components/number-field/index.d.ts +0 -1
- package/dist/components/number-field/index.js +0 -1
- package/dist/components/password-field/PasswordField.js +0 -168
- package/dist/components/password-requirements/PasswordRequirements.d.ts +0 -12
- package/dist/components/password-requirements/PasswordRequirements.js +0 -79
- package/dist/components/password-rules/index.d.ts +0 -1
- package/dist/components/password-rules/index.js +0 -1
- package/dist/components/progress-bar/ProgressBar.css +0 -104
- package/dist/components/progress-bar/ProgressBar.generated.d.ts +0 -20
- package/dist/components/progress-bar/ProgressBar.recipe.d.ts +0 -29
- package/dist/components/progress-bar/ProgressBar.recipe.js +0 -43
- package/dist/components/progress-bar/index.d.ts +0 -2
- package/dist/components/progress-bar/index.js +0 -1
- package/dist/components/progress-circle/ProgressCircle.css +0 -82
- package/dist/components/progress-circle/ProgressCircle.generated.d.ts +0 -19
- package/dist/components/progress-circle/ProgressCircle.recipe.d.ts +0 -28
- package/dist/components/progress-circle/ProgressCircle.recipe.js +0 -42
- package/dist/components/progress-circle/index.d.ts +0 -2
- package/dist/components/progress-circle/index.js +0 -1
- package/dist/components/scroll-shadow/ScrollShadow.generated.d.ts +0 -19
- package/dist/components/scroll-shadow/ScrollShadow.recipe.d.ts +0 -19
- package/dist/components/scroll-shadow/index.d.ts +0 -2
- package/dist/components/scroll-shadow/index.js +0 -1
- package/dist/components/scroll-shadow/useScrollShadow.d.ts +0 -13
- package/dist/components/search-field/SearchField.css +0 -183
- package/dist/components/search-field/SearchField.generated.d.ts +0 -54
- package/dist/components/search-field/SearchField.generated.js +0 -323
- package/dist/components/search-field/SearchField.recipe.d.ts +0 -38
- package/dist/components/search-field/SearchField.recipe.js +0 -77
- package/dist/components/search-field/index.d.ts +0 -1
- package/dist/components/search-field/index.js +0 -1
- package/dist/components/surface/Surface.css +0 -37
- package/dist/components/surface/Surface.generated.d.ts +0 -13
- package/dist/components/surface/Surface.generated.js +0 -42
- package/dist/components/surface/Surface.recipe.d.ts +0 -16
- package/dist/components/surface/Surface.recipe.js +0 -35
- package/dist/components/surface/index.d.ts +0 -1
- package/dist/components/surface/index.js +0 -1
- package/dist/components/tag/Tag.css +0 -129
- package/dist/components/tag/Tag.generated.d.ts +0 -34
- package/dist/components/tag/Tag.generated.js +0 -254
- package/dist/components/tag/Tag.recipe.d.ts +0 -30
- package/dist/components/tag/Tag.recipe.js +0 -64
- package/dist/components/tag/index.d.ts +0 -1
- package/dist/components/tag/index.js +0 -1
- package/dist/components/tag-group/TagGroup.css +0 -22
- package/dist/components/tag-group/TagGroup.generated.d.ts +0 -33
- package/dist/components/tag-group/TagGroup.generated.js +0 -190
- package/dist/components/tag-group/TagGroup.recipe.d.ts +0 -16
- package/dist/components/tag-group/TagGroup.recipe.js +0 -40
- package/dist/components/tag-group/context.d.ts +0 -15
- package/dist/components/tag-group/context.js +0 -3
- package/dist/components/tag-group/index.d.ts +0 -2
- package/dist/components/tag-group/index.js +0 -1
- package/dist/components/text-area/TextArea.generated.d.ts +0 -20
- package/dist/components/text-area/TextArea.generated.js +0 -68
- package/dist/components/text-area/TextArea.recipe.d.ts +0 -17
- package/dist/components/text-area/TextArea.recipe.js +0 -36
- package/dist/components/text-area/index.d.ts +0 -1
- package/dist/components/text-area/index.js +0 -1
- package/dist/components/text-field/TextField.css +0 -33
- package/dist/components/text-field/TextField.generated.d.ts +0 -35
- package/dist/components/text-field/TextField.generated.js +0 -89
- package/dist/components/text-field/TextField.recipe.d.ts +0 -17
- package/dist/components/text-field/TextField.recipe.js +0 -36
- package/dist/components/text-field/index.d.ts +0 -1
- package/dist/components/text-field/index.js +0 -1
- package/dist/components/toggle/Toggle.recipe.d.ts +0 -40
- package/dist/components/toggle/Toggle.recipe.js +0 -94
- package/dist/components/toggle/index.js +0 -1
- package/dist/styles/icons/generated-icons.css +0 -1
- /package/dist/components/{text-area/TextArea.css → textarea/Textarea.css} +0 -0
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { createComponent, insert, memo, mergeProps, setAttribute, spread, template } from "solid-js/web";
|
|
2
|
-
import { defineComponent } from "solid-layouts/application-boundary";
|
|
3
|
-
import "./GlassPanel.css";
|
|
4
|
-
import { Show, createSignal, createUniqueId, splitProps } from "solid-js";
|
|
5
|
-
import { twMerge } from "tailwind-merge";
|
|
6
|
-
import { CLASSES, componentRecipe } from "./GlassPanel.recipe.js";
|
|
7
|
-
var _tmpl$ = /*#__PURE__*/ template('<button type=button><span></span><svg><path stroke-linecap=round stroke-linejoin=round d="M19 9l-7 7-7-7">'), _tmpl$2 = /*#__PURE__*/ template("<div><span class=glass-panel__rim aria-hidden=true></span><span class=glass-panel__depth aria-hidden=true></span><span class=glass-panel__sheen aria-hidden=true></span><div><div>");
|
|
8
|
-
const __solidLayoutGlassPanel = (_stable, p)=>{
|
|
9
|
-
const [local, others] = splitProps(p, [
|
|
10
|
-
"collapsible",
|
|
11
|
-
"open",
|
|
12
|
-
"defaultOpen",
|
|
13
|
-
"onToggle",
|
|
14
|
-
"title",
|
|
15
|
-
"icon",
|
|
16
|
-
"size",
|
|
17
|
-
"transparent",
|
|
18
|
-
"paddingX",
|
|
19
|
-
"paddingY",
|
|
20
|
-
"tone",
|
|
21
|
-
"highlight",
|
|
22
|
-
"interactive",
|
|
23
|
-
"children",
|
|
24
|
-
"class",
|
|
25
|
-
"className",
|
|
26
|
-
"dataTheme",
|
|
27
|
-
"style"
|
|
28
|
-
]);
|
|
29
|
-
const contentId = createUniqueId();
|
|
30
|
-
const size = ()=>local.size ?? "md";
|
|
31
|
-
const isControlled = ()=>void 0 !== local.open;
|
|
32
|
-
const [internalOpen, setInternalOpen] = createSignal(local.defaultOpen ?? true);
|
|
33
|
-
const isOpen = ()=>isControlled() ? true === local.open : internalOpen();
|
|
34
|
-
const handleToggle = ()=>{
|
|
35
|
-
const next = !isOpen();
|
|
36
|
-
if (!isControlled()) setInternalOpen(next);
|
|
37
|
-
local.onToggle?.(next);
|
|
38
|
-
};
|
|
39
|
-
const containerClasses = ()=>twMerge(CLASSES.base, local.transparent && CLASSES.flag.transparent, "secondary" === local.tone && CLASSES.flag.toneSecondary, local.highlight && CLASSES.flag.highlight, local.interactive && CLASSES.flag.interactive, local.class, local.className);
|
|
40
|
-
const contentClasses = ()=>twMerge(CLASSES.slot.content, local.collapsible && CLASSES.flag.contentCollapsible, local.collapsible && !isOpen() && CLASSES.flag.contentCollapsed, (!local.collapsible || isOpen()) && !(local.paddingX || local.paddingY) && CLASSES.size[size()], local.paddingX, local.paddingY);
|
|
41
|
-
return (()=>{
|
|
42
|
-
var _el$ = _tmpl$2(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling, _el$8 = _el$4.nextSibling, _el$9 = _el$8.firstChild;
|
|
43
|
-
spread(_el$, mergeProps(others, ()=>({
|
|
44
|
-
class: containerClasses()
|
|
45
|
-
}), {
|
|
46
|
-
get ["data-theme"] () {
|
|
47
|
-
return local.dataTheme;
|
|
48
|
-
},
|
|
49
|
-
get style () {
|
|
50
|
-
return local.style;
|
|
51
|
-
}
|
|
52
|
-
}), false, true);
|
|
53
|
-
insert(_el$, createComponent(Show, {
|
|
54
|
-
get when () {
|
|
55
|
-
return memo(()=>!!local.collapsible)() && local.title;
|
|
56
|
-
},
|
|
57
|
-
get children () {
|
|
58
|
-
var _el$5 = _tmpl$(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
|
|
59
|
-
spread(_el$5, mergeProps(()=>({
|
|
60
|
-
class: CLASSES.slot.headerButton
|
|
61
|
-
}), {
|
|
62
|
-
onClick: handleToggle,
|
|
63
|
-
get ["aria-expanded"] () {
|
|
64
|
-
return isOpen();
|
|
65
|
-
},
|
|
66
|
-
"aria-controls": contentId
|
|
67
|
-
}), false, true);
|
|
68
|
-
spread(_el$6, mergeProps(()=>({
|
|
69
|
-
class: CLASSES.slot.headerLabel
|
|
70
|
-
})), false, true);
|
|
71
|
-
insert(_el$6, createComponent(Show, {
|
|
72
|
-
get when () {
|
|
73
|
-
return local.icon;
|
|
74
|
-
},
|
|
75
|
-
get children () {
|
|
76
|
-
return local.icon;
|
|
77
|
-
}
|
|
78
|
-
}), null);
|
|
79
|
-
insert(_el$6, ()=>local.title, null);
|
|
80
|
-
spread(_el$7, mergeProps(()=>({
|
|
81
|
-
class: twMerge(CLASSES.slot.chevron, isOpen() && CLASSES.flag.chevronOpen)
|
|
82
|
-
}), {
|
|
83
|
-
"aria-hidden": "true",
|
|
84
|
-
fill: "none",
|
|
85
|
-
viewBox: "0 0 24 24",
|
|
86
|
-
stroke: "currentColor",
|
|
87
|
-
"stroke-width": "1.5"
|
|
88
|
-
}), true, true);
|
|
89
|
-
return _el$5;
|
|
90
|
-
}
|
|
91
|
-
}), _el$8);
|
|
92
|
-
setAttribute(_el$8, "id", contentId);
|
|
93
|
-
spread(_el$8, mergeProps(()=>({
|
|
94
|
-
class: contentClasses()
|
|
95
|
-
}), {
|
|
96
|
-
get style () {
|
|
97
|
-
return {
|
|
98
|
-
"grid-template-rows": !local.collapsible || isOpen() ? "1fr" : "0fr",
|
|
99
|
-
opacity: !local.collapsible || isOpen() ? "1" : "0"
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
}), false, true);
|
|
103
|
-
spread(_el$9, mergeProps(()=>({
|
|
104
|
-
class: twMerge(CLASSES.slot.contentInner, local.collapsible && CLASSES.flag.contentInnerHidden)
|
|
105
|
-
})), false, true);
|
|
106
|
-
insert(_el$9, ()=>local.children);
|
|
107
|
-
return _el$;
|
|
108
|
-
})();
|
|
109
|
-
};
|
|
110
|
-
const GlassPanel = defineComponent({
|
|
111
|
-
recipe: componentRecipe,
|
|
112
|
-
layout: __solidLayoutGlassPanel,
|
|
113
|
-
embedded: true
|
|
114
|
-
});
|
|
115
|
-
const GlassPanel_generated = GlassPanel;
|
|
116
|
-
export default GlassPanel_generated;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare const CLASSES: {
|
|
2
|
-
readonly base: "glass-panel";
|
|
3
|
-
readonly size: {
|
|
4
|
-
readonly xs: "glass-panel__content--xs";
|
|
5
|
-
readonly sm: "glass-panel__content--sm";
|
|
6
|
-
readonly md: "glass-panel__content--md";
|
|
7
|
-
readonly lg: "glass-panel__content--lg";
|
|
8
|
-
readonly xl: "glass-panel__content--xl";
|
|
9
|
-
};
|
|
10
|
-
readonly flag: {
|
|
11
|
-
readonly transparent: "glass-panel--transparent";
|
|
12
|
-
readonly toneSecondary: "glass-panel--tone-secondary";
|
|
13
|
-
readonly highlight: "glass-panel--highlight";
|
|
14
|
-
readonly interactive: "glass-panel--interactive";
|
|
15
|
-
readonly contentCollapsed: "glass-panel__content--collapsed";
|
|
16
|
-
readonly contentCollapsible: "glass-panel__content--collapsible";
|
|
17
|
-
readonly contentInnerHidden: "glass-panel__content-inner--hidden";
|
|
18
|
-
readonly chevronOpen: "glass-panel__chevron--open";
|
|
19
|
-
};
|
|
20
|
-
readonly slot: {
|
|
21
|
-
readonly headerButton: "glass-panel__header-button";
|
|
22
|
-
readonly headerLabel: "glass-panel__header-label";
|
|
23
|
-
readonly chevron: "glass-panel__chevron";
|
|
24
|
-
readonly content: "glass-panel__content";
|
|
25
|
-
readonly contentInner: "glass-panel__content-inner";
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export declare const componentRecipe: import("solid-layouts").Recipe<{
|
|
29
|
-
readonly component: "glass-panel";
|
|
30
|
-
readonly slots: {
|
|
31
|
-
readonly root: {};
|
|
32
|
-
};
|
|
33
|
-
}>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { recipe } from "../../lib/layouts/index.js";
|
|
2
|
-
const CLASSES = {
|
|
3
|
-
base: "glass-panel",
|
|
4
|
-
size: {
|
|
5
|
-
xs: "glass-panel__content--xs",
|
|
6
|
-
sm: "glass-panel__content--sm",
|
|
7
|
-
md: "glass-panel__content--md",
|
|
8
|
-
lg: "glass-panel__content--lg",
|
|
9
|
-
xl: "glass-panel__content--xl"
|
|
10
|
-
},
|
|
11
|
-
flag: {
|
|
12
|
-
transparent: "glass-panel--transparent",
|
|
13
|
-
toneSecondary: "glass-panel--tone-secondary",
|
|
14
|
-
highlight: "glass-panel--highlight",
|
|
15
|
-
interactive: "glass-panel--interactive",
|
|
16
|
-
contentCollapsed: "glass-panel__content--collapsed",
|
|
17
|
-
contentCollapsible: "glass-panel__content--collapsible",
|
|
18
|
-
contentInnerHidden: "glass-panel__content-inner--hidden",
|
|
19
|
-
chevronOpen: "glass-panel__chevron--open"
|
|
20
|
-
},
|
|
21
|
-
slot: {
|
|
22
|
-
headerButton: "glass-panel__header-button",
|
|
23
|
-
headerLabel: "glass-panel__header-label",
|
|
24
|
-
chevron: "glass-panel__chevron",
|
|
25
|
-
content: "glass-panel__content",
|
|
26
|
-
contentInner: "glass-panel__content-inner"
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
const componentRecipe = recipe({
|
|
30
|
-
component: "glass-panel",
|
|
31
|
-
slots: {
|
|
32
|
-
root: {}
|
|
33
|
-
},
|
|
34
|
-
_layouts: {
|
|
35
|
-
slots: {
|
|
36
|
-
root: {
|
|
37
|
-
base: "",
|
|
38
|
-
axes: {}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
stateKeys: [],
|
|
42
|
-
slotIds: {
|
|
43
|
-
root: 0
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
export { CLASSES, componentRecipe };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, type GlassPanelProps } from "./GlassPanel.generated";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./GlassPanel.generated.js";
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
.input-group {
|
|
3
|
-
position: relative;
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
min-height: 2.25rem;
|
|
6
|
-
align-items: center;
|
|
7
|
-
border-radius: var(--radius-field, 0.75rem);
|
|
8
|
-
border: var(--border-width-field, 1px) solid var(--color-field-border, var(--color-base-300));
|
|
9
|
-
background-color: var(--color-field, var(--color-base-100));
|
|
10
|
-
color: var(--color-field-foreground, var(--color-base-content));
|
|
11
|
-
box-shadow:
|
|
12
|
-
0 1px 0 color-mix(in oklab, var(--color-base-content) 8%, transparent),
|
|
13
|
-
0 1px 0 color-mix(in oklab, var(--color-base-100) 60%, transparent) inset;
|
|
14
|
-
outline: none;
|
|
15
|
-
transition:
|
|
16
|
-
background-color 150ms var(--ease-smooth),
|
|
17
|
-
border-color 150ms var(--ease-smooth),
|
|
18
|
-
box-shadow 150ms var(--ease-out);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.input-group:has([data-slot="input-group-textarea"]) {
|
|
22
|
-
align-items: flex-start;
|
|
23
|
-
height: auto;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@media (prefers-reduced-motion: reduce) {
|
|
27
|
-
.input-group {
|
|
28
|
-
transition: none;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@media (hover: hover) {
|
|
33
|
-
.input-group:hover:not(:focus-within):not([data-invalid="true"]):not([data-disabled="true"]) {
|
|
34
|
-
background-color: var(--color-field-hover, var(--color-base-200));
|
|
35
|
-
border-color: var(--color-field-border-hover, color-mix(in oklab, var(--color-base-content) 22%, transparent));
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.input-group:focus-within {
|
|
40
|
-
border-color: var(--color-field-border-focus, var(--color-accent));
|
|
41
|
-
background-color: var(--color-field-focus, var(--color-base-100));
|
|
42
|
-
box-shadow:
|
|
43
|
-
0 0 0 3px color-mix(in oklab, var(--color-accent) 22%, transparent),
|
|
44
|
-
0 1px 0 color-mix(in oklab, var(--color-accent) 24%, transparent);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.input-group[data-invalid="true"] {
|
|
48
|
-
border-color: var(--color-field-border-invalid, var(--color-danger));
|
|
49
|
-
background-color: var(--color-field-focus, var(--color-base-100));
|
|
50
|
-
box-shadow:
|
|
51
|
-
0 0 0 3px color-mix(in oklab, var(--color-danger) 20%, transparent),
|
|
52
|
-
0 1px 0 color-mix(in oklab, var(--color-danger) 20%, transparent);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.input-group[data-disabled="true"],
|
|
56
|
-
.input-group[aria-disabled="true"] {
|
|
57
|
-
cursor: not-allowed;
|
|
58
|
-
border-color: var(--color-base-300);
|
|
59
|
-
background-color: var(--color-base-200);
|
|
60
|
-
color: color-mix(in oklab, var(--color-base-content) 45%, transparent);
|
|
61
|
-
opacity: var(--disabled-opacity, 0.6);
|
|
62
|
-
box-shadow: none;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.input-group__input {
|
|
66
|
-
min-width: 0;
|
|
67
|
-
flex: 1;
|
|
68
|
-
border: 0;
|
|
69
|
-
border-radius: 0;
|
|
70
|
-
background: transparent;
|
|
71
|
-
padding-block: 0.5rem;
|
|
72
|
-
padding-inline: 0.75rem;
|
|
73
|
-
font-size: 0.875rem;
|
|
74
|
-
line-height: 1.25rem;
|
|
75
|
-
color: inherit;
|
|
76
|
-
box-shadow: none;
|
|
77
|
-
outline: none;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.input-group__input::placeholder {
|
|
81
|
-
color: var(--color-field-placeholder, color-mix(in oklab, var(--color-base-content) 45%, transparent));
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.input-group:has([data-slot="input-group-prefix"]) .input-group__input {
|
|
85
|
-
border-top-left-radius: 0;
|
|
86
|
-
border-bottom-left-radius: 0;
|
|
87
|
-
padding-inline-start: 0;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.input-group:has([data-slot="input-group-suffix"]) .input-group__input {
|
|
91
|
-
border-top-right-radius: 0;
|
|
92
|
-
border-bottom-right-radius: 0;
|
|
93
|
-
padding-inline-end: 0;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.input-group__input:focus,
|
|
97
|
-
.input-group__input:focus-visible {
|
|
98
|
-
outline: none;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.input-group__input[data-slot="input-group-textarea"] {
|
|
102
|
-
min-height: 2.375rem;
|
|
103
|
-
resize: vertical;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.input-group__prefix,
|
|
107
|
-
.input-group__suffix {
|
|
108
|
-
display: flex;
|
|
109
|
-
height: 100%;
|
|
110
|
-
align-items: center;
|
|
111
|
-
justify-content: center;
|
|
112
|
-
flex-shrink: 0;
|
|
113
|
-
background-color: transparent;
|
|
114
|
-
padding-inline: 0.75rem;
|
|
115
|
-
color: var(--color-field-placeholder, color-mix(in oklab, var(--color-base-content) 45%, transparent));
|
|
116
|
-
border-style: solid;
|
|
117
|
-
border-color: var(--color-field-border, var(--color-base-300));
|
|
118
|
-
border-width: 0;
|
|
119
|
-
transition:
|
|
120
|
-
background-color 150ms var(--ease-smooth),
|
|
121
|
-
border-color 150ms var(--ease-smooth);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
@media (prefers-reduced-motion: reduce) {
|
|
125
|
-
.input-group__prefix,
|
|
126
|
-
.input-group__suffix {
|
|
127
|
-
transition: none;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.input-group__prefix {
|
|
132
|
-
border-top-left-radius: var(--radius-field, 0.75rem);
|
|
133
|
-
border-bottom-left-radius: var(--radius-field, 0.75rem);
|
|
134
|
-
border-inline-end-width: var(--border-width-field, 1px);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.input-group__suffix {
|
|
138
|
-
border-top-right-radius: var(--radius-field, 0.75rem);
|
|
139
|
-
border-bottom-right-radius: var(--radius-field, 0.75rem);
|
|
140
|
-
border-inline-start-width: var(--border-width-field, 1px);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.input-group:has([data-slot="input-group-textarea"]) .input-group__prefix,
|
|
144
|
-
.input-group:has([data-slot="input-group-textarea"]) .input-group__suffix {
|
|
145
|
-
align-items: flex-start;
|
|
146
|
-
padding-top: 0.5rem;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.input-group--secondary {
|
|
150
|
-
box-shadow: none;
|
|
151
|
-
background-color: var(--input-group-bg, var(--color-base-200));
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
@media (hover: hover) {
|
|
155
|
-
.input-group--secondary:hover:not(:focus-within):not([data-invalid="true"]):not([data-disabled="true"]) {
|
|
156
|
-
background-color: var(--input-group-bg-hover, var(--color-base-300));
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.input-group--secondary:focus-within {
|
|
161
|
-
background-color: var(--input-group-bg-focus, var(--color-base-200));
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.input-group--secondary[data-invalid="true"] {
|
|
165
|
-
border-color: var(--color-field-border-invalid, var(--color-danger));
|
|
166
|
-
background-color: var(--input-group-bg-focus, var(--color-base-200));
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.input-group--full-width {
|
|
170
|
-
width: 100%;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { Component as __LayoutComponent } from "solid-js";
|
|
2
|
-
import "./InputGroup.css";
|
|
3
|
-
import { type JSX } from "solid-js";
|
|
4
|
-
import { type TextFieldVariant } from "../text-field";
|
|
5
|
-
import type { IComponentBaseProps } from "../types";
|
|
6
|
-
export type InputGroupVariant = TextFieldVariant;
|
|
7
|
-
export type InputGroupRootProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & IComponentBaseProps & {
|
|
8
|
-
children?: JSX.Element;
|
|
9
|
-
variant?: InputGroupVariant;
|
|
10
|
-
fullWidth?: boolean;
|
|
11
|
-
isDisabled?: boolean;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
isInvalid?: boolean;
|
|
14
|
-
};
|
|
15
|
-
export type InputGroupInputProps = Omit<JSX.InputHTMLAttributes<HTMLInputElement>, "disabled"> & IComponentBaseProps & {
|
|
16
|
-
isDisabled?: boolean;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
isInvalid?: boolean;
|
|
19
|
-
};
|
|
20
|
-
export type InputGroupTextAreaProps = Omit<JSX.TextareaHTMLAttributes<HTMLTextAreaElement>, "disabled"> & IComponentBaseProps & {
|
|
21
|
-
isDisabled?: boolean;
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
isInvalid?: boolean;
|
|
24
|
-
};
|
|
25
|
-
export type InputGroupPrefixProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & IComponentBaseProps & {
|
|
26
|
-
children?: JSX.Element;
|
|
27
|
-
};
|
|
28
|
-
export type InputGroupSuffixProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & IComponentBaseProps & {
|
|
29
|
-
children?: JSX.Element;
|
|
30
|
-
};
|
|
31
|
-
declare const InputGroupRoot: __LayoutComponent<InputGroupRootProps>;
|
|
32
|
-
declare const InputGroupInput: __LayoutComponent<InputGroupInputProps>;
|
|
33
|
-
declare const InputGroupTextArea: __LayoutComponent<InputGroupTextAreaProps>;
|
|
34
|
-
declare const InputGroupPrefix: __LayoutComponent<InputGroupPrefixProps>;
|
|
35
|
-
declare const InputGroupSuffix: __LayoutComponent<InputGroupSuffixProps>;
|
|
36
|
-
declare const InputGroup: __LayoutComponent<InputGroupRootProps> & {
|
|
37
|
-
Root: __LayoutComponent<InputGroupRootProps>;
|
|
38
|
-
Input: __LayoutComponent<InputGroupInputProps>;
|
|
39
|
-
TextArea: __LayoutComponent<InputGroupTextAreaProps>;
|
|
40
|
-
Prefix: __LayoutComponent<InputGroupPrefixProps>;
|
|
41
|
-
Suffix: __LayoutComponent<InputGroupSuffixProps>;
|
|
42
|
-
};
|
|
43
|
-
export default InputGroup;
|
|
44
|
-
export { InputGroup, InputGroupRoot, InputGroupInput, InputGroupTextArea, InputGroupPrefix, InputGroupSuffix, };
|
|
45
|
-
export type { InputGroupRootProps as InputGroupProps };
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { createComponent, insert, mergeProps, spread, template, use } from "solid-js/web";
|
|
2
|
-
import { defineComponent } from "solid-layouts/application-boundary";
|
|
3
|
-
import "./InputGroup.css";
|
|
4
|
-
import { createContext, splitProps, useContext } from "solid-js";
|
|
5
|
-
import { twMerge } from "tailwind-merge";
|
|
6
|
-
import { useTextFieldContext } from "../text-field/index.js";
|
|
7
|
-
import { CLASSES, componentRecipe } from "./InputGroup.recipe.js";
|
|
8
|
-
var _tmpl$ = /*#__PURE__*/ template("<div>"), _tmpl$2 = /*#__PURE__*/ template("<input>"), _tmpl$3 = /*#__PURE__*/ template("<textarea>");
|
|
9
|
-
const InputGroupContext = createContext();
|
|
10
|
-
const invokeEventHandler = (handler, event)=>{
|
|
11
|
-
if ("function" == typeof handler) return void handler(event);
|
|
12
|
-
if (Array.isArray(handler) && "function" == typeof handler[0]) handler[0](handler[1], event);
|
|
13
|
-
};
|
|
14
|
-
const __solidLayoutInputGroupRoot = (_stable, p)=>{
|
|
15
|
-
const textFieldContext = useTextFieldContext();
|
|
16
|
-
const [local, others] = splitProps(p, [
|
|
17
|
-
"children",
|
|
18
|
-
"class",
|
|
19
|
-
"className",
|
|
20
|
-
"dataTheme",
|
|
21
|
-
"style",
|
|
22
|
-
"variant",
|
|
23
|
-
"fullWidth",
|
|
24
|
-
"isDisabled",
|
|
25
|
-
"disabled",
|
|
26
|
-
"isInvalid",
|
|
27
|
-
"onClick",
|
|
28
|
-
"ref",
|
|
29
|
-
"aria-invalid"
|
|
30
|
-
]);
|
|
31
|
-
let groupRef;
|
|
32
|
-
const variant = ()=>local.variant ?? textFieldContext?.variant?.() ?? "primary";
|
|
33
|
-
const fullWidth = ()=>Boolean(local.fullWidth) || Boolean(textFieldContext?.fullWidth?.());
|
|
34
|
-
const isDisabled = ()=>Boolean(local.isDisabled) || Boolean(local.disabled) || Boolean(textFieldContext?.isDisabled?.());
|
|
35
|
-
const isInvalid = ()=>Boolean(local.isInvalid) || Boolean(textFieldContext?.isInvalid?.()) || Boolean(local["aria-invalid"]) || "true" === local["aria-invalid"];
|
|
36
|
-
const handleClick = (event)=>{
|
|
37
|
-
if (!isDisabled()) {
|
|
38
|
-
const target = event.target;
|
|
39
|
-
const input = groupRef?.querySelector('[data-slot="input-group-input"], [data-slot="input-group-textarea"]');
|
|
40
|
-
if (input && target !== input && !input.contains(target)) input.focus();
|
|
41
|
-
}
|
|
42
|
-
invokeEventHandler(local.onClick, event);
|
|
43
|
-
};
|
|
44
|
-
return createComponent(InputGroupContext.Provider, {
|
|
45
|
-
value: {
|
|
46
|
-
variant,
|
|
47
|
-
fullWidth,
|
|
48
|
-
isDisabled,
|
|
49
|
-
isInvalid
|
|
50
|
-
},
|
|
51
|
-
get children () {
|
|
52
|
-
var _el$ = _tmpl$();
|
|
53
|
-
use((node)=>{
|
|
54
|
-
groupRef = node;
|
|
55
|
-
if ("function" == typeof local.ref) local.ref(node);
|
|
56
|
-
}, _el$);
|
|
57
|
-
spread(_el$, mergeProps(others, ()=>({
|
|
58
|
-
class: twMerge(CLASSES.Root.base, CLASSES.Root.variant[variant()], fullWidth() && CLASSES.Root.flag.fullWidth, local.class, local.className)
|
|
59
|
-
}), {
|
|
60
|
-
"data-slot": "input-group",
|
|
61
|
-
get ["data-disabled"] () {
|
|
62
|
-
return isDisabled() ? "true" : void 0;
|
|
63
|
-
},
|
|
64
|
-
get ["data-invalid"] () {
|
|
65
|
-
return isInvalid() ? "true" : void 0;
|
|
66
|
-
},
|
|
67
|
-
get ["aria-disabled"] () {
|
|
68
|
-
return isDisabled() ? "true" : void 0;
|
|
69
|
-
},
|
|
70
|
-
get ["aria-invalid"] () {
|
|
71
|
-
return isInvalid() ? "true" : void 0;
|
|
72
|
-
},
|
|
73
|
-
get ["data-theme"] () {
|
|
74
|
-
return local.dataTheme;
|
|
75
|
-
},
|
|
76
|
-
get style () {
|
|
77
|
-
return local.style;
|
|
78
|
-
},
|
|
79
|
-
onClick: handleClick
|
|
80
|
-
}), false, true);
|
|
81
|
-
insert(_el$, ()=>local.children);
|
|
82
|
-
return _el$;
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
const InputGroupRoot = defineComponent({
|
|
87
|
-
recipe: componentRecipe,
|
|
88
|
-
layout: __solidLayoutInputGroupRoot,
|
|
89
|
-
embedded: true
|
|
90
|
-
});
|
|
91
|
-
const __solidLayoutInputGroupInput = (_stable, p)=>{
|
|
92
|
-
const context = useContext(InputGroupContext);
|
|
93
|
-
const [local, others] = splitProps(p, [
|
|
94
|
-
"class",
|
|
95
|
-
"className",
|
|
96
|
-
"dataTheme",
|
|
97
|
-
"style",
|
|
98
|
-
"isDisabled",
|
|
99
|
-
"disabled",
|
|
100
|
-
"isInvalid"
|
|
101
|
-
]);
|
|
102
|
-
const isDisabled = ()=>Boolean(local.isDisabled) || Boolean(local.disabled) || Boolean(context?.isDisabled());
|
|
103
|
-
const isInvalid = ()=>Boolean(local.isInvalid) || Boolean(context?.isInvalid());
|
|
104
|
-
return (()=>{
|
|
105
|
-
var _el$2 = _tmpl$2();
|
|
106
|
-
spread(_el$2, mergeProps(others, ()=>({
|
|
107
|
-
class: twMerge(CLASSES.Input.base, local.class, local.className)
|
|
108
|
-
}), {
|
|
109
|
-
"data-slot": "input-group-input",
|
|
110
|
-
get ["data-theme"] () {
|
|
111
|
-
return local.dataTheme;
|
|
112
|
-
},
|
|
113
|
-
get style () {
|
|
114
|
-
return local.style;
|
|
115
|
-
},
|
|
116
|
-
get disabled () {
|
|
117
|
-
return isDisabled();
|
|
118
|
-
},
|
|
119
|
-
get ["aria-disabled"] () {
|
|
120
|
-
return isDisabled() ? "true" : void 0;
|
|
121
|
-
},
|
|
122
|
-
get ["aria-invalid"] () {
|
|
123
|
-
return isInvalid() ? "true" : void 0;
|
|
124
|
-
}
|
|
125
|
-
}), false, false);
|
|
126
|
-
return _el$2;
|
|
127
|
-
})();
|
|
128
|
-
};
|
|
129
|
-
const InputGroupInput = defineComponent({
|
|
130
|
-
recipe: componentRecipe,
|
|
131
|
-
layout: __solidLayoutInputGroupInput,
|
|
132
|
-
embedded: true
|
|
133
|
-
});
|
|
134
|
-
const __solidLayoutInputGroupTextArea = (_stable, p)=>{
|
|
135
|
-
const context = useContext(InputGroupContext);
|
|
136
|
-
const [local, others] = splitProps(p, [
|
|
137
|
-
"class",
|
|
138
|
-
"className",
|
|
139
|
-
"dataTheme",
|
|
140
|
-
"style",
|
|
141
|
-
"isDisabled",
|
|
142
|
-
"disabled",
|
|
143
|
-
"isInvalid"
|
|
144
|
-
]);
|
|
145
|
-
const isDisabled = ()=>Boolean(local.isDisabled) || Boolean(local.disabled) || Boolean(context?.isDisabled());
|
|
146
|
-
const isInvalid = ()=>Boolean(local.isInvalid) || Boolean(context?.isInvalid());
|
|
147
|
-
return (()=>{
|
|
148
|
-
var _el$3 = _tmpl$3();
|
|
149
|
-
spread(_el$3, mergeProps(others, ()=>({
|
|
150
|
-
class: twMerge(CLASSES.Input.base, local.class, local.className)
|
|
151
|
-
}), {
|
|
152
|
-
"data-slot": "input-group-textarea",
|
|
153
|
-
get ["data-theme"] () {
|
|
154
|
-
return local.dataTheme;
|
|
155
|
-
},
|
|
156
|
-
get style () {
|
|
157
|
-
return local.style;
|
|
158
|
-
},
|
|
159
|
-
get disabled () {
|
|
160
|
-
return isDisabled();
|
|
161
|
-
},
|
|
162
|
-
get ["aria-disabled"] () {
|
|
163
|
-
return isDisabled() ? "true" : void 0;
|
|
164
|
-
},
|
|
165
|
-
get ["aria-invalid"] () {
|
|
166
|
-
return isInvalid() ? "true" : void 0;
|
|
167
|
-
}
|
|
168
|
-
}), false, false);
|
|
169
|
-
return _el$3;
|
|
170
|
-
})();
|
|
171
|
-
};
|
|
172
|
-
const InputGroupTextArea = defineComponent({
|
|
173
|
-
recipe: componentRecipe,
|
|
174
|
-
layout: __solidLayoutInputGroupTextArea,
|
|
175
|
-
embedded: true
|
|
176
|
-
});
|
|
177
|
-
const __solidLayoutInputGroupPrefix = (_stable, p)=>{
|
|
178
|
-
const [local, others] = splitProps(p, [
|
|
179
|
-
"children",
|
|
180
|
-
"class",
|
|
181
|
-
"className",
|
|
182
|
-
"dataTheme",
|
|
183
|
-
"style"
|
|
184
|
-
]);
|
|
185
|
-
return (()=>{
|
|
186
|
-
var _el$4 = _tmpl$();
|
|
187
|
-
spread(_el$4, mergeProps(others, ()=>({
|
|
188
|
-
class: twMerge(CLASSES.Prefix.base, local.class, local.className)
|
|
189
|
-
}), {
|
|
190
|
-
"data-slot": "input-group-prefix",
|
|
191
|
-
get ["data-theme"] () {
|
|
192
|
-
return local.dataTheme;
|
|
193
|
-
},
|
|
194
|
-
get style () {
|
|
195
|
-
return local.style;
|
|
196
|
-
}
|
|
197
|
-
}), false, true);
|
|
198
|
-
insert(_el$4, ()=>local.children);
|
|
199
|
-
return _el$4;
|
|
200
|
-
})();
|
|
201
|
-
};
|
|
202
|
-
const InputGroupPrefix = defineComponent({
|
|
203
|
-
recipe: componentRecipe,
|
|
204
|
-
layout: __solidLayoutInputGroupPrefix,
|
|
205
|
-
embedded: true
|
|
206
|
-
});
|
|
207
|
-
const __solidLayoutInputGroupSuffix = (_stable, p)=>{
|
|
208
|
-
const [local, others] = splitProps(p, [
|
|
209
|
-
"children",
|
|
210
|
-
"class",
|
|
211
|
-
"className",
|
|
212
|
-
"dataTheme",
|
|
213
|
-
"style"
|
|
214
|
-
]);
|
|
215
|
-
return (()=>{
|
|
216
|
-
var _el$5 = _tmpl$();
|
|
217
|
-
spread(_el$5, mergeProps(others, ()=>({
|
|
218
|
-
class: twMerge(CLASSES.Suffix.base, local.class, local.className)
|
|
219
|
-
}), {
|
|
220
|
-
"data-slot": "input-group-suffix",
|
|
221
|
-
get ["data-theme"] () {
|
|
222
|
-
return local.dataTheme;
|
|
223
|
-
},
|
|
224
|
-
get style () {
|
|
225
|
-
return local.style;
|
|
226
|
-
}
|
|
227
|
-
}), false, true);
|
|
228
|
-
insert(_el$5, ()=>local.children);
|
|
229
|
-
return _el$5;
|
|
230
|
-
})();
|
|
231
|
-
};
|
|
232
|
-
const InputGroupSuffix = defineComponent({
|
|
233
|
-
recipe: componentRecipe,
|
|
234
|
-
layout: __solidLayoutInputGroupSuffix,
|
|
235
|
-
embedded: true
|
|
236
|
-
});
|
|
237
|
-
const InputGroup = Object.assign(InputGroupRoot, {
|
|
238
|
-
Root: InputGroupRoot,
|
|
239
|
-
Input: InputGroupInput,
|
|
240
|
-
TextArea: InputGroupTextArea,
|
|
241
|
-
Prefix: InputGroupPrefix,
|
|
242
|
-
Suffix: InputGroupSuffix
|
|
243
|
-
});
|
|
244
|
-
const InputGroup_generated = InputGroup;
|
|
245
|
-
export default InputGroup_generated;
|
|
246
|
-
export { InputGroup, InputGroupInput, InputGroupPrefix, InputGroupRoot, InputGroupSuffix, InputGroupTextArea };
|