@coorpacademy/components 11.43.2 → 11.43.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/radio-with-title/style.css +1 -0
- package/es/atom/tag/index.d.ts.map +1 -1
- package/es/atom/tag/index.js +4 -1
- package/es/atom/tag/index.js.map +1 -1
- package/es/atom/tag/style.css +21 -0
- package/es/molecule/assignment-status-tag/index.d.ts +2 -1
- package/es/molecule/assignment-status-tag/index.d.ts.map +1 -1
- package/es/molecule/assignment-status-tag/index.js +19 -5
- package/es/molecule/assignment-status-tag/index.js.map +1 -1
- package/es/molecule/assignment-status-tag/style.css +28 -0
- package/es/molecule/assignment-status-tag/types.d.ts +2 -0
- package/es/molecule/assignment-status-tag/types.d.ts.map +1 -1
- package/es/molecule/assignment-status-tag/types.js +1 -0
- package/es/molecule/assignment-status-tag/types.js.map +1 -1
- package/es/molecule/skills-chart-side-information-item/index.d.ts +3 -1
- package/es/molecule/skills-chart-side-information-item/index.d.ts.map +1 -1
- package/es/molecule/skills-chart-side-information-item/index.js +42 -24
- package/es/molecule/skills-chart-side-information-item/index.js.map +1 -1
- package/es/molecule/skills-chart-side-information-item/style.css +36 -3
- package/es/molecule/skills-chart-side-information-panel/index.d.ts +1 -0
- package/es/molecule/split-button/index.d.ts +22 -0
- package/es/molecule/split-button/index.d.ts.map +1 -0
- package/es/molecule/split-button/index.js +137 -0
- package/es/molecule/split-button/index.js.map +1 -0
- package/es/molecule/split-button/style.css +75 -0
- package/es/molecule/split-button/types.d.ts +39 -0
- package/es/molecule/split-button/types.d.ts.map +1 -0
- package/es/molecule/split-button/types.js +18 -0
- package/es/molecule/split-button/types.js.map +1 -0
- package/es/molecule/table/index.d.ts +1 -0
- package/es/molecule/table/index.d.ts.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/brand-table/index.d.ts +2 -0
- package/es/organism/brand-table/index.d.ts.map +1 -1
- package/es/organism/brand-table/index.js +5 -3
- package/es/organism/brand-table/index.js.map +1 -1
- package/es/organism/content-selection-list/index.d.ts +1 -0
- package/es/organism/content-selection-list/index.d.ts.map +1 -1
- package/es/organism/content-selection-list/index.js +6 -2
- package/es/organism/content-selection-list/index.js.map +1 -1
- package/es/organism/content-selection-list/types.d.ts +2 -0
- package/es/organism/content-selection-list/types.d.ts.map +1 -1
- package/es/organism/content-selection-list/types.js +2 -1
- package/es/organism/content-selection-list/types.js.map +1 -1
- package/es/organism/header-with-actions/index.d.ts +8 -0
- package/es/organism/header-with-actions/index.d.ts.map +1 -1
- package/es/organism/header-with-actions/index.js +6 -1
- package/es/organism/header-with-actions/index.js.map +1 -1
- package/es/organism/header-with-actions/style.css +8 -0
- package/es/organism/header-with-actions/types.d.ts +10 -0
- package/es/organism/header-with-actions/types.d.ts.map +1 -1
- package/es/organism/header-with-actions/types.js +3 -1
- package/es/organism/header-with-actions/types.js.map +1 -1
- package/es/organism/list-item/index.js +1 -1
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/skill-edition/index.d.ts +1 -0
- package/es/organism/skill-edition/index.d.ts.map +1 -1
- package/es/organism/skill-edition/types.d.ts +1 -0
- package/es/organism/skill-edition/types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +15 -0
- package/es/variables/assignment-tracking-colors.css +11 -0
- package/lib/atom/radio-with-title/style.css +1 -0
- package/lib/atom/tag/index.d.ts.map +1 -1
- package/lib/atom/tag/index.js +4 -1
- package/lib/atom/tag/index.js.map +1 -1
- package/lib/atom/tag/style.css +21 -0
- package/lib/molecule/assignment-status-tag/index.d.ts +2 -1
- package/lib/molecule/assignment-status-tag/index.d.ts.map +1 -1
- package/lib/molecule/assignment-status-tag/index.js +19 -5
- package/lib/molecule/assignment-status-tag/index.js.map +1 -1
- package/lib/molecule/assignment-status-tag/style.css +28 -0
- package/lib/molecule/assignment-status-tag/types.d.ts +2 -0
- package/lib/molecule/assignment-status-tag/types.d.ts.map +1 -1
- package/lib/molecule/assignment-status-tag/types.js +1 -0
- package/lib/molecule/assignment-status-tag/types.js.map +1 -1
- package/lib/molecule/skills-chart-side-information-item/index.d.ts +3 -1
- package/lib/molecule/skills-chart-side-information-item/index.d.ts.map +1 -1
- package/lib/molecule/skills-chart-side-information-item/index.js +42 -24
- package/lib/molecule/skills-chart-side-information-item/index.js.map +1 -1
- package/lib/molecule/skills-chart-side-information-item/style.css +36 -3
- package/lib/molecule/skills-chart-side-information-panel/index.d.ts +1 -0
- package/lib/molecule/split-button/index.d.ts +22 -0
- package/lib/molecule/split-button/index.d.ts.map +1 -0
- package/lib/molecule/split-button/index.js +144 -0
- package/lib/molecule/split-button/index.js.map +1 -0
- package/lib/molecule/split-button/style.css +75 -0
- package/lib/molecule/split-button/types.d.ts +39 -0
- package/lib/molecule/split-button/types.d.ts.map +1 -0
- package/lib/molecule/split-button/types.js +23 -0
- package/lib/molecule/split-button/types.js.map +1 -0
- package/lib/molecule/table/index.d.ts +1 -0
- package/lib/molecule/table/index.d.ts.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/brand-table/index.d.ts +2 -0
- package/lib/organism/brand-table/index.d.ts.map +1 -1
- package/lib/organism/brand-table/index.js +5 -3
- package/lib/organism/brand-table/index.js.map +1 -1
- package/lib/organism/content-selection-list/index.d.ts +1 -0
- package/lib/organism/content-selection-list/index.d.ts.map +1 -1
- package/lib/organism/content-selection-list/index.js +6 -2
- package/lib/organism/content-selection-list/index.js.map +1 -1
- package/lib/organism/content-selection-list/types.d.ts +2 -0
- package/lib/organism/content-selection-list/types.d.ts.map +1 -1
- package/lib/organism/content-selection-list/types.js +2 -1
- package/lib/organism/content-selection-list/types.js.map +1 -1
- package/lib/organism/header-with-actions/index.d.ts +8 -0
- package/lib/organism/header-with-actions/index.d.ts.map +1 -1
- package/lib/organism/header-with-actions/index.js +6 -1
- package/lib/organism/header-with-actions/index.js.map +1 -1
- package/lib/organism/header-with-actions/style.css +8 -0
- package/lib/organism/header-with-actions/types.d.ts +10 -0
- package/lib/organism/header-with-actions/types.d.ts.map +1 -1
- package/lib/organism/header-with-actions/types.js +3 -1
- package/lib/organism/header-with-actions/types.js.map +1 -1
- package/lib/organism/list-item/index.js +1 -1
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/skill-edition/index.d.ts +1 -0
- package/lib/organism/skill-edition/index.d.ts.map +1 -1
- package/lib/organism/skill-edition/types.d.ts +1 -0
- package/lib/organism/skill-edition/types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +15 -0
- package/lib/variables/assignment-tracking-colors.css +11 -0
- package/package.json +2 -2
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
export default SkillsChartSideInformationItem;
|
|
2
|
-
declare function SkillsChartSideInformationItem({ title, value, legend, icon: iconProps }: {
|
|
2
|
+
declare function SkillsChartSideInformationItem({ title, value, legend, icon: iconProps, tone }: {
|
|
3
3
|
title: any;
|
|
4
4
|
value: any;
|
|
5
5
|
legend: any;
|
|
6
6
|
icon: any;
|
|
7
|
+
tone: any;
|
|
7
8
|
}): JSX.Element;
|
|
8
9
|
declare namespace SkillsChartSideInformationItem {
|
|
9
10
|
namespace propTypes {
|
|
10
11
|
const icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
|
|
12
|
+
const tone: PropTypes.Requireable<string>;
|
|
11
13
|
const title: PropTypes.Requireable<string>;
|
|
12
14
|
const value: PropTypes.Requireable<string>;
|
|
13
15
|
const legend: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/skills-chart-side-information-item/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/skills-chart-side-information-item/index.js"],"names":[],"mappings":";AAeA;;;;;;gBA0BC"}
|
|
@@ -5,39 +5,57 @@ exports.default = void 0;
|
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
7
|
var _defaults = _interopRequireDefault(require("lodash/fp/defaults"));
|
|
8
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
9
|
var _icon = _interopRequireDefault(require("../../atom/icon"));
|
|
9
10
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
10
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
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); }
|
|
13
|
+
const TONE_STYLES = {
|
|
14
|
+
completed: _style.default.completed,
|
|
15
|
+
inProgress: _style.default.inProgress,
|
|
16
|
+
assigned: _style.default.assigned,
|
|
17
|
+
dueSoon: _style.default.dueSoon,
|
|
18
|
+
overdue: _style.default.overdue
|
|
19
|
+
};
|
|
11
20
|
const SkillsChartSideInformationItem = ({
|
|
12
21
|
title,
|
|
13
22
|
value,
|
|
14
23
|
legend,
|
|
15
|
-
icon: iconProps
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
})
|
|
24
|
+
icon: iconProps,
|
|
25
|
+
tone
|
|
26
|
+
}) => {
|
|
27
|
+
const icon = /*#__PURE__*/_react.default.createElement(_icon.default, _extends({}, (0, _defaults.default)({
|
|
28
|
+
preset: 's'
|
|
29
|
+
}, iconProps), {
|
|
30
|
+
iconColor: tone ? 'currentColor' : iconProps?.iconColor
|
|
31
|
+
}));
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
33
|
+
className: (0, _classnames.default)(_style.default.InformationElement, tone && TONE_STYLES[tone])
|
|
34
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
35
|
+
className: _style.default.titleContainer
|
|
36
|
+
}, tone ? /*#__PURE__*/_react.default.createElement("span", {
|
|
37
|
+
className: _style.default.toneIcon
|
|
38
|
+
}, icon) : icon, /*#__PURE__*/_react.default.createElement("div", {
|
|
39
|
+
className: _style.default.title
|
|
40
|
+
// eslint-disable-next-line react/no-danger
|
|
41
|
+
,
|
|
42
|
+
dangerouslySetInnerHTML: {
|
|
43
|
+
__html: title
|
|
44
|
+
}
|
|
45
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
46
|
+
className: _style.default.value
|
|
47
|
+
}, value), /*#__PURE__*/_react.default.createElement("div", {
|
|
48
|
+
className: _style.default.legend
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
50
|
+
// eslint-disable-next-line react/no-danger
|
|
51
|
+
dangerouslySetInnerHTML: {
|
|
52
|
+
__html: legend
|
|
53
|
+
}
|
|
54
|
+
})));
|
|
55
|
+
};
|
|
39
56
|
SkillsChartSideInformationItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
40
57
|
icon: _propTypes.default.shape(_icon.default.propTypes),
|
|
58
|
+
tone: _propTypes.default.oneOf(['completed', 'inProgress', 'assigned', 'dueSoon', 'overdue']),
|
|
41
59
|
title: _propTypes.default.string,
|
|
42
60
|
value: _propTypes.default.string,
|
|
43
61
|
legend: _propTypes.default.string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_defaults","_icon","_style","e","__esModule","default","SkillsChartSideInformationItem","title","value","legend","icon","iconProps","createElement","className","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_defaults","_classnames","_icon","_style","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","TONE_STYLES","completed","style","inProgress","assigned","dueSoon","overdue","SkillsChartSideInformationItem","title","value","legend","icon","iconProps","tone","createElement","defaults","preset","iconColor","className","classNames","InformationElement","titleContainer","toneIcon","dangerouslySetInnerHTML","__html","propTypes","process","env","NODE_ENV","PropTypes","shape","Icon","oneOf","string","_default","exports"],"sources":["../../../src/molecule/skills-chart-side-information-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport defaults from 'lodash/fp/defaults';\nimport classNames from 'classnames';\nimport Icon from '../../atom/icon';\nimport style from './style.css';\n\nconst TONE_STYLES = {\n completed: style.completed,\n inProgress: style.inProgress,\n assigned: style.assigned,\n dueSoon: style.dueSoon,\n overdue: style.overdue\n};\n\nconst SkillsChartSideInformationItem = ({title, value, legend, icon: iconProps, tone}) => {\n const icon = (\n <Icon\n {...defaults({preset: 's'}, iconProps)}\n iconColor={tone ? 'currentColor' : iconProps?.iconColor}\n />\n );\n return (\n <div className={classNames(style.InformationElement, tone && TONE_STYLES[tone])}>\n <div className={style.titleContainer}>\n {tone ? <span className={style.toneIcon}>{icon}</span> : icon}\n <div\n className={style.title}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n </div>\n <div className={style.value}>{value}</div>\n <div className={style.legend}>\n <span\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: legend}}\n />\n </div>\n </div>\n );\n};\n\nSkillsChartSideInformationItem.propTypes = {\n icon: PropTypes.shape(Icon.propTypes),\n tone: PropTypes.oneOf(['completed', 'inProgress', 'assigned', 'dueSoon', 'overdue']),\n title: PropTypes.string,\n value: PropTypes.string,\n legend: PropTypes.string\n};\n\nexport default SkillsChartSideInformationItem;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,SAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,KAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,MAAA,GAAAN,sBAAA,CAAAC,OAAA;AAAgC,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA;AAEhC,MAAMO,WAAW,GAAG;EAClBC,SAAS,EAAEC,cAAK,CAACD,SAAS;EAC1BE,UAAU,EAAED,cAAK,CAACC,UAAU;EAC5BC,QAAQ,EAAEF,cAAK,CAACE,QAAQ;EACxBC,OAAO,EAAEH,cAAK,CAACG,OAAO;EACtBC,OAAO,EAAEJ,cAAK,CAACI;AACjB,CAAC;AAED,MAAMC,8BAA8B,GAAGA,CAAC;EAACC,KAAK;EAAEC,KAAK;EAAEC,MAAM;EAAEC,IAAI,EAA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AI,EAAEkB,kBAAS,CAACC,KAAK,CAACC,aAAI,CAACN,SAAS,CAAC;EACrCZ,IAAI,EAAEgB,kBAAS,CAACG,KAAK,CAAC,CAAC,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;EACpFxB,KAAK,EAAEqB,kBAAS,CAACI,MAAM;EACvBxB,KAAK,EAAEoB,kBAAS,CAACI,MAAM;EACvBvB,MAAM,EAAEmB,kBAAS,CAACI;AACpB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAhD,OAAA,GAEaoB,8BAA8B","ignoreList":[]}
|
|
@@ -2,18 +2,50 @@
|
|
|
2
2
|
@value cm_grey_50 from colors;
|
|
3
3
|
@value cm_grey_500 from colors;
|
|
4
4
|
@value cm_grey_700 from colors;
|
|
5
|
+
@value tracking: "../../variables/assignment-tracking-colors.css";
|
|
6
|
+
@value trackingCompletedColor, trackingInProgressColor, trackingAssignedColor, trackingDueSoonColor, trackingOverdueColor from tracking;
|
|
7
|
+
@value trackingCompletedText, trackingInProgressText, trackingAssignedText, trackingDueSoonText, trackingOverdueText from tracking;
|
|
5
8
|
|
|
6
9
|
.InformationElement {
|
|
7
10
|
border-radius: 12px;
|
|
8
11
|
background: cm_grey_50;
|
|
9
|
-
display:
|
|
12
|
+
display: grid;
|
|
10
13
|
padding: 24px;
|
|
11
|
-
|
|
12
|
-
justify-content: space-between;
|
|
14
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
13
15
|
align-items: flex-start;
|
|
14
16
|
align-self: stretch;
|
|
15
17
|
}
|
|
16
18
|
|
|
19
|
+
.toneIcon {
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
width: 27px;
|
|
24
|
+
height: 27px;
|
|
25
|
+
border-radius: 8px;
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.completed { background: color(trackingCompletedColor a(17%)); }
|
|
30
|
+
.completed .title, .completed .toneIcon { color: trackingCompletedText; }
|
|
31
|
+
.completed .toneIcon { background: color(trackingCompletedColor a(27%)); }
|
|
32
|
+
|
|
33
|
+
.inProgress { background: color(trackingInProgressColor a(15%)); }
|
|
34
|
+
.inProgress .title, .inProgress .toneIcon { color: trackingInProgressText; }
|
|
35
|
+
.inProgress .toneIcon { background: color(trackingInProgressColor a(25%)); }
|
|
36
|
+
|
|
37
|
+
.assigned { background: color(trackingAssignedColor a(35%)); }
|
|
38
|
+
.assigned .title, .assigned .toneIcon { color: trackingAssignedText; }
|
|
39
|
+
.assigned .toneIcon { background: color(trackingAssignedColor a(65%)); }
|
|
40
|
+
|
|
41
|
+
.dueSoon { background: color(trackingDueSoonColor a(13%)); }
|
|
42
|
+
.dueSoon .title, .dueSoon .toneIcon { color: trackingDueSoonText; }
|
|
43
|
+
.dueSoon .toneIcon { background: color(trackingDueSoonColor a(21%)); }
|
|
44
|
+
|
|
45
|
+
.overdue { background: color(trackingOverdueColor a(13%)); }
|
|
46
|
+
.overdue .title, .overdue .toneIcon { color: trackingOverdueText; }
|
|
47
|
+
.overdue .toneIcon { background: color(trackingOverdueColor a(20%)); }
|
|
48
|
+
|
|
17
49
|
.titleContainer {
|
|
18
50
|
display: flex;
|
|
19
51
|
align-items: center;
|
|
@@ -39,6 +71,7 @@
|
|
|
39
71
|
font-style: normal;
|
|
40
72
|
font-weight: 700;
|
|
41
73
|
line-height: 36px;
|
|
74
|
+
margin-top: 20px;
|
|
42
75
|
}
|
|
43
76
|
|
|
44
77
|
.legend {
|
|
@@ -8,6 +8,7 @@ declare namespace SkillsChartSideInformationPanel {
|
|
|
8
8
|
const theme: PropTypes.Requireable<string>;
|
|
9
9
|
const sidePanelItems: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
10
10
|
icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
|
|
11
|
+
tone: PropTypes.Requireable<string>;
|
|
11
12
|
title: PropTypes.Requireable<string>;
|
|
12
13
|
value: PropTypes.Requireable<string>;
|
|
13
14
|
legend: PropTypes.Requireable<string>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SplitButtonProps } from './types';
|
|
3
|
+
declare const SplitButton: {
|
|
4
|
+
({ type, label, onClick, disabled, iconName, iconColor, menu }: SplitButtonProps): JSX.Element;
|
|
5
|
+
propTypes: {
|
|
6
|
+
type: import("prop-types").Validator<string>;
|
|
7
|
+
label: import("prop-types").Validator<string>;
|
|
8
|
+
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
9
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
10
|
+
iconName: import("prop-types").Requireable<string>;
|
|
11
|
+
iconColor: import("prop-types").Requireable<string>;
|
|
12
|
+
menu: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
13
|
+
ariaLabel: import("prop-types").Validator<string>;
|
|
14
|
+
options: import("prop-types").Validator<(import("prop-types").InferProps<{
|
|
15
|
+
label: import("prop-types").Validator<string>;
|
|
16
|
+
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
17
|
+
}> | null | undefined)[]>;
|
|
18
|
+
}>>>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default SplitButton;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/split-button/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAC,gBAAgB,EAAY,MAAM,SAAS,CAAC;AAqBpD,QAAA,MAAM,WAAW;oEAQd,gBAAgB;;;;;;;;;;;;;;;;CAqHlB,CAAC;AAGF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
+
var _uniqueId = _interopRequireDefault(require("lodash/fp/uniqueId"));
|
|
7
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
|
+
var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
|
|
9
|
+
var _icon = _interopRequireDefault(require("../../atom/icon"));
|
|
10
|
+
var _types = require("./types");
|
|
11
|
+
var _style = _interopRequireDefault(require("./style.css"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
15
|
+
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); }
|
|
16
|
+
const MenuOption = ({
|
|
17
|
+
option,
|
|
18
|
+
close
|
|
19
|
+
}) => {
|
|
20
|
+
const handleClick = (0, _react.useCallback)(() => {
|
|
21
|
+
close(true);
|
|
22
|
+
option.onClick();
|
|
23
|
+
}, [close, option]);
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement("button", {
|
|
25
|
+
type: "button",
|
|
26
|
+
role: "menuitem",
|
|
27
|
+
className: _style.default.option,
|
|
28
|
+
onClick: handleClick
|
|
29
|
+
}, option.label);
|
|
30
|
+
};
|
|
31
|
+
const SplitButton = ({
|
|
32
|
+
type,
|
|
33
|
+
label,
|
|
34
|
+
onClick,
|
|
35
|
+
disabled,
|
|
36
|
+
iconName,
|
|
37
|
+
iconColor,
|
|
38
|
+
menu
|
|
39
|
+
}) => {
|
|
40
|
+
const [open, setOpen] = (0, _react.useState)(false);
|
|
41
|
+
const root = (0, _react.useRef)(null);
|
|
42
|
+
const trigger = (0, _react.useRef)(null);
|
|
43
|
+
const menuRef = (0, _react.useRef)(null);
|
|
44
|
+
const menuId = (0, _react.useMemo)(() => (0, _uniqueId.default)('split-button-menu-'), []);
|
|
45
|
+
(0, _react.useEffect)(() => {
|
|
46
|
+
if (!open) return;
|
|
47
|
+
const outside = event => {
|
|
48
|
+
if (!root.current?.contains(event.target)) setOpen(false);
|
|
49
|
+
};
|
|
50
|
+
document.addEventListener('mousedown', outside);
|
|
51
|
+
document.addEventListener('touchstart', outside);
|
|
52
|
+
menuRef.current?.querySelector('[role="menuitem"]:not(:disabled)')?.focus();
|
|
53
|
+
return () => {
|
|
54
|
+
document.removeEventListener('mousedown', outside);
|
|
55
|
+
document.removeEventListener('touchstart', outside);
|
|
56
|
+
};
|
|
57
|
+
}, [open]);
|
|
58
|
+
(0, _react.useEffect)(() => {
|
|
59
|
+
if (disabled) setOpen(false);
|
|
60
|
+
}, [disabled]);
|
|
61
|
+
const close = (0, _react.useCallback)(restoreFocus => {
|
|
62
|
+
setOpen(false);
|
|
63
|
+
if (restoreFocus) trigger.current?.focus();
|
|
64
|
+
}, []);
|
|
65
|
+
const onMenuKeyDown = (0, _react.useCallback)(event => {
|
|
66
|
+
if (event.key === 'Escape') {
|
|
67
|
+
event.preventDefault();
|
|
68
|
+
close(true);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
if (!['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) return;
|
|
72
|
+
event.preventDefault();
|
|
73
|
+
const buttons = [...(menuRef.current?.querySelectorAll('[role="menuitem"]:not(:disabled)') || [])];
|
|
74
|
+
if (buttons.length === 0) return;
|
|
75
|
+
const active = buttons.indexOf(document.activeElement);
|
|
76
|
+
let index = 0;
|
|
77
|
+
if (event.key === 'End') index = buttons.length - 1;
|
|
78
|
+
if (event.key === 'ArrowDown') index = (active + 1) % buttons.length;
|
|
79
|
+
if (event.key === 'ArrowUp') index = active <= 0 ? buttons.length - 1 : active - 1;
|
|
80
|
+
buttons[index].focus();
|
|
81
|
+
}, [close]);
|
|
82
|
+
const onBlur = (0, _react.useCallback)(event => {
|
|
83
|
+
if (!event.currentTarget.contains(event.relatedTarget)) close(false);
|
|
84
|
+
}, [close]);
|
|
85
|
+
const toggle = (0, _react.useCallback)(() => setOpen(value => !value), []);
|
|
86
|
+
const onTriggerKeyDown = (0, _react.useCallback)(event => {
|
|
87
|
+
if (event.key === 'ArrowDown' && !open) {
|
|
88
|
+
event.preventDefault();
|
|
89
|
+
setOpen(true);
|
|
90
|
+
}
|
|
91
|
+
}, [open]);
|
|
92
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
93
|
+
ref: root,
|
|
94
|
+
className: _style.default.root,
|
|
95
|
+
onBlur: onBlur
|
|
96
|
+
}, /*#__PURE__*/_react.default.createElement(_buttonLink.default, _extends({}, iconName && iconColor && {
|
|
97
|
+
icon: {
|
|
98
|
+
position: 'left',
|
|
99
|
+
faIcon: {
|
|
100
|
+
name: iconName,
|
|
101
|
+
color: iconColor,
|
|
102
|
+
size: 14
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}, {
|
|
106
|
+
type: type,
|
|
107
|
+
label: label,
|
|
108
|
+
disabled: disabled,
|
|
109
|
+
onClick: onClick,
|
|
110
|
+
className: _style.default.primaryAction
|
|
111
|
+
})), /*#__PURE__*/_react.default.createElement("button", {
|
|
112
|
+
ref: trigger,
|
|
113
|
+
type: "button",
|
|
114
|
+
className: (0, _classnames.default)(_style.default.trigger, type === 'secondary' && _style.default.secondary),
|
|
115
|
+
"aria-label": menu.ariaLabel,
|
|
116
|
+
"aria-haspopup": "menu",
|
|
117
|
+
"aria-expanded": open,
|
|
118
|
+
"aria-controls": menuId,
|
|
119
|
+
disabled: disabled,
|
|
120
|
+
onClick: toggle,
|
|
121
|
+
onKeyDown: onTriggerKeyDown
|
|
122
|
+
}, /*#__PURE__*/_react.default.createElement(_icon.default, {
|
|
123
|
+
iconName: "chevron-down",
|
|
124
|
+
iconColor: "currentColor",
|
|
125
|
+
size: {
|
|
126
|
+
faSize: 14,
|
|
127
|
+
wrapperSize: 14
|
|
128
|
+
}
|
|
129
|
+
})), open && !disabled ? /*#__PURE__*/_react.default.createElement("div", {
|
|
130
|
+
ref: menuRef,
|
|
131
|
+
id: menuId,
|
|
132
|
+
role: "menu",
|
|
133
|
+
"aria-label": menu.ariaLabel,
|
|
134
|
+
className: _style.default.menu,
|
|
135
|
+
onKeyDown: onMenuKeyDown
|
|
136
|
+
}, menu.options.map(option => /*#__PURE__*/_react.default.createElement(MenuOption, {
|
|
137
|
+
key: option.label,
|
|
138
|
+
option: option,
|
|
139
|
+
close: close
|
|
140
|
+
}))) : null);
|
|
141
|
+
};
|
|
142
|
+
SplitButton.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
|
|
143
|
+
var _default = exports.default = SplitButton;
|
|
144
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_uniqueId","_interopRequireDefault","_classnames","_buttonLink","_icon","_types","_style","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","MenuOption","option","close","handleClick","useCallback","onClick","createElement","type","role","className","style","label","SplitButton","disabled","iconName","iconColor","menu","open","setOpen","useState","root","useRef","trigger","menuRef","menuId","useMemo","uniqueId","useEffect","outside","event","current","contains","target","document","addEventListener","querySelector","focus","removeEventListener","restoreFocus","onMenuKeyDown","key","preventDefault","includes","buttons","querySelectorAll","active","indexOf","activeElement","index","onBlur","currentTarget","relatedTarget","toggle","value","onTriggerKeyDown","ref","icon","position","faIcon","name","color","size","primaryAction","classnames","secondary","ariaLabel","onKeyDown","faSize","wrapperSize","id","options","map","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/molecule/split-button/index.tsx"],"sourcesContent":["import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';\nimport uniqueId from 'lodash/fp/uniqueId';\nimport classnames from 'classnames';\nimport ButtonLink from '../../atom/button-link';\nimport Icon from '../../atom/icon';\nimport {SplitButtonProps, propTypes} from './types';\nimport style from './style.css';\n\nconst MenuOption = ({\n option,\n close\n}: {\n option: SplitButtonProps['menu']['options'][number];\n close: (restoreFocus: boolean) => void;\n}) => {\n const handleClick = useCallback(() => {\n close(true);\n option.onClick();\n }, [close, option]);\n return (\n <button type=\"button\" role=\"menuitem\" className={style.option} onClick={handleClick}>\n {option.label}\n </button>\n );\n};\n\nconst SplitButton = ({\n type,\n label,\n onClick,\n disabled,\n iconName,\n iconColor,\n menu\n}: SplitButtonProps) => {\n const [open, setOpen] = useState(false);\n const root = useRef<HTMLDivElement>(null);\n const trigger = useRef<HTMLButtonElement>(null);\n const menuRef = useRef<HTMLDivElement>(null);\n const menuId = useMemo(() => uniqueId('split-button-menu-'), []);\n\n useEffect(() => {\n if (!open) return;\n const outside = (event: MouseEvent | TouchEvent) => {\n if (!root.current?.contains(event.target as Node)) setOpen(false);\n };\n document.addEventListener('mousedown', outside);\n document.addEventListener('touchstart', outside);\n menuRef.current?.querySelector<HTMLButtonElement>('[role=\"menuitem\"]:not(:disabled)')?.focus();\n return () => {\n document.removeEventListener('mousedown', outside);\n document.removeEventListener('touchstart', outside);\n };\n }, [open]);\n\n useEffect(() => {\n if (disabled) setOpen(false);\n }, [disabled]);\n\n const close = useCallback((restoreFocus: boolean) => {\n setOpen(false);\n if (restoreFocus) trigger.current?.focus();\n }, []);\n const onMenuKeyDown = useCallback(\n (event: React.KeyboardEvent<HTMLDivElement>) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n close(true);\n return;\n }\n if (!['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) return;\n event.preventDefault();\n const buttons = [\n ...(menuRef.current?.querySelectorAll<HTMLButtonElement>(\n '[role=\"menuitem\"]:not(:disabled)'\n ) || [])\n ];\n if (buttons.length === 0) return;\n const active = buttons.indexOf(document.activeElement as HTMLButtonElement);\n let index = 0;\n if (event.key === 'End') index = buttons.length - 1;\n if (event.key === 'ArrowDown') index = (active + 1) % buttons.length;\n if (event.key === 'ArrowUp') index = active <= 0 ? buttons.length - 1 : active - 1;\n buttons[index].focus();\n },\n [close]\n );\n const onBlur = useCallback(\n (event: React.FocusEvent<HTMLDivElement>) => {\n if (!event.currentTarget.contains(event.relatedTarget as Node)) close(false);\n },\n [close]\n );\n const toggle = useCallback(() => setOpen(value => !value), []);\n const onTriggerKeyDown = useCallback(\n (event: React.KeyboardEvent<HTMLButtonElement>) => {\n if (event.key === 'ArrowDown' && !open) {\n event.preventDefault();\n setOpen(true);\n }\n },\n [open]\n );\n\n return (\n <div ref={root} className={style.root} onBlur={onBlur}>\n <ButtonLink\n {...(iconName &&\n iconColor && {\n icon: {position: 'left' as const, faIcon: {name: iconName, color: iconColor, size: 14}}\n })}\n type={type}\n label={label}\n disabled={disabled}\n onClick={onClick}\n className={style.primaryAction}\n />\n <button\n ref={trigger}\n type=\"button\"\n className={classnames(style.trigger, type === 'secondary' && style.secondary)}\n aria-label={menu.ariaLabel}\n aria-haspopup=\"menu\"\n aria-expanded={open}\n aria-controls={menuId}\n disabled={disabled}\n onClick={toggle}\n onKeyDown={onTriggerKeyDown}\n >\n <Icon\n iconName=\"chevron-down\"\n iconColor=\"currentColor\"\n size={{faSize: 14, wrapperSize: 14}}\n />\n </button>\n {open && !disabled ? (\n <div\n ref={menuRef}\n id={menuId}\n role=\"menu\"\n aria-label={menu.ariaLabel}\n className={style.menu}\n onKeyDown={onMenuKeyDown}\n >\n {menu.options.map(option => (\n <MenuOption key={option.label} option={option} close={close} />\n ))}\n </div>\n ) : null}\n </div>\n );\n};\n\nSplitButton.propTypes = propTypes;\nexport default SplitButton;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,KAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAL,sBAAA,CAAAF,OAAA;AAAgC,SAAAE,uBAAAM,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,SAAAT,wBAAAS,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,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CA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S,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,gBAAS;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAArG,OAAA,GACnBoC,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value white, cm_primary_blue, cm_blue_600, cm_grey_100, cm_grey_200, cm_grey_700 from colors;
|
|
3
|
+
|
|
4
|
+
.root {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
position: relative;
|
|
7
|
+
align-items: stretch;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.primaryAction {
|
|
11
|
+
width: auto;
|
|
12
|
+
border-radius: 12px 0 0 12px;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.trigger {
|
|
17
|
+
width: 44px;
|
|
18
|
+
height: 44px;
|
|
19
|
+
border: 0;
|
|
20
|
+
border-left: 1px solid rgba(255, 255, 255, 0.45);
|
|
21
|
+
border-radius: 0 12px 12px 0;
|
|
22
|
+
background: cm_primary_blue;
|
|
23
|
+
color: white;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.trigger:hover {
|
|
28
|
+
background: cm_blue_600;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.trigger:disabled {
|
|
32
|
+
opacity: 0.4;
|
|
33
|
+
cursor: not-allowed;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.secondary {
|
|
37
|
+
background: cm_grey_100;
|
|
38
|
+
border-left-color: cm_grey_200;
|
|
39
|
+
color: cm_grey_700;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.secondary:hover {
|
|
43
|
+
background: cm_grey_200;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.menu {
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 48px;
|
|
49
|
+
right: 0;
|
|
50
|
+
z-index: 99;
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
min-width: 100%;
|
|
54
|
+
padding: 8px;
|
|
55
|
+
border-radius: 12px;
|
|
56
|
+
background: white;
|
|
57
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.option {
|
|
61
|
+
padding: 10px 12px;
|
|
62
|
+
border: 0;
|
|
63
|
+
border-radius: 8px;
|
|
64
|
+
background: white;
|
|
65
|
+
color: cm_grey_700;
|
|
66
|
+
text-align: left;
|
|
67
|
+
white-space: nowrap;
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
font-family: Gilroy;
|
|
70
|
+
font-size: 14px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.option:hover, .option:focus {
|
|
74
|
+
background: cm_grey_100;
|
|
75
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export declare const menuPropTypes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
3
|
+
ariaLabel: PropTypes.Validator<string>;
|
|
4
|
+
options: PropTypes.Validator<(PropTypes.InferProps<{
|
|
5
|
+
label: PropTypes.Validator<string>;
|
|
6
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
7
|
+
}> | null | undefined)[]>;
|
|
8
|
+
}>>;
|
|
9
|
+
export declare const propTypes: {
|
|
10
|
+
type: PropTypes.Validator<string>;
|
|
11
|
+
label: PropTypes.Validator<string>;
|
|
12
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
13
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
14
|
+
iconName: PropTypes.Requireable<string>;
|
|
15
|
+
iconColor: PropTypes.Requireable<string>;
|
|
16
|
+
menu: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
17
|
+
ariaLabel: PropTypes.Validator<string>;
|
|
18
|
+
options: PropTypes.Validator<(PropTypes.InferProps<{
|
|
19
|
+
label: PropTypes.Validator<string>;
|
|
20
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
|
+
}> | null | undefined)[]>;
|
|
22
|
+
}>>>;
|
|
23
|
+
};
|
|
24
|
+
export declare type SplitButtonProps = {
|
|
25
|
+
type: 'primary' | 'secondary';
|
|
26
|
+
label: string;
|
|
27
|
+
onClick: () => void;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
iconName?: string;
|
|
30
|
+
iconColor?: string;
|
|
31
|
+
menu: {
|
|
32
|
+
ariaLabel: string;
|
|
33
|
+
options: Array<{
|
|
34
|
+
label: string;
|
|
35
|
+
onClick: () => void;
|
|
36
|
+
}>;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/split-button/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,eAAO,MAAM,aAAa;;;;;;GAKxB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;CAQrB,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,EAAE,SAAS,GAAG,WAAW,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,KAAK,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,IAAI,CAAA;SAAC,CAAC,CAAA;KAAC,CAAC;CACjF,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.propTypes = exports.menuPropTypes = void 0;
|
|
5
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
6
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
|
+
const menuPropTypes = exports.menuPropTypes = _propTypes.default.shape({
|
|
8
|
+
ariaLabel: _propTypes.default.string.isRequired,
|
|
9
|
+
options: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
10
|
+
label: _propTypes.default.string.isRequired,
|
|
11
|
+
onClick: _propTypes.default.func.isRequired
|
|
12
|
+
})).isRequired
|
|
13
|
+
});
|
|
14
|
+
const propTypes = exports.propTypes = {
|
|
15
|
+
type: _propTypes.default.oneOf(['primary', 'secondary']).isRequired,
|
|
16
|
+
label: _propTypes.default.string.isRequired,
|
|
17
|
+
onClick: _propTypes.default.func.isRequired,
|
|
18
|
+
disabled: _propTypes.default.bool,
|
|
19
|
+
iconName: _propTypes.default.string,
|
|
20
|
+
iconColor: _propTypes.default.string,
|
|
21
|
+
menu: menuPropTypes.isRequired
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","e","__esModule","default","menuPropTypes","exports","PropTypes","shape","ariaLabel","string","isRequired","options","arrayOf","label","onClick","func","propTypes","type","oneOf","disabled","bool","iconName","iconColor","menu"],"sources":["../../../src/molecule/split-button/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nexport const menuPropTypes = PropTypes.shape({\n ariaLabel: PropTypes.string.isRequired,\n options: PropTypes.arrayOf(\n PropTypes.shape({label: PropTypes.string.isRequired, onClick: PropTypes.func.isRequired})\n ).isRequired\n});\n\nexport const propTypes = {\n type: PropTypes.oneOf(['primary', 'secondary']).isRequired,\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n disabled: PropTypes.bool,\n iconName: PropTypes.string,\n iconColor: PropTypes.string,\n menu: menuPropTypes.isRequired\n};\n\nexport type SplitButtonProps = {\n type: 'primary' | 'secondary';\n label: string;\n onClick: () => void;\n disabled?: boolean;\n iconName?: string;\n iconColor?: string;\n menu: {ariaLabel: string; options: Array<{label: string; onClick: () => void}>};\n};\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;AAE5B,MAAMG,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAGE,kBAAS,CAACC,KAAK,CAAC;EAC3CC,SAAS,EAAEF,kBAAS,CAACG,MAAM,CAACC,UAAU;EACtCC,OAAO,EAAEL,kBAAS,CAACM,OAAO,CACxBN,kBAAS,CAACC,KAAK,CAAC;IAACM,KAAK,EAAEP,kBAAS,CAACG,MAAM,CAACC,UAAU;IAAEI,OAAO,EAAER,kBAAS,CAACS,IAAI,CAACL;EAAU,CAAC,CAC1F,CAAC,CAACA;AACJ,CAAC,CAAC;AAEK,MAAMM,SAAS,GAAAX,OAAA,CAAAW,SAAA,GAAG;EACvBC,IAAI,EAAEX,kBAAS,CAACY,KAAK,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAACR,UAAU;EAC1DG,KAAK,EAAEP,kBAAS,CAACG,MAAM,CAACC,UAAU;EAClCI,OAAO,EAAER,kBAAS,CAACS,IAAI,CAACL,UAAU;EAClCS,QAAQ,EAAEb,kBAAS,CAACc,IAAI;EACxBC,QAAQ,EAAEf,kBAAS,CAACG,MAAM;EAC1Ba,SAAS,EAAEhB,kBAAS,CAACG,MAAM;EAC3Bc,IAAI,EAAEnB,aAAa,CAACM;AACtB,CAAC","ignoreList":[]}
|
|
@@ -55,6 +55,7 @@ declare namespace Table {
|
|
|
55
55
|
text: PropTypes.Requireable<string>;
|
|
56
56
|
tags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
57
57
|
status: PropTypes.Requireable<string>;
|
|
58
|
+
palette: PropTypes.Requireable<string>;
|
|
58
59
|
label: PropTypes.Validator<string>;
|
|
59
60
|
}> | null | undefined)[]>;
|
|
60
61
|
}> | null | undefined> | null | undefined)[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/table/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA2OA,8DA+KC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/table/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA2OA,8DA+KC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOD;;;;;IAKG"}
|
|
@@ -204,6 +204,7 @@ declare const AssignmentEdition: {
|
|
|
204
204
|
tags: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
205
205
|
label: import("prop-types").Validator<string>;
|
|
206
206
|
iconName: import("prop-types").Validator<string>;
|
|
207
|
+
level: import("prop-types").Requireable<string>;
|
|
207
208
|
}>>>;
|
|
208
209
|
checkbox: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
209
210
|
checked: import("prop-types").Validator<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/assignment-edition/index.tsx"],"names":[],"mappings":";AASA,OAAO,EAAC,sBAAsB,EAAY,MAAM,SAAS,CAAC;AAG1D,YAAY,EAAC,sBAAsB,EAAE,6BAA6B,EAAC,MAAM,SAAS,CAAC;AAEnF,QAAA,MAAM,iBAAiB;iFAQpB,sBAAsB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/assignment-edition/index.tsx"],"names":[],"mappings":";AASA,OAAO,EAAC,sBAAsB,EAAY,MAAM,SAAS,CAAC;AAG1D,YAAY,EAAC,sBAAsB,EAAE,6BAA6B,EAAC,MAAM,SAAS,CAAC;AAEnF,QAAA,MAAM,iBAAiB;iFAQpB,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHxB,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
|
|
@@ -257,6 +257,7 @@ export declare const propTypes: {
|
|
|
257
257
|
tags: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
258
258
|
label: PropTypes.Validator<string>;
|
|
259
259
|
iconName: PropTypes.Validator<string>;
|
|
260
|
+
level: PropTypes.Requireable<string>;
|
|
260
261
|
}>>>;
|
|
261
262
|
checkbox: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
262
263
|
checked: PropTypes.Validator<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/assignment-edition/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAA8B,mBAAmB,EAAC,MAAM,mCAAmC,CAAC;AACnG,OAAoC,EAAC,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAClG,OAAO,EAAC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AK,EAAE,MAAM,CAAC;YACd,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,QAAQ,CAAC,EAAE,OAAO,CAAC;YACnB,OAAO,EAAE,UAAU,EAAE,CAAC;SACvB,CAAC;QACF,SAAS,EAAE;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,cAAc,EAAE,CAAA;SAAC,CAAC;KACvD,CAAC;IACF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;CAClE,CAAC;AACF,oBAAY,6BAA6B,GAAG;IAAC,KAAK,EAAE,sBAAsB,CAAA;CAAC,CAAC;AAE5E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDrB,CAAC"}
|
|
@@ -23,6 +23,7 @@ declare namespace BrandTable {
|
|
|
23
23
|
}>>;
|
|
24
24
|
const emptyValue: PropTypes.Validator<string>;
|
|
25
25
|
const isPending: PropTypes.Requireable<boolean>;
|
|
26
|
+
const keepFiltersWhenEmpty: PropTypes.Requireable<boolean>;
|
|
26
27
|
const editable: PropTypes.Requireable<boolean>;
|
|
27
28
|
const rows: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
28
29
|
fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
|
|
@@ -36,6 +37,7 @@ declare namespace BrandTable {
|
|
|
36
37
|
text: PropTypes.Requireable<string>;
|
|
37
38
|
tags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
38
39
|
status: PropTypes.Requireable<string>;
|
|
40
|
+
palette: PropTypes.Requireable<string>;
|
|
39
41
|
label: PropTypes.Validator<string>;
|
|
40
42
|
}> | null | undefined)[]>;
|
|
41
43
|
}> | null | undefined> | null | undefined)[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/brand-table/index.js"],"names":[],"mappings":";AAQA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/brand-table/index.js"],"names":[],"mappings":";AAQA,qDAyDC"}
|