globuswebcomponents 0.5.5 → 0.5.6

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 (370) hide show
  1. package/dist/cjs/{gb-password-button.cjs.entry.js → gb-avatar-dropdown.cjs.entry.js} +41 -11
  2. package/dist/cjs/gb-avatar-dropdown.cjs.entry.js.map +1 -0
  3. package/dist/cjs/gb-avatar-group.cjs.entry.js +2 -2
  4. package/dist/cjs/gb-avatar-group.cjs.entry.js.map +1 -1
  5. package/dist/cjs/gb-avatar-label-group.cjs.entry.js +96 -0
  6. package/dist/cjs/gb-avatar-label-group.cjs.entry.js.map +1 -0
  7. package/dist/cjs/gb-avatar-profile-photo.cjs.entry.js +1 -1
  8. package/dist/cjs/{gb-avatar_34.cjs.entry.js → gb-avatar_32.cjs.entry.js} +151 -259
  9. package/dist/cjs/gb-avatar_32.cjs.entry.js.map +1 -0
  10. package/dist/cjs/gb-button-close_2.cjs.entry.js +3 -3
  11. package/dist/cjs/gb-checkbox-group-item.cjs.entry.js +1 -1
  12. package/dist/cjs/gb-dropdown-items-with-shortcut.cjs.entry.js +32 -0
  13. package/dist/cjs/gb-dropdown-items-with-shortcut.cjs.entry.js.map +1 -0
  14. package/dist/cjs/gb-file-upload-item-base.cjs.entry.js +1 -1
  15. package/dist/cjs/gb-help-dropdown.cjs.entry.js +2 -2
  16. package/dist/cjs/gb-megainput-field.cjs.entry.js +3 -3
  17. package/dist/cjs/gb-notification-content.cjs.entry.js +2 -2
  18. package/dist/cjs/gb-progress-circle.cjs.entry.js +1 -1
  19. package/dist/cjs/gb-rich-text.cjs.entry.js +2 -2
  20. package/dist/cjs/gb-scrollbar.cjs.entry.js +2 -2
  21. package/dist/cjs/gb-slider-control-handle.cjs.entry.js +2 -2
  22. package/dist/cjs/gb-slider.cjs.entry.js +2 -2
  23. package/dist/cjs/gb-toast-button.cjs.entry.js +2 -2
  24. package/dist/cjs/gb-toast.cjs.entry.js +2 -2
  25. package/dist/cjs/gb-toggle-base.cjs.entry.js +3 -3
  26. package/dist/cjs/gb-toggle.cjs.entry.js +1 -1
  27. package/dist/cjs/gb-token-field.cjs.entry.js +2 -2
  28. package/dist/cjs/gb-verification-code-field.cjs.entry.js +3 -3
  29. package/dist/cjs/gb-wysiwyg-editor-icon.cjs.entry.js +1 -1
  30. package/dist/cjs/gb-wysiwyg-toolbar.cjs.entry.js +1 -1
  31. package/dist/cjs/globuscomponents.cjs.js +1 -1
  32. package/dist/cjs/loader.cjs.js +1 -1
  33. package/dist/collection/assets/cancel-01.svg +5 -0
  34. package/dist/collection/assets/copy-01.svg +5 -0
  35. package/dist/collection/assets/mail-02.svg +5 -0
  36. package/dist/collection/components/gb-WYSIWYG editor-icon/gb-WYSIWYG-editor-icon.css +2 -2
  37. package/dist/collection/components/gb-WYSIWYG-toolbar/gb-WYSIWYG-toolbar.css +2 -2
  38. package/dist/collection/components/gb-avatar-contrast-inner-border/gb-avatar-contrast-inner-border.css +2 -2
  39. package/dist/collection/components/gb-avatar-dropdown/gb-avatar-dropdown.css +2 -2
  40. package/dist/collection/components/gb-avatar-group/gb-avatar-group.js +2 -2
  41. package/dist/collection/components/gb-avatar-group/gb-avatar-group.js.map +1 -1
  42. package/dist/collection/components/gb-avatar-label-group/gb-avatar-label-group.css +2 -2
  43. package/dist/collection/components/gb-avatar-profile-photo/gb-avatar-profile-photo.css +2 -2
  44. package/dist/collection/components/gb-badge-close/gb-badge-close.css +2 -2
  45. package/dist/collection/components/gb-badges/gb-badges.css +2 -2
  46. package/dist/collection/components/gb-btn/gb-btn.css +2 -2
  47. package/dist/collection/components/gb-button/gb-button.css +2 -2
  48. package/dist/collection/components/gb-button/readme.md +0 -2
  49. package/dist/collection/components/gb-button-close/gb-button-close.css +2 -2
  50. package/dist/collection/components/gb-carousel-arrow/gb-carousel-arrow.css +2 -2
  51. package/dist/collection/components/gb-checkbox-group-item/gb-checkbox-group-item.css +2 -2
  52. package/dist/collection/components/gb-collapse-button/gb-collapse-button.css +2 -2
  53. package/dist/collection/components/gb-dropdown-items-with-shortcut/gb-dropdown-items-with-shortcut.css +931 -407
  54. package/dist/collection/components/gb-dropdown-items-with-shortcut/gb-dropdown-items-with-shortcut.js +2 -1
  55. package/dist/collection/components/gb-dropdown-items-with-shortcut/gb-dropdown-items-with-shortcut.js.map +1 -1
  56. package/dist/collection/components/gb-file-upload-item-base/gb-file-upload-item-base.css +2 -2
  57. package/dist/collection/components/gb-header/gb-header.css +5 -0
  58. package/dist/collection/components/gb-header/gb-header.js +3 -3
  59. package/dist/collection/components/gb-header/gb-header.js.map +1 -1
  60. package/dist/collection/components/gb-header-icon/gb-header-icon.css +2 -2
  61. package/dist/collection/components/gb-header-icon/gb-header-icon.js +4 -4
  62. package/dist/collection/components/gb-help-dropdown/gb-help-dropdown.css +2 -2
  63. package/dist/collection/components/gb-help-dropdown/gb-help-dropdown.js +1 -1
  64. package/dist/collection/components/gb-help-tooltip/gb-help-tooltip.css +4 -2
  65. package/dist/collection/components/gb-help-tooltip/gb-help-tooltip.js +1 -1
  66. package/dist/collection/components/gb-horizontal-tabs/gb-horizontal-tabs.css +2 -2
  67. package/dist/collection/components/gb-horizontal-tabs/gb-horizontal-tabs.js +1 -1
  68. package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.css +4 -5
  69. package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js +46 -43
  70. package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js.map +1 -1
  71. package/dist/collection/components/gb-input-dropdown-menu-item/gb-input-dropdown-menu-item.css +2 -2
  72. package/dist/collection/components/gb-input-dropdown-menu-item/gb-input-dropdown-menu-item.js +2 -2
  73. package/dist/collection/components/gb-input-field/gb-input-field.css +183 -6
  74. package/dist/collection/components/gb-input-field/gb-input-field.js +51 -5
  75. package/dist/collection/components/gb-input-field/gb-input-field.js.map +1 -1
  76. package/dist/collection/components/gb-megainput-field-base/gb-megainput-field.css +2 -2
  77. package/dist/collection/components/gb-megainput-field-base/gb-megainput-field.js +2 -2
  78. package/dist/collection/components/gb-notification-content/gb-notification-content.css +2 -2
  79. package/dist/collection/components/gb-notification-content/gb-notification-content.js +1 -1
  80. package/dist/collection/components/gb-notification-pane/gb-notification-pane.css +2 -2
  81. package/dist/collection/components/gb-notification-pane/gb-notification-pane.js +1 -1
  82. package/dist/collection/components/gb-pagination/gb-pagination.js +1 -1
  83. package/dist/collection/components/gb-pagination-button-group-base/gb-pagination-button-group-base.js +1 -1
  84. package/dist/collection/components/gb-pagination-dot-indicator/gb-pagination-dot-indicator.js +1 -1
  85. package/dist/collection/components/gb-pagination-number-base/gb-pagination-number-base.css +2 -2
  86. package/dist/collection/components/gb-pagination-number-base/gb-pagination-number-base.js +1 -1
  87. package/dist/collection/components/gb-password-button/gb-password-button.css +2 -2
  88. package/dist/collection/components/gb-password-button/gb-password-button.js +1 -1
  89. package/dist/collection/components/gb-progress-bar/gb-progress-bar.css +2 -2
  90. package/dist/collection/components/gb-progress-bar/gb-progress-bar.js +1 -1
  91. package/dist/collection/components/gb-progress-circle/gb-progress-circle.js +1 -1
  92. package/dist/collection/components/gb-rich-text/gb-rich-text.css +2 -2
  93. package/dist/collection/components/gb-rich-text/gb-rich-text.js +1 -1
  94. package/dist/collection/components/gb-scrollbar/gb-scrollbar.css +2 -2
  95. package/dist/collection/components/gb-scrollbar/gb-scrollbar.js +1 -1
  96. package/dist/collection/components/gb-side-bar-item/gb-side-bar-item.css +2 -2
  97. package/dist/collection/components/gb-side-bar-item/gb-side-bar-item.js +2 -2
  98. package/dist/collection/components/gb-side-bar-item/gb-side-bar-item.js.map +1 -1
  99. package/dist/collection/components/gb-sidebar/gb-sidebar.css +2 -2
  100. package/dist/collection/components/gb-sidebar/gb-sidebar.js +1 -1
  101. package/dist/collection/components/gb-slider/gb-slider.css +2 -2
  102. package/dist/collection/components/gb-slider/gb-slider.js +1 -1
  103. package/dist/collection/components/gb-slider-control-handle/slider-control-handle.css +2 -2
  104. package/dist/collection/components/gb-slider-control-handle/slider-control-handle.js +1 -1
  105. package/dist/collection/components/gb-status-indicator/gb-status-indicator.css +2 -2
  106. package/dist/collection/components/gb-status-indicator/gb-status-indicator.js +1 -1
  107. package/dist/collection/components/gb-tab-button-base/gb-tab-button-base.css +2 -2
  108. package/dist/collection/components/gb-tab-button-base/gb-tab-button-base.js +3 -3
  109. package/dist/collection/components/gb-tag/gb-tag.css +2 -2
  110. package/dist/collection/components/gb-tag/gb-tag.js +2 -2
  111. package/dist/collection/components/gb-tag/gb-tag.js.map +1 -1
  112. package/dist/collection/components/gb-tag-checkbox/gb-tag-checkbox.css +2 -2
  113. package/dist/collection/components/gb-tag-checkbox/gb-tag-checkbox.js +1 -1
  114. package/dist/collection/components/gb-tag-close/gb-tag-close.css +2 -2
  115. package/dist/collection/components/gb-tag-close/gb-tag-close.js +1 -1
  116. package/dist/collection/components/gb-tag-count/gb-tag-count.css +2 -2
  117. package/dist/collection/components/gb-tag-count/gb-tag-count.js +1 -1
  118. package/dist/collection/components/gb-toast/gb-toast.css +2 -2
  119. package/dist/collection/components/gb-toast/gb-toast.js +1 -1
  120. package/dist/collection/components/gb-toast-button/gb-toast-button.css +2 -2
  121. package/dist/collection/components/gb-toast-button/gb-toast-button.js +1 -1
  122. package/dist/collection/components/gb-toggle/gb-toggle.js +1 -1
  123. package/dist/collection/components/gb-toggle-base/gb-toggle-base.css +2 -2
  124. package/dist/collection/components/gb-toggle-base/gb-toggle-base.js +2 -2
  125. package/dist/collection/components/gb-token-field/gb-token-field.css +2 -2
  126. package/dist/collection/components/gb-token-field/gb-token-field.js +1 -1
  127. package/dist/collection/components/gb-tooltip/gb-tooltip.css +2 -2
  128. package/dist/collection/components/gb-tooltip/gb-tooltip.js +1 -1
  129. package/dist/collection/components/gb-verification-code-field/gb-verification-code-field.css +2 -2
  130. package/dist/collection/components/gb-verification-code-field/gb-verification-code-field.js +2 -2
  131. package/dist/collection/global/global.css +2 -2
  132. package/dist/components/gb-avatar-add-button.js +1 -1
  133. package/dist/components/gb-avatar-contrast-inner-border.js +1 -1
  134. package/dist/components/gb-avatar-dropdown.js +6 -6
  135. package/dist/components/gb-avatar-group.js +7 -7
  136. package/dist/components/gb-avatar-group.js.map +1 -1
  137. package/dist/components/gb-avatar-label-group.js +1 -1
  138. package/dist/components/gb-avatar-profile-photo.js +4 -4
  139. package/dist/components/gb-avatar.js +1 -1
  140. package/dist/components/gb-badge-close.js +1 -1
  141. package/dist/components/gb-badge.js +1 -1
  142. package/dist/components/gb-btn.js +1 -1
  143. package/dist/components/gb-button-close.js +1 -1
  144. package/dist/components/gb-button.js +1 -1
  145. package/dist/components/gb-carousel-arrow.js +1 -1
  146. package/dist/components/gb-checkbox-group-item.js +1 -1
  147. package/dist/components/gb-checkbox-group.js +5 -5
  148. package/dist/components/gb-collapse-button.js +1 -1
  149. package/dist/components/gb-dropdown-items-with-shortcut.js +1 -1
  150. package/dist/components/gb-file-upload-item-base.js +1 -1
  151. package/dist/components/gb-file-upload.js +5 -5
  152. package/dist/components/gb-header-icon.js +1 -1
  153. package/dist/components/gb-header.js +8 -8
  154. package/dist/components/gb-header.js.map +1 -1
  155. package/dist/components/gb-help-dropdown.js +3 -3
  156. package/dist/components/gb-help-tooltip.js +1 -1
  157. package/dist/components/gb-horizontal-tabs.js +8 -8
  158. package/dist/components/gb-input-dropdown-menu-item.js +1 -1
  159. package/dist/components/gb-input-dropdown.js +1 -1
  160. package/dist/components/gb-input-field.js +66 -7
  161. package/dist/components/gb-input-field.js.map +1 -1
  162. package/dist/components/gb-megainput-field.js +1 -1
  163. package/dist/components/gb-notification-content.js +2 -2
  164. package/dist/components/gb-notification-pane.js +3 -3
  165. package/dist/components/gb-pagination-button-group-base.js +1 -1
  166. package/dist/components/gb-pagination-dot-indicator.js +1 -1
  167. package/dist/components/gb-pagination-number-base.js +2 -2
  168. package/dist/components/gb-pagination.js +2 -2
  169. package/dist/components/gb-password-button.js +1 -50
  170. package/dist/components/gb-password-button.js.map +1 -1
  171. package/dist/components/gb-progress-bar.js +1 -1
  172. package/dist/components/gb-progress-circle.js +1 -1
  173. package/dist/components/gb-rich-text.js +15 -15
  174. package/dist/components/gb-scrollbar.js +2 -2
  175. package/dist/components/gb-side-bar-item.js +1 -1
  176. package/dist/components/gb-sidebar.js +10 -10
  177. package/dist/components/gb-slider-control-handle.js +1 -1
  178. package/dist/components/gb-slider.js +4 -4
  179. package/dist/components/gb-status-indicator.js +1 -1
  180. package/dist/components/gb-tab-button-base.js +1 -1
  181. package/dist/components/gb-tag-checkbox.js +1 -1
  182. package/dist/components/gb-tag-close.js +1 -1
  183. package/dist/components/gb-tag-count.js +1 -1
  184. package/dist/components/gb-tag.js +1 -1
  185. package/dist/components/gb-toast-button.js +1 -1
  186. package/dist/components/gb-toast.js +5 -5
  187. package/dist/components/gb-toggle-base.js +1 -1
  188. package/dist/components/gb-toggle.js +2 -2
  189. package/dist/components/gb-token-field.js +3 -3
  190. package/dist/components/gb-tooltip.js +1 -1
  191. package/dist/components/gb-verification-code-field.js +4 -4
  192. package/dist/components/gb-wysiwyg-editor-icon.js +1 -1
  193. package/dist/components/gb-wysiwyg-toolbar.js +1 -1
  194. package/dist/components/gb-wysiwyg-tooltip.js +1 -1
  195. package/dist/components/{p-049f8084.js → p-0f3c2b65.js} +2 -2
  196. package/dist/components/{p-049f8084.js.map → p-0f3c2b65.js.map} +1 -1
  197. package/dist/components/{p-e4b16ff4.js → p-106adce5.js} +3 -3
  198. package/dist/components/{p-e4b16ff4.js.map → p-106adce5.js.map} +1 -1
  199. package/dist/components/{p-12d84b99.js → p-1e8cfd4f.js} +4 -4
  200. package/dist/components/{p-12d84b99.js.map → p-1e8cfd4f.js.map} +1 -1
  201. package/dist/components/{p-c2bbed0e.js → p-2b07a583.js} +3 -3
  202. package/dist/components/{p-c2bbed0e.js.map → p-2b07a583.js.map} +1 -1
  203. package/dist/components/{p-200efa06.js → p-2f832c69.js} +10 -10
  204. package/dist/components/{p-200efa06.js.map → p-2f832c69.js.map} +1 -1
  205. package/dist/components/{p-eaaefb80.js → p-2ff5a205.js} +4 -4
  206. package/dist/components/{p-eaaefb80.js.map → p-2ff5a205.js.map} +1 -1
  207. package/dist/components/{p-1c27c0dc.js → p-374f96e3.js} +10 -10
  208. package/dist/components/p-374f96e3.js.map +1 -0
  209. package/dist/components/{p-ad5a06e5.js → p-40e77b3f.js} +6 -6
  210. package/dist/components/{p-ad5a06e5.js.map → p-40e77b3f.js.map} +1 -1
  211. package/dist/components/{p-9023f483.js → p-411051a0.js} +2 -2
  212. package/dist/components/{p-9023f483.js.map → p-411051a0.js.map} +1 -1
  213. package/dist/components/{p-fd8f1d13.js → p-45e660b6.js} +6 -6
  214. package/dist/components/{p-fd8f1d13.js.map → p-45e660b6.js.map} +1 -1
  215. package/dist/components/{p-d033be88.js → p-525cedd3.js} +10 -10
  216. package/dist/components/p-525cedd3.js.map +1 -0
  217. package/dist/components/{p-55426266.js → p-5b4b41a1.js} +6 -6
  218. package/dist/components/{p-55426266.js.map → p-5b4b41a1.js.map} +1 -1
  219. package/dist/components/{p-0519dce2.js → p-69f6c3c0.js} +2 -2
  220. package/dist/components/{p-0519dce2.js.map → p-69f6c3c0.js.map} +1 -1
  221. package/dist/components/{p-43c70bd8.js → p-7ca3a134.js} +3 -3
  222. package/dist/components/{p-43c70bd8.js.map → p-7ca3a134.js.map} +1 -1
  223. package/dist/components/{p-f260054c.js → p-7d8046c5.js} +58 -55
  224. package/dist/components/p-7d8046c5.js.map +1 -0
  225. package/dist/components/{p-9af82179.js → p-813dce63.js} +3 -3
  226. package/dist/components/{p-9af82179.js.map → p-813dce63.js.map} +1 -1
  227. package/dist/components/{p-b20e1208.js → p-8790a8f8.js} +14 -14
  228. package/dist/components/{p-b20e1208.js.map → p-8790a8f8.js.map} +1 -1
  229. package/dist/components/{p-92877dec.js → p-8919365d.js} +3 -3
  230. package/dist/components/{p-92877dec.js.map → p-8919365d.js.map} +1 -1
  231. package/dist/components/{p-a8fc1a6f.js → p-9363bb21.js} +5 -5
  232. package/dist/components/{p-a8fc1a6f.js.map → p-9363bb21.js.map} +1 -1
  233. package/dist/components/{p-65de39d5.js → p-96a21b95.js} +4 -4
  234. package/dist/components/p-96a21b95.js.map +1 -0
  235. package/dist/components/{p-6b8ad833.js → p-a29219ba.js} +7 -7
  236. package/dist/components/{p-6b8ad833.js.map → p-a29219ba.js.map} +1 -1
  237. package/dist/components/{p-2849e182.js → p-ac8821f5.js} +3 -3
  238. package/dist/components/{p-2849e182.js.map → p-ac8821f5.js.map} +1 -1
  239. package/dist/components/{p-3eee1170.js → p-b819c4a3.js} +2 -2
  240. package/dist/components/{p-3eee1170.js.map → p-b819c4a3.js.map} +1 -1
  241. package/dist/components/{p-fc3b2733.js → p-ba27d41c.js} +4 -3
  242. package/dist/components/p-ba27d41c.js.map +1 -0
  243. package/dist/components/{p-14ae77f4.js → p-bb047e9e.js} +3 -3
  244. package/dist/components/{p-14ae77f4.js.map → p-bb047e9e.js.map} +1 -1
  245. package/dist/{esm/gb-password-button.entry.js → components/p-bcbba77a.js} +41 -10
  246. package/dist/{cjs/gb-password-button.cjs.entry.js.map → components/p-bcbba77a.js.map} +1 -1
  247. package/dist/components/{p-977764ce.js → p-c17ca314.js} +2 -2
  248. package/dist/components/{p-977764ce.js.map → p-c17ca314.js.map} +1 -1
  249. package/dist/components/{p-bf8461c6.js → p-c96a614c.js} +2 -2
  250. package/dist/components/{p-bf8461c6.js.map → p-c96a614c.js.map} +1 -1
  251. package/dist/components/{p-1787a21b.js → p-cebf2b53.js} +4 -4
  252. package/dist/components/{p-1787a21b.js.map → p-cebf2b53.js.map} +1 -1
  253. package/dist/components/{p-5ba87b93.js → p-dc4e23c7.js} +3 -3
  254. package/dist/components/{p-5ba87b93.js.map → p-dc4e23c7.js.map} +1 -1
  255. package/dist/components/{p-0767d31b.js → p-e977790c.js} +4 -4
  256. package/dist/components/{p-0767d31b.js.map → p-e977790c.js.map} +1 -1
  257. package/dist/components/{p-dacb769c.js → p-ef54b157.js} +6 -6
  258. package/dist/components/{p-dacb769c.js.map → p-ef54b157.js.map} +1 -1
  259. package/dist/components/{p-443d3de1.js → p-f4b686d3.js} +2 -2
  260. package/dist/components/{p-443d3de1.js.map → p-f4b686d3.js.map} +1 -1
  261. package/dist/esm/gb-avatar-dropdown.entry.js +53 -0
  262. package/dist/esm/gb-avatar-dropdown.entry.js.map +1 -0
  263. package/dist/esm/gb-avatar-group.entry.js +2 -2
  264. package/dist/esm/gb-avatar-group.entry.js.map +1 -1
  265. package/dist/esm/gb-avatar-label-group.entry.js +92 -0
  266. package/dist/esm/gb-avatar-label-group.entry.js.map +1 -0
  267. package/dist/esm/gb-avatar-profile-photo.entry.js +1 -1
  268. package/dist/esm/{gb-avatar_34.entry.js → gb-avatar_32.entry.js} +151 -257
  269. package/dist/esm/gb-avatar_32.entry.js.map +1 -0
  270. package/dist/esm/gb-button-close_2.entry.js +3 -3
  271. package/dist/esm/gb-checkbox-group-item.entry.js +1 -1
  272. package/dist/esm/gb-dropdown-items-with-shortcut.entry.js +28 -0
  273. package/dist/esm/gb-dropdown-items-with-shortcut.entry.js.map +1 -0
  274. package/dist/esm/gb-file-upload-item-base.entry.js +1 -1
  275. package/dist/esm/gb-help-dropdown.entry.js +2 -2
  276. package/dist/esm/gb-megainput-field.entry.js +3 -3
  277. package/dist/esm/gb-notification-content.entry.js +2 -2
  278. package/dist/esm/gb-progress-circle.entry.js +1 -1
  279. package/dist/esm/gb-rich-text.entry.js +2 -2
  280. package/dist/esm/gb-scrollbar.entry.js +2 -2
  281. package/dist/esm/gb-slider-control-handle.entry.js +2 -2
  282. package/dist/esm/gb-slider.entry.js +2 -2
  283. package/dist/esm/gb-toast-button.entry.js +2 -2
  284. package/dist/esm/gb-toast.entry.js +2 -2
  285. package/dist/esm/gb-toggle-base.entry.js +3 -3
  286. package/dist/esm/gb-toggle.entry.js +1 -1
  287. package/dist/esm/gb-token-field.entry.js +2 -2
  288. package/dist/esm/gb-verification-code-field.entry.js +3 -3
  289. package/dist/esm/gb-wysiwyg-editor-icon.entry.js +1 -1
  290. package/dist/esm/gb-wysiwyg-toolbar.entry.js +1 -1
  291. package/dist/esm/globuscomponents.js +1 -1
  292. package/dist/esm/loader.js +1 -1
  293. package/dist/globuscomponents/assets/cancel-01.svg +5 -0
  294. package/dist/globuscomponents/assets/copy-01.svg +5 -0
  295. package/dist/globuscomponents/assets/mail-02.svg +5 -0
  296. package/dist/globuscomponents/global/global.css +2 -2
  297. package/dist/globuscomponents/globuscomponents.css +2 -2
  298. package/dist/globuscomponents/globuscomponents.esm.js +1 -1
  299. package/dist/globuscomponents/globuscomponents.esm.js.map +1 -1
  300. package/dist/globuscomponents/p-0bc1121f.entry.js +2 -0
  301. package/dist/globuscomponents/p-0bc1121f.entry.js.map +1 -0
  302. package/dist/globuscomponents/p-0f414f9f.entry.js +2 -0
  303. package/dist/globuscomponents/{p-e77016c3.entry.js → p-2324c427.entry.js} +2 -2
  304. package/dist/globuscomponents/{p-c0e095b8.entry.js → p-24a974f3.entry.js} +2 -2
  305. package/dist/globuscomponents/{p-aa4006c2.entry.js → p-26cb7c9d.entry.js} +2 -2
  306. package/dist/globuscomponents/{p-c6e2e53a.entry.js → p-29ece541.entry.js} +2 -2
  307. package/dist/globuscomponents/{p-d6fb070d.entry.js → p-325acabb.entry.js} +2 -2
  308. package/dist/globuscomponents/p-38d53dd9.entry.js +2 -0
  309. package/dist/globuscomponents/p-38d53dd9.entry.js.map +1 -0
  310. package/dist/globuscomponents/{p-d7187578.entry.js → p-50481024.entry.js} +2 -2
  311. package/dist/globuscomponents/{p-790abb4e.entry.js → p-581bce75.entry.js} +2 -2
  312. package/dist/globuscomponents/p-581bce75.entry.js.map +1 -0
  313. package/dist/globuscomponents/{p-427cfeeb.entry.js → p-6b1178b3.entry.js} +2 -2
  314. package/dist/globuscomponents/{p-acf94a1a.entry.js → p-79659428.entry.js} +2 -2
  315. package/dist/globuscomponents/{p-cf24a49c.entry.js → p-8f5f24fc.entry.js} +2 -2
  316. package/dist/globuscomponents/{p-4e97f7cd.entry.js → p-928aabc3.entry.js} +2 -2
  317. package/dist/globuscomponents/{p-3fc3956d.entry.js → p-9ee50d85.entry.js} +2 -2
  318. package/dist/globuscomponents/{p-2adda6a5.entry.js → p-a4f0c19b.entry.js} +2 -2
  319. package/dist/globuscomponents/{p-d1103820.entry.js → p-a6f098dd.entry.js} +2 -2
  320. package/dist/globuscomponents/{p-a05326b0.entry.js → p-b59bac43.entry.js} +2 -2
  321. package/dist/globuscomponents/{p-67b452b7.entry.js → p-b7994673.entry.js} +2 -2
  322. package/dist/globuscomponents/p-b843b355.entry.js +2 -0
  323. package/dist/globuscomponents/p-bf439635.entry.js +2 -0
  324. package/dist/globuscomponents/p-bf439635.entry.js.map +1 -0
  325. package/dist/globuscomponents/{p-3e8c8ead.entry.js → p-c935a36a.entry.js} +2 -2
  326. package/dist/globuscomponents/{p-263e06c7.entry.js → p-e2d38d7a.entry.js} +2 -2
  327. package/dist/globuscomponents/{p-40f11c62.entry.js → p-ec76b2eb.entry.js} +2 -2
  328. package/dist/globuscomponents/p-f8671b41.entry.js +2 -0
  329. package/dist/globuscomponents/p-f8671b41.entry.js.map +1 -0
  330. package/dist/globuscomponents/readme.md +0 -2
  331. package/dist/types/components/gb-dropdown-items-with-shortcut/gb-dropdown-items-with-shortcut.d.ts +1 -0
  332. package/dist/types/components/gb-input-dropdown/gb-input-dropdown.d.ts +2 -1
  333. package/dist/types/components/gb-input-field/gb-input-field.d.ts +6 -0
  334. package/dist/types/components.d.ts +2 -0
  335. package/package.json +1 -1
  336. package/dist/cjs/gb-avatar_34.cjs.entry.js.map +0 -1
  337. package/dist/components/p-1c27c0dc.js.map +0 -1
  338. package/dist/components/p-65de39d5.js.map +0 -1
  339. package/dist/components/p-d033be88.js.map +0 -1
  340. package/dist/components/p-f260054c.js.map +0 -1
  341. package/dist/components/p-fc3b2733.js.map +0 -1
  342. package/dist/esm/gb-avatar_34.entry.js.map +0 -1
  343. package/dist/esm/gb-password-button.entry.js.map +0 -1
  344. package/dist/globuscomponents/p-1d2985a5.entry.js +0 -2
  345. package/dist/globuscomponents/p-2f557384.entry.js +0 -2
  346. package/dist/globuscomponents/p-2f557384.entry.js.map +0 -1
  347. package/dist/globuscomponents/p-5ea9e5cd.entry.js +0 -2
  348. package/dist/globuscomponents/p-790abb4e.entry.js.map +0 -1
  349. package/dist/globuscomponents/p-92c7f3ab.entry.js +0 -2
  350. package/dist/globuscomponents/p-92c7f3ab.entry.js.map +0 -1
  351. /package/dist/globuscomponents/{p-5ea9e5cd.entry.js.map → p-0f414f9f.entry.js.map} +0 -0
  352. /package/dist/globuscomponents/{p-e77016c3.entry.js.map → p-2324c427.entry.js.map} +0 -0
  353. /package/dist/globuscomponents/{p-c0e095b8.entry.js.map → p-24a974f3.entry.js.map} +0 -0
  354. /package/dist/globuscomponents/{p-aa4006c2.entry.js.map → p-26cb7c9d.entry.js.map} +0 -0
  355. /package/dist/globuscomponents/{p-c6e2e53a.entry.js.map → p-29ece541.entry.js.map} +0 -0
  356. /package/dist/globuscomponents/{p-d6fb070d.entry.js.map → p-325acabb.entry.js.map} +0 -0
  357. /package/dist/globuscomponents/{p-d7187578.entry.js.map → p-50481024.entry.js.map} +0 -0
  358. /package/dist/globuscomponents/{p-427cfeeb.entry.js.map → p-6b1178b3.entry.js.map} +0 -0
  359. /package/dist/globuscomponents/{p-acf94a1a.entry.js.map → p-79659428.entry.js.map} +0 -0
  360. /package/dist/globuscomponents/{p-cf24a49c.entry.js.map → p-8f5f24fc.entry.js.map} +0 -0
  361. /package/dist/globuscomponents/{p-4e97f7cd.entry.js.map → p-928aabc3.entry.js.map} +0 -0
  362. /package/dist/globuscomponents/{p-3fc3956d.entry.js.map → p-9ee50d85.entry.js.map} +0 -0
  363. /package/dist/globuscomponents/{p-2adda6a5.entry.js.map → p-a4f0c19b.entry.js.map} +0 -0
  364. /package/dist/globuscomponents/{p-d1103820.entry.js.map → p-a6f098dd.entry.js.map} +0 -0
  365. /package/dist/globuscomponents/{p-a05326b0.entry.js.map → p-b59bac43.entry.js.map} +0 -0
  366. /package/dist/globuscomponents/{p-67b452b7.entry.js.map → p-b7994673.entry.js.map} +0 -0
  367. /package/dist/globuscomponents/{p-1d2985a5.entry.js.map → p-b843b355.entry.js.map} +0 -0
  368. /package/dist/globuscomponents/{p-3e8c8ead.entry.js.map → p-c935a36a.entry.js.map} +0 -0
  369. /package/dist/globuscomponents/{p-263e06c7.entry.js.map → p-e2d38d7a.entry.js.map} +0 -0
  370. /package/dist/globuscomponents/{p-40f11c62.entry.js.map → p-ec76b2eb.entry.js.map} +0 -0
@@ -17,12 +17,12 @@ export class GbInputDropdownMenuItem {
17
17
  render() {
18
18
  return (
19
19
  // <div class="dropdown-container" onClick={() => (this.selected = !this.selected)}>
20
- h("div", { key: '8b2607fec616e71d0d04b7bf9a3c92cf89d8f109', class: "dropdown-container" }, h("div", { key: '5974b92a68b3777a61fee9a7a253f28b0b3e782b', class: {
20
+ h("div", { key: '831d3129b37106c7af547495a2e67ccadc948475', class: "dropdown-container" }, h("div", { key: 'ba4eb8be9ad10dd64ceb793877b71365606581e3', class: {
21
21
  'dropdown-item': true,
22
22
  'dropdown-item--selected': this.selected,
23
23
  'dropdown-item--disabled': this.state === 'disabled',
24
24
  [this.type]: true,
25
- }, role: "option", "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.state === 'disabled' ? 'true' : 'false' }, h("div", { key: '715d9b1fbce27804aa0f28d9ba3e8ea8ce6d855c', class: "content" }, this.type === 'icon_leading' && (h("svg", { key: '98071e46e1ed5edbd3d09f917a44bd8937722c78', id: "icon", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '1cb8f5c90620a14ad010459c66c61090feb2d99f', d: "M5.48131 12.9013C4.30234 13.6034 1.21114 15.0368 3.09388 16.8305C4.01359 17.7067 5.03791 18.3334 6.32572 18.3334H13.6743C14.9621 18.3334 15.9864 17.7067 16.9061 16.8305C18.7889 15.0368 15.6977 13.6034 14.5187 12.9013C11.754 11.2551 8.24599 11.2551 5.48131 12.9013Z", stroke: "#4B5565", "stroke-width": "1.5" }), h("path", { key: '874bc64d0e9937567e237130b4838a0124b92f9e', d: "M13.75 5.41669C13.75 7.48776 12.0711 9.16669 10 9.16669C7.92893 9.16669 6.25 7.48776 6.25 5.41669C6.25 3.34562 7.92893 1.66669 10 1.66669C12.0711 1.66669 13.75 3.34562 13.75 5.41669Z", stroke: "#4B5565", "stroke-width": "1.5" }))), this.type === 'avatar_leading' && (h("gb-avatar", { key: '405a429648228ccc71c2fbcc3b63b6fea65f0fc9', class: "avatar-icon", size: "xs", "status-icon": "false" }, h("slot", { key: 'c16a1c0750906bcfa149cfaf9633df411021df9f', name: "image", slot: "image" }))), this.type === 'dot_leading' && (h("svg", { key: '99f641214cee0a07d83284740fca29f4d4580b9c', id: "icon", xmlns: "http://www.w3.org/2000/svg", width: "10px", height: "10px", viewBox: "0 0 10 10", fill: "none" }, h("circle", { key: '0cd9a24fea938d587f00a9e9bb9dd4ea13dc4b2c', cx: "5", cy: "5", r: "4", fill: "#17B26A" }))), this.type === 'checkbox' && h("gb-checkbox", { key: '2aff6493c5927eb31cb873ac572cc3d7948786e1', class: "checkbox", size: "md", type: "checkbox", state: this.state, checked: this.selected }), h("slot", { key: '7b8fd042e2530084b64f3926792c1f96f86824f8', name: "name" }), this.supportingText && (h("span", { key: '20537480d14b9cd56b95beb9201984478ff99476' }, h("slot", { key: 'cd10d3d6a36ef2474b6167650235352c512a70cc', name: "supporting_text" })))), this.selected && this.type !== 'checkbox' && (h("svg", { key: 'a998472f2d5e87379465428a509ebb7e2316b0a9', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '2cb2f1003de871eae1ae2077bd924d9a51791c46', d: "M4.16669 12.0834C4.16669 12.0834 5.41669 12.0834 7.08335 15C7.08335 15 11.7157 7.36115 15.8334 5.83337", stroke: "#075DB2", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
25
+ }, role: "option", "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.state === 'disabled' ? 'true' : 'false' }, h("div", { key: '0f74788eec3168c582f2a17fbce1bd16b26b11f2', class: "content" }, this.type === 'icon_leading' && (h("svg", { key: 'ec50590a9e2c6bbfd27b0350323cacff1576b780', id: "icon", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '7ac733dd91d12aa9287b71a38c4049e2e05f445a', d: "M5.48131 12.9013C4.30234 13.6034 1.21114 15.0368 3.09388 16.8305C4.01359 17.7067 5.03791 18.3334 6.32572 18.3334H13.6743C14.9621 18.3334 15.9864 17.7067 16.9061 16.8305C18.7889 15.0368 15.6977 13.6034 14.5187 12.9013C11.754 11.2551 8.24599 11.2551 5.48131 12.9013Z", stroke: "#4B5565", "stroke-width": "1.5" }), h("path", { key: '1855ce3fe5f279a9f73d009f40d29c8c11b6ff21', d: "M13.75 5.41669C13.75 7.48776 12.0711 9.16669 10 9.16669C7.92893 9.16669 6.25 7.48776 6.25 5.41669C6.25 3.34562 7.92893 1.66669 10 1.66669C12.0711 1.66669 13.75 3.34562 13.75 5.41669Z", stroke: "#4B5565", "stroke-width": "1.5" }))), this.type === 'avatar_leading' && (h("gb-avatar", { key: 'd8db79544c827de489f7bafeacbe0c13ec814190', class: "avatar-icon", size: "xs", "status-icon": "false" }, h("slot", { key: 'aacf42c66d3cdd6ae334bafc178e5215f16c5a7e', name: "image", slot: "image" }))), this.type === 'dot_leading' && (h("svg", { key: '049f742ea6cc88c66faba91c145858f7008d2226', id: "icon", xmlns: "http://www.w3.org/2000/svg", width: "10px", height: "10px", viewBox: "0 0 10 10", fill: "none" }, h("circle", { key: '776bec4b8f0016b2afc7db528a2c364df79ab684', cx: "5", cy: "5", r: "4", fill: "#17B26A" }))), this.type === 'checkbox' && h("gb-checkbox", { key: 'e3bd1495ac2262c48ecd0a8ac5dd875fec140b7a', class: "checkbox", size: "md", type: "checkbox", state: this.state, checked: this.selected }), h("slot", { key: '8cc8ae30f5863215ce24a7883643d564c0ecd4e6', name: "name" }), this.supportingText && (h("span", { key: 'bb025a5e92f15cc6231854227c38ba4061c618e7' }, h("slot", { key: 'f237ee27c3fa0fe16a7fcbe13b3776b2522790c6', name: "supporting_text" })))), this.selected && this.type !== 'checkbox' && (h("svg", { key: '7eb6a224e3da4c0ebba869e8efc41a983bf182ea', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '33563872152ea36007c3bfd93e6efed24a59a36c', d: "M4.16669 12.0834C4.16669 12.0834 5.41669 12.0834 7.08335 15C7.08335 15 11.7157 7.36115 15.8334 5.83337", stroke: "#075DB2", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
26
26
  }
27
27
  static get is() { return "gb-input-dropdown-menu-item"; }
28
28
  static get encapsulation() { return "shadow"; }
@@ -176,11 +176,11 @@
176
176
  --color-text-subtle: var(--gray-500);
177
177
  }
178
178
 
179
- [data-theme="light"] {
179
+ [data-theme="dark"] {
180
180
  --color-text-subtle: var(--gray-500);
181
181
  }
182
182
 
183
- [data-theme="dark"] {
183
+ [data-theme="light"] {
184
184
  --color-text-disabled: var(--gray-300);
185
185
  }
186
186
 
@@ -2674,21 +2674,92 @@
2674
2674
  margin-top: -0.416em;
2675
2675
  }
2676
2676
 
2677
- input{
2678
- height: 100%;
2677
+ .input_container,
2678
+ .input_with_label{
2679
+ display: flex;
2680
+ flex-direction: column;
2681
+ gap: var(--spacing-2);
2682
+ }
2683
+
2684
+ .label{
2685
+ color: var(--color-text, #4B5565);
2686
+ }
2687
+
2688
+ .hint_text{
2689
+ color: var(--color-text-subtle, #697586);
2690
+ }
2691
+
2692
+ .content{
2693
+ width: 100%;
2694
+ /* height: 100%; */
2695
+ border: none;
2696
+ }
2697
+
2698
+ .content::placeholder{
2699
+ color: var(--color-text-disabled, #CDD5DF);
2700
+ }
2701
+
2702
+ .content:focus{
2703
+ outline: none;
2704
+ }
2705
+
2706
+ .icon{
2707
+ display: flex;
2708
+ align-items: center;
2679
2709
  }
2680
2710
 
2681
2711
  .input{
2682
2712
  display: flex;
2683
- width: 100%;
2684
2713
  align-items: center;
2685
2714
  gap: var(--spacing-2);
2686
2715
  align-self: stretch;
2687
2716
  border-radius: var(--rounded-sm);
2717
+ }
2718
+
2719
+ .input,
2720
+ .input.icon_leading,
2721
+ .password_input{
2688
2722
  border: 1px solid var(--color-border-input, #CDD5DF);
2689
2723
  background: var(--color-background-card, #FFFFFF);
2690
2724
  }
2691
2725
 
2726
+ .input.leading_text{
2727
+ flex-grow: 1;
2728
+ border-radius: var(--rounded-none, 0rem) 0.5rem 0.5rem var(--rounded-none, 0rem);
2729
+ }
2730
+
2731
+ .leading_text_input{
2732
+ display: flex;
2733
+ gap: var(--spacing-none);
2734
+ padding: var(--spacing-none);
2735
+ }
2736
+
2737
+ .add_on{
2738
+ display: flex;
2739
+ justify-content: center;
2740
+ align-items: center;
2741
+ border: 1px solid var(--color-border-input, #CDD5DF);
2742
+ border-right: none;
2743
+ padding: var(--spacing-2) var(--spacing-3);
2744
+ border-radius: 0.5rem var(--rounded-none) var(--rounded-none) 0.5rem;
2745
+ }
2746
+
2747
+ .text_input{
2748
+ flex-grow: 1;
2749
+ height: 100%;
2750
+ }
2751
+
2752
+ .trailing_button_text_input{
2753
+ display: flex;
2754
+ flex-grow: 1;
2755
+ }
2756
+
2757
+ .help_circle{
2758
+ display: flex;
2759
+ align-items: center;
2760
+ }
2761
+
2762
+ /* Size Styles */
2692
2763
  .input.sm{
2693
2764
  min-height: 2.5rem;
2694
2765
  padding: var(--spacing-2) var(--spacing-3) var(--spacing-2) var(--spacing-3);
@@ -2696,5 +2767,111 @@ input{
2696
2767
 
2697
2768
  .input.md{
2698
2769
  min-height: 3rem;
2699
- padding: var(--spacing-4) 0.875rem var(--spacing-4) var(--spacing-3);
2770
+ padding: var(--spacing-none) var(--spacing-3);
2771
+ }
2772
+
2773
+ /* State Styles */
2774
+ .input:focus-within,
2775
+ .password_input:focus-within,
2776
+ .count_text_input:focus-within{
2777
+ border: 1.3px solid var(--color-border-selected, #075DB2);
2778
+ }
2779
+
2780
+ .input.disabled,
2781
+ .password_input.disabled,
2782
+ .count_text_input.disabled,
2783
+ .action.disabled{
2784
+ border: 1px solid var(--color-border-disabled, #E3E8EF);
2785
+ }
2786
+
2787
+ .input.disabled,
2788
+ .content.disabled,
2789
+ .password_input.disabled,
2790
+ .count_text_input.disabled{
2791
+ background: var(--color-background-disabled, #F6F8FA);
2792
+ color: var(--color-text-subtle, #697586);
2793
+ cursor: not-allowed;
2794
+ pointer-events: none;
2795
+ }
2796
+
2797
+ .icon.disabled path[stroke]{
2798
+ stroke: var(--color-icon-disabled, #CDD5DF);
2799
+ }
2800
+
2801
+ .input.destructive,
2802
+ .input.icon_leading.destructive,
2803
+ .count_text_input.destructive{
2804
+ border: 1px solid var(--color-border-danger, #B51726);
2805
+ }
2806
+
2807
+ ::slotted([slot="tooltip_label"]){
2808
+ white-space: nowrap;
2809
+ color: var(--color-text, #4B5565);
2810
+ }
2811
+
2812
+ ::slotted([slot="tooltip_supporting_text"]){
2813
+ min-width: fit-content;
2814
+ max-width: 18.5rem;
2815
+ color: var(--color-text-subtle, #697586);
2816
+ margin-top: 5rem;
2817
+ }
2818
+
2819
+ /* Type Styles */
2820
+ .password_input{
2821
+ display: flex;
2822
+ gap: var(--spacing-3);
2823
+ align-items: center;
2824
+ align-self: stretch;
2825
+ border-radius: var(--rounded-sm);
2826
+ }
2827
+
2828
+ .password_content{
2829
+ display: flex;
2830
+ gap: var(--spacing-2);
2831
+ padding: 0.625rem var(--spacing-none) 0.625rem 0.875rem;
2832
+ flex-grow: 1;
2833
+ }
2834
+
2835
+ .dropdown{
2836
+ padding-right: var(--spacing-half);
2837
+ padding-left: var(--spacing-3);
2838
+ }
2839
+
2840
+ .password_icon_leading_content{
2841
+ display: flex;
2842
+ align-items: center;
2843
+ flex-grow: 1;
2844
+ gap: var(--spacing-2);
2845
+ }
2846
+
2847
+ .count_input{
2848
+ display: flex;
2849
+ gap: var(--spacing-none);
2850
+ }
2851
+
2852
+ .count_text_input{
2853
+ display: flex;
2854
+ padding: var(--spacing-none) var(--spacing-3);
2855
+ align-items: center;
2856
+ gap: var(--spacing-2);
2857
+ flex: 1 0 0;
2858
+ align-self: stretch;
2859
+ border: 1px solid var(--color-border-input, #CDD5DF);
2860
+ border-radius: 0.5rem var(--rounded-none) var(--rounded-none) 0.5rem;
2861
+ }
2862
+
2863
+ .action{
2864
+ border: 1px solid var(--color-border-input, #CDD5DF);
2865
+ border-left: none;
2866
+ display: flex;
2867
+ padding-right: var(--spacing-1);
2868
+ align-items: center;
2869
+ gap: var(--spacing-none);
2870
+ align-self: stretch;
2871
+ border-radius: var(--rounded-none) 0.5rem 0.5rem var(--rounded-none);
2872
+ }
2873
+
2874
+ hr{
2875
+ height: 100%;
2876
+ border: 0.5px solid var(--color-border-input, #CDD5DF);
2700
2877
  }
@@ -1,4 +1,4 @@
1
- import { h } from "@stencil/core";
1
+ import { h, Fragment, getAssetPath } from "@stencil/core";
2
2
  export class GbInputField {
3
3
  constructor() {
4
4
  this.size = undefined;
@@ -9,6 +9,7 @@ export class GbInputField {
9
9
  this.label = '';
10
10
  this.showHintText = false;
11
11
  this.hintText = '';
12
+ this.errorText = '';
12
13
  this.showPlaceholder = false;
13
14
  this.placeholder = '';
14
15
  this.showHelpIcon = false;
@@ -17,8 +18,15 @@ export class GbInputField {
17
18
  this.showCloseButton = false;
18
19
  this.inputValue = '';
19
20
  this.tags = [];
21
+ this.leadingIconSvg = '';
20
22
  this.isPasswordVisible = false;
21
23
  }
24
+ async loadIcon(iconName) {
25
+ const iconPath = getAssetPath(`${iconName}`);
26
+ const response = await fetch(iconPath);
27
+ const svg = await response.text();
28
+ this.leadingIconSvg = svg;
29
+ }
22
30
  /* Function to handle and emit the inputted values */
23
31
  handleInput(event) {
24
32
  const target = event.target;
@@ -29,11 +37,29 @@ export class GbInputField {
29
37
  togglePasswordVisibility() {
30
38
  this.isPasswordVisible = !this.isPasswordVisible;
31
39
  }
40
+ componentWillLoad() {
41
+ this.loadIcon(this.iconSwap);
42
+ }
43
+ componentDidLoad() {
44
+ const mainTextSlot = this.el.querySelector('[slot="tooltip_label"]');
45
+ const supportingTextSlot = this.el.querySelector('[slot="tooltip_supporting_text"]');
46
+ if (mainTextSlot) {
47
+ mainTextSlot.classList.add('text-xs-semi-bold');
48
+ }
49
+ if (supportingTextSlot) {
50
+ supportingTextSlot.classList.add('text-xs-regular');
51
+ }
52
+ }
32
53
  render() {
33
- return (h("div", { key: '5efa05e2e98e30b74236c412c333b0b13797ae96', class: `input_container` }, h("div", { key: 'f7db7664a9c3f81438d71e3fe309581e64d0785c', class: `input_with_label` }, this.showLabel && (h("p", { key: '5ca865d38dba106c2296186702228edb1b1fe924', class: "text-sm-medium" }, this.label)), h("div", { key: 'a41498bd72627ec9e9095d94e4a334240cfef663', class: `input ${this.size}` }, this.type === 'default' && [
34
- h("input", { key: '3ae2e2a35e7cdecb9b833fe28b7910161c0d74df', type: "text", placeholder: this.placeholder ? this.placeholder : '' }),
35
- h("div", { key: '108a4760e3fee45dfbc77258e7d311cba502b868', class: `help_circle` })
36
- ])), this.showHintText && (h("p", { key: '015a785d505058c62a6c97710e5afe092a6b97a3', class: "text-sm-regular" }, this.hintText))));
54
+ return (h("div", { key: '56a7fd285371d065857bd8e1a6a59277c8afdd99', class: `input_container` }, h("div", { key: 'fb290ba85afbacdb3cd34f08d858cdf66aed3e0b', class: `input_with_label` }, this.showLabel && h("p", { key: '94b5b6b993c28c344fa63d91d4d4d424aaa6e97f', class: "label text-sm-medium" }, this.label), this.type === 'default' && [
55
+ h("div", { key: '9ca772f824c6827f33fcba7466a8df8fab716028', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("input", { key: '7b5210ae7f6fe56cbbb27faff1ce2507e0bc48e4', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), h(Fragment, null, this.showValidation && (h("svg", { key: 'e14211a6470f5c1574aa07551784883b5780be8e', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '5fbc9392bf99e2cdc0021cace21e50c17e255329', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'c386bcbb86050d0666afa10c7d434ae92dd38a9a', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))))),
56
+ ], this.type === 'icon_leading' && [
57
+ h("div", { key: 'ff19fcbf836d5f0cdf5ce3e5bc8fdf2a766b52cb', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '84fa995080ac832d00dcd0e5c8fc2f9f806d75a9', class: `icon ${this.size} ${this.state}`, innerHTML: this.leadingIconSvg }), h("input", { key: '2aa7fb8fbafb1a4c9dc0260a002c4fbf65f16268', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '' }), h(Fragment, null, this.showValidation && !this.destructive && (h("svg", { key: '2e3cf11a1257ec9c568e22162a0b62837b987434', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '3d67950c9ff79f56a0941d23564a78cb383bf398', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'b45e73dc97b89e77fe359a94b50c9a0f7cd4de54', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))), this.showCloseButton && !this.destructive && (h("gb-button", { key: '7dd1473f23185bc1b0924cb4d5674a89720a3e6e', size: "sm", hierarchy: "tertiary_gray", icon: "only", state: "default", "icon-leading": true, "icon-leading-swap": "assets/cancel-01.svg" })))),
58
+ ], this.type === 'leading_text' && [
59
+ h("div", { key: 'b7fe07d6f74de8ef6247188829fdddc4db044067', class: "leading_text_input" }, h("div", { key: '1a0478752805918179ec493ef98adc01f363ecb2', class: `add_on` }, h("p", { key: '90651a5a47a5a0215751d78f8407cc45314b9a33', class: `text-md-regular`, style: { color: this.state === 'disabled' ? 'var(--color-text-disabled, #CDD5DF)' : 'var(--color-text, #4B5565)' } }, "http://")), h("div", { key: '005ed3642019bc87240478f4f01035bc3f56f9aa', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("input", { key: '5a8b0352c22bec657c53102f4e8625f94bb8808a', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '' }), this.showValidation && !this.destructive && (h("svg", { key: 'acb16b726b9a8a716eca1a8b3419efea32a92835', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '722df54d946bd0602eb056ca03416a8015abe2d4', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'a0d6dd531120c430200b8ed12ff961602d69e92c', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))))),
60
+ ], this.type === 'payment_input' && (h("div", { key: 'e37f834c8a1f1290e67eba15df286090ce37116c', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("svg", { key: '155e8548a9dc3d30415fffed38495347847f7393', xmlns: "http://www.w3.org/2000/svg", width: "23", height: "14", viewBox: "0 0 23 14", fill: "none" }, h("path", { key: 'b7f0fc30e8b88e2632fc932ada13b5bcfdbdfe1f', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.179 11.8294C9.99493 12.8275 8.45902 13.43 6.78069 13.43C3.03582 13.43 0 10.4303 0 6.72997C0 3.02966 3.03582 0.0299683 6.78069 0.0299683C8.45902 0.0299683 9.99493 0.632466 11.179 1.63051C12.363 0.632466 13.8989 0.0299683 15.5773 0.0299683C19.3221 0.0299683 22.358 3.02966 22.358 6.72997C22.358 10.4303 19.3221 13.43 15.5773 13.43C13.8989 13.43 12.363 12.8275 11.179 11.8294Z", fill: "#ED0006" }), h("path", { key: '7e3dec8458f54895742771573498609e13dab611', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.179 11.8294C12.6369 10.6005 13.5614 8.77192 13.5614 6.72997C13.5614 4.68801 12.6369 2.85941 11.179 1.63051C12.363 0.632465 13.8989 0.0299683 15.5772 0.0299683C19.3221 0.0299683 22.3579 3.02966 22.3579 6.72997C22.3579 10.4303 19.3221 13.43 15.5772 13.43C13.8989 13.43 12.363 12.8275 11.179 11.8294Z", fill: "#F9A000" }), h("path", { key: 'b9753e76f67aa2e5762b26306af18f71606e082b', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.179 11.8294C12.6369 10.6005 13.5614 8.77193 13.5614 6.72999C13.5614 4.68805 12.6369 2.85946 11.179 1.63055C9.72109 2.85946 8.79663 4.68805 8.79663 6.72999C8.79663 8.77193 9.72109 10.6005 11.179 11.8294Z", fill: "#FF5E00" })), h("input", { key: '399e05f4ed0778bcbda007fbeadad8a96fa9a1ee', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '' }), h(Fragment, null, this.showValidation && !this.destructive && (h("svg", { key: 'efb16cb4223300b290bfcfe4ca33f086f3d7b3ad', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '7605668cb75b499ecd63063c96106091aaef2cd5', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '1cf647c1adcb4df73fa89b82ad5cd4823c65c6d6', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))))), this.type === 'trailing_button' && (h("div", { key: '468a1e5fef7d81cdc913b9312d329bc90b06cce4', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '1d55ec43c2471780a580555da3601cd2d1033845', class: `trailing_button_text_input` }, h("input", { key: 'af434ccf7d14bad58ef97398afdfc110531d0476', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '' }), this.showValidation && !this.destructive && (h("svg", { key: '55d71e7c0a4a69d1263484b5ecebf4fe6e2d98a0', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '86da927840a3300944b2d165e5b0f57d820f6562', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '8afad44c82a44bc13454a5efec9f1e4e7e9a18df', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("gb-button", { key: 'd8945efe6ed40397f1e3ebe2f5ccae1fbaaec298', size: "lg", hierarchy: "tertiary_gray", icon: "only", state: this.state === 'disabled' ? 'disabled' : 'default', "icon-leading": true, "icon-leading-swap": "assets/copy-01.svg" }))), this.type === 'password' && (h("div", { key: '150e4c7e0d044f0997a6add1737d898479543e95', class: `password_input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '4f5ccc40a2765ae5bc595ea323a69f16ead4aaa5', class: `password_content` }, h("input", { key: 'd1834d7125a73a3dedd6fb799df717e050eb6c2e', class: `content text-md-regular ${this.type} ${this.state}`, type: this.isPasswordVisible ? 'text' : 'password', placeholder: this.placeholder ? this.placeholder : '' }), this.showValidation && !this.destructive && (h("svg", { key: '4f99f754570d71d35405af8d45d630c6b179f9c3', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '962a21fb801be6aeaaa6e7282e5c8ff43807130b', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: 'f4215c7a80b139be31a692aed5b12e4a55dfb2fb', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("div", { key: 'de575d650163fa4df9585935521b1668b4b53e38', class: `dropdown` }, h("gb-password-button", { key: '301a7512929a3d2002545edb5c5dc588385d7a73', onClick: () => this.togglePasswordVisibility() })))), this.type === 'password_icon_leading' && (h("div", { key: 'd8840b7de7164533e0e8c75386b7b7d976105d7f', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '39e25b7085d7c3f9107775e83af7b4c5d02a3204', class: `password_icon_leading_content` }, h("svg", { key: 'fcbac14a083a04025aa6ba1fa7fca924376b32b9', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '5918849bf4f312e97d1ff13f72b22525ddfe768b', d: "M12.0759 12.1667C11.6617 12.1667 11.3259 12.5025 11.3259 12.9167C11.3259 13.3309 11.6617 13.6667 12.0759 13.6667V12.1667ZM12.0833 13.6667C12.4976 13.6667 12.8333 13.3309 12.8333 12.9167C12.8333 12.5025 12.4976 12.1667 12.0833 12.1667V13.6667ZM7.91668 12.1667C7.50246 12.1667 7.16668 12.5025 7.16668 12.9167C7.16668 13.3309 7.50246 13.6667 7.91668 13.6667V12.1667ZM7.92415 13.6667C8.33836 13.6667 8.67415 13.3309 8.67415 12.9167C8.67415 12.5025 8.33836 12.1667 7.92415 12.1667V13.6667ZM16.4435 10.1294L17.1868 10.0293L16.4435 10.1294ZM13.7003 7.58258L13.7347 6.83337L13.7003 7.58258ZM13.7003 18.2508L13.7347 19L13.7003 18.2508ZM16.4435 15.704L15.7002 15.6039L16.4435 15.704ZM6.29973 7.58258L6.33417 8.33179L6.29973 7.58258ZM3.55652 10.1294L2.81323 10.0293L3.55652 10.1294ZM6.29973 18.2508L6.33417 17.5015L6.29973 18.2508ZM3.55652 15.704L4.29981 15.6039L3.55652 15.704ZM5.50001 7.5C5.50001 7.91422 5.8358 8.25 6.25001 8.25C6.66422 8.25 7.00001 7.91422 7.00001 7.5H5.50001ZM13 7.5C13 7.91422 13.3358 8.25 13.75 8.25C14.1642 8.25 14.5 7.91422 14.5 7.5H13ZM12.0759 13.6667H12.0833V12.1667H12.0759V13.6667ZM7.91668 13.6667H7.92415V12.1667H7.91668V13.6667ZM10 17.5833C8.69057 17.5833 7.50287 17.5553 6.33417 17.5015L6.26528 19C7.45761 19.0548 8.66829 19.0833 10 19.0833V17.5833ZM13.6659 17.5015C12.4972 17.5553 11.3094 17.5833 10 17.5833V19.0833C11.3317 19.0833 12.5424 19.0548 13.7347 19L13.6659 17.5015ZM17.1868 15.804C17.3105 14.8853 17.4167 13.9152 17.4167 12.9167H15.9167C15.9167 13.8142 15.8211 14.7058 15.7002 15.6039L17.1868 15.804ZM17.4167 12.9167C17.4167 11.9181 17.3105 10.948 17.1868 10.0293L15.7002 10.2295C15.8211 11.1275 15.9167 12.0192 15.9167 12.9167H17.4167ZM10 8.25C11.3095 8.25 12.4972 8.27806 13.6659 8.33179L13.7347 6.83337C12.5424 6.77856 11.3317 6.75 10 6.75V8.25ZM6.33417 8.33179C7.50287 8.27806 8.69057 8.25 10 8.25V6.75C8.66829 6.75 7.45761 6.77856 6.26528 6.83337L6.33417 8.33179ZM2.81323 10.0293C2.68953 10.948 2.58334 11.9181 2.58334 12.9167H4.08334C4.08334 12.0192 4.1789 11.1275 4.29981 10.2295L2.81323 10.0293ZM2.58334 12.9167C2.58334 13.9152 2.68953 14.8853 2.81323 15.804L4.29981 15.6039C4.1789 14.7058 4.08334 13.8142 4.08334 12.9167H2.58334ZM17.1868 10.0293C16.9527 8.29067 15.5122 6.91509 13.7347 6.83337L13.6659 8.33179C14.6943 8.37907 15.5595 9.18437 15.7002 10.2295L17.1868 10.0293ZM13.7347 19C15.5122 18.9183 16.9527 17.5427 17.1868 15.804L15.7002 15.6039C15.5595 16.649 14.6943 17.4543 13.6659 17.5015L13.7347 19ZM6.26528 6.83337C4.48781 6.91508 3.04732 8.29067 2.81323 10.0293L4.29981 10.2295C4.44052 9.18437 5.30576 8.37907 6.33417 8.33179L6.26528 6.83337ZM6.33417 17.5015C5.30576 17.4543 4.44052 16.649 4.29981 15.6039L2.81323 15.804C3.04732 17.5427 4.48782 18.9183 6.26528 19L6.33417 17.5015ZM7.00001 7.5V5.41667H5.50001V7.5H7.00001ZM13 5.41667V7.5H14.5V5.41667H13ZM10 2.41667C11.6569 2.41667 13 3.75981 13 5.41667H14.5C14.5 2.93139 12.4853 0.916668 10 0.916668V2.41667ZM7.00001 5.41667C7.00001 3.75981 8.34316 2.41667 10 2.41667V0.916668C7.51473 0.916668 5.50001 2.93139 5.50001 5.41667H7.00001Z", fill: "#4B5565" })), h("input", { key: 'eaaec83775f87e658de7ac8658c5b0e692629be8', class: `content text-md-regular ${this.type} ${this.state}`, type: this.isPasswordVisible ? 'text' : 'password', placeholder: this.placeholder ? this.placeholder : '' })), this.showValidation && !this.destructive && (h("svg", { key: '2c78ce717456ce21710f6f49626e2937597be562', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'b10f0ebec5a11f4e4e2fa25990fa1f60451a23f5', d: "M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334", stroke: "#079455", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.showHelpIcon && (h("div", { key: '9563808e8e53c28c64e42e9a2ab104807da85533', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" }))))), h("gb-password-button", { key: '73eea009e96449df41816b5e3dcbacfd91841b55', onClick: () => this.togglePasswordVisibility() }))), this.type === 'count' && [
61
+ h("div", { key: 'd2058b7462eb7d19281f9e6448069de8ac0deb46', class: `count_input` }, h("div", { key: 'fad17e32a4665d58c74bf6c4f2c22b7c950604aa', class: `count_text_input ${this.destructive ? 'destructive' : ''} ${this.state}` }, h("input", { key: '1c7bc8bedfcdd4b7f0510f64ae99dd392115ed74', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '' }), this.showHelpIcon && (h("div", { key: '5d29ca3e7d2fe8faeb8076409dea1cec01612361', class: `help_circle` }, !this.destructive ? (h("gb-help-tooltip", { "show-supporting-text": true }, h("slot", { name: "tooltip_label", slot: "label" }), h("slot", { name: "tooltip_supporting_text", slot: "supporting_text" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("path", { d: "M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z", stroke: "#B51726", "stroke-width": "1.33333", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h("div", { key: '303b18dcd810f1b4a104b9fd2772044132d04a73', class: `action ${this.state}` }, h("gb-button", { key: '12f2a96d6a34c6a9e097ab8e22ef8829f9bed012', size: "xl", state: this.state === 'disabled' ? 'disabled' : 'default', hierarchy: "tertiary_gray", icon: "only", "icon-leading": "true", "icon-leading-swap": "assets/minus_sign.svg" }), h("hr", { key: '4ee3e5ab77bec19e2ff9a7458a77185b898d8ec2' }), h("gb-button", { key: '73e2268941f69117fef2df4c8e098d745a891eab', size: "xl", state: this.state === 'disabled' ? 'disabled' : 'default', hierarchy: "tertiary_gray", icon: "only", "icon-leading": "true", "icon-leading-swap": "assets/plus_sign.svg" }))),
62
+ ]), this.showHintText && h("p", { key: '108c1902db9e0b917657ec918931f3c862ff1f6b', class: "hint_text text-sm-regular" }, this.hintText)));
37
63
  }
38
64
  static get is() { return "gb-input-field"; }
39
65
  static get encapsulation() { return "shadow"; }
@@ -202,6 +228,24 @@ export class GbInputField {
202
228
  "reflect": false,
203
229
  "defaultValue": "''"
204
230
  },
231
+ "errorText": {
232
+ "type": "string",
233
+ "mutable": false,
234
+ "complexType": {
235
+ "original": "string",
236
+ "resolved": "string",
237
+ "references": {}
238
+ },
239
+ "required": false,
240
+ "optional": false,
241
+ "docs": {
242
+ "tags": [],
243
+ "text": ""
244
+ },
245
+ "attribute": "error-text",
246
+ "reflect": false,
247
+ "defaultValue": "''"
248
+ },
205
249
  "showPlaceholder": {
206
250
  "type": "boolean",
207
251
  "mutable": false,
@@ -315,6 +359,7 @@ export class GbInputField {
315
359
  return {
316
360
  "inputValue": {},
317
361
  "tags": {},
362
+ "leadingIconSvg": {},
318
363
  "isPasswordVisible": {}
319
364
  };
320
365
  }
@@ -351,5 +396,6 @@ export class GbInputField {
351
396
  }
352
397
  }];
353
398
  }
399
+ static get elementRef() { return "el"; }
354
400
  }
355
401
  //# sourceMappingURL=gb-input-field.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gb-input-field.js","sourceRoot":"","sources":["../../../src/components/gb-input-field/gb-input-field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAA;AAQ9E,MAAM,OAAO,YAAY;;;;2BAGQ,KAAK;;yBAEP,KAAK;qBACV,EAAE;4BACM,KAAK;wBACV,EAAE;+BACM,KAAK;2BACV,EAAE;4BACA,KAAK;8BACH,KAAK;;+BAEH,KAAK;0BACX,EAAE;oBACN,EAAE;iCACU,KAAK;;IAI3C,qDAAqD;IACrD,WAAW,CAAC,KAAY;QACtB,MAAM,MAAM,GAAG,KAAK,CAAC,MAA0B,CAAC;QAChD,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC;QAC/B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC;IAED,qDAAqD;IACrD,wBAAwB;QACtB,IAAI,CAAC,iBAAiB,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC;IACnD,CAAC;IAED,MAAM;QACJ,OAAO,CACL,4DAAK,KAAK,EAAE,iBAAiB;YAC3B,4DAAK,KAAK,EAAE,kBAAkB;gBAC3B,IAAI,CAAC,SAAS,IAAI,CACjB,0DAAG,KAAK,EAAC,gBAAgB,IAAE,IAAI,CAAC,KAAK,CAAK,CAC3C;gBACD,4DAAK,KAAK,EAAE,SAAS,IAAI,CAAC,IAAI,EAAE,IAC7B,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI;oBAC1B,8DACA,IAAI,EAAC,MAAM,EACX,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,GACnD;oBACF,4DAAK,KAAK,EAAE,aAAa,GAAQ;iBAClC,CACG,CACF;YACL,IAAI,CAAC,YAAY,IAAI,CACpB,0DAAG,KAAK,EAAC,iBAAiB,IAAE,IAAI,CAAC,QAAQ,CAAK,CAC/C,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, State, Event, EventEmitter } from '@stencil/core'\r\nimport { GeneralSizes, InputFieldTypes } from '../../models/reusableModels'\r\n\r\n@Component({\r\n tag: 'gb-input-field',\r\n styleUrl: 'gb-input-field.css',\r\n shadow: true,\r\n})\r\nexport class GbInputField {\r\n @Prop() size: GeneralSizes;\r\n @Prop() type: InputFieldTypes;\r\n @Prop() destructive: boolean = false;\r\n @Prop() state: 'placeholder' | 'filled' | 'active' | 'disabled';\r\n @Prop() showLabel: boolean = false;\r\n @Prop() label: string = '';\r\n @Prop() showHintText: boolean = false;\r\n @Prop() hintText: string = '';\r\n @Prop() showPlaceholder: boolean = false;\r\n @Prop() placeholder: string = '';\r\n @Prop() showHelpIcon: boolean = false;\r\n @Prop() showValidation: boolean = false;\r\n @Prop() iconSwap?: string;\r\n @Prop() showCloseButton?: boolean = false;\r\n @State() inputValue: string = '';\r\n @State() tags: string[] = [];\r\n @State() isPasswordVisible: boolean = false;\r\n @Event() tagAdded: EventEmitter<string>;\r\n @Event() valueChanged: EventEmitter<string>;\r\n\r\n /* Function to handle and emit the inputted values */\r\n handleInput(event: Event) {\r\n const target = event.target as HTMLInputElement;\r\n this.inputValue = target.value;\r\n this.valueChanged.emit(this.inputValue);\r\n }\r\n\r\n /* Function to handle and emit the inputted values */\r\n togglePasswordVisibility() {\r\n this.isPasswordVisible = !this.isPasswordVisible;\r\n }\r\n\r\n render() {\r\n return (\r\n <div class={`input_container`}>\r\n <div class={`input_with_label`}>\r\n {this.showLabel && (\r\n <p class=\"text-sm-medium\">{this.label}</p>\r\n )}\r\n <div class={`input ${this.size}`}>\r\n {this.type === 'default' && [\r\n <input \r\n type=\"text\" \r\n placeholder={this.placeholder ? this.placeholder : ''} \r\n />,\r\n <div class={`help_circle`}></div>\r\n ]}\r\n </div>\r\n </div>\r\n {this.showHintText && (\r\n <p class=\"text-sm-regular\">{this.hintText}</p>\r\n )}\r\n </div>\r\n );\r\n }\r\n}"]}
1
+ {"version":3,"file":"gb-input-field.js","sourceRoot":"","sources":["../../../src/components/gb-input-field/gb-input-field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAgB,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAQ/G,MAAM,OAAO,YAAY;;;;2BAGQ,KAAK;;yBAEP,KAAK;qBACV,EAAE;4BACM,KAAK;wBACV,EAAE;yBACD,EAAE;+BACK,KAAK;2BACV,EAAE;4BACA,KAAK;8BACH,KAAK;;+BAEH,KAAK;0BACX,EAAE;oBACN,EAAE;8BACM,EAAE;iCACE,KAAK;;IAK3C,KAAK,CAAC,QAAQ,CA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,MAAM,uBACD,sBAAsB,GAC7B,CACT,CACF;iBACP,CACG;YACL,IAAI,CAAC,YAAY,IAAI,0DAAG,KAAK,EAAC,2BAA2B,IAAE,IAAI,CAAC,QAAQ,CAAK,CAC1E,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, State, Event, EventEmitter, Fragment, Element, getAssetPath } from '@stencil/core'\r\nimport { GeneralSizes, InputFieldTypes } from '../../models/reusableModels'\r\n\r\n@Component({\r\n tag: 'gb-input-field',\r\n styleUrl: 'gb-input-field.css',\r\n shadow: true,\r\n})\r\nexport class GbInputField {\r\n @Prop() size: GeneralSizes;\r\n @Prop() type: InputFieldTypes;\r\n @Prop() destructive: boolean = false;\r\n @Prop() state: 'placeholder' | 'filled' | 'active' | 'disabled';\r\n @Prop() showLabel: boolean = false;\r\n @Prop() label: string = '';\r\n @Prop() showHintText: boolean = false;\r\n @Prop() hintText: string = '';\r\n @Prop() errorText: string = '';\r\n @Prop() showPlaceholder: boolean = false;\r\n @Prop() placeholder: string = '';\r\n @Prop() showHelpIcon: boolean = false;\r\n @Prop() showValidation: boolean = false;\r\n @Prop() iconSwap?: string;\r\n @Prop() showCloseButton?: boolean = false;\r\n @State() inputValue: string = '';\r\n @State() tags: string[] = [];\r\n @State() leadingIconSvg: string = '';\r\n @State() isPasswordVisible: boolean = false;\r\n @Event() tagAdded: EventEmitter<string>;\r\n @Event() valueChanged: EventEmitter<string>;\r\n @Element() el: HTMLElement;\r\n\r\n async loadIcon(iconName: string) {\r\n const iconPath = getAssetPath(`${iconName}`);\r\n const response = await fetch(iconPath);\r\n const svg = await response.text();\r\n this.leadingIconSvg = svg;\r\n }\r\n\r\n /* Function to handle and emit the inputted values */\r\n handleInput(event: Event) {\r\n const target = event.target as HTMLInputElement;\r\n this.inputValue = target.value;\r\n this.valueChanged.emit(this.inputValue);\r\n }\r\n\r\n /* Function to handle and emit the inputted values */\r\n togglePasswordVisibility() {\r\n this.isPasswordVisible = !this.isPasswordVisible;\r\n }\r\n componentWillLoad() {\r\n this.loadIcon(this.iconSwap);\r\n }\r\n\r\n componentDidLoad() {\r\n const mainTextSlot = this.el.querySelector('[slot=\"tooltip_label\"]');\r\n const supportingTextSlot = this.el.querySelector('[slot=\"tooltip_supporting_text\"]');\r\n\r\n if (mainTextSlot) {\r\n mainTextSlot.classList.add('text-xs-semi-bold');\r\n }\r\n\r\n if (supportingTextSlot) {\r\n supportingTextSlot.classList.add('text-xs-regular');\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <div class={`input_container`}>\r\n <div class={`input_with_label`}>\r\n {this.showLabel && <p class=\"label text-sm-medium\">{this.label}</p>}\r\n {this.type === 'default' && [\r\n <div class={`input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}`}>\r\n <input\r\n class={`content text-md-regular ${this.type} ${this.state}`}\r\n type=\"text\"\r\n placeholder={this.placeholder ? this.placeholder : ''}\r\n onInput={event => this.handleInput(event)}\r\n />\r\n <>\r\n {this.showValidation && (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334\"\r\n stroke=\"#079455\"\r\n stroke-width=\"1.5\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n {this.showHelpIcon && (\r\n <div class={`help_circle`}>\r\n {!this.destructive ? (\r\n <gb-help-tooltip show-supporting-text={true}>\r\n <slot name=\"tooltip_label\" slot=\"label\"></slot>\r\n <slot name=\"tooltip_supporting_text\" slot=\"supporting_text\"></slot>\r\n </gb-help-tooltip>\r\n ) : (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\r\n <path\r\n d=\"M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z\"\r\n stroke=\"#B51726\"\r\n stroke-width=\"1.33333\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n </div>\r\n )}\r\n </>\r\n </div>,\r\n ]}\r\n {this.type === 'icon_leading' && [\r\n <div class={`input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}`}>\r\n <div class={`icon ${this.size} ${this.state}`} innerHTML={this.leadingIconSvg}></div>\r\n <input class={`content text-md-regular ${this.type} ${this.state}`} type=\"text\" placeholder={this.placeholder ? this.placeholder : ''} />\r\n <>\r\n {this.showValidation && !this.destructive && (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334\"\r\n stroke=\"#079455\"\r\n stroke-width=\"1.5\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n {this.showHelpIcon && (\r\n <div class={`help_circle`}>\r\n {!this.destructive ? (\r\n <gb-help-tooltip show-supporting-text={true}>\r\n <slot name=\"tooltip_label\" slot=\"label\"></slot>\r\n <slot name=\"tooltip_supporting_text\" slot=\"supporting_text\"></slot>\r\n </gb-help-tooltip>\r\n ) : (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\r\n <path\r\n d=\"M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z\"\r\n stroke=\"#B51726\"\r\n stroke-width=\"1.33333\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n </div>\r\n )}\r\n {this.showCloseButton && !this.destructive && (\r\n <gb-button size=\"sm\" hierarchy=\"tertiary_gray\" icon=\"only\" state=\"default\" icon-leading={true} icon-leading-swap=\"assets/cancel-01.svg\"></gb-button>\r\n )}\r\n </>\r\n </div>,\r\n ]}\r\n {this.type === 'leading_text' && [\r\n <div class=\"leading_text_input\">\r\n <div class={`add_on`}>\r\n <p class={`text-md-regular`} style={{ color: this.state === 'disabled' ? 'var(--color-text-disabled, #CDD5DF)' : 'var(--color-text, #4B5565)' }}>\r\n http://\r\n </p>\r\n </div>\r\n <div class={`input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}`}>\r\n <input class={`content text-md-regular ${this.type} ${this.state}`} type=\"text\" placeholder={this.placeholder ? this.placeholder : ''} />\r\n {this.showValidation && !this.destructive && (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334\"\r\n stroke=\"#079455\"\r\n stroke-width=\"1.5\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n {this.showHelpIcon && (\r\n <div class={`help_circle`}>\r\n {!this.destructive ? (\r\n <gb-help-tooltip show-supporting-text={true}>\r\n <slot name=\"tooltip_label\" slot=\"label\"></slot>\r\n <slot name=\"tooltip_supporting_text\" slot=\"supporting_text\"></slot>\r\n </gb-help-tooltip>\r\n ) : (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\r\n <path\r\n d=\"M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z\"\r\n stroke=\"#B51726\"\r\n stroke-width=\"1.33333\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n </div>,\r\n ]}\r\n {this.type === 'payment_input' && (\r\n <div class={`input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}`}>\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"23\" height=\"14\" viewBox=\"0 0 23 14\" fill=\"none\">\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M11.179 11.8294C9.99493 12.8275 8.45902 13.43 6.78069 13.43C3.03582 13.43 0 10.4303 0 6.72997C0 3.02966 3.03582 0.0299683 6.78069 0.0299683C8.45902 0.0299683 9.99493 0.632466 11.179 1.63051C12.363 0.632466 13.8989 0.0299683 15.5773 0.0299683C19.3221 0.0299683 22.358 3.02966 22.358 6.72997C22.358 10.4303 19.3221 13.43 15.5773 13.43C13.8989 13.43 12.363 12.8275 11.179 11.8294Z\"\r\n fill=\"#ED0006\"\r\n />\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M11.179 11.8294C12.6369 10.6005 13.5614 8.77192 13.5614 6.72997C13.5614 4.68801 12.6369 2.85941 11.179 1.63051C12.363 0.632465 13.8989 0.0299683 15.5772 0.0299683C19.3221 0.0299683 22.3579 3.02966 22.3579 6.72997C22.3579 10.4303 19.3221 13.43 15.5772 13.43C13.8989 13.43 12.363 12.8275 11.179 11.8294Z\"\r\n fill=\"#F9A000\"\r\n />\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M11.179 11.8294C12.6369 10.6005 13.5614 8.77193 13.5614 6.72999C13.5614 4.68805 12.6369 2.85946 11.179 1.63055C9.72109 2.85946 8.79663 4.68805 8.79663 6.72999C8.79663 8.77193 9.72109 10.6005 11.179 11.8294Z\"\r\n fill=\"#FF5E00\"\r\n />\r\n </svg>\r\n <input class={`content text-md-regular ${this.type} ${this.state}`} type=\"text\" placeholder={this.placeholder ? this.placeholder : ''} />\r\n <>\r\n {this.showValidation && !this.destructive && (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334\"\r\n stroke=\"#079455\"\r\n stroke-width=\"1.5\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n {this.showHelpIcon && (\r\n <div class={`help_circle`}>\r\n {!this.destructive ? (\r\n <gb-help-tooltip show-supporting-text={true}>\r\n <slot name=\"tooltip_label\" slot=\"label\"></slot>\r\n <slot name=\"tooltip_supporting_text\" slot=\"supporting_text\"></slot>\r\n </gb-help-tooltip>\r\n ) : (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\r\n <path\r\n d=\"M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z\"\r\n stroke=\"#B51726\"\r\n stroke-width=\"1.33333\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n </div>\r\n )}\r\n </>\r\n </div>\r\n )}\r\n {this.type === 'trailing_button' && (\r\n <div class={`input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}`}>\r\n <div class={`trailing_button_text_input`}>\r\n <input class={`content text-md-regular ${this.type} ${this.state}`} type=\"text\" placeholder={this.placeholder ? this.placeholder : ''} />\r\n {this.showValidation && !this.destructive && (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334\"\r\n stroke=\"#079455\"\r\n stroke-width=\"1.5\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n {this.showHelpIcon && (\r\n <div class={`help_circle`}>\r\n {!this.destructive ? (\r\n <gb-help-tooltip show-supporting-text={true}>\r\n <slot name=\"tooltip_label\" slot=\"label\"></slot>\r\n <slot name=\"tooltip_supporting_text\" slot=\"supporting_text\"></slot>\r\n </gb-help-tooltip>\r\n ) : (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\r\n <path\r\n d=\"M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z\"\r\n stroke=\"#B51726\"\r\n stroke-width=\"1.33333\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n <gb-button\r\n size=\"lg\"\r\n hierarchy=\"tertiary_gray\"\r\n icon=\"only\"\r\n state={this.state === 'disabled' ? 'disabled' : 'default'}\r\n icon-leading={true}\r\n icon-leading-swap=\"assets/copy-01.svg\"\r\n ></gb-button>\r\n </div>\r\n )}\r\n {this.type === 'password' && (\r\n <div class={`password_input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}`}>\r\n <div class={`password_content`}>\r\n <input\r\n class={`content text-md-regular ${this.type} ${this.state}`}\r\n type={this.isPasswordVisible ? 'text' : 'password'}\r\n placeholder={this.placeholder ? this.placeholder : ''}\r\n />\r\n {this.showValidation && !this.destructive && (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334\"\r\n stroke=\"#079455\"\r\n stroke-width=\"1.5\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n {this.showHelpIcon && (\r\n <div class={`help_circle`}>\r\n {!this.destructive ? (\r\n <gb-help-tooltip show-supporting-text={true}>\r\n <slot name=\"tooltip_label\" slot=\"label\"></slot>\r\n <slot name=\"tooltip_supporting_text\" slot=\"supporting_text\"></slot>\r\n </gb-help-tooltip>\r\n ) : (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\r\n <path\r\n d=\"M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z\"\r\n stroke=\"#B51726\"\r\n stroke-width=\"1.33333\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n <div class={`dropdown`}>\r\n <gb-password-button onClick={() => this.togglePasswordVisibility()}></gb-password-button>\r\n </div>\r\n </div>\r\n )}\r\n {this.type === 'password_icon_leading' && (\r\n <div class={`input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}`}>\r\n <div class={`password_icon_leading_content`}>\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M12.0759 12.1667C11.6617 12.1667 11.3259 12.5025 11.3259 12.9167C11.3259 13.3309 11.6617 13.6667 12.0759 13.6667V12.1667ZM12.0833 13.6667C12.4976 13.6667 12.8333 13.3309 12.8333 12.9167C12.8333 12.5025 12.4976 12.1667 12.0833 12.1667V13.6667ZM7.91668 12.1667C7.50246 12.1667 7.16668 12.5025 7.16668 12.9167C7.16668 13.3309 7.50246 13.6667 7.91668 13.6667V12.1667ZM7.92415 13.6667C8.33836 13.6667 8.67415 13.3309 8.67415 12.9167C8.67415 12.5025 8.33836 12.1667 7.92415 12.1667V13.6667ZM16.4435 10.1294L17.1868 10.0293L16.4435 10.1294ZM13.7003 7.58258L13.7347 6.83337L13.7003 7.58258ZM13.7003 18.2508L13.7347 19L13.7003 18.2508ZM16.4435 15.704L15.7002 15.6039L16.4435 15.704ZM6.29973 7.58258L6.33417 8.33179L6.29973 7.58258ZM3.55652 10.1294L2.81323 10.0293L3.55652 10.1294ZM6.29973 18.2508L6.33417 17.5015L6.29973 18.2508ZM3.55652 15.704L4.29981 15.6039L3.55652 15.704ZM5.50001 7.5C5.50001 7.91422 5.8358 8.25 6.25001 8.25C6.66422 8.25 7.00001 7.91422 7.00001 7.5H5.50001ZM13 7.5C13 7.91422 13.3358 8.25 13.75 8.25C14.1642 8.25 14.5 7.91422 14.5 7.5H13ZM12.0759 13.6667H12.0833V12.1667H12.0759V13.6667ZM7.91668 13.6667H7.92415V12.1667H7.91668V13.6667ZM10 17.5833C8.69057 17.5833 7.50287 17.5553 6.33417 17.5015L6.26528 19C7.45761 19.0548 8.66829 19.0833 10 19.0833V17.5833ZM13.6659 17.5015C12.4972 17.5553 11.3094 17.5833 10 17.5833V19.0833C11.3317 19.0833 12.5424 19.0548 13.7347 19L13.6659 17.5015ZM17.1868 15.804C17.3105 14.8853 17.4167 13.9152 17.4167 12.9167H15.9167C15.9167 13.8142 15.8211 14.7058 15.7002 15.6039L17.1868 15.804ZM17.4167 12.9167C17.4167 11.9181 17.3105 10.948 17.1868 10.0293L15.7002 10.2295C15.8211 11.1275 15.9167 12.0192 15.9167 12.9167H17.4167ZM10 8.25C11.3095 8.25 12.4972 8.27806 13.6659 8.33179L13.7347 6.83337C12.5424 6.77856 11.3317 6.75 10 6.75V8.25ZM6.33417 8.33179C7.50287 8.27806 8.69057 8.25 10 8.25V6.75C8.66829 6.75 7.45761 6.77856 6.26528 6.83337L6.33417 8.33179ZM2.81323 10.0293C2.68953 10.948 2.58334 11.9181 2.58334 12.9167H4.08334C4.08334 12.0192 4.1789 11.1275 4.29981 10.2295L2.81323 10.0293ZM2.58334 12.9167C2.58334 13.9152 2.68953 14.8853 2.81323 15.804L4.29981 15.6039C4.1789 14.7058 4.08334 13.8142 4.08334 12.9167H2.58334ZM17.1868 10.0293C16.9527 8.29067 15.5122 6.91509 13.7347 6.83337L13.6659 8.33179C14.6943 8.37907 15.5595 9.18437 15.7002 10.2295L17.1868 10.0293ZM13.7347 19C15.5122 18.9183 16.9527 17.5427 17.1868 15.804L15.7002 15.6039C15.5595 16.649 14.6943 17.4543 13.6659 17.5015L13.7347 19ZM6.26528 6.83337C4.48781 6.91508 3.04732 8.29067 2.81323 10.0293L4.29981 10.2295C4.44052 9.18437 5.30576 8.37907 6.33417 8.33179L6.26528 6.83337ZM6.33417 17.5015C5.30576 17.4543 4.44052 16.649 4.29981 15.6039L2.81323 15.804C3.04732 17.5427 4.48782 18.9183 6.26528 19L6.33417 17.5015ZM7.00001 7.5V5.41667H5.50001V7.5H7.00001ZM13 5.41667V7.5H14.5V5.41667H13ZM10 2.41667C11.6569 2.41667 13 3.75981 13 5.41667H14.5C14.5 2.93139 12.4853 0.916668 10 0.916668V2.41667ZM7.00001 5.41667C7.00001 3.75981 8.34316 2.41667 10 2.41667V0.916668C7.51473 0.916668 5.50001 2.93139 5.50001 5.41667H7.00001Z\"\r\n fill=\"#4B5565\"\r\n />\r\n </svg>\r\n <input\r\n class={`content text-md-regular ${this.type} ${this.state}`}\r\n type={this.isPasswordVisible ? 'text' : 'password'}\r\n placeholder={this.placeholder ? this.placeholder : ''}\r\n />\r\n </div>\r\n {this.showValidation && !this.destructive && (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\r\n <path\r\n d=\"M4.16675 12.0833C4.16675 12.0833 5.41675 12.0833 7.08341 15C7.08341 15 11.7158 7.36112 15.8334 5.83334\"\r\n stroke=\"#079455\"\r\n stroke-width=\"1.5\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n {this.showHelpIcon && (\r\n <div class={`help_circle`}>\r\n {!this.destructive ? (\r\n <gb-help-tooltip show-supporting-text={true}>\r\n <slot name=\"tooltip_label\" slot=\"label\"></slot>\r\n <slot name=\"tooltip_supporting_text\" slot=\"supporting_text\"></slot>\r\n </gb-help-tooltip>\r\n ) : (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\r\n <path\r\n d=\"M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z\"\r\n stroke=\"#B51726\"\r\n stroke-width=\"1.33333\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n </div>\r\n )}\r\n <gb-password-button onClick={() => this.togglePasswordVisibility()}></gb-password-button>\r\n </div>\r\n )}\r\n {this.type === 'count' && [\r\n <div class={`count_input`}>\r\n <div class={`count_text_input ${this.destructive ? 'destructive' : ''} ${this.state}`}>\r\n <input class={`content text-md-regular ${this.type} ${this.state}`} type=\"text\" placeholder={this.placeholder ? this.placeholder : ''} />\r\n {this.showHelpIcon && (\r\n <div class={`help_circle`}>\r\n {!this.destructive ? (\r\n <gb-help-tooltip show-supporting-text={true}>\r\n <slot name=\"tooltip_label\" slot=\"label\"></slot>\r\n <slot name=\"tooltip_supporting_text\" slot=\"supporting_text\"></slot>\r\n </gb-help-tooltip>\r\n ) : (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\r\n <path\r\n d=\"M7.99458 10H8.00057M7.99992 8.00001V5.33334M14.6666 8.00001C14.6666 11.6819 11.6818 14.6667 7.99992 14.6667C4.31802 14.6667 1.33325 11.6819 1.33325 8.00001C1.33325 4.31811 4.31802 1.33334 7.99992 1.33334C11.6818 1.33334 14.6666 4.31811 14.6666 8.00001Z\"\r\n stroke=\"#B51726\"\r\n stroke-width=\"1.33333\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n <div class={`action ${this.state}`}>\r\n <gb-button\r\n size=\"xl\"\r\n state={this.state === 'disabled' ? 'disabled' : 'default'}\r\n hierarchy=\"tertiary_gray\"\r\n icon=\"only\"\r\n icon-leading=\"true\"\r\n icon-leading-swap=\"assets/minus_sign.svg\"\r\n ></gb-button>\r\n <hr />\r\n <gb-button\r\n size=\"xl\"\r\n state={this.state === 'disabled' ? 'disabled' : 'default'}\r\n hierarchy=\"tertiary_gray\"\r\n icon=\"only\"\r\n icon-leading=\"true\"\r\n icon-leading-swap=\"assets/plus_sign.svg\"\r\n ></gb-button>\r\n </div>\r\n </div>,\r\n ]}\r\n </div>\r\n {this.showHintText && <p class=\"hint_text text-sm-regular\">{this.hintText}</p>}\r\n </div>\r\n );\r\n }\r\n}"]}
@@ -176,11 +176,11 @@
176
176
  --color-text-subtle: var(--gray-500);
177
177
  }
178
178
 
179
- [data-theme="light"] {
179
+ [data-theme="dark"] {
180
180
  --color-text-subtle: var(--gray-500);
181
181
  }
182
182
 
183
- [data-theme="dark"] {
183
+ [data-theme="light"] {
184
184
  --color-text-disabled: var(--gray-300);
185
185
  }
186
186
 
@@ -16,10 +16,10 @@ export class GbMegaInputField {
16
16
  }
17
17
  }
18
18
  render() {
19
- return (h("div", { key: 'ec51cc87c4f4aff877a2712118090a39532bd0cd', class: {
19
+ return (h("div", { key: '9ab966a129de26ab0b9dcd6b7431a4f1290d9687', class: {
20
20
  [this.size]: true,
21
21
  disabled: this.state === 'disabled'
22
- } }, h("input", { key: '3570245e3b8a601f4e1e0da85d0944600b99d5a7', class: {
22
+ } }, h("input", { key: 'd82f56e449e1aec757aaacd394855a284fb3eaf8', class: {
23
23
  [this.size]: true,
24
24
  disabled: this.state === 'disabled'
25
25
  }, type: "number", min: "0", max: "1", placeholder: "0", value: this.inputValue, onInput: (event) => this.handleInput(event) })));
@@ -176,11 +176,11 @@
176
176
  --color-text-subtle: var(--gray-500);
177
177
  }
178
178
 
179
- [data-theme="light"] {
179
+ [data-theme="dark"] {
180
180
  --color-text-subtle: var(--gray-500);
181
181
  }
182
182
 
183
- [data-theme="dark"] {
183
+ [data-theme="light"] {
184
184
  --color-text-disabled: var(--gray-300);
185
185
  }
186
186
 
@@ -8,7 +8,7 @@ export class GbNotificationContent {
8
8
  }
9
9
  render() {
10
10
  const iconSrc = getAssetPath(`assets/${this.icon}.svg`);
11
- return (h("div", { key: '84524b773d4bc20a97687cde4fc5e49f6045e424', class: "notification-container" }, h("div", { key: '1419aea5a9984e7a6a12a3599a2f07bd3bcb90f4', class: "notification-title" }, this.icon && (h("div", { key: 'cdf3417fe5d030201b2072af7742717dc8bf75fb', class: "icon" }, h("img", { key: 'c7168829de25859371705c03cfd050d5886a7cfe', src: iconSrc, alt: "Icon" }))), h("label", { key: 'a79855cd9059e1eb4503cf6aaaedc5006321946c' }, this.label), h("span", { key: '6198165ea885535688e74efbe8c8b01b39a6266c', class: "time" }, this.time)), h("div", { key: '18b358082335c1c6b5f870b692e97143e16e6850', class: "supporting-text" }, this.supportingText)));
11
+ return (h("div", { key: '4cb6ae6fc9ef22a51bd347e202bdf5391c45bd57', class: "notification-container" }, h("div", { key: '34e203845568763cbeb4b63596f896c0a9873fb9', class: "notification-title" }, this.icon && (h("div", { key: '32847eb9c72897ad7f1fbf53dc53f179c31f12f9', class: "icon" }, h("img", { key: '9ae6a47dee70658625dd839eac5bf5346daf573a', src: iconSrc, alt: "Icon" }))), h("label", { key: 'efe4d39e50854b76fc58fe91064e50d39f744675' }, this.label), h("span", { key: 'af9d79e0815a43ed1632dba66fdd1bfa3eaf08df', class: "time" }, this.time)), h("div", { key: 'ff59638d1aa30465b777e0ba27a80055830ede29', class: "supporting-text" }, this.supportingText)));
12
12
  }
13
13
  static get is() { return "gb-notification-content"; }
14
14
  static get encapsulation() { return "shadow"; }
@@ -176,11 +176,11 @@
176
176
  --color-text-subtle: var(--gray-500);
177
177
  }
178
178
 
179
- [data-theme="light"] {
179
+ [data-theme="dark"] {
180
180
  --color-text-subtle: var(--gray-500);
181
181
  }
182
182
 
183
- [data-theme="dark"] {
183
+ [data-theme="light"] {
184
184
  --color-text-disabled: var(--gray-300);
185
185
  }
186
186
 
@@ -26,7 +26,7 @@ export class GbNotificationPane {
26
26
  notification.remove();
27
27
  }
28
28
  render() {
29
- return (h("div", { key: '35cd28cf94716b7e803c96e2d071c32a58272940', class: "notification-pane" }, this.state === 'empty' && this.notifications.length === 0 && (h("div", { key: '50e29db6353de15dcb8962125f37738ced2120b7' }, h("div", { key: '4522bea3e8d3eb45ca868f9f40be25a7a69b39ab', class: "empty-state" }, h("img", { key: 'becdc7ed1c779514dfad207c33a983b9cdf6e56d', src: "./build/assets/panel_bell.svg", alt: "No notification" }), h("h3", { key: '82f6acd354ede5de1e4aab518f89f0421d8a50fd' }, "No notification"), h("p", { key: '48f6d68ca81a6d45c934bf744ed9f017c8d545b1' }, "Your notification inbox is empty at the moment. Rest assured, you'll be promptly notified of any new events.")), h("gb-button", { key: 'efef0b241aafcfaf9c7eeb698338be401730da7d', size: 'sm', hierarchy: 'tertiary_color', "left-icon": 'blush_brush' }, "Mark all as read"))), this.state === 'notification_dropdown' && (h("div", { key: 'e3df62f9bda7fc8ecb66a972060edab54c28741f', class: "notification-dropdown" }, h("slot", { key: 'e296939748205277bbc431eb5f1a5cd8f59d502c' }), h("gb-button", { key: 'da75d956e743b937cec67732c0a6abe8dad35691', size: 'sm', hierarchy: 'tertiary_color', "left-icon": 'blush_brush' }, "Mark all as read")))));
29
+ return (h("div", { key: '364915d82419a164e1bef3584f36d9529851eb7f', class: "notification-pane" }, this.state === 'empty' && this.notifications.length === 0 && (h("div", { key: '52d91d9a0c1f8684017d232ba3bf4277c12b33c3' }, h("div", { key: 'aabbe595b60dcbfb0d0d384bd22766c7a0b01908', class: "empty-state" }, h("img", { key: '764071c3be03164a7229bd292c378f2b858b31bd', src: "./build/assets/panel_bell.svg", alt: "No notification" }), h("h3", { key: '4e5d6c767ead00a87712ec845f631dde4e116b7e' }, "No notification"), h("p", { key: 'ba03f4a691d57a4321bf80d78b98aed31bef89a0' }, "Your notification inbox is empty at the moment. Rest assured, you'll be promptly notified of any new events.")), h("gb-button", { key: 'ab3f4f8ab89286534dfdb0b29b3009527b90f4de', size: 'sm', hierarchy: 'tertiary_color', "left-icon": 'blush_brush' }, "Mark all as read"))), this.state === 'notification_dropdown' && (h("div", { key: 'c550747dd9140c498939d4a0eb0b8b5e5875dfba', class: "notification-dropdown" }, h("slot", { key: 'dac8f0a08686d3c4a1ac476e5b7baa0a0741b02d' }), h("gb-button", { key: 'aa57e50320fffb1f588a12e221c3bb3d18eb105c', size: 'sm', hierarchy: 'tertiary_color', "left-icon": 'blush_brush' }, "Mark all as read")))));
30
30
  }
31
31
  static get is() { return "gb-notification-pane"; }
32
32
  static get encapsulation() { return "shadow"; }