@cuemath/leap 4.0.2 → 4.0.3

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 (321) hide show
  1. package/dist/features/auth/comps/pill-button/pill-button.js +1 -1
  2. package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
  3. package/dist/features/auth/comps/resend-otp/resend-otp.js +3 -3
  4. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -1
  5. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js +1 -1
  6. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js.map +1 -1
  7. package/dist/features/auth/pla-signup/signup-header/signup-header.js +2 -2
  8. package/dist/features/auth/pla-signup/signup-header/signup-header.js.map +1 -1
  9. package/dist/features/auth/pla-signup/signup-options/signup-options.js +1 -1
  10. package/dist/features/auth/pla-signup/signup-options/signup-options.js.map +1 -1
  11. package/dist/features/auth/signup/claim-user-account/claim-user-account.js +1 -1
  12. package/dist/features/auth/signup/claim-user-account/claim-user-account.js.map +1 -1
  13. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js +1 -1
  14. package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js.map +1 -1
  15. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js +1 -1
  16. package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js.map +1 -1
  17. package/dist/features/auth/signup/user-type-selector/user-type-selector.js +3 -3
  18. package/dist/features/auth/signup/user-type-selector/user-type-selector.js.map +1 -1
  19. package/dist/features/auth/signup-unavailable/signup-unavailable-view.js +1 -1
  20. package/dist/features/auth/signup-unavailable/signup-unavailable-view.js.map +1 -1
  21. package/dist/features/av/av-preview/av-preview.js +1 -1
  22. package/dist/features/av/av-preview/av-preview.js.map +1 -1
  23. package/dist/features/blockers/multi-tab-blocker/multi-tab-blocker.js +1 -1
  24. package/dist/features/blockers/multi-tab-blocker/multi-tab-blocker.js.map +1 -1
  25. package/dist/features/chapters/chapter/comps/supplementary-resources/supplementary-resources.js +2 -2
  26. package/dist/features/chapters/chapter/comps/supplementary-resources/supplementary-resources.js.map +1 -1
  27. package/dist/features/chapters/lpar-chapter/block-section/chapter-block/chapter-block-header.js +2 -2
  28. package/dist/features/chapters/lpar-chapter/block-section/chapter-block/chapter-block-header.js.map +1 -1
  29. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js +1 -1
  30. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js.map +1 -1
  31. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/question-overview.js +3 -3
  32. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/question-overview.js.map +1 -1
  33. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js +1 -1
  34. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js.map +1 -1
  35. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/summary-module.js +1 -1
  36. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/summary-module.js.map +1 -1
  37. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/student-actions/student-actions.js +1 -1
  38. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/student-actions/student-actions.js.map +1 -1
  39. package/dist/features/chapters/lpar-chapter/block-section/sheet-item/context-menu-helper/menu-element.js +1 -1
  40. package/dist/features/chapters/lpar-chapter/block-section/sheet-item/context-menu-helper/menu-element.js.map +1 -1
  41. package/dist/features/chapters/lpar-chapter/block-section/sheet-item/sheet-item.js +1 -1
  42. package/dist/features/chapters/lpar-chapter/block-section/sheet-item/sheet-item.js.map +1 -1
  43. package/dist/features/chapters/lpar-chapter/comps/chapter-progress.js +1 -1
  44. package/dist/features/chapters/lpar-chapter/comps/chapter-progress.js.map +1 -1
  45. package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-card/cue-coins.js +1 -1
  46. package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-card/cue-coins.js.map +1 -1
  47. package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-card/puzzle-card.js +3 -3
  48. package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-card/puzzle-card.js.map +1 -1
  49. package/dist/features/chapters/lpar-milestone-chapter/block-section/sheet-item/sheet-info.js +2 -2
  50. package/dist/features/chapters/lpar-milestone-chapter/block-section/sheet-item/sheet-info.js.map +1 -1
  51. package/dist/features/chapters/lpar-milestone-chapter/puzzle-section/puzzle-card.js +3 -3
  52. package/dist/features/chapters/lpar-milestone-chapter/puzzle-section/puzzle-card.js.map +1 -1
  53. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-option.js +1 -1
  54. package/dist/features/chapters-v2/comps/node-card/node-menu-options/node-menu-option.js.map +1 -1
  55. package/dist/features/chapters-v2/comps/sat-mock-test/sat-mock-test.js +3 -3
  56. package/dist/features/chapters-v2/comps/sat-mock-test/sat-mock-test.js.map +1 -1
  57. package/dist/features/chapters-v2/utils/node-card-utils.js +2 -2
  58. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
  59. package/dist/features/circle-games/about-game-activities/about-game-activities.js +1 -1
  60. package/dist/features/circle-games/about-game-activities/about-game-activities.js.map +1 -1
  61. package/dist/features/circle-games/game-launcher/comps/carousel-stats/single-carousel-stat/single-carousel-stat.js +1 -1
  62. package/dist/features/circle-games/game-launcher/comps/carousel-stats/single-carousel-stat/single-carousel-stat.js.map +1 -1
  63. package/dist/features/circle-games/sign-up/sign-up.js +2 -2
  64. package/dist/features/circle-games/sign-up/sign-up.js.map +1 -1
  65. package/dist/features/cue-canvas/bottombar/homework-controls.js +1 -1
  66. package/dist/features/cue-canvas/bottombar/homework-controls.js.map +1 -1
  67. package/dist/features/cue-canvas/sidebar/homework/homework-request.js +2 -2
  68. package/dist/features/cue-canvas/sidebar/homework/homework-request.js.map +1 -1
  69. package/dist/features/cue-canvas/sidebar/homework/homework.js +1 -1
  70. package/dist/features/cue-canvas/sidebar/homework/homework.js.map +1 -1
  71. package/dist/features/cue-canvas/sidebar/puzzles/filter-selection-menu.js +1 -1
  72. package/dist/features/cue-canvas/sidebar/puzzles/filter-selection-menu.js.map +1 -1
  73. package/dist/features/cue-canvas/sidebar/puzzles/filters-section.js +1 -1
  74. package/dist/features/cue-canvas/sidebar/puzzles/filters-section.js.map +1 -1
  75. package/dist/features/cue-canvas/sidebar/puzzles/launch-puzzle.js +1 -1
  76. package/dist/features/cue-canvas/sidebar/puzzles/launch-puzzle.js.map +1 -1
  77. package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu-header.js +1 -1
  78. package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu-header.js.map +1 -1
  79. package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu.js +1 -1
  80. package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu.js.map +1 -1
  81. package/dist/features/extra-practice/list/list.js +1 -1
  82. package/dist/features/extra-practice/list/list.js.map +1 -1
  83. package/dist/features/homework/homework-card-view.js +1 -1
  84. package/dist/features/homework/homework-card-view.js.map +1 -1
  85. package/dist/features/journey/hooks/use-mathfit-assigned-journey/mathfit-assessment-tooltip.js +2 -2
  86. package/dist/features/journey/hooks/use-mathfit-assigned-journey/mathfit-assessment-tooltip.js.map +1 -1
  87. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js +1 -1
  88. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js.map +1 -1
  89. package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js +1 -1
  90. package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js.map +1 -1
  91. package/dist/features/maintenance/maintenance.js +1 -1
  92. package/dist/features/maintenance/maintenance.js.map +1 -1
  93. package/dist/features/math-fit/math-fit-card/math-fit-card.js +1 -1
  94. package/dist/features/math-fit/math-fit-card/math-fit-card.js.map +1 -1
  95. package/dist/features/math-fit/math-fit-overview/comps/stat-item/stat-item.js +1 -1
  96. package/dist/features/math-fit/math-fit-overview/comps/stat-item/stat-item.js.map +1 -1
  97. package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js +1 -1
  98. package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js.map +1 -1
  99. package/dist/features/math-fit/math-fit-report/math-fit-report.js +3 -3
  100. package/dist/features/math-fit/math-fit-report/math-fit-report.js.map +1 -1
  101. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapters-list.js +2 -2
  102. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapters-list.js.map +1 -1
  103. package/dist/features/milestone/create/comps/confirmation-modals/goal-creation-confirmation.js +1 -1
  104. package/dist/features/milestone/create/comps/confirmation-modals/goal-creation-confirmation.js.map +1 -1
  105. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js +2 -2
  106. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js.map +1 -1
  107. package/dist/features/milestone/create/submit-modal/submit-with-plan-modal/submit-with-plan-modal.js +5 -5
  108. package/dist/features/milestone/create/submit-modal/submit-with-plan-modal/submit-with-plan-modal.js.map +1 -1
  109. package/dist/features/milestone/edit/comps/delete-milestone/confirm-delete.js +3 -3
  110. package/dist/features/milestone/edit/comps/delete-milestone/confirm-delete.js.map +1 -1
  111. package/dist/features/milestone/edit/comps/edit-milestone-modal/edit-milestone.js +2 -2
  112. package/dist/features/milestone/edit/comps/edit-milestone-modal/edit-milestone.js.map +1 -1
  113. package/dist/features/milestone/milestone-action-widget/milestone-action-widget.js +2 -2
  114. package/dist/features/milestone/milestone-action-widget/milestone-action-widget.js.map +1 -1
  115. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js +1 -1
  116. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/goals/goal-action-ctas.js.map +1 -1
  117. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js +1 -1
  118. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js.map +1 -1
  119. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +1 -1
  120. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
  121. package/dist/features/milestone/milestone-resources/resources-assign/added-resource-and-filters.js +2 -2
  122. package/dist/features/milestone/milestone-resources/resources-assign/added-resource-and-filters.js.map +1 -1
  123. package/dist/features/milestone/milestone-resources/resources-assign/comps/resource-item/resource-item.js +1 -1
  124. package/dist/features/milestone/milestone-resources/resources-assign/comps/resource-item/resource-item.js.map +1 -1
  125. package/dist/features/milestone/milestone-resources/resources-assign/resource-items/resource-items.js +1 -1
  126. package/dist/features/milestone/milestone-resources/resources-assign/resource-items/resource-items.js.map +1 -1
  127. package/dist/features/milestone/outcome/comps/achievement/achievement-constants.js +3 -3
  128. package/dist/features/milestone/outcome/comps/achievement/achievement-constants.js.map +1 -1
  129. package/dist/features/milestone/outcome/comps/outcome-collection/input-descriptor.js +2 -2
  130. package/dist/features/milestone/outcome/comps/outcome-collection/input-descriptor.js.map +1 -1
  131. package/dist/features/milestone/outcome/comps/outcome-collection/rank-inputs/index.js +1 -1
  132. package/dist/features/milestone/outcome/comps/outcome-collection/rank-inputs/index.js.map +1 -1
  133. package/dist/features/milestone/outcome/comps/past-milestone/question.js +1 -1
  134. package/dist/features/milestone/outcome/comps/past-milestone/question.js.map +1 -1
  135. package/dist/features/milestone/outcome/milestone-outcome-container.js +1 -1
  136. package/dist/features/milestone/outcome/milestone-outcome-container.js.map +1 -1
  137. package/dist/features/notification/notification.js +1 -1
  138. package/dist/features/notification/notification.js.map +1 -1
  139. package/dist/features/parent-dashboard/comps/billing-information/billing-information.js +3 -3
  140. package/dist/features/parent-dashboard/comps/billing-information/billing-information.js.map +1 -1
  141. package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features.js +2 -2
  142. package/dist/features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features.js.map +1 -1
  143. package/dist/features/parent-dashboard/comps/next-steps/next-steps.js +1 -1
  144. package/dist/features/parent-dashboard/comps/next-steps/next-steps.js.map +1 -1
  145. package/dist/features/parent-dashboard/comps/session-status/session-status-constants.js +4 -4
  146. package/dist/features/parent-dashboard/comps/session-status/session-status-constants.js.map +1 -1
  147. package/dist/features/parent-dashboard/comps/session-status/session-status.js +2 -2
  148. package/dist/features/parent-dashboard/comps/session-status/session-status.js.map +1 -1
  149. package/dist/features/parent-dashboard/comps/session-summary/summary-card/summary-card.js +1 -1
  150. package/dist/features/parent-dashboard/comps/session-summary/summary-card/summary-card.js.map +1 -1
  151. package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions.js +1 -1
  152. package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions.js.map +1 -1
  153. package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js +4 -4
  154. package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js.map +1 -1
  155. package/dist/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js +1 -1
  156. package/dist/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js.map +1 -1
  157. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason.js +2 -2
  158. package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason.js.map +1 -1
  159. package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js +2 -2
  160. package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js.map +1 -1
  161. package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js +3 -3
  162. package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js.map +1 -1
  163. package/dist/features/parent-dashboard/modals/view-payment-method/view-payment-method.js +2 -2
  164. package/dist/features/parent-dashboard/modals/view-payment-method/view-payment-method.js.map +1 -1
  165. package/dist/features/parent-dashboard/parent-dashboard-view.js +1 -1
  166. package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -1
  167. package/dist/features/puzzles/puzzle-container/puzzle-container-view.js +1 -1
  168. package/dist/features/puzzles/puzzle-container/puzzle-container-view.js.map +1 -1
  169. package/dist/features/sheet-tools/tool-header/tool-header.js +1 -1
  170. package/dist/features/sheet-tools/tool-header/tool-header.js.map +1 -1
  171. package/dist/features/sheets/comps/sheet-button/index.js +1 -1
  172. package/dist/features/sheets/comps/sheet-button/index.js.map +1 -1
  173. package/dist/features/sheets/lessons-list/lesson-item/context-menu-helper/menu-element.js +1 -1
  174. package/dist/features/sheets/lessons-list/lesson-item/context-menu-helper/menu-element.js.map +1 -1
  175. package/dist/features/sheets/reference-sheet/reference-sheet.js +1 -1
  176. package/dist/features/sheets/reference-sheet/reference-sheet.js.map +1 -1
  177. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/context-menu-helper/menu-element/menu-element.js +1 -1
  178. package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/context-menu-helper/menu-element/menu-element.js.map +1 -1
  179. package/dist/features/student-details/wins-preview/wins-preview.js +1 -1
  180. package/dist/features/student-details/wins-preview/wins-preview.js.map +1 -1
  181. package/dist/features/talk-meter/talk-meter-view/talk-meter-view.js +4 -4
  182. package/dist/features/talk-meter/talk-meter-view/talk-meter-view.js.map +1 -1
  183. package/dist/features/timeline/comps/new-progress-intro-modal/new-progress-intro-modal.js +3 -3
  184. package/dist/features/timeline/comps/new-progress-intro-modal/new-progress-intro-modal.js.map +1 -1
  185. package/dist/features/timeline/daily-timeline/comps/accordion-item/accordion-item.js +4 -4
  186. package/dist/features/timeline/daily-timeline/comps/accordion-item/accordion-item.js.map +1 -1
  187. package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js +2 -2
  188. package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js.map +1 -1
  189. package/dist/features/timeline/monthly-timeline/monthly-report/comps/achievements/achievements.js +1 -1
  190. package/dist/features/timeline/monthly-timeline/monthly-report/comps/achievements/achievements.js.map +1 -1
  191. package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card/activities-card.js +3 -3
  192. package/dist/features/timeline/monthly-timeline/monthly-report/comps/activities/activities-card/activities-card.js.map +1 -1
  193. package/dist/features/timeline/monthly-timeline/monthly-report/comps/attendance/attendance.js +2 -2
  194. package/dist/features/timeline/monthly-timeline/monthly-report/comps/attendance/attendance.js.map +1 -1
  195. package/dist/features/timeline/monthly-timeline/monthly-report/comps/goals/goals-card/goal-chapter-card.js +2 -2
  196. package/dist/features/timeline/monthly-timeline/monthly-report/comps/goals/goals-card/goal-chapter-card.js.map +1 -1
  197. package/dist/features/timeline/monthly-timeline/monthly-report/comps/goals/goals-card/goals-card.js +1 -1
  198. package/dist/features/timeline/monthly-timeline/monthly-report/comps/goals/goals-card/goals-card.js.map +1 -1
  199. package/dist/features/timeline/monthly-timeline/ptm-report/comps/real-world-projects/real-world-projects.js +4 -4
  200. package/dist/features/timeline/monthly-timeline/ptm-report/comps/real-world-projects/real-world-projects.js.map +1 -1
  201. package/dist/features/timeline/monthly-timeline/ptm-report/comps/report-card/report-card.js +1 -1
  202. package/dist/features/timeline/monthly-timeline/ptm-report/comps/report-card/report-card.js.map +1 -1
  203. package/dist/features/timeline/monthly-timeline/ptm-report/comps/school-support/school-support.js +1 -1
  204. package/dist/features/timeline/monthly-timeline/ptm-report/comps/school-support/school-support.js.map +1 -1
  205. package/dist/features/timeline/monthly-timeline/ptm-report/comps/strategy-card/strategy-card.js +2 -2
  206. package/dist/features/timeline/monthly-timeline/ptm-report/comps/strategy-card/strategy-card.js.map +1 -1
  207. package/dist/features/timeline/monthly-timeline/ptm-report/comps/student-info/student-info.js +1 -1
  208. package/dist/features/timeline/monthly-timeline/ptm-report/comps/student-info/student-info.js.map +1 -1
  209. package/dist/features/timeline/monthly-timeline/ptm-report/comps/support-card/support-card.js +2 -2
  210. package/dist/features/timeline/monthly-timeline/ptm-report/comps/support-card/support-card.js.map +1 -1
  211. package/dist/features/timeline/monthly-timeline/ptm-report/comps/upcoming-chapters/upcoming-chapters.js +1 -1
  212. package/dist/features/timeline/monthly-timeline/ptm-report/comps/upcoming-chapters/upcoming-chapters.js.map +1 -1
  213. package/dist/features/trial-session/comps/av-panels/student-av-panel/student-av-panel.js +1 -1
  214. package/dist/features/trial-session/comps/av-panels/student-av-panel/student-av-panel.js.map +1 -1
  215. package/dist/features/trial-session/comps/cue-tips/cues/index.js +1 -1
  216. package/dist/features/trial-session/comps/cue-tips/cues/index.js.map +1 -1
  217. package/dist/features/trial-session/comps/cue-tips/tips/index.js +2 -2
  218. package/dist/features/trial-session/comps/cue-tips/tips/index.js.map +1 -1
  219. package/dist/features/trial-session/comps/pricing/india-pricing/index.js +3 -3
  220. package/dist/features/trial-session/comps/pricing/india-pricing/index.js.map +1 -1
  221. package/dist/features/trial-session/comps/pricing/pricing-cards.js +8 -8
  222. package/dist/features/trial-session/comps/pricing/pricing-cards.js.map +1 -1
  223. package/dist/features/trial-session/comps/session-insights/session-insights.js +2 -2
  224. package/dist/features/trial-session/comps/session-insights/session-insights.js.map +1 -1
  225. package/dist/features/trial-session/comps/session-overview/session-overview.js +1 -1
  226. package/dist/features/trial-session/comps/session-overview/session-overview.js.map +1 -1
  227. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js +6 -6
  228. package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js.map +1 -1
  229. package/dist/features/trial-session/comps/session-report/report-information/report-information.js +2 -2
  230. package/dist/features/trial-session/comps/session-report/report-information/report-information.js.map +1 -1
  231. package/dist/features/trial-session/comps/slide-header/index.js +1 -1
  232. package/dist/features/trial-session/comps/slide-header/index.js.map +1 -1
  233. package/dist/features/trial-session/comps/solutions/index.js +1 -1
  234. package/dist/features/trial-session/comps/solutions/index.js.map +1 -1
  235. package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js +1 -1
  236. package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js.map +1 -1
  237. package/dist/features/trial-session/comps/student-info/student-info.js +1 -1
  238. package/dist/features/trial-session/comps/student-info/student-info.js.map +1 -1
  239. package/dist/features/trial-session/comps/student-profile/student-profile.js +1 -1
  240. package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
  241. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js +3 -3
  242. package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map +1 -1
  243. package/dist/features/trial-session/comps/test-prep/test-prep.js +1 -1
  244. package/dist/features/trial-session/comps/test-prep/test-prep.js.map +1 -1
  245. package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game-launch-screen/trial-circle-game-launch-screen.js +2 -2
  246. package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game-launch-screen/trial-circle-game-launch-screen.js.map +1 -1
  247. package/dist/features/trial-session/left-panel/index.js +2 -2
  248. package/dist/features/trial-session/left-panel/index.js.map +1 -1
  249. package/dist/features/trial-session/right-panel/index.js +1 -1
  250. package/dist/features/trial-session/right-panel/index.js.map +1 -1
  251. package/dist/features/ui/accordion/accordion-items/accordion-items.js +2 -2
  252. package/dist/features/ui/accordion/accordion-items/accordion-items.js.map +1 -1
  253. package/dist/features/ui/accordion/accordion.js +1 -1
  254. package/dist/features/ui/accordion/accordion.js.map +1 -1
  255. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +1 -1
  256. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  257. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js +1 -1
  258. package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js.map +1 -1
  259. package/dist/features/ui/callout/callout.js +1 -1
  260. package/dist/features/ui/callout/callout.js.map +1 -1
  261. package/dist/features/ui/error/error.js +3 -3
  262. package/dist/features/ui/error/error.js.map +1 -1
  263. package/dist/features/ui/inputs/base-input/base-input.js +2 -2
  264. package/dist/features/ui/inputs/base-input/base-input.js.map +1 -1
  265. package/dist/features/ui/inputs/base-select-input/select-option/select-option.js +1 -1
  266. package/dist/features/ui/inputs/base-select-input/select-option/select-option.js.map +1 -1
  267. package/dist/features/ui/inputs/base-select-input/select-section/select-section.js +1 -1
  268. package/dist/features/ui/inputs/base-select-input/select-section/select-section.js.map +1 -1
  269. package/dist/features/ui/inputs/num-range-input/num-range-input.js +1 -1
  270. package/dist/features/ui/inputs/num-range-input/num-range-input.js.map +1 -1
  271. package/dist/features/ui/inputs/radio-input/radio-option/radio-option.js +1 -1
  272. package/dist/features/ui/inputs/radio-input/radio-option/radio-option.js.map +1 -1
  273. package/dist/features/ui/radio-cards/radio-card-option/radio-card-option.js +1 -1
  274. package/dist/features/ui/radio-cards/radio-card-option/radio-card-option.js.map +1 -1
  275. package/dist/features/ui/stepper/stepper.js +2 -2
  276. package/dist/features/ui/stepper/stepper.js.map +1 -1
  277. package/dist/features/ui/tag/tag.js +1 -1
  278. package/dist/features/ui/tag/tag.js.map +1 -1
  279. package/dist/features/ui/text/text.js.map +1 -1
  280. package/dist/features/ui/theme/button.js +5 -5
  281. package/dist/features/ui/theme/button.js.map +1 -1
  282. package/dist/features/ui/theme/checkbox.js +9 -9
  283. package/dist/features/ui/theme/checkbox.js.map +1 -1
  284. package/dist/features/ui/theme/input.js +9 -9
  285. package/dist/features/ui/theme/input.js.map +1 -1
  286. package/dist/features/ui/theme/tab.js +4 -4
  287. package/dist/features/ui/theme/tab.js.map +1 -1
  288. package/dist/features/ui/theme/tabs.js +8 -8
  289. package/dist/features/ui/theme/tabs.js.map +1 -1
  290. package/dist/features/ui/theme/text-button.js +3 -3
  291. package/dist/features/ui/theme/text-button.js.map +1 -1
  292. package/dist/features/ui/theme/text.js +15 -5
  293. package/dist/features/ui/theme/text.js.map +1 -1
  294. package/dist/features/ui/time-left-timeline/time-left-timeline.js +1 -1
  295. package/dist/features/ui/time-left-timeline/time-left-timeline.js.map +1 -1
  296. package/dist/features/wins-dashboard/belts-elements-stickers/belts.js +2 -2
  297. package/dist/features/wins-dashboard/belts-elements-stickers/belts.js.map +1 -1
  298. package/dist/features/wins-dashboard/belts-elements-stickers/elements.js +2 -2
  299. package/dist/features/wins-dashboard/belts-elements-stickers/elements.js.map +1 -1
  300. package/dist/features/wins-dashboard/student-badges/student-badge.js +3 -3
  301. package/dist/features/wins-dashboard/student-badges/student-badge.js.map +1 -1
  302. package/dist/features/worksheet/worksheet/stories/worksheet-student.js +1 -1
  303. package/dist/features/worksheet/worksheet/stories/worksheet-student.js.map +1 -1
  304. package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js +1 -1
  305. package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js.map +1 -1
  306. package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-item-number/worksheet-item-number.js +1 -1
  307. package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-item-number/worksheet-item-number.js.map +1 -1
  308. package/dist/features/worksheet/worksheet/worksheet-nudge-banner/worksheet-nudge-banner.js +1 -1
  309. package/dist/features/worksheet/worksheet/worksheet-nudge-banner/worksheet-nudge-banner.js.map +1 -1
  310. package/dist/features/worksheet/worksheet/worksheet-question/header/header.js +3 -3
  311. package/dist/features/worksheet/worksheet/worksheet-question/header/header.js.map +1 -1
  312. package/dist/features/worksheet/worksheet/worksheet-question/subjective-feedback.js +5 -5
  313. package/dist/features/worksheet/worksheet/worksheet-question/subjective-feedback.js.map +1 -1
  314. package/dist/features/worksheet/worksheet/worksheet-question/subjective-review.js +6 -6
  315. package/dist/features/worksheet/worksheet/worksheet-question/subjective-review.js.map +1 -1
  316. package/dist/features/worksheet/worksheet/worksheet-questions-summary/worksheet-questions-summary.js +1 -1
  317. package/dist/features/worksheet/worksheet/worksheet-questions-summary/worksheet-questions-summary.js.map +1 -1
  318. package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +1 -1
  319. package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
  320. package/dist/index.d.ts +2 -2
  321. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.js","sources":["../../../../src/features/ui/accordion/accordion.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useState, memo } from 'react';\n\nimport FlexView from '../layout/flex-view';\nimport Separator from '../separator/separator';\nimport Text from '../text/text';\nimport AccordionItem from './accordion-items/accordion-items';\nimport type { AccordionProps } from './accordion-types';\n\nconst Accordion = memo<AccordionProps>(function Accordion(props) {\n const { theme = 'light', visibleBuffer, accordionData, defaultOpenElement = -1 } = props;\n const [visible, setVisible] = useState(visibleBuffer);\n const [openIndex, setOpenIndex] = useState<number>(defaultOpenElement);\n const refList = useMemo<(HTMLDivElement | null)[]>(() => [], []);\n const iconRef = useMemo<(SVGSVGElement | null)[]>(() => [], []);\n const isDarkTheme = theme === 'dark';\n\n const handleShowToggle = useCallback(() => {\n setVisible(prev => (prev < accordionData.length ? accordionData.length : visibleBuffer));\n }, [accordionData.length, visibleBuffer]);\n\n const animateElement = useCallback((element: HTMLElement | SVGElement, isOpen: boolean) => {\n if (element instanceof HTMLDivElement) {\n element.style.maxHeight = isOpen ? `${element.scrollHeight}px` : '0px';\n } else if (element instanceof SVGSVGElement) {\n element.style.transform = isOpen ? 'rotateZ(45deg)' : 'rotateZ(0deg)';\n }\n }, []);\n\n const handleToggle = useCallback(\n (currentIndex: number) => {\n const currentRefList = refList[currentIndex];\n const currentIconRef = iconRef[currentIndex];\n\n if (!currentRefList || !currentIconRef) return;\n\n const isCurrentlyOpen = openIndex === currentIndex;\n const newOpenIndex = isCurrentlyOpen ? -1 : currentIndex;\n\n // Close previously open item\n if (openIndex !== -1 && openIndex !== currentIndex) {\n const prevRef = refList[openIndex];\n const prevIcon = iconRef[openIndex];\n\n if (prevRef && prevIcon) {\n animateElement(prevRef, false);\n animateElement(prevIcon, false);\n }\n }\n\n // Toggle current item\n animateElement(currentRefList, !isCurrentlyOpen);\n animateElement(currentIconRef, !isCurrentlyOpen);\n\n setOpenIndex(newOpenIndex);\n },\n [refList, iconRef, openIndex, animateElement],\n );\n\n useEffect(() => {\n setVisible(visibleBuffer);\n }, [visibleBuffer]);\n\n useEffect(() => {\n if (openIndex !== -1 && refList[openIndex] && iconRef[openIndex]) {\n animateElement(refList[openIndex]!, true);\n animateElement(iconRef[openIndex]!, true);\n }\n }, [visible, openIndex, refList, iconRef, animateElement]);\n\n return (\n <FlexView $flexDirection=\"column\">\n {accordionData.map((item, index) => (\n <AccordionItem\n key={`${item.accordionQuestion}-${index}`}\n item={item}\n index={index}\n handleToggle={handleToggle}\n refList={refList}\n iconRef={iconRef}\n visible={index < visible}\n theme={theme}\n />\n ))}\n <Separator height={24} />\n <Text\n $renderAs=\"ub3-bold\"\n $align=\"center\"\n $textDecoration=\"underline\"\n $marginBottom={24}\n onClick={handleShowToggle}\n $color={isDarkTheme ? 'WHITE' : 'BLACK'}\n $cursor=\"pointer\"\n >\n {visible < accordionData.length ? 'See More' : 'See Less'}\n </Text>\n </FlexView>\n );\n});\n\nexport default Accordion;\n"],"names":["Accordion","memo","props","theme","visibleBuffer","accordionData","defaultOpenElement","visible","setVisible","useState","openIndex","setOpenIndex","refList","useMemo","iconRef","isDarkTheme","handleShowToggle","useCallback","prev","animateElement","element","isOpen","handleToggle","currentIndex","currentRefList","currentIconRef","isCurrentlyOpen","newOpenIndex","prevRef","prevIcon","useEffect","jsxs","FlexView","item","index","jsx","AccordionItem","Separator","Text","Accordion$1"],"mappings":";;;;;;AAQA,MAAMA,IAAYC,EAAqB,SAAmBC,GAAO;AAC/D,QAAM,EAAE,OAAAC,IAAQ,SAAS,eAAAC,GAAe,eAAAC,GAAe,oBAAAC,IAAqB,GAAO,IAAAJ,GAC7E,CAACK,GAASC,CAAU,IAAIC,EAASL,CAAa,GAC9C,CAACM,GAAWC,CAAY,IAAIF,EAAiBH,CAAkB,GAC/DM,IAAUC,EAAmC,MAAM,CAAC,GAAG,CAAE,CAAA,GAC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I;AAAA,EAC1C,GACC,CAACH,GAASG,GAAWE,GAASE,GAASK,CAAc,CAAC,GAGvD,gBAAAY,EAACC,GAAS,EAAA,gBAAe,UACtB,UAAA;AAAA,IAAc3B,EAAA,IAAI,CAAC4B,GAAMC,MACxB,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QAEC,MAAAH;AAAA,QACA,OAAAC;AAAA,QACA,cAAAZ;AAAA,QACA,SAAAV;AAAA,QACA,SAAAE;AAAA,QACA,SAASoB,IAAQ3B;AAAA,QACjB,OAAAJ;AAAA,MAAA;AAAA,MAPK,GAAG8B,EAAK,iBAAiB,IAAIC,CAAK;AAAA,IAAA,CAS1C;AAAA,IACD,gBAAAC,EAACE,GAAU,EAAA,QAAQ,GAAI,CAAA;AAAA,IACvB,gBAAAF;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,QAAO;AAAA,QACP,iBAAgB;AAAA,QAChB,eAAe;AAAA,QACf,SAAStB;AAAA,QACT,QAAQD,IAAc,UAAU;AAAA,QAChC,SAAQ;AAAA,QAEP,UAAAR,IAAUF,EAAc,SAAS,aAAa;AAAA,MAAA;AAAA,IACjD;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC,GAEDkC,IAAevC;"}
1
+ {"version":3,"file":"accordion.js","sources":["../../../../src/features/ui/accordion/accordion.tsx"],"sourcesContent":["import { useCallback, useEffect, useMemo, useState, memo } from 'react';\n\nimport FlexView from '../layout/flex-view';\nimport Separator from '../separator/separator';\nimport Text from '../text/text';\nimport AccordionItem from './accordion-items/accordion-items';\nimport type { AccordionProps } from './accordion-types';\n\nconst Accordion = memo<AccordionProps>(function Accordion(props) {\n const { theme = 'light', visibleBuffer, accordionData, defaultOpenElement = -1 } = props;\n const [visible, setVisible] = useState(visibleBuffer);\n const [openIndex, setOpenIndex] = useState<number>(defaultOpenElement);\n const refList = useMemo<(HTMLDivElement | null)[]>(() => [], []);\n const iconRef = useMemo<(SVGSVGElement | null)[]>(() => [], []);\n const isDarkTheme = theme === 'dark';\n\n const handleShowToggle = useCallback(() => {\n setVisible(prev => (prev < accordionData.length ? accordionData.length : visibleBuffer));\n }, [accordionData.length, visibleBuffer]);\n\n const animateElement = useCallback((element: HTMLElement | SVGElement, isOpen: boolean) => {\n if (element instanceof HTMLDivElement) {\n element.style.maxHeight = isOpen ? `${element.scrollHeight}px` : '0px';\n } else if (element instanceof SVGSVGElement) {\n element.style.transform = isOpen ? 'rotateZ(45deg)' : 'rotateZ(0deg)';\n }\n }, []);\n\n const handleToggle = useCallback(\n (currentIndex: number) => {\n const currentRefList = refList[currentIndex];\n const currentIconRef = iconRef[currentIndex];\n\n if (!currentRefList || !currentIconRef) return;\n\n const isCurrentlyOpen = openIndex === currentIndex;\n const newOpenIndex = isCurrentlyOpen ? -1 : currentIndex;\n\n // Close previously open item\n if (openIndex !== -1 && openIndex !== currentIndex) {\n const prevRef = refList[openIndex];\n const prevIcon = iconRef[openIndex];\n\n if (prevRef && prevIcon) {\n animateElement(prevRef, false);\n animateElement(prevIcon, false);\n }\n }\n\n // Toggle current item\n animateElement(currentRefList, !isCurrentlyOpen);\n animateElement(currentIconRef, !isCurrentlyOpen);\n\n setOpenIndex(newOpenIndex);\n },\n [refList, iconRef, openIndex, animateElement],\n );\n\n useEffect(() => {\n setVisible(visibleBuffer);\n }, [visibleBuffer]);\n\n useEffect(() => {\n if (openIndex !== -1 && refList[openIndex] && iconRef[openIndex]) {\n animateElement(refList[openIndex]!, true);\n animateElement(iconRef[openIndex]!, true);\n }\n }, [visible, openIndex, refList, iconRef, animateElement]);\n\n return (\n <FlexView $flexDirection=\"column\">\n {accordionData.map((item, index) => (\n <AccordionItem\n key={`${item.accordionQuestion}-${index}`}\n item={item}\n index={index}\n handleToggle={handleToggle}\n refList={refList}\n iconRef={iconRef}\n visible={index < visible}\n theme={theme}\n />\n ))}\n <Separator height={24} />\n <Text\n $renderAs=\"ub4-bold\"\n $align=\"center\"\n $textDecoration=\"underline\"\n $marginBottom={24}\n onClick={handleShowToggle}\n $color={isDarkTheme ? 'WHITE' : 'BLACK'}\n $cursor=\"pointer\"\n >\n {visible < accordionData.length ? 'See More' : 'See Less'}\n </Text>\n </FlexView>\n );\n});\n\nexport default Accordion;\n"],"names":["Accordion","memo","props","theme","visibleBuffer","accordionData","defaultOpenElement","visible","setVisible","useState","openIndex","setOpenIndex","refList","useMemo","iconRef","isDarkTheme","handleShowToggle","useCallback","prev","animateElement","element","isOpen","handleToggle","currentIndex","currentRefList","currentIconRef","isCurrentlyOpen","newOpenIndex","prevRef","prevIcon","useEffect","jsxs","FlexView","item","index","jsx","AccordionItem","Separator","Text","Accordion$1"],"mappings":";;;;;;AAQA,MAAMA,IAAYC,EAAqB,SAAmBC,GAAO;AAC/D,QAAM,EAAE,OAAAC,IAAQ,SAAS,eAAAC,GAAe,eAAAC,GAAe,oBAAAC,IAAqB,GAAO,IAAAJ,GAC7E,CAACK,GAASC,CAAU,IAAIC,EAASL,CAAa,GAC9C,CAACM,GAAWC,CAAY,IAAIF,EAAiBH,CAAkB,GAC/DM,IAAUC,EAAmC,MAAM,CAAC,GAAG,CAAE,CAAA,GACzDC,IAAUD,EAAkC,MAAM,CAAC,GAAG,CAAE,CAAA,GACxDE,IAAcZ,MAAU,QAExBa,IAAmBC,EAAY,MAAM;AACzC,IAAAT,EAAW,OAASU,IAAOb,EAAc,SAASA,EAAc,SAASD,CAAc;AAAA,EACtF,GAAA,CAACC,EAAc,QAAQD,CAAa,CAAC,GAElCe,IAAiBF,EAAY,CAACG,GAAmCC,MAAoB;AACzF,IAAID,aAAmB,iBACrBA,EAAQ,MAAM,YAAYC,IAAS,GAAGD,EAAQ,YAAY,OAAO,QACxDA,aAAmB,kBACpBA,EAAA,MAAM,YAAYC,IAAS,mBAAmB;AAAA,EAE1D,GAAG,CAAE,CAAA,GAECC,IAAeL;AAAA,IACnB,CAACM,MAAyB;AAClB,YAAAC,IAAiBZ,EAAQW,CAAY,GACrCE,IAAiBX,EAAQS,CAAY;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ACC,WAAU;AAAA,QACV,QAAO;AAAA,QACP,iBAAgB;AAAA,QAChB,eAAe;AAAA,QACf,SAAStB;AAAA,QACT,QAAQD,IAAc,UAAU;AAAA,QAChC,SAAQ;AAAA,QAEP,UAAAR,IAAUF,EAAc,SAAS,aAAa;AAAA,MAAA;AAAA,IACjD;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC,GAEDkC,IAAevC;"}
@@ -76,7 +76,7 @@ const Q = ({
76
76
  $isAnimated: C,
77
77
  $width: b,
78
78
  $widthX: k,
79
- textVariant: L || "ub3",
79
+ textVariant: L || "ub4",
80
80
  children: g
81
81
  }
82
82
  );
@@ -1 +1 @@
1
- {"version":3,"file":"arrow-tooltip.js","sources":["../../../../src/features/ui/arrow-tooltip/arrow-tooltip.tsx"],"sourcesContent":["import throttle from 'lodash.throttle';\nimport { useState, type FC, useCallback, useRef, useEffect, memo } from 'react';\n\nimport FlexView from '../layout/flex-view';\nimport Portal from '../portal/portal';\nimport { DEFAULT_ARROW_SIZE, THROTTLE_DURATION } from './arrow-tooltip-constants';\nimport * as Styled from './arrow-tooltip-styled';\nimport type {\n IArrowTooltipProps,\n THandleVisibleNCoOrdinatesProps,\n TTooltipCoOrdinatesProps,\n} from './arrow-tooltip-types';\nimport { computeTooltipNewCoOrdinates } from './arrow-tooltip-util';\nimport TooltipBody from './comps/tooltip-body';\n\nconst ArrowTooltip: FC<IArrowTooltipProps> = ({\n isAnimated,\n alwaysVisible = false,\n arrowColor,\n arrowSize = DEFAULT_ARROW_SIZE,\n arrowXCoOrdinates,\n arrowYCoOrdinates,\n backgroundColor,\n borderColor,\n children,\n hidden,\n position,\n renderAs,\n textVariant,\n tooltipItem,\n tooltipOffset,\n tooltipXCoOrdinates,\n tooltipYCoOrdinates,\n width,\n widthX,\n zIndex,\n parentWidth,\n isBlocking = false,\n}) => {\n const tooltipWrapperRef = useRef<HTMLDivElement>(null);\n const [visible, setVisible] = useState(alwaysVisible);\n const [tooltipCoOrdinates, setTooltipCoOrdinates] = useState<TTooltipCoOrdinatesProps | null>(\n null,\n );\n\n const handleVisibleNCoOrdinates: THandleVisibleNCoOrdinatesProps = useCallback(\n (newCoOrdinates, visibility) => {\n setTooltipCoOrdinates(newCoOrdinates);\n setVisible(visibility);\n },\n [],\n );\n\n const handleVisibility = useCallback(() => {\n if (hidden || alwaysVisible) {\n return null;\n }\n\n handleVisibleNCoOrdinates(null, false);\n\n return;\n }, [alwaysVisible, handleVisibleNCoOrdinates, hidden]);\n\n const handleOnMouseEnter = throttle(() => {\n const { current } = tooltipWrapperRef;\n\n if (hidden || !current) return null;\n\n const boundingClientRect = current.children[0]?.getBoundingClientRect();\n const newCoOrdinates = boundingClientRect\n ? computeTooltipNewCoOrdinates(position, boundingClientRect)\n : null;\n\n handleVisibleNCoOrdinates(newCoOrdinates, true);\n\n return null;\n }, THROTTLE_DURATION);\n\n useEffect(() => {\n if (!alwaysVisible || hidden) return;\n\n window.addEventListener('scroll', handleOnMouseEnter, true);\n window.addEventListener('resize', handleOnMouseEnter);\n\n return () => {\n window.removeEventListener('scroll', handleOnMouseEnter, true);\n window.removeEventListener('resize', handleOnMouseEnter);\n };\n }, [alwaysVisible, hidden, position, handleOnMouseEnter]);\n\n useEffect(() => {\n if (hidden) {\n setVisible(false);\n }\n\n if (alwaysVisible) {\n handleOnMouseEnter();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [alwaysVisible, hidden]);\n\n const tooltipContent = (\n <TooltipBody\n $arrowSize={arrowSize}\n $arrowXCoOrdinates={arrowXCoOrdinates}\n $arrowYCoOrdinates={arrowYCoOrdinates}\n $position={position}\n $renderAs={renderAs}\n $tooltipCoOrdinates={tooltipCoOrdinates}\n $tooltipOffset={tooltipOffset}\n $tooltipXCoOrdinates={tooltipXCoOrdinates}\n $tooltipYCoOrdinates={tooltipYCoOrdinates}\n $zIndex={zIndex}\n $backgroundColor={backgroundColor}\n $arrowColor={arrowColor}\n $borderColor={borderColor}\n $isAnimated={isAnimated}\n $width={width}\n $widthX={widthX}\n textVariant={textVariant || 'ub3'}\n >\n {tooltipItem}\n </TooltipBody>\n );\n\n return (\n <>\n <FlexView\n $width={parentWidth || 'fit-content'}\n ref={tooltipWrapperRef}\n onMouseEnter={handleOnMouseEnter}\n onMouseLeave={handleVisibility}\n >\n <FlexView>{children}</FlexView>\n </FlexView>\n\n {visible && (\n <Portal portalId=\"tooltip-root\">\n {isBlocking ? (\n <Styled.BackgroundOverlay>{tooltipContent}</Styled.BackgroundOverlay>\n ) : (\n tooltipContent\n )}\n </Portal>\n )}\n </>\n );\n};\n\nexport default memo(ArrowTooltip);\n"],"names":["ArrowTooltip","isAnimated","alwaysVisible","arrowColor","arrowSize","DEFAULT_ARROW_SIZE","arrowXCoOrdinates","arrowYCoOrdinates","backgroundColor","borderColor","children","hidden","position","renderAs","textVariant","tooltipItem","tooltipOffset","tooltipXCoOrdinates","tooltipYCoOrdinates","width","widthX","zIndex","parentWidth","isBlocking","tooltipWrapperRef","useRef","visible","setVisible","useState","tooltipCoOrdinates","setTooltipCoOrdinates","handleVisibleNCoOrdinates","useCallback","newCoOrdinates","visibility","handleVisibility","handleOnMouseEnter","throttle","current","boundingClientRect","_a","computeTooltipNewCoOrdinates","THROTTLE_DURATION","useEffect","tooltipContent","jsx","TooltipBody","jsxs","Fragment","FlexView","Portal","Styled.BackgroundOverlay","ArrowTooltip$1","memo"],"mappings":";;;;;;;;;AAeA,MAAMA,IAAuC,CAAC;AAAA,EAC5C,YAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,YAAAC;AAAA,EACA,WAAAC,IAAYC;AAAA,EACZ,mBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,qBAAAC;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,CAAC;AAE1B,QAAMiC,IACJ,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,YAAY1C;AAAA,MACZ,oBAAoBE;AAAA,MACpB,oBAAoBC;AAAA,MACpB,WAAWK;AAAA,MACX,WAAWC;AAAA,MACX,qBAAqBgB;AAAA,MACrB,gBAAgBb;AAAA,MAChB,sBAAsBC;AAAA,MACtB,sBAAsBC;AAAA,MACtB,SAASG;AAAA,MACT,kBAAkBb;AAAA,MAClB,aAAaL;AAAA,MACb,cAAcM;AAAA,MACd,aAAaR;AAAA,MACb,QAAQkB;AAAA,MACR,SAASC;AAAA,MACT,aAAaN,KAAe;AAAA,MAE3B,UAAAC;AAAA,IAAA;AAAA,EAAA;AAIL,SAEI,gBAAAgC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAH;AAAA,MAACI;AAAA,MAAA;AAAA,QACC,QAAQ3B,KAAe;AAAA,QACvB,KAAKE;AAAA,QACL,cAAcY;AAAA,QACd,cAAcD;AAAA,QAEd,UAAA,gBAAAU,EAACI,KAAU,UAAAvC,EAAS,CAAA;AAAA,MAAA;AAAA,IACtB;AAAA,IAECgB,KACC,gBAAAmB,EAACK,GAAO,EAAA,UAAS,gBACd,UAAA3B,IACE,gBAAAsB,EAAAM,GAAA,EAA0B,UAAeP,EAAA,CAAA,IAE1CA,EAEJ,CAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ,GAEeQ,KAAAC,EAAKrD,CAAY;"}
1
+ {"version":3,"file":"arrow-tooltip.js","sources":["../../../../src/features/ui/arrow-tooltip/arrow-tooltip.tsx"],"sourcesContent":["import throttle from 'lodash.throttle';\nimport { useState, type FC, useCallback, useRef, useEffect, memo } from 'react';\n\nimport FlexView from '../layout/flex-view';\nimport Portal from '../portal/portal';\nimport { DEFAULT_ARROW_SIZE, THROTTLE_DURATION } from './arrow-tooltip-constants';\nimport * as Styled from './arrow-tooltip-styled';\nimport type {\n IArrowTooltipProps,\n THandleVisibleNCoOrdinatesProps,\n TTooltipCoOrdinatesProps,\n} from './arrow-tooltip-types';\nimport { computeTooltipNewCoOrdinates } from './arrow-tooltip-util';\nimport TooltipBody from './comps/tooltip-body';\n\nconst ArrowTooltip: FC<IArrowTooltipProps> = ({\n isAnimated,\n alwaysVisible = false,\n arrowColor,\n arrowSize = DEFAULT_ARROW_SIZE,\n arrowXCoOrdinates,\n arrowYCoOrdinates,\n backgroundColor,\n borderColor,\n children,\n hidden,\n position,\n renderAs,\n textVariant,\n tooltipItem,\n tooltipOffset,\n tooltipXCoOrdinates,\n tooltipYCoOrdinates,\n width,\n widthX,\n zIndex,\n parentWidth,\n isBlocking = false,\n}) => {\n const tooltipWrapperRef = useRef<HTMLDivElement>(null);\n const [visible, setVisible] = useState(alwaysVisible);\n const [tooltipCoOrdinates, setTooltipCoOrdinates] = useState<TTooltipCoOrdinatesProps | null>(\n null,\n );\n\n const handleVisibleNCoOrdinates: THandleVisibleNCoOrdinatesProps = useCallback(\n (newCoOrdinates, visibility) => {\n setTooltipCoOrdinates(newCoOrdinates);\n setVisible(visibility);\n },\n [],\n );\n\n const handleVisibility = useCallback(() => {\n if (hidden || alwaysVisible) {\n return null;\n }\n\n handleVisibleNCoOrdinates(null, false);\n\n return;\n }, [alwaysVisible, handleVisibleNCoOrdinates, hidden]);\n\n const handleOnMouseEnter = throttle(() => {\n const { current } = tooltipWrapperRef;\n\n if (hidden || !current) return null;\n\n const boundingClientRect = current.children[0]?.getBoundingClientRect();\n const newCoOrdinates = boundingClientRect\n ? computeTooltipNewCoOrdinates(position, boundingClientRect)\n : null;\n\n handleVisibleNCoOrdinates(newCoOrdinates, true);\n\n return null;\n }, THROTTLE_DURATION);\n\n useEffect(() => {\n if (!alwaysVisible || hidden) return;\n\n window.addEventListener('scroll', handleOnMouseEnter, true);\n window.addEventListener('resize', handleOnMouseEnter);\n\n return () => {\n window.removeEventListener('scroll', handleOnMouseEnter, true);\n window.removeEventListener('resize', handleOnMouseEnter);\n };\n }, [alwaysVisible, hidden, position, handleOnMouseEnter]);\n\n useEffect(() => {\n if (hidden) {\n setVisible(false);\n }\n\n if (alwaysVisible) {\n handleOnMouseEnter();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [alwaysVisible, hidden]);\n\n const tooltipContent = (\n <TooltipBody\n $arrowSize={arrowSize}\n $arrowXCoOrdinates={arrowXCoOrdinates}\n $arrowYCoOrdinates={arrowYCoOrdinates}\n $position={position}\n $renderAs={renderAs}\n $tooltipCoOrdinates={tooltipCoOrdinates}\n $tooltipOffset={tooltipOffset}\n $tooltipXCoOrdinates={tooltipXCoOrdinates}\n $tooltipYCoOrdinates={tooltipYCoOrdinates}\n $zIndex={zIndex}\n $backgroundColor={backgroundColor}\n $arrowColor={arrowColor}\n $borderColor={borderColor}\n $isAnimated={isAnimated}\n $width={width}\n $widthX={widthX}\n textVariant={textVariant || 'ub4'}\n >\n {tooltipItem}\n </TooltipBody>\n );\n\n return (\n <>\n <FlexView\n $width={parentWidth || 'fit-content'}\n ref={tooltipWrapperRef}\n onMouseEnter={handleOnMouseEnter}\n onMouseLeave={handleVisibility}\n >\n <FlexView>{children}</FlexView>\n </FlexView>\n\n {visible && (\n <Portal portalId=\"tooltip-root\">\n {isBlocking ? (\n <Styled.BackgroundOverlay>{tooltipContent}</Styled.BackgroundOverlay>\n ) : (\n tooltipContent\n )}\n </Portal>\n )}\n </>\n );\n};\n\nexport default memo(ArrowTooltip);\n"],"names":["ArrowTooltip","isAnimated","alwaysVisible","arrowColor","arrowSize","DEFAULT_ARROW_SIZE","arrowXCoOrdinates","arrowYCoOrdinates","backgroundColor","borderColor","children","hidden","position","renderAs","textVariant","tooltipItem","tooltipOffset","tooltipXCoOrdinates","tooltipYCoOrdinates","width","widthX","zIndex","parentWidth","isBlocking","tooltipWrapperRef","useRef","visible","setVisible","useState","tooltipCoOrdinates","setTooltipCoOrdinates","handleVisibleNCoOrdinates","useCallback","newCoOrdinates","visibility","handleVisibility","handleOnMouseEnter","throttle","current","boundingClientRect","_a","computeTooltipNewCoOrdinates","THROTTLE_DURATION","useEffect","tooltipContent","jsx","TooltipBody","jsxs","Fragment","FlexView","Portal","Styled.BackgroundOverlay","ArrowTooltip$1","memo"],"mappings":";;;;;;;;;AAeA,MAAMA,IAAuC,CAAC;AAAA,EAC5C,YAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,YAAAC;AAAA,EACA,WAAAC,IAAYC;AAAA,EACZ,mBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,aAAAC;AAAA,EACA,YAAAC,IAAa;AACf,MAAM;AACE,QAAAC,IAAoBC,EAAuB,IAAI,GAC/C,CAACC,GAASC,CAAU,IAAIC,EAAS1B,CAAa,GAC9C,CAAC2B,GAAoBC,CAAqB,IAAIF;AAAA,IAClD;AAAA,EAAA,GAGIG,IAA6DC;AAAA,IACjE,CAACC,GAAgBC,MAAe;AAC9B,MAAAJ,EAAsBG,CAAc,GACpCN,EAAWO,CAAU;AAAA,IACvB;AAAA,IACA,CAAC;AAAA,EAAA,GAGGC,IAAmBH,EAAY,MAAM;AACzC,QAAIrB,KAAUT;AACL,aAAA;AAGT,IAAA6B,EAA0B,MAAM,EAAK;AAAA,EAGpC,GAAA,CAAC7B,GAAe6B,GAA2BpB,CAAM,CAAC,GAE/CyB,IAAqBC,EAAS,MAAM;;AAClC,UAAA,EAAE,SAAAC,EAAY,IAAAd;AAEhB,QAAAb,KAAU,CAAC2B,EAAgB,QAAA;AAE/B,UAAMC,KAAqBC,IAAAF,EAAQ,SAAS,CAAC,MAAlB,gBAAAE,EAAqB,yBAC1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AACK,GAAO,EAAA,UAAS,gBACd,UAAA3B,IACE,gBAAAsB,EAAAM,GAAA,EAA0B,UAAeP,EAAA,CAAA,IAE1CA,EAEJ,CAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ,GAEeQ,KAAAC,EAAKrD,CAAY;"}
@@ -8,7 +8,7 @@ const c = (o) => {
8
8
  return /* @__PURE__ */ t(a, { ...r, children: typeof o.children == "string" ? /* @__PURE__ */ t(
9
9
  m,
10
10
  {
11
- $renderAs: o.textVariant || "ub3",
11
+ $renderAs: o.textVariant || "ub4",
12
12
  $color: i[o.$renderAs].textColorName,
13
13
  $align: "center",
14
14
  children: o.children
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip-body.js","sources":["../../../../../src/features/ui/arrow-tooltip/comps/tooltip-body.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport Text from '../../text/text';\nimport * as Styled from './tooltip-body-styled';\nimport type { ITooltipBodyProps } from './tooltip-body-types';\n\nconst TooltipBody: FC<ITooltipBodyProps> = props => {\n const { textVariant, ...rest } = props;\n const { arrowTooltip } = useTheme();\n const { tooltipVariants } = arrowTooltip;\n\n return (\n <Styled.TooltipBody {...rest}>\n {typeof props.children === 'string' ? (\n <Text\n $renderAs={props.textVariant || 'ub3'}\n $color={tooltipVariants[props.$renderAs].textColorName}\n $align=\"center\"\n >\n {props.children}\n </Text>\n ) : (\n props.children\n )}\n </Styled.TooltipBody>\n );\n};\n\nexport default memo(TooltipBody);\n"],"names":["TooltipBody","props","textVariant","rest","arrowTooltip","useTheme","tooltipVariants","jsx","Styled.TooltipBody","Text","TooltipBody$1","memo"],"mappings":";;;;;AAOA,MAAMA,IAAqC,CAASC,MAAA;AAClD,QAAM,EAAE,aAAAC,GAAa,GAAGC,EAAA,IAASF,GAC3B,EAAE,cAAAG,MAAiBC,KACnB,EAAE,iBAAAC,EAAoB,IAAAF;AAG1B,SAAA,gBAAAG,EAACC,GAAA,EAAoB,GAAGL,GACrB,UAAA,OAAOF,EAAM,YAAa,WACzB,gBAAAM;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,WAAWR,EAAM,eAAe;AAAA,MAChC,QAAQK,EAAgBL,EAAM,SAAS,EAAE;AAAA,MACzC,QAAO;AAAA,MAEN,UAAMA,EAAA;AAAA,IAAA;AAAA,EAAA,IAGTA,EAAM,SAEV,CAAA;AAEJ,GAEeS,IAAAC,EAAKX,CAAW;"}
1
+ {"version":3,"file":"tooltip-body.js","sources":["../../../../../src/features/ui/arrow-tooltip/comps/tooltip-body.tsx"],"sourcesContent":["import { memo, type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport Text from '../../text/text';\nimport * as Styled from './tooltip-body-styled';\nimport type { ITooltipBodyProps } from './tooltip-body-types';\n\nconst TooltipBody: FC<ITooltipBodyProps> = props => {\n const { textVariant, ...rest } = props;\n const { arrowTooltip } = useTheme();\n const { tooltipVariants } = arrowTooltip;\n\n return (\n <Styled.TooltipBody {...rest}>\n {typeof props.children === 'string' ? (\n <Text\n $renderAs={props.textVariant || 'ub4'}\n $color={tooltipVariants[props.$renderAs].textColorName}\n $align=\"center\"\n >\n {props.children}\n </Text>\n ) : (\n props.children\n )}\n </Styled.TooltipBody>\n );\n};\n\nexport default memo(TooltipBody);\n"],"names":["TooltipBody","props","textVariant","rest","arrowTooltip","useTheme","tooltipVariants","jsx","Styled.TooltipBody","Text","TooltipBody$1","memo"],"mappings":";;;;;AAOA,MAAMA,IAAqC,CAASC,MAAA;AAClD,QAAM,EAAE,aAAAC,GAAa,GAAGC,EAAA,IAASF,GAC3B,EAAE,cAAAG,MAAiBC,KACnB,EAAE,iBAAAC,EAAoB,IAAAF;AAG1B,SAAA,gBAAAG,EAACC,GAAA,EAAoB,GAAGL,GACrB,UAAA,OAAOF,EAAM,YAAa,WACzB,gBAAAM;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,WAAWR,EAAM,eAAe;AAAA,MAChC,QAAQK,EAAgBL,EAAM,SAAS,EAAE;AAAA,MACzC,QAAO;AAAA,MAEN,UAAMA,EAAA;AAAA,IAAA;AAAA,EAAA,IAGTA,EAAM,SAEV,CAAA;AAEJ,GAEeS,IAAAC,EAAKX,CAAW;"}
@@ -15,7 +15,7 @@ const i = (o) => ({ backgroundColor: `${o}_1`, borderColor: `${o}_4` }), s = ({
15
15
  $gapX: 0.5,
16
16
  $borderRadiusX: 0.25,
17
17
  $marginBottomX: e,
18
- children: /* @__PURE__ */ t(a, { $renderAs: "ub2", children: o })
18
+ children: /* @__PURE__ */ t(a, { $renderAs: "ub3", children: o })
19
19
  }
20
20
  );
21
21
  }, g = s;
@@ -1 +1 @@
1
- {"version":3,"file":"callout.js","sources":["../../../../src/features/ui/callout/callout.tsx"],"sourcesContent":["import { useMemo, type FC } from 'react';\n\nimport FlexView from '../layout/flex-view';\nimport Text from '../text/text';\nimport type { TColorNames, THueNames } from '../types';\nimport type { ICalloutProps } from './callout-types';\n\nconst computeColorsFromHue = (\n hue: THueNames,\n): { backgroundColor: TColorNames; borderColor: TColorNames } => {\n return { backgroundColor: `${hue}_1`, borderColor: `${hue}_4` };\n};\n\nconst Callout: FC<ICalloutProps> = ({ children, hue, marginBottomX, width, widthX }) => {\n const { backgroundColor, borderColor } = useMemo(() => computeColorsFromHue(hue), [hue]);\n\n return (\n <FlexView\n $width={width}\n $widthX={widthX}\n $background={backgroundColor}\n $borderColor={borderColor}\n $gutterX={0.5}\n $gapX={0.5}\n $borderRadiusX={0.25}\n $marginBottomX={marginBottomX}\n >\n <Text $renderAs=\"ub2\">{children}</Text>\n </FlexView>\n );\n};\n\nexport default Callout;\n"],"names":["computeColorsFromHue","hue","Callout","children","marginBottomX","width","widthX","backgroundColor","borderColor","useMemo","jsx","FlexView","Text","Callout$1"],"mappings":";;;;AAOA,MAAMA,IAAuB,CAC3BC,OAEO,EAAE,iBAAiB,GAAGA,CAAG,MAAM,aAAa,GAAGA,CAAG,SAGrDC,IAA6B,CAAC,EAAE,UAAAC,GAAU,KAAAF,GAAK,eAAAG,GAAe,OAAAC,GAAO,QAAAC,QAAa;AAChF,QAAA,EAAE,iBAAAC,GAAiB,aAAAC,EAAA,IAAgBC,EAAQ,MAAMT,EAAqBC,CAAG,GAAG,CAACA,CAAG,CAAC;AAGrF,SAAA,gBAAAS;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,QAAQN;AAAA,MACR,SAASC;AAAA,MACT,aAAaC;AAAA,MACb,cAAcC;AAAA,MACd,UAAU;AAAA,MACV,OAAO;AAAA,MACP,gBAAgB;AAAA,MAChB,gBAAgBJ;AAAA,MAEhB,UAAC,gBAAAM,EAAAE,GAAA,EAAK,WAAU,OAAO,UAAAT,GAAS;AAAA,IAAA;AAAA,EAAA;AAGtC,GAEAU,IAAeX;"}
1
+ {"version":3,"file":"callout.js","sources":["../../../../src/features/ui/callout/callout.tsx"],"sourcesContent":["import { useMemo, type FC } from 'react';\n\nimport FlexView from '../layout/flex-view';\nimport Text from '../text/text';\nimport type { TColorNames, THueNames } from '../types';\nimport type { ICalloutProps } from './callout-types';\n\nconst computeColorsFromHue = (\n hue: THueNames,\n): { backgroundColor: TColorNames; borderColor: TColorNames } => {\n return { backgroundColor: `${hue}_1`, borderColor: `${hue}_4` };\n};\n\nconst Callout: FC<ICalloutProps> = ({ children, hue, marginBottomX, width, widthX }) => {\n const { backgroundColor, borderColor } = useMemo(() => computeColorsFromHue(hue), [hue]);\n\n return (\n <FlexView\n $width={width}\n $widthX={widthX}\n $background={backgroundColor}\n $borderColor={borderColor}\n $gutterX={0.5}\n $gapX={0.5}\n $borderRadiusX={0.25}\n $marginBottomX={marginBottomX}\n >\n <Text $renderAs=\"ub3\">{children}</Text>\n </FlexView>\n );\n};\n\nexport default Callout;\n"],"names":["computeColorsFromHue","hue","Callout","children","marginBottomX","width","widthX","backgroundColor","borderColor","useMemo","jsx","FlexView","Text","Callout$1"],"mappings":";;;;AAOA,MAAMA,IAAuB,CAC3BC,OAEO,EAAE,iBAAiB,GAAGA,CAAG,MAAM,aAAa,GAAGA,CAAG,SAGrDC,IAA6B,CAAC,EAAE,UAAAC,GAAU,KAAAF,GAAK,eAAAG,GAAe,OAAAC,GAAO,QAAAC,QAAa;AAChF,QAAA,EAAE,iBAAAC,GAAiB,aAAAC,EAAA,IAAgBC,EAAQ,MAAMT,EAAqBC,CAAG,GAAG,CAACA,CAAG,CAAC;AAGrF,SAAA,gBAAAS;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,QAAQN;AAAA,MACR,SAASC;AAAA,MACT,aAAaC;AAAA,MACb,cAAcC;AAAA,MACd,UAAU;AAAA,MACV,OAAO;AAAA,MACP,gBAAgB;AAAA,MAChB,gBAAgBJ;AAAA,MAEhB,UAAC,gBAAAM,EAAAE,GAAA,EAAK,WAAU,OAAO,UAAAT,GAAS;AAAA,IAAA;AAAA,EAAA;AAGtC,GAEAU,IAAeX;"}
@@ -12,7 +12,7 @@ const e = {
12
12
  borderRadiusX: 1,
13
13
  marginBottomX: 1,
14
14
  title: "ab2-bold",
15
- description: "ub3",
15
+ description: "ub4",
16
16
  imageWidth: 54,
17
17
  imageHeight: 44
18
18
  },
@@ -22,7 +22,7 @@ const e = {
22
22
  borderRadiusX: 1,
23
23
  marginBottomX: 1.5,
24
24
  title: "ah4-bold",
25
- description: "ub2",
25
+ description: "ub3",
26
26
  imageWidth: 122,
27
27
  imageHeight: 100
28
28
  }
@@ -62,7 +62,7 @@ const e = {
62
62
  children: s ?? "Oops! Looks like something went wrong"
63
63
  }
64
64
  ),
65
- /* @__PURE__ */ i(l, { $renderAs: "ub2", $align: "center", $marginBottomX: 1.5, $color: o, children: g ?? /* @__PURE__ */ n(X, { children: [
65
+ /* @__PURE__ */ i(l, { $renderAs: "ub3", $align: "center", $marginBottomX: 1.5, $color: o, children: g ?? /* @__PURE__ */ n(X, { children: [
66
66
  "Please try again. Alternatively if that does not work,",
67
67
  /* @__PURE__ */ i("br", {}),
68
68
  " please contact support."
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sources":["../../../../src/features/ui/error/error.tsx"],"sourcesContent":["import { useCallback, type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\nimport Button from '../buttons/button/button';\nimport Image from '../image/image';\nimport FlexView from '../layout/flex-view';\nimport Text from '../text/text';\nimport type { TTextVariants } from '../types';\n\ninterface IErrorProps {\n onTryAgain?: () => void;\n height?: string | number;\n theme?: 'light' | 'dark';\n title?: string;\n description?: string;\n size?: 'compact' | 'full';\n}\n\ninterface IErrorConfig {\n widthX: number;\n heightX: number;\n borderRadiusX: number;\n marginBottomX: number;\n title: TTextVariants;\n description: TTextVariants;\n imageWidth: number;\n imageHeight: number;\n}\n\nconst ERROR_CONFIG: Record<'compact' | 'full', IErrorConfig> = {\n compact: {\n widthX: 10,\n heightX: 5,\n borderRadiusX: 1,\n marginBottomX: 1,\n title: 'ab2-bold',\n description: 'ub3',\n imageWidth: 54,\n imageHeight: 44,\n },\n full: {\n widthX: 22.5,\n heightX: 11.5,\n borderRadiusX: 1,\n marginBottomX: 1.5,\n title: 'ah4-bold',\n description: 'ub2',\n imageWidth: 122,\n imageHeight: 100,\n },\n};\n\nconst Error: FC<IErrorProps> = props => {\n const { height, onTryAgain, theme = 'light', title, description, size = 'full' } = props;\n\n const handleTryAgain = useCallback(() => {\n if (onTryAgain) {\n onTryAgain();\n } else {\n window.location.reload();\n }\n }, [onTryAgain]);\n\n const textColor = theme === 'dark' ? 'WHITE_T_87' : 'BLACK_T_87';\n\n return (\n <FlexView $alignItems=\"center\" $justifyContent=\"center\" $height={height}>\n <FlexView\n $widthX={ERROR_CONFIG[size].widthX}\n $heightX={ERROR_CONFIG[size].heightX}\n $borderRadiusX={ERROR_CONFIG[size].borderRadiusX}\n $marginBottomX={ERROR_CONFIG[size].marginBottomX}\n $background=\"GREY_1\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n >\n <Image\n width={ERROR_CONFIG[size].imageWidth}\n height={ERROR_CONFIG[size].imageHeight}\n src={ILLUSTRATIONS.ROCKET_BROKEN}\n withLoader={false}\n />\n </FlexView>\n <Text\n $renderAs={ERROR_CONFIG[size].title}\n $marginBottomX={0.5}\n $color={textColor}\n $align=\"center\"\n >\n {title ?? 'Oops! Looks like something went wrong'}\n </Text>\n <Text $renderAs=\"ub2\" $align=\"center\" $marginBottomX={1.5} $color={textColor}>\n {description ?? (\n <>\n Please try again. Alternatively if that does not work,\n <br /> please contact support.\n </>\n )}\n </Text>\n <Button\n label=\"Try again\"\n onClick={handleTryAgain}\n renderAs=\"primary\"\n size=\"small\"\n widthX={14}\n />\n </FlexView>\n );\n};\n\nexport default Error;\n"],"names":["ERROR_CONFIG","Error","props","height","onTryAgain","theme","title","description","size","handleTryAgain","useCallback","textColor","FlexView","jsx","Image","ILLUSTRATIONS","Text","jsxs","Fragment","Button","Error$1"],"mappings":";;;;;;;AA6BA,MAAMA,IAAyD;AAAA,EAC7D,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,eAAe;AAAA,IACf,eAAe;AAAA,IACf,OAAO;AAAA,IACP,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,aAAa;AAAA,EACf;AAAA,EACA,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,eAAe;AAAA,IACf,eAAe;AAAA,IACf,OAAO;AAAA,IACP,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,aAAa;AAAA,EACf;AACF,GAEMC,IAAyB,CAASC,MAAA;AAChC,QAAA,EAAE,QAAAC,GAAQ,YAAAC,GAAY,OAAAC,IAAQ,SAAS,OAAAC,GAAO,aAAAC,GAAa,MAAAC,IAAO,OAAW,IAAAN,GAE7EO,IAAiBC,EAAY,MAAM;AACvC,IAAIN,IACSA,MAEX,OAAO,SAAS;EAClB,GACC,CAACA,CAAU,CAAC,GAETO,IAAYN,MAAU,SAAS,eAAe;AAEpD,2BACGO,GAAS,EAAA,aAAY,UAAS,iBAAgB,UAAS,SAAST,GAC/D,UAAA;AAAA,IAAA,gBAAAU;AAAA,MAACD;AAAA,MAAA;AAAA,QACC,SAASZ,EAAaQ,CAAI,EAAE;AAAA,QAC5B,UAAUR,EAAaQ,CAAI,EAAE;AAAA,QAC7B,gBAAgBR,EAAaQ,CAAI,EAAE;AAAA,QACnC,gBAAgBR,EAAaQ,CAAI,EAAE;AAAA,QACnC,aAAY;AAAA,QACZ,iBAAgB;AAAA,QAChB,aAAY;AAAA,QAEZ,UAAA,gBAAAK;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,OAAOd,EAAaQ,CAAI,EAAE;AAAA,YAC1B,QAAQR,EAAaQ,CAAI,EAAE;AAAA,YAC3B,KAAKO,EAAc;AAAA,YACnB,YAAY;AAAA,UAAA;AAAA,QACd;AAAA,MAAA;AAAA,IACF;AAAA,IACA,gBAAAF;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,WAAWhB,EAAaQ,CAAI,EAAE;AAAA,QAC9B,gBAAgB;AAAA,QAChB,QAAQG;AAAA,QACR,QAAO;AAAA,QAEN,UAASL,KAAA;AAAA,MAAA;AAAA,IACZ;AAAA,IACA,gBAAAO,EAACG,GAAK,EAAA,WAAU,OAAM,QAAO,UAAS,gBAAgB,KAAK,QAAQL,GAChE,UAAAJ,KACG,gBAAAU,EAAAC,GAAA,EAAA,UAAA;AAAA,MAAA;AAAA,wBAEC,MAAG,EAAA;AAAA,MAAE;AAAA,IAAA,EAAA,CACR,EAEJ,CAAA;AAAA,IACA,gBAAAL;AAAA,MAACM;AAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,SAASV;AAAA,QACT,UAAS;AAAA,QACT,MAAK;AAAA,QACL,QAAQ;AAAA,MAAA;AAAA,IACV;AAAA,EACF,EAAA,CAAA;AAEJ,GAEAW,IAAenB;"}
1
+ {"version":3,"file":"error.js","sources":["../../../../src/features/ui/error/error.tsx"],"sourcesContent":["import { useCallback, type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\nimport Button from '../buttons/button/button';\nimport Image from '../image/image';\nimport FlexView from '../layout/flex-view';\nimport Text from '../text/text';\nimport type { TTextVariants } from '../types';\n\ninterface IErrorProps {\n onTryAgain?: () => void;\n height?: string | number;\n theme?: 'light' | 'dark';\n title?: string;\n description?: string;\n size?: 'compact' | 'full';\n}\n\ninterface IErrorConfig {\n widthX: number;\n heightX: number;\n borderRadiusX: number;\n marginBottomX: number;\n title: TTextVariants;\n description: TTextVariants;\n imageWidth: number;\n imageHeight: number;\n}\n\nconst ERROR_CONFIG: Record<'compact' | 'full', IErrorConfig> = {\n compact: {\n widthX: 10,\n heightX: 5,\n borderRadiusX: 1,\n marginBottomX: 1,\n title: 'ab2-bold',\n description: 'ub4',\n imageWidth: 54,\n imageHeight: 44,\n },\n full: {\n widthX: 22.5,\n heightX: 11.5,\n borderRadiusX: 1,\n marginBottomX: 1.5,\n title: 'ah4-bold',\n description: 'ub3',\n imageWidth: 122,\n imageHeight: 100,\n },\n};\n\nconst Error: FC<IErrorProps> = props => {\n const { height, onTryAgain, theme = 'light', title, description, size = 'full' } = props;\n\n const handleTryAgain = useCallback(() => {\n if (onTryAgain) {\n onTryAgain();\n } else {\n window.location.reload();\n }\n }, [onTryAgain]);\n\n const textColor = theme === 'dark' ? 'WHITE_T_87' : 'BLACK_T_87';\n\n return (\n <FlexView $alignItems=\"center\" $justifyContent=\"center\" $height={height}>\n <FlexView\n $widthX={ERROR_CONFIG[size].widthX}\n $heightX={ERROR_CONFIG[size].heightX}\n $borderRadiusX={ERROR_CONFIG[size].borderRadiusX}\n $marginBottomX={ERROR_CONFIG[size].marginBottomX}\n $background=\"GREY_1\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n >\n <Image\n width={ERROR_CONFIG[size].imageWidth}\n height={ERROR_CONFIG[size].imageHeight}\n src={ILLUSTRATIONS.ROCKET_BROKEN}\n withLoader={false}\n />\n </FlexView>\n <Text\n $renderAs={ERROR_CONFIG[size].title}\n $marginBottomX={0.5}\n $color={textColor}\n $align=\"center\"\n >\n {title ?? 'Oops! Looks like something went wrong'}\n </Text>\n <Text $renderAs=\"ub3\" $align=\"center\" $marginBottomX={1.5} $color={textColor}>\n {description ?? (\n <>\n Please try again. Alternatively if that does not work,\n <br /> please contact support.\n </>\n )}\n </Text>\n <Button\n label=\"Try again\"\n onClick={handleTryAgain}\n renderAs=\"primary\"\n size=\"small\"\n widthX={14}\n />\n </FlexView>\n );\n};\n\nexport default Error;\n"],"names":["ERROR_CONFIG","Error","props","height","onTryAgain","theme","title","description","size","handleTryAgain","useCallback","textColor","FlexView","jsx","Image","ILLUSTRATIONS","Text","jsxs","Fragment","Button","Error$1"],"mappings":";;;;;;;AA6BA,MAAMA,IAAyD;AAAA,EAC7D,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,eAAe;AAAA,IACf,eAAe;AAAA,IACf,OAAO;AAAA,IACP,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,aAAa;AAAA,EACf;AAAA,EACA,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,eAAe;AAAA,IACf,eAAe;AAAA,IACf,OAAO;AAAA,IACP,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,aAAa;AAAA,EACf;AACF,GAEMC,IAAyB,CAASC,MAAA;AAChC,QAAA,EAAE,QAAAC,GAAQ,YAAAC,GAAY,OAAAC,IAAQ,SAAS,OAAAC,GAAO,aAAAC,GAAa,MAAAC,IAAO,OAAW,IAAAN,GAE7EO,IAAiBC,EAAY,MAAM;AACvC,IAAIN,IACSA,MAEX,OAAO,SAAS;EAClB,GACC,CAACA,CAAU,CAAC,GAETO,IAAYN,MAAU,SAAS,eAAe;AAEpD,2BACGO,GAAS,EAAA,aAAY,UAAS,iBAAgB,UAAS,SAAST,GAC/D,UAAA;AAAA,IAAA,gBAAAU;AAAA,MAACD;AAAA,MAAA;AAAA,QACC,SAASZ,EAAaQ,CAAI,EAAE;AAAA,QAC5B,UAAUR,EAAaQ,CAAI,EAAE;AAAA,QAC7B,gBAAgBR,EAAaQ,CAAI,EAAE;AAAA,QACnC,gBAAgBR,EAAaQ,CAAI,EAAE;AAAA,QACnC,aAAY;AAAA,QACZ,iBAAgB;AAAA,QAChB,aAAY;AAAA,QAEZ,UAAA,gBAAAK;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,OAAOd,EAAaQ,CAAI,EAAE;AAAA,YAC1B,QAAQR,EAAaQ,CAAI,EAAE;AAAA,YAC3B,KAAKO,EAAc;AAAA,YACnB,YAAY;AAAA,UAAA;AAAA,QACd;AAAA,MAAA;AAAA,IACF;AAAA,IACA,gBAAAF;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,WAAWhB,EAAaQ,CAAI,EAAE;AAAA,QAC9B,gBAAgB;AAAA,QAChB,QAAQG;AAAA,QACR,QAAO;AAAA,QAEN,UAASL,KAAA;AAAA,MAAA;AAAA,IACZ;AAAA,IACA,gBAAAO,EAACG,GAAK,EAAA,WAAU,OAAM,QAAO,UAAS,gBAAgB,KAAK,QAAQL,GAChE,UAAAJ,KACG,gBAAAU,EAAAC,GAAA,EAAA,UAAA;AAAA,MAAA;AAAA,wBAEC,MAAG,EAAA;AAAA,MAAE;AAAA,IAAA,EAAA,CACR,EAEJ,CAAA;AAAA,IACA,gBAAAL;AAAA,MAACM;AAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,SAASV;AAAA,QACT,UAAS;AAAA,QACT,MAAK;AAAA,QACL,QAAQ;AAAA,MAAA;AAAA,IACV;AAAA,EACF,EAAA,CAAA;AAEJ,GAEAW,IAAenB;"}
@@ -31,8 +31,8 @@ const H = ($) => {
31
31
  children: [
32
32
  /* @__PURE__ */ a(f, { children: [
33
33
  w,
34
- n && /* @__PURE__ */ r(L, { $renderAs: "ub3", $inputRenderAs: e, children: n }),
35
- o && !n && /* @__PURE__ */ r(R, { $renderAs: "ub3", $inputRenderAs: e, children: o })
34
+ n && /* @__PURE__ */ r(L, { $renderAs: "ub4", $inputRenderAs: e, children: n }),
35
+ o && !n && /* @__PURE__ */ r(R, { $renderAs: "ub4", $inputRenderAs: e, children: o })
36
36
  ] }),
37
37
  d ? /* @__PURE__ */ r(
38
38
  y,
@@ -1 +1 @@
1
- {"version":3,"file":"base-input.js","sources":["../../../../../src/features/ui/inputs/base-input/base-input.tsx"],"sourcesContent":["import { type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport {\n Container,\n Error,\n InputWrapper,\n Label,\n SiblingWrapper,\n Wrapper,\n HelperText,\n} from './base-input-styled';\nimport type { IBaseInputProps } from './base-input-types';\n\nconst BaseInput: FC<IBaseInputProps> = props => {\n const {\n label,\n stickyLabel,\n renderAs,\n width,\n widthX,\n disabled,\n willShowMessage,\n inputElement,\n siblingElement,\n siblingPosition,\n size,\n errorMessage,\n mandatory,\n shape,\n isTransparent = false,\n helperText,\n } = props;\n const { input } = useTheme();\n const showLabel = label && shape !== 'curved';\n const showHelperText = helperText && !errorMessage;\n\n return (\n <Container $width={width} $widthX={widthX} $size={size} $willShowMessage={willShowMessage}>\n <Wrapper\n $renderAs={renderAs}\n $size={size}\n $disabled={disabled}\n $shape={shape}\n $isTransparent={isTransparent}\n >\n <InputWrapper>\n {inputElement}\n {errorMessage && (\n <Error $renderAs=\"ub3\" $inputRenderAs={renderAs}>\n {errorMessage}\n </Error>\n )}\n {showHelperText && (\n <HelperText $renderAs=\"ub3\" $inputRenderAs={renderAs}>\n {helperText}\n </HelperText>\n )}\n </InputWrapper>\n {siblingElement ? (\n <SiblingWrapper\n $inputRenderAs={renderAs}\n $disabled={disabled}\n $size={size}\n $siblingPosition={siblingPosition ?? 'right'}\n >\n {siblingElement}\n </SiblingWrapper>\n ) : undefined}\n {showLabel && (\n <Label\n $renderAs={input.sizes[size].labelTextVariant}\n $inputRenderAs={renderAs}\n $size={size}\n $stickyLabel={stickyLabel}\n $disabled={disabled}\n $shape={shape}\n $isTransparent={isTransparent}\n >\n {label}\n {mandatory && <span>*</span>}\n </Label>\n )}\n </Wrapper>\n </Container>\n );\n};\n\nexport default BaseInput;\n"],"names":["BaseInput","props","label","stickyLabel","renderAs","width","widthX","disabled","willShowMessage","inputElement","siblingElement","siblingPosition","size","errorMessage","mandatory","shape","isTransparent","helperText","input","useTheme","jsx","Container","jsxs","Wrapper","InputWrapper","Error","HelperText","SiblingWrapper","Label","BaseInput$1"],"mappings":";;;AAcA,MAAMA,IAAiC,CAASC,MAAA;AACxC,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,MAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,eAAAC,IAAgB;AAAA,IAChB,YAAAC;AAAA,EACE,IAAAhB,GACE,EAAE,OAAAiB,MAAUC;AAKhB,SAAA,gBAAAC,EAACC,KAAU,QAAQhB,GAAO,SAASC,GAAQ,OAAOM,GAAM,kBAAkBJ,GACxE,UAAA,gBAAAc;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAWnB;AAAA,MACX,OAAOQ;AAAA,MACP,WAAWL;AAAA,MACX,QAAQQ;AAAA,MACR,gBAAgBC;AAAA,MAEhB,UAAA;AAAA,QAAA,gBAAAM,EAACE,GACE,EAAA,UAAA;AAAA,UAAAf;AAAA,UACAI,KACE,gBAAAO,EAAAK,GAAA,EAAM,WAAU,OAAM,gBAAgBrB,GACpC,UACHS,GAAA;AAAA,UAhBaI,KAAc,CAACJ,KAmB3B,gBAAAO,EAAAM,GAAA,EAAW,WAAU,OAAM,gBAAgBtB,GACzC,UACHa,GAAA;AAAA,QAAA,GAEJ;AAAA,QACCP,IACC,gBAAAU;AAAA,UAACO;AAAA,UAAA;AAAA,YACC,gBAAgBvB;AAAA,YAChB,WAAWG;AAAA,YACX,OAAOK;AAAA,YACP,kBAAkBD,KAAmB;AAAA,YAEpC,UAAAD;AAAA,UAAA;AAAA,QAED,IAAA;AAAA,QAlCQR,KAASa,MAAU,YAoC7B,gBAAAO;AAAA,UAACM;AAAA,UAAA;AAAA,YACC,WAAWV,EAAM,MAAMN,CAAI,EAAE;AAAA,YAC7B,gBAAgBR;AAAA,YAChB,OAAOQ;AAAA,YACP,cAAcT;AAAA,YACd,WAAWI;AAAA,YACX,QAAQQ;AAAA,YACR,gBAAgBC;AAAA,YAEf,UAAA;AAAA,cAAAd;AAAA,cACAY,KAAc,gBAAAM,EAAA,QAAA,EAAK,UAAC,IAAA,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACvB;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN,EAAA,CAAA;AAEJ,GAEAS,IAAe7B;"}
1
+ {"version":3,"file":"base-input.js","sources":["../../../../../src/features/ui/inputs/base-input/base-input.tsx"],"sourcesContent":["import { type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport {\n Container,\n Error,\n InputWrapper,\n Label,\n SiblingWrapper,\n Wrapper,\n HelperText,\n} from './base-input-styled';\nimport type { IBaseInputProps } from './base-input-types';\n\nconst BaseInput: FC<IBaseInputProps> = props => {\n const {\n label,\n stickyLabel,\n renderAs,\n width,\n widthX,\n disabled,\n willShowMessage,\n inputElement,\n siblingElement,\n siblingPosition,\n size,\n errorMessage,\n mandatory,\n shape,\n isTransparent = false,\n helperText,\n } = props;\n const { input } = useTheme();\n const showLabel = label && shape !== 'curved';\n const showHelperText = helperText && !errorMessage;\n\n return (\n <Container $width={width} $widthX={widthX} $size={size} $willShowMessage={willShowMessage}>\n <Wrapper\n $renderAs={renderAs}\n $size={size}\n $disabled={disabled}\n $shape={shape}\n $isTransparent={isTransparent}\n >\n <InputWrapper>\n {inputElement}\n {errorMessage && (\n <Error $renderAs=\"ub4\" $inputRenderAs={renderAs}>\n {errorMessage}\n </Error>\n )}\n {showHelperText && (\n <HelperText $renderAs=\"ub4\" $inputRenderAs={renderAs}>\n {helperText}\n </HelperText>\n )}\n </InputWrapper>\n {siblingElement ? (\n <SiblingWrapper\n $inputRenderAs={renderAs}\n $disabled={disabled}\n $size={size}\n $siblingPosition={siblingPosition ?? 'right'}\n >\n {siblingElement}\n </SiblingWrapper>\n ) : undefined}\n {showLabel && (\n <Label\n $renderAs={input.sizes[size].labelTextVariant}\n $inputRenderAs={renderAs}\n $size={size}\n $stickyLabel={stickyLabel}\n $disabled={disabled}\n $shape={shape}\n $isTransparent={isTransparent}\n >\n {label}\n {mandatory && <span>*</span>}\n </Label>\n )}\n </Wrapper>\n </Container>\n );\n};\n\nexport default BaseInput;\n"],"names":["BaseInput","props","label","stickyLabel","renderAs","width","widthX","disabled","willShowMessage","inputElement","siblingElement","siblingPosition","size","errorMessage","mandatory","shape","isTransparent","helperText","input","useTheme","jsx","Container","jsxs","Wrapper","InputWrapper","Error","HelperText","SiblingWrapper","Label","BaseInput$1"],"mappings":";;;AAcA,MAAMA,IAAiC,CAASC,MAAA;AACxC,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,MAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,eAAAC,IAAgB;AAAA,IAChB,YAAAC;AAAA,EACE,IAAAhB,GACE,EAAE,OAAAiB,MAAUC;AAKhB,SAAA,gBAAAC,EAACC,KAAU,QAAQhB,GAAO,SAASC,GAAQ,OAAOM,GAAM,kBAAkBJ,GACxE,UAAA,gBAAAc;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAWnB;AAAA,MACX,OAAOQ;AAAA,MACP,WAAWL;AAAA,MACX,QAAQQ;AAAA,MACR,gBAAgBC;AAAA,MAEhB,UAAA;AAAA,QAAA,gBAAAM,EAACE,GACE,EAAA,UAAA;AAAA,UAAAf;AAAA,UACAI,KACE,gBAAAO,EAAAK,GAAA,EAAM,WAAU,OAAM,gBAAgBrB,GACpC,UACHS,GAAA;AAAA,UAhBaI,KAAc,CAACJ,KAmB3B,gBAAAO,EAAAM,GAAA,EAAW,WAAU,OAAM,gBAAgBtB,GACzC,UACHa,GAAA;AAAA,QAAA,GAEJ;AAAA,QACCP,IACC,gBAAAU;AAAA,UAACO;AAAA,UAAA;AAAA,YACC,gBAAgBvB;AAAA,YAChB,WAAWG;AAAA,YACX,OAAOK;AAAA,YACP,kBAAkBD,KAAmB;AAAA,YAEpC,UAAAD;AAAA,UAAA;AAAA,QAED,IAAA;AAAA,QAlCQR,KAASa,MAAU,YAoC7B,gBAAAO;AAAA,UAACM;AAAA,UAAA;AAAA,YACC,WAAWV,EAAM,MAAMN,CAAI,EAAE;AAAA,YAC7B,gBAAgBR;AAAA,YAChB,OAAOQ;AAAA,YACP,cAAcT;AAAA,YACd,WAAWI;AAAA,YACX,QAAQQ;AAAA,YACR,gBAAgBC;AAAA,YAEf,UAAA;AAAA,cAAAd;AAAA,cACAY,KAAc,gBAAAM,EAAA,QAAA,EAAK,UAAC,IAAA,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACvB;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN,EAAA,CAAA;AAEJ,GAEAS,IAAe7B;"}
@@ -10,7 +10,7 @@ const f = ({
10
10
  }) => {
11
11
  const { id: t, label: n } = e, i = d(() => {
12
12
  o(t, e);
13
- }, [o, t, e]), a = r ? "ub1-bold" : "ub1", m = r ? "ub2-bold" : "ub2", l = c === "dark";
13
+ }, [o, t, e]), a = r ? "ub2-bold" : "ub2", m = r ? "ub3-bold" : "ub3", l = c === "dark";
14
14
  return /* @__PURE__ */ s(p, { onClick: i, className: "base-select-input-option", children: /* @__PURE__ */ s(
15
15
  b,
16
16
  {
@@ -1 +1 @@
1
- {"version":3,"file":"select-option.js","sources":["../../../../../../src/features/ui/inputs/base-select-input/select-option/select-option.tsx"],"sourcesContent":["import { useCallback, type ReactElement } from 'react';\n\nimport Text from '../../../text/text';\nimport * as Styled from './select-option-styled';\nimport type { ISelectOptionProps } from './select-option-types';\n\nconst SelectOption = <IDType extends string | number>({\n option,\n selected,\n onChange,\n theme,\n}: ISelectOptionProps<IDType>): ReactElement => {\n const { id, label } = option;\n\n const handleOnClick = useCallback(() => {\n onChange(id, option);\n }, [onChange, id, option]);\n\n const lightThemeRenderAs = selected ? 'ub1-bold' : 'ub1';\n const darkThemeRenderAs = selected ? 'ub2-bold' : 'ub2';\n const isDarkTheme = theme === 'dark';\n\n return (\n <Styled.SelectOptionWrapper onClick={handleOnClick} className=\"base-select-input-option\">\n <Text\n $renderAs={isDarkTheme ? darkThemeRenderAs : lightThemeRenderAs}\n $color={isDarkTheme ? 'WHITE_T_87' : 'BLACK'}\n >\n {label}\n </Text>\n </Styled.SelectOptionWrapper>\n );\n};\n\nexport default SelectOption;\n"],"names":["SelectOption","option","selected","onChange","theme","id","label","handleOnClick","useCallback","lightThemeRenderAs","darkThemeRenderAs","isDarkTheme","Styled.SelectOptionWrapper","jsx","Text"],"mappings":";;;;AAMA,MAAMA,IAAe,CAAiC;AAAA,EACpD,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AACF,MAAgD;AACxC,QAAA,EAAE,IAAAC,GAAI,OAAAC,EAAU,IAAAL,GAEhBM,IAAgBC,EAAY,MAAM;AACtC,IAAAL,EAASE,GAAIJ,CAAM;AAAA,EAClB,GAAA,CAACE,GAAUE,GAAIJ,CAAM,CAAC,GAEnBQ,IAAqBP,IAAW,aAAa,OAC7CQ,IAAoBR,IAAW,aAAa,OAC5CS,IAAcP,MAAU;AAE9B,2BACGQ,GAAA,EAA2B,SAASL,GAAe,WAAU,4BAC5D,UAAA,gBAAAM;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAWH,IAAcD,IAAoBD;AAAA,MAC7C,QAAQE,IAAc,eAAe;AAAA,MAEpC,UAAAL;AAAA,IAAA;AAAA,EAEL,EAAA,CAAA;AAEJ;"}
1
+ {"version":3,"file":"select-option.js","sources":["../../../../../../src/features/ui/inputs/base-select-input/select-option/select-option.tsx"],"sourcesContent":["import { useCallback, type ReactElement } from 'react';\n\nimport Text from '../../../text/text';\nimport * as Styled from './select-option-styled';\nimport type { ISelectOptionProps } from './select-option-types';\n\nconst SelectOption = <IDType extends string | number>({\n option,\n selected,\n onChange,\n theme,\n}: ISelectOptionProps<IDType>): ReactElement => {\n const { id, label } = option;\n\n const handleOnClick = useCallback(() => {\n onChange(id, option);\n }, [onChange, id, option]);\n\n const lightThemeRenderAs = selected ? 'ub2-bold' : 'ub2';\n const darkThemeRenderAs = selected ? 'ub3-bold' : 'ub3';\n const isDarkTheme = theme === 'dark';\n\n return (\n <Styled.SelectOptionWrapper onClick={handleOnClick} className=\"base-select-input-option\">\n <Text\n $renderAs={isDarkTheme ? darkThemeRenderAs : lightThemeRenderAs}\n $color={isDarkTheme ? 'WHITE_T_87' : 'BLACK'}\n >\n {label}\n </Text>\n </Styled.SelectOptionWrapper>\n );\n};\n\nexport default SelectOption;\n"],"names":["SelectOption","option","selected","onChange","theme","id","label","handleOnClick","useCallback","lightThemeRenderAs","darkThemeRenderAs","isDarkTheme","Styled.SelectOptionWrapper","jsx","Text"],"mappings":";;;;AAMA,MAAMA,IAAe,CAAiC;AAAA,EACpD,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AACF,MAAgD;AACxC,QAAA,EAAE,IAAAC,GAAI,OAAAC,EAAU,IAAAL,GAEhBM,IAAgBC,EAAY,MAAM;AACtC,IAAAL,EAASE,GAAIJ,CAAM;AAAA,EAClB,GAAA,CAACE,GAAUE,GAAIJ,CAAM,CAAC,GAEnBQ,IAAqBP,IAAW,aAAa,OAC7CQ,IAAoBR,IAAW,aAAa,OAC5CS,IAAcP,MAAU;AAE9B,2BACGQ,GAAA,EAA2B,SAASL,GAAe,WAAU,4BAC5D,UAAA,gBAAAM;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAWH,IAAcD,IAAoBD;AAAA,MAC7C,QAAQE,IAAc,eAAe;AAAA,MAEpC,UAAAL;AAAA,IAAA;AAAA,EAEL,EAAA,CAAA;AAEJ;"}
@@ -29,7 +29,7 @@ const S = ({
29
29
  /* @__PURE__ */ o(
30
30
  a,
31
31
  {
32
- $renderAs: t ? s ? "ub2-bold" : "ub2" : s ? "ub1-bold" : "ub1",
32
+ $renderAs: t ? s ? "ub3-bold" : "ub3" : s ? "ub2-bold" : "ub2",
33
33
  $color: t ? "WHITE_T_87" : "BLACK",
34
34
  $textDecoration: u,
35
35
  children: $
@@ -1 +1 @@
1
- {"version":3,"file":"select-section.js","sources":["../../../../../../src/features/ui/inputs/base-select-input/select-section/select-section.tsx"],"sourcesContent":["import { memo, useCallback, type ReactElement } from 'react';\n\nimport SectionList from '../../../section-list/section-list';\nimport type { ISectionOption } from '../../../section-list/section-list-types';\nimport Text from '../../../text/text';\nimport type { ISelectOption } from '../base-select-input-types';\nimport * as Styled from './select-section-styled';\nimport type { ISelectSection } from './select-section-types';\n\nconst SelectSectionComponent = <IDType extends string | number>({\n sectionOptions,\n theme,\n value,\n onChange,\n}: ISelectSection<IDType>): ReactElement => {\n const isDarkTheme = theme === 'dark';\n\n const renderSectionHeader = useCallback(\n (section: ISectionOption<ISelectOption<IDType>>) => {\n return (\n <Styled.SelectOptionHeader $gutterX={1}>\n <Text $renderAs=\"ac4\" $color={isDarkTheme ? 'WHITE_T_38' : 'BLACK_T_38'}>\n {section.title}\n </Text>\n </Styled.SelectOptionHeader>\n );\n },\n [isDarkTheme],\n );\n\n const renderItem = useCallback(\n (dataItem: ISelectOption<IDType>) => {\n const { id, label, tag, textDecoration } = dataItem;\n const selected = id === value;\n const lightThemeRenderAs = selected ? 'ub1-bold' : 'ub1';\n const darkThemeRenderAs = selected ? 'ub2-bold' : 'ub2';\n const Tag = tag ? (tag as ReactElement) : null;\n\n return (\n <Styled.SelectOptionWrapper\n className=\"base-select-input-option\"\n onClick={() => onChange(id, dataItem)}\n $width=\"100%\"\n $flexDirection=\"row\"\n $justifyContent=\"space-between\"\n $alignItems=\"center\"\n $flexGapX={0.5}\n >\n <Text\n $renderAs={isDarkTheme ? darkThemeRenderAs : lightThemeRenderAs}\n $color={isDarkTheme ? 'WHITE_T_87' : 'BLACK'}\n $textDecoration={textDecoration}\n >\n {label}\n </Text>\n\n {Tag}\n </Styled.SelectOptionWrapper>\n );\n },\n [value, isDarkTheme, onChange],\n );\n\n return (\n <SectionList<ISelectOption<IDType>>\n data={sectionOptions}\n renderSectionHeader={renderSectionHeader}\n renderItem={renderItem}\n keyExtractor={({ id }, idx) => `${id}_${idx}`}\n />\n );\n};\n\nconst SelectSection = memo(SelectSectionComponent) as <IDType extends string | number>(\n props: ISelectSection<IDType>,\n) => ReactElement;\n\nexport default SelectSection;\n"],"names":["SelectSectionComponent","sectionOptions","theme","value","onChange","isDarkTheme","renderSectionHeader","useCallback","section","Styled.SelectOptionHeader","jsx","Text","renderItem","dataItem","id","label","tag","textDecoration","selected","jsxs","Styled.SelectOptionWrapper","SectionList","idx","SelectSection","memo"],"mappings":";;;;;AASA,MAAMA,IAAyB,CAAiC;AAAA,EAC9D,gBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AACF,MAA4C;AAC1C,QAAMC,IAAcH,MAAU,QAExBI,IAAsBC;AAAA,IAC1B,CAACC,wBAEIC,GAAA,EAA0B,UAAU,GACnC,UAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,OAAM,QAAQN,IAAc,eAAe,cACxD,UAAAG,EAAQ,OACX,EACF,CAAA;AAAA,IAGJ,CAACH,CAAW;AAAA,EAAA,GAGRO,IAAaL;AAAA,IACjB,CAACM,MAAoC;AACnC,YAAM,EAAE,IAAAC,GAAI,OAAAC,GAAO,KAAAC,GAAK,gBAAAC,MAAmBJ,GACrCK,IAAWJ,MAAOX;AAMtB,aAAA,gBAAAgB;AAAA,QAACC;AAAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,SAAS,MAAMhB,EAASU,GAAID,CAAQ;AAAA,UACpC,QAAO;AAAA,UACP,gBAAe;AAAA,UACf,iBAAgB;AAAA,UAChB,aAAY;AAAA,UACZ,WAAW;AAAA,UAEX,UAAA;AAAA,YAAA,gBAAAH;AAAA,cAACC;AAAA,cAAA;AAAA,gBACC,WAAWN,IAdSa,IAAW,aAAa,QADvBA,IAAW,aAAa;AAAA,gBAgB7C,QAAQb,IAAc,eAAe;AAAA,gBACrC,iBAAiBY;AAAA,gBAEhB,UAAAF;AAAA,cAAA;AAAA,YACH;AAAA,YAlBQC,KAA8B;AAAA,UAoBrC;AAAA,QAAA;AAAA,MAAA;AAAA,IAGP;AAAA,IACA,CAACb,GAAOE,GAAaD,CAAQ;AAAA,EAAA;AAI7B,SAAA,gBAAAM;AAAA,IAACW;AAAA,IAAA;AAAA,MACC,MAAMpB;AAAA,MACN,qBAAAK;AAAA,MACA,YAAAM;AAAA,MACA,cAAc,CAAC,EAAE,IAAAE,KAAMQ,MAAQ,GAAGR,CAAE,IAAIQ,CAAG;AAAA,IAAA;AAAA,EAAA;AAGjD,GAEMC,IAAgBC,EAAKxB,CAAsB;"}
1
+ {"version":3,"file":"select-section.js","sources":["../../../../../../src/features/ui/inputs/base-select-input/select-section/select-section.tsx"],"sourcesContent":["import { memo, useCallback, type ReactElement } from 'react';\n\nimport SectionList from '../../../section-list/section-list';\nimport type { ISectionOption } from '../../../section-list/section-list-types';\nimport Text from '../../../text/text';\nimport type { ISelectOption } from '../base-select-input-types';\nimport * as Styled from './select-section-styled';\nimport type { ISelectSection } from './select-section-types';\n\nconst SelectSectionComponent = <IDType extends string | number>({\n sectionOptions,\n theme,\n value,\n onChange,\n}: ISelectSection<IDType>): ReactElement => {\n const isDarkTheme = theme === 'dark';\n\n const renderSectionHeader = useCallback(\n (section: ISectionOption<ISelectOption<IDType>>) => {\n return (\n <Styled.SelectOptionHeader $gutterX={1}>\n <Text $renderAs=\"ac4\" $color={isDarkTheme ? 'WHITE_T_38' : 'BLACK_T_38'}>\n {section.title}\n </Text>\n </Styled.SelectOptionHeader>\n );\n },\n [isDarkTheme],\n );\n\n const renderItem = useCallback(\n (dataItem: ISelectOption<IDType>) => {\n const { id, label, tag, textDecoration } = dataItem;\n const selected = id === value;\n const lightThemeRenderAs = selected ? 'ub2-bold' : 'ub2';\n const darkThemeRenderAs = selected ? 'ub3-bold' : 'ub3';\n const Tag = tag ? (tag as ReactElement) : null;\n\n return (\n <Styled.SelectOptionWrapper\n className=\"base-select-input-option\"\n onClick={() => onChange(id, dataItem)}\n $width=\"100%\"\n $flexDirection=\"row\"\n $justifyContent=\"space-between\"\n $alignItems=\"center\"\n $flexGapX={0.5}\n >\n <Text\n $renderAs={isDarkTheme ? darkThemeRenderAs : lightThemeRenderAs}\n $color={isDarkTheme ? 'WHITE_T_87' : 'BLACK'}\n $textDecoration={textDecoration}\n >\n {label}\n </Text>\n\n {Tag}\n </Styled.SelectOptionWrapper>\n );\n },\n [value, isDarkTheme, onChange],\n );\n\n return (\n <SectionList<ISelectOption<IDType>>\n data={sectionOptions}\n renderSectionHeader={renderSectionHeader}\n renderItem={renderItem}\n keyExtractor={({ id }, idx) => `${id}_${idx}`}\n />\n );\n};\n\nconst SelectSection = memo(SelectSectionComponent) as <IDType extends string | number>(\n props: ISelectSection<IDType>,\n) => ReactElement;\n\nexport default SelectSection;\n"],"names":["SelectSectionComponent","sectionOptions","theme","value","onChange","isDarkTheme","renderSectionHeader","useCallback","section","Styled.SelectOptionHeader","jsx","Text","renderItem","dataItem","id","label","tag","textDecoration","selected","jsxs","Styled.SelectOptionWrapper","SectionList","idx","SelectSection","memo"],"mappings":";;;;;AASA,MAAMA,IAAyB,CAAiC;AAAA,EAC9D,gBAAAC;AAAA,EACA,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+35,7 @@ const $ = ({
35
35
  placeholder: s
36
36
  }
37
37
  ),
38
- /* @__PURE__ */ t(I, { $renderAs: "ub3", $color: "REAL_BLACK", children: "/" }),
38
+ /* @__PURE__ */ t(I, { $renderAs: "ub4", $color: "REAL_BLACK", children: "/" }),
39
39
  /* @__PURE__ */ t(
40
40
  p,
41
41
  {
@@ -1 +1 @@
1
- {"version":3,"file":"num-range-input.js","sources":["../../../../../src/features/ui/inputs/num-range-input/num-range-input.tsx"],"sourcesContent":["import { type FC, type ChangeEvent } from 'react';\n\nimport FlexView from '../../layout/flex-view';\nimport Text from '../../text/text';\nimport { normalizeInputValue } from '../percentile-input/percentile-input-helpers';\nimport TextInput from '../text-input/text-input';\nimport { isValueInRange } from './num-range-helpers';\nimport type { NumRangeInputProps } from './num-range-input-types';\n\n//TODO: Extract shared normalization logic to a base component - BaseNumericInput\n\nconst NumRangeInput: FC<NumRangeInputProps> = ({\n onChange,\n value,\n middleMin,\n middleMax,\n endMin,\n endMax,\n middlePlaceholder = '',\n endPlaceholder = '',\n}) => {\n const handleMiddleChange = (e: ChangeEvent<HTMLInputElement>) => {\n const normalizedValue = normalizeInputValue(e.target.value);\n\n // TODO: need to handle validation onSubmit/onBlur instead of onValueChange\n if (isValueInRange(normalizedValue, middleMin, middleMax)) {\n onChange({ middle: normalizedValue, end: value.end });\n }\n };\n\n const handleEndChange = (e: ChangeEvent<HTMLInputElement>) => {\n const normalizedValue = normalizeInputValue(e.target.value);\n\n if (isValueInRange(normalizedValue, endMin, endMax)) {\n onChange({ middle: value.middle, end: normalizedValue });\n }\n };\n\n return (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexGapX={1}>\n <TextInput\n renderAs=\"primary\"\n widthX={6}\n type=\"number\"\n min={middleMin}\n max={middleMax}\n value={value.middle ?? ''}\n onChange={handleMiddleChange}\n placeholder={middlePlaceholder}\n />\n <Text $renderAs=\"ub3\" $color=\"REAL_BLACK\">\n /\n </Text>\n <TextInput\n renderAs=\"primary\"\n type=\"number\"\n widthX={6}\n min={endMin}\n max={endMax}\n value={value.end ?? ''}\n onChange={handleEndChange}\n placeholder={endPlaceholder}\n />\n </FlexView>\n );\n};\n\nexport default NumRangeInput;\n"],"names":["NumRangeInput","onChange","value","middleMin","middleMax","endMin","endMax","middlePlaceholder","endPlaceholder","handleMiddleChange","e","normalizedValue","normalizeInputValue","isValueInRange","handleEndChange","FlexView","jsx","TextInput","Text","NumRangeInput$1"],"mappings":";;;;;;AAWA,MAAMA,IAAwC,CAAC;AAAA,EAC7C,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,mBAAAC,IAAoB;AAAA,EACpB,gBAAAC,IAAiB;AACnB,MAAM;AACE,QAAAC,IAAqB,CAACC,MAAqC;AAC/D,UAAMC,IAAkBC,EAAoBF,EAAE,OAAO,KAAK;AAG1D,IAAIG,EAAeF,GAAiBR,GAAWC,CAAS,KACtDH,EAAS,EAAE,QAAQU,GAAiB,KAAKT,EAAM,KAAK;AAAA,EACtD,GAGIY,IAAkB,CAACJ,MAAqC;AAC5D,UAAMC,IAAkBC,EAAoBF,EAAE,OAAO,KAAK;AAE1D,IAAIG,EAAeF,GAAiBN,GAAQC,CAAM,KAChDL,EAAS,EAAE,QAAQC,EAAM,QAAQ,KAAKS,GAAiB;AAAA,EACzD;AAGF,2BACGI,GAAS,EAAA,gBAAe,OAAM,aAAY,UAAS,WAAW,GAC7D,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,QAAQ;AAAA,QACR,MAAK;AAAA,QACL,KAAKd;AAAA,QACL,KAAKC;AAAA,QACL,OAAOF,EAAM,UAAU;AAAA,QACvB,UAAUO;AAAA,QACV,aAAaF;AAAA,MAAA;AAAA,IACf;AAAA,sBACCW,GAAK,EAAA,WAAU,OAAM,QAAO,cAAa,UAE1C,KAAA;AAAA,IACA,gBAAAF;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,MAAK;AAAA,QACL,QAAQ;AAAA,QACR,KAAKZ;AAAA,QACL,KAAKC;AAAA,QACL,OAAOJ,EAAM,OAAO;AAAA,QACpB,UAAUY;AAAA,QACV,aAAaN;AAAA,MAAA;AAAA,IACf;AAAA,EACF,EAAA,CAAA;AAEJ,GAEAW,IAAenB;"}
1
+ {"version":3,"file":"num-range-input.js","sources":["../../../../../src/features/ui/inputs/num-range-input/num-range-input.tsx"],"sourcesContent":["import { type FC, type ChangeEvent } from 'react';\n\nimport FlexView from '../../layout/flex-view';\nimport Text from '../../text/text';\nimport { normalizeInputValue } from '../percentile-input/percentile-input-helpers';\nimport TextInput from '../text-input/text-input';\nimport { isValueInRange } from './num-range-helpers';\nimport type { NumRangeInputProps } from './num-range-input-types';\n\n//TODO: Extract shared normalization logic to a base component - BaseNumericInput\n\nconst NumRangeInput: FC<NumRangeInputProps> = ({\n onChange,\n value,\n middleMin,\n middleMax,\n endMin,\n endMax,\n middlePlaceholder = '',\n endPlaceholder = '',\n}) => {\n const handleMiddleChange = (e: ChangeEvent<HTMLInputElement>) => {\n const normalizedValue = normalizeInputValue(e.target.value);\n\n // TODO: need to handle validation onSubmit/onBlur instead of onValueChange\n if (isValueInRange(normalizedValue, middleMin, middleMax)) {\n onChange({ middle: normalizedValue, end: value.end });\n }\n };\n\n const handleEndChange = (e: ChangeEvent<HTMLInputElement>) => {\n const normalizedValue = normalizeInputValue(e.target.value);\n\n if (isValueInRange(normalizedValue, endMin, endMax)) {\n onChange({ middle: value.middle, end: normalizedValue });\n }\n };\n\n return (\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $flexGapX={1}>\n <TextInput\n renderAs=\"primary\"\n widthX={6}\n type=\"number\"\n min={middleMin}\n max={middleMax}\n value={value.middle ?? ''}\n onChange={handleMiddleChange}\n placeholder={middlePlaceholder}\n />\n <Text $renderAs=\"ub4\" $color=\"REAL_BLACK\">\n /\n </Text>\n <TextInput\n renderAs=\"primary\"\n type=\"number\"\n widthX={6}\n min={endMin}\n max={endMax}\n value={value.end ?? ''}\n onChange={handleEndChange}\n placeholder={endPlaceholder}\n />\n </FlexView>\n );\n};\n\nexport default NumRangeInput;\n"],"names":["NumRangeInput","onChange","value","middleMin","middleMax","endMin","endMax","middlePlaceholder","endPlaceholder","handleMiddleChange","e","normalizedValue","normalizeInputValue","isValueInRange","handleEndChange","FlexView","jsx","TextInput","Text","NumRangeInput$1"],"mappings":";;;;;;AAWA,MAAMA,IAAwC,CAAC;AAAA,EAC7C,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,mBAAAC,IAAoB;AAAA,EACpB,gBAAAC,IAAiB;AACnB,MAAM;AACE,QAAAC,IAAqB,CAACC,MAAqC;AAC/D,UAAMC,IAAkBC,EAAoBF,EAAE,OAAO,KAAK;AAG1D,IAAIG,EAAeF,GAAiBR,GAAWC,CAAS,KACtDH,EAAS,EAAE,QAAQU,GAAiB,KAAKT,EAAM,KAAK;AAAA,EACtD,GAGIY,IAAkB,CAACJ,MAAqC;AAC5D,UAAMC,IAAkBC,EAAoBF,EAAE,OAAO,KAAK;AAE1D,IAAIG,EAAeF,GAAiBN,GAAQC,CAAM,KAChDL,EAAS,EAAE,QAAQC,EAAM,QAAQ,KAAKS,GAAiB;AAAA,EACzD;AAGF,2BACGI,GAAS,EAAA,gBAAe,OAAM,aAAY,UAAS,WAAW,GAC7D,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,QAAQ;AAAA,QACR,MAAK;AAAA,QACL,KAAKd;AAAA,QACL,KAAKC;AAAA,QACL,OAAOF,EAAM,UAAU;AAAA,QACvB,UAAUO;AAAA,QACV,aAAaF;AAAA,MAAA;AAAA,IACf;AAAA,sBACCW,GAAK,EAAA,WAAU,OAAM,QAAO,cAAa,UAE1C,KAAA;AAAA,IACA,gBAAAF;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,MAAK;AAAA,QACL,QAAQ;AAAA,QACR,KAAKZ;AAAA,QACL,KAAKC;AAAA,QACL,OAAOJ,EAAM,OAAO;AAAA,QACpB,UAAUY;AAAA,QACV,aAAaN;AAAA,MAAA;AAAA,IACf;AAAA,EACF,EAAA,CAAA;AAEJ,GAEAW,IAAenB;"}
@@ -17,7 +17,7 @@ const $ = ({
17
17
  }, [r, n, e]);
18
18
  return /* @__PURE__ */ s(f, { onClick: p, children: [
19
19
  /* @__PURE__ */ i(t, { $size: o, $innerCircle: !1, children: r && /* @__PURE__ */ i(c, { children: /* @__PURE__ */ i(t, { $size: o * 0.5, $innerCircle: !0 }) }) }),
20
- /* @__PURE__ */ i(m, { $renderAs: r ? "ub1-bold" : "ub1", children: l })
20
+ /* @__PURE__ */ i(m, { $renderAs: r ? "ub2-bold" : "ub2", children: l })
21
21
  ] });
22
22
  };
23
23
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"radio-option.js","sources":["../../../../../../src/features/ui/inputs/radio-input/radio-option/radio-option.tsx"],"sourcesContent":["import { useCallback, type ReactElement } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport * as Styled from './radio-option-styled';\nimport type { IRadioOptionProps } from './radio-option-types';\n\nconst RadioOption = <IDType extends string | number>({\n id,\n label,\n checked,\n onChange,\n}: IRadioOptionProps<IDType>): ReactElement => {\n const {\n layout: { gutter },\n } = useTheme();\n const handleOnClick = useCallback(() => {\n if (typeof onChange !== 'function') {\n throw new Error('onChange must be a function');\n }\n\n if (!checked) onChange(id);\n }, [checked, onChange, id]);\n\n return (\n <Styled.RadioOptionWrapper onClick={handleOnClick}>\n <Styled.InputOptionCircle $size={gutter} $innerCircle={false}>\n {checked && (\n <Styled.InputOptionInnerCircleWrraper>\n <Styled.InputOptionCircle $size={gutter * 0.5} $innerCircle={true} />\n </Styled.InputOptionInnerCircleWrraper>\n )}\n </Styled.InputOptionCircle>\n <Styled.Label $renderAs={checked ? 'ub1-bold' : 'ub1'}>{label}</Styled.Label>\n </Styled.RadioOptionWrapper>\n );\n};\n\nexport default RadioOption;\n"],"names":["RadioOption","id","label","checked","onChange","gutter","useTheme","handleOnClick","useCallback","jsxs","Styled.RadioOptionWrapper","jsx","Styled.InputOptionCircle","Styled.InputOptionInnerCircleWrraper","Styled.Label"],"mappings":";;;;AAMA,MAAMA,IAAc,CAAiC;AAAA,EACnD,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AACF,MAA+C;AACvC,QAAA;AAAA,IACJ,QAAQ,EAAE,QAAAC,EAAO;AAAA,MACfC,EAAS,GACPC,IAAgBC,EAAY,MAAM;AAClC,QAAA,OAAOJ,KAAa;AAChB,YAAA,IAAI,MAAM,6BAA6B;AAG3C,IAACD,KAASC,EAASH,CAAE;AAAA,EACxB,GAAA,CAACE,GAASC,GAAUH,CAAE,CAAC;AAE1B,SACG,gBAAAQ,EAAAC,GAAA,EAA0B,SAASH,GAClC,UAAA;AAAA,IAAC,gBAAAI,EAAAC,GAAA,EAAyB,OAAOP,GAAQ,cAAc,IACpD,UACCF,KAAA,gBAAAQ,EAACE,GAAA,EACC,UAAC,gBAAAF,EAAAC,GAAA,EAAyB,OAAOP,IAAS,KAAK,cAAc,GAAM,CAAA,EACrE,CAAA,GAEJ;AAAA,IACA,gBAAAM,EAACG,GAAA,EAAa,WAAWX,IAAU,aAAa,OAAQ,UAAMD,GAAA;AAAA,EAChE,EAAA,CAAA;AAEJ;"}
1
+ {"version":3,"file":"radio-option.js","sources":["../../../../../../src/features/ui/inputs/radio-input/radio-option/radio-option.tsx"],"sourcesContent":["import { useCallback, type ReactElement } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport * as Styled from './radio-option-styled';\nimport type { IRadioOptionProps } from './radio-option-types';\n\nconst RadioOption = <IDType extends string | number>({\n id,\n label,\n checked,\n onChange,\n}: IRadioOptionProps<IDType>): ReactElement => {\n const {\n layout: { gutter },\n } = useTheme();\n const handleOnClick = useCallback(() => {\n if (typeof onChange !== 'function') {\n throw new Error('onChange must be a function');\n }\n\n if (!checked) onChange(id);\n }, [checked, onChange, id]);\n\n return (\n <Styled.RadioOptionWrapper onClick={handleOnClick}>\n <Styled.InputOptionCircle $size={gutter} $innerCircle={false}>\n {checked && (\n <Styled.InputOptionInnerCircleWrraper>\n <Styled.InputOptionCircle $size={gutter * 0.5} $innerCircle={true} />\n </Styled.InputOptionInnerCircleWrraper>\n )}\n </Styled.InputOptionCircle>\n <Styled.Label $renderAs={checked ? 'ub2-bold' : 'ub2'}>{label}</Styled.Label>\n </Styled.RadioOptionWrapper>\n );\n};\n\nexport default RadioOption;\n"],"names":["RadioOption","id","label","checked","onChange","gutter","useTheme","handleOnClick","useCallback","jsxs","Styled.RadioOptionWrapper","jsx","Styled.InputOptionCircle","Styled.InputOptionInnerCircleWrraper","Styled.Label"],"mappings":";;;;AAMA,MAAMA,IAAc,CAAiC;AAAA,EACnD,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AACF,MAA+C;AACvC,QAAA;AAAA,IACJ,QAAQ,EAAE,QAAAC,EAAO;AAAA,MACfC,EAAS,GACPC,IAAgBC,EAAY,MAAM;AAClC,QAAA,OAAOJ,KAAa;AAChB,YAAA,IAAI,MAAM,6BAA6B;AAG3C,IAACD,KAASC,EAASH,CAAE;AAAA,EACxB,GAAA,CAACE,GAASC,GAAUH,CAAE,CAAC;AAE1B,SACG,gBAAAQ,EAAAC,GAAA,EAA0B,SAASH,GAClC,UAAA;AAAA,IAAC,gBAAAI,EAAAC,GAAA,EAAyB,OAAOP,GAAQ,cAAc,IACpD,UACCF,KAAA,gBAAAQ,EAACE,GAAA,EACC,UAAC,gBAAAF,EAAAC,GAAA,EAAyB,OAAOP,IAAS,KAAK,cAAc,GAAM,CAAA,EACrE,CAAA,GAEJ;AAAA,IACA,gBAAAM,EAACG,GAAA,EAAa,WAAWX,IAAU,aAAa,OAAQ,UAAMD,GAAA;AAAA,EAChE,EAAA,CAAA;AAEJ;"}
@@ -41,7 +41,7 @@ const F = ({
41
41
  /* @__PURE__ */ e(A, { children: d }),
42
42
  /* @__PURE__ */ o(g, { $gutter: i ? 16 : 0, $flexGapX: 0.25, children: [
43
43
  /* @__PURE__ */ e(a, { $renderAs: "ab1-bold", children: c }),
44
- l && /* @__PURE__ */ e(a, { $renderAs: "ub2", $color: "BLACK_75", children: l })
44
+ l && /* @__PURE__ */ e(a, { $renderAs: "ub3", $color: "BLACK_75", children: l })
45
45
  ] })
46
46
  ]
47
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"radio-card-option.js","sources":["../../../../../src/features/ui/radio-cards/radio-card-option/radio-card-option.tsx"],"sourcesContent":["import { useCallback } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport useResponseHandler from '../../hooks/use-response-handler';\nimport FlexView from '../../layout/flex-view';\nimport Text from '../../text/text';\nimport * as Styled from './radio-card-option-styled';\nimport type { IRadioCardOptionProps } from './radio-card-option-types';\n\nconst RadioCardOption = <IDTypes extends string | number>({\n id,\n title,\n description,\n checked,\n Icon,\n onChange,\n width,\n widthX,\n analyticsLabel,\n analyticsProps,\n horizontalCard,\n}: IRadioCardOptionProps<IDTypes>) => {\n const theme = useTheme();\n const { gutter } = theme.layout;\n\n const handleTracking = useResponseHandler({ analyticsLabel, analyticsProps });\n\n const handleOnCardClick = useCallback(() => {\n if (typeof onChange !== 'function') {\n throw new Error('onChange must be a function');\n }\n\n if (!checked) {\n onChange(id);\n handleTracking(id);\n }\n }, [checked, handleTracking, id, onChange]);\n\n return (\n <Styled.DummyBorder $selected={checked}>\n <Styled.RadioCardOptionWrapper\n $width={width}\n $widthX={widthX}\n $selected={checked}\n onClick={handleOnCardClick}\n >\n <Styled.RadioImageContainer\n $flexDirection={horizontalCard ? 'row' : 'column'}\n $alignItems=\"flex-start\"\n $flexGap={horizontalCard ? 0 : 16}\n >\n <Styled.ImageWrapper>{Icon}</Styled.ImageWrapper>\n\n <FlexView $gutter={horizontalCard ? 16 : 0} $flexGapX={0.25}>\n <Text $renderAs=\"ab1-bold\">{title}</Text>\n {description && (\n <Text $renderAs=\"ub2\" $color=\"BLACK_75\">\n {description}\n </Text>\n )}\n </FlexView>\n </Styled.RadioImageContainer>\n <Styled.InputOptionCircle $size={gutter} $innerCircle={false}>\n {checked && (\n <Styled.InputOptionInnerCircle>\n <Styled.InputOptionCircle $size={gutter * 0.5} $innerCircle={true} />\n </Styled.InputOptionInnerCircle>\n )}\n </Styled.InputOptionCircle>\n </Styled.RadioCardOptionWrapper>\n </Styled.DummyBorder>\n );\n};\n\nexport default RadioCardOption;\n"],"names":["RadioCardOption","id","title","description","checked","Icon","onChange","width","widthX","analyticsLabel","analyticsProps","horizontalCard","theme","useTheme","gutter","handleTracking","useResponseHandler","handleOnCardClick","useCallback","jsx","Styled.DummyBorder","jsxs","Styled.RadioCardOptionWrapper","Styled.RadioImageContainer","Styled.ImageWrapper","FlexView","Text","Styled.InputOptionCircle","Styled.InputOptionInnerCircle"],"mappings":";;;;;;;AASA,MAAMA,IAAkB,CAAkC;AAAA,EACxD,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,gBAAAC;AACF,MAAsC;AACpC,QAAMC,IAAQC,KACR,EAAE,QAAAC,EAAO,IAAIF,EAAM,QAEnBG,IAAiBC,EAAmB,EAAE,gBAAAP,GAAgB,gBAAAC,EAAgB,CAAA,GAEtEO,IAAoBC,EAAY,MAAM;AACtC,QAAA,OAAOZ,KAAa;AAChB,YAAA,IAAI,MAAM,6BAA6B;AAG/C,IAAKF,MACHE,EAASL,CAAE,GACXc,EAAed,CAAE;AAAA,KAElB,CAACG,GAASW,GAAgBd,GAAIK,CAAQ,CAAC;AAE1C,SACG,gBAAAa,EAAAC,GAAA,EAAmB,WAAWhB,GAC7B,UAAA,gBAAAiB;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,QAAQf;AAAA,MACR,SAASC;AAAA,MACT,WAAWJ;AAAA,MACX,SAASa;AAAA,MAET,UAAA;AAAA,QAAA,gBAAAI;AAAA,UAACE;AAAAA,UAAA;AAAA,YACC,gBAAgBZ,IAAiB,QAAQ;AAAA,YACzC,aAAY;AAAA,YACZ,UAAUA,IAAiB,IAAI;AAAA,YAE/B,UAAA;AAAA,cAAC,gBAAAQ,EAAAK,GAAA,EAAqB,UAAKnB,EAAA,CAAA;AAAA,gCAE1BoB,GAAS,EAAA,SAASd,IAAiB,KAAK,GAAG,WAAW,MACrD,UAAA;AAAA,gBAAC,gBAAAQ,EAAAO,GAAA,EAAK,WAAU,YAAY,UAAMxB,GAAA;AAAA,gBACjCC,KACE,gBAAAgB,EAAAO,GAAA,EAAK,WAAU,OAAM,QAAO,YAC1B,UACHvB,GAAA;AAAA,cAAA,GAEJ;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,QACA,gBAAAgB,EAACQ,GAAA,EAAyB,OAAOb,GAAQ,cAAc,IACpD,UAAAV,KACE,gBAAAe,EAAAS,GAAA,EACC,UAAA,gBAAAT,EAACQ,GAAA,EAAyB,OAAOb,IAAS,KAAK,cAAc,GAAM,CAAA,EACrE,CAAA,GAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
1
+ {"version":3,"file":"radio-card-option.js","sources":["../../../../../src/features/ui/radio-cards/radio-card-option/radio-card-option.tsx"],"sourcesContent":["import { useCallback } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport useResponseHandler from '../../hooks/use-response-handler';\nimport FlexView from '../../layout/flex-view';\nimport Text from '../../text/text';\nimport * as Styled from './radio-card-option-styled';\nimport type { IRadioCardOptionProps } from './radio-card-option-types';\n\nconst RadioCardOption = <IDTypes extends string | number>({\n id,\n title,\n description,\n checked,\n Icon,\n onChange,\n width,\n widthX,\n analyticsLabel,\n analyticsProps,\n horizontalCard,\n}: IRadioCardOptionProps<IDTypes>) => {\n const theme = useTheme();\n const { gutter } = theme.layout;\n\n const handleTracking = useResponseHandler({ analyticsLabel, analyticsProps });\n\n const handleOnCardClick = useCallback(() => {\n if (typeof onChange !== 'function') {\n throw new Error('onChange must be a function');\n }\n\n if (!checked) {\n onChange(id);\n handleTracking(id);\n }\n }, [checked, handleTracking, id, onChange]);\n\n return (\n <Styled.DummyBorder $selected={checked}>\n <Styled.RadioCardOptionWrapper\n $width={width}\n $widthX={widthX}\n $selected={checked}\n onClick={handleOnCardClick}\n >\n <Styled.RadioImageContainer\n $flexDirection={horizontalCard ? 'row' : 'column'}\n $alignItems=\"flex-start\"\n $flexGap={horizontalCard ? 0 : 16}\n >\n <Styled.ImageWrapper>{Icon}</Styled.ImageWrapper>\n\n <FlexView $gutter={horizontalCard ? 16 : 0} $flexGapX={0.25}>\n <Text $renderAs=\"ab1-bold\">{title}</Text>\n {description && (\n <Text $renderAs=\"ub3\" $color=\"BLACK_75\">\n {description}\n </Text>\n )}\n </FlexView>\n </Styled.RadioImageContainer>\n <Styled.InputOptionCircle $size={gutter} $innerCircle={false}>\n {checked && (\n <Styled.InputOptionInnerCircle>\n <Styled.InputOptionCircle $size={gutter * 0.5} $innerCircle={true} />\n </Styled.InputOptionInnerCircle>\n )}\n </Styled.InputOptionCircle>\n </Styled.RadioCardOptionWrapper>\n </Styled.DummyBorder>\n );\n};\n\nexport default RadioCardOption;\n"],"names":["RadioCardOption","id","title","description","checked","Icon","onChange","width","widthX","analyticsLabel","analyticsProps","horizontalCard","theme","useTheme","gutter","handleTracking","useResponseHandler","handleOnCardClick","useCallback","jsx","Styled.DummyBorder","jsxs","Styled.RadioCardOptionWrapper","Styled.RadioImageContainer","Styled.ImageWrapper","Fl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HvB,GAAA;AAAA,cAAA,GAEJ;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,QACA,gBAAAgB,EAACQ,GAAA,EAAyB,OAAOb,GAAQ,cAAc,IACpD,UAAAV,KACE,gBAAAe,EAAAS,GAAA,EACC,UAAA,gBAAAT,EAACQ,GAAA,EAAyB,OAAOb,IAAS,KAAK,cAAc,GAAM,CAAA,EACrE,CAAA,GAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
@@ -25,10 +25,10 @@ function j({ stepsInfo: n = [], currentStep: e = 2 }) {
25
25
  $justifyContent: "center",
26
26
  $heightX: 1.25,
27
27
  $widthX: 1.25,
28
- children: r + 1 < e ? /* @__PURE__ */ t(l, { height: i, width: i }) : /* @__PURE__ */ t(m, { $renderAs: "ub3", $color: "WHITE", children: $ })
28
+ children: r + 1 < e ? /* @__PURE__ */ t(l, { height: i, width: i }) : /* @__PURE__ */ t(m, { $renderAs: "ub4", $color: "WHITE", children: $ })
29
29
  }
30
30
  ),
31
- r + 1 === e && /* @__PURE__ */ t(s, { $renderAs: "ub2", children: h })
31
+ r + 1 === e && /* @__PURE__ */ t(s, { $renderAs: "ub3", children: h })
32
32
  ]
33
33
  },
34
34
  r
@@ -1 +1 @@
1
- {"version":3,"file":"stepper.js","sources":["../../../../src/features/ui/stepper/stepper.tsx"],"sourcesContent":["import CheckIcon from '../../../assets/line-icons/icons/check';\nimport Text from '../text/text';\nimport { getTheme } from '../theme/get-theme';\nimport { MainWrapper, NumberWrapper, Wrapper, StyledText, HorizontalLine } from './stepper-styled';\nimport type { IStepperProps } from './stepper-types';\n\nconst { layout } = getTheme();\nconst { gutter } = layout;\n\nfunction Stepper({ stepsInfo = [], currentStep = 2 }: IStepperProps) {\n const percentageCompleted =\n stepsInfo.length && currentStep >= 1 ? ((currentStep - 1) / stepsInfo.length) * 100 : 0;\n\n return (\n <MainWrapper $flexDirection=\"row\" $width=\"fit-content\" $gutterX={0.625} $gapX={0.625}>\n <HorizontalLine $percentageCompleted={percentageCompleted} $height={1} />\n {stepsInfo.map(({ id, label }, idx) => (\n <Wrapper\n key={idx}\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background=\"WHITE\"\n >\n <NumberWrapper\n $stepNumber={idx + 1}\n $currentStep={currentStep}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $heightX={1.25}\n $widthX={1.25}\n >\n {idx + 1 < currentStep ? (\n <CheckIcon height={gutter} width={gutter} />\n ) : (\n <Text $renderAs=\"ub3\" $color=\"WHITE\">\n {id}\n </Text>\n )}\n </NumberWrapper>\n {idx + 1 === currentStep && <StyledText $renderAs=\"ub2\">{label}</StyledText>}\n </Wrapper>\n ))}\n </MainWrapper>\n );\n}\n\nexport default Stepper;\n"],"names":["layout","getTheme","gutter","Stepper","stepsInfo","currentStep","percentageCompleted","jsxs","MainWrapper","jsx","HorizontalLine","id","label","idx","Wrapper","NumberWrapper","CheckIcon","Text","StyledText"],"mappings":";;;;;AAMA,MAAM,EAAE,QAAAA,EAAO,IAAIC,KACb,EAAE,QAAAC,EAAW,IAAAF;AAEnB,SAASG,EAAQ,EAAE,WAAAC,IAAY,CAAI,GAAA,aAAAC,IAAc,KAAoB;AAC7D,QAAAC,IACJF,EAAU,UAAUC,KAAe,KAAMA,IAAc,KAAKD,EAAU,SAAU,MAAM;AAGtF,SAAA,gBAAAG,EAACC,KAAY,gBAAe,OAAM,QAAO,eAAc,UAAU,OAAO,OAAO,OAC7E,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAe,EAAA,sBAAsBJ,GAAqB,SAAS,GAAG;AAAA,IACtEF,EAAU,IAAI,CAAC,EAAE,IAAAO,GAAI,OAAAC,EAAA,GAASC,MAC7B,gBAAAN;AAAA,MAACO;AAAA,MAAA;AAAA,QAEC,gBAAe;AAAA,QACf,aAAY;AAAA,QACZ,iBAAgB;AAAA,QAChB,aAAY;AAAA,QAEZ,UAAA;AAAA,UAAA,gBAAAL;AAAA,YAACM;AAAA,YAAA;AAAA,cACC,aAAaF,IAAM;AAAA,cACnB,cAAcR;AAAA,cACd,aAAY;AAAA,cACZ,iBAAgB;AAAA,cAChB,UAAU;AAAA,cACV,SAAS;AAAA,cAER,cAAM,IAAIA,IACR,gBAAAI,EAAAO,GAAA,EAAU,QAAQd,GAAQ,OAAOA,EAAQ,CAAA,sBAEzCe,GAAK,EAAA,WAAU,OAAM,QAAO,SAC1B,UACHN,GAAA;AAAA,YAAA;AAAA,UAEJ;AAAA,UACCE,IAAM,MAAMR,uBAAgBa,GAAW,EAAA,WAAU,OAAO,UAAMN,GAAA;AAAA,QAAA;AAAA,MAAA;AAAA,MAtB1DC;AAAA,IAAA,CAwBR;AAAA,EACH,EAAA,CAAA;AAEJ;"}
1
+ {"version":3,"file":"stepper.js","sources":["../../../../src/features/ui/stepper/stepper.tsx"],"sourcesContent":["import CheckIcon from '../../../assets/line-icons/icons/check';\nimport Text from '../text/text';\nimport { getTheme } from '../theme/get-theme';\nimport { MainWrapper, NumberWrapper, Wrapper, StyledText, HorizontalLine } from './stepper-styled';\nimport type { IStepperProps } from './stepper-types';\n\nconst { layout } = getTheme();\nconst { gutter } = layout;\n\nfunction Stepper({ stepsInfo = [], currentStep = 2 }: IStepperProps) {\n const percentageCompleted =\n stepsInfo.length && currentStep >= 1 ? ((currentStep - 1) / stepsInfo.length) * 100 : 0;\n\n return (\n <MainWrapper $flexDirection=\"row\" $width=\"fit-content\" $gutterX={0.625} $gapX={0.625}>\n <HorizontalLine $percentageCompleted={percentageCompleted} $height={1} />\n {stepsInfo.map(({ id, label }, idx) => (\n <Wrapper\n key={idx}\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background=\"WHITE\"\n >\n <NumberWrapper\n $stepNumber={idx + 1}\n $currentStep={currentStep}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $heightX={1.25}\n $widthX={1.25}\n >\n {idx + 1 < currentStep ? (\n <CheckIcon height={gutter} width={gutter} />\n ) : (\n <Text $renderAs=\"ub4\" $color=\"WHITE\">\n {id}\n </Text>\n )}\n </NumberWrapper>\n {idx + 1 === currentStep && <StyledText $renderAs=\"ub3\">{label}</StyledText>}\n </Wrapper>\n ))}\n </MainWrapper>\n );\n}\n\nexport default Stepper;\n"],"names":["layout","getTheme","gutter","Stepper","stepsInfo","currentStep","percentageCompleted","jsxs","MainWrapper","jsx","HorizontalLine","id","label","idx","Wrapper","NumberWrapper","CheckIcon","Text","StyledText"],"mappings":";;;;;AAMA,MAAM,EAAE,QAAAA,EAAO,IAAIC,KACb,EAAE,QAAAC,EAAW,IAAAF;AAEnB,SAASG,EAAQ,EAAE,WAAAC,IAAY,CAAI,GAAA,aAAAC,IAAc,KAAoB;AAC7D,QAAAC,IACJF,EAAU,UAAUC,KAAe,KAAMA,IAAc,KAAKD,EAAU,SAAU,MAAM;AAGtF,SAAA,gBAAAG,EAACC,KAAY,gBAAe,OAAM,QAAO,eAAc,UAAU,OAAO,OAAO,OAC7E,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAe,EAAA,sBAAsBJ,GAAqB,SAAS,GAAG;AAAA,IACtEF,EAAU,IAAI,CAAC,EAAE,IAAAO,GAAI,OAAAC,EAAA,GAASC,MAC7B,gBAAAN;AAAA,MAACO;AAAA,MAAA;AAAA,QAEC,gBAAe;AAAA,QACf,aAAY;AAAA,QACZ,iBAAgB;AAAA,QAChB,aAAY;AAAA,QAEZ,UAAA;AAAA,UAAA,gBAAAL;AAAA,YAACM;AAAA,YAAA;AAAA,cACC,aAAaF,IAAM;AAAA,cACnB,cAAcR;AAAA,cACd,aAAY;AAAA,cACZ,iBAAgB;AAAA,cAChB,UAAU;AAAA,cACV,SAAS;AAAA,cAER,cAAM,IAAIA,IACR,gBAAAI,EAAAO,GAAA,EAAU,QAAQd,GAAQ,OAAOA,EAAQ,CAAA,sBAEzCe,GAAK,EAAA,WAAU,OAAM,QAAO,SAC1B,UACHN,GAAA;AAAA,YAAA;AAAA,UAEJ;AAAA,UACCE,IAAM,MAAMR,uBAAgBa,GAAW,EAAA,WAAU,OAAO,UAAMN,GAAA;AAAA,QAAA;AAAA,MAAA;AAAA,MAtB1DC;AAAA,IAAA,CAwBR;AAAA,EACH,EAAA,CAAA;AAEJ;"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import n from "../text/text.js";
3
3
  import { Wrapper as a } from "./tag-styled.js";
4
- const c = ({ text: o, backgroundColor: e, textColor: t }) => /* @__PURE__ */ r(a, { $backgroundColor: e, children: /* @__PURE__ */ r(n, { $renderAs: "ub3", $color: t, children: o }) }), i = c;
4
+ const c = ({ text: o, backgroundColor: e, textColor: t }) => /* @__PURE__ */ r(a, { $backgroundColor: e, children: /* @__PURE__ */ r(n, { $renderAs: "ub4", $color: t, children: o }) }), i = c;
5
5
  export {
6
6
  i as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"tag.js","sources":["../../../../src/features/ui/tag/tag.tsx"],"sourcesContent":["import { type FC } from 'react';\n\nimport Text from '../text/text';\nimport * as Styled from './tag-styled';\nimport type { ITagProps } from './tag-types';\n\nconst Tag: FC<ITagProps> = ({ text, backgroundColor, textColor }) => {\n return (\n <Styled.Wrapper $backgroundColor={backgroundColor}>\n <Text $renderAs=\"ub3\" $color={textColor}>\n {text}\n </Text>\n </Styled.Wrapper>\n );\n};\n\nexport default Tag;\n"],"names":["Tag","text","backgroundColor","textColor","jsx","Styled.Wrapper","Text","Tag$1"],"mappings":";;;AAMA,MAAMA,IAAqB,CAAC,EAAE,MAAAC,GAAM,iBAAAC,GAAiB,WAAAC,QAEhD,gBAAAC,EAAAC,GAAA,EAAe,kBAAkBH,GAChC,UAAC,gBAAAE,EAAAE,GAAA,EAAK,WAAU,OAAM,QAAQH,GAC3B,aACH,EACF,CAAA,GAIJI,IAAeP;"}
1
+ {"version":3,"file":"tag.js","sources":["../../../../src/features/ui/tag/tag.tsx"],"sourcesContent":["import { type FC } from 'react';\n\nimport Text from '../text/text';\nimport * as Styled from './tag-styled';\nimport type { ITagProps } from './tag-types';\n\nconst Tag: FC<ITagProps> = ({ text, backgroundColor, textColor }) => {\n return (\n <Styled.Wrapper $backgroundColor={backgroundColor}>\n <Text $renderAs=\"ub4\" $color={textColor}>\n {text}\n </Text>\n </Styled.Wrapper>\n );\n};\n\nexport default Tag;\n"],"names":["Tag","text","backgroundColor","textColor","jsx","Styled.Wrapper","Text","Tag$1"],"mappings":";;;AAMA,MAAMA,IAAqB,CAAC,EAAE,MAAAC,GAAM,iBAAAC,GAAiB,WAAAC,QAEhD,gBAAAC,EAAAC,GAAA,EAAe,kBAAkBH,GAChC,UAAC,gBAAAE,EAAAE,GAAA,EAAK,WAAU,OAAM,QAAQH,GAC3B,aACH,EACF,CAAA,GAIJI,IAAeP;"}
@@ -1 +1 @@
1
- {"version":3,"file":"text.js","sources":["../../../../src/features/ui/text/text.tsx"],"sourcesContent":["import { useMemo } from 'react';\nimport styled from 'styled-components';\n\nimport { EDeviceType } from '../theme/constants';\nimport type { TColorNames, TTextVariants } from '../types';\n\nexport interface TextProps {\n $renderAs: TTextVariants;\n $color?: TColorNames;\n $align?: 'auto' | 'left' | 'right' | 'center' | 'justify';\n $alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';\n $opacity?: number | undefined;\n $width?: number | string;\n $widthX?: number;\n $marginBottom?: number;\n $marginBottomX?: number;\n $inline?: boolean;\n $textDecoration?: string;\n $whiteSpace?: 'pre-line' | 'normal' | 'pre-wrap' | 'no-wrap' | 'pre' | 'break-spaces';\n $renderOnMobileAs?: TTextVariants;\n $renderOnTabletAs?: TTextVariants;\n $cursor?: 'pointer' | 'default' | 'text' | 'not-allowed' | 'move' | 'help';\n}\n\n/**\n * @param $renderAs (fallback for any device), @param $renderOnMobileAs, @param $renderOnTabletAs - The text variant to render as (ah1-ah4, ab1-ab3, ac1-ac4, ub1-ub3), anything else is deprecated\n */\nconst Text = styled.div<TextProps>(\n ({\n theme,\n $renderAs,\n $color,\n $align = 'left',\n $width,\n $widthX,\n $marginBottom,\n $marginBottomX,\n $alignSelf,\n $opacity = 1,\n $inline,\n $textDecoration,\n $whiteSpace,\n $renderOnMobileAs,\n $renderOnTabletAs,\n $cursor,\n }) => {\n const { text, colors, layout, device } = theme;\n const renderAs = useMemo(() => {\n if (device <= EDeviceType.MOBILE) {\n return $renderOnMobileAs || $renderOnTabletAs || $renderAs;\n }\n\n if (device <= EDeviceType.TABLET) {\n return $renderOnTabletAs || $renderAs;\n }\n\n return $renderAs;\n }, [device, $renderAs, $renderOnMobileAs, $renderOnTabletAs]);\n\n const {\n fontFamily,\n fontSize,\n lineHeight,\n letterSpacing,\n textTransform = 'none',\n } = text[renderAs];\n\n return `\n display: ${$inline ? 'inline-block' : 'block'};\n font-family: ${fontFamily};\n font-size: ${fontSize}px;\n text-align: ${$align};\n line-height: ${lineHeight}px;\n text-transform: ${textTransform};\n ${typeof letterSpacing === 'number' ? `letter-spacing: ${letterSpacing}px;` : ''}\n color: ${$color ? colors[$color] : colors.BLACK};\n opacity: ${$opacity};\n width: ${$width ? `${$width}` : 'auto'}${typeof $width === 'number' ? 'px' : ''};\n ${$widthX ? `width: ${$widthX * layout.gutter}px;` : ''}\n margin-bottom: ${$marginBottom ? `${$marginBottom}` : 'initial'}${\n typeof $marginBottom === 'number' ? 'px' : ''\n };\n ${$marginBottomX ? `margin-bottom: ${$marginBottomX * layout.gutter}px;` : ''}\n ${$alignSelf ? `align-self: ${$alignSelf};` : ''}\n ${$textDecoration ? `text-decoration: ${$textDecoration};` : ''}\n ${$whiteSpace ? `white-space: ${$whiteSpace};` : ''}\n ${$cursor ? `cursor: ${$cursor};` : ''}\n `;\n },\n);\n\nText.displayName = 'Text';\n\nexport default Text;\n"],"names":["Text","styled","theme","$renderAs","$color","$align","$width","$widthX","$marginBottom","$marginBottomX","$alignSelf","$opacity","$inline","$textDecoration","$whiteSpace","$renderOnMobileAs","$renderOnTabletAs","$cursor","text","colors","layout","device","renderAs","useMemo","EDeviceType","fontFamily","fontSize","lineHeight","letterSpacing","textTransform","Text$1"],"mappings":";;;AA2BA,MAAMA,IAAOC,EAAO;AAAA,EAClB,CAAC;AAAA,IACC,OAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,QAAAC,IAAS;AAAA,IACT,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,eAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,SAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,SAAAC;AAAA,EAAA,MACI;AACJ,UAAM,EAAE,MAAAC,GAAM,QAAAC,GAAQ,QAAAC,GAAQ,QAAAC,MAAWnB,GACnCoB,IAAWC,EAAQ,MACnBF,KAAUG,EAAY,SACjBT,KAAqBC,KAAqBb,IAG/CkB,KAAUG,EAAY,UACjBR,KAAqBb,GAI7B,CAACkB,GAAQlB,GAAWY,GAAmBC,CAAiB,CAAC,GAEtD;AAAA,MACJ,YAAAS;AAAA,MACA,UAAAC;AAAA,MACA,YAAAC;AAAA,MACA,eAAAC;AAAA,MACA,eAAAC,IAAgB;AAAA,IAAA,IACdX,EAAKI,CAAQ;AAEV,WAAA;AAAA,iBACMV,IAAU,iBAAiB,OAAO;AAAA,qBAC9Ba,CAAU;AAAA,mBACZC,CAAQ;AAAA,oBACPrB,CAAM;AAAA,qBACLsB,CAAU;AAAA,wBACPE,CAAa;AAAA,QAC7B,OAAOD,KAAkB,WAAW,mBAAmBA,CAAa,QAAQ,EAAE;AAAA,eACvExB,IAASe,EAAOf,CAAM,IAAIe,EAAO,KAAK;AAAA,iBACpCR,CAAQ;AAAA,eACVL,IAAS,GAAGA,CAAM,KAAK,MAAM,GAAG,OAAOA,KAAW,WAAW,OAAO,EAAE;AAAA,QAC7EC,IAAU,UAAUA,IAAUa,EAAO,MAAM,QAAQ,EAAE;AAAA,uBACtCZ,IAAgB,GAAGA,CAAa,KAAK,SAAS,GAC7D,OAAOA,KAAkB,WAAW,OAAO,EAC7C;AAAA,QACEC,IAAiB,kBAAkBA,IAAiBW,EAAO,MAAM,QAAQ,EAAE;AAAA,QAC3EV,IAAa,eAAeA,CAAU,MAAM,EAAE;AAAA,QAC9CG,IAAkB,oBAAoBA,CAAe,MAAM,EAAE;AAAA,QAC7DC,IAAc,gBAAgBA,CAAW,MAAM,EAAE;AAAA,QACjDG,IAAU,WAAWA,CAAO,MAAM,EAAE;AAAA;AAAA,EAE1C;AACF;AAEAjB,EAAK,cAAc;AAEnB,MAAA8B,IAAe9B;"}
1
+ {"version":3,"file":"text.js","sources":["../../../../src/features/ui/text/text.tsx"],"sourcesContent":["import { useMemo } from 'react';\nimport styled from 'styled-components';\n\nimport { EDeviceType } from '../theme/constants';\nimport type { TColorNames, TTextVariants } from '../types';\n\nexport interface TextProps {\n $renderAs: TTextVariants;\n $color?: TColorNames;\n $align?: 'auto' | 'left' | 'right' | 'center' | 'justify';\n $alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';\n $opacity?: number | undefined;\n $width?: number | string;\n $widthX?: number;\n $marginBottom?: number;\n $marginBottomX?: number;\n $inline?: boolean;\n $textDecoration?: string;\n $whiteSpace?: 'pre-line' | 'normal' | 'pre-wrap' | 'no-wrap' | 'pre' | 'break-spaces';\n $renderOnMobileAs?: TTextVariants;\n $renderOnTabletAs?: TTextVariants;\n $cursor?: 'pointer' | 'default' | 'text' | 'not-allowed' | 'move' | 'help';\n}\n\n/**\n * @param $renderAs (fallback for any device), @param $renderOnMobileAs, @param $renderOnTabletAs - The text variant to render as (ah1-ah4, ab1-ab3, ac1-ac4, ub1-ub4), anything else is deprecated\n */\nconst Text = styled.div<TextProps>(\n ({\n theme,\n $renderAs,\n $color,\n $align = 'left',\n $width,\n $widthX,\n $marginBottom,\n $marginBottomX,\n $alignSelf,\n $opacity = 1,\n $inline,\n $textDecoration,\n $whiteSpace,\n $renderOnMobileAs,\n $renderOnTabletAs,\n $cursor,\n }) => {\n const { text, colors, layout, device } = theme;\n const renderAs = useMemo(() => {\n if (device <= EDeviceType.MOBILE) {\n return $renderOnMobileAs || $renderOnTabletAs || $renderAs;\n }\n\n if (device <= EDeviceType.TABLET) {\n return $renderOnTabletAs || $renderAs;\n }\n\n return $renderAs;\n }, [device, $renderAs, $renderOnMobileAs, $renderOnTabletAs]);\n\n const {\n fontFamily,\n fontSize,\n lineHeight,\n letterSpacing,\n textTransform = 'none',\n } = text[renderAs];\n\n return `\n display: ${$inline ? 'inline-block' : 'block'};\n font-family: ${fontFamily};\n font-size: ${fontSize}px;\n text-align: ${$align};\n line-height: ${lineHeight}px;\n text-transform: ${textTransform};\n ${typeof letterSpacing === 'number' ? `letter-spacing: ${letterSpacing}px;` : ''}\n color: ${$color ? colors[$color] : colors.BLACK};\n opacity: ${$opacity};\n width: ${$width ? `${$width}` : 'auto'}${typeof $width === 'number' ? 'px' : ''};\n ${$widthX ? `width: ${$widthX * layout.gutter}px;` : ''}\n margin-bottom: ${$marginBottom ? `${$marginBottom}` : 'initial'}${\n typeof $marginBottom === 'number' ? 'px' : ''\n };\n ${$marginBottomX ? `margin-bottom: ${$marginBottomX * layout.gutter}px;` : ''}\n ${$alignSelf ? `align-self: ${$alignSelf};` : ''}\n ${$textDecoration ? `text-decoration: ${$textDecoration};` : ''}\n ${$whiteSpace ? `white-space: ${$whiteSpace};` : ''}\n ${$cursor ? `cursor: ${$cursor};` : ''}\n `;\n },\n);\n\nText.displayName = 'Text';\n\nexport default Text;\n"],"names":["Text","styled","theme","$renderAs","$color","$align","$width","$widthX","$marginBottom","$marginBottomX","$alignSelf","$opacity","$inline","$textDecoration","$whiteSpace","$renderOnMobileAs","$renderOnTabletAs","$cursor","text","colors","layout","device","renderAs","useMemo","EDeviceType","fontFamily","fontSize","lineHeight","letterSpacing","textTransform","Text$1"],"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AOA,KAAkB,WAAW,OAAO,EAC7C;AAAA,QACEC,IAAiB,kBAAkBA,IAAiBW,EAAO,MAAM,QAAQ,EAAE;AAAA,QAC3EV,IAAa,eAAeA,CAAU,MAAM,EAAE;AAAA,QAC9CG,IAAkB,oBAAoBA,CAAe,MAAM,EAAE;AAAA,QAC7DC,IAAc,gBAAgBA,CAAW,MAAM,EAAE;AAAA,QACjDG,IAAU,WAAWA,CAAO,MAAM,EAAE;AAAA;AAAA,EAE1C;AACF;AAEAjB,EAAK,cAAc;AAEnB,MAAA8B,IAAe9B;"}
@@ -2,7 +2,7 @@ const d = (a) => ({ sizes: {
2
2
  xsmall: {
3
3
  height: a * 2,
4
4
  paddingHorizontal: a * 1.375,
5
- textVariant: "ub3-bold",
5
+ textVariant: "ub4-bold",
6
6
  borderWidth: 1,
7
7
  iconSize: a,
8
8
  iconPadding: a * 0.25,
@@ -11,7 +11,7 @@ const d = (a) => ({ sizes: {
11
11
  small: {
12
12
  height: a * 2.5,
13
13
  paddingHorizontal: a * 1.625,
14
- textVariant: "ub2-bold",
14
+ textVariant: "ub3-bold",
15
15
  borderWidth: 1,
16
16
  iconSize: a * 1.25,
17
17
  iconPadding: a * 0.375,
@@ -20,7 +20,7 @@ const d = (a) => ({ sizes: {
20
20
  regular: {
21
21
  height: a * 3,
22
22
  paddingHorizontal: a * 1.875,
23
- textVariant: "ub1-bold",
23
+ textVariant: "ub2-bold",
24
24
  borderWidth: 1,
25
25
  iconSize: a * 1.5,
26
26
  iconPadding: a * 0.5,
@@ -29,7 +29,7 @@ const d = (a) => ({ sizes: {
29
29
  medium: {
30
30
  height: a * 3.5,
31
31
  paddingHorizontal: a * 2.125,
32
- textVariant: "ub1-bold",
32
+ textVariant: "ub2-bold",
33
33
  borderWidth: 1.5,
34
34
  iconSize: a * 1.5,
35
35
  iconPadding: a * 0.5,
@@ -38,7 +38,7 @@ const d = (a) => ({ sizes: {
38
38
  large: {
39
39
  height: a * 4,
40
40
  paddingHorizontal: a * 2.375,
41
- textVariant: "ub1-bold",
41
+ textVariant: "ub2-bold",
42
42
  borderWidth: 2,
43
43
  iconSize: a * 1.5,
44
44
  iconPadding: a * 0.5,
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sources":["../../../../src/features/ui/theme/button.ts"],"sourcesContent":["import type {\n IButtonSizeConfig,\n TButtonSizes,\n IButtonVariantConfig,\n TButtonVariants,\n} from '../types';\n\ninterface IGetButtonConfig {\n (gutter: number): {\n sizes: Record<TButtonSizes, IButtonSizeConfig>;\n variants: Record<TButtonVariants, IButtonVariantConfig>;\n };\n}\n\nconst getButtonConfig: IGetButtonConfig = (gutter: number) => {\n const sizes: Record<TButtonSizes, IButtonSizeConfig> = {\n xsmall: {\n height: gutter * 2,\n paddingHorizontal: gutter * (1 + 0.375),\n textVariant: 'ub3-bold',\n borderWidth: 1,\n iconSize: gutter,\n iconPadding: gutter * 0.25,\n loaderSize: gutter * 1.25,\n },\n small: {\n height: gutter * 2.5,\n paddingHorizontal: gutter * (1 + 0.625),\n textVariant: 'ub2-bold',\n borderWidth: 1,\n iconSize: gutter * 1.25,\n iconPadding: gutter * 0.375,\n loaderSize: gutter * 1.5,\n },\n regular: {\n height: gutter * 3,\n paddingHorizontal: gutter * (1 + 0.875),\n textVariant: 'ub1-bold',\n borderWidth: 1,\n iconSize: gutter * 1.5,\n iconPadding: gutter * 0.5,\n loaderSize: gutter * 1.75,\n },\n medium: {\n height: gutter * 3.5,\n paddingHorizontal: gutter * (1 + 1.125),\n textVariant: 'ub1-bold',\n borderWidth: 1.5,\n iconSize: gutter * 1.5,\n iconPadding: gutter * 0.5,\n loaderSize: gutter * 2,\n },\n large: {\n height: gutter * 4,\n paddingHorizontal: gutter * (1 + 1.375),\n textVariant: 'ub1-bold',\n borderWidth: 2,\n iconSize: gutter * 1.5,\n iconPadding: gutter * 0.5,\n loaderSize: gutter * 2.25,\n },\n };\n\n const variants: Record<TButtonVariants, IButtonVariantConfig> = {\n 'primary': {\n backgroundColorName: {\n inactive: 'YELLOW_4',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'secondary': {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'tertiary': {\n backgroundColorName: {\n inactive: 'RED',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'WHITE',\n active: 'WHITE',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'secondary-gray': {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'WHITE_4',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'secondary-dark': {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n disabled: 'WHITE_T_10',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n disabled: 'WHITE_T_38',\n },\n borderColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n disabled: 'WHITE_T_15',\n },\n },\n 'black': {\n backgroundColorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_T_60',\n disabled: 'BLACK_T_15',\n },\n borderColorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_1',\n disabled: 'BLACK_T_15',\n },\n colorName: {\n inactive: 'WHITE_1',\n active: 'WHITE_1',\n disabled: 'WHITE_T_87',\n },\n },\n 'black-dark': {\n backgroundColorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_4',\n disabled: 'WHITE_T_10',\n },\n borderColorName: {\n inactive: 'WHITE_1',\n active: 'WHITE_1',\n disabled: 'WHITE_T_15',\n },\n colorName: {\n inactive: 'WHITE_1',\n active: 'WHITE_1',\n disabled: 'WHITE_T_38',\n },\n },\n 'white-danger': {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n disabled: 'WHITE_T_10',\n },\n colorName: {\n inactive: 'RED',\n active: 'WHITE',\n disabled: 'GREY_3',\n },\n borderColorName: {\n inactive: 'RED',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'yellow-dark': {\n backgroundColorName: {\n inactive: 'YELLOW_4',\n active: 'YELLOW_3',\n disabled: 'WHITE_T_10',\n },\n borderColorName: {\n inactive: 'WHITE',\n active: 'WHITE',\n disabled: 'WHITE_T_15',\n },\n colorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_1',\n disabled: 'WHITE_T_38',\n },\n },\n // 'yellow': {\n // backgroundColorName: {\n // inactive: 'YELLOW_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // borderColorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // colorName: {\n // inactive: 'BLACK_4',\n // active: 'WHITE_4',\n // disabled: 'BLACK_T_35',\n // },\n // },\n\n // 'white': {\n // backgroundColorName: {\n // inactive: 'WHITE_1',\n // active: 'BLACK_T_35',\n // disabled: 'BLACK_T_35',\n // },\n // borderColorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // colorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // },\n // 'white-dark': {\n // backgroundColorName: {\n // inactive: 'WHITE_4',\n // active: 'WHITE_T_70',\n // disabled: 'WHITE_T_40',\n // },\n // borderColorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'WHITE_T_40',\n // },\n // colorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'WHITE_T_40',\n // },\n // },\n };\n\n return { sizes, variants };\n};\n\nexport default getButtonConfig;\n"],"names":["getButtonConfig","gutter"],"mappings":"AAcM,MAAAA,IAAoC,CAACC,OAiQlC,EAAE,OAhQ8C;AAAA,EACrD,QAAQ;AAAA,IACN,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA;AAAA,IACV,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,EACA,OAAO;AAAA,IACL,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA,IAAS;AAAA,IACnB,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,EACA,SAAS;AAAA,IACP,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA,IAAS;AAAA,IACnB,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,EACA,QAAQ;AAAA,IACN,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA,IAAS;AAAA,IACnB,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,EACA,OAAO;AAAA,IACL,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA,IAAS;AAAA,IACnB,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,GAmNc,UAhNgD;AAAA,EAC9D,SAAW;AAAA,IACT,qBAAqB;AAAA,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A;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
1
+ {"version":3,"file":"button.js","sources":["../../../../src/features/ui/theme/button.ts"],"sourcesContent":["import type {\n IButtonSizeConfig,\n TButtonSizes,\n IButtonVariantConfig,\n TButtonVariants,\n} from '../types';\n\ninterface IGetButtonConfig {\n (gutter: number): {\n sizes: Record<TButtonSizes, IButtonSizeConfig>;\n variants: Record<TButtonVariants, IButtonVariantConfig>;\n };\n}\n\nconst getButtonConfig: IGetButtonConfig = (gutter: number) => {\n const sizes: Record<TButtonSizes, IButtonSizeConfig> = {\n xsmall: {\n height: gutter * 2,\n paddingHorizontal: gutter * (1 + 0.375),\n textVariant: 'ub4-bold',\n borderWidth: 1,\n iconSize: gutter,\n iconPadding: gutter * 0.25,\n loaderSize: gutter * 1.25,\n },\n small: {\n height: gutter * 2.5,\n paddingHorizontal: gutter * (1 + 0.625),\n textVariant: 'ub3-bold',\n borderWidth: 1,\n iconSize: gutter * 1.25,\n iconPadding: gutter * 0.375,\n loaderSize: gutter * 1.5,\n },\n regular: {\n height: gutter * 3,\n paddingHorizontal: gutter * (1 + 0.875),\n textVariant: 'ub2-bold',\n borderWidth: 1,\n iconSize: gutter * 1.5,\n iconPadding: gutter * 0.5,\n loaderSize: gutter * 1.75,\n },\n medium: {\n height: gutter * 3.5,\n paddingHorizontal: gutter * (1 + 1.125),\n textVariant: 'ub2-bold',\n borderWidth: 1.5,\n iconSize: gutter * 1.5,\n iconPadding: gutter * 0.5,\n loaderSize: gutter * 2,\n },\n large: {\n height: gutter * 4,\n paddingHorizontal: gutter * (1 + 1.375),\n textVariant: 'ub2-bold',\n borderWidth: 2,\n iconSize: gutter * 1.5,\n iconPadding: gutter * 0.5,\n loaderSize: gutter * 2.25,\n },\n };\n\n const variants: Record<TButtonVariants, IButtonVariantConfig> = {\n 'primary': {\n backgroundColorName: {\n inactive: 'YELLOW_4',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'secondary': {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'tertiary': {\n backgroundColorName: {\n inactive: 'RED',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'WHITE',\n active: 'WHITE',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'secondary-gray': {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'WHITE_4',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'secondary-dark': {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n disabled: 'WHITE_T_10',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n disabled: 'WHITE_T_38',\n },\n borderColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n disabled: 'WHITE_T_15',\n },\n },\n 'black': {\n backgroundColorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_T_60',\n disabled: 'BLACK_T_15',\n },\n borderColorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_1',\n disabled: 'BLACK_T_15',\n },\n colorName: {\n inactive: 'WHITE_1',\n active: 'WHITE_1',\n disabled: 'WHITE_T_87',\n },\n },\n 'black-dark': {\n backgroundColorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_4',\n disabled: 'WHITE_T_10',\n },\n borderColorName: {\n inactive: 'WHITE_1',\n active: 'WHITE_1',\n disabled: 'WHITE_T_15',\n },\n colorName: {\n inactive: 'WHITE_1',\n active: 'WHITE_1',\n disabled: 'WHITE_T_38',\n },\n },\n 'white-danger': {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n disabled: 'WHITE_T_10',\n },\n colorName: {\n inactive: 'RED',\n active: 'WHITE',\n disabled: 'GREY_3',\n },\n borderColorName: {\n inactive: 'RED',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'yellow-dark': {\n backgroundColorName: {\n inactive: 'YELLOW_4',\n active: 'YELLOW_3',\n disabled: 'WHITE_T_10',\n },\n borderColorName: {\n inactive: 'WHITE',\n active: 'WHITE',\n disabled: 'WHITE_T_15',\n },\n colorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_1',\n disabled: 'WHITE_T_38',\n },\n },\n // 'yellow': {\n // backgroundColorName: {\n // inactive: 'YELLOW_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // borderColorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // colorName: {\n // inactive: 'BLACK_4',\n // active: 'WHITE_4',\n // disabled: 'BLACK_T_35',\n // },\n // },\n\n // 'white': {\n // backgroundColorName: {\n // inactive: 'WHITE_1',\n // active: 'BLACK_T_35',\n // disabled: 'BLACK_T_35',\n // },\n // borderColorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // colorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // },\n // 'white-dark': {\n // backgroundColorName: {\n // inactive: 'WHITE_4',\n // active: 'WHITE_T_70',\n // disabled: 'WHITE_T_40',\n // },\n // borderColorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'WHITE_T_40',\n // },\n // colorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'WHITE_T_40',\n // },\n // },\n };\n\n return { sizes, variants };\n};\n\nexport default getButtonConfig;\n"],"names":["getButtonConfig","gutter"],"mappings":"AAcM,MAAAA,IAAoC,CAACC,OAiQlC,EAAE,OAhQ8C;AAAA,EACrD,QAAQ;AAAA,IACN,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA;AAAA,IACV,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,EACA,OAAO;AAAA,IACL,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA,IAAS;AAAA,IACnB,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,EACA,SAAS;AAAA,IACP,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA,IAAS;AAAA,IACnB,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,EACA,QAAQ;AAAA,IACN,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA,IAAS;AAAA,IACnB,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,EACA,OAAO;AAAA,IACL,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7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