@czi-sds/components 15.1.0 → 15.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (514) hide show
  1. package/dist/index.cjs.d.ts +89 -200
  2. package/dist/index.cjs.js +1383 -1413
  3. package/dist/index.esm.d.ts +89 -200
  4. package/dist/index.esm.js +1372 -1393
  5. package/dist/src/common/helpers/scrollStop.d.ts +8 -0
  6. package/dist/src/common/helpers/scrollStop.js +54 -0
  7. package/dist/src/common/storybookConstants.d.ts +3 -0
  8. package/dist/src/common/storybookConstants.js +2 -0
  9. package/dist/src/common/utils.d.ts +2 -0
  10. package/dist/src/common/utils.js +9 -0
  11. package/dist/src/common/warnings.d.ts +10 -0
  12. package/dist/src/common/warnings.js +60 -0
  13. package/dist/src/common/warnings.test.d.ts +1 -0
  14. package/dist/src/common/warnings.test.js +19 -0
  15. package/dist/src/core/Accordion/Accordion.namespace-test.d.ts +1 -0
  16. package/dist/src/core/Accordion/Accordion.namespace-test.js +18 -0
  17. package/dist/src/core/Accordion/__snapshots__/index.test.js.snap +64 -0
  18. package/dist/src/core/Accordion/components/AccordionDetails/index.d.ts +3 -0
  19. package/dist/src/core/Accordion/components/AccordionDetails/index.js +9 -0
  20. package/dist/src/core/Accordion/components/AccordionDetails/style.d.ts +2 -0
  21. package/dist/src/core/Accordion/components/AccordionDetails/style.js +16 -0
  22. package/dist/src/core/Accordion/components/AccordionHeader/index.d.ts +7 -0
  23. package/dist/src/core/Accordion/components/AccordionHeader/index.js +13 -0
  24. package/dist/src/core/Accordion/components/AccordionHeader/style.d.ts +27 -0
  25. package/dist/src/core/Accordion/components/AccordionHeader/style.js +21 -0
  26. package/dist/src/core/Accordion/index.d.ts +12 -0
  27. package/dist/src/core/Accordion/index.js +38 -0
  28. package/dist/src/core/Accordion/index.stories.d.ts +28 -0
  29. package/dist/src/core/Accordion/index.stories.js +82 -0
  30. package/dist/src/core/Accordion/index.test.d.ts +1 -0
  31. package/dist/src/core/Accordion/index.test.js +58 -0
  32. package/dist/src/core/Accordion/style.d.ts +30 -0
  33. package/dist/src/core/Accordion/style.js +28 -0
  34. package/dist/src/core/Alert/index.d.ts +7 -0
  35. package/dist/src/core/Alert/index.js +22 -0
  36. package/dist/src/core/Alert/index.stories.d.ts +19 -0
  37. package/dist/src/core/Alert/index.stories.js +70 -0
  38. package/dist/src/core/Alert/style.d.ts +1 -0
  39. package/dist/src/core/Alert/style.js +23 -0
  40. package/dist/src/core/Banner/Banner.namespace-test.d.ts +1 -0
  41. package/dist/src/core/Banner/Banner.namespace-test.js +18 -0
  42. package/dist/src/core/Banner/banner.test.d.ts +1 -0
  43. package/dist/src/core/Banner/banner.test.js +126 -0
  44. package/dist/src/core/Banner/index.d.ts +11 -0
  45. package/dist/src/core/Banner/index.js +47 -0
  46. package/dist/src/core/Banner/index.stories.d.ts +46 -0
  47. package/dist/src/core/Banner/index.stories.js +106 -0
  48. package/dist/src/core/Banner/style.d.ts +13 -0
  49. package/dist/src/core/Banner/style.js +55 -0
  50. package/dist/src/core/Button/Button.namespace-test.d.ts +1 -0
  51. package/dist/src/core/Button/Button.namespace-test.js +18 -0
  52. package/dist/src/core/Button/index.d.ts +18 -0
  53. package/dist/src/core/Button/index.js +54 -0
  54. package/dist/src/core/Button/index.stories.d.ts +72 -0
  55. package/dist/src/core/Button/index.stories.js +215 -0
  56. package/dist/src/core/Button/index.test.d.ts +1 -0
  57. package/dist/src/core/Button/index.test.js +40 -0
  58. package/dist/src/core/Button/style.d.ts +180 -0
  59. package/dist/src/core/Button/style.js +59 -0
  60. package/dist/src/core/ButtonDropdown/ButtonDropdown.namespace-test.d.ts +1 -0
  61. package/dist/src/core/ButtonDropdown/ButtonDropdown.namespace-test.js +18 -0
  62. package/dist/src/core/ButtonDropdown/index.d.ts +18 -0
  63. package/dist/src/core/ButtonDropdown/index.js +30 -0
  64. package/dist/src/core/ButtonDropdown/index.stories.d.ts +35 -0
  65. package/dist/src/core/ButtonDropdown/index.stories.js +79 -0
  66. package/dist/src/core/ButtonDropdown/index.test.d.ts +1 -0
  67. package/dist/src/core/ButtonDropdown/index.test.js +41 -0
  68. package/dist/src/core/ButtonIcon/ButtonIcon.namespace-test.d.ts +1 -0
  69. package/dist/src/core/ButtonIcon/ButtonIcon.namespace-test.js +18 -0
  70. package/dist/src/core/ButtonIcon/index.d.ts +15 -0
  71. package/dist/src/core/ButtonIcon/index.js +34 -0
  72. package/dist/src/core/ButtonIcon/index.stories.d.ts +39 -0
  73. package/dist/src/core/ButtonIcon/index.stories.js +239 -0
  74. package/dist/src/core/ButtonIcon/index.test.d.ts +1 -0
  75. package/dist/src/core/ButtonIcon/index.test.js +41 -0
  76. package/dist/src/core/ButtonIcon/style.d.ts +41 -0
  77. package/dist/src/core/ButtonIcon/style.js +68 -0
  78. package/dist/src/core/Callout/Callout.namespace-test.d.ts +1 -0
  79. package/dist/src/core/Callout/Callout.namespace-test.js +18 -0
  80. package/dist/src/core/Callout/components/CalloutTitle/index.d.ts +3 -0
  81. package/dist/src/core/Callout/components/CalloutTitle/index.js +9 -0
  82. package/dist/src/core/Callout/components/CalloutTitle/style.d.ts +1 -0
  83. package/dist/src/core/Callout/components/CalloutTitle/style.js +16 -0
  84. package/dist/src/core/Callout/index.d.ts +18 -0
  85. package/dist/src/core/Callout/index.js +89 -0
  86. package/dist/src/core/Callout/index.stories.d.ts +14 -0
  87. package/dist/src/core/Callout/index.stories.js +80 -0
  88. package/dist/src/core/Callout/style.d.ts +7 -0
  89. package/dist/src/core/Callout/style.js +31 -0
  90. package/dist/src/core/CellBasic/CellBasic.namespace-test.d.ts +1 -0
  91. package/dist/src/core/CellBasic/CellBasic.namespace-test.js +7 -0
  92. package/dist/src/core/CellBasic/index.d.ts +21 -0
  93. package/dist/src/core/CellBasic/index.js +32 -0
  94. package/dist/src/core/CellBasic/index.stories.d.ts +33 -0
  95. package/dist/src/core/CellBasic/index.stories.js +143 -0
  96. package/dist/src/core/CellBasic/index.test.d.ts +1 -0
  97. package/dist/src/core/CellBasic/index.test.js +124 -0
  98. package/dist/src/core/CellBasic/style.d.ts +18 -0
  99. package/dist/src/core/CellBasic/style.js +86 -0
  100. package/dist/src/core/CellComponent/CellComponent.namespace-test.d.ts +1 -0
  101. package/dist/src/core/CellComponent/CellComponent.namespace-test.js +7 -0
  102. package/dist/src/core/CellComponent/index.d.ts +8 -0
  103. package/dist/src/core/CellComponent/index.js +21 -0
  104. package/dist/src/core/CellComponent/index.stories.d.ts +21 -0
  105. package/dist/src/core/CellComponent/index.stories.js +92 -0
  106. package/dist/src/core/CellComponent/index.test.d.ts +1 -0
  107. package/dist/src/core/CellComponent/index.test.js +110 -0
  108. package/dist/src/core/CellComponent/style.d.ts +9 -0
  109. package/dist/src/core/CellComponent/style.js +32 -0
  110. package/dist/src/core/CellHeader/CellHeader.namespace-test.d.ts +1 -0
  111. package/dist/src/core/CellHeader/CellHeader.namespace-test.js +8 -0
  112. package/dist/src/core/CellHeader/index.d.ts +20 -0
  113. package/dist/src/core/CellHeader/index.js +47 -0
  114. package/dist/src/core/CellHeader/index.stories.d.ts +26 -0
  115. package/dist/src/core/CellHeader/index.stories.js +128 -0
  116. package/dist/src/core/CellHeader/index.test.d.ts +1 -0
  117. package/dist/src/core/CellHeader/index.test.js +112 -0
  118. package/dist/src/core/CellHeader/style.d.ts +9 -0
  119. package/dist/src/core/CellHeader/style.js +50 -0
  120. package/dist/src/core/Chip/index.d.ts +9 -0
  121. package/dist/src/core/Chip/index.js +29 -0
  122. package/dist/src/core/Chip/index.stories.d.ts +58 -0
  123. package/dist/src/core/Chip/index.stories.js +90 -0
  124. package/dist/src/core/Chip/style.d.ts +26 -0
  125. package/dist/src/core/Chip/style.js +95 -0
  126. package/dist/src/core/ComplexFilter/ComplexFilter.namespace-test.d.ts +1 -0
  127. package/dist/src/core/ComplexFilter/ComplexFilter.namespace-test.js +20 -0
  128. package/dist/src/core/ComplexFilter/components/Chips/index.d.ts +8 -0
  129. package/dist/src/core/ComplexFilter/components/Chips/index.js +21 -0
  130. package/dist/src/core/ComplexFilter/index.d.ts +23 -0
  131. package/dist/src/core/ComplexFilter/index.js +119 -0
  132. package/dist/src/core/ComplexFilter/index.stories.d.ts +33 -0
  133. package/dist/src/core/ComplexFilter/index.stories.js +126 -0
  134. package/dist/src/core/ComplexFilter/index.test.d.ts +1 -0
  135. package/dist/src/core/ComplexFilter/index.test.js +51 -0
  136. package/dist/src/core/ComplexFilter/style.d.ts +3 -0
  137. package/dist/src/core/ComplexFilter/style.js +15 -0
  138. package/dist/src/core/Dialog/Dialog.namespace-test.d.ts +1 -0
  139. package/dist/src/core/Dialog/Dialog.namespace-test.js +8 -0
  140. package/dist/src/core/Dialog/__snapshots__/index.test.js.snap +382 -0
  141. package/dist/src/core/Dialog/components/common.d.ts +6 -0
  142. package/dist/src/core/Dialog/components/common.js +5 -0
  143. package/dist/src/core/Dialog/index.d.ts +18 -0
  144. package/dist/src/core/Dialog/index.js +50 -0
  145. package/dist/src/core/Dialog/index.stories.d.ts +46 -0
  146. package/dist/src/core/Dialog/index.stories.js +147 -0
  147. package/dist/src/core/Dialog/index.test.d.ts +1 -0
  148. package/dist/src/core/Dialog/index.test.js +62 -0
  149. package/dist/src/core/DialogActions/index.d.ts +9 -0
  150. package/dist/src/core/DialogActions/index.js +23 -0
  151. package/dist/src/core/DialogActions/style.d.ts +5 -0
  152. package/dist/src/core/DialogActions/style.js +20 -0
  153. package/dist/src/core/DialogContent/index.d.ts +5 -0
  154. package/dist/src/core/DialogContent/index.js +23 -0
  155. package/dist/src/core/DialogContent/style.d.ts +1 -0
  156. package/dist/src/core/DialogContent/style.js +11 -0
  157. package/dist/src/core/DialogPaper/index.d.ts +8 -0
  158. package/dist/src/core/DialogPaper/index.js +27 -0
  159. package/dist/src/core/DialogPaper/style.d.ts +16 -0
  160. package/dist/src/core/DialogPaper/style.js +44 -0
  161. package/dist/src/core/DialogTitle/components/CloseButton/index.d.ts +5 -0
  162. package/dist/src/core/DialogTitle/components/CloseButton/index.js +31 -0
  163. package/dist/src/core/DialogTitle/components/CloseButton/style.d.ts +2 -0
  164. package/dist/src/core/DialogTitle/components/CloseButton/style.js +18 -0
  165. package/dist/src/core/DialogTitle/index.d.ts +14 -0
  166. package/dist/src/core/DialogTitle/index.js +42 -0
  167. package/dist/src/core/DialogTitle/style.d.ts +46 -0
  168. package/dist/src/core/DialogTitle/style.js +20 -0
  169. package/dist/src/core/Dropdown/Dropdown.namespace-test.d.ts +1 -0
  170. package/dist/src/core/Dropdown/Dropdown.namespace-test.js +20 -0
  171. package/dist/src/core/Dropdown/index.d.ts +31 -0
  172. package/dist/src/core/Dropdown/index.js +160 -0
  173. package/dist/src/core/Dropdown/index.stories.d.ts +68 -0
  174. package/dist/src/core/Dropdown/index.stories.js +215 -0
  175. package/dist/src/core/Dropdown/index.test.d.ts +1 -0
  176. package/dist/src/core/Dropdown/index.test.js +229 -0
  177. package/dist/src/core/Dropdown/style.d.ts +5 -0
  178. package/dist/src/core/Dropdown/style.js +19 -0
  179. package/dist/src/core/DropdownMenu/DropdownMenu.namespace-test.d.ts +1 -0
  180. package/dist/src/core/DropdownMenu/DropdownMenu.namespace-test.js +20 -0
  181. package/dist/src/core/DropdownMenu/GITHUB_LABELS.d.ts +2 -0
  182. package/dist/src/core/DropdownMenu/GITHUB_LABELS.js +83 -0
  183. package/dist/src/core/DropdownMenu/index.d.ts +42 -0
  184. package/dist/src/core/DropdownMenu/index.js +83 -0
  185. package/dist/src/core/DropdownMenu/index.stories.d.ts +55 -0
  186. package/dist/src/core/DropdownMenu/index.stories.js +438 -0
  187. package/dist/src/core/DropdownMenu/index.test.d.ts +1 -0
  188. package/dist/src/core/DropdownMenu/index.test.js +51 -0
  189. package/dist/src/core/DropdownMenu/style.d.ts +40 -0
  190. package/dist/src/core/DropdownMenu/style.js +85 -0
  191. package/dist/src/core/Icon/Icon.namespace-test.d.ts +1 -0
  192. package/dist/src/core/Icon/Icon.namespace-test.js +7 -0
  193. package/dist/src/core/Icon/index.d.ts +14 -0
  194. package/dist/src/core/Icon/index.js +25 -0
  195. package/dist/src/core/Icon/index.stories.d.ts +34 -0
  196. package/dist/src/core/Icon/index.stories.js +171 -0
  197. package/dist/src/core/Icon/map.d.ts +98 -0
  198. package/dist/src/core/Icon/map.js +476 -0
  199. package/dist/src/core/Icon/style.d.ts +36 -0
  200. package/dist/src/core/Icon/style.js +42 -0
  201. package/dist/src/core/InputCheckbox/InputCheckbox.namespace-test.d.ts +1 -0
  202. package/dist/src/core/InputCheckbox/InputCheckbox.namespace-test.js +9 -0
  203. package/dist/src/core/InputCheckbox/index.d.ts +13 -0
  204. package/dist/src/core/InputCheckbox/index.js +55 -0
  205. package/dist/src/core/InputCheckbox/index.stories.d.ts +35 -0
  206. package/dist/src/core/InputCheckbox/index.stories.js +119 -0
  207. package/dist/src/core/InputCheckbox/index.test.d.ts +1 -0
  208. package/dist/src/core/InputCheckbox/index.test.js +62 -0
  209. package/dist/src/core/InputCheckbox/styles.d.ts +6 -0
  210. package/dist/src/core/InputCheckbox/styles.js +24 -0
  211. package/dist/src/core/InputDropdown/InputDropdown.namespace-test.d.ts +1 -0
  212. package/dist/src/core/InputDropdown/InputDropdown.namespace-test.js +8 -0
  213. package/dist/src/core/InputDropdown/index.d.ts +8 -0
  214. package/dist/src/core/InputDropdown/index.js +83 -0
  215. package/dist/src/core/InputDropdown/index.stories.d.ts +59 -0
  216. package/dist/src/core/InputDropdown/index.stories.js +264 -0
  217. package/dist/src/core/InputDropdown/index.test.d.ts +1 -0
  218. package/dist/src/core/InputDropdown/index.test.js +58 -0
  219. package/dist/src/core/InputDropdown/style.d.ts +38 -0
  220. package/dist/src/core/InputDropdown/style.js +130 -0
  221. package/dist/src/core/InputRadio/InputRadio.namespace-test.d.ts +1 -0
  222. package/dist/src/core/InputRadio/InputRadio.namespace-test.js +8 -0
  223. package/dist/src/core/InputRadio/index.d.ts +14 -0
  224. package/dist/src/core/InputRadio/index.js +40 -0
  225. package/dist/src/core/InputRadio/index.stories.d.ts +32 -0
  226. package/dist/src/core/InputRadio/index.stories.js +64 -0
  227. package/dist/src/core/InputRadio/index.test.d.ts +1 -0
  228. package/dist/src/core/InputRadio/index.test.js +92 -0
  229. package/dist/src/core/InputRadio/style.d.ts +6 -0
  230. package/dist/src/core/InputRadio/style.js +24 -0
  231. package/dist/src/core/InputSearch/InputSearch.namespace-test.d.ts +1 -0
  232. package/dist/src/core/InputSearch/InputSearch.namespace-test.js +8 -0
  233. package/dist/src/core/InputSearch/index.d.ts +16 -0
  234. package/dist/src/core/InputSearch/index.js +75 -0
  235. package/dist/src/core/InputSearch/index.stories.d.ts +35 -0
  236. package/dist/src/core/InputSearch/index.stories.js +104 -0
  237. package/dist/src/core/InputSearch/index.test.d.ts +1 -0
  238. package/dist/src/core/InputSearch/index.test.js +70 -0
  239. package/dist/src/core/InputSearch/style.d.ts +12 -0
  240. package/dist/src/core/InputSearch/style.js +47 -0
  241. package/dist/src/core/InputSlider/InputSlider.namespace-test.d.ts +1 -0
  242. package/dist/src/core/InputSlider/InputSlider.namespace-test.js +7 -0
  243. package/dist/src/core/InputSlider/__snapshots__/index.test.js.snap +124 -0
  244. package/dist/src/core/InputSlider/index.d.ts +8 -0
  245. package/dist/src/core/InputSlider/index.js +23 -0
  246. package/dist/src/core/InputSlider/index.stories.d.ts +43 -0
  247. package/dist/src/core/InputSlider/index.stories.js +160 -0
  248. package/dist/src/core/InputSlider/index.test.d.ts +1 -0
  249. package/dist/src/core/InputSlider/index.test.js +52 -0
  250. package/dist/src/core/InputSlider/style.d.ts +76 -0
  251. package/dist/src/core/InputSlider/style.js +34 -0
  252. package/dist/src/core/InputText/InputText.namespace-test.d.ts +1 -0
  253. package/dist/src/core/InputText/InputText.namespace-test.js +7 -0
  254. package/dist/src/core/InputText/__snapshots__/index.test.js.snap +10 -0
  255. package/dist/src/core/InputText/index.d.ts +14 -0
  256. package/dist/src/core/InputText/index.js +52 -0
  257. package/dist/src/core/InputText/index.stories.d.ts +29 -0
  258. package/dist/src/core/InputText/index.stories.js +100 -0
  259. package/dist/src/core/InputText/index.test.d.ts +1 -0
  260. package/dist/src/core/InputText/index.test.js +67 -0
  261. package/dist/src/core/InputText/style.d.ts +13 -0
  262. package/dist/src/core/InputText/style.js +45 -0
  263. package/dist/src/core/InputToggle/InputToggle.namespace-test.d.ts +1 -0
  264. package/dist/src/core/InputToggle/InputToggle.namespace-test.js +7 -0
  265. package/dist/src/core/InputToggle/__snapshots__/index.test.js.snap +26 -0
  266. package/dist/src/core/InputToggle/index.d.ts +7 -0
  267. package/dist/src/core/InputToggle/index.js +42 -0
  268. package/dist/src/core/InputToggle/index.stories.d.ts +20 -0
  269. package/dist/src/core/InputToggle/index.stories.js +63 -0
  270. package/dist/src/core/InputToggle/index.test.d.ts +1 -0
  271. package/dist/src/core/InputToggle/index.test.js +52 -0
  272. package/dist/src/core/InputToggle/style.d.ts +9 -0
  273. package/dist/src/core/InputToggle/style.js +38 -0
  274. package/dist/src/core/Link/Link.namespace-test.d.ts +1 -0
  275. package/dist/src/core/Link/Link.namespace-test.js +7 -0
  276. package/dist/src/core/Link/index.d.ts +8 -0
  277. package/dist/src/core/Link/index.js +28 -0
  278. package/dist/src/core/Link/index.stories.d.ts +27 -0
  279. package/dist/src/core/Link/index.stories.js +99 -0
  280. package/dist/src/core/Link/style.d.ts +9 -0
  281. package/dist/src/core/Link/style.js +30 -0
  282. package/dist/src/core/List/List.namespace-test.d.ts +1 -0
  283. package/dist/src/core/List/List.namespace-test.js +7 -0
  284. package/dist/src/core/List/index.d.ts +8 -0
  285. package/dist/src/core/List/index.js +23 -0
  286. package/dist/src/core/List/index.stories.d.ts +4 -0
  287. package/dist/src/core/List/index.stories.js +30 -0
  288. package/dist/src/core/List/style.d.ts +17 -0
  289. package/dist/src/core/List/style.js +33 -0
  290. package/dist/src/core/ListItem/ListItem.namespace-test.d.ts +1 -0
  291. package/dist/src/core/ListItem/ListItem.namespace-test.js +7 -0
  292. package/dist/src/core/ListItem/index.d.ts +9 -0
  293. package/dist/src/core/ListItem/index.js +24 -0
  294. package/dist/src/core/ListItem/style.d.ts +26 -0
  295. package/dist/src/core/ListItem/style.js +56 -0
  296. package/dist/src/core/ListSubheader/ListSubheader.namespace-test.d.ts +1 -0
  297. package/dist/src/core/ListSubheader/ListSubheader.namespace-test.js +7 -0
  298. package/dist/src/core/ListSubheader/index.d.ts +7 -0
  299. package/dist/src/core/ListSubheader/index.js +22 -0
  300. package/dist/src/core/ListSubheader/style.d.ts +12 -0
  301. package/dist/src/core/ListSubheader/style.js +16 -0
  302. package/dist/src/core/LoadingIndicator/LoadingIndicator.namespace-test.d.ts +1 -0
  303. package/dist/src/core/LoadingIndicator/LoadingIndicator.namespace-test.js +7 -0
  304. package/dist/src/core/LoadingIndicator/index.d.ts +4 -0
  305. package/dist/src/core/LoadingIndicator/index.js +13 -0
  306. package/dist/src/core/LoadingIndicator/index.stories.d.ts +24 -0
  307. package/dist/src/core/LoadingIndicator/index.stories.js +77 -0
  308. package/dist/src/core/LoadingIndicator/index.test.d.ts +1 -0
  309. package/dist/src/core/LoadingIndicator/index.test.js +41 -0
  310. package/dist/src/core/LoadingIndicator/style.d.ts +7 -0
  311. package/dist/src/core/LoadingIndicator/style.js +36 -0
  312. package/dist/src/core/Menu/Menu.namespace-test.d.ts +1 -0
  313. package/dist/src/core/Menu/Menu.namespace-test.js +8 -0
  314. package/dist/src/core/Menu/index.d.ts +7 -0
  315. package/dist/src/core/Menu/index.js +30 -0
  316. package/dist/src/core/Menu/index.stories.d.ts +17 -0
  317. package/dist/src/core/Menu/index.stories.js +55 -0
  318. package/dist/src/core/Menu/style.d.ts +1 -0
  319. package/dist/src/core/Menu/style.js +15 -0
  320. package/dist/src/core/MenuItem/MenuItem.namespace-test.d.ts +1 -0
  321. package/dist/src/core/MenuItem/MenuItem.namespace-test.js +8 -0
  322. package/dist/src/core/MenuItem/index.d.ts +21 -0
  323. package/dist/src/core/MenuItem/index.js +42 -0
  324. package/dist/src/core/MenuItem/index.stories.d.ts +35 -0
  325. package/dist/src/core/MenuItem/index.stories.js +188 -0
  326. package/dist/src/core/MenuItem/index.test.d.ts +1 -0
  327. package/dist/src/core/MenuItem/index.test.js +41 -0
  328. package/dist/src/core/MenuItem/style.d.ts +65 -0
  329. package/dist/src/core/MenuItem/style.js +58 -0
  330. package/dist/src/core/MenuSelect/index.d.ts +19 -0
  331. package/dist/src/core/MenuSelect/index.js +70 -0
  332. package/dist/src/core/MenuSelect/index.stories.d.ts +34 -0
  333. package/dist/src/core/MenuSelect/index.stories.js +154 -0
  334. package/dist/src/core/MenuSelect/style.d.ts +12 -0
  335. package/dist/src/core/MenuSelect/style.js +45 -0
  336. package/dist/src/core/NavigationJumpTo/NavigationJumpTo.namespace-test.d.ts +1 -0
  337. package/dist/src/core/NavigationJumpTo/NavigationJumpTo.namespace-test.js +13 -0
  338. package/dist/src/core/NavigationJumpTo/__snapshots__/index.test.js.snap +319 -0
  339. package/dist/src/core/NavigationJumpTo/index.d.ts +13 -0
  340. package/dist/src/core/NavigationJumpTo/index.js +111 -0
  341. package/dist/src/core/NavigationJumpTo/index.stories.d.ts +56 -0
  342. package/dist/src/core/NavigationJumpTo/index.stories.js +216 -0
  343. package/dist/src/core/NavigationJumpTo/index.test.d.ts +1 -0
  344. package/dist/src/core/NavigationJumpTo/index.test.js +87 -0
  345. package/dist/src/core/NavigationJumpTo/style.d.ts +106 -0
  346. package/dist/src/core/NavigationJumpTo/style.js +27 -0
  347. package/dist/src/core/NavigationJumpTo/useIntersection.d.ts +19 -0
  348. package/dist/src/core/NavigationJumpTo/useIntersection.js +67 -0
  349. package/dist/src/core/Notification/Notification.namespace-test.d.ts +1 -0
  350. package/dist/src/core/Notification/Notification.namespace-test.js +8 -0
  351. package/dist/src/core/Notification/index.d.ts +17 -0
  352. package/dist/src/core/Notification/index.js +70 -0
  353. package/dist/src/core/Notification/index.stories.d.ts +43 -0
  354. package/dist/src/core/Notification/index.stories.js +186 -0
  355. package/dist/src/core/Notification/index.test.d.ts +1 -0
  356. package/dist/src/core/Notification/index.test.js +115 -0
  357. package/dist/src/core/Notification/style.d.ts +1 -0
  358. package/dist/src/core/Notification/style.js +26 -0
  359. package/dist/src/core/Pagination/Pagination.namespace-test.d.ts +1 -0
  360. package/dist/src/core/Pagination/Pagination.namespace-test.js +8 -0
  361. package/dist/src/core/Pagination/components/PageListDropdown/index.d.ts +7 -0
  362. package/dist/src/core/Pagination/components/PageListDropdown/index.js +27 -0
  363. package/dist/src/core/Pagination/components/PageListDropdown/style.d.ts +1 -0
  364. package/dist/src/core/Pagination/components/PageListDropdown/style.js +14 -0
  365. package/dist/src/core/Pagination/index.d.ts +15 -0
  366. package/dist/src/core/Pagination/index.js +47 -0
  367. package/dist/src/core/Pagination/index.stories.d.ts +21 -0
  368. package/dist/src/core/Pagination/index.stories.js +99 -0
  369. package/dist/src/core/Pagination/index.test.d.ts +1 -0
  370. package/dist/src/core/Pagination/index.test.js +128 -0
  371. package/dist/src/core/Pagination/style.d.ts +13 -0
  372. package/dist/src/core/Pagination/style.js +62 -0
  373. package/dist/src/core/Pagination/usePagination.d.ts +9 -0
  374. package/dist/src/core/Pagination/usePagination.js +69 -0
  375. package/dist/src/core/SegmentedControl/SegmentedControl.namespace-test.d.ts +1 -0
  376. package/dist/src/core/SegmentedControl/SegmentedControl.namespace-test.js +12 -0
  377. package/dist/src/core/SegmentedControl/index.d.ts +15 -0
  378. package/dist/src/core/SegmentedControl/index.js +38 -0
  379. package/dist/src/core/SegmentedControl/index.stories.d.ts +49 -0
  380. package/dist/src/core/SegmentedControl/index.stories.js +128 -0
  381. package/dist/src/core/SegmentedControl/index.test.d.ts +1 -0
  382. package/dist/src/core/SegmentedControl/index.test.js +41 -0
  383. package/dist/src/core/SegmentedControl/style.d.ts +2 -0
  384. package/dist/src/core/SegmentedControl/style.js +23 -0
  385. package/dist/src/core/Table/Table.namespace-test.d.ts +1 -0
  386. package/dist/src/core/Table/Table.namespace-test.js +7 -0
  387. package/dist/src/core/Table/components/common.d.ts +6 -0
  388. package/dist/src/core/Table/components/common.js +5 -0
  389. package/dist/src/core/Table/index.d.ts +7 -0
  390. package/dist/src/core/Table/index.js +21 -0
  391. package/dist/src/core/Table/index.stories.d.ts +18 -0
  392. package/dist/src/core/Table/index.stories.js +64 -0
  393. package/dist/src/core/Table/index.test.d.ts +1 -0
  394. package/dist/src/core/Table/index.test.js +89 -0
  395. package/dist/src/core/Table/style.d.ts +2 -0
  396. package/dist/src/core/Table/style.js +10 -0
  397. package/dist/src/core/TableHeader/TableHeader.namespace-test.d.ts +1 -0
  398. package/dist/src/core/TableHeader/TableHeader.namespace-test.js +7 -0
  399. package/dist/src/core/TableHeader/index.d.ts +6 -0
  400. package/dist/src/core/TableHeader/index.js +25 -0
  401. package/dist/src/core/TableHeader/index.stories.d.ts +12 -0
  402. package/dist/src/core/TableHeader/index.stories.js +38 -0
  403. package/dist/src/core/TableHeader/index.test.d.ts +1 -0
  404. package/dist/src/core/TableHeader/index.test.js +41 -0
  405. package/dist/src/core/TableHeader/style.d.ts +2 -0
  406. package/dist/src/core/TableHeader/style.js +14 -0
  407. package/dist/src/core/TableRow/TableRow.namespace-test.d.ts +1 -0
  408. package/dist/src/core/TableRow/TableRow.namespace-test.js +7 -0
  409. package/dist/src/core/TableRow/__snapshots__/index.test.js.snap +100 -0
  410. package/dist/src/core/TableRow/index.d.ts +13 -0
  411. package/dist/src/core/TableRow/index.js +28 -0
  412. package/dist/src/core/TableRow/index.stories.d.ts +24 -0
  413. package/dist/src/core/TableRow/index.stories.js +77 -0
  414. package/dist/src/core/TableRow/index.test.d.ts +1 -0
  415. package/dist/src/core/TableRow/index.test.js +92 -0
  416. package/dist/src/core/TableRow/style.d.ts +10 -0
  417. package/dist/src/core/TableRow/style.js +34 -0
  418. package/dist/src/core/Tabs/Tabs.namespace-test.d.ts +1 -0
  419. package/dist/src/core/Tabs/Tabs.namespace-test.js +8 -0
  420. package/dist/src/core/Tabs/__snapshots__/index.test.js.snap +46 -0
  421. package/dist/src/core/Tabs/components/LabelWithCount/index.d.ts +7 -0
  422. package/dist/src/core/Tabs/components/LabelWithCount/index.js +11 -0
  423. package/dist/src/core/Tabs/components/LabelWithCount/style.d.ts +10 -0
  424. package/dist/src/core/Tabs/components/LabelWithCount/style.js +43 -0
  425. package/dist/src/core/Tabs/components/common.d.ts +5 -0
  426. package/dist/src/core/Tabs/components/common.js +5 -0
  427. package/dist/src/core/Tabs/index.d.ts +13 -0
  428. package/dist/src/core/Tabs/index.js +89 -0
  429. package/dist/src/core/Tabs/index.stories.d.ts +38 -0
  430. package/dist/src/core/Tabs/index.stories.js +154 -0
  431. package/dist/src/core/Tabs/index.test.d.ts +1 -0
  432. package/dist/src/core/Tabs/index.test.js +48 -0
  433. package/dist/src/core/Tabs/style.d.ts +115 -0
  434. package/dist/src/core/Tabs/style.js +53 -0
  435. package/dist/src/core/Tag/Tag.namespace-test.d.ts +1 -0
  436. package/dist/src/core/Tag/Tag.namespace-test.js +7 -0
  437. package/dist/src/core/Tag/index.d.ts +17 -0
  438. package/dist/src/core/Tag/index.js +27 -0
  439. package/dist/src/core/Tag/index.stories.d.ts +98 -0
  440. package/dist/src/core/Tag/index.stories.js +238 -0
  441. package/dist/src/core/Tag/index.test.d.ts +1 -0
  442. package/dist/src/core/Tag/index.test.js +40 -0
  443. package/dist/src/core/Tag/index.testUtils.d.ts +8 -0
  444. package/dist/src/core/Tag/index.testUtils.js +108 -0
  445. package/dist/src/core/Tag/style.d.ts +29 -0
  446. package/dist/src/core/Tag/style.js +100 -0
  447. package/dist/src/core/TagFilter/TagFilter.namespace-test.d.ts +1 -0
  448. package/dist/src/core/TagFilter/TagFilter.namespace-test.js +8 -0
  449. package/dist/src/core/TagFilter/__snapshots__/index.test.js.snap +46 -0
  450. package/dist/src/core/TagFilter/index.d.ts +12 -0
  451. package/dist/src/core/TagFilter/index.js +23 -0
  452. package/dist/src/core/TagFilter/index.stories.d.ts +44 -0
  453. package/dist/src/core/TagFilter/index.stories.js +121 -0
  454. package/dist/src/core/TagFilter/index.test.d.ts +1 -0
  455. package/dist/src/core/TagFilter/index.test.js +40 -0
  456. package/dist/src/core/TagFilter/style.d.ts +7 -0
  457. package/dist/src/core/TagFilter/style.js +19 -0
  458. package/dist/src/core/Tooltip/Tooltip.namespace-test.d.ts +1 -0
  459. package/dist/src/core/Tooltip/Tooltip.namespace-test.js +7 -0
  460. package/dist/src/core/Tooltip/index.d.ts +14 -0
  461. package/dist/src/core/Tooltip/index.js +87 -0
  462. package/dist/src/core/Tooltip/index.stories.d.ts +48 -0
  463. package/dist/src/core/Tooltip/index.stories.js +257 -0
  464. package/dist/src/core/Tooltip/index.test.d.ts +1 -0
  465. package/dist/src/core/Tooltip/index.test.js +102 -0
  466. package/dist/src/core/Tooltip/style.d.ts +23 -0
  467. package/dist/src/core/Tooltip/style.js +47 -0
  468. package/dist/src/core/TooltipCondensed/TooltipCondensed.namespace-test.d.ts +1 -0
  469. package/dist/src/core/TooltipCondensed/TooltipCondensed.namespace-test.js +7 -0
  470. package/dist/src/core/TooltipCondensed/index.d.ts +13 -0
  471. package/dist/src/core/TooltipCondensed/index.js +43 -0
  472. package/dist/src/core/TooltipCondensed/index.stories.d.ts +27 -0
  473. package/dist/src/core/TooltipCondensed/index.stories.js +72 -0
  474. package/dist/src/core/TooltipCondensed/index.test.d.ts +1 -0
  475. package/dist/src/core/TooltipCondensed/index.test.js +85 -0
  476. package/dist/src/core/TooltipCondensed/style.d.ts +6 -0
  477. package/dist/src/core/TooltipCondensed/style.js +22 -0
  478. package/dist/src/core/TooltipTable/TooltipTable.namespace-test.d.ts +1 -0
  479. package/dist/src/core/TooltipTable/TooltipTable.namespace-test.js +23 -0
  480. package/dist/src/core/TooltipTable/__snapshots__/index.test.js.snap +272 -0
  481. package/dist/src/core/TooltipTable/index.d.ts +8 -0
  482. package/dist/src/core/TooltipTable/index.js +35 -0
  483. package/dist/src/core/TooltipTable/index.stories.d.ts +32 -0
  484. package/dist/src/core/TooltipTable/index.stories.js +128 -0
  485. package/dist/src/core/TooltipTable/index.test.d.ts +1 -0
  486. package/dist/src/core/TooltipTable/index.test.js +109 -0
  487. package/dist/src/core/TooltipTable/style.d.ts +25 -0
  488. package/dist/src/core/TooltipTable/style.js +46 -0
  489. package/dist/src/core/styles/common/constants/black.d.ts +3 -0
  490. package/dist/src/core/styles/common/constants/black.js +7 -0
  491. package/dist/src/core/styles/common/constants/boxShadows.d.ts +5 -0
  492. package/dist/src/core/styles/common/constants/boxShadows.js +9 -0
  493. package/dist/src/core/styles/common/constants/fontWeights.d.ts +7 -0
  494. package/dist/src/core/styles/common/constants/fontWeights.js +11 -0
  495. package/dist/src/core/styles/common/constants/gray.d.ts +8 -0
  496. package/dist/src/core/styles/common/constants/gray.js +12 -0
  497. package/dist/src/core/styles/common/constants/spaces.d.ts +11 -0
  498. package/dist/src/core/styles/common/constants/spaces.js +15 -0
  499. package/dist/src/core/styles/common/constants/white.d.ts +3 -0
  500. package/dist/src/core/styles/common/constants/white.js +7 -0
  501. package/dist/src/core/styles/common/defaultTheme.d.ts +129 -0
  502. package/dist/src/core/styles/common/defaultTheme.js +414 -0
  503. package/dist/src/core/styles/common/mixins/fonts.d.ts +27 -0
  504. package/dist/src/core/styles/common/mixins/fonts.js +60 -0
  505. package/dist/src/core/styles/common/selectors/theme.d.ts +15 -0
  506. package/dist/src/core/styles/common/selectors/theme.js +63 -0
  507. package/dist/src/core/styles/index.d.ts +3 -0
  508. package/dist/src/core/styles/index.js +19 -0
  509. package/dist/src/index.d.ts +100 -0
  510. package/dist/src/index.js +170 -0
  511. package/dist/tsconfig-namespace-check.tsbuildinfo +1 -0
  512. package/dist/tsconfig.tsbuildinfo +1 -1
  513. package/dist/variables.css +1 -0
  514. package/package.json +12 -8
@@ -0,0 +1,438 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
30
+ }) : function(o, v) {
31
+ o["default"] = v;
32
+ });
33
+ var __importStar = (this && this.__importStar) || function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ var __importDefault = (this && this.__importDefault) || function (mod) {
41
+ return (mod && mod.__esModule) ? mod : { "default": mod };
42
+ };
43
+ Object.defineProperty(exports, "__esModule", { value: true });
44
+ exports.Test = exports.ScreenshotTest = exports.LivePreview = exports.Default = void 0;
45
+ var react_1 = require("react");
46
+ var jsx_runtime_1 = require("react/jsx-runtime");
47
+ var material_1 = require("@mui/material");
48
+ var react_2 = __importStar(require("react"));
49
+ var ButtonIcon_1 = __importDefault(require("../ButtonIcon"));
50
+ var InputDropdown_1 = __importDefault(require("../InputDropdown"));
51
+ var Tag_1 = __importDefault(require("../Tag"));
52
+ var GITHUB_LABELS_1 = require("./GITHUB_LABELS");
53
+ var index_1 = __importDefault(require("./index"));
54
+ var POPPER_POSITION = "bottom-start";
55
+ var POPPER_WIDTH = 160;
56
+ var groupByOptions = [
57
+ undefined,
58
+ function (option) { return option.section; },
59
+ ];
60
+ var DropdownMenu = function (props) {
61
+ var multiple = props.multiple, _a = props.options, options = _a === void 0 ? GITHUB_LABELS_1.GITHUB_LABELS : _a, search = props.search, title = props.title, propValue = props.value;
62
+ var isControlled = propValue !== undefined;
63
+ var _b = (0, react_2.useState)(getInitialValue()), value = _b[0], setValue = _b[1];
64
+ var _c = (0, react_2.useState)(getInitialValue()), pendingValue = _c[0], setPendingValue = _c[1];
65
+ var anchorRef = (0, react_2.useRef)(null);
66
+ var _d = react_2.default.useState(null), anchorEl = _d[0], setAnchorEl = _d[1];
67
+ (0, react_2.useEffect)(function () {
68
+ setAnchorEl(anchorRef.current);
69
+ }, [anchorRef.current]);
70
+ (0, react_2.useEffect)(function () {
71
+ if (isControlled) {
72
+ setValue(propValue);
73
+ }
74
+ }, [propValue]);
75
+ return ((0, jsx_runtime_1.jsx)("div", { style: { margin: "16px 0 0 24px" }, ref: anchorRef, children: (0, jsx_runtime_1.jsx)(index_1.default, __assign({ anchorEl: anchorEl, disableCloseOnSelect: false, multiple: multiple, onChange: handleChange, onClickAway: handleClickAway, open: true, options: options, PopperBaseProps: {
76
+ disablePortal: false,
77
+ placement: POPPER_POSITION,
78
+ sx: { width: 300 },
79
+ }, search: search, title: title, value: multiple ? pendingValue : value, getOptionDisabled: function (option) {
80
+ return (option.name === "Type: feature request" ||
81
+ option.name === "Type: documentation");
82
+ } }, props)) }));
83
+ function handleClickAway() {
84
+ if (multiple) {
85
+ setValue(pendingValue);
86
+ }
87
+ }
88
+ function handleChange(_, newValue) {
89
+ if (multiple) {
90
+ return setPendingValue(newValue);
91
+ }
92
+ setValue(newValue);
93
+ }
94
+ function getInitialValue() {
95
+ if (isControlled) {
96
+ return propValue;
97
+ }
98
+ return multiple
99
+ ? []
100
+ : null;
101
+ }
102
+ };
103
+ exports.default = {
104
+ argTypes: {
105
+ ClickAwayListenerProps: {
106
+ control: { type: "object" },
107
+ },
108
+ groupBy: {
109
+ control: {
110
+ labels: ["No group by", "Group by section names"],
111
+ type: "select",
112
+ },
113
+ mapping: groupByOptions,
114
+ options: Object.keys(groupByOptions),
115
+ },
116
+ keepSearchOnSelect: {
117
+ control: { type: "boolean" },
118
+ },
119
+ label: {
120
+ control: { type: "text" },
121
+ require: true,
122
+ },
123
+ multiple: {
124
+ control: { type: "boolean" },
125
+ },
126
+ search: {
127
+ control: { type: "boolean" },
128
+ },
129
+ title: {
130
+ control: { type: "text" },
131
+ },
132
+ },
133
+ component: DropdownMenu,
134
+ // (masoudmanson) For the purpose of storybook, the button is removed
135
+ // from the dropdown menu component which may cause some accessibility
136
+ // violations related to ARIA roles and attributes. However, this
137
+ // should not be a concern as the component is always used with a button
138
+ // in real applications. To avoid false positive test failures, the following
139
+ // accessibility rules have been temporarily disabled in the tests
140
+ parameters: {
141
+ axe: {
142
+ disabledRules: [
143
+ "aria-input-field-name",
144
+ "aria-required-children",
145
+ "aria-required-parent",
146
+ "button-name",
147
+ "list",
148
+ "listitem",
149
+ ],
150
+ },
151
+ },
152
+ title: "Dropdowns/DropdownMenu",
153
+ };
154
+ // Default
155
+ exports.Default = {
156
+ args: {
157
+ groupBy: groupByOptions[1],
158
+ keepSearchOnSelect: true,
159
+ multiple: true,
160
+ search: true,
161
+ title: "Github Labels",
162
+ },
163
+ };
164
+ // Live Preview
165
+ var storyRow = {
166
+ display: "grid",
167
+ gridColumnGap: 24,
168
+ gridRowGap: 8,
169
+ gridTemplateColumns: "repeat(4, 160px)",
170
+ gridTemplateRows: "repeat(2, auto)",
171
+ };
172
+ var StyledInputDropdownLive1 = (0, material_1.styled)(InputDropdown_1.default)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative !important;\n min-width: unset;\n &.MuiButtonBase-root {\n margin: 0 !important;\n\n & > span {\n font-size: 13px;\n }\n }\n"], ["\n position: relative !important;\n min-width: unset;\n &.MuiButtonBase-root {\n margin: 0 !important;\n\n & > span {\n font-size: 13px;\n }\n }\n"])));
173
+ var StyledInputDropdownLive3 = (0, material_1.styled)(InputDropdown_1.default)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative !important;\n min-width: 160px;\n &.MuiButtonBase-root {\n margin: 0 !important;\n\n & > span {\n font-size: 13px;\n }\n }\n"], ["\n position: relative !important;\n min-width: 160px;\n &.MuiButtonBase-root {\n margin: 0 !important;\n\n & > span {\n font-size: 13px;\n }\n }\n"])));
174
+ var LIVE_PREVIEW_LABELS = [
175
+ {
176
+ name: "Menu Item 1",
177
+ section: "Section 1",
178
+ },
179
+ {
180
+ name: "Menu Item 2",
181
+ section: "Section 1",
182
+ },
183
+ {
184
+ name: "Menu Item 3",
185
+ section: "Section 1",
186
+ },
187
+ {
188
+ name: "Menu Item 4",
189
+ section: "Section 2",
190
+ },
191
+ {
192
+ name: "Menu Item 5",
193
+ section: "Section 2",
194
+ },
195
+ {
196
+ name: "Menu Item 6",
197
+ section: "Section 2",
198
+ },
199
+ ];
200
+ var LivePreviewDemo = function () {
201
+ var options = LIVE_PREVIEW_LABELS;
202
+ var _a = (0, react_2.useState)(null), anchorEl1 = _a[0], setAnchorEl1 = _a[1];
203
+ var _b = (0, react_2.useState)(null), anchorEl2 = _b[0], setAnchorEl2 = _b[1];
204
+ var _c = (0, react_2.useState)(null), anchorEl3 = _c[0], setAnchorEl3 = _c[1];
205
+ var _d = (0, react_2.useState)(null), anchorEl4 = _d[0], setAnchorEl4 = _d[1];
206
+ var _e = (0, react_2.useState)(false), open1 = _e[0], setOpen1 = _e[1];
207
+ var _f = (0, react_2.useState)(false), open2 = _f[0], setOpen2 = _f[1];
208
+ var _g = (0, react_2.useState)(false), open3 = _g[0], setOpen3 = _g[1];
209
+ var _h = (0, react_2.useState)(false), open4 = _h[0], setOpen4 = _h[1];
210
+ var _j = (0, react_2.useState)(null), value1 = _j[0], setValue1 = _j[1];
211
+ var _k = (0, react_2.useState)(null), value2 = _k[0], setValue2 = _k[1];
212
+ var _l = (0, react_2.useState)([]), pendingValue3 = _l[0], setPendingValue3 = _l[1];
213
+ var _m = (0, react_2.useState)([]), pendingValue4 = _m[0], setPendingValue4 = _m[1];
214
+ return ((0, jsx_runtime_1.jsxs)("div", { style: storyRow, children: [(0, jsx_runtime_1.jsxs)("div", { style: { alignSelf: "end", gridArea: "1/1/2/2" }, children: [(0, jsx_runtime_1.jsx)(StyledInputDropdownLive1, { "aria-describedby": "live1", onClick: handleClick1, label: "Click Target", sdsStage: open1 ? "userInput" : "default", sdsType: "label", multiple: false, sdsStyle: "minimal" }), (0, jsx_runtime_1.jsx)(index_1.default, { anchorEl: anchorEl1, open: !!open1, onChange: handleChange1, disableCloseOnSelect: false, options: options.slice(0, 3), PopperBaseProps: {
215
+ placement: POPPER_POSITION,
216
+ sx: { width: POPPER_WIDTH },
217
+ }, search: false, multiple: false, hasSections: false, value: value1, onClickAway: handleClickAway1 })] }), (0, jsx_runtime_1.jsxs)("div", { style: { gridArea: "1/2/2/3" }, children: [(0, jsx_runtime_1.jsx)(ButtonIcon_1.default, { "aria-describedby": "live2", "aria-label": "Open menu", onClick: handleClick2, on: false, sdsSize: "large", sdsType: "secondary", sdsIcon: "infoSpeechBubble" }), (0, jsx_runtime_1.jsx)(index_1.default, { anchorEl: anchorEl2, open: !!open2, search: false, multiple: false, onChange: handleChange2, disableCloseOnSelect: false, options: options.slice(0, 3), PopperBaseProps: {
218
+ placement: POPPER_POSITION,
219
+ sx: { width: POPPER_WIDTH },
220
+ }, value: value2, title: "Title Lorem Ipsum", onClickAway: handleClickAway2 })] }), (0, jsx_runtime_1.jsxs)("div", { style: { gridArea: "1/3/2/4" }, children: [(0, jsx_runtime_1.jsx)(StyledInputDropdownLive3, { "aria-describedby": "live3", onClick: handleClick3, label: "Click Target", sdsStage: open3 ? "userInput" : "default", sdsType: "label", multiple: true, sdsStyle: "rounded" }), (0, jsx_runtime_1.jsx)(index_1.default, { anchorEl: anchorEl3, open: !!open3, search: true, multiple: true, onChange: handleChange3, disableCloseOnSelect: true, options: options, PopperBaseProps: {
221
+ placement: POPPER_POSITION,
222
+ sx: { width: POPPER_WIDTH },
223
+ }, value: pendingValue3, onClickAway: handleClickAway3 })] }), (0, jsx_runtime_1.jsxs)("div", { style: { gridArea: "1/4/2/5" }, children: [(0, jsx_runtime_1.jsx)(StyledInputDropdownLive3, { "aria-describedby": "live4", onClick: handleClick4, label: "Click Target", sdsStage: open4 ? "userInput" : "default", sdsType: "label", multiple: true, sdsStyle: "square" }), (0, jsx_runtime_1.jsx)(index_1.default, { anchorEl: anchorEl4, open: !!open4, search: false, multiple: true, hasSections: true, groupBy: function (option) { return option.section; }, onChange: handleChange4, disableCloseOnSelect: true, options: options, PopperBaseProps: {
224
+ placement: POPPER_POSITION,
225
+ sx: { width: POPPER_WIDTH },
226
+ }, value: pendingValue4, onClickAway: handleClickAway4 })] })] }));
227
+ function handleClickAway1() {
228
+ return open1 && setOpen1(false);
229
+ }
230
+ function handleClick1(event) {
231
+ if (open1) {
232
+ setOpen1(false);
233
+ if (anchorEl1) {
234
+ anchorEl1.focus();
235
+ }
236
+ setAnchorEl1(null);
237
+ }
238
+ else {
239
+ setAnchorEl1(event.currentTarget);
240
+ setOpen1(true);
241
+ }
242
+ }
243
+ function handleChange1(_, newValue) {
244
+ setOpen1(false);
245
+ setValue1(newValue);
246
+ }
247
+ function handleClickAway2() {
248
+ return open2 && setOpen2(false);
249
+ }
250
+ function handleClick2(event) {
251
+ if (open2) {
252
+ setOpen2(false);
253
+ if (anchorEl2) {
254
+ anchorEl2.focus();
255
+ }
256
+ setAnchorEl2(null);
257
+ }
258
+ else {
259
+ setAnchorEl2(event.currentTarget);
260
+ setOpen2(true);
261
+ }
262
+ }
263
+ function handleChange2(_, newValue) {
264
+ setOpen2(false);
265
+ setValue2(newValue);
266
+ }
267
+ function handleClickAway3() {
268
+ return open3 && setOpen3(false);
269
+ }
270
+ function handleClick3(event) {
271
+ if (open3) {
272
+ setOpen3(false);
273
+ if (anchorEl3) {
274
+ anchorEl3.focus();
275
+ }
276
+ setAnchorEl3(null);
277
+ }
278
+ else {
279
+ setAnchorEl3(event.currentTarget);
280
+ setOpen3(true);
281
+ }
282
+ }
283
+ function handleChange3(_, newValue) {
284
+ return setPendingValue3(newValue);
285
+ }
286
+ function handleClickAway4() {
287
+ return open4 && setOpen4(false);
288
+ }
289
+ function handleClick4(event) {
290
+ if (open4) {
291
+ setOpen4(false);
292
+ if (anchorEl4) {
293
+ anchorEl4.focus();
294
+ }
295
+ setAnchorEl4(null);
296
+ }
297
+ else {
298
+ setAnchorEl4(event.currentTarget);
299
+ setOpen4(true);
300
+ }
301
+ }
302
+ function handleChange4(_, newValue) {
303
+ return setPendingValue4(newValue);
304
+ }
305
+ };
306
+ exports.LivePreview = {
307
+ args: {
308
+ keepSearchOnSelect: true,
309
+ multiple: false,
310
+ search: false,
311
+ },
312
+ parameters: {
313
+ snapshot: {
314
+ skip: true,
315
+ },
316
+ },
317
+ render: function (args) { return (0, jsx_runtime_1.jsx)(LivePreviewDemo, __assign({}, args)); },
318
+ };
319
+ // Screenshot test
320
+ var ScreenshotTestDemo = function (props) {
321
+ var TITLE_OPTIONS = [undefined, "Sample title text"];
322
+ var SEARCH_OPTIONS = [false, true];
323
+ var GROUP_BY_OPTIONS = [false, true];
324
+ var SCREENSHOT_TEST_TAG_COMPONENT = {
325
+ component: ((0, jsx_runtime_1.jsxs)("div", { children: ["Available Labels:", (0, jsx_runtime_1.jsxs)("div", { style: { marginTop: 10 }, children: [(0, jsx_runtime_1.jsx)(Tag_1.default, { label: "bug", sdsStyle: "rounded", sdsType: "secondary", color: "error" }), (0, jsx_runtime_1.jsx)(Tag_1.default, { label: "feature", sdsStyle: "rounded", sdsType: "secondary", color: "warning" }), (0, jsx_runtime_1.jsx)(Tag_1.default, { label: "refactor", sdsStyle: "rounded", sdsType: "secondary", color: "gray" })] })] })),
326
+ name: "custom 2",
327
+ section: "custom component",
328
+ };
329
+ var SCREENSHOT_TEST_OPTIONS = LIVE_PREVIEW_LABELS.concat(SCREENSHOT_TEST_TAG_COMPONENT);
330
+ var DISPLAY_CONTENTS = {
331
+ display: "contents",
332
+ };
333
+ var MID_LABEL = {
334
+ borderStyle: "solid none none none",
335
+ gridColumn: "1 / 3",
336
+ justifySelf: "stretch",
337
+ paddingTop: 10,
338
+ };
339
+ // loop through all TITLE_OPTIONS
340
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: TITLE_OPTIONS.map(function (title) {
341
+ return (0, jsx_runtime_1.jsx)(DropdownMenuTitle, { title: title }, title);
342
+ }) }));
343
+ // loop through all SEARCH_OPTIONS + create headers for TITLE_OPTIONS
344
+ function DropdownMenuTitle(_a) {
345
+ var title = _a.title;
346
+ var LEVEL_STYLE = {
347
+ columnGap: "25px",
348
+ display: "inline-grid",
349
+ fontFamily: "sans-serif",
350
+ marginLeft: "50px",
351
+ };
352
+ var LABEL_STYLE = {
353
+ fontSize: "2em",
354
+ gridColumn: "1 / 3",
355
+ marginBottom: 10,
356
+ };
357
+ return ((0, jsx_runtime_1.jsxs)("div", { style: LEVEL_STYLE, children: [(0, jsx_runtime_1.jsxs)("p", { style: LABEL_STYLE, children: ["Title: ", (0, jsx_runtime_1.jsx)("b", { children: title ? "yes" : "no" })] }), SEARCH_OPTIONS.map(function (search) {
358
+ return ((0, jsx_runtime_1.jsx)(DropdownMenuSearch, { title: title, search: search }, String(search)));
359
+ })] }));
360
+ }
361
+ function DropdownMenuSearch(_a) {
362
+ var title = _a.title, search = _a.search;
363
+ var SEARCH_LABEL = __assign(__assign({}, MID_LABEL), { borderWidth: "2px", fontSize: "1.17em", margin: 0 });
364
+ var LEVEL_STYLE = {
365
+ margin: "0 300px 475px 0",
366
+ };
367
+ var GROUP_BY_LABEL = {
368
+ fontSize: "0.67em",
369
+ margin: "10px 0 475px",
370
+ };
371
+ return ((0, jsx_runtime_1.jsxs)("div", { style: DISPLAY_CONTENTS, children: [(0, jsx_runtime_1.jsxs)("p", { style: SEARCH_LABEL, children: ["Search: ", (0, jsx_runtime_1.jsx)("b", { children: search ? "yes" : "no" })] }), GROUP_BY_OPTIONS.map(function (groupBy) {
372
+ return ((0, jsx_runtime_1.jsx)("div", { style: LEVEL_STYLE, children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("p", { style: GROUP_BY_LABEL, children: ["Grouped: ", (0, jsx_runtime_1.jsx)("b", { children: groupBy ? "yes" : "no" })] }), (0, react_1.createElement)(DropdownMenu, __assign({}, props, { hasSections: true, groupBy: groupBy &&
373
+ (function (option) {
374
+ return option.section;
375
+ }), options: SCREENSHOT_TEST_OPTIONS, title: title, search: search, key: String(groupBy) }))] }) }, "level-".concat(String(groupBy))));
376
+ })] }));
377
+ }
378
+ }; // close ScreenShotTestDemo
379
+ exports.ScreenshotTest = {
380
+ parameters: {
381
+ axe: {
382
+ timeout: 10 * 1000,
383
+ },
384
+ controls: {
385
+ exclude: [
386
+ "groupBy",
387
+ "keepSearchOnSelect",
388
+ "multiple",
389
+ "search",
390
+ "title",
391
+ "ClickAwayListenerProps",
392
+ "label",
393
+ ],
394
+ },
395
+ snapshot: {
396
+ skip: true,
397
+ },
398
+ },
399
+ render: function (args) { return (0, jsx_runtime_1.jsx)(ScreenshotTestDemo, __assign({}, args)); },
400
+ };
401
+ // Test
402
+ var TestDemo = function (props) {
403
+ var multiple = props.multiple, _a = props.options, options = _a === void 0 ? GITHUB_LABELS_1.GITHUB_LABELS : _a, search = props.search;
404
+ var anchorRef = (0, react_2.useRef)(null);
405
+ var _b = (0, react_2.useState)(null), anchorEl = _b[0], setAnchorEl = _b[1];
406
+ var _c = (0, react_2.useState)(multiple ? [] : null), value = _c[0], setValue = _c[1];
407
+ var _d = (0, react_2.useState)([]), pendingValue = _d[0], setPendingValue = _d[1];
408
+ (0, react_2.useEffect)(function () {
409
+ setAnchorEl(anchorRef.current);
410
+ }, [anchorRef.current]);
411
+ return ((0, jsx_runtime_1.jsx)("div", { style: { margin: "16px 0 0 24px" }, ref: anchorRef, children: (0, jsx_runtime_1.jsx)(index_1.default, __assign({ anchorEl: anchorEl, open: true, search: search, multiple: multiple, value: multiple ? pendingValue : value, onChange: handleChange, disableCloseOnSelect: multiple, options: options, onClickAway: handleClickAway, groupBy: function (option) {
412
+ return option.section;
413
+ } }, props)) }));
414
+ function handleClickAway() {
415
+ return multiple && setValue(pendingValue);
416
+ }
417
+ function handleChange(_, newValue) {
418
+ if (!multiple) {
419
+ setValue(newValue);
420
+ }
421
+ return setPendingValue(newValue);
422
+ }
423
+ };
424
+ exports.Test = {
425
+ args: {
426
+ keepSearchOnSelect: false,
427
+ multiple: true,
428
+ search: true,
429
+ title: "Github Labels",
430
+ },
431
+ parameters: {
432
+ snapshot: {
433
+ skip: true,
434
+ },
435
+ },
436
+ render: function (args) { return (0, jsx_runtime_1.jsx)(TestDemo, __assign({ "data-testid": "dropdown-menu" }, args)); },
437
+ };
438
+ var templateObject_1, templateObject_2;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ var jsx_runtime_1 = require("react/jsx-runtime");
38
+ var story_utils_1 = require("@chanzuckerberg/story-utils");
39
+ var react_1 = require("@storybook/react");
40
+ var react_2 = require("@testing-library/react");
41
+ var snapshotTestStoryFile = __importStar(require("./index.stories"));
42
+ var index_stories_1 = __importStar(require("./index.stories"));
43
+ var Test = (0, react_1.composeStory)(index_stories_1.Test, index_stories_1.default);
44
+ describe("<DropdownMenu />", function () {
45
+ (0, story_utils_1.generateSnapshots)(snapshotTestStoryFile);
46
+ it("renders DropdownMenu component", function () {
47
+ (0, react_2.render)((0, jsx_runtime_1.jsx)(Test, __assign({}, Test.args)));
48
+ var DropdownMenuElement = react_2.screen.getByTestId("dropdown-menu");
49
+ expect(DropdownMenuElement).not.toBeNull();
50
+ });
51
+ });
@@ -0,0 +1,40 @@
1
+ import Autocomplete from "@mui/material/Autocomplete";
2
+ import { ReactElement } from "react";
3
+ import { CommonThemeProps } from "../styles";
4
+ export interface StyleProps extends CommonThemeProps {
5
+ count?: number;
6
+ hasSections?: boolean;
7
+ icon?: ReactElement;
8
+ search?: boolean;
9
+ title?: string;
10
+ }
11
+ export declare const StyledAutocomplete: typeof Autocomplete;
12
+ export declare const InputBaseWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & StyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
+ export declare const StyledMenuInputSearch: import("@emotion/styled").StyledComponent<Pick<import("../InputSearch").InputSearchProps, "className" | "style" | "classes" | "children" | "sx" | "variant" | "color" | "translate" | "margin" | "slot" | "select" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "fullWidth" | "size" | "name" | "type" | "value" | "autoComplete" | "required" | "rows" | "error" | "inputProps" | "inputRef" | "focused" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "maxRows" | "minRows" | "SelectProps" | keyof import("../InputSearch").AccessibleInputSearchProps | keyof import("../InputSearch/style").InputSearchExtraProps> & import("react").RefAttributes<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
14
+ search: boolean;
15
+ }, {}, {}>;
16
+ export declare const StyledHeaderTitle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
17
+ search: boolean;
18
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
19
+ export declare const StyledPopper: import("@emotion/styled").StyledComponent<Omit<import("@mui/base").PopperProps<"div">, "direction"> & {
20
+ component?: import("react").ElementType<any> | undefined;
21
+ components?: {
22
+ Root?: import("react").ElementType<any> | undefined;
23
+ } | undefined;
24
+ componentsProps?: {
25
+ root?: import("@mui/base").SlotComponentProps<"div", import("@mui/base").PopperRootSlotPropsOverrides, import("@mui/base").PopperOwnProps> | undefined;
26
+ } | undefined;
27
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
28
+ } & import("react").RefAttributes<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
29
+ export declare const StyledPaper: import("@emotion/styled").StyledComponent<{
30
+ children?: import("react").ReactNode;
31
+ classes?: Partial<import("@mui/material").PaperClasses> | undefined;
32
+ elevation?: number | undefined;
33
+ square?: boolean | undefined;
34
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
35
+ variant?: import("@mui/types").OverridableStringUnion<"elevation" | "outlined", import("@mui/material").PaperPropsVariantOverrides> | undefined;
36
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
37
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
38
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "elevation" | "square" | "sx" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
39
+ export declare const StyledMenuItemDetails: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & CommonThemeProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
40
+ export declare const StyledMenuItemText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.StyledMenuItemText = exports.StyledMenuItemDetails = exports.StyledPaper = exports.StyledPopper = exports.StyledHeaderTitle = exports.StyledMenuInputSearch = exports.InputBaseWrapper = exports.StyledAutocomplete = void 0;
11
+ var material_1 = require("@mui/material");
12
+ var Autocomplete_1 = __importDefault(require("@mui/material/Autocomplete"));
13
+ var styles_1 = require("@mui/material/styles");
14
+ var InputSearch_1 = __importDefault(require("../InputSearch"));
15
+ var styles_2 = require("../styles");
16
+ var doNotForwardProps = [
17
+ "anchorEl",
18
+ "count",
19
+ "keepSearchOnSelect",
20
+ "search",
21
+ "InputBaseProps",
22
+ "hasSections",
23
+ "title",
24
+ "PopperBaseProps",
25
+ "onClickAway",
26
+ "ClickAwayListenerProps",
27
+ ];
28
+ exports.StyledAutocomplete = (0, styles_1.styled)(Autocomplete_1.default, {
29
+ shouldForwardProp: function (prop) { return !doNotForwardProps.includes(prop); },
30
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n + .MuiAutocomplete-popper\n > .MuiAutocomplete-paper\n .MuiAutocomplete-groupLabel {\n ", "\n }\n\n ", "\n"], ["\n + .MuiAutocomplete-popper\n > .MuiAutocomplete-paper\n .MuiAutocomplete-groupLabel {\n ", "\n }\n\n ", "\n"])), styles_2.fontCapsXxxxs, function (props) {
31
+ var search = props.search, title = props.title, hasSections = props.hasSections;
32
+ var spacings = (0, styles_2.getSpaces)(props);
33
+ var colors = (0, styles_2.getColors)(props);
34
+ var borders = (0, styles_2.getBorders)(props);
35
+ return "\n ".concat(!search && "height: 0", ";\n\n .MuiOutlinedInput-root.MuiInputBase-formControl.MuiInputBase-adornedEnd {\n padding: 0 ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.l, "px 0 0;\n\n .MuiAutocomplete-input {\n padding: ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.xs, "px ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.l, "px;\n }\n }\n\n & + .MuiAutocomplete-popper {\n position: relative !important;\n transform: none !important;\n width: 100% !important;\n }\n\n & + .MuiAutocomplete-popper > .MuiAutocomplete-paper {\n\n ").concat(search || title || hasSections
36
+ ? "padding-left: ".concat(spacings === null || spacings === void 0 ? void 0 : spacings.s, "px !important;")
37
+ : "", "\n\n .MuiAutocomplete-listbox {\n max-height: 40vh;\n padding-top: 0;\n padding-bottom: 0;\n \n ").concat(search || title || hasSections
38
+ ? "padding-right: ".concat(spacings === null || spacings === void 0 ? void 0 : spacings.s, "px;")
39
+ : "", "\n\n .MuiAutocomplete-option {\n min-height: unset;\n }\n\n .MuiAutocomplete-option.Mui-focused {\n background-color: ").concat(colors === null || colors === void 0 ? void 0 : colors.gray[100], ";\n }\n\n .MuiAutocomplete-option[aria-selected=\"true\"] {\n background-color: white;\n }\n\n .MuiAutocomplete-option[aria-disabled=\"true\"] {\n opacity: 1;\n }\n\n .MuiAutocomplete-option[aria-selected=\"true\"].Mui-focused {\n background-color: ").concat(colors === null || colors === void 0 ? void 0 : colors.gray[100], ";\n }\n\n & > li:last-child .MuiAutocomplete-groupUl {\n border-bottom: none;\n margin-bottom: 0;\n }\n }\n\n .MuiAutocomplete-groupLabel {\n top: 0;\n color: ").concat(colors === null || colors === void 0 ? void 0 : colors.gray[500], ";\n padding: ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.xxs, "px 0 ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.xxs, "px 0;\n }\n\n .MuiAutocomplete-groupUl {\n margin-bottom: ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.m, "px;\n position: relative;\n padding: 0 0 ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.xs, "px 0 0;\n border-bottom: ").concat(borders === null || borders === void 0 ? void 0 : borders.gray[200], ";\n\n & li:last-of-type {\n position: relative;\n margin-bottom: ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.xxs, "px;\n }\n } \n ");
40
+ });
41
+ exports.InputBaseWrapper = (0, styles_1.styled)("div", {
42
+ shouldForwardProp: function (prop) { return !doNotForwardProps.includes(prop); },
43
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
44
+ var search = props.search;
45
+ if (!search) {
46
+ // (thuang): We cannot use `display: none;` here, since
47
+ // the component needs to be in the DOM to handle backdrop
48
+ // click to close the menu
49
+ return "\n border: 0;\n padding: 0;\n\n white-space: nowrap;\n\n clip-path: inset(100%);\n clip: rect(0 0 0 0);\n overflow: hidden;\n margin: 0;\n ";
50
+ }
51
+ var spacings = (0, styles_2.getSpaces)(props);
52
+ return "\n margin: ".concat(spacings === null || spacings === void 0 ? void 0 : spacings.s, "px;\n ");
53
+ });
54
+ exports.StyledMenuInputSearch = (0, styles_1.styled)(InputSearch_1.default, {
55
+ shouldForwardProp: function (prop) { return !doNotForwardProps.includes(prop); },
56
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin: 0;\n .MuiInputBase-root {\n width: 100%;\n }\n /* (thuang): Works with attribute inputMode: \"none\" to hide mobile keyboard */\n caret-color: ", ";\n"], ["\n margin: 0;\n .MuiInputBase-root {\n width: 100%;\n }\n /* (thuang): Works with attribute inputMode: \"none\" to hide mobile keyboard */\n caret-color: ", ";\n"])), function (_a) {
57
+ var search = _a.search;
58
+ return (search ? "auto" : "transparent");
59
+ });
60
+ exports.StyledHeaderTitle = (0, styles_1.styled)("div", {
61
+ shouldForwardProp: function (prop) { return !doNotForwardProps.includes(prop); },
62
+ })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", "\n\n ", "\n"], ["\n ", "\n\n ", "\n"])), styles_2.fontHeaderXs, function (props) {
63
+ var search = props.search;
64
+ var typography = (0, styles_2.getTypography)(props);
65
+ var spacings = (0, styles_2.getSpaces)(props);
66
+ return "\n font-family: ".concat(typography === null || typography === void 0 ? void 0 : typography.fontFamily, ";\n color: black;\n padding-top: ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.xxs, "px;\n padding-right: ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.s, "px;\n padding-left: ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.s, "px; \n ").concat(search ? "padding-bottom: 0px;" : "padding-bottom: ".concat(spacings === null || spacings === void 0 ? void 0 : spacings.xs, "px;"), "\n ");
67
+ });
68
+ exports.StyledPopper = (0, styles_1.styled)(material_1.Popper, {
69
+ shouldForwardProp: function (prop) {
70
+ return !doNotForwardProps.includes(prop) || prop === "anchorEl";
71
+ },
72
+ })(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n .MuiAutocomplete-popperDisablePortal {\n position: relative;\n width: 100% !important;\n box-shadow: none;\n padding: 0;\n border: none;\n }\n\n ", "\n"], ["\n .MuiAutocomplete-popperDisablePortal {\n position: relative;\n width: 100% !important;\n box-shadow: none;\n padding: 0;\n border: none;\n }\n\n ", "\n"])), function (props) {
73
+ var borders = (0, styles_2.getBorders)(props);
74
+ var corners = (0, styles_2.getCorners)(props);
75
+ var shadows = (0, styles_2.getShadows)(props);
76
+ var spacings = (0, styles_2.getSpaces)(props);
77
+ return "\n background-color: white;\n border: ".concat(borders === null || borders === void 0 ? void 0 : borders.gray[100], ";\n border-radius: ").concat(corners === null || corners === void 0 ? void 0 : corners.m, "px;\n box-shadow: ").concat(shadows === null || shadows === void 0 ? void 0 : shadows.m, ";\n padding: ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.xs, "px;\n box-sizing: border-box;\n z-index: 1400;\n ");
78
+ });
79
+ exports.StyledPaper = (0, styles_1.styled)(material_1.Paper)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n box-shadow: none;\n margin: 0;\n border-radius: 0;\n padding-top: 0;\n padding-bottom: 0;\n"], ["\n box-shadow: none;\n margin: 0;\n border-radius: 0;\n padding-top: 0;\n padding-bottom: 0;\n"])));
80
+ exports.StyledMenuItemDetails = (0, styles_1.styled)("div")(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), styles_2.fontBodyXxs, function (props) {
81
+ var colors = (0, styles_2.getColors)(props);
82
+ return "\n color: ".concat(colors === null || colors === void 0 ? void 0 : colors.gray[500], ";\n white-space: pre-wrap;\n ");
83
+ });
84
+ exports.StyledMenuItemText = (0, styles_1.styled)("div")(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
85
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var jsx_runtime_1 = require("react/jsx-runtime");
4
+ var components_1 = require("@czi-sds/components");
5
+ var IconNameSpaceTest = function () {
6
+ return ((0, jsx_runtime_1.jsx)(components_1.Icon, { color: "primary", shade: 400, sdsIcon: "bacteria", sdsSize: "xl", sdsType: "static" }));
7
+ };