@bitrise/bitkit 10.2.0 → 10.2.3-alpha-chakra.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/package.json +23 -57
  2. package/src/Components/Tabs/Tab.tsx +2 -24
  3. package/src/Old/DatePicker/DatePicker.tsx +6 -6
  4. package/src/Old/DatePicker/DatePickerMonth.tsx +7 -7
  5. package/src/Old/Dropdown/Dropdown.tsx +54 -50
  6. package/src/Old/Dropdown/DropdownMenuItem.tsx +1 -2
  7. package/src/Old/Dropdown/DropdownMenuItemGroup.tsx +2 -2
  8. package/src/Old/Input/InputLabel.tsx +5 -3
  9. package/src/Old/Notification/Notification.tsx +3 -4
  10. package/src/Old/Notification/__snapshots__/Notification.test.tsx.snap +8 -12
  11. package/src/Old/Ribbon/Ribbon.tsx +4 -4
  12. package/src/Old/Status/Status500.tsx +6 -6
  13. package/src/Old/Table/TableHeaderCell.tsx +1 -1
  14. package/src/Old/Text/TextSizes.css +0 -39
  15. package/src/Old/Toggle/Toggle.tsx +1 -1
  16. package/src/Old/hooks/index.ts +0 -1
  17. package/src/Old/variables.css +0 -1
  18. package/src/Old/variables.ts +0 -3
  19. package/src/index.ts +0 -3
  20. package/src/old.ts +0 -94
  21. package/src/tsconfig.tsbuildinfo +1 -1
  22. package/src/Components/Transitions/Fade.stories.tsx +0 -26
  23. package/src/Components/Transitions/Fade.tsx +0 -12
  24. package/src/Old/AddonBeam/AddonBeam.css +0 -16
  25. package/src/Old/AddonBeam/AddonBeam.tsx +0 -116
  26. package/src/Old/AddonBeam/AddonBeamLink.tsx +0 -37
  27. package/src/Old/AddonFooter/AddonFooter.tsx +0 -24
  28. package/src/Old/AppLayout/AppLayout.css +0 -45
  29. package/src/Old/AppLayout/AppLayout.tsx +0 -21
  30. package/src/Old/AppLayout/AppLayoutBody.tsx +0 -10
  31. package/src/Old/AppLayout/AppLayoutHeader.tsx +0 -10
  32. package/src/Old/AppLayout/AppLayoutMain.tsx +0 -10
  33. package/src/Old/AppLayout/AppLayoutSidebar.tsx +0 -10
  34. package/src/Old/Avatar/Avatar.css +0 -4
  35. package/src/Old/Avatar/Avatar.tsx +0 -64
  36. package/src/Old/Avatar/avatarColors.ts +0 -26
  37. package/src/Old/Bounds/Bounds.tsx +0 -20
  38. package/src/Old/Button/Button.css +0 -249
  39. package/src/Old/Button/Button.test.tsx +0 -29
  40. package/src/Old/Button/Button.tsx +0 -55
  41. package/src/Old/Button/ButtonSize.ts +0 -3
  42. package/src/Old/Button/Buttons.test.tsx +0 -42
  43. package/src/Old/Button/Buttons.tsx +0 -34
  44. package/src/Old/Button/__snapshots__/Button.test.tsx.snap +0 -73
  45. package/src/Old/Button/__snapshots__/Buttons.test.tsx.snap +0 -45
  46. package/src/Old/Dropdown/DropdownButton.tsx +0 -28
  47. package/src/Old/Dropdown/DropdownMenus.tsx +0 -14
  48. package/src/Old/ExternalLink/ExternalLink.tsx +0 -24
  49. package/src/Old/Icon/Icon.css +0 -4
  50. package/src/Old/Icon/Icon.tsx +0 -32
  51. package/src/Old/Icon/tsx/IconsAddOns.tsx +0 -14
  52. package/src/Old/Icon/tsx/IconsAddOnsColorTuorqouise.tsx +0 -20
  53. package/src/Old/Icon/tsx/IconsAddOnsColorViolet.tsx +0 -20
  54. package/src/Old/Icon/tsx/IconsAddOnsWhite.tsx +0 -20
  55. package/src/Old/Icon/tsx/IconsApp.tsx +0 -16
  56. package/src/Old/Icon/tsx/IconsArrowBack.tsx +0 -14
  57. package/src/Old/Icon/tsx/IconsArrowDown.tsx +0 -21
  58. package/src/Old/Icon/tsx/IconsArrowForward.tsx +0 -16
  59. package/src/Old/Icon/tsx/IconsArrowQuit.tsx +0 -14
  60. package/src/Old/Icon/tsx/IconsArrowUp.tsx +0 -14
  61. package/src/Old/Icon/tsx/IconsBackArrow.tsx +0 -13
  62. package/src/Old/Icon/tsx/IconsBell.tsx +0 -16
  63. package/src/Old/Icon/tsx/IconsBitbot.tsx +0 -16
  64. package/src/Old/Icon/tsx/IconsBitbotFailed.tsx +0 -18
  65. package/src/Old/Icon/tsx/IconsBitbucket.tsx +0 -26
  66. package/src/Old/Icon/tsx/IconsBitbucketFill.tsx +0 -14
  67. package/src/Old/Icon/tsx/IconsBitriseCertified.tsx +0 -19
  68. package/src/Old/Icon/tsx/IconsBook.tsx +0 -16
  69. package/src/Old/Icon/tsx/IconsBranchBranch.tsx +0 -16
  70. package/src/Old/Icon/tsx/IconsBranchCommit.tsx +0 -14
  71. package/src/Old/Icon/tsx/IconsBranchPull.tsx +0 -16
  72. package/src/Old/Icon/tsx/IconsBranchPush.tsx +0 -21
  73. package/src/Old/Icon/tsx/IconsBranchTag.tsx +0 -16
  74. package/src/Old/Icon/tsx/IconsBug.tsx +0 -16
  75. package/src/Old/Icon/tsx/IconsBuild.tsx +0 -14
  76. package/src/Old/Icon/tsx/IconsBuildstatusAborted.tsx +0 -16
  77. package/src/Old/Icon/tsx/IconsBuildstatusAbortedSolid.tsx +0 -15
  78. package/src/Old/Icon/tsx/IconsBuildstatusFailed.tsx +0 -16
  79. package/src/Old/Icon/tsx/IconsBuildstatusFailedSolid.tsx +0 -15
  80. package/src/Old/Icon/tsx/IconsBuildstatusLoading.tsx +0 -13
  81. package/src/Old/Icon/tsx/IconsBuildstatusLoadingAnimated.tsx +0 -31
  82. package/src/Old/Icon/tsx/IconsBuildstatusLoadingeeehh.tsx +0 -13
  83. package/src/Old/Icon/tsx/IconsBuildstatusLoadingeeehhWhite.tsx +0 -13
  84. package/src/Old/Icon/tsx/IconsBuildstatusNeverbuilt.tsx +0 -14
  85. package/src/Old/Icon/tsx/IconsBuildstatusSuccessful.tsx +0 -16
  86. package/src/Old/Icon/tsx/IconsBuildstatusSuccessfulSolid.tsx +0 -15
  87. package/src/Old/Icon/tsx/IconsCalendar.tsx +0 -16
  88. package/src/Old/Icon/tsx/IconsChain.tsx +0 -16
  89. package/src/Old/Icon/tsx/IconsChangePlan.tsx +0 -14
  90. package/src/Old/Icon/tsx/IconsChat.tsx +0 -14
  91. package/src/Old/Icon/tsx/IconsChatMessage.tsx +0 -16
  92. package/src/Old/Icon/tsx/IconsChevronDown.tsx +0 -13
  93. package/src/Old/Icon/tsx/IconsChevronLeft.tsx +0 -16
  94. package/src/Old/Icon/tsx/IconsChevronRight.tsx +0 -16
  95. package/src/Old/Icon/tsx/IconsChevronUp.tsx +0 -15
  96. package/src/Old/Icon/tsx/IconsClock.tsx +0 -16
  97. package/src/Old/Icon/tsx/IconsCloseSmall.tsx +0 -16
  98. package/src/Old/Icon/tsx/IconsCode.tsx +0 -16
  99. package/src/Old/Icon/tsx/IconsCoffee.tsx +0 -16
  100. package/src/Old/Icon/tsx/IconsConsole.tsx +0 -16
  101. package/src/Old/Icon/tsx/IconsCredit.tsx +0 -21
  102. package/src/Old/Icon/tsx/IconsCreditcard.tsx +0 -16
  103. package/src/Old/Icon/tsx/IconsDeleteNope.tsx +0 -15
  104. package/src/Old/Icon/tsx/IconsDeployment.tsx +0 -14
  105. package/src/Old/Icon/tsx/IconsDoc.tsx +0 -16
  106. package/src/Old/Icon/tsx/IconsDollars.tsx +0 -16
  107. package/src/Old/Icon/tsx/IconsDownload.tsx +0 -16
  108. package/src/Old/Icon/tsx/IconsDropdownArrows.tsx +0 -16
  109. package/src/Old/Icon/tsx/IconsDudes.tsx +0 -14
  110. package/src/Old/Icon/tsx/IconsDuplicate.tsx +0 -14
  111. package/src/Old/Icon/tsx/IconsEnterprise.tsx +0 -19
  112. package/src/Old/Icon/tsx/IconsErrorGeneral.tsx +0 -16
  113. package/src/Old/Icon/tsx/IconsFileDoc.tsx +0 -16
  114. package/src/Old/Icon/tsx/IconsFilePdf.tsx +0 -16
  115. package/src/Old/Icon/tsx/IconsFilePlist.tsx +0 -16
  116. package/src/Old/Icon/tsx/IconsFileZip.tsx +0 -16
  117. package/src/Old/Icon/tsx/IconsFilter.tsx +0 -16
  118. package/src/Old/Icon/tsx/IconsFlag.tsx +0 -13
  119. package/src/Old/Icon/tsx/IconsFolder.tsx +0 -16
  120. package/src/Old/Icon/tsx/IconsFullscreen.tsx +0 -14
  121. package/src/Old/Icon/tsx/IconsFullscreenExit.tsx +0 -14
  122. package/src/Old/Icon/tsx/IconsGauge.tsx +0 -16
  123. package/src/Old/Icon/tsx/IconsGithub.tsx +0 -14
  124. package/src/Old/Icon/tsx/IconsGitlab.tsx +0 -20
  125. package/src/Old/Icon/tsx/IconsGitlabFill.tsx +0 -14
  126. package/src/Old/Icon/tsx/IconsGlobe.tsx +0 -16
  127. package/src/Old/Icon/tsx/IconsGroup.tsx +0 -14
  128. package/src/Old/Icon/tsx/IconsHeart.tsx +0 -14
  129. package/src/Old/Icon/tsx/IconsHidePassword.tsx +0 -19
  130. package/src/Old/Icon/tsx/IconsHistory.tsx +0 -14
  131. package/src/Old/Icon/tsx/IconsImage.tsx +0 -14
  132. package/src/Old/Icon/tsx/IconsInfo.tsx +0 -14
  133. package/src/Old/Icon/tsx/IconsIntegrations.tsx +0 -14
  134. package/src/Old/Icon/tsx/IconsInteraction.tsx +0 -14
  135. package/src/Old/Icon/tsx/IconsInvoice.tsx +0 -16
  136. package/src/Old/Icon/tsx/IconsJapanese.tsx +0 -15
  137. package/src/Old/Icon/tsx/IconsKey.tsx +0 -14
  138. package/src/Old/Icon/tsx/IconsLaptop.tsx +0 -13
  139. package/src/Old/Icon/tsx/IconsLaptops.tsx +0 -16
  140. package/src/Old/Icon/tsx/IconsLightbulb.tsx +0 -16
  141. package/src/Old/Icon/tsx/IconsLock.tsx +0 -16
  142. package/src/Old/Icon/tsx/IconsLogin.tsx +0 -16
  143. package/src/Old/Icon/tsx/IconsLogout.tsx +0 -16
  144. package/src/Old/Icon/tsx/IconsMagnifier.tsx +0 -16
  145. package/src/Old/Icon/tsx/IconsMail.tsx +0 -16
  146. package/src/Old/Icon/tsx/IconsMenuGrid.tsx +0 -16
  147. package/src/Old/Icon/tsx/IconsMenuHamburger.tsx +0 -13
  148. package/src/Old/Icon/tsx/IconsMessage.tsx +0 -16
  149. package/src/Old/Icon/tsx/IconsMinusClose.tsx +0 -10
  150. package/src/Old/Icon/tsx/IconsMinusRemove.tsx +0 -16
  151. package/src/Old/Icon/tsx/IconsMobile.tsx +0 -16
  152. package/src/Old/Icon/tsx/IconsMonitoring.tsx +0 -14
  153. package/src/Old/Icon/tsx/IconsMoreHorizontal.tsx +0 -13
  154. package/src/Old/Icon/tsx/IconsMoreVertical.tsx +0 -17
  155. package/src/Old/Icon/tsx/IconsNoTie.tsx +0 -14
  156. package/src/Old/Icon/tsx/IconsNumero.tsx +0 -16
  157. package/src/Old/Icon/tsx/IconsOpenInBrowser.tsx +0 -16
  158. package/src/Old/Icon/tsx/IconsOverview.tsx +0 -14
  159. package/src/Old/Icon/tsx/IconsOwner.tsx +0 -19
  160. package/src/Old/Icon/tsx/IconsPause.tsx +0 -14
  161. package/src/Old/Icon/tsx/IconsPencil.tsx +0 -17
  162. package/src/Old/Icon/tsx/IconsPercent.tsx +0 -14
  163. package/src/Old/Icon/tsx/IconsPerson.tsx +0 -14
  164. package/src/Old/Icon/tsx/IconsPlatformsAndroid.tsx +0 -16
  165. package/src/Old/Icon/tsx/IconsPlatformsApple.tsx +0 -16
  166. package/src/Old/Icon/tsx/IconsPlatformsCordova.tsx +0 -14
  167. package/src/Old/Icon/tsx/IconsPlatformsFastlane.tsx +0 -14
  168. package/src/Old/Icon/tsx/IconsPlatformsFlutter.tsx +0 -14
  169. package/src/Old/Icon/tsx/IconsPlatformsGo.tsx +0 -13
  170. package/src/Old/Icon/tsx/IconsPlatformsIonic.tsx +0 -14
  171. package/src/Old/Icon/tsx/IconsPlatformsMacos.tsx +0 -14
  172. package/src/Old/Icon/tsx/IconsPlatformsNodejs.tsx +0 -13
  173. package/src/Old/Icon/tsx/IconsPlatformsOther.tsx +0 -21
  174. package/src/Old/Icon/tsx/IconsPlatformsReact.tsx +0 -14
  175. package/src/Old/Icon/tsx/IconsPlatformsXamarin.tsx +0 -14
  176. package/src/Old/Icon/tsx/IconsPlay.tsx +0 -16
  177. package/src/Old/Icon/tsx/IconsPlusAdd.tsx +0 -16
  178. package/src/Old/Icon/tsx/IconsPlusOpen.tsx +0 -13
  179. package/src/Old/Icon/tsx/IconsPower.tsx +0 -11
  180. package/src/Old/Icon/tsx/IconsRefresh.tsx +0 -13
  181. package/src/Old/Icon/tsx/IconsRequest.tsx +0 -14
  182. package/src/Old/Icon/tsx/IconsResponsiveness.tsx +0 -14
  183. package/src/Old/Icon/tsx/IconsSave.tsx +0 -14
  184. package/src/Old/Icon/tsx/IconsSecurityShield.tsx +0 -16
  185. package/src/Old/Icon/tsx/IconsSettings.tsx +0 -16
  186. package/src/Old/Icon/tsx/IconsShip.tsx +0 -14
  187. package/src/Old/Icon/tsx/IconsShowPassword.tsx +0 -16
  188. package/src/Old/Icon/tsx/IconsShuffle.tsx +0 -16
  189. package/src/Old/Icon/tsx/IconsStability.tsx +0 -16
  190. package/src/Old/Icon/tsx/IconsStack.tsx +0 -16
  191. package/src/Old/Icon/tsx/IconsStatus.tsx +0 -16
  192. package/src/Old/Icon/tsx/IconsStepThirdParty.tsx +0 -16
  193. package/src/Old/Icon/tsx/IconsStepUpgrade.tsx +0 -10
  194. package/src/Old/Icon/tsx/IconsStepUpgradeCircle.tsx +0 -11
  195. package/src/Old/Icon/tsx/IconsStepVersionOk.tsx +0 -11
  196. package/src/Old/Icon/tsx/IconsSteps.tsx +0 -14
  197. package/src/Old/Icon/tsx/IconsStepsColorTuorqouise.tsx +0 -14
  198. package/src/Old/Icon/tsx/IconsStepsColorViolet.tsx +0 -14
  199. package/src/Old/Icon/tsx/IconsStepsWhite.tsx +0 -14
  200. package/src/Old/Icon/tsx/IconsStopwatch.tsx +0 -16
  201. package/src/Old/Icon/tsx/IconsSupport.tsx +0 -16
  202. package/src/Old/Icon/tsx/IconsSwitch.tsx +0 -13
  203. package/src/Old/Icon/tsx/IconsTestFailed.tsx +0 -14
  204. package/src/Old/Icon/tsx/IconsTestInconclusive.tsx +0 -14
  205. package/src/Old/Icon/tsx/IconsTestInfo.tsx +0 -14
  206. package/src/Old/Icon/tsx/IconsTestSkipped.tsx +0 -14
  207. package/src/Old/Icon/tsx/IconsTestSuccess.tsx +0 -14
  208. package/src/Old/Icon/tsx/IconsTestWarning.tsx +0 -14
  209. package/src/Old/Icon/tsx/IconsTick.tsx +0 -13
  210. package/src/Old/Icon/tsx/IconsTime.tsx +0 -16
  211. package/src/Old/Icon/tsx/IconsTrace.tsx +0 -14
  212. package/src/Old/Icon/tsx/IconsTrash.tsx +0 -16
  213. package/src/Old/Icon/tsx/IconsTrigger.tsx +0 -16
  214. package/src/Old/Icon/tsx/IconsTwitter.tsx +0 -16
  215. package/src/Old/Icon/tsx/IconsValidateShield.tsx +0 -16
  216. package/src/Old/Icon/tsx/IconsWarning.tsx +0 -16
  217. package/src/Old/Icon/tsx/IconsWebUi.tsx +0 -17
  218. package/src/Old/Icon/tsx/IconsWindow.tsx +0 -16
  219. package/src/Old/Icon/tsx/IconsWorkflow.tsx +0 -16
  220. package/src/Old/Icon/tsx/IconsWorkflowFlow.tsx +0 -16
  221. package/src/Old/Icon/tsx/IconsWow.tsx +0 -16
  222. package/src/Old/Icon/tsx/index.ts +0 -694
  223. package/src/Old/Image/Image.css +0 -4
  224. package/src/Old/Image/Image.tsx +0 -15
  225. package/src/Old/Link/Link.css +0 -44
  226. package/src/Old/Link/Link.tsx +0 -30
  227. package/src/Old/List/List.css +0 -3
  228. package/src/Old/List/List.tsx +0 -14
  229. package/src/Old/List/ListItem.tsx +0 -13
  230. package/src/Old/Modal/Modal.css +0 -67
  231. package/src/Old/Modal/Modal.tsx +0 -117
  232. package/src/Old/Modal/ModalBody.tsx +0 -17
  233. package/src/Old/Modal/ModalHeader.tsx +0 -50
  234. package/src/Old/Modal/ModalHeaderProgress.tsx +0 -23
  235. package/src/Old/Modal/ModalTitle.tsx +0 -13
  236. package/src/Old/Portal/Portal.tsx +0 -15
  237. package/src/Old/Progress/ProgressButtonContent.tsx +0 -35
  238. package/src/Old/RadioButton/RadioButton.css +0 -46
  239. package/src/Old/RadioButton/RadioButton.tsx +0 -27
  240. package/src/Old/Sidebar/Sidebar.css +0 -125
  241. package/src/Old/Sidebar/Sidebar.tsx +0 -25
  242. package/src/Old/Sidebar/SidebarHeader.tsx +0 -10
  243. package/src/Old/Sidebar/SidebarMenu.tsx +0 -30
  244. package/src/Old/Sidebar/SidebarMenuContext.ts +0 -7
  245. package/src/Old/Sidebar/SidebarMenuItem.tsx +0 -67
  246. package/src/Old/Sidebar/SidebarSubMenu.tsx +0 -33
  247. package/src/Old/Sidebar/SidebarSubMenuItem.tsx +0 -59
  248. package/src/Old/Status/Status404.tsx +0 -43
  249. package/src/Old/Tabs/Tab.tsx +0 -23
  250. package/src/Old/Tabs/Tabs.css +0 -30
  251. package/src/Old/Tabs/Tabs.tsx +0 -18
  252. package/src/Old/Tooltip/Tooltip.tsx +0 -85
  253. package/src/Old/hooks/useResizeObserver.ts +0 -40
package/package.json CHANGED
@@ -1,29 +1,16 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "10.2.0",
4
+ "version": "10.2.3-alpha-chakra.1",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
8
8
  "scripts": {
9
- "build": "yarn build:lib && yarn build:site",
10
- "build:docs": "ts-node ./scripts/build-docs",
11
9
  "build:icons": "ts-node ./scripts/build-icons.ts",
12
- "build:lib": "rm -rf ./lib && yarn build:lib:cjs && yarn build:lib:esn",
13
- "build:lib:esn": "tsc -p src -m esnext -t esnext --outDir lib/esn",
14
- "build:lib:cjs": "tsc -p src --outDir lib/cjs",
15
- "build:prepare": "rm -rf ./dist && mkdir dist && cp site/index.html dist && ln -s index.html dist/404.html",
16
- "build:site": "yarn build:prepare && yarn build:docs && yarn tsc:site && yarn build:site:esbuild",
17
- "tsc:site": "tsc --noEmit -p site/tsconfig.json",
18
- "build:site:esbuild": "esbuild --bundle site/index.tsx --outdir=dist --target=esnext --loader:.woff2=file --loader:.woff=file --minify --sourcemap",
19
10
  "commitlint": "commitlint",
20
- "lint": "yarn lint:js",
21
- "lint:js": "eslint src/**/*.tsx",
11
+ "lint": "eslint src/**/*.tsx",
22
12
  "semantic-release": "semantic-release",
23
- "serve": "superstatic ./dist --port 4001 -c superstatic.json",
24
- "start": "yarn build:prepare && concurrently \"yarn start:docs\" \"yarn start:esbuild\" \"yarn serve\"",
25
- "start:esbuild": "esbuild --bundle site/index.tsx --watch --outdir=dist --target=esnext --loader:.woff2=file --loader:.woff=file",
26
- "start:docs": "ts-node ./scripts/build-docs-watch",
13
+ "start": "yarn storybook",
27
14
  "test": "jest ./src",
28
15
  "storybook": "start-storybook -p 6006",
29
16
  "build-storybook": "build-storybook"
@@ -33,15 +20,14 @@
33
20
  "framer-motion": "./node_modules/framer-motion/dist/cjs"
34
21
  },
35
22
  "dependencies": {
36
- "@chakra-ui/react": "^2.2.1",
23
+ "@chakra-ui/react": "^2.2.4",
37
24
  "@emotion/react": "^11.9.3",
38
25
  "@emotion/styled": "^11.9.3",
39
- "@juggle/resize-observer": "^3.3.1",
40
26
  "@popperjs/core": "^2.11.5",
41
27
  "classnames": "^2.3.1",
42
28
  "clipboard": "^2.0.11",
43
- "framer-motion": "^6.3.15",
44
- "luxon": "^2.4.0",
29
+ "framer-motion": "^6.5.1",
30
+ "luxon": "^2.5.0",
45
31
  "react": "^18.2.0",
46
32
  "react-dom": "^18.2.0",
47
33
  "react-popper": "^2.3.0"
@@ -51,13 +37,13 @@
51
37
  "react-dom": "^18.2.0"
52
38
  },
53
39
  "devDependencies": {
54
- "@babel/core": "^7.18.5",
55
- "@babel/parser": "^7.18.5",
40
+ "@babel/core": "^7.18.9",
41
+ "@babel/parser": "^7.18.9",
56
42
  "@bitrise/eslint-plugin": "^2.2.0",
57
- "@chakra-ui/cli": "^2.1.0",
43
+ "@chakra-ui/cli": "^2.1.2",
58
44
  "@commitlint/cli": "^16.3.0",
59
45
  "@commitlint/config-conventional": "^16.2.4",
60
- "@google-cloud/storage": "^5.19.4",
46
+ "@google-cloud/storage": "^5.20.5",
61
47
  "@semantic-release/changelog": "^6.0.1",
62
48
  "@semantic-release/commit-analyzer": "^9.0.2",
63
49
  "@semantic-release/git": "^10.0.1",
@@ -71,63 +57,43 @@
71
57
  "@storybook/react": "^6.5.9",
72
58
  "@storybook/testing-library": "^0.0.13",
73
59
  "@storybook/theming": "^6.5.9",
74
- "@svgr/cli": "^6.2.1",
75
- "@svgr/core": "^6.2.1",
60
+ "@svgr/core": "^6.3.0",
76
61
  "@types/cheerio": "^0.22.31",
77
62
  "@types/clipboard": "^2.0.1",
78
63
  "@types/enzyme": "^3.10.12",
79
- "@types/fscreen": "^1.0.1",
80
- "@types/jest": "^27.5.1",
81
- "@types/lodash.sample": "^4.2.7",
82
- "@types/lodash.shuffle": "^4.2.7",
83
- "@types/luxon": "^2.3.2",
84
- "@types/prismjs": "^1.26.0",
85
- "@types/react": "18.0.14",
86
- "@types/react-dom": "^18.0.5",
87
- "@types/react-router": "^5.1.18",
88
- "@types/react-router-dom": "^5.3.3",
64
+ "@types/jest": "^27.5.2",
65
+ "@types/luxon": "^2.4.0",
66
+ "@types/react": "18.0.15",
67
+ "@types/react-dom": "^18.0.6",
89
68
  "@types/vfile-message": "^2.0.0",
90
- "@typescript-eslint/eslint-plugin": "^5.29.0",
91
- "@typescript-eslint/parser": "^5.29.0",
69
+ "@typescript-eslint/eslint-plugin": "^5.30.7",
70
+ "@typescript-eslint/parser": "^5.30.7",
92
71
  "@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
93
72
  "axios": "^0.27.2",
94
73
  "babel-eslint": "^10.0.1",
95
74
  "babel-loader": "^8.2.5",
96
75
  "babel-plugin-polyfill-corejs2": "^0.3.1",
97
- "concurrently": "^7.2.2",
98
76
  "enzyme": "^3.11.0",
99
77
  "enzyme-to-json": "^3.6.2",
100
- "esbuild": "^0.14.47",
101
- "eslint": "^8.18.0",
78
+ "eslint": "^8.20.0",
102
79
  "eslint-plugin-import": "^2.26.0",
103
- "eslint-plugin-jest": "^26.5.3",
80
+ "eslint-plugin-jest": "^26.6.0",
104
81
  "eslint-plugin-jsx-a11y": "^6.6.0",
105
- "eslint-plugin-prettier": "^4.1.0",
82
+ "eslint-plugin-prettier": "^4.2.1",
106
83
  "eslint-plugin-react": "^7.30.1",
107
84
  "eslint-plugin-react-hooks": "^4.6.0",
108
- "eslint-plugin-storybook": "^0.5.13",
85
+ "eslint-plugin-storybook": "^0.6.1",
109
86
  "eslint-plugin-testing-library": "^5.5.1",
110
- "fscreen": "^1.2.0",
111
87
  "glob": "^8.0.3",
112
88
  "husky": "^7.0.4",
113
89
  "identity-obj-proxy": "^3.0.0",
114
90
  "jest": "^27.5.1",
115
91
  "jsdom": "^19.0.0",
116
- "lodash.sample": "^4.2.1",
117
- "lodash.shuffle": "^4.2.0",
118
- "node-watch": "^0.7.3",
119
92
  "prettier": "^2.7.1",
120
- "prismjs": "^1.28.0",
121
- "react": "^18.2.0",
122
- "react-docgen": "5.4.2",
123
- "react-dom": "^18.2.0",
124
- "react-router": "^5.3.1",
125
- "react-router-dom": "^5.3.1",
126
93
  "recast": "^0.21.1",
127
94
  "semantic-release": "^19.0.3",
128
- "superstatic": "^8.0.0",
129
95
  "ts-jest": "^27.1.5",
130
- "ts-node": "^10.8.1",
96
+ "ts-node": "^10.9.1",
131
97
  "tsconfig-paths-webpack-plugin": "^3.5.2",
132
98
  "typescript": "^4.7.4",
133
99
  "webpack": "^5.73.0"
@@ -153,7 +119,7 @@
153
119
  },
154
120
  "resolutions": {
155
121
  "**/ast-types": "npm:@gkz/ast-types",
156
- "ts-node": "^10.8.1",
122
+ "ts-node": "^10.9.1",
157
123
  "@types/react": "17.0.40"
158
124
  }
159
125
  }
@@ -1,6 +1,4 @@
1
1
  import {
2
- Badge as ChakraBadge,
3
- BadgeProps as ChakraBadgeProps,
4
2
  Button,
5
3
  Tab as ChakraTab,
6
4
  TabProps as ChakraTabProps,
@@ -8,28 +6,8 @@ import {
8
6
  useMultiStyleConfig,
9
7
  useTab,
10
8
  } from '@chakra-ui/react';
11
- import Icon from '../../Old/Icon/Icon';
12
- import { TypeIconName } from '../../Old/Icon/tsx';
13
-
14
- // TODO: separated component
15
- interface BadgeProps extends ChakraBadgeProps {
16
- backgroundColor?: ChakraBadgeProps['backgroundColor'];
17
- children?: number | string;
18
- color?: ChakraBadgeProps['color'];
19
- }
20
-
21
- const Badge = (props: BadgeProps) => {
22
- const properties: ChakraBadgeProps = {
23
- ...props,
24
- borderRadius: '4',
25
- fontSize: '1',
26
- lineHeight: '1',
27
- paddingY: '3px',
28
- paddingX: '8',
29
- textTransform: 'uppercase',
30
- };
31
- return <ChakraBadge {...properties} />;
32
- };
9
+ import Badge, { BadgeProps } from '../Badge/Badge';
10
+ import Icon, { TypeIconName } from '../Icon/Icon';
33
11
 
34
12
  export interface TabProps extends ChakraTabProps {
35
13
  badge?: BadgeProps;
@@ -3,8 +3,8 @@ import * as React from 'react';
3
3
  import { DateTime } from 'luxon';
4
4
  import { ReferenceChildrenProps } from 'react-popper';
5
5
  import { useMediaQuery, useSyncedStateAndProps } from '../hooks';
6
- import Button from '../Button/Button';
7
- import Buttons from '../Button/Buttons';
6
+ import Button from '../../Components/Button/Button';
7
+ import ButtonGroup from '../../Components/ButtonGroup/ButtonGroup';
8
8
  import { Props as FlexProps } from '../Flex/Flex';
9
9
  import Placement from '../Placement/Placement';
10
10
  import PlacementArea from '../Placement/PlacementArea';
@@ -175,15 +175,15 @@ const DatePicker: React.FunctionComponent<Props> = (props: Props) => {
175
175
  )}
176
176
  </PlacementArea>
177
177
 
178
- <Buttons alignChildren="end" margin="x2" paddingHorizontal="x8">
179
- <Button level="secondary" onClick={handleClose} size="small">
178
+ <ButtonGroup alignItems="flex-end" marginY="8" paddingX="32">
179
+ <Button variant="secondary" onClick={handleClose} size="small">
180
180
  Cancel
181
181
  </Button>
182
182
 
183
- <Button level="primary" onClick={handleApply} size="small">
183
+ <Button onClick={handleApply} size="small">
184
184
  Apply
185
185
  </Button>
186
- </Buttons>
186
+ </ButtonGroup>
187
187
  </PlacementArea>
188
188
  )}
189
189
  </Placement>
@@ -2,9 +2,9 @@ import * as React from 'react';
2
2
  import { DateTime, Info } from 'luxon';
3
3
  import Base, { Props as BaseProps } from '../Base/Base';
4
4
  import Flex from '../Flex/Flex';
5
- import Icon from '../Icon/Icon';
6
- import Link from '../Link/Link';
7
- import Text from '../Text/Text';
5
+ import Icon from '../../Components/Icon/Icon';
6
+ import Link from '../../Components/Link/Link';
7
+ import Text from '../../Components/Text/Text';
8
8
  import DatePickerGrid from './DatePickerGrid';
9
9
  import DatePickerDay from './DatePickerDay';
10
10
 
@@ -40,18 +40,18 @@ const DatePickerMonth: React.FunctionComponent<Props> = (props: Props) => {
40
40
  <Flex alignChildren="middle" direction="horizontal" gap="x4" margin="x4" paddingHorizontal="x12">
41
41
  <Flex>
42
42
  {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
43
- <Link onClick={onPreviousMonth}>
43
+ <Link as="button" onClick={onPreviousMonth}>
44
44
  <Icon name="ChevronLeft" />
45
45
  </Link>
46
46
  </Flex>
47
47
 
48
48
  <Flex grow>
49
- <Text align="middle">{viewDate.toFormat('MMMM yyyy')}</Text>
49
+ <Text align="center">{viewDate.toFormat('MMMM yyyy')}</Text>
50
50
  </Flex>
51
51
 
52
52
  <Flex>
53
53
  {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
54
- <Link onClick={onNextMonth}>
54
+ <Link as="button" onClick={onNextMonth}>
55
55
  <Icon name="ChevronRight" />
56
56
  </Link>
57
57
  </Flex>
@@ -59,7 +59,7 @@ const DatePickerMonth: React.FunctionComponent<Props> = (props: Props) => {
59
59
 
60
60
  <DatePickerGrid margin="x1">
61
61
  {daysOfTheWeek.map((day) => (
62
- <Text align="middle" key={day} paddingVertical="x4" size="2" textColor="neutral.70" uppercase>
62
+ <Text textAlign="center" key={day} paddingY="16" size="2" color="neutral.70" textTransform="uppercase">
63
63
  {day}
64
64
  </Text>
65
65
  ))}
@@ -1,14 +1,12 @@
1
1
  import * as React from 'react';
2
- import Placement from '../Placement/Placement';
3
- import PlacementManager from '../Placement/PlacementManager';
4
- import PlacementReference from '../Placement/PlacementReference';
5
- import Text from '../Text/Text';
6
- import DropdownButton, { Props as DropdownButtonProps } from './DropdownButton';
7
- import DropdownMenu from './DropdownMenu';
8
- import DropdownMenuItem from './DropdownMenuItem';
2
+ import Text from '../../Components/Text/Text';
3
+ import Popover from '../../Components/Popover/Popover';
4
+ import PopoverTrigger from '../../Components/Popover/PopoverTrigger';
5
+ import PopoverContent from '../../Components/Popover/PopoverContent';
6
+ import Button, { ButtonProps } from '../../Components/Button/Button';
9
7
  import DropdownMenuItemGroup from './DropdownMenuItemGroup';
10
-
11
- const { useState } = React;
8
+ import DropdownMenuItem from './DropdownMenuItem';
9
+ import DropdownMenu from './DropdownMenu';
12
10
 
13
11
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
14
12
  type DropdownValue = any;
@@ -22,7 +20,7 @@ interface OptionGroup {
22
20
  options: DropdownValue[];
23
21
  }
24
22
 
25
- export interface Props extends DropdownButtonProps {
23
+ export interface Props extends ButtonProps {
26
24
  /** Handler for the value that is selected */
27
25
  onChange?: (value: DropdownValue) => void;
28
26
  /** Array of options that can be selected */
@@ -40,58 +38,64 @@ export interface Props extends DropdownButtonProps {
40
38
  */
41
39
  const Dropdown: React.FunctionComponent<Props> = (props: Props) => {
42
40
  const { children, options, onChange, selected, maxHeight, menuClassName, ...rest } = props;
43
- const [visible, setVisible] = useState(false);
44
41
 
45
42
  const handleChange = (value: DropdownValue) => {
46
43
  if (onChange) {
47
44
  onChange(value);
48
45
  }
49
- setVisible(false);
50
46
  };
51
47
 
52
- const renderOption = ({ text, value }: Option) => (
53
- <DropdownMenuItem onClick={() => handleChange(value)} selected={selected === value} width="100%">
48
+ const renderOption = ({ text, value }: Option, onClose: () => void) => (
49
+ <DropdownMenuItem
50
+ onClick={() => {
51
+ handleChange(value);
52
+ onClose();
53
+ }}
54
+ selected={selected === value}
55
+ width="100%"
56
+ >
54
57
  {text}
55
58
  </DropdownMenuItem>
56
59
  );
57
60
 
58
61
  return (
59
- <PlacementManager>
60
- <PlacementReference>
61
- {({ ref }) => (
62
- <DropdownButton
63
- {...rest}
64
- alignChildrenHorizontal="start"
65
- innerRef={ref}
66
- onClick={() => {
67
- setVisible(!visible);
68
- }}
69
- >
70
- <Text ellipsis>{children}</Text>
71
- </DropdownButton>
72
- )}
73
- </PlacementReference>
74
-
75
- <Placement onClose={() => setVisible(false)} sameWidth visible={visible}>
76
- {() => (
77
- <DropdownMenu className={menuClassName} maxHeight={maxHeight} width="100%">
78
- {options.map((option) => (
79
- <React.Fragment key={option.text}>
80
- {'options' in option ? (
81
- <DropdownMenuItemGroup text={option.text}>
82
- {option.options.map((groupOption) => (
83
- <React.Fragment key={groupOption.value}>{renderOption(groupOption)}</React.Fragment>
84
- ))}
85
- </DropdownMenuItemGroup>
86
- ) : (
87
- renderOption(option)
88
- )}
89
- </React.Fragment>
90
- ))}
91
- </DropdownMenu>
92
- )}
93
- </Placement>
94
- </PlacementManager>
62
+ <Popover matchWidth>
63
+ {({ onClose }) => (
64
+ <>
65
+ {' '}
66
+ <PopoverTrigger>
67
+ <Button
68
+ width="100%"
69
+ variant="secondary"
70
+ rightIconName="ChevronDown"
71
+ justifyContent="space-between"
72
+ {...rest}
73
+ >
74
+ <Text as="span" hasEllipsis>
75
+ {children}
76
+ </Text>
77
+ </Button>
78
+ </PopoverTrigger>
79
+ <PopoverContent>
80
+ <DropdownMenu className={menuClassName} maxHeight={maxHeight} width="100%">
81
+ {options.map((option) => (
82
+ <React.Fragment key={option.text}>
83
+ {'options' in option ? (
84
+ <DropdownMenuItemGroup text={option.text}>
85
+ {option.options.map((groupOption) => (
86
+ <React.Fragment key={groupOption.value}>{renderOption(groupOption, onClose)}</React.Fragment>
87
+ ))}
88
+ </DropdownMenuItemGroup>
89
+ ) : (
90
+ renderOption(option, onClose)
91
+ )}
92
+ </React.Fragment>
93
+ ))}
94
+ </DropdownMenu>
95
+ </PopoverContent>
96
+ </>
97
+ )}
98
+ </Popover>
95
99
  );
96
100
  };
97
101
 
@@ -1,8 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import classnames from 'classnames';
3
3
  import Flex, { Props as FlexProps } from '../Flex/Flex';
4
- import Icon from '../Icon/Icon';
5
- import { TypeIconName } from '../Icon/tsx';
4
+ import Icon, { TypeIconName } from '../../Components/Icon/Icon';
6
5
  import Visibility from '../Visibility/Visibility';
7
6
 
8
7
  export interface Props extends FlexProps {
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import classnames from 'classnames';
3
3
  import Flex, { Props as FlexProps } from '../Flex/Flex';
4
- import Text from '../Text/Text';
4
+ import Text from '../../Components/Text/Text';
5
5
 
6
6
  export interface Props extends FlexProps {
7
7
  text: string;
@@ -9,7 +9,7 @@ export interface Props extends FlexProps {
9
9
 
10
10
  const DropdownMenuItemGroup: React.FunctionComponent<Props> = ({ text, children, className, ...rest }: Props) => (
11
11
  <Flex className={classnames('DropdownMenu__group', className)} {...rest}>
12
- <Text className="DropdownMenu__group-text" size="2" textColor="neutral.50">
12
+ <Text className="DropdownMenu__group-text" size="2" color="neutral.50">
13
13
  {text}
14
14
  </Text>
15
15
  {children}
@@ -1,14 +1,16 @@
1
1
  import * as React from 'react';
2
- import Text, { Props as TextProps } from '../Text/Text';
2
+ import Text, { TextProps } from '../../Components/Text/Text';
3
3
 
4
- export type Props = TextProps;
4
+ export type Props = {
5
+ htmlFor?: string | undefined;
6
+ } & TextProps;
5
7
 
6
8
  /**
7
9
  * Provides specific styling for a label that accompanies an
8
10
  * input.
9
11
  */
10
12
  const InputLabel: React.FunctionComponent<Props> = (props: Props) => {
11
- return <Text {...props} Component="label" margin="x1" size="3" textColor="purple.10" weight="bold" />;
13
+ return <Text {...props} as="label" marginY="4" size="3" color="purple.10" fontWeight="bold" />;
12
14
  };
13
15
 
14
16
  export default InputLabel;
@@ -1,9 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import classnames from 'classnames';
3
3
  import Flex, { Props as FlexProps } from '../Flex/Flex';
4
- import Icon from '../Icon/Icon';
5
- import { TypeIconName } from '../Icon/tsx';
6
- import Link from '../Link/Link';
4
+ import Icon, { TypeIconName } from '../../Components/Icon/Icon';
5
+ import Link from '../../Components/Link/Link';
7
6
  import ProgressSpinner from '../Progress/ProgressSpinner';
8
7
  import './Notification.css';
9
8
 
@@ -58,7 +57,7 @@ const Notification: React.FunctionComponent<Props> = (props: Props) => {
58
57
  {onRemove && (
59
58
  <Flex>
60
59
  {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
61
- <Link clickable onClick={onRemove}>
60
+ <Link as="button" onClick={onRemove}>
62
61
  <Icon name="CloseSmall" />
63
62
  </Link>
64
63
  </Flex>
@@ -9,9 +9,8 @@ exports[`Notification default icon can be overridden 1`] = `
9
9
  padding="x3"
10
10
  >
11
11
  <Flex>
12
- <Icon
12
+ <ForwardRef
13
13
  name="Bell"
14
- size="1.5rem"
15
14
  />
16
15
  </Flex>
17
16
  <Flex
@@ -32,9 +31,8 @@ exports[`Notification default template 1`] = `
32
31
  padding="x3"
33
32
  >
34
33
  <Flex>
35
- <Icon
34
+ <ForwardRef
36
35
  name="ErrorGeneral"
37
- size="1.5rem"
38
36
  />
39
37
  </Flex>
40
38
  <Flex
@@ -55,9 +53,8 @@ exports[`Notification with onRemove has a close icon 1`] = `
55
53
  padding="x3"
56
54
  >
57
55
  <Flex>
58
- <Icon
56
+ <ForwardRef
59
57
  name="ErrorGeneral"
60
- size="1.5rem"
61
58
  />
62
59
  </Flex>
63
60
  <Flex
@@ -67,16 +64,15 @@ exports[`Notification with onRemove has a close icon 1`] = `
67
64
  Content
68
65
  </Flex>
69
66
  <Flex>
70
- <Link
71
- Component="a"
72
- clickable={true}
67
+ <ForwardRef
68
+ as="button"
69
+ isUnderlined={false}
73
70
  onClick={[Function]}
74
71
  >
75
- <Icon
72
+ <ForwardRef
76
73
  name="CloseSmall"
77
- size="1.5rem"
78
74
  />
79
- </Link>
75
+ </ForwardRef>
80
76
  </Flex>
81
77
  </Flex>
82
78
  `;
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import classnames from 'classnames';
3
3
  import Flex, { Props as FlexProps } from '../Flex/Flex';
4
- import Icon from '../Icon/Icon';
5
- import Link from '../Link/Link';
4
+ import Icon from '../../Components/Icon/Icon';
5
+ import Link from '../../Components/Link/Link';
6
6
  import './Ribbon.css';
7
7
  import Base from '../Base/Base';
8
8
 
@@ -38,8 +38,8 @@ const Ribbon: React.FunctionComponent<Props> = (props: Props) => {
38
38
  {onRemove && (
39
39
  <Flex>
40
40
  {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
41
- <Link clickable onClick={onRemove}>
42
- <Icon name="CloseSmall" size="1.5rem" />
41
+ <Link as="button" onClick={onRemove}>
42
+ <Icon name="CloseSmall" />
43
43
  </Link>
44
44
  </Flex>
45
45
  )}
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { useMediaQuery } from '../hooks';
3
3
  import Flex, { Props as FlexProps } from '../Flex/Flex';
4
- import Image from '../Image/Image';
5
- import Text from '../Text/Text';
4
+ import Image from '../../Components/Image/Image';
5
+ import Text from '../../Components/Text/Text';
6
6
 
7
7
  export type Props = FlexProps;
8
8
 
@@ -20,19 +20,19 @@ const Status500: React.FunctionComponent<Props> = (props: Props) => {
20
20
  direction={match('65rem') ? 'horizontal' : 'vertical'}
21
21
  gap={match('65rem') ? 'x8' : 'x4'}
22
22
  >
23
- <Text align="middle" size="7" weight="bold">
23
+ <Text align="center" size="7" fontWeight="bold">
24
24
  500
25
25
  </Text>
26
- <Text align="middle" size="2" uppercase weight="bold">
26
+ <Text align="center" size="2" textTransform="uppercase" fontWeight="bold">
27
27
  Something went wrong
28
28
  </Text>
29
29
  </Flex>
30
30
 
31
- <Text align="middle" letterSpacing="x2" margin="x5" size="4">
31
+ <Text align="center" letterSpacing="8" marginY="20" size="4">
32
32
  Everything is under control, we will be back soon. Until then keep refreshing your browser.
33
33
  </Text>
34
34
 
35
- <Image margin="x16" src="https://bitrise-bitkit.s3.us-east-2.amazonaws.com/assets/Status500.svg" />
35
+ <Image marginY="64" src="https://bitrise-bitkit.s3.us-east-2.amazonaws.com/assets/Status500.svg" />
36
36
  </Flex>
37
37
  );
38
38
  };
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import classnames from 'classnames';
3
3
  import Flex from '../Flex/Flex';
4
- import Icon from '../Icon/Icon';
4
+ import Icon from '../../Components/Icon/Icon';
5
5
  import Text, { Props as TextProps } from '../Text/Text';
6
6
  import Visibility from '../Visibility/Visibility';
7
7
  import VisibilityContainer from '../Visibility/VisibilityContainer';
@@ -1,39 +0,0 @@
1
- .Text--size-1 {
2
- font-size: var(--fontSizes-1);
3
- line-height: var(--lineHeights-1);
4
- }
5
-
6
- .Text--size-2 {
7
- font-size: var(--fontSizes-2);
8
- line-height: var(--lineHeights-2);
9
- }
10
-
11
- .Text--size-3 {
12
- font-size: var(--fontSizes-3);
13
- line-height: var(--lineHeights-3);
14
- }
15
-
16
- .Text--size-4 {
17
- font-size: var(--fontSizes-4);
18
- line-height: var(--lineHeights-4);
19
- }
20
-
21
- .Text--size-5 {
22
- font-size: var(--fontSizes-5);
23
- line-height: var(--lineHeights-5);
24
- }
25
-
26
- .Text--size-6 {
27
- font-size: var(--fontSizes-6);
28
- line-height: var(--lineHeights-6);
29
- }
30
-
31
- .Text--size-7 {
32
- font-size: var(--fontSizes-7);
33
- line-height: var(--lineHeights-7);
34
- }
35
-
36
- .Text--size-8 {
37
- font-size: var(--fontSizes-8);
38
- line-height: var(--lineHeights-8);
39
- }
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import classnames from 'classnames';
3
3
  import Flex, { Props as FlexProps } from '../Flex/Flex';
4
- import Icon from '../Icon/Icon';
4
+ import Icon from '../../Components/Icon/Icon';
5
5
  import './Toggle.css';
6
6
 
7
7
  export interface Props extends FlexProps {