@coorpacademy/components 11.40.6-alpha.7 → 11.40.6
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/es/atom/button-link/index.d.ts +8 -15
- package/es/atom/button-link/index.d.ts.map +1 -1
- package/es/atom/button-link/index.js +37 -75
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/types.d.ts +14 -20
- package/es/atom/button-link/types.d.ts.map +1 -1
- package/es/atom/button-link/types.js +3 -4
- package/es/atom/button-link/types.js.map +1 -1
- package/es/atom/button-menu/index.d.ts +3 -1
- package/es/atom/button-menu/index.d.ts.map +1 -1
- package/es/atom/button-menu/index.js +7 -1
- package/es/atom/button-menu/index.js.map +1 -1
- package/es/atom/button-menu/types.d.ts +6 -2
- package/es/atom/button-menu/types.d.ts.map +1 -1
- package/es/atom/radio-with-title/index.d.ts +8 -15
- package/es/atom/radio-with-title/index.d.ts.map +1 -1
- package/es/atom/radio-with-title/types.d.ts +8 -15
- package/es/atom/radio-with-title/types.d.ts.map +1 -1
- package/es/atom/title/index.d.ts +8 -15
- package/es/molecule/bullet-point-menu-button/index.d.ts +3 -1
- package/es/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
- package/es/molecule/bullet-point-menu-button/types.d.ts +3 -1
- package/es/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
- package/es/molecule/button-menu-action/index.d.ts +11 -19
- package/es/molecule/button-menu-action/index.d.ts.map +1 -1
- package/es/molecule/button-menu-action/index.js +3 -27
- package/es/molecule/button-menu-action/index.js.map +1 -1
- package/es/molecule/button-menu-action/types.d.ts +12 -22
- package/es/molecule/button-menu-action/types.d.ts.map +1 -1
- package/es/molecule/button-menu-action/types.js +2 -7
- package/es/molecule/button-menu-action/types.js.map +1 -1
- package/es/molecule/cm-popin/types.d.ts +85 -133
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/expandible-actionable-table/index.d.ts +14 -17
- package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/es/molecule/expandible-actionable-table/types.d.ts +14 -17
- package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/es/molecule/quick-filters/index.d.ts +8 -15
- package/es/molecule/quick-filters/index.d.ts.map +1 -1
- package/es/molecule/quick-filters/types.d.ts +8 -15
- package/es/molecule/quick-filters/types.d.ts.map +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +8 -15
- package/es/molecule/title-radio-wrapper/index.d.ts +8 -15
- package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +8 -15
- package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/es/organism/content-skill-modal/index.d.ts +68 -115
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +68 -115
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/icon-editor/index.d.ts +8 -15
- package/es/organism/icon-editor/index.d.ts.map +1 -1
- package/es/organism/icon-editor/types.d.ts +8 -15
- package/es/organism/icon-editor/types.d.ts.map +1 -1
- package/es/organism/list-items/index.d.ts +68 -115
- package/es/organism/rewards-form/index.d.ts +8 -15
- package/es/organism/select-opponents/index.d.ts +8 -15
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +8 -15
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/setup-header/index.d.ts +32 -60
- package/es/organism/title-and-input/index.d.ts +24 -45
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +24 -45
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +38 -62
- package/es/template/app-player/loading/index.d.ts +85 -133
- package/es/template/app-player/player/index.d.ts +170 -274
- package/es/template/app-player/player/slides/header/index.d.ts +0 -8
- package/es/template/app-player/player/slides/header/index.d.ts.map +1 -1
- package/es/template/app-player/player/slides/header/index.js +3 -92
- package/es/template/app-player/player/slides/header/index.js.map +1 -1
- package/es/template/app-player/player/slides/header/style.css +1 -1
- package/es/template/app-player/player/slides/index.d.ts +85 -141
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +85 -133
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +85 -141
- package/es/template/app-review/index.d.ts +85 -133
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +85 -133
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +85 -133
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-create/index.d.ts +32 -60
- package/es/template/back-office/brand-create/index.d.ts.map +1 -1
- package/es/template/back-office/brand-list/index.d.ts +32 -60
- package/es/template/back-office/brand-list/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +292 -486
- package/es/template/back-office/dashboard-preview/index.d.ts +32 -60
- package/es/template/back-office/layout/index.d.ts +32 -60
- package/es/template/back-office/layout/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.d.ts +170 -266
- package/es/template/common/search-page/index.d.ts +85 -133
- package/es/template/external-course/index.d.ts +85 -133
- package/es/variables/colors.d.ts +0 -1
- package/es/variables/colors.d.ts.map +1 -1
- package/es/variables/colors.js +0 -1
- package/es/variables/colors.js.map +1 -1
- package/lib/atom/button-link/index.d.ts +8 -15
- package/lib/atom/button-link/index.d.ts.map +1 -1
- package/lib/atom/button-link/index.js +37 -75
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/types.d.ts +14 -20
- package/lib/atom/button-link/types.d.ts.map +1 -1
- package/lib/atom/button-link/types.js +3 -4
- package/lib/atom/button-link/types.js.map +1 -1
- package/lib/atom/button-menu/index.d.ts +3 -1
- package/lib/atom/button-menu/index.d.ts.map +1 -1
- package/lib/atom/button-menu/index.js +7 -1
- package/lib/atom/button-menu/index.js.map +1 -1
- package/lib/atom/button-menu/types.d.ts +6 -2
- package/lib/atom/button-menu/types.d.ts.map +1 -1
- package/lib/atom/radio-with-title/index.d.ts +8 -15
- package/lib/atom/radio-with-title/index.d.ts.map +1 -1
- package/lib/atom/radio-with-title/types.d.ts +8 -15
- package/lib/atom/radio-with-title/types.d.ts.map +1 -1
- package/lib/atom/title/index.d.ts +8 -15
- package/lib/molecule/bullet-point-menu-button/index.d.ts +3 -1
- package/lib/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
- package/lib/molecule/bullet-point-menu-button/types.d.ts +3 -1
- package/lib/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
- package/lib/molecule/button-menu-action/index.d.ts +11 -19
- package/lib/molecule/button-menu-action/index.d.ts.map +1 -1
- package/lib/molecule/button-menu-action/index.js +2 -26
- package/lib/molecule/button-menu-action/index.js.map +1 -1
- package/lib/molecule/button-menu-action/types.d.ts +12 -22
- package/lib/molecule/button-menu-action/types.d.ts.map +1 -1
- package/lib/molecule/button-menu-action/types.js +2 -7
- package/lib/molecule/button-menu-action/types.js.map +1 -1
- package/lib/molecule/cm-popin/types.d.ts +85 -133
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/expandible-actionable-table/index.d.ts +14 -17
- package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/lib/molecule/expandible-actionable-table/types.d.ts +14 -17
- package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/lib/molecule/quick-filters/index.d.ts +8 -15
- package/lib/molecule/quick-filters/index.d.ts.map +1 -1
- package/lib/molecule/quick-filters/types.d.ts +8 -15
- package/lib/molecule/quick-filters/types.d.ts.map +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +8 -15
- package/lib/molecule/title-radio-wrapper/index.d.ts +8 -15
- package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +8 -15
- package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/index.d.ts +68 -115
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +68 -115
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/icon-editor/index.d.ts +8 -15
- package/lib/organism/icon-editor/index.d.ts.map +1 -1
- package/lib/organism/icon-editor/types.d.ts +8 -15
- package/lib/organism/icon-editor/types.d.ts.map +1 -1
- package/lib/organism/list-items/index.d.ts +68 -115
- package/lib/organism/rewards-form/index.d.ts +8 -15
- package/lib/organism/select-opponents/index.d.ts +8 -15
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +8 -15
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/setup-header/index.d.ts +32 -60
- package/lib/organism/title-and-input/index.d.ts +24 -45
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +24 -45
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +38 -62
- package/lib/template/app-player/loading/index.d.ts +85 -133
- package/lib/template/app-player/player/index.d.ts +170 -274
- package/lib/template/app-player/player/slides/header/index.d.ts +0 -8
- package/lib/template/app-player/player/slides/header/index.d.ts.map +1 -1
- package/lib/template/app-player/player/slides/header/index.js +3 -92
- package/lib/template/app-player/player/slides/header/index.js.map +1 -1
- package/lib/template/app-player/player/slides/header/style.css +1 -1
- package/lib/template/app-player/player/slides/index.d.ts +85 -141
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +85 -133
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +85 -141
- package/lib/template/app-review/index.d.ts +85 -133
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +85 -133
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +85 -133
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-create/index.d.ts +32 -60
- package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-list/index.d.ts +32 -60
- package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +292 -486
- package/lib/template/back-office/dashboard-preview/index.d.ts +32 -60
- package/lib/template/back-office/layout/index.d.ts +32 -60
- package/lib/template/back-office/layout/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.d.ts +170 -266
- package/lib/template/common/search-page/index.d.ts +85 -133
- package/lib/template/external-course/index.d.ts +85 -133
- package/lib/variables/colors.d.ts +0 -1
- package/lib/variables/colors.d.ts.map +1 -1
- package/lib/variables/colors.js +0 -1
- package/lib/variables/colors.js.map +1 -1
- package/locales/bs/global.json +2 -1
- package/locales/cs/global.json +2 -1
- package/locales/de/global.json +2 -1
- package/locales/en/global.json +2 -1
- package/locales/es/global.json +2 -1
- package/locales/et/global.json +2 -1
- package/locales/fi/global.json +2 -1
- package/locales/fr/global.json +2 -1
- package/locales/hr/global.json +2 -1
- package/locales/hu/global.json +2 -1
- package/locales/hy/global.json +2 -1
- package/locales/it/global.json +2 -1
- package/locales/ja/global.json +2 -1
- package/locales/ko/global.json +2 -1
- package/locales/lt/global.json +2 -1
- package/locales/nl/global.json +2 -1
- package/locales/pl/global.json +2 -1
- package/locales/pt/global.json +2 -1
- package/locales/ro/global.json +2 -1
- package/locales/ru/global.json +2 -1
- package/locales/sk/global.json +2 -1
- package/locales/sl/global.json +2 -1
- package/locales/sv/global.json +2 -1
- package/locales/tl/global.json +2 -1
- package/locales/tr/global.json +2 -1
- package/locales/uk/global.json +2 -1
- package/locales/vi/global.json +2 -1
- package/locales/zh/global.json +2 -1
- package/locales/zh_TW/global.json +2 -1
- package/package.json +2 -2
|
@@ -39,17 +39,7 @@ export declare const propTypes: {
|
|
|
39
39
|
tooltipPlacement: PropTypes.Requireable<string>;
|
|
40
40
|
'data-name': PropTypes.Requireable<string>;
|
|
41
41
|
'data-testid': PropTypes.Requireable<string>;
|
|
42
|
-
icon: PropTypes.Requireable<
|
|
43
|
-
position: PropTypes.Requireable<string>;
|
|
44
|
-
type: PropTypes.Requireable<string>;
|
|
45
|
-
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
46
|
-
name: PropTypes.Validator<string>;
|
|
47
|
-
color: PropTypes.Requireable<string>;
|
|
48
|
-
backgroundColor: PropTypes.Requireable<string>;
|
|
49
|
-
size: PropTypes.Requireable<number>;
|
|
50
|
-
customStyle: PropTypes.Requireable<object>;
|
|
51
|
-
}>>;
|
|
52
|
-
}> | (PropTypes.InferProps<{
|
|
42
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
53
43
|
position: PropTypes.Requireable<string>;
|
|
54
44
|
type: PropTypes.Requireable<string>;
|
|
55
45
|
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -57,9 +47,11 @@ export declare const propTypes: {
|
|
|
57
47
|
color: PropTypes.Requireable<string>;
|
|
58
48
|
backgroundColor: PropTypes.Requireable<string>;
|
|
59
49
|
size: PropTypes.Requireable<number>;
|
|
60
|
-
customStyle: PropTypes.Requireable<
|
|
50
|
+
customStyle: PropTypes.Requireable<{
|
|
51
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
52
|
+
}>;
|
|
61
53
|
}>>;
|
|
62
|
-
}
|
|
54
|
+
}>>;
|
|
63
55
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
64
56
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
65
57
|
href: PropTypes.Requireable<string>;
|
|
@@ -70,8 +62,9 @@ export declare const propTypes: {
|
|
|
70
62
|
hoverColor: PropTypes.Requireable<string>;
|
|
71
63
|
disabled: PropTypes.Requireable<boolean>;
|
|
72
64
|
className: PropTypes.Requireable<string>;
|
|
73
|
-
customStyle: PropTypes.Requireable<
|
|
74
|
-
|
|
65
|
+
customStyle: PropTypes.Requireable<{
|
|
66
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
67
|
+
}>;
|
|
75
68
|
useTitle: PropTypes.Requireable<boolean>;
|
|
76
69
|
customLabelClassName: PropTypes.Requireable<string>;
|
|
77
70
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-with-title/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-with-title/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOrB,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
package/es/atom/title/index.d.ts
CHANGED
|
@@ -39,17 +39,7 @@ declare namespace Title {
|
|
|
39
39
|
tooltipPlacement: PropTypes.Requireable<string>;
|
|
40
40
|
'data-name': PropTypes.Requireable<string>;
|
|
41
41
|
'data-testid': PropTypes.Requireable<string>;
|
|
42
|
-
icon: PropTypes.Requireable<
|
|
43
|
-
position: PropTypes.Requireable<string>;
|
|
44
|
-
type: PropTypes.Requireable<string>;
|
|
45
|
-
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
46
|
-
name: PropTypes.Validator<string>;
|
|
47
|
-
color: PropTypes.Requireable<string>;
|
|
48
|
-
backgroundColor: PropTypes.Requireable<string>;
|
|
49
|
-
size: PropTypes.Requireable<number>;
|
|
50
|
-
customStyle: PropTypes.Requireable<object>;
|
|
51
|
-
}>>;
|
|
52
|
-
}> | (PropTypes.InferProps<{
|
|
42
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
53
43
|
position: PropTypes.Requireable<string>;
|
|
54
44
|
type: PropTypes.Requireable<string>;
|
|
55
45
|
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -57,9 +47,11 @@ declare namespace Title {
|
|
|
57
47
|
color: PropTypes.Requireable<string>;
|
|
58
48
|
backgroundColor: PropTypes.Requireable<string>;
|
|
59
49
|
size: PropTypes.Requireable<number>;
|
|
60
|
-
customStyle: PropTypes.Requireable<
|
|
50
|
+
customStyle: PropTypes.Requireable<{
|
|
51
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
52
|
+
}>;
|
|
61
53
|
}>>;
|
|
62
|
-
}
|
|
54
|
+
}>>;
|
|
63
55
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
64
56
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
65
57
|
href: PropTypes.Requireable<string>;
|
|
@@ -70,8 +62,9 @@ declare namespace Title {
|
|
|
70
62
|
hoverColor: PropTypes.Requireable<string>;
|
|
71
63
|
disabled: PropTypes.Requireable<boolean>;
|
|
72
64
|
className: PropTypes.Requireable<string>;
|
|
73
|
-
customStyle: PropTypes.Requireable<
|
|
74
|
-
|
|
65
|
+
customStyle: PropTypes.Requireable<{
|
|
66
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
67
|
+
}>;
|
|
75
68
|
useTitle: PropTypes.Requireable<boolean>;
|
|
76
69
|
customLabelClassName: PropTypes.Requireable<string>;
|
|
77
70
|
}>>;
|
|
@@ -23,7 +23,9 @@ declare const BulletPointMenuButton: {
|
|
|
23
23
|
color: import("prop-types").Requireable<string>;
|
|
24
24
|
backgroundColor: import("prop-types").Requireable<string>;
|
|
25
25
|
size: import("prop-types").Requireable<number>;
|
|
26
|
-
customStyle: import("prop-types").Requireable<
|
|
26
|
+
customStyle: import("prop-types").Requireable<{
|
|
27
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
28
|
+
}>;
|
|
27
29
|
}>>;
|
|
28
30
|
}>>;
|
|
29
31
|
customStyle: import("prop-types").Requireable<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/bullet-point-menu-button/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,0BAA0B,EAAC,MAAM,SAAS,CAAC;AAM9D,QAAA,MAAM,qBAAqB;YAAW,0BAA0B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/bullet-point-menu-button/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,0BAA0B,EAAC,MAAM,SAAS,CAAC;AAM9D,QAAA,MAAM,qBAAqB;YAAW,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsH/D,CAAC;AAIF,eAAe,qBAAqB,CAAC"}
|
|
@@ -21,7 +21,9 @@ declare const propTypes: {
|
|
|
21
21
|
color: PropTypes.Requireable<string>;
|
|
22
22
|
backgroundColor: PropTypes.Requireable<string>;
|
|
23
23
|
size: PropTypes.Requireable<number>;
|
|
24
|
-
customStyle: PropTypes.Requireable<
|
|
24
|
+
customStyle: PropTypes.Requireable<{
|
|
25
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
26
|
+
}>;
|
|
25
27
|
}>>;
|
|
26
28
|
}>>;
|
|
27
29
|
customStyle: PropTypes.Requireable<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/bullet-point-menu-button/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAEzD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/bullet-point-menu-button/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAEzD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASd,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,0BAA0B,GAAG;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,oBAAY,iCAAiC,GAAG;IAAC,KAAK,EAAE,0BAA0B,CAAA;CAAC,CAAC"}
|
|
@@ -4,7 +4,6 @@ declare const ButtonMenuAction: {
|
|
|
4
4
|
(props: ButtonMenuActionProps): JSX.Element;
|
|
5
5
|
propTypes: {
|
|
6
6
|
button: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
7
|
-
withChevron: import("prop-types").Requireable<boolean>;
|
|
8
7
|
type: import("prop-types").Requireable<string>;
|
|
9
8
|
usage: import("prop-types").Requireable<string>;
|
|
10
9
|
label: import("prop-types").Requireable<string>;
|
|
@@ -14,7 +13,7 @@ declare const ButtonMenuAction: {
|
|
|
14
13
|
tooltipPlacement: import("prop-types").Requireable<string>;
|
|
15
14
|
'data-name': import("prop-types").Requireable<string>;
|
|
16
15
|
'data-testid': import("prop-types").Requireable<string>;
|
|
17
|
-
icon: import("prop-types").Requireable<
|
|
16
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
18
17
|
position: import("prop-types").Requireable<string>;
|
|
19
18
|
type: import("prop-types").Requireable<string>;
|
|
20
19
|
faIcon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
@@ -22,19 +21,11 @@ declare const ButtonMenuAction: {
|
|
|
22
21
|
color: import("prop-types").Requireable<string>;
|
|
23
22
|
backgroundColor: import("prop-types").Requireable<string>;
|
|
24
23
|
size: import("prop-types").Requireable<number>;
|
|
25
|
-
customStyle: import("prop-types").Requireable<
|
|
24
|
+
customStyle: import("prop-types").Requireable<{
|
|
25
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
26
|
+
}>;
|
|
26
27
|
}>>;
|
|
27
|
-
}
|
|
28
|
-
position: import("prop-types").Requireable<string>;
|
|
29
|
-
type: import("prop-types").Requireable<string>;
|
|
30
|
-
faIcon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
31
|
-
name: import("prop-types").Validator<string>;
|
|
32
|
-
color: import("prop-types").Requireable<string>;
|
|
33
|
-
backgroundColor: import("prop-types").Requireable<string>;
|
|
34
|
-
size: import("prop-types").Requireable<number>;
|
|
35
|
-
customStyle: import("prop-types").Requireable<object>;
|
|
36
|
-
}>>;
|
|
37
|
-
}> | null | undefined)[] | null | undefined>>;
|
|
28
|
+
}>>;
|
|
38
29
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
39
30
|
link: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
40
31
|
href: import("prop-types").Requireable<string>;
|
|
@@ -45,8 +36,9 @@ declare const ButtonMenuAction: {
|
|
|
45
36
|
hoverColor: import("prop-types").Requireable<string>;
|
|
46
37
|
disabled: import("prop-types").Requireable<boolean>;
|
|
47
38
|
className: import("prop-types").Requireable<string>;
|
|
48
|
-
customStyle: import("prop-types").Requireable<
|
|
49
|
-
|
|
39
|
+
customStyle: import("prop-types").Requireable<{
|
|
40
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
41
|
+
}>;
|
|
50
42
|
useTitle: import("prop-types").Requireable<boolean>;
|
|
51
43
|
customLabelClassName: import("prop-types").Requireable<string>;
|
|
52
44
|
}>>>;
|
|
@@ -67,7 +59,9 @@ declare const ButtonMenuAction: {
|
|
|
67
59
|
color: import("prop-types").Requireable<string>;
|
|
68
60
|
backgroundColor: import("prop-types").Requireable<string>;
|
|
69
61
|
size: import("prop-types").Requireable<number>;
|
|
70
|
-
customStyle: import("prop-types").Requireable<
|
|
62
|
+
customStyle: import("prop-types").Requireable<{
|
|
63
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
64
|
+
}>;
|
|
71
65
|
}>>;
|
|
72
66
|
}>>;
|
|
73
67
|
customStyle: import("prop-types").Requireable<{
|
|
@@ -89,8 +83,6 @@ declare const ButtonMenuAction: {
|
|
|
89
83
|
primaryColor: import("prop-types").Requireable<string>;
|
|
90
84
|
closeOnClick: import("prop-types").Requireable<boolean>;
|
|
91
85
|
enableScroll: import("prop-types").Requireable<boolean>;
|
|
92
|
-
containerCustom: import("prop-types").Requireable<object>;
|
|
93
|
-
showFade: import("prop-types").Requireable<boolean>;
|
|
94
86
|
};
|
|
95
87
|
};
|
|
96
88
|
export default ButtonMenuAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/button-menu-action/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/button-menu-action/index.tsx"],"names":[],"mappings":";AAOA,OAAkB,EAAC,qBAAqB,EAAC,MAAM,SAAS,CAAC;AAGzD,QAAA,MAAM,gBAAgB;YAAW,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FrD,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import _noop from "lodash/fp/noop";
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
-
import React, { useCallback, useEffect, useState, useRef
|
|
3
|
+
import React, { useCallback, useEffect, useState, useRef } from 'react';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import map from 'lodash/fp/map';
|
|
6
6
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
7
7
|
import ButtonLink from '../../atom/button-link';
|
|
8
8
|
import ButtonMenu from '../../atom/button-menu';
|
|
9
|
-
import { COLORS } from '../../variables/colors';
|
|
10
9
|
import propTypes from './types';
|
|
11
10
|
import style from './style.css';
|
|
12
11
|
const ButtonMenuAction = props => {
|
|
@@ -22,8 +21,7 @@ const ButtonMenuAction = props => {
|
|
|
22
21
|
showFade = false
|
|
23
22
|
} = props;
|
|
24
23
|
const {
|
|
25
|
-
onClick = _noop
|
|
26
|
-
withChevron = false
|
|
24
|
+
onClick = _noop
|
|
27
25
|
} = button;
|
|
28
26
|
const [visible, setVisible] = useState(false);
|
|
29
27
|
const containerRef = useRef(null);
|
|
@@ -61,28 +59,6 @@ const ButtonMenuAction = props => {
|
|
|
61
59
|
}, /*#__PURE__*/React.createElement(ButtonMenu, _extends({}, menuWithClose, {
|
|
62
60
|
enableScroll: enableScroll
|
|
63
61
|
})));
|
|
64
|
-
const buttonProps = useMemo(() => {
|
|
65
|
-
if (!withChevron) return button;
|
|
66
|
-
|
|
67
|
-
// to handle array/object/undefined
|
|
68
|
-
// eslint-disable-next-line no-nested-ternary
|
|
69
|
-
const baseIcons = Array.isArray(button.icon) ? button.icon : button.icon ? [button.icon] : [];
|
|
70
|
-
const chevronIcon = {
|
|
71
|
-
position: 'right',
|
|
72
|
-
faIcon: {
|
|
73
|
-
name: visible ? 'chevron-up' : 'chevron-down',
|
|
74
|
-
color: COLORS.neutral_700,
|
|
75
|
-
size: 14
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
// remove right icon if exists
|
|
80
|
-
const icons = [...baseIcons.filter(i => i && i.position !== 'right'), chevronIcon];
|
|
81
|
-
return {
|
|
82
|
-
...button,
|
|
83
|
-
icon: icons
|
|
84
|
-
};
|
|
85
|
-
}, [button, withChevron, visible]);
|
|
86
62
|
return /*#__PURE__*/React.createElement("div", {
|
|
87
63
|
className: style.container,
|
|
88
64
|
"data-name": "button-menu-action-wrapper",
|
|
@@ -105,7 +81,7 @@ const ButtonMenuAction = props => {
|
|
|
105
81
|
color: visible ? primaryColor : undefined
|
|
106
82
|
},
|
|
107
83
|
"aria-label": button['aria-label']
|
|
108
|
-
})) : /*#__PURE__*/React.createElement(ButtonLink, _extends({},
|
|
84
|
+
})) : /*#__PURE__*/React.createElement(ButtonLink, _extends({}, button, {
|
|
109
85
|
onClick: toggleVisibility
|
|
110
86
|
})), _menu);
|
|
111
87
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useCallback","useEffect","useState","useRef","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useCallback","useEffect","useState","useRef","classnames","map","FontAwesomeIcon","ButtonLink","ButtonMenu","propTypes","style","ButtonMenuAction","props","button","menu","menuWrapper","type","primaryColor","containerCustom","closeOnClick","enableScroll","showFade","onClick","_noop","visible","setVisible","containerRef","toggleVisibility","prevState","handleMouseDown","event","current","contains","target","document","addEventListener","removeEventListener","menuWithClose","buttons","btn","menuWrapperClass","length","_menu","createElement","className","ariaLabel","customStyle","_extends","container","ref","currentOption","color","undefined","label","icon","caret","process","env","NODE_ENV"],"sources":["../../../src/molecule/button-menu-action/index.tsx"],"sourcesContent":["import React, {useCallback, useEffect, useState, useRef} from 'react';\nimport classnames from 'classnames';\nimport {noop} from 'lodash/fp';\nimport map from 'lodash/fp/map';\nimport {FontAwesomeIcon} from '@fortawesome/react-fontawesome';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonMenu from '../../atom/button-menu';\nimport propTypes, {ButtonMenuActionProps} from './types';\nimport style from './style.css';\n\nconst ButtonMenuAction = (props: ButtonMenuActionProps) => {\n const {\n button,\n menu,\n menuWrapper,\n type = 'button',\n primaryColor,\n containerCustom,\n closeOnClick = false,\n enableScroll = false,\n showFade = false\n } = props;\n const {onClick = noop} = button;\n const [visible, setVisible] = useState(false);\n const containerRef = useRef<HTMLDivElement>(null);\n\n const toggleVisibility = useCallback(() => {\n onClick();\n setVisible(prevState => !prevState);\n }, [onClick]);\n\n useEffect(() => {\n const handleMouseDown = (event: MouseEvent) => {\n if (visible && containerRef.current && !containerRef.current.contains(event.target as Node)) {\n setVisible(false);\n }\n };\n\n document.addEventListener('mousedown', handleMouseDown);\n return () => {\n document.removeEventListener('mousedown', handleMouseDown);\n };\n }, [visible, containerRef]);\n\n const menuWithClose = closeOnClick\n ? {\n ...menu,\n buttons: map(\n btn => ({\n ...btn,\n onClick: () => setVisible(false)\n }),\n menu.buttons\n )\n }\n : menu;\n\n const menuWrapperClass = classnames(style.menuWrapper, {\n [style.visible]: visible,\n [style.showFade]: showFade && menuWithClose.buttons && menuWithClose.buttons.length > 6\n });\n\n const _menu = (\n <div\n className={menuWrapperClass}\n data-name=\"menu-wrapper\"\n aria-label={menuWrapper?.ariaLabel}\n style={menuWrapper?.customStyle}\n >\n <ButtonMenu {...menuWithClose} enableScroll={enableScroll} />\n </div>\n );\n\n return (\n <div\n className={style.container}\n data-name=\"button-menu-action-wrapper\"\n style={containerCustom}\n ref={containerRef}\n >\n {type === 'link' ? (\n <div\n className={style.currentOption}\n data-name={button['data-name']}\n onClick={toggleVisibility}\n aria-expanded={visible}\n aria-haspopup=\"true\"\n >\n <span style={{color: visible ? primaryColor : undefined}}>{button.label}</span>\n <FontAwesomeIcon\n icon={visible ? 'chevron-up' : 'chevron-down'}\n className={style.caret}\n style={{color: visible ? primaryColor : undefined}}\n aria-label={button['aria-label']}\n />\n </div>\n ) : (\n <ButtonLink {...button} onClick={toggleVisibility} />\n )}\n {_menu}\n </div>\n );\n};\n\nButtonMenuAction.propTypes = propTypes;\n\nexport default ButtonMenuAction;\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -3,7 +3,6 @@ import { ButtonLinkProps } from '../../atom/button-link/types';
|
|
|
3
3
|
import { ButtonMenuProps } from '../../atom/button-menu/types';
|
|
4
4
|
declare const ButtonMenuActionPropTypes: {
|
|
5
5
|
button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
6
|
-
withChevron: PropTypes.Requireable<boolean>;
|
|
7
6
|
type: PropTypes.Requireable<string>;
|
|
8
7
|
usage: PropTypes.Requireable<string>;
|
|
9
8
|
label: PropTypes.Requireable<string>;
|
|
@@ -13,7 +12,7 @@ declare const ButtonMenuActionPropTypes: {
|
|
|
13
12
|
tooltipPlacement: PropTypes.Requireable<string>;
|
|
14
13
|
'data-name': PropTypes.Requireable<string>;
|
|
15
14
|
'data-testid': PropTypes.Requireable<string>;
|
|
16
|
-
icon: PropTypes.Requireable<
|
|
15
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
16
|
position: PropTypes.Requireable<string>;
|
|
18
17
|
type: PropTypes.Requireable<string>;
|
|
19
18
|
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -21,19 +20,11 @@ declare const ButtonMenuActionPropTypes: {
|
|
|
21
20
|
color: PropTypes.Requireable<string>;
|
|
22
21
|
backgroundColor: PropTypes.Requireable<string>;
|
|
23
22
|
size: PropTypes.Requireable<number>;
|
|
24
|
-
customStyle: PropTypes.Requireable<
|
|
23
|
+
customStyle: PropTypes.Requireable<{
|
|
24
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
25
|
+
}>;
|
|
25
26
|
}>>;
|
|
26
|
-
}
|
|
27
|
-
position: PropTypes.Requireable<string>;
|
|
28
|
-
type: PropTypes.Requireable<string>;
|
|
29
|
-
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
30
|
-
name: PropTypes.Validator<string>;
|
|
31
|
-
color: PropTypes.Requireable<string>;
|
|
32
|
-
backgroundColor: PropTypes.Requireable<string>;
|
|
33
|
-
size: PropTypes.Requireable<number>;
|
|
34
|
-
customStyle: PropTypes.Requireable<object>;
|
|
35
|
-
}>>;
|
|
36
|
-
}> | null | undefined)[] | null | undefined>>;
|
|
27
|
+
}>>;
|
|
37
28
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
38
29
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
39
30
|
href: PropTypes.Requireable<string>;
|
|
@@ -44,8 +35,9 @@ declare const ButtonMenuActionPropTypes: {
|
|
|
44
35
|
hoverColor: PropTypes.Requireable<string>;
|
|
45
36
|
disabled: PropTypes.Requireable<boolean>;
|
|
46
37
|
className: PropTypes.Requireable<string>;
|
|
47
|
-
customStyle: PropTypes.Requireable<
|
|
48
|
-
|
|
38
|
+
customStyle: PropTypes.Requireable<{
|
|
39
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
40
|
+
}>;
|
|
49
41
|
useTitle: PropTypes.Requireable<boolean>;
|
|
50
42
|
customLabelClassName: PropTypes.Requireable<string>;
|
|
51
43
|
}>>>;
|
|
@@ -66,7 +58,9 @@ declare const ButtonMenuActionPropTypes: {
|
|
|
66
58
|
color: PropTypes.Requireable<string>;
|
|
67
59
|
backgroundColor: PropTypes.Requireable<string>;
|
|
68
60
|
size: PropTypes.Requireable<number>;
|
|
69
|
-
customStyle: PropTypes.Requireable<
|
|
61
|
+
customStyle: PropTypes.Requireable<{
|
|
62
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
63
|
+
}>;
|
|
70
64
|
}>>;
|
|
71
65
|
}>>;
|
|
72
66
|
customStyle: PropTypes.Requireable<{
|
|
@@ -88,14 +82,10 @@ declare const ButtonMenuActionPropTypes: {
|
|
|
88
82
|
primaryColor: PropTypes.Requireable<string>;
|
|
89
83
|
closeOnClick: PropTypes.Requireable<boolean>;
|
|
90
84
|
enableScroll: PropTypes.Requireable<boolean>;
|
|
91
|
-
containerCustom: PropTypes.Requireable<object>;
|
|
92
|
-
showFade: PropTypes.Requireable<boolean>;
|
|
93
85
|
};
|
|
94
86
|
export default ButtonMenuActionPropTypes;
|
|
95
87
|
export declare type ButtonMenuActionProps = {
|
|
96
|
-
button: ButtonLinkProps
|
|
97
|
-
withChevron?: boolean;
|
|
98
|
-
};
|
|
88
|
+
button: ButtonLinkProps;
|
|
99
89
|
menu: ButtonMenuProps;
|
|
100
90
|
menuWrapper?: {
|
|
101
91
|
ariaLabel?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/button-menu-action/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAA4B,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAClF,OAA4B,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAElF,QAAA,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/button-menu-action/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAA4B,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAClF,OAA4B,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAElF,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa9B,CAAC;AACF,eAAe,yBAAyB,CAAC;AAEzC,oBAAY,qBAAqB,GAAG;IAClC,MAAM,EAAE,eAAe,CAAC;IACxB,IAAI,EAAE,eAAe,CAAC;IACtB,WAAW,CAAC,EAAE;QACZ,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;KAC/C,CAAC;IACF,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IAAC,KAAK,EAAE,qBAAqB,CAAA;CAAC,CAAC"}
|
|
@@ -2,10 +2,7 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import ButtonLinkPropTypes from '../../atom/button-link/types';
|
|
3
3
|
import ButtonMenuPropTypes from '../../atom/button-menu/types';
|
|
4
4
|
const ButtonMenuActionPropTypes = {
|
|
5
|
-
button: PropTypes.shape(
|
|
6
|
-
...ButtonLinkPropTypes,
|
|
7
|
-
withChevron: PropTypes.bool
|
|
8
|
-
}).isRequired,
|
|
5
|
+
button: PropTypes.shape(ButtonLinkPropTypes).isRequired,
|
|
9
6
|
menu: PropTypes.shape(ButtonMenuPropTypes).isRequired,
|
|
10
7
|
menuWrapper: PropTypes.shape({
|
|
11
8
|
ariaLabel: PropTypes.string,
|
|
@@ -14,9 +11,7 @@ const ButtonMenuActionPropTypes = {
|
|
|
14
11
|
type: PropTypes.oneOf(['button', 'link']),
|
|
15
12
|
primaryColor: PropTypes.string,
|
|
16
13
|
closeOnClick: PropTypes.bool,
|
|
17
|
-
enableScroll: PropTypes.bool
|
|
18
|
-
containerCustom: PropTypes.object,
|
|
19
|
-
showFade: PropTypes.bool
|
|
14
|
+
enableScroll: PropTypes.bool
|
|
20
15
|
};
|
|
21
16
|
export default ButtonMenuActionPropTypes;
|
|
22
17
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["PropTypes","ButtonLinkPropTypes","ButtonMenuPropTypes","ButtonMenuActionPropTypes","button","shape","
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","ButtonLinkPropTypes","ButtonMenuPropTypes","ButtonMenuActionPropTypes","button","shape","isRequired","menu","menuWrapper","ariaLabel","string","customStyle","objectOf","oneOfType","number","object","type","oneOf","primaryColor","closeOnClick","bool","enableScroll"],"sources":["../../../src/molecule/button-menu-action/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport ButtonLinkPropTypes, {ButtonLinkProps} from '../../atom/button-link/types';\nimport ButtonMenuPropTypes, {ButtonMenuProps} from '../../atom/button-menu/types';\n\nconst ButtonMenuActionPropTypes = {\n button: PropTypes.shape(ButtonLinkPropTypes).isRequired,\n menu: PropTypes.shape(ButtonMenuPropTypes).isRequired,\n menuWrapper: PropTypes.shape({\n ariaLabel: PropTypes.string,\n customStyle: PropTypes.objectOf(\n PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object])\n )\n }),\n type: PropTypes.oneOf(['button', 'link']),\n primaryColor: PropTypes.string,\n closeOnClick: PropTypes.bool,\n enableScroll: PropTypes.bool\n};\nexport default ButtonMenuActionPropTypes;\n\nexport type ButtonMenuActionProps = {\n button: ButtonLinkProps;\n menu: ButtonMenuProps;\n menuWrapper?: {\n ariaLabel?: string;\n customStyle?: Record<string, string | number>;\n };\n type?: 'button' | 'link';\n primaryColor?: string;\n containerCustom?: Record<string, string | number>;\n closeOnClick?: boolean;\n enableScroll?: boolean;\n showFade?: boolean;\n};\n\nexport type ButtonMenuActionPropsFixture = {props: ButtonMenuActionProps};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,mBAAmB,MAAyB,8BAA8B;AACjF,OAAOC,mBAAmB,MAAyB,8BAA8B;AAEjF,MAAMC,yBAAyB,GAAG;EAChCC,MAAM,EAAEJ,SAAS,CAACK,KAAK,CAACJ,mBAAmB,CAAC,CAACK,UAAU;EACvDC,IAAI,EAAEP,SAAS,CAACK,KAAK,CAACH,mBAAmB,CAAC,CAACI,UAAU;EACrDE,WAAW,EAAER,SAAS,CAACK,KAAK,CAAC;IAC3BI,SAAS,EAAET,SAAS,CAACU,MAAM;IAC3BC,WAAW,EAAEX,SAAS,CAACY,QAAQ,CAC7BZ,SAAS,CAACa,SAAS,CAAC,CAACb,SAAS,CAACU,MAAM,EAAEV,SAAS,CAACc,MAAM,EAAEd,SAAS,CAACe,MAAM,CAAC,CAC5E;EACF,CAAC,CAAC;EACFC,IAAI,EAAEhB,SAAS,CAACiB,KAAK,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;EACzCC,YAAY,EAAElB,SAAS,CAACU,MAAM;EAC9BS,YAAY,EAAEnB,SAAS,CAACoB,IAAI;EAC5BC,YAAY,EAAErB,SAAS,CAACoB;AAC1B,CAAC;AACD,eAAejB,yBAAyB","ignoreList":[]}
|