@mgdis/mg-components 5.18.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 (327) 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 +313 -441
  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 +6 -6
  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 +1 -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 +1 -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 +20 -23
  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 +4 -5
  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 +6 -6
  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-numeric/mg-input-numeric.js +7 -7
  62. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +1 -1
  63. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +6 -6
  64. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +1 -1
  65. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +6 -6
  66. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +1 -1
  67. package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.e2e.js +1 -1
  68. package/dist/collection/components/molecules/inputs/mg-input-radio/test/mg-input-radio.e2e.js.map +1 -1
  69. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +6 -6
  70. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +1 -1
  71. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js +5 -0
  72. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js.map +1 -0
  73. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +58 -14
  74. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
  75. package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.playwright.js +147 -0
  76. package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.playwright.js.map +1 -0
  77. package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.spec.js +12 -2
  78. package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.spec.js.map +1 -1
  79. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +11 -11
  80. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +1 -1
  81. package/dist/collection/components/molecules/inputs/mg-input-textarea/test/mg-input-textarea.spec.js +2 -2
  82. package/dist/collection/components/molecules/inputs/mg-input-textarea/test/mg-input-textarea.spec.js.map +1 -1
  83. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +9 -9
  84. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +1 -1
  85. package/dist/collection/components/molecules/inputs/mg-input-toggle/test/mg-input-toggle.spec.js +2 -2
  86. package/dist/collection/components/molecules/inputs/mg-input-toggle/test/mg-input-toggle.spec.js.map +1 -1
  87. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js +2 -2
  88. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.js.map +1 -1
  89. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js +8 -9
  90. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.js.map +1 -1
  91. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +6 -6
  92. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
  93. package/dist/collection/components/molecules/mg-details/mg-details.js +5 -4
  94. package/dist/collection/components/molecules/mg-details/mg-details.js.map +1 -1
  95. package/dist/collection/components/molecules/mg-details/test/mg-details.spec.js +1 -1
  96. package/dist/collection/components/molecules/mg-details/test/mg-details.spec.js.map +1 -1
  97. package/dist/collection/components/molecules/mg-form/mg-form.js +4 -4
  98. package/dist/collection/components/molecules/mg-form/mg-form.js.map +1 -1
  99. package/dist/collection/components/molecules/mg-form/test/mg-form.spec.js +4 -4
  100. package/dist/collection/components/molecules/mg-form/test/mg-form.spec.js.map +1 -1
  101. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +7 -7
  102. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js.map +1 -1
  103. package/dist/collection/components/molecules/mg-item-more/mg-item-more.js +5 -4
  104. package/dist/collection/components/molecules/mg-item-more/mg-item-more.js.map +1 -1
  105. package/dist/collection/components/molecules/mg-message/mg-message.js +8 -8
  106. package/dist/collection/components/molecules/mg-message/mg-message.js.map +1 -1
  107. package/dist/collection/components/molecules/mg-message/test/mg-message.spec.js +11 -11
  108. package/dist/collection/components/molecules/mg-message/test/mg-message.spec.js.map +1 -1
  109. package/dist/collection/components/molecules/mg-modal/mg-modal.js +8 -8
  110. package/dist/collection/components/molecules/mg-modal/mg-modal.js.map +1 -1
  111. package/dist/collection/components/molecules/mg-modal/test/mg-modal.e2e.playwright.js +7 -7
  112. package/dist/collection/components/molecules/mg-modal/test/mg-modal.e2e.playwright.js.map +1 -1
  113. package/dist/collection/components/molecules/mg-modal/test/mg-modal.firefox.e2e.playwright.js +3 -3
  114. package/dist/collection/components/molecules/mg-modal/test/mg-modal.firefox.e2e.playwright.js.map +1 -1
  115. package/dist/collection/components/molecules/mg-modal/test/mg-modal.spec.js +1 -1
  116. package/dist/collection/components/molecules/mg-modal/test/mg-modal.spec.js.map +1 -1
  117. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +3 -3
  118. package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +1 -1
  119. package/dist/collection/components/molecules/mg-panel/mg-panel.js +9 -9
  120. package/dist/collection/components/molecules/mg-panel/mg-panel.js.map +1 -1
  121. package/dist/collection/components/molecules/mg-panel/test/mg-panel.e2e.playwright.js +2 -2
  122. package/dist/collection/components/molecules/mg-panel/test/mg-panel.e2e.playwright.js.map +1 -1
  123. package/dist/collection/components/molecules/mg-panel/test/mg-panel.spec.js +8 -8
  124. package/dist/collection/components/molecules/mg-panel/test/mg-panel.spec.js.map +1 -1
  125. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +4 -4
  126. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js.map +1 -1
  127. package/dist/collection/components/molecules/mg-popover/mg-popover.js +2 -2
  128. package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
  129. package/dist/collection/components/molecules/mg-popover/test/{mg-popover.e2e.js → mg-popover.e2e.playwright.js} +46 -65
  130. package/dist/collection/components/molecules/mg-popover/test/mg-popover.e2e.playwright.js.map +1 -0
  131. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +5 -6
  132. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js.map +1 -1
  133. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +34 -34
  134. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js.map +1 -1
  135. package/dist/collection/components/molecules/mg-tabs/test/mg-tabs.spec.js +13 -13
  136. package/dist/collection/components/molecules/mg-tabs/test/mg-tabs.spec.js.map +1 -1
  137. package/dist/collection/locales/en/messages.json +3 -3
  138. package/dist/collection/locales/fr/messages.json +3 -3
  139. package/dist/collection/utils/components.utils.js +10 -0
  140. package/dist/collection/utils/components.utils.js.map +1 -1
  141. package/dist/collection/utils/components.utils.spec.js +14 -1
  142. package/dist/collection/utils/components.utils.spec.js.map +1 -1
  143. package/dist/collection/variables.css +1 -275
  144. package/dist/components/MgInput.js +17 -16
  145. package/dist/components/MgInput.js.map +1 -1
  146. package/dist/components/components.utils.js +11 -1
  147. package/dist/components/components.utils.js.map +1 -1
  148. package/dist/components/index2.js +6 -6
  149. package/dist/components/mg-action-more.js +5 -5
  150. package/dist/components/mg-action-more.js.map +1 -1
  151. package/dist/components/mg-badge2.js +8 -8
  152. package/dist/components/mg-badge2.js.map +1 -1
  153. package/dist/components/mg-button2.js +11 -11
  154. package/dist/components/mg-button2.js.map +1 -1
  155. package/dist/components/mg-card2.js +8 -8
  156. package/dist/components/mg-card2.js.map +1 -1
  157. package/dist/components/mg-character-left2.js +1 -1
  158. package/dist/components/mg-character-left2.js.map +1 -1
  159. package/dist/components/mg-details.js +4 -3
  160. package/dist/components/mg-details.js.map +1 -1
  161. package/dist/components/mg-divider.js +3 -3
  162. package/dist/components/mg-divider.js.map +1 -1
  163. package/dist/components/mg-form.js +3 -3
  164. package/dist/components/mg-form.js.map +1 -1
  165. package/dist/components/mg-icon2.js +12 -14
  166. package/dist/components/mg-icon2.js.map +1 -1
  167. package/dist/components/mg-illustrated-message.js +7 -7
  168. package/dist/components/mg-illustrated-message.js.map +1 -1
  169. package/dist/components/mg-input-checkbox-paginated2.js +8 -8
  170. package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
  171. package/dist/components/mg-input-checkbox.js +19 -22
  172. package/dist/components/mg-input-checkbox.js.map +1 -1
  173. package/dist/components/mg-input-date.js +5 -5
  174. package/dist/components/mg-input-date.js.map +1 -1
  175. package/dist/components/mg-input-numeric.js +6 -6
  176. package/dist/components/mg-input-numeric.js.map +1 -1
  177. package/dist/components/mg-input-password.js +5 -5
  178. package/dist/components/mg-input-password.js.map +1 -1
  179. package/dist/components/mg-input-radio.js +5 -5
  180. package/dist/components/mg-input-radio.js.map +1 -1
  181. package/dist/components/mg-input-select2.js +5 -5
  182. package/dist/components/mg-input-select2.js.map +1 -1
  183. package/dist/components/mg-input-text2.js +29 -12
  184. package/dist/components/mg-input-text2.js.map +1 -1
  185. package/dist/components/mg-input-textarea.js +11 -11
  186. package/dist/components/mg-input-textarea.js.map +1 -1
  187. package/dist/components/mg-input-title2.js +4 -3
  188. package/dist/components/mg-input-title2.js.map +1 -1
  189. package/dist/components/mg-input-toggle.js +9 -9
  190. package/dist/components/mg-input-toggle.js.map +1 -1
  191. package/dist/components/mg-item-more.js +4 -3
  192. package/dist/components/mg-item-more.js.map +1 -1
  193. package/dist/components/mg-menu-item2.js +7 -8
  194. package/dist/components/mg-menu-item2.js.map +1 -1
  195. package/dist/components/mg-menu2.js +1 -1
  196. package/dist/components/mg-menu2.js.map +1 -1
  197. package/dist/components/mg-message.js +7 -7
  198. package/dist/components/mg-message.js.map +1 -1
  199. package/dist/components/mg-modal.js +7 -7
  200. package/dist/components/mg-modal.js.map +1 -1
  201. package/dist/components/mg-pagination2.js +2 -2
  202. package/dist/components/mg-pagination2.js.map +1 -1
  203. package/dist/components/mg-panel.js +8 -8
  204. package/dist/components/mg-panel.js.map +1 -1
  205. package/dist/components/mg-popover-content2.js +4 -4
  206. package/dist/components/mg-popover-content2.js.map +1 -1
  207. package/dist/components/mg-popover2.js.map +1 -1
  208. package/dist/components/mg-skip-links.js +4 -5
  209. package/dist/components/mg-skip-links.js.map +1 -1
  210. package/dist/components/mg-tabs.js +33 -33
  211. package/dist/components/mg-tabs.js.map +1 -1
  212. package/dist/components/mg-tag.js +8 -8
  213. package/dist/components/mg-tag.js.map +1 -1
  214. package/dist/components/mg-tooltip-content2.js +1 -1
  215. package/dist/components/mg-tooltip-content2.js.map +1 -1
  216. package/dist/components/mg-tooltip2.js +4 -4
  217. package/dist/components/mg-tooltip2.js.map +1 -1
  218. package/dist/esm/{mg-menu.conf-012fc9b4.js → components.utils-0f76010d.js} +153 -8
  219. package/dist/esm/components.utils-0f76010d.js.map +1 -0
  220. package/dist/esm/index-ce01e63b.js +18 -1
  221. package/dist/esm/loader.js +1 -1
  222. package/dist/esm/mg-action-more_34.entry.js +247 -375
  223. package/dist/esm/mg-action-more_34.entry.js.map +1 -1
  224. package/dist/esm/mg-components.js +1 -1
  225. package/dist/esm/mg-item-more.entry.js +4 -4
  226. package/dist/esm/mg-item-more.entry.js.map +1 -1
  227. package/dist/mg-components/locales/en/messages.json +3 -3
  228. package/dist/mg-components/locales/fr/messages.json +3 -3
  229. package/dist/mg-components/mg-components.css +1 -1
  230. package/dist/mg-components/mg-components.esm.js +1 -1
  231. package/dist/mg-components/mg-components.esm.js.map +1 -1
  232. package/dist/mg-components/p-768fc594.entry.js +2 -0
  233. package/dist/mg-components/p-768fc594.entry.js.map +1 -0
  234. package/dist/mg-components/p-c9e2c669.js +2 -0
  235. package/dist/mg-components/p-c9e2c669.js.map +1 -0
  236. package/dist/mg-components/p-d2d6afec.entry.js +2 -0
  237. package/dist/mg-components/p-d2d6afec.entry.js.map +1 -0
  238. package/dist/mg-components/variables.css +1 -275
  239. package/dist/types/components/atoms/mg-card/mg-card.d.ts +1 -1
  240. package/dist/types/components/atoms/mg-input-title/mg-input-title.d.ts +1 -1
  241. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +2 -2
  242. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +1 -1
  243. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +4 -4
  244. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.conf.d.ts +12 -0
  245. package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +13 -1
  246. package/dist/types/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.playwright.d.ts +1 -0
  247. package/dist/types/components/molecules/mg-action-more/mg-action-more.d.ts +2 -1
  248. package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +2 -2
  249. package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +1 -1
  250. package/dist/types/components/molecules/mg-popover/test/mg-popover.e2e.playwright.d.ts +1 -0
  251. package/dist/types/components/molecules/mg-tabs/mg-tabs.d.ts +6 -5
  252. package/dist/types/components.d.ts +12 -2
  253. package/dist/types/utils/components.utils.d.ts +6 -0
  254. package/package.json +17 -18
  255. package/readme.md +0 -31
  256. package/dist/cjs/mg-menu.conf-43aacf30.js.map +0 -1
  257. package/dist/collection/components/atoms/mg-badge/mg-badge.css +0 -116
  258. package/dist/collection/components/atoms/mg-button/mg-button.css +0 -182
  259. package/dist/collection/components/atoms/mg-card/mg-card.css +0 -75
  260. package/dist/collection/components/atoms/mg-character-left/mg-character-left.css +0 -3
  261. package/dist/collection/components/atoms/mg-divider/mg-divider.css +0 -9
  262. package/dist/collection/components/atoms/mg-icon/mg-icon.css +0 -138
  263. package/dist/collection/components/atoms/mg-input-title/mg-input-title.css +0 -12
  264. package/dist/collection/components/atoms/mg-tag/mg-tag.css +0 -131
  265. package/dist/collection/components/atoms/mg-tag/test/mg-tag.e2e.js +0 -37
  266. package/dist/collection/components/atoms/mg-tag/test/mg-tag.e2e.js.map +0 -1
  267. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.css +0 -43
  268. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.css +0 -3
  269. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.css +0 -268
  270. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.css +0 -211
  271. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.css +0 -257
  272. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.css +0 -254
  273. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.css +0 -179
  274. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.css +0 -264
  275. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.css +0 -304
  276. package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.js +0 -171
  277. package/dist/collection/components/molecules/inputs/mg-input-text/test/mg-input-text.e2e.js.map +0 -1
  278. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.css +0 -303
  279. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.css +0 -233
  280. package/dist/collection/components/molecules/menu/mg-menu/mg-menu.css +0 -37
  281. package/dist/collection/components/molecules/menu/mg-menu-item/mg-menu-item.css +0 -377
  282. package/dist/collection/components/molecules/mg-action-more/mg-action-more.css +0 -39
  283. package/dist/collection/components/molecules/mg-details/mg-details.css +0 -64
  284. package/dist/collection/components/molecules/mg-form/mg-form.css +0 -19
  285. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.css +0 -45
  286. package/dist/collection/components/molecules/mg-item-more/mg-item-more.css +0 -30
  287. package/dist/collection/components/molecules/mg-message/mg-message.css +0 -82
  288. package/dist/collection/components/molecules/mg-modal/mg-modal.css +0 -67
  289. package/dist/collection/components/molecules/mg-pagination/mg-pagination.css +0 -47
  290. package/dist/collection/components/molecules/mg-panel/mg-panel.css +0 -64
  291. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.css +0 -135
  292. package/dist/collection/components/molecules/mg-popover/mg-popover.css +0 -11
  293. package/dist/collection/components/molecules/mg-popover/test/mg-popover.e2e.js.map +0 -1
  294. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.css +0 -28
  295. package/dist/collection/components/molecules/mg-tabs/mg-tabs.css +0 -99
  296. package/dist/collection/styles/a11y.scss +0 -36
  297. package/dist/collection/styles/fonts.scss +0 -21
  298. package/dist/collection/styles/form.scss +0 -3
  299. package/dist/collection/styles/global.scss +0 -80
  300. package/dist/collection/styles/layout.scss +0 -29
  301. package/dist/collection/styles/main.scss +0 -23
  302. package/dist/collection/styles/mg-icon-animation.scss +0 -6
  303. package/dist/collection/styles/navigation-button.scss +0 -77
  304. package/dist/collection/styles/reset-mg-card-slotted-variables.scss +0 -11
  305. package/dist/collection/styles/typography.scss +0 -82
  306. package/dist/collection/styles/utilities.scss +0 -21
  307. package/dist/collection/test/typography.e2e.playwright.js +0 -12
  308. package/dist/collection/test/typography.e2e.playwright.js.map +0 -1
  309. package/dist/esm/mg-menu.conf-012fc9b4.js.map +0 -1
  310. package/dist/mg-components/p-1d7d6fa0.js +0 -2
  311. package/dist/mg-components/p-1d7d6fa0.js.map +0 -1
  312. package/dist/mg-components/p-9257e8f1.entry.js +0 -2
  313. package/dist/mg-components/p-9257e8f1.entry.js.map +0 -1
  314. package/dist/mg-components/p-ff3ca349.entry.js +0 -2
  315. package/dist/mg-components/p-ff3ca349.entry.js.map +0 -1
  316. package/dist/mg-components/styles/a11y.scss +0 -36
  317. package/dist/mg-components/styles/fonts.scss +0 -21
  318. package/dist/mg-components/styles/form.scss +0 -3
  319. package/dist/mg-components/styles/global.scss +0 -80
  320. package/dist/mg-components/styles/layout.scss +0 -29
  321. package/dist/mg-components/styles/main.scss +0 -23
  322. package/dist/mg-components/styles/mg-icon-animation.scss +0 -6
  323. package/dist/mg-components/styles/navigation-button.scss +0 -77
  324. package/dist/mg-components/styles/reset-mg-card-slotted-variables.scss +0 -11
  325. package/dist/mg-components/styles/typography.scss +0 -82
  326. package/dist/mg-components/styles/utilities.scss +0 -21
  327. /package/dist/types/{test/typography.e2e.playwright.d.ts → components/atoms/mg-tag/test/mg-tag.e2e.playwright.d.ts} +0 -0
@@ -1,131 +0,0 @@
1
- /* Variables */
2
- /* Mixins */
3
- /* Styles */
4
- .mg-tag {
5
- padding: calc((var(--mg-tag-height) - 0.2rem - var(--mg-tag-font-size) * var(--line-height)) / 2) 0.6rem;
6
- min-height: var(--mg-tag-height);
7
- box-sizing: border-box;
8
- border-radius: var(--mg-tag-border-radius);
9
- border: 0.1rem solid;
10
- font-size: var(--mg-tag-font-size);
11
- font-weight: 600;
12
- text-align: center;
13
- }
14
- .mg-tag.mg-tag--primary {
15
- background-color: hsl(var(--color-dark));
16
- border-color: hsl(var(--color-dark));
17
- color: hsl(var(--color-light));
18
- }
19
- .mg-tag.mg-tag--primary.mg-tag--outline {
20
- background-color: transparent;
21
- color: hsl(var(--color-dark));
22
- }
23
- .mg-tag.mg-tag--primary.mg-tag--soft {
24
- font-weight: 400;
25
- background-color: hsl(var(--color-dark-h), var(--color-dark-s), var(--mg-color-soft-l));
26
- border-color: hsl(var(--color-dark-h), var(--color-dark-s), var(--mg-color-soft-l));
27
- color: hsl(var(--color-dark));
28
- }
29
- .mg-tag.mg-tag--primary.mg-tag--soft ::slotted(mg-icon) {
30
- color: hsl(var(--color-dark));
31
- }
32
- .mg-tag.mg-tag--secondary {
33
- background-color: hsl(var(--color-light));
34
- border-color: hsl(var(--color-light));
35
- color: hsl(var(--color-dark));
36
- }
37
- .mg-tag.mg-tag--secondary.mg-tag--outline {
38
- background-color: transparent;
39
- color: hsl(var(--color-light));
40
- }
41
- .mg-tag.mg-tag--secondary.mg-tag--soft {
42
- font-weight: 400;
43
- background-color: hsl(var(--color-light-h), var(--color-light-s), var(--mg-color-soft-l));
44
- border-color: hsl(var(--color-light-h), var(--color-light-s), var(--mg-color-soft-l));
45
- color: hsl(var(--color-dark));
46
- }
47
- .mg-tag.mg-tag--secondary.mg-tag--soft ::slotted(mg-icon) {
48
- color: hsl(var(--color-dark));
49
- }
50
- .mg-tag.mg-tag--success {
51
- background-color: hsl(var(--color-success));
52
- border-color: hsl(var(--color-success));
53
- color: hsl(var(--color-dark));
54
- }
55
- .mg-tag.mg-tag--success.mg-tag--outline {
56
- background-color: transparent;
57
- color: hsl(var(--color-success));
58
- }
59
- .mg-tag.mg-tag--success.mg-tag--soft {
60
- font-weight: 400;
61
- background-color: hsl(var(--color-success-h), var(--color-success-s), var(--mg-color-soft-l));
62
- border-color: hsl(var(--color-success-h), var(--color-success-s), var(--mg-color-soft-l));
63
- color: hsl(var(--color-dark));
64
- }
65
- .mg-tag.mg-tag--success.mg-tag--soft ::slotted(mg-icon) {
66
- color: hsl(var(--color-success));
67
- }
68
- .mg-tag.mg-tag--warning {
69
- background-color: hsl(var(--color-warning));
70
- border-color: hsl(var(--color-warning));
71
- color: hsl(var(--color-dark));
72
- }
73
- .mg-tag.mg-tag--warning.mg-tag--outline {
74
- background-color: transparent;
75
- color: hsl(var(--color-warning));
76
- }
77
- .mg-tag.mg-tag--warning.mg-tag--soft {
78
- font-weight: 400;
79
- background-color: hsl(var(--color-warning-h), var(--color-warning-s), var(--mg-color-soft-l));
80
- border-color: hsl(var(--color-warning-h), var(--color-warning-s), var(--mg-color-soft-l));
81
- color: hsl(var(--color-dark));
82
- }
83
- .mg-tag.mg-tag--warning.mg-tag--soft ::slotted(mg-icon) {
84
- color: hsl(var(--color-warning));
85
- }
86
- .mg-tag.mg-tag--danger {
87
- background-color: hsl(var(--color-danger));
88
- border-color: hsl(var(--color-danger));
89
- color: hsl(var(--color-light));
90
- }
91
- .mg-tag.mg-tag--danger.mg-tag--outline {
92
- background-color: transparent;
93
- color: hsl(var(--color-danger));
94
- }
95
- .mg-tag.mg-tag--danger.mg-tag--soft {
96
- font-weight: 400;
97
- background-color: hsl(var(--color-danger-h), var(--color-danger-s), var(--mg-color-soft-l));
98
- border-color: hsl(var(--color-danger-h), var(--color-danger-s), var(--mg-color-soft-l));
99
- color: hsl(var(--color-dark));
100
- }
101
- .mg-tag.mg-tag--danger.mg-tag--soft ::slotted(mg-icon) {
102
- color: hsl(var(--color-danger));
103
- }
104
- .mg-tag.mg-tag--info {
105
- background-color: hsl(var(--color-info));
106
- border-color: hsl(var(--color-info));
107
- color: hsl(var(--color-light));
108
- }
109
- .mg-tag.mg-tag--info.mg-tag--outline {
110
- background-color: transparent;
111
- color: hsl(var(--color-info));
112
- }
113
- .mg-tag.mg-tag--info.mg-tag--soft {
114
- font-weight: 400;
115
- background-color: hsl(var(--color-info-h), var(--color-info-s), var(--mg-color-soft-l));
116
- border-color: hsl(var(--color-info-h), var(--color-info-s), var(--mg-color-soft-l));
117
- color: hsl(var(--color-dark));
118
- }
119
- .mg-tag.mg-tag--info.mg-tag--soft ::slotted(mg-icon) {
120
- color: hsl(var(--color-info));
121
- }
122
-
123
- .mg-tag,
124
- mg-tag {
125
- display: inline-block;
126
- vertical-align: middle;
127
- }
128
-
129
- ::slotted(mg-icon) {
130
- margin-right: 0.4rem;
131
- }
@@ -1,37 +0,0 @@
1
- import { createPage } from "../../../../utils/stencil.e2e.test.utils";
2
- import { darkBackground } from "../../../../utils/e2e.test.utils";
3
- import { variants } from "../mg-tag.conf";
4
- describe('mg-tag', () => {
5
- test('Should render', async () => {
6
- const html = variants
7
- .map(variant => {
8
- const template = [true, false]
9
- .map(icon => [
10
- { outline: false, soft: false },
11
- { outline: true, soft: false },
12
- { outline: false, soft: true },
13
- ]
14
- .map(({ outline, soft }) => darkBackground(variant === 'secondary', `<mg-tag style="margin: 0.2rem;" variant="${variant}" outline="${outline}" soft="${soft}">${icon ? '<mg-icon icon="user"></mg-icon>' : ''}${variant}</mg-tag>`))
15
- .join(''))
16
- .join('');
17
- return `<h2>${variant}<h2/><div>${template}<div>`;
18
- })
19
- .join('');
20
- const page = await createPage(html);
21
- const element = await page.find('mg-tag');
22
- expect(element).toHaveClass('hydrated');
23
- const screenshot = await page.screenshot();
24
- expect(screenshot).toMatchImageSnapshot();
25
- });
26
- test('Should render a 2 lines tag', async () => {
27
- const page = await createPage(`<mg-tag>Tag with a<br> two lines text</mg-tag>`);
28
- const screenshot = await page.screenshot();
29
- expect(screenshot).toMatchImageSnapshot();
30
- });
31
- test('Should render a tag in a paragraph', async () => {
32
- const page = await createPage(`<p>This is a <mg-tag>tag</mg-tag> in a paragraph.</p>`);
33
- const screenshot = await page.screenshot();
34
- expect(screenshot).toMatchImageSnapshot();
35
- });
36
- });
37
- //# sourceMappingURL=mg-tag.e2e.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mg-tag.e2e.js","sourceRoot":"","sources":["../../../../../src/components/atoms/mg-tag/test/mg-tag.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;EACtB,IAAI,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;IAC/B,MAAM,IAAI,GAAG,QAAQ;OAClB,GAAG,CAAC,OAAO,CAAC,EAAE;MACb,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC;SAC3B,GAAG,CAAC,IAAI,CAAC,EAAE,CACV;QACE,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE;QAC/B,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE;QAC9B,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE;OAC/B;SACE,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CACzB,cAAc,CACZ,OAAO,KAAK,WAAW,EACvB,4CAA4C,OAAO,cAAc,OAAO,WAAW,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,iCAAiC,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,WAAW,CAC/J,CACF;SACA,IAAI,CAAC,EAAE,CAAC,CACZ;SACA,IAAI,CAAC,EAAE,CAAC,CAAC;MACZ,OAAO,OAAO,OAAO,aAAa,QAAQ,OAAO,CAAC;IACpD,CAAC,CAAC;OACD,IAAI,CAAC,EAAE,CAAC,CAAC;IAEZ,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,CAAC;IAEpC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1C,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAExC,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3C,MAAM,CAAC,UAAU,CAAC,CAAC,oBAAoB,EAAE,CAAC;EAC5C,CAAC,CAAC,CAAC;EAEH,IAAI,CAAC,6BAA6B,EAAE,KAAK,IAAI,EAAE;IAC7C,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,gDAAgD,CAAC,CAAC;IAEhF,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3C,MAAM,CAAC,UAAU,CAAC,CAAC,oBAAoB,EAAE,CAAC;EAC5C,CAAC,CAAC,CAAC;EAEH,IAAI,CAAC,oCAAoC,EAAE,KAAK,IAAI,EAAE;IACpD,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,uDAAuD,CAAC,CAAC;IAEvF,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3C,MAAM,CAAC,UAAU,CAAC,CAAC,oBAAoB,EAAE,CAAC;EAC5C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { createPage } from '../../../../utils/stencil.e2e.test.utils';\nimport { darkBackground } from '../../../../utils/e2e.test.utils';\nimport { variants } from '../mg-tag.conf';\n\ndescribe('mg-tag', () => {\n test('Should render', async () => {\n const html = variants\n .map(variant => {\n const template = [true, false]\n .map(icon =>\n [\n { outline: false, soft: false },\n { outline: true, soft: false },\n { outline: false, soft: true },\n ]\n .map(({ outline, soft }) =>\n darkBackground(\n variant === 'secondary',\n `<mg-tag style=\"margin: 0.2rem;\" variant=\"${variant}\" outline=\"${outline}\" soft=\"${soft}\">${icon ? '<mg-icon icon=\"user\"></mg-icon>' : ''}${variant}</mg-tag>`,\n ),\n )\n .join(''),\n )\n .join('');\n return `<h2>${variant}<h2/><div>${template}<div>`;\n })\n .join('');\n\n const page = await createPage(html);\n\n const element = await page.find('mg-tag');\n expect(element).toHaveClass('hydrated');\n\n const screenshot = await page.screenshot();\n expect(screenshot).toMatchImageSnapshot();\n });\n\n test('Should render a 2 lines tag', async () => {\n const page = await createPage(`<mg-tag>Tag with a<br> two lines text</mg-tag>`);\n\n const screenshot = await page.screenshot();\n expect(screenshot).toMatchImageSnapshot();\n });\n\n test('Should render a tag in a paragraph', async () => {\n const page = await createPage(`<p>This is a <mg-tag>tag</mg-tag> in a paragraph.</p>`);\n\n const screenshot = await page.screenshot();\n expect(screenshot).toMatchImageSnapshot();\n });\n});\n"]}
@@ -1,43 +0,0 @@
1
- :host {
2
- display: none;
3
- padding: 0.5rem 0.8rem;
4
- z-index: 1000;
5
- border-radius: var(--mg-tooltip-border-radius);
6
- background-color: hsl(var(--mg-tooltip-background-color));
7
- color: hsl(var(--mg-tooltip-font-color));
8
- text-align: start;
9
- max-width: 40rem;
10
- box-sizing: border-box;
11
- }
12
-
13
- :host([data-show]) {
14
- display: block;
15
- }
16
-
17
- ::slotted([slot=arrow]) {
18
- visibility: hidden;
19
- }
20
- ::slotted([slot=arrow])::before {
21
- visibility: visible;
22
- content: "";
23
- transform: rotate(45deg);
24
- }
25
- ::slotted([slot=arrow]), ::slotted([slot=arrow])::before {
26
- position: absolute;
27
- width: 0.8rem;
28
- height: 0.8rem;
29
- z-index: 9999;
30
- background-color: hsl(var(--mg-tooltip-background-color));
31
- }
32
- :host([data-popper-placement^=top]) > ::slotted([slot=arrow]) {
33
- bottom: -4px;
34
- }
35
- :host([data-popper-placement^=bottom]) > ::slotted([slot=arrow]) {
36
- top: -4px;
37
- }
38
- :host([data-popper-placement^=left]) > ::slotted([slot=arrow]) {
39
- right: -4px;
40
- }
41
- :host([data-popper-placement^=right]) > ::slotted([slot=arrow]) {
42
- left: -4px;
43
- }
@@ -1,3 +0,0 @@
1
- :host {
2
- display: inline-block;
3
- }
@@ -1,268 +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
- * Manage style when input needs to be a fieldset, like checkbox and radio.
106
- */
107
- fieldset.mg-input {
108
- border: 0;
109
- margin-left: 0;
110
- margin-right: 0;
111
- padding: 0;
112
- }
113
- fieldset.mg-input input[type=radio],
114
- fieldset.mg-input input[type=checkbox] {
115
- flex-shrink: 0;
116
- /* Ensure checkbox won't resize in flex element */
117
- width: var(--mg-input-check-size);
118
- height: var(--mg-input-check-size);
119
- margin-top: calc((var(--font-size) * var(--line-height) - var(--mg-input-check-size)) / 2);
120
- margin-right: 0.6rem;
121
- margin-bottom: 0;
122
- margin-left: 0;
123
- }
124
- fieldset.mg-input.mg-input--label-on-top .mg-input__input-group-container {
125
- margin-top: 0.7rem;
126
- }
127
-
128
- .mg-input__input-container mg-tooltip {
129
- margin-left: 3rem;
130
- }
131
-
132
- /* input group container */
133
- .mg-input__input-group-container {
134
- margin: 0;
135
- padding: 0;
136
- list-style: none;
137
- display: flex;
138
- flex-wrap: wrap;
139
- column-gap: 2.3rem;
140
- row-gap: 1rem;
141
- margin-top: calc((var(--default-size) - var(--font-size) * var(--line-height)) / 2);
142
- }
143
- .mg-input__input-group-container--vertical {
144
- flex-direction: column;
145
- }
146
-
147
- /* input group */
148
- .mg-input__input-group {
149
- display: flex;
150
- align-items: top;
151
- }
152
-
153
- /**
154
- * A11Y
155
- */
156
- .sr-only {
157
- border: 0 !important;
158
- clip: rect(1px, 1px, 1px, 1px) !important;
159
- -webkit-clip-path: inset(50%) !important;
160
- clip-path: inset(50%) !important;
161
- height: 1px !important;
162
- margin: -1px !important;
163
- overflow: hidden !important;
164
- padding: 0 !important;
165
- position: absolute !important;
166
- width: 1px !important;
167
- white-space: nowrap !important;
168
- }
169
-
170
- *:focus:not(:focus-visible) {
171
- outline: none;
172
- }
173
-
174
- @media (prefers-reduced-motion) {
175
- .mg-a11y-animation {
176
- animation: none !important;
177
- transition: none !important;
178
- }
179
- }
180
- /**
181
- * checkbox multi
182
- */
183
- .mg-input.mg-input--checkbox-multi .mg-input__input-checkbox-multi {
184
- display: flex;
185
- flex-wrap: wrap;
186
- gap: calc(var(--mg-inputs-spacer) * 1.2);
187
- }
188
- .mg-input.mg-input--checkbox-multi .mg-input__input-checkbox-multi--with-values.mg-input__input-checkbox-multi {
189
- gap: 0.4rem;
190
- }
191
- .mg-input.mg-input--checkbox-multi .mg-input__input-checkbox-multi-values-container {
192
- display: flex;
193
- flex-wrap: wrap;
194
- gap: calc(0.4rem * 1);
195
- flex-direction: row;
196
- margin: 0;
197
- padding: 0;
198
- list-style: none;
199
- }
200
- .mg-input.mg-input--checkbox-multi .mg-input__input-checkbox-multi-value {
201
- display: inline-flex;
202
- justify-content: center;
203
- align-items: center;
204
- box-sizing: border-box;
205
- min-height: var(--default-size);
206
- min-width: var(--default-size);
207
- padding: calc((var(--default-size) - 0.2rem - var(--font-size) * var(--line-height)) / 2) 1.1rem;
208
- background-color: hsl(var(--mg-color-dark-5-hsl));
209
- border-radius: 0.3rem;
210
- font-size: var(--font-size);
211
- }
212
- .mg-input.mg-input--checkbox-multi .mg-input__input-checkbox-multi-no-result {
213
- text-align: center;
214
- }
215
- .mg-input.mg-input--checkbox-multi .mg-input__input-checkbox-multi-text, .mg-input.mg-input--checkbox-multi .mg-input__input-checkbox-multi-title {
216
- display: inline;
217
- margin: 0;
218
- color: hsl(var(--mg-color-dark-40-hsl));
219
- }
220
- .mg-input.mg-input--checkbox-multi .mg-input__input-checkbox-multi-title {
221
- margin: 0 1.1rem;
222
- }
223
- .mg-input.mg-input--checkbox-multi .mg-input__input-checkbox-multi-sections {
224
- display: flex;
225
- flex-wrap: wrap;
226
- gap: calc(0.4rem * 1);
227
- flex-direction: column;
228
- }
229
- .mg-input.mg-input--checkbox-multi .mg-input__input-checkbox-multi-sections-container {
230
- display: flex;
231
- flex-wrap: nowrap;
232
- gap: calc(0.4rem * 0);
233
- flex-direction: column;
234
- max-height: 80vh;
235
- padding-right: 1rem;
236
- overflow-y: auto;
237
- }
238
- .mg-input.mg-input--checkbox-multi .mg-input__input-checkbox-multi-section-header {
239
- display: flex;
240
- flex-wrap: wrap;
241
- gap: calc(0.4rem * 2);
242
- flex-direction: row;
243
- align-items: center;
244
- min-height: var(--default-size);
245
- }
246
- .mg-input.mg-input--checkbox-multi .mg-input__input-checkbox-multi-inputs {
247
- margin: 0;
248
- padding: 0.4rem calc(0.4rem * 2) 0.4rem calc(0.4rem / 2);
249
- }
250
- .mg-input.mg-input--checkbox-multi:not(.mg-input--label-on-top) mg-tooltip {
251
- margin-left: var(--mg-inputs-spacer);
252
- }
253
- .mg-input.mg-input--checkbox-multi mg-popover {
254
- --mg-popover-min-width: 7rem;
255
- --mg-card-padding: calc(0.4rem * 2);
256
- }
257
- .mg-input.mg-input--checkbox-multi mg-popover-content [slot=content] {
258
- display: flex;
259
- flex-wrap: wrap;
260
- gap: calc(0.4rem * 2);
261
- flex-direction: column;
262
- }
263
- .mg-input.mg-input--checkbox-multi mg-popover-content [slot=content] .mg-input__input-group {
264
- margin-left: calc(0.4rem * 2);
265
- }
266
- .mg-input.mg-input--checkbox-multi mg-input-text {
267
- --mg-inputs-margin-bottom: 0;
268
- }
@@ -1,211 +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
- * A11Y
187
- */
188
- .sr-only {
189
- border: 0 !important;
190
- clip: rect(1px, 1px, 1px, 1px) !important;
191
- -webkit-clip-path: inset(50%) !important;
192
- clip-path: inset(50%) !important;
193
- height: 1px !important;
194
- margin: -1px !important;
195
- overflow: hidden !important;
196
- padding: 0 !important;
197
- position: absolute !important;
198
- width: 1px !important;
199
- white-space: nowrap !important;
200
- }
201
-
202
- *:focus:not(:focus-visible) {
203
- outline: none;
204
- }
205
-
206
- @media (prefers-reduced-motion) {
207
- .mg-a11y-animation {
208
- animation: none !important;
209
- transition: none !important;
210
- }
211
- }