@pathscale/ui 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +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 +218 -81
- 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 +13 -12
- 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
|
@@ -45,17 +45,16 @@ const getPaginationTokens = (page, total)=>{
|
|
|
45
45
|
const __solidLayoutPagination = (_stable, p)=>{
|
|
46
46
|
const [local, others] = splitProps(p, [
|
|
47
47
|
"class",
|
|
48
|
-
"className",
|
|
49
48
|
"dataTheme",
|
|
50
49
|
"page",
|
|
51
50
|
"total",
|
|
52
51
|
"onChange",
|
|
53
|
-
"
|
|
52
|
+
"state"
|
|
54
53
|
]);
|
|
55
54
|
const safeTotal = ()=>Math.max(1, Math.floor(local.total || 0));
|
|
56
55
|
const currentPage = ()=>clampPage(local.page, safeTotal());
|
|
57
56
|
const tokens = ()=>getPaginationTokens(currentPage(), safeTotal());
|
|
58
|
-
const disabled = ()=>Boolean(local.
|
|
57
|
+
const disabled = ()=>Boolean("disabled" === local.state);
|
|
59
58
|
const handleChange = (nextPage)=>{
|
|
60
59
|
if (disabled()) return;
|
|
61
60
|
const bounded = clampPage(nextPage, safeTotal());
|
|
@@ -68,7 +67,7 @@ const __solidLayoutPagination = (_stable, p)=>{
|
|
|
68
67
|
"aria-label": "pagination",
|
|
69
68
|
role: "navigation"
|
|
70
69
|
}, ()=>({
|
|
71
|
-
class: twMerge(CLASSES.base, local.class
|
|
70
|
+
class: twMerge(CLASSES.base, local.class)
|
|
72
71
|
}), {
|
|
73
72
|
get ["data-theme"] () {
|
|
74
73
|
return local.dataTheme;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Component as __LayoutComponent } from "solid-js";
|
|
2
|
+
import "./PasswordField.css";
|
|
3
|
+
import { type JSX } from "solid-js";
|
|
4
|
+
import type { UIBaseProps } from "../vocabulary";
|
|
5
|
+
export type PasswordFieldProps = UIBaseProps & {
|
|
6
|
+
id?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
label?: JSX.Element;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
invalid?: boolean;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
autofocus?: boolean;
|
|
14
|
+
autocomplete?: "current-password" | "new-password" | "off";
|
|
15
|
+
"aria-describedby"?: string;
|
|
16
|
+
startIcon?: JSX.Element;
|
|
17
|
+
showLabel: string;
|
|
18
|
+
hideLabel: string;
|
|
19
|
+
value?: string;
|
|
20
|
+
inputRef?: (el: HTMLInputElement) => void;
|
|
21
|
+
onInput?: (value: string) => void;
|
|
22
|
+
onBlur?: () => void;
|
|
23
|
+
visibleIcon?: JSX.Element;
|
|
24
|
+
hiddenIcon?: JSX.Element;
|
|
25
|
+
onVisibilityChange?: (visible: boolean) => void;
|
|
26
|
+
class?: string;
|
|
27
|
+
inputClass?: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const PasswordFieldLayout: __LayoutComponent<PasswordFieldProps>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { createComponent, insert, mergeProps, spread, template } from "solid-js/web";
|
|
2
|
+
import { defineComponent } from "solid-layouts/application-boundary";
|
|
3
|
+
import "./PasswordField.css";
|
|
4
|
+
import { createSignal } from "solid-js";
|
|
5
|
+
import button_0 from "../button/index.js";
|
|
6
|
+
import icon from "../icon/index.js";
|
|
7
|
+
import input from "../input/index.js";
|
|
8
|
+
import { passwordField } from "./PasswordField.recipe.js";
|
|
9
|
+
import { capturePasswordToggleSnapshot, createPasswordFieldInputContract, preventPasswordTogglePointerDown, schedulePasswordFieldRestore, selectPasswordToggleIcon } from "./PasswordField.interactions.js";
|
|
10
|
+
var _tmpl$ = /*#__PURE__*/ template("<div>");
|
|
11
|
+
const __solidLayoutPasswordFieldLayout = (_stable, p)=>{
|
|
12
|
+
const [isVisible, setIsVisible] = createSignal(false);
|
|
13
|
+
let fieldRef;
|
|
14
|
+
const toggleLabel = ()=>isVisible() ? p.hideLabel : p.showLabel;
|
|
15
|
+
const toggleIcon = ()=>selectPasswordToggleIcon(isVisible(), p.visibleIcon, p.hiddenIcon, createComponent(icon, {
|
|
16
|
+
width: 16,
|
|
17
|
+
height: 16,
|
|
18
|
+
get src () {
|
|
19
|
+
return isVisible() ? "icon-[lucide--eye-off]" : "icon-[lucide--eye]";
|
|
20
|
+
}
|
|
21
|
+
}));
|
|
22
|
+
const setFieldRef = (el)=>{
|
|
23
|
+
fieldRef = el;
|
|
24
|
+
p.inputRef?.(el);
|
|
25
|
+
};
|
|
26
|
+
const toggleVisibility = ()=>{
|
|
27
|
+
const snapshot = capturePasswordToggleSnapshot(fieldRef, "u" > typeof document ? document.activeElement : null);
|
|
28
|
+
const nextVisible = !isVisible();
|
|
29
|
+
setIsVisible(nextVisible);
|
|
30
|
+
p.onVisibilityChange?.(nextVisible);
|
|
31
|
+
schedulePasswordFieldRestore(fieldRef, snapshot);
|
|
32
|
+
};
|
|
33
|
+
return (()=>{
|
|
34
|
+
var _el$ = _tmpl$();
|
|
35
|
+
spread(_el$, mergeProps(()=>_stable.slot.root, {
|
|
36
|
+
get ["data-visible"] () {
|
|
37
|
+
return isVisible() ? "true" : "false";
|
|
38
|
+
}
|
|
39
|
+
}), false, true);
|
|
40
|
+
insert(_el$, createComponent(input, mergeProps(()=>createPasswordFieldInputContract({
|
|
41
|
+
id: p.id,
|
|
42
|
+
name: p.name,
|
|
43
|
+
label: p.label,
|
|
44
|
+
isVisible: isVisible(),
|
|
45
|
+
placeholder: p.placeholder,
|
|
46
|
+
required: p.required,
|
|
47
|
+
autofocus: p.autofocus,
|
|
48
|
+
autocomplete: p.autocomplete,
|
|
49
|
+
"aria-describedby": p["aria-describedby"],
|
|
50
|
+
value: p.value,
|
|
51
|
+
disabled: p.disabled,
|
|
52
|
+
invalid: p.invalid,
|
|
53
|
+
startIcon: p.startIcon,
|
|
54
|
+
inputClass: p.inputClass
|
|
55
|
+
}), {
|
|
56
|
+
ref: setFieldRef,
|
|
57
|
+
onInput: (event)=>{
|
|
58
|
+
p.onInput?.(event.currentTarget.value);
|
|
59
|
+
},
|
|
60
|
+
onBlur: ()=>p.onBlur?.(),
|
|
61
|
+
get endIcon () {
|
|
62
|
+
return createComponent(button_0, mergeProps(()=>_stable.slot.toggle, {
|
|
63
|
+
type: "button",
|
|
64
|
+
variant: "ghost",
|
|
65
|
+
size: "sm",
|
|
66
|
+
width: "square",
|
|
67
|
+
get state () {
|
|
68
|
+
return p.disabled ? "disabled" : "default";
|
|
69
|
+
},
|
|
70
|
+
onPointerDown: preventPasswordTogglePointerDown,
|
|
71
|
+
onClick: toggleVisibility,
|
|
72
|
+
get ["aria-label"] () {
|
|
73
|
+
return toggleLabel();
|
|
74
|
+
},
|
|
75
|
+
get ["aria-pressed"] () {
|
|
76
|
+
return isVisible();
|
|
77
|
+
},
|
|
78
|
+
get title () {
|
|
79
|
+
return toggleLabel();
|
|
80
|
+
},
|
|
81
|
+
get children () {
|
|
82
|
+
return toggleIcon();
|
|
83
|
+
}
|
|
84
|
+
}));
|
|
85
|
+
}
|
|
86
|
+
})));
|
|
87
|
+
return _el$;
|
|
88
|
+
})();
|
|
89
|
+
};
|
|
90
|
+
const PasswordFieldLayout = defineComponent({
|
|
91
|
+
recipe: passwordField,
|
|
92
|
+
layout: __solidLayoutPasswordFieldLayout,
|
|
93
|
+
embedded: true
|
|
94
|
+
});
|
|
95
|
+
export { PasswordFieldLayout };
|
package/dist/components/password-field/{PasswordField.d.ts → PasswordField.interactions.d.ts}
RENAMED
|
@@ -1,39 +1,47 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { JSX } from "solid-js";
|
|
2
|
+
/**
|
|
3
|
+
* Pure helpers behind PasswordField's visibility toggle.
|
|
4
|
+
*
|
|
5
|
+
* They live apart from the Layout because they are the part worth testing
|
|
6
|
+
* directly: swapping an input's `type` is the one operation browsers and
|
|
7
|
+
* password managers treat as replacing the field, which loses focus, the
|
|
8
|
+
* selection, and occasionally the value itself.
|
|
9
|
+
*/
|
|
10
|
+
export type PasswordToggleSnapshot = {
|
|
11
|
+
hadFocus: boolean;
|
|
12
|
+
selectionStart: number | null;
|
|
13
|
+
selectionEnd: number | null;
|
|
14
|
+
selectionDirection: "forward" | "backward" | "none" | null;
|
|
15
|
+
valueBeforeToggle: string | null;
|
|
16
|
+
};
|
|
17
|
+
export type PasswordFieldLike = {
|
|
18
|
+
value: string;
|
|
19
|
+
selectionStart: number | null;
|
|
20
|
+
selectionEnd: number | null;
|
|
21
|
+
selectionDirection: "forward" | "backward" | "none" | null;
|
|
22
|
+
focus: (options?: {
|
|
23
|
+
preventScroll?: boolean;
|
|
24
|
+
}) => void;
|
|
25
|
+
setSelectionRange: (selectionStart: number, selectionEnd: number, selectionDirection?: "forward" | "backward" | "none") => void;
|
|
26
|
+
dispatchEvent: (event: Event) => boolean;
|
|
27
|
+
};
|
|
28
|
+
export type PasswordFieldInputContractParams = {
|
|
4
29
|
id?: string;
|
|
5
30
|
name?: string;
|
|
6
31
|
label?: JSX.Element;
|
|
7
32
|
placeholder?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
invalid?: boolean;
|
|
10
33
|
required?: boolean;
|
|
11
34
|
autofocus?: boolean;
|
|
12
35
|
autocomplete?: "current-password" | "new-password" | "off";
|
|
13
36
|
"aria-describedby"?: string;
|
|
14
|
-
startIcon?: JSX.Element;
|
|
15
|
-
showLabel: string;
|
|
16
|
-
hideLabel: string;
|
|
17
37
|
value?: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
visibleIcon?: JSX.Element;
|
|
22
|
-
hiddenIcon?: JSX.Element;
|
|
23
|
-
onVisibilityChange?: (visible: boolean) => void;
|
|
24
|
-
class?: string;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
invalid?: boolean;
|
|
40
|
+
startIcon?: JSX.Element;
|
|
25
41
|
inputClass?: string;
|
|
26
|
-
};
|
|
27
|
-
export type PasswordToggleSnapshot = {
|
|
28
|
-
hadFocus: boolean;
|
|
29
|
-
selectionStart: number | null;
|
|
30
|
-
selectionEnd: number | null;
|
|
31
|
-
selectionDirection: "forward" | "backward" | "none" | null;
|
|
32
|
-
valueBeforeToggle: string | null;
|
|
33
|
-
};
|
|
34
|
-
type PasswordFieldInputContractParams = Pick<PasswordFieldProps, "id" | "name" | "label" | "placeholder" | "required" | "autofocus" | "autocomplete" | "aria-describedby" | "value" | "disabled" | "invalid" | "startIcon" | "inputClass"> & {
|
|
35
42
|
isVisible: boolean;
|
|
36
43
|
};
|
|
44
|
+
export declare const getPasswordInputType: (isVisible: boolean) => "text" | "password";
|
|
37
45
|
export declare const createPasswordFieldInputContract: (params: PasswordFieldInputContractParams) => {
|
|
38
46
|
id: string | undefined;
|
|
39
47
|
name: string | undefined;
|
|
@@ -50,21 +58,15 @@ export declare const createPasswordFieldInputContract: (params: PasswordFieldInp
|
|
|
50
58
|
startIcon: JSX.Element;
|
|
51
59
|
class: string;
|
|
52
60
|
};
|
|
53
|
-
type PasswordFieldLike = {
|
|
54
|
-
value: string;
|
|
55
|
-
selectionStart: number | null;
|
|
56
|
-
selectionEnd: number | null;
|
|
57
|
-
selectionDirection: "forward" | "backward" | "none" | null;
|
|
58
|
-
focus: (options?: {
|
|
59
|
-
preventScroll?: boolean;
|
|
60
|
-
}) => void;
|
|
61
|
-
setSelectionRange: (selectionStart: number, selectionEnd: number, selectionDirection?: "forward" | "backward" | "none") => void;
|
|
62
|
-
dispatchEvent: (event: Event) => boolean;
|
|
63
|
-
};
|
|
64
|
-
export declare const getPasswordInputType: (isVisible: boolean) => "text" | "password";
|
|
65
61
|
export declare const selectPasswordToggleIcon: (isVisible: boolean, visibleIcon: JSX.Element | undefined, hiddenIcon: JSX.Element | undefined, fallback: JSX.Element) => JSX.Element;
|
|
66
62
|
export declare const capturePasswordToggleSnapshot: (field: PasswordFieldLike | undefined, activeElement: EventTarget | null) => PasswordToggleSnapshot;
|
|
67
63
|
export declare const restorePasswordFieldAfterToggle: (field: PasswordFieldLike | undefined, snapshot: PasswordToggleSnapshot) => void;
|
|
64
|
+
/**
|
|
65
|
+
* Restore the field after the browser has processed the `type` swap.
|
|
66
|
+
*
|
|
67
|
+
* The deferral lives here rather than in the Layout because a `.layout.tsx`
|
|
68
|
+
* template resolves free identifiers against props: a bare `queueMicrotask`
|
|
69
|
+
* in that file compiles to `props.queueMicrotask`.
|
|
70
|
+
*/
|
|
71
|
+
export declare const schedulePasswordFieldRestore: (field: PasswordFieldLike | undefined, snapshot: PasswordToggleSnapshot) => void;
|
|
68
72
|
export declare const preventPasswordTogglePointerDown: (event: Pick<PointerEvent, "preventDefault">) => void;
|
|
69
|
-
declare const PasswordField: Component<PasswordFieldProps>;
|
|
70
|
-
export default PasswordField;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { twMerge } from "tailwind-merge";
|
|
2
|
+
const getPasswordInputType = (isVisible)=>isVisible ? "text" : "password";
|
|
3
|
+
const createPasswordFieldInputContract = (params)=>({
|
|
4
|
+
id: params.id,
|
|
5
|
+
name: params.name,
|
|
6
|
+
label: params.label,
|
|
7
|
+
type: getPasswordInputType(params.isVisible),
|
|
8
|
+
placeholder: params.placeholder,
|
|
9
|
+
required: params.required,
|
|
10
|
+
autofocus: params.autofocus,
|
|
11
|
+
autocomplete: params.autocomplete,
|
|
12
|
+
"aria-describedby": params["aria-describedby"],
|
|
13
|
+
value: params.value,
|
|
14
|
+
isDisabled: Boolean(params.disabled),
|
|
15
|
+
isInvalid: Boolean(params.invalid),
|
|
16
|
+
startIcon: params.startIcon,
|
|
17
|
+
class: twMerge("w-full", params.inputClass)
|
|
18
|
+
});
|
|
19
|
+
const selectPasswordToggleIcon = (isVisible, visibleIcon, hiddenIcon, fallback)=>(isVisible ? visibleIcon : hiddenIcon) ?? fallback;
|
|
20
|
+
const capturePasswordToggleSnapshot = (field, activeElement)=>({
|
|
21
|
+
hadFocus: activeElement === field,
|
|
22
|
+
selectionStart: field?.selectionStart ?? null,
|
|
23
|
+
selectionEnd: field?.selectionEnd ?? null,
|
|
24
|
+
selectionDirection: field?.selectionDirection ?? null,
|
|
25
|
+
valueBeforeToggle: field?.value ?? null
|
|
26
|
+
});
|
|
27
|
+
const restorePasswordFieldAfterToggle = (field, snapshot)=>{
|
|
28
|
+
if (!field) return;
|
|
29
|
+
if (null !== snapshot.valueBeforeToggle && field.value !== snapshot.valueBeforeToggle) {
|
|
30
|
+
field.value = snapshot.valueBeforeToggle;
|
|
31
|
+
field.dispatchEvent(new Event("input", {
|
|
32
|
+
bubbles: true
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
if (!snapshot.hadFocus) return;
|
|
36
|
+
field.focus({
|
|
37
|
+
preventScroll: true
|
|
38
|
+
});
|
|
39
|
+
if (null === snapshot.selectionStart || null === snapshot.selectionEnd) return;
|
|
40
|
+
try {
|
|
41
|
+
field.setSelectionRange(snapshot.selectionStart, snapshot.selectionEnd, snapshot.selectionDirection ?? void 0);
|
|
42
|
+
} catch {}
|
|
43
|
+
};
|
|
44
|
+
const schedulePasswordFieldRestore = (field, snapshot)=>{
|
|
45
|
+
queueMicrotask(()=>restorePasswordFieldAfterToggle(field, snapshot));
|
|
46
|
+
};
|
|
47
|
+
const preventPasswordTogglePointerDown = (event)=>event.preventDefault();
|
|
48
|
+
export { capturePasswordToggleSnapshot, createPasswordFieldInputContract, getPasswordInputType, preventPasswordTogglePointerDown, restorePasswordFieldAfterToggle, schedulePasswordFieldRestore, selectPasswordToggleIcon };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const passwordField: import("solid-layouts").Recipe<{
|
|
2
|
+
readonly component: "password-field";
|
|
3
|
+
readonly element: "div";
|
|
4
|
+
readonly slots: {
|
|
5
|
+
readonly root: {
|
|
6
|
+
readonly base: "password-field";
|
|
7
|
+
};
|
|
8
|
+
readonly toggle: {
|
|
9
|
+
readonly base: "password-field__toggle";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { recipe } from "../../lib/layouts/index.js";
|
|
2
|
+
const passwordField = recipe({
|
|
3
|
+
component: "password-field",
|
|
4
|
+
element: "div",
|
|
5
|
+
slots: {
|
|
6
|
+
root: {
|
|
7
|
+
base: "password-field"
|
|
8
|
+
},
|
|
9
|
+
toggle: {
|
|
10
|
+
base: "password-field__toggle"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
_layouts: {
|
|
14
|
+
slots: {
|
|
15
|
+
root: {
|
|
16
|
+
base: "password-field",
|
|
17
|
+
axes: {}
|
|
18
|
+
},
|
|
19
|
+
toggle: {
|
|
20
|
+
base: "password-field__toggle",
|
|
21
|
+
axes: {}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
stateKeys: [],
|
|
25
|
+
slotIds: {
|
|
26
|
+
root: 0,
|
|
27
|
+
toggle: 1
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export { passwordField };
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export { default as PasswordField,
|
|
1
|
+
export { PasswordFieldLayout as default, PasswordFieldLayout as PasswordField, } from "./PasswordField.generated";
|
|
2
|
+
export type { PasswordFieldProps } from "./PasswordField.generated";
|
|
3
|
+
export { capturePasswordToggleSnapshot, createPasswordFieldInputContract, getPasswordInputType, preventPasswordTogglePointerDown, restorePasswordFieldAfterToggle, selectPasswordToggleIcon, type PasswordFieldLike, type PasswordToggleSnapshot, } from "./PasswordField.interactions";
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { PasswordFieldLayout as PasswordField, PasswordFieldLayout as default } from "./PasswordField.generated.js";
|
|
2
|
+
export { capturePasswordToggleSnapshot, createPasswordFieldInputContract, getPasswordInputType, preventPasswordTogglePointerDown, restorePasswordFieldAfterToggle, selectPasswordToggleIcon } from "./PasswordField.interactions.js";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.password-requirements {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 0.5rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.password-requirements__title {
|
|
9
|
+
font-size: 0.75rem;
|
|
10
|
+
line-height: 1rem;
|
|
11
|
+
font-weight: 500;
|
|
12
|
+
text-transform: uppercase;
|
|
13
|
+
opacity: 0.7;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.password-requirements__list {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: 0.25rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.password-requirements__item {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 0.5rem;
|
|
26
|
+
font-size: 0.875rem;
|
|
27
|
+
line-height: 1.25rem;
|
|
28
|
+
opacity: 0.75;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.password-requirements__item[data-passed="true"] {
|
|
32
|
+
color: var(--color-success);
|
|
33
|
+
opacity: 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.password-requirements__icon {
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Component as __LayoutComponent } from "solid-js";
|
|
2
|
+
import "./PasswordRequirements.css";
|
|
3
|
+
import { type JSX } from "solid-js";
|
|
4
|
+
import type { UIBaseProps } from "../vocabulary";
|
|
5
|
+
import type { PasswordRuleResult } from "../../passwordRules";
|
|
6
|
+
export type PasswordRequirementsProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & UIBaseProps & {
|
|
7
|
+
title?: JSX.Element;
|
|
8
|
+
results: PasswordRuleResult[];
|
|
9
|
+
metIcon?: JSX.Element;
|
|
10
|
+
unmetIcon?: JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
export declare const PasswordRequirementsLayout: __LayoutComponent<PasswordRequirementsProps>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { createComponent, insert, memo, mergeProps, spread, template } from "solid-js/web";
|
|
2
|
+
import { defineComponent } from "solid-layouts/application-boundary";
|
|
3
|
+
import "./PasswordRequirements.css";
|
|
4
|
+
import { For, Show } from "solid-js";
|
|
5
|
+
import icon from "../icon/index.js";
|
|
6
|
+
import { passwordRequirements } from "./PasswordRequirements.recipe.js";
|
|
7
|
+
var _tmpl$ = /*#__PURE__*/ template("<p>"), _tmpl$2 = /*#__PURE__*/ template("<div><ul>"), _tmpl$3 = /*#__PURE__*/ template("<li><span></span><span>");
|
|
8
|
+
const __solidLayoutPasswordRequirementsLayout = (_stable, p)=>(()=>{
|
|
9
|
+
var _el$ = _tmpl$2(), _el$3 = _el$.firstChild;
|
|
10
|
+
spread(_el$, mergeProps(()=>_stable.slot.root), false, true);
|
|
11
|
+
insert(_el$, createComponent(Show, {
|
|
12
|
+
get when () {
|
|
13
|
+
return p.title;
|
|
14
|
+
},
|
|
15
|
+
get children () {
|
|
16
|
+
var _el$2 = _tmpl$();
|
|
17
|
+
spread(_el$2, mergeProps(()=>_stable.slot.title), false, true);
|
|
18
|
+
insert(_el$2, ()=>p.title);
|
|
19
|
+
return _el$2;
|
|
20
|
+
}
|
|
21
|
+
}), _el$3);
|
|
22
|
+
spread(_el$3, mergeProps(()=>_stable.slot.list), false, true);
|
|
23
|
+
insert(_el$3, createComponent(For, {
|
|
24
|
+
get each () {
|
|
25
|
+
return p.results;
|
|
26
|
+
},
|
|
27
|
+
children: (rule)=>(()=>{
|
|
28
|
+
var _el$4 = _tmpl$3(), _el$5 = _el$4.firstChild, _el$6 = _el$5.nextSibling;
|
|
29
|
+
spread(_el$4, mergeProps(()=>_stable.slot.item, {
|
|
30
|
+
get ["data-rule"] () {
|
|
31
|
+
return rule.key;
|
|
32
|
+
},
|
|
33
|
+
get ["data-passed"] () {
|
|
34
|
+
return rule.passed ? "true" : "false";
|
|
35
|
+
}
|
|
36
|
+
}), false, true);
|
|
37
|
+
spread(_el$5, mergeProps(()=>_stable.slot.icon, {
|
|
38
|
+
"aria-hidden": "true"
|
|
39
|
+
}), false, true);
|
|
40
|
+
insert(_el$5, createComponent(Show, {
|
|
41
|
+
get when () {
|
|
42
|
+
return memo(()=>!!rule.passed)() ? p.metIcon : p.unmetIcon;
|
|
43
|
+
},
|
|
44
|
+
get fallback () {
|
|
45
|
+
return createComponent(icon, {
|
|
46
|
+
width: 14,
|
|
47
|
+
height: 14,
|
|
48
|
+
get src () {
|
|
49
|
+
return rule.passed ? "icon-[lucide--check]" : "icon-[lucide--minus]";
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
},
|
|
53
|
+
get children () {
|
|
54
|
+
return memo(()=>!!rule.passed)() ? p.metIcon : p.unmetIcon;
|
|
55
|
+
}
|
|
56
|
+
}));
|
|
57
|
+
spread(_el$6, mergeProps(()=>_stable.slot.message), false, true);
|
|
58
|
+
insert(_el$6, ()=>rule.message);
|
|
59
|
+
return _el$4;
|
|
60
|
+
})()
|
|
61
|
+
}));
|
|
62
|
+
return _el$;
|
|
63
|
+
})();
|
|
64
|
+
const PasswordRequirementsLayout = defineComponent({
|
|
65
|
+
recipe: passwordRequirements,
|
|
66
|
+
layout: __solidLayoutPasswordRequirementsLayout,
|
|
67
|
+
embedded: true
|
|
68
|
+
});
|
|
69
|
+
export { PasswordRequirementsLayout };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const passwordRequirements: import("solid-layouts").Recipe<{
|
|
2
|
+
readonly component: "password-requirements";
|
|
3
|
+
readonly element: "div";
|
|
4
|
+
readonly slots: {
|
|
5
|
+
readonly root: {
|
|
6
|
+
readonly base: "password-requirements";
|
|
7
|
+
};
|
|
8
|
+
readonly title: {
|
|
9
|
+
readonly base: "password-requirements__title";
|
|
10
|
+
};
|
|
11
|
+
readonly list: {
|
|
12
|
+
readonly base: "password-requirements__list";
|
|
13
|
+
};
|
|
14
|
+
readonly item: {
|
|
15
|
+
readonly base: "password-requirements__item";
|
|
16
|
+
};
|
|
17
|
+
readonly icon: {
|
|
18
|
+
readonly base: "password-requirements__icon";
|
|
19
|
+
};
|
|
20
|
+
readonly message: {
|
|
21
|
+
readonly base: "password-requirements__message";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { recipe } from "../../lib/layouts/index.js";
|
|
2
|
+
const passwordRequirements = recipe({
|
|
3
|
+
component: "password-requirements",
|
|
4
|
+
element: "div",
|
|
5
|
+
slots: {
|
|
6
|
+
root: {
|
|
7
|
+
base: "password-requirements"
|
|
8
|
+
},
|
|
9
|
+
title: {
|
|
10
|
+
base: "password-requirements__title"
|
|
11
|
+
},
|
|
12
|
+
list: {
|
|
13
|
+
base: "password-requirements__list"
|
|
14
|
+
},
|
|
15
|
+
item: {
|
|
16
|
+
base: "password-requirements__item"
|
|
17
|
+
},
|
|
18
|
+
icon: {
|
|
19
|
+
base: "password-requirements__icon"
|
|
20
|
+
},
|
|
21
|
+
message: {
|
|
22
|
+
base: "password-requirements__message"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
_layouts: {
|
|
26
|
+
slots: {
|
|
27
|
+
root: {
|
|
28
|
+
base: "password-requirements",
|
|
29
|
+
axes: {}
|
|
30
|
+
},
|
|
31
|
+
title: {
|
|
32
|
+
base: "password-requirements__title",
|
|
33
|
+
axes: {}
|
|
34
|
+
},
|
|
35
|
+
list: {
|
|
36
|
+
base: "password-requirements__list",
|
|
37
|
+
axes: {}
|
|
38
|
+
},
|
|
39
|
+
item: {
|
|
40
|
+
base: "password-requirements__item",
|
|
41
|
+
axes: {}
|
|
42
|
+
},
|
|
43
|
+
icon: {
|
|
44
|
+
base: "password-requirements__icon",
|
|
45
|
+
axes: {}
|
|
46
|
+
},
|
|
47
|
+
message: {
|
|
48
|
+
base: "password-requirements__message",
|
|
49
|
+
axes: {}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
stateKeys: [],
|
|
53
|
+
slotIds: {
|
|
54
|
+
root: 4,
|
|
55
|
+
title: 5,
|
|
56
|
+
list: 2,
|
|
57
|
+
item: 1,
|
|
58
|
+
icon: 0,
|
|
59
|
+
message: 3
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export { passwordRequirements };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { default as PasswordRequirements,
|
|
1
|
+
export { PasswordRequirementsLayout as default, PasswordRequirementsLayout as PasswordRequirements, } from "./PasswordRequirements.generated";
|
|
2
|
+
export type { PasswordRequirementsProps } from "./PasswordRequirements.generated";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { PasswordRequirementsLayout as PasswordRequirements, PasswordRequirementsLayout as default } from "./PasswordRequirements.generated.js";
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
line-height: 1.25rem;
|
|
14
14
|
background-color: var(--color-overlay, var(--color-base-100));
|
|
15
15
|
color: var(--color-overlay-foreground, var(--color-base-content));
|
|
16
|
-
box-shadow: var(--shadow-overlay, 0 24px 48px color-mix(in oklab,
|
|
16
|
+
box-shadow: var(--shadow-overlay, 0 24px 48px color-mix(in oklab, rgb(var(--shadow-color, 0 0 0)) 20%, transparent));
|
|
17
17
|
opacity: 0;
|
|
18
18
|
pointer-events: none;
|
|
19
19
|
transform: translateY(-4px) scale(0.96);
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
|
|
82
82
|
.popover__trigger:focus-visible,
|
|
83
83
|
.popover__trigger[data-focus-visible="true"] {
|
|
84
|
-
outline: 2px solid var(--color-accent);
|
|
85
|
-
outline-offset: 2px;
|
|
84
|
+
outline: var(--focus-ring-width, 2px) solid var(--color-accent);
|
|
85
|
+
outline-offset: var(--focus-ring-offset, 2px);
|
|
86
86
|
border-radius: var(--radius-field, 0.375rem);
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Component as __LayoutComponent } from "solid-js";
|
|
2
2
|
import "./Popover.css";
|
|
3
3
|
import { type JSX } from "solid-js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { UIBaseProps } from "../vocabulary";
|
|
5
5
|
import { type OverlayPlacement } from "../_shared/overlayPosition";
|
|
6
6
|
export type PopoverPlacement = OverlayPlacement;
|
|
7
|
-
export type PopoverRootProps =
|
|
7
|
+
export type PopoverRootProps = UIBaseProps & Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
8
8
|
children: JSX.Element;
|
|
9
|
-
|
|
9
|
+
open?: boolean;
|
|
10
10
|
defaultOpen?: boolean;
|
|
11
11
|
onOpenChange?: (open: boolean) => void;
|
|
12
12
|
placement?: PopoverPlacement;
|
|
@@ -17,24 +17,24 @@ export type PopoverRootProps = IComponentBaseProps & Omit<JSX.HTMLAttributes<HTM
|
|
|
17
17
|
onInteractOutside?: (event: Event) => void;
|
|
18
18
|
};
|
|
19
19
|
declare const PopoverRoot: __LayoutComponent<PopoverRootProps>;
|
|
20
|
-
export type PopoverTriggerProps =
|
|
20
|
+
export type PopoverTriggerProps = UIBaseProps & Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
21
21
|
children: JSX.Element;
|
|
22
22
|
};
|
|
23
23
|
declare const PopoverTrigger: __LayoutComponent<PopoverTriggerProps>;
|
|
24
|
-
export type PopoverContentProps =
|
|
24
|
+
export type PopoverContentProps = UIBaseProps & Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
25
25
|
children: JSX.Element;
|
|
26
26
|
sideOffset?: number;
|
|
27
27
|
};
|
|
28
28
|
declare const PopoverContent: __LayoutComponent<PopoverContentProps>;
|
|
29
|
-
export type PopoverDialogProps =
|
|
29
|
+
export type PopoverDialogProps = UIBaseProps & Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
30
30
|
children: JSX.Element;
|
|
31
31
|
};
|
|
32
32
|
declare const PopoverDialog: __LayoutComponent<PopoverDialogProps>;
|
|
33
|
-
export type PopoverArrowProps =
|
|
33
|
+
export type PopoverArrowProps = UIBaseProps & Omit<JSX.HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
34
34
|
children?: JSX.Element;
|
|
35
35
|
};
|
|
36
36
|
declare const PopoverArrow: __LayoutComponent<PopoverArrowProps>;
|
|
37
|
-
export type PopoverHeadingProps =
|
|
37
|
+
export type PopoverHeadingProps = UIBaseProps & Omit<JSX.HTMLAttributes<HTMLHeadingElement>, "children"> & {
|
|
38
38
|
children: JSX.Element;
|
|
39
39
|
};
|
|
40
40
|
declare const PopoverHeading: __LayoutComponent<PopoverHeadingProps>;
|