@coorpacademy/components 11.14.13 → 11.14.14
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/cta/index.d.ts +36 -60
- package/es/atom/cta/index.d.ts.map +1 -1
- package/es/atom/cta/index.js +55 -94
- package/es/atom/cta/index.js.map +1 -1
- package/es/atom/cta/prop-types.d.ts +40 -0
- package/es/atom/cta/prop-types.d.ts.map +1 -0
- package/es/atom/cta/prop-types.js +22 -0
- package/es/atom/cta/prop-types.js.map +1 -0
- package/es/atom/link/index.d.ts +1 -0
- package/es/atom/link/index.d.ts.map +1 -1
- package/es/atom/link/index.js +17 -11
- package/es/atom/link/index.js.map +1 -1
- package/es/atom/slide/index.d.ts +2 -0
- package/es/globals.d.js.map +1 -1
- package/es/molecule/news/index.d.ts +2 -0
- package/es/organism/mooc/image-slider/index.d.ts +2 -0
- package/es/organism/mooc-header/index.d.ts +2 -0
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/organism/sidebar/index.d.ts +2 -0
- package/es/organism/sidebar/index.d.ts.map +1 -1
- package/es/template/app-player/player/index.d.ts +2 -0
- package/es/template/app-player/player/slides/index.d.ts +2 -0
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +2 -0
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +1 -0
- package/es/template/app-player/popin-end/summary.d.ts +1 -0
- package/es/template/app-player/popin-header/index.d.ts +1 -0
- package/es/template/app-player/popin-header/index.d.ts.map +1 -1
- package/es/template/teams-dashboard/index.d.ts +2 -0
- package/lib/atom/cta/index.d.ts +36 -60
- package/lib/atom/cta/index.d.ts.map +1 -1
- package/lib/atom/cta/index.js +61 -95
- package/lib/atom/cta/index.js.map +1 -1
- package/lib/atom/cta/prop-types.d.ts +40 -0
- package/lib/atom/cta/prop-types.d.ts.map +1 -0
- package/lib/atom/cta/prop-types.js +32 -0
- package/lib/atom/cta/prop-types.js.map +1 -0
- package/lib/atom/link/index.d.ts +1 -0
- package/lib/atom/link/index.d.ts.map +1 -1
- package/lib/atom/link/index.js +17 -11
- package/lib/atom/link/index.js.map +1 -1
- package/lib/atom/slide/index.d.ts +2 -0
- package/lib/globals.d.js.map +1 -1
- package/lib/molecule/news/index.d.ts +2 -0
- package/lib/organism/mooc/image-slider/index.d.ts +2 -0
- package/lib/organism/mooc-header/index.d.ts +2 -0
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/organism/sidebar/index.d.ts +2 -0
- package/lib/organism/sidebar/index.d.ts.map +1 -1
- package/lib/template/app-player/player/index.d.ts +2 -0
- package/lib/template/app-player/player/slides/index.d.ts +2 -0
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +2 -0
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +1 -0
- package/lib/template/app-player/popin-end/summary.d.ts +1 -0
- package/lib/template/app-player/popin-header/index.d.ts +1 -0
- package/lib/template/app-player/popin-header/index.d.ts.map +1 -1
- package/lib/template/teams-dashboard/index.d.ts +2 -0
- package/package.json +2 -2
package/lib/atom/link/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var _provider = _interopRequireWildcard(require("../provider"));
|
|
|
17
17
|
|
|
18
18
|
var _navigation = _interopRequireDefault(require("../../util/navigation"));
|
|
19
19
|
|
|
20
|
-
const _excluded = ["skinHover", "hoverColor", "data-name", "aria-label"];
|
|
20
|
+
const _excluded = ["skinHover", "hoverColor", "data-name", "aria-label", "useButtonTag"];
|
|
21
21
|
|
|
22
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
23
|
|
|
@@ -42,7 +42,8 @@ const Link = (props, legacyContext) => {
|
|
|
42
42
|
skinHover,
|
|
43
43
|
hoverColor = (0, _getOr2.default)('#00B0FF', 'common.primary', skin),
|
|
44
44
|
'data-name': dataName = 'link',
|
|
45
|
-
'aria-label': ariaLabel
|
|
45
|
+
'aria-label': ariaLabel,
|
|
46
|
+
useButtonTag = false
|
|
46
47
|
} = props,
|
|
47
48
|
linKElementProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
48
49
|
|
|
@@ -75,24 +76,28 @@ const Link = (props, legacyContext) => {
|
|
|
75
76
|
}
|
|
76
77
|
}, [download, navigate, onClick]);
|
|
77
78
|
|
|
78
|
-
const _style = href || onClick ? null : {
|
|
79
|
+
const _style = (0, _react.useMemo)(() => href || onClick ? null : {
|
|
79
80
|
pointerEvents: 'none'
|
|
80
|
-
};
|
|
81
|
+
}, [href, onClick]);
|
|
81
82
|
|
|
82
|
-
const _hoverStyle = skinHover && hovered ? {
|
|
83
|
+
const _hoverStyle = (0, _react.useMemo)(() => skinHover && hovered ? {
|
|
83
84
|
color: hoverColor
|
|
84
|
-
} : null;
|
|
85
|
+
} : null, [hoverColor, hovered, skinHover]);
|
|
85
86
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
const _props = (0, _react.useMemo)(() => _extends({}, linKElementProps, {
|
|
88
|
+
'data-name': dataName,
|
|
89
|
+
'aria-label': ariaLabel,
|
|
89
90
|
href: href ? createHref(href) : undefined,
|
|
90
91
|
onClick: handleOnClick,
|
|
91
92
|
onMouseEnter: handleMouseEnter,
|
|
92
93
|
onMouseLeave: handleMouseLeave,
|
|
93
|
-
className
|
|
94
|
+
className,
|
|
94
95
|
style: _extends({}, propsStyle, _style, _hoverStyle)
|
|
95
|
-
}),
|
|
96
|
+
}), [_hoverStyle, _style, ariaLabel, className, createHref, dataName, handleMouseEnter, handleMouseLeave, handleOnClick, href, linKElementProps, propsStyle]);
|
|
97
|
+
|
|
98
|
+
return useButtonTag ? /*#__PURE__*/_react.default.createElement("button", _extends({}, _props, {
|
|
99
|
+
type: "button"
|
|
100
|
+
}), children) : /*#__PURE__*/_react.default.createElement("a", _props, children);
|
|
96
101
|
};
|
|
97
102
|
|
|
98
103
|
Link.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -109,6 +114,7 @@ Link.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
109
114
|
onClick: _propTypes.default.func,
|
|
110
115
|
onMouseEnter: _propTypes.default.func,
|
|
111
116
|
onMouseLeave: _propTypes.default.func,
|
|
117
|
+
useButtonTag: _propTypes.default.bool,
|
|
112
118
|
style: _propTypes.default.shape({})
|
|
113
119
|
} : {};
|
|
114
120
|
Link.contextTypes = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Link","props","legacyContext","skin","GetSkinFromContext","hovered","setHovered","useState","history","createHref","skinHover","hoverColor","dataName","ariaLabel","linKElementProps","href","onClick","className","style","propsStyle","children","onMouseLeave","onMouseEnter","download","handleMouseEnter","useCallback","handleMouseLeave","navigate","useMemo","pushToHistory","handleOnClick","e","_style","pointerEvents","_hoverStyle","color","undefined","propTypes","PropTypes","node","string","title","target","oneOf","bool","func","shape","contextTypes","Provider","childContextTypes"],"sources":["../../../src/atom/link/index.js"],"sourcesContent":["import React, {useCallback, useMemo, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport {identity, getOr, noop} from 'lodash/fp';\nimport Provider, {GetSkinFromContext} from '../provider';\nimport pushToHistory from '../../util/navigation';\n\nconst Link = (props, legacyContext) => {\n const skin = GetSkinFromContext(legacyContext);\n const [hovered, setHovered] = useState(false);\n const {history: {createHref = identity} = {}} = legacyContext;\n const {\n skinHover,\n hoverColor = getOr('#00B0FF', 'common.primary', skin),\n 'data-name': dataName = 'link',\n 'aria-label': ariaLabel,\n ...linKElementProps\n } = props;\n const {\n href,\n onClick = noop,\n className,\n style: propsStyle,\n children,\n onMouseLeave = noop,\n onMouseEnter = noop,\n download\n } = props;\n\n const handleMouseEnter = useCallback(() => {\n setHovered(true);\n\n onMouseEnter();\n }, [onMouseEnter]);\n\n const handleMouseLeave = useCallback(() => {\n setHovered(false);\n\n onMouseLeave();\n }, [onMouseLeave]);\n\n const navigate = useMemo(() => pushToHistory(legacyContext)({href}), [href, legacyContext]);\n\n const handleOnClick = useCallback(\n e => {\n onClick(e);\n\n if (!download) {\n navigate(e);\n }\n },\n [download, navigate, onClick]\n );\n\n const _style
|
|
1
|
+
{"version":3,"file":"index.js","names":["Link","props","legacyContext","skin","GetSkinFromContext","hovered","setHovered","useState","history","createHref","skinHover","hoverColor","dataName","ariaLabel","useButtonTag","linKElementProps","href","onClick","className","style","propsStyle","children","onMouseLeave","onMouseEnter","download","handleMouseEnter","useCallback","handleMouseLeave","navigate","useMemo","pushToHistory","handleOnClick","e","_style","pointerEvents","_hoverStyle","color","_props","undefined","propTypes","PropTypes","node","string","title","target","oneOf","bool","func","shape","contextTypes","Provider","childContextTypes"],"sources":["../../../src/atom/link/index.js"],"sourcesContent":["import React, {useCallback, useMemo, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport {identity, getOr, noop} from 'lodash/fp';\nimport Provider, {GetSkinFromContext} from '../provider';\nimport pushToHistory from '../../util/navigation';\n\nconst Link = (props, legacyContext) => {\n const skin = GetSkinFromContext(legacyContext);\n const [hovered, setHovered] = useState(false);\n const {history: {createHref = identity} = {}} = legacyContext;\n const {\n skinHover,\n hoverColor = getOr('#00B0FF', 'common.primary', skin),\n 'data-name': dataName = 'link',\n 'aria-label': ariaLabel,\n useButtonTag = false,\n ...linKElementProps\n } = props;\n const {\n href,\n onClick = noop,\n className,\n style: propsStyle,\n children,\n onMouseLeave = noop,\n onMouseEnter = noop,\n download\n } = props;\n\n const handleMouseEnter = useCallback(() => {\n setHovered(true);\n\n onMouseEnter();\n }, [onMouseEnter]);\n\n const handleMouseLeave = useCallback(() => {\n setHovered(false);\n\n onMouseLeave();\n }, [onMouseLeave]);\n\n const navigate = useMemo(() => pushToHistory(legacyContext)({href}), [href, legacyContext]);\n\n const handleOnClick = useCallback(\n e => {\n onClick(e);\n\n if (!download) {\n navigate(e);\n }\n },\n [download, navigate, onClick]\n );\n\n const _style = useMemo(\n () =>\n href || onClick\n ? null\n : {\n pointerEvents: 'none'\n },\n [href, onClick]\n );\n const _hoverStyle = useMemo(\n () =>\n skinHover && hovered\n ? {\n color: hoverColor\n }\n : null,\n [hoverColor, hovered, skinHover]\n );\n\n const _props = useMemo(\n () => ({\n ...linKElementProps,\n 'data-name': dataName,\n 'aria-label': ariaLabel,\n href: href ? createHref(href) : undefined,\n onClick: handleOnClick,\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n className,\n style: {\n ...propsStyle,\n ..._style,\n ..._hoverStyle\n }\n }),\n [\n _hoverStyle,\n _style,\n ariaLabel,\n className,\n createHref,\n dataName,\n handleMouseEnter,\n handleMouseLeave,\n handleOnClick,\n href,\n linKElementProps,\n propsStyle\n ]\n );\n\n return useButtonTag ? (\n <button {..._props} type=\"button\">\n {children}\n </button>\n ) : (\n <a {..._props}>{children}</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 skinHover: PropTypes.bool,\n hoverColor: 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};\n\nLink.contextTypes = {\n skin: Provider.childContextTypes.skin,\n history: Provider.childContextTypes.history\n};\n\nexport default Link;\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;;;;;;;AAEA,MAAMA,IAAI,GAAG,CAACC,KAAD,EAAQC,aAAR,KAA0B;EACrC,MAAMC,IAAI,GAA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CAAUE,MALT;EAMfC,KAAK,EAAEH,kBAAA,CAAUE,MANF;EAOfE,MAAM,EAAEJ,kBAAA,CAAUK,KAAV,CAAgB,CAAC,OAAD,EAAU,QAAV,EAAoB,SAApB,EAA+B,MAA/B,CAAhB,CAPO;EAQfnC,SAAS,EAAE8B,kBAAA,CAAUM,IARN;EASfnC,UAAU,EAAE6B,kBAAA,CAAUE,MATP;EAUflB,QAAQ,EAAEgB,kBAAA,CAAUM,IAVL;EAWf7B,OAAO,EAAEuB,kBAAA,CAAUO,IAXJ;EAYfxB,YAAY,EAAEiB,kBAAA,CAAUO,IAZT;EAafzB,YAAY,EAAEkB,kBAAA,CAAUO,IAbT;EAcfjC,YAAY,EAAE0B,kBAAA,CAAUM,IAdT;EAef3B,KAAK,EAAEqB,kBAAA,CAAUQ,KAAV,CAAgB,EAAhB;AAfQ,CAAjB;AAkBAhD,IAAI,CAACiD,YAAL,GAAoB;EAClB9C,IAAI,EAAE+C,iBAAA,CAASC,iBAAT,CAA2BhD,IADf;EAElBK,OAAO,EAAE0C,iBAAA,CAASC,iBAAT,CAA2B3C;AAFlB,CAApB;eAKeR,I"}
|
|
@@ -7,6 +7,7 @@ declare namespace Slide {
|
|
|
7
7
|
const subtitle: PropTypes.Requireable<string>;
|
|
8
8
|
const light: PropTypes.Requireable<boolean>;
|
|
9
9
|
const cta: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
10
11
|
submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
11
12
|
href: PropTypes.Requireable<string>;
|
|
12
13
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -21,6 +22,7 @@ declare namespace Slide {
|
|
|
21
22
|
rectangular: PropTypes.Requireable<boolean>;
|
|
22
23
|
fullWidth: PropTypes.Requireable<boolean>;
|
|
23
24
|
certificationButton: PropTypes.Requireable<boolean>;
|
|
25
|
+
useButtonTag: PropTypes.Requireable<boolean>;
|
|
24
26
|
}>>;
|
|
25
27
|
const alignment: PropTypes.Requireable<string>;
|
|
26
28
|
}
|
package/lib/globals.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globals.d.js","names":[],"sources":["../src/globals.d.ts"],"sourcesContent":["declare module '@coorpacademy/nova-icons';\ndeclare module '@coorpacademy/react-native-slider';\ndeclare module '@react-native-community/blur';\ndeclare module '@coorpacademy/translate';\ndeclare module 'browser-env';\ndeclare module 'react-native/*';\ndeclare module 'color';\ndeclare module 'classnames';\ndeclare module '*.css';\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"globals.d.js","names":[],"sources":["../src/globals.d.ts"],"sourcesContent":["declare module '@coorpacademy/nova-icons';\ndeclare module '@coorpacademy/react-native-slider';\ndeclare module '@react-native-community/blur';\ndeclare module '@coorpacademy/translate';\ndeclare module 'browser-env';\ndeclare module 'react-native/*';\ndeclare module 'color';\ndeclare module 'css-color-function';\ndeclare module 'classnames';\ndeclare module '*.css';\n"],"mappings":""}
|
|
@@ -8,6 +8,7 @@ declare namespace News {
|
|
|
8
8
|
const description: PropTypes.Requireable<string>;
|
|
9
9
|
const authorLogo: PropTypes.Requireable<string>;
|
|
10
10
|
const cta: PropTypes.Requireable<PropTypes.InferProps<{
|
|
11
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
11
12
|
submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
13
|
href: PropTypes.Requireable<string>;
|
|
13
14
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -22,6 +23,7 @@ declare namespace News {
|
|
|
22
23
|
rectangular: PropTypes.Requireable<boolean>;
|
|
23
24
|
fullWidth: PropTypes.Requireable<boolean>;
|
|
24
25
|
certificationButton: PropTypes.Requireable<boolean>;
|
|
26
|
+
useButtonTag: PropTypes.Requireable<boolean>;
|
|
25
27
|
}>>;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
@@ -10,6 +10,7 @@ declare namespace ImageSlider {
|
|
|
10
10
|
subtitle: PropTypes.Requireable<string>;
|
|
11
11
|
light: PropTypes.Requireable<boolean>;
|
|
12
12
|
cta: PropTypes.Requireable<PropTypes.InferProps<{
|
|
13
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
13
14
|
submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
14
15
|
href: PropTypes.Requireable<string>;
|
|
15
16
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -24,6 +25,7 @@ declare namespace ImageSlider {
|
|
|
24
25
|
rectangular: PropTypes.Requireable<boolean>;
|
|
25
26
|
fullWidth: PropTypes.Requireable<boolean>;
|
|
26
27
|
certificationButton: PropTypes.Requireable<boolean>;
|
|
28
|
+
useButtonTag: PropTypes.Requireable<boolean>;
|
|
27
29
|
}>>;
|
|
28
30
|
alignment: PropTypes.Requireable<string>;
|
|
29
31
|
}> | null | undefined)[]>;
|
|
@@ -42,6 +42,7 @@ declare class MoocHeader extends React.Component<any, any, any> {
|
|
|
42
42
|
}> | null | undefined)[]>;
|
|
43
43
|
}>>;
|
|
44
44
|
links: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
45
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
45
46
|
submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
46
47
|
href: PropTypes.Requireable<string>;
|
|
47
48
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -56,6 +57,7 @@ declare class MoocHeader extends React.Component<any, any, any> {
|
|
|
56
57
|
rectangular: PropTypes.Requireable<boolean>;
|
|
57
58
|
fullWidth: PropTypes.Requireable<boolean>;
|
|
58
59
|
certificationButton: PropTypes.Requireable<boolean>;
|
|
60
|
+
useButtonTag: PropTypes.Requireable<boolean>;
|
|
59
61
|
}> | null | undefined)[]>;
|
|
60
62
|
user: PropTypes.Requireable<PropTypes.InferProps<{
|
|
61
63
|
picture: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAyBA;IACE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAyBA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6FE;IAEF;;;;;;;;;;;;;;;;;;;;;;;MAGE;IAEF,wBAwBC;IAtBC;;;;;;MAMC;IAgDH,6BAIC;IAED,yBAGC;IAxBD,qCAQC;IAED,wBAGC;IAjBD,+BAEC;IA4BD,2BAKC;IAED,0BAKC;IAED,sBAIC;IAED,qBAIC;IAED,yBAQC;IAED,0BAQC;IAED,0BAIC;IAED,2BAIC;IAED,iCAUC;IA7GD,2EASC;IAGC,kBAAsB;IAmGxB,6BAIE;IAEF,6BAIE;IAEF,6BAucC;CACF"}
|
|
@@ -141,6 +141,7 @@ export namespace ButtonItem {
|
|
|
141
141
|
const onClick_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
142
142
|
export { onClick_1 as onClick };
|
|
143
143
|
export const cta: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
|
|
144
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
144
145
|
submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
145
146
|
href: PropTypes.Requireable<string>;
|
|
146
147
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -155,6 +156,7 @@ export namespace ButtonItem {
|
|
|
155
156
|
rectangular: PropTypes.Requireable<boolean>;
|
|
156
157
|
fullWidth: PropTypes.Requireable<boolean>;
|
|
157
158
|
certificationButton: PropTypes.Requireable<boolean>;
|
|
159
|
+
useButtonTag: PropTypes.Requireable<boolean>;
|
|
158
160
|
}> | null | undefined>>;
|
|
159
161
|
const uppercase_4: PropTypes.Requireable<boolean>;
|
|
160
162
|
export { uppercase_4 as uppercase };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/sidebar/index.js"],"names":[],"mappings":"AAeO,uDA0BN;;;;;;;;;;;;;AAaM;;;;;;;gBAON;;;;;;;;;;;;;;;;;;;;;AAiBM;;;;;;;gBAON;;;;;AAIM;;;;;;;;;;;;;gBAwDN;;;;;;;;;;;;;;;;;;;;AAeM;;;;;;gBAyBN;;;;;AAIM;;;;;gBAMN;;;;;;;;;;;;;;AASM;;;;;;;;;;gBA6CN
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/sidebar/index.js"],"names":[],"mappings":"AAeO,uDA0BN;;;;;;;;;;;;;AAaM;;;;;;;gBAON;;;;;;;;;;;;;;;;;;;;;AAiBM;;;;;;;gBAON;;;;;AAIM;;;;;;;;;;;;;gBAwDN;;;;;;;;;;;;;;;;;;;;AAeM;;;;;;gBAyBN;;;;;AAIM;;;;;gBAMN;;;;;;;;;;;;;;AASM;;;;;;;;;;gBA6CN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcM;;;;;;;;;gBAuBN;;;;;;;;;;;;;;;;;;;;;;;;AAkED;;8BAaC"}
|
|
@@ -4,6 +4,7 @@ declare namespace SlidePlayer {
|
|
|
4
4
|
namespace propTypes {
|
|
5
5
|
const player: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
6
|
cta: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
7
8
|
submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
8
9
|
href: PropTypes.Requireable<string>;
|
|
9
10
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -18,6 +19,7 @@ declare namespace SlidePlayer {
|
|
|
18
19
|
rectangular: PropTypes.Requireable<boolean>;
|
|
19
20
|
fullWidth: PropTypes.Requireable<boolean>;
|
|
20
21
|
certificationButton: PropTypes.Requireable<boolean>;
|
|
22
|
+
useButtonTag: PropTypes.Requireable<boolean>;
|
|
21
23
|
}>>;
|
|
22
24
|
step: PropTypes.Requireable<PropTypes.InferProps<{
|
|
23
25
|
current: PropTypes.Validator<number>;
|
|
@@ -128,6 +128,7 @@ declare function ValidateButton({ cta }: {
|
|
|
128
128
|
declare namespace ValidateButton {
|
|
129
129
|
export namespace propTypes_1 {
|
|
130
130
|
const cta_1: PropTypes.Requireable<PropTypes.InferProps<{
|
|
131
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
131
132
|
submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
132
133
|
href: PropTypes.Requireable<string>;
|
|
133
134
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -142,6 +143,7 @@ declare namespace ValidateButton {
|
|
|
142
143
|
rectangular: PropTypes.Requireable<boolean>;
|
|
143
144
|
fullWidth: PropTypes.Requireable<boolean>;
|
|
144
145
|
certificationButton: PropTypes.Requireable<boolean>;
|
|
146
|
+
useButtonTag: PropTypes.Requireable<boolean>;
|
|
145
147
|
}>>;
|
|
146
148
|
export { cta_1 as cta };
|
|
147
149
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AAgZA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1HD;;uBAUC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AAgZA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1HD;;uBAUC;;;;;;;;;;;;;;;;;;;;;;;;;AAnOD;;;gBAaC;;;;;;;;;;;;;AAyDD;;;gBAAoF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhHpF,oEAQC;;;;;;;;;AA6MD;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
|
|
@@ -36,6 +36,7 @@ declare class PopinCorrection extends React.Component<any, any, any> {
|
|
|
36
36
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
37
37
|
onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
38
38
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
39
|
+
useButtonTag: PropTypes.Requireable<boolean>;
|
|
39
40
|
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
40
41
|
}>>;
|
|
41
42
|
type: PropTypes.Validator<string>;
|
|
@@ -83,6 +84,7 @@ declare class PopinCorrection extends React.Component<any, any, any> {
|
|
|
83
84
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
84
85
|
onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
85
86
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
87
|
+
useButtonTag: PropTypes.Requireable<boolean>;
|
|
86
88
|
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
87
89
|
}>>;
|
|
88
90
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,wBAIC;IAFC;;MAA0B;IAkB5B,gCAEC;IAhBD,0BAEC;IAED,kBAQC;IALC,gCAIE;IAIF,aAAsB;IAGxB,sBAsEC;CACF"}
|
|
@@ -36,6 +36,7 @@ declare namespace PopinEnd {
|
|
|
36
36
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
37
37
|
onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
38
38
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
39
|
+
useButtonTag: PropTypes.Requireable<boolean>;
|
|
39
40
|
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
40
41
|
}>>;
|
|
41
42
|
type: PropTypes.Validator<string>;
|
|
@@ -42,6 +42,7 @@ declare namespace Summary {
|
|
|
42
42
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
43
43
|
onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
44
44
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
45
|
+
useButtonTag: PropTypes.Requireable<boolean>;
|
|
45
46
|
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
46
47
|
}>>;
|
|
47
48
|
type: PropTypes.Validator<string>;
|
|
@@ -72,6 +72,7 @@ declare namespace NextQuestionPart {
|
|
|
72
72
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
73
73
|
onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
74
74
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
75
|
+
useButtonTag: PropTypes.Requireable<boolean>;
|
|
75
76
|
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
76
77
|
}>>;
|
|
77
78
|
export { cta_1 as cta };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-header/index.js"],"names":[],"mappings":";AAyWA,oEAyDC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAtID,gFA4DC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-header/index.js"],"names":[],"mappings":";AAyWA,oEAyDC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAtID,gFA4DC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA5HD,yDAmDC;;;;;;;;;;;;;;;;;;;;;;;;;AApOD;;gBAkBC;;;;;;;;;;;AA8ED;;;;;uBAYC"}
|
|
@@ -17,6 +17,7 @@ declare namespace TeamsDashboard {
|
|
|
17
17
|
closeToolTipInformationTextAriaLabel: PropTypes.Requireable<string>;
|
|
18
18
|
}>>;
|
|
19
19
|
const platformLinks: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
20
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
20
21
|
submitValue: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
21
22
|
href: PropTypes.Requireable<string>;
|
|
22
23
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -31,6 +32,7 @@ declare namespace TeamsDashboard {
|
|
|
31
32
|
rectangular: PropTypes.Requireable<boolean>;
|
|
32
33
|
fullWidth: PropTypes.Requireable<boolean>;
|
|
33
34
|
certificationButton: PropTypes.Requireable<boolean>;
|
|
35
|
+
useButtonTag: PropTypes.Requireable<boolean>;
|
|
34
36
|
}> | null | undefined)[]>;
|
|
35
37
|
const sections: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
36
38
|
contentType: PropTypes.Requireable<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/components",
|
|
3
|
-
"version": "11.14.
|
|
3
|
+
"version": "11.14.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -168,5 +168,5 @@
|
|
|
168
168
|
"last 2 versions",
|
|
169
169
|
"IE 11"
|
|
170
170
|
],
|
|
171
|
-
"gitHead": "
|
|
171
|
+
"gitHead": "e1da60be0d25284ee4c5e969001f34661906279a"
|
|
172
172
|
}
|