@opentrons/components 0.1.5-alpha.4 → 0.1.6-alpha.10

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 (299) hide show
  1. package/Makefile +10 -9
  2. package/README.md +1 -15
  3. package/babel.config.cjs +21 -0
  4. package/lib/alerts/AlertItem.d.ts +1 -1
  5. package/lib/atoms/Checkbox/__tests__/Checkbox.test.d.ts +1 -0
  6. package/lib/atoms/Checkbox/index.d.ts +24 -0
  7. package/lib/atoms/CheckboxField/__tests__/CheckboxField.test.d.ts +1 -1
  8. package/lib/atoms/CheckboxField/index.d.ts +1 -1
  9. package/lib/atoms/Chip/index.d.ts +20 -0
  10. package/lib/atoms/Divider/index.d.ts +5 -0
  11. package/lib/atoms/InputField/__tests__/InputField.test.d.ts +1 -0
  12. package/lib/atoms/InputField/index.d.ts +68 -0
  13. package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordion.d.ts +10 -0
  14. package/lib/atoms/ListButton/ListButtonChildren/ListButtonAccordionContainer.d.ts +7 -0
  15. package/lib/atoms/ListButton/ListButtonChildren/ListButtonRadioButton.d.ts +14 -0
  16. package/lib/atoms/ListButton/ListButtonChildren/index.d.ts +3 -0
  17. package/lib/atoms/ListButton/__tests__/ListButton.test.d.ts +1 -0
  18. package/lib/atoms/ListButton/__tests__/ListButtonAccordion.test.d.ts +1 -0
  19. package/lib/atoms/ListButton/__tests__/ListButtonRadioButton.test.d.ts +1 -0
  20. package/lib/atoms/ListButton/index.d.ts +11 -0
  21. package/lib/atoms/ListItem/ListItemChildren/ListItemCustomize.d.ts +15 -0
  22. package/lib/atoms/ListItem/ListItemChildren/ListItemDescriptor.d.ts +7 -0
  23. package/lib/atoms/ListItem/ListItemChildren/index.d.ts +2 -0
  24. package/lib/atoms/ListItem/__tests__/ListItem.test.d.ts +1 -0
  25. package/lib/atoms/ListItem/index.d.ts +14 -0
  26. package/lib/atoms/MenuList/MenuItem.d.ts +7 -0
  27. package/lib/atoms/MenuList/OverflowBtn.d.ts +7 -0
  28. package/lib/atoms/MenuList/__tests__/MenuItem.test.d.ts +1 -0
  29. package/lib/atoms/MenuList/__tests__/MenuList.test.d.ts +1 -0
  30. package/lib/atoms/MenuList/__tests__/OverflowBtn.test.d.ts +1 -0
  31. package/lib/atoms/MenuList/index.d.ts +8 -0
  32. package/lib/atoms/Snackbar/__tests__/Snackbar.test.d.ts +1 -0
  33. package/lib/atoms/Snackbar/index.d.ts +7 -0
  34. package/lib/atoms/StepMeter/index.d.ts +2 -1
  35. package/lib/atoms/StyledText/LegacyStyledText.d.ts +6 -0
  36. package/lib/atoms/StyledText/StyledText.d.ts +154 -0
  37. package/lib/atoms/StyledText/index.d.ts +2 -0
  38. package/lib/atoms/Tag/__tests__/Tag.test.d.ts +1 -0
  39. package/lib/atoms/Tag/index.d.ts +13 -0
  40. package/lib/atoms/Toast/__tests__/ODDToast.test.d.ts +1 -0
  41. package/lib/atoms/Toast/__tests__/Toast.test.d.ts +1 -0
  42. package/lib/atoms/Toast/index.d.ts +25 -0
  43. package/lib/atoms/ToggleGroup/__tests__/ToggleGroup.test.d.ts +1 -0
  44. package/lib/atoms/ToggleGroup/index.d.ts +9 -0
  45. package/lib/atoms/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  46. package/lib/atoms/Tooltip/index.d.ts +11 -0
  47. package/lib/atoms/buttons/AlertPrimaryButton.d.ts +1 -2
  48. package/lib/atoms/buttons/AltPrimaryButton.d.ts +1 -0
  49. package/lib/atoms/buttons/EmptySelectorButton.d.ts +10 -0
  50. package/lib/atoms/buttons/LargeButton.d.ts +17 -0
  51. package/lib/atoms/buttons/PrimaryButton.d.ts +1 -2
  52. package/lib/atoms/buttons/RadioButton.d.ts +21 -0
  53. package/lib/atoms/buttons/__tests__/AlertPrimaryButton.test.d.ts +1 -1
  54. package/lib/atoms/buttons/__tests__/AltPrimaryButton.test.d.ts +1 -0
  55. package/lib/atoms/buttons/__tests__/EmptySelectorButton.test.d.ts +1 -0
  56. package/lib/atoms/buttons/__tests__/LargeButton.test.d.ts +1 -0
  57. package/lib/atoms/buttons/__tests__/PrimaryButton.test.d.ts +1 -1
  58. package/lib/atoms/buttons/__tests__/RadioButton.test.d.ts +1 -0
  59. package/lib/atoms/buttons/__tests__/SecondaryButton.test.d.ts +1 -1
  60. package/lib/atoms/buttons/index.d.ts +3 -0
  61. package/lib/atoms/index.d.ts +18 -1
  62. package/lib/buttons/Button.d.ts +3 -2
  63. package/lib/buttons/DeprecatedPrimaryButton.d.ts +0 -1
  64. package/lib/buttons/FlatButton.d.ts +0 -1
  65. package/lib/buttons/IconButton.d.ts +0 -1
  66. package/lib/buttons/OutlineButton.d.ts +0 -1
  67. package/lib/controls/ControlInfo.d.ts +1 -1
  68. package/lib/controls/LabeledButton.d.ts +1 -1
  69. package/lib/controls/LabeledCheckbox.d.ts +1 -1
  70. package/lib/controls/LabeledControl.d.ts +1 -1
  71. package/lib/controls/LabeledRadioGroup.d.ts +1 -1
  72. package/lib/controls/LabeledSelect.d.ts +1 -1
  73. package/lib/controls/LabeledToggle.d.ts +1 -1
  74. package/lib/controls/StackedLabeledControl.d.ts +1 -1
  75. package/lib/controls/ToggleButton.d.ts +0 -1
  76. package/lib/forms/DeprecatedCheckboxField.d.ts +1 -1
  77. package/lib/forms/DropdownField.d.ts +3 -3
  78. package/lib/forms/FormGroup.d.ts +1 -1
  79. package/lib/forms/{InputField.d.ts → LegacyInputField.d.ts} +4 -4
  80. package/lib/forms/RadioGroup.d.ts +1 -1
  81. package/lib/forms/Select.d.ts +1 -2
  82. package/lib/forms/SelectField.d.ts +1 -1
  83. package/lib/forms/ToggleField.d.ts +1 -1
  84. package/lib/forms/__tests__/DeprecatedCheckboxField.test.d.ts +1 -0
  85. package/lib/forms/__tests__/DropdownField.test.d.ts +1 -0
  86. package/lib/forms/__tests__/InputField.test.d.ts +1 -0
  87. package/lib/forms/__tests__/Select.test.d.ts +1 -0
  88. package/lib/forms/__tests__/SelectField.test.d.ts +1 -0
  89. package/lib/forms/__tests__/ToggleField.test.d.ts +1 -0
  90. package/lib/forms/index.d.ts +1 -1
  91. package/lib/hardware-sim/BaseDeck/BaseDeck.d.ts +9 -2
  92. package/lib/hardware-sim/BaseDeck/SingleSlotFixture.d.ts +1 -1
  93. package/lib/hardware-sim/BaseDeck/SlotBase.d.ts +1 -1
  94. package/lib/hardware-sim/BaseDeck/SlotClip.d.ts +1 -1
  95. package/lib/hardware-sim/BaseDeck/StagingAreaFixture.d.ts +1 -1
  96. package/lib/hardware-sim/BaseDeck/WasteChuteFixture.d.ts +2 -3
  97. package/lib/hardware-sim/BaseDeck/WasteChuteStagingAreaFixture.d.ts +1 -1
  98. package/lib/hardware-sim/Deck/DeckFromLayers.d.ts +0 -1
  99. package/lib/hardware-sim/Deck/MoveLabwareOnDeck.d.ts +1 -2
  100. package/lib/hardware-sim/Deck/OT2Layers.d.ts +0 -1
  101. package/lib/hardware-sim/Deck/RobotCoordsForeignDiv.d.ts +1 -1
  102. package/lib/hardware-sim/Deck/RobotCoordsForeignObject.d.ts +1 -1
  103. package/lib/hardware-sim/Deck/RobotCoordsText.d.ts +1 -1
  104. package/lib/hardware-sim/Deck/RobotWorkSpace.d.ts +1 -1
  105. package/lib/hardware-sim/Deck/__mocks__/getDeckDefinitions.d.ts +1 -2
  106. package/lib/hardware-sim/Deck/index.d.ts +0 -1
  107. package/lib/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.d.ts +10 -0
  108. package/lib/hardware-sim/DeckConfigurator/EmptyConfigFixture.d.ts +0 -1
  109. package/lib/hardware-sim/DeckConfigurator/HeaterShakerFixture.d.ts +10 -0
  110. package/lib/hardware-sim/DeckConfigurator/MagneticBlockFixture.d.ts +11 -0
  111. package/lib/hardware-sim/DeckConfigurator/StagingAreaConfigFixture.d.ts +4 -3
  112. package/lib/hardware-sim/DeckConfigurator/StaticFixture.d.ts +12 -0
  113. package/lib/hardware-sim/DeckConfigurator/TemperatureModuleFixture.d.ts +10 -0
  114. package/lib/hardware-sim/DeckConfigurator/ThermocyclerFixture.d.ts +10 -0
  115. package/lib/hardware-sim/DeckConfigurator/TrashBinConfigFixture.d.ts +4 -3
  116. package/lib/hardware-sim/DeckConfigurator/WasteChuteConfigFixture.d.ts +4 -3
  117. package/lib/hardware-sim/DeckConfigurator/constants.d.ts +6 -1
  118. package/lib/hardware-sim/DeckConfigurator/index.d.ts +10 -4
  119. package/lib/hardware-sim/DeckSlotLocation/index.d.ts +1 -1
  120. package/lib/hardware-sim/Labware/Labware.d.ts +39 -0
  121. package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96DeepWellAdapter.d.ts +0 -1
  122. package/lib/hardware-sim/Labware/LabwareAdapter/Opentrons96FlatBottomAdapter.d.ts +0 -1
  123. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAluminumFlatBottomPlate.d.ts +0 -1
  124. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsAutoclavableDeckRiser.d.ts +1 -0
  125. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsFlex96TiprackAdapter.d.ts +0 -1
  126. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsToughPCRAutoSealingLid.d.ts +1 -0
  127. package/lib/hardware-sim/Labware/LabwareAdapter/OpentronsUniversalFlatAdapter.d.ts +0 -1
  128. package/lib/hardware-sim/Labware/LabwareAdapter/index.d.ts +8 -0
  129. package/lib/hardware-sim/Labware/LabwareRender.d.ts +6 -2
  130. package/lib/hardware-sim/Labware/LabwareStackRender.d.ts +20 -0
  131. package/lib/hardware-sim/Labware/__tests__/Labware.test.d.ts +1 -0
  132. package/lib/hardware-sim/Labware/__tests__/LabwareRender.test.d.ts +1 -1
  133. package/lib/hardware-sim/Labware/index.d.ts +3 -1
  134. package/lib/hardware-sim/Labware/labwareInternals/FilledWells.d.ts +1 -0
  135. package/lib/hardware-sim/Labware/labwareInternals/LabwareOutline.d.ts +4 -1
  136. package/lib/hardware-sim/Labware/labwareInternals/LabwareWellLabels.d.ts +15 -0
  137. package/lib/hardware-sim/Labware/labwareInternals/StaticLabware.d.ts +9 -1
  138. package/lib/hardware-sim/Labware/labwareInternals/Well.d.ts +2 -1
  139. package/lib/hardware-sim/Labware/labwareInternals/WellLabels.d.ts +1 -1
  140. package/lib/hardware-sim/Labware/labwareInternals/__tests__/LabwareWellLabels.test.d.ts +1 -0
  141. package/lib/hardware-sim/Labware/labwareInternals/__tests__/StrokedWells.test.d.ts +1 -1
  142. package/lib/hardware-sim/Labware/labwareInternals/__tests__/WellLabels.test.d.ts +1 -1
  143. package/lib/hardware-sim/Labware/labwareInternals/index.d.ts +2 -0
  144. package/lib/hardware-sim/Labware/labwareInternals/types.d.ts +1 -1
  145. package/lib/hardware-sim/Module/HeaterShaker.d.ts +0 -1
  146. package/lib/hardware-sim/Module/MagneticBlock.d.ts +0 -1
  147. package/lib/hardware-sim/Module/MagneticModule.d.ts +0 -1
  148. package/lib/hardware-sim/Module/ModuleTag.d.ts +1 -1
  149. package/lib/hardware-sim/Module/PlateReader.d.ts +1 -0
  150. package/lib/hardware-sim/Module/Temperature.d.ts +0 -1
  151. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN1.d.ts +0 -1
  152. package/lib/hardware-sim/Module/Thermocycler/ThermocyclerGEN2.d.ts +0 -1
  153. package/lib/hardware-sim/Module/Thermocycler/index.d.ts +1 -2
  154. package/lib/hardware-sim/Module/index.d.ts +2 -2
  155. package/lib/hardware-sim/Pipette/PipetteRender.d.ts +1 -1
  156. package/lib/hardware-sim/ProtocolDeck/LabwareInfo.d.ts +2 -2
  157. package/lib/hardware-sim/ProtocolDeck/index.d.ts +4 -2
  158. package/lib/hardware-sim/ProtocolDeck/utils/index.d.ts +1 -0
  159. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpace.d.ts +1 -1
  160. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithRef.d.ts +16 -0
  161. package/lib/hardware-sim/RobotCoordinateSpace/index.d.ts +1 -1
  162. package/lib/hardware-sim/utils.d.ts +1 -1
  163. package/lib/helix-design-system/borders.d.ts +26 -0
  164. package/lib/helix-design-system/colors.d.ts +11 -0
  165. package/lib/helix-design-system/index.d.ts +3 -0
  166. package/lib/helix-design-system/product/index.d.ts +1 -0
  167. package/lib/helix-design-system/product/typography.d.ts +79 -0
  168. package/lib/helix-design-system/style.d.ts +1 -0
  169. package/lib/hooks/__tests__/useConditionalConfirm.test.d.ts +1 -0
  170. package/lib/hooks/__tests__/useInterval.test.d.ts +1 -0
  171. package/lib/hooks/__tests__/useMountEffect.test.d.ts +1 -0
  172. package/lib/hooks/__tests__/usePrevious.test.d.ts +1 -0
  173. package/lib/hooks/__tests__/useTimeout.test.d.ts +1 -0
  174. package/lib/hooks/__tests__/useToggle.test.d.ts +1 -0
  175. package/lib/hooks/index.d.ts +1 -0
  176. package/lib/hooks/useConditionalConfirm.d.ts +3 -2
  177. package/lib/hooks/useDrag.d.ts +1 -1
  178. package/lib/hooks/useLongPress.d.ts +1 -1
  179. package/lib/hooks/useMenuHandleClickOutside.d.ts +9 -0
  180. package/lib/hooks/useSelectDeckLocation/index.d.ts +1 -3
  181. package/lib/hooks/useSwipe.d.ts +1 -1
  182. package/lib/icons/Icon.d.ts +1 -1
  183. package/lib/icons/ModuleIcon.d.ts +2 -3
  184. package/lib/icons/NotificationIcon.d.ts +0 -1
  185. package/lib/icons/icon-data.d.ts +4 -582
  186. package/lib/icons/index.d.ts +1 -0
  187. package/lib/index.cjs +732 -0
  188. package/lib/index.d.ts +1 -3
  189. package/lib/index.mjs +36590 -0
  190. package/lib/instrument/InstrumentDiagram.d.ts +3 -4
  191. package/lib/instrument/InstrumentGroup.d.ts +0 -1
  192. package/lib/instrument/InstrumentInfo.d.ts +5 -11
  193. package/lib/instrument/__tests__/InstrumentInfo.test.d.ts +1 -0
  194. package/lib/instrument/__tests__/PipetteSelect.test.d.ts +1 -0
  195. package/lib/instrument/index.d.ts +0 -1
  196. package/lib/interaction-enhancers/__tests__/useHover.test.d.ts +1 -0
  197. package/lib/legacy-hardware-sim/LabwareNameOverlay.d.ts +0 -1
  198. package/lib/legacy-hardware-sim/ModuleItem.d.ts +0 -1
  199. package/lib/lists/SidePanelGroup.d.ts +1 -1
  200. package/lib/lists/index.d.ts +0 -1
  201. package/lib/modals/AlertModal.d.ts +2 -1
  202. package/lib/modals/ContinueModal.d.ts +1 -1
  203. package/lib/modals/LegacyModal.d.ts +24 -0
  204. package/lib/modals/Modal.d.ts +21 -20
  205. package/lib/modals/ModalHeader.d.ts +13 -0
  206. package/lib/modals/ModalShell.d.ts +11 -2
  207. package/lib/modals/Overlay.d.ts +1 -1
  208. package/lib/modals/SpinnerModal.d.ts +1 -1
  209. package/lib/modals/SpinnerModalPage.d.ts +2 -1
  210. package/lib/modals/__tests__/Modal.test.d.ts +1 -0
  211. package/lib/modals/__tests__/ModalHeader.test.d.ts +1 -0
  212. package/lib/modals/__tests__/ModalShell.test.d.ts +1 -0
  213. package/lib/modals/index.d.ts +5 -5
  214. package/lib/molecules/Banner/__tests__/Banner.test.d.ts +1 -0
  215. package/lib/molecules/Banner/index.d.ts +23 -0
  216. package/lib/molecules/DeckInfoLabel/__tests__/DeckInfoLabel.test.d.ts +1 -0
  217. package/lib/molecules/DeckInfoLabel/index.d.ts +19 -0
  218. package/lib/molecules/DeckLabel/__tests__/DeckLabel.test.d.ts +1 -0
  219. package/lib/molecules/DeckLabel/index.d.ts +10 -0
  220. package/lib/molecules/DropdownMenu/__tests__/DropdownMenu.test.d.ts +1 -0
  221. package/lib/molecules/DropdownMenu/index.d.ts +41 -0
  222. package/lib/molecules/InfoScreen/__tests__/InfoScreen.test.d.ts +1 -0
  223. package/lib/molecules/InfoScreen/index.d.ts +6 -0
  224. package/lib/molecules/LiquidIcon/__tests__/LiquidIcon.test.d.ts +1 -0
  225. package/lib/molecules/LiquidIcon/index.d.ts +9 -0
  226. package/lib/molecules/ParametersTable/__tests__/ParametersTable.test.d.ts +1 -0
  227. package/lib/molecules/ParametersTable/index.d.ts +10 -0
  228. package/lib/molecules/Tabs/__tests__/Tabs.test.d.ts +1 -0
  229. package/lib/molecules/Tabs/index.d.ts +10 -0
  230. package/lib/molecules/index.d.ts +8 -2
  231. package/lib/nav/SidePanel.d.ts +1 -1
  232. package/lib/organisms/DeckLabelSet/__tests__/DeckLabelSet.test.d.ts +1 -0
  233. package/lib/organisms/DeckLabelSet/index.d.ts +11 -0
  234. package/lib/organisms/EndUserAgreementFooter/__tests__/EndUserAgreementFooter.test.d.ts +1 -0
  235. package/lib/organisms/EndUserAgreementFooter/index.d.ts +1 -0
  236. package/lib/organisms/Toolbox/__tests__/Toolbox.test.d.ts +1 -0
  237. package/lib/organisms/Toolbox/index.d.ts +20 -0
  238. package/lib/organisms/index.d.ts +3 -0
  239. package/lib/primitives/Btn.d.ts +11 -13
  240. package/lib/primitives/__tests__/Box.test.d.ts +1 -0
  241. package/lib/primitives/__tests__/Btn.test.d.ts +1 -0
  242. package/lib/primitives/__tests__/Flex.test.d.ts +1 -0
  243. package/lib/primitives/__tests__/Link.test.d.ts +1 -0
  244. package/lib/primitives/__tests__/Svg.test.d.ts +1 -0
  245. package/lib/primitives/__tests__/Text.test.d.ts +1 -0
  246. package/lib/primitives/__tests__/primitives.test.d.ts +1 -0
  247. package/lib/primitives/__tests__/style-props.test.d.ts +1 -0
  248. package/lib/primitives/types.d.ts +1 -2
  249. package/lib/slotmap/{SlotMap.d.ts → OT2SlotMap.d.ts} +1 -4
  250. package/lib/slotmap/__tests__/OT2SlotMap.test.d.ts +1 -0
  251. package/lib/slotmap/index.d.ts +1 -1
  252. package/lib/structure/Card.d.ts +1 -1
  253. package/lib/structure/LabeledValue.d.ts +1 -1
  254. package/lib/structure/Pill.d.ts +1 -1
  255. package/lib/structure/Splash.d.ts +0 -1
  256. package/lib/structure/TitleBar.d.ts +2 -2
  257. package/lib/structure/index.d.ts +0 -1
  258. package/lib/style.css +1 -0
  259. package/lib/styles/cursor.d.ts +10 -0
  260. package/lib/styles/flexbox.d.ts +6 -0
  261. package/lib/styles/index.d.ts +1 -0
  262. package/lib/styles/layout.d.ts +1 -0
  263. package/lib/testing/utils/matchers.d.ts +0 -3
  264. package/lib/testing/utils/renderWithProviders.d.ts +2 -3
  265. package/lib/tooltips/DeprecatedTooltip.d.ts +1 -1
  266. package/lib/tooltips/{Tooltip.d.ts → LegacyTooltip.d.ts} +2 -2
  267. package/lib/tooltips/__tests__/Tooltip.test.d.ts +1 -0
  268. package/lib/tooltips/__tests__/useHoverTooltip.test.d.ts +1 -0
  269. package/lib/tooltips/__tests__/usePopper.test.d.ts +1 -0
  270. package/lib/tooltips/__tests__/useTooltip.test.d.ts +1 -0
  271. package/lib/tooltips/index.d.ts +1 -1
  272. package/lib/ui-style-constants/index.d.ts +2 -2
  273. package/lib/ui-style-constants/responsiveness.d.ts +1 -0
  274. package/lib/ui-style-constants/spacing.d.ts +1 -0
  275. package/lib/ui-style-constants/typography.d.ts +1 -0
  276. package/lib/ui-style-constants/viewport.d.ts +15 -0
  277. package/package.json +10 -9
  278. package/tsconfig.json +2 -2
  279. package/typings/global.d.ts +0 -1
  280. package/vite.config.mts +65 -0
  281. package/lib/hardware-sim/Deck/getDeckDefinitions.d.ts +0 -2
  282. package/lib/hardware-sim/RobotCoordinateSpace/RobotCoordinateSpaceWithDOMCoords.d.ts +0 -19
  283. package/lib/instrument/InfoItem.d.ts +0 -11
  284. package/lib/lists/ListItem.d.ts +0 -37
  285. package/lib/modals/BaseModal.d.ts +0 -26
  286. package/lib/modals/ModalPage.d.ts +0 -16
  287. package/lib/modals/__tests__/BaseModal.test.d.ts +0 -0
  288. package/lib/molecules/LocationIcon/index.d.ts +0 -16
  289. package/lib/molecules/RoundTab.d.ts +0 -8
  290. package/lib/opentrons-components.js +0 -16
  291. package/lib/slotmap/__tests__/SlotMap.test.d.ts +0 -0
  292. package/lib/structure/PageTabs.d.ts +0 -12
  293. package/lib/tabbedNav/NavTab.d.ts +0 -25
  294. package/lib/tabbedNav/OutsideLinkTab.d.ts +0 -24
  295. package/lib/tabbedNav/TabbedNavBar.d.ts +0 -7
  296. package/lib/tabbedNav/index.d.ts +0 -3
  297. package/lib/ui-style-constants/borders.d.ts +0 -18
  298. package/webpack.config.js +0 -38
  299. /package/lib/{molecules/LocationIcon/__tests__/LocationIcon.test.d.ts → atoms/Chip/__tests__/Chip.test.d.ts} +0 -0
package/Makefile CHANGED
@@ -5,13 +5,10 @@ port ?= 6060
5
5
 
6
6
  # These variables can be overriden when make is invoked to customize the
7
7
  # behavior of jest
8
- tests ?=
9
- cov_opts ?= --coverage=true --ci=true --collectCoverageFrom='components/src/**/*.(js|ts|tsx)'
8
+ tests ?= src
9
+ cov_opts ?= --coverage=true
10
10
  test_opts ?=
11
11
 
12
- # override webpack's default hashing algorithm for node 18: https://github.com/webpack/webpack/issues/14532
13
- export NODE_OPTIONS := --openssl-legacy-provider
14
-
15
12
  # standard targets
16
13
  #####################################################################
17
14
 
@@ -20,26 +17,30 @@ all: clean dist
20
17
 
21
18
  .PHONY: clean
22
19
  clean:
23
- yarn --cwd .. shx rm -rf storybook-static
20
+ cd .. && yarn shx rm -rf storybook-static
24
21
 
25
22
  # artifacts
26
23
  #####################################################################
27
24
 
28
25
  .PHONY: dist
29
26
  dist:
30
- yarn --cwd .. build-storybook
27
+ cd .. && yarn sb build
31
28
 
32
29
  .PHONY: lib
33
30
  lib: export NODE_ENV := production
34
31
  lib:
35
- yarn webpack
32
+ yarn vite build
33
+
34
+ .PHONY: build-ts
35
+ build-ts:
36
+ yarn tsc --build --emitDeclarationOnly
36
37
 
37
38
  # development
38
39
  #####################################################################
39
40
 
40
41
  .PHONY: dev
41
42
  dev:
42
- yarn --cwd .. start-storybook --port $(port)
43
+ cd .. && yarn sb dev --port $(port)
43
44
 
44
45
  .PHONY: test
45
46
  test:
package/README.md CHANGED
@@ -18,27 +18,13 @@ export default function CowButton(props) {
18
18
 
19
19
  Usage requirements for dependent projects:
20
20
 
21
- - Node v12 and yarn
21
+ - Node v18 and yarn
22
22
  - The following `dependencies` (peer dependencies of `@opentrons/components`)
23
23
  - `react`: `17.0.1`,
24
24
  - `react-router-dom`: `^4.2.2`,
25
25
  - `classnames`: `^2.2.5`,
26
26
  - `lodash`: `^4.17.4`
27
27
 
28
- ### new project setup (optional)
29
-
30
- If you ever need to set up a new project in the monorepo that depends on the components library:
31
-
32
- 1. Add the new project to `workspaces` in the repository's `package.json`
33
- 2. Ensure the required peer dependencies (listed above) are also in `dependencies`
34
- ```shell
35
- yarn workspace new-project add react@17.0.1 react-router-dom@^4.2.2 classnames@^2.2.5 lodash@^4.17.4
36
- ```
37
- 3. Add `@opentrons/components` at the current version to `dependencies` in the new project's `package.json`
38
- 4. Run `yarn`
39
-
40
- If you use the base webpack config in `@opentrons/webpack-config`, the project should import and bundle components from the components library correctly.
41
-
42
28
  ## contributing
43
29
 
44
30
  Make sure you have read the top-level [Contributing Guide][contributing].
@@ -0,0 +1,21 @@
1
+ 'use strict'
2
+
3
+ module.exports = {
4
+ env: {
5
+ // Note(isk: 3/2/20): Must have babel-plugin-styled-components in each env,
6
+ // see here for further details: s https://styled-components.com/docs/tooling#babel-plugin
7
+ production: {
8
+ plugins: ['babel-plugin-styled-components', 'babel-plugin-unassert'],
9
+ },
10
+ development: {
11
+ plugins: ['babel-plugin-styled-components'],
12
+ },
13
+ test: {
14
+ plugins: [
15
+ // NOTE(mc, 2020-05-08): disable ssr, displayName to fix toHaveStyleRule
16
+ // https://github.com/styled-components/jest-styled-components/issues/294
17
+ ['babel-plugin-styled-components', { ssr: false, displayName: false }],
18
+ ],
19
+ },
20
+ },
21
+ }
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type { IconProps } from '../icons';
3
3
  export type AlertType = 'success' | 'warning' | 'error' | 'info';
4
4
  export interface AlertItemProps {
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1,24 @@
1
+ import type * as React from 'react';
2
+ export interface CheckboxProps {
3
+ /** checkbox is checked if value is true */
4
+ isChecked: boolean;
5
+ /** label text that describes the option */
6
+ labelText: string;
7
+ /** callback click/tap handler */
8
+ onClick: React.MouseEventHandler;
9
+ /** html tabindex property */
10
+ tabIndex?: number;
11
+ /** if disabled is true, mouse events will not trigger onClick callback */
12
+ disabled?: boolean;
13
+ /** optional borderRadius type */
14
+ type?: 'round' | 'neutral';
15
+ /** optional width for helix */
16
+ width?: string;
17
+ }
18
+ export declare function Checkbox(props: CheckboxProps): JSX.Element;
19
+ interface CheckProps {
20
+ isChecked: boolean;
21
+ color?: string;
22
+ }
23
+ export declare function Check(props: CheckProps): JSX.Element;
24
+ export {};
@@ -1 +1 @@
1
- import 'jest-styled-components';
1
+ import '@testing-library/jest-dom/vitest';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  export interface CheckboxFieldProps {
3
3
  /** change handler */
4
4
  onChange: React.ChangeEventHandler;
@@ -0,0 +1,20 @@
1
+ import type { IconName } from '../../icons';
2
+ import type { StyleProps } from '../../primitives';
3
+ export type ChipType = 'error' | 'info' | 'neutral' | 'success' | 'warning';
4
+ type ChipSize = 'medium' | 'small';
5
+ interface ChipProps extends StyleProps {
6
+ /** Display background color? */
7
+ background?: boolean;
8
+ /** Chip icon */
9
+ iconName?: IconName;
10
+ /** Chip content */
11
+ text: string;
12
+ /** name constant of the text color and the icon color to display */
13
+ type: ChipType;
14
+ /** has icon */
15
+ hasIcon?: boolean;
16
+ /** Chip size medium is the default size */
17
+ chipSize?: ChipSize;
18
+ }
19
+ export declare function Chip(props: ChipProps): JSX.Element;
20
+ export {};
@@ -0,0 +1,5 @@
1
+ import type * as React from 'react';
2
+ import { Box } from '../..';
3
+ type Props = React.ComponentProps<typeof Box>;
4
+ export declare function Divider(props: Props): JSX.Element;
5
+ export {};
@@ -0,0 +1,68 @@
1
+ import * as React from 'react';
2
+ import { TYPOGRAPHY } from '../../ui-style-constants';
3
+ import type { IconName } from '../../icons';
4
+ export declare const INPUT_TYPE_NUMBER: "number";
5
+ export declare const LEGACY_INPUT_TYPE_TEXT: "text";
6
+ export declare const LEGACY_INPUT_TYPE_PASSWORD: "password";
7
+ export interface InputFieldProps {
8
+ /** field is disabled if value is true */
9
+ disabled?: boolean;
10
+ /** change handler */
11
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
12
+ /** name of field in form */
13
+ name?: string;
14
+ /** optional ID of <input> element */
15
+ id?: string;
16
+ /** placeholder text */
17
+ placeholder?: string;
18
+ /** optional suffix component, appears to the right of input text */
19
+ units?: React.ReactNode;
20
+ /** current value of text in box, defaults to '' */
21
+ value?: string | number | null;
22
+ /** if included, InputField will use error style and display error instead of caption */
23
+ error?: string | null;
24
+ /** optional title */
25
+ title?: string | null;
26
+ /** optional text for tooltip */
27
+ tooltipText?: string;
28
+ /** optional caption. hidden when `error` is given */
29
+ caption?: string | null;
30
+ /** optional input type (default "text") */
31
+ type?: typeof LEGACY_INPUT_TYPE_TEXT | typeof LEGACY_INPUT_TYPE_PASSWORD | typeof INPUT_TYPE_NUMBER;
32
+ /** mouse click handler */
33
+ onClick?: (event: React.MouseEvent<HTMLInputElement>) => unknown;
34
+ /** focus handler */
35
+ onFocus?: (event: React.FocusEvent<HTMLInputElement>) => unknown;
36
+ /** blur handler */
37
+ onBlur?: (event: React.FocusEvent<HTMLInputElement>) => unknown;
38
+ /** makes input field read-only */
39
+ readOnly?: boolean;
40
+ /** html tabindex property */
41
+ tabIndex?: number;
42
+ /** automatically focus field on renders */
43
+ autoFocus?: boolean;
44
+ /** if true, clear out value and add '-' placeholder */
45
+ isIndeterminate?: boolean;
46
+ /** if input type is number, these are the min and max values */
47
+ max?: number;
48
+ min?: number;
49
+ /** horizontal text alignment for title, input, and (sub)captions */
50
+ textAlign?: typeof TYPOGRAPHY.textAlignLeft | typeof TYPOGRAPHY.textAlignCenter;
51
+ /** small or medium input field height, relevant only */
52
+ size?: 'medium' | 'small';
53
+ /** react useRef to control input field instead of react event */
54
+ ref?: React.MutableRefObject<HTMLInputElement | null>;
55
+ /** optional IconName to display icon aligned to left of input field */
56
+ leftIcon?: IconName;
57
+ /** if true, show delete icon aligned to right of input field */
58
+ showDeleteIcon?: boolean;
59
+ /** callback passed to optional delete icon onClick */
60
+ onDelete?: () => void;
61
+ /** if true, style the background of input field to error state */
62
+ hasBackgroundError?: boolean;
63
+ /** optional prop to override input field border radius */
64
+ borderRadius?: string;
65
+ /** optional prop to override input field padding */
66
+ padding?: string;
67
+ }
68
+ export declare const InputField: React.ForwardRefExoticComponent<Omit<InputFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,10 @@
1
+ import type * as React from 'react';
2
+ interface ListButtonAccordionProps {
3
+ children: React.ReactNode;
4
+ isExpanded?: boolean;
5
+ isNested?: boolean;
6
+ mainHeadline?: string;
7
+ headline?: string;
8
+ }
9
+ export declare function ListButtonAccordion(props: ListButtonAccordionProps): JSX.Element;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ import type * as React from 'react';
2
+ interface ListButtonAccordionContainerProps {
3
+ children: React.ReactNode;
4
+ id: string;
5
+ }
6
+ export declare function ListButtonAccordionContainer(props: ListButtonAccordionContainerProps): JSX.Element;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { ChangeEventHandler } from 'react';
2
+ import type { StyleProps } from '../../../primitives';
3
+ interface ListButtonRadioButtonProps extends StyleProps {
4
+ buttonText: string;
5
+ buttonValue: string | number;
6
+ onChange: ChangeEventHandler<HTMLInputElement>;
7
+ setNoHover?: () => void;
8
+ setHovered?: () => void;
9
+ disabled?: boolean;
10
+ isSelected?: boolean;
11
+ id?: string;
12
+ }
13
+ export declare function ListButtonRadioButton(props: ListButtonRadioButtonProps): JSX.Element;
14
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './ListButtonAccordion';
2
+ export * from './ListButtonAccordionContainer';
3
+ export * from './ListButtonRadioButton';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1,11 @@
1
+ import type * as React from 'react';
2
+ import type { StyleProps } from '../../primitives';
3
+ export * from './ListButtonChildren/index';
4
+ export type ListButtonType = 'noActive' | 'connected' | 'notConnected';
5
+ interface ListButtonProps extends StyleProps {
6
+ type: ListButtonType;
7
+ children: React.ReactNode;
8
+ disabled?: boolean;
9
+ onClick?: () => void;
10
+ }
11
+ export declare function ListButton(props: ListButtonProps): JSX.Element;
@@ -0,0 +1,15 @@
1
+ import type { DropdownMenuProps } from '../../../molecules/DropdownMenu';
2
+ import type { TagProps } from '../../Tag/index';
3
+ interface ListItemCustomizeProps {
4
+ header: string;
5
+ leftHeaderItem?: JSX.Element;
6
+ onClick?: () => void;
7
+ linkText?: string;
8
+ label?: string;
9
+ dropdown?: DropdownMenuProps;
10
+ tag?: TagProps;
11
+ /** temporary prop for dropdown menu */
12
+ forceDirection?: boolean;
13
+ }
14
+ export declare function ListItemCustomize(props: ListItemCustomizeProps): JSX.Element;
15
+ export {};
@@ -0,0 +1,7 @@
1
+ interface ListItemDescriptorProps {
2
+ type: 'default' | 'large';
3
+ description: JSX.Element;
4
+ content: JSX.Element;
5
+ }
6
+ export declare const ListItemDescriptor: (props: ListItemDescriptorProps) => JSX.Element;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './ListItemCustomize';
2
+ export * from './ListItemDescriptor';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1,14 @@
1
+ import type * as React from 'react';
2
+ import type { StyleProps } from '../../primitives';
3
+ export * from './ListItemChildren';
4
+ export type ListItemType = 'error' | 'noActive' | 'success' | 'warning';
5
+ interface ListItemProps extends StyleProps {
6
+ /** ListItem state type */
7
+ type: ListItemType;
8
+ /** ListItem contents */
9
+ children: React.ReactNode;
10
+ onClick?: () => void;
11
+ onMouseEnter?: () => void;
12
+ onMouseLeave?: () => void;
13
+ }
14
+ export declare function ListItem(props: ListItemProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { StyleProps } from '../../primitives';
2
+ interface ButtonProps extends StyleProps {
3
+ /** optional isAlert boolean to turn the background red, only seen in ODD */
4
+ isAlert?: boolean;
5
+ }
6
+ export declare const MenuItem: import("styled-components").StyledComponent<"button", any, ButtonProps, never>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { Btn } from '../../primitives';
3
+ interface OverflowBtnProps extends React.ComponentProps<typeof Btn> {
4
+ fillColor?: string;
5
+ }
6
+ export declare const OverflowBtn: (props: OverflowBtnProps, ref: React.ForwardedRef<HTMLInputElement>) => React.ReactNode;
7
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import type * as React from 'react';
2
+ interface MenuListProps {
3
+ children: React.ReactNode;
4
+ isOnDevice?: boolean;
5
+ onClick?: React.MouseEventHandler;
6
+ }
7
+ export declare const MenuList: (props: MenuListProps) => JSX.Element | null;
8
+ export {};
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1,7 @@
1
+ import type { StyleProps } from '../../primitives';
2
+ export interface SnackbarProps extends StyleProps {
3
+ message: string;
4
+ onClose?: () => void;
5
+ duration?: number;
6
+ }
7
+ export declare function Snackbar(props: SnackbarProps): JSX.Element;
@@ -1,4 +1,5 @@
1
- interface StepMeterProps {
1
+ import type { StyleProps } from '../../primitives';
2
+ interface StepMeterProps extends StyleProps {
2
3
  totalSteps: number;
3
4
  currentStep: number | null;
4
5
  }
@@ -0,0 +1,6 @@
1
+ import { Text } from '../../primitives';
2
+ import type * as React from 'react';
3
+ export interface LegacyProps extends React.ComponentProps<typeof Text> {
4
+ children?: React.ReactNode;
5
+ }
6
+ export declare const LegacyStyledText: (props: LegacyProps) => JSX.Element;
@@ -0,0 +1,154 @@
1
+ import { Text } from '../../primitives';
2
+ import type * as React from 'react';
3
+ import type { FlattenSimpleInterpolation } from 'styled-components';
4
+ declare const helixProductStyleMap: {
5
+ readonly displayBold: {
6
+ readonly as: "h1";
7
+ readonly style: FlattenSimpleInterpolation;
8
+ };
9
+ readonly headingLargeRegular: {
10
+ readonly as: "h2";
11
+ readonly style: FlattenSimpleInterpolation;
12
+ };
13
+ readonly headingLargeBold: {
14
+ readonly as: "h2";
15
+ readonly style: FlattenSimpleInterpolation;
16
+ };
17
+ readonly headingMediumBold: {
18
+ readonly as: "h3";
19
+ readonly style: FlattenSimpleInterpolation;
20
+ };
21
+ readonly headingMediumSemiBold: {
22
+ readonly as: "h3";
23
+ readonly style: FlattenSimpleInterpolation;
24
+ };
25
+ readonly headingSmallRegular: {
26
+ readonly as: "h4";
27
+ readonly style: FlattenSimpleInterpolation;
28
+ };
29
+ readonly headingSmallBold: {
30
+ readonly as: "h4";
31
+ readonly style: FlattenSimpleInterpolation;
32
+ };
33
+ readonly headingSmallSemiBold: {
34
+ readonly as: "h4";
35
+ readonly style: FlattenSimpleInterpolation;
36
+ };
37
+ readonly bodyLargeSemiBold: {
38
+ readonly as: "p";
39
+ readonly style: FlattenSimpleInterpolation;
40
+ };
41
+ readonly bodyLargeRegular: {
42
+ readonly as: "p";
43
+ readonly style: FlattenSimpleInterpolation;
44
+ };
45
+ readonly bodyDefaultSemiBold: {
46
+ readonly as: "p";
47
+ readonly style: FlattenSimpleInterpolation;
48
+ };
49
+ readonly bodyDefaultRegular: {
50
+ readonly as: "p";
51
+ readonly style: FlattenSimpleInterpolation;
52
+ };
53
+ readonly captionSemiBold: {
54
+ readonly as: "label";
55
+ readonly style: FlattenSimpleInterpolation;
56
+ };
57
+ readonly captionBold: {
58
+ readonly as: "label";
59
+ readonly style: FlattenSimpleInterpolation;
60
+ };
61
+ readonly captionRegular: {
62
+ readonly as: "label";
63
+ readonly style: FlattenSimpleInterpolation;
64
+ };
65
+ readonly codeRegular: {
66
+ readonly as: "p";
67
+ readonly style: FlattenSimpleInterpolation;
68
+ };
69
+ readonly hidden: {
70
+ readonly as: "none";
71
+ readonly style: FlattenSimpleInterpolation;
72
+ };
73
+ };
74
+ declare const ODDStyleMap: {
75
+ readonly level1Header: {
76
+ readonly as: "h1";
77
+ readonly style: FlattenSimpleInterpolation;
78
+ };
79
+ readonly level2HeaderRegular: {
80
+ readonly as: "h2";
81
+ readonly style: FlattenSimpleInterpolation;
82
+ };
83
+ readonly level2HeaderSemiBold: {
84
+ readonly as: "h2";
85
+ readonly style: FlattenSimpleInterpolation;
86
+ };
87
+ readonly level2HeaderBold: {
88
+ readonly as: "h2";
89
+ readonly style: FlattenSimpleInterpolation;
90
+ };
91
+ readonly level3HeaderRegular: {
92
+ readonly as: "h3";
93
+ readonly style: FlattenSimpleInterpolation;
94
+ };
95
+ readonly level3HeaderSemiBold: {
96
+ readonly as: "h3";
97
+ readonly style: FlattenSimpleInterpolation;
98
+ };
99
+ readonly level3HeaderBold: {
100
+ readonly as: "h3";
101
+ readonly style: FlattenSimpleInterpolation;
102
+ };
103
+ readonly level4HeaderRegular: {
104
+ readonly as: "h4";
105
+ readonly style: FlattenSimpleInterpolation;
106
+ };
107
+ readonly level4HeaderSemiBold: {
108
+ readonly as: "h4";
109
+ readonly style: FlattenSimpleInterpolation;
110
+ };
111
+ readonly level4HeaderBold: {
112
+ readonly as: "h4";
113
+ readonly style: FlattenSimpleInterpolation;
114
+ };
115
+ readonly bodyTextRegular: {
116
+ readonly as: "p";
117
+ readonly style: FlattenSimpleInterpolation;
118
+ };
119
+ readonly bodyTextSemiBold: {
120
+ readonly as: "p";
121
+ readonly style: FlattenSimpleInterpolation;
122
+ };
123
+ readonly bodyTextBold: {
124
+ readonly as: "p";
125
+ readonly style: FlattenSimpleInterpolation;
126
+ };
127
+ readonly smallBodyTextRegular: {
128
+ readonly as: "label";
129
+ readonly style: FlattenSimpleInterpolation;
130
+ };
131
+ readonly smallBodyTextSemiBold: {
132
+ readonly as: "label";
133
+ readonly style: FlattenSimpleInterpolation;
134
+ };
135
+ readonly smallBodyTextBold: {
136
+ readonly as: "label";
137
+ readonly style: FlattenSimpleInterpolation;
138
+ };
139
+ readonly hidden: {
140
+ readonly as: "none";
141
+ readonly style: FlattenSimpleInterpolation;
142
+ };
143
+ };
144
+ export interface Props extends React.ComponentProps<typeof Text> {
145
+ oddStyle?: ODDStyles;
146
+ desktopStyle?: HelixStyles;
147
+ children?: React.ReactNode;
148
+ }
149
+ export declare const ODD_STYLES: string[];
150
+ export declare const HELIX_STYLES: string[];
151
+ export type HelixStyles = keyof typeof helixProductStyleMap;
152
+ export type ODDStyles = keyof typeof ODDStyleMap;
153
+ export declare const StyledText: (props: Props) => JSX.Element;
154
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './StyledText';
2
+ export * from './LegacyStyledText';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { IconName } from '../../icons';
2
+ export type TagType = 'default' | 'interactive' | 'branded';
3
+ export interface TagProps {
4
+ /** Tag content */
5
+ text: string;
6
+ /** name constant of the text color and the icon color to display */
7
+ type: TagType;
8
+ /** iconLocation */
9
+ iconPosition?: 'left' | 'right';
10
+ /** Tagicon */
11
+ iconName?: IconName;
12
+ }
13
+ export declare function Tag(props: TagProps): JSX.Element;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1,25 @@
1
+ import type { StyleProps } from '../../primitives';
2
+ import type { IconProps } from '../../icons';
3
+ export declare const SUCCESS_TOAST: 'success';
4
+ export declare const WARNING_TOAST: 'warning';
5
+ export declare const ERROR_TOAST: 'error';
6
+ export declare const INFO_TOAST: 'info';
7
+ export type ToastType = typeof SUCCESS_TOAST | typeof WARNING_TOAST | typeof ERROR_TOAST | typeof INFO_TOAST;
8
+ export interface ToastProps extends StyleProps {
9
+ id: string;
10
+ message: string;
11
+ type: ToastType;
12
+ icon?: IconProps;
13
+ closeButton?: boolean;
14
+ buttonText?: string;
15
+ onClose?: () => void;
16
+ disableTimeout?: boolean;
17
+ duration?: number;
18
+ heading?: string;
19
+ displayType?: 'desktop' | 'odd';
20
+ exitNow?: boolean;
21
+ linkText?: string;
22
+ onLinkClick?: () => void;
23
+ }
24
+ export declare const TOAST_ANIMATION_DURATION = 500;
25
+ export declare function Toast(props: ToastProps): JSX.Element;
@@ -0,0 +1,9 @@
1
+ interface ToggleGroupProps {
2
+ leftText: string;
3
+ rightText: string;
4
+ leftClick: () => void;
5
+ rightClick: () => void;
6
+ selectedValue: string;
7
+ }
8
+ export declare const ToggleGroup: (props: ToggleGroupProps) => JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';