@indico-data/design-system 2.1.3 → 2.3.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 (370) hide show
  1. package/.yarn/sdks/eslint/bin/eslint.js +8 -1
  2. package/.yarn/sdks/eslint/package.json +1 -1
  3. package/.yarn/sdks/prettier/bin/prettier.cjs +8 -1
  4. package/.yarn/sdks/prettier/index.cjs +8 -1
  5. package/.yarn/sdks/typescript/bin/tsc +8 -1
  6. package/.yarn/sdks/typescript/bin/tsserver +8 -1
  7. package/.yarn/sdks/typescript/package.json +1 -1
  8. package/.yarnrc.yml +1 -0
  9. package/lib/build/generated/iconTypes.d.ts +2 -0
  10. package/lib/index.css +142 -101
  11. package/lib/index.d.ts +9 -1371
  12. package/lib/index.esm.css +142 -101
  13. package/lib/index.esm.js +26604 -12492
  14. package/lib/index.esm.js.map +1 -1
  15. package/lib/index.js +26647 -12538
  16. package/lib/index.js.map +1 -1
  17. package/lib/{components → src/components}/button/types.d.ts +1 -2
  18. package/lib/src/components/icons/Icon.d.ts +4 -0
  19. package/lib/src/components/icons/Icon.stories.d.ts +10 -0
  20. package/lib/src/components/icons/index.d.ts +1 -0
  21. package/lib/src/components/icons/types.d.ts +10 -0
  22. package/lib/{components → src/components}/index.d.ts +2 -0
  23. package/lib/src/components/tables/table/LoadingComponent.d.ts +1 -0
  24. package/lib/src/components/tables/table/Table.d.ts +78 -0
  25. package/lib/src/components/tables/table/Table.stories.d.ts +6 -0
  26. package/lib/src/components/tables/table/index.d.ts +1 -0
  27. package/lib/src/components/tables/table/sampleData.d.ts +8 -0
  28. package/lib/src/index.d.ts +8 -0
  29. package/lib/{legacy → src/legacy}/components/Accordion/Accordion.stories.d.ts +9 -9
  30. package/lib/src/legacy/components/Accordion/Accordion.styles.d.ts +1 -0
  31. package/lib/src/legacy/components/ListTable/Header/Header.styles.d.ts +1 -0
  32. package/lib/{legacy → src/legacy}/components/ListTable/ListTable.stories.d.ts +7 -7
  33. package/lib/src/legacy/components/ListTable/ListTable.styles.d.ts +1 -0
  34. package/lib/{legacy → src/legacy}/components/LoadingAwareContainer/LoadingAwareContainer.stories.d.ts +2 -2
  35. package/lib/src/legacy/components/LoadingAwareContainer/LoadingAwareContainer.styles.d.ts +2 -0
  36. package/lib/src/legacy/components/Pagination/Pagination.styles.d.ts +1 -0
  37. package/lib/{legacy → src/legacy}/components/Toggle/Toggle.d.ts +2 -1
  38. package/lib/src/legacy/components/Toggle/Toggle.stories.d.ts +21 -0
  39. package/lib/src/legacy/components/Toggle/Toggle.styles.d.ts +1 -0
  40. package/lib/src/legacy/components/Tooltip/Tooltip.styles.d.ts +1 -0
  41. package/lib/{legacy → src/legacy}/components/basic-section/Section/Section.stories.d.ts +1 -2
  42. package/lib/src/legacy/components/basic-section/Section/Section.styles.d.ts +1 -0
  43. package/lib/src/legacy/components/basic-section/SectionBlock/SectionBlock.styles.d.ts +1 -0
  44. package/lib/src/legacy/components/basic-section/SectionBody/SectionBody.styles.d.ts +1 -0
  45. package/lib/{legacy → src/legacy}/components/basic-section/SectionHeader/SectionHeader.stories.d.ts +1 -1
  46. package/lib/src/legacy/components/basic-section/SectionHeader/SectionHeader.styles.d.ts +1 -0
  47. package/lib/src/legacy/components/basic-section/SectionTable/SectionTable.styles.d.ts +1 -0
  48. package/lib/{legacy → src/legacy}/components/buttons/Button/Button.stories.d.ts +1 -1
  49. package/lib/src/legacy/components/buttons/Button/Button.styles.d.ts +1 -0
  50. package/lib/{legacy → src/legacy}/components/buttons/IconButton/IconButton.stories.d.ts +3 -3
  51. package/lib/src/legacy/components/buttons/IconButton/IconButton.styles.d.ts +5 -0
  52. package/lib/{legacy → src/legacy}/components/dropdowns/BorderSelect/BorderSelect.stories.d.ts +8 -9
  53. package/lib/src/legacy/components/dropdowns/BorderSelect/BorderSelect.styles.d.ts +2 -0
  54. package/lib/{legacy → src/legacy}/components/dropdowns/MultiCombobox/MultiCombobox.d.ts +5 -5
  55. package/lib/{legacy → src/legacy}/components/dropdowns/MultiCombobox/MultiCombobox.stories.d.ts +7 -7
  56. package/lib/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.styles.d.ts +4 -0
  57. package/lib/{legacy → src/legacy}/components/dropdowns/Select/Select.stories.d.ts +6 -7
  58. package/lib/src/legacy/components/dropdowns/Select/Select.styles.d.ts +1 -0
  59. package/lib/{legacy → src/legacy}/components/dropdowns/SingleCombobox/SingleCombobox.d.ts +5 -5
  60. package/lib/{legacy → src/legacy}/components/dropdowns/SingleCombobox/SingleCombobox.stories.d.ts +5 -6
  61. package/lib/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.styles.d.ts +4 -0
  62. package/lib/{legacy → src/legacy}/components/index.d.ts +0 -2
  63. package/lib/src/legacy/components/inputs/DatePicker/DatePicker.styles.d.ts +1 -0
  64. package/lib/src/legacy/components/inputs/EditableInput/EditableInput.styles.d.ts +1 -0
  65. package/lib/{legacy → src/legacy}/components/inputs/NoInputDatePicker/NoInputDatePicker.d.ts +2 -1
  66. package/lib/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.styles.d.ts +1 -0
  67. package/lib/{legacy → src/legacy}/components/inputs/NumberInput/NumberInput.stories.d.ts +2 -2
  68. package/lib/src/legacy/components/inputs/NumberInput/NumberInput.styles.d.ts +1 -0
  69. package/lib/src/legacy/components/inputs/RadioButtons/RadioButtons.styles.d.ts +13 -0
  70. package/lib/src/legacy/components/inputs/RadioGroup/RadioGroup.styles.d.ts +1 -0
  71. package/lib/{legacy → src/legacy}/components/inputs/SearchInput/SearchInput.stories.d.ts +8 -9
  72. package/lib/src/legacy/components/inputs/SearchInput/SearchInput.styles.d.ts +1 -0
  73. package/lib/{legacy → src/legacy}/components/inputs/TextInput/TextInput.stories.d.ts +9 -9
  74. package/lib/src/legacy/components/inputs/TextInput/TextInput.styles.d.ts +2 -0
  75. package/lib/src/legacy/components/loading-indicators/BarSpinner/BarSpinner.styles.d.ts +1 -0
  76. package/lib/src/legacy/components/loading-indicators/CirclePulse/CirclePulse.styles.d.ts +7 -0
  77. package/lib/{legacy → src/legacy}/components/loading-indicators/CircleSpinner/CircleSpinner.d.ts +3 -4
  78. package/lib/src/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.styles.d.ts +7 -0
  79. package/lib/src/legacy/components/loading-indicators/LoadingList/LoadingList.styles.d.ts +1 -0
  80. package/lib/src/legacy/components/loading-indicators/PercentageRing/PercentageRing.styles.d.ts +1 -0
  81. package/lib/{legacy → src/legacy}/components/modals/ConfirmModal/ConfirmModal.stories.d.ts +5 -5
  82. package/lib/src/legacy/components/modals/ConfirmModal/ConfirmModal.styles.d.ts +1 -0
  83. package/lib/src/legacy/components/modals/ModalBase/ModalBase.styles.d.ts +4 -0
  84. package/lib/src/legacy/components/text-truncate/TextTruncate.styles.d.ts +1 -0
  85. package/lib/{legacy → src/legacy}/components/user-feedback/Shrug/Shrug.stories.d.ts +11 -11
  86. package/lib/src/legacy/components/user-feedback/Shrug/Shrug.styles.d.ts +1 -0
  87. package/lib/{legacy → src/legacy}/styles/globals/buttons.d.ts +0 -1
  88. package/lib/{legacy → src/legacy}/styles/globals/forms.d.ts +0 -1
  89. package/lib/{legacy → src/legacy}/styles/globals/layout.d.ts +0 -1
  90. package/lib/{legacy → src/legacy}/styles/globals/lists.d.ts +0 -1
  91. package/lib/{legacy → src/legacy}/styles/globals/margin-padding.d.ts +0 -1
  92. package/lib/{legacy → src/legacy}/styles/globals/media.d.ts +0 -1
  93. package/lib/{legacy → src/legacy}/styles/globals/tables.d.ts +0 -1
  94. package/lib/{legacy → src/legacy}/styles/globals/typography.d.ts +0 -1
  95. package/lib/{legacy → src/legacy}/styles/globals/utility-classes.d.ts +0 -1
  96. package/lib/src/types.d.ts +10 -0
  97. package/package.json +20 -15
  98. package/rollup.config.mjs +2 -2
  99. package/scripts/generateIconTypes.js +50 -0
  100. package/src/components/button/Button.tsx +1 -2
  101. package/src/components/button/types.ts +2 -1
  102. package/src/components/icons/Icon.mdx +49 -0
  103. package/src/components/icons/Icon.stories.tsx +248 -0
  104. package/src/components/icons/Icon.tsx +45 -0
  105. package/src/components/icons/__tests__/Icon.test.tsx +104 -0
  106. package/src/components/icons/index.ts +1 -0
  107. package/src/{legacy/components/Icon → components/icons}/indicons.tsx +17 -17
  108. package/src/components/icons/styles/Icon.scss +23 -0
  109. package/src/components/icons/types.ts +12 -0
  110. package/src/components/index.ts +2 -0
  111. package/src/components/tables/table/LoadingComponent.tsx +5 -0
  112. package/src/components/tables/table/Table.mdx +15 -0
  113. package/src/components/tables/table/Table.scss +79 -0
  114. package/src/components/tables/table/Table.stories.tsx +547 -0
  115. package/src/components/tables/table/Table.tsx +112 -0
  116. package/src/components/tables/table/_variables.scss +19 -0
  117. package/src/components/tables/table/index.ts +1 -0
  118. package/src/components/tables/table/sampleData.ts +162 -0
  119. package/src/index.ts +1 -4
  120. package/src/legacy/components/Accordion/Accordion.tsx +2 -2
  121. package/src/legacy/components/ListTable/Header/Header.tsx +1 -2
  122. package/src/legacy/components/ListTable/ListTable.stories.tsx +2 -1
  123. package/src/legacy/components/Toggle/Toggle.styles.ts +1 -1
  124. package/src/legacy/components/Toggle/Toggle.tsx +17 -4
  125. package/src/legacy/components/basic-section/SectionTable/SectionTable.tsx +1 -1
  126. package/src/legacy/components/buttons/Button/Button.tsx +1 -1
  127. package/src/legacy/components/buttons/IconButton/IconButton.tsx +2 -2
  128. package/src/legacy/components/dropdowns/BorderSelect/BorderSelect.tsx +1 -1
  129. package/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.stories.tsx +8 -7
  130. package/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.styles.ts +3 -1
  131. package/src/legacy/components/dropdowns/MultiCombobox/MultiCombobox.tsx +2 -2
  132. package/src/legacy/components/dropdowns/Select/Select.tsx +3 -3
  133. package/src/legacy/components/dropdowns/SingleCombobox/SingleCombobox.tsx +2 -2
  134. package/src/legacy/components/index.ts +1 -2
  135. package/src/legacy/components/inputs/EditableInput/EditableInput.tsx +1 -1
  136. package/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.stories.tsx +2 -2
  137. package/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.tsx +5 -4
  138. package/src/legacy/components/inputs/NumberInput/NumberInput.tsx +1 -1
  139. package/src/legacy/components/inputs/SearchInput/SearchInput.tsx +1 -1
  140. package/src/legacy/components/loading-indicators/CircleSpinner/CircleSpinner.tsx +8 -8
  141. package/src/legacy/components/user-feedback/Shrug/Shrug.styles.ts +2 -0
  142. package/src/legacy/components/user-feedback/Shrug/Shrug.tsx +4 -4
  143. package/src/styles/index.scss +2 -2
  144. package/src/styles/variables/_icons.scss +7 -0
  145. package/src/styles/variables/index.scss +2 -1
  146. package/src/types.ts +2 -14
  147. package/tsconfig.json +1 -1
  148. package/lib/legacy/components/Accordion/Accordion.styles.d.ts +0 -2
  149. package/lib/legacy/components/Icon/Icon.d.ts +0 -17
  150. package/lib/legacy/components/Icon/Icon.stories.d.ts +0 -42
  151. package/lib/legacy/components/Icon/faIcons.d.ts +0 -76
  152. package/lib/legacy/components/Icon/index.d.ts +0 -3
  153. package/lib/legacy/components/Icon/storyHelpers.d.ts +0 -9
  154. package/lib/legacy/components/ListTable/Header/Header.styles.d.ts +0 -2
  155. package/lib/legacy/components/ListTable/ListTable.styles.d.ts +0 -2
  156. package/lib/legacy/components/LoadingAwareContainer/LoadingAwareContainer.styles.d.ts +0 -3
  157. package/lib/legacy/components/Navigation/Drawer/Drawer.d.ts +0 -16
  158. package/lib/legacy/components/Navigation/Drawer/Drawer.stories.d.ts +0 -6
  159. package/lib/legacy/components/Navigation/Drawer/DrawerLinkList.d.ts +0 -9
  160. package/lib/legacy/components/Navigation/Drawer/DrawerLinkList.styles.d.ts +0 -2
  161. package/lib/legacy/components/Navigation/Drawer/__mocks__/mocks.d.ts +0 -3
  162. package/lib/legacy/components/Navigation/Drawer/index.d.ts +0 -1
  163. package/lib/legacy/components/Navigation/Drawer/types.d.ts +0 -7
  164. package/lib/legacy/components/Navigation/index.d.ts +0 -1
  165. package/lib/legacy/components/Pagination/Pagination.styles.d.ts +0 -2
  166. package/lib/legacy/components/Toggle/Toggle.stories.d.ts +0 -21
  167. package/lib/legacy/components/Toggle/Toggle.styles.d.ts +0 -2
  168. package/lib/legacy/components/Tooltip/Tooltip.styles.d.ts +0 -2
  169. package/lib/legacy/components/basic-section/Section/Section.styles.d.ts +0 -2
  170. package/lib/legacy/components/basic-section/SectionBlock/SectionBlock.styles.d.ts +0 -2
  171. package/lib/legacy/components/basic-section/SectionBody/SectionBody.styles.d.ts +0 -2
  172. package/lib/legacy/components/basic-section/SectionHeader/SectionHeader.styles.d.ts +0 -2
  173. package/lib/legacy/components/basic-section/SectionTable/SectionTable.styles.d.ts +0 -2
  174. package/lib/legacy/components/buttons/Button/Button.styles.d.ts +0 -2
  175. package/lib/legacy/components/buttons/IconButton/IconButton.styles.d.ts +0 -4
  176. package/lib/legacy/components/dropdowns/BorderSelect/BorderSelect.styles.d.ts +0 -3
  177. package/lib/legacy/components/dropdowns/MultiCombobox/MultiCombobox.styles.d.ts +0 -3
  178. package/lib/legacy/components/dropdowns/Select/Select.styles.d.ts +0 -2
  179. package/lib/legacy/components/dropdowns/SingleCombobox/SingleCombobox.styles.d.ts +0 -3
  180. package/lib/legacy/components/inputs/DatePicker/DatePicker.styles.d.ts +0 -2
  181. package/lib/legacy/components/inputs/EditableInput/EditableInput.styles.d.ts +0 -2
  182. package/lib/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.styles.d.ts +0 -2
  183. package/lib/legacy/components/inputs/NumberInput/NumberInput.styles.d.ts +0 -2
  184. package/lib/legacy/components/inputs/RadioButtons/RadioButtons.styles.d.ts +0 -14
  185. package/lib/legacy/components/inputs/RadioGroup/RadioGroup.styles.d.ts +0 -2
  186. package/lib/legacy/components/inputs/SearchInput/SearchInput.styles.d.ts +0 -2
  187. package/lib/legacy/components/inputs/TextInput/TextInput.styles.d.ts +0 -3
  188. package/lib/legacy/components/loading-indicators/BarSpinner/BarSpinner.styles.d.ts +0 -2
  189. package/lib/legacy/components/loading-indicators/CirclePulse/CirclePulse.styles.d.ts +0 -8
  190. package/lib/legacy/components/loading-indicators/LoadingIndicator/LoadingIndicator.styles.d.ts +0 -8
  191. package/lib/legacy/components/loading-indicators/LoadingList/LoadingList.styles.d.ts +0 -2
  192. package/lib/legacy/components/loading-indicators/PercentageRing/PercentageRing.styles.d.ts +0 -2
  193. package/lib/legacy/components/modals/ConfirmModal/ConfirmModal.styles.d.ts +0 -2
  194. package/lib/legacy/components/modals/ModalBase/ModalBase.styles.d.ts +0 -4
  195. package/lib/legacy/components/text-truncate/TextTruncate.styles.d.ts +0 -2
  196. package/lib/legacy/components/user-feedback/Shrug/Shrug.styles.d.ts +0 -2
  197. package/lib/types.d.ts +0 -231
  198. package/src/legacy/components/Icon/Icon.stories.tsx +0 -61
  199. package/src/legacy/components/Icon/Icon.tsx +0 -76
  200. package/src/legacy/components/Icon/faIcons.tsx +0 -168
  201. package/src/legacy/components/Icon/index.ts +0 -3
  202. package/src/legacy/components/Icon/storyHelpers.tsx +0 -88
  203. package/src/legacy/components/Navigation/Drawer/Drawer.scss +0 -61
  204. package/src/legacy/components/Navigation/Drawer/Drawer.stories.tsx +0 -43
  205. package/src/legacy/components/Navigation/Drawer/Drawer.tsx +0 -107
  206. package/src/legacy/components/Navigation/Drawer/DrawerLinkList.styles.ts +0 -65
  207. package/src/legacy/components/Navigation/Drawer/DrawerLinkList.tsx +0 -64
  208. package/src/legacy/components/Navigation/Drawer/__mocks__/mocks.ts +0 -49
  209. package/src/legacy/components/Navigation/Drawer/__tests__/Drawer.test.tsx +0 -180
  210. package/src/legacy/components/Navigation/Drawer/__tests__/DrawerLinkList.test.tsx +0 -66
  211. package/src/legacy/components/Navigation/Drawer/index.ts +0 -1
  212. package/src/legacy/components/Navigation/Drawer/types.ts +0 -8
  213. package/src/legacy/components/Navigation/index.ts +0 -1
  214. /package/lib/{components → src/components}/button/Button.d.ts +0 -0
  215. /package/lib/{components → src/components}/button/Button.stories.d.ts +0 -0
  216. /package/lib/{components → src/components}/button/__tests__/Button.test.d.ts +0 -0
  217. /package/lib/{components → src/components}/button/enums.d.ts +0 -0
  218. /package/lib/{components → src/components}/button/index.d.ts +0 -0
  219. /package/lib/{components → src/components}/grid/col/Col.d.ts +0 -0
  220. /package/lib/{components → src/components}/grid/col/Col.stories.d.ts +0 -0
  221. /package/lib/{components → src/components}/grid/container/Container.d.ts +0 -0
  222. /package/lib/{components → src/components}/grid/container/Container.stories.d.ts +0 -0
  223. /package/lib/{components → src/components}/grid/index.d.ts +0 -0
  224. /package/lib/{components → src/components}/grid/row/Row.d.ts +0 -0
  225. /package/lib/{components → src/components}/grid/row/Row.stories.d.ts +0 -0
  226. /package/lib/{legacy/components/Navigation/Drawer/__tests__/DrawerLinkList.test.d.ts → src/components/icons/__tests__/Icon.test.d.ts} +0 -0
  227. /package/lib/{legacy/components/Icon → src/components/icons}/indicons.d.ts +0 -0
  228. /package/lib/{legacy → src/legacy}/components/Accordion/Accordion.d.ts +0 -0
  229. /package/lib/{legacy → src/legacy}/components/Accordion/index.d.ts +0 -0
  230. /package/lib/{legacy → src/legacy}/components/ListTable/Header/Header.d.ts +0 -0
  231. /package/lib/{legacy → src/legacy}/components/ListTable/Header/index.d.ts +0 -0
  232. /package/lib/{legacy → src/legacy}/components/ListTable/ListTable.d.ts +0 -0
  233. /package/lib/{legacy → src/legacy}/components/ListTable/index.d.ts +0 -0
  234. /package/lib/{legacy → src/legacy}/components/ListTable/mock-data/index.d.ts +0 -0
  235. /package/lib/{legacy → src/legacy}/components/ListTable/mock-data/mock-data.d.ts +0 -0
  236. /package/lib/{legacy → src/legacy}/components/LoadingAwareContainer/LoadingAwareContainer.d.ts +0 -0
  237. /package/lib/{legacy → src/legacy}/components/LoadingAwareContainer/index.d.ts +0 -0
  238. /package/lib/{legacy → src/legacy}/components/Pagination/Pagination.d.ts +0 -0
  239. /package/lib/{legacy → src/legacy}/components/Pagination/Pagination.stories.d.ts +0 -0
  240. /package/lib/{legacy → src/legacy}/components/Pagination/index.d.ts +0 -0
  241. /package/lib/{legacy → src/legacy}/components/Toggle/index.d.ts +0 -0
  242. /package/lib/{legacy → src/legacy}/components/Tooltip/Tooltip.d.ts +0 -0
  243. /package/lib/{legacy → src/legacy}/components/Tooltip/Tooltip.stories.d.ts +0 -0
  244. /package/lib/{legacy → src/legacy}/components/Tooltip/index.d.ts +0 -0
  245. /package/lib/{legacy → src/legacy}/components/basic-section/Section/Section.d.ts +0 -0
  246. /package/lib/{legacy → src/legacy}/components/basic-section/Section/index.d.ts +0 -0
  247. /package/lib/{legacy → src/legacy}/components/basic-section/SectionBlock/SectionBlock.d.ts +0 -0
  248. /package/lib/{legacy → src/legacy}/components/basic-section/SectionBlock/index.d.ts +0 -0
  249. /package/lib/{legacy → src/legacy}/components/basic-section/SectionBody/SectionBody.d.ts +0 -0
  250. /package/lib/{legacy → src/legacy}/components/basic-section/SectionBody/SectionBody.stories.d.ts +0 -0
  251. /package/lib/{legacy → src/legacy}/components/basic-section/SectionBody/index.d.ts +0 -0
  252. /package/lib/{legacy → src/legacy}/components/basic-section/SectionHeader/SectionHeader.d.ts +0 -0
  253. /package/lib/{legacy → src/legacy}/components/basic-section/SectionHeader/index.d.ts +0 -0
  254. /package/lib/{legacy → src/legacy}/components/basic-section/SectionTable/SectionTable.d.ts +0 -0
  255. /package/lib/{legacy → src/legacy}/components/basic-section/SectionTable/index.d.ts +0 -0
  256. /package/lib/{legacy → src/legacy}/components/basic-section/index.d.ts +0 -0
  257. /package/lib/{legacy → src/legacy}/components/buttons/Button/Button.d.ts +0 -0
  258. /package/lib/{legacy → src/legacy}/components/buttons/Button/index.d.ts +0 -0
  259. /package/lib/{legacy → src/legacy}/components/buttons/IconButton/IconButton.d.ts +0 -0
  260. /package/lib/{legacy → src/legacy}/components/buttons/IconButton/index.d.ts +0 -0
  261. /package/lib/{legacy → src/legacy}/components/buttons/commonStyles.d.ts +0 -0
  262. /package/lib/{legacy → src/legacy}/components/buttons/index.d.ts +0 -0
  263. /package/lib/{legacy → src/legacy}/components/buttons/types.d.ts +0 -0
  264. /package/lib/{legacy → src/legacy}/components/dropdowns/BorderSelect/BorderSelect.d.ts +0 -0
  265. /package/lib/{legacy → src/legacy}/components/dropdowns/BorderSelect/index.d.ts +0 -0
  266. /package/lib/{legacy → src/legacy}/components/dropdowns/MultiCombobox/index.d.ts +0 -0
  267. /package/lib/{legacy → src/legacy}/components/dropdowns/Select/Select.d.ts +0 -0
  268. /package/lib/{legacy → src/legacy}/components/dropdowns/Select/index.d.ts +0 -0
  269. /package/lib/{legacy → src/legacy}/components/dropdowns/SingleCombobox/index.d.ts +0 -0
  270. /package/lib/{legacy → src/legacy}/components/dropdowns/commonStyles.d.ts +0 -0
  271. /package/lib/{legacy → src/legacy}/components/dropdowns/index.d.ts +0 -0
  272. /package/lib/{legacy → src/legacy}/components/dropdowns/types.d.ts +0 -0
  273. /package/lib/{legacy → src/legacy}/components/dropdowns/useCombobox.d.ts +0 -0
  274. /package/lib/{legacy → src/legacy}/components/dropdowns/utils.d.ts +0 -0
  275. /package/lib/{legacy → src/legacy}/components/inputs/DatePicker/DatePicker.d.ts +0 -0
  276. /package/lib/{legacy → src/legacy}/components/inputs/DatePicker/DatePicker.stories.d.ts +0 -0
  277. /package/lib/{legacy → src/legacy}/components/inputs/DatePicker/index.d.ts +0 -0
  278. /package/lib/{legacy → src/legacy}/components/inputs/EditableInput/EditableInput.d.ts +0 -0
  279. /package/lib/{legacy → src/legacy}/components/inputs/EditableInput/EditableInput.stories.d.ts +0 -0
  280. /package/lib/{legacy → src/legacy}/components/inputs/EditableInput/index.d.ts +0 -0
  281. /package/lib/{legacy → src/legacy}/components/inputs/NoInputDatePicker/NoInputDatePicker.stories.d.ts +0 -0
  282. /package/lib/{legacy → src/legacy}/components/inputs/NoInputDatePicker/index.d.ts +0 -0
  283. /package/lib/{legacy → src/legacy}/components/inputs/NumberInput/NumberInput.d.ts +0 -0
  284. /package/lib/{legacy → src/legacy}/components/inputs/NumberInput/index.d.ts +0 -0
  285. /package/lib/{legacy → src/legacy}/components/inputs/RadioButtons/RadioButtons.d.ts +0 -0
  286. /package/lib/{legacy → src/legacy}/components/inputs/RadioButtons/RadioButtons.stories.d.ts +0 -0
  287. /package/lib/{legacy → src/legacy}/components/inputs/RadioButtons/index.d.ts +0 -0
  288. /package/lib/{legacy → src/legacy}/components/inputs/RadioGroup/RadioGroup.d.ts +0 -0
  289. /package/lib/{legacy → src/legacy}/components/inputs/RadioGroup/RadioGroup.stories.d.ts +0 -0
  290. /package/lib/{legacy → src/legacy}/components/inputs/RadioGroup/index.d.ts +0 -0
  291. /package/lib/{legacy → src/legacy}/components/inputs/SearchInput/SearchInput.d.ts +0 -0
  292. /package/lib/{legacy → src/legacy}/components/inputs/SearchInput/index.d.ts +0 -0
  293. /package/lib/{legacy → src/legacy}/components/inputs/TextInput/TextInput.d.ts +0 -0
  294. /package/lib/{legacy → src/legacy}/components/inputs/TextInput/index.d.ts +0 -0
  295. /package/lib/{legacy → src/legacy}/components/inputs/index.d.ts +0 -0
  296. /package/lib/{legacy → src/legacy}/components/inputs/inputsCommon.styles.d.ts +0 -0
  297. /package/lib/{legacy → src/legacy}/components/loading-indicators/BarSpinner/BarSpinner.d.ts +0 -0
  298. /package/lib/{legacy → src/legacy}/components/loading-indicators/BarSpinner/BarSpinner.stories.d.ts +0 -0
  299. /package/lib/{legacy → src/legacy}/components/loading-indicators/BarSpinner/index.d.ts +0 -0
  300. /package/lib/{legacy → src/legacy}/components/loading-indicators/CirclePulse/CirclePulse.d.ts +0 -0
  301. /package/lib/{legacy → src/legacy}/components/loading-indicators/CirclePulse/CirclePulse.stories.d.ts +0 -0
  302. /package/lib/{legacy → src/legacy}/components/loading-indicators/CirclePulse/index.d.ts +0 -0
  303. /package/lib/{legacy → src/legacy}/components/loading-indicators/CircleSpinner/CircleSpinner.stories.d.ts +0 -0
  304. /package/lib/{legacy → src/legacy}/components/loading-indicators/CircleSpinner/index.d.ts +0 -0
  305. /package/lib/{legacy → src/legacy}/components/loading-indicators/LoadingIndicator/LoadingIndicator.d.ts +0 -0
  306. /package/lib/{legacy → src/legacy}/components/loading-indicators/LoadingIndicator/LoadingIndicator.stories.d.ts +0 -0
  307. /package/lib/{legacy → src/legacy}/components/loading-indicators/LoadingIndicator/index.d.ts +0 -0
  308. /package/lib/{legacy → src/legacy}/components/loading-indicators/LoadingList/LoadingList.d.ts +0 -0
  309. /package/lib/{legacy → src/legacy}/components/loading-indicators/LoadingList/LoadingList.stories.d.ts +0 -0
  310. /package/lib/{legacy → src/legacy}/components/loading-indicators/LoadingList/index.d.ts +0 -0
  311. /package/lib/{legacy → src/legacy}/components/loading-indicators/PercentageRing/PercentageRing.d.ts +0 -0
  312. /package/lib/{legacy → src/legacy}/components/loading-indicators/PercentageRing/PercentageRing.stories.d.ts +0 -0
  313. /package/lib/{legacy → src/legacy}/components/loading-indicators/PercentageRing/index.d.ts +0 -0
  314. /package/lib/{legacy → src/legacy}/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.d.ts +0 -0
  315. /package/lib/{legacy → src/legacy}/components/loading-indicators/RandomLoadingMessage/RandomLoadingMessage.stories.d.ts +0 -0
  316. /package/lib/{legacy → src/legacy}/components/loading-indicators/RandomLoadingMessage/index.d.ts +0 -0
  317. /package/lib/{legacy → src/legacy}/components/loading-indicators/RandomLoadingMessage/random-messages.d.ts +0 -0
  318. /package/lib/{legacy → src/legacy}/components/loading-indicators/index.d.ts +0 -0
  319. /package/lib/{legacy → src/legacy}/components/modals/ConfirmModal/ConfirmModal.d.ts +0 -0
  320. /package/lib/{legacy → src/legacy}/components/modals/ConfirmModal/index.d.ts +0 -0
  321. /package/lib/{legacy → src/legacy}/components/modals/ModalBase/ModalBase.d.ts +0 -0
  322. /package/lib/{legacy → src/legacy}/components/modals/ModalBase/ModalBase.stories.d.ts +0 -0
  323. /package/lib/{legacy → src/legacy}/components/modals/ModalBase/index.d.ts +0 -0
  324. /package/lib/{legacy → src/legacy}/components/modals/index.d.ts +0 -0
  325. /package/lib/{legacy → src/legacy}/components/text-truncate/TextTruncate.d.ts +0 -0
  326. /package/lib/{legacy → src/legacy}/components/text-truncate/TextTruncate.stories.d.ts +0 -0
  327. /package/lib/{legacy → src/legacy}/components/text-truncate/TextTruncate.test.d.ts +0 -0
  328. /package/lib/{legacy → src/legacy}/components/text-truncate/index.d.ts +0 -0
  329. /package/lib/{legacy → src/legacy}/components/user-feedback/Shrug/Shrug.d.ts +0 -0
  330. /package/lib/{legacy → src/legacy}/components/user-feedback/Shrug/index.d.ts +0 -0
  331. /package/lib/{legacy → src/legacy}/components/user-feedback/index.d.ts +0 -0
  332. /package/lib/{legacy → src/legacy}/styles/globals/index.d.ts +0 -0
  333. /package/lib/{legacy → src/legacy}/styles/index.d.ts +0 -0
  334. /package/lib/{legacy → src/legacy}/tokens/animation.d.ts +0 -0
  335. /package/lib/{legacy → src/legacy}/tokens/breakpoints.d.ts +0 -0
  336. /package/lib/{legacy → src/legacy}/tokens/colors.d.ts +0 -0
  337. /package/lib/{legacy → src/legacy}/tokens/index.d.ts +0 -0
  338. /package/lib/{legacy → src/legacy}/tokens/margin.d.ts +0 -0
  339. /package/lib/{legacy → src/legacy}/tokens/numbers.d.ts +0 -0
  340. /package/lib/{legacy → src/legacy}/tokens/padding.d.ts +0 -0
  341. /package/lib/{legacy → src/legacy}/tokens/spacings.d.ts +0 -0
  342. /package/lib/{legacy → src/legacy}/tokens/typography.d.ts +0 -0
  343. /package/lib/{legacy → src/legacy}/utils/color.d.ts +0 -0
  344. /package/lib/{legacy → src/legacy}/utils/index.d.ts +0 -0
  345. /package/lib/{legacy → src/legacy}/utils/number.d.ts +0 -0
  346. /package/lib/{legacy → src/legacy}/utils/string.d.ts +0 -0
  347. /package/lib/{setupTests.d.ts → src/setupTests.d.ts} +0 -0
  348. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderColor.d.ts +0 -0
  349. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderColor.stories.d.ts +0 -0
  350. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderRadius.d.ts +0 -0
  351. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderRadius.stories.d.ts +0 -0
  352. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderStyles.d.ts +0 -0
  353. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderStyles.stories.d.ts +0 -0
  354. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderThickness.d.ts +0 -0
  355. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/BorderThickness.stories.d.ts +0 -0
  356. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/borders/index.d.ts +0 -0
  357. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/Colors.d.ts +0 -0
  358. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/Colors.stories.d.ts +0 -0
  359. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/Swatch.d.ts +0 -0
  360. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/UtilityClasses.d.ts +0 -0
  361. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/UtilityClasses.stories.d.ts +0 -0
  362. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/constants.d.ts +0 -0
  363. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/hooks.d.ts +0 -0
  364. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/colors/index.d.ts +0 -0
  365. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/sizing/Sizing.d.ts +0 -0
  366. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/sizing/Sizing.stories.d.ts +0 -0
  367. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/sizing/index.d.ts +0 -0
  368. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/typography/Typography.d.ts +0 -0
  369. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/typography/Typography.stories.d.ts +0 -0
  370. /package/lib/{stylesAndAnimations → src/stylesAndAnimations}/typography/index.d.ts +0 -0
@@ -0,0 +1,162 @@
1
+ export const sampleData = [
2
+ {
3
+ name: 'Thalion',
4
+ class: 'Ranger',
5
+ age: 120,
6
+ weapon: 'Longbow',
7
+ backstory: 'Raised by wolves in the deep forests.',
8
+ favoriteMeal: 'Venison stew',
9
+ },
10
+ {
11
+ name: 'Brom',
12
+ class: 'Fighter',
13
+ age: 35,
14
+ weapon: 'Greatsword',
15
+ backstory: 'A former soldier seeking redemption.',
16
+ favoriteMeal: 'Roasted boar',
17
+ },
18
+ {
19
+ name: 'Elysia',
20
+ class: 'Cleric',
21
+ age: 60,
22
+ weapon: 'Mace',
23
+ backstory: 'A devoted follower of the goddess of life.',
24
+ favoriteMeal: 'Vegetable soup',
25
+ },
26
+ {
27
+ name: 'Faelar',
28
+ class: 'Rogue',
29
+ age: 80,
30
+ weapon: 'Dagger',
31
+ backstory: 'Grew up on the streets of a bustling city.',
32
+ favoriteMeal: 'Bread and cheese',
33
+ },
34
+ {
35
+ name: 'Maelis',
36
+ class: 'Wizard',
37
+ age: 200,
38
+ weapon: 'Staff',
39
+ backstory: 'A scholar obsessed with ancient magic.',
40
+ favoriteMeal: 'Mushroom stew',
41
+ },
42
+ {
43
+ name: 'Grimm',
44
+ class: 'Barbarian',
45
+ age: 40,
46
+ weapon: 'Battleaxe',
47
+ backstory: 'Hails from a tribe in the frozen north.',
48
+ favoriteMeal: 'Grilled salmon',
49
+ },
50
+ {
51
+ name: 'Seraphina',
52
+ class: 'Bard',
53
+ age: 25,
54
+ weapon: 'Rapier',
55
+ backstory: 'A wandering minstrel with a mysterious past.',
56
+ favoriteMeal: 'Apple pie',
57
+ },
58
+ {
59
+ name: 'Kael',
60
+ class: 'Druid',
61
+ age: 75,
62
+ weapon: 'Scimitar',
63
+ backstory: 'A guardian of the natural world.',
64
+ favoriteMeal: 'Berry tart',
65
+ },
66
+ {
67
+ name: 'Aria',
68
+ class: 'Paladin',
69
+ age: 30,
70
+ weapon: 'Longsword',
71
+ backstory: 'A knight on a divine mission.',
72
+ favoriteMeal: 'Roasted chicken',
73
+ },
74
+ {
75
+ name: 'Xan',
76
+ class: 'Warlock',
77
+ age: 45,
78
+ weapon: 'Pact Blade',
79
+ backstory: 'Made a pact with a powerful entity for magic.',
80
+ favoriteMeal: 'Stuffed peppers',
81
+ },
82
+ {
83
+ name: 'Lyra',
84
+ class: 'Sorcerer',
85
+ age: 28,
86
+ weapon: 'Dagger',
87
+ backstory: 'Born with innate magical abilities.',
88
+ favoriteMeal: 'Pancakes with syrup',
89
+ },
90
+ {
91
+ name: 'Thorn',
92
+ class: 'Monk',
93
+ age: 50,
94
+ weapon: 'Quarterstaff',
95
+ backstory: 'A hermit who seeks enlightenment.',
96
+ favoriteMeal: 'Rice and vegetables',
97
+ },
98
+ {
99
+ name: 'Cassia',
100
+ class: 'Ranger',
101
+ age: 32,
102
+ weapon: 'Shortbow',
103
+ backstory: 'A hunter with a keen eye.',
104
+ favoriteMeal: 'Roasted pheasant',
105
+ },
106
+ {
107
+ name: 'Darius',
108
+ class: 'Fighter',
109
+ age: 36,
110
+ weapon: 'Longsword',
111
+ backstory: 'A mercenary with a heart of gold.',
112
+ favoriteMeal: 'Beef stew',
113
+ },
114
+ {
115
+ name: 'Iris',
116
+ class: 'Cleric',
117
+ age: 60,
118
+ weapon: 'Warhammer',
119
+ backstory: 'A healer devoted to the god of light.',
120
+ favoriteMeal: 'Fresh bread and soup',
121
+ },
122
+ {
123
+ name: 'Fenrir',
124
+ class: 'Barbarian',
125
+ age: 42,
126
+ weapon: 'Greataxe',
127
+ backstory: 'A warrior from a distant land.',
128
+ favoriteMeal: 'Grilled steak',
129
+ },
130
+ {
131
+ name: 'Luna',
132
+ class: 'Druid',
133
+ age: 70,
134
+ weapon: 'Sickle',
135
+ backstory: 'A protector of the natural world.',
136
+ favoriteMeal: 'Fruit salad',
137
+ },
138
+ {
139
+ name: 'Orion',
140
+ class: 'Paladin',
141
+ age: 33,
142
+ weapon: 'Halberd',
143
+ backstory: 'A knight on a holy quest.',
144
+ favoriteMeal: 'Roasted lamb',
145
+ },
146
+ {
147
+ name: 'Astra',
148
+ class: 'Bard',
149
+ age: 26,
150
+ weapon: 'Lute',
151
+ backstory: 'A musician with a magical voice.',
152
+ favoriteMeal: 'Honey cake',
153
+ },
154
+ {
155
+ name: 'Zephyr',
156
+ class: 'Rogue',
157
+ age: 29,
158
+ weapon: 'Shortsword',
159
+ backstory: 'A thief with a quick hand.',
160
+ favoriteMeal: 'Fish and chips',
161
+ },
162
+ ];
package/src/index.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  import './styles/index.scss';
2
2
 
3
3
  export { GlobalStyles } from './legacy/styles/globals/index';
4
- export { faIcons } from './legacy/components/Icon/faIcons';
5
- export { indicons } from './legacy/components/Icon/indicons';
6
4
 
7
5
  export {
8
6
  ANIMATION,
@@ -26,10 +24,8 @@ export {
26
24
  CirclePulse,
27
25
  CircleSpinner,
28
26
  ConfirmModal,
29
- Drawer,
30
27
  DatePicker,
31
28
  EditableInput,
32
- Icon,
33
29
  IconButton,
34
30
  ListTable,
35
31
  LoadingAwareContainer,
@@ -63,3 +59,4 @@ export { numberUtils, stringUtils, colorUtils } from './legacy/utils';
63
59
  // New Components
64
60
  export { Container, Row, Col } from './components/grid';
65
61
  export { Button } from './components/button';
62
+ export { Icon } from './components/icons';
@@ -2,7 +2,7 @@
2
2
 
3
3
  import React from 'react';
4
4
 
5
- import { Icon } from '@/legacy/components/Icon';
5
+ import { Icon } from '@/components/icons';
6
6
  import { PermafrostComponent } from '@/types';
7
7
 
8
8
  import { StyledAccordion } from './Accordion.styles';
@@ -20,7 +20,7 @@ export const Accordion = (props: Props) => {
20
20
  <StyledAccordion className={className} id={id} open={open} data-cy={props['data-cy']}>
21
21
  <summary>
22
22
  <div className="header-container">
23
- <Icon className="toggle-icon" name="chevron-up" size={[14]} />
23
+ <Icon className="toggle-icon" name="chevron-up" />
24
24
  {header ? <h2>{header}</h2> : null}
25
25
  </div>
26
26
  </summary>
@@ -6,7 +6,7 @@ import { numberUtils } from '@/legacy/utils';
6
6
 
7
7
  import { BorderSelect } from '@/legacy/components/dropdowns';
8
8
  import { Button } from '@/legacy/components/buttons';
9
- import { Icon } from '@/legacy/components/Icon';
9
+ import { Icon } from '@/components/icons';
10
10
 
11
11
  import { StyledHeader } from './Header.styles';
12
12
 
@@ -57,7 +57,6 @@ export const Header = (props: Props) => {
57
57
  <Icon
58
58
  name="fa-arrow-down"
59
59
  ariaLabel="descending"
60
- size={[16]}
61
60
  style={{ transform: sortBy.descending ? '' : 'rotate(180deg)' }}
62
61
  />
63
62
  </Button>
@@ -1,10 +1,11 @@
1
1
  import React, { useState } from 'react';
2
2
  import type { Meta, StoryObj } from '@storybook/react';
3
3
 
4
- import { Button, Icon } from '@/legacy/components';
4
+ import { Button } from '@/legacy/components';
5
5
 
6
6
  import { ListTable } from './ListTable';
7
7
  import { mockUserHeaders, mockDocProcHeaders, mockAllUsers, mockDocProcReport } from './mock-data';
8
+ import { Icon } from '@/components/icons';
8
9
 
9
10
  const meta = {
10
11
  component: ListTable,
@@ -68,7 +68,7 @@ export const StyledToggle = styled.label`
68
68
  }
69
69
 
70
70
  .checked-icon {
71
- fill: #fff;
71
+ color: #fff;
72
72
  display: none;
73
73
  left: 3px;
74
74
  }
@@ -3,16 +3,17 @@
3
3
  import React from 'react';
4
4
  import classNames from 'classnames';
5
5
 
6
- import { Icon } from '@/legacy/components';
6
+ import { Icon } from '@/components/icons';
7
7
  import { PermafrostComponent, IconName } from '@/types';
8
8
  import { StyledToggle } from './Toggle.styles';
9
+ import { IconSizes } from '@/components/icons/types';
9
10
 
10
11
  type Props = {
11
12
  disabled: boolean;
12
13
  onChange: any;
13
14
  value: boolean;
14
15
  ['aria-label']?: string;
15
- iconSize?: number | string;
16
+ iconSize?: IconSizes;
16
17
  checkedIconName?: IconName;
17
18
  notCheckedIconName?: IconName;
18
19
  } & PermafrostComponent;
@@ -29,6 +30,8 @@ export const Toggle = (props: Props) => {
29
30
  iconSize,
30
31
  } = props;
31
32
 
33
+ const defaultIconStyle = { width: '5px', height: '5px' };
34
+
32
35
  return (
33
36
  <StyledToggle
34
37
  className={classNames(className, {
@@ -47,10 +50,20 @@ export const Toggle = (props: Props) => {
47
50
  <span className="slider round" />
48
51
 
49
52
  {checkedIconName && (
50
- <Icon name={checkedIconName} size={[iconSize || 5]} className="checked-icon" />
53
+ <Icon
54
+ size={iconSize}
55
+ name={checkedIconName}
56
+ className="checked-icon"
57
+ style={iconSize ? undefined : defaultIconStyle}
58
+ />
51
59
  )}
52
60
  {notCheckedIconName && (
53
- <Icon name={notCheckedIconName} size={[iconSize || 5]} className="not-checked-icon" />
61
+ <Icon
62
+ size={iconSize}
63
+ name={notCheckedIconName}
64
+ className="not-checked-icon"
65
+ style={iconSize ? undefined : defaultIconStyle}
66
+ />
54
67
  )}
55
68
  </StyledToggle>
56
69
  );
@@ -4,7 +4,7 @@ import React, { useState } from 'react';
4
4
  import classNames from 'classnames';
5
5
 
6
6
  import { IconName } from '@/types';
7
- import { Icon } from '@/legacy/components/Icon';
7
+ import { Icon } from '@/components/icons';
8
8
  import { BorderSelect } from '@/legacy/components/dropdowns';
9
9
 
10
10
  import { StyledSectionTable } from './SectionTable.styles';
@@ -66,7 +66,7 @@ export function Button(props: ButtonProps): React.ReactElement {
66
66
  type={type || 'button'}
67
67
  {...rest}
68
68
  >
69
- {busy && <CircleSpinner size="0.9em" style={{ marginRight: '0.5em' }} />}
69
+ {busy && <CircleSpinner className="mr-2" />}
70
70
 
71
71
  {children}
72
72
  </StyledButton>
@@ -8,7 +8,8 @@ import { AriaButtonProps } from '@react-types/button';
8
8
 
9
9
  import { SPACING } from '@/legacy/tokens';
10
10
  import { IconName, PermafrostComponent } from '@/types';
11
- import { Icon, CircleSpinner } from '@/legacy/components';
11
+ import { Icon } from '@/components/icons';
12
+ import { CircleSpinner } from '@/legacy/components';
12
13
  import { ButtonSize, IconButtonVariant } from '../types';
13
14
 
14
15
  import { StyledIconButton, StyledIconButtonLink } from './IconButton.styles';
@@ -81,7 +82,6 @@ export function IconButton(props: Props) {
81
82
 
82
83
  const iconElement = busy ? (
83
84
  <CircleSpinner
84
- size="1em"
85
85
  style={{
86
86
  marginTop: `${adjustAlignment}px`,
87
87
  marginBottom: `${Math.abs(adjustAlignment)}px`,
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import { v4 as uuid } from 'uuid';
5
5
  import classNames from 'classnames';
6
6
 
7
- import { Icon } from '../../Icon';
7
+ import { Icon } from '@/components/icons';
8
8
  import { PermafrostComponent } from '@/types';
9
9
 
10
10
  import { StyledSelect, StyledValidationError } from './BorderSelect.styles';
@@ -3,10 +3,10 @@
3
3
  import React, { useRef } from 'react';
4
4
  import type { Meta, StoryObj } from '@storybook/react';
5
5
 
6
- import { Icon, IconButton } from '@/legacy/components';
7
6
  import { ComboboxOption } from '../types';
8
7
  import { MultiCombobox } from './MultiCombobox';
9
8
  import { useCombobox } from '../useCombobox';
9
+ import { Button, Icon } from '@/index';
10
10
 
11
11
  const options = [
12
12
  { value: 'angie', label: 'angie - Labeler' },
@@ -35,13 +35,14 @@ function StoryRender(props: any) {
35
35
  return (
36
36
  <>
37
37
  <MultiCombobox ref={selectEl} {...props} />
38
- <IconButton
39
- adjustAlignment={0}
38
+ <Button
40
39
  iconName="trash"
41
- onPress={() => clearValue()}
42
- label="clear selections"
43
- style={{ marginTop: '1em' }}
44
- />
40
+ onClick={() => clearValue()}
41
+ ariaLabel="clear selections"
42
+ className="mt-4"
43
+ >
44
+ clear selections
45
+ </Button>
45
46
  </>
46
47
  );
47
48
  }
@@ -68,7 +68,9 @@ export const StyledMultiCombobox = styled(ReactSelect)`
68
68
  }
69
69
 
70
70
  &__remove {
71
- padding-right: ${spacingCommon};
71
+ margin-right: ${spacingCommon};
72
+ margin-left: 4px;
73
+ padding: 0;
72
74
 
73
75
  :hover {
74
76
  cursor: pointer;
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import { components } from 'react-select';
5
5
 
6
6
  import { PermafrostComponent } from '@/types';
7
- import { Icon } from '../../Icon';
7
+ import { Icon } from '@/components/icons';
8
8
  import { addCustomProps } from '../utils';
9
9
  import type { ComboboxProps, ComboboxOption } from '../types';
10
10
 
@@ -62,7 +62,7 @@ export const MultiCombobox = React.forwardRef((props: Props, ref: any) => {
62
62
  const MultiValueRemove = (props: any) => {
63
63
  return (
64
64
  <components.MultiValueRemove {...props}>
65
- <Icon name="x-close" ariaLabel="remove" size={[10]} />
65
+ <Icon name="x-close" ariaLabel="remove" size="xs" />
66
66
  </components.MultiValueRemove>
67
67
  );
68
68
  };
@@ -2,7 +2,7 @@ import React from 'react';
2
2
 
3
3
  import { v4 as uuid } from 'uuid';
4
4
 
5
- import { Icon } from '@/legacy/components/Icon';
5
+ import { Icon } from '@/components/icons';
6
6
  import { PermafrostComponent } from '@/types';
7
7
 
8
8
  import { StyledSelect } from './Select.styles';
@@ -61,8 +61,8 @@ export const Select = (props: Props) => {
61
61
  );
62
62
  })}
63
63
  </select>
64
-
65
- <Icon className="chevron" name="chevron-down" size={size === 'small' ? [10] : [12]} />
64
+ {/* TODO: Fix this size mismatch when bringing Select into DS */}
65
+ <Icon className="chevron" name="chevron-down" size={size === 'small' ? 'xs' : 'sm'} />
66
66
  </div>
67
67
  </StyledSelect>
68
68
  );
@@ -2,7 +2,7 @@ import React from 'react';
2
2
 
3
3
  import { components } from 'react-select';
4
4
 
5
- import { Icon } from '@/legacy/components/Icon';
5
+ import { Icon } from '@/components/icons';
6
6
  import { PermafrostComponent } from '@/types';
7
7
  import { addCustomProps } from '../utils';
8
8
 
@@ -53,7 +53,7 @@ export const SingleCombobox = React.forwardRef((props: Props, ref: any) => {
53
53
  const DropdownIndicator = (props: any) => {
54
54
  return (
55
55
  <components.DropdownIndicator {...props}>
56
- <Icon name="fa-caret-down" ariaLabel="open dropdown" size={[14]} />
56
+ <Icon name="fa-caret-down" ariaLabel="open dropdown" />
57
57
  </components.DropdownIndicator>
58
58
  );
59
59
  };
@@ -2,7 +2,7 @@ export { Accordion } from './Accordion';
2
2
  export { Section, SectionBlock, SectionBody, SectionHeader, SectionTable } from './basic-section';
3
3
  export { Button, IconButton } from './buttons';
4
4
  export { BorderSelect, MultiCombobox, Select, SingleCombobox } from './dropdowns';
5
- export { Icon, faIcons, indicons } from './Icon';
5
+
6
6
  export {
7
7
  EditableInput,
8
8
  NumberInput,
@@ -29,7 +29,6 @@ export { Pagination } from './Pagination';
29
29
  export { Shrug } from './user-feedback';
30
30
  export { ConfirmModal, ModalBase } from './modals';
31
31
  export { LoadingAwareContainer } from './LoadingAwareContainer';
32
- export { Drawer } from './Navigation/Drawer';
33
32
  export { TextTruncate } from './text-truncate';
34
33
  export { Toggle } from './Toggle';
35
34
  export { Tooltip } from './Tooltip';
@@ -8,7 +8,7 @@ import classNames from 'classnames';
8
8
 
9
9
  import { stringUtils } from '@/legacy/utils';
10
10
 
11
- import { Icon } from '@/legacy/components/Icon';
11
+ import { Icon } from '@/components/icons';
12
12
  import { PermafrostComponent } from '@/types';
13
13
 
14
14
  import { StyledEditableInput } from './EditableInput.styles';
@@ -27,7 +27,7 @@ export const Single: Story = {
27
27
  label: 'Pick a date:',
28
28
  value: today,
29
29
  triggerIcon: 'calendar',
30
- triggerIconSize: [20],
30
+ triggerIconSize: 'lg',
31
31
  clearOnClose: true,
32
32
  onChange: (date: Date | DateRange | undefined) => {
33
33
  // eslint-disable-next-line no-console
@@ -43,7 +43,7 @@ export const Range: Story = {
43
43
  value: today,
44
44
  isRangePicker: true,
45
45
  triggerIcon: 'calendar',
46
- triggerIconSize: [20],
46
+ triggerIconSize: 'lg',
47
47
  onChange: (date: Date | DateRange | undefined) => {
48
48
  // eslint-disable-next-line no-console
49
49
  console.log(date);
@@ -12,9 +12,10 @@ import {
12
12
  } from 'react-day-picker';
13
13
  import { usePopper } from 'react-popper';
14
14
  import { IconName, PermafrostComponent } from '@/types';
15
- import { Icon } from '@/index';
15
+ import { Icon } from '@/components/icons';
16
16
 
17
17
  import { StyledNoInputDatePicker } from './NoInputDatePicker.styles';
18
+ import { IconSizes } from '@/components/icons/types';
18
19
 
19
20
  type Props = PermafrostComponent & {
20
21
  ariaLabel?: string;
@@ -28,7 +29,7 @@ type Props = PermafrostComponent & {
28
29
  selectedRange?: DateRange | undefined;
29
30
  value: Date | undefined;
30
31
  triggerIcon: IconName;
31
- triggerIconSize: [string | number];
32
+ triggerIconSize: IconSizes;
32
33
  isRangePicker?: boolean;
33
34
  isOpen?: boolean;
34
35
  clearOnClose?: boolean;
@@ -49,7 +50,7 @@ function CustomCaption(props: CaptionProps) {
49
50
  }
50
51
  }}
51
52
  >
52
- <Icon size={[10]} ariaLabel="Previous Month" name="chevron-left" />
53
+ <Icon size="sm" ariaLabel="Previous Month" name="chevron-left" />
53
54
  </button>
54
55
  <h2 className="custom__caption__text">{format(props.displayMonth, 'MMM yyyy')}</h2>
55
56
  <button
@@ -62,7 +63,7 @@ function CustomCaption(props: CaptionProps) {
62
63
  }
63
64
  }}
64
65
  >
65
- <Icon size={[10]} ariaLabel="Next Month" name="chevron-right" />
66
+ <Icon size="sm" ariaLabel="Next Month" name="chevron-right" />
66
67
  </button>
67
68
  </div>
68
69
  );
@@ -5,7 +5,7 @@ import classNames from 'classnames';
5
5
  import { v4 as uuid } from 'uuid';
6
6
 
7
7
  import { Button } from '@/legacy/components/buttons';
8
- import { Icon } from '@/legacy/components/Icon';
8
+ import { Icon } from '@/components/icons';
9
9
  import { PermafrostComponent } from '@/types';
10
10
 
11
11
  import { StyledNumberField } from './NumberInput.styles';
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import { v4 as uuid } from 'uuid';
5
5
  import classNames from 'classnames';
6
6
 
7
- import { Icon } from '@/legacy/components/Icon';
7
+ import { Icon } from '@/components/icons';
8
8
  import { PermafrostComponent } from '@/types';
9
9
 
10
10
  import { StyledSearchField } from './SearchInput.styles';
@@ -2,23 +2,24 @@
2
2
 
3
3
  import React from 'react';
4
4
 
5
- import { Icon } from '../../Icon';
5
+ import { Icon } from '@/components/icons';
6
6
  import { PermafrostComponent } from '@/types';
7
+ import { IconSizes } from '@/components/icons/types';
7
8
 
8
9
  type Props = PermafrostComponent & {
9
10
  ariaLabel?: string;
10
- size?: string;
11
- style?: { [key: string]: string };
11
+ size?: IconSizes;
12
+ style?: React.CSSProperties;
12
13
  fill?: string;
13
14
  };
14
15
 
15
16
  export function CircleSpinner(props: Props): React.ReactElement {
16
- const { className, fill, id, size, style, ariaLabel = 'Loading...' } = props;
17
+ const { className, fill, id, size = 'sm', style, ariaLabel = 'Loading...' } = props;
17
18
 
18
- const loaderSize = size || '12px';
19
- const loaderStyle = {
19
+ const loaderStyle: React.CSSProperties = {
20
20
  position: 'relative',
21
21
  top: '1px',
22
+ color: fill || 'currentColor',
22
23
  ...style,
23
24
  };
24
25
 
@@ -28,9 +29,8 @@ export function CircleSpinner(props: Props): React.ReactElement {
28
29
  className={`spin ${className || ''}`}
29
30
  data-cy={props['data-cy']}
30
31
  id={id}
31
- size={[loaderSize]}
32
+ size={size}
32
33
  style={loaderStyle}
33
- fill={fill || 'currentColor'}
34
34
  ariaLabel={ariaLabel}
35
35
  />
36
36
  );
@@ -19,5 +19,7 @@ export const StyledShrug = styled.div`
19
19
  svg {
20
20
  fill: ${COLORS.iron};
21
21
  opacity: 0.5;
22
+ width: 260px;
23
+ height: 84px;
22
24
  }
23
25
  `;
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import { Link } from 'react-router-dom';
5
5
 
6
6
  import { Button } from '@/legacy/components/buttons';
7
- import { Icon } from '@/legacy/components/Icon';
7
+ import { Icon } from '@/components/icons';
8
8
  import { PermafrostComponent } from '@/types';
9
9
 
10
10
  import { StyledShrug } from './Shrug.styles';
@@ -22,7 +22,7 @@ export function Shrug(props: Props): React.ReactElement {
22
22
  const { actionLink, actionText, buttonAction, buttonText, className, id, message } = props;
23
23
  return (
24
24
  <StyledShrug className={className} data-cy={props['data-cy']} id={id}>
25
- <Icon name="shrug" size={['260px', '84px']} />
25
+ <Icon name="shrug" />
26
26
  {typeof message === 'string' ? (
27
27
  <p className="t-subhead-large" {...props?.messageProps}>
28
28
  {message}
@@ -31,12 +31,12 @@ export function Shrug(props: Props): React.ReactElement {
31
31
  message
32
32
  )}
33
33
  {actionLink && actionText && (
34
- <Link to={actionLink} className="button blue cta" style={{ marginTop: '20px' }}>
34
+ <Link to={actionLink} className="button blue cta mt-5">
35
35
  {actionText}
36
36
  </Link>
37
37
  )}
38
38
  {buttonAction && buttonText && (
39
- <Button onClick={buttonAction} style={{ marginTop: '20px' }} variant="cta">
39
+ <Button onClick={buttonAction} className="mt-5" variant="cta">
40
40
  {buttonText}
41
41
  </Button>
42
42
  )}
@@ -2,10 +2,10 @@
2
2
  @import 'variables/index.scss';
3
3
 
4
4
  // Components
5
- @import '../legacy/components/Navigation/Drawer/Drawer.scss';
6
5
  @import '../components/button/styles/Button.scss';
6
+ @import '../components/icons/styles/Icon.scss';
7
+ @import '../components/tables/table/Table.scss';
7
8
 
8
- // Helper Classes
9
9
  @import 'typography';
10
10
  @import 'colors';
11
11
  @import 'borders';
@@ -0,0 +1,7 @@
1
+ :root {
2
+ --pf-icon-size-xs: 0.6rem; // eww, probably want this to be 0.5 eventually but we use 0.6 (10px) commonly in the codebase
3
+ --pf-icon-size-sm: 0.75rem;
4
+ --pf-icon-size-md: 1rem;
5
+ --pf-icon-size-lg: 1.5rem;
6
+ --pf-icon-size-xl: 2rem;
7
+ }