@knitui/components 0.14.0 → 1.0.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 +2 -2
- package/lib/commonjs/Accordion/Accordion.js +78 -96
- package/lib/commonjs/Accordion/Accordion.js.map +1 -1
- package/lib/commonjs/ActionIcon/ActionIcon.js +127 -61
- package/lib/commonjs/ActionIcon/ActionIcon.js.map +1 -1
- package/lib/commonjs/Affix/Affix.js +16 -20
- package/lib/commonjs/Affix/Affix.js.map +1 -1
- package/lib/commonjs/Alert/Alert.js +53 -53
- package/lib/commonjs/Alert/Alert.js.map +1 -1
- package/lib/commonjs/Anchor/Anchor.js +12 -15
- package/lib/commonjs/Anchor/Anchor.js.map +1 -1
- package/lib/commonjs/AngleSlider/AngleSlider.js +65 -37
- package/lib/commonjs/AngleSlider/AngleSlider.js.map +1 -1
- package/lib/commonjs/AspectRatio/AspectRatio.js +12 -15
- package/lib/commonjs/AspectRatio/AspectRatio.js.map +1 -1
- package/lib/commonjs/Autocomplete/Autocomplete.js +7 -3
- package/lib/commonjs/Autocomplete/Autocomplete.js.map +1 -1
- package/lib/commonjs/Avatar/Avatar.js +27 -24
- package/lib/commonjs/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/BackgroundImage/BackgroundImage.js +15 -6
- package/lib/commonjs/BackgroundImage/BackgroundImage.js.map +1 -1
- package/lib/commonjs/Badge/Badge.js +59 -48
- package/lib/commonjs/Badge/Badge.js.map +1 -1
- package/lib/commonjs/Blockquote/Blockquote.js +80 -79
- package/lib/commonjs/Blockquote/Blockquote.js.map +1 -1
- package/lib/commonjs/Box/Box.js +2 -2
- package/lib/commonjs/Box/Box.js.map +1 -1
- package/lib/commonjs/Breadcrumbs/Breadcrumbs.js +9 -9
- package/lib/commonjs/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/lib/commonjs/Burger/Burger.js +31 -20
- package/lib/commonjs/Burger/Burger.js.map +1 -1
- package/lib/commonjs/Button/Button.js +104 -62
- package/lib/commonjs/Button/Button.js.map +1 -1
- package/lib/commonjs/Card/Card.js +49 -37
- package/lib/commonjs/Card/Card.js.map +1 -1
- package/lib/commonjs/Center/Center.js +2 -2
- package/lib/commonjs/Center/Center.js.map +1 -1
- package/lib/commonjs/Checkbox/CheckIcon.js +5 -4
- package/lib/commonjs/Checkbox/CheckIcon.js.map +1 -1
- package/lib/commonjs/Checkbox/Checkbox.js +98 -68
- package/lib/commonjs/Checkbox/Checkbox.js.map +1 -1
- package/lib/commonjs/Chip/Chip.js +34 -67
- package/lib/commonjs/Chip/Chip.js.map +1 -1
- package/lib/commonjs/CloseButton/CloseButton.js +11 -4
- package/lib/commonjs/CloseButton/CloseButton.js.map +1 -1
- package/lib/commonjs/Code/Code.js +14 -10
- package/lib/commonjs/Code/Code.js.map +1 -1
- package/lib/commonjs/Collapse/Collapse.js +10 -4
- package/lib/commonjs/Collapse/Collapse.js.map +1 -1
- package/lib/commonjs/ColorInput/ColorInput.js +25 -20
- package/lib/commonjs/ColorInput/ColorInput.js.map +1 -1
- package/lib/commonjs/ColorPicker/ColorPicker.js +95 -83
- package/lib/commonjs/ColorPicker/ColorPicker.js.map +1 -1
- package/lib/commonjs/ColorSwatch/ColorSwatch.js +12 -14
- package/lib/commonjs/ColorSwatch/ColorSwatch.js.map +1 -1
- package/lib/commonjs/Combobox/Combobox.js +194 -187
- package/lib/commonjs/Combobox/Combobox.js.map +1 -1
- package/lib/commonjs/Combobox/OptionsDropdown.js +12 -6
- package/lib/commonjs/Combobox/OptionsDropdown.js.map +1 -1
- package/lib/commonjs/Combobox/index.js +6 -0
- package/lib/commonjs/Combobox/index.js.map +1 -1
- package/lib/commonjs/Container/Container.js +12 -19
- package/lib/commonjs/Container/Container.js.map +1 -1
- package/lib/commonjs/Dialog/Dialog.js +15 -14
- package/lib/commonjs/Dialog/Dialog.js.map +1 -1
- package/lib/commonjs/Drawer/Drawer.js +51 -32
- package/lib/commonjs/Drawer/Drawer.js.map +1 -1
- package/lib/commonjs/Fieldset/Fieldset.js +26 -18
- package/lib/commonjs/Fieldset/Fieldset.js.map +1 -1
- package/lib/commonjs/FileButton/FileButton.js +5 -3
- package/lib/commonjs/FileButton/FileButton.js.map +1 -1
- package/lib/commonjs/Flex/Flex.js +24 -27
- package/lib/commonjs/Flex/Flex.js.map +1 -1
- package/lib/commonjs/FocusTrap/FocusTrap.js +4 -3
- package/lib/commonjs/FocusTrap/FocusTrap.js.map +1 -1
- package/lib/commonjs/Grid/Grid.js +21 -18
- package/lib/commonjs/Grid/Grid.js.map +1 -1
- package/lib/commonjs/Group/Group.js +3 -3
- package/lib/commonjs/Group/Group.js.map +1 -1
- package/lib/commonjs/Highlight/Highlight.js +2 -1
- package/lib/commonjs/Highlight/Highlight.js.map +1 -1
- package/lib/commonjs/HoverCard/HoverCard.js +6 -23
- package/lib/commonjs/HoverCard/HoverCard.js.map +1 -1
- package/lib/commonjs/Image/Image.native.js +1 -1
- package/lib/commonjs/Image/createImage.js +88 -56
- package/lib/commonjs/Image/createImage.js.map +1 -1
- package/lib/commonjs/Indicator/Indicator.js +36 -29
- package/lib/commonjs/Indicator/Indicator.js.map +1 -1
- package/lib/commonjs/Input/Input.js +87 -119
- package/lib/commonjs/Input/Input.js.map +1 -1
- package/lib/commonjs/Input/Input.native.js +40 -30
- package/lib/commonjs/Input/Input.native.js.map +1 -1
- package/lib/commonjs/Input/shared.js +148 -225
- package/lib/commonjs/Input/shared.js.map +1 -1
- package/lib/commonjs/InputBase/InputBase.js +2 -1
- package/lib/commonjs/InputBase/InputBase.js.map +1 -1
- package/lib/commonjs/Kbd/Kbd.js +12 -18
- package/lib/commonjs/Kbd/Kbd.js.map +1 -1
- package/lib/commonjs/KeyboardAvoidingView/KeyboardAvoidingView.native.js +2 -2
- package/lib/commonjs/KeyboardAvoidingView/KeyboardAvoidingView.native.js.map +1 -1
- package/lib/commonjs/KeyboardAwareScrollView/KeyboardAwareScrollView.native.js +1 -1
- package/lib/commonjs/KeyboardAwareScrollView/KeyboardAwareScrollView.native.js.map +1 -1
- package/lib/commonjs/List/List.js +10 -10
- package/lib/commonjs/List/List.js.map +1 -1
- package/lib/commonjs/Loader/Loader.js +31 -37
- package/lib/commonjs/Loader/Loader.js.map +1 -1
- package/lib/commonjs/LoadingOverlay/LoadingOverlay.js +2 -1
- package/lib/commonjs/LoadingOverlay/LoadingOverlay.js.map +1 -1
- package/lib/commonjs/Mark/Mark.js +12 -15
- package/lib/commonjs/Mark/Mark.js.map +1 -1
- package/lib/commonjs/Marquee/Marquee.js +66 -48
- package/lib/commonjs/Marquee/Marquee.js.map +1 -1
- package/lib/commonjs/MaskInput/MaskInput.js +2 -1
- package/lib/commonjs/MaskInput/MaskInput.js.map +1 -1
- package/lib/commonjs/Menu/Menu.js +84 -48
- package/lib/commonjs/Menu/Menu.js.map +1 -1
- package/lib/commonjs/Modal/Modal.js +34 -30
- package/lib/commonjs/Modal/Modal.js.map +1 -1
- package/lib/commonjs/Modal/drag/DragDismissHost.web.js +10 -6
- package/lib/commonjs/Modal/drag/DragDismissHost.web.js.map +1 -1
- package/lib/commonjs/Modal/drag/DragDismissOverlay.web.js +6 -8
- package/lib/commonjs/Modal/drag/DragDismissOverlay.web.js.map +1 -1
- package/lib/commonjs/Modal/drag/index.js.map +1 -1
- package/lib/commonjs/Modal/modal-base-inner.js +1 -1
- package/lib/commonjs/Modal/modal-base-inner.js.map +1 -1
- package/lib/commonjs/Modal/modal-base-inner.native.js +3 -2
- package/lib/commonjs/Modal/modal-base-inner.native.js.map +1 -1
- package/lib/commonjs/Modal/modal-base.js +22 -9
- package/lib/commonjs/Modal/modal-base.js.map +1 -1
- package/lib/commonjs/MultiSelect/MultiSelect.js +6 -2
- package/lib/commonjs/MultiSelect/MultiSelect.js.map +1 -1
- package/lib/commonjs/NativeSelect/NativeSelect.js +25 -30
- package/lib/commonjs/NativeSelect/NativeSelect.js.map +1 -1
- package/lib/commonjs/NavLink/NavLink.js +63 -58
- package/lib/commonjs/NavLink/NavLink.js.map +1 -1
- package/lib/commonjs/Notification/Notification.js +28 -28
- package/lib/commonjs/Notification/Notification.js.map +1 -1
- package/lib/commonjs/NumberFormatter/NumberFormatter.js +2 -2
- package/lib/commonjs/NumberFormatter/NumberFormatter.js.map +1 -1
- package/lib/commonjs/NumberInput/NumberInput.js +46 -43
- package/lib/commonjs/NumberInput/NumberInput.js.map +1 -1
- package/lib/commonjs/Overlay/Overlay.js +18 -11
- package/lib/commonjs/Overlay/Overlay.js.map +1 -1
- package/lib/commonjs/Pagination/Pagination.js +125 -120
- package/lib/commonjs/Pagination/Pagination.js.map +1 -1
- package/lib/commonjs/Paper/Paper.js +7 -8
- package/lib/commonjs/Paper/Paper.js.map +1 -1
- package/lib/commonjs/Paragraph/Paragraph.js +7 -10
- package/lib/commonjs/Paragraph/Paragraph.js.map +1 -1
- package/lib/commonjs/PasswordInput/PasswordInput.js +3 -3
- package/lib/commonjs/PasswordInput/PasswordInput.js.map +1 -1
- package/lib/commonjs/Pill/Pill.js +39 -33
- package/lib/commonjs/Pill/Pill.js.map +1 -1
- package/lib/commonjs/PillsInput/PillsInput.js +58 -31
- package/lib/commonjs/PillsInput/PillsInput.js.map +1 -1
- package/lib/commonjs/PinInput/PinInput.js +26 -20
- package/lib/commonjs/PinInput/PinInput.js.map +1 -1
- package/lib/commonjs/Popover/Popover.native.js +6 -2
- package/lib/commonjs/Popover/Popover.native.js.map +1 -1
- package/lib/commonjs/Popover/Popover.shared.js +33 -22
- package/lib/commonjs/Popover/Popover.shared.js.map +1 -1
- package/lib/commonjs/Progress/Progress.js +37 -26
- package/lib/commonjs/Progress/Progress.js.map +1 -1
- package/lib/commonjs/Radio/Radio.js +81 -93
- package/lib/commonjs/Radio/Radio.js.map +1 -1
- package/lib/commonjs/Radio/RadioIcon.js +4 -6
- package/lib/commonjs/Radio/RadioIcon.js.map +1 -1
- package/lib/commonjs/Rating/Rating.js +48 -38
- package/lib/commonjs/Rating/Rating.js.map +1 -1
- package/lib/commonjs/RollingNumber/RollingNumber.js +48 -24
- package/lib/commonjs/RollingNumber/RollingNumber.js.map +1 -1
- package/lib/commonjs/ScrollArea/ScrollArea.js +40 -37
- package/lib/commonjs/ScrollArea/ScrollArea.js.map +1 -1
- package/lib/commonjs/ScrollArea/ScrollArea.native.js +21 -26
- package/lib/commonjs/ScrollArea/ScrollArea.native.js.map +1 -1
- package/lib/commonjs/SegmentedControl/SegmentedControl.js +106 -55
- package/lib/commonjs/SegmentedControl/SegmentedControl.js.map +1 -1
- package/lib/commonjs/Select/Select.js +7 -3
- package/lib/commonjs/Select/Select.js.map +1 -1
- package/lib/commonjs/Separator/Separator.js +47 -39
- package/lib/commonjs/Separator/Separator.js.map +1 -1
- package/lib/commonjs/SimpleGrid/SimpleGrid.js +12 -14
- package/lib/commonjs/SimpleGrid/SimpleGrid.js.map +1 -1
- package/lib/commonjs/Skeleton/Skeleton.js +39 -24
- package/lib/commonjs/Skeleton/Skeleton.js.map +1 -1
- package/lib/commonjs/Slider/Slider.js +308 -257
- package/lib/commonjs/Slider/Slider.js.map +1 -1
- package/lib/commonjs/Spacer/Spacer.js +15 -29
- package/lib/commonjs/Spacer/Spacer.js.map +1 -1
- package/lib/commonjs/Spoiler/Spoiler.js +16 -16
- package/lib/commonjs/Spoiler/Spoiler.js.map +1 -1
- package/lib/commonjs/Stack/Stack.js +3 -3
- package/lib/commonjs/Stack/Stack.js.map +1 -1
- package/lib/commonjs/Stepper/Stepper.js +96 -71
- package/lib/commonjs/Stepper/Stepper.js.map +1 -1
- package/lib/commonjs/Switch/Switch.js +71 -67
- package/lib/commonjs/Switch/Switch.js.map +1 -1
- package/lib/commonjs/Table/Table.js +96 -82
- package/lib/commonjs/Table/Table.js.map +1 -1
- package/lib/commonjs/TableOfContents/TableOfContents.js +94 -95
- package/lib/commonjs/TableOfContents/TableOfContents.js.map +1 -1
- package/lib/commonjs/Tabs/Tabs.js +71 -73
- package/lib/commonjs/Tabs/Tabs.js.map +1 -1
- package/lib/commonjs/TagsInput/TagsInput.js +19 -3
- package/lib/commonjs/TagsInput/TagsInput.js.map +1 -1
- package/lib/commonjs/Text/Text.js +29 -14
- package/lib/commonjs/Text/Text.js.map +1 -1
- package/lib/commonjs/TextInput/TextInput.js +2 -1
- package/lib/commonjs/TextInput/TextInput.js.map +1 -1
- package/lib/commonjs/Textarea/Textarea.js +1 -1
- package/lib/commonjs/Textarea/Textarea.js.map +1 -1
- package/lib/commonjs/ThemeIcon/ThemeIcon.js +9 -5
- package/lib/commonjs/ThemeIcon/ThemeIcon.js.map +1 -1
- package/lib/commonjs/Title/Title.js +49 -32
- package/lib/commonjs/Title/Title.js.map +1 -1
- package/lib/commonjs/Tooltip/Tooltip.js +43 -27
- package/lib/commonjs/Tooltip/Tooltip.js.map +1 -1
- package/lib/commonjs/Transition/Transition.native.js +11 -10
- package/lib/commonjs/Transition/Transition.native.js.map +1 -1
- package/lib/commonjs/Transition/use-overlay-transition.native.js +2 -5
- package/lib/commonjs/Transition/use-overlay-transition.native.js.map +1 -1
- package/lib/commonjs/Tree/Tree.js +30 -34
- package/lib/commonjs/Tree/Tree.js.map +1 -1
- package/lib/commonjs/TreeSelect/TreeSelect.js +50 -26
- package/lib/commonjs/TreeSelect/TreeSelect.js.map +1 -1
- package/lib/commonjs/Typography/Typography.js +5 -7
- package/lib/commonjs/Typography/Typography.js.map +1 -1
- package/lib/commonjs/UnstyledButton/UnstyledButton.js +4 -4
- package/lib/commonjs/UnstyledButton/UnstyledButton.js.map +1 -1
- package/lib/commonjs/VirtualList/VirtualList.js +23 -7
- package/lib/commonjs/VirtualList/VirtualList.js.map +1 -1
- package/lib/commonjs/VisuallyHidden/VisuallyHidden.js +7 -10
- package/lib/commonjs/VisuallyHidden/VisuallyHidden.js.map +1 -1
- package/lib/commonjs/control-system.js +7 -0
- package/lib/commonjs/control-system.js.map +1 -1
- package/lib/commonjs/index.js +6 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internal/ControlIconProvider.js +1 -1
- package/lib/commonjs/internal/ControlIconProvider.js.map +1 -1
- package/lib/commonjs/internal/InlineControl.js +24 -29
- package/lib/commonjs/internal/InlineControl.js.map +1 -1
- package/lib/commonjs/internal/collapse-box.js +12 -10
- package/lib/commonjs/internal/collapse-box.js.map +1 -1
- package/lib/commonjs/internal/control-icon-size.js +5 -8
- package/lib/commonjs/internal/control-icon-size.js.map +1 -1
- package/lib/commonjs/internal/control-metrics.js +51 -51
- package/lib/commonjs/internal/control-metrics.js.map +1 -1
- package/lib/commonjs/internal/floating-arrow.js +43 -29
- package/lib/commonjs/internal/floating-arrow.js.map +1 -1
- package/lib/commonjs/internal/focus-ring.js +99 -0
- package/lib/commonjs/internal/focus-ring.js.map +1 -0
- package/lib/commonjs/internal/gradient-shared.js +7 -7
- package/lib/commonjs/internal/gradient-shared.js.map +1 -1
- package/lib/commonjs/internal/gradient.native.js +1 -1
- package/lib/commonjs/internal/motion.js +247 -359
- package/lib/commonjs/internal/motion.js.map +1 -1
- package/lib/commonjs/internal/resolve-theme-color.js +10 -10
- package/lib/commonjs/internal/resolve-theme-color.js.map +1 -1
- package/lib/commonjs/internal/style-props.js +510 -464
- package/lib/commonjs/internal/style-props.js.map +1 -1
- package/lib/commonjs/internal/theme-color-web.js +44 -26
- package/lib/commonjs/internal/theme-color-web.js.map +1 -1
- package/lib/commonjs/internal/use-icon-color.js +1 -1
- package/lib/commonjs/internal/use-icon-color.native.js +1 -1
- package/lib/commonjs/internal/use-slot-text-wrapper.js +1 -1
- package/lib/commonjs/internal/variant-colors.js +163 -229
- package/lib/commonjs/internal/variant-colors.js.map +1 -1
- package/lib/module/Accordion/Accordion.js +80 -98
- package/lib/module/Accordion/Accordion.js.map +1 -1
- package/lib/module/ActionIcon/ActionIcon.js +128 -62
- package/lib/module/ActionIcon/ActionIcon.js.map +1 -1
- package/lib/module/Affix/Affix.js +17 -21
- package/lib/module/Affix/Affix.js.map +1 -1
- package/lib/module/Alert/Alert.js +54 -54
- package/lib/module/Alert/Alert.js.map +1 -1
- package/lib/module/Anchor/Anchor.js +13 -16
- package/lib/module/Anchor/Anchor.js.map +1 -1
- package/lib/module/AngleSlider/AngleSlider.js +66 -38
- package/lib/module/AngleSlider/AngleSlider.js.map +1 -1
- package/lib/module/AspectRatio/AspectRatio.js +10 -14
- package/lib/module/AspectRatio/AspectRatio.js.map +1 -1
- package/lib/module/Autocomplete/Autocomplete.js +8 -4
- package/lib/module/Autocomplete/Autocomplete.js.map +1 -1
- package/lib/module/Avatar/Avatar.js +29 -26
- package/lib/module/Avatar/Avatar.js.map +1 -1
- package/lib/module/BackgroundImage/BackgroundImage.js +16 -7
- package/lib/module/BackgroundImage/BackgroundImage.js.map +1 -1
- package/lib/module/Badge/Badge.js +61 -50
- package/lib/module/Badge/Badge.js.map +1 -1
- package/lib/module/Blockquote/Blockquote.js +82 -81
- package/lib/module/Blockquote/Blockquote.js.map +1 -1
- package/lib/module/Box/Box.js +2 -2
- package/lib/module/Box/Box.js.map +1 -1
- package/lib/module/Breadcrumbs/Breadcrumbs.js +10 -10
- package/lib/module/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/lib/module/Burger/Burger.js +32 -21
- package/lib/module/Burger/Burger.js.map +1 -1
- package/lib/module/Button/Button.js +105 -63
- package/lib/module/Button/Button.js.map +1 -1
- package/lib/module/Card/Card.js +51 -39
- package/lib/module/Card/Card.js.map +1 -1
- package/lib/module/Center/Center.js +3 -3
- package/lib/module/Center/Center.js.map +1 -1
- package/lib/module/Checkbox/CheckIcon.js +5 -4
- package/lib/module/Checkbox/CheckIcon.js.map +1 -1
- package/lib/module/Checkbox/Checkbox.js +100 -70
- package/lib/module/Checkbox/Checkbox.js.map +1 -1
- package/lib/module/Chip/Chip.js +35 -68
- package/lib/module/Chip/Chip.js.map +1 -1
- package/lib/module/CloseButton/CloseButton.js +12 -5
- package/lib/module/CloseButton/CloseButton.js.map +1 -1
- package/lib/module/Code/Code.js +15 -11
- package/lib/module/Code/Code.js.map +1 -1
- package/lib/module/Collapse/Collapse.js +11 -5
- package/lib/module/Collapse/Collapse.js.map +1 -1
- package/lib/module/ColorInput/ColorInput.js +26 -21
- package/lib/module/ColorInput/ColorInput.js.map +1 -1
- package/lib/module/ColorPicker/ColorPicker.js +96 -84
- package/lib/module/ColorPicker/ColorPicker.js.map +1 -1
- package/lib/module/ColorSwatch/ColorSwatch.js +13 -15
- package/lib/module/ColorSwatch/ColorSwatch.js.map +1 -1
- package/lib/module/Combobox/Combobox.js +194 -188
- package/lib/module/Combobox/Combobox.js.map +1 -1
- package/lib/module/Combobox/OptionsDropdown.js +13 -7
- package/lib/module/Combobox/OptionsDropdown.js.map +1 -1
- package/lib/module/Combobox/index.js +1 -1
- package/lib/module/Combobox/index.js.map +1 -1
- package/lib/module/Container/Container.js +12 -19
- package/lib/module/Container/Container.js.map +1 -1
- package/lib/module/Dialog/Dialog.js +16 -15
- package/lib/module/Dialog/Dialog.js.map +1 -1
- package/lib/module/Drawer/Drawer.js +53 -34
- package/lib/module/Drawer/Drawer.js.map +1 -1
- package/lib/module/Fieldset/Fieldset.js +27 -19
- package/lib/module/Fieldset/Fieldset.js.map +1 -1
- package/lib/module/FileButton/FileButton.js +5 -3
- package/lib/module/FileButton/FileButton.js.map +1 -1
- package/lib/module/Flex/Flex.js +24 -28
- package/lib/module/Flex/Flex.js.map +1 -1
- package/lib/module/FocusTrap/FocusTrap.js +4 -3
- package/lib/module/FocusTrap/FocusTrap.js.map +1 -1
- package/lib/module/Grid/Grid.js +22 -19
- package/lib/module/Grid/Grid.js.map +1 -1
- package/lib/module/Group/Group.js +4 -4
- package/lib/module/Group/Group.js.map +1 -1
- package/lib/module/Highlight/Highlight.js +2 -1
- package/lib/module/Highlight/Highlight.js.map +1 -1
- package/lib/module/HoverCard/HoverCard.js +8 -25
- package/lib/module/HoverCard/HoverCard.js.map +1 -1
- package/lib/module/Image/Image.native.js +1 -1
- package/lib/module/Image/createImage.js +88 -56
- package/lib/module/Image/createImage.js.map +1 -1
- package/lib/module/Indicator/Indicator.js +37 -30
- package/lib/module/Indicator/Indicator.js.map +1 -1
- package/lib/module/Input/Input.js +89 -121
- package/lib/module/Input/Input.js.map +1 -1
- package/lib/module/Input/Input.native.js +42 -32
- package/lib/module/Input/Input.native.js.map +1 -1
- package/lib/module/Input/shared.js +148 -225
- package/lib/module/Input/shared.js.map +1 -1
- package/lib/module/InputBase/InputBase.js +2 -1
- package/lib/module/InputBase/InputBase.js.map +1 -1
- package/lib/module/Kbd/Kbd.js +12 -18
- package/lib/module/Kbd/Kbd.js.map +1 -1
- package/lib/module/KeyboardAvoidingView/KeyboardAvoidingView.native.js +2 -2
- package/lib/module/KeyboardAvoidingView/KeyboardAvoidingView.native.js.map +1 -1
- package/lib/module/KeyboardAwareScrollView/KeyboardAwareScrollView.native.js +1 -1
- package/lib/module/KeyboardAwareScrollView/KeyboardAwareScrollView.native.js.map +1 -1
- package/lib/module/List/List.js +11 -11
- package/lib/module/List/List.js.map +1 -1
- package/lib/module/Loader/Loader.js +33 -39
- package/lib/module/Loader/Loader.js.map +1 -1
- package/lib/module/LoadingOverlay/LoadingOverlay.js +2 -1
- package/lib/module/LoadingOverlay/LoadingOverlay.js.map +1 -1
- package/lib/module/Mark/Mark.js +11 -15
- package/lib/module/Mark/Mark.js.map +1 -1
- package/lib/module/Marquee/Marquee.js +66 -48
- package/lib/module/Marquee/Marquee.js.map +1 -1
- package/lib/module/MaskInput/MaskInput.js +2 -1
- package/lib/module/MaskInput/MaskInput.js.map +1 -1
- package/lib/module/Menu/Menu.js +86 -50
- package/lib/module/Menu/Menu.js.map +1 -1
- package/lib/module/Modal/Modal.js +35 -31
- package/lib/module/Modal/Modal.js.map +1 -1
- package/lib/module/Modal/drag/DragDismissHost.web.js +10 -6
- package/lib/module/Modal/drag/DragDismissHost.web.js.map +1 -1
- package/lib/module/Modal/drag/DragDismissOverlay.web.js +6 -8
- package/lib/module/Modal/drag/DragDismissOverlay.web.js.map +1 -1
- package/lib/module/Modal/drag/index.js +1 -1
- package/lib/module/Modal/drag/index.js.map +1 -1
- package/lib/module/Modal/modal-base-inner.js +1 -1
- package/lib/module/Modal/modal-base-inner.js.map +1 -1
- package/lib/module/Modal/modal-base-inner.native.js +3 -2
- package/lib/module/Modal/modal-base-inner.native.js.map +1 -1
- package/lib/module/Modal/modal-base.js +22 -9
- package/lib/module/Modal/modal-base.js.map +1 -1
- package/lib/module/MultiSelect/MultiSelect.js +7 -3
- package/lib/module/MultiSelect/MultiSelect.js.map +1 -1
- package/lib/module/NativeSelect/NativeSelect.js +26 -31
- package/lib/module/NativeSelect/NativeSelect.js.map +1 -1
- package/lib/module/NavLink/NavLink.js +64 -59
- package/lib/module/NavLink/NavLink.js.map +1 -1
- package/lib/module/Notification/Notification.js +29 -29
- package/lib/module/Notification/Notification.js.map +1 -1
- package/lib/module/NumberFormatter/NumberFormatter.js +3 -3
- package/lib/module/NumberFormatter/NumberFormatter.js.map +1 -1
- package/lib/module/NumberInput/NumberInput.js +49 -46
- package/lib/module/NumberInput/NumberInput.js.map +1 -1
- package/lib/module/Overlay/Overlay.js +19 -12
- package/lib/module/Overlay/Overlay.js.map +1 -1
- package/lib/module/Pagination/Pagination.js +127 -122
- package/lib/module/Pagination/Pagination.js.map +1 -1
- package/lib/module/Paper/Paper.js +8 -9
- package/lib/module/Paper/Paper.js.map +1 -1
- package/lib/module/Paragraph/Paragraph.js +6 -10
- package/lib/module/Paragraph/Paragraph.js.map +1 -1
- package/lib/module/PasswordInput/PasswordInput.js +4 -4
- package/lib/module/PasswordInput/PasswordInput.js.map +1 -1
- package/lib/module/Pill/Pill.js +40 -34
- package/lib/module/Pill/Pill.js.map +1 -1
- package/lib/module/PillsInput/PillsInput.js +59 -32
- package/lib/module/PillsInput/PillsInput.js.map +1 -1
- package/lib/module/PinInput/PinInput.js +27 -21
- package/lib/module/PinInput/PinInput.js.map +1 -1
- package/lib/module/Popover/Popover.native.js +6 -2
- package/lib/module/Popover/Popover.native.js.map +1 -1
- package/lib/module/Popover/Popover.shared.js +34 -23
- package/lib/module/Popover/Popover.shared.js.map +1 -1
- package/lib/module/Progress/Progress.js +39 -28
- package/lib/module/Progress/Progress.js.map +1 -1
- package/lib/module/Radio/Radio.js +83 -95
- package/lib/module/Radio/Radio.js.map +1 -1
- package/lib/module/Radio/RadioIcon.js +4 -6
- package/lib/module/Radio/RadioIcon.js.map +1 -1
- package/lib/module/Rating/Rating.js +50 -40
- package/lib/module/Rating/Rating.js.map +1 -1
- package/lib/module/RollingNumber/RollingNumber.js +49 -25
- package/lib/module/RollingNumber/RollingNumber.js.map +1 -1
- package/lib/module/ScrollArea/ScrollArea.js +41 -38
- package/lib/module/ScrollArea/ScrollArea.js.map +1 -1
- package/lib/module/ScrollArea/ScrollArea.native.js +22 -27
- package/lib/module/ScrollArea/ScrollArea.native.js.map +1 -1
- package/lib/module/SegmentedControl/SegmentedControl.js +108 -57
- package/lib/module/SegmentedControl/SegmentedControl.js.map +1 -1
- package/lib/module/Select/Select.js +8 -4
- package/lib/module/Select/Select.js.map +1 -1
- package/lib/module/Separator/Separator.js +49 -41
- package/lib/module/Separator/Separator.js.map +1 -1
- package/lib/module/SimpleGrid/SimpleGrid.js +14 -16
- package/lib/module/SimpleGrid/SimpleGrid.js.map +1 -1
- package/lib/module/Skeleton/Skeleton.js +40 -25
- package/lib/module/Skeleton/Skeleton.js.map +1 -1
- package/lib/module/Slider/Slider.js +309 -258
- package/lib/module/Slider/Slider.js.map +1 -1
- package/lib/module/Spacer/Spacer.js +16 -29
- package/lib/module/Spacer/Spacer.js.map +1 -1
- package/lib/module/Spoiler/Spoiler.js +17 -17
- package/lib/module/Spoiler/Spoiler.js.map +1 -1
- package/lib/module/Stack/Stack.js +3 -3
- package/lib/module/Stack/Stack.js.map +1 -1
- package/lib/module/Stepper/Stepper.js +97 -72
- package/lib/module/Stepper/Stepper.js.map +1 -1
- package/lib/module/Switch/Switch.js +73 -69
- package/lib/module/Switch/Switch.js.map +1 -1
- package/lib/module/Table/Table.js +99 -85
- package/lib/module/Table/Table.js.map +1 -1
- package/lib/module/TableOfContents/TableOfContents.js +96 -97
- package/lib/module/TableOfContents/TableOfContents.js.map +1 -1
- package/lib/module/Tabs/Tabs.js +72 -74
- package/lib/module/Tabs/Tabs.js.map +1 -1
- package/lib/module/TagsInput/TagsInput.js +21 -5
- package/lib/module/TagsInput/TagsInput.js.map +1 -1
- package/lib/module/Text/Text.js +29 -14
- package/lib/module/Text/Text.js.map +1 -1
- package/lib/module/TextInput/TextInput.js +2 -1
- package/lib/module/TextInput/TextInput.js.map +1 -1
- package/lib/module/Textarea/Textarea.js +2 -2
- package/lib/module/Textarea/Textarea.js.map +1 -1
- package/lib/module/ThemeIcon/ThemeIcon.js +10 -6
- package/lib/module/ThemeIcon/ThemeIcon.js.map +1 -1
- package/lib/module/Title/Title.js +51 -34
- package/lib/module/Title/Title.js.map +1 -1
- package/lib/module/Tooltip/Tooltip.js +44 -28
- package/lib/module/Tooltip/Tooltip.js.map +1 -1
- package/lib/module/Transition/Transition.native.js +12 -11
- package/lib/module/Transition/Transition.native.js.map +1 -1
- package/lib/module/Transition/use-overlay-transition.native.js +3 -6
- package/lib/module/Transition/use-overlay-transition.native.js.map +1 -1
- package/lib/module/Tree/Tree.js +31 -35
- package/lib/module/Tree/Tree.js.map +1 -1
- package/lib/module/TreeSelect/TreeSelect.js +52 -28
- package/lib/module/TreeSelect/TreeSelect.js.map +1 -1
- package/lib/module/Typography/Typography.js +5 -7
- package/lib/module/Typography/Typography.js.map +1 -1
- package/lib/module/UnstyledButton/UnstyledButton.js +5 -5
- package/lib/module/UnstyledButton/UnstyledButton.js.map +1 -1
- package/lib/module/VirtualList/VirtualList.js +23 -7
- package/lib/module/VirtualList/VirtualList.js.map +1 -1
- package/lib/module/VisuallyHidden/VisuallyHidden.js +6 -10
- package/lib/module/VisuallyHidden/VisuallyHidden.js.map +1 -1
- package/lib/module/control-system.js +5 -0
- package/lib/module/control-system.js.map +1 -1
- package/lib/module/index.js +8 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/ControlIconProvider.js +1 -1
- package/lib/module/internal/ControlIconProvider.js.map +1 -1
- package/lib/module/internal/InlineControl.js +25 -30
- package/lib/module/internal/InlineControl.js.map +1 -1
- package/lib/module/internal/collapse-box.js +13 -11
- package/lib/module/internal/collapse-box.js.map +1 -1
- package/lib/module/internal/control-icon-size.js +5 -8
- package/lib/module/internal/control-icon-size.js.map +1 -1
- package/lib/module/internal/control-metrics.js +52 -52
- package/lib/module/internal/control-metrics.js.map +1 -1
- package/lib/module/internal/floating-arrow.js +44 -30
- package/lib/module/internal/floating-arrow.js.map +1 -1
- package/lib/module/internal/focus-ring.js +95 -0
- package/lib/module/internal/focus-ring.js.map +1 -0
- package/lib/module/internal/gradient-shared.js +7 -7
- package/lib/module/internal/gradient-shared.js.map +1 -1
- package/lib/module/internal/gradient.native.js +1 -1
- package/lib/module/internal/motion.js +245 -359
- package/lib/module/internal/motion.js.map +1 -1
- package/lib/module/internal/resolve-theme-color.js +10 -10
- package/lib/module/internal/resolve-theme-color.js.map +1 -1
- package/lib/module/internal/style-props.js +471 -459
- package/lib/module/internal/style-props.js.map +1 -1
- package/lib/module/internal/theme-color-web.js +45 -27
- package/lib/module/internal/theme-color-web.js.map +1 -1
- package/lib/module/internal/use-icon-color.js +1 -1
- package/lib/module/internal/use-icon-color.native.js +1 -1
- package/lib/module/internal/use-slot-text-wrapper.js +1 -1
- package/lib/module/internal/variant-colors.js +150 -228
- package/lib/module/internal/variant-colors.js.map +1 -1
- package/lib/typescript/Accordion/Accordion.d.ts +120 -74
- package/lib/typescript/Accordion/Accordion.d.ts.map +1 -1
- package/lib/typescript/ActionIcon/ActionIcon.d.ts +236 -94
- package/lib/typescript/ActionIcon/ActionIcon.d.ts.map +1 -1
- package/lib/typescript/Affix/Affix.d.ts +12 -7
- package/lib/typescript/Affix/Affix.d.ts.map +1 -1
- package/lib/typescript/Alert/Alert.d.ts +228 -68
- package/lib/typescript/Alert/Alert.d.ts.map +1 -1
- package/lib/typescript/Anchor/Anchor.d.ts +33 -24
- package/lib/typescript/Anchor/Anchor.d.ts.map +1 -1
- package/lib/typescript/AngleSlider/AngleSlider.d.ts +224 -66
- package/lib/typescript/AngleSlider/AngleSlider.d.ts.map +1 -1
- package/lib/typescript/AspectRatio/AspectRatio.d.ts +34 -14
- package/lib/typescript/AspectRatio/AspectRatio.d.ts.map +1 -1
- package/lib/typescript/Autocomplete/Autocomplete.d.ts +30 -42
- package/lib/typescript/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/lib/typescript/Avatar/Avatar.d.ts +167 -191
- package/lib/typescript/Avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/BackgroundImage/BackgroundImage.d.ts +15 -10
- package/lib/typescript/BackgroundImage/BackgroundImage.d.ts.map +1 -1
- package/lib/typescript/Badge/Badge.d.ts +138 -62
- package/lib/typescript/Badge/Badge.d.ts.map +1 -1
- package/lib/typescript/Blockquote/Blockquote.d.ts +148 -50
- package/lib/typescript/Blockquote/Blockquote.d.ts.map +1 -1
- package/lib/typescript/Box/Box.d.ts +11 -3
- package/lib/typescript/Box/Box.d.ts.map +1 -1
- package/lib/typescript/Breadcrumbs/Breadcrumbs.d.ts +115 -35
- package/lib/typescript/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/lib/typescript/Burger/Burger.d.ts +124 -41
- package/lib/typescript/Burger/Burger.d.ts.map +1 -1
- package/lib/typescript/Button/Button.d.ts +236 -107
- package/lib/typescript/Button/Button.d.ts.map +1 -1
- package/lib/typescript/Card/Card.d.ts +79 -47
- package/lib/typescript/Card/Card.d.ts.map +1 -1
- package/lib/typescript/Center/Center.d.ts +13 -9
- package/lib/typescript/Center/Center.d.ts.map +1 -1
- package/lib/typescript/Checkbox/CheckIcon.d.ts +7 -3
- package/lib/typescript/Checkbox/CheckIcon.d.ts.map +1 -1
- package/lib/typescript/Checkbox/Checkbox.d.ts +79 -60
- package/lib/typescript/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/typescript/Chip/Chip.d.ts +140 -57
- package/lib/typescript/Chip/Chip.d.ts.map +1 -1
- package/lib/typescript/CloseButton/CloseButton.d.ts +85 -50
- package/lib/typescript/CloseButton/CloseButton.d.ts.map +1 -1
- package/lib/typescript/Code/Code.d.ts +31 -23
- package/lib/typescript/Code/Code.d.ts.map +1 -1
- package/lib/typescript/Collapse/Collapse.d.ts +44 -20
- package/lib/typescript/Collapse/Collapse.d.ts.map +1 -1
- package/lib/typescript/ColorInput/ColorInput.d.ts +15 -5
- package/lib/typescript/ColorInput/ColorInput.d.ts.map +1 -1
- package/lib/typescript/ColorPicker/ColorPicker.d.ts +72 -16
- package/lib/typescript/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/lib/typescript/ColorSwatch/ColorSwatch.d.ts +59 -38
- package/lib/typescript/ColorSwatch/ColorSwatch.d.ts.map +1 -1
- package/lib/typescript/Combobox/Combobox.d.ts +183 -100
- package/lib/typescript/Combobox/Combobox.d.ts.map +1 -1
- package/lib/typescript/Combobox/OptionsDropdown.d.ts +6 -0
- package/lib/typescript/Combobox/OptionsDropdown.d.ts.map +1 -1
- package/lib/typescript/Combobox/index.d.ts +66 -86
- package/lib/typescript/Combobox/index.d.ts.map +1 -1
- package/lib/typescript/Container/Container.d.ts +3 -41
- package/lib/typescript/Container/Container.d.ts.map +1 -1
- package/lib/typescript/Dialog/Dialog.d.ts +79 -76
- package/lib/typescript/Dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/Drawer/Drawer.d.ts +115 -40
- package/lib/typescript/Drawer/Drawer.d.ts.map +1 -1
- package/lib/typescript/Fieldset/Fieldset.d.ts +91 -46
- package/lib/typescript/Fieldset/Fieldset.d.ts.map +1 -1
- package/lib/typescript/FileButton/FileButton.d.ts.map +1 -1
- package/lib/typescript/FileInput/FileInput.d.ts +1 -1
- package/lib/typescript/FileInput/FileInput.d.ts.map +1 -1
- package/lib/typescript/Flex/Flex.d.ts +28 -26
- package/lib/typescript/Flex/Flex.d.ts.map +1 -1
- package/lib/typescript/FocusTrap/FocusTrap.d.ts.map +1 -1
- package/lib/typescript/Grid/Grid.d.ts +56 -48
- package/lib/typescript/Grid/Grid.d.ts.map +1 -1
- package/lib/typescript/Group/Group.d.ts +21 -16
- package/lib/typescript/Group/Group.d.ts.map +1 -1
- package/lib/typescript/Highlight/Highlight.d.ts +1 -15
- package/lib/typescript/Highlight/Highlight.d.ts.map +1 -1
- package/lib/typescript/HoverCard/HoverCard.d.ts +9 -9
- package/lib/typescript/HoverCard/HoverCard.d.ts.map +1 -1
- package/lib/typescript/Image/Image.d.ts +46 -114
- package/lib/typescript/Image/Image.d.ts.map +1 -1
- package/lib/typescript/Image/Image.native.d.ts +47 -115
- package/lib/typescript/Image/Image.native.d.ts.map +1 -1
- package/lib/typescript/Image/createImage.d.ts +49 -357
- package/lib/typescript/Image/createImage.d.ts.map +1 -1
- package/lib/typescript/Image/types.d.ts +4 -1
- package/lib/typescript/Image/types.d.ts.map +1 -1
- package/lib/typescript/Indicator/Indicator.d.ts +122 -43
- package/lib/typescript/Indicator/Indicator.d.ts.map +1 -1
- package/lib/typescript/Input/Input.d.ts +131 -328
- package/lib/typescript/Input/Input.d.ts.map +1 -1
- package/lib/typescript/Input/Input.native.d.ts +150 -472
- package/lib/typescript/Input/Input.native.d.ts.map +1 -1
- package/lib/typescript/Input/shared.d.ts +290 -490
- package/lib/typescript/Input/shared.d.ts.map +1 -1
- package/lib/typescript/Input/types.d.ts +14 -1
- package/lib/typescript/Input/types.d.ts.map +1 -1
- package/lib/typescript/InputBase/InputBase.d.ts +1 -52
- package/lib/typescript/InputBase/InputBase.d.ts.map +1 -1
- package/lib/typescript/Kbd/Kbd.d.ts +21 -65
- package/lib/typescript/Kbd/Kbd.d.ts.map +1 -1
- package/lib/typescript/KeyboardAvoidingView/KeyboardAvoidingView.d.ts +2 -6
- package/lib/typescript/KeyboardAvoidingView/KeyboardAvoidingView.d.ts.map +1 -1
- package/lib/typescript/KeyboardAvoidingView/KeyboardAvoidingView.native.d.ts +7 -3
- package/lib/typescript/KeyboardAvoidingView/KeyboardAvoidingView.native.d.ts.map +1 -1
- package/lib/typescript/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +2 -6
- package/lib/typescript/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts.map +1 -1
- package/lib/typescript/KeyboardAwareScrollView/KeyboardAwareScrollView.native.d.ts +6 -2
- package/lib/typescript/KeyboardAwareScrollView/KeyboardAwareScrollView.native.d.ts.map +1 -1
- package/lib/typescript/List/List.d.ts +165 -63
- package/lib/typescript/List/List.d.ts.map +1 -1
- package/lib/typescript/Loader/Loader.d.ts +58 -28
- package/lib/typescript/Loader/Loader.d.ts.map +1 -1
- package/lib/typescript/LoadingOverlay/LoadingOverlay.d.ts +1 -9
- package/lib/typescript/LoadingOverlay/LoadingOverlay.d.ts.map +1 -1
- package/lib/typescript/Mark/Mark.d.ts +21 -65
- package/lib/typescript/Mark/Mark.d.ts.map +1 -1
- package/lib/typescript/Marquee/Marquee.d.ts +127 -44
- package/lib/typescript/Marquee/Marquee.d.ts.map +1 -1
- package/lib/typescript/MaskInput/MaskInput.d.ts +1 -51
- package/lib/typescript/MaskInput/MaskInput.d.ts.map +1 -1
- package/lib/typescript/Menu/Menu.d.ts +93 -105
- package/lib/typescript/Menu/Menu.d.ts.map +1 -1
- package/lib/typescript/Modal/Modal.d.ts +166 -91
- package/lib/typescript/Modal/Modal.d.ts.map +1 -1
- package/lib/typescript/Modal/drag/DragDismissHost.web.d.ts.map +1 -1
- package/lib/typescript/Modal/drag/DragDismissOverlay.web.d.ts.map +1 -1
- package/lib/typescript/Modal/drag/index.d.ts +2 -2
- package/lib/typescript/Modal/drag/index.d.ts.map +1 -1
- package/lib/typescript/Modal/drag/types.d.ts +14 -2
- package/lib/typescript/Modal/drag/types.d.ts.map +1 -1
- package/lib/typescript/Modal/modal-base-inner.d.ts +6 -2
- package/lib/typescript/Modal/modal-base-inner.d.ts.map +1 -1
- package/lib/typescript/Modal/modal-base-inner.native.d.ts +7 -3
- package/lib/typescript/Modal/modal-base-inner.native.d.ts.map +1 -1
- package/lib/typescript/Modal/modal-base.d.ts +2 -2
- package/lib/typescript/Modal/modal-base.d.ts.map +1 -1
- package/lib/typescript/MultiSelect/MultiSelect.d.ts +30 -50
- package/lib/typescript/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/lib/typescript/NativeSelect/NativeSelect.d.ts.map +1 -1
- package/lib/typescript/NativeSelect/NativeSelect.native.d.ts +1 -1
- package/lib/typescript/NativeSelect/NativeSelect.native.d.ts.map +1 -1
- package/lib/typescript/NavLink/NavLink.d.ts +245 -72
- package/lib/typescript/NavLink/NavLink.d.ts.map +1 -1
- package/lib/typescript/Notification/Notification.d.ts +230 -69
- package/lib/typescript/Notification/Notification.d.ts.map +1 -1
- package/lib/typescript/NumberFormatter/NumberFormatter.d.ts +24 -19
- package/lib/typescript/NumberFormatter/NumberFormatter.d.ts.map +1 -1
- package/lib/typescript/NumberInput/NumberInput.d.ts +91 -150
- package/lib/typescript/NumberInput/NumberInput.d.ts.map +1 -1
- package/lib/typescript/Overlay/Overlay.d.ts +17 -12
- package/lib/typescript/Overlay/Overlay.d.ts.map +1 -1
- package/lib/typescript/Pagination/Pagination.d.ts +43 -65
- package/lib/typescript/Pagination/Pagination.d.ts.map +1 -1
- package/lib/typescript/Paper/Paper.d.ts +19 -7
- package/lib/typescript/Paper/Paper.d.ts.map +1 -1
- package/lib/typescript/Paragraph/Paragraph.d.ts +23 -19
- package/lib/typescript/Paragraph/Paragraph.d.ts.map +1 -1
- package/lib/typescript/PasswordInput/PasswordInput.d.ts +110 -207
- package/lib/typescript/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/lib/typescript/Pill/Pill.d.ts +133 -95
- package/lib/typescript/Pill/Pill.d.ts.map +1 -1
- package/lib/typescript/PillsInput/PillsInput.d.ts +2 -2
- package/lib/typescript/PillsInput/PillsInput.d.ts.map +1 -1
- package/lib/typescript/PinInput/PinInput.d.ts +148 -297
- package/lib/typescript/PinInput/PinInput.d.ts.map +1 -1
- package/lib/typescript/Popover/Popover.native.d.ts.map +1 -1
- package/lib/typescript/Popover/Popover.shared.d.ts +15 -11
- package/lib/typescript/Popover/Popover.shared.d.ts.map +1 -1
- package/lib/typescript/Progress/Progress.d.ts +114 -65
- package/lib/typescript/Progress/Progress.d.ts.map +1 -1
- package/lib/typescript/Radio/Radio.d.ts +69 -80
- package/lib/typescript/Radio/Radio.d.ts.map +1 -1
- package/lib/typescript/Radio/RadioIcon.d.ts +5 -0
- package/lib/typescript/Radio/RadioIcon.d.ts.map +1 -1
- package/lib/typescript/Rating/Rating.d.ts +94 -44
- package/lib/typescript/Rating/Rating.d.ts.map +1 -1
- package/lib/typescript/RollingNumber/RollingNumber.d.ts +112 -32
- package/lib/typescript/RollingNumber/RollingNumber.d.ts.map +1 -1
- package/lib/typescript/ScrollArea/ScrollArea.d.ts +50 -10
- package/lib/typescript/ScrollArea/ScrollArea.d.ts.map +1 -1
- package/lib/typescript/ScrollArea/ScrollArea.native.d.ts +40 -8
- package/lib/typescript/ScrollArea/ScrollArea.native.d.ts.map +1 -1
- package/lib/typescript/ScrollArea/ScrollArea.shared.d.ts +2 -2
- package/lib/typescript/SegmentedControl/SegmentedControl.d.ts +148 -56
- package/lib/typescript/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/lib/typescript/Select/Select.d.ts +31 -51
- package/lib/typescript/Select/Select.d.ts.map +1 -1
- package/lib/typescript/Separator/Separator.d.ts +124 -61
- package/lib/typescript/Separator/Separator.d.ts.map +1 -1
- package/lib/typescript/SimpleGrid/SimpleGrid.d.ts +15 -13
- package/lib/typescript/SimpleGrid/SimpleGrid.d.ts.map +1 -1
- package/lib/typescript/Skeleton/Skeleton.d.ts +18 -14
- package/lib/typescript/Skeleton/Skeleton.d.ts.map +1 -1
- package/lib/typescript/Slider/Slider.d.ts +425 -129
- package/lib/typescript/Slider/Slider.d.ts.map +1 -1
- package/lib/typescript/Spacer/Spacer.d.ts +10 -17
- package/lib/typescript/Spacer/Spacer.d.ts.map +1 -1
- package/lib/typescript/Spoiler/Spoiler.d.ts +88 -28
- package/lib/typescript/Spoiler/Spoiler.d.ts.map +1 -1
- package/lib/typescript/Stack/Stack.d.ts +17 -5
- package/lib/typescript/Stack/Stack.d.ts.map +1 -1
- package/lib/typescript/Stepper/Stepper.d.ts +433 -101
- package/lib/typescript/Stepper/Stepper.d.ts.map +1 -1
- package/lib/typescript/Switch/Switch.d.ts +157 -69
- package/lib/typescript/Switch/Switch.d.ts.map +1 -1
- package/lib/typescript/Table/Table.d.ts +151 -201
- package/lib/typescript/Table/Table.d.ts.map +1 -1
- package/lib/typescript/TableOfContents/TableOfContents.d.ts +116 -46
- package/lib/typescript/TableOfContents/TableOfContents.d.ts.map +1 -1
- package/lib/typescript/Tabs/Tabs.d.ts +138 -88
- package/lib/typescript/Tabs/Tabs.d.ts.map +1 -1
- package/lib/typescript/TagsInput/TagsInput.d.ts +30 -42
- package/lib/typescript/TagsInput/TagsInput.d.ts.map +1 -1
- package/lib/typescript/Text/Text.d.ts +22 -4
- package/lib/typescript/Text/Text.d.ts.map +1 -1
- package/lib/typescript/TextInput/TextInput.d.ts +1 -51
- package/lib/typescript/TextInput/TextInput.d.ts.map +1 -1
- package/lib/typescript/Textarea/Textarea.d.ts +1 -51
- package/lib/typescript/Textarea/Textarea.d.ts.map +1 -1
- package/lib/typescript/ThemeIcon/ThemeIcon.d.ts +52 -39
- package/lib/typescript/ThemeIcon/ThemeIcon.d.ts.map +1 -1
- package/lib/typescript/Title/Title.d.ts +40 -25
- package/lib/typescript/Title/Title.d.ts.map +1 -1
- package/lib/typescript/Tooltip/Tooltip.d.ts +97 -41
- package/lib/typescript/Tooltip/Tooltip.d.ts.map +1 -1
- package/lib/typescript/Transition/Transition.native.d.ts.map +1 -1
- package/lib/typescript/Transition/use-overlay-transition.d.ts +1 -2
- package/lib/typescript/Transition/use-overlay-transition.d.ts.map +1 -1
- package/lib/typescript/Transition/use-overlay-transition.native.d.ts +3 -4
- package/lib/typescript/Transition/use-overlay-transition.native.d.ts.map +1 -1
- package/lib/typescript/Tree/Tree.d.ts +180 -50
- package/lib/typescript/Tree/Tree.d.ts.map +1 -1
- package/lib/typescript/TreeSelect/TreeSelect.d.ts +141 -182
- package/lib/typescript/TreeSelect/TreeSelect.d.ts.map +1 -1
- package/lib/typescript/Typography/Typography.d.ts +13 -7
- package/lib/typescript/Typography/Typography.d.ts.map +1 -1
- package/lib/typescript/UnstyledButton/UnstyledButton.d.ts +27 -20
- package/lib/typescript/UnstyledButton/UnstyledButton.d.ts.map +1 -1
- package/lib/typescript/VirtualList/VirtualList.d.ts.map +1 -1
- package/lib/typescript/VirtualList/VirtualList.shared.d.ts +1 -1
- package/lib/typescript/VirtualList/VirtualList.shared.d.ts.map +1 -1
- package/lib/typescript/VisuallyHidden/VisuallyHidden.d.ts +23 -19
- package/lib/typescript/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
- package/lib/typescript/control-system.d.ts +3 -0
- package/lib/typescript/control-system.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +2 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/internal/InlineControl.d.ts +80 -22
- package/lib/typescript/internal/InlineControl.d.ts.map +1 -1
- package/lib/typescript/internal/collapse-box.d.ts +3 -3
- package/lib/typescript/internal/collapse-box.d.ts.map +1 -1
- package/lib/typescript/internal/collapse-box.shared.d.ts +1 -1
- package/lib/typescript/internal/control-icon-size.d.ts +4 -3
- package/lib/typescript/internal/control-icon-size.d.ts.map +1 -1
- package/lib/typescript/internal/control-metrics.d.ts +50 -50
- package/lib/typescript/internal/floating-arrow.d.ts +6 -7
- package/lib/typescript/internal/floating-arrow.d.ts.map +1 -1
- package/lib/typescript/internal/focus-ring.d.ts +94 -0
- package/lib/typescript/internal/focus-ring.d.ts.map +1 -0
- package/lib/typescript/internal/gradient-shared.d.ts +8 -8
- package/lib/typescript/internal/gradient-shared.d.ts.map +1 -1
- package/lib/typescript/internal/motion.d.ts +77 -67
- package/lib/typescript/internal/motion.d.ts.map +1 -1
- package/lib/typescript/internal/resolve-theme-color.d.ts +9 -8
- package/lib/typescript/internal/resolve-theme-color.d.ts.map +1 -1
- package/lib/typescript/internal/style-props.d.ts +490 -664
- package/lib/typescript/internal/style-props.d.ts.map +1 -1
- package/lib/typescript/internal/theme-color-web.d.ts.map +1 -1
- package/lib/typescript/internal/use-icon-color.d.ts +1 -1
- package/lib/typescript/internal/use-icon-color.native.d.ts +1 -1
- package/lib/typescript/internal/use-looping-animation.d.ts +10 -2
- package/lib/typescript/internal/use-looping-animation.d.ts.map +1 -1
- package/lib/typescript/internal/variant-colors.d.ts +191 -199
- package/lib/typescript/internal/variant-colors.d.ts.map +1 -1
- package/package.json +7 -6
- package/src/Accordion/Accordion.tsx +55 -47
- package/src/ActionIcon/ActionIcon.tsx +114 -57
- package/src/Affix/Affix.tsx +14 -25
- package/src/Alert/Alert.tsx +55 -42
- package/src/Anchor/Anchor.tsx +13 -12
- package/src/AngleSlider/AngleSlider.tsx +87 -63
- package/src/AspectRatio/AspectRatio.tsx +9 -12
- package/src/Autocomplete/Autocomplete.tsx +7 -2
- package/src/Avatar/Avatar.tsx +42 -34
- package/src/BackgroundImage/BackgroundImage.tsx +9 -6
- package/src/Badge/Badge.tsx +53 -28
- package/src/Blockquote/Blockquote.tsx +55 -45
- package/src/Box/Box.tsx +2 -2
- package/src/Breadcrumbs/Breadcrumbs.tsx +13 -11
- package/src/Burger/Burger.tsx +33 -24
- package/src/Button/Button.tsx +104 -78
- package/src/Card/Card.tsx +52 -44
- package/src/Center/Center.tsx +3 -3
- package/src/Checkbox/CheckIcon.tsx +8 -5
- package/src/Checkbox/Checkbox.tsx +97 -62
- package/src/Chip/Chip.tsx +50 -45
- package/src/CloseButton/CloseButton.tsx +30 -11
- package/src/Code/Code.tsx +15 -11
- package/src/Collapse/Collapse.tsx +11 -6
- package/src/ColorInput/ColorInput.tsx +30 -24
- package/src/ColorPicker/ColorPicker.tsx +78 -79
- package/src/ColorSwatch/ColorSwatch.tsx +11 -14
- package/src/Combobox/Combobox.tsx +174 -153
- package/src/Combobox/OptionsDropdown.tsx +15 -2
- package/src/Combobox/index.ts +1 -0
- package/src/Container/Container.tsx +11 -15
- package/src/Dialog/Dialog.tsx +26 -16
- package/src/Drawer/Drawer.tsx +51 -33
- package/src/Fieldset/Fieldset.tsx +25 -17
- package/src/FileButton/FileButton.tsx +4 -1
- package/src/Flex/Flex.tsx +24 -21
- package/src/FocusTrap/FocusTrap.tsx +4 -3
- package/src/Grid/Grid.tsx +24 -27
- package/src/Group/Group.tsx +4 -4
- package/src/Highlight/Highlight.tsx +2 -2
- package/src/HoverCard/HoverCard.tsx +17 -32
- package/src/Image/Image.native.tsx +1 -1
- package/src/Image/createImage.tsx +96 -63
- package/src/Image/types.ts +5 -1
- package/src/Indicator/Indicator.tsx +41 -32
- package/src/Input/Input.native.tsx +521 -501
- package/src/Input/Input.tsx +110 -156
- package/src/Input/shared.tsx +198 -291
- package/src/Input/types.ts +15 -0
- package/src/InputBase/InputBase.tsx +3 -1
- package/src/Kbd/Kbd.tsx +13 -15
- package/src/KeyboardAvoidingView/KeyboardAvoidingView.native.tsx +2 -2
- package/src/KeyboardAwareScrollView/KeyboardAwareScrollView.native.tsx +1 -1
- package/src/List/List.tsx +17 -11
- package/src/Loader/Loader.tsx +33 -37
- package/src/LoadingOverlay/LoadingOverlay.tsx +3 -2
- package/src/Mark/Mark.tsx +12 -12
- package/src/Marquee/Marquee.tsx +58 -46
- package/src/MaskInput/MaskInput.tsx +2 -1
- package/src/Menu/Menu.tsx +110 -45
- package/src/Modal/Modal.tsx +38 -31
- package/src/Modal/drag/DragDismissHost.web.tsx +2 -1
- package/src/Modal/drag/DragDismissOverlay.web.tsx +6 -1
- package/src/Modal/drag/index.ts +7 -2
- package/src/Modal/drag/types.ts +15 -3
- package/src/Modal/modal-base-inner.native.tsx +3 -2
- package/src/Modal/modal-base-inner.tsx +1 -1
- package/src/Modal/modal-base.tsx +10 -8
- package/src/MultiSelect/MultiSelect.tsx +6 -1
- package/src/NativeSelect/NativeSelect.tsx +21 -32
- package/src/NavLink/NavLink.tsx +54 -47
- package/src/Notification/Notification.tsx +31 -30
- package/src/NumberFormatter/NumberFormatter.tsx +4 -3
- package/src/NumberInput/NumberInput.tsx +52 -42
- package/src/Overlay/Overlay.tsx +18 -14
- package/src/Pagination/Pagination.tsx +142 -123
- package/src/Paper/Paper.tsx +8 -9
- package/src/Paragraph/Paragraph.tsx +7 -7
- package/src/PasswordInput/PasswordInput.tsx +67 -67
- package/src/Pill/Pill.tsx +42 -30
- package/src/PillsInput/PillsInput.tsx +60 -31
- package/src/PinInput/PinInput.tsx +31 -23
- package/src/Popover/Popover.native.tsx +3 -4
- package/src/Popover/Popover.shared.tsx +29 -24
- package/src/Progress/Progress.tsx +77 -64
- package/src/Radio/Radio.tsx +128 -122
- package/src/Radio/RadioIcon.tsx +4 -10
- package/src/Rating/Rating.tsx +63 -42
- package/src/RollingNumber/RollingNumber.tsx +60 -28
- package/src/ScrollArea/ScrollArea.native.tsx +28 -27
- package/src/ScrollArea/ScrollArea.shared.ts +2 -2
- package/src/ScrollArea/ScrollArea.tsx +35 -33
- package/src/SegmentedControl/SegmentedControl.tsx +98 -53
- package/src/Select/Select.tsx +7 -2
- package/src/Separator/Separator.tsx +43 -36
- package/src/SimpleGrid/SimpleGrid.tsx +23 -24
- package/src/Skeleton/Skeleton.tsx +35 -16
- package/src/Slider/Slider.tsx +303 -227
- package/src/Spacer/Spacer.tsx +17 -41
- package/src/Spoiler/Spoiler.tsx +19 -13
- package/src/Stack/Stack.tsx +3 -3
- package/src/Stepper/Stepper.tsx +89 -73
- package/src/Switch/Switch.tsx +87 -73
- package/src/Table/Table.tsx +100 -77
- package/src/TableOfContents/TableOfContents.tsx +80 -74
- package/src/Tabs/Tabs.tsx +78 -66
- package/src/TagsInput/TagsInput.tsx +35 -4
- package/src/Text/Text.tsx +25 -10
- package/src/TextInput/TextInput.tsx +3 -1
- package/src/Textarea/Textarea.tsx +2 -2
- package/src/ThemeIcon/ThemeIcon.tsx +37 -22
- package/src/Title/Title.tsx +48 -23
- package/src/Tooltip/Tooltip.tsx +50 -29
- package/src/Transition/Transition.native.tsx +16 -19
- package/src/Transition/use-overlay-transition.native.ts +6 -12
- package/src/Transition/use-overlay-transition.ts +2 -2
- package/src/Tree/Tree.tsx +39 -44
- package/src/TreeSelect/TreeSelect.tsx +49 -24
- package/src/Typography/Typography.tsx +5 -7
- package/src/UnstyledButton/UnstyledButton.tsx +6 -5
- package/src/VirtualList/VirtualList.shared.ts +1 -1
- package/src/VirtualList/VirtualList.tsx +18 -6
- package/src/VisuallyHidden/VisuallyHidden.tsx +7 -9
- package/src/control-system.ts +5 -0
- package/src/index.ts +30 -12
- package/src/internal/ControlIconProvider.tsx +1 -1
- package/src/internal/InlineControl.tsx +23 -27
- package/src/internal/collapse-box.shared.ts +1 -1
- package/src/internal/collapse-box.tsx +15 -11
- package/src/internal/control-icon-size.ts +5 -8
- package/src/internal/control-metrics.ts +52 -52
- package/src/internal/floating-arrow.tsx +48 -40
- package/src/internal/focus-ring.ts +92 -0
- package/src/internal/gradient-shared.ts +10 -10
- package/src/internal/gradient.native.tsx +1 -1
- package/src/internal/motion.ts +204 -244
- package/src/internal/resolve-theme-color.ts +10 -10
- package/src/internal/style-props.ts +545 -390
- package/src/internal/theme-color-web.ts +47 -27
- package/src/internal/use-icon-color.native.ts +1 -1
- package/src/internal/use-icon-color.ts +1 -1
- package/src/internal/use-slot-text-wrapper.tsx +1 -1
- package/src/internal/variant-colors.ts +187 -151
|
@@ -1,13 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Shared
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
2
|
+
* Shared variant helpers that map Mantine's NAMED props onto Tamagui style props
|
|
3
|
+
* — the kit's v3 variant vocabulary (docs/v3/conventions.md §5, "Internal helpers").
|
|
4
|
+
*
|
|
5
|
+
* Two shapes, picked by what the prop accepts:
|
|
6
|
+
*
|
|
7
|
+
* - **Static exact-key maps** (`controlVariant`, `controlFontVariant`,
|
|
8
|
+
* `squareSizeVariant`, `fontSizeVariant`, `shadowVariant`, the colour ladders):
|
|
9
|
+
* plain literal objects generated from `controlMetrics` / `variant-colors`.
|
|
10
|
+
* Compiler-extractable, and they still work per clause (`size="sm md:lg"`).
|
|
11
|
+
* Spread them at MODULE scope only (`{ ...controlVariant.md, gap: "xs" }`).
|
|
12
|
+
* - **`styled.dynamic` variants** for an OPEN domain — a size key OR a raw
|
|
13
|
+
* number / CSS value (`radiusVariant`, `squareSizeVariantFallthrough`,
|
|
14
|
+
* `fontSizePassthroughVariant`, …). v3 runs a dynamic once per clause payload,
|
|
15
|
+
* so `radius="sm md:lg"` works. Use them AS the variant (`radius: radiusVariant`),
|
|
16
|
+
* NEVER spread them: spreading a dynamic copies only its brand symbol and turns
|
|
17
|
+
* the variant into a style-less "bare" dynamic. To extend a table with extra
|
|
18
|
+
* keys, build a new one with {@link tableVariant}.
|
|
19
|
+
*
|
|
20
|
+
* v2's `":string"` / `":number"` / `"...size"` catch-all keys are gone (v3 treats
|
|
21
|
+
* them as literal keys that never match), and so are the `$`-sigil helpers
|
|
22
|
+
* (`toRadius` & co.): a string is a token lookup, a number a raw value.
|
|
7
23
|
*/
|
|
8
|
-
import { type FontSizeTokens, type RadiusTokens } from "@knitui/core";
|
|
9
|
-
import type
|
|
10
|
-
import type { TextProps } from "../Text";
|
|
24
|
+
import { type MotionPresetName as DriverPresetName, type FontSizeTokens, type RadiusTokens, styled } from "@knitui/core";
|
|
25
|
+
import { type SizeKey } from "./control-metrics";
|
|
11
26
|
import { type VariantKey } from "./variant-colors";
|
|
12
27
|
/**
|
|
13
28
|
* Re-export the canonical size scale so the 70+ components that already import
|
|
@@ -16,89 +31,90 @@ import { type VariantKey } from "./variant-colors";
|
|
|
16
31
|
* `DEFAULT_SIZE` live in `control-metrics.ts` next to the table they describe.
|
|
17
32
|
*/
|
|
18
33
|
export { DEFAULT_SIZE, type SizeKey } from "./control-metrics";
|
|
19
|
-
export { FOCUS_RING,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
34
|
+
export { FOCUS_RING, FOCUS_WITHIN_RING, focusRingResetStyle, focusRingStyle } from "./focus-ring";
|
|
35
|
+
export { VARIANT_COLOR_LADDER, VARIANT_CONTROL, VARIANT_FILL, VARIANT_FOREGROUND_EMPHASIS, VARIANT_FOREGROUND_MUTED, VARIANT_INTERACTION, VARIANT_KEYS, type VariantKey, } from "./variant-colors";
|
|
36
|
+
/** A style fragment a variant emits (style props, token names, clause strings). */
|
|
37
|
+
export type StyleFragment = Record<string, unknown>;
|
|
38
|
+
/** An open-ended CSS string (`"10px"`, `"50%"`) that keeps literal autocomplete. */
|
|
39
|
+
export type CssString = string & {};
|
|
40
|
+
/**
|
|
41
|
+
* A v3 `styled.dynamic` variant accepting `V` — the type every open-domain helper
|
|
42
|
+
* below returns. `GetProps` of the frame widens it to `FlatStyleValue<V>`, so the
|
|
43
|
+
* prop also takes clause programs (`"sm md:lg"`).
|
|
44
|
+
*
|
|
45
|
+
* The brand intersection is load-bearing for the lib build: v3 does not export its
|
|
46
|
+
* `StyledDynamicFn` interface, so a bare `ReturnType<…>` resolves to a type the
|
|
47
|
+
* declaration emitter cannot name (TS2883). An intersection keeps THIS alias as the
|
|
48
|
+
* printed name, so every exported variant emits as `DynamicVariant<…>`.
|
|
23
49
|
*/
|
|
24
|
-
export
|
|
25
|
-
readonly
|
|
26
|
-
borderRadius: RadiusTokens;
|
|
27
|
-
};
|
|
28
|
-
readonly ":number": (val: number) => {
|
|
29
|
-
borderRadius: number;
|
|
30
|
-
};
|
|
50
|
+
export type DynamicVariant<V> = ReturnType<typeof styled.dynamic<V>> & {
|
|
51
|
+
readonly __knituiDynamic?: true;
|
|
31
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* A `styled.dynamic` variant that maps one value straight onto one or more style
|
|
55
|
+
* props (`passthroughVariant<RadiusValue>("borderRadius")` →
|
|
56
|
+
* `radius="md"` ⇒ `{ borderRadius: "md" }`, `radius={6}` ⇒ `{ borderRadius: 6 }`).
|
|
57
|
+
* Token names resolve per property at the style layer; numbers are px.
|
|
58
|
+
*/
|
|
59
|
+
export declare function passthroughVariant<V>(...props: readonly [string, ...string[]]): DynamicVariant<V>;
|
|
60
|
+
/**
|
|
61
|
+
* Build a `styled.dynamic` variant from a STATIC key table plus an optional
|
|
62
|
+
* fallthrough for any other value — the v3 replacement for v2's
|
|
63
|
+
* `{ xs: {...}, md: {...}, ":number": fn, ":string": fn }` maps. A table hit
|
|
64
|
+
* returns the table's own (static, shared) fragment; anything else goes to
|
|
65
|
+
* `fallback` (memoised per value). Runs per clause, so `size="sm md:lg"` works.
|
|
66
|
+
*
|
|
67
|
+
* ```ts
|
|
68
|
+
* size: tableVariant(
|
|
69
|
+
* { ...fontSizeVariant, h1: { fontSize: "xxl" } },
|
|
70
|
+
* (value: number | CssString) => ({ fontSize: value }),
|
|
71
|
+
* )
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
export declare function tableVariant<const Table extends Record<string, StyleFragment>>(table: Table): DynamicVariant<Extract<keyof Table, string>>;
|
|
75
|
+
export declare function tableVariant<const Table extends Record<string, StyleFragment>, Extra>(table: Table, fallback: (value: Extra) => StyleFragment | undefined): DynamicVariant<Extract<keyof Table, string> | Extra>;
|
|
76
|
+
/** What a `radius` prop accepts: a radius token, a number (px), or a CSS length. */
|
|
77
|
+
export type RadiusValue = SizeKey | RadiusTokens | number | CssString;
|
|
78
|
+
/**
|
|
79
|
+
* Mantine-style `radius` prop. Accepts a size key (`"md"`, a radius token), a
|
|
80
|
+
* number (px), or an arbitrary CSS value (`"10px"`). Use as the variant
|
|
81
|
+
* (`radius: radiusVariant`), never spread it.
|
|
82
|
+
*/
|
|
83
|
+
export declare const radiusVariant: DynamicVariant<RadiusValue>;
|
|
32
84
|
/**
|
|
33
85
|
* Like `radiusVariant`, but rounds only the two INLINE-END corners (top-right +
|
|
34
86
|
* bottom-right). Used where one edge carries a solid border that should stay
|
|
35
87
|
* square — e.g. `Blockquote`'s start border.
|
|
36
88
|
*/
|
|
37
|
-
export declare const endRadiusVariant:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
readonly ":number": (val: number) => {
|
|
43
|
-
borderTopRightRadius: number;
|
|
44
|
-
borderBottomRightRadius: number;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
89
|
+
export declare const endRadiusVariant: DynamicVariant<RadiusValue>;
|
|
90
|
+
/** Flexbox cross-axis alignment values. */
|
|
91
|
+
export type AlignValue = "flex-start" | "flex-end" | "center" | "stretch" | "baseline" | "start" | "end" | CssString;
|
|
92
|
+
/** Flexbox main-axis distribution values. */
|
|
93
|
+
export type JustifyValue = "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | "start" | "end" | CssString;
|
|
47
94
|
/** Map a flexbox alignment prop name onto its Tamagui style prop. */
|
|
48
|
-
export declare const alignVariant:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
export declare const justifyVariant: {
|
|
54
|
-
readonly ":string": (val: string) => {
|
|
55
|
-
justifyContent: BoxProps["justifyContent"];
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
export declare const wrapVariant: {
|
|
59
|
-
readonly ":string": (val: string) => {
|
|
60
|
-
flexWrap: BoxProps["flexWrap"];
|
|
61
|
-
};
|
|
62
|
-
};
|
|
95
|
+
export declare const alignVariant: DynamicVariant<AlignValue>;
|
|
96
|
+
export declare const justifyVariant: DynamicVariant<JustifyValue>;
|
|
97
|
+
export declare const wrapVariant: DynamicVariant<"wrap" | "nowrap" | "wrap-reverse">;
|
|
63
98
|
/**
|
|
64
|
-
* Mantine-style `spacing`/`gap` prop. A space token (`"
|
|
65
|
-
* value, or number maps onto `gap`. Used by `List`'s `spacing`.
|
|
99
|
+
* Mantine-style `spacing`/`gap` prop. A space token (`"sm"`), arbitrary CSS
|
|
100
|
+
* value, or number maps onto `gap`. Used by `List`'s `spacing`, `PinInput`'s `gap`.
|
|
66
101
|
*/
|
|
67
|
-
export declare const gapVariant:
|
|
68
|
-
readonly ":number": (val: number) => {
|
|
69
|
-
gap: number;
|
|
70
|
-
};
|
|
71
|
-
readonly ":string": (val: string) => {
|
|
72
|
-
gap: BoxProps["gap"];
|
|
73
|
-
};
|
|
74
|
-
};
|
|
102
|
+
export declare const gapVariant: DynamicVariant<number | CssString | import("@tamagui/web").Space>;
|
|
75
103
|
/** Open-ended `overflow` prop (`"hidden"`, `"scroll"`, …). Used by `Grid`. */
|
|
76
|
-
export declare const overflowVariant:
|
|
77
|
-
readonly ":string": (val: string) => {
|
|
78
|
-
overflow: BoxProps["overflow"];
|
|
79
|
-
};
|
|
80
|
-
};
|
|
104
|
+
export declare const overflowVariant: DynamicVariant<CssString | "visible" | "hidden" | "scroll">;
|
|
81
105
|
/**
|
|
82
|
-
* Mantine-style `maxWidth
|
|
83
|
-
*
|
|
106
|
+
* Mantine-style `maxWidth` cap. A number is a raw pixel width; a string is a
|
|
107
|
+
* token or arbitrary CSS value.
|
|
84
108
|
*/
|
|
85
|
-
export declare const maxWidthVariant:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
};
|
|
89
|
-
readonly ":string": (val: string) => {
|
|
90
|
-
maxWidth: BoxProps["maxWidth"];
|
|
91
|
-
};
|
|
92
|
-
};
|
|
109
|
+
export declare const maxWidthVariant: DynamicVariant<number | CssString | import("@tamagui/web").Size>;
|
|
110
|
+
/** A raw width / height escape hatch: px number or CSS length. */
|
|
111
|
+
type Length = number | CssString;
|
|
93
112
|
/**
|
|
94
|
-
* Named content-width scale for overlay panels (`Modal`, etc.)
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
* only, so named keys silently fall through to an invalid `maxWidth: "md"`) and
|
|
98
|
-
* UNLIKE `Container`'s viewport-`breakpoints` caps, these are dialog-scale widths
|
|
99
|
-
* tuned after Mantine's modal sizes (xs 320 → xl 780).
|
|
113
|
+
* Named content-width scale for overlay panels (`Modal`, etc.): dialog-scale
|
|
114
|
+
* `maxWidth`s tuned after Mantine's modal sizes (xs 320 → xl 780). Any other
|
|
115
|
+
* number / CSS value passes through as the `maxWidth`.
|
|
100
116
|
*/
|
|
101
|
-
export declare const
|
|
117
|
+
export declare const MODAL_SIZES: {
|
|
102
118
|
readonly xxs: {
|
|
103
119
|
readonly maxWidth: 240;
|
|
104
120
|
};
|
|
@@ -120,23 +136,14 @@ export declare const modalSizeVariant: {
|
|
|
120
136
|
readonly xxl: {
|
|
121
137
|
readonly maxWidth: 1040;
|
|
122
138
|
};
|
|
123
|
-
readonly ":number": (val: number) => {
|
|
124
|
-
maxWidth: number;
|
|
125
|
-
};
|
|
126
|
-
readonly ":string": (val: string) => {
|
|
127
|
-
maxWidth: BoxProps["maxWidth"];
|
|
128
|
-
};
|
|
129
139
|
};
|
|
140
|
+
export declare const modalSizeVariant: DynamicVariant<"xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | Length>;
|
|
130
141
|
/**
|
|
131
|
-
* Named content-width scale for `Container
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
* only — named keys would silently fall through to an invalid `maxWidth: "md"`),
|
|
135
|
-
* and UNLIKE `modalSizeVariant` (dialog-card scale), these are page-column
|
|
136
|
-
* widths tuned after Mantine's container sizes (xs 540 → xl 1320), extended to
|
|
137
|
-
* the kit's full seven-step scale.
|
|
142
|
+
* Named content-width scale for `Container`: page-column `maxWidth`s tuned after
|
|
143
|
+
* Mantine's container sizes (xs 540 → xl 1320), on the kit's seven-step scale.
|
|
144
|
+
* Any other number / CSS value passes through as the `maxWidth`.
|
|
138
145
|
*/
|
|
139
|
-
export declare const
|
|
146
|
+
export declare const CONTAINER_SIZES: {
|
|
140
147
|
readonly xxs: {
|
|
141
148
|
readonly maxWidth: 420;
|
|
142
149
|
};
|
|
@@ -158,396 +165,310 @@ export declare const containerSizeVariant: {
|
|
|
158
165
|
readonly xxl: {
|
|
159
166
|
readonly maxWidth: 1608;
|
|
160
167
|
};
|
|
161
|
-
readonly ":number": (val: number) => {
|
|
162
|
-
maxWidth: number;
|
|
163
|
-
};
|
|
164
|
-
readonly ":string": (val: string) => {
|
|
165
|
-
maxWidth: BoxProps["maxWidth"];
|
|
166
|
-
};
|
|
167
168
|
};
|
|
169
|
+
export declare const containerSizeVariant: DynamicVariant<"xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | Length>;
|
|
168
170
|
/**
|
|
169
|
-
* Square `size`
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
* ```ts
|
|
175
|
-
* size: { xs: { width: "$xs", height: "$xs" }, …, ...squareSizeVariant }
|
|
176
|
-
* ```
|
|
177
|
-
*
|
|
178
|
-
* Used by `ActionIcon`, `AngleSlider`, `Avatar`, and `ColorSwatch`.
|
|
171
|
+
* Square `size` ladder — maps a size key onto BOTH `width` and `height` (+
|
|
172
|
+
* `minWidth`) from the canonical control heights. A static exact-key map; use
|
|
173
|
+
* {@link squareSizeVariantFallthrough} when the prop also takes a number / CSS
|
|
174
|
+
* value. Used by `Radio`, `Stepper` (spread into their own size map) and read as
|
|
175
|
+
* data by `PinInput` / `ColorPicker`.
|
|
179
176
|
*/
|
|
180
177
|
export declare const squareSizeVariant: {
|
|
181
178
|
readonly xxs: {
|
|
182
|
-
readonly minWidth: "
|
|
183
|
-
readonly width: "
|
|
184
|
-
readonly height: "
|
|
185
|
-
};
|
|
186
|
-
readonly xs: {
|
|
187
|
-
readonly minWidth: "$xs";
|
|
188
|
-
readonly width: "$xs";
|
|
189
|
-
readonly height: "$xs";
|
|
190
|
-
};
|
|
191
|
-
readonly sm: {
|
|
192
|
-
readonly minWidth: "$sm";
|
|
193
|
-
readonly width: "$sm";
|
|
194
|
-
readonly height: "$sm";
|
|
195
|
-
};
|
|
196
|
-
readonly md: {
|
|
197
|
-
readonly minWidth: "$md";
|
|
198
|
-
readonly width: "$md";
|
|
199
|
-
readonly height: "$md";
|
|
200
|
-
};
|
|
201
|
-
readonly lg: {
|
|
202
|
-
readonly minWidth: "$lg";
|
|
203
|
-
readonly width: "$lg";
|
|
204
|
-
readonly height: "$lg";
|
|
205
|
-
};
|
|
206
|
-
readonly xl: {
|
|
207
|
-
readonly minWidth: "$xl";
|
|
208
|
-
readonly width: "$xl";
|
|
209
|
-
readonly height: "$xl";
|
|
210
|
-
};
|
|
211
|
-
readonly xxl: {
|
|
212
|
-
readonly minWidth: "$xxl";
|
|
213
|
-
readonly width: "$xxl";
|
|
214
|
-
readonly height: "$xxl";
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
export declare const squareSizeRoundedVariant: {
|
|
218
|
-
readonly xxs: {
|
|
219
|
-
readonly minWidth: "$xxs";
|
|
220
|
-
readonly width: "$xxs";
|
|
221
|
-
readonly height: "$xxs";
|
|
222
|
-
readonly borderRadius: "$xs";
|
|
179
|
+
readonly minWidth: "xxs";
|
|
180
|
+
readonly width: "xxs";
|
|
181
|
+
readonly height: "xxs";
|
|
223
182
|
};
|
|
224
183
|
readonly xs: {
|
|
225
|
-
readonly minWidth: "
|
|
226
|
-
readonly width: "
|
|
227
|
-
readonly height: "
|
|
228
|
-
readonly borderRadius: "$xs";
|
|
184
|
+
readonly minWidth: "xs";
|
|
185
|
+
readonly width: "xs";
|
|
186
|
+
readonly height: "xs";
|
|
229
187
|
};
|
|
230
188
|
readonly sm: {
|
|
231
|
-
readonly minWidth: "
|
|
232
|
-
readonly width: "
|
|
233
|
-
readonly height: "
|
|
234
|
-
readonly borderRadius: "$md";
|
|
189
|
+
readonly minWidth: "sm";
|
|
190
|
+
readonly width: "sm";
|
|
191
|
+
readonly height: "sm";
|
|
235
192
|
};
|
|
236
193
|
readonly md: {
|
|
237
|
-
readonly minWidth: "
|
|
238
|
-
readonly width: "
|
|
239
|
-
readonly height: "
|
|
240
|
-
readonly borderRadius: "$md";
|
|
194
|
+
readonly minWidth: "md";
|
|
195
|
+
readonly width: "md";
|
|
196
|
+
readonly height: "md";
|
|
241
197
|
};
|
|
242
198
|
readonly lg: {
|
|
243
|
-
readonly minWidth: "
|
|
244
|
-
readonly width: "
|
|
245
|
-
readonly height: "
|
|
246
|
-
readonly borderRadius: "$md";
|
|
199
|
+
readonly minWidth: "lg";
|
|
200
|
+
readonly width: "lg";
|
|
201
|
+
readonly height: "lg";
|
|
247
202
|
};
|
|
248
203
|
readonly xl: {
|
|
249
|
-
readonly minWidth: "
|
|
250
|
-
readonly width: "
|
|
251
|
-
readonly height: "
|
|
252
|
-
readonly borderRadius: "$md";
|
|
204
|
+
readonly minWidth: "xl";
|
|
205
|
+
readonly width: "xl";
|
|
206
|
+
readonly height: "xl";
|
|
253
207
|
};
|
|
254
208
|
readonly xxl: {
|
|
255
|
-
readonly minWidth: "
|
|
256
|
-
readonly width: "
|
|
257
|
-
readonly height: "
|
|
258
|
-
readonly borderRadius: "$lg";
|
|
259
|
-
};
|
|
260
|
-
readonly ":string": (val: string) => {
|
|
261
|
-
borderRadius: RadiusTokens;
|
|
262
|
-
};
|
|
263
|
-
readonly ":number": (val: number) => {
|
|
264
|
-
borderRadius: number;
|
|
209
|
+
readonly minWidth: "xxl";
|
|
210
|
+
readonly width: "xxl";
|
|
211
|
+
readonly height: "xxl";
|
|
265
212
|
};
|
|
266
213
|
};
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
214
|
+
/**
|
|
215
|
+
* The square fallthrough body — a raw px / CSS size onto `minWidth` + `width` +
|
|
216
|
+
* `height`. Exported for frames that build their own {@link tableVariant} on top
|
|
217
|
+
* of it (Pagination).
|
|
218
|
+
*/
|
|
219
|
+
export declare const squareSizeOf: (value: Length) => StyleFragment;
|
|
220
|
+
/**
|
|
221
|
+
* {@link squareSizeVariant} plus the raw escape hatch: `size={44}` / `size="3rem"`
|
|
222
|
+
* size the square directly. Used by `ActionIcon`-likes, `Avatar`, `ColorSwatch`,
|
|
223
|
+
* `Loader`, `Burger`, `Rating`, `AngleSlider`, `Indicator`.
|
|
224
|
+
*/
|
|
225
|
+
export declare const squareSizeVariantFallthrough: DynamicVariant<"xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | Length>;
|
|
226
|
+
/** Square control sizes WITH the matching corner, per size key. */
|
|
227
|
+
export declare const SQUARE_ROUNDED_SIZES: {
|
|
278
228
|
readonly xxs: {
|
|
279
|
-
readonly
|
|
280
|
-
readonly
|
|
281
|
-
readonly
|
|
229
|
+
readonly borderRadius: "xs";
|
|
230
|
+
readonly minWidth: "xxs";
|
|
231
|
+
readonly width: "xxs";
|
|
232
|
+
readonly height: "xxs";
|
|
282
233
|
};
|
|
283
234
|
readonly xs: {
|
|
284
|
-
readonly
|
|
285
|
-
readonly
|
|
286
|
-
readonly
|
|
235
|
+
readonly borderRadius: "xs";
|
|
236
|
+
readonly minWidth: "xs";
|
|
237
|
+
readonly width: "xs";
|
|
238
|
+
readonly height: "xs";
|
|
287
239
|
};
|
|
288
240
|
readonly sm: {
|
|
289
|
-
readonly
|
|
290
|
-
readonly
|
|
291
|
-
readonly
|
|
241
|
+
readonly borderRadius: "md";
|
|
242
|
+
readonly minWidth: "sm";
|
|
243
|
+
readonly width: "sm";
|
|
244
|
+
readonly height: "sm";
|
|
292
245
|
};
|
|
293
246
|
readonly md: {
|
|
294
|
-
readonly
|
|
295
|
-
readonly
|
|
296
|
-
readonly
|
|
247
|
+
readonly borderRadius: "md";
|
|
248
|
+
readonly minWidth: "md";
|
|
249
|
+
readonly width: "md";
|
|
250
|
+
readonly height: "md";
|
|
297
251
|
};
|
|
298
252
|
readonly lg: {
|
|
299
|
-
readonly
|
|
300
|
-
readonly
|
|
301
|
-
readonly
|
|
253
|
+
readonly borderRadius: "md";
|
|
254
|
+
readonly minWidth: "lg";
|
|
255
|
+
readonly width: "lg";
|
|
256
|
+
readonly height: "lg";
|
|
302
257
|
};
|
|
303
258
|
readonly xl: {
|
|
304
|
-
readonly
|
|
305
|
-
readonly
|
|
306
|
-
readonly
|
|
259
|
+
readonly borderRadius: "md";
|
|
260
|
+
readonly minWidth: "xl";
|
|
261
|
+
readonly width: "xl";
|
|
262
|
+
readonly height: "xl";
|
|
307
263
|
};
|
|
308
264
|
readonly xxl: {
|
|
309
|
-
readonly
|
|
310
|
-
readonly
|
|
311
|
-
readonly
|
|
265
|
+
readonly borderRadius: "lg";
|
|
266
|
+
readonly minWidth: "xxl";
|
|
267
|
+
readonly width: "xxl";
|
|
268
|
+
readonly height: "xxl";
|
|
312
269
|
};
|
|
313
270
|
};
|
|
271
|
+
/**
|
|
272
|
+
* Square control `size` (ActionIcon, ThemeIcon): a size key sizes the square AND
|
|
273
|
+
* picks its corner; a raw number / CSS value sizes the square only (the corner
|
|
274
|
+
* comes from the frame's `radius`).
|
|
275
|
+
*/
|
|
276
|
+
export declare const squareSizeRoundedVariant: DynamicVariant<"xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | Length>;
|
|
314
277
|
/**
|
|
315
278
|
* Mantine-style `size` prop for a text-bearing control (Button, etc.): each key
|
|
316
|
-
* maps to a `height` (from the `size` token scale)
|
|
317
|
-
* the `space` scale)
|
|
318
|
-
*
|
|
319
|
-
* the ladder inline. Token groups resolve by property: `$md` is size.md on
|
|
320
|
-
* `height`, space.md on `paddingHorizontal`, radius.md on `borderRadius`.
|
|
279
|
+
* maps to a `height` (from the `size` token scale) and `paddingHorizontal` (from
|
|
280
|
+
* the `space` scale). Token names resolve by property: `md` is size.md on
|
|
281
|
+
* `height`, space.md on `paddingHorizontal`. Static exact-key map.
|
|
321
282
|
*
|
|
322
283
|
* Used by `Button`, `Button.GroupSection`, `SegmentedControl.Control`.
|
|
323
284
|
*/
|
|
324
285
|
export declare const controlVariant: {
|
|
325
286
|
readonly xxs: {
|
|
326
|
-
readonly height: "
|
|
327
|
-
readonly paddingHorizontal: "
|
|
287
|
+
readonly height: "xxs";
|
|
288
|
+
readonly paddingHorizontal: "xxs";
|
|
328
289
|
};
|
|
329
290
|
readonly xs: {
|
|
330
|
-
readonly height: "
|
|
331
|
-
readonly paddingHorizontal: "
|
|
291
|
+
readonly height: "xs";
|
|
292
|
+
readonly paddingHorizontal: "xs";
|
|
332
293
|
};
|
|
333
294
|
readonly sm: {
|
|
334
|
-
readonly height: "
|
|
335
|
-
readonly paddingHorizontal: "
|
|
295
|
+
readonly height: "sm";
|
|
296
|
+
readonly paddingHorizontal: "sm";
|
|
336
297
|
};
|
|
337
298
|
readonly md: {
|
|
338
|
-
readonly height: "
|
|
339
|
-
readonly paddingHorizontal: "
|
|
299
|
+
readonly height: "md";
|
|
300
|
+
readonly paddingHorizontal: "md";
|
|
340
301
|
};
|
|
341
302
|
readonly lg: {
|
|
342
|
-
readonly height: "
|
|
343
|
-
readonly paddingHorizontal: "
|
|
303
|
+
readonly height: "lg";
|
|
304
|
+
readonly paddingHorizontal: "lg";
|
|
344
305
|
};
|
|
345
306
|
readonly xl: {
|
|
346
|
-
readonly height: "
|
|
347
|
-
readonly paddingHorizontal: "
|
|
307
|
+
readonly height: "xl";
|
|
308
|
+
readonly paddingHorizontal: "xl";
|
|
348
309
|
};
|
|
349
310
|
readonly xxl: {
|
|
350
|
-
readonly height: "
|
|
351
|
-
readonly paddingHorizontal: "
|
|
311
|
+
readonly height: "xxl";
|
|
312
|
+
readonly paddingHorizontal: "xxl";
|
|
352
313
|
};
|
|
353
314
|
};
|
|
354
315
|
/**
|
|
355
316
|
* Balanced control-text font ladder — the `fontSize` column of `controlMetrics`.
|
|
356
317
|
* UNLIKE `fontSizeVariant` (which maps each key to its same-key font token), this
|
|
357
|
-
* CLAMPS the two smallest steps (xxs/xs →
|
|
358
|
-
* dominated by its label.
|
|
359
|
-
* input hosts) should size their label/value text with this so control text stays
|
|
360
|
-
* proportional to control height; standalone typography keeps `fontSizeVariant`.
|
|
318
|
+
* CLAMPS the two smallest steps (xxs/xs → `xxs`) so a tiny control isn't
|
|
319
|
+
* dominated by its label. Static exact-key map.
|
|
361
320
|
*/
|
|
362
321
|
export declare const controlFontVariant: {
|
|
363
322
|
readonly xxs: {
|
|
364
|
-
readonly fontSize: "
|
|
323
|
+
readonly fontSize: "xxs";
|
|
365
324
|
};
|
|
366
325
|
readonly xs: {
|
|
367
|
-
readonly fontSize: "
|
|
326
|
+
readonly fontSize: "xxs";
|
|
368
327
|
};
|
|
369
328
|
readonly sm: {
|
|
370
|
-
readonly fontSize: "
|
|
329
|
+
readonly fontSize: "xs";
|
|
371
330
|
};
|
|
372
331
|
readonly md: {
|
|
373
|
-
readonly fontSize: "
|
|
332
|
+
readonly fontSize: "sm";
|
|
374
333
|
};
|
|
375
334
|
readonly lg: {
|
|
376
|
-
readonly fontSize: "
|
|
335
|
+
readonly fontSize: "lg";
|
|
377
336
|
};
|
|
378
337
|
readonly xl: {
|
|
379
|
-
readonly fontSize: "
|
|
338
|
+
readonly fontSize: "xl";
|
|
380
339
|
};
|
|
381
340
|
readonly xxl: {
|
|
382
|
-
readonly fontSize: "
|
|
341
|
+
readonly fontSize: "xxl";
|
|
383
342
|
};
|
|
384
343
|
};
|
|
385
|
-
/**
|
|
386
|
-
|
|
387
|
-
* `borderRadius` (e.g. `borderRadius: 9999`) and lays out inline children with a
|
|
388
|
-
* `gap`: each key maps `height` + `paddingHorizontal` (identical to
|
|
389
|
-
* `controlVariant`) + `gap` (from the `space` scale), with NO `borderRadius`. A
|
|
390
|
-
* `:number` passes a raw pixel size through to a proportional height/padding/gap.
|
|
391
|
-
*
|
|
392
|
-
* Used by `Badge`, `Chip`, `Pill` so the three stay in lockstep.
|
|
393
|
-
*/
|
|
394
|
-
export declare const controlGapVariant: {
|
|
344
|
+
/** Pill-control sizes: height + pill padding + gap, NO borderRadius. */
|
|
345
|
+
export declare const CONTROL_GAP_SIZES: {
|
|
395
346
|
readonly xxs: {
|
|
396
|
-
readonly height: "
|
|
397
|
-
readonly paddingHorizontal: "
|
|
398
|
-
readonly gap: "
|
|
347
|
+
readonly height: "xxs";
|
|
348
|
+
readonly paddingHorizontal: "xs";
|
|
349
|
+
readonly gap: "xxs";
|
|
399
350
|
};
|
|
400
351
|
readonly xs: {
|
|
401
|
-
readonly height: "
|
|
402
|
-
readonly paddingHorizontal: "
|
|
403
|
-
readonly gap: "
|
|
352
|
+
readonly height: "xs";
|
|
353
|
+
readonly paddingHorizontal: "sm";
|
|
354
|
+
readonly gap: "xxs";
|
|
404
355
|
};
|
|
405
356
|
readonly sm: {
|
|
406
|
-
readonly height: "
|
|
407
|
-
readonly paddingHorizontal: "
|
|
408
|
-
readonly gap: "
|
|
357
|
+
readonly height: "sm";
|
|
358
|
+
readonly paddingHorizontal: "md";
|
|
359
|
+
readonly gap: "xs";
|
|
409
360
|
};
|
|
410
361
|
readonly md: {
|
|
411
|
-
readonly height: "
|
|
412
|
-
readonly paddingHorizontal: "
|
|
413
|
-
readonly gap: "
|
|
362
|
+
readonly height: "md";
|
|
363
|
+
readonly paddingHorizontal: "lg";
|
|
364
|
+
readonly gap: "xs";
|
|
414
365
|
};
|
|
415
366
|
readonly lg: {
|
|
416
|
-
readonly height: "
|
|
417
|
-
readonly paddingHorizontal: "
|
|
418
|
-
readonly gap: "
|
|
367
|
+
readonly height: "lg";
|
|
368
|
+
readonly paddingHorizontal: "xl";
|
|
369
|
+
readonly gap: "sm";
|
|
419
370
|
};
|
|
420
371
|
readonly xl: {
|
|
421
|
-
readonly height: "
|
|
422
|
-
readonly paddingHorizontal: "
|
|
423
|
-
readonly gap: "
|
|
372
|
+
readonly height: "xl";
|
|
373
|
+
readonly paddingHorizontal: "xl";
|
|
374
|
+
readonly gap: "sm";
|
|
424
375
|
};
|
|
425
376
|
readonly xxl: {
|
|
426
|
-
readonly height: "
|
|
427
|
-
readonly paddingHorizontal: "
|
|
428
|
-
readonly gap: "
|
|
429
|
-
};
|
|
430
|
-
readonly ":number": (val: number) => {
|
|
431
|
-
height: number;
|
|
432
|
-
paddingHorizontal: number;
|
|
433
|
-
gap: number;
|
|
377
|
+
readonly height: "xxl";
|
|
378
|
+
readonly paddingHorizontal: "xxl";
|
|
379
|
+
readonly gap: "md";
|
|
434
380
|
};
|
|
435
381
|
};
|
|
436
382
|
/**
|
|
437
|
-
*
|
|
438
|
-
*
|
|
439
|
-
*
|
|
383
|
+
* Like `controlVariant`, but for a pill-shaped control that pins its own
|
|
384
|
+
* `borderRadius` and lays out inline children with a `gap`. A number passes a raw
|
|
385
|
+
* pixel height through to a proportional height/padding/gap.
|
|
386
|
+
*
|
|
387
|
+
* Used by `Badge`, `Chip`, `Pill` so the three stay in lockstep.
|
|
388
|
+
*/
|
|
389
|
+
export declare const controlGapVariant: DynamicVariant<number | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl">;
|
|
390
|
+
/**
|
|
391
|
+
* Keep only `keys` from a variant map — lets a component expose a SUBSET of the
|
|
392
|
+
* canonical vocabulary (e.g. Badge wants `dot` but not `subtle`) while still
|
|
393
|
+
* sourcing every value from the shared ladder. Module-scope use only (it
|
|
394
|
+
* allocates). Unknown keys are ignored.
|
|
440
395
|
*/
|
|
441
396
|
export declare const pickVariants: <T extends Record<string, unknown>, K extends keyof T>(map: T, keys: readonly K[]) => Pick<T, K>;
|
|
442
397
|
/**
|
|
443
|
-
* INTERACTIVE control fill — background + border
|
|
444
|
-
*
|
|
398
|
+
* INTERACTIVE control fill — background (+ border) with hover/press clauses per
|
|
399
|
+
* variant (`filled → { backgroundColor: "color9 hover:color10 press:color8" }`).
|
|
400
|
+
* The frame ladder for `Button` and `ActionIcon`. Use as (or spread into, at
|
|
401
|
+
* module scope) `variants.variant`. `gradient` has no hover/press colour: its
|
|
402
|
+
* runtime gradient would hide it; the press-dip still gives tactile feedback.
|
|
445
403
|
*/
|
|
446
404
|
export declare const controlColorVariant: {
|
|
405
|
+
readonly default: {
|
|
406
|
+
backgroundColor: "color3 hover:color4 press:color5";
|
|
407
|
+
} & {
|
|
408
|
+
borderColor: "borderColor";
|
|
409
|
+
};
|
|
410
|
+
readonly white: {
|
|
411
|
+
backgroundColor: "white hover:color2 press:color3";
|
|
412
|
+
};
|
|
447
413
|
readonly filled: {
|
|
448
|
-
|
|
449
|
-
readonly backgroundColor: "$color10";
|
|
450
|
-
};
|
|
451
|
-
readonly pressStyle: {
|
|
452
|
-
readonly backgroundColor: "$color8";
|
|
453
|
-
};
|
|
454
|
-
readonly backgroundColor: "$color9";
|
|
414
|
+
backgroundColor: "color9 hover:color10 press:color8";
|
|
455
415
|
};
|
|
456
416
|
readonly light: {
|
|
457
|
-
|
|
458
|
-
readonly backgroundColor: "$color5";
|
|
459
|
-
};
|
|
460
|
-
readonly pressStyle: {
|
|
461
|
-
readonly backgroundColor: "$color6";
|
|
462
|
-
};
|
|
463
|
-
readonly backgroundColor: "$color4";
|
|
417
|
+
backgroundColor: "color4 hover:color5 press:color6";
|
|
464
418
|
};
|
|
465
419
|
readonly outline: {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
readonly pressStyle: {
|
|
470
|
-
readonly backgroundColor: "$color4";
|
|
471
|
-
};
|
|
472
|
-
readonly backgroundColor: "transparent";
|
|
473
|
-
readonly borderColor: "$color7";
|
|
420
|
+
backgroundColor: "transparent hover:color3 press:color4";
|
|
421
|
+
} & {
|
|
422
|
+
borderColor: "color7";
|
|
474
423
|
};
|
|
475
424
|
readonly subtle: {
|
|
476
|
-
|
|
477
|
-
readonly backgroundColor: "$color4";
|
|
478
|
-
};
|
|
479
|
-
readonly pressStyle: {
|
|
480
|
-
readonly backgroundColor: "$color5";
|
|
481
|
-
};
|
|
482
|
-
readonly backgroundColor: "transparent";
|
|
483
|
-
};
|
|
484
|
-
readonly default: {
|
|
485
|
-
readonly hoverStyle: {
|
|
486
|
-
readonly backgroundColor: "$color4";
|
|
487
|
-
};
|
|
488
|
-
readonly pressStyle: {
|
|
489
|
-
readonly backgroundColor: "$color5";
|
|
490
|
-
};
|
|
491
|
-
readonly backgroundColor: "$color3";
|
|
492
|
-
readonly borderColor: "$borderColor";
|
|
493
|
-
};
|
|
494
|
-
readonly white: {
|
|
495
|
-
readonly hoverStyle: {
|
|
496
|
-
readonly backgroundColor: "$color2";
|
|
497
|
-
};
|
|
498
|
-
readonly pressStyle: {
|
|
499
|
-
readonly backgroundColor: "$color3";
|
|
500
|
-
};
|
|
501
|
-
readonly backgroundColor: "$white";
|
|
425
|
+
backgroundColor: "transparent hover:color4 press:color5";
|
|
502
426
|
};
|
|
503
427
|
readonly transparent: {
|
|
504
|
-
|
|
505
|
-
readonly backgroundColor: "$color3";
|
|
506
|
-
};
|
|
507
|
-
readonly pressStyle: {
|
|
508
|
-
readonly backgroundColor: "$color4";
|
|
509
|
-
};
|
|
510
|
-
readonly backgroundColor: "transparent";
|
|
428
|
+
backgroundColor: "transparent hover:color3 press:color4";
|
|
511
429
|
};
|
|
512
430
|
readonly gradient: {
|
|
513
|
-
|
|
431
|
+
backgroundColor: "transparent";
|
|
514
432
|
};
|
|
515
433
|
};
|
|
516
434
|
/**
|
|
517
|
-
* STATIC surface fill — background + border only, no
|
|
518
|
-
* ladder for non-interactive surfaces (`Badge`, `Alert`). Includes the
|
|
519
|
-
* `dot
|
|
435
|
+
* STATIC surface fill — background + border only, no interaction clauses. The
|
|
436
|
+
* frame ladder for non-interactive surfaces (`Badge`, `Alert`). Includes the
|
|
437
|
+
* pill-only `dot`; `pickVariants` to expose just the subset a component supports.
|
|
520
438
|
*/
|
|
521
439
|
export declare const surfaceColorVariant: {
|
|
440
|
+
readonly default: {
|
|
441
|
+
backgroundColor: "color3";
|
|
442
|
+
} & {
|
|
443
|
+
borderColor: "borderColor";
|
|
444
|
+
};
|
|
445
|
+
readonly white: {
|
|
446
|
+
backgroundColor: "white";
|
|
447
|
+
};
|
|
522
448
|
readonly filled: {
|
|
523
|
-
|
|
449
|
+
backgroundColor: "color9";
|
|
524
450
|
};
|
|
525
451
|
readonly light: {
|
|
526
|
-
|
|
452
|
+
backgroundColor: "color4";
|
|
527
453
|
};
|
|
528
454
|
readonly outline: {
|
|
529
|
-
|
|
530
|
-
|
|
455
|
+
backgroundColor: "transparent";
|
|
456
|
+
} & {
|
|
457
|
+
borderColor: "color7";
|
|
531
458
|
};
|
|
532
459
|
readonly subtle: {
|
|
533
|
-
|
|
534
|
-
};
|
|
535
|
-
readonly default: {
|
|
536
|
-
readonly backgroundColor: "$color3";
|
|
537
|
-
readonly borderColor: "$borderColor";
|
|
538
|
-
};
|
|
539
|
-
readonly white: {
|
|
540
|
-
readonly backgroundColor: "$white";
|
|
460
|
+
backgroundColor: "transparent";
|
|
541
461
|
};
|
|
542
462
|
readonly transparent: {
|
|
543
|
-
|
|
463
|
+
backgroundColor: "transparent";
|
|
544
464
|
};
|
|
545
465
|
readonly dot: {
|
|
546
|
-
|
|
547
|
-
|
|
466
|
+
backgroundColor: "transparent";
|
|
467
|
+
} & {
|
|
468
|
+
borderColor: "borderColor";
|
|
548
469
|
};
|
|
549
470
|
readonly gradient: {
|
|
550
|
-
|
|
471
|
+
backgroundColor: "transparent";
|
|
551
472
|
};
|
|
552
473
|
};
|
|
553
474
|
/**
|
|
@@ -555,147 +476,87 @@ export declare const surfaceColorVariant: {
|
|
|
555
476
|
* The text ladder for `Button`/`ActionIcon` labels, `Badge` text, `Alert.Title`.
|
|
556
477
|
*/
|
|
557
478
|
export declare const controlTextColorVariant: {
|
|
479
|
+
readonly default: {
|
|
480
|
+
color: "color12";
|
|
481
|
+
};
|
|
482
|
+
readonly white: {
|
|
483
|
+
color: "color9";
|
|
484
|
+
};
|
|
558
485
|
readonly filled: {
|
|
559
|
-
|
|
486
|
+
color: "color1";
|
|
560
487
|
};
|
|
561
488
|
readonly light: {
|
|
562
|
-
|
|
489
|
+
color: "color11";
|
|
563
490
|
};
|
|
564
491
|
readonly outline: {
|
|
565
|
-
|
|
492
|
+
color: "color11";
|
|
566
493
|
};
|
|
567
494
|
readonly subtle: {
|
|
568
|
-
|
|
569
|
-
};
|
|
570
|
-
readonly default: {
|
|
571
|
-
readonly color: "$color12";
|
|
572
|
-
};
|
|
573
|
-
readonly white: {
|
|
574
|
-
readonly color: "$color9";
|
|
495
|
+
color: "color11";
|
|
575
496
|
};
|
|
576
497
|
readonly transparent: {
|
|
577
|
-
|
|
498
|
+
color: "color11";
|
|
578
499
|
};
|
|
579
500
|
readonly dot: {
|
|
580
|
-
|
|
501
|
+
color: "color12";
|
|
581
502
|
};
|
|
582
503
|
readonly gradient: {
|
|
583
|
-
|
|
504
|
+
color: "white";
|
|
584
505
|
};
|
|
585
506
|
};
|
|
586
507
|
/**
|
|
587
508
|
* MUTED text color per variant — softer body copy (e.g. `Alert.Message`). Only
|
|
588
|
-
* `filled` inverts to sit on the strong fill; the rest resolve to
|
|
509
|
+
* `filled` inverts to sit on the strong fill; the rest resolve to `color12`.
|
|
589
510
|
*/
|
|
590
511
|
export declare const mutedTextColorVariant: {
|
|
512
|
+
readonly default: {
|
|
513
|
+
color: "color12";
|
|
514
|
+
};
|
|
515
|
+
readonly white: {
|
|
516
|
+
color: "color12";
|
|
517
|
+
};
|
|
591
518
|
readonly filled: {
|
|
592
|
-
|
|
519
|
+
color: "color1";
|
|
593
520
|
};
|
|
594
521
|
readonly light: {
|
|
595
|
-
|
|
522
|
+
color: "color12";
|
|
596
523
|
};
|
|
597
524
|
readonly outline: {
|
|
598
|
-
|
|
525
|
+
color: "color12";
|
|
599
526
|
};
|
|
600
527
|
readonly subtle: {
|
|
601
|
-
|
|
602
|
-
};
|
|
603
|
-
readonly default: {
|
|
604
|
-
readonly color: "$color12";
|
|
605
|
-
};
|
|
606
|
-
readonly white: {
|
|
607
|
-
readonly color: "$color12";
|
|
528
|
+
color: "color12";
|
|
608
529
|
};
|
|
609
530
|
readonly transparent: {
|
|
610
|
-
|
|
531
|
+
color: "color12";
|
|
611
532
|
};
|
|
612
533
|
readonly dot: {
|
|
613
|
-
|
|
534
|
+
color: "color12";
|
|
614
535
|
};
|
|
615
536
|
readonly gradient: {
|
|
616
|
-
|
|
537
|
+
color: "white";
|
|
617
538
|
};
|
|
618
539
|
};
|
|
619
540
|
/** True when `value` is one of the canonical variant keys. */
|
|
620
541
|
export declare const isVariantKey: (value: string) => value is VariantKey;
|
|
621
542
|
/**
|
|
622
|
-
* Thickness/height-only `size` prop —
|
|
623
|
-
*
|
|
624
|
-
* tracks/boxes whose only size dimension is height.
|
|
625
|
-
*
|
|
626
|
-
* Used by `Loader` (frame) and `Progress` (track).
|
|
543
|
+
* Thickness/height-only `size` prop — a size key onto `height` (from the `size`
|
|
544
|
+
* scale), or a number straight through. Used by `Loader` (frame).
|
|
627
545
|
*/
|
|
628
|
-
export declare const heightVariant:
|
|
629
|
-
readonly xxs: {
|
|
630
|
-
readonly height: "$xxs";
|
|
631
|
-
};
|
|
632
|
-
readonly xs: {
|
|
633
|
-
readonly height: "$xs";
|
|
634
|
-
};
|
|
635
|
-
readonly sm: {
|
|
636
|
-
readonly height: "$sm";
|
|
637
|
-
};
|
|
638
|
-
readonly md: {
|
|
639
|
-
readonly height: "$md";
|
|
640
|
-
};
|
|
641
|
-
readonly lg: {
|
|
642
|
-
readonly height: "$lg";
|
|
643
|
-
};
|
|
644
|
-
readonly xl: {
|
|
645
|
-
readonly height: "$xl";
|
|
646
|
-
};
|
|
647
|
-
readonly xxl: {
|
|
648
|
-
readonly height: "$xxl";
|
|
649
|
-
};
|
|
650
|
-
readonly ":number": (val: number) => {
|
|
651
|
-
height: number;
|
|
652
|
-
};
|
|
653
|
-
};
|
|
546
|
+
export declare const heightVariant: DynamicVariant<number | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl">;
|
|
654
547
|
/**
|
|
655
548
|
* The input root frame's per-size HEIGHT (a `md` field is 40px, matching a `md`
|
|
656
|
-
* Button), with
|
|
657
|
-
* `heightVariant` but with the extra `:string` pass-through. It lives HERE — not in
|
|
549
|
+
* Button), with a number / CSS value escape hatch. It lives HERE — not in
|
|
658
550
|
* `Input/shared.tsx` — so the styled input frame's `size` variant doesn't create a
|
|
659
|
-
* circular TYPE reference back through its own props
|
|
660
|
-
* frame-props → frame). Derived from the canonical control heights.
|
|
551
|
+
* circular TYPE reference back through its own props.
|
|
661
552
|
*/
|
|
662
|
-
export declare const fieldHeightVariant:
|
|
663
|
-
readonly xxs: {
|
|
664
|
-
readonly height: "$xxs";
|
|
665
|
-
};
|
|
666
|
-
readonly xs: {
|
|
667
|
-
readonly height: "$xs";
|
|
668
|
-
};
|
|
669
|
-
readonly sm: {
|
|
670
|
-
readonly height: "$sm";
|
|
671
|
-
};
|
|
672
|
-
readonly md: {
|
|
673
|
-
readonly height: "$md";
|
|
674
|
-
};
|
|
675
|
-
readonly lg: {
|
|
676
|
-
readonly height: "$lg";
|
|
677
|
-
};
|
|
678
|
-
readonly xl: {
|
|
679
|
-
readonly height: "$xl";
|
|
680
|
-
};
|
|
681
|
-
readonly xxl: {
|
|
682
|
-
readonly height: "$xxl";
|
|
683
|
-
};
|
|
684
|
-
readonly ":string": (val: string) => {
|
|
685
|
-
height: BoxProps["height"];
|
|
686
|
-
};
|
|
687
|
-
readonly ":number": (val: number) => {
|
|
688
|
-
height: number;
|
|
689
|
-
};
|
|
690
|
-
};
|
|
553
|
+
export declare const fieldHeightVariant: DynamicVariant<"xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | Length>;
|
|
691
554
|
/**
|
|
692
|
-
* Track-thickness
|
|
693
|
-
*
|
|
694
|
-
*
|
|
695
|
-
* variant (reviewed as a set, `:number` escape hatch preserved) instead of an
|
|
696
|
-
* inline magic-number map. Used by `Progress`.
|
|
555
|
+
* Track-thickness ladder for thin horizontal bars (Progress) — far thinner than a
|
|
556
|
+
* control height, so its own small px ladder. Read as data by `Progress` for the
|
|
557
|
+
* vertical orientation.
|
|
697
558
|
*/
|
|
698
|
-
export declare const
|
|
559
|
+
export declare const PROGRESS_THICKNESS: {
|
|
699
560
|
readonly xxs: {
|
|
700
561
|
readonly height: 2;
|
|
701
562
|
};
|
|
@@ -717,15 +578,10 @@ export declare const progressThicknessVariant: {
|
|
|
717
578
|
readonly xxl: {
|
|
718
579
|
readonly height: 20;
|
|
719
580
|
};
|
|
720
|
-
readonly ":number": (val: number) => {
|
|
721
|
-
height: number;
|
|
722
|
-
};
|
|
723
581
|
};
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
*/
|
|
728
|
-
export declare const sliderTrackVariant: {
|
|
582
|
+
export declare const progressThicknessVariant: DynamicVariant<number | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl">;
|
|
583
|
+
/** Slider track-thickness ladder — tuned for a draggable track. Used by `Slider`. */
|
|
584
|
+
export declare const SLIDER_TRACK_SIZES: {
|
|
729
585
|
readonly xxs: {
|
|
730
586
|
readonly height: 3;
|
|
731
587
|
};
|
|
@@ -747,15 +603,10 @@ export declare const sliderTrackVariant: {
|
|
|
747
603
|
readonly xxl: {
|
|
748
604
|
readonly height: 12;
|
|
749
605
|
};
|
|
750
|
-
readonly ":number": (val: number) => {
|
|
751
|
-
height: number;
|
|
752
|
-
};
|
|
753
606
|
};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
*/
|
|
758
|
-
export declare const sliderThumbVariant: {
|
|
607
|
+
export declare const sliderTrackVariant: DynamicVariant<number | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl">;
|
|
608
|
+
/** Slider thumb ladder — square handle tuned above the same-key track. Used by `Slider`. */
|
|
609
|
+
export declare const SLIDER_THUMB_SIZES: {
|
|
759
610
|
readonly xxs: {
|
|
760
611
|
readonly width: 12;
|
|
761
612
|
readonly height: 12;
|
|
@@ -784,18 +635,13 @@ export declare const sliderThumbVariant: {
|
|
|
784
635
|
readonly width: 32;
|
|
785
636
|
readonly height: 32;
|
|
786
637
|
};
|
|
787
|
-
readonly ":number": (val: number) => {
|
|
788
|
-
width: number;
|
|
789
|
-
height: number;
|
|
790
|
-
};
|
|
791
638
|
};
|
|
639
|
+
export declare const sliderThumbVariant: DynamicVariant<number | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl">;
|
|
792
640
|
/**
|
|
793
|
-
* Fixed content-WIDTH ladder for panels (Dialog, Drawer width axis)
|
|
794
|
-
*
|
|
795
|
-
* passes an arbitrary px/CSS width through. Distinct from `maxWidthVariant`, which
|
|
796
|
-
* sets a max-width cap rather than a fixed width.
|
|
641
|
+
* Fixed content-WIDTH ladder for panels (Dialog, Drawer width axis), so a `md` of
|
|
642
|
+
* any panel is the same width. Read as data by `Drawer`.
|
|
797
643
|
*/
|
|
798
|
-
export declare const
|
|
644
|
+
export declare const PANEL_WIDTH: {
|
|
799
645
|
readonly xxs: {
|
|
800
646
|
readonly width: 160;
|
|
801
647
|
};
|
|
@@ -817,13 +663,9 @@ export declare const panelWidthVariant: {
|
|
|
817
663
|
readonly xxl: {
|
|
818
664
|
readonly width: 560;
|
|
819
665
|
};
|
|
820
|
-
readonly ":number": (val: number) => {
|
|
821
|
-
width: number;
|
|
822
|
-
};
|
|
823
|
-
readonly ":string": (val: string) => {
|
|
824
|
-
width: BoxProps["width"];
|
|
825
|
-
};
|
|
826
666
|
};
|
|
667
|
+
/** {@link PANEL_WIDTH} as a variant; a number / CSS value passes through as `width`. */
|
|
668
|
+
export declare const panelWidthVariant: DynamicVariant<"xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | Length>;
|
|
827
669
|
/**
|
|
828
670
|
* Cursor is a web affordance in this kit. Passing it as a Tamagui style prop on
|
|
829
671
|
* native can leak to React Native's host node as a top-level prop and trigger
|
|
@@ -910,164 +752,197 @@ export declare const webButtonTextReset: () => {
|
|
|
910
752
|
*/
|
|
911
753
|
export type FlexDirection = "row" | "column" | "row-reverse" | "column-reverse";
|
|
912
754
|
/**
|
|
913
|
-
*
|
|
914
|
-
*
|
|
915
|
-
*
|
|
916
|
-
*
|
|
917
|
-
*
|
|
918
|
-
* maps a `transitionTimingFunction` onto so the easing is exact.
|
|
755
|
+
* The named presets registered in `@knitui/core`'s animation drivers — the keys
|
|
756
|
+
* of the one `MOTION_PRESETS` table both drivers are built from (`fast`,
|
|
757
|
+
* `medium`, `slow`, `bouncy`, `pulse`, `spin`, `stripe`, and the easing-curve
|
|
758
|
+
* keys `linear` / `ease` / `ease-in` / `ease-out` / `ease-in-out`). v2's
|
|
759
|
+
* `"100ms"` key is gone: a duration is plain CSS in v3.
|
|
919
760
|
*/
|
|
920
|
-
export type TransitionName =
|
|
921
|
-
export type TransitionValue = TransitionName | [TransitionName, {
|
|
922
|
-
duration?: number;
|
|
923
|
-
}] | null;
|
|
761
|
+
export type TransitionName = DriverPresetName;
|
|
924
762
|
/**
|
|
925
|
-
*
|
|
926
|
-
*
|
|
927
|
-
*
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
763
|
+
* The object form of a v3 transition — the subset of Tamagui's `TransitionConfig`
|
|
764
|
+
* the kit authors. `properties` scopes the transition (v2's `animateOnly`, as a
|
|
765
|
+
* CSS `transition-property` list: `"transform, opacity"`).
|
|
766
|
+
*/
|
|
767
|
+
export type TransitionSpec = {
|
|
768
|
+
preset?: TransitionName;
|
|
769
|
+
/** ms. Overrides the preset's duration (a spring preset re-solves). */
|
|
770
|
+
duration?: number;
|
|
771
|
+
/** Any CSS timing function (`"ease-out"`, `"cubic-bezier(…)"`) — exact on web AND native. */
|
|
772
|
+
easing?: string;
|
|
773
|
+
/** ms. */
|
|
774
|
+
delay?: number;
|
|
775
|
+
/** Comma-separated style properties this transition applies to. */
|
|
776
|
+
properties?: string;
|
|
777
|
+
/** The transition while mounting, if it differs. */
|
|
778
|
+
enter?: TransitionName | TransitionSpec;
|
|
779
|
+
/** The transition while unmounting, if it differs. */
|
|
780
|
+
exit?: TransitionName | TransitionSpec;
|
|
781
|
+
};
|
|
782
|
+
/**
|
|
783
|
+
* A kit transition value: a preset name, an object, or `null` (keep the
|
|
784
|
+
* `transition` key present but animate nothing — Tamagui's rule for animated
|
|
785
|
+
* views, so hook order never changes).
|
|
786
|
+
*/
|
|
787
|
+
export type TransitionValue = TransitionName | TransitionSpec | null;
|
|
788
|
+
/** `["transform", "opacity"]` / `"transform, opacity"` → `"transform, opacity"`. */
|
|
789
|
+
export declare const toTransitionProperties: (properties: readonly string[] | string) => string;
|
|
790
|
+
/**
|
|
791
|
+
* Scope a transition to `properties` (the v3 home of v2's `animateOnly`): a preset
|
|
792
|
+
* name becomes `{ preset, properties }`, an object gains `properties`, `null` stays
|
|
793
|
+
* `null`. Without it a plain `transition="fast"` animates EVERY changing property,
|
|
794
|
+
* which slides floating elements across the screen on each re-measure.
|
|
795
|
+
*/
|
|
796
|
+
export declare const withTransitionProperties: (value: TransitionValue, properties: readonly string[] | string | undefined) => TransitionValue;
|
|
797
|
+
/**
|
|
798
|
+
* Map a CSS `transition-timing-function` onto the registered easing preset that
|
|
799
|
+
* reproduces it (`"ease-out"` → `"ease-out"`; unknown → `"ease"`; a
|
|
800
|
+
* `cubic-bezier(…)` → `"ease"`). v3 accepts any CSS easing in the object form,
|
|
801
|
+
* so prefer {@link timedTransition}, which keeps the curve EXACT; this stays for
|
|
802
|
+
* callers that need a preset NAME.
|
|
937
803
|
*/
|
|
938
804
|
export declare const resolveTransition: (timingFunction?: string) => TransitionName;
|
|
939
805
|
/**
|
|
940
|
-
*
|
|
941
|
-
*
|
|
942
|
-
* `
|
|
943
|
-
*
|
|
944
|
-
* idiom the size/height-clip components all repeat.
|
|
806
|
+
* A timed (non-spring) transition: exact `duration` (ms) and exact CSS easing
|
|
807
|
+
* curve, as the v3 object form `{ duration, easing }` — both drivers take any CSS
|
|
808
|
+
* timing function (`cubic-bezier(…)` included), so nothing approximates any more.
|
|
809
|
+
* Pass `properties` to scope it.
|
|
945
810
|
*/
|
|
946
|
-
export declare const timedTransition: (duration: number, timingFunction?: string) =>
|
|
811
|
+
export declare const timedTransition: (duration: number, timingFunction?: string, properties?: readonly string[] | string) => TransitionSpec;
|
|
947
812
|
/**
|
|
948
813
|
* Build a precisely-typed `{ transition }` object to spread onto a styled
|
|
949
|
-
* component
|
|
950
|
-
*
|
|
814
|
+
* component (or a `styled()` base), optionally scoped to `properties`. Keep the
|
|
815
|
+
* prop present and pass `null` when disabled (Tamagui's animated-view rule).
|
|
816
|
+
*
|
|
817
|
+
* ```ts
|
|
818
|
+
* styled(Box, { ...transitionProps("fast", ["backgroundColor"]) })
|
|
819
|
+
* ```
|
|
951
820
|
*/
|
|
952
|
-
export declare const transitionProps: (transition: TransitionValue) => {
|
|
821
|
+
export declare const transitionProps: (transition: TransitionValue, properties?: readonly string[] | string) => {
|
|
953
822
|
transition: TransitionValue;
|
|
954
823
|
};
|
|
824
|
+
/**
|
|
825
|
+
* Scope an existing `{ transition }` result (e.g. from `useReducedTransition`) to
|
|
826
|
+
* `properties` — the v3 replacement for the v2 pair
|
|
827
|
+
* `{...fade} {...animateOnlyProps(["opacity"])}` → `{...scopeTransition(fade, ["opacity"])}`.
|
|
828
|
+
* Cached per (result object, property list), so a memoised `fade` yields the same
|
|
829
|
+
* object every render.
|
|
830
|
+
*/
|
|
831
|
+
export declare const scopeTransition: (result: {
|
|
832
|
+
transition: TransitionValue;
|
|
833
|
+
}, properties: readonly string[] | string) => {
|
|
834
|
+
transition: TransitionValue;
|
|
835
|
+
};
|
|
836
|
+
/** The base duration (ms) of a timed preset, or `undefined` for a spring. */
|
|
837
|
+
export declare const presetDurationMs: (name: TransitionName) => number | undefined;
|
|
955
838
|
/**
|
|
956
839
|
* Fraction an interactive control scales DOWN to while pressed — the tactile
|
|
957
840
|
* "dip" shared by `Button`, `ActionIcon`, `Chip`, … `0.97` is a 3% shrink: clearly
|
|
958
|
-
* felt without looking broken on the smallest controls.
|
|
959
|
-
* once for the whole kit.
|
|
841
|
+
* felt without looking broken on the smallest controls.
|
|
960
842
|
*/
|
|
961
843
|
export declare const PRESS_SCALE = 0.97;
|
|
962
844
|
/**
|
|
963
|
-
* Tactile "shrink on press" feedback. Spread onto a pressable
|
|
964
|
-
* (`...pressScaleStyle`)
|
|
965
|
-
*
|
|
966
|
-
*
|
|
967
|
-
*
|
|
968
|
-
*
|
|
969
|
-
* native, using the kit's own animation/press internals end to end.
|
|
845
|
+
* Tactile "shrink on press" feedback as a v3 flat clause. Spread onto a pressable
|
|
846
|
+
* frame's BASE style (`...pressScaleStyle`). v3 merges clause slots per (property,
|
|
847
|
+
* condition) across tiers, so this base `scale: "press:0.97"` composes with a
|
|
848
|
+
* variant's `bg: "… press:color8"` (different properties) — on press the control
|
|
849
|
+
* both darkens (variant) and dips (this). Pair the frame with `usePressScale()` at
|
|
850
|
+
* render so the dip EASES (and collapses under reduced motion).
|
|
970
851
|
*/
|
|
971
852
|
export declare const pressScaleStyle: {
|
|
972
|
-
readonly
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
*
|
|
983
|
-
*
|
|
984
|
-
*
|
|
985
|
-
*
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
*
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
*/
|
|
998
|
-
export declare const hoverProps: (handlers: {
|
|
999
|
-
onHoverIn?: () => void;
|
|
1000
|
-
onHoverOut?: () => void;
|
|
1001
|
-
}) => {
|
|
1002
|
-
onHoverIn?: () => void;
|
|
1003
|
-
onHoverOut?: () => void;
|
|
1004
|
-
};
|
|
853
|
+
readonly scale: "press:0.97";
|
|
854
|
+
};
|
|
855
|
+
/** Hover handlers as spread by {@link hoverProps}: web keys OR native keys. */
|
|
856
|
+
export interface HoverHandlerProps<E = unknown> {
|
|
857
|
+
onMouseEnter?: (event: E) => void;
|
|
858
|
+
onMouseLeave?: (event: E) => void;
|
|
859
|
+
onHoverIn?: (event: E) => void;
|
|
860
|
+
onHoverOut?: (event: E) => void;
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* Pointer-hover handlers for a Tamagui frame, per platform. Spread the result:
|
|
864
|
+
* `<Frame {...hoverProps({ onHoverIn, onHoverOut })} />`. The platform event is
|
|
865
|
+
* forwarded to the handler (typed `unknown` unless `E` is given).
|
|
866
|
+
*
|
|
867
|
+
* v3 (3.0.18) only attaches its web mouse listeners when the element has
|
|
868
|
+
* `onMouseEnter`/`onMouseLeave` (or a `hover:` style): `onHoverIn`/`onHoverOut`
|
|
869
|
+
* ALONE are never wired on web (`createComponent` → `attachHover`), so a frame that
|
|
870
|
+
* only declared them silently ignored the pointer. Web therefore gets the mouse
|
|
871
|
+
* handlers; native keeps Tamagui's `onHoverIn`/`onHoverOut` (pointer devices on
|
|
872
|
+
* iPad / Android). Absent handlers stay absent (no `undefined` keys).
|
|
873
|
+
*/
|
|
874
|
+
export declare function hoverProps<E = unknown>(handlers: {
|
|
875
|
+
onHoverIn?: (event: E) => void;
|
|
876
|
+
onHoverOut?: (event: E) => void;
|
|
877
|
+
}): HoverHandlerProps<E>;
|
|
1005
878
|
/**
|
|
1006
879
|
* Mantine-style `shadow` scale (xxs→xxl). Elevation rises with the key; colour
|
|
1007
|
-
* comes from the
|
|
880
|
+
* comes from the `dropShadowColor` theme key so it adapts to light/dark.
|
|
1008
881
|
*
|
|
1009
882
|
* Expressed as the cross-platform `boxShadow` style prop (`"{x}px {y}px {blur}px
|
|
1010
|
-
* {spread}px {color}"`) rather than legacy RN `shadow*` props: `
|
|
1011
|
-
*
|
|
1012
|
-
*
|
|
1013
|
-
*
|
|
1014
|
-
*
|
|
1015
|
-
*
|
|
883
|
+
* {spread}px {color}"`) rather than legacy RN `shadow*` props: `boxShadow` works
|
|
884
|
+
* on web + iOS + Android 9+ (RN New Arch). v3 resolves the bare theme name
|
|
885
|
+
* embedded in the shadow recipe on every platform (`getSplitStyles`
|
|
886
|
+
* `configuredValue` → `grammar.embeddedTokens`, where a recipe word that is not a
|
|
887
|
+
* token is resolved as a COLOR against the active theme): web emits
|
|
888
|
+
* `var(--dropShadowColor)`, native the theme's raw rgba. So these stay static
|
|
889
|
+
* strings — no runtime theme read. Verified by `shadow.test.tsx`.
|
|
1016
890
|
*
|
|
1017
|
-
* The
|
|
1018
|
-
*
|
|
1019
|
-
*
|
|
891
|
+
* The key is deliberately NOT named `shadowColor`: that collides with React
|
|
892
|
+
* Native's reserved legacy `shadowColor` style prop, which makes the native
|
|
893
|
+
* pipeline drop the token's alpha on iOS (shadows render washed-out).
|
|
1020
894
|
*/
|
|
1021
895
|
export declare const shadowVariant: {
|
|
1022
896
|
readonly xxs: {
|
|
1023
|
-
readonly boxShadow: "0px 1px 1px 0px
|
|
897
|
+
readonly boxShadow: "0px 1px 1px 0px dropShadowColor";
|
|
1024
898
|
};
|
|
1025
899
|
readonly xs: {
|
|
1026
|
-
readonly boxShadow: "0px 1px 3px 0px
|
|
900
|
+
readonly boxShadow: "0px 1px 3px 0px dropShadowColor";
|
|
1027
901
|
};
|
|
1028
902
|
readonly sm: {
|
|
1029
|
-
readonly boxShadow: "0px 3px 6px 0px
|
|
903
|
+
readonly boxShadow: "0px 3px 6px 0px dropShadowColor";
|
|
1030
904
|
};
|
|
1031
905
|
readonly md: {
|
|
1032
|
-
readonly boxShadow: "0px 5px 12px 0px
|
|
906
|
+
readonly boxShadow: "0px 5px 12px 0px dropShadowColor";
|
|
1033
907
|
};
|
|
1034
908
|
readonly lg: {
|
|
1035
|
-
readonly boxShadow: "0px 8px 20px 0px
|
|
909
|
+
readonly boxShadow: "0px 8px 20px 0px dropShadowColor";
|
|
1036
910
|
};
|
|
1037
911
|
readonly xl: {
|
|
1038
|
-
readonly boxShadow: "0px 12px 28px 0px
|
|
912
|
+
readonly boxShadow: "0px 12px 28px 0px dropShadowColor";
|
|
1039
913
|
};
|
|
1040
914
|
readonly xxl: {
|
|
1041
|
-
readonly boxShadow: "0px 16px 40px 0px
|
|
915
|
+
readonly boxShadow: "0px 16px 40px 0px dropShadowColor";
|
|
1042
916
|
};
|
|
1043
917
|
};
|
|
918
|
+
/** The shadow scale's keys (`shadow` prop values). */
|
|
919
|
+
export type ShadowKey = keyof typeof shadowVariant;
|
|
1044
920
|
/**
|
|
1045
921
|
* Mantine-style `size` prop for text: a size key (`"md"`) maps to the matching
|
|
1046
|
-
* font-size token
|
|
1047
|
-
*
|
|
1048
|
-
* font config's per-fontSize line-height mapping.
|
|
922
|
+
* font-size token. Line height is intentionally left unset so it derives from
|
|
923
|
+
* the font config's per-fontSize line-height mapping. Static exact-key map.
|
|
1049
924
|
*/
|
|
1050
925
|
export declare const fontSizeVariant: {
|
|
1051
926
|
readonly xxs: {
|
|
1052
|
-
readonly fontSize: "
|
|
927
|
+
readonly fontSize: "xxs";
|
|
1053
928
|
};
|
|
1054
929
|
readonly xs: {
|
|
1055
|
-
readonly fontSize: "
|
|
930
|
+
readonly fontSize: "xs";
|
|
1056
931
|
};
|
|
1057
932
|
readonly sm: {
|
|
1058
|
-
readonly fontSize: "
|
|
933
|
+
readonly fontSize: "sm";
|
|
1059
934
|
};
|
|
1060
935
|
readonly md: {
|
|
1061
|
-
readonly fontSize: "
|
|
936
|
+
readonly fontSize: "md";
|
|
1062
937
|
};
|
|
1063
938
|
readonly lg: {
|
|
1064
|
-
readonly fontSize: "
|
|
939
|
+
readonly fontSize: "lg";
|
|
1065
940
|
};
|
|
1066
941
|
readonly xl: {
|
|
1067
|
-
readonly fontSize: "
|
|
942
|
+
readonly fontSize: "xl";
|
|
1068
943
|
};
|
|
1069
944
|
readonly xxl: {
|
|
1070
|
-
readonly fontSize: "
|
|
945
|
+
readonly fontSize: "xxl";
|
|
1071
946
|
};
|
|
1072
947
|
};
|
|
1073
948
|
/**
|
|
@@ -1081,116 +956,67 @@ export declare const fontSizeVariant: {
|
|
|
1081
956
|
*/
|
|
1082
957
|
export declare const kbdSizeVariant: {
|
|
1083
958
|
readonly xxs: {
|
|
1084
|
-
readonly fontSize: "
|
|
1085
|
-
readonly paddingHorizontal: "
|
|
959
|
+
readonly fontSize: "xxs";
|
|
960
|
+
readonly paddingHorizontal: "xxs";
|
|
1086
961
|
readonly paddingVertical: 2;
|
|
1087
|
-
readonly borderRadius: "
|
|
962
|
+
readonly borderRadius: "xs";
|
|
1088
963
|
};
|
|
1089
964
|
readonly xs: {
|
|
1090
|
-
readonly fontSize: "
|
|
1091
|
-
readonly paddingHorizontal: "
|
|
965
|
+
readonly fontSize: "xxs";
|
|
966
|
+
readonly paddingHorizontal: "xs";
|
|
1092
967
|
readonly paddingVertical: 2;
|
|
1093
|
-
readonly borderRadius: "
|
|
968
|
+
readonly borderRadius: "xs";
|
|
1094
969
|
};
|
|
1095
970
|
readonly sm: {
|
|
1096
|
-
readonly fontSize: "
|
|
1097
|
-
readonly paddingHorizontal: "
|
|
971
|
+
readonly fontSize: "xs";
|
|
972
|
+
readonly paddingHorizontal: "sm";
|
|
1098
973
|
readonly paddingVertical: 4;
|
|
1099
|
-
readonly borderRadius: "
|
|
974
|
+
readonly borderRadius: "sm";
|
|
1100
975
|
};
|
|
1101
976
|
readonly md: {
|
|
1102
|
-
readonly fontSize: "
|
|
1103
|
-
readonly paddingHorizontal: "
|
|
977
|
+
readonly fontSize: "sm";
|
|
978
|
+
readonly paddingHorizontal: "md";
|
|
1104
979
|
readonly paddingVertical: 6;
|
|
1105
|
-
readonly borderRadius: "
|
|
980
|
+
readonly borderRadius: "sm";
|
|
1106
981
|
};
|
|
1107
982
|
readonly lg: {
|
|
1108
|
-
readonly fontSize: "
|
|
1109
|
-
readonly paddingHorizontal: "
|
|
983
|
+
readonly fontSize: "lg";
|
|
984
|
+
readonly paddingHorizontal: "lg";
|
|
1110
985
|
readonly paddingVertical: 8;
|
|
1111
|
-
readonly borderRadius: "
|
|
986
|
+
readonly borderRadius: "md";
|
|
1112
987
|
};
|
|
1113
988
|
readonly xl: {
|
|
1114
|
-
readonly fontSize: "
|
|
1115
|
-
readonly paddingHorizontal: "
|
|
989
|
+
readonly fontSize: "xl";
|
|
990
|
+
readonly paddingHorizontal: "xl";
|
|
1116
991
|
readonly paddingVertical: 10;
|
|
1117
|
-
readonly borderRadius: "
|
|
992
|
+
readonly borderRadius: "md";
|
|
1118
993
|
};
|
|
1119
994
|
readonly xxl: {
|
|
1120
|
-
readonly fontSize: "
|
|
1121
|
-
readonly paddingHorizontal: "
|
|
995
|
+
readonly fontSize: "xxl";
|
|
996
|
+
readonly paddingHorizontal: "xxl";
|
|
1122
997
|
readonly paddingVertical: 12;
|
|
1123
|
-
readonly borderRadius: "
|
|
998
|
+
readonly borderRadius: "lg";
|
|
1124
999
|
};
|
|
1125
1000
|
};
|
|
1001
|
+
/** The plain `fontSize` fallthrough body: a raw px / font token / CSS value. */
|
|
1002
|
+
export declare const fontSizeOf: (value: number | FontSizeTokens | CssString) => StyleFragment;
|
|
1126
1003
|
/**
|
|
1127
|
-
*
|
|
1128
|
-
*
|
|
1129
|
-
*
|
|
1130
|
-
*
|
|
1131
|
-
* ```ts
|
|
1132
|
-
* size: { xs: { fontSize: "$xs" }, …, ...fontSizePassthroughVariant }
|
|
1133
|
-
* ```
|
|
1004
|
+
* {@link fontSizeVariant} plus the escape hatch: a number / font token / CSS value
|
|
1005
|
+
* flows straight to `fontSize`. To add keys (Title's `h1`…), build a new one:
|
|
1006
|
+
* `tableVariant({ ...fontSizeVariant, h1: { fontSize: "xxl" } }, fontSizeOf)`.
|
|
1134
1007
|
*/
|
|
1135
|
-
export declare const fontSizePassthroughVariant:
|
|
1136
|
-
readonly ":string": (val: string) => {
|
|
1137
|
-
fontSize: FontSizeTokens;
|
|
1138
|
-
};
|
|
1139
|
-
readonly ":number": (val: number) => {
|
|
1140
|
-
fontSize: number;
|
|
1141
|
-
};
|
|
1142
|
-
readonly xxs: {
|
|
1143
|
-
readonly fontSize: "$xxs";
|
|
1144
|
-
};
|
|
1145
|
-
readonly xs: {
|
|
1146
|
-
readonly fontSize: "$xs";
|
|
1147
|
-
};
|
|
1148
|
-
readonly sm: {
|
|
1149
|
-
readonly fontSize: "$sm";
|
|
1150
|
-
};
|
|
1151
|
-
readonly md: {
|
|
1152
|
-
readonly fontSize: "$md";
|
|
1153
|
-
};
|
|
1154
|
-
readonly lg: {
|
|
1155
|
-
readonly fontSize: "$lg";
|
|
1156
|
-
};
|
|
1157
|
-
readonly xl: {
|
|
1158
|
-
readonly fontSize: "$xl";
|
|
1159
|
-
};
|
|
1160
|
-
readonly xxl: {
|
|
1161
|
-
readonly fontSize: "$xxl";
|
|
1162
|
-
};
|
|
1163
|
-
};
|
|
1008
|
+
export declare const fontSizePassthroughVariant: DynamicVariant<CssString | import("@tamagui/web").FontSize>;
|
|
1164
1009
|
/** Open-ended `fontWeight` prop (`"700"`, `600`, `"bold"`, …). */
|
|
1165
|
-
export declare const fontWeightVariant:
|
|
1166
|
-
readonly ":string": (val: string) => {
|
|
1167
|
-
fontWeight: TextProps["fontWeight"];
|
|
1168
|
-
};
|
|
1169
|
-
readonly ":number": (val: number) => {
|
|
1170
|
-
fontWeight: TextProps["fontWeight"];
|
|
1171
|
-
};
|
|
1172
|
-
};
|
|
1010
|
+
export declare const fontWeightVariant: DynamicVariant<number | CssString>;
|
|
1173
1011
|
/** Open-ended `textAlign` prop (`"left"`, `"center"`, `"justify"`, …). */
|
|
1174
|
-
export declare const textAlignVariant:
|
|
1175
|
-
readonly ":string": (val: string) => {
|
|
1176
|
-
textAlign: TextProps["textAlign"];
|
|
1177
|
-
};
|
|
1178
|
-
};
|
|
1012
|
+
export declare const textAlignVariant: DynamicVariant<CssString | "center" | "auto" | "left" | "right" | "justify">;
|
|
1179
1013
|
/** Open-ended `textTransform` prop (`"uppercase"`, `"capitalize"`, …). */
|
|
1180
|
-
export declare const textTransformVariant:
|
|
1181
|
-
readonly ":string": (val: string) => {
|
|
1182
|
-
textTransform: TextProps["textTransform"];
|
|
1183
|
-
};
|
|
1184
|
-
};
|
|
1014
|
+
export declare const textTransformVariant: DynamicVariant<CssString | "none" | "uppercase" | "lowercase" | "capitalize">;
|
|
1185
1015
|
/**
|
|
1186
1016
|
* CSS `text-wrap` values (`"balance"`, `"pretty"`, …) — web-only and not modeled
|
|
1187
|
-
* by Tamagui's style props
|
|
1017
|
+
* by Tamagui's style props.
|
|
1188
1018
|
*/
|
|
1189
1019
|
export type TextWrap = "wrap" | "nowrap" | "balance" | "pretty" | "stable";
|
|
1190
1020
|
/** Mantine-style `textWrap` prop. Web-only; a no-op on native. Used by `Title`. */
|
|
1191
|
-
export declare const textWrapVariant:
|
|
1192
|
-
readonly ":string": (val: string) => {
|
|
1193
|
-
textWrap: TextWrap;
|
|
1194
|
-
};
|
|
1195
|
-
};
|
|
1021
|
+
export declare const textWrapVariant: DynamicVariant<TextWrap>;
|
|
1196
1022
|
//# sourceMappingURL=style-props.d.ts.map
|