@bitrise/bitkit 10.36.2 → 11.0.0
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.
- package/package.json +17 -38
- package/src/Components/Menu/MenuItem.tsx +1 -1
- package/tsconfig.json +0 -5
- package/src/Components/Accordion/Accordion.stories.tsx +0 -63
- package/src/Components/Accordion/Accordion.test.tsx +0 -34
- package/src/Components/AspectRatio/AspectRatio.stories.tsx +0 -24
- package/src/Components/Avatar/Avatar.stories.tsx +0 -15
- package/src/Components/Badge/Badge.stories.tsx +0 -13
- package/src/Components/Box/Box.stories.tsx +0 -20
- package/src/Components/Breadcrumb/Breadcrumb.stories.tsx +0 -49
- package/src/Components/Button/Button.stories.tsx +0 -25
- package/src/Components/ButtonGroup/ButtonGroup.stories.tsx +0 -21
- package/src/Components/Card/Card.stories.tsx +0 -44
- package/src/Components/ColorButton/ColorButton.stories.tsx +0 -30
- package/src/Components/DatePicker/DatePicker.stories.tsx +0 -16
- package/src/Components/DatePicker/DatePicker.test.tsx +0 -94
- package/src/Components/Dialog/Dialog.stories.tsx +0 -82
- package/src/Components/Divider/Divider.stories.tsx +0 -18
- package/src/Components/Dot/Dot.stories.tsx +0 -15
- package/src/Components/Dropdown/Dropdown.stories.tsx +0 -154
- package/src/Components/Dropdown/Dropdown.test.tsx +0 -626
- package/src/Components/EmptyState/EmptyState.stories.tsx +0 -18
- package/src/Components/Fade/Fade.stories.tsx +0 -5
- package/src/Components/Form/Checkbox/Checkbox.stories.tsx +0 -43
- package/src/Components/Form/Input/Input.stories.tsx +0 -71
- package/src/Components/Form/Radio/Radio.stories.tsx +0 -35
- package/src/Components/Form/Textarea/Textarea.stories.tsx +0 -20
- package/src/Components/Form/Textarea/Textarea.test.tsx +0 -35
- package/src/Components/Icon/Icon.stories.tsx +0 -10
- package/src/Components/IconButton/IconButton.stories.tsx +0 -27
- package/src/Components/Icons/index.stories.tsx +0 -60
- package/src/Components/Image/Image.stories.tsx +0 -15
- package/src/Components/LightBox/LightBox.stories.tsx +0 -39
- package/src/Components/Link/Link.stories.tsx +0 -28
- package/src/Components/List/List.stories.tsx +0 -24
- package/src/Components/Menu/Menu.stories.tsx +0 -90
- package/src/Components/Notification/Notification.stories.tsx +0 -84
- package/src/Components/OverflowMenu/OverflowMenu.stories.tsx +0 -30
- package/src/Components/Popover/Popover.stories.tsx +0 -19
- package/src/Components/ProgressBar/ProgressBar.stories.tsx +0 -11
- package/src/Components/ProgressBitbot/ProgressBitbot.stories.tsx +0 -12
- package/src/Components/ProgressSpinner/ProgressSpinner.stories.tsx +0 -12
- package/src/Components/Ribbon/Ribbon.stories.tsx +0 -35
- package/src/Components/Select/Select.stories.tsx +0 -100
- package/src/Components/Select/Select.test.tsx +0 -96
- package/src/Components/Skeleton/Skeleton.stories.tsx +0 -18
- package/src/Components/Table/Table.stories.tsx +0 -216
- package/src/Components/Tabs/Tabs.stories.tsx +0 -65
- package/src/Components/Tabs/Tabs.test.tsx +0 -36
- package/src/Components/Text/Text.stories.tsx +0 -22
- package/src/Components/Toast/Toast.stories.tsx +0 -30
- package/src/Components/Toggle/Toggle.stories.tsx +0 -19
- package/src/Foundations/Colors/Colors.stories.mdx +0 -9
- package/src/Foundations/Radii/Radii.examples.tsx +0 -25
- package/src/Foundations/Radii/Radii.stories.mdx +0 -6
- package/src/Foundations/Responsive/Responsive.examples.tsx +0 -95
- package/src/Foundations/Responsive/Responsive.stories.mdx +0 -6
- package/src/Foundations/Shadows/Shadows.examples.tsx +0 -24
- package/src/Foundations/Shadows/Shadows.stories.mdx +0 -6
- package/src/Foundations/Sizes/Sizes.examples.tsx +0 -25
- package/src/Foundations/Sizes/Sizes.stories.mdx +0 -6
- package/src/Foundations/Typography/Typography.examples.tsx +0 -63
- package/src/Foundations/Typography/Typography.stories.mdx +0 -8
- package/src/tsconfig.tsbuildinfo +0 -1
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { Code } from '@chakra-ui/react';
|
|
2
|
-
import Box from '../../Components/Box/Box';
|
|
3
|
-
import Card from '../../Components/Card/Card';
|
|
4
|
-
import CardContent from '../../Components/Card/CardContent';
|
|
5
|
-
import Link from '../../Components/Link/Link';
|
|
6
|
-
import List from '../../Components/List/List';
|
|
7
|
-
import ListItem from '../../Components/List/ListItem';
|
|
8
|
-
import Provider from '../../Components/Provider/Provider';
|
|
9
|
-
import Text from '../../Components/Text/Text';
|
|
10
|
-
|
|
11
|
-
import useResponsive from '../../hooks/useResponsive';
|
|
12
|
-
|
|
13
|
-
export const Responsive = () => {
|
|
14
|
-
const { isMobile, isTablet, isDesktop, isWideDesktop } = useResponsive();
|
|
15
|
-
return (
|
|
16
|
-
<Provider>
|
|
17
|
-
<Text as="h2" size="8" marginBottom="24">
|
|
18
|
-
Responsive solutions
|
|
19
|
-
</Text>
|
|
20
|
-
|
|
21
|
-
<Card boxShadow="medium" marginBottom="48" padding="24">
|
|
22
|
-
<CardContent>
|
|
23
|
-
<Text as="h3" size="6" marginBottom="12">
|
|
24
|
-
With responsive style props
|
|
25
|
-
</Text>
|
|
26
|
-
<Text marginBottom="32">
|
|
27
|
-
Use the array syntax on style props, when the element should be always visible, but you want to change
|
|
28
|
-
margin, padding, etc on it.
|
|
29
|
-
<br />
|
|
30
|
-
<Link
|
|
31
|
-
colorScheme="purple"
|
|
32
|
-
href="https://chakra-ui.com/docs/styled-system/responsive-styles#the-array-syntax"
|
|
33
|
-
isExternal
|
|
34
|
-
isUnderlined
|
|
35
|
-
>
|
|
36
|
-
https://chakra-ui.com/docs/styled-system/responsive-styles#the-array-syntax
|
|
37
|
-
</Link>
|
|
38
|
-
</Text>
|
|
39
|
-
<Text marginBottom="8">We have 4 breakpoints:</Text>
|
|
40
|
-
<Box
|
|
41
|
-
backgroundColor={['green.40', 'purple.30', 'red.40', 'neutral.40']}
|
|
42
|
-
color="neutral.93"
|
|
43
|
-
paddingX="24"
|
|
44
|
-
paddingY="16"
|
|
45
|
-
transition="200ms"
|
|
46
|
-
>
|
|
47
|
-
This Box is
|
|
48
|
-
<List>
|
|
49
|
-
<ListItem>green below 848px (53rem)</ListItem>
|
|
50
|
-
<ListItem>purple from 848px (53rem)</ListItem>
|
|
51
|
-
<ListItem>but red from 1280px (80rem)</ListItem>
|
|
52
|
-
<ListItem>but gray from 1616px (101rem)</ListItem>
|
|
53
|
-
</List>
|
|
54
|
-
</Box>
|
|
55
|
-
</CardContent>
|
|
56
|
-
</Card>
|
|
57
|
-
|
|
58
|
-
<Card boxShadow="medium" marginBottom="24" padding="24">
|
|
59
|
-
<CardContent>
|
|
60
|
-
<Text as="h3" size="6" marginBottom="12">
|
|
61
|
-
With useResponsive hook
|
|
62
|
-
</Text>
|
|
63
|
-
<Text marginBottom="24">
|
|
64
|
-
Use this hook when you want to render something conditionally. It will return an object with 1-4 booleans,
|
|
65
|
-
like:
|
|
66
|
-
<br />
|
|
67
|
-
<Code backgroundColor="neutral.20" color="neutral.93" paddingY="4" paddingX="8">
|
|
68
|
-
const { isMobile, isTablet, isDesktop, isWideDesktop } = useResponsive();
|
|
69
|
-
</Code>
|
|
70
|
-
</Text>
|
|
71
|
-
{isMobile && (
|
|
72
|
-
<Box backgroundColor="green.40" color="neutral.93" paddingX="24" paddingY="16">
|
|
73
|
-
This Box is rendered below 848px (53rem), because isMobile is true.
|
|
74
|
-
</Box>
|
|
75
|
-
)}
|
|
76
|
-
{isTablet && (
|
|
77
|
-
<Box backgroundColor="purple.30" color="neutral.93" paddingX="24" paddingY="16">
|
|
78
|
-
This Box is rendered from 848px (53rem) but below 1280px (80rem), because isTablet is true.
|
|
79
|
-
</Box>
|
|
80
|
-
)}
|
|
81
|
-
{isDesktop && (
|
|
82
|
-
<Box backgroundColor="red.40" color="neutral.93" paddingX="24" paddingY="16">
|
|
83
|
-
This Box is rendered from 1280px (80rem) but below 1616px, because isDesktop is true.
|
|
84
|
-
</Box>
|
|
85
|
-
)}
|
|
86
|
-
{isWideDesktop && (
|
|
87
|
-
<Box backgroundColor="neutral.40" color="neutral.93" paddingX="24" paddingY="16">
|
|
88
|
-
This Box is rendered from 1616px (101rem), because isWideDesktop is true.
|
|
89
|
-
</Box>
|
|
90
|
-
)}
|
|
91
|
-
</CardContent>
|
|
92
|
-
</Card>
|
|
93
|
-
</Provider>
|
|
94
|
-
);
|
|
95
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { HStack, VStack } from '@chakra-ui/react';
|
|
2
|
-
import Box from '../../Components/Box/Box';
|
|
3
|
-
import Card from '../../Components/Card/Card';
|
|
4
|
-
import Provider from '../../Components/Provider/Provider';
|
|
5
|
-
import Text from '../../Components/Text/Text';
|
|
6
|
-
import shadows from './Shadows';
|
|
7
|
-
|
|
8
|
-
export const Shadows = () => (
|
|
9
|
-
<Provider>
|
|
10
|
-
<Text as="h2" size="8">
|
|
11
|
-
Shadows
|
|
12
|
-
</Text>
|
|
13
|
-
<Card boxShadow="medium" marginTop="24">
|
|
14
|
-
<HStack as={Card} padding="24" spacing="32">
|
|
15
|
-
{Object.keys(shadows).map((key) => (
|
|
16
|
-
<VStack key={key}>
|
|
17
|
-
<Box boxShadow={key} height="32" width="32" />
|
|
18
|
-
<Text as="span">{key}</Text>
|
|
19
|
-
</VStack>
|
|
20
|
-
))}
|
|
21
|
-
</HStack>
|
|
22
|
-
</Card>
|
|
23
|
-
</Provider>
|
|
24
|
-
);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { HStack, VStack } from '@chakra-ui/react';
|
|
2
|
-
import Box from '../../Components/Box/Box';
|
|
3
|
-
import Card from '../../Components/Card/Card';
|
|
4
|
-
import CardContent from '../../Components/Card/CardContent';
|
|
5
|
-
import Provider from '../../Components/Provider/Provider';
|
|
6
|
-
import Text from '../../Components/Text/Text';
|
|
7
|
-
import sizes from './Sizes';
|
|
8
|
-
|
|
9
|
-
export const Sizes = () => (
|
|
10
|
-
<Provider>
|
|
11
|
-
<Text as="h2" size="8">
|
|
12
|
-
Sizes
|
|
13
|
-
</Text>
|
|
14
|
-
<Card boxShadow="medium" marginTop="24">
|
|
15
|
-
<HStack as={CardContent} alignItems="flex-end" padding="24" spacing="24">
|
|
16
|
-
{Object.keys(sizes).map((size) => (
|
|
17
|
-
<VStack key={size}>
|
|
18
|
-
<Box backgroundColor="brand.primary" height={size} width={size} />
|
|
19
|
-
<Text>{size}</Text>
|
|
20
|
-
</VStack>
|
|
21
|
-
))}
|
|
22
|
-
</HStack>
|
|
23
|
-
</Card>
|
|
24
|
-
</Provider>
|
|
25
|
-
);
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { VStack } from '@chakra-ui/react';
|
|
2
|
-
import Card from '../../Components/Card/Card';
|
|
3
|
-
import Provider from '../../Components/Provider/Provider';
|
|
4
|
-
import Text from '../../Components/Text/Text';
|
|
5
|
-
import typography from './Typography';
|
|
6
|
-
|
|
7
|
-
const style = {
|
|
8
|
-
alignItems: 'flex-start',
|
|
9
|
-
counterReset: 'sizes',
|
|
10
|
-
listStyle: 'none',
|
|
11
|
-
li: {
|
|
12
|
-
counterIncrement: 'sizes',
|
|
13
|
-
_before: {
|
|
14
|
-
content: '"Size " counter(sizes) ":"',
|
|
15
|
-
display: 'inline-block',
|
|
16
|
-
minWidth: '9.375rem',
|
|
17
|
-
marginRight: '16',
|
|
18
|
-
textAlign: 'left',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export const FontSizes = () => (
|
|
24
|
-
<Provider>
|
|
25
|
-
<Text as="h2" size="8">
|
|
26
|
-
TT Norm Pro
|
|
27
|
-
</Text>
|
|
28
|
-
<Text sx={{ marginTop: '8' }}>
|
|
29
|
-
<strong>Font weight:</strong> Normal, <strong>Bold</strong>
|
|
30
|
-
</Text>
|
|
31
|
-
<Text sx={{ marginTop: '8' }}>
|
|
32
|
-
<strong>Text transform:</strong> None, UPPERCASE
|
|
33
|
-
</Text>
|
|
34
|
-
<Card boxShadow="medium" marginTop="24" padding="24">
|
|
35
|
-
<VStack as="ol" spacing={24} sx={style}>
|
|
36
|
-
<Text as="li" size="1">
|
|
37
|
-
{typography.fontSizes[1]} / {typography.lineHeights[1]} / Normal / Uppercase
|
|
38
|
-
</Text>
|
|
39
|
-
<Text as="li" size="2">
|
|
40
|
-
{typography.fontSizes[2]} / {typography.lineHeights[2]} / Normal
|
|
41
|
-
</Text>
|
|
42
|
-
<Text as="li" size="3">
|
|
43
|
-
{typography.fontSizes[3]} / {typography.lineHeights[3]} / Normal
|
|
44
|
-
</Text>
|
|
45
|
-
<Text as="li" size="4">
|
|
46
|
-
{typography.fontSizes[4]} / {typography.lineHeights[4]} / Normal
|
|
47
|
-
</Text>
|
|
48
|
-
<Text as="li" size="5">
|
|
49
|
-
{typography.fontSizes[5]} / {typography.lineHeights[5]} / Bold
|
|
50
|
-
</Text>
|
|
51
|
-
<Text as="li" size="6">
|
|
52
|
-
{typography.fontSizes[6]} / {typography.lineHeights[6]} / Bold
|
|
53
|
-
</Text>
|
|
54
|
-
<Text as="li" size="7">
|
|
55
|
-
{typography.fontSizes[7]} / {typography.lineHeights[7]} / Bold
|
|
56
|
-
</Text>
|
|
57
|
-
<Text as="li" size="8">
|
|
58
|
-
{typography.fontSizes[8]} / {typography.lineHeights[8]} / Bold
|
|
59
|
-
</Text>
|
|
60
|
-
</VStack>
|
|
61
|
-
</Card>
|
|
62
|
-
</Provider>
|
|
63
|
-
);
|