Skip to content

Commit 2a6c48e

Browse files
authored
Make all re-exports explicit (#3296)
1 parent d667676 commit 2a6c48e

File tree

126 files changed

+431
-415
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+431
-415
lines changed

packages/@internationalized/date/src/index.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,23 @@
1010
* governing permissions and limitations under the License.
1111
*/
1212

13+
export type {
14+
AnyCalendarDate,
15+
AnyTime,
16+
AnyDateTime,
17+
Calendar,
18+
DateDuration,
19+
TimeDuration,
20+
DateTimeDuration,
21+
DateFields,
22+
TimeFields,
23+
DateField,
24+
TimeField,
25+
Disambiguation,
26+
CycleOptions,
27+
CycleTimeOptions
28+
} from './types';
29+
1330
export {CalendarDate, CalendarDateTime, Time, ZonedDateTime} from './CalendarDate';
1431
export {GregorianCalendar} from './calendars/GregorianCalendar';
1532
export {JapaneseCalendar} from './calendars/JapaneseCalendar';
@@ -49,7 +66,6 @@ export {
4966
isWeekend,
5067
isWeekday
5168
} from './queries';
52-
export * from './types';
5369
export {
5470
parseDate,
5571
parseDateTime,

packages/@internationalized/message/src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
* governing permissions and limitations under the License.
1111
*/
1212

13-
export * from './MessageDictionary';
14-
export * from './MessageFormatter';
13+
export type {LocalizedStrings} from './MessageDictionary';
14+
export {MessageDictionary} from './MessageDictionary';
15+
export {MessageFormatter} from './MessageFormatter';

packages/@react-aria/accordion/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99
* OF ANY KIND, either express or implied. See the License for the specific language
1010
* governing permissions and limitations under the License.
1111
*/
12-
13-
export * from './useAccordion';
12+
export {useAccordionItem, useAccordion} from './useAccordion';

packages/@react-aria/actiongroup/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
* OF ANY KIND, either express or implied. See the License for the specific language
1010
* governing permissions and limitations under the License.
1111
*/
12-
13-
export * from './useActionGroup';
14-
export * from './useActionGroupItem';
12+
export type {ActionGroupAria} from './useActionGroup';
13+
export {useActionGroup} from './useActionGroup';
14+
export {useActionGroupItem} from './useActionGroupItem';

packages/@react-aria/autocomplete/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99
* OF ANY KIND, either express or implied. See the License for the specific language
1010
* governing permissions and limitations under the License.
1111
*/
12-
13-
export * from './useSearchAutocomplete';
12+
export {useSearchAutocomplete} from './useSearchAutocomplete';

packages/@react-aria/breadcrumbs/src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@
99
* OF ANY KIND, either express or implied. See the License for the specific language
1010
* governing permissions and limitations under the License.
1111
*/
12-
13-
export * from './useBreadcrumbItem';
14-
export * from './useBreadcrumbs';
12+
export {useBreadcrumbItem} from './useBreadcrumbItem';
13+
export {useBreadcrumbs} from './useBreadcrumbs';

packages/@react-aria/button/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
* OF ANY KIND, either express or implied. See the License for the specific language
1010
* governing permissions and limitations under the License.
1111
*/
12-
13-
export * from './useButton';
14-
export * from './useToggleButton';
12+
export type {ButtonAria} from './useButton';
13+
export {useButton} from './useButton';
14+
export {useToggleButton} from './useToggleButton';

packages/@react-aria/checkbox/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* OF ANY KIND, either express or implied. See the License for the specific language
1010
* governing permissions and limitations under the License.
1111
*/
12-
13-
export * from './useCheckbox';
14-
export * from './useCheckboxGroup';
15-
export * from './useCheckboxGroupItem';
12+
export type {CheckboxAria} from './useCheckbox';
13+
export {useCheckbox} from './useCheckbox';
14+
export {useCheckboxGroup} from './useCheckboxGroup';
15+
export {useCheckboxGroupItem} from './useCheckboxGroupItem';

packages/@react-aria/color/src/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
* OF ANY KIND, either express or implied. See the License for the specific language
1010
* governing permissions and limitations under the License.
1111
*/
12-
13-
export * from './useColorArea';
14-
export * from './useColorSlider';
15-
export * from './useColorWheel';
16-
export * from './useColorField';
12+
export {useColorArea} from './useColorArea';
13+
export {useColorSlider} from './useColorSlider';
14+
export {useColorWheel} from './useColorWheel';
15+
export {useColorField} from './useColorField';

packages/@react-aria/combobox/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99
* OF ANY KIND, either express or implied. See the License for the specific language
1010
* governing permissions and limitations under the License.
1111
*/
12-
13-
export * from './useComboBox';
12+
export {useComboBox} from './useComboBox';

0 commit comments

Comments
 (0)