@geotab/zenith 3.11.0-beta.0 → 3.11.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/README.md +3 -26
  2. package/dist/calendar/calendar.js +4 -7
  3. package/dist/card/components/title.js +1 -4
  4. package/dist/card/components/titleLink.js +2 -5
  5. package/dist/chart/barChart/getDefaultOptions.d.ts +1 -2
  6. package/dist/chart/barChart/getDefaultOptions.js +2 -5
  7. package/dist/chart/barChart.js +4 -6
  8. package/dist/chart/lineChart/getDefaultOptions.d.ts +1 -2
  9. package/dist/chart/lineChart/getDefaultOptions.js +2 -5
  10. package/dist/chart/lineChart.js +2 -4
  11. package/dist/checkboxListWithAction/checkboxListWithAction.js +1 -4
  12. package/dist/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +1 -4
  13. package/dist/commonStyles/pillStyles/pillContent.less +14 -13
  14. package/dist/commonStyles/pillStyles/pillStyles.less +5 -4
  15. package/dist/commonStyles/pillStyles/pillTextContent.less +2 -2
  16. package/dist/commonStyles/typography/typography.less +19 -579
  17. package/dist/controlledPopup/controlledPopup.d.ts +0 -1
  18. package/dist/controlledPopup/controlledPopup.js +1 -3
  19. package/dist/dataGrid/cell/cell.d.ts +1 -2
  20. package/dist/dataGrid/cell/cell.js +2 -2
  21. package/dist/dataGrid/dataGrid.js +4 -7
  22. package/dist/dataGrid/listColumn.d.ts +0 -2
  23. package/dist/dataGrid/row/row.d.ts +1 -2
  24. package/dist/dataGrid/row/row.js +9 -13
  25. package/dist/dataGrid/withFlexibleColumns/components/columnSettingsList.js +1 -2
  26. package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +0 -4
  27. package/dist/dateRangeInner/dateRangeInner.js +2 -5
  28. package/dist/dateRangeRaw/dateRangeRaw.js +2 -5
  29. package/dist/dateRangeRaw/utils/parseLabel.js +1 -1
  30. package/dist/dropdownRaw/dropdownRaw.js +6 -12
  31. package/dist/fileUpload/components/dropZoneContent.js +100 -100
  32. package/dist/fileUpload/fileUpload.js +100 -100
  33. package/dist/filters/components/filtersSearchList.js +1 -4
  34. package/dist/filtersBar/filtersContainer/filtersContainer.js +61 -62
  35. package/dist/formStepperButtons/formStepperButtons.js +1 -4
  36. package/dist/groupsFilterRaw/groupsFilterAdjustmentState.js +1 -4
  37. package/dist/groupsFilterRaw/groupsFilterInitialState.js +1 -4
  38. package/dist/header/headerBack.js +1 -4
  39. package/dist/icons/iconAlignLeft.js +3 -1
  40. package/dist/icons/iconAlignmentLeft.js +3 -1
  41. package/dist/icons/iconAlignmentRight.js +3 -1
  42. package/dist/icons/iconArrowBottomLeft.js +3 -1
  43. package/dist/icons/iconArrowBottomRight.js +3 -1
  44. package/dist/icons/iconArrowLeftPath.js +3 -1
  45. package/dist/icons/iconArrowRight.js +3 -1
  46. package/dist/icons/iconArrowRightCircle.js +3 -1
  47. package/dist/icons/iconArrowRightPath.js +3 -1
  48. package/dist/icons/iconArrowTopLeft.js +3 -1
  49. package/dist/icons/iconArrowTopRight.js +3 -1
  50. package/dist/icons/iconChevronDoubleRight.js +3 -1
  51. package/dist/icons/iconChevronRight.js +3 -1
  52. package/dist/icons/iconChevronRightSmall.js +3 -1
  53. package/dist/icons/iconCornerDownLeft.js +3 -1
  54. package/dist/icons/iconCornerDownRight.js +3 -1
  55. package/dist/icons/iconCornerLeftDown.js +3 -1
  56. package/dist/icons/iconCornerLeftUp.js +3 -1
  57. package/dist/icons/iconCornerRightDown.js +3 -1
  58. package/dist/icons/iconCornerRightUp.js +3 -1
  59. package/dist/icons/iconCornerUpLeft.js +3 -1
  60. package/dist/icons/iconCornerUpRight.js +3 -1
  61. package/dist/index.css +2920 -3245
  62. package/dist/index.d.ts +0 -1
  63. package/dist/index.js +1 -3
  64. package/dist/lineChartMini/lineChartMini.js +3 -15
  65. package/dist/list/itemData/itemDataInternal.js +1 -4
  66. package/dist/list/listItem/listItem.js +1 -4
  67. package/dist/menu/components/controlledMenuList/controlledMenuList.js +1 -4
  68. package/dist/menu/components/menuButton.js +1 -4
  69. package/dist/menu/utils/useMenuItemCore.js +1 -4
  70. package/dist/nav/navItem/navItem.js +1 -4
  71. package/dist/pagination/paginationArrow.js +3 -10
  72. package/dist/radioGroupRaw/radioGroupRaw.js +1 -2
  73. package/dist/rangeRaw/rangeRaw.js +1 -0
  74. package/dist/selectList/selectList.helpers.d.ts +1 -1
  75. package/dist/selectList/selectList.helpers.js +4 -29
  76. package/dist/selectList/selectList.js +1 -3
  77. package/dist/selectList/selectList.reducer.js +2 -1
  78. package/dist/selectList/selectListItem.js +1 -4
  79. package/dist/sortControl/sortControl.js +4 -59
  80. package/dist/table/children/useTableChildren.d.ts +1 -1
  81. package/dist/table/children/useTableChildren.js +3 -3
  82. package/dist/table/flexible/columnsList.js +2 -4
  83. package/dist/table/selectable/useSelectableRows.d.ts +0 -8
  84. package/dist/table/selectable/useSelectableRows.js +6 -14
  85. package/dist/table/table.js +7 -1
  86. package/dist/tabs/tabs.js +58 -60
  87. package/dist/tabs/tabsTestHelper.js +2 -2
  88. package/dist/timePickerRaw/timePickerRaw.js +1 -1
  89. package/dist/toggleButtonRaw/toggleButtonRaw.js +2 -5
  90. package/dist/utils/localization/translations/ar.json +1 -3
  91. package/dist/utils/localization/translations/cs.json +5 -9
  92. package/dist/utils/localization/translations/da-DK.json +5 -9
  93. package/dist/utils/localization/translations/de.json +5 -9
  94. package/dist/utils/localization/translations/en.json +1 -5
  95. package/dist/utils/localization/translations/es.json +5 -9
  96. package/dist/utils/localization/translations/fi-FI.json +5 -9
  97. package/dist/utils/localization/translations/fr-FR.json +5 -9
  98. package/dist/utils/localization/translations/fr.json +5 -9
  99. package/dist/utils/localization/translations/hu-HU.json +5 -9
  100. package/dist/utils/localization/translations/id.json +5 -9
  101. package/dist/utils/localization/translations/it.json +5 -9
  102. package/dist/utils/localization/translations/ja.json +5 -9
  103. package/dist/utils/localization/translations/ko-KR.json +5 -9
  104. package/dist/utils/localization/translations/ms.json +5 -9
  105. package/dist/utils/localization/translations/nb-NO.json +5 -9
  106. package/dist/utils/localization/translations/nl.json +5 -9
  107. package/dist/utils/localization/translations/pl.json +5 -9
  108. package/dist/utils/localization/translations/pt-BR.json +5 -9
  109. package/dist/utils/localization/translations/pt-PT.json +5 -9
  110. package/dist/utils/localization/translations/ro-RO.json +5 -9
  111. package/dist/utils/localization/translations/sk-SK.json +5 -9
  112. package/dist/utils/localization/translations/sv.json +5 -9
  113. package/dist/utils/localization/translations/th.json +5 -9
  114. package/dist/utils/localization/translations/tr.json +5 -9
  115. package/dist/utils/localization/translations/zh-Hans.json +5 -9
  116. package/dist/utils/localization/translations/zh-TW.json +5 -9
  117. package/dist/utils/positioningUtils/alignments.d.ts +2 -2
  118. package/dist/utils/positioningUtils/alignments.js +2 -2
  119. package/dist/utils/positioningUtils/calculatePosition.js +6 -4
  120. package/esm/calendar/calendar.js +4 -7
  121. package/esm/card/components/title.js +1 -4
  122. package/esm/card/components/titleLink.js +2 -5
  123. package/esm/chart/barChart/getDefaultOptions.d.ts +1 -2
  124. package/esm/chart/barChart/getDefaultOptions.js +2 -5
  125. package/esm/chart/barChart.js +4 -6
  126. package/esm/chart/lineChart/getDefaultOptions.d.ts +1 -2
  127. package/esm/chart/lineChart/getDefaultOptions.js +2 -5
  128. package/esm/chart/lineChart.js +2 -4
  129. package/esm/checkboxListWithAction/checkboxListWithAction.js +1 -4
  130. package/esm/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.js +1 -4
  131. package/esm/controlledPopup/controlledPopup.d.ts +0 -1
  132. package/esm/controlledPopup/controlledPopup.js +1 -3
  133. package/esm/dataGrid/cell/cell.d.ts +1 -2
  134. package/esm/dataGrid/cell/cell.js +2 -2
  135. package/esm/dataGrid/dataGrid.js +4 -7
  136. package/esm/dataGrid/listColumn.d.ts +0 -2
  137. package/esm/dataGrid/row/row.d.ts +1 -2
  138. package/esm/dataGrid/row/row.js +9 -13
  139. package/esm/dataGrid/withFlexibleColumns/components/columnSettingsList.js +1 -2
  140. package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +0 -4
  141. package/esm/dateRangeInner/dateRangeInner.js +2 -5
  142. package/esm/dateRangeRaw/dateRangeRaw.js +2 -5
  143. package/esm/dateRangeRaw/utils/parseLabel.js +1 -1
  144. package/esm/dropdownRaw/dropdownRaw.js +6 -12
  145. package/esm/fileUpload/components/dropZoneContent.js +100 -100
  146. package/esm/fileUpload/fileUpload.js +100 -100
  147. package/esm/filters/components/filtersSearchList.js +1 -4
  148. package/esm/filtersBar/filtersContainer/filtersContainer.js +61 -62
  149. package/esm/formStepperButtons/formStepperButtons.js +1 -4
  150. package/esm/groupsFilterRaw/groupsFilterAdjustmentState.js +1 -4
  151. package/esm/groupsFilterRaw/groupsFilterInitialState.js +1 -4
  152. package/esm/header/headerBack.js +1 -4
  153. package/esm/icons/iconAlignLeft.js +3 -1
  154. package/esm/icons/iconAlignmentLeft.js +3 -1
  155. package/esm/icons/iconAlignmentRight.js +3 -1
  156. package/esm/icons/iconArrowBottomLeft.js +3 -1
  157. package/esm/icons/iconArrowBottomRight.js +3 -1
  158. package/esm/icons/iconArrowLeftPath.js +3 -1
  159. package/esm/icons/iconArrowRight.js +3 -1
  160. package/esm/icons/iconArrowRightCircle.js +3 -1
  161. package/esm/icons/iconArrowRightPath.js +3 -1
  162. package/esm/icons/iconArrowTopLeft.js +3 -1
  163. package/esm/icons/iconArrowTopRight.js +3 -1
  164. package/esm/icons/iconChevronDoubleRight.js +3 -1
  165. package/esm/icons/iconChevronRight.js +3 -1
  166. package/esm/icons/iconChevronRightSmall.js +3 -1
  167. package/esm/icons/iconCornerDownLeft.js +3 -1
  168. package/esm/icons/iconCornerDownRight.js +3 -1
  169. package/esm/icons/iconCornerLeftDown.js +3 -1
  170. package/esm/icons/iconCornerLeftUp.js +3 -1
  171. package/esm/icons/iconCornerRightDown.js +3 -1
  172. package/esm/icons/iconCornerRightUp.js +3 -1
  173. package/esm/icons/iconCornerUpLeft.js +3 -1
  174. package/esm/icons/iconCornerUpRight.js +3 -1
  175. package/esm/index.d.ts +0 -1
  176. package/esm/index.js +0 -1
  177. package/esm/lineChartMini/lineChartMini.js +3 -15
  178. package/esm/list/itemData/itemDataInternal.js +1 -4
  179. package/esm/list/listItem/listItem.js +1 -4
  180. package/esm/menu/components/controlledMenuList/controlledMenuList.js +1 -4
  181. package/esm/menu/components/menuButton.js +1 -4
  182. package/esm/menu/utils/useMenuItemCore.js +1 -4
  183. package/esm/nav/navItem/navItem.js +1 -4
  184. package/esm/pagination/paginationArrow.js +3 -10
  185. package/esm/radioGroupRaw/radioGroupRaw.js +1 -2
  186. package/esm/rangeRaw/rangeRaw.js +1 -0
  187. package/esm/selectList/selectList.helpers.d.ts +1 -1
  188. package/esm/selectList/selectList.helpers.js +4 -29
  189. package/esm/selectList/selectList.js +1 -3
  190. package/esm/selectList/selectList.reducer.js +2 -1
  191. package/esm/selectList/selectListItem.js +1 -4
  192. package/esm/sortControl/sortControl.js +4 -59
  193. package/esm/table/children/useTableChildren.d.ts +1 -1
  194. package/esm/table/children/useTableChildren.js +3 -3
  195. package/esm/table/flexible/columnsList.js +2 -4
  196. package/esm/table/selectable/useSelectableRows.d.ts +0 -8
  197. package/esm/table/selectable/useSelectableRows.js +6 -14
  198. package/esm/table/table.js +7 -1
  199. package/esm/tabs/tabs.js +58 -60
  200. package/esm/tabs/tabsTestHelper.js +2 -2
  201. package/esm/timePickerRaw/timePickerRaw.js +1 -1
  202. package/esm/toggleButtonRaw/toggleButtonRaw.js +2 -5
  203. package/esm/utils/localization/translations/ar.json +1 -3
  204. package/esm/utils/localization/translations/cs.json +5 -9
  205. package/esm/utils/localization/translations/da-DK.json +5 -9
  206. package/esm/utils/localization/translations/de.json +5 -9
  207. package/esm/utils/localization/translations/en.json +1 -5
  208. package/esm/utils/localization/translations/es.json +5 -9
  209. package/esm/utils/localization/translations/fi-FI.json +5 -9
  210. package/esm/utils/localization/translations/fr-FR.json +5 -9
  211. package/esm/utils/localization/translations/fr.json +5 -9
  212. package/esm/utils/localization/translations/hu-HU.json +5 -9
  213. package/esm/utils/localization/translations/id.json +5 -9
  214. package/esm/utils/localization/translations/it.json +5 -9
  215. package/esm/utils/localization/translations/ja.json +5 -9
  216. package/esm/utils/localization/translations/ko-KR.json +5 -9
  217. package/esm/utils/localization/translations/ms.json +5 -9
  218. package/esm/utils/localization/translations/nb-NO.json +5 -9
  219. package/esm/utils/localization/translations/nl.json +5 -9
  220. package/esm/utils/localization/translations/pl.json +5 -9
  221. package/esm/utils/localization/translations/pt-BR.json +5 -9
  222. package/esm/utils/localization/translations/pt-PT.json +5 -9
  223. package/esm/utils/localization/translations/ro-RO.json +5 -9
  224. package/esm/utils/localization/translations/sk-SK.json +5 -9
  225. package/esm/utils/localization/translations/sv.json +5 -9
  226. package/esm/utils/localization/translations/th.json +5 -9
  227. package/esm/utils/localization/translations/tr.json +5 -9
  228. package/esm/utils/localization/translations/zh-Hans.json +5 -9
  229. package/esm/utils/localization/translations/zh-TW.json +5 -9
  230. package/esm/utils/positioningUtils/alignments.d.ts +2 -2
  231. package/esm/utils/positioningUtils/alignments.js +2 -2
  232. package/esm/utils/positioningUtils/calculatePosition.js +6 -4
  233. package/package.json +122 -123
  234. package/dist/utils/localization/useDirectionalIcon.d.ts +0 -3
  235. package/dist/utils/localization/useDirectionalIcon.js +0 -9
  236. package/esm/testHelpers/mockAbsoluteAlignment.d.ts +0 -1
  237. package/esm/testHelpers/mockAbsoluteAlignment.js +0 -10
  238. package/esm/utils/localization/useDirectionalIcon.d.ts +0 -3
  239. package/esm/utils/localization/useDirectionalIcon.js +0 -5
@@ -317,15 +317,11 @@
317
317
  "Exit full screen table view": "Exit full screen table view",
318
318
  "Close search": "Close search",
319
319
  "Has additional actions. Use right arrow to access button, left arrow to return.": "Has additional actions. Use right arrow to access button, left arrow to return.",
320
- "Drag & drop files or": "Dra og slipp filer eller",
321
- "Browse": "Bla gjennom",
322
- "Tap to add files": "Trykk for å legge til filer",
323
- "Supported Formats:": "Støttede formater:",
320
+ "Drag & drop files or": "Drag & drop files or",
321
+ "Browse": "Browse",
322
+ "Tap to add files": "Tap to add files",
323
+ "Supported Formats:": "Supported Formats:",
324
324
  "Upload files.": "Upload files.",
325
325
  "File upload area": "File upload area",
326
- "Uploaded": "Uploaded",
327
- "Ascending": "Stigende",
328
- "Descending": "Synkende",
329
- "Scroll to start": "Rull til start",
330
- "Scroll to end": "Rull til slutt"
326
+ "Uploaded": "Uploaded"
331
327
  }
@@ -317,15 +317,11 @@
317
317
  "Exit full screen table view": "Exit full screen table view",
318
318
  "Close search": "Close search",
319
319
  "Has additional actions. Use right arrow to access button, left arrow to return.": "Has additional actions. Use right arrow to access button, left arrow to return.",
320
- "Drag & drop files or": "Bestanden slepen en neerzetten of",
321
- "Browse": "Bladeren",
322
- "Tap to add files": "Tik om bestanden toe te voegen",
323
- "Supported Formats:": "Ondersteunde indelingen:",
320
+ "Drag & drop files or": "Drag & drop files or",
321
+ "Browse": "Browse",
322
+ "Tap to add files": "Tap to add files",
323
+ "Supported Formats:": "Supported Formats:",
324
324
  "Upload files.": "Upload files.",
325
325
  "File upload area": "File upload area",
326
- "Uploaded": "Uploaded",
327
- "Ascending": "Oplopend",
328
- "Descending": "Aflopend",
329
- "Scroll to start": "Scroll to start",
330
- "Scroll to end": "Scroll to end"
326
+ "Uploaded": "Uploaded"
331
327
  }
@@ -317,15 +317,11 @@
317
317
  "Exit full screen table view": "Exit full screen table view",
318
318
  "Close search": "Close search",
319
319
  "Has additional actions. Use right arrow to access button, left arrow to return.": "Has additional actions. Use right arrow to access button, left arrow to return.",
320
- "Drag & drop files or": "Przeciągnij i upuść pliki lub",
321
- "Browse": "Przeglądaj",
322
- "Tap to add files": "Dotknij, aby dodać pliki",
323
- "Supported Formats:": "Obsługiwane formaty:",
320
+ "Drag & drop files or": "Drag & drop files or",
321
+ "Browse": "Browse",
322
+ "Tap to add files": "Tap to add files",
323
+ "Supported Formats:": "Supported Formats:",
324
324
  "Upload files.": "Upload files.",
325
325
  "File upload area": "File upload area",
326
- "Uploaded": "Uploaded",
327
- "Ascending": "Rosnąco",
328
- "Descending": "Malejąco",
329
- "Scroll to start": "Przewiń do początku",
330
- "Scroll to end": "Przewiń do końca"
326
+ "Uploaded": "Uploaded"
331
327
  }
@@ -317,15 +317,11 @@
317
317
  "Exit full screen table view": "Exit full screen table view",
318
318
  "Close search": "Close search",
319
319
  "Has additional actions. Use right arrow to access button, left arrow to return.": "Has additional actions. Use right arrow to access button, left arrow to return.",
320
- "Drag & drop files or": "Arraste e solte arquivos ou",
321
- "Browse": "Procurar",
322
- "Tap to add files": "Toque para adicionar arquivos",
323
- "Supported Formats:": "Formatos suportados:",
320
+ "Drag & drop files or": "Drag & drop files or",
321
+ "Browse": "Browse",
322
+ "Tap to add files": "Tap to add files",
323
+ "Supported Formats:": "Supported Formats:",
324
324
  "Upload files.": "Upload files.",
325
325
  "File upload area": "File upload area",
326
- "Uploaded": "Uploaded",
327
- "Ascending": "Crescente",
328
- "Descending": "Decrescente",
329
- "Scroll to start": "Scroll to start",
330
- "Scroll to end": "Scroll to end"
326
+ "Uploaded": "Uploaded"
331
327
  }
@@ -317,15 +317,11 @@
317
317
  "Exit full screen table view": "Exit full screen table view",
318
318
  "Close search": "Close search",
319
319
  "Has additional actions. Use right arrow to access button, left arrow to return.": "Has additional actions. Use right arrow to access button, left arrow to return.",
320
- "Drag & drop files or": "Arraste e largue ficheiros ou",
321
- "Browse": "Procurar",
322
- "Tap to add files": "Toque para adicionar ficheiros",
323
- "Supported Formats:": "Formatos suportados:",
320
+ "Drag & drop files or": "Drag & drop files or",
321
+ "Browse": "Browse",
322
+ "Tap to add files": "Tap to add files",
323
+ "Supported Formats:": "Supported Formats:",
324
324
  "Upload files.": "Upload files.",
325
325
  "File upload area": "File upload area",
326
- "Uploaded": "Uploaded",
327
- "Ascending": "Ascendente",
328
- "Descending": "Descendente",
329
- "Scroll to start": "Scroll to start",
330
- "Scroll to end": "Scroll to end"
326
+ "Uploaded": "Uploaded"
331
327
  }
@@ -317,15 +317,11 @@
317
317
  "Exit full screen table view": "Exit full screen table view",
318
318
  "Close search": "Close search",
319
319
  "Has additional actions. Use right arrow to access button, left arrow to return.": "Has additional actions. Use right arrow to access button, left arrow to return.",
320
- "Drag & drop files or": "Glisați și fixați fișiere sau",
321
- "Browse": "Răsfoire",
322
- "Tap to add files": "Atingeți pentru a adăuga fișiere",
323
- "Supported Formats:": "Formate acceptate:",
320
+ "Drag & drop files or": "Drag & drop files or",
321
+ "Browse": "Browse",
322
+ "Tap to add files": "Tap to add files",
323
+ "Supported Formats:": "Supported Formats:",
324
324
  "Upload files.": "Upload files.",
325
325
  "File upload area": "File upload area",
326
- "Uploaded": "Uploaded",
327
- "Ascending": "Ascensiune",
328
- "Descending": "Coborâre",
329
- "Scroll to start": "Derulare la început",
330
- "Scroll to end": "Derulare la sfârșit"
326
+ "Uploaded": "Uploaded"
331
327
  }
@@ -317,15 +317,11 @@
317
317
  "Exit full screen table view": "Exit full screen table view",
318
318
  "Close search": "Close search",
319
319
  "Has additional actions. Use right arrow to access button, left arrow to return.": "Has additional actions. Use right arrow to access button, left arrow to return.",
320
- "Drag & drop files or": "Presuňte súbory alebo",
321
- "Browse": "Prehľadávať",
322
- "Tap to add files": "Klepnutím pridajte súbory",
323
- "Supported Formats:": "Podporované formáty:",
320
+ "Drag & drop files or": "Drag & drop files or",
321
+ "Browse": "Browse",
322
+ "Tap to add files": "Tap to add files",
323
+ "Supported Formats:": "Supported Formats:",
324
324
  "Upload files.": "Upload files.",
325
325
  "File upload area": "File upload area",
326
- "Uploaded": "Uploaded",
327
- "Ascending": "Vzostupne",
328
- "Descending": "Zostupne",
329
- "Scroll to start": "Posunúť na začiatok",
330
- "Scroll to end": "Posunúť na koniec"
326
+ "Uploaded": "Uploaded"
331
327
  }
@@ -317,15 +317,11 @@
317
317
  "Exit full screen table view": "Exit full screen table view",
318
318
  "Close search": "Close search",
319
319
  "Has additional actions. Use right arrow to access button, left arrow to return.": "Has additional actions. Use right arrow to access button, left arrow to return.",
320
- "Drag & drop files or": "Dra och släpp filer eller",
321
- "Browse": "Bläddra",
322
- "Tap to add files": "Tryck för att lägga till filer",
323
- "Supported Formats:": "Format som stöds:",
320
+ "Drag & drop files or": "Drag & drop files or",
321
+ "Browse": "Browse",
322
+ "Tap to add files": "Tap to add files",
323
+ "Supported Formats:": "Supported Formats:",
324
324
  "Upload files.": "Upload files.",
325
325
  "File upload area": "File upload area",
326
- "Uploaded": "Uploaded",
327
- "Ascending": "Stigande",
328
- "Descending": "Fallande",
329
- "Scroll to start": "Scroll to start",
330
- "Scroll to end": "Scroll to end"
326
+ "Uploaded": "Uploaded"
331
327
  }
@@ -317,15 +317,11 @@
317
317
  "Exit full screen table view": "Exit full screen table view",
318
318
  "Close search": "Close search",
319
319
  "Has additional actions. Use right arrow to access button, left arrow to return.": "Has additional actions. Use right arrow to access button, left arrow to return.",
320
- "Drag & drop files or": "ลากและวางไฟล์หรือ",
321
- "Browse": "เรียกดู",
322
- "Tap to add files": "แตะเพื่อเพิ่มไฟล์",
323
- "Supported Formats:": "รูปแบบที่รองรับ:",
320
+ "Drag & drop files or": "Drag & drop files or",
321
+ "Browse": "Browse",
322
+ "Tap to add files": "Tap to add files",
323
+ "Supported Formats:": "Supported Formats:",
324
324
  "Upload files.": "Upload files.",
325
325
  "File upload area": "File upload area",
326
- "Uploaded": "Uploaded",
327
- "Ascending": "จากน้อยไปมาก",
328
- "Descending": "จากมากไปน้อย",
329
- "Scroll to start": "เลื่อนไปที่จุดเริ่มต้น",
330
- "Scroll to end": "เลื่อนไปที่จุดสิ้นสุด"
326
+ "Uploaded": "Uploaded"
331
327
  }
@@ -317,15 +317,11 @@
317
317
  "Exit full screen table view": "Exit full screen table view",
318
318
  "Close search": "Close search",
319
319
  "Has additional actions. Use right arrow to access button, left arrow to return.": "Has additional actions. Use right arrow to access button, left arrow to return.",
320
- "Drag & drop files or": "Dosyaları sürükleyip bırakın veya",
321
- "Browse": "Gözat",
322
- "Tap to add files": "Dosya eklemek için dokunun",
323
- "Supported Formats:": "Desteklenen Biçimler:",
320
+ "Drag & drop files or": "Drag & drop files or",
321
+ "Browse": "Browse",
322
+ "Tap to add files": "Tap to add files",
323
+ "Supported Formats:": "Supported Formats:",
324
324
  "Upload files.": "Upload files.",
325
325
  "File upload area": "File upload area",
326
- "Uploaded": "Uploaded",
327
- "Ascending": "Artan",
328
- "Descending": "Azalan",
329
- "Scroll to start": "Başlangıca kaydır",
330
- "Scroll to end": "Sona kaydır"
326
+ "Uploaded": "Uploaded"
331
327
  }
@@ -317,15 +317,11 @@
317
317
  "Exit full screen table view": "Exit full screen table view",
318
318
  "Close search": "Close search",
319
319
  "Has additional actions. Use right arrow to access button, left arrow to return.": "Has additional actions. Use right arrow to access button, left arrow to return.",
320
- "Drag & drop files or": "拖放文件或",
321
- "Browse": "浏览",
322
- "Tap to add files": "点击添加文件",
323
- "Supported Formats:": "支持的格式:",
320
+ "Drag & drop files or": "Drag & drop files or",
321
+ "Browse": "Browse",
322
+ "Tap to add files": "Tap to add files",
323
+ "Supported Formats:": "Supported Formats:",
324
324
  "Upload files.": "Upload files.",
325
325
  "File upload area": "File upload area",
326
- "Uploaded": "Uploaded",
327
- "Ascending": "升序",
328
- "Descending": "降序",
329
- "Scroll to start": "滚动至开头",
330
- "Scroll to end": "滚动至末尾"
326
+ "Uploaded": "Uploaded"
331
327
  }
@@ -317,15 +317,11 @@
317
317
  "Exit full screen table view": "Exit full screen table view",
318
318
  "Close search": "Close search",
319
319
  "Has additional actions. Use right arrow to access button, left arrow to return.": "Has additional actions. Use right arrow to access button, left arrow to return.",
320
- "Drag & drop files or": "拖放檔案或",
321
- "Browse": "瀏覽",
322
- "Tap to add files": "點選以新增檔案",
323
- "Supported Formats:": "支援的格式:",
320
+ "Drag & drop files or": "Drag & drop files or",
321
+ "Browse": "Browse",
322
+ "Tap to add files": "Tap to add files",
323
+ "Supported Formats:": "Supported Formats:",
324
324
  "Upload files.": "Upload files.",
325
325
  "File upload area": "File upload area",
326
- "Uploaded": "Uploaded",
327
- "Ascending": "遞增",
328
- "Descending": "遞減",
329
- "Scroll to start": "捲動至開始處",
330
- "Scroll to end": "捲動至結尾處"
326
+ "Uploaded": "Uploaded"
331
327
  }
@@ -47,9 +47,9 @@ export declare const alignments: {
47
47
  right: number;
48
48
  top: number;
49
49
  };
50
- "left-bottom": (triggerRect: IRect, popupRect: ISizes, parentRect: IPosition, paddingX: number, _2: number) => {
50
+ "left-bottom": (triggerRect: IRect, _1: ISizes, parentRect: IPosition, paddingX: number, _2: number) => {
51
51
  right: number;
52
- top: number;
52
+ bottom: number;
53
53
  };
54
54
  right: (triggerRect: IRect, popupRect: ISizes, parentRect: IPosition, paddingX: number, _: number) => {
55
55
  left: number;
@@ -31,9 +31,9 @@ export const alignments = {
31
31
  right: parentRect.right - triggerRect.right + triggerRect.width + paddingX,
32
32
  top: triggerRect.top - parentRect.top
33
33
  }),
34
- "left-bottom": (triggerRect, popupRect, parentRect, paddingX, _2) => ({
34
+ "left-bottom": (triggerRect, _1, parentRect, paddingX, _2) => ({
35
35
  right: parentRect.right - triggerRect.right + triggerRect.width + paddingX,
36
- top: triggerRect.bottom - parentRect.top - popupRect.height
36
+ bottom: parentRect.bottom - triggerRect.bottom
37
37
  }),
38
38
  right: (triggerRect, popupRect, parentRect, paddingX, _) => ({
39
39
  left: triggerRect.left - parentRect.left + triggerRect.width + paddingX,
@@ -8,25 +8,27 @@ import { zen } from "../zen";
8
8
  export const calculatePosition = (triggerRef, popupRef, paddingX, paddingY, inline, alignment, alignmentsFn = alignments, scrollParent, forceHorizontalCenter
9
9
  // eslint-disable-next-line complexity
10
10
  ) => {
11
- var _a, _b, _c, _d, _e;
11
+ var _a, _b, _c, _d, _e, _f, _g;
12
12
  if (!triggerRef.current || !popupRef.current) {
13
13
  return;
14
14
  }
15
15
  const triggerElement = triggerRef.current;
16
16
  const popup = popupRef.current;
17
17
  const scrollTop = zen.pageYOffset || ((_a = zen.document) === null || _a === void 0 ? void 0 : _a.documentElement.scrollTop) || ((_b = zen.document) === null || _b === void 0 ? void 0 : _b.body.scrollTop) || 0;
18
+ const scrollLeft = zen.pageXOffset || ((_c = zen.document) === null || _c === void 0 ? void 0 : _c.documentElement.scrollLeft) || ((_d = zen.document) === null || _d === void 0 ? void 0 : _d.body.scrollLeft) || 0;
18
19
  const triggerRect = triggerElement.getBoundingClientRect();
19
20
  let popupRect = popup.getBoundingClientRect();
20
- const relativeParent = inline ? getRelativeParent(triggerElement) || ((_c = zen.document) === null || _c === void 0 ? void 0 : _c.body) : (_d = zen.document) === null || _d === void 0 ? void 0 : _d.body;
21
+ const relativeParent = inline ? getRelativeParent(triggerElement) || ((_e = zen.document) === null || _e === void 0 ? void 0 : _e.body) : (_f = zen.document) === null || _f === void 0 ? void 0 : _f.body;
21
22
  popup.classList.add("zen-calculate-position");
22
23
  const parentDomRect = (relativeParent === null || relativeParent === void 0 ? void 0 : relativeParent.getBoundingClientRect()) || { top: 0, left: 0, bottom: 0, right: 0, width: 0, height: 0, x: 0, y: 0 };
23
24
  popup.classList.remove("zen-calculate-position");
24
25
  const parentBorders = getBorders(relativeParent || {});
25
26
  const parentMargins = getMargins(relativeParent || {});
26
27
  let parentTop = parentDomRect.top + parentBorders.top - parentMargins.top;
27
- const parentLeft = parentDomRect.left + parentBorders.left - parentMargins.left;
28
- if (!inline && relativeParent === ((_e = zen.document) === null || _e === void 0 ? void 0 : _e.body)) {
28
+ let parentLeft = parentDomRect.left + parentBorders.left - parentMargins.left;
29
+ if (!inline && relativeParent === ((_g = zen.document) === null || _g === void 0 ? void 0 : _g.body)) {
29
30
  parentTop = -scrollTop + parentBorders.top - parentMargins.top;
31
+ parentLeft = -scrollLeft + parentBorders.left - parentMargins.left;
30
32
  }
31
33
  const parentRect = {
32
34
  top: parentTop,
package/package.json CHANGED
@@ -1,126 +1,125 @@
1
1
  {
2
- "name": "@geotab/zenith",
3
- "version": "3.11.0-beta.0",
4
- "description": "Zenith components library on React",
5
- "main": "dist/index.js",
6
- "types": "esm/index.d.ts",
7
- "module": "esm/index.js",
8
- "sideEffects": [
9
- "**/*.css",
10
- "**/*.less",
11
- "**/react-chartjs/dateAdapter.ts",
12
- "**/react-chartjs/dateAdapter.js"
13
- ],
14
- "scripts": {
15
- "add-icon": "node addIcon.js",
16
- "build-rtl": "node build-utils/rtl/generate-rtl-css.js",
17
- "build": "npm run clean && npm run build-index && npm run update-version && npm run build-ts && npm run build-less && npm run build-copy && npm run build-clean && npm run translations",
18
- "build-ai-mdx": "node collectmdx.js",
19
- "build-cjs": "npx tsc -b tsconfig.cjs.json",
20
- "build-clean": "node build-clean.js",
21
- "build-copy": "node build-copy.js",
22
- "build-esm": "npx tsc -b tsconfig.esm.json",
23
- "build-index": "node buildIndex.js",
24
- "build-less": "node less-compile.js",
25
- "build-storybook": "storybook build && npm run build-ai-mdx",
26
- "build-ts": "npm run build-esm && npm run build-cjs && npm run inject-translations && node less-transformer.js",
27
- "clean": "rm -rf ./dist && rm -rf ./esm && rm -rf ./jest-coverage",
28
- "coverage": "npm run test-coverage && google-chrome ./jest-coverage/index.html",
29
- "inject-translations": "node build-utils/translations/inject-translations.js",
30
- "lint": "npx eslint",
31
- "lint-fix": "npm run lint -- --fix",
32
- "new": "node newComponent.mjs",
33
- "prettier": "npx prettier . --config '.prettierrc' --ignore-path '.prettierignore'",
34
- "prettier-check": "npm run prettier -- --check",
35
- "prettier-fix": "npm run prettier -- --write",
36
- "start": "npm run storybook",
37
- "storybook": "storybook dev -p 6006",
38
- "test": "npm run clean && npm run test-build && jest",
39
- "test-build": "npx tsc -b tsconfig.jestTests.json && npm run build-less && npm run inject-translations && jest --clearCache",
40
- "test-coverage": "npm run clean && npm run test-build && jest --collectCoverage=true --coverage --collectCoverageFrom='./dist/**/*.js' --collectCoverageFrom='!./dist/**/*.test.js' --json --outputFile=jest-result.json --coverageReporters=html --coverageReporters=text-summary --coverageReporters=cobertura --maxWorkers=4 --noStackTrace && node testHelpers/cobertura/cobertura.js",
41
- "test-storybook": "test-storybook",
42
- "test-watch": "npm run clean && npm run test-build && npx tsc -b tsconfig.jestTests.json -w",
43
- "translations": "node build-utils/translations/translation-integrity.mjs",
44
- "update-version": "node updateVersion.js",
45
- "watch": "npx tsc -b tsconfig.cjs.json -w",
46
- "watch:inject-translations": "npx nodemon --watch dist --delay 500ms --ext js --exec 'npm run inject-translations'"
47
- },
48
- "author": "",
49
- "license": "SEE LICENSE IN LICENSE.txt",
50
- "devDependencies": {
51
- "@babel/core": "^7.28.5",
52
- "@babel/generator": "^7.28.5",
53
- "@babel/parser": "^7.28.5",
54
- "@babel/preset-env": "^7.24.3",
55
- "@babel/preset-react": "^7.24.1",
56
- "@babel/preset-typescript": "^7.24.1",
57
- "@babel/traverse": "^7.28.5",
58
- "@eslint/js": "^9.18.0",
59
- "@storybook/addon-a11y": "^10.3.5",
60
- "@storybook/addon-docs": "^10.3.5",
61
- "@storybook/addon-links": "^10.3.5",
62
- "@storybook/addon-webpack5-compiler-babel": "^4.0.1",
63
- "@storybook/react-webpack5": "^10.3.5",
64
- "@storybook/test-runner": "^0.24.3",
65
- "@tanstack/react-query": "^5.85.5",
66
- "@testing-library/react": "^16.3.0",
67
- "@types/jest": "^29.5.12",
68
- "@types/react": "^19.2.2",
69
- "@types/react-dom": "^19.2.2",
70
- "@typescript-eslint/eslint-plugin": "^8.20.0",
71
- "@typescript-eslint/parser": "^8.20.0",
72
- "axe-core": "^4.10.2",
73
- "css-loader": "^7.1.2",
74
- "eslint": "^9.18.0",
75
- "eslint-config-prettier": "^10.1.8",
76
- "eslint-plugin-react": "^7.37.3",
77
- "eslint-plugin-react-hooks": "^7.0.1",
78
- "eslint-plugin-storybook": "^10.3.5",
79
- "globals": "^17.1.0",
80
- "jest": "^30.2.0",
81
- "jest-environment-jsdom": "^30.2.0",
82
- "jest-junit": "^16.0.0",
83
- "less": "^4.1.3",
84
- "less-loader": "^12.2.0",
85
- "mini-css-extract-plugin": "^2.9.2",
86
- "postcss-loader": "^8.2.1",
87
- "postcss-rtlcss": "^6.0.0",
88
- "prettier": "^3.8.1",
89
- "storybook": "^10.3.5",
90
- "style-loader": "^4.0.0",
91
- "typescript": "^5.4.3",
92
- "typescript-eslint": "^8.20.0",
93
- "webpack": "^5.96.1",
94
- "xml2js": "^0.6.0"
95
- },
96
- "dependencies": {
97
- "chart.js": "^4.4.6",
98
- "react": "^19.2.0",
99
- "react-dom": "^19.2.0",
100
- "react-hook-form": "^7.60.0"
101
- },
102
- "peerDependencies": {
103
- "chart.js": "^4.4.6",
104
- "react": "^19.2.0",
105
- "react-dom": "^19.2.0"
106
- },
107
- "files": [
108
- "./dist/",
109
- "./esm"
110
- ],
111
- "browserslist": {
112
- "production": [
113
- ">0.2%",
114
- "not dead",
115
- "not op_mini all"
2
+ "name": "@geotab/zenith",
3
+ "version": "3.11.0-beta.1",
4
+ "description": "Zenith components library on React",
5
+ "main": "dist/index.js",
6
+ "types": "esm/index.d.ts",
7
+ "module": "esm/index.js",
8
+ "sideEffects": [
9
+ "**/*.css",
10
+ "**/*.less",
11
+ "**/react-chartjs/dateAdapter.ts",
12
+ "**/react-chartjs/dateAdapter.js"
116
13
  ],
117
- "development": [
118
- "last 1 chrome version",
119
- "last 1 firefox version",
120
- "last 1 safari version"
121
- ]
122
- },
123
- "publishConfig": {
124
- "access": "public"
125
- }
14
+ "scripts": {
15
+ "add-icon": "node addIcon.js",
16
+ "build-rtl": "node build-utils/rtl/generate-rtl-css.js",
17
+ "build": "npm run clean && npm run build-index && npm run update-version && npm run build-ts && npm run build-less && npm run build-copy && npm run build-clean && npm run translations",
18
+ "build-ai-mdx": "node collectmdx.js",
19
+ "build-cjs": "npx tsc -b tsconfig.cjs.json",
20
+ "build-clean": "node build-clean.js",
21
+ "build-copy": "node build-copy.js",
22
+ "build-esm": "npx tsc -b tsconfig.esm.json",
23
+ "build-index": "node buildIndex.js",
24
+ "build-less": "node less-compile.js",
25
+ "build-storybook": "storybook build && npm run build-ai-mdx",
26
+ "build-ts": "npm run build-esm && npm run build-cjs && npm run inject-translations && node less-transformer.js",
27
+ "clean": "rm -rf ./dist && rm -rf ./esm && rm -rf ./jest-coverage",
28
+ "coverage": "npm run test-coverage && google-chrome ./jest-coverage/index.html",
29
+ "inject-translations": "node build-utils/translations/inject-translations.js",
30
+ "lint": "npx eslint",
31
+ "new": "node newComponent.mjs",
32
+ "prettier": "npx prettier . --config '.prettierrc' --ignore-path '.prettierignore'",
33
+ "prettier-check": "npm run prettier -- --check",
34
+ "prettier-fix": "npm run prettier -- --write",
35
+ "start": "npm run storybook",
36
+ "storybook": "storybook dev -p 6006",
37
+ "test": "npm run clean && npm run test-build && jest",
38
+ "test-build": "npx tsc -b tsconfig.jestTests.json && npm run build-less && npm run inject-translations && jest --clearCache",
39
+ "test-coverage": "npm run clean && npm run test-build && jest --collectCoverage=true --coverage --collectCoverageFrom='./dist/**/*.js' --collectCoverageFrom='!./dist/**/*.test.js' --json --outputFile=jest-result.json --coverageReporters=html --coverageReporters=text-summary --coverageReporters=cobertura --maxWorkers=4 --noStackTrace && node testHelpers/cobertura/cobertura.js",
40
+ "test-storybook": "test-storybook",
41
+ "test-watch": "npm run clean && npm run test-build && npx tsc -b tsconfig.jestTests.json -w",
42
+ "translations": "node build-utils/translations/translation-integrity.mjs",
43
+ "update-version": "node updateVersion.js",
44
+ "watch": "npx tsc -b tsconfig.cjs.json -w",
45
+ "watch:inject-translations": "npx nodemon --watch dist --delay 500ms --ext js --exec 'npm run inject-translations'"
46
+ },
47
+ "author": "",
48
+ "license": "SEE LICENSE IN LICENSE.txt",
49
+ "devDependencies": {
50
+ "@babel/core": "^7.28.5",
51
+ "@babel/generator": "^7.28.5",
52
+ "@babel/parser": "^7.28.5",
53
+ "@babel/preset-env": "^7.24.3",
54
+ "@babel/preset-react": "^7.24.1",
55
+ "@babel/preset-typescript": "^7.24.1",
56
+ "@babel/traverse": "^7.28.5",
57
+ "@eslint/js": "^9.18.0",
58
+ "@storybook/addon-a11y": "^10.3.5",
59
+ "@storybook/addon-docs": "^10.3.5",
60
+ "@storybook/addon-links": "^10.3.5",
61
+ "@storybook/addon-webpack5-compiler-babel": "^4.0.1",
62
+ "@storybook/react-webpack5": "^10.3.5",
63
+ "@storybook/test-runner": "^0.24.3",
64
+ "@tanstack/react-query": "^5.85.5",
65
+ "@testing-library/react": "^16.3.0",
66
+ "@types/jest": "^29.5.12",
67
+ "@types/react": "^19.2.2",
68
+ "@types/react-dom": "^19.2.2",
69
+ "@typescript-eslint/eslint-plugin": "^8.20.0",
70
+ "@typescript-eslint/parser": "^8.20.0",
71
+ "axe-core": "^4.10.2",
72
+ "css-loader": "^7.1.2",
73
+ "eslint": "^9.18.0",
74
+ "eslint-config-prettier": "^10.1.8",
75
+ "eslint-plugin-react": "^7.37.3",
76
+ "eslint-plugin-react-hooks": "^7.0.1",
77
+ "eslint-plugin-storybook": "^10.3.5",
78
+ "globals": "^17.1.0",
79
+ "jest": "^30.2.0",
80
+ "jest-environment-jsdom": "^30.2.0",
81
+ "jest-junit": "^16.0.0",
82
+ "less": "^4.1.3",
83
+ "less-loader": "^12.2.0",
84
+ "mini-css-extract-plugin": "^2.9.2",
85
+ "postcss-loader": "^8.2.1",
86
+ "postcss-rtlcss": "^6.0.0",
87
+ "prettier": "^3.8.1",
88
+ "storybook": "^10.3.5",
89
+ "style-loader": "^4.0.0",
90
+ "typescript": "^5.4.3",
91
+ "typescript-eslint": "^8.20.0",
92
+ "webpack": "^5.96.1",
93
+ "xml2js": "^0.6.0"
94
+ },
95
+ "dependencies": {
96
+ "chart.js": "^4.4.6",
97
+ "react": "^19.2.0",
98
+ "react-dom": "^19.2.0",
99
+ "react-hook-form": "^7.60.0"
100
+ },
101
+ "peerDependencies": {
102
+ "chart.js": "^4.4.6",
103
+ "react": "^19.2.0",
104
+ "react-dom": "^19.2.0"
105
+ },
106
+ "files": [
107
+ "./dist/",
108
+ "./esm"
109
+ ],
110
+ "browserslist": {
111
+ "production": [
112
+ ">0.2%",
113
+ "not dead",
114
+ "not op_mini all"
115
+ ],
116
+ "development": [
117
+ "last 1 chrome version",
118
+ "last 1 firefox version",
119
+ "last 1 safari version"
120
+ ]
121
+ },
122
+ "publishConfig": {
123
+ "access": "public"
124
+ }
126
125
  }
@@ -1,3 +0,0 @@
1
- import { FC } from "react";
2
- import { IIcon } from "../../icons/icon";
3
- export declare const useDirectionalIcon: (ltrIcon: FC<IIcon>, rtlIcon: FC<IIcon>) => FC<IIcon>;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useDirectionalIcon = void 0;
4
- const useDirection_1 = require("./useDirection");
5
- const useDirectionalIcon = (ltrIcon, rtlIcon) => {
6
- const direction = (0, useDirection_1.useDirection)();
7
- return direction === "rtl" ? rtlIcon : ltrIcon;
8
- };
9
- exports.useDirectionalIcon = useDirectionalIcon;
@@ -1 +0,0 @@
1
- export declare const mockAbsoluteAlignment: () => void;
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as AbsoluteModule from "../absolute/absolute";
3
- export const mockAbsoluteAlignment = () => {
4
- beforeEach(() => {
5
- jest.spyOn(AbsoluteModule, "Absolute").mockImplementation(({ alignment }) => (_jsx("div", { "data-testid": "absolute", "data-alignment": alignment })));
6
- });
7
- afterEach(() => {
8
- jest.restoreAllMocks();
9
- });
10
- };
@@ -1,3 +0,0 @@
1
- import { FC } from "react";
2
- import { IIcon } from "../../icons/icon";
3
- export declare const useDirectionalIcon: (ltrIcon: FC<IIcon>, rtlIcon: FC<IIcon>) => FC<IIcon>;
@@ -1,5 +0,0 @@
1
- import { useDirection } from "./useDirection";
2
- export const useDirectionalIcon = (ltrIcon, rtlIcon) => {
3
- const direction = useDirection();
4
- return direction === "rtl" ? rtlIcon : ltrIcon;
5
- };