@czi-sds/components 15.3.0 → 15.4.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 (513) hide show
  1. package/dist/index.cjs.d.ts +132 -80
  2. package/dist/index.cjs.js +926 -734
  3. package/dist/index.esm.d.ts +132 -80
  4. package/dist/index.esm.js +928 -737
  5. package/dist/tsconfig.tsbuildinfo +1 -1
  6. package/package.json +2 -2
  7. package/dist/src/common/helpers/scrollStop.d.ts +0 -8
  8. package/dist/src/common/helpers/scrollStop.js +0 -54
  9. package/dist/src/common/storybookConstants.d.ts +0 -3
  10. package/dist/src/common/storybookConstants.js +0 -2
  11. package/dist/src/common/utils.d.ts +0 -2
  12. package/dist/src/common/utils.js +0 -9
  13. package/dist/src/common/warnings.d.ts +0 -10
  14. package/dist/src/common/warnings.js +0 -60
  15. package/dist/src/common/warnings.test.d.ts +0 -1
  16. package/dist/src/common/warnings.test.js +0 -19
  17. package/dist/src/core/Accordion/Accordion.namespace-test.d.ts +0 -1
  18. package/dist/src/core/Accordion/Accordion.namespace-test.js +0 -18
  19. package/dist/src/core/Accordion/__snapshots__/index.test.js.snap +0 -64
  20. package/dist/src/core/Accordion/components/AccordionDetails/index.d.ts +0 -3
  21. package/dist/src/core/Accordion/components/AccordionDetails/index.js +0 -9
  22. package/dist/src/core/Accordion/components/AccordionDetails/style.d.ts +0 -2
  23. package/dist/src/core/Accordion/components/AccordionDetails/style.js +0 -16
  24. package/dist/src/core/Accordion/components/AccordionHeader/index.d.ts +0 -7
  25. package/dist/src/core/Accordion/components/AccordionHeader/index.js +0 -13
  26. package/dist/src/core/Accordion/components/AccordionHeader/style.d.ts +0 -27
  27. package/dist/src/core/Accordion/components/AccordionHeader/style.js +0 -21
  28. package/dist/src/core/Accordion/index.d.ts +0 -12
  29. package/dist/src/core/Accordion/index.js +0 -38
  30. package/dist/src/core/Accordion/index.stories.d.ts +0 -28
  31. package/dist/src/core/Accordion/index.stories.js +0 -82
  32. package/dist/src/core/Accordion/index.test.d.ts +0 -1
  33. package/dist/src/core/Accordion/index.test.js +0 -58
  34. package/dist/src/core/Accordion/style.d.ts +0 -30
  35. package/dist/src/core/Accordion/style.js +0 -28
  36. package/dist/src/core/Alert/index.d.ts +0 -7
  37. package/dist/src/core/Alert/index.js +0 -22
  38. package/dist/src/core/Alert/index.stories.d.ts +0 -19
  39. package/dist/src/core/Alert/index.stories.js +0 -70
  40. package/dist/src/core/Alert/style.d.ts +0 -1
  41. package/dist/src/core/Alert/style.js +0 -23
  42. package/dist/src/core/Banner/Banner.namespace-test.d.ts +0 -1
  43. package/dist/src/core/Banner/Banner.namespace-test.js +0 -18
  44. package/dist/src/core/Banner/banner.test.d.ts +0 -1
  45. package/dist/src/core/Banner/banner.test.js +0 -126
  46. package/dist/src/core/Banner/index.d.ts +0 -11
  47. package/dist/src/core/Banner/index.js +0 -47
  48. package/dist/src/core/Banner/index.stories.d.ts +0 -46
  49. package/dist/src/core/Banner/index.stories.js +0 -106
  50. package/dist/src/core/Banner/style.d.ts +0 -13
  51. package/dist/src/core/Banner/style.js +0 -55
  52. package/dist/src/core/Button/Button.namespace-test.d.ts +0 -1
  53. package/dist/src/core/Button/Button.namespace-test.js +0 -18
  54. package/dist/src/core/Button/index.d.ts +0 -18
  55. package/dist/src/core/Button/index.js +0 -54
  56. package/dist/src/core/Button/index.stories.d.ts +0 -72
  57. package/dist/src/core/Button/index.stories.js +0 -215
  58. package/dist/src/core/Button/index.test.d.ts +0 -1
  59. package/dist/src/core/Button/index.test.js +0 -40
  60. package/dist/src/core/Button/style.d.ts +0 -180
  61. package/dist/src/core/Button/style.js +0 -59
  62. package/dist/src/core/ButtonDropdown/ButtonDropdown.namespace-test.d.ts +0 -1
  63. package/dist/src/core/ButtonDropdown/ButtonDropdown.namespace-test.js +0 -18
  64. package/dist/src/core/ButtonDropdown/index.d.ts +0 -18
  65. package/dist/src/core/ButtonDropdown/index.js +0 -30
  66. package/dist/src/core/ButtonDropdown/index.stories.d.ts +0 -35
  67. package/dist/src/core/ButtonDropdown/index.stories.js +0 -79
  68. package/dist/src/core/ButtonDropdown/index.test.d.ts +0 -1
  69. package/dist/src/core/ButtonDropdown/index.test.js +0 -41
  70. package/dist/src/core/ButtonIcon/ButtonIcon.namespace-test.d.ts +0 -1
  71. package/dist/src/core/ButtonIcon/ButtonIcon.namespace-test.js +0 -18
  72. package/dist/src/core/ButtonIcon/index.d.ts +0 -15
  73. package/dist/src/core/ButtonIcon/index.js +0 -34
  74. package/dist/src/core/ButtonIcon/index.stories.d.ts +0 -39
  75. package/dist/src/core/ButtonIcon/index.stories.js +0 -239
  76. package/dist/src/core/ButtonIcon/index.test.d.ts +0 -1
  77. package/dist/src/core/ButtonIcon/index.test.js +0 -41
  78. package/dist/src/core/ButtonIcon/style.d.ts +0 -41
  79. package/dist/src/core/ButtonIcon/style.js +0 -68
  80. package/dist/src/core/Callout/Callout.namespace-test.d.ts +0 -1
  81. package/dist/src/core/Callout/Callout.namespace-test.js +0 -18
  82. package/dist/src/core/Callout/components/CalloutTitle/index.d.ts +0 -3
  83. package/dist/src/core/Callout/components/CalloutTitle/index.js +0 -9
  84. package/dist/src/core/Callout/components/CalloutTitle/style.d.ts +0 -1
  85. package/dist/src/core/Callout/components/CalloutTitle/style.js +0 -16
  86. package/dist/src/core/Callout/index.d.ts +0 -18
  87. package/dist/src/core/Callout/index.js +0 -89
  88. package/dist/src/core/Callout/index.stories.d.ts +0 -14
  89. package/dist/src/core/Callout/index.stories.js +0 -80
  90. package/dist/src/core/Callout/style.d.ts +0 -7
  91. package/dist/src/core/Callout/style.js +0 -31
  92. package/dist/src/core/CellBasic/CellBasic.namespace-test.d.ts +0 -1
  93. package/dist/src/core/CellBasic/CellBasic.namespace-test.js +0 -7
  94. package/dist/src/core/CellBasic/index.d.ts +0 -21
  95. package/dist/src/core/CellBasic/index.js +0 -32
  96. package/dist/src/core/CellBasic/index.stories.d.ts +0 -33
  97. package/dist/src/core/CellBasic/index.stories.js +0 -143
  98. package/dist/src/core/CellBasic/index.test.d.ts +0 -1
  99. package/dist/src/core/CellBasic/index.test.js +0 -124
  100. package/dist/src/core/CellBasic/style.d.ts +0 -18
  101. package/dist/src/core/CellBasic/style.js +0 -86
  102. package/dist/src/core/CellComponent/CellComponent.namespace-test.d.ts +0 -1
  103. package/dist/src/core/CellComponent/CellComponent.namespace-test.js +0 -7
  104. package/dist/src/core/CellComponent/index.d.ts +0 -8
  105. package/dist/src/core/CellComponent/index.js +0 -21
  106. package/dist/src/core/CellComponent/index.stories.d.ts +0 -21
  107. package/dist/src/core/CellComponent/index.stories.js +0 -92
  108. package/dist/src/core/CellComponent/index.test.d.ts +0 -1
  109. package/dist/src/core/CellComponent/index.test.js +0 -110
  110. package/dist/src/core/CellComponent/style.d.ts +0 -9
  111. package/dist/src/core/CellComponent/style.js +0 -32
  112. package/dist/src/core/CellHeader/CellHeader.namespace-test.d.ts +0 -1
  113. package/dist/src/core/CellHeader/CellHeader.namespace-test.js +0 -8
  114. package/dist/src/core/CellHeader/index.d.ts +0 -20
  115. package/dist/src/core/CellHeader/index.js +0 -47
  116. package/dist/src/core/CellHeader/index.stories.d.ts +0 -26
  117. package/dist/src/core/CellHeader/index.stories.js +0 -128
  118. package/dist/src/core/CellHeader/index.test.d.ts +0 -1
  119. package/dist/src/core/CellHeader/index.test.js +0 -112
  120. package/dist/src/core/CellHeader/style.d.ts +0 -9
  121. package/dist/src/core/CellHeader/style.js +0 -50
  122. package/dist/src/core/Chip/index.d.ts +0 -9
  123. package/dist/src/core/Chip/index.js +0 -29
  124. package/dist/src/core/Chip/index.stories.d.ts +0 -58
  125. package/dist/src/core/Chip/index.stories.js +0 -90
  126. package/dist/src/core/Chip/style.d.ts +0 -26
  127. package/dist/src/core/Chip/style.js +0 -95
  128. package/dist/src/core/ComplexFilter/ComplexFilter.namespace-test.d.ts +0 -1
  129. package/dist/src/core/ComplexFilter/ComplexFilter.namespace-test.js +0 -20
  130. package/dist/src/core/ComplexFilter/components/Chips/index.d.ts +0 -8
  131. package/dist/src/core/ComplexFilter/components/Chips/index.js +0 -21
  132. package/dist/src/core/ComplexFilter/index.d.ts +0 -23
  133. package/dist/src/core/ComplexFilter/index.js +0 -119
  134. package/dist/src/core/ComplexFilter/index.stories.d.ts +0 -33
  135. package/dist/src/core/ComplexFilter/index.stories.js +0 -126
  136. package/dist/src/core/ComplexFilter/index.test.d.ts +0 -1
  137. package/dist/src/core/ComplexFilter/index.test.js +0 -51
  138. package/dist/src/core/ComplexFilter/style.d.ts +0 -3
  139. package/dist/src/core/ComplexFilter/style.js +0 -15
  140. package/dist/src/core/Dialog/Dialog.namespace-test.d.ts +0 -1
  141. package/dist/src/core/Dialog/Dialog.namespace-test.js +0 -8
  142. package/dist/src/core/Dialog/__snapshots__/index.test.js.snap +0 -382
  143. package/dist/src/core/Dialog/components/common.d.ts +0 -6
  144. package/dist/src/core/Dialog/components/common.js +0 -5
  145. package/dist/src/core/Dialog/index.d.ts +0 -18
  146. package/dist/src/core/Dialog/index.js +0 -50
  147. package/dist/src/core/Dialog/index.stories.d.ts +0 -46
  148. package/dist/src/core/Dialog/index.stories.js +0 -147
  149. package/dist/src/core/Dialog/index.test.d.ts +0 -1
  150. package/dist/src/core/Dialog/index.test.js +0 -62
  151. package/dist/src/core/DialogActions/index.d.ts +0 -9
  152. package/dist/src/core/DialogActions/index.js +0 -23
  153. package/dist/src/core/DialogActions/style.d.ts +0 -5
  154. package/dist/src/core/DialogActions/style.js +0 -20
  155. package/dist/src/core/DialogContent/index.d.ts +0 -5
  156. package/dist/src/core/DialogContent/index.js +0 -23
  157. package/dist/src/core/DialogContent/style.d.ts +0 -1
  158. package/dist/src/core/DialogContent/style.js +0 -11
  159. package/dist/src/core/DialogPaper/index.d.ts +0 -8
  160. package/dist/src/core/DialogPaper/index.js +0 -27
  161. package/dist/src/core/DialogPaper/style.d.ts +0 -16
  162. package/dist/src/core/DialogPaper/style.js +0 -44
  163. package/dist/src/core/DialogTitle/components/CloseButton/index.d.ts +0 -5
  164. package/dist/src/core/DialogTitle/components/CloseButton/index.js +0 -31
  165. package/dist/src/core/DialogTitle/components/CloseButton/style.d.ts +0 -2
  166. package/dist/src/core/DialogTitle/components/CloseButton/style.js +0 -18
  167. package/dist/src/core/DialogTitle/index.d.ts +0 -14
  168. package/dist/src/core/DialogTitle/index.js +0 -42
  169. package/dist/src/core/DialogTitle/style.d.ts +0 -46
  170. package/dist/src/core/DialogTitle/style.js +0 -20
  171. package/dist/src/core/Dropdown/Dropdown.namespace-test.d.ts +0 -1
  172. package/dist/src/core/Dropdown/Dropdown.namespace-test.js +0 -20
  173. package/dist/src/core/Dropdown/index.d.ts +0 -31
  174. package/dist/src/core/Dropdown/index.js +0 -160
  175. package/dist/src/core/Dropdown/index.stories.d.ts +0 -68
  176. package/dist/src/core/Dropdown/index.stories.js +0 -215
  177. package/dist/src/core/Dropdown/index.test.d.ts +0 -1
  178. package/dist/src/core/Dropdown/index.test.js +0 -229
  179. package/dist/src/core/Dropdown/style.d.ts +0 -5
  180. package/dist/src/core/Dropdown/style.js +0 -19
  181. package/dist/src/core/DropdownMenu/DropdownMenu.namespace-test.d.ts +0 -1
  182. package/dist/src/core/DropdownMenu/DropdownMenu.namespace-test.js +0 -20
  183. package/dist/src/core/DropdownMenu/GITHUB_LABELS.d.ts +0 -2
  184. package/dist/src/core/DropdownMenu/GITHUB_LABELS.js +0 -83
  185. package/dist/src/core/DropdownMenu/index.d.ts +0 -42
  186. package/dist/src/core/DropdownMenu/index.js +0 -83
  187. package/dist/src/core/DropdownMenu/index.stories.d.ts +0 -55
  188. package/dist/src/core/DropdownMenu/index.stories.js +0 -438
  189. package/dist/src/core/DropdownMenu/index.test.d.ts +0 -1
  190. package/dist/src/core/DropdownMenu/index.test.js +0 -51
  191. package/dist/src/core/DropdownMenu/style.d.ts +0 -40
  192. package/dist/src/core/DropdownMenu/style.js +0 -85
  193. package/dist/src/core/Icon/Icon.namespace-test.d.ts +0 -1
  194. package/dist/src/core/Icon/Icon.namespace-test.js +0 -7
  195. package/dist/src/core/Icon/index.d.ts +0 -14
  196. package/dist/src/core/Icon/index.js +0 -25
  197. package/dist/src/core/Icon/index.stories.d.ts +0 -34
  198. package/dist/src/core/Icon/index.stories.js +0 -171
  199. package/dist/src/core/Icon/map.d.ts +0 -98
  200. package/dist/src/core/Icon/map.js +0 -476
  201. package/dist/src/core/Icon/style.d.ts +0 -36
  202. package/dist/src/core/Icon/style.js +0 -42
  203. package/dist/src/core/InputCheckbox/InputCheckbox.namespace-test.d.ts +0 -1
  204. package/dist/src/core/InputCheckbox/InputCheckbox.namespace-test.js +0 -9
  205. package/dist/src/core/InputCheckbox/index.d.ts +0 -13
  206. package/dist/src/core/InputCheckbox/index.js +0 -55
  207. package/dist/src/core/InputCheckbox/index.stories.d.ts +0 -35
  208. package/dist/src/core/InputCheckbox/index.stories.js +0 -119
  209. package/dist/src/core/InputCheckbox/index.test.d.ts +0 -1
  210. package/dist/src/core/InputCheckbox/index.test.js +0 -62
  211. package/dist/src/core/InputCheckbox/styles.d.ts +0 -6
  212. package/dist/src/core/InputCheckbox/styles.js +0 -24
  213. package/dist/src/core/InputDropdown/InputDropdown.namespace-test.d.ts +0 -1
  214. package/dist/src/core/InputDropdown/InputDropdown.namespace-test.js +0 -8
  215. package/dist/src/core/InputDropdown/index.d.ts +0 -8
  216. package/dist/src/core/InputDropdown/index.js +0 -83
  217. package/dist/src/core/InputDropdown/index.stories.d.ts +0 -59
  218. package/dist/src/core/InputDropdown/index.stories.js +0 -264
  219. package/dist/src/core/InputDropdown/index.test.d.ts +0 -1
  220. package/dist/src/core/InputDropdown/index.test.js +0 -58
  221. package/dist/src/core/InputDropdown/style.d.ts +0 -38
  222. package/dist/src/core/InputDropdown/style.js +0 -130
  223. package/dist/src/core/InputRadio/InputRadio.namespace-test.d.ts +0 -1
  224. package/dist/src/core/InputRadio/InputRadio.namespace-test.js +0 -8
  225. package/dist/src/core/InputRadio/index.d.ts +0 -14
  226. package/dist/src/core/InputRadio/index.js +0 -40
  227. package/dist/src/core/InputRadio/index.stories.d.ts +0 -32
  228. package/dist/src/core/InputRadio/index.stories.js +0 -64
  229. package/dist/src/core/InputRadio/index.test.d.ts +0 -1
  230. package/dist/src/core/InputRadio/index.test.js +0 -92
  231. package/dist/src/core/InputRadio/style.d.ts +0 -6
  232. package/dist/src/core/InputRadio/style.js +0 -24
  233. package/dist/src/core/InputSearch/InputSearch.namespace-test.d.ts +0 -1
  234. package/dist/src/core/InputSearch/InputSearch.namespace-test.js +0 -8
  235. package/dist/src/core/InputSearch/index.d.ts +0 -16
  236. package/dist/src/core/InputSearch/index.js +0 -75
  237. package/dist/src/core/InputSearch/index.stories.d.ts +0 -35
  238. package/dist/src/core/InputSearch/index.stories.js +0 -104
  239. package/dist/src/core/InputSearch/index.test.d.ts +0 -1
  240. package/dist/src/core/InputSearch/index.test.js +0 -70
  241. package/dist/src/core/InputSearch/style.d.ts +0 -12
  242. package/dist/src/core/InputSearch/style.js +0 -47
  243. package/dist/src/core/InputSlider/InputSlider.namespace-test.d.ts +0 -1
  244. package/dist/src/core/InputSlider/InputSlider.namespace-test.js +0 -7
  245. package/dist/src/core/InputSlider/__snapshots__/index.test.js.snap +0 -124
  246. package/dist/src/core/InputSlider/index.d.ts +0 -8
  247. package/dist/src/core/InputSlider/index.js +0 -23
  248. package/dist/src/core/InputSlider/index.stories.d.ts +0 -43
  249. package/dist/src/core/InputSlider/index.stories.js +0 -160
  250. package/dist/src/core/InputSlider/index.test.d.ts +0 -1
  251. package/dist/src/core/InputSlider/index.test.js +0 -52
  252. package/dist/src/core/InputSlider/style.d.ts +0 -76
  253. package/dist/src/core/InputSlider/style.js +0 -34
  254. package/dist/src/core/InputText/InputText.namespace-test.d.ts +0 -1
  255. package/dist/src/core/InputText/InputText.namespace-test.js +0 -7
  256. package/dist/src/core/InputText/__snapshots__/index.test.js.snap +0 -10
  257. package/dist/src/core/InputText/index.d.ts +0 -14
  258. package/dist/src/core/InputText/index.js +0 -52
  259. package/dist/src/core/InputText/index.stories.d.ts +0 -29
  260. package/dist/src/core/InputText/index.stories.js +0 -100
  261. package/dist/src/core/InputText/index.test.d.ts +0 -1
  262. package/dist/src/core/InputText/index.test.js +0 -67
  263. package/dist/src/core/InputText/style.d.ts +0 -13
  264. package/dist/src/core/InputText/style.js +0 -45
  265. package/dist/src/core/InputToggle/InputToggle.namespace-test.d.ts +0 -1
  266. package/dist/src/core/InputToggle/InputToggle.namespace-test.js +0 -7
  267. package/dist/src/core/InputToggle/__snapshots__/index.test.js.snap +0 -26
  268. package/dist/src/core/InputToggle/index.d.ts +0 -7
  269. package/dist/src/core/InputToggle/index.js +0 -42
  270. package/dist/src/core/InputToggle/index.stories.d.ts +0 -20
  271. package/dist/src/core/InputToggle/index.stories.js +0 -63
  272. package/dist/src/core/InputToggle/index.test.d.ts +0 -1
  273. package/dist/src/core/InputToggle/index.test.js +0 -52
  274. package/dist/src/core/InputToggle/style.d.ts +0 -9
  275. package/dist/src/core/InputToggle/style.js +0 -38
  276. package/dist/src/core/Link/Link.namespace-test.d.ts +0 -1
  277. package/dist/src/core/Link/Link.namespace-test.js +0 -7
  278. package/dist/src/core/Link/index.d.ts +0 -8
  279. package/dist/src/core/Link/index.js +0 -28
  280. package/dist/src/core/Link/index.stories.d.ts +0 -27
  281. package/dist/src/core/Link/index.stories.js +0 -99
  282. package/dist/src/core/Link/style.d.ts +0 -9
  283. package/dist/src/core/Link/style.js +0 -30
  284. package/dist/src/core/List/List.namespace-test.d.ts +0 -1
  285. package/dist/src/core/List/List.namespace-test.js +0 -7
  286. package/dist/src/core/List/index.d.ts +0 -8
  287. package/dist/src/core/List/index.js +0 -23
  288. package/dist/src/core/List/index.stories.d.ts +0 -4
  289. package/dist/src/core/List/index.stories.js +0 -30
  290. package/dist/src/core/List/style.d.ts +0 -17
  291. package/dist/src/core/List/style.js +0 -33
  292. package/dist/src/core/ListItem/ListItem.namespace-test.d.ts +0 -1
  293. package/dist/src/core/ListItem/ListItem.namespace-test.js +0 -7
  294. package/dist/src/core/ListItem/index.d.ts +0 -9
  295. package/dist/src/core/ListItem/index.js +0 -24
  296. package/dist/src/core/ListItem/style.d.ts +0 -26
  297. package/dist/src/core/ListItem/style.js +0 -56
  298. package/dist/src/core/ListSubheader/ListSubheader.namespace-test.d.ts +0 -1
  299. package/dist/src/core/ListSubheader/ListSubheader.namespace-test.js +0 -7
  300. package/dist/src/core/ListSubheader/index.d.ts +0 -7
  301. package/dist/src/core/ListSubheader/index.js +0 -22
  302. package/dist/src/core/ListSubheader/style.d.ts +0 -12
  303. package/dist/src/core/ListSubheader/style.js +0 -16
  304. package/dist/src/core/LoadingIndicator/LoadingIndicator.namespace-test.d.ts +0 -1
  305. package/dist/src/core/LoadingIndicator/LoadingIndicator.namespace-test.js +0 -7
  306. package/dist/src/core/LoadingIndicator/index.d.ts +0 -4
  307. package/dist/src/core/LoadingIndicator/index.js +0 -13
  308. package/dist/src/core/LoadingIndicator/index.stories.d.ts +0 -24
  309. package/dist/src/core/LoadingIndicator/index.stories.js +0 -77
  310. package/dist/src/core/LoadingIndicator/index.test.d.ts +0 -1
  311. package/dist/src/core/LoadingIndicator/index.test.js +0 -41
  312. package/dist/src/core/LoadingIndicator/style.d.ts +0 -7
  313. package/dist/src/core/LoadingIndicator/style.js +0 -36
  314. package/dist/src/core/Menu/Menu.namespace-test.d.ts +0 -1
  315. package/dist/src/core/Menu/Menu.namespace-test.js +0 -8
  316. package/dist/src/core/Menu/index.d.ts +0 -7
  317. package/dist/src/core/Menu/index.js +0 -30
  318. package/dist/src/core/Menu/index.stories.d.ts +0 -17
  319. package/dist/src/core/Menu/index.stories.js +0 -55
  320. package/dist/src/core/Menu/style.d.ts +0 -1
  321. package/dist/src/core/Menu/style.js +0 -15
  322. package/dist/src/core/MenuItem/MenuItem.namespace-test.d.ts +0 -1
  323. package/dist/src/core/MenuItem/MenuItem.namespace-test.js +0 -8
  324. package/dist/src/core/MenuItem/index.d.ts +0 -21
  325. package/dist/src/core/MenuItem/index.js +0 -42
  326. package/dist/src/core/MenuItem/index.stories.d.ts +0 -35
  327. package/dist/src/core/MenuItem/index.stories.js +0 -188
  328. package/dist/src/core/MenuItem/index.test.d.ts +0 -1
  329. package/dist/src/core/MenuItem/index.test.js +0 -41
  330. package/dist/src/core/MenuItem/style.d.ts +0 -65
  331. package/dist/src/core/MenuItem/style.js +0 -58
  332. package/dist/src/core/MenuSelect/index.d.ts +0 -19
  333. package/dist/src/core/MenuSelect/index.js +0 -70
  334. package/dist/src/core/MenuSelect/index.stories.d.ts +0 -34
  335. package/dist/src/core/MenuSelect/index.stories.js +0 -154
  336. package/dist/src/core/MenuSelect/style.d.ts +0 -12
  337. package/dist/src/core/MenuSelect/style.js +0 -45
  338. package/dist/src/core/NavigationJumpTo/NavigationJumpTo.namespace-test.d.ts +0 -1
  339. package/dist/src/core/NavigationJumpTo/NavigationJumpTo.namespace-test.js +0 -13
  340. package/dist/src/core/NavigationJumpTo/__snapshots__/index.test.js.snap +0 -319
  341. package/dist/src/core/NavigationJumpTo/index.d.ts +0 -13
  342. package/dist/src/core/NavigationJumpTo/index.js +0 -122
  343. package/dist/src/core/NavigationJumpTo/index.stories.d.ts +0 -56
  344. package/dist/src/core/NavigationJumpTo/index.stories.js +0 -218
  345. package/dist/src/core/NavigationJumpTo/index.test.d.ts +0 -1
  346. package/dist/src/core/NavigationJumpTo/index.test.js +0 -87
  347. package/dist/src/core/NavigationJumpTo/style.d.ts +0 -106
  348. package/dist/src/core/NavigationJumpTo/style.js +0 -27
  349. package/dist/src/core/NavigationJumpTo/useIntersection.d.ts +0 -19
  350. package/dist/src/core/NavigationJumpTo/useIntersection.js +0 -67
  351. package/dist/src/core/Notification/Notification.namespace-test.d.ts +0 -1
  352. package/dist/src/core/Notification/Notification.namespace-test.js +0 -8
  353. package/dist/src/core/Notification/index.d.ts +0 -17
  354. package/dist/src/core/Notification/index.js +0 -70
  355. package/dist/src/core/Notification/index.stories.d.ts +0 -43
  356. package/dist/src/core/Notification/index.stories.js +0 -186
  357. package/dist/src/core/Notification/index.test.d.ts +0 -1
  358. package/dist/src/core/Notification/index.test.js +0 -115
  359. package/dist/src/core/Notification/style.d.ts +0 -1
  360. package/dist/src/core/Notification/style.js +0 -26
  361. package/dist/src/core/Pagination/Pagination.namespace-test.d.ts +0 -1
  362. package/dist/src/core/Pagination/Pagination.namespace-test.js +0 -8
  363. package/dist/src/core/Pagination/components/PageListDropdown/index.d.ts +0 -7
  364. package/dist/src/core/Pagination/components/PageListDropdown/index.js +0 -27
  365. package/dist/src/core/Pagination/components/PageListDropdown/style.d.ts +0 -1
  366. package/dist/src/core/Pagination/components/PageListDropdown/style.js +0 -14
  367. package/dist/src/core/Pagination/index.d.ts +0 -15
  368. package/dist/src/core/Pagination/index.js +0 -47
  369. package/dist/src/core/Pagination/index.stories.d.ts +0 -21
  370. package/dist/src/core/Pagination/index.stories.js +0 -99
  371. package/dist/src/core/Pagination/index.test.d.ts +0 -1
  372. package/dist/src/core/Pagination/index.test.js +0 -128
  373. package/dist/src/core/Pagination/style.d.ts +0 -13
  374. package/dist/src/core/Pagination/style.js +0 -62
  375. package/dist/src/core/Pagination/usePagination.d.ts +0 -9
  376. package/dist/src/core/Pagination/usePagination.js +0 -69
  377. package/dist/src/core/SegmentedControl/SegmentedControl.namespace-test.d.ts +0 -1
  378. package/dist/src/core/SegmentedControl/SegmentedControl.namespace-test.js +0 -12
  379. package/dist/src/core/SegmentedControl/index.d.ts +0 -15
  380. package/dist/src/core/SegmentedControl/index.js +0 -38
  381. package/dist/src/core/SegmentedControl/index.stories.d.ts +0 -49
  382. package/dist/src/core/SegmentedControl/index.stories.js +0 -128
  383. package/dist/src/core/SegmentedControl/index.test.d.ts +0 -1
  384. package/dist/src/core/SegmentedControl/index.test.js +0 -41
  385. package/dist/src/core/SegmentedControl/style.d.ts +0 -2
  386. package/dist/src/core/SegmentedControl/style.js +0 -23
  387. package/dist/src/core/Table/Table.namespace-test.d.ts +0 -1
  388. package/dist/src/core/Table/Table.namespace-test.js +0 -7
  389. package/dist/src/core/Table/components/common.d.ts +0 -6
  390. package/dist/src/core/Table/components/common.js +0 -5
  391. package/dist/src/core/Table/index.d.ts +0 -7
  392. package/dist/src/core/Table/index.js +0 -21
  393. package/dist/src/core/Table/index.stories.d.ts +0 -18
  394. package/dist/src/core/Table/index.stories.js +0 -64
  395. package/dist/src/core/Table/index.test.d.ts +0 -1
  396. package/dist/src/core/Table/index.test.js +0 -89
  397. package/dist/src/core/Table/style.d.ts +0 -2
  398. package/dist/src/core/Table/style.js +0 -10
  399. package/dist/src/core/TableHeader/TableHeader.namespace-test.d.ts +0 -1
  400. package/dist/src/core/TableHeader/TableHeader.namespace-test.js +0 -7
  401. package/dist/src/core/TableHeader/index.d.ts +0 -6
  402. package/dist/src/core/TableHeader/index.js +0 -25
  403. package/dist/src/core/TableHeader/index.stories.d.ts +0 -12
  404. package/dist/src/core/TableHeader/index.stories.js +0 -38
  405. package/dist/src/core/TableHeader/index.test.d.ts +0 -1
  406. package/dist/src/core/TableHeader/index.test.js +0 -41
  407. package/dist/src/core/TableHeader/style.d.ts +0 -2
  408. package/dist/src/core/TableHeader/style.js +0 -14
  409. package/dist/src/core/TableRow/TableRow.namespace-test.d.ts +0 -1
  410. package/dist/src/core/TableRow/TableRow.namespace-test.js +0 -7
  411. package/dist/src/core/TableRow/__snapshots__/index.test.js.snap +0 -100
  412. package/dist/src/core/TableRow/index.d.ts +0 -13
  413. package/dist/src/core/TableRow/index.js +0 -28
  414. package/dist/src/core/TableRow/index.stories.d.ts +0 -24
  415. package/dist/src/core/TableRow/index.stories.js +0 -77
  416. package/dist/src/core/TableRow/index.test.d.ts +0 -1
  417. package/dist/src/core/TableRow/index.test.js +0 -92
  418. package/dist/src/core/TableRow/style.d.ts +0 -10
  419. package/dist/src/core/TableRow/style.js +0 -34
  420. package/dist/src/core/Tabs/Tabs.namespace-test.d.ts +0 -1
  421. package/dist/src/core/Tabs/Tabs.namespace-test.js +0 -8
  422. package/dist/src/core/Tabs/__snapshots__/index.test.js.snap +0 -46
  423. package/dist/src/core/Tabs/components/LabelWithCount/index.d.ts +0 -7
  424. package/dist/src/core/Tabs/components/LabelWithCount/index.js +0 -11
  425. package/dist/src/core/Tabs/components/LabelWithCount/style.d.ts +0 -10
  426. package/dist/src/core/Tabs/components/LabelWithCount/style.js +0 -43
  427. package/dist/src/core/Tabs/components/common.d.ts +0 -5
  428. package/dist/src/core/Tabs/components/common.js +0 -5
  429. package/dist/src/core/Tabs/index.d.ts +0 -13
  430. package/dist/src/core/Tabs/index.js +0 -89
  431. package/dist/src/core/Tabs/index.stories.d.ts +0 -38
  432. package/dist/src/core/Tabs/index.stories.js +0 -154
  433. package/dist/src/core/Tabs/index.test.d.ts +0 -1
  434. package/dist/src/core/Tabs/index.test.js +0 -48
  435. package/dist/src/core/Tabs/style.d.ts +0 -115
  436. package/dist/src/core/Tabs/style.js +0 -53
  437. package/dist/src/core/Tag/Tag.namespace-test.d.ts +0 -1
  438. package/dist/src/core/Tag/Tag.namespace-test.js +0 -7
  439. package/dist/src/core/Tag/index.d.ts +0 -17
  440. package/dist/src/core/Tag/index.js +0 -27
  441. package/dist/src/core/Tag/index.stories.d.ts +0 -98
  442. package/dist/src/core/Tag/index.stories.js +0 -238
  443. package/dist/src/core/Tag/index.test.d.ts +0 -1
  444. package/dist/src/core/Tag/index.test.js +0 -40
  445. package/dist/src/core/Tag/index.testUtils.d.ts +0 -8
  446. package/dist/src/core/Tag/index.testUtils.js +0 -108
  447. package/dist/src/core/Tag/style.d.ts +0 -29
  448. package/dist/src/core/Tag/style.js +0 -100
  449. package/dist/src/core/TagFilter/TagFilter.namespace-test.d.ts +0 -1
  450. package/dist/src/core/TagFilter/TagFilter.namespace-test.js +0 -8
  451. package/dist/src/core/TagFilter/__snapshots__/index.test.js.snap +0 -46
  452. package/dist/src/core/TagFilter/index.d.ts +0 -12
  453. package/dist/src/core/TagFilter/index.js +0 -23
  454. package/dist/src/core/TagFilter/index.stories.d.ts +0 -44
  455. package/dist/src/core/TagFilter/index.stories.js +0 -121
  456. package/dist/src/core/TagFilter/index.test.d.ts +0 -1
  457. package/dist/src/core/TagFilter/index.test.js +0 -40
  458. package/dist/src/core/TagFilter/style.d.ts +0 -7
  459. package/dist/src/core/TagFilter/style.js +0 -19
  460. package/dist/src/core/Tooltip/Tooltip.namespace-test.d.ts +0 -1
  461. package/dist/src/core/Tooltip/Tooltip.namespace-test.js +0 -7
  462. package/dist/src/core/Tooltip/index.d.ts +0 -14
  463. package/dist/src/core/Tooltip/index.js +0 -87
  464. package/dist/src/core/Tooltip/index.stories.d.ts +0 -48
  465. package/dist/src/core/Tooltip/index.stories.js +0 -257
  466. package/dist/src/core/Tooltip/index.test.d.ts +0 -1
  467. package/dist/src/core/Tooltip/index.test.js +0 -102
  468. package/dist/src/core/Tooltip/style.d.ts +0 -23
  469. package/dist/src/core/Tooltip/style.js +0 -47
  470. package/dist/src/core/TooltipCondensed/TooltipCondensed.namespace-test.d.ts +0 -1
  471. package/dist/src/core/TooltipCondensed/TooltipCondensed.namespace-test.js +0 -7
  472. package/dist/src/core/TooltipCondensed/index.d.ts +0 -13
  473. package/dist/src/core/TooltipCondensed/index.js +0 -43
  474. package/dist/src/core/TooltipCondensed/index.stories.d.ts +0 -27
  475. package/dist/src/core/TooltipCondensed/index.stories.js +0 -72
  476. package/dist/src/core/TooltipCondensed/index.test.d.ts +0 -1
  477. package/dist/src/core/TooltipCondensed/index.test.js +0 -85
  478. package/dist/src/core/TooltipCondensed/style.d.ts +0 -6
  479. package/dist/src/core/TooltipCondensed/style.js +0 -22
  480. package/dist/src/core/TooltipTable/TooltipTable.namespace-test.d.ts +0 -1
  481. package/dist/src/core/TooltipTable/TooltipTable.namespace-test.js +0 -23
  482. package/dist/src/core/TooltipTable/__snapshots__/index.test.js.snap +0 -272
  483. package/dist/src/core/TooltipTable/index.d.ts +0 -8
  484. package/dist/src/core/TooltipTable/index.js +0 -35
  485. package/dist/src/core/TooltipTable/index.stories.d.ts +0 -32
  486. package/dist/src/core/TooltipTable/index.stories.js +0 -128
  487. package/dist/src/core/TooltipTable/index.test.d.ts +0 -1
  488. package/dist/src/core/TooltipTable/index.test.js +0 -109
  489. package/dist/src/core/TooltipTable/style.d.ts +0 -25
  490. package/dist/src/core/TooltipTable/style.js +0 -46
  491. package/dist/src/core/styles/common/constants/black.d.ts +0 -3
  492. package/dist/src/core/styles/common/constants/black.js +0 -7
  493. package/dist/src/core/styles/common/constants/boxShadows.d.ts +0 -5
  494. package/dist/src/core/styles/common/constants/boxShadows.js +0 -9
  495. package/dist/src/core/styles/common/constants/fontWeights.d.ts +0 -7
  496. package/dist/src/core/styles/common/constants/fontWeights.js +0 -11
  497. package/dist/src/core/styles/common/constants/gray.d.ts +0 -8
  498. package/dist/src/core/styles/common/constants/gray.js +0 -12
  499. package/dist/src/core/styles/common/constants/spaces.d.ts +0 -11
  500. package/dist/src/core/styles/common/constants/spaces.js +0 -15
  501. package/dist/src/core/styles/common/constants/white.d.ts +0 -3
  502. package/dist/src/core/styles/common/constants/white.js +0 -7
  503. package/dist/src/core/styles/common/defaultTheme.d.ts +0 -129
  504. package/dist/src/core/styles/common/defaultTheme.js +0 -414
  505. package/dist/src/core/styles/common/mixins/fonts.d.ts +0 -27
  506. package/dist/src/core/styles/common/mixins/fonts.js +0 -60
  507. package/dist/src/core/styles/common/selectors/theme.d.ts +0 -15
  508. package/dist/src/core/styles/common/selectors/theme.js +0 -63
  509. package/dist/src/core/styles/index.d.ts +0 -3
  510. package/dist/src/core/styles/index.js +0 -19
  511. package/dist/src/index.d.ts +0 -100
  512. package/dist/src/index.js +0 -170
  513. package/dist/tsconfig-namespace-check.tsbuildinfo +0 -1
@@ -1,43 +0,0 @@
1
- import { Args } from "@storybook/react";
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, Args>;
3
- export default _default;
4
- export declare const Default: {
5
- args: {
6
- autoDismiss: boolean;
7
- buttonOnClick: boolean;
8
- buttonText: string;
9
- extraContent: boolean;
10
- intent: string;
11
- slideDirection: string;
12
- };
13
- };
14
- export declare const LivePreview: {
15
- parameters: {
16
- snapshot: {
17
- skip: boolean;
18
- };
19
- };
20
- render: (args: Args) => JSX.Element;
21
- };
22
- export declare const ScreenshotTest: {
23
- args: {
24
- label: string;
25
- };
26
- parameters: {
27
- controls: {
28
- exclude: string[];
29
- };
30
- snapshot: {
31
- skip: boolean;
32
- };
33
- };
34
- render: (args: Args) => JSX.Element;
35
- };
36
- export declare const Test: {
37
- parameters: {
38
- snapshot: {
39
- skip: boolean;
40
- };
41
- };
42
- render: (args: Args) => JSX.Element;
43
- };
@@ -1,186 +0,0 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Test = exports.ScreenshotTest = exports.LivePreview = exports.Default = void 0;
18
- var jsx_runtime_1 = require("react/jsx-runtime");
19
- var material_1 = require("@mui/material");
20
- var addon_actions_1 = require("@storybook/addon-actions");
21
- var react_1 = __importDefault(require("react"));
22
- var Button_1 = __importDefault(require("../Button"));
23
- var index_1 = __importDefault(require("./index"));
24
- var Notification = function (props) {
25
- var intent = props.intent, onClose = props.onClose, buttonOnClick = props.buttonOnClick, buttonText = props.buttonText, slideDirection = props.slideDirection, extraContent = props.extraContent, autoDismiss = props.autoDismiss;
26
- var _a = react_1.default.useState(false), dismissed = _a[0], setDismissed = _a[1];
27
- var handleChange = function () {
28
- setDismissed(function (prev) { return !prev; });
29
- };
30
- if (buttonOnClick) {
31
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [!autoDismiss && ((0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Switch, { checked: dismissed, onChange: handleChange }), label: "Hide" })), (0, jsx_runtime_1.jsxs)(index_1.default, __assign({ autoDismiss: autoDismiss, dismissed: dismissed, slideDirection: slideDirection, intent: intent, onClose: onClose, buttonOnClick: (0, addon_actions_1.action)("onClick"), buttonText: buttonText }, props, { children: ["This is a notification!", extraContent && ((0, jsx_runtime_1.jsx)("div", { children: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Amet eveniet sapiente, officiis aut possimus suscipit assumenda non?" }))] })), (0, jsx_runtime_1.jsx)(Button_1.default, { onClick: handleChange, sdsType: "primary", sdsStyle: "rounded", children: "Reset Notification" })] }));
32
- }
33
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [!autoDismiss && ((0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Switch, { checked: dismissed, onChange: handleChange }), label: "Hide" })), (0, jsx_runtime_1.jsxs)(index_1.default, __assign({ autoDismiss: autoDismiss, dismissed: dismissed, slideDirection: slideDirection, intent: intent, onClose: onClose }, props, { children: ["This is a notification!", extraContent && ((0, jsx_runtime_1.jsx)("div", { children: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Amet eveniet sapiente, officiis aut possimus suscipit assumenda non?" }))] })), (0, jsx_runtime_1.jsx)(Button_1.default, { onClick: handleChange, sdsType: "primary", sdsStyle: "rounded", children: "Reset Notification" })] }));
34
- };
35
- exports.default = {
36
- argTypes: {
37
- autoDismiss: {
38
- control: { type: "select" },
39
- options: [true, false, 4000, 12000, 20000],
40
- },
41
- buttonOnClick: {
42
- control: { type: "boolean" },
43
- },
44
- extraContent: {
45
- control: { type: "boolean" },
46
- },
47
- intent: {
48
- control: { type: "radio" },
49
- options: ["info", "error", "success", "warning"],
50
- },
51
- onClose: {
52
- control: {
53
- labels: {
54
- "() => {}": true,
55
- undefined: undefined,
56
- },
57
- type: "select",
58
- },
59
- options: [(0, addon_actions_1.action)("onClick"), undefined],
60
- },
61
- slideDirection: {
62
- control: { type: "radio" },
63
- options: ["left", "right"],
64
- },
65
- },
66
- component: Notification,
67
- title: "Notification",
68
- };
69
- // Default
70
- exports.Default = {
71
- args: {
72
- autoDismiss: false,
73
- buttonOnClick: false,
74
- buttonText: "click me",
75
- extraContent: false,
76
- intent: "success",
77
- slideDirection: "left",
78
- },
79
- };
80
- // Live Preview
81
- var storyRow = {
82
- alignItems: "flex-start",
83
- display: "flex",
84
- flexDirection: "row",
85
- gap: "20px",
86
- };
87
- var LivePreviewDemo = function (props) {
88
- return ((0, jsx_runtime_1.jsxs)("div", { style: storyRow, children: [(0, jsx_runtime_1.jsx)(index_1.default, __assign({ slideDirection: "left", intent: "info" }, props, { children: "this is a notification" })), (0, jsx_runtime_1.jsx)(index_1.default, __assign({ slideDirection: "left", intent: "info", buttonOnClick: (0, addon_actions_1.action)("onClick"), buttonText: "click me" }, props, { children: "this is a notification" })), (0, jsx_runtime_1.jsxs)(index_1.default, __assign({ slideDirection: "left", intent: "info", buttonOnClick: (0, addon_actions_1.action)("onClick"), buttonText: "click me" }, props, { children: ["this is a notification", (0, jsx_runtime_1.jsx)("div", { children: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Amet eveniet sapiente, officiis aut possimus suscipit assumenda non?" })] }))] }));
89
- };
90
- exports.LivePreview = {
91
- parameters: {
92
- snapshot: {
93
- skip: true,
94
- },
95
- },
96
- render: function (args) { return (0, jsx_runtime_1.jsx)(LivePreviewDemo, __assign({}, args)); },
97
- };
98
- // Screenshot test
99
- var ScreenshotTestDemo = function () {
100
- var INTENT_OPTIONS = [
101
- "info",
102
- "error",
103
- "success",
104
- "warning",
105
- ];
106
- var EXTRA_CONTENT_OPTIONS = [false, true];
107
- var BUTTON_ON_CLICK_OPTIONS = [
108
- undefined,
109
- (0, addon_actions_1.action)("onClick"),
110
- ];
111
- // loop through all INTENT_OPTIONS
112
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: INTENT_OPTIONS.map(function (intent) {
113
- return (0, jsx_runtime_1.jsx)(NotificationIntent, { intent: intent }, intent);
114
- }) }));
115
- // loop through all EXTRA_CONTENT_OPTIONS + create headers for INTENT_OPTIONS
116
- function NotificationIntent(_a) {
117
- var intent = _a.intent;
118
- var LEVEL_STYLE = {
119
- columnGap: "25px",
120
- display: "inline-grid",
121
- fontFamily: "sans-serif",
122
- marginLeft: "50px",
123
- };
124
- var LABEL_STYLE = {
125
- fontSize: "2em",
126
- gridColumn: "1 / 3",
127
- marginBottom: 0,
128
- };
129
- return ((0, jsx_runtime_1.jsxs)("div", { style: LEVEL_STYLE, children: [(0, jsx_runtime_1.jsxs)("p", { style: LABEL_STYLE, children: ["Intent: ", (0, jsx_runtime_1.jsx)("b", { children: intent })] }), EXTRA_CONTENT_OPTIONS.map(function (extraContent) {
130
- return ((0, jsx_runtime_1.jsx)(NotificationExtraContent, { intent: intent, extraContent: extraContent }, String(extraContent)));
131
- })] }));
132
- }
133
- // loop through all BUTTON_ON_CLICK_OPTIONS + create headers for EXTRA_CONTENT_OPTIONS, BUTTON_ON_CLICK_OPTIONS
134
- function NotificationExtraContent(_a) {
135
- var intent = _a.intent, extraContent = _a.extraContent;
136
- var EXTRA_CONTENT_LABEL_STYLE = {
137
- borderStyle: "solid none none none",
138
- fontSize: "1.17em",
139
- gridColumn: "1 / 3",
140
- justifySelf: "stretch",
141
- marginBottom: 10,
142
- paddingTop: 10,
143
- };
144
- var BUTTON_ON_CLICK_LABEL_STYLE = {
145
- fontSize: "0.67em",
146
- margin: "10px 0",
147
- };
148
- return ((0, jsx_runtime_1.jsxs)("div", { style: { display: "contents" }, children: [(0, jsx_runtime_1.jsxs)("p", { style: EXTRA_CONTENT_LABEL_STYLE, children: ["Extra content: ", (0, jsx_runtime_1.jsx)("b", { children: extraContent ? "yes" : "no" })] }), BUTTON_ON_CLICK_OPTIONS.map(function (buttonOnClick) {
149
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("p", { style: BUTTON_ON_CLICK_LABEL_STYLE, children: ["Button: ", (0, jsx_runtime_1.jsx)("b", { children: buttonOnClick ? "yes" : "no" })] }), (0, jsx_runtime_1.jsxs)(index_1.default, { slideDirection: "left", "data-testid": "notification", intent: intent, extraContent: extraContent, buttonOnClick: buttonOnClick, buttonText: "click me", children: ["Notification test text", extraContent && ((0, jsx_runtime_1.jsx)("div", { children: "Lorem ipsum, dolor sit amet consectetur adipisicing elit. Amet eveniet sapiente, officiis aut possimus suscipit assumenda non?" }))] }, String(buttonOnClick))] }));
150
- })] }));
151
- }
152
- };
153
- exports.ScreenshotTest = {
154
- args: {
155
- label: "Label",
156
- },
157
- parameters: {
158
- controls: {
159
- exclude: [
160
- "label",
161
- "autoDismiss",
162
- "buttonOnClick",
163
- "extraContent",
164
- "intent",
165
- "onClose",
166
- "slideDirection",
167
- ],
168
- },
169
- snapshot: {
170
- skip: true,
171
- },
172
- },
173
- render: function (args) { return (0, jsx_runtime_1.jsx)(ScreenshotTestDemo, __assign({}, args)); },
174
- };
175
- // Test
176
- var TestDemo = function (props) {
177
- return ((0, jsx_runtime_1.jsx)(index_1.default, __assign({ slideDirection: "left", intent: "info" }, props, { "data-testid": "notification", children: "this is a notification" })));
178
- };
179
- exports.Test = {
180
- parameters: {
181
- snapshot: {
182
- skip: true,
183
- },
184
- },
185
- render: function (args) { return (0, jsx_runtime_1.jsx)(TestDemo, __assign({}, args)); },
186
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,115 +0,0 @@
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
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
- return new (P || (P = Promise))(function (resolve, reject) {
39
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
- step((generator = generator.apply(thisArg, _arguments || [])).next());
43
- });
44
- };
45
- var __generator = (this && this.__generator) || function (thisArg, body) {
46
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
- function verb(n) { return function (v) { return step([n, v]); }; }
49
- function step(op) {
50
- if (f) throw new TypeError("Generator is already executing.");
51
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
52
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
53
- if (y = 0, t) op = [op[0] & 2, t.value];
54
- switch (op[0]) {
55
- case 0: case 1: t = op; break;
56
- case 4: _.label++; return { value: op[1], done: false };
57
- case 5: _.label++; y = op[1]; op = [0]; continue;
58
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
59
- default:
60
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
61
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
62
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
63
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
64
- if (t[2]) _.ops.pop();
65
- _.trys.pop(); continue;
66
- }
67
- op = body.call(thisArg, _);
68
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
69
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
70
- }
71
- };
72
- Object.defineProperty(exports, "__esModule", { value: true });
73
- var jsx_runtime_1 = require("react/jsx-runtime");
74
- var story_utils_1 = require("@chanzuckerberg/story-utils");
75
- var react_1 = require("@storybook/react");
76
- var react_2 = require("@testing-library/react");
77
- var snapshotTestStoryFile = __importStar(require("./index.stories"));
78
- var index_stories_1 = __importStar(require("./index.stories"));
79
- // Returns a component that already contain all decorators from story level, meta level and global level.
80
- var Test = (0, react_1.composeStory)(index_stories_1.Test, index_stories_1.default);
81
- describe("<Notification />", function () {
82
- (0, story_utils_1.generateSnapshots)(snapshotTestStoryFile);
83
- it("renders notification component", function () {
84
- (0, react_2.render)((0, jsx_runtime_1.jsx)(Test, __assign({}, Test.args)));
85
- var notificationElement = react_2.screen.getByTestId("notification");
86
- expect(notificationElement).not.toBeNull();
87
- });
88
- it("renders button if buttonOnClick is passed", function () {
89
- var props = {
90
- buttonOnClick: function () { },
91
- buttonText: "click me",
92
- };
93
- (0, react_2.render)((0, jsx_runtime_1.jsx)(Test, __assign({}, Test.args, props)));
94
- var notificationButton = react_2.screen.getByText(/click me/i);
95
- expect(notificationButton).toBeTruthy();
96
- });
97
- it("dismisses on click on close button if present", function () { return __awaiter(void 0, void 0, void 0, function () {
98
- var props, dismissButton;
99
- return __generator(this, function (_a) {
100
- switch (_a.label) {
101
- case 0:
102
- props = {
103
- onClose: function () { },
104
- };
105
- (0, react_2.render)((0, jsx_runtime_1.jsx)(Test, __assign({}, Test.args, props)));
106
- dismissButton = react_2.screen.getByTestId("notificationCloseButton");
107
- dismissButton.click();
108
- return [4 /*yield*/, (0, react_2.waitForElementToBeRemoved)(function () { return react_2.screen.getByTestId("notification"); })];
109
- case 1:
110
- _a.sent();
111
- return [2 /*return*/];
112
- }
113
- });
114
- }); });
115
- });
@@ -1 +0,0 @@
1
- export declare const StyledNotification: import("@emotion/styled").StyledComponent<import("@mui/material").AlertProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & import("../styles").CommonThemeProps, {}, {}>;
@@ -1,26 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.StyledNotification = void 0;
8
- var material_1 = require("@mui/material");
9
- var styles_1 = require("@mui/material/styles");
10
- var styles_2 = require("../styles");
11
- var defaultTheme_1 = require("../styles/common/defaultTheme");
12
- var fontBodyXs = (0, styles_2.fontBody)("xs");
13
- exports.StyledNotification = (0, styles_1.styled)(material_1.Alert)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), fontBodyXs, function (props) {
14
- var colors = (0, styles_2.getColors)(props);
15
- var spacings = (0, styles_2.getSpaces)(props);
16
- var shadows = (0, styles_2.getShadows)(props);
17
- var _a = props.severity, severity = _a === void 0 ? "success" : _a;
18
- var borderColor = (colors && colors[severity][400]) || "black";
19
- var corners = (0, styles_2.getCorners)(props);
20
- var iconSizes = (0, styles_2.getIconSizes)(props);
21
- var iconColor = (colors && colors[severity][400]) || "black";
22
- var notificationColor = (colors && colors[severity][100]) || "white";
23
- var backgroundColor = colors && colors[severity][100];
24
- return "\n background-color: ".concat(backgroundColor, ";\n max-width: 480px;\n min-width: 280px;\n box-sizing: border-box;\n margin: ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.m, "px 0;\n border-radius: ").concat(corners === null || corners === void 0 ? void 0 : corners.m, "px;\n color: ").concat(defaultTheme_1.defaultTheme.palette.text.primary, ";\n padding: ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.l, "px;\n align-items: flex-start;\n background-color: ").concat(notificationColor, ";\n border-left: 5px solid;\n box-shadow: ").concat(shadows === null || shadows === void 0 ? void 0 : shadows.s, ";\n border-color: ").concat(borderColor, ";\n\n .MuiAlert-icon {\n height: ").concat(iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.l.height, "px;\n width: ").concat(iconSizes === null || iconSizes === void 0 ? void 0 : iconSizes.l.width, "px;\n margin-right: ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.m, "px;\n padding: 0;\n path {\n fill: ").concat(iconColor, ";\n }\n }\n\n .MuiAlert-message {\n padding: 0;\n margin-right: ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.m, "px;\n\n > * {\n margin: ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.m, "px 0px;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n button {\n display: block;\n }\n }\n\n .MuiAlert-action {\n margin-right: 0;\n padding: 0;\n align-items: flex-start;\n margin-top: ").concat(spacings === null || spacings === void 0 ? void 0 : spacings.xxs, "px;\n\n > button {\n padding: 0;\n }\n }\n }\n ");
25
- });
26
- var templateObject_1;
@@ -1,8 +0,0 @@
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 utils_1 = require("src/common/utils");
6
- var PaginationNameSpaceTest = function (props) {
7
- return ((0, jsx_runtime_1.jsx)(components_1.Pagination, { sdsStyle: "round", pageSize: 10, onPageChange: utils_1.noop, onNextPage: utils_1.noop, onPreviousPage: utils_1.noop, totalCount: 100, siblingCount: 1, currentPage: 2, truncateDropdown: true }));
8
- };
@@ -1,7 +0,0 @@
1
- interface PageListDropdownProps {
2
- pageList: number[];
3
- onPageChange: (page: number) => void;
4
- sdsStyle: "round" | "square";
5
- }
6
- declare const PageListDropdown: (props: PageListDropdownProps) => JSX.Element;
7
- export default PageListDropdown;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var jsx_runtime_1 = require("react/jsx-runtime");
7
- var react_1 = require("react");
8
- var MenuItem_1 = __importDefault(require("src/core/MenuItem"));
9
- var style_1 = require("../../style");
10
- var style_2 = require("./style");
11
- var PageListDropdown = function (props) {
12
- var pageList = props.pageList, onPageChange = props.onPageChange, sdsStyle = props.sdsStyle;
13
- var _a = (0, react_1.useState)(null), anchorEl = _a[0], setAnchorEl = _a[1];
14
- var handleClick = function (event) {
15
- setAnchorEl(event.currentTarget);
16
- };
17
- var handleClose = function () {
18
- setAnchorEl(null);
19
- };
20
- return ((0, jsx_runtime_1.jsxs)(style_1.Page, { sdsStyle: sdsStyle, children: [(0, jsx_runtime_1.jsx)(style_1.StyledPaginationButtonIcon, { "aria-label": "Go to a page", onClick: handleClick, sdsIcon: "dotsHorizontal", sdsSize: "small" }), (0, jsx_runtime_1.jsx)(style_2.StyledPaginationDropdownMenu, { anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleClose, children: pageList.map(function (page) {
21
- return ((0, jsx_runtime_1.jsx)(MenuItem_1.default, { onClick: function () {
22
- onPageChange(page);
23
- handleClose();
24
- }, children: page }, page));
25
- }) })] }));
26
- };
27
- exports.default = PageListDropdown;
@@ -1 +0,0 @@
1
- export declare const StyledPaginationDropdownMenu: import("@emotion/styled").StyledComponent<import("../../../Menu").MenuProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -1,14 +0,0 @@
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.StyledPaginationDropdownMenu = void 0;
11
- var styles_1 = require("@mui/material/styles");
12
- var Menu_1 = __importDefault(require("../../../Menu"));
13
- exports.StyledPaginationDropdownMenu = (0, styles_1.styled)(Menu_1.default)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n & .MuiPaper-root {\n max-height: 120px;\n }\n"], ["\n & .MuiPaper-root {\n max-height: 120px;\n }\n"])));
14
- var templateObject_1;
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { PaginationExtraProps } from "./style";
3
- export interface PaginationInternalProps {
4
- onPageChange: (page: number) => void;
5
- onNextPage: () => void;
6
- onPreviousPage: () => void;
7
- totalCount: number;
8
- siblingCount?: number;
9
- currentPage: number;
10
- pageSize: number;
11
- truncateDropdown?: boolean;
12
- }
13
- export type PaginationProps = PaginationExtraProps & PaginationInternalProps;
14
- declare const Pagination: import("react").ForwardRefExoticComponent<PaginationExtraProps & PaginationInternalProps & import("react").RefAttributes<HTMLUListElement>>;
15
- export default Pagination;
@@ -1,47 +0,0 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- var jsx_runtime_1 = require("react/jsx-runtime");
18
- var react_1 = require("react");
19
- var PageListDropdown_1 = __importDefault(require("./components/PageListDropdown"));
20
- var style_1 = require("./style");
21
- var usePagination_1 = require("./usePagination");
22
- var Pagination = (0, react_1.forwardRef)(function (props, ref) {
23
- var _a = props.sdsStyle, sdsStyle = _a === void 0 ? "round" : _a, onPageChange = props.onPageChange, onNextPage = props.onNextPage, onPreviousPage = props.onPreviousPage, totalCount = props.totalCount, _b = props.siblingCount, siblingCount = _b === void 0 ? 1 : _b, currentPage = props.currentPage, pageSize = props.pageSize, _c = props.truncateDropdown, truncateDropdown = _c === void 0 ? true : _c;
24
- if (pageSize < 1) {
25
- throw new Error("PageSize can not be smaller than 1!");
26
- }
27
- var paginationRange = (0, usePagination_1.usePagination)({
28
- currentPage: currentPage,
29
- pageSize: pageSize,
30
- siblingCount: siblingCount,
31
- totalCount: totalCount,
32
- }) || [];
33
- if (currentPage === 0 || paginationRange.length < 2) {
34
- return null;
35
- }
36
- var lastPage = paginationRange[paginationRange.length - 1];
37
- return ((0, jsx_runtime_1.jsxs)(style_1.StyledPagination, __assign({ ref: ref }, props, { children: [(0, jsx_runtime_1.jsx)(style_1.StyledPaginationChevronList, { children: (0, jsx_runtime_1.jsx)(style_1.StyledPaginationChevronButton, { "aria-label": "Previous page", onClick: function () { return currentPage > 1 && onPreviousPage(); }, disabled: currentPage === 1, sdsSize: "small", sdsIcon: "chevronLeft", "data-order": "first" }) }, "prevPage"), paginationRange.map(function (pageNumber) {
38
- if (Array.isArray(pageNumber)) {
39
- if (truncateDropdown) {
40
- return ((0, jsx_runtime_1.jsx)(PageListDropdown_1.default, { pageList: pageNumber, onPageChange: onPageChange, sdsStyle: sdsStyle }, pageNumber.join("-")));
41
- }
42
- return ((0, jsx_runtime_1.jsx)(style_1.Page, { sdsStyle: sdsStyle, children: (0, jsx_runtime_1.jsx)(style_1.StyledPaginationButtonIcon, { "aria-label": "Go to a page", disabled: true, sdsIcon: "dotsHorizontal", sdsSize: "small" }) }, pageNumber.join("-")));
43
- }
44
- return ((0, jsx_runtime_1.jsx)(style_1.Page, { onClick: function () { return onPageChange(pageNumber); }, selected: pageNumber === currentPage, sdsStyle: sdsStyle, children: pageNumber }, pageNumber));
45
- }), (0, jsx_runtime_1.jsx)(style_1.StyledPaginationChevronList, { children: (0, jsx_runtime_1.jsx)(style_1.StyledPaginationChevronButton, { "aria-label": "Next page", onClick: function () { return currentPage !== lastPage && onNextPage(); }, disabled: currentPage === lastPage, sdsSize: "small", "data-order": "last", sdsIcon: "chevronRight" }) }, "onNextPage")] })));
46
- });
47
- exports.default = Pagination;
@@ -1,21 +0,0 @@
1
- import { Args } from "@storybook/react";
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, Args>;
3
- export default _default;
4
- export declare const Default: {
5
- args: {
6
- pageSize: number;
7
- siblingCount: number;
8
- totalCount: number;
9
- };
10
- };
11
- export declare const Test: {
12
- parameters: {
13
- controls: {
14
- exclude: string[];
15
- };
16
- snapshot: {
17
- skip: boolean;
18
- };
19
- };
20
- render: (args: Args) => JSX.Element;
21
- };
@@ -1,99 +0,0 @@
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
- var __importDefault = (this && this.__importDefault) || function (mod) {
37
- return (mod && mod.__esModule) ? mod : { "default": mod };
38
- };
39
- Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.Test = exports.Default = void 0;
41
- var jsx_runtime_1 = require("react/jsx-runtime");
42
- var React = __importStar(require("react"));
43
- var index_1 = __importDefault(require("./index"));
44
- var Pagination = function (props) {
45
- var pageSize = props.pageSize, totalCount = props.totalCount, siblingCount = props.siblingCount, truncateDropdown = props.truncateDropdown, sdsStyle = props.sdsStyle;
46
- var _a = React.useState(1), currentPage = _a[0], setCurrentPage = _a[1];
47
- return ((0, jsx_runtime_1.jsx)(index_1.default, { sdsStyle: sdsStyle, pageSize: pageSize, onPageChange: function (page) {
48
- setCurrentPage(page);
49
- }, onNextPage: function () { return setCurrentPage(currentPage + 1); }, onPreviousPage: function () { return setCurrentPage(currentPage - 1); }, totalCount: totalCount, siblingCount: siblingCount, currentPage: currentPage, truncateDropdown: truncateDropdown }));
50
- };
51
- exports.default = {
52
- argTypes: {
53
- pageSize: {
54
- control: { type: "number" },
55
- },
56
- sdsStyle: {
57
- control: { type: "select" },
58
- options: ["round", "square"],
59
- },
60
- siblingCount: {
61
- control: { type: "number" },
62
- },
63
- totalCount: {
64
- control: { type: "number" },
65
- },
66
- truncateDropdown: {
67
- control: { type: "boolean" },
68
- },
69
- },
70
- component: Pagination,
71
- title: "Table/Pagination",
72
- };
73
- // Default
74
- exports.Default = {
75
- args: {
76
- pageSize: 5,
77
- siblingCount: 1,
78
- totalCount: 100,
79
- },
80
- };
81
- // Test
82
- var TestDemo = function (props) { return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(index_1.default, __assign({ "data-testid": "Pagination", pageSize: 4, onPageChange: function () { }, onNextPage: function () { }, onPreviousPage: function () { }, totalCount: 20, siblingCount: 1, currentPage: 2, truncateDropdown: true }, props)), (0, jsx_runtime_1.jsx)(index_1.default, { "data-testid": "Pagination-disabled-left-arrow", pageSize: 4, onPageChange: function () { }, onNextPage: function () { }, onPreviousPage: function () { }, totalCount: 20, siblingCount: 1, currentPage: 1, truncateDropdown: true }), (0, jsx_runtime_1.jsx)(index_1.default, { "data-testid": "Pagination-with-left-dropdown", pageSize: 4, onPageChange: function () { }, onNextPage: function () { }, onPreviousPage: function () { }, totalCount: 30, siblingCount: 1, currentPage: 5, truncateDropdown: true }), (0, jsx_runtime_1.jsx)(index_1.default, { "data-testid": "Pagination-with-right-dropdown", pageSize: 4, onPageChange: function () { }, onNextPage: function () { }, onPreviousPage: function () { }, totalCount: 60, siblingCount: 1, currentPage: 3, truncateDropdown: true }), (0, jsx_runtime_1.jsx)(index_1.default, { "data-testid": "Pagination-with-both-dropdowns", pageSize: 4, onPageChange: function () { }, onNextPage: function () { }, onPreviousPage: function () { }, totalCount: 30, siblingCount: 1, currentPage: 4, truncateDropdown: true }), (0, jsx_runtime_1.jsx)(index_1.default, { "data-testid": "Pagination-disabled-dropdown", pageSize: 4, onPageChange: function () { }, onNextPage: function () { }, onPreviousPage: function () { }, totalCount: 30, siblingCount: 1, currentPage: 7, truncateDropdown: false })] })); };
83
- exports.Test = {
84
- parameters: {
85
- controls: {
86
- exclude: [
87
- "pageSize",
88
- "sdsStyle",
89
- "siblingCount",
90
- "totalCount",
91
- "truncateDropdown",
92
- ],
93
- },
94
- snapshot: {
95
- skip: true,
96
- },
97
- },
98
- render: function (args) { return (0, jsx_runtime_1.jsx)(TestDemo, __assign({}, args)); },
99
- };
@@ -1 +0,0 @@
1
- export {};