@bitrise/bitkit 9.5.0-alpha-15.2 → 9.5.0-alpha-15-2.2

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 (207) hide show
  1. package/.eslintrc.js +2 -1
  2. package/.storybook/main.js +35 -0
  3. package/.storybook/manager.js +6 -0
  4. package/.storybook/preview.tsx +20 -0
  5. package/.storybook/theme.js +7 -0
  6. package/CHANGELOG.md +14 -44
  7. package/package.json +37 -19
  8. package/release.config.js +1 -1
  9. package/site/components/CodeBlock/CodeBlock.css +2 -2
  10. package/site/components/Documentation/Documentation.tsx +56 -53
  11. package/site/components/Root/Root.tsx +1 -1
  12. package/site/index.html +1 -1
  13. package/src/Components/Provider/Provider.tsx +9 -0
  14. package/src/Components/Text/Text.stories.tsx +20 -0
  15. package/src/Components/Text/Text.theme.ts +38 -0
  16. package/src/Components/Text/Text.tsx +72 -0
  17. package/src/Foundations/Colors/Colors.examples.tsx +13 -0
  18. package/src/Foundations/Colors/Colors.stories.mdx +8 -0
  19. package/src/Foundations/Colors/Colors.ts +128 -0
  20. package/src/Foundations/Radii/Radii.examples.tsx +17 -0
  21. package/src/Foundations/Radii/Radii.stories.mdx +8 -0
  22. package/src/Foundations/Radii/Radii.theme.ts +9 -0
  23. package/src/Foundations/Shadows/Shadows.examples.tsx +17 -0
  24. package/src/Foundations/Shadows/Shadows.stories.mdx +8 -0
  25. package/src/Foundations/Shadows/Shadows.ts +9 -0
  26. package/src/Foundations/Sizes/Sizes.examples.tsx +17 -0
  27. package/src/Foundations/Sizes/Sizes.stories.mdx +8 -0
  28. package/src/Foundations/Sizes/Sizes.ts +14 -0
  29. package/src/Foundations/Typography/Typography.examples.tsx +50 -0
  30. package/src/Foundations/Typography/Typography.stories.mdx +14 -0
  31. package/src/Foundations/Typography/Typography.ts +32 -0
  32. package/src/Icon/tsx/IconsAddOns.tsx +5 -4
  33. package/src/Icon/tsx/IconsAddOnsColorTuorqouise.tsx +8 -8
  34. package/src/Icon/tsx/IconsAddOnsColorViolet.tsx +7 -5
  35. package/src/Icon/tsx/IconsAddOnsWhite.tsx +7 -5
  36. package/src/Icon/tsx/IconsApp.tsx +4 -3
  37. package/src/Icon/tsx/IconsArrowBack.tsx +5 -4
  38. package/src/Icon/tsx/IconsArrowDown.tsx +9 -7
  39. package/src/Icon/tsx/IconsArrowForward.tsx +5 -7
  40. package/src/Icon/tsx/IconsArrowQuit.tsx +5 -4
  41. package/src/Icon/tsx/IconsArrowUp.tsx +5 -4
  42. package/src/Icon/tsx/IconsBackArrow.tsx +3 -8
  43. package/src/Icon/tsx/IconsBell.tsx +5 -7
  44. package/src/Icon/tsx/IconsBitbot.tsx +5 -7
  45. package/src/Icon/tsx/IconsBitbotFailed.tsx +6 -5
  46. package/src/Icon/tsx/IconsBitbucket.tsx +10 -14
  47. package/src/Icon/tsx/IconsBitbucketFill.tsx +5 -4
  48. package/src/Icon/tsx/IconsBitriseCertified.tsx +9 -7
  49. package/src/Icon/tsx/IconsBook.tsx +5 -7
  50. package/src/Icon/tsx/IconsBranchBranch.tsx +5 -7
  51. package/src/Icon/tsx/IconsBranchCommit.tsx +5 -4
  52. package/src/Icon/tsx/IconsBranchPull.tsx +5 -7
  53. package/src/Icon/tsx/IconsBranchPush.tsx +9 -7
  54. package/src/Icon/tsx/IconsBranchTag.tsx +5 -7
  55. package/src/Icon/tsx/IconsBug.tsx +4 -3
  56. package/src/Icon/tsx/IconsBuild.tsx +5 -4
  57. package/src/Icon/tsx/IconsBuildstatusAborted.tsx +5 -7
  58. package/src/Icon/tsx/IconsBuildstatusAbortedSolid.tsx +7 -8
  59. package/src/Icon/tsx/IconsBuildstatusFailed.tsx +5 -7
  60. package/src/Icon/tsx/IconsBuildstatusFailedSolid.tsx +7 -8
  61. package/src/Icon/tsx/IconsBuildstatusLoading.tsx +1 -1
  62. package/src/Icon/tsx/IconsBuildstatusLoadingAnimated.tsx +20 -42
  63. package/src/Icon/tsx/IconsBuildstatusLoadingeeehh.tsx +3 -7
  64. package/src/Icon/tsx/IconsBuildstatusLoadingeeehhWhite.tsx +3 -7
  65. package/src/Icon/tsx/IconsBuildstatusNeverbuilt.tsx +6 -7
  66. package/src/Icon/tsx/IconsBuildstatusSuccessful.tsx +6 -10
  67. package/src/Icon/tsx/IconsBuildstatusSuccessfulSolid.tsx +7 -8
  68. package/src/Icon/tsx/IconsCalendar.tsx +5 -7
  69. package/src/Icon/tsx/IconsChain.tsx +5 -7
  70. package/src/Icon/tsx/IconsChangePlan.tsx +5 -4
  71. package/src/Icon/tsx/IconsChat.tsx +5 -4
  72. package/src/Icon/tsx/IconsChatMessage.tsx +5 -7
  73. package/src/Icon/tsx/IconsChevronDown.tsx +3 -8
  74. package/src/Icon/tsx/IconsChevronLeft.tsx +5 -7
  75. package/src/Icon/tsx/IconsChevronRight.tsx +5 -7
  76. package/src/Icon/tsx/IconsChevronUp.tsx +6 -5
  77. package/src/Icon/tsx/IconsClock.tsx +5 -7
  78. package/src/Icon/tsx/IconsCloseSmall.tsx +5 -7
  79. package/src/Icon/tsx/IconsCode.tsx +5 -7
  80. package/src/Icon/tsx/IconsCoffee.tsx +5 -7
  81. package/src/Icon/tsx/IconsConsole.tsx +4 -3
  82. package/src/Icon/tsx/IconsCredit.tsx +11 -9
  83. package/src/Icon/tsx/IconsCreditcard.tsx +7 -8
  84. package/src/Icon/tsx/IconsCrown.tsx +9 -7
  85. package/src/Icon/tsx/IconsDeleteNope.tsx +6 -5
  86. package/src/Icon/tsx/IconsDeployment.tsx +5 -4
  87. package/src/Icon/tsx/IconsDoc.tsx +4 -3
  88. package/src/Icon/tsx/IconsDollars.tsx +5 -7
  89. package/src/Icon/tsx/IconsDownload.tsx +5 -7
  90. package/src/Icon/tsx/IconsDropdownArrows.tsx +5 -7
  91. package/src/Icon/tsx/IconsDudes.tsx +5 -4
  92. package/src/Icon/tsx/IconsDuplicate.tsx +5 -4
  93. package/src/Icon/tsx/IconsEnterprise.tsx +9 -7
  94. package/src/Icon/tsx/IconsErrorGeneral.tsx +7 -8
  95. package/src/Icon/tsx/IconsFileDoc.tsx +5 -7
  96. package/src/Icon/tsx/IconsFilePdf.tsx +5 -7
  97. package/src/Icon/tsx/IconsFilePlist.tsx +5 -7
  98. package/src/Icon/tsx/IconsFileZip.tsx +5 -7
  99. package/src/Icon/tsx/IconsFilter.tsx +5 -7
  100. package/src/Icon/tsx/IconsFlag.tsx +3 -8
  101. package/src/Icon/tsx/IconsFolder.tsx +5 -7
  102. package/src/Icon/tsx/IconsFullscreen.tsx +5 -4
  103. package/src/Icon/tsx/IconsFullscreenExit.tsx +5 -4
  104. package/src/Icon/tsx/IconsGauge.tsx +7 -8
  105. package/src/Icon/tsx/IconsGithub.tsx +5 -4
  106. package/src/Icon/tsx/IconsGitlab.tsx +6 -5
  107. package/src/Icon/tsx/IconsGitlabFill.tsx +5 -4
  108. package/src/Icon/tsx/IconsGlobe.tsx +5 -7
  109. package/src/Icon/tsx/IconsGroup.tsx +5 -4
  110. package/src/Icon/tsx/IconsHeart.tsx +5 -4
  111. package/src/Icon/tsx/IconsHidePassword.tsx +9 -7
  112. package/src/Icon/tsx/IconsHistory.tsx +5 -6
  113. package/src/Icon/tsx/IconsImage.tsx +5 -4
  114. package/src/Icon/tsx/IconsInfo.tsx +5 -4
  115. package/src/Icon/tsx/IconsIntegrations.tsx +5 -4
  116. package/src/Icon/tsx/IconsInteraction.tsx +5 -4
  117. package/src/Icon/tsx/IconsInvoice.tsx +5 -7
  118. package/src/Icon/tsx/IconsJapanese.tsx +6 -5
  119. package/src/Icon/tsx/IconsKey.tsx +5 -4
  120. package/src/Icon/tsx/IconsLaptop.tsx +3 -8
  121. package/src/Icon/tsx/IconsLaptops.tsx +4 -3
  122. package/src/Icon/tsx/IconsLightbulb.tsx +5 -7
  123. package/src/Icon/tsx/IconsLock.tsx +5 -7
  124. package/src/Icon/tsx/IconsLogin.tsx +5 -7
  125. package/src/Icon/tsx/IconsLogout.tsx +5 -7
  126. package/src/Icon/tsx/IconsMagnifier.tsx +5 -7
  127. package/src/Icon/tsx/IconsMail.tsx +5 -7
  128. package/src/Icon/tsx/IconsMenuGrid.tsx +5 -7
  129. package/src/Icon/tsx/IconsMenuHamburger.tsx +3 -8
  130. package/src/Icon/tsx/IconsMessage.tsx +5 -7
  131. package/src/Icon/tsx/IconsMinusClose.tsx +1 -1
  132. package/src/Icon/tsx/IconsMinusRemove.tsx +5 -7
  133. package/src/Icon/tsx/IconsMobile.tsx +5 -7
  134. package/src/Icon/tsx/IconsMonitoring.tsx +5 -4
  135. package/src/Icon/tsx/IconsMore.tsx +5 -7
  136. package/src/Icon/tsx/IconsNoTie.tsx +5 -4
  137. package/src/Icon/tsx/IconsNumero.tsx +5 -7
  138. package/src/Icon/tsx/IconsOpenInBrowser.tsx +5 -7
  139. package/src/Icon/tsx/IconsOverview.tsx +5 -4
  140. package/src/Icon/tsx/IconsOwner.tsx +9 -7
  141. package/src/Icon/tsx/IconsPause.tsx +5 -4
  142. package/src/Icon/tsx/IconsPencil.tsx +7 -8
  143. package/src/Icon/tsx/IconsPercent.tsx +5 -4
  144. package/src/Icon/tsx/IconsPerson.tsx +5 -4
  145. package/src/Icon/tsx/IconsPlatformsAndroid.tsx +5 -7
  146. package/src/Icon/tsx/IconsPlatformsApple.tsx +5 -7
  147. package/src/Icon/tsx/IconsPlatformsCordova.tsx +5 -4
  148. package/src/Icon/tsx/IconsPlatformsFastlane.tsx +5 -4
  149. package/src/Icon/tsx/IconsPlatformsFlutter.tsx +5 -4
  150. package/src/Icon/tsx/IconsPlatformsGo.tsx +4 -3
  151. package/src/Icon/tsx/IconsPlatformsIonic.tsx +5 -4
  152. package/src/Icon/tsx/IconsPlatformsMacos.tsx +5 -4
  153. package/src/Icon/tsx/IconsPlatformsNodejs.tsx +4 -3
  154. package/src/Icon/tsx/IconsPlatformsOther.tsx +11 -9
  155. package/src/Icon/tsx/IconsPlatformsReact.tsx +5 -4
  156. package/src/Icon/tsx/IconsPlatformsXamarin.tsx +5 -4
  157. package/src/Icon/tsx/IconsPlay.tsx +5 -7
  158. package/src/Icon/tsx/IconsPlusAdd.tsx +5 -7
  159. package/src/Icon/tsx/IconsPlusOpen.tsx +2 -5
  160. package/src/Icon/tsx/IconsPower.tsx +2 -4
  161. package/src/Icon/tsx/IconsRefresh.tsx +4 -3
  162. package/src/Icon/tsx/IconsRequest.tsx +5 -4
  163. package/src/Icon/tsx/IconsResponsiveness.tsx +5 -4
  164. package/src/Icon/tsx/IconsSave.tsx +5 -4
  165. package/src/Icon/tsx/IconsSecurityShield.tsx +5 -7
  166. package/src/Icon/tsx/IconsSettings.tsx +5 -7
  167. package/src/Icon/tsx/IconsShip.tsx +5 -4
  168. package/src/Icon/tsx/IconsShowPassword.tsx +5 -7
  169. package/src/Icon/tsx/IconsShuffle.tsx +5 -7
  170. package/src/Icon/tsx/IconsStability.tsx +4 -3
  171. package/src/Icon/tsx/IconsStack.tsx +5 -7
  172. package/src/Icon/tsx/IconsStatus.tsx +5 -7
  173. package/src/Icon/tsx/IconsStepThirdParty.tsx +7 -8
  174. package/src/Icon/tsx/IconsStepUpgrade.tsx +2 -5
  175. package/src/Icon/tsx/IconsStepUpgradeCircle.tsx +2 -2
  176. package/src/Icon/tsx/IconsStepVersionOk.tsx +3 -5
  177. package/src/Icon/tsx/IconsSteps.tsx +5 -4
  178. package/src/Icon/tsx/IconsStepsColorTuorqouise.tsx +3 -7
  179. package/src/Icon/tsx/IconsStepsColorViolet.tsx +3 -7
  180. package/src/Icon/tsx/IconsStepsWhite.tsx +3 -7
  181. package/src/Icon/tsx/IconsStopwatch.tsx +5 -7
  182. package/src/Icon/tsx/IconsSupport.tsx +5 -7
  183. package/src/Icon/tsx/IconsSwitch.tsx +1 -1
  184. package/src/Icon/tsx/IconsTestFailed.tsx +5 -4
  185. package/src/Icon/tsx/IconsTestInconclusive.tsx +5 -4
  186. package/src/Icon/tsx/IconsTestInfo.tsx +5 -4
  187. package/src/Icon/tsx/IconsTestSkipped.tsx +5 -4
  188. package/src/Icon/tsx/IconsTestSuccess.tsx +5 -4
  189. package/src/Icon/tsx/IconsTestWarning.tsx +5 -4
  190. package/src/Icon/tsx/IconsTick.tsx +3 -8
  191. package/src/Icon/tsx/IconsTime.tsx +5 -7
  192. package/src/Icon/tsx/IconsTrace.tsx +5 -4
  193. package/src/Icon/tsx/IconsTrash.tsx +5 -7
  194. package/src/Icon/tsx/IconsTrigger.tsx +5 -7
  195. package/src/Icon/tsx/IconsTwitter.tsx +5 -7
  196. package/src/Icon/tsx/IconsValidateShield.tsx +5 -7
  197. package/src/Icon/tsx/IconsWarning.tsx +5 -7
  198. package/src/Icon/tsx/IconsWebUi.tsx +7 -8
  199. package/src/Icon/tsx/IconsWindow.tsx +5 -7
  200. package/src/Icon/tsx/IconsWorkflow.tsx +5 -7
  201. package/src/Icon/tsx/IconsWorkflowFlow.tsx +5 -7
  202. package/src/Icon/tsx/IconsWow.tsx +4 -3
  203. package/src/Icon/tsx/index.ts +1 -0
  204. package/src/index.ts +1 -2
  205. package/src/theme.ts +39 -0
  206. package/tsconfig.json +5 -2
  207. package/src/root.css +0 -59
package/.eslintrc.js CHANGED
@@ -6,7 +6,7 @@ module.exports = {
6
6
  settings: {
7
7
  'import/internal-regex': '^@/',
8
8
  },
9
- extends: ['plugin:@bitrise/config'],
9
+ extends: ['plugin:@bitrise/config', 'plugin:storybook/recommended'],
10
10
  rules: {
11
11
  /** * Import related rules ** */
12
12
  'import/no-extraneous-dependencies': [
@@ -23,5 +23,6 @@ module.exports = {
23
23
  },
24
24
  ],
25
25
  'react-hooks/exhaustive-deps': 'off',
26
+ 'react/react-in-jsx-scope': 'off',
26
27
  },
27
28
  };
@@ -0,0 +1,35 @@
1
+ const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
2
+
3
+ module.exports = {
4
+ core: {
5
+ builder: 'webpack5',
6
+ },
7
+ stories: [
8
+ "../src/**/*.stories.mdx",
9
+ "../src/**/*.stories.@(js|jsx|ts|tsx)"
10
+ ],
11
+ addons: [
12
+ "@storybook/addon-links",
13
+ "@storybook/addon-essentials",
14
+ "@storybook/addon-interactions"
15
+ ],
16
+ framework: "@storybook/react",
17
+ features: { emotionAlias: false },
18
+ refs: {
19
+ '@chakra-ui/react': { disable: true }
20
+ },
21
+ webpackFinal: async (config) => {
22
+ config.module.rules.push({
23
+ test: /\.mjs$/,
24
+ include: /node_modules/,
25
+ type: 'javascript/auto',
26
+ });
27
+ config.resolve.plugins = [
28
+ ...(config.resolve.plugins || []),
29
+ new TsconfigPathsPlugin({
30
+ extensions: config.resolve.extensions,
31
+ }),
32
+ ];
33
+ return config;
34
+ },
35
+ };
@@ -0,0 +1,6 @@
1
+ import { addons } from '@storybook/addons';
2
+ import theme from './theme';
3
+
4
+ addons.setConfig({
5
+ theme,
6
+ });
@@ -0,0 +1,20 @@
1
+ import Provider from '../src/Components/Provider/Provider';
2
+ import '../site/index.css'
3
+
4
+ export const decorators = [
5
+ (Story) => (
6
+ <Provider>
7
+ <Story />
8
+ </Provider>
9
+ ),
10
+ ];
11
+
12
+ export const parameters = {
13
+ actions: { argTypesRegex: "^on[A-Z].*" },
14
+ controls: {
15
+ matchers: {
16
+ color: /(background|color)$/i,
17
+ date: /Date$/,
18
+ },
19
+ },
20
+ };
@@ -0,0 +1,7 @@
1
+ import { create } from '@storybook/theming';
2
+
3
+ export default create({
4
+ base: 'light',
5
+ brandTitle: 'Bitkit',
6
+ // fontBase: '"TT Norms Pro", sans-serif',
7
+ });
package/CHANGELOG.md CHANGED
@@ -1,61 +1,31 @@
1
- # [9.5.0-alpha-15.2](https://github.com/bitrise-io/bitkit/compare/v9.5.0-alpha-15.1...v9.5.0-alpha-15.2) (2022-04-06)
1
+ # [9.5.0-alpha-15-2.2](https://github.com/bitrise-io/bitkit/compare/v9.5.0-alpha-15-2.1...v9.5.0-alpha-15-2.2) (2022-04-07)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * **build:** add react types to devdeps ([8a81522](https://github.com/bitrise-io/bitkit/commit/8a815228f6ac8dfd07ff04e9425791b9bf1fa44b))
7
- * **build:** fix dependencies ([e4869c4](https://github.com/bitrise-io/bitkit/commit/e4869c44e9e8c8fedfaafee0fead28814871b4ed))
8
- * **build:** set correct version for @types/react ([6ba889c](https://github.com/bitrise-io/bitkit/commit/6ba889ceee89c5600a8c39974625759453072a30))
6
+ * **build:** add @types/react-transition-group ([24e6c6f](https://github.com/bitrise-io/bitkit/commit/24e6c6fa6e1513702b00ff8928c37420616ac32a))
9
7
 
10
- # [9.5.0-alpha-15.1](https://github.com/bitrise-io/bitkit/compare/v9.4.2...v9.5.0-alpha-15.1) (2022-04-05)
8
+ # [9.5.0-alpha-15-2.1](https://github.com/bitrise-io/bitkit/compare/v9.4.3...v9.5.0-alpha-15-2.1) (2022-04-07)
11
9
 
12
10
 
13
11
  ### Bug Fixes
14
12
 
15
- * **build:** allow multiple alpha releases ([9a1d951](https://github.com/bitrise-io/bitkit/commit/9a1d9518274959a13ea64fa882d11ab714102017))
16
- * **build:** trigger new build ([3bc84ae](https://github.com/bitrise-io/bitkit/commit/3bc84aeb266328a72ce3ea55e2e2f0017b463076))
17
- * **build:** trigger new build ([8ce3357](https://github.com/bitrise-io/bitkit/commit/8ce3357d2578d5890e5a1c1da7fc8703c30b69bd))
18
- * **build:** trigger new build ([d7d308a](https://github.com/bitrise-io/bitkit/commit/d7d308a4415086d0207432bf5be5b587c45e3b38))
19
- * **build:** try to add patch release ([b32966e](https://github.com/bitrise-io/bitkit/commit/b32966ebdb0a7eee16e18f51c5cecc02350ff8f6))
20
- * **build:** try without github plugin ([dfb4e83](https://github.com/bitrise-io/bitkit/commit/dfb4e837ee833711f8aafbeb86b52ab1a11cfd78))
21
- * **build:** update ([0d93e7a](https://github.com/bitrise-io/bitkit/commit/0d93e7abed585b6e690332acd227188d97b8fffb))
13
+ * **build:** allow multiple alpha releases ([424e89e](https://github.com/bitrise-io/bitkit/commit/424e89e924efee2bb54f13f52eb8c34b83f424f2))
14
+ * **build:** trigger new build ([23c7bd9](https://github.com/bitrise-io/bitkit/commit/23c7bd9b2555e2974c8c81c3fccd5d84f70089cb))
15
+ * **build:** trigger new build ([5131464](https://github.com/bitrise-io/bitkit/commit/51314646d9d31aa1f7389134877ebba0aa2f5407))
16
+ * **build:** trigger new build ([9b430eb](https://github.com/bitrise-io/bitkit/commit/9b430eb3aa269172d74db282a1b2cb9b7f04090c))
17
+ * **build:** try to add patch release ([2038917](https://github.com/bitrise-io/bitkit/commit/203891718c237e4cb2b16d6edeab45fe183f8ad1))
18
+ * **build:** try without github plugin ([0110068](https://github.com/bitrise-io/bitkit/commit/0110068cb1523a48c35554b89a5065f4194a85bb))
19
+ * **build:** update ([b5fe409](https://github.com/bitrise-io/bitkit/commit/b5fe40985b6e54eb27a492b5b67cb363b60811e1))
20
+ * **build:** update yarn.lock ([aa069c2](https://github.com/bitrise-io/bitkit/commit/aa069c279dd0be22626b0cedfe74f58da4423d60))
22
21
 
23
22
 
24
23
  ### Features
25
24
 
26
- * **build:** no build ([e34ff4b](https://github.com/bitrise-io/bitkit/commit/e34ff4bd2e62f5313fd30066c820936c9dd3bdda))
27
- * **build:** update ([6d0a97a](https://github.com/bitrise-io/bitkit/commit/6d0a97a99457b583c3a0e7cc543e9e4398f66924))
25
+ * **build:** no build ([7e1a4ff](https://github.com/bitrise-io/bitkit/commit/7e1a4ff37622d794c60514f4612ccbb762812294))
26
+ * **build:** update ([e00f75e](https://github.com/bitrise-io/bitkit/commit/e00f75ed0a25ea9690e92fc750d188e851aec497))
28
27
 
29
- # [9.5.0-alpha.1](https://github.com/bitrise-io/bitkit/compare/v9.4.2...v9.5.0-alpha.1) (2022-04-05)
30
-
31
-
32
- ### Bug Fixes
33
-
34
- * **build:** trigger new build ([3bc84ae](https://github.com/bitrise-io/bitkit/commit/3bc84aeb266328a72ce3ea55e2e2f0017b463076))
35
- * **build:** trigger new build ([8ce3357](https://github.com/bitrise-io/bitkit/commit/8ce3357d2578d5890e5a1c1da7fc8703c30b69bd))
36
- * **build:** trigger new build ([d7d308a](https://github.com/bitrise-io/bitkit/commit/d7d308a4415086d0207432bf5be5b587c45e3b38))
37
- * **build:** try without github plugin ([dfb4e83](https://github.com/bitrise-io/bitkit/commit/dfb4e837ee833711f8aafbeb86b52ab1a11cfd78))
38
- * **build:** update ([0d93e7a](https://github.com/bitrise-io/bitkit/commit/0d93e7abed585b6e690332acd227188d97b8fffb))
39
-
40
-
41
- ### Features
42
-
43
- * **build:** no build ([e34ff4b](https://github.com/bitrise-io/bitkit/commit/e34ff4bd2e62f5313fd30066c820936c9dd3bdda))
44
-
45
- # [9.5.0-alpha.1](https://github.com/bitrise-io/bitkit/compare/v9.4.2...v9.5.0-alpha.1) (2022-04-05)
46
-
47
-
48
- ### Bug Fixes
49
-
50
- * **build:** trigger new build ([3bc84ae](https://github.com/bitrise-io/bitkit/commit/3bc84aeb266328a72ce3ea55e2e2f0017b463076))
51
- * **build:** trigger new build ([8ce3357](https://github.com/bitrise-io/bitkit/commit/8ce3357d2578d5890e5a1c1da7fc8703c30b69bd))
52
- * **build:** trigger new build ([d7d308a](https://github.com/bitrise-io/bitkit/commit/d7d308a4415086d0207432bf5be5b587c45e3b38))
53
- * **build:** try without github plugin ([dfb4e83](https://github.com/bitrise-io/bitkit/commit/dfb4e837ee833711f8aafbeb86b52ab1a11cfd78))
54
-
55
-
56
- ### Features
57
-
58
- * **build:** no build ([e34ff4b](https://github.com/bitrise-io/bitkit/commit/e34ff4bd2e62f5313fd30066c820936c9dd3bdda))
28
+ ## [9.4.3](https://github.com/bitrise-io/bitkit/compare/v9.4.2...v9.4.3) (2022-04-07)
59
29
 
60
30
  ## [9.4.2](https://github.com/bitrise-io/bitkit/compare/v9.4.1...v9.4.2) (2022-03-30)
61
31
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "9.5.0-alpha-15.2",
4
+ "version": "9.5.0-alpha-15-2.2",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -17,20 +17,25 @@
17
17
  "start:docs": "ts-node ./scripts/build-docs-watch",
18
18
  "start:site": "parcel serve site/index.html --port 4001 -d dist --no-cache",
19
19
  "start:icons": "chokidar src/Icon/svg/** -c \"yarn svgr {path} && yarn lint:fix-icons\"",
20
- "test": "tsc --noEmit -p src && jest ./src"
20
+ "test": "jest ./src",
21
+ "storybook": "start-storybook -p 6006",
22
+ "build-storybook": "build-storybook"
21
23
  },
22
24
  "alias": {
23
- "@bitrise/bitkit": "./src"
25
+ "@bitrise/bitkit": "./src",
26
+ "framer-motion": "./node_modules/framer-motion/dist/cjs"
24
27
  },
25
28
  "dependencies": {
29
+ "@chakra-ui/react": "^1.8.7",
30
+ "@emotion/react": "^11.9.0",
31
+ "@emotion/styled": "^11.8.1",
26
32
  "@juggle/resize-observer": "^3.3.1",
27
- "@popperjs/core": "^2.11.4",
28
- "@types/luxon": "^2.3.1",
33
+ "@popperjs/core": "^2.11.5",
29
34
  "@types/react-transition-group": "^4.4.4",
30
35
  "classnames": "^2.3.1",
31
36
  "clipboard": "^2.0.10",
37
+ "framer-motion": "^6.2.9",
32
38
  "luxon": "^2.3.1",
33
- "normalize.css": "^8.0.1",
34
39
  "react-popper": "^2.2.5",
35
40
  "react-transition-group": "^4.4.2"
36
41
  },
@@ -39,13 +44,23 @@
39
44
  "react-dom": "^17.0.2"
40
45
  },
41
46
  "devDependencies": {
47
+ "@babel/core": "^7.17.8",
42
48
  "@bitrise/eslint-plugin": "^2.1.0",
43
49
  "@commitlint/cli": "^16.2.3",
44
50
  "@commitlint/config-conventional": "^16.2.1",
45
- "@gkz/ast-types": "^0.14.4",
46
51
  "@semantic-release/changelog": "^6.0.1",
47
52
  "@semantic-release/commit-analyzer": "^9.0.2",
48
53
  "@semantic-release/git": "^10.0.1",
54
+ "@storybook/addon-actions": "^6.4.20",
55
+ "@storybook/addon-essentials": "^6.4.20",
56
+ "@storybook/addon-interactions": "^6.4.20",
57
+ "@storybook/addon-links": "^6.4.20",
58
+ "@storybook/addons": "^6.4.20",
59
+ "@storybook/builder-webpack5": "^6.4.20",
60
+ "@storybook/manager-webpack5": "^6.4.20",
61
+ "@storybook/react": "^6.4.20",
62
+ "@storybook/testing-library": "^0.0.9",
63
+ "@storybook/theming": "^6.4.20",
49
64
  "@svgr/cli": "^6.2.1",
50
65
  "@types/cheerio": "^0.22.31",
51
66
  "@types/clipboard": "^2.0.1",
@@ -53,29 +68,33 @@
53
68
  "@types/jest": "^27.4.1",
54
69
  "@types/lodash.sample": "^4.2.6",
55
70
  "@types/lodash.shuffle": "^4.2.6",
71
+ "@types/luxon": "^2.3.1",
56
72
  "@types/prismjs": "^1.26.0",
57
- "@types/react": "17.0.40",
73
+ "@types/react": "17.0.43",
58
74
  "@types/react-dom": "^17.0.14",
59
75
  "@types/react-router": "^5.1.18",
60
76
  "@types/react-router-dom": "^5.3.3",
61
- "@types/react-transition-group": "^4.4.4",
62
- "@typescript-eslint/eslint-plugin": "^5.17.0",
63
- "@typescript-eslint/parser": "^5.17.0",
77
+ "@types/vfile-message": "^2.0.0",
78
+ "@typescript-eslint/eslint-plugin": "^5.18.0",
79
+ "@typescript-eslint/parser": "^5.18.0",
64
80
  "@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
65
81
  "autoprefixer": "^9.8.8",
66
82
  "babel-eslint": "^10.0.1",
83
+ "babel-loader": "^8.2.4",
84
+ "babel-plugin-polyfill-corejs2": "^0.3.1",
67
85
  "chokidar-cli": "^3.0.0",
68
- "concurrently": "^7.0.0",
86
+ "concurrently": "^7.1.0",
69
87
  "enzyme": "^3.11.0",
70
88
  "enzyme-to-json": "^3.6.2",
71
89
  "eslint": "^8.12.0",
72
- "eslint-plugin-import": "^2.25.4",
90
+ "eslint-plugin-import": "^2.26.0",
73
91
  "eslint-plugin-jest": "^26.1.3",
74
92
  "eslint-plugin-jsx-a11y": "^6.5.1",
75
93
  "eslint-plugin-prettier": "^4.0.0",
76
94
  "eslint-plugin-react": "^7.29.4",
77
95
  "eslint-plugin-react-hooks": "^4.4.0",
78
- "eslint-plugin-testing-library": "^5.1.0",
96
+ "eslint-plugin-storybook": "^0.5.7",
97
+ "eslint-plugin-testing-library": "^5.2.1",
79
98
  "fscreen": "^1.2.0",
80
99
  "husky": "^7.0.4",
81
100
  "identity-obj-proxy": "^3.0.0",
@@ -87,7 +106,7 @@
87
106
  "parcel-bundler": "^1.12.0",
88
107
  "postcss-cli": "^6.1.3",
89
108
  "postcss-preset-env": "^6.7.1",
90
- "prettier": "^2.6.1",
109
+ "prettier": "^2.6.2",
91
110
  "prismjs": "^1.27.0",
92
111
  "react": "^17.0.2",
93
112
  "react-docgen": "5.4.0",
@@ -100,7 +119,9 @@
100
119
  "superstatic": "^7.1.0",
101
120
  "ts-jest": "^27.1.4",
102
121
  "ts-node": "^10.7.0",
103
- "typescript": "^4.6.3"
122
+ "tsconfig-paths-webpack-plugin": "^3.5.2",
123
+ "typescript": "^4.6.3",
124
+ "webpack": "^5.71.0"
104
125
  },
105
126
  "publishConfig": {
106
127
  "access": "public"
@@ -115,8 +136,5 @@
115
136
  "transform": {
116
137
  "\\.tsx?$": "ts-jest"
117
138
  }
118
- },
119
- "resolutions": {
120
- "**/ast-types": "npm:@gkz/ast-types"
121
139
  }
122
140
  }
package/release.config.js CHANGED
@@ -16,7 +16,7 @@ module.exports = {
16
16
  ],
17
17
  '@semantic-release/release-notes-generator',
18
18
  '@semantic-release/npm',
19
- // '@semantic-release/github',
19
+ '@semantic-release/github',
20
20
  ],
21
21
  verifyConditions: ['@semantic-release/changelog', '@semantic-release/npm', '@semantic-release/git'],
22
22
  prepare: [
@@ -7,9 +7,9 @@ pre[class*='language-'] {
7
7
  pre[class*='language-'],
8
8
  code[class*='language-'] {
9
9
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
10
- font-size: var(--font-size--2);
10
+ font-size: var(--fontSizes-2);
11
11
  text-align: left;
12
- line-height: var(--line-height--2);
12
+ line-height: var(--lineHeights-2);
13
13
  white-space: pre;
14
14
  word-spacing: normal;
15
15
  hyphens: none;
@@ -4,6 +4,7 @@ import * as React from 'react';
4
4
  import { RouteComponentProps } from 'react-router';
5
5
  import { Redirect, Route, Switch } from 'react-router-dom';
6
6
  import { Flex, Text } from '@bitrise/bitkit';
7
+ import Provider from '../../../src/Components/Provider/Provider';
7
8
  import documentation from '../../../documentation.json';
8
9
  import SideMenu from '../SideMenu/SideMenu';
9
10
  import SideMenuItem from '../SideMenu/SideMenuItem';
@@ -230,69 +231,71 @@ const Documentation = (props: RouteComponentProps) => {
230
231
  }, [location]);
231
232
 
232
233
  return (
233
- <Flex direction="horizontal" gap="x12" grow>
234
- <Flex>
235
- <Flex margin="x6">
236
- <Text margin="x2">Materials</Text>
234
+ <Provider>
235
+ <Flex direction="horizontal" gap="x12" grow>
236
+ <Flex>
237
+ <Flex margin="x6">
238
+ <Text margin="x2">Materials</Text>
237
239
 
238
- <Route path="/documentation/materials/colors">
239
- {({ match }) => <SideMenu active={!!match} name="Colors" to="/documentation/materials/colors" />}
240
- </Route>
240
+ <Route path="/documentation/materials/colors">
241
+ {({ match }) => <SideMenu active={!!match} name="Colors" to="/documentation/materials/colors" />}
242
+ </Route>
241
243
 
242
- <Route path="/documentation/materials/icons">
243
- {({ match }) => <SideMenu active={!!match} name="Icons" to="/documentation/materials/icons" />}
244
- </Route>
244
+ <Route path="/documentation/materials/icons">
245
+ {({ match }) => <SideMenu active={!!match} name="Icons" to="/documentation/materials/icons" />}
246
+ </Route>
245
247
 
246
- <Route path="/documentation/materials/typography">
247
- {({ match }) => <SideMenu active={!!match} name="Typography" to="/documentation/materials/typography" />}
248
- </Route>
249
- </Flex>
248
+ <Route path="/documentation/materials/typography">
249
+ {({ match }) => <SideMenu active={!!match} name="Typography" to="/documentation/materials/typography" />}
250
+ </Route>
251
+ </Flex>
250
252
 
251
- <Flex margin="x6">
252
- <Text margin="x2">Components</Text>
253
+ <Flex margin="x6">
254
+ <Text margin="x2">Components</Text>
253
255
 
254
- {Object.entries(SectionMap).map(([sectionName, { components }]) => (
255
- <Route key={sectionName} path={`/documentation/components/${sectionName}`}>
256
- {({ match }) => (
257
- <SideMenu active={!!match} name={sectionName} to={`/documentation/components/${sectionName}`}>
258
- {components.map((c) => {
259
- if (!c) {
260
- return;
261
- }
262
- const { displayName } = c;
263
- return (
264
- <Route key={displayName} path={`/documentation/components/${sectionName}#${displayName}`}>
265
- {({ match: m }) => (
266
- <SideMenuItem active={!!m} to={`/documentation/components/${sectionName}#${displayName}`}>
267
- {displayName}
268
- </SideMenuItem>
269
- )}
270
- </Route>
271
- );
272
- })}
273
- </SideMenu>
274
- )}
275
- </Route>
276
- ))}
256
+ {Object.entries(SectionMap).map(([sectionName, { components }]) => (
257
+ <Route key={sectionName} path={`/documentation/components/${sectionName}`}>
258
+ {({ match }) => (
259
+ <SideMenu active={!!match} name={sectionName} to={`/documentation/components/${sectionName}`}>
260
+ {components.map((c) => {
261
+ if (!c) {
262
+ return;
263
+ }
264
+ const { displayName } = c;
265
+ return (
266
+ <Route key={displayName} path={`/documentation/components/${sectionName}#${displayName}`}>
267
+ {({ match: m }) => (
268
+ <SideMenuItem active={!!m} to={`/documentation/components/${sectionName}#${displayName}`}>
269
+ {displayName}
270
+ </SideMenuItem>
271
+ )}
272
+ </Route>
273
+ );
274
+ })}
275
+ </SideMenu>
276
+ )}
277
+ </Route>
278
+ ))}
279
+ </Flex>
277
280
  </Flex>
278
- </Flex>
279
281
 
280
- <Flex grow initial="none">
281
- <Switch>
282
- <Route path="/documentation/404" render={() => null} />
283
- <Route
284
- path="/documentation/components/:sectionName"
285
- render={(properties) => <ComponentDocumentationPage {...properties} map={SectionMap} />}
286
- />
282
+ <Flex grow initial="none">
283
+ <Switch>
284
+ <Route path="/documentation/404" render={() => null} />
285
+ <Route
286
+ path="/documentation/components/:sectionName"
287
+ render={(properties) => <ComponentDocumentationPage {...properties} map={SectionMap} />}
288
+ />
287
289
 
288
- <Route component={SectionColors} path="/documentation/materials/colors" />
289
- <Route component={SectionIcons} path="/documentation/materials/icons" />
290
- <Route component={SectionTypography} path="/documentation/materials/typography" />
290
+ <Route component={SectionColors} path="/documentation/materials/colors" />
291
+ <Route component={SectionIcons} path="/documentation/materials/icons" />
292
+ <Route component={SectionTypography} path="/documentation/materials/typography" />
291
293
 
292
- <Redirect to="/documentation/materials/colors" />
293
- </Switch>
294
+ <Redirect to="/documentation/materials/colors" />
295
+ </Switch>
296
+ </Flex>
294
297
  </Flex>
295
- </Flex>
298
+ </Provider>
296
299
  );
297
300
  };
298
301
 
@@ -62,7 +62,7 @@ const Root = () => {
62
62
 
63
63
  <Flex>
64
64
  <Text letterSpacing="x5" size="1" uppercase>
65
- in London & Budapest
65
+ in Budapest
66
66
  </Text>
67
67
  </Flex>
68
68
  </Flex>
package/site/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charSet="utf-8" />
5
5
  <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
6
6
  <meta content="width=device-width,initial-scale=1" name="viewport">
7
- <title>Bitrise - Bitkit</title>
7
+ <title>Bitkit legacy</title>
8
8
  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,600&display=swap" rel="stylesheet">
9
9
  <link rel="shortcut icon" href="./assets/icons/favicon-32x32.png">
10
10
  <link rel="icon" type="image/png" href="./assets/icons/favicon-32x32.png">
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { ChakraProvider, ChakraProviderProps } from '@chakra-ui/react';
3
+ import theme from '../../theme';
4
+
5
+ const Provider = ({ children }: ChakraProviderProps) => {
6
+ return <ChakraProvider theme={theme}>{children}</ChakraProvider>;
7
+ };
8
+
9
+ export default Provider;
@@ -0,0 +1,20 @@
1
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
2
+ import Text from './Text';
3
+
4
+ export default {
5
+ title: 'Components/Text',
6
+ component: Text,
7
+ } as ComponentMeta<typeof Text>;
8
+
9
+ const Template: ComponentStory<typeof Text> = ({ ...props }) => <Text {...props} />;
10
+
11
+ export const WithProps = Template.bind({});
12
+ WithProps.args = {
13
+ align: 'left',
14
+ className: '',
15
+ children: 'The quick brown fox jumps over the lazy dog.',
16
+ fontWeight: 'normal',
17
+ letterSpacing: 'normal',
18
+ textTransform: 'none',
19
+ ...Text.defaultProps,
20
+ };
@@ -0,0 +1,38 @@
1
+ const TextTheme = {
2
+ sizes: {
3
+ 1: {
4
+ fontSize: '1',
5
+ lineHeight: '1',
6
+ },
7
+ 2: {
8
+ fontSize: '2',
9
+ lineHeight: '2',
10
+ },
11
+ 3: {
12
+ fontSize: '3',
13
+ lineHeight: '3',
14
+ },
15
+ 4: {
16
+ fontSize: '4',
17
+ lineHeight: '4',
18
+ },
19
+ 5: {
20
+ fontSize: '5',
21
+ lineHeight: '5',
22
+ },
23
+ 6: {
24
+ fontSize: '6',
25
+ lineHeight: '6',
26
+ },
27
+ 7: {
28
+ fontSize: '7',
29
+ lineHeight: '7',
30
+ },
31
+ 8: {
32
+ fontSize: '8',
33
+ lineHeight: '8',
34
+ },
35
+ },
36
+ };
37
+
38
+ export default TextTheme;
@@ -0,0 +1,72 @@
1
+ import { Text as ChakraText, TextProps } from '@chakra-ui/react';
2
+
3
+ type TextTags =
4
+ | 'a'
5
+ | 'abbr'
6
+ | 'bdi'
7
+ | 'bdo'
8
+ | 'blockquote'
9
+ | 'cite'
10
+ | 'data'
11
+ | 'dd'
12
+ | 'dfn'
13
+ | 'dt'
14
+ | 'em'
15
+ | 'figcaption'
16
+ | 'kbd'
17
+ | 'li'
18
+ | 'mark'
19
+ | 'p'
20
+ | 'pre'
21
+ | 'q'
22
+ | 'samp'
23
+ | 'small'
24
+ | 'span'
25
+ | 'strong'
26
+ | 'sub'
27
+ | 'sup'
28
+ | 'time'
29
+ | 'var';
30
+
31
+ export interface Props {
32
+ align?: 'center' | 'justify' | 'left' | 'right';
33
+ /**
34
+ * Any valid HTML text tag
35
+ */
36
+ as?: TextTags;
37
+ children?: TextProps['children'];
38
+ className?: string;
39
+ /**
40
+ * Font weight
41
+ */
42
+ fontWeight?: 'bold' | 'normal';
43
+ letterSpacing?: TextProps['letterSpacing'];
44
+ /**
45
+ * Size config (https://www.figma.com/file/grik9mTaJ5DfhydhWhXdP5/Bitkit-Foundations?node-id=211%3A12)
46
+ */
47
+ size?: '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8';
48
+ sx?: TextProps['sx'];
49
+ textTransform?: 'capitalize' | 'lowercase' | 'none' | 'uppercase';
50
+ }
51
+
52
+ /**
53
+ * Basic `Text` component
54
+ */
55
+ const Text = (props: Props) => {
56
+ const { fontWeight, size, textTransform } = props;
57
+ const properties: TextProps = { ...props };
58
+ if (size === '1' && (!textTransform || textTransform === 'none')) {
59
+ properties.textTransform = 'uppercase';
60
+ }
61
+ if (!fontWeight && (size === '5' || size === '6' || size === '7' || size === '8')) {
62
+ properties.fontWeight = 'bold';
63
+ }
64
+ return <ChakraText {...properties} />;
65
+ };
66
+
67
+ Text.defaultProps = {
68
+ as: 'p',
69
+ size: '3',
70
+ } as Props;
71
+
72
+ export default Text;
@@ -0,0 +1,13 @@
1
+ // eslint-disable-next-line import/no-extraneous-dependencies
2
+ import { ColorPalette, ColorItem } from '@storybook/addon-docs';
3
+ import colors from './Colors';
4
+
5
+ export const Palette = () => (
6
+ <ColorPalette>
7
+ {Object.keys(colors).map((key) => (
8
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
9
+ /* @ts-ignore */
10
+ <ColorItem title={key.toUpperCase()} subtitle="subtitle" colors={colors[key]} key={key} />
11
+ ))}
12
+ </ColorPalette>
13
+ );
@@ -0,0 +1,8 @@
1
+ import { Meta } from '@storybook/addon-docs/blocks';
2
+ import { Palette } from './Colors.examples';
3
+
4
+ <Meta title="Foundations/Colors" />
5
+
6
+ # Colors
7
+
8
+ <Palette />