lightning-base-components 1.21.1-alpha → 1.21.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/metadata/raptor.json +60 -0
- package/package.json +155 -2
- package/src/lightning/accordion/accordion-section.slds.css +122 -0
- package/src/lightning/accordion/accordion.css +2 -16
- package/src/lightning/accordion/accordion.js +10 -7
- package/src/lightning/accordion/accordion.js-meta.xml +3 -0
- package/src/lightning/accordion/accordion.lbc.native.css +4 -0
- package/src/lightning/accordion/accordion.lbc.synthetic.css +13 -0
- package/src/lightning/accordion/accordion.slds.css +0 -654
- package/src/lightning/accordionSection/accordion-section.slds.css +28 -561
- package/src/lightning/accordionSection/accordionSection.css +2 -17
- package/src/lightning/accordionSection/accordionSection.js +26 -16
- package/src/lightning/accordionSection/accordionSection.js-meta.xml +3 -0
- package/src/lightning/accordionSection/accordionSection.lbc.native.css +5 -0
- package/src/lightning/accordionSection/accordionSection.lbc.synthetic.css +14 -0
- package/src/lightning/accordionSection/button.slds.css +503 -0
- package/src/lightning/alert/alert.css +1 -0
- package/src/lightning/alert/alert.js +12 -9
- package/src/lightning/alert/alert.js-meta.xml +3 -0
- package/src/lightning/alert/alert.lbc.native.css +1 -0
- package/src/lightning/ariaObserver/ariaObserver.js +111 -46
- package/src/lightning/avatar/avatar.css +1 -2
- package/src/lightning/avatar/avatar.html +19 -5
- package/src/lightning/avatar/avatar.js +18 -3
- package/src/lightning/avatar/avatar.js-meta.xml +3 -0
- package/src/lightning/avatar/avatar.lbc.native.css +2 -0
- package/src/lightning/avatar/avatar.slds.css +34 -205
- package/src/lightning/badge/__examples__/basic/basic.html +3 -1
- package/src/lightning/badge/badge.css +1 -0
- package/src/lightning/badge/badge.html +16 -14
- package/src/lightning/badge/badge.js +4 -2
- package/src/lightning/badge/badge.lbc.native.css +2 -0
- package/src/lightning/badge/badge.slds.css +76 -0
- package/src/lightning/baseCombobox/base-combobox.slds.css +101 -1433
- package/src/lightning/baseCombobox/baseCombobox.css +2 -27
- package/src/lightning/baseCombobox/baseCombobox.html +1 -1
- package/src/lightning/baseCombobox/baseCombobox.js +15 -2
- package/src/lightning/baseCombobox/baseCombobox.lbc.native.css +7 -0
- package/src/lightning/baseCombobox/baseCombobox.lbc.synthetic.css +25 -0
- package/src/lightning/baseCombobox/dropdown.slds.css +594 -0
- package/src/lightning/baseCombobox/input-text.slds.css +533 -0
- package/src/lightning/baseCombobox/listbox.slds.css +252 -0
- package/src/lightning/baseCombobox/spinner.slds.css +429 -0
- package/src/lightning/baseComboboxFormattedText/baseComboboxFormattedText.js +3 -2
- package/src/lightning/baseComboboxItem/baseComboboxItem.js +4 -2
- package/src/lightning/baseComboboxItem/card.css +1 -0
- package/src/lightning/baseComboboxItem/card.lbc.native.css +2 -0
- package/src/lightning/baseComboboxItem/inline.css +1 -2
- package/src/lightning/baseComboboxItem/inline.lbc.native.css +2 -0
- package/src/lightning/baseComboboxItem/listbox.slds.css +179 -179
- package/src/lightning/breadcrumb/breadcrumb.css +2 -6
- package/src/lightning/breadcrumb/breadcrumb.js +4 -2
- package/src/lightning/breadcrumb/breadcrumb.js-meta.xml +3 -0
- package/src/lightning/breadcrumb/breadcrumb.lbc.native.css +1 -0
- package/src/lightning/breadcrumb/breadcrumb.lbc.synthetic.css +3 -0
- package/src/lightning/breadcrumb/breadcrumb.slds.css +4 -6
- package/src/lightning/breadcrumbs/breadcrumbs.css +2 -10
- package/src/lightning/breadcrumbs/breadcrumbs.js +3 -2
- package/src/lightning/breadcrumbs/breadcrumbs.js-meta.xml +3 -0
- package/src/lightning/breadcrumbs/breadcrumbs.lbc.native.css +2 -0
- package/src/lightning/breadcrumbs/breadcrumbs.lbc.synthetic.css +7 -0
- package/src/lightning/breadcrumbs/breadcrumbs.slds.css +7 -5
- package/src/lightning/button/button.css +1 -2
- package/src/lightning/button/button.js-meta.xml +3 -0
- package/src/lightning/button/button.lbc.native.css +2 -0
- package/src/lightning/button/button.slds.css +365 -395
- package/src/lightning/buttonGroup/button-group.slds.css +37 -35
- package/src/lightning/buttonGroup/buttonGroup.css +2 -11
- package/src/lightning/buttonGroup/buttonGroup.js +5 -2
- package/src/lightning/buttonGroup/buttonGroup.js-meta.xml +3 -0
- package/src/lightning/buttonGroup/buttonGroup.lbc.native.css +2 -0
- package/src/lightning/buttonGroup/buttonGroup.lbc.synthetic.css +3 -0
- package/src/lightning/buttonIcon/button-icon.slds.css +575 -766
- package/src/lightning/buttonIcon/buttonIcon.css +2 -2
- package/src/lightning/buttonIcon/buttonIcon.js +8 -2
- package/src/lightning/buttonIcon/buttonIcon.js-meta.xml +3 -0
- package/src/lightning/buttonIconStateful/button-icon-stateful.slds.css +19 -974
- package/src/lightning/buttonIconStateful/button-icon.slds.css +724 -0
- package/src/lightning/buttonIconStateful/button.slds.css +503 -0
- package/src/lightning/buttonIconStateful/buttonIconStateful.css +2 -6
- package/src/lightning/buttonIconStateful/buttonIconStateful.js +54 -0
- package/src/lightning/buttonIconStateful/buttonIconStateful.js-meta.xml +3 -0
- package/src/lightning/buttonIconStateful/buttonIconStateful.lbc.native.css +4 -0
- package/src/lightning/buttonIconStateful/buttonIconStateful.lbc.synthetic.css +3 -0
- package/src/lightning/buttonMenu/button-icon.slds.css +724 -0
- package/src/lightning/buttonMenu/button-menu.slds.css +36 -1880
- package/src/lightning/buttonMenu/button.slds.css +503 -0
- package/src/lightning/buttonMenu/buttonMenu.css +1 -2
- package/src/lightning/buttonMenu/buttonMenu.js +8 -4
- package/src/lightning/buttonMenu/buttonMenu.js-meta.xml +3 -0
- package/src/lightning/buttonMenu/buttonMenu.lbc.native.css +5 -0
- package/src/lightning/buttonMenu/dropdown.slds.css +594 -0
- package/src/lightning/buttonStateful/button-stateful.slds.css +2 -745
- package/src/lightning/buttonStateful/button.slds.css +503 -0
- package/src/lightning/buttonStateful/buttonStateful.css +1 -2
- package/src/lightning/buttonStateful/buttonStateful.js +3 -2
- package/src/lightning/buttonStateful/buttonStateful.lbc.native.css +3 -0
- package/src/lightning/calendar/calendar.css +2 -11
- package/src/lightning/calendar/calendar.js +4 -2
- package/src/lightning/calendar/calendar.lbc.native.css +11 -0
- package/src/lightning/calendar/calendar.lbc.synthetic.css +8 -0
- package/src/lightning/calendar/calendar.slds.css +33 -1848
- package/src/lightning/calendar/dropdown.slds.css +594 -0
- package/src/lightning/card/card.css +1 -2
- package/src/lightning/card/card.js +3 -2
- package/src/lightning/card/card.lbc.native.css +2 -0
- package/src/lightning/card/card.slds.css +119 -176
- package/src/lightning/carousel/carousel.css +1 -7
- package/src/lightning/carousel/carousel.lbc.synthetic.css +7 -0
- package/src/lightning/colorPickerCustom/color-picker-custom.slds.css +34 -258
- package/src/lightning/colorPickerCustom/colorPickerCustom.css +1 -2
- package/src/lightning/colorPickerCustom/colorPickerCustom.js +3 -2
- package/src/lightning/colorPickerCustom/colorPickerCustom.lbc.native.css +3 -0
- package/src/lightning/colorPickerCustom/input-text.slds.css +533 -0
- package/src/lightning/colorPickerPanel/color-picker-panel.slds.css +2 -773
- package/src/lightning/colorPickerPanel/colorPickerPanel.css +2 -12
- package/src/lightning/colorPickerPanel/colorPickerPanel.js +4 -2
- package/src/lightning/colorPickerPanel/colorPickerPanel.lbc.native.css +3 -0
- package/src/lightning/colorPickerPanel/colorPickerPanel.lbc.synthetic.css +8 -0
- package/src/lightning/colorPickerPanel/popover.slds.css +29 -30
- package/src/lightning/combobox/combobox.css +2 -19
- package/src/lightning/combobox/combobox.html +4 -1
- package/src/lightning/combobox/combobox.js +20 -3
- package/src/lightning/combobox/combobox.js-meta.xml +3 -0
- package/src/lightning/combobox/combobox.lbc.native.css +3 -0
- package/src/lightning/combobox/combobox.lbc.synthetic.css +28 -0
- package/src/lightning/combobox/combobox.slds.css +2 -2
- package/src/lightning/combobox/form-element.slds.css +70 -43
- package/src/lightning/configProvider/defaultDurationConfig.js +1 -1
- package/src/lightning/confirm/confirm.css +1 -0
- package/src/lightning/confirm/confirm.js +12 -9
- package/src/lightning/confirm/confirm.js-meta.xml +3 -0
- package/src/lightning/confirm/confirm.lbc.native.css +1 -0
- package/src/lightning/datatable/__examples__/customDatatypeTable/customLink.html +5 -7
- package/src/lightning/datepicker/datepicker.css +1 -3
- package/src/lightning/datepicker/datepicker.js +15 -8
- package/src/lightning/datepicker/datepicker.lbc.native.css +3 -0
- package/src/lightning/datepicker/form-element.slds.css +70 -43
- package/src/lightning/datepicker/input-text.slds.css +253 -118
- package/src/lightning/datetimepicker/datetimepicker.css +1 -3
- package/src/lightning/datetimepicker/datetimepicker.html +0 -2
- package/src/lightning/datetimepicker/datetimepicker.js +35 -10
- package/src/lightning/datetimepicker/datetimepicker.lbc.native.css +3 -0
- package/src/lightning/datetimepicker/form-element.slds.css +70 -43
- package/src/lightning/datetimepicker/input-text.slds.css +253 -118
- package/src/lightning/dualListbox/dual-listbox.slds.css +27 -27
- package/src/lightning/dualListbox/dualListbox.css +2 -8
- package/src/lightning/dualListbox/dualListbox.js +55 -36
- package/src/lightning/dualListbox/dualListbox.js-meta.xml +3 -0
- package/src/lightning/dualListbox/dualListbox.lbc.native.css +4 -0
- package/src/lightning/dualListbox/dualListbox.lbc.synthetic.css +3 -0
- package/src/lightning/dualListbox/form-element.slds.css +70 -43
- package/src/lightning/dualListbox/listbox.slds.css +179 -179
- package/src/lightning/dynamicIcon/dynamicIcon.js +3 -2
- package/src/lightning/dynamicIcon/dynamicIcon.js-meta.xml +3 -0
- package/src/lightning/dynamicIcon/ellie.css +1 -1
- package/src/lightning/dynamicIcon/ellie.lbc.native.css +1 -0
- package/src/lightning/dynamicIcon/eq.css +1 -1
- package/src/lightning/dynamicIcon/eq.lbc.native.css +1 -0
- package/src/lightning/dynamicIcon/score.css +1 -1
- package/src/lightning/dynamicIcon/score.lbc.native.css +1 -0
- package/src/lightning/dynamicIcon/strength.css +1 -1
- package/src/lightning/dynamicIcon/strength.lbc.native.css +1 -0
- package/src/lightning/dynamicIcon/trend.css +1 -1
- package/src/lightning/dynamicIcon/trend.lbc.native.css +1 -0
- package/src/lightning/dynamicIcon/waffle.css +1 -1
- package/src/lightning/dynamicIcon/waffle.lbc.native.css +1 -0
- package/src/lightning/focusTrap/focusTrap.js +3 -2
- package/src/lightning/focusTrap/focusTrap.js-meta.xml +3 -0
- package/src/lightning/formattedAddress/formattedAddress.js-meta.xml +3 -0
- package/src/lightning/formattedEmail/formattedEmail.css +1 -0
- package/src/lightning/formattedEmail/formattedEmail.js +4 -2
- package/src/lightning/formattedEmail/formattedEmail.js-meta.xml +3 -0
- package/src/lightning/formattedEmail/formattedEmail.lbc.native.css +7 -0
- package/src/lightning/formattedLocation/formattedLocation.js-meta.xml +3 -0
- package/src/lightning/formattedNumber/formattedNumber.css +1 -4
- package/src/lightning/formattedNumber/formattedNumber.lbc.synthetic.css +4 -0
- package/src/lightning/formattedPhone/formattedPhone.css +1 -4
- package/src/lightning/formattedPhone/formattedPhone.js-meta.xml +3 -0
- package/src/lightning/formattedPhone/formattedPhone.lbc.synthetic.css +4 -0
- package/src/lightning/formattedRichText/formatted-rich-text.slds.css +39 -39
- package/src/lightning/formattedRichText/formattedRichText.css +1 -3
- package/src/lightning/formattedRichText/formattedRichText.js +4 -2
- package/src/lightning/formattedRichText/formattedRichText.js-meta.xml +3 -0
- package/src/lightning/formattedRichText/formattedRichText.lbc.native.css +3 -0
- package/src/lightning/formattedText/formattedText.css +1 -1
- package/src/lightning/formattedText/formattedText.js +3 -2
- package/src/lightning/formattedText/formattedText.js-meta.xml +3 -0
- package/src/lightning/formattedText/formattedText.lbc.native.css +1 -0
- package/src/lightning/formattedTime/formattedTime.js-meta.xml +3 -0
- package/src/lightning/formattedUrl/formattedUrl.js-meta.xml +3 -0
- package/src/lightning/groupedCombobox/__mockData__/exampleGroupedComboboxData.js +17 -0
- package/src/lightning/groupedCombobox/form-element.slds.css +315 -0
- package/src/lightning/groupedCombobox/grouped-combobox.slds.css +15 -0
- package/src/lightning/groupedCombobox/groupedCombobox.css +2 -3
- package/src/lightning/groupedCombobox/groupedCombobox.js +25 -3
- package/src/lightning/groupedCombobox/groupedCombobox.js-meta.xml +3 -0
- package/src/lightning/groupedCombobox/groupedCombobox.lbc.native.css +5 -0
- package/src/lightning/groupedCombobox/groupedCombobox.lbc.syhtnetic.css +3 -0
- package/src/lightning/groupedCombobox/input-text.slds.css +533 -0
- package/src/lightning/helptext/button-icon.slds.css +724 -0
- package/src/lightning/helptext/form-element.slds.css +70 -43
- package/src/lightning/helptext/help-text.slds.css +6 -938
- package/src/lightning/helptext/helptext.css +1 -3
- package/src/lightning/helptext/helptext.js +3 -2
- package/src/lightning/helptext/helptext.lbc.native.css +4 -0
- package/src/lightning/icon/icon.css +1 -2
- package/src/lightning/icon/icon.js +20 -2
- package/src/lightning/icon/icon.js-meta.xml +3 -0
- package/src/lightning/icon/icon.lbc.native.css +2 -0
- package/src/lightning/icon/icon.slds.css +64 -53
- package/src/lightning/input/form-element.slds.css +70 -43
- package/src/lightning/input/input.css +2 -13
- package/src/lightning/input/input.html +1 -0
- package/src/lightning/input/input.js +55 -9
- package/src/lightning/input/input.lbc.native.css +2 -0
- package/src/lightning/input/input.lbc.synthetic.css +9 -0
- package/src/lightning/inputAddress/form-element.slds.css +315 -0
- package/src/lightning/inputAddress/input-address.slds.css +15 -0
- package/src/lightning/inputAddress/input-text.slds.css +533 -0
- package/src/lightning/inputAddress/inputAddress.css +2 -3
- package/src/lightning/inputAddress/inputAddress.html +21 -12
- package/src/lightning/inputAddress/inputAddress.js +33 -14
- package/src/lightning/inputAddress/inputAddress.lbc.native.css +5 -0
- package/src/lightning/inputAddress/inputAddress.lbc.synthetic.css +4 -0
- package/src/lightning/inputLocation/form-element.slds.css +315 -0
- package/src/lightning/inputLocation/input-location.slds.css +15 -0
- package/src/lightning/inputLocation/input-text.slds.css +533 -0
- package/src/lightning/inputLocation/inputLocation.css +2 -3
- package/src/lightning/inputLocation/inputLocation.html +1 -1
- package/src/lightning/inputLocation/inputLocation.js +27 -6
- package/src/lightning/inputLocation/inputLocation.js-meta.xml +3 -0
- package/src/lightning/inputLocation/inputLocation.lbc.native.css +5 -0
- package/src/lightning/inputLocation/inputLocation.lbc.synthetic.css +3 -0
- package/src/lightning/inputName/form-element.slds.css +315 -0
- package/src/lightning/inputName/input-text.slds.css +533 -0
- package/src/lightning/inputName/inputName.css +2 -3
- package/src/lightning/inputName/inputName.js +22 -15
- package/src/lightning/inputName/inputName.lbc.native.css +4 -0
- package/src/lightning/inputName/inputName.lbc.synthetic.css +3 -0
- package/src/lightning/interactiveDialogBase/interactive-dialog-base.slds.css +24 -0
- package/src/lightning/interactiveDialogBase/interactiveDialogBase.css +2 -520
- package/src/lightning/interactiveDialogBase/interactiveDialogBase.html +8 -3
- package/src/lightning/interactiveDialogBase/interactiveDialogBase.js +6 -0
- package/src/lightning/interactiveDialogBase/interactiveDialogBase.lbc.native.css +3 -0
- package/src/lightning/interactiveDialogBase/interactiveDialogBase.lbc.synthetic.css +20 -0
- package/src/lightning/internationalizationLibrary/datetime/dateTimeUtils.js +33 -10
- package/src/lightning/layout/layout.css +2 -9
- package/src/lightning/layout/layout.js +5 -2
- package/src/lightning/layout/layout.js-meta.xml +3 -0
- package/src/lightning/layout/layout.lbc.native.css +2 -0
- package/src/lightning/layout/layout.lbc.synthetic.css +6 -0
- package/src/lightning/layoutItem/layoutItem.css +1 -5
- package/src/lightning/layoutItem/layoutItem.js +5 -2
- package/src/lightning/layoutItem/layoutItem.js-meta.xml +3 -0
- package/src/lightning/layoutItem/layoutItem.lbc.native.css +5 -0
- package/src/lightning/lookupAddress/form-element.slds.css +315 -0
- package/src/lightning/lookupAddress/listbox.slds.css +252 -0
- package/src/lightning/lookupAddress/lookup-address.slds.css +10 -0
- package/src/lightning/lookupAddress/lookupAddress.css +2 -0
- package/src/lightning/lookupAddress/lookupAddress.html +12 -9
- package/src/lightning/lookupAddress/lookupAddress.js +4 -2
- package/src/lightning/lookupAddress/lookupAddress.lbc.native.css +4 -0
- package/src/lightning/menuDivider/menu-divider.slds.css +4 -4
- package/src/lightning/menuDivider/menuDivider.css +2 -6
- package/src/lightning/menuDivider/menuDivider.js +4 -3
- package/src/lightning/menuDivider/menuDivider.lbc.native.css +2 -0
- package/src/lightning/menuDivider/menuDivider.lbc.synthetic.css +3 -0
- package/src/lightning/menuItem/menu-item.slds.css +16 -16
- package/src/lightning/menuItem/menuItem.css +2 -6
- package/src/lightning/menuItem/menuItem.js +13 -3
- package/src/lightning/menuItem/menuItem.js-meta.xml +3 -0
- package/src/lightning/menuItem/menuItem.lbc.native.css +2 -0
- package/src/lightning/menuItem/menuItem.lbc.synthetic.css +3 -0
- package/src/lightning/menuSubheader/menu-subheader.slds.css +4 -4
- package/src/lightning/menuSubheader/menuSubheader.css +2 -6
- package/src/lightning/menuSubheader/menuSubheader.js +4 -2
- package/src/lightning/menuSubheader/menuSubheader.lbc.native.css +2 -0
- package/src/lightning/menuSubheader/menuSubheader.lbc.synthetic.css +3 -0
- package/src/lightning/modal/__docs__/modal.md +30 -0
- package/src/lightning/modal/__examples__disabled/allformfullcompound/allformfullcompound.css +7 -0
- package/src/lightning/modal/__examples__disabled/allformfullcompound/allformfullcompound.html +9 -0
- package/src/lightning/modal/__examples__disabled/allformfullcompound/allformfullcompound.js +54 -0
- package/src/lightning/modal/__examples__disabled/allformhoriz/allformhoriz.css +7 -0
- package/src/lightning/modal/__examples__disabled/allformhoriz/allformhoriz.html +9 -0
- package/src/lightning/modal/__examples__disabled/allformhoriz/allformhoriz.js +53 -0
- package/src/lightning/modal/__examples__disabled/allmulti/allmulti.html +1 -0
- package/src/lightning/modal/__examples__disabled/allmulti/allmulti.js +43 -1
- package/src/lightning/modal/__examples__disabled/basic/basic.css +1 -1
- package/src/lightning/modal/__examples__disabled/demo/demo.css +1 -0
- package/src/lightning/modal/__examples__disabled/demoall/demoall.css +5 -0
- package/src/lightning/modal/__examples__disabled/demoallform/demoallform.css +2 -3
- package/src/lightning/modal/__examples__disabled/demoallform/demoallform.html +181 -107
- package/src/lightning/modal/__examples__disabled/demoallform/demoallform.js +7 -1
- package/src/lightning/modal/__examples__disabled/demoallformfull/demoallformfull.css +2 -3
- package/src/lightning/modal/__examples__disabled/demoallformfull/demoallformfull.html +181 -107
- package/src/lightning/modal/__examples__disabled/demoallformfullcompound/demoallformfullcompound.css +7 -0
- package/src/lightning/modal/__examples__disabled/demoallformfullcompound/demoallformfullcompound.html +109 -0
- package/src/lightning/modal/__examples__disabled/demoallformfullcompound/demoallformfullcompound.js +241 -0
- package/src/lightning/modal/__examples__disabled/demoallformhoriz/demoallformhoriz.css +5 -0
- package/src/lightning/modal/__examples__disabled/demoallformhoriz/demoallformhoriz.html +165 -0
- package/src/lightning/modal/__examples__disabled/demoallformhoriz/demoallformhoriz.js +241 -0
- package/src/lightning/modal/__examples__disabled/demofootless/demofootless.css +1 -0
- package/src/lightning/modal/__examples__disabled/demoheadless/demoheadless.css +5 -0
- package/src/lightning/modal/__modalUtils__/modalContainerTestConstants.js +8 -0
- package/src/lightning/modal/__modalUtils__/modalContainerTestMethods.js +108 -3
- package/src/lightning/modalBase/modal-base.slds.css +242 -0
- package/src/lightning/modalBase/modalBase.css +2 -16
- package/src/lightning/modalBase/modalBase.html +2 -0
- package/src/lightning/modalBase/modalBase.js +158 -10
- package/src/lightning/modalBase/modalBase.lbc.native.css +2 -0
- package/src/lightning/modalBase/modalBase.lbc.synthetic.css +18 -0
- package/src/lightning/modalBody/modal-body.slds.css +61 -0
- package/src/lightning/modalBody/modalBody.css +1 -0
- package/src/lightning/modalBody/modalBody.html +1 -0
- package/src/lightning/modalBody/modalBody.js +15 -2
- package/src/lightning/modalBody/modalBody.lbc.native.css +3 -0
- package/src/lightning/modalFooter/modal-footer.slds.css +79 -0
- package/src/lightning/modalFooter/modalFooter.css +1 -0
- package/src/lightning/modalFooter/modalFooter.html +1 -1
- package/src/lightning/modalFooter/modalFooter.js +3 -2
- package/src/lightning/modalFooter/modalFooter.lbc.native.css +2 -0
- package/src/lightning/modalHeader/modal-header.slds.css +77 -0
- package/src/lightning/modalHeader/modalHeader.css +3 -0
- package/src/lightning/modalHeader/modalHeader.html +1 -1
- package/src/lightning/modalHeader/modalHeader.js +4 -2
- package/src/lightning/modalHeader/modalHeader.lbc.native.css +3 -0
- package/src/lightning/overlay/overlay.js +11 -4
- package/src/lightning/overlayContainer/overlayContainer.js +3 -2
- package/src/lightning/picklist/picklist.js +24 -19
- package/src/lightning/picklist/picklist.js-meta.xml +3 -0
- package/src/lightning/pill/avatar.slds.css +34 -205
- package/src/lightning/pill/link.css +1 -3
- package/src/lightning/pill/link.lbc.native.css +3 -0
- package/src/lightning/pill/pill.js +4 -2
- package/src/lightning/pill/pill.js-meta.xml +3 -0
- package/src/lightning/pill/pill.slds.css +52 -47
- package/src/lightning/pill/plain.css +1 -3
- package/src/lightning/pill/plain.lbc.native.css +3 -0
- package/src/lightning/pill/plainLink.css +1 -3
- package/src/lightning/pill/plainLink.lbc.native.css +3 -0
- package/src/lightning/pillContainer/barePillContainer.css +1 -3
- package/src/lightning/pillContainer/barePillContainer.html +1 -1
- package/src/lightning/pillContainer/barePillContainer.lbc.native.css +4 -0
- package/src/lightning/pillContainer/button.slds.css +503 -0
- package/src/lightning/pillContainer/listbox.slds.css +179 -179
- package/src/lightning/pillContainer/pill-container.slds.css +15 -9
- package/src/lightning/pillContainer/pill.slds.css +52 -47
- package/src/lightning/pillContainer/pillContainer.js +15 -12
- package/src/lightning/pillContainer/pillContainer.js-meta.xml +3 -0
- package/src/lightning/pillContainer/standardPillContainer.css +3 -2
- package/src/lightning/pillContainer/standardPillContainer.html +1 -1
- package/src/lightning/popup/popover.slds.css +29 -30
- package/src/lightning/popup/popup.css +1 -2
- package/src/lightning/popup/popup.js +3 -2
- package/src/lightning/popup/popup.js-meta.xml +3 -0
- package/src/lightning/popup/popup.lbc.native.css +2 -0
- package/src/lightning/primitiveBubble/primitiveBubble.css +2 -11
- package/src/lightning/primitiveBubble/primitiveBubble.js +4 -2
- package/src/lightning/primitiveBubble/primitiveBubble.lbc.native.css +2 -0
- package/src/lightning/primitiveBubble/primitiveBubble.lbc.synthetic.css +8 -0
- package/src/lightning/primitiveBubble/tooltip.slds.css +89 -142
- package/src/lightning/primitiveButton/primitiveButton.js +4 -2
- package/src/lightning/primitiveColorpickerButton/color-picker-button.slds.css +14 -223
- package/src/lightning/primitiveColorpickerButton/primitiveColorpickerButton.css +1 -2
- package/src/lightning/primitiveColorpickerButton/primitiveColorpickerButton.js +3 -2
- package/src/lightning/primitiveColorpickerButton/primitiveColorpickerButton.lbc.native.css +2 -0
- package/src/lightning/primitiveCustomCell/primitiveCustomCell.js +1 -2
- package/src/lightning/primitiveDatatableCell/primitiveDatatableCell.js +1 -3
- package/src/lightning/primitiveFileDroppableZone/primitiveFileDroppableZone.js +17 -7
- package/src/lightning/primitiveIcon/icon.slds.css +64 -53
- package/src/lightning/primitiveIcon/primitiveIcon.css +2 -11
- package/src/lightning/primitiveIcon/primitiveIcon.js +7 -9
- package/src/lightning/primitiveIcon/primitiveIcon.lbc.native.css +2 -0
- package/src/lightning/primitiveIcon/primitiveIcon.lbc.synthetic.css +9 -0
- package/src/lightning/primitiveIframe/primitiveIframe.html +9 -8
- package/src/lightning/primitiveIframe/primitiveIframe.js +4 -2
- package/src/lightning/primitiveInputCheckbox/form-element.slds.css +70 -43
- package/src/lightning/primitiveInputCheckbox/input-checkbox.slds.css +223 -237
- package/src/lightning/primitiveInputCheckbox/primitiveInputCheckbox.css +1 -3
- package/src/lightning/primitiveInputCheckbox/primitiveInputCheckbox.js +9 -1
- package/src/lightning/primitiveInputCheckbox/primitiveInputCheckbox.lbc.native.css +3 -0
- package/src/lightning/primitiveInputCheckboxButton/form-element.slds.css +70 -43
- package/src/lightning/primitiveInputCheckboxButton/input-checkbox-button.slds.css +30 -30
- package/src/lightning/primitiveInputCheckboxButton/primitiveInputCheckboxButton.css +2 -6
- package/src/lightning/primitiveInputCheckboxButton/primitiveInputCheckboxButton.lbc.native.css +2 -0
- package/src/lightning/primitiveInputCheckboxButton/primitiveInputCheckboxButton.lbc.synthetic.css +2 -0
- package/src/lightning/primitiveInputColor/form-element.slds.css +70 -43
- package/src/lightning/primitiveInputColor/input-color.slds.css +3 -7
- package/src/lightning/primitiveInputColor/input-text.slds.css +253 -118
- package/src/lightning/primitiveInputColor/primitiveInputColor.css +1 -4
- package/src/lightning/primitiveInputColor/primitiveInputColor.lbc.native.css +4 -0
- package/src/lightning/primitiveInputFile/button.slds.css +365 -395
- package/src/lightning/primitiveInputFile/form-element.slds.css +70 -43
- package/src/lightning/primitiveInputFile/input-file.slds.css +12 -12
- package/src/lightning/primitiveInputFile/primitiveInputFile.css +1 -5
- package/src/lightning/primitiveInputFile/primitiveInputFile.js +9 -7
- package/src/lightning/primitiveInputFile/primitiveInputFile.lbc.native.css +4 -0
- package/src/lightning/primitiveInputSimple/form-element.slds.css +70 -43
- package/src/lightning/primitiveInputSimple/input-text.slds.css +253 -118
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.css +2 -9
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.js +4 -2
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.lbc.native.css +3 -0
- package/src/lightning/primitiveInputSimple/primitiveInputSimple.lbc.synthetic.css +5 -0
- package/src/lightning/primitiveInputToggle/form-element.slds.css +70 -43
- package/src/lightning/primitiveInputToggle/input-toggle.slds.css +28 -28
- package/src/lightning/primitiveInputToggle/primitiveInputToggle.css +1 -3
- package/src/lightning/primitiveInputToggle/primitiveInputToggle.js +9 -1
- package/src/lightning/primitiveInputToggle/primitiveInputToggle.lbc.native.css +3 -0
- package/src/lightning/progressBar/progress-bar.slds.css +66 -0
- package/src/lightning/progressBar/progressBar.css +1 -0
- package/src/lightning/progressBar/progressBar.html +1 -0
- package/src/lightning/progressBar/progressBar.js +3 -2
- package/src/lightning/progressBar/progressBar.lbc.native.css +2 -0
- package/src/lightning/progressIndicator/progressIndicator.css +1 -3
- package/src/lightning/progressIndicator/progressIndicator.lbc.synthetic.css +3 -0
- package/src/lightning/progressRing/progress-ring.slds.css +136 -0
- package/src/lightning/progressRing/progressRing.css +1 -0
- package/src/lightning/progressRing/progressRing.html +1 -1
- package/src/lightning/progressRing/progressRing.js +3 -2
- package/src/lightning/progressRing/progressRing.lbc.native.css +2 -0
- package/src/lightning/prompt/prompt.css +1 -85
- package/src/lightning/prompt/prompt.html +15 -5
- package/src/lightning/prompt/prompt.js +12 -9
- package/src/lightning/prompt/prompt.js-meta.xml +3 -0
- package/src/lightning/prompt/prompt.lbc.native.css +2 -0
- package/src/lightning/prompt/prompt.slds.css +10 -0
- package/src/lightning/radioGroup/form-element.slds.css +315 -0
- package/src/lightning/radioGroup/input-radio-group.slds.css +124 -571
- package/src/lightning/radioGroup/radioGroup.css +2 -7
- package/src/lightning/radioGroup/radioGroup.js +4 -2
- package/src/lightning/radioGroup/radioGroup.lbc.native.css +3 -0
- package/src/lightning/radioGroup/radioGroup.lbc.synthetic.css +3 -0
- package/src/lightning/select/form-element.slds.css +70 -43
- package/src/lightning/select/select.css +1 -3
- package/src/lightning/select/select.js +4 -2
- package/src/lightning/select/select.js-meta.xml +3 -0
- package/src/lightning/select/select.lbc.native.css +3 -0
- package/src/lightning/select/select.slds.css +23 -342
- package/src/lightning/sldsUtilsThemes/sldsUtilsThemes.css +27 -11
- package/src/lightning/sldsUtilsVisibility/sldsUtilsVisibility.css +20 -0
- package/src/lightning/sldsUtilsVisibility/sldsUtilsVisibility.js-meta.xml +4 -0
- package/src/lightning/spinner/spinner.css +1 -2
- package/src/lightning/spinner/spinner.js +6 -4
- package/src/lightning/spinner/spinner.js-meta.xml +3 -0
- package/src/lightning/spinner/spinner.lbc.native.css +2 -0
- package/src/lightning/spinner/spinner.slds.css +4 -10
- package/src/lightning/staticMap/staticMap.html +12 -10
- package/src/lightning/staticMap/staticMap.js +16 -4
- package/src/lightning/tab/tab.css +1 -2
- package/src/lightning/tab/tab.lbc.native.css +2 -0
- package/src/lightning/tab/tab.slds.css +9 -9
- package/src/lightning/tabBar/tab-bar.slds.css +59 -59
- package/src/lightning/tabBar/tabBar.css +1 -2
- package/src/lightning/tabBar/tabBar.js +19 -2
- package/src/lightning/tabBar/tabBar.lbc.native.css +2 -0
- package/src/lightning/tabset/tabset.css +1 -10
- package/src/lightning/tabset/tabset.html +19 -7
- package/src/lightning/tabset/tabset.js +224 -60
- package/src/lightning/tabset/tabset.lbc.native.css +3 -0
- package/src/lightning/tabset/tabset.slds.css +15 -0
- package/src/lightning/textarea/form-element.slds.css +315 -0
- package/src/lightning/textarea/textarea.css +2 -5
- package/src/lightning/textarea/textarea.html +21 -5
- package/src/lightning/textarea/textarea.js +167 -128
- package/src/lightning/textarea/textarea.lbc.native.css +3 -0
- package/src/lightning/textarea/textarea.lbc.synthetic.css +5 -0
- package/src/lightning/textarea/textarea.slds.css +95 -0
- package/src/lightning/tile/standardTile.css +1 -3
- package/src/lightning/tile/standardTile.lbc.synthetic.css +3 -0
- package/src/lightning/timepicker/form-element.slds.css +70 -43
- package/src/lightning/timepicker/timepicker.css +1 -3
- package/src/lightning/timepicker/timepicker.html +1 -1
- package/src/lightning/timepicker/timepicker.js +21 -5
- package/src/lightning/timepicker/timepicker.lbc.native.css +3 -0
- package/src/lightning/toast/button-icon.slds.css +575 -766
- package/src/lightning/toast/formatted-rich-text.slds.css +39 -39
- package/src/lightning/toast/icon.slds.css +64 -53
- package/src/lightning/toast/toast.css +2 -68
- package/src/lightning/toast/toast.js +4 -2
- package/src/lightning/toast/toast.lbc.native.css +9 -0
- package/src/lightning/toast/toast.lbc.synthetic.css +58 -0
- package/src/lightning/toast/toast.slds.css +20 -20
- package/src/lightning/toastContainer/toast.slds.css +20 -20
- package/src/lightning/toastContainer/toastContainer.css +2 -43
- package/src/lightning/toastContainer/toastContainer.lbc.native.css +4 -0
- package/src/lightning/toastContainer/toastContainer.lbc.synthetic.css +38 -0
- package/src/lightning/utilsPrivate/animation.js +10 -8
- package/src/lightning/utilsPrivate/aria.js +1 -1
- package/src/lightning/utilsPrivate/utilsPrivate.js +21 -5
- package/src/lightning/verticalNavigation/verticalNavigation.css +1 -3
- package/src/lightning/verticalNavigation/verticalNavigation.js +3 -2
- package/src/lightning/verticalNavigation/verticalNavigation.lbc.native.css +2 -0
- package/src/lightning/verticalNavigationOverflow/verticalNavigationOverflow.css +1 -3
- package/src/lightning/verticalNavigationOverflow/verticalNavigationOverflow.lbc.synthetic.css +3 -0
- package/src/lightning/verticalNavigationSection/vertical-navigation-section.slds.css +8 -8
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.css +2 -7
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.js +3 -2
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.lbc.native.css +2 -0
- package/src/lightning/verticalNavigationSection/verticalNavigationSection.lbc.synthetic.css +3 -0
|
@@ -1,335 +1,16 @@
|
|
|
1
|
-
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
|
|
2
|
-
Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
3
|
-
|
|
4
|
-
@supports (--styling-hooks: '') {
|
|
5
|
-
:host([data-render-mode="shadow"]) [part='help-text'] {
|
|
6
|
-
--slds-c-buttonicon-color-background: var(--slds-c-helptext-color-background);
|
|
7
|
-
--slds-c-buttonicon-color-background-hover: var(--slds-c-helptext-color-background-hover);
|
|
8
|
-
--slds-c-buttonicon-color-background-focus: var(--slds-c-helptext-color-background-focus);
|
|
9
|
-
--slds-c-buttonicon-color-background-active: var(--slds-c-helptext-color-background-active);
|
|
10
|
-
--slds-c-buttonicon-color-foreground: var(--slds-c-helptext-color-foreground);
|
|
11
|
-
--slds-c-buttonicon-color-foreground-hover: var(--slds-c-helptext-color-foreground-hover);
|
|
12
|
-
--slds-c-buttonicon-color-foreground-focus: var(--slds-c-helptext-color-foreground-focus);
|
|
13
|
-
--slds-c-buttonicon-color-foreground-active: var(--slds-c-helptext-color-foreground-active);
|
|
14
|
-
--slds-c-buttonicon-color-border: var(--slds-c-helptext-color-border, transparent);
|
|
15
|
-
--slds-c-buttonicon-color-border-hover: var(--slds-c-helptext-color-border-hover, transparent);
|
|
16
|
-
--slds-c-buttonicon-color-border-focus: var(--slds-c-helptext-color-border-focus, transparent);
|
|
17
|
-
--slds-c-buttonicon-color-border-active: var(--slds-c-helptext-color-border-active, transparent);
|
|
18
|
-
--slds-c-buttonicon-spacing-block: var(--slds-c-helptext-spacing-block, 0);
|
|
19
|
-
--slds-c-buttonicon-spacing-inline: var(--slds-c-helptext-spacing-inline, 0);
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The extra wrapper div creates a new formatting context which messes up
|
|
23
|
-
* our consistent height and vertical alignment. We don't want this element
|
|
24
|
-
* to inherit any styling so we pass through to the contents. This element
|
|
25
|
-
* is for setting Styling Hooks only.
|
|
26
|
-
*/
|
|
27
|
-
display: contents;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
|
|
32
|
-
Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
33
|
-
|
|
34
|
-
@supports (--styling-hooks: '') {
|
|
35
|
-
/* TODO: Swap with utility classes */
|
|
36
|
-
:host([data-render-mode="shadow"]) fieldset {
|
|
37
|
-
border: 0;
|
|
38
|
-
margin: 0;
|
|
39
|
-
padding: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/* FORM ELEMENT: BASE */
|
|
43
|
-
:host([data-render-mode="shadow"]) .slds-form-element {
|
|
44
|
-
position: relative;
|
|
45
|
-
min-width: 0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
:host([data-render-mode="shadow"]) .slds-form-element__label {
|
|
49
|
-
overflow-wrap: break-word;
|
|
50
|
-
word-wrap: break-word;
|
|
51
|
-
hyphens: auto;
|
|
52
|
-
display: inline-block;
|
|
53
|
-
color: var(--sds-g-color-neutral-base-30, #444444);
|
|
54
|
-
font-size: var(--sds-g-font-scale-neg-3, 0.75rem);
|
|
55
|
-
padding-inline-end: var(--sds-g-spacing-2, 0.5rem);
|
|
56
|
-
padding-block-start: var(--sds-g-spacing-1, 0.25rem);
|
|
57
|
-
margin-block-end: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
:host([data-render-mode="shadow"]) .slds-form-element__label:empty {
|
|
61
|
-
margin: 0;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
:host([data-render-mode="shadow"]) .slds-form-element__control {
|
|
65
|
-
clear: left; /* NOTE: Ideally we want left to be inline-start but browser support is not ready for that value. We need to figure out better RTL support */
|
|
66
|
-
position: relative;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
:host([data-render-mode="shadow"]) .slds-form-element__icon {
|
|
70
|
-
display: inline-block;
|
|
71
|
-
position: relative;
|
|
72
|
-
padding-block-start: var(--sds-g-spacing-1, 0.25rem);
|
|
73
|
-
vertical-align: top;
|
|
74
|
-
line-height: var(--sds-g-font-lineheight-1, 1);
|
|
75
|
-
z-index: 1;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
:host([data-render-mode="shadow"]) .slds-form-element__icon .slds-button_icon {
|
|
79
|
-
position: relative;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
:host([data-render-mode="shadow"]) .slds-form-element__help,:host([data-render-mode="shadow"])
|
|
83
|
-
.slds-form-element__helper {
|
|
84
|
-
font-size: var(--sds-g-font-scale-neg-3, 0.75rem);
|
|
85
|
-
margin-block-start: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
86
|
-
display: block;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
:host([data-render-mode="shadow"]) .slds-form-element_edit .slds-form-element__static {
|
|
90
|
-
width: calc(100% - var(--sds-g-sizing-7, 1.5rem));
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
:host([data-render-mode="shadow"]) .slds-form-element_readonly {
|
|
94
|
-
flex-basis: 0%;
|
|
95
|
-
border-bottom: var(--sds-g-sizing-border-1, 1px) solid var(--sds-g-color-neutral-base-90, #e5e5e5);
|
|
96
|
-
margin-block-end: 0;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
:host([data-render-mode="shadow"]) .slds-form-element_readonly .slds-form-element__control {
|
|
100
|
-
padding-block-start: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
101
|
-
padding-block-end: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
:host([data-render-mode="shadow"]) .slds-form-element_readonly .slds-form-element__label {
|
|
105
|
-
margin-block-end: 0;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
:host([data-render-mode="shadow"]) .slds-form-element__legend {
|
|
109
|
-
font-weight: var(--sds-g-font-weight-7, 700);
|
|
110
|
-
float: left;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
:host([data-render-mode="shadow"]) .slds-form-element__addon {
|
|
114
|
-
display: inline-block;
|
|
115
|
-
margin-block-start: 0;
|
|
116
|
-
margin-block-end: 0;
|
|
117
|
-
margin-inline-start: var(--sds-g-spacing-2, 0.5rem);
|
|
118
|
-
margin-inline-end: var(--sds-g-spacing-2, 0.5rem);
|
|
119
|
-
align-self: center;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
:host([data-render-mode="shadow"]) .slds-form-element__static {
|
|
123
|
-
overflow-wrap: break-word;
|
|
124
|
-
word-wrap: break-word;
|
|
125
|
-
word-break: break-word;
|
|
126
|
-
display: inline-block;
|
|
127
|
-
font-size: var(--sds-g-font-scale-neg-1, 0.875rem);
|
|
128
|
-
font-weight: var(--sds-g-font-weight-4, 400);
|
|
129
|
-
color: var(--sds-g-color-neutral-base-10, #181818);
|
|
130
|
-
width: 100%;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
:host([data-render-mode="shadow"]) .slds-form-element__static.slds-text-longform *:last-child {
|
|
134
|
-
margin-block-end: 0;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
:host([data-render-mode="shadow"]) .slds-form-element__static:empty {
|
|
138
|
-
min-height: calc(var(--sds-g-sizing-6, 1.25rem) + 1px);
|
|
139
|
-
vertical-align: bottom;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
:host([data-render-mode="shadow"]) .slds-form-element__static--edit {
|
|
143
|
-
width: calc(100% - var(--sds-g-sizing-7, 1.5rem));
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
:host([data-render-mode="shadow"]) .slds-required {
|
|
147
|
-
color: var(--sds-g-color-error-base-50, #ea001e);
|
|
148
|
-
margin-block-start: 0;
|
|
149
|
-
margin-block-end: 0;
|
|
150
|
-
margin-inline-start: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
151
|
-
margin-inline-end: calc(var(--sds-g-spacing-1, 0.25rem) / 2);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
:host([data-render-mode="shadow"]) .slds-has-error .slds-form-element__help {
|
|
155
|
-
color: var(--sds-g-color-error-base-50, #ea001e);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
:host([data-render-mode="shadow"][invalid]) .slds-form-element__help {
|
|
159
|
-
color: var(--sds-g-color-error-base-50, #ea001e);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/* --------------------------------------- */
|
|
163
|
-
|
|
164
|
-
/* FORM ELEMENT: STACKED */
|
|
165
|
-
|
|
166
|
-
:host([data-render-mode="shadow"][variant='label-stacked']) {
|
|
167
|
-
display: block;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/* TODO: Using `:not` is currently not working, and it could break the build because of issues with the dist script */
|
|
171
|
-
|
|
172
|
-
/* :host([variant='label-stacked']):not(.slds-form-element_readonly) {
|
|
173
|
-
margin-block-end: var(--sds-g-spacing-2);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
:host([variant='label-stacked']):not(.slds-is-editing) {
|
|
177
|
-
padding: 0 var(--sds-g-spacing-1);
|
|
178
|
-
} */
|
|
179
|
-
|
|
180
|
-
/* :host([variant='label-stacked']):not([class*="slds-size"]) {
|
|
181
|
-
width: 100%;
|
|
182
|
-
flex-basis: 100%;
|
|
183
|
-
} */
|
|
184
|
-
|
|
185
|
-
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element {
|
|
186
|
-
padding: 0;
|
|
187
|
-
margin-block-end: 0;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__label,:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control {
|
|
191
|
-
border-bottom: 0; /* Remove border when using legacy version of slds-form-element */
|
|
192
|
-
padding-inline-start: 0;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__control {
|
|
196
|
-
width: 100%;
|
|
197
|
-
flex-basis: 100%;
|
|
198
|
-
clear: left;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
:host([data-render-mode="shadow"][variant='label-stacked']) .slds-form-element__icon {
|
|
202
|
-
float: none;
|
|
203
|
-
padding-block-start: var(--sds-g-spacing-1, 0.25rem);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/* --------------------------------------- */
|
|
207
|
-
|
|
208
|
-
/* FORM ELEMENT: INLINE */
|
|
209
|
-
|
|
210
|
-
:host([data-render-mode="shadow"][variant='label-inline']) {
|
|
211
|
-
display: block;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/*
|
|
215
|
-
we have to combine with slds class here to avoid duplication
|
|
216
|
-
of this rule in child elements who import this stylesheet
|
|
217
|
-
in lighting-input this slds class is synonymous with the variant
|
|
218
|
-
*/
|
|
219
|
-
|
|
220
|
-
:host([data-render-mode="shadow"][variant='label-inline'].slds-form-element_horizontal) {
|
|
221
|
-
padding: var(--sds-g-spacing-1, 0.25rem);
|
|
222
|
-
margin-block-end: var(--sds-g-spacing-2, 0.5rem);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/* TODO: Using `:not` is currently not working, and it could break the build because of issues with the dist script */
|
|
226
|
-
|
|
227
|
-
/* :host([variant='label-inline']):not(.slds-form-element_readonly) {
|
|
228
|
-
margin-block-end: var(--sds-g-spacing-2);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
:host([variant='label-inline']):not([class*="slds-size"]) {
|
|
232
|
-
width: 100%;
|
|
233
|
-
flex-basis: 100%;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
:host([variant='label-inline']:not(.slds-is-editing)) {
|
|
237
|
-
padding: var(--sds-g-spacing-1);
|
|
238
|
-
} */
|
|
239
|
-
|
|
240
|
-
:host([data-render-mode="shadow"][variant='label-inline']).slds-is-edited {
|
|
241
|
-
padding-block-start: var(--sds-g-sizing-6, 1.25rem)
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
@media (width >= 48em) {
|
|
245
|
-
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element__label {
|
|
246
|
-
float: left;
|
|
247
|
-
max-width: calc(33% - var(--sds-g-sizing-6, 1.25rem)); /* Removing icon width for when the help-text icon is present */
|
|
248
|
-
flex-basis: calc(33% - var(--sds-g-sizing-6, 1.25rem)); /* Some form element controls are set to display:flex */
|
|
249
|
-
flex-grow: 1; /* For IE and Safari which didn't auto expand to the available space */
|
|
250
|
-
margin-block-end: 0;
|
|
251
|
-
position: relative;
|
|
252
|
-
z-index: 1;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
:host([data-render-mode="shadow"][variant='label-inline']) lightning-helptext {
|
|
256
|
-
float: left;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element__control {
|
|
260
|
-
margin-inline-start: 33%;
|
|
261
|
-
clear: none; /* Reset clear: left when switching to horizontal form layout */
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element__control .slds-form-element__control {
|
|
265
|
-
padding-inline-start: 0; /* Remove left padding on nested form controls, due to issues related to lightning-form components */
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
:host([data-render-mode="shadow"][variant='label-inline']) .slds-dueling-list__column .slds-form-element__label {
|
|
269
|
-
width: auto;
|
|
270
|
-
max-width: 100%;
|
|
271
|
-
flex-basis: auto;
|
|
272
|
-
float: none;
|
|
273
|
-
position: relative;
|
|
274
|
-
padding-inline-start: 0;
|
|
275
|
-
margin-block-end: 0;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
:host([data-render-mode="shadow"][variant='label-inline']) .slds-form-element__help {
|
|
279
|
-
margin-inline-start: 33%;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
:host([data-render-mode="shadow"][variant='label-inline']) .slds-dueling-list {
|
|
283
|
-
clear: none;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
/* --------------------------------------- */
|
|
288
|
-
|
|
289
|
-
/* FORM ELEMENT: COMPOUND */
|
|
290
|
-
|
|
291
|
-
:host([data-render-mode="shadow"]) .slds-form-element_compound .slds-form-element__row {
|
|
292
|
-
display: flex;
|
|
293
|
-
margin-bottom: var(--sds-g-spacing-1, 0.25rem);
|
|
294
|
-
margin-left: calc(var(--sds-g-spacing-1, 0.25rem) * -1);
|
|
295
|
-
margin-right: calc(var(--sds-g-spacing-1, 0.25rem) * -1);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
:host([data-render-mode="shadow"]) .slds-form-element_compound .slds-form-element__row .slds-form-element__label {
|
|
299
|
-
padding-top: 0;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
:host([data-render-mode="shadow"]) .slds-form-element_compound .slds-form-element {
|
|
303
|
-
padding-left: var(--sds-g-spacing-1, 0.25rem);
|
|
304
|
-
padding-right: var(--sds-g-spacing-1, 0.25rem);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
:host([data-render-mode="shadow"]) .slds-form-element_address .slds-form-element__row {
|
|
308
|
-
align-items: flex-end;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/* --------------------------------------- */
|
|
312
|
-
|
|
313
|
-
/* FORM ELEMENT: HIDDEN */
|
|
314
|
-
|
|
315
|
-
:host([data-render-mode="shadow"][variant='label-hidden']) .slds-form-element__label {
|
|
316
|
-
display: none
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
1
|
|
|
320
2
|
/* Copyright (c) 2015-present, Salesforce, Inc. All rights reserved
|
|
321
3
|
Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
322
|
-
|
|
323
4
|
@supports (--styling-hooks: '') {
|
|
324
5
|
/* SELECT */
|
|
325
6
|
:host([data-render-mode="shadow"]) [part='select'] {
|
|
326
|
-
height: calc(var(--slds-c-select-input-sizing-height, 1.875rem) + (var(--
|
|
7
|
+
height: calc(var(--slds-c-select-input-sizing-height, 1.875rem) + (var(--slds-g-sizing-border-1) * 2));
|
|
327
8
|
width: 100%;
|
|
328
|
-
border: var(--
|
|
329
|
-
border-radius: var(--slds-c-select-radius-border, var(--
|
|
9
|
+
border: var(--slds-g-sizing-border-1) solid var(--slds-c-select-color-border, var(--slds-g-color-border-1));
|
|
10
|
+
border-radius: var(--slds-c-select-radius-border, var(--slds-g-radius-border-2));
|
|
330
11
|
background-color: var(--slds-c-select-color-background,
|
|
331
|
-
var(--
|
|
332
|
-
color: var(--slds-c-select-text-color, currentcolor, var(--
|
|
12
|
+
var(--slds-g-color-surface-container-1));
|
|
13
|
+
color: var(--slds-c-select-text-color, currentcolor, var(--slds-g-color-on-surface-1));
|
|
333
14
|
box-shadow: var(--slds-c-select-shadow);
|
|
334
15
|
transition: border 0.1s linear, background-color 0.1s linear;
|
|
335
16
|
}
|
|
@@ -341,16 +22,16 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
341
22
|
:host([data-render-mode="shadow"]) [part='select']:focus,:host([data-render-mode="shadow"])
|
|
342
23
|
[part='select']:active {
|
|
343
24
|
outline: 0;
|
|
344
|
-
border-color: var(--slds-c-select-color-border-focus, var(--
|
|
345
|
-
background-color: var(--slds-c-select-color-background-focus, var(--
|
|
25
|
+
border-color: var(--slds-c-select-color-border-focus, var(--slds-g-color-border-2));
|
|
26
|
+
background-color: var(--slds-c-select-color-background-focus, var(--slds-g-color-surface-container-1));
|
|
346
27
|
color: var(--slds-c-select-text-color-focus);
|
|
347
|
-
box-shadow: var(--slds-c-select-shadow-focus, 0 0 3px var(--
|
|
28
|
+
box-shadow: var(--slds-c-select-shadow-focus, 0 0 3px var(--slds-g-color-accent-2));
|
|
348
29
|
}
|
|
349
30
|
|
|
350
31
|
:host([data-render-mode="shadow"]) [part='select'][disabled] {
|
|
351
|
-
background-color: var(--
|
|
352
|
-
border-color: var(--
|
|
353
|
-
color: var(--
|
|
32
|
+
background-color: var(--slds-g-color-disabled-container-1);
|
|
33
|
+
border-color: var(--slds-g-color-border-disabled-1);
|
|
34
|
+
color: var(--slds-g-color-on-disabled-1);
|
|
354
35
|
cursor: not-allowed;
|
|
355
36
|
user-select: none;
|
|
356
37
|
opacity: 1;
|
|
@@ -363,13 +44,13 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
363
44
|
|
|
364
45
|
:host([data-render-mode="shadow"]) [part='select'][size],:host([data-render-mode="shadow"])
|
|
365
46
|
[part='select'][multiple] {
|
|
366
|
-
min-height: calc(var(--slds-c-select-input-sizing-height) + (var(--
|
|
47
|
+
min-height: calc(var(--slds-c-select-input-sizing-height) + (var(--slds-g-sizing-border-1) * 2));
|
|
367
48
|
height: inherit;
|
|
368
49
|
}
|
|
369
50
|
|
|
370
51
|
:host([data-render-mode="shadow"]) [part='select'][size] option,:host([data-render-mode="shadow"])
|
|
371
52
|
[part='select'][multiple] option {
|
|
372
|
-
padding: var(--
|
|
53
|
+
padding: var(--slds-g-spacing-2);
|
|
373
54
|
}
|
|
374
55
|
|
|
375
56
|
:host([data-render-mode="shadow"]) .slds-select_container {
|
|
@@ -382,7 +63,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
382
63
|
-moz-appearance: none;
|
|
383
64
|
-webkit-appearance: none;
|
|
384
65
|
/* stylelint-enable property-no-vendor-prefix */
|
|
385
|
-
padding: 0 var(--
|
|
66
|
+
padding: 0 var(--slds-g-spacing-5) 0 var(--slds-g-spacing-2);
|
|
386
67
|
}
|
|
387
68
|
|
|
388
69
|
:host([data-render-mode="shadow"]) .slds-select_container [part="select"]::-ms-expand {
|
|
@@ -394,7 +75,7 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
394
75
|
position: absolute;
|
|
395
76
|
content: '';
|
|
396
77
|
display: block;
|
|
397
|
-
right: var(--
|
|
78
|
+
right: var(--slds-g-spacing-2);
|
|
398
79
|
width: 0;
|
|
399
80
|
height: 0;
|
|
400
81
|
border-left: 3px solid transparent;
|
|
@@ -404,12 +85,12 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
404
85
|
|
|
405
86
|
:host([data-render-mode="shadow"]) .slds-select_container::before {
|
|
406
87
|
border-bottom: 5px solid currentcolor;
|
|
407
|
-
top: calc((var(--
|
|
88
|
+
top: calc((var(--slds-g-sizing-8) / 2) - 6px);
|
|
408
89
|
}
|
|
409
90
|
|
|
410
91
|
:host([data-render-mode="shadow"]) .slds-select_container::after {
|
|
411
92
|
border-top: 5px solid currentcolor;
|
|
412
|
-
bottom: calc((var(--
|
|
93
|
+
bottom: calc((var(--slds-g-sizing-8) / 2) - 6px);
|
|
413
94
|
}
|
|
414
95
|
|
|
415
96
|
:host([data-render-mode="shadow"][multiple]) .slds-select_container::before,:host([data-render-mode="shadow"][multiple]) .slds-select_container::after {
|
|
@@ -417,22 +98,22 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
417
98
|
}
|
|
418
99
|
|
|
419
100
|
:host([data-render-mode="shadow"][invalid]) [part="select"] {
|
|
420
|
-
border-color: var(--
|
|
421
|
-
box-shadow: var(--
|
|
101
|
+
border-color: var(--slds-g-color-error-base-50);
|
|
102
|
+
box-shadow: var(--slds-g-color-error-base-50) 0 0 0 var(--slds-g-sizing-border-1) inset;
|
|
422
103
|
background-clip: padding-box;
|
|
423
104
|
}
|
|
424
105
|
|
|
425
106
|
:host([data-render-mode="shadow"][invalid]) [part="select"]:focus,:host([data-render-mode="shadow"][invalid]) [part="select"]:active {
|
|
426
|
-
box-shadow: var(--
|
|
107
|
+
box-shadow: var(--slds-g-color-error-1) 0 0 0 var(--slds-g-sizing-border-1) inset, 0 0 3px var(--slds-g-color-border-error-1);
|
|
427
108
|
}
|
|
428
109
|
|
|
429
110
|
/* LABEL */
|
|
430
111
|
|
|
431
112
|
/* Styling Specifically for select label */
|
|
432
113
|
:host([data-render-mode="shadow"]) [part="select-label"] {
|
|
433
|
-
padding-inline-end: var(--
|
|
434
|
-
color: var(--slds-c-select-label-color, var(--
|
|
435
|
-
font-size: var(--slds-c-select-label-font-size, var(--
|
|
114
|
+
padding-inline-end: var(--slds-g-spacing-2);
|
|
115
|
+
color: var(--slds-c-select-label-color, var(--slds-g-color-on-surface-2));
|
|
116
|
+
font-size: var(--slds-c-select-label-font-size, var(--slds-g-font-scale-neg-3));
|
|
436
117
|
|
|
437
118
|
/* We inline flex to control the spacing between elements and not have to rely on whitespace characters */
|
|
438
119
|
display: inline-flex;
|
|
@@ -16,16 +16,24 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
16
16
|
|
|
17
17
|
/* .slds-theme {} */
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* The interactive-dialog-base components should be styled in both synthetic and
|
|
21
|
+
* native shadow, so we include an additional selector specific to these components
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
:host([data-render-mode="shadow"]) .slds-theme_default,
|
|
25
|
+
:host([data-interactive-dialog]) .slds-theme_default {
|
|
20
26
|
background-color: var(--slds-g-color-neutral-base-100, #fff);
|
|
21
27
|
color: var(--slds-g-color-neutral-base-10, #181818);
|
|
22
28
|
}
|
|
23
29
|
|
|
24
|
-
:host([data-render-mode="shadow"]) .slds-theme_shade
|
|
30
|
+
:host([data-render-mode="shadow"]) .slds-theme_shade,
|
|
31
|
+
:host([data-interactive-dialog]) .slds-theme_shade {
|
|
25
32
|
background-color: var(--slds-g-color-neutral-base-95, #f3f3f3);
|
|
26
33
|
}
|
|
27
34
|
|
|
28
|
-
:host([data-render-mode="shadow"]) .slds-theme_inverse
|
|
35
|
+
:host([data-render-mode="shadow"]) .slds-theme_inverse,
|
|
36
|
+
:host([data-interactive-dialog]) .slds-theme_inverse {
|
|
29
37
|
color: var(--slds-g-color-neutral-base-100, #fff);
|
|
30
38
|
background-color: var(--slds-g-color-brand-base-10, #001639);
|
|
31
39
|
border-color: var(--slds-g-color-brand-base-10, #001639);
|
|
@@ -54,7 +62,8 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
54
62
|
color: var(--slds-g-color-neutral-100-opacity-10, rgb(255 255 255 / 15%));
|
|
55
63
|
} */
|
|
56
64
|
|
|
57
|
-
:host([data-render-mode="shadow"]) .slds-theme_alt-inverse
|
|
65
|
+
:host([data-render-mode="shadow"]) .slds-theme_alt-inverse,
|
|
66
|
+
:host([data-interactive-dialog]) .slds-theme_alt-inverse {
|
|
58
67
|
color: var(--slds-g-color-neutral-base-100, #fff);
|
|
59
68
|
background-color: var(--slds-g-color-brand-base-20, #032d60);
|
|
60
69
|
border-color: var(--slds-g-color-brand-base-20, #032d60);
|
|
@@ -83,7 +92,8 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
83
92
|
color: var(--slds-g-color-neutral-100-opacity-10, rgb(255 255 255 / 15%));
|
|
84
93
|
} */
|
|
85
94
|
|
|
86
|
-
:host([data-render-mode="shadow"]) .slds-theme_success
|
|
95
|
+
:host([data-render-mode="shadow"]) .slds-theme_success,
|
|
96
|
+
:host([data-interactive-dialog]) .slds-theme_success {
|
|
87
97
|
color: var(--slds-g-color-neutral-base-100, #fff);
|
|
88
98
|
background-color: var(--slds-g-color-success-base-50, #2e844a);
|
|
89
99
|
|
|
@@ -117,7 +127,8 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
117
127
|
color: var(--slds-g-color-neutral-100-opacity-10, rgb(255 255 255 / 15%));
|
|
118
128
|
} */
|
|
119
129
|
|
|
120
|
-
:host([data-render-mode="shadow"]) .slds-theme_info
|
|
130
|
+
:host([data-render-mode="shadow"]) .slds-theme_info,
|
|
131
|
+
:host([data-interactive-dialog]) .slds-theme_info {
|
|
121
132
|
color: var(--slds-g-color-neutral-base-100, #fff);
|
|
122
133
|
background-color: var(--slds-g-color-neutral-base-50, #747474);
|
|
123
134
|
|
|
@@ -151,7 +162,8 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
151
162
|
color: var(--slds-g-color-neutral-100-opacity-10, rgb(255 255 255 / 15%));
|
|
152
163
|
} */
|
|
153
164
|
|
|
154
|
-
:host([data-render-mode="shadow"]) .slds-theme_warning
|
|
165
|
+
:host([data-render-mode="shadow"]) .slds-theme_warning,
|
|
166
|
+
:host([data-interactive-dialog]) .slds-theme_warning {
|
|
155
167
|
background-color: var(--slds-g-color-warning-base-60, #fe9339);
|
|
156
168
|
color: var(--slds-g-color-neutral-base-10, #181818);
|
|
157
169
|
|
|
@@ -231,7 +243,8 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
231
243
|
--slds-c-icon-color-foreground: var(--slds-g-color-neutral-base-30, #514f4d);
|
|
232
244
|
}
|
|
233
245
|
|
|
234
|
-
:host([data-render-mode="shadow"]) .slds-theme_error
|
|
246
|
+
:host([data-render-mode="shadow"]) .slds-theme_error,
|
|
247
|
+
:host([data-interactive-dialog]) .slds-theme_error {
|
|
235
248
|
color: var(--slds-g-color-neutral-base-100, #fff);
|
|
236
249
|
background-color: var(--slds-g-color-error-base-40, #ea001e);
|
|
237
250
|
|
|
@@ -265,7 +278,8 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
265
278
|
color: var(--slds-g-color-neutral-100-opacity-10, rgb(255 255 255 / 15%));
|
|
266
279
|
} */
|
|
267
280
|
|
|
268
|
-
:host([data-render-mode="shadow"]) .slds-theme_offline
|
|
281
|
+
:host([data-render-mode="shadow"]) .slds-theme_offline,
|
|
282
|
+
:host([data-interactive-dialog]) .slds-theme_offline {
|
|
269
283
|
color: var(--slds-g-color-neutral-base-100, #fff);
|
|
270
284
|
background-color: var(--slds-g-color-neutral-base-30, #444);
|
|
271
285
|
}
|
|
@@ -293,12 +307,14 @@ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
|
293
307
|
color: var(--slds-g-color-neutral-100-opacity-10, rgb(255 255 255 / 15%));
|
|
294
308
|
} */
|
|
295
309
|
|
|
296
|
-
:host([data-render-mode="shadow"]) .slds-theme_alert-texture
|
|
310
|
+
:host([data-render-mode="shadow"]) .slds-theme_alert-texture,
|
|
311
|
+
:host([data-interactive-dialog]) .slds-theme_alert-texture {
|
|
297
312
|
background-image: linear-gradient(45deg, rgb(0 0 0 / 2.5%) 25%, transparent 25%, transparent 50%, rgb(0 0 0 / 2.5%) 50%, rgb(0 0 0 / 2.5%) 75%, transparent 75%, transparent);
|
|
298
313
|
background-size: 64px 64px;
|
|
299
314
|
}
|
|
300
315
|
|
|
301
|
-
:host([data-render-mode="shadow"]) .slds-theme_inverse-text
|
|
316
|
+
:host([data-render-mode="shadow"]) .slds-theme_inverse-text,
|
|
317
|
+
:host([data-interactive-dialog]) .slds-theme_inverse-text {
|
|
302
318
|
color: var(--slds-g-color-neutral-base-100, #fff);
|
|
303
319
|
}
|
|
304
320
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
|
|
2
|
+
Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
TODO: Add all common utils described here: https://www.lightningdesignsystem.com/utilities/visibility/
|
|
6
|
+
Corresponding Work Item: W-14458332
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.slds-assistive-text {
|
|
10
|
+
position: absolute !important;
|
|
11
|
+
margin: -1px !important;
|
|
12
|
+
border: 0 !important;
|
|
13
|
+
padding: 0 !important;
|
|
14
|
+
width: 1px !important;
|
|
15
|
+
height: 1px !important;
|
|
16
|
+
overflow: hidden !important;
|
|
17
|
+
clip: rect(0 0 0 0) !important;
|
|
18
|
+
text-transform: none !important;
|
|
19
|
+
white-space: nowrap !important;
|
|
20
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
@import './spinner.slds.css'; */
|
|
1
|
+
@import './spinner.lbc.native.css';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { api
|
|
1
|
+
import { api } from 'lwc';
|
|
2
|
+
import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
|
|
2
3
|
import { classSet } from 'lightning/utils';
|
|
3
4
|
import { normalizeString as normalize, isCSR } from 'lightning/utilsPrivate';
|
|
4
5
|
|
|
@@ -8,7 +9,7 @@ const DEFAULT_VARIANT = 'base';
|
|
|
8
9
|
/**
|
|
9
10
|
* Displays an animated spinner.
|
|
10
11
|
*/
|
|
11
|
-
export default class LightningSpinner extends
|
|
12
|
+
export default class LightningSpinner extends LightningShadowBaseClass {
|
|
12
13
|
static validationOptOut = ['class'];
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -57,9 +58,10 @@ export default class LightningSpinner extends LightningElement {
|
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
|
|
60
|
-
_altText =
|
|
61
|
+
_altText = null;
|
|
61
62
|
|
|
62
63
|
connectedCallback() {
|
|
64
|
+
super.connectedCallback();
|
|
63
65
|
this.classList.add('slds-spinner_container');
|
|
64
66
|
if (isCSR) {
|
|
65
67
|
this.template.addEventListener('mousewheel', this.stopScrolling);
|
|
@@ -106,7 +108,7 @@ export default class LightningSpinner extends LightningElement {
|
|
|
106
108
|
|
|
107
109
|
// alternativeText validation
|
|
108
110
|
get validAlternativeText() {
|
|
109
|
-
const hasAlternativeText = !!this.alternativeText;
|
|
111
|
+
const hasAlternativeText = isCSR && !!this.alternativeText;
|
|
110
112
|
|
|
111
113
|
// if we have an empty value output a console warning
|
|
112
114
|
if (!hasAlternativeText) {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
position: absolute;
|
|
21
21
|
inset: 0;
|
|
22
22
|
z-index: 9050;
|
|
23
|
-
background-color: var(--
|
|
23
|
+
background-color: var(--_slds-c-spinner-backdrop-color-background, var(--slds-g-color-neutral-base-100));
|
|
24
24
|
visibility: visible;
|
|
25
25
|
opacity: 0.75;
|
|
26
26
|
transition: opacity 0.2s ease, visibility 0s;
|
|
@@ -30,19 +30,13 @@
|
|
|
30
30
|
/* brand */
|
|
31
31
|
|
|
32
32
|
:host([data-render-mode="shadow"][variant='brand']) [part='spinner'] {
|
|
33
|
-
--
|
|
34
|
-
--slds-c-spinner-brand-color-background,
|
|
35
|
-
var(--sds-g-color-brand-base-60, #1b96ff)
|
|
36
|
-
);
|
|
33
|
+
--_slds-c-spinner-color-background: var(---slds-g-color-accent-1);
|
|
37
34
|
}
|
|
38
35
|
|
|
39
36
|
/* inverse */
|
|
40
37
|
|
|
41
38
|
:host([data-render-mode="shadow"][variant='inverse']) [part='spinner'] {
|
|
42
|
-
--
|
|
43
|
-
--slds-c-spinner-inverse-color-background,
|
|
44
|
-
var(--sds-g-color-neutral-base-100, #ffffff)
|
|
45
|
-
);
|
|
39
|
+
--_slds-c-spinner-color-background: var(--slds-g-color-neutral-base-100);
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
/* large */
|
|
@@ -328,7 +322,7 @@
|
|
|
328
322
|
[part='dot-b']::after {
|
|
329
323
|
content: '';
|
|
330
324
|
position: absolute;
|
|
331
|
-
background-color: var(--
|
|
325
|
+
background-color: var(--_slds-c-spinner-color-background, var(--slds-g-color-neutral-base-65));
|
|
332
326
|
border-radius: 50%;
|
|
333
327
|
animation-duration: 1000ms;
|
|
334
328
|
animation-iteration-count: infinite;
|