@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
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import type { JSX } from "solid-js";
|
|
2
|
+
/**
|
|
3
|
+
* The shared parameter vocabulary.
|
|
4
|
+
*
|
|
5
|
+
* A name in here means the same thing on every component, or it does not
|
|
6
|
+
* belong in here. Derived from the 2026-08-14 fleet inventory (13 apps, 199
|
|
7
|
+
* components, every call site parsed); see `UI-2.2-API.md`.
|
|
8
|
+
*
|
|
9
|
+
* The split between `State` and `Variant` is the point. The old
|
|
10
|
+
* `ComponentColor` mixed meanings (`primary`, `success`) with a shape
|
|
11
|
+
* (`ghost`), which is why a second axis grew beside it: across the fleet
|
|
12
|
+
* `Button.variant` carried `ghost` 275 times and `primary` 99 times, while
|
|
13
|
+
* `Button.color` carried `primary` 116 times and `ghost` 34. One axis was
|
|
14
|
+
* answering two questions.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* A styling preference: a named look, resolved somewhere else.
|
|
18
|
+
*
|
|
19
|
+
* `primary` is not a state — nothing is ever "in the primary state" — it is a
|
|
20
|
+
* choice about prominence and brand. That is why `state="primary"` had no
|
|
21
|
+
* honest call site.
|
|
22
|
+
*
|
|
23
|
+
* Deliberately **open**. `color` was the obvious industry name and was
|
|
24
|
+
* rejected for it: `color` promises a literal, and someone will eventually
|
|
25
|
+
* write `color="#f00"` and be annoyed. `flavor` promises a name that resolves
|
|
26
|
+
* elsewhere, so a theme can define `flavor="hip"` and style
|
|
27
|
+
* `[data-flavor="hip"]` in its own stylesheet, with no library change.
|
|
28
|
+
*
|
|
29
|
+
* The built-ins are listed for autocomplete; `(string & {})` keeps that
|
|
30
|
+
* working while still accepting anything.
|
|
31
|
+
*/
|
|
32
|
+
export type Flavor = "neutral" | "primary" | "secondary" | "accent" | "destructive" | "success" | "warning" | "info" | (string & {});
|
|
33
|
+
/**
|
|
34
|
+
* What is happening to this component right now.
|
|
35
|
+
*
|
|
36
|
+
* Transient, and one at a time. `isDisabled`, `isLoading`, `isInvalid` and
|
|
37
|
+
* friends were a bag of booleans pretending to be independent dimensions —
|
|
38
|
+
* nothing stopped `isLoading && isHidden`, which is not a thing a component
|
|
39
|
+
* can be. A dialog is `loading`, then `hidden`, then it unmounts; that is one
|
|
40
|
+
* lifecycle, so it is one prop.
|
|
41
|
+
*
|
|
42
|
+
* Closed on purpose. Which conditions a component can be in is the library's
|
|
43
|
+
* to define; which *looks* exist is the theme's, and that is `Flavor`.
|
|
44
|
+
*
|
|
45
|
+
* They form a priority chain — hidden, disabled, loading, error, invalid,
|
|
46
|
+
* default — which is what lets them share one prop.
|
|
47
|
+
*
|
|
48
|
+
* `error` and `invalid` are different failures and both are needed.
|
|
49
|
+
* `invalid` means the value broke a rule we know about and the user can fix
|
|
50
|
+
* it. `error` means something we do not understand went wrong: the options
|
|
51
|
+
* never loaded, the stream dropped, the submit handler threw. The case that
|
|
52
|
+
* forces the distinction is async validation that cannot reach the server —
|
|
53
|
+
* the value is not invalid, its validity is *unknown*, and showing it red
|
|
54
|
+
* saying "too short" would be a lie.
|
|
55
|
+
*
|
|
56
|
+
* `error` beats `invalid` for the same reason: if the validator could not
|
|
57
|
+
* run, whatever `issues` still holds is stale and must not be trusted.
|
|
58
|
+
*
|
|
59
|
+
* `invalid` is **derived by default and settable when you need it**, which is
|
|
60
|
+
* the same controlled/uncontrolled shape as `value` elsewhere in this
|
|
61
|
+
* vocabulary: leave `state` alone and a field goes invalid because it has
|
|
62
|
+
* error-severity issues; set it and yours wins.
|
|
63
|
+
*
|
|
64
|
+
* An earlier draft split this into a settable `State` and a rendered
|
|
65
|
+
* `ResolvedState`. That was two types for one axis — the duplication this
|
|
66
|
+
* release exists to remove — and it was asymmetric, since `data-state`
|
|
67
|
+
* reported a value the prop would not accept.
|
|
68
|
+
*
|
|
69
|
+
* `hidden` pairs with `keepMounted`: with it, `display: none`; without it,
|
|
70
|
+
* the content unmounts.
|
|
71
|
+
*/
|
|
72
|
+
export type State = "default" | "loading" | "error" | "invalid" | "disabled" | "hidden";
|
|
73
|
+
/** How much emphasis, and what shape. */
|
|
74
|
+
export type Variant = "solid" | "soft" | "outline" | "ghost" | "plain";
|
|
75
|
+
/** One scale, everywhere. */
|
|
76
|
+
export type Size = "xs" | "sm" | "md" | "lg" | "xl";
|
|
77
|
+
export type Radius = "none" | "sm" | "md" | "lg" | "full";
|
|
78
|
+
/** Spacing scale, shared by `gap` and every `padding*`. */
|
|
79
|
+
export type Space = "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
80
|
+
/**
|
|
81
|
+
* Named sizing, so `w-full` stops being written by hand. It appears at 384
|
|
82
|
+
* call sites across 9 of 13 apps today, which is this type missing.
|
|
83
|
+
*/
|
|
84
|
+
export type Width = "auto" | "full" | "fit" | "screen";
|
|
85
|
+
export type Height = Width;
|
|
86
|
+
export type MaxWidth = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "prose";
|
|
87
|
+
export type Align = "start" | "center" | "end" | "baseline" | "stretch";
|
|
88
|
+
export type Justify = "start" | "center" | "end" | "between" | "around";
|
|
89
|
+
export type Direction = "row" | "col";
|
|
90
|
+
/**
|
|
91
|
+
* Base props every component accepts.
|
|
92
|
+
*
|
|
93
|
+
* `className` is deliberately absent: it appeared at 7 call sites fleet-wide
|
|
94
|
+
* against 302 for `class` on Button alone, so carrying both bought nothing
|
|
95
|
+
* but a coin flip at the call site.
|
|
96
|
+
*/
|
|
97
|
+
export interface UIBaseProps {
|
|
98
|
+
dataTheme?: string;
|
|
99
|
+
class?: string;
|
|
100
|
+
style?: JSX.CSSProperties;
|
|
101
|
+
}
|
|
102
|
+
/** Icon slots. Never `leftIcon`/`rightIcon`; Input shipped both, 20 sites against 13. */
|
|
103
|
+
export interface IconSlotProps {
|
|
104
|
+
startIcon?: JSX.Element;
|
|
105
|
+
endIcon?: JSX.Element;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* The controlled/uncontrolled triple, in one shape.
|
|
109
|
+
*
|
|
110
|
+
* `onChange` receives the value, not the event. Dialog carried three competing
|
|
111
|
+
* pairs for this (`open`/`isOpen`, `onClose`/`onOpenChange`,
|
|
112
|
+
* `closeOnEsc`/`shouldCloseOnEsc`) across ten total call sites.
|
|
113
|
+
*/
|
|
114
|
+
/**
|
|
115
|
+
* Why a value changed, or why a disclosure opened or closed.
|
|
116
|
+
*
|
|
117
|
+
* Optional and last, so `onOpenChange={(open) => …}` is unaffected. It exists
|
|
118
|
+
* because the library already drew this distinction — Drawer shipped
|
|
119
|
+
* `DrawerCloseReason` — and collapsing `onClose` into `onOpenChange(boolean)`
|
|
120
|
+
* would have thrown it away. Whether a dialog closed by Escape or by a
|
|
121
|
+
* backdrop click is exactly what a caller needs to decide whether to warn
|
|
122
|
+
* about unsaved work.
|
|
123
|
+
*/
|
|
124
|
+
/**
|
|
125
|
+
* Something went wrong that is not the user's fault.
|
|
126
|
+
*
|
|
127
|
+
* Distinct from validation on purpose: `onChange` carries a value the user
|
|
128
|
+
* chose, this carries a thing that was thrown. A caller wants to retry, log or
|
|
129
|
+
* surface a toast, none of which is what you do with a validation issue.
|
|
130
|
+
*/
|
|
131
|
+
export type ErrorHandler = (error: unknown, context?: {
|
|
132
|
+
retry?: () => void;
|
|
133
|
+
}) => void;
|
|
134
|
+
export type OpenChangeReason = "escape" | "backdrop" | "trigger" | "api" | "select" | "submit";
|
|
135
|
+
export type ChangeReason = "input" | "paste" | "clear" | "step" | "select" | "api";
|
|
136
|
+
/**
|
|
137
|
+
* A validation result, not a validation message.
|
|
138
|
+
*
|
|
139
|
+
* `passwordRules.ts` had the right idea and the wrong shape: a structured
|
|
140
|
+
* `key` beside a `message` hardcoded in English inside the library, so every
|
|
141
|
+
* non-English app either showed English or rebuilt the result. And a single
|
|
142
|
+
* message cannot say that a password is both too short and missing a digit.
|
|
143
|
+
*
|
|
144
|
+
* `code` is stable and translatable; `params` interpolate into it from i18n
|
|
145
|
+
* context. "password too short" is `{ code: "too_small", params: { minimum: 8 } }`.
|
|
146
|
+
*
|
|
147
|
+
* `severity` exists because not every issue blocks submission: "weak" is a
|
|
148
|
+
* warning, "too short" is an error, and a field can show both.
|
|
149
|
+
*
|
|
150
|
+
* Compatible with Standard Schema, which `createForm` already uses through
|
|
151
|
+
* TanStack Form: its issues carry `message` and `path`, and Zod adds `code`.
|
|
152
|
+
*/
|
|
153
|
+
export interface Issue {
|
|
154
|
+
code: string;
|
|
155
|
+
params?: Record<string, unknown>;
|
|
156
|
+
/** Skips the i18n lookup when supplied. */
|
|
157
|
+
message?: JSX.Element;
|
|
158
|
+
severity?: "error" | "warning";
|
|
159
|
+
path?: (string | number)[];
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* A rule shown to the user *before* they break it.
|
|
163
|
+
*
|
|
164
|
+
* The counterpart to `Issue`, and the same rule at a different moment. "At
|
|
165
|
+
* least 8 characters" is a constraint while it is unmet and neutral, and an
|
|
166
|
+
* issue only once the user has been given a fair chance to satisfy it.
|
|
167
|
+
*
|
|
168
|
+
* Constraints render live from the first keystroke, because ticking a
|
|
169
|
+
* requirement off as you type is help, whereas "too short" flashed at you
|
|
170
|
+
* mid-word is nagging.
|
|
171
|
+
*/
|
|
172
|
+
export interface Constraint {
|
|
173
|
+
code: string;
|
|
174
|
+
params?: Record<string, unknown>;
|
|
175
|
+
label?: JSX.Element;
|
|
176
|
+
/** Recomputed on every change. */
|
|
177
|
+
satisfied: boolean;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* When issues become visible.
|
|
181
|
+
*
|
|
182
|
+
* The default is `touched`, which is the only timing that is not hostile:
|
|
183
|
+
* say nothing while the user is first typing, surface issues when they leave
|
|
184
|
+
* the field, and from then on revalidate on every keystroke so they can see
|
|
185
|
+
* themselves fixing it. Reward early, punish late.
|
|
186
|
+
*
|
|
187
|
+
* change every keystroke, from the start. Rarely right; nags.
|
|
188
|
+
* blur only on leaving the field. Misses the correction feedback.
|
|
189
|
+
* touched blur, then live once the field has errored once. The default.
|
|
190
|
+
* submit only when the form is submitted.
|
|
191
|
+
*/
|
|
192
|
+
export type ValidateOn = "change" | "blur" | "touched" | "submit";
|
|
193
|
+
export type Validate<T> = (value: T) => Issue[] | Promise<Issue[]>;
|
|
194
|
+
/**
|
|
195
|
+
* The validation surface every input-capable component carries.
|
|
196
|
+
*
|
|
197
|
+
* `issues` is controlled: a parent form or a server response can put issues on
|
|
198
|
+
* a field directly, and they merge with whatever `validate` produces. That is
|
|
199
|
+
* what makes a server-side "these credentials do not match" land in the same
|
|
200
|
+
* place as a client-side "too short", instead of in a separate banner.
|
|
201
|
+
*/
|
|
202
|
+
export interface Validatable<T> {
|
|
203
|
+
validate?: Validate<T>;
|
|
204
|
+
validateOn?: ValidateOn;
|
|
205
|
+
/** Controlled issues — from a form, or from the server. Merged with `validate`. */
|
|
206
|
+
issues?: Issue[];
|
|
207
|
+
/** Live, positive requirements. Shown while unmet rather than after failure. */
|
|
208
|
+
constraints?: Constraint[];
|
|
209
|
+
showConstraints?: "always" | "focus" | "unsatisfied" | "never";
|
|
210
|
+
/** Shorthand for a single issue. Sugar for `issues={[{ code: "custom", message }]}`. */
|
|
211
|
+
errorMessage?: JSX.Element;
|
|
212
|
+
}
|
|
213
|
+
export interface Controlled<T> {
|
|
214
|
+
value?: T;
|
|
215
|
+
defaultValue?: T;
|
|
216
|
+
onChange?: (value: T, reason?: ChangeReason) => void;
|
|
217
|
+
}
|
|
218
|
+
export interface Disclosable {
|
|
219
|
+
open?: boolean;
|
|
220
|
+
defaultOpen?: boolean;
|
|
221
|
+
onOpenChange?: (open: boolean, reason?: OpenChangeReason) => void;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Capabilities, not conditions.
|
|
225
|
+
*
|
|
226
|
+
* What remains after the `is*` audit: these say what a component *can* do,
|
|
227
|
+
* which is not something `state` can express. `required` and `readonly` are
|
|
228
|
+
* deliberately absent — they are native HTML attributes and pass straight
|
|
229
|
+
* through, which is what should have happened instead of inventing
|
|
230
|
+
* `isRequired` and `isReadOnly`.
|
|
231
|
+
*/
|
|
232
|
+
export interface CapabilityProps {
|
|
233
|
+
/** Can be activated by click or keyboard. */
|
|
234
|
+
isInteractive?: boolean;
|
|
235
|
+
/** Can be dismissed by the user. */
|
|
236
|
+
isDismissable?: boolean;
|
|
237
|
+
/** Keep content in the DOM when `state="hidden"` rather than unmounting. */
|
|
238
|
+
keepMounted?: boolean;
|
|
239
|
+
}
|
|
240
|
+
/** The built-in flavors. A theme may define more; these are the ones the library styles. */
|
|
241
|
+
export declare const FLAVORS: readonly ["neutral", "primary", "secondary", "accent", "destructive", "success", "warning", "info"];
|
|
242
|
+
export declare const STATES: readonly State[];
|
|
243
|
+
/**
|
|
244
|
+
* Is this field invalid? Derived, never set.
|
|
245
|
+
*
|
|
246
|
+
* Warnings deliberately do not count: "weak password" colours the message
|
|
247
|
+
* without reddening the field or blocking submission.
|
|
248
|
+
*/
|
|
249
|
+
export declare const isInvalid: (issues: Issue[] | undefined) => boolean;
|
|
250
|
+
/**
|
|
251
|
+
* Resolve what the component renders as, and write it to `data-state`.
|
|
252
|
+
*
|
|
253
|
+
* An explicit `state` always wins — a caller who says `disabled` means it,
|
|
254
|
+
* even while issues exist, because you cannot fix what you cannot edit. With
|
|
255
|
+
* nothing set, error-severity issues make it `invalid`.
|
|
256
|
+
*
|
|
257
|
+
* So "what state is an input with invalid input?" has one answer: `invalid`,
|
|
258
|
+
* on the same prop and readable from `data-state`.
|
|
259
|
+
*/
|
|
260
|
+
export declare const resolveState: (state: State | undefined, issues?: Issue[]) => State;
|
|
261
|
+
/** Components that do async work expose this alongside `state="error"`. */
|
|
262
|
+
export interface Failable {
|
|
263
|
+
onError?: ErrorHandler;
|
|
264
|
+
}
|
|
265
|
+
export declare const VARIANTS: readonly Variant[];
|
|
266
|
+
export declare const SIZES: readonly Size[];
|
|
267
|
+
export declare const SPACES: readonly Space[];
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const FLAVORS = [
|
|
2
|
+
"neutral",
|
|
3
|
+
"primary",
|
|
4
|
+
"secondary",
|
|
5
|
+
"accent",
|
|
6
|
+
"destructive",
|
|
7
|
+
"success",
|
|
8
|
+
"warning",
|
|
9
|
+
"info"
|
|
10
|
+
];
|
|
11
|
+
const STATES = [
|
|
12
|
+
"default",
|
|
13
|
+
"loading",
|
|
14
|
+
"error",
|
|
15
|
+
"invalid",
|
|
16
|
+
"disabled",
|
|
17
|
+
"hidden"
|
|
18
|
+
];
|
|
19
|
+
const isInvalid = (issues)=>Boolean(issues?.some((i)=>"warning" !== i.severity));
|
|
20
|
+
const resolveState = (state, issues)=>{
|
|
21
|
+
if (state) return state;
|
|
22
|
+
return isInvalid(issues) ? "invalid" : "default";
|
|
23
|
+
};
|
|
24
|
+
const VARIANTS = [
|
|
25
|
+
"solid",
|
|
26
|
+
"soft",
|
|
27
|
+
"outline",
|
|
28
|
+
"ghost",
|
|
29
|
+
"plain"
|
|
30
|
+
];
|
|
31
|
+
const SIZES = [
|
|
32
|
+
"xs",
|
|
33
|
+
"sm",
|
|
34
|
+
"md",
|
|
35
|
+
"lg",
|
|
36
|
+
"xl"
|
|
37
|
+
];
|
|
38
|
+
const SPACES = [
|
|
39
|
+
"none",
|
|
40
|
+
"xs",
|
|
41
|
+
"sm",
|
|
42
|
+
"md",
|
|
43
|
+
"lg",
|
|
44
|
+
"xl"
|
|
45
|
+
];
|
|
46
|
+
export { FLAVORS, SIZES, SPACES, STATES, VARIANTS, isInvalid, resolveState };
|
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,85 +1,51 @@
|
|
|
1
|
-
export { default as Accordion,
|
|
1
|
+
export { default as Accordion, AccordionItem, AccordionTrigger, AccordionContent, AccordionIndicator, } from "./components/accordion";
|
|
2
2
|
export type { AccordionProps, AccordionRootProps, AccordionItemProps, AccordionTriggerProps, AccordionContentProps, AccordionIndicatorProps, AccordionSelectionMode, AccordionVariant, AccordionValue, } from "./components/accordion";
|
|
3
|
-
export {
|
|
4
|
-
export type {
|
|
5
|
-
export { default as Avatar,
|
|
6
|
-
export type { AvatarSize,
|
|
3
|
+
export { Alert } from "./components/alert";
|
|
4
|
+
export type { AlertProps, AlertPlacement } from "./components/alert";
|
|
5
|
+
export { default as Avatar, AvatarImage, AvatarFallback, } from "./components/avatar";
|
|
6
|
+
export type { AvatarSize, AvatarVariant, AvatarRootProps, AvatarImageProps, AvatarFallbackProps, } from "./components/avatar";
|
|
7
7
|
export { default as Badge } from "./components/badge";
|
|
8
|
-
export {
|
|
9
|
-
export type {
|
|
8
|
+
export { Breadcrumb, BreadcrumbItem, } from "./components/breadcrumb";
|
|
9
|
+
export type { BreadcrumbRootProps, BreadcrumbItemProps, } from "./components/breadcrumb";
|
|
10
|
+
export { default as Address } from "./components/address";
|
|
11
|
+
export type { AddressProps, AddressTruncate, TruncateOptions } from "./components/address";
|
|
12
|
+
export { truncateAddress, copyAddress } from "./components/address";
|
|
10
13
|
export { default as Button } from "./components/button";
|
|
11
|
-
export { default as ButtonGroup, ButtonGroupRoot, ButtonGroupSeparator, } from "./components/button-group";
|
|
12
|
-
export type { ButtonGroupProps, ButtonGroupRootProps, ButtonGroupSeparatorProps, ButtonGroupOrientation, } from "./components/button-group";
|
|
13
14
|
export { default as Calendar, type CalendarProps, type CalendarWeekdayFormat, type CalendarSelectionMode, type CalendarDaySelectHandler, type CalendarDayHoverHandler, } from "./components/calendar";
|
|
14
|
-
export { default as Card } from "./components/card";
|
|
15
|
-
export type {
|
|
16
|
-
export { default as ChatBubble } from "./components/chatbubble";
|
|
15
|
+
export { default as Card, Card as CardRoot, CardHeader, CardBody, CardFooter } from "./components/card";
|
|
16
|
+
export type { CardProps, CardSectionProps, CardMaterial, CardElevation } from "./components/card";
|
|
17
17
|
export { default as Checkbox } from "./components/checkbox";
|
|
18
|
-
export { default as CheckboxGroup } from "./components/checkbox-group";
|
|
19
|
-
export type { CheckboxGroupProps, CheckboxGroupVariant, } from "./components/checkbox-group";
|
|
20
18
|
export { default as Chip } from "./components/chip";
|
|
19
|
+
export { default as Composer } from "./components/composer";
|
|
20
|
+
export type { ComposerProps } from "./components/composer";
|
|
21
|
+
export { autosize, boundsFromRows, isSubmittable, shouldSubmit, } from "./components/composer";
|
|
21
22
|
export type { ChipProps, ChipRootProps, ChipLabelProps, ChipVariant, ChipColor, ChipSize, } from "./components/chip";
|
|
22
|
-
export { default as
|
|
23
|
-
export type { CloseButtonProps, CloseButtonVariant, } from "./components/close-button";
|
|
24
|
-
export { default as ComboBox, ComboBoxRoot, ComboBoxInputGroup, ComboBoxInput, ComboBoxTrigger, ComboBoxPopover, ComboBoxList, } from "./components/combo-box";
|
|
25
|
-
export type { ComboBoxProps, ComboBoxRootProps, ComboBoxInputGroupProps, ComboBoxInputProps, ComboBoxTriggerProps, ComboBoxPopoverProps, ComboBoxListProps, ComboBoxListRenderItem, ComboBoxVariant, ComboBoxMenuTrigger, ComboBoxItem, ComboBoxKey, } from "./components/combo-box";
|
|
26
|
-
export { default as ColorArea } from "./components/color-area";
|
|
27
|
-
export type { ColorAreaProps, ColorAreaValue } from "./components/color-area";
|
|
28
|
-
export { default as ColorField } from "./components/color-field";
|
|
29
|
-
export type { ColorFieldProps, ColorFieldFormat, } from "./components/color-field";
|
|
30
|
-
export { default as ColorSlider } from "./components/color-slider";
|
|
31
|
-
export type { ColorSliderProps, ColorSliderType, } from "./components/color-slider";
|
|
32
|
-
export { default as ColorSwatch } from "./components/color-swatch";
|
|
33
|
-
export type { ColorSwatchProps, ColorSwatchShape, ColorSwatchSize, } from "./components/color-swatch";
|
|
34
|
-
export { default as ColorSwatchPicker } from "./components/color-swatch-picker";
|
|
35
|
-
export type { ColorSwatchPickerProps } from "./components/color-swatch-picker";
|
|
36
|
-
export { default as ColorPicker } from "./components/color-picker";
|
|
37
|
-
export type { ColorPickerProps, ColorPickerAreaProps, ColorPickerSliderProps, ColorPickerFieldProps, } from "./components/color-picker";
|
|
38
|
-
export { ColorWheelFlower } from "./components/color-wheel-flower";
|
|
39
|
-
export { COLOR_WHEEL_FLOWER_COLOR_COUNT, COLOR_WHEEL_FLOWER_PALETTES, resolveColorWheelFlowerPalette, } from "./components/color-wheel-flower";
|
|
40
|
-
export type { ColorWheelFlowerMode, ColorWheelFlowerProps, } from "./components/color-wheel-flower";
|
|
41
|
-
export { default as Description, DescriptionRoot, } from "./components/description";
|
|
42
|
-
export type { DescriptionProps, DescriptionRootProps, } from "./components/description";
|
|
43
|
-
export { default as DateField, DateFieldRoot, DateFieldGroup, DateFieldInput, DateFieldInputContainer, DateFieldSegment, DateFieldPrefix, DateFieldSuffix, } from "./components/date-field";
|
|
44
|
-
export type { DateFieldProps, DateFieldRootProps, DateFieldGroupProps, DateFieldInputProps, DateFieldInputContainerProps, DateFieldSegmentProps, DateFieldPrefixProps, DateFieldSuffixProps, DateFieldVariant, DateFieldRenderProps, DateFieldSegmentValue, } from "./components/date-field";
|
|
45
|
-
export { default as DatePicker, type DatePickerProps, } from "./components/date-picker";
|
|
46
|
-
export { default as DateRangePicker, type DateRangePickerProps, type DateRangeValue, } from "./components/date-range-picker";
|
|
47
|
-
export { default as RangeCalendar, type RangeCalendarProps, type RangeCalendarValue, } from "./components/range-calendar";
|
|
48
|
-
export { default as Drawer, DrawerRoot, DrawerTrigger, DrawerBackdrop, DrawerContent, DrawerDialog, DrawerHeader, DrawerHeading, DrawerBody, DrawerFooter, DrawerHandle, DrawerCloseTrigger, DrawerClose, } from "./components/drawer";
|
|
23
|
+
export { default as Drawer, DrawerTrigger, DrawerBackdrop, DrawerContent, DrawerDialog, DrawerHeader, DrawerHeading, DrawerBody, DrawerFooter, DrawerHandle, DrawerCloseTrigger, DrawerClose, } from "./components/drawer";
|
|
49
24
|
export type { DrawerPlacement, DrawerSize, DrawerBackdropVariant, DrawerDialogSide, DrawerScrollBehavior, DrawerRootProps, DrawerTriggerProps, DrawerBackdropProps, DrawerContentProps, DrawerDialogProps, DrawerHeaderProps, DrawerHeadingProps, DrawerBodyProps, DrawerFooterProps, DrawerHandleProps, DrawerCloseTriggerProps, DrawerCloseProps, } from "./components/drawer";
|
|
50
25
|
export { default as Dropdown } from "./components/dropdown";
|
|
51
|
-
export { default as
|
|
52
|
-
export type {
|
|
53
|
-
export {
|
|
54
|
-
export
|
|
55
|
-
export {
|
|
56
|
-
export { default as ErrorMessage, ErrorMessageRoot, } from "./components/error-message";
|
|
57
|
-
export type { ErrorMessageProps, ErrorMessageRootProps, } from "./components/error-message";
|
|
58
|
-
export { default as FieldError, FieldErrorRoot, } from "./components/field-error";
|
|
59
|
-
export type { FieldErrorProps, FieldErrorRootProps, FieldErrorRenderProps, } from "./components/field-error";
|
|
60
|
-
export { default as FloatingDock } from "./components/floating-dock";
|
|
61
|
-
export type { FloatingDockProps, FloatingDockItem, FloatingDockDirection, } from "./components/floating-dock";
|
|
26
|
+
export { default as Collapsible } from "./components/collapsible";
|
|
27
|
+
export type { CollapsibleProps, CollapsibleRootProps, CollapsibleHeadingProps, CollapsibleTriggerProps, CollapsibleContentProps, CollapsibleBodyProps, CollapsibleIndicatorProps, } from "./components/collapsible";
|
|
28
|
+
export { Empty, type EmptyProps } from "./components/empty";
|
|
29
|
+
export { default as Dock } from "./components/dock";
|
|
30
|
+
export type { DockProps, DockItem, DockDirection, } from "./components/dock";
|
|
62
31
|
export { default as Flex } from "./components/flex";
|
|
63
|
-
export { default as GlassPanel } from "./components/glass-panel";
|
|
64
32
|
export { GlowCard, type GlowCardProps } from "./components/glow-card";
|
|
65
|
-
export type { GlassPanelProps } from "./components/glass-panel";
|
|
66
33
|
export { MetalBorder, type MetalBorderProps } from "./components/metal-border";
|
|
67
34
|
export type { MetalBorderKind, MetalBorderPreset, MetalBorderResolvedTheme, MetalBorderTheme, } from "./components/metal-border";
|
|
68
35
|
export { default as Footer } from "./components/footer";
|
|
69
36
|
export type { FooterProps, FooterTitleProps } from "./components/footer";
|
|
70
|
-
export { default as Fieldset,
|
|
37
|
+
export { default as Fieldset, FieldsetLegend, FieldGroup, FieldsetActions, } from "./components/fieldset";
|
|
71
38
|
export type { FieldsetProps, FieldsetRootProps, FieldsetLegendProps, FieldGroupProps, FieldsetActionsProps, } from "./components/fieldset";
|
|
72
|
-
export { default as Form,
|
|
73
|
-
export { FormField, FormSubmitButton,
|
|
39
|
+
export { default as Form, FormWithContext, } from "./components/form";
|
|
40
|
+
export { FormField, FormSubmitButton, } from "./components/form";
|
|
74
41
|
export { useDesktop } from "./hooks/layout";
|
|
75
42
|
export type { FormProps, FormRootProps, FormWithContextProps, FormFieldProps, FormSubmitButtonProps, FieldErrorMessageProps, } from "./components/form";
|
|
76
43
|
export { AuthCard, type AuthCardProps } from "./components/auth-card";
|
|
77
|
-
export { AuthForm, type AuthFormProps } from "./components/auth-form";
|
|
78
44
|
export { AuthFieldGroup, type AuthFieldGroupProps } from "./components/auth-field-group";
|
|
79
45
|
export { PasswordField, type PasswordFieldProps } from "./components/password-field";
|
|
80
46
|
export { PasswordRequirements, type PasswordRequirementsProps } from "./components/password-requirements";
|
|
81
|
-
export {
|
|
82
|
-
export {
|
|
47
|
+
export { AuthMessage } from "./components/auth-message";
|
|
48
|
+
export type { AuthMessageProps } from "./components/auth-message";
|
|
83
49
|
export { AuthSubmitButton, type AuthSubmitButtonProps } from "./components/auth-submit-button";
|
|
84
50
|
export { AuthFooterLinks, type AuthFooterLinksProps, type AuthFooterLinkItem } from "./components/auth-footer-links";
|
|
85
51
|
export { AuthPoweredBy, type AuthPoweredByProps } from "./components/auth-powered-by";
|
|
@@ -87,102 +53,76 @@ export { evaluatePasswordRules, matchPasswordConfirmation, type PasswordRuleConf
|
|
|
87
53
|
export { createForm, useFormContext, useField, getFirstFieldError, FormContext, } from "./hooks/form";
|
|
88
54
|
export type { CreateFormOptions, FormApi, AnyFormApi, UseFieldResult, } from "./hooks/form";
|
|
89
55
|
export { default as Grid } from "./components/grid";
|
|
90
|
-
export { default as Header
|
|
56
|
+
export { default as Header } from "./components/header";
|
|
91
57
|
export type { HeaderProps, HeaderRootProps } from "./components/header";
|
|
92
58
|
export { default as Icon } from "./components/icon";
|
|
93
59
|
export { default as ImmersiveLanding, useImmersiveLanding, useImmersiveLandingContext, ImmersiveLandingContext, CookieConsent, PWAInstallPrompt, FirefoxPWABanner, } from "./components/immersive-landing";
|
|
94
60
|
export type { ImmersiveLandingProps, ImmersiveLandingPageProps, ImmersiveLandingArrowsProps, ImmersiveLandingNavigationProps, ImmersiveLandingContextValue, UseImmersiveLandingOptions, UseImmersiveLandingReturn, CookieConsentProps, CookieConsentTexts, CookieConsentStorageKeys, PWAInstallPromptProps, PWAInstallPromptTexts, FirefoxPWABannerProps, FirefoxPWABannerTexts, } from "./components/immersive-landing";
|
|
95
61
|
export { default as Input } from "./components/input";
|
|
96
|
-
export { default as
|
|
97
|
-
export type { InputGroupProps, InputGroupRootProps, InputGroupInputProps, InputGroupTextAreaProps, InputGroupPrefixProps, InputGroupSuffixProps, InputGroupVariant, } from "./components/input-group";
|
|
98
|
-
export { default as InputOTP, InputOTPRoot, InputOTPGroup, InputOTPSlot, InputOTPSeparator, REGEXP_ONLY_DIGITS, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS_AND_CHARS, } from "./components/input-otp";
|
|
99
|
-
export type { InputOTPProps, InputOTPRootProps, InputOTPGroupProps, InputOTPSlotProps, InputOTPSeparatorProps, InputOTPVariant, } from "./components/input-otp";
|
|
100
|
-
export { default as Join } from "./components/join";
|
|
101
|
-
export { default as Kbd, KbdRoot, KbdAbbr, KbdContent, kbdKeysMap, kbdKeysLabelMap, } from "./components/kbd";
|
|
102
|
-
export type { KbdProps, KbdRootProps, KbdAbbrProps, KbdContentProps, KbdVariant, KbdKey, } from "./components/kbd";
|
|
103
|
-
export { default as Label, LabelRoot } from "./components/label";
|
|
62
|
+
export { default as Label } from "./components/label";
|
|
104
63
|
export type { LabelProps, LabelRootProps } from "./components/label";
|
|
105
|
-
export { default as Link,
|
|
64
|
+
export { default as Link, LinkIcon } from "./components/link";
|
|
106
65
|
export type { LinkProps, LinkRootProps, LinkIconProps, LinkVariant, LinkUnderline, } from "./components/link";
|
|
107
|
-
export { default as ListBox, ListBoxRoot, ListBoxItem, ListBoxItemRoot, ListBoxItemIndicator, ListBoxSection, ListBoxSectionRoot, } from "./components/list-box";
|
|
108
|
-
export type { ListBoxProps, ListBoxRootProps, ListBoxSelectionMode, ListBoxVariant, ListBoxItemProps, ListBoxItemRootProps, ListBoxItemIndicatorProps, ListBoxItemRenderProps, ListBoxSectionProps, ListBoxSectionRootProps, } from "./components/list-box";
|
|
109
66
|
export { LiveChatBubble, LiveChatPanel } from "./components/live-chat";
|
|
110
67
|
export type { LiveChatBubbleProps, LiveChatPanelProps, ChatMessage, SendMessagePayload, SendMessageResponse, } from "./components/live-chat";
|
|
111
68
|
export { default as Spinner } from "./components/spinner";
|
|
112
|
-
export {
|
|
113
|
-
export type { SpinnerProps, SpinnerSize, SpinnerColor, SpinnerVariant, } from "./components/spinner";
|
|
69
|
+
export type { SpinnerProps, SpinnerShape } from "./components/spinner";
|
|
114
70
|
export { LanguageSwitcher, createI18n, I18nProvider, I18nContext, useI18n, } from "./components/language-switcher";
|
|
115
71
|
export type { LanguageSwitcherProps, I18nStore, I18nOptions, I18nContextValue, I18nProviderProps, Language, } from "./components/language-switcher";
|
|
116
|
-
export { default as
|
|
117
|
-
export type {
|
|
118
|
-
export { default as Modal, ModalRoot, ModalTrigger, ModalBackdrop, ModalContent, ModalHeader, ModalHeading, ModalIcon, ModalBody, ModalFooter, ModalCloseTrigger, } from "./components/modal";
|
|
119
|
-
export type { ModalProps, DialogProps, ModalPlacement, ModalSize, ModalBackdropVariant, ModalScrollBehavior, ModalRootProps, ModalTriggerProps, ModalBackdropProps, ModalContentProps, ModalHeaderProps, ModalHeadingProps, ModalIconProps, ModalBodyProps, ModalFooterProps, ModalCloseTriggerProps, } from "./components/modal";
|
|
120
|
-
export { default as Meter, MeterRoot, MeterOutput, MeterTrack, MeterFill, } from "./components/meter";
|
|
121
|
-
export type { MeterProps, MeterRootProps, MeterOutputProps, MeterTrackProps, MeterFillProps, MeterSize, MeterColor, MeterRenderState, } from "./components/meter";
|
|
72
|
+
export { default as Dialog, DialogTrigger, DialogBackdrop, DialogContent, DialogHeader, DialogHeading, DialogIcon, DialogBody, DialogFooter, DialogCloseTrigger, } from "./components/dialog";
|
|
73
|
+
export type { DialogProps, DialogPanelProps, DialogPlacement, DialogSize, DialogBackdropVariant, DialogScrollBehavior, DialogRootProps, DialogTriggerProps, DialogBackdropProps, DialogContentProps, DialogHeaderProps, DialogHeadingProps, DialogIconProps, DialogBodyProps, DialogFooterProps, DialogCloseTriggerProps, } from "./components/dialog";
|
|
122
74
|
export { default as Navbar } from "./components/navbar";
|
|
123
75
|
export type { NavbarProps } from "./components/navbar";
|
|
124
76
|
export type { NavbarStackProps } from "./components/navbar/NavbarStack.generated";
|
|
125
77
|
export type { NavbarRowProps } from "./components/navbar/NavbarRow.generated";
|
|
126
|
-
export { default as NumberField, NumberFieldRoot, NumberFieldGroup, NumberFieldInput, NumberFieldIncrementButton, NumberFieldDecrementButton, } from "./components/number-field";
|
|
127
|
-
export type { NumberFieldProps, NumberFieldRootProps, NumberFieldGroupProps, NumberFieldInputProps, NumberFieldIncrementButtonProps, NumberFieldDecrementButtonProps, NumberFieldVariant, NumberFieldRenderProps, } from "./components/number-field";
|
|
128
|
-
export { default as NoiseBackground } from "./components/noise-background";
|
|
129
|
-
export type { NoiseBackgroundProps } from "./components/noise-background";
|
|
130
78
|
export { default as Pagination } from "./components/pagination";
|
|
131
79
|
export type { PaginationProps } from "./components/pagination";
|
|
132
|
-
export { default as
|
|
133
|
-
export type {
|
|
134
|
-
export { default as ProgressCircle } from "./components/progress-circle";
|
|
135
|
-
export type { ProgressCircleProps, ProgressCircleSize, ProgressCircleColor, } from "./components/progress-circle";
|
|
80
|
+
export { default as Progress } from "./components/progress";
|
|
81
|
+
export type { ProgressProps, ProgressSize, ProgressColor, } from "./components/progress";
|
|
136
82
|
export { default as Popover } from "./components/popover";
|
|
137
83
|
export type { PopoverProps, PopoverRootProps, PopoverTriggerProps, PopoverContentProps, PopoverDialogProps, PopoverArrowProps, PopoverHeadingProps, } from "./components/popover";
|
|
138
84
|
export { default as Radio } from "./components/radio";
|
|
139
85
|
export { RadioGroup, type RadioGroupProps, type RadioGroupOrientation, type RadioGroupVariant, } from "./components/radio-group";
|
|
140
86
|
export { default as Select } from "./components/select";
|
|
141
|
-
export { default as
|
|
142
|
-
export type {
|
|
143
|
-
export { default as ScrollShadow } from "./components/scroll-shadow";
|
|
144
|
-
export type { ScrollShadowProps, ScrollShadowVisibility, ScrollShadowOrientation, ScrollShadowVariant, } from "./components/scroll-shadow";
|
|
87
|
+
export { default as ScrollArea } from "./components/scroll-area";
|
|
88
|
+
export type { ScrollAreaProps, ScrollAreaVisibility, ScrollAreaOrientation, ScrollAreaVariant, } from "./components/scroll-area";
|
|
145
89
|
export { default as Separator } from "./components/separator";
|
|
146
90
|
export type { SeparatorProps, SeparatorOrientation, SeparatorVariant, } from "./components/separator";
|
|
147
91
|
export { default as Slider } from "./components/slider";
|
|
148
92
|
export type { SliderProps, SliderSize } from "./components/slider";
|
|
149
93
|
export { default as Skeleton } from "./components/skeleton";
|
|
150
|
-
export { default as Surface } from "./components/surface";
|
|
151
|
-
export type { SurfaceVariant, SurfaceVariants, SurfaceProps, } from "./components/surface";
|
|
152
94
|
export { default as Table } from "./components/table";
|
|
153
95
|
export { SortIcon as TableSortIcon, ExpandToggle as TableExpandToggle, VirtualSpacerRow as TableVirtualSpacerRow, MobileListView as TableMobileListView, InlineConfirm as TableInlineConfirm, } from "./components/table";
|
|
154
96
|
export type { TableProps, TableSortDirection, TableSortDescriptor, TableColumnRenderProps, SortIconProps as TableSortIconProps, SortIconState as TableSortIconState, ExpandToggleProps as TableExpandToggleProps, VirtualSpacerRowProps as TableVirtualSpacerRowProps, MobileListViewProps as TableMobileListViewProps, InlineConfirmProps as TableInlineConfirmProps, InlineConfirmVariant as TableInlineConfirmVariant, } from "./components/table";
|
|
155
97
|
export { useTableModel, useTableSorting, useTablePagination, useTableFiltering, useTableSelection, useTableExpansion, toSortDescriptor, toSortingState, useAnchoredOverlayPosition, } from "./hooks/table";
|
|
156
98
|
export type { UseTableModelOptions, UseTableSortingOptions, UseTableSortingResult, HookSortDirection, HookSortDescriptor, UseTablePaginationOptions, UseTablePaginationResult, UseTableFilteringOptions, UseTableFilteringResult, UseTableSelectionOptions, UseTableSelectionResult, TableSelectionState, UseTableExpansionOptions, UseTableExpansionResult, UseAnchoredOverlayPositionOptions, } from "./hooks/table";
|
|
157
|
-
export { default as Tag } from "./components/tag";
|
|
158
|
-
export type { TagProps, TagRootProps, TagRemoveButtonProps, TagSize, TagVariant, } from "./components/tag";
|
|
159
|
-
export { default as TagGroup, TagGroupRoot, TagGroupList, } from "./components/tag-group";
|
|
160
|
-
export type { TagGroupProps, TagGroupRootProps, TagGroupListProps, TagSelectionMode, } from "./components/tag-group";
|
|
161
99
|
export { default as Tabs } from "./components/tabs";
|
|
162
100
|
export type { TabsRootProps, TabListContainerProps, TabListProps, TabProps, TabIndicatorProps, TabSeparatorProps, TabPanelProps, } from "./components/tabs";
|
|
163
|
-
export { default as Text
|
|
101
|
+
export { default as Text } from "./components/text";
|
|
164
102
|
export type { TextProps, TextRootProps, TextSize, TextVariant, TextWeight, TextTransform, TextTracking, TextLeading, TextFamily, } from "./components/text";
|
|
165
|
-
export { default as TextField, TextFieldRoot, TextFieldContext, } from "./components/text-field";
|
|
166
|
-
export type { TextFieldProps, TextFieldRootProps, TextFieldVariant, TextFieldRenderProps, TextFieldContextValue, } from "./components/text-field";
|
|
167
|
-
export { default as TextArea, TextAreaRoot } from "./components/text-area";
|
|
168
|
-
export type { TextAreaProps, TextAreaRootProps, TextAreaVariant, } from "./components/text-area";
|
|
169
103
|
export { default as Textarea } from "./components/textarea";
|
|
170
|
-
export {
|
|
171
|
-
export type { TimeFieldProps, TimeFieldRootProps, TimeFieldGroupProps, TimeFieldInputProps, TimeFieldInputContainerProps, TimeFieldSegmentProps, TimeFieldPrefixProps, TimeFieldSuffixProps, TimeFieldVariant, TimeFieldRenderProps, TimeFieldSegmentValue, } from "./components/time-field";
|
|
172
|
-
export { SizePicker, createSizeStore, getDefaultSizeStore, } from "./components/size-picker";
|
|
173
|
-
export type { SizePickerProps, SizeStore, SizePreset, } from "./components/size-picker";
|
|
174
|
-
export { default as Toolbar, ToolbarRoot, } from "./components/toolbar";
|
|
175
|
-
export type { ToolbarProps, ToolbarRootProps, ToolbarOrientation, } from "./components/toolbar";
|
|
104
|
+
export type { TextareaProps, TextareaRootProps, TextareaVariant, } from "./components/textarea";
|
|
176
105
|
export { ThemeColorPicker, createHueShiftStore, getDefaultHueShiftStore, resetHueShift, } from "./components/theme-color-picker";
|
|
177
106
|
export type { ThemeColorPickerProps, HueShiftStore, } from "./components/theme-color-picker";
|
|
178
|
-
export { default as Toast,
|
|
107
|
+
export { default as Toast, ToastProvider, ToastContent, ToastIndicator, ToastTitle, ToastDescription, ToastActionButton, ToastCloseButton, ToastQueue, toast, toastQueue, DEFAULT_GAP as DEFAULT_TOAST_GAP, DEFAULT_MAX_VISIBLE_TOAST, DEFAULT_SCALE_FACTOR as DEFAULT_TOAST_SCALE_FACTOR, DEFAULT_TOAST_TIMEOUT, DEFAULT_TOAST_WIDTH, } from "./components/toast";
|
|
179
108
|
export type { ToastPlacement, ToastVariant, ToastActionProps, ToastContentValue, ToastQueueAddOptions, ToastQueueItem, ToastQueueOptions, ToastRenderFn, ToastRootProps, ToastProviderProps, ToastContentProps, ToastIndicatorProps, ToastTitleProps, ToastDescriptionProps, ToastActionButtonProps, ToastCloseButtonProps, HeroUIToastOptions, ToastPromiseOptions, ToastFunction, } from "./components/toast";
|
|
180
|
-
export { default as
|
|
181
|
-
export { default as Tooltip,
|
|
109
|
+
export { default as Switch } from "./components/switch";
|
|
110
|
+
export { default as Tooltip, TooltipTrigger, TooltipContent, TooltipArrow, } from "./components/tooltip";
|
|
182
111
|
export type { TooltipPlacement, TooltipRootProps, TooltipTriggerProps, TooltipContentProps, TooltipArrowProps, } from "./components/tooltip";
|
|
183
|
-
export { VideoPreview, type VideoPreviewProps, } from "./components/video-preview";
|
|
184
112
|
export * from "./motion";
|
|
185
113
|
export { useVirtualRows } from "./primitives/virtualizer";
|
|
186
114
|
export type { UseVirtualRowsOptions, UseVirtualRowsResult, VirtualRowsRange, } from "./primitives/virtualizer";
|
|
187
115
|
export { useStreamingBuffer, useStreamingSubscription, } from "./primitives/streaming";
|
|
188
116
|
export type { StreamingBufferStrategy, StreamingSubscribeFn, StreamingSubscriptionObserver, UseStreamingBufferOptions, UseStreamingBufferResult, UseStreamingSubscriptionOptions, UseStreamingSubscriptionResult, } from "./primitives/streaming";
|
|
117
|
+
export type { Flavor, State, Variant, Size, Radius, Space, Width, Height, MaxWidth, Align, Justify, Direction, UIBaseProps, IconSlotProps, Controlled, Issue, ErrorHandler, Failable, Constraint, Validate, ValidateOn, Validatable, OpenChangeReason, ChangeReason, Disclosable, CapabilityProps, } from "./components/vocabulary";
|
|
118
|
+
export { isInvalid, resolveState } from "./components/vocabulary";
|
|
119
|
+
export { FLAVORS, STATES, VARIANTS, SIZES, SPACES } from "./components/vocabulary";
|
|
120
|
+
export { default as InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator, REGEXP_ONLY_DIGITS, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS_AND_CHARS, } from "./components/input-otp";
|
|
121
|
+
export type { InputOTPProps, InputOTPRootProps, InputOTPGroupProps, InputOTPSlotProps, InputOTPSeparatorProps, InputOTPVariant, } from "./components/input-otp";
|
|
122
|
+
export { default as ListBox, ListBoxItem, ListBoxItemIndicator, ListBoxSection, } from "./components/list-box";
|
|
123
|
+
export type { ListBoxProps, ListBoxRootProps, ListBoxSelectionMode, ListBoxVariant, ListBoxItemProps, ListBoxItemRootProps, ListBoxItemIndicatorProps, ListBoxItemRenderProps, ListBoxSectionProps, ListBoxSectionRootProps, } from "./components/list-box";
|
|
124
|
+
export { default as ColorSwatch } from "./components/color-swatch";
|
|
125
|
+
export type { ColorSwatchProps, ColorSwatchShape, ColorSwatchSize, } from "./components/color-swatch";
|
|
126
|
+
export { default as ChatBubble } from "./components/chatbubble";
|
|
127
|
+
export { summarizeStatus, diffStatus } from "./components/status";
|
|
128
|
+
export type { Health, Quality, StatusItem, StatusSummary, StatusTransition } from "./components/status";
|