@mgdis/mg-components 5.17.0 → 5.19.0

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 (348) hide show
  1. package/dist/cjs/{mg-menu.conf-43aacf30.js → components.utils-dc9c8a53.js} +160 -7
  2. package/dist/cjs/components.utils-dc9c8a53.js.map +1 -0
  3. package/dist/cjs/index-c042e24b.js +18 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/mg-action-more_34.cjs.entry.js +761 -582
  6. package/dist/cjs/mg-action-more_34.cjs.entry.js.map +1 -1
  7. package/dist/cjs/mg-components.cjs.js +1 -1
  8. package/dist/cjs/mg-item-more.cjs.entry.js +5 -5
  9. package/dist/cjs/mg-item-more.cjs.entry.js.map +1 -1
  10. package/dist/collection/components/atoms/mg-badge/mg-badge.js +9 -9
  11. package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +1 -1
  12. package/dist/collection/components/atoms/mg-badge/test/mg-badge.spec.js +5 -5
  13. package/dist/collection/components/atoms/mg-badge/test/mg-badge.spec.js.map +1 -1
  14. package/dist/collection/components/atoms/mg-button/mg-button.js +12 -12
  15. package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
  16. package/dist/collection/components/atoms/mg-button/test/mg-button.e2e.js +4 -4
  17. package/dist/collection/components/atoms/mg-button/test/mg-button.e2e.js.map +1 -1
  18. package/dist/collection/components/atoms/mg-button/test/mg-button.spec.js +3 -3
  19. package/dist/collection/components/atoms/mg-button/test/mg-button.spec.js.map +1 -1
  20. package/dist/collection/components/atoms/mg-card/mg-card.js +9 -9
  21. package/dist/collection/components/atoms/mg-card/mg-card.js.map +1 -1
  22. package/dist/collection/components/atoms/mg-character-left/mg-character-left.js +3 -3
  23. package/dist/collection/components/atoms/mg-character-left/mg-character-left.js.map +1 -1
  24. package/dist/collection/components/atoms/mg-divider/mg-divider.js +4 -4
  25. package/dist/collection/components/atoms/mg-divider/mg-divider.js.map +1 -1
  26. package/dist/collection/components/atoms/mg-icon/mg-icon.js +13 -15
  27. package/dist/collection/components/atoms/mg-icon/mg-icon.js.map +1 -1
  28. package/dist/collection/components/atoms/mg-icon/test/mg-icon.spec.js +4 -4
  29. package/dist/collection/components/atoms/mg-icon/test/mg-icon.spec.js.map +1 -1
  30. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js +5 -4
  31. package/dist/collection/components/atoms/mg-input-title/mg-input-title.js.map +1 -1
  32. package/dist/collection/components/atoms/mg-tag/mg-tag.js +9 -9
  33. package/dist/collection/components/atoms/mg-tag/mg-tag.js.map +1 -1
  34. package/dist/collection/components/atoms/mg-tag/test/mg-tag.e2e.playwright.js +23 -0
  35. package/dist/collection/components/atoms/mg-tag/test/mg-tag.e2e.playwright.js.map +1 -0
  36. package/dist/collection/components/atoms/mg-tag/test/mg-tag.spec.js +5 -5
  37. package/dist/collection/components/atoms/mg-tag/test/mg-tag.spec.js.map +1 -1
  38. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +2 -2
  39. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js.map +1 -1
  40. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +37 -17
  41. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +1 -1
  42. package/dist/collection/components/atoms/mg-tooltip/test/mg-tooltip.e2e.js +7 -1
  43. package/dist/collection/components/atoms/mg-tooltip/test/mg-tooltip.e2e.js.map +1 -1
  44. package/dist/collection/components/atoms/mg-tooltip/test/mg-tooltip.spec.js +9 -1
  45. package/dist/collection/components/atoms/mg-tooltip/test/mg-tooltip.spec.js.map +1 -1
  46. package/dist/collection/components/molecules/inputs/MgInput.js +12 -11
  47. package/dist/collection/components/molecules/inputs/MgInput.js.map +1 -1
  48. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +4 -4
  49. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js.map +1 -1
  50. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +2 -2
  51. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +1 -1
  52. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js.map +1 -1
  53. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +111 -38
  54. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
  55. package/dist/collection/components/molecules/inputs/mg-input-checkbox/test/mg-input-checkbox.e2e.playwright.js +21 -27
  56. package/dist/collection/components/molecules/inputs/mg-input-checkbox/test/mg-input-checkbox.e2e.playwright.js.map +1 -1
  57. package/dist/collection/components/molecules/inputs/mg-input-checkbox/test/mg-input-checkbox.spec.js +62 -6
  58. package/dist/collection/components/molecules/inputs/mg-input-checkbox/test/mg-input-checkbox.spec.js.map +1 -1
  59. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +84 -13
  60. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js.map +1 -1
  61. package/dist/collection/components/molecules/inputs/mg-input-date/test/mg-input-date.spec.js +55 -0
  62. package/dist/collection/components/molecules/inputs/mg-input-date/test/mg-input-date.spec.js.map +1 -1
  63. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +115 -44
  64. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +1 -1
  65. package/dist/collection/components/molecules/inputs/mg-input-numeric/test/mg-input-numeric.spec.js +55 -0
  66. package/dist/collection/components/molecules/inputs/mg-input-numeric/test/mg-input-numeric.spec.js.map +1 -1
  67. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +88 -15
  68. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +1 -1
  69. package/dist/collection/components/molecules/inputs/mg-input-password/test/mg-input-password.spec.js +55 -0
  70. package/dist/collection/components/molecules/inputs/mg-input-password/test/mg-input-password.spec.js.map +1 -1
  71. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +87 -14
  72. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +1 -1
  73. package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.e2e.js +1 -1
  74. package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.e2e.js.map +1 -1
  75. package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.spec.js +60 -0
  76. package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.spec.js.map +1 -1
  77. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +87 -14
  78. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +1 -1
  79. package/dist/collection/components/molecules/inputs/mg-input-select/test/mg-input-select.spec.js +55 -0
  80. package/dist/collection/components/molecules/inputs/mg-input-select/test/mg-input-select.spec.js.map +1 -1
  81. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js +5 -0
  82. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js.map +1 -0
  83. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +151 -34
  84. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
  85. package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.playwright.js +147 -0
  86. package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.playwright.js.map +1 -0
  87. package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.spec.js +80 -7
  88. package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.spec.js.map +1 -1
  89. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +110 -36
  90. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +1 -1
  91. package/dist/collection/components/molecules/inputs/mg-input-textarea/test/mg-input-textarea.spec.js +69 -6
  92. package/dist/collection/components/molecules/inputs/mg-input-textarea/test/mg-input-textarea.spec.js.map +1 -1
  93. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +9 -9
  94. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +1 -1
  95. package/dist/collection/components/molecules/inputs/mg-input-toggle/test/mg-input-toggle.spec.js +2 -2
  96. package/dist/collection/components/molecules/inputs/mg-input-toggle/test/mg-input-toggle.spec.js.map +1 -1
  97. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +2 -2
  98. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js.map +1 -1
  99. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +8 -9
  100. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +1 -1
  101. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +6 -6
  102. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
  103. package/dist/collection/components/molecules/mg-details/mg-details.js +5 -4
  104. package/dist/collection/components/molecules/mg-details/mg-details.js.map +1 -1
  105. package/dist/collection/components/molecules/mg-details/test/mg-details.spec.js +1 -1
  106. package/dist/collection/components/molecules/mg-details/test/mg-details.spec.js.map +1 -1
  107. package/dist/collection/components/molecules/mg-form/mg-form.js +6 -6
  108. package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -1
  109. package/dist/collection/components/molecules/mg-form/test/mg-form.spec.js +4 -4
  110. package/dist/collection/components/molecules/mg-form/test/mg-form.spec.js.map +1 -1
  111. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +7 -7
  112. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js.map +1 -1
  113. package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +5 -4
  114. package/dist/collection/components/molecules/mg-item-more/mg-item-more.js.map +1 -1
  115. package/dist/collection/components/molecules/mg-message/mg-message.js +8 -8
  116. package/dist/collection/components/molecules/mg-message/mg-message.js.map +1 -1
  117. package/dist/collection/components/molecules/mg-message/test/mg-message.spec.js +11 -11
  118. package/dist/collection/components/molecules/mg-message/test/mg-message.spec.js.map +1 -1
  119. package/dist/collection/components/molecules/mg-modal/mg-modal.js +8 -8
  120. package/dist/collection/components/molecules/mg-modal/mg-modal.js.map +1 -1
  121. package/dist/collection/components/molecules/mg-modal/test/mg-modal.e2e.playwright.js +7 -7
  122. package/dist/collection/components/molecules/mg-modal/test/mg-modal.e2e.playwright.js.map +1 -1
  123. package/dist/collection/components/molecules/mg-modal/test/mg-modal.firefox.e2e.playwright.js +3 -3
  124. package/dist/collection/components/molecules/mg-modal/test/mg-modal.firefox.e2e.playwright.js.map +1 -1
  125. package/dist/collection/components/molecules/mg-modal/test/mg-modal.spec.js +1 -1
  126. package/dist/collection/components/molecules/mg-modal/test/mg-modal.spec.js.map +1 -1
  127. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +3 -3
  128. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +1 -1
  129. package/dist/collection/components/molecules/mg-panel/mg-panel.js +17 -15
  130. package/dist/collection/components/molecules/mg-panel/mg-panel.js.map +1 -1
  131. package/dist/collection/components/molecules/mg-panel/test/mg-panel.e2e.playwright.js +3 -3
  132. package/dist/collection/components/molecules/mg-panel/test/mg-panel.e2e.playwright.js.map +1 -1
  133. package/dist/collection/components/molecules/mg-panel/test/mg-panel.spec.js +11 -21
  134. package/dist/collection/components/molecules/mg-panel/test/mg-panel.spec.js.map +1 -1
  135. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +4 -4
  136. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js.map +1 -1
  137. package/dist/collection/components/molecules/mg-popover/mg-popover.js +36 -16
  138. package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
  139. package/dist/collection/components/molecules/mg-popover/test/{mg-popover.e2e.js → mg-popover.e2e.playwright.js} +54 -62
  140. package/dist/collection/components/molecules/mg-popover/test/mg-popover.e2e.playwright.js.map +1 -0
  141. package/dist/collection/components/molecules/mg-popover/test/mg-popover.spec.js +12 -0
  142. package/dist/collection/components/molecules/mg-popover/test/mg-popover.spec.js.map +1 -1
  143. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +5 -6
  144. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js.map +1 -1
  145. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +34 -34
  146. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js.map +1 -1
  147. package/dist/collection/components/molecules/mg-tabs/test/mg-tabs.spec.js +13 -13
  148. package/dist/collection/components/molecules/mg-tabs/test/mg-tabs.spec.js.map +1 -1
  149. package/dist/collection/locales/en/messages.json +3 -3
  150. package/dist/collection/locales/fr/messages.json +3 -3
  151. package/dist/collection/utils/components.utils.js +16 -0
  152. package/dist/collection/utils/components.utils.js.map +1 -1
  153. package/dist/collection/utils/components.utils.spec.js +22 -1
  154. package/dist/collection/utils/components.utils.spec.js.map +1 -1
  155. package/dist/collection/variables.css +1 -275
  156. package/dist/components/MgInput.js +17 -16
  157. package/dist/components/MgInput.js.map +1 -1
  158. package/dist/components/components.utils.js +17 -1
  159. package/dist/components/components.utils.js.map +1 -1
  160. package/dist/components/index2.js +6 -6
  161. package/dist/components/mg-action-more.js +5 -5
  162. package/dist/components/mg-action-more.js.map +1 -1
  163. package/dist/components/mg-badge2.js +8 -8
  164. package/dist/components/mg-badge2.js.map +1 -1
  165. package/dist/components/mg-button2.js +11 -11
  166. package/dist/components/mg-button2.js.map +1 -1
  167. package/dist/components/mg-card2.js +8 -8
  168. package/dist/components/mg-card2.js.map +1 -1
  169. package/dist/components/mg-character-left2.js +1 -1
  170. package/dist/components/mg-character-left2.js.map +1 -1
  171. package/dist/components/mg-details.js +4 -3
  172. package/dist/components/mg-details.js.map +1 -1
  173. package/dist/components/mg-divider.js +3 -3
  174. package/dist/components/mg-divider.js.map +1 -1
  175. package/dist/components/mg-form.js +4 -4
  176. package/dist/components/mg-form.js.map +1 -1
  177. package/dist/components/mg-icon2.js +12 -14
  178. package/dist/components/mg-icon2.js.map +1 -1
  179. package/dist/components/mg-illustrated-message.js +7 -7
  180. package/dist/components/mg-illustrated-message.js.map +1 -1
  181. package/dist/components/mg-input-checkbox-paginated2.js +8 -8
  182. package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
  183. package/dist/components/mg-input-checkbox.js +70 -34
  184. package/dist/components/mg-input-checkbox.js.map +1 -1
  185. package/dist/components/mg-input-date.js +45 -12
  186. package/dist/components/mg-input-date.js.map +1 -1
  187. package/dist/components/mg-input-numeric.js +76 -43
  188. package/dist/components/mg-input-numeric.js.map +1 -1
  189. package/dist/components/mg-input-password.js +49 -14
  190. package/dist/components/mg-input-password.js.map +1 -1
  191. package/dist/components/mg-input-radio.js +48 -13
  192. package/dist/components/mg-input-radio.js.map +1 -1
  193. package/dist/components/mg-input-select2.js +48 -13
  194. package/dist/components/mg-input-select2.js.map +1 -1
  195. package/dist/components/mg-input-text2.js +83 -33
  196. package/dist/components/mg-input-text2.js.map +1 -1
  197. package/dist/components/mg-input-textarea.js +69 -35
  198. package/dist/components/mg-input-textarea.js.map +1 -1
  199. package/dist/components/mg-input-title2.js +4 -3
  200. package/dist/components/mg-input-title2.js.map +1 -1
  201. package/dist/components/mg-input-toggle.js +9 -9
  202. package/dist/components/mg-input-toggle.js.map +1 -1
  203. package/dist/components/mg-item-more.js +4 -3
  204. package/dist/components/mg-item-more.js.map +1 -1
  205. package/dist/components/mg-menu-item2.js +7 -8
  206. package/dist/components/mg-menu-item2.js.map +1 -1
  207. package/dist/components/mg-menu2.js +1 -1
  208. package/dist/components/mg-menu2.js.map +1 -1
  209. package/dist/components/mg-message.js +7 -7
  210. package/dist/components/mg-message.js.map +1 -1
  211. package/dist/components/mg-modal.js +7 -7
  212. package/dist/components/mg-modal.js.map +1 -1
  213. package/dist/components/mg-pagination2.js +2 -2
  214. package/dist/components/mg-pagination2.js.map +1 -1
  215. package/dist/components/mg-panel.js +16 -15
  216. package/dist/components/mg-panel.js.map +1 -1
  217. package/dist/components/mg-popover-content2.js +4 -4
  218. package/dist/components/mg-popover-content2.js.map +1 -1
  219. package/dist/components/mg-popover2.js +33 -14
  220. package/dist/components/mg-popover2.js.map +1 -1
  221. package/dist/components/mg-skip-links.js +4 -5
  222. package/dist/components/mg-skip-links.js.map +1 -1
  223. package/dist/components/mg-tabs.js +33 -33
  224. package/dist/components/mg-tabs.js.map +1 -1
  225. package/dist/components/mg-tag.js +8 -8
  226. package/dist/components/mg-tag.js.map +1 -1
  227. package/dist/components/mg-tooltip-content2.js +1 -1
  228. package/dist/components/mg-tooltip-content2.js.map +1 -1
  229. package/dist/components/mg-tooltip2.js +34 -15
  230. package/dist/components/mg-tooltip2.js.map +1 -1
  231. package/dist/esm/{mg-menu.conf-012fc9b4.js → components.utils-0f76010d.js} +153 -8
  232. package/dist/esm/components.utils-0f76010d.js.map +1 -0
  233. package/dist/esm/index-ce01e63b.js +18 -1
  234. package/dist/esm/loader.js +1 -1
  235. package/dist/esm/mg-action-more_34.entry.js +697 -518
  236. package/dist/esm/mg-action-more_34.entry.js.map +1 -1
  237. package/dist/esm/mg-components.js +1 -1
  238. package/dist/esm/mg-item-more.entry.js +4 -4
  239. package/dist/esm/mg-item-more.entry.js.map +1 -1
  240. package/dist/mg-components/locales/en/messages.json +3 -3
  241. package/dist/mg-components/locales/fr/messages.json +3 -3
  242. package/dist/mg-components/mg-components.css +1 -1
  243. package/dist/mg-components/mg-components.esm.js +1 -1
  244. package/dist/mg-components/mg-components.esm.js.map +1 -1
  245. package/dist/mg-components/p-768fc594.entry.js +2 -0
  246. package/dist/mg-components/p-768fc594.entry.js.map +1 -0
  247. package/dist/mg-components/p-c9e2c669.js +2 -0
  248. package/dist/mg-components/p-c9e2c669.js.map +1 -0
  249. package/dist/mg-components/p-d2d6afec.entry.js +2 -0
  250. package/dist/mg-components/p-d2d6afec.entry.js.map +1 -0
  251. package/dist/mg-components/variables.css +1 -275
  252. package/dist/types/components/atoms/mg-card/mg-card.d.ts +1 -1
  253. package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +1 -1
  254. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +4 -3
  255. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +1 -1
  256. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +4 -4
  257. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +22 -1
  258. package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.d.ts +17 -2
  259. package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +35 -20
  260. package/dist/types/components/molecules/inputs/mg-input-password/mg-input-password.d.ts +16 -1
  261. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +16 -1
  262. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +16 -1
  263. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.conf.d.ts +12 -0
  264. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +30 -6
  265. package/dist/types/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.playwright.d.ts +1 -0
  266. package/dist/types/components/molecules/inputs/mg-input-textarea/mg-input-textarea.d.ts +17 -5
  267. package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +2 -1
  268. package/dist/types/components/molecules/mg-form/mg-form.d.ts +1 -1
  269. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +3 -3
  270. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +2 -1
  271. package/dist/types/components/molecules/mg-popover/test/mg-popover.e2e.playwright.d.ts +1 -0
  272. package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +6 -5
  273. package/dist/types/components.d.ts +71 -13
  274. package/dist/types/utils/components.utils.d.ts +12 -0
  275. package/package.json +17 -18
  276. package/readme.md +0 -31
  277. package/dist/cjs/mg-menu.conf-43aacf30.js.map +0 -1
  278. package/dist/collection/components/atoms/mg-badge/mg-badge.css +0 -116
  279. package/dist/collection/components/atoms/mg-button/mg-button.css +0 -182
  280. package/dist/collection/components/atoms/mg-card/mg-card.css +0 -75
  281. package/dist/collection/components/atoms/mg-character-left/mg-character-left.css +0 -3
  282. package/dist/collection/components/atoms/mg-divider/mg-divider.css +0 -9
  283. package/dist/collection/components/atoms/mg-icon/mg-icon.css +0 -138
  284. package/dist/collection/components/atoms/mg-input-title/mg-input-title.css +0 -12
  285. package/dist/collection/components/atoms/mg-tag/mg-tag.css +0 -131
  286. package/dist/collection/components/atoms/mg-tag/test/mg-tag.e2e.js +0 -37
  287. package/dist/collection/components/atoms/mg-tag/test/mg-tag.e2e.js.map +0 -1
  288. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.css +0 -43
  289. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.css +0 -3
  290. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +0 -268
  291. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +0 -211
  292. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +0 -257
  293. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +0 -254
  294. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.css +0 -179
  295. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +0 -264
  296. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +0 -304
  297. package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.js +0 -171
  298. package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.js.map +0 -1
  299. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +0 -303
  300. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +0 -233
  301. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.css +0 -37
  302. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.css +0 -377
  303. package/dist/collection/components/molecules/mg-action-more/mg-action-more.css +0 -39
  304. package/dist/collection/components/molecules/mg-details/mg-details.css +0 -64
  305. package/dist/collection/components/molecules/mg-form/mg-form.css +0 -19
  306. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.css +0 -45
  307. package/dist/collection/components/molecules/mg-item-more/mg-item-more.css +0 -30
  308. package/dist/collection/components/molecules/mg-message/mg-message.css +0 -82
  309. package/dist/collection/components/molecules/mg-modal/mg-modal.css +0 -67
  310. package/dist/collection/components/molecules/mg-pagination/mg-pagination.css +0 -47
  311. package/dist/collection/components/molecules/mg-panel/mg-panel.css +0 -64
  312. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.css +0 -135
  313. package/dist/collection/components/molecules/mg-popover/mg-popover.css +0 -11
  314. package/dist/collection/components/molecules/mg-popover/test/mg-popover.e2e.js.map +0 -1
  315. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.css +0 -28
  316. package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +0 -99
  317. package/dist/collection/styles/a11y.scss +0 -36
  318. package/dist/collection/styles/fonts.scss +0 -21
  319. package/dist/collection/styles/form.scss +0 -3
  320. package/dist/collection/styles/global.scss +0 -80
  321. package/dist/collection/styles/layout.scss +0 -29
  322. package/dist/collection/styles/main.scss +0 -23
  323. package/dist/collection/styles/mg-icon-animation.scss +0 -6
  324. package/dist/collection/styles/navigation-button.scss +0 -77
  325. package/dist/collection/styles/reset-mg-card-slotted-variables.scss +0 -11
  326. package/dist/collection/styles/typography.scss +0 -82
  327. package/dist/collection/styles/utilities.scss +0 -21
  328. package/dist/collection/test/typography.e2e.playwright.js +0 -12
  329. package/dist/collection/test/typography.e2e.playwright.js.map +0 -1
  330. package/dist/esm/mg-menu.conf-012fc9b4.js.map +0 -1
  331. package/dist/mg-components/p-1d7d6fa0.js +0 -2
  332. package/dist/mg-components/p-1d7d6fa0.js.map +0 -1
  333. package/dist/mg-components/p-9257e8f1.entry.js +0 -2
  334. package/dist/mg-components/p-9257e8f1.entry.js.map +0 -1
  335. package/dist/mg-components/p-caafc9cf.entry.js +0 -2
  336. package/dist/mg-components/p-caafc9cf.entry.js.map +0 -1
  337. package/dist/mg-components/styles/a11y.scss +0 -36
  338. package/dist/mg-components/styles/fonts.scss +0 -21
  339. package/dist/mg-components/styles/form.scss +0 -3
  340. package/dist/mg-components/styles/global.scss +0 -80
  341. package/dist/mg-components/styles/layout.scss +0 -29
  342. package/dist/mg-components/styles/main.scss +0 -23
  343. package/dist/mg-components/styles/mg-icon-animation.scss +0 -6
  344. package/dist/mg-components/styles/navigation-button.scss +0 -77
  345. package/dist/mg-components/styles/reset-mg-card-slotted-variables.scss +0 -11
  346. package/dist/mg-components/styles/typography.scss +0 -82
  347. package/dist/mg-components/styles/utilities.scss +0 -21
  348. /package/dist/types/{test/typography.e2e.playwright.d.ts → components/atoms/mg-tag/test/mg-tag.e2e.playwright.d.ts} +0 -0
@@ -1,264 +0,0 @@
1
- /**
2
- * Common style for MGDIS inputs
3
- */
4
- :host {
5
- display: block;
6
- }
7
-
8
- .mg-input {
9
- display: flex;
10
- align-items: flex-start;
11
- min-height: var(--default-size);
12
- max-width: 100%;
13
- margin-bottom: var(--mg-inputs-margin-bottom, 0);
14
- /* Label */
15
- /* Label-on-top */
16
- }
17
- .mg-input mg-input-title {
18
- flex-shrink: var(--mg-inputs-shrink, 1);
19
- width: var(--mg-inputs-title-width, auto);
20
- margin-top: calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2);
21
- margin-right: var(--mg-inputs-title-horizontal-space, var(--mg-inputs-spacer));
22
- text-align: right;
23
- }
24
- .mg-input.mg-input--label-on-top {
25
- flex-direction: column;
26
- }
27
- .mg-input.mg-input--label-on-top .mg-input__input-container {
28
- width: 100%;
29
- }
30
-
31
- /* Label-on-top */
32
- .mg-input__title {
33
- display: flex;
34
- align-items: baseline;
35
- margin-bottom: 0.3rem;
36
- }
37
- .mg-input__title mg-input-title {
38
- flex-shrink: 1;
39
- width: auto;
40
- margin-top: 0;
41
- margin-right: var(--mg-inputs-spacer);
42
- text-align: left;
43
- }
44
- .mg-input__title mg-tooltip {
45
- margin-top: 0;
46
- }
47
- .mg-input__title mg-icon {
48
- display: inline-flex;
49
- vertical-align: text-bottom;
50
- }
51
-
52
- .mg-input__input-container {
53
- min-height: var(--default-size);
54
- /* Readonly */
55
- }
56
- .mg-input__input-container > strong {
57
- display: inline-block;
58
- margin-top: calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2);
59
- min-height: var(--font-size);
60
- }
61
- .mg-input__input-container mg-tooltip {
62
- display: inline-flex;
63
- width: var(--mg-icon-regular-size);
64
- height: var(--mg-icon-regular-size);
65
- margin-left: var(--mg-inputs-spacer);
66
- }
67
- .mg-input__input-container .mg-input__help-text,
68
- .mg-input__input-container .mg-input__error {
69
- text-align: start;
70
- font-size: 1.2rem;
71
- }
72
-
73
- .mg-input__input {
74
- display: flex;
75
- /* Manage space between input and first message */
76
- /* Set custom opacity on disabled input */
77
- }
78
- .mg-input__input mg-tooltip {
79
- margin-top: calc((var(--default-size) - var(--mg-icon-regular-size)) / 2);
80
- }
81
- .mg-input__input.mg-input__input--has-error .mg-input__box {
82
- border-color: hsl(var(--color-danger));
83
- }
84
- .mg-input__input + .mg-input__help-text, .mg-input__input + .mg-input__error {
85
- margin-top: 0.5rem;
86
- }
87
- .mg-input__input .mg-input__box:disabled, .mg-input__input-group--disabled label, .mg-input.mg-input--toggle-disabled .mg-input__input .mg-input__button-toggle, .mg-input.mg-input--checkbox-multi-disabled .mg-input__input strong {
88
- opacity: var(--mg-disabled-opacity);
89
- }
90
-
91
- .mg-input__error {
92
- display: inline-block;
93
- margin-top: 0.2rem;
94
- padding: 0.3rem 0.8rem;
95
- border-radius: 0.3rem;
96
- background: hsl(var(--mg-inputs-error-bg-color));
97
- color: hsl(var(--color-danger));
98
- }
99
-
100
- .mg-input__input mg-icon, .mg-input__error mg-icon {
101
- display: flex;
102
- }
103
-
104
- /**
105
- * Style for input "box":
106
- * - input[type="text"]
107
- * - input[type="date"]
108
- * - input[type="password"]
109
- * - textarea
110
- * - select
111
- */
112
- .mg-input__box {
113
- padding: calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2) var(--mg-inputs-spacer);
114
- height: var(--default-size);
115
- box-sizing: border-box;
116
- border-width: var(--mg-inputs-border-width);
117
- border-style: solid;
118
- border-color: var(--mg-inputs-color);
119
- border-radius: var(--mg-inputs-border-radius);
120
- background-color: hsl(var(--color-light));
121
- font-family: inherit;
122
- color: hsl(var(--color-dark));
123
- font-size: var(--font-size);
124
- text-align: var(--mg-inputs-text-align, left);
125
- }
126
- .mg-input__box::placeholder {
127
- color: var(--mg-inputs-color);
128
- font-style: italic;
129
- }
130
- .mg-input__box:focus {
131
- box-shadow: 0 0 0.6rem hsl(var(--mg-inputs-color-shadow-focus-hsl), 0.5);
132
- }
133
- .mg-input__box:disabled {
134
- opacity: 0.3;
135
- }
136
-
137
- /**
138
- * Variations
139
- */
140
- .mg-input.mg-input--is-input-group-append {
141
- --mg-button-border-radius-top-left: 0;
142
- --mg-button-border-radius-bottom-left: 0;
143
- /**
144
- * Append input slot
145
- */
146
- /**
147
- * Readonly variation
148
- */
149
- }
150
- .mg-input.mg-input--is-input-group-append .mg-input__box {
151
- margin-right: -0.1rem;
152
- border-top-right-radius: 0;
153
- border-bottom-right-radius: 0;
154
- }
155
- .mg-input.mg-input--is-input-group-append .mg-input__box:focus-visible {
156
- outline-style: solid;
157
- outline-offset: -0.2rem;
158
- outline-width: 0.2rem;
159
- }
160
- .mg-input.mg-input--is-input-group-append.mg-input--readonly slot[name=append-input] {
161
- display: none;
162
- }
163
-
164
- .mg-input.mg-input--label-on-top .mg-input__box {
165
- width: auto;
166
- max-width: 100%;
167
- }
168
-
169
- .mg-input.mg-input--has-buttons-group-append ::slotted([slot=append-input]) {
170
- --mg-button-border-radius-top-right: 0;
171
- --mg-button-border-radius-bottom-right: 0;
172
- }
173
- .mg-input.mg-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)) {
174
- --mg-button-border-right-width: 0;
175
- }
176
- .mg-input.mg-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type) {
177
- --mg-button-border-radius-top-right: var(--mg-inputs-border-radius);
178
- --mg-button-border-radius-bottom-right: var(--mg-inputs-border-radius);
179
- }
180
-
181
- .mg-input.mg-input--is-append-input-slot-content:not(.mg-input--readonly) ::slotted([slot=append-input]) {
182
- padding-top: calc((var(--default-size) - var(--mg-icon-regular-size)) / 2);
183
- }
184
-
185
- /**
186
- * Used to define width input
187
- * Kept it nested for coming widths
188
- */
189
- .mg-input.mg-input--width-full:not(.mg-input--label-on-top) {
190
- justify-content: space-between;
191
- }
192
- .mg-input.mg-input--width-full.mg-input--label-on-top .mg-input__box {
193
- width: 100%;
194
- }
195
- .mg-input.mg-input--width-full .mg-input__input-container {
196
- flex: auto;
197
- width: 100%;
198
- }
199
- .mg-input.mg-input--width-full .mg-input__input-container .mg-input__box {
200
- max-width: 100%;
201
- }
202
- .mg-input:not(.mg-input--label-on-top) .mg-input__box {
203
- width: 100%;
204
- max-width: calc(17.7rem + var(--mg-inputs-spacer) * 2);
205
- min-width: 5rem;
206
- }
207
- .mg-input.mg-input--width-16 .mg-input__input-container {
208
- width: 100%;
209
- }
210
- .mg-input.mg-input--width-16 .mg-input__input-container .mg-input__input {
211
- width: 100%;
212
- max-width: 21rem;
213
- }
214
- .mg-input.mg-input--width-16 .mg-input__input-container .mg-input__with-character-left {
215
- width: 100%;
216
- }
217
- .mg-input.mg-input--width-16 .mg-input__input-container .mg-input__box {
218
- max-width: 21rem;
219
- min-width: 100%;
220
- }
221
- .mg-input.mg-input--width-4 .mg-input__input-container .mg-input__box {
222
- max-width: 7rem;
223
- }
224
- .mg-input.mg-input--width-2 .mg-input__input-container .mg-input__box {
225
- max-width: 5rem;
226
- }
227
-
228
- /**
229
- * A11Y
230
- */
231
- .sr-only {
232
- border: 0 !important;
233
- clip: rect(1px, 1px, 1px, 1px) !important;
234
- -webkit-clip-path: inset(50%) !important;
235
- clip-path: inset(50%) !important;
236
- height: 1px !important;
237
- margin: -1px !important;
238
- overflow: hidden !important;
239
- padding: 0 !important;
240
- position: absolute !important;
241
- width: 1px !important;
242
- white-space: nowrap !important;
243
- }
244
-
245
- *:focus:not(:focus-visible) {
246
- outline: none;
247
- }
248
-
249
- @media (prefers-reduced-motion) {
250
- .mg-a11y-animation {
251
- animation: none !important;
252
- transition: none !important;
253
- }
254
- }
255
- .mg-input__box {
256
- width: 100%;
257
- padding-top: 0;
258
- padding-bottom: 0;
259
- padding-right: 1rem;
260
- }
261
-
262
- :host(:not([mg-width])) .mg-input--select:not(.mg-input--label-on-top) .mg-input__box {
263
- max-width: unset;
264
- }
@@ -1,304 +0,0 @@
1
- /**
2
- * Common style for MGDIS inputs
3
- */
4
- :host {
5
- display: block;
6
- }
7
-
8
- .mg-input {
9
- display: flex;
10
- align-items: flex-start;
11
- min-height: var(--default-size);
12
- max-width: 100%;
13
- margin-bottom: var(--mg-inputs-margin-bottom, 0);
14
- /* Label */
15
- /* Label-on-top */
16
- }
17
- .mg-input mg-input-title {
18
- flex-shrink: var(--mg-inputs-shrink, 1);
19
- width: var(--mg-inputs-title-width, auto);
20
- margin-top: calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2);
21
- margin-right: var(--mg-inputs-title-horizontal-space, var(--mg-inputs-spacer));
22
- text-align: right;
23
- }
24
- .mg-input.mg-input--label-on-top {
25
- flex-direction: column;
26
- }
27
- .mg-input.mg-input--label-on-top .mg-input__input-container {
28
- width: 100%;
29
- }
30
-
31
- /* Label-on-top */
32
- .mg-input__title {
33
- display: flex;
34
- align-items: baseline;
35
- margin-bottom: 0.3rem;
36
- }
37
- .mg-input__title mg-input-title {
38
- flex-shrink: 1;
39
- width: auto;
40
- margin-top: 0;
41
- margin-right: var(--mg-inputs-spacer);
42
- text-align: left;
43
- }
44
- .mg-input__title mg-tooltip {
45
- margin-top: 0;
46
- }
47
- .mg-input__title mg-icon {
48
- display: inline-flex;
49
- vertical-align: text-bottom;
50
- }
51
-
52
- .mg-input__input-container {
53
- min-height: var(--default-size);
54
- /* Readonly */
55
- }
56
- .mg-input__input-container > strong {
57
- display: inline-block;
58
- margin-top: calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2);
59
- min-height: var(--font-size);
60
- }
61
- .mg-input__input-container mg-tooltip {
62
- display: inline-flex;
63
- width: var(--mg-icon-regular-size);
64
- height: var(--mg-icon-regular-size);
65
- margin-left: var(--mg-inputs-spacer);
66
- }
67
- .mg-input__input-container .mg-input__help-text,
68
- .mg-input__input-container .mg-input__error {
69
- text-align: start;
70
- font-size: 1.2rem;
71
- }
72
-
73
- .mg-input__input {
74
- display: flex;
75
- /* Manage space between input and first message */
76
- /* Set custom opacity on disabled input */
77
- }
78
- .mg-input__input mg-tooltip {
79
- margin-top: calc((var(--default-size) - var(--mg-icon-regular-size)) / 2);
80
- }
81
- .mg-input__input.mg-input__input--has-error .mg-input__box {
82
- border-color: hsl(var(--color-danger));
83
- }
84
- .mg-input__input + .mg-input__help-text, .mg-input__input + .mg-input__error {
85
- margin-top: 0.5rem;
86
- }
87
- .mg-input__input .mg-input__box:disabled, .mg-input__input-group--disabled label, .mg-input.mg-input--toggle-disabled .mg-input__input .mg-input__button-toggle, .mg-input.mg-input--checkbox-multi-disabled .mg-input__input strong {
88
- opacity: var(--mg-disabled-opacity);
89
- }
90
-
91
- .mg-input__error {
92
- display: inline-block;
93
- margin-top: 0.2rem;
94
- padding: 0.3rem 0.8rem;
95
- border-radius: 0.3rem;
96
- background: hsl(var(--mg-inputs-error-bg-color));
97
- color: hsl(var(--color-danger));
98
- }
99
-
100
- .mg-input__input mg-icon, .mg-input__error mg-icon {
101
- display: flex;
102
- }
103
-
104
- /**
105
- * Style for input "box":
106
- * - input[type="text"]
107
- * - input[type="date"]
108
- * - input[type="password"]
109
- * - textarea
110
- * - select
111
- */
112
- .mg-input__box {
113
- padding: calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2) var(--mg-inputs-spacer);
114
- height: var(--default-size);
115
- box-sizing: border-box;
116
- border-width: var(--mg-inputs-border-width);
117
- border-style: solid;
118
- border-color: var(--mg-inputs-color);
119
- border-radius: var(--mg-inputs-border-radius);
120
- background-color: hsl(var(--color-light));
121
- font-family: inherit;
122
- color: hsl(var(--color-dark));
123
- font-size: var(--font-size);
124
- text-align: var(--mg-inputs-text-align, left);
125
- }
126
- .mg-input__box::placeholder {
127
- color: var(--mg-inputs-color);
128
- font-style: italic;
129
- }
130
- .mg-input__box:focus {
131
- box-shadow: 0 0 0.6rem hsl(var(--mg-inputs-color-shadow-focus-hsl), 0.5);
132
- }
133
- .mg-input__box:disabled {
134
- opacity: 0.3;
135
- }
136
-
137
- /**
138
- * Variations
139
- */
140
- .mg-input.mg-input--is-input-group-append {
141
- --mg-button-border-radius-top-left: 0;
142
- --mg-button-border-radius-bottom-left: 0;
143
- /**
144
- * Append input slot
145
- */
146
- /**
147
- * Readonly variation
148
- */
149
- }
150
- .mg-input.mg-input--is-input-group-append .mg-input__box {
151
- margin-right: -0.1rem;
152
- border-top-right-radius: 0;
153
- border-bottom-right-radius: 0;
154
- }
155
- .mg-input.mg-input--is-input-group-append .mg-input__box:focus-visible {
156
- outline-style: solid;
157
- outline-offset: -0.2rem;
158
- outline-width: 0.2rem;
159
- }
160
- .mg-input.mg-input--is-input-group-append.mg-input--readonly slot[name=append-input] {
161
- display: none;
162
- }
163
-
164
- .mg-input.mg-input--label-on-top .mg-input__box {
165
- width: auto;
166
- max-width: 100%;
167
- }
168
-
169
- .mg-input.mg-input--has-buttons-group-append ::slotted([slot=append-input]) {
170
- --mg-button-border-radius-top-right: 0;
171
- --mg-button-border-radius-bottom-right: 0;
172
- }
173
- .mg-input.mg-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)) {
174
- --mg-button-border-right-width: 0;
175
- }
176
- .mg-input.mg-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type) {
177
- --mg-button-border-radius-top-right: var(--mg-inputs-border-radius);
178
- --mg-button-border-radius-bottom-right: var(--mg-inputs-border-radius);
179
- }
180
-
181
- .mg-input.mg-input--is-append-input-slot-content:not(.mg-input--readonly) ::slotted([slot=append-input]) {
182
- padding-top: calc((var(--default-size) - var(--mg-icon-regular-size)) / 2);
183
- }
184
-
185
- /**
186
- * Used to define width input
187
- * Kept it nested for coming widths
188
- */
189
- .mg-input.mg-input--width-full:not(.mg-input--label-on-top) {
190
- justify-content: space-between;
191
- }
192
- .mg-input.mg-input--width-full.mg-input--label-on-top .mg-input__box {
193
- width: 100%;
194
- }
195
- .mg-input.mg-input--width-full .mg-input__input-container {
196
- flex: auto;
197
- width: 100%;
198
- }
199
- .mg-input.mg-input--width-full .mg-input__input-container .mg-input__box {
200
- max-width: 100%;
201
- }
202
- .mg-input:not(.mg-input--label-on-top) .mg-input__box {
203
- width: 100%;
204
- max-width: calc(17.7rem + var(--mg-inputs-spacer) * 2);
205
- min-width: 5rem;
206
- }
207
- .mg-input.mg-input--width-16 .mg-input__input-container {
208
- width: 100%;
209
- }
210
- .mg-input.mg-input--width-16 .mg-input__input-container .mg-input__input {
211
- width: 100%;
212
- max-width: 21rem;
213
- }
214
- .mg-input.mg-input--width-16 .mg-input__input-container .mg-input__with-character-left {
215
- width: 100%;
216
- }
217
- .mg-input.mg-input--width-16 .mg-input__input-container .mg-input__box {
218
- max-width: 21rem;
219
- min-width: 100%;
220
- }
221
- .mg-input.mg-input--width-4 .mg-input__input-container .mg-input__box {
222
- max-width: 7rem;
223
- }
224
- .mg-input.mg-input--width-2 .mg-input__input-container .mg-input__box {
225
- max-width: 5rem;
226
- }
227
-
228
- /**
229
- * Set mg-character-left with inputs
230
- */
231
- .mg-input mg-character-left {
232
- opacity: 0.6;
233
- font-size: 1.1rem;
234
- }
235
- .mg-input.mg-input--has-display-character-left .mg-input__input + .mg-input__help-text, .mg-input.mg-input--has-display-character-left .mg-input__input + .mg-input__error {
236
- margin-top: 0;
237
- }
238
-
239
- /**
240
- * A11Y
241
- */
242
- .sr-only {
243
- border: 0 !important;
244
- clip: rect(1px, 1px, 1px, 1px) !important;
245
- -webkit-clip-path: inset(50%) !important;
246
- clip-path: inset(50%) !important;
247
- height: 1px !important;
248
- margin: -1px !important;
249
- overflow: hidden !important;
250
- padding: 0 !important;
251
- position: absolute !important;
252
- width: 1px !important;
253
- white-space: nowrap !important;
254
- }
255
-
256
- *:focus:not(:focus-visible) {
257
- outline: none;
258
- }
259
-
260
- @media (prefers-reduced-motion) {
261
- .mg-a11y-animation {
262
- animation: none !important;
263
- transition: none !important;
264
- }
265
- }
266
- /**
267
- * Icon in input
268
- */
269
- .mg-input.mg-input--has-icon .mg-input__with-character-left > mg-icon {
270
- position: absolute;
271
- top: 50%;
272
- left: var(--mg-inputs-spacer);
273
- color: var(--mg-inputs-color);
274
- transform: translateY(-50%);
275
- }
276
- .mg-input.mg-input--has-icon .mg-input__with-character-left .mg-input__box {
277
- padding-left: calc(var(--mg-icon-regular-size) + var(--mg-inputs-spacer) * 2);
278
- }
279
-
280
- /**
281
- * Character left
282
- */
283
- .mg-input__with-character-left {
284
- position: relative;
285
- display: inline-flex;
286
- }
287
- .mg-input--width-full .mg-input__with-character-left {
288
- width: 100%;
289
- }
290
- .mg-input.is-focused .mg-input__with-character-left .mg-input__box {
291
- padding-right: calc(var(--mg-character-left-message-length) * 1ch + 0.8rem);
292
- }
293
- .mg-input__with-character-left mg-character-left {
294
- position: absolute;
295
- display: none;
296
- top: 50%;
297
- right: 1rem;
298
- opacity: 0.6;
299
- transform: translateY(-50%);
300
- font-size: 1.1rem;
301
- }
302
- .mg-input.is-focused .mg-input__with-character-left mg-character-left {
303
- display: block;
304
- }