@coorpacademy/components 11.33.7 → 11.33.8-alpha.1
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 +13 -2
- package/es/atom/button-link/index.d.ts.map +1 -1
- package/es/atom/button-link/index.js +2 -2
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/style.css +2 -2
- package/es/atom/button-link/types.d.ts +28 -4
- package/es/atom/button-link/types.d.ts.map +1 -1
- package/es/atom/button-link/types.js +14 -5
- 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 +18 -0
- package/es/atom/button-menu/index.d.ts.map +1 -1
- package/es/atom/button-menu/index.js +19 -3
- package/es/atom/button-menu/index.js.map +1 -1
- package/es/atom/button-menu/style.css +19 -6
- package/es/atom/button-menu/types.d.ts +39 -0
- package/es/atom/button-menu/types.d.ts.map +1 -1
- package/es/atom/button-menu/types.js +7 -2
- 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 +17 -0
- package/es/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
- package/es/molecule/bullet-point-menu-button/style.css +19 -16
- 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/cm-popin/types.d.ts +69 -7
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/expandible-actionable-table/index.d.ts +47 -2
- package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/es/molecule/expandible-actionable-table/types.d.ts +47 -2
- package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/es/molecule/filters/index.js +2 -2
- package/es/molecule/filters/index.js.map +1 -1
- package/es/molecule/filters/style.css +7 -7
- package/es/organism/header-with-actions/index.d.ts +95 -0
- package/es/organism/header-with-actions/index.d.ts.map +1 -0
- package/es/organism/header-with-actions/index.js +48 -0
- package/es/organism/header-with-actions/index.js.map +1 -0
- package/es/organism/header-with-actions/style.css +55 -0
- package/es/organism/header-with-actions/types.d.ts +120 -0
- package/es/organism/header-with-actions/types.d.ts.map +1 -0
- package/es/organism/header-with-actions/types.js +27 -0
- package/es/organism/header-with-actions/types.js.map +1 -0
- package/es/organism/list-items/index.d.ts +60 -4
- package/es/organism/setup-header/index.d.ts +52 -8
- package/es/organism/wizard-contents/index.d.ts +73 -6
- package/es/template/app-player/loading/index.d.ts +69 -7
- package/es/template/app-player/player/index.d.ts +138 -14
- package/es/template/app-player/player/slides/index.d.ts +69 -7
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +69 -7
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +69 -7
- package/es/template/app-review/index.d.ts +69 -7
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +69 -7
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +69 -7
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-create/index.d.ts +52 -8
- package/es/template/back-office/brand-create/index.d.ts.map +1 -1
- package/es/template/back-office/brand-list/index.d.ts +52 -8
- package/es/template/back-office/brand-list/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +254 -25
- package/es/template/back-office/dashboard-preview/index.d.ts +52 -8
- package/es/template/back-office/layout/index.d.ts +52 -8
- package/es/template/back-office/layout/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.d.ts +138 -14
- package/es/template/common/search-page/index.d.ts +69 -7
- package/es/template/external-course/index.d.ts +69 -7
- package/es/variables/colors.css +5 -1
- package/es/variables/colors.d.ts +1 -0
- package/es/variables/colors.d.ts.map +1 -1
- package/es/variables/colors.js +1 -0
- package/es/variables/colors.js.map +1 -1
- package/lib/atom/button-link/index.d.ts +13 -2
- package/lib/atom/button-link/index.d.ts.map +1 -1
- package/lib/atom/button-link/index.js +2 -2
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/style.css +2 -2
- package/lib/atom/button-link/types.d.ts +28 -4
- package/lib/atom/button-link/types.d.ts.map +1 -1
- package/lib/atom/button-link/types.js +15 -6
- 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 +18 -0
- package/lib/atom/button-menu/index.d.ts.map +1 -1
- package/lib/atom/button-menu/index.js +19 -3
- package/lib/atom/button-menu/index.js.map +1 -1
- package/lib/atom/button-menu/style.css +19 -6
- package/lib/atom/button-menu/types.d.ts +39 -0
- package/lib/atom/button-menu/types.d.ts.map +1 -1
- package/lib/atom/button-menu/types.js +7 -2
- 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 +17 -0
- package/lib/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
- package/lib/molecule/bullet-point-menu-button/style.css +19 -16
- 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/cm-popin/types.d.ts +69 -7
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/expandible-actionable-table/index.d.ts +47 -2
- package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/lib/molecule/expandible-actionable-table/types.d.ts +47 -2
- package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/lib/molecule/filters/index.js +2 -2
- package/lib/molecule/filters/index.js.map +1 -1
- package/lib/molecule/filters/style.css +7 -7
- package/lib/organism/header-with-actions/index.d.ts +95 -0
- package/lib/organism/header-with-actions/index.d.ts.map +1 -0
- package/lib/organism/header-with-actions/index.js +53 -0
- package/lib/organism/header-with-actions/index.js.map +1 -0
- package/lib/organism/header-with-actions/style.css +55 -0
- package/lib/organism/header-with-actions/types.d.ts +120 -0
- package/lib/organism/header-with-actions/types.d.ts.map +1 -0
- package/lib/organism/header-with-actions/types.js +32 -0
- package/lib/organism/header-with-actions/types.js.map +1 -0
- package/lib/organism/list-items/index.d.ts +60 -4
- package/lib/organism/setup-header/index.d.ts +52 -8
- package/lib/organism/wizard-contents/index.d.ts +73 -6
- package/lib/template/app-player/loading/index.d.ts +69 -7
- package/lib/template/app-player/player/index.d.ts +138 -14
- package/lib/template/app-player/player/slides/index.d.ts +69 -7
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +69 -7
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +69 -7
- package/lib/template/app-review/index.d.ts +69 -7
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +69 -7
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +69 -7
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-create/index.d.ts +52 -8
- package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-list/index.d.ts +52 -8
- package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +254 -25
- package/lib/template/back-office/dashboard-preview/index.d.ts +52 -8
- package/lib/template/back-office/layout/index.d.ts +52 -8
- package/lib/template/back-office/layout/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.d.ts +138 -14
- package/lib/template/common/search-page/index.d.ts +69 -7
- package/lib/template/external-course/index.d.ts +69 -7
- package/lib/variables/colors.css +5 -1
- package/lib/variables/colors.d.ts +1 -0
- package/lib/variables/colors.d.ts.map +1 -1
- package/lib/variables/colors.js +1 -0
- package/lib/variables/colors.js.map +1 -1
- package/package.json +2 -2
- package/LICENSE +0 -201
|
@@ -28,6 +28,23 @@ export declare const propTypes: {
|
|
|
28
28
|
label: PropTypes.Validator<string>;
|
|
29
29
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
30
30
|
type: PropTypes.Requireable<string>;
|
|
31
|
+
buttonLinkType: PropTypes.Requireable<string>;
|
|
32
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
33
|
+
position: PropTypes.Validator<string>;
|
|
34
|
+
type: PropTypes.Requireable<string>;
|
|
35
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
36
|
+
name: PropTypes.Validator<string>;
|
|
37
|
+
color: PropTypes.Requireable<string>;
|
|
38
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
39
|
+
size: PropTypes.Requireable<number>;
|
|
40
|
+
customStyle: PropTypes.Requireable<{
|
|
41
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
}>>;
|
|
44
|
+
}>>;
|
|
45
|
+
customStyle: PropTypes.Requireable<{
|
|
46
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
47
|
+
}>;
|
|
31
48
|
}> | null | undefined)[]>;
|
|
32
49
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
50
|
menuButtonClassName: PropTypes.Requireable<string>;
|
|
@@ -50,8 +67,17 @@ export declare const propTypes: {
|
|
|
50
67
|
'data-name': PropTypes.Requireable<string>;
|
|
51
68
|
'data-testid': PropTypes.Requireable<string>;
|
|
52
69
|
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
53
|
-
position: PropTypes.
|
|
70
|
+
position: PropTypes.Validator<string>;
|
|
54
71
|
type: PropTypes.Requireable<string>;
|
|
72
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
73
|
+
name: PropTypes.Validator<string>;
|
|
74
|
+
color: PropTypes.Requireable<string>;
|
|
75
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
76
|
+
size: PropTypes.Requireable<number>;
|
|
77
|
+
customStyle: PropTypes.Requireable<{
|
|
78
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
}>>;
|
|
55
81
|
}>>;
|
|
56
82
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
57
83
|
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -63,7 +89,9 @@ export declare const propTypes: {
|
|
|
63
89
|
hoverColor: PropTypes.Requireable<string>;
|
|
64
90
|
disabled: PropTypes.Requireable<boolean>;
|
|
65
91
|
className: PropTypes.Requireable<string>;
|
|
66
|
-
customStyle: PropTypes.Requireable<
|
|
92
|
+
customStyle: PropTypes.Requireable<{
|
|
93
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
94
|
+
}>;
|
|
67
95
|
}> | PropTypes.InferProps<{
|
|
68
96
|
componentType: PropTypes.Requireable<string>;
|
|
69
97
|
disabled: PropTypes.Requireable<boolean>;
|
|
@@ -75,6 +103,23 @@ export declare const propTypes: {
|
|
|
75
103
|
label: PropTypes.Validator<string>;
|
|
76
104
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
77
105
|
type: PropTypes.Requireable<string>;
|
|
106
|
+
buttonLinkType: PropTypes.Requireable<string>;
|
|
107
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
108
|
+
position: PropTypes.Validator<string>;
|
|
109
|
+
type: PropTypes.Requireable<string>;
|
|
110
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
111
|
+
name: PropTypes.Validator<string>;
|
|
112
|
+
color: PropTypes.Requireable<string>;
|
|
113
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
114
|
+
size: PropTypes.Requireable<number>;
|
|
115
|
+
customStyle: PropTypes.Requireable<{
|
|
116
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
117
|
+
}>;
|
|
118
|
+
}>>;
|
|
119
|
+
}>>;
|
|
120
|
+
customStyle: PropTypes.Requireable<{
|
|
121
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
122
|
+
}>;
|
|
78
123
|
}> | null | undefined)[]>;
|
|
79
124
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
80
125
|
menuButtonClassName: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandible-actionable-table/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,OAAO,EAAC,0BAA0B,EAAC,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAC,KAAK,IAAI,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAC,KAAK,IAAI,oBAAoB,EAAC,MAAM,4BAA4B,CAAC;AA0BzE,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandible-actionable-table/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,OAAO,EAAC,0BAA0B,EAAC,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAC,KAAK,IAAI,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAC,KAAK,IAAI,oBAAoB,EAAC,MAAM,4BAA4B,CAAC;AA0BzE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,EAAE,MAAM,CAAC;IAC/B,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC;AAEF,oBAAY,WAAW,GAAG;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAC,CAAC"}
|
|
@@ -140,7 +140,7 @@ class Filters extends _react.default.Component {
|
|
|
140
140
|
filterGroupAriaLabel: filterGroupAriaLabel
|
|
141
141
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
142
142
|
"data-name": "cta",
|
|
143
|
-
className: _style.default.
|
|
143
|
+
className: _style.default.ctaFilter,
|
|
144
144
|
style: {
|
|
145
145
|
backgroundColor: defaultColor
|
|
146
146
|
},
|
|
@@ -150,7 +150,7 @@ class Filters extends _react.default.Component {
|
|
|
150
150
|
className: sortingActive ? _style.default.activeSorting : _style.default.sorting
|
|
151
151
|
}, sortView, /*#__PURE__*/_react.default.createElement("div", {
|
|
152
152
|
"data-name": "cta",
|
|
153
|
-
className: _style.default.
|
|
153
|
+
className: _style.default.ctaFilter,
|
|
154
154
|
style: {
|
|
155
155
|
backgroundColor: defaultColor
|
|
156
156
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_novaIcons","_select","_provider","_style","_filtersWrapper","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","Filters","React","Component","contextTypes","skin","Provider","childContextTypes","constructor","props","state","filter","openFilters","sorted","openSorts","handleOpenFilter","handleOpenSort","handleSearch","onToggleFilters","newValue","setState","onToggleSorts","onSearch","render","sorting","filterCTALabel","filterTabLabel","sortCTALabel","sortTabLabel","filters","moreFilterAriaLabel","moreSortAriaLabel","filterGroupAriaLabel","sortAriaLabel","context","defaultColor","_get2","darkColor","filtersActive","sortingActive","sortView","undefined","createElement","className","style","select","search","activeDefault","defaultStyle","title","onClick","arrow","NovaCompositionNavigationArrowDown","color","height","activeWrapperSortBy","wrapperSortBy","activeWrapperFilters","wrapperFilters","wrapper","CTAfilter","backgroundColor","activeSorting","propTypes","process","env","NODE_ENV","PropTypes","string","bool","FiltersWrapper","shape","Select","func","_default","exports"],"sources":["../../../src/molecule/filters/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport {NovaCompositionNavigationArrowDown as ArrowDown} from '@coorpacademy/nova-icons';\nimport Select from '../../atom/select';\nimport Provider from '../../atom/provider';\nimport style from './style.css';\nimport FiltersWrapper from './filters-wrapper';\n\nclass Filters extends React.Component {\n static propTypes = {\n filterCTALabel: PropTypes.string,\n filterTabLabel: PropTypes.string,\n sortCTALabel: PropTypes.string,\n sortTabLabel: PropTypes.string,\n openFilters: PropTypes.bool,\n openSorts: PropTypes.bool,\n filters: FiltersWrapper.propTypes.filters,\n sorting: PropTypes.shape(Select.propTypes),\n onSearch: PropTypes.func,\n onToggleFilters: PropTypes.func,\n onToggleSorts: PropTypes.func,\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAriaLabel: PropTypes.string\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props) {\n super(props);\n this.state = {\n filter: !!props.openFilters,\n sorted: !!props.openSorts\n };\n this.handleOpenFilter = this.handleOpenFilter.bind(this);\n this.handleOpenSort = this.handleOpenSort.bind(this);\n this.handleSearch = this.handleSearch.bind(this);\n }\n\n handleOpenFilter() {\n const {filter} = this.state;\n const {onToggleFilters} = this.props;\n\n const newValue = !filter;\n\n this.setState({\n filter: newValue,\n sorted: false\n });\n\n if (onToggleFilters) {\n onToggleFilters(newValue);\n }\n }\n\n handleOpenSort() {\n const {sorted} = this.state;\n const {onToggleSorts} = this.props;\n\n const newValue = !sorted;\n\n this.setState({\n sorted: newValue,\n filter: false\n });\n\n if (onToggleSorts) onToggleSorts(newValue);\n }\n\n handleSearch() {\n const {onSearch} = this.props;\n this.setState({\n sorted: false,\n filter: false\n });\n if (onSearch) onSearch();\n }\n\n render() {\n const {\n sorting,\n filterCTALabel,\n filterTabLabel,\n sortCTALabel,\n sortTabLabel,\n filters,\n moreFilterAriaLabel,\n moreSortAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel\n } = this.props;\n const {filter, sorted} = this.state;\n const {skin} = this.context;\n\n const defaultColor = get('common.primary', skin);\n const darkColor = get('common.dark', skin);\n const filtersActive = filter === true;\n const sortingActive = sorted === true;\n\n const sortView =\n sorting !== undefined ? (\n <div data-name=\"choice\" className={style.select}>\n <Select {...sorting} aria-label={sortAriaLabel} />\n </div>\n ) : null;\n\n return (\n <div data-name=\"search\" className={style.search}>\n <div\n data-name=\"filter\"\n data-open={filtersActive}\n className={filtersActive ? style.activeDefault : style.defaultStyle}\n >\n <div className={style.title} data-name=\"filterButton\" onClick={this.handleOpenFilter}>\n {filterTabLabel}\n <div className={style.arrow}>\n <ArrowDown style={{color: darkColor}} height={14} aria-label={moreFilterAriaLabel} />\n </div>\n </div>\n </div>\n <div\n data-name=\"sortBy\"\n data-open={sortingActive}\n className={sortingActive ? style.activeWrapperSortBy : style.wrapperSortBy}\n >\n <div className={style.title} data-name=\"sortButton\" onClick={this.handleOpenSort}>\n {sortTabLabel}\n <div className={style.arrow}>\n <ArrowDown style={{color: darkColor}} height={14} aria-label={moreSortAriaLabel} />\n </div>\n </div>\n </div>\n <div\n data-name=\"filterWrapper\"\n className={filtersActive ? style.activeWrapperFilters : style.wrapperFilters}\n >\n <FiltersWrapper\n className={style.wrapper}\n filters={filters}\n filterGroupAriaLabel={filterGroupAriaLabel}\n />\n <div\n data-name=\"cta\"\n className={style.CTAfilter}\n style={{\n backgroundColor: defaultColor\n }}\n onClick={this.handleSearch}\n >\n {filterCTALabel}\n </div>\n </div>\n <div\n data-name=\"sortWrapper\"\n className={sortingActive ? style.activeSorting : style.sorting}\n >\n {sortView}\n <div\n data-name=\"cta\"\n className={style.CTAfilter}\n style={{\n backgroundColor: defaultCol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mB,EAAEqC,kBAAS,CAACC,MAAM;EACrCpC,oBAAoB,EAAEmC,kBAAS,CAACC,MAAM;EACtCnC,aAAa,EAAEkC,kBAAS,CAACC;AAC3B,CAAC;AAAA,IAAAM,QAAA,GAAAC,OAAA,CAAAvF,OAAA,GAuJYa,OAAO","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_novaIcons","_select","_provider","_style","_filtersWrapper","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","Filters","React","Component","contextTypes","skin","Provider","childContextTypes","constructor","props","state","filter","openFilters","sorted","openSorts","handleOpenFilter","handleOpenSort","handleSearch","onToggleFilters","newValue","setState","onToggleSorts","onSearch","render","sorting","filterCTALabel","filterTabLabel","sortCTALabel","sortTabLabel","filters","moreFilterAriaLabel","moreSortAriaLabel","filterGroupAriaLabel","sortAriaLabel","context","defaultColor","_get2","darkColor","filtersActive","sortingActive","sortView","undefined","createElement","className","style","select","search","activeDefault","defaultStyle","title","onClick","arrow","NovaCompositionNavigationArrowDown","color","height","activeWrapperSortBy","wrapperSortBy","activeWrapperFilters","wrapperFilters","wrapper","ctaFilter","backgroundColor","activeSorting","propTypes","process","env","NODE_ENV","PropTypes","string","bool","FiltersWrapper","shape","Select","func","_default","exports"],"sources":["../../../src/molecule/filters/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport {NovaCompositionNavigationArrowDown as ArrowDown} from '@coorpacademy/nova-icons';\nimport Select from '../../atom/select';\nimport Provider from '../../atom/provider';\nimport style from './style.css';\nimport FiltersWrapper from './filters-wrapper';\n\nclass Filters extends React.Component {\n static propTypes = {\n filterCTALabel: PropTypes.string,\n filterTabLabel: PropTypes.string,\n sortCTALabel: PropTypes.string,\n sortTabLabel: PropTypes.string,\n openFilters: PropTypes.bool,\n openSorts: PropTypes.bool,\n filters: FiltersWrapper.propTypes.filters,\n sorting: PropTypes.shape(Select.propTypes),\n onSearch: PropTypes.func,\n onToggleFilters: PropTypes.func,\n onToggleSorts: PropTypes.func,\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAriaLabel: PropTypes.string\n };\n\n static contextTypes = {\n skin: Provider.childContextTypes.skin\n };\n\n constructor(props) {\n super(props);\n this.state = {\n filter: !!props.openFilters,\n sorted: !!props.openSorts\n };\n this.handleOpenFilter = this.handleOpenFilter.bind(this);\n this.handleOpenSort = this.handleOpenSort.bind(this);\n this.handleSearch = this.handleSearch.bind(this);\n }\n\n handleOpenFilter() {\n const {filter} = this.state;\n const {onToggleFilters} = this.props;\n\n const newValue = !filter;\n\n this.setState({\n filter: newValue,\n sorted: false\n });\n\n if (onToggleFilters) {\n onToggleFilters(newValue);\n }\n }\n\n handleOpenSort() {\n const {sorted} = this.state;\n const {onToggleSorts} = this.props;\n\n const newValue = !sorted;\n\n this.setState({\n sorted: newValue,\n filter: false\n });\n\n if (onToggleSorts) onToggleSorts(newValue);\n }\n\n handleSearch() {\n const {onSearch} = this.props;\n this.setState({\n sorted: false,\n filter: false\n });\n if (onSearch) onSearch();\n }\n\n render() {\n const {\n sorting,\n filterCTALabel,\n filterTabLabel,\n sortCTALabel,\n sortTabLabel,\n filters,\n moreFilterAriaLabel,\n moreSortAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel\n } = this.props;\n const {filter, sorted} = this.state;\n const {skin} = this.context;\n\n const defaultColor = get('common.primary', skin);\n const darkColor = get('common.dark', skin);\n const filtersActive = filter === true;\n const sortingActive = sorted === true;\n\n const sortView =\n sorting !== undefined ? (\n <div data-name=\"choice\" className={style.select}>\n <Select {...sorting} aria-label={sortAriaLabel} />\n </div>\n ) : null;\n\n return (\n <div data-name=\"search\" className={style.search}>\n <div\n data-name=\"filter\"\n data-open={filtersActive}\n className={filtersActive ? style.activeDefault : style.defaultStyle}\n >\n <div className={style.title} data-name=\"filterButton\" onClick={this.handleOpenFilter}>\n {filterTabLabel}\n <div className={style.arrow}>\n <ArrowDown style={{color: darkColor}} height={14} aria-label={moreFilterAriaLabel} />\n </div>\n </div>\n </div>\n <div\n data-name=\"sortBy\"\n data-open={sortingActive}\n className={sortingActive ? style.activeWrapperSortBy : style.wrapperSortBy}\n >\n <div className={style.title} data-name=\"sortButton\" onClick={this.handleOpenSort}>\n {sortTabLabel}\n <div className={style.arrow}>\n <ArrowDown style={{color: darkColor}} height={14} aria-label={moreSortAriaLabel} />\n </div>\n </div>\n </div>\n <div\n data-name=\"filterWrapper\"\n className={filtersActive ? style.activeWrapperFilters : style.wrapperFilters}\n >\n <FiltersWrapper\n className={style.wrapper}\n filters={filters}\n filterGroupAriaLabel={filterGroupAriaLabel}\n />\n <div\n data-name=\"cta\"\n className={style.ctaFilter}\n style={{\n backgroundColor: defaultColor\n }}\n onClick={this.handleSearch}\n >\n {filterCTALabel}\n </div>\n </div>\n <div\n data-name=\"sortWrapper\"\n className={sortingActive ? style.activeSorting : style.sorting}\n >\n {sortView}\n <div\n data-name=\"cta\"\n className={style.ctaFilter}\n style={{\n backgroundColor: defaultColor\n }}\n onClick={this.handleSearch}\n >\n {sortCTALabel}\n </div>\n </div>\n </div>\n );\n }\n}\n\nexport default Filters;\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,SAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,MAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,eAAA,GAAAP,sBAAA,CAAAC,OAAA;AAA+C,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;A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EAAE,IAAI,CAACjC;IAAa,GAE1BU,YACE,CACF,CACF,CAAC;EAEV;AACF;AAtKM1B,OAAO,CACJ8D,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACjBzC,cAAc,EAAE0C,kBAAS,CAACC,MAAM;EAChC1C,cAAc,EAAEyC,kBAAS,CAACC,MAAM;EAChCzC,YAAY,EAAEwC,kBAAS,CAACC,MAAM;EAC9BxC,YAAY,EAAEuC,kBAAS,CAACC,MAAM;EAC9BxD,WAAW,EAAEuD,kBAAS,CAACE,IAAI;EAC3BvD,SAAS,EAAEqD,kBAAS,CAACE,IAAI;EACzBxC,OAAO,EAAEyC,uBAAc,CAACP,SAAS,CAAClC,OAAO;EACzCL,OAAO,EAAE2C,kBAAS,CAACI,KAAK,CAACC,eAAM,CAACT,SAAS,CAAC;EAC1CzC,QAAQ,EAAE6C,kBAAS,CAACM,IAAI;EACxBvD,eAAe,EAAEiD,kBAAS,CAACM,IAAI;EAC/BpD,aAAa,EAAE8C,kBAAS,CAACM,IAAI;EAC7B1C,iBAAiB,EAAEoC,kBAAS,CAACC,MAAM;EACnCtC,mBAAmB,EAAEqC,kBAAS,CAACC,MAAM;EACrCpC,oBAAoB,EAAEmC,kBAAS,CAACC,MAAM;EACtCnC,aAAa,EAAEkC,kBAAS,CAACC;AAC3B,CAAC;AAAA,IAAAM,QAAA,GAAAC,OAAA,CAAAvF,OAAA,GAuJYa,OAAO","ignoreList":[]}
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
width: 25%;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.
|
|
110
|
+
.ctaFilter {
|
|
111
111
|
composes: hoverFill from '../../atom/button/hover-fill.css';
|
|
112
112
|
display: none;
|
|
113
113
|
}
|
|
@@ -278,10 +278,10 @@
|
|
|
278
278
|
width: 100%;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
.wrapperFilters .
|
|
282
|
-
.sorting .
|
|
283
|
-
.activeWrapperFilters .
|
|
284
|
-
.activeSorting .
|
|
281
|
+
.wrapperFilters .ctaFilter,
|
|
282
|
+
.sorting .ctaFilter,
|
|
283
|
+
.activeWrapperFilters .ctaFilter,
|
|
284
|
+
.activeSorting .ctaFilter {
|
|
285
285
|
display: block;
|
|
286
286
|
width: 100%;
|
|
287
287
|
height: 49px;
|
|
@@ -295,8 +295,8 @@
|
|
|
295
295
|
bottom: 15px;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
.activeWrapperFilters .
|
|
299
|
-
.activeSorting .
|
|
298
|
+
.activeWrapperFilters .ctaFilter::before,
|
|
299
|
+
.activeSorting .ctaFilter::before {
|
|
300
300
|
background-color: rgba(0, 0, 0, 0.2);
|
|
301
301
|
}
|
|
302
302
|
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HeaderWithActionsProps } from './types';
|
|
3
|
+
declare const HeaderWithActions: {
|
|
4
|
+
(props: HeaderWithActionsProps): JSX.Element;
|
|
5
|
+
propTypes: {
|
|
6
|
+
closeButton: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
7
|
+
size: import("prop-types").Validator<string>;
|
|
8
|
+
icon: import("prop-types").Validator<string>;
|
|
9
|
+
'data-name': import("prop-types").Validator<string>;
|
|
10
|
+
'aria-label': import("prop-types").Validator<string>;
|
|
11
|
+
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
12
|
+
}>>;
|
|
13
|
+
title: import("prop-types").Validator<string>;
|
|
14
|
+
tag: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
15
|
+
label: import("prop-types").Validator<string>;
|
|
16
|
+
type: import("prop-types").Validator<string>;
|
|
17
|
+
size: import("prop-types").Validator<string>;
|
|
18
|
+
}>>>;
|
|
19
|
+
saveStatus: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
20
|
+
display: import("prop-types").Validator<boolean>;
|
|
21
|
+
label: import("prop-types").Requireable<string>;
|
|
22
|
+
}>>>;
|
|
23
|
+
bulletPointMenuButton: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
24
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
25
|
+
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
26
|
+
menuAriaLabel: import("prop-types").Requireable<string>;
|
|
27
|
+
buttons: import("prop-types").Validator<(import("prop-types").InferProps<{
|
|
28
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
29
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
30
|
+
label: import("prop-types").Validator<string>;
|
|
31
|
+
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
32
|
+
type: import("prop-types").Requireable<string>;
|
|
33
|
+
buttonLinkType: import("prop-types").Requireable<string>;
|
|
34
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
35
|
+
position: import("prop-types").Validator<string>;
|
|
36
|
+
type: import("prop-types").Requireable<string>;
|
|
37
|
+
faIcon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
38
|
+
name: import("prop-types").Validator<string>;
|
|
39
|
+
color: import("prop-types").Requireable<string>;
|
|
40
|
+
backgroundColor: import("prop-types").Requireable<string>;
|
|
41
|
+
size: import("prop-types").Requireable<number>;
|
|
42
|
+
customStyle: import("prop-types").Requireable<{
|
|
43
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
}>>;
|
|
46
|
+
}>>;
|
|
47
|
+
customStyle: import("prop-types").Requireable<{
|
|
48
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
}> | null | undefined)[]>;
|
|
51
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
52
|
+
menuButtonClassName: import("prop-types").Requireable<string>;
|
|
53
|
+
isBulkMenu: import("prop-types").Requireable<boolean>;
|
|
54
|
+
}>>;
|
|
55
|
+
actionButtons: import("prop-types").Validator<(import("prop-types").InferProps<{
|
|
56
|
+
type: import("prop-types").Requireable<string>;
|
|
57
|
+
usage: import("prop-types").Requireable<string>;
|
|
58
|
+
label: import("prop-types").Requireable<string>;
|
|
59
|
+
content: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
60
|
+
'aria-label': import("prop-types").Requireable<string>;
|
|
61
|
+
tooltipText: import("prop-types").Requireable<string>;
|
|
62
|
+
tooltipPlacement: import("prop-types").Requireable<string>;
|
|
63
|
+
'data-name': import("prop-types").Requireable<string>;
|
|
64
|
+
'data-testid': import("prop-types").Requireable<string>;
|
|
65
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
66
|
+
position: import("prop-types").Validator<string>;
|
|
67
|
+
type: import("prop-types").Requireable<string>;
|
|
68
|
+
faIcon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
69
|
+
name: import("prop-types").Validator<string>;
|
|
70
|
+
color: import("prop-types").Requireable<string>;
|
|
71
|
+
backgroundColor: import("prop-types").Requireable<string>;
|
|
72
|
+
size: import("prop-types").Requireable<number>;
|
|
73
|
+
customStyle: import("prop-types").Requireable<{
|
|
74
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
}>>;
|
|
77
|
+
}>>;
|
|
78
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
79
|
+
link: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
80
|
+
href: import("prop-types").Requireable<string>;
|
|
81
|
+
download: import("prop-types").Requireable<boolean>;
|
|
82
|
+
target: import("prop-types").Requireable<string>;
|
|
83
|
+
}>>;
|
|
84
|
+
hoverBackgroundColor: import("prop-types").Requireable<string>;
|
|
85
|
+
hoverColor: import("prop-types").Requireable<string>;
|
|
86
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
87
|
+
className: import("prop-types").Requireable<string>;
|
|
88
|
+
customStyle: import("prop-types").Requireable<{
|
|
89
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
90
|
+
}>;
|
|
91
|
+
}> | null | undefined)[]>;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export default HeaderWithActions;
|
|
95
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AAQA,OAAmC,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAK3E,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
var _isEmpty = _interopRequireDefault(require("lodash/fp/isEmpty"));
|
|
7
|
+
var _map = _interopRequireDefault(require("lodash/fp/map"));
|
|
8
|
+
var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
|
|
9
|
+
var _buttonLinkIcon = _interopRequireDefault(require("../../atom/button-link-icon"));
|
|
10
|
+
var _tag = _interopRequireDefault(require("../../atom/tag"));
|
|
11
|
+
var _bulletPointMenuButton = _interopRequireDefault(require("../../molecule/bullet-point-menu-button"));
|
|
12
|
+
var _types = _interopRequireDefault(require("./types"));
|
|
13
|
+
var _style = _interopRequireDefault(require("./style.css"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
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 getDataName = suffix => `header-with-actions-${suffix}`;
|
|
17
|
+
const HeaderWithActions = props => {
|
|
18
|
+
const {
|
|
19
|
+
closeButton,
|
|
20
|
+
title,
|
|
21
|
+
tag,
|
|
22
|
+
saveStatus,
|
|
23
|
+
bulletPointMenuButton,
|
|
24
|
+
actionButtons
|
|
25
|
+
} = props;
|
|
26
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
27
|
+
className: _style.default.headerWrapper,
|
|
28
|
+
"data-name": getDataName('wrapper')
|
|
29
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
30
|
+
className: _style.default.titleAndButtonWrapper,
|
|
31
|
+
"data-name": getDataName('title-and-button-wrapper')
|
|
32
|
+
}, /*#__PURE__*/_react.default.createElement(_buttonLinkIcon.default, _extends({}, closeButton, {
|
|
33
|
+
className: _style.default.button
|
|
34
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
35
|
+
className: _style.default.titleWrapper
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
37
|
+
className: _style.default.statusWrapper
|
|
38
|
+
}, /*#__PURE__*/_react.default.createElement(_tag.default, tag), saveStatus.display && saveStatus.label ? /*#__PURE__*/_react.default.createElement("p", {
|
|
39
|
+
className: _style.default.saveStatus
|
|
40
|
+
}, saveStatus.label) : null), /*#__PURE__*/_react.default.createElement("h3", {
|
|
41
|
+
className: _style.default.title,
|
|
42
|
+
"aria-label": title,
|
|
43
|
+
"data-name": getDataName('title')
|
|
44
|
+
}, title))), /*#__PURE__*/_react.default.createElement("div", {
|
|
45
|
+
className: _style.default.buttonsWrapper,
|
|
46
|
+
"data-name": getDataName('buttons-wrapper')
|
|
47
|
+
}, bulletPointMenuButton && !(0, _isEmpty.default)(bulletPointMenuButton.buttons) ? /*#__PURE__*/_react.default.createElement(_bulletPointMenuButton.default, _extends({}, bulletPointMenuButton, {
|
|
48
|
+
buttonAriaLabel: "More actions"
|
|
49
|
+
})) : null, (0, _map.default)(action => /*#__PURE__*/_react.default.createElement(_buttonLink.default, action))(actionButtons)));
|
|
50
|
+
};
|
|
51
|
+
HeaderWithActions.propTypes = process.env.NODE_ENV !== "production" ? _types.default : {};
|
|
52
|
+
var _default = exports.default = HeaderWithActions;
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_isEmpty","_map","_buttonLink","_buttonLinkIcon","_tag","_bulletPointMenuButton","_types","_style","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","getDataName","suffix","HeaderWithActions","props","closeButton","title","tag","saveStatus","bulletPointMenuButton","actionButtons","createElement","className","style","headerWrapper","titleAndButtonWrapper","button","titleWrapper","statusWrapper","display","label","buttonsWrapper","isEmpty","buttons","buttonAriaLabel","map","action","propTypes","process","env","NODE_ENV","headerWithActionsPropTypes","_default","exports"],"sources":["../../../src/organism/header-with-actions/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport map from 'lodash/fp/map';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Tag from '../../atom/tag';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport headerWithActionsPropTypes, {HeaderWithActionsProps} from './types';\nimport style from './style.css';\n\nconst getDataName = (suffix: string) => `header-with-actions-${suffix}`;\n\nconst HeaderWithActions = (props: HeaderWithActionsProps) => {\n const {closeButton, title, tag, saveStatus, bulletPointMenuButton, actionButtons} = props;\n\n return (\n <div className={style.headerWrapper} data-name={getDataName('wrapper')}>\n <div\n className={style.titleAndButtonWrapper}\n data-name={getDataName('title-and-button-wrapper')}\n >\n <ButtonLinkIcon {...closeButton} className={style.button} />\n <div className={style.titleWrapper}>\n <div className={style.statusWrapper}>\n <Tag {...tag} />\n {saveStatus.display && saveStatus.label ? (\n <p className={style.saveStatus}>{saveStatus.label}</p>\n ) : null}\n </div>\n <h3 className={style.title} aria-label={title} data-name={getDataName('title')}>\n {title}\n </h3>\n </div>\n </div>\n <div className={style.buttonsWrapper} data-name={getDataName('buttons-wrapper')}>\n {bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? (\n <BulletPointMenuButton {...bulletPointMenuButton} buttonAriaLabel=\"More actions\" />\n ) : null}\n {map((action: ButtonLinkProps) => <ButtonLink {...action} />)(actionButtons)}\n </div>\n </div>\n );\n};\n\nHeaderWithActions.propTypes = headerWithActionsPropTypes;\n\nexport default HeaderWithActions;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,IAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,eAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,IAAA,GAAAN,sBAAA,CAAAC,OAAA;AAEA,IAAAM,sBAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,MAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,MAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAgC,SAAAD,uBAAAU,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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IC,SAAS,EAAEC,cAAK,CAACP,KAAM;IAAC,cAAYA,KAAM;IAAC,aAAWL,WAAW,CAAC,OAAO;EAAE,GAC5EK,KACC,CACD,CACF,CAAC,eACN/B,MAAA,CAAAa,OAAA,CAAAuB,aAAA;IAAKC,SAAS,EAAEC,cAAK,CAACQ,cAAe;IAAC,aAAWpB,WAAW,CAAC,iBAAiB;EAAE,GAC7EQ,qBAAqB,IAAI,CAAC,IAAAa,gBAAO,EAACb,qBAAqB,CAACc,OAAO,CAAC,gBAC/DhD,MAAA,CAAAa,OAAA,CAAAuB,aAAA,CAAC5B,sBAAA,CAAAK,OAAqB,EAAAC,QAAA,KAAKoB,qBAAqB;IAAEe,eAAe,EAAC;EAAc,EAAE,CAAC,GACjF,IAAI,EACP,IAAAC,YAAG,EAAEC,MAAuB,iBAAKnD,MAAA,CAAAa,OAAA,CAAAuB,aAAA,CAAC/B,WAAA,CAAAQ,OAAU,EAAKsC,MAAS,CAAC,CAAC,CAAChB,aAAa,CACxE,CACF,CAAC;AAEV,CAAC;AAEDP,iBAAiB,CAACwB,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGC,cAA0B;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA7C,OAAA,GAE1Ce,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@value colors: '../../variables/colors.css';
|
|
2
|
+
@value cm_grey_500 from colors;
|
|
3
|
+
@value cm_grey_700 from colors;
|
|
4
|
+
|
|
5
|
+
.headerWrapper {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.titleAndButtonWrapper {
|
|
11
|
+
display: flex;
|
|
12
|
+
gap: 15px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.button {
|
|
16
|
+
background-color: #f4f4f5;
|
|
17
|
+
color: cm_grey_500;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.titleWrapper {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: flex-start;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.statusWrapper {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: 5px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.saveStatus {
|
|
35
|
+
color: cm_grey_500;
|
|
36
|
+
font-family: "Gilroy";
|
|
37
|
+
font-size: 10px;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
line-height: 12px;
|
|
40
|
+
margin: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.title {
|
|
44
|
+
color: cm_grey_700;
|
|
45
|
+
font-family: "Gilroy";
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
font-size: 18px;
|
|
48
|
+
line-height: 24px;
|
|
49
|
+
margin-top: 5px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.buttonsWrapper {
|
|
53
|
+
display: flex;
|
|
54
|
+
gap: 10px;
|
|
55
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import { BulletPointMenuButtonProps } from '../../molecule/bullet-point-menu-button/types';
|
|
3
|
+
import { ButtonLinkProps } from '../../atom/button-link/types';
|
|
4
|
+
declare const headerWithActionsPropTypes: {
|
|
5
|
+
closeButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
+
size: PropTypes.Validator<string>;
|
|
7
|
+
icon: PropTypes.Validator<string>;
|
|
8
|
+
'data-name': PropTypes.Validator<string>;
|
|
9
|
+
'aria-label': PropTypes.Validator<string>;
|
|
10
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
+
}>>;
|
|
12
|
+
title: PropTypes.Validator<string>;
|
|
13
|
+
tag: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
14
|
+
label: PropTypes.Validator<string>;
|
|
15
|
+
type: PropTypes.Validator<string>;
|
|
16
|
+
size: PropTypes.Validator<string>;
|
|
17
|
+
}>>>;
|
|
18
|
+
saveStatus: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
19
|
+
display: PropTypes.Validator<boolean>;
|
|
20
|
+
label: PropTypes.Requireable<string>;
|
|
21
|
+
}>>>;
|
|
22
|
+
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
23
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
24
|
+
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
25
|
+
menuAriaLabel: PropTypes.Requireable<string>;
|
|
26
|
+
buttons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
27
|
+
'data-name': PropTypes.Requireable<string>;
|
|
28
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
29
|
+
label: PropTypes.Validator<string>;
|
|
30
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
31
|
+
type: PropTypes.Requireable<string>;
|
|
32
|
+
buttonLinkType: 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
|
+
color: PropTypes.Requireable<string>;
|
|
39
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
40
|
+
size: PropTypes.Requireable<number>;
|
|
41
|
+
customStyle: PropTypes.Requireable<{
|
|
42
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
}>>;
|
|
45
|
+
}>>;
|
|
46
|
+
customStyle: PropTypes.Requireable<{
|
|
47
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
}> | null | undefined)[]>;
|
|
50
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
51
|
+
menuButtonClassName: PropTypes.Requireable<string>;
|
|
52
|
+
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
53
|
+
}>>;
|
|
54
|
+
actionButtons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
55
|
+
type: PropTypes.Requireable<string>;
|
|
56
|
+
usage: PropTypes.Requireable<string>;
|
|
57
|
+
label: PropTypes.Requireable<string>;
|
|
58
|
+
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
59
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
60
|
+
tooltipText: PropTypes.Requireable<string>;
|
|
61
|
+
tooltipPlacement: PropTypes.Requireable<string>;
|
|
62
|
+
'data-name': PropTypes.Requireable<string>;
|
|
63
|
+
'data-testid': PropTypes.Requireable<string>;
|
|
64
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
65
|
+
position: PropTypes.Validator<string>;
|
|
66
|
+
type: PropTypes.Requireable<string>;
|
|
67
|
+
faIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
68
|
+
name: PropTypes.Validator<string>;
|
|
69
|
+
color: PropTypes.Requireable<string>;
|
|
70
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
71
|
+
size: PropTypes.Requireable<number>;
|
|
72
|
+
customStyle: PropTypes.Requireable<{
|
|
73
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
74
|
+
}>;
|
|
75
|
+
}>>;
|
|
76
|
+
}>>;
|
|
77
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
78
|
+
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
79
|
+
href: PropTypes.Requireable<string>;
|
|
80
|
+
download: PropTypes.Requireable<boolean>;
|
|
81
|
+
target: PropTypes.Requireable<string>;
|
|
82
|
+
}>>;
|
|
83
|
+
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
84
|
+
hoverColor: PropTypes.Requireable<string>;
|
|
85
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
86
|
+
className: PropTypes.Requireable<string>;
|
|
87
|
+
customStyle: PropTypes.Requireable<{
|
|
88
|
+
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
89
|
+
}>;
|
|
90
|
+
}> | null | undefined)[]>;
|
|
91
|
+
};
|
|
92
|
+
export default headerWithActionsPropTypes;
|
|
93
|
+
declare type TagProps = {
|
|
94
|
+
label: 'Published' | 'Ongoing changes' | 'Draft' | 'Archived';
|
|
95
|
+
type: 'success' | 'progress' | 'warning';
|
|
96
|
+
size: string;
|
|
97
|
+
};
|
|
98
|
+
declare type SaveStatusProps = {
|
|
99
|
+
display: boolean;
|
|
100
|
+
label?: 'Unsaved changes' | 'Saved';
|
|
101
|
+
};
|
|
102
|
+
declare type CloseButtonProps = {
|
|
103
|
+
size: 'default' | 'small' | 'responsive';
|
|
104
|
+
icon: string;
|
|
105
|
+
'data-name': string;
|
|
106
|
+
'aria-label': string;
|
|
107
|
+
onClick: () => void;
|
|
108
|
+
};
|
|
109
|
+
export declare type HeaderWithActionsProps = {
|
|
110
|
+
closeButton: CloseButtonProps;
|
|
111
|
+
title: string;
|
|
112
|
+
tag: TagProps;
|
|
113
|
+
saveStatus: SaveStatusProps;
|
|
114
|
+
actionButtons: ButtonLinkProps[];
|
|
115
|
+
bulletPointMenuButton?: BulletPointMenuButtonProps;
|
|
116
|
+
};
|
|
117
|
+
export declare type HeaderWithActionsPropsFixture = {
|
|
118
|
+
props: HeaderWithActionsProps;
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAuC,EACrC,0BAA0B,EAC3B,MAAM,+CAA+C,CAAC;AACvD,OAA4B,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AASlF,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc/B,CAAC;AAEF,eAAe,0BAA0B,CAAC;AAE1C,aAAK,QAAQ,GAAG;IACd,KAAK,EAAE,WAAW,GAAG,iBAAiB,GAAG,OAAO,GAAG,UAAU,CAAC;IAC9D,IAAI,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,aAAK,eAAe,GAAG;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC;CACrC,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,YAAY,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,UAAU,EAAE,eAAe,CAAC;IAC5B,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,qBAAqB,CAAC,EAAE,0BAA0B,CAAC;CACpD,CAAC;AAEF,oBAAY,6BAA6B,GAAG;IAAC,KAAK,EAAE,sBAAsB,CAAA;CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
6
|
+
var _types = _interopRequireDefault(require("../../molecule/bullet-point-menu-button/types"));
|
|
7
|
+
var _types2 = _interopRequireDefault(require("../../atom/button-link/types"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
const closeButtonPropTypes = {
|
|
10
|
+
size: _propTypes.default.oneOf(['default', 'small', 'responsive']).isRequired,
|
|
11
|
+
icon: _propTypes.default.string.isRequired,
|
|
12
|
+
'data-name': _propTypes.default.string.isRequired,
|
|
13
|
+
'aria-label': _propTypes.default.string.isRequired,
|
|
14
|
+
onClick: _propTypes.default.func.isRequired
|
|
15
|
+
};
|
|
16
|
+
const headerWithActionsPropTypes = {
|
|
17
|
+
closeButton: _propTypes.default.shape(closeButtonPropTypes),
|
|
18
|
+
title: _propTypes.default.string.isRequired,
|
|
19
|
+
tag: _propTypes.default.shape({
|
|
20
|
+
label: _propTypes.default.oneOf(['Published', 'Ongoing changes', 'Draft', 'Archived']).isRequired,
|
|
21
|
+
type: _propTypes.default.oneOf(['success', 'progress', 'warning']).isRequired,
|
|
22
|
+
size: _propTypes.default.string.isRequired
|
|
23
|
+
}).isRequired,
|
|
24
|
+
saveStatus: _propTypes.default.shape({
|
|
25
|
+
display: _propTypes.default.bool.isRequired,
|
|
26
|
+
label: _propTypes.default.oneOf(['Unsaved changes', 'Saved'])
|
|
27
|
+
}).isRequired,
|
|
28
|
+
bulletPointMenuButton: _propTypes.default.shape(_types.default),
|
|
29
|
+
actionButtons: _propTypes.default.arrayOf(_propTypes.default.shape(_types2.default)).isRequired
|
|
30
|
+
};
|
|
31
|
+
var _default = exports.default = headerWithActionsPropTypes;
|
|
32
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_types","_types2","e","__esModule","default","closeButtonPropTypes","size","PropTypes","oneOf","isRequired","icon","string","onClick","func","headerWithActionsPropTypes","closeButton","shape","title","tag","label","type","saveStatus","display","bool","bulletPointMenuButton","bulletPointMenuButtonPropTypes","actionButtons","arrayOf","ButtonLinkPropTypes","_default","exports"],"sources":["../../../src/organism/header-with-actions/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport bulletPointMenuButtonPropTypes, {\n BulletPointMenuButtonProps\n} from '../../molecule/bullet-point-menu-button/types';\nimport ButtonLinkPropTypes, {ButtonLinkProps} from '../../atom/button-link/types';\n\nconst closeButtonPropTypes = {\n size: PropTypes.oneOf(['default', 'small', 'responsive']).isRequired,\n icon: PropTypes.string.isRequired,\n 'data-name': PropTypes.string.isRequired,\n 'aria-label': PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n};\nconst headerWithActionsPropTypes = {\n closeButton: PropTypes.shape(closeButtonPropTypes),\n title: PropTypes.string.isRequired,\n tag: PropTypes.shape({\n label: PropTypes.oneOf(['Published', 'Ongoing changes', 'Draft', 'Archived']).isRequired,\n type: PropTypes.oneOf(['success', 'progress', 'warning']).isRequired,\n size: PropTypes.string.isRequired\n }).isRequired,\n saveStatus: PropTypes.shape({\n display: PropTypes.bool.isRequired,\n label: PropTypes.oneOf(['Unsaved changes', 'Saved'])\n }).isRequired,\n bulletPointMenuButton: PropTypes.shape(bulletPointMenuButtonPropTypes),\n actionButtons: PropTypes.arrayOf(PropTypes.shape(ButtonLinkPropTypes)).isRequired\n};\n\nexport default headerWithActionsPropTypes;\n\ntype TagProps = {\n label: 'Published' | 'Ongoing changes' | 'Draft' | 'Archived';\n type: 'success' | 'progress' | 'warning';\n size: string;\n};\n\ntype SaveStatusProps = {\n display: boolean;\n label?: 'Unsaved changes' | 'Saved';\n};\n\ntype CloseButtonProps = {\n size: 'default' | 'small' | 'responsive';\n icon: string;\n 'data-name': string;\n 'aria-label': string;\n onClick: () => void;\n};\n\nexport type HeaderWithActionsProps = {\n closeButton: CloseButtonProps;\n title: string;\n tag: TagProps;\n saveStatus: SaveStatusProps;\n actionButtons: ButtonLinkProps[];\n bulletPointMenuButton?: BulletPointMen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