@salesforce/design-system-react 0.10.38 → 0.10.42
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/components/combobox/__docs__/__snapshots__/storybook-stories.storyshot +178 -169
- package/components/combobox/__tests__/combobox.browser-test.jsx +4 -5
- package/components/combobox/combobox.d.ts +11 -11
- package/components/combobox/combobox.jsx +20 -18
- package/components/date-picker/__tests__/__snapshots__/datepicker.dom-snapshot-test.jsx.snap +17 -17
- package/components/expression/__docs__/__snapshots__/storybook-stories.storyshot +90 -90
- package/components/global-header/__docs__/__snapshots__/storybook-stories.storyshot +9 -9
- package/components/menu-dropdown/menu-dropdown.jsx +5 -8
- package/components/portal-settings/__docs__/__snapshots__/storybook-stories.storyshot +6 -6
- package/components/setup-assistant.d.ts +1 -1
- package/icons/standard/account_info.js +5 -0
- package/icons/standard/asset_audit.js +5 -0
- package/icons/standard/asset_warranty.js +1 -1
- package/icons/standard/attach.js +5 -0
- package/icons/standard/budget.js +5 -0
- package/icons/standard/budget_allocation.js +5 -0
- package/icons/standard/change_request.js +5 -0
- package/icons/standard/code_set.js +5 -0
- package/icons/standard/code_set_bundle.js +5 -0
- package/icons/standard/contract_payment.js +5 -0
- package/icons/standard/coupon_codes.js +5 -0
- package/icons/standard/discounts.js +5 -0
- package/icons/standard/field_sales.js +5 -0
- package/icons/standard/filter_criteria_rule.js +5 -0
- package/icons/standard/historical_adherence.js +5 -0
- package/icons/standard/identifier.js +5 -0
- package/icons/standard/incident.js +5 -0
- package/icons/standard/index.js +43 -7
- package/icons/standard/med_rec_recommendation.js +5 -0
- package/icons/standard/med_rec_statement_recommendation.js +5 -0
- package/icons/standard/medication.js +5 -0
- package/icons/standard/medication_dispense.js +5 -0
- package/icons/standard/medication_reconciliation.js +5 -0
- package/icons/standard/medication_statement.js +5 -0
- package/icons/standard/network_contract.js +5 -0
- package/icons/standard/patient_medication_dosage.js +5 -0
- package/icons/standard/person_language.js +5 -0
- package/icons/standard/person_name.js +5 -0
- package/icons/standard/problem.js +5 -0
- package/icons/standard/product_consumed_state.js +5 -0
- package/icons/standard/product_transfer.js +1 -1
- package/icons/standard/product_transfer_state.js +5 -0
- package/icons/standard/promotion_segments.js +5 -0
- package/icons/standard/promotions_workspace.js +5 -0
- package/icons/standard/qualifications.js +5 -0
- package/icons/standard/report_type.js +5 -0
- package/icons/standard/serialized_product.js +1 -1
- package/icons/standard/serialized_product_transaction.js +1 -1
- package/icons/standard/story.js +1 -1
- package/icons/standard/tour.js +5 -0
- package/icons/standard/tour_check.js +5 -0
- package/icons/standard/travel_mode.js +1 -1
- package/icons/standard/unified_health_score.js +5 -0
- package/icons/standard/workforce_engagement.js +5 -0
- package/icons/utility/asset_audit.js +5 -0
- package/icons/utility/asset_warranty.js +1 -1
- package/icons/utility/block_visitor.js +1 -1
- package/icons/utility/bookmark_alt.js +5 -0
- package/icons/utility/change_request.js +5 -0
- package/icons/utility/collection_alt.js +5 -0
- package/icons/utility/contract_doc.js +5 -0
- package/icons/utility/contract_payment.js +5 -0
- package/icons/utility/coupon_codes.js +5 -0
- package/icons/utility/discounts.js +5 -0
- package/icons/utility/einstein.js +1 -1
- package/icons/utility/entitlement.js +5 -0
- package/icons/utility/field_sales.js +5 -0
- package/icons/utility/incident.js +5 -0
- package/icons/utility/index.js +37 -8
- package/icons/utility/layout_banner.js +5 -0
- package/icons/utility/layout_card.js +5 -0
- package/icons/utility/layout_overlap.js +5 -0
- package/icons/utility/layout_tile.js +5 -0
- package/icons/utility/light_bulb.js +1 -1
- package/icons/utility/problem.js +5 -0
- package/icons/utility/product_consumed_state.js +5 -0
- package/icons/utility/product_transfer.js +5 -0
- package/icons/utility/product_transfer_state.js +5 -0
- package/icons/utility/promotion_segments.js +5 -0
- package/icons/utility/promotions.js +1 -1
- package/icons/utility/promotions_workspace.js +5 -0
- package/icons/utility/qualifications.js +5 -0
- package/icons/utility/reminder.js +1 -1
- package/icons/utility/scan.js +5 -0
- package/icons/utility/search.js +1 -1
- package/icons/utility/shopping_bag.js +1 -1
- package/icons/utility/signature.js +5 -0
- package/icons/utility/spacer.js +5 -0
- package/icons/utility/tour.js +5 -0
- package/icons/utility/tour_check.js +5 -0
- package/icons/utility/truck.js +5 -0
- package/icons/utility/workforce_engagement.js +5 -0
- package/lib/components/combobox/__docs__/__snapshots__/storybook-stories.storyshot +178 -169
- package/lib/components/combobox/__tests__/combobox.browser-test.jsx +4 -5
- package/lib/components/combobox/combobox.d.ts +11 -11
- package/lib/components/combobox/combobox.js +27 -23
- package/lib/components/date-picker/__tests__/__snapshots__/datepicker.dom-snapshot-test.jsx.snap +17 -17
- package/lib/components/expression/__docs__/__snapshots__/storybook-stories.storyshot +90 -90
- package/lib/components/global-header/__docs__/__snapshots__/storybook-stories.storyshot +9 -9
- package/lib/components/menu-dropdown/menu-dropdown.js +3 -5
- package/lib/components/portal-settings/__docs__/__snapshots__/storybook-stories.storyshot +6 -6
- package/lib/components/setup-assistant.d.ts +1 -1
- package/lib/icons/standard/account_info.js +20 -0
- package/lib/icons/standard/asset_audit.js +18 -0
- package/lib/icons/standard/asset_warranty.js +2 -1
- package/lib/icons/standard/attach.js +18 -0
- package/lib/icons/standard/budget.js +18 -0
- package/lib/icons/standard/budget_allocation.js +31 -0
- package/lib/icons/standard/change_request.js +18 -0
- package/lib/icons/standard/code_set.js +20 -0
- package/lib/icons/standard/code_set_bundle.js +20 -0
- package/lib/icons/standard/contract_payment.js +28 -0
- package/lib/icons/standard/coupon_codes.js +18 -0
- package/lib/icons/standard/discounts.js +22 -0
- package/lib/icons/standard/field_sales.js +20 -0
- package/lib/icons/standard/filter_criteria_rule.js +18 -0
- package/lib/icons/standard/historical_adherence.js +22 -0
- package/lib/icons/standard/identifier.js +18 -0
- package/lib/icons/standard/incident.js +27 -0
- package/lib/icons/standard/index.js +366 -28
- package/lib/icons/standard/med_rec_recommendation.js +20 -0
- package/lib/icons/standard/med_rec_statement_recommendation.js +18 -0
- package/lib/icons/standard/medication.js +33 -0
- package/lib/icons/standard/medication_dispense.js +35 -0
- package/lib/icons/standard/medication_reconciliation.js +18 -0
- package/lib/icons/standard/medication_statement.js +18 -0
- package/lib/icons/standard/network_contract.js +22 -0
- package/lib/icons/standard/patient_medication_dosage.js +20 -0
- package/lib/icons/standard/person_language.js +20 -0
- package/lib/icons/standard/person_name.js +19 -0
- package/lib/icons/standard/problem.js +18 -0
- package/lib/icons/standard/product_consumed_state.js +19 -0
- package/lib/icons/standard/product_transfer.js +2 -1
- package/lib/icons/standard/product_transfer_state.js +19 -0
- package/lib/icons/standard/promotion_segments.js +22 -0
- package/lib/icons/standard/promotions_workspace.js +23 -0
- package/lib/icons/standard/qualifications.js +22 -0
- package/lib/icons/standard/report_type.js +24 -0
- package/lib/icons/standard/serialized_product.js +1 -1
- package/lib/icons/standard/serialized_product_transaction.js +5 -3
- package/lib/icons/standard/story.js +9 -14
- package/lib/icons/standard/tour.js +25 -0
- package/lib/icons/standard/tour_check.js +20 -0
- package/lib/icons/standard/travel_mode.js +2 -2
- package/lib/icons/standard/unified_health_score.js +18 -0
- package/lib/icons/standard/workforce_engagement.js +20 -0
- package/lib/icons/utility/asset_audit.js +31 -0
- package/lib/icons/utility/asset_warranty.js +2 -1
- package/lib/icons/utility/block_visitor.js +2 -4
- package/lib/icons/utility/bookmark_alt.js +18 -0
- package/lib/icons/utility/change_request.js +18 -0
- package/lib/icons/utility/collection_alt.js +26 -0
- package/lib/icons/utility/contract_doc.js +20 -0
- package/lib/icons/utility/contract_payment.js +28 -0
- package/lib/icons/utility/coupon_codes.js +18 -0
- package/lib/icons/utility/discounts.js +22 -0
- package/lib/icons/utility/einstein.js +7 -1
- package/lib/icons/utility/entitlement.js +18 -0
- package/lib/icons/utility/field_sales.js +20 -0
- package/lib/icons/utility/incident.js +27 -0
- package/lib/icons/utility/index.js +290 -19
- package/lib/icons/utility/layout_banner.js +19 -0
- package/lib/icons/utility/layout_card.js +19 -0
- package/lib/icons/utility/layout_overlap.js +19 -0
- package/lib/icons/utility/layout_tile.js +19 -0
- package/lib/icons/utility/light_bulb.js +1 -0
- package/lib/icons/utility/problem.js +18 -0
- package/lib/icons/utility/product_consumed_state.js +19 -0
- package/lib/icons/utility/product_transfer.js +19 -0
- package/lib/icons/utility/product_transfer_state.js +19 -0
- package/lib/icons/utility/promotion_segments.js +22 -0
- package/lib/icons/utility/promotions.js +2 -2
- package/lib/icons/utility/promotions_workspace.js +23 -0
- package/lib/icons/utility/qualifications.js +22 -0
- package/lib/icons/utility/reminder.js +3 -5
- package/lib/icons/utility/scan.js +18 -0
- package/lib/icons/utility/search.js +1 -1
- package/lib/icons/utility/shopping_bag.js +3 -5
- package/lib/icons/utility/signature.js +22 -0
- package/lib/icons/utility/spacer.js +19 -0
- package/lib/icons/utility/tour.js +25 -0
- package/lib/icons/utility/tour_check.js +20 -0
- package/lib/icons/utility/truck.js +29 -0
- package/lib/icons/utility/workforce_engagement.js +20 -0
- package/lib/package.json +1 -1
- package/module/components/combobox/__docs__/__snapshots__/storybook-stories.storyshot +178 -169
- package/module/components/combobox/__tests__/combobox.browser-test.js +5 -6
- package/module/components/combobox/__tests__/combobox.browser-test.js.map +1 -1
- package/module/components/combobox/combobox.d.ts +11 -11
- package/module/components/combobox/combobox.js +27 -23
- package/module/components/combobox/combobox.js.map +1 -1
- package/module/components/date-picker/__tests__/__snapshots__/datepicker.dom-snapshot-test.jsx.snap +17 -17
- package/module/components/expression/__docs__/__snapshots__/storybook-stories.storyshot +90 -90
- package/module/components/global-header/__docs__/__snapshots__/storybook-stories.storyshot +9 -9
- package/module/components/menu-dropdown/menu-dropdown.js +3 -5
- package/module/components/menu-dropdown/menu-dropdown.js.map +1 -1
- package/module/components/portal-settings/__docs__/__snapshots__/storybook-stories.storyshot +6 -6
- package/module/components/setup-assistant.d.ts +1 -1
- package/module/icons/standard/account_info.js +12 -0
- package/module/icons/standard/asset_audit.js +10 -0
- package/module/icons/standard/asset_warranty.js +2 -1
- package/module/icons/standard/attach.js +10 -0
- package/module/icons/standard/budget.js +10 -0
- package/module/icons/standard/budget_allocation.js +23 -0
- package/module/icons/standard/change_request.js +10 -0
- package/module/icons/standard/code_set.js +12 -0
- package/module/icons/standard/code_set_bundle.js +12 -0
- package/module/icons/standard/contract_payment.js +20 -0
- package/module/icons/standard/coupon_codes.js +10 -0
- package/module/icons/standard/discounts.js +14 -0
- package/module/icons/standard/field_sales.js +12 -0
- package/module/icons/standard/filter_criteria_rule.js +10 -0
- package/module/icons/standard/historical_adherence.js +14 -0
- package/module/icons/standard/identifier.js +10 -0
- package/module/icons/standard/incident.js +19 -0
- package/module/icons/standard/index.js +366 -28
- package/module/icons/standard/med_rec_recommendation.js +12 -0
- package/module/icons/standard/med_rec_statement_recommendation.js +10 -0
- package/module/icons/standard/medication.js +25 -0
- package/module/icons/standard/medication_dispense.js +27 -0
- package/module/icons/standard/medication_reconciliation.js +10 -0
- package/module/icons/standard/medication_statement.js +10 -0
- package/module/icons/standard/network_contract.js +14 -0
- package/module/icons/standard/patient_medication_dosage.js +12 -0
- package/module/icons/standard/person_language.js +12 -0
- package/module/icons/standard/person_name.js +11 -0
- package/module/icons/standard/problem.js +10 -0
- package/module/icons/standard/product_consumed_state.js +11 -0
- package/module/icons/standard/product_transfer.js +2 -1
- package/module/icons/standard/product_transfer_state.js +11 -0
- package/module/icons/standard/promotion_segments.js +14 -0
- package/module/icons/standard/promotions_workspace.js +15 -0
- package/module/icons/standard/qualifications.js +14 -0
- package/module/icons/standard/report_type.js +16 -0
- package/module/icons/standard/serialized_product.js +1 -1
- package/module/icons/standard/serialized_product_transaction.js +5 -3
- package/module/icons/standard/story.js +9 -14
- package/module/icons/standard/tour.js +17 -0
- package/module/icons/standard/tour_check.js +12 -0
- package/module/icons/standard/travel_mode.js +2 -2
- package/module/icons/standard/unified_health_score.js +10 -0
- package/module/icons/standard/workforce_engagement.js +12 -0
- package/module/icons/utility/asset_audit.js +23 -0
- package/module/icons/utility/asset_warranty.js +2 -1
- package/module/icons/utility/block_visitor.js +2 -4
- package/module/icons/utility/bookmark_alt.js +10 -0
- package/module/icons/utility/change_request.js +10 -0
- package/module/icons/utility/collection_alt.js +18 -0
- package/module/icons/utility/contract_doc.js +12 -0
- package/module/icons/utility/contract_payment.js +20 -0
- package/module/icons/utility/coupon_codes.js +10 -0
- package/module/icons/utility/discounts.js +14 -0
- package/module/icons/utility/einstein.js +7 -1
- package/module/icons/utility/entitlement.js +10 -0
- package/module/icons/utility/field_sales.js +12 -0
- package/module/icons/utility/incident.js +19 -0
- package/module/icons/utility/index.js +290 -19
- package/module/icons/utility/layout_banner.js +11 -0
- package/module/icons/utility/layout_card.js +11 -0
- package/module/icons/utility/layout_overlap.js +11 -0
- package/module/icons/utility/layout_tile.js +11 -0
- package/module/icons/utility/light_bulb.js +1 -0
- package/module/icons/utility/problem.js +10 -0
- package/module/icons/utility/product_consumed_state.js +11 -0
- package/module/icons/utility/product_transfer.js +11 -0
- package/module/icons/utility/product_transfer_state.js +11 -0
- package/module/icons/utility/promotion_segments.js +14 -0
- package/module/icons/utility/promotions.js +2 -2
- package/module/icons/utility/promotions_workspace.js +15 -0
- package/module/icons/utility/qualifications.js +14 -0
- package/module/icons/utility/reminder.js +3 -5
- package/module/icons/utility/scan.js +10 -0
- package/module/icons/utility/search.js +1 -1
- package/module/icons/utility/shopping_bag.js +3 -5
- package/module/icons/utility/signature.js +14 -0
- package/module/icons/utility/spacer.js +11 -0
- package/module/icons/utility/tour.js +17 -0
- package/module/icons/utility/tour_check.js +12 -0
- package/module/icons/utility/truck.js +21 -0
- package/module/icons/utility/workforce_engagement.js +12 -0
- package/package.json +1 -1
- package/design-system-react-components.js +0 -63079
- package/design-system-react-components.js.map +0 -1
- package/design-system-react-components.min.js +0 -3
- package/design-system-react-components.min.js.LICENSE.txt +0 -83
- package/design-system-react-components.min.js.map +0 -1
- package/design-system-react.js +0 -73864
- package/design-system-react.js.map +0 -1
- package/design-system-react.min.js +0 -3
- package/design-system-react.min.js.LICENSE.txt +0 -83
- package/design-system-react.min.js.map +0 -1
- package/lib/design-system-react-components.min.js.LICENSE.txt +0 -83
- package/lib/design-system-react.min.js.LICENSE.txt +0 -83
|
@@ -55,6 +55,8 @@ exports[`DOM snapshots SLDSGlobalHeader Doc site Default 1`] = `
|
|
|
55
55
|
className="slds-combobox_container"
|
|
56
56
|
>
|
|
57
57
|
<div
|
|
58
|
+
aria-expanded={false}
|
|
59
|
+
aria-haspopup="listbox"
|
|
58
60
|
className="slds-combobox slds-dropdown-trigger slds-dropdown-trigger_click ignore-react-onclickoutside"
|
|
59
61
|
role="combobox"
|
|
60
62
|
>
|
|
@@ -65,8 +67,6 @@ exports[`DOM snapshots SLDSGlobalHeader Doc site Default 1`] = `
|
|
|
65
67
|
<input
|
|
66
68
|
aria-activedescendant={null}
|
|
67
69
|
aria-autocomplete="list"
|
|
68
|
-
aria-expanded={false}
|
|
69
|
-
aria-haspopup="listbox"
|
|
70
70
|
autoComplete="off"
|
|
71
71
|
className="slds-input slds-combobox__input"
|
|
72
72
|
id="header-search-custom-id"
|
|
@@ -78,7 +78,7 @@ exports[`DOM snapshots SLDSGlobalHeader Doc site Default 1`] = `
|
|
|
78
78
|
placeholder="Search Salesforce"
|
|
79
79
|
readOnly={false}
|
|
80
80
|
required={false}
|
|
81
|
-
role="
|
|
81
|
+
role="textbox"
|
|
82
82
|
type="text"
|
|
83
83
|
/>
|
|
84
84
|
<svg
|
|
@@ -547,6 +547,8 @@ exports[`DOM snapshots SLDSGlobalHeader Search + Navigation 1`] = `
|
|
|
547
547
|
className="slds-combobox_container"
|
|
548
548
|
>
|
|
549
549
|
<div
|
|
550
|
+
aria-expanded={false}
|
|
551
|
+
aria-haspopup="listbox"
|
|
550
552
|
className="slds-combobox slds-dropdown-trigger slds-dropdown-trigger_click ignore-react-onclickoutside"
|
|
551
553
|
role="combobox"
|
|
552
554
|
>
|
|
@@ -557,8 +559,6 @@ exports[`DOM snapshots SLDSGlobalHeader Search + Navigation 1`] = `
|
|
|
557
559
|
<input
|
|
558
560
|
aria-activedescendant={null}
|
|
559
561
|
aria-autocomplete="list"
|
|
560
|
-
aria-expanded={false}
|
|
561
|
-
aria-haspopup="listbox"
|
|
562
562
|
autoComplete="off"
|
|
563
563
|
className="slds-input slds-combobox__input"
|
|
564
564
|
id="header-search-custom-id"
|
|
@@ -570,7 +570,7 @@ exports[`DOM snapshots SLDSGlobalHeader Search + Navigation 1`] = `
|
|
|
570
570
|
placeholder="Search Salesforce"
|
|
571
571
|
readOnly={false}
|
|
572
572
|
required={false}
|
|
573
|
-
role="
|
|
573
|
+
role="textbox"
|
|
574
574
|
type="text"
|
|
575
575
|
/>
|
|
576
576
|
<svg
|
|
@@ -930,6 +930,8 @@ exports[`DOM snapshots SLDSGlobalHeader With custom <Avatar/> 1`] = `
|
|
|
930
930
|
className="slds-combobox_container"
|
|
931
931
|
>
|
|
932
932
|
<div
|
|
933
|
+
aria-expanded={false}
|
|
934
|
+
aria-haspopup="listbox"
|
|
933
935
|
className="slds-combobox slds-dropdown-trigger slds-dropdown-trigger_click ignore-react-onclickoutside"
|
|
934
936
|
role="combobox"
|
|
935
937
|
>
|
|
@@ -940,8 +942,6 @@ exports[`DOM snapshots SLDSGlobalHeader With custom <Avatar/> 1`] = `
|
|
|
940
942
|
<input
|
|
941
943
|
aria-activedescendant={null}
|
|
942
944
|
aria-autocomplete="list"
|
|
943
|
-
aria-expanded={false}
|
|
944
|
-
aria-haspopup="listbox"
|
|
945
945
|
autoComplete="off"
|
|
946
946
|
className="slds-input slds-combobox__input"
|
|
947
947
|
id="header-search-custom-id"
|
|
@@ -953,7 +953,7 @@ exports[`DOM snapshots SLDSGlobalHeader With custom <Avatar/> 1`] = `
|
|
|
953
953
|
placeholder="Search Salesforce"
|
|
954
954
|
readOnly={false}
|
|
955
955
|
required={false}
|
|
956
|
-
role="
|
|
956
|
+
role="textbox"
|
|
957
957
|
type="text"
|
|
958
958
|
/>
|
|
959
959
|
<svg
|
|
@@ -725,11 +725,11 @@ var MenuDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
725
725
|
|
|
726
726
|
_defineProperty(_assertThisInitialized(_this), "handleKeyDown", function (event) {
|
|
727
727
|
if (event.keyCode) {
|
|
728
|
-
if (event.keyCode === KEYS.
|
|
728
|
+
if (event.keyCode === KEYS.TAB) {
|
|
729
|
+
_this.handleCancel();
|
|
730
|
+
} else if (event.keyCode === KEYS.ENTER || event.keyCode === KEYS.SPACE || event.keyCode === KEYS.DOWN || event.keyCode === KEYS.UP || event.keyCode === KEYS.ESCAPE) {
|
|
729
731
|
EventUtil.trap(event);
|
|
730
|
-
}
|
|
731
732
|
|
|
732
|
-
if (event.keyCode !== KEYS.TAB) {
|
|
733
733
|
var isOpen = _this.getIsOpen();
|
|
734
734
|
|
|
735
735
|
_this.handleKeyboardNavigate({
|
|
@@ -741,8 +741,6 @@ var MenuDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
741
741
|
target: event.target,
|
|
742
742
|
toggleOpen: _this.toggleOpen
|
|
743
743
|
});
|
|
744
|
-
} else {
|
|
745
|
-
_this.handleCancel();
|
|
746
744
|
}
|
|
747
745
|
|
|
748
746
|
if (_this.props.onKeyDown) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../.tmp-es/components/menu-dropdown/menu-dropdown.jsx"],"names":["React","PropTypes","ReactDOM","requiredIf","classNames","isFunction","isEqual","shortid","Dialog","List","ListItem","ListItemLabel","DefaultTrigger","checkProps","componentDoc","EventUtil","KeyBuffer","keyboardNavigate","KEYS","MENU_DROPDOWN","MENU_DROPDOWN_TRIGGER","LIST","IconSettingsContext","documentDefined","document","overlay","createElement","style","top","left","width","height","position","currentOpenDropdown","DropdownNubbinPositions","noop","itemIsSelectable","item","type","disabled","getNavigableItems","items","navigableItems","indexes","keyBuffer","Array","isArray","forEach","index","push","text","label","toLowerCase","getMenu","componentRef","findDOMNode","querySelector","getMenuItem","menuItemId","context","menuItem","getElementById","DropdownToDialogNubbinMapping","bottom","propTypes","align","oneOf","assistiveText","object","buttonClassName","oneOfType","array","string","buttonInverse","bool","buttonVariant","checkmark","children","node","className","containerClassName","hasStaticAlignment","hint","hoverCloseDelay","number","iconCategory","props","iconName","iconPosition","iconVariant","iconSize","id","inverse","isOpen","listItemRenderer","func","length","menuPosition","menuStyle","nubbinPosition","onBlur","onClick","onFocus","openOn","onKeyDown","onMouseDown","onMouseEnter","onMouseLeave","onSelect","onOpen","onClose","options","tabIndex","value","tooltip","tooltipMenuItem","triggerClassName","multiple","defaultProps","MenuDropdown","generatedId","state","foundIndex","some","element","undefined","menuId","getId","isHover","isUnmounting","trigger","focus","list","listItems","nextProps","values","currentIndices","filter","getIndexByValue","map","selectedIndices","selectedIndex","triggerRendered","setState","requestFocus","onRequestFocus","triggerContainer","listItem","focusedIndex","handleKeyboardFocus","getIsOpen","handleClose","event","handleOpenForHover","clearTimeout","isClosing","setTimeout","handleCloseForHover","handleOpen","setFocus","indexOf","concat","deselectIndex","currentSelected","splice","option","getValueByIndex","optionIndex","keyCode","ENTER","SPACE","DOWN","UP","trap","TAB","handleKeyboardNavigate","key","handleSelect","target","toggleOpen","handleCancel","componentContext","currentFocusedIndex","menu","getListItemId","focusMenuItem","scrollToMenuItem","getElementsByTagName","menuHeight","offsetHeight","menuTop","scrollTop","menuItemTop","offsetTop","menuBottom","menuItemBottom","customListProps","saveRefToListItem","getListItemRenderer","saveRefToList","customContent","customContentWithListPropInjection","Children","child","displayName","renderDefaultMenuContent","clonedCustomContent","cloneElement","handleClickCustomContent","generate","outsideClickIgnoreClass","hasNubbin","positionClassName","positions","split","isInline","menuStylesBase","transform","inheritTargetWidth","offset","handleKeyDown","renderMenuContent","appendChild","parentNode","removeChild","currentSelectedIndices","getCurrentSelectedIndices","prevProps","nextState","renderOverlay","CurrentTrigger","CustomTriggerChildProps","renderDialog","handleClick","handleFocus","handleMouseEnter","handleMouseLeave","saveRefToTriggerContainer","saveRefToTrigger","Component","contextType"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;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G,KAAKoI,gBADR,GAEG,IA/BL;AAiCC,QAAA,YAAY,EACX,KAAKrJ,KAAL,CAAWiB,MAAX,KAAsB,OAAtB,IAAiC,KAAKjB,KAAL,CAAWiB,MAAX,KAAsB,QAAvD,GACG,KAAKqI,gBADR,GAEG,IApCL;AAsCC,QAAA,MAAM,EAAE,KAAKtJ,KAAL,CAAWiB,MAtCpB;AAuCC,QAAA,GAAG,EAAE,KAAKsI,yBAvCX;AAwCC,QAAA,KAAK,EAAE,KAAKvJ,KAAL,CAAW3D,KAxCnB;AAyCC,QAAA,QAAQ,EAAE,KAAK2D,KAAL,CAAW0B,QAAX,KAAwBnB,MAAM,GAAG,IAAH,GAAU,GAAxC,CAzCX;AA0CC,QAAA,OAAO,EAAE,KAAKP,KAAL,CAAW4B,OA1CrB;AA2CC,QAAA,gBAAgB,EAAE,KAAK5B,KAAL,CAAW8B,gBA3C9B;AA4CC,QAAA,UAAU,EAAE,KAAK0H,gBA5ClB;AA6CC,QAAA,OAAO,EAAE,KAAKxJ,KAAL,CAAWX;AA7CrB,SA8CK4J,uBA9CL,EADD;AAkDA;;;;EA9pByBvO,KAAK,CAAC+O,S;;gBAA3BxH,Y,iBACgBpG,a;;AAgqBtBoG,YAAY,CAACyH,WAAb,GAA2B1N,mBAA3B;AACAiG,YAAY,CAACvD,SAAb,GAAyBA,SAAzB;AACAuD,YAAY,CAACD,YAAb,GAA4BA,YAA5B;AAEA,eAAeC,YAAf;AACA,SAAS7G,QAAT,EAAmBC,aAAnB,EAAkCuB,uBAAlC","sourcesContent":["/* eslint-disable max-lines */\n/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// Implements the [Dropdown design pattern](https://www.lightningdesignsystem.com/components/menus/#flavor-dropdown) in React. Child elements that do not have the display name of the value of `MENU_DROPDOWN_TRIGGER` in `components/constants.js` will be considered custom content and rendered in the popover.\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport ReactDOM from 'react-dom';\nimport requiredIf from 'react-required-if';\n\nimport classNames from 'classnames';\n\n// ### isFunction\nimport isFunction from 'lodash.isfunction';\nimport isEqual from 'lodash.isequal';\n\nimport shortid from 'shortid';\n\n// ### Children\nimport Dialog from '../utilities/dialog';\nimport List from '../utilities/menu-list';\nimport ListItem from '../utilities/menu-list/item';\nimport ListItemLabel from '../utilities/menu-list/item-label';\n\n// This is the the default Dropdown Trigger, which expects one button as a child.\nimport DefaultTrigger from './button-trigger';\n\n// This component's `checkProps` which issues warnings to developers about properties\n// when in development mode (similar to React's built in development tools)\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\n\nimport EventUtil from '../../utilities/event';\nimport KeyBuffer from '../../utilities/key-buffer';\nimport keyboardNavigate from '../../utilities/keyboard-navigate';\nimport KEYS from '../../utilities/key-code';\nimport {\n\tMENU_DROPDOWN,\n\tMENU_DROPDOWN_TRIGGER,\n\tLIST,\n} from '../../utilities/constants';\nimport { IconSettingsContext } from '../icon-settings';\n\nconst documentDefined = typeof document !== 'undefined';\n\n// The overlay is an optional way to allow the dropdown to close on outside\n// clicks even when those clicks are over areas that wouldn't normally fire\n// click or touch events (for example, iframes). A single overlay is shared\n// between all dropdowns in the app.\nconst overlay = documentDefined\n\t? document.createElement('span')\n\t: { style: {} };\noverlay.style.top = 0;\noverlay.style.left = 0;\noverlay.style.width = '100%';\noverlay.style.height = '100%';\noverlay.style.position = 'absolute';\n\nlet currentOpenDropdown;\n\nconst DropdownNubbinPositions = [\n\t'top left',\n\t'top',\n\t'top right',\n\t'bottom left',\n\t'bottom',\n\t'bottom right',\n];\n\n// # Keyboard Navigable mixin\n\nconst noop = () => {};\n\nconst itemIsSelectable = (item) =>\n\titem.type !== 'header' && item.type !== 'divider' && !item.disabled;\n\nconst getNavigableItems = (items) => {\n\tconst navigableItems = [];\n\tnavigableItems.indexes = [];\n\tnavigableItems.keyBuffer = new KeyBuffer();\n\n\tif (Array.isArray(items)) {\n\t\titems.forEach((item, index) => {\n\t\t\tif (itemIsSelectable(item)) {\n\t\t\t\t// eslint-disable-next-line fp/no-mutating-methods\n\t\t\t\tnavigableItems.push({\n\t\t\t\t\tindex,\n\t\t\t\t\ttext: `${item.label}`.toLowerCase(),\n\t\t\t\t});\n\n\t\t\t\t// eslint-disable-next-line fp/no-mutating-methods\n\t\t\t\tnavigableItems.indexes.push(index);\n\t\t\t}\n\t\t});\n\t}\n\n\treturn navigableItems;\n};\n\nfunction getMenu(componentRef) {\n\treturn ReactDOM.findDOMNode(componentRef).querySelector('ul.dropdown__list'); // eslint-disable-line react/no-find-dom-node\n}\n\nfunction getMenuItem(menuItemId, context = document) {\n\tlet menuItem;\n\n\tif (menuItemId) {\n\t\tmenuItem = context.getElementById(menuItemId);\n\t}\n\n\treturn menuItem;\n}\n\n/*\n * Dropdowns with nubbins have a different API from other Dialogs\n *\n * Dialog receives an alignment position and whether it has a nubbin. The nubbin position is inferred from the align.\n * Dropdowns have a nubbinPosition which dictates the align, but in an inverse fashion which then gets inversed back by the Dialog.\n *\n * Since Dialog is the future API and we don't want to break backwards compatability, we currently map to the Dialog api here. Even if Dialog will map it again.\n * TODO - deprecate nubbinPosition in favor for additional `align` values and a flag to show a nubbin.\n */\nconst DropdownToDialogNubbinMapping = {\n\ttop: 'bottom',\n\t'top left': 'bottom left',\n\t'top right': 'bottom right',\n\n\tbottom: 'top',\n\t'bottom left': 'top left',\n\t'bottom right': 'top right',\n};\n\nconst propTypes = {\n\t/**\n\t * Aligns the menu center, right, or left respective to the trigger. This is not intended for use with `nubbinPosition`.\n\t */\n\talign: PropTypes.oneOf(['center', 'left', 'right']),\n\t/**\n\t * This prop is passed onto the triggering `Button`. Text that is visually hidden but read aloud by screenreaders to tell the user what the icon means. You can omit this prop if you are using the `label` prop.\n\t */\n\tassistiveText: PropTypes.object,\n\t/**\n\t * CSS classes to be added to triggering button.\n\t */\n\tbuttonClassName: PropTypes.oneOfType([\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t\tPropTypes.string,\n\t]),\n\t/**\n\t * If true, button/icon is white. Meant for buttons or utility icons on dark backgrounds.\n\t */\n\tbuttonInverse: PropTypes.bool,\n\t/**\n\t * This prop is passed onto the triggering `Button`. Determines variant of the Button component that triggers dropdown.\n\t */\n\tbuttonVariant: PropTypes.oneOf([\n\t\t'base',\n\t\t'neutral',\n\t\t'brand',\n\t\t'destructive',\n\t\t'icon',\n\t]),\n\t/**\n\t * If true, renders checkmark icon on the selected Menu Item.\n\t */\n\tcheckmark: PropTypes.bool,\n\t/**\n\t * If you need custom content _and_ a list, use a `<Popover>` instead.\n\t */\n\tchildren: PropTypes.node,\n\t/**\n\t * CSS classes to be added to dropdown menu.\n\t */\n\tclassName: PropTypes.oneOfType([\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t\tPropTypes.string,\n\t]),\n\t/**\n\t * By default, these class names will be added to the absolutely-positioned `Dialog` component.\n\t */\n\tcontainerClassName: PropTypes.oneOfType([\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t\tPropTypes.string,\n\t]),\n\t/**\n\t * This prop is passed onto the triggering `Button`. Prevent dropdown menu from opening. Also applies disabled styling to trigger button.\n\t */\n\tdisabled: PropTypes.bool,\n\t/**\n\t * Prevents the dropdown from changing position based on the viewport/window. If set to true your dropdowns can extend outside the viewport _and_ overflow outside of a scrolling parent. If this happens, you might want to consider making the dropdowns contents scrollable to fit the menu on the screen. `hasStaticAlignment` disables this behavior and allows this component to extend beyond boundary elements. _Not tested._\n\t */\n\thasStaticAlignment: PropTypes.bool,\n\t/**\n\t * This prop is passed onto the triggering `Button`. Associates an icon button with another element on the page by changes the color of the SVG. Please reference <a href=\"http://www.lightningdesignsystem.com/components/buttons/#hint\">Lightning Design System Buttons > Hint</a>.\n\t */\n\thint: PropTypes.bool,\n\t/**\n\t * Delay on menu closing in milliseconds.\n\t */\n\thoverCloseDelay: PropTypes.number,\n\t/**\n\t * Name of the icon category. Visit <a href=\"http://www.lightningdesignsystem.com/resources/icons\">Lightning Design System Icons</a> to reference icon categories.\n\t */\n\ticonCategory: requiredIf(\n\t\tPropTypes.oneOf(['action', 'custom', 'doctype', 'standard', 'utility']),\n\t\t(props) => !!props.iconName\n\t),\n\t/**\n\t * Name of the icon. Visit <a href=\"http://www.lightningdesignsystem.com/resources/icons\">Lightning Design System Icons</a> to reference icon names.\n\t */\n\ticonName: PropTypes.string,\n\t/**\n\t * If omitted, icon position is centered.\n\t */\n\ticonPosition: PropTypes.oneOf(['left', 'right']),\n\t/**\n\t * For icon variants, please reference <a href=\"http://www.lightningdesignsystem.com/components/buttons/#icon\">Lightning Design System Icons</a>.\n\t */\n\ticonVariant: PropTypes.oneOf([\n\t\t'bare',\n\t\t'container',\n\t\t'border',\n\t\t'border-filled',\n\t\t'small',\n\t\t'more',\n\t]),\n\t/**\n\t * Determines the size of the icon.\n\t */\n\ticonSize: PropTypes.oneOf(['x-small', 'small', 'medium', 'large']),\n\t/**\n\t * A unique ID is needed in order to support keyboard navigation, ARIA support, and connect the dropdown to the triggering button.\n\t */\n\tid: PropTypes.string,\n\t/**\n\t * Adds inverse class to the dropdown\n\t */\n\tinverse: PropTypes.bool,\n\t/**\n\t * Forces the dropdown to be open or closed. See controlled/uncontrolled callback/prop pattern for more on suggested use view [Concepts and Best Practices](https://github.com/salesforce-ux/design-system-react/blob/master/CONTRIBUTING.md#concepts-and-best-practices)\n\t */\n\tisOpen: PropTypes.bool,\n\t/**\n\t * This prop is passed onto the triggering `Button`. Text within the trigger button.\n\t */\n\tlabel: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n\t/**\n\t * Custom element that overrides the default Menu Item component.\n\t */\n\tlistItemRenderer: PropTypes.func,\n\t/**\n\t * This prop is passed into the List for the menu. Pass null to make it the size of the content, or a string with an integer from here: https://www.lightningdesignsystem.com/components/menus/#flavor-dropdown-height\n\t */\n\tlength: PropTypes.oneOf([null, '5', '7', '10', 5, 7, 10]),\n\t/**\n\t * Please select one of the following:\n\t * * `absolute` - (default) The dialog will use `position: absolute` and style attributes to position itself. This allows inverted placement or flipping of the dialog.\n\t * * `overflowBoundaryElement` - The dialog will overflow scrolling parents. Use on elements that are aligned to the left or right of their target and don't care about the target being within a scrolling parent. Typically this is a popover or tooltip. Dropdown menus can usually open up and down if no room exists. In order to achieve this a portal element will be created and attached to `body`. This element will render into that detached render tree.\n\t * * `relative` - No styling or portals will be used. Menus will be positioned relative to their triggers. This is a great choice for HTML snapshot testing.\n\t */\n\tmenuPosition: PropTypes.oneOf([\n\t\t'absolute',\n\t\t'overflowBoundaryElement',\n\t\t'relative',\n\t]),\n\t/**\n\t * Style applied to menu element (that is the `.slds-dropdown` element)\n\t */\n\tmenuStyle: PropTypes.object,\n\t/**\n\t * Positions dropdown menu with a nubbin--that is the arrow notch. The placement options correspond to the placement of the nubbin. This is implemeted with CSS classes and is best used with a `Button` with \"icon container\" styling (`iconVariant=\"container\"`). Use with `isInline` prop, since positioning is determined by CSS via absolute-relative positioning, and using an absolutely positioned menu will not position the menu correctly without manual offsets.\n\t */\n\tnubbinPosition: PropTypes.oneOf([\n\t\t'top left',\n\t\t'top',\n\t\t'top right',\n\t\t'bottom left',\n\t\t'bottom',\n\t\t'bottom right',\n\t]),\n\t/**\n\t * Called when the triggering button loses focus.\n\t */\n\tonBlur: PropTypes.func,\n\t/**\n\t * This prop is passed onto the triggering `Button`. Triggered when the trigger button is clicked.\n\t */\n\tonClick: PropTypes.func,\n\t/**\n\t * Called when the triggering button gains focus.\n\t */\n\tonFocus: PropTypes.func,\n\t/**\n\t * Determines if mouse hover or click opens or closes the dropdown menu. The default of `click` opens the menu on click, touch, or keyboard navigation and is highly recommended to comply with accessibility standards. The other options are `hover` which opens when the mouse enters the focusable area, and `hybrid` which causes the menu to open on clicking of the trigger, but closes the menu when the mouse leaves the menu and trigger area. If you are planning on using `hover` or `hybrid`, please pause a moment and reconsider.\n\t */\n\topenOn: PropTypes.oneOf(['hover', 'click', 'hybrid']),\n\t/**\n\t * Called when a key pressed.\n\t */\n\tonKeyDown: PropTypes.func,\n\t/**\n\t * Called when mouse clicks down on the trigger button.\n\t */\n\tonMouseDown: PropTypes.func,\n\t/**\n\t * Called when mouse hovers over the trigger button. This is only called if `this.props.openOn` is set to `hover`.\n\t */\n\tonMouseEnter: PropTypes.func,\n\t/**\n\t * Called when mouse hover leaves the trigger button. This is only called if `this.props.openOn` is set to `hover`.\n\t */\n\tonMouseLeave: PropTypes.func,\n\t/**\n\t * Triggered when an item in the menu is clicked.\n\t */\n\tonSelect: PropTypes.func,\n\t/**\n\t * Triggered when the dropdown is opened.\n\t */\n\tonOpen: PropTypes.func,\n\t/**\n\t * Triggered when the dropdown is closed.\n\t */\n\tonClose: PropTypes.func,\n\t/**\n\t * An array of menu item objects. `className` and `id` object keys are applied to the `li` DOM node. `divider` key can have a value of `top` or `bottom`. `rightIcon` and `leftIcon` are not actually `Icon` components, but prop objects that get passed to an `Icon` component. The `href` key will be added to the `a` and its default click event will be prevented. Here is a sample:\n\t * ```\n\t * [{\n\t * className: 'custom-li-class',\n\t * divider: 'bottom',\n\t * label: 'A Header',\n\t * type: 'header'\n\t * }, {\n\t * href: 'http://sfdc.co/',\n\t * id: 'custom-li-id',\n\t * label: 'Has a value',\n\t * leftIcon: {\n\t * name: 'settings',\n\t * category: 'utility'\n\t * },\n\t * rightIcon: {\n\t * name: 'settings',\n\t * category: 'utility'\n\t * },\n\t * type: 'item',\n\t * value: 'B0'\n\t * }, {\n\t * tooltipContent: 'Displays a tooltip when hovered over with this content. The `tooltipMenuItem` prop must be set for this to work.',\n\t * type: 'divider'\n\t * }]\n\t * ```\n\t */\n\toptions: PropTypes.array,\n\t/**\n\t * An object of CSS styles that are applied to the triggering button.\n\t */\n\tstyle: PropTypes.object,\n\t/**\n\t * Write <code>\"-1\"</code> if you don't want the user to tab to the button.\n\t */\n\ttabIndex: PropTypes.string,\n\t/**\n\t * If `true`, adds a transparent overlay when the menu is open to handle outside clicks. Allows clicks on iframes to be captured, but also forces a double-click to interact with other elements. If a function is passed, custom overlay logic may be defined by the app.\n\t */\n\toverlay: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),\n\t/**\n\t * Current selected menu item.\n\t */\n\tvalue: PropTypes.oneOfType([\n\t\tPropTypes.number,\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t]),\n\t/**\n\t * This prop is passed onto the triggering `Button`. It creates a tooltip with the content of the `node` provided.\n\t */\n\ttooltip: PropTypes.node,\n\t/**\n\t * Accepts a `Tooltip` component to be used as the template for menu item tooltips that appear via the `tooltipContent` options object attribute. Must be present for `tooltipContent` to work\n\t */\n\ttooltipMenuItem: PropTypes.node,\n\t/**\n\t * CSS classes to be added to wrapping trigger `div` around the button.\n\t */\n\ttriggerClassName: PropTypes.oneOfType([\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t\tPropTypes.string,\n\t]),\n\t/**\n\t * Whether this dropdown supports multi select.\n\t */\n\tmultiple: PropTypes.bool,\n\t/**\n\t * To adjust the width of the menu dropdown\n\t */\n\twidth: PropTypes.oneOf([\n\t\t'xx-small',\n\t\t'x-small',\n\t\t'small',\n\t\t'medium',\n\t\t'bottom',\n\t\t'large',\n\t]),\n};\n\nconst defaultProps = {\n\talign: 'left',\n\thoverCloseDelay: 300,\n\tlength: '5',\n\tmenuPosition: 'absolute',\n\topenOn: 'click',\n\twidth: 'medium',\n\tinverse: false,\n};\n\n/**\n * The MenuDropdown component is a variant of the Lightning Design System Menu component. This component\n * may require a polyfill such as [classList](https://github.com/yola/classlist-polyfill) due to\n * [react-onclickoutside](https://github.com/Pomax/react-onclickoutside) if Internet Explorer 11\n * support is needed.\n *\n * This component is wrapped in a [higher order component to listen for clicks outside itself](https://github.com/kentor/react-click-outside) and thus requires use of `ReactDOM`.\n */\nclass MenuDropdown extends React.Component {\n\tstatic displayName = MENU_DROPDOWN;\n\n\tconstructor(props) {\n\t\tsuper(props);\n\n\t\t// `checkProps` issues warnings to developers about properties (similar to React's built in development tools)\n\t\tcheckProps(MENU_DROPDOWN, props, componentDoc);\n\n\t\tthis.generatedId = shortid.generate();\n\n\t\tconst currentSelectedIndices = this.getCurrentSelectedIndices(props);\n\n\t\tthis.state = {\n\t\t\tfocusedIndex: -1,\n\t\t\tselectedIndex: -1,\n\t\t\tselectedIndices: [],\n\t\t\t...currentSelectedIndices,\n\t\t};\n\n\t\tthis.navigableItems = getNavigableItems(props.options);\n\t}\n\n\tcomponentDidUpdate(prevProps) {\n\t\tif (prevProps.value !== this.props.value) {\n\t\t\tconst nextState = this.getCurrentSelectedIndices(this.props);\n\t\t\t// eslint-disable-next-line react/no-did-update-set-state\n\t\t\tthis.setState(nextState);\n\t\t}\n\n\t\tif (prevProps.isOpen !== this.props.isOpen) {\n\t\t\tthis.setFocus();\n\t\t}\n\n\t\tif (!isEqual(prevProps.options, this.props.options)) {\n\t\t\tthis.navigableItems = getNavigableItems(this.props.options);\n\t\t}\n\t}\n\n\tcomponentWillUnmount() {\n\t\tif (currentOpenDropdown === this) {\n\t\t\tcurrentOpenDropdown = undefined;\n\t\t}\n\t\tthis.isUnmounting = true;\n\t\tthis.renderOverlay(false);\n\t}\n\n\tgetId = () => this.props.id || this.generatedId;\n\n\tgetIsOpen = () =>\n\t\t!!(typeof this.props.isOpen === 'boolean'\n\t\t\t? this.props.isOpen\n\t\t\t: this.state.isOpen);\n\n\tgetIndexByValue = (value, options) => {\n\t\tlet foundIndex = -1;\n\n\t\tif (options && options.length) {\n\t\t\toptions.some((element, index) => {\n\t\t\t\tif (element && element.value === value) {\n\t\t\t\t\tfoundIndex = index;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\t\t\t});\n\t\t}\n\n\t\treturn foundIndex;\n\t};\n\n\tgetValueByIndex = (index) => this.props.options[index];\n\n\tgetListItemRenderer = () =>\n\t\tthis.props.listItemRenderer ? this.props.listItemRenderer : ListItemLabel;\n\n\tgetListItemId = (index) => {\n\t\tlet menuItemId;\n\n\t\tif (index !== undefined) {\n\t\t\tconst menuId = isFunction(this.getId) ? this.getId() : this.props.id;\n\t\t\tmenuItemId = `${menuId}-item-${index}`;\n\t\t}\n\n\t\treturn menuItemId;\n\t};\n\n\tsetFocus = () => {\n\t\tif (!this.isHover && !this.isUnmounting && this.trigger) {\n\t\t\tReactDOM.findDOMNode(this.trigger).focus(); // eslint-disable-line react/no-find-dom-node\n\t\t}\n\t};\n\n\tgetMenu = () => ReactDOM.findDOMNode(this.list); // eslint-disable-line react/no-find-dom-node\n\n\tgetMenuItem = (index) => {\n\t\tif (index !== undefined && this.listItems) {\n\t\t\treturn ReactDOM.findDOMNode(this.listItems[index]); // eslint-disable-line react/no-find-dom-node\n\t\t}\n\n\t\treturn undefined;\n\t};\n\n\tgetCurrentSelectedIndices = (nextProps) => {\n\t\tif (this.props.multiple === true) {\n\t\t\tlet values = [];\n\t\t\tlet currentIndices = [];\n\t\t\tif (!Array.isArray(nextProps.value)) {\n\t\t\t\t// eslint-disable-next-line fp/no-mutating-methods\n\t\t\t\tvalues.push(nextProps.value);\n\t\t\t} else {\n\t\t\t\tvalues = nextProps.value;\n\t\t\t}\n\t\t\tvalues = values.filter(\n\t\t\t\t(value) => this.getIndexByValue(value, nextProps.options) !== -1\n\t\t\t);\n\t\t\tcurrentIndices = values.map((value) =>\n\t\t\t\tthis.getIndexByValue(value, nextProps.options)\n\t\t\t);\n\n\t\t\treturn {\n\t\t\t\tselectedIndices: currentIndices,\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\tselectedIndex: this.getIndexByValue(nextProps.value, nextProps.options),\n\t\t};\n\t};\n\n\t// Trigger opens, closes, and recieves focus on close\n\tsaveRefToTrigger = (trigger) => {\n\t\tthis.trigger = trigger;\n\n\t\tif (!this.state.triggerRendered) {\n\t\t\tthis.setState({ triggerRendered: true });\n\t\t}\n\n\t\tif (trigger && this.props.requestFocus && this.props.onRequestFocus) {\n\t\t\tthis.props.onRequestFocus(trigger);\n\t\t}\n\t};\n\n\t// TriggerContainer is the wrapping outer DOM element which may differ from the actual trigger which is most likely a `button`.\n\tsaveRefToTriggerContainer = (triggerContainer) => {\n\t\tthis.triggerContainer = triggerContainer;\n\t\tif (!this.trigger) this.trigger = triggerContainer;\n\t};\n\n\tsaveRefToList = (list) => {\n\t\tthis.list = list;\n\t};\n\n\tsaveRefToListItem = (listItem, index) => {\n\t\tif (!this.listItems) {\n\t\t\tthis.listItems = {};\n\t\t}\n\n\t\tthis.listItems[index] = listItem;\n\n\t\tif (index === this.state.focusedIndex) {\n\t\t\tthis.handleKeyboardFocus(this.state.focusedIndex);\n\t\t}\n\t};\n\n\thandleClose = () => {\n\t\tconst isOpen = this.getIsOpen();\n\n\t\tif (isOpen) {\n\t\t\tif (currentOpenDropdown === this) {\n\t\t\t\tcurrentOpenDropdown = undefined;\n\t\t\t}\n\n\t\t\tthis.setState({\n\t\t\t\tisOpen: false,\n\t\t\t});\n\n\t\t\tthis.isHover = false;\n\n\t\t\tif (this.props.onClose) {\n\t\t\t\tthis.props.onClose();\n\t\t\t}\n\t\t}\n\t};\n\n\thandleOpen = () => {\n\t\tconst isOpen = this.getIsOpen();\n\n\t\tif (!isOpen) {\n\t\t\tif (currentOpenDropdown && isFunction(currentOpenDropdown.handleClose)) {\n\t\t\t\tcurrentOpenDropdown.handleClose();\n\t\t\t}\n\n\t\t\tcurrentOpenDropdown = this;\n\n\t\t\tthis.setState({\n\t\t\t\tisOpen: true,\n\t\t\t});\n\n\t\t\tif (this.props.onOpen) {\n\t\t\t\tthis.props.onOpen();\n\t\t\t}\n\t\t}\n\t};\n\n\thandleMouseEnter = (event) => {\n\t\tconst isOpen = this.getIsOpen();\n\n\t\tthis.isHover = true;\n\n\t\tif (!isOpen && this.props.openOn === 'hover') {\n\t\t\tthis.handleOpenForHover();\n\t\t} else {\n\t\t\t// we want this clear when openOn is hover or hybrid\n\t\t\tclearTimeout(this.isClosing);\n\t\t}\n\n\t\tif (this.props.onMouseEnter) {\n\t\t\tthis.props.onMouseEnter(event);\n\t\t}\n\t};\n\n\thandleMouseLeave = (event) => {\n\t\tconst isOpen = this.getIsOpen();\n\n\t\tif (isOpen) {\n\t\t\tthis.isClosing = setTimeout(() => {\n\t\t\t\tthis.handleCloseForHover();\n\t\t\t}, this.props.hoverCloseDelay);\n\t\t}\n\n\t\tif (this.props.onMouseLeave) {\n\t\t\tthis.props.onMouseLeave(event);\n\t\t}\n\t};\n\n\t// Special handlers for openOn === hover\n\t// calling onClick inside onMouseEnter/Leave used to cause double clicking the trigger on hover which caused closing and reopening of the dropdown\n\thandleCloseForHover = () => {\n\t\tconst isOpen = this.getIsOpen();\n\t\tif (isOpen) {\n\t\t\tthis.handleClose();\n\t\t}\n\t};\n\n\thandleOpenForHover = () => {\n\t\tconst isOpen = this.getIsOpen();\n\n\t\tif (!isOpen) {\n\t\t\tthis.handleOpen();\n\t\t\tthis.setFocus();\n\t\t}\n\t};\n\n\thandleClick = (event) => {\n\t\tconst isOpen = this.getIsOpen();\n\n\t\tif (!isOpen) {\n\t\t\tthis.handleOpen();\n\t\t\tthis.setFocus();\n\t\t} else {\n\t\t\tthis.handleClose();\n\t\t}\n\n\t\tif (this.props.onClick) {\n\t\t\tthis.props.onClick(event);\n\t\t}\n\t};\n\n\thandleFocus = (event) => {\n\t\tif (this.props.onFocus) {\n\t\t\tthis.props.onFocus(event);\n\t\t}\n\t};\n\n\thandleClickCustomContent = () => {\n\t\tthis.setFocus();\n\t\tthis.handleClose();\n\n\t\tif (this.props.onSelect) {\n\t\t\tthis.props.onSelect();\n\t\t}\n\t};\n\n\thandleSelect = (index) => {\n\t\tif (!this.props.multiple) {\n\t\t\tthis.setState({ selectedIndex: index });\n\t\t\tthis.handleClose();\n\t\t\tthis.setFocus();\n\t\t} else if (\n\t\t\tthis.props.multiple &&\n\t\t\tthis.state.selectedIndices.indexOf(index) === -1\n\t\t) {\n\t\t\t// eslint-disable-next-line react/no-access-state-in-setstate\n\t\t\tconst currentIndices = this.state.selectedIndices.concat(index);\n\t\t\tthis.setState({\n\t\t\t\tselectedIndices: currentIndices,\n\t\t\t});\n\t\t} else if (this.props.multiple) {\n\t\t\tconst deselectIndex = this.state.selectedIndices.indexOf(index);\n\t\t\t// eslint-disable-next-line react/no-access-state-in-setstate\n\t\t\tconst currentSelected = this.state.selectedIndices;\n\t\t\t// eslint-disable-next-line fp/no-mutating-methods\n\t\t\tcurrentSelected.splice(deselectIndex, 1);\n\t\t\tthis.setState({\n\t\t\t\tselectedIndices: currentSelected,\n\t\t\t});\n\t\t}\n\n\t\tif (this.props.onSelect) {\n\t\t\tconst option = this.getValueByIndex(index);\n\t\t\tthis.props.onSelect(option, { option, optionIndex: index });\n\t\t}\n\t};\n\n\thandleKeyDown = (event) => {\n\t\tif (event.keyCode) {\n\t\t\tif (\n\t\t\t\tevent.keyCode === KEYS.ENTER ||\n\t\t\t\tevent.keyCode === KEYS.SPACE ||\n\t\t\t\tevent.keyCode === KEYS.DOWN ||\n\t\t\t\tevent.keyCode === KEYS.UP\n\t\t\t) {\n\t\t\t\tEventUtil.trap(event);\n\t\t\t}\n\n\t\t\tif (event.keyCode !== KEYS.TAB) {\n\t\t\t\tconst isOpen = this.getIsOpen();\n\n\t\t\t\tthis.handleKeyboardNavigate({\n\t\t\t\t\tevent,\n\t\t\t\t\tisOpen,\n\t\t\t\t\tkey: event.key,\n\t\t\t\t\tkeyCode: event.keyCode,\n\t\t\t\t\tonSelect: this.handleSelect,\n\t\t\t\t\ttarget: event.target,\n\t\t\t\t\ttoggleOpen: this.toggleOpen,\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.handleCancel();\n\t\t\t}\n\n\t\t\tif (this.props.onKeyDown) {\n\t\t\t\tthis.props.onKeyDown(event);\n\t\t\t}\n\t\t}\n\t};\n\n\thandleCancel = () => {\n\t\tthis.setFocus();\n\t\tthis.handleClose();\n\t};\n\n\thandleClickOutside = () => {\n\t\tthis.handleClose();\n\t};\n\n\t// Handling open / close toggling is optional, and a default implementation is provided for handling focus, but selection _must_ be handled\n\thandleKeyboardNavigate = ({\n\t\tevent,\n\t\tisOpen = true,\n\t\tkeyCode,\n\t\tonFocus = this.handleKeyboardFocus,\n\t\tonSelect,\n\t\ttarget,\n\t\ttoggleOpen = noop,\n\t}) => {\n\t\tkeyboardNavigate({\n\t\t\tcomponentContext: this,\n\t\t\tcurrentFocusedIndex: this.state.focusedIndex,\n\t\t\tevent,\n\t\t\tisOpen,\n\t\t\tkeyCode,\n\t\t\tnavigableItems: this.navigableItems,\n\t\t\tonFocus,\n\t\t\tonSelect,\n\t\t\ttarget,\n\t\t\ttoggleOpen,\n\t\t});\n\t};\n\n\t// This is a bit of an anti-pattern, but it has the upside of being a nice default. Component authors can always override to only set state and do their own focusing in their subcomponents.\n\thandleKeyboardFocus = (focusedIndex) => {\n\t\tif (this.state.focusedIndex !== focusedIndex) {\n\t\t\tthis.setState({ focusedIndex });\n\t\t}\n\n\t\tconst menu = isFunction(this.getMenu) ? this.getMenu() : getMenu(this);\n\n\t\tconst menuItem = isFunction(this.getMenuItem)\n\t\t\t? this.getMenuItem(focusedIndex, menu)\n\t\t\t: getMenuItem(this.getListItemId(focusedIndex));\n\n\t\tif (menuItem) {\n\t\t\tthis.focusMenuItem(menuItem);\n\t\t\tthis.scrollToMenuItem(menu, menuItem);\n\t\t}\n\t};\n\n\tfocusMenuItem = (menuItem) => {\n\t\tmenuItem.getElementsByTagName('a')[0].focus();\n\t};\n\n\tscrollToMenuItem = (menu, menuItem) => {\n\t\tif (menu && menuItem) {\n\t\t\tconst menuHeight = menu.offsetHeight;\n\n\t\t\tconst menuTop = menu.scrollTop;\n\t\t\tconst menuItemTop = menuItem.offsetTop - menu.offsetTop;\n\n\t\t\tif (menuItemTop < menuTop) {\n\t\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\t\tmenu.scrollTop = menuItemTop;\n\t\t\t} else {\n\t\t\t\tconst menuBottom = menuTop + menuHeight + menu.offsetTop;\n\t\t\t\tconst menuItemBottom =\n\t\t\t\t\tmenuItemTop + menuItem.offsetHeight + menu.offsetTop;\n\n\t\t\t\tif (menuItemBottom > menuBottom) {\n\t\t\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\t\t\tmenu.scrollTop = menuItemBottom - menuHeight - menu.offsetTop;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\ttoggleOpen = () => {\n\t\tconst isOpen = this.getIsOpen();\n\t\tthis.setFocus();\n\n\t\tif (isOpen) {\n\t\t\tthis.handleClose();\n\t\t} else {\n\t\t\tthis.handleOpen();\n\t\t}\n\t};\n\n\trenderDefaultMenuContent = (customListProps) => (\n\t\t<List\n\t\t\tkey={`${this.getId()}-dropdown-list`}\n\t\t\tcheckmark={this.props.checkmark}\n\t\t\tgetListItemId={this.getListItemId}\n\t\t\titemRefs={this.saveRefToListItem}\n\t\t\titemRenderer={this.getListItemRenderer()}\n\t\t\tonCancel={this.handleCancel}\n\t\t\tonSelect={this.handleSelect}\n\t\t\toptions={this.props.options}\n\t\t\tref={this.saveRefToList}\n\t\t\tselectedIndex={\n\t\t\t\t!this.props.multiple ? this.state.selectedIndex : undefined\n\t\t\t}\n\t\t\tselectedIndices={\n\t\t\t\tthis.props.multiple ? this.state.selectedIndices : undefined\n\t\t\t}\n\t\t\ttooltipMenuItem={this.props.tooltipMenuItem}\n\t\t\ttriggerId={this.getId()}\n\t\t\tlength={this.props.length}\n\t\t\t{...customListProps}\n\t\t/>\n\t);\n\n\trenderMenuContent = (customContent) => {\n\t\t/**\n\t\t * Custom content for dropdown was a hack done in the past. If there's more than a listbox within a dropdown, then it should be a popover as explained for the `children` prop.\n\t\t *\n\t\t * This code block shows how things are done in the past:\n\t\t * ```\n\t\t * <Dropdown>\n\t\t * <Trigger>\n\t\t * <Button iconCategory=\"utility\" iconName=\"settings\" />\n\t\t * </Trigger>\n\t\t * <div>Look ma! This is Custom Content.</div>\n\t\t * <List options={[myArray]}/>\n\t\t * </Dropdown>\n\t\t * ```\n\t\t */\n\t\tlet customContentWithListPropInjection = [];\n\t\t// Dropdown can take a Trigger component as a child and then return it as the parent DOM element.\n\t\tReact.Children.forEach(customContent, (child) => {\n\t\t\tif (child && child.type.displayName === LIST) {\n\t\t\t\t// eslint-disable-next-line fp/no-mutating-methods\n\t\t\t\tcustomContentWithListPropInjection.push(\n\t\t\t\t\tthis.renderDefaultMenuContent(child.props)\n\t\t\t\t);\n\t\t\t} else if (child) {\n\t\t\t\tconst clonedCustomContent = React.cloneElement(child, {\n\t\t\t\t\tonClick: this.handleClickCustomContent,\n\t\t\t\t\tkey: shortid.generate(),\n\t\t\t\t});\n\t\t\t\t// eslint-disable-next-line fp/no-mutating-methods\n\t\t\t\tcustomContentWithListPropInjection.push(clonedCustomContent);\n\t\t\t}\n\t\t});\n\n\t\tif (customContentWithListPropInjection.length === 0) {\n\t\t\tcustomContentWithListPropInjection = null;\n\t\t}\n\n\t\treturn (\n\t\t\tcustomContentWithListPropInjection || this.renderDefaultMenuContent()\n\t\t);\n\t};\n\n\trenderDialog = (customContent, isOpen, outsideClickIgnoreClass) => {\n\t\tlet align = 'bottom';\n\t\tlet hasNubbin = false;\n\t\tlet positionClassName = '';\n\n\t\tif (this.props.nubbinPosition) {\n\t\t\thasNubbin = true;\n\t\t\talign = DropdownToDialogNubbinMapping[this.props.nubbinPosition];\n\t\t} else if (this.props.align) {\n\t\t\talign =\n\t\t\t\tthis.props.align === 'center' ? 'bottom' : `bottom ${this.props.align}`;\n\t\t}\n\n\t\tconst positions = DropdownToDialogNubbinMapping[align].split(' ');\n\t\tpositionClassName = classNames(\n\t\t\tpositions.map((position) => `slds-dropdown_${position}`)\n\t\t);\n\n\t\t// FOR BACKWARDS COMPATIBILITY\n\t\tconst menuPosition = this.props.isInline\n\t\t\t? 'relative'\n\t\t\t: this.props.menuPosition; // eslint-disable-line react/prop-types\n\n\t\tconst menuStylesBase = {};\n\t\tif (this.props.align === 'center' && !hasNubbin) {\n\t\t\tmenuStylesBase.transform = 'none';\n\t\t}\n\n\t\treturn isOpen ? (\n\t\t\t<Dialog\n\t\t\t\talign={align}\n\t\t\t\tclassName={classNames(this.props.containerClassName)}\n\t\t\t\tcloseOnTabKey\n\t\t\t\tcontentsClassName={classNames(\n\t\t\t\t\t'slds-dropdown',\n\t\t\t\t\t`slds-dropdown_${this.props.width}`,\n\t\t\t\t\t'slds-text-align_left',\n\t\t\t\t\t'ignore-react-onclickoutside',\n\t\t\t\t\tthis.props.className,\n\t\t\t\t\tpositionClassName,\n\t\t\t\t\t{\n\t\t\t\t\t\t'slds-dropdown_inverse': this.props.inverse,\n\t\t\t\t\t}\n\t\t\t\t)}\n\t\t\t\tcontext={this.context}\n\t\t\t\thasNubbin={hasNubbin}\n\t\t\t\thasStaticAlignment={this.props.hasStaticAlignment}\n\t\t\t\tinheritWidthOf={this.props.inheritTargetWidth ? 'target' : 'none'}\n\t\t\t\toffset={this.props.offset}\n\t\t\t\tonClose={this.handleClose}\n\t\t\t\tonKeyDown={this.handleKeyDown}\n\t\t\t\toutsideClickIgnoreClass={outsideClickIgnoreClass}\n\t\t\t\tposition={menuPosition}\n\t\t\t\tstyle={{\n\t\t\t\t\t...menuStylesBase,\n\t\t\t\t\t...this.props.menuStyle,\n\t\t\t\t}}\n\t\t\t\tonRequestTargetElement={() => this.trigger}\n\t\t\t>\n\t\t\t\t{this.renderMenuContent(customContent)}\n\t\t\t</Dialog>\n\t\t) : null;\n\t};\n\n\trenderOverlay = (isOpen) => {\n\t\tif (isFunction(overlay) && documentDefined) {\n\t\t\toverlay(isOpen, overlay);\n\t\t} else if (\n\t\t\tthis.props.overlay &&\n\t\t\tisOpen &&\n\t\t\t!this.overlay &&\n\t\t\tdocumentDefined\n\t\t) {\n\t\t\tthis.overlay = overlay;\n\t\t\tdocument.querySelector('body').appendChild(this.overlay);\n\t\t} else if (!isOpen && this.overlay && this.overlay.parentNode) {\n\t\t\tthis.overlay.parentNode.removeChild(this.overlay);\n\t\t\tthis.overlay = undefined;\n\t\t}\n\t};\n\n\trender() {\n\t\t// Dropdowns are used by other components. The default trigger is a button, but some other components use `li` elements. The following allows `MenuDropdown` to be extended by providing a child component with the displayName of `DropdownTrigger`.\n\t\tlet CurrentTrigger = DefaultTrigger;\n\n\t\tlet CustomTriggerChildProps = {};\n\n\t\t// Child elements that do not have the display name of the value of `MENU_DROPDOWN_TRIGGER` in `components/constants.js` will be considered custom content and rendered in the popover.\n\t\tlet customContent = [];\n\n\t\t// Dropdown can take a Trigger component as a child and then return it as the parent DOM element.\n\t\tReact.Children.forEach(this.props.children, (child) => {\n\t\t\tif (child && child.type.displayName === MENU_DROPDOWN_TRIGGER) {\n\t\t\t\t// `CustomTriggerChildProps` is not used by the default button Trigger, but by other triggers\n\t\t\t\tCustomTriggerChildProps = child.props;\n\t\t\t\tCurrentTrigger = child.type;\n\t\t\t} else if (child) {\n\t\t\t\t// eslint-disable-next-line fp/no-mutating-methods\n\t\t\t\tcustomContent.push(child);\n\t\t\t}\n\t\t});\n\n\t\tif (customContent.length === 0) {\n\t\t\tcustomContent = null;\n\t\t}\n\n\t\tconst outsideClickIgnoreClass = `ignore-click-${this.getId()}`;\n\t\tconst isOpen = !this.props.disabled && this.getIsOpen() && !!this.trigger;\n\n\t\tthis.renderOverlay(isOpen);\n\n\t\t/* Below are three sections of props:\n\t\t - The first are the props that may be given by the dropdown component. These may get deprecated in the future.\n\t\t - The next set of props (`CustomTriggerChildProps`) are props that can be overwritten by the end developer.\n\t\t - The final set are props that should not be overwritten, since they are ones that tie the trigger to the dropdown menu.\n\t\t*/\n\n\t\treturn (\n\t\t\t<CurrentTrigger\n\t\t\t\taria-haspopup\n\t\t\t\tassistiveText={this.props.assistiveText}\n\t\t\t\tclassName={classNames(\n\t\t\t\t\toutsideClickIgnoreClass,\n\t\t\t\t\tthis.props.buttonClassName\n\t\t\t\t)}\n\t\t\t\tdisabled={this.props.disabled}\n\t\t\t\thint={this.props.hint}\n\t\t\t\ticonCategory={this.props.iconCategory}\n\t\t\t\ticonName={this.props.iconName}\n\t\t\t\ticonPosition={this.props.iconPosition}\n\t\t\t\ticonSize={this.props.iconSize}\n\t\t\t\ticonVariant={this.props.iconVariant}\n\t\t\t\tid={this.getId()}\n\t\t\t\tinverse={this.props.buttonInverse}\n\t\t\t\tisOpen={isOpen}\n\t\t\t\tlabel={this.props.label}\n\t\t\t\tmenu={this.renderDialog(customContent, isOpen, outsideClickIgnoreClass)}\n\t\t\t\tonBlur={this.props.onBlur}\n\t\t\t\tonClick={\n\t\t\t\t\tthis.props.openOn === 'click' || this.props.openOn === 'hybrid'\n\t\t\t\t\t\t? this.handleClick\n\t\t\t\t\t\t: this.props.onClick\n\t\t\t\t}\n\t\t\t\tonFocus={this.handleFocus}\n\t\t\t\tonKeyDown={this.handleKeyDown}\n\t\t\t\tonMouseDown={this.props.onMouseDown}\n\t\t\t\tonMouseEnter={\n\t\t\t\t\tthis.props.openOn === 'hover' || this.props.openOn === 'hybrid'\n\t\t\t\t\t\t? this.handleMouseEnter\n\t\t\t\t\t\t: null\n\t\t\t\t}\n\t\t\t\tonMouseLeave={\n\t\t\t\t\tthis.props.openOn === 'hover' || this.props.openOn === 'hybrid'\n\t\t\t\t\t\t? this.handleMouseLeave\n\t\t\t\t\t\t: null\n\t\t\t\t}\n\t\t\t\topenOn={this.props.openOn}\n\t\t\t\tref={this.saveRefToTriggerContainer}\n\t\t\t\tstyle={this.props.style}\n\t\t\t\ttabIndex={this.props.tabIndex || (isOpen ? '-1' : '0')}\n\t\t\t\ttooltip={this.props.tooltip}\n\t\t\t\ttriggerClassName={this.props.triggerClassName}\n\t\t\t\ttriggerRef={this.saveRefToTrigger}\n\t\t\t\tvariant={this.props.buttonVariant}\n\t\t\t\t{...CustomTriggerChildProps}\n\t\t\t/>\n\t\t);\n\t}\n}\n\nMenuDropdown.contextType = IconSettingsContext;\nMenuDropdown.propTypes = propTypes;\nMenuDropdown.defaultProps = defaultProps;\n\nexport default MenuDropdown;\nexport { ListItem, ListItemLabel, DropdownNubbinPositions };\n"],"file":"menu-dropdown.js"}
|
|
1
|
+
{"version":3,"sources":["../../../.tmp-es/components/menu-dropdown/menu-dropdown.jsx"],"names":["React","PropTypes","ReactDOM","requiredIf","classNames","isFunction","isEqual","shortid","Dialog","List","ListItem","ListItemLabel","DefaultTrigger","checkProps","componentDoc","EventUtil","KeyBuffer","keyboardNavigate","KEYS","MENU_DROPDOWN","MENU_DROPDOWN_TRIGGER","LIST","IconSettingsContext","documentDefined","document","overlay","createElement","style","top","left","width","height","position","currentOpenDropdown","DropdownNubbinPositions","noop","itemIsSelectable","item","type","disabled","getNavigableItems","items","navigableItems","indexes","keyBuffer","Array","isArray","forEach","index","push","text","label","toLowerCase","getMenu","componentRef","findDOMNode","querySelector","getMenuItem","menuItemId","context","menuItem","getElementById","DropdownToDialogNubbinMapping","bottom","propTypes","align","oneOf","assistiveText","object","buttonClassName","oneOfType","array","string","buttonInverse","bool","buttonVariant","checkmark","children","node","className","containerClassName","hasStaticAlignment","hint","hoverCloseDelay","number","iconCategory","props","iconName","iconPosition","iconVariant","iconSize","id","inverse","isOpen","listItemRenderer","func","length","menuPosition","menuStyle","nubbinPosition","onBlur","onClick","onFocus","openOn","onKeyDown","onMouseDown","onMouseEnter","onMouseLeave","onSelect","onOpen","onClose","options","tabIndex","value","tooltip","tooltipMenuItem","triggerClassName","multiple","defaultProps","MenuDropdown","generatedId","state","foundIndex","some","element","undefined","menuId","getId","isHover","isUnmounting","trigger","focus","list","listItems","nextProps","values","currentIndices","filter","getIndexByValue","map","selectedIndices","selectedIndex","triggerRendered","setState","requestFocus","onRequestFocus","triggerContainer","listItem","focusedIndex","handleKeyboardFocus","getIsOpen","handleClose","event","handleOpenForHover","clearTimeout","isClosing","setTimeout","handleCloseForHover","handleOpen","setFocus","indexOf","concat","deselectIndex","currentSelected","splice","option","getValueByIndex","optionIndex","keyCode","TAB","handleCancel","ENTER","SPACE","DOWN","UP","ESCAPE","trap","handleKeyboardNavigate","key","handleSelect","target","toggleOpen","componentContext","currentFocusedIndex","menu","getListItemId","focusMenuItem","scrollToMenuItem","getElementsByTagName","menuHeight","offsetHeight","menuTop","scrollTop","menuItemTop","offsetTop","menuBottom","menuItemBottom","customListProps","saveRefToListItem","getListItemRenderer","saveRefToList","customContent","customContentWithListPropInjection","Children","child","displayName","renderDefaultMenuContent","clonedCustomContent","cloneElement","handleClickCustomContent","generate","outsideClickIgnoreClass","hasNubbin","positionClassName","positions","split","isInline","menuStylesBase","transform","inheritTargetWidth","offset","handleKeyDown","renderMenuContent","appendChild","parentNode","removeChild","currentSelectedIndices","getCurrentSelectedIndices","prevProps","nextState","renderOverlay","CurrentTrigger","CustomTriggerChildProps","renderDialog","handleClick","handleFocus","handleMouseEnter","handleMouseLeave","saveRefToTriggerContainer","saveRefToTrigger","Component","contextType"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;AAEA;AAEA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,OAAOC,UAAP,MAAuB,mBAAvB;AAEA,OAAOC,UAAP,MAAuB,YAAvB,C,CAEA;;AACA,OAAOC,UAAP,MAAuB,mBAAvB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AAEA,OAAOC,OAAP,MAAoB,SAApB,C,CAEA;;AACA,OAAOC,MAAP,MAAmB,qBAAnB;AACA,OAAOC,IAAP,MAAiB,wBAAjB;AACA,OAAOC,QAAP,MAAqB,6BAArB;AACA,OAAOC,aAAP,MAA0B,mCAA1B,C,CAEA;;AACA,OAAOC,cAAP,MAA2B,kBAA3B,C,CAEA;AACA;;AACA,OAAOC,UAAP,MAAuB,eAAvB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AAEA,OAAOC,SAAP,MAAsB,uBAAtB;AACA,OAAOC,SAAP,MAAsB,4BAAtB;AACA,OAAOC,gBAAP,MAA6B,mCAA7B;AACA,OAAOC,IAAP,MAAiB,0BAAjB;AACA,SACCC,aADD,EAECC,qBAFD,EAGCC,IAHD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ACgP,S;;gBAA3BzH,Y,iBACgBpG,a;;AA6pBtBoG,YAAY,CAAC0H,WAAb,GAA2B3N,mBAA3B;AACAiG,YAAY,CAACvD,SAAb,GAAyBA,SAAzB;AACAuD,YAAY,CAACD,YAAb,GAA4BA,YAA5B;AAEA,eAAeC,YAAf;AACA,SAAS7G,QAAT,EAAmBC,aAAnB,EAAkCuB,uBAAlC","sourcesContent":["/* eslint-disable max-lines */\n/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n\n// Implements the [Dropdown design pattern](https://www.lightningdesignsystem.com/components/menus/#flavor-dropdown) in React. Child elements that do not have the display name of the value of `MENU_DROPDOWN_TRIGGER` in `components/constants.js` will be considered custom content and rendered in the popover.\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport ReactDOM from 'react-dom';\nimport requiredIf from 'react-required-if';\n\nimport classNames from 'classnames';\n\n// ### isFunction\nimport isFunction from 'lodash.isfunction';\nimport isEqual from 'lodash.isequal';\n\nimport shortid from 'shortid';\n\n// ### Children\nimport Dialog from '../utilities/dialog';\nimport List from '../utilities/menu-list';\nimport ListItem from '../utilities/menu-list/item';\nimport ListItemLabel from '../utilities/menu-list/item-label';\n\n// This is the the default Dropdown Trigger, which expects one button as a child.\nimport DefaultTrigger from './button-trigger';\n\n// This component's `checkProps` which issues warnings to developers about properties\n// when in development mode (similar to React's built in development tools)\nimport checkProps from './check-props';\nimport componentDoc from './component.json';\n\nimport EventUtil from '../../utilities/event';\nimport KeyBuffer from '../../utilities/key-buffer';\nimport keyboardNavigate from '../../utilities/keyboard-navigate';\nimport KEYS from '../../utilities/key-code';\nimport {\n\tMENU_DROPDOWN,\n\tMENU_DROPDOWN_TRIGGER,\n\tLIST,\n} from '../../utilities/constants';\nimport { IconSettingsContext } from '../icon-settings';\n\nconst documentDefined = typeof document !== 'undefined';\n\n// The overlay is an optional way to allow the dropdown to close on outside\n// clicks even when those clicks are over areas that wouldn't normally fire\n// click or touch events (for example, iframes). A single overlay is shared\n// between all dropdowns in the app.\nconst overlay = documentDefined\n\t? document.createElement('span')\n\t: { style: {} };\noverlay.style.top = 0;\noverlay.style.left = 0;\noverlay.style.width = '100%';\noverlay.style.height = '100%';\noverlay.style.position = 'absolute';\n\nlet currentOpenDropdown;\n\nconst DropdownNubbinPositions = [\n\t'top left',\n\t'top',\n\t'top right',\n\t'bottom left',\n\t'bottom',\n\t'bottom right',\n];\n\n// # Keyboard Navigable mixin\n\nconst noop = () => {};\n\nconst itemIsSelectable = (item) =>\n\titem.type !== 'header' && item.type !== 'divider' && !item.disabled;\n\nconst getNavigableItems = (items) => {\n\tconst navigableItems = [];\n\tnavigableItems.indexes = [];\n\tnavigableItems.keyBuffer = new KeyBuffer();\n\n\tif (Array.isArray(items)) {\n\t\titems.forEach((item, index) => {\n\t\t\tif (itemIsSelectable(item)) {\n\t\t\t\t// eslint-disable-next-line fp/no-mutating-methods\n\t\t\t\tnavigableItems.push({\n\t\t\t\t\tindex,\n\t\t\t\t\ttext: `${item.label}`.toLowerCase(),\n\t\t\t\t});\n\n\t\t\t\t// eslint-disable-next-line fp/no-mutating-methods\n\t\t\t\tnavigableItems.indexes.push(index);\n\t\t\t}\n\t\t});\n\t}\n\n\treturn navigableItems;\n};\n\nfunction getMenu(componentRef) {\n\treturn ReactDOM.findDOMNode(componentRef).querySelector('ul.dropdown__list'); // eslint-disable-line react/no-find-dom-node\n}\n\nfunction getMenuItem(menuItemId, context = document) {\n\tlet menuItem;\n\n\tif (menuItemId) {\n\t\tmenuItem = context.getElementById(menuItemId);\n\t}\n\n\treturn menuItem;\n}\n\n/*\n * Dropdowns with nubbins have a different API from other Dialogs\n *\n * Dialog receives an alignment position and whether it has a nubbin. The nubbin position is inferred from the align.\n * Dropdowns have a nubbinPosition which dictates the align, but in an inverse fashion which then gets inversed back by the Dialog.\n *\n * Since Dialog is the future API and we don't want to break backwards compatability, we currently map to the Dialog api here. Even if Dialog will map it again.\n * TODO - deprecate nubbinPosition in favor for additional `align` values and a flag to show a nubbin.\n */\nconst DropdownToDialogNubbinMapping = {\n\ttop: 'bottom',\n\t'top left': 'bottom left',\n\t'top right': 'bottom right',\n\n\tbottom: 'top',\n\t'bottom left': 'top left',\n\t'bottom right': 'top right',\n};\n\nconst propTypes = {\n\t/**\n\t * Aligns the menu center, right, or left respective to the trigger. This is not intended for use with `nubbinPosition`.\n\t */\n\talign: PropTypes.oneOf(['center', 'left', 'right']),\n\t/**\n\t * This prop is passed onto the triggering `Button`. Text that is visually hidden but read aloud by screenreaders to tell the user what the icon means. You can omit this prop if you are using the `label` prop.\n\t */\n\tassistiveText: PropTypes.object,\n\t/**\n\t * CSS classes to be added to triggering button.\n\t */\n\tbuttonClassName: PropTypes.oneOfType([\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t\tPropTypes.string,\n\t]),\n\t/**\n\t * If true, button/icon is white. Meant for buttons or utility icons on dark backgrounds.\n\t */\n\tbuttonInverse: PropTypes.bool,\n\t/**\n\t * This prop is passed onto the triggering `Button`. Determines variant of the Button component that triggers dropdown.\n\t */\n\tbuttonVariant: PropTypes.oneOf([\n\t\t'base',\n\t\t'neutral',\n\t\t'brand',\n\t\t'destructive',\n\t\t'icon',\n\t]),\n\t/**\n\t * If true, renders checkmark icon on the selected Menu Item.\n\t */\n\tcheckmark: PropTypes.bool,\n\t/**\n\t * If you need custom content _and_ a list, use a `<Popover>` instead.\n\t */\n\tchildren: PropTypes.node,\n\t/**\n\t * CSS classes to be added to dropdown menu.\n\t */\n\tclassName: PropTypes.oneOfType([\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t\tPropTypes.string,\n\t]),\n\t/**\n\t * By default, these class names will be added to the absolutely-positioned `Dialog` component.\n\t */\n\tcontainerClassName: PropTypes.oneOfType([\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t\tPropTypes.string,\n\t]),\n\t/**\n\t * This prop is passed onto the triggering `Button`. Prevent dropdown menu from opening. Also applies disabled styling to trigger button.\n\t */\n\tdisabled: PropTypes.bool,\n\t/**\n\t * Prevents the dropdown from changing position based on the viewport/window. If set to true your dropdowns can extend outside the viewport _and_ overflow outside of a scrolling parent. If this happens, you might want to consider making the dropdowns contents scrollable to fit the menu on the screen. `hasStaticAlignment` disables this behavior and allows this component to extend beyond boundary elements. _Not tested._\n\t */\n\thasStaticAlignment: PropTypes.bool,\n\t/**\n\t * This prop is passed onto the triggering `Button`. Associates an icon button with another element on the page by changes the color of the SVG. Please reference <a href=\"http://www.lightningdesignsystem.com/components/buttons/#hint\">Lightning Design System Buttons > Hint</a>.\n\t */\n\thint: PropTypes.bool,\n\t/**\n\t * Delay on menu closing in milliseconds.\n\t */\n\thoverCloseDelay: PropTypes.number,\n\t/**\n\t * Name of the icon category. Visit <a href=\"http://www.lightningdesignsystem.com/resources/icons\">Lightning Design System Icons</a> to reference icon categories.\n\t */\n\ticonCategory: requiredIf(\n\t\tPropTypes.oneOf(['action', 'custom', 'doctype', 'standard', 'utility']),\n\t\t(props) => !!props.iconName\n\t),\n\t/**\n\t * Name of the icon. Visit <a href=\"http://www.lightningdesignsystem.com/resources/icons\">Lightning Design System Icons</a> to reference icon names.\n\t */\n\ticonName: PropTypes.string,\n\t/**\n\t * If omitted, icon position is centered.\n\t */\n\ticonPosition: PropTypes.oneOf(['left', 'right']),\n\t/**\n\t * For icon variants, please reference <a href=\"http://www.lightningdesignsystem.com/components/buttons/#icon\">Lightning Design System Icons</a>.\n\t */\n\ticonVariant: PropTypes.oneOf([\n\t\t'bare',\n\t\t'container',\n\t\t'border',\n\t\t'border-filled',\n\t\t'small',\n\t\t'more',\n\t]),\n\t/**\n\t * Determines the size of the icon.\n\t */\n\ticonSize: PropTypes.oneOf(['x-small', 'small', 'medium', 'large']),\n\t/**\n\t * A unique ID is needed in order to support keyboard navigation, ARIA support, and connect the dropdown to the triggering button.\n\t */\n\tid: PropTypes.string,\n\t/**\n\t * Adds inverse class to the dropdown\n\t */\n\tinverse: PropTypes.bool,\n\t/**\n\t * Forces the dropdown to be open or closed. See controlled/uncontrolled callback/prop pattern for more on suggested use view [Concepts and Best Practices](https://github.com/salesforce-ux/design-system-react/blob/master/CONTRIBUTING.md#concepts-and-best-practices)\n\t */\n\tisOpen: PropTypes.bool,\n\t/**\n\t * This prop is passed onto the triggering `Button`. Text within the trigger button.\n\t */\n\tlabel: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n\t/**\n\t * Custom element that overrides the default Menu Item component.\n\t */\n\tlistItemRenderer: PropTypes.func,\n\t/**\n\t * This prop is passed into the List for the menu. Pass null to make it the size of the content, or a string with an integer from here: https://www.lightningdesignsystem.com/components/menus/#flavor-dropdown-height\n\t */\n\tlength: PropTypes.oneOf([null, '5', '7', '10', 5, 7, 10]),\n\t/**\n\t * Please select one of the following:\n\t * * `absolute` - (default) The dialog will use `position: absolute` and style attributes to position itself. This allows inverted placement or flipping of the dialog.\n\t * * `overflowBoundaryElement` - The dialog will overflow scrolling parents. Use on elements that are aligned to the left or right of their target and don't care about the target being within a scrolling parent. Typically this is a popover or tooltip. Dropdown menus can usually open up and down if no room exists. In order to achieve this a portal element will be created and attached to `body`. This element will render into that detached render tree.\n\t * * `relative` - No styling or portals will be used. Menus will be positioned relative to their triggers. This is a great choice for HTML snapshot testing.\n\t */\n\tmenuPosition: PropTypes.oneOf([\n\t\t'absolute',\n\t\t'overflowBoundaryElement',\n\t\t'relative',\n\t]),\n\t/**\n\t * Style applied to menu element (that is the `.slds-dropdown` element)\n\t */\n\tmenuStyle: PropTypes.object,\n\t/**\n\t * Positions dropdown menu with a nubbin--that is the arrow notch. The placement options correspond to the placement of the nubbin. This is implemeted with CSS classes and is best used with a `Button` with \"icon container\" styling (`iconVariant=\"container\"`). Use with `isInline` prop, since positioning is determined by CSS via absolute-relative positioning, and using an absolutely positioned menu will not position the menu correctly without manual offsets.\n\t */\n\tnubbinPosition: PropTypes.oneOf([\n\t\t'top left',\n\t\t'top',\n\t\t'top right',\n\t\t'bottom left',\n\t\t'bottom',\n\t\t'bottom right',\n\t]),\n\t/**\n\t * Called when the triggering button loses focus.\n\t */\n\tonBlur: PropTypes.func,\n\t/**\n\t * This prop is passed onto the triggering `Button`. Triggered when the trigger button is clicked.\n\t */\n\tonClick: PropTypes.func,\n\t/**\n\t * Called when the triggering button gains focus.\n\t */\n\tonFocus: PropTypes.func,\n\t/**\n\t * Determines if mouse hover or click opens or closes the dropdown menu. The default of `click` opens the menu on click, touch, or keyboard navigation and is highly recommended to comply with accessibility standards. The other options are `hover` which opens when the mouse enters the focusable area, and `hybrid` which causes the menu to open on clicking of the trigger, but closes the menu when the mouse leaves the menu and trigger area. If you are planning on using `hover` or `hybrid`, please pause a moment and reconsider.\n\t */\n\topenOn: PropTypes.oneOf(['hover', 'click', 'hybrid']),\n\t/**\n\t * Called when a key pressed.\n\t */\n\tonKeyDown: PropTypes.func,\n\t/**\n\t * Called when mouse clicks down on the trigger button.\n\t */\n\tonMouseDown: PropTypes.func,\n\t/**\n\t * Called when mouse hovers over the trigger button. This is only called if `this.props.openOn` is set to `hover`.\n\t */\n\tonMouseEnter: PropTypes.func,\n\t/**\n\t * Called when mouse hover leaves the trigger button. This is only called if `this.props.openOn` is set to `hover`.\n\t */\n\tonMouseLeave: PropTypes.func,\n\t/**\n\t * Triggered when an item in the menu is clicked.\n\t */\n\tonSelect: PropTypes.func,\n\t/**\n\t * Triggered when the dropdown is opened.\n\t */\n\tonOpen: PropTypes.func,\n\t/**\n\t * Triggered when the dropdown is closed.\n\t */\n\tonClose: PropTypes.func,\n\t/**\n\t * An array of menu item objects. `className` and `id` object keys are applied to the `li` DOM node. `divider` key can have a value of `top` or `bottom`. `rightIcon` and `leftIcon` are not actually `Icon` components, but prop objects that get passed to an `Icon` component. The `href` key will be added to the `a` and its default click event will be prevented. Here is a sample:\n\t * ```\n\t * [{\n\t * className: 'custom-li-class',\n\t * divider: 'bottom',\n\t * label: 'A Header',\n\t * type: 'header'\n\t * }, {\n\t * href: 'http://sfdc.co/',\n\t * id: 'custom-li-id',\n\t * label: 'Has a value',\n\t * leftIcon: {\n\t * name: 'settings',\n\t * category: 'utility'\n\t * },\n\t * rightIcon: {\n\t * name: 'settings',\n\t * category: 'utility'\n\t * },\n\t * type: 'item',\n\t * value: 'B0'\n\t * }, {\n\t * tooltipContent: 'Displays a tooltip when hovered over with this content. The `tooltipMenuItem` prop must be set for this to work.',\n\t * type: 'divider'\n\t * }]\n\t * ```\n\t */\n\toptions: PropTypes.array,\n\t/**\n\t * An object of CSS styles that are applied to the triggering button.\n\t */\n\tstyle: PropTypes.object,\n\t/**\n\t * Write <code>\"-1\"</code> if you don't want the user to tab to the button.\n\t */\n\ttabIndex: PropTypes.string,\n\t/**\n\t * If `true`, adds a transparent overlay when the menu is open to handle outside clicks. Allows clicks on iframes to be captured, but also forces a double-click to interact with other elements. If a function is passed, custom overlay logic may be defined by the app.\n\t */\n\toverlay: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),\n\t/**\n\t * Current selected menu item.\n\t */\n\tvalue: PropTypes.oneOfType([\n\t\tPropTypes.number,\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t]),\n\t/**\n\t * This prop is passed onto the triggering `Button`. It creates a tooltip with the content of the `node` provided.\n\t */\n\ttooltip: PropTypes.node,\n\t/**\n\t * Accepts a `Tooltip` component to be used as the template for menu item tooltips that appear via the `tooltipContent` options object attribute. Must be present for `tooltipContent` to work\n\t */\n\ttooltipMenuItem: PropTypes.node,\n\t/**\n\t * CSS classes to be added to wrapping trigger `div` around the button.\n\t */\n\ttriggerClassName: PropTypes.oneOfType([\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t\tPropTypes.string,\n\t]),\n\t/**\n\t * Whether this dropdown supports multi select.\n\t */\n\tmultiple: PropTypes.bool,\n\t/**\n\t * To adjust the width of the menu dropdown\n\t */\n\twidth: PropTypes.oneOf([\n\t\t'xx-small',\n\t\t'x-small',\n\t\t'small',\n\t\t'medium',\n\t\t'bottom',\n\t\t'large',\n\t]),\n};\n\nconst defaultProps = {\n\talign: 'left',\n\thoverCloseDelay: 300,\n\tlength: '5',\n\tmenuPosition: 'absolute',\n\topenOn: 'click',\n\twidth: 'medium',\n\tinverse: false,\n};\n\n/**\n * The MenuDropdown component is a variant of the Lightning Design System Menu component. This component\n * may require a polyfill such as [classList](https://github.com/yola/classlist-polyfill) due to\n * [react-onclickoutside](https://github.com/Pomax/react-onclickoutside) if Internet Explorer 11\n * support is needed.\n *\n * This component is wrapped in a [higher order component to listen for clicks outside itself](https://github.com/kentor/react-click-outside) and thus requires use of `ReactDOM`.\n */\nclass MenuDropdown extends React.Component {\n\tstatic displayName = MENU_DROPDOWN;\n\n\tconstructor(props) {\n\t\tsuper(props);\n\n\t\t// `checkProps` issues warnings to developers about properties (similar to React's built in development tools)\n\t\tcheckProps(MENU_DROPDOWN, props, componentDoc);\n\n\t\tthis.generatedId = shortid.generate();\n\n\t\tconst currentSelectedIndices = this.getCurrentSelectedIndices(props);\n\n\t\tthis.state = {\n\t\t\tfocusedIndex: -1,\n\t\t\tselectedIndex: -1,\n\t\t\tselectedIndices: [],\n\t\t\t...currentSelectedIndices,\n\t\t};\n\n\t\tthis.navigableItems = getNavigableItems(props.options);\n\t}\n\n\tcomponentDidUpdate(prevProps) {\n\t\tif (prevProps.value !== this.props.value) {\n\t\t\tconst nextState = this.getCurrentSelectedIndices(this.props);\n\t\t\t// eslint-disable-next-line react/no-did-update-set-state\n\t\t\tthis.setState(nextState);\n\t\t}\n\n\t\tif (prevProps.isOpen !== this.props.isOpen) {\n\t\t\tthis.setFocus();\n\t\t}\n\n\t\tif (!isEqual(prevProps.options, this.props.options)) {\n\t\t\tthis.navigableItems = getNavigableItems(this.props.options);\n\t\t}\n\t}\n\n\tcomponentWillUnmount() {\n\t\tif (currentOpenDropdown === this) {\n\t\t\tcurrentOpenDropdown = undefined;\n\t\t}\n\t\tthis.isUnmounting = true;\n\t\tthis.renderOverlay(false);\n\t}\n\n\tgetId = () => this.props.id || this.generatedId;\n\n\tgetIsOpen = () =>\n\t\t!!(typeof this.props.isOpen === 'boolean'\n\t\t\t? this.props.isOpen\n\t\t\t: this.state.isOpen);\n\n\tgetIndexByValue = (value, options) => {\n\t\tlet foundIndex = -1;\n\n\t\tif (options && options.length) {\n\t\t\toptions.some((element, index) => {\n\t\t\t\tif (element && element.value === value) {\n\t\t\t\t\tfoundIndex = index;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\t\t\t});\n\t\t}\n\n\t\treturn foundIndex;\n\t};\n\n\tgetValueByIndex = (index) => this.props.options[index];\n\n\tgetListItemRenderer = () =>\n\t\tthis.props.listItemRenderer ? this.props.listItemRenderer : ListItemLabel;\n\n\tgetListItemId = (index) => {\n\t\tlet menuItemId;\n\n\t\tif (index !== undefined) {\n\t\t\tconst menuId = isFunction(this.getId) ? this.getId() : this.props.id;\n\t\t\tmenuItemId = `${menuId}-item-${index}`;\n\t\t}\n\n\t\treturn menuItemId;\n\t};\n\n\tsetFocus = () => {\n\t\tif (!this.isHover && !this.isUnmounting && this.trigger) {\n\t\t\tReactDOM.findDOMNode(this.trigger).focus(); // eslint-disable-line react/no-find-dom-node\n\t\t}\n\t};\n\n\tgetMenu = () => ReactDOM.findDOMNode(this.list); // eslint-disable-line react/no-find-dom-node\n\n\tgetMenuItem = (index) => {\n\t\tif (index !== undefined && this.listItems) {\n\t\t\treturn ReactDOM.findDOMNode(this.listItems[index]); // eslint-disable-line react/no-find-dom-node\n\t\t}\n\n\t\treturn undefined;\n\t};\n\n\tgetCurrentSelectedIndices = (nextProps) => {\n\t\tif (this.props.multiple === true) {\n\t\t\tlet values = [];\n\t\t\tlet currentIndices = [];\n\t\t\tif (!Array.isArray(nextProps.value)) {\n\t\t\t\t// eslint-disable-next-line fp/no-mutating-methods\n\t\t\t\tvalues.push(nextProps.value);\n\t\t\t} else {\n\t\t\t\tvalues = nextProps.value;\n\t\t\t}\n\t\t\tvalues = values.filter(\n\t\t\t\t(value) => this.getIndexByValue(value, nextProps.options) !== -1\n\t\t\t);\n\t\t\tcurrentIndices = values.map((value) =>\n\t\t\t\tthis.getIndexByValue(value, nextProps.options)\n\t\t\t);\n\n\t\t\treturn {\n\t\t\t\tselectedIndices: currentIndices,\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\tselectedIndex: this.getIndexByValue(nextProps.value, nextProps.options),\n\t\t};\n\t};\n\n\t// Trigger opens, closes, and recieves focus on close\n\tsaveRefToTrigger = (trigger) => {\n\t\tthis.trigger = trigger;\n\n\t\tif (!this.state.triggerRendered) {\n\t\t\tthis.setState({ triggerRendered: true });\n\t\t}\n\n\t\tif (trigger && this.props.requestFocus && this.props.onRequestFocus) {\n\t\t\tthis.props.onRequestFocus(trigger);\n\t\t}\n\t};\n\n\t// TriggerContainer is the wrapping outer DOM element which may differ from the actual trigger which is most likely a `button`.\n\tsaveRefToTriggerContainer = (triggerContainer) => {\n\t\tthis.triggerContainer = triggerContainer;\n\t\tif (!this.trigger) this.trigger = triggerContainer;\n\t};\n\n\tsaveRefToList = (list) => {\n\t\tthis.list = list;\n\t};\n\n\tsaveRefToListItem = (listItem, index) => {\n\t\tif (!this.listItems) {\n\t\t\tthis.listItems = {};\n\t\t}\n\n\t\tthis.listItems[index] = listItem;\n\n\t\tif (index === this.state.focusedIndex) {\n\t\t\tthis.handleKeyboardFocus(this.state.focusedIndex);\n\t\t}\n\t};\n\n\thandleClose = () => {\n\t\tconst isOpen = this.getIsOpen();\n\n\t\tif (isOpen) {\n\t\t\tif (currentOpenDropdown === this) {\n\t\t\t\tcurrentOpenDropdown = undefined;\n\t\t\t}\n\n\t\t\tthis.setState({\n\t\t\t\tisOpen: false,\n\t\t\t});\n\n\t\t\tthis.isHover = false;\n\n\t\t\tif (this.props.onClose) {\n\t\t\t\tthis.props.onClose();\n\t\t\t}\n\t\t}\n\t};\n\n\thandleOpen = () => {\n\t\tconst isOpen = this.getIsOpen();\n\n\t\tif (!isOpen) {\n\t\t\tif (currentOpenDropdown && isFunction(currentOpenDropdown.handleClose)) {\n\t\t\t\tcurrentOpenDropdown.handleClose();\n\t\t\t}\n\n\t\t\tcurrentOpenDropdown = this;\n\n\t\t\tthis.setState({\n\t\t\t\tisOpen: true,\n\t\t\t});\n\n\t\t\tif (this.props.onOpen) {\n\t\t\t\tthis.props.onOpen();\n\t\t\t}\n\t\t}\n\t};\n\n\thandleMouseEnter = (event) => {\n\t\tconst isOpen = this.getIsOpen();\n\n\t\tthis.isHover = true;\n\n\t\tif (!isOpen && this.props.openOn === 'hover') {\n\t\t\tthis.handleOpenForHover();\n\t\t} else {\n\t\t\t// we want this clear when openOn is hover or hybrid\n\t\t\tclearTimeout(this.isClosing);\n\t\t}\n\n\t\tif (this.props.onMouseEnter) {\n\t\t\tthis.props.onMouseEnter(event);\n\t\t}\n\t};\n\n\thandleMouseLeave = (event) => {\n\t\tconst isOpen = this.getIsOpen();\n\n\t\tif (isOpen) {\n\t\t\tthis.isClosing = setTimeout(() => {\n\t\t\t\tthis.handleCloseForHover();\n\t\t\t}, this.props.hoverCloseDelay);\n\t\t}\n\n\t\tif (this.props.onMouseLeave) {\n\t\t\tthis.props.onMouseLeave(event);\n\t\t}\n\t};\n\n\t// Special handlers for openOn === hover\n\t// calling onClick inside onMouseEnter/Leave used to cause double clicking the trigger on hover which caused closing and reopening of the dropdown\n\thandleCloseForHover = () => {\n\t\tconst isOpen = this.getIsOpen();\n\t\tif (isOpen) {\n\t\t\tthis.handleClose();\n\t\t}\n\t};\n\n\thandleOpenForHover = () => {\n\t\tconst isOpen = this.getIsOpen();\n\n\t\tif (!isOpen) {\n\t\t\tthis.handleOpen();\n\t\t\tthis.setFocus();\n\t\t}\n\t};\n\n\thandleClick = (event) => {\n\t\tconst isOpen = this.getIsOpen();\n\n\t\tif (!isOpen) {\n\t\t\tthis.handleOpen();\n\t\t\tthis.setFocus();\n\t\t} else {\n\t\t\tthis.handleClose();\n\t\t}\n\n\t\tif (this.props.onClick) {\n\t\t\tthis.props.onClick(event);\n\t\t}\n\t};\n\n\thandleFocus = (event) => {\n\t\tif (this.props.onFocus) {\n\t\t\tthis.props.onFocus(event);\n\t\t}\n\t};\n\n\thandleClickCustomContent = () => {\n\t\tthis.setFocus();\n\t\tthis.handleClose();\n\n\t\tif (this.props.onSelect) {\n\t\t\tthis.props.onSelect();\n\t\t}\n\t};\n\n\thandleSelect = (index) => {\n\t\tif (!this.props.multiple) {\n\t\t\tthis.setState({ selectedIndex: index });\n\t\t\tthis.handleClose();\n\t\t\tthis.setFocus();\n\t\t} else if (\n\t\t\tthis.props.multiple &&\n\t\t\tthis.state.selectedIndices.indexOf(index) === -1\n\t\t) {\n\t\t\t// eslint-disable-next-line react/no-access-state-in-setstate\n\t\t\tconst currentIndices = this.state.selectedIndices.concat(index);\n\t\t\tthis.setState({\n\t\t\t\tselectedIndices: currentIndices,\n\t\t\t});\n\t\t} else if (this.props.multiple) {\n\t\t\tconst deselectIndex = this.state.selectedIndices.indexOf(index);\n\t\t\t// eslint-disable-next-line react/no-access-state-in-setstate\n\t\t\tconst currentSelected = this.state.selectedIndices;\n\t\t\t// eslint-disable-next-line fp/no-mutating-methods\n\t\t\tcurrentSelected.splice(deselectIndex, 1);\n\t\t\tthis.setState({\n\t\t\t\tselectedIndices: currentSelected,\n\t\t\t});\n\t\t}\n\n\t\tif (this.props.onSelect) {\n\t\t\tconst option = this.getValueByIndex(index);\n\t\t\tthis.props.onSelect(option, { option, optionIndex: index });\n\t\t}\n\t};\n\n\thandleKeyDown = (event) => {\n\t\tif (event.keyCode) {\n\t\t\tif (event.keyCode === KEYS.TAB) {\n\t\t\t\tthis.handleCancel();\n\t\t\t} else if (\n\t\t\t\tevent.keyCode === KEYS.ENTER ||\n\t\t\t\tevent.keyCode === KEYS.SPACE ||\n\t\t\t\tevent.keyCode === KEYS.DOWN ||\n\t\t\t\tevent.keyCode === KEYS.UP ||\n\t\t\t\tevent.keyCode === KEYS.ESCAPE\n\t\t\t) {\n\t\t\t\tEventUtil.trap(event);\n\t\t\t\tconst isOpen = this.getIsOpen();\n\t\t\t\tthis.handleKeyboardNavigate({\n\t\t\t\t\tevent,\n\t\t\t\t\tisOpen,\n\t\t\t\t\tkey: event.key,\n\t\t\t\t\tkeyCode: event.keyCode,\n\t\t\t\t\tonSelect: this.handleSelect,\n\t\t\t\t\ttarget: event.target,\n\t\t\t\t\ttoggleOpen: this.toggleOpen,\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (this.props.onKeyDown) {\n\t\t\t\tthis.props.onKeyDown(event);\n\t\t\t}\n\t\t}\n\t};\n\n\thandleCancel = () => {\n\t\tthis.setFocus();\n\t\tthis.handleClose();\n\t};\n\n\thandleClickOutside = () => {\n\t\tthis.handleClose();\n\t};\n\n\t// Handling open / close toggling is optional, and a default implementation is provided for handling focus, but selection _must_ be handled\n\thandleKeyboardNavigate = ({\n\t\tevent,\n\t\tisOpen = true,\n\t\tkeyCode,\n\t\tonFocus = this.handleKeyboardFocus,\n\t\tonSelect,\n\t\ttarget,\n\t\ttoggleOpen = noop,\n\t}) => {\n\t\tkeyboardNavigate({\n\t\t\tcomponentContext: this,\n\t\t\tcurrentFocusedIndex: this.state.focusedIndex,\n\t\t\tevent,\n\t\t\tisOpen,\n\t\t\tkeyCode,\n\t\t\tnavigableItems: this.navigableItems,\n\t\t\tonFocus,\n\t\t\tonSelect,\n\t\t\ttarget,\n\t\t\ttoggleOpen,\n\t\t});\n\t};\n\n\t// This is a bit of an anti-pattern, but it has the upside of being a nice default. Component authors can always override to only set state and do their own focusing in their subcomponents.\n\thandleKeyboardFocus = (focusedIndex) => {\n\t\tif (this.state.focusedIndex !== focusedIndex) {\n\t\t\tthis.setState({ focusedIndex });\n\t\t}\n\n\t\tconst menu = isFunction(this.getMenu) ? this.getMenu() : getMenu(this);\n\n\t\tconst menuItem = isFunction(this.getMenuItem)\n\t\t\t? this.getMenuItem(focusedIndex, menu)\n\t\t\t: getMenuItem(this.getListItemId(focusedIndex));\n\n\t\tif (menuItem) {\n\t\t\tthis.focusMenuItem(menuItem);\n\t\t\tthis.scrollToMenuItem(menu, menuItem);\n\t\t}\n\t};\n\n\tfocusMenuItem = (menuItem) => {\n\t\tmenuItem.getElementsByTagName('a')[0].focus();\n\t};\n\n\tscrollToMenuItem = (menu, menuItem) => {\n\t\tif (menu && menuItem) {\n\t\t\tconst menuHeight = menu.offsetHeight;\n\n\t\t\tconst menuTop = menu.scrollTop;\n\t\t\tconst menuItemTop = menuItem.offsetTop - menu.offsetTop;\n\n\t\t\tif (menuItemTop < menuTop) {\n\t\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\t\tmenu.scrollTop = menuItemTop;\n\t\t\t} else {\n\t\t\t\tconst menuBottom = menuTop + menuHeight + menu.offsetTop;\n\t\t\t\tconst menuItemBottom =\n\t\t\t\t\tmenuItemTop + menuItem.offsetHeight + menu.offsetTop;\n\n\t\t\t\tif (menuItemBottom > menuBottom) {\n\t\t\t\t\t// eslint-disable-next-line no-param-reassign\n\t\t\t\t\tmenu.scrollTop = menuItemBottom - menuHeight - menu.offsetTop;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\ttoggleOpen = () => {\n\t\tconst isOpen = this.getIsOpen();\n\t\tthis.setFocus();\n\n\t\tif (isOpen) {\n\t\t\tthis.handleClose();\n\t\t} else {\n\t\t\tthis.handleOpen();\n\t\t}\n\t};\n\n\trenderDefaultMenuContent = (customListProps) => (\n\t\t<List\n\t\t\tkey={`${this.getId()}-dropdown-list`}\n\t\t\tcheckmark={this.props.checkmark}\n\t\t\tgetListItemId={this.getListItemId}\n\t\t\titemRefs={this.saveRefToListItem}\n\t\t\titemRenderer={this.getListItemRenderer()}\n\t\t\tonCancel={this.handleCancel}\n\t\t\tonSelect={this.handleSelect}\n\t\t\toptions={this.props.options}\n\t\t\tref={this.saveRefToList}\n\t\t\tselectedIndex={\n\t\t\t\t!this.props.multiple ? this.state.selectedIndex : undefined\n\t\t\t}\n\t\t\tselectedIndices={\n\t\t\t\tthis.props.multiple ? this.state.selectedIndices : undefined\n\t\t\t}\n\t\t\ttooltipMenuItem={this.props.tooltipMenuItem}\n\t\t\ttriggerId={this.getId()}\n\t\t\tlength={this.props.length}\n\t\t\t{...customListProps}\n\t\t/>\n\t);\n\n\trenderMenuContent = (customContent) => {\n\t\t/**\n\t\t * Custom content for dropdown was a hack done in the past. If there's more than a listbox within a dropdown, then it should be a popover as explained for the `children` prop.\n\t\t *\n\t\t * This code block shows how things are done in the past:\n\t\t * ```\n\t\t * <Dropdown>\n\t\t * <Trigger>\n\t\t * <Button iconCategory=\"utility\" iconName=\"settings\" />\n\t\t * </Trigger>\n\t\t * <div>Look ma! This is Custom Content.</div>\n\t\t * <List options={[myArray]}/>\n\t\t * </Dropdown>\n\t\t * ```\n\t\t */\n\t\tlet customContentWithListPropInjection = [];\n\t\t// Dropdown can take a Trigger component as a child and then return it as the parent DOM element.\n\t\tReact.Children.forEach(customContent, (child) => {\n\t\t\tif (child && child.type.displayName === LIST) {\n\t\t\t\t// eslint-disable-next-line fp/no-mutating-methods\n\t\t\t\tcustomContentWithListPropInjection.push(\n\t\t\t\t\tthis.renderDefaultMenuContent(child.props)\n\t\t\t\t);\n\t\t\t} else if (child) {\n\t\t\t\tconst clonedCustomContent = React.cloneElement(child, {\n\t\t\t\t\tonClick: this.handleClickCustomContent,\n\t\t\t\t\tkey: shortid.generate(),\n\t\t\t\t});\n\t\t\t\t// eslint-disable-next-line fp/no-mutating-methods\n\t\t\t\tcustomContentWithListPropInjection.push(clonedCustomContent);\n\t\t\t}\n\t\t});\n\n\t\tif (customContentWithListPropInjection.length === 0) {\n\t\t\tcustomContentWithListPropInjection = null;\n\t\t}\n\n\t\treturn (\n\t\t\tcustomContentWithListPropInjection || this.renderDefaultMenuContent()\n\t\t);\n\t};\n\n\trenderDialog = (customContent, isOpen, outsideClickIgnoreClass) => {\n\t\tlet align = 'bottom';\n\t\tlet hasNubbin = false;\n\t\tlet positionClassName = '';\n\n\t\tif (this.props.nubbinPosition) {\n\t\t\thasNubbin = true;\n\t\t\talign = DropdownToDialogNubbinMapping[this.props.nubbinPosition];\n\t\t} else if (this.props.align) {\n\t\t\talign =\n\t\t\t\tthis.props.align === 'center' ? 'bottom' : `bottom ${this.props.align}`;\n\t\t}\n\n\t\tconst positions = DropdownToDialogNubbinMapping[align].split(' ');\n\t\tpositionClassName = classNames(\n\t\t\tpositions.map((position) => `slds-dropdown_${position}`)\n\t\t);\n\n\t\t// FOR BACKWARDS COMPATIBILITY\n\t\tconst menuPosition = this.props.isInline\n\t\t\t? 'relative'\n\t\t\t: this.props.menuPosition; // eslint-disable-line react/prop-types\n\n\t\tconst menuStylesBase = {};\n\t\tif (this.props.align === 'center' && !hasNubbin) {\n\t\t\tmenuStylesBase.transform = 'none';\n\t\t}\n\n\t\treturn isOpen ? (\n\t\t\t<Dialog\n\t\t\t\talign={align}\n\t\t\t\tclassName={classNames(this.props.containerClassName)}\n\t\t\t\tcloseOnTabKey\n\t\t\t\tcontentsClassName={classNames(\n\t\t\t\t\t'slds-dropdown',\n\t\t\t\t\t`slds-dropdown_${this.props.width}`,\n\t\t\t\t\t'slds-text-align_left',\n\t\t\t\t\t'ignore-react-onclickoutside',\n\t\t\t\t\tthis.props.className,\n\t\t\t\t\tpositionClassName,\n\t\t\t\t\t{\n\t\t\t\t\t\t'slds-dropdown_inverse': this.props.inverse,\n\t\t\t\t\t}\n\t\t\t\t)}\n\t\t\t\tcontext={this.context}\n\t\t\t\thasNubbin={hasNubbin}\n\t\t\t\thasStaticAlignment={this.props.hasStaticAlignment}\n\t\t\t\tinheritWidthOf={this.props.inheritTargetWidth ? 'target' : 'none'}\n\t\t\t\toffset={this.props.offset}\n\t\t\t\tonClose={this.handleClose}\n\t\t\t\tonKeyDown={this.handleKeyDown}\n\t\t\t\toutsideClickIgnoreClass={outsideClickIgnoreClass}\n\t\t\t\tposition={menuPosition}\n\t\t\t\tstyle={{\n\t\t\t\t\t...menuStylesBase,\n\t\t\t\t\t...this.props.menuStyle,\n\t\t\t\t}}\n\t\t\t\tonRequestTargetElement={() => this.trigger}\n\t\t\t>\n\t\t\t\t{this.renderMenuContent(customContent)}\n\t\t\t</Dialog>\n\t\t) : null;\n\t};\n\n\trenderOverlay = (isOpen) => {\n\t\tif (isFunction(overlay) && documentDefined) {\n\t\t\toverlay(isOpen, overlay);\n\t\t} else if (\n\t\t\tthis.props.overlay &&\n\t\t\tisOpen &&\n\t\t\t!this.overlay &&\n\t\t\tdocumentDefined\n\t\t) {\n\t\t\tthis.overlay = overlay;\n\t\t\tdocument.querySelector('body').appendChild(this.overlay);\n\t\t} else if (!isOpen && this.overlay && this.overlay.parentNode) {\n\t\t\tthis.overlay.parentNode.removeChild(this.overlay);\n\t\t\tthis.overlay = undefined;\n\t\t}\n\t};\n\n\trender() {\n\t\t// Dropdowns are used by other components. The default trigger is a button, but some other components use `li` elements. The following allows `MenuDropdown` to be extended by providing a child component with the displayName of `DropdownTrigger`.\n\t\tlet CurrentTrigger = DefaultTrigger;\n\n\t\tlet CustomTriggerChildProps = {};\n\n\t\t// Child elements that do not have the display name of the value of `MENU_DROPDOWN_TRIGGER` in `components/constants.js` will be considered custom content and rendered in the popover.\n\t\tlet customContent = [];\n\n\t\t// Dropdown can take a Trigger component as a child and then return it as the parent DOM element.\n\t\tReact.Children.forEach(this.props.children, (child) => {\n\t\t\tif (child && child.type.displayName === MENU_DROPDOWN_TRIGGER) {\n\t\t\t\t// `CustomTriggerChildProps` is not used by the default button Trigger, but by other triggers\n\t\t\t\tCustomTriggerChildProps = child.props;\n\t\t\t\tCurrentTrigger = child.type;\n\t\t\t} else if (child) {\n\t\t\t\t// eslint-disable-next-line fp/no-mutating-methods\n\t\t\t\tcustomContent.push(child);\n\t\t\t}\n\t\t});\n\n\t\tif (customContent.length === 0) {\n\t\t\tcustomContent = null;\n\t\t}\n\n\t\tconst outsideClickIgnoreClass = `ignore-click-${this.getId()}`;\n\t\tconst isOpen = !this.props.disabled && this.getIsOpen() && !!this.trigger;\n\n\t\tthis.renderOverlay(isOpen);\n\n\t\t/* Below are three sections of props:\n\t\t - The first are the props that may be given by the dropdown component. These may get deprecated in the future.\n\t\t - The next set of props (`CustomTriggerChildProps`) are props that can be overwritten by the end developer.\n\t\t - The final set are props that should not be overwritten, since they are ones that tie the trigger to the dropdown menu.\n\t\t*/\n\n\t\treturn (\n\t\t\t<CurrentTrigger\n\t\t\t\taria-haspopup\n\t\t\t\tassistiveText={this.props.assistiveText}\n\t\t\t\tclassName={classNames(\n\t\t\t\t\toutsideClickIgnoreClass,\n\t\t\t\t\tthis.props.buttonClassName\n\t\t\t\t)}\n\t\t\t\tdisabled={this.props.disabled}\n\t\t\t\thint={this.props.hint}\n\t\t\t\ticonCategory={this.props.iconCategory}\n\t\t\t\ticonName={this.props.iconName}\n\t\t\t\ticonPosition={this.props.iconPosition}\n\t\t\t\ticonSize={this.props.iconSize}\n\t\t\t\ticonVariant={this.props.iconVariant}\n\t\t\t\tid={this.getId()}\n\t\t\t\tinverse={this.props.buttonInverse}\n\t\t\t\tisOpen={isOpen}\n\t\t\t\tlabel={this.props.label}\n\t\t\t\tmenu={this.renderDialog(customContent, isOpen, outsideClickIgnoreClass)}\n\t\t\t\tonBlur={this.props.onBlur}\n\t\t\t\tonClick={\n\t\t\t\t\tthis.props.openOn === 'click' || this.props.openOn === 'hybrid'\n\t\t\t\t\t\t? this.handleClick\n\t\t\t\t\t\t: this.props.onClick\n\t\t\t\t}\n\t\t\t\tonFocus={this.handleFocus}\n\t\t\t\tonKeyDown={this.handleKeyDown}\n\t\t\t\tonMouseDown={this.props.onMouseDown}\n\t\t\t\tonMouseEnter={\n\t\t\t\t\tthis.props.openOn === 'hover' || this.props.openOn === 'hybrid'\n\t\t\t\t\t\t? this.handleMouseEnter\n\t\t\t\t\t\t: null\n\t\t\t\t}\n\t\t\t\tonMouseLeave={\n\t\t\t\t\tthis.props.openOn === 'hover' || this.props.openOn === 'hybrid'\n\t\t\t\t\t\t? this.handleMouseLeave\n\t\t\t\t\t\t: null\n\t\t\t\t}\n\t\t\t\topenOn={this.props.openOn}\n\t\t\t\tref={this.saveRefToTriggerContainer}\n\t\t\t\tstyle={this.props.style}\n\t\t\t\ttabIndex={this.props.tabIndex || (isOpen ? '-1' : '0')}\n\t\t\t\ttooltip={this.props.tooltip}\n\t\t\t\ttriggerClassName={this.props.triggerClassName}\n\t\t\t\ttriggerRef={this.saveRefToTrigger}\n\t\t\t\tvariant={this.props.buttonVariant}\n\t\t\t\t{...CustomTriggerChildProps}\n\t\t\t/>\n\t\t);\n\t}\n}\n\nMenuDropdown.contextType = IconSettingsContext;\nMenuDropdown.propTypes = propTypes;\nMenuDropdown.defaultProps = defaultProps;\n\nexport default MenuDropdown;\nexport { ListItem, ListItemLabel, DropdownNubbinPositions };\n"],"file":"menu-dropdown.js"}
|
package/module/components/portal-settings/__docs__/__snapshots__/storybook-stories.storyshot
CHANGED
|
@@ -20,6 +20,8 @@ exports[`DOM snapshots SLDSPortalSettings Default, not used 1`] = `
|
|
|
20
20
|
className="slds-combobox_container"
|
|
21
21
|
>
|
|
22
22
|
<div
|
|
23
|
+
aria-expanded={false}
|
|
24
|
+
aria-haspopup="listbox"
|
|
23
25
|
className="slds-combobox slds-dropdown-trigger slds-dropdown-trigger_click ignore-react-onclickoutside"
|
|
24
26
|
role="combobox"
|
|
25
27
|
>
|
|
@@ -30,8 +32,6 @@ exports[`DOM snapshots SLDSPortalSettings Default, not used 1`] = `
|
|
|
30
32
|
<input
|
|
31
33
|
aria-activedescendant={null}
|
|
32
34
|
aria-autocomplete="list"
|
|
33
|
-
aria-expanded={false}
|
|
34
|
-
aria-haspopup="listbox"
|
|
35
35
|
autoComplete="off"
|
|
36
36
|
className="slds-input slds-combobox__input"
|
|
37
37
|
id="combobox-base"
|
|
@@ -43,7 +43,7 @@ exports[`DOM snapshots SLDSPortalSettings Default, not used 1`] = `
|
|
|
43
43
|
placeholder="Search Salesforce"
|
|
44
44
|
readOnly={false}
|
|
45
45
|
required={false}
|
|
46
|
-
role="
|
|
46
|
+
role="textbox"
|
|
47
47
|
type="text"
|
|
48
48
|
value=""
|
|
49
49
|
/>
|
|
@@ -234,6 +234,8 @@ exports[`DOM snapshots SLDSPortalSettings Override 1`] = `
|
|
|
234
234
|
className="slds-combobox_container"
|
|
235
235
|
>
|
|
236
236
|
<div
|
|
237
|
+
aria-expanded={false}
|
|
238
|
+
aria-haspopup="listbox"
|
|
237
239
|
className="slds-combobox slds-dropdown-trigger slds-dropdown-trigger_click ignore-react-onclickoutside"
|
|
238
240
|
role="combobox"
|
|
239
241
|
>
|
|
@@ -244,8 +246,6 @@ exports[`DOM snapshots SLDSPortalSettings Override 1`] = `
|
|
|
244
246
|
<input
|
|
245
247
|
aria-activedescendant={null}
|
|
246
248
|
aria-autocomplete="list"
|
|
247
|
-
aria-expanded={false}
|
|
248
|
-
aria-haspopup="listbox"
|
|
249
249
|
autoComplete="off"
|
|
250
250
|
className="slds-input slds-combobox__input"
|
|
251
251
|
id="combobox-base"
|
|
@@ -257,7 +257,7 @@ exports[`DOM snapshots SLDSPortalSettings Override 1`] = `
|
|
|
257
257
|
placeholder="Search Salesforce"
|
|
258
258
|
readOnly={false}
|
|
259
259
|
required={false}
|
|
260
|
-
role="
|
|
260
|
+
role="textbox"
|
|
261
261
|
type="text"
|
|
262
262
|
value=""
|
|
263
263
|
/>
|
|
@@ -20,7 +20,7 @@ declare module '@salesforce/design-system-react/components/setup-assistant' {
|
|
|
20
20
|
/**
|
|
21
21
|
* Function to handle opening / closing of steps when the step is expandable. Passes event object and step `index`, `isOpen`, and `step` props as data.
|
|
22
22
|
*/
|
|
23
|
-
onStepToggleIsOpen?: (v: any) => any;
|
|
23
|
+
onStepToggleIsOpen?: (event: React.SyntheticEvent, v: any) => any;
|
|
24
24
|
/**
|
|
25
25
|
* Accepts a progress bar component, which will only be visible if `isCard` is enabled
|
|
26
26
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
|
|
2
|
+
|
|
3
|
+
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
4
|
+
export default {
|
|
5
|
+
"viewBox": "0 0 100 100",
|
|
6
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
7
|
+
"path": [{
|
|
8
|
+
"d": "M63.94 55.88A12.06 12.06 0 1076 67.94a12.06 12.06 0 00-12.1-12.06zm-.1 5.49h.06a1.8 1.8 0 11-1.8 1.8 1.77 1.77 0 011.74-1.8zM66.9 74a.54.54 0 01-.56.54H61.5a.56.56 0 01-.6-.5v-1.27a.65.65 0 01.6-.66.56.56 0 00.6-.5v-2.44a.65.65 0 00-.6-.66.56.56 0 01-.6-.5v-1.24a.65.65 0 01.6-.66h3.6a.66.66 0 01.6.66v4.8a.54.54 0 00.56.54.66.66 0 01.6.66z"
|
|
9
|
+
}, {
|
|
10
|
+
"d": "M63.55 51.55c1 0 2.78-.08 2.7-1.56-.07-1.15 0-6 0-8.08V22.39A2.39 2.39 0 0063.86 20H26.43A2.39 2.39 0 0024 22.35v49.74h22.13c1.38 0 1.73-1 1.65-2.43s-.61-7.82 3.73-12.85 11-5.26 12.04-5.26zM53.48 28.31a2.46 2.46 0 012.14-2.41h3.05a2.46 2.46 0 012.14 2.41v2.45a2.45 2.45 0 01-2.44 2.44h-2.45a2.45 2.45 0 01-2.44-2.44zm0 12a2.45 2.45 0 012.44-2.44h2.45a2.45 2.45 0 012.44 2.44v2.45a2.45 2.45 0 01-2.44 2.44h-2.45a2.45 2.45 0 01-2.44-2.44zM36.81 66.76a2.45 2.45 0 01-2.44 2.44h-2.45a2.45 2.45 0 01-2.44-2.44v-2.45a2.45 2.45 0 012.44-2.44h2.45a2.45 2.45 0 012.44 2.44zm0-12a2.45 2.45 0 01-2.44 2.44h-2.45a2.45 2.45 0 01-2.44-2.44v-2.45a2.45 2.45 0 012.44-2.44h2.45a2.45 2.45 0 012.44 2.44zm0-12a2.45 2.45 0 01-2.44 2.44h-2.45a2.45 2.45 0 01-2.44-2.44v-2.45a2.45 2.45 0 012.44-2.44h2.45a2.45 2.45 0 012.44 2.44zm0-12a2.45 2.45 0 01-2.44 2.44h-2.45a2.45 2.45 0 01-2.44-2.44v-2.45a2.46 2.46 0 012.14-2.41h3.05a2.46 2.46 0 012.14 2.41zm12 24a2.45 2.45 0 01-2.44 2.44h-2.45a2.45 2.45 0 01-2.44-2.44v-2.45a2.45 2.45 0 012.44-2.44h2.45a2.45 2.45 0 012.44 2.44zm0-12a2.45 2.45 0 01-2.44 2.44h-2.45a2.45 2.45 0 01-2.44-2.44v-2.45a2.45 2.45 0 012.44-2.44h2.45a2.45 2.45 0 012.44 2.44zm0-12a2.45 2.45 0 01-2.44 2.44h-2.45a2.45 2.45 0 01-2.44-2.44v-2.45a2.46 2.46 0 012.14-2.41h3.05a2.46 2.46 0 012.14 2.41z"
|
|
11
|
+
}]
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
|
|
2
|
+
|
|
3
|
+
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
4
|
+
export default {
|
|
5
|
+
"viewBox": "0 0 100 100",
|
|
6
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
7
|
+
"path": {
|
|
8
|
+
"d": "M21.88 20.6h5a1.88 1.88 0 011.88 1.88v38.74a1.87 1.87 0 01-1.87 1.87h-5A1.87 1.87 0 0120 61.22V22.47a1.87 1.87 0 011.88-1.87zM73.13 20.6h5A1.88 1.88 0 0180 22.47v38.75a1.88 1.88 0 01-1.88 1.88h-5a1.87 1.87 0 01-1.87-1.87V22.47a1.88 1.88 0 011.88-1.87zM64.38 20.6h-3.76a2 2 0 00-1.87 2v15.5a1.19 1.19 0 00.75 1.12 23.32 23.32 0 015.62 4.13c.38.37 1.13.12 1.13-.38V22.6a2 2 0 00-1.87-2zM47.62 37.1A14.67 14.67 0 0150 37a14.67 14.67 0 012.38.13 1.22 1.22 0 001.37-1.25V22.6a2 2 0 00-1.87-2h-3.76a2 2 0 00-1.87 2v13.25a1.22 1.22 0 001.37 1.25zM34.88 43.35a18.67 18.67 0 015.74-4.13 1.3 1.3 0 00.63-1.12V22.6a2 2 0 00-1.87-2h-3.76a2 2 0 00-1.87 2V43c0 .47.63.72 1.13.35zM50 43a15.86 15.86 0 00-15.84 15.79A15.84 15.84 0 1050 43zm8.93 12.27l-10.05 11a2.07 2.07 0 01-1.58.67 2.22 2.22 0 01-1.59-.67L40.36 61l-.1-.12a1 1 0 01.12-1.38l1.53-1.5a1.11 1.11 0 011.55 0l3.83 3.87 8.47-9.49a1.09 1.09 0 011.55 0l1.57 1.46a1.17 1.17 0 01.04 1.4z"
|
|
9
|
+
}
|
|
10
|
+
};
|
|
@@ -5,6 +5,7 @@ export default {
|
|
|
5
5
|
"viewBox": "0 0 100 100",
|
|
6
6
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
7
7
|
"path": {
|
|
8
|
-
"d": "
|
|
8
|
+
"d": "M71 24a2.46 2.46 0 012.41 2.41v24.44a7.77 7.77 0 01-1.66-.44 11.89 11.89 0 01-2.3-1.5C68.2 48 66.94 47 65.5 47a3.89 3.89 0 00-1.73.44v-6.77a.82.82 0 00-.24-.63.77.77 0 00-.61-.23h-1.83a.78.78 0 00-.52.23.82.82 0 00-.24.63v9.15a7.44 7.44 0 01-1.06.59 7.91 7.91 0 01-1.43.41V40.67a.86.86 0 10-1.72 0V51.1a16.22 16.22 0 00-1.63.31V40.67a.81.81 0 00-.23-.63.8.8 0 00-.62-.23H50.1a.8.8 0 00-.53.23.81.81 0 00-.23.63v13a.83.83 0 00.23.53.79.79 0 00.62.23h1.2a13.83 13.83 0 00-.31 1.57H37.21a.84.84 0 00-.53.24.79.79 0 00-.23.62v1a.79.79 0 00.86.76h13.32c-.07.22-.14.44-.22.65a11.89 11.89 0 01-1.5 2.3C48 62.8 47 64.06 47 65.5s1 2.7 1.91 3.93l.65.87h-7.27v2.49a2.46 2.46 0 01-2.4 2.41h-2.75a2.46 2.46 0 01-2.41-2.41v-2.4h-5.32A2.46 2.46 0 0127 68V26.41A2.46 2.46 0 0129.41 24zM53.64 39.81zm9.28 0zm-22.08 0h-.09a.79.79 0 01.62.23.81.81 0 01.23.63v12.88a.83.83 0 01-.23.63.81.81 0 01-.63.23h-3.43a.79.79 0 01-.86-.76v-13a.81.81 0 01.23-.63.83.83 0 01.53-.23h3.63zm5.16 0h-.09a.77.77 0 01.61.23.82.82 0 01.24.63v12.88a.83.83 0 01-.24.63.79.79 0 01-.62.23h-1.72a.79.79 0 01-.62-.23.84.84 0 01-.24-.53v-13a.82.82 0 01.24-.63.8.8 0 01.52-.23H46zm17.09-4.3zm.09 0a.79.79 0 01.52.24.77.77 0 01.24.62v.86a.77.77 0 01-.24.62.8.8 0 01-.62.24H37.31a.83.83 0 01-.63-.24.78.78 0 01-.23-.52v-1a.79.79 0 01.23-.62.84.84 0 01.53-.24h26zm5.4 17A5.43 5.43 0 0065.5 51a5.43 5.43 0 00-3.08 1.49 9 9 0 01-1.8 1.18 9.49 9.49 0 01-2.22.5 5.53 5.53 0 00-3.13 1.1 5.14 5.14 0 00-1.12 3.16 9.34 9.34 0 01-.48 2.19 9 9 0 01-1.18 1.8A5.43 5.43 0 0051 65.5a5.43 5.43 0 001.49 3.08 9 9 0 011.18 1.8 9.49 9.49 0 01.5 2.22 5.53 5.53 0 001.1 3.13 5.14 5.14 0 003.16 1.12 9.34 9.34 0 012.19.48 9 9 0 011.8 1.18A5.43 5.43 0 0065.5 80a5.43 5.43 0 003.08-1.49 9 9 0 011.8-1.18 9.49 9.49 0 012.22-.5 5.53 5.53 0 003.13-1.1 5.14 5.14 0 001.12-3.16 9.34 9.34 0 01.48-2.19 9 9 0 011.18-1.8A5.43 5.43 0 0080 65.5a5.43 5.43 0 00-1.49-3.08 9 9 0 01-1.18-1.8 9.49 9.49 0 01-.5-2.22 5.53 5.53 0 00-1.1-3.13 5.14 5.14 0 00-3.16-1.12 9.34 9.34 0 01-2.19-.48 9 9 0 01-1.8-1.18zm1.28 8.28a.71.71 0 011 0l1.06 1a.84.84 0 010 1l-6.68 7.41a1.37 1.37 0 01-1.06.46 1.48 1.48 0 01-1.06-.46l-3.61-3.6a.65.65 0 010-1l1-1a.72.72 0 011.06 0l2.56 2.61z",
|
|
9
|
+
"fill-rule": "evenodd"
|
|
9
10
|
}
|
|
10
11
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
|
|
2
|
+
|
|
3
|
+
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
4
|
+
export default {
|
|
5
|
+
"viewBox": "0 0 100 100",
|
|
6
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
7
|
+
"path": {
|
|
8
|
+
"d": "M39.5 63.4a1.87 1.87 0 002.6 0l12.5-12.5a2.61 2.61 0 013.5 0 2.66 2.66 0 01.1 3.7l-.1.1-15.4 15.1a8.81 8.81 0 01-12.4 0l-.1-.1a8.81 8.81 0 010-12.4l27.2-27.2a8.81 8.81 0 0112.4 0l.1.1a8.81 8.81 0 010 12.4l-.1.1a1.82 1.82 0 00-.3 2.2 21.38 21.38 0 011.8 4.4 1.22 1.22 0 001.5.9l.6-.3c1-1 1.9-2 1.9-2a16.3 16.3 0 000-23.1H75a16.3 16.3 0 00-23.1 0l-27.1 27a16.3 16.3 0 000 23.1l.3.3a16.15 16.15 0 0022.9.1l.1-.1 15.4-15.4a10.18 10.18 0 10-14.2-14.6l-.4.4L36.6 58a2.13 2.13 0 000 2.8z"
|
|
9
|
+
}
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
|
|
2
|
+
|
|
3
|
+
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
4
|
+
export default {
|
|
5
|
+
"viewBox": "0 0 100 100",
|
|
6
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
7
|
+
"path": {
|
|
8
|
+
"d": "M75.63 20H24.38a1.93 1.93 0 00-1.88 1.88v6.25A1.92 1.92 0 0024.38 30h51.25a1.92 1.92 0 001.87-1.87v-6.25A1.93 1.93 0 0075.63 20zm-40 15H24.38a1.93 1.93 0 00-1.88 1.88v3.75a1.92 1.92 0 001.88 1.87h11.25a1.92 1.92 0 001.87-1.87v-3.75A1.93 1.93 0 0035.63 35zm20 0H44.38a1.92 1.92 0 00-1.88 1.88v3.75a1.92 1.92 0 001.88 1.87h11.24a1.92 1.92 0 001.88-1.87v-3.75A1.92 1.92 0 0055.62 35zm20 0H64.37a1.93 1.93 0 00-1.87 1.88v3.75a1.92 1.92 0 001.87 1.87h11.26a1.92 1.92 0 001.87-1.87v-3.75A1.93 1.93 0 0075.63 35zm-40 12.5H24.38a1.92 1.92 0 00-1.88 1.88v3.75A1.93 1.93 0 0024.38 55h11.25a1.93 1.93 0 001.87-1.87v-3.75a1.92 1.92 0 00-1.87-1.88zm20 0H44.38a1.92 1.92 0 00-1.88 1.88v3.75A1.92 1.92 0 0044.38 55h11.24a1.92 1.92 0 001.88-1.87v-3.75a1.92 1.92 0 00-1.88-1.88zm20 0H64.37a1.92 1.92 0 00-1.87 1.88v3.75A1.93 1.93 0 0064.37 55h11.26a1.93 1.93 0 001.87-1.87v-3.75a1.92 1.92 0 00-1.87-1.88zm-40 12.5H24.38a1.93 1.93 0 00-1.88 1.88v3.75a1.92 1.92 0 001.88 1.87h11.25a1.92 1.92 0 001.87-1.87v-3.75A1.93 1.93 0 0035.63 60zm20 0H44.38a1.92 1.92 0 00-1.88 1.88v3.75a1.92 1.92 0 001.88 1.87h11.24a1.92 1.92 0 001.88-1.87v-3.75A1.92 1.92 0 0055.62 60zm20 0H64.37a1.93 1.93 0 00-1.87 1.88v3.75a1.92 1.92 0 001.87 1.87h11.26a1.92 1.92 0 001.87-1.87v-3.75A1.93 1.93 0 0075.63 60zm-40 12.5H24.38a1.93 1.93 0 00-1.88 1.87v3.76A1.92 1.92 0 0024.38 80h11.25a1.92 1.92 0 001.87-1.87v-3.76a1.93 1.93 0 00-1.87-1.87zm20 0H44.38a1.92 1.92 0 00-1.88 1.87v3.76A1.92 1.92 0 0044.38 80h11.24a1.92 1.92 0 001.88-1.87v-3.76a1.92 1.92 0 00-1.88-1.87zm20 0H64.37a1.93 1.93 0 00-1.87 1.87v3.76A1.92 1.92 0 0064.37 80h11.26a1.92 1.92 0 001.87-1.87v-3.76a1.93 1.93 0 00-1.87-1.87z"
|
|
9
|
+
}
|
|
10
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
|
|
2
|
+
|
|
3
|
+
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
4
|
+
export default {
|
|
5
|
+
"viewBox": "0 0 100 100",
|
|
6
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
7
|
+
"path": {
|
|
8
|
+
"d": "M62 20H38a.89.89 0 00-.87.88v2.91a.89.89 0 00.87.88h24a.9.9 0 00.87-.88v-2.91A.9.9 0 0062 20zM43.29 27H38a.89.89 0 00-.87.88v1.74a.89.89 0 00.87.88h5.25a.9.9 0 00.88-.88v-1.74a.9.9 0 00-.84-.88zM52.62 27h-5.24a.9.9 0 00-.88.88v1.74a.9.9 0 00.88.88h5.24a.9.9 0 00.88-.88v-1.74a.9.9 0 00-.88-.88zM62 27h-5.29a.9.9 0 00-.88.88v1.74a.9.9 0 00.88.88H62a.9.9 0 00.87-.88v-1.74A.9.9 0 0062 27zM43.29 32.83H38a.89.89 0 00-.87.88v1.75a.89.89 0 00.87.87h5.25a.9.9 0 00.88-.87v-1.75a.9.9 0 00-.84-.88zM52.62 32.83h-5.24a.9.9 0 00-.88.88v1.75a.9.9 0 00.88.87h5.24a.9.9 0 00.88-.87v-1.75a.9.9 0 00-.88-.88zM62 32.83h-5.29a.9.9 0 00-.88.88v1.75a.9.9 0 00.88.87H62a.9.9 0 00.87-.87v-1.75a.9.9 0 00-.87-.88zM43.29 38.67H38a.89.89 0 00-.87.87v1.75a.89.89 0 00.87.88h5.25a.9.9 0 00.88-.88v-1.75a.9.9 0 00-.84-.87zM52.62 38.67h-5.24a.9.9 0 00-.88.87v1.75a.9.9 0 00.88.88h5.24a.9.9 0 00.88-.88v-1.75a.9.9 0 00-.88-.87zM62 38.67h-5.29a.9.9 0 00-.88.87v1.75a.9.9 0 00.88.88H62a.9.9 0 00.87-.88v-1.75a.9.9 0 00-.87-.87zM43.29 44.5H38a.89.89 0 00-.87.88v1.75A.89.89 0 0038 48h5.25a.9.9 0 00.88-.87v-1.75a.9.9 0 00-.84-.88zM52.62 44.5h-5.24a.9.9 0 00-.88.88v1.75a.9.9 0 00.88.87h5.24a.9.9 0 00.88-.87v-1.75a.9.9 0 00-.88-.88zM62 44.5h-5.29a.9.9 0 00-.88.88v1.75a.9.9 0 00.88.87H62a.9.9 0 00.87-.87v-1.75a.9.9 0 00-.87-.88zM75.11 57.45H51.5v-5.32a1.5 1.5 0 10-3 0v5.32H24.89a1.5 1.5 0 00-1.5 1.5v7.86a1.5 1.5 0 003 0v-6.36H48.5v5.16a1.5 1.5 0 003 0v-5.16h22.11v6.36a1.5 1.5 0 003 0V59a1.5 1.5 0 00-1.5-1.55z"
|
|
9
|
+
},
|
|
10
|
+
"circle": [{
|
|
11
|
+
"cx": "24.89",
|
|
12
|
+
"cy": "74.71",
|
|
13
|
+
"r": "4.89"
|
|
14
|
+
}, {
|
|
15
|
+
"cx": "49.82",
|
|
16
|
+
"cy": "74.71",
|
|
17
|
+
"r": "4.89"
|
|
18
|
+
}, {
|
|
19
|
+
"cx": "75.11",
|
|
20
|
+
"cy": "74.71",
|
|
21
|
+
"r": "4.89"
|
|
22
|
+
}]
|
|
23
|
+
};
|