lightning-base-components 1.18.8-alpha → 1.19.1-alpha
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/README.md +1 -1
- package/metadata/raptor.json +51 -1
- package/package.json +25 -1
- package/scopedImports/@salesforce-internal-core.appVersion.js +1 -1
- package/scopedImports/@salesforce-label-LightningProgressRing.complete.js +1 -0
- package/scopedImports/@salesforce-label-LightningProgressRing.expired.js +1 -0
- package/scopedImports/@salesforce-label-LightningProgressRing.warning.js +1 -0
- package/scopedImports/@salesforce-label-LightningRecordPicker.defaultSelectedRecordErrorMessage.js +1 -0
- package/scopedImports/@salesforce-label-LightningRecordPicker.invalidConfigurationErrorMessage.js +1 -1
- package/scopedImports/@salesforce-label-LightningRecordPicker.loadingPlaceholder.js +1 -0
- package/scopedImports/@salesforce-label-LightningRecordPicker.messageWhenBadInputDefault.js +1 -0
- package/scopedImports/@salesforce-label-LightningServiceCloudVoiceToolkitApi.missingNbaParams.js +1 -1
- package/src/lightning/accordion/__docs__/accordion.md +2 -2
- package/src/lightning/accordion/accordion.slds.css +30 -29
- package/src/lightning/accordionSection/__docs__/accordionSection.md +1 -1
- package/src/lightning/accordionSection/accordion-section.slds.css +26 -24
- package/src/lightning/avatar/__docs__/avatar.md +1 -1
- package/src/lightning/avatar/avatar.slds.css +21 -22
- package/src/lightning/badge/__docs__/badge.md +1 -1
- package/src/lightning/barcodeScanner/__docs__/barcodeScanner.md +2 -2
- package/src/lightning/baseCombobox/base-combobox.slds.css +48 -71
- package/src/lightning/baseCombobox/baseCombobox.js +20 -7
- package/src/lightning/baseComboboxItem/listbox.slds.css +10 -25
- package/src/lightning/breadcrumb/breadcrumb.slds.css +2 -2
- package/src/lightning/breadcrumbs/__docs__/breadcrumbs.md +3 -3
- package/src/lightning/breadcrumbs/breadcrumbs.slds.css +4 -3
- package/src/lightning/button/__docs__/button.md +8 -8
- package/src/lightning/button/button.js +1 -0
- package/src/lightning/button/button.slds.css +3 -3
- package/src/lightning/buttonGroup/__docs__/buttonGroup.md +1 -1
- package/src/lightning/buttonIcon/__docs__/buttonIcon.md +1 -1
- package/src/lightning/buttonIcon/button-icon.slds.css +6 -6
- package/src/lightning/buttonIcon/buttonIcon.js +1 -0
- package/src/lightning/buttonIconStateful/__docs__/buttonIconStateful.md +1 -1
- package/src/lightning/buttonIconStateful/button-icon-stateful.slds.css +6 -6
- package/src/lightning/buttonIconStateful/buttonIconStateful.css +4 -0
- package/src/lightning/buttonMenu/__docs__/buttonMenu.md +3 -1
- package/src/lightning/buttonMenu/button-menu.slds.css +42 -51
- package/src/lightning/buttonMenu/buttonMenu.js +4 -1
- package/src/lightning/buttonStateful/__docs__/buttonStateful.md +2 -2
- package/src/lightning/buttonStateful/button-stateful.slds.css +19 -22
- package/src/lightning/calendar/calendar.slds.css +39 -48
- package/src/lightning/card/__docs__/card.md +5 -5
- package/src/lightning/card/card.slds.css +37 -18
- package/src/lightning/colorPickerCustom/color-picker-custom.slds.css +3 -3
- package/src/lightning/colorPickerPanel/popover.slds.css +1 -1
- package/src/lightning/combobox/__docs__/combobox.md +2 -0
- package/src/lightning/combobox/combobox.html +3 -2
- package/src/lightning/combobox/combobox.js +2 -0
- package/src/lightning/combobox/form-element.slds.css +23 -24
- package/src/lightning/datatable/__docs__/datatable.md +63 -8
- package/src/lightning/datepicker/datepicker.html +1 -1
- package/src/lightning/datepicker/datepicker.js +8 -0
- package/src/lightning/datepicker/form-element.slds.css +23 -24
- package/src/lightning/datepicker/input-text.slds.css +16 -16
- package/src/lightning/datetimepicker/form-element.slds.css +23 -24
- package/src/lightning/datetimepicker/input-text.slds.css +16 -16
- package/src/lightning/dialog/README.md +1 -1
- package/src/lightning/dualListbox/__docs__/dualListbox.md +1 -1
- package/src/lightning/dualListbox/dual-listbox.slds.css +4 -13
- package/src/lightning/dualListbox/form-element.slds.css +23 -24
- package/src/lightning/dualListbox/listbox.slds.css +10 -25
- package/src/lightning/dynamicIcon/dynamic-icon-ellie.slds.css +2 -2
- package/src/lightning/dynamicIcon/dynamic-icon-eq.slds.css +1 -1
- package/src/lightning/dynamicIcon/dynamic-icon-trend.slds.css +1 -1
- package/src/lightning/formattedDateTime/__docs__/formattedDateTime.md +1 -1
- package/src/lightning/formattedNumber/__docs__/formattedNumber.md +1 -1
- package/src/lightning/formattedRichText/formatted-rich-text.slds.css +0 -2
- package/src/lightning/helptext/form-element.slds.css +23 -24
- package/src/lightning/helptext/help-text.slds.css +6 -6
- package/src/lightning/icon/__docs__/icon.md +2 -2
- package/src/lightning/icon/icon.html +9 -3
- package/src/lightning/icon/icon.js +16 -12
- package/src/lightning/icon/icon.slds.css +14 -14
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/attribute_based_pricing.html +10 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/bundles_pricing.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/dynamic_highlights_panel.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/header_discounts.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/impact_outcome.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/impact_strategy.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/impact_strategy_assignment.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/indicator_assignment.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/indicator_definition.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/indicator_result.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/manual_discounts.html +9 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/no_code_model.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/outcome_activity.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/panel_detail.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/price_adjustment_matrix.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/registered_model.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/repeaters.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/scheduling_workspace.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/story.html +4 -2
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/time_period.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/travel_mode.html +2 -2
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/uploaded_model.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/volume_discounts.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/standard/walkthroughs.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/templates.js +38 -1
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/apex_alt.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/data_transforms.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/edit_gpt.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/einstein.html +4 -2
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/guidance.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/mixed_sources_mapping.html +8 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/page_structure.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/sparkles.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/visibility_rule_assigned.html +7 -0
- package/src/lightning/iconSvgTemplates/buildTemplates/utility/walkthroughs.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/attribute_based_pricing.html +10 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/bundles_pricing.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/dynamic_highlights_panel.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/header_discounts.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/impact_outcome.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/impact_strategy.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/impact_strategy_assignment.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/indicator_assignment.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/indicator_definition.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/indicator_result.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/manual_discounts.html +9 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/no_code_model.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/outcome_activity.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/panel_detail.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/price_adjustment_matrix.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/registered_model.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/repeaters.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/scheduling_workspace.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/story.html +4 -2
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/time_period.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/travel_mode.html +2 -2
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/uploaded_model.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/volume_discounts.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/standard/walkthroughs.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/templates.js +38 -1
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/apex_alt.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/data_transforms.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/edit_gpt.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/einstein.html +4 -2
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/guidance.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/mixed_sources_mapping.html +8 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/page_structure.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/sparkles.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/visibility_rule_assigned.html +7 -0
- package/src/lightning/iconSvgTemplatesRtl/buildTemplates/utility/walkthroughs.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/attribute_based_pricing.html +10 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/bundles_pricing.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/dynamic_highlights_panel.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/header_discounts.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/impact_outcome.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/impact_strategy.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/impact_strategy_assignment.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/indicator_assignment.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/indicator_definition.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/indicator_result.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/manual_discounts.html +9 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/no_code_model.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/outcome_activity.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/panel_detail.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/price_adjustment_matrix.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/registered_model.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/repeaters.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/scheduling_workspace.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/story.html +4 -2
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/time_period.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/travel_mode.html +2 -2
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/uploaded_model.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/volume_discounts.html +7 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/standard/walkthroughs.html +8 -0
- package/src/lightning/iconSvgTemplatesStandard/buildTemplates/templates.js +26 -1
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/attribute_based_pricing.html +10 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/bundles_pricing.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/dynamic_highlights_panel.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/header_discounts.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/impact_outcome.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/impact_strategy.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/impact_strategy_assignment.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/indicator_assignment.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/indicator_definition.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/indicator_result.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/manual_discounts.html +9 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/no_code_model.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/outcome_activity.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/panel_detail.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/price_adjustment_matrix.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/registered_model.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/repeaters.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/scheduling_workspace.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/story.html +4 -2
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/time_period.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/travel_mode.html +2 -2
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/uploaded_model.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/volume_discounts.html +7 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/standard/walkthroughs.html +8 -0
- package/src/lightning/iconSvgTemplatesStandardRtl/buildTemplates/templates.js +26 -1
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/templates.js +13 -1
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/apex_alt.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/data_transforms.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/edit_gpt.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/einstein.html +4 -2
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/guidance.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/mixed_sources_mapping.html +8 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/page_structure.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/sparkles.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/visibility_rule_assigned.html +7 -0
- package/src/lightning/iconSvgTemplatesUtility/buildTemplates/utility/walkthroughs.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/templates.js +13 -1
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/apex_alt.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/data_cloud.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/data_graph.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/data_transforms.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/edit_gpt.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/einstein.html +4 -2
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/guidance.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/indicator_performance_period.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/mixed_sources_mapping.html +8 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/page_structure.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/sparkles.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/visibility_rule_assigned.html +7 -0
- package/src/lightning/iconSvgTemplatesUtilityRtl/buildTemplates/utility/walkthroughs.html +8 -0
- package/src/lightning/iconUtils/iconColors.js +1 -0
- package/src/lightning/iconUtils/iconUtils.js +10 -0
- package/src/lightning/input/__docs__/input.md +11 -6
- package/src/lightning/input/form-element.slds.css +23 -24
- package/src/lightning/input/input.html +2 -3
- package/src/lightning/input/input.js +14 -10
- package/src/lightning/inputAddress/__docs__/inputAddress.md +5 -5
- package/src/lightning/inputName/__docs__/inputName.md +4 -4
- package/src/lightning/layoutItem/__docs__/layoutItem.md +1 -1
- package/src/lightning/menuItem/menu-item.slds.css +3 -3
- package/src/lightning/modal/__docs__/migration.md +9 -9
- package/src/lightning/modal/__docs__/modal.md +5 -5
- package/src/lightning/modal/__modalUtils__/modalContainerTestConstants.js +2 -4
- package/src/lightning/modal/__modalUtils__/modalContainerTestMethods.js +96 -58
- package/src/lightning/modalBase/modalBase.js +26 -76
- package/src/lightning/modalBody/__docs__/modalBody.md +3 -3
- package/src/lightning/modalBody/modalBody.js +33 -36
- package/src/lightning/modalFooter/__docs__/modalFooter.md +3 -3
- package/src/lightning/modalFooter/modalFooter.js +1 -76
- package/src/lightning/modalHeader/__docs__/modalHeader.md +3 -3
- package/src/lightning/modalHeader/modalHeader.js +0 -68
- package/src/lightning/navigation/__docs__/navigation.md +3 -3
- package/src/lightning/pill/__docs__/pill.md +2 -2
- package/src/lightning/pill/avatar.slds.css +21 -22
- package/src/lightning/pill/pill.slds.css +17 -9
- package/src/lightning/pillContainer/__docs__/pillContainer.md +1 -1
- package/src/lightning/pillContainer/listbox.slds.css +10 -25
- package/src/lightning/pillContainer/pill-container.slds.css +19 -8
- package/src/lightning/pillContainer/pill.slds.css +17 -9
- package/src/lightning/popup/popover.slds.css +1 -1
- package/src/lightning/primitiveBubble/tooltip.slds.css +14 -23
- package/src/lightning/primitiveButton/primitiveButton.js +5 -1
- package/src/lightning/primitiveColorpickerButton/color-picker-button.slds.css +14 -14
- package/src/lightning/primitiveIcon/icon.slds.css +14 -14
- package/src/lightning/primitiveInputCheckbox/form-element.slds.css +23 -24
- package/src/lightning/primitiveInputCheckbox/input-checkbox.slds.css +7 -7
- package/src/lightning/primitiveInputCheckboxButton/form-element.slds.css +23 -24
- package/src/lightning/primitiveInputCheckboxButton/input-checkbox-button.slds.css +1 -6
- package/src/lightning/primitiveInputColor/form-element.slds.css +23 -24
- package/src/lightning/primitiveInputColor/input-color.slds.css +3 -3
- package/src/lightning/primitiveInputColor/input-text.slds.css +16 -16
- package/src/lightning/primitiveInputColor/primitiveInputColor.html +1 -1
- package/src/lightning/primitiveInputFile/button.slds.css +3 -3
- package/src/lightning/primitiveInputFile/form-element.slds.css +23 -24
- package/src/lightning/primitiveInputFile/input-file.slds.css +2 -2
- package/src/lightning/primitiveInputSimple/form-element.slds.css +23 -24
- package/src/lightning/primitiveInputSimple/input-text.slds.css +16 -16
- package/src/lightning/primitiveInputSimple/mobileInputUtils.js +24 -0
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.html +1 -1
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.js +82 -13
- package/src/lightning/primitiveInputToggle/form-element.slds.css +23 -24
- package/src/lightning/progressRing/progressRing.js +16 -3
- package/src/lightning/radioGroup/input-radio-group.slds.css +12 -13
- package/src/lightning/relativeDateTime/__docs__/relativeDateTime.md +1 -1
- package/src/lightning/select/__docs__/select.md +1 -1
- package/src/lightning/select/form-element.slds.css +23 -24
- package/src/lightning/select/select.slds.css +26 -27
- package/src/lightning/spinner/spinner.slds.css +5 -8
- package/src/lightning/tab/__docs__/tab.md +1 -1
- package/src/lightning/tab/tab.slds.css +8 -8
- package/src/lightning/tabBar/tab-bar.slds.css +31 -35
- package/src/lightning/tabset/__docs__/tabset.md +2 -2
- package/src/lightning/textarea/textarea.css +2 -1
- package/src/lightning/textarea/textarea.html +1 -1
- package/src/lightning/textarea/textarea.js +4 -1
- package/src/lightning/tile/__docs__/tile.md +1 -1
- package/src/lightning/timepicker/form-element.slds.css +23 -24
- package/src/lightning/toast/button-icon.slds.css +6 -6
- package/src/lightning/toast/formatted-rich-text.slds.css +0 -2
- package/src/lightning/toast/icon.slds.css +14 -14
- package/src/lightning/toast/toast.slds.css +101 -95
- package/src/lightning/toastContainer/toast.slds.css +101 -95
- package/src/lightning/utilsPrivate/utilsPrivate.js +9 -0
- package/src/lightning/icon/iconColors.js +0 -1
|
@@ -8,13 +8,6 @@ const hideClass = 'slds-hide';
|
|
|
8
8
|
// selectors
|
|
9
9
|
const footerSelector = `.${footerClass}`;
|
|
10
10
|
const footerSlotSelector = '[data-footer-slot]';
|
|
11
|
-
// timeout footer height check
|
|
12
|
-
// checking quickly yields faster resolution of correct
|
|
13
|
-
// footer (not a typo) placement
|
|
14
|
-
const SIZE_CHECK_TIMER = 50;
|
|
15
|
-
// limited to 4 quick checks totalling 200 ms, which catches
|
|
16
|
-
// any misreported heights based on reflow of content in modalFooter
|
|
17
|
-
const MAX_HEIGHT_CHECKS = 4;
|
|
18
11
|
|
|
19
12
|
/**
|
|
20
13
|
* The modal footer component to display footer content in lightning modal.
|
|
@@ -25,9 +18,6 @@ export default class LightningModalFooter extends LightningElement {
|
|
|
25
18
|
initialSlotRender = true;
|
|
26
19
|
hideFooter = false;
|
|
27
20
|
unregisterCallback = null;
|
|
28
|
-
footerHeightTracked = 0;
|
|
29
|
-
footerHeightChecked = 0;
|
|
30
|
-
timeoutId = 0;
|
|
31
21
|
|
|
32
22
|
/**
|
|
33
23
|
* Handle the default slot change event
|
|
@@ -67,9 +57,7 @@ export default class LightningModalFooter extends LightningElement {
|
|
|
67
57
|
const divElem = this.template.querySelector(footerSelector);
|
|
68
58
|
const footerRect = divElem ? divElem.getBoundingClientRect() : {};
|
|
69
59
|
const { height } = footerRect;
|
|
70
|
-
|
|
71
|
-
this.footerHeightTracked = heightValue;
|
|
72
|
-
return heightValue;
|
|
60
|
+
return height || 0;
|
|
73
61
|
}
|
|
74
62
|
|
|
75
63
|
/**
|
|
@@ -113,20 +101,6 @@ export default class LightningModalFooter extends LightningElement {
|
|
|
113
101
|
return firstElem;
|
|
114
102
|
}
|
|
115
103
|
|
|
116
|
-
/**
|
|
117
|
-
* if not the intial render, check for footer height chnage,
|
|
118
|
-
* when a window resize occurs
|
|
119
|
-
* @returns {Object}
|
|
120
|
-
* @private
|
|
121
|
-
*/
|
|
122
|
-
handleModalFooterResizeCheck() {
|
|
123
|
-
// when not intial render, and footer height changed
|
|
124
|
-
// return the tracked value, otherwise indicate no change
|
|
125
|
-
return !this.initialRender && this.hasFooterHeightChanged()
|
|
126
|
-
? { changed: true, value: this.footerHeightTracked }
|
|
127
|
-
: { changed: false, value: null };
|
|
128
|
-
}
|
|
129
|
-
|
|
130
104
|
/**
|
|
131
105
|
* Register modalFooter with modal parent, including callbacks to
|
|
132
106
|
* unregister the modal footer
|
|
@@ -143,8 +117,6 @@ export default class LightningModalFooter extends LightningElement {
|
|
|
143
117
|
defaultSlotIsPopulated: this.isDefaultSlotPopulated,
|
|
144
118
|
defaultSlotHasRendered: !this.initialSlotRender,
|
|
145
119
|
firstTabbableElemRef: this.firstTabbableElement,
|
|
146
|
-
checkFooterHeightCallback:
|
|
147
|
-
this.handleModalFooterResizeCheck.bind(this),
|
|
148
120
|
unRegisterCallback: (unregisterCallback) => {
|
|
149
121
|
this.unregisterCallback = unregisterCallback;
|
|
150
122
|
},
|
|
@@ -153,46 +125,6 @@ export default class LightningModalFooter extends LightningElement {
|
|
|
153
125
|
this.dispatchEvent(evtRegister);
|
|
154
126
|
}
|
|
155
127
|
|
|
156
|
-
/**
|
|
157
|
-
* Provide a means to check whether the tracked footer height
|
|
158
|
-
* is different than the current footer height to only call modalBase
|
|
159
|
-
* when there is a change in footer height
|
|
160
|
-
* @private
|
|
161
|
-
*/
|
|
162
|
-
hasFooterHeightChanged() {
|
|
163
|
-
// note: calling this.footerHeight updates this.footerHeightTracked
|
|
164
|
-
// order of values checked here is required
|
|
165
|
-
const previousRenderedHeight = this.footerHeightTracked;
|
|
166
|
-
const currentRenderedHeight = this.footerHeight;
|
|
167
|
-
return currentRenderedHeight !== previousRenderedHeight;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* On first render, provide a quick means of updating modalBase,
|
|
172
|
-
* if the modalFooter height changes.
|
|
173
|
-
* In rare cases, the height of the footer between the
|
|
174
|
-
* normal or full size rendering can change depending on
|
|
175
|
-
* content of footer and window width
|
|
176
|
-
* @private
|
|
177
|
-
*/
|
|
178
|
-
scheduleFooterHeightCheck() {
|
|
179
|
-
if (this.initialRender && this.timeoutId === 0) {
|
|
180
|
-
// eslint-disable-next-line @lwc/lwc/no-async-operation
|
|
181
|
-
this.timeoutId = setInterval(() => {
|
|
182
|
-
if (this.footerHeightChecked >= MAX_HEIGHT_CHECKS) {
|
|
183
|
-
clearTimeout(this.timeoutId);
|
|
184
|
-
this.timeoutId = 0;
|
|
185
|
-
this.footerHeightChecked = 0;
|
|
186
|
-
} else {
|
|
187
|
-
this.footerHeightChecked++;
|
|
188
|
-
if (this.hasFooterHeightChanged()) {
|
|
189
|
-
this.registerWithParent();
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}, SIZE_CHECK_TIMER);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
128
|
/**
|
|
197
129
|
* When modal footer is being created, initialize
|
|
198
130
|
* private tracked modal footer state
|
|
@@ -205,9 +137,6 @@ export default class LightningModalFooter extends LightningElement {
|
|
|
205
137
|
this.initialSlotRender = true;
|
|
206
138
|
this.hideFooter = false;
|
|
207
139
|
this.unregisterCallback = null;
|
|
208
|
-
this.footerHeightTracked = 0;
|
|
209
|
-
this.footerHeightChecked = 0;
|
|
210
|
-
this.timeoutId = 0;
|
|
211
140
|
}
|
|
212
141
|
|
|
213
142
|
connectedCallback() {
|
|
@@ -220,15 +149,11 @@ export default class LightningModalFooter extends LightningElement {
|
|
|
220
149
|
if (this.unregisterCallback) {
|
|
221
150
|
this.unregisterCallback();
|
|
222
151
|
}
|
|
223
|
-
clearTimeout(this.timeoutId);
|
|
224
|
-
this.timeoutId = 0;
|
|
225
|
-
this.footerHeightChecked = 0;
|
|
226
152
|
}
|
|
227
153
|
|
|
228
154
|
renderedCallback() {
|
|
229
155
|
if (this.initialRender) {
|
|
230
156
|
this.registerWithParent();
|
|
231
|
-
this.scheduleFooterHeightCheck();
|
|
232
157
|
this.initialRender = false;
|
|
233
158
|
}
|
|
234
159
|
this.hideFooter = !this.isDefaultSlotPopulated;
|
|
@@ -13,7 +13,7 @@ tags, which are the only HTML elements permitted. If the header text is too long
|
|
|
13
13
|
|
|
14
14
|
This sample code shows the expected order of the modal components. The modal content is
|
|
15
15
|
created in a separate component extended from `LightningModal`. See
|
|
16
|
-
[Lightning Web Components Developer Guide](docs/
|
|
16
|
+
[Lightning Web Components Developer Guide](https://developer.salesforce.com/docs/platform/lwc/guide/)
|
|
17
17
|
|
|
18
18
|
```html
|
|
19
19
|
<!-- my/modalDialog.html -->
|
|
@@ -51,7 +51,7 @@ For example, specify the background color on the button using the `sds-c-modal-h
|
|
|
51
51
|
|
|
52
52
|
See the modal blueprint's [Styling Hooks Overview](https://www.lightningdesignsystem.com/components/modals/#Styling-Hooks-Overview) for a list of CSS custom properties.
|
|
53
53
|
|
|
54
|
-
For more information, see [Style Components Using Lightning Design System Styling Hooks](docs/
|
|
54
|
+
For more information, see [Style Components Using Lightning Design System Styling Hooks](https://developer.salesforce.com/docs/platform/lwc/guide/create-components-css-custom-properties) in the Lightning Web Components Developer Guide.
|
|
55
55
|
|
|
56
56
|
#### Accessibility
|
|
57
57
|
|
|
@@ -61,4 +61,4 @@ If you don't use `lightning-modal-header`, the accessible label is provided usin
|
|
|
61
61
|
When the modal opens, focus goes to the first interactive element in the modal. If the header includes a link in tagline text, the link
|
|
62
62
|
gets initial focus.
|
|
63
63
|
|
|
64
|
-
See [Lightning Web Components Developer Guide](docs/
|
|
64
|
+
See [Lightning Web Components Developer Guide](https://developer.salesforce.com/docs/platform/lwc/guide/) for more information about accessibility in modals.
|
|
@@ -7,12 +7,6 @@ const modalHeaderSelector = '.slds-modal__header';
|
|
|
7
7
|
const labelSelector = '[data-label]';
|
|
8
8
|
const slotWrapperSelector = '[data-slot-wrapper]';
|
|
9
9
|
const defaultSlotSelector = '[data-default-slot]';
|
|
10
|
-
// timeout header height check
|
|
11
|
-
// checking quickly yields faster resolution of footer placement
|
|
12
|
-
const SIZE_CHECK_TIMER = 50;
|
|
13
|
-
// limited to 4 quick checks totalling 200 ms, which catches
|
|
14
|
-
// any misreported heights based on reflow of content
|
|
15
|
-
const MAX_HEIGHT_CHECKS = 4;
|
|
16
10
|
|
|
17
11
|
/**
|
|
18
12
|
* Creates a header to display the heading and tagline at the top of a modal.
|
|
@@ -22,9 +16,6 @@ export default class LightningModalHeader extends LightningElement {
|
|
|
22
16
|
initialRender = true;
|
|
23
17
|
initialSlotRender = true;
|
|
24
18
|
unregisterCallback = null;
|
|
25
|
-
headerHeightTracked = 0;
|
|
26
|
-
headerHeightChecked = 0;
|
|
27
|
-
timeoutId = 0;
|
|
28
19
|
|
|
29
20
|
/**
|
|
30
21
|
* Text to display as the heading at the top of the modal
|
|
@@ -54,7 +45,6 @@ export default class LightningModalHeader extends LightningElement {
|
|
|
54
45
|
const headerRect = divElem ? divElem.getBoundingClientRect() : {};
|
|
55
46
|
const { height } = headerRect;
|
|
56
47
|
const heightValue = height || 0;
|
|
57
|
-
this.headerHeightTracked = heightValue;
|
|
58
48
|
return heightValue;
|
|
59
49
|
}
|
|
60
50
|
|
|
@@ -155,18 +145,6 @@ export default class LightningModalHeader extends LightningElement {
|
|
|
155
145
|
return (this.label && this.label.trim().length > 0) || false;
|
|
156
146
|
}
|
|
157
147
|
|
|
158
|
-
/**
|
|
159
|
-
* if not the intial render, check for header height chnage,
|
|
160
|
-
* when a window resize occurs
|
|
161
|
-
* @returns {Object}
|
|
162
|
-
* @private
|
|
163
|
-
*/
|
|
164
|
-
handleModalHeaderResizeCheck() {
|
|
165
|
-
return !this.initialRender && this.hasHeaderHeightChanged()
|
|
166
|
-
? { changed: true, value: this.headerHeightTracked }
|
|
167
|
-
: { changed: false, value: null };
|
|
168
|
-
}
|
|
169
|
-
|
|
170
148
|
/**
|
|
171
149
|
* Register modalHeader with modal parent, including callbacks to
|
|
172
150
|
* unregister the modal header
|
|
@@ -185,8 +163,6 @@ export default class LightningModalHeader extends LightningElement {
|
|
|
185
163
|
defaultSlotWrapperId: this.defaultSlotWrapperId,
|
|
186
164
|
defaultSlotIsPopulated: this.isDefaultSlotPopulated,
|
|
187
165
|
defaultSlotHasRendered: !this.initialSlotRender,
|
|
188
|
-
checkHeaderHeightCallback:
|
|
189
|
-
this.handleModalHeaderResizeCheck.bind(this),
|
|
190
166
|
unRegisterCallback: (unregisterCallback) => {
|
|
191
167
|
this.unregisterCallback = unregisterCallback;
|
|
192
168
|
},
|
|
@@ -197,46 +173,6 @@ export default class LightningModalHeader extends LightningElement {
|
|
|
197
173
|
this.dispatchEvent(evtRegister);
|
|
198
174
|
}
|
|
199
175
|
|
|
200
|
-
/**
|
|
201
|
-
* Provide a means to check whether the tracked header height
|
|
202
|
-
* is different than the current header height to only call modalBase
|
|
203
|
-
* when there is a change in header height
|
|
204
|
-
* @private
|
|
205
|
-
*/
|
|
206
|
-
hasHeaderHeightChanged() {
|
|
207
|
-
// note: calling this.headerHeight updates this.headerHeightTracked
|
|
208
|
-
// order of values checked here is required
|
|
209
|
-
const previousRenderedHeight = this.headerHeightTracked;
|
|
210
|
-
const currentRenderedHeight = this.headerHeight;
|
|
211
|
-
return currentRenderedHeight !== previousRenderedHeight;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* On first render, provide a quick means of updating modalBase,
|
|
216
|
-
* if the modalHeader height changes.
|
|
217
|
-
* In rare cases, the height of the header between the
|
|
218
|
-
* normal or full size rendering can change depending on
|
|
219
|
-
* content within the header and the window width
|
|
220
|
-
* @private
|
|
221
|
-
*/
|
|
222
|
-
scheduleHeaderHeightCheck() {
|
|
223
|
-
if (this.initialRender && this.timeoutId === 0) {
|
|
224
|
-
// eslint-disable-next-line @lwc/lwc/no-async-operation
|
|
225
|
-
this.timeoutId = setInterval(() => {
|
|
226
|
-
if (this.headerHeightChecked >= MAX_HEIGHT_CHECKS) {
|
|
227
|
-
clearTimeout(this.timeoutId);
|
|
228
|
-
this.timeoutId = 0;
|
|
229
|
-
this.headerHeightChecked = 0;
|
|
230
|
-
} else {
|
|
231
|
-
this.headerHeightChecked++;
|
|
232
|
-
if (this.hasHeaderHeightChanged()) {
|
|
233
|
-
this.registerWithParent();
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}, SIZE_CHECK_TIMER);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
176
|
/**
|
|
241
177
|
* When modal header is being created, initialize
|
|
242
178
|
* private tracked modal header state
|
|
@@ -248,9 +184,6 @@ export default class LightningModalHeader extends LightningElement {
|
|
|
248
184
|
this.initialRender = true;
|
|
249
185
|
this.initialSlotRender = true;
|
|
250
186
|
this.unregisterCallback = null;
|
|
251
|
-
this.headerHeightTracked = 0;
|
|
252
|
-
this.headerHeightChecked = 0;
|
|
253
|
-
this.timeoutId = 0;
|
|
254
187
|
}
|
|
255
188
|
|
|
256
189
|
connectedCallback() {
|
|
@@ -260,7 +193,6 @@ export default class LightningModalHeader extends LightningElement {
|
|
|
260
193
|
renderedCallback() {
|
|
261
194
|
if (this.initialRender) {
|
|
262
195
|
this.registerWithParent();
|
|
263
|
-
this.scheduleHeaderHeightCheck();
|
|
264
196
|
this.initialRender = false;
|
|
265
197
|
}
|
|
266
198
|
}
|
|
@@ -12,7 +12,7 @@ import { CurrentPageReference } from 'lightning/navigation';
|
|
|
12
12
|
pageRef;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
The key-value pairs of the PageReference `state` property are serialized to URL query parameters. To create a deep link that describes the page and that a user can bookmark, update the `state` property. See [
|
|
15
|
+
The key-value pairs of the PageReference `state` property are serialized to URL query parameters. To create a deep link that describes the page and that a user can bookmark, update the `state` property. See [Add Query Parameters](https://developer.salesforce.com/docs/platform/lwc/guide/use-navigate-add-params-url).
|
|
16
16
|
|
|
17
17
|
#### NavigationMixin
|
|
18
18
|
|
|
@@ -73,6 +73,6 @@ For a recipe that uses `lightning/navigation`, see the `c-nav-to-*` components i
|
|
|
73
73
|
|
|
74
74
|
#### See Also
|
|
75
75
|
|
|
76
|
-
[Navigate to Pages](docs/
|
|
76
|
+
[Navigate to Pages](https://developer.salesforce.com/docs/platform/lwc/guide/use-navigate)
|
|
77
77
|
|
|
78
|
-
[PageReference Types](docs/
|
|
78
|
+
[PageReference Types](https://developer.salesforce.com/docs/platform/lwc/guide/reference-page-reference-type)
|
|
@@ -171,7 +171,7 @@ Additionally, the remove button contains customizable elements similar to `light
|
|
|
171
171
|
|
|
172
172
|
See [Styling Hooks Overview](https://www.lightningdesignsystem.com/components/pills/#Styling-Hooks-Overview) for a list of CSS custom properties.
|
|
173
173
|
|
|
174
|
-
For more information, see [Style Components Using Lightning Design System Styling Hooks](docs/
|
|
174
|
+
For more information, see [Style Components Using Lightning Design System Styling Hooks](https://developer.salesforce.com/docs/platform/lwc/guide/create-components-css-custom-properties) in the Lightning Web Components Developer Guide.
|
|
175
175
|
|
|
176
176
|
To understand how we implemented SLDS in `lightning-pill`, see the **Source Code** section.
|
|
177
177
|
|
|
@@ -184,7 +184,7 @@ To create more than one pill, use the `lightning-pill-container` component, whic
|
|
|
184
184
|
Specifying a target to change where the link should open is not supported. The link opens on the same tab or window. To create a URL that navigates to another page in Salesforce, use
|
|
185
185
|
[`lightning-navigation`](bundle/lightning-navigation/documentation).
|
|
186
186
|
|
|
187
|
-
This component has usage differences from its Aura counterpart. See [Base Components: Aura Vs Lightning Web Components](docs/
|
|
187
|
+
This component has usage differences from its Aura counterpart. See [Base Components: Aura Vs Lightning Web Components](https://developer.salesforce.com/docs/platform/lwc/guide/migrate-map-aura-lwc-components) in the Lightning Web Components Developer Guide.
|
|
188
188
|
|
|
189
189
|
#### Accessibility
|
|
190
190
|
|
|
@@ -8,39 +8,39 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
@supports (--styling-hooks: '') {
|
|
11
|
-
:host([data-render-mode="shadow"][size
|
|
11
|
+
:host([data-render-mode="shadow"][size='xxx-small']) {
|
|
12
12
|
--slds-c-icon-sizing: var(--sds-g-sizing-3, 0.5rem);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
:host([data-render-mode="shadow"][size
|
|
15
|
+
:host([data-render-mode="shadow"][size='xx-small']) {
|
|
16
16
|
--slds-c-icon-sizing: calc(var(--sds-g-sizing-1, 0.125rem) + var(--sds-g-sizing-4, 0.75rem));
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
:host([data-render-mode="shadow"][size
|
|
19
|
+
:host([data-render-mode="shadow"][size='x-small']) {
|
|
20
20
|
--slds-c-icon-sizing: var(--sds-g-sizing-5, 1rem);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
:host([data-render-mode="shadow"][size
|
|
23
|
+
:host([data-render-mode="shadow"][size='small']) {
|
|
24
24
|
--slds-c-icon-sizing: var(--sds-g-sizing-7, 1.5rem);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
:host([data-render-mode="shadow"][size
|
|
27
|
+
:host([data-render-mode="shadow"][size='large']) {
|
|
28
28
|
--slds-c-icon-sizing: var(--sds-g-sizing-10, 3rem);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
:host([data-render-mode="shadow"][variant
|
|
31
|
+
:host([data-render-mode="shadow"][variant='warning']) {
|
|
32
32
|
--slds-c-icon-color-foreground: var(--sds-g-color-warning-base-70, #fe9339);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
:host([data-render-mode="shadow"][variant
|
|
35
|
+
:host([data-render-mode="shadow"][variant='success']) {
|
|
36
36
|
--slds-c-icon-color-foreground: var(--sds-g-color-success-base-50, #2e844a);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
:host([data-render-mode="shadow"][variant
|
|
39
|
+
:host([data-render-mode="shadow"][variant='error']) {
|
|
40
40
|
--slds-c-icon-color-foreground: var(--sds-g-color-error-base-50, #ea001e);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
:host([data-render-mode="shadow"][variant
|
|
43
|
+
:host([data-render-mode="shadow"][variant='light']) {
|
|
44
44
|
--slds-c-icon-color-foreground: var(--sds-g-color-neutral-base-70, #aeaeae);
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
--sds-c-icon-sizing-border: var(--slds-c-icon-sizing-border);
|
|
51
51
|
--sds-c-icon-color-border: var(--slds-c-icon-color-border);
|
|
52
52
|
--sds-c-icon-spacing-block-start: var(
|
|
53
|
-
--slds-c-icon-spacing-
|
|
53
|
+
--slds-c-icon-spacing-blockstart,
|
|
54
54
|
var(--slds-c-icon-spacing-block)
|
|
55
55
|
);
|
|
56
|
-
--sds-c-icon-spacing-block-end: var(--slds-c-icon-spacing-
|
|
56
|
+
--sds-c-icon-spacing-block-end: var(--slds-c-icon-spacing-blockend, var(--slds-c-icon-spacing-block));
|
|
57
57
|
--sds-c-icon-spacing-inline-start: var(
|
|
58
|
-
--slds-c-icon-spacing-
|
|
58
|
+
--slds-c-icon-spacing-inlinestart,
|
|
59
59
|
var(--slds-c-icon-spacing-inline)
|
|
60
60
|
);
|
|
61
|
-
--sds-c-icon-spacing-inline-end: var(--slds-c-icon-spacing-
|
|
61
|
+
--sds-c-icon-spacing-inline-end: var(--slds-c-icon-spacing-inlineend, var(--slds-c-icon-spacing-inline));
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* There's a divergence in LBC that we have to support here: LBC splits their
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
*/
|
|
155
155
|
|
|
156
156
|
:host([data-render-mode="shadow"]) .slds-icon_disabled {
|
|
157
|
-
background-color:
|
|
157
|
+
background-color: currentcolor;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
:host([data-render-mode="shadow"]) .slds-input__icon {
|
|
@@ -172,6 +172,11 @@
|
|
|
172
172
|
Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
173
173
|
|
|
174
174
|
@supports (--styling-hooks: '') {
|
|
175
|
+
/* re-assign icon color hook for avatar */
|
|
176
|
+
:host([data-render-mode="shadow"]) {
|
|
177
|
+
--sds-c-icon-color-background: var(--slds-c-avatar-color-background);
|
|
178
|
+
}
|
|
179
|
+
|
|
175
180
|
:host([data-render-mode="shadow"]) .slds-assistive-text {
|
|
176
181
|
position: absolute !important;
|
|
177
182
|
margin: -1px !important;
|
|
@@ -242,19 +247,13 @@
|
|
|
242
247
|
:host([data-render-mode="shadow"]) .slds-avatar__initials {
|
|
243
248
|
display: flex;
|
|
244
249
|
justify-content: center;
|
|
245
|
-
-ms-flex-line-pack: center;
|
|
246
250
|
align-content: center;
|
|
247
251
|
align-items: center;
|
|
248
252
|
margin: auto;
|
|
249
253
|
color: var(--slds-c-avatar-text-color);
|
|
250
254
|
height: 100%;
|
|
251
|
-
text-shadow: 0 0 1px rgba(0, 0, 0,
|
|
252
|
-
|
|
253
|
-
background-color: var(
|
|
254
|
-
--slds-c-avatar-color-background,
|
|
255
|
-
var(--sds-c-icon-color-background, var(--sds-g-color-brand-base-50, #0176d3))
|
|
256
|
-
);
|
|
257
|
-
/* stylelint-enable sds-stylelint-plugin/styling-hooks-pattern */
|
|
255
|
+
text-shadow: 0 0 1px rgba(0, 0, 0, 80%);
|
|
256
|
+
background-color: var(--slds-c-avatar-color-background, var(--sds-g-color-brand-base-50, #0176d3));
|
|
258
257
|
}
|
|
259
258
|
|
|
260
259
|
:host([data-render-mode="shadow"]) .slds-avatar__initials[title] {
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
|
|
2
2
|
@supports (--styling-hooks: '') {
|
|
3
|
+
/* re-assign current slds hooks using deprecated naming conventions */
|
|
4
|
+
:host([data-render-mode="shadow"]) {
|
|
5
|
+
--slds-c-pill-spacing-block-end: var(--slds-c-pill-spacing-blockend);
|
|
6
|
+
--slds-c-pill-spacing-block-start: var(--slds-c-pill-spacing-blockstart);
|
|
7
|
+
--slds-c-pill-spacing-inline-end: var(--slds-c-pill-spacing-inlineend);
|
|
8
|
+
--slds-c-pill-spacing-inline-start: var(--slds-c-pill-spacing-inlinestart);
|
|
9
|
+
}
|
|
10
|
+
|
|
3
11
|
:host([data-render-mode="shadow"]) .slds-pill {
|
|
4
12
|
display: inline-flex;
|
|
5
13
|
align-items: center;
|
|
6
14
|
justify-content: space-between;
|
|
7
15
|
line-height: var(--sds-g-font-lineheight-4, 1.5);
|
|
8
16
|
max-width: 100%;
|
|
9
|
-
padding-block-start: var(--slds-c-pill-spacing-
|
|
10
|
-
padding-inline-end: var(--slds-c-pill-spacing-
|
|
11
|
-
padding-block-end: var(--slds-c-pill-spacing-
|
|
12
|
-
padding-inline-start: var(--slds-c-pill-spacing-
|
|
17
|
+
padding-block-start: var(--slds-c-pill-spacing-blockstart, calc(var(--sds-g-spacing-1, 0.25rem) / 2));
|
|
18
|
+
padding-inline-end: var(--slds-c-pill-spacing-inlineend, calc(var(--sds-g-spacing-1, 0.25rem) / 2));
|
|
19
|
+
padding-block-end: var(--slds-c-pill-spacing-blockend, calc(var(--sds-g-spacing-1, 0.25rem) / 2));
|
|
20
|
+
padding-inline-start: var(--slds-c-pill-spacing-inlinestart, calc(var(--sds-g-spacing-1, 0.25rem) / 2));
|
|
13
21
|
border-width: var(--slds-c-pill-sizing-border, var(--sds-g-sizing-border-1, 1px));
|
|
14
22
|
border-style: solid;
|
|
15
23
|
border-color: var(--slds-c-pill-color-border, var(--sds-g-color-neutral-base-90, #e5e5e5));
|
|
@@ -43,7 +51,7 @@
|
|
|
43
51
|
text-decoration: none;
|
|
44
52
|
color:var(--sds-g-color-brand-base-30, #014486);
|
|
45
53
|
}
|
|
46
|
-
|
|
54
|
+
|
|
47
55
|
:host([data-render-mode="shadow"]) a:active{
|
|
48
56
|
color:var(--sds-g-color-brand-base-30, #014486);
|
|
49
57
|
}
|
|
@@ -133,10 +141,10 @@
|
|
|
133
141
|
}
|
|
134
142
|
|
|
135
143
|
:host([data-render-mode="shadow"]) .slds-pill__action {
|
|
136
|
-
padding-block-start: var(--slds-c-pill-spacing-
|
|
137
|
-
padding-inline-end: var(--slds-c-pill-spacing-
|
|
138
|
-
padding-block-end: var(--slds-c-pill-spacing-
|
|
139
|
-
padding-inline-start: var(--slds-c-pill-spacing-
|
|
144
|
+
padding-block-start: var(--slds-c-pill-spacing-blockstart, calc(var(--sds-g-spacing-1, 0.25rem) / 2));
|
|
145
|
+
padding-inline-end: var(--slds-c-pill-spacing-inlineend, calc((var(--sds-g-spacing-2, 0.5rem) / 2) + 1rem));
|
|
146
|
+
padding-block-end: var(--slds-c-pill-spacing-blockend, calc(var(--sds-g-spacing-1, 0.25rem) / 2));
|
|
147
|
+
padding-inline-start: var(--slds-c-pill-spacing-inlinestart, calc(var(--sds-g-spacing-1, 0.25rem) / 2));
|
|
140
148
|
border-width: var(--slds-c-pill-sizing-border, 1px);
|
|
141
149
|
border-style: solid;
|
|
142
150
|
border-color: var(--slds-c-pill-color-border, var(--sds-g-color-neutral-base-90, #e5e5e5));
|
|
@@ -249,7 +249,7 @@ Custom properties for pill containers work only with particular `lightning-pill-
|
|
|
249
249
|
|
|
250
250
|
See [Styling Hooks Overview](https://www.lightningdesignsystem.com/components/pills/#Styling-Hooks-Overview) for a list of CSS custom properties.
|
|
251
251
|
|
|
252
|
-
For more information, see [Style Components Using Lightning Design System Styling Hooks](docs/
|
|
252
|
+
For more information, see [Style Components Using Lightning Design System Styling Hooks](https://developer.salesforce.com/docs/platform/lwc/guide/create-components-css-custom-properties) in the Lightning Web Components Developer Guide.
|
|
253
253
|
|
|
254
254
|
To understand how we implemented SLDS in `lightning-pill-container`, see the **Source Code** section.
|
|
255
255
|
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
@supports (--styling-hooks: '') {
|
|
3
|
-
:host([data-render-mode="shadow"]) [part~='listbox'] {
|
|
4
|
-
/* stylelint-disable sds-stylelint-plugin/styling-hooks-pattern */
|
|
5
|
-
--_listbox-spacing-xxx-small: 0.125rem;
|
|
6
|
-
/* stylelint-enable sds-stylelint-plugin/styling-hooks-pattern */
|
|
7
|
-
}
|
|
8
|
-
|
|
9
3
|
/* Horizontal listbox - used for pill container */
|
|
10
4
|
:host([data-render-mode="shadow"]) .slds-listbox_horizontal {
|
|
11
5
|
display: inline-flex;
|
|
@@ -18,9 +12,7 @@
|
|
|
18
12
|
}
|
|
19
13
|
|
|
20
14
|
:host([data-render-mode="shadow"]) .slds-listbox_horizontal li+li {
|
|
21
|
-
|
|
22
|
-
padding-inline-start: var(--_listbox-spacing-xxx-small);
|
|
23
|
-
/* stylelint-enable sds-stylelint-plugin/styling-hooks-pattern */
|
|
15
|
+
padding-inline-start: 0.125rem;
|
|
24
16
|
}
|
|
25
17
|
|
|
26
18
|
/* Vertical listbox */
|
|
@@ -101,7 +93,7 @@
|
|
|
101
93
|
}
|
|
102
94
|
|
|
103
95
|
:host([data-render-mode="shadow"]) .slds-listbox__option[aria-disabled="true"] .slds-listbox__option-icon {
|
|
104
|
-
color:
|
|
96
|
+
color: currentcolor;
|
|
105
97
|
}
|
|
106
98
|
|
|
107
99
|
/* The icon within a plain listbox that indicates if an option has been selected or not. */
|
|
@@ -126,9 +118,7 @@
|
|
|
126
118
|
text-overflow: ellipsis;
|
|
127
119
|
white-space: nowrap;
|
|
128
120
|
display: block;
|
|
129
|
-
|
|
130
|
-
margin-block-end: var(--_listbox-spacing-xxx-small);
|
|
131
|
-
/* stylelint-enable sds-stylelint-plugin/styling-hooks-pattern */
|
|
121
|
+
margin-block-end: 0.125rem;
|
|
132
122
|
}
|
|
133
123
|
|
|
134
124
|
/* The metadata or secondary text of an entity listbox */
|
|
@@ -139,15 +129,15 @@
|
|
|
139
129
|
}
|
|
140
130
|
|
|
141
131
|
:host([data-render-mode="shadow"]) .slds-listbox__option[aria-disabled="true"] .slds-listbox__option-meta {
|
|
142
|
-
color:
|
|
132
|
+
color: currentcolor;
|
|
143
133
|
}
|
|
144
|
-
|
|
134
|
+
|
|
145
135
|
/* -------------------- END LISTBOX OPTION CSS --------------------------------------------- */
|
|
146
136
|
|
|
147
137
|
/* ---------------------PULL OUT FOR PILL CONTAINER ---------------------------------------- */
|
|
148
138
|
|
|
149
139
|
/* The container of pill selections found inside of a combobox group */
|
|
150
|
-
|
|
140
|
+
|
|
151
141
|
/* .slds-listbox_selection-group items need to be moved out to pill/pill container */
|
|
152
142
|
:host([data-render-mode="shadow"]) .slds-listbox_selection-group {
|
|
153
143
|
position: relative;
|
|
@@ -165,18 +155,14 @@
|
|
|
165
155
|
|
|
166
156
|
:host([data-render-mode="shadow"]) .slds-listbox_selection-group .slds-listbox {
|
|
167
157
|
padding-block-start: 0;
|
|
168
|
-
|
|
169
|
-
padding-block-end: var(--_listbox-spacing-xxx-small);
|
|
170
|
-
/* stylelint-enable sds-stylelint-plugin/styling-hooks-pattern */
|
|
158
|
+
padding-block-end: 0.125rem;
|
|
171
159
|
padding-inline: 0;
|
|
172
160
|
}
|
|
173
161
|
|
|
174
162
|
:host([data-render-mode="shadow"]) .slds-listbox_selection-group .slds-listbox-item {
|
|
175
|
-
|
|
176
|
-
padding-block-start: var(--_listbox-spacing-xxx-small);
|
|
163
|
+
padding-block-start: 0.125rem;
|
|
177
164
|
padding-block-end: 0;
|
|
178
|
-
padding-inline:
|
|
179
|
-
/* stylelint-enable sds-stylelint-plugin/styling-hooks-pattern */
|
|
165
|
+
padding-inline: 0.125rem;
|
|
180
166
|
}
|
|
181
167
|
|
|
182
168
|
/* Toggle button to show all of the pill selections */
|
|
@@ -251,7 +237,7 @@
|
|
|
251
237
|
margin-inline-end: 0;
|
|
252
238
|
}
|
|
253
239
|
|
|
254
|
-
@media (
|
|
240
|
+
@media (width <= 48em) {
|
|
255
241
|
|
|
256
242
|
:host([data-render-mode="shadow"]) .slds-media_responsive {
|
|
257
243
|
display: block;
|
|
@@ -264,4 +250,3 @@
|
|
|
264
250
|
}
|
|
265
251
|
}
|
|
266
252
|
}
|
|
267
|
-
|
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
|
|
2
2
|
@supports (--styling-hooks: '') {
|
|
3
|
+
/* re-assign current slds hooks using deprecated naming conventions */
|
|
4
|
+
:host([data-render-mode="shadow"]) {
|
|
5
|
+
--slds-c-pill-container-color-background: var(--slds-c-pillcontainer-color-background);
|
|
6
|
+
--slds-c-pill-container-spacing-block-end: var(--slds-c-pillcontainer-spacing-blockend);
|
|
7
|
+
--slds-c-pill-container-spacing-block-start: var(--slds-c-pillcontainer-spacing-blockstart);
|
|
8
|
+
--slds-c-pill-container-spacing-inline-end: var(--slds-c-pillcontainer-spacing-inlineend);
|
|
9
|
+
--slds-c-pill-container-spacing-inline-start: var(--slds-c-pillcontainer-spacing-inlinestart);
|
|
10
|
+
--slds-c-pill-sizing-border: var(--slds-c-pillcontainer-sizing-border);
|
|
11
|
+
--slds-c-pill-color-border: var(--slds-c-pillcontainer-color-border);
|
|
12
|
+
--slds-c-pill-radius-border: var(--slds-c-pillcontainer-radius-border);
|
|
13
|
+
}
|
|
3
14
|
|
|
4
15
|
:host([data-render-mode="shadow"]) .slds-pill_container {
|
|
5
16
|
display: flex;
|
|
6
17
|
min-height: calc(calc((var(--sds-g-sizing-1, 0.125rem) * 3) + var(--sds-g-sizing-7, 1.5rem)) + 2px);
|
|
7
|
-
padding-block-start: var(--slds-c-
|
|
8
|
-
padding-inline-end: var(--slds-c-
|
|
9
|
-
padding-block-end: var(--slds-c-
|
|
10
|
-
padding-inline-start: var(--slds-c-
|
|
11
|
-
border-width: var(--slds-c-
|
|
18
|
+
padding-block-start: var(--slds-c-pillcontainer-spacing-blockstart, calc(var(--sds-g-spacing-1, 0.25rem) / 2));
|
|
19
|
+
padding-inline-end: var(--slds-c-pillcontainer-spacing-inlineend, calc(var(--sds-g-spacing-1, 0.25rem) / 2));
|
|
20
|
+
padding-block-end: var(--slds-c-pillcontainer-spacing-blockend, calc(var(--sds-g-spacing-1, 0.25rem) / 2));
|
|
21
|
+
padding-inline-start: var(--slds-c-pillcontainer-spacing-inlinestart, calc(var(--sds-g-spacing-1, 0.25rem) / 2));
|
|
22
|
+
border-width: var(--slds-c-pillcontainer-sizing-border, var(--sds-g-sizing-border-1, 1px));
|
|
12
23
|
border-style: solid;
|
|
13
|
-
border-color: var(--slds-c-
|
|
14
|
-
border-radius: var(--slds-c-
|
|
15
|
-
background-color: var(--slds-c-
|
|
24
|
+
border-color: var(--slds-c-pillcontainer-color-border, var(--sds-g-color-neutral-base-90, #e5e5e5));
|
|
25
|
+
border-radius: var(--slds-c-pillcontainer-radius-border, var(--sds-g-radius-border-2, 0.25rem));
|
|
26
|
+
background-color: var(--slds-c-pillcontainer-color-background, var(--sds-g-color-neutral-base-100, #ffffff));
|
|
16
27
|
}
|
|
17
28
|
|
|
18
29
|
:host([data-render-mode="shadow"]) .slds-pill_container .slds-listbox_inline {
|