@axelor/aos-mobile-ui 9.1.10 → 9.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (434) hide show
  1. package/lib/components/atoms/BorderBar/BorderBar.d.ts +9 -0
  2. package/lib/components/atoms/BorderBar/BorderBar.js +30 -0
  3. package/lib/components/atoms/BorderBar/BorderBar.js.map +1 -0
  4. package/lib/components/atoms/Card/Card.d.ts +2 -1
  5. package/lib/components/atoms/Card/Card.js +2 -2
  6. package/lib/components/atoms/Card/Card.js.map +1 -1
  7. package/lib/components/atoms/HorizontalRule/HorizontalRule.d.ts +3 -1
  8. package/lib/components/atoms/HorizontalRule/HorizontalRule.js +5 -7
  9. package/lib/components/atoms/HorizontalRule/HorizontalRule.js.map +1 -1
  10. package/lib/components/atoms/HtmlInput/HtmlInput.d.ts +3 -1
  11. package/lib/components/atoms/HtmlInput/HtmlInput.js +13 -8
  12. package/lib/components/atoms/HtmlInput/HtmlInput.js.map +1 -1
  13. package/lib/components/atoms/HtmlViewer/HtmlViewer.d.ts +10 -0
  14. package/lib/components/atoms/HtmlViewer/HtmlViewer.js +93 -0
  15. package/lib/components/atoms/HtmlViewer/HtmlViewer.js.map +1 -0
  16. package/lib/components/atoms/Icon/Icon.d.ts +2 -1
  17. package/lib/components/atoms/Icon/Icon.js +4 -5
  18. package/lib/components/atoms/Icon/Icon.js.map +1 -1
  19. package/lib/components/atoms/Input/Input.d.ts +5 -5
  20. package/lib/components/atoms/Input/Input.js +6 -5
  21. package/lib/components/atoms/Input/Input.js.map +1 -1
  22. package/lib/components/atoms/ProgressCircle/ProgressCircle.js +11 -7
  23. package/lib/components/atoms/ProgressCircle/ProgressCircle.js.map +1 -1
  24. package/lib/components/atoms/RadioButton/RadioButton.js +25 -21
  25. package/lib/components/atoms/RadioButton/RadioButton.js.map +1 -1
  26. package/lib/components/atoms/Screen/Screen.d.ts +1 -2
  27. package/lib/components/atoms/Screen/Screen.js +2 -9
  28. package/lib/components/atoms/Screen/Screen.js.map +1 -1
  29. package/lib/components/atoms/Switch/Switch.d.ts +1 -1
  30. package/lib/components/atoms/Switch/Switch.js +5 -5
  31. package/lib/components/atoms/Switch/Switch.js.map +1 -1
  32. package/lib/components/atoms/Text/Text.d.ts +2 -1
  33. package/lib/components/atoms/Text/Text.js +1 -1
  34. package/lib/components/atoms/Text/Text.js.map +1 -1
  35. package/lib/components/atoms/VerticalRule/VerticalRule.d.ts +8 -0
  36. package/lib/components/atoms/VerticalRule/VerticalRule.js +33 -0
  37. package/lib/components/atoms/VerticalRule/VerticalRule.js.map +1 -0
  38. package/lib/components/atoms/index.d.ts +3 -0
  39. package/lib/components/atoms/index.js +3 -0
  40. package/lib/components/atoms/index.js.map +1 -1
  41. package/lib/components/molecules/Alert/Alert.js +18 -30
  42. package/lib/components/molecules/Alert/Alert.js.map +1 -1
  43. package/lib/components/molecules/Badge/Badge.d.ts +2 -1
  44. package/lib/components/molecules/Badge/Badge.js +15 -12
  45. package/lib/components/molecules/Badge/Badge.js.map +1 -1
  46. package/lib/components/molecules/BottomSheet/BottomSheet.js +1 -1
  47. package/lib/components/molecules/BottomSheet/BottomSheet.js.map +1 -1
  48. package/lib/components/molecules/Breadcrumb/Breadcrumb.js +1 -1
  49. package/lib/components/molecules/Button/Button.d.ts +2 -1
  50. package/lib/components/molecules/Button/Button.js +6 -12
  51. package/lib/components/molecules/Button/Button.js.map +1 -1
  52. package/lib/components/molecules/CalendarLegend/CalendarLegend.d.ts +13 -0
  53. package/lib/components/molecules/CalendarLegend/CalendarLegend.js +89 -0
  54. package/lib/components/molecules/CalendarLegend/CalendarLegend.js.map +1 -0
  55. package/lib/components/molecules/CalendarLegend/index.d.ts +2 -0
  56. package/lib/components/molecules/CalendarLegend/index.js +19 -0
  57. package/lib/components/molecules/CalendarLegend/index.js.map +1 -0
  58. package/lib/components/molecules/CalendarLegend/types.d.ts +6 -0
  59. package/lib/components/molecules/CalendarLegend/types.js +19 -0
  60. package/lib/components/molecules/CalendarLegend/types.js.map +1 -0
  61. package/lib/components/molecules/CalendarMonthGrid/CalendarMonthGrid.d.ts +15 -0
  62. package/lib/components/molecules/CalendarMonthGrid/CalendarMonthGrid.js +49 -0
  63. package/lib/components/molecules/CalendarMonthGrid/CalendarMonthGrid.js.map +1 -0
  64. package/lib/components/molecules/CalendarMonthGrid/CalendarMonthTitle.d.ts +8 -0
  65. package/lib/components/molecules/CalendarMonthGrid/CalendarMonthTitle.js +35 -0
  66. package/lib/components/molecules/CalendarMonthGrid/CalendarMonthTitle.js.map +1 -0
  67. package/lib/components/molecules/CalendarMonthGrid/CalendarWeekDays.d.ts +7 -0
  68. package/lib/components/molecules/CalendarMonthGrid/CalendarWeekDays.js +44 -0
  69. package/lib/components/molecules/CalendarMonthGrid/CalendarWeekDays.js.map +1 -0
  70. package/lib/components/molecules/CalendarMonthGrid/index.d.ts +3 -0
  71. package/lib/components/molecules/CalendarMonthGrid/index.js +21 -0
  72. package/lib/components/molecules/CalendarMonthGrid/index.js.map +1 -0
  73. package/lib/components/molecules/CardIconButton/CardIconButton.js +1 -1
  74. package/lib/components/molecules/Checkbox/Checkbox.d.ts +1 -1
  75. package/lib/components/molecules/Checkbox/Checkbox.js +11 -27
  76. package/lib/components/molecules/Checkbox/Checkbox.js.map +1 -1
  77. package/lib/components/molecules/Chip/Chip.d.ts +1 -1
  78. package/lib/components/molecules/Chip/Chip.js +23 -19
  79. package/lib/components/molecules/Chip/Chip.js.map +1 -1
  80. package/lib/components/molecules/CircleButton/CircleButton.js +1 -1
  81. package/lib/components/molecules/CircleButton/CircleButton.js.map +1 -1
  82. package/lib/components/molecules/ClearableCard/ClearableCard.js +2 -7
  83. package/lib/components/molecules/ClearableCard/ClearableCard.js.map +1 -1
  84. package/lib/components/molecules/DoubleIcon/DoubleIcon.js +1 -1
  85. package/lib/components/molecules/DoubleIcon/DoubleIcon.js.map +1 -1
  86. package/lib/components/molecules/DropdownCard/DropdownCard.d.ts +4 -3
  87. package/lib/components/molecules/DropdownCard/DropdownCard.js +36 -55
  88. package/lib/components/molecules/DropdownCard/DropdownCard.js.map +1 -1
  89. package/lib/components/molecules/DropdownMenu/DropdownMenu.d.ts +4 -2
  90. package/lib/components/molecules/DropdownMenu/DropdownMenu.js +52 -26
  91. package/lib/components/molecules/DropdownMenu/DropdownMenu.js.map +1 -1
  92. package/lib/components/molecules/EditableHtmlInput/EditableHtmlInput.js +2 -3
  93. package/lib/components/molecules/EditableHtmlInput/EditableHtmlInput.js.map +1 -1
  94. package/lib/components/molecules/EditableInput/EditableInput.js +4 -17
  95. package/lib/components/molecules/EditableInput/EditableInput.js.map +1 -1
  96. package/lib/components/molecules/FormHtmlInput/FormHtmlInput.d.ts +2 -2
  97. package/lib/components/molecules/FormHtmlInput/FormHtmlInput.js +13 -23
  98. package/lib/components/molecules/FormHtmlInput/FormHtmlInput.js.map +1 -1
  99. package/lib/components/molecules/FormIncrementInput/FormIncrementInput.js +6 -17
  100. package/lib/components/molecules/FormIncrementInput/FormIncrementInput.js.map +1 -1
  101. package/lib/components/molecules/FormInput/FormInput.d.ts +1 -1
  102. package/lib/components/molecules/FormInput/FormInput.js +2 -9
  103. package/lib/components/molecules/FormInput/FormInput.js.map +1 -1
  104. package/lib/components/molecules/FormSlider/FormSlider.js +3 -13
  105. package/lib/components/molecules/FormSlider/FormSlider.js.map +1 -1
  106. package/lib/components/molecules/GroupedCard/GroupedCard.d.ts +13 -0
  107. package/lib/components/molecules/GroupedCard/GroupedCard.js +60 -0
  108. package/lib/components/molecules/GroupedCard/GroupedCard.js.map +1 -0
  109. package/lib/components/molecules/HorizontalRuleText/HorizontalRuleText.js +5 -6
  110. package/lib/components/molecules/HorizontalRuleText/HorizontalRuleText.js.map +1 -1
  111. package/lib/components/molecules/IconInput/IconInput.d.ts +4 -4
  112. package/lib/components/molecules/IconInput/IconInput.js +15 -23
  113. package/lib/components/molecules/IconInput/IconInput.js.map +1 -1
  114. package/lib/components/molecules/IconTile/IconTile.d.ts +19 -0
  115. package/lib/components/molecules/IconTile/IconTile.js +43 -0
  116. package/lib/components/molecules/IconTile/IconTile.js.map +1 -0
  117. package/lib/components/molecules/Increment/Increment.d.ts +1 -1
  118. package/lib/components/molecules/Increment/Increment.js +3 -5
  119. package/lib/components/molecules/Increment/Increment.js.map +1 -1
  120. package/lib/components/molecules/Increment/IncrementButton.js +7 -14
  121. package/lib/components/molecules/Increment/IncrementButton.js.map +1 -1
  122. package/lib/components/molecules/Label/Label.d.ts +1 -1
  123. package/lib/components/molecules/Label/Label.js +11 -15
  124. package/lib/components/molecules/Label/Label.js.map +1 -1
  125. package/lib/components/molecules/LabelText/LabelText.js +6 -4
  126. package/lib/components/molecules/LabelText/LabelText.js.map +1 -1
  127. package/lib/components/molecules/MovementIndicationCard/MovementIndicationCard.d.ts +6 -7
  128. package/lib/components/molecules/MovementIndicationCard/MovementIndicationCard.js +91 -33
  129. package/lib/components/molecules/MovementIndicationCard/MovementIndicationCard.js.map +1 -1
  130. package/lib/components/molecules/MultiValuePickerButton/MultiValuePickerButton.js +21 -33
  131. package/lib/components/molecules/MultiValuePickerButton/MultiValuePickerButton.js.map +1 -1
  132. package/lib/components/molecules/NotesCard/NotesCard.d.ts +2 -1
  133. package/lib/components/molecules/NotesCard/NotesCard.js +11 -15
  134. package/lib/components/molecules/NotesCard/NotesCard.js.map +1 -1
  135. package/lib/components/molecules/NumberBubble/NumberBubble.js +2 -2
  136. package/lib/components/molecules/NumberBubble/NumberBubble.js.map +1 -1
  137. package/lib/components/molecules/NumberChevronInput/NumberChevronInput.d.ts +5 -3
  138. package/lib/components/molecules/NumberChevronInput/NumberChevronInput.js +35 -28
  139. package/lib/components/molecules/NumberChevronInput/NumberChevronInput.js.map +1 -1
  140. package/lib/components/molecules/PanelTabs/PanelTabs.js +1 -1
  141. package/lib/components/molecules/PeriodNavigation/PeriodNavigation.d.ts +14 -0
  142. package/lib/components/molecules/PeriodNavigation/PeriodNavigation.js +45 -0
  143. package/lib/components/molecules/PeriodNavigation/PeriodNavigation.js.map +1 -0
  144. package/lib/components/molecules/RadioSelect/RadioSelect.js +8 -8
  145. package/lib/components/molecules/RadioSelect/RadioSelect.js.map +1 -1
  146. package/lib/components/molecules/RightIconButton/RightIconButton.d.ts +4 -1
  147. package/lib/components/molecules/RightIconButton/RightIconButton.js +8 -7
  148. package/lib/components/molecules/RightIconButton/RightIconButton.js.map +1 -1
  149. package/lib/components/molecules/SelectionContainer/SelectionContainer.d.ts +2 -1
  150. package/lib/components/molecules/SelectionContainer/SelectionContainer.js +46 -58
  151. package/lib/components/molecules/SelectionContainer/SelectionContainer.js.map +1 -1
  152. package/lib/components/molecules/StarScore/StarScore.d.ts +1 -1
  153. package/lib/components/molecules/StarScore/StarScore.js +7 -10
  154. package/lib/components/molecules/StarScore/StarScore.js.map +1 -1
  155. package/lib/components/molecules/Stepper/StepList.d.ts +2 -1
  156. package/lib/components/molecules/Stepper/StepList.js +14 -12
  157. package/lib/components/molecules/Stepper/StepList.js.map +1 -1
  158. package/lib/components/molecules/Stepper/Stepper.d.ts +1 -2
  159. package/lib/components/molecules/Stepper/Stepper.js +17 -28
  160. package/lib/components/molecules/Stepper/Stepper.js.map +1 -1
  161. package/lib/components/molecules/SwitchCard/SwitchCard.d.ts +6 -2
  162. package/lib/components/molecules/SwitchCard/SwitchCard.js +6 -13
  163. package/lib/components/molecules/SwitchCard/SwitchCard.js.map +1 -1
  164. package/lib/components/molecules/TextUnit/TextUnit.js +3 -3
  165. package/lib/components/molecules/TextUnit/TextUnit.js.map +1 -1
  166. package/lib/components/molecules/ToggleSwitch/ToggleSwitch.js +34 -34
  167. package/lib/components/molecules/ToggleSwitch/ToggleSwitch.js.map +1 -1
  168. package/lib/components/molecules/ViewAllContainer/ViewAllContainer.d.ts +2 -1
  169. package/lib/components/molecules/ViewAllContainer/ViewAllContainer.js +24 -33
  170. package/lib/components/molecules/ViewAllContainer/ViewAllContainer.js.map +1 -1
  171. package/lib/components/molecules/index.d.ts +5 -0
  172. package/lib/components/molecules/index.js +5 -0
  173. package/lib/components/molecules/index.js.map +1 -1
  174. package/lib/components/organisms/ActionCard/ActionCard.js +4 -5
  175. package/lib/components/organisms/ActionCard/ActionCard.js.map +1 -1
  176. package/lib/components/organisms/ActionSheet/ActionSheet.d.ts +2 -1
  177. package/lib/components/organisms/ActionSheet/ActionSheet.js +18 -8
  178. package/lib/components/organisms/ActionSheet/ActionSheet.js.map +1 -1
  179. package/lib/components/organisms/AgendaView/AgendaDayCell.d.ts +13 -0
  180. package/lib/components/organisms/AgendaView/AgendaDayCell.js +71 -0
  181. package/lib/components/organisms/AgendaView/AgendaDayCell.js.map +1 -0
  182. package/lib/components/organisms/AgendaView/AgendaDayRow.d.ts +14 -0
  183. package/lib/components/organisms/AgendaView/AgendaDayRow.js +65 -0
  184. package/lib/components/organisms/AgendaView/AgendaDayRow.js.map +1 -0
  185. package/lib/components/organisms/AgendaView/AgendaHeader.d.ts +12 -0
  186. package/lib/components/organisms/AgendaView/AgendaHeader.js +44 -0
  187. package/lib/components/organisms/AgendaView/AgendaHeader.js.map +1 -0
  188. package/lib/components/organisms/AgendaView/AgendaItemRow.d.ts +8 -0
  189. package/lib/components/organisms/AgendaView/AgendaItemRow.js +58 -0
  190. package/lib/components/organisms/AgendaView/AgendaItemRow.js.map +1 -0
  191. package/lib/components/organisms/AgendaView/AgendaMonth.d.ts +16 -0
  192. package/lib/components/organisms/AgendaView/AgendaMonth.js +26 -0
  193. package/lib/components/organisms/AgendaView/AgendaMonth.js.map +1 -0
  194. package/lib/components/organisms/AgendaView/AgendaMonthSeparator.d.ts +7 -0
  195. package/lib/components/organisms/AgendaView/AgendaMonthSeparator.js +41 -0
  196. package/lib/components/organisms/AgendaView/AgendaMonthSeparator.js.map +1 -0
  197. package/lib/components/organisms/AgendaView/AgendaView.d.ts +24 -0
  198. package/lib/components/organisms/AgendaView/AgendaView.js +134 -0
  199. package/lib/components/organisms/AgendaView/AgendaView.js.map +1 -0
  200. package/lib/components/organisms/AgendaView/MonthList.d.ts +16 -0
  201. package/lib/components/organisms/AgendaView/MonthList.js +64 -0
  202. package/lib/components/organisms/AgendaView/MonthList.js.map +1 -0
  203. package/lib/components/organisms/AgendaView/MonthPanel.d.ts +17 -0
  204. package/lib/components/organisms/AgendaView/MonthPanel.js +108 -0
  205. package/lib/components/organisms/AgendaView/MonthPanel.js.map +1 -0
  206. package/lib/components/organisms/AgendaView/agenda-view.helpers.d.ts +6 -0
  207. package/lib/components/organisms/AgendaView/agenda-view.helpers.js +53 -0
  208. package/lib/components/organisms/AgendaView/agenda-view.helpers.js.map +1 -0
  209. package/lib/components/organisms/AgendaView/index.d.ts +3 -0
  210. package/lib/components/organisms/AgendaView/index.js +20 -0
  211. package/lib/components/organisms/AgendaView/index.js.map +1 -0
  212. package/lib/components/organisms/AgendaView/types.d.ts +12 -0
  213. package/lib/components/organisms/AgendaView/types.js +19 -0
  214. package/lib/components/organisms/AgendaView/types.js.map +1 -0
  215. package/lib/components/organisms/AgendaView/use-month-panel-drag.d.ts +13 -0
  216. package/lib/components/organisms/AgendaView/use-month-panel-drag.js +77 -0
  217. package/lib/components/organisms/AgendaView/use-month-panel-drag.js.map +1 -0
  218. package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.js +5 -5
  219. package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.js.map +1 -1
  220. package/lib/components/organisms/AutoCompleteSearch/ItemCard.d.ts +2 -2
  221. package/lib/components/organisms/AutoCompleteSearch/ItemCard.js +13 -20
  222. package/lib/components/organisms/AutoCompleteSearch/ItemCard.js.map +1 -1
  223. package/lib/components/organisms/AutoCompleteSearch/SearchDetailsPopUp.js +8 -9
  224. package/lib/components/organisms/AutoCompleteSearch/SearchDetailsPopUp.js.map +1 -1
  225. package/lib/components/organisms/CalendarRangePicker/CalendarDaySheet.d.ts +12 -0
  226. package/lib/components/organisms/CalendarRangePicker/CalendarDaySheet.js +60 -0
  227. package/lib/components/organisms/CalendarRangePicker/CalendarDaySheet.js.map +1 -0
  228. package/lib/components/organisms/CalendarRangePicker/CalendarRangePicker.d.ts +28 -0
  229. package/lib/components/organisms/CalendarRangePicker/CalendarRangePicker.js +140 -0
  230. package/lib/components/organisms/CalendarRangePicker/CalendarRangePicker.js.map +1 -0
  231. package/lib/components/organisms/CalendarRangePicker/DayCell.d.ts +17 -0
  232. package/lib/components/organisms/CalendarRangePicker/DayCell.js +131 -0
  233. package/lib/components/organisms/CalendarRangePicker/DayCell.js.map +1 -0
  234. package/lib/components/organisms/CalendarRangePicker/RangeMonth.d.ts +18 -0
  235. package/lib/components/organisms/CalendarRangePicker/RangeMonth.js +35 -0
  236. package/lib/components/organisms/CalendarRangePicker/RangeMonth.js.map +1 -0
  237. package/lib/components/organisms/CalendarRangePicker/calendar-range.helpers.d.ts +12 -0
  238. package/lib/components/organisms/CalendarRangePicker/calendar-range.helpers.js +68 -0
  239. package/lib/components/organisms/CalendarRangePicker/calendar-range.helpers.js.map +1 -0
  240. package/lib/components/organisms/CalendarRangePicker/index.d.ts +2 -0
  241. package/lib/components/organisms/CalendarRangePicker/index.js +19 -0
  242. package/lib/components/organisms/CalendarRangePicker/index.js.map +1 -0
  243. package/lib/components/organisms/CalendarRangePicker/types.d.ts +11 -0
  244. package/lib/components/organisms/CalendarRangePicker/types.js +19 -0
  245. package/lib/components/organisms/CalendarRangePicker/types.js.map +1 -0
  246. package/lib/components/organisms/ChipSelect/ChipSelect.js +24 -21
  247. package/lib/components/organisms/ChipSelect/ChipSelect.js.map +1 -1
  248. package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.d.ts +2 -0
  249. package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.js +2 -2
  250. package/lib/components/organisms/DropdownCardSwitch/DropdownCardSwitch.js.map +1 -1
  251. package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.d.ts +3 -2
  252. package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.js +36 -34
  253. package/lib/components/organisms/DropdownMenuItem/DropdownMenuItem.js.map +1 -1
  254. package/lib/components/organisms/FloatingButton/FloatingActionButton.d.ts +2 -2
  255. package/lib/components/organisms/FloatingButton/FloatingActionButton.js +2 -1
  256. package/lib/components/organisms/FloatingButton/FloatingActionButton.js.map +1 -1
  257. package/lib/components/organisms/GanttView/GanttView.d.ts +36 -0
  258. package/lib/components/organisms/GanttView/GanttView.js +267 -0
  259. package/lib/components/organisms/GanttView/GanttView.js.map +1 -0
  260. package/lib/components/organisms/GanttView/body/GanttBar.d.ts +12 -0
  261. package/lib/components/organisms/GanttView/body/GanttBar.js +52 -0
  262. package/lib/components/organisms/GanttView/body/GanttBar.js.map +1 -0
  263. package/lib/components/organisms/GanttView/body/GanttCellStrip.d.ts +10 -0
  264. package/lib/components/organisms/GanttView/body/GanttCellStrip.js +55 -0
  265. package/lib/components/organisms/GanttView/body/GanttCellStrip.js.map +1 -0
  266. package/lib/components/organisms/GanttView/body/GanttGridLines.d.ts +9 -0
  267. package/lib/components/organisms/GanttView/body/GanttGridLines.js +45 -0
  268. package/lib/components/organisms/GanttView/body/GanttGridLines.js.map +1 -0
  269. package/lib/components/organisms/GanttView/body/GanttGroupHeader.d.ts +9 -0
  270. package/lib/components/organisms/GanttView/body/GanttGroupHeader.js +61 -0
  271. package/lib/components/organisms/GanttView/body/GanttGroupHeader.js.map +1 -0
  272. package/lib/components/organisms/GanttView/body/GanttGroupLane.d.ts +10 -0
  273. package/lib/components/organisms/GanttView/body/GanttGroupLane.js +43 -0
  274. package/lib/components/organisms/GanttView/body/GanttGroupLane.js.map +1 -0
  275. package/lib/components/organisms/GanttView/body/GanttRowLane.d.ts +13 -0
  276. package/lib/components/organisms/GanttView/body/GanttRowLane.js +53 -0
  277. package/lib/components/organisms/GanttView/body/GanttRowLane.js.map +1 -0
  278. package/lib/components/organisms/GanttView/body/GanttRowName.d.ts +9 -0
  279. package/lib/components/organisms/GanttView/body/GanttRowName.js +51 -0
  280. package/lib/components/organisms/GanttView/body/GanttRowName.js.map +1 -0
  281. package/lib/components/organisms/GanttView/body/index.d.ts +6 -0
  282. package/lib/components/organisms/GanttView/body/index.js +24 -0
  283. package/lib/components/organisms/GanttView/body/index.js.map +1 -0
  284. package/lib/components/organisms/GanttView/gantt-view.helpers.d.ts +19 -0
  285. package/lib/components/organisms/GanttView/gantt-view.helpers.js +219 -0
  286. package/lib/components/organisms/GanttView/gantt-view.helpers.js.map +1 -0
  287. package/lib/components/organisms/GanttView/gantt-view.styles.d.ts +124 -0
  288. package/lib/components/organisms/GanttView/gantt-view.styles.js +148 -0
  289. package/lib/components/organisms/GanttView/gantt-view.styles.js.map +1 -0
  290. package/lib/components/organisms/GanttView/header/GanttControls.d.ts +13 -0
  291. package/lib/components/organisms/GanttView/header/GanttControls.js +53 -0
  292. package/lib/components/organisms/GanttView/header/GanttControls.js.map +1 -0
  293. package/lib/components/organisms/GanttView/header/GanttHeader.d.ts +24 -0
  294. package/lib/components/organisms/GanttView/header/GanttHeader.js +75 -0
  295. package/lib/components/organisms/GanttView/header/GanttHeader.js.map +1 -0
  296. package/lib/components/organisms/GanttView/header/index.d.ts +1 -0
  297. package/lib/components/organisms/GanttView/header/index.js +19 -0
  298. package/lib/components/organisms/GanttView/header/index.js.map +1 -0
  299. package/lib/components/organisms/GanttView/index.d.ts +4 -0
  300. package/lib/components/organisms/GanttView/index.js +21 -0
  301. package/lib/components/organisms/GanttView/index.js.map +1 -0
  302. package/lib/components/organisms/GanttView/scale/GanttScaleDayRow.d.ts +10 -0
  303. package/lib/components/organisms/GanttView/scale/GanttScaleDayRow.js +67 -0
  304. package/lib/components/organisms/GanttView/scale/GanttScaleDayRow.js.map +1 -0
  305. package/lib/components/organisms/GanttView/scale/GanttScaleHeader.d.ts +15 -0
  306. package/lib/components/organisms/GanttView/scale/GanttScaleHeader.js +46 -0
  307. package/lib/components/organisms/GanttView/scale/GanttScaleHeader.js.map +1 -0
  308. package/lib/components/organisms/GanttView/scale/GanttScaleSpanRow.d.ts +8 -0
  309. package/lib/components/organisms/GanttView/scale/GanttScaleSpanRow.js +69 -0
  310. package/lib/components/organisms/GanttView/scale/GanttScaleSpanRow.js.map +1 -0
  311. package/lib/components/organisms/GanttView/scale/gantt-scale.helpers.d.ts +6 -0
  312. package/lib/components/organisms/GanttView/scale/gantt-scale.helpers.js +53 -0
  313. package/lib/components/organisms/GanttView/scale/gantt-scale.helpers.js.map +1 -0
  314. package/lib/components/organisms/GanttView/scale/index.d.ts +1 -0
  315. package/lib/components/organisms/GanttView/scale/index.js +19 -0
  316. package/lib/components/organisms/GanttView/scale/index.js.map +1 -0
  317. package/lib/components/organisms/GanttView/types.d.ts +87 -0
  318. package/lib/components/organisms/GanttView/types.js +19 -0
  319. package/lib/components/organisms/GanttView/types.js.map +1 -0
  320. package/lib/components/organisms/GanttView/use-default-zoom.d.ts +2 -0
  321. package/lib/components/organisms/GanttView/use-default-zoom.js +23 -0
  322. package/lib/components/organisms/GanttView/use-default-zoom.js.map +1 -0
  323. package/lib/components/organisms/GroupByScrollList/GroupByScrollList.js +6 -2
  324. package/lib/components/organisms/GroupByScrollList/GroupByScrollList.js.map +1 -1
  325. package/lib/components/organisms/HeaderContainer/HeaderContainer.js +21 -17
  326. package/lib/components/organisms/HeaderContainer/HeaderContainer.js.map +1 -1
  327. package/lib/components/organisms/ImageBubble/ImageBubble.d.ts +1 -1
  328. package/lib/components/organisms/ImageBubble/ImageBubble.js +4 -7
  329. package/lib/components/organisms/ImageBubble/ImageBubble.js.map +1 -1
  330. package/lib/components/organisms/InfoBubble/InfoBubble.js +1 -1
  331. package/lib/components/organisms/InfoBubble/InfoBubble.js.map +1 -1
  332. package/lib/components/organisms/InfoButton/InfoButton.d.ts +1 -1
  333. package/lib/components/organisms/MultiValuePicker/MultiValuePicker.js +6 -10
  334. package/lib/components/organisms/MultiValuePicker/MultiValuePicker.js.map +1 -1
  335. package/lib/components/organisms/Picker/Picker.d.ts +2 -1
  336. package/lib/components/organisms/Picker/Picker.js +25 -29
  337. package/lib/components/organisms/Picker/Picker.js.map +1 -1
  338. package/lib/components/organisms/ProgressBar/ProgressBar.d.ts +1 -1
  339. package/lib/components/organisms/ProgressBar/ProgressBar.js +11 -16
  340. package/lib/components/organisms/ProgressBar/ProgressBar.js.map +1 -1
  341. package/lib/components/organisms/QuantityCard/QuantityCard.d.ts +3 -2
  342. package/lib/components/organisms/QuantityCard/QuantityCard.js +47 -56
  343. package/lib/components/organisms/QuantityCard/QuantityCard.js.map +1 -1
  344. package/lib/components/organisms/ScrollList/DottedButton.js +10 -18
  345. package/lib/components/organisms/ScrollList/DottedButton.js.map +1 -1
  346. package/lib/components/organisms/ScrollList/ScrollList.js +9 -7
  347. package/lib/components/organisms/ScrollList/ScrollList.js.map +1 -1
  348. package/lib/components/organisms/ScrollList/TopActions.js +5 -3
  349. package/lib/components/organisms/ScrollList/TopActions.js.map +1 -1
  350. package/lib/components/organisms/SearchBar/SearchBar.d.ts +3 -3
  351. package/lib/components/organisms/SearchBar/SearchBar.js +15 -32
  352. package/lib/components/organisms/SearchBar/SearchBar.js.map +1 -1
  353. package/lib/components/organisms/SingleSelectScrollList/SingleSelectScrollList.js +1 -1
  354. package/lib/components/organisms/ToggleButton/ToggleButton.js +2 -2
  355. package/lib/components/organisms/ToggleButton/ToggleButton.js.map +1 -1
  356. package/lib/components/organisms/ViewAllEditList/AllLinesAlert.js +14 -16
  357. package/lib/components/organisms/ViewAllEditList/AllLinesAlert.js.map +1 -1
  358. package/lib/components/organisms/ViewAllEditList/LineComponent.js +6 -8
  359. package/lib/components/organisms/ViewAllEditList/LineComponent.js.map +1 -1
  360. package/lib/components/organisms/ViewAllEditList/ViewAllEditList.d.ts +3 -2
  361. package/lib/components/organisms/ViewAllEditList/ViewAllEditList.js +5 -9
  362. package/lib/components/organisms/ViewAllEditList/ViewAllEditList.js.map +1 -1
  363. package/lib/components/organisms/WeekDayPicker/DayGauge.d.ts +18 -0
  364. package/lib/components/organisms/WeekDayPicker/DayGauge.js +112 -0
  365. package/lib/components/organisms/WeekDayPicker/DayGauge.js.map +1 -0
  366. package/lib/components/organisms/WeekDayPicker/WeekDayPicker.d.ts +18 -0
  367. package/lib/components/organisms/WeekDayPicker/WeekDayPicker.js +118 -0
  368. package/lib/components/organisms/WeekDayPicker/WeekDayPicker.js.map +1 -0
  369. package/lib/components/organisms/WeekDayPicker/WeekRow.d.ts +15 -0
  370. package/lib/components/organisms/WeekDayPicker/WeekRow.js +39 -0
  371. package/lib/components/organisms/WeekDayPicker/WeekRow.js.map +1 -0
  372. package/lib/components/organisms/WeekDayPicker/index.d.ts +3 -0
  373. package/lib/components/organisms/WeekDayPicker/index.js +20 -0
  374. package/lib/components/organisms/WeekDayPicker/index.js.map +1 -0
  375. package/lib/components/organisms/WeekDayPicker/types.d.ts +17 -0
  376. package/lib/components/organisms/WeekDayPicker/types.js +19 -0
  377. package/lib/components/organisms/WeekDayPicker/types.js.map +1 -0
  378. package/lib/components/organisms/WeekDayPicker/week-day.helpers.d.ts +9 -0
  379. package/lib/components/organisms/WeekDayPicker/week-day.helpers.js +83 -0
  380. package/lib/components/organisms/WeekDayPicker/week-day.helpers.js.map +1 -0
  381. package/lib/components/organisms/index.d.ts +4 -0
  382. package/lib/components/organisms/index.js +4 -0
  383. package/lib/components/organisms/index.js.map +1 -1
  384. package/lib/components/templates/BottomBar/BottomBar.js +81 -22
  385. package/lib/components/templates/BottomBar/BottomBar.js.map +1 -1
  386. package/lib/components/templates/BottomBar/ItemTitle.d.ts +1 -1
  387. package/lib/components/templates/BottomBar/ItemTitle.js +1 -2
  388. package/lib/components/templates/BottomBar/ItemTitle.js.map +1 -1
  389. package/lib/components/templates/Dashboard/Chart/BarChart.js +3 -3
  390. package/lib/components/templates/Dashboard/Chart/BarChart.js.map +1 -1
  391. package/lib/components/templates/Dashboard/Chart/IndicatorChart/IndicatorItem.js +1 -1
  392. package/lib/components/templates/Dashboard/Chart/IndicatorChart/IndicatorItem.js.map +1 -1
  393. package/lib/components/templates/Dashboard/Chart/IndicatorChart/SimpleIndicator.js +24 -20
  394. package/lib/components/templates/Dashboard/Chart/IndicatorChart/SimpleIndicator.js.map +1 -1
  395. package/lib/components/templates/ObjectCard/ObjectCard.d.ts +3 -2
  396. package/lib/components/templates/ObjectCard/ObjectCard.js +46 -32
  397. package/lib/components/templates/ObjectCard/ObjectCard.js.map +1 -1
  398. package/lib/components/templates/TabsScreen/Tab.js +1 -1
  399. package/lib/components/templates/TabsScreen/Tab.js.map +1 -1
  400. package/lib/hooks/index.d.ts +1 -0
  401. package/lib/hooks/index.js +1 -0
  402. package/lib/hooks/index.js.map +1 -1
  403. package/lib/hooks/use-click-outside.js +2 -2
  404. package/lib/hooks/use-click-outside.js.map +1 -1
  405. package/lib/hooks/use-orientation.d.ts +1 -0
  406. package/lib/hooks/use-orientation.js +23 -0
  407. package/lib/hooks/use-orientation.js.map +1 -0
  408. package/lib/theme/color/ThemeContext.js +1 -1
  409. package/lib/theme/color/ThemeContext.js.map +1 -1
  410. package/lib/theme/color/color.defaults.js +22 -22
  411. package/lib/theme/color/content.helpers.d.ts +2 -1
  412. package/lib/theme/color/content.helpers.js +47 -45
  413. package/lib/theme/color/content.helpers.js.map +1 -1
  414. package/lib/theme/color/themes.js +83 -80
  415. package/lib/theme/color/themes.js.map +1 -1
  416. package/lib/theme/color/types.d.ts +1 -0
  417. package/lib/theme/writing/writingTheme.js +5 -5
  418. package/lib/tools/AnimationUtil.d.ts +18 -3
  419. package/lib/utils/calendar.d.ts +42 -0
  420. package/lib/utils/calendar.js +64 -0
  421. package/lib/utils/calendar.js.map +1 -0
  422. package/lib/utils/commons-styles.d.ts +8 -20
  423. package/lib/utils/commons-styles.js +14 -22
  424. package/lib/utils/commons-styles.js.map +1 -1
  425. package/lib/utils/commons-utlis.d.ts +1 -0
  426. package/lib/utils/commons-utlis.js +7 -0
  427. package/lib/utils/commons-utlis.js.map +1 -1
  428. package/lib/utils/dates.d.ts +30 -0
  429. package/lib/utils/dates.js +142 -0
  430. package/lib/utils/dates.js.map +1 -0
  431. package/lib/utils/index.d.ts +10 -8
  432. package/lib/utils/index.js +4 -2
  433. package/lib/utils/index.js.map +1 -1
  434. package/package.json +14 -14
@@ -0,0 +1,89 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2026 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React, { memo, useCallback, useMemo, useState } from 'react';
19
+ import { Pressable, StyleSheet, View } from 'react-native';
20
+ import { useThemeColor } from '../../../theme';
21
+ import { PeriodNavigation } from '../../molecules';
22
+ import { Icon, Text } from '../../atoms';
23
+ const CalendarLegend = ({ style, items, showTodayButton = true, translator, onTodayPress, onPreviousPress, onNextPress, }) => {
24
+ const Colors = useThemeColor();
25
+ const [isVisible, setIsVisible] = useState(false);
26
+ const toggleVisibility = useCallback(() => setIsVisible(_v => !_v), []);
27
+ const hasItems = useMemo(() => Array.isArray(items) && items.length > 0, [items]);
28
+ if (!hasItems && !showTodayButton)
29
+ return null;
30
+ return (<View style={[styles.container, style]}>
31
+ <View style={styles.header}>
32
+ {hasItems ? (<Pressable style={styles.toggle} onPress={toggleVisibility}>
33
+ <Text writingType="details" textColor={Colors.placeholderTextColor} fontSize={12}>
34
+ {translator('Base_Legend')}
35
+ </Text>
36
+ <Icon name={isVisible ? 'chevron-up' : 'chevron-down'} size={12} color={Colors.placeholderTextColor}/>
37
+ </Pressable>) : (<View />)}
38
+ <PeriodNavigation onPrevious={onPreviousPress} onNext={onNextPress} onToday={showTodayButton ? onTodayPress : undefined}/>
39
+ </View>
40
+ {hasItems && isVisible && (<View style={styles.items}>
41
+ {items.map(({ key, title, color }) => (<View key={key} style={styles.item}>
42
+ <View style={[
43
+ styles.swatch,
44
+ {
45
+ backgroundColor: color?.background_light,
46
+ borderColor: color?.background,
47
+ },
48
+ ]} testID={`calendarLegendSwatch-${key}`}/>
49
+ <Text>{title}</Text>
50
+ </View>))}
51
+ </View>)}
52
+ </View>);
53
+ };
54
+ const styles = StyleSheet.create({
55
+ container: {
56
+ width: '90%',
57
+ alignSelf: 'center',
58
+ paddingVertical: 2,
59
+ },
60
+ header: {
61
+ flexDirection: 'row',
62
+ alignItems: 'center',
63
+ justifyContent: 'space-between',
64
+ },
65
+ toggle: {
66
+ flexDirection: 'row',
67
+ alignItems: 'center',
68
+ gap: 8,
69
+ },
70
+ items: {
71
+ flexDirection: 'row',
72
+ flexWrap: 'wrap',
73
+ paddingBottom: 6,
74
+ gap: 10,
75
+ },
76
+ item: {
77
+ flexDirection: 'row',
78
+ alignItems: 'center',
79
+ gap: 5,
80
+ },
81
+ swatch: {
82
+ width: 10,
83
+ height: 10,
84
+ borderRadius: 5,
85
+ borderWidth: 0.5,
86
+ },
87
+ });
88
+ export default memo(CalendarLegend);
89
+ //# sourceMappingURL=CalendarLegend.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarLegend.js","sourceRoot":"","sources":["../../../../src/components/molecules/CalendarLegend/CalendarLegend.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAClE,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAC,IAAI,EA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SAAS,EAAE;QACT,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,QAAQ;QACnB,eAAe,EAAE,CAAC;KACnB;IACD,MAAM,EAAE;QACN,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,eAAe;KAChC;IACD,MAAM,EAAE;QACN,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,CAAC;KACP;IACD,KAAK,EAAE;QACL,aAAa,EAAE,KAAK;QACpB,QAAQ,EAAE,MAAM;QAChB,aAAa,EAAE,CAAC;QAChB,GAAG,EAAE,EAAE;KACR;IACD,IAAI,EAAE;QACJ,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,CAAC;KACP;IACD,MAAM,EAAE;QACN,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,GAAG;KACjB;CACF,CAAC,CAAC;AAEH,eAAe,IAAI,CAAC,cAAc,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as CalendarLegend } from './CalendarLegend';
2
+ export { CalendarLegendItem } from './types';
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2026 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ export { default as CalendarLegend } from './CalendarLegend';
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/CalendarLegend/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Color } from '../../../theme';
2
+ export interface CalendarLegendItem {
3
+ key: string;
4
+ title: string;
5
+ color: Color;
6
+ }
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2026 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ export {};
19
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/molecules/CalendarLegend/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { CalendarDay, CalendarMonth } from '../../../utils';
3
+ interface CalendarMonthGridProps {
4
+ month: CalendarMonth;
5
+ firstDayOfWeek: number;
6
+ renderDay: (day: CalendarDay) => React.ReactNode;
7
+ visibleWeekIndex?: number;
8
+ showExtraDays?: boolean;
9
+ showTitle?: boolean;
10
+ showWeekDays?: boolean;
11
+ translator: (key: string) => string;
12
+ style?: any;
13
+ }
14
+ declare const _default: React.MemoExoticComponent<({ month, firstDayOfWeek, renderDay, visibleWeekIndex, showExtraDays, showTitle, showWeekDays, translator, style, }: CalendarMonthGridProps) => React.JSX.Element>;
15
+ export default _default;
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2026 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React, { memo, useMemo } from 'react';
19
+ import { StyleSheet, View } from 'react-native';
20
+ import { DAY_ROW_HEIGHT } from '../../../utils';
21
+ import CalendarMonthTitle from './CalendarMonthTitle';
22
+ import CalendarWeekDays from './CalendarWeekDays';
23
+ const CalendarMonthGrid = ({ month, firstDayOfWeek, renderDay, visibleWeekIndex, showExtraDays = false, showTitle = true, showWeekDays = true, translator, style, }) => {
24
+ const weeks = useMemo(() => visibleWeekIndex == null
25
+ ? month.weeks
26
+ : month.weeks.slice(visibleWeekIndex, visibleWeekIndex + 1), [month.weeks, visibleWeekIndex]);
27
+ return (<View style={style}>
28
+ {showTitle && (<CalendarMonthTitle monthIndex={month.monthIndex} year={month.year} translator={translator}/>)}
29
+ {showWeekDays && (<CalendarWeekDays firstDayOfWeek={firstDayOfWeek} translator={translator}/>)}
30
+ {weeks.map((week, weekIndex) => (<View key={weekIndex} style={styles.week}>
31
+ {week.map((day, dayIndex) => day.isOutOfMonth && !showExtraDays ? (<View key={dayIndex} style={styles.emptyCell}/>) : (<React.Fragment key={day.dateString}>
32
+ {renderDay(day)}
33
+ </React.Fragment>))}
34
+ </View>))}
35
+ </View>);
36
+ };
37
+ const styles = StyleSheet.create({
38
+ week: {
39
+ height: DAY_ROW_HEIGHT,
40
+ flexDirection: 'row',
41
+ paddingHorizontal: 8,
42
+ },
43
+ emptyCell: {
44
+ flex: 1,
45
+ height: DAY_ROW_HEIGHT,
46
+ },
47
+ });
48
+ export default memo(CalendarMonthGrid);
49
+ //# sourceMappingURL=CalendarMonthGrid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarMonthGrid.js","sourceRoot":"","sources":["../../../../src/components/molecules/CalendarMonthGrid/CalendarMonthGrid.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,IAAI,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAA6B,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAC1E,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAclD,MAAM,iBAAiB,GAAG,CAAC,EACzB,KAAK,EACL,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,aAAa,GAAG,KAAK,EACrB,SAAS,GAAG,IAAI,EAChB,YAAY,GAAG,IAAI,EACnB,UAAU,EACV,KAAK,GACkB,EAAE,EAAE;IAC3B,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CACH,gBAAgB,IAAI,IAAI;QACtB,CAAC,CAAC,KAAK,CAAC,KAAK;QACb,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,CAAC,CAAC,EAC/D,CAAC,KAAK,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAChC,CAAC;IAEF,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CACjB;MAAA,CAAC,SAAS,IAAI,CACZ,CAAC,kBAAkB,CACjB,UAAU,CAAC,CAAC,KAAK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,CAAC,iBAAiB,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface CalendarMonthTitleProps {
3
+ monthIndex: number;
4
+ year: number;
5
+ translator: (key: string) => string;
6
+ }
7
+ declare const _default: React.MemoExoticComponent<({ monthIndex, year, translator, }: CalendarMonthTitleProps) => React.JSX.Element>;
8
+ export default _default;
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2026 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React, { memo } from 'react';
19
+ import { StyleSheet } from 'react-native';
20
+ import { getMonthTitleKey, MONTH_TITLE_HEIGHT } from '../../../utils';
21
+ import { Text } from '../../atoms';
22
+ const CalendarMonthTitle = ({ monthIndex, year, translator, }) => {
23
+ return (<Text style={styles.title} writingType="title">
24
+ {`${translator(getMonthTitleKey(monthIndex))} ${year}`}
25
+ </Text>);
26
+ };
27
+ const styles = StyleSheet.create({
28
+ title: {
29
+ height: MONTH_TITLE_HEIGHT,
30
+ lineHeight: MONTH_TITLE_HEIGHT,
31
+ paddingHorizontal: 16,
32
+ },
33
+ });
34
+ export default memo(CalendarMonthTitle);
35
+ //# sourceMappingURL=CalendarMonthTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarMonthTitle.js","sourceRoot":"","sources":["../../../../src/components/molecules/CalendarMonthGrid/CalendarMonthTitle.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,IAAI,EAAC,MAAM,OAAO,CAAC;AAClC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,gBAAgB,EAAE,kBAAkB,EAAC,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAC;AAQjC,MAAM,kBAAkB,GAAG,CAAC,EAC1B,UAAU,EACV,IAAI,EACJ,UAAU,GACc,EAAE,EAAE;IAC5B,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,OAAO,CAC5C;MAAA,CAAC,GAAG,UAAU,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,IAAI,IAAI,EAAE,CACxD;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,KAAK,EAAE;QACL,MAAM,EAAE,kBAAkB;QAC1B,UAAU,EAAE,kBAAkB;QAC9B,iBAAiB,EAAE,EAAE;KACtB;CACF,CAAC,CAAC;AAEH,eAAe,IAAI,CAAC,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface CalendarWeekDaysProps {
3
+ firstDayOfWeek: number;
4
+ translator: (key: string) => string;
5
+ }
6
+ declare const _default: React.MemoExoticComponent<({ firstDayOfWeek, translator, }: CalendarWeekDaysProps) => React.JSX.Element>;
7
+ export default _default;
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2026 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import React, { memo, useMemo } from 'react';
19
+ import { StyleSheet, View } from 'react-native';
20
+ import { getWeekDayKeys, WEEK_DAYS_ROW_HEIGHT } from '../../../utils';
21
+ import { useThemeColor } from '../../../theme';
22
+ import { Text } from '../../atoms';
23
+ const CalendarWeekDays = ({ firstDayOfWeek, translator, }) => {
24
+ const Colors = useThemeColor();
25
+ const labels = useMemo(() => getWeekDayKeys(firstDayOfWeek).map(key => translator(key)), [firstDayOfWeek, translator]);
26
+ return (<View style={styles.row}>
27
+ {labels.map((label, index) => (<Text key={index} style={styles.label} textColor={Colors.placeholderTextColor} writingType="details">
28
+ {label}
29
+ </Text>))}
30
+ </View>);
31
+ };
32
+ const styles = StyleSheet.create({
33
+ row: {
34
+ height: WEEK_DAYS_ROW_HEIGHT,
35
+ flexDirection: 'row',
36
+ paddingHorizontal: 8,
37
+ },
38
+ label: {
39
+ flex: 1,
40
+ textAlign: 'center',
41
+ },
42
+ });
43
+ export default memo(CalendarWeekDays);
44
+ //# sourceMappingURL=CalendarWeekDays.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarWeekDays.js","sourceRoot":"","sources":["../../../../src/components/molecules/CalendarMonthGrid/CalendarWeekDays.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,IAAI,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,cAAc,EAAE,oBAAoB,EAAC,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAC;AAOjC,MAAM,gBAAgB,GAAG,CAAC,EACxB,cAAc,EACd,UAAU,GACY,EAAE,EAAE;IAC1B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,MAAM,GAAG,OAAO,CACpB,GAAG,EAAE,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAChE,CAAC,cAAc,EAAE,UAAU,CAAC,CAC7B,CAAC;IAEF,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CACtB;MAAA,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5B,CAAC,IAAI,CACH,GAAG,CAAC,CAAC,KAAK,CAAC,CACX,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CACpB,SAAS,CAAC,CAAC,MAAM,CAAC,oBAAoB,CAAC,CACvC,WAAW,CAAC,SAAS,CACrB;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,IAAI,CAAC,CACR,CAAC,CACJ;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,GAAG,EAAE;QACH,MAAM,EAAE,oBAAoB;QAC5B,aAAa,EAAE,KAAK;QACpB,iBAAiB,EAAE,CAAC;KACrB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,CAAC;QACP,SAAS,EAAE,QAAQ;KACpB;CACF,CAAC,CAAC;AAEH,eAAe,IAAI,CAAC,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as CalendarMonthGrid } from './CalendarMonthGrid';
2
+ export { default as CalendarMonthTitle } from './CalendarMonthTitle';
3
+ export { default as CalendarWeekDays } from './CalendarWeekDays';
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2026 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ export { default as CalendarMonthGrid } from './CalendarMonthGrid';
19
+ export { default as CalendarMonthTitle } from './CalendarMonthTitle';
20
+ export { default as CalendarWeekDays } from './CalendarWeekDays';
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/CalendarMonthGrid/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,oBAAoB,CAAC"}
@@ -25,7 +25,7 @@ const CardIconButton = ({ style, iconName, iconColor, disabled = false, onPress,
25
25
  const Wrapper = displayCard ? Card : View;
26
26
  return (<TouchableOpacity style={[styles.container, style]} disabled={disabled} onLongPress={onLongPress} onPress={onPress} activeOpacity={0.9} testID="cardIconButtonContainer">
27
27
  <Wrapper style={displayCard ? styles.cardContainer : undefined}>
28
- <Icon size={20} name={iconName} color={_iconColor}/>
28
+ <Icon size={16} name={iconName} color={_iconColor}/>
29
29
  </Wrapper>
30
30
  </TouchableOpacity>);
31
31
  };
@@ -8,7 +8,7 @@ interface CheckboxProps {
8
8
  title?: string;
9
9
  isDefaultChecked?: boolean;
10
10
  isDefaultPartialChecked?: boolean;
11
- onChange: (any: any) => void;
11
+ onChange: (_v: boolean) => void;
12
12
  }
13
13
  declare const Checkbox: ({ style, styleTxt, iconColor, iconSize, disabled, title, isDefaultChecked, isDefaultPartialChecked, onChange, }: CheckboxProps) => React.JSX.Element;
14
14
  export default Checkbox;
@@ -18,9 +18,9 @@
18
18
  import React, { useEffect, useMemo, useState } from 'react';
19
19
  import { StyleSheet, View } from 'react-native';
20
20
  import { useThemeColor } from '../../../theme';
21
+ import { checkNullString } from '../../../utils';
21
22
  import { Icon, Text } from '../../atoms';
22
- import { checkNullString } from '../../../utils/strings';
23
- const Checkbox = ({ style, styleTxt, iconColor, iconSize = 30, disabled = false, title, isDefaultChecked = false, isDefaultPartialChecked = false, onChange, }) => {
23
+ const Checkbox = ({ style, styleTxt, iconColor, iconSize = 15, disabled = false, title, isDefaultChecked = false, isDefaultPartialChecked = false, onChange, }) => {
24
24
  const Colors = useThemeColor();
25
25
  const [isChecked, setIsChecked] = useState(isDefaultChecked);
26
26
  const [isPartialChecked, setIsPartialChecked] = useState(isDefaultPartialChecked);
@@ -35,17 +35,13 @@ const Checkbox = ({ style, styleTxt, iconColor, iconSize = 30, disabled = false,
35
35
  return 'square';
36
36
  }
37
37
  }, [isChecked, isPartialChecked]);
38
- const _iconColor = useMemo(() => {
39
- if (disabled) {
40
- return Colors.secondaryColor.background;
41
- }
42
- return iconColor != null ? iconColor : Colors.primaryColor.background;
43
- }, [Colors, disabled, iconColor]);
38
+ const _iconColor = useMemo(() => disabled
39
+ ? Colors.secondaryColor.background
40
+ : (iconColor ?? Colors.primaryColor.background), [Colors, disabled, iconColor]);
44
41
  const handleToggle = () => {
45
42
  onChange(!isChecked);
46
43
  setIsChecked(!isChecked);
47
44
  };
48
- const styles = useMemo(() => getStyles(iconSize), [iconSize]);
49
45
  useEffect(() => {
50
46
  setIsChecked(isDefaultChecked);
51
47
  }, [isDefaultChecked]);
@@ -53,30 +49,18 @@ const Checkbox = ({ style, styleTxt, iconColor, iconSize = 30, disabled = false,
53
49
  setIsPartialChecked(isDefaultPartialChecked);
54
50
  }, [isDefaultPartialChecked]);
55
51
  return (<View style={[styles.container, style]} testID="checkboxContainer">
56
- <View style={styles.iconContainer}>
57
- <Icon name={iconName} color={_iconColor} size={iconSize} touchable={!disabled} onPress={handleToggle}/>
58
- </View>
59
- {!checkNullString(title) && (<Text style={[styles.title, styleTxt]} textColor={Colors.text} fontSize={14}>
60
- {title}
61
- </Text>)}
52
+ <Icon name={iconName} color={_iconColor} size={iconSize} touchable={!disabled} onPress={handleToggle}/>
53
+ {!checkNullString(title) && <Text style={styleTxt}>{title}</Text>}
62
54
  </View>);
63
55
  };
64
- const getStyles = iconSize => StyleSheet.create({
56
+ const styles = StyleSheet.create({
65
57
  container: {
66
58
  flexDirection: 'row',
67
59
  justifyContent: 'flex-start',
68
60
  alignItems: 'center',
69
- },
70
- iconContainer: {
71
- width: iconSize,
72
- height: iconSize,
73
- justifyContent: 'center',
74
- alignItems: 'center',
75
- },
76
- title: {
77
- fontSize: 16,
78
- marginLeft: 5,
79
- fontWeight: '600',
61
+ gap: 5,
62
+ marginVertical: 5,
63
+ marginLeft: 10,
80
64
  },
81
65
  });
82
66
  export default Checkbox;
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../../src/components/molecules/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,aAAa,CAAC;AACvC,OA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AAA,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CACnE;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,YAAY;QAC5B,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,CAAC;QACN,cAAc,EAAE,CAAC;QACjB,UAAU,EAAE,EAAE;KACf;CACF,CAAC,CAAC;AAEH,eAAe,QAAQ,CAAC"}
@@ -5,7 +5,7 @@ interface ChipProps {
5
5
  title: string;
6
6
  onPress: () => void;
7
7
  selectedColor?: Color;
8
- width?: number;
8
+ width?: number | null;
9
9
  marginHorizontal?: number;
10
10
  readonly?: boolean;
11
11
  numberOfLines?: number;
@@ -16,14 +16,14 @@
16
16
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  */
18
18
  import React, { useMemo } from 'react';
19
- import { Dimensions, StyleSheet, View, TouchableOpacity } from 'react-native';
20
- import { Text } from '../../atoms';
19
+ import { Dimensions, StyleSheet, TouchableOpacity } from 'react-native';
21
20
  import { useThemeColor } from '../../../theme';
22
- import { sliceString } from '../../../utils/strings';
23
- const Chip = ({ selected, title, onPress, selectedColor = null, width = Dimensions.get('window').width * 0.4, marginHorizontal = 12, readonly = false, numberOfLines, style, }) => {
21
+ import { sliceString } from '../../../utils';
22
+ import { Text } from '../../atoms';
23
+ const Chip = ({ selected, title, onPress, selectedColor, width = Dimensions.get('window').width * 0.4, marginHorizontal = 12, readonly = false, numberOfLines, style, }) => {
24
24
  const Colors = useThemeColor();
25
25
  const chipColor = useMemo(() => {
26
- let _chipColor = selectedColor == null ? Colors.primaryColor : selectedColor;
26
+ let _chipColor = selectedColor ?? Colors.primaryColor;
27
27
  if (!selected) {
28
28
  _chipColor = {
29
29
  background: _chipColor.background,
@@ -33,34 +33,38 @@ const Chip = ({ selected, title, onPress, selectedColor = null, width = Dimensio
33
33
  }
34
34
  return _chipColor;
35
35
  }, [Colors, selected, selectedColor]);
36
- const styles = useMemo(() => getStyles(chipColor, Colors), [Colors, chipColor]);
37
- return (<TouchableOpacity style={[{ width: width, marginHorizontal: marginHorizontal }, style]} disabled={readonly} onPress={onPress} activeOpacity={0.8} testID="chipTouchable">
38
- <View style={styles.container} testID="chipContainer">
39
- <Text style={styles.text} textColor={selected ? chipColor.foreground : Colors.text} numberOfLines={numberOfLines} fontSize={14}>
40
- {sliceString(title, 23)}
41
- </Text>
42
- </View>
36
+ const styles = useMemo(() => getStyles(chipColor), [chipColor]);
37
+ return (<TouchableOpacity style={[
38
+ styles.container,
39
+ { width: width, marginHorizontal: marginHorizontal },
40
+ style,
41
+ ]} disabled={readonly} onPress={onPress} activeOpacity={0.9} testID="chipTouchable">
42
+ <Text style={[styles.text, selected ? styles.bold : null]} textColor={selected ? chipColor.background : Colors.text} numberOfLines={numberOfLines} fontSize={12}>
43
+ {sliceString(title, 23)}
44
+ </Text>
43
45
  </TouchableOpacity>);
44
46
  };
45
- const getStyles = (chipColor, Colors) => StyleSheet.create({
47
+ const getStyles = (chipColor) => StyleSheet.create({
46
48
  container: {
49
+ flexGrow: 1,
50
+ flexShrink: 0,
51
+ flexBasis: 'auto',
47
52
  justifyContent: 'center',
48
53
  alignItems: 'center',
49
54
  paddingVertical: 5,
50
55
  paddingHorizontal: 5,
51
56
  marginVertical: 2,
52
- borderRadius: 20,
53
- borderWidth: 2,
57
+ borderRadius: 8,
58
+ borderWidth: 1,
54
59
  borderColor: chipColor.background,
55
60
  backgroundColor: chipColor.background_light,
56
- elevation: 3,
57
- shadowOpacity: 0.5,
58
- shadowColor: Colors.secondaryColor.background,
59
- shadowOffset: { width: 0, height: 0 },
60
61
  },
61
62
  text: {
62
63
  textAlign: 'center',
63
64
  },
65
+ bold: {
66
+ fontWeight: 'bold',
67
+ },
64
68
  });
65
69
  export default Chip;
66
70
  //# sourceMappingURL=Chip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../../../src/components/molecules/Chip/Chip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC5E,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAqB,aAAa,EAAC,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AAcnD,MAAM,IAAI,GAAG,CAAC,EACZ,QAAQ,EACR,KAAK,EACL,OAAO,EACP,aAAa,GAAG,IAAI,EACpB,KAAK,GAAG,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,KAAK,GAAG,GAAG,EAC5C,gBAAgB,GAAG,EAAE,EACrB,QAAQ,GAAG,KAAK,EAChB,aAAa,EACb,KAAK,GACK,EAAE,EAAE;IACd,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,EAAE;QAC7B,IAAI,UAAU,GACZ,aAAa,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC;QAE9D,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,UAAU,GAAG;gBACX,UAAU,EAAE,UAAU,CAAC,UAAU;gBACjC,gBAAgB,EAAE,MAAM,CAAC,eAAe;gBACxC,UAAU,EAAE,MAAM,CAAC,IAAI;aACxB,CAAC;QACJ,CAAC;QAED,OAAO,UAAU,CAAC;IACpB,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ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,UAAU,EAAE,CAAC;QACb,SAAS,EAAE,MAAM;QACjB,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,eAAe,EAAE,CAAC;QAClB,iBAAiB,EAAE,CAAC;QACpB,cAAc,EAAE,CAAC;QACjB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,CAAC;QACd,WAAW,EAAE,SAAS,CAAC,UAAU;QACjC,eAAe,EAAE,SAAS,CAAC,gBAAgB;KAC5C;IACD,IAAI,EAAE;QACJ,SAAS,EAAE,QAAQ;KACpB;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM;KACnB;CACF,CAAC,CAAC;AAEL,eAAe,IAAI,CAAC"}
@@ -19,7 +19,7 @@ import React, { useMemo } from 'react';
19
19
  import { StyleSheet } from 'react-native';
20
20
  import { Button } from '../../molecules';
21
21
  const BUTTON_SIZE = 50;
22
- const CircleButton = ({ testID, square = true, size = BUTTON_SIZE, color, isNeutralBackground = false, iconName, style, onPress = () => { }, disabled = false, onDisabledPress = null, }) => {
22
+ const CircleButton = ({ testID, square = true, size = BUTTON_SIZE, color, isNeutralBackground = false, iconName, style, onPress, disabled = false, onDisabledPress, }) => {
23
23
  const styles = useMemo(() => {
24
24
  return getStyles(size, square);
25
25
  }, [size, square]);
@@ -1 +1 @@
1
- {"version":3,"file":"CircleButton.js","sourceRoot":"","sources":["../../../../src/components/molecules/CircleButton/CircleButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAGvC,MAAM,WAAW,GAAG,EAAE,CAAC;AAevB,MAAM,YAAY,GAAG,CAAC,EACpB,MAAM,EACN,MAAM,GAAG,IAAI,EACb,IAAI,GAAG,WAAW,EAClB,KAAK,EACL,mBA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AAC;AAEL,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"CircleButton.js","sourceRoot":"","sources":["../../../../src/components/molecules/CircleButton/CircleButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,OAAO,EAAC,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAEvC,MAAM,WAAW,GAAG,EAAE,CAAC;AAevB,MAAM,YAAY,GAAG,CAAC,EACpB,MAAM,EACN,MAAM,GAAG,IAAI,EACb,IAAI,GAAG,WAAW,EAClB,KAAK,EACL,mBAAmB,GAAG,KAAK,EAC3B,QAAQ,EACR,KAAK,EACL,OAAO,EACP,QAAQ,GAAG,KAAK,EAChB,eAAe,GACG,EAAE,EAAE;IACtB,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE;QAC1B,OAAO,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACjC,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IAEnB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAE7D,OAAO,CACL,CAAC,MAAM,CACL,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,mBAAmB,CAAC,CAAC,mBAAmB,CAAC,CACzC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAC9B,SAAS,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACvB,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,eAAe,CAAC,CAAC,eAAe,CAAC,EACjC,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,IAAY,EAAE,MAAe,EAAE,EAAE,CAClD,UAAU,CAAC,MAAM,CAAC;IAChB,MAAM,EAAE;QACN,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;KAChC;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,CAAC;KACpB;CACF,CAAC,CAAC;AAEL,eAAe,YAAY,CAAC"}
@@ -17,18 +17,13 @@
17
17
  */
18
18
  import React, { useMemo } from 'react';
19
19
  import { StyleSheet, Dimensions } from 'react-native';
20
- import { getCommonStyles } from '../../../utils/commons-styles';
20
+ import { getCommonStyles } from '../../../utils';
21
21
  import { useThemeColor } from '../../../theme';
22
22
  import { Card, Icon, Text } from '../../atoms';
23
23
  const ClearableCard = ({ style, valueTxt, onClearPress, clearable = true, }) => {
24
24
  const Colors = useThemeColor();
25
25
  const commonStyles = useMemo(() => getCommonStyles(Colors), [Colors]);
26
- return (<Card style={[
27
- commonStyles.filter,
28
- commonStyles.filterAlign,
29
- commonStyles.filterSize,
30
- style,
31
- ]}>
26
+ return (<Card style={[commonStyles.filter, commonStyles.filterAlign, style]}>
32
27
  <Text style={styles.text}>{valueTxt}</Text>
33
28
  {clearable && (<Icon name="x-lg" touchable={true} onPress={onClearPress} size={Dimensions.get('window').width * 0.05}/>)}
34
29
  </Card>);