@bitrise/bitkit 9.5.2 → 9.5.3-alpha-src.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 (105) hide show
  1. package/package.json +4 -1
  2. package/src/tsconfig.tsbuildinfo +1 -0
  3. package/.browserslistrc +0 -2
  4. package/.editorconfig +0 -4
  5. package/.eslint-tsconfig.json +0 -7
  6. package/.eslintrc.js +0 -28
  7. package/.husky/commit-msg +0 -4
  8. package/.nvmrc +0 -1
  9. package/.storybook/main.js +0 -35
  10. package/.storybook/manager.js +0 -6
  11. package/.storybook/preview.tsx +0 -20
  12. package/.storybook/theme.js +0 -7
  13. package/.stylelintignore +0 -2
  14. package/.stylelintrc +0 -287
  15. package/.svgrrc.js +0 -52
  16. package/.tool-versions +0 -1
  17. package/@types/@bitrise/bitkit.ts +0 -1
  18. package/@types/react-docgen.ts +0 -119
  19. package/CHANGELOG.md +0 -996
  20. package/CONTRIBUTING.md +0 -79
  21. package/FAQ.md +0 -19
  22. package/bitrise.yml +0 -66
  23. package/commitlint.config.js +0 -10
  24. package/jest.setup.js +0 -36
  25. package/netlify.toml +0 -42
  26. package/postcss.config.js +0 -16
  27. package/release.config.js +0 -32
  28. package/renovate.json +0 -6
  29. package/scripts/build-docs-watch.ts +0 -7
  30. package/scripts/build-docs.ts +0 -59
  31. package/site/assets/fonts/TT_Norms_Pro_Bold.woff +0 -0
  32. package/site/assets/fonts/TT_Norms_Pro_Normal.woff +0 -0
  33. package/site/assets/icons/favicon-32x32.png +0 -0
  34. package/site/assets/images/app_icon.jpg +0 -0
  35. package/site/assets/images/status-checks.png +0 -0
  36. package/site/components/CodeBlock/CodeBlock.css +0 -87
  37. package/site/components/CodeBlock/CodeBlock.tsx +0 -35
  38. package/site/components/Documentation/ComponentDocumentationPage.tsx +0 -150
  39. package/site/components/Documentation/Components/SectionAddonBeam.tsx +0 -47
  40. package/site/components/Documentation/Components/SectionAddonBeamSandbox.tsx +0 -32
  41. package/site/components/Documentation/Components/SectionAddonFooter.tsx +0 -22
  42. package/site/components/Documentation/Components/SectionAppear.tsx +0 -59
  43. package/site/components/Documentation/Components/SectionAvatar.tsx +0 -50
  44. package/site/components/Documentation/Components/SectionBadge.tsx +0 -38
  45. package/site/components/Documentation/Components/SectionBase.tsx +0 -17
  46. package/site/components/Documentation/Components/SectionButtons.tsx +0 -361
  47. package/site/components/Documentation/Components/SectionCards.tsx +0 -276
  48. package/site/components/Documentation/Components/SectionCheckbox.tsx +0 -38
  49. package/site/components/Documentation/Components/SectionDatePicker.tsx +0 -82
  50. package/site/components/Documentation/Components/SectionDivider.tsx +0 -31
  51. package/site/components/Documentation/Components/SectionDot.tsx +0 -27
  52. package/site/components/Documentation/Components/SectionDropdowns.tsx +0 -388
  53. package/site/components/Documentation/Components/SectionExpand.tsx +0 -143
  54. package/site/components/Documentation/Components/SectionFlex.tsx +0 -33
  55. package/site/components/Documentation/Components/SectionFormElements.tsx +0 -187
  56. package/site/components/Documentation/Components/SectionGrid.tsx +0 -125
  57. package/site/components/Documentation/Components/SectionHamburger.tsx +0 -34
  58. package/site/components/Documentation/Components/SectionIcons.tsx +0 -30
  59. package/site/components/Documentation/Components/SectionInputs.tsx +0 -89
  60. package/site/components/Documentation/Components/SectionList.tsx +0 -26
  61. package/site/components/Documentation/Components/SectionModals.tsx +0 -224
  62. package/site/components/Documentation/Components/SectionNotification.tsx +0 -38
  63. package/site/components/Documentation/Components/SectionPlacement.tsx +0 -167
  64. package/site/components/Documentation/Components/SectionProgress.tsx +0 -149
  65. package/site/components/Documentation/Components/SectionRadioButton.tsx +0 -38
  66. package/site/components/Documentation/Components/SectionRibbon.tsx +0 -33
  67. package/site/components/Documentation/Components/SectionRibbonSandbox.tsx +0 -17
  68. package/site/components/Documentation/Components/SectionSidebar.tsx +0 -125
  69. package/site/components/Documentation/Components/SectionSkeleton.tsx +0 -99
  70. package/site/components/Documentation/Components/SectionStatus.tsx +0 -53
  71. package/site/components/Documentation/Components/SectionStatusSandbox404.tsx +0 -42
  72. package/site/components/Documentation/Components/SectionStatusSandbox500.tsx +0 -13
  73. package/site/components/Documentation/Components/SectionTable.tsx +0 -83
  74. package/site/components/Documentation/Components/SectionTabs.tsx +0 -25
  75. package/site/components/Documentation/Components/SectionText.tsx +0 -34
  76. package/site/components/Documentation/Components/SectionTextarea.tsx +0 -43
  77. package/site/components/Documentation/Components/SectionToggle.tsx +0 -50
  78. package/site/components/Documentation/Components/SectionTooltips.tsx +0 -50
  79. package/site/components/Documentation/Documentation.tsx +0 -302
  80. package/site/components/Documentation/Materials/SectionColors.css +0 -33
  81. package/site/components/Documentation/Materials/SectionColors.tsx +0 -197
  82. package/site/components/Documentation/Materials/SectionIcons.tsx +0 -106
  83. package/site/components/Documentation/Materials/SectionTypography.tsx +0 -143
  84. package/site/components/Page/Page.tsx +0 -8
  85. package/site/components/Page/PageTitle.tsx +0 -8
  86. package/site/components/PropsTable/PropsTable.tsx +0 -35
  87. package/site/components/PropsTable/PropsTableCellUnion.tsx +0 -29
  88. package/site/components/PropsTable/PropsTableRow.tsx +0 -55
  89. package/site/components/Root/Root.tsx +0 -89
  90. package/site/components/Root/index.tsx +0 -4
  91. package/site/components/Sandbox/Sandbox.tsx +0 -19
  92. package/site/components/Sandbox/SandboxFrame.css +0 -20
  93. package/site/components/Sandbox/SandboxFrame.tsx +0 -77
  94. package/site/components/Section/Section.tsx +0 -8
  95. package/site/components/Section/SectionSubTitle.tsx +0 -8
  96. package/site/components/Section/SectionTitle.tsx +0 -8
  97. package/site/components/SideMenu/SideMenu.css +0 -39
  98. package/site/components/SideMenu/SideMenu.tsx +0 -53
  99. package/site/components/SideMenu/SideMenuItem.tsx +0 -34
  100. package/site/components/Window/Window.tsx +0 -62
  101. package/site/index.css +0 -11
  102. package/site/index.html +0 -16
  103. package/site/index.tsx +0 -16
  104. package/superstatic.json +0 -13
  105. package/tsconfig.json +0 -25
package/.editorconfig DELETED
@@ -1,4 +0,0 @@
1
- end_of_line = lf
2
- indent_style = space
3
- indent_size = 2
4
- insert_final_newline = true
@@ -1,7 +0,0 @@
1
- {
2
- "allowJs": true,
3
- "compilerOptions": {
4
- "noEmit": true
5
- },
6
- "include": [".eslintrc.js"]
7
- }
package/.eslintrc.js DELETED
@@ -1,28 +0,0 @@
1
- module.exports = {
2
- parserOptions: {
3
- project: ['./tsconfig.json', './.eslint-tsconfig.json'],
4
- tsconfigRootDir: __dirname,
5
- },
6
- settings: {
7
- 'import/internal-regex': '^@/',
8
- },
9
- extends: ['plugin:@bitrise/config', 'plugin:storybook/recommended'],
10
- rules: {
11
- /** * Import related rules ** */
12
- 'import/no-extraneous-dependencies': [
13
- 'error',
14
- {
15
- devDependencies: [
16
- '**/*.stories.tsx',
17
- '**/*.test.tsx',
18
- 'jest.setup.js',
19
- 'scripts/*.ts',
20
- 'site/**/*.*',
21
- 'postcss.config.js',
22
- ],
23
- },
24
- ],
25
- 'react-hooks/exhaustive-deps': 'off',
26
- 'react/react-in-jsx-scope': 'off',
27
- },
28
- };
package/.husky/commit-msg DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- npx commitlint --edit ""
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- v16.14.2
@@ -1,35 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
1
- import { addons } from '@storybook/addons';
2
- import theme from './theme';
3
-
4
- addons.setConfig({
5
- theme,
6
- });
@@ -1,20 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
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/.stylelintignore DELETED
@@ -1,2 +0,0 @@
1
- **/*.tsx
2
- **/*.ts
package/.stylelintrc DELETED
@@ -1,287 +0,0 @@
1
- {
2
- "plugins": [
3
- "stylelint-order"
4
- ],
5
- "rules": {
6
- "at-rule-name-case": "lower",
7
- "at-rule-name-space-after": "always",
8
- "at-rule-no-vendor-prefix": true,
9
- "at-rule-semicolon-newline-after": "always",
10
- "block-closing-brace-empty-line-before": "never",
11
- "block-closing-brace-newline-after": "always",
12
- "block-closing-brace-newline-before": "always-multi-line",
13
- "block-closing-brace-space-before": "always-single-line",
14
- "block-no-empty": true,
15
- "block-opening-brace-newline-after": "always-multi-line",
16
- "block-opening-brace-space-after": "always-single-line",
17
- "color-hex-case": "upper",
18
- "color-hex-length": "long",
19
- "color-named": "never",
20
- "color-no-invalid-hex": true,
21
- "comment-empty-line-before": ["always", {
22
- "except": [ "first-nested" ],
23
- "ignore": [ "after-comment", "stylelint-commands" ]
24
- }],
25
- "comment-no-empty": true,
26
- "comment-whitespace-inside": "always",
27
- "declaration-bang-space-after": "never",
28
- "declaration-bang-space-before": "always",
29
- "declaration-block-no-duplicate-properties": [true, {
30
- "ignore": "consecutive-duplicates-with-different-values"
31
- }],
32
- "declaration-block-no-shorthand-property-overrides": true,
33
- "declaration-block-semicolon-newline-after": "always-multi-line",
34
- "declaration-block-semicolon-space-before": "never",
35
- "declaration-block-single-line-max-declarations": 2,
36
- "declaration-block-trailing-semicolon": "always",
37
- "declaration-colon-newline-after": "always-multi-line",
38
- "declaration-colon-space-after": "always-single-line",
39
- "declaration-colon-space-before": "never",
40
- "declaration-empty-line-before": "never",
41
- "declaration-no-important": true,
42
- "font-weight-notation": "numeric",
43
- "function-calc-no-unspaced-operator": true,
44
- "function-comma-space-after": "always-single-line",
45
- "function-comma-space-before": "never",
46
- "function-linear-gradient-no-nonstandard-direction": true,
47
- "function-name-case": "lower",
48
- "function-parentheses-space-inside": "never-single-line",
49
- "function-url-scheme-allowed-list": ["data", "/^http/"],
50
- "function-url-quotes": "always",
51
- "function-whitespace-after": "always",
52
- "indentation": 2,
53
- "length-zero-no-unit": true,
54
- "max-empty-lines": 1,
55
- "max-line-length": 110,
56
- "media-feature-colon-space-after": "always",
57
- "media-feature-colon-space-before": "never",
58
- "media-feature-name-case": "lower",
59
- "media-feature-name-no-unknown": true,
60
- "media-feature-name-no-vendor-prefix": true,
61
- "media-feature-parentheses-space-inside": "never",
62
- "media-feature-range-operator-space-after": "always",
63
- "media-feature-range-operator-space-before": "always",
64
- "media-query-list-comma-space-after": "always",
65
- "media-query-list-comma-space-before": "never",
66
- "no-descending-specificity": true,
67
- "no-duplicate-selectors": true,
68
- "no-empty-source": true,
69
- "no-eol-whitespace": true,
70
- "no-extra-semicolons": true,
71
- "no-invalid-double-slash-comments": true,
72
- "no-missing-end-of-source-newline": true,
73
- "number-leading-zero": "always",
74
- "number-no-trailing-zeros": true,
75
- "order/properties-order": [[
76
- "content",
77
-
78
- "display",
79
- "position",
80
- "top",
81
- "right",
82
- "bottom",
83
- "left",
84
-
85
- "flex",
86
- "flex-basis",
87
- "flex-direction",
88
- "flex-flow",
89
- "flex-grow",
90
- "flex-shrink",
91
- "flex-wrap",
92
- "align-content",
93
- "align-items",
94
- "align-self",
95
- "justify-content",
96
- "order",
97
-
98
- "width",
99
- "min-width",
100
- "max-width",
101
-
102
- "height",
103
- "min-height",
104
- "max-height",
105
-
106
- "margin",
107
- "margin-top",
108
- "margin-right",
109
- "margin-bottom",
110
- "margin-left",
111
-
112
- "padding",
113
- "padding-top",
114
- "padding-right",
115
- "padding-bottom",
116
- "padding-left",
117
-
118
- "float",
119
- "clear",
120
-
121
- "columns",
122
- "column-gap",
123
- "column-fill",
124
- "column-rule",
125
- "column-span",
126
- "column-count",
127
- "column-width",
128
-
129
- "transform",
130
- "transform-box",
131
- "transform-origin",
132
- "transform-style",
133
-
134
- "opacity",
135
-
136
- "outline",
137
- "outline-color",
138
- "outline-offset",
139
- "outline-style",
140
- "outline-width",
141
-
142
- "border",
143
- "border-top",
144
- "border-right",
145
- "border-bottom",
146
- "border-left",
147
- "border-width",
148
- "border-top-width",
149
- "border-right-width",
150
- "border-bottom-width",
151
- "border-left-width",
152
- "border-collapse",
153
- "border-spacing",
154
-
155
- "border-style",
156
- "border-top-style",
157
- "border-right-style",
158
- "border-bottom-style",
159
- "border-left-style",
160
-
161
- "border-radius",
162
- "border-top-left-radius",
163
- "border-top-right-radius",
164
- "border-bottom-left-radius",
165
- "border-bottom-right-radius",
166
-
167
- "border-color",
168
- "border-top-color",
169
- "border-right-color",
170
- "border-bottom-color",
171
- "border-left-color",
172
-
173
- "box-shadow",
174
-
175
- "background",
176
- "background-attachment",
177
- "background-clip",
178
- "background-color",
179
- "background-image",
180
- "background-repeat",
181
- "background-position",
182
- "background-size",
183
-
184
- "color",
185
- "fill",
186
- "fill-opacity",
187
- "stroke",
188
- "stroke-dasharray",
189
- "stroke-dashoffset",
190
- "stroke-linecap",
191
- "stroke-linejoin",
192
- "stroke-width",
193
-
194
- "font",
195
- "font-family",
196
- "font-size",
197
- "font-smoothing",
198
- "font-style",
199
- "font-variant",
200
- "font-variant-ligatures",
201
- "font-weight",
202
-
203
- "letter-spacing",
204
- "list-style",
205
-
206
- "text-align",
207
- "text-decoration",
208
- "text-indent",
209
- "text-overflow",
210
- "text-rendering",
211
- "text-shadow",
212
- "text-transform",
213
- "text-wrap",
214
-
215
- "line-height",
216
- "white-space",
217
- "word-spacing",
218
- "cursor",
219
-
220
- "visibility",
221
- "vertical-align",
222
- "overflow",
223
- "overflow-x",
224
- "overflow-y",
225
- "z-index",
226
- "resize",
227
-
228
- "transition",
229
- "transition-property",
230
- "transition-delay",
231
- "transition-duration",
232
- "transition-timing-function",
233
-
234
- "animation",
235
- "animation-name",
236
- "animation-delay",
237
- "animation-direction",
238
- "animation-duration",
239
- "animation-fill-mode",
240
- "animation-iteration-count",
241
- "animation-play-state",
242
- "animation-timing-function"
243
- ], { "unspecified": "bottom" }],
244
- "property-case": "lower",
245
- "property-no-unknown": true,
246
- "property-no-vendor-prefix": true,
247
- "rule-empty-line-before": ["always-multi-line", {
248
- "except": ["first-nested"],
249
- "ignore": ["after-comment", "inside-block"]
250
- }],
251
- "selector-attribute-brackets-space-inside": "never",
252
- "selector-attribute-operator-space-after": "never",
253
- "selector-attribute-operator-space-before": "never",
254
- "selector-attribute-quotes": "always",
255
- "selector-combinator-space-after": "always",
256
- "selector-combinator-space-before": "always",
257
- "selector-descendant-combinator-no-non-space": true,
258
- "selector-list-comma-newline-after": "always",
259
- "selector-list-comma-space-before": "never",
260
- "selector-max-empty-lines": 0,
261
- "selector-max-id": 0,
262
- "selector-max-type": [0, {
263
- "ignore": ["compounded"],
264
- "ignoreTypes": ["html", "body"]
265
- }],
266
- "selector-max-universal": 0,
267
- "selector-no-vendor-prefix": true,
268
- "selector-pseudo-class-case": "lower",
269
- "selector-pseudo-class-no-unknown": true,
270
- "selector-pseudo-class-parentheses-space-inside": "never",
271
- "selector-pseudo-element-case": "lower",
272
- "selector-pseudo-element-colon-notation": "double",
273
- "selector-pseudo-element-no-unknown": true,
274
- "selector-type-case": "lower",
275
- "selector-type-no-unknown": true,
276
- "shorthand-property-no-redundant-values": true,
277
- "string-no-newline": true,
278
- "string-quotes": "single",
279
- "unit-disallowed-list": ["em", "px"],
280
- "unit-case": "lower",
281
- "unit-no-unknown": true,
282
- "value-list-comma-space-after": "always-single-line",
283
- "value-list-comma-space-before": "never",
284
- "value-list-max-empty-lines": 0,
285
- "value-no-vendor-prefix": true
286
- }
287
- }
package/.svgrrc.js DELETED
@@ -1,52 +0,0 @@
1
- const path = require('path');
2
-
3
- module.exports = {
4
- outDir: 'src/Icon/tsx',
5
- typescript: true,
6
- expandProps: 'start',
7
- replaceAttrValues: {
8
- '#492F5C': 'currentColor',
9
- '#351D48': 'currentColor'
10
- },
11
- svgoConfig: {
12
- plugins: [
13
- 'preset-default',
14
- 'removeXMLNS',
15
- 'removeDimensions',
16
- 'prefixIds'
17
- ]
18
- },
19
- indexTemplate: (files) => {
20
- const list = files.map((file) =>
21
- path
22
- .basename(file, path.extname(file))
23
- .replace(/^Icons/, '')
24
- .replace(/\.tsx/, ''));
25
-
26
- const imports = list
27
- .map((name) => `import ${name} from './Icons${name}';`)
28
- .join('\n');
29
-
30
- const types = `export type TypeIconName =\n${list
31
- .map((name) => ` '${name}'`)
32
- .join(' |\n')};`;
33
-
34
- const array = `export const IconList: TypeIconName[] = [\n${list
35
- .map((name) => ` '${name}',`)
36
- .join('\n')}
37
- ];`;
38
-
39
- const map = `export const IconMap: { [key in TypeIconName]: React.FC<React.SVGProps<SVGSVGElement>> } = {\n${list
40
- .map((name) => ` ${name},`)
41
- .join('\n')}
42
- };`;
43
-
44
- return `${imports}\n\n${types}\n\n${array}\n\n${map}\n`;
45
- },
46
- template: ({ componentName, jsx }, { tpl }) => tpl`
47
- // THIS IS AN AUTOGERENATED FILE. DO NOT EDIT IT. CHECK README ON HOW TO MANAGE ICONS INSTEAD.
48
- import * as React from 'react';
49
- const ${componentName} = (props: React.SVGProps<SVGSVGElement>) => ${jsx}
50
- export default ${componentName}
51
- `,
52
- }
package/.tool-versions DELETED
@@ -1 +0,0 @@
1
- nodejs 16.14.2
@@ -1 +0,0 @@
1
- export * from '../../src';
@@ -1,119 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
- /* eslint-disable no-unused-vars */
3
- /* eslint-disable @typescript-eslint/no-explicit-any */
4
-
5
- declare module 'react-docgen' {
6
- interface DocumentationObject {
7
- description: string;
8
- displayName: string;
9
- props?: { [key: string]: PropDescriptor };
10
- context?: { [key: string]: PropDescriptor };
11
- childContext?: { [key: string]: PropDescriptor };
12
- composes?: string[];
13
- }
14
-
15
- interface PropDescriptor {
16
- type?: PropTypeDescriptor;
17
- flowType?: FlowTypeDescriptor;
18
- tsType?: FlowTypeDescriptor;
19
- required?: boolean;
20
- defaultValue?: any;
21
- description?: string;
22
- }
23
-
24
- type PropTypeDescriptorName =
25
- 'arrayOf' |
26
- 'custom' |
27
- 'enum' |
28
- 'array' |
29
- 'bool' |
30
- 'func' |
31
- 'number' |
32
- 'object' |
33
- 'string' |
34
- 'any' |
35
- 'element' |
36
- 'node' |
37
- 'symbol' |
38
- 'objectOf' |
39
- 'shape' |
40
- 'exact' |
41
- 'union' |
42
- 'elementType';
43
-
44
- type FlowTypeName =
45
- 'literal' |
46
- 'union' |
47
- 'signiture';
48
-
49
- interface PropTypeDescriptor {
50
- name: PropTypeDescriptorName;
51
- value?: any;
52
- raw?: string;
53
- computed?: boolean;
54
- description?: string;
55
- required?: boolean;
56
- }
57
-
58
- type FlowTypeDescriptor =
59
- FlowSimpleType |
60
- FlowLiteralType |
61
- FlowElementsType |
62
- FlowFunctionSignatureType |
63
- FlowObjectSignatureType;
64
-
65
- interface FlowBaseType {
66
- required?: boolean;
67
- nullable?: boolean;
68
- alias?: string;
69
- }
70
-
71
- interface FlowSimpleType extends FlowBaseType {
72
- name: string;
73
- raw?: string;
74
- }
75
-
76
- interface FlowLiteralType extends FlowBaseType {
77
- name: 'literal';
78
- value: string;
79
- }
80
-
81
- interface FlowElementsType extends FlowBaseType {
82
- name: string;
83
- raw: string;
84
- elements: FlowTypeDescriptor[];
85
- }
86
-
87
- interface FlowFunctionArgumentType {
88
- name: string;
89
- type?: FlowTypeDescriptor;
90
- rest?: boolean;
91
- }
92
-
93
- interface FlowFunctionSignatureType extends FlowBaseType {
94
- name: 'signature';
95
- type: 'function';
96
- raw: string;
97
- signature: {
98
- arguments: FlowFunctionArgumentType[];
99
- return: FlowTypeDescriptor;
100
- };
101
- }
102
-
103
- interface FlowObjectSignatureType extends FlowBaseType {
104
- name: 'signature';
105
- type: 'object';
106
- raw: string;
107
- signature: {
108
- properties: {
109
- key: string | FlowTypeDescriptor;
110
- value: FlowTypeDescriptor;
111
- }[];
112
- constructor?: FlowTypeDescriptor;
113
- };
114
- }
115
- }
116
-
117
- export const parse = (fileContent: string): DocumentationObject => {
118
- return {};
119
- };