@cognitap/radiant 0.0.75 → 0.0.77
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 +8 -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} +8 -7
- 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} +15 -14
- 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} +10 -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} +11 -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} +13 -12
- 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} +10 -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} +10 -9
- 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} +5 -4
- 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} +9 -8
- 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} +6 -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} +12 -11
- 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} +11 -10
- 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/docs/theming.md +4 -0
- 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} +11 -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} +24 -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} +13 -11
- package/src/{Drawer.tsx → components/Drawer/Drawer.tsx} +14 -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} +17 -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} +15 -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} +14 -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} +6 -4
- package/src/{Tabs.tsx → components/Tabs/Tabs.tsx} +12 -11
- 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} +8 -6
- package/src/{ThemeScope.tsx → components/ThemeScope/ThemeScope.tsx} +5 -5
- package/src/{Toast.tsx → components/Toast/Toast.tsx} +15 -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} +14 -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
|
@@ -3,17 +3,18 @@
|
|
|
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
|
+
import { scrollbarClass } from '../shared/scrollbarStyles.js'
|
|
17
18
|
|
|
18
19
|
const colorMotionClass =
|
|
19
20
|
'transition-colors duration-[var(--rad-motion-color-duration,150ms)] motion-reduce:transition-none'
|
|
@@ -24,6 +25,7 @@ const dialogVariants = cva([
|
|
|
24
25
|
'box-border text-start antialiased',
|
|
25
26
|
'[&:not([open])]:hidden!',
|
|
26
27
|
'open:m-auto open:grid open:overflow-auto open:overscroll-contain',
|
|
28
|
+
scrollbarClass,
|
|
27
29
|
'open:max-h-[min(40rem,calc(100dvh-2rem))]',
|
|
28
30
|
'open:w-[min(calc(100%-2rem),var(--rad-dialog-width,32rem))]',
|
|
29
31
|
'open:gap-[var(--rad-dialog-gap,var(--rad-surface-gap,1rem))]',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import { createContext, useContext, useId } from 'react'
|
|
4
|
-
import { Button, type ButtonProps } from '
|
|
4
|
+
import { Button, type ButtonProps } from '../Button/Button.js'
|
|
5
5
|
import {
|
|
6
6
|
DialogRoot,
|
|
7
7
|
DialogTrigger,
|
|
@@ -18,18 +18,19 @@ import {
|
|
|
18
18
|
type DialogContentProps,
|
|
19
19
|
type DialogTitleProps,
|
|
20
20
|
type DialogDescriptionProps
|
|
21
|
-
} from '
|
|
22
|
-
import { cn } from '
|
|
23
|
-
import { composeAction } from '
|
|
24
|
-
import { requireAccessibleName, type AccessibleName } from '
|
|
25
|
-
import { joinIds } from '
|
|
26
|
-
import { drawerPoints, type DrawerSide } from '
|
|
27
|
-
import { useControllableState } from '
|
|
28
|
-
import { useDrawerHost } from '
|
|
29
|
-
import type { PartStyle } from '
|
|
30
|
-
import type { StateOwner } from '
|
|
21
|
+
} from '../Dialog/Dialog.js'
|
|
22
|
+
import { cn } from '../../cn.js'
|
|
23
|
+
import { composeAction } from '../../internal/events.js'
|
|
24
|
+
import { requireAccessibleName, type AccessibleName } from '../../internal/accessibleName.js'
|
|
25
|
+
import { joinIds } from '../../internal/ids.js'
|
|
26
|
+
import { drawerPoints, type DrawerSide } from '../../internal/drawer.js'
|
|
27
|
+
import { useControllableState } from '../../react/useControllableState.js'
|
|
28
|
+
import { useDrawerHost } from '../../motion/host.js'
|
|
29
|
+
import type { PartStyle } from '../../presentation.js'
|
|
30
|
+
import type { StateOwner } from '../../react/useNativeOwner.js'
|
|
31
|
+
import { scrollbarClass } from '../shared/scrollbarStyles.js'
|
|
31
32
|
|
|
32
|
-
export type { DrawerSide } from '
|
|
33
|
+
export type { DrawerSide } from '../../internal/drawer.js'
|
|
33
34
|
export type DrawerProps = DialogProps &
|
|
34
35
|
StateOwner<'snapPoint', number> & {
|
|
35
36
|
/** Distinct visible fractions of Content's maximum size, in (0, 1]. Zero is dismissal. */
|
|
@@ -151,6 +152,7 @@ const surface = [
|
|
|
151
152
|
]
|
|
152
153
|
const viewport = [
|
|
153
154
|
'absolute inset-y-0 left-0 grid content-start box-border min-w-0 min-h-0 overflow-auto overscroll-contain max-w-full max-h-full',
|
|
155
|
+
scrollbarClass,
|
|
154
156
|
'w-[var(--_rad-drawer-visible,100%)]',
|
|
155
157
|
'[[data-physical-side=left]>&]:left-auto [[data-physical-side=left]>&]:right-0',
|
|
156
158
|
'[[data-physical-side=top]>&]:inset-x-0 [[data-physical-side=top]>&]:top-auto [[data-physical-side=top]>&]:bottom-0 [[data-physical-side=top]>&]:w-full [[data-physical-side=top]>&]:h-[var(--_rad-drawer-visible,100%)]',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react'
|
|
2
2
|
import { cva, type VariantProps } from 'class-variance-authority'
|
|
3
|
-
import { cn } from '
|
|
4
|
-
import { joinIds } from '
|
|
5
|
-
import { headings, type HeadingLevel } from '
|
|
6
|
-
import { actionTone } from '
|
|
7
|
-
import type { Tone } from '
|
|
8
|
-
import type { ThemeStyle } from '
|
|
3
|
+
import { cn } from '../../cn.js'
|
|
4
|
+
import { joinIds } from '../../internal/ids.js'
|
|
5
|
+
import { headings, type HeadingLevel } from '../../internal/headings.js'
|
|
6
|
+
import { actionTone } from '../shared/actionStyles.js'
|
|
7
|
+
import type { Tone } from '../../presentation.js'
|
|
8
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
9
9
|
const variants = cva(
|
|
10
10
|
[
|
|
11
11
|
'box-border grid w-full min-w-0 justify-items-center break-words text-center antialiased',
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { createContext, useContext, useId } from 'react'
|
|
4
4
|
import type { ComponentProps, ReactNode } from 'react'
|
|
5
5
|
import { cva } from 'class-variance-authority'
|
|
6
|
-
import { cn } from '
|
|
7
|
-
import { joinIds } from '
|
|
8
|
-
import type { ThemeStyle } from '
|
|
9
|
-
import type { PartStyle } from '
|
|
6
|
+
import { cn } from '../../cn.js'
|
|
7
|
+
import { joinIds } from '../../internal/ids.js'
|
|
8
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
9
|
+
import type { PartStyle } from '../../presentation.js'
|
|
10
10
|
|
|
11
11
|
const fieldVariants = cva(
|
|
12
12
|
[
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ReactNode } from 'react'
|
|
2
|
-
import { Field, type FieldProps } from '
|
|
3
|
-
import { cn } from '
|
|
4
|
-
import { joinIds } from '
|
|
5
|
-
import type { PartStyle } from '
|
|
2
|
+
import { Field, type FieldProps } from '../Field/Field.js'
|
|
3
|
+
import { cn } from '../../cn.js'
|
|
4
|
+
import { joinIds } from '../../internal/ids.js'
|
|
5
|
+
import type { PartStyle } from '../../presentation.js'
|
|
6
6
|
export type FieldsetProps = Omit<
|
|
7
7
|
Extract<FieldProps, { layout: 'group' }>,
|
|
8
8
|
'layout' | 'label' | 'required' | 'requiredIndicator' | 'parts' | 'role'
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import type { ComponentProps } from 'react'
|
|
4
4
|
import { useEffect, useRef, useState } from 'react'
|
|
5
|
-
import { Button } from '
|
|
6
|
-
import { cn } from '
|
|
7
|
-
import { controlMetrics } from '
|
|
8
|
-
import { useFieldControl } from '
|
|
9
|
-
import { useComposedRefs } from '
|
|
10
|
-
import type { ControlSize, PartStyle } from '
|
|
11
|
-
import type { ThemeStyle } from '
|
|
5
|
+
import { Button } from '../Button/Button.js'
|
|
6
|
+
import { cn } from '../../cn.js'
|
|
7
|
+
import { controlMetrics } from '../shared/controlStyles.js'
|
|
8
|
+
import { useFieldControl } from '../Field/Field.js'
|
|
9
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
10
|
+
import type { ControlSize, PartStyle } from '../../presentation.js'
|
|
11
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
12
12
|
|
|
13
13
|
export type FileInputProps = Omit<
|
|
14
14
|
ComponentProps<'input'>,
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
import { createContext, useContext, useCallback, useEffect, useRef, useState } from 'react'
|
|
4
4
|
import type { ComponentProps, ReactNode } from 'react'
|
|
5
|
-
import { Field, type FieldProps } from '
|
|
6
|
-
import { Alert, type AlertProps } from '
|
|
7
|
-
import { cn } from '
|
|
8
|
-
import { joinIds } from '
|
|
9
|
-
import { useControllableState } from '
|
|
10
|
-
import type { StateOwner } from '
|
|
11
|
-
import { useComposedRefs } from '
|
|
12
|
-
import type { DistributiveOmit } from '
|
|
13
|
-
import type { AccessibleName } from '
|
|
14
|
-
import { requireAccessibleName } from '
|
|
15
|
-
import type { ThemeStyle } from '
|
|
5
|
+
import { Field, type FieldProps } from '../Field/Field.js'
|
|
6
|
+
import { Alert, type AlertProps } from '../Alert/Alert.js'
|
|
7
|
+
import { cn } from '../../cn.js'
|
|
8
|
+
import { joinIds } from '../../internal/ids.js'
|
|
9
|
+
import { useControllableState } from '../../react/useControllableState.js'
|
|
10
|
+
import type { StateOwner } from '../../react/useNativeOwner.js'
|
|
11
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
12
|
+
import type { DistributiveOmit } from '../../internal/types.js'
|
|
13
|
+
import type { AccessibleName } from '../../internal/accessibleName.js'
|
|
14
|
+
import { requireAccessibleName } from '../../internal/accessibleName.js'
|
|
15
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
16
16
|
|
|
17
17
|
export type FormErrors = { fields?: Record<string, string | undefined>; form?: string }
|
|
18
18
|
export type FormSubmitContext = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import { createContext, useContext, type ReactNode } from 'react'
|
|
4
|
-
import { Link, type LinkProps, type LinkRenderProps } from '
|
|
4
|
+
import { Link, type LinkProps, type LinkRenderProps } from '../Link/Link.js'
|
|
5
5
|
import {
|
|
6
6
|
Popover,
|
|
7
7
|
PopoverPortal,
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
type PopoverProps,
|
|
11
11
|
type PopoverState,
|
|
12
12
|
type PopoverContentProps
|
|
13
|
-
} from '
|
|
14
|
-
import { useComposedRefs } from '
|
|
15
|
-
import { useHoverSurface } from '
|
|
16
|
-
import { composeAction } from '
|
|
17
|
-
import { joinIds } from '
|
|
18
|
-
import { cn } from '
|
|
13
|
+
} from '../Popover/Popover.js'
|
|
14
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
15
|
+
import { useHoverSurface } from '../../react/useHoverSurface.js'
|
|
16
|
+
import { composeAction } from '../../internal/events.js'
|
|
17
|
+
import { joinIds } from '../../internal/ids.js'
|
|
18
|
+
import { cn } from '../../cn.js'
|
|
19
19
|
|
|
20
20
|
export type HoverCardProps = PopoverProps & { openDelay?: number; closeDelay?: number }
|
|
21
21
|
export type HoverCardState = PopoverState
|
|
@@ -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 InlineCodeProps = Omit<ComponentProps<'code'>, 'style'> & {
|
|
7
7
|
style?: ThemeStyle
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import type { ComponentProps } from 'react'
|
|
4
4
|
import { cva } from 'class-variance-authority'
|
|
5
|
-
import { cn } from '
|
|
6
|
-
import { controlBorderClass, controlMetrics } from '
|
|
7
|
-
import { useNativeOwner, type ValueOwner } from '
|
|
8
|
-
import type { ThemeStyle } from '
|
|
9
|
-
import type { ControlSize } from '
|
|
10
|
-
import { useFieldControl } from '
|
|
5
|
+
import { cn } from '../../cn.js'
|
|
6
|
+
import { controlBorderClass, controlMetrics } from '../shared/controlStyles.js'
|
|
7
|
+
import { useNativeOwner, type ValueOwner } from '../../react/useNativeOwner.js'
|
|
8
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
9
|
+
import type { ControlSize } from '../../presentation.js'
|
|
10
|
+
import { useFieldControl } from '../Field/Field.js'
|
|
11
11
|
|
|
12
12
|
export const inputVariants = cva([
|
|
13
13
|
controlBorderClass,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import { createContext, useContext, type ComponentProps } from 'react'
|
|
4
|
-
import { InputRoot, type InputProps } from '
|
|
5
|
-
import { TextareaRoot, type TextareaProps } from '
|
|
6
|
-
import { cn } from '
|
|
7
|
-
import { controlBorderClass, controlMetrics } from '
|
|
8
|
-
import { joinIds } from '
|
|
9
|
-
import type { ControlSize } from '
|
|
10
|
-
import type { ThemeStyle } from '
|
|
4
|
+
import { InputRoot, type InputProps } from '../Input/Input.js'
|
|
5
|
+
import { TextareaRoot, type TextareaProps } from '../Textarea/Textarea.js'
|
|
6
|
+
import { cn } from '../../cn.js'
|
|
7
|
+
import { controlBorderClass, controlMetrics } from '../shared/controlStyles.js'
|
|
8
|
+
import { joinIds } from '../../internal/ids.js'
|
|
9
|
+
import type { ControlSize } from '../../presentation.js'
|
|
10
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
11
11
|
|
|
12
12
|
const SizeContext = createContext<ControlSize | null>(null)
|
|
13
13
|
function useInputGroup() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentProps, ReactNode } 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 KbdProps = Omit<
|
|
7
7
|
ComponentProps<'kbd'>,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Fragment, isValidElement, type ComponentProps, type ReactElement } from 'react'
|
|
2
2
|
import { cva, type VariantProps } from 'class-variance-authority'
|
|
3
|
-
import type { ButtonVariant, ControlSize, Tone } from '
|
|
4
|
-
import { actionTone, actionVariants } from '
|
|
5
|
-
import { cn } from '
|
|
6
|
-
import type { ThemeStyle } from '
|
|
3
|
+
import type { ButtonVariant, ControlSize, Tone } from '../../presentation.js'
|
|
4
|
+
import { actionTone, actionVariants } from '../shared/actionStyles.js'
|
|
5
|
+
import { cn } from '../../cn.js'
|
|
6
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
7
7
|
|
|
8
8
|
const linkVariants = cva(
|
|
9
9
|
[
|
|
@@ -24,20 +24,20 @@ import {
|
|
|
24
24
|
type PopoverProps,
|
|
25
25
|
type PopoverState,
|
|
26
26
|
type PopoverContentProps
|
|
27
|
-
} from '
|
|
28
|
-
import type { ButtonProps, ButtonRenderProps } from '
|
|
29
|
-
import type { DistributiveOmit, WithoutToggle } from '
|
|
30
|
-
import { Separator, type SeparatorProps } from '
|
|
31
|
-
import { useControllableState } from '
|
|
32
|
-
import type { CheckedOwner, ValueOwner } from '
|
|
33
|
-
import type { ThemeStyle } from '
|
|
34
|
-
import type { PartStyle } from '
|
|
35
|
-
import { cn } from '
|
|
36
|
-
import { itemGroupLabelClass } from '
|
|
37
|
-
import { composeAction } from '
|
|
38
|
-
import { joinIds } from '
|
|
39
|
-
import { matchSelectText } from '
|
|
40
|
-
import { useComposedRefs } from '
|
|
27
|
+
} from '../Popover/Popover.js'
|
|
28
|
+
import type { ButtonProps, ButtonRenderProps } from '../Button/Button.js'
|
|
29
|
+
import type { DistributiveOmit, WithoutToggle } from '../../internal/types.js'
|
|
30
|
+
import { Separator, type SeparatorProps } from '../Separator/Separator.js'
|
|
31
|
+
import { useControllableState } from '../../react/useControllableState.js'
|
|
32
|
+
import type { CheckedOwner, ValueOwner } from '../../react/useNativeOwner.js'
|
|
33
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
34
|
+
import type { PartStyle } from '../../presentation.js'
|
|
35
|
+
import { cn } from '../../cn.js'
|
|
36
|
+
import { itemGroupLabelClass } from '../shared/controlStyles.js'
|
|
37
|
+
import { composeAction } from '../../internal/events.js'
|
|
38
|
+
import { joinIds } from '../../internal/ids.js'
|
|
39
|
+
import { matchSelectText } from '../../internal/select.js'
|
|
40
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
41
41
|
|
|
42
42
|
export type MenuProps = PopoverProps
|
|
43
43
|
export type MenuState = PopoverState
|
|
@@ -41,17 +41,17 @@ import {
|
|
|
41
41
|
type MenuSubTriggerProps,
|
|
42
42
|
type MenuSubContentProps,
|
|
43
43
|
type MenuRenderProps
|
|
44
|
-
} from '
|
|
45
|
-
import { useControllableState } from '
|
|
46
|
-
import { useComposedRefs } from '
|
|
47
|
-
import { useRovingFocus } from '
|
|
48
|
-
import { requireAccessibleName, type AccessibleName } from '
|
|
49
|
-
import type { ValueOwner } from '
|
|
50
|
-
import type { DistributiveOmit } from '
|
|
51
|
-
import type { ThemeStyle } from '
|
|
52
|
-
import { cn } from '
|
|
53
|
-
import { joinIds } from '
|
|
54
|
-
import { composeAction } from '
|
|
44
|
+
} from '../Menu/Menu.js'
|
|
45
|
+
import { useControllableState } from '../../react/useControllableState.js'
|
|
46
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
47
|
+
import { useRovingFocus } from '../../react/useRovingFocus.js'
|
|
48
|
+
import { requireAccessibleName, type AccessibleName } from '../../internal/accessibleName.js'
|
|
49
|
+
import type { ValueOwner } from '../../react/useNativeOwner.js'
|
|
50
|
+
import type { DistributiveOmit } from '../../internal/types.js'
|
|
51
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
52
|
+
import { cn } from '../../cn.js'
|
|
53
|
+
import { joinIds } from '../../internal/ids.js'
|
|
54
|
+
import { composeAction } from '../../internal/events.js'
|
|
55
55
|
|
|
56
56
|
type Intent = 'first' | 'last' | 'none'
|
|
57
57
|
export type MenubarProps = Omit<
|
|
@@ -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 MeterProps = Omit<
|
|
7
7
|
ComponentProps<'meter'>,
|
|
@@ -23,8 +23,8 @@ import {
|
|
|
23
23
|
type ComboboxStatusProps,
|
|
24
24
|
type ComboboxTagsProps,
|
|
25
25
|
type ComboboxRenderProps
|
|
26
|
-
} from '
|
|
27
|
-
import type { DistributiveOmit } from '
|
|
26
|
+
} from '../Combobox/Combobox.js'
|
|
27
|
+
import type { DistributiveOmit } from '../../internal/types.js'
|
|
28
28
|
|
|
29
29
|
export type MultiSelectProps = DistributiveOmit<ComboboxMultipleProps, 'type'> & {
|
|
30
30
|
type?: never
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import type { ComponentProps } from 'react'
|
|
4
|
-
import { cn } from '
|
|
5
|
-
import { controlBorderClass, controlMetrics } from '
|
|
6
|
-
import { useFieldControl } from '
|
|
7
|
-
import { joinIds } from '
|
|
8
|
-
import { useNativeOwner, type ValueOwner } from '
|
|
9
|
-
import type { ControlSize } from '
|
|
10
|
-
import type { ThemeStyle } from '
|
|
4
|
+
import { cn } from '../../cn.js'
|
|
5
|
+
import { controlBorderClass, controlMetrics } from '../shared/controlStyles.js'
|
|
6
|
+
import { useFieldControl } from '../Field/Field.js'
|
|
7
|
+
import { joinIds } from '../../internal/ids.js'
|
|
8
|
+
import { useNativeOwner, type ValueOwner } from '../../react/useNativeOwner.js'
|
|
9
|
+
import type { ControlSize } from '../../presentation.js'
|
|
10
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
11
11
|
|
|
12
12
|
export type NativeSelectProps = Omit<
|
|
13
13
|
ComponentProps<'select'>,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ComposedLink,
|
|
6
6
|
type ComposedLinkProps,
|
|
7
7
|
type ComposedLinkRenderProps
|
|
8
|
-
} from '
|
|
8
|
+
} from '../shared/composedLink.js'
|
|
9
9
|
import {
|
|
10
10
|
Collapsible,
|
|
11
11
|
CollapsibleTrigger,
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
type CollapsibleProps,
|
|
14
14
|
type CollapsibleTriggerProps,
|
|
15
15
|
type CollapsibleContentProps
|
|
16
|
-
} from '
|
|
17
|
-
import { cn } from '
|
|
18
|
-
import { controlMetrics } from '
|
|
19
|
-
import { joinIds } from '
|
|
20
|
-
import type { ControlSize, PartStyle } from '
|
|
16
|
+
} from '../Collapsible/Collapsible.js'
|
|
17
|
+
import { cn } from '../../cn.js'
|
|
18
|
+
import { controlMetrics } from '../shared/controlStyles.js'
|
|
19
|
+
import { joinIds } from '../../internal/ids.js'
|
|
20
|
+
import type { ControlSize, PartStyle } from '../../presentation.js'
|
|
21
21
|
|
|
22
22
|
type LabelParts = { icon?: PartStyle; label?: PartStyle; description?: PartStyle }
|
|
23
23
|
type ContentProps = {
|
|
@@ -13,25 +13,26 @@ import {
|
|
|
13
13
|
type ComponentProps,
|
|
14
14
|
type RefObject
|
|
15
15
|
} from 'react'
|
|
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 { cn } from '
|
|
23
|
-
import { ScrollArea } from '
|
|
24
|
-
import { composeAction } from '
|
|
25
|
-
import { joinIds } from '
|
|
26
|
-
import { requireAccessibleName, type AccessibleName } from '
|
|
27
|
-
import type { DistributiveOmit, WithoutToggle } from '
|
|
28
|
-
import { useControllableState } from '
|
|
29
|
-
import { useComposedRefs } from '
|
|
30
|
-
import { useHoverSurface } from '
|
|
31
|
-
import type { ValueOwner } from '
|
|
32
|
-
import { useTransitionHost } from '
|
|
33
|
-
import type { ControlSize } from '
|
|
34
|
-
import type { ThemeStyle } from '
|
|
21
|
+
} from '../shared/composedLink.js'
|
|
22
|
+
import { cn } from '../../cn.js'
|
|
23
|
+
import { ScrollArea } from '../ScrollArea/ScrollArea.js'
|
|
24
|
+
import { composeAction } from '../../internal/events.js'
|
|
25
|
+
import { joinIds } from '../../internal/ids.js'
|
|
26
|
+
import { requireAccessibleName, type AccessibleName } from '../../internal/accessibleName.js'
|
|
27
|
+
import type { DistributiveOmit, WithoutToggle } from '../../internal/types.js'
|
|
28
|
+
import { useControllableState } from '../../react/useControllableState.js'
|
|
29
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
30
|
+
import { useHoverSurface } from '../../react/useHoverSurface.js'
|
|
31
|
+
import type { ValueOwner } from '../../react/useNativeOwner.js'
|
|
32
|
+
import { useTransitionHost } from '../../motion/host.js'
|
|
33
|
+
import type { ControlSize } from '../../presentation.js'
|
|
34
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
35
|
+
import { scrollbarClass } from '../shared/scrollbarStyles.js'
|
|
35
36
|
|
|
36
37
|
export type NavigationMenuItemConfig = { value: string; disabled?: boolean }
|
|
37
38
|
export type NavigationMenuProps = Omit<
|
|
@@ -629,6 +630,7 @@ export function NavigationMenuViewport({
|
|
|
629
630
|
data-motion={motion}
|
|
630
631
|
className={cn(
|
|
631
632
|
'absolute top-full left-0 z-20 box-border overflow-auto [translate:var(--_rad-indicator-x,var(--_rad-indicator-target-x,0px))_var(--_rad-indicator-y,var(--_rad-indicator-target-y,0px))] w-[var(--_rad-indicator-width,var(--_rad-indicator-target-width,max-content))] h-[var(--_rad-indicator-height,var(--_rad-indicator-target-height,auto))] max-h-[min(70vh,30rem)] rounded-[var(--rad-navigation-menu-radius,var(--rad-surface-radius,0.75rem))] [corner-shape:var(--rad-surface-corner-shape,round)] [border-width:var(--rad-navigation-menu-border-width,var(--rad-surface-border-width,1px))] [border-style:var(--rad-surface-border-style,solid)] border-[var(--rad-navigation-menu-border-color,var(--rad-color-border))] bg-[var(--rad-navigation-menu-background,var(--rad-surface-overlay-background,var(--rad-color-surface)))] text-[var(--rad-navigation-menu-color,var(--rad-color-foreground))] [box-shadow:var(--rad-navigation-menu-shadow,var(--rad-surface-overlay-shadow,0_24px_64px_-16px_rgb(0_0_0/0.3)))] [backdrop-filter:var(--rad-surface-backdrop-filter,none)] [hidden]:hidden forced-colors:bg-[Canvas] forced-colors:text-[CanvasText] forced-colors:border-[CanvasText]',
|
|
633
|
+
scrollbarClass,
|
|
632
634
|
className
|
|
633
635
|
)}
|
|
634
636
|
onPointerEnter={composeAction(onPointerEnter, event => {
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
/* oxlint-disable jsx-a11y/prefer-tag-over-role -- Locale currency and percent editing requires a native text input with spinbutton semantics. */
|
|
4
4
|
|
|
5
|
-
import { inlineActionClass } from '
|
|
5
|
+
import { inlineActionClass } from '../shared/actionStyles.js'
|
|
6
6
|
import { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react'
|
|
7
|
-
import type { InputProps } from '
|
|
8
|
-
import { InputGroup, InputGroupAddon, InputGroupInputRoot } from '
|
|
9
|
-
import { Button } from '
|
|
10
|
-
import { useFieldControl } from '
|
|
11
|
-
import { cn } from '
|
|
12
|
-
import type { PartStyle } from '
|
|
13
|
-
import type { DistributiveOmit } from '
|
|
14
|
-
import { requireAccessibleName } from '
|
|
7
|
+
import type { InputProps } from '../Input/Input.js'
|
|
8
|
+
import { InputGroup, InputGroupAddon, InputGroupInputRoot } from '../InputGroup/InputGroup.js'
|
|
9
|
+
import { Button } from '../Button/Button.js'
|
|
10
|
+
import { useFieldControl } from '../Field/Field.js'
|
|
11
|
+
import { cn } from '../../cn.js'
|
|
12
|
+
import type { PartStyle } from '../../presentation.js'
|
|
13
|
+
import type { DistributiveOmit } from '../../internal/types.js'
|
|
14
|
+
import { requireAccessibleName } from '../../internal/accessibleName.js'
|
|
15
15
|
import {
|
|
16
16
|
addNumberStep,
|
|
17
17
|
clampNumber,
|
|
18
18
|
createNumberAdapter,
|
|
19
19
|
requireFiniteNumber,
|
|
20
20
|
type NumberFieldFormatOptions
|
|
21
|
-
} from '
|
|
22
|
-
import type { ValueOwner } from '
|
|
23
|
-
import { useControllableState } from '
|
|
24
|
-
import { useComposedRefs } from '
|
|
25
|
-
export type { NumberFieldFormatOptions } from '
|
|
21
|
+
} from '../../internal/numberField.js'
|
|
22
|
+
import type { ValueOwner } from '../../react/useNativeOwner.js'
|
|
23
|
+
import { useControllableState } from '../../react/useControllableState.js'
|
|
24
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
25
|
+
export type { NumberFieldFormatOptions } from '../../internal/numberField.js'
|
|
26
26
|
|
|
27
27
|
export type NumberFieldProps = DistributiveOmit<
|
|
28
28
|
InputProps,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import { useEffect, useRef, useState } from 'react'
|
|
4
|
-
import { InputRoot, inputVariants, type InputProps } from '
|
|
5
|
-
import { useFieldControl } from '
|
|
6
|
-
import { cn } from '
|
|
7
|
-
import { controlMetrics } from '
|
|
8
|
-
import { useComposedRefs } from '
|
|
9
|
-
import { useNativeOwner, type ValueOwner } from '
|
|
10
|
-
import type { DistributiveOmit } from '
|
|
11
|
-
import type { PartStyle } from '
|
|
4
|
+
import { InputRoot, inputVariants, type InputProps } from '../Input/Input.js'
|
|
5
|
+
import { useFieldControl } from '../Field/Field.js'
|
|
6
|
+
import { cn } from '../../cn.js'
|
|
7
|
+
import { controlMetrics } from '../shared/controlStyles.js'
|
|
8
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
9
|
+
import { useNativeOwner, type ValueOwner } from '../../react/useNativeOwner.js'
|
|
10
|
+
import type { DistributiveOmit } from '../../internal/types.js'
|
|
11
|
+
import type { PartStyle } from '../../presentation.js'
|
|
12
12
|
|
|
13
13
|
export type OTPFieldMode = 'numeric' | 'alphanumeric'
|
|
14
14
|
export type OTPFieldProps = DistributiveOmit<
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react'
|
|
2
|
-
import { Button, type ButtonProps } from '
|
|
2
|
+
import { Button, type ButtonProps } from '../Button/Button.js'
|
|
3
3
|
import {
|
|
4
4
|
ComposedLink,
|
|
5
5
|
type ComposedLinkProps,
|
|
6
6
|
type ComposedLinkRenderProps
|
|
7
|
-
} from '
|
|
8
|
-
import type { DistributiveOmit } from '
|
|
9
|
-
import { cn } from '
|
|
10
|
-
import { joinIds } from '
|
|
11
|
-
import { requireAccessibleName } from '
|
|
12
|
-
import type { ThemeStyle } from '
|
|
7
|
+
} from '../shared/composedLink.js'
|
|
8
|
+
import type { DistributiveOmit } from '../../internal/types.js'
|
|
9
|
+
import { cn } from '../../cn.js'
|
|
10
|
+
import { joinIds } from '../../internal/ids.js'
|
|
11
|
+
import { requireAccessibleName } from '../../internal/accessibleName.js'
|
|
12
|
+
import type { ThemeStyle } from '../../themes/defineTheme.js'
|
|
13
13
|
type Part<Host extends 'nav' | 'ol' | 'li' | 'span'> = Omit<
|
|
14
14
|
ComponentProps<Host>,
|
|
15
15
|
'style' | 'role'
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import { inlineActionClass } from '
|
|
3
|
+
import { inlineActionClass } from '../shared/actionStyles.js'
|
|
4
4
|
import { useEffect, useRef, useState } from 'react'
|
|
5
|
-
import type { InputProps } from '
|
|
6
|
-
import { InputGroup, InputGroupAddon, InputGroupInputRoot } from '
|
|
7
|
-
import { Button } from '
|
|
8
|
-
import { useFieldControl } from '
|
|
9
|
-
import { cn } from '
|
|
10
|
-
import { requireAccessibleName } from '
|
|
11
|
-
import type { DistributiveOmit } from '
|
|
12
|
-
import { useNativeOwner, type ValueOwner } from '
|
|
13
|
-
import { useComposedRefs } from '
|
|
14
|
-
import type { PartStyle } from '
|
|
5
|
+
import type { InputProps } from '../Input/Input.js'
|
|
6
|
+
import { InputGroup, InputGroupAddon, InputGroupInputRoot } from '../InputGroup/InputGroup.js'
|
|
7
|
+
import { Button } from '../Button/Button.js'
|
|
8
|
+
import { useFieldControl } from '../Field/Field.js'
|
|
9
|
+
import { cn } from '../../cn.js'
|
|
10
|
+
import { requireAccessibleName } from '../../internal/accessibleName.js'
|
|
11
|
+
import type { DistributiveOmit } from '../../internal/types.js'
|
|
12
|
+
import { useNativeOwner, type ValueOwner } from '../../react/useNativeOwner.js'
|
|
13
|
+
import { useComposedRefs } from '../../react/useComposedRefs.js'
|
|
14
|
+
import type { PartStyle } from '../../presentation.js'
|
|
15
15
|
|
|
16
16
|
export type PasswordInputProps = DistributiveOmit<
|
|
17
17
|
InputProps,
|