@mhmo91/schmancy 0.5.29 → 0.5.31

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 (331) hide show
  1. package/ai/autocomplete.md +21 -22
  2. package/ai/option.md +1 -1
  3. package/dist/ai/autocomplete.md +21 -22
  4. package/dist/ai/option.md +1 -1
  5. package/dist/{animated-text-vdNivzdc.cjs → animated-text-BZUrBdvN.cjs} +2 -2
  6. package/dist/{animated-text-vdNivzdc.cjs.map → animated-text-BZUrBdvN.cjs.map} +1 -1
  7. package/dist/{animated-text-Bn8-ILmB.js → animated-text-COvhr8E3.js} +3 -3
  8. package/dist/{animated-text-Bn8-ILmB.js.map → animated-text-COvhr8E3.js.map} +1 -1
  9. package/dist/animated-text.cjs +1 -1
  10. package/dist/animated-text.js +1 -1
  11. package/dist/area.cjs +1 -1
  12. package/dist/{area.component-pd24G8zW.js → area.component-BHtBHWVt.js} +3 -3
  13. package/dist/{area.component-pd24G8zW.js.map → area.component-BHtBHWVt.js.map} +1 -1
  14. package/dist/{area.component-DwPL6bdo.cjs → area.component-Ch2Eaa4i.cjs} +2 -2
  15. package/dist/{area.component-DwPL6bdo.cjs.map → area.component-Ch2Eaa4i.cjs.map} +1 -1
  16. package/dist/area.js +1 -1
  17. package/dist/{autocomplete-CeB2VvCm.js → autocomplete-9RkU9LmA.js} +4 -4
  18. package/dist/{autocomplete-CeB2VvCm.js.map → autocomplete-9RkU9LmA.js.map} +1 -1
  19. package/dist/{autocomplete-ChRZ5y2p.cjs → autocomplete-CenwFcT1.cjs} +2 -2
  20. package/dist/{autocomplete-ChRZ5y2p.cjs.map → autocomplete-CenwFcT1.cjs.map} +1 -1
  21. package/dist/autocomplete.cjs +1 -1
  22. package/dist/autocomplete.js +1 -1
  23. package/dist/{avatar-B44Yq_7I.cjs → avatar-DVvQCuqb.cjs} +2 -2
  24. package/dist/{avatar-B44Yq_7I.cjs.map → avatar-DVvQCuqb.cjs.map} +1 -1
  25. package/dist/{avatar-ByCv3NzJ.js → avatar-vN5sPaPb.js} +50 -50
  26. package/dist/{avatar-ByCv3NzJ.js.map → avatar-vN5sPaPb.js.map} +1 -1
  27. package/dist/badge.cjs +1 -1
  28. package/dist/badge.js +1 -1
  29. package/dist/{boat-dSTPix8t.js → boat-CUsJXaLf.js} +2 -2
  30. package/dist/{boat-dSTPix8t.js.map → boat-CUsJXaLf.js.map} +1 -1
  31. package/dist/{boat-DNmaFlxD.cjs → boat-Dfx9-P8c.cjs} +2 -2
  32. package/dist/{boat-DNmaFlxD.cjs.map → boat-Dfx9-P8c.cjs.map} +1 -1
  33. package/dist/boat.cjs +1 -1
  34. package/dist/boat.js +1 -1
  35. package/dist/busy.cjs +1 -1
  36. package/dist/busy.js +1 -1
  37. package/dist/button.cjs +1 -1
  38. package/dist/button.js +1 -1
  39. package/dist/card.cjs +1 -1
  40. package/dist/card.js +1 -1
  41. package/dist/{checkbox-BJ5aqrKY.cjs → checkbox-8djp_8NK.cjs} +2 -2
  42. package/dist/{checkbox-BJ5aqrKY.cjs.map → checkbox-8djp_8NK.cjs.map} +1 -1
  43. package/dist/{checkbox-CU2tyEL0.js → checkbox-D6-WQeEk.js} +2 -2
  44. package/dist/{checkbox-CU2tyEL0.js.map → checkbox-D6-WQeEk.js.map} +1 -1
  45. package/dist/checkbox.cjs +1 -1
  46. package/dist/checkbox.js +1 -1
  47. package/dist/chips.cjs +1 -1
  48. package/dist/chips.js +2 -2
  49. package/dist/code-highlight.cjs +1 -1
  50. package/dist/code-highlight.js +1 -1
  51. package/dist/{code-preview-fda91FDi.cjs → code-preview-BFoEmN8y.cjs} +2 -2
  52. package/dist/{code-preview-fda91FDi.cjs.map → code-preview-BFoEmN8y.cjs.map} +1 -1
  53. package/dist/{code-preview-KDpn0Q3T.js → code-preview-Z02-2suM.js} +2 -2
  54. package/dist/{code-preview-KDpn0Q3T.js.map → code-preview-Z02-2suM.js.map} +1 -1
  55. package/dist/components.cjs +1 -1
  56. package/dist/components.js +1 -1
  57. package/dist/content-drawer.cjs +1 -1
  58. package/dist/content-drawer.js +1 -1
  59. package/dist/{date-range-0nOdLk-l.cjs → date-range-DoCtnpW6.cjs} +2 -2
  60. package/dist/{date-range-0nOdLk-l.cjs.map → date-range-DoCtnpW6.cjs.map} +1 -1
  61. package/dist/{date-range-inline-b0yYxPn_.js → date-range-inline-BXeX6T7R.js} +3 -3
  62. package/dist/{date-range-inline-b0yYxPn_.js.map → date-range-inline-BXeX6T7R.js.map} +1 -1
  63. package/dist/{date-range-inline-UoP6EDug.cjs → date-range-inline-DNr7C5X-.cjs} +2 -2
  64. package/dist/{date-range-inline-UoP6EDug.cjs.map → date-range-inline-DNr7C5X-.cjs.map} +1 -1
  65. package/dist/date-range-inline.cjs +1 -1
  66. package/dist/date-range-inline.js +1 -1
  67. package/dist/{date-range-yd-FnXRe.js → date-range-kFnTrnHN.js} +3 -3
  68. package/dist/{date-range-yd-FnXRe.js.map → date-range-kFnTrnHN.js.map} +1 -1
  69. package/dist/date-range.cjs +1 -1
  70. package/dist/date-range.js +1 -1
  71. package/dist/{delay-CaOsI0yP.cjs → delay-CrdOikhP.cjs} +2 -2
  72. package/dist/{delay-CaOsI0yP.cjs.map → delay-CrdOikhP.cjs.map} +1 -1
  73. package/dist/{delay-CE9VOJBG.js → delay-Cz-9rZxi.js} +2 -2
  74. package/dist/{delay-CE9VOJBG.js.map → delay-Cz-9rZxi.js.map} +1 -1
  75. package/dist/delay.cjs +1 -1
  76. package/dist/delay.js +1 -1
  77. package/dist/{details-B_kKG0Du.cjs → details-CsqhGMjL.cjs} +7 -7
  78. package/dist/details-CsqhGMjL.cjs.map +1 -0
  79. package/dist/{details-m-njXkGl.js → details-DeBtsJlp.js} +6 -6
  80. package/dist/details-DeBtsJlp.js.map +1 -0
  81. package/dist/details.cjs +1 -1
  82. package/dist/details.js +1 -1
  83. package/dist/{dialog-content-B5MUa6uq.cjs → dialog-content-BzSQoM2J.cjs} +2 -2
  84. package/dist/{dialog-content-B5MUa6uq.cjs.map → dialog-content-BzSQoM2J.cjs.map} +1 -1
  85. package/dist/{dialog-content-BireCTdH.js → dialog-content-DTKdAF_l.js} +3 -3
  86. package/dist/{dialog-content-BireCTdH.js.map → dialog-content-DTKdAF_l.js.map} +1 -1
  87. package/dist/dialog.cjs +1 -1
  88. package/dist/dialog.js +1 -1
  89. package/dist/{divider-CMaqpnia.js → divider-7iyyEd8k.js} +3 -3
  90. package/dist/{divider-CMaqpnia.js.map → divider-7iyyEd8k.js.map} +1 -1
  91. package/dist/{divider-DekMH80a.cjs → divider-CNxOc8ep.cjs} +2 -2
  92. package/dist/{divider-DekMH80a.cjs.map → divider-CNxOc8ep.cjs.map} +1 -1
  93. package/dist/divider.cjs +1 -1
  94. package/dist/divider.js +1 -1
  95. package/dist/{dropdown-content-eXth59vX.cjs → dropdown-content-De0OkNoq.cjs} +2 -2
  96. package/dist/{dropdown-content-eXth59vX.cjs.map → dropdown-content-De0OkNoq.cjs.map} +1 -1
  97. package/dist/{dropdown-content-CViuccZ6.js → dropdown-content-_GMpqsNq.js} +3 -3
  98. package/dist/{dropdown-content-CViuccZ6.js.map → dropdown-content-_GMpqsNq.js.map} +1 -1
  99. package/dist/dropdown.cjs +1 -1
  100. package/dist/dropdown.js +1 -1
  101. package/dist/{email-recipients-BSopuO1J.js → email-recipients-CPZlUiRR.js} +5 -5
  102. package/dist/{email-recipients-BSopuO1J.js.map → email-recipients-CPZlUiRR.js.map} +1 -1
  103. package/dist/{email-recipients-DNcWf4_1.cjs → email-recipients-DS01C3V3.cjs} +2 -2
  104. package/dist/{email-recipients-DNcWf4_1.cjs.map → email-recipients-DS01C3V3.cjs.map} +1 -1
  105. package/dist/extra.cjs +1 -1
  106. package/dist/extra.js +1 -1
  107. package/dist/{flex-Czj-zqJQ.js → flex-BeSoRNTu.js} +81 -66
  108. package/dist/flex-BeSoRNTu.js.map +1 -0
  109. package/dist/flex-CHf9Gc5V.cjs +42 -0
  110. package/dist/flex-CHf9Gc5V.cjs.map +1 -0
  111. package/dist/{form-CAvvBQiv.js → form-DNeKagke.js} +2 -2
  112. package/dist/{form-CAvvBQiv.js.map → form-DNeKagke.js.map} +1 -1
  113. package/dist/{form-OUNdJnUW.cjs → form-DzDksPgv.cjs} +2 -2
  114. package/dist/{form-OUNdJnUW.cjs.map → form-DzDksPgv.cjs.map} +1 -1
  115. package/dist/form.cjs +1 -1
  116. package/dist/form.js +1 -1
  117. package/dist/{formField.mixin-DlYLC82X.js → formField.mixin-BNj75WQ4.js} +2 -2
  118. package/dist/{formField.mixin-DlYLC82X.js.map → formField.mixin-BNj75WQ4.js.map} +1 -1
  119. package/dist/{formField.mixin-Bu0ygAbE.cjs → formField.mixin-D5YAYIS1.cjs} +2 -2
  120. package/dist/{formField.mixin-Bu0ygAbE.cjs.map → formField.mixin-D5YAYIS1.cjs.map} +1 -1
  121. package/dist/{icon-D0EaNtwd.js → icon-B72X_AQX.js} +2 -2
  122. package/dist/{icon-D0EaNtwd.js.map → icon-B72X_AQX.js.map} +1 -1
  123. package/dist/{icon-BwhQbcAk.cjs → icon-DbIBlAjy.cjs} +2 -2
  124. package/dist/{icon-BwhQbcAk.cjs.map → icon-DbIBlAjy.cjs.map} +1 -1
  125. package/dist/{icon-button-CGMdsmXS.js → icon-button-D6DH52j4.js} +3 -3
  126. package/dist/{icon-button-CGMdsmXS.js.map → icon-button-D6DH52j4.js.map} +1 -1
  127. package/dist/{icon-button-BrRSVzzx.cjs → icon-button-DwnnW2oj.cjs} +2 -2
  128. package/dist/{icon-button-BrRSVzzx.cjs.map → icon-button-DwnnW2oj.cjs.map} +1 -1
  129. package/dist/icons.cjs +1 -1
  130. package/dist/icons.js +1 -1
  131. package/dist/index.cjs +1 -1
  132. package/dist/index.js +49 -49
  133. package/dist/{input-lzxE1e5L.cjs → input-C2Vz-51i.cjs} +2 -2
  134. package/dist/{input-lzxE1e5L.cjs.map → input-C2Vz-51i.cjs.map} +1 -1
  135. package/dist/{input-DZYN1TnY.js → input-DtHPCCyd.js} +3 -3
  136. package/dist/{input-DZYN1TnY.js.map → input-DtHPCCyd.js.map} +1 -1
  137. package/dist/{input-chip-Cf25jEob.cjs → input-chip-B7ANrtLF.cjs} +2 -2
  138. package/dist/{input-chip-Cf25jEob.cjs.map → input-chip-B7ANrtLF.cjs.map} +1 -1
  139. package/dist/{input-chip-CNLkwei6.js → input-chip-DbIvSyvP.js} +2 -2
  140. package/dist/{input-chip-CNLkwei6.js.map → input-chip-DbIvSyvP.js.map} +1 -1
  141. package/dist/input.cjs +1 -1
  142. package/dist/input.js +1 -1
  143. package/dist/layout.cjs +1 -1
  144. package/dist/layout.js +1 -1
  145. package/dist/{list-Cqo45m_h.js → list-BBo0--_Q.js} +2 -2
  146. package/dist/{list-Cqo45m_h.js.map → list-BBo0--_Q.js.map} +1 -1
  147. package/dist/{list-rGx4YHgo.cjs → list-BH8OJ3Rv.cjs} +2 -2
  148. package/dist/{list-rGx4YHgo.cjs.map → list-BH8OJ3Rv.cjs.map} +1 -1
  149. package/dist/list.cjs +1 -1
  150. package/dist/list.js +1 -1
  151. package/dist/{litElement.mixin-B0Rsd4Km.js → litElement.mixin-CzF0mNQd.js} +2 -2
  152. package/dist/{litElement.mixin-B0Rsd4Km.js.map → litElement.mixin-CzF0mNQd.js.map} +1 -1
  153. package/dist/{litElement.mixin-DUiUa087.cjs → litElement.mixin-LplXbzd8.cjs} +2 -2
  154. package/dist/{litElement.mixin-DUiUa087.cjs.map → litElement.mixin-LplXbzd8.cjs.map} +1 -1
  155. package/dist/logo-dark.png +0 -0
  156. package/dist/mailbox.cjs +1 -1
  157. package/dist/mailbox.js +1 -1
  158. package/dist/{map-8DhybTup.cjs → map-C7lxYU4A.cjs} +2 -2
  159. package/dist/{map-8DhybTup.cjs.map → map-C7lxYU4A.cjs.map} +1 -1
  160. package/dist/{map-DWf43TA1.js → map-DeiCBxMP.js} +2 -2
  161. package/dist/{map-DWf43TA1.js.map → map-DeiCBxMP.js.map} +1 -1
  162. package/dist/map.cjs +1 -1
  163. package/dist/map.js +1 -1
  164. package/dist/{media-BVKgZzK_.js → media-CEnaqjig.js} +2 -2
  165. package/dist/{media-BVKgZzK_.js.map → media-CEnaqjig.js.map} +1 -1
  166. package/dist/{media-BZwiyJto.cjs → media-CsYVcfaX.cjs} +2 -2
  167. package/dist/{media-BZwiyJto.cjs.map → media-CsYVcfaX.cjs.map} +1 -1
  168. package/dist/{menu-D8qP_e7D.cjs → menu-Boqsyfmh.cjs} +2 -2
  169. package/dist/{menu-D8qP_e7D.cjs.map → menu-Boqsyfmh.cjs.map} +1 -1
  170. package/dist/{menu-CGaCEOer.js → menu-wtkHGlyc.js} +3 -3
  171. package/dist/{menu-CGaCEOer.js.map → menu-wtkHGlyc.js.map} +1 -1
  172. package/dist/menu.cjs +1 -1
  173. package/dist/menu.js +1 -1
  174. package/dist/nav-drawer.cjs +1 -1
  175. package/dist/nav-drawer.js +1 -1
  176. package/dist/navigation-bar.cjs +1 -1
  177. package/dist/navigation-bar.js +1 -1
  178. package/dist/navigation-rail-Bk9exaNK.js +237 -0
  179. package/dist/navigation-rail-Bk9exaNK.js.map +1 -0
  180. package/dist/navigation-rail-D_dDK8C4.cjs +78 -0
  181. package/dist/navigation-rail-D_dDK8C4.cjs.map +1 -0
  182. package/dist/navigation-rail.cjs +1 -1
  183. package/dist/navigation-rail.js +1 -1
  184. package/dist/{notification-service-DCmDSvc-.cjs → notification-service-9HXSKWcw.cjs} +2 -2
  185. package/dist/{notification-service-DCmDSvc-.cjs.map → notification-service-9HXSKWcw.cjs.map} +1 -1
  186. package/dist/{notification-service-Dv4oQi_Z.js → notification-service-ZiGUSd63.js} +4 -4
  187. package/dist/{notification-service-Dv4oQi_Z.js.map → notification-service-ZiGUSd63.js.map} +1 -1
  188. package/dist/notification.cjs +1 -1
  189. package/dist/notification.js +2 -2
  190. package/dist/{notify-COuaNTJP.js → notify-DbfX6Z2P.js} +2 -2
  191. package/dist/{notify-COuaNTJP.js.map → notify-DbfX6Z2P.js.map} +1 -1
  192. package/dist/{notify-XY2e8y_a.cjs → notify-W-NrP0cC.cjs} +2 -2
  193. package/dist/{notify-XY2e8y_a.cjs.map → notify-W-NrP0cC.cjs.map} +1 -1
  194. package/dist/{option-CSSmqUBi.js → option-BFlWiCu0.js} +2 -2
  195. package/dist/{option-CSSmqUBi.js.map → option-BFlWiCu0.js.map} +1 -1
  196. package/dist/{option-q-dig7LF.cjs → option-D2bxihLu.cjs} +2 -2
  197. package/dist/{option-q-dig7LF.cjs.map → option-D2bxihLu.cjs.map} +1 -1
  198. package/dist/option.cjs +1 -1
  199. package/dist/option.js +1 -1
  200. package/dist/{payment-card-form-C8bWa_hh.cjs → payment-card-form--v94EhJF.cjs} +2 -2
  201. package/dist/{payment-card-form-C8bWa_hh.cjs.map → payment-card-form--v94EhJF.cjs.map} +1 -1
  202. package/dist/{payment-card-form-CWboYwqO.js → payment-card-form-DLRNX9NX.js} +3 -3
  203. package/dist/{payment-card-form-CWboYwqO.js.map → payment-card-form-DLRNX9NX.js.map} +1 -1
  204. package/dist/{progress-Cci0dXzp.js → progress-BYohUvYO.js} +2 -2
  205. package/dist/{progress-Cci0dXzp.js.map → progress-BYohUvYO.js.map} +1 -1
  206. package/dist/{progress-CP2lpJsl.cjs → progress-CjkD8QBy.cjs} +2 -2
  207. package/dist/{progress-CP2lpJsl.cjs.map → progress-CjkD8QBy.cjs.map} +1 -1
  208. package/dist/progress.cjs +1 -1
  209. package/dist/progress.js +1 -1
  210. package/dist/{radio-button-DFbfVgox.js → radio-button-BlxeCjdq.js} +3 -3
  211. package/dist/{radio-button-DFbfVgox.js.map → radio-button-BlxeCjdq.js.map} +1 -1
  212. package/dist/{radio-button-CU-lMs92.cjs → radio-button-CGmGOAil.cjs} +2 -2
  213. package/dist/{radio-button-CU-lMs92.cjs.map → radio-button-CGmGOAil.cjs.map} +1 -1
  214. package/dist/radio-group.cjs +1 -1
  215. package/dist/radio-group.js +1 -1
  216. package/dist/{schmancy-steps-container-vW7r1ZTL.js → schmancy-steps-container-BtAHCm73.js} +2 -2
  217. package/dist/{schmancy-steps-container-vW7r1ZTL.js.map → schmancy-steps-container-BtAHCm73.js.map} +1 -1
  218. package/dist/{schmancy-steps-container-CQY1zmws.cjs → schmancy-steps-container-CydL78yk.cjs} +2 -2
  219. package/dist/{schmancy-steps-container-CQY1zmws.cjs.map → schmancy-steps-container-CydL78yk.cjs.map} +1 -1
  220. package/dist/{select-BkGodZaS.js → select-BiN334GN.js} +3 -3
  221. package/dist/{select-BkGodZaS.js.map → select-BiN334GN.js.map} +1 -1
  222. package/dist/{select-Be8HIqWu.cjs → select-CrB02cIO.cjs} +2 -2
  223. package/dist/{select-Be8HIqWu.cjs.map → select-CrB02cIO.cjs.map} +1 -1
  224. package/dist/select.cjs +1 -1
  225. package/dist/select.js +1 -1
  226. package/dist/{sheet-DECb9whB.js → sheet-DpJv4DRi.js} +3 -3
  227. package/dist/{sheet-DECb9whB.js.map → sheet-DpJv4DRi.js.map} +1 -1
  228. package/dist/{sheet-dK5UPVjp.cjs → sheet-sgVoRMi1.cjs} +2 -2
  229. package/dist/{sheet-dK5UPVjp.cjs.map → sheet-sgVoRMi1.cjs.map} +1 -1
  230. package/dist/sheet.cjs +1 -1
  231. package/dist/sheet.js +1 -1
  232. package/dist/{slider-BhFc1oRj.js → slider-D7qdxfvX.js} +3 -3
  233. package/dist/{slider-BhFc1oRj.js.map → slider-D7qdxfvX.js.map} +1 -1
  234. package/dist/{slider-CP3JRaWR.cjs → slider-Dd1L6oYm.cjs} +2 -2
  235. package/dist/{slider-CP3JRaWR.cjs.map → slider-Dd1L6oYm.cjs.map} +1 -1
  236. package/dist/slider.cjs +1 -1
  237. package/dist/slider.js +1 -1
  238. package/dist/{spinner-BD8cXVK_.cjs → spinner-CaXU45TV.cjs} +2 -2
  239. package/dist/{spinner-BD8cXVK_.cjs.map → spinner-CaXU45TV.cjs.map} +1 -1
  240. package/dist/{spinner-DGyRYqUZ.js → spinner-XN4W5ihQ.js} +2 -2
  241. package/dist/{spinner-DGyRYqUZ.js.map → spinner-XN4W5ihQ.js.map} +1 -1
  242. package/dist/steps.cjs +1 -1
  243. package/dist/steps.js +1 -1
  244. package/dist/{suggestion-chip-CASXKYnD.js → suggestion-chip-CdhoATv9.js} +3 -3
  245. package/dist/{suggestion-chip-CASXKYnD.js.map → suggestion-chip-CdhoATv9.js.map} +1 -1
  246. package/dist/{suggestion-chip-BPCzI7GW.cjs → suggestion-chip-PI24Hc3s.cjs} +2 -2
  247. package/dist/{suggestion-chip-BPCzI7GW.cjs.map → suggestion-chip-PI24Hc3s.cjs.map} +1 -1
  248. package/dist/{surface-ClIDhSRv.cjs → surface-Ax6I7ldp.cjs} +2 -2
  249. package/dist/{surface-ClIDhSRv.cjs.map → surface-Ax6I7ldp.cjs.map} +1 -1
  250. package/dist/{surface-C3V23wh9.js → surface-CKrYJ58l.js} +2 -2
  251. package/dist/{surface-C3V23wh9.js.map → surface-CKrYJ58l.js.map} +1 -1
  252. package/dist/surface.cjs +1 -1
  253. package/dist/surface.js +1 -1
  254. package/dist/{table-1New2HBS.cjs → table-BlwUyf_4.cjs} +2 -2
  255. package/dist/{table-1New2HBS.cjs.map → table-BlwUyf_4.cjs.map} +1 -1
  256. package/dist/{table-CLA3cxIk.js → table-CP6_NkPm.js} +2 -2
  257. package/dist/{table-CLA3cxIk.js.map → table-CP6_NkPm.js.map} +1 -1
  258. package/dist/table.cjs +1 -1
  259. package/dist/table.js +1 -1
  260. package/dist/{tabs-compatibility-RMzYuSJ1.js → tabs-compatibility-7QKuXX4i.js} +2 -2
  261. package/dist/{tabs-compatibility-RMzYuSJ1.js.map → tabs-compatibility-7QKuXX4i.js.map} +1 -1
  262. package/dist/{tabs-compatibility-DDtYFCUj.cjs → tabs-compatibility-CX0cIu_Y.cjs} +2 -2
  263. package/dist/{tabs-compatibility-DDtYFCUj.cjs.map → tabs-compatibility-CX0cIu_Y.cjs.map} +1 -1
  264. package/dist/tabs.cjs +1 -1
  265. package/dist/tabs.js +1 -1
  266. package/dist/tailwind.mixin-BjDGMGbj.js +43 -0
  267. package/dist/{tailwind.mixin-CZKT1dUr.js.map → tailwind.mixin-BjDGMGbj.js.map} +1 -1
  268. package/dist/tailwind.mixin-ClfV2_Nh.cjs +2 -0
  269. package/dist/{tailwind.mixin-CFrLBtkD.cjs.map → tailwind.mixin-ClfV2_Nh.cjs.map} +1 -1
  270. package/dist/teleport.cjs +1 -1
  271. package/dist/teleport.js +1 -1
  272. package/dist/{textarea-B4DXG5Sg.js → textarea-DHrDn-O6.js} +2 -2
  273. package/dist/{textarea-B4DXG5Sg.js.map → textarea-DHrDn-O6.js.map} +1 -1
  274. package/dist/{textarea-ChDsPBZz.cjs → textarea-qLA0vP78.cjs} +2 -2
  275. package/dist/{textarea-ChDsPBZz.cjs.map → textarea-qLA0vP78.cjs.map} +1 -1
  276. package/dist/textarea.cjs +1 -1
  277. package/dist/textarea.js +1 -1
  278. package/dist/{theme-button-DGjG_shg.js → theme-button-BEUsbH5m.js} +2 -2
  279. package/dist/{theme-button-DGjG_shg.js.map → theme-button-BEUsbH5m.js.map} +1 -1
  280. package/dist/{theme-button-qzDX0i9Q.cjs → theme-button-D7fBEUGf.cjs} +2 -2
  281. package/dist/{theme-button-qzDX0i9Q.cjs.map → theme-button-D7fBEUGf.cjs.map} +1 -1
  282. package/dist/theme-button.cjs +1 -1
  283. package/dist/theme-button.js +1 -1
  284. package/dist/theme.cjs +1 -1
  285. package/dist/{theme.component-C3r_-QqQ.js → theme.component-ByGua01V.js} +2 -2
  286. package/dist/{theme.component-C3r_-QqQ.js.map → theme.component-ByGua01V.js.map} +1 -1
  287. package/dist/{theme.component-Blc_4wu9.cjs → theme.component-CQ1trrZB.cjs} +2 -2
  288. package/dist/{theme.component-Blc_4wu9.cjs.map → theme.component-CQ1trrZB.cjs.map} +1 -1
  289. package/dist/theme.js +1 -1
  290. package/dist/{timezone-BkE20wzQ.js → timezone-BpDMR26D.js} +3 -3
  291. package/dist/{timezone-BkE20wzQ.js.map → timezone-BpDMR26D.js.map} +1 -1
  292. package/dist/{timezone-wWfEuXrb.cjs → timezone-Bw4EXBt7.cjs} +2 -2
  293. package/dist/{timezone-wWfEuXrb.cjs.map → timezone-Bw4EXBt7.cjs.map} +1 -1
  294. package/dist/{tooltip-UtpbXzQX.js → tooltip-B1jynZOH.js} +2 -2
  295. package/dist/{tooltip-UtpbXzQX.js.map → tooltip-B1jynZOH.js.map} +1 -1
  296. package/dist/{tooltip-DLadXXnP.cjs → tooltip-Dhs4HL3A.cjs} +2 -2
  297. package/dist/{tooltip-DLadXXnP.cjs.map → tooltip-Dhs4HL3A.cjs.map} +1 -1
  298. package/dist/tooltip.cjs +1 -1
  299. package/dist/tooltip.js +1 -1
  300. package/dist/{tree-VkXtw2P8.js → tree-BH1qCJ_U.js} +2 -2
  301. package/dist/{tree-VkXtw2P8.js.map → tree-BH1qCJ_U.js.map} +1 -1
  302. package/dist/{tree-Brtho3Eu.cjs → tree-D-ezei_U.cjs} +2 -2
  303. package/dist/{tree-Brtho3Eu.cjs.map → tree-D-ezei_U.cjs.map} +1 -1
  304. package/dist/tree.cjs +1 -1
  305. package/dist/tree.js +1 -1
  306. package/dist/{typewriter-CEgaw_pR.cjs → typewriter-CtPh4Pyj.cjs} +2 -2
  307. package/dist/{typewriter-CEgaw_pR.cjs.map → typewriter-CtPh4Pyj.cjs.map} +1 -1
  308. package/dist/{typewriter-CsReDsYS.js → typewriter-DQbpNPtY.js} +4 -4
  309. package/dist/{typewriter-CsReDsYS.js.map → typewriter-DQbpNPtY.js.map} +1 -1
  310. package/dist/typewriter.cjs +1 -1
  311. package/dist/typewriter.js +1 -1
  312. package/dist/{typography-NurK7F-8.cjs → typography-BrIaOYmC.cjs} +2 -2
  313. package/dist/{typography-NurK7F-8.cjs.map → typography-BrIaOYmC.cjs.map} +1 -1
  314. package/dist/{typography-D_bM5DW7.js → typography-D71cmr0R.js} +2 -2
  315. package/dist/{typography-D_bM5DW7.js.map → typography-D71cmr0R.js.map} +1 -1
  316. package/dist/typography.cjs +1 -1
  317. package/dist/typography.js +1 -1
  318. package/package.json +1 -1
  319. package/types/src/layout/scroll/scroll.d.ts +5 -0
  320. package/types/src/navigation-rail/navigation-rail.d.ts +17 -0
  321. package/dist/details-B_kKG0Du.cjs.map +0 -1
  322. package/dist/details-m-njXkGl.js.map +0 -1
  323. package/dist/flex-CE0IKjR4.cjs +0 -36
  324. package/dist/flex-CE0IKjR4.cjs.map +0 -1
  325. package/dist/flex-Czj-zqJQ.js.map +0 -1
  326. package/dist/navigation-rail-BzMOzaFm.cjs +0 -453
  327. package/dist/navigation-rail-BzMOzaFm.cjs.map +0 -1
  328. package/dist/navigation-rail-CjBw96pi.js +0 -602
  329. package/dist/navigation-rail-CjBw96pi.js.map +0 -1
  330. package/dist/tailwind.mixin-CFrLBtkD.cjs +0 -2
  331. package/dist/tailwind.mixin-CZKT1dUr.js +0 -43
@@ -1,602 +0,0 @@
1
- import { BehaviorSubject as y, merge as g, fromEvent as u, takeUntil as m } from "rxjs";
2
- import "lit/directives/class-map.js";
3
- import "lit/directives/style-map.js";
4
- import { property as s, state as x, customElement as f, queryAssignedElements as $ } from "lit/decorators.js";
5
- import "./tailwind.mixin-CZKT1dUr.js";
6
- import { $ as w } from "./litElement.mixin-B0Rsd4Km.js";
7
- import { css as k, html as c } from "lit";
8
- import { when as v } from "lit/directives/when.js";
9
- import { tap as d, delay as I, distinctUntilChanged as A } from "rxjs/operators";
10
- var V = Object.defineProperty, z = Object.getOwnPropertyDescriptor, r = (t, e, i, a) => {
11
- for (var h, o = a > 1 ? void 0 : a ? z(e, i) : e, b = t.length - 1; b >= 0; b--) (h = t[b]) && (o = (a ? h(e, i, o) : h(o)) || o);
12
- return a && o && V(e, i, o), o;
13
- };
14
- let n = class extends w(k`
15
- :host {
16
- display: block;
17
- position: relative;
18
- outline: none;
19
- --rail-item-height: 56px;
20
- --rail-item-icon-size: 24px;
21
- --rail-item-show-label: block;
22
- }
23
-
24
- .container {
25
- display: flex;
26
- flex-direction: column;
27
- align-items: center;
28
- justify-content: center;
29
- min-height: var(--rail-item-height);
30
- width: 100%;
31
- /* M3 shape: large for navigation rail items */
32
- border-radius: var(--schmancy-sys-shape-corner-large);
33
- cursor: pointer;
34
- position: relative;
35
- box-sizing: border-box;
36
- color: var(--schmancy-sys-color-surface-onVariant);
37
- user-select: none;
38
- transition: all var(--schmancy-sys-motion-duration-short3) var(--schmancy-sys-motion-easing-emphasized);
39
- padding: 12px 0;
40
- gap: 4px;
41
- }
42
-
43
- /* Hover state */
44
- .container:hover {
45
- background-color: var(--schmancy-sys-color-surface-highest);
46
- }
47
-
48
- /* Focus state */
49
- :host(:focus-visible) .container {
50
- outline: 2px solid var(--schmancy-sys-color-primary-default);
51
- outline-offset: 2px;
52
- }
53
-
54
- /* Active indicator - positioned behind icon only */
55
- .icon-container {
56
- position: relative;
57
- }
58
-
59
- .indicator {
60
- position: absolute;
61
- top: 50%;
62
- left: 50%;
63
- transform: translate(-50%, -50%) scale(0);
64
- width: 56px;
65
- height: 32px;
66
- /* M3 shape: large for active indicators */
67
- border-radius: var(--schmancy-sys-shape-corner-large);
68
- background-color: var(--schmancy-sys-color-secondary-container);
69
- transition: transform var(--schmancy-sys-motion-duration-short3) var(--schmancy-sys-motion-easing-emphasized);
70
- z-index: 0;
71
- }
72
-
73
- :host([active]) .indicator,
74
- :host([selected]) .indicator {
75
- transform: translate(-50%, -50%) scale(1);
76
- }
77
-
78
- :host([active]) .container,
79
- :host([selected]) .container {
80
- color: var(--schmancy-sys-color-secondary-onContainer);
81
- }
82
-
83
-
84
- /* Icon styles */
85
- .icon-container {
86
- display: flex;
87
- align-items: center;
88
- justify-content: center;
89
- width: auto;
90
- min-width: 56px;
91
- height: 32px;
92
- flex-shrink: 0;
93
- position: relative;
94
- z-index: 1;
95
- }
96
-
97
- .icon {
98
- font-family: 'Material Symbols Outlined';
99
- font-size: var(--rail-item-icon-size);
100
- line-height: 1;
101
- position: relative;
102
- z-index: 1;
103
- font-variation-settings:
104
- 'FILL' 0,
105
- 'wght' 400,
106
- 'GRAD' 0,
107
- 'opsz' 24;
108
- }
109
-
110
- :host([active]) .icon,
111
- :host([selected]) .icon {
112
- font-variation-settings:
113
- 'FILL' 1,
114
- 'wght' 400,
115
- 'GRAD' 0,
116
- 'opsz' 24;
117
- }
118
-
119
- /* Label styles */
120
- .label {
121
- font-size: 12px;
122
- font-weight: 500;
123
- line-height: 16px;
124
- text-align: center;
125
- overflow: hidden;
126
- text-overflow: ellipsis;
127
- white-space: nowrap;
128
- z-index: 1;
129
- display: var(--rail-item-show-label, block);
130
- max-width: 56px;
131
- padding: 0 4px;
132
- }
133
-
134
-
135
- /* Badge styles */
136
- .badge {
137
- position: absolute;
138
- top: 8px;
139
- right: 12px;
140
- min-width: 16px;
141
- height: 16px;
142
- /* M3 shape: small for badges */
143
- border-radius: var(--schmancy-sys-shape-corner-small);
144
- background-color: var(--schmancy-sys-color-error-default);
145
- color: var(--schmancy-sys-color-error-on);
146
- font-size: 11px;
147
- font-weight: 600;
148
- display: flex;
149
- align-items: center;
150
- justify-content: center;
151
- padding: 0 4px;
152
- box-sizing: border-box;
153
- z-index: 2;
154
- animation: badge-pulse 2s infinite;
155
- }
156
-
157
- @keyframes badge-pulse {
158
- 0%, 100% { transform: scale(1); }
159
- 50% { transform: scale(1.1); }
160
- }
161
-
162
- /* Nested items (for sub-navigation) */
163
- :host([nested]) {
164
- --rail-item-height: 48px;
165
- --rail-item-icon-size: 20px;
166
- }
167
-
168
- :host([nested]) .container {
169
- padding-left: 32px;
170
- }
171
-
172
- /* Disabled state */
173
- :host([disabled]) {
174
- pointer-events: none;
175
- opacity: 0.38;
176
- }
177
-
178
- /* Ripple effect with M3 motion */
179
- .ripple {
180
- position: absolute;
181
- top: 0;
182
- left: 0;
183
- right: 0;
184
- bottom: 0;
185
- border-radius: inherit;
186
- overflow: hidden;
187
- z-index: 0;
188
- }
189
-
190
- .ripple::before {
191
- content: '';
192
- position: absolute;
193
- top: 50%;
194
- left: 50%;
195
- width: 0;
196
- height: 0;
197
- border-radius: 50%;
198
- background: currentColor;
199
- opacity: 0;
200
- transform: translate(-50%, -50%);
201
- /* M3 motion: medium duration for ripple effect */
202
- transition: width var(--schmancy-sys-motion-duration-medium2), height var(--schmancy-sys-motion-duration-medium2), opacity var(--schmancy-sys-motion-duration-medium2);
203
- }
204
-
205
- :host(:active) .ripple::before {
206
- width: 200%;
207
- height: 200%;
208
- /* M3 pressed state opacity */
209
- opacity: var(--schmancy-sys-state-pressed-opacity);
210
- }
211
-
212
- /* Tooltip styles (shown via title attribute) */
213
- :host([title]:hover)::after {
214
- content: attr(title);
215
- position: absolute;
216
- left: calc(100% + 8px);
217
- top: 50%;
218
- transform: translateY(-50%);
219
- background: var(--schmancy-sys-color-inverseSurface);
220
- color: var(--schmancy-sys-color-inverseOnSurface);
221
- padding: 4px 8px;
222
- /* M3 shape: extra small for tooltips */
223
- border-radius: var(--schmancy-sys-shape-corner-extraSmall);
224
- font-size: 12px;
225
- white-space: nowrap;
226
- z-index: 1000;
227
- pointer-events: none;
228
- animation: tooltip-fade-in var(--schmancy-sys-motion-duration-short3) var(--schmancy-sys-motion-easing-standard);
229
- }
230
-
231
- @keyframes tooltip-fade-in {
232
- from {
233
- opacity: 0;
234
- transform: translateY(-50%) translateX(-4px);
235
- }
236
- to {
237
- opacity: 1;
238
- transform: translateY(-50%) translateX(0);
239
- }
240
- }
241
-
242
- /* Group item styles */
243
- :host([group]) {
244
- margin-bottom: 8px;
245
- }
246
-
247
- :host([group])::after {
248
- content: '';
249
- position: absolute;
250
- bottom: -4px;
251
- left: 12px;
252
- right: 12px;
253
- height: 1px;
254
- background: var(--schmancy-sys-color-outlineVariant);
255
- opacity: 0.12;
256
- }
257
- `) {
258
- constructor() {
259
- super(...arguments), this.hovering$ = new y(!1), this.pressing$ = new y(!1), this.active$ = new y(!1), this.icon = "", this.label = "", this.value = "", this.badge = "", this.badgeVariant = "error", this.showLabel = !1, this.disabled = !1, this.nested = !1, this.group = !1, this.showRipple = !1;
260
- }
261
- get active() {
262
- return this.active$.value;
263
- }
264
- set active(t) {
265
- this.active$.next(t);
266
- }
267
- get selected() {
268
- return this.active;
269
- }
270
- set selected(t) {
271
- this.active = t;
272
- }
273
- connectedCallback() {
274
- super.connectedCallback(), g(u(this, "mouseenter").pipe(d(() => this.hovering$.next(!0))), u(this, "mouseleave").pipe(d(() => this.hovering$.next(!1)))).pipe(m(this.disconnecting)).subscribe(), g(u(this, "mousedown").pipe(d(() => this.pressing$.next(!0))), u(this, "mouseup").pipe(d(() => this.pressing$.next(!1))), u(this, "mouseleave").pipe(d(() => this.pressing$.next(!1)))).pipe(m(this.disconnecting)).subscribe(), this.pressing$.pipe(d((t) => {
275
- t && !this.disabled && (this.showRipple = !0);
276
- }), I(600), d(() => this.showRipple = !1), m(this.disconnecting)).subscribe(), this.active$.pipe(A(), d((t) => {
277
- this.requestUpdate(), this.setAttribute("aria-selected", String(t)), this.setAttribute("tabindex", t ? "0" : "-1");
278
- }), m(this.disconnecting)).subscribe(), this.setAttribute("role", "listitem"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", this.active ? "0" : "-1");
279
- }
280
- updated(t) {
281
- super.updated(t), t.has("disabled") && this.setAttribute("aria-disabled", String(this.disabled)), t.has("label") && this.setAttribute("aria-label", this.label);
282
- }
283
- handleClick(t) {
284
- if (this.disabled) return t.preventDefault(), void t.stopPropagation();
285
- this.dispatchEvent(new CustomEvent("navigate", { detail: this.value || this.label, bubbles: !0, composed: !0 }));
286
- }
287
- handleKeyDown(t) {
288
- this.disabled || t.key !== "Enter" && t.key !== " " || (t.preventDefault(), this.click());
289
- }
290
- render() {
291
- const t = this.querySelector('[slot="icon"]'), e = this.querySelector(":not([slot])"), i = this.querySelector('[slot="badge"]'), a = { container: !0, rippling: this.showRipple }, h = { "background-color": `var(--schmancy-sys-color-${this.badgeVariant}-default)`, color: `var(--schmancy-sys-color-${this.badgeVariant}-on)` };
292
- return c`
293
- <div
294
- class=${this.classMap(a)}
295
- part="container"
296
- @click=${this.handleClick}
297
- @keydown=${this.handleKeyDown}
298
- >
299
- <span class="ripple" aria-hidden="true"></span>
300
-
301
- ${v(e, () => c`<slot></slot>`, () => c`
302
- <div class="icon-container" part="icon">
303
- <span class="indicator" part="indicator" aria-hidden="true"></span>
304
- ${v(t, () => c`<slot name="icon"></slot>`, () => v(this.icon, () => c`<span class="icon">${this.icon}</span>`))}
305
- </div>
306
-
307
- ${v(this.label, () => c`<span class="label" part="label">${this.label}</span>`)}
308
- `)}
309
-
310
- ${v(this.badge, () => c`
311
- ${v(i, () => c`<slot name="badge"></slot>`, () => c`
312
- <span
313
- class="badge"
314
- part="badge"
315
- style=${this.styleMap(h)}
316
- aria-label="${this.badge} notifications"
317
- >
318
- ${this.badge}
319
- </span>
320
- `)}
321
- `)}
322
- </div>
323
- `;
324
- }
325
- };
326
- r([s({ type: String })], n.prototype, "icon", 2), r([s({ type: String })], n.prototype, "label", 2), r([s({ type: String })], n.prototype, "value", 2), r([s({ type: Boolean, reflect: !0 })], n.prototype, "active", 1), r([s({ type: Boolean, reflect: !0 })], n.prototype, "selected", 1), r([s({ type: String })], n.prototype, "badge", 2), r([s({ type: String })], n.prototype, "badgeVariant", 2), r([s({ type: Boolean, attribute: "show-label" })], n.prototype, "showLabel", 2), r([s({ type: Boolean, reflect: !0 })], n.prototype, "disabled", 2), r([s({ type: Boolean, reflect: !0 })], n.prototype, "nested", 2), r([s({ type: Boolean, reflect: !0 })], n.prototype, "group", 2), r([x()], n.prototype, "showRipple", 2), n = r([f("schmancy-navigation-rail-item")], n);
327
- var S = Object.defineProperty, C = Object.getOwnPropertyDescriptor, p = (t, e, i, a) => {
328
- for (var h, o = a > 1 ? void 0 : a ? C(e, i) : e, b = t.length - 1; b >= 0; b--) (h = t[b]) && (o = (a ? h(e, i, o) : h(o)) || o);
329
- return a && o && S(e, i, o), o;
330
- };
331
- let l = class extends w(k`
332
- :host {
333
- display: flex;
334
- flex-direction: column;
335
- width: 80px; /* Fixed width - never changes to prevent layout shift */
336
- height: 100%;
337
- box-sizing: border-box;
338
- position: relative;
339
- overflow: visible;
340
- z-index: 1; /* Base z-index */
341
- }
342
-
343
- /* Hover state: elevate and show expanded content */
344
- :host(:hover) {
345
- z-index: 100; /* Higher z-index to overlay content */
346
- }
347
-
348
- /* Rail container - this is what expands */
349
- .rail {
350
- display: flex;
351
- flex-direction: column;
352
- height: 100%;
353
- width: 80px; /* Base width */
354
- padding: 8px 12px;
355
- gap: 4px;
356
- box-sizing: border-box;
357
- background-color: var(--schmancy-sys-color-surface-default);
358
- color: var(--schmancy-sys-color-surface-on);
359
- position: relative;
360
- /* M3 motion: smooth transition for width and shadow */
361
- transition:
362
- width 300ms cubic-bezier(0.2, 0, 0, 1),
363
- box-shadow 300ms cubic-bezier(0.2, 0, 0, 1);
364
- }
365
-
366
- /* Hover state: expand rail with shadow to show overlay */
367
- :host(:hover) .rail {
368
- width: 240px;
369
- /* M3 elevation 3 shadow for overlay effect */
370
- box-shadow:
371
- 0px 6px 10px 0px rgba(0, 0, 0, 0.14),
372
- 0px 1px 18px 0px rgba(0, 0, 0, 0.12),
373
- 0px 3px 5px -1px rgba(0, 0, 0, 0.2);
374
- }
375
-
376
- /* Force label visibility when hovered */
377
- :host(:hover) ::slotted(schmancy-navigation-rail-item) {
378
- --rail-item-show-label: flex !important;
379
- }
380
-
381
- /* Header section */
382
- .header {
383
- display: flex;
384
- flex-direction: column;
385
- align-items: center;
386
- gap: 4px;
387
- margin-bottom: 8px;
388
- }
389
-
390
- /* Navigation container */
391
- .nav {
392
- flex: 1;
393
- display: flex;
394
- flex-direction: column;
395
- gap: 4px;
396
- overflow-y: auto;
397
- overflow-x: hidden;
398
- scrollbar-width: thin;
399
- scrollbar-color: var(--schmancy-sys-color-outlineVariant) transparent;
400
- }
401
-
402
- .nav::-webkit-scrollbar {
403
- width: 4px;
404
- }
405
-
406
- .nav::-webkit-scrollbar-track {
407
- background: transparent;
408
- }
409
-
410
- .nav::-webkit-scrollbar-thumb {
411
- background-color: var(--schmancy-sys-color-outlineVariant);
412
- border-radius: 2px;
413
- opacity: 0.5;
414
- }
415
-
416
- /* Footer section */
417
- .footer {
418
- display: flex;
419
- flex-direction: column;
420
- align-items: center;
421
- gap: 4px;
422
- margin-top: auto;
423
- padding-top: 8px;
424
- }
425
-
426
- /* FAB styles */
427
- ::slotted([slot='fab']) {
428
- margin-bottom: 8px;
429
- }
430
-
431
- /* Menu button styles */
432
- ::slotted([slot='menu']) {
433
- margin-bottom: 12px;
434
- }
435
-
436
- /* Alignment variants */
437
- :host([alignment='top']) .nav {
438
- justify-content: flex-start;
439
- }
440
-
441
- :host([alignment='center']) .nav {
442
- justify-content: center;
443
- }
444
-
445
- :host([alignment='bottom']) .nav {
446
- justify-content: flex-end;
447
- }
448
-
449
- /* Label visibility states */
450
- :host([label-visibility='none']) ::slotted(schmancy-navigation-rail-item) {
451
- --rail-item-show-label: none;
452
- }
453
-
454
- :host([label-visibility='selected']) ::slotted(schmancy-navigation-rail-item:not([active])) {
455
- --rail-item-show-label: none;
456
- }
457
-
458
- /* Group header styles */
459
- ::slotted(.group-header) {
460
- padding: 8px 12px;
461
- font-size: 12px;
462
- font-weight: 500;
463
- color: var(--schmancy-sys-color-outline);
464
- text-transform: uppercase;
465
- letter-spacing: 0.1em;
466
- white-space: nowrap;
467
- overflow: hidden;
468
- text-overflow: ellipsis;
469
- }
470
-
471
- /* Divider styles */
472
- ::slotted(schmancy-divider) {
473
- margin: 8px 0;
474
- }
475
-
476
- /* Responsive behavior */
477
- @media (max-width: 768px) {
478
- :host {
479
- width: 56px; /* Smaller fixed width on mobile */
480
- }
481
-
482
- .rail {
483
- width: 56px; /* Match host width */
484
- padding: 8px;
485
- }
486
-
487
- /* On mobile, expand to a smaller width */
488
- :host(:hover) .rail {
489
- width: 200px;
490
- }
491
- }
492
- `) {
493
- constructor() {
494
- super(...arguments), this.activeIndex$ = new y(-1), this._activeValue = "", this.labelVisibility = "all", this.alignment = "top", this.showTooltips = !0, this.keyboardNavigation = !0, this.focusedIndex = -1;
495
- }
496
- get activeIndex() {
497
- return this.activeIndex$.value;
498
- }
499
- set activeIndex(t) {
500
- this.activeIndex$.next(t);
501
- }
502
- get activeValue() {
503
- return this._activeValue;
504
- }
505
- set activeValue(t) {
506
- this._activeValue = t, this.updateActiveByValue(t);
507
- }
508
- get navigationItems() {
509
- return this.allElements.filter((t) => t.tagName === "SCHMANCY-NAVIGATION-RAIL-ITEM");
510
- }
511
- connectedCallback() {
512
- super.connectedCallback(), this.keyboardNavigation && this.addEventListener("keydown", this.handleKeyDown), this.activeIndex$.pipe(A(), d((t) => this.updateActiveStates(t)), m(this.disconnecting)).subscribe(), this.setupNavigateListener(), this.updateLabelVisibility(), this.setAttribute("role", "navigation"), this.setAttribute("aria-label", "Main navigation");
513
- }
514
- updated(t) {
515
- super.updated(t), t.has("labelVisibility") && this.updateLabelVisibility(), t.has("activeValue") && this.updateActiveByValue(this.activeValue);
516
- }
517
- updateActiveStates(t) {
518
- this.navigationItems.forEach((e, i) => {
519
- const a = i === t;
520
- e.active = a, e.setAttribute("aria-selected", String(a)), e.setAttribute("tabindex", a ? "0" : "-1"), a && (this._activeValue = e.value || e.label || "");
521
- });
522
- }
523
- updateActiveByValue(t) {
524
- const e = this.navigationItems.findIndex((i) => i.getAttribute("value") === t || i.label === t);
525
- e >= 0 && (this.activeIndex = e);
526
- }
527
- updateLabelVisibility() {
528
- this.navigationItems.forEach((t, e) => {
529
- const i = this.labelVisibility === "all" || this.labelVisibility === "selected" && e === this.activeIndex;
530
- t.showLabel = i, this.showTooltips && !i && t.label ? t.setAttribute("title", t.label) : t.removeAttribute("title");
531
- });
532
- }
533
- handleKeyDown(t) {
534
- const e = this.navigationItems;
535
- if (e.length === 0) return;
536
- let i = this.focusedIndex >= 0 ? this.focusedIndex : this.activeIndex;
537
- switch (t.key) {
538
- case "ArrowDown":
539
- t.preventDefault(), i = (i + 1) % e.length;
540
- break;
541
- case "ArrowUp":
542
- t.preventDefault(), i = i <= 0 ? e.length - 1 : i - 1;
543
- break;
544
- case "Home":
545
- t.preventDefault(), i = 0;
546
- break;
547
- case "End":
548
- t.preventDefault(), i = e.length - 1;
549
- break;
550
- case "Enter":
551
- case " ":
552
- return t.preventDefault(), void (i >= 0 && e[i].click());
553
- default:
554
- return;
555
- }
556
- this.focusedIndex = i, e[i].focus();
557
- }
558
- handleFabClick(t) {
559
- t.stopPropagation(), this.dispatchEvent(new CustomEvent("fab-click", { bubbles: !0, composed: !0 }));
560
- }
561
- handleMenuClick(t) {
562
- t.stopPropagation(), this.dispatchEvent(new CustomEvent("menu-click", { bubbles: !0, composed: !0 }));
563
- }
564
- render() {
565
- return c`
566
- <div class="rail" part="rail">
567
- <div class="header" part="header">
568
- <slot name="fab" @click=${this.handleFabClick}></slot>
569
- <slot name="menu" @click=${this.handleMenuClick}></slot>
570
- <slot name="header"></slot>
571
- </div>
572
-
573
- <nav class="nav" part="nav" role="list">
574
- <slot @slotchange=${this.handleSlotChange}></slot>
575
- </nav>
576
-
577
- <div class="footer" part="footer">
578
- <slot name="footer"></slot>
579
- </div>
580
- </div>
581
- `;
582
- }
583
- setupNavigateListener() {
584
- this.addEventListener("navigate", (t) => {
585
- if (t instanceof CustomEvent) {
586
- const e = t.detail, i = this.navigationItems.findIndex((a) => a.value === e || a.label === e);
587
- i >= 0 && (this.activeIndex = i, this._activeValue = e);
588
- }
589
- });
590
- }
591
- handleSlotChange() {
592
- this.updateLabelVisibility(), this.updateActiveStates(this.activeIndex), this.navigationItems.forEach((t, e) => {
593
- t.setAttribute("role", "listitem"), t.hasAttribute("tabindex") || t.setAttribute("tabindex", e === this.activeIndex ? "0" : "-1");
594
- });
595
- }
596
- };
597
- p([s({ type: Number })], l.prototype, "activeIndex", 1), p([s({ type: String })], l.prototype, "activeValue", 1), p([s({ type: String, attribute: "label-visibility", reflect: !0 })], l.prototype, "labelVisibility", 2), p([s({ type: String, reflect: !0 })], l.prototype, "alignment", 2), p([s({ type: Boolean })], l.prototype, "showTooltips", 2), p([s({ type: Boolean })], l.prototype, "keyboardNavigation", 2), p([x()], l.prototype, "focusedIndex", 2), p([$({ flatten: !0 })], l.prototype, "allElements", 2), l = p([f("schmancy-navigation-rail")], l);
598
- export {
599
- n as S,
600
- l as a
601
- };
602
- //# sourceMappingURL=navigation-rail-CjBw96pi.js.map