indicator-ui 0.0.52 → 0.0.54

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,4 @@
1
1
  import { FORM_BUILDER_SCHEMA } from "../schemes";
2
2
  import { AdditionPropsType } from "../types";
3
- declare const formBuilder: (schema: FORM_BUILDER_SCHEMA, additionProps: AdditionPropsType) => import("react").ReactNode[];
3
+ declare const formBuilder: (schema: FORM_BUILDER_SCHEMA, additionProps: AdditionPropsType) => (string | number | bigint | boolean | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode>>)[];
4
4
  export default formBuilder;
@@ -19,6 +19,10 @@ export type FlexFieldClassNameType = {
19
19
  };
20
20
  export type FlexFieldPropsType = {
21
21
  value?: any;
22
+ /**
23
+ * unmask="typed" // Возвращает данные без маски
24
+ * */
25
+ unmask?: any;
22
26
  type?: string;
23
27
  onChange?: (value: any) => void;
24
28
  /**
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { ReactElement, ReactNode } from "react";
2
2
  export type MicroButtonSizeType = '14' | '16' | '20' | '24' | '28';
3
3
  export type MicroButtonColorsType = 'light' | 'dark' | 'gray' | 'color' | 'color-hover' | 'red-hover' | 'color-fill' | 'gray-fill' | 'red-fill' | 'blue-light';
4
4
  export type MicroButtonClassNameType = {
@@ -33,5 +33,12 @@ export type MicroButtonPropsType = Omit<React.ButtonHTMLAttributes<HTMLButtonEle
33
33
  color?: MicroButtonColorsType;
34
34
  /** Дополнительные имена стилей */
35
35
  additionStyles?: string | string[];
36
+ /** Кастомный компонент с обязательным пропсом children, в него будут вставлены элементы кнопки и накинуты стили */
37
+ customComponent?: ReactElement<{
38
+ children?: ReactNode;
39
+ className?: string;
40
+ } & {
41
+ [key: string]: any;
42
+ }>;
36
43
  className?: MicroButtonClassNameType;
37
44
  };
@@ -1,2 +1,2 @@
1
1
  import { MicroButtonPropsType } from '../types';
2
- export declare function MicroButton({ children, icon, size, color, additionStyles, className, ...props }: MicroButtonPropsType): import("react/jsx-runtime").JSX.Element;
2
+ export declare function MicroButton({ children, icon, size, color, additionStyles, customComponent, disabled, className, ...props }: MicroButtonPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './ui';
2
+ export * from './types';
@@ -0,0 +1 @@
1
+ export { default as TabButtonsStyle } from './TabButtons.module.scss';
@@ -0,0 +1,23 @@
1
+ import React, { ReactElement, ReactNode } from "react";
2
+ export type DimensionType = 'fill' | 'hug';
3
+ export type TabButtonsPropsType = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'className'> & {
4
+ active?: boolean;
5
+ disabled?: boolean;
6
+ iconLeft?: React.ReactNode;
7
+ iconRight?: React.ReactNode;
8
+ text?: React.ReactNode;
9
+ children?: React.ReactNode;
10
+ /** Кастомный компонент с обязательным пропсом children, в него будут вставлены элементы кнопки и накинуты стили */
11
+ customComponent?: ReactElement<{
12
+ children?: ReactNode;
13
+ className?: string;
14
+ } & {
15
+ [key: string]: any;
16
+ }>;
17
+ /** Тип длины, fill --- заполнит, hug --- подгонит под контент */
18
+ width?: DimensionType;
19
+ /** Тип высоты, fill --- заполнит, hug --- подгонит под контент */
20
+ height?: DimensionType;
21
+ /** Дополнительные имена стилей */
22
+ additionStyles?: string | string[];
23
+ };
@@ -0,0 +1 @@
1
+ export * from './TabButtonsTypes';
@@ -0,0 +1,2 @@
1
+ import { TabButtonsPropsType } from '../types';
2
+ export declare function TabButtons({ active, iconLeft, iconRight, disabled, text, children, customComponent, height, width, additionStyles, ...props }: TabButtonsPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './TabButtons';
@@ -0,0 +1 @@
1
+ export * from './ui';
@@ -0,0 +1 @@
1
+ export { default as TabFrameStyle } from './TabFrame.module.scss';
@@ -0,0 +1,7 @@
1
+ import { TabButtonsPropsType } from "../../../ui";
2
+ export type TabFrameTabItemType = TabButtonsPropsType;
3
+ export type TabFrameTabListType = TabFrameTabItemType[];
4
+ export type TabFramePropsType = {
5
+ tabs?: TabFrameTabListType;
6
+ width?: 'fill' | 'hug';
7
+ };
@@ -0,0 +1 @@
1
+ export * from './TabFrameTypes';
@@ -0,0 +1,2 @@
1
+ import { TabFramePropsType } from '../types';
2
+ export declare function TabFrame({ width, tabs }: TabFramePropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './TabFrame';
@@ -11,3 +11,5 @@ export * from './CascadeSelector';
11
11
  export * from './Tag';
12
12
  export * from './SlideTransition';
13
13
  export * from './ModalWindowWrapper';
14
+ export * from './TabFrame';
15
+ export * from './TabButtons';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.0.52",
3
+ "version": "0.0.54",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",