indicator-ui 0.0.271 → 0.0.273

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,21 +1,11 @@
1
1
  import React from "react";
2
2
  import { CheckboxMarkIndeterminateType, CheckboxMarkRelationType, CheckboxMarkTypeType } from "../../CheckboxMark";
3
- export type CheckboxClassNameType = {
4
- checkbox?: string;
5
- disabled?: string;
6
- error?: string;
7
- textBlock?: string;
8
- text?: string;
9
- textBold?: string;
10
- hover?: string;
11
- focus?: string;
12
- indeterminate?: string;
13
- supportingText?: string;
14
- widthFill?: string;
15
- heightFill?: string;
16
- widthHug?: string;
17
- heightHug?: string;
18
- };
3
+ type AdditionElementPropsType = {
4
+ isHover?: boolean;
5
+ checked?: boolean;
6
+ disabled?: boolean;
7
+ } & Record<string, unknown>;
8
+ type AdditionElementType = React.ReactElement<AdditionElementPropsType>;
19
9
  export type CheckboxPropsType = {
20
10
  checked?: boolean;
21
11
  type?: CheckboxMarkTypeType;
@@ -36,5 +26,21 @@ export type CheckboxPropsType = {
36
26
  * Добавочные имена стилей. ```className="main-style addition-style-1 addition-style-2..."```
37
27
  * */
38
28
  additionStyle?: string | string[];
39
- className?: CheckboxClassNameType;
29
+ /**
30
+ * Элемент перед Checkbox
31
+ * */
32
+ beforeElement?: AdditionElementType;
33
+ /**
34
+ * Элемент после Checkbox
35
+ * */
36
+ afterElement?: AdditionElementType;
37
+ /**
38
+ * Элемент перед text
39
+ * */
40
+ textBeforeElement?: AdditionElementType;
41
+ /**
42
+ * Элемент после text
43
+ * */
44
+ textAfterElement?: AdditionElementType;
40
45
  };
46
+ export {};
@@ -1,2 +1,2 @@
1
1
  import { CheckboxPropsType } from "../types";
2
- export declare function Checkbox({ checked, type, error, subtype, disabled, text, supportingText, indeterminate, onClick, width, height, onCheckboxMarkClick, additionStyle, }: CheckboxPropsType): JSX.Element;
2
+ export declare function Checkbox({ checked, type, error, subtype, disabled, text, supportingText, indeterminate, onClick, width, height, onCheckboxMarkClick, additionStyle, beforeElement, afterElement, textBeforeElement, textAfterElement, }: CheckboxPropsType): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.0.271",
3
+ "version": "0.0.273",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",