@coorpacademy/components 11.43.5 → 11.43.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/autocomplete/index.d.ts +1 -0
- package/es/atom/autocomplete/index.d.ts.map +1 -1
- package/es/atom/autocomplete/index.js +4 -2
- package/es/atom/autocomplete/index.js.map +1 -1
- package/es/atom/button-link/index.d.ts +1 -1
- package/es/atom/button-link/types.d.ts +2 -2
- package/es/atom/button-link/types.d.ts.map +1 -1
- package/es/atom/button-link/types.js +1 -1
- package/es/atom/button-link/types.js.map +1 -1
- package/es/atom/link/index.d.ts +1 -1
- package/es/atom/link/index.d.ts.map +1 -1
- package/es/atom/link/index.js +2 -1
- package/es/atom/link/index.js.map +1 -1
- package/es/atom/radio-with-title/index.d.ts +1 -1
- package/es/atom/radio-with-title/types.d.ts +1 -1
- package/es/atom/title/index.d.ts +1 -1
- package/es/molecule/button-menu-action/index.d.ts +1 -1
- package/es/molecule/button-menu-action/types.d.ts +1 -1
- package/es/molecule/cm-popin/types.d.ts +9 -9
- package/es/molecule/expandible-actionable-table/index.d.ts +1 -1
- package/es/molecule/expandible-actionable-table/types.d.ts +1 -1
- package/es/molecule/quick-filters/index.d.ts +1 -1
- package/es/molecule/quick-filters/types.d.ts +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +1 -1
- package/es/molecule/title-radio-wrapper/index.d.ts +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +1 -1
- package/es/organism/assignment-audience/index.d.ts +1 -0
- package/es/organism/assignment-audience/index.d.ts.map +1 -1
- package/es/organism/assignment-audience/index.js +3 -2
- package/es/organism/assignment-audience/index.js.map +1 -1
- package/es/organism/assignment-audience/types.d.ts +2 -0
- package/es/organism/assignment-audience/types.d.ts.map +1 -1
- package/es/organism/assignment-audience/types.js +2 -1
- package/es/organism/assignment-audience/types.js.map +1 -1
- package/es/organism/assignment-edition/index.d.ts +1 -0
- package/es/organism/assignment-edition/index.d.ts.map +1 -1
- package/es/organism/assignment-edition/types.d.ts +1 -0
- package/es/organism/assignment-edition/types.d.ts.map +1 -1
- package/es/organism/content-skill-modal/index.d.ts +7 -7
- package/es/organism/content-skill-modal/types.d.ts +7 -7
- package/es/organism/icon-editor/index.d.ts +1 -1
- package/es/organism/icon-editor/types.d.ts +1 -1
- package/es/organism/list-items/index.d.ts +7 -7
- package/es/organism/rewards-form/index.d.ts +1 -1
- package/es/organism/select-opponents/index.d.ts +1 -1
- package/es/organism/select-opponents/types.d.ts +1 -1
- package/es/organism/setup-header/index.d.ts +4 -4
- package/es/organism/title-and-input/index.d.ts +4 -3
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +4 -3
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +4 -4
- package/es/template/app-player/loading/index.d.ts +9 -9
- package/es/template/app-player/player/index.d.ts +18 -18
- package/es/template/app-player/player/slides/index.d.ts +9 -9
- package/es/template/app-player/popin-correction/index.d.ts +11 -11
- package/es/template/app-player/popin-end/index.d.ts +10 -10
- package/es/template/app-player/popin-end/summary.d.ts +1 -1
- package/es/template/app-player/popin-header/index.d.ts +1 -1
- package/es/template/app-review/index.d.ts +9 -9
- package/es/template/app-review/player/prop-types.d.ts +9 -9
- package/es/template/app-review/prop-types.d.ts +9 -9
- package/es/template/back-office/brand-create/index.d.ts +4 -4
- package/es/template/back-office/brand-list/index.d.ts +4 -4
- package/es/template/back-office/brand-update/index.d.ts +32 -31
- package/es/template/back-office/dashboard-preview/index.d.ts +4 -4
- package/es/template/back-office/layout/index.d.ts +4 -4
- package/es/template/certification-detail/index.d.ts +9 -9
- package/es/template/common/dashboard/index.d.ts +18 -18
- package/es/template/common/search-page/index.d.ts +11 -11
- package/es/template/external-course/index.d.ts +9 -9
- package/es/template/playlist-detail/index.d.ts +9 -9
- package/lib/atom/autocomplete/index.d.ts +1 -0
- package/lib/atom/autocomplete/index.d.ts.map +1 -1
- package/lib/atom/autocomplete/index.js +4 -2
- package/lib/atom/autocomplete/index.js.map +1 -1
- package/lib/atom/button-link/index.d.ts +1 -1
- package/lib/atom/button-link/types.d.ts +2 -2
- package/lib/atom/button-link/types.d.ts.map +1 -1
- package/lib/atom/button-link/types.js +1 -1
- package/lib/atom/button-link/types.js.map +1 -1
- package/lib/atom/link/index.d.ts +1 -1
- package/lib/atom/link/index.d.ts.map +1 -1
- package/lib/atom/link/index.js +2 -1
- package/lib/atom/link/index.js.map +1 -1
- package/lib/atom/radio-with-title/index.d.ts +1 -1
- package/lib/atom/radio-with-title/types.d.ts +1 -1
- package/lib/atom/title/index.d.ts +1 -1
- package/lib/molecule/button-menu-action/index.d.ts +1 -1
- package/lib/molecule/button-menu-action/types.d.ts +1 -1
- package/lib/molecule/cm-popin/types.d.ts +9 -9
- package/lib/molecule/expandible-actionable-table/index.d.ts +1 -1
- package/lib/molecule/expandible-actionable-table/types.d.ts +1 -1
- package/lib/molecule/quick-filters/index.d.ts +1 -1
- package/lib/molecule/quick-filters/types.d.ts +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +1 -1
- package/lib/molecule/title-radio-wrapper/index.d.ts +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +1 -1
- package/lib/organism/assignment-audience/index.d.ts +1 -0
- package/lib/organism/assignment-audience/index.d.ts.map +1 -1
- package/lib/organism/assignment-audience/index.js +3 -2
- package/lib/organism/assignment-audience/index.js.map +1 -1
- package/lib/organism/assignment-audience/types.d.ts +2 -0
- package/lib/organism/assignment-audience/types.d.ts.map +1 -1
- package/lib/organism/assignment-audience/types.js +2 -1
- package/lib/organism/assignment-audience/types.js.map +1 -1
- package/lib/organism/assignment-edition/index.d.ts +1 -0
- package/lib/organism/assignment-edition/index.d.ts.map +1 -1
- package/lib/organism/assignment-edition/types.d.ts +1 -0
- package/lib/organism/assignment-edition/types.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/index.d.ts +7 -7
- package/lib/organism/content-skill-modal/types.d.ts +7 -7
- package/lib/organism/icon-editor/index.d.ts +1 -1
- package/lib/organism/icon-editor/types.d.ts +1 -1
- package/lib/organism/list-items/index.d.ts +7 -7
- package/lib/organism/rewards-form/index.d.ts +1 -1
- package/lib/organism/select-opponents/index.d.ts +1 -1
- package/lib/organism/select-opponents/types.d.ts +1 -1
- package/lib/organism/setup-header/index.d.ts +4 -4
- package/lib/organism/title-and-input/index.d.ts +4 -3
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +4 -3
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +4 -4
- package/lib/template/app-player/loading/index.d.ts +9 -9
- package/lib/template/app-player/player/index.d.ts +18 -18
- package/lib/template/app-player/player/slides/index.d.ts +9 -9
- package/lib/template/app-player/popin-correction/index.d.ts +11 -11
- package/lib/template/app-player/popin-end/index.d.ts +10 -10
- package/lib/template/app-player/popin-end/summary.d.ts +1 -1
- package/lib/template/app-player/popin-header/index.d.ts +1 -1
- package/lib/template/app-review/index.d.ts +9 -9
- package/lib/template/app-review/player/prop-types.d.ts +9 -9
- package/lib/template/app-review/prop-types.d.ts +9 -9
- package/lib/template/back-office/brand-create/index.d.ts +4 -4
- package/lib/template/back-office/brand-list/index.d.ts +4 -4
- package/lib/template/back-office/brand-update/index.d.ts +32 -31
- package/lib/template/back-office/dashboard-preview/index.d.ts +4 -4
- package/lib/template/back-office/layout/index.d.ts +4 -4
- package/lib/template/certification-detail/index.d.ts +9 -9
- package/lib/template/common/dashboard/index.d.ts +18 -18
- package/lib/template/common/search-page/index.d.ts +11 -11
- package/lib/template/external-course/index.d.ts +9 -9
- package/lib/template/playlist-detail/index.d.ts +9 -9
- package/package.json +2 -2
|
@@ -133,7 +133,7 @@ declare namespace SearchPage {
|
|
|
133
133
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
134
134
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
135
135
|
href: PropTypes.Requireable<string>;
|
|
136
|
-
download: PropTypes.Requireable<boolean
|
|
136
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
137
137
|
target: PropTypes.Requireable<string>;
|
|
138
138
|
rel: PropTypes.Requireable<string>;
|
|
139
139
|
}>>;
|
|
@@ -189,7 +189,7 @@ declare namespace SearchPage {
|
|
|
189
189
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
190
190
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
191
191
|
href: PropTypes.Requireable<string>;
|
|
192
|
-
download: PropTypes.Requireable<boolean
|
|
192
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
193
193
|
target: PropTypes.Requireable<string>;
|
|
194
194
|
rel: PropTypes.Requireable<string>;
|
|
195
195
|
}>>;
|
|
@@ -358,7 +358,7 @@ declare namespace SearchPage {
|
|
|
358
358
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
359
359
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
360
360
|
href: PropTypes.Requireable<string>;
|
|
361
|
-
download: PropTypes.Requireable<boolean
|
|
361
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
362
362
|
target: PropTypes.Requireable<string>;
|
|
363
363
|
rel: PropTypes.Requireable<string>;
|
|
364
364
|
}>>;
|
|
@@ -514,7 +514,7 @@ declare namespace SearchPage {
|
|
|
514
514
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
515
515
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
516
516
|
href: PropTypes.Requireable<string>;
|
|
517
|
-
download: PropTypes.Requireable<boolean
|
|
517
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
518
518
|
target: PropTypes.Requireable<string>;
|
|
519
519
|
rel: PropTypes.Requireable<string>;
|
|
520
520
|
}>>;
|
|
@@ -693,7 +693,7 @@ declare namespace SearchPage {
|
|
|
693
693
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
694
694
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
695
695
|
href: PropTypes.Requireable<string>;
|
|
696
|
-
download: PropTypes.Requireable<boolean
|
|
696
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
697
697
|
target: PropTypes.Requireable<string>;
|
|
698
698
|
rel: PropTypes.Requireable<string>;
|
|
699
699
|
}>>;
|
|
@@ -741,7 +741,7 @@ declare namespace SearchPage {
|
|
|
741
741
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
742
742
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
743
743
|
href: PropTypes.Requireable<string>;
|
|
744
|
-
download: PropTypes.Requireable<boolean
|
|
744
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
745
745
|
target: PropTypes.Requireable<string>;
|
|
746
746
|
rel: PropTypes.Requireable<string>;
|
|
747
747
|
}>>;
|
|
@@ -885,7 +885,7 @@ declare namespace SearchPage {
|
|
|
885
885
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
886
886
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
887
887
|
href: PropTypes.Requireable<string>;
|
|
888
|
-
download: PropTypes.Requireable<boolean
|
|
888
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
889
889
|
target: PropTypes.Requireable<string>;
|
|
890
890
|
rel: PropTypes.Requireable<string>;
|
|
891
891
|
}>>;
|
|
@@ -997,7 +997,7 @@ declare namespace SearchPage {
|
|
|
997
997
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
998
998
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
999
999
|
href: PropTypes.Requireable<string>;
|
|
1000
|
-
download: PropTypes.Requireable<boolean
|
|
1000
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
1001
1001
|
target: PropTypes.Requireable<string>;
|
|
1002
1002
|
rel: PropTypes.Requireable<string>;
|
|
1003
1003
|
}>>;
|
|
@@ -1081,7 +1081,7 @@ declare namespace SearchPage {
|
|
|
1081
1081
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1082
1082
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1083
1083
|
href: PropTypes.Requireable<string>;
|
|
1084
|
-
download: PropTypes.Requireable<boolean
|
|
1084
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
1085
1085
|
target: PropTypes.Requireable<string>;
|
|
1086
1086
|
rel: PropTypes.Requireable<string>;
|
|
1087
1087
|
}>>;
|
|
@@ -1130,7 +1130,7 @@ declare namespace SearchPage {
|
|
|
1130
1130
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1131
1131
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1132
1132
|
href: PropTypes.Requireable<string>;
|
|
1133
|
-
download: PropTypes.Requireable<boolean
|
|
1133
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
1134
1134
|
target: PropTypes.Requireable<string>;
|
|
1135
1135
|
rel: PropTypes.Requireable<string>;
|
|
1136
1136
|
}>>;
|
|
@@ -1197,7 +1197,7 @@ declare namespace SearchPage {
|
|
|
1197
1197
|
target: PropTypes.Requireable<string>;
|
|
1198
1198
|
hoverColor: PropTypes.Requireable<string>;
|
|
1199
1199
|
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
1200
|
-
download: PropTypes.Requireable<boolean
|
|
1200
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
1201
1201
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1202
1202
|
onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1203
1203
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -92,7 +92,7 @@ declare namespace ExternalCourse {
|
|
|
92
92
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
93
93
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
94
94
|
href: PropTypes.Requireable<string>;
|
|
95
|
-
download: PropTypes.Requireable<boolean
|
|
95
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
96
96
|
target: PropTypes.Requireable<string>;
|
|
97
97
|
rel: PropTypes.Requireable<string>;
|
|
98
98
|
}>>;
|
|
@@ -248,7 +248,7 @@ declare namespace ExternalCourse {
|
|
|
248
248
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
249
249
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
250
250
|
href: PropTypes.Requireable<string>;
|
|
251
|
-
download: PropTypes.Requireable<boolean
|
|
251
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
252
252
|
target: PropTypes.Requireable<string>;
|
|
253
253
|
rel: PropTypes.Requireable<string>;
|
|
254
254
|
}>>;
|
|
@@ -427,7 +427,7 @@ declare namespace ExternalCourse {
|
|
|
427
427
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
428
428
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
429
429
|
href: PropTypes.Requireable<string>;
|
|
430
|
-
download: PropTypes.Requireable<boolean
|
|
430
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
431
431
|
target: PropTypes.Requireable<string>;
|
|
432
432
|
rel: PropTypes.Requireable<string>;
|
|
433
433
|
}>>;
|
|
@@ -475,7 +475,7 @@ declare namespace ExternalCourse {
|
|
|
475
475
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
476
476
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
477
477
|
href: PropTypes.Requireable<string>;
|
|
478
|
-
download: PropTypes.Requireable<boolean
|
|
478
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
479
479
|
target: PropTypes.Requireable<string>;
|
|
480
480
|
rel: PropTypes.Requireable<string>;
|
|
481
481
|
}>>;
|
|
@@ -619,7 +619,7 @@ declare namespace ExternalCourse {
|
|
|
619
619
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
620
620
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
621
621
|
href: PropTypes.Requireable<string>;
|
|
622
|
-
download: PropTypes.Requireable<boolean
|
|
622
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
623
623
|
target: PropTypes.Requireable<string>;
|
|
624
624
|
rel: PropTypes.Requireable<string>;
|
|
625
625
|
}>>;
|
|
@@ -731,7 +731,7 @@ declare namespace ExternalCourse {
|
|
|
731
731
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
732
732
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
733
733
|
href: PropTypes.Requireable<string>;
|
|
734
|
-
download: PropTypes.Requireable<boolean
|
|
734
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
735
735
|
target: PropTypes.Requireable<string>;
|
|
736
736
|
rel: PropTypes.Requireable<string>;
|
|
737
737
|
}>>;
|
|
@@ -815,7 +815,7 @@ declare namespace ExternalCourse {
|
|
|
815
815
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
816
816
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
817
817
|
href: PropTypes.Requireable<string>;
|
|
818
|
-
download: PropTypes.Requireable<boolean
|
|
818
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
819
819
|
target: PropTypes.Requireable<string>;
|
|
820
820
|
rel: PropTypes.Requireable<string>;
|
|
821
821
|
}>>;
|
|
@@ -864,7 +864,7 @@ declare namespace ExternalCourse {
|
|
|
864
864
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
865
865
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
866
866
|
href: PropTypes.Requireable<string>;
|
|
867
|
-
download: PropTypes.Requireable<boolean
|
|
867
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
868
868
|
target: PropTypes.Requireable<string>;
|
|
869
869
|
rel: PropTypes.Requireable<string>;
|
|
870
870
|
}>>;
|
|
@@ -931,7 +931,7 @@ declare namespace ExternalCourse {
|
|
|
931
931
|
target: PropTypes.Requireable<string>;
|
|
932
932
|
hoverColor: PropTypes.Requireable<string>;
|
|
933
933
|
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
934
|
-
download: PropTypes.Requireable<boolean
|
|
934
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
935
935
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
936
936
|
onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
937
937
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -161,7 +161,7 @@ declare namespace PlaylistDetail {
|
|
|
161
161
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
162
162
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
163
163
|
href: PropTypes.Requireable<string>;
|
|
164
|
-
download: PropTypes.Requireable<boolean
|
|
164
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
165
165
|
target: PropTypes.Requireable<string>;
|
|
166
166
|
rel: PropTypes.Requireable<string>;
|
|
167
167
|
}>>;
|
|
@@ -317,7 +317,7 @@ declare namespace PlaylistDetail {
|
|
|
317
317
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
318
318
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
319
319
|
href: PropTypes.Requireable<string>;
|
|
320
|
-
download: PropTypes.Requireable<boolean
|
|
320
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
321
321
|
target: PropTypes.Requireable<string>;
|
|
322
322
|
rel: PropTypes.Requireable<string>;
|
|
323
323
|
}>>;
|
|
@@ -496,7 +496,7 @@ declare namespace PlaylistDetail {
|
|
|
496
496
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
497
497
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
498
498
|
href: PropTypes.Requireable<string>;
|
|
499
|
-
download: PropTypes.Requireable<boolean
|
|
499
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
500
500
|
target: PropTypes.Requireable<string>;
|
|
501
501
|
rel: PropTypes.Requireable<string>;
|
|
502
502
|
}>>;
|
|
@@ -544,7 +544,7 @@ declare namespace PlaylistDetail {
|
|
|
544
544
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
545
545
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
546
546
|
href: PropTypes.Requireable<string>;
|
|
547
|
-
download: PropTypes.Requireable<boolean
|
|
547
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
548
548
|
target: PropTypes.Requireable<string>;
|
|
549
549
|
rel: PropTypes.Requireable<string>;
|
|
550
550
|
}>>;
|
|
@@ -688,7 +688,7 @@ declare namespace PlaylistDetail {
|
|
|
688
688
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
689
689
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
690
690
|
href: PropTypes.Requireable<string>;
|
|
691
|
-
download: PropTypes.Requireable<boolean
|
|
691
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
692
692
|
target: PropTypes.Requireable<string>;
|
|
693
693
|
rel: PropTypes.Requireable<string>;
|
|
694
694
|
}>>;
|
|
@@ -800,7 +800,7 @@ declare namespace PlaylistDetail {
|
|
|
800
800
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
801
801
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
802
802
|
href: PropTypes.Requireable<string>;
|
|
803
|
-
download: PropTypes.Requireable<boolean
|
|
803
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
804
804
|
target: PropTypes.Requireable<string>;
|
|
805
805
|
rel: PropTypes.Requireable<string>;
|
|
806
806
|
}>>;
|
|
@@ -884,7 +884,7 @@ declare namespace PlaylistDetail {
|
|
|
884
884
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
885
885
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
886
886
|
href: PropTypes.Requireable<string>;
|
|
887
|
-
download: PropTypes.Requireable<boolean
|
|
887
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
888
888
|
target: PropTypes.Requireable<string>;
|
|
889
889
|
rel: PropTypes.Requireable<string>;
|
|
890
890
|
}>>;
|
|
@@ -933,7 +933,7 @@ declare namespace PlaylistDetail {
|
|
|
933
933
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
934
934
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
935
935
|
href: PropTypes.Requireable<string>;
|
|
936
|
-
download: PropTypes.Requireable<boolean
|
|
936
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
937
937
|
target: PropTypes.Requireable<string>;
|
|
938
938
|
rel: PropTypes.Requireable<string>;
|
|
939
939
|
}>>;
|
|
@@ -1000,7 +1000,7 @@ declare namespace PlaylistDetail {
|
|
|
1000
1000
|
target: PropTypes.Requireable<string>;
|
|
1001
1001
|
hoverColor: PropTypes.Requireable<string>;
|
|
1002
1002
|
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
1003
|
-
download: PropTypes.Requireable<boolean
|
|
1003
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
1004
1004
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1005
1005
|
onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1006
1006
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -20,6 +20,7 @@ declare namespace Autocomplete {
|
|
|
20
20
|
const onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
21
|
const onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
22
|
const onSuggestionSelected: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
|
+
const focusInputOnSuggestionClick: PropTypes.Requireable<boolean>;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/autocomplete/index.js"],"names":[],"mappings":";AAmBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/autocomplete/index.js"],"names":[],"mappings":";AAmBA,uDA+GC"}
|
|
@@ -36,6 +36,7 @@ const Autocomplete = props => {
|
|
|
36
36
|
onClear = _noop2.default,
|
|
37
37
|
onBlur = _noop2.default,
|
|
38
38
|
onSuggestionSelected = _noop2.default,
|
|
39
|
+
focusInputOnSuggestionClick = false,
|
|
39
40
|
title: propsTitle,
|
|
40
41
|
theme = 'default'
|
|
41
42
|
} = props;
|
|
@@ -100,7 +101,7 @@ const Autocomplete = props => {
|
|
|
100
101
|
getSuggestionValue: _noop2.default,
|
|
101
102
|
renderSuggestion: renderSuggestion,
|
|
102
103
|
inputProps: inputProps,
|
|
103
|
-
focusInputOnSuggestionClick:
|
|
104
|
+
focusInputOnSuggestionClick: focusInputOnSuggestionClick,
|
|
104
105
|
onSuggestionSelected: handleSuggestionsSelected
|
|
105
106
|
}), errorIconView, errorText)), descriptionView);
|
|
106
107
|
};
|
|
@@ -122,7 +123,8 @@ Autocomplete.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
122
123
|
onFetch: _propTypes.default.func,
|
|
123
124
|
onClear: _propTypes.default.func,
|
|
124
125
|
onBlur: _propTypes.default.func,
|
|
125
|
-
onSuggestionSelected: _propTypes.default.func
|
|
126
|
+
onSuggestionSelected: _propTypes.default.func,
|
|
127
|
+
focusInputOnSuggestionClick: _propTypes.default.bool
|
|
126
128
|
} : {};
|
|
127
129
|
var _default = exports.default = Autocomplete;
|
|
128
130
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_reactAutosuggest","_interopRequireDefault","_propTypes","_classnames","_novaIcons","_getClassState","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","THEME_STYLE","coorpmanager","style","defaultStyle","renderSuggestion","suggestion","createElement","name","Autocomplete","props","placeholder","value","description","required","modified","error","errorMessage","suggestions","onInput","_noop2","onFetch","onClear","onBlur","onSuggestionSelected","title","propsTitle","theme","mainClass","useMemo","className","getClassState","handleInput","useCallback","handleBlur","selectedSuggestion","handleSuggestionsFetchRequested","handleSuggestionsClearRequested","handleSuggestionsSelected","data","inputProps","onChange","descriptionView","toolTipView","infoIconWrapper","NovaCompositionCoorpacademyInformationIcon","infoIcon","descriptionLabel","errorIconView","NovaSolidStatusClose","leftIcon","errorText","dangerouslySetInnerHTML","__html","classnames","_isNil2","isNoTitle","_isEmpty2","noValue","inputContainer","container","input","suggestionsContainer","suggestionsContainerOpen","suggestionsList","suggestionHighlighted","onSuggestionsFetchRequested","onSuggestionsClearRequested","getSuggestionValue","focusInputOnSuggestionClick","propTypes","process","env","NODE_ENV","PropTypes","string","bool","arrayOf","shape","oneOfType","number","oneOf","_keys2","func","_default","exports"],"sources":["../../../src/atom/autocomplete/index.js"],"sourcesContent":["import React, {useCallback, useMemo} from 'react';\nimport Autosuggest from 'react-autosuggest';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {noop, isNil, isEmpty, keys} from 'lodash/fp';\nimport {\n NovaSolidStatusClose as ErrorIcon,\n NovaCompositionCoorpacademyInformationIcon as InfoIcon\n} from '@coorpacademy/nova-icons';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst THEME_STYLE = {\n coorpmanager: style.coorpmanager,\n default: style.defaultStyle\n};\n\nconst renderSuggestion = suggestion => <span>{suggestion.name}</span>;\n\nconst Autocomplete = props => {\n const {\n placeholder = '',\n value,\n description,\n required,\n modified = false,\n error = false,\n errorMessage,\n suggestions = [],\n onInput = noop,\n onFetch = noop,\n onClear = noop,\n onBlur = noop,\n onSuggestionSelected = noop,\n title: propsTitle,\n theme = 'default'\n } = props;\n\n const mainClass = THEME_STYLE[theme];\n const title = useMemo(() => `${propsTitle}${required ? '*' : ''}`, [propsTitle, required]);\n const className = useMemo(\n () => getClassState(style.defaultStyle, style.modified, style.error, modified, error),\n [modified, error]\n );\n\n const handleInput = useCallback(\n e => {\n onInput(e);\n },\n [onInput]\n );\n const handleBlur = useCallback(\n (e, selectedSuggestion) => onBlur(e, selectedSuggestion),\n [onBlur]\n );\n const handleSuggestionsFetchRequested = useCallback(e => onFetch(e), [onFetch]);\n const handleSuggestionsClearRequested = useCallback(e => onClear(e), [onClear]);\n const handleSuggestionsSelected = useCallback(\n (e, data) => onSuggestionSelected(data),\n [onSuggestionSelected]\n );\n\n const inputProps = {\n placeholder,\n value,\n onChange: noop,\n onBlur: handleBlur,\n onInput: handleInput,\n 'data-testid': 'autocomplete-input'\n };\n\n const descriptionView =\n description && theme !== 'coorpmanager' ? (\n <div className={style.description}>{description}</div>\n ) : null;\n\n const toolTipView =\n description && theme === 'coorpmanager' ? (\n <div className={style.infoIconWrapper}>\n <InfoIcon className={style.infoIcon} />\n <div className={style.descriptionLabel}>{description}</div>\n </div>\n ) : null;\n\n const errorIconView =\n theme === 'coorpmanager' && error ? <ErrorIcon className={style.leftIcon} /> : null;\n\n const errorText =\n theme === 'coorpmanager' && error ? (\n <div\n className={style.errorText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: errorMessage}}\n />\n ) : null;\n return (\n <div className={classnames(mainClass, className, isNil(propsTitle) && style.isNoTitle)}>\n <label>\n <span className={classnames(style.title, isEmpty(value) && style.noValue)}>\n {title}\n {toolTipView}\n </span>\n <div className={style.inputContainer}>\n <Autosuggest\n theme={{\n container: style.container,\n input: style.input,\n suggestionsContainer: style.suggestionsContainer,\n suggestionsContainerOpen: style.suggestionsContainerOpen,\n suggestionsList: style.suggestionsList,\n suggestion: style.suggestion,\n suggestionHighlighted: style.suggestionHighlighted\n }}\n suggestions={suggestions}\n onSuggestionsFetchRequested={handleSuggestionsFetchRequested}\n onSuggestionsClearRequested={handleSuggestionsClearRequested}\n getSuggestionValue={noop}\n renderSuggestion={renderSuggestion}\n inputProps={inputProps}\n focusInputOnSuggestionClick={false}\n onSuggestionSelected={handleSuggestionsSelected}\n />\n {errorIconView}\n {errorText}\n </div>\n </label>\n {descriptionView}\n </div>\n );\n};\n\nAutocomplete.propTypes = {\n title: PropTypes.string,\n placeholder: PropTypes.string,\n value: PropTypes.string,\n description: PropTypes.string,\n required: PropTypes.bool,\n modified: PropTypes.bool,\n error: PropTypes.bool,\n errorMessage: PropTypes.string,\n suggestions: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string,\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n })\n ),\n theme: PropTypes.oneOf(keys(THEME_STYLE)),\n onInput: PropTypes.func,\n onFetch: PropTypes.func,\n onClear: PropTypes.func,\n onBlur: PropTypes.func,\n onSuggestionSelected: PropTypes.func\n};\n\nexport default Autocomplete;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,UAAA,GAAAL,OAAA;AAIA,IAAAM,cAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,MAAA,GAAAL,sBAAA,CAAAF,OAAA;AAAgC,SAA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AACO,KAAK,CAAC,IAAAC,MAAA,CAAA/F,OAAA,EAAKc,WAAW,CAAC,CAAC;EACzCkB,OAAO,EAAEuD,kBAAS,CAACS,IAAI;EACvB9D,OAAO,EAAEqD,kBAAS,CAACS,IAAI;EACvB7D,OAAO,EAAEoD,kBAAS,CAACS,IAAI;EACvB5D,MAAM,EAAEmD,kBAAS,CAACS,IAAI;EACtB3D,oBAAoB,EAAEkD,kBAAS,CAACS;AAClC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAlG,OAAA,GAEasB,YAAY","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_reactAutosuggest","_interopRequireDefault","_propTypes","_classnames","_novaIcons","_getClassState","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","THEME_STYLE","coorpmanager","style","defaultStyle","renderSuggestion","suggestion","createElement","name","Autocomplete","props","placeholder","value","description","required","modified","error","errorMessage","suggestions","onInput","_noop2","onFetch","onClear","onBlur","onSuggestionSelected","focusInputOnSuggestionClick","title","propsTitle","theme","mainClass","useMemo","className","getClassState","handleInput","useCallback","handleBlur","selectedSuggestion","handleSuggestionsFetchRequested","handleSuggestionsClearRequested","handleSuggestionsSelected","data","inputProps","onChange","descriptionView","toolTipView","infoIconWrapper","NovaCompositionCoorpacademyInformationIcon","infoIcon","descriptionLabel","errorIconView","NovaSolidStatusClose","leftIcon","errorText","dangerouslySetInnerHTML","__html","classnames","_isNil2","isNoTitle","_isEmpty2","noValue","inputContainer","container","input","suggestionsContainer","suggestionsContainerOpen","suggestionsList","suggestionHighlighted","onSuggestionsFetchRequested","onSuggestionsClearRequested","getSuggestionValue","propTypes","process","env","NODE_ENV","PropTypes","string","bool","arrayOf","shape","oneOfType","number","oneOf","_keys2","func","_default","exports"],"sources":["../../../src/atom/autocomplete/index.js"],"sourcesContent":["import React, {useCallback, useMemo} from 'react';\nimport Autosuggest from 'react-autosuggest';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {noop, isNil, isEmpty, keys} from 'lodash/fp';\nimport {\n NovaSolidStatusClose as ErrorIcon,\n NovaCompositionCoorpacademyInformationIcon as InfoIcon\n} from '@coorpacademy/nova-icons';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst THEME_STYLE = {\n coorpmanager: style.coorpmanager,\n default: style.defaultStyle\n};\n\nconst renderSuggestion = suggestion => <span>{suggestion.name}</span>;\n\nconst Autocomplete = props => {\n const {\n placeholder = '',\n value,\n description,\n required,\n modified = false,\n error = false,\n errorMessage,\n suggestions = [],\n onInput = noop,\n onFetch = noop,\n onClear = noop,\n onBlur = noop,\n onSuggestionSelected = noop,\n focusInputOnSuggestionClick = false,\n title: propsTitle,\n theme = 'default'\n } = props;\n\n const mainClass = THEME_STYLE[theme];\n const title = useMemo(() => `${propsTitle}${required ? '*' : ''}`, [propsTitle, required]);\n const className = useMemo(\n () => getClassState(style.defaultStyle, style.modified, style.error, modified, error),\n [modified, error]\n );\n\n const handleInput = useCallback(\n e => {\n onInput(e);\n },\n [onInput]\n );\n const handleBlur = useCallback(\n (e, selectedSuggestion) => onBlur(e, selectedSuggestion),\n [onBlur]\n );\n const handleSuggestionsFetchRequested = useCallback(e => onFetch(e), [onFetch]);\n const handleSuggestionsClearRequested = useCallback(e => onClear(e), [onClear]);\n const handleSuggestionsSelected = useCallback(\n (e, data) => onSuggestionSelected(data),\n [onSuggestionSelected]\n );\n\n const inputProps = {\n placeholder,\n value,\n onChange: noop,\n onBlur: handleBlur,\n onInput: handleInput,\n 'data-testid': 'autocomplete-input'\n };\n\n const descriptionView =\n description && theme !== 'coorpmanager' ? (\n <div className={style.description}>{description}</div>\n ) : null;\n\n const toolTipView =\n description && theme === 'coorpmanager' ? (\n <div className={style.infoIconWrapper}>\n <InfoIcon className={style.infoIcon} />\n <div className={style.descriptionLabel}>{description}</div>\n </div>\n ) : null;\n\n const errorIconView =\n theme === 'coorpmanager' && error ? <ErrorIcon className={style.leftIcon} /> : null;\n\n const errorText =\n theme === 'coorpmanager' && error ? (\n <div\n className={style.errorText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: errorMessage}}\n />\n ) : null;\n return (\n <div className={classnames(mainClass, className, isNil(propsTitle) && style.isNoTitle)}>\n <label>\n <span className={classnames(style.title, isEmpty(value) && style.noValue)}>\n {title}\n {toolTipView}\n </span>\n <div className={style.inputContainer}>\n <Autosuggest\n theme={{\n container: style.container,\n input: style.input,\n suggestionsContainer: style.suggestionsContainer,\n suggestionsContainerOpen: style.suggestionsContainerOpen,\n suggestionsList: style.suggestionsList,\n suggestion: style.suggestion,\n suggestionHighlighted: style.suggestionHighlighted\n }}\n suggestions={suggestions}\n onSuggestionsFetchRequested={handleSuggestionsFetchRequested}\n onSuggestionsClearRequested={handleSuggestionsClearRequested}\n getSuggestionValue={noop}\n renderSuggestion={renderSuggestion}\n inputProps={inputProps}\n focusInputOnSuggestionClick={focusInputOnSuggestionClick}\n onSuggestionSelected={handleSuggestionsSelected}\n />\n {errorIconView}\n {errorText}\n </div>\n </label>\n {descriptionView}\n </div>\n );\n};\n\nAutocomplete.propTypes = {\n title: PropTypes.string,\n placeholder: PropTypes.string,\n value: PropTypes.string,\n description: PropTypes.string,\n required: PropTypes.bool,\n modified: PropTypes.bool,\n error: PropTypes.bool,\n errorMessage: PropTypes.string,\n suggestions: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string,\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n })\n ),\n theme: PropTypes.oneOf(keys(THEME_STYLE)),\n onInput: PropTypes.func,\n onFetch: PropTypes.func,\n onClear: PropTypes.func,\n onBlur: PropTypes.func,\n onSuggestionSelected: PropTypes.func,\n focusInputOnSuggestionClick: PropTypes.bool\n};\n\nexport default Autocomplete;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uB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CAACE,IAAI;EACrB3D,YAAY,EAAEyD,kBAAS,CAACC,MAAM;EAC9BzD,WAAW,EAAEwD,kBAAS,CAACG,OAAO,CAC5BH,kBAAS,CAACI,KAAK,CAAC;IACdtE,IAAI,EAAEkE,kBAAS,CAACC,MAAM;IACtB/D,KAAK,EAAE8D,kBAAS,CAACK,SAAS,CAAC,CAACL,kBAAS,CAACC,MAAM,EAAED,kBAAS,CAACM,MAAM,CAAC;EACjE,CAAC,CACH,CAAC;EACDpD,KAAK,EAAE8C,kBAAS,CAACO,KAAK,CAAC,IAAAC,MAAA,CAAA/F,OAAA,EAAKc,WAAW,CAAC,CAAC;EACzCkB,OAAO,EAAEuD,kBAAS,CAACS,IAAI;EACvB9D,OAAO,EAAEqD,kBAAS,CAACS,IAAI;EACvB7D,OAAO,EAAEoD,kBAAS,CAACS,IAAI;EACvB5D,MAAM,EAAEmD,kBAAS,CAACS,IAAI;EACtB3D,oBAAoB,EAAEkD,kBAAS,CAACS,IAAI;EACpC1D,2BAA2B,EAAEiD,kBAAS,CAACE;AACzC,CAAC;AAAC,IAAAQ,QAAA,GAAAC,OAAA,CAAAlG,OAAA,GAEasB,YAAY","ignoreList":[]}
|
|
@@ -36,7 +36,7 @@ declare const ButtonLink: {
|
|
|
36
36
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
37
37
|
link: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
38
38
|
href: import("prop-types").Requireable<string>;
|
|
39
|
-
download: import("prop-types").Requireable<boolean
|
|
39
|
+
download: import("prop-types").Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
40
40
|
target: import("prop-types").Requireable<string>;
|
|
41
41
|
rel: import("prop-types").Requireable<string>;
|
|
42
42
|
}>>;
|
|
@@ -47,7 +47,7 @@ declare const propTypes: {
|
|
|
47
47
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
48
48
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
49
49
|
href: PropTypes.Requireable<string>;
|
|
50
|
-
download: PropTypes.Requireable<boolean
|
|
50
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
51
51
|
target: PropTypes.Requireable<string>;
|
|
52
52
|
rel: PropTypes.Requireable<string>;
|
|
53
53
|
}>>;
|
|
@@ -87,7 +87,7 @@ export declare type ButtonLinkProps = {
|
|
|
87
87
|
onKeyDown?: () => void;
|
|
88
88
|
link?: {
|
|
89
89
|
href?: string;
|
|
90
|
-
download?: boolean;
|
|
90
|
+
download?: boolean | string;
|
|
91
91
|
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
92
92
|
rel?: string;
|
|
93
93
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/button-link/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,KAAK,EAAC,MAAM,yBAAyB,CAAC;AAC9C,OAAO,GAAG,MAAM,QAAQ,CAAC;AAUzB,eAAO,MAAM,aAAa;;;;;;;;;;CAIzB,CAAC;AAEF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Bd,CAAC;AAEF,oBAAY,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACnC,CAAC;AAEF,oBAAY,QAAQ,GAAG;IACrB,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,OAAO,KAAK,CAAC;IAC1B,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,SAAS,GAAG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AAK,CAAC,aAAa,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,GAAG,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC;CACxC,CAAC;AAEF,oBAAY,OAAO,GAAG;IAAC,KAAK,EAAE,eAAe,CAAA;CAAC,CAAC;AAE/C,eAAe,SAAS,CAAC"}
|
|
@@ -32,7 +32,7 @@ const propTypes = {
|
|
|
32
32
|
onClick: _propTypes.default.func,
|
|
33
33
|
link: _propTypes.default.shape({
|
|
34
34
|
href: _propTypes.default.string,
|
|
35
|
-
download: _propTypes.default.bool,
|
|
35
|
+
download: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string]),
|
|
36
36
|
target: _propTypes.default.oneOf(['_self', '_blank', '_parent', '_top']),
|
|
37
37
|
rel: _propTypes.default.string
|
|
38
38
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_buttonIcons","e","__esModule","default","faIconPropTypes","name","PropTypes","string","isRequired","color","backgroundColor","size","number","customStyle","object","iconPropTypes","exports","position","oneOf","type","_keys2","ICONS","faIcon","shape","propTypes","usage","label","content","node","tooltipText","tooltipPlacement","icon","oneOfType","arrayOf","onClick","func","link","href","download","bool","target","rel","hoverBackgroundColor","hoverColor","disabled","className","contentCustomStyle","useTitle","customLabelClassName","_default"],"sources":["../../../src/atom/button-link/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {keys} from 'lodash/fp';\nimport {ICONS} from '../../util/button-icons';\nimport Tag from '../tag';\n\nconst faIconPropTypes = {\n name: PropTypes.string.isRequired,\n color: PropTypes.string,\n backgroundColor: PropTypes.string,\n size: PropTypes.number,\n customStyle: PropTypes.object\n};\n\nexport const iconPropTypes = {\n position: PropTypes.oneOf(['right', 'left']),\n type: PropTypes.oneOf(keys(ICONS)),\n faIcon: PropTypes.shape(faIconPropTypes)\n};\n\nconst propTypes = {\n type: PropTypes.oneOf(['primary', 'secondary', 'tertiary', 'text', 'dangerous']),\n usage: PropTypes.oneOf(['button', 'submit', 'reset']),\n label: PropTypes.string,\n content: PropTypes.node,\n 'aria-label': PropTypes.string,\n tooltipText: PropTypes.string,\n tooltipPlacement: PropTypes.oneOf(['left', 'right', 'top', 'bottom']),\n 'data-name': PropTypes.string,\n 'data-testid': PropTypes.string,\n icon: PropTypes.oneOfType([\n PropTypes.shape(iconPropTypes),\n PropTypes.arrayOf(PropTypes.shape(iconPropTypes))\n ]),\n onClick: PropTypes.func,\n link: PropTypes.shape({\n href: PropTypes.string,\n download: PropTypes.bool,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),\n rel: PropTypes.string\n }),\n hoverBackgroundColor: PropTypes.string,\n hoverColor: PropTypes.string,\n disabled: PropTypes.bool,\n className: PropTypes.string,\n customStyle: PropTypes.object,\n contentCustomStyle: PropTypes.object,\n useTitle: PropTypes.bool,\n customLabelClassName: PropTypes.string\n};\n\nexport type FaIconType = {\n name: string;\n color?: string;\n backgroundColor?: string;\n size?: number;\n customStyle?: React.CSSProperties;\n};\n\nexport type IconType = {\n position: 'right' | 'left';\n type?: keyof typeof ICONS;\n faIcon?: FaIconType;\n};\n\nexport type ButtonLinkProps = {\n type?: 'primary' | 'secondary' | 'tertiary' | 'text' | 'dangerous';\n usage?: 'button' | 'submit' | 'reset';\n label?: string;\n content?: PropTypes.ReactNodeLike;\n 'aria-label'?: string;\n tooltipText?: string;\n tooltipPlacement?: 'left' | 'right' | 'top' | 'bottom';\n 'data-name'?: string;\n 'data-testid'?: string;\n icon?: IconType | IconType[];\n onClick?: () => void;\n onKeyDown?: () => void;\n link?: {\n href?: string;\n download?: boolean;\n target?: '_self' | '_blank' | '_parent' | '_top';\n rel?: string;\n };\n hoverBackgroundColor?: string;\n hoverColor?: string;\n disabled?: boolean;\n className?: string;\n customStyle?: React.CSSProperties;\n contentCustomStyle?: React.CSSProperties;\n useTitle?: boolean;\n customLabelClassName?: string;\n tag?: React.ComponentProps<typeof Tag>;\n};\n\nexport type Fixture = {props: ButtonLinkProps};\n\nexport default propTypes;\n"],"mappings":";;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAA8C,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG9C,MAAMG,eAAe,GAAG;EACtBC,IAAI,EAAEC,kBAAS,CAACC,MAAM,CAACC,UAAU;EACjCC,KAAK,EAAEH,kBAAS,CAACC,MAAM;EACvBG,eAAe,EAAEJ,kBAAS,CAACC,MAAM;EACjCI,IAAI,EAAEL,kBAAS,CAACM,MAAM;EACtBC,WAAW,EAAEP,kBAAS,CAACQ;AACzB,CAAC;AAEM,MAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG;EAC3BE,QAAQ,EAAEX,kBAAS,CAACY,KAAK,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;EAC5CC,IAAI,EAAEb,kBAAS,CAACY,KAAK,CAAC,IAAAE,MAAA,CAAAjB,OAAA,EAAKkB,kBAAK,CAAC,CAAC;EAClCC,MAAM,EAAEhB,kBAAS,CAACiB,KAAK,CAACnB,eAAe;AACzC,CAAC;AAED,MAAMoB,SAAS,GAAG;EAChBL,IAAI,EAAEb,kBAAS,CAACY,KAAK,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;EAChFO,KAAK,EAAEnB,kBAAS,CAACY,KAAK,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;EACrDQ,KAAK,EAAEpB,kBAAS,CAACC,MAAM;EACvBoB,OAAO,EAAErB,kBAAS,CAACsB,IAAI;EACvB,YAAY,EAAEtB,kBAAS,CAACC,MAAM;EAC9BsB,WAAW,EAAEvB,kBAAS,CAACC,MAAM;EAC7BuB,gBAAgB,EAAExB,kBAAS,CAACY,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;EACrE,WAAW,EAAEZ,kBAAS,CAACC,MAAM;EAC7B,aAAa,EAAED,kBAAS,CAACC,MAAM;EAC/BwB,IAAI,EAAEzB,kBAAS,CAAC0B,SAAS,CAAC,CACxB1B,kBAAS,CAACiB,KAAK,CAACR,aAAa,CAAC,EAC9BT,kBAAS,CAAC2B,OAAO,CAAC3B,kBAAS,CAACiB,KAAK,CAACR,aAAa,CAAC,CAAC,CAClD,CAAC;EACFmB,OAAO,EAAE5B,kBAAS,CAAC6B,IAAI;EACvBC,IAAI,EAAE9B,kBAAS,CAACiB,KAAK,CAAC;IACpBc,IAAI,EAAE/B,kBAAS,CAACC,MAAM;IACtB+B,QAAQ,EAAEhC,kBAAS,CAACiC,IAAI;
|
|
1
|
+
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_buttonIcons","e","__esModule","default","faIconPropTypes","name","PropTypes","string","isRequired","color","backgroundColor","size","number","customStyle","object","iconPropTypes","exports","position","oneOf","type","_keys2","ICONS","faIcon","shape","propTypes","usage","label","content","node","tooltipText","tooltipPlacement","icon","oneOfType","arrayOf","onClick","func","link","href","download","bool","target","rel","hoverBackgroundColor","hoverColor","disabled","className","contentCustomStyle","useTitle","customLabelClassName","_default"],"sources":["../../../src/atom/button-link/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {keys} from 'lodash/fp';\nimport {ICONS} from '../../util/button-icons';\nimport Tag from '../tag';\n\nconst faIconPropTypes = {\n name: PropTypes.string.isRequired,\n color: PropTypes.string,\n backgroundColor: PropTypes.string,\n size: PropTypes.number,\n customStyle: PropTypes.object\n};\n\nexport const iconPropTypes = {\n position: PropTypes.oneOf(['right', 'left']),\n type: PropTypes.oneOf(keys(ICONS)),\n faIcon: PropTypes.shape(faIconPropTypes)\n};\n\nconst propTypes = {\n type: PropTypes.oneOf(['primary', 'secondary', 'tertiary', 'text', 'dangerous']),\n usage: PropTypes.oneOf(['button', 'submit', 'reset']),\n label: PropTypes.string,\n content: PropTypes.node,\n 'aria-label': PropTypes.string,\n tooltipText: PropTypes.string,\n tooltipPlacement: PropTypes.oneOf(['left', 'right', 'top', 'bottom']),\n 'data-name': PropTypes.string,\n 'data-testid': PropTypes.string,\n icon: PropTypes.oneOfType([\n PropTypes.shape(iconPropTypes),\n PropTypes.arrayOf(PropTypes.shape(iconPropTypes))\n ]),\n onClick: PropTypes.func,\n link: PropTypes.shape({\n href: PropTypes.string,\n download: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),\n rel: PropTypes.string\n }),\n hoverBackgroundColor: PropTypes.string,\n hoverColor: PropTypes.string,\n disabled: PropTypes.bool,\n className: PropTypes.string,\n customStyle: PropTypes.object,\n contentCustomStyle: PropTypes.object,\n useTitle: PropTypes.bool,\n customLabelClassName: PropTypes.string\n};\n\nexport type FaIconType = {\n name: string;\n color?: string;\n backgroundColor?: string;\n size?: number;\n customStyle?: React.CSSProperties;\n};\n\nexport type IconType = {\n position: 'right' | 'left';\n type?: keyof typeof ICONS;\n faIcon?: FaIconType;\n};\n\nexport type ButtonLinkProps = {\n type?: 'primary' | 'secondary' | 'tertiary' | 'text' | 'dangerous';\n usage?: 'button' | 'submit' | 'reset';\n label?: string;\n content?: PropTypes.ReactNodeLike;\n 'aria-label'?: string;\n tooltipText?: string;\n tooltipPlacement?: 'left' | 'right' | 'top' | 'bottom';\n 'data-name'?: string;\n 'data-testid'?: string;\n icon?: IconType | IconType[];\n onClick?: () => void;\n onKeyDown?: () => void;\n link?: {\n href?: string;\n download?: boolean | string;\n target?: '_self' | '_blank' | '_parent' | '_top';\n rel?: string;\n };\n hoverBackgroundColor?: string;\n hoverColor?: string;\n disabled?: boolean;\n className?: string;\n customStyle?: React.CSSProperties;\n contentCustomStyle?: React.CSSProperties;\n useTitle?: boolean;\n customLabelClassName?: string;\n tag?: React.ComponentProps<typeof Tag>;\n};\n\nexport type Fixture = {props: ButtonLinkProps};\n\nexport default propTypes;\n"],"mappings":";;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAA8C,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG9C,MAAMG,eAAe,GAAG;EACtBC,IAAI,EAAEC,kBAAS,CAACC,MAAM,CAACC,UAAU;EACjCC,KAAK,EAAEH,kBAAS,CAACC,MAAM;EACvBG,eAAe,EAAEJ,kBAAS,CAACC,MAAM;EACjCI,IAAI,EAAEL,kBAAS,CAACM,MAAM;EACtBC,WAAW,EAAEP,kBAAS,CAACQ;AACzB,CAAC;AAEM,MAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG;EAC3BE,QAAQ,EAAEX,kBAAS,CAACY,KAAK,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;EAC5CC,IAAI,EAAEb,kBAAS,CAACY,KAAK,CAAC,IAAAE,MAAA,CAAAjB,OAAA,EAAKkB,kBAAK,CAAC,CAAC;EAClCC,MAAM,EAAEhB,kBAAS,CAACiB,KAAK,CAACnB,eAAe;AACzC,CAAC;AAED,MAAMoB,SAAS,GAAG;EAChBL,IAAI,EAAEb,kBAAS,CAACY,KAAK,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;EAChFO,KAAK,EAAEnB,kBAAS,CAACY,KAAK,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;EACrDQ,KAAK,EAAEpB,kBAAS,CAACC,MAAM;EACvBoB,OAAO,EAAErB,kBAAS,CAACsB,IAAI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AAC;AAAC,IAAA0C,QAAA,GAAAjC,OAAA,CAAAb,OAAA,GAgDaqB,SAAS","ignoreList":[]}
|
package/lib/atom/link/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare namespace Link {
|
|
|
11
11
|
target: PropTypes.Requireable<string>;
|
|
12
12
|
hoverColor: PropTypes.Requireable<string>;
|
|
13
13
|
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
14
|
-
download: PropTypes.Requireable<boolean
|
|
14
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
15
15
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
16
|
onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
17
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/link/index.js"],"names":[],"mappings":";AAMA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/link/index.js"],"names":[],"mappings":";AAMA,mEA4EC"}
|
package/lib/atom/link/index.js
CHANGED
|
@@ -73,6 +73,7 @@ const Link = (props, legacyContext) => {
|
|
|
73
73
|
}), children) : /*#__PURE__*/_react.default.createElement("a", _extends({}, restProps, {
|
|
74
74
|
"data-name": dataName,
|
|
75
75
|
href: disabled || !href ? undefined : createHref(href),
|
|
76
|
+
download: download,
|
|
76
77
|
onClick: disabled ? _noop2.default : handleOnClick,
|
|
77
78
|
style: style,
|
|
78
79
|
className: className,
|
|
@@ -90,7 +91,7 @@ Link.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
90
91
|
target: _propTypes.default.oneOf(['_self', '_blank', '_parent', '_top']),
|
|
91
92
|
hoverColor: _propTypes.default.string,
|
|
92
93
|
hoverBackgroundColor: _propTypes.default.string,
|
|
93
|
-
download: _propTypes.default.bool,
|
|
94
|
+
download: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string]),
|
|
94
95
|
onClick: _propTypes.default.func,
|
|
95
96
|
onMouseEnter: _propTypes.default.func,
|
|
96
97
|
onMouseLeave: _propTypes.default.func,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_provider","_navigation","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","Link","props","legacyContext","hovered","setHovered","useState","history","createHref","_identity2","hoverColor","hoverBackgroundColor","dataName","useButtonTag","href","onClick","_noop2","style","customStyle","children","onMouseEnter","onMouseLeave","download","disabled","className","restProps","navigate","useMemo","pushToHistory","handleMouseEnter","useCallback","handleMouseLeave","handleOnClick","backgroundColor","undefined","color","pointerEvents","createElement","type","propTypes","process","env","NODE_ENV","PropTypes","node","string","title","target","oneOf","bool","func","shape","contextTypes","skin","Provider","childContextTypes","_default","exports"],"sources":["../../../src/atom/link/index.js"],"sourcesContent":["import React, {useCallback, useMemo, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport {identity, noop} from 'lodash/fp';\nimport Provider from '../provider';\nimport pushToHistory from '../../util/navigation';\n\nconst Link = (props, legacyContext) => {\n const [hovered, setHovered] = useState(false);\n const {history: {createHref = identity} = {}} = legacyContext;\n\n const {\n hoverColor,\n hoverBackgroundColor,\n 'data-name': dataName = 'link',\n useButtonTag = false,\n href,\n onClick = noop,\n style: customStyle,\n children,\n onMouseEnter = noop,\n onMouseLeave = noop,\n download,\n disabled,\n className,\n ...restProps\n } = props;\n\n const navigate = useMemo(() => pushToHistory(legacyContext)({href}), [href, legacyContext]);\n\n const handleMouseEnter = useCallback(() => {\n setHovered(true);\n onMouseEnter();\n }, [onMouseEnter]);\n\n const handleMouseLeave = useCallback(() => {\n setHovered(false);\n onMouseLeave();\n }, [onMouseLeave]);\n\n const handleOnClick = useCallback(\n e => {\n onClick(e);\n if (!download) navigate(e);\n },\n [download, navigate, onClick]\n );\n\n const style = {\n ...customStyle,\n ...(hovered && hoverBackgroundColor ? {backgroundColor: hoverBackgroundColor} : undefined),\n ...(hovered && hoverColor ? {color: hoverColor} : undefined),\n ...(href || onClick ? null : {pointerEvents: 'none'})\n };\n\n return useButtonTag ? (\n <button\n {...restProps}\n data-name={dataName}\n type=\"button\"\n onClick={disabled ? noop : handleOnClick}\n style={style}\n className={className}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n {children}\n </button>\n ) : (\n <a\n {...restProps}\n data-name={dataName}\n href={disabled || !href ? undefined : createHref(href)}\n onClick={disabled ? noop : handleOnClick}\n style={style}\n className={className}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n {children}\n </a>\n );\n};\n\nLink.propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n href: PropTypes.string,\n 'data-name': PropTypes.string,\n 'aria-label': PropTypes.string,\n title: PropTypes.string,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),\n hoverColor: PropTypes.string,\n hoverBackgroundColor: PropTypes.string,\n download: PropTypes.bool,\n onClick: PropTypes.func,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n useButtonTag: PropTypes.bool,\n style: PropTypes.shape({}),\n disabled: PropTypes.bool\n};\n\nLink.contextTypes = {\n skin: Provider.childContextTypes.skin,\n history: Provider.childContextTypes.history\n};\n\nexport default Link;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AAAkD,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,O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":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_provider","_navigation","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","Link","props","legacyContext","hovered","setHovered","useState","history","createHref","_identity2","hoverColor","hoverBackgroundColor","dataName","useButtonTag","href","onClick","_noop2","style","customStyle","children","onMouseEnter","onMouseLeave","download","disabled","className","restProps","navigate","useMemo","pushToHistory","handleMouseEnter","useCallback","handleMouseLeave","handleOnClick","backgroundColor","undefined","color","pointerEvents","createElement","type","propTypes","process","env","NODE_ENV","PropTypes","node","string","title","target","oneOf","oneOfType","bool","func","shape","contextTypes","skin","Provider","childContextTypes","_default","exports"],"sources":["../../../src/atom/link/index.js"],"sourcesContent":["import React, {useCallback, useMemo, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport {identity, noop} from 'lodash/fp';\nimport Provider from '../provider';\nimport pushToHistory from '../../util/navigation';\n\nconst Link = (props, legacyContext) => {\n const [hovered, setHovered] = useState(false);\n const {history: {createHref = identity} = {}} = legacyContext;\n\n const {\n hoverColor,\n hoverBackgroundColor,\n 'data-name': dataName = 'link',\n useButtonTag = false,\n href,\n onClick = noop,\n style: customStyle,\n children,\n onMouseEnter = noop,\n onMouseLeave = noop,\n download,\n disabled,\n className,\n ...restProps\n } = props;\n\n const navigate = useMemo(() => pushToHistory(legacyContext)({href}), [href, legacyContext]);\n\n const handleMouseEnter = useCallback(() => {\n setHovered(true);\n onMouseEnter();\n }, [onMouseEnter]);\n\n const handleMouseLeave = useCallback(() => {\n setHovered(false);\n onMouseLeave();\n }, [onMouseLeave]);\n\n const handleOnClick = useCallback(\n e => {\n onClick(e);\n if (!download) navigate(e);\n },\n [download, navigate, onClick]\n );\n\n const style = {\n ...customStyle,\n ...(hovered && hoverBackgroundColor ? {backgroundColor: hoverBackgroundColor} : undefined),\n ...(hovered && hoverColor ? {color: hoverColor} : undefined),\n ...(href || onClick ? null : {pointerEvents: 'none'})\n };\n\n return useButtonTag ? (\n <button\n {...restProps}\n data-name={dataName}\n type=\"button\"\n onClick={disabled ? noop : handleOnClick}\n style={style}\n className={className}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n {children}\n </button>\n ) : (\n <a\n {...restProps}\n data-name={dataName}\n href={disabled || !href ? undefined : createHref(href)}\n download={download}\n onClick={disabled ? noop : handleOnClick}\n style={style}\n className={className}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n {children}\n </a>\n );\n};\n\nLink.propTypes = {\n children: PropTypes.node,\n className: PropTypes.string,\n href: PropTypes.string,\n 'data-name': PropTypes.string,\n 'aria-label': PropTypes.string,\n title: PropTypes.string,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),\n hoverColor: PropTypes.string,\n hoverBackgroundColor: PropTypes.string,\n download: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n onClick: PropTypes.func,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n useButtonTag: PropTypes.bool,\n style: PropTypes.shape({}),\n disabled: PropTypes.bool\n};\n\nLink.contextTypes = {\n skin: Provider.childContextTypes.skin,\n history: Provider.childContextTypes.history\n};\n\nexport default Link;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AAAkD,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAA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|
@@ -65,7 +65,7 @@ declare const RadioWithTitle: {
|
|
|
65
65
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
66
66
|
link: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
67
67
|
href: import("prop-types").Requireable<string>;
|
|
68
|
-
download: import("prop-types").Requireable<boolean
|
|
68
|
+
download: import("prop-types").Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
69
69
|
target: import("prop-types").Requireable<string>;
|
|
70
70
|
rel: import("prop-types").Requireable<string>;
|
|
71
71
|
}>>;
|
|
@@ -63,7 +63,7 @@ export declare const propTypes: {
|
|
|
63
63
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
64
64
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
65
65
|
href: PropTypes.Requireable<string>;
|
|
66
|
-
download: PropTypes.Requireable<boolean
|
|
66
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
67
67
|
target: PropTypes.Requireable<string>;
|
|
68
68
|
rel: PropTypes.Requireable<string>;
|
|
69
69
|
}>>;
|
|
@@ -63,7 +63,7 @@ declare namespace Title {
|
|
|
63
63
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
64
64
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
65
65
|
href: PropTypes.Requireable<string>;
|
|
66
|
-
download: PropTypes.Requireable<boolean
|
|
66
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
67
67
|
target: PropTypes.Requireable<string>;
|
|
68
68
|
rel: PropTypes.Requireable<string>;
|
|
69
69
|
}>>;
|
|
@@ -38,7 +38,7 @@ declare const ButtonMenuAction: {
|
|
|
38
38
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
39
39
|
link: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
40
40
|
href: import("prop-types").Requireable<string>;
|
|
41
|
-
download: import("prop-types").Requireable<boolean
|
|
41
|
+
download: import("prop-types").Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
42
42
|
target: import("prop-types").Requireable<string>;
|
|
43
43
|
rel: import("prop-types").Requireable<string>;
|
|
44
44
|
}>>;
|
|
@@ -37,7 +37,7 @@ declare const ButtonMenuActionPropTypes: {
|
|
|
37
37
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
38
38
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
39
39
|
href: PropTypes.Requireable<string>;
|
|
40
|
-
download: PropTypes.Requireable<boolean
|
|
40
|
+
download: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
41
41
|
target: PropTypes.Requireable<string>;
|
|
42
42
|
rel: PropTypes.Requireable<string>;
|
|
43
43
|
}>>;
|