@commonsku/styles 1.15.1 → 1.16.0
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.d.ts +558 -32
- package/dist/index.es.js +31 -60
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +32 -67
- package/dist/index.js.map +1 -1
- package/dist/styles/Artwork.d.ts +1 -0
- package/dist/styles/Artwork.d.ts.map +1 -1
- package/dist/styles/Img.d.ts.map +1 -1
- package/dist/styles/Input.d.ts +9 -9
- package/dist/styles/Input.d.ts.map +1 -1
- package/dist/styles/MultiProgress.d.ts +1 -1
- package/dist/styles/Select.d.ts +548 -30
- package/dist/styles/Select.d.ts.map +1 -1
- package/dist/styles/icons/CheckboxIcon.d.ts +3 -1
- package/dist/styles/icons/CheckboxIcon.d.ts.map +1 -1
- package/package.json +9 -17
package/dist/styles/Artwork.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare type ArtworkProps = {
|
|
|
13
13
|
onEdit?: Function | VoidFunction;
|
|
14
14
|
onDelete?: Function | VoidFunction;
|
|
15
15
|
onSave?: Function | VoidFunction;
|
|
16
|
+
onError?: Function | VoidFunction;
|
|
16
17
|
onDownload?: Function | VoidFunction;
|
|
17
18
|
inputProps?: InputProps;
|
|
18
19
|
inputEl?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Artwork.d.ts","sourceRoot":"","sources":["../src/@commonsku/styles/Artwork.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAQ,UAAU,EAAC,MAAM,SAAS,CAAA;AAGzC,OAAO,EAAgB,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAkFhE,oBAAY,YAAY,GAAG;IACzB,OAAO,CAAC,EAAC,MAAM,CAAC;IAChB,IAAI,CAAC,EAAC,MAAM,CAAC;IACb,IAAI,EAAC,MAAM,CAAC;IACZ,SAAS,CAAC,EAAC,MA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MAAM,CAAC,EAAC,QAAQ,GAAC,YAAY,CAAC;IAC9B,OAAO,CAAC,EAAC,QAAQ,GAAC,YAAY,CAAC;IAC/B,UAAU,CAAC,EAAC,QAAQ,GAAC,YAAY,CAAC;IAClC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAC,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,OAAO,6BAGf,YAAY,GAAG,gBAAgB,gBAkCnC,CAAA"}
|
package/dist/styles/Img.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Img.d.ts","sourceRoot":"","sources":["../src/@commonsku/styles/Img.js"],"names":[],"mappings":"AAKA;IACE,wBAOC;IALC;;;MAGC;IAgBH,gBAqBC;IAlCD,uDAOC;IACD,6BAIC;IAiBC,oCAI4E;IAE9E,
|
|
1
|
+
{"version":3,"file":"Img.d.ts","sourceRoot":"","sources":["../src/@commonsku/styles/Img.js"],"names":[],"mappings":"AAKA;IACE,wBAOC;IALC;;;MAGC;IAgBH,gBAqBC;IAlCD,uDAOC;IACD,6BAIC;IAiBC,oCAI4E;IAE9E,sBASC;CACF"}
|
package/dist/styles/Input.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { CSSProperties } from 'react';
|
|
2
|
-
import { StyledComponent } from 'styled-components';
|
|
3
2
|
import { SharedStyleTypes } from './SharedStyles';
|
|
4
3
|
import { RadioIconProps } from './icons/RadioIcon';
|
|
5
4
|
import { CheckboxIconProps } from './icons/CheckboxIcon';
|
|
@@ -11,14 +10,14 @@ declare type BaseInputProps = CommonInputProp & {
|
|
|
11
10
|
hasIcon?: boolean;
|
|
12
11
|
} & SharedStyleTypes;
|
|
13
12
|
export declare type InputProps = BaseInputProps & React.InputHTMLAttributes<HTMLInputElement>;
|
|
14
|
-
export declare const InputIconLabel: StyledComponent<"div", any, CommonInputProp & {
|
|
13
|
+
export declare const InputIconLabel: import("styled-components").StyledComponent<"div", any, CommonInputProp & {
|
|
15
14
|
isActive?: boolean | undefined;
|
|
16
15
|
isDisabled?: boolean | undefined;
|
|
17
16
|
isHover?: boolean | undefined;
|
|
18
17
|
iconPosition?: "left" | "right" | undefined;
|
|
19
18
|
}, never>;
|
|
20
|
-
export declare const InputIconLabelContainer: StyledComponent<"div", any, {}, never>;
|
|
21
|
-
export declare const Input: StyledComponent<"input", any, CommonInputProp & {
|
|
19
|
+
export declare const InputIconLabelContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
20
|
+
export declare const Input: import("styled-components").StyledComponent<"input", any, CommonInputProp & {
|
|
22
21
|
hasIcon?: boolean | undefined;
|
|
23
22
|
} & SharedStyleTypes, never>;
|
|
24
23
|
export declare const LabeledInput: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & CommonInputProp & {
|
|
@@ -39,23 +38,23 @@ export declare const LabeledIconInput: React.ForwardRefExoticComponent<React.Inp
|
|
|
39
38
|
iconPosition?: "left" | "right" | undefined;
|
|
40
39
|
iconLabelStyles?: React.CSSProperties | undefined;
|
|
41
40
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
42
|
-
export declare const CheckboxLabel: StyledComponent<"label", any, {
|
|
41
|
+
export declare const CheckboxLabel: import("styled-components").StyledComponent<"label", any, {
|
|
43
42
|
disabled?: boolean | undefined;
|
|
44
43
|
}, never>;
|
|
45
|
-
export declare const RadioLabel: StyledComponent<"label", any, {
|
|
44
|
+
export declare const RadioLabel: import("styled-components").StyledComponent<"label", any, {
|
|
46
45
|
disabled?: boolean | undefined;
|
|
47
46
|
}, never>;
|
|
48
47
|
declare type BaseRadioProps = {
|
|
49
48
|
isHovering?: boolean;
|
|
50
49
|
};
|
|
51
50
|
export declare type RadioProps = React.InputHTMLAttributes<HTMLInputElement> & BaseRadioProps;
|
|
52
|
-
export declare const Radio: StyledComponent<"input", any, BaseRadioProps, never>;
|
|
53
|
-
export declare const CheckMark: StyledComponent<"span", any, {
|
|
51
|
+
export declare const Radio: import("styled-components").StyledComponent<"input", any, BaseRadioProps, never>;
|
|
52
|
+
export declare const CheckMark: import("styled-components").StyledComponent<"span", any, {
|
|
54
53
|
checked?: boolean | undefined;
|
|
55
54
|
isHovering?: boolean | undefined;
|
|
56
55
|
disabled?: boolean | undefined;
|
|
57
56
|
} & SharedStyleTypes, never>;
|
|
58
|
-
export declare const Dot: StyledComponent<"span", any, {
|
|
57
|
+
export declare const Dot: import("styled-components").StyledComponent<"span", any, {
|
|
59
58
|
checked?: boolean | undefined;
|
|
60
59
|
isHovering?: boolean | undefined;
|
|
61
60
|
disabled?: boolean | undefined;
|
|
@@ -100,6 +99,7 @@ export declare type LabeledCheckboxProps = {
|
|
|
100
99
|
stopPropagation?: boolean;
|
|
101
100
|
labelProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
|
|
102
101
|
checkboxIconProps?: CheckboxIconProps;
|
|
102
|
+
indeterminate?: boolean;
|
|
103
103
|
[key: string]: any;
|
|
104
104
|
} & React.InputHTMLAttributes<HTMLInputElement>;
|
|
105
105
|
export declare const LabeledCheckbox: React.ForwardRefExoticComponent<LabeledCheckboxProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../src/@commonsku/styles/Input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAoB,aAAa,EAAa,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../src/@commonsku/styles/Input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAoB,aAAa,EAAa,MAAM,OAAO,CAAA;AAGzE,OAAO,EAAgB,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAKhE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,aAAK,eAAe,GAAG;IACrB,QAAQ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AE,MAAM,GAAG,GAAG,CAAC;CACpB,GAAG,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AAEhD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,yBAAyB,CAAC,oBAAoB,CAkD9E,CAAC"}
|
|
@@ -13,7 +13,7 @@ declare type ProgressBarsProps = React.PropsWithChildren<{
|
|
|
13
13
|
error?: string;
|
|
14
14
|
title?: string;
|
|
15
15
|
} & SharedStyleTypes>;
|
|
16
|
-
declare const MultiProgress: ({ labeled, error, values, max, ...props }: {
|
|
16
|
+
declare const MultiProgress: ({ labeled, error, values, max: maxVal, ...props }: {
|
|
17
17
|
values: ProgressBarValue[];
|
|
18
18
|
max: number;
|
|
19
19
|
color?: string | undefined;
|