lightning-base-components 1.18.1-alpha → 1.18.3-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.
Files changed (298) hide show
  1. package/metadata/raptor.json +9 -0
  2. package/package.json +57 -1
  3. package/src/lightning/accordion/__docs__/accordion.md +2 -2
  4. package/src/lightning/accordion/accordion.css +12 -0
  5. package/src/lightning/accordion/accordion.html +3 -1
  6. package/src/lightning/accordion/accordion.js +4 -2
  7. package/src/lightning/accordion/accordion.slds.css +671 -0
  8. package/src/lightning/accordionSection/accordion-section.slds.css +647 -0
  9. package/src/lightning/accordionSection/accordionSection.css +14 -0
  10. package/src/lightning/accordionSection/accordionSection.html +23 -19
  11. package/src/lightning/accordionSection/accordionSection.js +29 -2
  12. package/src/lightning/ariaObserver/__docs__/ariaObserver.md +21 -9
  13. package/src/lightning/ariaObserver/ariaObserver.js +185 -154
  14. package/src/lightning/ariaObserver/polyfill.js +639 -0
  15. package/src/lightning/avatar/__docs__/avatar.md +7 -7
  16. package/src/lightning/avatar/avatar.css +2 -0
  17. package/src/lightning/avatar/avatar.html +2 -0
  18. package/src/lightning/avatar/avatar.js +18 -15
  19. package/src/lightning/avatar/avatar.slds.css +272 -0
  20. package/src/lightning/badge/__docs__/badge.md +2 -2
  21. package/src/lightning/baseCombobox/base-combobox.slds.css +1585 -0
  22. package/src/lightning/baseCombobox/baseCombobox.css +11 -1
  23. package/src/lightning/baseCombobox/baseCombobox.html +154 -146
  24. package/src/lightning/baseCombobox/baseCombobox.js +122 -46
  25. package/src/lightning/baseCombobox/spinner.slds.css +438 -0
  26. package/src/lightning/baseComboboxItem/baseComboboxItem.js +4 -2
  27. package/src/lightning/baseComboboxItem/inline.css +2 -0
  28. package/src/lightning/breadcrumb/breadcrumb.css +2 -2
  29. package/src/lightning/breadcrumb/breadcrumb.js +4 -2
  30. package/src/lightning/breadcrumb/breadcrumb.slds.css +2 -7
  31. package/src/lightning/breadcrumbs/__docs__/breadcrumbs.md +3 -3
  32. package/src/lightning/breadcrumbs/breadcrumbs.css +2 -2
  33. package/src/lightning/breadcrumbs/breadcrumbs.js +3 -2
  34. package/src/lightning/breadcrumbs/breadcrumbs.slds.css +7 -1
  35. package/src/lightning/button/__docs__/button.md +15 -15
  36. package/src/lightning/button/__examples__/inverse/inverse.css +8 -0
  37. package/src/lightning/button/__examples__/inverse/inverse.html +3 -2
  38. package/src/lightning/button/button.css +2 -0
  39. package/src/lightning/button/button.html +4 -2
  40. package/src/lightning/button/button.js +21 -0
  41. package/src/lightning/button/button.slds.css +527 -0
  42. package/src/lightning/buttonGroup/buttonGroup.css +2 -2
  43. package/src/lightning/buttonGroup/buttonGroup.js +3 -2
  44. package/src/lightning/buttonIcon/__docs__/buttonIcon.md +9 -9
  45. package/src/lightning/buttonIcon/button-icon.slds.css +215 -453
  46. package/src/lightning/buttonIcon/buttonIcon.css +2 -2
  47. package/src/lightning/buttonIcon/buttonIcon.js +4 -0
  48. package/src/lightning/buttonIconStateful/__docs__/buttonIconStateful.md +9 -9
  49. package/src/lightning/buttonIconStateful/button-icon-stateful.slds.css +215 -453
  50. package/src/lightning/buttonIconStateful/buttonIconStateful.css +2 -2
  51. package/src/lightning/buttonMenu/__docs__/buttonMenu.md +8 -8
  52. package/src/lightning/buttonMenu/{dropdown.slds.css → button-menu.slds.css} +853 -217
  53. package/src/lightning/buttonMenu/buttonMenu.css +2 -2
  54. package/src/lightning/buttonMenu/buttonMenu.html +2 -2
  55. package/src/lightning/buttonMenu/buttonMenu.js +10 -14
  56. package/src/lightning/buttonStateful/__docs__/buttonStateful.md +12 -12
  57. package/src/lightning/buttonStateful/button-stateful.slds.css +225 -457
  58. package/src/lightning/buttonStateful/buttonStateful.css +2 -2
  59. package/src/lightning/buttonStateful/buttonStateful.js +3 -2
  60. package/src/lightning/calendar/__examples__/basic/basic.html +7 -0
  61. package/src/lightning/calendar/__examples__/basic/basic.js +3 -0
  62. package/src/lightning/calendar/calendar.css +3 -0
  63. package/src/lightning/calendar/calendar.html +12 -9
  64. package/src/lightning/calendar/calendar.js +18 -2
  65. package/src/lightning/calendar/calendar.slds.css +2048 -0
  66. package/src/lightning/card/__docs__/card.md +3 -3
  67. package/src/lightning/card/card.css +2 -2
  68. package/src/lightning/card/card.js +3 -2
  69. package/src/lightning/card/card.slds.css +141 -88
  70. package/src/lightning/checkboxGroup/__docs__/checkboxGroup.md +2 -2
  71. package/src/lightning/colorPickerCustom/colorPickerCustom.css +2 -2
  72. package/src/lightning/colorPickerCustom/colorPickerCustom.js +3 -2
  73. package/src/lightning/colorPickerPanel/color-picker-panel.slds.css +11 -38
  74. package/src/lightning/colorPickerPanel/colorPickerPanel.css +3 -2
  75. package/src/lightning/colorPickerPanel/colorPickerPanel.js +4 -2
  76. package/src/lightning/colorPickerPanel/popover.slds.css +121 -0
  77. package/src/lightning/combobox/combobox.css +4 -0
  78. package/src/lightning/combobox/combobox.html +31 -29
  79. package/src/lightning/combobox/combobox.js +21 -4
  80. package/src/lightning/combobox/combobox.slds.css +13 -0
  81. package/src/lightning/combobox/form-element.slds.css +281 -0
  82. package/src/lightning/configProvider/defaultConfig.js +2 -1
  83. package/src/lightning/datatable/__docs__/datatable.md +45 -35
  84. package/src/lightning/datatable/autoWidthStrategy.js +3 -0
  85. package/src/lightning/datatable/columnWidthManager.js +1 -1
  86. package/src/lightning/datatable/datatable.js +8 -7
  87. package/src/lightning/datatable/rowSelection.js +7 -4
  88. package/src/lightning/datatable/templates/table/table.html +1 -0
  89. package/src/lightning/datepicker/datepicker.css +3 -0
  90. package/src/lightning/datepicker/datepicker.html +7 -4
  91. package/src/lightning/datepicker/datepicker.js +76 -20
  92. package/src/lightning/datepicker/form-element.slds.css +281 -0
  93. package/src/lightning/datepicker/input-text.slds.css +398 -0
  94. package/src/lightning/datetimepicker/datetimepicker.css +3 -0
  95. package/src/lightning/datetimepicker/datetimepicker.html +9 -3
  96. package/src/lightning/datetimepicker/datetimepicker.js +42 -36
  97. package/src/lightning/datetimepicker/form-element.slds.css +281 -0
  98. package/src/lightning/datetimepicker/input-text.slds.css +398 -0
  99. package/src/lightning/dualListbox/dualListbox.css +2 -2
  100. package/src/lightning/dualListbox/dualListbox.html +3 -3
  101. package/src/lightning/dualListbox/dualListbox.js +47 -13
  102. package/src/lightning/dualListbox/form-element.slds.css +83 -34
  103. package/src/lightning/dualListbox/keyboard.js +20 -1
  104. package/src/lightning/dynamicIcon/dynamicIcon.js +3 -2
  105. package/src/lightning/dynamicIcon/ellie.css +1 -1
  106. package/src/lightning/dynamicIcon/eq.css +1 -1
  107. package/src/lightning/dynamicIcon/score.css +1 -1
  108. package/src/lightning/dynamicIcon/strength.css +1 -1
  109. package/src/lightning/dynamicIcon/trend.css +1 -1
  110. package/src/lightning/dynamicIcon/waffle.css +1 -1
  111. package/src/lightning/formattedRichText/formatted-rich-text.slds.css +230 -0
  112. package/src/lightning/formattedRichText/formattedRichText.css +2 -0
  113. package/src/lightning/formattedRichText/formattedRichText.js +4 -2
  114. package/src/lightning/formattedRichText/linkify.js +2 -2
  115. package/src/lightning/formattedText/formattedText.css +1 -0
  116. package/src/lightning/formattedText/formattedText.js +3 -2
  117. package/src/lightning/helptext/__docs__/helptext.md +2 -2
  118. package/src/lightning/helptext/form-element.slds.css +83 -34
  119. package/src/lightning/helptext/help-text.slds.css +215 -453
  120. package/src/lightning/helptext/helptext.css +2 -2
  121. package/src/lightning/helptext/helptext.js +3 -2
  122. package/src/lightning/i18nCldrOptions/README.md +5 -0
  123. package/src/lightning/i18nService/README.md +5 -0
  124. package/src/lightning/icon/__docs__/icon.md +5 -5
  125. package/src/lightning/icon/icon.css +2 -2
  126. package/src/lightning/icon/icon.js +21 -2
  127. package/src/lightning/icon/icon.slds.css +29 -17
  128. package/src/lightning/icon/iconColors.js +1 -0
  129. package/src/lightning/iconUtils/iconUtils.js +0 -12
  130. package/src/lightning/iconUtils/polyfill.js +5 -90
  131. package/src/lightning/input/__docs__/input.md +7 -7
  132. package/src/lightning/input/__examples__/checkboxbutton/checkboxbutton.css +6 -0
  133. package/src/lightning/input/__examples__/checkboxbutton/checkboxbutton.html +2 -1
  134. package/src/lightning/input/__examples__/checkboxbutton/checkboxbutton.js +1 -1
  135. package/src/lightning/input/__examples__/number/number.html +0 -5
  136. package/src/lightning/input/__examples__/text/text.html +0 -1
  137. package/src/lightning/input/form-element.slds.css +281 -0
  138. package/src/lightning/input/input.css +2 -3
  139. package/src/lightning/input/input.html +154 -244
  140. package/src/lightning/input/input.js +306 -595
  141. package/src/lightning/inputAddress/__docs__/inputAddress.md +3 -3
  142. package/src/lightning/inputUtils/inputUtils.js +15 -20
  143. package/src/lightning/inputUtils/normalize.js +7 -0
  144. package/src/lightning/{input/numberUtil.js → inputUtils/number.js} +1 -1
  145. package/src/lightning/inputUtils/utils.js +18 -0
  146. package/src/lightning/internationalizationLibrary/README.md +24 -0
  147. package/src/lightning/internationalizationLibrary/utils.js +4 -1
  148. package/src/lightning/layout/__docs__/layout.md +1 -1
  149. package/src/lightning/layout/__examples__/simple/simple.css +1 -1
  150. package/src/lightning/layout/layout.css +5 -1
  151. package/src/lightning/layout/layout.js +4 -2
  152. package/src/lightning/layoutItem/__examples__/alignmentBump/alignmentBump.css +1 -1
  153. package/src/lightning/layoutItem/__examples__/sizePerDevice/sizePerDevice.css +0 -1
  154. package/src/lightning/layoutItem/layoutItem.css +5 -0
  155. package/src/lightning/layoutItem/layoutItem.js +4 -2
  156. package/src/lightning/menuDivider/menu-divider.slds.css +15 -0
  157. package/src/lightning/menuDivider/menuDivider.css +3 -0
  158. package/src/lightning/menuDivider/menuDivider.html +1 -1
  159. package/src/lightning/menuDivider/menuDivider.js +4 -2
  160. package/src/lightning/menuItem/menu-item.slds.css +140 -0
  161. package/src/lightning/menuItem/menuItem.css +3 -0
  162. package/src/lightning/menuItem/menuItem.html +43 -41
  163. package/src/lightning/menuItem/menuItem.js +4 -4
  164. package/src/lightning/menuSubheader/menu-subheader.slds.css +22 -0
  165. package/src/lightning/menuSubheader/menuSubheader.css +3 -0
  166. package/src/lightning/menuSubheader/menuSubheader.html +3 -1
  167. package/src/lightning/menuSubheader/menuSubheader.js +4 -6
  168. package/src/lightning/modal/__docs__/modal.md +3 -1
  169. package/src/lightning/modal/__modalUtils__/modalContainerTestConstants.js +267 -0
  170. package/src/lightning/modal/__modalUtils__/modalContainerTestMethods.js +1165 -0
  171. package/src/lightning/modal/__modalUtils__/modalContainerTestMockData.js +131 -0
  172. package/src/lightning/modal/modal.js +1 -1
  173. package/src/lightning/modalBody/__docs__/modalBody.md +9 -9
  174. package/src/lightning/modalFooter/__docs__/modalFooter.md +9 -9
  175. package/src/lightning/modalHeader/__docs__/modalHeader.md +9 -9
  176. package/src/lightning/overlayContainer/overlayContainer.js +4 -2
  177. package/src/lightning/pill/__docs__/pill.md +3 -3
  178. package/src/lightning/pill/avatar.slds.css +272 -0
  179. package/src/lightning/pill/link.css +3 -0
  180. package/src/lightning/pill/link.html +1 -1
  181. package/src/lightning/pill/pill.js +29 -9
  182. package/src/lightning/pill/pill.slds.css +168 -0
  183. package/src/lightning/pill/plain.css +3 -0
  184. package/src/lightning/pill/plain.html +1 -1
  185. package/src/lightning/pill/plainLink.css +3 -0
  186. package/src/lightning/pill/plainLink.html +1 -1
  187. package/src/lightning/pillContainer/__docs__/pillContainer.md +14 -14
  188. package/src/lightning/pillContainer/barePillContainer.css +3 -0
  189. package/src/lightning/pillContainer/barePillContainer.html +1 -2
  190. package/src/lightning/pillContainer/listbox.slds.css +267 -0
  191. package/src/lightning/pillContainer/pill-container.slds.css +22 -0
  192. package/src/lightning/pillContainer/pill.slds.css +168 -0
  193. package/src/lightning/pillContainer/pillContainer.js +7 -3
  194. package/src/lightning/pillContainer/standardPillContainer.css +4 -0
  195. package/src/lightning/pillContainer/standardPillContainer.html +2 -2
  196. package/src/lightning/popup/popover.slds.css +119 -119
  197. package/src/lightning/popup/popup.css +1 -2
  198. package/src/lightning/popup/popup.js +3 -2
  199. package/src/lightning/positionLibrary/elementProxy.js +7 -2
  200. package/src/lightning/positionLibrary/util.js +8 -0
  201. package/src/lightning/primitiveBubble/primitiveBubble.css +2 -2
  202. package/src/lightning/primitiveBubble/primitiveBubble.js +4 -2
  203. package/src/lightning/primitiveButton/primitiveButton.js +5 -4
  204. package/src/lightning/primitiveCellFactory/cellWithStandardLayout.html +29 -21
  205. package/src/lightning/primitiveCellFactory/primitiveCellFactory.js +4 -0
  206. package/src/lightning/primitiveColorpickerButton/color-picker-button.slds.css +31 -19
  207. package/src/lightning/primitiveColorpickerButton/primitiveColorpickerButton.css +2 -2
  208. package/src/lightning/primitiveColorpickerButton/primitiveColorpickerButton.js +5 -3
  209. package/src/lightning/primitiveIcon/icon.slds.css +209 -0
  210. package/src/lightning/primitiveIcon/primitiveIcon.css +2 -1
  211. package/src/lightning/primitiveIcon/primitiveIcon.html +1 -1
  212. package/src/lightning/primitiveIcon/primitiveIcon.js +26 -16
  213. package/src/lightning/progressStep/progressStep.js +10 -13
  214. package/src/lightning/radioGroup/__docs__/radioGroup.md +4 -4
  215. package/src/lightning/radioGroup/radioGroup.css +2 -1
  216. package/src/lightning/radioGroup/radioGroup.js +4 -2
  217. package/src/lightning/select/__docs__/select.md +2 -2
  218. package/src/lightning/select/form-element.slds.css +83 -34
  219. package/src/lightning/select/select.css +2 -2
  220. package/src/lightning/select/select.js +4 -2
  221. package/src/lightning/select/select.slds.css +86 -34
  222. package/src/lightning/shadowBaseClassPrivate/shadowBaseClassPrivate.js +1 -1
  223. package/src/lightning/sldsCommon/sldsCommon.css +251 -89
  224. package/src/lightning/sldsUtilsAlignment/sldsUtilsAlignment.css +10 -0
  225. package/src/lightning/sldsUtilsAlignment/sldsUtilsAlignment.js-meta.xml +4 -0
  226. package/src/lightning/sldsUtilsBorders/sldsUtilsBorders.css +18 -0
  227. package/src/lightning/sldsUtilsBorders/sldsUtilsBorders.js-meta.xml +4 -0
  228. package/src/lightning/sldsUtilsBox/sldsUtilsBox.css +24 -0
  229. package/src/lightning/sldsUtilsBox/sldsUtilsBox.js-meta.xml +4 -0
  230. package/src/lightning/sldsUtilsFloats/sldsUtilsFloats.css +20 -0
  231. package/src/lightning/sldsUtilsFloats/sldsUtilsFloats.js-meta.xml +4 -0
  232. package/src/lightning/sldsUtilsGrid/sldsUtilsGrid.css +259 -0
  233. package/src/lightning/sldsUtilsGrid/sldsUtilsGrid.js-meta.xml +4 -0
  234. package/src/lightning/sldsUtilsHyphenation/sldsUtilsHyphenation.css +8 -0
  235. package/src/lightning/sldsUtilsHyphenation/sldsUtilsHyphenation.js-meta.xml +4 -0
  236. package/src/lightning/sldsUtilsLineClamp/sldsUtilsLineClamp.css +57 -0
  237. package/src/lightning/sldsUtilsLineClamp/sldsUtilsLineClamp.js-meta.xml +4 -0
  238. package/src/lightning/sldsUtilsMargin/sldsUtilsMargin.css +313 -0
  239. package/src/lightning/sldsUtilsMargin/sldsUtilsMargin.js-meta.xml +4 -0
  240. package/src/lightning/sldsUtilsPadding/sldsUtilsPadding.css +308 -0
  241. package/src/lightning/sldsUtilsPadding/sldsUtilsPadding.js-meta.xml +4 -0
  242. package/src/lightning/sldsUtilsPosition/sldsUtilsPosition.css +18 -0
  243. package/src/lightning/sldsUtilsPosition/sldsUtilsPosition.js-meta.xml +4 -0
  244. package/src/lightning/sldsUtilsSizing/sldsUtilsSizing.css +1408 -0
  245. package/src/lightning/sldsUtilsSizing/sldsUtilsSizing.js-meta.xml +4 -0
  246. package/src/lightning/sldsUtilsThemes/sldsUtilsThemes.css +295 -0
  247. package/src/lightning/sldsUtilsThemes/sldsUtilsThemes.js-meta.xml +4 -0
  248. package/src/lightning/sldsUtilsTruncation/sldsUtilsTruncation.css +14 -0
  249. package/src/lightning/sldsUtilsTruncation/sldsUtilsTruncation.js-meta.xml +4 -0
  250. package/src/lightning/slider/__docs__/slider.md +2 -2
  251. package/src/lightning/spinner/spinner.css +2 -2
  252. package/src/lightning/spinner/spinner.js +4 -2
  253. package/src/lightning/tabBar/tab-bar.slds.css +334 -0
  254. package/src/lightning/tabBar/tabBar.css +2 -0
  255. package/src/lightning/tabBar/tabBar.html +4 -3
  256. package/src/lightning/tabBar/tabBar.js +30 -3
  257. package/src/lightning/tabset/__docs__/tabset.md +2 -2
  258. package/src/lightning/tabset/tabset.html +5 -4
  259. package/src/lightning/tabset/tabset.js +29 -11
  260. package/src/lightning/textarea/__docs__/textarea.md +2 -2
  261. package/src/lightning/timepicker/form-element.slds.css +281 -0
  262. package/src/lightning/timepicker/timepicker.css +3 -0
  263. package/src/lightning/timepicker/timepicker.html +5 -1
  264. package/src/lightning/timepicker/timepicker.js +22 -17
  265. package/src/lightning/timepicker/timepicker.slds.css +18 -0
  266. package/src/lightning/toast/toast.js-meta.xml +2 -0
  267. package/src/lightning/toastContainer/__docs__/toastContainer.md +14 -34
  268. package/src/lightning/toastContainer/toastContainer.js +10 -15
  269. package/src/lightning/tooltipLibrary/tooltipLibrary.js +32 -23
  270. package/src/lightning/utilsPrivate/browser.js +5 -3
  271. package/src/lightning/utilsPrivate/os.js +6 -4
  272. package/src/lightning/utilsPrivate/ssr.js +4 -0
  273. package/src/lightning/utilsPrivate/utilsPrivate.js +2 -0
  274. package/src/lightning/verticalNavigation/verticalNavigation.css +2 -1
  275. package/src/lightning/verticalNavigation/verticalNavigation.js +3 -2
  276. package/src/lightning/verticalNavigationSection/verticalNavigationSection.css +2 -1
  277. package/src/lightning/verticalNavigationSection/verticalNavigationSection.js +3 -2
  278. package/src/lightning/accordion/__perf__DISABLED/accordion-perf-utils.js +0 -76
  279. package/src/lightning/accordion/__perf__DISABLED/accordion10Multiple25SectionEach.perf.js +0 -57
  280. package/src/lightning/accordion/__perf__DISABLED/accordion10Simple25SectionEach.perf.js +0 -37
  281. package/src/lightning/accordion/__perf__DISABLED/accordionMultiple50Section.perf.js +0 -45
  282. package/src/lightning/accordion/__perf__DISABLED/accordionSimple50Section.perf.js +0 -35
  283. package/src/lightning/accordion/__perf__DISABLED/container/container.html +0 -15
  284. package/src/lightning/accordion/__perf__DISABLED/container/container.js +0 -7
  285. package/src/lightning/iconUtils/isIframeInEdge.js +0 -7
  286. package/src/lightning/iconUtils/supportsSvg.js +0 -16
  287. package/src/lightning/input/input-checkbox.slds.css +0 -404
  288. package/src/lightning/input/input-text.slds.css +0 -287
  289. package/src/lightning/input/normalize.js +0 -6
  290. package/src/lightning/input/selection.js +0 -131
  291. package/src/lightning/positionLibrary/__component__/positionLibraryBounding.spec.js +0 -319
  292. package/src/lightning/positionLibrary/__component__/x/bounding/bounding.css +0 -16
  293. package/src/lightning/positionLibrary/__component__/x/bounding/bounding.html +0 -36
  294. package/src/lightning/positionLibrary/__component__/x/bounding/bounding.js +0 -122
  295. /package/src/lightning/{baseCombobox → baseComboboxItem}/listbox.slds.css +0 -0
  296. /package/src/lightning/formattedRichText/{__examples__disabled → __examples__}/basic/basic.html +0 -0
  297. /package/src/lightning/formattedRichText/{__examples__disabled → __examples__}/basic/basic.js +0 -0
  298. /package/src/lightning/{input/emailUtil.js → inputUtils/email.js} +0 -0
@@ -0,0 +1,131 @@
1
+ /* Contains mock data for modal testing */
2
+
3
+ const formData = [
4
+ {
5
+ name: 'assignedTo',
6
+ value: 'Jonathan Marks',
7
+ type: 'text',
8
+ numTabsToNext: 1,
9
+ },
10
+ {
11
+ name: 'teamName',
12
+ value: 'Chrome Webdrivers',
13
+ type: 'text',
14
+ numTabsToNext: 1,
15
+ },
16
+ {
17
+ name: 'statusValue',
18
+ value: 'New',
19
+ result: 'new',
20
+ type: 'combobox',
21
+ numTabsToNext: 1,
22
+ },
23
+ {
24
+ name: 'personalSettings',
25
+ value: 'Updated',
26
+ type: 'text',
27
+ numTabsToNext: 1,
28
+ },
29
+ {
30
+ name: 'slaSerialNum',
31
+ value: '8675997511',
32
+ type: 'text',
33
+ numTabsToNext: 1,
34
+ },
35
+ {
36
+ name: 'slaExpireDate',
37
+ value: 'Sep 8, 2021',
38
+ result: '2021-09-08',
39
+ type: 'datepicker',
40
+ numTabsToNext: 2,
41
+ },
42
+ {
43
+ name: 'slaExpireTime',
44
+ value: 8,
45
+ result: '02:00:00.000',
46
+ type: 'timepicker',
47
+ numTabsToNext: 1,
48
+ },
49
+ {
50
+ name: 'location',
51
+ value: 'Downtown Offices',
52
+ type: 'text',
53
+ numTabsToNext: 1,
54
+ },
55
+ {
56
+ name: 'selectedLangs',
57
+ value: 'English, Spanish, Chinese',
58
+ type: 'text',
59
+ numTabsToNext: 2,
60
+ },
61
+
62
+ {
63
+ name: 'addressBilling.country',
64
+ value: 3,
65
+ result: 'SP',
66
+ type: 'combobox',
67
+ numTabsToNext: 1,
68
+ },
69
+ {
70
+ name: 'addressBilling.street',
71
+ value: '32184 Excellent Street',
72
+ type: 'text',
73
+ numTabsToNext: 1,
74
+ },
75
+ {
76
+ name: 'addressBilling.city',
77
+ value: 'Lowertown',
78
+ type: 'text',
79
+ numTabsToNext: 1,
80
+ },
81
+ {
82
+ name: 'addressBilling.province',
83
+ value: 4,
84
+ result: 'GO',
85
+ type: 'combobox',
86
+ numTabsToNext: 1,
87
+ },
88
+ {
89
+ name: 'addressBilling.postalCode',
90
+ value: '8K2J3P1',
91
+ type: 'text',
92
+ numTabsToNext: 2,
93
+ },
94
+
95
+ {
96
+ name: 'addressShipping.country',
97
+ value: 2,
98
+ result: 'CN',
99
+ type: 'combobox',
100
+ numTabsToNext: 1,
101
+ },
102
+ {
103
+ name: 'addressShipping.street',
104
+ value: '32342 Postland Avenue',
105
+ type: 'text',
106
+ numTabsToNext: 1,
107
+ },
108
+ {
109
+ name: 'addressShipping.city',
110
+ value: 'Uppertown',
111
+ type: 'text',
112
+ numTabsToNext: 1,
113
+ },
114
+ {
115
+ name: 'addressShipping.province',
116
+ value: 2,
117
+ result: 'GX',
118
+ type: 'combobox',
119
+ numTabsToNext: 1,
120
+ },
121
+ {
122
+ name: 'addressShipping.postalCode',
123
+ value: '8782399-219',
124
+ type: 'text',
125
+ numTabsToNext: 0,
126
+ },
127
+ ];
128
+
129
+ module.exports = {
130
+ formData,
131
+ };
@@ -16,7 +16,7 @@ export default class LightningModal extends LightningOverlay {
16
16
 
17
17
  // public api
18
18
  /**
19
- * How much of the viewport width the modal uses. Supported values are small, medium, or large.
19
+ * How much of the viewport width the modal uses. Supported values are small, medium, large, or full.
20
20
  * @type {string}
21
21
  * @default medium
22
22
  */
@@ -1,10 +1,10 @@
1
1
  The `lightning-modal-body` component renders the content of a modal.
2
2
 
3
- The modal components render in the order they appear in the template. Place the `lightning-modal-body`
4
- component after `lightning-modal-header` and before `lightning-modal-footer` components, if you're providing them.
3
+ The modal components render in the order they appear in the template. Place the `lightning-modal-body`
4
+ component after `lightning-modal-header` and before `lightning-modal-footer` components, if you're providing them.
5
5
 
6
6
  This sample code shows the expected order of the modal components. The modal content is
7
- created in a separate component extended from `LightningModal`. See
7
+ created in a separate component extended from `LightningModal`. See
8
8
  [Lightning Web Components Developer Guide](docs/component-library/documentation/en/lwc/)
9
9
 
10
10
  ```html
@@ -24,8 +24,8 @@ created in a separate component extended from `LightningModal`. See
24
24
  </template>
25
25
  ```
26
26
 
27
- You can nest content in `lightning-modal-body` or
28
- `lightning-modal-body` automatically scrolls the modal's content when necessary.
27
+ You can nest content in `lightning-modal-body` or
28
+ `lightning-modal-body` automatically scrolls the modal's content when necessary.
29
29
  The modal's maximum height is calculated to prevent the content from exceeding the screen height,
30
30
  and scroll bars are automatically added.
31
31
  #### Component Styling
@@ -36,18 +36,18 @@ To apply custom styling, use the `:host` selector or define a custom class using
36
36
 
37
37
  ```html
38
38
  <lightning-modal-body class="my-modal-body">
39
-
39
+
40
40
  </lightning-modal-body>
41
41
  ```
42
42
 
43
- Use SLDS styling hooks to customize the component's styles. The `--sds-c-modal-content-*` hooks
44
- enable you to customize the background color and text color of the modal body.
43
+ Use SLDS styling hooks to customize the component's styles. The `--slds-c-modal-content-*` hooks
44
+ enable you to customize the background color and text color of the modal body.
45
45
 
46
46
  For example, specify the background color on the modal using the `sds-c-modal-content-color-background` custom property.
47
47
 
48
48
  ```css
49
49
  .my-modal-body {
50
- --sds-c-modal-content-color-background: LightBlue;
50
+ --slds-c-modal-content-color-background: LightBlue;
51
51
  }
52
52
  ```
53
53
 
@@ -1,14 +1,14 @@
1
- The `lightning-modal-footer` component creates a footer at the bottom of a modal dialog.
1
+ The `lightning-modal-footer` component creates a footer at the bottom of a modal dialog.
2
2
  Use of a footer is optional.
3
3
 
4
4
  The modal components render in the order they appear in the template.
5
5
  Place the `lightning-modal-footer` component after the `lightning-modal-body` component.
6
6
 
7
7
  This sample code shows the expected order of the modal components. The modal content is
8
- created in a separate component extended from `LightningModal`. See
8
+ created in a separate component extended from `LightningModal`. See
9
9
  [Lightning Web Components Developer Guide](docs/component-library/documentation/en/lwc/)
10
10
 
11
- This sample's `lightning-modal-footer` includes two `lightning-button` components,
11
+ This sample's `lightning-modal-footer` includes two `lightning-button` components,
12
12
  but you can also use `<button>` elements.
13
13
 
14
14
  ```html
@@ -25,7 +25,7 @@ but you can also use `<button>` elements.
25
25
  variant="neutral"
26
26
  label="Cancel"
27
27
  onclick={handleDismiss}
28
- ></lightning-button>
28
+ ></lightning-button>
29
29
  <lightning-button
30
30
  class="slds-button slds-m-left_x-small"
31
31
  variant="brand"
@@ -42,18 +42,18 @@ To apply custom styling, use the `:host` selector or define a custom class using
42
42
 
43
43
  ```html
44
44
  <lightning-modal-footer class="my-modal-footer">
45
-
45
+
46
46
  </lightning-modal-footer>
47
47
  ```
48
48
 
49
- Use SLDS styling hooks to customize the component's styles. Several `--sds-c-modal-footer-*` hooks
50
- enable you to customize the footer spacing, background color, and text color.
49
+ Use SLDS styling hooks to customize the component's styles. Several `--slds-c-modal-footer-*` hooks
50
+ enable you to customize the footer spacing, background color, and text color.
51
51
 
52
52
  For example, specify the background color on the footer using the `sds-c-modal-footer-color-background` custom property.
53
53
 
54
54
  ```css
55
55
  .my-modal-footer {
56
- --sds-c-modal-footer-color-background: LightGray;
56
+ --slds-c-modal-footer-color-background: LightGray;
57
57
  }
58
58
  ```
59
59
 
@@ -66,7 +66,7 @@ For more information, see [Style Components Using Lightning Design System Stylin
66
66
  If you add buttons to the footer, you can use the accessibility attributes described in [`lightning-button`](bundle/lightning-button/documentation).
67
67
 
68
68
  When the modal opens, focus goes to the first interactive element in the modal. If there are no links in the header or any interactive elements
69
- in the modal body, the first footer button gets initial focus.
69
+ in the modal body, the first footer button gets initial focus.
70
70
 
71
71
  See [Lightning Web Components Developer Guide](docs/component-library/documentation/en/lwc/) for more information about accessibility in modals.
72
72
 
@@ -1,18 +1,18 @@
1
1
  The `lightning-modal-header` component displays header text in a panel at the top of a modal dialog.
2
- Use of a header is optional, but when you provide a header you must specify the header text with the `label` attribute.
2
+ Use of a header is optional, but when you provide a header you must specify the header text with the `label` attribute.
3
3
 
4
4
  If you don't use the `lightning-modal-header` component, you must set a label
5
5
  in the modal you create by extending `LightningModal`. A label is required for accessibility.
6
6
 
7
- The modal components render in the order they appear in the template. Place the `lightning-modal-header`
7
+ The modal components render in the order they appear in the template. Place the `lightning-modal-header`
8
8
  component before the `lightning-modal-body` component in the template.
9
9
 
10
10
  `lightning-modal-header` supports optional tagline text, which displays in smaller text below the heading. Enclose the
11
11
  tagline text directly in the `lightning-modal-header` component, no HTML tag or attribute is needed. You can include links with `<a>`
12
- tags, which are the only HTML elements permitted. If the header text is too long to fit on one line, it wraps in the modal header.
12
+ tags, which are the only HTML elements permitted. If the header text is too long to fit on one line, it wraps in the modal header.
13
13
 
14
14
  This sample code shows the expected order of the modal components. The modal content is
15
- created in a separate component extended from `LightningModal`. See
15
+ created in a separate component extended from `LightningModal`. See
16
16
  [Lightning Web Components Developer Guide](docs/component-library/documentation/en/lwc/)
17
17
 
18
18
  ```html
@@ -34,18 +34,18 @@ To apply custom styling, use the `:host` selector or define a custom class using
34
34
 
35
35
  ```html
36
36
  <lightning-modal-header label="My Modal" class="my-modal-header">
37
-
37
+
38
38
  </lightning-modal-header>
39
39
  ```
40
40
 
41
- Use SLDS styling hooks to customize the component's styles. Several `--sds-c-modal-header-*` and `--sds-c-modal-heading-*` hooks
42
- enable you to customize the header.
41
+ Use SLDS styling hooks to customize the component's styles. Several `--slds-c-modal-header-*` and `--slds-c-modal-heading-*` hooks
42
+ enable you to customize the header.
43
43
 
44
44
  For example, specify the background color on the button using the `sds-c-modal-header-color-background` custom property.
45
45
 
46
46
  ```css
47
47
  .my-modal-header {
48
- --sds-c-modal-header-color-background: LightGray;
48
+ --slds-c-modal-header-color-background: LightGray;
49
49
  }
50
50
  ```
51
51
 
@@ -59,6 +59,6 @@ When you use `lightning-modal-header` in your modal, the rendered modal provides
59
59
  If you don't use `lightning-modal-header`, the accessible label is provided using `aria-label` set to the label you provide in the modal.
60
60
 
61
61
  When the modal opens, focus goes to the first interactive element in the modal. If the header includes a link in tagline text, the link
62
- gets initial focus.
62
+ gets initial focus.
63
63
 
64
64
  See [Lightning Web Components Developer Guide](docs/component-library/documentation/en/lwc/) for more information about accessibility in modals.
@@ -1,4 +1,5 @@
1
- import { LightningElement, api, createElement } from 'lwc';
1
+ import { api, createElement } from 'lwc';
2
+ import LightningShadowBaseClass from 'lightning/shadowBaseClassPrivate';
2
3
  import { parent, instanceName } from 'lightning/overlayUtils';
3
4
  import { guid } from 'lightning/utilsPrivate';
4
5
  import {
@@ -16,7 +17,7 @@ import {
16
17
  LWC_OVERLAY_ENGINE,
17
18
  } from 'lightning/overlayManager';
18
19
 
19
- export default class LightningOverlayContainer extends LightningElement {
20
+ export default class LightningOverlayContainer extends LightningShadowBaseClass {
20
21
  // overlayContainer has this.stack, which holds the details, and actual
21
22
  // DOM elements of local (this file) LWC overlays only, while
22
23
  // overlayManager has this.state.stack, which only tracks details of
@@ -188,6 +189,7 @@ export default class LightningOverlayContainer extends LightningElement {
188
189
  }
189
190
 
190
191
  connectedCallback() {
192
+ super.connectedCallback();
191
193
  // Notified anytime an overlay is added/removed
192
194
  // LWC overlays start on z-index 9000; always even z-index (9000, 9002)
193
195
  // Aura overlays start on z-index 9001; always on odd z-index (9001, 9003)
@@ -159,15 +159,15 @@ To apply custom styling, define a custom class using the `class` attribute.
159
159
  <lightning-pill label="Astro" class="my-pill"></lightning-pill>
160
160
  ```
161
161
 
162
- Use SLDS styling hooks to customize the component's styles. For example, specify the background color on the pill using the `--sds-c-pill-color-background` custom property.
162
+ Use SLDS styling hooks to customize the component's styles. For example, specify the background color on the pill using the `--slds-c-pill-color-background` custom property.
163
163
 
164
164
  ```css
165
165
  .my-pill {
166
- --sds-c-pill-color-background: orange;
166
+ --slds-c-pill-color-background: orange;
167
167
  }
168
168
  ```
169
169
 
170
- Additionally, the remove button contains customizable elements similar to `lightning-button-icon`. You can customize the styles on the remove button using the `--sds-c-button-*` custom properties. See the [lightning-button-icon documentation](bundle/lightning-button-icon/documentation).
170
+ Additionally, the remove button contains customizable elements similar to `lightning-button-icon`. You can customize the styles on the remove button using the `--slds-c-button-*` custom properties. See the [lightning-button-icon documentation](bundle/lightning-button-icon/documentation).
171
171
 
172
172
  See [Styling Hooks Overview](https://www.lightningdesignsystem.com/components/pills/#Styling-Hooks-Overview) for a list of CSS custom properties.
173
173
 
@@ -0,0 +1,272 @@
1
+ /**
2
+ * @Note: Static fallbacks are in place until SLDS adopts SDS. Without static
3
+ * fallbacks, styles will regress due to invalid CSS variables from
4
+ * missing SLDS shared and globals.
5
+ *
6
+ * Additionally, LBC are currently relying on 'part' attributes to
7
+ * receive styling. Authoring styles that rely on slots is not recommended.
8
+ */
9
+
10
+ @supports (--styling-hooks: '') {
11
+ :host([data-render-mode="shadow"][size~='xxx-small']) {
12
+ --slds-c-icon-sizing: var(--sds-g-sizing-3, 0.5rem);
13
+ }
14
+
15
+ :host([data-render-mode="shadow"][size~='xx-small']) {
16
+ --slds-c-icon-sizing: calc(var(--sds-g-sizing-1, 0.125rem) + var(--sds-g-sizing-4, 0.75rem));
17
+ }
18
+
19
+ :host([data-render-mode="shadow"][size~='x-small']) {
20
+ --slds-c-icon-sizing: var(--sds-g-sizing-5, 1rem);
21
+ }
22
+
23
+ :host([data-render-mode="shadow"][size~='small']) {
24
+ --slds-c-icon-sizing: var(--sds-g-sizing-7, 1.5rem);
25
+ }
26
+
27
+ :host([data-render-mode="shadow"][size~='large']) {
28
+ --slds-c-icon-sizing: var(--sds-g-sizing-10, 3rem);
29
+ }
30
+
31
+ :host([data-render-mode="shadow"][variant~='warning']) {
32
+ --slds-c-icon-color-foreground: var(--sds-g-color-warning-base-70, #fe9339);
33
+ }
34
+
35
+ :host([data-render-mode="shadow"][variant~='success']) {
36
+ --slds-c-icon-color-foreground: var(--sds-g-color-success-base-50, #2e844a);
37
+ }
38
+
39
+ :host([data-render-mode="shadow"][variant~='error']) {
40
+ --slds-c-icon-color-foreground: var(--sds-g-color-error-base-50, #ea001e);
41
+ }
42
+
43
+ :host([data-render-mode="shadow"][variant~='light']) {
44
+ --slds-c-icon-color-foreground: var(--sds-g-color-neutral-base-70, #aeaeae);
45
+ }
46
+
47
+ :host([data-render-mode="shadow"]) [part~='boundary'] {
48
+ /* --sds-c-icon-color-background: var(--slds-c-icon-color-background); */
49
+ --sds-c-icon-radius-border: var(--slds-c-icon-radius-border, var(--sds-g-radius-border-2, 0.25rem));
50
+ --sds-c-icon-sizing-border: var(--slds-c-icon-sizing-border);
51
+ --sds-c-icon-color-border: var(--slds-c-icon-color-border);
52
+ --sds-c-icon-spacing-block-start: var(
53
+ --slds-c-icon-spacing-block-start,
54
+ var(--slds-c-icon-spacing-block)
55
+ );
56
+ --sds-c-icon-spacing-block-end: var(--slds-c-icon-spacing-block-end, var(--slds-c-icon-spacing-block));
57
+ --sds-c-icon-spacing-inline-start: var(
58
+ --slds-c-icon-spacing-inline-start,
59
+ var(--slds-c-icon-spacing-inline)
60
+ );
61
+ --sds-c-icon-spacing-inline-end: var(--slds-c-icon-spacing-inline-end, var(--slds-c-icon-spacing-inline));
62
+
63
+ /**
64
+ * There's a divergence in LBC that we have to support here: LBC splits their
65
+ * icon implementation into two components: lightning-icon and lightning-primitive-icon.
66
+ * slds-icon is consumed within both with no issues except that the presence of an
67
+ * additional custom element (primitive-icon) creates an unexpected inline-level
68
+ * element and breaks our formatting context. tl;dr, we have to reset the formatting
69
+ * context of the boundary or else we'll inherit line-height from an ancestor and
70
+ * get visual regressions.
71
+ *
72
+ * If lightning-icon is refactored into a single component, this line can be removed.
73
+ */
74
+ display: inline-flex;
75
+ }
76
+
77
+ :host([data-render-mode="shadow"]) [part~='icon'] {
78
+ --sds-c-icon-color-foreground: var(--slds-c-icon-color-foreground, var(--sds-g-color-neutral-base-100, #ffffff));
79
+ --sds-c-icon-sizing-height: var(--slds-c-icon-sizing-height, var(--slds-c-icon-sizing, var(--sds-g-sizing-9, 2rem)));
80
+ --sds-c-icon-sizing-width: var(--slds-c-icon-sizing-width, var(--slds-c-icon-sizing, var(--sds-g-sizing-9, 2rem)));
81
+ }
82
+
83
+ :host([data-render-mode="shadow"][icon-name*='action']) {
84
+ --slds-c-icon-spacing-block: var(--sds-g-sizing-3, 0.5rem);
85
+ --slds-c-icon-spacing-inline: var(--sds-g-sizing-3, 0.5rem);
86
+ --slds-c-icon-radius-border: calc(var(--sds-g-radius-border-circle, 100%) / 2);
87
+ }
88
+ }
89
+
90
+ /**
91
+ * P R I V A T E
92
+ *
93
+ * The following styling is implemented by classes within the shadow DOM.
94
+ * They're expected to be private to the component and not for external use.
95
+ *
96
+ * See notes for each class for the rationale behind their inclusion.
97
+ */
98
+
99
+ /**
100
+ * Utility icons traditionally added a class to change the default foreground
101
+ * color (white) to a grey. This was done implicitly whereas other color changes
102
+ * were done explicitly through the 'variant' attribute. So this is an outlier
103
+ * to the overall pattern. Leaving it as-is since an update would require an
104
+ * API change or more investigating.
105
+ *
106
+ * This is a hybrid patch between synthetic and native shadow. The ideal final
107
+ * outcome is the removal of this class and the default utility styling would
108
+ * be implemented through an attribute or some other class-less solution.
109
+ */
110
+
111
+ :host([data-render-mode="shadow"]) .slds-icon-text-default {
112
+ /*! @css-var-fallback fill */
113
+ --slds-c-icon-color-foreground: var(
114
+ --slds-c-icon-color-foreground-default,
115
+ var(--sds-c-icon-color-foreground-default, var(
116
+ --sds-g-color-neutral-base-50, #747474))
117
+ );
118
+ }
119
+
120
+ :host([data-render-mode="shadow"]) .slds-icon-text-default.slds-is-disabled {
121
+ fill: var(--sds-g-color-neutral-base-80, #c9c9c9);
122
+ }
123
+
124
+ /**
125
+ * A temporarily baked-in utility class until SLDS gets a proper utility package.
126
+ *
127
+ * This is a hybrid patch between synthetic and native shadow. The ideal final
128
+ * outcome is the removal of this class and replacing the class with the SLDS
129
+ * utility package solution.
130
+ */
131
+
132
+ :host([data-render-mode="shadow"]) .slds-assistive-text {
133
+ position: absolute !important;
134
+ margin: -1px !important;
135
+ border: 0 !important;
136
+ padding: 0 !important;
137
+ width: 1px !important;
138
+ height: 1px !important;
139
+ overflow: hidden !important;
140
+ clip: rect(0 0 0 0) !important;
141
+ text-transform: none !important;
142
+ white-space: nowrap !important;
143
+ }
144
+
145
+ /**
146
+ * For the initial alpha version, we're hardcoding in the various unique icon styles.
147
+ *
148
+ * Next version, we want to dynamically generate these from legacy SLDS with the
149
+ * following design pattern:
150
+ *
151
+ * [type="action"][icon-name="approval"] {
152
+ * --sds-c-icon-color-background: var(--slds-c-icon-color-background, #111);
153
+ * }
154
+ */
155
+
156
+ :host([data-render-mode="shadow"]) .slds-icon_disabled {
157
+ background-color: currentColor;
158
+ }
159
+
160
+ :host([data-render-mode="shadow"]) .slds-input__icon {
161
+ --slds-c-icon-sizing: calc(var(--sds-g-sizing-1, 0.125rem) + var(--sds-g-sizing-4, 0.75rem));
162
+
163
+ position: absolute;
164
+ top: 50%;
165
+ margin-block-start: -0.4375rem;
166
+ line-height: var(--sds-g-font-lineheight-1, 1);
167
+ border: 0;
168
+ z-index: 2;
169
+ }
170
+
171
+ /* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
172
+ Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
173
+
174
+ @supports (--styling-hooks: '') {
175
+ :host([data-render-mode="shadow"]) .slds-assistive-text {
176
+ position: absolute !important;
177
+ margin: -1px !important;
178
+ border: 0 !important;
179
+ padding: 0 !important;
180
+ width: 1px !important;
181
+ height: 1px !important;
182
+ overflow: hidden !important;
183
+ clip: rect(0 0 0 0) !important;
184
+ text-transform: none !important;
185
+ white-space: nowrap !important;
186
+ }
187
+
188
+ :host([data-render-mode="shadow"]) [part~='avatar'] {
189
+ width: var(--slds-c-avatar-sizing, var(--sds-g-sizing-9, 2rem));
190
+ height: var(--slds-c-avatar-sizing, var(--sds-g-sizing-9, 2rem));
191
+ overflow: hidden;
192
+ display: inline-block;
193
+ vertical-align: middle;
194
+ border-radius: var(--slds-c-avatar-radius-border, var(--sds-g-radius-border-2, 0.25rem));
195
+ line-height: var(--sds-g-font-lineheight-1, 1);
196
+ font-size: var(--sds-g-font-scale-neg-1, 0.875rem);
197
+ color: var(--slds-c-avatar-text-color, var(--sds-g-color-neutral-base-100, #ffffff));
198
+ }
199
+
200
+ :host([data-render-mode="shadow"][size='x-small']) [part~='avatar'] {
201
+ width: var(--sds-g-sizing-6, 1.25rem);
202
+ height: var(--sds-g-sizing-6, 1.25rem);
203
+ font-size: var(--sds-g-font-scale-neg-4, 0.625rem);
204
+ --slds-c-icon-sizing: var(--sds-g-sizing-6, 1.25rem);
205
+ }
206
+
207
+ :host([data-render-mode="shadow"][size='small']) [part~='avatar'] {
208
+ width: var(--sds-g-sizing-7, 1.5rem);
209
+ height: var(--sds-g-sizing-7, 1.5rem);
210
+ font-size: var(--sds-g-font-scale-neg-4, 0.625rem);
211
+ --slds-c-icon-sizing: var(--sds-g-sizing-7, 1.5rem);
212
+ }
213
+
214
+ :host([data-render-mode="shadow"][size='medium']) [part~='avatar'] {
215
+ width: var(--sds-g-sizing-9, 2rem);
216
+ height: var(--sds-g-sizing-9, 2rem);
217
+ font-size: var(--sds-g-font-scale-neg-1, 0.875rem);
218
+ --slds-c-icon-sizing: var(--sds-g-sizing-9, 2rem);
219
+ }
220
+
221
+ :host([data-render-mode="shadow"][size='large']) [part~='avatar'] {
222
+ width: var(--sds-g-sizing-10, 3rem);
223
+ height: var(--sds-g-sizing-10, 3rem);
224
+ font-size: var(--sds-g-font-scale-1, 1.125rem);
225
+ line-height: var(--sds-g-font-lineheight-2, 1.25);
226
+ --slds-c-icon-sizing: var(--sds-g-sizing-10, 3rem);
227
+ }
228
+
229
+ :host([data-render-mode="shadow"][variant='circle']) [part~='avatar'] {
230
+ border-radius: calc(var(--sds-g-radius-border-circle, 100%) / 2);
231
+ }
232
+
233
+ :host([data-render-mode="shadow"].slds-avatar_empty) [part~='avatar'] {
234
+ border: var(--sds-g-sizing-border-1, 1px) dashed var(--sds-g-color-neutral-base-90, #e5e5e5);
235
+ }
236
+
237
+ :host([data-render-mode="shadow"]) lightning-icon {
238
+ display: flex;
239
+ justify-content: center;
240
+ }
241
+
242
+ :host([data-render-mode="shadow"]) .slds-avatar__initials {
243
+ display: flex;
244
+ justify-content: center;
245
+ -ms-flex-line-pack: center;
246
+ align-content: center;
247
+ align-items: center;
248
+ margin: auto;
249
+ color: var(--slds-c-avatar-text-color);
250
+ height: 100%;
251
+ text-shadow: 0 0 1px rgba(0, 0, 0, 0.8);
252
+ /* stylelint-disable sds-stylelint-plugin/styling-hooks-pattern */
253
+ background-color: var(
254
+ --slds-c-avatar-color-background,
255
+ var(--sds-c-icon-color-background, var(--sds-g-color-brand-base-50, #0176d3))
256
+ );
257
+ /* stylelint-enable sds-stylelint-plugin/styling-hooks-pattern */
258
+ }
259
+
260
+ :host([data-render-mode="shadow"]) .slds-avatar__initials[title] {
261
+ cursor: default;
262
+ text-decoration: none;
263
+ }
264
+
265
+ /* inverse is not currently supported by LBC */
266
+ :host([data-render-mode="shadow"]) .slds-avatar__initials_inverse {
267
+ --slds-c-avatar-text-color: var(--slds-c-avatar-inverse-text-color, var(--sds-g-color-neutral-base-30, #444444));
268
+
269
+ background-color: var(--sds-g-color-neutral-base-95, #f3f3f3);
270
+ text-shadow: none;
271
+ }
272
+ }
@@ -0,0 +1,3 @@
1
+ @import 'lightning/sldsCommon';
2
+ @import './pill.slds.css';
3
+ @import './avatar.slds.css';
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <span>
2
+ <span part="pill">
3
3
  <template if:false={_hasError}>
4
4
  <template if:true={_hasMedia}>
5
5
  <span class="slds-pill__icon_container">