@cognitap/radiant 0.0.75 → 0.0.76
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/CHANGELOG.md +4 -0
- package/dist/library/charts/Charts.d.ts +1 -1
- package/dist/library/charts/Charts.d.ts.map +1 -1
- package/dist/library/charts/Charts.js +3 -3
- package/dist/library/charts/Charts.js.map +1 -1
- package/dist/library/{Accordion.d.ts → components/Accordion/Accordion.d.ts} +4 -4
- package/dist/library/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/library/{Accordion.js → components/Accordion/Accordion.js} +6 -6
- package/dist/library/components/Accordion/Accordion.js.map +1 -0
- package/dist/library/{Alert.d.ts → components/Alert/Alert.d.ts} +3 -3
- package/dist/library/components/Alert/Alert.d.ts.map +1 -0
- package/dist/library/{Alert.js → components/Alert/Alert.js} +4 -4
- package/dist/library/components/Alert/Alert.js.map +1 -0
- package/dist/library/{AlertDialog.d.ts → components/AlertDialog/AlertDialog.d.ts} +1 -1
- package/dist/library/components/AlertDialog/AlertDialog.d.ts.map +1 -0
- package/dist/library/{AlertDialog.js → components/AlertDialog/AlertDialog.js} +3 -3
- package/dist/library/components/AlertDialog/AlertDialog.js.map +1 -0
- package/dist/library/{AppShell.d.ts → components/AppShell/AppShell.d.ts} +6 -6
- package/dist/library/components/AppShell/AppShell.d.ts.map +1 -0
- package/dist/library/{AppShell.js → components/AppShell/AppShell.js} +12 -11
- package/dist/library/components/AppShell/AppShell.js.map +1 -0
- package/dist/library/{AspectRatio.d.ts → components/AspectRatio/AspectRatio.d.ts} +1 -1
- package/dist/library/components/AspectRatio/AspectRatio.d.ts.map +1 -0
- package/dist/library/{AspectRatio.js → components/AspectRatio/AspectRatio.js} +2 -2
- package/dist/library/components/AspectRatio/AspectRatio.js.map +1 -0
- package/dist/library/{Autocomplete.d.ts → components/Autocomplete/Autocomplete.d.ts} +3 -3
- package/dist/library/components/Autocomplete/Autocomplete.d.ts.map +1 -0
- package/dist/library/{Autocomplete.js → components/Autocomplete/Autocomplete.js} +2 -2
- package/dist/library/components/Autocomplete/Autocomplete.js.map +1 -0
- package/dist/library/{Avatar.d.ts → components/Avatar/Avatar.d.ts} +2 -2
- package/dist/library/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/library/{Avatar.js → components/Avatar/Avatar.js} +2 -2
- package/dist/library/components/Avatar/Avatar.js.map +1 -0
- package/dist/library/{Badge.d.ts → components/Badge/Badge.d.ts} +2 -2
- package/dist/library/components/Badge/Badge.d.ts.map +1 -0
- package/dist/library/{Badge.js → components/Badge/Badge.js} +3 -3
- package/dist/library/components/Badge/Badge.js.map +1 -0
- package/dist/library/{Breadcrumb.d.ts → components/Breadcrumb/Breadcrumb.d.ts} +2 -2
- package/dist/library/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/library/{Breadcrumb.js → components/Breadcrumb/Breadcrumb.js} +4 -4
- package/dist/library/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/library/{Button.d.ts → components/Button/Button.d.ts} +4 -4
- package/dist/library/components/Button/Button.d.ts.map +1 -0
- package/dist/library/{Button.js → components/Button/Button.js} +8 -8
- package/dist/library/components/Button/Button.js.map +1 -0
- package/dist/library/{ButtonGroup.d.ts → components/ButtonGroup/ButtonGroup.d.ts} +2 -2
- package/dist/library/components/ButtonGroup/ButtonGroup.d.ts.map +1 -0
- package/dist/library/{ButtonGroup.js → components/ButtonGroup/ButtonGroup.js} +2 -2
- package/dist/library/components/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/library/{Card.d.ts → components/Card/Card.d.ts} +2 -2
- package/dist/library/components/Card/Card.d.ts.map +1 -0
- package/dist/library/{Card.js → components/Card/Card.js} +3 -3
- package/dist/library/components/Card/Card.js.map +1 -0
- package/dist/library/{Carousel.d.ts → components/Carousel/Carousel.d.ts} +5 -5
- package/dist/library/components/Carousel/Carousel.d.ts.map +1 -0
- package/dist/library/{Carousel.js → components/Carousel/Carousel.js} +6 -6
- package/dist/library/components/Carousel/Carousel.js.map +1 -0
- package/dist/library/{Checkbox.d.ts → components/Checkbox/Checkbox.d.ts} +3 -3
- package/dist/library/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/library/{Checkbox.js → components/Checkbox/Checkbox.js} +5 -5
- package/dist/library/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/library/{CheckboxGroup.d.ts → components/CheckboxGroup/CheckboxGroup.d.ts} +4 -4
- package/dist/library/components/CheckboxGroup/CheckboxGroup.d.ts.map +1 -0
- package/dist/library/{CheckboxGroup.js → components/CheckboxGroup/CheckboxGroup.js} +6 -6
- package/dist/library/components/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/library/{CodeBlock.d.ts → components/CodeBlock/CodeBlock.d.ts} +5 -5
- package/dist/library/components/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/dist/library/{CodeBlock.js → components/CodeBlock/CodeBlock.js} +5 -5
- package/dist/library/components/CodeBlock/CodeBlock.js.map +1 -0
- package/dist/library/{Collapsible.d.ts → components/Collapsible/Collapsible.d.ts} +2 -2
- package/dist/library/components/Collapsible/Collapsible.d.ts.map +1 -0
- package/dist/library/{Collapsible.js → components/Collapsible/Collapsible.js} +5 -5
- package/dist/library/components/Collapsible/Collapsible.js.map +1 -0
- package/dist/library/{Combobox.d.ts → components/Combobox/Combobox.d.ts} +6 -6
- package/dist/library/components/Combobox/Combobox.d.ts.map +1 -0
- package/dist/library/{Combobox.js → components/Combobox/Combobox.js} +13 -13
- package/dist/library/components/Combobox/Combobox.js.map +1 -0
- package/dist/library/components/Combobox/comboboxStyles.d.ts.map +1 -0
- package/dist/library/{comboboxStyles.js → components/Combobox/comboboxStyles.js} +1 -1
- package/dist/library/components/Combobox/comboboxStyles.js.map +1 -0
- package/dist/library/{Command.d.ts → components/Command/Command.d.ts} +6 -6
- package/dist/library/components/Command/Command.d.ts.map +1 -0
- package/dist/library/{Command.js → components/Command/Command.js} +8 -8
- package/dist/library/components/Command/Command.js.map +1 -0
- package/dist/library/{ContextMenu.d.ts → components/ContextMenu/ContextMenu.d.ts} +3 -3
- package/dist/library/components/ContextMenu/ContextMenu.d.ts.map +1 -0
- package/dist/library/{ContextMenu.js → components/ContextMenu/ContextMenu.js} +6 -6
- package/dist/library/components/ContextMenu/ContextMenu.js.map +1 -0
- package/dist/library/{Dialog.d.ts → components/Dialog/Dialog.d.ts} +4 -4
- package/dist/library/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/library/{Dialog.js → components/Dialog/Dialog.js} +8 -8
- package/dist/library/components/Dialog/Dialog.js.map +1 -0
- package/dist/library/{Drawer.d.ts → components/Drawer/Drawer.d.ts} +7 -7
- package/dist/library/components/Drawer/Drawer.d.ts.map +1 -0
- package/dist/library/{Drawer.js → components/Drawer/Drawer.js} +9 -9
- package/dist/library/components/Drawer/Drawer.js.map +1 -0
- package/dist/library/{EmptyState.d.ts → components/EmptyState/EmptyState.d.ts} +3 -3
- package/dist/library/components/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/library/{EmptyState.js → components/EmptyState/EmptyState.js} +4 -4
- package/dist/library/components/EmptyState/EmptyState.js.map +1 -0
- package/dist/library/{Field.d.ts → components/Field/Field.d.ts} +2 -2
- package/dist/library/components/Field/Field.d.ts.map +1 -0
- package/dist/library/{Field.js → components/Field/Field.js} +2 -2
- package/dist/library/components/Field/Field.js.map +1 -0
- package/dist/library/{Fieldset.d.ts → components/Fieldset/Fieldset.d.ts} +2 -2
- package/dist/library/components/Fieldset/Fieldset.d.ts.map +1 -0
- package/dist/library/{Fieldset.js → components/Fieldset/Fieldset.js} +3 -3
- package/dist/library/components/Fieldset/Fieldset.js.map +1 -0
- package/dist/library/{FileInput.d.ts → components/FileInput/FileInput.d.ts} +2 -2
- package/dist/library/components/FileInput/FileInput.d.ts.map +1 -0
- package/dist/library/{FileInput.js → components/FileInput/FileInput.js} +5 -5
- package/dist/library/components/FileInput/FileInput.js.map +1 -0
- package/dist/library/{Form.d.ts → components/Form/Form.d.ts} +6 -6
- package/dist/library/components/Form/Form.d.ts.map +1 -0
- package/dist/library/{Form.js → components/Form/Form.js} +7 -7
- package/dist/library/components/Form/Form.js.map +1 -0
- package/dist/library/{HoverCard.d.ts → components/HoverCard/HoverCard.d.ts} +2 -2
- package/dist/library/components/HoverCard/HoverCard.d.ts.map +1 -0
- package/dist/library/{HoverCard.js → components/HoverCard/HoverCard.js} +7 -7
- package/dist/library/components/HoverCard/HoverCard.js.map +1 -0
- package/dist/library/{InlineCode.d.ts → components/InlineCode/InlineCode.d.ts} +1 -1
- package/dist/library/components/InlineCode/InlineCode.d.ts.map +1 -0
- package/dist/library/{InlineCode.js → components/InlineCode/InlineCode.js} +2 -2
- package/dist/library/components/InlineCode/InlineCode.js.map +1 -0
- package/dist/library/{Input.d.ts → components/Input/Input.d.ts} +3 -3
- package/dist/library/components/Input/Input.d.ts.map +1 -0
- package/dist/library/{Input.js → components/Input/Input.js} +4 -4
- package/dist/library/components/Input/Input.js.map +1 -0
- package/dist/library/{InputGroup.d.ts → components/InputGroup/InputGroup.d.ts} +4 -4
- package/dist/library/components/InputGroup/InputGroup.d.ts.map +1 -0
- package/dist/library/{InputGroup.js → components/InputGroup/InputGroup.js} +5 -5
- package/dist/library/components/InputGroup/InputGroup.js.map +1 -0
- package/dist/library/{Kbd.d.ts → components/Kbd/Kbd.d.ts} +1 -1
- package/dist/library/components/Kbd/Kbd.d.ts.map +1 -0
- package/dist/library/{Kbd.js → components/Kbd/Kbd.js} +2 -2
- package/dist/library/components/Kbd/Kbd.js.map +1 -0
- package/dist/library/{Link.d.ts → components/Link/Link.d.ts} +2 -2
- package/dist/library/components/Link/Link.d.ts.map +1 -0
- package/dist/library/{Link.js → components/Link/Link.js} +2 -2
- package/dist/library/components/Link/Link.js.map +1 -0
- package/dist/library/{Menu.d.ts → components/Menu/Menu.d.ts} +7 -7
- package/dist/library/components/Menu/Menu.d.ts.map +1 -0
- package/dist/library/{Menu.js → components/Menu/Menu.js} +9 -9
- package/dist/library/components/Menu/Menu.js.map +1 -0
- package/dist/library/{Menubar.d.ts → components/Menubar/Menubar.d.ts} +5 -5
- package/dist/library/components/Menubar/Menubar.d.ts.map +1 -0
- package/dist/library/{Menubar.js → components/Menubar/Menubar.js} +8 -8
- package/dist/library/components/Menubar/Menubar.js.map +1 -0
- package/dist/library/{Meter.d.ts → components/Meter/Meter.d.ts} +1 -1
- package/dist/library/components/Meter/Meter.d.ts.map +1 -0
- package/dist/library/{Meter.js → components/Meter/Meter.js} +2 -2
- package/dist/library/components/Meter/Meter.js.map +1 -0
- package/dist/library/{MultiSelect.d.ts → components/MultiSelect/MultiSelect.d.ts} +2 -2
- package/dist/library/components/MultiSelect/MultiSelect.d.ts.map +1 -0
- package/dist/library/{MultiSelect.js → components/MultiSelect/MultiSelect.js} +1 -1
- package/dist/library/components/MultiSelect/MultiSelect.js.map +1 -0
- package/dist/library/{NativeSelect.d.ts → components/NativeSelect/NativeSelect.d.ts} +3 -3
- package/dist/library/components/NativeSelect/NativeSelect.d.ts.map +1 -0
- package/dist/library/{NativeSelect.js → components/NativeSelect/NativeSelect.js} +5 -5
- package/dist/library/components/NativeSelect/NativeSelect.js.map +1 -0
- package/dist/library/{NavLink.d.ts → components/NavLink/NavLink.d.ts} +3 -3
- package/dist/library/components/NavLink/NavLink.d.ts.map +1 -0
- package/dist/library/{NavLink.js → components/NavLink/NavLink.js} +5 -5
- package/dist/library/components/NavLink/NavLink.js.map +1 -0
- package/dist/library/{NavigationMenu.d.ts → components/NavigationMenu/NavigationMenu.d.ts} +7 -7
- package/dist/library/components/NavigationMenu/NavigationMenu.d.ts.map +1 -0
- package/dist/library/{NavigationMenu.js → components/NavigationMenu/NavigationMenu.js} +11 -11
- package/dist/library/components/NavigationMenu/NavigationMenu.js.map +1 -0
- package/dist/library/{NumberField.d.ts → components/NumberField/NumberField.d.ts} +6 -6
- package/dist/library/components/NumberField/NumberField.d.ts.map +1 -0
- package/dist/library/{NumberField.js → components/NumberField/NumberField.js} +9 -9
- package/dist/library/components/NumberField/NumberField.js.map +1 -0
- package/dist/library/{OTPField.d.ts → components/OTPField/OTPField.d.ts} +4 -4
- package/dist/library/components/OTPField/OTPField.d.ts.map +1 -0
- package/dist/library/{OTPField.js → components/OTPField/OTPField.js} +6 -6
- package/dist/library/components/OTPField/OTPField.js.map +1 -0
- package/dist/library/{Pagination.d.ts → components/Pagination/Pagination.d.ts} +4 -4
- package/dist/library/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/library/{Pagination.js → components/Pagination/Pagination.js} +5 -5
- package/dist/library/components/Pagination/Pagination.js.map +1 -0
- package/dist/library/{PasswordInput.d.ts → components/PasswordInput/PasswordInput.d.ts} +4 -4
- package/dist/library/components/PasswordInput/PasswordInput.d.ts.map +1 -0
- package/dist/library/{PasswordInput.js → components/PasswordInput/PasswordInput.js} +8 -8
- package/dist/library/components/PasswordInput/PasswordInput.js.map +1 -0
- package/dist/library/{Popover.d.ts → components/Popover/Popover.d.ts} +6 -6
- package/dist/library/components/Popover/Popover.d.ts.map +1 -0
- package/dist/library/{Popover.js → components/Popover/Popover.js} +8 -8
- package/dist/library/components/Popover/Popover.js.map +1 -0
- package/dist/library/{Progress.d.ts → components/Progress/Progress.d.ts} +1 -1
- package/dist/library/components/Progress/Progress.d.ts.map +1 -0
- package/dist/library/{Progress.js → components/Progress/Progress.js} +2 -2
- package/dist/library/components/Progress/Progress.js.map +1 -0
- package/dist/library/{RadioGroup.d.ts → components/RadioGroup/RadioGroup.d.ts} +4 -4
- package/dist/library/components/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/dist/library/{RadioGroup.js → components/RadioGroup/RadioGroup.js} +6 -6
- package/dist/library/components/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/library/{Resizable.d.ts → components/Resizable/Resizable.d.ts} +7 -7
- package/dist/library/components/Resizable/Resizable.d.ts.map +1 -0
- package/dist/library/{Resizable.js → components/Resizable/Resizable.js} +8 -8
- package/dist/library/components/Resizable/Resizable.js.map +1 -0
- package/dist/library/{ScrollArea.d.ts → components/ScrollArea/ScrollArea.d.ts} +3 -3
- package/dist/library/components/ScrollArea/ScrollArea.d.ts.map +1 -0
- package/dist/library/{ScrollArea.js → components/ScrollArea/ScrollArea.js} +4 -4
- package/dist/library/components/ScrollArea/ScrollArea.js.map +1 -0
- package/dist/library/{Select.d.ts → components/Select/Select.d.ts} +5 -5
- package/dist/library/components/Select/Select.d.ts.map +1 -0
- package/dist/library/{Select.js → components/Select/Select.js} +8 -8
- package/dist/library/components/Select/Select.js.map +1 -0
- package/dist/library/components/Select/selectStyles.d.ts.map +1 -0
- package/dist/library/{selectStyles.js → components/Select/selectStyles.js} +1 -1
- package/dist/library/components/Select/selectStyles.js.map +1 -0
- package/dist/library/{Separator.d.ts → components/Separator/Separator.d.ts} +2 -2
- package/dist/library/components/Separator/Separator.d.ts.map +1 -0
- package/dist/library/{Separator.js → components/Separator/Separator.js} +2 -2
- package/dist/library/components/Separator/Separator.js.map +1 -0
- package/dist/library/{Skeleton.d.ts → components/Skeleton/Skeleton.d.ts} +1 -1
- package/dist/library/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/library/{Skeleton.js → components/Skeleton/Skeleton.js} +3 -3
- package/dist/library/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/library/{Slider.d.ts → components/Slider/Slider.d.ts} +3 -3
- package/dist/library/components/Slider/Slider.d.ts.map +1 -0
- package/dist/library/{Slider.js → components/Slider/Slider.js} +4 -4
- package/dist/library/components/Slider/Slider.js.map +1 -0
- package/dist/library/{Spinner.d.ts → components/Spinner/Spinner.d.ts} +2 -2
- package/dist/library/components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/library/{Spinner.js → components/Spinner/Spinner.js} +3 -3
- package/dist/library/components/Spinner/Spinner.js.map +1 -0
- package/dist/library/{Switch.d.ts → components/Switch/Switch.d.ts} +3 -3
- package/dist/library/components/Switch/Switch.d.ts.map +1 -0
- package/dist/library/{Switch.js → components/Switch/Switch.js} +6 -6
- package/dist/library/components/Switch/Switch.js.map +1 -0
- package/dist/library/{Table.d.ts → components/Table/Table.d.ts} +2 -2
- package/dist/library/components/Table/Table.d.ts.map +1 -0
- package/dist/library/{Table.js → components/Table/Table.js} +3 -3
- package/dist/library/components/Table/Table.js.map +1 -0
- package/dist/library/{Tabs.d.ts → components/Tabs/Tabs.d.ts} +4 -4
- package/dist/library/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/library/{Tabs.js → components/Tabs/Tabs.js} +7 -7
- package/dist/library/components/Tabs/Tabs.js.map +1 -0
- package/dist/library/{Tag.d.ts → components/Tag/Tag.d.ts} +2 -2
- package/dist/library/components/Tag/Tag.d.ts.map +1 -0
- package/dist/library/{Tag.js → components/Tag/Tag.js} +6 -6
- package/dist/library/components/Tag/Tag.js.map +1 -0
- package/dist/library/{TagsInput.d.ts → components/TagsInput/TagsInput.d.ts} +4 -4
- package/dist/library/components/TagsInput/TagsInput.d.ts.map +1 -0
- package/dist/library/{TagsInput.js → components/TagsInput/TagsInput.js} +11 -11
- package/dist/library/components/TagsInput/TagsInput.js.map +1 -0
- package/dist/library/{Textarea.d.ts → components/Textarea/Textarea.d.ts} +3 -3
- package/dist/library/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/library/{Textarea.js → components/Textarea/Textarea.js} +4 -4
- package/dist/library/components/Textarea/Textarea.js.map +1 -0
- package/dist/library/{ThemeScope.d.ts → components/ThemeScope/ThemeScope.d.ts} +1 -1
- package/dist/library/components/ThemeScope/ThemeScope.d.ts.map +1 -0
- package/dist/library/{ThemeScope.js → components/ThemeScope/ThemeScope.js} +4 -4
- package/dist/library/components/ThemeScope/ThemeScope.js.map +1 -0
- package/dist/library/{Toast.d.ts → components/Toast/Toast.d.ts} +5 -5
- package/dist/library/components/Toast/Toast.d.ts.map +1 -0
- package/dist/library/{Toast.js → components/Toast/Toast.js} +10 -10
- package/dist/library/components/Toast/Toast.js.map +1 -0
- package/dist/library/{ToggleGroup.d.ts → components/ToggleGroup/ToggleGroup.d.ts} +6 -6
- package/dist/library/components/ToggleGroup/ToggleGroup.d.ts.map +1 -0
- package/dist/library/{ToggleGroup.js → components/ToggleGroup/ToggleGroup.js} +9 -9
- package/dist/library/components/ToggleGroup/ToggleGroup.js.map +1 -0
- package/dist/library/{Toolbar.d.ts → components/Toolbar/Toolbar.d.ts} +3 -3
- package/dist/library/components/Toolbar/Toolbar.d.ts.map +1 -0
- package/dist/library/{Toolbar.js → components/Toolbar/Toolbar.js} +5 -5
- package/dist/library/components/Toolbar/Toolbar.js.map +1 -0
- package/dist/library/{Tooltip.d.ts → components/Tooltip/Tooltip.d.ts} +4 -4
- package/dist/library/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/library/{Tooltip.js → components/Tooltip/Tooltip.js} +9 -9
- package/dist/library/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/library/components/shared/actionStyles.d.ts.map +1 -0
- package/dist/library/components/shared/actionStyles.js.map +1 -0
- package/dist/library/{composedLink.d.ts → components/shared/composedLink.d.ts} +1 -1
- package/dist/library/components/shared/composedLink.d.ts.map +1 -0
- package/dist/library/{composedLink.js → components/shared/composedLink.js} +2 -2
- package/dist/library/components/shared/composedLink.js.map +1 -0
- package/dist/library/components/shared/controlStyles.d.ts.map +1 -0
- package/dist/library/components/shared/controlStyles.js.map +1 -0
- package/dist/library/components/shared/scrollbarStyles.d.ts +2 -0
- package/dist/library/components/shared/scrollbarStyles.d.ts.map +1 -0
- package/dist/library/components/shared/scrollbarStyles.js +4 -0
- package/dist/library/components/shared/scrollbarStyles.js.map +1 -0
- package/dist/library/index.d.ts +122 -122
- package/dist/library/index.d.ts.map +1 -1
- package/dist/library/index.js +67 -67
- package/dist/library/index.js.map +1 -1
- package/dist/library/motion/MotionLink.d.ts +1 -1
- package/dist/library/motion/MotionLink.d.ts.map +1 -1
- package/dist/library/motion/MotionLink.js +1 -1
- package/dist/library/motion/MotionLink.js.map +1 -1
- package/dist/library/presentation.d.ts +1 -1
- package/dist/library/presentation.d.ts.map +1 -1
- package/dist/library/styles.css +1 -1
- package/docs/architecture.md +2 -2
- package/docs/motion.md +1 -1
- package/package.json +1 -1
- package/src/charts/Charts.tsx +3 -3
- package/src/{Accordion.tsx → components/Accordion/Accordion.tsx} +14 -9
- package/src/{Alert.tsx → components/Alert/Alert.tsx} +6 -6
- package/src/{AlertDialog.tsx → components/AlertDialog/AlertDialog.tsx} +3 -3
- package/src/{AppShell.tsx → components/AppShell/AppShell.tsx} +16 -13
- package/src/{AspectRatio.tsx → components/AspectRatio/AspectRatio.tsx} +3 -3
- package/src/{Autocomplete.tsx → components/Autocomplete/Autocomplete.tsx} +4 -4
- package/src/{Avatar.tsx → components/Avatar/Avatar.tsx} +4 -4
- package/src/{Badge.tsx → components/Badge/Badge.tsx} +5 -5
- package/src/{Breadcrumb.tsx → components/Breadcrumb/Breadcrumb.tsx} +5 -5
- package/src/{Button.tsx → components/Button/Button.tsx} +12 -12
- package/src/{ButtonGroup.tsx → components/ButtonGroup/ButtonGroup.tsx} +4 -4
- package/src/{Card.tsx → components/Card/Card.tsx} +4 -4
- package/src/{Carousel.tsx → components/Carousel/Carousel.tsx} +9 -9
- package/src/{Checkbox.tsx → components/Checkbox/Checkbox.tsx} +7 -7
- package/src/{CheckboxGroup.tsx → components/CheckboxGroup/CheckboxGroup.tsx} +7 -7
- package/src/{CodeBlock.tsx → components/CodeBlock/CodeBlock.tsx} +8 -8
- package/src/{Collapsible.tsx → components/Collapsible/Collapsible.tsx} +7 -7
- package/src/{Combobox.tsx → components/Combobox/Combobox.tsx} +22 -17
- package/src/{comboboxStyles.ts → components/Combobox/comboboxStyles.ts} +1 -1
- package/src/{Command.tsx → components/Command/Command.tsx} +11 -11
- package/src/{ContextMenu.tsx → components/ContextMenu/ContextMenu.tsx} +7 -7
- package/src/{Dialog.tsx → components/Dialog/Dialog.tsx} +11 -11
- package/src/{Drawer.tsx → components/Drawer/Drawer.tsx} +12 -12
- package/src/{EmptyState.tsx → components/EmptyState/EmptyState.tsx} +6 -6
- package/src/{Field.tsx → components/Field/Field.tsx} +4 -4
- package/src/{Fieldset.tsx → components/Fieldset/Fieldset.tsx} +4 -4
- package/src/{FileInput.tsx → components/FileInput/FileInput.tsx} +7 -7
- package/src/{Form.tsx → components/Form/Form.tsx} +11 -11
- package/src/{HoverCard.tsx → components/HoverCard/HoverCard.tsx} +7 -7
- package/src/{InlineCode.tsx → components/InlineCode/InlineCode.tsx} +3 -3
- package/src/{Input.tsx → components/Input/Input.tsx} +6 -6
- package/src/{InputGroup.tsx → components/InputGroup/InputGroup.tsx} +7 -7
- package/src/{Kbd.tsx → components/Kbd/Kbd.tsx} +3 -3
- package/src/{Link.tsx → components/Link/Link.tsx} +4 -4
- package/src/{Menu.tsx → components/Menu/Menu.tsx} +14 -14
- package/src/{Menubar.tsx → components/Menubar/Menubar.tsx} +11 -11
- package/src/{Meter.tsx → components/Meter/Meter.tsx} +3 -3
- package/src/{MultiSelect.tsx → components/MultiSelect/MultiSelect.tsx} +2 -2
- package/src/{NativeSelect.tsx → components/NativeSelect/NativeSelect.tsx} +7 -7
- package/src/{NavLink.tsx → components/NavLink/NavLink.tsx} +6 -6
- package/src/{NavigationMenu.tsx → components/NavigationMenu/NavigationMenu.tsx} +15 -15
- package/src/{NumberField.tsx → components/NumberField/NumberField.tsx} +14 -14
- package/src/{OTPField.tsx → components/OTPField/OTPField.tsx} +8 -8
- package/src/{Pagination.tsx → components/Pagination/Pagination.tsx} +7 -7
- package/src/{PasswordInput.tsx → components/PasswordInput/PasswordInput.tsx} +11 -11
- package/src/{Popover.tsx → components/Popover/Popover.tsx} +13 -13
- package/src/{Progress.tsx → components/Progress/Progress.tsx} +3 -3
- package/src/{RadioGroup.tsx → components/RadioGroup/RadioGroup.tsx} +9 -9
- package/src/{Resizable.tsx → components/Resizable/Resizable.tsx} +12 -12
- package/src/{ScrollArea.tsx → components/ScrollArea/ScrollArea.tsx} +6 -6
- package/src/{Select.tsx → components/Select/Select.tsx} +12 -12
- package/src/{selectStyles.ts → components/Select/selectStyles.ts} +1 -1
- package/src/{Separator.tsx → components/Separator/Separator.tsx} +4 -4
- package/src/{Skeleton.tsx → components/Skeleton/Skeleton.tsx} +4 -4
- package/src/{Slider.tsx → components/Slider/Slider.tsx} +6 -6
- package/src/{Spinner.tsx → components/Spinner/Spinner.tsx} +5 -5
- package/src/{Switch.tsx → components/Switch/Switch.tsx} +8 -8
- package/src/{Table.tsx → components/Table/Table.tsx} +4 -4
- package/src/{Tabs.tsx → components/Tabs/Tabs.tsx} +10 -10
- package/src/{Tag.tsx → components/Tag/Tag.tsx} +7 -7
- package/src/{TagsInput.tsx → components/TagsInput/TagsInput.tsx} +14 -14
- package/src/{Textarea.tsx → components/Textarea/Textarea.tsx} +6 -6
- package/src/{ThemeScope.tsx → components/ThemeScope/ThemeScope.tsx} +5 -5
- package/src/{Toast.tsx → components/Toast/Toast.tsx} +13 -13
- package/src/{ToggleGroup.tsx → components/ToggleGroup/ToggleGroup.tsx} +17 -12
- package/src/{Toolbar.tsx → components/Toolbar/Toolbar.tsx} +7 -7
- package/src/{Tooltip.tsx → components/Tooltip/Tooltip.tsx} +12 -12
- package/src/{composedLink.tsx → components/shared/composedLink.tsx} +2 -2
- package/src/components/shared/scrollbarStyles.ts +4 -0
- package/src/index.ts +169 -123
- package/src/motion/MotionLink.tsx +1 -1
- package/src/presentation.ts +1 -1
- package/dist/library/Accordion.d.ts.map +0 -1
- package/dist/library/Accordion.js.map +0 -1
- package/dist/library/Alert.d.ts.map +0 -1
- package/dist/library/Alert.js.map +0 -1
- package/dist/library/AlertDialog.d.ts.map +0 -1
- package/dist/library/AlertDialog.js.map +0 -1
- package/dist/library/AppShell.d.ts.map +0 -1
- package/dist/library/AppShell.js.map +0 -1
- package/dist/library/AspectRatio.d.ts.map +0 -1
- package/dist/library/AspectRatio.js.map +0 -1
- package/dist/library/Autocomplete.d.ts.map +0 -1
- package/dist/library/Autocomplete.js.map +0 -1
- package/dist/library/Avatar.d.ts.map +0 -1
- package/dist/library/Avatar.js.map +0 -1
- package/dist/library/Badge.d.ts.map +0 -1
- package/dist/library/Badge.js.map +0 -1
- package/dist/library/Breadcrumb.d.ts.map +0 -1
- package/dist/library/Breadcrumb.js.map +0 -1
- package/dist/library/Button.d.ts.map +0 -1
- package/dist/library/Button.js.map +0 -1
- package/dist/library/ButtonGroup.d.ts.map +0 -1
- package/dist/library/ButtonGroup.js.map +0 -1
- package/dist/library/Card.d.ts.map +0 -1
- package/dist/library/Card.js.map +0 -1
- package/dist/library/Carousel.d.ts.map +0 -1
- package/dist/library/Carousel.js.map +0 -1
- package/dist/library/Checkbox.d.ts.map +0 -1
- package/dist/library/Checkbox.js.map +0 -1
- package/dist/library/CheckboxGroup.d.ts.map +0 -1
- package/dist/library/CheckboxGroup.js.map +0 -1
- package/dist/library/CodeBlock.d.ts.map +0 -1
- package/dist/library/CodeBlock.js.map +0 -1
- package/dist/library/Collapsible.d.ts.map +0 -1
- package/dist/library/Collapsible.js.map +0 -1
- package/dist/library/Combobox.d.ts.map +0 -1
- package/dist/library/Combobox.js.map +0 -1
- package/dist/library/Command.d.ts.map +0 -1
- package/dist/library/Command.js.map +0 -1
- package/dist/library/ContextMenu.d.ts.map +0 -1
- package/dist/library/ContextMenu.js.map +0 -1
- package/dist/library/Dialog.d.ts.map +0 -1
- package/dist/library/Dialog.js.map +0 -1
- package/dist/library/Drawer.d.ts.map +0 -1
- package/dist/library/Drawer.js.map +0 -1
- package/dist/library/EmptyState.d.ts.map +0 -1
- package/dist/library/EmptyState.js.map +0 -1
- package/dist/library/Field.d.ts.map +0 -1
- package/dist/library/Field.js.map +0 -1
- package/dist/library/Fieldset.d.ts.map +0 -1
- package/dist/library/Fieldset.js.map +0 -1
- package/dist/library/FileInput.d.ts.map +0 -1
- package/dist/library/FileInput.js.map +0 -1
- package/dist/library/Form.d.ts.map +0 -1
- package/dist/library/Form.js.map +0 -1
- package/dist/library/HoverCard.d.ts.map +0 -1
- package/dist/library/HoverCard.js.map +0 -1
- package/dist/library/InlineCode.d.ts.map +0 -1
- package/dist/library/InlineCode.js.map +0 -1
- package/dist/library/Input.d.ts.map +0 -1
- package/dist/library/Input.js.map +0 -1
- package/dist/library/InputGroup.d.ts.map +0 -1
- package/dist/library/InputGroup.js.map +0 -1
- package/dist/library/Kbd.d.ts.map +0 -1
- package/dist/library/Kbd.js.map +0 -1
- package/dist/library/Link.d.ts.map +0 -1
- package/dist/library/Link.js.map +0 -1
- package/dist/library/Menu.d.ts.map +0 -1
- package/dist/library/Menu.js.map +0 -1
- package/dist/library/Menubar.d.ts.map +0 -1
- package/dist/library/Menubar.js.map +0 -1
- package/dist/library/Meter.d.ts.map +0 -1
- package/dist/library/Meter.js.map +0 -1
- package/dist/library/MultiSelect.d.ts.map +0 -1
- package/dist/library/MultiSelect.js.map +0 -1
- package/dist/library/NativeSelect.d.ts.map +0 -1
- package/dist/library/NativeSelect.js.map +0 -1
- package/dist/library/NavLink.d.ts.map +0 -1
- package/dist/library/NavLink.js.map +0 -1
- package/dist/library/NavigationMenu.d.ts.map +0 -1
- package/dist/library/NavigationMenu.js.map +0 -1
- package/dist/library/NumberField.d.ts.map +0 -1
- package/dist/library/NumberField.js.map +0 -1
- package/dist/library/OTPField.d.ts.map +0 -1
- package/dist/library/OTPField.js.map +0 -1
- package/dist/library/Pagination.d.ts.map +0 -1
- package/dist/library/Pagination.js.map +0 -1
- package/dist/library/PasswordInput.d.ts.map +0 -1
- package/dist/library/PasswordInput.js.map +0 -1
- package/dist/library/Popover.d.ts.map +0 -1
- package/dist/library/Popover.js.map +0 -1
- package/dist/library/Progress.d.ts.map +0 -1
- package/dist/library/Progress.js.map +0 -1
- package/dist/library/RadioGroup.d.ts.map +0 -1
- package/dist/library/RadioGroup.js.map +0 -1
- package/dist/library/Resizable.d.ts.map +0 -1
- package/dist/library/Resizable.js.map +0 -1
- package/dist/library/ScrollArea.d.ts.map +0 -1
- package/dist/library/ScrollArea.js.map +0 -1
- package/dist/library/Select.d.ts.map +0 -1
- package/dist/library/Select.js.map +0 -1
- package/dist/library/Separator.d.ts.map +0 -1
- package/dist/library/Separator.js.map +0 -1
- package/dist/library/Skeleton.d.ts.map +0 -1
- package/dist/library/Skeleton.js.map +0 -1
- package/dist/library/Slider.d.ts.map +0 -1
- package/dist/library/Slider.js.map +0 -1
- package/dist/library/Spinner.d.ts.map +0 -1
- package/dist/library/Spinner.js.map +0 -1
- package/dist/library/Switch.d.ts.map +0 -1
- package/dist/library/Switch.js.map +0 -1
- package/dist/library/Table.d.ts.map +0 -1
- package/dist/library/Table.js.map +0 -1
- package/dist/library/Tabs.d.ts.map +0 -1
- package/dist/library/Tabs.js.map +0 -1
- package/dist/library/Tag.d.ts.map +0 -1
- package/dist/library/Tag.js.map +0 -1
- package/dist/library/TagsInput.d.ts.map +0 -1
- package/dist/library/TagsInput.js.map +0 -1
- package/dist/library/Textarea.d.ts.map +0 -1
- package/dist/library/Textarea.js.map +0 -1
- package/dist/library/ThemeScope.d.ts.map +0 -1
- package/dist/library/ThemeScope.js.map +0 -1
- package/dist/library/Toast.d.ts.map +0 -1
- package/dist/library/Toast.js.map +0 -1
- package/dist/library/ToggleGroup.d.ts.map +0 -1
- package/dist/library/ToggleGroup.js.map +0 -1
- package/dist/library/Toolbar.d.ts.map +0 -1
- package/dist/library/Toolbar.js.map +0 -1
- package/dist/library/Tooltip.d.ts.map +0 -1
- package/dist/library/Tooltip.js.map +0 -1
- package/dist/library/actionStyles.d.ts.map +0 -1
- package/dist/library/actionStyles.js.map +0 -1
- package/dist/library/comboboxStyles.d.ts.map +0 -1
- package/dist/library/comboboxStyles.js.map +0 -1
- package/dist/library/composedLink.d.ts.map +0 -1
- package/dist/library/composedLink.js.map +0 -1
- package/dist/library/controlStyles.d.ts.map +0 -1
- package/dist/library/controlStyles.js.map +0 -1
- package/dist/library/selectStyles.d.ts.map +0 -1
- package/dist/library/selectStyles.js.map +0 -1
- /package/dist/library/{comboboxStyles.d.ts → components/Combobox/comboboxStyles.d.ts} +0 -0
- /package/dist/library/{selectStyles.d.ts → components/Select/selectStyles.d.ts} +0 -0
- /package/dist/library/{actionStyles.d.ts → components/shared/actionStyles.d.ts} +0 -0
- /package/dist/library/{actionStyles.js → components/shared/actionStyles.js} +0 -0
- /package/dist/library/{controlStyles.d.ts → components/shared/controlStyles.d.ts} +0 -0
- /package/dist/library/{controlStyles.js → components/shared/controlStyles.js} +0 -0
- /package/src/{actionStyles.ts → components/shared/actionStyles.ts} +0 -0
- /package/src/{controlStyles.ts → components/shared/controlStyles.ts} +0 -0
package/docs/architecture.md
CHANGED
|
@@ -250,9 +250,9 @@ Verify these behaviors manually: [accessibility](accessibility.md).
|
|
|
250
250
|
## Examples and type fixtures
|
|
251
251
|
|
|
252
252
|
The canonical live examples are Storybook stories:
|
|
253
|
-
[Input](../src/Input.stories.tsx), [Form](../src/Form.stories.tsx)
|
|
253
|
+
[Input](../src/components/Input/Input.stories.tsx), [Form](../src/components/Form/Form.stories.tsx)
|
|
254
254
|
(native validation, server recovery and optional TanStack values) and
|
|
255
|
-
[Recipes → Workspace → Settings](../src/Workspace.stories.tsx) (all ten
|
|
255
|
+
[Recipes → Workspace → Settings](../src/recipes/Workspace.stories.tsx) (all ten
|
|
256
256
|
families). Change a contract and its example together.
|
|
257
257
|
|
|
258
258
|
`docs/contracts/*.ts(x)` are compile-only fixtures. `pnpm typecheck:contracts`
|
package/docs/motion.md
CHANGED
|
@@ -64,7 +64,7 @@ Theme off and reduced motion suppress springs and CSS lift/shift. Pending and
|
|
|
64
64
|
disabled cancel a held press; re-enabling never replays it. Native activation,
|
|
65
65
|
focus and Escape stay immediate; `preventDefault` cancels compression.
|
|
66
66
|
Caller scale utilities and inline scale/scale transitions opt out. Other scale
|
|
67
|
-
styles need `motion="off"`. Explore [Link](../src/Link.stories.tsx) and [Button](../src/Button.stories.tsx).
|
|
67
|
+
styles need `motion="off"`. Explore [Link](../src/components/Link/Link.stories.tsx) and [Button](../src/components/Button/Button.stories.tsx).
|
|
68
68
|
|
|
69
69
|
## Hooks and functions
|
|
70
70
|
|
package/package.json
CHANGED
package/src/charts/Charts.tsx
CHANGED
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
type ChartSeries,
|
|
17
17
|
type ChartKind
|
|
18
18
|
} from '../internal/charts.js'
|
|
19
|
-
import { ScrollArea } from '../ScrollArea.js'
|
|
20
|
-
import { Tooltip, TooltipTrigger, TooltipContent } from '../Tooltip.js'
|
|
19
|
+
import { ScrollArea } from '../components/ScrollArea/ScrollArea.js'
|
|
20
|
+
import { Tooltip, TooltipTrigger, TooltipContent } from '../components/Tooltip/Tooltip.js'
|
|
21
21
|
import {
|
|
22
22
|
Table,
|
|
23
23
|
TableCaption,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
TableHeader,
|
|
28
28
|
TableCell,
|
|
29
29
|
type TableProps
|
|
30
|
-
} from '../Table.js'
|
|
30
|
+
} from '../components/Table/Table.js'
|
|
31
31
|
import type { PartStyle } from '../presentation.js'
|
|
32
32
|
import type { ThemeStyle } from '../themes/defineTheme.js'
|
|
33
33
|
export type { ChartDatum, ChartSeries } from '../internal/charts.js'
|
|
@@ -2,19 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
import type { ComponentProps, ReactNode } from 'react'
|
|
4
4
|
import { createContext, useContext, useState } from 'react'
|
|
5
|
-
import { cn } from '
|
|
6
|
-
import { joinIds } from '
|
|
7
|
-
import type { ThemeStyle } from '
|
|
8
|
-
import { composeAction } from '
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
import { cn } from '../../cn.js'
|
|
6
|
+
import { joinIds } from '../../internal/ids.js'
|
|
7
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
8
|
+
import { composeAction } from '../../internal/events.js'
|
|
9
|
+
import {
|
|
10
|
+
isItemOpen,
|
|
11
|
+
nextSelection,
|
|
12
|
+
sameSelection,
|
|
13
|
+
type Selection
|
|
14
|
+
} from '../../internal/selection.js'
|
|
15
|
+
import { useControllableState } from '../../react/useControllableState.js'
|
|
16
|
+
import type { ValueOwner } from '../../react/useNativeOwner.js'
|
|
17
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '../Collapsible/Collapsible.js'
|
|
13
18
|
import type {
|
|
14
19
|
CollapsibleContentProps,
|
|
15
20
|
CollapsibleProps,
|
|
16
21
|
CollapsibleTriggerProps
|
|
17
|
-
} from '
|
|
22
|
+
} from '../Collapsible/Collapsible.js'
|
|
18
23
|
|
|
19
24
|
const accordionClass =
|
|
20
25
|
'grid w-full min-w-0 gap-[var(--rad-accordion-gap,var(--rad-spacing-group-gap,0.75rem))]'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { headings, type HeadingLevel } from '
|
|
1
|
+
import { headings, type HeadingLevel } from '../../internal/headings.js'
|
|
2
2
|
import type { ComponentProps } from 'react'
|
|
3
|
-
import { cn } from '
|
|
4
|
-
import { actionTone } from '
|
|
5
|
-
import { joinIds } from '
|
|
6
|
-
import type { Tone } from '
|
|
7
|
-
import type { ThemeStyle } from '
|
|
3
|
+
import { cn } from '../../cn.js'
|
|
4
|
+
import { actionTone } from '../shared/actionStyles.js'
|
|
5
|
+
import { joinIds } from '../../internal/ids.js'
|
|
6
|
+
import type { Tone } from '../../presentation.js'
|
|
7
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
8
8
|
|
|
9
9
|
export type AlertAnnouncement = 'off' | 'polite' | 'assertive'
|
|
10
10
|
export type AlertTone = Tone
|
|
@@ -17,9 +17,9 @@ import {
|
|
|
17
17
|
type DialogDescriptionProps,
|
|
18
18
|
type DialogTriggerProps,
|
|
19
19
|
type DialogRenderProps
|
|
20
|
-
} from '
|
|
21
|
-
import { joinIds } from '
|
|
22
|
-
import { useComposedRefs } from '
|
|
20
|
+
} from '../Dialog/Dialog.js'
|
|
21
|
+
import { joinIds } from '../../internal/ids.js'
|
|
22
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
23
23
|
|
|
24
24
|
/** Always modal. Backdrop clicks never dismiss an urgent decision. */
|
|
25
25
|
export type AlertDialogProps = DialogProps & { modal?: never; closeOnBackdrop?: never }
|
|
@@ -13,23 +13,24 @@ import {
|
|
|
13
13
|
type RefObject
|
|
14
14
|
} from 'react'
|
|
15
15
|
import { createPortal } from 'react-dom'
|
|
16
|
-
import { Button, type ButtonProps, type ButtonRenderProps } from '
|
|
16
|
+
import { Button, type ButtonProps, type ButtonRenderProps } from '../Button/Button.js'
|
|
17
17
|
import {
|
|
18
18
|
ComposedLink,
|
|
19
19
|
type ComposedLinkProps,
|
|
20
20
|
type ComposedLinkRenderProps
|
|
21
|
-
} from '
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
30
|
-
import {
|
|
31
|
-
import
|
|
32
|
-
import type {
|
|
21
|
+
} from '../shared/composedLink.js'
|
|
22
|
+
import { scrollbarClass } from '../shared/scrollbarStyles.js'
|
|
23
|
+
import { Drawer, DrawerContent, DrawerTitle, DrawerClose, useDrawer } from '../Drawer/Drawer.js'
|
|
24
|
+
import { cn } from '../../cn.js'
|
|
25
|
+
import { joinIds } from '../../internal/ids.js'
|
|
26
|
+
import { composeAction } from '../../internal/events.js'
|
|
27
|
+
import type { WithoutToggle, DistributiveOmit } from '../../internal/types.js'
|
|
28
|
+
import { useControllableState } from '../../react/useControllableState.js'
|
|
29
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
30
|
+
import type { StateOwner } from '../../react/useNativeOwner.js'
|
|
31
|
+
import { useTransitionHost } from '../../motion/host.js'
|
|
32
|
+
import type { PartStyle } from '../../presentation.js'
|
|
33
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
33
34
|
|
|
34
35
|
export type AppShellProps = Omit<ComponentProps<'div'>, 'style'> &
|
|
35
36
|
StateOwner<'collapsed', boolean> &
|
|
@@ -271,6 +272,7 @@ export function AppShellMain({ className, ...props }: AppShellMainProps) {
|
|
|
271
272
|
data-slot={joinIds('app-shell-main', props['data-slot'])}
|
|
272
273
|
className={cn(
|
|
273
274
|
'relative box-border size-full min-h-0 min-w-0 overflow-auto p-[var(--rad-app-shell-main-padding,var(--rad-surface-padding,1.5rem))] focus-visible:[outline-style:var(--rad-focus-style,solid)] focus-visible:outline-[color:var(--rad-color-focus)] focus-visible:outline-[length:var(--rad-focus-width,2px)] focus-visible:outline-offset-[-2px]',
|
|
275
|
+
scrollbarClass,
|
|
274
276
|
className
|
|
275
277
|
)}
|
|
276
278
|
/>
|
|
@@ -375,6 +377,7 @@ export function Sidebar({
|
|
|
375
377
|
data-state={shell.mobile ? (shell.open ? 'open' : 'closed') : collapsed ? 'closed' : 'open'}
|
|
376
378
|
className={cn(
|
|
377
379
|
'relative box-border flex size-full min-h-0 min-w-0 flex-col overflow-auto gap-[var(--rad-sidebar-gap,1rem)] p-[var(--rad-sidebar-padding,0.5rem)] border-0 border-e-[length:var(--rad-sidebar-border-width,var(--rad-surface-border-width,1px))] [border-style:var(--rad-surface-border-style,solid)] border-[var(--rad-sidebar-border-color,var(--rad-color-border))] bg-[var(--rad-sidebar-background,var(--rad-color-surface))] text-[var(--rad-sidebar-color,var(--rad-color-foreground))]',
|
|
380
|
+
scrollbarClass,
|
|
378
381
|
className
|
|
379
382
|
)}
|
|
380
383
|
>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react'
|
|
2
|
-
import { cn } from '
|
|
3
|
-
import { joinIds } from '
|
|
4
|
-
import type { ThemeStyle } from '
|
|
2
|
+
import { cn } from '../../cn.js'
|
|
3
|
+
import { joinIds } from '../../internal/ids.js'
|
|
4
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
5
5
|
|
|
6
6
|
export type AspectRatioProps = Omit<ComponentProps<'div'>, 'style'> & {
|
|
7
7
|
/** Width divided by height. Must be finite and greater than zero. */
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
type ComboboxContentProps,
|
|
20
20
|
type ComboboxItemProps,
|
|
21
21
|
type ComboboxStatusProps
|
|
22
|
-
} from '
|
|
23
|
-
import type { DistributiveOmit } from '
|
|
24
|
-
import { useControllableState } from '
|
|
25
|
-
import type { ValueOwner } from '
|
|
22
|
+
} from '../Combobox/Combobox.js'
|
|
23
|
+
import type { DistributiveOmit } from '../../internal/types.js'
|
|
24
|
+
import { useControllableState } from '../../react/useControllableState.js'
|
|
25
|
+
import type { ValueOwner } from '../../react/useNativeOwner.js'
|
|
26
26
|
/** value is the literal completion text; labels may provide richer presentation. */
|
|
27
27
|
export type AutocompleteOption = ComboboxOption
|
|
28
28
|
export type AutocompleteProps = DistributiveOmit<
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import { useEffect, useRef, useState, type ComponentProps } from 'react'
|
|
4
|
-
import { cn } from '
|
|
5
|
-
import { joinIds } from '
|
|
6
|
-
import type { ControlSize, PartStyle } from '
|
|
7
|
-
import type { ThemeStyle } from '
|
|
4
|
+
import { cn } from '../../cn.js'
|
|
5
|
+
import { joinIds } from '../../internal/ids.js'
|
|
6
|
+
import type { ControlSize, PartStyle } from '../../presentation.js'
|
|
7
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
8
8
|
|
|
9
9
|
type ImagePolicy = Pick<
|
|
10
10
|
ComponentProps<'img'>,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react'
|
|
2
|
-
import { cn } from '
|
|
3
|
-
import { actionTone } from '
|
|
4
|
-
import { joinIds } from '
|
|
5
|
-
import type { Tone } from '
|
|
6
|
-
import type { ThemeStyle } from '
|
|
2
|
+
import { cn } from '../../cn.js'
|
|
3
|
+
import { actionTone } from '../shared/actionStyles.js'
|
|
4
|
+
import { joinIds } from '../../internal/ids.js'
|
|
5
|
+
import type { Tone } from '../../presentation.js'
|
|
6
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
7
7
|
export type BadgeTone = Tone
|
|
8
8
|
export type BadgeProps = Omit<
|
|
9
9
|
ComponentProps<'span'>,
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
ComposedLink,
|
|
4
4
|
type ComposedLinkProps,
|
|
5
5
|
type ComposedLinkRenderProps
|
|
6
|
-
} from '
|
|
7
|
-
import { cn } from '
|
|
8
|
-
import { requireAccessibleName } from '
|
|
9
|
-
import { joinIds } from '
|
|
10
|
-
import type { ThemeStyle } from '
|
|
6
|
+
} from '../shared/composedLink.js'
|
|
7
|
+
import { cn } from '../../cn.js'
|
|
8
|
+
import { requireAccessibleName } from '../../internal/accessibleName.js'
|
|
9
|
+
import { joinIds } from '../../internal/ids.js'
|
|
10
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
11
11
|
type Part<Host extends 'nav' | 'ol' | 'li' | 'span'> = Omit<
|
|
12
12
|
ComponentProps<Host>,
|
|
13
13
|
'style' | 'role'
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
import type { ComponentProps, ReactElement } from 'react'
|
|
4
4
|
import { Fragment, isValidElement } from 'react'
|
|
5
|
-
import { callerOwnsPress, springPressClass, offPressClass } from '
|
|
6
|
-
import { usePressHost } from '
|
|
7
|
-
import { actionVariants } from '
|
|
8
|
-
import type { ButtonVariant, ControlSize, Tone } from '
|
|
9
|
-
import { Spinner } from '
|
|
10
|
-
import { cn } from '
|
|
11
|
-
import { joinIds } from '
|
|
12
|
-
import { composeAction } from '
|
|
13
|
-
import { useControllableState } from '
|
|
14
|
-
import type { StateOwner } from '
|
|
15
|
-
import type { ThemeStyle } from '
|
|
5
|
+
import { callerOwnsPress, springPressClass, offPressClass } from '../../motion/pressPolicy.js'
|
|
6
|
+
import { usePressHost } from '../../motion/host.js'
|
|
7
|
+
import { actionVariants } from '../shared/actionStyles.js'
|
|
8
|
+
import type { ButtonVariant, ControlSize, Tone } from '../../presentation.js'
|
|
9
|
+
import { Spinner } from '../Spinner/Spinner.js'
|
|
10
|
+
import { cn } from '../../cn.js'
|
|
11
|
+
import { joinIds } from '../../internal/ids.js'
|
|
12
|
+
import { composeAction } from '../../internal/events.js'
|
|
13
|
+
import { useControllableState } from '../../react/useControllableState.js'
|
|
14
|
+
import type { StateOwner } from '../../react/useNativeOwner.js'
|
|
15
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
16
16
|
|
|
17
|
-
export type { ButtonVariant } from '
|
|
17
|
+
export type { ButtonVariant } from '../../presentation.js'
|
|
18
18
|
|
|
19
19
|
export type ButtonRenderProps = Omit<ComponentProps<'button'>, 'style'> & {
|
|
20
20
|
style?: ThemeStyle
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* oxlint-disable jsx-a11y/prefer-tag-over-role -- A passive action group uses a div; fieldset would introduce form grouping. */
|
|
2
2
|
import type { ComponentProps } from 'react'
|
|
3
|
-
import { cn } from '
|
|
4
|
-
import { joinIds } from '
|
|
5
|
-
import type { Orientation } from '
|
|
6
|
-
import type { ThemeStyle } from '
|
|
3
|
+
import { cn } from '../../cn.js'
|
|
4
|
+
import { joinIds } from '../../internal/ids.js'
|
|
5
|
+
import type { Orientation } from '../../presentation.js'
|
|
6
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
7
7
|
|
|
8
8
|
export type ButtonGroupProps = Omit<
|
|
9
9
|
ComponentProps<'div'>,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { headings as headingTag, type HeadingLevel } from '
|
|
1
|
+
import { headings as headingTag, type HeadingLevel } from '../../internal/headings.js'
|
|
2
2
|
import type { ComponentProps } from 'react'
|
|
3
3
|
import { cva } from 'class-variance-authority'
|
|
4
|
-
import { cn } from '
|
|
5
|
-
import { joinIds } from '
|
|
6
|
-
import type { ThemeStyle } from '
|
|
4
|
+
import { cn } from '../../cn.js'
|
|
5
|
+
import { joinIds } from '../../internal/ids.js'
|
|
6
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
7
7
|
|
|
8
8
|
const colorMotionClass =
|
|
9
9
|
'transition-colors duration-[var(--rad-motion-color-duration,150ms)] motion-reduce:transition-none'
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
type ComponentProps,
|
|
13
13
|
type ReactNode
|
|
14
14
|
} from 'react'
|
|
15
|
-
import { Button, type ButtonProps } from '
|
|
16
|
-
import { cn } from '
|
|
17
|
-
import { joinIds } from '
|
|
18
|
-
import { requireAccessibleName, type AccessibleName } from '
|
|
19
|
-
import type { WithoutToggle } from '
|
|
20
|
-
import { useControllableState } from '
|
|
21
|
-
import type { ValueOwner } from '
|
|
22
|
-
import { useComposedRefs } from '
|
|
23
|
-
import type { ThemeStyle } from '
|
|
15
|
+
import { Button, type ButtonProps } from '../Button/Button.js'
|
|
16
|
+
import { cn } from '../../cn.js'
|
|
17
|
+
import { joinIds } from '../../internal/ids.js'
|
|
18
|
+
import { requireAccessibleName, type AccessibleName } from '../../internal/accessibleName.js'
|
|
19
|
+
import type { WithoutToggle } from '../../internal/types.js'
|
|
20
|
+
import { useControllableState } from '../../react/useControllableState.js'
|
|
21
|
+
import type { ValueOwner } from '../../react/useNativeOwner.js'
|
|
22
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
23
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
24
24
|
|
|
25
25
|
export type CarouselItem = { value: string; label?: string; children: ReactNode }
|
|
26
26
|
export type CarouselProps = Omit<ComponentProps<'section'>, 'style' | 'role'> &
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import { useCallback, useLayoutEffect, useRef, type ComponentProps, type ReactNode } from 'react'
|
|
4
4
|
import { cva } from 'class-variance-authority'
|
|
5
|
-
import { cn } from '
|
|
6
|
-
import { useComposedRefs } from '
|
|
7
|
-
import { useNativeOwner, type CheckedOwner } from '
|
|
8
|
-
import { controlBorderClass, controlMetrics, indicatorPressClass } from '
|
|
9
|
-
import type { ThemeStyle } from '
|
|
10
|
-
import type { ControlSize, ControlParts } from '
|
|
11
|
-
import { useFieldControl } from '
|
|
5
|
+
import { cn } from '../../cn.js'
|
|
6
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
7
|
+
import { useNativeOwner, type CheckedOwner } from '../../react/useNativeOwner.js'
|
|
8
|
+
import { controlBorderClass, controlMetrics, indicatorPressClass } from '../shared/controlStyles.js'
|
|
9
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
10
|
+
import type { ControlSize, ControlParts } from '../../presentation.js'
|
|
11
|
+
import { useFieldControl } from '../Field/Field.js'
|
|
12
12
|
|
|
13
13
|
const checkboxVariants = cva([
|
|
14
14
|
controlBorderClass,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
type ChangeEvent,
|
|
11
11
|
type ReactNode
|
|
12
12
|
} from 'react'
|
|
13
|
-
import { Checkbox, type CheckboxProps } from '
|
|
14
|
-
import { Field, type FieldProps } from '
|
|
15
|
-
import { useNativeOwner, type ValueOwner, type CheckedOwner } from '
|
|
16
|
-
import { useComposedRefs } from '
|
|
17
|
-
import { cn } from '
|
|
18
|
-
import { joinIds } from '
|
|
19
|
-
import type { ControlSize, PartStyle } from '
|
|
13
|
+
import { Checkbox, type CheckboxProps } from '../Checkbox/Checkbox.js'
|
|
14
|
+
import { Field, type FieldProps } from '../Field/Field.js'
|
|
15
|
+
import { useNativeOwner, type ValueOwner, type CheckedOwner } from '../../react/useNativeOwner.js'
|
|
16
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
17
|
+
import { cn } from '../../cn.js'
|
|
18
|
+
import { joinIds } from '../../internal/ids.js'
|
|
19
|
+
import type { ControlSize, PartStyle } from '../../presentation.js'
|
|
20
20
|
type OptionPresentation = Omit<
|
|
21
21
|
CheckboxProps,
|
|
22
22
|
| 'checked'
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
useState,
|
|
10
10
|
type ComponentProps
|
|
11
11
|
} from 'react'
|
|
12
|
-
import { Button, type ButtonProps, type ButtonRenderProps } from '
|
|
13
|
-
import { ScrollArea, type ScrollAreaProps } from '
|
|
14
|
-
import { cn } from '
|
|
15
|
-
import { joinIds } from '
|
|
16
|
-
import { composeAction } from '
|
|
17
|
-
import type { DistributiveOmit, WithoutToggle } from '
|
|
18
|
-
import type { PartStyle } from '
|
|
19
|
-
import type { ThemeStyle } from '
|
|
12
|
+
import { Button, type ButtonProps, type ButtonRenderProps } from '../Button/Button.js'
|
|
13
|
+
import { ScrollArea, type ScrollAreaProps } from '../ScrollArea/ScrollArea.js'
|
|
14
|
+
import { cn } from '../../cn.js'
|
|
15
|
+
import { joinIds } from '../../internal/ids.js'
|
|
16
|
+
import { composeAction } from '../../internal/events.js'
|
|
17
|
+
import type { DistributiveOmit, WithoutToggle } from '../../internal/types.js'
|
|
18
|
+
import type { PartStyle } from '../../presentation.js'
|
|
19
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
20
20
|
|
|
21
21
|
type Phase = 'idle' | 'pending' | 'success' | 'error'
|
|
22
22
|
type Feedback = { source: string; phase: Phase }
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import type { ComponentProps, ToggleEvent } from 'react'
|
|
4
4
|
import { createContext, useContext, useId, useLayoutEffect, useRef } from 'react'
|
|
5
5
|
import { cva } from 'class-variance-authority'
|
|
6
|
-
import { useTransitionHost } from '
|
|
7
|
-
import { cn } from '
|
|
8
|
-
import { joinIds } from '
|
|
9
|
-
import type { ThemeStyle } from '
|
|
10
|
-
import { useControllableState } from '
|
|
11
|
-
import { useComposedRefs } from '
|
|
12
|
-
import type { StateOwner } from '
|
|
6
|
+
import { useTransitionHost } from '../../motion/host.js'
|
|
7
|
+
import { cn } from '../../cn.js'
|
|
8
|
+
import { joinIds } from '../../internal/ids.js'
|
|
9
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
10
|
+
import { useControllableState } from '../../react/useControllableState.js'
|
|
11
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
12
|
+
import type { StateOwner } from '../../react/useNativeOwner.js'
|
|
13
13
|
|
|
14
14
|
const colorMotionClass =
|
|
15
15
|
'transition-colors duration-[var(--rad-motion-color-duration,150ms)] motion-reduce:transition-none'
|
|
@@ -13,29 +13,34 @@ import {
|
|
|
13
13
|
} from 'react'
|
|
14
14
|
import type { ComponentProps, ReactNode, RefObject } from 'react'
|
|
15
15
|
import { createPortal } from 'react-dom'
|
|
16
|
-
import { Button, type ButtonProps, type ButtonRenderProps } from '
|
|
17
|
-
import { Tag } from '
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
16
|
+
import { Button, type ButtonProps, type ButtonRenderProps } from '../Button/Button.js'
|
|
17
|
+
import { Tag } from '../Tag/Tag.js'
|
|
18
|
+
import {
|
|
19
|
+
sameSelection,
|
|
20
|
+
nextSelection,
|
|
21
|
+
isItemOpen,
|
|
22
|
+
type Selection
|
|
23
|
+
} from '../../internal/selection.js'
|
|
24
|
+
import { validateTags } from '../../internal/tags.js'
|
|
25
|
+
import { useArrayFormBridge } from '../../react/useArrayFormBridge.js'
|
|
26
|
+
import { useField, useFieldControl } from '../Field/Field.js'
|
|
27
|
+
import type { DistributiveOmit, WithoutToggle } from '../../internal/types.js'
|
|
28
|
+
import { cn } from '../../cn.js'
|
|
29
|
+
import { joinIds } from '../../internal/ids.js'
|
|
30
|
+
import { controlMetrics } from '../shared/controlStyles.js'
|
|
26
31
|
import {
|
|
27
32
|
comboboxInputClass,
|
|
28
33
|
comboboxContentClass,
|
|
29
34
|
comboboxItemClass,
|
|
30
35
|
comboboxActionClass
|
|
31
36
|
} from './comboboxStyles.js'
|
|
32
|
-
import { useControllableState } from '
|
|
33
|
-
import { useComposedRefs } from '
|
|
34
|
-
import { useTransitionHost } from '
|
|
35
|
-
import { useComboboxPopup } from '
|
|
36
|
-
import type { StateOwner, ValueOwner } from '
|
|
37
|
-
import type { ControlSize } from '
|
|
38
|
-
import type { ThemeStyle } from '
|
|
37
|
+
import { useControllableState } from '../../react/useControllableState.js'
|
|
38
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
39
|
+
import { useTransitionHost } from '../../motion/host.js'
|
|
40
|
+
import { useComboboxPopup } from '../../react/useComboboxPopup.js'
|
|
41
|
+
import type { StateOwner, ValueOwner } from '../../react/useNativeOwner.js'
|
|
42
|
+
import type { ControlSize } from '../../presentation.js'
|
|
43
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
39
44
|
|
|
40
45
|
export type ComboboxOption = { value: string; disabled?: boolean } & (
|
|
41
46
|
| { label: string; textValue?: string }
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
type DialogTriggerProps,
|
|
18
18
|
type DialogTitleProps,
|
|
19
19
|
type DialogDescriptionProps
|
|
20
|
-
} from '
|
|
20
|
+
} from '../Dialog/Dialog.js'
|
|
21
21
|
import {
|
|
22
22
|
ComboboxRoot,
|
|
23
23
|
ComboboxInput,
|
|
@@ -27,16 +27,16 @@ import {
|
|
|
27
27
|
type ComboboxOption,
|
|
28
28
|
type ComboboxInputProps,
|
|
29
29
|
type ComboboxItemProps
|
|
30
|
-
} from '
|
|
31
|
-
import type { StateOwner } from '
|
|
32
|
-
import { requireAccessibleName, type AccessibleName } from '
|
|
33
|
-
import { WithoutField } from '
|
|
34
|
-
import { Kbd, KbdGroup } from '
|
|
35
|
-
import { cn } from '
|
|
36
|
-
import { itemGroupLabelClass } from '
|
|
37
|
-
import { useControllableState } from '
|
|
38
|
-
import type { ControlSize } from '
|
|
39
|
-
import type { ThemeStyle } from '
|
|
30
|
+
} from '../Combobox/Combobox.js'
|
|
31
|
+
import type { StateOwner } from '../../react/useNativeOwner.js'
|
|
32
|
+
import { requireAccessibleName, type AccessibleName } from '../../internal/accessibleName.js'
|
|
33
|
+
import { WithoutField } from '../Field/Field.js'
|
|
34
|
+
import { Kbd, KbdGroup } from '../Kbd/Kbd.js'
|
|
35
|
+
import { cn } from '../../cn.js'
|
|
36
|
+
import { itemGroupLabelClass } from '../shared/controlStyles.js'
|
|
37
|
+
import { useControllableState } from '../../react/useControllableState.js'
|
|
38
|
+
import type { ControlSize } from '../../presentation.js'
|
|
39
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
40
40
|
|
|
41
41
|
export type CommandOption = ComboboxOption & { group?: string; shortcut?: readonly string[] }
|
|
42
42
|
export type CommandProps = DialogProps &
|
|
@@ -40,13 +40,13 @@ import {
|
|
|
40
40
|
type MenuSubTriggerProps,
|
|
41
41
|
type MenuSubContentProps,
|
|
42
42
|
type MenuRenderProps
|
|
43
|
-
} from '
|
|
44
|
-
import { usePopoverContext } from '
|
|
45
|
-
import { requireAccessibleName, type AccessibleName } from '
|
|
46
|
-
import { joinIds } from '
|
|
47
|
-
import { cn } from '
|
|
48
|
-
import { useComposedRefs } from '
|
|
49
|
-
import type { ThemeStyle } from '
|
|
43
|
+
} from '../Menu/Menu.js'
|
|
44
|
+
import { usePopoverContext } from '../Popover/Popover.js'
|
|
45
|
+
import { requireAccessibleName, type AccessibleName } from '../../internal/accessibleName.js'
|
|
46
|
+
import { joinIds } from '../../internal/ids.js'
|
|
47
|
+
import { cn } from '../../cn.js'
|
|
48
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
49
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
50
50
|
|
|
51
51
|
type Point = { x: number; y: number }
|
|
52
52
|
export type ContextMenuProps = MenuProps
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import type { ComponentProps, MouseEvent, ReactNode } from 'react'
|
|
4
4
|
import { createContext, useContext, useEffect, useId, useRef, useState } from 'react'
|
|
5
5
|
import { cva } from 'class-variance-authority'
|
|
6
|
-
import { Button, type ButtonProps, type ButtonRenderProps } from '
|
|
7
|
-
import { callerOwnsPress } from '
|
|
8
|
-
import { useTransitionHost } from '
|
|
9
|
-
import { cn } from '
|
|
10
|
-
import { composeAction } from '
|
|
11
|
-
import { joinIds } from '
|
|
12
|
-
import { useComposedRefs } from '
|
|
13
|
-
import { useControllableState } from '
|
|
14
|
-
import type { StateOwner } from '
|
|
15
|
-
import type { WithoutToggle } from '
|
|
16
|
-
import type { ThemeStyle } from '
|
|
6
|
+
import { Button, type ButtonProps, type ButtonRenderProps } from '../Button/Button.js'
|
|
7
|
+
import { callerOwnsPress } from '../../motion/pressPolicy.js'
|
|
8
|
+
import { useTransitionHost } from '../../motion/host.js'
|
|
9
|
+
import { cn } from '../../cn.js'
|
|
10
|
+
import { composeAction } from '../../internal/events.js'
|
|
11
|
+
import { joinIds } from '../../internal/ids.js'
|
|
12
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
13
|
+
import { useControllableState } from '../../react/useControllableState.js'
|
|
14
|
+
import type { StateOwner } from '../../react/useNativeOwner.js'
|
|
15
|
+
import type { WithoutToggle } from '../../internal/types.js'
|
|
16
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
17
17
|
|
|
18
18
|
const colorMotionClass =
|
|
19
19
|
'transition-colors duration-[var(--rad-motion-color-duration,150ms)] motion-reduce:transition-none'
|