@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
@@ -6,12 +6,12 @@ declare const meta: {
6
6
  argTypes: {
7
7
  className: {
8
8
  control: {
9
- disable: boolean;
9
+ disable: true;
10
10
  };
11
11
  };
12
12
  value: {
13
13
  control: {
14
- disable: boolean;
14
+ disable: true;
15
15
  };
16
16
  };
17
17
  };
@@ -0,0 +1 @@
1
+ export declare const StyledNumberField: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,13 @@
1
+ import { AbstractRadioGroup } from '../RadioGroup';
2
+ export declare const StyledRadioGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("../../../../types").PermafrostComponent & {
3
+ value?: string;
4
+ onChange?: (value: string) => void;
5
+ children: import("react").ReactNode;
6
+ className?: string;
7
+ } & import("@react-types/radio").AriaRadioGroupProps, {
8
+ hideFocusRing: boolean;
9
+ color: string;
10
+ labelColor: string;
11
+ hoverAndSelectedColor: string;
12
+ focusRingColor: string;
13
+ }>> & string & Omit<typeof AbstractRadioGroup, keyof import("react").Component<any, {}, any>>;
@@ -0,0 +1 @@
1
+ export declare const StyledRadioGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,20 +1,19 @@
1
- /// <reference types="react" />
2
1
  import { StoryObj } from '@storybook/react';
3
2
  import { SearchInput } from './SearchInput';
4
3
  declare const meta: {
5
4
  component: {
6
5
  (props: import("../../../../types").PermafrostComponent & {
7
- inputBorder?: boolean | undefined;
8
- showClearInputIcon?: boolean | undefined;
9
- showSearchIcon?: boolean | undefined;
6
+ inputBorder?: boolean;
7
+ showClearInputIcon?: boolean;
8
+ showSearchIcon?: boolean;
10
9
  inputProps?: {
11
10
  [key: string]: string;
12
- } | undefined;
13
- onChange?: ((e: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
11
+ };
12
+ onChange?: (e: import("react").ChangeEvent<HTMLInputElement>) => void;
14
13
  onClear?(): void;
15
- onKeyUp?: ((e: import("react").KeyboardEvent<HTMLInputElement>) => void) | undefined;
16
- placeholder?: string | undefined;
17
- value?: string | undefined;
14
+ onKeyUp?: (e: import("react").KeyboardEvent<HTMLInputElement>) => void;
15
+ placeholder?: string;
16
+ value?: string;
18
17
  }): import("react/jsx-runtime").JSX.Element;
19
18
  defaultProps: {
20
19
  className: string;
@@ -0,0 +1 @@
1
+ export declare const StyledSearchField: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -6,47 +6,47 @@ declare const meta: {
6
6
  argTypes: {
7
7
  autoComplete: {
8
8
  control: {
9
- disable: boolean;
9
+ disable: true;
10
10
  };
11
11
  };
12
12
  className: {
13
13
  control: {
14
- disable: boolean;
14
+ disable: true;
15
15
  };
16
16
  };
17
17
  defaultValue: {
18
18
  control: {
19
- disable: boolean;
19
+ disable: true;
20
20
  };
21
21
  };
22
22
  inputProps: {
23
23
  control: {
24
- disable: boolean;
24
+ disable: true;
25
25
  };
26
26
  };
27
27
  name: {
28
28
  control: {
29
- disable: boolean;
29
+ disable: true;
30
30
  };
31
31
  };
32
32
  promptProps: {
33
33
  control: {
34
- disable: boolean;
34
+ disable: true;
35
35
  };
36
36
  };
37
37
  type: {
38
38
  control: {
39
- disable: boolean;
39
+ disable: true;
40
40
  };
41
41
  };
42
42
  validationErrors: {
43
43
  control: {
44
- disable: boolean;
44
+ disable: true;
45
45
  };
46
46
  };
47
47
  value: {
48
48
  control: {
49
- disable: boolean;
49
+ disable: true;
50
50
  };
51
51
  };
52
52
  };
@@ -0,0 +1,2 @@
1
+ export declare const StyledTextInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const StyledInputInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1 @@
1
+ export declare const StyledBarSpinner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,7 @@
1
+ export declare const StyledLoadingIndicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
+ overallsize: string;
3
+ ripplesize: string;
4
+ }>> & string;
5
+ export declare const StyledMessageLoadingIndicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
6
+ overallsize: string;
7
+ }>> & string;
@@ -1,11 +1,10 @@
1
1
  import React from 'react';
2
2
  import { PermafrostComponent } from '@/types';
3
+ import { IconSizes } from '@/components/icons/types';
3
4
  type Props = PermafrostComponent & {
4
5
  ariaLabel?: string;
5
- size?: string;
6
- style?: {
7
- [key: string]: string;
8
- };
6
+ size?: IconSizes;
7
+ style?: React.CSSProperties;
9
8
  fill?: string;
10
9
  };
11
10
  export declare function CircleSpinner(props: Props): React.ReactElement;
@@ -0,0 +1,7 @@
1
+ export declare const StyledLoadingIndicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
+ overallsize: string;
3
+ ripplesize: string;
4
+ }>> & string;
5
+ export declare const StyledMessageLoadingIndicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
6
+ overallsize: string;
7
+ }>> & string;
@@ -0,0 +1 @@
1
+ export declare const StyledLoadingList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1 @@
1
+ export declare const StyledPercentageRing: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -12,27 +12,27 @@ declare const meta: {
12
12
  argTypes: {
13
13
  open: {
14
14
  control: {
15
- disable: boolean;
15
+ disable: true;
16
16
  };
17
17
  };
18
18
  className: {
19
19
  control: {
20
- disable: boolean;
20
+ disable: true;
21
21
  };
22
22
  };
23
23
  describedBy: {
24
24
  control: {
25
- disable: boolean;
25
+ disable: true;
26
26
  };
27
27
  };
28
28
  modalNode: {
29
29
  control: {
30
- disable: boolean;
30
+ disable: true;
31
31
  };
32
32
  };
33
33
  width: {
34
34
  control: {
35
- disable: boolean;
35
+ disable: true;
36
36
  };
37
37
  };
38
38
  };
@@ -0,0 +1 @@
1
+ export declare const StyledConfirmModal: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ declare function ModalAdapter(props: any): React.ReactElement;
3
+ export declare const StyledModalBase: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & Omit<typeof ModalAdapter, keyof React.Component<any, {}, any>>;
4
+ export {};
@@ -0,0 +1 @@
1
+ export declare const StyledTextTruncate: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
@@ -8,19 +8,19 @@ declare const meta: {
8
8
  args: {
9
9
  message: string;
10
10
  };
11
- decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-bf5e6555").R, {
12
- id?: string | undefined;
13
- className?: string | undefined;
14
- 'data-cy'?: string | undefined;
15
- 'data-testid'?: string | undefined;
16
- actionLink?: string | undefined;
17
- actionText?: string | undefined;
11
+ decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
12
+ id?: string;
13
+ className?: string;
14
+ 'data-cy'?: string;
15
+ 'data-testid'?: string;
16
+ actionLink?: string;
17
+ actionText?: string;
18
18
  buttonAction?: (() => void) | undefined;
19
- buttonText?: string | undefined;
20
- message?: React.ReactNode;
19
+ buttonText?: string;
20
+ message?: string | React.ReactNode;
21
21
  messageProps?: {
22
- 'data-cy': string;
23
- } | undefined;
22
+ "data-cy": string;
23
+ };
24
24
  }>) => import("react/jsx-runtime").JSX.Element)[];
25
25
  };
26
26
  export default meta;
@@ -0,0 +1 @@
1
+ export declare const StyledShrug: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const Buttons: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const Forms: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const Layout: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const Lists: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const MarginPadding: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const Media: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const Tables: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const Typography: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const UtilityClasses: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
@@ -0,0 +1,10 @@
1
+ export type PermafrostComponent = {
2
+ id?: string;
3
+ className?: string;
4
+ 'data-cy'?: string;
5
+ 'data-testid'?: string;
6
+ };
7
+ export type ButtonVariant = 'default' | 'primary' | 'destructive';
8
+ export type ButtonSize = 'normal' | 'large';
9
+ import { IconName } from '../build/generated/iconTypes';
10
+ export type { IconName };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indico-data/design-system",
3
- "version": "2.1.3",
3
+ "version": "2.3.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "lib/index.js",
@@ -12,15 +12,17 @@
12
12
  "url": "https://github.com/IndicoDataSolutions/permafrost.git"
13
13
  },
14
14
  "scripts": {
15
- "dev": "storybook dev -p 6006",
15
+ "dev": "npm run generate-icons && storybook dev -p 6006",
16
16
  "lint": "yarn eslint src --ext ts,js,tsx,jsx",
17
- "build": "rollup -c",
17
+ "build": "npm run generate-icons && rollup -c",
18
18
  "build storybook": "storybook build",
19
19
  "test-storybook": "test-storybook",
20
20
  "test": "DEBUG_PRINT_LIMIT=10000 jest",
21
21
  "test:watch": "DEBUG_PRINT_LIMIT=10000 jest --watch",
22
22
  "all-releases": "npm view @indico-data/design-system versions",
23
- "latest-release": "npm dist-tags ls @indico-data/design-system"
23
+ "latest-release": "npm dist-tags ls @indico-data/design-system",
24
+ "generate-icons": "node scripts/generateIconTypes.js",
25
+ "postinstall": "yarn generate-icons"
24
26
  },
25
27
  "lint-staged": {
26
28
  "**/*": "prettier --write --ignore-unknown"
@@ -29,27 +31,30 @@
29
31
  "@fortawesome/fontawesome-svg-core": "^6.5.2",
30
32
  "@fortawesome/free-regular-svg-icons": "^6.5.2",
31
33
  "@fortawesome/free-solid-svg-icons": "^6.5.2",
34
+ "@fortawesome/react-fontawesome": "^0.2.0",
32
35
  "@indico-data/utils": "^0.0.5",
33
36
  "@popperjs/core": "^2.11.8",
34
- "@react-aria/radio": "^3.10.2",
35
- "@react-aria/visually-hidden": "^3.8.10",
36
- "@react-types/button": "^3.9.2",
37
- "@react-types/checkbox": "^3.7.1",
38
- "@react-types/radio": "^3.7.1",
37
+ "@react-aria/radio": "^3.10.3",
38
+ "@react-aria/visually-hidden": "^3.8.12",
39
+ "@react-types/button": "^3.9.3",
40
+ "@react-types/checkbox": "^3.8.1",
41
+ "@react-types/radio": "^3.8.0",
42
+ "@testing-library/react": "^16.0.0",
39
43
  "classnames": "^2.5.1",
40
44
  "date-fns": "^3.6.0",
41
45
  "focus-trap-react": "^10.2.3",
42
46
  "html-webpack-plugin": "^5.6.0",
43
47
  "prop-types": "^15.8.1",
44
- "react-aria-components": "^1.1.1",
48
+ "react-aria-components": "^1.2.1",
49
+ "react-data-table-component": "^7.6.2",
45
50
  "react-day-picker": "^8.10.1",
46
51
  "react-grid-system": "^8.2.0",
47
52
  "react-modal": "^3.16.1",
48
53
  "react-popper": "^2.3.0",
49
- "react-stately": "^3.30.1",
50
- "react-tooltip": "5.26.3",
51
- "svgo": "^3.2.0",
52
- "ts-jest": "^29.1.2",
54
+ "react-stately": "^3.31.0",
55
+ "react-tooltip": "5.26.4",
56
+ "svgo": "^3.2.2",
57
+ "ts-jest": "^29.1.3",
53
58
  "tslib": "^2.6.2",
54
59
  "uuid": "^9.0.1",
55
60
  "webpack": "^5.91.0",
@@ -90,7 +95,7 @@
90
95
  "@storybook/theming": "^8.0.8",
91
96
  "@testing-library/dom": "^9.3.4",
92
97
  "@testing-library/jest-dom": "^6.4.2",
93
- "@testing-library/react": "^14.2.1",
98
+ "@testing-library/react": "^16.0.0",
94
99
  "@testing-library/user-event": "^14.5.2",
95
100
  "@types/css-modules": "^1.0.5",
96
101
  "@types/jest": "^29.5.12",
package/rollup.config.mjs CHANGED
@@ -45,9 +45,9 @@ export default [
45
45
  ],
46
46
  },
47
47
  {
48
- input: 'lib/index.d.ts',
48
+ input: 'src/types.ts',
49
49
  output: [{ file: 'lib/index.d.ts', format: 'es' }],
50
50
  plugins: [dts()],
51
51
  external: [/\.css$/, /\.scss$/],
52
52
  },
53
- ];
53
+ ];
@@ -0,0 +1,50 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+ const { fas } = require('@fortawesome/free-solid-svg-icons');
4
+
5
+ // Read custom icons from indicons.tsx
6
+ const indiconsPath = path.resolve(__dirname, '../src/components/icons/indicons.tsx');
7
+ const indiconsFileContent = fs.readFileSync(indiconsPath, 'utf-8');
8
+
9
+ // Extract keys (icon names) from the indicons file, including both quoted and non-quoted keys
10
+ const customIconMatches = [...indiconsFileContent.matchAll(/['"]?(\w+(-\w+)*)['"]?:\s*\(/g)];
11
+ const customIcons = customIconMatches.map((match) => match[1]);
12
+
13
+ // Convert camelCase to kebab-case, this is a kinda gross but more readable than alternatives (unless we add a new package)
14
+ const camelToKebab = (str) => {
15
+ return str
16
+ .replace(/([a-z])([A-Z])/g, '$1-$2')
17
+ .replace(/([A-Z])([A-Z][a-z])/g, '$1-$2')
18
+ .replace(/(\d)([A-Za-z])/g, '$1-$2')
19
+ .replace(/([a-zA-Z])([0-9])/g, '$1-$2')
20
+ .replace(/([A-Z]+)([A-Z][a-z])/g, (_, p1, p2) => `${p1.toLowerCase()}-${p2}`)
21
+ .replace(/([a-zA-Z])([A-Z]+)/g, (_, p1, p2) => `${p1}-${p2.toLowerCase()}`)
22
+ .toLowerCase();
23
+ };
24
+
25
+ const outputDir = path.resolve(__dirname, '../build/generated');
26
+ const outputPath = path.join(outputDir, 'iconTypes.ts');
27
+
28
+ // Ensure the directory exists
29
+ if (!fs.existsSync(outputDir)) {
30
+ fs.mkdirSync(outputDir, { recursive: true });
31
+ }
32
+
33
+ // Convert FontAwesome icon names to kebab-case and create a mapping
34
+ const fontAwesomeIconNames = Object.keys(fas).map(camelToKebab);
35
+
36
+ const iconNames = fontAwesomeIconNames
37
+ .concat(customIcons)
38
+ .sort()
39
+ .map((name) => `'${name}'`);
40
+
41
+ const content = `
42
+ export const iconNames = [
43
+ ${iconNames.join(', ')}
44
+ ] as const;
45
+
46
+ export type IconName = typeof iconNames[number];
47
+ `;
48
+
49
+ fs.writeFileSync(outputPath, content.trim());
50
+ console.log('Icon types and names generated');
@@ -1,6 +1,6 @@
1
1
  import classNames from 'classnames';
2
2
  import React from 'react';
3
- import { Icon } from '../../legacy/components/Icon/Icon';
3
+ import { Icon } from '@/components/icons';
4
4
 
5
5
  import { ButtonProps } from './types';
6
6
 
@@ -57,7 +57,6 @@ export const Button = (props: ButtonProps) => {
57
57
  onKeyDown={onKeyDown}
58
58
  {...rest}
59
59
  >
60
- {/* TODO -- Redo Icon component */}
61
60
  {isLoading && (
62
61
  <Icon
63
62
  name="fa-circle-notch"
@@ -1,4 +1,5 @@
1
- import { IconName } from '../../types';
1
+ import { IconName } from '@/types';
2
+
2
3
  export type ButtonVariants = 'solid' | 'outline' | 'text';
3
4
 
4
5
  export type ButtonColors = 'primary' | 'secondary' | 'warning' | 'error' | 'success' | 'info';
@@ -0,0 +1,49 @@
1
+ import { Meta, Canvas, Controls, Story } from '@storybook/blocks';
2
+ import * as IconStories from './Icon.stories';
3
+ import { Col, Row } from '../grid/';
4
+
5
+ <Meta title="Components/Icon" name="Icon" of={IconStories} />
6
+
7
+ # Icon
8
+
9
+ The `Icon` component provides unified rendering of both custom SVG icons (Indicons) and FontAwesome icons.
10
+
11
+ <Canvas
12
+ of={IconStories.DefaultIcon}
13
+ source={{
14
+ code: `<Icon name="indico-o" />`,
15
+ }}
16
+ />
17
+
18
+ ## Props
19
+
20
+ <Controls of={IconStories.DefaultIcon} />
21
+
22
+ ## Sizes
23
+
24
+ The `Icon` component supports five predefined sizes:
25
+
26
+ <Story of={IconStories.IconStates} />
27
+
28
+ ## Custom Styling
29
+
30
+ You can use the `className` prop to apply custom styles to the icons.
31
+
32
+ <Story of={IconStories.CustomStyledIcon} />
33
+ ```tsx // .tsx
34
+ <Icon name="fa-mountain-sun" className="color-primary-600" />
35
+ ```
36
+
37
+ ## Indicons (Custom Icons)
38
+
39
+ Indicons are custom SVG icons created specifically for our design system. Below is a list of all available custom icons.
40
+
41
+ <Story of={IconStories.Indicons} />
42
+ ## Font Awesome Icons
43
+
44
+ Font Awesome provides a wide range of icons for various purposes. Below is a list
45
+ of FontAwesome icons available in our design system. Use the search bar to find specific icons, and navigate
46
+ through the pages to explore all icons.
47
+
48
+ <Story of={IconStories.FontAwesomeIcons} />
49
+ ```