@innovaccer/design-system 2.22.0 → 2.23.0
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/CHANGELOG.md +42 -1
- package/css/dist/index.css +7 -6
- package/css/dist/index.css.map +1 -1
- package/css/src/components/pageHeader.css +7 -6
- package/dist/.lib/tsconfig.type.tsbuildinfo +22 -5
- package/dist/core/components/atoms/icon/Icon.d.ts +0 -1
- package/dist/core/components/organisms/pageHeader/PageHeader.d.ts +1 -0
- package/dist/core/components/organisms/pageHeader/utils.d.ts +32 -0
- package/dist/index.esm.js +187 -52
- package/dist/index.js +176 -48
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.br +0 -0
- package/dist/index.umd.js.gz +0 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
.PageHeader
|
|
2
|
-
|
|
1
|
+
.PageHeader {
|
|
2
|
+
width: 100%;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
.PageHeader-wrapper
|
|
6
|
-
|
|
5
|
+
.PageHeader-wrapper {
|
|
6
|
+
padding: var(--spacing) var(--spacing-2) var(--spacing) 0;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.PageHeader-wrapper--withTabs {
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
align-items: center;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.PageHeader-statusWrapper .
|
|
39
|
+
.PageHeader-statusWrapper .StatusHint {
|
|
40
40
|
margin-right: var(--spacing);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.PageHeader-navigationWrapper {
|
|
44
|
-
margin-top: var(--spacing-
|
|
44
|
+
margin-top: var(--spacing-m);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.PageHeader .PageHeader-navigationWrapper {
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
margin-top: 0 !important;
|
|
51
51
|
padding-right: var(--spacing);
|
|
52
52
|
padding-left: var(--spacing);
|
|
53
|
+
display: flex;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
.PageHeader-title {
|
|
@@ -422,8 +422,8 @@
|
|
|
422
422
|
"affectsGlobalScope": false
|
|
423
423
|
},
|
|
424
424
|
"../../core/components/atoms/icon/Icon.tsx": {
|
|
425
|
-
"version": "
|
|
426
|
-
"signature": "
|
|
425
|
+
"version": "76fab90ff6fdc52fe80a963ffec364e1500af3152fc0aa82cc84ca233c818cde",
|
|
426
|
+
"signature": "13c7197912e4415f8e45669697f035b60956612e8dde3f1141f305805fb2b45d",
|
|
427
427
|
"affectsGlobalScope": false
|
|
428
428
|
},
|
|
429
429
|
"../../core/components/atoms/icon/index.tsx": {
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
"affectsGlobalScope": false
|
|
598
598
|
},
|
|
599
599
|
"../../core/components/atoms/dropdown/Dropdown.tsx": {
|
|
600
|
-
"version": "
|
|
600
|
+
"version": "afd814b303ff51113e809897d567e0c7ac77c61bcd46c0f942d3414bcdc35759",
|
|
601
601
|
"signature": "c171f1203f6dc27aa75553acd55d26d8a6d9ed99c4c7ab6b457e52f29fcfbc1e",
|
|
602
602
|
"affectsGlobalScope": false
|
|
603
603
|
},
|
|
@@ -1456,9 +1456,14 @@
|
|
|
1456
1456
|
"signature": "d0f06c76368a1badc37a1f9cfa3bf079912bd2f14c193a0973d577a929abd3c4",
|
|
1457
1457
|
"affectsGlobalScope": false
|
|
1458
1458
|
},
|
|
1459
|
+
"../../core/components/organisms/pageHeader/utils.tsx": {
|
|
1460
|
+
"version": "ecfded64fc18f71ca83c058d49cc1b76f35175f01122c3bbfaa142ebcc35fcc4",
|
|
1461
|
+
"signature": "8b4bdadb0f1ea118ef924e8207dad0215ad1b4f3786232ec4ead75898273006f",
|
|
1462
|
+
"affectsGlobalScope": false
|
|
1463
|
+
},
|
|
1459
1464
|
"../../core/components/organisms/pageHeader/PageHeader.tsx": {
|
|
1460
|
-
"version": "
|
|
1461
|
-
"signature": "
|
|
1465
|
+
"version": "033d112f5e98dc0ef59834efca4baa83a27de9b3982c417883822811d01fdfa1",
|
|
1466
|
+
"signature": "6795b787c8157cfbfe4f2859ac05ada02c45e15878294b23fe94bd43e2d60b9f",
|
|
1462
1467
|
"affectsGlobalScope": false
|
|
1463
1468
|
},
|
|
1464
1469
|
"../../core/components/organisms/pageHeader/index.tsx": {
|
|
@@ -4655,6 +4660,9 @@
|
|
|
4655
4660
|
"*",
|
|
4656
4661
|
"*",
|
|
4657
4662
|
"*",
|
|
4663
|
+
"*",
|
|
4664
|
+
"*",
|
|
4665
|
+
"*",
|
|
4658
4666
|
"*"
|
|
4659
4667
|
]
|
|
4660
4668
|
},
|
|
@@ -6245,6 +6253,7 @@
|
|
|
6245
6253
|
"../../node_modules/@types/node/util.d.ts"
|
|
6246
6254
|
],
|
|
6247
6255
|
"../../core/components/organisms/pageHeader/PageHeader.tsx": [
|
|
6256
|
+
"../../core/components/organisms/pageHeader/utils.tsx",
|
|
6248
6257
|
"../../core/index.tsx",
|
|
6249
6258
|
"../../core/utils/types.tsx",
|
|
6250
6259
|
"../../node_modules/@types/node/util.d.ts",
|
|
@@ -6255,6 +6264,13 @@
|
|
|
6255
6264
|
"../../core/components/organisms/pageHeader/PageHeader.tsx",
|
|
6256
6265
|
"../../node_modules/@types/node/util.d.ts"
|
|
6257
6266
|
],
|
|
6267
|
+
"../../core/components/organisms/pageHeader/utils.tsx": [
|
|
6268
|
+
"../../core/components/organisms/pageHeader/PageHeader.tsx",
|
|
6269
|
+
"../../core/index.tsx",
|
|
6270
|
+
"../../node_modules/@types/node/util.d.ts",
|
|
6271
|
+
"../../node_modules/@types/react/index.d.ts",
|
|
6272
|
+
"../../node_modules/classnames/index.d.ts"
|
|
6273
|
+
],
|
|
6258
6274
|
"../../core/components/organisms/table/DraggableDropdown.tsx": [
|
|
6259
6275
|
"../../core/components/organisms/grid/utility.tsx",
|
|
6260
6276
|
"../../core/index.tsx",
|
|
@@ -11956,6 +11972,7 @@
|
|
|
11956
11972
|
"../../core/components/organisms/navigation/index.tsx",
|
|
11957
11973
|
"../../core/components/organisms/pageHeader/PageHeader.tsx",
|
|
11958
11974
|
"../../core/components/organisms/pageHeader/index.tsx",
|
|
11975
|
+
"../../core/components/organisms/pageHeader/utils.tsx",
|
|
11959
11976
|
"../../core/components/organisms/table/DraggableDropdown.tsx",
|
|
11960
11977
|
"../../core/components/organisms/table/Header.tsx",
|
|
11961
11978
|
"../../core/components/organisms/table/Table.tsx",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { navigationPositionType } from "./PageHeader";
|
|
3
|
+
export declare const Status: (props: {
|
|
4
|
+
status: React.ReactNode;
|
|
5
|
+
meta: React.ReactNode;
|
|
6
|
+
navigationPosition: navigationPositionType;
|
|
7
|
+
navigation: React.ReactNode;
|
|
8
|
+
tabs: React.ReactNode;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export declare const Action: (props: {
|
|
11
|
+
actions: React.ReactNode;
|
|
12
|
+
navigation: React.ReactNode;
|
|
13
|
+
stepper: React.ReactNode;
|
|
14
|
+
}) => JSX.Element;
|
|
15
|
+
export declare const Nav: (props: {
|
|
16
|
+
navigation: React.ReactNode;
|
|
17
|
+
stepper: React.ReactNode;
|
|
18
|
+
}) => JSX.Element | null;
|
|
19
|
+
export declare const CenterNav: (props: {
|
|
20
|
+
colSize: string;
|
|
21
|
+
breadcrumbs: React.ReactNode;
|
|
22
|
+
navigationPosition: navigationPositionType;
|
|
23
|
+
navigation: React.ReactNode;
|
|
24
|
+
stepper: React.ReactNode;
|
|
25
|
+
}) => JSX.Element;
|
|
26
|
+
export declare const BackButton: (props: {
|
|
27
|
+
button: React.ReactNode;
|
|
28
|
+
}) => JSX.Element;
|
|
29
|
+
export declare const Title: (props: {
|
|
30
|
+
badge: React.ReactNode;
|
|
31
|
+
title: string;
|
|
32
|
+
}) => JSX.Element;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* Generated on:
|
|
3
|
+
* Generated on: 1697533162404
|
|
4
4
|
* Package: @innovaccer/design-system
|
|
5
|
-
* Version: v2.
|
|
5
|
+
* Version: v2.23.0
|
|
6
6
|
* License: MIT
|
|
7
7
|
* Docs: https://innovaccer.github.io/design-system
|
|
8
8
|
*/
|
|
@@ -2716,6 +2716,45 @@ var useAccessibilityProps = function useAccessibilityProps(_ref) {
|
|
|
2716
2716
|
});
|
|
2717
2717
|
};
|
|
2718
2718
|
|
|
2719
|
+
var iconTypeMapper = {
|
|
2720
|
+
timelapse: 'outlined',
|
|
2721
|
+
content_copy: 'outlined',
|
|
2722
|
+
speed: 'outlined',
|
|
2723
|
+
add_circle_outline: 'outlined',
|
|
2724
|
+
turned_in_not: 'outlined',
|
|
2725
|
+
important_devices: 'outlined',
|
|
2726
|
+
thumb_down_off_alt: 'outlined',
|
|
2727
|
+
alarm_on: 'outlined',
|
|
2728
|
+
calendar_view_month: 'outlined',
|
|
2729
|
+
aspect_ratio: 'outlined',
|
|
2730
|
+
change_history: 'outlined',
|
|
2731
|
+
arrow_circle_down: 'outlined',
|
|
2732
|
+
card_membership: 'outlined',
|
|
2733
|
+
query_builder: 'outlined',
|
|
2734
|
+
copyright: 'outlined',
|
|
2735
|
+
arrow_circle_up: 'outlined',
|
|
2736
|
+
alarm: 'outlined',
|
|
2737
|
+
work_outline: 'outlined',
|
|
2738
|
+
bookmark_border: 'outlined',
|
|
2739
|
+
delete_outline: 'outlined',
|
|
2740
|
+
credit_card: 'outlined',
|
|
2741
|
+
highlight_of: 'outlined',
|
|
2742
|
+
check_circle_outline: 'outlined',
|
|
2743
|
+
help_outline: 'outlined',
|
|
2744
|
+
schedule: 'outlined',
|
|
2745
|
+
radio_button_unchecked: 'outlined',
|
|
2746
|
+
radio_button_checked: 'outlined',
|
|
2747
|
+
"delete": 'outlined'
|
|
2748
|
+
};
|
|
2749
|
+
/**
|
|
2750
|
+
*
|
|
2751
|
+
* <pre class="DocPage-codeBlock mx-6 mb-7">
|
|
2752
|
+
* Following Icons are mapped to **outlined** type by default:
|
|
2753
|
+
* <br />
|
|
2754
|
+
* timelapse, content_copy, speed, add_circle_outline, turned_in_not, important_devices, thumb_down_off_alt, alarm_on, calendar_view_month, aspect_ratio, change_history, arrow_circle_down, card_membership, query_builder, copyright, arrow_circle_up, alarm, work_outline, bookmark_border, delete_outline, credit_card, highlight_of, check_circle_outline, help_outline, schedule, radio_button_unchecked, radio_button_checked, delete
|
|
2755
|
+
* </pre>
|
|
2756
|
+
*/
|
|
2757
|
+
|
|
2719
2758
|
var Icon = function Icon(props) {
|
|
2720
2759
|
var _classNames;
|
|
2721
2760
|
|
|
@@ -2733,7 +2772,7 @@ var Icon = function Icon(props) {
|
|
|
2733
2772
|
filled: 'rounded',
|
|
2734
2773
|
'two-tone': 'rounded'
|
|
2735
2774
|
};
|
|
2736
|
-
var type = props.type && mapper[props.type] || props.type;
|
|
2775
|
+
var type = props.type && mapper[props.type] || props.type || name && iconTypeMapper[name] || 'rounded';
|
|
2737
2776
|
|
|
2738
2777
|
var getIconAppearance = function getIconAppearance(iconColor) {
|
|
2739
2778
|
var x = iconColor.indexOf('_');
|
|
@@ -2762,8 +2801,7 @@ var Icon = function Icon(props) {
|
|
|
2762
2801
|
};
|
|
2763
2802
|
Icon.displayName = 'Icon';
|
|
2764
2803
|
Icon.defaultProps = {
|
|
2765
|
-
size: 16
|
|
2766
|
-
type: 'rounded'
|
|
2804
|
+
size: 16
|
|
2767
2805
|
};
|
|
2768
2806
|
|
|
2769
2807
|
var _excluded$A = ["children", "componentType", "className"];
|
|
@@ -5624,7 +5662,7 @@ var inputRef = /*#__PURE__*/React.createRef();
|
|
|
5624
5662
|
* const errorMessages = {
|
|
5625
5663
|
* 'FAILED\_TO\_FETCH': 'Failed to fetch data',
|
|
5626
5664
|
* 'NO\_RECORDS\_FOUND': 'No results found',
|
|
5627
|
-
* 'DEFAULT': 'No
|
|
5665
|
+
* 'DEFAULT': 'No record available'
|
|
5628
5666
|
* }
|
|
5629
5667
|
* return(
|
|
5630
5668
|
* \<Heading>{errorMessages[errorType]}\</Heading>
|
|
@@ -5737,8 +5775,18 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
5737
5775
|
|
|
5738
5776
|
var disabledOptions = _this.getDisabledOptions(unSelectedGroup.slice(0, _this.staticLimit));
|
|
5739
5777
|
|
|
5778
|
+
var errorResult = errorType;
|
|
5779
|
+
|
|
5780
|
+
if (optionsLength === 0 && searchTerm === '') {
|
|
5781
|
+
errorResult = 'DEFAULT';
|
|
5782
|
+
} else if (searchTerm !== '') {
|
|
5783
|
+
errorResult = 'NO_RECORDS_FOUND';
|
|
5784
|
+
} else {
|
|
5785
|
+
errorResult = 'FAILED_TO_FETCH';
|
|
5786
|
+
}
|
|
5787
|
+
|
|
5740
5788
|
_this.setState(_objectSpread2(_objectSpread2({}, _this.state), {}, {
|
|
5741
|
-
errorType: fetchOptions
|
|
5789
|
+
errorType: fetchOptions ? errorResult : errorType,
|
|
5742
5790
|
scrollIndex: res.scrollToIndex || 0,
|
|
5743
5791
|
optionsLength: optionsLength,
|
|
5744
5792
|
loading: false,
|
|
@@ -5754,6 +5802,11 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
5754
5802
|
|
|
5755
5803
|
if (updatedAsync || withSearch) (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
5756
5804
|
}
|
|
5805
|
+
})["catch"](function () {
|
|
5806
|
+
_this.setState({
|
|
5807
|
+
errorType: fetchOptions ? 'FAILED_TO_FETCH' : errorType,
|
|
5808
|
+
loading: false
|
|
5809
|
+
});
|
|
5757
5810
|
});
|
|
5758
5811
|
});
|
|
5759
5812
|
|
|
@@ -15589,7 +15642,7 @@ Collapsible.defaultProps = {
|
|
|
15589
15642
|
withTrigger: true
|
|
15590
15643
|
};
|
|
15591
15644
|
|
|
15592
|
-
var Status = function Status(props) {
|
|
15645
|
+
var Status$1 = function Status(props) {
|
|
15593
15646
|
var type = props.type,
|
|
15594
15647
|
time = props.time,
|
|
15595
15648
|
className = props.className,
|
|
@@ -15684,7 +15737,7 @@ var Status = function Status(props) {
|
|
|
15684
15737
|
return null;
|
|
15685
15738
|
}
|
|
15686
15739
|
};
|
|
15687
|
-
Status.displayName = 'Status';
|
|
15740
|
+
Status$1.displayName = 'Status';
|
|
15688
15741
|
|
|
15689
15742
|
var Box = function Box(props) {
|
|
15690
15743
|
var _classNames;
|
|
@@ -15765,7 +15818,7 @@ var ChatMessage = function ChatMessage(props) {
|
|
|
15765
15818
|
typingText: typingText,
|
|
15766
15819
|
isTyping: isTyping,
|
|
15767
15820
|
statusType: statusType
|
|
15768
|
-
}), !isTyping && statusOptions && /*#__PURE__*/React.createElement(Status, statusOptions));
|
|
15821
|
+
}), !isTyping && statusOptions && /*#__PURE__*/React.createElement(Status$1, statusOptions));
|
|
15769
15822
|
};
|
|
15770
15823
|
ChatMessage.displayName = 'ChatMessage';
|
|
15771
15824
|
|
|
@@ -21312,9 +21365,84 @@ Navigation.defaultProps = {
|
|
|
21312
21365
|
rounded: false
|
|
21313
21366
|
};
|
|
21314
21367
|
|
|
21315
|
-
var
|
|
21316
|
-
var
|
|
21368
|
+
var Status = function Status(props) {
|
|
21369
|
+
var status = props.status,
|
|
21370
|
+
meta = props.meta,
|
|
21371
|
+
navigationPosition = props.navigationPosition,
|
|
21372
|
+
navigation = props.navigation,
|
|
21373
|
+
tabs = props.tabs;
|
|
21374
|
+
var statusClasses = classnames({
|
|
21375
|
+
'PageHeader-statusWrapper': true,
|
|
21376
|
+
'mb-3': navigationPosition === 'bottom' && navigation || tabs
|
|
21377
|
+
});
|
|
21378
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, (status || meta) && /*#__PURE__*/React.createElement("div", {
|
|
21379
|
+
className: statusClasses,
|
|
21380
|
+
"data-test": "DesignSystem-PageHeader--Status"
|
|
21381
|
+
}, status, meta));
|
|
21382
|
+
};
|
|
21383
|
+
var Action = function Action(props) {
|
|
21384
|
+
var actions = props.actions,
|
|
21385
|
+
navigation = props.navigation,
|
|
21386
|
+
stepper = props.stepper;
|
|
21387
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, actions ? /*#__PURE__*/React.createElement(Column, {
|
|
21388
|
+
size: "4",
|
|
21389
|
+
sizeXL: "4",
|
|
21390
|
+
sizeM: "4",
|
|
21391
|
+
"data-test": "DesignSystem-PageHeader--Actions"
|
|
21392
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
21393
|
+
className: "PageHeader-actionsWrapper"
|
|
21394
|
+
}, actions)) : (navigation || stepper) && /*#__PURE__*/React.createElement(Column, {
|
|
21395
|
+
size: "4",
|
|
21396
|
+
sizeXL: "4",
|
|
21397
|
+
sizeM: "4",
|
|
21398
|
+
"data-test": "DesignSystem-PageHeader--Actions"
|
|
21399
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
21400
|
+
className: "PageHeader-actionsWrapper"
|
|
21401
|
+
})));
|
|
21402
|
+
};
|
|
21403
|
+
var Nav = function Nav(props) {
|
|
21404
|
+
var navigation = props.navigation,
|
|
21405
|
+
stepper = props.stepper;
|
|
21406
|
+
|
|
21407
|
+
if (!navigation && !stepper) {
|
|
21408
|
+
return null;
|
|
21409
|
+
}
|
|
21317
21410
|
|
|
21411
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
21412
|
+
className: "PageHeader-navigationWrapper",
|
|
21413
|
+
"data-test": "DesignSystem-PageHeader--Nav"
|
|
21414
|
+
}, navigation || stepper);
|
|
21415
|
+
};
|
|
21416
|
+
var CenterNav = function CenterNav(props) {
|
|
21417
|
+
var colSize = props.colSize,
|
|
21418
|
+
breadcrumbs = props.breadcrumbs,
|
|
21419
|
+
navigationPosition = props.navigationPosition;
|
|
21420
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, (!breadcrumbs || navigationPosition === 'center') && colSize === '4' && /*#__PURE__*/React.createElement(Column, {
|
|
21421
|
+
size: "4",
|
|
21422
|
+
sizeXL: "4",
|
|
21423
|
+
sizeM: "4",
|
|
21424
|
+
"data-test": "DesignSystem-PageHeader--CenterNav"
|
|
21425
|
+
}, /*#__PURE__*/React.createElement(Nav, props)));
|
|
21426
|
+
};
|
|
21427
|
+
var BackButton = function BackButton(props) {
|
|
21428
|
+
var button = props.button;
|
|
21429
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, button && /*#__PURE__*/React.createElement("div", {
|
|
21430
|
+
className: "mr-5 my-3",
|
|
21431
|
+
"data-test": "DesignSystem-PageHeader--Button"
|
|
21432
|
+
}, button));
|
|
21433
|
+
};
|
|
21434
|
+
var Title = function Title(props) {
|
|
21435
|
+
var badge = props.badge,
|
|
21436
|
+
title = props.title;
|
|
21437
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
21438
|
+
className: "PageHeader-titleWrapper",
|
|
21439
|
+
"data-test": "DesignSystem-PageHeader--Title"
|
|
21440
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
21441
|
+
className: "PageHeader-title"
|
|
21442
|
+
}, title), badge);
|
|
21443
|
+
};
|
|
21444
|
+
|
|
21445
|
+
var PageHeader = function PageHeader(props) {
|
|
21318
21446
|
var title = props.title,
|
|
21319
21447
|
navigation = props.navigation,
|
|
21320
21448
|
stepper = props.stepper,
|
|
@@ -21326,57 +21454,64 @@ var PageHeader = function PageHeader(props) {
|
|
|
21326
21454
|
status = props.status,
|
|
21327
21455
|
meta = props.meta,
|
|
21328
21456
|
navigationPosition = props.navigationPosition,
|
|
21329
|
-
className = props.className
|
|
21457
|
+
className = props.className,
|
|
21458
|
+
button = props.button;
|
|
21330
21459
|
var baseProps = extractBaseProps(props);
|
|
21331
|
-
var wrapperClasses = classnames((
|
|
21460
|
+
var wrapperClasses = classnames(_defineProperty$1({
|
|
21332
21461
|
'PageHeader-wrapper': true
|
|
21333
|
-
},
|
|
21462
|
+
}, 'PageHeader-wrapper--withTabs', tabs), className);
|
|
21334
21463
|
var classes = classnames({
|
|
21335
21464
|
PageHeader: true
|
|
21336
21465
|
});
|
|
21337
|
-
|
|
21338
|
-
var renderNav = function renderNav() {
|
|
21339
|
-
if (!navigation && !stepper) {
|
|
21340
|
-
return null;
|
|
21341
|
-
}
|
|
21342
|
-
|
|
21343
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
21344
|
-
className: "PageHeader-navigationWrapper"
|
|
21345
|
-
}, navigation || stepper);
|
|
21346
|
-
};
|
|
21347
|
-
|
|
21348
21466
|
var colSize = (navigation || stepper) && navigationPosition === 'center' ? '4' : actions ? '8' : '12';
|
|
21349
|
-
|
|
21467
|
+
var centerNavProps = {
|
|
21468
|
+
colSize: colSize,
|
|
21469
|
+
breadcrumbs: breadcrumbs,
|
|
21470
|
+
navigationPosition: navigationPosition,
|
|
21471
|
+
navigation: navigation,
|
|
21472
|
+
stepper: stepper
|
|
21473
|
+
};
|
|
21474
|
+
var statusProps = {
|
|
21475
|
+
status: status,
|
|
21476
|
+
meta: meta,
|
|
21477
|
+
navigationPosition: navigationPosition,
|
|
21478
|
+
navigation: navigation,
|
|
21479
|
+
tabs: tabs
|
|
21480
|
+
};
|
|
21481
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
21482
|
+
"data-test": "DesignSystem-PageHeader"
|
|
21483
|
+
}, /*#__PURE__*/React.createElement("div", _extends$2({}, baseProps, {
|
|
21350
21484
|
className: wrapperClasses
|
|
21351
|
-
}), breadcrumbs
|
|
21485
|
+
}), breadcrumbs && /*#__PURE__*/React.createElement("div", {
|
|
21486
|
+
className: "pl-6",
|
|
21487
|
+
"data-test": "DesignSystem-PageHeader--Breadcrumbs"
|
|
21488
|
+
}, breadcrumbs), /*#__PURE__*/React.createElement("div", {
|
|
21489
|
+
className: "d-flex pl-6"
|
|
21490
|
+
}, /*#__PURE__*/React.createElement(BackButton, {
|
|
21491
|
+
button: button
|
|
21492
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
21352
21493
|
className: classes
|
|
21353
21494
|
}, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Column, {
|
|
21354
21495
|
size: colSize,
|
|
21355
21496
|
sizeXL: colSize,
|
|
21356
21497
|
sizeM: colSize
|
|
21357
|
-
}, /*#__PURE__*/React.createElement(
|
|
21358
|
-
|
|
21359
|
-
|
|
21360
|
-
|
|
21361
|
-
|
|
21362
|
-
|
|
21363
|
-
|
|
21364
|
-
|
|
21365
|
-
|
|
21366
|
-
|
|
21367
|
-
|
|
21368
|
-
|
|
21369
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21370
|
-
|
|
21371
|
-
},
|
|
21372
|
-
|
|
21373
|
-
|
|
21374
|
-
sizeM: "4"
|
|
21375
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21376
|
-
className: "PageHeader-actionsWrapper"
|
|
21377
|
-
})))), (status || meta) && /*#__PURE__*/React.createElement("div", {
|
|
21378
|
-
className: "PageHeader-statusWrapper"
|
|
21379
|
-
}, status, meta), breadcrumbs && navigationPosition === 'bottom' && renderNav(), tabs && /*#__PURE__*/React.createElement("div", null, tabs));
|
|
21498
|
+
}, /*#__PURE__*/React.createElement(Title, {
|
|
21499
|
+
badge: badge,
|
|
21500
|
+
title: title
|
|
21501
|
+
})), /*#__PURE__*/React.createElement(CenterNav, centerNavProps), /*#__PURE__*/React.createElement(Action, {
|
|
21502
|
+
actions: actions,
|
|
21503
|
+
navigation: navigation,
|
|
21504
|
+
stepper: stepper
|
|
21505
|
+
})), /*#__PURE__*/React.createElement(Status, statusProps))), /*#__PURE__*/React.createElement("div", {
|
|
21506
|
+
className: "pl-3"
|
|
21507
|
+
}, navigationPosition === 'bottom' && /*#__PURE__*/React.createElement(Nav, {
|
|
21508
|
+
navigation: navigation,
|
|
21509
|
+
stepper: stepper
|
|
21510
|
+
}), tabs && /*#__PURE__*/React.createElement("div", {
|
|
21511
|
+
"data-test": "DesignSystem-PageHeader--Tabs"
|
|
21512
|
+
}, tabs))), separator && /*#__PURE__*/React.createElement(Divider, {
|
|
21513
|
+
appearance: "header"
|
|
21514
|
+
}));
|
|
21380
21515
|
};
|
|
21381
21516
|
PageHeader.defaultProps = {
|
|
21382
21517
|
navigationPosition: 'center',
|
|
@@ -22159,6 +22294,6 @@ SelectionCard.defaultProps = {
|
|
|
22159
22294
|
SelectionCard.useMultiSelect = useMultiSelect;
|
|
22160
22295
|
SelectionCard.useSingleSelect = useSingleSelect;
|
|
22161
22296
|
|
|
22162
|
-
var version = "2.
|
|
22297
|
+
var version = "2.23.0";
|
|
22163
22298
|
|
|
22164
22299
|
export { ActionCard, Avatar, AvatarGroup, Backdrop, Badge, Breadcrumbs, Button, Calendar, Caption, Card, CardBody, CardFooter, CardHeader, CardSubdued, ChatMessage, Checkbox, Chip, ChipGroup, ChipInput, ChoiceList, Collapsible, Column, DatePicker, DateRangePicker, Dialog, Divider, Dropdown, Dropzone, EditableChipInput, EditableDropdown, EditableInput, EmptyState, FileList, FileUploader, FileUploaderList, FullscreenModal, Grid, GridCell, Heading, HelpText, HorizontalNav, Icon, InlineMessage, Input, X as InputMask, Label, Legend, Link, LinkButton, List, Message, MetaList, MetricInput, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, MultiSlider, Navigation, OutsideClick, PageHeader, Pagination, Paragraph, Pills, Placeholder, PlaceholderImage, PlaceholderParagraph, Popover, ProgressBar, ProgressRing, Radio, RangeSlider, Row, SelectionCard, Sidesheet, Slider, Spinner, StatusHint, Stepper, Subheading, Switch, Tab, Table, Tabs, TabsWrapper, Text, Textarea, TimePicker, Toast, Tooltip, index as Utils, VerificationCodeInput, VerticalNav, version };
|