Skip to content

Commit

Permalink
[core] Correct components and hooks imports (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak authored Apr 15, 2024
1 parent f01bc2f commit aaede0a
Show file tree
Hide file tree
Showing 70 changed files with 109 additions and 200 deletions.
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/badge.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
},
"name": "Badge",
"imports": ["import { Badge } from '@mui/base/Badge';", "import { Badge } from '@mui/base';"],
"imports": ["import { Badge } from '@base_ui/react/Badge';"],
"classes": [],
"spread": true,
"muiName": "Badge",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/button.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
},
"name": "Button",
"imports": ["import { Button } from '@mui/base/Button';", "import { Button } from '@mui/base';"],
"imports": ["import { Button } from '@base_ui/react/Button';"],
"classes": [],
"spread": true,
"muiName": "Button",
Expand Down
3 changes: 1 addition & 2 deletions docs/pages/base-ui/api/checkbox-indicator.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
},
"name": "CheckboxIndicator",
"imports": [
"import { CheckboxIndicator } from '@mui/base/Checkbox';",
"import { CheckboxIndicator } from '@mui/base';"
"import * as Checkbox from '@base_ui/react/Checkbox';\nconst CheckboxIndicator = Checkbox.Indicator;"
],
"classes": [],
"spread": true,
Expand Down
3 changes: 1 addition & 2 deletions docs/pages/base-ui/api/checkbox-root.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
},
"name": "CheckboxRoot",
"imports": [
"import { CheckboxRoot } from '@mui/base/Checkbox';",
"import { CheckboxRoot } from '@mui/base';"
"import * as Checkbox from '@base_ui/react/Checkbox';\nconst CheckboxRoot = Checkbox.Root;"
],
"classes": [],
"spread": true,
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/base-ui/api/click-away-listener.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
}
},
"name": "ClickAwayListener",
"imports": [
"import { ClickAwayListener } from '@mui/base/ClickAwayListener';",
"import { ClickAwayListener } from '@mui/base';"
],
"imports": ["import { ClickAwayListener } from '@base_ui/react/ClickAwayListener';"],
"classes": [],
"spread": false,
"themeDefaultProps": null,
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/base-ui/api/css-animation.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"exitClassName": { "type": { "name": "string" } }
},
"name": "CssAnimation",
"imports": [
"import { CssAnimation } from '@mui/base/Transitions';",
"import { CssAnimation } from '@mui/base';"
],
"imports": ["import { CssAnimation } from '@base_ui/react/Transitions';"],
"classes": [],
"spread": true,
"themeDefaultProps": null,
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/base-ui/api/css-transition.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
"lastTransitionedPropertyOnExit": { "type": { "name": "string" } }
},
"name": "CssTransition",
"imports": [
"import { CssTransition } from '@mui/base/Transitions';",
"import { CssTransition } from '@mui/base';"
],
"imports": ["import { CssTransition } from '@base_ui/react/Transitions';"],
"classes": [],
"spread": true,
"themeDefaultProps": null,
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/base-ui/api/dropdown.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
"open": { "type": { "name": "bool" } }
},
"name": "Dropdown",
"imports": [
"import { Dropdown } from '@mui/base/Dropdown';",
"import { Dropdown } from '@mui/base';"
],
"imports": ["import { Dropdown } from '@base_ui/react/Dropdown';"],
"classes": [],
"spread": false,
"themeDefaultProps": null,
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/base-ui/api/focus-trap.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
}
},
"name": "FocusTrap",
"imports": [
"import { FocusTrap } from '@mui/base/FocusTrap';",
"import { FocusTrap } from '@mui/base';"
],
"imports": ["import { FocusTrap } from '@base_ui/react/FocusTrap';"],
"classes": [],
"spread": false,
"themeDefaultProps": null,
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/base-ui/api/form-control.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
"value": { "type": { "name": "any" } }
},
"name": "FormControl",
"imports": [
"import { FormControl } from '@mui/base/FormControl';",
"import { FormControl } from '@mui/base';"
],
"imports": ["import { FormControl } from '@base_ui/react/FormControl';"],
"classes": [],
"spread": true,
"muiName": "FormControl",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/input.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"value": { "type": { "name": "any" } }
},
"name": "Input",
"imports": ["import { Input } from '@mui/base/Input';", "import { Input } from '@mui/base';"],
"imports": ["import { Input } from '@base_ui/react/Input';"],
"classes": [],
"spread": true,
"muiName": "Input",
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/base-ui/api/menu-button.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
}
},
"name": "MenuButton",
"imports": [
"import { MenuButton } from '@mui/base/MenuButton';",
"import { MenuButton } from '@mui/base';"
],
"imports": ["import { MenuButton } from '@base_ui/react/MenuButton';"],
"classes": [],
"spread": true,
"muiName": "MenuButton",
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/base-ui/api/menu-item.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
}
},
"name": "MenuItem",
"imports": [
"import { MenuItem } from '@mui/base/MenuItem';",
"import { MenuItem } from '@mui/base';"
],
"imports": ["import { MenuItem } from '@base_ui/react/MenuItem';"],
"classes": [],
"spread": true,
"muiName": "MenuItem",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
},
"name": "Menu",
"imports": ["import { Menu } from '@mui/base/Menu';", "import { Menu } from '@mui/base';"],
"imports": ["import { Menu } from '@base_ui/react/Menu';"],
"classes": [],
"spread": true,
"muiName": "Menu",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/modal.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
}
},
"name": "Modal",
"imports": ["import { Modal } from '@mui/base/Modal';", "import { Modal } from '@mui/base';"],
"imports": ["import { Modal } from '@base_ui/react/Modal';"],
"classes": [],
"spread": true,
"muiName": "Modal",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/no-ssr.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"fallback": { "type": { "name": "node" }, "default": "null" }
},
"name": "NoSsr",
"imports": ["import { NoSsr } from '@mui/base/NoSsr';", "import { NoSsr } from '@mui/base';"],
"imports": ["import { NoSsr } from '@base_ui/react/NoSsr';"],
"classes": [],
"spread": false,
"themeDefaultProps": null,
Expand Down
3 changes: 1 addition & 2 deletions docs/pages/base-ui/api/number-field-decrement.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
},
"name": "NumberFieldDecrement",
"imports": [
"import { NumberFieldDecrement } from '@mui/base/NumberField';",
"import { NumberFieldDecrement } from '@mui/base';"
"import * as NumberField from '@base_ui/react/NumberField';\nconst NumberFieldDecrement = NumberField.Decrement;"
],
"classes": [],
"spread": true,
Expand Down
3 changes: 1 addition & 2 deletions docs/pages/base-ui/api/number-field-group.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
},
"name": "NumberFieldGroup",
"imports": [
"import { NumberFieldGroup } from '@mui/base/NumberField';",
"import { NumberFieldGroup } from '@mui/base';"
"import * as NumberField from '@base_ui/react/NumberField';\nconst NumberFieldGroup = NumberField.Group;"
],
"classes": [],
"spread": true,
Expand Down
3 changes: 1 addition & 2 deletions docs/pages/base-ui/api/number-field-increment.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
},
"name": "NumberFieldIncrement",
"imports": [
"import { NumberFieldIncrement } from '@mui/base/NumberField';",
"import { NumberFieldIncrement } from '@mui/base';"
"import * as NumberField from '@base_ui/react/NumberField';\nconst NumberFieldIncrement = NumberField.Increment;"
],
"classes": [],
"spread": true,
Expand Down
3 changes: 1 addition & 2 deletions docs/pages/base-ui/api/number-field-input.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
},
"name": "NumberFieldInput",
"imports": [
"import { NumberFieldInput } from '@mui/base/NumberField';",
"import { NumberFieldInput } from '@mui/base';"
"import * as NumberField from '@base_ui/react/NumberField';\nconst NumberFieldInput = NumberField.Input;"
],
"classes": [],
"spread": true,
Expand Down
3 changes: 1 addition & 2 deletions docs/pages/base-ui/api/number-field-root.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
},
"name": "NumberFieldRoot",
"imports": [
"import { NumberFieldRoot } from '@mui/base/NumberField';",
"import { NumberFieldRoot } from '@mui/base';"
"import * as NumberField from '@base_ui/react/NumberField';\nconst NumberFieldRoot = NumberField.Root;"
],
"classes": [],
"spread": true,
Expand Down
3 changes: 1 addition & 2 deletions docs/pages/base-ui/api/number-field-scrub-area-cursor.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
},
"name": "NumberFieldScrubAreaCursor",
"imports": [
"import { NumberFieldScrubAreaCursor } from '@mui/base/NumberField';",
"import { NumberFieldScrubAreaCursor } from '@mui/base';"
"import * as NumberField from '@base_ui/react/NumberField';\nconst NumberFieldScrubAreaCursor = NumberField.ScrubAreaCursor;"
],
"classes": [],
"spread": true,
Expand Down
3 changes: 1 addition & 2 deletions docs/pages/base-ui/api/number-field-scrub-area.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
},
"name": "NumberFieldScrubArea",
"imports": [
"import { NumberFieldScrubArea } from '@mui/base/NumberField';",
"import { NumberFieldScrubArea } from '@mui/base';"
"import * as NumberField from '@base_ui/react/NumberField';\nconst NumberFieldScrubArea = NumberField.ScrubArea;"
],
"classes": [],
"spread": true,
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/base-ui/api/option-group.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
}
},
"name": "OptionGroup",
"imports": [
"import { OptionGroup } from '@mui/base/OptionGroup';",
"import { OptionGroup } from '@mui/base';"
],
"imports": ["import { OptionGroup } from '@base_ui/react/OptionGroup';"],
"classes": [],
"spread": true,
"muiName": "OptionGroup",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/option.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
},
"name": "Option",
"imports": ["import { Option } from '@mui/base/Option';", "import { Option } from '@mui/base';"],
"imports": ["import { Option } from '@base_ui/react/Option';"],
"classes": [],
"spread": true,
"muiName": "Option",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/popper.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"transition": { "type": { "name": "bool" }, "default": "false" }
},
"name": "Popper",
"imports": ["import { Popper } from '@mui/base/Popper';", "import { Popper } from '@mui/base';"],
"imports": ["import { Popper } from '@base_ui/react/Popper';"],
"classes": [],
"spread": true,
"muiName": "Popper",
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/base-ui/api/popup.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@
}
},
"name": "Popup",
"imports": [
"import { Unstable_Popup as Popup } from '@mui/base/Unstable_Popup';",
"import { Unstable_Popup as Popup } from '@mui/base';"
],
"imports": ["import { Popup } from '@base_ui/react/Unstable_Popup';"],
"classes": [],
"spread": true,
"muiName": "Popup",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/portal.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"disablePortal": { "type": { "name": "bool" }, "default": "false" }
},
"name": "Portal",
"imports": ["import { Portal } from '@mui/base/Portal';", "import { Portal } from '@mui/base';"],
"imports": ["import { Portal } from '@base_ui/react/Portal';"],
"classes": [],
"spread": false,
"themeDefaultProps": null,
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/select.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"value": { "type": { "name": "any" } }
},
"name": "Select",
"imports": ["import { Select } from '@mui/base/Select';", "import { Select } from '@mui/base';"],
"imports": ["import { Select } from '@base_ui/react/Select';"],
"classes": [],
"spread": true,
"muiName": "Select",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/slider.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
}
},
"name": "Slider",
"imports": ["import { Slider } from '@mui/base/Slider';", "import { Slider } from '@mui/base';"],
"imports": ["import { Slider } from '@base_ui/react/Slider';"],
"classes": [],
"spread": true,
"muiName": "Slider",
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/base-ui/api/snackbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@
}
},
"name": "Snackbar",
"imports": [
"import { Snackbar } from '@mui/base/Snackbar';",
"import { Snackbar } from '@mui/base';"
],
"imports": ["import { Snackbar } from '@base_ui/react/Snackbar';"],
"classes": [],
"spread": true,
"muiName": "Snackbar",
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/base-ui/api/switch-root.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
"required": { "type": { "name": "bool" }, "default": "false" }
},
"name": "SwitchRoot",
"imports": [
"import { SwitchRoot } from '@mui/base/Switch';",
"import { SwitchRoot } from '@mui/base';"
],
"imports": ["import * as Switch from '@base_ui/react/Switch';\nconst SwitchRoot = Switch.Root;"],
"classes": [],
"spread": true,
"themeDefaultProps": true,
Expand Down
3 changes: 1 addition & 2 deletions docs/pages/base-ui/api/switch-thumb.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
},
"name": "SwitchThumb",
"imports": [
"import { SwitchThumb } from '@mui/base/Switch';",
"import { SwitchThumb } from '@mui/base';"
"import * as Switch from '@base_ui/react/Switch';\nconst SwitchThumb = Switch.Thumb;"
],
"classes": [],
"spread": true,
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/base-ui/api/tab-panel.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
"value": { "type": { "name": "union", "description": "number<br>&#124;&nbsp;string" } }
},
"name": "TabPanel",
"imports": [
"import { TabPanel } from '@mui/base/TabPanel';",
"import { TabPanel } from '@mui/base';"
],
"imports": ["import { TabPanel } from '@base_ui/react/TabPanel';"],
"classes": [],
"spread": true,
"muiName": "TabPanel",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/tab.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"value": { "type": { "name": "union", "description": "number<br>&#124;&nbsp;string" } }
},
"name": "Tab",
"imports": ["import { Tab } from '@mui/base/Tab';", "import { Tab } from '@mui/base';"],
"imports": ["import { Tab } from '@base_ui/react/Tab';"],
"classes": [],
"spread": true,
"muiName": "Tab",
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/base-ui/api/table-pagination.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@
}
},
"name": "TablePagination",
"imports": [
"import { TablePagination } from '@mui/base/TablePagination';",
"import { TablePagination } from '@mui/base';"
],
"imports": ["import { TablePagination } from '@base_ui/react/TablePagination';"],
"classes": [],
"spread": true,
"muiName": "TablePagination",
Expand Down
5 changes: 1 addition & 4 deletions docs/pages/base-ui/api/tabs-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
}
},
"name": "TabsList",
"imports": [
"import { TabsList } from '@mui/base/TabsList';",
"import { TabsList } from '@mui/base';"
],
"imports": ["import { TabsList } from '@base_ui/react/TabsList';"],
"classes": [],
"spread": true,
"muiName": "TabsList",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/tabs.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"value": { "type": { "name": "union", "description": "number<br>&#124;&nbsp;string" } }
},
"name": "Tabs",
"imports": ["import { Tabs } from '@mui/base/Tabs';", "import { Tabs } from '@mui/base';"],
"imports": ["import { Tabs } from '@base_ui/react/Tabs';"],
"classes": [],
"spread": true,
"muiName": "Tabs",
Expand Down
Loading

0 comments on commit aaede0a

Please sign in to comment.