indicator-ui 0.1.85 → 0.1.87
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/dist/index.css +148 -12
- package/dist/index.css.map +1 -1
- package/dist/index.js +483 -113
- package/dist/index.js.map +1 -1
- package/dist/scss/ui/CheckboxMark/styles/mixins/properties/correct.scss +4 -6
- package/dist/types/src/const/imask.d.ts +18 -0
- package/dist/types/src/const/index.d.ts +1 -0
- package/dist/types/src/ui/TabButtons/index.d.ts +0 -1
- package/dist/types/src/ui/TabButtons/ui/TabButtons.d.ts +26 -2
- package/dist/types/src/ui/TabFrame/index.d.ts +0 -1
- package/dist/types/src/ui/TabFrame/ui/TabFrame.d.ts +13 -2
- package/dist/types/src/ui/formFields/FormDateField/ui/FormDateField.d.ts +1 -11
- package/dist/types/src/ui/formFields/FormDateRangeField/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormDateRangeField/styles/index.d.ts +3 -0
- package/dist/types/src/ui/formFields/FormDateRangeField/ui/FormDateRangeField.d.ts +26 -0
- package/dist/types/src/ui/formFields/FormDateRangeField/ui/FormDateTimeRangeField.d.ts +5 -0
- package/dist/types/src/ui/formFields/FormDateRangeField/ui/FormTimeRangeField.d.ts +5 -0
- package/dist/types/src/ui/formFields/FormDateRangeField/ui/InputInnerButton.d.ts +5 -0
- package/dist/types/src/ui/formFields/FormDateRangeField/ui/Mask.d.ts +14 -0
- package/dist/types/src/ui/formFields/FormDateRangeField/ui/index.d.ts +3 -0
- package/dist/types/src/ui/formFields/FormField/ui/FormFieldBase.d.ts +2 -5
- package/dist/types/src/ui/formFields/FormRadioField/ui/FieldItem.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormRadioField/ui/FormRadioField.d.ts +1 -0
- package/dist/types/src/ui/formFields/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/src/ui/TabButtons/types/TabButtonsTypes.d.ts +0 -24
- package/dist/types/src/ui/TabButtons/types/index.d.ts +0 -1
- package/dist/types/src/ui/TabFrame/types/TabFrameTypes.d.ts +0 -10
- package/dist/types/src/ui/TabFrame/types/index.d.ts +0 -1
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
@use '../../../../../styles' as *;
|
|
2
2
|
|
|
3
3
|
@mixin correct-checked-hover($theme) {
|
|
4
|
+
border: transparent;
|
|
4
5
|
@if $theme == 'light' {
|
|
5
6
|
background-color: var(--primary-600);
|
|
6
7
|
} @else {
|
|
7
8
|
background-color: var(--rose-700);
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
border: transparent;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
@mixin correct-disabled-hover($theme) {
|
|
13
|
+
border: transparent;
|
|
14
14
|
@if $theme == 'light' {
|
|
15
15
|
background-color: var(--gray-300);
|
|
16
16
|
} @else {
|
|
17
17
|
background-color: var(--gray-iron-600);
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
border: transparent;
|
|
21
19
|
}
|
|
22
20
|
|
|
23
21
|
@mixin correct-checked($theme: 'light') {
|
|
22
|
+
border: transparent;
|
|
24
23
|
@if $theme == 'light' {
|
|
25
24
|
background-color: var(--primary-500);
|
|
26
25
|
@include fnt($color: var(--base-white));
|
|
@@ -31,7 +30,6 @@
|
|
|
31
30
|
@include modify-svg($stroke: var(--gray-iron-50));
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
border: transparent;
|
|
35
33
|
@include fnt($size: 14, $line-height: 14, $weight: 500);
|
|
36
34
|
|
|
37
35
|
&:after {
|
|
@@ -46,6 +44,7 @@
|
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
@mixin correct-disabled($theme: 'light') {
|
|
47
|
+
border: transparent;
|
|
49
48
|
@if $theme == 'light' {
|
|
50
49
|
background-color: var(--gray-300);
|
|
51
50
|
@include fnt($color: var(--base-white));
|
|
@@ -56,7 +55,6 @@
|
|
|
56
55
|
@include modify-svg($stroke: var(--gray-iron-500));
|
|
57
56
|
}
|
|
58
57
|
|
|
59
|
-
border: transparent;
|
|
60
58
|
@include fnt($size: 14, $line-height: 14, $weight: 500);
|
|
61
59
|
|
|
62
60
|
&:after {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ExtendFactoryArgOptions } from "imask/masked/factory";
|
|
2
|
+
import { BlockExtraOptions } from "imask/masked/pattern";
|
|
3
|
+
export type IMaskBlockType<K extends string = string> = Record<K, ExtendFactoryArgOptions<BlockExtraOptions>>;
|
|
4
|
+
/**
|
|
5
|
+
* Пример: `dd.MM.yyyy`.
|
|
6
|
+
*
|
|
7
|
+
* ---
|
|
8
|
+
*
|
|
9
|
+
* * `dd` - день.
|
|
10
|
+
* * `MM` - месяц.
|
|
11
|
+
* * `yyyy` - год.
|
|
12
|
+
* * `mm` - минуты.
|
|
13
|
+
* * `HH` - часы.
|
|
14
|
+
* * `ss` - секунды.
|
|
15
|
+
*
|
|
16
|
+
* **Замечание**: При указание формата вывода с разделителем `T`, указывайте его так `'T'`
|
|
17
|
+
* */
|
|
18
|
+
export declare const DATE_IMASK_BLOCKS: IMaskBlockType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './imask';
|
|
@@ -1,2 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import React, { ReactElement, ReactNode } from "react";
|
|
2
|
+
type PropsType = Omit<React.ComponentProps<'button'>, 'className'> & {
|
|
3
|
+
active?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
iconLeft?: React.ReactNode;
|
|
6
|
+
iconRight?: React.ReactNode;
|
|
7
|
+
text?: React.ReactNode;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
/** Кастомный компонент с обязательным пропсом children, в него будут вставлены элементы кнопки и накинуты стили */
|
|
10
|
+
customComponent?: ReactElement<{
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
} & {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>;
|
|
16
|
+
/** Тип длины, fill --- заполнит, hug --- подгонит под контент */
|
|
17
|
+
width?: 'fill' | 'hug';
|
|
18
|
+
/** Тип высоты, fill --- заполнит, hug --- подгонит под контент */
|
|
19
|
+
height?: 'fill' | 'hug';
|
|
20
|
+
/** Дополнительные имена стилей */
|
|
21
|
+
additionStyles?: string | string[];
|
|
22
|
+
theme?: "light" | "dark";
|
|
23
|
+
mark?: 'info' | 'error' | 'success';
|
|
24
|
+
};
|
|
25
|
+
export declare function TabButtons(props: PropsType): JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { TabButtons } from "../../../ui";
|
|
2
|
+
import React from "react";
|
|
3
|
+
type TabFrameTabItemType = React.ComponentProps<typeof TabButtons>;
|
|
4
|
+
type TabFrameTabListType = TabFrameTabItemType[];
|
|
5
|
+
type PropsType = {
|
|
6
|
+
tabs?: TabFrameTabListType;
|
|
7
|
+
width?: 'fill' | 'hug';
|
|
8
|
+
/** Дополнительные имена стилей */
|
|
9
|
+
additionStyles?: string | string[];
|
|
10
|
+
theme?: 'light' | 'dark';
|
|
11
|
+
};
|
|
12
|
+
export declare function TabFrame(props: PropsType): JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -6,18 +6,8 @@ type BasePropsType = FieldPropsType<ValueType> & {
|
|
|
6
6
|
/**
|
|
7
7
|
* Формат даты ввода пользователя.
|
|
8
8
|
*
|
|
9
|
-
* Пример: `dd.MM.yyyy`.
|
|
10
|
-
*
|
|
11
9
|
* ---
|
|
12
|
-
*
|
|
13
|
-
* * `dd` - день.
|
|
14
|
-
* * `MM` - месяц.
|
|
15
|
-
* * `yyyy` - год.
|
|
16
|
-
* * `mm` - минуты.
|
|
17
|
-
* * `HH` - часы.
|
|
18
|
-
* * `ss` - секунды.
|
|
19
|
-
*
|
|
20
|
-
* **Замечание**: При указание формата вывода с разделителем `T`, указывайте его так `'T'`
|
|
10
|
+
* Для ознакомления с обозначениями {@link DATE_IMASK_BLOCKS}
|
|
21
11
|
* */
|
|
22
12
|
inputFormat?: string;
|
|
23
13
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ui';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FieldPropsType } from "../../../../hooks";
|
|
3
|
+
type ValueType = [string | undefined, string | undefined];
|
|
4
|
+
type PropsType = FieldPropsType<ValueType> & {
|
|
5
|
+
text1?: React.ReactNode;
|
|
6
|
+
text2?: React.ReactNode;
|
|
7
|
+
icon1?: React.ReactNode;
|
|
8
|
+
icon2?: React.ReactNode;
|
|
9
|
+
placeholder1?: string;
|
|
10
|
+
placeholder2?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Формат даты ввода пользователя.
|
|
13
|
+
*
|
|
14
|
+
* ---
|
|
15
|
+
* Для ознакомления с обозначениями {@link DATE_IMASK_BLOCKS}
|
|
16
|
+
* */
|
|
17
|
+
inputFormat?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Формат даты, которая будет хранится в `value`.
|
|
20
|
+
*
|
|
21
|
+
* Пример: `yyyy-MM-dd`. Для более подробной информации по обозначениям смотрите тип {@link inputFormat}
|
|
22
|
+
* */
|
|
23
|
+
outFormat?: string;
|
|
24
|
+
};
|
|
25
|
+
export declare function FormDateRangeField(props: PropsType): JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IMaskInput } from "react-imask";
|
|
3
|
+
import type { ExtendFactoryArgOptions } from "imask/masked/factory";
|
|
4
|
+
import { BlockExtraOptions } from "imask/masked/pattern";
|
|
5
|
+
type PropsType = React.ComponentProps<typeof IMaskInput> & {
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
text?: React.ReactNode;
|
|
8
|
+
divider?: boolean;
|
|
9
|
+
blocks?: {
|
|
10
|
+
[key: string]: ExtendFactoryArgOptions<BlockExtraOptions>;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare function Mask(props: PropsType): JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IMaskInput } from "react-imask";
|
|
3
|
-
import { BlockExtraOptions } from "imask/masked/pattern";
|
|
4
|
-
import type { ExtendFactoryArgOptions } from "imask/masked/factory";
|
|
5
3
|
import { FieldPropsType } from "../../../../hooks";
|
|
4
|
+
import { IMaskBlockType } from "../../../../const";
|
|
6
5
|
type FieldSettingsType = {
|
|
7
6
|
typeDisplay?: 'display' | 'display-l';
|
|
8
7
|
disabled?: boolean;
|
|
@@ -17,9 +16,7 @@ type FieldSettingsType = {
|
|
|
17
16
|
};
|
|
18
17
|
type BasePropsType = FieldSettingsType & FieldPropsType<string>;
|
|
19
18
|
type PropsType = Omit<React.ComponentProps<typeof IMaskInput>, keyof BasePropsType> & BasePropsType & {
|
|
20
|
-
blocks?:
|
|
21
|
-
[key: string]: ExtendFactoryArgOptions<BlockExtraOptions>;
|
|
22
|
-
};
|
|
19
|
+
blocks?: IMaskBlockType;
|
|
23
20
|
};
|
|
24
21
|
export declare const FormFieldBase: React.ForwardRefExoticComponent<Omit<PropsType, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
22
|
export {};
|
|
@@ -13,6 +13,7 @@ type PropsType<D, M extends boolean> = FieldPropsType<GetValueType<D, M>> & {
|
|
|
13
13
|
options?: OptionsType<D>;
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
required?: boolean;
|
|
16
|
+
theme?: 'dark' | 'light';
|
|
16
17
|
};
|
|
17
18
|
export declare function FormRadioField<D, M extends boolean = false>(props: PropsType<D, M>): JSX.Element;
|
|
18
19
|
export {};
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement, ReactNode } from "react";
|
|
2
|
-
export type DimensionType = 'fill' | 'hug';
|
|
3
|
-
export type TabButtonsPropsType = Omit<React.ComponentProps<'button'>, '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
|
-
theme?: "light" | "dark";
|
|
24
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TabButtonsTypes';
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
/** Дополнительные имена стилей */
|
|
8
|
-
additionStyles?: string | string[];
|
|
9
|
-
theme?: 'light' | 'dark';
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TabFrameTypes';
|