@os-design/core 1.0.258 → 1.0.259

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.
Files changed (210) hide show
  1. package/dist/Avatar/index.d.ts +1 -1
  2. package/dist/Avatar/index.d.ts.map +1 -1
  3. package/dist/Avatar/index.js +3 -3
  4. package/dist/AvatarSkeleton/index.js +1 -1
  5. package/dist/Breadcrumb/index.js +1 -1
  6. package/dist/BreadcrumbItem/index.d.ts +1 -1
  7. package/dist/BreadcrumbItem/index.d.ts.map +1 -1
  8. package/dist/BreadcrumbItem/index.js +1 -1
  9. package/dist/Button/ButtonContent.d.ts +1 -1
  10. package/dist/Button/ButtonContent.d.ts.map +1 -1
  11. package/dist/Button/index.d.ts +1 -1
  12. package/dist/Button/index.d.ts.map +1 -1
  13. package/dist/Button/index.js +4 -2
  14. package/dist/ButtonLink/index.d.ts +3 -3
  15. package/dist/ButtonLink/index.d.ts.map +1 -1
  16. package/dist/ButtonLink/index.js +4 -4
  17. package/dist/CheckboxSkeleton/index.js +1 -1
  18. package/dist/DatePicker/DatePickerCalendar.js +1 -1
  19. package/dist/DatePicker/index.d.ts.map +1 -1
  20. package/dist/DatePicker/index.js +8 -12
  21. package/dist/Drawer/index.js +1 -1
  22. package/dist/Form/index.js +1 -1
  23. package/dist/FormItem/index.js +1 -1
  24. package/dist/Gallery/index.d.ts +1 -1
  25. package/dist/Gallery/index.d.ts.map +1 -1
  26. package/dist/Gallery/index.js +3 -3
  27. package/dist/GlobalStyles/index.js +2 -2
  28. package/dist/HeaderSkeleton/index.d.ts +1 -1
  29. package/dist/HeaderSkeleton/index.d.ts.map +1 -1
  30. package/dist/HeaderSkeleton/index.js +1 -1
  31. package/dist/ImageSkeleton/index.d.ts +1 -1
  32. package/dist/ImageSkeleton/index.d.ts.map +1 -1
  33. package/dist/ImageSkeleton/index.js +1 -1
  34. package/dist/Input/index.d.ts.map +1 -1
  35. package/dist/Input/index.js +1 -1
  36. package/dist/InputNumber/index.d.ts +2 -2
  37. package/dist/InputNumber/index.d.ts.map +1 -1
  38. package/dist/InputNumber/index.js +2 -2
  39. package/dist/InputPassword/index.d.ts +2 -2
  40. package/dist/InputPassword/index.d.ts.map +1 -1
  41. package/dist/InputPassword/index.js +8 -6
  42. package/dist/InputSearch/index.d.ts +2 -2
  43. package/dist/InputSearch/index.d.ts.map +1 -1
  44. package/dist/InputSearch/index.js +3 -3
  45. package/dist/InputSkeleton/index.d.ts +1 -1
  46. package/dist/InputSkeleton/index.d.ts.map +1 -1
  47. package/dist/InputSkeleton/index.js +1 -1
  48. package/dist/Layout/index.js +1 -1
  49. package/dist/Link/index.d.ts +2 -2
  50. package/dist/LinkButton/index.js +1 -1
  51. package/dist/List/WindowScroller.js +1 -1
  52. package/dist/List/index.d.ts +2 -2
  53. package/dist/List/index.d.ts.map +1 -1
  54. package/dist/List/index.js +5 -5
  55. package/dist/List/utils/bodyPointerEvents.d.ts.map +1 -1
  56. package/dist/List/utils/bodyPointerEvents.js +1 -1
  57. package/dist/ListItem/index.d.ts +1 -1
  58. package/dist/ListItem/index.d.ts.map +1 -1
  59. package/dist/ListItem/index.js +1 -1
  60. package/dist/ListItemActions/index.d.ts +1 -1
  61. package/dist/ListItemActions/index.d.ts.map +1 -1
  62. package/dist/ListItemActions/index.js +1 -1
  63. package/dist/ListItemLink/index.d.ts +2 -2
  64. package/dist/ListItemLink/index.d.ts.map +1 -1
  65. package/dist/ListItemLink/index.js +1 -1
  66. package/dist/ListItemSkeleton/index.d.ts +1 -1
  67. package/dist/ListItemSkeleton/index.d.ts.map +1 -1
  68. package/dist/ListItemSkeleton/index.js +2 -2
  69. package/dist/ListSkeleton/index.d.ts +2 -2
  70. package/dist/ListSkeleton/index.d.ts.map +1 -1
  71. package/dist/ListSkeleton/index.js +2 -2
  72. package/dist/LogoLink/index.d.ts +1 -1
  73. package/dist/LogoLink/index.d.ts.map +1 -1
  74. package/dist/Menu/index.d.ts +1 -1
  75. package/dist/Menu/index.d.ts.map +1 -1
  76. package/dist/Menu/index.js +3 -3
  77. package/dist/MenuGroup/index.js +1 -1
  78. package/dist/MenuItem/index.d.ts +1 -1
  79. package/dist/MenuItem/index.d.ts.map +1 -1
  80. package/dist/MenuItem/index.js +1 -1
  81. package/dist/Modal/index.d.ts +1 -1
  82. package/dist/Modal/index.d.ts.map +1 -1
  83. package/dist/Modal/index.js +2 -2
  84. package/dist/Navigation/index.js +1 -1
  85. package/dist/NavigationItem/index.d.ts +1 -1
  86. package/dist/NavigationItem/index.d.ts.map +1 -1
  87. package/dist/PageContent/index.js +1 -1
  88. package/dist/PageHeader/index.d.ts +1 -1
  89. package/dist/PageHeader/index.d.ts.map +1 -1
  90. package/dist/PageHeader/index.js +3 -3
  91. package/dist/PageHeaderInputSearch/index.d.ts +2 -2
  92. package/dist/PageHeaderInputSearch/index.d.ts.map +1 -1
  93. package/dist/PageHeaderInputSearch/index.js +6 -8
  94. package/dist/PageHeaderInputSearch/utils/defaultLocale.d.ts +1 -1
  95. package/dist/PageHeaderInputSearch/utils/defaultLocale.d.ts.map +1 -1
  96. package/dist/PageHeaderInputSearch/utils/defaultLocale.js +1 -1
  97. package/dist/PageHeaderSkeleton/index.d.ts +1 -1
  98. package/dist/PageHeaderSkeleton/index.d.ts.map +1 -1
  99. package/dist/PageHeaderSkeleton/index.js +3 -3
  100. package/dist/ParagraphSkeleton/index.d.ts +1 -1
  101. package/dist/ParagraphSkeleton/index.d.ts.map +1 -1
  102. package/dist/ParagraphSkeleton/index.js +1 -1
  103. package/dist/Popover/index.d.ts +1 -1
  104. package/dist/Popover/index.d.ts.map +1 -1
  105. package/dist/Popover/index.js +1 -1
  106. package/dist/RadioGroup/index.d.ts +1 -1
  107. package/dist/RadioGroup/index.d.ts.map +1 -1
  108. package/dist/RadioGroup/index.js +1 -1
  109. package/dist/RadioGroupSkeleton/index.d.ts +1 -1
  110. package/dist/RadioGroupSkeleton/index.d.ts.map +1 -1
  111. package/dist/RadioGroupSkeleton/index.js +1 -1
  112. package/dist/ScrollButton/index.d.ts +1 -1
  113. package/dist/ScrollButton/index.d.ts.map +1 -1
  114. package/dist/ScrollButton/index.js +3 -3
  115. package/dist/Select/index.d.ts +4 -4
  116. package/dist/Select/index.d.ts.map +1 -1
  117. package/dist/Select/index.js +8 -8
  118. package/dist/SwitchSkeleton/index.d.ts +1 -1
  119. package/dist/SwitchSkeleton/index.d.ts.map +1 -1
  120. package/dist/SwitchSkeleton/index.js +1 -1
  121. package/dist/TagLink/index.d.ts +2 -2
  122. package/dist/TagLink/index.d.ts.map +1 -1
  123. package/dist/TagLink/index.js +1 -1
  124. package/dist/TagList/index.js +1 -1
  125. package/dist/TagListSkeleton/index.d.ts +1 -1
  126. package/dist/TagListSkeleton/index.d.ts.map +1 -1
  127. package/dist/TagListSkeleton/index.js +2 -2
  128. package/dist/TagSkeleton/index.d.ts +1 -1
  129. package/dist/TagSkeleton/index.d.ts.map +1 -1
  130. package/dist/TagSkeleton/index.js +1 -1
  131. package/dist/TextArea/index.js +2 -2
  132. package/dist/TextAreaSkeleton/index.d.ts +2 -2
  133. package/dist/TextAreaSkeleton/index.d.ts.map +1 -1
  134. package/dist/TextAreaSkeleton/index.js +1 -1
  135. package/dist/ThemeSwitcher/index.d.ts +2 -2
  136. package/dist/ThemeSwitcher/index.d.ts.map +1 -1
  137. package/dist/ThemeSwitcher/index.js +1 -1
  138. package/dist/TimePicker/index.d.ts +1 -1
  139. package/dist/TimePicker/index.d.ts.map +1 -1
  140. package/dist/TimePicker/index.js +2 -2
  141. package/dist/index.d.ts +130 -130
  142. package/dist/index.d.ts.map +1 -1
  143. package/dist/index.js +130 -130
  144. package/dist/message/Message.js +1 -1
  145. package/dist/message/index.d.ts +1 -1
  146. package/dist/message/index.d.ts.map +1 -1
  147. package/dist/message/index.js +2 -2
  148. package/package.json +12 -13
  149. package/src/Avatar/index.tsx +3 -3
  150. package/src/AvatarSkeleton/index.tsx +1 -1
  151. package/src/Breadcrumb/index.tsx +1 -1
  152. package/src/BreadcrumbItem/index.tsx +1 -1
  153. package/src/Button/ButtonContent.tsx +1 -1
  154. package/src/Button/index.tsx +2 -2
  155. package/src/ButtonLink/index.tsx +4 -4
  156. package/src/CheckboxSkeleton/index.tsx +1 -1
  157. package/src/DatePicker/DatePickerCalendar.tsx +1 -1
  158. package/src/DatePicker/index.tsx +6 -8
  159. package/src/Drawer/index.tsx +2 -2
  160. package/src/Form/index.tsx +1 -1
  161. package/src/FormItem/index.tsx +1 -1
  162. package/src/Gallery/index.tsx +3 -3
  163. package/src/GlobalStyles/index.tsx +2 -2
  164. package/src/HeaderSkeleton/index.tsx +1 -1
  165. package/src/ImageSkeleton/index.tsx +1 -1
  166. package/src/Input/index.tsx +1 -1
  167. package/src/InputNumber/index.tsx +4 -2
  168. package/src/InputPassword/index.tsx +9 -6
  169. package/src/InputSearch/index.tsx +5 -3
  170. package/src/InputSkeleton/index.tsx +1 -1
  171. package/src/Layout/index.tsx +1 -1
  172. package/src/LinkButton/index.tsx +1 -1
  173. package/src/List/WindowScroller.tsx +1 -1
  174. package/src/List/index.tsx +5 -5
  175. package/src/List/utils/bodyPointerEvents.ts +5 -1
  176. package/src/ListItem/index.tsx +3 -1
  177. package/src/ListItemActions/index.tsx +1 -1
  178. package/src/ListItemLink/index.tsx +2 -2
  179. package/src/ListItemSkeleton/index.tsx +2 -2
  180. package/src/ListSkeleton/index.tsx +2 -2
  181. package/src/LogoLink/index.tsx +1 -1
  182. package/src/Menu/index.tsx +3 -3
  183. package/src/MenuGroup/index.tsx +1 -1
  184. package/src/MenuItem/index.tsx +1 -1
  185. package/src/Modal/index.tsx +3 -3
  186. package/src/Navigation/index.tsx +1 -1
  187. package/src/NavigationItem/index.tsx +1 -1
  188. package/src/PageContent/index.tsx +1 -1
  189. package/src/PageHeader/index.tsx +3 -3
  190. package/src/PageHeaderInputSearch/index.tsx +5 -6
  191. package/src/PageHeaderInputSearch/utils/defaultLocale.ts +1 -1
  192. package/src/PageHeaderSkeleton/index.tsx +3 -3
  193. package/src/ParagraphSkeleton/index.tsx +1 -1
  194. package/src/Popover/index.tsx +1 -1
  195. package/src/RadioGroup/index.tsx +1 -1
  196. package/src/RadioGroupSkeleton/index.tsx +1 -1
  197. package/src/ScrollButton/index.tsx +3 -3
  198. package/src/Select/index.tsx +9 -9
  199. package/src/SwitchSkeleton/index.tsx +1 -1
  200. package/src/TagLink/index.tsx +7 -2
  201. package/src/TagList/index.tsx +1 -1
  202. package/src/TagListSkeleton/index.tsx +2 -2
  203. package/src/TagSkeleton/index.tsx +1 -1
  204. package/src/TextArea/index.tsx +2 -2
  205. package/src/TextAreaSkeleton/index.tsx +3 -1
  206. package/src/ThemeSwitcher/index.tsx +1 -1
  207. package/src/TimePicker/index.tsx +2 -2
  208. package/src/index.ts +130 -130
  209. package/src/message/Message.tsx +1 -1
  210. package/src/message/index.tsx +3 -3
@@ -2,12 +2,14 @@ import styled from '@emotion/styled';
2
2
  import { Eye, EyeInvisible } from '@os-design/icons';
3
3
  import { ThemeOverrider, useTheme } from '@os-design/theming';
4
4
  import { useForwardedRef, useForwardedState } from '@os-design/utils';
5
- import getPasswordScore from '@os-team/password-score';
5
+ // import { getPasswordScore } from '@os-design/input-password-utils';
6
6
  import { forwardRef, useEffect, useMemo, useState } from 'react';
7
- import Button from '../Button';
8
- import Input, { type InputProps } from '../Input';
9
- import Progress from '../Progress';
10
- import defaultLocale, { type InputPasswordLocale } from './utils/defaultLocale';
7
+ import Button from '../Button/index.js';
8
+ import Input, { type InputProps } from '../Input/index.js';
9
+ import Progress from '../Progress/index.js';
10
+ import defaultLocale, {
11
+ type InputPasswordLocale,
12
+ } from './utils/defaultLocale.js';
11
13
 
12
14
  export interface InputPasswordProps extends Omit<InputProps, 'type'> {
13
15
  /**
@@ -95,7 +97,8 @@ const InputPassword = forwardRef<HTMLInputElement, InputPasswordProps>(
95
97
  }, [inputRef, selection, invisible]);
96
98
 
97
99
  const score = useMemo(
98
- () => getPasswordScore(forwardedValue || ''),
100
+ () => 1,
101
+ // () => getPasswordScore(forwardedValue || ''),
99
102
  [forwardedValue]
100
103
  );
101
104
 
@@ -4,9 +4,11 @@ import { CloseCircle, Search } from '@os-design/icons';
4
4
  import { ThemeOverrider } from '@os-design/theming';
5
5
  import { useForwardedRef, useForwardedState } from '@os-design/utils';
6
6
  import { forwardRef } from 'react';
7
- import Button from '../Button';
8
- import Input, { type InputProps } from '../Input';
9
- import defaultLocale, { type InputSearchLocale } from './utils/defaultLocale';
7
+ import Button from '../Button/index.js';
8
+ import Input, { type InputProps } from '../Input/index.js';
9
+ import defaultLocale, {
10
+ type InputSearchLocale,
11
+ } from './utils/defaultLocale.js';
10
12
 
11
13
  export interface InputSearchProps
12
14
  extends Omit<InputProps, 'type' | 'onChange'> {
@@ -2,7 +2,7 @@ import styled from '@emotion/styled';
2
2
  import { sizeStyles, type WithSize } from '@os-design/styles';
3
3
  import { omitEmotionProps } from '@os-design/utils';
4
4
  import { forwardRef } from 'react';
5
- import Skeleton, { type SkeletonProps } from '../Skeleton';
5
+ import Skeleton, { type SkeletonProps } from '../Skeleton/index.js';
6
6
 
7
7
  export type InputSkeletonProps = Omit<SkeletonProps, 'width'> & WithSize;
8
8
 
@@ -1,5 +1,5 @@
1
1
  import React, { useMemo } from 'react';
2
- import LayoutContext from './LayoutContext';
2
+ import LayoutContext from './LayoutContext.js';
3
3
 
4
4
  export interface LayoutProps {
5
5
  /**
@@ -12,7 +12,7 @@ import {
12
12
  DisabledWrapper,
13
13
  underlineAlwaysStyles,
14
14
  underlineHoverStyles,
15
- } from '../Link';
15
+ } from '../Link/index.js';
16
16
 
17
17
  type JsxButtonProps = Omit<JSX.IntrinsicElements['button'], 'ref'>;
18
18
 
@@ -3,7 +3,7 @@ import React, { useCallback, useEffect, useRef } from 'react';
3
3
  import {
4
4
  disableBodyPointerEvents,
5
5
  enableBodyPointerEventsAfterDelay,
6
- } from './utils/bodyPointerEvents';
6
+ } from './utils/bodyPointerEvents.js';
7
7
 
8
8
  export interface ScrollPosition {
9
9
  top: number;
@@ -18,9 +18,9 @@ import {
18
18
  type ListChildComponentProps,
19
19
  type ListProps as RWListProps,
20
20
  } from 'react-window';
21
- import LayoutContext from '../Layout/LayoutContext';
22
- import WindowScroller, { type ScrollPosition } from './WindowScroller';
23
- import useRWLoadNext from './utils/useRWLoadNext';
21
+ import LayoutContext from '../Layout/LayoutContext.js';
22
+ import WindowScroller, { type ScrollPosition } from './WindowScroller.js';
23
+ import useRWLoadNext from './utils/useRWLoadNext.js';
24
24
 
25
25
  export interface ListProps extends Partial<RWListProps> {
26
26
  /**
@@ -245,7 +245,7 @@ const List = forwardRef<FixedSizeList, ListProps>(
245
245
 
246
246
  List.displayName = 'List';
247
247
 
248
- export { default as WindowScroller } from './WindowScroller';
249
- export { default as useRWLoadNext } from './utils/useRWLoadNext';
248
+ export { default as WindowScroller } from './WindowScroller.js';
249
+ export { default as useRWLoadNext } from './utils/useRWLoadNext.js';
250
250
 
251
251
  export default List;
@@ -1,4 +1,8 @@
1
- import { clearFrameTimeout, type Frame, setFrameTimeout } from './frameTimeout';
1
+ import {
2
+ clearFrameTimeout,
3
+ type Frame,
4
+ setFrameTimeout,
5
+ } from './frameTimeout.js';
2
6
 
3
7
  let originalBodyPointerEvents: string | null = null;
4
8
  let timeoutId: Frame | null = null;
@@ -2,7 +2,9 @@ import styled from '@emotion/styled';
2
2
  import { ellipsisStyles, horizontalPaddingStyles } from '@os-design/styles';
3
3
  import { clr } from '@os-design/theming';
4
4
  import React, { forwardRef } from 'react';
5
- import ListItemActions, { type ListItemActionsProps } from '../ListItemActions';
5
+ import ListItemActions, {
6
+ type ListItemActionsProps,
7
+ } from '../ListItemActions/index.js';
6
8
 
7
9
  export interface ListItemProps extends ListItemActionsProps {
8
10
  /**
@@ -15,7 +15,7 @@ import React, {
15
15
  useMemo,
16
16
  useState,
17
17
  } from 'react';
18
- import Button, { type ButtonProps } from '../Button';
18
+ import Button, { type ButtonProps } from '../Button/index.js';
19
19
 
20
20
  export interface ListItemAction extends Omit<ButtonProps, 'type' | 'wide'> {
21
21
  icon: React.ReactElement;
@@ -2,8 +2,8 @@ import styled from '@emotion/styled';
2
2
  import { resetFocusStyles } from '@os-design/styles';
3
3
  import { clr, type Color } from '@os-design/theming';
4
4
  import { forwardRef } from 'react';
5
- import type { LinkProps, ReactRouterLinkProps } from '../Link';
6
- import ListItem, { type ListItemProps } from '../ListItem';
5
+ import type { LinkProps, ReactRouterLinkProps } from '../Link/index.js';
6
+ import ListItem, { type ListItemProps } from '../ListItem/index.js';
7
7
 
8
8
  type JsxAProps = Omit<JSX.IntrinsicElements['a'], 'ref'>;
9
9
  export type ListItemLinkProps = JsxAProps &
@@ -1,7 +1,7 @@
1
1
  import styled from '@emotion/styled';
2
2
  import { forwardRef } from 'react';
3
- import ListItem, { type ListItemProps } from '../ListItem';
4
- import Skeleton from '../Skeleton';
3
+ import ListItem, { type ListItemProps } from '../ListItem/index.js';
4
+ import Skeleton from '../Skeleton/index.js';
5
5
 
6
6
  export interface ListItemSkeletonProps
7
7
  extends Omit<ListItemProps, 'title' | 'description' | 'actions'> {
@@ -1,9 +1,9 @@
1
1
  import { forwardRef, useCallback } from 'react';
2
2
  import { FixedSizeList } from 'react-window';
3
- import List, { type ListProps } from '../List';
3
+ import List, { type ListProps } from '../List/index.js';
4
4
  import ListItemSkeleton, {
5
5
  type ListItemSkeletonProps,
6
- } from '../ListItemSkeleton';
6
+ } from '../ListItemSkeleton/index.js';
7
7
 
8
8
  export interface ListSkeletonProps
9
9
  extends Omit<ListProps, 'itemCount' | 'itemRenderer' | 'children'>,
@@ -9,7 +9,7 @@ import {
9
9
  import { useTheme } from '@os-design/theming';
10
10
  import { omitEmotionProps } from '@os-design/utils';
11
11
  import { forwardRef } from 'react';
12
- import type { LinkProps, ReactRouterLinkProps } from '../Link';
12
+ import type { LinkProps, ReactRouterLinkProps } from '../Link/index.js';
13
13
 
14
14
  type JsxAProps = Omit<JSX.IntrinsicElements['a'], 'ref'>;
15
15
  export interface LogoLinkProps
@@ -8,9 +8,9 @@ import {
8
8
  useKeyPress,
9
9
  } from '@os-design/utils';
10
10
  import { forwardRef, type RefObject, useMemo } from 'react';
11
- import Modal from '../Modal';
12
- import Popover, { type PopoverProps } from '../Popover';
13
- import useFocusWithArrows from './utils/useFocusWithArrows';
11
+ import Modal from '../Modal/index.js';
12
+ import Popover, { type PopoverProps } from '../Popover/index.js';
13
+ import useFocusWithArrows from './utils/useFocusWithArrows.js';
14
14
 
15
15
  export interface MenuProps extends PopoverProps {
16
16
  /**
@@ -5,7 +5,7 @@ import { ellipsisStyles } from '@os-design/styles';
5
5
  import { clr } from '@os-design/theming';
6
6
  import { useForwardedState } from '@os-design/utils';
7
7
  import React, { forwardRef, useCallback, useContext, useMemo } from 'react';
8
- import MenuItem from '../MenuItem';
8
+ import MenuItem from '../MenuItem/index.js';
9
9
 
10
10
  type JsxDivProps = Omit<
11
11
  JSX.IntrinsicElements['div'],
@@ -6,7 +6,7 @@ import { MenuContext } from '@os-design/menu-utils';
6
6
  import { ThemeOverrider, clr } from '@os-design/theming';
7
7
  import { omitEmotionProps } from '@os-design/utils';
8
8
  import { forwardRef, useCallback, useContext, useEffect, useRef } from 'react';
9
- import Button, { type ButtonProps } from '../Button';
9
+ import Button, { type ButtonProps } from '../Button/index.js';
10
10
 
11
11
  export interface MenuItemProps
12
12
  extends Omit<ButtonProps, 'type' | 'wide' | 'size'> {
@@ -21,8 +21,8 @@ import React, {
21
21
  useRef,
22
22
  } from 'react';
23
23
  import FocusLock from 'react-focus-lock';
24
- import Button from '../Button';
25
- import defaultLocale, { type ModalLocale } from './utils/defaultLocale';
24
+ import Button from '../Button/index.js';
25
+ import defaultLocale, { type ModalLocale } from './utils/defaultLocale.js';
26
26
 
27
27
  type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
28
28
  export interface ModalProps extends JsxDivProps, WithSize {
@@ -351,7 +351,7 @@ const Modal = forwardRef<HTMLDivElement, ModalProps>(
351
351
  <Portal>
352
352
  <ModalMask visible={visible} />
353
353
  <Container onClick={containerClickHandler}>
354
- {/* eslint-disable-next-line jsx-a11y/no-autofocus */}
354
+ {/* @ts-expect-error FocusLock has problems with types */}
355
355
  <FocusLock autoFocus={false}>
356
356
  <CloseModalContext.Provider value={onClose}>
357
357
  <Content
@@ -5,7 +5,7 @@ import { enableScrollingStyles } from '@os-design/styles';
5
5
  import { clr } from '@os-design/theming';
6
6
  import { omitEmotionProps } from '@os-design/utils';
7
7
  import React, { forwardRef, useRef } from 'react';
8
- import useScrollFlags from './utils/useScrollFlags';
8
+ import useScrollFlags from './utils/useScrollFlags.js';
9
9
 
10
10
  type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
11
11
  export interface NavigationProps extends JsxDivProps {
@@ -5,7 +5,7 @@ import { resetFocusStyles, transitionStyles } from '@os-design/styles';
5
5
  import { clr } from '@os-design/theming';
6
6
  import { omitEmotionProps } from '@os-design/utils';
7
7
  import React, { forwardRef } from 'react';
8
- import type { LinkProps, ReactRouterLinkProps } from '../Link';
8
+ import type { LinkProps, ReactRouterLinkProps } from '../Link/index.js';
9
9
 
10
10
  type JsxAProps = Omit<JSX.IntrinsicElements['a'], 'ref'>;
11
11
  export interface NavigationItemProps
@@ -4,7 +4,7 @@ import { m } from '@os-design/media';
4
4
  import { horizontalPaddingStyles } from '@os-design/styles';
5
5
  import { omitEmotionProps } from '@os-design/utils';
6
6
  import { forwardRef, useContext } from 'react';
7
- import LayoutContext from '../Layout/LayoutContext';
7
+ import LayoutContext from '../Layout/LayoutContext.js';
8
8
 
9
9
  type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
10
10
  export interface PageContentProps extends JsxDivProps {
@@ -6,9 +6,9 @@ import { ellipsisStyles } from '@os-design/styles';
6
6
  import { ThemeOverrider, clr } from '@os-design/theming';
7
7
  import { omitEmotionProps } from '@os-design/utils';
8
8
  import React, { forwardRef, useContext } from 'react';
9
- import Button from '../Button';
10
- import LayoutContext from '../Layout/LayoutContext';
11
- import defaultLocale, { type PageHeaderLocale } from './utils/defaultLocale';
9
+ import Button from '../Button/index.js';
10
+ import LayoutContext from '../Layout/LayoutContext.js';
11
+ import defaultLocale, { type PageHeaderLocale } from './utils/defaultLocale.js';
12
12
 
13
13
  type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
14
14
  export interface PageHeaderProps extends JsxDivProps {
@@ -4,13 +4,13 @@ import { Close, Search } from '@os-design/icons';
4
4
  import { ThemeOverrider, useTheme } from '@os-design/theming';
5
5
  import { omitEmotionProps, useClosable } from '@os-design/utils';
6
6
  import { forwardRef, useContext, useState } from 'react';
7
- import Button from '../Button';
8
- import InputSearch, { type InputSearchProps } from '../InputSearch';
9
- import LayoutContext from '../Layout/LayoutContext';
10
- import { PageHeaderContainer } from '../PageHeader';
7
+ import Button from '../Button/index.js';
8
+ import InputSearch, { type InputSearchProps } from '../InputSearch/index.js';
9
+ import LayoutContext from '../Layout/LayoutContext.js';
10
+ import { PageHeaderContainer } from '../PageHeader/index.js';
11
11
  import defaultLocale, {
12
12
  type PageHeaderInputSearchLocale,
13
- } from './utils/defaultLocale';
13
+ } from './utils/defaultLocale.js';
14
14
 
15
15
  export interface PageHeaderInputSearchProps
16
16
  extends Omit<InputSearchProps, 'size' | 'locale'> {
@@ -115,7 +115,6 @@ const PageHeaderInputSearch = forwardRef<
115
115
  hasNavigationIndent={hasNavigation}
116
116
  >
117
117
  <InputSearch
118
- // eslint-disable-next-line jsx-a11y/no-autofocus
119
118
  autoFocus
120
119
  locale={locale}
121
120
  loading={loading}
@@ -1,6 +1,6 @@
1
1
  import inputSearchDefaultLocale, {
2
2
  type InputSearchLocale,
3
- } from '../../InputSearch/utils/defaultLocale';
3
+ } from '../../InputSearch/utils/defaultLocale.js';
4
4
 
5
5
  export interface PageHeaderInputSearchLocale extends InputSearchLocale {
6
6
  searchLabel: string;
@@ -1,8 +1,8 @@
1
1
  import type { WithSize } from '@os-design/styles';
2
2
  import { forwardRef, useContext } from 'react';
3
- import LayoutContext from '../Layout/LayoutContext';
4
- import { PageHeaderContainer } from '../PageHeader';
5
- import Skeleton, { type SkeletonProps } from '../Skeleton';
3
+ import LayoutContext from '../Layout/LayoutContext.js';
4
+ import { PageHeaderContainer } from '../PageHeader/index.js';
5
+ import Skeleton, { type SkeletonProps } from '../Skeleton/index.js';
6
6
 
7
7
  export type PageHeaderSkeletonProps = SkeletonProps & WithSize;
8
8
 
@@ -2,7 +2,7 @@ import { css } from '@emotion/react';
2
2
  import styled from '@emotion/styled';
3
3
  import { omitEmotionProps } from '@os-design/utils';
4
4
  import { forwardRef } from 'react';
5
- import Skeleton, { type SkeletonProps } from '../Skeleton';
5
+ import Skeleton, { type SkeletonProps } from '../Skeleton/index.js';
6
6
 
7
7
  export interface ParagraphSkeletonProps extends SkeletonProps {
8
8
  /**
@@ -24,7 +24,7 @@ import {
24
24
  import usePopoverPosition, {
25
25
  type Placement,
26
26
  type Rect,
27
- } from './utils/usePopoverPosition';
27
+ } from './utils/usePopoverPosition.js';
28
28
 
29
29
  type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
30
30
  export interface PopoverProps extends JsxDivProps, WithSize {
@@ -5,7 +5,7 @@ import type { WithSize } from '@os-design/styles';
5
5
  import { clr } from '@os-design/theming';
6
6
  import { omitEmotionProps, useForwardedState } from '@os-design/utils';
7
7
  import { forwardRef } from 'react';
8
- import Button, { type ButtonProps } from '../Button';
8
+ import Button, { type ButtonProps } from '../Button/index.js';
9
9
 
10
10
  export interface RadioGroupOption
11
11
  extends Omit<ButtonProps, 'type' | 'wide' | 'size'> {
@@ -2,7 +2,7 @@ import styled from '@emotion/styled';
2
2
  import { sizeStyles, type WithSize } from '@os-design/styles';
3
3
  import { omitEmotionProps } from '@os-design/utils';
4
4
  import { forwardRef } from 'react';
5
- import Skeleton, { type SkeletonProps } from '../Skeleton';
5
+ import Skeleton, { type SkeletonProps } from '../Skeleton/index.js';
6
6
 
7
7
  export interface RadioGroupSkeletonProps extends SkeletonProps, WithSize {
8
8
  /**
@@ -10,11 +10,11 @@ import {
10
10
  type RefObject,
11
11
  useCallback,
12
12
  } from 'react';
13
- import Button, { type ButtonProps } from '../Button';
13
+ import Button, { type ButtonProps } from '../Button/index.js';
14
14
  import useContainerPosition, {
15
15
  type ContainerPosition,
16
- } from './utils/useContainerPosition';
17
- import useVisibility from './utils/useVisibility';
16
+ } from './utils/useContainerPosition.js';
17
+ import useVisibility from './utils/useVisibility.js';
18
18
 
19
19
  export interface ScrollButtonProps extends Omit<ButtonProps, 'type' | 'wide'> {
20
20
  /**
@@ -28,15 +28,15 @@ import React, {
28
28
  useState,
29
29
  } from 'react';
30
30
  import { FixedSizeList } from 'react-window';
31
- import Button from '../Button';
32
- import { InputContainer } from '../Input';
33
- import InputSearch, { type InputSearchProps } from '../InputSearch';
34
- import useRWLoadNext from '../List/utils/useRWLoadNext';
35
- import Menu from '../Menu';
36
- import MenuItem, { type MenuItemProps } from '../MenuItem';
37
- import type { PopoverProps } from '../Popover';
38
- import Tag from '../Tag';
39
- import defaultLocale, { type SelectLocale } from './utils/defaultLocale';
31
+ import Button from '../Button/index.js';
32
+ import { InputContainer } from '../Input/index.js';
33
+ import InputSearch, { type InputSearchProps } from '../InputSearch/index.js';
34
+ import useRWLoadNext from '../List/utils/useRWLoadNext.js';
35
+ import Menu from '../Menu/index.js';
36
+ import MenuItem, { type MenuItemProps } from '../MenuItem/index.js';
37
+ import type { PopoverProps } from '../Popover/index.js';
38
+ import Tag from '../Tag/index.js';
39
+ import defaultLocale, { type SelectLocale } from './utils/defaultLocale.js';
40
40
 
41
41
  export interface Option extends MenuItemProps {
42
42
  value: string;
@@ -2,7 +2,7 @@ import styled from '@emotion/styled';
2
2
  import { sizeStyles, type WithSize } from '@os-design/styles';
3
3
  import { omitEmotionProps } from '@os-design/utils';
4
4
  import { forwardRef } from 'react';
5
- import Skeleton, { type SkeletonProps } from '../Skeleton';
5
+ import Skeleton, { type SkeletonProps } from '../Skeleton/index.js';
6
6
 
7
7
  export type SwitchSkeletonProps = Omit<SkeletonProps, 'width'> & WithSize;
8
8
 
@@ -2,8 +2,13 @@ import styled from '@emotion/styled';
2
2
  import { clr } from '@os-design/theming';
3
3
  import { omitEmotionProps } from '@os-design/utils';
4
4
  import { forwardRef } from 'react';
5
- import type { LinkProps, ReactRouterLinkProps } from '../Link';
6
- import { type BaseTagProps, LeftAddon, RightAddon, TagContainer } from '../Tag';
5
+ import type { LinkProps, ReactRouterLinkProps } from '../Link/index.js';
6
+ import {
7
+ type BaseTagProps,
8
+ LeftAddon,
9
+ RightAddon,
10
+ TagContainer,
11
+ } from '../Tag/index.js';
7
12
 
8
13
  type JsxAProps = Omit<JSX.IntrinsicElements['a'], 'ref'>;
9
14
  export type TagLinkProps = JsxAProps &
@@ -4,7 +4,7 @@ import { Down, Up } from '@os-design/icons';
4
4
  import { type WithSize, sizeStyles } from '@os-design/styles';
5
5
  import { omitEmotionProps } from '@os-design/utils';
6
6
  import { forwardRef, useState } from 'react';
7
- import Button from '../Button';
7
+ import Button from '../Button/index.js';
8
8
 
9
9
  type JsxDivProps = Omit<JSX.IntrinsicElements['div'], 'ref'>;
10
10
  export interface TagListProps extends JsxDivProps, WithSize {
@@ -1,6 +1,6 @@
1
1
  import { forwardRef } from 'react';
2
- import TagList, { type TagListProps } from '../TagList';
3
- import TagSkeleton from '../TagSkeleton';
2
+ import TagList, { type TagListProps } from '../TagList/index.js';
3
+ import TagSkeleton from '../TagSkeleton/index.js';
4
4
 
5
5
  export interface TagListSkeletonProps extends TagListProps {
6
6
  /**
@@ -2,7 +2,7 @@ import styled from '@emotion/styled';
2
2
  import { sizeStyles, type WithSize } from '@os-design/styles';
3
3
  import { omitEmotionProps } from '@os-design/utils';
4
4
  import { forwardRef } from 'react';
5
- import Skeleton, { type SkeletonProps } from '../Skeleton';
5
+ import Skeleton, { type SkeletonProps } from '../Skeleton/index.js';
6
6
 
7
7
  export interface TagSkeletonProps
8
8
  extends Omit<SkeletonProps, 'width'>,
@@ -13,8 +13,8 @@ import React, {
13
13
  useCallback,
14
14
  useMemo,
15
15
  } from 'react';
16
- import { InputContainer, StyledInput } from '../Input';
17
- import getFocusableElements from '../Input/utils/getFocusableElements';
16
+ import { InputContainer, StyledInput } from '../Input/index.js';
17
+ import getFocusableElements from '../Input/utils/getFocusableElements.js';
18
18
 
19
19
  type JsxTextAreaProps = Omit<
20
20
  JSX.IntrinsicElements['textarea'],
@@ -1,6 +1,8 @@
1
1
  import styled from '@emotion/styled';
2
2
  import { forwardRef } from 'react';
3
- import InputSkeleton, { type InputSkeletonProps } from '../InputSkeleton';
3
+ import InputSkeleton, {
4
+ type InputSkeletonProps,
5
+ } from '../InputSkeleton/index.js';
4
6
 
5
7
  export type TextAreaSkeletonProps = InputSkeletonProps;
6
8
 
@@ -1,7 +1,7 @@
1
1
  import { Moon, Sun } from '@os-design/icons';
2
2
  import { useTheme } from '@os-design/theming';
3
3
  import { forwardRef } from 'react';
4
- import Button, { type ButtonProps } from '../Button';
4
+ import Button, { type ButtonProps } from '../Button/index.js';
5
5
 
6
6
  export type ThemeSwitcherProps = ButtonProps;
7
7
 
@@ -1,8 +1,8 @@
1
1
  import { useTime } from '@os-design/time-picker-utils';
2
2
  import { useForwardedRef, useForwardedState } from '@os-design/utils';
3
3
  import { forwardRef, useCallback, useEffect, useMemo, useState } from 'react';
4
- import Button from '../Button';
5
- import Input, { type InputProps } from '../Input';
4
+ import Button from '../Button/index.js';
5
+ import Input, { type InputProps } from '../Input/index.js';
6
6
 
7
7
  export interface TimePickerProps
8
8
  extends Omit<InputProps, 'type' | 'value' | 'defaultValue' | 'onChange'> {