@react95/core 8.0.0-alpha.10 → 8.0.0-alpha.11
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/cjs/Avatar/Avatar.cjs +2 -19
- package/cjs/Button/Button.cjs +1 -1
- package/cjs/Fieldset/Fieldset.cjs +1 -1
- package/cjs/Frame/Frame.cjs +1 -0
- package/cjs/Input/Input.cjs +1 -20
- package/cjs/List/List.cjs +3 -5
- package/cjs/List/ListDivider.cjs +1 -11
- package/cjs/Modal/Modal.cjs +17 -36
- package/cjs/Modal/ModalProvider.cjs +6 -21
- package/cjs/Range/Range.cjs +9 -28
- package/cjs/Tabs/Tabs.cjs +16 -19
- package/cjs/TextArea/TextArea.cjs +2 -19
- package/cjs/TitleBar/TitleBar.cjs +10 -8
- package/cjs/Tooltip/Tooltip.cjs +6 -23
- package/cjs/Tree/Node.cjs +10 -27
- package/cjs/Video/Video.cjs +28 -44
- package/cjs/Video/buttons/Fullscreen.cjs +2 -19
- package/cjs/Video/buttons/Pause.cjs +2 -19
- package/cjs/Video/buttons/Play.cjs +2 -19
- package/cjs/Video/buttons/Stop.cjs +2 -19
- package/esm/Alert/Alert.mjs +6 -6
- package/esm/Avatar/Avatar.mjs +2 -2
- package/esm/Button/Button.mjs +4 -4
- package/esm/Checkbox/Checkbox.mjs +3 -3
- package/esm/Dropdown/Dropdown.mjs +2 -2
- package/esm/Fieldset/Fieldset.mjs +2 -2
- package/esm/Frame/Frame.mjs +4 -3
- package/esm/Input/Input.mjs +2 -4
- package/esm/List/List.mjs +3 -5
- package/esm/List/ListDivider.mjs +2 -12
- package/esm/List/ListItem.mjs +3 -3
- package/esm/Modal/Modal.mjs +9 -11
- package/esm/Modal/ModalProvider.mjs +6 -4
- package/esm/ProgressBar/ProgressBar.mjs +4 -4
- package/esm/RadioButton/RadioButton.mjs +3 -3
- package/esm/Range/Range.mjs +11 -13
- package/esm/Tabs/Tab.mjs +2 -2
- package/esm/Tabs/Tabs.mjs +21 -24
- package/esm/TaskBar/Clock.mjs +3 -3
- package/esm/TaskBar/TaskBar.mjs +9 -9
- package/esm/TaskBar/WindowButton.mjs +3 -3
- package/esm/TextArea/TextArea.mjs +2 -2
- package/esm/TitleBar/TitleBar.mjs +16 -14
- package/esm/Tooltip/Tooltip.mjs +5 -5
- package/esm/Tree/Node.mjs +2 -2
- package/esm/Tree/Tree.mjs +2 -2
- package/esm/Video/Video.mjs +14 -13
- package/esm/Video/buttons/Fullscreen.mjs +1 -1
- package/esm/Video/buttons/Pause.mjs +1 -1
- package/esm/Video/buttons/Play.mjs +1 -1
- package/esm/Video/buttons/Stop.mjs +1 -1
- package/package.json +2 -2
- package/types/Avatar/Avatar.d.ts +7 -4
- package/types/Button/Button.d.ts +5 -2
- package/types/Checkbox/Checkbox.d.ts +3 -2
- package/types/Dropdown/Dropdown.d.ts +2 -1
- package/types/Fieldset/Fieldset.d.ts +2 -1
- package/types/Frame/Frame.d.ts +7 -4
- package/types/Input/Input.d.ts +1 -1
- package/types/List/List.d.ts +1 -1
- package/types/List/ListItem.d.ts +3 -2
- package/types/Modal/Modal.d.ts +8 -8
- package/types/Modal/ModalContext.d.ts +2 -2
- package/types/Modal/ModalProvider.d.ts +2 -2
- package/types/ProgressBar/ProgressBar.d.ts +6 -3
- package/types/RadioButton/RadioButton.d.ts +2 -1
- package/types/Range/Range.d.ts +1 -1
- package/types/Tabs/Tab.d.ts +3 -2
- package/types/Tabs/Tabs.d.ts +3 -2
- package/types/TaskBar/TaskBar.d.ts +2 -1
- package/types/TaskBar/WindowButton.d.ts +2 -1
- package/types/TextArea/TextArea.d.ts +1 -1
- package/types/TitleBar/TitleBar.d.ts +5 -4
- package/types/Tooltip/Tooltip.d.ts +3 -2
- package/types/Tree/Node.d.ts +7 -6
- package/types/Tree/Tree.d.ts +2 -2
- package/types/Video/Video.d.ts +10 -9
- package/types/Video/buttons/Fullscreen.d.ts +3 -2
- package/types/Video/buttons/Pause.d.ts +3 -2
- package/types/Video/buttons/Play.d.ts +3 -2
- package/types/Video/buttons/Stop.d.ts +3 -2
package/types/Tabs/Tabs.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { MouseEvent, ReactElement } from 'react';
|
|
2
3
|
import { TabProps } from './Tab';
|
|
3
4
|
import { FrameProps } from '../Frame/Frame';
|
|
4
5
|
export type TabsProps = {
|
|
5
6
|
defaultActiveTab?: string;
|
|
6
|
-
children:
|
|
7
|
-
onChange?(title: string, e:
|
|
7
|
+
children: ReactElement<TabProps> | Array<ReactElement<TabProps>>;
|
|
8
|
+
onChange?(title: string, e: MouseEvent): void;
|
|
8
9
|
} & Omit<FrameProps<'ol'>, 'as'>;
|
|
9
10
|
export declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsProps, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { ReactElement } from 'react';
|
|
2
3
|
import { List } from '../List/List';
|
|
3
4
|
export type TaskBarProps = {
|
|
4
|
-
list?:
|
|
5
|
+
list?: ReactElement<typeof List>;
|
|
5
6
|
};
|
|
6
7
|
export declare const TaskBar: React.ForwardRefExoticComponent<TaskBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { ButtonHTMLAttributes } from 'react';
|
|
2
3
|
import { Windows } from '../Modal/ModalContext';
|
|
3
4
|
export type WindowButtonProps = {
|
|
4
5
|
small?: boolean;
|
|
5
6
|
active?: boolean;
|
|
6
|
-
} & Pick<Windows, 'icon'> &
|
|
7
|
+
} & Pick<Windows, 'icon'> & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
7
8
|
export declare const WindowButton: React.ForwardRefExoticComponent<{
|
|
8
9
|
small?: boolean | undefined;
|
|
9
10
|
active?: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { FrameProps } from '../Frame/Frame';
|
|
3
3
|
export type TextAreaProps = Omit<FrameProps<'textarea'>, 'as'>;
|
|
4
4
|
export declare const TextArea: React.ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { ReactElement, HTMLAttributes } from 'react';
|
|
2
3
|
import { FrameProps } from '../Frame/Frame';
|
|
3
|
-
declare const OptionsBox: React.ForwardRefExoticComponent<Omit<FrameProps
|
|
4
|
+
declare const OptionsBox: React.ForwardRefExoticComponent<Omit<FrameProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
5
|
declare const Option: React.ForwardRefExoticComponent<Omit<FrameProps<"button">, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
-
export interface TitleBarBackgroundProps extends Omit<
|
|
6
|
+
export interface TitleBarBackgroundProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, FrameProps<'div'> {
|
|
6
7
|
active?: boolean;
|
|
7
|
-
icon?:
|
|
8
|
+
icon?: ReactElement;
|
|
8
9
|
title?: string;
|
|
9
10
|
}
|
|
10
11
|
interface TitleBarOptions {
|
|
11
12
|
Option: typeof Option;
|
|
12
13
|
OptionsBox: typeof OptionsBox;
|
|
13
14
|
}
|
|
14
|
-
export interface TitleBarProps extends TitleBarBackgroundProps, TitleBarOptions, FrameProps {
|
|
15
|
+
export interface TitleBarProps extends TitleBarBackgroundProps, TitleBarOptions, FrameProps<'div'> {
|
|
15
16
|
}
|
|
16
17
|
export declare const TitleBar: TitleBarProps & React.ForwardRefRenderFunction<HTMLDivElement, TitleBarBackgroundProps>;
|
|
17
18
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
2
3
|
export type TooltipProps = {
|
|
3
4
|
text?: string;
|
|
4
5
|
delay?: number;
|
|
5
|
-
} &
|
|
6
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
6
7
|
export declare const Tooltip: React.ForwardRefExoticComponent<{
|
|
7
8
|
text?: string | undefined;
|
|
8
9
|
delay?: number | undefined;
|
package/types/Tree/Node.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FC, ReactElement, MouseEvent, KeyboardEvent } from 'react';
|
|
2
3
|
import { FrameProps } from '../Frame/Frame';
|
|
3
4
|
export declare const icons: {
|
|
4
5
|
readonly FILE_MEDIA: React.FC<import("@react95/icons").MediaCdProps>;
|
|
@@ -12,11 +13,11 @@ export declare const icons: {
|
|
|
12
13
|
};
|
|
13
14
|
export type NodeProps = {
|
|
14
15
|
label: string;
|
|
15
|
-
icon?:
|
|
16
|
+
icon?: ReactElement;
|
|
16
17
|
id: number;
|
|
17
18
|
children?: Array<NodeProps>;
|
|
18
|
-
onClick?(event:
|
|
19
|
-
} & Omit<FrameProps
|
|
19
|
+
onClick?(event: MouseEvent | KeyboardEvent, props: NodeProps): void;
|
|
20
|
+
} & Omit<FrameProps<'li'>, 'id' | 'children'>;
|
|
20
21
|
export type NodeRootProps = Omit<NodeProps, 'children'>;
|
|
21
|
-
export declare const Node:
|
|
22
|
-
export declare const NodeRoot:
|
|
22
|
+
export declare const Node: FC<NodeProps>;
|
|
23
|
+
export declare const NodeRoot: FC<NodeRootProps>;
|
package/types/Tree/Tree.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
2
|
import { icons, NodeProps } from './Node';
|
|
3
3
|
import { FrameProps } from '../Frame/Frame';
|
|
4
4
|
export type TreeProps = {
|
|
5
5
|
data: Array<NodeProps>;
|
|
6
6
|
root?: Omit<NodeProps, 'children'>;
|
|
7
7
|
};
|
|
8
|
-
type TreeComposition =
|
|
8
|
+
type TreeComposition = ForwardRefExoticComponent<TreeProps & RefAttributes<HTMLUListElement>> & {
|
|
9
9
|
icons: typeof icons;
|
|
10
10
|
} & Omit<FrameProps<'ul'>, 'as'>;
|
|
11
11
|
export declare const Tree: TreeComposition;
|
package/types/Video/Video.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Ref, HTMLProps } from 'react';
|
|
2
3
|
import { FrameProps } from '../Frame/Frame';
|
|
3
4
|
export type VideoProps = {
|
|
4
5
|
name?: string;
|
|
5
6
|
src: string;
|
|
6
|
-
videoProps?:
|
|
7
|
-
} & FrameProps
|
|
7
|
+
videoProps?: HTMLProps<HTMLVideoElement>;
|
|
8
|
+
} & FrameProps<'div'>;
|
|
8
9
|
export type VideoRefs = {
|
|
9
|
-
video:
|
|
10
|
-
progress:
|
|
11
|
-
wrapper:
|
|
12
|
-
playpause:
|
|
13
|
-
stop:
|
|
14
|
-
fullScreen:
|
|
10
|
+
video: Ref<HTMLVideoElement>;
|
|
11
|
+
progress: Ref<HTMLInputElement>;
|
|
12
|
+
wrapper: Ref<HTMLDivElement>;
|
|
13
|
+
playpause: Ref<HTMLButtonElement>;
|
|
14
|
+
stop: Ref<HTMLButtonElement>;
|
|
15
|
+
fullScreen: Ref<HTMLButtonElement>;
|
|
15
16
|
};
|
|
16
17
|
export declare const Video: React.ForwardRefExoticComponent<Omit<VideoProps, "ref"> & React.RefAttributes<VideoRefs>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
declare const Fullscreen: (props: HTMLAttributes<SVGElement>) => React.JSX.Element;
|
|
3
4
|
export default Fullscreen;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
declare const Pause: (props: HTMLAttributes<SVGElement>) => React.JSX.Element;
|
|
3
4
|
export default Pause;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
declare const Play: (props: HTMLAttributes<SVGElement>) => React.JSX.Element;
|
|
3
4
|
export default Play;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
declare const Stop: (props: HTMLAttributes<SVGElement>) => React.JSX.Element;
|
|
3
4
|
export default Stop;
|