infinity-ui-elements 1.8.62 → 1.8.63
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/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/Switch/Switch.d.ts +14 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.stories.d.ts +11 -0
- package/dist/components/Switch/Switch.stories.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.esm.js +104 -31
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +104 -31
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,QAAA,MAAM,aAAa;;;;;;mFA6ElB,CAAC;AAEF,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACjE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,QAAA,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,QAAA,MAAM,aAAa;;;;;;mFA6ElB,CAAC;AAEF,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACjE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,QAAA,MAAM,KAAK,qFAkNV,CAAC;AAIF,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,22 +1,36 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
declare const switchVariants: (props?: ({
|
|
3
3
|
size?: "medium" | "large" | "small" | null | undefined;
|
|
4
|
+
validationState?: "none" | "error" | null | undefined;
|
|
4
5
|
isChecked?: boolean | null | undefined;
|
|
5
6
|
isDisabled?: boolean | null | undefined;
|
|
7
|
+
isFocused?: boolean | null | undefined;
|
|
6
8
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
9
|
export interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
8
10
|
/**
|
|
9
11
|
* Label text to display next to the switch
|
|
10
12
|
*/
|
|
11
13
|
label?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Error text to display below the switch
|
|
16
|
+
*/
|
|
17
|
+
errorText?: string;
|
|
12
18
|
/**
|
|
13
19
|
* Size of the switch
|
|
14
20
|
*/
|
|
15
21
|
size?: "small" | "medium" | "large";
|
|
22
|
+
/**
|
|
23
|
+
* Validation state of the switch
|
|
24
|
+
*/
|
|
25
|
+
validationState?: "none" | "error";
|
|
16
26
|
/**
|
|
17
27
|
* Whether the switch is disabled
|
|
18
28
|
*/
|
|
19
29
|
isDisabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Whether to show error text (defaults to true if errorText is provided)
|
|
32
|
+
*/
|
|
33
|
+
showErrorText?: boolean;
|
|
20
34
|
/**
|
|
21
35
|
* Custom class name for the container
|
|
22
36
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,QAAA,MAAM,cAAc;;;;;;mFAkFnB,CAAC;AA0DF,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACjE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,QAAA,MAAM,MAAM,sFA8LX,CAAC;AAIF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -12,6 +12,11 @@ declare const meta: {
|
|
|
12
12
|
options: string[];
|
|
13
13
|
description: string;
|
|
14
14
|
};
|
|
15
|
+
validationState: {
|
|
16
|
+
control: "select";
|
|
17
|
+
options: string[];
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
15
20
|
isDisabled: {
|
|
16
21
|
control: "boolean";
|
|
17
22
|
description: string;
|
|
@@ -20,6 +25,10 @@ declare const meta: {
|
|
|
20
25
|
control: "text";
|
|
21
26
|
description: string;
|
|
22
27
|
};
|
|
28
|
+
errorText: {
|
|
29
|
+
control: "text";
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
23
32
|
};
|
|
24
33
|
};
|
|
25
34
|
export default meta;
|
|
@@ -32,6 +41,8 @@ export declare const Large: Story;
|
|
|
32
41
|
export declare const Checked: Story;
|
|
33
42
|
export declare const Disabled: Story;
|
|
34
43
|
export declare const DisabledChecked: Story;
|
|
44
|
+
export declare const WithError: Story;
|
|
45
|
+
export declare const ErrorChecked: Story;
|
|
35
46
|
export declare const AllSizes: Story;
|
|
36
47
|
export declare const AllStates: Story;
|
|
37
48
|
//# sourceMappingURL=Switch.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"Switch.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAenC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAQ7B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAS1B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,KAwOvB,CAAC"}
|