lightning-base-components 1.26.4-alpha → 1.27.2-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 +91 -91
- package/{scopedImports/@salesforce-gate-accordionCloseSingleSection.bc.ltng.js → external/flagStub.js} +1 -1
- package/{scopedImports/@salesforce-gate-bc.256.enableInputSearchCommitEvent.js → external/gateStub.js} +1 -1
- package/package.json +89 -77
- package/scopedImports/@salesforce-internal-core.appVersion.js +1 -1
- package/scopedImports/@salesforce-label-LightningMultiColumnSortingModal.modalTitle.js +1 -1
- package/scopedImports/{@salesforce-gate-assertContext.bc.ltng.js → @salesforce-label-LightningPrimitiveColumnSorter.deleteButtonAltText.js} +1 -1
- package/src/lightning/accordion/__docs__/accordion.md +2 -2
- package/src/lightning/accordion/accordion-section.slds.css +100 -107
- package/src/lightning/accordion/accordion.lbc.native.css +0 -1
- package/src/lightning/accordion/accordion.lbc.synthetic.css +0 -1
- package/src/lightning/accordion/accordion.slds.css +12 -12
- package/src/lightning/accordionSection/__docs__/accordionSection.md +1 -0
- package/src/lightning/accordionSection/accordion-section.slds.css +100 -107
- package/src/lightning/accordionSection/accordionSection.lbc.native.css +0 -2
- package/src/lightning/accordionSection/accordionSection.lbc.synthetic.css +1 -2
- package/src/lightning/accordionSection/button.slds.css +32 -17
- package/src/lightning/alert/__docs__/alert.md +13 -13
- package/src/lightning/alert/alert.css +1 -1
- package/src/lightning/ariaObserver/__docs__/ariaObserver.md +16 -10
- package/src/lightning/avatar/__docs__/avatar.md +2 -2
- package/src/lightning/avatar/avatar.css +1 -1
- package/src/lightning/avatar/avatar.slds.css +96 -97
- package/src/lightning/badge/__docs__/badge.md +3 -3
- package/src/lightning/badge/badge.css +1 -1
- package/src/lightning/badge/badge.slds.css +71 -56
- package/src/lightning/barcodeScanner/__docs__/barcodeScanner.md +9 -9
- package/src/lightning/baseCombobox/base-combobox.slds.css +171 -170
- package/src/lightning/baseCombobox/baseCombobox.lbc.synthetic.css +0 -1
- package/src/lightning/baseCombobox/dropdown.slds.css +405 -388
- package/src/lightning/baseCombobox/input-text.slds.css +172 -190
- package/src/lightning/baseCombobox/listbox.slds.css +181 -175
- package/src/lightning/baseCombobox/spinner.slds.css +327 -326
- package/src/lightning/baseComboboxItem/listbox.slds.css +181 -175
- package/src/lightning/breadcrumb/__docs__/breadcrumb.md +2 -2
- package/src/lightning/breadcrumb/breadcrumb.slds.css +13 -14
- package/src/lightning/breadcrumbs/__docs__/breadcrumbs.md +1 -1
- package/src/lightning/breadcrumbs/breadcrumbs.css +1 -1
- package/src/lightning/breadcrumbs/breadcrumbs.lbc.native.css +1 -1
- package/src/lightning/breadcrumbs/breadcrumbs.slds.css +27 -28
- package/src/lightning/button/__docs__/button.md +16 -16
- package/src/lightning/button/__examples__/accesskey/accesskey.css +5 -3
- package/src/lightning/button/__examples__/inverse/inverse.css +2 -2
- package/src/lightning/button/button.slds.css +32 -17
- package/src/lightning/buttonGroup/__docs__/buttonGroup.md +5 -5
- package/src/lightning/buttonGroup/button-group.slds.css +1 -2
- package/src/lightning/buttonGroup/buttonGroup.lbc.native.css +1 -1
- package/src/lightning/buttonIcon/__docs__/buttonIcon.md +20 -20
- package/src/lightning/buttonIcon/button-icon.slds.css +50 -31
- package/src/lightning/buttonIconStateful/__docs__/buttonIconStateful.md +12 -12
- package/src/lightning/buttonIconStateful/button-icon-stateful.slds.css +33 -40
- package/src/lightning/buttonIconStateful/button-icon.slds.css +50 -31
- package/src/lightning/buttonIconStateful/button.slds.css +32 -17
- package/src/lightning/buttonIconStateful/buttonIconStateful.lbc.synthetic.css +5 -1
- package/src/lightning/buttonMenu/__docs__/buttonMenu.md +22 -22
- package/src/lightning/buttonMenu/button-icon.slds.css +50 -31
- package/src/lightning/buttonMenu/button-menu.slds.css +113 -115
- package/src/lightning/buttonMenu/button.slds.css +32 -17
- package/src/lightning/buttonMenu/buttonMenu.css +4 -1
- package/src/lightning/buttonMenu/buttonMenu.lbc.synthetic.css +1 -3
- package/src/lightning/buttonMenu/dropdown.slds.css +405 -388
- package/src/lightning/buttonStateful/__docs__/buttonStateful.md +9 -9
- package/src/lightning/buttonStateful/button-stateful.slds.css +98 -102
- package/src/lightning/buttonStateful/button.slds.css +32 -17
- package/src/lightning/calendar/calendar.slds.css +188 -191
- package/src/lightning/calendar/dropdown.slds.css +405 -388
- package/src/lightning/card/__docs__/card.md +1 -1
- package/src/lightning/card/__examples__/custom/custom.css +2 -2
- package/src/lightning/card/card.slds.css +137 -175
- package/src/lightning/carousel/button-menu.slds.css +113 -115
- package/src/lightning/carousel/button.slds.css +32 -17
- package/src/lightning/carousel/carousel.js +11 -18
- package/src/lightning/carousel/carousel.slds.css +15 -6
- package/src/lightning/carouselImage/carouselImage.lbc.native.css +0 -1
- package/src/lightning/checkboxGroup/__docs__/checkboxGroup.md +7 -7
- package/src/lightning/checkboxGroup/checkbox-group.slds.css +94 -60
- package/src/lightning/checkboxGroup/form-element.slds.css +4 -4
- package/src/lightning/colorPickerCustom/color-picker-custom.slds.css +212 -211
- package/src/lightning/colorPickerCustom/input-text.slds.css +172 -190
- package/src/lightning/colorPickerPanel/color-picker-panel.slds.css +22 -23
- package/src/lightning/colorPickerPanel/colorPickerPanel.lbc.synthetic.css +4 -2
- package/src/lightning/colorPickerPanel/popover.slds.css +127 -128
- package/src/lightning/combobox/__docs__/combobox.md +4 -5
- package/src/lightning/combobox/combobox.css +1 -2
- package/src/lightning/combobox/combobox.lbc.synthetic.css +17 -4
- package/src/lightning/combobox/combobox.slds.css +9 -10
- package/src/lightning/combobox/form-element.slds.css +4 -4
- package/src/lightning/confirm/__docs__/confirm.md +14 -14
- package/src/lightning/context/README.md +13 -13
- package/src/lightning/datatable/README.md +2 -3
- package/src/lightning/datatable/__docs__/datatable.md +82 -77
- package/src/lightning/datatable/__docs__/multi-column-sorting.md +4 -4
- package/src/lightning/datatable/__requirements__/column_widths_requirements.md +68 -68
- package/src/lightning/datatable/__requirements__/requirements.md +1 -1
- package/src/lightning/datatable/button-icon.slds.css +50 -31
- package/src/lightning/datatable/columns.js +2 -2
- package/src/lightning/datatable/datagrid.slds.css +341 -267
- package/src/lightning/datatable/datatable.js +6 -1
- package/src/lightning/datatable/icon.slds.css +6 -2
- package/src/lightning/datatable/input-checkbox.slds.css +130 -124
- package/src/lightning/datatable/primitive-cell-factory.slds.css +0 -1
- package/src/lightning/datatable/rows.js +1 -3
- package/src/lightning/datatable/templates/div/div.css +33 -15
- package/src/lightning/datatable/templates/table/table.css +2 -1
- package/src/lightning/datepicker/form-element.slds.css +4 -4
- package/src/lightning/datepicker/input-text.slds.css +172 -190
- package/src/lightning/datetimepicker/form-element.slds.css +4 -4
- package/src/lightning/datetimepicker/input-text.slds.css +172 -190
- package/src/lightning/dialog/README.md +7 -6
- package/src/lightning/dialog/__requirements__/requirements.md +18 -18
- package/src/lightning/dualListbox/__docs__/dualListbox.md +24 -24
- package/src/lightning/dualListbox/dual-listbox.slds.css +192 -192
- package/src/lightning/dualListbox/dualListbox.lbc.native.css +1 -1
- package/src/lightning/dualListbox/form-element.slds.css +4 -4
- package/src/lightning/dualListbox/listbox.slds.css +181 -175
- package/src/lightning/dynamicIcon/__docs__/dynamicIcon.md +6 -6
- package/src/lightning/dynamicIcon/dynamic-icon-ellie.slds.css +0 -2
- package/src/lightning/dynamicIcon/dynamic-icon-eq.slds.css +0 -2
- package/src/lightning/dynamicIcon/dynamic-icon-score.slds.css +3 -5
- package/src/lightning/dynamicIcon/dynamic-icon-strength.slds.css +109 -108
- package/src/lightning/dynamicIcon/dynamic-icon-trend.slds.css +97 -99
- package/src/lightning/dynamicIcon/dynamic-icon-waffle.slds.css +0 -2
- package/src/lightning/features/gates/imports.js +6 -1
- package/src/lightning/focusTrap/__requirements__/requirements.md +26 -26
- package/src/lightning/formattedAddress/__docs__/formattedAddress.md +0 -1
- package/src/lightning/formattedAddress/formattedAddress.css +1 -1
- package/src/lightning/formattedAddress/formattedAddress.lbc.native.css +1 -1
- package/src/lightning/formattedDateTime/__docs__/formattedDateTime.md +11 -11
- package/src/lightning/formattedEmail/__docs__/formattedEmail.md +2 -2
- package/src/lightning/formattedEmail/formattedEmail.lbc.native.css +1 -2
- package/src/lightning/formattedPhone/__docs__/formattedPhone.md +2 -2
- package/src/lightning/formattedRichText/__docs__/formattedRichText.md +14 -14
- package/src/lightning/formattedRichText/formattedRichText.lbc.native.css +1 -1
- package/src/lightning/formattedRichTextRenderer/formattedRichTextRenderer.lbc.native.css +1 -1
- package/src/lightning/formattedText/formattedText.lbc.native.css +1 -1
- package/src/lightning/formattedTime/__docs__/formattedTime.md +3 -3
- package/src/lightning/formattedUrl/__docs__/formattedUrl.md +11 -11
- package/src/lightning/groupedCombobox/README.md +33 -34
- package/src/lightning/groupedCombobox/form-element.slds.css +4 -4
- package/src/lightning/groupedCombobox/grouped-combobox.slds.css +10 -10
- package/src/lightning/groupedCombobox/groupedCombobox.lbc.native.css +0 -1
- package/src/lightning/groupedCombobox/input-text.slds.css +172 -190
- package/src/lightning/helptext/__docs__/helptext.md +5 -5
- package/src/lightning/helptext/button-icon.slds.css +50 -31
- package/src/lightning/helptext/form-element.slds.css +4 -4
- package/src/lightning/helptext/help-text.slds.css +3 -4
- package/src/lightning/helptext/helptext.css +1 -1
- package/src/lightning/icon/__docs__/icon.md +10 -10
- package/src/lightning/icon/__examples__/variants/variants.css +3 -3
- package/src/lightning/icon/icon.slds.css +6 -2
- package/src/lightning/input/__docs__/input.md +47 -49
- package/src/lightning/input/__examples__/checkboxbutton/checkboxbutton.css +6 -6
- package/src/lightning/input/__requirements__/requirements.md +49 -49
- package/src/lightning/input/form-element.slds.css +4 -4
- package/src/lightning/input/input.lbc.synthetic.css +1 -1
- package/src/lightning/inputAddress/__docs__/inputAddress.md +26 -27
- package/src/lightning/inputAddress/form-element.slds.css +4 -4
- package/src/lightning/inputAddress/input-address.slds.css +6 -6
- package/src/lightning/inputAddress/input-text.slds.css +172 -190
- package/src/lightning/inputLocation/form-element.slds.css +4 -4
- package/src/lightning/inputLocation/input-location.slds.css +6 -6
- package/src/lightning/inputLocation/input-text.slds.css +172 -190
- package/src/lightning/inputName/__docs__/inputName.md +7 -7
- package/src/lightning/inputName/form-element.slds.css +4 -4
- package/src/lightning/inputName/input-text.slds.css +172 -190
- package/src/lightning/inputUtils/validity.js +37 -18
- package/src/lightning/interactiveDialogBase/button.slds.css +32 -17
- package/src/lightning/interactiveDialogBase/interactive-dialog-base.slds.css +9 -18
- package/src/lightning/interactiveDialogBase/interactiveDialogBase.lbc.native.css +1 -1
- package/src/lightning/interactiveDialogBase/modal-base.slds.css +198 -194
- package/src/lightning/interactiveDialogBase/modal-body.slds.css +33 -34
- package/src/lightning/interactiveDialogBase/modal-footer.slds.css +62 -64
- package/src/lightning/interactiveDialogBase/modal-header.slds.css +47 -48
- package/src/lightning/layout/__docs__/layout.md +13 -13
- package/src/lightning/layout/__examples__/pullToBoundary/pullToBoundary.css +1 -1
- package/src/lightning/layout/__examples__/simple/simple.css +2 -2
- package/src/lightning/layout/__examples__/verticalAlignCenter/verticalAlignCenter.css +3 -3
- package/src/lightning/layout/__examples__/verticalAlignStretch/verticalAlignStretch.css +3 -3
- package/src/lightning/layout/layout.css +1 -1
- package/src/lightning/layout/layout.lbc.native.css +1 -1
- package/src/lightning/layout/layout.lbc.synthetic.css +1 -2
- package/src/lightning/layoutItem/layoutItem.css +1 -1
- package/src/lightning/lookupAddress/form-element.slds.css +4 -4
- package/src/lightning/lookupAddress/listbox.slds.css +181 -175
- package/src/lightning/lookupAddress/lookup-address.slds.css +4 -4
- package/src/lightning/lookupAddress/lookupAddress.css +0 -1
- package/src/lightning/lookupAddress/lookupAddress.lbc.native.css +0 -1
- package/src/lightning/mediaUtils/__docs__/mediaUtils.md +20 -17
- package/src/lightning/menuDivider/menu-divider.slds.css +8 -8
- package/src/lightning/menuItem/menu-item.slds.css +94 -82
- package/src/lightning/menuItem/menuItem.lbc.synthetic.css +1 -1
- package/src/lightning/menuSubheader/menu-subheader.slds.css +13 -13
- package/src/lightning/modal/__docs__/migration.md +95 -91
- package/src/lightning/modal/__docs__/modal.md +28 -22
- package/src/lightning/modal/__modalUtils__/modalContainerTestMethods.js +14 -21
- package/src/lightning/modalBase/modal-base.slds.css +198 -194
- package/src/lightning/modalBase/modalBase.lbc.synthetic.css +2 -2
- package/src/lightning/modalBody/__docs__/modalBody.md +0 -1
- package/src/lightning/modalBody/modal-body.slds.css +33 -34
- package/src/lightning/modalFooter/__docs__/modalFooter.md +1 -2
- package/src/lightning/modalFooter/modal-footer.slds.css +62 -64
- package/src/lightning/modalHeader/__docs__/modalHeader.md +1 -0
- package/src/lightning/modalHeader/modal-header.slds.css +47 -48
- package/src/lightning/modalHeader/modalHeader.css +2 -1
- package/src/lightning/multiColumnSortingModal/multiColumnSortingModal.css +2 -3
- package/src/lightning/navigation/__docs__/navigation.md +2 -3
- package/src/lightning/overlay/__docs__/overlay.md +3 -3
- package/src/lightning/overlay/__examples__/basic/basic.css +2 -2
- package/src/lightning/picklist/README.md +9 -9
- package/src/lightning/pill/__docs__/pill.md +3 -3
- package/src/lightning/pill/avatar.slds.css +96 -97
- package/src/lightning/pill/link.css +1 -1
- package/src/lightning/pill/pill.slds.css +154 -153
- package/src/lightning/pill/plain.css +1 -1
- package/src/lightning/pill/plainLink.css +1 -1
- package/src/lightning/pillContainer/__docs__/pillContainer.md +16 -15
- package/src/lightning/pillContainer/barePillContainer.lbc.native.css +1 -1
- package/src/lightning/pillContainer/button.slds.css +32 -17
- package/src/lightning/pillContainer/listbox.slds.css +181 -175
- package/src/lightning/pillContainer/pill-container.slds.css +34 -34
- package/src/lightning/pillContainer/pill.slds.css +154 -153
- package/src/lightning/pillContainer/standardPillContainer.css +1 -1
- package/src/lightning/popup/README.md +3 -3
- package/src/lightning/popup/__requirements__/requirements.md +25 -25
- package/src/lightning/popup/popover.slds.css +127 -128
- package/src/lightning/primitiveBubble/tooltip.slds.css +105 -99
- package/src/lightning/primitiveButton/primitiveButton.js +0 -21
- package/src/lightning/primitiveCellButton/primitiveCellButton.js +6 -1
- package/src/lightning/primitiveCellCheckbox/checkbox.css +0 -1
- package/src/lightning/primitiveCellCheckbox/checkbox.lbc.native.css +1 -1
- package/src/lightning/primitiveCellCheckbox/input-checkbox.slds.css +130 -124
- package/src/lightning/primitiveCellCheckbox/input-radio-group.slds.css +6 -5
- package/src/lightning/primitiveCellCheckbox/primitiveCellCheckbox.js +13 -8
- package/src/lightning/primitiveCellCheckbox/radio.lbc.native.css +1 -1
- package/src/lightning/primitiveCellFactory/button-icon.slds.css +50 -31
- package/src/lightning/primitiveCellFactory/primitive-cell-factory.slds.css +0 -1
- package/src/lightning/primitiveCellFactory/primitiveCellFactory.js +7 -11
- package/src/lightning/primitiveColorpickerButton/color-picker-button.slds.css +69 -70
- package/src/lightning/primitiveColumnSorter/form-element.slds.css +4 -4
- package/src/lightning/primitiveColumnSorter/input-radio-group.slds.css +6 -5
- package/src/lightning/primitiveColumnSorter/primitive-column-sorter.slds.css +0 -1
- package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.css +13 -7
- package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.html +1 -1
- package/src/lightning/primitiveColumnSorter/primitiveColumnSorter.js +2 -0
- package/src/lightning/primitiveCoordinateItem/__examples__/basic/basic.js +1 -2
- package/src/lightning/primitiveCoordinateItem/button.slds.css +32 -17
- package/src/lightning/primitiveCoordinateItem/coordinate-item.slds.css +2 -1
- package/src/lightning/primitiveCoordinateItem/primitiveCoordinateItem.css +1 -1
- package/src/lightning/primitiveCustomCell/primitiveCustomCell.js +8 -7
- package/src/lightning/primitiveDatatableCell/primitiveDatatableCell.js +4 -2
- package/src/lightning/primitiveDatatableIeditPanel/popover.slds.css +127 -128
- package/src/lightning/primitiveDatatableStatusBar/button.slds.css +32 -17
- package/src/lightning/primitiveDatatableStatusBar/form-footer.slds.css +32 -32
- package/src/lightning/primitiveDatatableStatusBar/primitiveDatatableStatusBar.css +1 -1
- package/src/lightning/primitiveDatatableStatusBar/primitiveDatatableStatusBar.js +3 -1
- package/src/lightning/primitiveDatatableTooltip/button-icon.slds.css +50 -31
- package/src/lightning/primitiveDatatableTooltip/button.slds.css +32 -17
- package/src/lightning/primitiveDatatableTooltip/form-footer.slds.css +32 -32
- package/src/lightning/primitiveDatatableTooltip/primitiveDatatableTooltip.css +1 -1
- package/src/lightning/primitiveDatatableTooltip/primitiveDatatableTooltip.js +5 -6
- package/src/lightning/primitiveDatatableTooltip/primitiveDatatableTooltip.lbc.native.css +1 -1
- package/src/lightning/primitiveDatatableTooltipBubble/popover.slds.css +127 -128
- package/src/lightning/primitiveDatatableTooltipBubble/primitive-datatable-tooltip-bubble.slds.css +9 -7
- package/src/lightning/primitiveDatatableTooltipBubble/primitiveDatatableTooltipBubble.css +1 -1
- package/src/lightning/primitiveHeaderActions/primitiveHeaderActions.lbc.native.css +1 -1
- package/src/lightning/primitiveHeaderFactory/form-element.slds.css +4 -4
- package/src/lightning/primitiveHeaderFactory/input-checkbox.slds.css +130 -124
- package/src/lightning/primitiveHeaderFactory/primitive-header-factory.slds.css +9 -4
- package/src/lightning/primitiveHeaderFactory/selectableHeader.css +1 -1
- package/src/lightning/primitiveHeaderFactory/selectableHeader.lbc.native.css +1 -1
- package/src/lightning/primitiveHeaderFactory/sortableHeader.lbc.synthetic.css +9 -3
- package/src/lightning/primitiveHeaderFactory/sortingMenuHeader.lbc.native.css +0 -1
- package/src/lightning/primitiveIcon/icon.slds.css +6 -2
- package/src/lightning/primitiveIcon/primitiveIcon.js +10 -2
- package/src/lightning/primitiveInputCheckbox/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputCheckbox/input-checkbox.slds.css +130 -124
- package/src/lightning/primitiveInputCheckboxButton/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputCheckboxButton/input-checkbox-button.slds.css +90 -79
- package/src/lightning/primitiveInputColor/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputColor/input-color.slds.css +27 -28
- package/src/lightning/primitiveInputColor/input-text.slds.css +172 -190
- package/src/lightning/primitiveInputColor/primitiveInputColor.css +1 -1
- package/src/lightning/primitiveInputFile/button.slds.css +32 -17
- package/src/lightning/primitiveInputFile/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputFile/input-file.slds.css +58 -59
- package/src/lightning/primitiveInputSimple/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputSimple/input-text.slds.css +172 -190
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.lbc.synthetic.css +1 -1
- package/src/lightning/primitiveInputToggle/form-element.slds.css +4 -4
- package/src/lightning/primitiveInputToggle/input-toggle.slds.css +134 -118
- package/src/lightning/primitiveResizeHandler/primitive-resize-handler.slds.css +0 -1
- package/src/lightning/primitiveTreegridCellToggle/button-icon.slds.css +50 -31
- package/src/lightning/progressBar/progress-bar.slds.css +38 -39
- package/src/lightning/progressIndicator/__docs__/progressIndicator.md +2 -2
- package/src/lightning/progressIndicator/progress-indicator.slds.css +65 -65
- package/src/lightning/progressIndicator/progressIndicator.css +1 -1
- package/src/lightning/progressIndicator/progressIndicator.lbc.native.css +1 -1
- package/src/lightning/progressRing/progress-ring.slds.css +112 -112
- package/src/lightning/progressStep/progress-step.slds.css +223 -203
- package/src/lightning/prompt/__docs__/prompt.md +14 -14
- package/src/lightning/prompt/form-element.slds.css +4 -4
- package/src/lightning/prompt/input-text.slds.css +172 -190
- package/src/lightning/prompt/prompt.css +1 -1
- package/src/lightning/radioGroup/__docs__/radioGroup.md +6 -6
- package/src/lightning/radioGroup/form-element.slds.css +4 -4
- package/src/lightning/radioGroup/input-radio-group.slds.css +6 -5
- package/src/lightning/relativeDateTime/__docs__/relativeDateTime.md +10 -10
- package/src/lightning/select/__docs__/select.md +5 -5
- package/src/lightning/select/form-element.slds.css +4 -4
- package/src/lightning/select/select.css +1 -1
- package/src/lightning/select/select.html +6 -3
- package/src/lightning/select/select.lbc.native.css +2 -2
- package/src/lightning/select/select.slds.css +117 -115
- package/src/lightning/sldsCommon/sldsCommon.css +0 -1
- package/src/lightning/sldsFormElementUtils/sldsFormElementUtils.css +63 -29
- package/src/lightning/sldsMediaObject/sldsMediaObject.css +1 -3
- package/src/lightning/sldsUtilsAlignment/sldsUtilsAlignment.css +0 -1
- package/src/lightning/sldsUtilsBorders/sldsUtilsBorders.css +8 -5
- package/src/lightning/sldsUtilsBox/sldsUtilsBox.css +0 -1
- package/src/lightning/sldsUtilsFloats/sldsUtilsFloats.css +1 -2
- package/src/lightning/sldsUtilsGrid/sldsUtilsGrid.css +84 -85
- package/src/lightning/sldsUtilsHyphenation/sldsUtilsHyphenation.css +0 -1
- package/src/lightning/sldsUtilsLineClamp/sldsUtilsLineClamp.css +0 -1
- package/src/lightning/sldsUtilsMargin/sldsUtilsMargin.css +0 -1
- package/src/lightning/sldsUtilsPadding/sldsUtilsPadding.css +0 -1
- package/src/lightning/sldsUtilsPosition/sldsUtilsPosition.css +4 -5
- package/src/lightning/sldsUtilsSizing/sldsUtilsSizing.css +0 -1
- package/src/lightning/sldsUtilsThemes/sldsUtilsThemes.css +47 -23
- package/src/lightning/sldsUtilsTruncation/sldsUtilsTruncation.css +0 -1
- package/src/lightning/sldsUtilsVisibility/sldsUtilsVisibility.css +0 -1
- package/src/lightning/slider/README.md +4 -4
- package/src/lightning/slider/form-element.slds.css +4 -4
- package/src/lightning/slider/slider.slds.css +106 -92
- package/src/lightning/spinner/__examples__/if/if.css +1 -1
- package/src/lightning/spinner/__examples__/sizes/sizes.css +1 -1
- package/src/lightning/spinner/spinner.slds.css +327 -326
- package/src/lightning/stackedTab/stacked-tab.slds.css +8 -7
- package/src/lightning/stackedTab/stackedTab.css +1 -1
- package/src/lightning/stackedTab/stackedTab.lbc.native.css +1 -1
- package/src/lightning/stackedTabset/stacked-tabset.slds.css +8 -8
- package/src/lightning/stackedTabset/stackedTabset.css +1 -1
- package/src/lightning/stackedTabset/stackedTabset.lbc.native.css +1 -1
- package/src/lightning/tab/tab.css +1 -1
- package/src/lightning/tab/tab.slds.css +44 -51
- package/src/lightning/tabBar/tab-bar.slds.css +405 -284
- package/src/lightning/tabset/__docs__/tabset.md +4 -4
- package/src/lightning/tabset/tabset.slds.css +12 -12
- package/src/lightning/textarea/__docs__/textarea.md +7 -7
- package/src/lightning/textarea/form-element.slds.css +4 -4
- package/src/lightning/textarea/textarea.js +22 -0
- package/src/lightning/textarea/textarea.lbc.synthetic.css +0 -1
- package/src/lightning/textarea/textarea.slds.css +124 -99
- package/src/lightning/tile/tile.slds.css +0 -1
- package/src/lightning/timepicker/form-element.slds.css +4 -4
- package/src/lightning/timepicker/timepicker.slds.css +13 -14
- package/src/lightning/toast/__docs__/toast.md +19 -19
- package/src/lightning/toast/button-icon.slds.css +50 -31
- package/src/lightning/toast/icon.slds.css +6 -2
- package/src/lightning/toast/toast.lbc.synthetic.css +12 -6
- package/src/lightning/toast/toast.slds.css +90 -90
- package/src/lightning/toastContainer/__docs__/toastContainer.md +4 -1
- package/src/lightning/toastContainer/toast.slds.css +90 -90
- package/src/lightning/toastContainer/toastContainer.lbc.synthetic.css +6 -6
- package/src/lightning/tree/tree.slds.css +1 -1
- package/src/lightning/treeGrid/__docs__/treeGrid.md +128 -64
- package/src/lightning/treeGrid/treeGrid.js +3 -1
- package/src/lightning/treeItem/calendar.slds.css +188 -191
- package/src/lightning/verticalNavigation/__docs__/verticalNavigation.md +5 -5
- package/src/lightning/verticalNavigation/verticalNavigation.css +1 -1
- package/src/lightning/verticalNavigationItemBadge/badge.slds.css +71 -56
- package/src/lightning/verticalNavigationOverflow/button.slds.css +32 -17
- package/src/lightning/verticalNavigationOverflow/vertical-navigation-section.slds.css +8 -8
- package/src/lightning/verticalNavigationOverflow/verticalNavigationOverflow.css +1 -1
- package/src/lightning/verticalNavigationOverflow/verticalNavigationOverflow.lbc.synthetic.css +1 -1
- package/src/lightning/verticalNavigationSection/vertical-navigation-section.slds.css +8 -8
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.css +1 -1
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.lbc.synthetic.css +1 -1
- package/scopedImports/@salesforce-gate-bc.256.enableReactiveCarousel.js +0 -6
- package/scopedImports/@salesforce-gate-colorIconsMenuItem.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-datatableIconSrc.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-formattedDateTimeDateStyle.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-groupedComboboxVariants.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-inputErrorIcon.ce.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-lookups.lookupMetadataLayoutServiceBased.js +0 -6
- package/scopedImports/@salesforce-gate-modalReduceMotionFix.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-overlaySldsScopeClass.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-primitiveThemeProviderDisabled.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-recordFormFieldCaching.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-regexCustomElementCheck.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-sanitizeURL.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-treeGridCustomTypes.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-treeGridStaticCustomTypes.bc.ltng.js +0 -6
- package/scopedImports/@salesforce-gate-treeItemEndIcon.bc.ltng.js +0 -6
|
@@ -225,118 +225,102 @@
|
|
|
225
225
|
* Input Text
|
|
226
226
|
*/
|
|
227
227
|
:host([data-render-mode="shadow"]) [part='input-text'] {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
--slds-c-inputtext-text-color-placeholder,
|
|
253
|
-
var(--slds-g-color-on-surface-1)
|
|
254
|
-
);
|
|
255
|
-
--sds-c-inputtext-color-border: var(
|
|
256
|
-
--slds-c-inputtext-color-border,
|
|
257
|
-
var(--slds-g-color-border-2)
|
|
258
|
-
);
|
|
259
|
-
--sds-c-inputtext-sizing-border: var(--slds-c-inputtext-sizing-border);
|
|
260
|
-
--sds-c-inputtext-radius-border: var(
|
|
261
|
-
--slds-c-inputtext-radius-border,
|
|
262
|
-
var(--slds-g-radius-border-2)
|
|
263
|
-
);
|
|
228
|
+
/* Host reassignments to composed slds-icon */
|
|
229
|
+
--slds-c-icon-color-foreground: var(
|
|
230
|
+
--slds-c-inputtext-icon-color-foreground,
|
|
231
|
+
var(--slds-g-color-on-surface-1)
|
|
232
|
+
);
|
|
233
|
+
--slds-c-icon-sizing: var(--slds-c-inputtext-icon-sizing, 14px);
|
|
234
|
+
--sds-c-inputtext-sizing-height: var(--slds-c-inputtext-sizing-height, var(--slds-g-sizing-9));
|
|
235
|
+
--sds-c-inputtext-color-background: var(
|
|
236
|
+
--slds-c-inputtext-color-background,
|
|
237
|
+
var(--slds-g-color-surface-container-1)
|
|
238
|
+
);
|
|
239
|
+
--sds-c-inputtext-color-background-focus: var(
|
|
240
|
+
--slds-c-inputtext-color-background-focus,
|
|
241
|
+
var(--slds-g-color-surface-container-1)
|
|
242
|
+
);
|
|
243
|
+
--sds-c-inputtext-text-color: var(--slds-c-inputtext-text-color);
|
|
244
|
+
--sds-c-inputtext-font-size: var(--slds-c-inputtext-font-size, var(--slds-g-font-size-base));
|
|
245
|
+
--sds-c-inputtext-text-color-placeholder: var(
|
|
246
|
+
--slds-c-inputtext-text-color-placeholder,
|
|
247
|
+
var(--slds-g-color-on-surface-1)
|
|
248
|
+
);
|
|
249
|
+
--sds-c-inputtext-color-border: var(--slds-c-inputtext-color-border, var(--slds-g-color-border-2));
|
|
250
|
+
--sds-c-inputtext-sizing-border: var(--slds-c-inputtext-sizing-border);
|
|
251
|
+
--sds-c-inputtext-radius-border: var(--slds-c-inputtext-radius-border, var(--slds-g-radius-border-2));
|
|
264
252
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
253
|
+
display: flex;
|
|
254
|
+
flex-wrap: wrap;
|
|
255
|
+
flex-direction: column;
|
|
256
|
+
}
|
|
269
257
|
/**
|
|
270
258
|
* Input Container
|
|
271
259
|
*/
|
|
272
260
|
:host([data-render-mode="shadow"]) [part='input-container'] {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
261
|
+
flex: 1 0 100%;
|
|
262
|
+
align-items: stretch;
|
|
263
|
+
--sds-c-inputtext-spacing-inline: 0;
|
|
264
|
+
--sds-c-inputtext-spacing-block: 0;
|
|
265
|
+
}
|
|
278
266
|
:host([data-render-mode="shadow"]) [part='input-container'][type='range'] {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
267
|
+
border: none;
|
|
268
|
+
display: inline-block;
|
|
269
|
+
}
|
|
282
270
|
:host([data-render-mode="shadow"]) [part='input-container'] .slds-input__icon:not(button) {
|
|
283
|
-
|
|
284
|
-
|
|
271
|
+
pointer-events: none;
|
|
272
|
+
}
|
|
285
273
|
:host([data-render-mode="shadow"]) [part='input'][type='range'] {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
274
|
+
min-height: calc(1.875rem + (1px * 2));
|
|
275
|
+
margin: 0;
|
|
276
|
+
}
|
|
289
277
|
:host([data-render-mode="shadow"]) [part='input-container'][type='range']:focus-within,:host([data-render-mode="shadow"])
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
278
|
+
[part='input-container'][type='range']:active {
|
|
279
|
+
--sds-c-inputtext-color-border: var(--slds-g-color-border-accent-1);
|
|
280
|
+
--sds-c-inputtext-shadow: 0 0 3px var(--slds-g-color-accent-2);
|
|
281
|
+
--sds-c-inputtext-color-background: var(--slds-g-color-surface-container-1);
|
|
294
282
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
283
|
+
outline: 0;
|
|
284
|
+
border-width: var(--sds-c-inputtext-sizing-border, var(--slds-g-sizing-border-1));
|
|
285
|
+
border-color: var(--sds-c-inputtext-color-border, var(--slds-g-color-border-2));
|
|
286
|
+
}
|
|
299
287
|
/**
|
|
300
288
|
* Input
|
|
301
289
|
*/
|
|
302
290
|
:host([data-render-mode="shadow"]) [part='input'] {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
var(--slds-g-spacing-4));
|
|
309
|
-
height: unset;
|
|
310
|
-
font-family: var(--slds-g-font-family);
|
|
311
|
-
}
|
|
291
|
+
padding-inline-start: var(--slds-c-inputtext-spacing-inlinestart, var(--slds-g-spacing-3));
|
|
292
|
+
padding-inline-end: var(--slds-c-inputtext-spacing-inlineend, var(--slds-g-spacing-4));
|
|
293
|
+
height: unset;
|
|
294
|
+
font-family: var(--slds-g-font-family);
|
|
295
|
+
}
|
|
312
296
|
/**
|
|
313
297
|
* Focus / active State
|
|
314
298
|
*/
|
|
315
|
-
:host(:not([disabled])) [part=
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
299
|
+
:host(:not([disabled])) [part='input-container']:focus-within,
|
|
300
|
+
:host(:not([disabled])) [part='input-container']:active {
|
|
301
|
+
--sds-c-inputtext-color-border: var(--slds-g-color-border-accent-1);
|
|
302
|
+
--sds-c-inputtext-shadow: 0 0 var(--slds-g-sizing-border-3) var(--slds-g-color-accent-2);
|
|
303
|
+
--sds-c-inputtext-color-background: var(--slds-g-color-surface-container-1);
|
|
320
304
|
|
|
321
|
-
|
|
322
|
-
|
|
305
|
+
outline: 0;
|
|
306
|
+
}
|
|
323
307
|
/**
|
|
324
308
|
* Read Only State
|
|
325
309
|
*/
|
|
326
310
|
:host([data-render-mode="shadow"][readonly]) [part='input-text'] {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
:host([data-render-mode="shadow"][readonly]) [part=
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
311
|
+
--sds-c-inputtext-spacing-inline-start-readonly: 0;
|
|
312
|
+
--sds-c-inputtext-color-border-focus: transparent;
|
|
313
|
+
--slds-c-inputtext-color-border: transparent;
|
|
314
|
+
--slds-c-inputtext-color-background: transparent;
|
|
315
|
+
--slds-c-inputtext-color-background-focus: transparent;
|
|
316
|
+
}
|
|
317
|
+
:host([data-render-mode="shadow"][readonly]) [part='input-container']:focus-within,:host([data-render-mode="shadow"][readonly]) [part='input-container']:active {
|
|
318
|
+
--sds-c-inputtext-color-border: var(--slds-g-color-disabled-container-2);
|
|
319
|
+
--sds-c-inputtext-shadow: 0 0 var(--slds-g-sizing-border-3) var(--slds-g-color-accent-2);
|
|
320
|
+
--sds-c-inputtext-color-background: transparent;
|
|
337
321
|
|
|
338
|
-
|
|
339
|
-
|
|
322
|
+
outline: 0;
|
|
323
|
+
}
|
|
340
324
|
/**
|
|
341
325
|
* Invalid State
|
|
342
326
|
*
|
|
@@ -345,25 +329,24 @@
|
|
|
345
329
|
* uses :host([invalid]).
|
|
346
330
|
*/
|
|
347
331
|
:host([data-render-mode="shadow"][invalid]) [part='input-text'] {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
}
|
|
332
|
+
--sds-c-inputtext-shadow: 0 0 0 var(--slds-g-sizing-border-1) inset var(--slds-g-color-error-1);
|
|
333
|
+
--slds-c-inputtext-color-border: var(--slds-g-color-border-error-1);
|
|
334
|
+
--slds-c-icon-color-foreground: var(--slds-g-color-error-1);
|
|
335
|
+
}
|
|
353
336
|
:host([data-render-mode="shadow"][invalid]) .slds-input-has-icon .slds-button_icon:hover {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
:host([data-render-mode="shadow"][invalid]) input[type=
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
337
|
+
--slds-c-icon-color-foreground: var(--slds-g-color-error-1);
|
|
338
|
+
}
|
|
339
|
+
:host([data-render-mode="shadow"][invalid]) input[type='search'] {
|
|
340
|
+
--slds-c-input-color-background: var(--slds-s-input-color-background-invalid);
|
|
341
|
+
--slds-c-input-color-border: var(--slds-g-color-border-error-1);
|
|
342
|
+
--slds-c-input-text-color: var(--slds-s-input-color-invalid);
|
|
360
343
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
:host([data-render-mode="shadow"][invalid]) input[type=
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
344
|
+
background-clip: padding-box;
|
|
345
|
+
}
|
|
346
|
+
:host([data-render-mode="shadow"][invalid]) input[type='search'] + lightning-primitive-icon::part(icon) {
|
|
347
|
+
fill: var(--slds-g-color-error-1);
|
|
348
|
+
color: var(--slds-g-color-error-1);
|
|
349
|
+
}
|
|
367
350
|
/**
|
|
368
351
|
* Invalid State - Focus
|
|
369
352
|
*
|
|
@@ -371,26 +354,28 @@
|
|
|
371
354
|
* here to prevent a bug with the focus state border and box-shadow
|
|
372
355
|
*/
|
|
373
356
|
:host([data-render-mode="shadow"][invalid]) [part='input-container']:focus-within {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
357
|
+
--sds-c-inputtext-shadow:
|
|
358
|
+
var(--slds-g-color-error-base-50) 0 0 0 var(--slds-g-sizing-border-1) inset,
|
|
359
|
+
0 0 var(--slds-g-sizing-border-3) var(--slds-g-color-border-error-1);
|
|
360
|
+
--sds-c-inputtext-color-border: var(--slds-g-color-error-1);
|
|
361
|
+
}
|
|
379
362
|
/**
|
|
380
363
|
* Disabled State
|
|
381
364
|
*
|
|
382
365
|
* Both parts form the visible form control.
|
|
383
366
|
*/
|
|
384
367
|
:host([data-render-mode="shadow"][disabled]) [part='input-container'],:host([data-render-mode="shadow"][disabled]) [part='input'] {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
368
|
+
cursor: not-allowed;
|
|
369
|
+
--sds-c-inputtext-color-background: var(
|
|
370
|
+
--slds-s-input-color-background-disabled,
|
|
371
|
+
var(--slds-g-color-disabled-container-1)
|
|
372
|
+
);
|
|
373
|
+
--sds-c-inputtext-color-border: var(--slds-g-color-border-disabled-1);
|
|
374
|
+
--sds-c-inputtext-text-color: var(--slds-g-color-on-disabled-2);
|
|
375
|
+
}
|
|
390
376
|
:host([data-render-mode="shadow"][disabled]) [part='input-text'] {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
}
|
|
377
|
+
--sds-c-inputtext-text-color-placeholder: var(--slds-g-color-on-disabled-2);
|
|
378
|
+
}
|
|
394
379
|
/**
|
|
395
380
|
* Label
|
|
396
381
|
*
|
|
@@ -398,17 +383,14 @@
|
|
|
398
383
|
* avoid collisions with other components using [part='label'] (e.g. slds-input-checkbox)
|
|
399
384
|
*/
|
|
400
385
|
:host([data-render-mode="shadow"]) [part='input-text'] [part='label'] {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
var(--slds-g-color-on-surface-2)
|
|
406
|
-
);
|
|
407
|
-
margin-block-end: var(--slds-g-sizing-1);
|
|
386
|
+
padding-block-start: var(--slds-g-spacing-1);
|
|
387
|
+
padding-inline-end: var(--slds-g-spacing-2);
|
|
388
|
+
color: var(--slds-c-inputtext-label-color, var(--slds-g-color-on-surface-2));
|
|
389
|
+
margin-block-end: var(--slds-g-sizing-1);
|
|
408
390
|
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
391
|
+
/* We inline flex to control the spacing between elements and not have to rely on whitespace characters */
|
|
392
|
+
display: inline-flex;
|
|
393
|
+
}
|
|
412
394
|
/**
|
|
413
395
|
* Start
|
|
414
396
|
*
|
|
@@ -417,8 +399,8 @@
|
|
|
417
399
|
* the icon in the inline help text.
|
|
418
400
|
*/
|
|
419
401
|
:host([data-render-mode="shadow"]) [part='start'] {
|
|
420
|
-
|
|
421
|
-
|
|
402
|
+
--slds-c-icon-spacing-inlineend: var(--slds-g-spacing-2);
|
|
403
|
+
}
|
|
422
404
|
/**
|
|
423
405
|
* Label Inline Variant
|
|
424
406
|
*
|
|
@@ -432,75 +414,75 @@
|
|
|
432
414
|
* Ref: https://github.com/salesforce-ux/design-system-internal/blob/240-winter-23/ui/components/form-element/horizontal/_index.scss#L63
|
|
433
415
|
*/
|
|
434
416
|
@media (width >= 48em) {
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
417
|
+
:host([data-render-mode="shadow"][variant='label-inline']) [part='input-text'] {
|
|
418
|
+
display: block;
|
|
419
|
+
}
|
|
438
420
|
|
|
439
|
-
|
|
440
|
-
|
|
421
|
+
:host([data-render-mode="shadow"][variant='label-inline']) [part='label'] {
|
|
422
|
+
float: left;
|
|
441
423
|
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
424
|
+
/* TODO: Get rid of these magic numbers */
|
|
425
|
+
max-width: calc(33% - 1.125rem);
|
|
426
|
+
padding-block-start: var(--slds-g-spacing-1);
|
|
427
|
+
}
|
|
446
428
|
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
429
|
+
:host([data-render-mode="shadow"][variant='label-inline']) [part='input-container'] {
|
|
430
|
+
margin-inline-start: 33%;
|
|
431
|
+
}
|
|
450
432
|
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
:host([data-render-mode="shadow"]) input[type=
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
433
|
+
:host([data-render-mode="shadow"][variant='label-inline']) [part='inline-help'] {
|
|
434
|
+
float: left;
|
|
435
|
+
padding-block-start: var(--slds-g-spacing-1);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
:host([data-render-mode="shadow"]) input[type='search'] + lightning-primitive-icon::part(icon) {
|
|
439
|
+
left: var(--slds-g-spacing-3);
|
|
440
|
+
fill: var(--slds-g-color-on-surface-1);
|
|
441
|
+
}
|
|
460
442
|
:host([data-render-mode="shadow"]) .slds-input-has-icon .slds-button_icon {
|
|
461
|
-
|
|
462
|
-
|
|
443
|
+
background-color: transparent;
|
|
444
|
+
}
|
|
463
445
|
:host([data-render-mode="shadow"]) .slds-input-has-icon .slds-button_icon:focus,:host([data-render-mode="shadow"])
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
446
|
+
.slds-input-has-icon .slds-button_icon:hover {
|
|
447
|
+
--slds-c-icon-color-foreground: var(--slds-g-color-accent-3);
|
|
448
|
+
}
|
|
467
449
|
:host([data-render-mode="shadow"]) .slds-input-has-icon .slds-input__icon {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
450
|
+
width: 0.875rem;
|
|
451
|
+
height: 0.875rem;
|
|
452
|
+
position: absolute;
|
|
453
|
+
top: 50%;
|
|
454
|
+
margin-top: -0.4375rem;
|
|
455
|
+
line-height: 1;
|
|
456
|
+
border: 0;
|
|
457
|
+
z-index: 2;
|
|
458
|
+
}
|
|
477
459
|
/**
|
|
478
460
|
* Has Icon Left
|
|
479
461
|
*/
|
|
480
462
|
:host([data-render-mode="shadow"]) .slds-input-has-icon_left {
|
|
481
|
-
|
|
482
|
-
|
|
463
|
+
--slds-c-inputtext-spacing-inlinestart: var(--slds-g-spacing-6);
|
|
464
|
+
}
|
|
483
465
|
:host([data-render-mode="shadow"]) .slds-input-has-icon_left .slds-input__icon,:host([data-render-mode="shadow"])
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
466
|
+
.slds-input-has-icon_left-right .slds-input__icon_left {
|
|
467
|
+
inset-inline-start: var(--slds-g-spacing-3);
|
|
468
|
+
}
|
|
487
469
|
/**
|
|
488
470
|
* Has Icon Right
|
|
489
471
|
*/
|
|
490
472
|
:host([data-render-mode="shadow"]) .slds-input-has-icon_right {
|
|
491
|
-
|
|
492
|
-
|
|
473
|
+
--slds-c-inputtext-spacing-inlineend: var(--slds-g-spacing-6);
|
|
474
|
+
}
|
|
493
475
|
:host([data-render-mode="shadow"]) .slds-input-has-icon_right .slds-input__icon,:host([data-render-mode="shadow"])
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
476
|
+
.slds-input-has-icon_left-right .slds-input__icon_right {
|
|
477
|
+
inset-inline-end: var(--slds-g-spacing-3);
|
|
478
|
+
}
|
|
497
479
|
/**
|
|
498
480
|
* Has Icon Left & Right
|
|
499
481
|
*/
|
|
500
482
|
:host([data-render-mode="shadow"]) .slds-input-has-icon_left-right {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
483
|
+
--slds-c-inputtext-spacing-inlinestart: var(--slds-g-spacing-6);
|
|
484
|
+
--slds-c-inputtext-spacing-inlineend: var(--slds-g-spacing-6);
|
|
485
|
+
}
|
|
504
486
|
/**
|
|
505
487
|
* A temporarily baked-in utility class until SLDS gets a proper utility package.
|
|
506
488
|
*
|
|
@@ -509,14 +491,14 @@
|
|
|
509
491
|
* utility package solution.
|
|
510
492
|
*/
|
|
511
493
|
:host([data-render-mode="shadow"]) .slds-assistive-text {
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
494
|
+
position: absolute !important;
|
|
495
|
+
margin: -1px !important;
|
|
496
|
+
border: 0 !important;
|
|
497
|
+
padding: 0 !important;
|
|
498
|
+
width: 1px !important;
|
|
499
|
+
height: 1px !important;
|
|
500
|
+
overflow: hidden !important;
|
|
501
|
+
clip: rect(0 0 0 0) !important;
|
|
502
|
+
text-transform: none !important;
|
|
503
|
+
white-space: nowrap !important;
|
|
504
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# Dialog (Deprecated)
|
|
2
2
|
|
|
3
3
|
## Important:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
|
|
5
|
+
- **For any new modal work, starting in release 236, please use `lightning-modal`**
|
|
6
|
+
- **We do not recommend or support the use of `lightning-dialog` in one.app, mobile or any other case where the stacking context can't be controlled**
|
|
7
|
+
- **The `lightning-dialog` is bound by the stacking context, meaning that if any sibling of a root parent of the modal has a higher z-index than the modal dialog, it will show on top of the modal created with the `lightning-dialog` component.**
|
|
8
|
+
- **The `lightning-dialog` is not Aura (one.app) panel manager aware and as such will not open scoped modals nor work correctly when opened from an aura (panel manager based) dialog.**
|
|
8
9
|
|
|
9
10
|
A `lightning-dialog` component creates a modal dialog, which displays in a layer above the app
|
|
10
11
|
and keeps focus until you close the dialog.
|
|
@@ -20,8 +21,8 @@ The body of the dialog can contain other components or HTML.
|
|
|
20
21
|
|
|
21
22
|
The component supports two methods:
|
|
22
23
|
|
|
23
|
-
-
|
|
24
|
-
-
|
|
24
|
+
- `showModal()` to show a modal dialog
|
|
25
|
+
- `close()` to close the dialog
|
|
25
26
|
|
|
26
27
|
Here is a simple dialog example that creates a prompt for the user. It includes a header and a slot for
|
|
27
28
|
footer content that consists of two buttons. A button below the dialog shows
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
### Specification
|
|
2
2
|
|
|
3
|
-
-
|
|
4
|
-
-
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
3
|
+
- The modal accepts a “header” as a string attribute.
|
|
4
|
+
- The modal accepts content in the form of the default slot.
|
|
5
|
+
- The modal accepts a footer in the form of the named “footer” slot.
|
|
6
|
+
- When opening a modal, the focus goes to the first tabbable element (we define this as a visible/non-disabled element that has a tabIndex of 0 and is not within a custom element with tabindex attribute of “-1" on it));
|
|
7
|
+
if none, then the focus is set on the close "x" button.
|
|
8
|
+
- When opening a modal dialog, all the modal dialog's sibling nodes (including up the tree) will have aria-hidden=true to make them inert from accessibility perspective.
|
|
9
|
+
- When a modal dialog is showing, a backdrop appears blocking any mouse interactions.
|
|
10
|
+
- When a modal dialog is showing the focus is trapped for both sequential Tabs and Shift-Tabs, after the last tabbable element of the modal the focus needs to go to the close button, and if using Shift-Tab on the close button, the focus goes on the last tabbable element.
|
|
11
|
+
- When the last tabbable element of the modal dialog is either removed or changed order the focus trapping should continue to work in the manner described above.
|
|
12
|
+
- When the last tabbable is still in the DOM but no longer last, it will have its keydown listener removed and tabbing from it will lead to the next element.
|
|
13
|
+
- When a dialog is closed, a 'close' event is dispatched.
|
|
14
|
+
- When a dialog is closed, the focus returns to the element that was in focus before opening of the modal dialog. If no such element is found, document.body is focused.
|
|
15
|
+
- When closing a modal dialog, the aria-hiddens of the modal dialog's sibling nodes are restored to their previous values (that is, if an element had aria-hidden="true" it will be preserved).
|
|
16
|
+
- Clicking on the "x" (close) button closes the dialog and dispatches the 'close' and 'cancel' events (the latter is cancelable).
|
|
17
|
+
- Pressing "Escape" closes the dialog, and dispatches 'close' and 'cancel' events (the latter is cancelable).
|
|
18
|
+
- Opening and closing of the same dialog is possible (and will not leave any dangling references or extra DOM elements).
|
|
19
|
+
- When opening a modal and there is another modal already opened, the second modal will not show and a console warning will appear.
|
|
20
|
+
- Preventing the default behaviour of the 'cancel' event prevents the dialog from closing.
|
|
@@ -76,19 +76,19 @@ Client-side input validation is available for this component. Note that disabled
|
|
|
76
76
|
|
|
77
77
|
To check the validity states of the input, use the `validity` attribute to return an object with read-only `boolean` attributes.
|
|
78
78
|
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
|
|
79
|
+
- `rangeOverflow`
|
|
80
|
+
- `rangeUnderflow`
|
|
81
|
+
- `valueMissing`
|
|
82
|
+
- `valid`
|
|
83
|
+
For more information on the `validity` attribute, see [lightning-input](bundle/lightning-input/documentation).
|
|
84
84
|
|
|
85
85
|
#### Error Messages
|
|
86
86
|
|
|
87
87
|
When an input validation fails, the following messages are displayed by default.
|
|
88
88
|
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
89
|
+
- `rangeOverflow`: Select at most [max] options
|
|
90
|
+
- `rangeUnderflow`: At least [min] options must be selected
|
|
91
|
+
- `valueMissing`: An option must be selected
|
|
92
92
|
|
|
93
93
|
[max] and [min] refer to the numerical values for the `max` and `min` attributes you provide.
|
|
94
94
|
|
|
@@ -106,10 +106,10 @@ Component styling hooks use the `--slds-c-*` prefix and change styling for speci
|
|
|
106
106
|
|
|
107
107
|
Use the `variant` attribute with one of these values to position the labels differently relative to the picklist field.
|
|
108
108
|
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
109
|
+
- `standard` is the default
|
|
110
|
+
- `label-hidden` hides the label visually but makes it available to assistive technology. If you provide a value for `field-level-help`, the tooltip icon is still displayed.
|
|
111
|
+
- `label-inline` aligns the label next to the picklist field
|
|
112
|
+
- `label-stacked` places the label above the picklist field
|
|
113
113
|
|
|
114
114
|
##### Customize Component Styling
|
|
115
115
|
|
|
@@ -137,24 +137,24 @@ in the selected options list.
|
|
|
137
137
|
|
|
138
138
|
Use the following keyboard shortcuts to work with dual listboxes.
|
|
139
139
|
|
|
140
|
-
-
|
|
141
|
-
-
|
|
142
|
-
-
|
|
140
|
+
- Click - Select a single option.
|
|
141
|
+
- Cmd+Click - Select multiple options or deselect selected options.
|
|
142
|
+
- Shift+Click - Select all options between the current and last clicked option.
|
|
143
143
|
|
|
144
144
|
When focus is on options:
|
|
145
145
|
|
|
146
|
-
-
|
|
147
|
-
-
|
|
148
|
-
-
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
146
|
+
- Up Arrow - Move selection to previous option.
|
|
147
|
+
- Down Arrow - Move selection to next option.
|
|
148
|
+
- Cmd/Ctrl+Up Arrow - Move focus to previous option.
|
|
149
|
+
- Cmd/Ctrl+Down Arrow - Move focus to next option.
|
|
150
|
+
- Ctrl+Space - Toggle selection of focused option.
|
|
151
|
+
- Cmd/Ctrl+Right Arrow - Move selected options to right listbox.
|
|
152
|
+
- Cmd/Ctrl+Left Arrow - Move selected options to left listbox.
|
|
153
|
+
- Tab - Move focus to the buttons or between boxes.
|
|
154
154
|
|
|
155
155
|
When focus is on a button:
|
|
156
156
|
|
|
157
|
-
-
|
|
157
|
+
- Enter - Perform the operation associated with that button.
|
|
158
158
|
|
|
159
159
|
#### Custom Events
|
|
160
160
|
|