globuswebcomponents 0.8.0 → 0.8.1

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 (368) hide show
  1. package/dist/cjs/gb-avatar-add-button.cjs.entry.js +1 -1
  2. package/dist/cjs/gb-avatar-dropdown.cjs.entry.js +75 -0
  3. package/dist/cjs/gb-avatar-dropdown.cjs.entry.js.map +1 -0
  4. package/dist/cjs/gb-avatar-group.cjs.entry.js +1 -1
  5. package/dist/cjs/gb-avatar-label-group.cjs.entry.js +104 -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_41.cjs.entry.js → gb-avatar_34.cjs.entry.js} +88 -365
  9. package/dist/cjs/gb-avatar_34.cjs.entry.js.map +1 -0
  10. package/dist/cjs/gb-button-close_2.cjs.entry.js +2 -2
  11. package/dist/cjs/gb-checkbox-group-item.cjs.entry.js +1 -1
  12. package/dist/cjs/gb-checkbox-group.cjs.entry.js +1 -1
  13. package/dist/cjs/gb-control-handle.cjs.entry.js +1 -1
  14. package/dist/cjs/gb-dropdown-items-with-shortcut.cjs.entry.js +32 -0
  15. package/dist/cjs/gb-dropdown-items-with-shortcut.cjs.entry.js.map +1 -0
  16. package/dist/cjs/gb-export-dropdown-item_2.cjs.entry.js +51 -0
  17. package/dist/cjs/gb-export-dropdown-item_2.cjs.entry.js.map +1 -0
  18. package/dist/cjs/gb-export-dropdown.cjs.entry.js +32 -0
  19. package/dist/cjs/gb-export-dropdown.cjs.entry.js.map +1 -0
  20. package/dist/cjs/gb-export-sub-dropdown-item.cjs.entry.js +42 -0
  21. package/dist/cjs/gb-export-sub-dropdown-item.cjs.entry.js.map +1 -0
  22. package/dist/cjs/gb-file-upload-item-base.cjs.entry.js +1 -1
  23. package/dist/cjs/gb-file-upload.cjs.entry.js +9 -9
  24. package/dist/cjs/gb-help-dropdown.cjs.entry.js +1 -1
  25. package/dist/cjs/gb-megainput-field.cjs.entry.js +2 -2
  26. package/dist/cjs/gb-progress-circle.cjs.entry.js +1 -1
  27. package/dist/cjs/gb-rich-text.cjs.entry.js +1 -1
  28. package/dist/cjs/gb-scrollbar.cjs.entry.js +1 -1
  29. package/dist/cjs/gb-slider.cjs.entry.js +1 -1
  30. package/dist/cjs/gb-toast-button.cjs.entry.js +1 -1
  31. package/dist/cjs/gb-toast.cjs.entry.js +1 -1
  32. package/dist/cjs/gb-toggle.cjs.entry.js +1 -1
  33. package/dist/cjs/gb-token-field.cjs.entry.js +1 -1
  34. package/dist/cjs/gb-verification-code-field.cjs.entry.js +2 -2
  35. package/dist/cjs/globuscomponents.cjs.js +1 -1
  36. package/dist/cjs/loader.cjs.js +1 -1
  37. package/dist/collection/assets/thumbs-up.svg +8 -0
  38. package/dist/collection/collection-manifest.json +1 -1
  39. package/dist/collection/components/gb-avatar/gb-avatar.js +1 -1
  40. package/dist/collection/components/gb-avatar/gb-avatar.js.map +1 -1
  41. package/dist/collection/components/gb-avatar-add-button/gb-avatar-add-button.js +1 -1
  42. package/dist/collection/components/gb-avatar-contrast-inner-border/gb-avatar-contrast-inner-border.js +1 -1
  43. package/dist/collection/components/gb-avatar-dropdown/gb-avatar-dropdown.js +1 -1
  44. package/dist/collection/components/gb-avatar-dropdown/gb-avatar-dropdown.js.map +1 -1
  45. package/dist/collection/components/gb-avatar-group/gb-avatar-group.js +1 -1
  46. package/dist/collection/components/gb-avatar-label-group/gb-avatar-label-group.js +2 -2
  47. package/dist/collection/components/gb-avatar-label-group/gb-avatar-label-group.js.map +1 -1
  48. package/dist/collection/components/gb-avatar-profile-photo/gb-avatar-profile-photo.js +1 -1
  49. package/dist/collection/components/{gb-badges/gb-badges.css → gb-badge/gb-badge.css} +59 -30
  50. package/dist/collection/components/{gb-badges/gb-badges.js → gb-badge/gb-badge.js} +5 -5
  51. package/dist/collection/components/gb-badge/gb-badge.js.map +1 -0
  52. package/dist/collection/components/gb-badge-close/gb-badge-close.js +1 -1
  53. package/dist/collection/components/gb-btn/gb-btn.css +4 -0
  54. package/dist/collection/components/gb-btn/gb-btn.js +1 -1
  55. package/dist/collection/components/gb-button/gb-button.js +1 -1
  56. package/dist/collection/components/gb-button/readme.md +2 -0
  57. package/dist/collection/components/gb-button-close/gb-button-close.js +1 -1
  58. package/dist/collection/components/gb-carousel-arrow/gb-carousel-arrow.js +1 -1
  59. package/dist/collection/components/gb-checkbox/gb-checkbox.js +1 -1
  60. package/dist/collection/components/gb-checkbox-base/gb-checkbox-base.js +1 -1
  61. package/dist/collection/components/gb-checkbox-group/gb-checkbox-group.js +1 -1
  62. package/dist/collection/components/gb-checkbox-group-item/gb-checkbox-group-item.js +1 -1
  63. package/dist/collection/components/gb-collapse-button/gb-collapse-button.js +3 -3
  64. package/dist/collection/components/gb-control-handle/gb-control-handle.js +1 -1
  65. package/dist/collection/components/gb-dropdown-items-with-shortcut/gb-dropdown-items-with-shortcut.js +1 -1
  66. package/dist/collection/components/gb-export-dropdown/gb-export-dropdown.css +1 -1
  67. package/dist/collection/components/gb-export-dropdown/gb-export-dropdown.js +1 -1
  68. package/dist/collection/components/gb-export-dropdown-item/gb-export-dropdown-item.js +1 -1
  69. package/dist/collection/components/gb-export-sub-dropdown/gb-export-sub-dropdown.js +1 -1
  70. package/dist/collection/components/gb-export-sub-dropdown-item/gb-export-sub-dropdown-item.js +1 -1
  71. package/dist/collection/components/gb-file-upload/gb-file-upload.js +9 -9
  72. package/dist/collection/components/gb-file-upload-item-base/gb-file-upload-item-base.js +1 -1
  73. package/dist/collection/components/gb-header/gb-header.js +1 -1
  74. package/dist/collection/components/gb-header-icon/gb-header-icon.js +4 -4
  75. package/dist/collection/components/gb-help-dropdown/gb-help-dropdown.js +1 -1
  76. package/dist/collection/components/gb-help-tooltip/gb-help-tooltip.js +1 -1
  77. package/dist/collection/components/gb-horizontal-tabs/gb-horizontal-tabs.js +1 -1
  78. package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js +12 -12
  79. package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js.map +1 -1
  80. package/dist/collection/components/gb-input-dropdown-menu-item/gb-input-dropdown-menu-item.js +2 -2
  81. package/dist/collection/components/gb-input-field/gb-input-field.js +18 -18
  82. package/dist/collection/components/gb-input-field/gb-input-field.js.map +1 -1
  83. package/dist/collection/components/gb-megainput-field-base/gb-megainput-field.js +2 -2
  84. package/dist/collection/components/gb-notification-content/gb-notification-content.js +1 -1
  85. package/dist/collection/components/gb-notification-content/gb-notification-content.js.map +1 -1
  86. package/dist/collection/components/gb-notification-pane/gb-notification-pane.js +8 -6
  87. package/dist/collection/components/gb-notification-pane/gb-notification-pane.js.map +1 -1
  88. package/dist/collection/components/gb-pagination/gb-pagination.js +4 -3
  89. package/dist/collection/components/gb-pagination/gb-pagination.js.map +1 -1
  90. package/dist/collection/components/gb-pagination-button-group-base/gb-pagination-button-group-base.js +1 -1
  91. package/dist/collection/components/gb-pagination-dot-indicator/gb-pagination-dot-indicator.js +1 -1
  92. package/dist/collection/components/gb-pagination-number-base/gb-pagination-number-base.css +8 -0
  93. package/dist/collection/components/gb-pagination-number-base/gb-pagination-number-base.js +7 -1
  94. package/dist/collection/components/gb-pagination-number-base/gb-pagination-number-base.js.map +1 -1
  95. package/dist/collection/components/gb-password-button/gb-password-button.js +1 -1
  96. package/dist/collection/components/gb-progress-bar/gb-progress-bar.js +1 -1
  97. package/dist/collection/components/gb-progress-circle/gb-progress-circle.js +1 -1
  98. package/dist/collection/components/gb-rich-text/gb-rich-text.js +1 -1
  99. package/dist/collection/components/gb-scrollbar/gb-scrollbar.js +1 -1
  100. package/dist/collection/components/gb-side-bar-item/gb-side-bar-item.js +1 -1
  101. package/dist/collection/components/gb-sidebar/gb-sidebar.js +1 -1
  102. package/dist/collection/components/gb-slider/gb-slider.js +1 -1
  103. package/dist/collection/components/gb-status-indicator/gb-status-indicator.js +1 -1
  104. package/dist/collection/components/gb-tab-button-base/gb-tab-button-base.js +3 -3
  105. package/dist/collection/components/gb-tag/gb-tag.js +1 -1
  106. package/dist/collection/components/gb-tag-checkbox/gb-tag-checkbox.js +1 -1
  107. package/dist/collection/components/gb-tag-close/gb-tag-close.js +1 -1
  108. package/dist/collection/components/gb-tag-count/gb-tag-count.js +1 -1
  109. package/dist/collection/components/gb-toast/gb-toast.js +1 -1
  110. package/dist/collection/components/gb-toast-button/gb-toast-button.js +1 -1
  111. package/dist/collection/components/gb-toggle/gb-toggle.js +1 -1
  112. package/dist/collection/components/gb-toggle-base/gb-toggle-base.js +2 -2
  113. package/dist/collection/components/gb-token-field/gb-token-field.js +1 -1
  114. package/dist/collection/components/gb-tooltip/gb-tooltip.js +1 -1
  115. package/dist/collection/components/gb-verification-code-field/gb-verification-code-field.js +2 -2
  116. package/dist/components/gb-avatar-add-button.js +1 -1
  117. package/dist/components/gb-avatar-contrast-inner-border.js +1 -1
  118. package/dist/components/gb-avatar-dropdown.js +8 -8
  119. package/dist/components/gb-avatar-dropdown.js.map +1 -1
  120. package/dist/components/gb-avatar-group.js +6 -6
  121. package/dist/components/gb-avatar-label-group.js +1 -1
  122. package/dist/components/gb-avatar-profile-photo.js +4 -4
  123. package/dist/components/gb-avatar.js +1 -1
  124. package/dist/components/gb-badge-close.js +1 -1
  125. package/dist/components/gb-badge.js +1 -1
  126. package/dist/components/gb-btn.js +1 -1
  127. package/dist/components/gb-button-close.js +1 -1
  128. package/dist/components/gb-button.js +1 -1
  129. package/dist/components/gb-carousel-arrow.js +1 -1
  130. package/dist/components/gb-checkbox-base.js +1 -1
  131. package/dist/components/gb-checkbox-group-item.js +1 -1
  132. package/dist/components/gb-checkbox-group.js +8 -8
  133. package/dist/components/gb-checkbox.js +1 -1
  134. package/dist/components/gb-collapse-button.js +1 -1
  135. package/dist/components/gb-control-handle.js +2 -2
  136. package/dist/components/gb-dropdown-items-with-shortcut.js +1 -1
  137. package/dist/components/gb-export-dropdown-item.js +1 -1
  138. package/dist/components/gb-export-dropdown.js +5 -5
  139. package/dist/components/gb-export-dropdown.js.map +1 -1
  140. package/dist/components/gb-export-sub-dropdown-item.js +1 -1
  141. package/dist/components/gb-export-sub-dropdown.js +1 -1
  142. package/dist/components/gb-file-upload-item-base.js +1 -1
  143. package/dist/components/gb-file-upload.js +14 -14
  144. package/dist/components/gb-header-icon.js +1 -1
  145. package/dist/components/gb-header.js +5 -5
  146. package/dist/components/gb-help-dropdown.js +4 -4
  147. package/dist/components/gb-help-tooltip.js +1 -1
  148. package/dist/components/gb-horizontal-tabs.js +7 -7
  149. package/dist/components/gb-input-dropdown-menu-item.js +1 -1
  150. package/dist/components/gb-input-dropdown.js +1 -1
  151. package/dist/components/gb-input-field.js +29 -29
  152. package/dist/components/gb-input-field.js.map +1 -1
  153. package/dist/components/gb-megainput-field.js +1 -1
  154. package/dist/components/gb-notification-content.js +1 -1
  155. package/dist/components/gb-notification-pane.js +9 -7
  156. package/dist/components/gb-notification-pane.js.map +1 -1
  157. package/dist/components/gb-pagination-button-group-base.js +1 -1
  158. package/dist/components/gb-pagination-dot-indicator.js +1 -1
  159. package/dist/components/gb-pagination-number-base.js +1 -1
  160. package/dist/components/gb-pagination.js +17 -17
  161. package/dist/components/gb-pagination.js.map +1 -1
  162. package/dist/components/gb-password-button.js +1 -1
  163. package/dist/components/gb-progress-bar.js +1 -1
  164. package/dist/components/gb-progress-circle.js +1 -1
  165. package/dist/components/gb-rich-text.js +15 -15
  166. package/dist/components/gb-scrollbar.js +1 -1
  167. package/dist/components/gb-side-bar-item.js +1 -1
  168. package/dist/components/gb-sidebar.js +9 -9
  169. package/dist/components/gb-slider.js +1 -1
  170. package/dist/components/gb-status-indicator.js +1 -1
  171. package/dist/components/gb-tab-button-base.js +1 -1
  172. package/dist/components/gb-tag-checkbox.js +1 -1
  173. package/dist/components/gb-tag-close.js +1 -1
  174. package/dist/components/gb-tag-count.js +1 -1
  175. package/dist/components/gb-tag.js +1 -1
  176. package/dist/components/gb-toast-button.js +1 -1
  177. package/dist/components/gb-toast.js +4 -4
  178. package/dist/components/gb-toggle-base.js +1 -1
  179. package/dist/components/gb-toggle.js +2 -2
  180. package/dist/components/gb-token-field.js +2 -2
  181. package/dist/components/gb-tooltip.js +1 -1
  182. package/dist/components/gb-verification-code-field.js +3 -3
  183. package/dist/components/gb-wysiwyg-toolbar.js +1 -1
  184. package/dist/components/{p-42290673.js → p-0977f4e6.js} +3 -3
  185. package/dist/components/{p-42290673.js.map → p-0977f4e6.js.map} +1 -1
  186. package/dist/components/{p-dfa436e3.js → p-0b43371e.js} +4 -4
  187. package/dist/components/{p-dfa436e3.js.map → p-0b43371e.js.map} +1 -1
  188. package/dist/components/{p-c0116340.js → p-0c415ab4.js} +2 -2
  189. package/dist/components/{p-c0116340.js.map → p-0c415ab4.js.map} +1 -1
  190. package/dist/components/{p-6a5502fa.js → p-0ede1038.js} +2 -2
  191. package/dist/components/{p-6a5502fa.js.map → p-0ede1038.js.map} +1 -1
  192. package/dist/components/{p-430a4d69.js → p-0eec2229.js} +14 -14
  193. package/dist/components/{p-430a4d69.js.map → p-0eec2229.js.map} +1 -1
  194. package/dist/components/p-0f81e580.js +142 -0
  195. package/dist/components/p-0f81e580.js.map +1 -0
  196. package/dist/components/{p-f9b3f08d.js → p-1ca57d5b.js} +3 -3
  197. package/dist/components/{p-f9b3f08d.js.map → p-1ca57d5b.js.map} +1 -1
  198. package/dist/components/{p-e86d4e72.js → p-1ebb8605.js} +2 -2
  199. package/dist/components/{p-e86d4e72.js.map → p-1ebb8605.js.map} +1 -1
  200. package/dist/components/{p-a7b565f6.js → p-22e07b7d.js} +2 -2
  201. package/dist/components/{p-a7b565f6.js.map → p-22e07b7d.js.map} +1 -1
  202. package/dist/components/{p-0760b44e.js → p-2f26e286.js} +2 -2
  203. package/dist/components/{p-0760b44e.js.map → p-2f26e286.js.map} +1 -1
  204. package/dist/components/{p-775dcbe0.js → p-33c4b9e5.js} +2 -2
  205. package/dist/components/{p-775dcbe0.js.map → p-33c4b9e5.js.map} +1 -1
  206. package/dist/components/{p-c1f44e91.js → p-3c745bea.js} +24 -24
  207. package/dist/components/p-3c745bea.js.map +1 -0
  208. package/dist/components/{p-6cc620f5.js → p-445351dc.js} +2 -2
  209. package/dist/components/{p-6cc620f5.js.map → p-445351dc.js.map} +1 -1
  210. package/dist/components/{p-1e775f96.js → p-4a648c43.js} +8 -8
  211. package/dist/components/{p-1e775f96.js.map → p-4a648c43.js.map} +1 -1
  212. package/dist/components/{p-5eac42ae.js → p-5814e13f.js} +2 -2
  213. package/dist/components/{p-5eac42ae.js.map → p-5814e13f.js.map} +1 -1
  214. package/dist/components/{p-9e6c939c.js → p-6918d8b1.js} +3 -3
  215. package/dist/components/{p-9e6c939c.js.map → p-6918d8b1.js.map} +1 -1
  216. package/dist/components/{p-d09d7004.js → p-6ce96214.js} +3 -3
  217. package/dist/components/{p-d09d7004.js.map → p-6ce96214.js.map} +1 -1
  218. package/dist/components/{p-a39753d6.js → p-71d7b754.js} +9 -3
  219. package/dist/components/p-71d7b754.js.map +1 -0
  220. package/dist/components/{p-bef8d635.js → p-7cce4c9b.js} +5 -5
  221. package/dist/components/{p-bef8d635.js.map → p-7cce4c9b.js.map} +1 -1
  222. package/dist/components/{p-340870e3.js → p-8bc15a13.js} +6 -6
  223. package/dist/components/p-8bc15a13.js.map +1 -0
  224. package/dist/components/{p-f927cb16.js → p-8c3b1c8c.js} +3 -3
  225. package/dist/components/{p-f927cb16.js.map → p-8c3b1c8c.js.map} +1 -1
  226. package/dist/components/{p-65e07287.js → p-8ea2d4ec.js} +4 -4
  227. package/dist/components/{p-65e07287.js.map → p-8ea2d4ec.js.map} +1 -1
  228. package/dist/components/{p-df93f11f.js → p-9aae25cf.js} +2 -2
  229. package/dist/components/{p-df93f11f.js.map → p-9aae25cf.js.map} +1 -1
  230. package/dist/components/{p-2111dbe2.js → p-9b4be6c1.js} +3 -3
  231. package/dist/components/{p-2111dbe2.js.map → p-9b4be6c1.js.map} +1 -1
  232. package/dist/components/{p-262e8623.js → p-9db805b5.js} +3 -3
  233. package/dist/components/{p-262e8623.js.map → p-9db805b5.js.map} +1 -1
  234. package/dist/components/{p-1f1dfee4.js → p-a077869e.js} +9 -9
  235. package/dist/components/{p-1f1dfee4.js.map → p-a077869e.js.map} +1 -1
  236. package/dist/components/{p-bc66ed45.js → p-a19a447b.js} +2 -2
  237. package/dist/components/{p-bc66ed45.js.map → p-a19a447b.js.map} +1 -1
  238. package/dist/components/{p-a9dbefb7.js → p-a4e56bdf.js} +5 -5
  239. package/dist/components/{p-a9dbefb7.js.map → p-a4e56bdf.js.map} +1 -1
  240. package/dist/components/{p-7f6c7f21.js → p-a6f61aab.js} +2 -2
  241. package/dist/components/{p-7f6c7f21.js.map → p-a6f61aab.js.map} +1 -1
  242. package/dist/components/{p-917e17c5.js → p-b52b8162.js} +8 -8
  243. package/dist/components/{p-917e17c5.js.map → p-b52b8162.js.map} +1 -1
  244. package/dist/components/{p-74af020e.js → p-cd7c4de5.js} +3 -3
  245. package/dist/components/{p-74af020e.js.map → p-cd7c4de5.js.map} +1 -1
  246. package/dist/components/{p-e68067c1.js → p-cecb39d2.js} +8 -8
  247. package/dist/components/{p-e68067c1.js.map → p-cecb39d2.js.map} +1 -1
  248. package/dist/components/{p-a33dd05b.js → p-e5a83695.js} +2 -2
  249. package/dist/components/{p-a33dd05b.js.map → p-e5a83695.js.map} +1 -1
  250. package/dist/components/{p-0d222043.js → p-e7bc2af2.js} +6 -6
  251. package/dist/components/{p-0d222043.js.map → p-e7bc2af2.js.map} +1 -1
  252. package/dist/components/{p-e6c6479c.js → p-eae096b2.js} +2 -2
  253. package/dist/components/{p-e6c6479c.js.map → p-eae096b2.js.map} +1 -1
  254. package/dist/components/{p-d7451e82.js → p-eba0059d.js} +8 -8
  255. package/dist/components/{p-d7451e82.js.map → p-eba0059d.js.map} +1 -1
  256. package/dist/components/{p-895e95e1.js → p-f583506d.js} +2 -2
  257. package/dist/components/{p-895e95e1.js.map → p-f583506d.js.map} +1 -1
  258. package/dist/components/{p-fed47a11.js → p-fedf482f.js} +4 -4
  259. package/dist/components/p-fedf482f.js.map +1 -0
  260. package/dist/esm/gb-avatar-add-button.entry.js +1 -1
  261. package/dist/esm/gb-avatar-dropdown.entry.js +71 -0
  262. package/dist/esm/gb-avatar-dropdown.entry.js.map +1 -0
  263. package/dist/esm/gb-avatar-group.entry.js +1 -1
  264. package/dist/esm/gb-avatar-label-group.entry.js +100 -0
  265. package/dist/esm/gb-avatar-label-group.entry.js.map +1 -0
  266. package/dist/esm/gb-avatar-profile-photo.entry.js +1 -1
  267. package/dist/esm/{gb-avatar_41.entry.js → gb-avatar_34.entry.js} +90 -360
  268. package/dist/esm/gb-avatar_34.entry.js.map +1 -0
  269. package/dist/esm/gb-button-close_2.entry.js +2 -2
  270. package/dist/esm/gb-checkbox-group-item.entry.js +1 -1
  271. package/dist/esm/gb-checkbox-group.entry.js +1 -1
  272. package/dist/esm/gb-control-handle.entry.js +1 -1
  273. package/dist/esm/gb-dropdown-items-with-shortcut.entry.js +28 -0
  274. package/dist/esm/gb-dropdown-items-with-shortcut.entry.js.map +1 -0
  275. package/dist/esm/gb-export-dropdown-item_2.entry.js +46 -0
  276. package/dist/esm/gb-export-dropdown-item_2.entry.js.map +1 -0
  277. package/dist/esm/gb-export-dropdown.entry.js +28 -0
  278. package/dist/esm/gb-export-dropdown.entry.js.map +1 -0
  279. package/dist/esm/gb-export-sub-dropdown-item.entry.js +38 -0
  280. package/dist/esm/gb-export-sub-dropdown-item.entry.js.map +1 -0
  281. package/dist/esm/gb-file-upload-item-base.entry.js +1 -1
  282. package/dist/esm/gb-file-upload.entry.js +9 -9
  283. package/dist/esm/gb-help-dropdown.entry.js +1 -1
  284. package/dist/esm/gb-megainput-field.entry.js +2 -2
  285. package/dist/esm/gb-progress-circle.entry.js +1 -1
  286. package/dist/esm/gb-rich-text.entry.js +1 -1
  287. package/dist/esm/gb-scrollbar.entry.js +1 -1
  288. package/dist/esm/gb-slider.entry.js +1 -1
  289. package/dist/esm/gb-toast-button.entry.js +1 -1
  290. package/dist/esm/gb-toast.entry.js +1 -1
  291. package/dist/esm/gb-toggle.entry.js +1 -1
  292. package/dist/esm/gb-token-field.entry.js +1 -1
  293. package/dist/esm/gb-verification-code-field.entry.js +2 -2
  294. package/dist/esm/globuscomponents.js +1 -1
  295. package/dist/esm/loader.js +1 -1
  296. package/dist/globuscomponents/assets/thumbs-up.svg +8 -0
  297. package/dist/globuscomponents/globuscomponents.esm.js +1 -1
  298. package/dist/globuscomponents/globuscomponents.esm.js.map +1 -1
  299. package/dist/globuscomponents/{p-d88ec715.entry.js → p-03089687.entry.js} +2 -2
  300. package/dist/globuscomponents/p-0dc980e1.entry.js +2 -0
  301. package/dist/globuscomponents/p-0dc980e1.entry.js.map +1 -0
  302. package/dist/globuscomponents/{p-0b05a717.entry.js → p-1efc6fcb.entry.js} +2 -2
  303. package/dist/globuscomponents/p-26a27b94.entry.js +2 -0
  304. package/dist/globuscomponents/p-26a27b94.entry.js.map +1 -0
  305. package/dist/globuscomponents/{p-92c9b83d.entry.js → p-3187a396.entry.js} +2 -2
  306. package/dist/globuscomponents/p-331fccb1.entry.js +2 -0
  307. package/dist/globuscomponents/p-331fccb1.entry.js.map +1 -0
  308. package/dist/globuscomponents/{p-e13cc3c7.entry.js → p-42b0501f.entry.js} +2 -2
  309. package/dist/globuscomponents/{p-f9fcadea.entry.js → p-450bfb1e.entry.js} +2 -2
  310. package/dist/globuscomponents/{p-8aa093a6.entry.js → p-4ebce452.entry.js} +2 -2
  311. package/dist/globuscomponents/{p-a6c16af5.entry.js → p-610b9f3f.entry.js} +2 -2
  312. package/dist/globuscomponents/{p-655c0263.entry.js → p-77543e57.entry.js} +2 -2
  313. package/dist/globuscomponents/p-7816273e.entry.js +2 -0
  314. package/dist/globuscomponents/p-7816273e.entry.js.map +1 -0
  315. package/dist/globuscomponents/{p-ab95648e.entry.js → p-82ed7e15.entry.js} +2 -2
  316. package/dist/globuscomponents/{p-f84c84ec.entry.js → p-8584a310.entry.js} +2 -2
  317. package/dist/globuscomponents/p-8ae7b1be.entry.js +2 -0
  318. package/dist/globuscomponents/p-8ae7b1be.entry.js.map +1 -0
  319. package/dist/globuscomponents/p-8e3b677c.entry.js +2 -0
  320. package/dist/globuscomponents/p-8e3b677c.entry.js.map +1 -0
  321. package/dist/globuscomponents/{p-acb55010.entry.js → p-916be2e6.entry.js} +2 -2
  322. package/dist/globuscomponents/{p-4f500687.entry.js → p-9a7f8086.entry.js} +2 -2
  323. package/dist/globuscomponents/{p-f82d5672.entry.js → p-c1948b27.entry.js} +2 -2
  324. package/dist/globuscomponents/{p-55de3f53.entry.js → p-c833196c.entry.js} +2 -2
  325. package/dist/globuscomponents/p-d4a21015.entry.js +2 -0
  326. package/dist/globuscomponents/p-d4a21015.entry.js.map +1 -0
  327. package/dist/globuscomponents/{p-438b6a5a.entry.js → p-e124949f.entry.js} +2 -2
  328. package/dist/globuscomponents/{p-4d40f44e.entry.js → p-e30e9098.entry.js} +2 -2
  329. package/dist/globuscomponents/p-e62a5b1b.entry.js +2 -0
  330. package/dist/globuscomponents/p-e9658c0a.entry.js +2 -0
  331. package/dist/globuscomponents/{p-472ded9f.entry.js → p-ead3d572.entry.js} +2 -2
  332. package/dist/globuscomponents/{p-f19f57d4.entry.js → p-feb34fb7.entry.js} +2 -2
  333. package/dist/globuscomponents/readme.md +2 -0
  334. package/package.json +1 -1
  335. package/dist/cjs/gb-avatar_41.cjs.entry.js.map +0 -1
  336. package/dist/collection/components/gb-badges/gb-badges.js.map +0 -1
  337. package/dist/components/p-340870e3.js.map +0 -1
  338. package/dist/components/p-a39753d6.js.map +0 -1
  339. package/dist/components/p-c1f44e91.js.map +0 -1
  340. package/dist/components/p-df7a7cf2.js +0 -142
  341. package/dist/components/p-df7a7cf2.js.map +0 -1
  342. package/dist/components/p-fed47a11.js.map +0 -1
  343. package/dist/esm/gb-avatar_41.entry.js.map +0 -1
  344. package/dist/globuscomponents/p-1c92b59c.entry.js +0 -2
  345. package/dist/globuscomponents/p-47c41cbe.entry.js +0 -2
  346. package/dist/globuscomponents/p-e85e7e22.entry.js +0 -2
  347. package/dist/globuscomponents/p-e85e7e22.entry.js.map +0 -1
  348. /package/dist/globuscomponents/{p-d88ec715.entry.js.map → p-03089687.entry.js.map} +0 -0
  349. /package/dist/globuscomponents/{p-0b05a717.entry.js.map → p-1efc6fcb.entry.js.map} +0 -0
  350. /package/dist/globuscomponents/{p-92c9b83d.entry.js.map → p-3187a396.entry.js.map} +0 -0
  351. /package/dist/globuscomponents/{p-e13cc3c7.entry.js.map → p-42b0501f.entry.js.map} +0 -0
  352. /package/dist/globuscomponents/{p-f9fcadea.entry.js.map → p-450bfb1e.entry.js.map} +0 -0
  353. /package/dist/globuscomponents/{p-8aa093a6.entry.js.map → p-4ebce452.entry.js.map} +0 -0
  354. /package/dist/globuscomponents/{p-a6c16af5.entry.js.map → p-610b9f3f.entry.js.map} +0 -0
  355. /package/dist/globuscomponents/{p-655c0263.entry.js.map → p-77543e57.entry.js.map} +0 -0
  356. /package/dist/globuscomponents/{p-ab95648e.entry.js.map → p-82ed7e15.entry.js.map} +0 -0
  357. /package/dist/globuscomponents/{p-f84c84ec.entry.js.map → p-8584a310.entry.js.map} +0 -0
  358. /package/dist/globuscomponents/{p-acb55010.entry.js.map → p-916be2e6.entry.js.map} +0 -0
  359. /package/dist/globuscomponents/{p-4f500687.entry.js.map → p-9a7f8086.entry.js.map} +0 -0
  360. /package/dist/globuscomponents/{p-f82d5672.entry.js.map → p-c1948b27.entry.js.map} +0 -0
  361. /package/dist/globuscomponents/{p-55de3f53.entry.js.map → p-c833196c.entry.js.map} +0 -0
  362. /package/dist/globuscomponents/{p-438b6a5a.entry.js.map → p-e124949f.entry.js.map} +0 -0
  363. /package/dist/globuscomponents/{p-4d40f44e.entry.js.map → p-e30e9098.entry.js.map} +0 -0
  364. /package/dist/globuscomponents/{p-47c41cbe.entry.js.map → p-e62a5b1b.entry.js.map} +0 -0
  365. /package/dist/globuscomponents/{p-1c92b59c.entry.js.map → p-e9658c0a.entry.js.map} +0 -0
  366. /package/dist/globuscomponents/{p-472ded9f.entry.js.map → p-ead3d572.entry.js.map} +0 -0
  367. /package/dist/globuscomponents/{p-f19f57d4.entry.js.map → p-feb34fb7.entry.js.map} +0 -0
  368. /package/dist/types/components/{gb-badges/gb-badges.d.ts → gb-badge/gb-badge.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"gb-input-dropdown.js","sourceRoot":"","sources":["../../../src/components/gb-input-dropdown/gb-input-dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAgB,MAAM,EAAE,MAAM,eAAe,CAAC;AACxH,OAAO,EAAoE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAM1H,MAAM,OAAO,eAAe;;;;;yBAIG,KAAK;qBACV,EAAE;2BACI,EAAE;;wBAEL,EAAE;;+BAEM,KAAK;wBACb,EAAE;oBACL,KAAK;2BACC,EAAE;;qBAEsB;YACpD,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE;YACvD,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE;YACvD,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE;YAEvD,qBAAqB;YAErB,eAAe;YACf,iBAAiB;SAClB;8BACiC,KAAK;;0BAET,KAAK;;8BAED,EAAE;4BACH,KAAK;6BACN,EAAE;+BACA,EAAE;;;IAOpC,oBAAoB;QAClB,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;IACjE,CAAC;IAGD,kBAAkB,CAAC,KAAiB;QAClC,IAAI,IA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I,CAAC,QAAQ,CAAK,CAC7C,CACJ,CAAC,CAAC,CAAC,CACF,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,SAAG,IAAI,EAAC,MAAM,IAAE,IAAI,CAAK,CAAC,CAAC,CAC7E,CAC2B,CAC/B,CAAC,CACD,CACJ,CACG,CACP,CACA;SACJ,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, Fragment, Element, State, getAssetPath, Event, EventEmitter, Listen } from \"@stencil/core\";\r\nimport { AvatarColorTypes, DropdownItemTypes, DropdownTypes, GeneralSizes, StateEnum } from \"../../models/reusableModels\";\r\n@Component({\r\n tag: 'gb-input-dropdown',\r\n styleUrl: 'gb-input-dropdown.css',\r\n shadow: true,\r\n})\r\nexport class GbInputDropdown {\r\n @Prop() type: DropdownTypes;\r\n @Prop({ mutable: true }) state: 'default' | 'focused' | 'disabled' | 'filled';\r\n @Prop() size: GeneralSizes;\r\n @Prop() showLabel: boolean = false;\r\n @Prop() label: string = '';\r\n @Prop() placeholder: string = '';\r\n @Prop() showHintText: boolean;\r\n @Prop() hintText: string = '';\r\n @Prop() showHelpIcon: boolean;\r\n @Prop() showLeadingIcon: boolean = false;\r\n @Prop() iconSwap: string = '';\r\n @Prop() text: boolean = false;\r\n @Prop() leadingIcon: string = '';\r\n @Prop() icon: 'country' | 'avatar' | 'dot';\r\n @Prop({ mutable: true }) items: DropdownItemTypes[] = [\r\n { name: 'Mock Item A', username: 'A', selected: false },\r\n { name: 'Mock Item B', username: 'B', selected: false },\r\n { name: 'Mock Item C', username: 'C', selected: false },\r\n\r\n // 45, 50, 20, 25, 90\r\n\r\n // 'Activated',\r\n // 'Deactivated',\r\n ];\r\n @Prop() supportingText: boolean = false;\r\n @Prop() color: AvatarColorTypes;\r\n @Prop() showBorder: boolean = false;\r\n @Prop() menuPosition: 'top' | ' bottom';\r\n @State() leadingIconSvg: string = '';\r\n @State() dropdownOpen: boolean = false;\r\n @State() selectedItems: any[] = [];\r\n @State() unselectedItems: any[] = [];\r\n @State() selectedItem: any;\r\n @Element() el: HTMLElement;\r\n @Event() dropdownValue: EventEmitter<any>;\r\n\r\n dropdownRef!: HTMLElement;\r\n\r\n disconnectedCallback() {\r\n document.removeEventListener('click', this.handleClickOutside);\r\n }\r\n\r\n @Listen('click', { target: 'document' })\r\n handleClickOutside(event: MouseEvent) {\r\n if (this.dropdownOpen && !this.el.contains(event.target as Node)) {\r\n this.dropdownOpen = false;\r\n }\r\n }\r\n\r\n toggleDropdown() {\r\n if (this.state !== 'disabled') {\r\n this.dropdownOpen = !this.dropdownOpen;\r\n }\r\n }\r\n\r\n isItemSelected(selectedItem) {\r\n const found = this.selectedItems.find(item => item.name === selectedItem.name);\r\n return found !== undefined;\r\n }\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 getAvatarSize() {\r\n switch (this.size) {\r\n case 'sm':\r\n return 'xs';\r\n case 'md':\r\n return 'xs';\r\n }\r\n }\r\n\r\n sortDropdownItems(menuItems: any[]): any[] {\r\n return menuItems.sort((a, b) => {\r\n if (a.selected && !b.selected) {\r\n return -1; // Move selected items up\r\n } else if (!a.selected && b.selected) {\r\n return 1; // Keep unselected items down\r\n }\r\n return 0; // Keep order if both are selected or unselected\r\n });\r\n }\r\n\r\n handleItemSelect(item) {\r\n if (this.type === 'tags') {\r\n const itemExists = this.selectedItems.some(i => i.name === item.name);\r\n\r\n if (itemExists) {\r\n // Unselect item if it exists\r\n this.selectedItems = this.selectedItems.filter(i => i.name !== item.name);\r\n item.selected = false;\r\n this.unselectedItems = [...this.unselectedItems, item];\r\n } else {\r\n // Select item\r\n item.selected = true;\r\n this.selectedItems = [...this.selectedItems, item];\r\n this.unselectedItems = this.unselectedItems.filter(unselectedItem => unselectedItem.name !== item.name);\r\n }\r\n\r\n // Emit selected items for tags\r\n this.dropdownValue.emit(this.selectedItems);\r\n } else {\r\n // For single selection types (non-tags)\r\n this.selectedItem = item;\r\n this.selectedItems = [item]; // Ensure only one item is selected\r\n this.state = 'filled';\r\n\r\n // Emit the single selected item\r\n this.dropdownValue.emit(this.selectedItem);\r\n\r\n // Close dropdown after selection\r\n this.dropdownOpen = false;\r\n }\r\n\r\n // Update the dropdown state\r\n this.state = this.selectedItems.length > 0 ? 'filled' : 'default';\r\n }\r\n\r\n handleTagRemove(item) {\r\n // Remove the item from selectedItems array\r\n if (this.type === 'tags') {\r\n const itemExists = this.selectedItems.some(i => i.name === item.name);\r\n\r\n if (itemExists) {\r\n this.selectedItems = this.selectedItems.filter(i => i.name !== item.name);\r\n item.selected = false;\r\n\r\n if (!this.unselectedItems.includes(item)) {\r\n this.unselectedItems = [...this.unselectedItems, item];\r\n }\r\n }\r\n\r\n // Update the state based on whether there are selected items\r\n this.state = this.selectedItems.length > 0 ? 'filled' : 'default';\r\n }\r\n\r\n // For non-tags type, set selectedItem to null if that item is removed\r\n if (this.type !== 'tags' && this.selectedItem === item) {\r\n this.selectedItem = null;\r\n }\r\n\r\n // Update state based on whether there are selected items\r\n this.state = this.selectedItems.length > 0 ? 'filled' : 'default';\r\n }\r\n\r\n componentWillLoad() {\r\n this.loadIcon(this.leadingIcon);\r\n\r\n if (this.items && this.items.every(item => typeof item === 'object')) {\r\n if (this.type === 'tags') {\r\n this.selectedItems = this.items.filter(item => item.selected);\r\n this.unselectedItems = this.items.filter(item => !item.selected);\r\n }\r\n } else if (this.items && this.items.every(item => typeof item === 'string' || 'number')) {\r\n this.selectedItem = this.items.find(item => item) || null;\r\n }\r\n }\r\n\r\n componentDidLoad() {\r\n if (this.type !== 'tags') {\r\n document.addEventListener('click', this.handleClickOutside);\r\n }\r\n\r\n const slottedInitials = this.el.querySelector('[slot=\"initials\"]');\r\n\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(slottedInitials) {\r\n slottedInitials.classList.add('text-xxs-semi-bold');\r\n }\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 applyColorToInitials() {\r\n switch (this.color) {\r\n case 'gray':\r\n return 'gray';\r\n case 'blue':\r\n return 'blue';\r\n case 'cyan':\r\n return 'cyan';\r\n case 'pink':\r\n return 'pink';\r\n case 'purple':\r\n return 'purple';\r\n case 'green':\r\n return 'green';\r\n case 'yellow':\r\n return 'yellow';\r\n }\r\n }\r\n\r\n render() {\r\n return [\r\n <div class={`input_dropdown_container ${this.type === 'tags' ? 'tag' : ''}`} onClick={() => this.toggleDropdown()}>\r\n <div class={`input_with_label`}>\r\n {this.showLabel && (\r\n <p class=\"text-sm-regular\" style={{ color: '#4B5565' }}>\r\n {this.label.charAt(0).toUpperCase() + this.label.slice(1).toLowerCase()}\r\n </p>\r\n )}\r\n <div class={`input_dropdown_div ${this.size} ${this.state} ${this.type === 'tags' ? 'tag' : ''}`}>\r\n {this.type === 'icon_leading' && (\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=\"M5.48131 12.9013C4.30234 13.6033 1.21114 15.0368 3.09388 16.8305C4.01359 17.7067 5.03791 18.3333 6.32572 18.3333H13.6743C14.9621 18.3333 15.9864 17.7067 16.9061 16.8305C18.7889 15.0368 15.6977 13.6033 14.5187 12.9013C11.754 11.2551 8.24599 11.2551 5.48131 12.9013Z\"\r\n stroke=\"#697586\"\r\n stroke-width=\"1.66667\"\r\n />\r\n <path\r\n d=\"M13.75 5.41667C13.75 7.48774 12.0711 9.16667 10 9.16667C7.92893 9.16667 6.25 7.48774 6.25 5.41667C6.25 3.3456 7.92893 1.66667 10 1.66667C12.0711 1.66667 13.75 3.3456 13.75 5.41667Z\"\r\n stroke=\"#697586\"\r\n stroke-width=\"1.66667\"\r\n />\r\n </svg>\r\n )}\r\n {this.type === 'avatar_leading' && (\r\n <>\r\n {this.state === 'default' && (\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=\"M5.48131 12.9013C4.30234 13.6033 1.21114 15.0368 3.09388 16.8305C4.01359 17.7067 5.03791 18.3333 6.32572 18.3333H13.6743C14.9621 18.3333 15.9864 17.7067 16.9061 16.8305C18.7889 15.0368 15.6977 13.6033 14.5187 12.9013C11.754 11.2551 8.24599 11.2551 5.48131 12.9013Z\"\r\n stroke=\"#4B5565\"\r\n stroke-width=\"1.66667\"\r\n />\r\n <path\r\n d=\"M13.75 5.41666C13.75 7.48772 12.0711 9.16666 10 9.16666C7.92893 9.16666 6.25 7.48772 6.25 5.41666C6.25 3.34559 7.92893 1.66666 10 1.66666C12.0711 1.66666 13.75 3.34559 13.75 5.41666Z\"\r\n stroke=\"#4B5565\"\r\n stroke-width=\"1.66667\"\r\n />\r\n </svg>\r\n )}\r\n {this.state === 'filled' && (\r\n <gb-avatar size=\"xs\" text={this.text} color={this.color} show-border={this.showBorder}>\r\n <h1 slot=\"initials\">{this.selectedItem.name.split(' ').map(part => part.charAt(0).toUpperCase())}</h1>\r\n </gb-avatar>\r\n )}\r\n </>\r\n )}\r\n {this.showLeadingIcon && <>{this.type === 'search' || this.type === 'tags' ? <div class={`icon`} innerHTML={this.leadingIconSvg}></div> : null}</>}\r\n {this.type === 'dot_leading' && (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" class={`dot ${this.size}`}>\r\n <circle cx=\"5\" cy=\"5\" r=\"4\" fill=\"#079455\" />\r\n </svg>\r\n )}\r\n <div class=\"placeholder\">\r\n <>\r\n {this.state === 'default' && (\r\n <>\r\n {this.placeholder && (\r\n <p class=\"text-md-regular\" style={{ color: '#CDD5DF' }}>\r\n {this.placeholder}\r\n </p>\r\n )}\r\n </>\r\n )}\r\n {this.state === 'filled' && (\r\n <>\r\n <div class={`content`}>\r\n <div class={`text text-md-regular ${this.type === 'tags' ? 'tag' : ''}`} style={{ color: '#4B5565' }}>\r\n {/* {this.type === 'tags'\r\n ? this.selectedItems.map((item, index) => (\r\n <>\r\n <div class=\"added_tag\">\r\n <gb-tag size=\"sm\" icon={!this.icon ? 'avatar' : this.icon} action=\"X_close\" key={index} onClick={() => this.handleTagRemove(item)}>\r\n <p class=\"text-xs-medium\">{item.name.split(' ')[0]}</p>\r\n <h1 slot=\"initials\" class=\"text-xxs-semi-bold\">\r\n {item.name.split(' ').map(part => part.charAt(0).toUpperCase())}\r\n </h1>\r\n </gb-tag>\r\n </div>\r\n </>\r\n ))\r\n : this.selectedItem} */}\r\n {this.type === 'tags' && (\r\n <>\r\n {this.selectedItems.map((item, index) => {\r\n {\r\n typeof item === 'object' ? (\r\n <div class=\"added_tag\">\r\n <gb-tag size=\"sm\" icon={!this.icon ? 'avatar' : this.icon} action=\"X_close\" key={index} onClick={() => this.handleTagRemove(item)}>\r\n <p class=\"text-xs-medium\">{item.name.split(' ')[0]}</p>\r\n <h1 slot=\"initials\" class=\"text-xxs-semi-bold\">\r\n {item.name.split(' ').map(part => part.charAt(0).toUpperCase())}\r\n </h1>\r\n </gb-tag>\r\n </div>\r\n ) : (\r\n (console.log(item),\r\n (\r\n <div class=\"added_tag\">\r\n <gb-tag size=\"sm\" icon=\"avatar\" action=\"X_close\" key={index} onClick={() => this.handleTagRemove(item)}>\r\n <p class=\"text-xs-medium\">{item}</p>\r\n </gb-tag>\r\n </div>\r\n ))\r\n );\r\n }\r\n })}\r\n </>\r\n )}\r\n </div>\r\n {this.supportingText && (\r\n <div class=\"supporting_text text-sm-regular\" style={{ color: '#697586' }}>\r\n {this.type === 'tags'\r\n ? this.selectedItems.map(item => item.username).join(', ') // For multiple selections\r\n : this.selectedItem.username}\r\n </div>\r\n )}\r\n </div>\r\n </>\r\n )}\r\n </>\r\n </div>\r\n {this.showHelpIcon && (\r\n <div class={`help_icon`}>\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 </div>\r\n )}\r\n {this.type !== 'search' && (\r\n <div class={`dropdown_icon ${this.dropdownOpen ? 'opened' : ''}`}>\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" class={`${this.state}`}>\r\n <path\r\n d=\"M15 7.50004C15 7.50004 11.3176 12.5 9.99996 12.5C8.68237 12.5 5 7.5 5 7.5\"\r\n stroke=\"#697586\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n </div>\r\n )}\r\n </div>\r\n </div>\r\n {this.showHintText && (\r\n <p class=\"text-sm-regular\" style={{ color: '#697586' }}>\r\n {this.hintText}\r\n </p>\r\n )}\r\n </div>,\r\n <>\r\n {this.dropdownOpen && (\r\n <div class={`dropdown_menu ${this.menuPosition}`} ref={el => (this.dropdownRef = el)}>\r\n {this.type === 'tags' ? (\r\n <>\r\n {this.selectedItems.map(item => (\r\n <gb-input-dropdown-menu-item\r\n type={this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type}\r\n state={StateEnum.Default}\r\n supporting-text={this.supportingText}\r\n selected={this.isItemSelected(item)}\r\n onClick={() => this.handleItemSelect(item)}\r\n >\r\n <p slot=\"name\">{item.name}</p>\r\n <p slot=\"supporting_text\">@{item.username}</p>\r\n </gb-input-dropdown-menu-item>\r\n ))}\r\n {this.unselectedItems.map(item => (\r\n <gb-input-dropdown-menu-item\r\n type={this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type}\r\n state={StateEnum.Default}\r\n supporting-text={this.supportingText}\r\n selected={this.isItemSelected(item)}\r\n onClick={() => this.handleItemSelect(item)}\r\n >\r\n <p slot=\"name\">{item.name}</p>\r\n <p slot=\"supporting_text\">@{item.username}</p>\r\n </gb-input-dropdown-menu-item>\r\n ))}\r\n </>\r\n ) : (\r\n <>\r\n {this.items.map(item => (\r\n <gb-input-dropdown-menu-item\r\n type={this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type}\r\n state={StateEnum.Default}\r\n supporting-text={this.supportingText}\r\n selected={this.isItemSelected(item)}\r\n color={this.color}\r\n onClick={() => this.handleItemSelect(item)}\r\n >\r\n {typeof item === 'object' ? (\r\n <>\r\n <p slot=\"name\">{item.name}</p>\r\n <h1 slot=\"initials\">{item.name.split(' ').map(part => part.charAt(0).toUpperCase())}</h1>\r\n <p slot=\"supporting_text\">@{item.username}</p>\r\n </>\r\n ) : (\r\n typeof item === 'string' && (console.log(item), (<p slot=\"name\">{item}</p>))\r\n )}\r\n </gb-input-dropdown-menu-item>\r\n ))}\r\n </>\r\n )}\r\n </div>\r\n )}\r\n </>,\r\n ];\r\n }\r\n} \r\n "]}
1
+ {"version":3,"file":"gb-input-dropdown.js","sourceRoot":"","sources":["../../../src/components/gb-input-dropdown/gb-input-dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAgB,MAAM,EAAE,MAAM,eAAe,CAAC;AACxH,OAAO,EAAoE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAM1H,MAAM,OAAO,eAAe;;;;;yBAIG,KAAK;qBACV,EAAE;2BACI,EAAE;;wBAEL,EAAE;;+BAEM,KAAK;wBACb,EAAE;oBACL,KAAK;2BACC,EAAE;;qBAEsB;QACpD,2DAA2D;QAC3D,2DAA2D;QAC3D,2DAA2D;QAE3D,sBAAsB;QAEtB,eAAe;QACf,iBAAiB;SAClB;8BACiC,KAAK;;0BAET,KAAK;;8BAED,EAAE;4BACH,KAAK;6BACN,EAAE;+BACA,EAAE;;;IAOpC,oBAAoB;QAClB,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;IACjE,CAAC;IAGD,kBAAkB,CAAC,KAAiB;QAClC,IAAI,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAc,CAAC,EAAE,CAAC;YACjE,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC5B,CAAC;IACH,CAAC;IAED,cAAc;QACZ,IAAI,IAAI,CAAC,KAAK,KAAK,UAAU,EAAE,CAAC;YAC9B,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;QACzC,CAAC;IACH,CAAC;IAED,cAAc,CAAC,YAAY;QACzB,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, Fragment, Element, State, getAssetPath, Event, EventEmitter, Listen } from \"@stencil/core\";\r\nimport { AvatarColorTypes, DropdownItemTypes, DropdownTypes, GeneralSizes, StateEnum } from \"../../models/reusableModels\";\r\n@Component({\r\n tag: 'gb-input-dropdown',\r\n styleUrl: 'gb-input-dropdown.css',\r\n shadow: true,\r\n})\r\nexport class GbInputDropdown {\r\n @Prop() type: DropdownTypes;\r\n @Prop({ mutable: true }) state: 'default' | 'focused' | 'disabled' | 'filled';\r\n @Prop() size: GeneralSizes;\r\n @Prop() showLabel: boolean = false;\r\n @Prop() label: string = '';\r\n @Prop() placeholder: string = '';\r\n @Prop() showHintText: boolean;\r\n @Prop() hintText: string = '';\r\n @Prop() showHelpIcon: boolean;\r\n @Prop() showLeadingIcon: boolean = false;\r\n @Prop() iconSwap: string = '';\r\n @Prop() text: boolean = false;\r\n @Prop() leadingIcon: string = '';\r\n @Prop() icon: 'country' | 'avatar' | 'dot';\r\n @Prop({ mutable: true }) items: DropdownItemTypes[] = [\r\n // { name: 'Mock Item A', username: 'A', selected: false },\r\n // { name: 'Mock Item B', username: 'B', selected: false },\r\n // { name: 'Mock Item C', username: 'C', selected: false },\r\n\r\n // 45, 50, 20, 25, 90,\r\n\r\n // 'Activated',\r\n // 'Deactivated',\r\n ];\r\n @Prop() supportingText: boolean = false;\r\n @Prop() color: AvatarColorTypes;\r\n @Prop() showBorder: boolean = false;\r\n @Prop() menuPosition: 'top' | ' bottom';\r\n @State() leadingIconSvg: string = '';\r\n @State() dropdownOpen: boolean = false;\r\n @State() selectedItems: any[] = [];\r\n @State() unselectedItems: any[] = [];\r\n @State() selectedItem: any;\r\n @Element() el: HTMLElement;\r\n @Event() dropdownValue: EventEmitter<any>;\r\n\r\n dropdownRef!: HTMLElement;\r\n\r\n disconnectedCallback() {\r\n document.removeEventListener('click', this.handleClickOutside);\r\n }\r\n\r\n @Listen('click', { target: 'document' })\r\n handleClickOutside(event: MouseEvent) {\r\n if (this.dropdownOpen && !this.el.contains(event.target as Node)) {\r\n this.dropdownOpen = false;\r\n }\r\n }\r\n\r\n toggleDropdown() {\r\n if (this.state !== 'disabled') {\r\n this.dropdownOpen = !this.dropdownOpen;\r\n }\r\n }\r\n\r\n isItemSelected(selectedItem) {\r\n const found = this.selectedItems.find(item => item.name === selectedItem.name);\r\n return found !== undefined;\r\n }\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 getAvatarSize() {\r\n switch (this.size) {\r\n case 'sm':\r\n return 'xs';\r\n case 'md':\r\n return 'xs';\r\n }\r\n }\r\n\r\n sortDropdownItems(menuItems: any[]): any[] {\r\n return menuItems.sort((a, b) => {\r\n if (a.selected && !b.selected) {\r\n return -1; // Move selected items up\r\n } else if (!a.selected && b.selected) {\r\n return 1; // Keep unselected items down\r\n }\r\n return 0; // Keep order if both are selected or unselected\r\n });\r\n }\r\n\r\n handleItemSelect(item) {\r\n if (this.type === 'tags') {\r\n const itemExists = this.selectedItems.some(i => i.name === item.name);\r\n\r\n if (itemExists) {\r\n // Unselect item if it exists\r\n this.selectedItems = this.selectedItems.filter(i => i.name !== item.name);\r\n item.selected = false;\r\n this.unselectedItems = [...this.unselectedItems, item];\r\n } else {\r\n // Select item\r\n item.selected = true;\r\n this.selectedItems = [...this.selectedItems, item];\r\n this.unselectedItems = this.unselectedItems.filter(unselectedItem => unselectedItem.name !== item.name);\r\n }\r\n\r\n // Emit selected items for tags\r\n this.dropdownValue.emit(this.selectedItems);\r\n } else {\r\n // For single selection types (non-tags)\r\n this.selectedItem = item;\r\n this.selectedItems = [item]; // Ensure only one item is selected\r\n this.state = 'filled';\r\n\r\n // Emit the single selected item\r\n this.dropdownValue.emit(this.selectedItem);\r\n\r\n // Close dropdown after selection\r\n this.dropdownOpen = false;\r\n }\r\n\r\n // Update the dropdown state\r\n this.state = this.selectedItems.length > 0 ? 'filled' : 'default';\r\n }\r\n\r\n handleTagRemove(item) {\r\n // Remove the item from selectedItems array\r\n if (this.type === 'tags') {\r\n const itemExists = this.selectedItems.some(i => i.name === item.name);\r\n\r\n if (itemExists) {\r\n this.selectedItems = this.selectedItems.filter(i => i.name !== item.name);\r\n item.selected = false;\r\n\r\n if (!this.unselectedItems.includes(item)) {\r\n this.unselectedItems = [...this.unselectedItems, item];\r\n }\r\n }\r\n\r\n // Update the state based on whether there are selected items\r\n this.state = this.selectedItems.length > 0 ? 'filled' : 'default';\r\n }\r\n\r\n // For non-tags type, set selectedItem to null if that item is removed\r\n if (this.type !== 'tags' && this.selectedItem === item) {\r\n this.selectedItem = null;\r\n }\r\n\r\n // Update state based on whether there are selected items\r\n this.state = this.selectedItems.length > 0 ? 'filled' : 'default';\r\n }\r\n\r\n componentWillLoad() {\r\n this.loadIcon(this.leadingIcon);\r\n\r\n if (this.items && this.items.every(item => typeof item === 'object')) {\r\n if (this.type === 'tags') {\r\n this.selectedItems = this.items.filter(item => item.selected);\r\n this.unselectedItems = this.items.filter(item => !item.selected);\r\n }\r\n } else if (this.items && this.items.every(item => typeof item !== 'object')) {\r\n this.selectedItem = this.items.find(item => item) || null;\r\n }\r\n }\r\n\r\n componentDidLoad() {\r\n if (this.type !== 'tags') {\r\n document.addEventListener('click', this.handleClickOutside);\r\n }\r\n\r\n const slottedInitials = this.el.querySelector('[slot=\"initials\"]');\r\n\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(slottedInitials) {\r\n slottedInitials.classList.add('text-xxs-semi-bold');\r\n }\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 applyColorToInitials() {\r\n switch (this.color) {\r\n case 'gray':\r\n return 'gray';\r\n case 'blue':\r\n return 'blue';\r\n case 'cyan':\r\n return 'cyan';\r\n case 'pink':\r\n return 'pink';\r\n case 'purple':\r\n return 'purple';\r\n case 'green':\r\n return 'green';\r\n case 'yellow':\r\n return 'yellow';\r\n }\r\n }\r\n\r\n render() {\r\n return [\r\n <div class={`input_dropdown_container ${this.type === 'tags' ? 'tag' : ''}`} onClick={() => this.toggleDropdown()}>\r\n <div class={`input_with_label`}>\r\n {this.showLabel && (\r\n <p class=\"text-sm-regular\" style={{ color: '#4B5565' }}>\r\n {this.label.charAt(0).toUpperCase() + this.label.slice(1).toLowerCase()}\r\n </p>\r\n )}\r\n <div class={`input_dropdown_div ${this.size} ${this.state} ${this.type === 'tags' ? 'tag' : ''}`}>\r\n {this.type === 'icon_leading' && (\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=\"M5.48131 12.9013C4.30234 13.6033 1.21114 15.0368 3.09388 16.8305C4.01359 17.7067 5.03791 18.3333 6.32572 18.3333H13.6743C14.9621 18.3333 15.9864 17.7067 16.9061 16.8305C18.7889 15.0368 15.6977 13.6033 14.5187 12.9013C11.754 11.2551 8.24599 11.2551 5.48131 12.9013Z\"\r\n stroke=\"#697586\"\r\n stroke-width=\"1.66667\"\r\n />\r\n <path\r\n d=\"M13.75 5.41667C13.75 7.48774 12.0711 9.16667 10 9.16667C7.92893 9.16667 6.25 7.48774 6.25 5.41667C6.25 3.3456 7.92893 1.66667 10 1.66667C12.0711 1.66667 13.75 3.3456 13.75 5.41667Z\"\r\n stroke=\"#697586\"\r\n stroke-width=\"1.66667\"\r\n />\r\n </svg>\r\n )}\r\n {this.type === 'avatar_leading' && (\r\n <>\r\n {this.state === 'default' && (\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=\"M5.48131 12.9013C4.30234 13.6033 1.21114 15.0368 3.09388 16.8305C4.01359 17.7067 5.03791 18.3333 6.32572 18.3333H13.6743C14.9621 18.3333 15.9864 17.7067 16.9061 16.8305C18.7889 15.0368 15.6977 13.6033 14.5187 12.9013C11.754 11.2551 8.24599 11.2551 5.48131 12.9013Z\"\r\n stroke=\"#4B5565\"\r\n stroke-width=\"1.66667\"\r\n />\r\n <path\r\n d=\"M13.75 5.41666C13.75 7.48772 12.0711 9.16666 10 9.16666C7.92893 9.16666 6.25 7.48772 6.25 5.41666C6.25 3.34559 7.92893 1.66666 10 1.66666C12.0711 1.66666 13.75 3.34559 13.75 5.41666Z\"\r\n stroke=\"#4B5565\"\r\n stroke-width=\"1.66667\"\r\n />\r\n </svg>\r\n )}\r\n {this.state === 'filled' && (\r\n <gb-avatar size=\"xs\" text={this.text} color={this.color} show-border={this.showBorder}>\r\n <h1 slot=\"initials\">{this.selectedItem.name.split(' ').map(part => part.charAt(0).toUpperCase())}</h1>\r\n </gb-avatar>\r\n )}\r\n </>\r\n )}\r\n {this.showLeadingIcon && <>{this.type === 'search' || this.type === 'tags' ? <div class={`icon`} innerHTML={this.leadingIconSvg}></div> : null}</>}\r\n {this.type === 'dot_leading' && (\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" class={`dot ${this.size}`}>\r\n <circle cx=\"5\" cy=\"5\" r=\"4\" fill=\"#079455\" />\r\n </svg>\r\n )}\r\n <div class=\"placeholder\">\r\n <>\r\n {this.state === 'default' && (\r\n <>\r\n {this.placeholder && (\r\n <p class=\"text-md-regular\" style={{ color: '#CDD5DF' }}>\r\n {this.placeholder}\r\n </p>\r\n )}\r\n </>\r\n )}\r\n {this.state === 'filled' && (\r\n <>\r\n <div class={`content`}>\r\n <div class={`text text-md-regular ${this.type === 'tags' ? 'tag' : ''}`} style={{ color: '#4B5565' }}>\r\n {/* {this.type === 'tags'\r\n ? this.selectedItems.map((item, index) => (\r\n <>\r\n <div class=\"added_tag\">\r\n <gb-tag size=\"sm\" icon={!this.icon ? 'avatar' : this.icon} action=\"X_close\" key={index} onClick={() => this.handleTagRemove(item)}>\r\n <p class=\"text-xs-medium\">{item.name.split(' ')[0]}</p>\r\n <h1 slot=\"initials\" class=\"text-xxs-semi-bold\">\r\n {item.name.split(' ').map(part => part.charAt(0).toUpperCase())}\r\n </h1>\r\n </gb-tag>\r\n </div>\r\n </>\r\n ))\r\n : this.selectedItem} */}\r\n {this.type === 'tags' && (\r\n <>\r\n {this.selectedItems.map((item, index) => {\r\n {\r\n typeof item === 'object' ? (\r\n <div class=\"added_tag\">\r\n <gb-tag size=\"sm\" icon={!this.icon ? 'avatar' : this.icon} action=\"X_close\" key={index} onClick={() => this.handleTagRemove(item)}>\r\n <p class=\"text-xs-medium\">{item.name.split(' ')[0]}</p>\r\n <h1 slot=\"initials\" class=\"text-xxs-semi-bold\">\r\n {item.name.split(' ').map(part => part.charAt(0).toUpperCase())}\r\n </h1>\r\n </gb-tag>\r\n </div>\r\n ) : (\r\n (console.log(item),\r\n (\r\n <div class=\"added_tag\">\r\n <gb-tag size=\"sm\" icon=\"avatar\" action=\"X_close\" key={index} onClick={() => this.handleTagRemove(item)}>\r\n <p class=\"text-xs-medium\">{item}</p>\r\n </gb-tag>\r\n </div>\r\n ))\r\n );\r\n }\r\n })}\r\n </>\r\n )}\r\n </div>\r\n {this.supportingText && (\r\n <div class=\"supporting_text text-sm-regular\" style={{ color: '#697586' }}>\r\n {this.type === 'tags'\r\n ? this.selectedItems.map(item => item.username).join(', ') // For multiple selections\r\n : this.selectedItem.username}\r\n </div>\r\n )}\r\n </div>\r\n </>\r\n )}\r\n </>\r\n </div>\r\n {this.showHelpIcon && (\r\n <div class={`help_icon`}>\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 </div>\r\n )}\r\n {this.type !== 'search' && (\r\n <div class={`dropdown_icon ${this.dropdownOpen ? 'opened' : ''}`}>\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" class={`${this.state}`}>\r\n <path\r\n d=\"M15 7.50004C15 7.50004 11.3176 12.5 9.99996 12.5C8.68237 12.5 5 7.5 5 7.5\"\r\n stroke=\"#697586\"\r\n stroke-width=\"1.66667\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n </div>\r\n )}\r\n </div>\r\n </div>\r\n {this.showHintText && (\r\n <p class=\"text-sm-regular\" style={{ color: '#697586' }}>\r\n {this.hintText}\r\n </p>\r\n )}\r\n </div>,\r\n <>\r\n {this.dropdownOpen && (\r\n <div class={`dropdown_menu ${this.menuPosition}`} ref={el => (this.dropdownRef = el)}>\r\n {this.type === 'tags' ? (\r\n <>\r\n {this.selectedItems.map(item => (\r\n <gb-input-dropdown-menu-item\r\n type={this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type}\r\n state={StateEnum.Default}\r\n supporting-text={this.supportingText}\r\n selected={this.isItemSelected(item)}\r\n onClick={() => this.handleItemSelect(item)}\r\n >\r\n {typeof item === 'object' ? (\r\n <>\r\n <p slot=\"name\">{item.name}</p>\r\n <p slot=\"supporting_text\">@{item.username}</p>\r\n </>\r\n ) : (\r\n <p slot=\"name\">{item}</p>\r\n )}\r\n </gb-input-dropdown-menu-item>\r\n ))}\r\n {this.unselectedItems.map(item => (\r\n <gb-input-dropdown-menu-item\r\n type={this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type}\r\n state={StateEnum.Default}\r\n supporting-text={this.supportingText}\r\n selected={this.isItemSelected(item) || false}\r\n onClick={() => this.handleItemSelect(item)}\r\n >\r\n {typeof item === 'object' ? (\r\n <>\r\n <p slot=\"name\">{item.name}</p>\r\n <p slot=\"supporting_text\">@{item.username}</p>\r\n </>\r\n ) : (\r\n <p slot=\"name\">{item}</p>\r\n )}\r\n </gb-input-dropdown-menu-item>\r\n ))}\r\n {this.items.map(item => (\r\n <gb-input-dropdown-menu-item\r\n type={this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type}\r\n state={StateEnum.Default}\r\n supporting-text={this.supportingText}\r\n selected={this.isItemSelected(item)}\r\n color={this.color}\r\n onClick={() => this.handleItemSelect(item)}\r\n >\r\n {typeof item === 'object' ? (\r\n <>\r\n <p slot=\"name\">{item.name}</p>\r\n <h1 slot=\"initials\">{item.name.split(' ').map(part => part.charAt(0).toUpperCase())}</h1>\r\n <p slot=\"supporting_text\">@{item.username}</p>\r\n </>\r\n ) : (\r\n typeof item !== 'object' && (console.log(item), (<p slot=\"name\">{item}</p>))\r\n )}\r\n </gb-input-dropdown-menu-item>\r\n ))}\r\n </>\r\n ) : (\r\n <>\r\n {this.items.map(item => (\r\n <gb-input-dropdown-menu-item\r\n type={this.type === 'search' ? 'checkbox' : this.type === 'tags' ? 'checkbox' : this.type}\r\n state={StateEnum.Default}\r\n supporting-text={this.supportingText}\r\n selected={this.isItemSelected(item)}\r\n color={this.color}\r\n onClick={() => this.handleItemSelect(item)}\r\n >\r\n {typeof item === 'object' ? (\r\n <>\r\n <p slot=\"name\">{item.name}</p>\r\n <h1 slot=\"initials\">{item.name.split(' ').map(part => part.charAt(0).toUpperCase())}</h1>\r\n <p slot=\"supporting_text\">@{item.username}</p>\r\n </>\r\n ) : (\r\n typeof item !== 'object' && (console.log(item), (<p slot=\"name\">{item}</p>))\r\n )}\r\n </gb-input-dropdown-menu-item>\r\n ))}\r\n </>\r\n )}\r\n </div>\r\n )}\r\n </>,\r\n ];\r\n }\r\n} \r\n "]}
@@ -24,13 +24,13 @@ export class GbInputDropdownMenuItem {
24
24
  render() {
25
25
  return (
26
26
  // <div class="dropdown-container" onClick={() => (this.selected = !this.selected)}>
27
- h("div", { key: 'd797ff86e3c9870ae596e5feb5e43224239ac981', class: "dropdown-container" }, h("div", { key: '02d483312ab9aaafe04b253dbcd22c96df3adfe0', class: {
27
+ h("div", { key: 'b09c277b4f42f6dba5ed42e0edc327332d9c79ac', class: "dropdown-container" }, h("div", { key: '65465e8bc9b153abfb6403e2f8cc63975effb578', class: {
28
28
  'dropdown-item': true,
29
29
  'selected': this.selected,
30
30
  'disabled': this.state === 'disabled',
31
31
  'checkbox': this.type === 'checkbox',
32
32
  [this.type]: true,
33
- }, role: "option", "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.state === 'disabled' ? 'true' : 'false' }, h("div", { key: '53770184654221e6fc46fd9a6a7fb2c82ce6f6ae', class: "content" }, this.type === 'icon_leading' && (h("svg", { key: 'b5fca9edcee5f586a5df54f9d9522572903852d8', id: "icon", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'fa3516d1a8462925c7ae08d2383046be729269be', 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: '18957d4de044f10617d8b60a974a3244f2f52f74', 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: '83125e9735581fd521051ee8847ecd30bc82dfe7', class: "avatar-icon", size: "xs", color: this.color, text: true }, h("slot", { key: '336b608b83efb239153628e5434d192d4c73b3f5', name: "initials", slot: "initials" }))), this.type === 'dot_leading' && (h(Fragment, null, this.state === 'default' ? (h("svg", { id: "icon", xmlns: "http://www.w3.org/2000/svg", width: "10px", height: "10px", viewBox: "0 0 10 10", fill: "none" }, h("circle", { cx: "5", cy: "5", r: "4", fill: "#17B26A" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none" }, h("circle", { cx: "5", cy: "5", r: "4", fill: "#EEF2F6" }))))), this.type === 'checkbox' && h("gb-checkbox", { key: '68614505f4abaa77eef2ce2aaf63aa75f1773262', class: "checkbox", size: "md", type: "checkbox", state: this.state, checked: this.selected }), h("slot", { key: '0be9673e29b994e5d7225750d24d0a3dbc31e0b1', name: "name" }), this.supportingText && (h("span", { key: '973b421e0846f1bf75832b27793894366a2b9a8b' }, h("slot", { key: 'e80691a1f0a5ed33884dc82e3daea2ede803fb2f', name: "supporting_text" })))), this.selected && this.type !== 'checkbox' && (h("div", { key: 'b5bd7421dca7cffc84f1f6b5f3d4c01c74f4b3b0', class: `tick` }, this.state !== 'disabled' ? (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", class: `tick ${this.state}` }, h("path", { 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" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { 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: "#CDD5DF", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" }))))))));
33
+ }, role: "option", "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.state === 'disabled' ? 'true' : 'false' }, h("div", { key: 'cc83444337292fb6b619292590002cd1ec796022', class: "content" }, this.type === 'icon_leading' && (h("svg", { key: '63abad092af7f3bdfc930870b1ff9e5a94880f5f', id: "icon", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '5cf6e6f867c9a315a57a230f52d69dd7f1d4f8f4', 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: '62f4e8a8ccaab0d5abc4d48d64531d21ced4cba9', 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: '403c53ff993bb0b6f8f782edca29137a7fc2bba2', class: "avatar-icon", size: "xs", color: this.color, text: true }, h("slot", { key: '3a27026a684fdfd18db65d91c33745027afa4e1e', name: "initials", slot: "initials" }))), this.type === 'dot_leading' && (h(Fragment, null, this.state === 'default' ? (h("svg", { id: "icon", xmlns: "http://www.w3.org/2000/svg", width: "10px", height: "10px", viewBox: "0 0 10 10", fill: "none" }, h("circle", { cx: "5", cy: "5", r: "4", fill: "#17B26A" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none" }, h("circle", { cx: "5", cy: "5", r: "4", fill: "#EEF2F6" }))))), this.type === 'checkbox' && h("gb-checkbox", { key: '46e1e1151259f91ab455a1d543e100db5269f133', class: "checkbox", size: "md", type: "checkbox", state: this.state, checked: this.selected }), h("slot", { key: '35298f494ae612bd4e056bfaeea823c0101a2e91', name: "name" }), this.supportingText && (h("span", { key: 'af5606df8b0c3ab5349e12737f06a248116c31eb' }, h("slot", { key: '8e0a5b7d5e4c275c17190435ff0aeb861b51101b', name: "supporting_text" })))), this.selected && this.type !== 'checkbox' && (h("div", { key: '96d4306c97742c6358628917f20f3eb3ac055878', class: `tick` }, this.state !== 'disabled' ? (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", class: `tick ${this.state}` }, h("path", { 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" }))) : (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { 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: "#CDD5DF", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" }))))))));
34
34
  }
35
35
  static get is() { return "gb-input-dropdown-menu-item"; }
36
36
  static get encapsulation() { return "shadow"; }
@@ -8,13 +8,13 @@ export class GbInputField {
8
8
  document.execCommand('copy'); // Deprecated but works in most browsers
9
9
  // For modern browsers:
10
10
  navigator.clipboard
11
- .writeText(this.inputRef.value)
12
- .then(() => {
13
- console.log('Copied to clipboard');
14
- })
15
- .catch(err => {
16
- console.error('Failed to copy: ', err);
17
- });
11
+ .writeText(this.inputRef.value);
12
+ // .then(() => {
13
+ // console.log('Copied to clipboard');
14
+ // })
15
+ // .catch(err => {
16
+ // console.error('Failed to copy: ', err);
17
+ // });
18
18
  }
19
19
  };
20
20
  this.size = undefined;
@@ -102,21 +102,21 @@ export class GbInputField {
102
102
  document.removeEventListener('click', this.handleClickOutside);
103
103
  }
104
104
  render() {
105
- return (h("div", { key: '9c3eea3741615c486bfe7b15099531f27b1a0c8d', class: `input_container` }, h("div", { key: 'b67842268bf88493c5d60574133319ef8ef1426b', class: `input_with_label` }, this.showLabel && h("p", { key: '185e6cb1e200c8ae1a428c15a1052a839bea7286', class: "label text-sm-medium" }, this.label.charAt(0).toUpperCase() + this.label.slice(1).toLowerCase()), this.type === 'default' && [
106
- h("div", { key: '9a7290654f226a7308fdcb87cf6ac984529fac59', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("input", { key: 'ceaa9072c23eb6c41fda373d7990fc5745421feb', 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: 'feaa3e129dec5b2fec8d8d2f0f9ae0442d580021', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", class: "tick" }, h("path", { key: '3268f74179dc60828d7474d6405122af5fadd18c', 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: '206b9e2325a677af49a3904bb3b169762a525d74', 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" }))))))),
105
+ return (h("div", { key: '5fe7d38091cf8bec2020b0544d1b175346da487c', class: `input_container` }, h("div", { key: '07ad632bafe6a6b256f993cf6b571098005b9345', class: `input_with_label` }, this.showLabel && h("p", { key: 'f25cfe6ffc53b07226328abac801d915b501826f', class: "label text-sm-medium" }, this.label.charAt(0).toUpperCase() + this.label.slice(1).toLowerCase()), this.type === 'default' && [
106
+ h("div", { key: 'b89dba2102aa89d96ac3273aa566303e1b25b485', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("input", { key: '9a7714b4f81359f02c03d305ede03e06cacc4149', 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: 'd4262129f4a95f46ca3d28630297ede718390c2e', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", class: "tick" }, h("path", { key: '6d986bea07f3b26445df56f847fe6a59ea2b39da', 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: '7a5058b07cd507685257990e04efe09c37911c94', 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" }))))))),
107
107
  ], this.type === 'icon_leading' && [
108
- h("div", { key: '2c41ca2429cbeb62bfc8269a225fe26e57ecd727', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '1f8741422a8e3929110141843918d5b11c94f5b2', class: `icon ${this.size} ${this.state}`, innerHTML: this.leadingIconSvg }), h("input", { key: '1c41f3d6d4f7000c76556db689e92c1e5fe3a2e8', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), ref: el => (this.inputRef = el) }), h(Fragment, null, this.showValidation && !this.destructive && (h("svg", { key: '4fbf0fd635541aff28365ba99f43c847cf1187bd', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", class: "tick" }, h("path", { key: 'bea22dd8ed6ae6a4cbf6df2c578f692a7aedcc46', 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: '80dbe8e0a5b1cc8f83ae9f7fe38aadc645f389d4', 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: '21a8b2a7d12ebbf7a1fccf1370ce53db5a6fe81f', size: "sm", hierarchy: "tertiary_gray", icon: "only", state: "default", "icon-leading": true, "icon-leading-swap": "assets/cancel-01.svg", onClick: () => this.clearInput() })))),
108
+ h("div", { key: 'a4a7b80e97df1cb9cf52a0d62b74a0e463707822', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '488fd70a0963fb0ac0fcbe4733b9124d3fb09328', class: `icon ${this.size} ${this.state}`, innerHTML: this.leadingIconSvg }), h("input", { key: 'd550ae6686f2c1e1b63da1b69482be62186e4834', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), ref: el => (this.inputRef = el) }), h(Fragment, null, this.showValidation && !this.destructive && (h("svg", { key: '63e31daa034fcbb1312b3f0cd1442f8166addf60', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", class: "tick" }, h("path", { key: '68e5b96e33bcfb06b3c5cccbf68a98fcdf1f9c94', 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: '95821b1ce8544be969ed40119c3731b2c0790859', 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: '702357745fc6beea970998c97699b831786b91aa', size: "sm", hierarchy: "tertiary_gray", icon: "only", state: "default", "icon-leading": true, "icon-leading-swap": "assets/cancel-01.svg", onClick: () => this.clearInput() })))),
109
109
  ], this.type === 'leading_dropdown' && [
110
- h("div", { key: '171a205b9c1ee53505f1730ee746e4df85c33759', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'c67ce8040cd53d0f1eff9aa41fe682e165d18a2a', class: `leading_dropdown_dropdown`, onClick: () => (this.showDropdown = !this.showDropdown) }, h("div", { key: 'facdf05a1c8ef42decfee229d465d6118cfd508c', class: `country_icon` }, h("img", { key: '0fc70b3953614736e41b89ed4d586536e1290e5d', src: "build/assets/NG.svg", alt: "" })), h("div", { key: 'f3b5aeaf6a5388ad145cc5e8537758f322dc3a0a', class: `dropdown_text` }, h("p", { key: 'e22137eeba7110fdfd4557c6e9afaf62d5bf95b7', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, this.selectedItem)), h("div", { key: 'a88fb80d52d83d5569f8825e90adcd8a2cfd428b', class: `dropdown_arrow` }, h("svg", { key: '156a22215d7d7f54dd0d31bb2441dcee8a91f694', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'd951c3a1c099f0ceba06ae52844ed169662bb1dd', d: "M15 7.50004C15 7.50004 11.3176 12.5 9.99996 12.5C8.68237 12.5 5 7.5 5 7.5", stroke: "#4B5565", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" })))), h("div", { key: 'bbbee7e97555d01d3cef484d11689f5bfbbdf176', class: `leading_dropdown_text_input` }, h("input", { key: 'cb52e997d71bd1b55ac85847604bfb47745f00c0', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showValidation && !this.destructive && (h("svg", { key: '6eed156691e1c4b5f04a596a76ff90fee01ca4f9', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'c863a2b56ebe7a6e0098c867af59f263c0799ba1', 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: '4ee54ba1694c6b8fb8a118cd43fcc40de66450ca', 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" }))))))),
111
- h(Fragment, null, this.showDropdown && (h("div", { key: 'b4eac887f00816e0107efba4f24da2a632b0cd85', class: `dropdown_menu ${this.type} ${this.size}`, ref: el => (this.dropdownRef = el) }, this.options.map(option => (h("gb-input-dropdown-menu-item", { type: "default", state: StateEnum.Default, selected: this.isItemSelected(option), onClick: () => this.handleItemSelect(option) }, h("p", { slot: "name" }, option))))))),
110
+ h("div", { key: '7d1ff4f8843d2de3c74a1c9a7383d617576355dc', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '974d4a1f4aad35f73d9ae8a72f61b1c76f8e7ee3', class: `leading_dropdown_dropdown`, onClick: () => (this.showDropdown = !this.showDropdown) }, h("div", { key: '597f342825320e39b423bc35d99f1a87b734da15', class: `country_icon` }, h("img", { key: '11e790a52e1db8f6b258f9b04503b68e1e081d4e', src: "build/assets/NG.svg", alt: "" })), h("div", { key: '8e96331ea5a55a74d981a3e7f6830de1ece2b0cf', class: `dropdown_text` }, h("p", { key: 'b8fb81e4cfcfaee417d078c1945d929cbd18e0bd', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, this.selectedItem)), h("div", { key: '0bffe1548b7e20a8ade6e26e6d37733ebd3073d5', class: `dropdown_arrow` }, h("svg", { key: '1d868d347e8ba9041d6741e9dcd5ed70e4f46d8e', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '4721469fd8523ce98e96dbfb2632a490456e1757', d: "M15 7.50004C15 7.50004 11.3176 12.5 9.99996 12.5C8.68237 12.5 5 7.5 5 7.5", stroke: "#4B5565", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" })))), h("div", { key: '4f0f94250983c30f43f20215df522e70a1bdcd3e', class: `leading_dropdown_text_input` }, h("input", { key: '323e1408cf814511c13b241e7cf3634103ef673c', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showValidation && !this.destructive && (h("svg", { key: '7949bd95fc8c3d4598c1f2400835abc01333462c', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '06b8b8a969aac97d190660ef2f098e4c2eb75ffe', 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: '58ce5f4cb512ec47e3d164ea2277877f22cdbac8', 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" }))))))),
111
+ h(Fragment, null, this.showDropdown && (h("div", { key: 'e2dd4fe7584bb597d402fdd4f7518269cdb6a1b8', class: `dropdown_menu ${this.type} ${this.size}`, ref: el => (this.dropdownRef = el) }, this.options.map(option => (h("gb-input-dropdown-menu-item", { type: "default", state: StateEnum.Default, selected: this.isItemSelected(option), onClick: () => this.handleItemSelect(option) }, h("p", { slot: "name" }, option))))))),
112
112
  ], this.type === 'trailing_dropdown' && [
113
- h("div", { key: '2f1681baa734466386afb45acab58bcc44622f94', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '51b6b1a67d30000b7dbc4b996a16a44f8cf31f2a', class: `trailing_dropdown_content` }, h("p", { key: '2db2da2c44a6cdca02a76f9ef787ce3291f6c10d', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, "$"), h("input", { key: '4ee10a1af613789f35536acb05e8992907bf41fc', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showHelpIcon && (h("div", { key: '6e7cde3b181de63ef39dd926a317531a7a9f7c68', 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: '35cf72526f1a5d96509cc3f2afd54372090627e0', class: `trailing_dropdown_dropdown`, onClick: () => (this.showDropdown = !this.showDropdown) }, h("div", { key: '8d351ae90786adbca00ecf5467acd8b7aa934398', class: `dropdown_text` }, h("p", { key: '6e0dda13bf1a86194168ab45f362a0f0210d8005', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, this.selectedItem)), h("div", { key: '3e863f04aa6bb002705f3c304f20fd75200be556', class: `dropdown_arrow` }, h("svg", { key: 'f58d96c91e7f997e2596d8ae8500fa318993c27d', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '4919d2f6f7c39dee118f674cb5724fc55ad39e97', d: "M15 7.50004C15 7.50004 11.3176 12.5 9.99996 12.5C8.68237 12.5 5 7.5 5 7.5", stroke: "#4B5565", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" }))))),
114
- h(Fragment, null, this.showDropdown && (h("div", { key: 'e09a737e2d0a124bcf61b420d19a1184ceada00c', class: `dropdown_menu ${this.type} ${this.size}`, ref: el => (this.dropdownRef = el) }, this.options.map(option => (h("gb-input-dropdown-menu-item", { type: "default", state: StateEnum.Default, selected: this.isItemSelected(option), onClick: () => this.handleItemSelect(option) }, h("p", { slot: "name" }, option))))))),
113
+ h("div", { key: 'c8a5d8a2385ff9680116ae50878fc07f655be6d7', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'ba85ec4ac2cf165ba19d3f9e8befee8204e1f359', class: `trailing_dropdown_content` }, h("p", { key: '8b5186853c7269e671651b1e2938f4cabc2162a5', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, "$"), h("input", { key: 'f8ae455b159ae219e7c96a7f7b8bb28495782798', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showHelpIcon && (h("div", { key: '4c4fd31e6b55b50a191ffca6c69806d843c52869', 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: '4f47d25c43cb9c6c68fb186d045740b97f7dd4b5', class: `trailing_dropdown_dropdown`, onClick: () => (this.showDropdown = !this.showDropdown) }, h("div", { key: '10f0734172af2bfb87874c2e5df28c93960f6ba1', class: `dropdown_text` }, h("p", { key: '86b719cffcb0ec4d5a06a2f8f35b01f21473a201', class: "text-md-regular", style: { color: 'var(--color-text, #4B5565)' } }, this.selectedItem)), h("div", { key: 'e36a528c1e5f3da94206544abdd1ee2b46b2a676', class: `dropdown_arrow` }, h("svg", { key: '2a3ea5ed33686b832d55eb9236dd7effd180577f', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'd92389890078edb42a60566eefc66b3d00a6cb1e', d: "M15 7.50004C15 7.50004 11.3176 12.5 9.99996 12.5C8.68237 12.5 5 7.5 5 7.5", stroke: "#4B5565", "stroke-width": "1.66667", "stroke-linecap": "round", "stroke-linejoin": "round" }))))),
114
+ h(Fragment, null, this.showDropdown && (h("div", { key: 'f30eb8ee7690655c9a5f9380c3b994f34962e378', class: `dropdown_menu ${this.type} ${this.size}`, ref: el => (this.dropdownRef = el) }, this.options.map(option => (h("gb-input-dropdown-menu-item", { type: "default", state: StateEnum.Default, selected: this.isItemSelected(option), onClick: () => this.handleItemSelect(option) }, h("p", { slot: "name" }, option))))))),
115
115
  ], this.type === 'leading_text' && [
116
- h("div", { key: '2243098a8fca1c8a5fee0afc948f9343cb33222f', class: "leading_text_input" }, h("div", { key: 'a22955dc085ca5f34ddedb8a70336a3545c830db', class: `add_on` }, h("p", { key: 'dc645e50829b0c753a2a3269ffa7a0b2b01d30f7', class: `text-md-regular`, style: { color: this.state === 'disabled' ? 'var(--color-text-disabled, #CDD5DF)' : 'var(--color-text, #4B5565)' } }, "http://")), h("div", { key: '44f003871d5d56083d2dc94689cc13de9a19971d', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("input", { key: 'e7a1809b625a2faafa47e0988563e0eb566f58cf', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showValidation && !this.destructive && (h("svg", { key: 'c626bd2d121d4f528dc6b07d3ded24d920c12868', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '8a2ba783ff47fa557e611b39fdb3060e55cfa559', 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: 'c50062e9bc38516b47099d53a2a341ed5ec1ebf3', 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" }))))))),
117
- ], this.type === 'payment_input' && (h("div", { key: '8a998dbeed2c704a72014313cc4d6b520427ae7d', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("svg", { key: 'bfbfc6ca005a4c57b63dd5cf05e7c731df7dbd2b', xmlns: "http://www.w3.org/2000/svg", width: "23", height: "14", viewBox: "0 0 23 14", fill: "none" }, h("path", { key: '9438026f5a9f4bc88a9621d02f28be2b013a4abe', "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: '393ad7fd4bdb9e881d8c987775db43b43986dc3a', "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: '701c74014cb6539b84852a1d79f8dcb7ea4e8d8f', "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: '4726ca4ac15d1d09aa8d051af82d7a0f7d609377', 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 && !this.destructive && (h("svg", { key: '9c98aae4c702dabafa5a6cafa7b1f871a981de78', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '9a9ab0639c22126d190346a11a0eae6ba338daba', 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: '9d1b4029a2a78488322871c8af17e9a33f31a8b7', 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: '1f44b5581ffb7eab0a6f301a14cddb8dd6f19cf1', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '986de799db179d2cb81cd72f1a5bbac58f132d23', class: `trailing_button_text_input ${this.size}` }, h("input", { key: '13098e356502a68d179b742f1e2d6a0a000a233b', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), ref: el => (this.inputRef = el) }), this.showValidation && !this.destructive && (h("svg", { key: 'd65f86e1ab85f0d62161bcff439b8177be40fa12', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '9a5b1a7feffdca80c38a0e1810bd215ac7f9873e', 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: '68c846ac400c9fd08d88316e88f53448bf79f7f3', 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: '5b55bd7438c06911fd596cd89102b5339257a2d4', size: "lg", hierarchy: "tertiary_gray", icon: "only", state: this.state === 'disabled' ? 'disabled' : 'default', "icon-leading": true, "icon-leading-swap": "assets/copy-01.svg", onClick: () => this.copyToClipboard() }))), this.type === 'password' && (h("div", { key: '9c88965d8ca3b56c517a6a8a62599c249d28ff7e', class: `password_input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '0da01789b892b78f43e319ffe0d1ecca0d6df499', class: `password_content` }, h("input", { key: '141a29382bbd6212cc61ded3b61a7827a9c28fb5', class: `content text-md-regular ${this.type} ${this.state}`, type: this.isPasswordVisible ? 'text' : 'password', placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showValidation && !this.destructive && (h("svg", { key: 'f33cd7122618045e66f4475437ef02bf44a47d65', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'dea12e7dbb70dcf6591d4157c5936912231de1e0', 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: '7bc2b8b95aa39ce24b6609ad541e887639dc944c', 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: '84acf397b263de57e48bfb22e6004c489e04c65c', class: `dropdown` }, h("gb-password-button", { key: 'd11bb7c0f2542c5a171893fd790004620d7e4dd6', onClick: () => this.togglePasswordVisibility() })))), this.type === 'password_icon_leading' && (h("div", { key: '65b177e46b96e24c58cbc22923d222ba689a0380', class: `password_icon_leading_input input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '18eb462cbfb31d2e7319eb9f11c04ddf95d473c9', class: `password_icon_leading_content` }, h("svg", { key: '31c52fe972c7133ca11d6166329bb81fa22fc549', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '31673b4928adb01d3f3b90735ec8f2d61f7f3197', 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: 'ea43c3234132795cc3940536a97ac22c6278392e', class: `content text-md-regular ${this.type} ${this.state}`, type: this.isPasswordVisible ? 'text' : 'password', placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) })), this.showValidation && !this.destructive && (h("svg", { key: 'a258c801be317c2b459cacc951c87b2f914902f8', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'e270bb0e464c493d2a1631c433fb38e8dfe65a88', 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: '81cb6acb8535613a19e860a021f3b261f267eb04', 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: '385475300919e69677bccf46d580937aa50b5c9f', onClick: () => this.togglePasswordVisibility() }))), this.type === 'count' && [
118
- h("div", { key: '79e21e283ce36392133c9cfd981812e56c30dc49', class: `count_input` }, h("div", { key: '539370f5950aac8ff4f1eb8adcf759405e735d0f', class: `count_text_input ${this.destructive ? 'destructive' : ''} ${this.state}` }, h("input", { key: '348d7c28f8bbe0bf7d405ea0778029dd2ea53545', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showHelpIcon && (h("div", { key: '3462cefa08d5213c7d3bef94d76995b5ca167abe', 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: 'aa1bb302c53ca6746ce927e82ee47be31559fc05', class: `action ${this.state}` }, h("gb-button", { key: 'b08d2196a672dbe7fd969093fb683698ae614f59', 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: '6bc13bdcfd3df0d3fc16f6fef24d3198cebce628' }), h("gb-button", { key: 'df06e7e3e9a7ece4f91872d30ba1850fb00ddb77', size: "xl", state: this.state === 'disabled' ? 'disabled' : 'default', hierarchy: "tertiary_gray", icon: "only", "icon-leading": "true", "icon-leading-swap": "assets/plus_sign.svg" }))),
119
- ], this.type === 'tags' && (h("div", { key: '644cfed6c55babca75d7fddc889a2a0f59caa256', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '5af7240eb83ffb591846cce65d28009dd25581ae', class: `tags_display` }), h("input", { key: 'e253aae82d5e9ed154ed3105615115eb5ccda2c5', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) })))), this.showHintText && h("p", { key: '8d348400e438a0925be442a57788d29fe5804e18', class: "hint_text text-sm-regular" }, this.hintText)));
116
+ h("div", { key: '10769a20d2d2054dbb4883d7459b6636acfd440b', class: "leading_text_input" }, h("div", { key: 'e4d392c87a74de67c4e35e0071913b9b9a79be73', class: `add_on` }, h("p", { key: '2e870dfaf3d17bb64b1ecf7b74a81d4342690d80', class: `text-md-regular`, style: { color: this.state === 'disabled' ? 'var(--color-text-disabled, #CDD5DF)' : 'var(--color-text, #4B5565)' } }, "http://")), h("div", { key: 'dd7b5be1a5e4fac999b301a562402a67c926136b', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("input", { key: 'befc2d0008d14bb19f0d19b04fa956c271a7de62', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showValidation && !this.destructive && (h("svg", { key: 'a511d186bbbb22bda304c71d0b66acfb3a7c7130', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '60d6242d48043a6b6494a13d58b6f5896eea0636', 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: '7e3fcac351e9553a6c0bab10ef6238c747b725cf', 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" }))))))),
117
+ ], this.type === 'payment_input' && (h("div", { key: 'a71fbe3f1ce91b892a9e931c2fbfdc452038a097', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("svg", { key: 'de41e0481f9c0258469a92a6dc7541ede3fa8afb', xmlns: "http://www.w3.org/2000/svg", width: "23", height: "14", viewBox: "0 0 23 14", fill: "none" }, h("path", { key: '8bc2e0caea1c55fd86ec2ec576db9410e49bf7ac', "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: '347f43ba3c2edd3394234ba584c2981f188f5777', "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: 'fc6ac17281b625c5574224cae2e69f472620a9d2', "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: '2c864535cf504792fe8602076bbef1e60c240a63', 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 && !this.destructive && (h("svg", { key: '8fc44e83653f9d9f5001f2e90a560c34210aa31a', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'a98825085218e258bcdab7bddf36edc7e07b7284', 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: '1a307a47e9355b11918bdd30b765cccb3a971ea8', 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: '5baf7b61de1b6acf4e7867999b92a18b45c24440', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '721075e709ebc9e7bb79507103740446b0f94192', class: `trailing_button_text_input ${this.size}` }, h("input", { key: 'cd78a474685e9963edde8b798937fb4c376a728b', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event), ref: el => (this.inputRef = el) }), this.showValidation && !this.destructive && (h("svg", { key: '8503ee95b527dff48b1bc7d0ba097d80024065b6', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: '242e3bfd9b02b0e291d0d5e01dc56ab5c965e93f', 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: 'f11ff89b39f90e8fe505d30bc9c7b62816bf9f04', 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: 'd4e6cb019e634702005db05aafc4e0ba90924483', size: "lg", hierarchy: "tertiary_gray", icon: "only", state: this.state === 'disabled' ? 'disabled' : 'default', "icon-leading": true, "icon-leading-swap": "assets/copy-01.svg", onClick: () => this.copyToClipboard() }))), this.type === 'password' && (h("div", { key: '05186d28ef229a50572557836b70aec79a0b66ba', class: `password_input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: 'c48300047342efd836d014d3f10571e0e15d44ef', class: `password_content` }, h("input", { key: 'c4fe87d30b24d83fefae895a43897a4c0a7c3296', class: `content text-md-regular ${this.type} ${this.state}`, type: this.isPasswordVisible ? 'text' : 'password', placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showValidation && !this.destructive && (h("svg", { key: 'd2c501f3725160093852ca46af6ae3899d9f6b38', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'f3f2296e0a4e8e41bf15e992241e6de63c40f58f', 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: '368b0d9d2e74b089a0d47f36958e2209e6786300', 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: '94f1ec285cdf6d55c697be1bec92e3a17b91192b', class: `dropdown` }, h("gb-password-button", { key: '23173e4747879a74a39775b7b90137c7a188ccea', onClick: () => this.togglePasswordVisibility() })))), this.type === 'password_icon_leading' && (h("div", { key: '6f14a74c1320a70284245b3ed67206a288b74998', class: `password_icon_leading_input input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '632a5df9ae4c06f4ad6b541b4b7acb048b94c60b', class: `password_icon_leading_content` }, h("svg", { key: '589ae1a3d6c3ab9637f23629fd1d09e92d264ea7', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'da4364462aa67d89e1a88ffb21c65b88e9ddc53c', 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: '8b366e4d90ea505734a56046025271b61b7a5704', class: `content text-md-regular ${this.type} ${this.state}`, type: this.isPasswordVisible ? 'text' : 'password', placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) })), this.showValidation && !this.destructive && (h("svg", { key: '1e14bc0e762255489f4bbf68c9945d4e7fe8cddc', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, h("path", { key: 'a67b8948affa30388f1409c5024556eb9f43a225', 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: '2ee8cff1f07e97c7bc31a5e0f835c1587c8484b2', 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: '9fea9281aa80b08d5dbb4efc92357ea973a368de', onClick: () => this.togglePasswordVisibility() }))), this.type === 'count' && [
118
+ h("div", { key: 'eaa497d59c230bb7547c00c2db65196cb5cca14f', class: `count_input` }, h("div", { key: '670c6054e9a03f4bbbf22b4fd805b295dfa3b943', class: `count_text_input ${this.destructive ? 'destructive' : ''} ${this.state}` }, h("input", { key: 'd1240c4b8b2a388cde11b0b43f7926632b1ce24e', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) }), this.showHelpIcon && (h("div", { key: '0f25ac35360308c0ad3db1e23f47c8d9a608f390', 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: '40084c3761f207596c81b2058395897e61a017d7', class: `action ${this.state}` }, h("gb-button", { key: '5a7f1ca3636c2c3007c39562813bc3bf7c50cb46', 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: '98656d95afcdf87b0d377c03498441428da323b5' }), h("gb-button", { key: '2932e918853b528b47ad71712de8e37241222d04', size: "xl", state: this.state === 'disabled' ? 'disabled' : 'default', hierarchy: "tertiary_gray", icon: "only", "icon-leading": "true", "icon-leading-swap": "assets/plus_sign.svg" }))),
119
+ ], this.type === 'tags' && (h("div", { key: '16f6d43cd908d143057840c1fe4fab4ffdd4915d', class: `input ${this.type} ${this.size} ${this.state} ${this.destructive ? 'destructive' : ''}` }, h("div", { key: '65db68be9140b8073f9b203592b18562d066e08a', class: `tags_display` }), h("input", { key: 'd7bc5806da5a99733424a0a6f16c8b47719dee13', class: `content text-md-regular ${this.type} ${this.state}`, type: "text", placeholder: this.placeholder ? this.placeholder : '', onInput: event => this.handleInput(event) })))), this.showHintText && h("p", { key: '9b26fb0b58ef6726ce9c21506f69b0f46ad6dd99', class: "hint_text text-sm-regular" }, this.hintText)));
120
120
  }
121
121
  static get is() { return "gb-input-field"; }
122
122
  static get encapsulation() { return "shadow"; }