@os-design/core 1.0.258 → 1.0.260
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/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.d.ts.map +1 -1
- package/dist/Avatar/index.js +3 -3
- package/dist/AvatarSkeleton/index.js +1 -1
- package/dist/Breadcrumb/index.js +1 -1
- package/dist/BreadcrumbItem/index.d.ts +1 -1
- package/dist/BreadcrumbItem/index.d.ts.map +1 -1
- package/dist/BreadcrumbItem/index.js +1 -1
- package/dist/Button/ButtonContent.d.ts +1 -1
- package/dist/Button/ButtonContent.d.ts.map +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.d.ts.map +1 -1
- package/dist/Button/index.js +4 -2
- package/dist/ButtonLink/index.d.ts +3 -3
- package/dist/ButtonLink/index.d.ts.map +1 -1
- package/dist/ButtonLink/index.js +4 -4
- package/dist/CheckboxSkeleton/index.js +1 -1
- package/dist/DatePicker/DatePickerCalendar.js +1 -1
- package/dist/DatePicker/index.d.ts.map +1 -1
- package/dist/DatePicker/index.js +8 -12
- package/dist/Drawer/index.js +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/FormItem/index.js +1 -1
- package/dist/Gallery/index.d.ts +1 -1
- package/dist/Gallery/index.d.ts.map +1 -1
- package/dist/Gallery/index.js +3 -3
- package/dist/GlobalStyles/index.js +2 -2
- package/dist/HeaderSkeleton/index.d.ts +1 -1
- package/dist/HeaderSkeleton/index.d.ts.map +1 -1
- package/dist/HeaderSkeleton/index.js +1 -1
- package/dist/ImageSkeleton/index.d.ts +1 -1
- package/dist/ImageSkeleton/index.d.ts.map +1 -1
- package/dist/ImageSkeleton/index.js +1 -1
- package/dist/Input/index.d.ts.map +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/InputNumber/index.d.ts +2 -2
- package/dist/InputNumber/index.d.ts.map +1 -1
- package/dist/InputNumber/index.js +2 -2
- package/dist/InputPassword/index.d.ts +2 -2
- package/dist/InputPassword/index.d.ts.map +1 -1
- package/dist/InputPassword/index.js +5 -5
- package/dist/InputSearch/index.d.ts +2 -2
- package/dist/InputSearch/index.d.ts.map +1 -1
- package/dist/InputSearch/index.js +3 -3
- package/dist/InputSkeleton/index.d.ts +1 -1
- package/dist/InputSkeleton/index.d.ts.map +1 -1
- package/dist/InputSkeleton/index.js +1 -1
- package/dist/Layout/index.js +1 -1
- package/dist/Link/index.d.ts +2 -2
- package/dist/LinkButton/index.js +1 -1
- package/dist/List/WindowScroller.js +1 -1
- package/dist/List/index.d.ts +2 -2
- package/dist/List/index.d.ts.map +1 -1
- package/dist/List/index.js +5 -5
- package/dist/List/utils/bodyPointerEvents.d.ts.map +1 -1
- package/dist/List/utils/bodyPointerEvents.js +1 -1
- package/dist/ListItem/index.d.ts +1 -1
- package/dist/ListItem/index.d.ts.map +1 -1
- package/dist/ListItem/index.js +1 -1
- package/dist/ListItemActions/index.d.ts +1 -1
- package/dist/ListItemActions/index.d.ts.map +1 -1
- package/dist/ListItemActions/index.js +1 -1
- package/dist/ListItemLink/index.d.ts +2 -2
- package/dist/ListItemLink/index.d.ts.map +1 -1
- package/dist/ListItemLink/index.js +1 -1
- package/dist/ListItemSkeleton/index.d.ts +1 -1
- package/dist/ListItemSkeleton/index.d.ts.map +1 -1
- package/dist/ListItemSkeleton/index.js +2 -2
- package/dist/ListSkeleton/index.d.ts +2 -2
- package/dist/ListSkeleton/index.d.ts.map +1 -1
- package/dist/ListSkeleton/index.js +2 -2
- package/dist/LogoLink/index.d.ts +1 -1
- package/dist/LogoLink/index.d.ts.map +1 -1
- package/dist/Menu/index.d.ts +1 -1
- package/dist/Menu/index.d.ts.map +1 -1
- package/dist/Menu/index.js +3 -3
- package/dist/MenuGroup/index.js +1 -1
- package/dist/MenuItem/index.d.ts +1 -1
- package/dist/MenuItem/index.d.ts.map +1 -1
- package/dist/MenuItem/index.js +1 -1
- package/dist/Modal/index.d.ts +1 -1
- package/dist/Modal/index.d.ts.map +1 -1
- package/dist/Modal/index.js +2 -2
- package/dist/Navigation/index.js +1 -1
- package/dist/NavigationItem/index.d.ts +1 -1
- package/dist/NavigationItem/index.d.ts.map +1 -1
- package/dist/PageContent/index.js +1 -1
- package/dist/PageHeader/index.d.ts +1 -1
- package/dist/PageHeader/index.d.ts.map +1 -1
- package/dist/PageHeader/index.js +3 -3
- package/dist/PageHeaderInputSearch/index.d.ts +2 -2
- package/dist/PageHeaderInputSearch/index.d.ts.map +1 -1
- package/dist/PageHeaderInputSearch/index.js +6 -8
- package/dist/PageHeaderInputSearch/utils/defaultLocale.d.ts +1 -1
- package/dist/PageHeaderInputSearch/utils/defaultLocale.d.ts.map +1 -1
- package/dist/PageHeaderInputSearch/utils/defaultLocale.js +1 -1
- package/dist/PageHeaderSkeleton/index.d.ts +1 -1
- package/dist/PageHeaderSkeleton/index.d.ts.map +1 -1
- package/dist/PageHeaderSkeleton/index.js +3 -3
- package/dist/ParagraphSkeleton/index.d.ts +1 -1
- package/dist/ParagraphSkeleton/index.d.ts.map +1 -1
- package/dist/ParagraphSkeleton/index.js +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.d.ts.map +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/RadioGroup/index.d.ts +1 -1
- package/dist/RadioGroup/index.d.ts.map +1 -1
- package/dist/RadioGroup/index.js +1 -1
- package/dist/RadioGroupSkeleton/index.d.ts +1 -1
- package/dist/RadioGroupSkeleton/index.d.ts.map +1 -1
- package/dist/RadioGroupSkeleton/index.js +1 -1
- package/dist/ScrollButton/index.d.ts +1 -1
- package/dist/ScrollButton/index.d.ts.map +1 -1
- package/dist/ScrollButton/index.js +3 -3
- package/dist/Select/index.d.ts +4 -4
- package/dist/Select/index.d.ts.map +1 -1
- package/dist/Select/index.js +8 -8
- package/dist/SwitchSkeleton/index.d.ts +1 -1
- package/dist/SwitchSkeleton/index.d.ts.map +1 -1
- package/dist/SwitchSkeleton/index.js +1 -1
- package/dist/TagLink/index.d.ts +2 -2
- package/dist/TagLink/index.d.ts.map +1 -1
- package/dist/TagLink/index.js +1 -1
- package/dist/TagList/index.js +1 -1
- package/dist/TagListSkeleton/index.d.ts +1 -1
- package/dist/TagListSkeleton/index.d.ts.map +1 -1
- package/dist/TagListSkeleton/index.js +2 -2
- package/dist/TagSkeleton/index.d.ts +1 -1
- package/dist/TagSkeleton/index.d.ts.map +1 -1
- package/dist/TagSkeleton/index.js +1 -1
- package/dist/TextArea/index.js +2 -2
- package/dist/TextAreaSkeleton/index.d.ts +2 -2
- package/dist/TextAreaSkeleton/index.d.ts.map +1 -1
- package/dist/TextAreaSkeleton/index.js +1 -1
- package/dist/ThemeSwitcher/index.d.ts +2 -2
- package/dist/ThemeSwitcher/index.d.ts.map +1 -1
- package/dist/ThemeSwitcher/index.js +1 -1
- package/dist/TimePicker/index.d.ts +1 -1
- package/dist/TimePicker/index.d.ts.map +1 -1
- package/dist/TimePicker/index.js +2 -2
- package/dist/index.d.ts +130 -130
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +130 -130
- package/dist/message/Message.js +1 -1
- package/dist/message/index.d.ts +1 -1
- package/dist/message/index.d.ts.map +1 -1
- package/dist/message/index.js +2 -2
- package/package.json +13 -13
- package/src/Avatar/index.tsx +3 -3
- package/src/AvatarSkeleton/index.tsx +1 -1
- package/src/Breadcrumb/index.tsx +1 -1
- package/src/BreadcrumbItem/index.tsx +1 -1
- package/src/Button/ButtonContent.tsx +1 -1
- package/src/Button/index.tsx +2 -2
- package/src/ButtonLink/index.tsx +4 -4
- package/src/CheckboxSkeleton/index.tsx +1 -1
- package/src/DatePicker/DatePickerCalendar.tsx +1 -1
- package/src/DatePicker/index.tsx +6 -8
- package/src/Drawer/index.tsx +2 -2
- package/src/Form/index.tsx +1 -1
- package/src/FormItem/index.tsx +1 -1
- package/src/Gallery/index.tsx +3 -3
- package/src/GlobalStyles/index.tsx +2 -2
- package/src/HeaderSkeleton/index.tsx +1 -1
- package/src/ImageSkeleton/index.tsx +1 -1
- package/src/Input/index.tsx +1 -1
- package/src/InputNumber/index.tsx +4 -2
- package/src/InputPassword/index.tsx +7 -5
- package/src/InputSearch/index.tsx +5 -3
- package/src/InputSkeleton/index.tsx +1 -1
- package/src/Layout/index.tsx +1 -1
- package/src/LinkButton/index.tsx +1 -1
- package/src/List/WindowScroller.tsx +1 -1
- package/src/List/index.tsx +5 -5
- package/src/List/utils/bodyPointerEvents.ts +5 -1
- package/src/ListItem/index.tsx +3 -1
- package/src/ListItemActions/index.tsx +1 -1
- package/src/ListItemLink/index.tsx +2 -2
- package/src/ListItemSkeleton/index.tsx +2 -2
- package/src/ListSkeleton/index.tsx +2 -2
- package/src/LogoLink/index.tsx +1 -1
- package/src/Menu/index.tsx +3 -3
- package/src/MenuGroup/index.tsx +1 -1
- package/src/MenuItem/index.tsx +1 -1
- package/src/Modal/index.tsx +3 -3
- package/src/Navigation/index.tsx +1 -1
- package/src/NavigationItem/index.tsx +1 -1
- package/src/PageContent/index.tsx +1 -1
- package/src/PageHeader/index.tsx +3 -3
- package/src/PageHeaderInputSearch/index.tsx +5 -6
- package/src/PageHeaderInputSearch/utils/defaultLocale.ts +1 -1
- package/src/PageHeaderSkeleton/index.tsx +3 -3
- package/src/ParagraphSkeleton/index.tsx +1 -1
- package/src/Popover/index.tsx +1 -1
- package/src/RadioGroup/index.tsx +1 -1
- package/src/RadioGroupSkeleton/index.tsx +1 -1
- package/src/ScrollButton/index.tsx +3 -3
- package/src/Select/index.tsx +9 -9
- package/src/SwitchSkeleton/index.tsx +1 -1
- package/src/TagLink/index.tsx +7 -2
- package/src/TagList/index.tsx +1 -1
- package/src/TagListSkeleton/index.tsx +2 -2
- package/src/TagSkeleton/index.tsx +1 -1
- package/src/TextArea/index.tsx +2 -2
- package/src/TextAreaSkeleton/index.tsx +3 -1
- package/src/ThemeSwitcher/index.tsx +1 -1
- package/src/TimePicker/index.tsx +2 -2
- package/src/index.ts +130 -130
- package/src/message/Message.tsx +1 -1
- 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-
|
|
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, {
|
|
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
|
/**
|
|
@@ -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, {
|
|
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
|
|
package/src/Layout/index.tsx
CHANGED
package/src/LinkButton/index.tsx
CHANGED
|
@@ -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;
|
package/src/List/index.tsx
CHANGED
|
@@ -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 {
|
|
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;
|
package/src/ListItem/index.tsx
CHANGED
|
@@ -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, {
|
|
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'>,
|
package/src/LogoLink/index.tsx
CHANGED
|
@@ -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
|
package/src/Menu/index.tsx
CHANGED
|
@@ -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
|
/**
|
package/src/MenuGroup/index.tsx
CHANGED
|
@@ -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'],
|
package/src/MenuItem/index.tsx
CHANGED
|
@@ -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'> {
|
package/src/Modal/index.tsx
CHANGED
|
@@ -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
|
-
{/*
|
|
354
|
+
{/* @ts-expect-error FocusLock has problems with types */}
|
|
355
355
|
<FocusLock autoFocus={false}>
|
|
356
356
|
<CloseModalContext.Provider value={onClose}>
|
|
357
357
|
<Content
|
package/src/Navigation/index.tsx
CHANGED
|
@@ -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 {
|
package/src/PageHeader/index.tsx
CHANGED
|
@@ -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,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
|
/**
|
package/src/Popover/index.tsx
CHANGED
|
@@ -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 {
|
package/src/RadioGroup/index.tsx
CHANGED
|
@@ -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
|
/**
|
package/src/Select/index.tsx
CHANGED
|
@@ -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
|
|
package/src/TagLink/index.tsx
CHANGED
|
@@ -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 {
|
|
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 &
|
package/src/TagList/index.tsx
CHANGED
|
@@ -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'>,
|
package/src/TextArea/index.tsx
CHANGED
|
@@ -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, {
|
|
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
|
|
package/src/TimePicker/index.tsx
CHANGED
|
@@ -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'> {
|