@typeolymp/ui-components 1.19.40 → 1.20.0
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/build/components/atoms/Icon/index.d.ts +1 -1
- package/build/components/molecules/Popup/index.d.ts +1 -1
- package/build/components/organisms/Keyboard/Legacy/Key/index.d.ts +8 -0
- package/build/components/organisms/Keyboard/Legacy/Key/styles.d.ts +1 -0
- package/build/components/organisms/Keyboard/Legacy/index.d.ts +14 -0
- package/build/components/organisms/Keyboard/Legacy/styles.d.ts +6 -0
- package/build/components/organisms/Keyboard/index.d.ts +8 -5
- package/build/components/organisms/Keyboard/stories.d.ts +4 -2
- package/build/components/organisms/Keyboard/styles.d.ts +6 -5
- package/build/index.es.js +474 -246
- package/build/index.es.js.map +1 -1
- package/build/index.js +474 -246
- package/build/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
export declare type PropsType = {
|
|
3
|
-
type: "check" | "chevronUp" | "chevronRight" | "chevronDown" | "chevronLeft" | "eye" | "eyeInvisible" | "warning" | "questionCircle" | "play" | "lock" | "unlock" | "cross" | "bulb" | "star" | "setting" | "reload" | "expand" | "calendar" | "plus" | "envelope" | "facebook" | "instagram" | "menuAlt" | "link" | "heart" | "thunder" | "fire" | "control" | "fileAdd" | "fileCheck" | "fileError" | "fileArrow" | "download" | "upload" | "dotsVertical" | "dotsHorizontal" | "bell" | "bin" | "user" | "search" | "infoCircle" | "swap" | "login" | "logout" | "edit";
|
|
3
|
+
type: "check" | "chevronUp" | "chevronRight" | "chevronDown" | "chevronLeft" | "eye" | "eyeInvisible" | "warning" | "questionCircle" | "play" | "lock" | "unlock" | "cross" | "bulb" | "star" | "setting" | "reload" | "expand" | "calendar" | "plus" | "envelope" | "facebook" | "instagram" | "menuAlt" | "link" | "heart" | "thunder" | "fire" | "control" | "fileAdd" | "fileCheck" | "fileError" | "fileArrow" | "download" | "upload" | "dotsVertical" | "dotsHorizontal" | "bell" | "bin" | "user" | "search" | "infoCircle" | "swap" | "login" | "logout" | "edit" | "keyboard";
|
|
4
4
|
size?: "tiny" | "small" | "medium" | "large";
|
|
5
5
|
color?: "blue" | "green" | "orange" | "red" | "purple" | "gray" | "darkGray" | "lightGray" | "white";
|
|
6
6
|
onClick?(e?: MouseEvent): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Container: any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { PropsType as KeyPropsType } from "./Key";
|
|
3
|
+
export declare type PropsType = {
|
|
4
|
+
keys?: Array<{
|
|
5
|
+
index: number;
|
|
6
|
+
key: string;
|
|
7
|
+
hand: "left" | "right" | "any";
|
|
8
|
+
color: KeyPropsType["color"];
|
|
9
|
+
isShiftKey: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
activeKey?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const Keyboard: FC<PropsType>;
|
|
14
|
+
export default Keyboard;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Color } from "@typeolymp/utils/enums";
|
|
3
|
+
import { PropsType as LegacyKeyboardPropsType } from "./Legacy";
|
|
3
4
|
export declare type PropsType = {
|
|
4
|
-
keys
|
|
5
|
+
keys: Array<{
|
|
5
6
|
index: number;
|
|
6
7
|
key: string;
|
|
7
8
|
hand: "left" | "right" | "any";
|
|
8
|
-
color:
|
|
9
|
+
color: Color;
|
|
9
10
|
isShiftKey: boolean;
|
|
10
11
|
}>;
|
|
11
|
-
|
|
12
|
+
activeKeys?: string[];
|
|
13
|
+
};
|
|
14
|
+
declare const Keyboard: FC<PropsType> & {
|
|
15
|
+
Legacy: FC<LegacyKeyboardPropsType>;
|
|
12
16
|
};
|
|
13
|
-
declare const Keyboard: FC<PropsType>;
|
|
14
17
|
export default Keyboard;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { PropsType } from ".";
|
|
3
2
|
import { KeyboardLayout } from "@typeolymp/utils/enums";
|
|
3
|
+
import { PropsType } from ".";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<PropsType
|
|
6
|
+
component: React.FC<PropsType> & {
|
|
7
|
+
Legacy: React.FC<import("./Legacy").PropsType>;
|
|
8
|
+
};
|
|
7
9
|
};
|
|
8
10
|
export default _default;
|
|
9
11
|
export declare const Playground: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const Container: any;
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
2
|
+
export declare const Row1: any;
|
|
3
|
+
export declare const Row2: any;
|
|
4
|
+
export declare const Row3: any;
|
|
5
|
+
export declare const Row4: any;
|
|
6
|
+
export declare const Row5: any;
|
|
7
|
+
export declare const Key: any;
|