Skip to content

Commit

Permalink
Migrate new exports
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Oct 14, 2024
1 parent 6852100 commit cccd3b2
Show file tree
Hide file tree
Showing 49 changed files with 64 additions and 84 deletions.
4 changes: 1 addition & 3 deletions docs/data/api/select-arrow.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"render": { "type": { "name": "union", "description": "element<br>&#124;&nbsp;func" } }
},
"name": "SelectArrow",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectArrow = Select.Arrow;"
],
"imports": ["import { Select } from '@base_ui/react/Select';\nconst SelectArrow = Select.Arrow;"],
"classes": [],
"spread": true,
"themeDefaultProps": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/api/select-backdrop.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"name": "SelectBackdrop",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectBackdrop = Select.Backdrop;"
"import { Select } from '@base_ui/react/Select';\nconst SelectBackdrop = Select.Backdrop;"
],
"classes": [],
"spread": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/api/select-group-label.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"name": "SelectGroupLabel",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectGroupLabel = Select.GroupLabel;"
"import { Select } from '@base_ui/react/Select';\nconst SelectGroupLabel = Select.GroupLabel;"
],
"classes": [],
"spread": true,
Expand Down
4 changes: 1 addition & 3 deletions docs/data/api/select-group.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"render": { "type": { "name": "union", "description": "element<br>&#124;&nbsp;func" } }
},
"name": "SelectGroup",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectGroup = Select.Group;"
],
"imports": ["import { Select } from '@base_ui/react/Select';\nconst SelectGroup = Select.Group;"],
"classes": [],
"spread": true,
"themeDefaultProps": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/api/select-icon.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"render": { "type": { "name": "union", "description": "element<br>&#124;&nbsp;func" } }
},
"name": "SelectIcon",
"imports": ["import * as Select from '@base_ui/react/Select';\nconst SelectIcon = Select.Icon;"],
"imports": ["import { Select } from '@base_ui/react/Select';\nconst SelectIcon = Select.Icon;"],
"classes": [],
"spread": true,
"themeDefaultProps": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/api/select-option-group-label.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"name": "SelectOptionGroupLabel",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectOptionGroupLabel = Select.OptionGroupLabel;"
"import { Select } from '@base_ui/react/Select';\nconst SelectOptionGroupLabel = Select.OptionGroupLabel;"
],
"classes": [],
"spread": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/api/select-option-group.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"name": "SelectOptionGroup",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectOptionGroup = Select.OptionGroup;"
"import { Select } from '@base_ui/react/Select';\nconst SelectOptionGroup = Select.OptionGroup;"
],
"classes": [],
"spread": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/api/select-option-indicator.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"name": "SelectOptionIndicator",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectOptionIndicator = Select.OptionIndicator;"
"import { Select } from '@base_ui/react/Select';\nconst SelectOptionIndicator = Select.OptionIndicator;"
],
"classes": [],
"spread": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/api/select-option-text.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"name": "SelectOptionText",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectOptionText = Select.OptionText;"
"import { Select } from '@base_ui/react/Select';\nconst SelectOptionText = Select.OptionText;"
],
"classes": [],
"spread": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/api/select-option.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"name": "SelectOption",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectOption = Select.Option;"
"import { Select } from '@base_ui/react/Select';\nconst SelectOption = Select.Option;"
],
"classes": [],
"spread": true,
Expand Down
4 changes: 1 addition & 3 deletions docs/data/api/select-popup.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"render": { "type": { "name": "union", "description": "element<br>&#124;&nbsp;func" } }
},
"name": "SelectPopup",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectPopup = Select.Popup;"
],
"imports": ["import { Select } from '@base_ui/react/Select';\nconst SelectPopup = Select.Popup;"],
"classes": [],
"spread": true,
"themeDefaultProps": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/api/select-positioner.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
},
"name": "SelectPositioner",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectPositioner = Select.Positioner;"
"import { Select } from '@base_ui/react/Select';\nconst SelectPositioner = Select.Positioner;"
],
"classes": [],
"spread": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/api/select-root.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"value": { "type": { "name": "any" } }
},
"name": "SelectRoot",
"imports": ["import * as Select from '@base_ui/react/Select';\nconst SelectRoot = Select.Root;"],
"imports": ["import { Select } from '@base_ui/react/Select';\nconst SelectRoot = Select.Root;"],
"classes": [],
"spread": true,
"themeDefaultProps": null,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/api/select-scroll-down-arrow.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"props": { "keepMounted": { "type": { "name": "bool" }, "default": "false" } },
"name": "SelectScrollDownArrow",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectScrollDownArrow = Select.ScrollDownArrow;"
"import { Select } from '@base_ui/react/Select';\nconst SelectScrollDownArrow = Select.ScrollDownArrow;"
],
"classes": [],
"spread": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/api/select-scroll-up-arrow.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"props": { "keepMounted": { "type": { "name": "bool" }, "default": "false" } },
"name": "SelectScrollUpArrow",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectScrollUpArrow = Select.ScrollUpArrow;"
"import { Select } from '@base_ui/react/Select';\nconst SelectScrollUpArrow = Select.ScrollUpArrow;"
],
"classes": [],
"spread": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/api/select-separator.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"name": "SelectSeparator",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectSeparator = Select.Separator;"
"import { Select } from '@base_ui/react/Select';\nconst SelectSeparator = Select.Separator;"
],
"classes": [],
"spread": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/api/select-trigger.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"name": "SelectTrigger",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectTrigger = Select.Trigger;"
"import { Select } from '@base_ui/react/Select';\nconst SelectTrigger = Select.Trigger;"
],
"classes": [],
"spread": true,
Expand Down
4 changes: 1 addition & 3 deletions docs/data/api/select-value.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"render": { "type": { "name": "union", "description": "element<br>&#124;&nbsp;func" } }
},
"name": "SelectValue",
"imports": [
"import * as Select from '@base_ui/react/Select';\nconst SelectValue = Select.Value;"
],
"imports": ["import { Select } from '@base_ui/react/Select';\nconst SelectValue = Select.Value;"],
"classes": [],
"spread": true,
"themeDefaultProps": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/data/components/select/SelectAlign.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { css, styled } from '@mui/system';

function AlignOptionToTriggerTrue() {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/components/select/SelectAlign.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { css, styled } from '@mui/system';

function AlignOptionToTriggerTrue() {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/components/select/SelectEmpty.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { css, styled } from '@mui/system';

export default function SelectEmpty() {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/components/select/SelectEmpty.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { css, styled } from '@mui/system';

export default function SelectEmpty() {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/components/select/SelectGroup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { css, styled } from '@mui/system';

function createOptions(items) {
Expand Down
2 changes: 1 addition & 1 deletion docs/data/components/select/SelectGroup.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { css, styled } from '@mui/system';

function createOptions(items: string[]) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { css, styled } from '@mui/system';

export default function SelectIntroduction() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { css, styled } from '@mui/system';

export default function SelectIntroduction() {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-base/src/Field/Root/FieldRoot.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { NumberField } from '@base_ui/react/NumberField';
import { Slider } from '@base_ui/react/Slider';
import { RadioGroup } from '@base_ui/react/RadioGroup';
import { Radio } from '@base_ui/react/Radio';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import userEvent from '@testing-library/user-event';
import { act, fireEvent, flushMicrotasks, screen, waitFor } from '@mui/internal-test-utils';
import { expect } from 'chai';
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-base/src/Select/Arrow/SelectArrow.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { createRenderer, describeConformance } from '#test-utils';

describe('<Select.Arrow />', () => {
Expand Down
1 change: 1 addition & 0 deletions packages/mui-base/src/Select/Arrow/SelectArrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { useForkRef } from '../../utils/useForkRef';
import { mergeReactProps } from '../../utils/mergeReactProps';
import type { BaseUIComponentProps } from '../../utils/types';
import { commonStyleHooks } from '../utils/commonStyleHooks';

/**
*
* Demos:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { createRenderer, describeConformance } from '#test-utils';

describe('<Select.Backdrop />', () => {
Expand Down
1 change: 1 addition & 0 deletions packages/mui-base/src/Select/Backdrop/SelectBackdrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { commonStyleHooks } from '../utils/commonStyleHooks';
import type { CustomStyleHookMapping } from '../../utils/getStyleHookProps';

const customStyleHookMapping: CustomStyleHookMapping<SelectBackdrop.OwnerState> = commonStyleHooks;

/**
*
* Demos:
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-base/src/Select/Group/SelectGroup.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { createRenderer, describeConformance } from '#test-utils';
import { screen } from '@mui/internal-test-utils';
import { expect } from 'chai';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { createRenderer, describeConformance } from '#test-utils';

describe('<Select.GroupLabel />', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-base/src/Select/Icon/SelectIcon.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { createRenderer, describeConformance } from '#test-utils';

describe('<Select.Icon />', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-base/src/Select/Option/SelectOption.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { fireEvent, flushMicrotasks, screen, waitFor } from '@mui/internal-test-utils';
import { createRenderer, describeConformance } from '#test-utils';
import { expect } from 'chai';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { createRenderer, describeConformance } from '#test-utils';
import { SelectOptionContext } from '../Option/SelectOptionContext';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { mergeReactProps } from '../../utils/mergeReactProps';

const customStyleHookMapping: CustomStyleHookMapping<SelectOptionIndicator.OwnerState> =
commonStyleHooks;

/**
*
* Demos:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { createRenderer, describeConformance } from '#test-utils';

describe('<Select.OptionText />', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-base/src/Select/Popup/SelectPopup.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { createRenderer, describeConformance } from '#test-utils';

describe('<Select.Popup />', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { createRenderer, describeConformance } from '#test-utils';

describe('<Select.Positioner />', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-base/src/Select/Root/SelectRoot.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { fireEvent, flushMicrotasks, screen } from '@mui/internal-test-utils';
import { createRenderer } from '#test-utils';
import { expect } from 'chai';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { createRenderer, describeConformance } from '#test-utils';

describe('<Select.ScrollUpArrow />', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { createRenderer, describeConformance } from '#test-utils';

describe('<Select.ScrollDownArrow />', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { createRenderer, describeConformance } from '#test-utils';

describe('<Select.Trigger />', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-base/src/Select/Value/SelectValue.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import * as Select from '@base_ui/react/Select';
import { Select } from '@base_ui/react/Select';
import { screen } from '@mui/internal-test-utils';
import { createRenderer, describeConformance } from '#test-utils';
import { expect } from 'chai';
Expand Down
16 changes: 0 additions & 16 deletions packages/mui-base/src/Select/index.barrel.ts

This file was deleted.

Loading

0 comments on commit cccd3b2

Please sign in to comment.