@bitrise/bitkit 9.5.2 → 9.5.4-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 (105) hide show
  1. package/package.json +5 -1
  2. package/src/tsconfig.tsbuildinfo +1 -0
  3. package/src/variables.css +2 -3
  4. package/.browserslistrc +0 -2
  5. package/.editorconfig +0 -4
  6. package/.eslint-tsconfig.json +0 -7
  7. package/.eslintrc.js +0 -28
  8. package/.husky/commit-msg +0 -4
  9. package/.nvmrc +0 -1
  10. package/.storybook/main.js +0 -35
  11. package/.storybook/manager.js +0 -6
  12. package/.storybook/preview.tsx +0 -20
  13. package/.storybook/theme.js +0 -7
  14. package/.stylelintignore +0 -2
  15. package/.stylelintrc +0 -287
  16. package/.svgrrc.js +0 -52
  17. package/.tool-versions +0 -1
  18. package/@types/@bitrise/bitkit.ts +0 -1
  19. package/@types/react-docgen.ts +0 -119
  20. package/CHANGELOG.md +0 -996
  21. package/CONTRIBUTING.md +0 -79
  22. package/FAQ.md +0 -19
  23. package/bitrise.yml +0 -66
  24. package/commitlint.config.js +0 -10
  25. package/jest.setup.js +0 -36
  26. package/netlify.toml +0 -42
  27. package/postcss.config.js +0 -16
  28. package/release.config.js +0 -32
  29. package/renovate.json +0 -6
  30. package/scripts/build-docs-watch.ts +0 -7
  31. package/scripts/build-docs.ts +0 -59
  32. package/site/assets/fonts/TT_Norms_Pro_Bold.woff +0 -0
  33. package/site/assets/fonts/TT_Norms_Pro_Normal.woff +0 -0
  34. package/site/assets/icons/favicon-32x32.png +0 -0
  35. package/site/assets/images/app_icon.jpg +0 -0
  36. package/site/assets/images/status-checks.png +0 -0
  37. package/site/components/CodeBlock/CodeBlock.css +0 -87
  38. package/site/components/CodeBlock/CodeBlock.tsx +0 -35
  39. package/site/components/Documentation/ComponentDocumentationPage.tsx +0 -150
  40. package/site/components/Documentation/Components/SectionAddonBeam.tsx +0 -47
  41. package/site/components/Documentation/Components/SectionAddonBeamSandbox.tsx +0 -32
  42. package/site/components/Documentation/Components/SectionAddonFooter.tsx +0 -22
  43. package/site/components/Documentation/Components/SectionAppear.tsx +0 -59
  44. package/site/components/Documentation/Components/SectionAvatar.tsx +0 -50
  45. package/site/components/Documentation/Components/SectionBadge.tsx +0 -38
  46. package/site/components/Documentation/Components/SectionBase.tsx +0 -17
  47. package/site/components/Documentation/Components/SectionButtons.tsx +0 -361
  48. package/site/components/Documentation/Components/SectionCards.tsx +0 -276
  49. package/site/components/Documentation/Components/SectionCheckbox.tsx +0 -38
  50. package/site/components/Documentation/Components/SectionDatePicker.tsx +0 -82
  51. package/site/components/Documentation/Components/SectionDivider.tsx +0 -31
  52. package/site/components/Documentation/Components/SectionDot.tsx +0 -27
  53. package/site/components/Documentation/Components/SectionDropdowns.tsx +0 -388
  54. package/site/components/Documentation/Components/SectionExpand.tsx +0 -143
  55. package/site/components/Documentation/Components/SectionFlex.tsx +0 -33
  56. package/site/components/Documentation/Components/SectionFormElements.tsx +0 -187
  57. package/site/components/Documentation/Components/SectionGrid.tsx +0 -125
  58. package/site/components/Documentation/Components/SectionHamburger.tsx +0 -34
  59. package/site/components/Documentation/Components/SectionIcons.tsx +0 -30
  60. package/site/components/Documentation/Components/SectionInputs.tsx +0 -89
  61. package/site/components/Documentation/Components/SectionList.tsx +0 -26
  62. package/site/components/Documentation/Components/SectionModals.tsx +0 -224
  63. package/site/components/Documentation/Components/SectionNotification.tsx +0 -38
  64. package/site/components/Documentation/Components/SectionPlacement.tsx +0 -167
  65. package/site/components/Documentation/Components/SectionProgress.tsx +0 -149
  66. package/site/components/Documentation/Components/SectionRadioButton.tsx +0 -38
  67. package/site/components/Documentation/Components/SectionRibbon.tsx +0 -33
  68. package/site/components/Documentation/Components/SectionRibbonSandbox.tsx +0 -17
  69. package/site/components/Documentation/Components/SectionSidebar.tsx +0 -125
  70. package/site/components/Documentation/Components/SectionSkeleton.tsx +0 -99
  71. package/site/components/Documentation/Components/SectionStatus.tsx +0 -53
  72. package/site/components/Documentation/Components/SectionStatusSandbox404.tsx +0 -42
  73. package/site/components/Documentation/Components/SectionStatusSandbox500.tsx +0 -13
  74. package/site/components/Documentation/Components/SectionTable.tsx +0 -83
  75. package/site/components/Documentation/Components/SectionTabs.tsx +0 -25
  76. package/site/components/Documentation/Components/SectionText.tsx +0 -34
  77. package/site/components/Documentation/Components/SectionTextarea.tsx +0 -43
  78. package/site/components/Documentation/Components/SectionToggle.tsx +0 -50
  79. package/site/components/Documentation/Components/SectionTooltips.tsx +0 -50
  80. package/site/components/Documentation/Documentation.tsx +0 -302
  81. package/site/components/Documentation/Materials/SectionColors.css +0 -33
  82. package/site/components/Documentation/Materials/SectionColors.tsx +0 -197
  83. package/site/components/Documentation/Materials/SectionIcons.tsx +0 -106
  84. package/site/components/Documentation/Materials/SectionTypography.tsx +0 -143
  85. package/site/components/Page/Page.tsx +0 -8
  86. package/site/components/Page/PageTitle.tsx +0 -8
  87. package/site/components/PropsTable/PropsTable.tsx +0 -35
  88. package/site/components/PropsTable/PropsTableCellUnion.tsx +0 -29
  89. package/site/components/PropsTable/PropsTableRow.tsx +0 -55
  90. package/site/components/Root/Root.tsx +0 -89
  91. package/site/components/Root/index.tsx +0 -4
  92. package/site/components/Sandbox/Sandbox.tsx +0 -19
  93. package/site/components/Sandbox/SandboxFrame.css +0 -20
  94. package/site/components/Sandbox/SandboxFrame.tsx +0 -77
  95. package/site/components/Section/Section.tsx +0 -8
  96. package/site/components/Section/SectionSubTitle.tsx +0 -8
  97. package/site/components/Section/SectionTitle.tsx +0 -8
  98. package/site/components/SideMenu/SideMenu.css +0 -39
  99. package/site/components/SideMenu/SideMenu.tsx +0 -53
  100. package/site/components/SideMenu/SideMenuItem.tsx +0 -34
  101. package/site/components/Window/Window.tsx +0 -62
  102. package/site/index.css +0 -11
  103. package/site/index.html +0 -16
  104. package/site/index.tsx +0 -16
  105. package/superstatic.json +0 -13
@@ -1,388 +0,0 @@
1
- import * as React from 'react';
2
- import {
3
- Dropdown,
4
- DropdownMenu,
5
- DropdownMenus,
6
- DropdownMenuItem,
7
- Flex,
8
- Icon,
9
- Placement,
10
- PlacementManager,
11
- PlacementReference,
12
- Tab,
13
- Tabs,
14
- Text,
15
- Visibility,
16
- VisibilityContainer,
17
- DropdownButton,
18
- } from '@bitrise/bitkit';
19
- import CodeBlock from '../../CodeBlock/CodeBlock';
20
- import Section from '../../Section/Section';
21
-
22
- const { useState } = React;
23
-
24
- const options = [
25
- {
26
- text: 'Item 1',
27
- value: 'item-1',
28
- },
29
- {
30
- text: 'Item 2',
31
- value: 'item-2',
32
- },
33
- {
34
- text: 'Item 3',
35
- value: 'item-3',
36
- },
37
- {
38
- text: 'Item 4',
39
- value: 'item-4',
40
- },
41
- {
42
- text: 'Item 5 with a long text to showcase ellipsis in the Dropdown Button',
43
- value: 'Item 5 with a long text to showcase ellipsis in the Dropdown Button',
44
- },
45
- {
46
- text: 'an_other_long_item_without_spaces__an_other_long_item_without_spaces',
47
- value: 'an_other_long_item_without_spaces__an_other_long_item_without_spaces',
48
- },
49
- ];
50
-
51
- const lotsOfOptions = [
52
- {
53
- text: 'Item 1',
54
- value: 'item-1',
55
- },
56
- {
57
- text: 'Item 2',
58
- value: 'item-2',
59
- },
60
- {
61
- text: 'Item 3',
62
- value: 'item-3',
63
- },
64
- {
65
- text: 'Item 4',
66
- value: 'item-4',
67
- },
68
- {
69
- text: 'Item 5',
70
- value: 'item-5',
71
- },
72
- {
73
- text: 'Item 6',
74
- value: 'item-6',
75
- },
76
- {
77
- text: 'Item 7',
78
- value: 'item-7',
79
- },
80
- {
81
- text: 'Item 8',
82
- value: 'item-8',
83
- },
84
- {
85
- text: 'Item 9',
86
- value: 'item-9',
87
- },
88
- {
89
- text: 'Item 10',
90
- value: 'item-10',
91
- },
92
- {
93
- text: 'Item 11',
94
- value: 'item-11',
95
- },
96
- {
97
- text: 'Item 12',
98
- value: 'item-12',
99
- },
100
- ];
101
-
102
- const optionGroups = [
103
- {
104
- text: 'Workflows',
105
- options: [
106
- {
107
- text: 'Workflow 1',
108
- value: 'Workflow 1',
109
- },
110
- {
111
- text: 'Workflow 2',
112
- value: 'Workflow 2',
113
- },
114
- ],
115
- },
116
- {
117
- text: 'Pipelines',
118
- options: [
119
- {
120
- text: 'Pipeline 1',
121
- value: 'Pipeline 1',
122
- },
123
- {
124
- text: 'Pipeline 2',
125
- value: 'Pipeline 2',
126
- },
127
- ],
128
- },
129
- ];
130
-
131
- const SectionDropdown = () => {
132
- const [visible3, setVisible3] = useState(false);
133
- const [selectedItem, setSelectedItem] = useState();
134
- const [selectedItem2, setSelectedItem2] = useState();
135
- const [selectedItems, setSelectedItems] = useState({});
136
- const [selectedTab, setSelectedTab] = useState(1);
137
-
138
- const handleToggle3 = () => setVisible3(!visible3);
139
-
140
- const handleSelectItem = (value: string) => {
141
- setSelectedItems({
142
- ...selectedItems,
143
- [value]: !selectedItems[value],
144
- });
145
- };
146
-
147
- return (
148
- <Section>
149
- <Tabs gap="x6" margin="x8">
150
- <Tab active={selectedTab === 1} onClick={() => setSelectedTab(1)}>
151
- Simple
152
- </Tab>
153
-
154
- <Tab active={selectedTab === 2} onClick={() => setSelectedTab(2)}>
155
- With lots of options
156
- </Tab>
157
-
158
- <Tab active={selectedTab === 3} onClick={() => setSelectedTab(3)}>
159
- Nested/Dual View
160
- </Tab>
161
-
162
- <Tab active={selectedTab === 4} onClick={() => setSelectedTab(4)}>
163
- With option groups
164
- </Tab>
165
- </Tabs>
166
-
167
- {selectedTab === 1 && (
168
- <>
169
- <Text>
170
- The single Dropdown component is a quick alternative when you have a simple single value that needs to be
171
- selected. It's limited in it's behaviour so not to become prop bloated and fragile to changes.
172
- </Text>
173
-
174
- <Dropdown margin="x8" onChange={(item) => setSelectedItem(item)} options={options} selected={selectedItem}>
175
- Select Item {selectedItem && `(${selectedItem})`}
176
- </Dropdown>
177
-
178
- <CodeBlock margin="x4" title="Dropdown usage example">{`const Component = () => {
179
- const [value, setValue] = useState();
180
-
181
- return (
182
- <Dropdown
183
- onChange={ setValue }
184
- options={ ${JSON.stringify(options)} }
185
- selected={ value }>
186
- Select item
187
- </Dropdown>
188
- );
189
- }`}</CodeBlock>
190
- </>
191
- )}
192
-
193
- {selectedTab === 2 && (
194
- <>
195
- <Text>
196
- The single Dropdown component is a quick alternative when you have a simple single value that needs to be
197
- selected. It's limited in it's behaviour so not to become prop bloated and fragile to changes. When you have
198
- a lots of items you can set the `maxHeight` prop to limit the height of the list
199
- </Text>
200
-
201
- <Dropdown
202
- margin="x8"
203
- maxHeight="15rem"
204
- onChange={(item) => setSelectedItem2(item)}
205
- options={lotsOfOptions}
206
- selected={selectedItem2}
207
- >
208
- Select Item {selectedItem2 && `(${selectedItem2})`}
209
- </Dropdown>
210
-
211
- <CodeBlock margin="x4" title="Dropdown usage example">{`const Component = () => {
212
- const [value, setValue] = useState();
213
-
214
- return (
215
- <Dropdown
216
- onChange={ setValue }
217
- options={ ${JSON.stringify(lotsOfOptions)} }
218
- selected={ value }
219
- maxHeight="15rem">
220
- Select item
221
- </Dropdown>
222
- );
223
- }`}</CodeBlock>
224
- </>
225
- )}
226
-
227
- {selectedTab === 3 && (
228
- <>
229
- <Text>Another example of a complex custom use case with a nested selection using a dual menu view.</Text>
230
-
231
- <PlacementManager>
232
- <PlacementReference>
233
- {({ ref }) => (
234
- <DropdownButton elevation="x1" innerRef={ref} margin="x8" onClick={handleToggle3}>
235
- <Icon name="PlusAdd" />
236
- <Text>Select Items</Text>
237
- </DropdownButton>
238
- )}
239
- </PlacementReference>
240
-
241
- <Placement
242
- disableReposition
243
- onClose={() => {
244
- setSelectedItem(undefined);
245
- handleToggle3();
246
- }}
247
- sameWidth
248
- visible={visible3}
249
- >
250
- {() => (
251
- <DropdownMenus>
252
- <DropdownMenu maxHeight="18rem" width="12rem">
253
- {options.map((item) => (
254
- <DropdownMenuItem
255
- Component={VisibilityContainer}
256
- key={item.value}
257
- onClick={() => {
258
- setSelectedItem(item.value);
259
- setSelectedItems({});
260
- }}
261
- >
262
- <Flex alignChildrenVertical="middle" direction="horizontal" gap="x2" grow>
263
- <Flex grow initial="none">
264
- <Text ellipsis>{item.text}</Text>
265
- </Flex>
266
-
267
- <Visibility Component={Flex}>
268
- <Icon name="ChevronRight" />
269
- </Visibility>
270
- </Flex>
271
- </DropdownMenuItem>
272
- ))}
273
- </DropdownMenu>
274
-
275
- {selectedItem && (
276
- <DropdownMenu key={selectedItem} maxHeight="18rem" width="17rem">
277
- {options.map((item) => (
278
- <DropdownMenuItem
279
- Component={VisibilityContainer}
280
- key={item.value}
281
- onClick={() => handleSelectItem(item.value)}
282
- selected={selectedItems[item.value]}
283
- title={name}
284
- >
285
- <Flex alignChildrenVertical="middle" direction="horizontal" gap="x8" grow>
286
- <Flex grow initial="none">
287
- <Text ellipsis>
288
- {selectedItem} / {item.text}
289
- </Text>
290
- </Flex>
291
-
292
- <Visibility Component={Flex}>
293
- <Text size="2">{selectedItems[item.value] ? '- Remove' : '+ Add'}</Text>
294
- </Visibility>
295
- </Flex>
296
- </DropdownMenuItem>
297
- ))}
298
- </DropdownMenu>
299
- )}
300
- </DropdownMenus>
301
- )}
302
- </Placement>
303
- </PlacementManager>
304
-
305
- <CodeBlock margin="x4" title="Custom DropdownMenu usage example">{`
306
- const options = ${JSON.stringify(options)};
307
-
308
- const Component = () => {
309
- const [group, setGroup] = useState();
310
- const [item, setItem] = useState();
311
-
312
- return (
313
- <DropdownMenus>
314
- <DropdownMenu maxHeight="18rem" width="15rem">
315
- { options.map(({ text, value }) => (
316
- <DropdownMenuItem
317
- Component={ VisibilityContainer }
318
- key={ value }
319
- onClick={ () => setGroup(value) }>
320
- <Flex
321
- alignChildrenVertical="middle"
322
- direction="horizontal"
323
- gap="x2"
324
- grow>
325
- <Flex
326
- grow
327
- initial="none">
328
- <Text ellipsis>{ text }</Text>
329
- </Flex>
330
-
331
- <Visibility>
332
- <Icon name="ChevronRight" />
333
- </Visibility>
334
- </Flex>
335
- </DropdownMenuItem>
336
- )) }
337
- </DropdownMenu>
338
-
339
- { group && (
340
- <DropdownMenu key={ group } maxHeight="18rem" width="15rem">
341
- { options.map(({ text, value }) => (
342
- <DropdownMenuItem onClick={ () => setItem(value) }>
343
- { group } / { text }
344
- </DropdownMenuItem>
345
- ) }
346
- </DropdownMenu>
347
- ) }
348
- </DropdownMenus>
349
- );
350
- };`}</CodeBlock>
351
- </>
352
- )}
353
-
354
- {selectedTab === 4 && (
355
- <>
356
- <Text>
357
- The single Dropdown component is a quick alternative when you have a simple single value that needs to be
358
- selected. It's limited in it's behaviour so not to become prop bloated and fragile to changes.
359
- </Text>
360
-
361
- <Dropdown
362
- margin="x8"
363
- onChange={(item) => setSelectedItem(item)}
364
- options={optionGroups}
365
- selected={selectedItem}
366
- >
367
- Select Item {selectedItem && `(${selectedItem})`}
368
- </Dropdown>
369
-
370
- <CodeBlock margin="x4" title="Dropdown usage example">{`const Component = () => {
371
- const [value, setValue] = useState();
372
-
373
- return (
374
- <Dropdown
375
- onChange={ setValue }
376
- options={ ${JSON.stringify(optionGroups)} }
377
- selected={ value }>
378
- Select item
379
- </Dropdown>
380
- );
381
- }`}</CodeBlock>
382
- </>
383
- )}
384
- </Section>
385
- );
386
- };
387
-
388
- export default SectionDropdown;
@@ -1,143 +0,0 @@
1
- import * as React from 'react';
2
- import { Base, Card, CardContent, CardDivider, Expand, Flex, Icon, Link, Text } from '@bitrise/bitkit';
3
-
4
- import CodeBlock from '../../CodeBlock/CodeBlock';
5
- import Section from '../../Section/Section';
6
- import SectionSubTitle from '../../Section/SectionSubTitle';
7
-
8
- const { useState } = React;
9
-
10
- const SectionDot = () => {
11
- const [basicExpanded, setBasicExpanded] = useState(false);
12
- const [peekExpanded, setPeekExpanded] = useState(false);
13
-
14
- return (
15
- <Section>
16
- <Base margin="x16">
17
- <SectionSubTitle>Basic example</SectionSubTitle>
18
- <Card direction="vertical" elevation="x2">
19
- <CardContent grow padding="x6">
20
- <Text align="middle" margin="x4" size="4" weight="bold">
21
- I must protest your unauthorised presence...
22
- </Text>
23
-
24
- <Link
25
- color="grape-3"
26
- onClick={() => {
27
- setBasicExpanded(!basicExpanded);
28
- }}
29
- >
30
- <Flex alignChildren="middle" direction="horizontal" gap="x1">
31
- <Flex>See {basicExpanded ? 'less' : 'more'}</Flex>
32
-
33
- <Flex>
34
- <Icon name={basicExpanded ? 'ArrowUp' : 'ArrowDown'} />
35
- </Flex>
36
- </Flex>
37
- </Link>
38
- </CardContent>
39
-
40
- <Expand expanded={basicExpanded} removeChildren>
41
- <CardDivider />
42
-
43
- <CardContent grow padding="x6">
44
- <Text align="middle" size="4" weight="bold">
45
- ... on this bridge!
46
- </Text>
47
- </CardContent>
48
- </Expand>
49
- </Card>
50
- </Base>
51
-
52
- <CodeBlock title="Expand - Basic Usage Example">{`const Component = () => {
53
- const [isExpanded, setIsExpanded] = useState(false);
54
-
55
- return (
56
- <React.Fragment>
57
- <Link onClick={ () => setIsExpanded(!isExpanded) }>
58
- Toggle expanded area
59
- </Link>
60
-
61
- <Expand expanded={ isExpanded }>
62
- You can see me when expanded!
63
- </Expand>
64
- </React.Fragment>
65
- );
66
- };`}</CodeBlock>
67
-
68
- <Base margin="x16">
69
- <SectionSubTitle>With some content visible</SectionSubTitle>
70
- <Card direction="vertical" elevation="x2">
71
- <CardContent grow padding="x6">
72
- <Text align="middle" margin="x4" size="4" weight="bold">
73
- I must protest your unauthorised presence...
74
- </Text>
75
-
76
- <Link
77
- color="grape-3"
78
- onClick={() => {
79
- setPeekExpanded(!peekExpanded);
80
- }}
81
- >
82
- <Flex alignChildren="middle" direction="horizontal" gap="x1">
83
- <Flex>See {peekExpanded ? 'less' : 'more'}</Flex>
84
-
85
- <Flex>
86
- <Icon name={peekExpanded ? 'ArrowUp' : 'ArrowDown'} />
87
- </Flex>
88
- </Flex>
89
- </Link>
90
- </CardContent>
91
-
92
- <Expand expanded={peekExpanded} peekHeight="5rem">
93
- <CardDivider />
94
-
95
- <CardContent grow padding="x6">
96
- <Flex direction="vertical" gap="x4">
97
- <Text align="middle" size="3">
98
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugit corporis adipisci obcaecati aspernatur
99
- nam, dolor sapiente accusantium possimus tempora eaque atque. Delectus, iure doloribus. At veniam
100
- suscipit totam! Esse, quae?
101
- </Text>
102
- <Text align="middle" size="3">
103
- Lorem ipsum, dolor sit amet consectetur adipisicing elit. Dolorem laboriosam asperiores tenetur nulla
104
- obcaecati praesentium nostrum quis dignissimos fuga eaque cupiditate rem, quod possimus delectus animi
105
- alias aliquam iusto adipisci?
106
- </Text>
107
- <Text align="middle" size="3">
108
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis earum fugit voluptas dolorum
109
- necessitatibus dicta iure molestiae consequatur tenetur a, ratione sapiente eius obcaecati cum nobis
110
- id quis veritatis eos.
111
- </Text>
112
- </Flex>
113
- </CardContent>
114
- </Expand>
115
- </Card>
116
- </Base>
117
-
118
- <CodeBlock title="Expand - 'Peek' Usage Example">{`const Component = () => {
119
- const [isExpanded, setIsExpanded] = useState(false);
120
-
121
- return (
122
- <React.Fragment>
123
- <Link onClick={ () => setIsExpanded(!isExpanded) }>
124
- Toggle expanded area
125
- </Link>
126
-
127
- <Expand expanded={ isExpanded } peekHeight="5rem">
128
- <Flex direction="vertical" gap="x4>
129
- <Text>Some of me is always visible, even when collapsed!</Text>
130
-
131
- <Text>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ea, consequuntur harum? Eos similique veritatis dolores voluptas aliquam dignissimos expedita hic molestias ipsa, magni eum, qui fugit dolorem modi vero laborum.</Text>
132
-
133
- <Text>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem minus possimus distinctio ipsa enim aspernatur, nihil dolores labore, illo molestiae ad veniam, laborum fugit iste optio incidunt dignissimos ut? Quia!</Text>
134
- </Flex>
135
- </Expand>
136
- </React.Fragment>
137
- );
138
- };`}</CodeBlock>
139
- </Section>
140
- );
141
- };
142
-
143
- export default SectionDot;
@@ -1,33 +0,0 @@
1
- import * as React from 'react';
2
- import CodeBlock from '../../CodeBlock/CodeBlock';
3
- import Section from '../../Section/Section';
4
-
5
- const SectionBase = () => {
6
- return (
7
- <Section>
8
- <CodeBlock title="Flex Usage Example">{`const Component = () => (
9
- <Flex direction="horizontal" paddingVertical="x6">
10
- <Flex alignChildrenVertical="middle" direction="horizontal" gap="x2" grow>
11
- <Flex>
12
- <Icon name="Bitbot" />
13
- </Flex>
14
-
15
- <Flex>
16
- <Text size="3">Bitkit</Text>
17
- </Flex>
18
- </Flex>
19
-
20
- <Flex>
21
- <Tabs>
22
- <Tab>
23
- Documentation
24
- </Tab>
25
- </Tabs>
26
- </Flex>
27
- </Flex>
28
- );`}</CodeBlock>
29
- </Section>
30
- );
31
- };
32
-
33
- export default SectionBase;