@openorgus/react 0.1.3 → 0.1.4
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/Button.d.ts +60 -6
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/ButtonGroup.d.ts +60 -6
- package/dist/components/ButtonGroup.d.ts.map +1 -1
- package/dist/components/Radio.d.ts +60 -6
- package/dist/components/Radio.d.ts.map +1 -1
- package/dist/components/Rating.d.ts +60 -6
- package/dist/components/Rating.d.ts.map +1 -1
- package/dist/openorgus-react.es.js +4309 -4256
- package/dist/openorgus-react.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,65 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ComponentProps, DesignSystem, GlobalConfig, GranularStyles } from '../types';
|
|
3
2
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export type DesignSystem = 'Custom' | 'MUI' | 'Apple';
|
|
4
|
+
export interface ComponentProps {
|
|
5
|
+
variant: string;
|
|
6
|
+
size: string;
|
|
7
|
+
orientation: 'horizontal' | 'vertical';
|
|
8
|
+
textAlign: 'left' | 'center' | 'right';
|
|
9
|
+
iconStyle: 'filled' | 'outlined' | 'rounded' | 'sharp' | 'two-tone';
|
|
10
|
+
isDisabled: boolean;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
isError: boolean;
|
|
13
|
+
isChecked: boolean;
|
|
14
|
+
isIndeterminate: boolean;
|
|
15
|
+
isHovered: boolean;
|
|
16
|
+
isFocused: boolean;
|
|
17
|
+
isActive: boolean;
|
|
18
|
+
isTouched: boolean;
|
|
19
|
+
text: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GranularStyles {
|
|
22
|
+
width: string;
|
|
23
|
+
height: string;
|
|
24
|
+
paddingX: number;
|
|
25
|
+
paddingY: number;
|
|
26
|
+
marginTop: number;
|
|
27
|
+
marginBottom: number;
|
|
28
|
+
borderTopWidth: number;
|
|
29
|
+
borderRightWidth: number;
|
|
30
|
+
borderBottomWidth: number;
|
|
31
|
+
borderLeftWidth: number;
|
|
32
|
+
borderColor: string;
|
|
33
|
+
borderRadius: number;
|
|
34
|
+
opacity: number;
|
|
35
|
+
boxShadow: string;
|
|
36
|
+
animation: string;
|
|
37
|
+
fontWeight: string;
|
|
38
|
+
letterSpacing: string;
|
|
39
|
+
}
|
|
40
|
+
export interface GlobalConfig {
|
|
41
|
+
primaryColor: string;
|
|
42
|
+
secondaryColor?: string;
|
|
43
|
+
tertiaryColor?: string;
|
|
44
|
+
baseRadius: number;
|
|
45
|
+
activeFont?: string;
|
|
46
|
+
iconSize?: number;
|
|
47
|
+
iconColor?: 'default' | 'primary' | 'secondary' | 'custom';
|
|
48
|
+
iconCustomColor?: string;
|
|
49
|
+
illustrationSize?: number;
|
|
50
|
+
illustrationColor?: 'default' | 'primary' | 'secondary' | 'custom';
|
|
51
|
+
illustrationCustomColor?: string;
|
|
52
|
+
cursorEffect?: string;
|
|
53
|
+
cursorColor?: string;
|
|
54
|
+
cursorSecondaryColor?: string;
|
|
55
|
+
cursorTertiaryColor?: string;
|
|
56
|
+
}
|
|
57
|
+
interface ButtonProps {
|
|
58
|
+
designSystem: DesignSystem;
|
|
59
|
+
componentProps: ComponentProps;
|
|
60
|
+
globalConfig: GlobalConfig;
|
|
61
|
+
granularStyles: GranularStyles;
|
|
9
62
|
}
|
|
10
63
|
export declare const Button: React.FC<ButtonProps>;
|
|
64
|
+
export {};
|
|
11
65
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM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AY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IAC3D,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IACnE,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAwGD,UAAU,WAAW;IACnB,YAAY,EAAE,YAAY,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;IAC/B,YAAY,EAAE,YAAY,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkBxC,CAAC"}
|
|
@@ -1,11 +1,65 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ComponentProps, DesignSystem, GlobalConfig, GranularStyles } from '../types';
|
|
3
2
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export type DesignSystem = 'Custom' | 'MUI' | 'Apple';
|
|
4
|
+
export interface ComponentProps {
|
|
5
|
+
variant: string;
|
|
6
|
+
size: string;
|
|
7
|
+
orientation: 'horizontal' | 'vertical';
|
|
8
|
+
textAlign: 'left' | 'center' | 'right';
|
|
9
|
+
iconStyle: 'filled' | 'outlined' | 'rounded' | 'sharp' | 'two-tone';
|
|
10
|
+
isDisabled: boolean;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
isError: boolean;
|
|
13
|
+
isChecked: boolean;
|
|
14
|
+
isIndeterminate: boolean;
|
|
15
|
+
isHovered: boolean;
|
|
16
|
+
isFocused: boolean;
|
|
17
|
+
isActive: boolean;
|
|
18
|
+
isTouched: boolean;
|
|
19
|
+
text: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GranularStyles {
|
|
22
|
+
width: string;
|
|
23
|
+
height: string;
|
|
24
|
+
paddingX: number;
|
|
25
|
+
paddingY: number;
|
|
26
|
+
marginTop: number;
|
|
27
|
+
marginBottom: number;
|
|
28
|
+
borderTopWidth: number;
|
|
29
|
+
borderRightWidth: number;
|
|
30
|
+
borderBottomWidth: number;
|
|
31
|
+
borderLeftWidth: number;
|
|
32
|
+
borderColor: string;
|
|
33
|
+
borderRadius: number;
|
|
34
|
+
opacity: number;
|
|
35
|
+
boxShadow: string;
|
|
36
|
+
animation: string;
|
|
37
|
+
fontWeight: string;
|
|
38
|
+
letterSpacing: string;
|
|
39
|
+
}
|
|
40
|
+
export interface GlobalConfig {
|
|
41
|
+
primaryColor: string;
|
|
42
|
+
secondaryColor?: string;
|
|
43
|
+
tertiaryColor?: string;
|
|
44
|
+
baseRadius: number;
|
|
45
|
+
activeFont?: string;
|
|
46
|
+
iconSize?: number;
|
|
47
|
+
iconColor?: 'default' | 'primary' | 'secondary' | 'custom';
|
|
48
|
+
iconCustomColor?: string;
|
|
49
|
+
illustrationSize?: number;
|
|
50
|
+
illustrationColor?: 'default' | 'primary' | 'secondary' | 'custom';
|
|
51
|
+
illustrationCustomColor?: string;
|
|
52
|
+
cursorEffect?: string;
|
|
53
|
+
cursorColor?: string;
|
|
54
|
+
cursorSecondaryColor?: string;
|
|
55
|
+
cursorTertiaryColor?: string;
|
|
56
|
+
}
|
|
57
|
+
interface ButtonGroupProps {
|
|
58
|
+
designSystem: DesignSystem;
|
|
59
|
+
componentProps: ComponentProps;
|
|
60
|
+
globalConfig: GlobalConfig;
|
|
61
|
+
granularStyles: GranularStyles;
|
|
9
62
|
}
|
|
10
63
|
export declare const ButtonGroup: React.FC<ButtonGroupProps>;
|
|
64
|
+
export {};
|
|
11
65
|
//# sourceMappingURL=ButtonGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../src/components/ButtonGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../src/components/ButtonGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAC;AAEtD,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,YAAY,GAAG,UAAU,CAAC;IACvC,SAAS,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACvC,SAAS,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;IAEpE,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,E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c,EAAE,cAAc,CAAC;CAChC;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0ClD,CAAC"}
|
|
@@ -1,11 +1,65 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ComponentProps, DesignSystem, GlobalConfig, GranularStyles } from '../types';
|
|
3
2
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export type DesignSystem = 'Custom' | 'MUI' | 'Apple';
|
|
4
|
+
export interface ComponentProps {
|
|
5
|
+
variant: string;
|
|
6
|
+
size: string;
|
|
7
|
+
orientation: 'horizontal' | 'vertical';
|
|
8
|
+
textAlign: 'left' | 'center' | 'right';
|
|
9
|
+
iconStyle: 'filled' | 'outlined' | 'rounded' | 'sharp' | 'two-tone';
|
|
10
|
+
isDisabled: boolean;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
isError: boolean;
|
|
13
|
+
isChecked: boolean;
|
|
14
|
+
isIndeterminate: boolean;
|
|
15
|
+
isHovered: boolean;
|
|
16
|
+
isFocused: boolean;
|
|
17
|
+
isActive: boolean;
|
|
18
|
+
isTouched: boolean;
|
|
19
|
+
text: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GranularStyles {
|
|
22
|
+
width: string;
|
|
23
|
+
height: string;
|
|
24
|
+
paddingX: number;
|
|
25
|
+
paddingY: number;
|
|
26
|
+
marginTop: number;
|
|
27
|
+
marginBottom: number;
|
|
28
|
+
borderTopWidth: number;
|
|
29
|
+
borderRightWidth: number;
|
|
30
|
+
borderBottomWidth: number;
|
|
31
|
+
borderLeftWidth: number;
|
|
32
|
+
borderColor: string;
|
|
33
|
+
borderRadius: number;
|
|
34
|
+
opacity: number;
|
|
35
|
+
boxShadow: string;
|
|
36
|
+
animation: string;
|
|
37
|
+
fontWeight: string;
|
|
38
|
+
letterSpacing: string;
|
|
39
|
+
}
|
|
40
|
+
export interface GlobalConfig {
|
|
41
|
+
primaryColor: string;
|
|
42
|
+
secondaryColor?: string;
|
|
43
|
+
tertiaryColor?: string;
|
|
44
|
+
baseRadius: number;
|
|
45
|
+
activeFont?: string;
|
|
46
|
+
iconSize?: number;
|
|
47
|
+
iconColor?: 'default' | 'primary' | 'secondary' | 'custom';
|
|
48
|
+
iconCustomColor?: string;
|
|
49
|
+
illustrationSize?: number;
|
|
50
|
+
illustrationColor?: 'default' | 'primary' | 'secondary' | 'custom';
|
|
51
|
+
illustrationCustomColor?: string;
|
|
52
|
+
cursorEffect?: string;
|
|
53
|
+
cursorColor?: string;
|
|
54
|
+
cursorSecondaryColor?: string;
|
|
55
|
+
cursorTertiaryColor?: string;
|
|
56
|
+
}
|
|
57
|
+
interface RadioProps {
|
|
58
|
+
designSystem: DesignSystem;
|
|
59
|
+
componentProps: ComponentProps;
|
|
60
|
+
globalConfig: GlobalConfig;
|
|
61
|
+
granularStyles: GranularStyles;
|
|
9
62
|
}
|
|
10
63
|
export declare const Radio: React.FC<RadioProps>;
|
|
64
|
+
export {};
|
|
11
65
|
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../src/components/Radio.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../src/components/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAC;AAEtD,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,YAAY,GAAG,UAAU,CAAC;IACvC,SAAS,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACvC,SAAS,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,UA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E,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IACnE,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAsDD,UAAU,UAAU;IAClB,YAAY,EAAE,YAAY,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;IAC/B,YAAY,EAAE,YAAY,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAuBtC,CAAC"}
|
|
@@ -1,11 +1,65 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ComponentProps, DesignSystem, GlobalConfig, GranularStyles } from '../types';
|
|
3
2
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export type DesignSystem = 'Custom' | 'MUI' | 'Apple';
|
|
4
|
+
export interface ComponentProps {
|
|
5
|
+
variant: string;
|
|
6
|
+
size: string;
|
|
7
|
+
orientation: 'horizontal' | 'vertical';
|
|
8
|
+
textAlign: 'left' | 'center' | 'right';
|
|
9
|
+
iconStyle: 'filled' | 'outlined' | 'rounded' | 'sharp' | 'two-tone';
|
|
10
|
+
isDisabled: boolean;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
isError: boolean;
|
|
13
|
+
isChecked: boolean;
|
|
14
|
+
isIndeterminate: boolean;
|
|
15
|
+
isHovered: boolean;
|
|
16
|
+
isFocused: boolean;
|
|
17
|
+
isActive: boolean;
|
|
18
|
+
isTouched: boolean;
|
|
19
|
+
text: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GranularStyles {
|
|
22
|
+
width: string;
|
|
23
|
+
height: string;
|
|
24
|
+
paddingX: number;
|
|
25
|
+
paddingY: number;
|
|
26
|
+
marginTop: number;
|
|
27
|
+
marginBottom: number;
|
|
28
|
+
borderTopWidth: number;
|
|
29
|
+
borderRightWidth: number;
|
|
30
|
+
borderBottomWidth: number;
|
|
31
|
+
borderLeftWidth: number;
|
|
32
|
+
borderColor: string;
|
|
33
|
+
borderRadius: number;
|
|
34
|
+
opacity: number;
|
|
35
|
+
boxShadow: string;
|
|
36
|
+
animation: string;
|
|
37
|
+
fontWeight: string;
|
|
38
|
+
letterSpacing: string;
|
|
39
|
+
}
|
|
40
|
+
export interface GlobalConfig {
|
|
41
|
+
primaryColor: string;
|
|
42
|
+
secondaryColor?: string;
|
|
43
|
+
tertiaryColor?: string;
|
|
44
|
+
baseRadius: number;
|
|
45
|
+
activeFont?: string;
|
|
46
|
+
iconSize?: number;
|
|
47
|
+
iconColor?: 'default' | 'primary' | 'secondary' | 'custom';
|
|
48
|
+
iconCustomColor?: string;
|
|
49
|
+
illustrationSize?: number;
|
|
50
|
+
illustrationColor?: 'default' | 'primary' | 'secondary' | 'custom';
|
|
51
|
+
illustrationCustomColor?: string;
|
|
52
|
+
cursorEffect?: string;
|
|
53
|
+
cursorColor?: string;
|
|
54
|
+
cursorSecondaryColor?: string;
|
|
55
|
+
cursorTertiaryColor?: string;
|
|
56
|
+
}
|
|
57
|
+
interface RatingProps {
|
|
58
|
+
designSystem: DesignSystem;
|
|
59
|
+
componentProps: ComponentProps;
|
|
60
|
+
globalConfig: GlobalConfig;
|
|
61
|
+
granularStyles: GranularStyles;
|
|
9
62
|
}
|
|
10
63
|
export declare const Rating: React.FC<RatingProps>;
|
|
64
|
+
export {};
|
|
11
65
|
//# sourceMappingURL=Rating.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rating.d.ts","sourceRoot":"","sources":["../../src/components/Rating.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Rating.d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