@typeolymp/ui-components 1.17.7 → 1.17.8

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,4 +1,5 @@
1
1
  import React from "react";
2
+ import { PropsType as IconPropsType } from "../Icon";
2
3
  export declare type PropsType = {
3
4
  label: string | JSX.Element;
4
5
  color?: "blue" | "green" | "red" | "white";
@@ -9,6 +10,7 @@ export declare type PropsType = {
9
10
  tabIndex?: number;
10
11
  href?: string;
11
12
  asAnchor?: boolean;
13
+ icon?: IconPropsType["type"];
12
14
  onClick?(): void;
13
15
  onClickAsync?(resolve: () => void): void;
14
16
  };
@@ -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" | "fileAdd" | "fileCheck" | "fileError" | "fileArrow" | "download" | "upload";
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" | "fileAdd" | "fileCheck" | "fileError" | "fileArrow" | "download" | "upload" | "dotsVertical" | "dotsHorizontal";
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, ReactNode } from "react";
2
+ import { PropsType as IconPropsType } from "../../atoms/Icon";
3
+ export declare type PropsType = {
4
+ menu: Array<{
5
+ label: string;
6
+ icon?: IconPropsType["type"];
7
+ onClick?(): void;
8
+ }>;
9
+ trigger?: ["click" | "hover"];
10
+ children: ReactNode;
11
+ };
12
+ declare const Dropdown: FC<PropsType>;
13
+ export default Dropdown;
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,2 @@
1
+ export declare const Container: any;
2
+ export declare const MenuItem: any;
package/build/index.d.ts CHANGED
@@ -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 Dropdown from "./components/molecules/Dropdown";
27
28
  import FileUpload from "./components/molecules/FileUpload";
28
29
  import IconButton from "./components/molecules/IconButton";
29
30
  import InputField from "./components/molecules/InputField";
@@ -49,4 +50,4 @@ import Modal from "./components/organisms/Modal";
49
50
  import Result from "./components/organisms/Result";
50
51
  import Table from "./components/organisms/Table";
51
52
  import Transfer from "./components/organisms/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, };
53
+ 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, Dropdown, 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, };