@okta/odyssey-react-mui 1.36.1 → 1.37.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 (280) hide show
  1. package/README.md +8 -3
  2. package/dist/cjs/Pagination/Pagination.cjs +2 -1
  3. package/dist/cjs/Pagination/Pagination.cjs.map +1 -1
  4. package/dist/cjs/Pagination/usePagination.cjs +3 -1
  5. package/dist/cjs/Pagination/usePagination.cjs.map +1 -1
  6. package/dist/cjs/labs/DataView/TableLayoutContent.cjs +3 -3
  7. package/dist/cjs/labs/DataView/TableLayoutContent.cjs.map +1 -1
  8. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +2 -0
  9. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs.map +1 -1
  10. package/dist/cjs/labs/OdysseyPickers/Picker.cjs +21 -27
  11. package/dist/cjs/labs/OdysseyPickers/Picker.cjs.map +1 -1
  12. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +11 -10
  13. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs.map +1 -1
  14. package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs +41 -0
  15. package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs.map +1 -0
  16. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs +22 -8
  17. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs.map +1 -1
  18. package/dist/cjs/properties/ts/odyssey-react-mui.cjs +1 -0
  19. package/dist/cjs/properties/ts/odyssey-react-mui.cjs.map +1 -1
  20. package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs +1 -0
  21. package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs.map +1 -1
  22. package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs +1 -0
  23. package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs.map +1 -1
  24. package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs +1 -0
  25. package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs.map +1 -1
  26. package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs +1 -0
  27. package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs.map +1 -1
  28. package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs +1 -0
  29. package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs.map +1 -1
  30. package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs +1 -0
  31. package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs.map +1 -1
  32. package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs +1 -0
  33. package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs.map +1 -1
  34. package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs +1 -0
  35. package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs.map +1 -1
  36. package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs +1 -0
  37. package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs.map +1 -1
  38. package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs +1 -0
  39. package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs.map +1 -1
  40. package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs +1 -0
  41. package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs.map +1 -1
  42. package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs +1 -0
  43. package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs.map +1 -1
  44. package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs +1 -0
  45. package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs.map +1 -1
  46. package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs +1 -0
  47. package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs.map +1 -1
  48. package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs +1 -0
  49. package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs.map +1 -1
  50. package/dist/cjs/properties/ts/odyssey-react-mui_nl_NL.cjs +1 -0
  51. package/dist/cjs/properties/ts/odyssey-react-mui_nl_NL.cjs.map +1 -1
  52. package/dist/cjs/properties/ts/odyssey-react-mui_pl.cjs +1 -0
  53. package/dist/cjs/properties/ts/odyssey-react-mui_pl.cjs.map +1 -1
  54. package/dist/cjs/properties/ts/odyssey-react-mui_pt_BR.cjs +1 -0
  55. package/dist/cjs/properties/ts/odyssey-react-mui_pt_BR.cjs.map +1 -1
  56. package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs +1 -0
  57. package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs.map +1 -1
  58. package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs +1 -0
  59. package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs.map +1 -1
  60. package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs +1 -0
  61. package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs.map +1 -1
  62. package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs +1 -0
  63. package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs.map +1 -1
  64. package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs +1 -0
  65. package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs.map +1 -1
  66. package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs +1 -0
  67. package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs.map +1 -1
  68. package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs +1 -0
  69. package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs.map +1 -1
  70. package/dist/cjs/properties/ts/odyssey-react-mui_zh_CN.cjs +1 -0
  71. package/dist/cjs/properties/ts/odyssey-react-mui_zh_CN.cjs.map +1 -1
  72. package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs +1 -0
  73. package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs.map +1 -1
  74. package/dist/cjs/test-selectors/getByQuerySelector.cjs +2 -2
  75. package/dist/cjs/test-selectors/getByQuerySelector.cjs.map +1 -1
  76. package/dist/cjs/test-selectors/testSelector.cjs.map +1 -1
  77. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +5 -3
  78. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs.map +1 -1
  79. package/dist/cjs/ui-shell/SideNav/SideNav.cjs +14 -6
  80. package/dist/cjs/ui-shell/SideNav/SideNav.cjs.map +1 -1
  81. package/dist/cjs/ui-shell/SideNav/types.cjs.map +1 -1
  82. package/dist/cjs/ui-shell/UiShell.cjs +5 -2
  83. package/dist/cjs/ui-shell/UiShell.cjs.map +1 -1
  84. package/dist/cjs/ui-shell/WideUiShellContent.cjs +3 -3
  85. package/dist/cjs/ui-shell/WideUiShellContent.cjs.map +1 -1
  86. package/dist/cjs/ui-shell/renderUiShell.cjs +12 -0
  87. package/dist/cjs/ui-shell/renderUiShell.cjs.map +1 -1
  88. package/dist/cjs/ui-shell/uiShellContentTypes.cjs.map +1 -1
  89. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  90. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  91. package/dist/cjs/web-component/renderReactInWebComponent.cjs.map +1 -1
  92. package/dist/esm/Pagination/Pagination.js +2 -1
  93. package/dist/esm/Pagination/Pagination.js.map +1 -1
  94. package/dist/esm/Pagination/usePagination.js +3 -1
  95. package/dist/esm/Pagination/usePagination.js.map +1 -1
  96. package/dist/esm/labs/DataView/TableLayoutContent.js +3 -3
  97. package/dist/esm/labs/DataView/TableLayoutContent.js.map +1 -1
  98. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +2 -0
  99. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js.map +1 -1
  100. package/dist/esm/labs/OdysseyPickers/Picker.js +23 -29
  101. package/dist/esm/labs/OdysseyPickers/Picker.js.map +1 -1
  102. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +12 -11
  103. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js.map +1 -1
  104. package/dist/esm/labs/PageTemplate/DocumentationLink.js +35 -0
  105. package/dist/esm/labs/PageTemplate/DocumentationLink.js.map +1 -0
  106. package/dist/esm/labs/PageTemplate/PageTemplate.js +22 -8
  107. package/dist/esm/labs/PageTemplate/PageTemplate.js.map +1 -1
  108. package/dist/esm/properties/ts/odyssey-react-mui.js +1 -0
  109. package/dist/esm/properties/ts/odyssey-react-mui.js.map +1 -1
  110. package/dist/esm/properties/ts/odyssey-react-mui_cs.js +1 -0
  111. package/dist/esm/properties/ts/odyssey-react-mui_cs.js.map +1 -1
  112. package/dist/esm/properties/ts/odyssey-react-mui_da.js +1 -0
  113. package/dist/esm/properties/ts/odyssey-react-mui_da.js.map +1 -1
  114. package/dist/esm/properties/ts/odyssey-react-mui_de.js +1 -0
  115. package/dist/esm/properties/ts/odyssey-react-mui_de.js.map +1 -1
  116. package/dist/esm/properties/ts/odyssey-react-mui_el.js +1 -0
  117. package/dist/esm/properties/ts/odyssey-react-mui_el.js.map +1 -1
  118. package/dist/esm/properties/ts/odyssey-react-mui_es.js +1 -0
  119. package/dist/esm/properties/ts/odyssey-react-mui_es.js.map +1 -1
  120. package/dist/esm/properties/ts/odyssey-react-mui_fi.js +1 -0
  121. package/dist/esm/properties/ts/odyssey-react-mui_fi.js.map +1 -1
  122. package/dist/esm/properties/ts/odyssey-react-mui_fr.js +1 -0
  123. package/dist/esm/properties/ts/odyssey-react-mui_fr.js.map +1 -1
  124. package/dist/esm/properties/ts/odyssey-react-mui_ht.js +1 -0
  125. package/dist/esm/properties/ts/odyssey-react-mui_ht.js.map +1 -1
  126. package/dist/esm/properties/ts/odyssey-react-mui_hu.js +1 -0
  127. package/dist/esm/properties/ts/odyssey-react-mui_hu.js.map +1 -1
  128. package/dist/esm/properties/ts/odyssey-react-mui_id.js +1 -0
  129. package/dist/esm/properties/ts/odyssey-react-mui_id.js.map +1 -1
  130. package/dist/esm/properties/ts/odyssey-react-mui_it.js +1 -0
  131. package/dist/esm/properties/ts/odyssey-react-mui_it.js.map +1 -1
  132. package/dist/esm/properties/ts/odyssey-react-mui_ja.js +1 -0
  133. package/dist/esm/properties/ts/odyssey-react-mui_ja.js.map +1 -1
  134. package/dist/esm/properties/ts/odyssey-react-mui_ko.js +1 -0
  135. package/dist/esm/properties/ts/odyssey-react-mui_ko.js.map +1 -1
  136. package/dist/esm/properties/ts/odyssey-react-mui_ms.js +1 -0
  137. package/dist/esm/properties/ts/odyssey-react-mui_ms.js.map +1 -1
  138. package/dist/esm/properties/ts/odyssey-react-mui_nb.js +1 -0
  139. package/dist/esm/properties/ts/odyssey-react-mui_nb.js.map +1 -1
  140. package/dist/esm/properties/ts/odyssey-react-mui_nl_NL.js +1 -0
  141. package/dist/esm/properties/ts/odyssey-react-mui_nl_NL.js.map +1 -1
  142. package/dist/esm/properties/ts/odyssey-react-mui_pl.js +1 -0
  143. package/dist/esm/properties/ts/odyssey-react-mui_pl.js.map +1 -1
  144. package/dist/esm/properties/ts/odyssey-react-mui_pt_BR.js +1 -0
  145. package/dist/esm/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -1
  146. package/dist/esm/properties/ts/odyssey-react-mui_ro.js +1 -0
  147. package/dist/esm/properties/ts/odyssey-react-mui_ro.js.map +1 -1
  148. package/dist/esm/properties/ts/odyssey-react-mui_ru.js +1 -0
  149. package/dist/esm/properties/ts/odyssey-react-mui_ru.js.map +1 -1
  150. package/dist/esm/properties/ts/odyssey-react-mui_sv.js +1 -0
  151. package/dist/esm/properties/ts/odyssey-react-mui_sv.js.map +1 -1
  152. package/dist/esm/properties/ts/odyssey-react-mui_th.js +1 -0
  153. package/dist/esm/properties/ts/odyssey-react-mui_th.js.map +1 -1
  154. package/dist/esm/properties/ts/odyssey-react-mui_tr.js +1 -0
  155. package/dist/esm/properties/ts/odyssey-react-mui_tr.js.map +1 -1
  156. package/dist/esm/properties/ts/odyssey-react-mui_uk.js +1 -0
  157. package/dist/esm/properties/ts/odyssey-react-mui_uk.js.map +1 -1
  158. package/dist/esm/properties/ts/odyssey-react-mui_vi.js +1 -0
  159. package/dist/esm/properties/ts/odyssey-react-mui_vi.js.map +1 -1
  160. package/dist/esm/properties/ts/odyssey-react-mui_zh_CN.js +1 -0
  161. package/dist/esm/properties/ts/odyssey-react-mui_zh_CN.js.map +1 -1
  162. package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js +1 -0
  163. package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
  164. package/dist/esm/test-selectors/getByQuerySelector.js +1 -1
  165. package/dist/esm/test-selectors/getByQuerySelector.js.map +1 -1
  166. package/dist/esm/test-selectors/testSelector.js.map +1 -1
  167. package/dist/esm/ui-shell/NarrowUiShellContent.js +5 -3
  168. package/dist/esm/ui-shell/NarrowUiShellContent.js.map +1 -1
  169. package/dist/esm/ui-shell/SideNav/SideNav.js +14 -6
  170. package/dist/esm/ui-shell/SideNav/SideNav.js.map +1 -1
  171. package/dist/esm/ui-shell/SideNav/types.js.map +1 -1
  172. package/dist/esm/ui-shell/UiShell.js +5 -2
  173. package/dist/esm/ui-shell/UiShell.js.map +1 -1
  174. package/dist/esm/ui-shell/WideUiShellContent.js +3 -3
  175. package/dist/esm/ui-shell/WideUiShellContent.js.map +1 -1
  176. package/dist/esm/ui-shell/renderUiShell.js +12 -0
  177. package/dist/esm/ui-shell/renderUiShell.js.map +1 -1
  178. package/dist/esm/ui-shell/uiShellContentTypes.js.map +1 -1
  179. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  180. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  181. package/dist/esm/web-component/renderReactInWebComponent.js.map +1 -1
  182. package/dist/index.cjs +231 -0
  183. package/dist/index.d.ts +233 -0
  184. package/dist/index.d.ts.map +1 -0
  185. package/dist/index.js +25 -0
  186. package/dist/index.mjs +229 -0
  187. package/dist/index.scss +549 -0
  188. package/dist/tsconfig.production.tsbuildinfo +1 -1
  189. package/dist/tsconfig.tsbuildinfo +1 -0
  190. package/dist/types/OdysseyTranslationProvider.d.ts +1 -1
  191. package/dist/types/OdysseyTranslationProvider.d.ts.map +1 -1
  192. package/dist/types/Pagination/Pagination.d.ts +1 -0
  193. package/dist/types/Pagination/Pagination.d.ts.map +1 -1
  194. package/dist/types/Pagination/usePagination.d.ts.map +1 -1
  195. package/dist/types/i18n.d.ts +28 -0
  196. package/dist/types/i18n.d.ts.map +1 -1
  197. package/dist/types/labs/OdysseyPickers/ComposablePicker.d.ts +2 -1
  198. package/dist/types/labs/OdysseyPickers/ComposablePicker.d.ts.map +1 -1
  199. package/dist/types/labs/OdysseyPickers/Picker.d.ts +6 -7
  200. package/dist/types/labs/OdysseyPickers/Picker.d.ts.map +1 -1
  201. package/dist/types/labs/OdysseyPickers/PickerWithOptionAdornment.d.ts.map +1 -1
  202. package/dist/types/labs/PageTemplate/DocumentationLink.d.ts +34 -0
  203. package/dist/types/labs/PageTemplate/DocumentationLink.d.ts.map +1 -0
  204. package/dist/types/labs/PageTemplate/PageTemplate.d.ts.map +1 -1
  205. package/dist/types/properties/ts/odyssey-react-mui.d.ts +1 -0
  206. package/dist/types/properties/ts/odyssey-react-mui.d.ts.map +1 -1
  207. package/dist/types/properties/ts/odyssey-react-mui_cs.d.ts +1 -0
  208. package/dist/types/properties/ts/odyssey-react-mui_cs.d.ts.map +1 -1
  209. package/dist/types/properties/ts/odyssey-react-mui_da.d.ts +1 -0
  210. package/dist/types/properties/ts/odyssey-react-mui_da.d.ts.map +1 -1
  211. package/dist/types/properties/ts/odyssey-react-mui_de.d.ts +1 -0
  212. package/dist/types/properties/ts/odyssey-react-mui_de.d.ts.map +1 -1
  213. package/dist/types/properties/ts/odyssey-react-mui_el.d.ts +1 -0
  214. package/dist/types/properties/ts/odyssey-react-mui_el.d.ts.map +1 -1
  215. package/dist/types/properties/ts/odyssey-react-mui_es.d.ts +1 -0
  216. package/dist/types/properties/ts/odyssey-react-mui_es.d.ts.map +1 -1
  217. package/dist/types/properties/ts/odyssey-react-mui_fi.d.ts +1 -0
  218. package/dist/types/properties/ts/odyssey-react-mui_fi.d.ts.map +1 -1
  219. package/dist/types/properties/ts/odyssey-react-mui_fr.d.ts +1 -0
  220. package/dist/types/properties/ts/odyssey-react-mui_fr.d.ts.map +1 -1
  221. package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts +1 -0
  222. package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts.map +1 -1
  223. package/dist/types/properties/ts/odyssey-react-mui_hu.d.ts +1 -0
  224. package/dist/types/properties/ts/odyssey-react-mui_hu.d.ts.map +1 -1
  225. package/dist/types/properties/ts/odyssey-react-mui_id.d.ts +1 -0
  226. package/dist/types/properties/ts/odyssey-react-mui_id.d.ts.map +1 -1
  227. package/dist/types/properties/ts/odyssey-react-mui_it.d.ts +1 -0
  228. package/dist/types/properties/ts/odyssey-react-mui_it.d.ts.map +1 -1
  229. package/dist/types/properties/ts/odyssey-react-mui_ja.d.ts +1 -0
  230. package/dist/types/properties/ts/odyssey-react-mui_ja.d.ts.map +1 -1
  231. package/dist/types/properties/ts/odyssey-react-mui_ko.d.ts +1 -0
  232. package/dist/types/properties/ts/odyssey-react-mui_ko.d.ts.map +1 -1
  233. package/dist/types/properties/ts/odyssey-react-mui_ms.d.ts +1 -0
  234. package/dist/types/properties/ts/odyssey-react-mui_ms.d.ts.map +1 -1
  235. package/dist/types/properties/ts/odyssey-react-mui_nb.d.ts +1 -0
  236. package/dist/types/properties/ts/odyssey-react-mui_nb.d.ts.map +1 -1
  237. package/dist/types/properties/ts/odyssey-react-mui_nl_NL.d.ts +1 -0
  238. package/dist/types/properties/ts/odyssey-react-mui_nl_NL.d.ts.map +1 -1
  239. package/dist/types/properties/ts/odyssey-react-mui_pl.d.ts +1 -0
  240. package/dist/types/properties/ts/odyssey-react-mui_pl.d.ts.map +1 -1
  241. package/dist/types/properties/ts/odyssey-react-mui_pt_BR.d.ts +1 -0
  242. package/dist/types/properties/ts/odyssey-react-mui_pt_BR.d.ts.map +1 -1
  243. package/dist/types/properties/ts/odyssey-react-mui_ro.d.ts +1 -0
  244. package/dist/types/properties/ts/odyssey-react-mui_ro.d.ts.map +1 -1
  245. package/dist/types/properties/ts/odyssey-react-mui_ru.d.ts +1 -0
  246. package/dist/types/properties/ts/odyssey-react-mui_ru.d.ts.map +1 -1
  247. package/dist/types/properties/ts/odyssey-react-mui_sv.d.ts +1 -0
  248. package/dist/types/properties/ts/odyssey-react-mui_sv.d.ts.map +1 -1
  249. package/dist/types/properties/ts/odyssey-react-mui_th.d.ts +1 -0
  250. package/dist/types/properties/ts/odyssey-react-mui_th.d.ts.map +1 -1
  251. package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts +1 -0
  252. package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts.map +1 -1
  253. package/dist/types/properties/ts/odyssey-react-mui_uk.d.ts +1 -0
  254. package/dist/types/properties/ts/odyssey-react-mui_uk.d.ts.map +1 -1
  255. package/dist/types/properties/ts/odyssey-react-mui_vi.d.ts +1 -0
  256. package/dist/types/properties/ts/odyssey-react-mui_vi.d.ts.map +1 -1
  257. package/dist/types/properties/ts/odyssey-react-mui_zh_CN.d.ts +1 -0
  258. package/dist/types/properties/ts/odyssey-react-mui_zh_CN.d.ts.map +1 -1
  259. package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts +1 -0
  260. package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
  261. package/dist/types/test-selectors/getByQuerySelector.d.ts +73 -73
  262. package/dist/types/test-selectors/getByQuerySelector.d.ts.map +1 -1
  263. package/dist/types/test-selectors/testSelector.d.ts +1 -1
  264. package/dist/types/test-selectors/testSelector.d.ts.map +1 -1
  265. package/dist/types/ui-shell/NarrowUiShellContent.d.ts +1 -1
  266. package/dist/types/ui-shell/NarrowUiShellContent.d.ts.map +1 -1
  267. package/dist/types/ui-shell/SideNav/SideNav.d.ts +1 -1
  268. package/dist/types/ui-shell/SideNav/SideNav.d.ts.map +1 -1
  269. package/dist/types/ui-shell/SideNav/types.d.ts +5 -1
  270. package/dist/types/ui-shell/SideNav/types.d.ts.map +1 -1
  271. package/dist/types/ui-shell/UiShell.d.ts.map +1 -1
  272. package/dist/types/ui-shell/WideUiShellContent.d.ts +1 -1
  273. package/dist/types/ui-shell/WideUiShellContent.d.ts.map +1 -1
  274. package/dist/types/ui-shell/renderUiShell.d.ts +19 -4
  275. package/dist/types/ui-shell/renderUiShell.d.ts.map +1 -1
  276. package/dist/types/ui-shell/uiShellContentTypes.d.ts +4 -0
  277. package/dist/types/ui-shell/uiShellContentTypes.d.ts.map +1 -1
  278. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  279. package/dist/types/web-component/renderReactInWebComponent.d.ts.map +1 -1
  280. package/package.json +15 -15
@@ -1 +1 @@
1
- {"version":3,"file":"Picker.cjs","names":["_react","require","_styled","_interopRequireDefault","_ComposablePicker","_OdysseyDesignTokensContext","_Typography","_jsxRuntime","e","__esModule","default","StyledOption","exports","styled","li","hasAdornment","display","OptionLabelContainer","shouldForwardProp","prop","p","margin","OptionDescription","odysseyDesignTokens","Spacing1","color","TypographyColorSubordinate","OptionDetails","gap","Spacing3","marginBlockStart","Spacing2","OptionDetail","alignItems","svg","width","Spacing4","HueNeutral400","Option","children","key","muiProps","createElement","OptionMetadataComponent","metaData","jsx","map","meta","index","detailText","icon","jsxs","OptionDescriptionComponent","description","OptionLabelOnlyComponent","option","label","value","Paragraph","OptionLabelDescription","Heading6","component","OptionLabelDescriptionMetadata","Picker","ariaDescribedBy","defaultValue","errorMessage","errorMessageList","getIsOptionEqualToValue","hasMultipleChoices","id","idOverride","inputValue","isCustomValueAllowed","isDisabled","isFullWidth","isLoading","isOptional","isReadOnly","isVirtualized","isVirtualizedProp","hint","HintLinkComponent","name","nameOverride","onBlur","onChange","onChangeProp","onInputChange","onInputChangeProp","onFocus","options","testId","translate","useOdysseyDesignTokens","customOptionRender","useCallback","hasDescription","hasMetadata","isLabelOnly","ComposablePicker","renderOption","MemoizedPicker","memo","displayName"],"sources":["../../../../src/labs/OdysseyPickers/Picker.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport {\n HTMLAttributes,\n memo,\n PropsWithChildren,\n ReactElement,\n ReactNode,\n useCallback,\n} from \"react\";\nimport styled from \"@emotion/styled\";\n\nimport {\n ComposablePicker,\n type BasePickerProps,\n type BasePickerType,\n} from \"./ComposablePicker.js\";\nimport {\n useOdysseyDesignTokens,\n DesignTokens,\n} from \"../../OdysseyDesignTokensContext.js\";\nimport { Heading6, Paragraph } from \"../../Typography.js\";\n\nexport const StyledOption = styled.li<{ hasAdornment?: boolean }>(\n ({ hasAdornment }) => ({\n ...(!hasAdornment && {\n display: \"block !important\",\n }),\n }),\n);\n\nexport const OptionLabelContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(() => ({\n p: {\n margin: 0,\n },\n}));\n\nexport const OptionDescription = styled(\"p\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(({ odysseyDesignTokens }) => ({\n margin: `${odysseyDesignTokens.Spacing1} 0 0 !important`,\n color: odysseyDesignTokens.TypographyColorSubordinate,\n}));\n\nexport const OptionDetails = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(({ odysseyDesignTokens }) => ({\n display: \"flex\",\n gap: odysseyDesignTokens.Spacing3,\n marginBlockStart: odysseyDesignTokens.Spacing2,\n}));\n\nexport const OptionDetail = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(({ odysseyDesignTokens }) => ({\n display: \"flex\",\n alignItems: \"center\",\n gap: odysseyDesignTokens.Spacing1,\n\n svg: {\n width: odysseyDesignTokens.Spacing4,\n color: odysseyDesignTokens.HueNeutral400,\n },\n}));\n\nexport type BaseOptionProps = {\n muiProps: HTMLAttributes<HTMLLIElement>;\n odysseyDesignTokens: DesignTokens;\n};\n\ntype OptionComponentProps = {\n hasAdornment?: boolean;\n key: string | number;\n muiProps: BaseOptionProps[\"muiProps\"];\n};\n\nexport const Option = ({\n children,\n hasAdornment = false,\n key,\n muiProps,\n}: PropsWithChildren<OptionComponentProps>) => (\n <StyledOption {...muiProps} hasAdornment={hasAdornment} key={key}>\n {children}\n </StyledOption>\n);\n\nexport const OptionMetadataComponent = ({\n metaData,\n odysseyDesignTokens,\n}: {\n metaData: OptionMetadata[];\n odysseyDesignTokens: DesignTokens;\n}) => {\n return (\n <OptionDetails odysseyDesignTokens={odysseyDesignTokens}>\n {metaData.map((meta: OptionMetadata, index: number) => {\n const { detailText, icon } = meta;\n\n return (\n <OptionDetail\n key={`${index}-${detailText}`}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {icon}\n {detailText}\n </OptionDetail>\n );\n })}\n </OptionDetails>\n );\n};\n\nexport const OptionDescriptionComponent = ({\n description,\n odysseyDesignTokens,\n}: {\n description?: LabelDescription[\"description\"];\n odysseyDesignTokens: DesignTokens;\n}) => {\n return (\n description && (\n <OptionDescription odysseyDesignTokens={odysseyDesignTokens}>\n {description}\n </OptionDescription>\n )\n );\n};\n\nexport type OptionProps<OptionType> = {\n option: OptionType;\n};\n\nexport const OptionLabelOnlyComponent = <OptionType extends OptionLabelOnly>({\n muiProps,\n odysseyDesignTokens,\n option,\n}: BaseOptionProps & OptionProps<OptionType>) => {\n const { label, value } = option;\n\n return (\n <Option muiProps={muiProps} key={value}>\n <OptionLabelContainer odysseyDesignTokens={odysseyDesignTokens}>\n <Paragraph>{label}</Paragraph>\n </OptionLabelContainer>\n </Option>\n );\n};\n\nconst OptionLabelDescription = <OptionType extends LabelDescription>({\n muiProps,\n odysseyDesignTokens,\n option,\n}: BaseOptionProps & OptionProps<OptionType>) => {\n const { description, label, value } = option;\n\n return (\n <Option muiProps={muiProps} key={value}>\n <OptionLabelContainer odysseyDesignTokens={odysseyDesignTokens}>\n <Heading6 component=\"p\">{label}</Heading6>\n <OptionDescriptionComponent\n description={description}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n </OptionLabelContainer>\n </Option>\n );\n};\n\nconst OptionLabelDescriptionMetadata = <\n OptionType extends LabelDescriptionMetadata,\n>({\n muiProps,\n odysseyDesignTokens,\n option,\n}: BaseOptionProps & OptionProps<OptionType>) => {\n const { description, label, metaData, value } = option;\n\n return (\n <Option key={value} muiProps={muiProps}>\n <OptionLabelContainer odysseyDesignTokens={odysseyDesignTokens}>\n <Heading6 component=\"p\">{label}</Heading6>\n <OptionDescriptionComponent\n description={description}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n </OptionLabelContainer>\n <OptionMetadataComponent\n metaData={metaData}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n </Option>\n );\n};\n\nexport type OptionMetadata = {\n icon: ReactElement;\n detailText: string | number;\n};\n\nexport type OptionGroupType = { group?: string };\nexport type OptionValueType = { value: string | number };\nexport type OptionLabelType = { label: string };\nexport type BaseOptionType = OptionValueType &\n OptionGroupType &\n OptionLabelType;\nexport type Metadata = {\n metaData: OptionMetadata[];\n};\n\nexport type OptionLabelOnly = BaseOptionType;\nexport type LabelDescription = BaseOptionType & { description?: string };\nexport type LabelDescriptionMetadata = LabelDescription & Metadata;\n\nexport type PickerProps<\n OptionType extends LabelDescription | LabelDescriptionMetadata,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n> = BasePickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>;\n\nexport type PickerComponentType = {\n <\n OptionType extends OptionLabelOnly,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n >(\n props: PickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>,\n ): ReactElement;\n <\n OptionType extends LabelDescriptionMetadata,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n >(\n props: PickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>,\n ): ReactElement;\n <\n OptionType extends LabelDescription,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n >(\n props: PickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>,\n ): ReactElement;\n <\n OptionType extends LabelDescriptionMetadata,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n >(\n props: PickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>,\n ): ReactElement;\n};\n\nconst Picker: PickerComponentType = <\n OptionType extends\n | OptionLabelOnly\n | LabelDescription\n | LabelDescriptionMetadata,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n>({\n ariaDescribedBy,\n defaultValue,\n errorMessage,\n errorMessageList,\n getIsOptionEqualToValue,\n hasMultipleChoices,\n id: idOverride,\n inputValue,\n isCustomValueAllowed,\n isDisabled,\n isFullWidth = false,\n isLoading,\n isOptional = false,\n isReadOnly,\n isVirtualized: isVirtualizedProp = false,\n hint,\n HintLinkComponent,\n label,\n name: nameOverride,\n onBlur,\n onChange: onChangeProp,\n onInputChange: onInputChangeProp,\n onFocus,\n options,\n value,\n testId,\n translate,\n}: PickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n const customOptionRender = useCallback<\n (props: HTMLAttributes<HTMLLIElement>, option: OptionType) => ReactNode\n >(\n (muiProps, option) => {\n const hasDescription = \"description\" in option && option.description;\n const hasMetadata = \"metaData\" in option && option.metaData;\n const isLabelOnly = !hasMetadata && !hasDescription;\n\n if (isLabelOnly) {\n return (\n <OptionLabelOnlyComponent\n muiProps={muiProps}\n odysseyDesignTokens={odysseyDesignTokens}\n option={option}\n />\n );\n }\n\n if (hasMetadata) {\n return (\n <OptionLabelDescriptionMetadata\n muiProps={muiProps}\n odysseyDesignTokens={odysseyDesignTokens}\n option={option}\n />\n );\n }\n\n return (\n <OptionLabelDescription\n muiProps={muiProps}\n odysseyDesignTokens={odysseyDesignTokens}\n option={option}\n />\n );\n },\n [odysseyDesignTokens],\n );\n\n return (\n <ComposablePicker<OptionType, HasMultipleChoices, IsCustomValueAllowed>\n ariaDescribedBy={ariaDescribedBy}\n defaultValue={defaultValue}\n errorMessage={errorMessage}\n errorMessageList={errorMessageList}\n getIsOptionEqualToValue={getIsOptionEqualToValue}\n // getOptionLabel={// getOptionLabel}\n hasMultipleChoices={hasMultipleChoices}\n id={idOverride}\n inputValue={inputValue}\n isCustomValueAllowed={isCustomValueAllowed}\n isDisabled={isDisabled}\n isFullWidth={isFullWidth}\n isLoading={isLoading}\n isOptional={isOptional}\n isReadOnly={isReadOnly}\n isVirtualized={isVirtualizedProp}\n hint={hint}\n HintLinkComponent={HintLinkComponent}\n label={label}\n name={nameOverride}\n onBlur={onBlur}\n onChange={onChangeProp}\n onInputChange={onInputChangeProp}\n onFocus={onFocus}\n options={options}\n renderOption={customOptionRender}\n value={value}\n testId={testId}\n translate={translate}\n />\n );\n};\n\n// Need the `as BasePickerType` because generics don't get passed through\nconst MemoizedPicker = memo(Picker) as BasePickerType;\n\nMemoizedPicker.displayName = \"Picker\";\n\nexport { MemoizedPicker as Picker };\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAQA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,iBAAA,GAAAH,OAA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B,EAAEA,mBAAoB;MACzCgC,MAAM,EAAEA;IAAO,CAChB,CAAC;EAEN,CAAC,EACD,CAAChC,mBAAmB,CACtB,CAAC;EAED,OACE,IAAAhB,WAAA,CAAAsC,GAAA,EAACzC,iBAAA,CAAAgG,gBAAgB;IACfpC,eAAe,EAAEA,eAAgB;IACjCC,YAAY,EAAEA,YAAa;IAC3BC,YAAY,EAAEA,YAAa;IAC3BC,gBAAgB,EAAEA,gBAAiB;IACnCC,uBAAuB,EAAEA,uBAAwB;IAEjDC,kBAAkB,EAAEA,kBAAmB;IACvCC,EAAE,EAAEC,UAAW;IACfC,UAAU,EAAEA,UAAW;IACvBC,oBAAoB,EAAEA,oBAAqB;IAC3CC,UAAU,EAAEA,UAAW;IACvBC,WAAW,EAAEA,WAAY;IACzBC,SAAS,EAAEA,SAAU;IACrBC,UAAU,EAAEA,UAAW;IACvBC,UAAU,EAAEA,UAAW;IACvBC,aAAa,EAAEC,iBAAkB;IACjCC,IAAI,EAAEA,IAAK;IACXC,iBAAiB,EAAEA,iBAAkB;IACrC1B,KAAK,EAAEA,KAAM;IACb2B,IAAI,EAAEC,YAAa;IACnBC,MAAM,EAAEA,MAAO;IACfC,QAAQ,EAAEC,YAAa;IACvBC,aAAa,EAAEC,iBAAkB;IACjCC,OAAO,EAAEA,OAAQ;IACjBC,OAAO,EAAEA,OAAQ;IACjBU,YAAY,EAAEN,kBAAmB;IACjCtC,KAAK,EAAEA,KAAM;IACbmC,MAAM,EAAEA,MAAO;IACfC,SAAS,EAAEA;EAAU,CACtB,CAAC;AAEN,CAAC;AAGD,MAAMS,cAAc,GAAA1F,OAAA,CAAAmD,MAAA,GAAG,IAAAwC,WAAI,EAACxC,MAAM,CAAmB;AAErDuC,cAAc,CAACE,WAAW,GAAG,QAAQ","ignoreList":[]}
1
+ {"version":3,"file":"Picker.cjs","names":["_react","require","_styled","_interopRequireDefault","_ComposablePicker","_OdysseyDesignTokensContext","_Typography","_jsxRuntime","e","__esModule","default","StyledOption","exports","styled","li","hasAdornment","display","OptionLabelContainer","shouldForwardProp","prop","p","margin","OptionDescription","odysseyDesignTokens","Spacing1","color","TypographyColorSubordinate","OptionDetails","gap","Spacing3","marginBlockStart","Spacing2","OptionDetail","alignItems","svg","width","Spacing4","HueNeutral400","Option","children","muiProps","jsx","OptionMetadataComponent","metaData","map","meta","index","detailText","icon","jsxs","OptionDescriptionComponent","description","OptionLabelOnlyComponent","option","label","Paragraph","OptionLabelDescription","Heading6","component","OptionLabelDescriptionMetadata","Picker","ariaDescribedBy","defaultValue","emptyOptionsText","errorMessage","errorMessageList","getIsOptionEqualToValue","hasMultipleChoices","id","idOverride","inputValue","isCustomValueAllowed","isDisabled","isFullWidth","isLoading","isOptional","isReadOnly","isVirtualized","isVirtualizedProp","hint","HintLinkComponent","name","nameOverride","onBlur","onChange","onChangeProp","onInputChange","onInputChangeProp","onFocus","options","value","testId","translate","useOdysseyDesignTokens","customOptionRender","useCallback","hasDescription","hasMetadata","isLabelOnly","Fragment","ComposablePicker","renderOption","MemoizedPicker","memo","displayName"],"sources":["../../../../src/labs/OdysseyPickers/Picker.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport {\n Fragment,\n HTMLAttributes,\n memo,\n PropsWithChildren,\n ReactElement,\n ReactNode,\n useCallback,\n} from \"react\";\nimport styled from \"@emotion/styled\";\nimport { AutocompleteProps as MuiAutocompleteProps } from \"@mui/material\";\n\nimport {\n ComposablePicker,\n type BasePickerProps,\n type BasePickerType,\n} from \"./ComposablePicker.js\";\nimport {\n useOdysseyDesignTokens,\n DesignTokens,\n} from \"../../OdysseyDesignTokensContext.js\";\nimport { Heading6, Paragraph } from \"../../Typography.js\";\n\nexport const StyledOption = styled.li<{ hasAdornment?: boolean }>(\n ({ hasAdornment }) => ({\n ...(!hasAdornment && {\n display: \"block !important\",\n }),\n }),\n);\n\nexport const OptionLabelContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(() => ({\n p: {\n margin: 0,\n },\n}));\n\nexport const OptionDescription = styled(\"p\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(({ odysseyDesignTokens }) => ({\n margin: `${odysseyDesignTokens.Spacing1} 0 0 !important`,\n color: odysseyDesignTokens.TypographyColorSubordinate,\n}));\n\nexport const OptionDetails = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(({ odysseyDesignTokens }) => ({\n display: \"flex\",\n gap: odysseyDesignTokens.Spacing3,\n marginBlockStart: odysseyDesignTokens.Spacing2,\n}));\n\nexport const OptionDetail = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(({ odysseyDesignTokens }) => ({\n display: \"flex\",\n alignItems: \"center\",\n gap: odysseyDesignTokens.Spacing1,\n\n svg: {\n width: odysseyDesignTokens.Spacing4,\n color: odysseyDesignTokens.HueNeutral400,\n },\n}));\n\nexport type BaseOptionProps = {\n muiProps: HTMLAttributes<HTMLLIElement>;\n odysseyDesignTokens: DesignTokens;\n};\n\ntype OptionComponentProps = {\n hasAdornment?: boolean;\n muiProps: BaseOptionProps[\"muiProps\"];\n};\n\nexport const Option = ({\n children,\n hasAdornment = false,\n muiProps,\n}: PropsWithChildren<OptionComponentProps>) => (\n <StyledOption {...muiProps} hasAdornment={hasAdornment}>\n {children}\n </StyledOption>\n);\n\nexport const OptionMetadataComponent = ({\n metaData,\n odysseyDesignTokens,\n}: {\n metaData: OptionMetadata[];\n odysseyDesignTokens: DesignTokens;\n}) => {\n return (\n <OptionDetails odysseyDesignTokens={odysseyDesignTokens}>\n {metaData.map((meta: OptionMetadata, index: number) => {\n const { detailText, icon } = meta;\n return (\n <OptionDetail\n key={`${detailText}-${index}`}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {icon}\n {detailText}\n </OptionDetail>\n );\n })}\n </OptionDetails>\n );\n};\n\nexport const OptionDescriptionComponent = ({\n description,\n odysseyDesignTokens,\n}: {\n description?: LabelDescription[\"description\"];\n odysseyDesignTokens: DesignTokens;\n}) => {\n return (\n description && (\n <OptionDescription odysseyDesignTokens={odysseyDesignTokens}>\n {description}\n </OptionDescription>\n )\n );\n};\n\nexport type OptionProps<OptionType> = {\n option: OptionType;\n};\n\nexport const OptionLabelOnlyComponent = <OptionType extends OptionLabelOnly>({\n muiProps,\n odysseyDesignTokens,\n option,\n}: BaseOptionProps & OptionProps<OptionType>) => {\n const { label } = option;\n\n return (\n <Option muiProps={muiProps}>\n <OptionLabelContainer odysseyDesignTokens={odysseyDesignTokens}>\n <Paragraph>{label}</Paragraph>\n </OptionLabelContainer>\n </Option>\n );\n};\n\nconst OptionLabelDescription = <OptionType extends LabelDescription>({\n muiProps,\n odysseyDesignTokens,\n option,\n}: BaseOptionProps & OptionProps<OptionType>) => {\n const { description, label } = option;\n\n return (\n <Option muiProps={muiProps}>\n <OptionLabelContainer odysseyDesignTokens={odysseyDesignTokens}>\n <Heading6 component=\"p\">{label}</Heading6>\n <OptionDescriptionComponent\n description={description}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n </OptionLabelContainer>\n </Option>\n );\n};\n\nconst OptionLabelDescriptionMetadata = <\n OptionType extends LabelDescriptionMetadata,\n>({\n muiProps,\n odysseyDesignTokens,\n option,\n}: BaseOptionProps & OptionProps<OptionType>) => {\n const { description, label, metaData } = option;\n\n return (\n <Option muiProps={muiProps}>\n <OptionLabelContainer odysseyDesignTokens={odysseyDesignTokens}>\n <Heading6 component=\"p\">{label}</Heading6>\n <OptionDescriptionComponent\n description={description}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n </OptionLabelContainer>\n <OptionMetadataComponent\n metaData={metaData}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n </Option>\n );\n};\n\nexport type OptionMetadata = {\n icon: ReactElement;\n detailText: string | number;\n};\n\nexport type OptionGroupType = { group?: string };\nexport type OptionValueType = { value: string | number };\nexport type OptionLabelType = { label: string };\nexport type BaseOptionType = OptionValueType &\n OptionGroupType &\n OptionLabelType;\nexport type Metadata = {\n metaData: OptionMetadata[];\n};\n\nexport type OptionLabelOnly = BaseOptionType;\nexport type LabelDescription = BaseOptionType & { description?: string };\nexport type LabelDescriptionMetadata = LabelDescription & Metadata;\n\nexport type PickerProps<\n OptionType extends LabelDescription | LabelDescriptionMetadata,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n> = BasePickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>;\n\nexport type PickerComponentType = {\n <\n OptionType extends OptionLabelOnly,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n >(\n props: PickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>,\n ): ReactNode;\n <\n OptionType extends LabelDescriptionMetadata,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n >(\n props: PickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>,\n ): ReactNode;\n <\n OptionType extends LabelDescription,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n >(\n props: PickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>,\n ): ReactNode;\n <\n OptionType extends LabelDescriptionMetadata,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n >(\n props: PickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>,\n ): ReactNode;\n};\n\nconst Picker: PickerComponentType = <\n OptionType extends\n | OptionLabelOnly\n | LabelDescription\n | LabelDescriptionMetadata,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n>({\n ariaDescribedBy,\n defaultValue,\n emptyOptionsText,\n errorMessage,\n errorMessageList,\n getIsOptionEqualToValue,\n hasMultipleChoices,\n id: idOverride,\n inputValue,\n isCustomValueAllowed,\n isDisabled,\n isFullWidth = false,\n isLoading,\n isOptional = false,\n isReadOnly,\n isVirtualized: isVirtualizedProp = false,\n hint,\n HintLinkComponent,\n label,\n name: nameOverride,\n onBlur,\n onChange: onChangeProp,\n onInputChange: onInputChangeProp,\n onFocus,\n options,\n value,\n testId,\n translate,\n}: PickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n const customOptionRender = useCallback<\n NonNullable<\n MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"renderOption\"]\n >\n >(\n (muiProps, option) => {\n const hasDescription = \"description\" in option && option.description;\n const hasMetadata = \"metaData\" in option && option.metaData;\n const isLabelOnly = !hasMetadata && !hasDescription;\n\n return (\n <Fragment key={option.label}>\n {isLabelOnly ? (\n <OptionLabelOnlyComponent\n muiProps={muiProps}\n odysseyDesignTokens={odysseyDesignTokens}\n option={option}\n />\n ) : hasMetadata ? (\n <OptionLabelDescriptionMetadata\n muiProps={muiProps}\n odysseyDesignTokens={odysseyDesignTokens}\n option={option}\n />\n ) : (\n <OptionLabelDescription\n muiProps={muiProps}\n odysseyDesignTokens={odysseyDesignTokens}\n option={option}\n />\n )}\n </Fragment>\n );\n },\n [odysseyDesignTokens],\n );\n\n return (\n <ComposablePicker<OptionType, HasMultipleChoices, IsCustomValueAllowed>\n ariaDescribedBy={ariaDescribedBy}\n defaultValue={defaultValue}\n emptyOptionsText={emptyOptionsText}\n errorMessage={errorMessage}\n errorMessageList={errorMessageList}\n getIsOptionEqualToValue={getIsOptionEqualToValue}\n // getOptionLabel={// getOptionLabel}\n hasMultipleChoices={hasMultipleChoices}\n id={idOverride}\n inputValue={inputValue}\n isCustomValueAllowed={isCustomValueAllowed}\n isDisabled={isDisabled}\n isFullWidth={isFullWidth}\n isLoading={isLoading}\n isOptional={isOptional}\n isReadOnly={isReadOnly}\n isVirtualized={isVirtualizedProp}\n hint={hint}\n HintLinkComponent={HintLinkComponent}\n label={label}\n name={nameOverride}\n onBlur={onBlur}\n onChange={onChangeProp}\n onInputChange={onInputChangeProp}\n onFocus={onFocus}\n options={options}\n renderOption={customOptionRender}\n value={value}\n testId={testId}\n translate={translate}\n />\n );\n};\n\n// Need the `as BasePickerType` because generics don't get passed through\nconst MemoizedPicker = memo(Picker) as BasePickerType;\n\nMemoizedPicker.displayName = \"Picker\";\n\nexport { MemoizedPicker as Picker };\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AASA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,iBAAA,GAAAH,OAAA;AAKA,IAAAI,2BAAA,GAAAJ,OAAA;AAIA,IAAAK,WAAA,GAAAL,OAAA;AAA0D,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAE,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAjC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAyBO,MAAMG,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAGE,eAAM,CAACC,EAAE,CACnC,CAAC;EAAEC;AAAa,CAAC,MAAM;EACrB,IAAI,CAACA,YAAY,IAAI;IACnBC,OAAO,EAAE;EACX,CAAC;AACH,CAAC,CACH,CAAC;AAEM,MAAMC,oBAAoB,GAAAL,OAAA,CAAAK,oBAAA,GAAG,IAAAJ,e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,SAAU;IACrBC,UAAU,EAAEA,UAAW;IACvBC,UAAU,EAAEA,UAAW;IACvBC,aAAa,EAAEC,iBAAkB;IACjCC,IAAI,EAAEA,IAAK;IACXC,iBAAiB,EAAEA,iBAAkB;IACrC1B,KAAK,EAAEA,KAAM;IACb2B,IAAI,EAAEC,YAAa;IACnBC,MAAM,EAAEA,MAAO;IACfC,QAAQ,EAAEC,YAAa;IACvBC,aAAa,EAAEC,iBAAkB;IACjCC,OAAO,EAAEA,OAAQ;IACjBC,OAAO,EAAEA,OAAQ;IACjBY,YAAY,EAAEP,kBAAmB;IACjCJ,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IACfC,SAAS,EAAEA;EAAU,CACtB,CAAC;AAEN,CAAC;AAGD,MAAMU,cAAc,GAAA1F,OAAA,CAAAgD,MAAA,GAAG,IAAA2C,WAAI,EAAC3C,MAAM,CAAmB;AAErD0C,cAAc,CAACE,WAAW,GAAG,QAAQ","ignoreList":[]}
@@ -188,6 +188,7 @@ const PickerWithOptionAdornment = ({
188
188
  adornmentSize = "small",
189
189
  ariaDescribedBy,
190
190
  defaultValue,
191
+ emptyOptionsText,
191
192
  errorMessage,
192
193
  errorMessageList,
193
194
  getIsOptionEqualToValue,
@@ -243,24 +244,24 @@ const PickerWithOptionAdornment = ({
243
244
  }), [odysseyDesignTokens]);
244
245
  const customOptionRender = (0, _react.useCallback)((muiProps, option) => {
245
246
  const hasMetadata = "metaData" in option && option.metaData;
246
- if (hasMetadata) {
247
- return (0, _jsxRuntime.jsx)(OptionWithLabelDescriptionMetadata, {
247
+ return (0, _jsxRuntime.jsx)(_react.Fragment, {
248
+ children: hasMetadata ? (0, _jsxRuntime.jsx)(OptionWithLabelDescriptionMetadata, {
248
249
  adornmentSize: adornmentSize,
249
250
  muiProps: muiProps,
250
251
  odysseyDesignTokens: odysseyDesignTokens,
251
252
  option: option
252
- });
253
- }
254
- return (0, _jsxRuntime.jsx)(OptionWithLabelDescriptionOnly, {
255
- adornmentSize: adornmentSize,
256
- muiProps: muiProps,
257
- odysseyDesignTokens: odysseyDesignTokens,
258
- option: option
259
- });
253
+ }) : (0, _jsxRuntime.jsx)(OptionWithLabelDescriptionOnly, {
254
+ adornmentSize: adornmentSize,
255
+ muiProps: muiProps,
256
+ odysseyDesignTokens: odysseyDesignTokens,
257
+ option: option
258
+ })
259
+ }, option.label);
260
260
  }, [adornmentSize, odysseyDesignTokens]);
261
261
  return (0, _jsxRuntime.jsx)(_ComposablePicker.ComposablePicker, {
262
262
  ariaDescribedBy: ariaDescribedBy,
263
263
  defaultValue: defaultValue,
264
+ emptyOptionsText: emptyOptionsText,
264
265
  errorMessage: errorMessage,
265
266
  errorMessageList: errorMessageList,
266
267
  getIsOptionEqualToValue: getIsOptionEqualToValue,
@@ -1 +1 @@
1
- {"version":3,"file":"PickerWithOptionAdornment.cjs","names":["_react","require","_styled","_interopRequireDefault","_Box","_ComposablePicker","_OdysseyDesignTokensContext","_Picker","_Typography","_Tag","_jsxRuntime","e","__esModule","default","OptionAdornmentContainer","styled","shouldForwardProp","prop","adornmentSize","isTagContainer","odysseyDesignTokens","position","bottom","alignSelf","width","Spacing5","height","overflow","marginInlineEnd","Spacing3","svg","img","top","left","transform","Spacing8","Spacing4","maxHeight","Spacing2","display","OptionAdornment","adornment","isImageAdornment","jsx","children","src","alt","role","OptionWithLabelDescriptionOnly","muiProps","option","description","label","value","jsxs","Option","hasAdornment","OptionLabelContainer","Heading6","component","OptionDescriptionComponent","OptionWithLabelDescriptionMetadata","metaData","OptionMetadataComponent","TagAdornment","useOdysseyDesignTokens","PickerWithOptionAdornment","ariaDescribedBy","defaultValue","errorMessage","errorMessageList","getIsOptionEqualToValue","groupOptionsBy","hasMultipleChoices","id","idOverride","inputValue","isCustomValueAllowed","isDisabled","isFullWidth","isLoading","isOptional","isReadOnly","isVirtualized","isVirtualizedProp","hint","HintLinkComponent","name","nameOverride","onBlur","onChange","onChangeProp","onInputChange","onInputChangeProp","onFocus","options","testId","translate","customTagRender","useCallback","values","getTagProps","map","index","key","onDelete","Box","sx","margin","Spacing1","Tag","icon","onRemove","customOptionRender","hasMetadata","ComposablePicker","renderOption","renderTags","MemoizedPickerWithOptionAdornment","exports","memo","displayName"],"sources":["../../../../src/labs/OdysseyPickers/PickerWithOptionAdornment.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport {\n HTMLAttributes,\n memo,\n ReactElement,\n ReactNode,\n useCallback,\n} from \"react\";\nimport styled from \"@emotion/styled\";\n\nimport { Box } from \"../../Box.js\";\nimport {\n ComposablePicker,\n ComposablePickerProps,\n type AdornmentSize,\n type BasePickerProps,\n type BasePickerType,\n} from \"./ComposablePicker.js\";\nimport {\n useOdysseyDesignTokens,\n DesignTokens,\n} from \"../../OdysseyDesignTokensContext.js\";\nimport {\n type BaseOptionProps,\n type LabelDescription,\n type Metadata,\n Option,\n OptionDescriptionComponent,\n OptionLabelContainer,\n OptionMetadataComponent,\n OptionProps,\n} from \"./Picker.js\";\nimport { Heading6 } from \"../../Typography.js\";\nimport { Tag } from \"../../Tag.js\";\n\ntype Adornment = ReactNode | string;\n\ntype AdornmentLabelDescription = LabelDescription & {\n adornment: Adornment;\n};\n\ntype AdornmentLabelDescriptionMetadata = AdornmentLabelDescription & Metadata;\n\nexport type AdornmentOptionType =\n | AdornmentLabelDescription\n | AdornmentLabelDescriptionMetadata;\n\nconst OptionAdornmentContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" &&\n prop !== \"adornmentSize\" &&\n prop !== \"isTagContainer\",\n})<{\n adornmentSize?: AdornmentSize;\n isTagContainer?: boolean;\n odysseyDesignTokens: DesignTokens;\n}>(\n ({\n adornmentSize = \"small\",\n isTagContainer = false,\n odysseyDesignTokens,\n }) => ({\n position: \"relative\",\n // push icon up by one px for better visual alignment\n bottom: \"1px\",\n alignSelf: \"flex-start\",\n width: odysseyDesignTokens.Spacing5,\n height: odysseyDesignTokens.Spacing5,\n overflow: \"hidden\",\n marginInlineEnd: odysseyDesignTokens.Spacing3,\n\n svg: {\n width: \"100%\",\n height: \"auto\",\n },\n\n img: {\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n width: \"100%\",\n transform: \"translate(-50%, -50%)\",\n },\n\n ...(adornmentSize === \"large\" &&\n !isTagContainer && {\n bottom: 0,\n width: odysseyDesignTokens.Spacing8,\n height: odysseyDesignTokens.Spacing8,\n }),\n\n ...(isTagContainer && {\n bottom: 0,\n alignSelf: \"center\",\n width: odysseyDesignTokens.Spacing4,\n height: \"auto\",\n maxHeight: odysseyDesignTokens.Spacing4,\n marginInlineEnd: odysseyDesignTokens.Spacing2,\n\n svg: {\n display: \"flex\",\n width: \"100%\",\n height: \"auto\",\n },\n }),\n }),\n);\n\ntype OptionAdornmentProps = {\n adornment: Adornment;\n adornmentSize: AdornmentSize;\n odysseyDesignTokens: DesignTokens;\n};\n\nconst OptionAdornment = ({\n adornment,\n adornmentSize,\n odysseyDesignTokens,\n}: OptionAdornmentProps) => {\n const isImageAdornment = typeof adornment === \"string\";\n\n if (isImageAdornment) {\n return (\n <OptionAdornmentContainer\n adornmentSize={adornmentSize}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {/* NOTE: Intentionally leaving alt as an empty string here so screen readers will ignore this image */}\n {/* Image should be sufficiently described by the adjacent title and/or description of the option */}\n <img src={adornment} alt=\"\" role=\"presentation\" />\n </OptionAdornmentContainer>\n );\n } else {\n return (\n <OptionAdornmentContainer\n adornmentSize={adornmentSize}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {adornment}\n </OptionAdornmentContainer>\n );\n }\n};\n\nconst OptionWithLabelDescriptionOnly = <\n OptionType extends AdornmentLabelDescription,\n>({\n adornmentSize,\n muiProps,\n odysseyDesignTokens,\n option,\n}: BaseOptionProps &\n OptionProps<OptionType> & { adornmentSize: AdornmentSize }) => {\n const { adornment, description, label, value } = option;\n return (\n <Option hasAdornment key={value} muiProps={muiProps}>\n <OptionAdornment\n adornment={adornment}\n adornmentSize={adornmentSize}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n <OptionLabelContainer odysseyDesignTokens={odysseyDesignTokens}>\n <Heading6 component=\"p\">{label}</Heading6>\n <OptionDescriptionComponent\n description={description}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n </OptionLabelContainer>\n </Option>\n );\n};\n\nconst OptionWithLabelDescriptionMetadata = <\n OptionType extends AdornmentLabelDescriptionMetadata,\n>({\n adornmentSize,\n muiProps,\n odysseyDesignTokens,\n option,\n}: BaseOptionProps &\n OptionProps<OptionType> & {\n adornmentSize: AdornmentSize;\n }) => {\n const { adornment, description, label, metaData, value } = option;\n\n return (\n <Option hasAdornment key={value} muiProps={muiProps}>\n <OptionAdornment\n adornment={adornment}\n adornmentSize={adornmentSize}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n <div>\n <OptionLabelContainer odysseyDesignTokens={odysseyDesignTokens}>\n <Heading6 component=\"p\">{label}</Heading6>\n <OptionDescriptionComponent\n description={description}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n </OptionLabelContainer>\n <OptionMetadataComponent\n metaData={metaData}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n </div>\n </Option>\n );\n};\n\ntype TagAdornmentProps = {\n adornment: Adornment;\n};\n\nconst TagAdornment = ({ adornment }: TagAdornmentProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const isImageAdornment = typeof adornment === \"string\";\n\n if (isImageAdornment) {\n return (\n <OptionAdornmentContainer\n isTagContainer\n odysseyDesignTokens={odysseyDesignTokens}\n >\n <img src={adornment} alt=\"\" role=\"presentation\" />\n </OptionAdornmentContainer>\n );\n }\n\n return (\n <OptionAdornmentContainer\n isTagContainer\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {adornment}\n </OptionAdornmentContainer>\n );\n};\n\nexport type PickerWithOptionAdornmentProps<\n OptionType extends AdornmentOptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n> = BasePickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed> & {\n adornmentSize?: AdornmentSize;\n};\n\ntype PickerWithOptionAdornmentComponentType = {\n <\n OptionType extends AdornmentLabelDescription,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n >(\n props: PickerWithOptionAdornmentProps<\n OptionType,\n HasMultipleChoices,\n IsCustomValueAllowed\n >,\n ): ReactElement;\n <\n OptionType extends AdornmentLabelDescriptionMetadata,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n >(\n props: PickerWithOptionAdornmentProps<\n OptionType,\n HasMultipleChoices,\n IsCustomValueAllowed\n >,\n ): ReactElement;\n};\n\nconst PickerWithOptionAdornment: PickerWithOptionAdornmentComponentType = <\n OptionType extends AdornmentOptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n>({\n adornmentSize = \"small\",\n ariaDescribedBy,\n defaultValue,\n errorMessage,\n errorMessageList,\n getIsOptionEqualToValue,\n groupOptionsBy,\n hasMultipleChoices,\n id: idOverride,\n inputValue,\n isCustomValueAllowed,\n isDisabled,\n isFullWidth = false,\n isLoading,\n isOptional = false,\n isReadOnly,\n isVirtualized: isVirtualizedProp = false,\n hint,\n HintLinkComponent,\n label,\n name: nameOverride,\n onBlur,\n onChange: onChangeProp,\n onInputChange: onInputChangeProp,\n onFocus,\n options,\n value,\n testId,\n translate,\n}: PickerWithOptionAdornmentProps<\n OptionType,\n HasMultipleChoices,\n IsCustomValueAllowed\n>) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n const customTagRender = useCallback<\n NonNullable<\n ComposablePickerProps<\n OptionType,\n HasMultipleChoices,\n IsCustomValueAllowed\n >[\"renderTags\"]\n >\n >(\n (values, getTagProps) =>\n values.map((value, index) => {\n const { key, onDelete } = getTagProps({ index });\n const { adornment, label } = value;\n\n return (\n <Box\n key={key}\n sx={{\n margin: odysseyDesignTokens.Spacing1,\n marginInlineEnd: 0,\n }}\n >\n <Tag\n icon={<TagAdornment adornment={adornment} />}\n label={label}\n onRemove={onDelete}\n />\n </Box>\n );\n }),\n [odysseyDesignTokens],\n );\n\n const customOptionRender = useCallback<\n (props: HTMLAttributes<HTMLLIElement>, option: OptionType) => ReactNode\n >(\n (muiProps, option) => {\n const hasMetadata = \"metaData\" in option && option.metaData;\n\n if (hasMetadata) {\n return (\n <OptionWithLabelDescriptionMetadata\n adornmentSize={adornmentSize}\n muiProps={muiProps}\n odysseyDesignTokens={odysseyDesignTokens}\n option={option}\n />\n );\n }\n\n return (\n <OptionWithLabelDescriptionOnly\n adornmentSize={adornmentSize}\n muiProps={muiProps}\n odysseyDesignTokens={odysseyDesignTokens}\n option={option}\n />\n );\n },\n [adornmentSize, odysseyDesignTokens],\n );\n\n return (\n <ComposablePicker<OptionType, HasMultipleChoices, IsCustomValueAllowed>\n ariaDescribedBy={ariaDescribedBy}\n defaultValue={defaultValue}\n errorMessage={errorMessage}\n errorMessageList={errorMessageList}\n getIsOptionEqualToValue={getIsOptionEqualToValue}\n groupOptionsBy={groupOptionsBy}\n hasMultipleChoices={hasMultipleChoices}\n id={idOverride}\n inputValue={inputValue}\n isCustomValueAllowed={isCustomValueAllowed}\n isDisabled={isDisabled}\n isFullWidth={isFullWidth}\n isLoading={isLoading}\n isOptional={isOptional}\n isReadOnly={isReadOnly}\n isVirtualized={isVirtualizedProp}\n hint={hint}\n HintLinkComponent={HintLinkComponent}\n label={label}\n name={nameOverride}\n onBlur={onBlur}\n onChange={onChangeProp}\n onInputChange={onInputChangeProp}\n onFocus={onFocus}\n options={options}\n renderOption={customOptionRender}\n renderTags={customTagRender}\n value={value}\n testId={testId}\n translate={translate}\n />\n );\n};\n\n// Need the `as BasePickerType` because generics don't get passed through\nconst MemoizedPickerWithOptionAdornment = memo(\n PickerWithOptionAdornment,\n) as BasePickerType;\n\nMemoizedPickerWithOptionAdornment.displayName = \"PickerWithOptionAdornment\";\n\nexport { MemoizedPickerWithOptionAdornment as PickerWithOptionAdornment };\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,IAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AAOA,IAAAK,2BAAA,GAAAL,OAAA;AAIA,IAAAM,OAAA,GAAAN,OAAA;AAUA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,IAAA,GAAAR,OAAA;AAAmC,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAE,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA5CnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAgDA,MAAMG,wBAAwB,GAAG,IAAAC,eAAM,EAAC,KAAK,EAAE;EAC7CC,iBAAiB,EAAGC,IAAI,IACtBA,IAAI,KAAK,qBAAqB,IAC9BA,IAAI,KAAK,eAAe,IACxBA,IAAI,KAAK;AACb,CAAC,CAAC,CAKA,CAAC;EACCC,aAAa,GAAG,OAAO;EACvBC,cAAc,GAAG,KAAK;EACtBC;AACF,CAAC,MAAM;EACLC,QAAQ,EAAE,UAAU;EAEpBC,MAAM,EAAE,KAAK;EACbC,SAAS,EAAE,YAAY;EACvBC,KAAK,EAAEJ,mBAAmB,CAACK,QAAQ;EACnCC,MAAM,EAAEN,mBAAmB,CAACK,QAA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,YAAa;IAC3BC,YAAY,EAAEA,YAAa;IAC3BC,gBAAgB,EAAEA,gBAAiB;IACnCC,uBAAuB,EAAEA,uBAAwB;IACjDC,cAAc,EAAEA,cAAe;IAC/BC,kBAAkB,EAAEA,kBAAmB;IACvCC,EAAE,EAAEC,UAAW;IACfC,UAAU,EAAEA,UAAW;IACvBC,oBAAoB,EAAEA,oBAAqB;IAC3CC,UAAU,EAAEA,UAAW;IACvBC,WAAW,EAAEA,WAAY;IACzBC,SAAS,EAAEA,SAAU;IACrBC,UAAU,EAAEA,UAAW;IACvBC,UAAU,EAAEA,UAAW;IACvBC,aAAa,EAAEC,iBAAkB;IACjCC,IAAI,EAAEA,IAAK;IACXC,iBAAiB,EAAEA,iBAAkB;IACrClC,KAAK,EAAEA,KAAM;IACbmC,IAAI,EAAEC,YAAa;IACnBC,MAAM,EAAEA,MAAO;IACfC,QAAQ,EAAEC,YAAa;IACvBC,aAAa,EAAEC,iBAAkB;IACjCC,OAAO,EAAEA,OAAQ;IACjBC,OAAO,EAAEA,OAAQ;IACjBqB,YAAY,EAAEH,kBAAmB;IACjCI,UAAU,EAAEnB,eAAgB;IAC5B7C,KAAK,EAAEA,KAAM;IACb2C,MAAM,EAAEA,MAAO;IACfC,SAAS,EAAEA;EAAU,CACtB,CAAC;AAEN,CAAC;AAGD,MAAMqB,iCAAiC,GAAAC,OAAA,CAAArD,yBAAA,GAAG,IAAAsD,WAAI,EAC5CtD,yBACF,CAAmB;AAEnBoD,iCAAiC,CAACG,WAAW,GAAG,2BAA2B","ignoreList":[]}
1
+ {"version":3,"file":"PickerWithOptionAdornment.cjs","names":["_react","require","_styled","_interopRequireDefault","_Box","_ComposablePicker","_OdysseyDesignTokensContext","_Picker","_Typography","_Tag","_jsxRuntime","e","__esModule","default","OptionAdornmentContainer","styled","shouldForwardProp","prop","adornmentSize","isTagContainer","odysseyDesignTokens","position","bottom","alignSelf","width","Spacing5","height","overflow","marginInlineEnd","Spacing3","svg","img","top","left","transform","Spacing8","Spacing4","maxHeight","Spacing2","display","OptionAdornment","adornment","isImageAdornment","jsx","children","src","alt","role","OptionWithLabelDescriptionOnly","muiProps","option","description","label","value","jsxs","Option","hasAdornment","OptionLabelContainer","Heading6","component","OptionDescriptionComponent","OptionWithLabelDescriptionMetadata","metaData","OptionMetadataComponent","TagAdornment","useOdysseyDesignTokens","PickerWithOptionAdornment","ariaDescribedBy","defaultValue","emptyOptionsText","errorMessage","errorMessageList","getIsOptionEqualToValue","groupOptionsBy","hasMultipleChoices","id","idOverride","inputValue","isCustomValueAllowed","isDisabled","isFullWidth","isLoading","isOptional","isReadOnly","isVirtualized","isVirtualizedProp","hint","HintLinkComponent","name","nameOverride","onBlur","onChange","onChangeProp","onInputChange","onInputChangeProp","onFocus","options","testId","translate","customTagRender","useCallback","values","getTagProps","map","index","key","onDelete","Box","sx","margin","Spacing1","Tag","icon","onRemove","customOptionRender","hasMetadata","Fragment","ComposablePicker","renderOption","renderTags","MemoizedPickerWithOptionAdornment","exports","memo","displayName"],"sources":["../../../../src/labs/OdysseyPickers/PickerWithOptionAdornment.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Fragment, memo, ReactNode, useCallback } from \"react\";\nimport styled from \"@emotion/styled\";\nimport { AutocompleteProps as MuiAutocompleteProps } from \"@mui/material\";\n\nimport { Box } from \"../../Box.js\";\nimport {\n ComposablePicker,\n ComposablePickerProps,\n type AdornmentSize,\n type BasePickerProps,\n type BasePickerType,\n} from \"./ComposablePicker.js\";\nimport {\n useOdysseyDesignTokens,\n DesignTokens,\n} from \"../../OdysseyDesignTokensContext.js\";\nimport {\n type BaseOptionProps,\n type LabelDescription,\n type Metadata,\n Option,\n OptionDescriptionComponent,\n OptionLabelContainer,\n OptionMetadataComponent,\n OptionProps,\n} from \"./Picker.js\";\nimport { Heading6 } from \"../../Typography.js\";\nimport { Tag } from \"../../Tag.js\";\n\ntype Adornment = ReactNode | string;\n\ntype AdornmentLabelDescription = LabelDescription & {\n adornment: Adornment;\n};\n\ntype AdornmentLabelDescriptionMetadata = AdornmentLabelDescription & Metadata;\n\nexport type AdornmentOptionType =\n | AdornmentLabelDescription\n | AdornmentLabelDescriptionMetadata;\n\nconst OptionAdornmentContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" &&\n prop !== \"adornmentSize\" &&\n prop !== \"isTagContainer\",\n})<{\n adornmentSize?: AdornmentSize;\n isTagContainer?: boolean;\n odysseyDesignTokens: DesignTokens;\n}>(\n ({\n adornmentSize = \"small\",\n isTagContainer = false,\n odysseyDesignTokens,\n }) => ({\n position: \"relative\",\n // push icon up by one px for better visual alignment\n bottom: \"1px\",\n alignSelf: \"flex-start\",\n width: odysseyDesignTokens.Spacing5,\n height: odysseyDesignTokens.Spacing5,\n overflow: \"hidden\",\n marginInlineEnd: odysseyDesignTokens.Spacing3,\n\n svg: {\n width: \"100%\",\n height: \"auto\",\n },\n\n img: {\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n width: \"100%\",\n transform: \"translate(-50%, -50%)\",\n },\n\n ...(adornmentSize === \"large\" &&\n !isTagContainer && {\n bottom: 0,\n width: odysseyDesignTokens.Spacing8,\n height: odysseyDesignTokens.Spacing8,\n }),\n\n ...(isTagContainer && {\n bottom: 0,\n alignSelf: \"center\",\n width: odysseyDesignTokens.Spacing4,\n height: \"auto\",\n maxHeight: odysseyDesignTokens.Spacing4,\n marginInlineEnd: odysseyDesignTokens.Spacing2,\n\n svg: {\n display: \"flex\",\n width: \"100%\",\n height: \"auto\",\n },\n }),\n }),\n);\n\ntype OptionAdornmentProps = {\n adornment: Adornment;\n adornmentSize: AdornmentSize;\n odysseyDesignTokens: DesignTokens;\n};\n\nconst OptionAdornment = ({\n adornment,\n adornmentSize,\n odysseyDesignTokens,\n}: OptionAdornmentProps) => {\n const isImageAdornment = typeof adornment === \"string\";\n\n if (isImageAdornment) {\n return (\n <OptionAdornmentContainer\n adornmentSize={adornmentSize}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {/* NOTE: Intentionally leaving alt as an empty string here so screen readers will ignore this image */}\n {/* Image should be sufficiently described by the adjacent title and/or description of the option */}\n <img src={adornment} alt=\"\" role=\"presentation\" />\n </OptionAdornmentContainer>\n );\n } else {\n return (\n <OptionAdornmentContainer\n adornmentSize={adornmentSize}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {adornment}\n </OptionAdornmentContainer>\n );\n }\n};\n\nconst OptionWithLabelDescriptionOnly = <\n OptionType extends AdornmentLabelDescription,\n>({\n adornmentSize,\n muiProps,\n odysseyDesignTokens,\n option,\n}: BaseOptionProps &\n OptionProps<OptionType> & { adornmentSize: AdornmentSize }) => {\n const { adornment, description, label, value } = option;\n return (\n <Option hasAdornment key={value} muiProps={muiProps}>\n <OptionAdornment\n adornment={adornment}\n adornmentSize={adornmentSize}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n <OptionLabelContainer odysseyDesignTokens={odysseyDesignTokens}>\n <Heading6 component=\"p\">{label}</Heading6>\n <OptionDescriptionComponent\n description={description}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n </OptionLabelContainer>\n </Option>\n );\n};\n\nconst OptionWithLabelDescriptionMetadata = <\n OptionType extends AdornmentLabelDescriptionMetadata,\n>({\n adornmentSize,\n muiProps,\n odysseyDesignTokens,\n option,\n}: BaseOptionProps &\n OptionProps<OptionType> & {\n adornmentSize: AdornmentSize;\n }) => {\n const { adornment, description, label, metaData, value } = option;\n\n return (\n <Option hasAdornment key={value} muiProps={muiProps}>\n <OptionAdornment\n adornment={adornment}\n adornmentSize={adornmentSize}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n <div>\n <OptionLabelContainer odysseyDesignTokens={odysseyDesignTokens}>\n <Heading6 component=\"p\">{label}</Heading6>\n <OptionDescriptionComponent\n description={description}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n </OptionLabelContainer>\n <OptionMetadataComponent\n metaData={metaData}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n </div>\n </Option>\n );\n};\n\ntype TagAdornmentProps = {\n adornment: Adornment;\n};\n\nconst TagAdornment = ({ adornment }: TagAdornmentProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const isImageAdornment = typeof adornment === \"string\";\n\n if (isImageAdornment) {\n return (\n <OptionAdornmentContainer\n isTagContainer\n odysseyDesignTokens={odysseyDesignTokens}\n >\n <img src={adornment} alt=\"\" role=\"presentation\" />\n </OptionAdornmentContainer>\n );\n }\n\n return (\n <OptionAdornmentContainer\n isTagContainer\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {adornment}\n </OptionAdornmentContainer>\n );\n};\n\nexport type PickerWithOptionAdornmentProps<\n OptionType extends AdornmentOptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n> = BasePickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed> & {\n adornmentSize?: AdornmentSize;\n};\n\ntype PickerWithOptionAdornmentComponentType = {\n <\n OptionType extends AdornmentLabelDescription,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n >(\n props: PickerWithOptionAdornmentProps<\n OptionType,\n HasMultipleChoices,\n IsCustomValueAllowed\n >,\n ): ReactNode;\n <\n OptionType extends AdornmentLabelDescriptionMetadata,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n >(\n props: PickerWithOptionAdornmentProps<\n OptionType,\n HasMultipleChoices,\n IsCustomValueAllowed\n >,\n ): ReactNode;\n};\n\nconst PickerWithOptionAdornment: PickerWithOptionAdornmentComponentType = <\n OptionType extends AdornmentOptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n>({\n adornmentSize = \"small\",\n ariaDescribedBy,\n defaultValue,\n emptyOptionsText,\n errorMessage,\n errorMessageList,\n getIsOptionEqualToValue,\n groupOptionsBy,\n hasMultipleChoices,\n id: idOverride,\n inputValue,\n isCustomValueAllowed,\n isDisabled,\n isFullWidth = false,\n isLoading,\n isOptional = false,\n isReadOnly,\n isVirtualized: isVirtualizedProp = false,\n hint,\n HintLinkComponent,\n label,\n name: nameOverride,\n onBlur,\n onChange: onChangeProp,\n onInputChange: onInputChangeProp,\n onFocus,\n options,\n value,\n testId,\n translate,\n}: PickerWithOptionAdornmentProps<\n OptionType,\n HasMultipleChoices,\n IsCustomValueAllowed\n>) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n const customTagRender = useCallback<\n NonNullable<\n ComposablePickerProps<\n OptionType,\n HasMultipleChoices,\n IsCustomValueAllowed\n >[\"renderTags\"]\n >\n >(\n (values, getTagProps) =>\n values.map((value, index) => {\n const { key, onDelete } = getTagProps({ index });\n const { adornment, label } = value;\n\n return (\n <Box\n key={key}\n sx={{\n margin: odysseyDesignTokens.Spacing1,\n marginInlineEnd: 0,\n }}\n >\n <Tag\n icon={<TagAdornment adornment={adornment} />}\n label={label}\n onRemove={onDelete}\n />\n </Box>\n );\n }),\n [odysseyDesignTokens],\n );\n\n const customOptionRender = useCallback<\n NonNullable<\n MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"renderOption\"]\n >\n >(\n (muiProps, option) => {\n const hasMetadata = \"metaData\" in option && option.metaData;\n\n return (\n <Fragment key={option.label}>\n {hasMetadata ? (\n <OptionWithLabelDescriptionMetadata\n adornmentSize={adornmentSize}\n muiProps={muiProps}\n odysseyDesignTokens={odysseyDesignTokens}\n option={option}\n />\n ) : (\n <OptionWithLabelDescriptionOnly\n adornmentSize={adornmentSize}\n muiProps={muiProps}\n odysseyDesignTokens={odysseyDesignTokens}\n option={option}\n />\n )}\n </Fragment>\n );\n },\n [adornmentSize, odysseyDesignTokens],\n );\n\n return (\n <ComposablePicker<OptionType, HasMultipleChoices, IsCustomValueAllowed>\n ariaDescribedBy={ariaDescribedBy}\n defaultValue={defaultValue}\n emptyOptionsText={emptyOptionsText}\n errorMessage={errorMessage}\n errorMessageList={errorMessageList}\n getIsOptionEqualToValue={getIsOptionEqualToValue}\n groupOptionsBy={groupOptionsBy}\n hasMultipleChoices={hasMultipleChoices}\n id={idOverride}\n inputValue={inputValue}\n isCustomValueAllowed={isCustomValueAllowed}\n isDisabled={isDisabled}\n isFullWidth={isFullWidth}\n isLoading={isLoading}\n isOptional={isOptional}\n isReadOnly={isReadOnly}\n isVirtualized={isVirtualizedProp}\n hint={hint}\n HintLinkComponent={HintLinkComponent}\n label={label}\n name={nameOverride}\n onBlur={onBlur}\n onChange={onChangeProp}\n onInputChange={onInputChangeProp}\n onFocus={onFocus}\n options={options}\n renderOption={customOptionRender}\n renderTags={customTagRender}\n value={value}\n testId={testId}\n translate={translate}\n />\n );\n};\n\n// Need the `as BasePickerType` because generics don't get passed through\nconst MemoizedPickerWithOptionAdornment = memo(\n PickerWithOptionAdornment,\n) as BasePickerType;\n\nMemoizedPickerWithOptionAdornment.displayName = \"PickerWithOptionAdornment\";\n\nexport { MemoizedPickerWithOptionAdornment as PickerWithOptionAdornment };\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,IAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AAOA,IAAAK,2BAAA,GAAAL,OAAA;AAIA,IAAAM,OAAA,GAAAN,OAAA;AAUA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,IAAA,GAAAR,OAAA;AAAmC,IAAAS,WA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C,IAAI,EAAEC,YAAa;IACnBC,MAAM,EAAEA,MAAO;IACfC,QAAQ,EAAEC,YAAa;IACvBC,aAAa,EAAEC,iBAAkB;IACjCC,OAAO,EAAEA,OAAQ;IACjBC,OAAO,EAAEA,OAAQ;IACjBsB,YAAY,EAAEJ,kBAAmB;IACjCK,UAAU,EAAEpB,eAAgB;IAC5B9C,KAAK,EAAEA,KAAM;IACb4C,MAAM,EAAEA,MAAO;IACfC,SAAS,EAAEA;EAAU,CACtB,CAAC;AAEN,CAAC;AAGD,MAAMsB,iCAAiC,GAAAC,OAAA,CAAAvD,yBAAA,GAAG,IAAAwD,WAAI,EAC5CxD,yBACF,CAAmB;AAEnBsD,iCAAiC,CAACG,WAAW,GAAG,2BAA2B","ignoreList":[]}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.linkVariantValues = exports.DocumentationLink = void 0;
7
+ var _Link2 = _interopRequireDefault(require("@mui/material/Link"));
8
+ var _react = require("react");
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ /*!
12
+ * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
13
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
14
+ *
15
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ *
20
+ * See the License for the specific language governing permissions and limitations under the License.
21
+ */
22
+
23
+ const linkVariantValues = exports.linkVariantValues = ["default", "monochrome"];
24
+ const DocumentationLink = ({
25
+ children,
26
+ href,
27
+ icon,
28
+ target
29
+ }) => {
30
+ return (0, _jsxRuntime.jsxs)(_Link2.default, {
31
+ href: href,
32
+ target: target,
33
+ children: [icon && (0, _jsxRuntime.jsx)("span", {
34
+ className: "Link-icon",
35
+ children: icon
36
+ }), children]
37
+ });
38
+ };
39
+ const MemoizedDocumentationLink = exports.DocumentationLink = (0, _react.memo)(DocumentationLink);
40
+ MemoizedDocumentationLink.displayName = "DocumentationLink";
41
+ //# sourceMappingURL=DocumentationLink.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentationLink.cjs","names":["_react","require","_jsxRuntime","_interopRequireDefault","e","__esModule","default","linkVariantValues","exports","DocumentationLink","children","href","icon","target","jsxs","_Link2","jsx","className","MemoizedDocumentationLink","memo","displayName"],"sources":["../../../../src/labs/PageTemplate/DocumentationLink.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { memo, ReactElement, ReactNode } from \"react\";\n\nimport { Link as MuiLink } from \"@mui/material\";\n\nexport const linkVariantValues = [\"default\", \"monochrome\"] as const;\n\nexport type DocumentationLinkProps = {\n /**\n * The content within the Link\n */\n children: ReactNode;\n /**\n * The Link destination\n */\n href: string;\n /**\n * An optional Icon component at the start of the Link\n */\n icon?: ReactElement;\n /**\n * The HTML `target` attribute for the Link\n */\n target?:\n | \"_self\"\n | \"_blank\"\n | \"_parent\"\n | \"_top\"\n | (string & NonNullable<unknown>);\n};\n\nconst DocumentationLink = ({\n children,\n href,\n icon,\n target,\n}: DocumentationLinkProps) => {\n return (\n <MuiLink href={href} target={target}>\n {icon && <span className=\"Link-icon\">{icon}</span>}\n\n {children}\n </MuiLink>\n );\n};\n\nconst MemoizedDocumentationLink = memo(DocumentationLink);\n\nMemoizedDocumentationLink.displayName = \"DocumentationLink\";\n\nexport { MemoizedDocumentationLink as DocumentationLink };\n"],"mappings":";;;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAAsD,IAAAC,WAAA,GAAAD,OAAA;AAAA,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAZtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMO,MAAMG,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,CAAC,SAAS,EAAE,YAAY,CAAU;AA0BnE,MAAME,iBAAiB,GAAGA,CAAC;EACzBC,QAAQ;EACRC,IAAI;EACJC,IAAI;EACJC;AACsB,CAAC,KAAK;EAC5B,OACE,IAAAX,WAAA,CAAAY,IAAA,EAAAC,MAAA,CAAAT,OAAA;IAASK,IAAI,EAAEA,IAAK;IAACE,MAAM,EAAEA,MAAO;IAAAH,QAAA,GACjCE,IAAI,IAAI,IAAAV,WAAA,CAAAc,GAAA;MAAMC,SAAS,EAAC,WAAW;MAAAP,QAAA,EAAEE;IAAI,CAAO,CAAC,EAEjDF,QAAQ;EAAA,CACF,CAAC;AAEd,CAAC;AAED,MAAMQ,yBAAyB,GAAAV,OAAA,CAAAC,iBAAA,GAAG,IAAAU,WAAI,EAACV,iBAAiB,CAAC;AAEzDS,yBAAyB,CAACE,WAAW,GAAG,mBAAmB","ignoreList":[]}
@@ -7,7 +7,7 @@ exports.PageTemplate = void 0;
7
7
  var _styled = _interopRequireDefault(require("@emotion/styled"));
8
8
  var _react = require("react");
9
9
  var _index = require("../../icons.generated/index.cjs");
10
- var _Link = require("../../Link.cjs");
10
+ var _DocumentationLink = require("./DocumentationLink.cjs");
11
11
  var _OdysseyDesignTokensContext = require("../../OdysseyDesignTokensContext.cjs");
12
12
  var _Typography = require("../../Typography.cjs");
13
13
  var _useHasUiShell = require("../../ui-shell/useHasUiShell.cjs");
@@ -36,12 +36,22 @@ const TemplateContainer = (0, _styled.default)("div", {
36
36
  marginInline: isFullWidth && !hasUiShell ? odysseyDesignTokens.Spacing6 : "auto",
37
37
  padding: hasUiShell ? 0 : odysseyDesignTokens.Spacing6
38
38
  }));
39
- const TemplateHeader = (0, _styled.default)("div")(() => ({
39
+ const TemplateHeader = (0, _styled.default)("div", {
40
+ shouldForwardProp: prop => prop !== "odysseyDesignTokens"
41
+ })(({
42
+ odysseyDesignTokens
43
+ }) => ({
40
44
  display: "flex",
41
- alignItems: "flex-end",
42
- justifyContent: "space-between"
45
+ alignItems: "flex-start",
46
+ justifyContent: "space-between",
47
+ gap: odysseyDesignTokens.Spacing4
43
48
  }));
44
- const TemplateHeaderPrimaryContent = (0, _styled.default)("div")(() => ({
49
+ const TemplateHeaderPrimaryContent = (0, _styled.default)("div", {
50
+ shouldForwardProp: prop => prop !== "odysseyDesignTokens"
51
+ })(({
52
+ odysseyDesignTokens
53
+ }) => ({
54
+ maxWidth: odysseyDesignTokens.TypographyLineLengthMax,
45
55
  [".MuiTypography-root:last-child"]: {
46
56
  marginBlockEnd: "0"
47
57
  }
@@ -54,9 +64,10 @@ const TemplateHeaderSecondaryContent = (0, _styled.default)("div", {
54
64
  alignItems: "flex-end",
55
65
  display: "flex",
56
66
  flexDirection: "column",
57
- gap: odysseyDesignTokens.Spacing2,
67
+ gap: odysseyDesignTokens.Spacing4,
58
68
  minHeight: odysseyDesignTokens.Spacing7,
59
- justifyContent: "center"
69
+ justifyContent: "center",
70
+ whiteSpace: "nowrap"
60
71
  }));
61
72
  const TemplateHeaderButtons = (0, _styled.default)("div", {
62
73
  shouldForwardProp: prop => prop !== "odysseyDesignTokens"
@@ -119,7 +130,9 @@ const PageTemplate = ({
119
130
  isFullWidth: isFullWidth,
120
131
  odysseyDesignTokens: odysseyDesignTokens,
121
132
  children: [(0, _jsxRuntime.jsxs)(TemplateHeader, {
133
+ odysseyDesignTokens: odysseyDesignTokens,
122
134
  children: [(0, _jsxRuntime.jsxs)(TemplateHeaderPrimaryContent, {
135
+ odysseyDesignTokens: odysseyDesignTokens,
123
136
  children: [title && (0, _jsxRuntime.jsx)(_Typography.Heading4, {
124
137
  children: title
125
138
  }), description && (0, _jsxRuntime.jsx)(_Typography.Subordinate, {
@@ -127,9 +140,10 @@ const PageTemplate = ({
127
140
  })]
128
141
  }), (0, _jsxRuntime.jsxs)(TemplateHeaderSecondaryContent, {
129
142
  odysseyDesignTokens: odysseyDesignTokens,
130
- children: [documentationLink && (0, _jsxRuntime.jsx)(_Link.Link, {
143
+ children: [documentationLink && (0, _jsxRuntime.jsx)(_DocumentationLink.DocumentationLink, {
131
144
  href: documentationLink,
132
145
  icon: (0, _jsxRuntime.jsx)(_index.DocumentationIcon, {}),
146
+ target: "_blank",
133
147
  children: documentationText
134
148
  }), (primaryCallToActionComponent || secondaryCallToActionComponent || tertiaryCallToActionComponent) && (0, _jsxRuntime.jsxs)(TemplateHeaderButtons, {
135
149
  odysseyDesignTokens: odysseyDesignTokens,
@@ -1 +1 @@
1
- {"version":3,"file":"PageTemplate.cjs","names":["_styled","_interopRequireDefault","require","_react","_index","_Link","_OdysseyDesignTokensContext","_Typography","_useHasUiShell","_jsxRuntime","e","__esModule","default","TemplateContainer","styled","shouldForwardProp","prop","hasUiShell","isFullWidth","odysseyDesignTokens","maxWidth","Spacing6","marginInline","padding","TemplateHeader","display","alignItems","justifyContent","TemplateHeaderPrimaryContent","marginBlockEnd","TemplateHeaderSecondaryContent","flexDirection","gap","Spacing2","minHeight","Spacing7","TemplateHeaderButtons","TemplateContent","includes","isDrawerOpen","drawerVariant","gridTemplateColumns","gridGap","Spacing4","marginBlock","animation","PageTemplate","children","description","documentationLink","documentationText","drawer","primaryCallToActionComponent","secondaryCallToActionComponent","tertiaryCallToActionComponent","title","useOdysseyDesignTokens","isOpen","variant","props","useHasUiShell","jsxs","jsx","Heading4","Subordinate","Link","href","icon","DocumentationIcon","MemoizedPageTemplate","exports","memo","displayName"],"sources":["../../../../src/labs/PageTemplate/PageTemplate.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport styled from \"@emotion/styled\";\nimport { memo, ReactElement, ReactNode } from \"react\";\n\nimport { DrawerProps } from \"../../Drawer.js\";\nimport { DocumentationIcon } from \"../../icons.generated/index.js\";\nimport { Link } from \"../../Link.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"../../OdysseyDesignTokensContext.js\";\nimport { Heading4, Subordinate } from \"../../Typography.js\";\nimport { useHasUiShell } from \"../../ui-shell/useHasUiShell.js\";\n\nexport type PageTemplateProps = {\n /**\n * The title of the layout to be situated in the layout header\n */\n title?: string;\n /**\n * A supplementary description to be situated in the layout header\n */\n description?: string;\n /**\n * The destination for a documentation `Link` to be situated in the layout header\n */\n documentationLink?: string;\n /**\n * The text for a documentation `Link` to be situated in the layout header\n */\n documentationText?: string;\n /**\n * An optional `Drawer` object. Can be of variant 'temporary' or 'persistent'.\n */\n drawer?: ReactElement<DrawerProps>;\n /**\n * An optional `Button` object to be situated in the layout header. Should almost always be of variant `primary`.\n */\n primaryCallToActionComponent?: ReactElement;\n /**\n * An optional `Button` object to be situated in the layout header, alongside the `callToActionPrimaryComponent`.\n */\n secondaryCallToActionComponent?: ReactElement;\n /**\n * An optional `Button` object to be situated in the layout header, alongside the other two `callToAction` components.\n */\n tertiaryCallToActionComponent?: ReactElement;\n /**\n * The content of the layout. May be a `string` or any other `ReactNode` or array of `ReactNode`s. Will often be `Grid` objects.\n */\n children?: ReactNode;\n /**\n * When set to `true`, the layout expands past its max width of 1440px and spans the entire available screen width.\n */\n isFullWidth?: boolean;\n};\n\ntype TemplateContentProps = {\n odysseyDesignTokens: DesignTokens;\n isDrawerOpen?: boolean;\n drawerVariant?: string;\n};\n\nconst TemplateContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" &&\n prop !== \"hasUiShell\" &&\n prop !== \"isFullWidth\",\n})<{\n hasUiShell: boolean;\n isFullWidth: boolean;\n odysseyDesignTokens: DesignTokens;\n}>(({ hasUiShell, isFullWidth, odysseyDesignTokens }) => ({\n maxWidth: isFullWidth\n ? \"100%\"\n : `calc(1440px + ${odysseyDesignTokens.Spacing6} + ${odysseyDesignTokens.Spacing6})`,\n marginInline:\n isFullWidth && !hasUiShell ? odysseyDesignTokens.Spacing6 : \"auto\",\n padding: hasUiShell ? 0 : odysseyDesignTokens.Spacing6,\n}));\n\nconst TemplateHeader = styled(\"div\")(() => ({\n display: \"flex\",\n alignItems: \"flex-end\",\n justifyContent: \"space-between\",\n}));\n\nconst TemplateHeaderPrimaryContent = styled(\"div\")(() => ({\n [\".MuiTypography-root:last-child\"]: {\n marginBlockEnd: \"0\",\n },\n}));\n\nconst TemplateHeaderSecondaryContent = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n alignItems: \"flex-end\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: odysseyDesignTokens.Spacing2,\n minHeight: odysseyDesignTokens.Spacing7,\n justifyContent: \"center\",\n}));\n\nconst TemplateHeaderButtons = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n display: \"flex\",\n gap: odysseyDesignTokens.Spacing2,\n}));\n\nconst TemplateContent = styled(\"div\", {\n shouldForwardProp: (prop) =>\n ![\"odysseyDesignTokens\", \"isDrawerOpen\", \"drawerVariant\"].includes(prop),\n})<TemplateContentProps>(\n ({ odysseyDesignTokens, isDrawerOpen, drawerVariant }) => ({\n \"@keyframes animate-drawer-open\": {\n \"0%\": {\n gridTemplateColumns: \"minmax(0, 1fr) 0\",\n },\n \"100%\": {\n gridTemplateColumns: \"minmax(0, 1fr) 360px\",\n },\n },\n \"@keyframes animate-drawer-close\": {\n \"0%\": {\n gridTemplateColumns: \"minmax(0, 1fr) 360px\",\n },\n \"100%\": {\n gridTemplateColumns: \"minmax(0, 1fr) 0\",\n },\n },\n display: \"grid\",\n gridGap:\n drawerVariant === \"persistent\" && !isDrawerOpen\n ? 0\n : odysseyDesignTokens.Spacing4,\n gap:\n drawerVariant === \"persistent\" && !isDrawerOpen\n ? 0\n : odysseyDesignTokens.Spacing4,\n marginBlock: odysseyDesignTokens.Spacing4,\n gridTemplateColumns:\n drawerVariant === \"persistent\"\n ? isDrawerOpen\n ? \"minmax(0, 1fr) 360px\"\n : \"minmax(0, 1fr) 0\"\n : \"minmax(0, 1fr)\",\n animation:\n drawerVariant === \"persistent\" && isDrawerOpen\n ? \"animate-drawer-open 225ms cubic-bezier(0, 0, 0.2, 1)\"\n : \"animate-drawer-close 225ms cubic-bezier(0, 0, 0.2, 1)\",\n }),\n);\n\nconst PageTemplate = ({\n children,\n description,\n documentationLink,\n documentationText,\n drawer,\n isFullWidth = false,\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n tertiaryCallToActionComponent,\n title,\n}: PageTemplateProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const { isOpen: isDrawerOpen, variant: drawerVariant } = drawer?.props ?? {};\n\n const hasUiShell = useHasUiShell();\n\n return (\n <TemplateContainer\n hasUiShell={hasUiShell}\n isFullWidth={isFullWidth}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n <TemplateHeader>\n <TemplateHeaderPrimaryContent>\n {title && <Heading4>{title}</Heading4>}\n {description && <Subordinate>{description}</Subordinate>}\n </TemplateHeaderPrimaryContent>\n\n <TemplateHeaderSecondaryContent\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {documentationLink && (\n <Link href={documentationLink} icon={<DocumentationIcon />}>\n {documentationText}\n </Link>\n )}\n {(primaryCallToActionComponent ||\n secondaryCallToActionComponent ||\n tertiaryCallToActionComponent) && (\n <TemplateHeaderButtons odysseyDesignTokens={odysseyDesignTokens}>\n {tertiaryCallToActionComponent}\n {secondaryCallToActionComponent}\n {primaryCallToActionComponent}\n </TemplateHeaderButtons>\n )}\n </TemplateHeaderSecondaryContent>\n </TemplateHeader>\n <TemplateContent\n odysseyDesignTokens={odysseyDesignTokens}\n isDrawerOpen={isDrawerOpen}\n drawerVariant={drawerVariant}\n >\n {children}\n {drawer}\n </TemplateContent>\n </TemplateContainer>\n );\n};\n\nconst MemoizedPageTemplate = memo(PageTemplate);\nMemoizedPageTemplate.displayName = \"PageTemplate\";\n\nexport { MemoizedPageTemplate as PageTemplate };\n"],"mappings":";;;;;;AAYA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,2BAAA,GAAAJ,OAAA;AAIA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAAgE,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAvBhE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAgEA,MAAMG,iBAAiB,GAAG,IAAAC,eAAM,EAAC,KAAK,EAAE;EACtCC,iBAAiB,EAAGC,IAAI,IACtBA,IAAI,KAAK,qBAAqB,IAC9BA,IAAI,KAAK,YAAY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BAAmB,EAAEA,mBAAoB;UAAA4B,QAAA,GAC7DO,6BAA6B,EAC7BD,8BAA8B,EAC9BD,4BAA4B;QAAA,CACR,CACxB;MAAA,CAC6B,CAAC;IAAA,CACnB,CAAC,EACjB,IAAA3C,WAAA,CAAAoD,IAAA,EAACxB,eAAe;MACdlB,mBAAmB,EAAEA,mBAAoB;MACzCoB,YAAY,EAAEA,YAAa;MAC3BC,aAAa,EAAEA,aAAc;MAAAO,QAAA,GAE5BA,QAAQ,EACRI,MAAM;IAAA,CACQ,CAAC;EAAA,CACD,CAAC;AAExB,CAAC;AAED,MAAMkB,oBAAoB,GAAAC,OAAA,CAAAxB,YAAA,GAAG,IAAAyB,WAAI,EAACzB,YAAY,CAAC;AAC/CuB,oBAAoB,CAACG,WAAW,GAAG,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"PageTemplate.cjs","names":["_styled","_interopRequireDefault","require","_react","_index","_DocumentationLink","_OdysseyDesignTokensContext","_Typography","_useHasUiShell","_jsxRuntime","e","__esModule","default","TemplateContainer","styled","shouldForwardProp","prop","hasUiShell","isFullWidth","odysseyDesignTokens","maxWidth","Spacing6","marginInline","padding","TemplateHeader","display","alignItems","justifyContent","gap","Spacing4","TemplateHeaderPrimaryContent","TypographyLineLengthMax","marginBlockEnd","TemplateHeaderSecondaryContent","flexDirection","minHeight","Spacing7","whiteSpace","TemplateHeaderButtons","Spacing2","TemplateContent","includes","isDrawerOpen","drawerVariant","gridTemplateColumns","gridGap","marginBlock","animation","PageTemplate","children","description","documentationLink","documentationText","drawer","primaryCallToActionComponent","secondaryCallToActionComponent","tertiaryCallToActionComponent","title","useOdysseyDesignTokens","isOpen","variant","props","useHasUiShell","jsxs","jsx","Heading4","Subordinate","DocumentationLink","href","icon","DocumentationIcon","target","MemoizedPageTemplate","exports","memo","displayName"],"sources":["../../../../src/labs/PageTemplate/PageTemplate.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport styled from \"@emotion/styled\";\nimport { memo, ReactElement, ReactNode } from \"react\";\n\nimport { DrawerProps } from \"../../Drawer.js\";\nimport { DocumentationIcon } from \"../../icons.generated/index.js\";\nimport { DocumentationLink } from \"./DocumentationLink.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"../../OdysseyDesignTokensContext.js\";\nimport { Heading4, Subordinate } from \"../../Typography.js\";\nimport { useHasUiShell } from \"../../ui-shell/useHasUiShell.js\";\n\nexport type PageTemplateProps = {\n /**\n * The title of the layout to be situated in the layout header\n */\n title?: string;\n /**\n * A supplementary description to be situated in the layout header\n */\n description?: string;\n /**\n * The destination for a documentation `Link` to be situated in the layout header\n */\n documentationLink?: string;\n /**\n * The text for a documentation `Link` to be situated in the layout header\n */\n documentationText?: string;\n /**\n * An optional `Drawer` object. Can be of variant 'temporary' or 'persistent'.\n */\n drawer?: ReactElement<DrawerProps>;\n /**\n * An optional `Button` object to be situated in the layout header. Should almost always be of variant `primary`.\n */\n primaryCallToActionComponent?: ReactElement;\n /**\n * An optional `Button` object to be situated in the layout header, alongside the `callToActionPrimaryComponent`.\n */\n secondaryCallToActionComponent?: ReactElement;\n /**\n * An optional `Button` object to be situated in the layout header, alongside the other two `callToAction` components.\n */\n tertiaryCallToActionComponent?: ReactElement;\n /**\n * The content of the layout. May be a `string` or any other `ReactNode` or array of `ReactNode`s. Will often be `Grid` objects.\n */\n children?: ReactNode;\n /**\n * When set to `true`, the layout expands past its max width of 1440px and spans the entire available screen width.\n */\n isFullWidth?: boolean;\n};\n\ntype TemplateContentProps = {\n odysseyDesignTokens: DesignTokens;\n isDrawerOpen?: boolean;\n drawerVariant?: string;\n};\n\nconst TemplateContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" &&\n prop !== \"hasUiShell\" &&\n prop !== \"isFullWidth\",\n})<{\n hasUiShell: boolean;\n isFullWidth: boolean;\n odysseyDesignTokens: DesignTokens;\n}>(({ hasUiShell, isFullWidth, odysseyDesignTokens }) => ({\n maxWidth: isFullWidth\n ? \"100%\"\n : `calc(1440px + ${odysseyDesignTokens.Spacing6} + ${odysseyDesignTokens.Spacing6})`,\n marginInline:\n isFullWidth && !hasUiShell ? odysseyDesignTokens.Spacing6 : \"auto\",\n padding: hasUiShell ? 0 : odysseyDesignTokens.Spacing6,\n}));\n\nconst TemplateHeader = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n display: \"flex\",\n alignItems: \"flex-start\",\n justifyContent: \"space-between\",\n gap: odysseyDesignTokens.Spacing4,\n}));\n\nconst TemplateHeaderPrimaryContent = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n maxWidth: odysseyDesignTokens.TypographyLineLengthMax,\n [\".MuiTypography-root:last-child\"]: {\n marginBlockEnd: \"0\",\n },\n}));\n\nconst TemplateHeaderSecondaryContent = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n alignItems: \"flex-end\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: odysseyDesignTokens.Spacing4,\n minHeight: odysseyDesignTokens.Spacing7,\n justifyContent: \"center\",\n whiteSpace: \"nowrap\",\n}));\n\nconst TemplateHeaderButtons = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n display: \"flex\",\n gap: odysseyDesignTokens.Spacing2,\n}));\n\nconst TemplateContent = styled(\"div\", {\n shouldForwardProp: (prop) =>\n ![\"odysseyDesignTokens\", \"isDrawerOpen\", \"drawerVariant\"].includes(prop),\n})<TemplateContentProps>(\n ({ odysseyDesignTokens, isDrawerOpen, drawerVariant }) => ({\n \"@keyframes animate-drawer-open\": {\n \"0%\": {\n gridTemplateColumns: \"minmax(0, 1fr) 0\",\n },\n \"100%\": {\n gridTemplateColumns: \"minmax(0, 1fr) 360px\",\n },\n },\n \"@keyframes animate-drawer-close\": {\n \"0%\": {\n gridTemplateColumns: \"minmax(0, 1fr) 360px\",\n },\n \"100%\": {\n gridTemplateColumns: \"minmax(0, 1fr) 0\",\n },\n },\n display: \"grid\",\n gridGap:\n drawerVariant === \"persistent\" && !isDrawerOpen\n ? 0\n : odysseyDesignTokens.Spacing4,\n gap:\n drawerVariant === \"persistent\" && !isDrawerOpen\n ? 0\n : odysseyDesignTokens.Spacing4,\n marginBlock: odysseyDesignTokens.Spacing4,\n gridTemplateColumns:\n drawerVariant === \"persistent\"\n ? isDrawerOpen\n ? \"minmax(0, 1fr) 360px\"\n : \"minmax(0, 1fr) 0\"\n : \"minmax(0, 1fr)\",\n animation:\n drawerVariant === \"persistent\" && isDrawerOpen\n ? \"animate-drawer-open 225ms cubic-bezier(0, 0, 0.2, 1)\"\n : \"animate-drawer-close 225ms cubic-bezier(0, 0, 0.2, 1)\",\n }),\n);\n\nconst PageTemplate = ({\n children,\n description,\n documentationLink,\n documentationText,\n drawer,\n isFullWidth = false,\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n tertiaryCallToActionComponent,\n title,\n}: PageTemplateProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const { isOpen: isDrawerOpen, variant: drawerVariant } = drawer?.props ?? {};\n\n const hasUiShell = useHasUiShell();\n\n return (\n <TemplateContainer\n hasUiShell={hasUiShell}\n isFullWidth={isFullWidth}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n <TemplateHeader odysseyDesignTokens={odysseyDesignTokens}>\n <TemplateHeaderPrimaryContent odysseyDesignTokens={odysseyDesignTokens}>\n {title && <Heading4>{title}</Heading4>}\n {description && <Subordinate>{description}</Subordinate>}\n </TemplateHeaderPrimaryContent>\n\n <TemplateHeaderSecondaryContent\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {documentationLink && (\n <DocumentationLink\n href={documentationLink}\n icon={<DocumentationIcon />}\n target=\"_blank\"\n >\n {documentationText}\n </DocumentationLink>\n )}\n {(primaryCallToActionComponent ||\n secondaryCallToActionComponent ||\n tertiaryCallToActionComponent) && (\n <TemplateHeaderButtons odysseyDesignTokens={odysseyDesignTokens}>\n {tertiaryCallToActionComponent}\n {secondaryCallToActionComponent}\n {primaryCallToActionComponent}\n </TemplateHeaderButtons>\n )}\n </TemplateHeaderSecondaryContent>\n </TemplateHeader>\n <TemplateContent\n odysseyDesignTokens={odysseyDesignTokens}\n isDrawerOpen={isDrawerOpen}\n drawerVariant={drawerVariant}\n >\n {children}\n {drawer}\n </TemplateContent>\n </TemplateContainer>\n );\n};\n\nconst MemoizedPageTemplate = memo(PageTemplate);\nMemoizedPageTemplate.displayName = \"PageTemplate\";\n\nexport { MemoizedPageTemplate as PageTemplate };\n"],"mappings":";;;;;;AAYA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,2BAAA,GAAAJ,OAAA;AAIA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAAgE,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAA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C,EACrCP,WAAW,IAAI,IAAAzC,WAAA,CAAAuD,GAAA,EAACzD,WAAA,CAAA2D,WAAW;UAAAjB,QAAA,EAAEC;QAAW,CAAc,CAAC;MAAA,CAC5B,CAAC,EAE/B,IAAAzC,WAAA,CAAAsD,IAAA,EAAC9B,8BAA8B;QAC7Bd,mBAAmB,EAAEA,mBAAoB;QAAA8B,QAAA,GAExCE,iBAAiB,IAChB,IAAA1C,WAAA,CAAAuD,GAAA,EAAC3D,kBAAA,CAAA8D,iBAAiB;UAChBC,IAAI,EAAEjB,iBAAkB;UACxBkB,IAAI,EAAE,IAAA5D,WAAA,CAAAuD,GAAA,EAAC5D,MAAA,CAAAkE,iBAAiB,IAAE,CAAE;UAC5BC,MAAM,EAAC,QAAQ;UAAAtB,QAAA,EAEdG;QAAiB,CACD,CACpB,EACA,CAACE,4BAA4B,IAC5BC,8BAA8B,IAC9BC,6BAA6B,KAC7B,IAAA/C,WAAA,CAAAsD,IAAA,EAACzB,qBAAqB;UAACnB,mBAAmB,EAAEA,mBAAoB;UAAA8B,QAAA,GAC7DO,6BAA6B,EAC7BD,8BAA8B,EAC9BD,4BAA4B;QAAA,CACR,CACxB;MAAA,CAC6B,CAAC;IAAA,CACnB,CAAC,EACjB,IAAA7C,WAAA,CAAAsD,IAAA,EAACvB,eAAe;MACdrB,mBAAmB,EAAEA,mBAAoB;MACzCuB,YAAY,EAAEA,YAAa;MAC3BC,aAAa,EAAEA,aAAc;MAAAM,QAAA,GAE5BA,QAAQ,EACRI,MAAM;IAAA,CACQ,CAAC;EAAA,CACD,CAAC;AAExB,CAAC;AAED,MAAMmB,oBAAoB,GAAAC,OAAA,CAAAzB,YAAA,GAAG,IAAA0B,WAAI,EAAC1B,YAAY,CAAC;AAC/CwB,oBAAoB,CAACG,WAAW,GAAG,cAAc","ignoreList":[]}
@@ -120,6 +120,7 @@ const translation = exports.translation = {
120
120
  "pagination.rowsperpage": "Rows per page",
121
121
  "pagination.rowswithtotal": "{{firstRow}}-{{lastRow}} of {{totalRows}} rows",
122
122
  "pagination.rowswithouttotal": "{{firstRow}}-{{lastRow}} rows",
123
+ "pagination.totalrows": "{{totalRows}} rows",
123
124
  "table.actions.selectall": "Select all",
124
125
  "table.actions.selectnone": "Select none",
125
126
  "table.actions.selectsome": "{{selectedRowCount}} selected",
@@ -1 +1 @@
1
- {"version":3,"file":"odyssey-react-mui.cjs","names":["translation","exports"],"sources":["../../../../src/properties/ts/odyssey-react-mui.ts"],"sourcesContent":["export const translation = {\"navigation.label\":\"Main navigation\",\"navigation.footer\":\"Navigation secondary links\",\"navigation.drag.handle\":\"Drag handle\",\"sortable.list.drag.start\":\"Picked up draggable item {{activeId}}\",\"sortable.list.drag.moved.over\":\"Draggable item {{activeId}} was moved over droppable area {{overId}}\",\"sortable.list.drag.nolonger.over\":\"Draggable item {{activeId}} is no longer over a droppable area\",\"sortable.list.drag.end.dropped.over\":\"Draggable item {{activeId}} was dropped over droppable area {{overId}}\",\"sortable.list.drag.end.dropped\":\"Draggable item {{activeId}} was dropped\",\"sortable.list.drag.cancel\":\"Dragging was cancelled. Draggable item {{activeId}} was dropped\",\"breadcrumbs.home.text\":\"Home\",\"breadcrumbs.label.text\":\"Breadcrumbs\",\"close.text\":\"Close\",\"clear.text\":\"Clear\",\"open.text\":\"Open\",\"autocomplete.nooptions\":\"No options\",\"picker.calendar.navigation.nextmonth\":\"Next month\",\"picker.calendar.navigation.previousmonth\":\"Previous month\",\"picker.date.toolbar.title\":\"Selected date\",\"picker.daterange.toolbar.title\":\"Select date range\",\"picker.datetime.toolbar.title\":\"Select date & time\",\"picker.error.invalid\":\"Correct the date format or select the date from the calendar.\",\"picker.error.mindate\":\"Date entered is earlier than allowed dates. Select a date from the range available in the calendar.\",\"picker.error.maxdate\":\"Date entered is later than the allowed dates. Select a date from the range available in the calendar.\",\"picker.field.placeholder.day\":\"DD\",\"picker.field.placeholder.hours\":\"hh\",\"picker.field.placeholder.meridiem\":\"aa\",\"picker.field.placeholder.minutes\":\"mm\",\"picker.field.placeholder.month\":\"MM\",\"picker.field.placeholder.seconds\":\"ss\",\"picker.field.placeholder.year\":\"YYYY\",\"picker.labels.action.apply\":\"Apply\",\"picker.labels.action.cancel\":\"Cancel\",\"picker.labels.action.today\":\"Today\",\"picker.labels.clock.empty\":\"No time selected\",\"picker.labels.clock.hours\":\"hours\",\"picker.labels.clock.minutes\":\"minutes\",\"picker.labels.clock.seconds\":\"seconds\",\"picker.labels.clock.selected\":\"Selected time is\",\"picker.labels.date.choose\":\"Choose date\",\"picker.labels.date.selected\":\"Selected date is\",\"picker.labels.empty\":\"Empty\",\"picker.labels.field.clear\":\"Clear value\",\"picker.labels.range.end\":\"End\",\"picker.labels.range.enddate\":\"End date\",\"picker.labels.range.endtime\":\"End time\",\"picker.labels.range.start\":\"Start\",\"picker.labels.range.startdate\":\"Start date\",\"picker.labels.range.starttime\":\"Start time\",\"picker.labels.select\":\"Select\",\"picker.labels.table.date\":\"pick date\",\"picker.labels.table.time\":\"pick time\",\"picker.labels.time.choose\":\"Choose time\",\"picker.labels.time.selected\":\"selected time is\",\"picker.time.toolbar.title\":\"Select time\",\"picker.view.name.day\":\"Day\",\"picker.view.name.hours\":\"Hours\",\"picker.view.name.meridiem\":\"Meridiem\",\"picker.view.name.minutes\":\"Minutes\",\"picker.view.name.month\":\"Month\",\"picker.view.name.seconds\":\"Seconds\",\"picker.view.name.weekday\":\"Week day\",\"picker.view.name.year\":\"Year\",\"picker.view.navigation.open.nextview\":\"Open next view\",\"picker.view.navigation.open.previousview\":\"Open previous view\",\"picker.view.navigation.switch.calendarview\":\"year view is open, switch to calendar view\",\"picker.view.navigation.switch.yearview\":\"calendar view is open, switch to year view\",\"fielderror.screenreader.text\":\"Error\",\"fieldlabel.optional.text\":\"Optional\",\"fieldlabel.required.text\":\"Required\",\"filters.clear.label\":\"Clear filters\",\"filters.submit.label\":\"Submit\",\"filters.filter.any\":\"Any\",\"filters.filter.clear\":\"Clear filter\",\"filters.filters.arialabel\":\"Filters\",\"filters.menuitem.any\":\"Any {{label}}\",\"filters.menuitem.selected\":\"{{selected}} selected\",\"filters.search.label\":\"Search\",\"fileupload.button.text\":\"Add files\",\"fileupload.prompt.text\":\"Drag and drop files here or click to add files\",\"fileupload.removefile.text\":\"Remove file\",\"passwordfield.icon.label.hide\":\"Hide password\",\"passwordfield.icon.label.show\":\"Show password\",\"severity.error\":\"error\",\"severity.info\":\"info\",\"severity.success\":\"success\",\"severity.warning\":\"warning\",\"sidenav.toggle.expand\":\"Open navigation\",\"sidenav.toggle.collapse\":\"Close navigation\",\"switch.active\":\"Active\",\"switch.inactive\":\"Inactive\",\"table.columnvisibility.arialabel\":\"Show/hide columns\",\"table.density.arialabel\":\"Table density\",\"table.draghandle.arialabel\":\"Drag row to reorder. Or, press space or enter to start and stop reordering and esc to cancel.\",\"table.draghandle.tooltip\":\"Drag row or press space/enter key to start and stop reordering\",\"table.actions\":\"Actions\",\"table.error\":\"Error loading data.\",\"table.fetchedrows.text\":\"Fetched {{totalRows}} row\",\"table.fetchedrows.text_plural\":\"Fetched {{totalRows}} total rows\",\"table.moreactions.arialabel\":\"More actions\",\"table.noresults.heading\":\"There are no results.\",\"table.noresults.text\":\"Try a different query.\",\"table.reorder.backward\":\"Send backward\",\"table.reorder.forward\":\"Bring forward\",\"table.reorder.toback\":\"Send to back\",\"table.reorder.tofront\":\"Bring to front\",\"table.rows.text\":\"{{totalRows}} row\",\"table.rows.text_plural\":\"{{totalRows}} rows\",\"pagination.label\":\"Pagination\",\"pagination.loadmore\":\"Show more\",\"pagination.next\":\"Next page\",\"pagination.previous\":\"Previous page\",\"pagination.page\":\"Page\",\"pagination.rowsperpage\":\"Rows per page\",\"pagination.rowswithtotal\":\"{{firstRow}}-{{lastRow}} of {{totalRows}} rows\",\"pagination.rowswithouttotal\":\"{{firstRow}}-{{lastRow}} rows\",\"table.actions.selectall\":\"Select all\",\"table.actions.selectnone\":\"Select none\",\"table.actions.selectsome\":\"{{selectedRowCount}} selected\",\"table.rowexpansion.expand\":\"Expand\",\"table.rowexpansion.expandall\":\"Expand all\",\"table.rowexpansion.collapse\":\"Collapse\",\"table.rowexpansion.collapseall\":\"Collapse all\",\"dataview.layout.table\":\"Table\",\"dataview.layout.grid\":\"Grid\",\"dataview.layout.list\":\"List\",\"topnav.helpicon\":\"help page\",\"topnav.settingsicon\":\"settings page\"};"],"mappings":";;;;;;AAAO,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG;EAAC,kBAAkB,EAAC,iBAAiB;EAAC,mBAAmB,EAAC,4BAA4B;EAAC,wBAAwB,EAAC,aAAa;EAAC,0BAA0B,EAAC,uCAAuC;EAAC,+BAA+B,EAAC,sEAAsE;EAAC,kCAAkC,EAAC,gEAAgE;EAAC,qCAAqC,EAAC,wEAAwE;EAAC,gCAAgC,EAAC,yCAAyC;EAAC,2BAA2B,EAAC,iEAAiE;EAAC,uBAAuB,EAAC,MAAM;EAAC,wBAAwB,EAAC,aAAa;EAAC,YAAY,EAAC,OAAO;EAAC,YAAY,EAAC,OAAO;EAAC,WAAW,EAAC,MAAM;EAAC,wBAAwB,EAAC,YAAY;EAAC,sCAAsC,EAAC,YAAY;EAAC,0CAA0C,EAAC,gBAAgB;EAAC,2BAA2B,EAAC,eAAe;EAAC,gCAAgC,EAAC,mBAAmB;EAAC,+BAA+B,EAAC,oBAAoB;EAAC,sBAAsB,EAAC,+DAA+D;EAAC,sBAAsB,EAAC,qGAAqG;EAAC,sBAAsB,EAAC,uGAAuG;EAAC,8BAA8B,EAAC,IAAI;EAAC,gCAAgC,EAAC,IAAI;EAAC,mCAAmC,EAAC,IAAI;EAAC,kCAAkC,EAAC,IAAI;EAAC,gCAAgC,EAAC,IAAI;EAAC,kCAAkC,EAAC,IAAI;EAAC,+BAA+B,EAAC,MAAM;EAAC,4BAA4B,EAAC,OAAO;EAAC,6BAA6B,EAAC,QAAQ;EAAC,4BAA4B,EAAC,OAAO;EAAC,2BAA2B,EAAC,kBAAkB;EAAC,2B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BAAiB,EAAC,WAAW;EAAC,qBAAqB,EAAC;AAAe,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"odyssey-react-mui.cjs","names":["translation","exports"],"sources":["../../../../src/properties/ts/odyssey-react-mui.ts"],"sourcesContent":["export const translation = {\"navigation.label\":\"Main navigation\",\"navigation.footer\":\"Navigation secondary links\",\"navigation.drag.handle\":\"Drag handle\",\"sortable.list.drag.start\":\"Picked up draggable item {{activeId}}\",\"sortable.list.drag.moved.over\":\"Draggable item {{activeId}} was moved over droppable area {{overId}}\",\"sortable.list.drag.nolonger.over\":\"Draggable item {{activeId}} is no longer over a droppable area\",\"sortable.list.drag.end.dropped.over\":\"Draggable item {{activeId}} was dropped over droppable area {{overId}}\",\"sortable.list.drag.end.dropped\":\"Draggable item {{activeId}} was dropped\",\"sortable.list.drag.cancel\":\"Dragging was cancelled. Draggable item {{activeId}} was dropped\",\"breadcrumbs.home.text\":\"Home\",\"breadcrumbs.label.text\":\"Breadcrumbs\",\"close.text\":\"Close\",\"clear.text\":\"Clear\",\"open.text\":\"Open\",\"autocomplete.nooptions\":\"No options\",\"picker.calendar.navigation.nextmonth\":\"Next month\",\"picker.calendar.navigation.previousmonth\":\"Previous month\",\"picker.date.toolbar.title\":\"Selected date\",\"picker.daterange.toolbar.title\":\"Select date range\",\"picker.datetime.toolbar.title\":\"Select date & time\",\"picker.error.invalid\":\"Correct the date format or select the date from the calendar.\",\"picker.error.mindate\":\"Date entered is earlier than allowed dates. Select a date from the range available in the calendar.\",\"picker.error.maxdate\":\"Date entered is later than the allowed dates. Select a date from the range available in the calendar.\",\"picker.field.placeholder.day\":\"DD\",\"picker.field.placeholder.hours\":\"hh\",\"picker.field.placeholder.meridiem\":\"aa\",\"picker.field.placeholder.minutes\":\"mm\",\"picker.field.placeholder.month\":\"MM\",\"picker.field.placeholder.seconds\":\"ss\",\"picker.field.placeholder.year\":\"YYYY\",\"picker.labels.action.apply\":\"Apply\",\"picker.labels.action.cancel\":\"Cancel\",\"picker.labels.action.today\":\"Today\",\"picker.labels.clock.empty\":\"No time selected\",\"picker.labels.clock.hours\":\"hours\",\"picker.labels.clock.minutes\":\"minutes\",\"picker.labels.clock.seconds\":\"seconds\",\"picker.labels.clock.selected\":\"Selected time is\",\"picker.labels.date.choose\":\"Choose date\",\"picker.labels.date.selected\":\"Selected date is\",\"picker.labels.empty\":\"Empty\",\"picker.labels.field.clear\":\"Clear value\",\"picker.labels.range.end\":\"End\",\"picker.labels.range.enddate\":\"End date\",\"picker.labels.range.endtime\":\"End time\",\"picker.labels.range.start\":\"Start\",\"picker.labels.range.startdate\":\"Start date\",\"picker.labels.range.starttime\":\"Start time\",\"picker.labels.select\":\"Select\",\"picker.labels.table.date\":\"pick date\",\"picker.labels.table.time\":\"pick time\",\"picker.labels.time.choose\":\"Choose time\",\"picker.labels.time.selected\":\"selected time is\",\"picker.time.toolbar.title\":\"Select time\",\"picker.view.name.day\":\"Day\",\"picker.view.name.hours\":\"Hours\",\"picker.view.name.meridiem\":\"Meridiem\",\"picker.view.name.minutes\":\"Minutes\",\"picker.view.name.month\":\"Month\",\"picker.view.name.seconds\":\"Seconds\",\"picker.view.name.weekday\":\"Week day\",\"picker.view.name.year\":\"Year\",\"picker.view.navigation.open.nextview\":\"Open next view\",\"picker.view.navigation.open.previousview\":\"Open previous view\",\"picker.view.navigation.switch.calendarview\":\"year view is open, switch to calendar view\",\"picker.view.navigation.switch.yearview\":\"calendar view is open, switch to year view\",\"fielderror.screenreader.text\":\"Error\",\"fieldlabel.optional.text\":\"Optional\",\"fieldlabel.required.text\":\"Required\",\"filters.clear.label\":\"Clear filters\",\"filters.submit.label\":\"Submit\",\"filters.filter.any\":\"Any\",\"filters.filter.clear\":\"Clear filter\",\"filters.filters.arialabel\":\"Filters\",\"filters.menuitem.any\":\"Any {{label}}\",\"filters.menuitem.selected\":\"{{selected}} selected\",\"filters.search.label\":\"Search\",\"fileupload.button.text\":\"Add files\",\"fileupload.prompt.text\":\"Drag and drop files here or click to add files\",\"fileupload.removefile.text\":\"Remove file\",\"passwordfield.icon.label.hide\":\"Hide password\",\"passwordfield.icon.label.show\":\"Show password\",\"severity.error\":\"error\",\"severity.info\":\"info\",\"severity.success\":\"success\",\"severity.warning\":\"warning\",\"sidenav.toggle.expand\":\"Open navigation\",\"sidenav.toggle.collapse\":\"Close navigation\",\"switch.active\":\"Active\",\"switch.inactive\":\"Inactive\",\"table.columnvisibility.arialabel\":\"Show/hide columns\",\"table.density.arialabel\":\"Table density\",\"table.draghandle.arialabel\":\"Drag row to reorder. Or, press space or enter to start and stop reordering and esc to cancel.\",\"table.draghandle.tooltip\":\"Drag row or press space/enter key to start and stop reordering\",\"table.actions\":\"Actions\",\"table.error\":\"Error loading data.\",\"table.fetchedrows.text\":\"Fetched {{totalRows}} row\",\"table.fetchedrows.text_plural\":\"Fetched {{totalRows}} total rows\",\"table.moreactions.arialabel\":\"More actions\",\"table.noresults.heading\":\"There are no results.\",\"table.noresults.text\":\"Try a different query.\",\"table.reorder.backward\":\"Send backward\",\"table.reorder.forward\":\"Bring forward\",\"table.reorder.toback\":\"Send to back\",\"table.reorder.tofront\":\"Bring to front\",\"table.rows.text\":\"{{totalRows}} row\",\"table.rows.text_plural\":\"{{totalRows}} rows\",\"pagination.label\":\"Pagination\",\"pagination.loadmore\":\"Show more\",\"pagination.next\":\"Next page\",\"pagination.previous\":\"Previous page\",\"pagination.page\":\"Page\",\"pagination.rowsperpage\":\"Rows per page\",\"pagination.rowswithtotal\":\"{{firstRow}}-{{lastRow}} of {{totalRows}} rows\",\"pagination.rowswithouttotal\":\"{{firstRow}}-{{lastRow}} rows\",\"pagination.totalrows\":\"{{totalRows}} rows\",\"table.actions.selectall\":\"Select all\",\"table.actions.selectnone\":\"Select none\",\"table.actions.selectsome\":\"{{selectedRowCount}} selected\",\"table.rowexpansion.expand\":\"Expand\",\"table.rowexpansion.expandall\":\"Expand all\",\"table.rowexpansion.collapse\":\"Collapse\",\"table.rowexpansion.collapseall\":\"Collapse all\",\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ation = exports.translation = {
120
120
  "pagination.rowsperpage": "Počet řádků na stránku",
121
121
  "pagination.rowswithtotal": "Řádky {{firstRow}}–{{lastRow}} z {{totalRows}}",
122
122
  "pagination.rowswithouttotal": "Řádky {{firstRow}}–{{lastRow}}",
123
+ "pagination.totalrows": "Počet řádků: {{totalRows}}",
123
124
  "table.actions.selectall": "Vybrat vše",
124
125
  "table.actions.selectnone": "Zrušit výběr",
125
126
  "table.actions.selectsome": "Vybráno: {{selectedRowCount}}",
@@ -1 +1 @@
1
- {"version":3,"file":"odyssey-react-mui_cs.cjs","names":["translation","exports"],"sources":["../../../../src/properties/ts/odyssey-react-mui_cs.ts"],"sourcesContent":["export const translation = {\"navigation.label\":\"Hlavní navigace\",\"navigation.footer\":\"Sekundární odkazy navigace\",\"navigation.drag.handle\":\"Úchop pro přetažení\",\"sortable.list.drag.start\":\"Byla vybrána položka {{activeId}}, kterou lze přetáhnout\",\"sortable.list.drag.moved.over\":\"Položka {{activeId}}, kterou lze přetáhnout, byla přesunuta nad oblast umožňující přesun {{overId}}\",\"sortable.list.drag.nolonger.over\":\"Položka {{activeId}}, kterou lze přetáhnout, již není nad oblastí umožňující přesun\",\"sortable.list.drag.end.dropped.over\":\"Položka {{activeId}}, kterou lze přetáhnout, byla uvolněna nad oblastí umožňující přesun {{overId}}\",\"sortable.list.drag.end.dropped\":\"Položka {{activeId}}, kterou lze přetáhnout, byla uvolněna\",\"sortable.list.drag.cancel\":\"Přetahování bylo zrušeno. Položka {{activeId}}, kterou lze přetáhnout, byla uvolněna\",\"breadcrumbs.home.text\":\"Domovská stránka\",\"breadcrumbs.label.text\":\"Drobečková navigace\",\"close.text\":\"Zavřít\",\"clear.text\":\"Vymazat\",\"open.text\":\"Otevřít\",\"autocomplete.nooptions\":\"Žádné možnosti\",\"picker.calendar.navigation.nextmonth\":\"Další měsíc\",\"picker.calendar.navigation.previousmonth\":\"Předchozí měsíc\",\"picker.date.toolbar.title\":\"Vybrané datum\",\"picker.daterange.toolbar.title\":\"Vybrat rozmezí dat\",\"picker.datetime.toolbar.title\":\"Vybrat datum a čas\",\"picker.error.invalid\":\"Opravte formát data nebo vyberte datum z kalendáře.\",\"picker.error.mindate\":\"Zadané datum je dřívější, než je povoleno. Vyberte datum v rozmezí dostupném v kalendáři.\",\"picker.error.maxdate\":\"Zadané datum je pozdější, než je povoleno. Vyberte datum v rozmezí dostupném v kalendáři.\",\"picker.field.placeholder.day\":\"DD\",\"picker.field.placeholder.hours\":\"hh\",\"picker.field.placeholder.meridiem\":\"dop./odp.\",\"picker.field.placeholder.minutes\":\"mm\",\"picker.field.placeholder.month\":\"MM\",\"picker.field.placeholder.seconds\":\"ss\",\"picker.field.placeholder.year\":\"RRRR\",\"picker.labels.action.apply\":\"Použít\",\"picker.labels.action.cancel\":\"Zrušit\",\"picker.labels.action.today\":\"Dnes\",\"picker.labels.clock.empty\":\"Není vybraný čas\",\"picker.labels.clock.hours\":\"hod\",\"picker.labels.clock.minutes\":\"min\",\"picker.labels.clock.seconds\":\"s\",\"picker.labels.clock.selected\":\"Vybraný čas je\",\"picker.labels.date.choose\":\"Zvolit datum\",\"picker.labels.date.selected\":\"Vybrané datum je\",\"picker.labels.empty\":\"Prázdné\",\"picker.labels.field.clear\":\"Vymazat hodnotu\",\"picker.labels.range.end\":\"Konec\",\"picker.labels.range.enddate\":\"Koncové datum\",\"picker.labels.range.endtime\":\"Koncový čas\",\"picker.labels.range.start\":\"Začátek\",\"picker.labels.range.startdate\":\"Počáteční datum\",\"picker.labels.range.starttime\":\"Počáteční čas\",\"picker.labels.select\":\"Vybrat\",\"picker.labels.table.date\":\"vybrat datum\",\"picker.labels.table.time\":\"vybrat čas\",\"picker.labels.time.choose\":\"Zvolit čas\",\"picker.labels.time.selected\":\"vybraný čas je\",\"picker.time.toolbar.title\":\"Vybrat čas\",\"picker.view.name.day\":\"Den\",\"picker.view.name.hours\":\"Hodiny\",\"picker.view.name.meridiem\":\"Dopoledne/odpoledne\",\"picker.view.name.minutes\":\"Minuty\",\"picker.view.name.month\":\"Měsíc\",\"picker.view.name.seconds\":\"Sekundy\",\"picker.view.name.weekday\":\"Den v týdnu\",\"picker.view.name.year\":\"Rok\",\"picker.view.navigation.open.nextview\":\"Otevřít další zobrazení\",\"picker.view.navigation.open.previousview\":\"Otevřít předchozí zobrazení\",\"picker.view.navigation.switch.calendarview\":\"je otevřeno zobrazení roku, můžete přepnout do zobrazení kalendáře\",\"picker.view.navigation.switch.yearview\":\"je otevřeno zobrazení kalendáře, můžete přepnout do zobrazení roku\",\"fielderror.screenreader.text\":\"Chyba\",\"fieldlabel.optional.text\":\"Volitelné\",\"fieldlabel.required.text\":\"Povinné\",\"filters.clear.label\":\"Vymazat filtry\",\"filters.submit.label\":\"Odeslat\",\"filters.filter.any\":\"Libovolné\",\"filters.filter.clear\":\"Vymazat filtr\",\"filters.filters.arialabel\":\"Filtry\",\"filters.menuitem.any\":\"Libovolné: {{label}}\",\"filters.menuitem.selected\":\"Vybráno: {{selected}}\",\"filters.search.label\":\"Hledat\",\"fileupload.button.text\":\"Přidat soubory\",\"fileupload.prompt.text\":\"Přetáhněte soubory sem nebo klikněte a přidejte je\",\"fileupload.removefile.text\":\"Odebrat soubor\",\"passwordfield.icon.label.hide\":\"Skrýt heslo\",\"passwordfield.icon.label.show\":\"Zobrazit heslo\",\"severity.error\":\"chyba\",\"severity.info\":\"informace\",\"severity.success\":\"úspěch\",\"severity.warning\":\"upozornění\",\"sidenav.toggle.expand\":\"Otevřít navigaci\",\"sidenav.toggle.collapse\":\"Zavřít navigaci\",\"switch.active\":\"Aktivní\",\"switch.inactive\":\"Neaktivní\",\"table.columnvisibility.arialabel\":\"Zobrazit nebo skrýt sloupce\",\"table.density.arialabel\":\"Hustota tabulky\",\"table.draghandle.arialabel\":\"Pořadí řádků můžete změnit přetažením. Změny pořadí můžete také zahájit a dokončit stisknutím mezerníku nebo klávesy Enter a zrušit stisknutím klávesy Esc.\",\"table.draghandle.tooltip\":\"Pořadí řádků můžete změnit přetažením, případně můžete změny pořadí zahájit a dokončit stisknutím mezerníku nebo klávesy Enter.\",\"table.actions\":\"Akce\",\"table.error\":\"Chyba při načítání dat\",\"table.fetchedrows.text\":\"Byl načten {{totalRows}} řádek\",\"table.fetchedrows.text_plural\":\"Celkem načteno řádků: {{totalRows}}\",\"table.moreactions.arialabel\":\"Další akce\",\"table.noresults.heading\":\"Nejsou k dispozici žádné výsledky.\",\"table.noresults.text\":\"Zkuste zadat jiný dotaz.\",\"table.reorder.backward\":\"Odeslat dozadu\",\"table.reorder.forward\":\"Přenést dopředu\",\"table.reorder.toback\":\"Odeslat na pozadí\",\"table.reorder.tofront\":\"Přenést do popředí\",\"table.rows.text\":\"{{totalRows}} řádek\",\"table.rows.text_plural\":\"Počet řádků: {{totalRows}}\",\"pagination.label\":\"Stránkování\",\"pagination.loadmore\":\"Zobrazit více\",\"pagination.next\":\"Další stránka\",\"pagination.previous\":\"Předchozí stránka\",\"pagination.page\":\"Stránka\",\"pagination.rowsperpage\":\"Počet řádků na stránku\",\"pagination.rowswithtotal\":\"Řádky {{firstRow}}–{{lastRow}} z {{totalRows}}\",\"pagination.rowswithouttotal\":\"Řádky {{firstRow}}–{{lastRow}}\",\"table.actions.selectall\":\"Vybrat vše\",\"table.actions.selectnone\":\"Zrušit výběr\",\"table.actions.selectsome\":\"Vybráno: {{selectedRowCount}}\",\"table.rowexpansion.expand\":\"Rozbalit\",\"table.rowexpansion.expandall\":\"Rozbalit vše\",\"table.rowexpansion.collapse\":\"Sbalit\",\"table.rowexpansion.collapseall\":\"Sbalit vše\",\"dataview.layout.table\":\"Tabulka\",\"dataview.layout.grid\":\"Mřížka\",\"dataview.layout.list\":\"Seznam\",\"topnav.helpicon\":\"stránka nápovědy\",\"topnav.settingsicon\":\"stránka nastavení\"};"],"mappings":";;;;;;AAAO,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG;EAAC,kBAAkB,EAAC,iBAAiB;EAAC,mBAAmB,EAAC,4BAA4B;E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BAAiB;EAAC,4BAA4B,EAAC,6JAA6J;EAAC,0BAA0B,EAAC,iIAAiI;EAAC,eAAe,EAAC,MAAM;EAAC,aAAa,EAAC,wBAAwB;EAAC,wBAAwB,EAAC,gCAAgC;EAAC,+BAA+B,EAAC,qCAAqC;EAAC,6BAA6B,EAAC,YAAY;EAAC,yBAAyB,EAAC,oCAAoC;EAAC,sBAAsB,EAAC,0BAA0B;EAAC,wBAAwB,EAAC,gBAAgB;EAAC,uBAAuB,EAAC,iBAAiB;EAAC,sBAAsB,EAAC,mBAAmB;EAAC,uBAAuB,EAAC,oBAAoB;EAAC,iBAAiB,EAAC,qBAAqB;EAAC,wBAAwB,EAAC,4BAA4B;EAAC,kBAAkB,EAAC,aAAa;EAAC,qBAAqB,EAAC,eAAe;EAAC,iBAAiB,EAAC,eAAe;EAAC,qBAAqB,EAAC,mBAAmB;EAAC,iBAAiB,EAAC,SAAS;EAAC,wBAAwB,EAAC,wBAAwB;EAAC,0BAA0B,EAAC,gDAAgD;EAAC,6BAA6B,EAAC,gCAAgC;EAAC,yBAAyB,EAAC,YAAY;EAAC,0BAA0B,EAAC,cAAc;EAAC,0BAA0B,EAAC,+BAA+B;EAAC,2BAA2B,EAAC,UAAU;EAAC,8BAA8B,EAAC,cAAc;EAAC,6BAA6B,EAAC,QAAQ;EAAC,gCAAgC,EAAC,YAAY;EAAC,uBAAuB,EAAC,SAAS;EAAC,sBAAsB,EAAC,QAAQ;EAAC,sBAAsB,EAAC,QAAQ;EAAC,iBAAiB,EAAC,kBAAkB;EAAC,qBAAqB,EAAC;AAAmB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"odyssey-react-mui_cs.cjs","names":["translation","exports"],"sources":["../../../../src/properties/ts/odyssey-react-mui_cs.ts"],"sourcesContent":["export const translation = {\"navigation.label\":\"Hlavní navigace\",\"navigation.footer\":\"Sekundární odkazy navigace\",\"navigation.drag.handle\":\"Úchop pro přetažení\",\"sortable.list.drag.start\":\"Byla vybrána položka {{activeId}}, kterou lze přetáhnout\",\"sortable.list.drag.moved.over\":\"Položka {{activeId}}, kterou lze přetáhnout, byla přesunuta nad oblast umožňující přesun {{overId}}\",\"sortable.list.drag.nolonger.over\":\"Položka {{activeId}}, kterou lze přetáhnout, již není nad oblastí umožňující přesun\",\"sortable.list.drag.end.dropped.over\":\"Položka {{activeId}}, kterou lze přetáhnout, byla uvolněna nad oblastí umožňující přesun {{overId}}\",\"sortable.list.drag.end.dropped\":\"Položka {{activeId}}, kterou lze přetáhnout, byla uvolněna\",\"sortable.list.drag.cancel\":\"Přetahování bylo zrušeno. Položka {{activeId}}, kterou lze přetáhnout, byla uvolněna\",\"breadcrumbs.home.text\":\"Domovská stránka\",\"breadcrumbs.label.text\":\"Drobečková navigace\",\"close.text\":\"Zavřít\",\"clear.text\":\"Vymazat\",\"open.text\":\"Otevřít\",\"autocomplete.nooptions\":\"Žádné možnosti\",\"picker.calendar.navigation.nextmonth\":\"Další měsíc\",\"picker.calendar.navigation.previousmonth\":\"Předchozí měsíc\",\"picker.date.toolbar.title\":\"Vybrané datum\",\"picker.daterange.toolbar.title\":\"Vybrat rozmezí dat\",\"picker.datetime.toolbar.title\":\"Vybrat datum a čas\",\"picker.error.invalid\":\"Opravte formát data nebo vyberte datum z kalendáře.\",\"picker.error.mindate\":\"Zadané datum je dřívější, než je povoleno. Vyberte datum v rozmezí dostupném v kalendáři.\",\"picker.error.maxdate\":\"Zadané datum je pozdější, než je povoleno. Vyberte datum v rozmezí dostupném v kalendáři.\",\"picker.field.placeholder.day\":\"DD\",\"picker.field.placeholder.hours\":\"hh\",\"picker.field.placeholder.meridiem\":\"dop./odp.\",\"picker.field.placeholder.minutes\":\"mm\",\"picker.field.placeholder.month\":\"MM\",\"picker.field.placeholder.seconds\":\"ss\",\"picker.field.placeholder.year\":\"RRRR\",\"picker.labels.action.apply\":\"Použít\",\"picker.labels.action.cancel\":\"Zrušit\",\"picker.labels.action.today\":\"Dnes\",\"picker.labels.clock.empty\":\"Není vybraný čas\",\"picker.labels.clock.hours\":\"hod\",\"picker.labels.clock.minutes\":\"min\",\"picker.labels.clock.seconds\":\"s\",\"picker.labels.clock.selected\":\"Vybraný čas je\",\"picker.labels.date.choose\":\"Zvolit datum\",\"picker.labels.date.selected\":\"Vybrané datum je\",\"picker.labels.empty\":\"Prázdné\",\"picker.labels.field.clear\":\"Vymazat hodnotu\",\"picker.labels.range.end\":\"Konec\",\"picker.labels.range.enddate\":\"Koncové datum\",\"picker.labels.range.endtime\":\"Koncový čas\",\"picker.labels.range.start\":\"Začátek\",\"picker.labels.range.startdate\":\"Počáteční datum\",\"picker.labels.range.starttime\":\"Počáteční čas\",\"picker.labels.select\":\"Vybrat\",\"picker.labels.table.date\":\"vybrat datum\",\"picker.labels.table.time\":\"vybrat čas\",\"picker.labels.time.choose\":\"Zvolit čas\",\"picker.labels.time.selected\":\"vybraný čas je\",\"picker.time.toolbar.title\":\"Vybrat čas\",\"picker.view.name.day\":\"Den\",\"picker.view.name.hours\":\"Hodiny\",\"picker.view.name.meridiem\":\"Dopoledne/odpoledne\",\"picker.view.name.minutes\":\"Minuty\",\"picker.view.name.month\":\"Měsíc\",\"picker.view.name.seconds\":\"Sekundy\",\"picker.view.name.weekday\":\"Den v týdnu\",\"picker.view.name.year\":\"Rok\",\"picker.view.navigation.open.nextview\":\"Otevřít další zobrazení\",\"picker.view.navigation.open.previousview\":\"Otevřít předchozí zobrazení\",\"picker.view.navigation.switch.calendarview\":\"je otevřeno zobrazení roku, můžete přepnout do zobrazení kalendáře\",\"picker.view.navigation.switch.yearview\":\"je otevřeno zobrazení kalendáře, můžete přepnout do zobrazení roku\",\"fielderror.screenreader.text\":\"Chyba\",\"fieldlabel.optional.text\":\"Volitelné\",\"fieldlabel.required.text\":\"Povinné\",\"filters.clear.label\":\"Vymazat filtry\",\"filters.submit.label\":\"Odeslat\",\"filters.filter.any\":\"Libovolné\",\"filters.filter.clear\":\"Vymazat filtr\",\"filters.filters.arialabel\":\"Filtry\",\"filters.menuitem.any\":\"Libovolné: {{label}}\",\"filters.menuitem.selected\":\"Vybráno: {{selected}}\",\"filters.search.label\":\"Hledat\",\"fileupload.button.text\":\"Přidat soubory\",\"fileupload.prompt.text\":\"Přetáhněte soubory sem nebo klikněte a přidejte je\",\"fileupload.removefile.text\":\"Odebrat soubor\",\"passwordfield.icon.label.hide\":\"Skrýt heslo\",\"passwordfield.icon.label.show\":\"Zobrazit heslo\",\"severity.error\":\"chyba\",\"severity.info\":\"informace\",\"severity.success\":\"úspěch\",\"severity.warning\":\"upozornění\",\"sidenav.toggle.expand\":\"Otevřít navigaci\",\"sidenav.toggle.collapse\":\"Zavřít navigaci\",\"switch.active\":\"Aktivní\",\"switch.inactive\":\"Neaktivní\",\"table.columnvisibility.arialabel\":\"Zobrazit nebo skrýt sloupce\",\"table.density.arialabel\":\"Hustota tabulky\",\"table.draghandle.arialabel\":\"Pořadí řádků můžete změnit přetažením. Změny pořadí můžete také zahájit a dokončit stisknutím mezerníku nebo klávesy Enter a zrušit stisknutím klávesy Esc.\",\"table.draghandle.tooltip\":\"Pořadí řádků můžete změnit přetažením, případně můžete změny pořadí zahájit a dokončit stisknutím mezerníku nebo klávesy Enter.\",\"table.actions\":\"Akce\",\"table.error\":\"Chyba při načítání dat\",\"table.fetchedrows.text\":\"Byl načten {{totalRows}} řádek\",\"table.fetchedrows.text_plural\":\"Celkem načteno řádků: {{totalRows}}\",\"table.moreactions.arialabel\":\"Další akce\",\"table.noresults.heading\":\"Nejsou k dispozici žádné výsledky.\",\"table.noresults.text\":\"Zkuste zadat jiný dotaz.\",\"table.reorder.backward\":\"Odeslat dozadu\",\"table.reorder.forward\":\"Přenést dopředu\",\"table.reorder.toback\":\"Odeslat na pozadí\",\"table.reorder.tofront\":\"Přenést do popředí\",\"table.rows.text\":\"{{totalRows}} řádek\",\"table.rows.text_plural\":\"Počet řádků: {{totalRows}}\",\"pagination.label\":\"Stránkování\",\"pagination.loadmore\":\"Zobrazit více\",\"pagination.next\":\"Další stránka\",\"pagination.previous\":\"Předchozí stránka\",\"pagination.page\":\"Stránka\",\"pagination.rowsperpage\":\"Počet řádků na stránku\",\"pagination.rowswithtotal\":\"Řádky {{firstRow}}–{{lastRow}} z {{totalRows}}\",\"pagination.rowswithouttotal\":\"Řádky {{firstRow}}–{{lastRow}}\",\"pagination.totalrows\":\"Počet řádků: {{totalRows}}\",\"table.actions.selectall\":\"Vybrat vše\",\"table.actions.selectnone\":\"Zrušit výběr\",\"table.actions.selectsome\":\"Vybráno: {{selectedRowCount}}\",\"table.rowexpansion.expand\":\"Rozbalit\",\"table.rowexpansion.expandall\":\"Rozbalit vše\",\"table.rowexpansion.collapse\":\"Sbalit\",\"table.rowexpansion.collapseall\":\"Sbalit vše\",\"dataview.layout.table\":\"Tabulka\",\"dataview.layout.grid\":\"Mřížka\",\"dataview.layout.list\":\"Seznam\",\"topnav.helpicon\":\"stránka nápovědy\",\"topnav.settingsicon\":\"stránka nastavení\"};"],"mappings":";;;;;;AAAO,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG;EAAC,kBAAkB,EAAC,iBAAiB;EAAC,mBAAmB,EAAC,4BAA4B;EAAC,wBAAwB,EAAC,qBAAqB;EAAC,0BAA0B,EAAC,0DAA0D;EAAC,+BAA+B,EAAC,qGAAqG;EAAC,kCAAkC,EAAC,qFAAqF;EAAC,qCAAqC,EAAC,qGAAqG;EAAC,gCAAgC,EAAC,4DAA4D;EAAC,2BAA2B,EAAC,sFAAsF;EAAC,uBAAuB,EAAC,kBAAkB;EAAC,wBAAwB,EAAC,qBAAqB;EAAC,YAAY,EAAC,QAAQ;EAAC,YAAY,EAAC,SAAS;EAAC,WAAW,EAAC,SAAS;EAAC,wBAAwB,EAAC,gBAAgB;EAAC,sCAAsC,EAAC,aAAa;EAAC,0CAA0C,EAAC,iBAAiB;EAAC,2BAA2B,EAAC,eAAe;EAAC,gCAAgC,EAAC,oBAAoB;EAAC,+BAA+B,EAAC,oBAAoB;EAAC,sBAAsB,E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qBAAqB,EAAC,mBAAmB;EAAC,iBAAiB,EAAC,SAAS;EAAC,wBAAwB,EAAC,wBAAwB;EAAC,0BAA0B,EAAC,gDAAgD;EAAC,6BAA6B,EAAC,gCAAgC;EAAC,sBAAsB,EAAC,4BAA4B;EAAC,yBAAyB,EAAC,YAAY;EAAC,0BAA0B,EAAC,cAAc;EAAC,0BAA0B,EAAC,+BAA+B;EAAC,2BAA2B,EAAC,UAAU;EAAC,8BAA8B,EAAC,cAAc;EAAC,6BAA6B,EAAC,QAAQ;EAAC,gCAAgC,EAAC,YAAY;EAAC,uBAAuB,EAAC,SAAS;EAAC,sBAAsB,EAAC,QAAQ;EAAC,sBAAsB,EAAC,QAAQ;EAAC,iBAAiB,EAAC,kBAAkB;EAAC,qBAAqB,EAAC;AAAmB,CAAC","ignoreList":[]}
@@ -120,6 +120,7 @@ const translation = exports.translation = {
120
120
  "pagination.rowsperpage": "Rækker pr. side",
121
121
  "pagination.rowswithtotal": "{{firstRow}} – {{lastRow}} af {{totalRows}} rækker",
122
122
  "pagination.rowswithouttotal": "{{firstRow}}–{{lastRow}} rækker",
123
+ "pagination.totalrows": "{{totalRows}} rækker",
123
124
  "table.actions.selectall": "Vælg alle",
124
125
  "table.actions.selectnone": "Vælg ingen",
125
126
  "table.actions.selectsome": "{{selectedRowCount}} valgt",