@typeolymp/ui-components 1.16.6 → 1.17.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.
@@ -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" | "cross" | "bulb" | "star" | "setting" | "reload" | "expand" | "calendar" | "plus" | "envelope" | "facebook" | "instagram" | "menuAlt" | "link" | "heart" | "thunder" | "fire" | "control";
3
+ type: "check" | "chevronUp" | "chevronRight" | "chevronDown" | "chevronLeft" | "eye" | "eyeInvisible" | "warning" | "questionCircle" | "play" | "lock" | "cross" | "bulb" | "star" | "setting" | "reload" | "expand" | "calendar" | "plus" | "envelope" | "facebook" | "instagram" | "menuAlt" | "link" | "heart" | "thunder" | "fire" | "control" | "file";
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,13 @@
1
+ import { FC } from "react";
2
+ import { Locale } from "@typeolymp/utils/enums";
3
+ declare type MIMEType = "text/csv" | "image/jpeg" | "image/png" | "application/json" | "application/pdf";
4
+ declare type FileExtensionsType = ".csv" | ".jpeg" | ".jpg" | ".png" | ".json" | ".pdf";
5
+ export declare type PropsType = {
6
+ locale: Locale;
7
+ accept?: {
8
+ [key in MIMEType]?: FileExtensionsType[];
9
+ };
10
+ onDrop?: (acceptedFiles: File[]) => void;
11
+ };
12
+ declare const FileUpload: FC<PropsType>;
13
+ export default FileUpload;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { PropsType } from ".";
3
+ declare const _default: {
4
+ title: string;
5
+ component: React.FC<PropsType>;
6
+ };
7
+ export default _default;
8
+ export declare const Overview: () => JSX.Element;
9
+ export declare const Playground: {
10
+ (args: any): JSX.Element;
11
+ args: {};
12
+ argTypes: {};
13
+ };
@@ -0,0 +1 @@
1
+ export declare const Container: any;
package/build/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import theme from "./lib/theme";
1
+ import theme from "./utils/theme";
2
2
  import Button from "./components/atoms/Button";
3
3
  import Checkbox from "./components/atoms/Checkbox";
4
4
  import Flag from "./components/atoms/Flag";
@@ -24,6 +24,7 @@ import Checkboxes from "./components/molecules/Checkboxes";
24
24
  import Collapse from "./components/molecules/Collapse";
25
25
  import Countdown from "./components/molecules/Countdown";
26
26
  import DateInputField from "./components/molecules/DateInputField";
27
+ import FileUpload from "./components/molecules/FileUpload";
27
28
  import IconButton from "./components/molecules/IconButton";
28
29
  import InputField from "./components/molecules/InputField";
29
30
  import Key from "./components/molecules/Key";
@@ -48,4 +49,4 @@ import Modal from "./components/organisms/Modal";
48
49
  import Result from "./components/organisms/Result";
49
50
  import Table from "./components/organisms/Table";
50
51
  import Transfer from "./components/organisms/Transfer";
51
- export { theme, Button, Checkbox, Flag, Heading, Icon, Illustration, Input, Logo, Medal, Number, Paragraph, Radio, Range, Select, Spacer, Subheading, Tag, Toggle, Trophy, Alert, Card, Checkboxes, Collapse, Countdown, DateInputField, IconButton, InputField, Key, Link, Loading, LocaleSelect, Medals, Notification, NumberField, PasswordInputField, Popup, ProgressBar, Steps, Tabs, RadioGroup, SelectField, ToggleField, Tooltip, Form, Keyboard, Modal, Result, Table, Transfer, };
52
+ export { theme, Button, Checkbox, Flag, Heading, Icon, Illustration, Input, Logo, Medal, Number, Paragraph, Radio, Range, Select, Spacer, Subheading, Tag, Toggle, Trophy, Alert, Card, Checkboxes, Collapse, Countdown, DateInputField, FileUpload, IconButton, InputField, Key, Link, Loading, LocaleSelect, Medals, Notification, NumberField, PasswordInputField, Popup, ProgressBar, Steps, Tabs, RadioGroup, SelectField, ToggleField, Tooltip, Form, Keyboard, Modal, Result, Table, Transfer, };