@bitrise/bitkit 12.72.13-0 → 12.73.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.
- package/README.md +6 -6
- package/package.json +45 -44
- package/src/Components/ColorButton/ColorButton.theme.ts +1 -1
- package/src/Components/ColorButton/ColorButton.tsx +1 -1
- package/src/Components/Form/Input/Input.tsx +1 -1
- package/src/Components/Icons/16x16/ArrowDown.tsx +3 -1
- package/src/Components/Icons/16x16/{BackArrow.tsx → ArrowLeft.tsx} +2 -2
- package/src/Components/Icons/16x16/ArrowMoveDown.tsx +12 -0
- package/src/Components/Icons/16x16/{ArrowBack.tsx → ArrowMoveLeft.tsx} +2 -2
- package/src/Components/Icons/16x16/{ArrowForward.tsx → ArrowMoveRight.tsx} +2 -2
- package/src/Components/Icons/16x16/ArrowMoveUp.tsx +14 -0
- package/src/Components/Icons/16x16/ArrowRight.tsx +14 -0
- package/src/Components/Icons/16x16/ArrowUp.tsx +2 -2
- package/src/Components/Icons/16x16/index.ts +7 -4
- package/src/Components/Icons/24x24/ArrowDown.tsx +3 -1
- package/src/Components/Icons/24x24/{BackArrow.tsx → ArrowLeft.tsx} +2 -2
- package/src/Components/Icons/24x24/ArrowMoveDown.tsx +12 -0
- package/src/Components/Icons/24x24/{ArrowBack.tsx → ArrowMoveLeft.tsx} +2 -2
- package/src/Components/Icons/24x24/{ArrowForward.tsx → ArrowMoveRight.tsx} +2 -2
- package/src/Components/Icons/24x24/ArrowMoveUp.tsx +14 -0
- package/src/Components/Icons/24x24/ArrowRight.tsx +14 -0
- package/src/Components/Icons/24x24/ArrowUp.tsx +1 -1
- package/src/Components/Icons/24x24/index.ts +7 -4
- package/src/Components/Menu/MenuItem.tsx +1 -1
- package/src/Components/Notification/Notification.tsx +1 -1
- package/src/Components/Ribbon/Ribbon.tsx +1 -1
- package/src/Components/Select/Select.tsx +1 -1
- package/src/Components/Table/Table.theme.ts +1 -1
- package/src/Components/Tabs/ContainedTab.tsx +1 -1
- package/src/Components/Tag/Tag.tsx +1 -1
- package/src/Foundations/Colors/Colors.tsx +20 -0
- package/src/Foundations/Colors/SystemTokens.tsx +26 -0
- package/src/Foundations/Icons/figmaIcons.ts +8 -8
- package/src/Foundations/Themes/Alert.theme.ts +1 -1
- package/src/Foundations/docComponents/TokenTable.tsx +64 -0
- package/src/index.ts +1 -1
- package/src/theme.ts +2 -1
- package/src/tokens/tokens.json +3285 -0
- package/src/tokens/tokens.ts +57 -0
- package/tsconfig.json +2 -2
- package/src/Foundations/Colors/Colors.ts +0 -151
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { useToken } from '@chakra-ui/react';
|
|
2
|
+
import CodeSnippet from '../../Components/CodeSnippet/CodeSnippet';
|
|
3
|
+
import Dot from '../../Components/Dot/Dot';
|
|
4
|
+
import Table from '../../Components/Table/Table';
|
|
5
|
+
import TableCaption from '../../Components/Table/TableCaption';
|
|
6
|
+
import TableContainer, { TableContainerProps } from '../../Components/Table/TableContainer';
|
|
7
|
+
import Tbody from '../../Components/Table/Tbody';
|
|
8
|
+
import Td from '../../Components/Table/Td';
|
|
9
|
+
import Text from '../../Components/Text/Text';
|
|
10
|
+
import Th from '../../Components/Table/Th';
|
|
11
|
+
import Thead from '../../Components/Table/Thead';
|
|
12
|
+
import Tr from '../../Components/Table/Tr';
|
|
13
|
+
|
|
14
|
+
const Row = ({ token, value }: { token: string; value: string }) => {
|
|
15
|
+
const finalValue = useToken('colors', value);
|
|
16
|
+
return (
|
|
17
|
+
<Tr role="group">
|
|
18
|
+
<Td>
|
|
19
|
+
<CodeSnippet _groupHover={{ backgroundColor: 'neutral.93' }}>{token}</CodeSnippet>
|
|
20
|
+
</Td>
|
|
21
|
+
<Td>
|
|
22
|
+
<>
|
|
23
|
+
<Text marginBottom="8" size="2">
|
|
24
|
+
{finalValue}
|
|
25
|
+
</Text>
|
|
26
|
+
<Text size="2">({value})</Text>
|
|
27
|
+
</>
|
|
28
|
+
</Td>
|
|
29
|
+
<Td>
|
|
30
|
+
<Dot backgroundColor={token.replace('colors.', '')} size="48" />
|
|
31
|
+
</Td>
|
|
32
|
+
</Tr>
|
|
33
|
+
);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export interface TokenTableProps extends TableContainerProps {
|
|
37
|
+
data: Record<string, string>;
|
|
38
|
+
groupName: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const TokenTable = (props: TokenTableProps) => {
|
|
42
|
+
const { data, groupName, ...rest } = props;
|
|
43
|
+
return (
|
|
44
|
+
<TableContainer {...rest}>
|
|
45
|
+
<Table>
|
|
46
|
+
<TableCaption>{groupName}</TableCaption>
|
|
47
|
+
<Thead>
|
|
48
|
+
<Tr>
|
|
49
|
+
<Th>Token</Th>
|
|
50
|
+
<Th>Value</Th>
|
|
51
|
+
<Th>Example</Th>
|
|
52
|
+
</Tr>
|
|
53
|
+
</Thead>
|
|
54
|
+
<Tbody>
|
|
55
|
+
{Object.entries(data).map(([token, value]) => (
|
|
56
|
+
<Row key={token} token={`colors.sys.${groupName}.${token}`} value={`colors.pal.${value}`} />
|
|
57
|
+
))}
|
|
58
|
+
</Tbody>
|
|
59
|
+
</Table>
|
|
60
|
+
</TableContainer>
|
|
61
|
+
);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export default TokenTable;
|
package/src/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ export * from './utils/chakra';
|
|
|
3
3
|
export * from './hooks';
|
|
4
4
|
|
|
5
5
|
export { default as theme } from './theme';
|
|
6
|
-
export type { TypeColors } from './
|
|
6
|
+
export type { TypeColors } from './tokens/tokens';
|
|
7
7
|
export type { TypeSizes } from './Foundations/Sizes/Sizes';
|
|
8
8
|
|
|
9
9
|
export type { LinkProps } from './Components/Link/Link';
|
package/src/theme.ts
CHANGED
|
@@ -46,7 +46,6 @@ import FileInput from './Components/Form/FileInput/FileInput.theme';
|
|
|
46
46
|
import Filter from './Components/Filter/Filter.theme';
|
|
47
47
|
|
|
48
48
|
import breakpoints from './Foundations/Breakpoints/Breakpoints';
|
|
49
|
-
import colors from './Foundations/Colors/Colors';
|
|
50
49
|
import radii from './Foundations/Radii/Radii';
|
|
51
50
|
import shadows from './Foundations/Shadows/Shadows';
|
|
52
51
|
import sizes from './Foundations/Sizes/Sizes';
|
|
@@ -54,6 +53,7 @@ import typography from './Foundations/Typography/Typography';
|
|
|
54
53
|
import zIndices from './Foundations/Zindex/Zindex';
|
|
55
54
|
import Toggletip from './Components/Toggletip/Toggletip.theme';
|
|
56
55
|
import FilterSwitch from './Components/Filter/FilterSwitch/FilterSwitch.theme';
|
|
56
|
+
import { colors, semanticTokens } from './tokens/tokens';
|
|
57
57
|
|
|
58
58
|
const theme = {
|
|
59
59
|
config: {
|
|
@@ -67,6 +67,7 @@ const theme = {
|
|
|
67
67
|
sizes,
|
|
68
68
|
space: sizes,
|
|
69
69
|
zIndices,
|
|
70
|
+
semanticTokens,
|
|
70
71
|
styles: {
|
|
71
72
|
global: {
|
|
72
73
|
body: {
|