@bitrise/bitkit 10.35.2-alpha-chakra.2 → 10.36.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 +1 -1
- package/src/Components/ButtonGroup/ButtonGroup.tsx +4 -4
- package/src/Components/Icons/16x16/BoxWithArrowDown.tsx +14 -0
- package/src/Components/Icons/16x16/BoxWithDot.tsx +14 -0
- package/src/Components/Icons/16x16/OverflowingLines.tsx +14 -0
- package/src/Components/Icons/16x16/StepstatusIncomplete.tsx +14 -0
- package/src/Components/Icons/16x16/WrappedLines.tsx +14 -0
- package/src/Components/Icons/16x16/index.ts +5 -0
- package/src/Components/Icons/24x24/BoxWithArrowDown.tsx +14 -0
- package/src/Components/Icons/24x24/BoxWithDot.tsx +14 -0
- package/src/Components/Icons/24x24/OverflowingLines.tsx +14 -0
- package/src/Components/Icons/24x24/StepstatusIncomplete.tsx +14 -0
- package/src/Components/Icons/24x24/WrappedLines.tsx +14 -0
- package/src/Components/Icons/24x24/index.ts +5 -0
- package/src/Components/Table/Tr.tsx +1 -0
- package/src/Foundations/Colors/Colors.ts +1 -103
- package/src/Foundations/Colors/Palette.tsx +2 -2
- package/src/Foundations/Sizes/Sizes.ts +1 -3
- package/src/Old/Base/Base.css +337 -0
- package/src/Old/Base/Base.tsx +199 -0
- package/src/Old/Flex/Flex.css +105 -0
- package/src/Old/Flex/Flex.tsx +92 -0
- package/src/Old/Placement/Placement.css +100 -0
- package/src/Old/Placement/Placement.tsx +74 -0
- package/src/Old/Placement/PlacementArea.tsx +49 -0
- package/src/Old/Placement/PlacementArrow.tsx +20 -0
- package/src/Old/Placement/PlacementArrowPropsContext.ts +9 -0
- package/src/Old/Placement/PlacementManager.tsx +24 -0
- package/src/Old/Placement/PlacementManagerContext.ts +9 -0
- package/src/Old/Placement/PlacementPopper.tsx +173 -0
- package/src/Old/Placement/PlacementReference.tsx +19 -0
- package/src/Old/hooks/index.ts +2 -0
- package/src/Old/hooks/useEventListener.ts +45 -0
- package/src/Old/hooks/useSyncedStateAndProps.ts +14 -0
- package/src/Old/variables.css +210 -0
- package/src/Old/variables.ts +320 -0
- package/src/index.ts +2 -4
- package/src/old.ts +16 -0
- package/src/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ButtonGroup as ChakraButtonGroup, ButtonGroupProps } from '@chakra-ui/react';
|
|
1
|
+
import { ButtonGroup as ChakraButtonGroup, ButtonGroupProps, forwardRef } from '@chakra-ui/react';
|
|
2
2
|
|
|
3
3
|
export type { ButtonGroupProps };
|
|
4
4
|
|
|
5
|
-
const ButtonGroup = (props
|
|
6
|
-
return <ChakraButtonGroup {...props} />;
|
|
7
|
-
};
|
|
5
|
+
const ButtonGroup = forwardRef<ButtonGroupProps, 'div'>((props, ref) => {
|
|
6
|
+
return <ChakraButtonGroup {...props} ref={ref} />;
|
|
7
|
+
});
|
|
8
8
|
|
|
9
9
|
export default ButtonGroup;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const BoxWithArrowDown = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 16 16" {...props}>
|
|
5
|
+
<path
|
|
6
|
+
fillRule="evenodd"
|
|
7
|
+
clipRule="evenodd"
|
|
8
|
+
d="M2.667 2.667h10.666v10.666H2.667V2.667Zm-1.334 0c0-.737.597-1.334 1.334-1.334h10.666c.737 0 1.334.597 1.334 1.334v10.666c0 .737-.597 1.334-1.334 1.334H2.667a1.333 1.333 0 0 1-1.334-1.334V2.667Zm10 6-1-1-1.666 1.666V4H7.333v5.333L5.667 7.667l-1 1L8 12l3.333-3.333Z"
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
/>
|
|
11
|
+
</Icon>
|
|
12
|
+
));
|
|
13
|
+
|
|
14
|
+
export default BoxWithArrowDown;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const BoxWithDot = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 16 16" {...props}>
|
|
5
|
+
<path
|
|
6
|
+
fill="currentColor"
|
|
7
|
+
fillRule="evenodd"
|
|
8
|
+
clipRule="evenodd"
|
|
9
|
+
d="M2.667 2.667h10.666v10.666H2.667V2.667Zm-1.334 0c0-.737.597-1.334 1.334-1.334h10.666c.737 0 1.334.597 1.334 1.334v10.666c0 .737-.597 1.334-1.334 1.334H2.667a1.333 1.333 0 0 1-1.334-1.334V2.667ZM8 9.333a1.333 1.333 0 1 0 0-2.666 1.333 1.333 0 0 0 0 2.666Z"
|
|
10
|
+
/>
|
|
11
|
+
</Icon>
|
|
12
|
+
));
|
|
13
|
+
|
|
14
|
+
export default BoxWithDot;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const OverflowingLines = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 16 16" {...props}>
|
|
5
|
+
<path
|
|
6
|
+
fill="currentColor"
|
|
7
|
+
fillRule="evenodd"
|
|
8
|
+
clipRule="evenodd"
|
|
9
|
+
d="M2.667 2.667h10.666V4H4v1.333h9.333V6H4v1.333h9.333V8H4v1.333h9.333V10H4v1.333h9.333v2H2.667V2.667Zm-1.334 0c0-.737.597-1.334 1.334-1.334h10.666c.737 0 1.334.597 1.334 1.334v10.666c0 .737-.597 1.334-1.334 1.334H2.667a1.333 1.333 0 0 1-1.334-1.334V2.667Z"
|
|
10
|
+
/>
|
|
11
|
+
</Icon>
|
|
12
|
+
));
|
|
13
|
+
|
|
14
|
+
export default OverflowingLines;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const StepstatusIncomplete = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 16 16" {...props}>
|
|
5
|
+
<path
|
|
6
|
+
fillRule="evenodd"
|
|
7
|
+
clipRule="evenodd"
|
|
8
|
+
d="M15.8477 9.5613L14.5397 9.30254C14.6229 8.88234 14.6667 8.44694 14.6667 8C14.6667 7.55306 14.6229 7.11766 14.5397 6.69746L15.8477 6.4387C15.9476 6.94367 16 7.46572 16 8C16 8.53428 15.9476 9.05633 15.8477 9.5613ZM14.6525 3.55507L13.5446 4.29683C13.0575 3.56925 12.4308 2.94254 11.7032 2.45543L12.4449 1.34748C13.3173 1.93154 14.0685 2.68266 14.6525 3.55507ZM9.5613 0.152272L9.30254 1.46026C8.88234 1.37713 8.44694 1.33333 8 1.33333C7.55306 1.33333 7.11766 1.37713 6.69746 1.46026L6.4387 0.152272C6.94367 0.0523755 7.46572 0 8 0C8.53428 0 9.05633 0.0523755 9.5613 0.152272ZM3.55507 1.34748L4.29683 2.45543C3.56925 2.94254 2.94254 3.56925 2.45543 4.29683L1.34748 3.55508C1.93154 2.68266 2.68266 1.93154 3.55507 1.34748ZM0.152272 6.4387C0.0523755 6.94367 0 7.46572 0 8C0 8.53428 0.0523755 9.05633 0.152272 9.5613L1.46026 9.30254C1.37713 8.88234 1.33333 8.44694 1.33333 8C1.33333 7.55306 1.37713 7.11766 1.46026 6.69746L0.152272 6.4387ZM1.34748 12.4449L2.45543 11.7032C2.94254 12.4308 3.56925 13.0575 4.29683 13.5446L3.55508 14.6525C2.68266 14.0685 1.93154 13.3173 1.34748 12.4449ZM6.4387 15.8477L6.69746 14.5397C7.11766 14.6229 7.55306 14.6667 8 14.6667C8.44694 14.6667 8.88234 14.6229 9.30254 14.5397L9.5613 15.8477C9.05633 15.9476 8.53428 16 8 16C7.46572 16 6.94367 15.9476 6.4387 15.8477ZM12.4449 14.6525L11.7032 13.5446C12.4308 13.0575 13.0575 12.4308 13.5446 11.7032L14.6525 12.4449C14.0685 13.3173 13.3173 14.0685 12.4449 14.6525Z"
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
/>
|
|
11
|
+
</Icon>
|
|
12
|
+
));
|
|
13
|
+
|
|
14
|
+
export default StepstatusIncomplete;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const WrappedLines = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 16 16" {...props}>
|
|
5
|
+
<path
|
|
6
|
+
fill="currentColor"
|
|
7
|
+
fillRule="evenodd"
|
|
8
|
+
clipRule="evenodd"
|
|
9
|
+
d="M13.333 2.667H2.667v10.666h10.666V2.667ZM2.667 1.333c-.737 0-1.334.597-1.334 1.334v10.666c0 .737.597 1.334 1.334 1.334h10.666c.737 0 1.334-.597 1.334-1.334V2.667c0-.737-.597-1.334-1.334-1.334H2.667Zm9.333 4H4V4h8v1.333Zm-8 2h6V6H4v1.333Zm8 2H4V8h8v1.333Zm-8 2h4V10H4v1.333Z"
|
|
10
|
+
/>
|
|
11
|
+
</Icon>
|
|
12
|
+
));
|
|
13
|
+
|
|
14
|
+
export default WrappedLines;
|
|
@@ -22,6 +22,8 @@ export { default as BitbucketBlue } from './BitbucketBlue';
|
|
|
22
22
|
export { default as BitbucketPlain } from './BitbucketPlain';
|
|
23
23
|
export { default as BitbucketShadedWhite } from './BitbucketShadedWhite';
|
|
24
24
|
export { default as Book } from './Book';
|
|
25
|
+
export { default as BoxWithArrowDown } from './BoxWithArrowDown';
|
|
26
|
+
export { default as BoxWithDot } from './BoxWithDot';
|
|
25
27
|
export { default as Branch } from './Branch';
|
|
26
28
|
export { default as Bug } from './Bug';
|
|
27
29
|
export { default as Build } from './Build';
|
|
@@ -121,6 +123,7 @@ export { default as Nodejs } from './Nodejs';
|
|
|
121
123
|
export { default as Numero } from './Numero';
|
|
122
124
|
export { default as OpenInBrowser } from './OpenInBrowser';
|
|
123
125
|
export { default as Other } from './Other';
|
|
126
|
+
export { default as OverflowingLines } from './OverflowingLines';
|
|
124
127
|
export { default as Overview } from './Overview';
|
|
125
128
|
export { default as Owner } from './Owner';
|
|
126
129
|
export { default as Pause } from './Pause';
|
|
@@ -159,6 +162,7 @@ export { default as StepsTuorqouise } from './StepsTuorqouise';
|
|
|
159
162
|
export { default as StepsViolet } from './StepsViolet';
|
|
160
163
|
export { default as StepsWhite } from './StepsWhite';
|
|
161
164
|
export { default as Steps } from './Steps';
|
|
165
|
+
export { default as StepstatusIncomplete } from './StepstatusIncomplete';
|
|
162
166
|
export { default as StepstatusNext } from './StepstatusNext';
|
|
163
167
|
export { default as StepstatusSkip } from './StepstatusSkip';
|
|
164
168
|
export { default as StepstatusWarning } from './StepstatusWarning';
|
|
@@ -191,4 +195,5 @@ export { default as Window } from './Window';
|
|
|
191
195
|
export { default as WorkflowFlow } from './WorkflowFlow';
|
|
192
196
|
export { default as Workflow } from './Workflow';
|
|
193
197
|
export { default as Wow } from './Wow';
|
|
198
|
+
export { default as WrappedLines } from './WrappedLines';
|
|
194
199
|
export { default as Xamarin } from './Xamarin';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const BoxWithArrowDown = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 24 24" {...props}>
|
|
5
|
+
<path
|
|
6
|
+
fillRule="evenodd"
|
|
7
|
+
clipRule="evenodd"
|
|
8
|
+
d="M4 4h16v16H4V4ZM2 4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Zm15 9-1.5-1.5L13 14V6h-2v8l-2.5-2.5L7 13l5 5 5-5Z"
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
/>
|
|
11
|
+
</Icon>
|
|
12
|
+
));
|
|
13
|
+
|
|
14
|
+
export default BoxWithArrowDown;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const BoxWithDot = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 24 24" {...props}>
|
|
5
|
+
<path
|
|
6
|
+
fillRule="evenodd"
|
|
7
|
+
clipRule="evenodd"
|
|
8
|
+
d="M4 4h16v16H4V4ZM2 4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Zm10 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
/>
|
|
11
|
+
</Icon>
|
|
12
|
+
));
|
|
13
|
+
|
|
14
|
+
export default BoxWithDot;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const OverflowingLines = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 24 24" {...props}>
|
|
5
|
+
<path
|
|
6
|
+
fill="currentColor"
|
|
7
|
+
fillRule="evenodd"
|
|
8
|
+
clipRule="evenodd"
|
|
9
|
+
d="M20 4H4v16h16v-3H6v-2h14v-1H6v-2h14v-1H6V9h14V8H6V6h14V4ZM4 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H4Z"
|
|
10
|
+
/>
|
|
11
|
+
</Icon>
|
|
12
|
+
));
|
|
13
|
+
|
|
14
|
+
export default OverflowingLines;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const StepstatusIncomplete = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 24 24" {...props}>
|
|
5
|
+
<path
|
|
6
|
+
fillRule="evenodd"
|
|
7
|
+
clipRule="evenodd"
|
|
8
|
+
d="M23.7716 14.3419L21.8096 13.9538C21.9343 13.3235 22 12.6704 22 12C22 11.3296 21.9343 10.6765 21.8096 10.0462L23.7716 9.65806C23.9214 10.4155 24 11.1986 24 12C24 12.8014 23.9214 13.5845 23.7716 14.3419ZM21.9788 5.33261L20.3168 6.44525C19.5862 5.35387 18.6461 4.41381 17.5547 3.68315L18.6674 2.02121C19.976 2.89731 21.1027 4.02399 21.9788 5.33261ZM14.3419 0.228409L13.9538 2.19038C13.3235 2.06569 12.6704 2 12 2C11.3296 2 10.6765 2.06569 10.0462 2.19038L9.65806 0.228409C10.4155 0.0785633 11.1986 0 12 0C12.8014 0 13.5845 0.0785633 14.3419 0.228409ZM5.33261 2.02122L6.44525 3.68315C5.35387 4.41381 4.41381 5.35388 3.68315 6.44525L2.02121 5.33261C2.89731 4.024 4.02399 2.89731 5.33261 2.02122ZM0.228409 9.65806C0.0785633 10.4155 0 11.1986 0 12C0 12.8014 0.0785633 13.5845 0.228409 14.3419L2.19038 13.9538C2.06569 13.3235 2 12.6704 2 12C2 11.3296 2.06569 10.6765 2.19038 10.0462L0.228409 9.65806ZM2.02122 18.6674L3.68315 17.5548C4.41381 18.6461 5.35388 19.5862 6.44525 20.3168L5.33261 21.9788C4.024 21.1027 2.89731 19.976 2.02122 18.6674ZM9.65806 23.7716L10.0462 21.8096C10.6765 21.9343 11.3296 22 12 22C12.6704 22 13.3235 21.9343 13.9538 21.8096L14.3419 23.7716C13.5845 23.9214 12.8014 24 12 24C11.1986 24 10.4155 23.9214 9.65806 23.7716ZM18.6674 21.9788L17.5548 20.3168C18.6461 19.5862 19.5862 18.6461 20.3168 17.5547L21.9788 18.6674C21.1027 19.976 19.976 21.1027 18.6674 21.9788Z"
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
/>
|
|
11
|
+
</Icon>
|
|
12
|
+
));
|
|
13
|
+
|
|
14
|
+
export default StepstatusIncomplete;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const WrappedLines = forwardRef<IconProps, 'svg'>((props, ref) => (
|
|
4
|
+
<Icon ref={ref} viewBox="0 0 24 24" {...props}>
|
|
5
|
+
<path
|
|
6
|
+
fill="currentColor"
|
|
7
|
+
fillRule="evenodd"
|
|
8
|
+
clipRule="evenodd"
|
|
9
|
+
d="M20 4H4v16h16V4ZM4 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H4Zm14 6H6V6h12v2ZM6 11h9V9H6v2Zm12 3H6v-2h12v2ZM6 17h6v-2H6v2Z"
|
|
10
|
+
/>
|
|
11
|
+
</Icon>
|
|
12
|
+
));
|
|
13
|
+
|
|
14
|
+
export default WrappedLines;
|
|
@@ -22,6 +22,8 @@ export { default as BitbucketBlue } from './BitbucketBlue';
|
|
|
22
22
|
export { default as BitbucketPlain } from './BitbucketPlain';
|
|
23
23
|
export { default as BitbucketShadedWhite } from './BitbucketShadedWhite';
|
|
24
24
|
export { default as Book } from './Book';
|
|
25
|
+
export { default as BoxWithArrowDown } from './BoxWithArrowDown';
|
|
26
|
+
export { default as BoxWithDot } from './BoxWithDot';
|
|
25
27
|
export { default as Branch } from './Branch';
|
|
26
28
|
export { default as Bug } from './Bug';
|
|
27
29
|
export { default as Build } from './Build';
|
|
@@ -121,6 +123,7 @@ export { default as Nodejs } from './Nodejs';
|
|
|
121
123
|
export { default as Numero } from './Numero';
|
|
122
124
|
export { default as OpenInBrowser } from './OpenInBrowser';
|
|
123
125
|
export { default as Other } from './Other';
|
|
126
|
+
export { default as OverflowingLines } from './OverflowingLines';
|
|
124
127
|
export { default as Overview } from './Overview';
|
|
125
128
|
export { default as Owner } from './Owner';
|
|
126
129
|
export { default as Pause } from './Pause';
|
|
@@ -159,6 +162,7 @@ export { default as StepsTuorqouise } from './StepsTuorqouise';
|
|
|
159
162
|
export { default as StepsViolet } from './StepsViolet';
|
|
160
163
|
export { default as StepsWhite } from './StepsWhite';
|
|
161
164
|
export { default as Steps } from './Steps';
|
|
165
|
+
export { default as StepstatusIncomplete } from './StepstatusIncomplete';
|
|
162
166
|
export { default as StepstatusNext } from './StepstatusNext';
|
|
163
167
|
export { default as StepstatusSkip } from './StepstatusSkip';
|
|
164
168
|
export { default as StepstatusWarning } from './StepstatusWarning';
|
|
@@ -191,4 +195,5 @@ export { default as Window } from './Window';
|
|
|
191
195
|
export { default as WorkflowFlow } from './WorkflowFlow';
|
|
192
196
|
export { default as Workflow } from './Workflow';
|
|
193
197
|
export { default as Wow } from './Wow';
|
|
198
|
+
export { default as WrappedLines } from './WrappedLines';
|
|
194
199
|
export { default as Xamarin } from './Xamarin';
|
|
@@ -125,109 +125,7 @@ const colors = {
|
|
|
125
125
|
},
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export type
|
|
129
|
-
| 'neutral.10'
|
|
130
|
-
| 'neutral.20'
|
|
131
|
-
| 'neutral.30'
|
|
132
|
-
| 'neutral.40'
|
|
133
|
-
| 'neutral.50'
|
|
134
|
-
| 'neutral.60'
|
|
135
|
-
| 'neutral.70'
|
|
136
|
-
| 'neutral.80'
|
|
137
|
-
| 'neutral.90'
|
|
138
|
-
| 'neutral.93'
|
|
139
|
-
| 'neutral.95'
|
|
140
|
-
| 'neutral.100'
|
|
141
|
-
| 'purple.10'
|
|
142
|
-
| 'purple.20'
|
|
143
|
-
| 'purple.30'
|
|
144
|
-
| 'purple.40'
|
|
145
|
-
| 'purple.50'
|
|
146
|
-
| 'purple.60'
|
|
147
|
-
| 'purple.70'
|
|
148
|
-
| 'purple.80'
|
|
149
|
-
| 'purple.90'
|
|
150
|
-
| 'purple.93'
|
|
151
|
-
| 'purple.95'
|
|
152
|
-
| 'purple.100'
|
|
153
|
-
| 'red.10'
|
|
154
|
-
| 'red.20'
|
|
155
|
-
| 'red.30'
|
|
156
|
-
| 'red.40'
|
|
157
|
-
| 'red.50'
|
|
158
|
-
| 'red.60'
|
|
159
|
-
| 'red.70'
|
|
160
|
-
| 'red.80'
|
|
161
|
-
| 'red.90'
|
|
162
|
-
| 'red.93'
|
|
163
|
-
| 'red.95'
|
|
164
|
-
| 'red.100'
|
|
165
|
-
| 'orange.10'
|
|
166
|
-
| 'orange.20'
|
|
167
|
-
| 'orange.30'
|
|
168
|
-
| 'orange.40'
|
|
169
|
-
| 'orange.50'
|
|
170
|
-
| 'orange.60'
|
|
171
|
-
| 'orange.70'
|
|
172
|
-
| 'orange.80'
|
|
173
|
-
| 'orange.90'
|
|
174
|
-
| 'orange.93'
|
|
175
|
-
| 'orange.95'
|
|
176
|
-
| 'orange.100'
|
|
177
|
-
| 'yellow.10'
|
|
178
|
-
| 'yellow.20'
|
|
179
|
-
| 'yellow.30'
|
|
180
|
-
| 'yellow.40'
|
|
181
|
-
| 'yellow.50'
|
|
182
|
-
| 'yellow.60'
|
|
183
|
-
| 'yellow.70'
|
|
184
|
-
| 'yellow.80'
|
|
185
|
-
| 'yellow.90'
|
|
186
|
-
| 'yellow.93'
|
|
187
|
-
| 'yellow.95'
|
|
188
|
-
| 'yellow.100'
|
|
189
|
-
| 'green.10'
|
|
190
|
-
| 'green.20'
|
|
191
|
-
| 'green.30'
|
|
192
|
-
| 'green.40'
|
|
193
|
-
| 'green.50'
|
|
194
|
-
| 'green.60'
|
|
195
|
-
| 'green.70'
|
|
196
|
-
| 'green.80'
|
|
197
|
-
| 'green.90'
|
|
198
|
-
| 'green.93'
|
|
199
|
-
| 'green.95'
|
|
200
|
-
| 'green.100'
|
|
201
|
-
| 'turquoise.10'
|
|
202
|
-
| 'turquoise.20'
|
|
203
|
-
| 'turquoise.30'
|
|
204
|
-
| 'turquoise.40'
|
|
205
|
-
| 'turquoise.50'
|
|
206
|
-
| 'turquoise.60'
|
|
207
|
-
| 'turquoise.70'
|
|
208
|
-
| 'turquoise.80'
|
|
209
|
-
| 'turquoise.90'
|
|
210
|
-
| 'turquoise.93'
|
|
211
|
-
| 'turquoise.95'
|
|
212
|
-
| 'turquoise.100'
|
|
213
|
-
| 'blue.10'
|
|
214
|
-
| 'blue.20'
|
|
215
|
-
| 'blue.30'
|
|
216
|
-
| 'blue.40'
|
|
217
|
-
| 'blue.50'
|
|
218
|
-
| 'blue.60'
|
|
219
|
-
| 'blue.70'
|
|
220
|
-
| 'blue.80'
|
|
221
|
-
| 'blue.90'
|
|
222
|
-
| 'blue.93'
|
|
223
|
-
| 'blue.95'
|
|
224
|
-
| 'blue.100'
|
|
225
|
-
| 'brand.primary'
|
|
226
|
-
| 'text.body'
|
|
227
|
-
| 'text.secondary'
|
|
228
|
-
| 'text.link'
|
|
229
|
-
| 'text.linkHover'
|
|
230
|
-
| 'separator.primary';
|
|
128
|
+
export type Colors = typeof colors;
|
|
231
129
|
|
|
232
130
|
export type ColorScheme = 'blue' | 'red' | 'green' | 'yellow' | 'purple' | 'neutral';
|
|
233
131
|
|
|
@@ -5,10 +5,10 @@ import Card from '../../Components/Card/Card';
|
|
|
5
5
|
import Divider from '../../Components/Divider/Divider';
|
|
6
6
|
import Provider from '../../Components/Provider/Provider';
|
|
7
7
|
import Text from '../../Components/Text/Text';
|
|
8
|
-
import colors from './Colors';
|
|
8
|
+
import colors, { Colors } from './Colors';
|
|
9
9
|
|
|
10
10
|
const paletteKeys = ['neutral', 'purple', 'red', 'orange', 'yellow', 'green', 'turquoise', 'blue'] as Array<
|
|
11
|
-
keyof
|
|
11
|
+
keyof Colors
|
|
12
12
|
>;
|
|
13
13
|
|
|
14
14
|
const getTextColorFromShade = (backgroundColor: string, darkColor = 'text.body', lightColor = 'neutral.100') => {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
const sizes = {
|
|
2
|
-
'0': '0',
|
|
3
2
|
'4': '0.25rem',
|
|
4
3
|
'8': '0.5rem',
|
|
5
4
|
'12': '0.75rem',
|
|
6
5
|
'16': '1rem',
|
|
7
|
-
'20': '1.25rem',
|
|
8
6
|
'24': '1.5rem',
|
|
9
7
|
'32': '2rem',
|
|
10
8
|
'40': '2.5rem',
|
|
@@ -14,5 +12,5 @@ const sizes = {
|
|
|
14
12
|
'128': '8rem',
|
|
15
13
|
};
|
|
16
14
|
|
|
17
|
-
export type
|
|
15
|
+
export type Sizes = typeof sizes;
|
|
18
16
|
export default sizes;
|