indicator-ui 0.0.155 → 0.0.157

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.
Files changed (29) hide show
  1. package/dist/index.css +291 -19
  2. package/dist/index.css.map +1 -1
  3. package/dist/index.js +350 -117
  4. package/dist/index.js.map +1 -1
  5. package/dist/scss/styles/colors/primary.scss +1 -1
  6. package/dist/types/src/test/pages/DropdownItemPage.d.ts +1 -0
  7. package/dist/types/src/test/pages/UserPickPage.d.ts +1 -0
  8. package/dist/types/src/test/pages/index.d.ts +2 -0
  9. package/dist/types/src/ui/DropdownItem/index.d.ts +2 -0
  10. package/dist/types/src/ui/DropdownItem/styles/index.d.ts +1 -0
  11. package/dist/types/src/ui/DropdownItem/types/DropdownItemTypes.d.ts +26 -0
  12. package/dist/types/src/ui/DropdownItem/types/index.d.ts +1 -0
  13. package/dist/types/src/ui/DropdownItem/ui/DropdownItem.d.ts +2 -0
  14. package/dist/types/src/ui/DropdownItem/ui/index.d.ts +1 -0
  15. package/dist/types/src/ui/InputFields/FlexField/types/FlexFieldTypes.d.ts +7 -2
  16. package/dist/types/src/ui/InputFields/FlexField/ui/FlexField.d.ts +4 -4
  17. package/dist/types/src/ui/SlideTransition/types/SlideTransitionTypes.d.ts +7 -0
  18. package/dist/types/src/ui/SlideTransition/types/index.d.ts +1 -1
  19. package/dist/types/src/ui/SlideTransition/ui/SlideTransition.d.ts +3 -3
  20. package/dist/types/src/ui/UserPick/assets/index.d.ts +1 -0
  21. package/dist/types/src/ui/UserPick/index.d.ts +2 -0
  22. package/dist/types/src/ui/UserPick/styles/index.d.ts +1 -0
  23. package/dist/types/src/ui/UserPick/types/UserPickTypes.d.ts +17 -0
  24. package/dist/types/src/ui/UserPick/types/index.d.ts +1 -0
  25. package/dist/types/src/ui/UserPick/ui/UserPick.d.ts +2 -0
  26. package/dist/types/src/ui/UserPick/ui/index.d.ts +1 -0
  27. package/dist/types/src/ui/index.d.ts +2 -0
  28. package/package.json +1 -1
  29. package/dist/types/src/ui/SlideTransition/types/AnimateDropTypes.d.ts +0 -15
@@ -38,7 +38,7 @@ $error-600: #D92D20 !default;
38
38
  $error-700: #B42318 !default;
39
39
  $error-800: #912018 !default;
40
40
  $error-900: #7A271A !default;
41
- $error-950: #FEFDF0 !default;
41
+ $error-950: #55160C !default;
42
42
 
43
43
  $warning-25: #FFFCF5 !default;
44
44
  $warning-50: #FFFAEB !default;
@@ -0,0 +1 @@
1
+ export declare function DropdownItemPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function UserPickPage(): import("react/jsx-runtime").JSX.Element;
@@ -13,3 +13,5 @@ export * from './TagPage';
13
13
  export * from './SlideTransitionPage';
14
14
  export * from './TabFramePage';
15
15
  export * from './PaginationPage';
16
+ export * from './UserPickPage';
17
+ export * from './DropdownItemPage';
@@ -0,0 +1,2 @@
1
+ export * from './ui';
2
+ export * from './types';
@@ -0,0 +1 @@
1
+ export { default as DropdownItemStyle } from './DropdownItem.module.scss';
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { UserPickUrlType } from "../../../ui";
3
+ export type DropdownItemSizeType = 'small' | 'medium';
4
+ export type DropdownItemPropsType = {
5
+ selected?: boolean;
6
+ size?: DropdownItemSizeType;
7
+ /**
8
+ * При `false` не показывает ничего.
9
+ *
10
+ * При `true` не показывает `Новое`.
11
+ *
12
+ * Иначе показывает пользовательский компонент.
13
+ * */
14
+ supportingText?: React.ReactNode | string;
15
+ showIcon?: React.ReactNode;
16
+ /**
17
+ * Если передан `false`, то не покажет `user`.
18
+ * */
19
+ user?: UserPickUrlType | false;
20
+ text?: React.ReactNode;
21
+ disabled?: boolean;
22
+ width?: 'fill' | 'hug';
23
+ /** Дополнительные имена стилей */
24
+ additionStyles?: string | string[];
25
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
26
+ };
@@ -0,0 +1 @@
1
+ export * from './DropdownItemTypes';
@@ -0,0 +1,2 @@
1
+ import { DropdownItemPropsType } from "../types";
2
+ export declare function DropdownItem({ size, selected, disabled, supportingText, showIcon, user, text, additionStyles, onClick, width, }: DropdownItemPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './DropdownItem';
@@ -1,5 +1,6 @@
1
1
  import React, { ReactNode } from "react";
2
2
  import { FieldsBasePropsType } from "../../FieldsBase";
3
+ import { UserPickUrlType } from "../../../../ui";
3
4
  export type BlocksType = any;
4
5
  export type PatternType = any;
5
6
  export type FlexFieldPropsType = FieldsBasePropsType<string> & {
@@ -36,8 +37,12 @@ export type FlexFieldPropsType = FieldsBasePropsType<string> & {
36
37
  icon?: ReactNode;
37
38
  /** Text Support. По умолчанию `'+7', можно передать свой компонент, он подставится без обертки, также можно передать строку, она подставится с оберткой`*/
38
39
  textSupport?: boolean | string | ReactNode;
39
- /** Принимает url **Картинки пользователя**. Можно передать свой компонент **Картинки пользователя**.*/
40
- userPic?: string | ReactNode;
40
+ /**
41
+ * При `userPic === ReactNode` подставляет пользовательский компонент.
42
+ *
43
+ * При `userPic === false` не показывает `userPic`.
44
+ * */
45
+ userPic?: UserPickUrlType | ReactNode | false;
41
46
  /** Подставляет **Help** при `help === true`. Можно передать свой компонент **Help**.*/
42
47
  help?: boolean | ReactNode;
43
48
  /** Подставляет **Dropdown** при `dropdown === true`. Можно передать свой компонент **Dropdown**.*/
@@ -1,18 +1,18 @@
1
1
  import React from "react";
2
- declare const FlexField: React.ForwardRefExoticComponent<import("../..").FieldsBasePropsType<string> & {
2
+ declare const FlexField: React.ForwardRefExoticComponent<import("../../../../ui").FieldsBasePropsType<string> & {
3
3
  type?: string;
4
4
  name?: string;
5
5
  mask?: any;
6
6
  unmask?: any;
7
- blocks?: import("../types").BlocksType;
8
- pattern?: import("../types").PatternType;
7
+ blocks?: import("../../../../ui").BlocksType;
8
+ pattern?: import("../../../../ui").PatternType;
9
9
  placeholder?: string;
10
10
  onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
11
11
  offFocus?: boolean;
12
12
  notInput?: boolean;
13
13
  icon?: React.ReactNode;
14
14
  textSupport?: boolean | string | React.ReactNode;
15
- userPic?: string | React.ReactNode;
15
+ userPic?: import("../../../../ui").UserPickUrlType | React.ReactNode | false;
16
16
  help?: boolean | React.ReactNode;
17
17
  dropdown?: boolean | React.ReactNode;
18
18
  onDropdownClick?: (e: any) => void;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from "react";
2
+ export type SlideTransitionAnimationType = 'enter-down' | 'enter-up' | 'exit-down' | 'exit-up' | 'hide' | 'show';
3
+ export type SlideTransitionPropsType = {
4
+ children?: ReactNode;
5
+ animation?: SlideTransitionAnimationType;
6
+ additionStyles?: string | string[];
7
+ };
@@ -1 +1 @@
1
- export * from './AnimateDropTypes';
1
+ export * from './SlideTransitionTypes';
@@ -17,7 +17,7 @@ import { SlideTransitionPropsType } from '../types';
17
17
  * ```'show'``` - изначально показывает элемент.
18
18
  *
19
19
  * ---
20
- * Учтите, что анимации **"снизу"** сужают компонент, поэтому он будет деформироваться.
21
- * При высокой (автор проводил тесты на 300ms) скорости анимации это незаметно (если вы не Флеш).
20
+ * Учтите, что анимации сужают компонент, поэтому он будет деформироваться.
21
+ * При высокой (автор проводил тесты на 300ms) скорости анимации ощущается нормально (если вы не Флеш).
22
22
  * */
23
- export declare function SlideTransition({ children, animation, additionStyles, additionStylesContent, animationOptions }: SlideTransitionPropsType): import("react/jsx-runtime").JSX.Element;
23
+ export declare function SlideTransition({ children, animation, additionStyles, }: SlideTransitionPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { default as PlaceholderSVG } from './placeholder.svg';
@@ -0,0 +1,2 @@
1
+ export * from './ui';
2
+ export * from './types';
@@ -0,0 +1 @@
1
+ export { default as UserPickStyle } from './UserPick.module.scss';
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Один из предоставленных размеров, либо кастомный,
3
+ * которому будет равна длинна и высота картинки.
4
+ * */
5
+ export type UserPickSizeType = '20' | '24' | '32' | '40' | '48' | '64' | '72' | '80' | '96' | '120' | '144' | '160' | number;
6
+ /**
7
+ * Ссылка на изображение.
8
+ *
9
+ * __Если не указано (```url === undefined```) появится заглушка.__
10
+ * */
11
+ export type UserPickUrlType = string | undefined;
12
+ export type UserPickPropsType = {
13
+ url?: UserPickUrlType;
14
+ size?: UserPickSizeType;
15
+ /** Дополнительные имена стилей */
16
+ additionStyles?: string | string[];
17
+ };
@@ -0,0 +1 @@
1
+ export * from './UserPickTypes';
@@ -0,0 +1,2 @@
1
+ import { UserPickPropsType } from "../types";
2
+ export declare function UserPick({ size, url, additionStyles }: UserPickPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./UserPick";
@@ -16,3 +16,5 @@ export * from './TabFrame';
16
16
  export * from './TabButtons';
17
17
  export * from './PaginationBar';
18
18
  export * from './ScrollProvider';
19
+ export * from './UserPick';
20
+ export * from './DropdownItem';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.0.155",
3
+ "version": "0.0.157",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",
@@ -1,15 +0,0 @@
1
- import { ReactNode } from "react";
2
- export type SlideTransitionAnimationOptionsType = KeyframeAnimationOptions | {
3
- enterDown?: KeyframeAnimationOptions;
4
- enterUp?: KeyframeAnimationOptions;
5
- exitDown?: KeyframeAnimationOptions;
6
- exitUp?: KeyframeAnimationOptions;
7
- };
8
- export type SlideTransitionAnimationType = 'enter-down' | 'enter-up' | 'exit-down' | 'exit-up' | 'hide' | 'show' | undefined;
9
- export type SlideTransitionPropsType = {
10
- children?: ReactNode;
11
- animation?: SlideTransitionAnimationType;
12
- animationOptions?: SlideTransitionAnimationOptionsType;
13
- additionStyles?: string | string[];
14
- additionStylesContent?: string | string[];
15
- };