@coorpacademy/components 11.33.2 → 11.33.3-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/button-link/index.d.ts +1 -0
- package/es/atom/button-link/index.d.ts.map +1 -1
- package/es/atom/button-link/index.js +11 -7
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/style.css +10 -0
- package/es/atom/button-link/types.d.ts +2 -0
- package/es/atom/button-link/types.d.ts.map +1 -1
- package/es/atom/button-link/types.js +2 -1
- package/es/atom/button-link/types.js.map +1 -1
- package/es/atom/button-link-icon/style.css +2 -2
- package/es/atom/button-menu/index.d.ts +15 -0
- package/es/atom/button-menu/index.d.ts.map +1 -1
- package/es/atom/button-menu/index.js +43 -5
- package/es/atom/button-menu/index.js.map +1 -1
- package/es/atom/button-menu/style.css +13 -0
- package/es/atom/button-menu/types.d.ts +40 -0
- package/es/atom/button-menu/types.d.ts.map +1 -1
- package/es/atom/button-menu/types.js +16 -1
- package/es/atom/button-menu/types.js.map +1 -1
- package/es/atom/tag/style.css +10 -6
- package/es/molecule/bullet-point-menu-button/index.d.ts +16 -0
- package/es/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
- package/es/molecule/bullet-point-menu-button/index.js +5 -3
- package/es/molecule/bullet-point-menu-button/index.js.map +1 -1
- package/es/molecule/bullet-point-menu-button/style.css +26 -7
- package/es/molecule/bullet-point-menu-button/types.d.ts +17 -0
- package/es/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
- package/es/molecule/bullet-point-menu-button/types.js +2 -1
- package/es/molecule/bullet-point-menu-button/types.js.map +1 -1
- package/es/molecule/cm-popin/types.d.ts +34 -0
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/expandible-actionable-table/index.d.ts +33 -0
- package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/es/molecule/expandible-actionable-table/types.d.ts +33 -0
- package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/es/organism/custom-skill-header/index.d.ts +5 -0
- package/es/organism/custom-skill-header/index.d.ts.map +1 -0
- package/es/organism/custom-skill-header/index.js +88 -0
- package/es/organism/custom-skill-header/index.js.map +1 -0
- package/es/organism/custom-skill-header/style.css +54 -0
- package/es/organism/custom-skill-header/types.d.ts +28 -0
- package/es/organism/custom-skill-header/types.d.ts.map +1 -0
- package/es/organism/custom-skill-header/types.js +2 -0
- package/es/organism/custom-skill-header/types.js.map +1 -0
- package/es/organism/list-items/index.d.ts +34 -0
- package/es/organism/setup-header/index.d.ts +4 -0
- package/es/organism/wizard-contents/index.d.ts +35 -0
- package/es/template/app-player/loading/index.d.ts +34 -0
- package/es/template/app-player/player/index.d.ts +68 -0
- package/es/template/app-player/player/slides/index.d.ts +34 -0
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +34 -0
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +34 -0
- package/es/template/app-review/index.d.ts +34 -0
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +34 -0
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +34 -0
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-create/index.d.ts +4 -0
- package/es/template/back-office/brand-create/index.d.ts.map +1 -1
- package/es/template/back-office/brand-list/index.d.ts +4 -0
- package/es/template/back-office/brand-list/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +107 -0
- package/es/template/back-office/dashboard-preview/index.d.ts +4 -0
- package/es/template/back-office/layout/index.d.ts +4 -0
- package/es/template/back-office/layout/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.d.ts +68 -0
- package/es/template/common/search-page/index.d.ts +34 -0
- package/es/template/external-course/index.d.ts +34 -0
- package/es/variables/colors.css +3 -0
- package/lib/atom/button-link/index.d.ts +1 -0
- package/lib/atom/button-link/index.d.ts.map +1 -1
- package/lib/atom/button-link/index.js +11 -7
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/style.css +10 -0
- package/lib/atom/button-link/types.d.ts +2 -0
- package/lib/atom/button-link/types.d.ts.map +1 -1
- package/lib/atom/button-link/types.js +2 -1
- package/lib/atom/button-link/types.js.map +1 -1
- package/lib/atom/button-link-icon/style.css +2 -2
- package/lib/atom/button-menu/index.d.ts +15 -0
- package/lib/atom/button-menu/index.d.ts.map +1 -1
- package/lib/atom/button-menu/index.js +43 -5
- package/lib/atom/button-menu/index.js.map +1 -1
- package/lib/atom/button-menu/style.css +13 -0
- package/lib/atom/button-menu/types.d.ts +40 -0
- package/lib/atom/button-menu/types.d.ts.map +1 -1
- package/lib/atom/button-menu/types.js +16 -1
- package/lib/atom/button-menu/types.js.map +1 -1
- package/lib/atom/tag/style.css +10 -6
- package/lib/molecule/bullet-point-menu-button/index.d.ts +16 -0
- package/lib/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
- package/lib/molecule/bullet-point-menu-button/index.js +5 -3
- package/lib/molecule/bullet-point-menu-button/index.js.map +1 -1
- package/lib/molecule/bullet-point-menu-button/style.css +26 -7
- package/lib/molecule/bullet-point-menu-button/types.d.ts +17 -0
- package/lib/molecule/bullet-point-menu-button/types.d.ts.map +1 -1
- package/lib/molecule/bullet-point-menu-button/types.js +2 -1
- package/lib/molecule/bullet-point-menu-button/types.js.map +1 -1
- package/lib/molecule/cm-popin/types.d.ts +34 -0
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/expandible-actionable-table/index.d.ts +33 -0
- package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/lib/molecule/expandible-actionable-table/types.d.ts +33 -0
- package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/lib/organism/custom-skill-header/index.d.ts +5 -0
- package/lib/organism/custom-skill-header/index.d.ts.map +1 -0
- package/lib/organism/custom-skill-header/index.js +93 -0
- package/lib/organism/custom-skill-header/index.js.map +1 -0
- package/lib/organism/custom-skill-header/style.css +54 -0
- package/lib/organism/custom-skill-header/types.d.ts +28 -0
- package/lib/organism/custom-skill-header/types.d.ts.map +1 -0
- package/lib/organism/custom-skill-header/types.js +4 -0
- package/lib/organism/custom-skill-header/types.js.map +1 -0
- package/lib/organism/list-items/index.d.ts +34 -0
- package/lib/organism/setup-header/index.d.ts +4 -0
- package/lib/organism/wizard-contents/index.d.ts +35 -0
- package/lib/template/app-player/loading/index.d.ts +34 -0
- package/lib/template/app-player/player/index.d.ts +68 -0
- package/lib/template/app-player/player/slides/index.d.ts +34 -0
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +34 -0
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +34 -0
- package/lib/template/app-review/index.d.ts +34 -0
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +34 -0
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +34 -0
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-create/index.d.ts +4 -0
- package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-list/index.d.ts +4 -0
- package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +107 -0
- package/lib/template/back-office/dashboard-preview/index.d.ts +4 -0
- package/lib/template/back-office/layout/index.d.ts +4 -0
- package/lib/template/back-office/layout/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.d.ts +68 -0
- package/lib/template/common/search-page/index.d.ts +34 -0
- package/lib/template/external-course/index.d.ts +34 -0
- package/lib/variables/colors.css +3 -0
- package/locales/.mtslconfig.json +1 -0
- package/package.json +2 -2
|
@@ -5,23 +5,57 @@ exports.default = void 0;
|
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
6
|
var _map = _interopRequireDefault(require("lodash/fp/map"));
|
|
7
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
|
+
var _buttonLink = _interopRequireDefault(require("../button-link"));
|
|
8
9
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
9
10
|
var _types = _interopRequireWildcard(require("./types"));
|
|
10
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
14
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
15
|
+
const getIconProps = icon => {
|
|
16
|
+
if (!icon) return undefined;
|
|
17
|
+
return icon.faIcon ? {
|
|
18
|
+
faIcon: {
|
|
19
|
+
name: icon.faIcon.name,
|
|
20
|
+
size: icon.faIcon.size,
|
|
21
|
+
color: icon.faIcon.color
|
|
22
|
+
},
|
|
23
|
+
position: icon.position
|
|
24
|
+
} : {
|
|
25
|
+
type: icon.type,
|
|
26
|
+
position: icon.position
|
|
27
|
+
};
|
|
28
|
+
};
|
|
14
29
|
const Button = props => {
|
|
15
30
|
const {
|
|
16
31
|
'data-name': dataName,
|
|
17
32
|
disabled,
|
|
18
33
|
label,
|
|
19
34
|
onClick,
|
|
20
|
-
type = 'default'
|
|
35
|
+
type = 'default',
|
|
36
|
+
linkType,
|
|
37
|
+
icon,
|
|
38
|
+
customStyle,
|
|
39
|
+
isCustomSkillMenu
|
|
21
40
|
} = props;
|
|
22
|
-
const styleButton = (0, _classnames.default)(_style.default.button, type === 'default' && _style.default.default, type === 'defaultLeft' && _style.default.defaultLeft, type === 'dangerous' && _style.default.dangerous, type === 'dangerousLeft' && _style.default.dangerousLeft, disabled && _style.default.disabled);
|
|
41
|
+
const styleButton = (0, _classnames.default)(_style.default.button, type === 'default' && _style.default.default, type === 'defaultLeft' && _style.default.defaultLeft, type === 'dangerous' && _style.default.dangerous, type === 'dangerousLeft' && _style.default.dangerousLeft, disabled && _style.default.disabled, isCustomSkillMenu && _style.default.customSkillButton);
|
|
23
42
|
const handleOnClick = (0, _react.useCallback)(() => onClick(), [onClick]);
|
|
24
|
-
|
|
43
|
+
const iconProps = (0, _react.useMemo)(() => getIconProps(icon), [icon]);
|
|
44
|
+
return icon ? /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
|
|
45
|
+
label: label,
|
|
46
|
+
type: linkType,
|
|
47
|
+
disabled: disabled,
|
|
48
|
+
onClick: handleOnClick,
|
|
49
|
+
"data-name": dataName,
|
|
50
|
+
className: styleButton,
|
|
51
|
+
customStyle: {
|
|
52
|
+
color: customStyle?.color
|
|
53
|
+
},
|
|
54
|
+
hoverBackgroundColor: customStyle?.hoverBackgroundColor,
|
|
55
|
+
hoverColor: customStyle?.color,
|
|
56
|
+
icon: iconProps,
|
|
57
|
+
isCustomSkillMenu: isCustomSkillMenu
|
|
58
|
+
}) : /*#__PURE__*/_react.default.createElement("button", {
|
|
25
59
|
type: "button",
|
|
26
60
|
"aria-label": label,
|
|
27
61
|
title: label,
|
|
@@ -39,7 +73,8 @@ Button.propTypes = process.env.NODE_ENV !== "production" ? _types.buttonPropType
|
|
|
39
73
|
const ButtonMenu = props => {
|
|
40
74
|
const {
|
|
41
75
|
buttons,
|
|
42
|
-
'data-name': dataName
|
|
76
|
+
'data-name': dataName,
|
|
77
|
+
isCustomSkillMenu
|
|
43
78
|
} = props;
|
|
44
79
|
const buildButton = (0, _react.useCallback)((button, index) => {
|
|
45
80
|
return /*#__PURE__*/_react.default.createElement(Button, _extends({}, button, {
|
|
@@ -52,7 +87,10 @@ const ButtonMenu = props => {
|
|
|
52
87
|
cap: false
|
|
53
88
|
})(buildButton, buttons), [buttons, buildButton]);
|
|
54
89
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
55
|
-
"data-name": dataName
|
|
90
|
+
"data-name": dataName,
|
|
91
|
+
className: (0, _classnames.default)({
|
|
92
|
+
[_style.default.buttonMenuContainer]: isCustomSkillMenu
|
|
93
|
+
})
|
|
56
94
|
}, buttonList);
|
|
57
95
|
};
|
|
58
96
|
ButtonMenu.propTypes = process.env.NODE_ENV !== "production" ? _types.default : {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_map","_interopRequireDefault","_classnames","_style","_types","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","Button","props","dataName","disabled","label","onClick","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_map","_interopRequireDefault","_classnames","_buttonLink","_style","_types","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","getIconProps","icon","undefined","faIcon","name","size","color","position","type","Button","props","dataName","disabled","label","onClick","linkType","customStyle","isCustomSkillMenu","styleButton","classnames","style","button","defaultLeft","dangerous","dangerousLeft","customSkillButton","handleOnClick","useCallback","iconProps","useMemo","createElement","className","hoverBackgroundColor","hoverColor","title","buttonContent","propTypes","process","env","NODE_ENV","buttonPropTypes","ButtonMenu","buttons","buildButton","index","key","buttonList","map","convert","cap","buttonMenuContainer","_default","exports"],"sources":["../../../src/atom/button-menu/index.tsx"],"sourcesContent":["import React, {useMemo, useCallback} from 'react';\nimport map from 'lodash/fp/map';\nimport classnames from 'classnames';\nimport ButtonLink from '../button-link';\nimport {IconType} from '../button-link/types';\nimport style from './style.css';\nimport propTypes, {ButtonMenuProps, ButtonProps, buttonPropTypes} from './types';\n\nconst getIconProps = (icon: IconType | undefined) => {\n if (!icon) return undefined;\n return icon.faIcon\n ? {\n faIcon: {\n name: icon.faIcon.name,\n size: icon.faIcon.size,\n color: icon.faIcon.color\n },\n position: icon.position\n }\n : {\n type: icon.type,\n position: icon.position\n };\n};\n\nconst Button = (props: ButtonProps) => {\n const {\n 'data-name': dataName,\n disabled,\n label,\n onClick,\n type = 'default',\n linkType,\n icon,\n customStyle,\n isCustomSkillMenu\n } = props;\n const styleButton = classnames(\n style.button,\n type === 'default' && style.default,\n type === 'defaultLeft' && style.defaultLeft,\n type === 'dangerous' && style.dangerous,\n type === 'dangerousLeft' && style.dangerousLeft,\n disabled && style.disabled,\n isCustomSkillMenu && style.customSkillButton\n );\n\n const handleOnClick = useCallback(() => onClick(), [onClick]);\n\n const iconProps = useMemo(() => getIconProps(icon), [icon]);\n\n return icon ? (\n <ButtonLink\n label={label}\n type={linkType}\n disabled={disabled}\n onClick={handleOnClick}\n data-name={dataName}\n className={styleButton}\n customStyle={{color: customStyle?.color}}\n hoverBackgroundColor={customStyle?.hoverBackgroundColor}\n hoverColor={customStyle?.color}\n icon={iconProps}\n isCustomSkillMenu={isCustomSkillMenu}\n />\n ) : (\n <button\n type=\"button\"\n aria-label={label}\n title={label}\n data-name={dataName}\n className={styleButton}\n onClick={handleOnClick}\n disabled={disabled}\n >\n <div className={style.buttonContent}>\n <span className={style.label}>{label}</span>\n </div>\n </button>\n );\n};\n\nButton.propTypes = buttonPropTypes;\n\nconst ButtonMenu = (props: ButtonMenuProps) => {\n const {buttons, 'data-name': dataName, isCustomSkillMenu} = props;\n const buildButton = useCallback((button: ButtonProps, index) => {\n return <Button {...button} key={button.label + index} />;\n }, []);\n\n const buttonList = useMemo(\n // @ts-expect-error (to avoid using map as any)\n () => map.convert({cap: false})(buildButton, buttons),\n [buttons, buildButton]\n );\n\n return (\n <div\n data-name={dataName}\n className={classnames({\n [style.buttonMenuContainer]: isCustomSkillMenu\n })}\n >\n {buttonList}\n </div>\n );\n};\n\nButtonMenu.propTypes = propTypes;\n\nexport default ButtonMenu;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,MAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,MAAA,GAAAP,uBAAA,CAAAC,OAAA;AAAiF,SAAAE,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,C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AAO;EACxB;EACA,MAAMkB,YAAG,CAACC,OAAO,CAAC;IAACC,GAAG,EAAE;EAAK,CAAC,CAAC,CAACN,WAAW,EAAED,OAAO,CAAC,EACrD,CAACA,OAAO,EAAEC,WAAW,CACvB,CAAC;EAED,oBACE9E,MAAA,CAAAW,OAAA,CAAAsD,aAAA;IACE,aAAWnB,QAAS;IACpBoB,SAAS,EAAE,IAAAZ,mBAAU,EAAC;MACpB,CAACC,cAAK,CAAC8B,mBAAmB,GAAGjC;IAC/B,CAAC;EAAE,GAEF6B,UACE,CAAC;AAEV,CAAC;AAEDL,UAAU,CAACL,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,cAAS;AAAC,IAAAe,QAAA,GAAAC,OAAA,CAAA5E,OAAA,GAElBiE,UAAU","ignoreList":[]}
|
|
@@ -59,3 +59,16 @@
|
|
|
59
59
|
composes: dangerous;
|
|
60
60
|
justify-content: flex-start;
|
|
61
61
|
}
|
|
62
|
+
|
|
63
|
+
.customSkillButton {
|
|
64
|
+
background-color: transparent;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
width: 201px;
|
|
67
|
+
justify-content: flex-start;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.buttonMenuContainer {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
gap: 8px;
|
|
74
|
+
}
|
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
+
import { ButtonLinkProps, IconType } from '../button-link/types';
|
|
2
3
|
export declare const buttonPropTypes: {
|
|
3
4
|
'data-name': PropTypes.Requireable<string>;
|
|
4
5
|
disabled: PropTypes.Requireable<boolean>;
|
|
5
6
|
label: PropTypes.Validator<string>;
|
|
6
7
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
7
8
|
type: PropTypes.Requireable<string>;
|
|
9
|
+
linkType: PropTypes.Requireable<string>;
|
|
10
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
11
|
+
position: PropTypes.Validator<string>;
|
|
12
|
+
type: PropTypes.Requireable<string>;
|
|
13
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
+
name: PropTypes.Validator<string>;
|
|
15
|
+
size: PropTypes.Requireable<number>;
|
|
16
|
+
color: PropTypes.Requireable<string>;
|
|
17
|
+
}>>;
|
|
18
|
+
}>>;
|
|
19
|
+
customStyle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
20
|
+
color: PropTypes.Requireable<string>;
|
|
21
|
+
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
22
|
+
}>>;
|
|
23
|
+
isCustomSkillMenu: PropTypes.Requireable<boolean>;
|
|
8
24
|
};
|
|
9
25
|
declare const propTypes: {
|
|
10
26
|
buttons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
@@ -13,21 +29,45 @@ declare const propTypes: {
|
|
|
13
29
|
label: PropTypes.Validator<string>;
|
|
14
30
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
15
31
|
type: PropTypes.Requireable<string>;
|
|
32
|
+
linkType: PropTypes.Requireable<string>;
|
|
33
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
34
|
+
position: PropTypes.Validator<string>;
|
|
35
|
+
type: PropTypes.Requireable<string>;
|
|
36
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
37
|
+
name: PropTypes.Validator<string>;
|
|
38
|
+
size: PropTypes.Requireable<number>;
|
|
39
|
+
color: PropTypes.Requireable<string>;
|
|
40
|
+
}>>;
|
|
41
|
+
}>>;
|
|
42
|
+
customStyle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
43
|
+
color: PropTypes.Requireable<string>;
|
|
44
|
+
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
45
|
+
}>>;
|
|
46
|
+
isCustomSkillMenu: PropTypes.Requireable<boolean>;
|
|
16
47
|
}> | null | undefined)[]>;
|
|
17
48
|
'data-name': PropTypes.Requireable<string>;
|
|
18
49
|
};
|
|
19
50
|
export default propTypes;
|
|
51
|
+
declare type CustomStyleProps = {
|
|
52
|
+
color?: string;
|
|
53
|
+
hoverBackgroundColor?: string;
|
|
54
|
+
};
|
|
20
55
|
export declare type ButtonProps = {
|
|
21
56
|
'data-name'?: string;
|
|
22
57
|
disabled?: boolean;
|
|
23
58
|
label: string;
|
|
24
59
|
onClick: () => void;
|
|
25
60
|
type?: 'default' | 'defaultLeft' | 'dangerous' | 'dangerousLeft';
|
|
61
|
+
linkType?: ButtonLinkProps['type'];
|
|
62
|
+
icon?: IconType;
|
|
63
|
+
customStyle?: CustomStyleProps;
|
|
64
|
+
isCustomSkillMenu?: boolean;
|
|
26
65
|
};
|
|
27
66
|
export declare type ButtonMenuProps = {
|
|
28
67
|
buttons: ButtonProps[];
|
|
29
68
|
'data-name'?: string;
|
|
30
69
|
'aria-label'?: string;
|
|
70
|
+
isCustomSkillMenu?: boolean;
|
|
31
71
|
};
|
|
32
72
|
export declare type ButtonMenuPropsFixture = {
|
|
33
73
|
props: ButtonMenuProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/button-menu/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/button-menu/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,eAAe,EAAE,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE/D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;CAqB3B,CAAC;AAEF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;CAGd,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,aAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,oBAAY,WAAW,GAAG;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,eAAe,CAAC;IACjE,QAAQ,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACnC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IAAC,KAAK,EAAE,eAAe,CAAA;CAAC,CAAC"}
|
|
@@ -9,7 +9,22 @@ const buttonPropTypes = exports.buttonPropTypes = {
|
|
|
9
9
|
disabled: _propTypes.default.bool,
|
|
10
10
|
label: _propTypes.default.string.isRequired,
|
|
11
11
|
onClick: _propTypes.default.func.isRequired,
|
|
12
|
-
type: _propTypes.default.oneOf(['default', 'defaultLeft', 'dangerous', 'dangerousLeft'])
|
|
12
|
+
type: _propTypes.default.oneOf(['default', 'defaultLeft', 'dangerous', 'dangerousLeft']),
|
|
13
|
+
linkType: _propTypes.default.oneOf(['primary', 'secondary', 'tertiary', 'text', 'dangerous']),
|
|
14
|
+
icon: _propTypes.default.shape({
|
|
15
|
+
position: _propTypes.default.oneOf(['right', 'left']).isRequired,
|
|
16
|
+
type: _propTypes.default.string,
|
|
17
|
+
faIcon: _propTypes.default.shape({
|
|
18
|
+
name: _propTypes.default.string.isRequired,
|
|
19
|
+
size: _propTypes.default.number,
|
|
20
|
+
color: _propTypes.default.string
|
|
21
|
+
})
|
|
22
|
+
}),
|
|
23
|
+
customStyle: _propTypes.default.shape({
|
|
24
|
+
color: _propTypes.default.string,
|
|
25
|
+
hoverBackgroundColor: _propTypes.default.string
|
|
26
|
+
}),
|
|
27
|
+
isCustomSkillMenu: _propTypes.default.bool
|
|
13
28
|
};
|
|
14
29
|
const propTypes = {
|
|
15
30
|
buttons: _propTypes.default.arrayOf(_propTypes.default.shape(buttonPropTypes)).isRequired,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","e","__esModule","default","buttonPropTypes","exports","PropTypes","string","disabled","bool","label","isRequired","onClick","func","type","oneOf","propTypes","buttons","arrayOf","
|
|
1
|
+
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","e","__esModule","default","buttonPropTypes","exports","PropTypes","string","disabled","bool","label","isRequired","onClick","func","type","oneOf","linkType","icon","shape","position","faIcon","name","size","number","color","customStyle","hoverBackgroundColor","isCustomSkillMenu","propTypes","buttons","arrayOf","_default"],"sources":["../../../src/atom/button-menu/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {ButtonLinkProps, IconType} from '../button-link/types';\n\nexport const buttonPropTypes = {\n 'data-name': PropTypes.string,\n disabled: PropTypes.bool,\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n type: PropTypes.oneOf(['default', 'defaultLeft', 'dangerous', 'dangerousLeft']),\n linkType: PropTypes.oneOf(['primary', 'secondary', 'tertiary', 'text', 'dangerous']),\n icon: PropTypes.shape({\n position: PropTypes.oneOf(['right', 'left']).isRequired,\n type: PropTypes.string,\n faIcon: PropTypes.shape({\n name: PropTypes.string.isRequired,\n size: PropTypes.number,\n color: PropTypes.string\n })\n }),\n customStyle: PropTypes.shape({\n color: PropTypes.string,\n hoverBackgroundColor: PropTypes.string\n }),\n isCustomSkillMenu: PropTypes.bool\n};\n\nconst propTypes = {\n buttons: PropTypes.arrayOf(PropTypes.shape(buttonPropTypes)).isRequired,\n 'data-name': PropTypes.string\n};\n\nexport default propTypes;\n\ntype CustomStyleProps = {\n color?: string;\n hoverBackgroundColor?: string;\n};\n\nexport type ButtonProps = {\n 'data-name'?: string;\n disabled?: boolean;\n label: string;\n onClick: () => void;\n type?: 'default' | 'defaultLeft' | 'dangerous' | 'dangerousLeft';\n linkType?: ButtonLinkProps['type'];\n icon?: IconType;\n customStyle?: CustomStyleProps;\n isCustomSkillMenu?: boolean;\n};\n\nexport type ButtonMenuProps = {\n buttons: ButtonProps[];\n 'data-name'?: string;\n 'aria-label'?: string;\n isCustomSkillMenu?: boolean;\n};\n\nexport type ButtonMenuPropsFixture = {props: ButtonMenuProps};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAmC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG5B,MAAMG,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG;EAC7B,WAAW,EAAEE,kBAAS,CAACC,MAAM;EAC7BC,QAAQ,EAAEF,kBAAS,CAACG,IAAI;EACxBC,KAAK,EAAEJ,kBAAS,CAACC,MAAM,CAACI,UAAU;EAClCC,OAAO,EAAEN,kBAAS,CAACO,IAAI,CAACF,UAAU;EAClCG,IAAI,EAAER,kBAAS,CAACS,KAAK,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,eAAe,CAAC,CAAC;EAC/EC,QAAQ,EAAEV,kBAAS,CAACS,KAAK,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;EACpFE,IAAI,EAAEX,kBAAS,CAACY,KAAK,CAAC;IACpBC,QAAQ,EAAEb,kBAAS,CAACS,KAAK,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAACJ,UAAU;IACvDG,IAAI,EAAER,kBAAS,CAACC,MAAM;IACtBa,MAAM,EAAEd,kBAAS,CAACY,KAAK,CAAC;MACtBG,IAAI,EAAEf,kBAAS,CAACC,MAAM,CAACI,UAAU;MACjCW,IAAI,EAAEhB,kBAAS,CAACiB,MAAM;MACtBC,KAAK,EAAElB,kBAAS,CAACC;IACnB,CAAC;EACH,CAAC,CAAC;EACFkB,WAAW,EAAEnB,kBAAS,CAACY,KAAK,CAAC;IAC3BM,KAAK,EAAElB,kBAAS,CAACC,MAAM;IACvBmB,oBAAoB,EAAEpB,kBAAS,CAACC;EAClC,CAAC,CAAC;EACFoB,iBAAiB,EAAErB,kBAAS,CAACG;AAC/B,CAAC;AAED,MAAMmB,SAAS,GAAG;EAChBC,OAAO,EAAEvB,kBAAS,CAACwB,OAAO,CAACxB,kBAAS,CAACY,KAAK,CAACd,eAAe,CAAC,CAAC,CAACO,UAAU;EACvE,WAAW,EAAEL,kBAAS,CAACC;AACzB,CAAC;AAAC,IAAAwB,QAAA,GAAA1B,OAAA,CAAAF,OAAA,GAEayB,SAAS","ignoreList":[]}
|
package/lib/atom/tag/style.css
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
@value colors: "../../variables/colors.css";
|
|
2
2
|
@value white from colors;
|
|
3
|
+
@value cm_yellow_100 from colors;
|
|
3
4
|
@value cm_yellow_200 from colors;
|
|
5
|
+
@value cm_yellow_300 from colors;
|
|
4
6
|
@value cm_positive_100 from colors;
|
|
7
|
+
@value cm_positive_300 from colors;
|
|
5
8
|
@value cm_negative_100 from colors;
|
|
6
9
|
@value cm_orange_700 from colors;
|
|
10
|
+
@value cm_orange_800 from colors;
|
|
7
11
|
@value black from colors;
|
|
8
12
|
@value cm_grey_100 from colors;
|
|
9
13
|
@value cm_grey_500 from colors;
|
|
@@ -43,14 +47,14 @@
|
|
|
43
47
|
|
|
44
48
|
.progress {
|
|
45
49
|
composes: tag;
|
|
46
|
-
background-color: color(
|
|
47
|
-
color:
|
|
50
|
+
background-color: color(cm_yellow_100 a(25%));
|
|
51
|
+
color: cm_yellow_300;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
.success {
|
|
51
55
|
composes: tag;
|
|
52
|
-
background-color: color(cm_positive_100 a(
|
|
53
|
-
color:
|
|
56
|
+
background-color: color(cm_positive_100 a(20%));
|
|
57
|
+
color: cm_positive_300;
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
.failure {
|
|
@@ -61,8 +65,8 @@
|
|
|
61
65
|
|
|
62
66
|
.warning {
|
|
63
67
|
composes: tag;
|
|
64
|
-
background-color: color(cm_orange_700 a(
|
|
65
|
-
color:
|
|
68
|
+
background-color: color(cm_orange_700 a(18%));
|
|
69
|
+
color: cm_orange_800;
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
.content {
|
|
@@ -12,10 +12,26 @@ declare const BulletPointMenuButton: {
|
|
|
12
12
|
label: import("prop-types").Validator<string>;
|
|
13
13
|
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
14
14
|
type: import("prop-types").Requireable<string>;
|
|
15
|
+
linkType: import("prop-types").Requireable<string>;
|
|
16
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
17
|
+
position: import("prop-types").Validator<string>;
|
|
18
|
+
type: import("prop-types").Requireable<string>;
|
|
19
|
+
faIcon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
20
|
+
name: import("prop-types").Validator<string>;
|
|
21
|
+
size: import("prop-types").Requireable<number>;
|
|
22
|
+
color: import("prop-types").Requireable<string>;
|
|
23
|
+
}>>;
|
|
24
|
+
}>>;
|
|
25
|
+
customStyle: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
26
|
+
color: import("prop-types").Requireable<string>;
|
|
27
|
+
hoverBackgroundColor: import("prop-types").Requireable<string>;
|
|
28
|
+
}>>;
|
|
29
|
+
isCustomSkillMenu: import("prop-types").Requireable<boolean>;
|
|
15
30
|
}> | null | undefined)[]>;
|
|
16
31
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
17
32
|
menuButtonClassName: import("prop-types").Requireable<string>;
|
|
18
33
|
isBulkMenu: import("prop-types").Requireable<boolean>;
|
|
34
|
+
isCustomSkillMenu: import("prop-types").Requireable<boolean>;
|
|
19
35
|
};
|
|
20
36
|
};
|
|
21
37
|
export default BulletPointMenuButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/bullet-point-menu-button/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,0BAA0B,EAAC,MAAM,SAAS,CAAC;AAG9D,QAAA,MAAM,qBAAqB;YAAW,0BAA0B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/bullet-point-menu-button/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,0BAA0B,EAAC,MAAM,SAAS,CAAC;AAG9D,QAAA,MAAM,qBAAqB;YAAW,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8D/D,CAAC;AAIF,eAAe,qBAAqB,CAAC"}
|
|
@@ -20,7 +20,8 @@ const BulletPointMenuButton = props => {
|
|
|
20
20
|
onClick = _noop2.default,
|
|
21
21
|
buttons,
|
|
22
22
|
menuButtonClassName,
|
|
23
|
-
isBulkMenu
|
|
23
|
+
isBulkMenu,
|
|
24
|
+
isCustomSkillMenu
|
|
24
25
|
} = props;
|
|
25
26
|
const [visible, setVisible] = (0, _react.useState)(false);
|
|
26
27
|
const handleOnClick = (0, _react.useCallback)(() => {
|
|
@@ -36,10 +37,11 @@ const BulletPointMenuButton = props => {
|
|
|
36
37
|
}, []);
|
|
37
38
|
const menuProps = {
|
|
38
39
|
'data-name': 'button-menu',
|
|
39
|
-
buttons
|
|
40
|
+
buttons,
|
|
41
|
+
isCustomSkillMenu
|
|
40
42
|
};
|
|
41
43
|
const menu = /*#__PURE__*/_react.default.createElement("div", {
|
|
42
|
-
className: (0, _classnames.default)(_style.default.bulletPointMenu, isBulkMenu && _style.default.bulkBulletPointMenu, visible && _style.default.visible),
|
|
44
|
+
className: (0, _classnames.default)(_style.default.bulletPointMenu, isBulkMenu && _style.default.bulkBulletPointMenu, visible && _style.default.visible, isCustomSkillMenu && _style.default.customSkillBulletPointMenu),
|
|
43
45
|
"data-name": "menu-wrapper",
|
|
44
46
|
"aria-label": menuAriaLabel
|
|
45
47
|
}, /*#__PURE__*/_react.default.createElement(_buttonMenu.default, menuProps));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_buttonLinkIcon","_buttonMenu","_types","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","BulletPointMenuButton","props","disabled","buttonAriaLabel","menuAriaLabel","onClick","_noop2","buttons","menuButtonClassName","isBulkMenu","visible","setVisible","useState","handleOnClick","useCallback","useEffect","handleMouseDown","document","addEventListener","removeEventListener","menuProps","menu","createElement","className","classnames","style","bulletPointMenu","bulkBulletPointMenu","bulletPointButtonProps","size","icon","bulletPointWrapper","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/molecule/bullet-point-menu-button/index.tsx"],"sourcesContent":["import React, {useCallback, useState, useEffect} from 'react';\nimport classnames from 'classnames';\nimport {noop} from 'lodash/fp';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport ButtonMenu from '../../atom/button-menu';\nimport propTypes, {BulletPointMenuButtonProps} from './types';\nimport style from './style.css';\n\nconst BulletPointMenuButton = (props: BulletPointMenuButtonProps) => {\n const {\n disabled = false,\n buttonAriaLabel,\n menuAriaLabel,\n onClick = noop,\n buttons,\n menuButtonClassName,\n isBulkMenu\n } = props;\n const [visible, setVisible] = useState(false);\n\n const handleOnClick = useCallback(() => {\n onClick();\n setVisible(true);\n }, [onClick]);\n\n useEffect(() => {\n const handleMouseDown = () => setVisible(false);\n document.addEventListener('mousedown', handleMouseDown);\n return () => {\n document.removeEventListener('mousedown', handleMouseDown);\n };\n }, []);\n\n const menuProps = {\n 'data-name': 'button-menu',\n buttons\n };\n\n const menu = (\n <div\n className={classnames(\n style.bulletPointMenu,\n isBulkMenu && style.bulkBulletPointMenu,\n visible && style.visible\n )}\n data-name=\"menu-wrapper\"\n aria-label={menuAriaLabel}\n >\n <ButtonMenu {...menuProps} />\n </div>\n );\n const bulletPointButtonProps = {\n size: 'default',\n 'aria-label': buttonAriaLabel,\n 'data-name': 'bullet-point-button',\n icon: 'bullet-point',\n onClick: handleOnClick,\n disabled,\n className: menuButtonClassName\n };\n\n return (\n <div className={style.bulletPointWrapper} data-name=\"bullet-point-wrapper\">\n <ButtonLinkIcon {...bulletPointButtonProps} />\n {menu}\n </div>\n );\n};\n\nBulletPointMenuButton.propTypes = propTypes;\n\nexport default BulletPointMenuButton;\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,eAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,MAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,MAAA,GAAAJ,sBAAA,CAAAF,OAAA;AAAgC,SAAAO,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,SAAAT,wBAAAS,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAAA,SAAAd,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAI,UAAA,GAAAJ,CAAA,KAAAK,OAAA,EAAAL,CAAA;AAEhC,MAAMmB,qBAAqB,GAAIC,KAAiC,IAAK;EACnE,MAAM;IACJC,QAAQ,GAAG,KAAK;IAChBC,eAAe;IACfC,aAAa;IACbC,OAAO,GAAAC,MAAA,CAAApB,OAAO;IACdqB,OAAO;IACPC,mBAAmB;IACnBC;EACF,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_buttonLinkIcon","_buttonMenu","_types","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","BulletPointMenuButton","props","disabled","buttonAriaLabel","menuAriaLabel","onClick","_noop2","buttons","menuButtonClassName","isBulkMenu","isCustomSkillMenu","visible","setVisible","useState","handleOnClick","useCallback","useEffect","handleMouseDown","document","addEventListener","removeEventListener","menuProps","menu","createElement","className","classnames","style","bulletPointMenu","bulkBulletPointMenu","customSkillBulletPointMenu","bulletPointButtonProps","size","icon","bulletPointWrapper","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/molecule/bullet-point-menu-button/index.tsx"],"sourcesContent":["import React, {useCallback, useState, useEffect} from 'react';\nimport classnames from 'classnames';\nimport {noop} from 'lodash/fp';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport ButtonMenu from '../../atom/button-menu';\nimport propTypes, {BulletPointMenuButtonProps} from './types';\nimport style from './style.css';\n\nconst BulletPointMenuButton = (props: BulletPointMenuButtonProps) => {\n const {\n disabled = false,\n buttonAriaLabel,\n menuAriaLabel,\n onClick = noop,\n buttons,\n menuButtonClassName,\n isBulkMenu,\n isCustomSkillMenu\n } = props;\n const [visible, setVisible] = useState(false);\n\n const handleOnClick = useCallback(() => {\n onClick();\n setVisible(true);\n }, [onClick]);\n\n useEffect(() => {\n const handleMouseDown = () => setVisible(false);\n document.addEventListener('mousedown', handleMouseDown);\n return () => {\n document.removeEventListener('mousedown', handleMouseDown);\n };\n }, []);\n\n const menuProps = {\n 'data-name': 'button-menu',\n buttons,\n isCustomSkillMenu\n };\n\n const menu = (\n <div\n className={classnames(\n style.bulletPointMenu,\n isBulkMenu && style.bulkBulletPointMenu,\n visible && style.visible,\n isCustomSkillMenu && style.customSkillBulletPointMenu\n )}\n data-name=\"menu-wrapper\"\n aria-label={menuAriaLabel}\n >\n <ButtonMenu {...menuProps} />\n </div>\n );\n const bulletPointButtonProps = {\n size: 'default',\n 'aria-label': buttonAriaLabel,\n 'data-name': 'bullet-point-button',\n icon: 'bullet-point',\n onClick: handleOnClick,\n disabled,\n className: menuButtonClassName\n };\n\n return (\n <div className={style.bulletPointWrapper} data-name=\"bullet-point-wrapper\">\n <ButtonLinkIcon {...bulletPointButtonProps} />\n {menu}\n </div>\n );\n};\n\nBulletPointMenuButton.propTypes = propTypes;\n\nexport default BulletPointMenuButton;\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,eAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,MAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,MAAA,GAAAJ,sBAAA,CAAAF,OAAA;AAAgC,SAAAO,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,SAAAT,wBAAAS,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,C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CAAC;EAED,MAAMY,IAAI,gBACRnD,MAAA,CAAAe,OAAA,CAAAqC,aAAA;IACEC,SAAS,EAAE,IAAAC,mBAAU,EACnBC,cAAK,CAACC,eAAe,EACrBlB,UAAU,IAAIiB,cAAK,CAACE,mBAAmB,EACvCjB,OAAO,IAAIe,cAAK,CAACf,OAAO,EACxBD,iBAAiB,IAAIgB,cAAK,CAACG,0BAC7B,CAAE;IACF,aAAU,cAAc;IACxB,cAAYzB;EAAc,gBAE1BjC,MAAA,CAAAe,OAAA,CAAAqC,aAAA,CAAC9C,WAAA,CAAAS,OAAU,EAAKmC,SAAY,CACzB,CACN;EACD,MAAMS,sBAAsB,GAAG;IAC7BC,IAAI,EAAE,SAAS;IACf,YAAY,EAAE5B,eAAe;IAC7B,WAAW,EAAE,qBAAqB;IAClC6B,IAAI,EAAE,cAAc;IACpB3B,OAAO,EAAES,aAAa;IACtBZ,QAAQ;IACRsB,SAAS,EAAEhB;EACb,CAAC;EAED,oBACErC,MAAA,CAAAe,OAAA,CAAAqC,aAAA;IAAKC,SAAS,EAAEE,cAAK,CAACO,kBAAmB;IAAC,aAAU;EAAsB,gBACxE9D,MAAA,CAAAe,OAAA,CAAAqC,aAAA,CAAC/C,eAAA,CAAAU,OAAc,EAAK4C,sBAAyB,CAAC,EAC7CR,IACE,CAAC;AAEV,CAAC;AAEDtB,qBAAqB,CAACkC,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,cAAS;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAArD,OAAA,GAE7Bc,qBAAqB","ignoreList":[]}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
.bulletPointWrapper > button {
|
|
14
14
|
position: relative;
|
|
15
15
|
cursor: pointer;
|
|
16
|
-
|
|
16
|
+
}
|
|
17
17
|
|
|
18
18
|
.bulletPointMenu {
|
|
19
19
|
min-width: 80px;
|
|
@@ -23,28 +23,30 @@
|
|
|
23
23
|
bottom: 54px;
|
|
24
24
|
right: 0px;
|
|
25
25
|
/* elevation shadow */
|
|
26
|
-
box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 28px 0px,
|
|
26
|
+
box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 28px 0px,
|
|
27
|
+
rgba(0, 0, 0, 0.1) 0px 2px 4px 0px,
|
|
28
|
+
rgba(255, 255, 255, 0.05) 0px 0px 0px 1px inset;
|
|
27
29
|
z-index: 1;
|
|
28
30
|
/* round corners */
|
|
29
31
|
border-radius: 7px;
|
|
30
32
|
overflow: hidden;
|
|
31
33
|
background-color: cm_grey_100;
|
|
32
34
|
visibility: hidden;
|
|
33
|
-
opacity:0;
|
|
34
|
-
transition:visibility 0.5s ease,opacity 0.5s ease;
|
|
35
|
+
opacity: 0;
|
|
36
|
+
transition: visibility 0.5s ease, opacity 0.5s ease;
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
.visible {
|
|
38
40
|
/* fade in combo */
|
|
39
41
|
max-height: max-content;
|
|
40
42
|
visibility: visible;
|
|
41
|
-
opacity:1;
|
|
43
|
+
opacity: 1;
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
/*
|
|
45
47
|
bulk theme
|
|
46
48
|
*/
|
|
47
|
-
.bulkBulletPointMenu{
|
|
49
|
+
.bulkBulletPointMenu {
|
|
48
50
|
min-width: 80px;
|
|
49
51
|
/* positioning */
|
|
50
52
|
position: absolute;
|
|
@@ -52,7 +54,9 @@
|
|
|
52
54
|
bottom: 54px;
|
|
53
55
|
right: 0px;
|
|
54
56
|
/* elevation shadow */
|
|
55
|
-
box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 28px 0px,
|
|
57
|
+
box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 28px 0px,
|
|
58
|
+
rgba(0, 0, 0, 0.1) 0px 2px 4px 0px,
|
|
59
|
+
rgba(255, 255, 255, 0.05) 0px 0px 0px 1px inset;
|
|
56
60
|
z-index: 1;
|
|
57
61
|
/* round corners */
|
|
58
62
|
border-radius: 7px;
|
|
@@ -60,3 +64,18 @@
|
|
|
60
64
|
background-color: cm_grey_100;
|
|
61
65
|
width: 142px;
|
|
62
66
|
}
|
|
67
|
+
|
|
68
|
+
.customSkillBulletPointMenu {
|
|
69
|
+
position: absolute;
|
|
70
|
+
top: 48px;
|
|
71
|
+
bottom: auto;
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
align-items: flex-start;
|
|
75
|
+
padding: 12px;
|
|
76
|
+
width: 201px;
|
|
77
|
+
overflow-y: scroll;
|
|
78
|
+
background: #ffffff;
|
|
79
|
+
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.07);
|
|
80
|
+
border-radius: 12px;
|
|
81
|
+
}
|
|
@@ -10,10 +10,26 @@ declare const propTypes: {
|
|
|
10
10
|
label: PropTypes.Validator<string>;
|
|
11
11
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
12
|
type: PropTypes.Requireable<string>;
|
|
13
|
+
linkType: PropTypes.Requireable<string>;
|
|
14
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
15
|
+
position: PropTypes.Validator<string>;
|
|
16
|
+
type: PropTypes.Requireable<string>;
|
|
17
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
18
|
+
name: PropTypes.Validator<string>;
|
|
19
|
+
size: PropTypes.Requireable<number>;
|
|
20
|
+
color: PropTypes.Requireable<string>;
|
|
21
|
+
}>>;
|
|
22
|
+
}>>;
|
|
23
|
+
customStyle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
24
|
+
color: PropTypes.Requireable<string>;
|
|
25
|
+
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
26
|
+
}>>;
|
|
27
|
+
isCustomSkillMenu: PropTypes.Requireable<boolean>;
|
|
13
28
|
}> | null | undefined)[]>;
|
|
14
29
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
30
|
menuButtonClassName: PropTypes.Requireable<string>;
|
|
16
31
|
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
32
|
+
isCustomSkillMenu: PropTypes.Requireable<boolean>;
|
|
17
33
|
};
|
|
18
34
|
export default propTypes;
|
|
19
35
|
export declare type BulletPointMenuButtonProps = {
|
|
@@ -24,6 +40,7 @@ export declare type BulletPointMenuButtonProps = {
|
|
|
24
40
|
onClick: () => void;
|
|
25
41
|
menuButtonClassName?: string;
|
|
26
42
|
isBulkMenu?: boolean;
|
|
43
|
+
isCustomSkillMenu?: boolean;
|
|
27
44
|
};
|
|
28
45
|
export declare type BulletPointMenuButtonPropsFixture = {
|
|
29
46
|
props: BulletPointMenuButtonProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/bullet-point-menu-button/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAEzD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/bullet-point-menu-button/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAEzD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASd,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,0BAA0B,GAAG;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,oBAAY,iCAAiC,GAAG;IAAC,KAAK,EAAE,0BAA0B,CAAA;CAAC,CAAC"}
|
|
@@ -12,7 +12,8 @@ const propTypes = {
|
|
|
12
12
|
buttons: _buttonMenu.default.propTypes.buttons,
|
|
13
13
|
onClick: _propTypes.default.func,
|
|
14
14
|
menuButtonClassName: _propTypes.default.string,
|
|
15
|
-
isBulkMenu: _propTypes.default.bool
|
|
15
|
+
isBulkMenu: _propTypes.default.bool,
|
|
16
|
+
isCustomSkillMenu: _propTypes.default.bool
|
|
16
17
|
};
|
|
17
18
|
var _default = exports.default = propTypes;
|
|
18
19
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_buttonMenu","e","__esModule","default","propTypes","disabled","PropTypes","bool","buttonAriaLabel","string","menuAriaLabel","buttons","ButtonMenu","onClick","func","menuButtonClassName","isBulkMenu","_default","exports"],"sources":["../../../src/molecule/bullet-point-menu-button/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport ButtonMenu from '../../atom/button-menu';\nimport {ButtonProps} from '../../atom/button-menu/types';\n\nconst propTypes = {\n disabled: PropTypes.bool,\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: ButtonMenu.propTypes.buttons,\n onClick: PropTypes.func,\n menuButtonClassName: PropTypes.string,\n isBulkMenu: PropTypes.bool\n};\n\nexport default propTypes;\n\nexport type BulletPointMenuButtonProps = {\n disabled?: boolean;\n buttonAriaLabel?: string;\n menuAriaLabel?: string;\n buttons: ButtonProps[];\n onClick: () => void;\n menuButtonClassName?: string;\n isBulkMenu?: boolean;\n};\n\nexport type BulletPointMenuButtonPropsFixture = {props: BulletPointMenuButtonProps};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAgD,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGhD,MAAMG,SAAS,GAAG;EAChBC,QAAQ,EAAEC,kBAAS,CAACC,IAAI;EACxBC,eAAe,EAAEF,kBAAS,CAACG,MAAM;EACjCC,aAAa,EAAEJ,kBAAS,CAACG,MAAM;EAC/BE,OAAO,EAAEC,mBAAU,CAACR,SAAS,CAACO,OAAO;EACrCE,OAAO,EAAEP,kBAAS,CAACQ,IAAI;EACvBC,mBAAmB,EAAET,kBAAS,CAACG,MAAM;EACrCO,UAAU,EAAEV,kBAAS,CAACC;
|
|
1
|
+
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_buttonMenu","e","__esModule","default","propTypes","disabled","PropTypes","bool","buttonAriaLabel","string","menuAriaLabel","buttons","ButtonMenu","onClick","func","menuButtonClassName","isBulkMenu","isCustomSkillMenu","_default","exports"],"sources":["../../../src/molecule/bullet-point-menu-button/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport ButtonMenu from '../../atom/button-menu';\nimport {ButtonProps} from '../../atom/button-menu/types';\n\nconst propTypes = {\n disabled: PropTypes.bool,\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: ButtonMenu.propTypes.buttons,\n onClick: PropTypes.func,\n menuButtonClassName: PropTypes.string,\n isBulkMenu: PropTypes.bool,\n isCustomSkillMenu: PropTypes.bool\n};\n\nexport default propTypes;\n\nexport type BulletPointMenuButtonProps = {\n disabled?: boolean;\n buttonAriaLabel?: string;\n menuAriaLabel?: string;\n buttons: ButtonProps[];\n onClick: () => void;\n menuButtonClassName?: string;\n isBulkMenu?: boolean;\n isCustomSkillMenu?: boolean;\n};\n\nexport type BulletPointMenuButtonPropsFixture = {props: BulletPointMenuButtonProps};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAgD,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGhD,MAAMG,SAAS,GAAG;EAChBC,QAAQ,EAAEC,kBAAS,CAACC,IAAI;EACxBC,eAAe,EAAEF,kBAAS,CAACG,MAAM;EACjCC,aAAa,EAAEJ,kBAAS,CAACG,MAAM;EAC/BE,OAAO,EAAEC,mBAAU,CAACR,SAAS,CAACO,OAAO;EACrCE,OAAO,EAAEP,kBAAS,CAACQ,IAAI;EACvBC,mBAAmB,EAAET,kBAAS,CAACG,MAAM;EACrCO,UAAU,EAAEV,kBAAS,CAACC,IAAI;EAC1BU,iBAAiB,EAAEX,kBAAS,CAACC;AAC/B,CAAC;AAAC,IAAAW,QAAA,GAAAC,OAAA,CAAAhB,OAAA,GAEaC,SAAS","ignoreList":[]}
|
|
@@ -115,6 +115,7 @@ declare const propTypes: {
|
|
|
115
115
|
disabled: PropTypes.Requireable<boolean>;
|
|
116
116
|
className: PropTypes.Requireable<string>;
|
|
117
117
|
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
118
|
+
isCustomSkillMenu: PropTypes.Requireable<boolean>;
|
|
118
119
|
}>>;
|
|
119
120
|
selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
|
|
120
121
|
title: PropTypes.Requireable<string>;
|
|
@@ -232,10 +233,26 @@ declare const propTypes: {
|
|
|
232
233
|
label: PropTypes.Validator<string>;
|
|
233
234
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
234
235
|
type: PropTypes.Requireable<string>;
|
|
236
|
+
linkType: PropTypes.Requireable<string>;
|
|
237
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
238
|
+
position: PropTypes.Validator<string>;
|
|
239
|
+
type: PropTypes.Requireable<string>;
|
|
240
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
241
|
+
name: PropTypes.Validator<string>;
|
|
242
|
+
size: PropTypes.Requireable<number>;
|
|
243
|
+
color: PropTypes.Requireable<string>;
|
|
244
|
+
}>>;
|
|
245
|
+
}>>;
|
|
246
|
+
customStyle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
247
|
+
color: PropTypes.Requireable<string>;
|
|
248
|
+
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
249
|
+
}>>;
|
|
250
|
+
isCustomSkillMenu: PropTypes.Requireable<boolean>;
|
|
235
251
|
}> | null | undefined)[]>;
|
|
236
252
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
237
253
|
menuButtonClassName: PropTypes.Requireable<string>;
|
|
238
254
|
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
255
|
+
isCustomSkillMenu: PropTypes.Requireable<boolean>;
|
|
239
256
|
}> | null | undefined>>;
|
|
240
257
|
}> | null | undefined)[]>;
|
|
241
258
|
stickyFirstColumn: PropTypes.Requireable<boolean>;
|
|
@@ -268,6 +285,7 @@ declare const propTypes: {
|
|
|
268
285
|
disabled: PropTypes.Requireable<boolean>;
|
|
269
286
|
className: PropTypes.Requireable<string>;
|
|
270
287
|
customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
288
|
+
isCustomSkillMenu: PropTypes.Requireable<boolean>;
|
|
271
289
|
}> | PropTypes.InferProps<{
|
|
272
290
|
componentType: PropTypes.Requireable<string>;
|
|
273
291
|
disabled: PropTypes.Requireable<boolean>;
|
|
@@ -279,10 +297,26 @@ declare const propTypes: {
|
|
|
279
297
|
label: PropTypes.Validator<string>;
|
|
280
298
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
281
299
|
type: PropTypes.Requireable<string>;
|
|
300
|
+
linkType: PropTypes.Requireable<string>;
|
|
301
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
302
|
+
position: PropTypes.Validator<string>;
|
|
303
|
+
type: PropTypes.Requireable<string>;
|
|
304
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
305
|
+
name: PropTypes.Validator<string>;
|
|
306
|
+
size: PropTypes.Requireable<number>;
|
|
307
|
+
color: PropTypes.Requireable<string>;
|
|
308
|
+
}>>;
|
|
309
|
+
}>>;
|
|
310
|
+
customStyle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
311
|
+
color: PropTypes.Requireable<string>;
|
|
312
|
+
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
313
|
+
}>>;
|
|
314
|
+
isCustomSkillMenu: PropTypes.Requireable<boolean>;
|
|
282
315
|
}> | null | undefined)[]>;
|
|
283
316
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
284
317
|
menuButtonClassName: PropTypes.Requireable<string>;
|
|
285
318
|
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
319
|
+
isCustomSkillMenu: PropTypes.Requireable<boolean>;
|
|
286
320
|
}> | null | undefined>>;
|
|
287
321
|
isNestedTable: PropTypes.Requireable<boolean>;
|
|
288
322
|
emptyStateFirstMessage: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAGlD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MA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