brd-ui-kit 0.1.83 → 0.1.85

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 (249) hide show
  1. package/dist/{calendar-Cf3VkgyX.js → calendar-B78l3uF9.js} +2 -2
  2. package/dist/{calendar-Cf3VkgyX.js.map → calendar-B78l3uF9.js.map} +1 -1
  3. package/dist/calendar-BClkfQSD.cjs +2 -0
  4. package/dist/{calendar-DvDG9hIB.cjs.map → calendar-BClkfQSD.cjs.map} +1 -1
  5. package/dist/{calendar-locale-Br6M-e1P.cjs → calendar-locale-CbU8VmD3.cjs} +2 -2
  6. package/dist/{calendar-locale-Br6M-e1P.cjs.map → calendar-locale-CbU8VmD3.cjs.map} +1 -1
  7. package/dist/{calendar-locale-DivjTEYg.js → calendar-locale-CtuBfQOO.js} +2 -2
  8. package/dist/{calendar-locale-DivjTEYg.js.map → calendar-locale-CtuBfQOO.js.map} +1 -1
  9. package/dist/components/approval-log/approval-log.d.ts +1 -1
  10. package/dist/components/approval-log/index.d.ts +1 -1
  11. package/dist/components/card-info/card-info.d.ts +3 -2
  12. package/dist/components/icons/ArrowCounterClockwise.d.ts +1 -1
  13. package/dist/components/icons/BoundingBox.d.ts +1 -1
  14. package/dist/components/icons/Briefcase.d.ts +1 -1
  15. package/dist/components/icons/Building.d.ts +1 -1
  16. package/dist/components/icons/Buildings.d.ts +1 -1
  17. package/dist/components/icons/CaretDown.d.ts +1 -1
  18. package/dist/components/icons/CaretLeft.d.ts +1 -1
  19. package/dist/components/icons/CaretRight.d.ts +1 -1
  20. package/dist/components/icons/CaretUp.d.ts +1 -1
  21. package/dist/components/icons/CaretUpDown.d.ts +1 -1
  22. package/dist/components/icons/ChartLine.d.ts +1 -1
  23. package/dist/components/icons/Check.d.ts +1 -1
  24. package/dist/components/icons/CheckCircle.d.ts +1 -1
  25. package/dist/components/icons/Clock.d.ts +1 -1
  26. package/dist/components/icons/CreditCard.d.ts +1 -1
  27. package/dist/components/icons/DotsThree.d.ts +1 -1
  28. package/dist/components/icons/DownloadSimple.d.ts +1 -1
  29. package/dist/components/icons/EnvelopeSimple.d.ts +1 -1
  30. package/dist/components/icons/Eye.d.ts +1 -1
  31. package/dist/components/icons/EyeSlash.d.ts +1 -1
  32. package/dist/components/icons/FileText.d.ts +1 -1
  33. package/dist/components/icons/Folder.d.ts +1 -1
  34. package/dist/components/icons/Funnel.d.ts +1 -1
  35. package/dist/components/icons/Gear.d.ts +1 -1
  36. package/dist/components/icons/Info.d.ts +1 -1
  37. package/dist/components/icons/LockKey.d.ts +1 -1
  38. package/dist/components/icons/MagnifyingGlass.d.ts +1 -1
  39. package/dist/components/icons/MaxLogo.d.ts +1 -1
  40. package/dist/components/icons/Package.d.ts +1 -1
  41. package/dist/components/icons/Pencil.d.ts +1 -1
  42. package/dist/components/icons/Phone.d.ts +1 -1
  43. package/dist/components/icons/Plus.d.ts +1 -1
  44. package/dist/components/icons/PresentationChart.d.ts +1 -1
  45. package/dist/components/icons/SpinnerGap.d.ts +1 -1
  46. package/dist/components/icons/TelegramLogo.d.ts +1 -1
  47. package/dist/components/icons/Trash.d.ts +1 -1
  48. package/dist/components/icons/UserCircleGear.d.ts +1 -1
  49. package/dist/components/icons/Users.d.ts +1 -1
  50. package/dist/components/icons/UsersFour.d.ts +1 -1
  51. package/dist/components/icons/Warning.d.ts +1 -1
  52. package/dist/components/icons/WarningCircle.d.ts +1 -1
  53. package/dist/components/icons/WhatsAppLogoFilled.d.ts +1 -1
  54. package/dist/components/icons/Wrench.d.ts +1 -1
  55. package/dist/components/icons/X.d.ts +1 -1
  56. package/dist/components/icons/XCircle.d.ts +1 -1
  57. package/dist/components/icons/index.d.ts +46 -46
  58. package/dist/components/icons/stroke-icon.d.ts +1 -1
  59. package/dist/components/story-drawer/index.d.ts +1 -1
  60. package/dist/components/story-drawer/story-drawer.d.ts +2 -2
  61. package/dist/components/ui/icon/icon-map.d.ts +1 -1
  62. package/dist/components/ui/icon/icon.d.ts +2 -2
  63. package/dist/components-app-pagination-app-pagination.cjs +1 -1
  64. package/dist/components-app-pagination-app-pagination.cjs.map +1 -1
  65. package/dist/components-app-pagination-app-pagination.js +2 -2
  66. package/dist/components-app-sidebar-app-sidebar.cjs +1 -1
  67. package/dist/components-app-sidebar-app-sidebar.cjs.map +1 -1
  68. package/dist/components-app-sidebar-app-sidebar.js +1 -1
  69. package/dist/components-approval-log-approval-log.cjs +1 -1
  70. package/dist/components-approval-log-approval-log.cjs.map +1 -1
  71. package/dist/components-approval-log-approval-log.js +21 -21
  72. package/dist/components-approval-log-approval-log.js.map +1 -1
  73. package/dist/components-avatar-uploader-avatar-uploader.cjs +1 -1
  74. package/dist/components-avatar-uploader-avatar-uploader.cjs.map +1 -1
  75. package/dist/components-avatar-uploader-avatar-uploader.js +21 -21
  76. package/dist/components-basic-avatar-basic-avatar.cjs +1 -1
  77. package/dist/components-basic-avatar-basic-avatar.cjs.map +1 -1
  78. package/dist/components-basic-avatar-basic-avatar.js +21 -21
  79. package/dist/components-card-info-card-info.cjs +1 -1
  80. package/dist/components-card-info-card-info.cjs.map +1 -1
  81. package/dist/components-card-info-card-info.js +15 -14
  82. package/dist/components-card-info-card-info.js.map +1 -1
  83. package/dist/components-checkbox-group-checkbox-group.cjs +1 -1
  84. package/dist/components-checkbox-group-checkbox-group.cjs.map +1 -1
  85. package/dist/components-checkbox-group-checkbox-group.js +21 -21
  86. package/dist/components-data-table-data-table-actions-column.cjs +1 -1
  87. package/dist/components-data-table-data-table-actions-column.cjs.map +1 -1
  88. package/dist/components-data-table-data-table-actions-column.js +1 -1
  89. package/dist/components-data-table-data-table-column-visibility.cjs +1 -1
  90. package/dist/components-data-table-data-table-column-visibility.cjs.map +1 -1
  91. package/dist/components-data-table-data-table-column-visibility.js +1 -1
  92. package/dist/components-data-table-data-table-row-actions-column.cjs +1 -1
  93. package/dist/components-data-table-data-table-row-actions-column.cjs.map +1 -1
  94. package/dist/components-data-table-data-table-row-actions-column.js +1 -1
  95. package/dist/components-files-uploader-files-uploader.cjs +1 -1
  96. package/dist/components-files-uploader-files-uploader.cjs.map +1 -1
  97. package/dist/components-files-uploader-files-uploader.js +3 -3
  98. package/dist/components-icons-ArrowCounterClockwise.cjs +1 -1
  99. package/dist/components-icons-ArrowCounterClockwise.js +1 -1
  100. package/dist/components-icons-BoundingBox.cjs +1 -1
  101. package/dist/components-icons-BoundingBox.js +1 -1
  102. package/dist/components-icons-Briefcase.cjs +1 -1
  103. package/dist/components-icons-Briefcase.js +1 -1
  104. package/dist/components-icons-Building.cjs +1 -1
  105. package/dist/components-icons-Building.js +1 -1
  106. package/dist/components-icons-Buildings.cjs +1 -1
  107. package/dist/components-icons-Buildings.js +1 -1
  108. package/dist/components-icons-CaretDown.cjs +1 -1
  109. package/dist/components-icons-CaretDown.js +1 -1
  110. package/dist/components-icons-CaretLeft.cjs +1 -1
  111. package/dist/components-icons-CaretLeft.js +1 -1
  112. package/dist/components-icons-CaretRight.cjs +1 -1
  113. package/dist/components-icons-CaretRight.js +1 -1
  114. package/dist/components-icons-CaretUp.cjs +1 -1
  115. package/dist/components-icons-CaretUp.js +1 -1
  116. package/dist/components-icons-CaretUpDown.cjs +1 -1
  117. package/dist/components-icons-CaretUpDown.js +1 -1
  118. package/dist/components-icons-ChartLine.cjs +1 -1
  119. package/dist/components-icons-ChartLine.js +1 -1
  120. package/dist/components-icons-Check.cjs +1 -1
  121. package/dist/components-icons-Check.js +1 -1
  122. package/dist/components-icons-CheckCircle.cjs +1 -1
  123. package/dist/components-icons-CheckCircle.js +1 -1
  124. package/dist/components-icons-Clock.cjs +1 -1
  125. package/dist/components-icons-Clock.js +1 -1
  126. package/dist/components-icons-CreditCard.cjs +1 -1
  127. package/dist/components-icons-CreditCard.js +1 -1
  128. package/dist/components-icons-DotsThree.cjs +1 -1
  129. package/dist/components-icons-DotsThree.js +1 -1
  130. package/dist/components-icons-DownloadSimple.cjs +1 -1
  131. package/dist/components-icons-DownloadSimple.js +1 -1
  132. package/dist/components-icons-EnvelopeSimple.cjs +1 -1
  133. package/dist/components-icons-EnvelopeSimple.js +1 -1
  134. package/dist/components-icons-Eye.cjs +1 -1
  135. package/dist/components-icons-Eye.js +1 -1
  136. package/dist/components-icons-EyeSlash.cjs +1 -1
  137. package/dist/components-icons-EyeSlash.js +1 -1
  138. package/dist/components-icons-FileText.cjs +1 -1
  139. package/dist/components-icons-FileText.js +1 -1
  140. package/dist/components-icons-Folder.cjs +1 -1
  141. package/dist/components-icons-Folder.js +1 -1
  142. package/dist/components-icons-Funnel.cjs +1 -1
  143. package/dist/components-icons-Funnel.js +1 -1
  144. package/dist/components-icons-Gear.cjs +1 -1
  145. package/dist/components-icons-Gear.js +1 -1
  146. package/dist/components-icons-Info.cjs +1 -1
  147. package/dist/components-icons-Info.js +1 -1
  148. package/dist/components-icons-LockKey.cjs +1 -1
  149. package/dist/components-icons-LockKey.js +1 -1
  150. package/dist/components-icons-MagnifyingGlass.cjs +1 -1
  151. package/dist/components-icons-MagnifyingGlass.js +1 -1
  152. package/dist/components-icons-MaxLogo.cjs +1 -1
  153. package/dist/components-icons-MaxLogo.js +1 -1
  154. package/dist/components-icons-Package.cjs +1 -1
  155. package/dist/components-icons-Package.js +1 -1
  156. package/dist/components-icons-Pencil.cjs +1 -1
  157. package/dist/components-icons-Pencil.js +1 -1
  158. package/dist/components-icons-Phone.cjs +1 -1
  159. package/dist/components-icons-Phone.js +1 -1
  160. package/dist/components-icons-Plus.cjs +1 -1
  161. package/dist/components-icons-Plus.js +1 -1
  162. package/dist/components-icons-PresentationChart.cjs +1 -1
  163. package/dist/components-icons-PresentationChart.js +1 -1
  164. package/dist/components-icons-SpinnerGap.cjs +1 -1
  165. package/dist/components-icons-SpinnerGap.js +1 -1
  166. package/dist/components-icons-TelegramLogo.cjs +1 -1
  167. package/dist/components-icons-TelegramLogo.js +1 -1
  168. package/dist/components-icons-Trash.cjs +1 -1
  169. package/dist/components-icons-Trash.js +1 -1
  170. package/dist/components-icons-UserCircleGear.cjs +1 -1
  171. package/dist/components-icons-UserCircleGear.js +1 -1
  172. package/dist/components-icons-Users.cjs +1 -1
  173. package/dist/components-icons-Users.js +1 -1
  174. package/dist/components-icons-UsersFour.cjs +1 -1
  175. package/dist/components-icons-UsersFour.js +1 -1
  176. package/dist/components-icons-Warning.cjs +1 -1
  177. package/dist/components-icons-Warning.js +1 -1
  178. package/dist/components-icons-WarningCircle.cjs +1 -1
  179. package/dist/components-icons-WarningCircle.js +1 -1
  180. package/dist/components-icons-WhatsAppLogoFilled.cjs +1 -1
  181. package/dist/components-icons-WhatsAppLogoFilled.js +1 -1
  182. package/dist/components-icons-Wrench.cjs +1 -1
  183. package/dist/components-icons-Wrench.js +1 -1
  184. package/dist/components-icons-X.cjs +1 -1
  185. package/dist/components-icons-X.js +1 -1
  186. package/dist/components-icons-XCircle.cjs +1 -1
  187. package/dist/components-icons-XCircle.js +1 -1
  188. package/dist/components-icons-stroke-icon.cjs.map +1 -1
  189. package/dist/components-icons-stroke-icon.js.map +1 -1
  190. package/dist/components-icons.cjs +1 -1
  191. package/dist/components-icons.js +45 -45
  192. package/dist/components-input-contact-input-contact.cjs +1 -1
  193. package/dist/components-input-contact-input-contact.cjs.map +1 -1
  194. package/dist/components-input-contact-input-contact.js +21 -21
  195. package/dist/components-input-password-input-password.cjs +1 -1
  196. package/dist/components-input-password-input-password.cjs.map +1 -1
  197. package/dist/components-input-password-input-password.js +2 -2
  198. package/dist/components-story-drawer-story-drawer.cjs +1 -1
  199. package/dist/components-story-drawer-story-drawer.cjs.map +1 -1
  200. package/dist/components-story-drawer-story-drawer.js +21 -21
  201. package/dist/components-story-drawer-story-drawer.js.map +1 -1
  202. package/dist/components-transfer-list-transfer-list-card.cjs +1 -1
  203. package/dist/components-transfer-list-transfer-list-card.cjs.map +1 -1
  204. package/dist/components-transfer-list-transfer-list-card.js +1 -1
  205. package/dist/components-transfer-list-transfer-list.cjs +1 -1
  206. package/dist/components-transfer-list-transfer-list.cjs.map +1 -1
  207. package/dist/components-transfer-list-transfer-list.js +1 -1
  208. package/dist/components-ui-calendar-calendar.cjs +1 -1
  209. package/dist/components-ui-calendar-calendar.js +2 -2
  210. package/dist/components-ui-calendar.cjs +1 -1
  211. package/dist/components-ui-calendar.js +2 -2
  212. package/dist/components-ui-checkbox-checkbox.cjs +1 -1
  213. package/dist/components-ui-checkbox-checkbox.cjs.map +1 -1
  214. package/dist/components-ui-checkbox-checkbox.js +1 -1
  215. package/dist/components-ui-combobox-combobox.cjs +1 -1
  216. package/dist/components-ui-combobox-combobox.cjs.map +1 -1
  217. package/dist/components-ui-combobox-combobox.js +1 -1
  218. package/dist/components-ui-dialog-dialog.cjs +1 -1
  219. package/dist/components-ui-dialog-dialog.cjs.map +1 -1
  220. package/dist/components-ui-dialog-dialog.js +1 -1
  221. package/dist/components-ui-dropdown-menu-dropdown-menu.cjs +1 -1
  222. package/dist/components-ui-dropdown-menu-dropdown-menu.cjs.map +1 -1
  223. package/dist/components-ui-dropdown-menu-dropdown-menu.js +1 -1
  224. package/dist/components-ui-icon-icon-map.cjs +1 -1
  225. package/dist/components-ui-icon-icon-map.cjs.map +1 -1
  226. package/dist/components-ui-icon-icon-map.js +1 -1
  227. package/dist/components-ui-icon-icon-map.js.map +1 -1
  228. package/dist/components-ui-icon-icon.cjs +1 -1
  229. package/dist/components-ui-icon-icon.cjs.map +1 -1
  230. package/dist/components-ui-icon-icon.js +23 -23
  231. package/dist/components-ui-icon-icon.js.map +1 -1
  232. package/dist/components-ui-pagination-pagination.cjs +1 -1
  233. package/dist/components-ui-pagination-pagination.cjs.map +1 -1
  234. package/dist/components-ui-pagination-pagination.js +3 -3
  235. package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs +1 -1
  236. package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs.map +1 -1
  237. package/dist/components-ui-select-calendar-menu-select-calendar-menu.js +2 -2
  238. package/dist/components-ui-select-select.cjs +1 -1
  239. package/dist/components-ui-select-select.cjs.map +1 -1
  240. package/dist/components-ui-select-select.js +1 -1
  241. package/dist/components-ui-sonner-sonner.cjs +1 -1
  242. package/dist/components-ui-sonner-sonner.cjs.map +1 -1
  243. package/dist/components-ui-sonner-sonner.js +6 -6
  244. package/dist/index.cjs +1 -1
  245. package/dist/index.d.ts +26 -25
  246. package/dist/index.js +17 -15
  247. package/dist/index.js.map +1 -1
  248. package/package.json +2 -2
  249. package/dist/calendar-DvDG9hIB.cjs +0 -2
@@ -1,4 +1,4 @@
1
- import { Gear as o } from "phosphor-strokes-icons/icons/Gear";
1
+ import { Gear as o } from "brd-phosphor-strokes-icons/icons/Gear";
2
2
  export {
3
3
  o as Gear
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/Info");Object.defineProperty(exports,"Info",{enumerable:!0,get:()=>e.Info});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/Info");Object.defineProperty(exports,"Info",{enumerable:!0,get:()=>e.Info});
2
2
  //# sourceMappingURL=components-icons-Info.cjs.map
@@ -1,4 +1,4 @@
1
- import { Info as r } from "phosphor-strokes-icons/icons/Info";
1
+ import { Info as r } from "brd-phosphor-strokes-icons/icons/Info";
2
2
  export {
3
3
  r as Info
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/LockKey");Object.defineProperty(exports,"LockKey",{enumerable:!0,get:()=>e.LockKey});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/LockKey");Object.defineProperty(exports,"LockKey",{enumerable:!0,get:()=>e.LockKey});
2
2
  //# sourceMappingURL=components-icons-LockKey.cjs.map
@@ -1,4 +1,4 @@
1
- import { LockKey as r } from "phosphor-strokes-icons/icons/LockKey";
1
+ import { LockKey as r } from "brd-phosphor-strokes-icons/icons/LockKey";
2
2
  export {
3
3
  r as LockKey
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/MagnifyingGlass");Object.defineProperty(exports,"MagnifyingGlass",{enumerable:!0,get:()=>e.MagnifyingGlass});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/MagnifyingGlass");Object.defineProperty(exports,"MagnifyingGlass",{enumerable:!0,get:()=>e.MagnifyingGlass});
2
2
  //# sourceMappingURL=components-icons-MagnifyingGlass.cjs.map
@@ -1,4 +1,4 @@
1
- import { MagnifyingGlass as g } from "phosphor-strokes-icons/icons/MagnifyingGlass";
1
+ import { MagnifyingGlass as g } from "brd-phosphor-strokes-icons/icons/MagnifyingGlass";
2
2
  export {
3
3
  g as MagnifyingGlass
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/MaxLogo");Object.defineProperty(exports,"MaxLogo",{enumerable:!0,get:()=>e.MaxLogo});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/MaxLogo");Object.defineProperty(exports,"MaxLogo",{enumerable:!0,get:()=>e.MaxLogo});
2
2
  //# sourceMappingURL=components-icons-MaxLogo.cjs.map
@@ -1,4 +1,4 @@
1
- import { MaxLogo as x } from "phosphor-strokes-icons/icons/MaxLogo";
1
+ import { MaxLogo as x } from "brd-phosphor-strokes-icons/icons/MaxLogo";
2
2
  export {
3
3
  x as MaxLogo
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/Package");Object.defineProperty(exports,"Package",{enumerable:!0,get:()=>e.Package});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/Package");Object.defineProperty(exports,"Package",{enumerable:!0,get:()=>e.Package});
2
2
  //# sourceMappingURL=components-icons-Package.cjs.map
@@ -1,4 +1,4 @@
1
- import { Package as o } from "phosphor-strokes-icons/icons/Package";
1
+ import { Package as o } from "brd-phosphor-strokes-icons/icons/Package";
2
2
  export {
3
3
  o as Package
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/Pencil");Object.defineProperty(exports,"Pencil",{enumerable:!0,get:()=>e.Pencil});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/Pencil");Object.defineProperty(exports,"Pencil",{enumerable:!0,get:()=>e.Pencil});
2
2
  //# sourceMappingURL=components-icons-Pencil.cjs.map
@@ -1,4 +1,4 @@
1
- import { Pencil as r } from "phosphor-strokes-icons/icons/Pencil";
1
+ import { Pencil as r } from "brd-phosphor-strokes-icons/icons/Pencil";
2
2
  export {
3
3
  r as Pencil
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/Phone");Object.defineProperty(exports,"Phone",{enumerable:!0,get:()=>e.Phone});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/Phone");Object.defineProperty(exports,"Phone",{enumerable:!0,get:()=>e.Phone});
2
2
  //# sourceMappingURL=components-icons-Phone.cjs.map
@@ -1,4 +1,4 @@
1
- import { Phone as r } from "phosphor-strokes-icons/icons/Phone";
1
+ import { Phone as r } from "brd-phosphor-strokes-icons/icons/Phone";
2
2
  export {
3
3
  r as Phone
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/Plus");Object.defineProperty(exports,"Plus",{enumerable:!0,get:()=>e.Plus});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/Plus");Object.defineProperty(exports,"Plus",{enumerable:!0,get:()=>e.Plus});
2
2
  //# sourceMappingURL=components-icons-Plus.cjs.map
@@ -1,4 +1,4 @@
1
- import { Plus as e } from "phosphor-strokes-icons/icons/Plus";
1
+ import { Plus as e } from "brd-phosphor-strokes-icons/icons/Plus";
2
2
  export {
3
3
  e as Plus
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/PresentationChart");Object.defineProperty(exports,"PresentationChart",{enumerable:!0,get:()=>e.PresentationChart});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/PresentationChart");Object.defineProperty(exports,"PresentationChart",{enumerable:!0,get:()=>e.PresentationChart});
2
2
  //# sourceMappingURL=components-icons-PresentationChart.cjs.map
@@ -1,4 +1,4 @@
1
- import { PresentationChart as e } from "phosphor-strokes-icons/icons/PresentationChart";
1
+ import { PresentationChart as e } from "brd-phosphor-strokes-icons/icons/PresentationChart";
2
2
  export {
3
3
  e as PresentationChart
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/SpinnerGap");Object.defineProperty(exports,"SpinnerGap",{enumerable:!0,get:()=>e.SpinnerGap});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/SpinnerGap");Object.defineProperty(exports,"SpinnerGap",{enumerable:!0,get:()=>e.SpinnerGap});
2
2
  //# sourceMappingURL=components-icons-SpinnerGap.cjs.map
@@ -1,4 +1,4 @@
1
- import { SpinnerGap as e } from "phosphor-strokes-icons/icons/SpinnerGap";
1
+ import { SpinnerGap as e } from "brd-phosphor-strokes-icons/icons/SpinnerGap";
2
2
  export {
3
3
  e as SpinnerGap
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/TelegramLogo");Object.defineProperty(exports,"TelegramLogo",{enumerable:!0,get:()=>e.TelegramLogo});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/TelegramLogo");Object.defineProperty(exports,"TelegramLogo",{enumerable:!0,get:()=>e.TelegramLogo});
2
2
  //# sourceMappingURL=components-icons-TelegramLogo.cjs.map
@@ -1,4 +1,4 @@
1
- import { TelegramLogo as r } from "phosphor-strokes-icons/icons/TelegramLogo";
1
+ import { TelegramLogo as r } from "brd-phosphor-strokes-icons/icons/TelegramLogo";
2
2
  export {
3
3
  r as TelegramLogo
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/Trash");Object.defineProperty(exports,"Trash",{enumerable:!0,get:()=>e.Trash});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/Trash");Object.defineProperty(exports,"Trash",{enumerable:!0,get:()=>e.Trash});
2
2
  //# sourceMappingURL=components-icons-Trash.cjs.map
@@ -1,4 +1,4 @@
1
- import { Trash as a } from "phosphor-strokes-icons/icons/Trash";
1
+ import { Trash as a } from "brd-phosphor-strokes-icons/icons/Trash";
2
2
  export {
3
3
  a as Trash
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/UserCircleGear");Object.defineProperty(exports,"UserCircleGear",{enumerable:!0,get:()=>e.UserCircleGear});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/UserCircleGear");Object.defineProperty(exports,"UserCircleGear",{enumerable:!0,get:()=>e.UserCircleGear});
2
2
  //# sourceMappingURL=components-icons-UserCircleGear.cjs.map
@@ -1,4 +1,4 @@
1
- import { UserCircleGear as o } from "phosphor-strokes-icons/icons/UserCircleGear";
1
+ import { UserCircleGear as o } from "brd-phosphor-strokes-icons/icons/UserCircleGear";
2
2
  export {
3
3
  o as UserCircleGear
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/Users");Object.defineProperty(exports,"Users",{enumerable:!0,get:()=>e.Users});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/Users");Object.defineProperty(exports,"Users",{enumerable:!0,get:()=>e.Users});
2
2
  //# sourceMappingURL=components-icons-Users.cjs.map
@@ -1,4 +1,4 @@
1
- import { Users as o } from "phosphor-strokes-icons/icons/Users";
1
+ import { Users as o } from "brd-phosphor-strokes-icons/icons/Users";
2
2
  export {
3
3
  o as Users
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/UsersFour");Object.defineProperty(exports,"UsersFour",{enumerable:!0,get:()=>e.UsersFour});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/UsersFour");Object.defineProperty(exports,"UsersFour",{enumerable:!0,get:()=>e.UsersFour});
2
2
  //# sourceMappingURL=components-icons-UsersFour.cjs.map
@@ -1,4 +1,4 @@
1
- import { UsersFour as e } from "phosphor-strokes-icons/icons/UsersFour";
1
+ import { UsersFour as e } from "brd-phosphor-strokes-icons/icons/UsersFour";
2
2
  export {
3
3
  e as UsersFour
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/Warning");Object.defineProperty(exports,"Warning",{enumerable:!0,get:()=>e.Warning});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/Warning");Object.defineProperty(exports,"Warning",{enumerable:!0,get:()=>e.Warning});
2
2
  //# sourceMappingURL=components-icons-Warning.cjs.map
@@ -1,4 +1,4 @@
1
- import { Warning as o } from "phosphor-strokes-icons/icons/Warning";
1
+ import { Warning as o } from "brd-phosphor-strokes-icons/icons/Warning";
2
2
  export {
3
3
  o as Warning
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/WarningCircle");Object.defineProperty(exports,"WarningCircle",{enumerable:!0,get:()=>e.WarningCircle});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/WarningCircle");Object.defineProperty(exports,"WarningCircle",{enumerable:!0,get:()=>e.WarningCircle});
2
2
  //# sourceMappingURL=components-icons-WarningCircle.cjs.map
@@ -1,4 +1,4 @@
1
- import { WarningCircle as i } from "phosphor-strokes-icons/icons/WarningCircle";
1
+ import { WarningCircle as i } from "brd-phosphor-strokes-icons/icons/WarningCircle";
2
2
  export {
3
3
  i as WarningCircle
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/WhatsAppLogoFilled");Object.defineProperty(exports,"WhatsAppLogoFilled",{enumerable:!0,get:()=>e.WhatsAppLogoFilled});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/WhatsAppLogoFilled");Object.defineProperty(exports,"WhatsAppLogoFilled",{enumerable:!0,get:()=>e.WhatsAppLogoFilled});
2
2
  //# sourceMappingURL=components-icons-WhatsAppLogoFilled.cjs.map
@@ -1,4 +1,4 @@
1
- import { WhatsAppLogoFilled as e } from "phosphor-strokes-icons/icons/WhatsAppLogoFilled";
1
+ import { WhatsAppLogoFilled as e } from "brd-phosphor-strokes-icons/icons/WhatsAppLogoFilled";
2
2
  export {
3
3
  e as WhatsAppLogoFilled
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/Wrench");Object.defineProperty(exports,"Wrench",{enumerable:!0,get:()=>e.Wrench});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/Wrench");Object.defineProperty(exports,"Wrench",{enumerable:!0,get:()=>e.Wrench});
2
2
  //# sourceMappingURL=components-icons-Wrench.cjs.map
@@ -1,4 +1,4 @@
1
- import { Wrench as o } from "phosphor-strokes-icons/icons/Wrench";
1
+ import { Wrench as o } from "brd-phosphor-strokes-icons/icons/Wrench";
2
2
  export {
3
3
  o as Wrench
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/X");Object.defineProperty(exports,"X",{enumerable:!0,get:()=>e.X});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/X");Object.defineProperty(exports,"X",{enumerable:!0,get:()=>e.X});
2
2
  //# sourceMappingURL=components-icons-X.cjs.map
@@ -1,4 +1,4 @@
1
- import { X as e } from "phosphor-strokes-icons/icons/X";
1
+ import { X as e } from "brd-phosphor-strokes-icons/icons/X";
2
2
  export {
3
3
  e as X
4
4
  };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/XCircle");Object.defineProperty(exports,"XCircle",{enumerable:!0,get:()=>e.XCircle});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/XCircle");Object.defineProperty(exports,"XCircle",{enumerable:!0,get:()=>e.XCircle});
2
2
  //# sourceMappingURL=components-icons-XCircle.cjs.map
@@ -1,4 +1,4 @@
1
- import { XCircle as o } from "phosphor-strokes-icons/icons/XCircle";
1
+ import { XCircle as o } from "brd-phosphor-strokes-icons/icons/XCircle";
2
2
  export {
3
3
  o as XCircle
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"components-icons-stroke-icon.cjs","sources":["../src/components/icons/stroke-icon.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils\";\nimport type { StrokeIconProps } from \"phosphor-strokes-icons\";\nimport type {\n ComponentType,\n DetailedHTMLProps,\n HTMLAttributes,\n SVGProps,\n} from \"react\";\nimport { iconPresets } from \"../ui/icon/icon-presets\";\nimport type { IconPreset } from \"../ui/icon/icon-presets\";\n\nexport type StrokeIconComponent = ComponentType<StrokeIconProps>;\n\ntype StrokeIconComponentProps = DetailedHTMLProps<\n HTMLAttributes<HTMLDivElement>,\n HTMLDivElement\n> & {\n icon: StrokeIconComponent;\n size?: IconPreset | StrokeIconProps[\"size\"];\n strokeWidth?: StrokeIconProps[\"strokeWidth\"];\n color?: StrokeIconProps[\"color\"];\n disabled?: boolean;\n absoluteStrokeWidth?: StrokeIconProps[\"absoluteStrokeWidth\"];\n classes?: {\n wrapper?: string;\n icon?: string;\n };\n svgProps?: Omit<\n SVGProps<SVGSVGElement>,\n \"size\" | \"strokeWidth\" | \"color\" | \"className\"\n >;\n};\n\nexport const StrokeIcon = ({\n icon: IconComponent,\n size = \"medium\",\n strokeWidth,\n color,\n absoluteStrokeWidth = true,\n classes,\n className,\n svgProps,\n disabled,\n ...rest\n}: StrokeIconComponentProps) => {\n const presetConfig =\n typeof size === \"string\" && size in iconPresets\n ? iconPresets[size as IconPreset]\n : iconPresets.medium;\n const resolvedSize =\n typeof size === \"string\" && size in iconPresets ? presetConfig.size : size;\n const resolvedStrokeWidth = strokeWidth ?? presetConfig.strokeWidth;\n\n return (\n <div\n {...rest}\n className={cn(classes?.wrapper)}\n >\n <IconComponent\n {...svgProps}\n size={resolvedSize}\n strokeWidth={resolvedStrokeWidth}\n color={color}\n absoluteStrokeWidth={absoluteStrokeWidth}\n className={cn(className, classes?.icon, disabled && \"text-disabled-text\")}\n />\n </div>\n );\n};\n\nexport type { StrokeIconComponentProps };\n"],"names":["StrokeIcon","IconComponent","size","strokeWidth","color","absoluteStrokeWidth","classes","className","svgProps","disabled","rest","presetConfig","iconPresets","resolvedSize","resolvedStrokeWidth","jsx","cn"],"mappings":"qMAiCaA,EAAa,CAAC,CACzB,KAAMC,EACN,KAAAC,EAAO,SACP,YAAAC,EACA,MAAAC,EACA,oBAAAC,EAAsB,GACtB,QAAAC,EACA,UAAAC,EACA,SAAAC,EACA,SAAAC,EACA,GAAGC,CACL,IAAgC,CAC9B,MAAMC,EACJ,OAAOT,GAAS,UAAYA,KAAQU,EAAAA,YAChCA,cAAYV,CAAkB,EAC9BU,EAAAA,YAAY,OACZC,EACJ,OAAOX,GAAS,UAAYA,KAAQU,cAAcD,EAAa,KAAOT,EAClEY,EAAsBX,GAAeQ,EAAa,YAExD,OACEI,EAAAA,IAAC,MAAA,CACE,GAAGL,EACJ,UAAWM,EAAAA,GAAGV,GAAS,OAAO,EAE9B,SAAAS,EAAAA,IAACd,EAAA,CACE,GAAGO,EACJ,KAAMK,EACN,YAAaC,EACb,MAAAV,EACA,oBAAAC,EACA,UAAWW,EAAAA,GAAGT,EAAWD,GAAS,KAAMG,GAAY,oBAAoB,CAAA,CAAA,CAC1E,CAAA,CAGN"}
1
+ {"version":3,"file":"components-icons-stroke-icon.cjs","sources":["../src/components/icons/stroke-icon.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils\";\nimport type { StrokeIconProps } from \"brd-phosphor-strokes-icons\";\nimport type {\n ComponentType,\n DetailedHTMLProps,\n HTMLAttributes,\n SVGProps,\n} from \"react\";\nimport { iconPresets } from \"../ui/icon/icon-presets\";\nimport type { IconPreset } from \"../ui/icon/icon-presets\";\n\nexport type StrokeIconComponent = ComponentType<StrokeIconProps>;\n\ntype StrokeIconComponentProps = DetailedHTMLProps<\n HTMLAttributes<HTMLDivElement>,\n HTMLDivElement\n> & {\n icon: StrokeIconComponent;\n size?: IconPreset | StrokeIconProps[\"size\"];\n strokeWidth?: StrokeIconProps[\"strokeWidth\"];\n color?: StrokeIconProps[\"color\"];\n disabled?: boolean;\n absoluteStrokeWidth?: StrokeIconProps[\"absoluteStrokeWidth\"];\n classes?: {\n wrapper?: string;\n icon?: string;\n };\n svgProps?: Omit<\n SVGProps<SVGSVGElement>,\n \"size\" | \"strokeWidth\" | \"color\" | \"className\"\n >;\n};\n\nexport const StrokeIcon = ({\n icon: IconComponent,\n size = \"medium\",\n strokeWidth,\n color,\n absoluteStrokeWidth = true,\n classes,\n className,\n svgProps,\n disabled,\n ...rest\n}: StrokeIconComponentProps) => {\n const presetConfig =\n typeof size === \"string\" && size in iconPresets\n ? iconPresets[size as IconPreset]\n : iconPresets.medium;\n const resolvedSize =\n typeof size === \"string\" && size in iconPresets ? presetConfig.size : size;\n const resolvedStrokeWidth = strokeWidth ?? presetConfig.strokeWidth;\n\n return (\n <div\n {...rest}\n className={cn(classes?.wrapper)}\n >\n <IconComponent\n {...svgProps}\n size={resolvedSize}\n strokeWidth={resolvedStrokeWidth}\n color={color}\n absoluteStrokeWidth={absoluteStrokeWidth}\n className={cn(className, classes?.icon, disabled && \"text-disabled-text\")}\n />\n </div>\n );\n};\n\nexport type { StrokeIconComponentProps };\n"],"names":["StrokeIcon","IconComponent","size","strokeWidth","color","absoluteStrokeWidth","classes","className","svgProps","disabled","rest","presetConfig","iconPresets","resolvedSize","resolvedStrokeWidth","jsx","cn"],"mappings":"qMAiCaA,EAAa,CAAC,CACzB,KAAMC,EACN,KAAAC,EAAO,SACP,YAAAC,EACA,MAAAC,EACA,oBAAAC,EAAsB,GACtB,QAAAC,EACA,UAAAC,EACA,SAAAC,EACA,SAAAC,EACA,GAAGC,CACL,IAAgC,CAC9B,MAAMC,EACJ,OAAOT,GAAS,UAAYA,KAAQU,EAAAA,YAChCA,cAAYV,CAAkB,EAC9BU,EAAAA,YAAY,OACZC,EACJ,OAAOX,GAAS,UAAYA,KAAQU,cAAcD,EAAa,KAAOT,EAClEY,EAAsBX,GAAeQ,EAAa,YAExD,OACEI,EAAAA,IAAC,MAAA,CACE,GAAGL,EACJ,UAAWM,EAAAA,GAAGV,GAAS,OAAO,EAE9B,SAAAS,EAAAA,IAACd,EAAA,CACE,GAAGO,EACJ,KAAMK,EACN,YAAaC,EACb,MAAAV,EACA,oBAAAC,EACA,UAAWW,EAAAA,GAAGT,EAAWD,GAAS,KAAMG,GAAY,oBAAoB,CAAA,CAAA,CAC1E,CAAA,CAGN"}
@@ -1 +1 @@
1
- {"version":3,"file":"components-icons-stroke-icon.js","sources":["../src/components/icons/stroke-icon.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils\";\nimport type { StrokeIconProps } from \"phosphor-strokes-icons\";\nimport type {\n ComponentType,\n DetailedHTMLProps,\n HTMLAttributes,\n SVGProps,\n} from \"react\";\nimport { iconPresets } from \"../ui/icon/icon-presets\";\nimport type { IconPreset } from \"../ui/icon/icon-presets\";\n\nexport type StrokeIconComponent = ComponentType<StrokeIconProps>;\n\ntype StrokeIconComponentProps = DetailedHTMLProps<\n HTMLAttributes<HTMLDivElement>,\n HTMLDivElement\n> & {\n icon: StrokeIconComponent;\n size?: IconPreset | StrokeIconProps[\"size\"];\n strokeWidth?: StrokeIconProps[\"strokeWidth\"];\n color?: StrokeIconProps[\"color\"];\n disabled?: boolean;\n absoluteStrokeWidth?: StrokeIconProps[\"absoluteStrokeWidth\"];\n classes?: {\n wrapper?: string;\n icon?: string;\n };\n svgProps?: Omit<\n SVGProps<SVGSVGElement>,\n \"size\" | \"strokeWidth\" | \"color\" | \"className\"\n >;\n};\n\nexport const StrokeIcon = ({\n icon: IconComponent,\n size = \"medium\",\n strokeWidth,\n color,\n absoluteStrokeWidth = true,\n classes,\n className,\n svgProps,\n disabled,\n ...rest\n}: StrokeIconComponentProps) => {\n const presetConfig =\n typeof size === \"string\" && size in iconPresets\n ? iconPresets[size as IconPreset]\n : iconPresets.medium;\n const resolvedSize =\n typeof size === \"string\" && size in iconPresets ? presetConfig.size : size;\n const resolvedStrokeWidth = strokeWidth ?? presetConfig.strokeWidth;\n\n return (\n <div\n {...rest}\n className={cn(classes?.wrapper)}\n >\n <IconComponent\n {...svgProps}\n size={resolvedSize}\n strokeWidth={resolvedStrokeWidth}\n color={color}\n absoluteStrokeWidth={absoluteStrokeWidth}\n className={cn(className, classes?.icon, disabled && \"text-disabled-text\")}\n />\n </div>\n );\n};\n\nexport type { StrokeIconComponentProps };\n"],"names":["StrokeIcon","IconComponent","size","strokeWidth","color","absoluteStrokeWidth","classes","className","svgProps","disabled","rest","presetConfig","iconPresets","resolvedSize","resolvedStrokeWidth","jsx","cn"],"mappings":";;;AAiCO,MAAMA,IAAa,CAAC;AAAA,EACzB,MAAMC;AAAA,EACN,MAAAC,IAAO;AAAA,EACP,aAAAC;AAAA,EACA,OAAAC;AAAA,EACA,qBAAAC,IAAsB;AAAA,EACtB,SAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAgC;AAC9B,QAAMC,IACJ,OAAOT,KAAS,YAAYA,KAAQU,IAChCA,EAAYV,CAAkB,IAC9BU,EAAY,QACZC,IACJ,OAAOX,KAAS,YAAYA,KAAQU,IAAcD,EAAa,OAAOT,GAClEY,IAAsBX,KAAeQ,EAAa;AAExD,SACE,gBAAAI;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAGL;AAAA,MACJ,WAAWM,EAAGV,GAAS,OAAO;AAAA,MAE9B,UAAA,gBAAAS;AAAA,QAACd;AAAA,QAAA;AAAA,UACE,GAAGO;AAAA,UACJ,MAAMK;AAAA,UACN,aAAaC;AAAA,UACb,OAAAV;AAAA,UACA,qBAAAC;AAAA,UACA,WAAWW,EAAGT,GAAWD,GAAS,MAAMG,KAAY,oBAAoB;AAAA,QAAA;AAAA,MAAA;AAAA,IAC1E;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"components-icons-stroke-icon.js","sources":["../src/components/icons/stroke-icon.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils\";\nimport type { StrokeIconProps } from \"brd-phosphor-strokes-icons\";\nimport type {\n ComponentType,\n DetailedHTMLProps,\n HTMLAttributes,\n SVGProps,\n} from \"react\";\nimport { iconPresets } from \"../ui/icon/icon-presets\";\nimport type { IconPreset } from \"../ui/icon/icon-presets\";\n\nexport type StrokeIconComponent = ComponentType<StrokeIconProps>;\n\ntype StrokeIconComponentProps = DetailedHTMLProps<\n HTMLAttributes<HTMLDivElement>,\n HTMLDivElement\n> & {\n icon: StrokeIconComponent;\n size?: IconPreset | StrokeIconProps[\"size\"];\n strokeWidth?: StrokeIconProps[\"strokeWidth\"];\n color?: StrokeIconProps[\"color\"];\n disabled?: boolean;\n absoluteStrokeWidth?: StrokeIconProps[\"absoluteStrokeWidth\"];\n classes?: {\n wrapper?: string;\n icon?: string;\n };\n svgProps?: Omit<\n SVGProps<SVGSVGElement>,\n \"size\" | \"strokeWidth\" | \"color\" | \"className\"\n >;\n};\n\nexport const StrokeIcon = ({\n icon: IconComponent,\n size = \"medium\",\n strokeWidth,\n color,\n absoluteStrokeWidth = true,\n classes,\n className,\n svgProps,\n disabled,\n ...rest\n}: StrokeIconComponentProps) => {\n const presetConfig =\n typeof size === \"string\" && size in iconPresets\n ? iconPresets[size as IconPreset]\n : iconPresets.medium;\n const resolvedSize =\n typeof size === \"string\" && size in iconPresets ? presetConfig.size : size;\n const resolvedStrokeWidth = strokeWidth ?? presetConfig.strokeWidth;\n\n return (\n <div\n {...rest}\n className={cn(classes?.wrapper)}\n >\n <IconComponent\n {...svgProps}\n size={resolvedSize}\n strokeWidth={resolvedStrokeWidth}\n color={color}\n absoluteStrokeWidth={absoluteStrokeWidth}\n className={cn(className, classes?.icon, disabled && \"text-disabled-text\")}\n />\n </div>\n );\n};\n\nexport type { StrokeIconComponentProps };\n"],"names":["StrokeIcon","IconComponent","size","strokeWidth","color","absoluteStrokeWidth","classes","className","svgProps","disabled","rest","presetConfig","iconPresets","resolvedSize","resolvedStrokeWidth","jsx","cn"],"mappings":";;;AAiCO,MAAMA,IAAa,CAAC;AAAA,EACzB,MAAMC;AAAA,EACN,MAAAC,IAAO;AAAA,EACP,aAAAC;AAAA,EACA,OAAAC;AAAA,EACA,qBAAAC,IAAsB;AAAA,EACtB,SAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAgC;AAC9B,QAAMC,IACJ,OAAOT,KAAS,YAAYA,KAAQU,IAChCA,EAAYV,CAAkB,IAC9BU,EAAY,QACZC,IACJ,OAAOX,KAAS,YAAYA,KAAQU,IAAcD,EAAa,OAAOT,GAClEY,IAAsBX,KAAeQ,EAAa;AAExD,SACE,gBAAAI;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAGL;AAAA,MACJ,WAAWM,EAAGV,GAAS,OAAO;AAAA,MAE9B,UAAA,gBAAAS;AAAA,QAACd;AAAA,QAAA;AAAA,UACE,GAAGO;AAAA,UACJ,MAAMK;AAAA,UACN,aAAaC;AAAA,UACb,OAAAV;AAAA,UACA,qBAAAC;AAAA,UACA,WAAWW,EAAGT,GAAWD,GAAS,MAAMG,KAAY,oBAAoB;AAAA,QAAA;AAAA,MAAA;AAAA,IAC1E;AAAA,EAAA;AAGN;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("phosphor-strokes-icons/icons/ArrowCounterClockwise"),r=require("phosphor-strokes-icons/icons/BoundingBox"),t=require("phosphor-strokes-icons/icons/Briefcase"),n=require("phosphor-strokes-icons/icons/Building"),o=require("phosphor-strokes-icons/icons/Buildings"),i=require("phosphor-strokes-icons/icons/CaretDown"),u=require("phosphor-strokes-icons/icons/CaretLeft"),c=require("phosphor-strokes-icons/icons/CaretRight"),a=require("phosphor-strokes-icons/icons/CaretUp"),l=require("phosphor-strokes-icons/icons/CaretUpDown"),s=require("phosphor-strokes-icons/icons/ChartLine"),b=require("phosphor-strokes-icons/icons/Check"),g=require("phosphor-strokes-icons/icons/CheckCircle"),p=require("phosphor-strokes-icons/icons/Clock"),d=require("phosphor-strokes-icons/icons/CreditCard"),P=require("phosphor-strokes-icons/icons/DotsThree"),y=require("phosphor-strokes-icons/icons/DownloadSimple"),f=require("phosphor-strokes-icons/icons/EnvelopeSimple"),m=require("phosphor-strokes-icons/icons/Eye"),C=require("phosphor-strokes-icons/icons/EyeSlash"),q=require("phosphor-strokes-icons/icons/FileText"),j=require("phosphor-strokes-icons/icons/Folder"),O=require("phosphor-strokes-icons/icons/Funnel"),h=require("phosphor-strokes-icons/icons/Gear"),k=require("phosphor-strokes-icons/icons/Info"),L=require("phosphor-strokes-icons/icons/LockKey"),S=require("phosphor-strokes-icons/icons/MagnifyingGlass"),w=require("phosphor-strokes-icons/icons/MaxLogo"),B=require("phosphor-strokes-icons/icons/Package"),F=require("phosphor-strokes-icons/icons/Pencil"),U=require("phosphor-strokes-icons/icons/Phone"),T=require("phosphor-strokes-icons/icons/Plus"),D=require("phosphor-strokes-icons/icons/PresentationChart"),G=require("phosphor-strokes-icons/icons/SpinnerGap"),W=require("phosphor-strokes-icons/icons/TelegramLogo"),x=require("phosphor-strokes-icons/icons/Trash"),E=require("phosphor-strokes-icons/icons/UserCircleGear"),M=require("phosphor-strokes-icons/icons/Users"),A=require("phosphor-strokes-icons/icons/UsersFour"),I=require("phosphor-strokes-icons/icons/Warning"),X=require("phosphor-strokes-icons/icons/WarningCircle"),_=require("phosphor-strokes-icons/icons/WhatsAppLogoFilled"),v=require("phosphor-strokes-icons/icons/Wrench"),K=require("phosphor-strokes-icons/icons/X"),R=require("phosphor-strokes-icons/icons/XCircle"),z=require("./components-icons-stroke-icon.cjs"),H=require("./components-ui-icon-icon-presets.cjs");Object.defineProperty(exports,"ArrowCounterClockwise",{enumerable:!0,get:()=>e.ArrowCounterClockwise});Object.defineProperty(exports,"BoundingBox",{enumerable:!0,get:()=>r.BoundingBox});Object.defineProperty(exports,"Briefcase",{enumerable:!0,get:()=>t.Briefcase});Object.defineProperty(exports,"Building",{enumerable:!0,get:()=>n.Building});Object.defineProperty(exports,"Buildings",{enumerable:!0,get:()=>o.Buildings});Object.defineProperty(exports,"CaretDown",{enumerable:!0,get:()=>i.CaretDown});Object.defineProperty(exports,"CaretLeft",{enumerable:!0,get:()=>u.CaretLeft});Object.defineProperty(exports,"CaretRight",{enumerable:!0,get:()=>c.CaretRight});Object.defineProperty(exports,"CaretUp",{enumerable:!0,get:()=>a.CaretUp});Object.defineProperty(exports,"CaretUpDown",{enumerable:!0,get:()=>l.CaretUpDown});Object.defineProperty(exports,"ChartLine",{enumerable:!0,get:()=>s.ChartLine});Object.defineProperty(exports,"Check",{enumerable:!0,get:()=>b.Check});Object.defineProperty(exports,"CheckCircle",{enumerable:!0,get:()=>g.CheckCircle});Object.defineProperty(exports,"Clock",{enumerable:!0,get:()=>p.Clock});Object.defineProperty(exports,"CreditCard",{enumerable:!0,get:()=>d.CreditCard});Object.defineProperty(exports,"DotsThree",{enumerable:!0,get:()=>P.DotsThree});Object.defineProperty(exports,"DownloadSimple",{enumerable:!0,get:()=>y.DownloadSimple});Object.defineProperty(exports,"EnvelopeSimple",{enumerable:!0,get:()=>f.EnvelopeSimple});Object.defineProperty(exports,"Eye",{enumerable:!0,get:()=>m.Eye});Object.defineProperty(exports,"EyeSlash",{enumerable:!0,get:()=>C.EyeSlash});Object.defineProperty(exports,"FileText",{enumerable:!0,get:()=>q.FileText});Object.defineProperty(exports,"Folder",{enumerable:!0,get:()=>j.Folder});Object.defineProperty(exports,"Funnel",{enumerable:!0,get:()=>O.Funnel});Object.defineProperty(exports,"Gear",{enumerable:!0,get:()=>h.Gear});Object.defineProperty(exports,"Info",{enumerable:!0,get:()=>k.Info});Object.defineProperty(exports,"LockKey",{enumerable:!0,get:()=>L.LockKey});Object.defineProperty(exports,"MagnifyingGlass",{enumerable:!0,get:()=>S.MagnifyingGlass});Object.defineProperty(exports,"MaxLogo",{enumerable:!0,get:()=>w.MaxLogo});Object.defineProperty(exports,"Package",{enumerable:!0,get:()=>B.Package});Object.defineProperty(exports,"Pencil",{enumerable:!0,get:()=>F.Pencil});Object.defineProperty(exports,"Phone",{enumerable:!0,get:()=>U.Phone});Object.defineProperty(exports,"Plus",{enumerable:!0,get:()=>T.Plus});Object.defineProperty(exports,"PresentationChart",{enumerable:!0,get:()=>D.PresentationChart});Object.defineProperty(exports,"SpinnerGap",{enumerable:!0,get:()=>G.SpinnerGap});Object.defineProperty(exports,"TelegramLogo",{enumerable:!0,get:()=>W.TelegramLogo});Object.defineProperty(exports,"Trash",{enumerable:!0,get:()=>x.Trash});Object.defineProperty(exports,"UserCircleGear",{enumerable:!0,get:()=>E.UserCircleGear});Object.defineProperty(exports,"Users",{enumerable:!0,get:()=>M.Users});Object.defineProperty(exports,"UsersFour",{enumerable:!0,get:()=>A.UsersFour});Object.defineProperty(exports,"Warning",{enumerable:!0,get:()=>I.Warning});Object.defineProperty(exports,"WarningCircle",{enumerable:!0,get:()=>X.WarningCircle});Object.defineProperty(exports,"WhatsAppLogoFilled",{enumerable:!0,get:()=>_.WhatsAppLogoFilled});Object.defineProperty(exports,"Wrench",{enumerable:!0,get:()=>v.Wrench});Object.defineProperty(exports,"X",{enumerable:!0,get:()=>K.X});Object.defineProperty(exports,"XCircle",{enumerable:!0,get:()=>R.XCircle});exports.StrokeIcon=z.StrokeIcon;exports.iconPresets=H.iconPresets;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("brd-phosphor-strokes-icons/icons/ArrowCounterClockwise"),r=require("brd-phosphor-strokes-icons/icons/BoundingBox"),t=require("brd-phosphor-strokes-icons/icons/Briefcase"),n=require("brd-phosphor-strokes-icons/icons/Building"),o=require("brd-phosphor-strokes-icons/icons/Buildings"),i=require("brd-phosphor-strokes-icons/icons/CaretDown"),u=require("brd-phosphor-strokes-icons/icons/CaretLeft"),c=require("brd-phosphor-strokes-icons/icons/CaretRight"),a=require("brd-phosphor-strokes-icons/icons/CaretUp"),l=require("brd-phosphor-strokes-icons/icons/CaretUpDown"),s=require("brd-phosphor-strokes-icons/icons/ChartLine"),b=require("brd-phosphor-strokes-icons/icons/Check"),g=require("brd-phosphor-strokes-icons/icons/CheckCircle"),p=require("brd-phosphor-strokes-icons/icons/Clock"),d=require("brd-phosphor-strokes-icons/icons/CreditCard"),P=require("brd-phosphor-strokes-icons/icons/DotsThree"),y=require("brd-phosphor-strokes-icons/icons/DownloadSimple"),f=require("brd-phosphor-strokes-icons/icons/EnvelopeSimple"),m=require("brd-phosphor-strokes-icons/icons/Eye"),C=require("brd-phosphor-strokes-icons/icons/EyeSlash"),q=require("brd-phosphor-strokes-icons/icons/FileText"),j=require("brd-phosphor-strokes-icons/icons/Folder"),O=require("brd-phosphor-strokes-icons/icons/Funnel"),h=require("brd-phosphor-strokes-icons/icons/Gear"),k=require("brd-phosphor-strokes-icons/icons/Info"),L=require("brd-phosphor-strokes-icons/icons/LockKey"),S=require("brd-phosphor-strokes-icons/icons/MagnifyingGlass"),w=require("brd-phosphor-strokes-icons/icons/MaxLogo"),B=require("brd-phosphor-strokes-icons/icons/Package"),F=require("brd-phosphor-strokes-icons/icons/Pencil"),U=require("brd-phosphor-strokes-icons/icons/Phone"),T=require("brd-phosphor-strokes-icons/icons/Plus"),D=require("brd-phosphor-strokes-icons/icons/PresentationChart"),G=require("brd-phosphor-strokes-icons/icons/SpinnerGap"),W=require("brd-phosphor-strokes-icons/icons/TelegramLogo"),x=require("brd-phosphor-strokes-icons/icons/Trash"),E=require("brd-phosphor-strokes-icons/icons/UserCircleGear"),M=require("brd-phosphor-strokes-icons/icons/Users"),A=require("brd-phosphor-strokes-icons/icons/UsersFour"),I=require("brd-phosphor-strokes-icons/icons/Warning"),X=require("brd-phosphor-strokes-icons/icons/WarningCircle"),_=require("brd-phosphor-strokes-icons/icons/WhatsAppLogoFilled"),v=require("brd-phosphor-strokes-icons/icons/Wrench"),K=require("brd-phosphor-strokes-icons/icons/X"),R=require("brd-phosphor-strokes-icons/icons/XCircle"),z=require("./components-icons-stroke-icon.cjs"),H=require("./components-ui-icon-icon-presets.cjs");Object.defineProperty(exports,"ArrowCounterClockwise",{enumerable:!0,get:()=>e.ArrowCounterClockwise});Object.defineProperty(exports,"BoundingBox",{enumerable:!0,get:()=>r.BoundingBox});Object.defineProperty(exports,"Briefcase",{enumerable:!0,get:()=>t.Briefcase});Object.defineProperty(exports,"Building",{enumerable:!0,get:()=>n.Building});Object.defineProperty(exports,"Buildings",{enumerable:!0,get:()=>o.Buildings});Object.defineProperty(exports,"CaretDown",{enumerable:!0,get:()=>i.CaretDown});Object.defineProperty(exports,"CaretLeft",{enumerable:!0,get:()=>u.CaretLeft});Object.defineProperty(exports,"CaretRight",{enumerable:!0,get:()=>c.CaretRight});Object.defineProperty(exports,"CaretUp",{enumerable:!0,get:()=>a.CaretUp});Object.defineProperty(exports,"CaretUpDown",{enumerable:!0,get:()=>l.CaretUpDown});Object.defineProperty(exports,"ChartLine",{enumerable:!0,get:()=>s.ChartLine});Object.defineProperty(exports,"Check",{enumerable:!0,get:()=>b.Check});Object.defineProperty(exports,"CheckCircle",{enumerable:!0,get:()=>g.CheckCircle});Object.defineProperty(exports,"Clock",{enumerable:!0,get:()=>p.Clock});Object.defineProperty(exports,"CreditCard",{enumerable:!0,get:()=>d.CreditCard});Object.defineProperty(exports,"DotsThree",{enumerable:!0,get:()=>P.DotsThree});Object.defineProperty(exports,"DownloadSimple",{enumerable:!0,get:()=>y.DownloadSimple});Object.defineProperty(exports,"EnvelopeSimple",{enumerable:!0,get:()=>f.EnvelopeSimple});Object.defineProperty(exports,"Eye",{enumerable:!0,get:()=>m.Eye});Object.defineProperty(exports,"EyeSlash",{enumerable:!0,get:()=>C.EyeSlash});Object.defineProperty(exports,"FileText",{enumerable:!0,get:()=>q.FileText});Object.defineProperty(exports,"Folder",{enumerable:!0,get:()=>j.Folder});Object.defineProperty(exports,"Funnel",{enumerable:!0,get:()=>O.Funnel});Object.defineProperty(exports,"Gear",{enumerable:!0,get:()=>h.Gear});Object.defineProperty(exports,"Info",{enumerable:!0,get:()=>k.Info});Object.defineProperty(exports,"LockKey",{enumerable:!0,get:()=>L.LockKey});Object.defineProperty(exports,"MagnifyingGlass",{enumerable:!0,get:()=>S.MagnifyingGlass});Object.defineProperty(exports,"MaxLogo",{enumerable:!0,get:()=>w.MaxLogo});Object.defineProperty(exports,"Package",{enumerable:!0,get:()=>B.Package});Object.defineProperty(exports,"Pencil",{enumerable:!0,get:()=>F.Pencil});Object.defineProperty(exports,"Phone",{enumerable:!0,get:()=>U.Phone});Object.defineProperty(exports,"Plus",{enumerable:!0,get:()=>T.Plus});Object.defineProperty(exports,"PresentationChart",{enumerable:!0,get:()=>D.PresentationChart});Object.defineProperty(exports,"SpinnerGap",{enumerable:!0,get:()=>G.SpinnerGap});Object.defineProperty(exports,"TelegramLogo",{enumerable:!0,get:()=>W.TelegramLogo});Object.defineProperty(exports,"Trash",{enumerable:!0,get:()=>x.Trash});Object.defineProperty(exports,"UserCircleGear",{enumerable:!0,get:()=>E.UserCircleGear});Object.defineProperty(exports,"Users",{enumerable:!0,get:()=>M.Users});Object.defineProperty(exports,"UsersFour",{enumerable:!0,get:()=>A.UsersFour});Object.defineProperty(exports,"Warning",{enumerable:!0,get:()=>I.Warning});Object.defineProperty(exports,"WarningCircle",{enumerable:!0,get:()=>X.WarningCircle});Object.defineProperty(exports,"WhatsAppLogoFilled",{enumerable:!0,get:()=>_.WhatsAppLogoFilled});Object.defineProperty(exports,"Wrench",{enumerable:!0,get:()=>v.Wrench});Object.defineProperty(exports,"X",{enumerable:!0,get:()=>K.X});Object.defineProperty(exports,"XCircle",{enumerable:!0,get:()=>R.XCircle});exports.StrokeIcon=z.StrokeIcon;exports.iconPresets=H.iconPresets;
2
2
  //# sourceMappingURL=components-icons.cjs.map
@@ -1,48 +1,48 @@
1
- import { ArrowCounterClockwise as e } from "phosphor-strokes-icons/icons/ArrowCounterClockwise";
2
- import { BoundingBox as p } from "phosphor-strokes-icons/icons/BoundingBox";
3
- import { Briefcase as m } from "phosphor-strokes-icons/icons/Briefcase";
4
- import { Building as n } from "phosphor-strokes-icons/icons/Building";
5
- import { Buildings as a } from "phosphor-strokes-icons/icons/Buildings";
6
- import { CaretDown as s } from "phosphor-strokes-icons/icons/CaretDown";
7
- import { CaretLeft as c } from "phosphor-strokes-icons/icons/CaretLeft";
8
- import { CaretRight as h } from "phosphor-strokes-icons/icons/CaretRight";
9
- import { CaretUp as k } from "phosphor-strokes-icons/icons/CaretUp";
10
- import { CaretUpDown as L } from "phosphor-strokes-icons/icons/CaretUpDown";
11
- import { ChartLine as w } from "phosphor-strokes-icons/icons/ChartLine";
12
- import { Check as F } from "phosphor-strokes-icons/icons/Check";
13
- import { CheckCircle as U } from "phosphor-strokes-icons/icons/CheckCircle";
14
- import { Clock as D } from "phosphor-strokes-icons/icons/Clock";
15
- import { CreditCard as T } from "phosphor-strokes-icons/icons/CreditCard";
16
- import { DotsThree as E } from "phosphor-strokes-icons/icons/DotsThree";
17
- import { DownloadSimple as I } from "phosphor-strokes-icons/icons/DownloadSimple";
18
- import { EnvelopeSimple as X } from "phosphor-strokes-icons/icons/EnvelopeSimple";
19
- import { Eye as K } from "phosphor-strokes-icons/icons/Eye";
20
- import { EyeSlash as b } from "phosphor-strokes-icons/icons/EyeSlash";
21
- import { FileText as q } from "phosphor-strokes-icons/icons/FileText";
22
- import { Folder as H } from "phosphor-strokes-icons/icons/Folder";
23
- import { Funnel as N } from "phosphor-strokes-icons/icons/Funnel";
24
- import { Gear as Q } from "phosphor-strokes-icons/icons/Gear";
25
- import { Info as Y } from "phosphor-strokes-icons/icons/Info";
26
- import { LockKey as _ } from "phosphor-strokes-icons/icons/LockKey";
27
- import { MagnifyingGlass as rr } from "phosphor-strokes-icons/icons/MagnifyingGlass";
28
- import { MaxLogo as er } from "phosphor-strokes-icons/icons/MaxLogo";
29
- import { Package as pr } from "phosphor-strokes-icons/icons/Package";
30
- import { Pencil as mr } from "phosphor-strokes-icons/icons/Pencil";
31
- import { Phone as nr } from "phosphor-strokes-icons/icons/Phone";
32
- import { Plus as ar } from "phosphor-strokes-icons/icons/Plus";
33
- import { PresentationChart as sr } from "phosphor-strokes-icons/icons/PresentationChart";
34
- import { SpinnerGap as cr } from "phosphor-strokes-icons/icons/SpinnerGap";
35
- import { TelegramLogo as hr } from "phosphor-strokes-icons/icons/TelegramLogo";
36
- import { Trash as kr } from "phosphor-strokes-icons/icons/Trash";
37
- import { UserCircleGear as Lr } from "phosphor-strokes-icons/icons/UserCircleGear";
38
- import { Users as wr } from "phosphor-strokes-icons/icons/Users";
39
- import { UsersFour as Fr } from "phosphor-strokes-icons/icons/UsersFour";
40
- import { Warning as Ur } from "phosphor-strokes-icons/icons/Warning";
41
- import { WarningCircle as Dr } from "phosphor-strokes-icons/icons/WarningCircle";
42
- import { WhatsAppLogoFilled as Tr } from "phosphor-strokes-icons/icons/WhatsAppLogoFilled";
43
- import { Wrench as Er } from "phosphor-strokes-icons/icons/Wrench";
44
- import { X as Ir } from "phosphor-strokes-icons/icons/X";
45
- import { XCircle as Xr } from "phosphor-strokes-icons/icons/XCircle";
1
+ import { ArrowCounterClockwise as e } from "brd-phosphor-strokes-icons/icons/ArrowCounterClockwise";
2
+ import { BoundingBox as p } from "brd-phosphor-strokes-icons/icons/BoundingBox";
3
+ import { Briefcase as m } from "brd-phosphor-strokes-icons/icons/Briefcase";
4
+ import { Building as n } from "brd-phosphor-strokes-icons/icons/Building";
5
+ import { Buildings as a } from "brd-phosphor-strokes-icons/icons/Buildings";
6
+ import { CaretDown as s } from "brd-phosphor-strokes-icons/icons/CaretDown";
7
+ import { CaretLeft as c } from "brd-phosphor-strokes-icons/icons/CaretLeft";
8
+ import { CaretRight as h } from "brd-phosphor-strokes-icons/icons/CaretRight";
9
+ import { CaretUp as k } from "brd-phosphor-strokes-icons/icons/CaretUp";
10
+ import { CaretUpDown as L } from "brd-phosphor-strokes-icons/icons/CaretUpDown";
11
+ import { ChartLine as w } from "brd-phosphor-strokes-icons/icons/ChartLine";
12
+ import { Check as F } from "brd-phosphor-strokes-icons/icons/Check";
13
+ import { CheckCircle as U } from "brd-phosphor-strokes-icons/icons/CheckCircle";
14
+ import { Clock as D } from "brd-phosphor-strokes-icons/icons/Clock";
15
+ import { CreditCard as T } from "brd-phosphor-strokes-icons/icons/CreditCard";
16
+ import { DotsThree as E } from "brd-phosphor-strokes-icons/icons/DotsThree";
17
+ import { DownloadSimple as I } from "brd-phosphor-strokes-icons/icons/DownloadSimple";
18
+ import { EnvelopeSimple as X } from "brd-phosphor-strokes-icons/icons/EnvelopeSimple";
19
+ import { Eye as K } from "brd-phosphor-strokes-icons/icons/Eye";
20
+ import { EyeSlash as b } from "brd-phosphor-strokes-icons/icons/EyeSlash";
21
+ import { FileText as q } from "brd-phosphor-strokes-icons/icons/FileText";
22
+ import { Folder as H } from "brd-phosphor-strokes-icons/icons/Folder";
23
+ import { Funnel as N } from "brd-phosphor-strokes-icons/icons/Funnel";
24
+ import { Gear as Q } from "brd-phosphor-strokes-icons/icons/Gear";
25
+ import { Info as Y } from "brd-phosphor-strokes-icons/icons/Info";
26
+ import { LockKey as _ } from "brd-phosphor-strokes-icons/icons/LockKey";
27
+ import { MagnifyingGlass as rr } from "brd-phosphor-strokes-icons/icons/MagnifyingGlass";
28
+ import { MaxLogo as er } from "brd-phosphor-strokes-icons/icons/MaxLogo";
29
+ import { Package as pr } from "brd-phosphor-strokes-icons/icons/Package";
30
+ import { Pencil as mr } from "brd-phosphor-strokes-icons/icons/Pencil";
31
+ import { Phone as nr } from "brd-phosphor-strokes-icons/icons/Phone";
32
+ import { Plus as ar } from "brd-phosphor-strokes-icons/icons/Plus";
33
+ import { PresentationChart as sr } from "brd-phosphor-strokes-icons/icons/PresentationChart";
34
+ import { SpinnerGap as cr } from "brd-phosphor-strokes-icons/icons/SpinnerGap";
35
+ import { TelegramLogo as hr } from "brd-phosphor-strokes-icons/icons/TelegramLogo";
36
+ import { Trash as kr } from "brd-phosphor-strokes-icons/icons/Trash";
37
+ import { UserCircleGear as Lr } from "brd-phosphor-strokes-icons/icons/UserCircleGear";
38
+ import { Users as wr } from "brd-phosphor-strokes-icons/icons/Users";
39
+ import { UsersFour as Fr } from "brd-phosphor-strokes-icons/icons/UsersFour";
40
+ import { Warning as Ur } from "brd-phosphor-strokes-icons/icons/Warning";
41
+ import { WarningCircle as Dr } from "brd-phosphor-strokes-icons/icons/WarningCircle";
42
+ import { WhatsAppLogoFilled as Tr } from "brd-phosphor-strokes-icons/icons/WhatsAppLogoFilled";
43
+ import { Wrench as Er } from "brd-phosphor-strokes-icons/icons/Wrench";
44
+ import { X as Ir } from "brd-phosphor-strokes-icons/icons/X";
45
+ import { XCircle as Xr } from "brd-phosphor-strokes-icons/icons/XCircle";
46
46
  import { StrokeIcon as Kr } from "./components-icons-stroke-icon.js";
47
47
  import { iconPresets as br } from "./components-ui-icon-icon-presets.js";
48
48
  export {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./brd-ui-kit.css');const r=require("react/jsx-runtime"),P=require("phosphor-strokes-icons/icons/CaretDown"),j=require("phosphor-strokes-icons/icons/CaretUp"),_=require("phosphor-strokes-icons/icons/EnvelopeSimple"),k=require("phosphor-strokes-icons/icons/MaxLogo"),S=require("phosphor-strokes-icons/icons/Phone"),i=require("./components-icons-stroke-icon.cjs"),T=require("phosphor-strokes-icons/icons/TelegramLogo"),L=require("phosphor-strokes-icons/icons/WhatsAppLogoFilled");;/* empty css */const b=require("./lib-utils.cjs");require("class-variance-authority");require("./components-ui-badge-badge.styles.cjs");const z=require("./components-ui-button-button.cjs");require("./components-ui-button-button.styles.cjs");require("./components-ui-card-card.cjs");require("./components-ui-checkbox-checkbox.cjs");const F=require("./hooks-usePopupControls.cjs");require("./calendar-DvDG9hIB.cjs");require("phosphor-strokes-icons/icons");require("./components-ui-combobox-combobox.cjs");require("./components-ui-dialog-dialog.cjs");const c=require("react");require("./components-ui-label-label.cjs");require("./components-ui-separator-separator.cjs");require("./components-ui-field-field.styles.cjs");require("./components-ui-input-input.styles.cjs");require("./components-ui-textarea-textarea.cjs");require("./components-ui-input-group-input-group.styles.cjs");require("./components-ui-navigation-item-navigation-item.styles.cjs");require("./components-ui-navigation-menu-navigation-menu.styles.cjs");require("./components-ui-pagination-pagination.cjs");require("./components-ui-progress-progress.cjs");require("./components-ui-radio-group-radio-group.cjs");require("./components-ui-switch-switch.cjs");require("./components-ui-toggle-toggle.styles.cjs");require("./components-ui-toggle-group-toggle-group.cjs");require("./components-ui-table-table.cjs");require("./components-ui-tabs-tabs.cjs");require("./components-ui-tooltip-tooltip.cjs");require("./components-ui-typography-typography.styles.cjs");require("phosphor-strokes-icons/icons/CaretLeft");require("phosphor-strokes-icons/icons/CaretRight");require("./components-app-pagination-app-pagination.styles.cjs");require("phosphor-strokes-icons/icons/CaretUpDown");require("./components-app-sidebar-app-sidebar.styles.cjs");require("./components-data-table-data-table.styles.cjs");require("./components-ui-dropdown-menu-dropdown-menu.styles.cjs");const N=require("./components-input-field-input-field.cjs");require("phosphor-strokes-icons/icons/Eye");require("phosphor-strokes-icons/icons/EyeSlash");require("./components-select-field-select-field.cjs");require("./lodash-kqhtUJfz.cjs");require("./chart-9H_9wEfR.cjs");require("phosphor-strokes-icons/icons/CheckCircle");require("phosphor-strokes-icons/icons/Info");require("phosphor-strokes-icons/icons/SpinnerGap");require("phosphor-strokes-icons/icons/Warning");require("phosphor-strokes-icons/icons/X");require("phosphor-strokes-icons/icons/XCircle");require("./index-DGxwh2Ms.cjs");require("./index-fTTv8YY8.cjs");require("phosphor-strokes-icons/icons/Plus");const D=require("./components-input-phone-input-phone.cjs");require("./components-card-info-card-info.styles.cjs");const E=[{label:"Мобильный",icon:"phone"},{label:"Telegram",icon:"telegram-logo"},{label:"WhatsApp",icon:"whats-app-logo-filled"},{label:"Max",icon:"max-logo"},{label:"E-mail",icon:"envelope-simple"}],h={phone:S.Phone,"telegram-logo":T.TelegramLogo,"whats-app-logo-filled":L.WhatsAppLogoFilled,"max-logo":k.MaxLogo,"envelope-simple":_.EnvelopeSimple},x=o=>{switch(o){case"max-logo":return{bgColor:"bg-[linear-gradient(135deg,#9933DD_0%,#2831B9_50%,#44CCFF_100%)]"};case"telegram-logo":return{bgColor:"bg-[#289AD2]"};case"whats-app-logo-filled":return{bgColor:"bg-[#00C202]",textColor:"text-primary-inverse-text"};default:return{}}},a=o=>({wrapper:b.cn(`flex h-5.5 w-5.5 shrink-0 items-center justify-center rounded-sm
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./brd-ui-kit.css');const r=require("react/jsx-runtime"),P=require("brd-phosphor-strokes-icons/icons/CaretDown"),j=require("brd-phosphor-strokes-icons/icons/CaretUp"),_=require("brd-phosphor-strokes-icons/icons/EnvelopeSimple"),k=require("brd-phosphor-strokes-icons/icons/MaxLogo"),S=require("brd-phosphor-strokes-icons/icons/Phone"),i=require("./components-icons-stroke-icon.cjs"),T=require("brd-phosphor-strokes-icons/icons/TelegramLogo"),L=require("brd-phosphor-strokes-icons/icons/WhatsAppLogoFilled");;/* empty css */const b=require("./lib-utils.cjs");require("class-variance-authority");require("./components-ui-badge-badge.styles.cjs");const z=require("./components-ui-button-button.cjs");require("./components-ui-button-button.styles.cjs");require("./components-ui-card-card.cjs");require("./components-ui-checkbox-checkbox.cjs");const F=require("./hooks-usePopupControls.cjs");require("./calendar-BClkfQSD.cjs");require("brd-phosphor-strokes-icons/icons");require("./components-ui-combobox-combobox.cjs");require("./components-ui-dialog-dialog.cjs");const c=require("react");require("./components-ui-label-label.cjs");require("./components-ui-separator-separator.cjs");require("./components-ui-field-field.styles.cjs");require("./components-ui-input-input.styles.cjs");require("./components-ui-textarea-textarea.cjs");require("./components-ui-input-group-input-group.styles.cjs");require("./components-ui-navigation-item-navigation-item.styles.cjs");require("./components-ui-navigation-menu-navigation-menu.styles.cjs");require("./components-ui-pagination-pagination.cjs");require("./components-ui-progress-progress.cjs");require("./components-ui-radio-group-radio-group.cjs");require("./components-ui-switch-switch.cjs");require("./components-ui-toggle-toggle.styles.cjs");require("./components-ui-toggle-group-toggle-group.cjs");require("./components-ui-table-table.cjs");require("./components-ui-tabs-tabs.cjs");require("./components-ui-tooltip-tooltip.cjs");require("./components-ui-typography-typography.styles.cjs");require("brd-phosphor-strokes-icons/icons/CaretLeft");require("brd-phosphor-strokes-icons/icons/CaretRight");require("./components-app-pagination-app-pagination.styles.cjs");require("brd-phosphor-strokes-icons/icons/CaretUpDown");require("./components-app-sidebar-app-sidebar.styles.cjs");require("./components-data-table-data-table.styles.cjs");require("./components-ui-dropdown-menu-dropdown-menu.styles.cjs");const N=require("./components-input-field-input-field.cjs");require("brd-phosphor-strokes-icons/icons/Eye");require("brd-phosphor-strokes-icons/icons/EyeSlash");require("./components-select-field-select-field.cjs");require("./lodash-kqhtUJfz.cjs");require("./chart-9H_9wEfR.cjs");require("brd-phosphor-strokes-icons/icons/CheckCircle");require("brd-phosphor-strokes-icons/icons/Info");require("brd-phosphor-strokes-icons/icons/SpinnerGap");require("brd-phosphor-strokes-icons/icons/Warning");require("brd-phosphor-strokes-icons/icons/X");require("brd-phosphor-strokes-icons/icons/XCircle");require("./index-DGxwh2Ms.cjs");require("./index-fTTv8YY8.cjs");require("brd-phosphor-strokes-icons/icons/Plus");const D=require("./components-input-phone-input-phone.cjs");require("./components-card-info-card-info.styles.cjs");const E=[{label:"Мобильный",icon:"phone"},{label:"Telegram",icon:"telegram-logo"},{label:"WhatsApp",icon:"whats-app-logo-filled"},{label:"Max",icon:"max-logo"},{label:"E-mail",icon:"envelope-simple"}],h={phone:S.Phone,"telegram-logo":T.TelegramLogo,"whats-app-logo-filled":L.WhatsAppLogoFilled,"max-logo":k.MaxLogo,"envelope-simple":_.EnvelopeSimple},x=o=>{switch(o){case"max-logo":return{bgColor:"bg-[linear-gradient(135deg,#9933DD_0%,#2831B9_50%,#44CCFF_100%)]"};case"telegram-logo":return{bgColor:"bg-[#289AD2]"};case"whats-app-logo-filled":return{bgColor:"bg-[#00C202]",textColor:"text-primary-inverse-text"};default:return{}}},a=o=>({wrapper:b.cn(`flex h-5.5 w-5.5 shrink-0 items-center justify-center rounded-sm
2
2
  ${x(o).bgColor??"bg-primary-inverse-hover-bg"}
3
3
  ${x(o).textColor??"text-primary-inverse-text"}`),icon:"size-5 shrink-0"}),O=o=>{const{inputProps:C,inputPhoneProps:f,onTypeChange:v,...p}=o,[n,I]=c.useState("phone"),{isOpened:s,openPopup:q,closePopup:u}=F.usePopupControls(),l=c.useRef(null);c.useEffect(()=>{const e=t=>{l.current&&!l.current.contains(t.target)&&u()};return s&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[s,u]);const m=e=>{switch(e){case"phone":return"+7 (999) 999-99-99";case"telegram-logo":return"@username";case"whats-app-logo-filled":return"+7 (999) 999-99-99";case"max-logo":return"ID пользователя Max";case"envelope-simple":return"example@mail.com";default:return"Введите значение"}},w=e=>()=>{I(e),v?.(e),u()},d=h[n],g=s?j.CaretUp:P.CaretDown;return r.jsxs("div",{className:b.cn("relative",o.classes?.container),children:[["telegram-logo","max-logo","envelope-simple"].includes(n)?r.jsx(N.InputField,{...C,...p,date:[{id:"0",position:"inline-start",component:r.jsx(i.StrokeIcon,{icon:d,size:"medium",classes:a(n)})},{id:"1",position:"inline-end",component:r.jsx(i.StrokeIcon,{icon:g,size:"medium",className:"cursor-pointer",onClick:q})}],placeholder:m(n)}):r.jsx(D.InputPhone,{...f,...p,date:[{id:"0",position:"inline-start",component:r.jsx(i.StrokeIcon,{icon:d,size:"medium",classes:a(n)})},{id:"1",position:"inline-end",component:r.jsx(i.StrokeIcon,{icon:g,size:"medium",className:"cursor-pointer",onClick:q})}],placeholder:m(n)}),s&&r.jsx("div",{className:`border-inp-hover-border bg-primary-bg absolute z-100 my-2 flex w-full
4
4
  flex-col rounded-xl border`,ref:l,children:E.map(({label:e,icon:t})=>{const y=h[t];return r.jsxs(z.Button,{variant:"ghost",className:"flex w-full justify-start",type:"button",onClick:w(t),children:[r.jsx(i.StrokeIcon,{icon:y,size:"medium",className:"text-primary-inverse-text",classes:a(t)}),e]},e)})})]})};exports.InputContact=O;
@@ -1 +1 @@
1
- {"version":3,"file":"components-input-contact-input-contact.cjs","sources":["../src/constants/contact-input.ts","../src/components/input-contact/input-contact.tsx"],"sourcesContent":["import type { TOption } from \"@/components/input-contact/input-contact\";\n\nexport const OPTIONS: TOption[] = [\n {\n label: \"Мобильный\",\n icon: \"phone\",\n },\n {\n label: \"Telegram\",\n icon: \"telegram-logo\",\n },\n {\n label: \"WhatsApp\",\n icon: \"whats-app-logo-filled\",\n },\n {\n label: \"Max\",\n icon: \"max-logo\",\n },\n {\n label: \"E-mail\",\n icon: \"envelope-simple\",\n },\n];\n","import { OPTIONS } from \"@/constants/contact-input\";\nimport { CaretDown } from \"@/components/icons/CaretDown\";\nimport { CaretUp } from \"@/components/icons/CaretUp\";\nimport { EnvelopeSimple } from \"@/components/icons/EnvelopeSimple\";\nimport { MaxLogo } from \"@/components/icons/MaxLogo\";\nimport { Phone } from \"@/components/icons/Phone\";\nimport { StrokeIcon, type StrokeIconComponent } from \"@/components/icons/stroke-icon\";\nimport { TelegramLogo } from \"@/components/icons/TelegramLogo\";\nimport { WhatsAppLogoFilled } from \"@/components/icons/WhatsAppLogoFilled\";\nimport {\n Button,\n InputField,\n InputPhone,\n cn,\n usePopupControls,\n type InputPhoneProps,\n} from \"@/index\";\nimport { useEffect, useRef, useState } from \"react\";\n\nexport type TOption = {\n label: string;\n icon: TypesChange;\n};\n\ntype TypesChange =\n | \"phone\"\n | \"telegram-logo\"\n | \"whats-app-logo-filled\"\n | \"max-logo\"\n | \"envelope-simple\";\n\nconst contactIcons: Record<TypesChange, StrokeIconComponent> = {\n phone: Phone,\n \"telegram-logo\": TelegramLogo,\n \"whats-app-logo-filled\": WhatsAppLogoFilled,\n \"max-logo\": MaxLogo,\n \"envelope-simple\": EnvelopeSimple,\n};\n\ntype Props = {\n isValid?: boolean;\n label?: string;\n description?: string;\n classes?: {\n fieldset?: string;\n fieldgroup?: string;\n field?: string;\n container?: string;\n };\n value?: string;\n name?: string;\n onTypeChange?: (type: TypesChange) => void;\n inputProps: React.ComponentPropsWithRef<\"input\">;\n inputPhoneProps: InputPhoneProps;\n};\n\n// TODO: заменить цвета\nconst iconStyles = (icon: TypesChange) => {\n switch (icon) {\n case \"max-logo\":\n return {\n bgColor: \"bg-[linear-gradient(135deg,#9933DD_0%,#2831B9_50%,#44CCFF_100%)]\",\n };\n\n case \"telegram-logo\":\n return {\n bgColor: \"bg-[#289AD2]\",\n };\n\n case \"whats-app-logo-filled\":\n return {\n bgColor: \"bg-[#00C202]\",\n textColor: \"text-primary-inverse-text\",\n };\n\n default:\n return {};\n }\n};\n\nconst getContactIconClasses = (icon: TypesChange) => ({\n wrapper: cn(\n `flex h-5.5 w-5.5 shrink-0 items-center justify-center rounded-sm\n ${iconStyles(icon).bgColor ?? \"bg-primary-inverse-hover-bg\"}\n ${iconStyles(icon).textColor ?? \"text-primary-inverse-text\"}`,\n ),\n icon: \"size-5 shrink-0\",\n});\n\nexport const InputContact = (props: Props) => {\n const { inputProps, inputPhoneProps, onTypeChange, ...rest } = props;\n\n const [type, setType] = useState<TypesChange>(\"phone\");\n const { isOpened, openPopup, closePopup } = usePopupControls();\n const wrapperRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (wrapperRef.current && !wrapperRef.current.contains(event.target as Node)) {\n closePopup();\n }\n };\n\n if (isOpened) {\n document.addEventListener(\"mousedown\", handleClickOutside);\n }\n\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }, [isOpened, closePopup]);\n\n const getPlaceholder = (type: TypesChange): string => {\n switch (type) {\n case \"phone\":\n return \"+7 (999) 999-99-99\";\n case \"telegram-logo\":\n return \"@username\";\n case \"whats-app-logo-filled\":\n return \"+7 (999) 999-99-99\";\n case \"max-logo\":\n return \"ID пользователя Max\";\n case \"envelope-simple\":\n return \"example@mail.com\";\n default:\n return \"Введите значение\";\n }\n };\n\n const handleTypeChange = (type: TypesChange) => {\n return () => {\n setType(type);\n onTypeChange?.(type);\n closePopup();\n };\n };\n\n const SelectedIcon = contactIcons[type];\n const ToggleIcon = isOpened ? CaretUp : CaretDown;\n\n return (\n <div className={cn(\"relative\", props.classes?.container)}>\n {[\"telegram-logo\", \"max-logo\", \"envelope-simple\"].includes(type) ? (\n <InputField\n {...inputProps}\n {...rest}\n date={[\n {\n id: \"0\",\n position: \"inline-start\",\n component: (\n <StrokeIcon\n icon={SelectedIcon}\n size=\"medium\"\n classes={getContactIconClasses(type)}\n />\n ),\n },\n {\n id: \"1\",\n position: \"inline-end\",\n component: (\n <StrokeIcon\n icon={ToggleIcon}\n size=\"medium\"\n className=\"cursor-pointer\"\n onClick={openPopup}\n />\n ),\n },\n ]}\n placeholder={getPlaceholder(type)}\n />\n ) : (\n <InputPhone\n {...inputPhoneProps}\n {...rest}\n date={[\n {\n id: \"0\",\n position: \"inline-start\",\n component: (\n <StrokeIcon\n icon={SelectedIcon}\n size=\"medium\"\n classes={getContactIconClasses(type)}\n />\n ),\n },\n {\n id: \"1\",\n position: \"inline-end\",\n component: (\n <StrokeIcon\n icon={ToggleIcon}\n size=\"medium\"\n className=\"cursor-pointer\"\n onClick={openPopup}\n />\n ),\n },\n ]}\n placeholder={getPlaceholder(type)}\n />\n )}\n\n {isOpened && (\n <div\n className=\"border-inp-hover-border bg-primary-bg absolute z-100 my-2 flex w-full\n flex-col rounded-xl border\"\n ref={wrapperRef}\n >\n {OPTIONS.map(({ label, icon }) => {\n const OptionIcon = contactIcons[icon];\n\n return (\n <Button\n key={label}\n variant=\"ghost\"\n className=\"flex w-full justify-start\"\n type=\"button\"\n onClick={handleTypeChange(icon)}\n >\n <StrokeIcon\n icon={OptionIcon}\n size=\"medium\"\n className=\"text-primary-inverse-text\"\n classes={getContactIconClasses(icon)}\n />\n\n {label}\n </Button>\n );\n })}\n </div>\n )}\n </div>\n );\n};\n\nexport type { Props as InputContactProps, TypesChange };\n"],"names":["OPTIONS","contactIcons","Phone","TelegramLogo","WhatsAppLogoFilled","MaxLogo","EnvelopeSimple","iconStyles","icon","getContactIconClasses","cn","InputContact","props","inputProps","inputPhoneProps","onTypeChange","rest","type","setType","useState","isOpened","openPopup","closePopup","usePopupControls","wrapperRef","useRef","useEffect","handleClickOutside","event","getPlaceholder","handleTypeChange","SelectedIcon","ToggleIcon","CaretUp","CaretDown","jsxs","jsx","InputField","StrokeIcon","InputPhone","label","OptionIcon","Button"],"mappings":"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"}
1
+ {"version":3,"file":"components-input-contact-input-contact.cjs","sources":["../src/constants/contact-input.ts","../src/components/input-contact/input-contact.tsx"],"sourcesContent":["import type { TOption } from \"@/components/input-contact/input-contact\";\n\nexport const OPTIONS: TOption[] = [\n {\n label: \"Мобильный\",\n icon: \"phone\",\n },\n {\n label: \"Telegram\",\n icon: \"telegram-logo\",\n },\n {\n label: \"WhatsApp\",\n icon: \"whats-app-logo-filled\",\n },\n {\n label: \"Max\",\n icon: \"max-logo\",\n },\n {\n label: \"E-mail\",\n icon: \"envelope-simple\",\n },\n];\n","import { OPTIONS } from \"@/constants/contact-input\";\nimport { CaretDown } from \"@/components/icons/CaretDown\";\nimport { CaretUp } from \"@/components/icons/CaretUp\";\nimport { EnvelopeSimple } from \"@/components/icons/EnvelopeSimple\";\nimport { MaxLogo } from \"@/components/icons/MaxLogo\";\nimport { Phone } from \"@/components/icons/Phone\";\nimport { StrokeIcon, type StrokeIconComponent } from \"@/components/icons/stroke-icon\";\nimport { TelegramLogo } from \"@/components/icons/TelegramLogo\";\nimport { WhatsAppLogoFilled } from \"@/components/icons/WhatsAppLogoFilled\";\nimport {\n Button,\n InputField,\n InputPhone,\n cn,\n usePopupControls,\n type InputPhoneProps,\n} from \"@/index\";\nimport { useEffect, useRef, useState } from \"react\";\n\nexport type TOption = {\n label: string;\n icon: TypesChange;\n};\n\ntype TypesChange =\n | \"phone\"\n | \"telegram-logo\"\n | \"whats-app-logo-filled\"\n | \"max-logo\"\n | \"envelope-simple\";\n\nconst contactIcons: Record<TypesChange, StrokeIconComponent> = {\n phone: Phone,\n \"telegram-logo\": TelegramLogo,\n \"whats-app-logo-filled\": WhatsAppLogoFilled,\n \"max-logo\": MaxLogo,\n \"envelope-simple\": EnvelopeSimple,\n};\n\ntype Props = {\n isValid?: boolean;\n label?: string;\n description?: string;\n classes?: {\n fieldset?: string;\n fieldgroup?: string;\n field?: string;\n container?: string;\n };\n value?: string;\n name?: string;\n onTypeChange?: (type: TypesChange) => void;\n inputProps: React.ComponentPropsWithRef<\"input\">;\n inputPhoneProps: InputPhoneProps;\n};\n\n// TODO: заменить цвета\nconst iconStyles = (icon: TypesChange) => {\n switch (icon) {\n case \"max-logo\":\n return {\n bgColor: \"bg-[linear-gradient(135deg,#9933DD_0%,#2831B9_50%,#44CCFF_100%)]\",\n };\n\n case \"telegram-logo\":\n return {\n bgColor: \"bg-[#289AD2]\",\n };\n\n case \"whats-app-logo-filled\":\n return {\n bgColor: \"bg-[#00C202]\",\n textColor: \"text-primary-inverse-text\",\n };\n\n default:\n return {};\n }\n};\n\nconst getContactIconClasses = (icon: TypesChange) => ({\n wrapper: cn(\n `flex h-5.5 w-5.5 shrink-0 items-center justify-center rounded-sm\n ${iconStyles(icon).bgColor ?? \"bg-primary-inverse-hover-bg\"}\n ${iconStyles(icon).textColor ?? \"text-primary-inverse-text\"}`,\n ),\n icon: \"size-5 shrink-0\",\n});\n\nexport const InputContact = (props: Props) => {\n const { inputProps, inputPhoneProps, onTypeChange, ...rest } = props;\n\n const [type, setType] = useState<TypesChange>(\"phone\");\n const { isOpened, openPopup, closePopup } = usePopupControls();\n const wrapperRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (wrapperRef.current && !wrapperRef.current.contains(event.target as Node)) {\n closePopup();\n }\n };\n\n if (isOpened) {\n document.addEventListener(\"mousedown\", handleClickOutside);\n }\n\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }, [isOpened, closePopup]);\n\n const getPlaceholder = (type: TypesChange): string => {\n switch (type) {\n case \"phone\":\n return \"+7 (999) 999-99-99\";\n case \"telegram-logo\":\n return \"@username\";\n case \"whats-app-logo-filled\":\n return \"+7 (999) 999-99-99\";\n case \"max-logo\":\n return \"ID пользователя Max\";\n case \"envelope-simple\":\n return \"example@mail.com\";\n default:\n return \"Введите значение\";\n }\n };\n\n const handleTypeChange = (type: TypesChange) => {\n return () => {\n setType(type);\n onTypeChange?.(type);\n closePopup();\n };\n };\n\n const SelectedIcon = contactIcons[type];\n const ToggleIcon = isOpened ? CaretUp : CaretDown;\n\n return (\n <div className={cn(\"relative\", props.classes?.container)}>\n {[\"telegram-logo\", \"max-logo\", \"envelope-simple\"].includes(type) ? (\n <InputField\n {...inputProps}\n {...rest}\n date={[\n {\n id: \"0\",\n position: \"inline-start\",\n component: (\n <StrokeIcon\n icon={SelectedIcon}\n size=\"medium\"\n classes={getContactIconClasses(type)}\n />\n ),\n },\n {\n id: \"1\",\n position: \"inline-end\",\n component: (\n <StrokeIcon\n icon={ToggleIcon}\n size=\"medium\"\n className=\"cursor-pointer\"\n onClick={openPopup}\n />\n ),\n },\n ]}\n placeholder={getPlaceholder(type)}\n />\n ) : (\n <InputPhone\n {...inputPhoneProps}\n {...rest}\n date={[\n {\n id: \"0\",\n position: \"inline-start\",\n component: (\n <StrokeIcon\n icon={SelectedIcon}\n size=\"medium\"\n classes={getContactIconClasses(type)}\n />\n ),\n },\n {\n id: \"1\",\n position: \"inline-end\",\n component: (\n <StrokeIcon\n icon={ToggleIcon}\n size=\"medium\"\n className=\"cursor-pointer\"\n onClick={openPopup}\n />\n ),\n },\n ]}\n placeholder={getPlaceholder(type)}\n />\n )}\n\n {isOpened && (\n <div\n className=\"border-inp-hover-border bg-primary-bg absolute z-100 my-2 flex w-full\n flex-col rounded-xl border\"\n ref={wrapperRef}\n >\n {OPTIONS.map(({ label, icon }) => {\n const OptionIcon = contactIcons[icon];\n\n return (\n <Button\n key={label}\n variant=\"ghost\"\n className=\"flex w-full justify-start\"\n type=\"button\"\n onClick={handleTypeChange(icon)}\n >\n <StrokeIcon\n icon={OptionIcon}\n size=\"medium\"\n className=\"text-primary-inverse-text\"\n classes={getContactIconClasses(icon)}\n />\n\n {label}\n </Button>\n );\n })}\n </div>\n )}\n </div>\n );\n};\n\nexport type { Props as InputContactProps, TypesChange };\n"],"names":["OPTIONS","contactIcons","Phone","TelegramLogo","WhatsAppLogoFilled","MaxLogo","EnvelopeSimple","iconStyles","icon","getContactIconClasses","cn","InputContact","props","inputProps","inputPhoneProps","onTypeChange","rest","type","setType","useState","isOpened","openPopup","closePopup","usePopupControls","wrapperRef","useRef","useEffect","handleClickOutside","event","getPlaceholder","handleTypeChange","SelectedIcon","ToggleIcon","CaretUp","CaretDown","jsxs","jsx","InputField","StrokeIcon","InputPhone","label","OptionIcon","Button"],"mappings":"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"}